@ckeditor/ckeditor5-ai 47.6.1-alpha.0 → 47.6.1
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/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.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/ui/aichatballoonview.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/aichatfeedcustomelementview.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/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.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/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.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/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.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/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.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/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xf35962=_0x39c1;(function(_0xc0888b,_0x2e2257){const _0x41bf46=_0x39c1,_0x266b20=_0xc0888b();while(!![]){try{const _0x529b8f=-parseInt(_0x41bf46(0x218))/0x1+parseInt(_0x41bf46(0x28e))/0x2+parseInt(_0x41bf46(0x253))/0x3*(parseInt(_0x41bf46(0x1ec))/0x4)+parseInt(_0x41bf46(0x1f8))/0x5+-parseInt(_0x41bf46(0x1fd))/0x6+-parseInt(_0x41bf46(0x21b))/0x7*(parseInt(_0x41bf46(0x1df))/0x8)+-parseInt(_0x41bf46(0x27f))/0x9*(-parseInt(_0x41bf46(0x1fe))/0xa);if(_0x529b8f===_0x2e2257)break;else _0x266b20['push'](_0x266b20['shift']());}catch(_0x135bd2){_0x266b20['push'](_0x266b20['shift']());}}}(_0x2838,0x9b184));import{ContextPlugin as _0x37b746}from'ckeditor5/src/core.js';function _0x2838(){const _0x50903b=['destroy','677964RfMZXu','isOfficialPlugin','stopAutoScroll','7TujZjC','addContextItem','children','updateCapabilities','<p>','streaming','length','ai-reply','chat','enqueue','addFeedItemCustomElement','setInputPlaceholder','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','isTrackChangesOn','find','AI_CHAT_HEADING','</p>','setConversationContext','isPremiumPlugin','ai.models.showModelSelector','populateSourceResourceBalloon','createConversation','bind','abort','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','_promiseQueue','resetConversationTitle','get','removeItem','toggleLoadingSkeleton','updateResourceState','updateSuggestionItem','setReasoning','_animateConversationTitle','clearConversationContextUI','setFeedItemAIReplySuggestionPartActive','addFeedItemUserMessage','chatControls','displayedPrompt','config','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','_titleAnimationInterval','setConversationTitle','error-message','custom-element','setModel','isVisible','addFeedItemAISuggestion','setPromptInputValue','AITabs','clearLoadingMessage','queueEmptyPromise','_isTrackChangesCommandValueBound','ai-suggestion-reply','isBusy','enableControls','153BejmyG','removeFeedItem','AI_CHAT_WELCOME_MESSAGE','plugins','hasFeedItem','feedItemRenderingStrategy','resetMessageInput','markFeedItemAsDone','set','setWebSearch','updateSuggestionPartState','isDone','chatHeader','isMaximized','showResizeButton','remove','finishInteraction','updateFeedItemAIReplySources','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','TrackChanges','updateWebSources','getItemIds','_getInputPlaceholder','toggleSuggestionDisplayMode','disableControls','closeSourceResourceBalloon','forEach','view','label','scrollToSuggestion','locale','removeContextItem','capabilities','attributes','isDisabled','updateFeedInteractionHeader','ai.chat.welcomeMessage','_view','enableModelSelector','setAddContextOptions','setLoadingMessage','clear','addFeedItemStaticMessage','startInteraction','279nDisGh','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','startAutoScroll','conversationCreated','filter','removeFeedInteraction','chatFeed','isPending','renderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','pluginName','then','addTab','setFeedItemRenderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','1659918umKLnu','interactionId','updateReplyItem','setIsMaximized','7925496XJSKIR','_interactionPromiseResolver','addFeedInteractionHeader','value','isModelAvailable','delegate','prepareLoadingMessage','setSuggestionPartActive','hasItem','from','showDiff','setSelectedModel','availableModels','69924OUOLQU','conversation-start','insertSuggestion','areActionsDisabled','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','options','setModelList','contextItems','isLoading','clearPendingContextUI','last','focusPromptInput','5964885YvZoHD','AIChatUI','markItemAsDone','stopInteraction','scrollFeedToSuggestion','4838622KNlrtJ','63190qbhJnv','addFeedItemAIReply','updateFeedItemAIReplyContent','ai.availableReplyActions','isWebSearchEnabled','has','user-message','trackChanges','requires','values','updateFeedItemAIReplySuggestionContent','disableModelSelector','addFeedItemError','updateFeedItemAIReplySuggestionPartState','commands','interaction-header','userMessage','ai.chat.context.searchInputVisibleFrom','startsWith','isReasoningEnabled','addItem','setIsUploadInProgress','context','setContextItemLoading','fire'];_0x2838=function(){return _0x50903b;};return _0x2838();}import{_isMotionReduced as _0x32af66}from'ckeditor5/src/utils.js';import{AIChatView as _0x106820}from'./ui/aichatview.js';import{AITabs as _0x2be80f}from'../aitabs/aitabs.js';import{getTranslation as _0x4db3f4}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x30248d}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x4053d5}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x39c1(_0x5d5687,_0x2af2f4){const _0x2838fe=_0x2838();return _0x39c1=function(_0x39c1e,_0x17eb8d){_0x39c1e=_0x39c1e-0x1dd;let _0x4ad033=_0x2838fe[_0x39c1e];return _0x4ad033;},_0x39c1(_0x5d5687,_0x2af2f4);}import{PromiseQueue as _0xda5bf0}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x27c2fb}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x28806f}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x44a0fe}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x37b746{static get[_0xf35962(0x206)](){return[_0x2be80f];}[_0xf35962(0x278)];static get[_0xf35962(0x289)](){const _0x64aadc=_0xf35962;return _0x64aadc(0x1f9);}static get[_0xf35962(0x219)](){return!0x0;}static get[_0xf35962(0x22d)](){return!0x0;}[_0xf35962(0x258)]=_0xf35962(0x220);[_0xf35962(0x1e9)]=!0x0;[_0xf35962(0x234)];[_0xf35962(0x1e0)];[_0xf35962(0x244)]=void 0x0;[_0xf35962(0x24f)]=!0x1;constructor(_0x2397b5){const _0x3d8917=_0xf35962;super(_0x2397b5);const _0x146bfa=this[_0x3d8917(0x214)][_0x3d8917(0x256)][_0x3d8917(0x236)](_0x3d8917(0x24c));this[_0x3d8917(0x25b)](_0x3d8917(0x251),!0x1),this[_0x3d8917(0x234)]=new _0xda5bf0(),this[_0x3d8917(0x278)]=new _0x106820(this[_0x3d8917(0x214)][_0x3d8917(0x271)],{'showResizeButton':_0x146bfa[_0x3d8917(0x261)],'contextResourcesSearchInputVisibleFrom':this[_0x3d8917(0x214)][_0x3d8917(0x242)][_0x3d8917(0x236)](_0x3d8917(0x20f))}),this[_0x3d8917(0x278)][_0x3d8917(0x1e4)](..._0x27c2fb)['to'](this),this[_0x3d8917(0x278)]['on'](_0x3d8917(0x26a),(_0x296232,{showDiff:_0x4347a1})=>{const _0x239772=_0x3d8917;this[_0x239772(0x1e9)]=_0x4347a1;}),_0x146bfa[_0x3d8917(0x26e)][_0x3d8917(0x28b)]({'id':_0x3d8917(0x223),'buttonLabel':_0x4db3f4(this[_0x3d8917(0x214)][_0x3d8917(0x271)],_0x3d8917(0x22a)),'buttonIcon':_0x30248d,'order':0x0,'content':this[_0x3d8917(0x278)]}),this[_0x3d8917(0x278)][_0x3d8917(0x240)][_0x3d8917(0x231)](_0x3d8917(0x1f4))['to'](this,_0x3d8917(0x251),_0xb81b92=>_0xb81b92),this[_0x3d8917(0x278)][_0x3d8917(0x285)][_0x3d8917(0x231)](_0x3d8917(0x286))['to'](this,_0x3d8917(0x251),_0x18d71e=>_0x18d71e),this[_0x3d8917(0x278)][_0x3d8917(0x240)][_0x3d8917(0x226)](this[_0x3d8917(0x269)]()),this[_0x3d8917(0x231)](_0x3d8917(0x1e3))['to'](this[_0x3d8917(0x278)][_0x3d8917(0x240)],_0x3d8917(0x1e3));}[_0xf35962(0x217)](){const _0x573922=_0xf35962;super[_0x573922(0x217)](),this[_0x573922(0x244)]&&clearInterval(this[_0x573922(0x244)]);}[_0xf35962(0x230)](_0x3fc7d2){const _0x152274=_0xf35962,_0x524664=this[_0x152274(0x214)][_0x152274(0x242)][_0x152274(0x236)](_0x152274(0x277))??_0x4db3f4(this[_0x152274(0x214)][_0x152274(0x271)],_0x152274(0x255));this[_0x152274(0x278)][_0x152274(0x285)][_0x152274(0x27c)](),this[_0x152274(0x278)][_0x152274(0x240)][_0x152274(0x279)](),this[_0x152274(0x278)][_0x152274(0x240)][_0x152274(0x1f2)](_0x3fc7d2[_0x152274(0x1eb)],!this[_0x152274(0x214)][_0x152274(0x242)][_0x152274(0x236)](_0x152274(0x22e))),this[_0x152274(0x27d)]({'id':_0x152274(0x1ed),'staticMessage':_0x524664}),this[_0x152274(0x216)](_0x152274(0x282));}[_0xf35962(0x27d)]({id:_0x141fd4,staticMessage:_0x30c29c}){const _0x387c85=_0xf35962;this[_0x387c85(0x278)][_0x387c85(0x285)][_0x387c85(0x212)](_0x387c85(0x222),{'id':_0x141fd4,'initialContent':_0x387c85(0x21f)+_0x30c29c+_0x387c85(0x22b)});}[_0xf35962(0x23f)](_0x31c801){const _0x38d9ba=_0xf35962,_0x1ead8d=_0x31c801[_0x38d9ba(0x274)]?.[_0x38d9ba(0x241)]||_0x31c801[_0x38d9ba(0x20e)];this[_0x38d9ba(0x278)][_0x38d9ba(0x285)][_0x38d9ba(0x212)](_0x38d9ba(0x204),{'contextItems':Array[_0x38d9ba(0x1e8)](_0x31c801[_0x38d9ba(0x1f3)][_0x38d9ba(0x207)]()),'initialContent':_0x38d9ba(0x21f)+_0x1ead8d+_0x38d9ba(0x22b),'id':_0x31c801['id']});}[_0xf35962(0x20a)]({errorMessage:_0x3bd1a3,id:_0x335992}){const _0x47d84d=_0xf35962;this[_0x47d84d(0x278)][_0x47d84d(0x285)][_0x47d84d(0x212)](_0x47d84d(0x246),{'initialContent':_0x47d84d(0x21f)+_0x3bd1a3+_0x47d84d(0x22b),'id':_0x335992});}[_0xf35962(0x1ff)](_0x45b4a9){const _0x4d9d33=_0xf35962;return this[_0x4d9d33(0x234)][_0x4d9d33(0x224)](async()=>{const _0x5aed98=_0x4d9d33;this[_0x5aed98(0x278)][_0x5aed98(0x285)][_0x5aed98(0x212)](_0x5aed98(0x222),{'id':_0x45b4a9[_0x5aed98(0x28f)]+':'+_0x45b4a9['id']}),this[_0x5aed98(0x24d)]();});}async[_0xf35962(0x24a)](_0x47d4aa){const _0x4a1a54=_0xf35962,_0x398cd5=_0x28806f(this[_0x4a1a54(0x214)]);let _0x57dfd7=_0x398cd5[_0x4a1a54(0x242)][_0x4a1a54(0x236)](_0x4a1a54(0x201))||[..._0x44a0fe];if(_0x398cd5[_0x4a1a54(0x256)][_0x4a1a54(0x203)](_0x4a1a54(0x266))){if(!this[_0x4a1a54(0x24f)]){this[_0x4a1a54(0x24f)]=!0x0;const _0xa9e3ef=_0x398cd5[_0x4a1a54(0x20c)][_0x4a1a54(0x236)](_0x4a1a54(0x205));this[_0x4a1a54(0x278)][_0x4a1a54(0x285)][_0x4a1a54(0x231)](_0x4a1a54(0x228))['to'](_0xa9e3ef,_0x4a1a54(0x1e2));}}else _0x57dfd7=_0x57dfd7[_0x4a1a54(0x283)](_0xd51c38=>_0x4a1a54(0x1ee)!=_0xd51c38);return this[_0x4a1a54(0x234)][_0x4a1a54(0x224)](async()=>{const _0x132f14=_0x4a1a54;this[_0x132f14(0x278)][_0x132f14(0x285)][_0x132f14(0x212)](_0x132f14(0x250),{'id':_0x47d4aa[_0x132f14(0x28f)]+':'+_0x47d4aa['id'],'areActionsDisabled':_0x47d4aa[_0x132f14(0x1ef)],'showDiff':this[_0x132f14(0x1e9)],'availableActions':_0x57dfd7}),this[_0x132f14(0x24d)]();});}[_0xf35962(0x1e1)](_0x2bed63,_0x53d801){const _0xdc44bc=_0xf35962,_0x3fd278=this[_0xdc44bc(0x278)][_0xdc44bc(0x285)][_0xdc44bc(0x21d)][_0xdc44bc(0x1f6)];if(_0x3fd278 instanceof _0x4053d5)return this[_0xdc44bc(0x278)][_0xdc44bc(0x285)][_0xdc44bc(0x21d)][_0xdc44bc(0x262)](_0x3fd278),void this[_0xdc44bc(0x278)][_0xdc44bc(0x285)][_0xdc44bc(0x212)](_0xdc44bc(0x20d),{'id':_0x2bed63['id'],'capabilities':{'isWebSearchEnabled':_0x3fd278[_0xdc44bc(0x273)][_0xdc44bc(0x202)]||_0x53d801[_0xdc44bc(0x202)],'isReasoningEnabled':_0x3fd278[_0xdc44bc(0x273)][_0xdc44bc(0x211)]||_0x53d801[_0xdc44bc(0x211)]}});this[_0xdc44bc(0x278)][_0xdc44bc(0x285)][_0xdc44bc(0x212)](_0xdc44bc(0x20d),{'id':_0x2bed63['id'],'capabilities':_0x53d801});}async[_0xf35962(0x225)](_0x3c88f8,_0x22a01a){const _0x2bea92=_0xf35962;let _0x4fa8f7;return await this[_0x2bea92(0x234)][_0x2bea92(0x224)](async()=>{const _0x1f39ef=_0x2bea92;_0x4fa8f7=this[_0x1f39ef(0x278)][_0x1f39ef(0x285)][_0x1f39ef(0x212)](_0x1f39ef(0x247),{'content':_0x3c88f8,'id':_0x22a01a});}),_0x4fa8f7;}[_0xf35962(0x254)](_0x3d3375){const _0x4d57a7=_0xf35962;this[_0x4d57a7(0x278)][_0x4d57a7(0x285)][_0x4d57a7(0x237)](_0x3d3375);}[_0xf35962(0x257)](_0x2cbe2c){const _0x232884=_0xf35962;return this[_0x232884(0x278)][_0x232884(0x285)][_0x232884(0x1e7)](_0x2cbe2c);}[_0xf35962(0x276)](_0x5c68be){const _0x29cf61=_0xf35962,_0x380ebe=this[_0x29cf61(0x278)][_0x29cf61(0x285)][_0x29cf61(0x21d)][_0x29cf61(0x229)](_0x379e83=>_0x379e83[_0x29cf61(0x1f1)]['id']==_0x5c68be['id']&&_0x379e83 instanceof _0x4053d5);_0x380ebe&&_0x380ebe[_0x29cf61(0x25b)](_0x29cf61(0x249),_0x5c68be[_0x29cf61(0x249)]);}async[_0xf35962(0x200)](_0x22ce41){const _0x38c8dd=_0xf35962,_0xb8fe83=_0x22ce41[_0x38c8dd(0x287)]||this[_0x38c8dd(0x258)];return this[_0x38c8dd(0x234)][_0x38c8dd(0x224)](async _0x5c44b2=>{const _0x11a036=_0x38c8dd;await this[_0x11a036(0x278)][_0x11a036(0x285)][_0x11a036(0x1dd)]({..._0x22ce41,'abortSignal':_0x5c44b2,'renderingStrategy':_0xb8fe83}),_0x22ce41[_0x11a036(0x25e)]&&this[_0x11a036(0x25a)](_0x22ce41['id']);});}[_0xf35962(0x264)](_0x390a80,_0x2f75ea){const _0x34fad4=_0xf35962;this[_0x34fad4(0x278)][_0x34fad4(0x285)][_0x34fad4(0x267)](_0x390a80,_0x2f75ea);}async[_0xf35962(0x208)](_0x49f42e){const _0x26946d=_0xf35962,_0x2c6dc8=_0x49f42e[_0x26946d(0x287)]||this[_0x26946d(0x258)];return this[_0x26946d(0x234)][_0x26946d(0x224)](async _0x9b9f96=>{const _0x51e8c7=_0x26946d;await this[_0x51e8c7(0x278)][_0x51e8c7(0x285)][_0x51e8c7(0x23a)]({..._0x49f42e,'abortSignal':_0x9b9f96,'renderingStrategy':_0x2c6dc8}),_0x49f42e[_0x51e8c7(0x25e)]&&this[_0x51e8c7(0x25a)](_0x49f42e['id']);});}[_0xf35962(0x20b)](_0x828404){const _0x205c1a=_0xf35962;this[_0x205c1a(0x278)][_0x205c1a(0x285)][_0x205c1a(0x25d)](_0x828404);}[_0xf35962(0x23e)](_0x392a75){const _0x3f01f2=_0xf35962;this[_0x3f01f2(0x278)][_0x3f01f2(0x285)][_0x3f01f2(0x1e6)](_0x392a75);}[_0xf35962(0x25a)](_0x456a27){const _0xafa3d=_0xf35962;this[_0xafa3d(0x278)][_0xafa3d(0x285)][_0xafa3d(0x1fa)](_0x456a27);}[_0xf35962(0x284)](_0x5247ac){const _0x314258=_0xf35962;this[_0x314258(0x278)][_0x314258(0x285)][_0x314258(0x268)]()[_0x314258(0x283)](_0x50b76d=>_0x50b76d[_0x314258(0x210)](_0x5247ac))[_0x314258(0x26d)](_0x9900cb=>this[_0x314258(0x278)][_0x314258(0x285)][_0x314258(0x237)](_0x9900cb));}[_0xf35962(0x27e)](){const _0x22ebfe=_0xf35962,_0x3d2ebc=this[_0x22ebfe(0x1e5)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x22ebfe(0x27b)](_0x3d2ebc),this[_0x22ebfe(0x278)][_0x22ebfe(0x240)][_0x22ebfe(0x209)](!this[_0x22ebfe(0x214)][_0x22ebfe(0x242)][_0x22ebfe(0x236)](_0x22ebfe(0x22e))),this[_0x22ebfe(0x251)]=!0x0,this[_0x22ebfe(0x278)][_0x22ebfe(0x285)][_0x22ebfe(0x281)]();}[_0xf35962(0x1fb)](_0x212412){const _0x15d15f=_0xf35962;this[_0x15d15f(0x234)][_0x15d15f(0x232)](),this[_0x15d15f(0x278)][_0x15d15f(0x285)][_0x15d15f(0x268)]()[_0x15d15f(0x283)](_0xddfdbc=>_0xddfdbc[_0x15d15f(0x210)](_0x212412['id']))[_0x15d15f(0x26d)](_0x5d9651=>this[_0x15d15f(0x25a)](_0x5d9651)),this[_0x15d15f(0x251)]=!0x1,this[_0x15d15f(0x278)][_0x15d15f(0x285)][_0x15d15f(0x21a)]();}async[_0xf35962(0x263)](){const _0xfb1454=_0xf35962;return this[_0xfb1454(0x234)][_0xfb1454(0x24e)][_0xfb1454(0x28a)](()=>{const _0x5ab900=_0xfb1454;this[_0x5ab900(0x251)]=!0x1,this[_0x5ab900(0x278)][_0x5ab900(0x285)][_0x5ab900(0x21a)]();});}[_0xf35962(0x21c)](_0x2b6364,_0x38e3dc){const _0x5ecb6e=_0xf35962;this[_0x5ecb6e(0x278)][_0x5ecb6e(0x240)][_0x5ecb6e(0x21c)](_0x2b6364,_0x38e3dc);}[_0xf35962(0x272)](_0x462ad4){const _0x1054f8=_0xf35962;this[_0x1054f8(0x278)][_0x1054f8(0x240)][_0x1054f8(0x272)](_0x462ad4);}[_0xf35962(0x215)](_0x1d94a2,_0x54aec){const _0x32a994=_0xf35962;this[_0x32a994(0x278)][_0x32a994(0x240)][_0x32a994(0x215)](_0x1d94a2,_0x54aec);}[_0xf35962(0x213)](_0x3f71a4){const _0x3ebcae=_0xf35962;this[_0x3ebcae(0x278)][_0x3ebcae(0x240)][_0x3ebcae(0x213)](_0x3f71a4);}[_0xf35962(0x22c)](_0xe56dbc){const _0x2652f6=_0xf35962;this[_0x2652f6(0x278)][_0x2652f6(0x240)][_0x2652f6(0x22c)](_0xe56dbc);}[_0xf35962(0x1f5)](){const _0x3d95c7=_0xf35962;this[_0x3d95c7(0x278)][_0x3d95c7(0x240)][_0x3d95c7(0x1f5)]();}[_0xf35962(0x23d)](){const _0x152170=_0xf35962;this[_0x152170(0x278)][_0x152170(0x240)][_0x152170(0x23d)]();}[_0xf35962(0x239)](_0x515d18,_0x4f68d3,_0x5d6d9f){const _0x2050a7=_0xf35962;this[_0x2050a7(0x278)][_0x2050a7(0x240)][_0x2050a7(0x239)](_0x515d18,_0x4f68d3,_0x5d6d9f);}[_0xf35962(0x259)](){const _0x5511c8=_0xf35962;this[_0x5511c8(0x278)][_0x5511c8(0x240)][_0x5511c8(0x259)](),this[_0x5511c8(0x278)][_0x5511c8(0x240)][_0x5511c8(0x226)](this[_0x5511c8(0x269)]());}[_0xf35962(0x27a)](_0x2d49f5){const _0x124ab0=_0xf35962;this[_0x124ab0(0x278)][_0x124ab0(0x240)][_0x124ab0(0x27a)](_0x2d49f5);}[_0xf35962(0x21e)](_0x342da9){const _0x1fd000=_0xf35962;this[_0x1fd000(0x278)][_0x1fd000(0x240)][_0x1fd000(0x25c)](_0x342da9[_0x1fd000(0x202)]),this[_0x1fd000(0x278)][_0x1fd000(0x240)][_0x1fd000(0x23b)](_0x342da9[_0x1fd000(0x211)]),this[_0x1fd000(0x278)][_0x1fd000(0x240)][_0x1fd000(0x226)](this[_0x1fd000(0x269)](_0x342da9));}[_0xf35962(0x1ea)](_0x5aecd9,_0x3c0590){const _0x4c34bc=_0xf35962;this[_0x4c34bc(0x278)][_0x4c34bc(0x240)][_0x4c34bc(0x248)](_0x5aecd9),_0x3c0590&&this[_0x4c34bc(0x278)][_0x4c34bc(0x240)][_0x4c34bc(0x209)](!0x1);}[_0xf35962(0x28c)](_0x546b8a){const _0x1f0357=_0xf35962;this[_0x1f0357(0x258)]=_0x546b8a;}[_0xf35962(0x238)](_0xc8c95f){const _0x592f10=_0xf35962;this[_0x592f10(0x278)][_0x592f10(0x285)][_0x592f10(0x238)](_0xc8c95f);}[_0xf35962(0x235)](){const _0x5c005c=_0xf35962;this[_0x5c005c(0x245)](_0x4db3f4(this[_0x5c005c(0x214)][_0x5c005c(0x271)],_0x5c005c(0x22a)));}[_0xf35962(0x245)](_0xe22c55,_0x440c3b=!0x1){const _0x43953f=_0xf35962;if(_0x440c3b&&!_0x32af66()&&_0xe22c55[_0x43953f(0x221)])return this[_0x43953f(0x278)][_0x43953f(0x25f)][_0x43953f(0x26f)]='',void this[_0x43953f(0x23c)](_0xe22c55);this[_0x43953f(0x278)][_0x43953f(0x25f)][_0x43953f(0x26f)]=_0xe22c55;}[_0xf35962(0x27b)](_0x57d18f){const _0x5eccbc=_0xf35962;this[_0x5eccbc(0x278)][_0x5eccbc(0x285)][_0x5eccbc(0x27b)](_0x57d18f);}[_0xf35962(0x24d)](){const _0x421e4b=_0xf35962;this[_0x421e4b(0x278)][_0x421e4b(0x285)][_0x421e4b(0x27b)]('');}[_0xf35962(0x23c)](_0x5da456){const _0x308aa4=_0xf35962;let _0x3e87e9=0x0;clearInterval(this[_0x308aa4(0x244)]),this[_0x308aa4(0x244)]=setInterval(()=>{const _0x5cf548=_0x308aa4;this[_0x5cf548(0x278)][_0x5cf548(0x25f)][_0x5cf548(0x26f)]=this[_0x5cf548(0x278)][_0x5cf548(0x25f)][_0x5cf548(0x26f)]+_0x5da456[_0x3e87e9],_0x3e87e9++,_0x3e87e9===_0x5da456[_0x5cf548(0x221)]&&clearInterval(this[_0x5cf548(0x244)]);},0x1e);}[_0xf35962(0x1de)](_0x3de441){const _0x2ea9cf=_0xf35962;this[_0x2ea9cf(0x278)][_0x2ea9cf(0x25f)][_0x2ea9cf(0x260)]=_0x3de441;}[_0xf35962(0x1e5)](_0x4b279d){const _0x561258=_0xf35962;return _0x4b279d[_0x561258(0x202)]&&_0x4b279d[_0x561258(0x211)]?_0x4db3f4(this[_0x561258(0x214)][_0x561258(0x271)],_0x561258(0x265)):_0x4b279d[_0x561258(0x202)]?_0x4db3f4(this[_0x561258(0x214)][_0x561258(0x271)],_0x561258(0x1f0)):_0x4b279d[_0x561258(0x211)]?_0x4db3f4(this[_0x561258(0x214)][_0x561258(0x271)],_0x561258(0x233)):_0x4db3f4(this[_0x561258(0x214)][_0x561258(0x271)],_0x561258(0x243));}[_0xf35962(0x269)](_0x1cde79){const _0x31095e=_0xf35962;return _0x1cde79?_0x1cde79[_0x31095e(0x202)]&&_0x1cde79[_0x31095e(0x211)]?_0x4db3f4(this[_0x31095e(0x214)][_0x31095e(0x271)],_0x31095e(0x28d)):_0x1cde79[_0x31095e(0x202)]?_0x4db3f4(this[_0x31095e(0x214)][_0x31095e(0x271)],_0x31095e(0x227)):_0x1cde79[_0x31095e(0x211)]?_0x4db3f4(this[_0x31095e(0x214)][_0x31095e(0x271)],_0x31095e(0x288)):_0x4db3f4(this[_0x31095e(0x214)][_0x31095e(0x271)],_0x31095e(0x280)):_0x4db3f4(this[_0x31095e(0x214)][_0x31095e(0x271)],_0x31095e(0x280));}[_0xf35962(0x22f)](_0x5488f2,_0x44a965,_0x1dece1,_0x7a01d6){const _0x425250=_0xf35962;this[_0x425250(0x278)][_0x425250(0x22f)](_0x5488f2,_0x44a965,_0x1dece1,_0x7a01d6);}[_0xf35962(0x26c)](_0x406288){const _0x234fff=_0xf35962;this[_0x234fff(0x278)][_0x234fff(0x26c)](_0x406288);}[_0xf35962(0x24b)](_0x123289){const _0x48b2ab=_0xf35962;this[_0x48b2ab(0x278)][_0x48b2ab(0x240)][_0x48b2ab(0x24b)](_0x123289);}[_0xf35962(0x1f7)](_0x154522=!0x1){const _0x57bbfd=_0xf35962;this[_0x57bbfd(0x278)][_0x57bbfd(0x240)][_0x57bbfd(0x1f7)](_0x154522);}[_0xf35962(0x1fc)](_0x2ec99e,_0x17eeee){const _0x238bcf=_0xf35962;this[_0x238bcf(0x278)][_0x238bcf(0x285)][_0x238bcf(0x270)](_0x2ec99e,_0x17eeee);}[_0xf35962(0x281)](){const _0x3028eb=_0xf35962;this[_0x3028eb(0x278)][_0x3028eb(0x285)][_0x3028eb(0x281)]();}[_0xf35962(0x26b)](){const _0x37d29b=_0xf35962;this[_0x37d29b(0x278)][_0x37d29b(0x240)][_0x37d29b(0x275)]=!0x0;}[_0xf35962(0x252)](){const _0xa48c9a=_0xf35962;this[_0xa48c9a(0x278)][_0xa48c9a(0x240)][_0xa48c9a(0x275)]=!0x1;}}
|
|
23
|
+
const _0x4b8d0e=_0x2ae9;(function(_0x3cb24f,_0x8bd20a){const _0x4aeb7d=_0x2ae9,_0x1a95d=_0x3cb24f();while(!![]){try{const _0x154e41=parseInt(_0x4aeb7d(0x1f4))/0x1+-parseInt(_0x4aeb7d(0x1d0))/0x2+-parseInt(_0x4aeb7d(0x252))/0x3*(parseInt(_0x4aeb7d(0x1c0))/0x4)+parseInt(_0x4aeb7d(0x231))/0x5*(-parseInt(_0x4aeb7d(0x256))/0x6)+parseInt(_0x4aeb7d(0x24d))/0x7+parseInt(_0x4aeb7d(0x245))/0x8+parseInt(_0x4aeb7d(0x244))/0x9*(parseInt(_0x4aeb7d(0x23c))/0xa);if(_0x154e41===_0x8bd20a)break;else _0x1a95d['push'](_0x1a95d['shift']());}catch(_0x1b4cba){_0x1a95d['push'](_0x1a95d['shift']());}}}(_0x3128,0xb8669));import{ContextPlugin as _0x257589}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x2ec60e}from'ckeditor5/src/utils.js';import{AIChatView as _0x1c009d}from'./ui/aichatview.js';function _0x2ae9(_0x5ecc10,_0x4b577a){const _0x312863=_0x3128();return _0x2ae9=function(_0x2ae9df,_0x33e581){_0x2ae9df=_0x2ae9df-0x1aa;let _0x584781=_0x312863[_0x2ae9df];return _0x584781;},_0x2ae9(_0x5ecc10,_0x4b577a);}function _0x3128(){const _0x4d08fa=['set','disableControls','capabilities','find','enableControls','isOfficialPlugin','finishInteraction','updateSuggestionItem','abort','clearPendingContextUI','_promiseQueue','5eahwtY','setSelectedModel','isWebSearchEnabled','displayedPrompt','AI_CHAT_WELCOME_MESSAGE','AITabs','setModelList','addFeedItemAIReply','removeContextItem','showDiff','createConversation','642650UzavHj','updateCapabilities','setReasoning','error-message','user-message','isModelAvailable','ai.models.showModelSelector','addFeedInteractionHeader','315TriQoR','1034352UYBcnc','interactionId','stopAutoScroll','addTab','conversationCreated','from','resetMessageInput','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','1750287MYOJlG','AIChatUI','_animateConversationTitle','disableModelSelector','markFeedItemAsDone','7485aNjuKN','addFeedItemAISuggestion','updateFeedInteractionHeader','prepareLoadingMessage','7058322ovMnfd','length','forEach','setFeedItemRenderingStrategy','custom-element','populateSourceResourceBalloon','isDone','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','chatHeader','removeFeedInteraction','updateFeedItemAIReplySuggestionContent','requires','isDisabled','removeFeedItem','renderingStrategy','TrackChanges','view','attributes','_getInputPlaceholder','<p>','ai.chat.welcomeMessage','insertSuggestion','_titleAnimationInterval','getItemIds','setIsMaximized','isMaximized','has','fire','value','1424vGJAuQ','scrollFeedToSuggestion','clear','startAutoScroll','focusPromptInput','enableModelSelector','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','showResizeButton','setPromptInputValue','setConversationContext','_view','hasItem','conversation-start','setInputPlaceholder','feedItemRenderingStrategy','removeItem','1676506JKNdtM','_isTrackChangesCommandValueBound','addContextItem','contextItems','closeSourceResourceBalloon','setContextItemLoading','addItem','options','clearConversationContextUI','</p>','delegate','chatControls','isPremiumPlugin','addFeedItemError','setIsUploadInProgress','pluginName','chat','filter','ai-reply','get','addFeedItemStaticMessage','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','queueEmptyPromise','markItemAsDone','isBusy','remove','interaction-header','plugins','label','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','resetConversationTitle','setLoadingMessage','clearLoadingMessage','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','trackChanges','children','1029555QfPpKq','last','isPending','ai.availableReplyActions','destroy','hasFeedItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','ai-suggestion-reply','availableModels','updateFeedItemAIReplyContent','then','updateFeedItemAIReplySuggestionPartState','stopInteraction','streaming','updateResourceState','setConversationTitle','startsWith','setSuggestionPartActive','scrollToSuggestion','setWebSearch','setAddContextOptions','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','isTrackChangesOn','_interactionPromiseResolver','toggleLoadingSkeleton','AI_CHAT_HEADING','updateFeedItemAIReplySources','enqueue','values','addFeedItemUserMessage','setFeedItemAIReplySuggestionPartActive','context','toggleSuggestionDisplayMode','isReasoningEnabled','areActionsDisabled','ai.chat.context.searchInputVisibleFrom','setModel','isVisible','config','commands','updateWebSources','updateReplyItem','userMessage','isLoading','chatFeed','startInteraction','updateSuggestionPartState','addFeedItemCustomElement','locale','bind'];_0x3128=function(){return _0x4d08fa;};return _0x3128();}import{AITabs as _0x571281}from'../aitabs/aitabs.js';import{getTranslation as _0x1e499c}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x51b551}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0xdd15a5}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x1b679b}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x259c61}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x16cdc4}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x3a212b}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x257589{static get[_0x4b8d0e(0x1ae)](){return[_0x571281];}[_0x4b8d0e(0x1ca)];static get[_0x4b8d0e(0x1df)](){const _0x32a3a1=_0x4b8d0e;return _0x32a3a1(0x24e);}static get[_0x4b8d0e(0x22b)](){return!0x0;}static get[_0x4b8d0e(0x1dc)](){return!0x0;}[_0x4b8d0e(0x1ce)]=_0x4b8d0e(0x201);[_0x4b8d0e(0x23a)]=!0x0;[_0x4b8d0e(0x230)];[_0x4b8d0e(0x20b)];[_0x4b8d0e(0x1b9)]=void 0x0;[_0x4b8d0e(0x1d1)]=!0x1;constructor(_0x4f429d){const _0x49cf6c=_0x4b8d0e;super(_0x4f429d);const _0x53eaff=this[_0x49cf6c(0x213)][_0x49cf6c(0x1eb)][_0x49cf6c(0x1e3)](_0x49cf6c(0x236));this[_0x49cf6c(0x226)](_0x49cf6c(0x1e8),!0x1),this[_0x49cf6c(0x230)]=new _0x1b679b(),this[_0x49cf6c(0x1ca)]=new _0x1c009d(this[_0x49cf6c(0x213)][_0x49cf6c(0x224)],{'showResizeButton':_0x53eaff[_0x49cf6c(0x1c7)],'contextResourcesSearchInputVisibleFrom':this[_0x49cf6c(0x213)][_0x49cf6c(0x21a)][_0x49cf6c(0x1e3)](_0x49cf6c(0x217))}),this[_0x49cf6c(0x1ca)][_0x49cf6c(0x1da)](..._0x259c61)['to'](this),this[_0x49cf6c(0x1ca)]['on'](_0x49cf6c(0x214),(_0x545ffa,{showDiff:_0x4bd23f})=>{const _0x547b89=_0x49cf6c;this[_0x547b89(0x23a)]=_0x4bd23f;}),_0x53eaff[_0x49cf6c(0x1b3)][_0x49cf6c(0x248)]({'id':_0x49cf6c(0x1e0),'buttonLabel':_0x1e499c(this[_0x49cf6c(0x213)][_0x49cf6c(0x224)],_0x49cf6c(0x20d)),'buttonIcon':_0x51b551,'order':0x0,'content':this[_0x49cf6c(0x1ca)]}),this[_0x49cf6c(0x1ca)][_0x49cf6c(0x1db)][_0x49cf6c(0x225)](_0x49cf6c(0x21f))['to'](this,_0x49cf6c(0x1e8),_0x5d2a5a=>_0x5d2a5a),this[_0x49cf6c(0x1ca)][_0x49cf6c(0x220)][_0x49cf6c(0x225)](_0x49cf6c(0x1f6))['to'](this,_0x49cf6c(0x1e8),_0x35525a=>_0x35525a),this[_0x49cf6c(0x1ca)][_0x49cf6c(0x1db)][_0x49cf6c(0x1cd)](this[_0x49cf6c(0x1b5)]()),this[_0x49cf6c(0x225)](_0x49cf6c(0x241))['to'](this[_0x49cf6c(0x1ca)][_0x49cf6c(0x1db)],_0x49cf6c(0x241));}[_0x4b8d0e(0x1f8)](){const _0x29ac61=_0x4b8d0e;super[_0x29ac61(0x1f8)](),this[_0x29ac61(0x1b9)]&&clearInterval(this[_0x29ac61(0x1b9)]);}[_0x4b8d0e(0x23b)](_0x26a2ab){const _0x124174=_0x4b8d0e,_0x1aabd4=this[_0x124174(0x213)][_0x124174(0x21a)][_0x124174(0x1e3)](_0x124174(0x1b7))??_0x1e499c(this[_0x124174(0x213)][_0x124174(0x224)],_0x124174(0x235));this[_0x124174(0x1ca)][_0x124174(0x220)][_0x124174(0x1c2)](),this[_0x124174(0x1ca)][_0x124174(0x1db)][_0x124174(0x1c5)](),this[_0x124174(0x1ca)][_0x124174(0x1db)][_0x124174(0x237)](_0x26a2ab[_0x124174(0x1fc)],!this[_0x124174(0x213)][_0x124174(0x21a)][_0x124174(0x1e3)](_0x124174(0x242))),this[_0x124174(0x1e4)]({'id':_0x124174(0x1cc),'staticMessage':_0x1aabd4}),this[_0x124174(0x1be)](_0x124174(0x249));}[_0x4b8d0e(0x1e4)]({id:_0x530cec,staticMessage:_0x420523}){const _0x2ab45d=_0x4b8d0e;this[_0x2ab45d(0x1ca)][_0x2ab45d(0x220)][_0x2ab45d(0x1d6)](_0x2ab45d(0x1e2),{'id':_0x530cec,'initialContent':_0x2ab45d(0x1b6)+_0x420523+_0x2ab45d(0x1d9)});}[_0x4b8d0e(0x211)](_0x19aeb9){const _0x90b99=_0x4b8d0e,_0x445b88=_0x19aeb9[_0x90b99(0x1b4)]?.[_0x90b99(0x234)]||_0x19aeb9[_0x90b99(0x21e)];this[_0x90b99(0x1ca)][_0x90b99(0x220)][_0x90b99(0x1d6)](_0x90b99(0x240),{'contextItems':Array[_0x90b99(0x24a)](_0x19aeb9[_0x90b99(0x1d3)][_0x90b99(0x210)]()),'initialContent':_0x90b99(0x1b6)+_0x445b88+_0x90b99(0x1d9),'id':_0x19aeb9['id']});}[_0x4b8d0e(0x1dd)]({errorMessage:_0x207677,id:_0x15a642}){const _0x5b9bc6=_0x4b8d0e;this[_0x5b9bc6(0x1ca)][_0x5b9bc6(0x220)][_0x5b9bc6(0x1d6)](_0x5b9bc6(0x23f),{'initialContent':_0x5b9bc6(0x1b6)+_0x207677+_0x5b9bc6(0x1d9),'id':_0x15a642});}[_0x4b8d0e(0x238)](_0x3bd849){const _0x3c8f47=_0x4b8d0e;return this[_0x3c8f47(0x230)][_0x3c8f47(0x20f)](async()=>{const _0x4b846e=_0x3c8f47;this[_0x4b846e(0x1ca)][_0x4b846e(0x220)][_0x4b846e(0x1d6)](_0x4b846e(0x1e2),{'id':_0x3bd849[_0x4b846e(0x246)]+':'+_0x3bd849['id']}),this[_0x4b846e(0x1f0)]();});}async[_0x4b8d0e(0x253)](_0x6d43f2){const _0x29e74b=_0x4b8d0e,_0x47bf44=_0x16cdc4(this[_0x29e74b(0x213)]);let _0x25f5da=_0x47bf44[_0x29e74b(0x21a)][_0x29e74b(0x1e3)](_0x29e74b(0x1f7))||[..._0x3a212b];if(_0x47bf44[_0x29e74b(0x1eb)][_0x29e74b(0x1bd)](_0x29e74b(0x1b2))){if(!this[_0x29e74b(0x1d1)]){this[_0x29e74b(0x1d1)]=!0x0;const _0x22aae5=_0x47bf44[_0x29e74b(0x21b)][_0x29e74b(0x1e3)](_0x29e74b(0x1f2));this[_0x29e74b(0x1ca)][_0x29e74b(0x220)][_0x29e74b(0x225)](_0x29e74b(0x20a))['to'](_0x22aae5,_0x29e74b(0x1bf));}}else _0x25f5da=_0x25f5da[_0x29e74b(0x1e1)](_0x46a944=>_0x29e74b(0x1b8)!=_0x46a944);return this[_0x29e74b(0x230)][_0x29e74b(0x20f)](async()=>{const _0x5cad94=_0x29e74b;this[_0x5cad94(0x1ca)][_0x5cad94(0x220)][_0x5cad94(0x1d6)](_0x5cad94(0x1fb),{'id':_0x6d43f2[_0x5cad94(0x246)]+':'+_0x6d43f2['id'],'areActionsDisabled':_0x6d43f2[_0x5cad94(0x216)],'showDiff':this[_0x5cad94(0x23a)],'availableActions':_0x25f5da}),this[_0x5cad94(0x1f0)]();});}[_0x4b8d0e(0x243)](_0x541e10,_0x484587){const _0xd8d50b=_0x4b8d0e,_0x3020bb=this[_0xd8d50b(0x1ca)][_0xd8d50b(0x220)][_0xd8d50b(0x1f3)][_0xd8d50b(0x1f5)];if(_0x3020bb instanceof _0xdd15a5)return this[_0xd8d50b(0x1ca)][_0xd8d50b(0x220)][_0xd8d50b(0x1f3)][_0xd8d50b(0x1e9)](_0x3020bb),void this[_0xd8d50b(0x1ca)][_0xd8d50b(0x220)][_0xd8d50b(0x1d6)](_0xd8d50b(0x1ea),{'id':_0x541e10['id'],'capabilities':{'isWebSearchEnabled':_0x3020bb[_0xd8d50b(0x228)][_0xd8d50b(0x233)]||_0x484587[_0xd8d50b(0x233)],'isReasoningEnabled':_0x3020bb[_0xd8d50b(0x228)][_0xd8d50b(0x215)]||_0x484587[_0xd8d50b(0x215)]}});this[_0xd8d50b(0x1ca)][_0xd8d50b(0x220)][_0xd8d50b(0x1d6)](_0xd8d50b(0x1ea),{'id':_0x541e10['id'],'capabilities':_0x484587});}async[_0x4b8d0e(0x223)](_0x3d8bb8,_0x21cca3){const _0x26a2dd=_0x4b8d0e;let _0x371c7a;return await this[_0x26a2dd(0x230)][_0x26a2dd(0x20f)](async()=>{const _0x15ca84=_0x26a2dd;_0x371c7a=this[_0x15ca84(0x1ca)][_0x15ca84(0x220)][_0x15ca84(0x1d6)](_0x15ca84(0x25a),{'content':_0x3d8bb8,'id':_0x21cca3});}),_0x371c7a;}[_0x4b8d0e(0x1b0)](_0x553891){const _0x260a43=_0x4b8d0e;this[_0x260a43(0x1ca)][_0x260a43(0x220)][_0x260a43(0x1cf)](_0x553891);}[_0x4b8d0e(0x1f9)](_0x4e4362){const _0x19c009=_0x4b8d0e;return this[_0x19c009(0x1ca)][_0x19c009(0x220)][_0x19c009(0x1cb)](_0x4e4362);}[_0x4b8d0e(0x254)](_0x28ff0a){const _0x383a40=_0x4b8d0e,_0x46758d=this[_0x383a40(0x1ca)][_0x383a40(0x220)][_0x383a40(0x1f3)][_0x383a40(0x229)](_0x45efc0=>_0x45efc0[_0x383a40(0x1d7)]['id']==_0x28ff0a['id']&&_0x45efc0 instanceof _0xdd15a5);_0x46758d&&_0x46758d[_0x383a40(0x226)](_0x383a40(0x219),_0x28ff0a[_0x383a40(0x219)]);}async[_0x4b8d0e(0x1fd)](_0x3421bb){const _0x3c0fb9=_0x4b8d0e,_0x230880=_0x3421bb[_0x3c0fb9(0x1b1)]||this[_0x3c0fb9(0x1ce)];return this[_0x3c0fb9(0x230)][_0x3c0fb9(0x20f)](async _0xc3c62=>{const _0x19bea6=_0x3c0fb9;await this[_0x19bea6(0x1ca)][_0x19bea6(0x220)][_0x19bea6(0x21d)]({..._0x3421bb,'abortSignal':_0xc3c62,'renderingStrategy':_0x230880}),_0x3421bb[_0x19bea6(0x25c)]&&this[_0x19bea6(0x251)](_0x3421bb['id']);});}[_0x4b8d0e(0x20e)](_0x2ec758,_0x576b66){const _0x1ab056=_0x4b8d0e;this[_0x1ab056(0x1ca)][_0x1ab056(0x220)][_0x1ab056(0x21c)](_0x2ec758,_0x576b66);}async[_0x4b8d0e(0x1ad)](_0xa5a820){const _0x3740b0=_0x4b8d0e,_0x168d5e=_0xa5a820[_0x3740b0(0x1b1)]||this[_0x3740b0(0x1ce)];return this[_0x3740b0(0x230)][_0x3740b0(0x20f)](async _0x1e238f=>{const _0x19811e=_0x3740b0;await this[_0x19811e(0x1ca)][_0x19811e(0x220)][_0x19811e(0x22d)]({..._0xa5a820,'abortSignal':_0x1e238f,'renderingStrategy':_0x168d5e}),_0xa5a820[_0x19811e(0x25c)]&&this[_0x19811e(0x251)](_0xa5a820['id']);});}[_0x4b8d0e(0x1ff)](_0x281aa6){const _0x1d17e6=_0x4b8d0e;this[_0x1d17e6(0x1ca)][_0x1d17e6(0x220)][_0x1d17e6(0x222)](_0x281aa6);}[_0x4b8d0e(0x212)](_0x358e4e){const _0x59abbb=_0x4b8d0e;this[_0x59abbb(0x1ca)][_0x59abbb(0x220)][_0x59abbb(0x205)](_0x358e4e);}[_0x4b8d0e(0x251)](_0x4f5442){const _0x3eae04=_0x4b8d0e;this[_0x3eae04(0x1ca)][_0x3eae04(0x220)][_0x3eae04(0x1e7)](_0x4f5442);}[_0x4b8d0e(0x1ac)](_0x7c8b57){const _0xc1c6ae=_0x4b8d0e;this[_0xc1c6ae(0x1ca)][_0xc1c6ae(0x220)][_0xc1c6ae(0x1ba)]()[_0xc1c6ae(0x1e1)](_0x13a621=>_0x13a621[_0xc1c6ae(0x204)](_0x7c8b57))[_0xc1c6ae(0x258)](_0x466095=>this[_0xc1c6ae(0x1ca)][_0xc1c6ae(0x220)][_0xc1c6ae(0x1cf)](_0x466095));}[_0x4b8d0e(0x221)](){const _0x580e3a=_0x4b8d0e,_0x3dcf80=this[_0x580e3a(0x255)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x580e3a(0x1ef)](_0x3dcf80),this[_0x580e3a(0x1ca)][_0x580e3a(0x1db)][_0x580e3a(0x250)](!this[_0x580e3a(0x213)][_0x580e3a(0x21a)][_0x580e3a(0x1e3)](_0x580e3a(0x242))),this[_0x580e3a(0x1e8)]=!0x0,this[_0x580e3a(0x1ca)][_0x580e3a(0x220)][_0x580e3a(0x1c3)]();}[_0x4b8d0e(0x200)](_0x177714){const _0x1ae527=_0x4b8d0e;this[_0x1ae527(0x230)][_0x1ae527(0x22e)](),this[_0x1ae527(0x1ca)][_0x1ae527(0x220)][_0x1ae527(0x1ba)]()[_0x1ae527(0x1e1)](_0x3adaa9=>_0x3adaa9[_0x1ae527(0x204)](_0x177714['id']))[_0x1ae527(0x258)](_0x366f7a=>this[_0x1ae527(0x251)](_0x366f7a)),this[_0x1ae527(0x1e8)]=!0x1,this[_0x1ae527(0x1ca)][_0x1ae527(0x220)][_0x1ae527(0x247)]();}async[_0x4b8d0e(0x22c)](){const _0x3b0597=_0x4b8d0e;return this[_0x3b0597(0x230)][_0x3b0597(0x1e6)][_0x3b0597(0x1fe)](()=>{const _0x5adad5=_0x3b0597;this[_0x5adad5(0x1e8)]=!0x1,this[_0x5adad5(0x1ca)][_0x5adad5(0x220)][_0x5adad5(0x247)]();});}[_0x4b8d0e(0x1d2)](_0x12fe76,_0x33d8a4){const _0x2bce2a=_0x4b8d0e;this[_0x2bce2a(0x1ca)][_0x2bce2a(0x1db)][_0x2bce2a(0x1d2)](_0x12fe76,_0x33d8a4);}[_0x4b8d0e(0x239)](_0xc91bf6){const _0x13dfbb=_0x4b8d0e;this[_0x13dfbb(0x1ca)][_0x13dfbb(0x1db)][_0x13dfbb(0x239)](_0xc91bf6);}[_0x4b8d0e(0x1d5)](_0x33dbab,_0x33759e){const _0x4d5bea=_0x4b8d0e;this[_0x4d5bea(0x1ca)][_0x4d5bea(0x1db)][_0x4d5bea(0x1d5)](_0x33dbab,_0x33759e);}[_0x4b8d0e(0x1de)](_0x25d0b4){const _0x29df50=_0x4b8d0e;this[_0x29df50(0x1ca)][_0x29df50(0x1db)][_0x29df50(0x1de)](_0x25d0b4);}[_0x4b8d0e(0x1c9)](_0x143998){const _0x18d695=_0x4b8d0e;this[_0x18d695(0x1ca)][_0x18d695(0x1db)][_0x18d695(0x1c9)](_0x143998);}[_0x4b8d0e(0x22f)](){const _0x21bc19=_0x4b8d0e;this[_0x21bc19(0x1ca)][_0x21bc19(0x1db)][_0x21bc19(0x22f)]();}[_0x4b8d0e(0x1d8)](){const _0x49c82b=_0x4b8d0e;this[_0x49c82b(0x1ca)][_0x49c82b(0x1db)][_0x49c82b(0x1d8)]();}[_0x4b8d0e(0x202)](_0x5e212f,_0x5a52af,_0x401449){const _0x3f24b8=_0x4b8d0e;this[_0x3f24b8(0x1ca)][_0x3f24b8(0x1db)][_0x3f24b8(0x202)](_0x5e212f,_0x5a52af,_0x401449);}[_0x4b8d0e(0x24b)](){const _0x478ed5=_0x4b8d0e;this[_0x478ed5(0x1ca)][_0x478ed5(0x1db)][_0x478ed5(0x24b)](),this[_0x478ed5(0x1ca)][_0x478ed5(0x1db)][_0x478ed5(0x1cd)](this[_0x478ed5(0x1b5)]());}[_0x4b8d0e(0x208)](_0x3c9058){const _0xd60797=_0x4b8d0e;this[_0xd60797(0x1ca)][_0xd60797(0x1db)][_0xd60797(0x208)](_0x3c9058);}[_0x4b8d0e(0x23d)](_0x3aca51){const _0x27dd63=_0x4b8d0e;this[_0x27dd63(0x1ca)][_0x27dd63(0x1db)][_0x27dd63(0x207)](_0x3aca51[_0x27dd63(0x233)]),this[_0x27dd63(0x1ca)][_0x27dd63(0x1db)][_0x27dd63(0x23e)](_0x3aca51[_0x27dd63(0x215)]),this[_0x27dd63(0x1ca)][_0x27dd63(0x1db)][_0x27dd63(0x1cd)](this[_0x27dd63(0x1b5)](_0x3aca51));}[_0x4b8d0e(0x232)](_0x117f6c,_0x4c19b9){const _0xe374ff=_0x4b8d0e;this[_0xe374ff(0x1ca)][_0xe374ff(0x1db)][_0xe374ff(0x218)](_0x117f6c),_0x4c19b9&&this[_0xe374ff(0x1ca)][_0xe374ff(0x1db)][_0xe374ff(0x250)](!0x1);}[_0x4b8d0e(0x259)](_0x6200bc){const _0xab12c8=_0x4b8d0e;this[_0xab12c8(0x1ce)]=_0x6200bc;}[_0x4b8d0e(0x20c)](_0x253181){const _0xa46919=_0x4b8d0e;this[_0xa46919(0x1ca)][_0xa46919(0x220)][_0xa46919(0x20c)](_0x253181);}[_0x4b8d0e(0x1ee)](){const _0x2fac73=_0x4b8d0e;this[_0x2fac73(0x203)](_0x1e499c(this[_0x2fac73(0x213)][_0x2fac73(0x224)],_0x2fac73(0x20d)));}[_0x4b8d0e(0x203)](_0x4ef57e,_0x12ab01=!0x1){const _0x52f247=_0x4b8d0e;if(_0x12ab01&&!_0x2ec60e()&&_0x4ef57e[_0x52f247(0x257)])return this[_0x52f247(0x1ca)][_0x52f247(0x1ab)][_0x52f247(0x1ec)]='',void this[_0x52f247(0x24f)](_0x4ef57e);this[_0x52f247(0x1ca)][_0x52f247(0x1ab)][_0x52f247(0x1ec)]=_0x4ef57e;}[_0x4b8d0e(0x1ef)](_0x15a567){const _0x2d2586=_0x4b8d0e;this[_0x2d2586(0x1ca)][_0x2d2586(0x220)][_0x2d2586(0x1ef)](_0x15a567);}[_0x4b8d0e(0x1f0)](){const _0x517e07=_0x4b8d0e;this[_0x517e07(0x1ca)][_0x517e07(0x220)][_0x517e07(0x1ef)]('');}[_0x4b8d0e(0x24f)](_0x5031b7){const _0x3fd8c7=_0x4b8d0e;let _0x30915d=0x0;clearInterval(this[_0x3fd8c7(0x1b9)]),this[_0x3fd8c7(0x1b9)]=setInterval(()=>{const _0x4df098=_0x3fd8c7;this[_0x4df098(0x1ca)][_0x4df098(0x1ab)][_0x4df098(0x1ec)]=this[_0x4df098(0x1ca)][_0x4df098(0x1ab)][_0x4df098(0x1ec)]+_0x5031b7[_0x30915d],_0x30915d++,_0x30915d===_0x5031b7[_0x4df098(0x257)]&&clearInterval(this[_0x4df098(0x1b9)]);},0x1e);}[_0x4b8d0e(0x1bb)](_0x134846){const _0xc4e580=_0x4b8d0e;this[_0xc4e580(0x1ca)][_0xc4e580(0x1ab)][_0xc4e580(0x1bc)]=_0x134846;}[_0x4b8d0e(0x255)](_0x28f787){const _0x4752d3=_0x4b8d0e;return _0x28f787[_0x4752d3(0x233)]&&_0x28f787[_0x4752d3(0x215)]?_0x1e499c(this[_0x4752d3(0x213)][_0x4752d3(0x224)],_0x4752d3(0x1aa)):_0x28f787[_0x4752d3(0x233)]?_0x1e499c(this[_0x4752d3(0x213)][_0x4752d3(0x224)],_0x4752d3(0x1c6)):_0x28f787[_0x4752d3(0x215)]?_0x1e499c(this[_0x4752d3(0x213)][_0x4752d3(0x224)],_0x4752d3(0x24c)):_0x1e499c(this[_0x4752d3(0x213)][_0x4752d3(0x224)],_0x4752d3(0x1ed));}[_0x4b8d0e(0x1b5)](_0x1d3ef2){const _0x295164=_0x4b8d0e;return _0x1d3ef2?_0x1d3ef2[_0x295164(0x233)]&&_0x1d3ef2[_0x295164(0x215)]?_0x1e499c(this[_0x295164(0x213)][_0x295164(0x224)],_0x295164(0x209)):_0x1d3ef2[_0x295164(0x233)]?_0x1e499c(this[_0x295164(0x213)][_0x295164(0x224)],_0x295164(0x1e5)):_0x1d3ef2[_0x295164(0x215)]?_0x1e499c(this[_0x295164(0x213)][_0x295164(0x224)],_0x295164(0x1f1)):_0x1e499c(this[_0x295164(0x213)][_0x295164(0x224)],_0x295164(0x1fa)):_0x1e499c(this[_0x295164(0x213)][_0x295164(0x224)],_0x295164(0x1fa));}[_0x4b8d0e(0x25b)](_0x48d89b,_0x13d7b9,_0x115f82,_0x50f88b){const _0x36cedb=_0x4b8d0e;this[_0x36cedb(0x1ca)][_0x36cedb(0x25b)](_0x48d89b,_0x13d7b9,_0x115f82,_0x50f88b);}[_0x4b8d0e(0x1d4)](_0x11acfd){const _0x1ba230=_0x4b8d0e;this[_0x1ba230(0x1ca)][_0x1ba230(0x1d4)](_0x11acfd);}[_0x4b8d0e(0x1c8)](_0x310f85){const _0x376e59=_0x4b8d0e;this[_0x376e59(0x1ca)][_0x376e59(0x1db)][_0x376e59(0x1c8)](_0x310f85);}[_0x4b8d0e(0x1c4)](_0xb9b35c=!0x1){const _0x19164e=_0x4b8d0e;this[_0x19164e(0x1ca)][_0x19164e(0x1db)][_0x19164e(0x1c4)](_0xb9b35c);}[_0x4b8d0e(0x1c1)](_0x203636,_0x894655){const _0x1cd549=_0x4b8d0e;this[_0x1cd549(0x1ca)][_0x1cd549(0x220)][_0x1cd549(0x206)](_0x203636,_0x894655);}[_0x4b8d0e(0x1c3)](){const _0xc344df=_0x4b8d0e;this[_0xc344df(0x1ca)][_0xc344df(0x220)][_0xc344df(0x1c3)]();}[_0x4b8d0e(0x227)](){const _0x186f00=_0x4b8d0e;this[_0x186f00(0x1ca)][_0x186f00(0x1db)][_0x186f00(0x1af)]=!0x0;}[_0x4b8d0e(0x22a)](){const _0x1eeb8d=_0x4b8d0e;this[_0x1eeb8d(0x1ca)][_0x1eeb8d(0x1db)][_0x1eeb8d(0x1af)]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x347edb=_0x881d;(function(_0x577d39,_0x9a41f8){const _0x3b055b=_0x881d,_0x2f4e67=_0x577d39();while(!![]){try{const _0x377b9a=parseInt(_0x3b055b(0x20a))/0x1+parseInt(_0x3b055b(0x1cf))/0x2+parseInt(_0x3b055b(0x1fb))/0x3*(-parseInt(_0x3b055b(0x208))/0x4)+-parseInt(_0x3b055b(0x1dc))/0x5+parseInt(_0x3b055b(0x1fe))/0x6+parseInt(_0x3b055b(0x1a7))/0x7*(parseInt(_0x3b055b(0x1d9))/0x8)+parseInt(_0x3b055b(0x1a8))/0x9*(-parseInt(_0x3b055b(0x1e4))/0xa);if(_0x377b9a===_0x9a41f8)break;else _0x2f4e67['push'](_0x2f4e67['shift']());}catch(_0x8d63fe){_0x2f4e67['push'](_0x2f4e67['shift']());}}}(_0x5690,0xe52b9));import{CKEditorError as _0x67c522,ObservableMixin as _0xb72cd8,uid as _0x72e60a}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x23f2cf,AIContextTextResourceType as _0x232fc5}from'../../aicore/model/aicontext.js';function _0x5690(){const _0x4e761e=['push','current-document','start','substring','_config','find','SELECTION','_mapContextItemToRequestData','ai-chat-resource-no-data','removeFromContext','isCurrentDocumentInContext','getId','ai-chat-context-invalid-data','sourceResourcesLoaded','type','text/plain','addSelectionToContext','_createContextItemFromContent','string','data','uploadFile','contextItemLoadingEnded','stack','all','version','_setAddContextOptionsDefaultState','init','from','filter','populateFromMessage','ai-chat-resource-load-failed','abort','message','ai-chat-document-upload-failed','_updateResourceInContextState','831170xVofIr','size','addFilesToContext','removeSelectionFromContext','FILE','isReadOnly','files','ai-chat-source-not-found','_pendingContextItems','File','232qTJVXu','getDocument','addUrlToContext','3636150NAZoSG','customItems','startsWith','ai-chat-url-upload-failed','_connector','contextItemRemoved','addResourceToContext','delete','10GeZVAM','sessionId','length','URL','object','_isResourceInContext','TOOL','object\x20with\x20content\x20and\x20type\x20properties','_conversationContextItems','TEXT','getSentContextItems','Current\x20document','name','fire','text/markdown','_ongoingUploads','isInContext','label','values','attributes','ai-chat-source-resources-load-failed','document','isHidden','6yMBVLd','resources','_finishUploadOperation','185490SabxcR','file-','contextItemAdded','mapContextItemsToRequestData','uploadDocument','set','uiId','resourceId','map','forEach','925340bSdXGn','sources','1471523ABBctC','hidden','end','url-','get','error','ai-request-aborted','abortController','text/html','DOCUMENT','addToConversationContext','addCurrentDocumentToContext','toolName','_ownerId','isCurrentDocumentInConversation','enabled','loadSourceResources','_findSourceIdsByResourceId','uploadUrl','HTML','_removeContextItem','urls','isSelectionInContext','contextSent','_ongoingUploadOperations','getData','code','updateCurrentDocument','resourceStateChanged','_addContextItem','getResources','MARKDOWN','_toggleAddCurrentDocumentOptionVisibility','_convertTextResourceToFile','ai-chat-context-unsupported-type','_addToConversationContextItem','has','files-','addToolItemToContext','getPendingContextItems','_startUploadOperation','_addContextOptionsState','addContextOptionsChanged','ai-chat-file-upload-failed','content','_finishContextItemLoading','uploadProgressChanged','selection','mcpServerName','clearPendingContextItems','79373vOBaJe','1064457XwozyK','_getCustomSourcesInitialState','url','fetchDocument'];_0x5690=function(){return _0x4e761e;};return _0x5690();}import{escape as _0x26a9b1}from'es-toolkit/compat';import{errorsMap as _0x58359c}from'../../errorsmap.js';function _0x881d(_0x2a837d,_0x58a764){const _0x5690b9=_0x5690();return _0x881d=function(_0x881d45,_0x17f511){_0x881d45=_0x881d45-0x18d;let _0x1ed7c5=_0x5690b9[_0x881d45];return _0x1ed7c5;},_0x881d(_0x2a837d,_0x58a764);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x347edb(0x200),_0x347edb(0x1e1),_0x347edb(0x1c1),_0x347edb(0x221),_0x347edb(0x20f),_0x347edb(0x19f),_0x347edb(0x1b9),_0x347edb(0x191),_0x347edb(0x1a3)];export class AIChatContext extends _0xb72cd8(){[_0x347edb(0x1e0)];[_0x347edb(0x1b0)];[_0x347edb(0x217)];constructor({connector:_0x3893af,config:_0x1c3117,ownerId:_0x2ed3f5}){const _0x2b1ece=_0x347edb;super(),this[_0x2b1ece(0x1e0)]=_0x3893af,this[_0x2b1ece(0x1b0)]=_0x1c3117,this[_0x2b1ece(0x217)]=_0x2ed3f5;}[_0x347edb(0x1c6)](){const _0x4dfc02=_0x347edb;this[_0x4dfc02(0x1d7)]=new Map(),this[_0x4dfc02(0x1ec)]=new Map(),this[_0x4dfc02(0x1f3)]=new Map(),this[_0x4dfc02(0x18d)]=new Map(),this[_0x4dfc02(0x1c5)]();}[_0x347edb(0x19c)](){const _0x552de9=_0x347edb;return this[_0x552de9(0x1d7)];}async[_0x347edb(0x1c9)](_0x107aa3){const _0x3e7143=_0x347edb,_0x13210e=await this[_0x3e7143(0x1bd)](_0x107aa3);return this[_0x3e7143(0x198)](_0x13210e),_0x3e7143(0x1ad)===_0x13210e[_0x3e7143(0x204)]&&this[_0x3e7143(0x195)](),_0x13210e;}async[_0x347edb(0x1bd)](_0x4f401b){const _0x15d7b1=_0x347edb;if(_0x4f401b[_0x15d7b1(0x1ba)]===_0x23f2cf[_0x15d7b1(0x213)]){const _0x4a3fb8=await this[_0x15d7b1(0x1e0)][_0x15d7b1(0x1ab)](this[_0x15d7b1(0x217)],_0x4f401b['id'])[_0x15d7b1(0x1da)]();return{'id':_0x15d7b1(0x1ad),'uiId':_0x15d7b1(0x1ad),'label':_0x15d7b1(0x1ef),'type':_0x4f401b[_0x15d7b1(0x1ba)],'content':_0x4a3fb8[_0x15d7b1(0x1a1)],'hidden':this[_0x15d7b1(0x1ec)][_0x15d7b1(0x199)](_0x15d7b1(0x1ad)),'version':_0x4a3fb8[_0x15d7b1(0x1f7)]?.[_0x15d7b1(0x1c4)],'sessionId':_0x4a3fb8[_0x15d7b1(0x1f7)]?.[_0x15d7b1(0x1e5)]};}if(_0x4f401b[_0x15d7b1(0x1ba)]===_0x23f2cf[_0x15d7b1(0x1ea)])return{'id':_0x4f401b['id'],'uiId':_0x4f401b['id'],'label':_0x4f401b[_0x15d7b1(0x1bf)]?.[_0x15d7b1(0x1f5)]||_0x4f401b['id'],'type':_0x23f2cf[_0x15d7b1(0x1ea)],'mcpServerName':_0x4f401b[_0x15d7b1(0x1a5)],'toolName':_0x4f401b[_0x15d7b1(0x216)],'data':_0x4f401b[_0x15d7b1(0x1bf)]||{}};return{'id':_0x4f401b['id'],'uiId':_0x4f401b['id'],'label':_0x4f401b[_0x15d7b1(0x1f7)]?.[_0x15d7b1(0x1f5)]||_0x4f401b[_0x15d7b1(0x1f0)]||_0x4f401b[_0x15d7b1(0x1aa)]||_0x4f401b['id'],'type':_0x4f401b[_0x15d7b1(0x1ba)],..._0x4f401b?.[_0x15d7b1(0x1f7)]?.[_0x15d7b1(0x205)]?{'resourceId':_0x4f401b[_0x15d7b1(0x1f7)]?.[_0x15d7b1(0x205)]}:{}};}[_0x347edb(0x1ee)](){const _0x26be5c=_0x347edb;return new Map(this[_0x26be5c(0x1ec)]);}[_0x347edb(0x1b5)](_0x1bf717){const _0x132a61=_0x347edb,_0xace5a4=this[_0x132a61(0x1d7)][_0x132a61(0x20e)](_0x1bf717);_0xace5a4?.[_0x132a61(0x1d4)]||this[_0x132a61(0x21e)](_0x1bf717);}[_0x347edb(0x1a6)](){const _0x5dd4ff=_0x347edb;if(0x0===this[_0x5dd4ff(0x1d7)][_0x5dd4ff(0x1d0)])return;for(const _0x699edc of this[_0x5dd4ff(0x1d7)][_0x5dd4ff(0x1f6)]())this[_0x5dd4ff(0x21e)](_0x699edc[_0x5dd4ff(0x204)]);const _0x50c746=this[_0x5dd4ff(0x1ec)][_0x5dd4ff(0x20e)](_0x5dd4ff(0x1ad))||this[_0x5dd4ff(0x1d7)][_0x5dd4ff(0x20e)](_0x5dd4ff(0x1ad));_0x50c746&&this[_0x5dd4ff(0x192)]({..._0x50c746,'isReadOnly':!0x0,'hidden':!0x0});}[_0x347edb(0x214)](_0x2226a4){const _0x241192=_0x347edb;for(const _0x7404d2 of _0x2226a4[_0x241192(0x1f6)]())this[_0x241192(0x198)](_0x7404d2);this[_0x241192(0x1a6)](),this[_0x241192(0x1f1)](_0x241192(0x221),{'contextItems':Array[_0x241192(0x1c7)](this[_0x241192(0x1ee)]()[_0x241192(0x1f6)]())});}[_0x347edb(0x1b6)](){const _0x3cb172=_0x347edb;return this[_0x3cb172(0x1d7)][_0x3cb172(0x199)](_0x3cb172(0x1ad));}[_0x347edb(0x220)](){const _0x3a0e68=_0x347edb;return this[_0x3a0e68(0x1d7)][_0x3a0e68(0x199)](_0x3a0e68(0x1a4));}[_0x347edb(0x218)](){const _0x5d400e=_0x347edb;return this[_0x5d400e(0x1ec)][_0x5d400e(0x199)](_0x5d400e(0x1ad));}static[_0x347edb(0x201)](_0x55fc6a){const _0x3d4934=_0x347edb;return Array[_0x3d4934(0x1c7)](_0x55fc6a[_0x3d4934(0x1f6)]())[_0x3d4934(0x206)](_0x44a7b9=>this[_0x3d4934(0x1b3)](_0x44a7b9))[_0x3d4934(0x1c8)](_0x3c0fa0=>null!==_0x3c0fa0);}async[_0x347edb(0x1d1)](_0x86a153,_0x51c70f,_0x2a9daf=_0x23f2cf[_0x347edb(0x1d3)]){const _0x2a1d8e=_0x347edb,_0x4bfddc=_0x2a1d8e(0x19a)+_0x72e60a();this[_0x2a1d8e(0x19d)](_0x4bfddc);try{await Promise[_0x2a1d8e(0x1c3)](_0x86a153[_0x2a1d8e(0x206)](async _0x4092ac=>{const _0x4df029=_0x2a1d8e,_0x1c3cb9=_0x4df029(0x1ff)+_0x72e60a(),_0x44cfdc=_0x26a9b1(_0x4092ac[_0x4df029(0x1f0)]);try{this[_0x4df029(0x192)]({'type':_0x2a9daf,'label':_0x51c70f?.[_0x4df029(0x1f5)]||_0x44cfdc,'uiId':_0x1c3cb9,'resourceId':_0x51c70f?.[_0x4df029(0x205)]},!0x0);const _0x15513d=this[_0x4df029(0x1e0)][_0x4df029(0x1c0)](this[_0x4df029(0x217)],_0x4092ac,_0x51c70f);this[_0x4df029(0x1f3)][_0x4df029(0x203)](_0x1c3cb9,_0x15513d[_0x4df029(0x211)]);const {id:_0x12fb0d}=await _0x15513d[_0x4df029(0x1b7)]();this[_0x4df029(0x1f3)][_0x4df029(0x1e3)](_0x1c3cb9),this[_0x4df029(0x1a2)]({'type':_0x2a9daf,'id':_0x12fb0d,'label':_0x51c70f?.[_0x4df029(0x1f5)]||_0x44cfdc,'uiId':_0x1c3cb9,'resourceId':_0x51c70f?.[_0x4df029(0x205)]},!0x1);}catch(_0x3df682){this[_0x4df029(0x1f3)][_0x4df029(0x1e3)](_0x1c3cb9);if(!(_0x3df682 instanceof _0x67c522&&_0x3df682[_0x4df029(0x1cc)][_0x4df029(0x1de)](_0x4df029(0x210)))){const _0x515ec4=_0x58359c[_0x4df029(0x20e)](_0x3df682[_0x4df029(0x18f)])||_0x4df029(0x1a0),_0x579cb9=new _0x67c522(_0x515ec4,null,{'fileName':_0x44cfdc,..._0x3df682});_0x579cb9[_0x4df029(0x1c2)]=_0x3df682[_0x4df029(0x1c2)],this[_0x4df029(0x1f1)](_0x4df029(0x20f),{'error':_0x579cb9});}this[_0x4df029(0x21e)](_0x1c3cb9);}}));}finally{this[_0x2a1d8e(0x1fd)](_0x4bfddc);}}[_0x347edb(0x215)](_0xb07356){const _0x2feb73=_0x347edb;if(this[_0x2feb73(0x1b6)]()||!this[_0x2feb73(0x19e)][_0x2feb73(0x1f9)][_0x2feb73(0x219)])return;const _0x18ac03={'type':_0x23f2cf[_0x2feb73(0x213)],'uiId':_0x2feb73(0x1ad),'label':_0xb07356,'isReadOnly':this[_0x2feb73(0x1ec)][_0x2feb73(0x199)](_0x2feb73(0x1ad)),'hidden':this[_0x2feb73(0x1ec)][_0x2feb73(0x199)](_0x2feb73(0x1ad))};this[_0x2feb73(0x192)](_0x18ac03);}async[_0x347edb(0x190)](_0x340435,_0x3380b3,_0x349f26,_0x4ec601){const _0x19a9aa=_0x347edb,_0x41a267=this[_0x19a9aa(0x1d7)][_0x19a9aa(0x20e)](_0x19a9aa(0x1ad));if(_0x41a267&&_0x340435){_0x41a267[_0x19a9aa(0x1a4)]=_0x4ec601?_0x4ec601[_0x19a9aa(0x206)](_0x3d9051=>({'start':_0x3d9051[_0x19a9aa(0x1ae)],'end':_0x3d9051[_0x19a9aa(0x20c)]})):[];try{if(_0x41a267[_0x19a9aa(0x1c4)]===_0x3380b3)return;const {id:_0x1415c5}=await this[_0x19a9aa(0x1e0)][_0x19a9aa(0x202)](this[_0x19a9aa(0x217)],_0x340435,{'version':_0x3380b3,'sessionId':_0x349f26})[_0x19a9aa(0x1b7)]();_0x41a267['id']=_0x1415c5,_0x41a267[_0x19a9aa(0x1a1)]=_0x340435,_0x41a267[_0x19a9aa(0x1c4)]=_0x3380b3,_0x41a267[_0x19a9aa(0x1e5)]=_0x349f26;}catch(_0x2e94c7){const _0x434608=new _0x67c522(_0x19a9aa(0x1cd),null);_0x434608[_0x19a9aa(0x1c2)]=_0x2e94c7[_0x19a9aa(0x1c2)],this[_0x19a9aa(0x1f1)](_0x19a9aa(0x20f),{'error':_0x434608});}}}[_0x347edb(0x1bc)](_0x5cfd85){const _0x26cb37=_0x347edb;this[_0x26cb37(0x192)]({'type':_0x23f2cf[_0x26cb37(0x1b2)],'label':_0x5cfd85,'uiId':_0x26cb37(0x1a4),'content':_0x5cfd85});}[_0x347edb(0x1d2)](){const _0x1b23d2=_0x347edb;this[_0x1b23d2(0x21e)](_0x1b23d2(0x1a4));}async[_0x347edb(0x1db)](_0x2a3f60,_0x5a2664){const _0xbfb911=_0x347edb,_0x5a348a=_0xbfb911(0x20d)+_0x72e60a();this[_0xbfb911(0x19d)](_0x5a348a);const _0x335856=_0xbfb911(0x20d)+_0x72e60a();try{this[_0xbfb911(0x192)]({'type':_0x23f2cf[_0xbfb911(0x1e7)],'label':_0x5a2664?.[_0xbfb911(0x1f5)]||_0x2a3f60,'uiId':_0x335856,'resourceId':_0x5a2664?.[_0xbfb911(0x205)]},!0x0);const _0x2c1367=this[_0xbfb911(0x1e0)][_0xbfb911(0x21c)](this[_0xbfb911(0x217)],_0x2a3f60,_0x5a2664);this[_0xbfb911(0x1f3)][_0xbfb911(0x203)](_0x335856,_0x2c1367[_0xbfb911(0x211)]);const {id:_0x23d27c}=await _0x2c1367[_0xbfb911(0x1b7)]();this[_0xbfb911(0x1f3)][_0xbfb911(0x1e3)](_0x335856),this[_0xbfb911(0x1a2)]({'type':_0x23f2cf[_0xbfb911(0x1e7)],'id':_0x23d27c,'label':_0x5a2664?.[_0xbfb911(0x1f5)]||_0x2a3f60,'uiId':_0x335856,'resourceId':_0x5a2664?.[_0xbfb911(0x205)]},!0x1);}catch(_0x55e36e){this[_0xbfb911(0x1f3)][_0xbfb911(0x1e3)](_0x335856),(_0x55e36e[_0xbfb911(0x1cc)][_0xbfb911(0x1de)](_0xbfb911(0x210))||this[_0xbfb911(0x1f1)](_0xbfb911(0x20f),{'error':new _0x67c522(_0xbfb911(0x1df),this,{'url':_0x2a3f60,'originalError':_0x55e36e}),'url':_0x2a3f60}),this[_0xbfb911(0x21e)](_0x335856));}finally{this[_0xbfb911(0x1fd)](_0x5a348a);}}[_0x347edb(0x19b)](_0x7584d1){const _0x3fc145=_0x347edb;_0x7584d1['id']=_0x7584d1['id']??_0x72e60a()[_0x3fc145(0x1af)](0x0,0x15),this[_0x3fc145(0x1d7)][_0x3fc145(0x203)](_0x7584d1[_0x3fc145(0x204)],_0x7584d1),this[_0x3fc145(0x1f1)](_0x3fc145(0x200),{'contextItem':_0x7584d1,'isLoading':!0x1});}async[_0x347edb(0x21a)](_0x5de263,_0xc43a85,_0x4490df){const _0x4ad086=_0x347edb,_0x3fefb2=this[_0x4ad086(0x19e)][_0x4ad086(0x209)][_0x4ad086(0x1b1)](_0x13a385=>_0x13a385['id']===_0x5de263);if(!_0x3fefb2)return this[_0x4ad086(0x1f1)](_0x4ad086(0x20f),{'error':new _0x67c522(_0x4ad086(0x1d6),this,{'sourceId':_0x5de263}),'sourceId':_0x5de263}),[];try{const _0x338986=(await _0x3fefb2[_0x4ad086(0x193)](_0xc43a85))[_0x4ad086(0x206)](_0x41490f=>{const _0x8991e=_0x4ad086,_0x5a3d0d=this[_0x8991e(0x1e9)](_0x41490f['id']);return{..._0x41490f,'isInContext':_0x5a3d0d};});return _0x3fefb2[_0x4ad086(0x1fc)]=_0x338986,this[_0x4ad086(0x1f1)](_0x4ad086(0x1b9),{'sourceId':_0x5de263,'source':_0x3fefb2,'resources':_0x338986,'uid':_0x4490df}),_0x338986;}catch(_0x504fe1){return this[_0x4ad086(0x1f1)](_0x4ad086(0x20f),{'error':new _0x67c522(_0x4ad086(0x1f8),this,{'sourceId':_0x5de263,'originalError':_0x504fe1}),'sourceId':_0x5de263,'sourceLabel':_0x3fefb2[_0x4ad086(0x1f5)]}),[];}}async[_0x347edb(0x1e2)](_0x1ee9d7,_0x3c105e){const _0x4044ac=_0x347edb;if(this[_0x4044ac(0x1e9)](_0x3c105e['id']))return;let _0x5b78f3=_0x3c105e[_0x4044ac(0x1bf)];if(!_0x5b78f3&&_0x1ee9d7[_0x4044ac(0x18e)])try{_0x5b78f3=await _0x1ee9d7[_0x4044ac(0x18e)](_0x3c105e['id']);}catch(_0x4396a6){return void this[_0x4044ac(0x1f1)](_0x4044ac(0x20f),{'error':new _0x67c522(_0x4044ac(0x1ca),this,{'resourceId':_0x3c105e['id'],'sourceId':_0x1ee9d7['id'],'originalError':_0x4396a6}),'resourceId':_0x3c105e['id'],'sourceId':_0x1ee9d7['id']});}if(_0x5b78f3)switch(_0x3c105e[_0x4044ac(0x1ba)]){case _0x23f2cf[_0x4044ac(0x1e7)]:if(_0x4044ac(0x1be)!=typeof _0x5b78f3)return void this[_0x4044ac(0x1f1)](_0x4044ac(0x20f),{'error':new _0x67c522(_0x4044ac(0x1b8),this,{'resourceId':_0x3c105e['id'],'sourceId':_0x1ee9d7['id'],'expectedType':_0x4044ac(0x1be),'actualType':typeof _0x5b78f3}),'resourceId':_0x3c105e['id'],'sourceId':_0x1ee9d7['id']});await this[_0x4044ac(0x1db)](_0x5b78f3,{'label':_0x3c105e[_0x4044ac(0x1f5)],'resourceId':_0x3c105e['id']});break;case _0x23f2cf[_0x4044ac(0x1d3)]:if(!(_0x5b78f3 instanceof File))return void this[_0x4044ac(0x1f1)](_0x4044ac(0x20f),{'error':new _0x67c522(_0x4044ac(0x1b8),this,{'resourceId':_0x3c105e['id'],'sourceId':_0x1ee9d7['id'],'expectedType':_0x4044ac(0x1d8),'actualType':typeof _0x5b78f3}),'resourceId':_0x3c105e['id'],'sourceId':_0x1ee9d7['id']});await this[_0x4044ac(0x1d1)]([_0x5b78f3],{'label':_0x3c105e[_0x4044ac(0x1f5)],'resourceId':_0x3c105e['id']});break;case _0x23f2cf[_0x4044ac(0x1ed)]:if(_0x4044ac(0x1e8)!=typeof _0x5b78f3||!(_0x4044ac(0x1a1)in _0x5b78f3)||!(_0x4044ac(0x1ba)in _0x5b78f3))return void this[_0x4044ac(0x1f1)](_0x4044ac(0x20f),{'error':new _0x67c522(_0x4044ac(0x1b8),this,{'resourceId':_0x3c105e['id'],'sourceId':_0x1ee9d7['id'],'expectedType':_0x4044ac(0x1eb),'actualType':typeof _0x5b78f3}),'resourceId':_0x3c105e['id'],'sourceId':_0x1ee9d7['id']});_0x5b78f3=AIChatContext[_0x4044ac(0x196)](_0x5b78f3,_0x3c105e[_0x4044ac(0x1f5)]),await this[_0x4044ac(0x1d1)]([_0x5b78f3],{'label':_0x3c105e[_0x4044ac(0x1f5)],'resourceId':_0x3c105e['id']},_0x23f2cf[_0x4044ac(0x1ed)]);break;case _0x23f2cf[_0x4044ac(0x1ea)]:break;default:this[_0x4044ac(0x1f1)](_0x4044ac(0x20f),{'error':new _0x67c522(_0x4044ac(0x197),this,{'resourceId':_0x3c105e['id'],'sourceId':_0x1ee9d7['id'],'resourceType':_0x3c105e[_0x4044ac(0x1ba)]}),'resourceId':_0x3c105e['id'],'sourceId':_0x1ee9d7['id']});}else this[_0x4044ac(0x1f1)](_0x4044ac(0x20f),{'error':new _0x67c522(_0x4044ac(0x1b4),this,{'resourceId':_0x3c105e['id'],'sourceId':_0x1ee9d7['id']}),'resourceId':_0x3c105e['id'],'sourceId':_0x1ee9d7['id']});}static[_0x347edb(0x196)](_0x3909ef,_0x2955b6){const _0x4e00f2=_0x347edb;switch(_0x3909ef[_0x4e00f2(0x1ba)]){case _0x232fc5[_0x4e00f2(0x194)]:return new File([_0x3909ef[_0x4e00f2(0x1a1)]],_0x2955b6,{'type':_0x4e00f2(0x1f2)});case _0x232fc5[_0x4e00f2(0x21d)]:return new File([_0x3909ef[_0x4e00f2(0x1a1)]],_0x2955b6,{'type':_0x4e00f2(0x212)});default:return new File([_0x3909ef[_0x4e00f2(0x1a1)]],_0x2955b6,{'type':_0x4e00f2(0x1bb)});}}static[_0x347edb(0x1b3)](_0x4ef63b){const _0x4c563c=_0x347edb;switch(_0x4ef63b[_0x4c563c(0x1ba)]){case _0x23f2cf[_0x4c563c(0x1d3)]:return{'type':_0x23f2cf[_0x4c563c(0x1d3)],'id':_0x4ef63b['id']};case _0x23f2cf[_0x4c563c(0x1e7)]:return{'type':_0x23f2cf[_0x4c563c(0x1e7)],'id':_0x4ef63b['id']};case _0x23f2cf[_0x4c563c(0x213)]:return{'type':_0x23f2cf[_0x4c563c(0x213)],'id':_0x4ef63b['id'],..._0x4ef63b[_0x4c563c(0x1a4)]?.[_0x4c563c(0x1e6)]&&{'selection':_0x4ef63b[_0x4c563c(0x1a4)]}};case _0x23f2cf[_0x4c563c(0x1ed)]:return{'type':_0x23f2cf[_0x4c563c(0x1d3)],'id':_0x4ef63b['id']};case _0x23f2cf[_0x4c563c(0x1ea)]:{const _0x5a9032=_0x4ef63b;return{'type':_0x23f2cf[_0x4c563c(0x1ea)],'mcpServerName':_0x5a9032[_0x4c563c(0x1a5)],'toolName':_0x5a9032[_0x4c563c(0x216)],'data':_0x5a9032[_0x4c563c(0x1bf)],'id':_0x5a9032['id']};}default:return null;}}[_0x347edb(0x192)](_0x2ea90f,_0x40c37b=!0x1){const _0x30be8a=_0x347edb;if(this[_0x30be8a(0x1d7)][_0x30be8a(0x203)](_0x2ea90f[_0x30be8a(0x204)],_0x2ea90f),_0x2ea90f[_0x30be8a(0x20b)]||this[_0x30be8a(0x1f1)](_0x30be8a(0x200),{'contextItem':_0x2ea90f,'isLoading':_0x40c37b}),_0x30be8a(0x1ad)===_0x2ea90f[_0x30be8a(0x204)]&&this[_0x30be8a(0x195)](),_0x2ea90f[_0x30be8a(0x205)]){const _0x13d720=this[_0x30be8a(0x21b)](_0x2ea90f[_0x30be8a(0x205)]);_0x13d720&&_0x13d720[_0x30be8a(0x207)](_0x1c36a6=>{const _0x13b74d=_0x30be8a;this[_0x13b74d(0x1ce)](_0x1c36a6,_0x2ea90f[_0x13b74d(0x205)],!0x0);});}}[_0x347edb(0x21e)](_0x480530){const _0x41cce4=_0x347edb,_0x502f8e=this[_0x41cce4(0x1d7)][_0x41cce4(0x20e)](_0x480530),_0x51eebe=this[_0x41cce4(0x1f3)][_0x41cce4(0x20e)](_0x480530);if(_0x51eebe&&(_0x51eebe[_0x41cce4(0x1cb)](),this[_0x41cce4(0x1f3)][_0x41cce4(0x1e3)](_0x480530)),_0x502f8e?.[_0x41cce4(0x205)]){const _0x36581b=this[_0x41cce4(0x21b)](_0x502f8e[_0x41cce4(0x205)]);_0x36581b&&_0x36581b[_0x41cce4(0x207)](_0xd79d8c=>{const _0xb60328=_0x41cce4;this[_0xb60328(0x1ce)](_0xd79d8c,_0x502f8e[_0xb60328(0x205)],!0x1);});}this[_0x41cce4(0x1d7)][_0x41cce4(0x1e3)](_0x480530),this[_0x41cce4(0x1f1)](_0x41cce4(0x1e1),{'uiId':_0x480530,'type':_0x502f8e?.[_0x41cce4(0x1ba)]}),_0x41cce4(0x1ad)===_0x480530&&this[_0x41cce4(0x195)]();}[_0x347edb(0x1a2)](_0x19ca2c,_0x4de151){const _0x3e56f4=_0x347edb;if(this[_0x3e56f4(0x1d7)][_0x3e56f4(0x199)](_0x19ca2c[_0x3e56f4(0x204)])&&(this[_0x3e56f4(0x1d7)][_0x3e56f4(0x203)](_0x19ca2c[_0x3e56f4(0x204)],_0x19ca2c),this[_0x3e56f4(0x1f1)](_0x3e56f4(0x1c1),{'contextItem':_0x19ca2c,'isLoading':_0x4de151}),_0x19ca2c[_0x3e56f4(0x205)])){const _0x37fc9f=this[_0x3e56f4(0x21b)](_0x19ca2c[_0x3e56f4(0x205)]);_0x37fc9f&&_0x37fc9f[_0x3e56f4(0x207)](_0x16d49=>{const _0x3c5bab=_0x3e56f4;this[_0x3c5bab(0x1ce)](_0x16d49,_0x19ca2c[_0x3c5bab(0x205)],!0x0);});}}[_0x347edb(0x198)](_0x5bbdf8){const _0x428b2d=_0x347edb;this[_0x428b2d(0x1ec)][_0x428b2d(0x203)](_0x5bbdf8[_0x428b2d(0x204)],_0x5bbdf8);}[_0x347edb(0x1c5)](){const _0x13a7ac=_0x347edb;this[_0x13a7ac(0x19e)]={'document':{'enabled':!0x1!==this[_0x13a7ac(0x1b0)]?.[_0x13a7ac(0x1f9)]?.[_0x13a7ac(0x219)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x13a7ac(0x1b0)]?.[_0x13a7ac(0x21f)]?.[_0x13a7ac(0x219)]},'files':{'enabled':!0x1!==this[_0x13a7ac(0x1b0)]?.[_0x13a7ac(0x1d5)]?.[_0x13a7ac(0x219)]},'sources':this[_0x13a7ac(0x1a9)](),'customItems':this[_0x13a7ac(0x1b0)]?.[_0x13a7ac(0x1dd)]?.[_0x13a7ac(0x206)](_0x3a8cf8=>({..._0x3a8cf8,'enabled':!0x0}))??[]},this[_0x13a7ac(0x1f1)](_0x13a7ac(0x19f),{'options':this[_0x13a7ac(0x19e)]});}[_0x347edb(0x1a9)](){const _0x488245=_0x347edb;return this[_0x488245(0x1b0)]?.[_0x488245(0x209)]?.[_0x488245(0x206)](_0x3a937b=>({..._0x3a937b,'resources':[]}))??[];}[_0x347edb(0x195)](){const _0x14d03e=_0x347edb,_0x36ea37=this[_0x14d03e(0x1b6)]()||this[_0x14d03e(0x218)]();this[_0x14d03e(0x19e)][_0x14d03e(0x1f9)][_0x14d03e(0x1fa)]=_0x36ea37,this[_0x14d03e(0x1f1)](_0x14d03e(0x19f),{'options':this[_0x14d03e(0x19e)]});}[_0x347edb(0x1e9)](_0x73c4ce){const _0x5926ea=_0x347edb;for(const _0x5cd4a8 of this[_0x5926ea(0x1d7)][_0x5926ea(0x1f6)]())if(_0x5cd4a8[_0x5926ea(0x205)]===_0x73c4ce)return!0x0;for(const _0x5d99a6 of this[_0x5926ea(0x1ec)][_0x5926ea(0x1f6)]())if(_0x5d99a6[_0x5926ea(0x205)]===_0x73c4ce)return!0x0;return!0x1;}[_0x347edb(0x21b)](_0x9ac324){const _0x361714=_0x347edb,_0x4d59b1=[];for(const _0x273fc0 of this[_0x361714(0x19e)][_0x361714(0x209)]){_0x273fc0[_0x361714(0x1fc)][_0x361714(0x1b1)](_0x188beb=>_0x188beb['id']===_0x9ac324)&&_0x4d59b1[_0x361714(0x1ac)](_0x273fc0['id']);}return 0x0===_0x4d59b1[_0x361714(0x1e6)]?null:_0x4d59b1;}[_0x347edb(0x1ce)](_0xc19148,_0x5f199f,_0x2c1b6d){const _0x4c0708=_0x347edb,_0x60f5e7=this[_0x4c0708(0x19e)][_0x4c0708(0x209)][_0x4c0708(0x1b1)](_0x474f7b=>_0x474f7b['id']===_0xc19148);if(!_0x60f5e7)return;const _0x45bb0f=_0x60f5e7[_0x4c0708(0x1fc)][_0x4c0708(0x1b1)](_0x130794=>_0x130794['id']===_0x5f199f);_0x45bb0f&&(_0x45bb0f[_0x4c0708(0x1f4)]=_0x2c1b6d,this[_0x4c0708(0x1f1)](_0x4c0708(0x191),{'sourceId':_0xc19148,'resourceId':_0x5f199f,'isInContext':_0x2c1b6d}));}[_0x347edb(0x19d)](_0x1aa4e7){const _0x47b695=_0x347edb;this[_0x47b695(0x18d)][_0x47b695(0x203)](_0x1aa4e7,!0x0),this[_0x47b695(0x18d)][_0x47b695(0x1d0)]&&this[_0x47b695(0x1f1)](_0x47b695(0x1a3),{'isUploadInProgress':!0x0});}[_0x347edb(0x1fd)](_0x22c503){const _0x2bead1=_0x347edb;this[_0x2bead1(0x18d)][_0x2bead1(0x1e3)](_0x22c503),0x0===this[_0x2bead1(0x18d)][_0x2bead1(0x1d0)]&&this[_0x2bead1(0x1f1)](_0x2bead1(0x1a3),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x215be7=_0x5d84;(function(_0x55152e,_0x3626c1){const _0x4b0b5c=_0x5d84,_0x3f2707=_0x55152e();while(!![]){try{const _0x48f1d5=parseInt(_0x4b0b5c(0x185))/0x1+parseInt(_0x4b0b5c(0x13b))/0x2+-parseInt(_0x4b0b5c(0x158))/0x3+parseInt(_0x4b0b5c(0x13c))/0x4+-parseInt(_0x4b0b5c(0x16c))/0x5+parseInt(_0x4b0b5c(0x1b0))/0x6*(-parseInt(_0x4b0b5c(0x135))/0x7)+parseInt(_0x4b0b5c(0x1a1))/0x8*(parseInt(_0x4b0b5c(0x176))/0x9);if(_0x48f1d5===_0x3626c1)break;else _0x3f2707['push'](_0x3f2707['shift']());}catch(_0x563be1){_0x3f2707['push'](_0x3f2707['shift']());}}}(_0x4d43,0x3064b));import{CKEditorError as _0x492d6f,ObservableMixin as _0x9c9d99,uid as _0x2913a4}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x5672ff,AIContextTextResourceType as _0x5144de}from'../../aicore/model/aicontext.js';import{escape as _0x59bada}from'es-toolkit/compat';import{errorsMap as _0x2fea76}from'../../errorsmap.js';function _0x5d84(_0x48850e,_0x5ab4b7){const _0x4d430d=_0x4d43();return _0x5d84=function(_0x5d8486,_0x33cf54){_0x5d8486=_0x5d8486-0x130;let _0x1b8698=_0x4d430d[_0x5d8486];return _0x1b8698;},_0x5d84(_0x48850e,_0x5ab4b7);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x215be7(0x190),_0x215be7(0x181),_0x215be7(0x196),_0x215be7(0x1a0),_0x215be7(0x18f),_0x215be7(0x1a5),_0x215be7(0x16e),_0x215be7(0x157),_0x215be7(0x13f)];export class AIChatContext extends _0x9c9d99(){[_0x215be7(0x19d)];[_0x215be7(0x1b6)];[_0x215be7(0x17e)];constructor({connector:_0x3bebdf,config:_0x457cec,ownerId:_0x103131}){const _0x24c69c=_0x215be7;super(),this[_0x24c69c(0x19d)]=_0x3bebdf,this[_0x24c69c(0x1b6)]=_0x457cec,this[_0x24c69c(0x17e)]=_0x103131;}[_0x215be7(0x188)](){const _0x35506d=_0x215be7;this[_0x35506d(0x1bb)]=new Map(),this[_0x35506d(0x18d)]=new Map(),this[_0x35506d(0x191)]=new Map(),this[_0x35506d(0x133)]=new Map(),this[_0x35506d(0x159)]();}[_0x215be7(0x144)](){const _0x2e96fc=_0x215be7;return this[_0x2e96fc(0x1bb)];}async[_0x215be7(0x1a6)](_0x312a95){const _0x123ad7=_0x215be7,_0x2a1bf5=await this[_0x123ad7(0x16a)](_0x312a95);return this[_0x123ad7(0x150)](_0x2a1bf5),_0x123ad7(0x1ba)===_0x2a1bf5[_0x123ad7(0x1a7)]&&this[_0x123ad7(0x178)](),_0x2a1bf5;}async[_0x215be7(0x16a)](_0x169e48){const _0x2909f6=_0x215be7;if(_0x169e48[_0x2909f6(0x1b3)]===_0x5672ff[_0x2909f6(0x138)]){const _0x1c1035=await this[_0x2909f6(0x19d)][_0x2909f6(0x1bf)](this[_0x2909f6(0x17e)],_0x169e48['id'])[_0x2909f6(0x199)]();return{'id':_0x2909f6(0x1ba),'uiId':_0x2909f6(0x1ba),'label':_0x2909f6(0x137),'type':_0x169e48[_0x2909f6(0x1b3)],'content':_0x1c1035[_0x2909f6(0x14a)],'hidden':this[_0x2909f6(0x18d)][_0x2909f6(0x179)](_0x2909f6(0x1ba)),'version':_0x1c1035[_0x2909f6(0x1b2)]?.[_0x2909f6(0x18a)],'sessionId':_0x1c1035[_0x2909f6(0x1b2)]?.[_0x2909f6(0x18e)]};}if(_0x169e48[_0x2909f6(0x1b3)]===_0x5672ff[_0x2909f6(0x166)])return{'id':_0x169e48['id'],'uiId':_0x169e48['id'],'label':_0x169e48[_0x2909f6(0x173)]?.[_0x2909f6(0x1ad)]||_0x169e48['id'],'type':_0x5672ff[_0x2909f6(0x166)],'mcpServerName':_0x169e48[_0x2909f6(0x174)],'toolName':_0x169e48[_0x2909f6(0x14f)],'data':_0x169e48[_0x2909f6(0x173)]||{}};return{'id':_0x169e48['id'],'uiId':_0x169e48['id'],'label':_0x169e48[_0x2909f6(0x1b2)]?.[_0x2909f6(0x1ad)]||_0x169e48[_0x2909f6(0x170)]||_0x169e48[_0x2909f6(0x19c)]||_0x169e48['id'],'type':_0x169e48[_0x2909f6(0x1b3)],..._0x169e48?.[_0x2909f6(0x1b2)]?.[_0x2909f6(0x17a)]?{'resourceId':_0x169e48[_0x2909f6(0x1b2)]?.[_0x2909f6(0x17a)]}:{}};}[_0x215be7(0x1b7)](){const _0x27d53f=_0x215be7;return new Map(this[_0x27d53f(0x18d)]);}[_0x215be7(0x1bc)](_0x441cf9){const _0x499c0a=_0x215be7,_0xdac82=this[_0x499c0a(0x1bb)][_0x499c0a(0x132)](_0x441cf9);_0xdac82?.[_0x499c0a(0x1c0)]||this[_0x499c0a(0x1ac)](_0x441cf9);}[_0x215be7(0x164)](){const _0x15c169=_0x215be7;if(0x0===this[_0x15c169(0x1bb)][_0x15c169(0x162)])return;for(const _0x3ff1f2 of this[_0x15c169(0x1bb)][_0x15c169(0x147)]())this[_0x15c169(0x1ac)](_0x3ff1f2[_0x15c169(0x1a7)]);const _0x2366ad=this[_0x15c169(0x18d)][_0x15c169(0x132)](_0x15c169(0x1ba))||this[_0x15c169(0x1bb)][_0x15c169(0x132)](_0x15c169(0x1ba));_0x2366ad&&this[_0x15c169(0x156)]({..._0x2366ad,'isReadOnly':!0x0,'hidden':!0x0});}[_0x215be7(0x13a)](_0x5d7346){const _0x46d4c5=_0x215be7;for(const _0x4cb85d of _0x5d7346[_0x46d4c5(0x147)]())this[_0x46d4c5(0x150)](_0x4cb85d);this[_0x46d4c5(0x164)](),this[_0x46d4c5(0x197)](_0x46d4c5(0x1a0),{'contextItems':Array[_0x46d4c5(0x14d)](this[_0x46d4c5(0x1b7)]()[_0x46d4c5(0x147)]())});}[_0x215be7(0x15e)](){const _0x127715=_0x215be7;return this[_0x127715(0x1bb)][_0x127715(0x179)](_0x127715(0x1ba));}[_0x215be7(0x175)](){const _0x32f348=_0x215be7;return this[_0x32f348(0x1bb)][_0x32f348(0x179)](_0x32f348(0x13e));}[_0x215be7(0x14b)](){const _0x8f62e8=_0x215be7;return this[_0x8f62e8(0x18d)][_0x8f62e8(0x179)](_0x8f62e8(0x1ba));}static[_0x215be7(0x1be)](_0x4c5c3a){const _0x176909=_0x215be7;return Array[_0x176909(0x14d)](_0x4c5c3a[_0x176909(0x147)]())[_0x176909(0x17f)](_0x18cd68=>this[_0x176909(0x131)](_0x18cd68))[_0x176909(0x17d)](_0x56e337=>null!==_0x56e337);}async[_0x215be7(0x1af)](_0x242160,_0x50ff4e,_0x5e7899=_0x5672ff[_0x215be7(0x17c)]){const _0x22a9fb=_0x215be7,_0x488e49=_0x22a9fb(0x186)+_0x2913a4();this[_0x22a9fb(0x165)](_0x488e49);try{await Promise[_0x22a9fb(0x1b9)](_0x242160[_0x22a9fb(0x17f)](async _0x1cd86a=>{const _0x53a777=_0x22a9fb,_0x8012e3=_0x53a777(0x180)+_0x2913a4(),_0x49a504=_0x59bada(_0x1cd86a[_0x53a777(0x170)]);try{this[_0x53a777(0x156)]({'type':_0x5e7899,'label':_0x50ff4e?.[_0x53a777(0x1ad)]||_0x49a504,'uiId':_0x8012e3,'resourceId':_0x50ff4e?.[_0x53a777(0x17a)]},!0x0);const _0x1b8b41=this[_0x53a777(0x19d)][_0x53a777(0x14e)](this[_0x53a777(0x17e)],_0x1cd86a,_0x50ff4e);this[_0x53a777(0x191)][_0x53a777(0x169)](_0x8012e3,_0x1b8b41[_0x53a777(0x145)]);const {id:_0x40c849}=await _0x1b8b41[_0x53a777(0x1aa)]();this[_0x53a777(0x191)][_0x53a777(0x139)](_0x8012e3),this[_0x53a777(0x168)]({'type':_0x5e7899,'id':_0x40c849,'label':_0x50ff4e?.[_0x53a777(0x1ad)]||_0x49a504,'uiId':_0x8012e3,'resourceId':_0x50ff4e?.[_0x53a777(0x17a)]},!0x1);}catch(_0x67a94d){this[_0x53a777(0x191)][_0x53a777(0x139)](_0x8012e3);if(!(_0x67a94d instanceof _0x492d6f&&_0x67a94d[_0x53a777(0x130)][_0x53a777(0x16b)](_0x53a777(0x1a9)))){const _0x580796=_0x2fea76[_0x53a777(0x132)](_0x67a94d[_0x53a777(0x1a8)])||_0x53a777(0x189),_0x3a55c1=new _0x492d6f(_0x580796,null,{'fileName':_0x49a504,..._0x67a94d});_0x3a55c1[_0x53a777(0x136)]=_0x67a94d[_0x53a777(0x136)],this[_0x53a777(0x197)](_0x53a777(0x18f),{'error':_0x3a55c1});}this[_0x53a777(0x1ac)](_0x8012e3);}}));}finally{this[_0x22a9fb(0x14c)](_0x488e49);}}[_0x215be7(0x1b8)](_0x370ea7){const _0x312383=_0x215be7;if(this[_0x312383(0x15e)]()||!this[_0x312383(0x18c)][_0x312383(0x13d)][_0x312383(0x15f)])return;const _0x3561c0={'type':_0x5672ff[_0x312383(0x138)],'uiId':_0x312383(0x1ba),'label':_0x370ea7,'isReadOnly':this[_0x312383(0x18d)][_0x312383(0x179)](_0x312383(0x1ba)),'hidden':this[_0x312383(0x18d)][_0x312383(0x179)](_0x312383(0x1ba))};this[_0x312383(0x156)](_0x3561c0);}async[_0x215be7(0x152)](_0x5e0bca,_0x1bde62,_0x582d8b,_0x330272){const _0x2c8101=_0x215be7,_0x5c0f68=this[_0x2c8101(0x1bb)][_0x2c8101(0x132)](_0x2c8101(0x1ba));if(_0x5c0f68&&_0x5e0bca){_0x5c0f68[_0x2c8101(0x13e)]=_0x330272?_0x330272[_0x2c8101(0x17f)](_0x57f52c=>({'start':_0x57f52c[_0x2c8101(0x15d)],'end':_0x57f52c[_0x2c8101(0x153)]})):[];try{if(_0x5c0f68[_0x2c8101(0x18a)]===_0x1bde62)return;const {id:_0x137811}=await this[_0x2c8101(0x19d)][_0x2c8101(0x15b)](this[_0x2c8101(0x17e)],_0x5e0bca,{'version':_0x1bde62,'sessionId':_0x582d8b})[_0x2c8101(0x1aa)]();_0x5c0f68['id']=_0x137811,_0x5c0f68[_0x2c8101(0x14a)]=_0x5e0bca,_0x5c0f68[_0x2c8101(0x18a)]=_0x1bde62,_0x5c0f68[_0x2c8101(0x18e)]=_0x582d8b;}catch(_0x315455){const _0x4b1ab9=new _0x492d6f(_0x2c8101(0x19b),null);_0x4b1ab9[_0x2c8101(0x136)]=_0x315455[_0x2c8101(0x136)],this[_0x2c8101(0x197)](_0x2c8101(0x18f),{'error':_0x4b1ab9});}}}[_0x215be7(0x184)](_0x591c56){const _0x3957ea=_0x215be7;this[_0x3957ea(0x156)]({'type':_0x5672ff[_0x3957ea(0x1c2)],'label':_0x591c56,'uiId':_0x3957ea(0x13e),'content':_0x591c56});}[_0x215be7(0x140)](){const _0x3d13f9=_0x215be7;this[_0x3d13f9(0x1ac)](_0x3d13f9(0x13e));}async[_0x215be7(0x19a)](_0x4ca1df,_0x381364){const _0x1dd4ed=_0x215be7,_0x2ee2c3=_0x1dd4ed(0x1b4)+_0x2913a4();this[_0x1dd4ed(0x165)](_0x2ee2c3);const _0x4f2eda=_0x1dd4ed(0x1b4)+_0x2913a4();try{this[_0x1dd4ed(0x156)]({'type':_0x5672ff[_0x1dd4ed(0x146)],'label':_0x381364?.[_0x1dd4ed(0x1ad)]||_0x4ca1df,'uiId':_0x4f2eda,'resourceId':_0x381364?.[_0x1dd4ed(0x17a)]},!0x0);const _0x579660=this[_0x1dd4ed(0x19d)][_0x1dd4ed(0x154)](this[_0x1dd4ed(0x17e)],_0x4ca1df,_0x381364);this[_0x1dd4ed(0x191)][_0x1dd4ed(0x169)](_0x4f2eda,_0x579660[_0x1dd4ed(0x145)]);const {id:_0x1a7324}=await _0x579660[_0x1dd4ed(0x1aa)]();this[_0x1dd4ed(0x191)][_0x1dd4ed(0x139)](_0x4f2eda),this[_0x1dd4ed(0x168)]({'type':_0x5672ff[_0x1dd4ed(0x146)],'id':_0x1a7324,'label':_0x381364?.[_0x1dd4ed(0x1ad)]||_0x4ca1df,'uiId':_0x4f2eda,'resourceId':_0x381364?.[_0x1dd4ed(0x17a)]},!0x1);}catch(_0x5a6c25){this[_0x1dd4ed(0x191)][_0x1dd4ed(0x139)](_0x4f2eda),(_0x5a6c25[_0x1dd4ed(0x130)][_0x1dd4ed(0x16b)](_0x1dd4ed(0x1a9))||this[_0x1dd4ed(0x197)](_0x1dd4ed(0x18f),{'error':new _0x492d6f(_0x1dd4ed(0x19e),this,{'url':_0x4ca1df,'originalError':_0x5a6c25}),'url':_0x4ca1df}),this[_0x1dd4ed(0x1ac)](_0x4f2eda));}finally{this[_0x1dd4ed(0x14c)](_0x2ee2c3);}}[_0x215be7(0x187)](_0x14ddab){const _0x533410=_0x215be7;_0x14ddab['id']=_0x14ddab['id']??_0x2913a4()[_0x533410(0x183)](0x0,0x15),this[_0x533410(0x1bb)][_0x533410(0x169)](_0x14ddab[_0x533410(0x1a7)],_0x14ddab),this[_0x533410(0x197)](_0x533410(0x190),{'contextItem':_0x14ddab,'isLoading':!0x1});}async[_0x215be7(0x160)](_0x157f77,_0x212da5,_0x54855a){const _0x1e2db5=_0x215be7,_0x4b120a=this[_0x1e2db5(0x18c)][_0x1e2db5(0x149)][_0x1e2db5(0x1a3)](_0x5c8b0a=>_0x5c8b0a['id']===_0x157f77);if(!_0x4b120a)return this[_0x1e2db5(0x197)](_0x1e2db5(0x18f),{'error':new _0x492d6f(_0x1e2db5(0x151),this,{'sourceId':_0x157f77}),'sourceId':_0x157f77}),[];try{const _0x390b1c=(await _0x4b120a[_0x1e2db5(0x148)](_0x212da5))[_0x1e2db5(0x17f)](_0x3a36d0=>{const _0x15b559=_0x1e2db5,_0xb2f7b2=this[_0x15b559(0x198)](_0x3a36d0['id']);return{..._0x3a36d0,'isInContext':_0xb2f7b2};});return _0x4b120a[_0x1e2db5(0x19f)]=_0x390b1c,this[_0x1e2db5(0x197)](_0x1e2db5(0x16e),{'sourceId':_0x157f77,'source':_0x4b120a,'resources':_0x390b1c,'uid':_0x54855a}),_0x390b1c;}catch(_0x174722){return this[_0x1e2db5(0x197)](_0x1e2db5(0x18f),{'error':new _0x492d6f(_0x1e2db5(0x1c3),this,{'sourceId':_0x157f77,'originalError':_0x174722}),'sourceId':_0x157f77,'sourceLabel':_0x4b120a[_0x1e2db5(0x1ad)]}),[];}}async[_0x215be7(0x143)](_0x5e20c9,_0x5e4ad4){const _0x4814af=_0x215be7;if(this[_0x4814af(0x198)](_0x5e4ad4['id']))return;let _0x16b0a9=_0x5e4ad4[_0x4814af(0x173)];if(!_0x16b0a9&&_0x5e20c9[_0x4814af(0x1c1)])try{_0x16b0a9=await _0x5e20c9[_0x4814af(0x1c1)](_0x5e4ad4['id']);}catch(_0x4fe844){return void this[_0x4814af(0x197)](_0x4814af(0x18f),{'error':new _0x492d6f(_0x4814af(0x1b5),this,{'resourceId':_0x5e4ad4['id'],'sourceId':_0x5e20c9['id'],'originalError':_0x4fe844}),'resourceId':_0x5e4ad4['id'],'sourceId':_0x5e20c9['id']});}if(_0x16b0a9)switch(_0x5e4ad4[_0x4814af(0x1b3)]){case _0x5672ff[_0x4814af(0x146)]:if(_0x4814af(0x15a)!=typeof _0x16b0a9)return void this[_0x4814af(0x197)](_0x4814af(0x18f),{'error':new _0x492d6f(_0x4814af(0x1a4),this,{'resourceId':_0x5e4ad4['id'],'sourceId':_0x5e20c9['id'],'expectedType':_0x4814af(0x15a),'actualType':typeof _0x16b0a9}),'resourceId':_0x5e4ad4['id'],'sourceId':_0x5e20c9['id']});await this[_0x4814af(0x19a)](_0x16b0a9,{'label':_0x5e4ad4[_0x4814af(0x1ad)],'resourceId':_0x5e4ad4['id']});break;case _0x5672ff[_0x4814af(0x17c)]:if(!(_0x16b0a9 instanceof File))return void this[_0x4814af(0x197)](_0x4814af(0x18f),{'error':new _0x492d6f(_0x4814af(0x1a4),this,{'resourceId':_0x5e4ad4['id'],'sourceId':_0x5e20c9['id'],'expectedType':_0x4814af(0x141),'actualType':typeof _0x16b0a9}),'resourceId':_0x5e4ad4['id'],'sourceId':_0x5e20c9['id']});await this[_0x4814af(0x1af)]([_0x16b0a9],{'label':_0x5e4ad4[_0x4814af(0x1ad)],'resourceId':_0x5e4ad4['id']});break;case _0x5672ff[_0x4814af(0x193)]:if(_0x4814af(0x1b1)!=typeof _0x16b0a9||!(_0x4814af(0x14a)in _0x16b0a9)||!(_0x4814af(0x1b3)in _0x16b0a9))return void this[_0x4814af(0x197)](_0x4814af(0x18f),{'error':new _0x492d6f(_0x4814af(0x1a4),this,{'resourceId':_0x5e4ad4['id'],'sourceId':_0x5e20c9['id'],'expectedType':_0x4814af(0x155),'actualType':typeof _0x16b0a9}),'resourceId':_0x5e4ad4['id'],'sourceId':_0x5e20c9['id']});_0x16b0a9=AIChatContext[_0x4814af(0x172)](_0x16b0a9,_0x5e4ad4[_0x4814af(0x1ad)]),await this[_0x4814af(0x1af)]([_0x16b0a9],{'label':_0x5e4ad4[_0x4814af(0x1ad)],'resourceId':_0x5e4ad4['id']},_0x5672ff[_0x4814af(0x193)]);break;case _0x5672ff[_0x4814af(0x166)]:break;default:this[_0x4814af(0x197)](_0x4814af(0x18f),{'error':new _0x492d6f(_0x4814af(0x167),this,{'resourceId':_0x5e4ad4['id'],'sourceId':_0x5e20c9['id'],'resourceType':_0x5e4ad4[_0x4814af(0x1b3)]}),'resourceId':_0x5e4ad4['id'],'sourceId':_0x5e20c9['id']});}else this[_0x4814af(0x197)](_0x4814af(0x18f),{'error':new _0x492d6f(_0x4814af(0x16d),this,{'resourceId':_0x5e4ad4['id'],'sourceId':_0x5e20c9['id']}),'resourceId':_0x5e4ad4['id'],'sourceId':_0x5e20c9['id']});}static[_0x215be7(0x172)](_0x2a83b4,_0x585752){const _0x4e9658=_0x215be7;switch(_0x2a83b4[_0x4e9658(0x1b3)]){case _0x5144de[_0x4e9658(0x163)]:return new File([_0x2a83b4[_0x4e9658(0x14a)]],_0x585752,{'type':_0x4e9658(0x1ae)});case _0x5144de[_0x4e9658(0x142)]:return new File([_0x2a83b4[_0x4e9658(0x14a)]],_0x585752,{'type':_0x4e9658(0x134)});default:return new File([_0x2a83b4[_0x4e9658(0x14a)]],_0x585752,{'type':_0x4e9658(0x17b)});}}static[_0x215be7(0x131)](_0x6dfd55){const _0x5f105f=_0x215be7;switch(_0x6dfd55[_0x5f105f(0x1b3)]){case _0x5672ff[_0x5f105f(0x17c)]:return{'type':_0x5672ff[_0x5f105f(0x17c)],'id':_0x6dfd55['id']};case _0x5672ff[_0x5f105f(0x146)]:return{'type':_0x5672ff[_0x5f105f(0x146)],'id':_0x6dfd55['id']};case _0x5672ff[_0x5f105f(0x138)]:return{'type':_0x5672ff[_0x5f105f(0x138)],'id':_0x6dfd55['id'],..._0x6dfd55[_0x5f105f(0x13e)]?.[_0x5f105f(0x194)]&&{'selection':_0x6dfd55[_0x5f105f(0x13e)]}};case _0x5672ff[_0x5f105f(0x193)]:return{'type':_0x5672ff[_0x5f105f(0x17c)],'id':_0x6dfd55['id']};case _0x5672ff[_0x5f105f(0x166)]:{const _0x459810=_0x6dfd55;return{'type':_0x5672ff[_0x5f105f(0x166)],'mcpServerName':_0x459810[_0x5f105f(0x174)],'toolName':_0x459810[_0x5f105f(0x14f)],'data':_0x459810[_0x5f105f(0x173)],'id':_0x459810['id']};}default:return null;}}[_0x215be7(0x156)](_0x42ec74,_0x3fc885=!0x1){const _0x282762=_0x215be7;if(this[_0x282762(0x1bb)][_0x282762(0x169)](_0x42ec74[_0x282762(0x1a7)],_0x42ec74),_0x42ec74[_0x282762(0x161)]||this[_0x282762(0x197)](_0x282762(0x190),{'contextItem':_0x42ec74,'isLoading':_0x3fc885}),_0x282762(0x1ba)===_0x42ec74[_0x282762(0x1a7)]&&this[_0x282762(0x178)](),_0x42ec74[_0x282762(0x17a)]){const _0x1ecf83=this[_0x282762(0x177)](_0x42ec74[_0x282762(0x17a)]);_0x1ecf83&&_0x1ecf83[_0x282762(0x182)](_0x2bae3e=>{const _0x2052e4=_0x282762;this[_0x2052e4(0x16f)](_0x2bae3e,_0x42ec74[_0x2052e4(0x17a)],!0x0);});}}[_0x215be7(0x1ac)](_0x4b133d){const _0x6e45ee=_0x215be7,_0x1ff4cc=this[_0x6e45ee(0x1bb)][_0x6e45ee(0x132)](_0x4b133d),_0x184f00=this[_0x6e45ee(0x191)][_0x6e45ee(0x132)](_0x4b133d);if(_0x184f00&&(_0x184f00[_0x6e45ee(0x18b)](),this[_0x6e45ee(0x191)][_0x6e45ee(0x139)](_0x4b133d)),_0x1ff4cc?.[_0x6e45ee(0x17a)]){const _0xd23d5e=this[_0x6e45ee(0x177)](_0x1ff4cc[_0x6e45ee(0x17a)]);_0xd23d5e&&_0xd23d5e[_0x6e45ee(0x182)](_0x44ade7=>{const _0x1d227f=_0x6e45ee;this[_0x1d227f(0x16f)](_0x44ade7,_0x1ff4cc[_0x1d227f(0x17a)],!0x1);});}this[_0x6e45ee(0x1bb)][_0x6e45ee(0x139)](_0x4b133d),this[_0x6e45ee(0x197)](_0x6e45ee(0x181),{'uiId':_0x4b133d,'type':_0x1ff4cc?.[_0x6e45ee(0x1b3)]}),_0x6e45ee(0x1ba)===_0x4b133d&&this[_0x6e45ee(0x178)]();}[_0x215be7(0x168)](_0x264b50,_0x5a41fd){const _0x29a491=_0x215be7;if(this[_0x29a491(0x1bb)][_0x29a491(0x179)](_0x264b50[_0x29a491(0x1a7)])&&(this[_0x29a491(0x1bb)][_0x29a491(0x169)](_0x264b50[_0x29a491(0x1a7)],_0x264b50),this[_0x29a491(0x197)](_0x29a491(0x196),{'contextItem':_0x264b50,'isLoading':_0x5a41fd}),_0x264b50[_0x29a491(0x17a)])){const _0x3d3e9d=this[_0x29a491(0x177)](_0x264b50[_0x29a491(0x17a)]);_0x3d3e9d&&_0x3d3e9d[_0x29a491(0x182)](_0x2c2c3c=>{const _0x23542b=_0x29a491;this[_0x23542b(0x16f)](_0x2c2c3c,_0x264b50[_0x23542b(0x17a)],!0x0);});}}[_0x215be7(0x150)](_0x99cefa){const _0x3a5dcd=_0x215be7;this[_0x3a5dcd(0x18d)][_0x3a5dcd(0x169)](_0x99cefa[_0x3a5dcd(0x1a7)],_0x99cefa);}[_0x215be7(0x159)](){const _0x2bb8cd=_0x215be7;this[_0x2bb8cd(0x18c)]={'document':{'enabled':!0x1!==this[_0x2bb8cd(0x1b6)]?.[_0x2bb8cd(0x13d)]?.[_0x2bb8cd(0x15f)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x2bb8cd(0x1b6)]?.[_0x2bb8cd(0x195)]?.[_0x2bb8cd(0x15f)]},'files':{'enabled':!0x1!==this[_0x2bb8cd(0x1b6)]?.[_0x2bb8cd(0x171)]?.[_0x2bb8cd(0x15f)]},'sources':this[_0x2bb8cd(0x1a2)](),'customItems':this[_0x2bb8cd(0x1b6)]?.[_0x2bb8cd(0x15c)]?.[_0x2bb8cd(0x17f)](_0x4daef1=>({..._0x4daef1,'enabled':!0x0}))??[]},this[_0x2bb8cd(0x197)](_0x2bb8cd(0x1a5),{'options':this[_0x2bb8cd(0x18c)]});}[_0x215be7(0x1a2)](){const _0x35b4f6=_0x215be7;return this[_0x35b4f6(0x1b6)]?.[_0x35b4f6(0x149)]?.[_0x35b4f6(0x17f)](_0x57f200=>({..._0x57f200,'resources':[]}))??[];}[_0x215be7(0x178)](){const _0x2d94fc=_0x215be7,_0x5c20ed=this[_0x2d94fc(0x15e)]()||this[_0x2d94fc(0x14b)]();this[_0x2d94fc(0x18c)][_0x2d94fc(0x13d)][_0x2d94fc(0x1ab)]=_0x5c20ed,this[_0x2d94fc(0x197)](_0x2d94fc(0x1a5),{'options':this[_0x2d94fc(0x18c)]});}[_0x215be7(0x198)](_0x1d915e){const _0x3a8d2d=_0x215be7;for(const _0x16c7a6 of this[_0x3a8d2d(0x1bb)][_0x3a8d2d(0x147)]())if(_0x16c7a6[_0x3a8d2d(0x17a)]===_0x1d915e)return!0x0;for(const _0x113dae of this[_0x3a8d2d(0x18d)][_0x3a8d2d(0x147)]())if(_0x113dae[_0x3a8d2d(0x17a)]===_0x1d915e)return!0x0;return!0x1;}[_0x215be7(0x177)](_0x3f1770){const _0x2b52b4=_0x215be7,_0x606c61=[];for(const _0x520a74 of this[_0x2b52b4(0x18c)][_0x2b52b4(0x149)]){_0x520a74[_0x2b52b4(0x19f)][_0x2b52b4(0x1a3)](_0xd43104=>_0xd43104['id']===_0x3f1770)&&_0x606c61[_0x2b52b4(0x1bd)](_0x520a74['id']);}return 0x0===_0x606c61[_0x2b52b4(0x194)]?null:_0x606c61;}[_0x215be7(0x16f)](_0xda2daf,_0x23e21c,_0x1993bb){const _0x15717e=_0x215be7,_0x2870d4=this[_0x15717e(0x18c)][_0x15717e(0x149)][_0x15717e(0x1a3)](_0x750952=>_0x750952['id']===_0xda2daf);if(!_0x2870d4)return;const _0x1a865d=_0x2870d4[_0x15717e(0x19f)][_0x15717e(0x1a3)](_0x16ddfd=>_0x16ddfd['id']===_0x23e21c);_0x1a865d&&(_0x1a865d[_0x15717e(0x192)]=_0x1993bb,this[_0x15717e(0x197)](_0x15717e(0x157),{'sourceId':_0xda2daf,'resourceId':_0x23e21c,'isInContext':_0x1993bb}));}[_0x215be7(0x165)](_0x54114d){const _0x475827=_0x215be7;this[_0x475827(0x133)][_0x475827(0x169)](_0x54114d,!0x0),this[_0x475827(0x133)][_0x475827(0x162)]&&this[_0x475827(0x197)](_0x475827(0x13f),{'isUploadInProgress':!0x0});}[_0x215be7(0x14c)](_0x5aa3cf){const _0x42d25e=_0x215be7;this[_0x42d25e(0x133)][_0x42d25e(0x139)](_0x5aa3cf),0x0===this[_0x42d25e(0x133)][_0x42d25e(0x162)]&&this[_0x42d25e(0x197)](_0x42d25e(0x13f),{'isUploadInProgress':!0x1});}}function _0x4d43(){const _0x722e24=['ai-chat-context-invalid-data','addContextOptionsChanged','populateFromMessage','uiId','code','ai-request-aborted','getId','isHidden','_removeContextItem','label','text/markdown','addFilesToContext','174HxKOOA','object','attributes','type','url-','ai-chat-resource-load-failed','_config','getSentContextItems','addCurrentDocumentToContext','all','current-document','_pendingContextItems','removeFromContext','push','mapContextItemsToRequestData','fetchDocument','isReadOnly','getData','SELECTION','ai-chat-source-resources-load-failed','message','_mapContextItemToRequestData','get','_ongoingUploadOperations','text/html','84637SxlOQg','stack','Current\x20document','DOCUMENT','delete','addToConversationContext','382822jBSinQ','176248CsKUCx','document','selection','uploadProgressChanged','removeSelectionFromContext','File','HTML','addResourceToContext','getPendingContextItems','abortController','URL','values','getResources','sources','content','isCurrentDocumentInConversation','_finishUploadOperation','from','uploadFile','toolName','_addToConversationContextItem','ai-chat-source-not-found','updateCurrentDocument','end','uploadUrl','object\x20with\x20content\x20and\x20type\x20properties','_addContextItem','resourceStateChanged','1089270LSnLHT','_setAddContextOptionsDefaultState','string','uploadDocument','customItems','start','isCurrentDocumentInContext','enabled','loadSourceResources','hidden','size','MARKDOWN','clearPendingContextItems','_startUploadOperation','TOOL','ai-chat-context-unsupported-type','_finishContextItemLoading','set','_createContextItemFromContent','startsWith','1613650CfuNAt','ai-chat-resource-no-data','sourceResourcesLoaded','_updateResourceInContextState','name','files','_convertTextResourceToFile','data','mcpServerName','isSelectionInContext','36864HbEeUC','_findSourceIdsByResourceId','_toggleAddCurrentDocumentOptionVisibility','has','resourceId','text/plain','FILE','filter','_ownerId','map','file-','contextItemRemoved','forEach','substring','addSelectionToContext','110373qldNOT','files-','addToolItemToContext','init','ai-chat-file-upload-failed','version','abort','_addContextOptionsState','_conversationContextItems','sessionId','error','contextItemAdded','_ongoingUploads','isInContext','TEXT','length','urls','contextItemLoadingEnded','fire','_isResourceInContext','getDocument','addUrlToContext','ai-chat-document-upload-failed','url','_connector','ai-chat-url-upload-failed','resources','contextSent','1736OWIJDV','_getCustomSourcesInitialState','find'];_0x4d43=function(){return _0x722e24;};return _0x4d43();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3bbf0d=_0x4c66;(function(_0x3b96c3,_0x5aafe2){const _0x26ff2a=_0x4c66,_0x33b783=_0x3b96c3();while(!![]){try{const _0x57c9b3=parseInt(_0x26ff2a(0xc6))/0x1+parseInt(_0x26ff2a(0xad))/0x2+parseInt(_0x26ff2a(0xfa))/0x3*(-parseInt(_0x26ff2a(0x97))/0x4)+-parseInt(_0x26ff2a(0xdc))/0x5*(parseInt(_0x26ff2a(0x10e))/0x6)+parseInt(_0x26ff2a(0x10a))/0x7*(-parseInt(_0x26ff2a(0xb5))/0x8)+-parseInt(_0x26ff2a(0xa9))/0x9*(-parseInt(_0x26ff2a(0xbe))/0xa)+parseInt(_0x26ff2a(0x8f))/0xb*(parseInt(_0x26ff2a(0xde))/0xc);if(_0x57c9b3===_0x5aafe2)break;else _0x33b783['push'](_0x33b783['shift']());}catch(_0x401b49){_0x33b783['push'](_0x33b783['shift']());}}}(_0x5699,0xee32a));import{CKEditorError as _0x10d673,EmitterMixin as _0x4052e8,logWarning as _0x5df988}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x4c2708}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x2893fe,AI_CONTEXT_MODEL_EVENT_NAMES as _0x5ace92}from'./aichatcontext.js';import{AICapabilities as _0x38efa3,CAPABILITIES_MODEL_EVENT_NAMES as _0x3f5785}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x23b881}from'./aichatinteraction.js';import{errorsMap as _0xf8eb61}from'../../errorsmap.js';function _0x4c66(_0x616993,_0x4d1ff8){const _0x5699fc=_0x5699();return _0x4c66=function(_0x4c6656,_0x40c781){_0x4c6656=_0x4c6656-0x8f;let _0x5c688b=_0x5699fc[_0x4c6656];return _0x5c688b;},_0x4c66(_0x616993,_0x4d1ff8);}export class AIChatConversation extends _0x4052e8(){['id'];[_0x3bbf0d(0x95)]=!0x1;[_0x3bbf0d(0xc3)];[_0x3bbf0d(0xc1)]=[];[_0x3bbf0d(0xc8)];[_0x3bbf0d(0xa4)];[_0x3bbf0d(0xb9)];[_0x3bbf0d(0xa5)];constructor(_0x231407){const _0x3f616b=_0x3bbf0d;super(),this[_0x3f616b(0xa5)]=_0x231407,this[_0x3f616b(0xb9)]=_0x231407[_0x3f616b(0xb9)],this[_0x3f616b(0xc4)]=_0x231407[_0x3f616b(0xc4)],this['id']=_0x231407[_0x3f616b(0xda)],this[_0x3f616b(0xc3)]=_0x231407[_0x3f616b(0xc3)];}async[_0x3bbf0d(0xf1)](_0x5ecf77){const _0xf702a6=_0x3bbf0d;try{this[_0xf702a6(0x100)]=new _0x2893fe({'connector':this[_0xf702a6(0xb9)],'config':_0x5ecf77,'ownerId':this['id']}),this[_0xf702a6(0x100)][_0xf702a6(0xac)](..._0x5ace92)['to'](this),this[_0xf702a6(0x100)][_0xf702a6(0xf1)](),this[_0xf702a6(0xaa)]=new _0x38efa3(),this[_0xf702a6(0xaa)][_0xf702a6(0xac)](..._0x3f5785)['to'](this),this[_0xf702a6(0xaa)][_0xf702a6(0xf1)]();const _0x32e711=await this[_0xf702a6(0xc4)][_0xf702a6(0xe7)]();this[_0xf702a6(0x96)](_0xf702a6(0xb6),{'availableModels':_0x32e711});const _0x124b5b=await this[_0xf702a6(0xc4)][_0xf702a6(0xb2)](this[_0xf702a6(0xa5)][_0xf702a6(0x10c)]);_0x124b5b&&await this[_0xf702a6(0xd7)](_0x124b5b);}catch(_0x47edea){const _0x4063d2=new _0x10d673(_0xf702a6(0xb8),null,{'message':_0x47edea[_0xf702a6(0xbf)]||_0x47edea});_0x4063d2[_0xf702a6(0x102)]=_0x47edea[_0xf702a6(0x102)],this[_0xf702a6(0x96)](_0xf702a6(0xee),{'error':_0x4063d2});}}async[_0x3bbf0d(0x103)](){const _0x230d0b=_0x3bbf0d;if(this[_0x230d0b(0x95)])throw new _0x10d673(_0x230d0b(0xea),null,{'conversation':this});if(!this[_0x230d0b(0xa4)])throw new _0x10d673(_0x230d0b(0xf4),null,{'conversation':this});try{const {id:_0x193c11}=await this[_0x230d0b(0xb9)][_0x230d0b(0xbc)](this['id'],this[_0x230d0b(0xa5)][_0x230d0b(0xbb)])[_0x230d0b(0xa3)]();this['id']=_0x193c11,this[_0x230d0b(0x95)]=!0x0,this[_0x230d0b(0x96)](_0x230d0b(0xd9),{'conversationId':this['id'],'selectedModel':this[_0x230d0b(0xa4)]});}catch(_0x38892b){const _0x566a8a=new _0x10d673(_0x230d0b(0xb4),null,{'message':_0x38892b[_0x230d0b(0xbf)],'conversationId':this['id']});throw _0x566a8a[_0x230d0b(0x102)]=_0x38892b[_0x230d0b(0x102)],this[_0x230d0b(0x96)](_0x230d0b(0xee),{'error':_0x566a8a}),_0x566a8a;}}async[_0x3bbf0d(0xa6)](_0xd02a0f,_0x28fc1a){const _0x3970cd=_0x3bbf0d;try{const _0x424f7d=await this[_0x3970cd(0xb9)][_0x3970cd(0x107)](_0xd02a0f)[_0x3970cd(0xa3)](),_0xe530ea=await this[_0x3970cd(0xb9)][_0x3970cd(0x9a)](_0xd02a0f)[_0x3970cd(0x9e)](),_0xf74eaf=_0xe530ea[0x0][_0x3970cd(0xd4)];this[_0x3970cd(0x95)]=!0x0,this['id']=_0x424f7d['id'],_0x3970cd(0xe9)in _0x424f7d?this[_0x3970cd(0x96)](_0x3970cd(0xa7),_0x424f7d[_0x3970cd(0xe9)],!0x0):this[_0x3970cd(0x96)](_0x3970cd(0xa7),'',!0x0);const _0x3d80fd=(await this[_0x3970cd(0xc4)][_0x3970cd(0xb1)]())[_0x3970cd(0xd2)](_0xe04ad6=>_0xe04ad6['id'][_0x3970cd(0x108)]()===_0xf74eaf[_0x3970cd(0x108)]());return this[_0x3970cd(0xa4)]=_0x3d80fd,this[_0x3970cd(0x96)](_0x3970cd(0xef),{'selectedModel':_0x3d80fd,'isDisabled':!0x0}),await this[_0x3970cd(0x91)](_0xe530ea,_0x28fc1a,_0xf74eaf),this[_0x3970cd(0xc8)]=void 0x0,this;}catch(_0x328ff7){const _0xedf598=new _0x10d673(_0x3970cd(0xe6),null,{'message':_0x328ff7[_0x3970cd(0xbf)],'conversationId':_0xd02a0f});throw _0xedf598[_0x3970cd(0x102)]=_0x328ff7[_0x3970cd(0x102)],this[_0x3970cd(0x96)](_0x3970cd(0xee),{'error':_0xedf598}),_0xedf598;}}async[_0x3bbf0d(0x91)](_0x57ab13,_0x42d7c1,_0x103bcf){const _0x2036f7=_0x3bbf0d;let _0x3bf157;for(const _0x260c8e of _0x57ab13)if(_0x2036f7(0xce)===_0x260c8e[_0x2036f7(0x90)]){const _0x593a02=await this[_0x2036f7(0xa2)](_0x260c8e),_0xec7357={'isReasoningEnabled':Object[_0x2036f7(0xec)](_0x260c8e[_0x2036f7(0xcd)],_0x2036f7(0xfb)),'isWebSearchEnabled':Object[_0x2036f7(0xec)](_0x260c8e[_0x2036f7(0xcd)],_0x2036f7(0xc9))};_0x3bf157=this[_0x2036f7(0xd0)]({'userMessage':_0x260c8e[_0x2036f7(0xcc)],'contextItems':_0x593a02,'capabilities':_0xec7357,'modelId':_0x103bcf,'attributes':_0x260c8e[_0x2036f7(0xe4)]}),this[_0x2036f7(0xc8)]=_0x3bf157,this[_0x2036f7(0x100)][_0x2036f7(0x101)](this[_0x2036f7(0xc8)][_0x2036f7(0xfc)]);}else{if(_0x2036f7(0xdd)===_0x260c8e[_0x2036f7(0x90)]&&_0x3bf157){const _0x59a64d=[];for(const _0x1bac7d of _0x260c8e[_0x2036f7(0xba)])switch(_0x1bac7d[_0x2036f7(0x10d)]){case _0x2036f7(0xc0):case _0x2036f7(0xfe):{const _0x4a55db=_0x3bf157[_0x2036f7(0xf5)]()?.[_0x2036f7(0xf3)]!==_0x42d7c1;_0x3bf157[_0x2036f7(0x9b)]=_0x3bf157[_0x2036f7(0x106)]({'type':_0x1bac7d[_0x2036f7(0x10d)],'isDone':!0x0,'interactionId':_0x3bf157['id'],'areActionsDisabled':_0x4a55db}),_0x3bf157[_0x2036f7(0x9b)][_0x2036f7(0xeb)](_0x1bac7d[_0x2036f7(0xba)]),_0x59a64d[_0x2036f7(0xcb)]>0x0&&(_0x3bf157[_0x2036f7(0x9b)][_0x2036f7(0xd3)]=_0x59a64d[_0x2036f7(0xb7)](0x0));break;}case _0x2036f7(0xd1):_0x59a64d[_0x2036f7(0xbd)](_0x1bac7d);break;case _0x2036f7(0xf8):{const {data:_0x5e80b3,attributes:_0x1e6eea}=JSON[_0x2036f7(0xca)](_0x1bac7d[_0x2036f7(0xba)]);_0x3bf157[_0x2036f7(0x109)]({'toolName':_0x1bac7d[_0x2036f7(0xf9)],'data':_0x5e80b3,'attributes':_0x1e6eea});break;}}}}}async[_0x3bbf0d(0xa2)](_0x569068){const _0x4dd69d=_0x3bbf0d,_0x4d669a=new Map();if(!_0x569068[_0x4dd69d(0xba)])return _0x4d669a;for(const _0x43c386 of _0x569068[_0x4dd69d(0xba)]){const _0x440b5c=await this[_0x4dd69d(0x100)][_0x4dd69d(0xc2)](_0x43c386);_0x440b5c&&_0x4d669a[_0x4dd69d(0xae)](_0x440b5c['id'],_0x440b5c);}return _0x4d669a;}async[_0x3bbf0d(0xd8)]({userMessage:_0x1c6c2d,attributes:_0x5ca675}){const _0x5e461e=_0x3bbf0d;if(!this[_0x5e461e(0x95)])throw new _0x10d673(_0x5e461e(0xd5),null,{'conversation':this});if(this[_0x5e461e(0xc8)])throw new _0x10d673(_0x5e461e(0xdf),null,{'conversation':this});try{const _0x2f314c=this[_0x5e461e(0x100)][_0x5e461e(0x92)](),_0x51349c=this[_0x5e461e(0xaa)][_0x5e461e(0x93)](),_0x4404e8=this[_0x5e461e(0xa4)]['id'];this[_0x5e461e(0xc8)]=this[_0x5e461e(0xd0)]({'userMessage':_0x1c6c2d,'contextItems':_0x2f314c,'capabilities':_0x51349c,'modelId':_0x4404e8,'attributes':_0x5ca675}),await this[_0x5e461e(0xc8)][_0x5e461e(0x103)](),this[_0x5e461e(0x100)][_0x5e461e(0x101)](this[_0x5e461e(0xc8)][_0x5e461e(0xfc)]);}catch(_0x5c0d8e){if(_0x5c0d8e instanceof _0x10d673)this[_0x5e461e(0x96)](_0x5e461e(0xee),{'interactionId':this[_0x5e461e(0xc8)]?this[_0x5e461e(0xc8)]['id']:void 0x0,'error':_0x5c0d8e});else{const _0x4c54ab=_0xf8eb61[_0x5e461e(0xfd)](_0x5c0d8e[_0x5e461e(0xed)])||_0x5e461e(0xd6);this[_0x5e461e(0x96)](_0x5e461e(0xee),{'interactionId':this[_0x5e461e(0xc8)]?this[_0x5e461e(0xc8)]['id']:void 0x0,'error':new _0x10d673(_0x4c54ab,null,{'error':_0x5c0d8e})});}}finally{this[_0x5e461e(0xc8)]?.[_0x5e461e(0xf7)](),this[_0x5e461e(0xc8)]=void 0x0;}}[_0x3bbf0d(0xd0)]({userMessage:_0x1fbb33,contextItems:_0x2462bd,capabilities:_0x14ee71,modelId:_0x1dda28,attributes:_0x16ae3e}){const _0xb39dfb=_0x3bbf0d,_0x2abd79=new _0x23b881({'userMessage':_0x1fbb33,'contextItems':_0x2462bd,'capabilities':_0x14ee71,'conversationId':this['id'],'connector':this[_0xb39dfb(0xb9)],'editor':this[_0xb39dfb(0xa5)][_0xb39dfb(0xf2)]&&this[_0xb39dfb(0xa5)][_0xb39dfb(0xf2)](),'model':_0x1dda28,'attributes':_0x16ae3e});return _0x2abd79[_0xb39dfb(0xac)](..._0x4c2708)['to'](this),this[_0xb39dfb(0xc1)][_0xb39dfb(0xbd)](_0x2abd79),this[_0xb39dfb(0x96)](_0xb39dfb(0xe8),_0x2abd79),_0x2abd79;}[_0x3bbf0d(0x9d)](_0x556548){const _0xd04e2b=_0x3bbf0d;return this[_0xd04e2b(0xc1)][_0xd04e2b(0xd2)](_0x1e0405=>_0x1e0405['id']===_0x556548);}[_0x3bbf0d(0xe2)](_0x54c19b){const _0x370316=_0x3bbf0d,_0x1134fa=this[_0x370316(0x9d)](_0x54c19b);_0x1134fa&&(_0x1134fa[_0x370316(0xab)](),this[_0x370316(0xc1)][_0x370316(0xb7)](this[_0x370316(0xc1)][_0x370316(0xdb)](_0x1134fa),0x1));}get[_0x3bbf0d(0x99)](){const _0x219254=_0x3bbf0d;return this[_0x219254(0xc1)][this[_0x219254(0xc1)][_0x219254(0xcb)]-0x1];}[_0x3bbf0d(0xc7)](_0x2881a1){const _0x514991=_0x3bbf0d;this[_0x514991(0x100)][_0x514991(0xc7)](_0x2881a1);}async[_0x3bbf0d(0xcf)]({content:_0x36740a,version:_0x4980be,sessionId:_0x4d770c,selections:_0x16a05b}){const _0x3747ca=_0x3bbf0d;await this[_0x3747ca(0x100)][_0x3747ca(0x9c)](_0x36740a,_0x4980be,_0x4d770c,_0x16a05b);}[_0x3bbf0d(0xe5)](){const _0x1b5ccc=_0x3bbf0d;return this[_0x1b5ccc(0xc8)]?.[_0x1b5ccc(0xf5)]()?.[_0x1b5ccc(0xba)]||'';}[_0x3bbf0d(0x94)](_0x348310){const _0x29c729=_0x3bbf0d;this[_0x29c729(0x100)][_0x29c729(0x94)](_0x348310);}[_0x3bbf0d(0x104)](){const _0x52d8b5=_0x3bbf0d;this[_0x52d8b5(0x100)][_0x52d8b5(0x104)]();}[_0x3bbf0d(0x105)](_0x49dfc6){const _0x55220b=_0x3bbf0d;this[_0x55220b(0x100)][_0x55220b(0x105)](_0x49dfc6);}[_0x3bbf0d(0xe1)](_0xbb06e4){const _0x4b0803=_0x3bbf0d;this[_0x4b0803(0x100)][_0x4b0803(0xe1)](_0xbb06e4);}[_0x3bbf0d(0x10b)](_0xb28a54){const _0x27cc72=_0x3bbf0d;this[_0x27cc72(0x100)][_0x27cc72(0x10b)](_0xb28a54);}[_0x3bbf0d(0xf0)](_0x1ff8e8,_0x286fc2){const _0x9f943c=_0x3bbf0d;this[_0x9f943c(0x100)][_0x9f943c(0xf0)](_0x1ff8e8,_0x286fc2);}[_0x3bbf0d(0xa1)](_0x300a5e,_0x513954,_0x1fe888){const _0x15ff74=_0x3bbf0d;return this[_0x15ff74(0x100)][_0x15ff74(0xa1)](_0x300a5e,_0x513954,_0x1fe888);}[_0x3bbf0d(0xb0)](_0x44df18){const _0x15e35a=_0x3bbf0d;this[_0x15e35a(0x100)][_0x15e35a(0xb0)](_0x44df18);}[_0x3bbf0d(0xaf)](_0x38e0ba){const _0x19b8b0=_0x3bbf0d;this[_0x19b8b0(0xaa)][_0x19b8b0(0xaf)](_0x38e0ba);}[_0x3bbf0d(0xa0)](){const _0x599110=_0x3bbf0d;this[_0x599110(0xaa)][_0x599110(0xa0)]();}[_0x3bbf0d(0x98)](_0xd6f54d){const _0x1d06ad=_0x3bbf0d;this[_0x1d06ad(0xaa)][_0x1d06ad(0x98)](_0xd6f54d);}[_0x3bbf0d(0xff)](){const _0x11606b=_0x3bbf0d;this[_0x11606b(0xaa)][_0x11606b(0xff)]();}[_0x3bbf0d(0xa8)](){const _0x10d78c=_0x3bbf0d;return this[_0x10d78c(0x100)][_0x10d78c(0xa8)]();}[_0x3bbf0d(0xc5)](){const _0x1d91c2=_0x3bbf0d;return this[_0x1d91c2(0x100)][_0x1d91c2(0xc5)]();}[_0x3bbf0d(0x9f)](){const _0x137e95=_0x3bbf0d;return this[_0x137e95(0x100)][_0x137e95(0x9f)]();}async[_0x3bbf0d(0xd7)](_0x21ea34){const _0x4a8c97=_0x3bbf0d;_0x21ea34?!0x1===await this[_0x4a8c97(0xc4)][_0x4a8c97(0xb3)](_0x21ea34)&&(_0x5df988(_0x4a8c97(0xe3),{'conversation':this,'model':_0x21ea34}),_0x21ea34=(await this[_0x4a8c97(0xc4)][_0x4a8c97(0xe7)]())[0x0]):(_0x5df988(_0x4a8c97(0xf6),{'conversation':this}),_0x21ea34=(await this[_0x4a8c97(0xc4)][_0x4a8c97(0xe7)]())[0x0]),_0x21ea34['id']!==this[_0x4a8c97(0xa4)]?.['id']&&(this[_0x4a8c97(0xa4)]=_0x21ea34,this[_0x4a8c97(0xaa)][_0x4a8c97(0xe0)](),this[_0x4a8c97(0x96)](_0x4a8c97(0xef),{'selectedModel':_0x21ea34}));}}function _0x5699(){const _0x33231c=['toggleReasoning','chatContext','addToConversationContext','stack','start','removeSelectionFromContext','addFilesToContext','createReply','fetchConversation','toLowerCase','_handleToolResultData','280tvOMWc','addToolItemToContext','selectedModelId','type','36NOSzwX','4312tbFNPS','role','_processMessagesToInteractions','getPendingContextItems','getCapabilitiesConfig','addSelectionToContext','isStarted','fire','5047828bHzjnM','setReasoning','lastInteraction','fetchConversationMessages','currentReply','updateCurrentDocument','getInteraction','getMessages','isSelectionInContext','toggleWebSearch','loadSourceResources','_extractContextItems','getConversation','selectedModel','options','load','setConversationTitle','isCurrentDocumentInContext','9qDMFLy','chatCapabilities','destroy','delegate','1979582bMHayt','set','setWebSearch','removeFromContext','getAll','getModel','isAvailable','ai-chat-conversation-start-failed','71152Cueubl','conversationInitialized','splice','ai-chat-conversation-init-failed','connector','content','group','startConversation','push','7652030qcgQIN','message','text','interactions','populateFromMessage','isFromHistory','chatModels','isCurrentDocumentInConversation','1874127rVfoTc','addCurrentDocumentToContext','currentInteraction','webSearch','parse','length','prompt','capabilities','user','updateCurrentDocumentInContext','createInteraction','url','find','sources','model','ai-chat-handle-user-conversation-not-initialized','ai-chat-handle-user-interaction-start-failed','setModel','handleUserInteraction','conversationStarted','conversationId','indexOf','1353775WzGfOw','assistant','18024tVrcPA','ai-chat-handle-user-interaction-already-in-progress','reset','addUrlToContext','removeInteraction','ai-chat-conversation-set-model-not-available','attributes','getCurrentDocumentContext','ai-chat-conversation-init-from-id-failed','getAvailableModels','interactionCreated','title','ai-chat-conversation-already-started','appendContent','hasOwn','code','error','modelSelected','addResourceToContext','init','getEditor','sessionId','ai-chat-conversation-start-no-model-selected','getDocumentContext','ai-chat-conversation-set-model-null','stop','mcp-tool-result','toolName','3WPuUmY','reasoning','contextItems','get','modification'];_0x5699=function(){return _0x33231c;};return _0x5699();}
|
|
23
|
+
const _0x149bcd=_0x188b;(function(_0x3b7ef0,_0x394d4e){const _0x1f10c6=_0x188b,_0x41f9b0=_0x3b7ef0();while(!![]){try{const _0x3574af=parseInt(_0x1f10c6(0xdb))/0x1*(-parseInt(_0x1f10c6(0xa1))/0x2)+-parseInt(_0x1f10c6(0xc9))/0x3*(parseInt(_0x1f10c6(0x8b))/0x4)+parseInt(_0x1f10c6(0xbd))/0x5+-parseInt(_0x1f10c6(0x74))/0x6*(parseInt(_0x1f10c6(0x8f))/0x7)+parseInt(_0x1f10c6(0xb2))/0x8+-parseInt(_0x1f10c6(0x9d))/0x9+-parseInt(_0x1f10c6(0xe4))/0xa*(-parseInt(_0x1f10c6(0x80))/0xb);if(_0x3574af===_0x394d4e)break;else _0x41f9b0['push'](_0x41f9b0['shift']());}catch(_0x59d1c2){_0x41f9b0['push'](_0x41f9b0['shift']());}}}(_0x42a0,0x83f25));import{CKEditorError as _0x3c69b2,EmitterMixin as _0x29a54f,logWarning as _0x449db2}from'ckeditor5/src/utils.js';function _0x188b(_0x193783,_0x9af1ae){const _0x42a01e=_0x42a0();return _0x188b=function(_0x188b82,_0x421e3e){_0x188b82=_0x188b82-0x66;let _0x2624a8=_0x42a01e[_0x188b82];return _0x2624a8;},_0x188b(_0x193783,_0x9af1ae);}import{AI_MODEL_EVENT_NAMES as _0x16ee8e}from'../../aicore/model/aiinteraction.js';function _0x42a0(){const _0xa80c99=['1500135ZwxrPe','attributes','ai-chat-handle-user-interaction-already-in-progress','getPendingContextItems','url','loadSourceResources','getInteraction','modelSelected','hasOwn','chatModels','assistant','ai-chat-conversation-init-failed','sources','destroy','get','getModel','getAll','startConversation','1obzdPY','load','stop','conversationInitialized','getCapabilitiesConfig','removeSelectionFromContext','ai-chat-conversation-set-model-null','ai-chat-handle-user-interaction-start-failed','removeInteraction','1244260VEsMrS','setModel','updateCurrentDocument','find','isFromHistory','removeFromContext','code','ai-chat-conversation-set-model-not-available','prompt','appendContent','createInteraction','addResourceToContext','user','ai-chat-handle-user-conversation-not-initialized','content','4157292yCrWfy','type','_extractContextItems','addToConversationContext','capabilities','toLowerCase','delegate','getDocumentContext','interactionCreated','reasoning','role','message','198dKRbzV','chatCapabilities','addFilesToContext','splice','isAvailable','setReasoning','model','fire','getConversation','createReply','title','4PltBiZ','getEditor','_handleToolResultData','selectedModelId','7VXtUly','handleUserInteraction','populateFromMessage','lastInteraction','getCurrentDocumentContext','stack','conversationStarted','chatContext','contextItems','interactions','updateCurrentDocumentInContext','currentInteraction','fetchConversationMessages','webSearch','7827156fqyBck','modification','ai-chat-conversation-already-started','ai-chat-conversation-init-from-id-failed','1558936PtyMTk','isSelectionInContext','conversationId','text','start','push','group','addCurrentDocumentToContext','parse','addUrlToContext','isCurrentDocumentInConversation','setConversationTitle','setWebSearch','fetchConversation','getAvailableModels','isCurrentDocumentInContext','error','1026528nVKUIS','reset','options','ai-chat-conversation-start-failed','indexOf','connector','getMessages','toggleWebSearch','toolName','sessionId','init','5072740JFdOGy','mcp-tool-result','currentReply','length','_processMessagesToInteractions','ai-chat-conversation-start-no-model-selected','addToolItemToContext','addSelectionToContext','isStarted','selectedModel','toggleReasoning','set'];_0x42a0=function(){return _0xa80c99;};return _0x42a0();}import{AIChatContext as _0x13f61c,AI_CONTEXT_MODEL_EVENT_NAMES as _0x12633b}from'./aichatcontext.js';import{AICapabilities as _0x26241c,CAPABILITIES_MODEL_EVENT_NAMES as _0x576033}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x1016a4}from'./aichatinteraction.js';import{errorsMap as _0x5eb07}from'../../errorsmap.js';export class AIChatConversation extends _0x29a54f(){['id'];[_0x149bcd(0xc5)]=!0x1;[_0x149bcd(0x69)];[_0x149bcd(0x98)]=[];[_0x149bcd(0x9a)];[_0x149bcd(0xc6)];[_0x149bcd(0xb7)];[_0x149bcd(0xb4)];constructor(_0x139668){const _0xe1357a=_0x149bcd;super(),this[_0xe1357a(0xb4)]=_0x139668,this[_0xe1357a(0xb7)]=_0x139668[_0xe1357a(0xb7)],this[_0xe1357a(0xd2)]=_0x139668[_0xe1357a(0xd2)],this['id']=_0x139668[_0xe1357a(0xa3)],this[_0xe1357a(0x69)]=_0x139668[_0xe1357a(0x69)];}async[_0x149bcd(0xbc)](_0x249492){const _0x466e0a=_0x149bcd;try{this[_0x466e0a(0x96)]=new _0x13f61c({'connector':this[_0x466e0a(0xb7)],'config':_0x249492,'ownerId':this['id']}),this[_0x466e0a(0x96)][_0x466e0a(0x7a)](..._0x12633b)['to'](this),this[_0x466e0a(0x96)][_0x466e0a(0xbc)](),this[_0x466e0a(0x81)]=new _0x26241c(),this[_0x466e0a(0x81)][_0x466e0a(0x7a)](..._0x576033)['to'](this),this[_0x466e0a(0x81)][_0x466e0a(0xbc)]();const _0x3b3e1d=await this[_0x466e0a(0xd2)][_0x466e0a(0xaf)]();this[_0x466e0a(0x87)](_0x466e0a(0xde),{'availableModels':_0x3b3e1d});const _0x92e3b7=await this[_0x466e0a(0xd2)][_0x466e0a(0xd8)](this[_0x466e0a(0xb4)][_0x466e0a(0x8e)]);_0x92e3b7&&await this[_0x466e0a(0x66)](_0x92e3b7);}catch(_0x15831d){const _0x2b01fa=new _0x3c69b2(_0x466e0a(0xd4),null,{'message':_0x15831d[_0x466e0a(0x7f)]||_0x15831d});_0x2b01fa[_0x466e0a(0x94)]=_0x15831d[_0x466e0a(0x94)],this[_0x466e0a(0x87)](_0x466e0a(0xb1),{'error':_0x2b01fa});}}async[_0x149bcd(0xa5)](){const _0x22a6a9=_0x149bcd;if(this[_0x22a6a9(0xc5)])throw new _0x3c69b2(_0x22a6a9(0x9f),null,{'conversation':this});if(!this[_0x22a6a9(0xc6)])throw new _0x3c69b2(_0x22a6a9(0xc2),null,{'conversation':this});try{const {id:_0x5b78db}=await this[_0x22a6a9(0xb7)][_0x22a6a9(0xda)](this['id'],this[_0x22a6a9(0xb4)][_0x22a6a9(0xa7)])[_0x22a6a9(0x88)]();this['id']=_0x5b78db,this[_0x22a6a9(0xc5)]=!0x0,this[_0x22a6a9(0x87)](_0x22a6a9(0x95),{'conversationId':this['id'],'selectedModel':this[_0x22a6a9(0xc6)]});}catch(_0x3892c2){const _0x214b43=new _0x3c69b2(_0x22a6a9(0xb5),null,{'message':_0x3892c2[_0x22a6a9(0x7f)],'conversationId':this['id']});throw _0x214b43[_0x22a6a9(0x94)]=_0x3892c2[_0x22a6a9(0x94)],this[_0x22a6a9(0x87)](_0x22a6a9(0xb1),{'error':_0x214b43}),_0x214b43;}}async[_0x149bcd(0xdc)](_0x42480c,_0x4e9706){const _0x5acbd9=_0x149bcd;try{const _0xe6a841=await this[_0x5acbd9(0xb7)][_0x5acbd9(0xae)](_0x42480c)[_0x5acbd9(0x88)](),_0xa95ff9=await this[_0x5acbd9(0xb7)][_0x5acbd9(0x9b)](_0x42480c)[_0x5acbd9(0xb8)](),_0x5ec5e4=_0xa95ff9[0x0][_0x5acbd9(0x86)];this[_0x5acbd9(0xc5)]=!0x0,this['id']=_0xe6a841['id'],_0x5acbd9(0x8a)in _0xe6a841?this[_0x5acbd9(0x87)](_0x5acbd9(0xac),_0xe6a841[_0x5acbd9(0x8a)],!0x0):this[_0x5acbd9(0x87)](_0x5acbd9(0xac),'',!0x0);const _0x5c6037=(await this[_0x5acbd9(0xd2)][_0x5acbd9(0xd9)]())[_0x5acbd9(0x68)](_0x264d59=>_0x264d59['id'][_0x5acbd9(0x79)]()===_0x5ec5e4[_0x5acbd9(0x79)]());return this[_0x5acbd9(0xc6)]=_0x5c6037,this[_0x5acbd9(0x87)](_0x5acbd9(0xd0),{'selectedModel':_0x5c6037,'isDisabled':!0x0}),await this[_0x5acbd9(0xc1)](_0xa95ff9,_0x4e9706,_0x5ec5e4),this[_0x5acbd9(0x9a)]=void 0x0,this;}catch(_0x717b23){const _0x4378df=new _0x3c69b2(_0x5acbd9(0xa0),null,{'message':_0x717b23[_0x5acbd9(0x7f)],'conversationId':_0x42480c});throw _0x4378df[_0x5acbd9(0x94)]=_0x717b23[_0x5acbd9(0x94)],this[_0x5acbd9(0x87)](_0x5acbd9(0xb1),{'error':_0x4378df}),_0x4378df;}}async[_0x149bcd(0xc1)](_0x1ec5e4,_0x25196d,_0x291e52){const _0xc4ba63=_0x149bcd;let _0x4be764;for(const _0x7c1058 of _0x1ec5e4)if(_0xc4ba63(0x71)===_0x7c1058[_0xc4ba63(0x7e)]){const _0x186f08=await this[_0xc4ba63(0x76)](_0x7c1058),_0x3cc5d1={'isReasoningEnabled':Object[_0xc4ba63(0xd1)](_0x7c1058[_0xc4ba63(0x78)],_0xc4ba63(0x7d)),'isWebSearchEnabled':Object[_0xc4ba63(0xd1)](_0x7c1058[_0xc4ba63(0x78)],_0xc4ba63(0x9c))};_0x4be764=this[_0xc4ba63(0x6f)]({'userMessage':_0x7c1058[_0xc4ba63(0x6d)],'contextItems':_0x186f08,'capabilities':_0x3cc5d1,'modelId':_0x291e52,'attributes':_0x7c1058[_0xc4ba63(0xca)]}),this[_0xc4ba63(0x9a)]=_0x4be764,this[_0xc4ba63(0x96)][_0xc4ba63(0x77)](this[_0xc4ba63(0x9a)][_0xc4ba63(0x97)]);}else{if(_0xc4ba63(0xd3)===_0x7c1058[_0xc4ba63(0x7e)]&&_0x4be764){const _0x396a45=[];for(const _0x181b70 of _0x7c1058[_0xc4ba63(0x73)])switch(_0x181b70[_0xc4ba63(0x75)]){case _0xc4ba63(0xa4):case _0xc4ba63(0x9e):{const _0x5c81e7=_0x4be764[_0xc4ba63(0x7b)]()?.[_0xc4ba63(0xbb)]!==_0x25196d;_0x4be764[_0xc4ba63(0xbf)]=_0x4be764[_0xc4ba63(0x89)]({'type':_0x181b70[_0xc4ba63(0x75)],'isDone':!0x0,'interactionId':_0x4be764['id'],'areActionsDisabled':_0x5c81e7}),_0x4be764[_0xc4ba63(0xbf)][_0xc4ba63(0x6e)](_0x181b70[_0xc4ba63(0x73)]),_0x396a45[_0xc4ba63(0xc0)]>0x0&&(_0x4be764[_0xc4ba63(0xbf)][_0xc4ba63(0xd5)]=_0x396a45[_0xc4ba63(0x83)](0x0));break;}case _0xc4ba63(0xcd):_0x396a45[_0xc4ba63(0xa6)](_0x181b70);break;case _0xc4ba63(0xbe):{const {data:_0x3af3e5,attributes:_0x4bc21d}=JSON[_0xc4ba63(0xa9)](_0x181b70[_0xc4ba63(0x73)]);_0x4be764[_0xc4ba63(0x8d)]({'toolName':_0x181b70[_0xc4ba63(0xba)],'data':_0x3af3e5,'attributes':_0x4bc21d});break;}}}}}async[_0x149bcd(0x76)](_0x30fc4c){const _0x584a91=_0x149bcd,_0x5da555=new Map();if(!_0x30fc4c[_0x584a91(0x73)])return _0x5da555;for(const _0x3085ad of _0x30fc4c[_0x584a91(0x73)]){const _0x463b4e=await this[_0x584a91(0x96)][_0x584a91(0x91)](_0x3085ad);_0x463b4e&&_0x5da555[_0x584a91(0xc8)](_0x463b4e['id'],_0x463b4e);}return _0x5da555;}async[_0x149bcd(0x90)]({userMessage:_0x45d8be,attributes:_0x37fd1e}){const _0x508ce8=_0x149bcd;if(!this[_0x508ce8(0xc5)])throw new _0x3c69b2(_0x508ce8(0x72),null,{'conversation':this});if(this[_0x508ce8(0x9a)])throw new _0x3c69b2(_0x508ce8(0xcb),null,{'conversation':this});try{const _0x5e1a0f=this[_0x508ce8(0x96)][_0x508ce8(0xcc)](),_0x379baf=this[_0x508ce8(0x81)][_0x508ce8(0xdf)](),_0x169522=this[_0x508ce8(0xc6)]['id'];this[_0x508ce8(0x9a)]=this[_0x508ce8(0x6f)]({'userMessage':_0x45d8be,'contextItems':_0x5e1a0f,'capabilities':_0x379baf,'modelId':_0x169522,'attributes':_0x37fd1e}),await this[_0x508ce8(0x9a)][_0x508ce8(0xa5)](),this[_0x508ce8(0x96)][_0x508ce8(0x77)](this[_0x508ce8(0x9a)][_0x508ce8(0x97)]);}catch(_0x52e032){if(_0x52e032 instanceof _0x3c69b2)this[_0x508ce8(0x87)](_0x508ce8(0xb1),{'interactionId':this[_0x508ce8(0x9a)]?this[_0x508ce8(0x9a)]['id']:void 0x0,'error':_0x52e032});else{const _0x59e5e5=_0x5eb07[_0x508ce8(0xd7)](_0x52e032[_0x508ce8(0x6b)])||_0x508ce8(0xe2);this[_0x508ce8(0x87)](_0x508ce8(0xb1),{'interactionId':this[_0x508ce8(0x9a)]?this[_0x508ce8(0x9a)]['id']:void 0x0,'error':new _0x3c69b2(_0x59e5e5,null,{'error':_0x52e032})});}}finally{this[_0x508ce8(0x9a)]?.[_0x508ce8(0xdd)](),this[_0x508ce8(0x9a)]=void 0x0;}}[_0x149bcd(0x6f)]({userMessage:_0xe3e1e8,contextItems:_0xbdda0e,capabilities:_0x4fcbe4,modelId:_0x1d0763,attributes:_0x37093a}){const _0x4e9f1a=_0x149bcd,_0x5b50e1=new _0x1016a4({'userMessage':_0xe3e1e8,'contextItems':_0xbdda0e,'capabilities':_0x4fcbe4,'conversationId':this['id'],'connector':this[_0x4e9f1a(0xb7)],'editor':this[_0x4e9f1a(0xb4)][_0x4e9f1a(0x8c)]&&this[_0x4e9f1a(0xb4)][_0x4e9f1a(0x8c)](),'model':_0x1d0763,'attributes':_0x37093a});return _0x5b50e1[_0x4e9f1a(0x7a)](..._0x16ee8e)['to'](this),this[_0x4e9f1a(0x98)][_0x4e9f1a(0xa6)](_0x5b50e1),this[_0x4e9f1a(0x87)](_0x4e9f1a(0x7c),_0x5b50e1),_0x5b50e1;}[_0x149bcd(0xcf)](_0x2ffe64){const _0x23dcd6=_0x149bcd;return this[_0x23dcd6(0x98)][_0x23dcd6(0x68)](_0x1888df=>_0x1888df['id']===_0x2ffe64);}[_0x149bcd(0xe3)](_0x318934){const _0x9bd664=_0x149bcd,_0x3a9dbd=this[_0x9bd664(0xcf)](_0x318934);_0x3a9dbd&&(_0x3a9dbd[_0x9bd664(0xd6)](),this[_0x9bd664(0x98)][_0x9bd664(0x83)](this[_0x9bd664(0x98)][_0x9bd664(0xb6)](_0x3a9dbd),0x1));}get[_0x149bcd(0x92)](){const _0x15d4ba=_0x149bcd;return this[_0x15d4ba(0x98)][this[_0x15d4ba(0x98)][_0x15d4ba(0xc0)]-0x1];}[_0x149bcd(0xa8)](_0x2af59c){const _0xb71adb=_0x149bcd;this[_0xb71adb(0x96)][_0xb71adb(0xa8)](_0x2af59c);}async[_0x149bcd(0x99)]({content:_0x398ec8,version:_0x54a6d5,sessionId:_0x162d79,selections:_0x50a3d8}){const _0x1ccd7c=_0x149bcd;await this[_0x1ccd7c(0x96)][_0x1ccd7c(0x67)](_0x398ec8,_0x54a6d5,_0x162d79,_0x50a3d8);}[_0x149bcd(0x93)](){const _0x2d9f12=_0x149bcd;return this[_0x2d9f12(0x9a)]?.[_0x2d9f12(0x7b)]()?.[_0x2d9f12(0x73)]||'';}[_0x149bcd(0xc4)](_0x1a5d7c){const _0x5a5788=_0x149bcd;this[_0x5a5788(0x96)][_0x5a5788(0xc4)](_0x1a5d7c);}[_0x149bcd(0xe0)](){const _0x196b8a=_0x149bcd;this[_0x196b8a(0x96)][_0x196b8a(0xe0)]();}[_0x149bcd(0x82)](_0x3d4b2f){const _0x470a60=_0x149bcd;this[_0x470a60(0x96)][_0x470a60(0x82)](_0x3d4b2f);}[_0x149bcd(0xaa)](_0x4aed1f){const _0x2bd394=_0x149bcd;this[_0x2bd394(0x96)][_0x2bd394(0xaa)](_0x4aed1f);}[_0x149bcd(0xc3)](_0x3d2c7d){const _0x33b140=_0x149bcd;this[_0x33b140(0x96)][_0x33b140(0xc3)](_0x3d2c7d);}[_0x149bcd(0x70)](_0x3e9ca6,_0x22a435){const _0x47b841=_0x149bcd;this[_0x47b841(0x96)][_0x47b841(0x70)](_0x3e9ca6,_0x22a435);}[_0x149bcd(0xce)](_0x12957c,_0x5467e1,_0x5f583c){const _0x1f23ba=_0x149bcd;return this[_0x1f23ba(0x96)][_0x1f23ba(0xce)](_0x12957c,_0x5467e1,_0x5f583c);}[_0x149bcd(0x6a)](_0x2015bb){const _0x10da80=_0x149bcd;this[_0x10da80(0x96)][_0x10da80(0x6a)](_0x2015bb);}[_0x149bcd(0xad)](_0x1773e9){const _0x32dd2=_0x149bcd;this[_0x32dd2(0x81)][_0x32dd2(0xad)](_0x1773e9);}[_0x149bcd(0xb9)](){const _0x3afdcf=_0x149bcd;this[_0x3afdcf(0x81)][_0x3afdcf(0xb9)]();}[_0x149bcd(0x85)](_0x95f310){const _0x136df4=_0x149bcd;this[_0x136df4(0x81)][_0x136df4(0x85)](_0x95f310);}[_0x149bcd(0xc7)](){const _0x249740=_0x149bcd;this[_0x249740(0x81)][_0x249740(0xc7)]();}[_0x149bcd(0xb0)](){const _0x24f673=_0x149bcd;return this[_0x24f673(0x96)][_0x24f673(0xb0)]();}[_0x149bcd(0xab)](){const _0x51cbd7=_0x149bcd;return this[_0x51cbd7(0x96)][_0x51cbd7(0xab)]();}[_0x149bcd(0xa2)](){const _0x2b0ba4=_0x149bcd;return this[_0x2b0ba4(0x96)][_0x2b0ba4(0xa2)]();}async[_0x149bcd(0x66)](_0x29de59){const _0x1bacbe=_0x149bcd;_0x29de59?!0x1===await this[_0x1bacbe(0xd2)][_0x1bacbe(0x84)](_0x29de59)&&(_0x449db2(_0x1bacbe(0x6c),{'conversation':this,'model':_0x29de59}),_0x29de59=(await this[_0x1bacbe(0xd2)][_0x1bacbe(0xaf)]())[0x0]):(_0x449db2(_0x1bacbe(0xe1),{'conversation':this}),_0x29de59=(await this[_0x1bacbe(0xd2)][_0x1bacbe(0xaf)]())[0x0]),_0x29de59['id']!==this[_0x1bacbe(0xc6)]?.['id']&&(this[_0x1bacbe(0xc6)]=_0x29de59,this[_0x1bacbe(0x81)][_0x1bacbe(0xb3)](),this[_0x1bacbe(0x87)](_0x1bacbe(0xd0),{'selectedModel':_0x29de59}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x502c(_0x42931f,_0x25fc09){var _0x29f7a5=_0x29f7();return _0x502c=function(_0x502c14,_0x3c673f){_0x502c14=_0x502c14-0xf1;var _0x4f1cbe=_0x29f7a5[_0x502c14];return _0x4f1cbe;},_0x502c(_0x42931f,_0x25fc09);}function _0x29f7(){var _0x125719=['6wElbdN','94046duiEMr','9yurZTJ','userMessage','model','conversationId','current-document','3fsDhen','797600VxEyKr','queryAssistant','1016516NJwUBa','get','292936pXTkZJ','279349HrvCuV','mapContextItemsToRequestData','contextItems','sendRequest','connector','getDocumentContext','attributes','capabilities','getCapabilitiesRequestData','187524PuTfSv','69350GaVQuD'];_0x29f7=function(){return _0x125719;};return _0x29f7();}var _0x103eef=_0x502c;(function(_0x594c2e,_0x9bd41e){var _0x171bcb=_0x502c,_0x1881da=_0x594c2e();while(!![]){try{var _0x29539f=-parseInt(_0x171bcb(0xf2))/0x1+-parseInt(_0x171bcb(0x107))/0x2+parseInt(_0x171bcb(0xf8))/0x3*(parseInt(_0x171bcb(0xfb))/0x4)+parseInt(_0x171bcb(0x108))/0x5+-parseInt(_0x171bcb(0xf1))/0x6*(parseInt(_0x171bcb(0xfe))/0x7)+-parseInt(_0x171bcb(0xfd))/0x8*(-parseInt(_0x171bcb(0xf3))/0x9)+parseInt(_0x171bcb(0xf9))/0xa;if(_0x29539f===_0x9bd41e)break;else _0x1881da['push'](_0x1881da['shift']());}catch(_0xf24c92){_0x1881da['push'](_0x1881da['shift']());}}}(_0x29f7,0x263f5));import{AICapabilities as _0x44fbdd}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x159bca}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3dcbe2}from'./aichatcontext.js';export class AIChatInteraction extends _0x159bca{[_0x103eef(0xf4)];[_0x103eef(0xf6)];[_0x103eef(0x100)]=new Map();[_0x103eef(0xf5)];[_0x103eef(0x104)];constructor(_0x244ed9){var _0x11143c=_0x103eef;super(_0x244ed9),this[_0x11143c(0xf6)]=_0x244ed9[_0x11143c(0xf6)],this[_0x11143c(0x100)]=_0x244ed9[_0x11143c(0x100)],this[_0x11143c(0x105)]=_0x244ed9[_0x11143c(0x105)],this[_0x11143c(0xf4)]=_0x244ed9[_0x11143c(0xf4)],this[_0x11143c(0xf5)]=_0x244ed9[_0x11143c(0xf5)],this[_0x11143c(0x104)]=_0x244ed9[_0x11143c(0x104)];}async[_0x103eef(0x101)](){var _0x5ef7e9=_0x103eef;return this[_0x5ef7e9(0x102)][_0x5ef7e9(0xfa)]({'message':this[_0x5ef7e9(0xf4)],'conversationId':this[_0x5ef7e9(0xf6)],'parts':_0x3dcbe2[_0x5ef7e9(0xff)](this[_0x5ef7e9(0x100)]),'capabilities':_0x44fbdd[_0x5ef7e9(0x106)](this[_0x5ef7e9(0x105)]),'model':this[_0x5ef7e9(0xf5)],'attributes':this[_0x5ef7e9(0x104)]});}[_0x103eef(0x103)](){var _0x4899d3=_0x103eef;return this[_0x4899d3(0x100)][_0x4899d3(0xfc)](_0x4899d3(0xf7));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bda56=_0x1c80;function _0x1c80(_0x2cd861,_0x3feccb){const _0x4ecb38=_0x4ecb();return _0x1c80=function(_0x1c8006,_0x3feb6f){_0x1c8006=_0x1c8006-0x16b;let _0x47e74a=_0x4ecb38[_0x1c8006];return _0x47e74a;},_0x1c80(_0x2cd861,_0x3feccb);}(function(_0x1ea776,_0x2c1785){const _0x132f48=_0x1c80,_0x12f392=_0x1ea776();while(!![]){try{const _0x1a0776=parseInt(_0x132f48(0x1aa))/0x1*(-parseInt(_0x132f48(0x1a3))/0x2)+-parseInt(_0x132f48(0x192))/0x3+-parseInt(_0x132f48(0x16d))/0x4*(parseInt(_0x132f48(0x181))/0x5)+parseInt(_0x132f48(0x1a4))/0x6+parseInt(_0x132f48(0x19c))/0x7+parseInt(_0x132f48(0x1ad))/0x8*(parseInt(_0x132f48(0x175))/0x9)+parseInt(_0x132f48(0x1ba))/0xa;if(_0x1a0776===_0x2c1785)break;else _0x12f392['push'](_0x12f392['shift']());}catch(_0x5ce24a){_0x12f392['push'](_0x12f392['shift']());}}}(_0x4ecb,0x3a359));import{FocusTracker as _0x17a87e,KeystrokeHandler as _0x5bb40c}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x1b09d0}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x3d86db}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x504158}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x4badfe}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x3f52ac,FocusCycler as _0x2e82d3,View as _0x3ffc14}from'ckeditor5/src/ui.js';function _0x4ecb(){const _0x44449b=['showDiff','1352aiVFPV','toggleSuggestionDisplayMode','AI_BALLOON_PREVIOUS_LABEL','216LlGbzx','tab','isEnabled','createCollection','availableActions','focusCycler','destroy','_togglePartToolbarButtonsVisibility','focusLast','_focusTracker','_keystrokes','toggleRotatorButtonsVisibility','_isErrorVisible','6693190xubmAf','_streamableContentView','ck-ai-chat-balloon__toolbar-container','_config','_miniToolbarView','locale','add','4dApkIW','update','render','div','change:isTrackChangesOn','_createNextButtonView','_stateView','isTrackChangesOn','65781XWxPPI','previousButtonView','setTemplate','bind','element','_state','bindTemplate','insertSuggestion','full','toggleShowChanges','togglePartToolbarEnabled','hideError','1482545delOCO','setState','ck-ai-chat-balloon-main_state_','children','showError','addMany','isShowChangesOn','includes','_focusables','listenTo','showBlockingError','set','AI_BALLOON_NEXT_LABEL','showNext','focusFirst','delegate','execute','828477KWLPPR','fire','_toolbarContainerView','change:_state','applySuggestion','showPrevious','updateContent','focus','keepErrors','setButtonsVisibility','50498ZiSZcV','_createPreviousButtonView','shift\x20+\x20tab','rejectSuggestion','_partToolbarView','pending','has','116lhVBCB','93798lronDk','nextButtonView','_errorView','ck-ai-chat-balloon-main','isVisible'];_0x4ecb=function(){return _0x44449b;};return _0x4ecb();}import{AISuggestionContentPartStateView as _0x4925f4}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x1a59e8,IconChevronUp as _0x1d07ab}from'ckeditor5/src/icons.js';import{getTranslation as _0x15a3c4}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x4badfe{[_0x1bda56(0x184)];[_0x1bda56(0x1a5)];[_0x1bda56(0x176)];[_0x1bda56(0x1b2)];[_0x1bda56(0x189)];[_0x1bda56(0x1b6)];[_0x1bda56(0x1b7)];[_0x1bda56(0x1bd)];[_0x1bda56(0x1bb)];[_0x1bda56(0x194)];[_0x1bda56(0x1a0)];[_0x1bda56(0x173)];[_0x1bda56(0x1be)];constructor(_0x19566e,_0x37c268){const _0x33f6fa=_0x1bda56;super(_0x19566e);const _0x3fcbb9=this[_0x33f6fa(0x17b)];this[_0x33f6fa(0x18c)](_0x33f6fa(0x1a9),!0x1),this[_0x33f6fa(0x18c)](_0x33f6fa(0x17a),_0x33f6fa(0x1a1)),this[_0x33f6fa(0x1b6)]=new _0x17a87e(),this[_0x33f6fa(0x1b7)]=new _0x5bb40c(),this[_0x33f6fa(0x189)]=this[_0x33f6fa(0x1b0)](),this[_0x33f6fa(0x1b2)]=new _0x2e82d3({'focusables':this[_0x33f6fa(0x189)],'focusTracker':this[_0x33f6fa(0x1b6)],'keystrokeHandler':this[_0x33f6fa(0x1b7)],'actions':{'focusPrevious':_0x33f6fa(0x19e),'focusNext':_0x33f6fa(0x1ae)}}),this[_0x33f6fa(0x1bd)]=_0x37c268,this[_0x33f6fa(0x1a5)]=this[_0x33f6fa(0x172)](),this[_0x33f6fa(0x176)]=this[_0x33f6fa(0x19d)](),this[_0x33f6fa(0x1bb)]=new _0x1b09d0(_0x19566e),this[_0x33f6fa(0x1a0)]=new _0x3d86db(_0x19566e,_0x37c268[_0x33f6fa(0x1b1)]),this[_0x33f6fa(0x1a0)][_0x33f6fa(0x190)](_0x33f6fa(0x196),_0x33f6fa(0x17c),_0x33f6fa(0x19f))['to'](this),this[_0x33f6fa(0x1b4)](_0x37c268),this[_0x33f6fa(0x173)]=new _0x4925f4(_0x19566e),this[_0x33f6fa(0x173)][_0x33f6fa(0x1a8)]=!0x1,this[_0x33f6fa(0x1be)]=new _0x504158(_0x19566e,{'showChanges':_0x33f6fa(0x17d)}),this[_0x33f6fa(0x1be)][_0x33f6fa(0x178)](_0x33f6fa(0x187))['to'](this,_0x33f6fa(0x1a9)),this[_0x33f6fa(0x1be)]['on'](_0x33f6fa(0x17e),()=>{const _0x3a2e64=_0x33f6fa;this[_0x3a2e64(0x193)](_0x3a2e64(0x1ab));}),this[_0x33f6fa(0x194)]=new ls(_0x19566e,[this[_0x33f6fa(0x1a0)],this[_0x33f6fa(0x173)],this[_0x33f6fa(0x1be)]]),this[_0x33f6fa(0x184)]=this[_0x33f6fa(0x1b0)]([this[_0x33f6fa(0x1bb)],this[_0x33f6fa(0x194)]]),this['on'](_0x33f6fa(0x195),(_0x8b51e4,_0x1341ab,_0x2b9485,_0x2f1207)=>{const _0x48f751=_0x33f6fa;let _0x4baa6f,_0x37dc9f;_0x48f751(0x1a1)===_0x2f1207?(_0x4baa6f=this[_0x48f751(0x1a0)],_0x37dc9f=this[_0x48f751(0x173)]):(_0x4baa6f=this[_0x48f751(0x173)],_0x37dc9f=this[_0x48f751(0x1a0)]),this[_0x48f751(0x173)][_0x48f751(0x182)](_0x2b9485),_0x4baa6f[_0x48f751(0x1a8)]=!0x1,_0x37dc9f[_0x48f751(0x1a8)]=!0x0;}),this[_0x33f6fa(0x177)]({'tag':_0x33f6fa(0x170),'attributes':{'class':['ck',_0x33f6fa(0x1a7),_0x3fcbb9['to'](_0x33f6fa(0x17a),_0x3a2c27=>_0x33f6fa(0x183)+_0x3a2c27)]},'children':this[_0x33f6fa(0x184)]}),this['on'](_0x33f6fa(0x171),()=>{const _0x2568a6=_0x33f6fa;this[_0x2568a6(0x1b4)](_0x37c268);});}[_0x1bda56(0x16f)](){const _0x1d4253=_0x1bda56;super[_0x1d4253(0x16f)](),this[_0x1d4253(0x1a5)][_0x1d4253(0x16f)](),this[_0x1d4253(0x176)][_0x1d4253(0x16f)](),this[_0x1d4253(0x1b6)][_0x1d4253(0x16c)](this[_0x1d4253(0x179)]),this[_0x1d4253(0x1b6)][_0x1d4253(0x16c)](this[_0x1d4253(0x1a5)]),this[_0x1d4253(0x1b6)][_0x1d4253(0x16c)](this[_0x1d4253(0x176)]),this[_0x1d4253(0x1b6)][_0x1d4253(0x16c)](this[_0x1d4253(0x1be)]),this[_0x1d4253(0x1b6)][_0x1d4253(0x16c)](this[_0x1d4253(0x1a0)]),this[_0x1d4253(0x1b7)][_0x1d4253(0x18a)](this[_0x1d4253(0x179)]),this[_0x1d4253(0x1b7)][_0x1d4253(0x18a)](this[_0x1d4253(0x1a5)][_0x1d4253(0x179)]),this[_0x1d4253(0x1b7)][_0x1d4253(0x18a)](this[_0x1d4253(0x176)][_0x1d4253(0x179)]),this[_0x1d4253(0x189)][_0x1d4253(0x186)]([this[_0x1d4253(0x1a5)],this[_0x1d4253(0x176)],this[_0x1d4253(0x1a0)],this[_0x1d4253(0x1be)]]);}[_0x1bda56(0x1b3)](){const _0x4dd081=_0x1bda56;super[_0x4dd081(0x1b3)](),this[_0x4dd081(0x176)][_0x4dd081(0x1b3)](),this[_0x4dd081(0x1a5)][_0x4dd081(0x1b3)]();}[_0x1bda56(0x199)](){const _0x45b1bb=_0x1bda56;this[_0x45b1bb(0x1b2)][_0x45b1bb(0x18f)]();}[_0x1bda56(0x1b5)](){const _0x16cdf1=_0x1bda56;this[_0x16cdf1(0x1b2)][_0x16cdf1(0x1b5)]();}async[_0x1bda56(0x198)](_0x4ff462){const _0x51d64b=_0x1bda56;_0x4ff462?.[_0x51d64b(0x19a)]||this[_0x51d64b(0x180)](),await this[_0x51d64b(0x1bb)][_0x51d64b(0x16e)](_0x4ff462);}[_0x1bda56(0x182)](_0x742f21){const _0x253fac=_0x1bda56;this[_0x253fac(0x17a)]=_0x742f21;}[_0x1bda56(0x185)](_0x5d5c55){const _0x6c010b=_0x1bda56;super[_0x6c010b(0x185)](_0x5d5c55),this[_0x6c010b(0x184)][_0x6c010b(0x1a2)](this[_0x6c010b(0x1a6)])||this[_0x6c010b(0x184)][_0x6c010b(0x16c)](this[_0x6c010b(0x1a6)],0x0);}[_0x1bda56(0x180)](){const _0x2c01b1=_0x1bda56;this[_0x2c01b1(0x1b9)]&&(super[_0x2c01b1(0x180)](),this[_0x2c01b1(0x17f)](!0x0));}[_0x1bda56(0x18b)](_0x3ab216){const _0x5f13c2=_0x1bda56;super[_0x5f13c2(0x18b)](_0x3ab216),this[_0x5f13c2(0x17f)](!0x1);}[_0x1bda56(0x1b8)](_0x2ad369){const _0x3a7c91=_0x1bda56;this[_0x3a7c91(0x1a5)][_0x3a7c91(0x1a8)]=this[_0x3a7c91(0x176)][_0x3a7c91(0x1a8)]=_0x2ad369;}[_0x1bda56(0x17f)](_0x23dc41){const _0x19ef16=_0x1bda56;this[_0x19ef16(0x1a0)][_0x19ef16(0x1af)]=_0x23dc41;}[_0x1bda56(0x1b4)]({showApplyButton:_0x561c5b,showSuggestButton:_0x4f0fdc}){const _0x8536c2=_0x1bda56;_0x561c5b=_0x561c5b&&!this[_0x8536c2(0x174)]&&this[_0x8536c2(0x1bd)][_0x8536c2(0x1b1)][_0x8536c2(0x188)](_0x8536c2(0x196)),_0x4f0fdc=_0x4f0fdc&&this[_0x8536c2(0x1bd)][_0x8536c2(0x1b1)][_0x8536c2(0x188)](_0x8536c2(0x17c)),this[_0x8536c2(0x1a0)][_0x8536c2(0x19b)]({'showApplyButton':_0x561c5b,'showSuggestButton':_0x4f0fdc});}[_0x1bda56(0x172)](){const _0x51b8c7=_0x1bda56,_0xd0f848=new _0x3f52ac(this[_0x51b8c7(0x16b)]);return _0xd0f848[_0x51b8c7(0x18c)]({'icon':_0x1a59e8,'label':_0x15a3c4(this[_0x51b8c7(0x16b)],_0x51b8c7(0x18d)),'isVisible':!0x0}),_0xd0f848['on'](_0x51b8c7(0x191),()=>{const _0x3ee858=_0x51b8c7;this[_0x3ee858(0x193)](_0x3ee858(0x18e));}),_0xd0f848;}[_0x1bda56(0x19d)](){const _0x59f3e1=_0x1bda56,_0x3444fa=new _0x3f52ac(this[_0x59f3e1(0x16b)]);return _0x3444fa[_0x59f3e1(0x18c)]({'icon':_0x1d07ab,'label':_0x15a3c4(this[_0x59f3e1(0x16b)],_0x59f3e1(0x1ac)),'isVisible':!0x0}),_0x3444fa['on'](_0x59f3e1(0x191),()=>{const _0x341c1e=_0x59f3e1;this[_0x341c1e(0x193)](_0x341c1e(0x197));}),_0x3444fa;}}class ls extends _0x3ffc14{constructor(_0x11fd1e,_0x5f434e){const _0xe6ce5a=_0x1bda56;super(_0x11fd1e),this[_0xe6ce5a(0x177)]({'tag':_0xe6ce5a(0x170),'attributes':{'class':[_0xe6ce5a(0x1bc)]},'children':_0x5f434e});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b2054=_0x5d2d;(function(_0x3d603e,_0x18b840){const _0x1ceacf=_0x5d2d,_0x3c397b=_0x3d603e();while(!![]){try{const _0x3fc255=-parseInt(_0x1ceacf(0x1d5))/0x1+-parseInt(_0x1ceacf(0x1ef))/0x2+parseInt(_0x1ceacf(0x20d))/0x3*(parseInt(_0x1ceacf(0x20f))/0x4)+parseInt(_0x1ceacf(0x1e2))/0x5+parseInt(_0x1ceacf(0x1e4))/0x6*(-parseInt(_0x1ceacf(0x1c5))/0x7)+-parseInt(_0x1ceacf(0x1f7))/0x8+parseInt(_0x1ceacf(0x1f4))/0x9;if(_0x3fc255===_0x18b840)break;else _0x3c397b['push'](_0x3c397b['shift']());}catch(_0x3a5df4){_0x3c397b['push'](_0x3c397b['shift']());}}}(_0x288e,0xeacbc));function _0x5d2d(_0xbb7381,_0x504f9e){const _0x288ee7=_0x288e();return _0x5d2d=function(_0x5d2d0b,_0xab74f){_0x5d2d0b=_0x5d2d0b-0x1c3;let _0x3d5170=_0x288ee7[_0x5d2d0b];return _0x3d5170;},_0x5d2d(_0xbb7381,_0x504f9e);}import{ButtonView as _0x23a1d5,clickOutsideHandler as _0x4111f5,View as _0x489404}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x97b6ad}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x474a45}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x54a01b,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x4a4b89}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x2c0e94}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0xba7497}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';function _0x288e(){const _0x4bf9e4=['startConversation','_shouldRestorePromptInputFocus','setAddContextOptions','74795tlKrvB','value','isModelAvailable','setTemplate','_createModelUnavailableMessageView','clearPendingContextUI','toggleWebSearch','div','bindTemplate','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','addContextItem','_contextPanelView','setReasoning','setModelList','ck-ai-chat-controls__start-new-chat-button','focusPromptInput','1216137YfLHtg','change:isLoading','focus','clearConversationContextUI','setIsUploadInProgress','closeSourceResourceBalloon','ck-ai-chat-controls','locale','_createLoaderView','resetMessageInput','populateSourceResourceBalloon','form','_handlePromptInputFocus','5363165mPToyd','set','996ZoLGxo','abortPromptStream','setContextItemLoading','disableModelSelector','setInputPlaceholder','clearCurrentContextItems','delegate','addContextButtonView','setModel','updateResourceState','setPromptInputValue','565290tcjuRs','bodyCollection','_createPromptCapabilitiesView','_loaderView','isLoading','29522421UtCRFg','element','toggleReasoning','15008824pGKteB','removeContextItem','_promptInputView','_promptCapabilitiesView','ck-ai-chat-controls-model-unavailable-message','contextResourcesSearchInputVisibleFrom','_createPromptInputView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setPlaceholderText','selectModel','execute','clearConversationContextItems','fieldView','setWebSearch','low','_modelUnavailableMessageView','enableModelSelector','queryView','sendUserMessage','reset','ck-ai-chat-controls-disabled','setConversationContext','3ARexph','ck-hidden','7029668rrouIQ','isDisabled','_createContextPanelView'];_0x288e=function(){return _0x4bf9e4;};return _0x288e();}import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x489404{[_0x4b2054(0x1d0)];[_0x4b2054(0x1f9)];[_0x4b2054(0x1fa)];[_0x4b2054(0x1f2)];[_0x4b2054(0x206)];[_0x4b2054(0x1c3)];constructor(_0x12bb05,_0x482d31){const _0x598715=_0x4b2054;super(_0x12bb05),this[_0x598715(0x1d0)]=this[_0x598715(0x211)](_0x12bb05,{'bodyCollection':_0x482d31[_0x598715(0x1f0)],'searchInputVisibleFrom':_0x482d31[_0x598715(0x1fc)]}),this[_0x598715(0x1f9)]=this[_0x598715(0x1fd)](_0x12bb05),this[_0x598715(0x1fa)]=this[_0x598715(0x1f1)](_0x12bb05),this[_0x598715(0x1f2)]=this[_0x598715(0x1dd)](_0x12bb05),this[_0x598715(0x206)]=this[_0x598715(0x1c9)](_0x12bb05),this[_0x598715(0x1c3)]=!0x1,this[_0x598715(0x1f9)][_0x598715(0x1ea)](_0x598715(0x209))['to'](this),this[_0x598715(0x1f2)][_0x598715(0x1ea)](_0x598715(0x1e5))['to'](this),this[_0x598715(0x1fa)][_0x598715(0x1ea)](_0x598715(0x1cb))['to'](this),this[_0x598715(0x1fa)][_0x598715(0x1ea)](_0x598715(0x1f6))['to'](this),this[_0x598715(0x1fa)][_0x598715(0x1ea)](_0x598715(0x200))['to'](this),this[_0x598715(0x1d0)][_0x598715(0x1ea)](..._0x4a4b89)['to'](this),this[_0x598715(0x1e3)](_0x598715(0x1c7),!0x0),this[_0x598715(0x1e3)](_0x598715(0x210),!0x1);const _0x3e9678=this[_0x598715(0x1cd)];this[_0x598715(0x1c8)]({'tag':_0x598715(0x1e0),'attributes':{'class':['ck',_0x598715(0x1db),_0x3e9678['if'](_0x598715(0x210),_0x598715(0x20b))]},'children':[{'tag':_0x598715(0x1cc),'attributes':{'class':[_0x3e9678['if'](_0x598715(0x1f3),_0x598715(0x20e),_0x473c51=>_0x473c51||!this[_0x598715(0x1c7)]),_0x3e9678['if'](_0x598715(0x1c7),_0x598715(0x20e),_0x36cc84=>!_0x36cc84||this[_0x598715(0x1f3)])]},'children':[this[_0x598715(0x1d0)],this[_0x598715(0x1f9)],this[_0x598715(0x1fa)]]},{'tag':_0x598715(0x1cc),'attributes':{'class':[_0x3e9678['if'](_0x598715(0x1f3),_0x598715(0x20e),_0x24e6f7=>!_0x24e6f7)]},'children':[this[_0x598715(0x1f2)]]},{'tag':_0x598715(0x1cc),'attributes':{'class':[_0x3e9678['if'](_0x598715(0x1c7),_0x598715(0x20e),_0x5fe739=>_0x5fe739)]},'children':[this[_0x598715(0x206)]]}]}),_0x4111f5({'emitter':this[_0x598715(0x1f9)],'activator':()=>this[_0x598715(0x1f3)],'contextElements':()=>[this[_0x598715(0x1f5)]],'callback':()=>{const _0x5e26d0=_0x598715;this[_0x5e26d0(0x1c3)]=!0x1;}}),this['on'](_0x598715(0x1d6),this[_0x598715(0x1e1)],{'priority':_0x598715(0x205)});}[_0x4b2054(0x211)](_0x20837e,_0x20681f){return new _0x54a01b(_0x20837e,_0x20681f);}[_0x4b2054(0x1fd)](_0x386413){const _0x117646=_0x4b2054;return new _0x97b6ad(_0x386413,this[_0x117646(0x1d0)][_0x117646(0x1eb)]);}[_0x4b2054(0x1f1)](_0x77c049){return new _0x474a45(_0x77c049);}[_0x4b2054(0x1dd)](_0x21d9ae){return new _0x2c0e94(_0x21d9ae);}[_0x4b2054(0x1c9)](_0x1e60d5){const _0x12b58c=_0x4b2054,_0x3552f2=new _s(_0x1e60d5);return _0x3552f2[_0x12b58c(0x1ea)](_0x12b58c(0x212))['to'](this),_0x3552f2;}[_0x4b2054(0x1e1)](_0x5e81a5,_0x151c6c,_0x59689e){const _0x29fbdb=_0x4b2054;_0x59689e?this[_0x29fbdb(0x1c3)]=!0x0:this[_0x29fbdb(0x1c3)]&&this[_0x29fbdb(0x1f9)][_0x29fbdb(0x1d7)]();}[_0x4b2054(0x1cf)](_0xaf0c30,_0x88bb8b){const _0x3c2b8a=_0x4b2054;this[_0x3c2b8a(0x1d0)][_0x3c2b8a(0x1cf)](_0xaf0c30,_0x88bb8b);}[_0x4b2054(0x1f8)](_0x3f8ca4){const _0x462866=_0x4b2054;this[_0x462866(0x1d0)][_0x462866(0x1f8)](_0x3f8ca4);}[_0x4b2054(0x1e6)](_0x46e240,_0x32ae25){const _0x555420=_0x4b2054;this[_0x555420(0x1d0)][_0x555420(0x1e6)](_0x46e240,_0x32ae25);}[_0x4b2054(0x1d9)](_0xbec87){const _0x454c87=_0x4b2054;this[_0x454c87(0x1f9)][_0x454c87(0x1d9)](_0xbec87);}[_0x4b2054(0x20c)](_0x120253){const _0x3347bc=_0x4b2054;this[_0x3347bc(0x1d0)][_0x3347bc(0x20c)](_0x120253);}[_0x4b2054(0x1ca)](){const _0x14320d=_0x4b2054;this[_0x14320d(0x1d0)][_0x14320d(0x1e9)]();}[_0x4b2054(0x1d8)](){const _0x2618f8=_0x4b2054;this[_0x2618f8(0x1d0)][_0x2618f8(0x202)]();}[_0x4b2054(0x1ed)](_0x30cfb5,_0x4b2678,_0xe56d33){const _0x490482=_0x4b2054;this[_0x490482(0x1d0)][_0x490482(0x1ed)](_0x30cfb5,_0x4b2678,_0xe56d33);}[_0x4b2054(0x204)](_0xfcc63d){const _0x37ce56=_0x4b2054;this[_0x37ce56(0x1fa)][_0x37ce56(0x204)](_0xfcc63d);}[_0x4b2054(0x1d1)](_0xa31bc7){const _0x53cf9f=_0x4b2054;this[_0x53cf9f(0x1fa)][_0x53cf9f(0x1d1)](_0xa31bc7);}[_0x4b2054(0x1de)](){const _0x7aeffe=_0x4b2054;this[_0x7aeffe(0x1f9)][_0x7aeffe(0x20a)]();}[_0x4b2054(0x1c4)](_0x1eadde){const _0x56a11e=_0x4b2054;this[_0x56a11e(0x1d0)][_0x56a11e(0x1c4)](_0x1eadde);}[_0x4b2054(0x1e8)](_0x36e1a6){const _0xe2f6c7=_0x4b2054;this[_0xe2f6c7(0x1f9)][_0xe2f6c7(0x1ff)](_0x36e1a6);}[_0x4b2054(0x1d2)](_0x146b76,_0x220693){const _0x3f15d7=_0x4b2054;this[_0x3f15d7(0x1fa)][_0x3f15d7(0x1d2)](_0x146b76,_0x220693);}[_0x4b2054(0x1ec)](_0x14ae75){const _0x39c680=_0x4b2054;_0x14ae75?(this[_0x39c680(0x1c7)]=!0x0,this[_0x39c680(0x1fa)][_0x39c680(0x1ec)](_0x14ae75)):this[_0x39c680(0x1c7)]=!0x1;}[_0x4b2054(0x207)](){const _0x5efd56=_0x4b2054;this[_0x5efd56(0x1fa)][_0x5efd56(0x207)]();}[_0x4b2054(0x1e7)](_0x39ff65){const _0x153c24=_0x4b2054;this[_0x153c24(0x1fa)][_0x153c24(0x1e7)](_0x39ff65);}[_0x4b2054(0x1df)](_0x1402b8,_0xd467b1,_0x50a5f5,_0x22fc7d){const _0x22a0d1=_0x4b2054;this[_0x22a0d1(0x1d0)][_0x22a0d1(0x1df)](_0x1402b8,_0xd467b1,_0x50a5f5,_0x22fc7d);}[_0x4b2054(0x1da)](_0x298182){const _0x5cd0da=_0x4b2054;this[_0x5cd0da(0x1d0)][_0x5cd0da(0x1da)](_0x298182);}[_0x4b2054(0x1d4)](_0x39ba21=!0x1){const _0x20b8b7=_0x4b2054;this[_0x20b8b7(0x1f9)][_0x20b8b7(0x1d7)](_0x39ba21);}[_0x4b2054(0x1ee)](_0x481460){const _0x9ee389=_0x4b2054;this[_0x9ee389(0x1f9)][_0x9ee389(0x208)][_0x9ee389(0x203)][_0x9ee389(0x20a)](),this[_0x9ee389(0x1f9)][_0x9ee389(0x208)][_0x9ee389(0x203)][_0x9ee389(0x1c6)]=_0x481460;}}class _s extends _0x489404{constructor(_0x577d9f){const _0x4064d1=_0x4b2054;super(_0x577d9f);const _0x6de4f6=new _0x23a1d5(_0x577d9f);_0x6de4f6[_0x4064d1(0x1e3)]({'label':_0xba7497(this[_0x4064d1(0x1dc)],_0x4064d1(0x1fe)),'withText':!0x0,'class':[_0x4064d1(0x1d3)],'tooltip':''}),_0x6de4f6[_0x4064d1(0x1ea)](_0x4064d1(0x201))['to'](this,_0x4064d1(0x212)),this[_0x4064d1(0x1c8)]({'tag':_0x4064d1(0x1cc),'attributes':{'class':['ck',_0x4064d1(0x1fb)]},'children':[{'tag':'p','children':[{'text':_0xba7497(this[_0x4064d1(0x1dc)],_0x4064d1(0x1ce))+'\x20'},_0x6de4f6]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x100ed3=_0x4cf8;function _0x4cf8(_0x377e5f,_0xd91900){const _0xd39947=_0xd399();return _0x4cf8=function(_0x4cf81e,_0x11e5c3){_0x4cf81e=_0x4cf81e-0xc7;let _0x5ca079=_0xd39947[_0x4cf81e];return _0x5ca079;},_0x4cf8(_0x377e5f,_0xd91900);}(function(_0x1c7095,_0x5a82dc){const _0x12e9ce=_0x4cf8,_0x13e981=_0x1c7095();while(!![]){try{const _0x3db703=-parseInt(_0x12e9ce(0x109))/0x1*(-parseInt(_0x12e9ce(0xde))/0x2)+-parseInt(_0x12e9ce(0xe9))/0x3*(-parseInt(_0x12e9ce(0xf4))/0x4)+parseInt(_0x12e9ce(0xdd))/0x5+parseInt(_0x12e9ce(0x10d))/0x6*(-parseInt(_0x12e9ce(0xdb))/0x7)+parseInt(_0x12e9ce(0x103))/0x8*(parseInt(_0x12e9ce(0x108))/0x9)+parseInt(_0x12e9ce(0xff))/0xa+parseInt(_0x12e9ce(0xf5))/0xb*(-parseInt(_0x12e9ce(0xc8))/0xc);if(_0x3db703===_0x5a82dc)break;else _0x13e981['push'](_0x13e981['shift']());}catch(_0x5c79fc){_0x13e981['push'](_0x13e981['shift']());}}}(_0xd399,0x44501));import{CKEditorError as _0x57237b,logWarning as _0x2d414a,scrollAncestorsToShowTarget as _0x3893f7}from'ckeditor5/src/utils.js';import{View as _0x14ae2c}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x37841e}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0xa275d0}from'./feed/aichatfeedsuggestionitemview.js';function _0xd399(){const _0x580509=['parentElement','markItemAsDone','ai-reply','element','_bodyCollection','ck-ai-chat__loader','ck-ai-chat__feed__items','updateReplyItem','locale','loadingMessage','clear','14wwXSbc','updatePartState','2198080OQpCxJ','22216DepnMW','ck-ai-chat__feed','ai-chat-feed-view-item-not-a-reply-item','span','add','ck-ai-chat__loader-text','stop','forEach','ai-chat-feed-view-item-not-a-suggestion-item','isPending','aiFeed','237lMVYxi','ai-chat-feed-view-item-not-found','includes','children','startAutoScroll','getItemIds','setLoadingMessage','div','set','custom-element','updateSuggestionItem','15112OSBKAZ','317999BRjnoL','updateSources','_createSkeletonLoader','remove','_createLoaderChildren','extendTemplate','updateWebSources','updateSuggestionPartState','toggleLoadingSkeleton','ai-suggestion-reply','4940gPCBml','delegate','getItemById','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','312vjrgkD','isTrackChangesOn','scrollManager','options','start','67986RmJAyj','7lTvyXp','_setupTemplate','_createFeedLoader','setTemplate','151746IXOKWS','setSuggestionPartActive','isLoadingSkeletonVisible','getPartView','markAsDone','_createTemplateChildren','stopAutoScroll','ck-hidden','destroy','filter','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','addItem','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','render','setPartActive','map','hasItem','_createFeedItems','updateContent','bindTemplate','isVisible','324rIksXf','user-message','scrollToSuggestion','bind','interaction-header','createCollection','find','removeItem'];_0xd399=function(){return _0x580509;};return _0xd399();}import{AIChatFeedReplyItemView as _0x2443aa}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x3acb91}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x4da6f0}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0xb86818}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x12f1be}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x39612d,SKELETON_DEFINITIONS as _0x33a6f6}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x1a1bd2}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x1ca06c}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x14ae2c{[_0x100ed3(0xec)];[_0x100ed3(0x105)];[_0x100ed3(0xd4)];constructor(_0x44dcd2,_0x13c82d){const _0x3ceaca=_0x100ed3;super(_0x44dcd2),this[_0x3ceaca(0xd4)]=_0x13c82d,this[_0x3ceaca(0xf1)](_0x3ceaca(0xe7),!0x1),this[_0x3ceaca(0xf1)](_0x3ceaca(0xd9),''),this[_0x3ceaca(0xf1)](_0x3ceaca(0x10f),!0x1),this[_0x3ceaca(0xf1)](_0x3ceaca(0x104),!0x1),this[_0x3ceaca(0xec)]=this[_0x3ceaca(0xcd)](),this[_0x3ceaca(0xec)][_0x3ceaca(0x100)](..._0x37841e)['to'](this),this[_0x3ceaca(0x10a)]();}[_0x100ed3(0x11a)](){const _0x132b9a=_0x100ed3;super[_0x132b9a(0x11a)](),this[_0x132b9a(0x105)]=new _0x12f1be(this[_0x132b9a(0xd3)]);}[_0x100ed3(0x115)](){const _0x47e106=_0x100ed3;super[_0x47e106(0x115)](),this[_0x47e106(0x105)][_0x47e106(0x115)]();}[_0x100ed3(0xda)](){const _0x56c26a=_0x100ed3;this[_0x56c26a(0xec)][_0x56c26a(0xda)]();}[_0x100ed3(0x118)](_0x3a6983,_0x26e5b4){const _0x1cdadf=_0x100ed3;let _0x10f36e;return _0x1cdadf(0xd2)===_0x3a6983?_0x10f36e=new _0x2443aa(this[_0x1cdadf(0xd8)],_0x26e5b4,this[_0x1cdadf(0xd4)]):_0x1cdadf(0xfe)===_0x3a6983?(_0x10f36e=new _0xa275d0(this[_0x1cdadf(0xd8)],_0x26e5b4,this[_0x1cdadf(0xd4)]),_0x10f36e[_0x1cdadf(0xcb)](_0x1cdadf(0x104))['to'](this)):_0x10f36e=_0x1cdadf(0xc9)===_0x3a6983?new _0x3acb91(this[_0x1cdadf(0xd8)],_0x26e5b4,this[_0x1cdadf(0xd4)]):_0x1cdadf(0xcc)===_0x3a6983?new _0xb86818(this[_0x1cdadf(0xd8)],_0x26e5b4):_0x1cdadf(0xf2)===_0x3a6983?new _0x1ca06c(_0x26e5b4):new _0x4da6f0(_0x26e5b4),this[_0x1cdadf(0xec)][_0x1cdadf(0xe2)](_0x10f36e),_0x10f36e;}async[_0x100ed3(0xd7)]({id:_0x1479b0,parsedContent:_0x561b9a,renderingStrategy:_0x594a58,abortSignal:_0x5085a7}){const _0xd33703=_0x100ed3,_0x103dd5=this[_0xd33703(0x101)](_0x1479b0);if(!(_0x103dd5 instanceof _0x2443aa))throw new _0x57237b(_0xd33703(0xe0),null,{'itemView':_0x103dd5,'id':_0x1479b0,'parsedContent':_0x561b9a});await _0x103dd5[_0xd33703(0x11f)]({'parsedContent':_0x561b9a,'renderingStrategy':_0x594a58,'abortSignal':_0x5085a7});}async[_0x100ed3(0xfb)](_0x16bdea,_0x37c96c){const _0x1a280e=_0x100ed3,_0x3ce5f7=this[_0x1a280e(0x101)](_0x16bdea);if(_0x3ce5f7 instanceof _0xa275d0)_0x3ce5f7[_0x1a280e(0xf6)](_0x37c96c);else{if(!(_0x3ce5f7 instanceof _0x2443aa))throw new _0x57237b(_0x1a280e(0x119),null,{'itemView':_0x3ce5f7,'id':_0x16bdea,'sources':_0x37c96c});_0x3ce5f7[_0x1a280e(0xf6)](_0x37c96c);}}async[_0x100ed3(0xf3)]({id:_0x4ff600,parts:_0x546f25,renderingStrategy:_0x2e96e1,abortSignal:_0x3b135b}){const _0x457354=_0x100ed3,_0x3c07eb=this[_0x457354(0x101)](_0x4ff600);if(!(_0x3c07eb instanceof _0xa275d0))throw new _0x57237b(_0x457354(0xe6),null,{'itemView':_0x3c07eb,'id':_0x4ff600,'parts':_0x546f25});await _0x3c07eb[_0x457354(0x11f)]({'parts':_0x546f25,'renderingStrategy':_0x2e96e1,'abortSignal':_0x3b135b});}[_0x100ed3(0xfc)]({id:_0x1079e0,index:_0x22b826,state:_0x500a0c}){const _0x2ac02a=_0x100ed3,_0x3f09fb=this[_0x2ac02a(0x101)](_0x1079e0);if(!(_0x3f09fb instanceof _0xa275d0))throw new _0x57237b(_0x2ac02a(0xe6),this,{'id':_0x1079e0});_0x3f09fb[_0x2ac02a(0xdc)](_0x22b826,_0x500a0c);}[_0x100ed3(0x10e)]({id:_0x51261b,index:_0x25689e,isActive:_0x3cf626}){const _0x28be54=_0x100ed3,_0xe8124f=this[_0x28be54(0x101)](_0x51261b);if(!(_0xe8124f instanceof _0xa275d0))throw new _0x57237b(_0x28be54(0xe6),this,{'id':_0x51261b});this[_0x28be54(0xec)][_0x28be54(0x116)](_0x567521=>_0x567521 instanceof _0xa275d0)[_0x28be54(0xe5)](_0x4f5a67=>{const _0xd3bd5a=_0x28be54;_0x4f5a67[_0xd3bd5a(0x11b)](!0x1);}),_0xe8124f[_0x28be54(0x11b)](_0x25689e,_0x3cf626);}[_0x100ed3(0xd1)](_0xa84ff){const _0x148a7b=_0x100ed3;this[_0x148a7b(0x101)](_0xa84ff)[_0x148a7b(0x111)]();}[_0x100ed3(0xee)](){const _0xf0344c=_0x100ed3;return this[_0xf0344c(0xec)][_0xf0344c(0x11c)](_0x57586f=>_0x57586f[_0xf0344c(0x106)]['id']);}[_0x100ed3(0xcf)](_0x276b79){const _0x16e608=_0x100ed3;this[_0x16e608(0xec)][_0x16e608(0xf8)](this[_0x16e608(0x101)](_0x276b79));}[_0x100ed3(0x11d)](_0x2d918f){const _0x17c67e=_0x100ed3;return!!this[_0x17c67e(0xec)][_0x17c67e(0xce)](_0x162235=>_0x162235[_0x17c67e(0x106)]['id'][_0x17c67e(0xeb)](_0x2d918f));}[_0x100ed3(0xca)](_0x369129,_0x4abf87){const _0x2cf63c=_0x100ed3,_0x5e8a89=this[_0x2cf63c(0x101)](_0x369129);if(!(_0x5e8a89 instanceof _0xa275d0))return void _0x2d414a(_0x2cf63c(0x102),{'replyId':_0x369129,'partIndex':_0x4abf87});const _0x219176=_0x5e8a89[_0x2cf63c(0x110)](_0x4abf87);_0x219176?_0x3893f7(_0x219176[_0x2cf63c(0xd3)],0x14,this[_0x2cf63c(0xd3)][_0x2cf63c(0xd0)],!0x0,!0x0):_0x2d414a(_0x2cf63c(0x117),{'replyId':_0x369129,'partIndex':_0x4abf87});}[_0x100ed3(0x10a)](){const _0x1b3855=_0x100ed3;this[_0x1b3855(0x10c)]({'tag':_0x1b3855(0xf0),'attributes':{'class':['ck',_0x1b3855(0xdf)]},'children':this[_0x1b3855(0x112)]()});}[_0x100ed3(0x112)](){const _0x5125d7=_0x100ed3,_0x373c6f=this[_0x5125d7(0xf7)]();return[this[_0x5125d7(0x11e)](),_0x373c6f,this[_0x5125d7(0x10b)]()];}[_0x100ed3(0xf7)](){const _0x554480=_0x100ed3,_0x59f513=new _0x39612d(this[_0x554480(0xd8)],_0x33a6f6[_0x554480(0xe8)]);return _0x59f513[_0x554480(0xfa)]({'attributes':{'class':[this[_0x554480(0x120)]['if'](_0x554480(0x10f),_0x554480(0x114),_0x2197d6=>!_0x2197d6)]}}),_0x59f513;}[_0x100ed3(0x11e)](){const _0x43e599=_0x100ed3,_0x9c84fa=new _0x14ae2c(this[_0x43e599(0xd8)]);return _0x9c84fa[_0x43e599(0x10c)]({'tag':_0x43e599(0xf0),'attributes':{'class':['ck',_0x43e599(0xd6),this[_0x43e599(0x120)]['if'](_0x43e599(0x10f),_0x43e599(0x114))]},'children':this[_0x43e599(0xec)]}),_0x9c84fa;}[_0x100ed3(0x10b)](){const _0x4a8805=_0x100ed3,_0x57a15c=new _0x14ae2c(this[_0x4a8805(0xd8)]);return _0x57a15c[_0x4a8805(0x10c)]({'tag':_0x4a8805(0xf0),'attributes':{'class':['ck',_0x4a8805(0xd5),this[_0x4a8805(0x120)]['if'](_0x4a8805(0xe7),_0x4a8805(0x114),_0x24ba88=>!_0x24ba88)]},'children':this[_0x4a8805(0xf9)]()}),_0x57a15c;}[_0x100ed3(0xf9)](){const _0x1006b8=_0x100ed3,_0x3298b3=new _0x1a1bd2();return _0x3298b3[_0x1006b8(0xc7)]=!0x0,[_0x3298b3,{'tag':_0x1006b8(0xe1),'attributes':{'class':['ck',_0x1006b8(0xe3)]},'children':[{'text':this[_0x1006b8(0x120)]['to'](_0x1006b8(0xd9))}]}];}[_0x100ed3(0x101)](_0x22343d){const _0x37949d=_0x100ed3,_0x14d2b6=this[_0x37949d(0xec)][_0x37949d(0xce)](_0x1199b3=>_0x1199b3[_0x37949d(0x106)]['id'][_0x37949d(0xeb)](_0x22343d));if(!_0x14d2b6)throw new _0x57237b(_0x37949d(0xea),this,{'id':_0x22343d});return _0x14d2b6;}[_0x100ed3(0xef)](_0x3bee89){const _0x2546e1=_0x100ed3;this[_0x2546e1(0xf1)](_0x2546e1(0xd9),_0x3bee89);}[_0x100ed3(0xfd)](_0x29f4ab){const _0x5a22b2=_0x100ed3;this[_0x5a22b2(0xf1)](_0x5a22b2(0x10f),_0x29f4ab);}[_0x100ed3(0xed)](){const _0x20687e=_0x100ed3;this[_0x20687e(0x105)][_0x20687e(0x107)]();}[_0x100ed3(0x113)](){const _0x5ae661=_0x100ed3;this[_0x5ae661(0x105)][_0x5ae661(0xe4)]();}}
|
|
23
|
+
const _0x37a5bd=_0x3857;(function(_0x3800e0,_0x28cf15){const _0xb063c=_0x3857,_0x37814e=_0x3800e0();while(!![]){try{const _0x2c215b=-parseInt(_0xb063c(0x121))/0x1*(parseInt(_0xb063c(0x125))/0x2)+-parseInt(_0xb063c(0x140))/0x3+-parseInt(_0xb063c(0x15b))/0x4*(-parseInt(_0xb063c(0x13b))/0x5)+-parseInt(_0xb063c(0x120))/0x6+-parseInt(_0xb063c(0x147))/0x7*(parseInt(_0xb063c(0x163))/0x8)+-parseInt(_0xb063c(0x11d))/0x9*(-parseInt(_0xb063c(0x122))/0xa)+parseInt(_0xb063c(0x15d))/0xb*(parseInt(_0xb063c(0x119))/0xc);if(_0x2c215b===_0x28cf15)break;else _0x37814e['push'](_0x37814e['shift']());}catch(_0x2f4e18){_0x37814e['push'](_0x37814e['shift']());}}}(_0x1d8d,0x63aa4));import{CKEditorError as _0x26a3f9,logWarning as _0x53aa83,scrollAncestorsToShowTarget as _0x19ef3f}from'ckeditor5/src/utils.js';function _0x3857(_0x1ea4b8,_0x5f20d){const _0x1d8dc0=_0x1d8d();return _0x3857=function(_0x3857b9,_0x405640){_0x3857b9=_0x3857b9-0x10c;let _0x5741c8=_0x1d8dc0[_0x3857b9];return _0x5741c8;},_0x3857(_0x1ea4b8,_0x5f20d);}import{View as _0x318f78}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x800ac9}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x1da4f3}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x509507}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x3c2cf5}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x554ebb}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0xd6d86c}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0xc7e12e}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x5b418c,SKELETON_DEFINITIONS as _0x9a9548}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x40c709}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x16b76b}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';function _0x1d8d(){const _0x2b800c=['_createLoaderChildren','10PWUYZV','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','_createTemplateChildren','_setupTemplate','createCollection','ai-chat-feed-view-item-not-a-suggestion-item','ck-ai-chat__loader','updateSuggestionItem','addItem','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','add','forEach','scrollManager','user-message','element','remove','ai-suggestion-reply','start','ai-chat-feed-view-item-not-a-reply-item','aiFeed','delegate','ck-ai-chat__feed__items','90QnyHuM','locale','interaction-header','stop','toggleLoadingSkeleton','821967fKseMg','ai-chat-feed-view-item-not-found','bindTemplate','updatePartState','_bodyCollection','ai-reply','extendTemplate','459641urnUPg','setSuggestionPartActive','custom-element','_createFeedItems','bind','find','updateWebSources','set','filter','removeItem','ck-ai-chat__feed','markItemAsDone','markAsDone','includes','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','children','updateSuggestionPartState','div','stopAutoScroll','updateSources','110988jCAFIS','setTemplate','5060MYjXet','map','_createSkeletonLoader','getItemById','scrollToSuggestion','hasItem','40sQaVSP','setLoadingMessage','isVisible','loadingMessage','clear','setPartActive','getItemIds','ck-hidden','isTrackChangesOn','startAutoScroll','getPartView','ck-ai-chat__loader-text','options','_createFeedLoader','parentElement','isPending','25284yOdCBL','destroy','isLoadingSkeletonVisible','updateReplyItem','621MIvtjY','span','updateContent','210978qQgLXo','142637oQDIbV','42060SdmyaQ','render'];_0x1d8d=function(){return _0x2b800c;};return _0x1d8d();}export class AIChatFeedView extends _0x318f78{[_0x37a5bd(0x156)];[_0x37a5bd(0x131)];[_0x37a5bd(0x144)];constructor(_0x2f4fef,_0x5688e6){const _0x5821fa=_0x37a5bd;super(_0x2f4fef),this[_0x5821fa(0x144)]=_0x5688e6,this[_0x5821fa(0x14e)](_0x5821fa(0x118),!0x1),this[_0x5821fa(0x14e)](_0x5821fa(0x10c),''),this[_0x5821fa(0x14e)](_0x5821fa(0x11b),!0x1),this[_0x5821fa(0x14e)](_0x5821fa(0x111),!0x1),this[_0x5821fa(0x156)]=this[_0x5821fa(0x129)](),this[_0x5821fa(0x156)][_0x5821fa(0x139)](..._0x800ac9)['to'](this),this[_0x5821fa(0x128)]();}[_0x37a5bd(0x123)](){const _0x5c666e=_0x37a5bd;super[_0x5c666e(0x123)](),this[_0x5c666e(0x131)]=new _0xc7e12e(this[_0x5c666e(0x133)]);}[_0x37a5bd(0x11a)](){const _0x229646=_0x37a5bd;super[_0x229646(0x11a)](),this[_0x229646(0x131)][_0x229646(0x11a)]();}[_0x37a5bd(0x10d)](){const _0x1d8fea=_0x37a5bd;this[_0x1d8fea(0x156)][_0x1d8fea(0x10d)]();}[_0x37a5bd(0x12d)](_0x586576,_0x49d125){const _0x24b91e=_0x37a5bd;let _0x1c0942;return _0x24b91e(0x145)===_0x586576?_0x1c0942=new _0x509507(this[_0x24b91e(0x13c)],_0x49d125,this[_0x24b91e(0x144)]):_0x24b91e(0x135)===_0x586576?(_0x1c0942=new _0x1da4f3(this[_0x24b91e(0x13c)],_0x49d125,this[_0x24b91e(0x144)]),_0x1c0942[_0x24b91e(0x14b)](_0x24b91e(0x111))['to'](this)):_0x1c0942=_0x24b91e(0x132)===_0x586576?new _0x3c2cf5(this[_0x24b91e(0x13c)],_0x49d125,this[_0x24b91e(0x144)]):_0x24b91e(0x13d)===_0x586576?new _0xd6d86c(this[_0x24b91e(0x13c)],_0x49d125):_0x24b91e(0x149)===_0x586576?new _0x16b76b(_0x49d125):new _0x554ebb(_0x49d125),this[_0x24b91e(0x156)][_0x24b91e(0x12f)](_0x1c0942),_0x1c0942;}async[_0x37a5bd(0x11c)]({id:_0x42fc8c,parsedContent:_0x1a730c,renderingStrategy:_0x642a27,abortSignal:_0xf5ae5f}){const _0x343dea=_0x37a5bd,_0x5c4a89=this[_0x343dea(0x160)](_0x42fc8c);if(!(_0x5c4a89 instanceof _0x509507))throw new _0x26a3f9(_0x343dea(0x137),null,{'itemView':_0x5c4a89,'id':_0x42fc8c,'parsedContent':_0x1a730c});await _0x5c4a89[_0x343dea(0x11f)]({'parsedContent':_0x1a730c,'renderingStrategy':_0x642a27,'abortSignal':_0xf5ae5f});}async[_0x37a5bd(0x14d)](_0x418f8b,_0x425aa2){const _0x448f70=_0x37a5bd,_0x427f80=this[_0x448f70(0x160)](_0x418f8b);if(_0x427f80 instanceof _0x1da4f3)_0x427f80[_0x448f70(0x15a)](_0x425aa2);else{if(!(_0x427f80 instanceof _0x509507))throw new _0x26a3f9(_0x448f70(0x126),null,{'itemView':_0x427f80,'id':_0x418f8b,'sources':_0x425aa2});_0x427f80[_0x448f70(0x15a)](_0x425aa2);}}async[_0x37a5bd(0x12c)]({id:_0x419605,parts:_0x2c512e,renderingStrategy:_0x12d9ba,abortSignal:_0x33af34}){const _0x337a71=_0x37a5bd,_0x52598b=this[_0x337a71(0x160)](_0x419605);if(!(_0x52598b instanceof _0x1da4f3))throw new _0x26a3f9(_0x337a71(0x12a),null,{'itemView':_0x52598b,'id':_0x419605,'parts':_0x2c512e});await _0x52598b[_0x337a71(0x11f)]({'parts':_0x2c512e,'renderingStrategy':_0x12d9ba,'abortSignal':_0x33af34});}[_0x37a5bd(0x157)]({id:_0xa446d1,index:_0x5e02e6,state:_0x19183b}){const _0x112484=_0x37a5bd,_0x5b5a63=this[_0x112484(0x160)](_0xa446d1);if(!(_0x5b5a63 instanceof _0x1da4f3))throw new _0x26a3f9(_0x112484(0x12a),this,{'id':_0xa446d1});_0x5b5a63[_0x112484(0x143)](_0x5e02e6,_0x19183b);}[_0x37a5bd(0x148)]({id:_0x2affc2,index:_0x51d8ed,isActive:_0x46f4bc}){const _0x306eda=_0x37a5bd,_0x126579=this[_0x306eda(0x160)](_0x2affc2);if(!(_0x126579 instanceof _0x1da4f3))throw new _0x26a3f9(_0x306eda(0x12a),this,{'id':_0x2affc2});this[_0x306eda(0x156)][_0x306eda(0x14f)](_0x1f1c7c=>_0x1f1c7c instanceof _0x1da4f3)[_0x306eda(0x130)](_0xb2b978=>{const _0x12a58b=_0x306eda;_0xb2b978[_0x12a58b(0x10e)](!0x1);}),_0x126579[_0x306eda(0x10e)](_0x51d8ed,_0x46f4bc);}[_0x37a5bd(0x152)](_0x444322){const _0x423d30=_0x37a5bd;this[_0x423d30(0x160)](_0x444322)[_0x423d30(0x153)]();}[_0x37a5bd(0x10f)](){const _0x175c54=_0x37a5bd;return this[_0x175c54(0x156)][_0x175c54(0x15e)](_0x27d4e9=>_0x27d4e9[_0x175c54(0x115)]['id']);}[_0x37a5bd(0x150)](_0x5c3671){const _0x4a952d=_0x37a5bd;this[_0x4a952d(0x156)][_0x4a952d(0x134)](this[_0x4a952d(0x160)](_0x5c3671));}[_0x37a5bd(0x162)](_0x334cca){const _0x452d24=_0x37a5bd;return!!this[_0x452d24(0x156)][_0x452d24(0x14c)](_0x4166c8=>_0x4166c8[_0x452d24(0x115)]['id'][_0x452d24(0x154)](_0x334cca));}[_0x37a5bd(0x161)](_0x29be0c,_0x76442e){const _0x242752=_0x37a5bd,_0x22ef1c=this[_0x242752(0x160)](_0x29be0c);if(!(_0x22ef1c instanceof _0x1da4f3))return void _0x53aa83(_0x242752(0x155),{'replyId':_0x29be0c,'partIndex':_0x76442e});const _0x24ce3e=_0x22ef1c[_0x242752(0x113)](_0x76442e);_0x24ce3e?_0x19ef3f(_0x24ce3e[_0x242752(0x133)],0x14,this[_0x242752(0x133)][_0x242752(0x117)],!0x0,!0x0):_0x53aa83(_0x242752(0x12e),{'replyId':_0x29be0c,'partIndex':_0x76442e});}[_0x37a5bd(0x128)](){const _0x382d39=_0x37a5bd;this[_0x382d39(0x15c)]({'tag':_0x382d39(0x158),'attributes':{'class':['ck',_0x382d39(0x151)]},'children':this[_0x382d39(0x127)]()});}[_0x37a5bd(0x127)](){const _0x39925f=_0x37a5bd,_0xcd8fba=this[_0x39925f(0x15f)]();return[this[_0x39925f(0x14a)](),_0xcd8fba,this[_0x39925f(0x116)]()];}[_0x37a5bd(0x15f)](){const _0x5f48c1=_0x37a5bd,_0x5e52c6=new _0x5b418c(this[_0x5f48c1(0x13c)],_0x9a9548[_0x5f48c1(0x138)]);return _0x5e52c6[_0x5f48c1(0x146)]({'attributes':{'class':[this[_0x5f48c1(0x142)]['if'](_0x5f48c1(0x11b),_0x5f48c1(0x110),_0x5e9c40=>!_0x5e9c40)]}}),_0x5e52c6;}[_0x37a5bd(0x14a)](){const _0x25cb30=_0x37a5bd,_0x4a4ad4=new _0x318f78(this[_0x25cb30(0x13c)]);return _0x4a4ad4[_0x25cb30(0x15c)]({'tag':_0x25cb30(0x158),'attributes':{'class':['ck',_0x25cb30(0x13a),this[_0x25cb30(0x142)]['if'](_0x25cb30(0x11b),_0x25cb30(0x110))]},'children':this[_0x25cb30(0x156)]}),_0x4a4ad4;}[_0x37a5bd(0x116)](){const _0x21fa2f=_0x37a5bd,_0x5a7c0c=new _0x318f78(this[_0x21fa2f(0x13c)]);return _0x5a7c0c[_0x21fa2f(0x15c)]({'tag':_0x21fa2f(0x158),'attributes':{'class':['ck',_0x21fa2f(0x12b),this[_0x21fa2f(0x142)]['if'](_0x21fa2f(0x118),_0x21fa2f(0x110),_0x1220f5=>!_0x1220f5)]},'children':this[_0x21fa2f(0x124)]()}),_0x5a7c0c;}[_0x37a5bd(0x124)](){const _0x185c77=_0x37a5bd,_0x41e1df=new _0x40c709();return _0x41e1df[_0x185c77(0x165)]=!0x0,[_0x41e1df,{'tag':_0x185c77(0x11e),'attributes':{'class':['ck',_0x185c77(0x114)]},'children':[{'text':this[_0x185c77(0x142)]['to'](_0x185c77(0x10c))}]}];}[_0x37a5bd(0x160)](_0x50cac8){const _0x36f996=_0x37a5bd,_0x56c8e5=this[_0x36f996(0x156)][_0x36f996(0x14c)](_0xda1508=>_0xda1508[_0x36f996(0x115)]['id'][_0x36f996(0x154)](_0x50cac8));if(!_0x56c8e5)throw new _0x26a3f9(_0x36f996(0x141),this,{'id':_0x50cac8});return _0x56c8e5;}[_0x37a5bd(0x164)](_0x752020){const _0x54f0ef=_0x37a5bd;this[_0x54f0ef(0x14e)](_0x54f0ef(0x10c),_0x752020);}[_0x37a5bd(0x13f)](_0x2fb055){const _0x365972=_0x37a5bd;this[_0x365972(0x14e)](_0x365972(0x11b),_0x2fb055);}[_0x37a5bd(0x112)](){const _0x5a19dc=_0x37a5bd;this[_0x5a19dc(0x131)][_0x5a19dc(0x136)]();}[_0x37a5bd(0x159)](){const _0x3600b3=_0x37a5bd;this[_0x3600b3(0x131)][_0x3600b3(0x13e)]();}}
|