@ckeditor/ckeditor5-ai 47.7.4 → 47.7.5-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x4247(){const _0xcc373f=['ai-chat-handle-user-interaction-start-failed','length','mcp-tool-result','handleUserInteraction','addSelectionToContext','toggleReasoning','sessionId','updateCurrentDocument','isFromHistory','getModel','modelSelected','addToConversationContext','capabilities','conversationInitialized','selectedModel','user','start','setWebSearch','fetchConversation','20936emviET','getDocumentContext','prompt','url','addToolItemToContext','ai-chat-conversation-start-no-model-selected','code','removeSelectionFromContext','push','attributes','stop','getInteraction','getAvailableModels','chatModels','getEditor','ai-chat-conversation-already-started','isStarted','connector','getAll','toLowerCase','addResourceToContext','model','toolName','indexOf','getCapabilitiesConfig','updateCurrentDocumentInContext','options','interactions','ai-chat-conversation-start-failed','_handleToolResultData','isAvailable','23694FeIChP','reset','ai-chat-conversation-set-model-not-available','chatContext','createReply','type','addFilesToContext','init','group','_processMessagesToInteractions','selectedModelId','1263700RAJAHv','hasOwn','appendContent','6489380ELpLWn','removeFromContext','isCurrentDocumentInContext','toggleWebSearch','setReasoning','ai-chat-conversation-set-model-null','interactionCreated','3132yLzqBu','ai-chat-conversation-init-failed','title','_extractContextItems','isSelectionInContext','addUrlToContext','text','1719pOsJck','error','ai-chat-conversation-init-from-id-failed','setConversationTitle','6xQkJRc','splice','loadSourceResources','6yxEjOv','webSearch','currentInteraction','createInteraction','reasoning','content','getCurrentDocumentContext','get','startConversation','getPendingContextItems','contextItems','lastInteraction','addCurrentDocumentToContext','ai-chat-handle-user-conversation-not-initialized','populateFromMessage','destroy','assistant','load','parse','ai-chat-handle-user-interaction-already-in-progress','delegate','role','fire','modification','currentReply','1536157TFgVnZ','214LXrBJV','removeInteraction','conversationId','getMessages','isCurrentDocumentInConversation','fetchConversationMessages','sources','stack','find','6672Tlsmig','message','set','getConversation','chatCapabilities','setModel','365715lEKdJU','conversationStarted'];_0x4247=function(){return _0xcc373f;};return _0x4247();}const _0x264d7b=_0x5369;(function(_0x595b16,_0x31a966){const _0x1c7043=_0x5369,_0x53123f=_0x595b16();while(!![]){try{const _0x436da9=-parseInt(_0x1c7043(0xba))/0x1*(parseInt(_0x1c7043(0xb1))/0x2)+-parseInt(_0x1c7043(0x94))/0x3*(parseInt(_0x1c7043(0x7f))/0x4)+-parseInt(_0x1c7043(0xc0))/0x5+parseInt(_0x1c7043(0x97))/0x6*(parseInt(_0x1c7043(0xb0))/0x7)+-parseInt(_0x1c7043(0xd5))/0x8*(-parseInt(_0x1c7043(0x90))/0x9)+parseInt(_0x1c7043(0x82))/0xa+parseInt(_0x1c7043(0x74))/0xb*(parseInt(_0x1c7043(0x89))/0xc);if(_0x436da9===_0x31a966)break;else _0x53123f['push'](_0x53123f['shift']());}catch(_0x12e60f){_0x53123f['push'](_0x53123f['shift']());}}}(_0x4247,0x7ce2d));function _0x5369(_0x24fd76,_0x353426){const _0x424770=_0x4247();return _0x5369=function(_0x5369c4,_0x26b3e9){_0x5369c4=_0x5369c4-0x6d;let _0x6bd4d=_0x424770[_0x5369c4];return _0x6bd4d;},_0x5369(_0x24fd76,_0x353426);}import{CKEditorError as _0x312a30,EmitterMixin as _0xd47f38,logWarning as _0x1a6f60}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x5cdd0a}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x9f8e15,AI_CONTEXT_MODEL_EVENT_NAMES as _0x50710e}from'./aichatcontext.js';import{AICapabilities as _0x3e2e5d,CAPABILITIES_MODEL_EVENT_NAMES as _0x958d76}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x4ce4fb}from'./aichatinteraction.js';import{errorsMap as _0x458ca5}from'../../errorsmap.js';export class AIChatConversation extends _0xd47f38(){['id'];[_0x264d7b(0xe5)]=!0x1;[_0x264d7b(0xca)];[_0x264d7b(0x70)]=[];[_0x264d7b(0x99)];[_0x264d7b(0xd0)];[_0x264d7b(0xe6)];[_0x264d7b(0x6f)];constructor(_0xc5b745){const _0x466ab8=_0x264d7b;super(),this[_0x466ab8(0x6f)]=_0xc5b745,this[_0x466ab8(0xe6)]=_0xc5b745[_0x466ab8(0xe6)],this[_0x466ab8(0xe2)]=_0xc5b745[_0x466ab8(0xe2)],this['id']=_0xc5b745[_0x466ab8(0xb3)],this[_0x466ab8(0xca)]=_0xc5b745[_0x466ab8(0xca)];}async[_0x264d7b(0x7b)](_0x5c02a4){const _0x56a8c7=_0x264d7b;try{this[_0x56a8c7(0x77)]=new _0x9f8e15({'connector':this[_0x56a8c7(0xe6)],'config':_0x5c02a4,'ownerId':this['id']}),this[_0x56a8c7(0x77)][_0x56a8c7(0xab)](..._0x50710e)['to'](this),this[_0x56a8c7(0x77)][_0x56a8c7(0x7b)](),this[_0x56a8c7(0xbe)]=new _0x3e2e5d(),this[_0x56a8c7(0xbe)][_0x56a8c7(0xab)](..._0x958d76)['to'](this),this[_0x56a8c7(0xbe)][_0x56a8c7(0x7b)]();const _0x569b00=await this[_0x56a8c7(0xe2)][_0x56a8c7(0xe1)]();this[_0x56a8c7(0xad)](_0x56a8c7(0xcf),{'availableModels':_0x569b00});const _0x195807=await this[_0x56a8c7(0xe2)][_0x56a8c7(0xcb)](this[_0x56a8c7(0x6f)][_0x56a8c7(0x7e)]);_0x195807&&await this[_0x56a8c7(0xbf)](_0x195807);}catch(_0x45f960){const _0x1786fb=new _0x312a30(_0x56a8c7(0x8a),null,{'message':_0x45f960[_0x56a8c7(0xbb)]||_0x45f960});_0x1786fb[_0x56a8c7(0xb8)]=_0x45f960[_0x56a8c7(0xb8)],this[_0x56a8c7(0xad)](_0x56a8c7(0x91),{'error':_0x1786fb});}}async[_0x264d7b(0xd2)](){const _0xc53c90=_0x264d7b;if(this[_0xc53c90(0xe5)])throw new _0x312a30(_0xc53c90(0xe4),null,{'conversation':this});if(!this[_0xc53c90(0xd0)])throw new _0x312a30(_0xc53c90(0xda),null,{'conversation':this});try{const {id:_0xc4106a}=await this[_0xc53c90(0xe6)][_0xc53c90(0x9f)](this['id'],this[_0xc53c90(0x6f)][_0xc53c90(0x7c)])[_0xc53c90(0xbd)]();this['id']=_0xc4106a,this[_0xc53c90(0xe5)]=!0x0,this[_0xc53c90(0xad)](_0xc53c90(0xc1),{'conversationId':this['id'],'selectedModel':this[_0xc53c90(0xd0)]});}catch(_0x1ade23){const _0x1fab48=new _0x312a30(_0xc53c90(0x71),null,{'message':_0x1ade23[_0xc53c90(0xbb)],'conversationId':this['id']});throw _0x1fab48[_0xc53c90(0xb8)]=_0x1ade23[_0xc53c90(0xb8)],this[_0xc53c90(0xad)](_0xc53c90(0x91),{'error':_0x1fab48}),_0x1fab48;}}async[_0x264d7b(0xa8)](_0x16d7f0,_0x3da82f){const _0x21efa1=_0x264d7b;try{const _0x28ca3e=await this[_0x21efa1(0xe6)][_0x21efa1(0xd4)](_0x16d7f0)[_0x21efa1(0xbd)](),_0x551e47=await this[_0x21efa1(0xe6)][_0x21efa1(0xb6)](_0x16d7f0)[_0x21efa1(0xb4)](),_0x1d5270=_0x551e47[0x0][_0x21efa1(0xea)];this[_0x21efa1(0xe5)]=!0x0,this['id']=_0x28ca3e['id'],_0x21efa1(0x8b)in _0x28ca3e?this[_0x21efa1(0xad)](_0x21efa1(0x93),_0x28ca3e[_0x21efa1(0x8b)],!0x0):this[_0x21efa1(0xad)](_0x21efa1(0x93),'',!0x0);const _0x23b4a1=(await this[_0x21efa1(0xe2)][_0x21efa1(0xe7)]())[_0x21efa1(0xb9)](_0x24886a=>_0x24886a['id'][_0x21efa1(0xe8)]()===_0x1d5270[_0x21efa1(0xe8)]());return this[_0x21efa1(0xd0)]=_0x23b4a1,this[_0x21efa1(0xad)](_0x21efa1(0xcc),{'selectedModel':_0x23b4a1,'isDisabled':!0x0}),await this[_0x21efa1(0x7d)](_0x551e47,_0x3da82f,_0x1d5270),this[_0x21efa1(0x99)]=void 0x0,this;}catch(_0x57f991){const _0xefcff5=new _0x312a30(_0x21efa1(0x92),null,{'message':_0x57f991[_0x21efa1(0xbb)],'conversationId':_0x16d7f0});throw _0xefcff5[_0x21efa1(0xb8)]=_0x57f991[_0x21efa1(0xb8)],this[_0x21efa1(0xad)](_0x21efa1(0x91),{'error':_0xefcff5}),_0xefcff5;}}async[_0x264d7b(0x7d)](_0x3ed542,_0x3ee042,_0x2c7cd5){const _0x66a1d9=_0x264d7b;let _0x59fc6e;for(const _0x5c17f0 of _0x3ed542)if(_0x66a1d9(0xd1)===_0x5c17f0[_0x66a1d9(0xac)]){const _0x2e4bb9=await this[_0x66a1d9(0x8c)](_0x5c17f0),_0x181874={'isReasoningEnabled':Object[_0x66a1d9(0x80)](_0x5c17f0[_0x66a1d9(0xce)],_0x66a1d9(0x9b)),'isWebSearchEnabled':Object[_0x66a1d9(0x80)](_0x5c17f0[_0x66a1d9(0xce)],_0x66a1d9(0x98))};_0x59fc6e=this[_0x66a1d9(0x9a)]({'userMessage':_0x5c17f0[_0x66a1d9(0xd7)],'contextItems':_0x2e4bb9,'capabilities':_0x181874,'modelId':_0x2c7cd5,'attributes':_0x5c17f0[_0x66a1d9(0xde)]}),this[_0x66a1d9(0x99)]=_0x59fc6e,this[_0x66a1d9(0x77)][_0x66a1d9(0xcd)](this[_0x66a1d9(0x99)][_0x66a1d9(0xa1)]);}else{if(_0x66a1d9(0xa7)===_0x5c17f0[_0x66a1d9(0xac)]&&_0x59fc6e){const _0xbcc11d=[];for(const _0xf325a6 of _0x5c17f0[_0x66a1d9(0x9c)])switch(_0xf325a6[_0x66a1d9(0x79)]){case _0x66a1d9(0x8f):case _0x66a1d9(0xae):{const _0x33be6d=_0x59fc6e[_0x66a1d9(0xd6)]()?.[_0x66a1d9(0xc8)]!==_0x3ee042;_0x59fc6e[_0x66a1d9(0xaf)]=_0x59fc6e[_0x66a1d9(0x78)]({'type':_0xf325a6[_0x66a1d9(0x79)],'isDone':!0x0,'interactionId':_0x59fc6e['id'],'areActionsDisabled':_0x33be6d}),_0x59fc6e[_0x66a1d9(0xaf)][_0x66a1d9(0x81)](_0xf325a6[_0x66a1d9(0x9c)]),_0xbcc11d[_0x66a1d9(0xc3)]>0x0&&(_0x59fc6e[_0x66a1d9(0xaf)][_0x66a1d9(0xb7)]=_0xbcc11d[_0x66a1d9(0x95)](0x0));break;}case _0x66a1d9(0xd8):_0xbcc11d[_0x66a1d9(0xdd)](_0xf325a6);break;case _0x66a1d9(0xc4):{const {data:_0x4a9c77,attributes:_0x21fee8}=JSON[_0x66a1d9(0xa9)](_0xf325a6[_0x66a1d9(0x9c)]);_0x59fc6e[_0x66a1d9(0x72)]({'toolName':_0xf325a6[_0x66a1d9(0xeb)],'data':_0x4a9c77,'attributes':_0x21fee8});break;}}}}}async[_0x264d7b(0x8c)](_0x5296a7){const _0x1f7a27=_0x264d7b,_0x257139=new Map();if(!_0x5296a7[_0x1f7a27(0x9c)])return _0x257139;for(const _0x7efb60 of _0x5296a7[_0x1f7a27(0x9c)]){const _0x591869=await this[_0x1f7a27(0x77)][_0x1f7a27(0xa5)](_0x7efb60);_0x591869&&_0x257139[_0x1f7a27(0xbc)](_0x591869['id'],_0x591869);}return _0x257139;}async[_0x264d7b(0xc5)]({userMessage:_0x2685f6,attributes:_0x1ec341}){const _0x476af5=_0x264d7b;if(!this[_0x476af5(0xe5)])throw new _0x312a30(_0x476af5(0xa4),null,{'conversation':this});if(this[_0x476af5(0x99)])throw new _0x312a30(_0x476af5(0xaa),null,{'conversation':this});try{const _0x3bfe33=this[_0x476af5(0x77)][_0x476af5(0xa0)](),_0x3b6157=this[_0x476af5(0xbe)][_0x476af5(0x6d)](),_0x22211e=this[_0x476af5(0xd0)]['id'];this[_0x476af5(0x99)]=this[_0x476af5(0x9a)]({'userMessage':_0x2685f6,'contextItems':_0x3bfe33,'capabilities':_0x3b6157,'modelId':_0x22211e,'attributes':_0x1ec341}),await this[_0x476af5(0x99)][_0x476af5(0xd2)](),this[_0x476af5(0x77)][_0x476af5(0xcd)](this[_0x476af5(0x99)][_0x476af5(0xa1)]);}catch(_0xf47097){if(_0xf47097 instanceof _0x312a30)this[_0x476af5(0xad)](_0x476af5(0x91),{'interactionId':this[_0x476af5(0x99)]?this[_0x476af5(0x99)]['id']:void 0x0,'error':_0xf47097});else{const _0x285fac=_0x458ca5[_0x476af5(0x9e)](_0xf47097[_0x476af5(0xdb)])||_0x476af5(0xc2);this[_0x476af5(0xad)](_0x476af5(0x91),{'interactionId':this[_0x476af5(0x99)]?this[_0x476af5(0x99)]['id']:void 0x0,'error':new _0x312a30(_0x285fac,null,{'error':_0xf47097})});}}finally{this[_0x476af5(0x99)]?.[_0x476af5(0xdf)](),this[_0x476af5(0x99)]=void 0x0;}}[_0x264d7b(0x9a)]({userMessage:_0x5dd719,contextItems:_0x2b751f,capabilities:_0x4583dd,modelId:_0x3dc195,attributes:_0x650a96}){const _0x234ed3=_0x264d7b,_0x59642d=new _0x4ce4fb({'userMessage':_0x5dd719,'contextItems':_0x2b751f,'capabilities':_0x4583dd,'conversationId':this['id'],'connector':this[_0x234ed3(0xe6)],'editor':this[_0x234ed3(0x6f)][_0x234ed3(0xe3)]&&this[_0x234ed3(0x6f)][_0x234ed3(0xe3)](),'model':_0x3dc195,'attributes':_0x650a96});return _0x59642d[_0x234ed3(0xab)](..._0x5cdd0a)['to'](this),this[_0x234ed3(0x70)][_0x234ed3(0xdd)](_0x59642d),this[_0x234ed3(0xad)](_0x234ed3(0x88),_0x59642d),_0x59642d;}[_0x264d7b(0xe0)](_0x1318be){const _0x1b6f88=_0x264d7b;return this[_0x1b6f88(0x70)][_0x1b6f88(0xb9)](_0x57133d=>_0x57133d['id']===_0x1318be);}[_0x264d7b(0xb2)](_0x4858db){const _0x575ed0=_0x264d7b,_0x24b2ba=this[_0x575ed0(0xe0)](_0x4858db);_0x24b2ba&&(_0x24b2ba[_0x575ed0(0xa6)](),this[_0x575ed0(0x70)][_0x575ed0(0x95)](this[_0x575ed0(0x70)][_0x575ed0(0xec)](_0x24b2ba),0x1));}get[_0x264d7b(0xa2)](){const _0x3455fe=_0x264d7b;return this[_0x3455fe(0x70)][this[_0x3455fe(0x70)][_0x3455fe(0xc3)]-0x1];}[_0x264d7b(0xa3)](_0x27e6e7){const _0x18d46b=_0x264d7b;this[_0x18d46b(0x77)][_0x18d46b(0xa3)](_0x27e6e7);}async[_0x264d7b(0x6e)]({content:_0x43879f,version:_0x240cfb,sessionId:_0x147283,selections:_0x3d63b5}){const _0x3d47bb=_0x264d7b;await this[_0x3d47bb(0x77)][_0x3d47bb(0xc9)](_0x43879f,_0x240cfb,_0x147283,_0x3d63b5);}[_0x264d7b(0x9d)](){const _0x1911d9=_0x264d7b;return this[_0x1911d9(0x99)]?.[_0x1911d9(0xd6)]()?.[_0x1911d9(0x9c)]||'';}[_0x264d7b(0xc6)](_0x563935){const _0x494065=_0x264d7b;this[_0x494065(0x77)][_0x494065(0xc6)](_0x563935);}[_0x264d7b(0xdc)](){const _0x116ae5=_0x264d7b;this[_0x116ae5(0x77)][_0x116ae5(0xdc)]();}[_0x264d7b(0x7a)](_0x552997){const _0x183ba7=_0x264d7b;this[_0x183ba7(0x77)][_0x183ba7(0x7a)](_0x552997);}[_0x264d7b(0x8e)](_0x330dd2){const _0x556e76=_0x264d7b;this[_0x556e76(0x77)][_0x556e76(0x8e)](_0x330dd2);}[_0x264d7b(0xd9)](_0x1e7cb0){const _0x269815=_0x264d7b;this[_0x269815(0x77)][_0x269815(0xd9)](_0x1e7cb0);}[_0x264d7b(0xe9)](_0x4d9220,_0x549a01){const _0x55e984=_0x264d7b;this[_0x55e984(0x77)][_0x55e984(0xe9)](_0x4d9220,_0x549a01);}[_0x264d7b(0x96)](_0x51bf7e,_0x151d9b,_0x19fb65){const _0x18ecfe=_0x264d7b;return this[_0x18ecfe(0x77)][_0x18ecfe(0x96)](_0x51bf7e,_0x151d9b,_0x19fb65);}[_0x264d7b(0x83)](_0x5ce79b){const _0x4f23bd=_0x264d7b;this[_0x4f23bd(0x77)][_0x4f23bd(0x83)](_0x5ce79b);}[_0x264d7b(0xd3)](_0x2369f9){const _0x1bb43d=_0x264d7b;this[_0x1bb43d(0xbe)][_0x1bb43d(0xd3)](_0x2369f9);}[_0x264d7b(0x85)](){const _0x513b6a=_0x264d7b;this[_0x513b6a(0xbe)][_0x513b6a(0x85)]();}[_0x264d7b(0x86)](_0xff8951){const _0x22a2c7=_0x264d7b;this[_0x22a2c7(0xbe)][_0x22a2c7(0x86)](_0xff8951);}[_0x264d7b(0xc7)](){const _0x37b340=_0x264d7b;this[_0x37b340(0xbe)][_0x37b340(0xc7)]();}[_0x264d7b(0x84)](){const _0x5477bc=_0x264d7b;return this[_0x5477bc(0x77)][_0x5477bc(0x84)]();}[_0x264d7b(0xb5)](){const _0x4c2cdb=_0x264d7b;return this[_0x4c2cdb(0x77)][_0x4c2cdb(0xb5)]();}[_0x264d7b(0x8d)](){const _0x2d6816=_0x264d7b;return this[_0x2d6816(0x77)][_0x2d6816(0x8d)]();}async[_0x264d7b(0xbf)](_0x594907){const _0x3845a3=_0x264d7b;_0x594907?!0x1===await this[_0x3845a3(0xe2)][_0x3845a3(0x73)](_0x594907)&&(_0x1a6f60(_0x3845a3(0x76),{'conversation':this,'model':_0x594907}),_0x594907=(await this[_0x3845a3(0xe2)][_0x3845a3(0xe1)]())[0x0]):(_0x1a6f60(_0x3845a3(0x87),{'conversation':this}),_0x594907=(await this[_0x3845a3(0xe2)][_0x3845a3(0xe1)]())[0x0]),_0x594907['id']!==this[_0x3845a3(0xd0)]?.['id']&&(this[_0x3845a3(0xd0)]=_0x594907,this[_0x3845a3(0xbe)][_0x3845a3(0x75)](),this[_0x3845a3(0xad)](_0x3845a3(0xcc),{'selectedModel':_0x594907}));}}
|
|
23
|
+
const _0x4ba517=_0x4e60;(function(_0x479c60,_0x3a25d6){const _0x591e79=_0x4e60,_0x175f85=_0x479c60();while(!![]){try{const _0x978598=-parseInt(_0x591e79(0x183))/0x1+parseInt(_0x591e79(0x147))/0x2+-parseInt(_0x591e79(0x182))/0x3*(-parseInt(_0x591e79(0x185))/0x4)+-parseInt(_0x591e79(0x132))/0x5*(-parseInt(_0x591e79(0x16d))/0x6)+-parseInt(_0x591e79(0x133))/0x7*(-parseInt(_0x591e79(0x12e))/0x8)+parseInt(_0x591e79(0x18a))/0x9+-parseInt(_0x591e79(0x149))/0xa;if(_0x978598===_0x3a25d6)break;else _0x175f85['push'](_0x175f85['shift']());}catch(_0x444d11){_0x175f85['push'](_0x175f85['shift']());}}}(_0x5b75,0xdac2f));import{CKEditorError as _0x2db455,EmitterMixin as _0x51919b,logWarning as _0xef999b}from'ckeditor5/src/utils.js';function _0x4e60(_0x33fe07,_0x1c6fd1){const _0x5b75d0=_0x5b75();return _0x4e60=function(_0x4e60d0,_0x532287){_0x4e60d0=_0x4e60d0-0x12a;let _0x319690=_0x5b75d0[_0x4e60d0];return _0x319690;},_0x4e60(_0x33fe07,_0x1c6fd1);}import{AI_MODEL_EVENT_NAMES as _0x4ad885}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4c8803,AI_CONTEXT_MODEL_EVENT_NAMES as _0x23cbb0}from'./aichatcontext.js';function _0x5b75(){const _0x5a7114=['interactions','toggleWebSearch','type','setWebSearch','addUrlToContext','updateCurrentDocumentInContext','createInteraction','chatCapabilities','isStarted','destroy','text','getAvailableModels','lastInteraction','chatContext','mcp-tool-result','3HeitSG','1087980FVnCVW','toolName','5801996JiPJUR','group','isAvailable','stop','reset','15126561gGhvEk','prompt','_extractContextItems','removeFromContext','load','loadSourceResources','connector','sources','delegate','ai-chat-conversation-set-model-not-available','options','conversationInitialized','updateCurrentDocument','currentInteraction','addSelectionToContext','setConversationTitle','title','getCurrentDocumentContext','handleUserInteraction','isFromHistory','getModel','user','getDocumentContext','fetchConversation','attributes','model','toLowerCase','chatModels','addCurrentDocumentToContext','getConversation','ai-chat-handle-user-interaction-start-failed','error','getEditor','capabilities','8qLlTsg','contextItems','isSelectionInContext','stack','6651030QDMMYP','6787424TwdKos','conversationId','ai-chat-conversation-init-from-id-failed','role','content','isCurrentDocumentInConversation','hasOwn','indexOf','ai-chat-conversation-start-no-model-selected','isCurrentDocumentInContext','getCapabilitiesConfig','start','getMessages','length','setModel','ai-chat-conversation-already-started','getInteraction','ai-chat-handle-user-conversation-not-initialized','setReasoning','populateFromMessage','3400600ryrSbE','push','51473390EGDURR','addResourceToContext','fire','addToConversationContext','modification','createReply','assistant','appendContent','removeSelectionFromContext','code','fetchConversationMessages','getPendingContextItems','startConversation','splice','message','addToolItemToContext','interactionCreated','selectedModelId','_processMessagesToInteractions','modelSelected','webSearch','toggleReasoning','ai-chat-conversation-set-model-null','parse','find','init','ai-chat-handle-user-interaction-already-in-progress','url','currentReply','_handleToolResultData','ai-chat-conversation-init-failed','getAll','addFilesToContext','set','get','removeInteraction','6DZeBYg','sessionId','ai-chat-conversation-start-failed','conversationStarted','selectedModel','reasoning'];_0x5b75=function(){return _0x5a7114;};return _0x5b75();}import{AICapabilities as _0x36a27e,CAPABILITIES_MODEL_EVENT_NAMES as _0x874463}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x34771a}from'./aichatinteraction.js';import{errorsMap as _0x1edb8f}from'../../errorsmap.js';export class AIChatConversation extends _0x51919b(){['id'];[_0x4ba517(0x17b)]=!0x1;[_0x4ba517(0x19d)];[_0x4ba517(0x173)]=[];[_0x4ba517(0x197)];[_0x4ba517(0x171)];[_0x4ba517(0x190)];[_0x4ba517(0x194)];constructor(_0x156850){const _0x4748be=_0x4ba517;super(),this[_0x4748be(0x194)]=_0x156850,this[_0x4748be(0x190)]=_0x156850[_0x4748be(0x190)],this[_0x4748be(0x1a5)]=_0x156850[_0x4748be(0x1a5)],this['id']=_0x156850[_0x4748be(0x134)],this[_0x4748be(0x19d)]=_0x156850[_0x4748be(0x19d)];}async[_0x4ba517(0x162)](_0x48797a){const _0x3de4b8=_0x4ba517;try{this[_0x3de4b8(0x180)]=new _0x4c8803({'connector':this[_0x3de4b8(0x190)],'config':_0x48797a,'ownerId':this['id']}),this[_0x3de4b8(0x180)][_0x3de4b8(0x192)](..._0x23cbb0)['to'](this),this[_0x3de4b8(0x180)][_0x3de4b8(0x162)](),this[_0x3de4b8(0x17a)]=new _0x36a27e(),this[_0x3de4b8(0x17a)][_0x3de4b8(0x192)](..._0x874463)['to'](this),this[_0x3de4b8(0x17a)][_0x3de4b8(0x162)]();const _0x118405=await this[_0x3de4b8(0x1a5)][_0x3de4b8(0x17e)]();this[_0x3de4b8(0x14b)](_0x3de4b8(0x195),{'availableModels':_0x118405});const _0x387225=await this[_0x3de4b8(0x1a5)][_0x3de4b8(0x19e)](this[_0x3de4b8(0x194)][_0x3de4b8(0x15a)]);_0x387225&&await this[_0x3de4b8(0x141)](_0x387225);}catch(_0x53df19){const _0x2fbb34=new _0x2db455(_0x3de4b8(0x167),null,{'message':_0x53df19[_0x3de4b8(0x157)]||_0x53df19});_0x2fbb34[_0x3de4b8(0x131)]=_0x53df19[_0x3de4b8(0x131)],this[_0x3de4b8(0x14b)](_0x3de4b8(0x12b),{'error':_0x2fbb34});}}async[_0x4ba517(0x13e)](){const _0x3eac2d=_0x4ba517;if(this[_0x3eac2d(0x17b)])throw new _0x2db455(_0x3eac2d(0x142),null,{'conversation':this});if(!this[_0x3eac2d(0x171)])throw new _0x2db455(_0x3eac2d(0x13b),null,{'conversation':this});try{const {id:_0x36b901}=await this[_0x3eac2d(0x190)][_0x3eac2d(0x155)](this['id'],this[_0x3eac2d(0x194)][_0x3eac2d(0x186)])[_0x3eac2d(0x1a7)]();this['id']=_0x36b901,this[_0x3eac2d(0x17b)]=!0x0,this[_0x3eac2d(0x14b)](_0x3eac2d(0x170),{'conversationId':this['id'],'selectedModel':this[_0x3eac2d(0x171)]});}catch(_0x2a8a78){const _0x41c920=new _0x2db455(_0x3eac2d(0x16f),null,{'message':_0x2a8a78[_0x3eac2d(0x157)],'conversationId':this['id']});throw _0x41c920[_0x3eac2d(0x131)]=_0x2a8a78[_0x3eac2d(0x131)],this[_0x3eac2d(0x14b)](_0x3eac2d(0x12b),{'error':_0x41c920}),_0x41c920;}}async[_0x4ba517(0x18e)](_0x4cec08,_0x2a4792){const _0x3841c3=_0x4ba517;try{const _0x988b0e=await this[_0x3841c3(0x190)][_0x3841c3(0x1a1)](_0x4cec08)[_0x3841c3(0x1a7)](),_0x459956=await this[_0x3841c3(0x190)][_0x3841c3(0x153)](_0x4cec08)[_0x3841c3(0x13f)](),_0x27ff33=_0x459956[0x0][_0x3841c3(0x1a3)];this[_0x3841c3(0x17b)]=!0x0,this['id']=_0x988b0e['id'],_0x3841c3(0x19a)in _0x988b0e?this[_0x3841c3(0x14b)](_0x3841c3(0x199),_0x988b0e[_0x3841c3(0x19a)],!0x0):this[_0x3841c3(0x14b)](_0x3841c3(0x199),'',!0x0);const _0x588828=(await this[_0x3841c3(0x1a5)][_0x3841c3(0x168)]())[_0x3841c3(0x161)](_0x79de7e=>_0x79de7e['id'][_0x3841c3(0x1a4)]()===_0x27ff33[_0x3841c3(0x1a4)]());return this[_0x3841c3(0x171)]=_0x588828,this[_0x3841c3(0x14b)](_0x3841c3(0x15c),{'selectedModel':_0x588828,'isDisabled':!0x0}),await this[_0x3841c3(0x15b)](_0x459956,_0x2a4792,_0x27ff33),this[_0x3841c3(0x197)]=void 0x0,this;}catch(_0x4475d9){const _0x2d6735=new _0x2db455(_0x3841c3(0x135),null,{'message':_0x4475d9[_0x3841c3(0x157)],'conversationId':_0x4cec08});throw _0x2d6735[_0x3841c3(0x131)]=_0x4475d9[_0x3841c3(0x131)],this[_0x3841c3(0x14b)](_0x3841c3(0x12b),{'error':_0x2d6735}),_0x2d6735;}}async[_0x4ba517(0x15b)](_0x5e431a,_0x4ea5e6,_0x1f8488){const _0x1614ad=_0x4ba517;let _0x212655;for(const _0x600c55 of _0x5e431a)if(_0x1614ad(0x19f)===_0x600c55[_0x1614ad(0x136)]){const _0x488af5=await this[_0x1614ad(0x18c)](_0x600c55),_0x51a700={'isReasoningEnabled':Object[_0x1614ad(0x139)](_0x600c55[_0x1614ad(0x12d)],_0x1614ad(0x172)),'isWebSearchEnabled':Object[_0x1614ad(0x139)](_0x600c55[_0x1614ad(0x12d)],_0x1614ad(0x15d))};_0x212655=this[_0x1614ad(0x179)]({'userMessage':_0x600c55[_0x1614ad(0x18b)],'contextItems':_0x488af5,'capabilities':_0x51a700,'modelId':_0x1f8488,'attributes':_0x600c55[_0x1614ad(0x1a2)]}),this[_0x1614ad(0x197)]=_0x212655,this[_0x1614ad(0x180)][_0x1614ad(0x14c)](this[_0x1614ad(0x197)][_0x1614ad(0x12f)]);}else{if(_0x1614ad(0x14f)===_0x600c55[_0x1614ad(0x136)]&&_0x212655){const _0x3f6086=[];for(const _0x24030e of _0x600c55[_0x1614ad(0x137)])switch(_0x24030e[_0x1614ad(0x175)]){case _0x1614ad(0x17d):case _0x1614ad(0x14d):{const _0x57c069=_0x212655[_0x1614ad(0x1a0)]()?.[_0x1614ad(0x16e)]!==_0x4ea5e6;_0x212655[_0x1614ad(0x165)]=_0x212655[_0x1614ad(0x14e)]({'type':_0x24030e[_0x1614ad(0x175)],'isDone':!0x0,'interactionId':_0x212655['id'],'areActionsDisabled':_0x57c069}),_0x212655[_0x1614ad(0x165)][_0x1614ad(0x150)](_0x24030e[_0x1614ad(0x137)]),_0x3f6086[_0x1614ad(0x140)]>0x0&&(_0x212655[_0x1614ad(0x165)][_0x1614ad(0x191)]=_0x3f6086[_0x1614ad(0x156)](0x0));break;}case _0x1614ad(0x164):_0x3f6086[_0x1614ad(0x148)](_0x24030e);break;case _0x1614ad(0x181):{const {data:_0x32625b,attributes:_0x3499bc}=JSON[_0x1614ad(0x160)](_0x24030e[_0x1614ad(0x137)]);_0x212655[_0x1614ad(0x166)]({'toolName':_0x24030e[_0x1614ad(0x184)],'data':_0x32625b,'attributes':_0x3499bc});break;}}}}}async[_0x4ba517(0x18c)](_0x21b7b6){const _0x1e0820=_0x4ba517,_0x4a2611=new Map();if(!_0x21b7b6[_0x1e0820(0x137)])return _0x4a2611;for(const _0x4887b8 of _0x21b7b6[_0x1e0820(0x137)]){const _0x10b932=await this[_0x1e0820(0x180)][_0x1e0820(0x146)](_0x4887b8);_0x10b932&&_0x4a2611[_0x1e0820(0x16a)](_0x10b932['id'],_0x10b932);}return _0x4a2611;}async[_0x4ba517(0x19c)]({userMessage:_0x48b320,attributes:_0x4ec5b1}){const _0x5ff06=_0x4ba517;if(!this[_0x5ff06(0x17b)])throw new _0x2db455(_0x5ff06(0x144),null,{'conversation':this});if(this[_0x5ff06(0x197)])throw new _0x2db455(_0x5ff06(0x163),null,{'conversation':this});try{const _0x172529=this[_0x5ff06(0x180)][_0x5ff06(0x154)](),_0x8b0292=this[_0x5ff06(0x17a)][_0x5ff06(0x13d)](),_0x4d81d2=this[_0x5ff06(0x171)]['id'];this[_0x5ff06(0x197)]=this[_0x5ff06(0x179)]({'userMessage':_0x48b320,'contextItems':_0x172529,'capabilities':_0x8b0292,'modelId':_0x4d81d2,'attributes':_0x4ec5b1}),await this[_0x5ff06(0x197)][_0x5ff06(0x13e)](),this[_0x5ff06(0x180)][_0x5ff06(0x14c)](this[_0x5ff06(0x197)][_0x5ff06(0x12f)]);}catch(_0x6c4c32){if(_0x6c4c32 instanceof _0x2db455)this[_0x5ff06(0x14b)](_0x5ff06(0x12b),{'interactionId':this[_0x5ff06(0x197)]?this[_0x5ff06(0x197)]['id']:void 0x0,'error':_0x6c4c32});else{const _0x4f1606=_0x1edb8f[_0x5ff06(0x16b)](_0x6c4c32[_0x5ff06(0x152)])||_0x5ff06(0x12a);this[_0x5ff06(0x14b)](_0x5ff06(0x12b),{'interactionId':this[_0x5ff06(0x197)]?this[_0x5ff06(0x197)]['id']:void 0x0,'error':new _0x2db455(_0x4f1606,null,{'error':_0x6c4c32})});}}finally{this[_0x5ff06(0x197)]?.[_0x5ff06(0x188)](),this[_0x5ff06(0x197)]=void 0x0;}}[_0x4ba517(0x179)]({userMessage:_0x354845,contextItems:_0x24fa47,capabilities:_0x33d141,modelId:_0x8f96bf,attributes:_0x164f2f}){const _0x16a4c0=_0x4ba517,_0x40742c=new _0x34771a({'userMessage':_0x354845,'contextItems':_0x24fa47,'capabilities':_0x33d141,'conversationId':this['id'],'connector':this[_0x16a4c0(0x190)],'editor':this[_0x16a4c0(0x194)][_0x16a4c0(0x12c)]&&this[_0x16a4c0(0x194)][_0x16a4c0(0x12c)](),'model':_0x8f96bf,'attributes':_0x164f2f});return _0x40742c[_0x16a4c0(0x192)](..._0x4ad885)['to'](this),this[_0x16a4c0(0x173)][_0x16a4c0(0x148)](_0x40742c),this[_0x16a4c0(0x14b)](_0x16a4c0(0x159),_0x40742c),_0x40742c;}[_0x4ba517(0x143)](_0x369eb6){const _0x2b53af=_0x4ba517;return this[_0x2b53af(0x173)][_0x2b53af(0x161)](_0xc24c98=>_0xc24c98['id']===_0x369eb6);}[_0x4ba517(0x16c)](_0x1ed649){const _0x4210ca=_0x4ba517,_0x2b82ab=this[_0x4210ca(0x143)](_0x1ed649);_0x2b82ab&&(_0x2b82ab[_0x4210ca(0x17c)](),this[_0x4210ca(0x173)][_0x4210ca(0x156)](this[_0x4210ca(0x173)][_0x4210ca(0x13a)](_0x2b82ab),0x1));}get[_0x4ba517(0x17f)](){const _0x328a49=_0x4ba517;return this[_0x328a49(0x173)][this[_0x328a49(0x173)][_0x328a49(0x140)]-0x1];}[_0x4ba517(0x1a6)](_0x432e7a){const _0x5dd16d=_0x4ba517;this[_0x5dd16d(0x180)][_0x5dd16d(0x1a6)](_0x432e7a);}async[_0x4ba517(0x178)]({content:_0x13d0a6,version:_0x1d8a52,sessionId:_0x1a6372,selections:_0x190afb}){const _0x223b61=_0x4ba517;await this[_0x223b61(0x180)][_0x223b61(0x196)](_0x13d0a6,_0x1d8a52,_0x1a6372,_0x190afb);}[_0x4ba517(0x19b)](){const _0x47e2cf=_0x4ba517;return this[_0x47e2cf(0x197)]?.[_0x47e2cf(0x1a0)]()?.[_0x47e2cf(0x137)]||'';}[_0x4ba517(0x198)](_0x4ab6e5){const _0x1d962b=_0x4ba517;this[_0x1d962b(0x180)][_0x1d962b(0x198)](_0x4ab6e5);}[_0x4ba517(0x151)](){const _0xb61087=_0x4ba517;this[_0xb61087(0x180)][_0xb61087(0x151)]();}[_0x4ba517(0x169)](_0x13a099){const _0x448bca=_0x4ba517;this[_0x448bca(0x180)][_0x448bca(0x169)](_0x13a099);}[_0x4ba517(0x177)](_0x5aacc8){const _0x2c58d8=_0x4ba517;this[_0x2c58d8(0x180)][_0x2c58d8(0x177)](_0x5aacc8);}[_0x4ba517(0x158)](_0x244e0a){const _0x58a990=_0x4ba517;this[_0x58a990(0x180)][_0x58a990(0x158)](_0x244e0a);}[_0x4ba517(0x14a)](_0x447cd2,_0x301535){const _0x3b64b5=_0x4ba517;this[_0x3b64b5(0x180)][_0x3b64b5(0x14a)](_0x447cd2,_0x301535);}[_0x4ba517(0x18f)](_0x50e35c,_0x42688b,_0x110035){const _0x273308=_0x4ba517;return this[_0x273308(0x180)][_0x273308(0x18f)](_0x50e35c,_0x42688b,_0x110035);}[_0x4ba517(0x18d)](_0x33d8cf){const _0x4891b7=_0x4ba517;this[_0x4891b7(0x180)][_0x4891b7(0x18d)](_0x33d8cf);}[_0x4ba517(0x176)](_0x492e98){const _0x64271a=_0x4ba517;this[_0x64271a(0x17a)][_0x64271a(0x176)](_0x492e98);}[_0x4ba517(0x174)](){const _0xf5236f=_0x4ba517;this[_0xf5236f(0x17a)][_0xf5236f(0x174)]();}[_0x4ba517(0x145)](_0x11056a){const _0x1a4a95=_0x4ba517;this[_0x1a4a95(0x17a)][_0x1a4a95(0x145)](_0x11056a);}[_0x4ba517(0x15e)](){const _0x2a0c3e=_0x4ba517;this[_0x2a0c3e(0x17a)][_0x2a0c3e(0x15e)]();}[_0x4ba517(0x13c)](){const _0xbb2a25=_0x4ba517;return this[_0xbb2a25(0x180)][_0xbb2a25(0x13c)]();}[_0x4ba517(0x138)](){const _0x50ee6e=_0x4ba517;return this[_0x50ee6e(0x180)][_0x50ee6e(0x138)]();}[_0x4ba517(0x130)](){const _0x2dc876=_0x4ba517;return this[_0x2dc876(0x180)][_0x2dc876(0x130)]();}async[_0x4ba517(0x141)](_0x5b6f3e){const _0x24deff=_0x4ba517;_0x5b6f3e?!0x1===await this[_0x24deff(0x1a5)][_0x24deff(0x187)](_0x5b6f3e)&&(_0xef999b(_0x24deff(0x193),{'conversation':this,'model':_0x5b6f3e}),_0x5b6f3e=(await this[_0x24deff(0x1a5)][_0x24deff(0x17e)]())[0x0]):(_0xef999b(_0x24deff(0x15f),{'conversation':this}),_0x5b6f3e=(await this[_0x24deff(0x1a5)][_0x24deff(0x17e)]())[0x0]),_0x5b6f3e['id']!==this[_0x24deff(0x171)]?.['id']&&(this[_0x24deff(0x171)]=_0x5b6f3e,this[_0x24deff(0x17a)][_0x24deff(0x189)](),this[_0x24deff(0x14b)](_0x24deff(0x15c),{'selectedModel':_0x5b6f3e}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x366959=_0x22bc;(function(_0xf7714f,_0x7a4a14){var _0x186e91=_0x22bc,_0x53e883=_0xf7714f();while(!![]){try{var _0x5dfd8e=parseInt(_0x186e91(0x1b7))/0x1*(-parseInt(_0x186e91(0x1b5))/0x2)+parseInt(_0x186e91(0x1b1))/0x3*(-parseInt(_0x186e91(0x1a7))/0x4)+parseInt(_0x186e91(0x1b4))/0x5+parseInt(_0x186e91(0x1b2))/0x6*(parseInt(_0x186e91(0x1a6))/0x7)+parseInt(_0x186e91(0x1ae))/0x8+parseInt(_0x186e91(0x1a2))/0x9+parseInt(_0x186e91(0x1ab))/0xa;if(_0x5dfd8e===_0x7a4a14)break;else _0x53e883['push'](_0x53e883['shift']());}catch(_0x21c4b9){_0x53e883['push'](_0x53e883['shift']());}}}(_0x3c6e,0x85266));import{AICapabilities as _0x161f98}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x501969}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0xd5a354}from'./aichatcontext.js';function _0x22bc(_0x25a7fd,_0x22cdb4){var _0x3c6e8a=_0x3c6e();return _0x22bc=function(_0x22bcfa,_0x3e475e){_0x22bcfa=_0x22bcfa-0x1a0;var _0x5f2ac9=_0x3c6e8a[_0x22bcfa];return _0x5f2ac9;},_0x22bc(_0x25a7fd,_0x22cdb4);}function _0x3c6e(){var _0x3bfdfe=['16816xrILFL','mapContextItemsToRequestData','queryAssistant','379701ifjghu','current-document','attributes','model','14nINccr','280708yJbJOh','sendRequest','userMessage','contextItems','5091170covyXI','getDocumentContext','conversationId','4437672vzITPF','get','connector','27AOJNlb','1988682ObhhMQ','capabilities','2169210gCLkQO','122EwNDsi','getCapabilitiesRequestData'];_0x3c6e=function(){return _0x3bfdfe;};return _0x3c6e();}export class AIChatInteraction extends _0x501969{[_0x366959(0x1a9)];[_0x366959(0x1ad)];[_0x366959(0x1aa)]=new Map();[_0x366959(0x1a5)];[_0x366959(0x1a4)];constructor(_0x38e01b){var _0x14e472=_0x366959;super(_0x38e01b),this[_0x14e472(0x1ad)]=_0x38e01b[_0x14e472(0x1ad)],this[_0x14e472(0x1aa)]=_0x38e01b[_0x14e472(0x1aa)],this[_0x14e472(0x1b3)]=_0x38e01b[_0x14e472(0x1b3)],this[_0x14e472(0x1a9)]=_0x38e01b[_0x14e472(0x1a9)],this[_0x14e472(0x1a5)]=_0x38e01b[_0x14e472(0x1a5)],this[_0x14e472(0x1a4)]=_0x38e01b[_0x14e472(0x1a4)];}async[_0x366959(0x1a8)](){var _0x3d8062=_0x366959;return this[_0x3d8062(0x1b0)][_0x3d8062(0x1a1)]({'message':this[_0x3d8062(0x1a9)],'conversationId':this[_0x3d8062(0x1ad)],'parts':_0xd5a354[_0x3d8062(0x1a0)](this[_0x3d8062(0x1aa)]),'capabilities':_0x161f98[_0x3d8062(0x1b6)](this[_0x3d8062(0x1b3)]),'model':this[_0x3d8062(0x1a5)],'attributes':this[_0x3d8062(0x1a4)]});}[_0x366959(0x1ac)](){var _0x133445=_0x366959;return this[_0x133445(0x1aa)][_0x133445(0x1af)](_0x133445(0x1a3));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48195d=_0x5963;(function(_0x228b7a,_0x51bf06){const _0x3fbc20=_0x5963,_0x17d9d8=_0x228b7a();while(!![]){try{const _0x5db26c=parseInt(_0x3fbc20(0x201))/0x1*(parseInt(_0x3fbc20(0x1e5))/0x2)+-parseInt(_0x3fbc20(0x204))/0x3*(-parseInt(_0x3fbc20(0x1f5))/0x4)+parseInt(_0x3fbc20(0x1fc))/0x5*(parseInt(_0x3fbc20(0x20c))/0x6)+-parseInt(_0x3fbc20(0x1e8))/0x7*(-parseInt(_0x3fbc20(0x1d6))/0x8)+parseInt(_0x3fbc20(0x213))/0x9*(-parseInt(_0x3fbc20(0x1f8))/0xa)+parseInt(_0x3fbc20(0x1e6))/0xb+parseInt(_0x3fbc20(0x1f2))/0xc*(-parseInt(_0x3fbc20(0x1d9))/0xd);if(_0x5db26c===_0x51bf06)break;else _0x17d9d8['push'](_0x17d9d8['shift']());}catch(_0x1caccb){_0x17d9d8['push'](_0x17d9d8['shift']());}}}(_0x1c47,0x3c8d1));import{FocusTracker as _0x23e96d,KeystrokeHandler as _0x48d3e2}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x3fda71}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';function _0x5963(_0x209153,_0x57026d){const _0x1c473f=_0x1c47();return _0x5963=function(_0x5963c6,_0x2ae20e){_0x5963c6=_0x5963c6-0x1c8;let _0x3f29ab=_0x1c473f[_0x5963c6];return _0x3f29ab;},_0x5963(_0x209153,_0x57026d);}import{AISuggestionContentPartToolbarView as _0x170959}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';function _0x1c47(){const _0x2cb2c4=['9qOgTLc','updateContent','showPrevious','addMany','change:isTrackChangesOn','showBlockingError','isVisible','setState','focusLast','render','applySuggestion','execute','update','_miniToolbarView','children','AI_BALLOON_NEXT_LABEL','element','_createNextButtonView','set','toggleSuggestionDisplayMode','showDiff','shift\x20+\x20tab','full','AI_BALLOON_PREVIOUS_LABEL','fire','tab','65968BBIuSH','nextButtonView','includes','35828leeqfn','_partToolbarView','togglePartToolbarEnabled','focusFirst','_streamableContentView','listenTo','has','_isErrorVisible','toggleRotatorButtonsVisibility','showNext','_stateView','setButtonsVisibility','298aDppcM','1547150YlYsjC','_state','259ZxxliQ','bind','focus','_focusTracker','ck-ai-chat-balloon-main','rejectSuggestion','focusCycler','hideError','ck-ai-chat-balloon-main_state_','toggleShowChanges','5064KBAPVW','_focusables','isShowChangesOn','104ChSgYp','change:_state','_config','507810PbaEIl','bindTemplate','isEnabled','_createPreviousButtonView','87310DURBpz','destroy','ck-ai-chat-balloon__toolbar-container','_togglePartToolbarButtonsVisibility','keepErrors','2812SIFwJU','isTrackChangesOn','_errorView','16509vbwFLU','delegate','createCollection','_toolbarContainerView','pending','add','setTemplate','availableActions','156hQLHjI','insertSuggestion','_keystrokes','locale','div','previousButtonView','showError'];_0x1c47=function(){return _0x2cb2c4;};return _0x1c47();}import{AIMiniToolbarView as _0x58b90e}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x8fb3e7}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x2f791d,FocusCycler as _0x3645c8,View as _0xe27471}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x625821}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x1bd19c,IconChevronUp as _0x2b8847}from'ckeditor5/src/icons.js';import{getTranslation as _0xa41a8e}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x8fb3e7{[_0x48195d(0x1ca)];[_0x48195d(0x1d7)];[_0x48195d(0x211)];[_0x48195d(0x1ee)];[_0x48195d(0x1f3)];[_0x48195d(0x1eb)];[_0x48195d(0x20e)];[_0x48195d(0x1f7)];[_0x48195d(0x1dd)];[_0x48195d(0x207)];[_0x48195d(0x1da)];[_0x48195d(0x1e3)];[_0x48195d(0x1c9)];constructor(_0x2ae994,_0x337d4e){const _0x2328bf=_0x48195d;super(_0x2ae994);const _0x2e149b=this[_0x2328bf(0x1f9)];this[_0x2328bf(0x1ce)](_0x2328bf(0x1d0),!0x1),this[_0x2328bf(0x1ce)](_0x2328bf(0x1e7),_0x2328bf(0x208)),this[_0x2328bf(0x1eb)]=new _0x23e96d(),this[_0x2328bf(0x20e)]=new _0x48d3e2(),this[_0x2328bf(0x1f3)]=this[_0x2328bf(0x206)](),this[_0x2328bf(0x1ee)]=new _0x3645c8({'focusables':this[_0x2328bf(0x1f3)],'focusTracker':this[_0x2328bf(0x1eb)],'keystrokeHandler':this[_0x2328bf(0x20e)],'actions':{'focusPrevious':_0x2328bf(0x1d1),'focusNext':_0x2328bf(0x1d5)}}),this[_0x2328bf(0x1f7)]=_0x337d4e,this[_0x2328bf(0x1d7)]=this[_0x2328bf(0x1cd)](),this[_0x2328bf(0x211)]=this[_0x2328bf(0x1fb)](),this[_0x2328bf(0x1dd)]=new _0x3fda71(_0x2ae994),this[_0x2328bf(0x1da)]=new _0x170959(_0x2ae994,_0x337d4e[_0x2328bf(0x20b)]),this[_0x2328bf(0x1da)][_0x2328bf(0x205)](_0x2328bf(0x21d),_0x2328bf(0x20d),_0x2328bf(0x1ed))['to'](this),this[_0x2328bf(0x1ff)](_0x337d4e),this[_0x2328bf(0x1e3)]=new _0x625821(_0x2ae994),this[_0x2328bf(0x1e3)][_0x2328bf(0x219)]=!0x1,this[_0x2328bf(0x1c9)]=new _0x58b90e(_0x2ae994,{'showChanges':_0x2328bf(0x1d2)}),this[_0x2328bf(0x1c9)][_0x2328bf(0x1e9)](_0x2328bf(0x1f4))['to'](this,_0x2328bf(0x1d0)),this[_0x2328bf(0x1c9)]['on'](_0x2328bf(0x1f1),()=>{const _0x844c27=_0x2328bf;this[_0x844c27(0x1d4)](_0x844c27(0x1cf));}),this[_0x2328bf(0x207)]=new AIChatBalloonToolbarContainerView(_0x2ae994,[this[_0x2328bf(0x1da)],this[_0x2328bf(0x1e3)],this[_0x2328bf(0x1c9)]]),this[_0x2328bf(0x1ca)]=this[_0x2328bf(0x206)]([this[_0x2328bf(0x1dd)],this[_0x2328bf(0x207)]]),this['on'](_0x2328bf(0x1f6),(_0x5cebd2,_0x385ced,_0x53c1b9,_0x32ff82)=>{const _0x54b62a=_0x2328bf;let _0x386f06,_0x484f9f;_0x54b62a(0x208)===_0x32ff82?(_0x386f06=this[_0x54b62a(0x1da)],_0x484f9f=this[_0x54b62a(0x1e3)]):(_0x386f06=this[_0x54b62a(0x1e3)],_0x484f9f=this[_0x54b62a(0x1da)]),this[_0x54b62a(0x1e3)][_0x54b62a(0x21a)](_0x53c1b9),_0x386f06[_0x54b62a(0x219)]=!0x1,_0x484f9f[_0x54b62a(0x219)]=!0x0;}),this[_0x2328bf(0x20a)]({'tag':_0x2328bf(0x210),'attributes':{'class':['ck',_0x2328bf(0x1ec),_0x2e149b['to'](_0x2328bf(0x1e7),_0x208d18=>_0x2328bf(0x1f0)+_0x208d18)]},'children':this[_0x2328bf(0x1ca)]}),this['on'](_0x2328bf(0x217),()=>{const _0x396bfa=_0x2328bf;this[_0x396bfa(0x1ff)](_0x337d4e);});}[_0x48195d(0x21c)](){const _0x5151d8=_0x48195d;super[_0x5151d8(0x21c)](),this[_0x5151d8(0x1d7)][_0x5151d8(0x21c)](),this[_0x5151d8(0x211)][_0x5151d8(0x21c)](),this[_0x5151d8(0x1eb)][_0x5151d8(0x209)](this[_0x5151d8(0x1cc)]),this[_0x5151d8(0x1eb)][_0x5151d8(0x209)](this[_0x5151d8(0x1d7)]),this[_0x5151d8(0x1eb)][_0x5151d8(0x209)](this[_0x5151d8(0x211)]),this[_0x5151d8(0x1eb)][_0x5151d8(0x209)](this[_0x5151d8(0x1c9)]),this[_0x5151d8(0x1eb)][_0x5151d8(0x209)](this[_0x5151d8(0x1da)]),this[_0x5151d8(0x20e)][_0x5151d8(0x1de)](this[_0x5151d8(0x1cc)]),this[_0x5151d8(0x20e)][_0x5151d8(0x1de)](this[_0x5151d8(0x1d7)][_0x5151d8(0x1cc)]),this[_0x5151d8(0x20e)][_0x5151d8(0x1de)](this[_0x5151d8(0x211)][_0x5151d8(0x1cc)]),this[_0x5151d8(0x1f3)][_0x5151d8(0x216)]([this[_0x5151d8(0x1d7)],this[_0x5151d8(0x211)],this[_0x5151d8(0x1da)],this[_0x5151d8(0x1c9)]]);}[_0x48195d(0x1fd)](){const _0x2fd258=_0x48195d;super[_0x2fd258(0x1fd)](),this[_0x2fd258(0x211)][_0x2fd258(0x1fd)](),this[_0x2fd258(0x1d7)][_0x2fd258(0x1fd)]();}[_0x48195d(0x1ea)](){const _0xa65db5=_0x48195d;this[_0xa65db5(0x1ee)][_0xa65db5(0x1dc)]();}[_0x48195d(0x21b)](){const _0x545c72=_0x48195d;this[_0x545c72(0x1ee)][_0x545c72(0x21b)]();}async[_0x48195d(0x214)](_0x33753e){const _0x5d3e19=_0x48195d;_0x33753e?.[_0x5d3e19(0x200)]||this[_0x5d3e19(0x1ef)](),await this[_0x5d3e19(0x1dd)][_0x5d3e19(0x1c8)](_0x33753e);}[_0x48195d(0x21a)](_0x449a8a){const _0x369651=_0x48195d;this[_0x369651(0x1e7)]=_0x449a8a;}[_0x48195d(0x212)](_0x3fc0ac){const _0x5796f7=_0x48195d;super[_0x5796f7(0x212)](_0x3fc0ac),this[_0x5796f7(0x1ca)][_0x5796f7(0x1df)](this[_0x5796f7(0x203)])||this[_0x5796f7(0x1ca)][_0x5796f7(0x209)](this[_0x5796f7(0x203)],0x0);}[_0x48195d(0x1ef)](){const _0x22ccad=_0x48195d;this[_0x22ccad(0x1e0)]&&(super[_0x22ccad(0x1ef)](),this[_0x22ccad(0x1db)](!0x0));}[_0x48195d(0x218)](_0xb34946){const _0x27d945=_0x48195d;super[_0x27d945(0x218)](_0xb34946),this[_0x27d945(0x1db)](!0x1);}[_0x48195d(0x1e1)](_0x431d7a){const _0x5618f0=_0x48195d;this[_0x5618f0(0x1d7)][_0x5618f0(0x219)]=this[_0x5618f0(0x211)][_0x5618f0(0x219)]=_0x431d7a;}[_0x48195d(0x1db)](_0x2d177a){const _0x311a62=_0x48195d;this[_0x311a62(0x1da)][_0x311a62(0x1fa)]=_0x2d177a;}[_0x48195d(0x1ff)]({showApplyButton:_0x5754d9,showSuggestButton:_0x75c949}){const _0x451619=_0x48195d;_0x5754d9=_0x5754d9&&!this[_0x451619(0x202)]&&this[_0x451619(0x1f7)][_0x451619(0x20b)][_0x451619(0x1d8)](_0x451619(0x21d)),_0x75c949=_0x75c949&&this[_0x451619(0x1f7)][_0x451619(0x20b)][_0x451619(0x1d8)](_0x451619(0x20d)),this[_0x451619(0x1da)][_0x451619(0x1e4)]({'showApplyButton':_0x5754d9,'showSuggestButton':_0x75c949});}[_0x48195d(0x1cd)](){const _0x21d8ce=_0x48195d,_0x2aaf4e=new _0x2f791d(this[_0x21d8ce(0x20f)]);return _0x2aaf4e[_0x21d8ce(0x1ce)]({'icon':_0x1bd19c,'label':_0xa41a8e(this[_0x21d8ce(0x20f)],_0x21d8ce(0x1cb)),'isVisible':!0x0}),_0x2aaf4e['on'](_0x21d8ce(0x21e),()=>{const _0x53b995=_0x21d8ce;this[_0x53b995(0x1d4)](_0x53b995(0x1e2));}),_0x2aaf4e;}[_0x48195d(0x1fb)](){const _0x423ba2=_0x48195d,_0x5e5266=new _0x2f791d(this[_0x423ba2(0x20f)]);return _0x5e5266[_0x423ba2(0x1ce)]({'icon':_0x2b8847,'label':_0xa41a8e(this[_0x423ba2(0x20f)],_0x423ba2(0x1d3)),'isVisible':!0x0}),_0x5e5266['on'](_0x423ba2(0x21e),()=>{const _0x2b7fb9=_0x423ba2;this[_0x2b7fb9(0x1d4)](_0x2b7fb9(0x215));}),_0x5e5266;}}class AIChatBalloonToolbarContainerView extends _0xe27471{constructor(_0x461100,_0x4f1a23){const _0x234f10=_0x48195d;super(_0x461100),this[_0x234f10(0x20a)]({'tag':_0x234f10(0x210),'attributes':{'class':[_0x234f10(0x1fe)]},'children':_0x4f1a23});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x43b2b8=_0x3d93;(function(_0x4f4cec,_0x185350){const _0xaec1cf=_0x3d93,_0x1f6601=_0x4f4cec();while(!![]){try{const _0x273279=-parseInt(_0xaec1cf(0x214))/0x1*(parseInt(_0xaec1cf(0x1e8))/0x2)+parseInt(_0xaec1cf(0x1fe))/0x3*(-parseInt(_0xaec1cf(0x219))/0x4)+-parseInt(_0xaec1cf(0x1f7))/0x5*(parseInt(_0xaec1cf(0x215))/0x6)+-parseInt(_0xaec1cf(0x200))/0x7*(parseInt(_0xaec1cf(0x1e3))/0x8)+parseInt(_0xaec1cf(0x1e0))/0x9+parseInt(_0xaec1cf(0x1d9))/0xa*(parseInt(_0xaec1cf(0x1e6))/0xb)+parseInt(_0xaec1cf(0x207))/0xc*(parseInt(_0xaec1cf(0x1de))/0xd);if(_0x273279===_0x185350)break;else _0x1f6601['push'](_0x1f6601['shift']());}catch(_0x1016e5){_0x1f6601['push'](_0x1f6601['shift']());}}}(_0x2ace,0x8f6ad));import{ButtonView as _0x33bae4,clickOutsideHandler as _0x3e5a79,View as _0x37911d}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x545db2}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x55162a}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x56d966,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x5b93be}from'./controls/aichatcontextpanelview.js';function _0x2ace(){const _0x3618b1=['setConversationContext','21447xMRiEx','contextResourcesSearchInputVisibleFrom','7NenqUr','removeContextItem','setReasoning','sendUserMessage','setPlaceholderText','set','locale','502140NecUbf','bodyCollection','ck-ai-chat-controls-model-unavailable-message','enableModelSelector','clearConversationContextItems','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','_createContextPanelView','ck-hidden','delegate','setInputPlaceholder','disableModelSelector','execute','setIsUploadInProgress','139OBNiqo','6cQqBjj','_loaderView','setModel','ck-ai-chat-controls','484VEDOcf','div','_modelUnavailableMessageView','_promptCapabilitiesView','toggleWebSearch','updateResourceState','setWebSearch','focusPromptInput','value','low','element','_createPromptCapabilitiesView','closeSourceResourceBalloon','ck-ai-chat-controls-disabled','_createPromptInputView','_createLoaderView','fieldView','_promptInputView','setAddContextOptions','addContextItem','2289170xnWlXF','clearConversationContextUI','isLoading','focus','ck-ai-chat-controls__start-new-chat-button','208TJZnBb','queryView','9179811fEJpru','_shouldRestorePromptInputFocus','toggleReasoning','1171184wMIqzZ','clearCurrentContextItems','setTemplate','55oCActX','bindTemplate','11962vAlrCn','setPromptInputValue','isModelAvailable','startConversation','abortPromptStream','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','isDisabled','_handlePromptInputFocus','form','clearPendingContextUI','addContextButtonView','reset','change:isLoading','setModelList','_contextPanelView','2019305TZQXYg','resetMessageInput','setContextItemLoading','selectModel','_createModelUnavailableMessageView','populateSourceResourceBalloon'];_0x2ace=function(){return _0x3618b1;};return _0x2ace();}import{AIChatControlsLoaderView as _0x5d5ea5}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0xbfc70b}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';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';function _0x3d93(_0x17c448,_0x414cb5){const _0x2ace6f=_0x2ace();return _0x3d93=function(_0x3d93b8,_0x5a9d45){_0x3d93b8=_0x3d93b8-0x1c8;let _0x3360d2=_0x2ace6f[_0x3d93b8];return _0x3360d2;},_0x3d93(_0x17c448,_0x414cb5);}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 _0x37911d{[_0x43b2b8(0x1f6)];[_0x43b2b8(0x1d6)];[_0x43b2b8(0x1c8)];[_0x43b2b8(0x216)];[_0x43b2b8(0x21b)];[_0x43b2b8(0x1e1)];constructor(_0x11eb61,_0x34555d){const _0x847caf=_0x43b2b8;super(_0x11eb61),this[_0x847caf(0x1f6)]=this[_0x847caf(0x20d)](_0x11eb61,{'bodyCollection':_0x34555d[_0x847caf(0x208)],'searchInputVisibleFrom':_0x34555d[_0x847caf(0x1ff)]}),this[_0x847caf(0x1d6)]=this[_0x847caf(0x1d3)](_0x11eb61),this[_0x847caf(0x1c8)]=this[_0x847caf(0x1d0)](_0x11eb61),this[_0x847caf(0x216)]=this[_0x847caf(0x1d4)](_0x11eb61),this[_0x847caf(0x21b)]=this[_0x847caf(0x1fb)](_0x11eb61),this[_0x847caf(0x1e1)]=!0x1,this[_0x847caf(0x1d6)][_0x847caf(0x20f)](_0x847caf(0x203))['to'](this),this[_0x847caf(0x216)][_0x847caf(0x20f)](_0x847caf(0x1ec))['to'](this),this[_0x847caf(0x1c8)][_0x847caf(0x20f)](_0x847caf(0x1c9))['to'](this),this[_0x847caf(0x1c8)][_0x847caf(0x20f)](_0x847caf(0x1e2))['to'](this),this[_0x847caf(0x1c8)][_0x847caf(0x20f)](_0x847caf(0x1fa))['to'](this),this[_0x847caf(0x1f6)][_0x847caf(0x20f)](..._0x5b93be)['to'](this),this[_0x847caf(0x205)](_0x847caf(0x1ea),!0x0),this[_0x847caf(0x205)](_0x847caf(0x1ee),!0x1);const _0x13a87b=this[_0x847caf(0x1e7)];this[_0x847caf(0x1e5)]({'tag':_0x847caf(0x1f0),'attributes':{'class':['ck',_0x847caf(0x218),_0x13a87b['if'](_0x847caf(0x1ee),_0x847caf(0x1d2))]},'children':[{'tag':_0x847caf(0x21a),'attributes':{'class':[_0x13a87b['if'](_0x847caf(0x1db),_0x847caf(0x20e),_0x279acc=>_0x279acc||!this[_0x847caf(0x1ea)]),_0x13a87b['if'](_0x847caf(0x1ea),_0x847caf(0x20e),_0x1b26f9=>!_0x1b26f9||this[_0x847caf(0x1db)])]},'children':[this[_0x847caf(0x1f6)],this[_0x847caf(0x1d6)],this[_0x847caf(0x1c8)]]},{'tag':_0x847caf(0x21a),'attributes':{'class':[_0x13a87b['if'](_0x847caf(0x1db),_0x847caf(0x20e),_0x2ad775=>!_0x2ad775)]},'children':[this[_0x847caf(0x216)]]},{'tag':_0x847caf(0x21a),'attributes':{'class':[_0x13a87b['if'](_0x847caf(0x1ea),_0x847caf(0x20e),_0x13dca4=>_0x13dca4)]},'children':[this[_0x847caf(0x21b)]]}]}),_0x3e5a79({'emitter':this[_0x847caf(0x1d6)],'activator':()=>this[_0x847caf(0x1db)],'contextElements':()=>[this[_0x847caf(0x1cf)]],'callback':()=>{const _0x34db4c=_0x847caf;this[_0x34db4c(0x1e1)]=!0x1;}}),this['on'](_0x847caf(0x1f4),this[_0x847caf(0x1ef)],{'priority':_0x847caf(0x1ce)});}[_0x43b2b8(0x20d)](_0x89da55,_0x2af6a6){return new _0x56d966(_0x89da55,_0x2af6a6);}[_0x43b2b8(0x1d3)](_0x28239f){const _0x1e4b07=_0x43b2b8;return new _0x545db2(_0x28239f,this[_0x1e4b07(0x1f6)][_0x1e4b07(0x1f2)]);}[_0x43b2b8(0x1d0)](_0x1e8f39){return new _0x55162a(_0x1e8f39);}[_0x43b2b8(0x1d4)](_0x549f0c){return new _0x5d5ea5(_0x549f0c);}[_0x43b2b8(0x1fb)](_0xbc3caa){const _0x29df50=_0x43b2b8,_0x20d8cb=new AIChatModelUnavailableMessageView(_0xbc3caa);return _0x20d8cb[_0x29df50(0x20f)](_0x29df50(0x1eb))['to'](this),_0x20d8cb;}[_0x43b2b8(0x1ef)](_0x4af361,_0x42c1f5,_0x21f9ec){const _0x399425=_0x43b2b8;_0x21f9ec?this[_0x399425(0x1e1)]=!0x0:this[_0x399425(0x1e1)]&&this[_0x399425(0x1d6)][_0x399425(0x1dc)]();}[_0x43b2b8(0x1d8)](_0x306e03,_0x460cc2){const _0x361667=_0x43b2b8;this[_0x361667(0x1f6)][_0x361667(0x1d8)](_0x306e03,_0x460cc2);}[_0x43b2b8(0x201)](_0x269b13){const _0x3e579b=_0x43b2b8;this[_0x3e579b(0x1f6)][_0x3e579b(0x201)](_0x269b13);}[_0x43b2b8(0x1f9)](_0x54f724,_0x52bcf6){const _0x3e90ad=_0x43b2b8;this[_0x3e90ad(0x1f6)][_0x3e90ad(0x1f9)](_0x54f724,_0x52bcf6);}[_0x43b2b8(0x213)](_0x1503e9){const _0x2be2d9=_0x43b2b8;this[_0x2be2d9(0x1d6)][_0x2be2d9(0x213)](_0x1503e9);}[_0x43b2b8(0x1fd)](_0x3e1184){const _0x5606e5=_0x43b2b8;this[_0x5606e5(0x1f6)][_0x5606e5(0x1fd)](_0x3e1184);}[_0x43b2b8(0x1f1)](){const _0x23ad6f=_0x43b2b8;this[_0x23ad6f(0x1f6)][_0x23ad6f(0x1e4)]();}[_0x43b2b8(0x1da)](){const _0x77783c=_0x43b2b8;this[_0x77783c(0x1f6)][_0x77783c(0x20b)]();}[_0x43b2b8(0x1ca)](_0x478c67,_0x500a58,_0x8e486a){const _0x149cae=_0x43b2b8;this[_0x149cae(0x1f6)][_0x149cae(0x1ca)](_0x478c67,_0x500a58,_0x8e486a);}[_0x43b2b8(0x1cb)](_0x375b35){const _0x1fee02=_0x43b2b8;this[_0x1fee02(0x1c8)][_0x1fee02(0x1cb)](_0x375b35);}[_0x43b2b8(0x202)](_0x645e8a){const _0x250a62=_0x43b2b8;this[_0x250a62(0x1c8)][_0x250a62(0x202)](_0x645e8a);}[_0x43b2b8(0x1f8)](){const _0x20bf72=_0x43b2b8;this[_0x20bf72(0x1d6)][_0x20bf72(0x1f3)]();}[_0x43b2b8(0x1d7)](_0x33118b){const _0x50530e=_0x43b2b8;this[_0x50530e(0x1f6)][_0x50530e(0x1d7)](_0x33118b);}[_0x43b2b8(0x210)](_0x1fe02b){const _0x483c60=_0x43b2b8;this[_0x483c60(0x1d6)][_0x483c60(0x204)](_0x1fe02b);}[_0x43b2b8(0x1f5)](_0x3071b0,_0x2f8e9c){const _0x166512=_0x43b2b8;this[_0x166512(0x1c8)][_0x166512(0x1f5)](_0x3071b0,_0x2f8e9c);}[_0x43b2b8(0x217)](_0x4703eb){const _0x3ee03e=_0x43b2b8;_0x4703eb?(this[_0x3ee03e(0x1ea)]=!0x0,this[_0x3ee03e(0x1c8)][_0x3ee03e(0x217)](_0x4703eb)):this[_0x3ee03e(0x1ea)]=!0x1;}[_0x43b2b8(0x20a)](){const _0x20c1cc=_0x43b2b8;this[_0x20c1cc(0x1c8)][_0x20c1cc(0x20a)]();}[_0x43b2b8(0x211)](_0x3e70c1){const _0xe37d06=_0x43b2b8;this[_0xe37d06(0x1c8)][_0xe37d06(0x211)](_0x3e70c1);}[_0x43b2b8(0x1fc)](_0x3db7a4,_0x8b1e73,_0x4cde53,_0x5e002a){const _0x37240e=_0x43b2b8;this[_0x37240e(0x1f6)][_0x37240e(0x1fc)](_0x3db7a4,_0x8b1e73,_0x4cde53,_0x5e002a);}[_0x43b2b8(0x1d1)](_0x12413f){const _0x1e120b=_0x43b2b8;this[_0x1e120b(0x1f6)][_0x1e120b(0x1d1)](_0x12413f);}[_0x43b2b8(0x1cc)](_0x4ca9b3=!0x1){const _0x7921b8=_0x43b2b8;this[_0x7921b8(0x1d6)][_0x7921b8(0x1dc)](_0x4ca9b3);}[_0x43b2b8(0x1e9)](_0x318d6e){const _0x1c97bc=_0x43b2b8;this[_0x1c97bc(0x1d6)][_0x1c97bc(0x1df)][_0x1c97bc(0x1d5)][_0x1c97bc(0x1f3)](),this[_0x1c97bc(0x1d6)][_0x1c97bc(0x1df)][_0x1c97bc(0x1d5)][_0x1c97bc(0x1cd)]=_0x318d6e;}}class AIChatModelUnavailableMessageView extends _0x37911d{constructor(_0x50e359){const _0x598c09=_0x43b2b8;super(_0x50e359);const _0x47429f=new _0x33bae4(_0x50e359);_0x47429f[_0x598c09(0x205)]({'label':_0xbfc70b(this[_0x598c09(0x206)],_0x598c09(0x20c)),'withText':!0x0,'class':[_0x598c09(0x1dd)],'tooltip':''}),_0x47429f[_0x598c09(0x20f)](_0x598c09(0x212))['to'](this,_0x598c09(0x1eb)),this[_0x598c09(0x1e5)]({'tag':_0x598c09(0x21a),'attributes':{'class':['ck',_0x598c09(0x209)]},'children':[{'tag':'p','children':[{'text':_0xbfc70b(this[_0x598c09(0x206)],_0x598c09(0x1ed))+'\x20'},_0x47429f]}]});}}
|
|
23
|
+
const _0x4b88a6=_0xae3e;(function(_0x5b30b5,_0x6a59c6){const _0x333543=_0xae3e,_0x4aa8a5=_0x5b30b5();while(!![]){try{const _0x487105=-parseInt(_0x333543(0x20d))/0x1*(parseInt(_0x333543(0x215))/0x2)+-parseInt(_0x333543(0x1ff))/0x3*(-parseInt(_0x333543(0x1f2))/0x4)+-parseInt(_0x333543(0x1f7))/0x5*(-parseInt(_0x333543(0x207))/0x6)+parseInt(_0x333543(0x1fb))/0x7*(-parseInt(_0x333543(0x202))/0x8)+parseInt(_0x333543(0x223))/0x9+-parseInt(_0x333543(0x1e7))/0xa+parseInt(_0x333543(0x224))/0xb;if(_0x487105===_0x6a59c6)break;else _0x4aa8a5['push'](_0x4aa8a5['shift']());}catch(_0x3f0c39){_0x4aa8a5['push'](_0x4aa8a5['shift']());}}}(_0x6002,0x8ce99));import{ButtonView as _0x45c32d,clickOutsideHandler as _0x32aaf0,View as _0xf03c14}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x113e5b}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x4cd58c}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x358a32,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x2bd0d7}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x53c521}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x49b196}from'../../aicore/utils/common-translations.js';function _0xae3e(_0x2fac19,_0x1bdb95){const _0x6002f1=_0x6002();return _0xae3e=function(_0xae3e76,_0x49d964){_0xae3e76=_0xae3e76-0x1da;let _0x479106=_0x6002f1[_0xae3e76];return _0x479106;},_0xae3e(_0x2fac19,_0x1bdb95);}import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';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';function _0x6002(){const _0x4179f5=['setInputPlaceholder','805274PpqGJb','addContextItem','resetMessageInput','element','setModelList','_promptCapabilitiesView','setContextItemLoading','value','toggleWebSearch','form','setConversationContext','execute','abortPromptStream','setIsUploadInProgress','6962661sWlQTV','4124648pXlPAS','locale','queryView','reset','_createModelUnavailableMessageView','enableModelSelector','ck-ai-chat-controls-disabled','_createPromptCapabilitiesView','focusPromptInput','toggleReasoning','sendUserMessage','fieldView','_createLoaderView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','focus','bodyCollection','_modelUnavailableMessageView','selectModel','startConversation','setPlaceholderText','_createContextPanelView','556880KtIQWD','removeContextItem','setWebSearch','_handlePromptInputFocus','low','populateSourceResourceBalloon','updateResourceState','ck-ai-chat-controls__start-new-chat-button','ck-hidden','setModel','isModelAvailable','8ldOGqH','_shouldRestorePromptInputFocus','contextResourcesSearchInputVisibleFrom','clearCurrentContextItems','setReasoning','3915YdCFcf','bindTemplate','clearConversationContextItems','_promptInputView','2674fYQABK','closeSourceResourceBalloon','disableModelSelector','clearPendingContextUI','1120962dvKZzr','isLoading','_contextPanelView','18376ltMXlM','_loaderView','addContextButtonView','clearConversationContextUI','delegate','3216XRBbrY','ck-ai-chat-controls','setTemplate','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','div','setAddContextOptions','2mNeRlS','setPromptInputValue','isDisabled','_createPromptInputView','set','ck-ai-chat-controls-model-unavailable-message','change:isLoading'];_0x6002=function(){return _0x4179f5;};return _0x6002();}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 _0xf03c14{[_0x4b88a6(0x201)];[_0x4b88a6(0x1fa)];[_0x4b88a6(0x21a)];[_0x4b88a6(0x203)];[_0x4b88a6(0x1e2)];[_0x4b88a6(0x1f3)];constructor(_0x12870a,_0xe2a1f0){const _0x553818=_0x4b88a6;super(_0x12870a),this[_0x553818(0x201)]=this[_0x553818(0x1e6)](_0x12870a,{'bodyCollection':_0xe2a1f0[_0x553818(0x1e1)],'searchInputVisibleFrom':_0xe2a1f0[_0x553818(0x1f4)]}),this[_0x553818(0x1fa)]=this[_0x553818(0x210)](_0x12870a),this[_0x553818(0x21a)]=this[_0x553818(0x22b)](_0x12870a),this[_0x553818(0x203)]=this[_0x553818(0x1de)](_0x12870a),this[_0x553818(0x1e2)]=this[_0x553818(0x228)](_0x12870a),this[_0x553818(0x1f3)]=!0x1,this[_0x553818(0x1fa)][_0x553818(0x206)](_0x553818(0x1dc))['to'](this),this[_0x553818(0x203)][_0x553818(0x206)](_0x553818(0x221))['to'](this),this[_0x553818(0x21a)][_0x553818(0x206)](_0x553818(0x21d))['to'](this),this[_0x553818(0x21a)][_0x553818(0x206)](_0x553818(0x1db))['to'](this),this[_0x553818(0x21a)][_0x553818(0x206)](_0x553818(0x1e3))['to'](this),this[_0x553818(0x201)][_0x553818(0x206)](..._0x2bd0d7)['to'](this),this[_0x553818(0x211)](_0x553818(0x1f1),!0x0),this[_0x553818(0x211)](_0x553818(0x20f),!0x1);const _0xda6f8=this[_0x553818(0x1f8)];this[_0x553818(0x209)]({'tag':_0x553818(0x21e),'attributes':{'class':['ck',_0x553818(0x208),_0xda6f8['if'](_0x553818(0x20f),_0x553818(0x22a))]},'children':[{'tag':_0x553818(0x20b),'attributes':{'class':[_0xda6f8['if'](_0x553818(0x200),_0x553818(0x1ef),_0x11b65e=>_0x11b65e||!this[_0x553818(0x1f1)]),_0xda6f8['if'](_0x553818(0x1f1),_0x553818(0x1ef),_0x2c104b=>!_0x2c104b||this[_0x553818(0x200)])]},'children':[this[_0x553818(0x201)],this[_0x553818(0x1fa)],this[_0x553818(0x21a)]]},{'tag':_0x553818(0x20b),'attributes':{'class':[_0xda6f8['if'](_0x553818(0x200),_0x553818(0x1ef),_0x38c7fb=>!_0x38c7fb)]},'children':[this[_0x553818(0x203)]]},{'tag':_0x553818(0x20b),'attributes':{'class':[_0xda6f8['if'](_0x553818(0x1f1),_0x553818(0x1ef),_0xbab77e=>_0xbab77e)]},'children':[this[_0x553818(0x1e2)]]}]}),_0x32aaf0({'emitter':this[_0x553818(0x1fa)],'activator':()=>this[_0x553818(0x200)],'contextElements':()=>[this[_0x553818(0x218)]],'callback':()=>{const _0x6a67dd=_0x553818;this[_0x6a67dd(0x1f3)]=!0x1;}}),this['on'](_0x553818(0x213),this[_0x553818(0x1ea)],{'priority':_0x553818(0x1eb)});}[_0x4b88a6(0x1e6)](_0xea8c4b,_0xcf1ec6){return new _0x358a32(_0xea8c4b,_0xcf1ec6);}[_0x4b88a6(0x210)](_0x2ae477){const _0x2a22d1=_0x4b88a6;return new _0x113e5b(_0x2ae477,this[_0x2a22d1(0x201)][_0x2a22d1(0x204)]);}[_0x4b88a6(0x22b)](_0x4f9c64){return new _0x4cd58c(_0x4f9c64);}[_0x4b88a6(0x1de)](_0x4cedd2){return new _0x53c521(_0x4cedd2);}[_0x4b88a6(0x228)](_0x33e721){const _0x5dc844=_0x4b88a6,_0x470efd=new AIChatModelUnavailableMessageView(_0x33e721);return _0x470efd[_0x5dc844(0x206)](_0x5dc844(0x1e4))['to'](this),_0x470efd;}[_0x4b88a6(0x1ea)](_0x184901,_0x6437fc,_0x3a003b){const _0x3bf14e=_0x4b88a6;_0x3a003b?this[_0x3bf14e(0x1f3)]=!0x0:this[_0x3bf14e(0x1f3)]&&this[_0x3bf14e(0x1fa)][_0x3bf14e(0x1e0)]();}[_0x4b88a6(0x216)](_0x296f5c,_0x99db2f){const _0x3c1563=_0x4b88a6;this[_0x3c1563(0x201)][_0x3c1563(0x216)](_0x296f5c,_0x99db2f);}[_0x4b88a6(0x1e8)](_0x5c69d0){const _0x46d469=_0x4b88a6;this[_0x46d469(0x201)][_0x46d469(0x1e8)](_0x5c69d0);}[_0x4b88a6(0x21b)](_0x187f89,_0x31844a){const _0x49409a=_0x4b88a6;this[_0x49409a(0x201)][_0x49409a(0x21b)](_0x187f89,_0x31844a);}[_0x4b88a6(0x222)](_0x3a20d1){const _0xb117b7=_0x4b88a6;this[_0xb117b7(0x1fa)][_0xb117b7(0x222)](_0x3a20d1);}[_0x4b88a6(0x21f)](_0x3bcd2f){const _0x297a4b=_0x4b88a6;this[_0x297a4b(0x201)][_0x297a4b(0x21f)](_0x3bcd2f);}[_0x4b88a6(0x1fe)](){const _0x4d301b=_0x4b88a6;this[_0x4d301b(0x201)][_0x4d301b(0x1f5)]();}[_0x4b88a6(0x205)](){const _0x109194=_0x4b88a6;this[_0x109194(0x201)][_0x109194(0x1f9)]();}[_0x4b88a6(0x1ed)](_0x2f845b,_0x57ff25,_0x5994fc){const _0x5cbdc3=_0x4b88a6;this[_0x5cbdc3(0x201)][_0x5cbdc3(0x1ed)](_0x2f845b,_0x57ff25,_0x5994fc);}[_0x4b88a6(0x1e9)](_0x6f0b6b){const _0x46420d=_0x4b88a6;this[_0x46420d(0x21a)][_0x46420d(0x1e9)](_0x6f0b6b);}[_0x4b88a6(0x1f6)](_0x4a39dd){const _0x4d99f1=_0x4b88a6;this[_0x4d99f1(0x21a)][_0x4d99f1(0x1f6)](_0x4a39dd);}[_0x4b88a6(0x217)](){const _0x203b4a=_0x4b88a6;this[_0x203b4a(0x1fa)][_0x203b4a(0x227)]();}[_0x4b88a6(0x20c)](_0x212a05){const _0x437a6c=_0x4b88a6;this[_0x437a6c(0x201)][_0x437a6c(0x20c)](_0x212a05);}[_0x4b88a6(0x214)](_0x3ab70f){const _0x4fd119=_0x4b88a6;this[_0x4fd119(0x1fa)][_0x4fd119(0x1e5)](_0x3ab70f);}[_0x4b88a6(0x219)](_0x41ec88,_0x4d0299){const _0x329efc=_0x4b88a6;this[_0x329efc(0x21a)][_0x329efc(0x219)](_0x41ec88,_0x4d0299);}[_0x4b88a6(0x1f0)](_0x1ee4bd){const _0x40eb5e=_0x4b88a6;_0x1ee4bd?(this[_0x40eb5e(0x1f1)]=!0x0,this[_0x40eb5e(0x21a)][_0x40eb5e(0x1f0)](_0x1ee4bd)):this[_0x40eb5e(0x1f1)]=!0x1;}[_0x4b88a6(0x229)](){const _0x1716fc=_0x4b88a6;this[_0x1716fc(0x21a)][_0x1716fc(0x229)]();}[_0x4b88a6(0x1fd)](_0x5335c5){const _0xa406d3=_0x4b88a6;this[_0xa406d3(0x21a)][_0xa406d3(0x1fd)](_0x5335c5);}[_0x4b88a6(0x1ec)](_0x28655f,_0x4ecb15,_0x12b38f,_0x59db71){const _0x3b7feb=_0x4b88a6;this[_0x3b7feb(0x201)][_0x3b7feb(0x1ec)](_0x28655f,_0x4ecb15,_0x12b38f,_0x59db71);}[_0x4b88a6(0x1fc)](_0x2ee660){const _0x2e6808=_0x4b88a6;this[_0x2e6808(0x201)][_0x2e6808(0x1fc)](_0x2ee660);}[_0x4b88a6(0x1da)](_0xbcd6b5=!0x1){const _0x24d7ca=_0x4b88a6;this[_0x24d7ca(0x1fa)][_0x24d7ca(0x1e0)](_0xbcd6b5);}[_0x4b88a6(0x20e)](_0xe8fbe){const _0x2e6434=_0x4b88a6;this[_0x2e6434(0x1fa)][_0x2e6434(0x226)][_0x2e6434(0x1dd)][_0x2e6434(0x227)](),this[_0x2e6434(0x1fa)][_0x2e6434(0x226)][_0x2e6434(0x1dd)][_0x2e6434(0x21c)]=_0xe8fbe;}}class AIChatModelUnavailableMessageView extends _0xf03c14{constructor(_0x592895){const _0x3b3cec=_0x4b88a6;super(_0x592895);const _0x2fab97=new _0x45c32d(_0x592895);_0x2fab97[_0x3b3cec(0x211)]({'label':_0x49b196(this[_0x3b3cec(0x225)],_0x3b3cec(0x20a)),'withText':!0x0,'class':[_0x3b3cec(0x1ee)],'tooltip':''}),_0x2fab97[_0x3b3cec(0x206)](_0x3b3cec(0x220))['to'](this,_0x3b3cec(0x1e4)),this[_0x3b3cec(0x209)]({'tag':_0x3b3cec(0x20b),'attributes':{'class':['ck',_0x3b3cec(0x212)]},'children':[{'tag':'p','children':[{'text':_0x49b196(this[_0x3b3cec(0x225)],_0x3b3cec(0x1df))+'\x20'},_0x2fab97]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x4b59(){const _0x500aa4=['4339735SxnRJA','ai-suggestion-reply','aiFeed','element','includes','destroy','children','interaction-header','div','_setupTemplate','updateWebSources','_bodyCollection','markAsDone','ck-ai-chat__feed','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','setSuggestionPartActive','delegate','setPartActive','117CwBEBy','startAutoScroll','custom-element','9799647FvzHLk','clear','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','updatePartState','updateSuggestionPartState','2oMAcge','extendTemplate','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','bindTemplate','getItemIds','ck-ai-chat__loader','updateSources','isVisible','isPending','parentElement','remove','scrollManager','span','ck-ai-chat__feed__items','options','313571vNQUsC','loadingMessage','4007129FRcBgh','_createLoaderChildren','bind','updateSuggestionItem','locale','forEach','isTrackChangesOn','264132PubMzQ','start','find','toggleLoadingSkeleton','set','filter','hasItem','_createTemplateChildren','addItem','scrollToSuggestion','18492sJGlSw','removeItem','stopAutoScroll','user-message','ai-chat-feed-view-item-not-a-reply-item','_createFeedLoader','ai-chat-feed-view-item-not-a-suggestion-item','setTemplate','markItemAsDone','setLoadingMessage','add','ck-hidden','isLoadingSkeletonVisible','_createFeedItems','194630GHkGKu','getPartView','ai-reply','getItemById','createCollection','render','map','ai-chat-feed-view-item-not-found','6kFPJvY','8TrNgoC','updateReplyItem','stop','_createSkeletonLoader','ck-ai-chat__loader-text','updateContent'];_0x4b59=function(){return _0x500aa4;};return _0x4b59();}const _0x10a493=_0x2e0e;(function(_0x25e4d6,_0x2bf15d){const _0x249c50=_0x2e0e,_0x2a56ad=_0x25e4d6();while(!![]){try{const _0x4d52f5=-parseInt(_0x249c50(0x191))/0x1*(parseInt(_0x249c50(0x1db))/0x2)+-parseInt(_0x249c50(0x19a))/0x3+-parseInt(_0x249c50(0x1a4))/0x4+parseInt(_0x249c50(0x1c1))/0x5*(-parseInt(_0x249c50(0x1ba))/0x6)+-parseInt(_0x249c50(0x193))/0x7*(-parseInt(_0x249c50(0x1bb))/0x8)+parseInt(_0x249c50(0x1d3))/0x9*(parseInt(_0x249c50(0x1b2))/0xa)+parseInt(_0x249c50(0x1d6))/0xb;if(_0x4d52f5===_0x2bf15d)break;else _0x2a56ad['push'](_0x2a56ad['shift']());}catch(_0x560328){_0x2a56ad['push'](_0x2a56ad['shift']());}}}(_0x4b59,0x6bf2e));import{CKEditorError as _0x233a99,logWarning as _0x58392b,scrollAncestorsToShowTarget as _0x58140d}from'ckeditor5/src/utils.js';import{View as _0x392094}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x42fb04}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x4b54d4}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x2c12a0}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x308692}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x324abc}from'./feed/aichatfeederroritemview.js';function _0x2e0e(_0x90b9a0,_0x4ccdb9){const _0x4b5955=_0x4b59();return _0x2e0e=function(_0x2e0ef5,_0x4bdeaf){_0x2e0ef5=_0x2e0ef5-0x18f;let _0x4627d4=_0x4b5955[_0x2e0ef5];return _0x4627d4;},_0x2e0e(_0x90b9a0,_0x4ccdb9);}import{AIChatFeedInteractionHeaderView as _0xc22c09}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x2607da}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x4a8374,SKELETON_DEFINITIONS as _0x3122ce}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x553365}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x58a46c}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x392094{[_0x10a493(0x1c7)];[_0x10a493(0x1e6)];[_0x10a493(0x1cc)];constructor(_0x1a5456,_0x2b07c0){const _0x2d3c9b=_0x10a493;super(_0x1a5456),this[_0x2d3c9b(0x1cc)]=_0x2b07c0,this[_0x2d3c9b(0x19e)](_0x2d3c9b(0x1e3),!0x1),this[_0x2d3c9b(0x19e)](_0x2d3c9b(0x192),''),this[_0x2d3c9b(0x19e)](_0x2d3c9b(0x1b0),!0x1),this[_0x2d3c9b(0x19e)](_0x2d3c9b(0x199),!0x1),this[_0x2d3c9b(0x1c7)]=this[_0x2d3c9b(0x1b6)](),this[_0x2d3c9b(0x1c7)][_0x2d3c9b(0x1d1)](..._0x42fb04)['to'](this),this[_0x2d3c9b(0x1ca)]();}[_0x10a493(0x1b7)](){const _0x4480d4=_0x10a493;super[_0x4480d4(0x1b7)](),this[_0x4480d4(0x1e6)]=new _0x2607da(this[_0x4480d4(0x1c4)]);}[_0x10a493(0x1c6)](){const _0xb0c068=_0x10a493;super[_0xb0c068(0x1c6)](),this[_0xb0c068(0x1e6)][_0xb0c068(0x1c6)]();}[_0x10a493(0x1d7)](){const _0x326e86=_0x10a493;this[_0x326e86(0x1c7)][_0x326e86(0x1d7)]();}[_0x10a493(0x1a2)](_0x438e9b,_0x5e860e){const _0x344e85=_0x10a493;let _0x98172c;return _0x344e85(0x1b4)===_0x438e9b?_0x98172c=new _0x2c12a0(this[_0x344e85(0x197)],_0x5e860e,this[_0x344e85(0x1cc)]):_0x344e85(0x1c2)===_0x438e9b?(_0x98172c=new _0x4b54d4(this[_0x344e85(0x197)],_0x5e860e,this[_0x344e85(0x1cc)]),_0x98172c[_0x344e85(0x195)](_0x344e85(0x199))['to'](this)):_0x98172c=_0x344e85(0x1a7)===_0x438e9b?new _0x308692(this[_0x344e85(0x197)],_0x5e860e,this[_0x344e85(0x1cc)]):_0x344e85(0x1c8)===_0x438e9b?new _0xc22c09(this[_0x344e85(0x197)],_0x5e860e):_0x344e85(0x1d5)===_0x438e9b?new _0x58a46c(_0x5e860e):new _0x324abc(_0x5e860e),this[_0x344e85(0x1c7)][_0x344e85(0x1ae)](_0x98172c),_0x98172c;}async[_0x10a493(0x1bc)]({id:_0x9fccc5,parsedContent:_0x35161b,renderingStrategy:_0x4a216e,abortSignal:_0x5721db}){const _0x2b3312=_0x10a493,_0x36e7ff=this[_0x2b3312(0x1b5)](_0x9fccc5);if(!(_0x36e7ff instanceof _0x2c12a0))throw new _0x233a99(_0x2b3312(0x1a8),null,{'itemView':_0x36e7ff,'id':_0x9fccc5,'parsedContent':_0x35161b});await _0x36e7ff[_0x2b3312(0x1c0)]({'parsedContent':_0x35161b,'renderingStrategy':_0x4a216e,'abortSignal':_0x5721db});}async[_0x10a493(0x1cb)](_0x178917,_0x3096bc){const _0x55bf89=_0x10a493,_0x1ff9c1=this[_0x55bf89(0x1b5)](_0x178917);if(_0x1ff9c1 instanceof _0x4b54d4)_0x1ff9c1[_0x55bf89(0x1e1)](_0x3096bc);else{if(!(_0x1ff9c1 instanceof _0x2c12a0))throw new _0x233a99(_0x55bf89(0x1dd),null,{'itemView':_0x1ff9c1,'id':_0x178917,'sources':_0x3096bc});_0x1ff9c1[_0x55bf89(0x1e1)](_0x3096bc);}}async[_0x10a493(0x196)]({id:_0x41a798,parts:_0x1aa361,renderingStrategy:_0x4cbc56,abortSignal:_0x371fb5}){const _0x250f3a=_0x10a493,_0x1d1f79=this[_0x250f3a(0x1b5)](_0x41a798);if(!(_0x1d1f79 instanceof _0x4b54d4))throw new _0x233a99(_0x250f3a(0x1aa),null,{'itemView':_0x1d1f79,'id':_0x41a798,'parts':_0x1aa361});await _0x1d1f79[_0x250f3a(0x1c0)]({'parts':_0x1aa361,'renderingStrategy':_0x4cbc56,'abortSignal':_0x371fb5});}[_0x10a493(0x1da)]({id:_0x27db2a,index:_0x1b74f8,state:_0x58d682}){const _0x1d37b4=_0x10a493,_0x3732fc=this[_0x1d37b4(0x1b5)](_0x27db2a);if(!(_0x3732fc instanceof _0x4b54d4))throw new _0x233a99(_0x1d37b4(0x1aa),this,{'id':_0x27db2a});_0x3732fc[_0x1d37b4(0x1d9)](_0x1b74f8,_0x58d682);}[_0x10a493(0x1d0)]({id:_0x9edf3e,index:_0x463481,isActive:_0x174aff}){const _0x4dad85=_0x10a493,_0x2c7bb3=this[_0x4dad85(0x1b5)](_0x9edf3e);if(!(_0x2c7bb3 instanceof _0x4b54d4))throw new _0x233a99(_0x4dad85(0x1aa),this,{'id':_0x9edf3e});this[_0x4dad85(0x1c7)][_0x4dad85(0x19f)](_0x3335b2=>_0x3335b2 instanceof _0x4b54d4)[_0x4dad85(0x198)](_0x5205ca=>{const _0x34a900=_0x4dad85;_0x5205ca[_0x34a900(0x1d2)](!0x1);}),_0x2c7bb3[_0x4dad85(0x1d2)](_0x463481,_0x174aff);}[_0x10a493(0x1ac)](_0x1f2971){const _0x33659b=_0x10a493;this[_0x33659b(0x1b5)](_0x1f2971)[_0x33659b(0x1cd)]();}[_0x10a493(0x1df)](){const _0x2c81cc=_0x10a493;return this[_0x2c81cc(0x1c7)][_0x2c81cc(0x1b8)](_0x395d06=>_0x395d06[_0x2c81cc(0x190)]['id']);}[_0x10a493(0x1a5)](_0x1ab1b3){const _0x400b99=_0x10a493;this[_0x400b99(0x1c7)][_0x400b99(0x1e5)](this[_0x400b99(0x1b5)](_0x1ab1b3));}[_0x10a493(0x1a0)](_0x2f3821){const _0x10a5d7=_0x10a493;return!!this[_0x10a5d7(0x1c7)][_0x10a5d7(0x19c)](_0x455ff4=>_0x455ff4[_0x10a5d7(0x190)]['id'][_0x10a5d7(0x1c5)](_0x2f3821));}[_0x10a493(0x1a3)](_0xf65b0,_0x23a259){const _0x2a50a6=_0x10a493,_0x4b2a93=this[_0x2a50a6(0x1b5)](_0xf65b0);if(!(_0x4b2a93 instanceof _0x4b54d4))return void _0x58392b(_0x2a50a6(0x1cf),{'replyId':_0xf65b0,'partIndex':_0x23a259});const _0xb81aec=_0x4b2a93[_0x2a50a6(0x1b3)](_0x23a259);_0xb81aec?_0x58140d(_0xb81aec[_0x2a50a6(0x1c4)],0x14,this[_0x2a50a6(0x1c4)][_0x2a50a6(0x1e4)],!0x0,!0x0):_0x58392b(_0x2a50a6(0x1d8),{'replyId':_0xf65b0,'partIndex':_0x23a259});}[_0x10a493(0x1ca)](){const _0x4e9acb=_0x10a493;this[_0x4e9acb(0x1ab)]({'tag':_0x4e9acb(0x1c9),'attributes':{'class':['ck',_0x4e9acb(0x1ce)]},'children':this[_0x4e9acb(0x1a1)]()});}[_0x10a493(0x1a1)](){const _0x44037b=_0x10a493,_0x3a0d98=this[_0x44037b(0x1be)]();return[this[_0x44037b(0x1b1)](),_0x3a0d98,this[_0x44037b(0x1a9)]()];}[_0x10a493(0x1be)](){const _0x4c5ba0=_0x10a493,_0x401c32=new _0x4a8374(this[_0x4c5ba0(0x197)],_0x3122ce[_0x4c5ba0(0x1c3)]);return _0x401c32[_0x4c5ba0(0x1dc)]({'attributes':{'class':[this[_0x4c5ba0(0x1de)]['if'](_0x4c5ba0(0x1b0),_0x4c5ba0(0x1af),_0x559701=>!_0x559701)]}}),_0x401c32;}[_0x10a493(0x1b1)](){const _0x4d3548=_0x10a493,_0x17dad2=new _0x392094(this[_0x4d3548(0x197)]);return _0x17dad2[_0x4d3548(0x1ab)]({'tag':_0x4d3548(0x1c9),'attributes':{'class':['ck',_0x4d3548(0x18f),this[_0x4d3548(0x1de)]['if'](_0x4d3548(0x1b0),_0x4d3548(0x1af))]},'children':this[_0x4d3548(0x1c7)]}),_0x17dad2;}[_0x10a493(0x1a9)](){const _0x3dba30=_0x10a493,_0x224ee4=new _0x392094(this[_0x3dba30(0x197)]);return _0x224ee4[_0x3dba30(0x1ab)]({'tag':_0x3dba30(0x1c9),'attributes':{'class':['ck',_0x3dba30(0x1e0),this[_0x3dba30(0x1de)]['if'](_0x3dba30(0x1e3),_0x3dba30(0x1af),_0x1a9cd0=>!_0x1a9cd0)]},'children':this[_0x3dba30(0x194)]()}),_0x224ee4;}[_0x10a493(0x194)](){const _0x448445=_0x10a493,_0x1ea10d=new _0x553365();return _0x1ea10d[_0x448445(0x1e2)]=!0x0,[_0x1ea10d,{'tag':_0x448445(0x1e7),'attributes':{'class':['ck',_0x448445(0x1bf)]},'children':[{'text':this[_0x448445(0x1de)]['to'](_0x448445(0x192))}]}];}[_0x10a493(0x1b5)](_0x430bd7){const _0x4d688c=_0x10a493,_0x224bf8=this[_0x4d688c(0x1c7)][_0x4d688c(0x19c)](_0x3673c3=>_0x3673c3[_0x4d688c(0x190)]['id'][_0x4d688c(0x1c5)](_0x430bd7));if(!_0x224bf8)throw new _0x233a99(_0x4d688c(0x1b9),this,{'id':_0x430bd7});return _0x224bf8;}[_0x10a493(0x1ad)](_0x5cf345){const _0x50d06d=_0x10a493;this[_0x50d06d(0x19e)](_0x50d06d(0x192),_0x5cf345);}[_0x10a493(0x19d)](_0x27c9e6){const _0xde8cb3=_0x10a493;this[_0xde8cb3(0x19e)](_0xde8cb3(0x1b0),_0x27c9e6);}[_0x10a493(0x1d4)](){const _0x265e3b=_0x10a493;this[_0x265e3b(0x1e6)][_0x265e3b(0x19b)]();}[_0x10a493(0x1a6)](){const _0x4e77c1=_0x10a493;this[_0x4e77c1(0x1e6)][_0x4e77c1(0x1bd)]();}}
|
|
23
|
+
function _0x2443(){const _0x233122=['25468AckEYt','_createFeedItems','getPartView','updateSources','interaction-header','bindTemplate','ck-ai-chat__loader-text','31329xXJtLZ','isLoadingSkeletonVisible','removeItem','scrollToSuggestion','_setupTemplate','markAsDone','filter','updatePartState','156852eOtABJ','scrollManager','stop','isTrackChangesOn','locale','map','startAutoScroll','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','ai-suggestion-reply','ck-ai-chat__feed__items','_createTemplateChildren','updateWebSources','isPending','delegate','bind','130QVVKYo','getItemIds','updateSuggestionPartState','aiFeed','setTemplate','user-message','find','updateContent','394048bScBMM','_createLoaderChildren','span','updateSuggestionItem','stopAutoScroll','parentElement','ai-reply','remove','setLoadingMessage','getItemById','options','createCollection','88SrLmgE','276LyyjZW','_createSkeletonLoader','2247105bXGuQP','clear','destroy','ck-hidden','forEach','addItem','_createFeedLoader','children','ck-ai-chat__loader','31865TrMtgu','extendTemplate','585695eXRMxv','div','includes','setSuggestionPartActive','_bodyCollection','setPartActive','custom-element','20mkrOgo','ck-ai-chat__feed','set','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ai-chat-feed-view-item-not-found','render','loadingMessage','isVisible','add','hasItem','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','markItemAsDone','ai-chat-feed-view-item-not-a-suggestion-item','element','toggleLoadingSkeleton','start','ai-chat-feed-view-item-not-a-reply-item','updateReplyItem'];_0x2443=function(){return _0x233122;};return _0x2443();}const _0x24fed1=_0x33f6;(function(_0x5368e7,_0x57437c){const _0x30bc20=_0x33f6,_0x440403=_0x5368e7();while(!![]){try{const _0x1078b6=-parseInt(_0x30bc20(0xaa))/0x1*(-parseInt(_0x30bc20(0x98))/0x2)+parseInt(_0x30bc20(0xb1))/0x3*(-parseInt(_0x30bc20(0x83))/0x4)+parseInt(_0x30bc20(0x8f))/0x5*(-parseInt(_0x30bc20(0x84))/0x6)+-parseInt(_0x30bc20(0x86))/0x7+parseInt(_0x30bc20(0xd0))/0x8+parseInt(_0x30bc20(0xb9))/0x9+parseInt(_0x30bc20(0xc8))/0xa*(parseInt(_0x30bc20(0x91))/0xb);if(_0x1078b6===_0x57437c)break;else _0x440403['push'](_0x440403['shift']());}catch(_0x46e0a6){_0x440403['push'](_0x440403['shift']());}}}(_0x2443,0x2969e));import{CKEditorError as _0xdc9f3a,logWarning as _0x3d23bb,scrollAncestorsToShowTarget as _0x5a209c}from'ckeditor5/src/utils.js';import{View as _0x200e23}from'ckeditor5/src/ui.js';function _0x33f6(_0x439a20,_0x2c72e7){const _0x244397=_0x2443();return _0x33f6=function(_0x33f640,_0x1d71d7){_0x33f640=_0x33f640-0x7c;let _0x28fcb2=_0x244397[_0x33f640];return _0x28fcb2;},_0x33f6(_0x439a20,_0x2c72e7);}import{AI_CHAT_UI_EVENT_NAMES as _0x4776b4}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x5ac1}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x539cfc}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x298b92}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x5762bb}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x1bc9fb}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x1ba299}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x64ae81,SKELETON_DEFINITIONS as _0x106168}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0xe7bd98}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x5211df}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x200e23{[_0x24fed1(0x8d)];[_0x24fed1(0xba)];[_0x24fed1(0x95)];constructor(_0x23128e,_0x38c874){const _0x508911=_0x24fed1;super(_0x23128e),this[_0x508911(0x95)]=_0x38c874,this[_0x508911(0x9a)](_0x508911(0xc5),!0x1),this[_0x508911(0x9a)](_0x508911(0x9e),''),this[_0x508911(0x9a)](_0x508911(0xb2),!0x1),this[_0x508911(0x9a)](_0x508911(0xbc),!0x1),this[_0x508911(0x8d)]=this[_0x508911(0x82)](),this[_0x508911(0x8d)][_0x508911(0xc6)](..._0x4776b4)['to'](this),this[_0x508911(0xb5)]();}[_0x24fed1(0x9d)](){const _0x42745b=_0x24fed1;super[_0x42745b(0x9d)](),this[_0x42745b(0xba)]=new _0x1ba299(this[_0x42745b(0xa5)]);}[_0x24fed1(0x88)](){const _0x197580=_0x24fed1;super[_0x197580(0x88)](),this[_0x197580(0xba)][_0x197580(0x88)]();}[_0x24fed1(0x87)](){const _0x2ac47f=_0x24fed1;this[_0x2ac47f(0x8d)][_0x2ac47f(0x87)]();}[_0x24fed1(0x8b)](_0x1e20d0,_0x2acb28){const _0x59ac9e=_0x24fed1;let _0x5d5f42;return _0x59ac9e(0x7d)===_0x1e20d0?_0x5d5f42=new _0x539cfc(this[_0x59ac9e(0xbd)],_0x2acb28,this[_0x59ac9e(0x95)]):_0x59ac9e(0xc1)===_0x1e20d0?(_0x5d5f42=new _0x5ac1(this[_0x59ac9e(0xbd)],_0x2acb28,this[_0x59ac9e(0x95)]),_0x5d5f42[_0x59ac9e(0xc7)](_0x59ac9e(0xbc))['to'](this)):_0x5d5f42=_0x59ac9e(0xcd)===_0x1e20d0?new _0x298b92(this[_0x59ac9e(0xbd)],_0x2acb28,this[_0x59ac9e(0x95)]):_0x59ac9e(0xae)===_0x1e20d0?new _0x1bc9fb(this[_0x59ac9e(0xbd)],_0x2acb28):_0x59ac9e(0x97)===_0x1e20d0?new _0x5211df(_0x2acb28):new _0x5762bb(_0x2acb28),this[_0x59ac9e(0x8d)][_0x59ac9e(0xa0)](_0x5d5f42),_0x5d5f42;}async[_0x24fed1(0xa9)]({id:_0x1cbf3e,parsedContent:_0x9684ad,renderingStrategy:_0x49f54d,abortSignal:_0x5adbed}){const _0xee5ac1=_0x24fed1,_0x1cc199=this[_0xee5ac1(0x80)](_0x1cbf3e);if(!(_0x1cc199 instanceof _0x539cfc))throw new _0xdc9f3a(_0xee5ac1(0xa8),null,{'itemView':_0x1cc199,'id':_0x1cbf3e,'parsedContent':_0x9684ad});await _0x1cc199[_0xee5ac1(0xcf)]({'parsedContent':_0x9684ad,'renderingStrategy':_0x49f54d,'abortSignal':_0x5adbed});}async[_0x24fed1(0xc4)](_0x55f8b3,_0x5caf07){const _0x982ff5=_0x24fed1,_0x3040e7=this[_0x982ff5(0x80)](_0x55f8b3);if(_0x3040e7 instanceof _0x5ac1)_0x3040e7[_0x982ff5(0xad)](_0x5caf07);else{if(!(_0x3040e7 instanceof _0x539cfc))throw new _0xdc9f3a(_0x982ff5(0xc0),null,{'itemView':_0x3040e7,'id':_0x55f8b3,'sources':_0x5caf07});_0x3040e7[_0x982ff5(0xad)](_0x5caf07);}}async[_0x24fed1(0xd3)]({id:_0x3fb946,parts:_0x5cbdf0,renderingStrategy:_0x5afafd,abortSignal:_0xc463f4}){const _0x353145=_0x24fed1,_0x519155=this[_0x353145(0x80)](_0x3fb946);if(!(_0x519155 instanceof _0x5ac1))throw new _0xdc9f3a(_0x353145(0xa4),null,{'itemView':_0x519155,'id':_0x3fb946,'parts':_0x5cbdf0});await _0x519155[_0x353145(0xcf)]({'parts':_0x5cbdf0,'renderingStrategy':_0x5afafd,'abortSignal':_0xc463f4});}[_0x24fed1(0xca)]({id:_0x5d3a36,index:_0x57f2cd,state:_0x1373af}){const _0x471837=_0x24fed1,_0x38562c=this[_0x471837(0x80)](_0x5d3a36);if(!(_0x38562c instanceof _0x5ac1))throw new _0xdc9f3a(_0x471837(0xa4),this,{'id':_0x5d3a36});_0x38562c[_0x471837(0xb8)](_0x57f2cd,_0x1373af);}[_0x24fed1(0x94)]({id:_0x2ab05b,index:_0x1ea105,isActive:_0x289112}){const _0x28f9cf=_0x24fed1,_0x33f8ed=this[_0x28f9cf(0x80)](_0x2ab05b);if(!(_0x33f8ed instanceof _0x5ac1))throw new _0xdc9f3a(_0x28f9cf(0xa4),this,{'id':_0x2ab05b});this[_0x28f9cf(0x8d)][_0x28f9cf(0xb7)](_0x488fe4=>_0x488fe4 instanceof _0x5ac1)[_0x28f9cf(0x8a)](_0x479666=>{const _0x4948cf=_0x28f9cf;_0x479666[_0x4948cf(0x96)](!0x1);}),_0x33f8ed[_0x28f9cf(0x96)](_0x1ea105,_0x289112);}[_0x24fed1(0xa3)](_0x26e35f){const _0xa902ab=_0x24fed1;this[_0xa902ab(0x80)](_0x26e35f)[_0xa902ab(0xb6)]();}[_0x24fed1(0xc9)](){const _0x4eb76e=_0x24fed1;return this[_0x4eb76e(0x8d)][_0x4eb76e(0xbe)](_0x36e2b9=>_0x36e2b9[_0x4eb76e(0x81)]['id']);}[_0x24fed1(0xb3)](_0x183893){const _0x495149=_0x24fed1;this[_0x495149(0x8d)][_0x495149(0x7e)](this[_0x495149(0x80)](_0x183893));}[_0x24fed1(0xa1)](_0x4ad454){const _0x23188c=_0x24fed1;return!!this[_0x23188c(0x8d)][_0x23188c(0xce)](_0x1cca86=>_0x1cca86[_0x23188c(0x81)]['id'][_0x23188c(0x93)](_0x4ad454));}[_0x24fed1(0xb4)](_0xfe19e8,_0x512001){const _0x394572=_0x24fed1,_0x22fa21=this[_0x394572(0x80)](_0xfe19e8);if(!(_0x22fa21 instanceof _0x5ac1))return void _0x3d23bb(_0x394572(0x9b),{'replyId':_0xfe19e8,'partIndex':_0x512001});const _0x1b0bbd=_0x22fa21[_0x394572(0xac)](_0x512001);_0x1b0bbd?_0x5a209c(_0x1b0bbd[_0x394572(0xa5)],0x14,this[_0x394572(0xa5)][_0x394572(0x7c)],!0x0,!0x0):_0x3d23bb(_0x394572(0xa2),{'replyId':_0xfe19e8,'partIndex':_0x512001});}[_0x24fed1(0xb5)](){const _0x5131af=_0x24fed1;this[_0x5131af(0xcc)]({'tag':_0x5131af(0x92),'attributes':{'class':['ck',_0x5131af(0x99)]},'children':this[_0x5131af(0xc3)]()});}[_0x24fed1(0xc3)](){const _0x5c934f=_0x24fed1,_0x390f7a=this[_0x5c934f(0x85)]();return[this[_0x5c934f(0xab)](),_0x390f7a,this[_0x5c934f(0x8c)]()];}[_0x24fed1(0x85)](){const _0x12327b=_0x24fed1,_0x3db3b1=new _0x64ae81(this[_0x12327b(0xbd)],_0x106168[_0x12327b(0xcb)]);return _0x3db3b1[_0x12327b(0x90)]({'attributes':{'class':[this[_0x12327b(0xaf)]['if'](_0x12327b(0xb2),_0x12327b(0x89),_0x43bf7e=>!_0x43bf7e)]}}),_0x3db3b1;}[_0x24fed1(0xab)](){const _0x5f1969=_0x24fed1,_0x598441=new _0x200e23(this[_0x5f1969(0xbd)]);return _0x598441[_0x5f1969(0xcc)]({'tag':_0x5f1969(0x92),'attributes':{'class':['ck',_0x5f1969(0xc2),this[_0x5f1969(0xaf)]['if'](_0x5f1969(0xb2),_0x5f1969(0x89))]},'children':this[_0x5f1969(0x8d)]}),_0x598441;}[_0x24fed1(0x8c)](){const _0x211823=_0x24fed1,_0x4e4113=new _0x200e23(this[_0x211823(0xbd)]);return _0x4e4113[_0x211823(0xcc)]({'tag':_0x211823(0x92),'attributes':{'class':['ck',_0x211823(0x8e),this[_0x211823(0xaf)]['if'](_0x211823(0xc5),_0x211823(0x89),_0x1ce646=>!_0x1ce646)]},'children':this[_0x211823(0xd1)]()}),_0x4e4113;}[_0x24fed1(0xd1)](){const _0x31f35e=_0x24fed1,_0x27680d=new _0xe7bd98();return _0x27680d[_0x31f35e(0x9f)]=!0x0,[_0x27680d,{'tag':_0x31f35e(0xd2),'attributes':{'class':['ck',_0x31f35e(0xb0)]},'children':[{'text':this[_0x31f35e(0xaf)]['to'](_0x31f35e(0x9e))}]}];}[_0x24fed1(0x80)](_0xc3fb72){const _0x520014=_0x24fed1,_0x13656e=this[_0x520014(0x8d)][_0x520014(0xce)](_0x4e0901=>_0x4e0901[_0x520014(0x81)]['id'][_0x520014(0x93)](_0xc3fb72));if(!_0x13656e)throw new _0xdc9f3a(_0x520014(0x9c),this,{'id':_0xc3fb72});return _0x13656e;}[_0x24fed1(0x7f)](_0x1b7003){const _0x4f9ddb=_0x24fed1;this[_0x4f9ddb(0x9a)](_0x4f9ddb(0x9e),_0x1b7003);}[_0x24fed1(0xa6)](_0x37fb9d){const _0x295327=_0x24fed1;this[_0x295327(0x9a)](_0x295327(0xb2),_0x37fb9d);}[_0x24fed1(0xbf)](){const _0x3ba348=_0x24fed1;this[_0x3ba348(0xba)][_0x3ba348(0xa7)]();}[_0x24fed1(0xd4)](){const _0xcb98c4=_0x24fed1;this[_0xcb98c4(0xba)][_0xcb98c4(0xbb)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x49b210=_0x53e8;(function(_0x3a216e,_0x1a040c){const _0x17536c=_0x53e8,_0x4a35a6=_0x3a216e();while(!![]){try{const _0x28426c=parseInt(_0x17536c(0xb3))/0x1*(parseInt(_0x17536c(0xa0))/0x2)+parseInt(_0x17536c(0xaa))/0x3+-parseInt(_0x17536c(0xb5))/0x4*(parseInt(_0x17536c(0xa3))/0x5)+-parseInt(_0x17536c(0x9f))/0x6*(-parseInt(_0x17536c(0xa6))/0x7)+parseInt(_0x17536c(0xa7))/0x8*(parseInt(_0x17536c(0xb1))/0x9)+parseInt(_0x17536c(0x9e))/0xa*(-parseInt(_0x17536c(0xa1))/0xb)+-parseInt(_0x17536c(0xa5))/0xc;if(_0x28426c===_0x1a040c)break;else _0x4a35a6['push'](_0x4a35a6['shift']());}catch(_0x5ebe19){_0x4a35a6['push'](_0x4a35a6['shift']());}}}(_0x4951,0xad1aa));import{ButtonView as _0xf5447c,FormHeaderView as _0x214627}from'ckeditor5/src/ui.js';import{IconPlus as _0x3e4484,IconAIChat as _0x1abfa8}from'ckeditor5/src/icons.js';import{getTranslation as _0x347b05}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x191e0e}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';function _0x53e8(_0x1418e,_0x21d8e8){const _0x495113=_0x4951();return _0x53e8=function(_0x53e8db,_0x474480){_0x53e8db=_0x53e8db-0x9b;let _0x40d4eb=_0x495113[_0x53e8db];return _0x40d4eb;},_0x53e8(_0x1418e,_0x21d8e8);}function _0x4951(){const _0x46bf0a=['ck-ai-header\x20ck-ai-header_chat','fire','3118011RaBhOv','set','conversationStartButton','resizeButton','ck-ai-chat__start-conversation','startConversation','locale','6642XoEsAW','execute','4348tKVnoN','AI_CHAT_LABEL_NEW_CHAT','4uDDSiW','isMaximized','add','_createStartConversationButton','20yOpDaB','6ZSDphJ','14BaedKu','682671fCMaSa','children','6180535BXLmid','AI_CHAT_HEADING','7586076BjZWeo','2567117Ktrgdx','13712jyrCqk'];_0x4951=function(){return _0x46bf0a;};return _0x4951();}export class AIChatHeaderView extends _0x214627{[_0x49b210(0xac)];[_0x49b210(0xad)];constructor(_0x5daf5f,_0x5ab11e){const _0x1bd8bb=_0x49b210;super(_0x5daf5f,{'label':_0x347b05(_0x5daf5f,_0x1bd8bb(0xa4)),'class':_0x1bd8bb(0xa8),'icon':_0x1abfa8}),this[_0x1bd8bb(0xab)](_0x1bd8bb(0x9b),!0x1),this[_0x1bd8bb(0xac)]=this[_0x1bd8bb(0x9d)](_0x5daf5f),this[_0x1bd8bb(0xa2)][_0x1bd8bb(0x9c)](this[_0x1bd8bb(0xac)]),_0x5ab11e&&(this[_0x1bd8bb(0xad)]=_0x191e0e(_0x5daf5f,this),this[_0x1bd8bb(0xa2)][_0x1bd8bb(0x9c)](this[_0x1bd8bb(0xad)]));}[_0x49b210(0x9d)](_0x1e36ba){const _0x547660=_0x49b210,_0x597da4=new _0xf5447c(_0x1e36ba);return _0x597da4[_0x547660(0xab)]({'label':_0x347b05(this[_0x547660(0xb0)],_0x547660(0xb4)),'withText':!0x0,'icon':_0x3e4484,'class':_0x547660(0xae)}),_0x597da4['on'](_0x547660(0xb2),()=>{const _0x505977=_0x547660;this[_0x505977(0xa9)](_0x505977(0xaf));}),_0x597da4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x284304=_0x27c1;(function(_0x403b12,_0x52f888){var _0x127287=_0x27c1,_0x4fc7f2=_0x403b12();while(!![]){try{var _0x4f9716=-parseInt(_0x127287(0x192))/0x1*(-parseInt(_0x127287(0x17c))/0x2)+parseInt(_0x127287(0x186))/0x3+-parseInt(_0x127287(0x18a))/0x4+parseInt(_0x127287(0x185))/0x5*(parseInt(_0x127287(0x182))/0x6)+-parseInt(_0x127287(0x184))/0x7*(parseInt(_0x127287(0x18e))/0x8)+-parseInt(_0x127287(0x17e))/0x9+-parseInt(_0x127287(0x179))/0xa;if(_0x4f9716===_0x52f888)break;else _0x4fc7f2['push'](_0x4fc7f2['shift']());}catch(_0xc9eed8){_0x4fc7f2['push'](_0x4fc7f2['shift']());}}}(_0x2832,0x1e5b7));import{View as _0x55b137,BodyCollection as _0x28a4dd}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x32daf5}from'../utils/eventnames.js';import{AIChatFeedView as _0x5d6bd6}from'./aichatfeedview.js';import{AIChatControlsView as _0xa6bd38}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x2539d4}from'./aichatheaderview.js';function _0x2832(){var _0x5b0b48=['12DoWyVV','ck-ai-chat','attachToDom','setTemplate','1189750kaprwo','detachFromDom','closeSourceResourceBalloon','33860yaWgVZ','ck-reset_all','320436yXzwWC','populateSourceResourceBalloon','chatHeader','chatDisclaimer','15468DBFits','contextResourcesSearchInputVisibleFrom','917LHSWCs','415bqTfcb','243552JBeaFH','chatControls','ck-rounded-corners','chatFeed','279176vtiTrb','showResizeButton','uiLanguageDirection','_bodyCollection','9136tPIvdb','delegate','destroy','div'];_0x2832=function(){return _0x5b0b48;};return _0x2832();}import{AIDisclaimerView as _0x505cf1}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';function _0x27c1(_0x4ed136,_0x2ac164){var _0x2832d6=_0x2832();return _0x27c1=function(_0x27c19a,_0x418619){_0x27c19a=_0x27c19a-0x179;var _0x2a9bc7=_0x2832d6[_0x27c19a];return _0x2a9bc7;},_0x27c1(_0x4ed136,_0x2ac164);}import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x55b137{[_0x284304(0x180)];[_0x284304(0x189)];[_0x284304(0x187)];[_0x284304(0x181)];[_0x284304(0x18d)];constructor(_0x3955e9,_0x6aaf8e){var _0x5573a8=_0x284304;super(_0x3955e9),this[_0x5573a8(0x18d)]=new _0x28a4dd(_0x3955e9),this[_0x5573a8(0x18d)][_0x5573a8(0x194)](),this[_0x5573a8(0x180)]=new _0x2539d4(_0x3955e9,_0x6aaf8e[_0x5573a8(0x18b)]),this[_0x5573a8(0x180)][_0x5573a8(0x18f)](..._0x32daf5)['to'](this),this[_0x5573a8(0x189)]=new _0x5d6bd6(_0x3955e9,this[_0x5573a8(0x18d)]),this[_0x5573a8(0x189)][_0x5573a8(0x18f)](..._0x32daf5)['to'](this),this[_0x5573a8(0x187)]=new _0xa6bd38(_0x3955e9,{'bodyCollection':this[_0x5573a8(0x18d)],'contextResourcesSearchInputVisibleFrom':_0x6aaf8e[_0x5573a8(0x183)]}),this[_0x5573a8(0x187)][_0x5573a8(0x18f)](..._0x32daf5)['to'](this),this[_0x5573a8(0x181)]=new _0x505cf1(_0x3955e9),this[_0x5573a8(0x195)]({'tag':_0x5573a8(0x191),'attributes':{'class':['ck',_0x5573a8(0x17d),_0x5573a8(0x193),_0x5573a8(0x188)],'dir':_0x3955e9[_0x5573a8(0x18c)]},'children':[this[_0x5573a8(0x180)],this[_0x5573a8(0x189)],this[_0x5573a8(0x187)],this[_0x5573a8(0x181)]]});}[_0x284304(0x17f)](_0x2e1e27,_0x3e2f26,_0x47cba6,_0x4cc18c){var _0x4ce0f0=_0x284304;this[_0x4ce0f0(0x187)][_0x4ce0f0(0x17f)](_0x2e1e27,_0x3e2f26,_0x47cba6,_0x4cc18c);}[_0x284304(0x17b)](_0x2c319e){var _0x331037=_0x284304;this[_0x331037(0x187)][_0x331037(0x17b)](_0x2c319e);}[_0x284304(0x190)](){var _0x52f72e=_0x284304;this[_0x52f72e(0x18d)][_0x52f72e(0x17a)](),super[_0x52f72e(0x190)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x479915=_0x1461;function _0x2437(){const _0x13b9cf=['1012536HkgIyX','_makeAncestorsVisible','children','width','parentElement','undefined','disconnect','_updateShowMoreButtonVisibility','showMoreButtonView','maxVisibleRows','cloneNode','overflowChips','body','_overflowChips','bottom','pin','tagName','0px','1028816qXNnlj','showBalloonPanel','includes','770558MbRgvk','label','render','toLowerCase','extendTemplate','_ancestorsToRestore','button','reorganizeChips','remove','block','querySelector','_targetContainer','documentElement','37662WOmaAZ','visibility','element','getComputedStyle','observe','add','220OohdzP','position','_containerElement','_isContainerVisible','content','isVisible','disableAnimationOnEnter','_showMoreButtonView','_testButtonFit','boxSizing','_config','-9999px','classList','isConnected','setContainerElement','calculationContainer','isOn','hide','cssClasses','_createContainerElements','slice','visible','textContent','hideBalloonPanel','length','_showMoreBalloonPanelView','1463862WwSlFk','300px','destroy','_createShowMoreButtonView','_distributeChips','filter','none','_findTargetContainer','_updateBalloonContent','_repinBalloonPanel','clear','pop','setTemplate','controlsButton','_calculateOverflowInContainer','_locale','_updateOverflowUI','_setupVisibilityObserver','innerHeight','execute','absolute','getBoundingClientRect','style','_parentView','appendChild','_intersectionObserver','top','showMoreBalloon','_pendingCalculation','_visibleChips','_createCalculationContainer','forEach','1SKQGBL','innerWidth','className','ck-calculation-container','_applyOverflowResults','innerHTML','offsetWidth','clientHeight','showMoreLabelPrefix','pointerEvents','border-box','push','+\x201','show','_bodyCollection','opacity','2086200cMiHMK','div','hidden','isIntersecting','abs','zIndex','visible\x20!important','left','auto','_restoreAncestorVisibility','right','8887140TkisJz','set','some','_createShowMoreBalloonPanelView','.ck-ai-chat','_checkAndHandleOverflow','showMoreButton','_applyCalculationStyles','createElement','_renderChipsAndCountRows','_createShowMoreButton','height','rowDetectionTolerance','_calculateContainerWidth','from','overflowContainer','_handleShowMoreButtonClick','display','_createMockButton','50px','clientWidth','block\x20!important'];_0x2437=function(){return _0x13b9cf;};return _0x2437();}(function(_0x20b368,_0x461fa1){const _0x24c7eb=_0x1461,_0x37f1c7=_0x20b368();while(!![]){try{const _0x2ab2a7=parseInt(_0x24c7eb(0x1d9))/0x1*(-parseInt(_0x24c7eb(0x21f))/0x2)+-parseInt(_0x24c7eb(0x1b9))/0x3+-parseInt(_0x24c7eb(0x21c))/0x4+-parseInt(_0x24c7eb(0x19f))/0x5*(-parseInt(_0x24c7eb(0x199))/0x6)+-parseInt(_0x24c7eb(0x20a))/0x7+parseInt(_0x24c7eb(0x1e9))/0x8+parseInt(_0x24c7eb(0x1f4))/0x9;if(_0x2ab2a7===_0x461fa1)break;else _0x37f1c7['push'](_0x37f1c7['shift']());}catch(_0x1d310b){_0x37f1c7['push'](_0x37f1c7['shift']());}}}(_0x2437,0x3cdfa));import{View as _0x2eae61,BalloonPanelView as _0x4c8d6f,ButtonView as _0x2a7642,clickOutsideHandler as _0x248f9d}from'ckeditor5/src/ui.js';import{Collection as _0x1ad78d}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x479915(0x1ba);function _0x1461(_0x43d5e0,_0x4762f8){const _0x2437ed=_0x2437();return _0x1461=function(_0x146135,_0x3be803){_0x146135=_0x146135-0x197;let _0x30000a=_0x2437ed[_0x146135];return _0x30000a;},_0x1461(_0x43d5e0,_0x4762f8);}export class AIChatChipsOverflowManager{[_0x479915(0x1c8)];[_0x479915(0x1a9)];[_0x479915(0x1d6)];[_0x479915(0x217)];[_0x479915(0x1a6)]=null;[_0x479915(0x1b8)]=null;[_0x479915(0x1a1)]=null;[_0x479915(0x1e7)];[_0x479915(0x1d0)]=null;[_0x479915(0x1d2)]=null;[_0x479915(0x1d5)]=!0x1;constructor(_0x2a4db9,_0x6da56a,_0x498d80,_0x1255c6,_0x4a9379){const _0x44cb51=_0x479915;this[_0x44cb51(0x1c8)]=_0x2a4db9,this[_0x44cb51(0x1d6)]=_0x6da56a,this[_0x44cb51(0x1a9)]={...hn,..._0x498d80,'cssClasses':{'controlsButton':'','calculationContainer':_0x44cb51(0x1dc),..._0x498d80[_0x44cb51(0x1b1)]}},this[_0x44cb51(0x217)]=new _0x1ad78d(),this[_0x44cb51(0x1e7)]=_0x1255c6,this[_0x44cb51(0x1d0)]=_0x4a9379||null;}[_0x479915(0x1ad)](_0x2b1583){const _0x4da5b9=_0x479915;this[_0x4da5b9(0x1d2)]&&(this[_0x4da5b9(0x1d2)][_0x4da5b9(0x210)](),this[_0x4da5b9(0x1d2)]=null),this[_0x4da5b9(0x1a1)]=_0x2b1583,this[_0x4da5b9(0x1ca)]();}get[_0x479915(0x212)](){const _0x501cfd=_0x479915;return this[_0x501cfd(0x1a6)];}get[_0x479915(0x215)](){const _0x2b5bd5=_0x479915;return this[_0x2b5bd5(0x217)];}[_0x479915(0x226)](){requestAnimationFrame(()=>{const _0x5a82b3=_0x1461;this[_0x5a82b3(0x1f9)]();});}[_0x479915(0x21d)](){const _0x459cba=_0x479915;this[_0x459cba(0x1a6)]&&this[_0x459cba(0x1b8)]&&(this[_0x459cba(0x1c1)](),this[_0x459cba(0x1a6)][_0x459cba(0x1af)]=!0x0,this[_0x459cba(0x1b8)][_0x459cba(0x1e6)](),this[_0x459cba(0x1b8)][_0x459cba(0x219)]({'target':this[_0x459cba(0x1a6)][_0x459cba(0x19b)],'limiter':document[_0x459cba(0x229)](_0x459cba(0x1f8))}));}[_0x479915(0x1b6)](){const _0x2e314b=_0x479915;this[_0x2e314b(0x1a6)]&&this[_0x2e314b(0x1b8)]&&(this[_0x2e314b(0x1a6)][_0x2e314b(0x1af)]=!0x1,this[_0x2e314b(0x1b8)][_0x2e314b(0x1b0)]());}[_0x479915(0x1c3)](){const _0x1b2da4=_0x479915;this[_0x1b2da4(0x217)][_0x1b2da4(0x1c3)](),this[_0x1b2da4(0x1b6)](),this[_0x1b2da4(0x211)](),this[_0x1b2da4(0x1a6)]&&(this[_0x1b2da4(0x1a6)][_0x1b2da4(0x220)]=''),this[_0x1b2da4(0x1b8)]&&this[_0x1b2da4(0x1b8)][_0x1b2da4(0x1a3)][_0x1b2da4(0x1c3)]();}[_0x479915(0x1bb)](){const _0x3f0867=_0x479915;this[_0x3f0867(0x1d2)]&&(this[_0x3f0867(0x1d2)][_0x3f0867(0x210)](),this[_0x3f0867(0x1d2)]=null),this[_0x3f0867(0x1a6)]&&(this[_0x3f0867(0x1a6)][_0x3f0867(0x1bb)](),this[_0x3f0867(0x1a6)]=null),this[_0x3f0867(0x1b8)]&&(this[_0x3f0867(0x1b8)][_0x3f0867(0x1bb)](),this[_0x3f0867(0x1b8)]=null);}[_0x479915(0x1f9)](){const _0x1ff3aa=_0x479915;if(!this[_0x1ff3aa(0x1a1)])return;if(!this[_0x1ff3aa(0x1a2)]())return void(this[_0x1ff3aa(0x1d5)]=!0x0);this[_0x1ff3aa(0x1d5)]=!0x1;const _0x595514=[...this[_0x1ff3aa(0x1d6)],...this[_0x1ff3aa(0x217)]],_0x401ac9=this[_0x1ff3aa(0x1d7)](),_0x25b46c=this[_0x1ff3aa(0x1c7)](_0x401ac9,_0x595514),_0x3a85d3=_0x401ac9[_0x1ff3aa(0x224)];_0x3a85d3&&this[_0x1ff3aa(0x1f2)](_0x3a85d3),_0x401ac9[_0x1ff3aa(0x227)](),this[_0x1ff3aa(0x1dd)](_0x595514,_0x25b46c);}[_0x479915(0x1fe)](){const _0xaa66a2=_0x479915;this[_0xaa66a2(0x1a6)]=this[_0xaa66a2(0x1bc)](),this[_0xaa66a2(0x1b8)]=this[_0xaa66a2(0x1f7)](),this[_0xaa66a2(0x1a6)][_0xaa66a2(0x221)](),this[_0xaa66a2(0x1a1)][_0xaa66a2(0x1d1)](this[_0xaa66a2(0x1a6)][_0xaa66a2(0x19b)]),this[_0xaa66a2(0x1a6)]['on'](_0xaa66a2(0x1cc),()=>{const _0x93eb8e=_0xaa66a2;this[_0x93eb8e(0x204)]();}),_0x248f9d({'emitter':this[_0xaa66a2(0x1b8)],'contextElements':[this[_0xaa66a2(0x1b8)][_0xaa66a2(0x19b)],this[_0xaa66a2(0x1a6)][_0xaa66a2(0x19b)]],'callback':()=>this[_0xaa66a2(0x1b6)](),'activator':()=>this[_0xaa66a2(0x1a6)][_0xaa66a2(0x1af)]});}[_0x479915(0x1bc)](){const _0x51eafc=_0x479915,_0x30c1bd=new _0x2a7642(this[_0x51eafc(0x1c8)]);_0x30c1bd[_0x51eafc(0x1f5)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x195679=[this[_0x51eafc(0x1a9)][_0x51eafc(0x1b1)][_0x51eafc(0x1fa)]];return this[_0x51eafc(0x1a9)][_0x51eafc(0x1b1)][_0x51eafc(0x1c6)]&&_0x195679[_0x51eafc(0x1e4)](this[_0x51eafc(0x1a9)][_0x51eafc(0x1b1)][_0x51eafc(0x1c6)]),_0x30c1bd[_0x51eafc(0x223)]({'attributes':{'class':_0x195679}}),_0x30c1bd;}[_0x479915(0x1f7)](){const _0x1ba49c=_0x479915,_0x296712=new _0x4c8d6f(this[_0x1ba49c(0x1c8)]);return _0x296712[_0x1ba49c(0x223)]({'attributes':{'class':this[_0x1ba49c(0x1a9)][_0x1ba49c(0x1b1)][_0x1ba49c(0x1d4)]}}),this[_0x1ba49c(0x1e7)][_0x1ba49c(0x19e)](_0x296712),_0x296712;}[_0x479915(0x1c1)](){const _0x460679=_0x479915;if(this[_0x460679(0x1b8)]&&(this[_0x460679(0x1b8)][_0x460679(0x1a3)][_0x460679(0x1c3)](),this[_0x460679(0x217)][_0x460679(0x1b7)]>0x0)){this[_0x460679(0x217)][_0x460679(0x1d8)](_0x46b1bc=>{const _0x283144=_0x460679;_0x46b1bc[_0x283144(0x1a5)]();});const _0xb4b68e=new _0x2eae61(this[_0x460679(0x1c8)]);_0xb4b68e[_0x460679(0x1c5)]({'tag':_0x460679(0x1ea),'attributes':{'class':this[_0x460679(0x1a9)][_0x460679(0x1b1)][_0x460679(0x203)]},'children':this[_0x460679(0x217)]}),this[_0x460679(0x1b8)][_0x460679(0x1a3)][_0x460679(0x19e)](_0xb4b68e);}}[_0x479915(0x204)](){const _0x4ab126=_0x479915;this[_0x4ab126(0x1a6)][_0x4ab126(0x1af)]?this[_0x4ab126(0x1b6)]():this[_0x4ab126(0x21d)]();}[_0x479915(0x211)](){const _0x4a236c=_0x479915,_0x1493f9=this[_0x4a236c(0x217)][_0x4a236c(0x1b7)]>0x0;this[_0x4a236c(0x1a6)]?.[_0x4a236c(0x19b)]&&(this[_0x4a236c(0x1a6)][_0x4a236c(0x19b)][_0x4a236c(0x1cf)][_0x4a236c(0x205)]=_0x1493f9?'':_0x4a236c(0x1bf));}[_0x479915(0x1c2)](){const _0x513550=_0x479915;this[_0x513550(0x1a6)]?.[_0x513550(0x1af)]&&this[_0x513550(0x1b8)]?.[_0x513550(0x1a4)]&&this[_0x513550(0x1a6)][_0x513550(0x19b)]&&this[_0x513550(0x1b8)][_0x513550(0x219)]({'target':this[_0x513550(0x1a6)][_0x513550(0x19b)],'limiter':document[_0x513550(0x229)](_0x513550(0x1f8))});}[_0x479915(0x1c0)](_0x3cb244){const _0x2adbbb=_0x479915,_0x5e0063=this[_0x2adbbb(0x1a1)]?.[_0x2adbbb(0x21a)][_0x2adbbb(0x222)]()||_0x2adbbb(0x1ea),_0x78a359=this[_0x2adbbb(0x1a1)]?.[_0x2adbbb(0x1ab)];if(_0x78a359){const _0x559880=_0x78a359[0x0]||'',_0x51c887=_0x3cb244[_0x2adbbb(0x229)]('.'+_0x559880),_0x1ccb76=_0x3cb244[_0x2adbbb(0x229)](_0x5e0063);return _0x51c887||_0x1ccb76||_0x3cb244;}return _0x3cb244[_0x2adbbb(0x229)](_0x5e0063)||_0x3cb244;}[_0x479915(0x201)](){const _0x52d700=_0x479915,_0x59f3e6=this[_0x52d700(0x1d0)]?.[_0x52d700(0x19b)]||this[_0x52d700(0x1a1)];if(!_0x59f3e6)return an;const _0x3ee884=window[_0x52d700(0x19c)](_0x59f3e6)[_0x52d700(0x20d)];if(_0x52d700(0x1f1)===_0x3ee884||_0x52d700(0x21b)===_0x3ee884||!_0x3ee884){const _0x42e0b9=_0x59f3e6[_0x52d700(0x20e)];if(_0x42e0b9){const _0x15d5a6=window[_0x52d700(0x19c)](_0x42e0b9);return _0x52d700(0x1f1)!==_0x15d5a6[_0x52d700(0x20d)]?_0x15d5a6[_0x52d700(0x20d)]:an;}return an;}return _0x3ee884;}[_0x479915(0x1fb)](_0x296562,_0x158457){const _0xc74d94=_0x479915;this[_0xc74d94(0x1a9)][_0xc74d94(0x1b1)][_0xc74d94(0x1ae)]&&_0x296562[_0xc74d94(0x1ab)][_0xc74d94(0x19e)](this[_0xc74d94(0x1a9)][_0xc74d94(0x1b1)][_0xc74d94(0x1ae)]),_0x296562[_0xc74d94(0x1cf)][_0xc74d94(0x20d)]=_0x158457,_0x296562[_0xc74d94(0x1cf)][_0xc74d94(0x1a0)]=_0xc74d94(0x1cd),_0x296562[_0xc74d94(0x1cf)][_0xc74d94(0x1d3)]=_0xc74d94(0x1aa),_0x296562[_0xc74d94(0x1cf)][_0xc74d94(0x1f0)]=_0xc74d94(0x1aa),_0x296562[_0xc74d94(0x1cf)][_0xc74d94(0x1e8)]='0',_0x296562[_0xc74d94(0x1cf)][_0xc74d94(0x1e2)]=_0xc74d94(0x1bf),_0x296562[_0xc74d94(0x1cf)][_0xc74d94(0x1ee)]='-1',_0x296562[_0xc74d94(0x1cf)][_0xc74d94(0x19a)]=_0xc74d94(0x1ef),_0x296562[_0xc74d94(0x1cf)][_0xc74d94(0x205)]=_0xc74d94(0x209),_0x296562[_0xc74d94(0x1cf)][_0xc74d94(0x1a8)]=_0xc74d94(0x1e3);}[_0x479915(0x1f2)](_0xed7269){const _0x51b8e3=_0x479915;_0xed7269[_0x51b8e3(0x1d8)](({element:_0x136165,originalDisplay:_0x3a0cfe,originalVisibility:_0x2c611b})=>{const _0x523dec=_0x51b8e3;_0x136165[_0x523dec(0x1cf)][_0x523dec(0x205)]=_0x3a0cfe,_0x136165[_0x523dec(0x1cf)][_0x523dec(0x19a)]=_0x2c611b;});}[_0x479915(0x20b)](_0x5a526f){const _0x3bf9b6=_0x479915,_0x11940a=[];let _0xa18984=_0x5a526f;for(;_0xa18984&&_0xa18984!==document[_0x3bf9b6(0x216)];){const _0x2cf5b9=window[_0x3bf9b6(0x19c)](_0xa18984);_0x3bf9b6(0x1bf)!==_0x2cf5b9[_0x3bf9b6(0x205)]&&_0x3bf9b6(0x1eb)!==_0x2cf5b9[_0x3bf9b6(0x19a)]||(_0x11940a[_0x3bf9b6(0x1e4)]({'element':_0xa18984,'originalDisplay':_0xa18984[_0x3bf9b6(0x1cf)][_0x3bf9b6(0x205)],'originalVisibility':_0xa18984[_0x3bf9b6(0x1cf)][_0x3bf9b6(0x19a)]}),_0xa18984[_0x3bf9b6(0x1cf)][_0x3bf9b6(0x205)]=_0x3bf9b6(0x228),_0xa18984[_0x3bf9b6(0x1cf)][_0x3bf9b6(0x19a)]=_0x3bf9b6(0x1b4)),_0xa18984=_0xa18984[_0x3bf9b6(0x20e)];}return _0x11940a;}[_0x479915(0x1b2)](){const _0x4015d2=_0x479915;let _0x50a8ea,_0x467d01;return this[_0x4015d2(0x1d0)]?.[_0x4015d2(0x19b)]?(_0x50a8ea=this[_0x4015d2(0x1d0)][_0x4015d2(0x19b)][_0x4015d2(0x214)](!0x0),_0x467d01=this[_0x4015d2(0x1c0)](_0x50a8ea)):(_0x50a8ea=document[_0x4015d2(0x1fc)](_0x4015d2(0x1ea)),_0x467d01=_0x50a8ea),{'calculationContainer':_0x50a8ea,'targetContainer':_0x467d01};}[_0x479915(0x1d7)](){const _0x5c9b16=_0x479915,{calculationContainer:_0x29921c,targetContainer:_0x296306}=this[_0x5c9b16(0x1b2)](),_0x344f2a=this[_0x5c9b16(0x201)]();this[_0x5c9b16(0x1fb)](_0x29921c,_0x344f2a);const _0x14cc07=this[_0x5c9b16(0x1d0)]?.[_0x5c9b16(0x19b)]||this[_0x5c9b16(0x1a1)],_0x35cd30=_0x14cc07?.[_0x5c9b16(0x20e)];_0x35cd30?_0x35cd30[_0x5c9b16(0x1d1)](_0x29921c):document[_0x5c9b16(0x216)][_0x5c9b16(0x1d1)](_0x29921c),_0x29921c[_0x5c9b16(0x197)]=_0x296306;const _0x122e62=this[_0x5c9b16(0x20b)](_0x35cd30||null);return _0x29921c[_0x5c9b16(0x1df)],_0x29921c[_0x5c9b16(0x224)]=_0x122e62,_0x29921c;}[_0x479915(0x1c7)](_0x4b8db9,_0x5c0bea){const _0x1426d2=_0x479915,_0x27c8fa=_0x4b8db9[_0x1426d2(0x197)]||_0x4b8db9,_0x2f61e6=[],{rowCount:_0x72fab6}=this[_0x1426d2(0x1fd)](_0x27c8fa,_0x5c0bea);if(_0x72fab6<=this[_0x1426d2(0x1a9)][_0x1426d2(0x213)])return _0x2f61e6;const _0x11eb19=_0x5c0bea[_0x1426d2(0x1b3)]();for(;_0x11eb19[_0x1426d2(0x1b7)]>0x0;){if(this[_0x1426d2(0x1a7)](_0x4b8db9,_0x27c8fa,_0x11eb19)){const _0x4d5d2f=_0x5c0bea[_0x1426d2(0x1be)](_0x972992=>!_0x11eb19[_0x1426d2(0x21e)](_0x972992));_0x2f61e6[_0x1426d2(0x1e4)](..._0x4d5d2f);break;}if(!_0x11eb19[_0x1426d2(0x1c4)]())break;}return _0x2f61e6;}[_0x479915(0x1fd)](_0x35c501,_0x38fb8b){const _0x59e28c=_0x479915;_0x35c501[_0x59e28c(0x1de)]='',_0x38fb8b[_0x59e28c(0x1d8)](_0x335423=>{const _0x1bb782=_0x59e28c;if(_0x335423[_0x1bb782(0x19b)]){const _0x53853a=_0x335423[_0x1bb782(0x19b)][_0x1bb782(0x214)](!0x0);_0x35c501[_0x1bb782(0x1d1)](_0x53853a);}}),_0x35c501[_0x59e28c(0x1df)];const _0x595f3d=_0x35c501[_0x59e28c(0x20c)],_0x1aaba3=[];return Array[_0x59e28c(0x202)](_0x595f3d)[_0x59e28c(0x1d8)](_0x41ca52=>{const _0x43444f=_0x59e28c,_0x4e3dca=_0x41ca52[_0x43444f(0x1ce)]()[_0x43444f(0x1d3)];_0x1aaba3[_0x43444f(0x1f6)](_0x3daf33=>Math[_0x43444f(0x1ed)](_0x3daf33-_0x4e3dca)<this[_0x43444f(0x1a9)][_0x43444f(0x200)])||_0x1aaba3[_0x43444f(0x1e4)](_0x4e3dca);}),{'rowCount':_0x1aaba3[_0x59e28c(0x1b7)]};}[_0x479915(0x206)](){const _0x373b70=_0x479915,_0x294041=document[_0x373b70(0x1fc)](_0x373b70(0x225));return _0x294041[_0x373b70(0x1db)]=this[_0x373b70(0x1a9)][_0x373b70(0x1b1)][_0x373b70(0x1fa)],this[_0x373b70(0x1a9)][_0x373b70(0x1b1)][_0x373b70(0x1c6)]&&_0x294041[_0x373b70(0x1ab)][_0x373b70(0x19e)](this[_0x373b70(0x1a9)][_0x373b70(0x1b1)][_0x373b70(0x1c6)]),_0x294041[_0x373b70(0x1b5)]=_0x373b70(0x1e5),_0x294041;}[_0x479915(0x1a7)](_0x5264f4,_0x35fe31,_0x1eb7b1){const _0x38349e=_0x479915;this[_0x38349e(0x1fd)](_0x35fe31,_0x1eb7b1);const _0x29eb56=this[_0x38349e(0x206)]();_0x5264f4[_0x38349e(0x1d1)](_0x29eb56),_0x5264f4[_0x38349e(0x1df)];const _0x3aacba=[..._0x35fe31[_0x38349e(0x20c)],_0x29eb56],_0x115f93=[];_0x3aacba[_0x38349e(0x1d8)](_0x39e79a=>{const _0x33fc37=_0x38349e,_0x37624b=_0x39e79a[_0x33fc37(0x1ce)]()[_0x33fc37(0x1d3)];_0x115f93[_0x33fc37(0x1f6)](_0x41f6ee=>Math[_0x33fc37(0x1ed)](_0x41f6ee-_0x37624b)<this[_0x33fc37(0x1a9)][_0x33fc37(0x200)])||_0x115f93[_0x33fc37(0x1e4)](_0x37624b);});const _0x18f777=_0x115f93[_0x38349e(0x1b7)];return _0x29eb56[_0x38349e(0x227)](),_0x18f777<=this[_0x38349e(0x1a9)][_0x38349e(0x213)];}[_0x479915(0x1bd)](_0x370b98,_0x39c50f){const _0x486c32=_0x479915;this[_0x486c32(0x1d6)][_0x486c32(0x1c3)](),this[_0x486c32(0x217)][_0x486c32(0x1c3)](),_0x370b98[_0x486c32(0x1d8)](_0x33b378=>{const _0x27cee5=_0x486c32;_0x39c50f[_0x27cee5(0x21e)](_0x33b378)?this[_0x27cee5(0x217)][_0x27cee5(0x19e)](_0x33b378):this[_0x27cee5(0x1d6)][_0x27cee5(0x19e)](_0x33b378);});}[_0x479915(0x1c9)](_0x47465a){const _0x1fcddf=_0x479915;if(_0x47465a>0x0&&!this[_0x1fcddf(0x1a6)]&&this[_0x1fcddf(0x1fe)](),_0x47465a>0x0&&this[_0x1fcddf(0x1a6)]){const _0x4f08cc=''+this[_0x1fcddf(0x1a9)][_0x1fcddf(0x1e1)]+(_0x47465a<0x63?_0x47465a:'99');this[_0x1fcddf(0x1a6)][_0x1fcddf(0x220)]=_0x4f08cc;}this[_0x1fcddf(0x1c1)](),this[_0x1fcddf(0x211)](),this[_0x1fcddf(0x1c2)]();}[_0x479915(0x1dd)](_0x1222c2,_0x38705f){const _0x3d5e12=_0x479915;this[_0x3d5e12(0x1bd)](_0x1222c2,_0x38705f),this[_0x3d5e12(0x1c9)](_0x38705f[_0x3d5e12(0x1b7)]);}[_0x479915(0x1ca)](){const _0x19c9c0=_0x479915;this[_0x19c9c0(0x1a1)]&&_0x19c9c0(0x20f)!=typeof IntersectionObserver&&(this[_0x19c9c0(0x1d2)]=new IntersectionObserver(_0x218d36=>{const _0x2f0729=_0x19c9c0;_0x218d36[0x0][_0x2f0729(0x1ec)]&&this[_0x2f0729(0x1d5)]&&requestAnimationFrame(()=>{const _0x35c047=_0x2f0729;this[_0x35c047(0x1f9)]();});},{'threshold':0.01,'rootMargin':_0x19c9c0(0x207)}),this[_0x19c9c0(0x1d2)][_0x19c9c0(0x19d)](this[_0x19c9c0(0x1a1)]));}[_0x479915(0x1a2)](){const _0xd11c64=_0x479915;if(!this[_0xd11c64(0x1a1)])return!0x1;if(!this[_0xd11c64(0x1a1)][_0xd11c64(0x1ac)])return!0x1;const _0x46d3bd=this[_0xd11c64(0x1a1)][_0xd11c64(0x1ce)]();if(0x0===_0x46d3bd[_0xd11c64(0x20d)]||0x0===_0x46d3bd[_0xd11c64(0x1ff)])return!0x1;const _0x1cd545=window[_0xd11c64(0x1cb)]||document[_0xd11c64(0x198)][_0xd11c64(0x1e0)],_0x22a6b5=window[_0xd11c64(0x1da)]||document[_0xd11c64(0x198)][_0xd11c64(0x208)],_0x3f0c65=0xc8;return _0x46d3bd[_0xd11c64(0x218)]>=-0xc8&&_0x46d3bd[_0xd11c64(0x1d3)]<=_0x1cd545+_0x3f0c65&&_0x46d3bd[_0xd11c64(0x1f3)]>=-0xc8&&_0x46d3bd[_0xd11c64(0x1f0)]<=_0x22a6b5+_0x3f0c65;}}
|
|
23
|
+
const _0x275cdc=_0x4111;(function(_0xe7119,_0x510e0e){const _0x3ebdcd=_0x4111,_0x544cd8=_0xe7119();while(!![]){try{const _0x6ec5c=parseInt(_0x3ebdcd(0x188))/0x1*(parseInt(_0x3ebdcd(0x184))/0x2)+parseInt(_0x3ebdcd(0x1a0))/0x3*(parseInt(_0x3ebdcd(0x169))/0x4)+parseInt(_0x3ebdcd(0x139))/0x5+-parseInt(_0x3ebdcd(0x190))/0x6+-parseInt(_0x3ebdcd(0x13a))/0x7*(-parseInt(_0x3ebdcd(0x1aa))/0x8)+parseInt(_0x3ebdcd(0x1a3))/0x9*(-parseInt(_0x3ebdcd(0x18b))/0xa)+-parseInt(_0x3ebdcd(0x1be))/0xb;if(_0x6ec5c===_0x510e0e)break;else _0x544cd8['push'](_0x544cd8['shift']());}catch(_0x265e43){_0x544cd8['push'](_0x544cd8['shift']());}}}(_0xe79d,0x8114d));function _0xe79d(){const _0x365318=['appendChild','.ck-ai-chat','_createMockButton','showMoreLabelPrefix','_distributeChips','classList','_parentView','pointerEvents','innerWidth','_intersectionObserver','_overflowChips','_createShowMoreBalloonPanelView','showMoreButton','filter','_applyOverflowResults','auto','height','body','getComputedStyle','setContainerElement','maxVisibleRows','_repinBalloonPanel','300px','_createCalculationContainer','_checkAndHandleOverflow','showMoreButtonView','querySelector','_setupVisibilityObserver','hide','observe','disableAnimationOnEnter','clear','_updateShowMoreButtonVisibility','destroy','hidden','_renderChipsAndCountRows','2692YjAPon','_config','_updateOverflowUI','_updateBalloonContent','_makeAncestorsVisible','getBoundingClientRect','undefined','remove','innerHTML','button','pop','render','_applyCalculationStyles','left','visible\x20!important','parentElement','-9999px','textContent','display','clientWidth','isIntersecting','_handleShowMoreButtonClick','_createShowMoreButton','cloneNode','showMoreBalloon','_calculateContainerWidth','className','46RaALjJ','content','isConnected','ck-calculation-container','35698ROTRmv','innerHeight','showBalloonPanel','19430kCnwBb','50px','visibility','block','show','3910578ZFvEAW','_ancestorsToRestore','execute','pin','top','0px','clientHeight','width','_containerElement','isOn','isVisible','calculationContainer','some','setTemplate','length','_isContainerVisible','3867gSSRJF','_createContainerElements','none','3015eqEgGB','right','_testButtonFit','hideBalloonPanel','_calculateOverflowInContainer','includes','_findTargetContainer','5004728yiMOhp','cssClasses','rowDetectionTolerance','element','_locale','zIndex','from','tagName','+\x201','style','_createShowMoreButtonView','set','reorganizeChips','disconnect','push','opacity','_bodyCollection','div','children','block\x20!important','13331219sUEXwe','position','_pendingCalculation','visible','_showMoreBalloonPanelView','offsetWidth','toLowerCase','add','bottom','forEach','_restoreAncestorVisibility','label','overflowContainer','createElement','_showMoreButtonView','slice','3645860YGOZNy','7SLCxZZ','controlsButton','_visibleChips','documentElement','overflowChips','_targetContainer','boxSizing','abs','extendTemplate','absolute','border-box'];_0xe79d=function(){return _0x365318;};return _0xe79d();}import{View as _0x2c3dd2,BalloonPanelView as _0x4603e4,ButtonView as _0x13022e,clickOutsideHandler as _0x53352b}from'ckeditor5/src/ui.js';import{Collection as _0x3c7d9f}from'ckeditor5/src/utils.js';function _0x4111(_0x333946,_0x839513){const _0xe79d10=_0xe79d();return _0x4111=function(_0x411184,_0x437242){_0x411184=_0x411184-0x133;let _0x250194=_0xe79d10[_0x411184];return _0x250194;},_0x4111(_0x333946,_0x839513);}const an={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},wn=_0x275cdc(0x15b);export class AIChatChipsOverflowManager{[_0x275cdc(0x1ae)];[_0x275cdc(0x16a)];[_0x275cdc(0x13c)];[_0x275cdc(0x14f)];[_0x275cdc(0x137)]=null;[_0x275cdc(0x1c2)]=null;[_0x275cdc(0x198)]=null;[_0x275cdc(0x1ba)];[_0x275cdc(0x14b)]=null;[_0x275cdc(0x14e)]=null;[_0x275cdc(0x1c0)]=!0x1;constructor(_0x1bbc07,_0x4e540e,_0x439718,_0x30e7d4,_0x1bf301){const _0x26cb7d=_0x275cdc;this[_0x26cb7d(0x1ae)]=_0x1bbc07,this[_0x26cb7d(0x13c)]=_0x4e540e,this[_0x26cb7d(0x16a)]={...an,..._0x439718,'cssClasses':{'controlsButton':'','calculationContainer':_0x26cb7d(0x187),..._0x439718[_0x26cb7d(0x1ab)]}},this[_0x26cb7d(0x14f)]=new _0x3c7d9f(),this[_0x26cb7d(0x1ba)]=_0x30e7d4,this[_0x26cb7d(0x14b)]=_0x1bf301||null;}[_0x275cdc(0x158)](_0xc9247){const _0x2e3f10=_0x275cdc;this[_0x2e3f10(0x14e)]&&(this[_0x2e3f10(0x14e)][_0x2e3f10(0x1b7)](),this[_0x2e3f10(0x14e)]=null),this[_0x2e3f10(0x198)]=_0xc9247,this[_0x2e3f10(0x160)]();}get[_0x275cdc(0x15e)](){const _0x47fb17=_0x275cdc;return this[_0x47fb17(0x137)];}get[_0x275cdc(0x13e)](){const _0x10488b=_0x275cdc;return this[_0x10488b(0x14f)];}[_0x275cdc(0x1b6)](){requestAnimationFrame(()=>{const _0x3985d6=_0x4111;this[_0x3985d6(0x15d)]();});}[_0x275cdc(0x18a)](){const _0xca809a=_0x275cdc;this[_0xca809a(0x137)]&&this[_0xca809a(0x1c2)]&&(this[_0xca809a(0x16c)](),this[_0xca809a(0x137)][_0xca809a(0x199)]=!0x0,this[_0xca809a(0x1c2)][_0xca809a(0x18f)](),this[_0xca809a(0x1c2)][_0xca809a(0x193)]({'target':this[_0xca809a(0x137)][_0xca809a(0x1ad)],'limiter':document[_0xca809a(0x15f)](_0xca809a(0x146))}));}[_0x275cdc(0x1a6)](){const _0x23b873=_0x275cdc;this[_0x23b873(0x137)]&&this[_0x23b873(0x1c2)]&&(this[_0x23b873(0x137)][_0x23b873(0x199)]=!0x1,this[_0x23b873(0x1c2)][_0x23b873(0x161)]());}[_0x275cdc(0x164)](){const _0x53c41a=_0x275cdc;this[_0x53c41a(0x14f)][_0x53c41a(0x164)](),this[_0x53c41a(0x1a6)](),this[_0x53c41a(0x165)](),this[_0x53c41a(0x137)]&&(this[_0x53c41a(0x137)][_0x53c41a(0x134)]=''),this[_0x53c41a(0x1c2)]&&this[_0x53c41a(0x1c2)][_0x53c41a(0x185)][_0x53c41a(0x164)]();}[_0x275cdc(0x166)](){const _0x22245c=_0x275cdc;this[_0x22245c(0x14e)]&&(this[_0x22245c(0x14e)][_0x22245c(0x1b7)](),this[_0x22245c(0x14e)]=null),this[_0x22245c(0x137)]&&(this[_0x22245c(0x137)][_0x22245c(0x166)](),this[_0x22245c(0x137)]=null),this[_0x22245c(0x1c2)]&&(this[_0x22245c(0x1c2)][_0x22245c(0x166)](),this[_0x22245c(0x1c2)]=null);}[_0x275cdc(0x15d)](){const _0x1e6b51=_0x275cdc;if(!this[_0x1e6b51(0x198)])return;if(!this[_0x1e6b51(0x19f)]())return void(this[_0x1e6b51(0x1c0)]=!0x0);this[_0x1e6b51(0x1c0)]=!0x1;const _0x2809e1=[...this[_0x1e6b51(0x13c)],...this[_0x1e6b51(0x14f)]],_0x565288=this[_0x1e6b51(0x15c)](),_0x394c22=this[_0x1e6b51(0x1a7)](_0x565288,_0x2809e1),_0x3ef605=_0x565288[_0x1e6b51(0x191)];_0x3ef605&&this[_0x1e6b51(0x133)](_0x3ef605),_0x565288[_0x1e6b51(0x170)](),this[_0x1e6b51(0x153)](_0x2809e1,_0x394c22);}[_0x275cdc(0x17f)](){const _0xcc6485=_0x275cdc;this[_0xcc6485(0x137)]=this[_0xcc6485(0x1b4)](),this[_0xcc6485(0x1c2)]=this[_0xcc6485(0x150)](),this[_0xcc6485(0x137)][_0xcc6485(0x174)](),this[_0xcc6485(0x198)][_0xcc6485(0x145)](this[_0xcc6485(0x137)][_0xcc6485(0x1ad)]),this[_0xcc6485(0x137)]['on'](_0xcc6485(0x192),()=>{const _0x533038=_0xcc6485;this[_0x533038(0x17e)]();}),_0x53352b({'emitter':this[_0xcc6485(0x1c2)],'contextElements':[this[_0xcc6485(0x1c2)][_0xcc6485(0x1ad)],this[_0xcc6485(0x137)][_0xcc6485(0x1ad)]],'callback':()=>this[_0xcc6485(0x1a6)](),'activator':()=>this[_0xcc6485(0x137)][_0xcc6485(0x199)]});}[_0x275cdc(0x1b4)](){const _0x511e39=_0x275cdc,_0x3abbbb=new _0x13022e(this[_0x511e39(0x1ae)]);_0x3abbbb[_0x511e39(0x1b5)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x55db19=[this[_0x511e39(0x16a)][_0x511e39(0x1ab)][_0x511e39(0x151)]];return this[_0x511e39(0x16a)][_0x511e39(0x1ab)][_0x511e39(0x13b)]&&_0x55db19[_0x511e39(0x1b8)](this[_0x511e39(0x16a)][_0x511e39(0x1ab)][_0x511e39(0x13b)]),_0x3abbbb[_0x511e39(0x142)]({'attributes':{'class':_0x55db19}}),_0x3abbbb;}[_0x275cdc(0x150)](){const _0xe6edb4=_0x275cdc,_0x5e7e55=new _0x4603e4(this[_0xe6edb4(0x1ae)]);return _0x5e7e55[_0xe6edb4(0x142)]({'attributes':{'class':this[_0xe6edb4(0x16a)][_0xe6edb4(0x1ab)][_0xe6edb4(0x181)]}}),this[_0xe6edb4(0x1ba)][_0xe6edb4(0x1c5)](_0x5e7e55),_0x5e7e55;}[_0x275cdc(0x16c)](){const _0x54b73e=_0x275cdc;if(this[_0x54b73e(0x1c2)]&&(this[_0x54b73e(0x1c2)][_0x54b73e(0x185)][_0x54b73e(0x164)](),this[_0x54b73e(0x14f)][_0x54b73e(0x19e)]>0x0)){this[_0x54b73e(0x14f)][_0x54b73e(0x1c7)](_0x57f043=>{const _0x3b569b=_0x54b73e;_0x57f043[_0x3b569b(0x163)]();});const _0x1a0c55=new _0x2c3dd2(this[_0x54b73e(0x1ae)]);_0x1a0c55[_0x54b73e(0x19d)]({'tag':_0x54b73e(0x1bb),'attributes':{'class':this[_0x54b73e(0x16a)][_0x54b73e(0x1ab)][_0x54b73e(0x135)]},'children':this[_0x54b73e(0x14f)]}),this[_0x54b73e(0x1c2)][_0x54b73e(0x185)][_0x54b73e(0x1c5)](_0x1a0c55);}}[_0x275cdc(0x17e)](){const _0x1c52ed=_0x275cdc;this[_0x1c52ed(0x137)][_0x1c52ed(0x199)]?this[_0x1c52ed(0x1a6)]():this[_0x1c52ed(0x18a)]();}[_0x275cdc(0x165)](){const _0x4e778f=_0x275cdc,_0x530267=this[_0x4e778f(0x14f)][_0x4e778f(0x19e)]>0x0;this[_0x4e778f(0x137)]?.[_0x4e778f(0x1ad)]&&(this[_0x4e778f(0x137)][_0x4e778f(0x1ad)][_0x4e778f(0x1b3)][_0x4e778f(0x17b)]=_0x530267?'':_0x4e778f(0x1a2));}[_0x275cdc(0x15a)](){const _0x31a11b=_0x275cdc;this[_0x31a11b(0x137)]?.[_0x31a11b(0x199)]&&this[_0x31a11b(0x1c2)]?.[_0x31a11b(0x19a)]&&this[_0x31a11b(0x137)][_0x31a11b(0x1ad)]&&this[_0x31a11b(0x1c2)][_0x31a11b(0x193)]({'target':this[_0x31a11b(0x137)][_0x31a11b(0x1ad)],'limiter':document[_0x31a11b(0x15f)](_0x31a11b(0x146))});}[_0x275cdc(0x1a9)](_0x3265eb){const _0x26f093=_0x275cdc,_0x353e2b=this[_0x26f093(0x198)]?.[_0x26f093(0x1b1)][_0x26f093(0x1c4)]()||_0x26f093(0x1bb),_0x362665=this[_0x26f093(0x198)]?.[_0x26f093(0x14a)];if(_0x362665){const _0x2f155e=_0x362665[0x0]||'',_0xc5eac3=_0x3265eb[_0x26f093(0x15f)]('.'+_0x2f155e),_0x5e9e59=_0x3265eb[_0x26f093(0x15f)](_0x353e2b);return _0xc5eac3||_0x5e9e59||_0x3265eb;}return _0x3265eb[_0x26f093(0x15f)](_0x353e2b)||_0x3265eb;}[_0x275cdc(0x182)](){const _0x426a41=_0x275cdc,_0x16e873=this[_0x426a41(0x14b)]?.[_0x426a41(0x1ad)]||this[_0x426a41(0x198)];if(!_0x16e873)return wn;const _0x53d728=window[_0x426a41(0x157)](_0x16e873)[_0x426a41(0x197)];if(_0x426a41(0x154)===_0x53d728||_0x426a41(0x195)===_0x53d728||!_0x53d728){const _0x1b4964=_0x16e873[_0x426a41(0x178)];if(_0x1b4964){const _0x4ce2c0=window[_0x426a41(0x157)](_0x1b4964);return _0x426a41(0x154)!==_0x4ce2c0[_0x426a41(0x197)]?_0x4ce2c0[_0x426a41(0x197)]:wn;}return wn;}return _0x53d728;}[_0x275cdc(0x175)](_0x3dd86f,_0x3f6f3c){const _0x596f49=_0x275cdc;this[_0x596f49(0x16a)][_0x596f49(0x1ab)][_0x596f49(0x19b)]&&_0x3dd86f[_0x596f49(0x14a)][_0x596f49(0x1c5)](this[_0x596f49(0x16a)][_0x596f49(0x1ab)][_0x596f49(0x19b)]),_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x197)]=_0x3f6f3c,_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x1bf)]=_0x596f49(0x143),_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x194)]=_0x596f49(0x179),_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x176)]=_0x596f49(0x179),_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x1b9)]='0',_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x14c)]=_0x596f49(0x1a2),_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x1af)]='-1',_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x18d)]=_0x596f49(0x177),_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x17b)]=_0x596f49(0x1bd),_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x140)]=_0x596f49(0x144);}[_0x275cdc(0x133)](_0x117064){const _0xe6a9d4=_0x275cdc;_0x117064[_0xe6a9d4(0x1c7)](({element:_0x5a6298,originalDisplay:_0x591804,originalVisibility:_0x1bc9da})=>{const _0xa3589c=_0xe6a9d4;_0x5a6298[_0xa3589c(0x1b3)][_0xa3589c(0x17b)]=_0x591804,_0x5a6298[_0xa3589c(0x1b3)][_0xa3589c(0x18d)]=_0x1bc9da;});}[_0x275cdc(0x16d)](_0x127409){const _0xf2600=_0x275cdc,_0x1d6f17=[];let _0x22b8e3=_0x127409;for(;_0x22b8e3&&_0x22b8e3!==document[_0xf2600(0x156)];){const _0x269225=window[_0xf2600(0x157)](_0x22b8e3);_0xf2600(0x1a2)!==_0x269225[_0xf2600(0x17b)]&&_0xf2600(0x167)!==_0x269225[_0xf2600(0x18d)]||(_0x1d6f17[_0xf2600(0x1b8)]({'element':_0x22b8e3,'originalDisplay':_0x22b8e3[_0xf2600(0x1b3)][_0xf2600(0x17b)],'originalVisibility':_0x22b8e3[_0xf2600(0x1b3)][_0xf2600(0x18d)]}),_0x22b8e3[_0xf2600(0x1b3)][_0xf2600(0x17b)]=_0xf2600(0x18e),_0x22b8e3[_0xf2600(0x1b3)][_0xf2600(0x18d)]=_0xf2600(0x1c1)),_0x22b8e3=_0x22b8e3[_0xf2600(0x178)];}return _0x1d6f17;}[_0x275cdc(0x1a1)](){const _0x5e9c92=_0x275cdc;let _0x523cd7,_0xaf7f81;return this[_0x5e9c92(0x14b)]?.[_0x5e9c92(0x1ad)]?(_0x523cd7=this[_0x5e9c92(0x14b)][_0x5e9c92(0x1ad)][_0x5e9c92(0x180)](!0x0),_0xaf7f81=this[_0x5e9c92(0x1a9)](_0x523cd7)):(_0x523cd7=document[_0x5e9c92(0x136)](_0x5e9c92(0x1bb)),_0xaf7f81=_0x523cd7),{'calculationContainer':_0x523cd7,'targetContainer':_0xaf7f81};}[_0x275cdc(0x15c)](){const _0x265c61=_0x275cdc,{calculationContainer:_0x39fd07,targetContainer:_0x3cce6a}=this[_0x265c61(0x1a1)](),_0x26e180=this[_0x265c61(0x182)]();this[_0x265c61(0x175)](_0x39fd07,_0x26e180);const _0x423b2a=this[_0x265c61(0x14b)]?.[_0x265c61(0x1ad)]||this[_0x265c61(0x198)],_0xa6d6ec=_0x423b2a?.[_0x265c61(0x178)];_0xa6d6ec?_0xa6d6ec[_0x265c61(0x145)](_0x39fd07):document[_0x265c61(0x156)][_0x265c61(0x145)](_0x39fd07),_0x39fd07[_0x265c61(0x13f)]=_0x3cce6a;const _0x2b75da=this[_0x265c61(0x16d)](_0xa6d6ec||null);return _0x39fd07[_0x265c61(0x1c3)],_0x39fd07[_0x265c61(0x191)]=_0x2b75da,_0x39fd07;}[_0x275cdc(0x1a7)](_0x26e930,_0x47d401){const _0x355eb7=_0x275cdc,_0x43f20c=_0x26e930[_0x355eb7(0x13f)]||_0x26e930,_0x1bd419=[],{rowCount:_0x506e2f}=this[_0x355eb7(0x168)](_0x43f20c,_0x47d401);if(_0x506e2f<=this[_0x355eb7(0x16a)][_0x355eb7(0x159)])return _0x1bd419;const _0x5157a4=_0x47d401[_0x355eb7(0x138)]();for(;_0x5157a4[_0x355eb7(0x19e)]>0x0;){if(this[_0x355eb7(0x1a5)](_0x26e930,_0x43f20c,_0x5157a4)){const _0x10b668=_0x47d401[_0x355eb7(0x152)](_0x1db810=>!_0x5157a4[_0x355eb7(0x1a8)](_0x1db810));_0x1bd419[_0x355eb7(0x1b8)](..._0x10b668);break;}if(!_0x5157a4[_0x355eb7(0x173)]())break;}return _0x1bd419;}[_0x275cdc(0x168)](_0x484401,_0x32c2fb){const _0x96b4f6=_0x275cdc;_0x484401[_0x96b4f6(0x171)]='',_0x32c2fb[_0x96b4f6(0x1c7)](_0xc9de34=>{const _0x40fdde=_0x96b4f6;if(_0xc9de34[_0x40fdde(0x1ad)]){const _0x44d237=_0xc9de34[_0x40fdde(0x1ad)][_0x40fdde(0x180)](!0x0);_0x484401[_0x40fdde(0x145)](_0x44d237);}}),_0x484401[_0x96b4f6(0x1c3)];const _0x10231f=_0x484401[_0x96b4f6(0x1bc)],_0x2b6a4a=[];return Array[_0x96b4f6(0x1b0)](_0x10231f)[_0x96b4f6(0x1c7)](_0x5157fd=>{const _0x535d9d=_0x96b4f6,_0x11b067=_0x5157fd[_0x535d9d(0x16e)]()[_0x535d9d(0x194)];_0x2b6a4a[_0x535d9d(0x19c)](_0x5a476a=>Math[_0x535d9d(0x141)](_0x5a476a-_0x11b067)<this[_0x535d9d(0x16a)][_0x535d9d(0x1ac)])||_0x2b6a4a[_0x535d9d(0x1b8)](_0x11b067);}),{'rowCount':_0x2b6a4a[_0x96b4f6(0x19e)]};}[_0x275cdc(0x147)](){const _0xd497=_0x275cdc,_0x5b425b=document[_0xd497(0x136)](_0xd497(0x172));return _0x5b425b[_0xd497(0x183)]=this[_0xd497(0x16a)][_0xd497(0x1ab)][_0xd497(0x151)],this[_0xd497(0x16a)][_0xd497(0x1ab)][_0xd497(0x13b)]&&_0x5b425b[_0xd497(0x14a)][_0xd497(0x1c5)](this[_0xd497(0x16a)][_0xd497(0x1ab)][_0xd497(0x13b)]),_0x5b425b[_0xd497(0x17a)]=_0xd497(0x1b2),_0x5b425b;}[_0x275cdc(0x1a5)](_0x4be23d,_0x37de2e,_0x60a63d){const _0x1a99e3=_0x275cdc;this[_0x1a99e3(0x168)](_0x37de2e,_0x60a63d);const _0x414e6f=this[_0x1a99e3(0x147)]();_0x4be23d[_0x1a99e3(0x145)](_0x414e6f),_0x4be23d[_0x1a99e3(0x1c3)];const _0x29a6f0=[..._0x37de2e[_0x1a99e3(0x1bc)],_0x414e6f],_0x289eac=[];_0x29a6f0[_0x1a99e3(0x1c7)](_0x545ebb=>{const _0x48f249=_0x1a99e3,_0xb3d877=_0x545ebb[_0x48f249(0x16e)]()[_0x48f249(0x194)];_0x289eac[_0x48f249(0x19c)](_0x57e8cc=>Math[_0x48f249(0x141)](_0x57e8cc-_0xb3d877)<this[_0x48f249(0x16a)][_0x48f249(0x1ac)])||_0x289eac[_0x48f249(0x1b8)](_0xb3d877);});const _0x8305e6=_0x289eac[_0x1a99e3(0x19e)];return _0x414e6f[_0x1a99e3(0x170)](),_0x8305e6<=this[_0x1a99e3(0x16a)][_0x1a99e3(0x159)];}[_0x275cdc(0x149)](_0xbadb16,_0x343241){const _0x37a750=_0x275cdc;this[_0x37a750(0x13c)][_0x37a750(0x164)](),this[_0x37a750(0x14f)][_0x37a750(0x164)](),_0xbadb16[_0x37a750(0x1c7)](_0x3e3b0a=>{const _0x44eb1c=_0x37a750;_0x343241[_0x44eb1c(0x1a8)](_0x3e3b0a)?this[_0x44eb1c(0x14f)][_0x44eb1c(0x1c5)](_0x3e3b0a):this[_0x44eb1c(0x13c)][_0x44eb1c(0x1c5)](_0x3e3b0a);});}[_0x275cdc(0x16b)](_0x30f4a5){const _0x3bfd59=_0x275cdc;if(_0x30f4a5>0x0&&!this[_0x3bfd59(0x137)]&&this[_0x3bfd59(0x17f)](),_0x30f4a5>0x0&&this[_0x3bfd59(0x137)]){const _0x3292f9=''+this[_0x3bfd59(0x16a)][_0x3bfd59(0x148)]+(_0x30f4a5<0x63?_0x30f4a5:'99');this[_0x3bfd59(0x137)][_0x3bfd59(0x134)]=_0x3292f9;}this[_0x3bfd59(0x16c)](),this[_0x3bfd59(0x165)](),this[_0x3bfd59(0x15a)]();}[_0x275cdc(0x153)](_0x572bd4,_0x2042fe){const _0x12976f=_0x275cdc;this[_0x12976f(0x149)](_0x572bd4,_0x2042fe),this[_0x12976f(0x16b)](_0x2042fe[_0x12976f(0x19e)]);}[_0x275cdc(0x160)](){const _0x28c838=_0x275cdc;this[_0x28c838(0x198)]&&_0x28c838(0x16f)!=typeof IntersectionObserver&&(this[_0x28c838(0x14e)]=new IntersectionObserver(_0x3cfbbb=>{const _0x4f1702=_0x28c838;_0x3cfbbb[0x0][_0x4f1702(0x17d)]&&this[_0x4f1702(0x1c0)]&&requestAnimationFrame(()=>{const _0x1d11c8=_0x4f1702;this[_0x1d11c8(0x15d)]();});},{'threshold':0.01,'rootMargin':_0x28c838(0x18c)}),this[_0x28c838(0x14e)][_0x28c838(0x162)](this[_0x28c838(0x198)]));}[_0x275cdc(0x19f)](){const _0x4cedf3=_0x275cdc;if(!this[_0x4cedf3(0x198)])return!0x1;if(!this[_0x4cedf3(0x198)][_0x4cedf3(0x186)])return!0x1;const _0x2af3c1=this[_0x4cedf3(0x198)][_0x4cedf3(0x16e)]();if(0x0===_0x2af3c1[_0x4cedf3(0x197)]||0x0===_0x2af3c1[_0x4cedf3(0x155)])return!0x1;const _0x14ebba=window[_0x4cedf3(0x189)]||document[_0x4cedf3(0x13d)][_0x4cedf3(0x196)],_0x3e7c3c=window[_0x4cedf3(0x14d)]||document[_0x4cedf3(0x13d)][_0x4cedf3(0x17c)],_0x499408=0xc8;return _0x2af3c1[_0x4cedf3(0x1c6)]>=-0xc8&&_0x2af3c1[_0x4cedf3(0x194)]<=_0x14ebba+_0x499408&&_0x2af3c1[_0x4cedf3(0x1a4)]>=-0xc8&&_0x2af3c1[_0x4cedf3(0x176)]<=_0x3e7c3c+_0x499408;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1721e5=_0xa356;(function(_0x7df2f8,_0xe6c1e2){const _0x2fe6f6=_0xa356,_0x48f2d9=_0x7df2f8();while(!![]){try{const _0x2e95e6=parseInt(_0x2fe6f6(0x1c3))/0x1*(-parseInt(_0x2fe6f6(0x1bf))/0x2)+parseInt(_0x2fe6f6(0x1cf))/0x3+-parseInt(_0x2fe6f6(0x1dd))/0x4*(-parseInt(_0x2fe6f6(0x1ae))/0x5)+parseInt(_0x2fe6f6(0x1c2))/0x6+-parseInt(_0x2fe6f6(0x1a4))/0x7*(-parseInt(_0x2fe6f6(0x1b7))/0x8)+-parseInt(_0x2fe6f6(0x1ca))/0x9*(-parseInt(_0x2fe6f6(0x1db))/0xa)+-parseInt(_0x2fe6f6(0x1c5))/0xb;if(_0x2e95e6===_0xe6c1e2)break;else _0x48f2d9['push'](_0x48f2d9['shift']());}catch(_0x384d6e){_0x48f2d9['push'](_0x48f2d9['shift']());}}}(_0x5444,0x89e0c));function _0x5444(){const _0x18aaf3=['_isAnimationOnEnterEnabled','4fGqXmw','_createTemplateChildren','removeContextItemChip','3748128JVwWPC','556333ZjKbKO','isVisible','16113053HAcakI','ck-ai-chat-context-chip__label','lastIndexOf','set','ck-ai-chat-context-controls__chip-tooltip','9XdFeds','ck-ai-chat-context-chip','_setupTemplate','disableAnimationOnEnter','setTemplate','1652757lDMtZb','isLoading','itemType','ck-ai-chat-context-chip_document','bindTemplate','content','_initializeProperties','_createTemplateAttributes','execute','selection','element','_createRemoveButton','2513660wugImV','label','4093528DyhBUw','classList','div','type','render','extendTemplate','webkitAnimationEnd','length','ck-ai-chat-context-chip__type-icon','fire','1106IIogCP','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','span','ck-ai-chat-context-chip_new-chip','ck-ai-chat-context-chip_wide','locale','animationend','uiId','tooltip','small','5GxGVKZ','ck-hidden','removeEventListener','add','addEventListener','_setupRemoveButtonEvent','_createIconView','document','slice','35032YMYhGk','_createLoaderIcon','_handleAnimationEndOnce','remove','_createLabelElement','readonly','bind'];_0x5444=function(){return _0x18aaf3;};return _0x5444();}import{ButtonView as _0x11204a,IconView as _0x643b57}from'ckeditor5/src/ui.js';import{IconClose as _0xd1229c,IconDocument as _0x31d831,IconFileUpload as _0x227725,IconLink as _0x5f1d7b,IconSelection as _0x2fc9de}from'@ckeditor/ckeditor5-icons';function _0xa356(_0x57663e,_0x213b3b){const _0x5444e6=_0x5444();return _0xa356=function(_0xa3568b,_0x343df9){_0xa3568b=_0xa3568b-0x19e;let _0x486644=_0x5444e6[_0xa3568b];return _0x486644;},_0xa356(_0x57663e,_0x213b3b);}import{getTranslation as _0x34b1c5}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x189ade}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x227725,'document':_0x31d831,'web-resource':_0x5f1d7b,'text':_0x227725,'selection':_0x2fc9de,'mcp-tool-context':_0x31d831},bn=_0x1721e5(0x1cb),Tn=_0x1721e5(0x1a8),En=_0x1721e5(0x1d2),fn=_0x1721e5(0x1c6),An=_0x1721e5(0x1a2),Cn=_0x1721e5(0x1c9),In='n';export class AIChatContextItemButtonView extends _0x11204a{constructor(_0x43b463,_0x15611a,_0x48dde2,_0x4df8a3,_0x59ce21=!0x1){const _0x2ad080=_0x1721e5;super(_0x43b463),this[_0x2ad080(0x1be)]=_0x4df8a3,this[_0x2ad080(0x1d5)](_0x15611a,_0x48dde2,_0x59ce21),this[_0x2ad080(0x1cc)]();}[_0x1721e5(0x19e)](){const _0x4a03c6=_0x1721e5;super[_0x4a03c6(0x19e)](),this[_0x4a03c6(0x1be)]&&this[_0x4a03c6(0x1d9)]&&(this[_0x4a03c6(0x1d9)][_0x4a03c6(0x1de)][_0x4a03c6(0x1b1)](_0x4a03c6(0x1a7)),this[_0x4a03c6(0x1b9)](this[_0x4a03c6(0x1d9)],()=>{const _0x2a0b42=_0x4a03c6;this[_0x2a0b42(0x1d9)]&&this[_0x2a0b42(0x1d9)][_0x2a0b42(0x1de)][_0x2a0b42(0x1ba)](_0x2a0b42(0x1a7));}));}[_0x1721e5(0x1cd)](){const _0x285821=_0x1721e5;this[_0x285821(0x1be)]=!0x1,this[_0x285821(0x1d9)]&&this[_0x285821(0x1d9)][_0x285821(0x1de)][_0x285821(0x1ba)](_0x285821(0x1a7));}[_0x1721e5(0x1d5)](_0x3ad63a,_0x41d5ea,_0x23c16d){const _0x22c4fc=_0x1721e5;this[_0x22c4fc(0x1c8)](_0x22c4fc(0x1dc),_0x3ad63a[_0x22c4fc(0x1dc)]),this[_0x22c4fc(0x1c8)](_0x22c4fc(0x1ac),!0x0),this[_0x22c4fc(0x1c8)](_0x22c4fc(0x1d1),_0x3ad63a[_0x22c4fc(0x1e0)]),this[_0x22c4fc(0x1c8)]('id',_0x3ad63a[_0x22c4fc(0x1ab)]),this[_0x22c4fc(0x1c8)](_0x22c4fc(0x1bc),_0x41d5ea),this[_0x22c4fc(0x1c8)](_0x22c4fc(0x1d0),_0x23c16d);}[_0x1721e5(0x1cc)](){const _0x41a221=_0x1721e5,_0x4c059f=this[_0x41a221(0x1b4)](),_0x4a3cd0=this[_0x41a221(0x1da)](),_0x28ca32=this[_0x41a221(0x1d3)];this[_0x41a221(0x1ce)]({'tag':_0x41a221(0x1df),'attributes':this[_0x41a221(0x1d6)](_0x28ca32),'children':this[_0x41a221(0x1c0)](_0x4c059f,_0x4a3cd0,_0x28ca32)});}[_0x1721e5(0x1d6)](_0x39b40a){const _0x360ad9=_0x1721e5;return{'class':[bn,_0x39b40a['if'](_0x360ad9(0x1d1),En,_0x47be51=>_0x360ad9(0x1b5)==_0x47be51),_0x39b40a['if'](_0x360ad9(0x1d1),Tn,_0x92f9a1=>_0x360ad9(0x1d8)==_0x92f9a1)],'data-cke-tooltip-text':_0x39b40a['to'](_0x360ad9(0x1dc),On),'data-cke-tooltip-position':In,'data-cke-tooltip-class':Cn};}[_0x1721e5(0x1c0)](_0x174b7a,_0x3424fd,_0x11126d){const _0x5ce04a=_0x1721e5,_0x5e8e68=this[_0x5ce04a(0x1bb)](_0x11126d),_0x2359d1=this[_0x5ce04a(0x1b8)]();return this[_0x5ce04a(0x1bc)]?[_0x174b7a,_0x5e8e68]:[_0x174b7a,_0x2359d1,_0x5e8e68,_0x3424fd];}[_0x1721e5(0x1bb)](_0x1d8d51){const _0x45c3b3=_0x1721e5;return{'tag':_0x45c3b3(0x1a6),'attributes':{'class':fn},'children':[{'text':_0x1d8d51['to'](_0x45c3b3(0x1dc))}]};}[_0x1721e5(0x1da)](){const _0x5e33f3=_0x1721e5,_0x1631ba=new _0x11204a(this[_0x5e33f3(0x1a9)]);return _0x1631ba[_0x5e33f3(0x1c8)]({'label':_0x34b1c5(this[_0x5e33f3(0x1a9)],_0x5e33f3(0x1a5)),'icon':_0xd1229c}),this[_0x5e33f3(0x1b3)](_0x1631ba),_0x1631ba;}[_0x1721e5(0x1b3)](_0x111a0b){const _0x26adfb=_0x1721e5;_0x111a0b['on'](_0x26adfb(0x1d7),()=>{const _0x5c6fb3=_0x26adfb;this[_0x5c6fb3(0x1a3)](_0x5c6fb3(0x1c1),this['id']);});}[_0x1721e5(0x1b4)](){const _0x3bb6f7=_0x1721e5,_0xa0b1f3=this[_0x3bb6f7(0x1d3)],_0x267a26=new _0x643b57();return _0x267a26[_0x3bb6f7(0x1d4)]=xn[this[_0x3bb6f7(0x1d1)]],_0x267a26[_0x3bb6f7(0x19f)]({'attributes':{'class':[An,_0xa0b1f3['if'](_0x3bb6f7(0x1d0),_0x3bb6f7(0x1af),_0x3b5d7d=>_0x3b5d7d)]}}),_0x267a26;}[_0x1721e5(0x1b9)](_0x573bce,_0x1b0b8d){const _0x44647a=_0x1721e5;if(!_0x573bce)return;const _0x4a3c6d=()=>{const _0x5c8ce8=_0xa356;_0x1b0b8d(),_0x573bce[_0x5c8ce8(0x1b0)](_0x5c8ce8(0x1aa),_0x4a3c6d),_0x573bce[_0x5c8ce8(0x1b0)](_0x5c8ce8(0x1a0),_0x4a3c6d);};_0x573bce[_0x44647a(0x1b2)](_0x44647a(0x1aa),_0x4a3c6d),_0x573bce[_0x44647a(0x1b2)](_0x44647a(0x1a0),_0x4a3c6d);}[_0x1721e5(0x1b8)](){const _0x23ec3c=_0x1721e5,_0x3b0023=new _0x189ade(_0x23ec3c(0x1ad));return _0x3b0023[_0x23ec3c(0x1bd)](_0x23ec3c(0x1c4))['to'](this,_0x23ec3c(0x1d0),_0x137c96=>_0x137c96),_0x3b0023;}}function On(_0x288154){const _0x4b9781=_0x1721e5;if(!_0x288154)return _0x288154;if(_0x288154[_0x4b9781(0x1a1)]<=0x78)return _0x288154;const _0x15086f=_0x288154[_0x4b9781(0x1b6)](0x0,0x78),_0x4b2507=_0x15086f[_0x4b9781(0x1c7)]('\x20');return(_0x4b2507>0x0?_0x15086f[_0x4b9781(0x1b6)](0x0,_0x4b2507):_0x15086f)+'…';}
|