@ckeditor/ckeditor5-ai 47.3.0-alpha.5 → 47.3.0-alpha.6
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 _0xd2b739=_0x5ef2;(function(_0x240d8a,_0x46e8d2){const _0x2a2572=_0x5ef2,_0x4f5a38=_0x240d8a();while(!![]){try{const _0x5aa936=parseInt(_0x2a2572(0xde))/0x1*(parseInt(_0x2a2572(0xa6))/0x2)+-parseInt(_0x2a2572(0xca))/0x3*(-parseInt(_0x2a2572(0xf1))/0x4)+parseInt(_0x2a2572(0xe6))/0x5+parseInt(_0x2a2572(0xe4))/0x6+-parseInt(_0x2a2572(0xd7))/0x7*(-parseInt(_0x2a2572(0xd1))/0x8)+parseInt(_0x2a2572(0xe9))/0x9*(parseInt(_0x2a2572(0xbc))/0xa)+-parseInt(_0x2a2572(0xab))/0xb*(parseInt(_0x2a2572(0xc4))/0xc);if(_0x5aa936===_0x46e8d2)break;else _0x4f5a38['push'](_0x4f5a38['shift']());}catch(_0x555ab9){_0x4f5a38['push'](_0x4f5a38['shift']());}}}(_0x5af4,0x3418c));import{FocusTracker as _0x28d715,KeystrokeHandler as _0x4223c2}from'ckeditor5/src/utils.js';import{View as _0x962bdc,FocusCycler as _0x5612a2,createLabeledTextarea as _0x5ab397}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x4d7cdc,AIFormToolbarViewMainActionLabel as _0xf9f636}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x255fec}from'./aiformcontentarea.js';function _0x5af4(){const _0x469184=['ck-ai-form-content','element','_createPromptView','handleError','699hknHCe','errorView','high','_createHistoryView','toolbar','search','REPLACE','3074296UNHvah','render','label','div','stopProcessing','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','7nhIQyT','bind','clear','replaceContent','add','isVisible','focus','77914OJxEPW','mainAction','ck-hidden','contentArea','Ask\x20AI\x20to\x20edit\x20or\x20generate','set','2371146xfcvUT','replaceButton','1314585EaUSqN','chain','focusLast','9rzDsAJ','clearHistory','focusFirst','fieldView','focusCycler','listenTo','bindTo','isEnabled','7260tCJSjK','shift\x20+\x20tab','createCollection','_focusables','insertContentBelow','delegate','historyGroupView','value','_promptHistory','copyButtonView','_createToolbar','submit','4kPRqvV','tryAgainEvent','fire','ck-ai-form','stopButton','77gnVfLu','locale','Empty\x20history','finishProcessing','keystrokes','text','prompt','trim','AI_ERROR_FAILED','items','bindTemplate','setTemplate','insertButton','tab','promptView','queryView','execute','3246790RcfTQF','isProcessing','submitPrompt','focusTracker','startProcessing','Ask\x20AI\x20to\x20improve\x20generated\x20text','reset','tryAgainButton','2969844zAiAwU','isError'];_0x5af4=function(){return _0x469184;};return _0x5af4();}import{AIFormErrorView as _0x362fef}from'./aiformerrorview.js';import{AIFormPromptView as _0x5db153}from'./aiformpromptview.js';import{AIHistoryListView as _0x3f8511}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x1383e4}from'./aihistorylistitemview.js';import{PromptHistory as _0x2fbc5c}from'./prompthistory.js';import{getTranslation as _0x5c9824}from'../../utils/common-translations.js';import{escape as _0x2fdd10}from'es-toolkit/compat';function _0x5ef2(_0x1d6135,_0x17cd53){const _0x5af4a6=_0x5af4();return _0x5ef2=function(_0x5ef20b,_0x537671){_0x5ef20b=_0x5ef20b-0x9f;let _0x5a3c27=_0x5af4a6[_0x5ef20b];return _0x5a3c27;},_0x5ef2(_0x1d6135,_0x17cd53);}export class AIFormView extends _0x962bdc{[_0xd2b739(0xbf)];[_0xd2b739(0xaf)];[_0xd2b739(0xe1)];[_0xd2b739(0xce)];[_0xd2b739(0xb9)];[_0xd2b739(0xcb)];[_0xd2b739(0xf4)];[_0xd2b739(0xed)];[_0xd2b739(0xa2)];constructor(_0x5e3981,_0x2b68f4,_0x512cf1=''){const _0x31e48c=_0xd2b739;super(_0x5e3981),this[_0x31e48c(0xe3)](_0x31e48c(0xf0),!0x0),this[_0x31e48c(0xe3)](_0x31e48c(0xbd),!0x1),this[_0x31e48c(0xe3)](_0x31e48c(0xb1),''),this[_0x31e48c(0xe3)](_0x31e48c(0xa1),''),this[_0x31e48c(0xe3)](_0x31e48c(0xc5),!0x1),this[_0x31e48c(0xe3)](_0x31e48c(0xdf),_0xf9f636[_0x31e48c(0xd0)]),this[_0x31e48c(0xa2)]=new _0x2fbc5c(),this[_0x31e48c(0xcb)]=new _0x362fef(_0x5e3981),this[_0x31e48c(0xe1)]=new _0x255fec(_0x5e3981,_0x512cf1),this[_0x31e48c(0xe1)][_0x31e48c(0xd8)](_0x31e48c(0xbd))['to'](this),this[_0x31e48c(0xe1)][_0x31e48c(0xd8)](_0x31e48c(0xa1))['to'](this),this[_0x31e48c(0xce)]=this[_0x31e48c(0xa4)](),this[_0x31e48c(0xce)][_0x31e48c(0xd8)](_0x31e48c(0xdf))['to'](this),this[_0x31e48c(0xb9)]=this[_0x31e48c(0xc8)](),this[_0x31e48c(0xbf)]=new _0x28d715(),this[_0x31e48c(0xaf)]=new _0x4223c2(),this[_0x31e48c(0xf4)]=this[_0x31e48c(0xf3)]([this[_0x31e48c(0xe1)],this[_0x31e48c(0xe1)][_0x31e48c(0xa3)],this[_0x31e48c(0xce)],this[_0x31e48c(0xb9)]]),this[_0x31e48c(0xed)]=new _0x5612a2({'focusables':this[_0x31e48c(0xf4)],'focusTracker':this[_0x31e48c(0xbf)],'keystrokeHandler':this[_0x31e48c(0xaf)],'actions':{'focusPrevious':_0x31e48c(0xf2),'focusNext':_0x31e48c(0xb8)}}),this[_0x31e48c(0xed)][_0x31e48c(0xe7)](this[_0x31e48c(0xb9)][_0x31e48c(0xed)]),this[_0x31e48c(0xb9)][_0x31e48c(0xba)][_0x31e48c(0xec)][_0x31e48c(0xd8)](_0x31e48c(0xa1))['to'](this,_0x31e48c(0xb1));const _0x4d767b=this[_0x31e48c(0xb5)];this[_0x31e48c(0xb6)]({'tag':_0x31e48c(0xd4),'attributes':{'class':['ck',_0x31e48c(0xa9),_0x2b68f4],'tabindex':'-1'},'children':[{'tag':_0x31e48c(0xd4),'attributes':{'class':['ck',_0x31e48c(0xc6)]},'children':[{'tag':_0x31e48c(0xd4),'attributes':{'class':[_0x4d767b['if'](_0x31e48c(0xc5),_0x31e48c(0xe0),_0x2932fd=>!_0x2932fd)]},'children':[this[_0x31e48c(0xcb)]]},this[_0x31e48c(0xe1)],this[_0x31e48c(0xce)],this[_0x31e48c(0xb9)]]}]});}[_0xd2b739(0xd2)](){const _0x376e28=_0xd2b739;super[_0x376e28(0xd2)](),this[_0x376e28(0xbf)][_0x376e28(0xdb)](this[_0x376e28(0xe1)][_0x376e28(0xc7)]),this[_0x376e28(0xbf)][_0x376e28(0xdb)](this[_0x376e28(0xe1)][_0x376e28(0xa3)][_0x376e28(0xc7)]),this[_0x376e28(0xbf)][_0x376e28(0xdb)](this[_0x376e28(0xce)][_0x376e28(0xc7)]),this[_0x376e28(0xbf)][_0x376e28(0xdb)](this[_0x376e28(0xb9)][_0x376e28(0xc7)]),this[_0x376e28(0xaf)][_0x376e28(0xee)](this[_0x376e28(0xc7)]);}[_0xd2b739(0xdd)](_0x4cf0a2=0x1){const _0x4045b4=_0xd2b739;-0x1===_0x4cf0a2?this[_0x4045b4(0xed)][_0x4045b4(0xe8)]():this[_0x4045b4(0xed)][_0x4045b4(0xeb)]();}[_0xd2b739(0xc2)](){const _0x426218=_0xd2b739;this[_0x426218(0xb1)]='',this[_0x426218(0xa1)]='',this[_0x426218(0xc5)]=!0x1,this[_0x426218(0xb9)][_0x426218(0xc2)](),this[_0x426218(0xe1)][_0x426218(0xdc)]=!0x1,this[_0x426218(0xce)][_0x426218(0xdc)]=!0x1;}[_0xd2b739(0xc8)](){const _0x211283=_0xd2b739,_0x27e775=this[_0x211283(0xac)],_0x49b882=new _0x5db153(_0x27e775,{'queryView':{'label':_0x5c9824(_0x27e775,_0x211283(0xe2)),'creator':_0x5ab397,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x5c9824(_0x27e775,_0x211283(0xad)),'secondary':_0x5c9824(_0x27e775,_0x211283(0xd6))}}},'filteredView':this[_0x211283(0xcd)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x49b882[_0x211283(0xd8)](_0x211283(0xf0))['to'](this,_0x211283(0xf0),this,_0x211283(0xbd),(_0x538451,_0x475f9f)=>_0x538451&&!_0x475f9f),this[_0x211283(0xee)](_0x49b882,_0x211283(0xa5),(_0xffe40,_0x1d673b)=>{const _0x25f0a9=_0x211283;this[_0x25f0a9(0xb1)]=_0x1d673b;const _0x3b0f9b=_0x2fdd10(_0x1d673b);this[_0x25f0a9(0xa8)](_0x25f0a9(0xbe),_0x3b0f9b),_0x1d673b[_0x25f0a9(0xb2)]()&&this[_0x25f0a9(0xa2)][_0x25f0a9(0xdb)]({'prompt':_0x3b0f9b},0x0);},{'priority':_0x211283(0xcc)}),_0x49b882;}[_0xd2b739(0xcd)](){const _0x2cdeb8=_0xd2b739,_0x597ec0=new _0x3f8511(this[_0x2cdeb8(0xac)]);return _0x597ec0[_0x2cdeb8(0xa0)][_0x2cdeb8(0xb4)][_0x2cdeb8(0xef)](this[_0x2cdeb8(0xa2)])['as'](_0x1383e4),_0x597ec0['on'](_0x2cdeb8(0xea),()=>{const _0x4e4a49=_0x2cdeb8;this[_0x4e4a49(0xa2)][_0x4e4a49(0xd9)](),this[_0x4e4a49(0xb9)][_0x4e4a49(0xcf)](''),this[_0x4e4a49(0xb9)][_0x4e4a49(0xdd)]();}),_0x597ec0;}[_0xd2b739(0xa4)](){const _0x3da8a5=_0xd2b739,_0x3326e0=new _0x4d7cdc(this[_0x3da8a5(0xac)]);return _0x3326e0[_0x3da8a5(0xe5)][_0x3da8a5(0xd8)](_0x3da8a5(0xf0))['to'](this,_0x3da8a5(0xf0),this,_0x3da8a5(0xbd),this,_0x3da8a5(0xa1),(_0x1ce999,_0x3b2e3a,_0x1dae35)=>_0x1ce999&&!_0x3b2e3a&&!!_0x1dae35),_0x3326e0[_0x3da8a5(0xe5)][_0x3da8a5(0x9f)](_0x3da8a5(0xbb))['to'](this,_0x3da8a5(0xda)),_0x3326e0[_0x3da8a5(0xb7)][_0x3da8a5(0xd8)](_0x3da8a5(0xf0))['to'](this,_0x3da8a5(0xf0),this,_0x3da8a5(0xbd),this,_0x3da8a5(0xa1),(_0x42ad33,_0x3f6cf1,_0x1b1170)=>_0x42ad33&&!_0x3f6cf1&&!!_0x1b1170),_0x3326e0[_0x3da8a5(0xb7)][_0x3da8a5(0x9f)](_0x3da8a5(0xbb))['to'](this,_0x3da8a5(0xf5)),_0x3326e0[_0x3da8a5(0xc3)][_0x3da8a5(0xd8)](_0x3da8a5(0xf0))['to'](this,_0x3da8a5(0xf0),this,_0x3da8a5(0xbd),(_0x312721,_0x3f529f)=>_0x312721&&!_0x3f529f),_0x3326e0[_0x3da8a5(0xc3)][_0x3da8a5(0x9f)](_0x3da8a5(0xbb))['to'](this,_0x3da8a5(0xa7)),_0x3326e0[_0x3da8a5(0xaa)][_0x3da8a5(0xd8)](_0x3da8a5(0xf0))['to'](this,_0x3da8a5(0xbd)),_0x3326e0[_0x3da8a5(0xaa)][_0x3da8a5(0x9f)](_0x3da8a5(0xbb))['to'](this,_0x3da8a5(0xd5)),_0x3326e0;}[_0xd2b739(0xc0)](){const _0xbdccf4=_0xd2b739;this[_0xbdccf4(0xa1)]='',this[_0xbdccf4(0xc5)]=!0x1,this[_0xbdccf4(0xbd)]=!0x0,this[_0xbdccf4(0xe1)][_0xbdccf4(0xdc)]=!0x0,this[_0xbdccf4(0xce)][_0xbdccf4(0xdc)]=!0x0,this[_0xbdccf4(0xe1)][_0xbdccf4(0xdd)]();}[_0xd2b739(0xae)](){const _0x2007cb=_0xd2b739,_0x3cd2fd=this[_0x2007cb(0xac)];this[_0x2007cb(0xbd)]=!0x1,this[_0x2007cb(0xb1)]='',this[_0x2007cb(0xb9)][_0x2007cb(0xc2)](),this[_0x2007cb(0xa1)]&&(this[_0x2007cb(0xb9)][_0x2007cb(0xba)][_0x2007cb(0xd3)]=_0x5c9824(_0x3cd2fd,_0x2007cb(0xc1)));}[_0xd2b739(0xc9)](_0x59c3a4){const _0x3b5b81=_0xd2b739,_0x5e3e0c=this[_0x3b5b81(0xac)];this[_0x3b5b81(0xae)](),this[_0x3b5b81(0xc5)]=!0x0,this[_0x3b5b81(0xcb)][_0x3b5b81(0xb0)]=_0x59c3a4||_0x5c9824(_0x5e3e0c,_0x3b5b81(0xb3)),this[_0x3b5b81(0xa1)]||(this[_0x3b5b81(0xe1)][_0x3b5b81(0xdc)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x289b(){const _0x46fcd3=['add','14328yjpgcb','20SkJLwv','73784TIVOkq','execute','1644804kmfLjY','1077496MfSgkG','locale','children','5280426bSsGSt','4dDLLtY','5005885PcHKIp','77tWCzRv','set','prompt','641043WcMAUa','fire'];_0x289b=function(){return _0x46fcd3;};return _0x289b();}(function(_0x115a8b,_0x97a9b3){const _0x29cf5e=_0x158f,_0x5b8e37=_0x115a8b();while(!![]){try{const _0x51798d=parseInt(_0x29cf5e(0x1ec))/0x1+parseInt(_0x29cf5e(0x1f5))/0x2*(parseInt(_0x29cf5e(0x1fa))/0x3)+parseInt(_0x29cf5e(0x1f1))/0x4+parseInt(_0x29cf5e(0x1f6))/0x5+parseInt(_0x29cf5e(0x1f0))/0x6+parseInt(_0x29cf5e(0x1f7))/0x7*(-parseInt(_0x29cf5e(0x1ee))/0x8)+-parseInt(_0x29cf5e(0x1f4))/0x9*(parseInt(_0x29cf5e(0x1ed))/0xa);if(_0x51798d===_0x97a9b3)break;else _0x5b8e37['push'](_0x5b8e37['shift']());}catch(_0x543f94){_0x5b8e37['push'](_0x5b8e37['shift']());}}}(_0x289b,0xadb46));function _0x158f(_0x43e940,_0x53756b){const _0x289bd2=_0x289b();return _0x158f=function(_0x158f97,_0x115351){_0x158f97=_0x158f97-0x1eb;let _0x3c1c0e=_0x289bd2[_0x158f97];return _0x3c1c0e;},_0x158f(_0x43e940,_0x53756b);}import{ListItemView as _0x25d234,ButtonView as _0x2e3410,ButtonLabelView as _0x3bd122}from'ckeditor5/src/ui.js';import{unescape as _0xabe93}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x25d234{constructor(_0x4f1a9b){const _0x259b60=_0x158f;super();const _0x606265=new _0x3bd122(),_0x81867e=new _0x2e3410(this[_0x259b60(0x1f2)],_0x606265);this[_0x259b60(0x1f3)][_0x259b60(0x1eb)](_0x81867e),_0x81867e[_0x259b60(0x1f8)]({'label':_0x4f1a9b[_0x259b60(0x1f9)],'withText':!0x0}),_0x81867e['on'](_0x259b60(0x1ef),()=>{const _0x54c329=_0x259b60;this[_0x54c329(0x1fb)](_0x54c329(0x1ef),{'value':_0xabe93(_0x4f1a9b[_0x54c329(0x1f9)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5bf8(_0x5a6c9d,_0x3e48ec){const _0x3a8510=_0x3a85();return _0x5bf8=function(_0x5bf8a7,_0x27ec1d){_0x5bf8a7=_0x5bf8a7-0x16a;let _0x4842ca=_0x3a8510[_0x5bf8a7];return _0x4842ca;},_0x5bf8(_0x5a6c9d,_0x3e48ec);}const _0x1913e4=_0x5bf8;(function(_0x276e63,_0x4c7b7e){const _0x2907f5=_0x5bf8,_0x567a23=_0x276e63();while(!![]){try{const _0x250d69=-parseInt(_0x2907f5(0x17b))/0x1*(-parseInt(_0x2907f5(0x16a))/0x2)+-parseInt(_0x2907f5(0x16b))/0x3*(-parseInt(_0x2907f5(0x170))/0x4)+parseInt(_0x2907f5(0x17a))/0x5+-parseInt(_0x2907f5(0x181))/0x6+parseInt(_0x2907f5(0x16e))/0x7*(-parseInt(_0x2907f5(0x17e))/0x8)+parseInt(_0x2907f5(0x173))/0x9+-parseInt(_0x2907f5(0x178))/0xa;if(_0x250d69===_0x4c7b7e)break;else _0x567a23['push'](_0x567a23['shift']());}catch(_0x6e91ac){_0x567a23['push'](_0x567a23['shift']());}}}(_0x3a85,0x74c7a));import{ListView as _0x1c3df2,ListItemGroupView as _0x2af18d,ButtonView as _0x4df236}from'ckeditor5/src/ui.js';function _0x3a85(){const _0x6ce7bc=['214126HtLyOu','7953pcEdXz','historyGroupView','add','243831HkagAM','items','364kpmaqG','fire','label','1505223MxosBM','set','length','_createClearHistoryButton','children','1832720PfhnTx','Clear','3928795FHNGNl','7ngNiQq','Prompt\x20history','clearHistoryButton','104TkEoRg','execute','delegate','4975542YGQckr','filter','locale','clearHistory'];_0x3a85=function(){return _0x6ce7bc;};return _0x3a85();}import{getTranslation as _0x54d49e}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x1c3df2{[_0x1913e4(0x16c)];[_0x1913e4(0x17d)];constructor(_0x49301e){const _0x3a3b42=_0x1913e4;super(_0x49301e),this[_0x3a3b42(0x17d)]=this[_0x3a3b42(0x176)](),this[_0x3a3b42(0x16c)]=new _0x2af18d(),this[_0x3a3b42(0x16c)][_0x3a3b42(0x177)][_0x3a3b42(0x16d)](this[_0x3a3b42(0x17d)],0x1),this[_0x3a3b42(0x16c)][_0x3a3b42(0x172)]=_0x54d49e(_0x49301e,_0x3a3b42(0x17c)),this[_0x3a3b42(0x16c)][_0x3a3b42(0x16f)][_0x3a3b42(0x180)](_0x3a3b42(0x17f))['to'](this),this[_0x3a3b42(0x16f)][_0x3a3b42(0x16d)](this[_0x3a3b42(0x16c)]);}[_0x1913e4(0x182)](){const _0x496703=_0x1913e4;let _0x420f84=0x0;for(const _0x137ab1 of this[_0x496703(0x16f)])_0x420f84+=_0x137ab1[_0x496703(0x16f)][_0x496703(0x175)];return{'resultsCount':_0x420f84,'totalItemsCount':_0x420f84};}[_0x1913e4(0x176)](){const _0x1fbee3=_0x1913e4,_0x20b17f=this[_0x1fbee3(0x183)],_0x4905eb=new _0x4df236(this[_0x1fbee3(0x183)]);return _0x4905eb[_0x1fbee3(0x174)]({'label':'('+_0x54d49e(_0x20b17f,_0x1fbee3(0x179))+')','withText':!0x0}),_0x4905eb['on'](_0x1fbee3(0x17f),()=>this[_0x1fbee3(0x171)](_0x1fbee3(0x184))),_0x4905eb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2df6aa=_0x1dad;function _0x1d03(){const _0x2a8960=['map','length','89055fuZRWB','209832rHdEjh','remove','1857666HKltoR','setItem','143ImFciV','stringify','_saveToSessionStorage','30VntYYq','parse','1765104jvOciA','_loadFromSessionStorage','CKEditor/AIFormView/PromptHistory','getItem','4319ewLSqh','toLowerCase','add','12930EDmbVW','addMany','last','trim','68qiQJKd','44346ZWblMN','81SvbNmv','10074TDVqkU','prompt'];_0x1d03=function(){return _0x2a8960;};return _0x1d03();}(function(_0x48a0b4,_0xa14520){const _0x2da1e1=_0x1dad,_0x19d6fd=_0x48a0b4();while(!![]){try{const _0x55fcd1=-parseInt(_0x2da1e1(0x10a))/0x1*(-parseInt(_0x2da1e1(0x118))/0x2)+-parseInt(_0x2da1e1(0x105))/0x3+parseInt(_0x2da1e1(0x117))/0x4*(-parseInt(_0x2da1e1(0x102))/0x5)+parseInt(_0x2da1e1(0x11a))/0x6*(parseInt(_0x2da1e1(0x110))/0x7)+parseInt(_0x2da1e1(0x10c))/0x8+-parseInt(_0x2da1e1(0x119))/0x9*(-parseInt(_0x2da1e1(0x113))/0xa)+-parseInt(_0x2da1e1(0x107))/0xb*(parseInt(_0x2da1e1(0x103))/0xc);if(_0x55fcd1===_0xa14520)break;else _0x19d6fd['push'](_0x19d6fd['shift']());}catch(_0x19e9d0){_0x19d6fd['push'](_0x19d6fd['shift']());}}}(_0x1d03,0xbf6d1));import{Collection as _0x2b051d}from'ckeditor5/src/utils.js';const Jo=_0x2df6aa(0x10e);export class PromptHistory extends _0x2b051d{constructor(){const _0x21a950=_0x2df6aa;super(),this[_0x21a950(0x10d)](),this['on'](_0x21a950(0x112),(_0xa4842e,_0x42e79a)=>{const _0x20af10=_0x21a950,_0x370313=Ko(_0x42e79a[_0x20af10(0x11b)]);for(const _0x2f4ca6 of this)if(_0x2f4ca6!=_0x42e79a&&Ko(_0x2f4ca6[_0x20af10(0x11b)])===_0x370313){this[_0x20af10(0x104)](_0x2f4ca6);break;}this[_0x20af10(0x11d)]>0x14&&this[_0x20af10(0x104)](this[_0x20af10(0x115)]),this[_0x20af10(0x109)]();}),this['on'](_0x21a950(0x104),()=>{const _0x4e7fdb=_0x21a950;this[_0x4e7fdb(0x109)]();});}[_0x2df6aa(0x10d)](){const _0x2f857c=_0x2df6aa,_0x27fc97=sessionStorage[_0x2f857c(0x10f)](Jo)||'[]';this[_0x2f857c(0x114)](JSON[_0x2f857c(0x10b)](_0x27fc97));}[_0x2df6aa(0x109)](){const _0x44eb25=_0x2df6aa;sessionStorage[_0x44eb25(0x106)](Jo,JSON[_0x44eb25(0x108)](this[_0x44eb25(0x11c)](_0x3f385c=>_0x3f385c)));}}function _0x1dad(_0x226a49,_0x5580b7){const _0x1d0342=_0x1d03();return _0x1dad=function(_0x1dadff,_0x58a01d){_0x1dadff=_0x1dadff-0x102;let _0x290d89=_0x1d0342[_0x1dadff];return _0x290d89;},_0x1dad(_0x226a49,_0x5580b7);}function Ko(_0x14757d){const _0xe7a0a5=_0x2df6aa;return _0x14757d[_0xe7a0a5(0x111)]()[_0xe7a0a5(0x116)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x15a210=_0x28bc;(function(_0x4b088c,_0x496332){const _0x4c652d=_0x28bc,_0x1f1f50=_0x4b088c();while(!![]){try{const _0x293016=parseInt(_0x4c652d(0x1c7))/0x1+-parseInt(_0x4c652d(0x1b9))/0x2*(-parseInt(_0x4c652d(0x1d9))/0x3)+-parseInt(_0x4c652d(0x1cf))/0x4+parseInt(_0x4c652d(0x1cd))/0x5+parseInt(_0x4c652d(0x1b8))/0x6+parseInt(_0x4c652d(0x1d4))/0x7*(-parseInt(_0x4c652d(0x1b7))/0x8)+parseInt(_0x4c652d(0x1b4))/0x9;if(_0x293016===_0x496332)break;else _0x1f1f50['push'](_0x1f1f50['shift']());}catch(_0x247a1a){_0x1f1f50['push'](_0x1f1f50['shift']());}}}(_0x4a67,0x56c81));import{Command as _0x17be7e}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x39630f}from'../aiassistantui.js';function _0x28bc(_0x420e50,_0x216312){const _0x4a67b7=_0x4a67();return _0x28bc=function(_0x28bc75,_0x3bded4){_0x28bc75=_0x28bc75-0x1b0;let _0x51a55b=_0x4a67b7[_0x28bc75];return _0x51a55b;},_0x28bc(_0x420e50,_0x216312);}export class ShowAIAssistantCommand extends _0x17be7e{[_0x15a210(0x1b1)];constructor(_0x3c5f11,_0x125441){const _0x4daeda=_0x15a210;super(_0x3c5f11),this[_0x4daeda(0x1b1)]=_0x125441,this[_0x4daeda(0x1ba)](_0x4daeda(0x1c2),[]),this['on'](_0x4daeda(0x1c3),(_0x5dc470,_0x50244d,_0x2a6a8f)=>{const _0x2bc576=_0x4daeda;this[_0x2bc576(0x1ca)]&&(this[_0x2bc576(0x1c2)]=xs(this[_0x2bc576(0x1b1)],_0x2a6a8f));}),this[_0x4daeda(0x1ba)](_0x4daeda(0x1c6),!0x1),this['on'](_0x4daeda(0x1c4),(_0x43ed90,_0xaf4df2,_0x479310)=>{const _0x30dc6b=_0x4daeda;this[_0x30dc6b(0x1c2)]=_0x479310?xs(this[_0x30dc6b(0x1b1)],this[_0x30dc6b(0x1c6)]):[];});}[_0x15a210(0x1d7)](){const _0x5d3e99=_0x15a210,_0xdd63df=this[_0x5d3e99(0x1b6)][_0x5d3e99(0x1bd)];this[_0x5d3e99(0x1c6)]=function(_0x402c74){const _0xc90b24=_0x5d3e99,_0x5ebc3c=_0x402c74[_0xc90b24(0x1d6)][_0xc90b24(0x1d8)];return _0x5ebc3c[_0xc90b24(0x1cc)]?0x0!==[..._0x5ebc3c[_0xc90b24(0x1ce)]()][_0xc90b24(0x1c9)]&&![..._0x5ebc3c[_0xc90b24(0x1ce)]()][0x0][_0xc90b24(0x1d0)]:!!_0x402c74[_0xc90b24(0x1c5)](_0x5ebc3c[_0xc90b24(0x1b3)]());}(_0xdd63df);const _0x9d7878=_0xdd63df[_0x5d3e99(0x1d6)][_0x5d3e99(0x1d8)],_0x415514=this[_0x5d3e99(0x1b6)][_0x5d3e99(0x1da)][_0x5d3e99(0x1be)](_0x5d3e99(0x1b0));for(const _0x1af879 of _0x9d7878[_0x5d3e99(0x1d2)]())for(const _0x3b0158 of _0x1af879[_0x5d3e99(0x1b5)]())if(_0x3b0158['is'](_0x5d3e99(0x1d5))&&_0x415514[_0x5d3e99(0x1bc)](_0x3b0158[_0x5d3e99(0x1d1)]))return void(this[_0x5d3e99(0x1ca)]=!0x1);this[_0x5d3e99(0x1ca)]=!0x0;}[_0x15a210(0x1bb)](_0x48a0d7='',_0x16b5f1='',_0xe9078b=_0x15a210(0x1b2)){const _0x3a8d64=_0x15a210;this[_0x3a8d64(0x1b6)][_0x3a8d64(0x1c1)][_0x3a8d64(0x1be)](_0x39630f)[_0x3a8d64(0x1bf)](_0x48a0d7,_0x16b5f1,_0xe9078b);}}function _0x4a67(){const _0x54c798=['60970hBPiVJ','element','document','refresh','selection','12282BKvbtz','config','ai.assistant.disabledElements','_commandDefinitions','custom','getFirstRange','4275837mUKKAn','getItems','editor','512dULGNG','2813190bxgFJV','58wegmkc','set','execute','includes','model','get','showUI','add','plugins','enabledCommandsIds','change:_hasContext','change:isEnabled','hasContent','_hasContext','176558sKjFri','values','length','isEnabled','requiresContent','isCollapsed','641660GozgAw','getSelectedBlocks','1818708nlPhih','isEmpty','name','getRanges','from'];_0x4a67=function(){return _0x54c798;};return _0x4a67();}function xs(_0xe5bea4,_0x3d73cf){const _0x39c19a=_0x15a210,_0x1c8e23=new Set();for(const _0x119ee2 of _0xe5bea4[_0x39c19a(0x1c8)]())(_0x3d73cf||!0x1===_0x119ee2[_0x39c19a(0x1cb)])&&_0x1c8e23[_0x39c19a(0x1c0)](_0x119ee2['id']);return Array[_0x39c19a(0x1d3)](_0x1c8e23);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x3085d0,_0x1d939a,_0x2dbbe4){const t=_0x3085d0['t'];switch(_0x1d939a){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',_0x2dbbe4);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x2dbbe4);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'},_0x2dbbe4);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 _0x1d939a;}}
|
|
@@ -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(_0x1f5ccd,_0x51b5bf){const _0x100f03=(0x0,_0x51b5bf['t'])('Other');return _0x1f5ccd['length']?'groupId'in _0x1f5ccd[0x0]?_0x1f5ccd:[{'groupId':'_ungrouppedCommands','groupLabel':_0x100f03,'order':0x1/0x0,'commands':_0x1f5ccd}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x100f03,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xecb3e7=_0x3e1c;(function(_0x16e035,_0x3ed646){const _0x1f2640=_0x3e1c,_0x70dcd3=_0x16e035();while(!![]){try{const _0x156331=-parseInt(_0x1f2640(0x188))/0x1+-parseInt(_0x1f2640(0x18a))/0x2*(-parseInt(_0x1f2640(0x1b0))/0x3)+parseInt(_0x1f2640(0x18f))/0x4*(-parseInt(_0x1f2640(0x1a8))/0x5)+-parseInt(_0x1f2640(0x1a3))/0x6*(parseInt(_0x1f2640(0x199))/0x7)+parseInt(_0x1f2640(0x16b))/0x8*(-parseInt(_0x1f2640(0x19d))/0x9)+parseInt(_0x1f2640(0x171))/0xa+parseInt(_0x1f2640(0x19a))/0xb*(parseInt(_0x1f2640(0x155))/0xc);if(_0x156331===_0x3ed646)break;else _0x70dcd3['push'](_0x70dcd3['shift']());}catch(_0x5b9427){_0x70dcd3['push'](_0x70dcd3['shift']());}}}(_0x367f,0xf0996));import{ContextPlugin as _0x34d93a}from'ckeditor5/src/core.js';import{AIConnector as _0x2e8acf}from'../aicore/aiconnector.js';import{AIEditing as _0xed72c8}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0xc8d226,AIBalloonView as _0x250920}from'./ui/aiballoonview.js';function _0x3e1c(_0x28667b,_0x268a72){const _0x367fe9=_0x367f();return _0x3e1c=function(_0x3e1c28,_0x24d3d9){_0x3e1c28=_0x3e1c28-0x150;let _0x343c7b=_0x367fe9[_0x3e1c28];return _0x343c7b;},_0x3e1c(_0x28667b,_0x268a72);}import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x1ac766}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x1593c4,Rect as _0x17046d,scrollViewportToShowTarget as _0x4d619d}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x268051}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0xd90966}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x4e1504}from'../aicore/utils/common-translations.js';function _0x367f(){const _0x10bd09=['Dialog','AI_ACTIONS_SELECTION_REMOVED_ERROR','stopListening','8SrqPxe','once','headerView','delegate','markers','change','stopAutoScroll','render','ai-selection','mainView','33544PaDsly','33JkoQrX','listenTo','start','842121wSxOSf','_config','getChangedMarkers','updatePosition','iconView','_setupMarkerRemovalListener','834RMlDkQ','fire','_setupVisualSelection','label','ai-balloon','363985fFVuUv','setupRotator','plugins','ai-balloon-selection','view','value','width','_isUpdatingMarkers','3FJchom','max','top','open','root','ai.availableReplyActions','filter','show','ai-selection:','editing','locale','_cleanupMarkerRemovalListener','ai-balloon-','\x20ai-balloon-rotator','getIntersection','index','_calculateDialogPosition','pluginName','getMarkersGroup','config','7942548XMBFXt','get','length','round','title','showRotator','_calculateOptimalTopPosition','_updateBalloon','commands','document','getBoundingRect','_pendingRenderCallback','startAutoScroll','AIBalloon','requires','isOpen','showBlockingError','trackChanges','differ','dialogClosed','end','model','8slTKHW','isPremiumPlugin','context','ranges','icon','height','3110820txMtlk','isEqual','startsWith','balloonView','hideFakeVisualSelection','off','left','selectionRemoved','hide','updateContent','AIEditing','_getSelectionElements','close','window','content','rootName','getVisible','_showDialog','bind','aiBalloon','isTrackChangesOn','showFakeVisualSelection','isOfficialPlugin','1298851iMxxWC','bottom','1785754RKCxPI','$graveyard'];_0x367f=function(){return _0x10bd09;};return _0x367f();}export const AI_BALLOON_EVENT_NAMES=[..._0xc8d226,_0xecb3e7(0x168),_0xecb3e7(0x178)];const ut=0xa;export class AIBalloon extends _0x34d93a{static get[_0xecb3e7(0x163)](){return[_0x2e8acf,_0xed72c8];}static get[_0xecb3e7(0x152)](){const _0x178b13=_0xecb3e7;return _0x178b13(0x162);}static get[_0xecb3e7(0x187)](){return!0x0;}static get[_0xecb3e7(0x16c)](){return!0x0;}[_0xecb3e7(0x164)]=!0x1;[_0xecb3e7(0x19e)];[_0xecb3e7(0x1af)]=!0x1;[_0xecb3e7(0x160)]=null;[_0xecb3e7(0x1b3)](_0x40b0bf){const _0x25cb71=_0xecb3e7,_0x50771c=_0x268051(this[_0x25cb71(0x16d)]);if(this[_0x25cb71(0x19e)]=_0x40b0bf,this[_0x25cb71(0x164)])return void this[_0x25cb71(0x15c)](_0x40b0bf);const _0x117033=this[_0x25cb71(0x16d)][_0x25cb71(0x154)][_0x25cb71(0x156)](_0x25cb71(0x1b5))||[..._0xd90966],_0x10e788=_0x50771c?.[_0x25cb71(0x15d)][_0x25cb71(0x156)](_0x25cb71(0x166)),_0x44d3e7=_0x10e788?.[_0x25cb71(0x1ad)];this[_0x25cb71(0x174)]=new _0x250920(_0x50771c[_0x25cb71(0x1ba)],_0x40b0bf,_0x117033,!!_0x44d3e7),this[_0x25cb71(0x174)][_0x25cb71(0x192)](..._0xc8d226)['to'](this),_0x10e788&&this[_0x25cb71(0x174)][_0x25cb71(0x183)](_0x25cb71(0x185))['to'](_0x10e788,_0x25cb71(0x1ad)),this[_0x25cb71(0x182)](_0x40b0bf);}[_0xecb3e7(0x17d)](){const _0x5bf58c=_0xecb3e7;_0x268051(this[_0x5bf58c(0x16d)])[_0x5bf58c(0x1aa)][_0x5bf58c(0x156)](_0x5bf58c(0x18c))[_0x5bf58c(0x179)]();}[_0xecb3e7(0x161)](){const _0x25145e=_0xecb3e7;this[_0x25145e(0x174)]&&this[_0x25145e(0x174)][_0x25145e(0x161)]();}[_0xecb3e7(0x195)](){const _0x4ee71a=_0xecb3e7;this[_0x4ee71a(0x174)]&&this[_0x4ee71a(0x174)][_0x4ee71a(0x195)]();}[_0xecb3e7(0x15c)](_0x5df7c8){const _0x4b3106=_0xecb3e7,_0x4642e8=_0x268051(this[_0x4b3106(0x16d)]),_0x210637=_0x4642e8[_0x4b3106(0x1aa)][_0x4b3106(0x156)](_0x4b3106(0x18c));this[_0x4b3106(0x160)]&&(_0x4642e8[_0x4b3106(0x1b9)][_0x4b3106(0x1ac)][_0x4b3106(0x176)](_0x4b3106(0x196),this[_0x4b3106(0x160)]),this[_0x4b3106(0x160)]=null),this[_0x4b3106(0x1af)]=!0x0,_0x210637[_0x4b3106(0x1ac)]?.[_0x4b3106(0x191)]&&(_0x210637[_0x4b3106(0x1ac)][_0x4b3106(0x191)][_0x4b3106(0x1a6)]=_0x5df7c8[_0x4b3106(0x159)],_0x210637[_0x4b3106(0x1ac)][_0x4b3106(0x191)][_0x4b3106(0x1a1)]&&_0x5df7c8[_0x4b3106(0x16f)]&&(_0x210637[_0x4b3106(0x1ac)][_0x4b3106(0x191)][_0x4b3106(0x1a1)][_0x4b3106(0x17f)]=_0x5df7c8[_0x4b3106(0x16f)])),this[_0x4b3106(0x174)][_0x4b3106(0x17a)](_0x5df7c8[_0x4b3106(0x198)]),this[_0x4b3106(0x1a5)](_0x5df7c8[_0x4b3106(0x16e)],_0x5df7c8[_0x4b3106(0x150)]),this[_0x4b3106(0x160)]=()=>{const _0x5ce0f0=_0x4b3106;this[_0x5ce0f0(0x1af)]=!0x1,this[_0x5ce0f0(0x160)]=null,_0x210637[_0x5ce0f0(0x1ac)]&&_0x210637[_0x5ce0f0(0x1ac)][_0x5ce0f0(0x1a0)]();},_0x4642e8[_0x4b3106(0x1b9)][_0x4b3106(0x1ac)][_0x4b3106(0x190)](_0x4b3106(0x196),this[_0x4b3106(0x160)]);}[_0xecb3e7(0x1a5)](_0x3c18b0,_0x44dc44){const _0x77f0e8=_0xecb3e7;this[_0x77f0e8(0x16d)][_0x77f0e8(0x1aa)][_0x77f0e8(0x156)](_0xed72c8)[_0x77f0e8(0x186)](_0x3c18b0,_0x77f0e8(0x1bc)+_0x44dc44,!0x0,!0x0);}[_0xecb3e7(0x182)](_0x5f379b){const _0x224953=_0xecb3e7,_0xaf92b9=_0x268051(this[_0x224953(0x16d)]);this[_0x224953(0x1a5)](_0x5f379b[_0x224953(0x16e)],_0x5f379b[_0x224953(0x150)]);const _0xb70ed0=this[_0x224953(0x17c)]();_0xb70ed0&&_0xb70ed0[0x0]&&_0x4d619d({'target':_0xb70ed0[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0xaf92b9[_0x224953(0x1aa)][_0x224953(0x156)](_0x224953(0x18c))[_0x224953(0x1b7)]({'title':_0x5f379b[_0x224953(0x159)],'icon':_0x5f379b[_0x224953(0x16f)],'hasCloseButton':!0x0,'id':_0x224953(0x184),'position':this[_0x224953(0x151)][_0x224953(0x183)](this),'className':_0x224953(0x1a7)+(_0x5f379b[_0x224953(0x15a)]?_0x224953(0x1bd):''),'content':this[_0x224953(0x174)],'onShow':_0x38c7fb=>{const _0x8dcf3e=_0x224953;_0x5f379b[_0x8dcf3e(0x15a)]&&this[_0x8dcf3e(0x174)][_0x8dcf3e(0x1a9)](_0x38c7fb),this[_0x8dcf3e(0x1a2)](),this[_0x8dcf3e(0x164)]=!0x0;},'onHide':()=>{const _0x49f8bf=_0x224953;this[_0x49f8bf(0x16d)][_0x49f8bf(0x1aa)][_0x49f8bf(0x156)](_0x49f8bf(0x17b))[_0x49f8bf(0x175)](_0x49f8bf(0x1bc)+this[_0x49f8bf(0x19e)][_0x49f8bf(0x150)]),this[_0x49f8bf(0x1bb)](),this[_0x49f8bf(0x1a4)](_0x49f8bf(0x168)),this[_0x49f8bf(0x164)]=!0x1;}});}[_0xecb3e7(0x151)](_0x567d64,_0xa37765){const _0x877832=_0xecb3e7;if(!_0xa37765)return null;const _0x4f814e=this[_0x877832(0x17c)]();if(!_0x4f814e||0x0===_0x4f814e[_0x877832(0x157)])return{'left':Math[_0x877832(0x158)](_0xa37765[_0x877832(0x177)]+_0xa37765[_0x877832(0x1ae)]/0x2-_0x567d64[_0x877832(0x1ae)]/0x2),'top':Math[_0x877832(0x158)](_0xa37765[_0x877832(0x1b2)]+_0xa37765[_0x877832(0x170)]/0x2-_0x567d64[_0x877832(0x170)]/0x2)};const _0x4d8fb3=Math[_0x877832(0x158)](_0xa37765[_0x877832(0x177)]+_0xa37765[_0x877832(0x1ae)]/0x2-_0x567d64[_0x877832(0x1ae)]/0x2),_0x1ce0c3=new _0x17046d(_0x4f814e[0x0]),_0x5d88af=new _0x17046d(_0x4f814e[_0x4f814e[_0x877832(0x157)]-0x1]),_0x5da642=_0x567d64[_0x877832(0x170)],_0x5a7e67=this[_0x877832(0x19e)][_0x877832(0x15a)]?0x8:0x0;return{'left':_0x4d8fb3,'top':this[_0x877832(0x15b)](_0x1ce0c3,_0x5d88af,_0x5da642,_0x5a7e67,_0xa37765)};}[_0xecb3e7(0x15b)](_0x438a05,_0x108fae,_0x5bf986,_0x3093c2=0x0,_0x311f27){const _0x292b62=_0xecb3e7,_0x3f0521=_0x5bf986+_0x3093c2,_0x2b4713=new _0x17046d(_0x1593c4[_0x292b62(0x17e)]),_0x4a5f94=[_0x438a05[_0x292b62(0x181)](),_0x108fae[_0x292b62(0x181)]()][_0x292b62(0x1b6)](_0x4f5c99=>_0x4f5c99),_0x3e3ce7=_0x17046d[_0x292b62(0x15f)](_0x4a5f94);if(!_0x3e3ce7)return Math[_0x292b62(0x158)](_0x311f27[_0x292b62(0x1b2)]+_0x311f27[_0x292b62(0x170)]/0x2);const _0x42e665=_0x2b4713[_0x292b62(0x1be)](_0x3e3ce7);if(!_0x42e665)return Math[_0x292b62(0x158)](_0x311f27[_0x292b62(0x1b2)]+_0x311f27[_0x292b62(0x170)]/0x2);const _0x26ac32=_0x311f27[_0x292b62(0x181)](),_0x37f3d9=_0x26ac32&&_0x3e3ce7[_0x292b62(0x170)]>_0x26ac32[_0x292b62(0x170)],_0x7c59e6=_0x42e665[_0x292b62(0x1b2)],_0x478994=_0x42e665[_0x292b62(0x189)];if(_0x37f3d9){const _0x2ce1b1=(_0x26ac32||_0x2b4713)[_0x292b62(0x170)]/0x2-_0x3f0521/0x2,_0x156f7e=_0x7c59e6-ut-_0x311f27[_0x292b62(0x1b2)],_0x2f360c=_0x311f27[_0x292b62(0x189)]-_0x478994-ut;return _0x156f7e>=_0x3f0521?Math[_0x292b62(0x1b1)](ut,_0x7c59e6-_0x3f0521-ut):_0x2f360c>=_0x3f0521?_0x478994+ut:Math[_0x292b62(0x1b1)](ut,_0x2ce1b1);}const _0x279810=_0x7c59e6-_0x3f0521,_0x4dcb30=_0x311f27[_0x292b62(0x189)]-_0x478994-ut,_0x3ec2ae=_0x7c59e6-ut-_0x311f27[_0x292b62(0x1b2)];let _0x2e7706;if(_0x4dcb30>=_0x3f0521)_0x2e7706=_0x478994+ut;else{if(_0x3ec2ae>=_0x3f0521)_0x2e7706=_0x279810-ut;else _0x2e7706=_0x7c59e6+_0x3e3ce7[_0x292b62(0x170)]/0x2-_0x3f0521/0x2;}return _0x2e7706;}[_0xecb3e7(0x1a2)](){const _0x5d273a=_0xecb3e7,_0xcd8819=_0x268051(this[_0x5d273a(0x16d)]);this[_0x5d273a(0x19b)](_0xcd8819[_0x5d273a(0x16a)][_0x5d273a(0x15e)],_0x5d273a(0x194),()=>{const _0x24a463=_0x5d273a;if(this[_0x24a463(0x1af)])return;for(const {name:_0x39aa5f,data:{newRange:_0x2906d5}}of _0xcd8819[_0x24a463(0x16a)][_0x24a463(0x15e)][_0x24a463(0x167)][_0x24a463(0x19f)]())if(_0x39aa5f[_0x24a463(0x173)](_0x24a463(0x1b8))&&(_0x2906d5&&(_0x2906d5[_0x24a463(0x19c)][_0x24a463(0x172)](_0x2906d5[_0x24a463(0x169)])||_0x24a463(0x18b)==_0x2906d5[_0x24a463(0x1b4)][_0x24a463(0x180)])||null==_0x2906d5)){const _0x2ab042=_0x4e1504(this[_0x24a463(0x16d)][_0x24a463(0x1ba)],_0x24a463(0x18d));this[_0x24a463(0x174)][_0x24a463(0x165)](_0x2ab042),this[_0x24a463(0x1a4)](_0x24a463(0x178));}});}[_0xecb3e7(0x1bb)](){const _0x254490=_0xecb3e7,_0x21b7a4=_0x268051(this[_0x254490(0x16d)]);this[_0x254490(0x18e)](_0x21b7a4[_0x254490(0x16a)][_0x254490(0x15e)]);}[_0xecb3e7(0x17c)](){const _0x208e8c=_0xecb3e7,_0x3b1eee=_0x268051(this[_0x208e8c(0x16d)]);return _0x1ac766(_0x3b1eee[_0x208e8c(0x1b9)],[..._0x3b1eee[_0x208e8c(0x16a)][_0x208e8c(0x193)][_0x208e8c(0x153)](_0x208e8c(0x197)),..._0x3b1eee[_0x208e8c(0x16a)][_0x208e8c(0x193)][_0x208e8c(0x153)](_0x208e8c(0x1ab))]);}}
|
|
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))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x19acf0,_0x10851a){var _0x5aef1a=_0x54db,_0x48b436=_0x19acf0();while(!![]){try{var _0x2a6952=-parseInt(_0x5aef1a(0x81))/0x1*(-parseInt(_0x5aef1a(0x85))/0x2)+parseInt(_0x5aef1a(0x8c))/0x3*(parseInt(_0x5aef1a(0x84))/0x4)+-parseInt(_0x5aef1a(0x86))/0x5*(parseInt(_0x5aef1a(0x88))/0x6)+parseInt(_0x5aef1a(0x83))/0x7*(-parseInt(_0x5aef1a(0x82))/0x8)+-parseInt(_0x5aef1a(0x7f))/0x9+parseInt(_0x5aef1a(0x8e))/0xa*(-parseInt(_0x5aef1a(0x80))/0xb)+-parseInt(_0x5aef1a(0x7e))/0xc*(-parseInt(_0x5aef1a(0x7d))/0xd);if(_0x2a6952===_0x10851a)break;else _0x48b436['push'](_0x48b436['shift']());}catch(_0x42b342){_0x48b436['push'](_0x48b436['shift']());}}}(_0x4914,0x7e3c7));import{View as _0x15e8b1}from'ckeditor5/src/ui.js';function _0x54db(_0x3b578d,_0x3a2c62){var _0x491404=_0x4914();return _0x54db=function(_0x54db44,_0x313a3c){_0x54db44=_0x54db44-0x7d;var _0x5387bb=_0x491404[_0x54db44];return _0x5387bb;},_0x54db(_0x3b578d,_0x3a2c62);}function _0x4914(){var _0x3b3089=['338azjVqQ','178140CAirRG','1624590QTIvkT','11Clgaqx','1URQPGj','24zBsaGz','236789GmDGtb','14292QROzAZ','226444plRQpC','2680420Rmlwtm','div','6upHKXr','ck-ai-balloon__disclaimer-content','ck-ai-balloon__disclaimer','setTemplate','729DLHJgG','AI_DISCLAIMER_TEXT','322930fqGAvK'];_0x4914=function(){return _0x3b3089;};return _0x4914();}import{getTranslation as _0x209b3e}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x15e8b1{constructor(_0x4f8ef5){var _0x51a0ef=_0x54db;super(_0x4f8ef5),this[_0x51a0ef(0x8b)]({'tag':_0x51a0ef(0x87),'attributes':{'class':['ck',_0x51a0ef(0x8a)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x51a0ef(0x89)]},'children':[{'text':_0x209b3e(_0x4f8ef5,_0x51a0ef(0x8d))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52c02c=_0x2c69;function _0x3aca(){const _0xdcac1e=['add','ck-ai-button-secondary','items','isEnabled','extendTemplate','ck-ai-button-primary','_createButton','ck-ai-balloon__toolbar','isLoading','suggestButton','7368fsKUdq','locale','103763myiAlT','9gXiXeU','bind','339468KKkFHj','applyButton','229bBhjPk','AI_BALLOON_SUGGEST_BUTTON','360buVdgi','148686AhsYIw','231PZgojr','AI_BALLOON_APPLY_BUTTON','275530TEEQHI','15CIpJyK','801620NaMEcf','1930sWwqHM','set'];_0x3aca=function(){return _0xdcac1e;};return _0x3aca();}function _0x2c69(_0x553873,_0x213a7c){const _0x3acad7=_0x3aca();return _0x2c69=function(_0x2c6993,_0x226177){_0x2c6993=_0x2c6993-0x15f;let _0x38ed96=_0x3acad7[_0x2c6993];return _0x38ed96;},_0x2c69(_0x553873,_0x213a7c);}(function(_0x251b42,_0x47a8d9){const _0x3c96dd=_0x2c69,_0x5e0c47=_0x251b42();while(!![]){try{const _0x1f937b=-parseInt(_0x3c96dd(0x168))/0x1*(-parseInt(_0x3c96dd(0x171))/0x2)+-parseInt(_0x3c96dd(0x166))/0x3+-parseInt(_0x3c96dd(0x170))/0x4+parseInt(_0x3c96dd(0x16f))/0x5*(-parseInt(_0x3c96dd(0x16b))/0x6)+-parseInt(_0x3c96dd(0x16c))/0x7*(-parseInt(_0x3c96dd(0x161))/0x8)+-parseInt(_0x3c96dd(0x164))/0x9*(parseInt(_0x3c96dd(0x16e))/0xa)+-parseInt(_0x3c96dd(0x163))/0xb*(-parseInt(_0x3c96dd(0x16a))/0xc);if(_0x1f937b===_0x47a8d9)break;else _0x5e0c47['push'](_0x5e0c47['shift']());}catch(_0x2cd98c){_0x5e0c47['push'](_0x5e0c47['shift']());}}}(_0x3aca,0x1d07f));import{ToolbarView as _0x3c56d7,ButtonView as _0x154452}from'ckeditor5/src/ui.js';import{getTranslation as _0x4cc2f2}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x3c56d7{constructor(_0x5f2577,_0x1b2123=!0x0,_0x172e1f=!0x0){const _0x24ef4c=_0x2c69;super(_0x5f2577),this[_0x24ef4c(0x172)](_0x24ef4c(0x15f),!0x1),_0x1b2123&&(this[_0x24ef4c(0x167)]=this[_0x24ef4c(0x179)](_0x4cc2f2(_0x5f2577,_0x24ef4c(0x16d)),_0x24ef4c(0x178)),this[_0x24ef4c(0x167)][_0x24ef4c(0x165)](_0x24ef4c(0x176))['to'](this,_0x24ef4c(0x15f),_0x13a3e7=>!_0x13a3e7),this[_0x24ef4c(0x175)][_0x24ef4c(0x173)](this[_0x24ef4c(0x167)])),_0x172e1f&&(this[_0x24ef4c(0x160)]=this[_0x24ef4c(0x179)](_0x4cc2f2(_0x5f2577,_0x24ef4c(0x169)),_0x1b2123?_0x24ef4c(0x174):_0x24ef4c(0x178)),this[_0x24ef4c(0x160)][_0x24ef4c(0x165)](_0x24ef4c(0x176))['to'](this,_0x24ef4c(0x15f),_0x2bc44d=>!_0x2bc44d),this[_0x24ef4c(0x175)][_0x24ef4c(0x173)](this[_0x24ef4c(0x160)])),this[_0x24ef4c(0x177)]({'attributes':{'class':[_0x24ef4c(0x17a)]}});}[_0x52c02c(0x179)](_0x399c5c,_0x4478b7){const _0x1e18e5=_0x52c02c,_0x19d0f2=new _0x154452(this[_0x1e18e5(0x162)]);return _0x19d0f2[_0x1e18e5(0x172)]({'label':_0x399c5c,'class':_0x4478b7||'','isVisible':!0x0,'withText':!0x0}),_0x19d0f2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x53398e=_0x5690;(function(_0x1bab9b,_0x4552fc){const _0x3f4013=_0x5690,_0x2a021e=_0x1bab9b();while(!![]){try{const _0x18abba=-parseInt(_0x3f4013(0x16c))/0x1+parseInt(_0x3f4013(0x136))/0x2*(parseInt(_0x3f4013(0x167))/0x3)+parseInt(_0x3f4013(0x126))/0x4+-parseInt(_0x3f4013(0x145))/0x5*(-parseInt(_0x3f4013(0x166))/0x6)+-parseInt(_0x3f4013(0x14d))/0x7*(-parseInt(_0x3f4013(0x137))/0x8)+-parseInt(_0x3f4013(0x161))/0x9+parseInt(_0x3f4013(0x135))/0xa*(parseInt(_0x3f4013(0x12f))/0xb);if(_0x18abba===_0x4552fc)break;else _0x2a021e['push'](_0x2a021e['shift']());}catch(_0x397467){_0x2a021e['push'](_0x2a021e['shift']());}}}(_0x34dc,0x6090f));function _0x34dc(){const _0x5ade5e=['getIndex','showPrevious','change:isTrackChangesOn','tab','isErrorVisible','_initializeScrollManager','keystrokes','set','stopAutoScroll','focusFirst','addMany','applyButton','element','20anxnYB','destroy','span','focus','_availableActions','isEnabled','_mainView','remove','1972439UshaYp','render','hideError','startAutoScroll','showApplyButton','execute','showBlockingError','setTemplate','listenTo','_focusables','locale','_createErrorView','clear','_getScrollableElement','_addToolbar','focusTracker','headerView','ai-balloon-error','_dialogContent','createCollection','6747273UztOxK','_createPreviousButtonView','add','applySuggestion','focusLast','380310EhWTDO','836409MAMJBm','bodyView','_addDisclaimerView','suggestButton','bind','530050DXKppc','focusCycler','AI_BALLOON_NEXT_TOOLTIP','div','AI_BALLOON_PREVIOUS_TOOLTIP','ai-balloon-content','errorMessage','toolbar','showNext','scrollManager','setLoading','showRecoverableError','children','fire','mainView','showSuggestButton','includes','_addContentView','isLoading','_createNextButtonView','start','ck-ai-suggestion__error','ck-ai-suggestion__error-text','174948gEeKso','disclaimerView','ck-hidden','setupRotator','showError','bindTemplate','updateContent','clearLoading','view','2825295WzKqWN','shift\x20+\x20tab','isTrackChangesOn','insertSuggestion','_errorView','stop','10BpqZCf','4hwTWRi','16Bgbjyw'];_0x34dc=function(){return _0x5ade5e;};return _0x34dc();}import{ButtonView as _0x59978e,View as _0x1d6c19,ViewCollection as _0x1435f9,FocusCycler as _0x5e6357}from'ckeditor5/src/ui.js';function _0x5690(_0x4c511d,_0x5d350e){const _0x34dc52=_0x34dc();return _0x5690=function(_0x569012,_0x354ddc){_0x569012=_0x569012-0x124;let _0x4447e4=_0x34dc52[_0x569012];return _0x4447e4;},_0x5690(_0x4c511d,_0x5d350e);}import{FocusTracker as _0x4778df,KeystrokeHandler as _0x3a4b57}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x4cf69d,IconPreviousArrow as _0xef208a}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x24dede}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x326686}from'./aiballoondisclaimerview.js';import{getTranslation as _0x4763c7}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x29ec27}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x1fdd68}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x53398e(0x164),_0x53398e(0x132),_0x53398e(0x174),_0x53398e(0x139)];export class AIBalloonView extends _0x1d6c19{[_0x53398e(0x15c)];[_0x53398e(0x13e)];[_0x53398e(0x16d)];[_0x53398e(0x149)];[_0x53398e(0x156)];[_0x53398e(0x133)];[_0x53398e(0x175)];constructor(_0x5c0e85,_0x366955,_0x5f0a32,_0x243b3c){const _0xac33f5=_0x53398e;super(_0x5c0e85),this[_0xac33f5(0x149)]=_0x5f0a32,this[_0xac33f5(0x13f)](_0xac33f5(0x17e),!0x1),this[_0xac33f5(0x13f)](_0xac33f5(0x131),_0x243b3c),this[_0xac33f5(0x13f)](_0xac33f5(0x13c),!0x1),this[_0xac33f5(0x13f)](_0xac33f5(0x172),''),this[_0xac33f5(0x15c)]=new _0x4778df(),this[_0xac33f5(0x13e)]=new _0x3a4b57(),this[_0xac33f5(0x156)]=this[_0xac33f5(0x160)](),this[_0xac33f5(0x16d)]=new _0x5e6357({'focusables':this[_0xac33f5(0x156)],'focusTracker':this[_0xac33f5(0x15c)],'keystrokeHandler':this[_0xac33f5(0x13e)],'actions':{'focusPrevious':_0xac33f5(0x130),'focusNext':_0xac33f5(0x13b)}}),this[_0xac33f5(0x15f)]=new _0x1435f9(),this[_0xac33f5(0x17d)](_0x366955[_0xac33f5(0x17a)]),this[_0xac33f5(0x169)](),this[_0xac33f5(0x15b)](_0x366955[_0xac33f5(0x151)],_0x366955[_0xac33f5(0x17b)]),this[_0xac33f5(0x173)][_0xac33f5(0x16b)](_0xac33f5(0x17e))['to'](this),this[_0xac33f5(0x156)][_0xac33f5(0x159)](),this[_0xac33f5(0x156)][_0xac33f5(0x142)]([this[_0xac33f5(0x173)]]),this[_0xac33f5(0x154)]({'tag':_0xac33f5(0x16f),'attributes':{'class':_0xac33f5(0x171)},'children':this[_0xac33f5(0x15f)]}),this['on'](_0xac33f5(0x13a),()=>{const _0x3c950b=_0xac33f5;this[_0x3c950b(0x15f)][_0x3c950b(0x14c)](this[_0x3c950b(0x173)]),this[_0x3c950b(0x15b)](_0x366955[_0x3c950b(0x151)],_0x366955[_0x3c950b(0x17b)]);});}[_0x53398e(0x14e)](){const _0x4725c8=_0x53398e;super[_0x4725c8(0x14e)]();for(const _0x32376c of this[_0x4725c8(0x156)])this[_0x4725c8(0x15c)][_0x4725c8(0x163)](_0x32376c[_0x4725c8(0x144)]);this[_0x4725c8(0x13e)][_0x4725c8(0x155)](this[_0x4725c8(0x144)]),this[_0x4725c8(0x13d)]();}[_0x53398e(0x146)](){const _0x550e0b=_0x53398e;super[_0x550e0b(0x146)](),this[_0x550e0b(0x175)]&&this[_0x550e0b(0x175)][_0x550e0b(0x146)]();}[_0x53398e(0x148)](_0x993203){const _0x11b393=_0x53398e;-0x1===_0x993203?this[_0x11b393(0x16d)][_0x11b393(0x165)]():this[_0x11b393(0x16d)][_0x11b393(0x141)]();}[_0x53398e(0x176)](){const _0x2a9638=_0x53398e;this[_0x2a9638(0x17e)]=!0x0;}[_0x53398e(0x12d)](){const _0x3854cd=_0x53398e;this[_0x3854cd(0x17e)]=!0x1;}[_0x53398e(0x12a)](_0x25ccb3){const _0x515ed1=_0x53398e;this[_0x515ed1(0x133)]||(this[_0x515ed1(0x133)]=this[_0x515ed1(0x158)](),this[_0x515ed1(0x15f)][_0x515ed1(0x142)]([this[_0x515ed1(0x133)]],0x0)),this[_0x515ed1(0x172)]=_0x25ccb3,this[_0x515ed1(0x13c)]=!0x0;}[_0x53398e(0x14f)](){const _0x1df447=_0x53398e;this[_0x1df447(0x13c)]=!0x1;}[_0x53398e(0x177)](_0x1198bf){const _0x58bbd9=_0x53398e;this[_0x58bbd9(0x12a)](_0x1198bf);}[_0x53398e(0x153)](_0x5a01b4){const _0x364703=_0x53398e;this[_0x364703(0x12a)](_0x5a01b4),this[_0x364703(0x173)]&&(this[_0x364703(0x173)][_0x364703(0x143)]&&(this[_0x364703(0x173)][_0x364703(0x143)][_0x364703(0x14a)]=!0x1),this[_0x364703(0x173)][_0x364703(0x16a)]&&(this[_0x364703(0x173)][_0x364703(0x16a)][_0x364703(0x14a)]=!0x1));}[_0x53398e(0x129)](_0x394c1b){const _0x366052=_0x53398e,_0x436e34=this[_0x366052(0x17f)](),_0x4da81f=this[_0x366052(0x162)]();_0x394c1b[_0x366052(0x12e)][_0x366052(0x15d)][_0x366052(0x178)][_0x366052(0x163)](_0x436e34,0x2),_0x394c1b[_0x366052(0x12e)][_0x366052(0x15d)][_0x366052(0x178)][_0x366052(0x163)](_0x4da81f,0x0),this[_0x366052(0x156)][_0x366052(0x142)]([_0x436e34,_0x4da81f]),this[_0x366052(0x15c)][_0x366052(0x163)](_0x436e34[_0x366052(0x144)]),this[_0x366052(0x15c)][_0x366052(0x163)](_0x4da81f[_0x366052(0x144)]);}[_0x53398e(0x17d)](_0x4cb175){const _0x439267=_0x53398e;this[_0x439267(0x14b)]=_0x4cb175,this[_0x439267(0x15f)][_0x439267(0x163)](this[_0x439267(0x14b)]);}[_0x53398e(0x12c)](_0x389823){const _0x4a9dab=_0x53398e,_0x22b1a7=this[_0x4a9dab(0x15f)][_0x4a9dab(0x138)](this[_0x4a9dab(0x14b)]);this[_0x4a9dab(0x15f)][_0x4a9dab(0x14c)](this[_0x4a9dab(0x14b)]),this[_0x4a9dab(0x14b)]=_0x389823,this[_0x4a9dab(0x15f)][_0x4a9dab(0x163)](this[_0x4a9dab(0x14b)],_0x22b1a7),this[_0x4a9dab(0x14f)](),this[_0x4a9dab(0x175)]&&this[_0x4a9dab(0x175)][_0x4a9dab(0x146)](),this[_0x4a9dab(0x13d)]();}[_0x53398e(0x169)](){const _0x164b61=_0x53398e;this[_0x164b61(0x127)]=new _0x326686(this[_0x164b61(0x157)]),this[_0x164b61(0x15f)][_0x164b61(0x163)](this[_0x164b61(0x127)]);}[_0x53398e(0x15b)](_0x53395a=!0x0,_0x5469a3=!0x0){const _0x1074de=_0x53398e;_0x53395a=_0x53395a&&!this[_0x1074de(0x131)]&&this[_0x1074de(0x149)][_0x1074de(0x17c)](_0x1074de(0x164)),_0x5469a3=_0x5469a3&&this[_0x1074de(0x149)][_0x1074de(0x17c)](_0x1074de(0x132)),this[_0x1074de(0x173)]=new _0x24dede(this[_0x1074de(0x157)],_0x53395a,_0x5469a3),this[_0x1074de(0x173)][_0x1074de(0x143)]?.['on'](_0x1074de(0x152),()=>{const _0x299757=_0x1074de;this[_0x299757(0x179)](_0x299757(0x164));}),this[_0x1074de(0x173)][_0x1074de(0x16a)]?.['on'](_0x1074de(0x152),()=>{const _0x13a8fa=_0x1074de;this[_0x13a8fa(0x179)](_0x13a8fa(0x132));}),this[_0x1074de(0x15f)][_0x1074de(0x163)](this[_0x1074de(0x173)]);}[_0x53398e(0x17f)](){const _0x3f135b=_0x53398e,_0x4c0a75=new _0x59978e(this[_0x3f135b(0x157)]);return _0x4c0a75[_0x3f135b(0x13f)]({'icon':_0x4cf69d,'tooltip':_0x4763c7(this[_0x3f135b(0x157)],_0x3f135b(0x16e))}),_0x4c0a75['on'](_0x3f135b(0x152),()=>{const _0x156752=_0x3f135b;this[_0x156752(0x179)](_0x156752(0x174));}),_0x4c0a75;}[_0x53398e(0x162)](){const _0x19c8c1=_0x53398e,_0x43ced7=new _0x59978e(this[_0x19c8c1(0x157)]);return _0x43ced7[_0x19c8c1(0x13f)]({'icon':_0xef208a,'tooltip':_0x4763c7(this[_0x19c8c1(0x157)],_0x19c8c1(0x170))}),_0x43ced7['on'](_0x19c8c1(0x152),()=>{const _0x328d6f=_0x19c8c1;this[_0x328d6f(0x179)](_0x328d6f(0x139));}),_0x43ced7;}[_0x53398e(0x158)](){const _0xc1fd50=_0x53398e,_0x5e7b35=new _0x1d6c19(this[_0xc1fd50(0x157)]),_0x49f4f7=new _0x1d6c19(this[_0xc1fd50(0x157)]);return _0x49f4f7[_0xc1fd50(0x154)]({'tag':_0xc1fd50(0x147),'attributes':{'class':['ck',_0xc1fd50(0x125)]},'children':[{'text':this[_0xc1fd50(0x12b)]['to'](_0xc1fd50(0x172))}]}),_0x5e7b35[_0xc1fd50(0x154)]({'tag':_0xc1fd50(0x16f),'attributes':{'class':['ck',_0xc1fd50(0x124),_0xc1fd50(0x15e),this[_0xc1fd50(0x12b)]['if'](_0xc1fd50(0x13c),_0xc1fd50(0x128),_0x1e2921=>!_0x1e2921)]},'children':[_0x49f4f7]}),_0x5e7b35;}[_0x53398e(0x150)](){const _0x4ba93a=_0x53398e;this[_0x4ba93a(0x13d)](),this[_0x4ba93a(0x175)]&&this[_0x4ba93a(0x175)][_0x4ba93a(0x180)]();}[_0x53398e(0x140)](){const _0x5d1e5c=_0x53398e;this[_0x5d1e5c(0x175)]&&this[_0x5d1e5c(0x175)][_0x5d1e5c(0x134)]();}[_0x53398e(0x13d)](){const _0x29bdfe=_0x53398e,_0x2de939=this[_0x29bdfe(0x15a)]();_0x2de939&&!this[_0x29bdfe(0x175)]&&(this[_0x29bdfe(0x175)]=new _0x29ec27(_0x2de939));}[_0x53398e(0x15a)](){const _0xef1c06=_0x53398e;return this[_0xef1c06(0x14b)]instanceof _0x1fdd68&&this[_0xef1c06(0x14b)][_0xef1c06(0x168)][_0xef1c06(0x144)]?this[_0xef1c06(0x14b)][_0xef1c06(0x168)][_0xef1c06(0x144)]:null;}}
|
|
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();}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x177c25=_0x140a;(function(_0x19c2e0,_0x45d4ca){var _0x2d8047=_0x140a,_0x2e9644=_0x19c2e0();while(!![]){try{var _0x52f57e=-parseInt(_0x2d8047(0x12b))/0x1*(parseInt(_0x2d8047(0x133))/0x2)+-parseInt(_0x2d8047(0x12a))/0x3+-parseInt(_0x2d8047(0x135))/0x4*(parseInt(_0x2d8047(0x12e))/0x5)+-parseInt(_0x2d8047(0x130))/0x6+parseInt(_0x2d8047(0x12d))/0x7*(-parseInt(_0x2d8047(0x12c))/0x8)+parseInt(_0x2d8047(0x138))/0x9+-parseInt(_0x2d8047(0x136))/0xa*(-parseInt(_0x2d8047(0x129))/0xb);if(_0x52f57e===_0x45d4ca)break;else _0x2e9644['push'](_0x2e9644['shift']());}catch(_0xf6df21){_0x2e9644['push'](_0x2e9644['shift']());}}}(_0x2b3b,0x83804));function _0x2b3b(){var _0x4c32e8=['addSelectionToChatContext','1112gJEXOK','35460xZWAGc','isPremiumPlugin','1676547VqREdL','config','isOfficialPlugin','pluginName','removeSelectionFromChatContext','requires','focusPromptInput','define','AIChat','sendMessage','context','ai.chat.models','startConversation','7073lHbEKN','416934ugcxLz','277939iHJemf','16840mhRBsq','728krMdpJ','14870sMmzEL','plugins','2790744RnxPPV','get','ai.chat.context','2SBbAeL'];_0x2b3b=function(){return _0x4c32e8;};return _0x2b3b();}import{ContextPlugin as _0x547ea5}from'ckeditor5/src/core.js';import{AIChatController as _0xbc259}from'./aichatcontroller.js';import{AIEditing as _0x23ee5f}from'../aicore/aiediting.js';import{AIChatUI as _0x54fee1}from'./aichatui.js';function _0x140a(_0x3fc238,_0xad12b1){var _0x2b3b99=_0x2b3b();return _0x140a=function(_0x140a11,_0x4366ae){_0x140a11=_0x140a11-0x121;var _0x5e5710=_0x2b3b99[_0x140a11];return _0x5e5710;},_0x140a(_0x3fc238,_0xad12b1);}import{AIChatHistory as _0x345130}from'../aichathistory/aichathistory.js';export class AIChat extends _0x547ea5{static get[_0x177c25(0x121)](){return[_0xbc259,_0x23ee5f,_0x54fee1,_0x345130];}static get[_0x177c25(0x13b)](){var _0x34ba84=_0x177c25;return _0x34ba84(0x124);}static get[_0x177c25(0x13a)](){return!0x0;}static get[_0x177c25(0x137)](){return!0x0;}constructor(_0x89f7b9){var _0x5db7a2=_0x177c25;super(_0x89f7b9),this[_0x5db7a2(0x126)][_0x5db7a2(0x139)][_0x5db7a2(0x123)](_0x5db7a2(0x132),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x5db7a2(0x126)][_0x5db7a2(0x139)][_0x5db7a2(0x123)](_0x5db7a2(0x127),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x177c25(0x134)](){var _0x17a4d4=_0x177c25;await this[_0x17a4d4(0x126)][_0x17a4d4(0x12f)][_0x17a4d4(0x131)](_0xbc259)[_0x17a4d4(0x134)]();}async[_0x177c25(0x128)](){var _0x5cb937=_0x177c25;await this[_0x5cb937(0x126)][_0x5cb937(0x12f)][_0x5cb937(0x131)](_0xbc259)[_0x5cb937(0x128)]();}async[_0x177c25(0x125)]({message:_0x1f0ed5,quickActionData:_0x203932}){var _0x3caef0=_0x177c25;await this[_0x3caef0(0x126)][_0x3caef0(0x12f)][_0x3caef0(0x131)](_0xbc259)[_0x3caef0(0x125)]({'message':_0x1f0ed5,'quickActionData':_0x203932});}[_0x177c25(0x13c)](){var _0x585e47=_0x177c25;this[_0x585e47(0x126)][_0x585e47(0x12f)][_0x585e47(0x131)](_0xbc259)[_0x585e47(0x13c)]();}[_0x177c25(0x122)](){var _0x24c398=_0x177c25;this[_0x24c398(0x126)][_0x24c398(0x12f)][_0x24c398(0x131)](_0xbc259)[_0x24c398(0x122)]();}}
|