@ckeditor/ckeditor5-ai 47.7.4 → 47.7.5
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
|
+
function _0x3040(_0x25bc8c,_0x29758f){const _0x2b2c77=_0x2b2c();return _0x3040=function(_0x30405f,_0x25e540){_0x30405f=_0x30405f-0x1f4;let _0xf3b4f2=_0x2b2c77[_0x30405f];return _0xf3b4f2;},_0x3040(_0x25bc8c,_0x29758f);}const _0x581598=_0x3040;(function(_0x3ce9cb,_0x54a048){const _0x45c1ce=_0x3040,_0x57cca4=_0x3ce9cb();while(!![]){try{const _0x329608=parseInt(_0x45c1ce(0x200))/0x1*(parseInt(_0x45c1ce(0x1ff))/0x2)+-parseInt(_0x45c1ce(0x202))/0x3+-parseInt(_0x45c1ce(0x22b))/0x4+parseInt(_0x45c1ce(0x20a))/0x5+-parseInt(_0x45c1ce(0x270))/0x6+-parseInt(_0x45c1ce(0x208))/0x7*(-parseInt(_0x45c1ce(0x25e))/0x8)+-parseInt(_0x45c1ce(0x222))/0x9*(parseInt(_0x45c1ce(0x23d))/0xa);if(_0x329608===_0x54a048)break;else _0x57cca4['push'](_0x57cca4['shift']());}catch(_0x7eaf91){_0x57cca4['push'](_0x57cca4['shift']());}}}(_0x2b2c,0x93b03));import{CKEditorError as _0x4ee7df,EmitterMixin as _0x2de077,logWarning as _0x1368e1}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x382a40}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x923409,AI_CONTEXT_MODEL_EVENT_NAMES as _0x29fdcb}from'./aichatcontext.js';function _0x2b2c(){const _0x14f299=['fetchConversationMessages','stop','message','startConversation','delegate','start','code','interactionCreated','createReply','title','type','loadSourceResources','isCurrentDocumentInContext','setModel','model','destroy','attributes','sources','modification','splice','role','ai-chat-handle-user-interaction-already-in-progress','1219014DkxwOS','isAvailable','currentInteraction','getCurrentDocumentContext','fire','getPendingContextItems','populateFromMessage','ai-chat-handle-user-interaction-start-failed','setReasoning','1886724HqyviU','isCurrentDocumentInConversation','toLowerCase','chatContext','reasoning','indexOf','sessionId','stack','isFromHistory','isSelectionInContext','addToConversationContext','getCapabilitiesConfig','handleUserInteraction','getAvailableModels','mcp-tool-result','ai-chat-conversation-start-no-model-selected','get','toolName','40CoWdsi','getMessages','ai-chat-conversation-init-from-id-failed','parse','getInteraction','conversationId','getAll','group','setWebSearch','toggleReasoning','removeFromContext','hasOwn','assistant','push','chatCapabilities','createInteraction','url','prompt','conversationInitialized','conversationStarted','appendContent','currentReply','chatModels','removeInteraction','getEditor','selectedModelId','updateCurrentDocumentInContext','_processMessagesToInteractions','addResourceToContext','connector','_handleToolResultData','ai-chat-conversation-set-model-null','error','194456txKrLL','toggleWebSearch','set','load','ai-chat-conversation-already-started','text','addUrlToContext','addToolItemToContext','webSearch','capabilities','ai-chat-handle-user-conversation-not-initialized','_extractContextItems','length','content','addFilesToContext','ai-chat-conversation-start-failed','addSelectionToContext','ai-chat-conversation-set-model-not-available','668700MUmOlT','interactions','setConversationTitle','isStarted','getConversation','addCurrentDocumentToContext','getDocumentContext','fetchConversation','contextItems','options','modelSelected','ai-chat-conversation-init-failed','find','108386LKyeVP','11ZQjFLJ','removeSelectionFromContext','139476BXQrtv','lastInteraction','reset','updateCurrentDocument','user','getModel','56udhydc','init','4928795paOeDJ','selectedModel'];_0x2b2c=function(){return _0x14f299;};return _0x2b2c();}import{AICapabilities as _0x42818f,CAPABILITIES_MODEL_EVENT_NAMES as _0x1fa14b}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x24c707}from'./aichatinteraction.js';import{errorsMap as _0x25b89d}from'../../errorsmap.js';export class AIChatConversation extends _0x2de077(){['id'];[_0x581598(0x1f5)]=!0x1;[_0x581598(0x233)];[_0x581598(0x271)]=[];[_0x581598(0x224)];[_0x581598(0x20b)];[_0x581598(0x25a)];[_0x581598(0x1fb)];constructor(_0xcfd340){const _0x51289e=_0x581598;super(),this[_0x51289e(0x1fb)]=_0xcfd340,this[_0x51289e(0x25a)]=_0xcfd340[_0x51289e(0x25a)],this[_0x51289e(0x253)]=_0xcfd340[_0x51289e(0x253)],this['id']=_0xcfd340[_0x51289e(0x242)],this[_0x51289e(0x233)]=_0xcfd340[_0x51289e(0x233)];}async[_0x581598(0x209)](_0x5bb7a6){const _0x1d2bfd=_0x581598;try{this[_0x1d2bfd(0x22e)]=new _0x923409({'connector':this[_0x1d2bfd(0x25a)],'config':_0x5bb7a6,'ownerId':this['id']}),this[_0x1d2bfd(0x22e)][_0x1d2bfd(0x210)](..._0x29fdcb)['to'](this),this[_0x1d2bfd(0x22e)][_0x1d2bfd(0x209)](),this[_0x1d2bfd(0x24b)]=new _0x42818f(),this[_0x1d2bfd(0x24b)][_0x1d2bfd(0x210)](..._0x1fa14b)['to'](this),this[_0x1d2bfd(0x24b)][_0x1d2bfd(0x209)]();const _0x43650d=await this[_0x1d2bfd(0x253)][_0x1d2bfd(0x238)]();this[_0x1d2bfd(0x226)](_0x1d2bfd(0x24f),{'availableModels':_0x43650d});const _0x281d4f=await this[_0x1d2bfd(0x253)][_0x1d2bfd(0x207)](this[_0x1d2bfd(0x1fb)][_0x1d2bfd(0x256)]);_0x281d4f&&await this[_0x1d2bfd(0x219)](_0x281d4f);}catch(_0x4ee2ff){const _0x576640=new _0x4ee7df(_0x1d2bfd(0x1fd),null,{'message':_0x4ee2ff[_0x1d2bfd(0x20e)]||_0x4ee2ff});_0x576640[_0x1d2bfd(0x232)]=_0x4ee2ff[_0x1d2bfd(0x232)],this[_0x1d2bfd(0x226)](_0x1d2bfd(0x25d),{'error':_0x576640});}}async[_0x581598(0x211)](){const _0x240958=_0x581598;if(this[_0x240958(0x1f5)])throw new _0x4ee7df(_0x240958(0x262),null,{'conversation':this});if(!this[_0x240958(0x20b)])throw new _0x4ee7df(_0x240958(0x23a),null,{'conversation':this});try{const {id:_0x38b4c9}=await this[_0x240958(0x25a)][_0x240958(0x20f)](this['id'],this[_0x240958(0x1fb)][_0x240958(0x244)])[_0x240958(0x1f6)]();this['id']=_0x38b4c9,this[_0x240958(0x1f5)]=!0x0,this[_0x240958(0x226)](_0x240958(0x250),{'conversationId':this['id'],'selectedModel':this[_0x240958(0x20b)]});}catch(_0x1ab5c9){const _0x2a4358=new _0x4ee7df(_0x240958(0x26d),null,{'message':_0x1ab5c9[_0x240958(0x20e)],'conversationId':this['id']});throw _0x2a4358[_0x240958(0x232)]=_0x1ab5c9[_0x240958(0x232)],this[_0x240958(0x226)](_0x240958(0x25d),{'error':_0x2a4358}),_0x2a4358;}}async[_0x581598(0x261)](_0x37cd86,_0x203b6c){const _0x4a1edd=_0x581598;try{const _0x1caa45=await this[_0x4a1edd(0x25a)][_0x4a1edd(0x1f9)](_0x37cd86)[_0x4a1edd(0x1f6)](),_0x4202ed=await this[_0x4a1edd(0x25a)][_0x4a1edd(0x20c)](_0x37cd86)[_0x4a1edd(0x23e)](),_0x5a1c5e=_0x4202ed[0x0][_0x4a1edd(0x21a)];this[_0x4a1edd(0x1f5)]=!0x0,this['id']=_0x1caa45['id'],_0x4a1edd(0x215)in _0x1caa45?this[_0x4a1edd(0x226)](_0x4a1edd(0x1f4),_0x1caa45[_0x4a1edd(0x215)],!0x0):this[_0x4a1edd(0x226)](_0x4a1edd(0x1f4),'',!0x0);const _0x2add44=(await this[_0x4a1edd(0x253)][_0x4a1edd(0x243)]())[_0x4a1edd(0x1fe)](_0x2d3fc7=>_0x2d3fc7['id'][_0x4a1edd(0x22d)]()===_0x5a1c5e[_0x4a1edd(0x22d)]());return this[_0x4a1edd(0x20b)]=_0x2add44,this[_0x4a1edd(0x226)](_0x4a1edd(0x1fc),{'selectedModel':_0x2add44,'isDisabled':!0x0}),await this[_0x4a1edd(0x258)](_0x4202ed,_0x203b6c,_0x5a1c5e),this[_0x4a1edd(0x224)]=void 0x0,this;}catch(_0x1adfc0){const _0x447878=new _0x4ee7df(_0x4a1edd(0x23f),null,{'message':_0x1adfc0[_0x4a1edd(0x20e)],'conversationId':_0x37cd86});throw _0x447878[_0x4a1edd(0x232)]=_0x1adfc0[_0x4a1edd(0x232)],this[_0x4a1edd(0x226)](_0x4a1edd(0x25d),{'error':_0x447878}),_0x447878;}}async[_0x581598(0x258)](_0x222daa,_0x162cc0,_0x1b0165){const _0x26205d=_0x581598;let _0xeb6cab;for(const _0x2fd41f of _0x222daa)if(_0x26205d(0x206)===_0x2fd41f[_0x26205d(0x220)]){const _0x507449=await this[_0x26205d(0x269)](_0x2fd41f),_0x5f387a={'isReasoningEnabled':Object[_0x26205d(0x248)](_0x2fd41f[_0x26205d(0x267)],_0x26205d(0x22f)),'isWebSearchEnabled':Object[_0x26205d(0x248)](_0x2fd41f[_0x26205d(0x267)],_0x26205d(0x266))};_0xeb6cab=this[_0x26205d(0x24c)]({'userMessage':_0x2fd41f[_0x26205d(0x24e)],'contextItems':_0x507449,'capabilities':_0x5f387a,'modelId':_0x1b0165,'attributes':_0x2fd41f[_0x26205d(0x21c)]}),this[_0x26205d(0x224)]=_0xeb6cab,this[_0x26205d(0x22e)][_0x26205d(0x235)](this[_0x26205d(0x224)][_0x26205d(0x1fa)]);}else{if(_0x26205d(0x249)===_0x2fd41f[_0x26205d(0x220)]&&_0xeb6cab){const _0x321bc1=[];for(const _0x5d9c59 of _0x2fd41f[_0x26205d(0x26b)])switch(_0x5d9c59[_0x26205d(0x216)]){case _0x26205d(0x263):case _0x26205d(0x21e):{const _0x2d3661=_0xeb6cab[_0x26205d(0x1f8)]()?.[_0x26205d(0x231)]!==_0x162cc0;_0xeb6cab[_0x26205d(0x252)]=_0xeb6cab[_0x26205d(0x214)]({'type':_0x5d9c59[_0x26205d(0x216)],'isDone':!0x0,'interactionId':_0xeb6cab['id'],'areActionsDisabled':_0x2d3661}),_0xeb6cab[_0x26205d(0x252)][_0x26205d(0x251)](_0x5d9c59[_0x26205d(0x26b)]),_0x321bc1[_0x26205d(0x26a)]>0x0&&(_0xeb6cab[_0x26205d(0x252)][_0x26205d(0x21d)]=_0x321bc1[_0x26205d(0x21f)](0x0));break;}case _0x26205d(0x24d):_0x321bc1[_0x26205d(0x24a)](_0x5d9c59);break;case _0x26205d(0x239):{const {data:_0x571e66,attributes:_0x1c5a25}=JSON[_0x26205d(0x240)](_0x5d9c59[_0x26205d(0x26b)]);_0xeb6cab[_0x26205d(0x25b)]({'toolName':_0x5d9c59[_0x26205d(0x23c)],'data':_0x571e66,'attributes':_0x1c5a25});break;}}}}}async[_0x581598(0x269)](_0x5c49e0){const _0x42456d=_0x581598,_0x1dd133=new Map();if(!_0x5c49e0[_0x42456d(0x26b)])return _0x1dd133;for(const _0x11b600 of _0x5c49e0[_0x42456d(0x26b)]){const _0x2f16e7=await this[_0x42456d(0x22e)][_0x42456d(0x228)](_0x11b600);_0x2f16e7&&_0x1dd133[_0x42456d(0x260)](_0x2f16e7['id'],_0x2f16e7);}return _0x1dd133;}async[_0x581598(0x237)]({userMessage:_0x24deb6,attributes:_0xf1960f}){const _0x5cbc32=_0x581598;if(!this[_0x5cbc32(0x1f5)])throw new _0x4ee7df(_0x5cbc32(0x268),null,{'conversation':this});if(this[_0x5cbc32(0x224)])throw new _0x4ee7df(_0x5cbc32(0x221),null,{'conversation':this});try{const _0x159dba=this[_0x5cbc32(0x22e)][_0x5cbc32(0x227)](),_0x2d2080=this[_0x5cbc32(0x24b)][_0x5cbc32(0x236)](),_0x131ba3=this[_0x5cbc32(0x20b)]['id'];this[_0x5cbc32(0x224)]=this[_0x5cbc32(0x24c)]({'userMessage':_0x24deb6,'contextItems':_0x159dba,'capabilities':_0x2d2080,'modelId':_0x131ba3,'attributes':_0xf1960f}),await this[_0x5cbc32(0x224)][_0x5cbc32(0x211)](),this[_0x5cbc32(0x22e)][_0x5cbc32(0x235)](this[_0x5cbc32(0x224)][_0x5cbc32(0x1fa)]);}catch(_0x42847b){if(_0x42847b instanceof _0x4ee7df)this[_0x5cbc32(0x226)](_0x5cbc32(0x25d),{'interactionId':this[_0x5cbc32(0x224)]?this[_0x5cbc32(0x224)]['id']:void 0x0,'error':_0x42847b});else{const _0x6839c5=_0x25b89d[_0x5cbc32(0x23b)](_0x42847b[_0x5cbc32(0x212)])||_0x5cbc32(0x229);this[_0x5cbc32(0x226)](_0x5cbc32(0x25d),{'interactionId':this[_0x5cbc32(0x224)]?this[_0x5cbc32(0x224)]['id']:void 0x0,'error':new _0x4ee7df(_0x6839c5,null,{'error':_0x42847b})});}}finally{this[_0x5cbc32(0x224)]?.[_0x5cbc32(0x20d)](),this[_0x5cbc32(0x224)]=void 0x0;}}[_0x581598(0x24c)]({userMessage:_0x1a439e,contextItems:_0x40fc6d,capabilities:_0x2e757c,modelId:_0x564899,attributes:_0x42aa7d}){const _0x405b33=_0x581598,_0x50460a=new _0x24c707({'userMessage':_0x1a439e,'contextItems':_0x40fc6d,'capabilities':_0x2e757c,'conversationId':this['id'],'connector':this[_0x405b33(0x25a)],'editor':this[_0x405b33(0x1fb)][_0x405b33(0x255)]&&this[_0x405b33(0x1fb)][_0x405b33(0x255)](),'model':_0x564899,'attributes':_0x42aa7d});return _0x50460a[_0x405b33(0x210)](..._0x382a40)['to'](this),this[_0x405b33(0x271)][_0x405b33(0x24a)](_0x50460a),this[_0x405b33(0x226)](_0x405b33(0x213),_0x50460a),_0x50460a;}[_0x581598(0x241)](_0x4e0be8){const _0x2310f7=_0x581598;return this[_0x2310f7(0x271)][_0x2310f7(0x1fe)](_0x7dc2e=>_0x7dc2e['id']===_0x4e0be8);}[_0x581598(0x254)](_0x43ca42){const _0x45bb35=_0x581598,_0x4598d2=this[_0x45bb35(0x241)](_0x43ca42);_0x4598d2&&(_0x4598d2[_0x45bb35(0x21b)](),this[_0x45bb35(0x271)][_0x45bb35(0x21f)](this[_0x45bb35(0x271)][_0x45bb35(0x230)](_0x4598d2),0x1));}get[_0x581598(0x203)](){const _0x472617=_0x581598;return this[_0x472617(0x271)][this[_0x472617(0x271)][_0x472617(0x26a)]-0x1];}[_0x581598(0x1f7)](_0x3731bb){const _0x1e4b26=_0x581598;this[_0x1e4b26(0x22e)][_0x1e4b26(0x1f7)](_0x3731bb);}async[_0x581598(0x257)]({content:_0x567cc8,version:_0x1241d6,sessionId:_0x559eae,selections:_0x2aed54}){const _0x4e61b1=_0x581598;await this[_0x4e61b1(0x22e)][_0x4e61b1(0x205)](_0x567cc8,_0x1241d6,_0x559eae,_0x2aed54);}[_0x581598(0x225)](){const _0x3c8a7b=_0x581598;return this[_0x3c8a7b(0x224)]?.[_0x3c8a7b(0x1f8)]()?.[_0x3c8a7b(0x26b)]||'';}[_0x581598(0x26e)](_0x2f4b33){const _0xff71d0=_0x581598;this[_0xff71d0(0x22e)][_0xff71d0(0x26e)](_0x2f4b33);}[_0x581598(0x201)](){const _0x23766d=_0x581598;this[_0x23766d(0x22e)][_0x23766d(0x201)]();}[_0x581598(0x26c)](_0x40f8b8){const _0x2203b4=_0x581598;this[_0x2203b4(0x22e)][_0x2203b4(0x26c)](_0x40f8b8);}[_0x581598(0x264)](_0x1a498b){const _0x404d7f=_0x581598;this[_0x404d7f(0x22e)][_0x404d7f(0x264)](_0x1a498b);}[_0x581598(0x265)](_0x4b8c6b){const _0xb2bcb3=_0x581598;this[_0xb2bcb3(0x22e)][_0xb2bcb3(0x265)](_0x4b8c6b);}[_0x581598(0x259)](_0x1a842a,_0x181bf1){const _0x1cb1b1=_0x581598;this[_0x1cb1b1(0x22e)][_0x1cb1b1(0x259)](_0x1a842a,_0x181bf1);}[_0x581598(0x217)](_0x4faed1,_0x51915e,_0x1c6f18){const _0x326a34=_0x581598;return this[_0x326a34(0x22e)][_0x326a34(0x217)](_0x4faed1,_0x51915e,_0x1c6f18);}[_0x581598(0x247)](_0x25c5bf){const _0x121476=_0x581598;this[_0x121476(0x22e)][_0x121476(0x247)](_0x25c5bf);}[_0x581598(0x245)](_0x560ab0){const _0x4ce08a=_0x581598;this[_0x4ce08a(0x24b)][_0x4ce08a(0x245)](_0x560ab0);}[_0x581598(0x25f)](){const _0x30aaa2=_0x581598;this[_0x30aaa2(0x24b)][_0x30aaa2(0x25f)]();}[_0x581598(0x22a)](_0x5a7d21){const _0x552a7f=_0x581598;this[_0x552a7f(0x24b)][_0x552a7f(0x22a)](_0x5a7d21);}[_0x581598(0x246)](){const _0x12d557=_0x581598;this[_0x12d557(0x24b)][_0x12d557(0x246)]();}[_0x581598(0x218)](){const _0x5bc562=_0x581598;return this[_0x5bc562(0x22e)][_0x5bc562(0x218)]();}[_0x581598(0x22c)](){const _0x100da1=_0x581598;return this[_0x100da1(0x22e)][_0x100da1(0x22c)]();}[_0x581598(0x234)](){const _0x2246a3=_0x581598;return this[_0x2246a3(0x22e)][_0x2246a3(0x234)]();}async[_0x581598(0x219)](_0x203670){const _0x1471c2=_0x581598;_0x203670?!0x1===await this[_0x1471c2(0x253)][_0x1471c2(0x223)](_0x203670)&&(_0x1368e1(_0x1471c2(0x26f),{'conversation':this,'model':_0x203670}),_0x203670=(await this[_0x1471c2(0x253)][_0x1471c2(0x238)]())[0x0]):(_0x1368e1(_0x1471c2(0x25c),{'conversation':this}),_0x203670=(await this[_0x1471c2(0x253)][_0x1471c2(0x238)]())[0x0]),_0x203670['id']!==this[_0x1471c2(0x20b)]?.['id']&&(this[_0x1471c2(0x20b)]=_0x203670,this[_0x1471c2(0x24b)][_0x1471c2(0x204)](),this[_0x1471c2(0x226)](_0x1471c2(0x1fc),{'selectedModel':_0x203670}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x43c613=_0x33b3;function _0xc257(){var _0x8fa042=['1ahcFSW','2245444tnzBAx','5gVikER','conversationId','userMessage','mapContextItemsToRequestData','contextItems','1358826wKPUzR','10rsTXPh','attributes','7704708eIrVwR','model','34137AOchKW','capabilities','366459Awvedm','getDocumentContext','sendRequest','connector','get','current-document','7WKFrjO','getCapabilitiesRequestData','5561416ooQJtu','queryAssistant','826662jZIomB'];_0xc257=function(){return _0x8fa042;};return _0xc257();}(function(_0x143d52,_0x26b036){var _0x448c09=_0x33b3,_0x451e7c=_0x143d52();while(!![]){try{var _0x54de86=-parseInt(_0x448c09(0x106))/0x1*(-parseInt(_0x448c09(0x10d))/0x2)+parseInt(_0x448c09(0xfb))/0x3+parseInt(_0x448c09(0x107))/0x4*(-parseInt(_0x448c09(0x108))/0x5)+parseInt(_0x448c09(0x105))/0x6+parseInt(_0x448c09(0x101))/0x7*(parseInt(_0x448c09(0x103))/0x8)+parseInt(_0x448c09(0xf9))/0x9*(parseInt(_0x448c09(0x10e))/0xa)+-parseInt(_0x448c09(0xf7))/0xb;if(_0x54de86===_0x26b036)break;else _0x451e7c['push'](_0x451e7c['shift']());}catch(_0x106a68){_0x451e7c['push'](_0x451e7c['shift']());}}}(_0xc257,0x5becc));import{AICapabilities as _0x4d3242}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x32ddac}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4cdb7e}from'./aichatcontext.js';function _0x33b3(_0x2935bb,_0x5c5ed8){var _0xc257f2=_0xc257();return _0x33b3=function(_0x33b3c2,_0x521c8b){_0x33b3c2=_0x33b3c2-0xf7;var _0x555ef4=_0xc257f2[_0x33b3c2];return _0x555ef4;},_0x33b3(_0x2935bb,_0x5c5ed8);}export class AIChatInteraction extends _0x32ddac{[_0x43c613(0x10a)];[_0x43c613(0x109)];[_0x43c613(0x10c)]=new Map();[_0x43c613(0xf8)];[_0x43c613(0x10f)];constructor(_0x2876c4){var _0x586191=_0x43c613;super(_0x2876c4),this[_0x586191(0x109)]=_0x2876c4[_0x586191(0x109)],this[_0x586191(0x10c)]=_0x2876c4[_0x586191(0x10c)],this[_0x586191(0xfa)]=_0x2876c4[_0x586191(0xfa)],this[_0x586191(0x10a)]=_0x2876c4[_0x586191(0x10a)],this[_0x586191(0xf8)]=_0x2876c4[_0x586191(0xf8)],this[_0x586191(0x10f)]=_0x2876c4[_0x586191(0x10f)];}async[_0x43c613(0xfd)](){var _0x28fab7=_0x43c613;return this[_0x28fab7(0xfe)][_0x28fab7(0x104)]({'message':this[_0x28fab7(0x10a)],'conversationId':this[_0x28fab7(0x109)],'parts':_0x4cdb7e[_0x28fab7(0x10b)](this[_0x28fab7(0x10c)]),'capabilities':_0x4d3242[_0x28fab7(0x102)](this[_0x28fab7(0xfa)]),'model':this[_0x28fab7(0xf8)],'attributes':this[_0x28fab7(0x10f)]});}[_0x43c613(0xfc)](){var _0x365eb0=_0x43c613;return this[_0x365eb0(0x10c)][_0x365eb0(0xff)](_0x365eb0(0x100));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb844e6=_0x43c0;(function(_0x19594e,_0x53384b){const _0x3da60e=_0x43c0,_0x11914d=_0x19594e();while(!![]){try{const _0x28a317=parseInt(_0x3da60e(0xaf))/0x1*(-parseInt(_0x3da60e(0x88))/0x2)+-parseInt(_0x3da60e(0xd4))/0x3*(parseInt(_0x3da60e(0xa9))/0x4)+-parseInt(_0x3da60e(0x9e))/0x5+-parseInt(_0x3da60e(0xb6))/0x6+parseInt(_0x3da60e(0xcc))/0x7+parseInt(_0x3da60e(0xb9))/0x8+parseInt(_0x3da60e(0xc8))/0x9;if(_0x28a317===_0x53384b)break;else _0x11914d['push'](_0x11914d['shift']());}catch(_0x15a917){_0x11914d['push'](_0x11914d['shift']());}}}(_0x52b9,0xe9237));import{FocusTracker as _0xd5684c,KeystrokeHandler as _0x41d9d1}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x31d441}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x23f45d}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x5e3b07}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x12497c}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x3dd151,FocusCycler as _0xe74c1e,View as _0x58baa1}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x14556c}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x49d422,IconChevronUp as _0x1add08}from'ckeditor5/src/icons.js';import{getTranslation as _0x1398c4}from'../../aicore/utils/common-translations.js';function _0x52b9(){const _0x3d6925=['7365305QAsbvk','_miniToolbarView','insertSuggestion','ck-ai-chat-balloon-main','tab','focus','includes','ck-ai-chat-balloon__toolbar-container','change:_state','focusFirst','focusLast','605716HeEbcm','setState','_createNextButtonView','keepErrors','toggleSuggestionDisplayMode','hideError','30VYQFcd','isShowChangesOn','destroy','isTrackChangesOn','_isErrorVisible','pending','render','10717392pQqDAq','change:isTrackChangesOn','focusCycler','11665640CliVmS','set','fire','setTemplate','showNext','ck-ai-chat-balloon-main_state_','listenTo','createCollection','showPrevious','has','_focusTracker','showDiff','update','togglePartToolbarEnabled','_state','13030722zygYmJ','_toolbarContainerView','toggleShowChanges','showError','11653348BAifSH','execute','isVisible','_partToolbarView','showBlockingError','nextButtonView','locale','isEnabled','3FOcrSV','setButtonsVisibility','full','bindTemplate','toggleRotatorButtonsVisibility','_focusables','shift\x20+\x20tab','13678zRWwnS','_stateView','_togglePartToolbarButtonsVisibility','addMany','_keystrokes','availableActions','previousButtonView','element','_streamableContentView','AI_BALLOON_PREVIOUS_LABEL','_config','div','_createPreviousButtonView','applySuggestion','delegate','add','children','AI_BALLOON_NEXT_LABEL','rejectSuggestion','updateContent','bind','_errorView'];_0x52b9=function(){return _0x3d6925;};return _0x52b9();}import'../../../theme/aichat/aichatballoon.css';function _0x43c0(_0x4e3fd1,_0x3cde39){const _0x52b933=_0x52b9();return _0x43c0=function(_0x43c04f,_0x40e25e){_0x43c04f=_0x43c04f-0x87;let _0x330f98=_0x52b933[_0x43c04f];return _0x330f98;},_0x43c0(_0x4e3fd1,_0x3cde39);}export class AIChatBalloonView extends _0x12497c{[_0xb844e6(0x98)];[_0xb844e6(0xd1)];[_0xb844e6(0x8e)];[_0xb844e6(0xb8)];[_0xb844e6(0xd9)];[_0xb844e6(0xc3)];[_0xb844e6(0x8c)];[_0xb844e6(0x92)];[_0xb844e6(0x90)];[_0xb844e6(0xc9)];[_0xb844e6(0xcf)];[_0xb844e6(0x89)];[_0xb844e6(0x9f)];constructor(_0x2ec1c8,_0x14e0f1){const _0x16eb46=_0xb844e6;super(_0x2ec1c8);const _0xa95fe6=this[_0x16eb46(0xd7)];this[_0x16eb46(0xba)](_0x16eb46(0xc4),!0x1),this[_0x16eb46(0xba)](_0x16eb46(0xc7),_0x16eb46(0xb4)),this[_0x16eb46(0xc3)]=new _0xd5684c(),this[_0x16eb46(0x8c)]=new _0x41d9d1(),this[_0x16eb46(0xd9)]=this[_0x16eb46(0xc0)](),this[_0x16eb46(0xb8)]=new _0xe74c1e({'focusables':this[_0x16eb46(0xd9)],'focusTracker':this[_0x16eb46(0xc3)],'keystrokeHandler':this[_0x16eb46(0x8c)],'actions':{'focusPrevious':_0x16eb46(0x87),'focusNext':_0x16eb46(0xa2)}}),this[_0x16eb46(0x92)]=_0x14e0f1,this[_0x16eb46(0xd1)]=this[_0x16eb46(0xab)](),this[_0x16eb46(0x8e)]=this[_0x16eb46(0x94)](),this[_0x16eb46(0x90)]=new _0x31d441(_0x2ec1c8),this[_0x16eb46(0xcf)]=new _0x23f45d(_0x2ec1c8,_0x14e0f1[_0x16eb46(0x8d)]),this[_0x16eb46(0xcf)][_0x16eb46(0x96)](_0x16eb46(0x95),_0x16eb46(0xa0),_0x16eb46(0x9a))['to'](this),this[_0x16eb46(0x8a)](_0x14e0f1),this[_0x16eb46(0x89)]=new _0x14556c(_0x2ec1c8),this[_0x16eb46(0x89)][_0x16eb46(0xce)]=!0x1,this[_0x16eb46(0x9f)]=new _0x5e3b07(_0x2ec1c8,{'showChanges':_0x16eb46(0xd6)}),this[_0x16eb46(0x9f)][_0x16eb46(0x9c)](_0x16eb46(0xb0))['to'](this,_0x16eb46(0xc4)),this[_0x16eb46(0x9f)]['on'](_0x16eb46(0xca),()=>{const _0x74bd72=_0x16eb46;this[_0x74bd72(0xbb)](_0x74bd72(0xad));}),this[_0x16eb46(0xc9)]=new AIChatBalloonToolbarContainerView(_0x2ec1c8,[this[_0x16eb46(0xcf)],this[_0x16eb46(0x89)],this[_0x16eb46(0x9f)]]),this[_0x16eb46(0x98)]=this[_0x16eb46(0xc0)]([this[_0x16eb46(0x90)],this[_0x16eb46(0xc9)]]),this['on'](_0x16eb46(0xa6),(_0x5e0e46,_0x3b5b44,_0xa9adf0,_0x4eb5b5)=>{const _0x1b6217=_0x16eb46;let _0xbabb24,_0x1a4973;_0x1b6217(0xb4)===_0x4eb5b5?(_0xbabb24=this[_0x1b6217(0xcf)],_0x1a4973=this[_0x1b6217(0x89)]):(_0xbabb24=this[_0x1b6217(0x89)],_0x1a4973=this[_0x1b6217(0xcf)]),this[_0x1b6217(0x89)][_0x1b6217(0xaa)](_0xa9adf0),_0xbabb24[_0x1b6217(0xce)]=!0x1,_0x1a4973[_0x1b6217(0xce)]=!0x0;}),this[_0x16eb46(0xbc)]({'tag':_0x16eb46(0x93),'attributes':{'class':['ck',_0x16eb46(0xa1),_0xa95fe6['to'](_0x16eb46(0xc7),_0x53ff5b=>_0x16eb46(0xbe)+_0x53ff5b)]},'children':this[_0x16eb46(0x98)]}),this['on'](_0x16eb46(0xb7),()=>{const _0x165d8e=_0x16eb46;this[_0x165d8e(0x8a)](_0x14e0f1);});}[_0xb844e6(0xb5)](){const _0x34a6f8=_0xb844e6;super[_0x34a6f8(0xb5)](),this[_0x34a6f8(0xd1)][_0x34a6f8(0xb5)](),this[_0x34a6f8(0x8e)][_0x34a6f8(0xb5)](),this[_0x34a6f8(0xc3)][_0x34a6f8(0x97)](this[_0x34a6f8(0x8f)]),this[_0x34a6f8(0xc3)][_0x34a6f8(0x97)](this[_0x34a6f8(0xd1)]),this[_0x34a6f8(0xc3)][_0x34a6f8(0x97)](this[_0x34a6f8(0x8e)]),this[_0x34a6f8(0xc3)][_0x34a6f8(0x97)](this[_0x34a6f8(0x9f)]),this[_0x34a6f8(0xc3)][_0x34a6f8(0x97)](this[_0x34a6f8(0xcf)]),this[_0x34a6f8(0x8c)][_0x34a6f8(0xbf)](this[_0x34a6f8(0x8f)]),this[_0x34a6f8(0x8c)][_0x34a6f8(0xbf)](this[_0x34a6f8(0xd1)][_0x34a6f8(0x8f)]),this[_0x34a6f8(0x8c)][_0x34a6f8(0xbf)](this[_0x34a6f8(0x8e)][_0x34a6f8(0x8f)]),this[_0x34a6f8(0xd9)][_0x34a6f8(0x8b)]([this[_0x34a6f8(0xd1)],this[_0x34a6f8(0x8e)],this[_0x34a6f8(0xcf)],this[_0x34a6f8(0x9f)]]);}[_0xb844e6(0xb1)](){const _0x6dc506=_0xb844e6;super[_0x6dc506(0xb1)](),this[_0x6dc506(0x8e)][_0x6dc506(0xb1)](),this[_0x6dc506(0xd1)][_0x6dc506(0xb1)]();}[_0xb844e6(0xa3)](){const _0x294314=_0xb844e6;this[_0x294314(0xb8)][_0x294314(0xa7)]();}[_0xb844e6(0xa8)](){const _0x4af16c=_0xb844e6;this[_0x4af16c(0xb8)][_0x4af16c(0xa8)]();}async[_0xb844e6(0x9b)](_0x4bf51e){const _0x266806=_0xb844e6;_0x4bf51e?.[_0x266806(0xac)]||this[_0x266806(0xae)](),await this[_0x266806(0x90)][_0x266806(0xc5)](_0x4bf51e);}[_0xb844e6(0xaa)](_0x3c96e6){const _0x18ae96=_0xb844e6;this[_0x18ae96(0xc7)]=_0x3c96e6;}[_0xb844e6(0xcb)](_0x43a430){const _0x349c6d=_0xb844e6;super[_0x349c6d(0xcb)](_0x43a430),this[_0x349c6d(0x98)][_0x349c6d(0xc2)](this[_0x349c6d(0x9d)])||this[_0x349c6d(0x98)][_0x349c6d(0x97)](this[_0x349c6d(0x9d)],0x0);}[_0xb844e6(0xae)](){const _0x305b33=_0xb844e6;this[_0x305b33(0xb3)]&&(super[_0x305b33(0xae)](),this[_0x305b33(0xc6)](!0x0));}[_0xb844e6(0xd0)](_0x6185c8){const _0x51f085=_0xb844e6;super[_0x51f085(0xd0)](_0x6185c8),this[_0x51f085(0xc6)](!0x1);}[_0xb844e6(0xd8)](_0x2f47f6){const _0x205f76=_0xb844e6;this[_0x205f76(0xd1)][_0x205f76(0xce)]=this[_0x205f76(0x8e)][_0x205f76(0xce)]=_0x2f47f6;}[_0xb844e6(0xc6)](_0x470e6d){const _0x53612c=_0xb844e6;this[_0x53612c(0xcf)][_0x53612c(0xd3)]=_0x470e6d;}[_0xb844e6(0x8a)]({showApplyButton:_0x1d50c9,showSuggestButton:_0x178475}){const _0x1482b5=_0xb844e6;_0x1d50c9=_0x1d50c9&&!this[_0x1482b5(0xb2)]&&this[_0x1482b5(0x92)][_0x1482b5(0x8d)][_0x1482b5(0xa4)](_0x1482b5(0x95)),_0x178475=_0x178475&&this[_0x1482b5(0x92)][_0x1482b5(0x8d)][_0x1482b5(0xa4)](_0x1482b5(0xa0)),this[_0x1482b5(0xcf)][_0x1482b5(0xd5)]({'showApplyButton':_0x1d50c9,'showSuggestButton':_0x178475});}[_0xb844e6(0xab)](){const _0x487f29=_0xb844e6,_0x5a9983=new _0x3dd151(this[_0x487f29(0xd2)]);return _0x5a9983[_0x487f29(0xba)]({'icon':_0x49d422,'label':_0x1398c4(this[_0x487f29(0xd2)],_0x487f29(0x99)),'isVisible':!0x0}),_0x5a9983['on'](_0x487f29(0xcd),()=>{const _0x566595=_0x487f29;this[_0x566595(0xbb)](_0x566595(0xbd));}),_0x5a9983;}[_0xb844e6(0x94)](){const _0x50121b=_0xb844e6,_0x7c7b33=new _0x3dd151(this[_0x50121b(0xd2)]);return _0x7c7b33[_0x50121b(0xba)]({'icon':_0x1add08,'label':_0x1398c4(this[_0x50121b(0xd2)],_0x50121b(0x91)),'isVisible':!0x0}),_0x7c7b33['on'](_0x50121b(0xcd),()=>{const _0x34dde3=_0x50121b;this[_0x34dde3(0xbb)](_0x34dde3(0xc1));}),_0x7c7b33;}}class AIChatBalloonToolbarContainerView extends _0x58baa1{constructor(_0x5098c6,_0x3ee1b6){const _0x24cab2=_0xb844e6;super(_0x5098c6),this[_0x24cab2(0xbc)]({'tag':_0x24cab2(0x93),'attributes':{'class':[_0x24cab2(0xa5)]},'children':_0x3ee1b6});}}
|
|
@@ -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 _0x27f8f9=_0x4eed;(function(_0x341a6e,_0x1c2ffc){const _0x2c57f8=_0x4eed,_0x507cbb=_0x341a6e();while(!![]){try{const _0x410927=-parseInt(_0x2c57f8(0x20e))/0x1+parseInt(_0x2c57f8(0x1f7))/0x2+parseInt(_0x2c57f8(0x1ca))/0x3*(parseInt(_0x2c57f8(0x204))/0x4)+-parseInt(_0x2c57f8(0x1c4))/0x5+-parseInt(_0x2c57f8(0x1d2))/0x6+parseInt(_0x2c57f8(0x1cf))/0x7+parseInt(_0x2c57f8(0x200))/0x8;if(_0x410927===_0x1c2ffc)break;else _0x507cbb['push'](_0x507cbb['shift']());}catch(_0xdae43d){_0x507cbb['push'](_0x507cbb['shift']());}}}(_0x4b18,0xc8a1b));import{ButtonView as _0x4fb718,clickOutsideHandler as _0x804f60,View as _0x50a771}from'ckeditor5/src/ui.js';function _0x4eed(_0x3392c6,_0x2f2707){const _0x4b18f4=_0x4b18();return _0x4eed=function(_0x4eedf7,_0x29fecf){_0x4eedf7=_0x4eedf7-0x1c4;let _0xa1dfca=_0x4b18f4[_0x4eedf7];return _0xa1dfca;},_0x4eed(_0x3392c6,_0x2f2707);}import{AIChatPromptInputView as _0x45c1e2}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x2ced01}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x10d747,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x4cb2d2}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x3604ea}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x2063fb}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';function _0x4b18(){const _0x27d532=['ck-hidden','sendUserMessage','value','setTemplate','set','contextResourcesSearchInputVisibleFrom','_promptCapabilitiesView','isModelAvailable','_createContextPanelView','bodyCollection','setReasoning','low','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','_promptInputView','setPlaceholderText','startConversation','1520238igiWnm','selectModel','updateResourceState','setIsUploadInProgress','change:isLoading','queryView','toggleReasoning','reset','locale','10775520IuZPvU','toggleWebSearch','clearCurrentContextItems','populateSourceResourceBalloon','148dVhVVe','ck-ai-chat-controls','_handlePromptInputFocus','clearConversationContextUI','fieldView','_createLoaderView','focus','addContextItem','_createPromptInputView','setModelList','1329155XLBhhs','setConversationContext','bindTemplate','setPromptInputValue','execute','2072050yCqVHv','disableModelSelector','focusPromptInput','setWebSearch','_createModelUnavailableMessageView','ck-ai-chat-controls-model-unavailable-message','47142VfdbPa','delegate','resetMessageInput','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','closeSourceResourceBalloon','2509234dIXVHA','clearConversationContextItems','setInputPlaceholder','2889522mbcbkN','_contextPanelView','enableModelSelector','addContextButtonView','ck-ai-chat-controls-disabled','ck-ai-chat-controls__start-new-chat-button','setContextItemLoading','_loaderView','_createPromptCapabilitiesView','setModel','div','isLoading','_modelUnavailableMessageView','form','element','abortPromptStream','setAddContextOptions','_shouldRestorePromptInputFocus','clearPendingContextUI','isDisabled','removeContextItem'];_0x4b18=function(){return _0x27d532;};return _0x4b18();}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';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 _0x50a771{[_0x27f8f9(0x1d3)];[_0x27f8f9(0x1f4)];[_0x27f8f9(0x1ed)];[_0x27f8f9(0x1d9)];[_0x27f8f9(0x1de)];[_0x27f8f9(0x1e3)];constructor(_0x4ed0fc,_0x2642e8){const _0x389487=_0x27f8f9;super(_0x4ed0fc),this[_0x389487(0x1d3)]=this[_0x389487(0x1ef)](_0x4ed0fc,{'bodyCollection':_0x2642e8[_0x389487(0x1f0)],'searchInputVisibleFrom':_0x2642e8[_0x389487(0x1ec)]}),this[_0x389487(0x1f4)]=this[_0x389487(0x20c)](_0x4ed0fc),this[_0x389487(0x1ed)]=this[_0x389487(0x1da)](_0x4ed0fc),this[_0x389487(0x1d9)]=this[_0x389487(0x209)](_0x4ed0fc),this[_0x389487(0x1de)]=this[_0x389487(0x1c8)](_0x4ed0fc),this[_0x389487(0x1e3)]=!0x1,this[_0x389487(0x1f4)][_0x389487(0x1cb)](_0x389487(0x1e8))['to'](this),this[_0x389487(0x1d9)][_0x389487(0x1cb)](_0x389487(0x1e1))['to'](this),this[_0x389487(0x1ed)][_0x389487(0x1cb)](_0x389487(0x201))['to'](this),this[_0x389487(0x1ed)][_0x389487(0x1cb)](_0x389487(0x1fd))['to'](this),this[_0x389487(0x1ed)][_0x389487(0x1cb)](_0x389487(0x1f8))['to'](this),this[_0x389487(0x1d3)][_0x389487(0x1cb)](..._0x4cb2d2)['to'](this),this[_0x389487(0x1eb)](_0x389487(0x1ee),!0x0),this[_0x389487(0x1eb)](_0x389487(0x1e5),!0x1);const _0x3425e8=this[_0x389487(0x210)];this[_0x389487(0x1ea)]({'tag':_0x389487(0x1df),'attributes':{'class':['ck',_0x389487(0x205),_0x3425e8['if'](_0x389487(0x1e5),_0x389487(0x1d6))]},'children':[{'tag':_0x389487(0x1dc),'attributes':{'class':[_0x3425e8['if'](_0x389487(0x1dd),_0x389487(0x1e7),_0x588353=>_0x588353||!this[_0x389487(0x1ee)]),_0x3425e8['if'](_0x389487(0x1ee),_0x389487(0x1e7),_0x13e4f6=>!_0x13e4f6||this[_0x389487(0x1dd)])]},'children':[this[_0x389487(0x1d3)],this[_0x389487(0x1f4)],this[_0x389487(0x1ed)]]},{'tag':_0x389487(0x1dc),'attributes':{'class':[_0x3425e8['if'](_0x389487(0x1dd),_0x389487(0x1e7),_0xcc6f5a=>!_0xcc6f5a)]},'children':[this[_0x389487(0x1d9)]]},{'tag':_0x389487(0x1dc),'attributes':{'class':[_0x3425e8['if'](_0x389487(0x1ee),_0x389487(0x1e7),_0x2598ea=>_0x2598ea)]},'children':[this[_0x389487(0x1de)]]}]}),_0x804f60({'emitter':this[_0x389487(0x1f4)],'activator':()=>this[_0x389487(0x1dd)],'contextElements':()=>[this[_0x389487(0x1e0)]],'callback':()=>{const _0x43800a=_0x389487;this[_0x43800a(0x1e3)]=!0x1;}}),this['on'](_0x389487(0x1fb),this[_0x389487(0x206)],{'priority':_0x389487(0x1f2)});}[_0x27f8f9(0x1ef)](_0x2e2abc,_0x371a7d){return new _0x10d747(_0x2e2abc,_0x371a7d);}[_0x27f8f9(0x20c)](_0x406b6f){const _0x7a9d81=_0x27f8f9;return new _0x45c1e2(_0x406b6f,this[_0x7a9d81(0x1d3)][_0x7a9d81(0x1d5)]);}[_0x27f8f9(0x1da)](_0x45200e){return new _0x2ced01(_0x45200e);}[_0x27f8f9(0x209)](_0x3bc699){return new _0x3604ea(_0x3bc699);}[_0x27f8f9(0x1c8)](_0x314274){const _0x498a7d=_0x27f8f9,_0x3961b6=new AIChatModelUnavailableMessageView(_0x314274);return _0x3961b6[_0x498a7d(0x1cb)](_0x498a7d(0x1f6))['to'](this),_0x3961b6;}[_0x27f8f9(0x206)](_0x4e1549,_0x39b0d6,_0x46db6e){const _0x58fb04=_0x27f8f9;_0x46db6e?this[_0x58fb04(0x1e3)]=!0x0:this[_0x58fb04(0x1e3)]&&this[_0x58fb04(0x1f4)][_0x58fb04(0x20a)]();}[_0x27f8f9(0x20b)](_0x1b4716,_0x441529){const _0x421733=_0x27f8f9;this[_0x421733(0x1d3)][_0x421733(0x20b)](_0x1b4716,_0x441529);}[_0x27f8f9(0x1e6)](_0x20a586){const _0x26f59a=_0x27f8f9;this[_0x26f59a(0x1d3)][_0x26f59a(0x1e6)](_0x20a586);}[_0x27f8f9(0x1d8)](_0x505784,_0x5de005){const _0x3364ee=_0x27f8f9;this[_0x3364ee(0x1d3)][_0x3364ee(0x1d8)](_0x505784,_0x5de005);}[_0x27f8f9(0x1fa)](_0x175e9f){const _0x5e23e4=_0x27f8f9;this[_0x5e23e4(0x1f4)][_0x5e23e4(0x1fa)](_0x175e9f);}[_0x27f8f9(0x20f)](_0x1910dd){const _0x2d103d=_0x27f8f9;this[_0x2d103d(0x1d3)][_0x2d103d(0x20f)](_0x1910dd);}[_0x27f8f9(0x1e4)](){const _0x4258d5=_0x27f8f9;this[_0x4258d5(0x1d3)][_0x4258d5(0x202)]();}[_0x27f8f9(0x207)](){const _0x25e222=_0x27f8f9;this[_0x25e222(0x1d3)][_0x25e222(0x1d0)]();}[_0x27f8f9(0x1f9)](_0x45d1f9,_0x124c49,_0x20aeaa){const _0x4b126a=_0x27f8f9;this[_0x4b126a(0x1d3)][_0x4b126a(0x1f9)](_0x45d1f9,_0x124c49,_0x20aeaa);}[_0x27f8f9(0x1c7)](_0x489a28){const _0x5c98ea=_0x27f8f9;this[_0x5c98ea(0x1ed)][_0x5c98ea(0x1c7)](_0x489a28);}[_0x27f8f9(0x1f1)](_0x4e8e62){const _0x4cd890=_0x27f8f9;this[_0x4cd890(0x1ed)][_0x4cd890(0x1f1)](_0x4e8e62);}[_0x27f8f9(0x1cc)](){const _0xe2dd10=_0x27f8f9;this[_0xe2dd10(0x1f4)][_0xe2dd10(0x1fe)]();}[_0x27f8f9(0x1e2)](_0x11d37a){const _0x94b15b=_0x27f8f9;this[_0x94b15b(0x1d3)][_0x94b15b(0x1e2)](_0x11d37a);}[_0x27f8f9(0x1d1)](_0x529f73){const _0x26cd10=_0x27f8f9;this[_0x26cd10(0x1f4)][_0x26cd10(0x1f5)](_0x529f73);}[_0x27f8f9(0x20d)](_0x9fa124,_0x2a3d3d){const _0x5b953b=_0x27f8f9;this[_0x5b953b(0x1ed)][_0x5b953b(0x20d)](_0x9fa124,_0x2a3d3d);}[_0x27f8f9(0x1db)](_0x4c1b44){const _0x554fd4=_0x27f8f9;_0x4c1b44?(this[_0x554fd4(0x1ee)]=!0x0,this[_0x554fd4(0x1ed)][_0x554fd4(0x1db)](_0x4c1b44)):this[_0x554fd4(0x1ee)]=!0x1;}[_0x27f8f9(0x1d4)](){const _0x3501dd=_0x27f8f9;this[_0x3501dd(0x1ed)][_0x3501dd(0x1d4)]();}[_0x27f8f9(0x1c5)](_0x2b09f1){const _0x2b4b46=_0x27f8f9;this[_0x2b4b46(0x1ed)][_0x2b4b46(0x1c5)](_0x2b09f1);}[_0x27f8f9(0x203)](_0x442668,_0x24f8d6,_0x3463cd,_0x4c9318){const _0x804c83=_0x27f8f9;this[_0x804c83(0x1d3)][_0x804c83(0x203)](_0x442668,_0x24f8d6,_0x3463cd,_0x4c9318);}[_0x27f8f9(0x1ce)](_0x2ab0b2){const _0x20dd27=_0x27f8f9;this[_0x20dd27(0x1d3)][_0x20dd27(0x1ce)](_0x2ab0b2);}[_0x27f8f9(0x1c6)](_0x2f208e=!0x1){const _0x5ae6d7=_0x27f8f9;this[_0x5ae6d7(0x1f4)][_0x5ae6d7(0x20a)](_0x2f208e);}[_0x27f8f9(0x211)](_0x3b812b){const _0x1a1c8=_0x27f8f9;this[_0x1a1c8(0x1f4)][_0x1a1c8(0x1fc)][_0x1a1c8(0x208)][_0x1a1c8(0x1fe)](),this[_0x1a1c8(0x1f4)][_0x1a1c8(0x1fc)][_0x1a1c8(0x208)][_0x1a1c8(0x1e9)]=_0x3b812b;}}class AIChatModelUnavailableMessageView extends _0x50a771{constructor(_0x3f46f1){const _0x123e49=_0x27f8f9;super(_0x3f46f1);const _0x337ab3=new _0x4fb718(_0x3f46f1);_0x337ab3[_0x123e49(0x1eb)]({'label':_0x2063fb(this[_0x123e49(0x1ff)],_0x123e49(0x1cd)),'withText':!0x0,'class':[_0x123e49(0x1d7)],'tooltip':''}),_0x337ab3[_0x123e49(0x1cb)](_0x123e49(0x212))['to'](this,_0x123e49(0x1f6)),this[_0x123e49(0x1ea)]({'tag':_0x123e49(0x1dc),'attributes':{'class':['ck',_0x123e49(0x1c9)]},'children':[{'tag':'p','children':[{'text':_0x2063fb(this[_0x123e49(0x1ff)],_0x123e49(0x1f3))+'\x20'},_0x337ab3]}]});}}
|
|
@@ -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
|
+
const _0x2ce283=_0x4034;(function(_0x5e9afb,_0x388881){const _0x3e4133=_0x4034,_0x2d812c=_0x5e9afb();while(!![]){try{const _0x43289b=parseInt(_0x3e4133(0xb1))/0x1*(-parseInt(_0x3e4133(0xe4))/0x2)+parseInt(_0x3e4133(0xe7))/0x3*(-parseInt(_0x3e4133(0xb7))/0x4)+parseInt(_0x3e4133(0xe1))/0x5+parseInt(_0x3e4133(0xb0))/0x6+-parseInt(_0x3e4133(0xb9))/0x7*(parseInt(_0x3e4133(0xbb))/0x8)+parseInt(_0x3e4133(0xa5))/0x9*(-parseInt(_0x3e4133(0xc1))/0xa)+parseInt(_0x3e4133(0xe8))/0xb;if(_0x43289b===_0x388881)break;else _0x2d812c['push'](_0x2d812c['shift']());}catch(_0x4de508){_0x2d812c['push'](_0x2d812c['shift']());}}}(_0x1552,0x2eb01));import{CKEditorError as _0x44f38d,logWarning as _0x15c801,scrollAncestorsToShowTarget as _0x3aa817}from'ckeditor5/src/utils.js';import{View as _0x351ce8}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x31f160}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x42f662}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x2633d1}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0xf8d01f}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x40ea8b}from'./feed/aichatfeederroritemview.js';function _0x4034(_0x37c349,_0x4ab1b4){const _0x15526a=_0x1552();return _0x4034=function(_0x4034e8,_0xf3b95e){_0x4034e8=_0x4034e8-0x95;let _0x1c8639=_0x15526a[_0x4034e8];return _0x1c8639;},_0x4034(_0x37c349,_0x4ab1b4);}import{AIChatFeedInteractionHeaderView as _0x3be26a}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x1793f6}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x215bd2,SKELETON_DEFINITIONS as _0x10470c}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x4e54af}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x47e7cd}from'./feed/aichatfeedcustomelementview.js';function _0x1552(){const _0x3ecaa1=['startAutoScroll','remove','248544uoYTvh','4DcSLFg','children','element','updateSources','ai-chat-feed-view-item-not-found','ck-ai-chat__loader-text','20eUjqPS','custom-element','92421ivyKxm','updateSuggestionPartState','16ZeCqMQ','forEach','setLoadingMessage','isVisible','interaction-header','_createLoaderChildren','317290Yafhhq','getPartView','removeItem','isTrackChangesOn','markItemAsDone','div','getItemIds','destroy','_createFeedItems','ck-hidden','updateReplyItem','_createTemplateChildren','isLoadingSkeletonVisible','extendTemplate','setPartActive','aiFeed','span','add','_setupTemplate','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','createCollection','ai-reply','bind','stopAutoScroll','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ck-ai-chat__loader','includes','clear','setSuggestionPartActive','_createFeedLoader','toggleLoadingSkeleton','ai-chat-feed-view-item-not-a-reply-item','196665QRWLeS','loadingMessage','start','83478aqXtQi','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','markAsDone','37419UTxJqp','5424309KtAunF','updateWebSources','map','ai-chat-feed-view-item-not-a-suggestion-item','bindTemplate','delegate','updateContent','render','find','stop','_createSkeletonLoader','hasItem','set','addItem','updatePartState','ai-suggestion-reply','filter','parentElement','user-message','updateSuggestionItem','ck-ai-chat__feed__items','ck-ai-chat__feed','36CAAMot','locale','isPending','options','scrollToSuggestion','_bodyCollection','scrollManager','setTemplate','getItemById'];_0x1552=function(){return _0x3ecaa1;};return _0x1552();}import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x351ce8{[_0x2ce283(0xb2)];[_0x2ce283(0xab)];[_0x2ce283(0xaa)];constructor(_0x4bf572,_0x1e7c27){const _0x2171a4=_0x2ce283;super(_0x4bf572),this[_0x2171a4(0xaa)]=_0x1e7c27,this[_0x2171a4(0x9b)](_0x2171a4(0xa7),!0x1),this[_0x2171a4(0x9b)](_0x2171a4(0xe2),''),this[_0x2171a4(0x9b)](_0x2171a4(0xcd),!0x1),this[_0x2171a4(0x9b)](_0x2171a4(0xc4),!0x1),this[_0x2171a4(0xb2)]=this[_0x2171a4(0xd5)](),this[_0x2171a4(0xb2)][_0x2171a4(0xed)](..._0x31f160)['to'](this),this[_0x2171a4(0xd3)]();}[_0x2ce283(0x96)](){const _0x11419f=_0x2ce283;super[_0x11419f(0x96)](),this[_0x11419f(0xab)]=new _0x1793f6(this[_0x11419f(0xb3)]);}[_0x2ce283(0xc8)](){const _0x4374a7=_0x2ce283;super[_0x4374a7(0xc8)](),this[_0x4374a7(0xab)][_0x4374a7(0xc8)]();}[_0x2ce283(0xdc)](){const _0x3a7fc0=_0x2ce283;this[_0x3a7fc0(0xb2)][_0x3a7fc0(0xdc)]();}[_0x2ce283(0x9c)](_0x15b204,_0x57ed26){const _0x358544=_0x2ce283;let _0x1f960c;return _0x358544(0xd6)===_0x15b204?_0x1f960c=new _0x2633d1(this[_0x358544(0xa6)],_0x57ed26,this[_0x358544(0xaa)]):_0x358544(0x9e)===_0x15b204?(_0x1f960c=new _0x42f662(this[_0x358544(0xa6)],_0x57ed26,this[_0x358544(0xaa)]),_0x1f960c[_0x358544(0xd7)](_0x358544(0xc4))['to'](this)):_0x1f960c=_0x358544(0xa1)===_0x15b204?new _0xf8d01f(this[_0x358544(0xa6)],_0x57ed26,this[_0x358544(0xaa)]):_0x358544(0xbf)===_0x15b204?new _0x3be26a(this[_0x358544(0xa6)],_0x57ed26):_0x358544(0xb8)===_0x15b204?new _0x47e7cd(_0x57ed26):new _0x40ea8b(_0x57ed26),this[_0x358544(0xb2)][_0x358544(0xd2)](_0x1f960c),_0x1f960c;}async[_0x2ce283(0xcb)]({id:_0x536bb2,parsedContent:_0x2e3a8e,renderingStrategy:_0x3ca031,abortSignal:_0x4fcf77}){const _0x43cad1=_0x2ce283,_0x19026c=this[_0x43cad1(0xad)](_0x536bb2);if(!(_0x19026c instanceof _0x2633d1))throw new _0x44f38d(_0x43cad1(0xe0),null,{'itemView':_0x19026c,'id':_0x536bb2,'parsedContent':_0x2e3a8e});await _0x19026c[_0x43cad1(0x95)]({'parsedContent':_0x2e3a8e,'renderingStrategy':_0x3ca031,'abortSignal':_0x4fcf77});}async[_0x2ce283(0xe9)](_0x1eeadd,_0x1c1e07){const _0x370054=_0x2ce283,_0x22cb5f=this[_0x370054(0xad)](_0x1eeadd);if(_0x22cb5f instanceof _0x42f662)_0x22cb5f[_0x370054(0xb4)](_0x1c1e07);else{if(!(_0x22cb5f instanceof _0x2633d1))throw new _0x44f38d(_0x370054(0xd4),null,{'itemView':_0x22cb5f,'id':_0x1eeadd,'sources':_0x1c1e07});_0x22cb5f[_0x370054(0xb4)](_0x1c1e07);}}async[_0x2ce283(0xa2)]({id:_0xca968e,parts:_0x29e39d,renderingStrategy:_0x1b71ac,abortSignal:_0x5c1dc0}){const _0x5cfd9c=_0x2ce283,_0x56cc6a=this[_0x5cfd9c(0xad)](_0xca968e);if(!(_0x56cc6a instanceof _0x42f662))throw new _0x44f38d(_0x5cfd9c(0xeb),null,{'itemView':_0x56cc6a,'id':_0xca968e,'parts':_0x29e39d});await _0x56cc6a[_0x5cfd9c(0x95)]({'parts':_0x29e39d,'renderingStrategy':_0x1b71ac,'abortSignal':_0x5c1dc0});}[_0x2ce283(0xba)]({id:_0x1d1f2f,index:_0x3ed042,state:_0x3bb84f}){const _0x51d1bc=_0x2ce283,_0x55af3d=this[_0x51d1bc(0xad)](_0x1d1f2f);if(!(_0x55af3d instanceof _0x42f662))throw new _0x44f38d(_0x51d1bc(0xeb),this,{'id':_0x1d1f2f});_0x55af3d[_0x51d1bc(0x9d)](_0x3ed042,_0x3bb84f);}[_0x2ce283(0xdd)]({id:_0x33b2f9,index:_0x2908a6,isActive:_0x33833c}){const _0x48bcda=_0x2ce283,_0xc1f384=this[_0x48bcda(0xad)](_0x33b2f9);if(!(_0xc1f384 instanceof _0x42f662))throw new _0x44f38d(_0x48bcda(0xeb),this,{'id':_0x33b2f9});this[_0x48bcda(0xb2)][_0x48bcda(0x9f)](_0x183716=>_0x183716 instanceof _0x42f662)[_0x48bcda(0xbc)](_0x7b6b2e=>{const _0x9f70da=_0x48bcda;_0x7b6b2e[_0x9f70da(0xcf)](!0x1);}),_0xc1f384[_0x48bcda(0xcf)](_0x2908a6,_0x33833c);}[_0x2ce283(0xc5)](_0x3d393f){const _0xb9f119=_0x2ce283;this[_0xb9f119(0xad)](_0x3d393f)[_0xb9f119(0xe6)]();}[_0x2ce283(0xc7)](){const _0x3065b0=_0x2ce283;return this[_0x3065b0(0xb2)][_0x3065b0(0xea)](_0x4ce86b=>_0x4ce86b[_0x3065b0(0xa8)]['id']);}[_0x2ce283(0xc3)](_0x1fa7d3){const _0x5c69bb=_0x2ce283;this[_0x5c69bb(0xb2)][_0x5c69bb(0xaf)](this[_0x5c69bb(0xad)](_0x1fa7d3));}[_0x2ce283(0x9a)](_0x1de027){const _0x27634e=_0x2ce283;return!!this[_0x27634e(0xb2)][_0x27634e(0x97)](_0x297b12=>_0x297b12[_0x27634e(0xa8)]['id'][_0x27634e(0xdb)](_0x1de027));}[_0x2ce283(0xa9)](_0x2cd701,_0x2e0771){const _0x5eb86e=_0x2ce283,_0x45bc81=this[_0x5eb86e(0xad)](_0x2cd701);if(!(_0x45bc81 instanceof _0x42f662))return void _0x15c801(_0x5eb86e(0xd9),{'replyId':_0x2cd701,'partIndex':_0x2e0771});const _0x1971f8=_0x45bc81[_0x5eb86e(0xc2)](_0x2e0771);_0x1971f8?_0x3aa817(_0x1971f8[_0x5eb86e(0xb3)],0x14,this[_0x5eb86e(0xb3)][_0x5eb86e(0xa0)],!0x0,!0x0):_0x15c801(_0x5eb86e(0xe5),{'replyId':_0x2cd701,'partIndex':_0x2e0771});}[_0x2ce283(0xd3)](){const _0x19f990=_0x2ce283;this[_0x19f990(0xac)]({'tag':_0x19f990(0xc6),'attributes':{'class':['ck',_0x19f990(0xa4)]},'children':this[_0x19f990(0xcc)]()});}[_0x2ce283(0xcc)](){const _0x1ea5c0=_0x2ce283,_0x1d6c54=this[_0x1ea5c0(0x99)]();return[this[_0x1ea5c0(0xc9)](),_0x1d6c54,this[_0x1ea5c0(0xde)]()];}[_0x2ce283(0x99)](){const _0x31f4fa=_0x2ce283,_0x31f9c7=new _0x215bd2(this[_0x31f4fa(0xa6)],_0x10470c[_0x31f4fa(0xd0)]);return _0x31f9c7[_0x31f4fa(0xce)]({'attributes':{'class':[this[_0x31f4fa(0xec)]['if'](_0x31f4fa(0xcd),_0x31f4fa(0xca),_0x128c14=>!_0x128c14)]}}),_0x31f9c7;}[_0x2ce283(0xc9)](){const _0x18b230=_0x2ce283,_0x5c094c=new _0x351ce8(this[_0x18b230(0xa6)]);return _0x5c094c[_0x18b230(0xac)]({'tag':_0x18b230(0xc6),'attributes':{'class':['ck',_0x18b230(0xa3),this[_0x18b230(0xec)]['if'](_0x18b230(0xcd),_0x18b230(0xca))]},'children':this[_0x18b230(0xb2)]}),_0x5c094c;}[_0x2ce283(0xde)](){const _0x502214=_0x2ce283,_0x5b38ce=new _0x351ce8(this[_0x502214(0xa6)]);return _0x5b38ce[_0x502214(0xac)]({'tag':_0x502214(0xc6),'attributes':{'class':['ck',_0x502214(0xda),this[_0x502214(0xec)]['if'](_0x502214(0xa7),_0x502214(0xca),_0x15521d=>!_0x15521d)]},'children':this[_0x502214(0xc0)]()}),_0x5b38ce;}[_0x2ce283(0xc0)](){const _0x5d2582=_0x2ce283,_0x46d8f3=new _0x4e54af();return _0x46d8f3[_0x5d2582(0xbe)]=!0x0,[_0x46d8f3,{'tag':_0x5d2582(0xd1),'attributes':{'class':['ck',_0x5d2582(0xb6)]},'children':[{'text':this[_0x5d2582(0xec)]['to'](_0x5d2582(0xe2))}]}];}[_0x2ce283(0xad)](_0xd7551c){const _0x3daa9d=_0x2ce283,_0x4d64af=this[_0x3daa9d(0xb2)][_0x3daa9d(0x97)](_0x143cde=>_0x143cde[_0x3daa9d(0xa8)]['id'][_0x3daa9d(0xdb)](_0xd7551c));if(!_0x4d64af)throw new _0x44f38d(_0x3daa9d(0xb5),this,{'id':_0xd7551c});return _0x4d64af;}[_0x2ce283(0xbd)](_0xc811de){const _0x445c8f=_0x2ce283;this[_0x445c8f(0x9b)](_0x445c8f(0xe2),_0xc811de);}[_0x2ce283(0xdf)](_0x17aae2){const _0x50f2fc=_0x2ce283;this[_0x50f2fc(0x9b)](_0x50f2fc(0xcd),_0x17aae2);}[_0x2ce283(0xae)](){const _0xae1ffd=_0x2ce283;this[_0xae1ffd(0xab)][_0xae1ffd(0xe3)]();}[_0x2ce283(0xd8)](){const _0x2bfed4=_0x2ce283;this[_0x2bfed4(0xab)][_0x2bfed4(0x98)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x15ea63=_0x3653;(function(_0x1543b8,_0x70830c){const _0xa2442c=_0x3653,_0x11ef5b=_0x1543b8();while(!![]){try{const _0x1ccbe2=-parseInt(_0xa2442c(0xa1))/0x1*(-parseInt(_0xa2442c(0x96))/0x2)+parseInt(_0xa2442c(0x94))/0x3*(parseInt(_0xa2442c(0xa2))/0x4)+-parseInt(_0xa2442c(0x9b))/0x5*(-parseInt(_0xa2442c(0x97))/0x6)+parseInt(_0xa2442c(0xa7))/0x7+parseInt(_0xa2442c(0x9a))/0x8+-parseInt(_0xa2442c(0x91))/0x9*(parseInt(_0xa2442c(0xa8))/0xa)+parseInt(_0xa2442c(0xaa))/0xb*(-parseInt(_0xa2442c(0x92))/0xc);if(_0x1ccbe2===_0x70830c)break;else _0x11ef5b['push'](_0x11ef5b['shift']());}catch(_0x4a7a4d){_0x11ef5b['push'](_0x11ef5b['shift']());}}}(_0x2218,0xba89a));import{ButtonView as _0x352f36,FormHeaderView as _0x39fd1a}from'ckeditor5/src/ui.js';import{IconPlus as _0x53e3f1,IconAIChat as _0x2ff259}from'ckeditor5/src/icons.js';import{getTranslation as _0x3be01b}from'../../aicore/utils/common-translations.js';function _0x2218(){const _0x21a1c0=['6MxaNPg','6007182GcrvzG','conversationStartButton','resizeButton','7191864NnordH','5sFSGWK','startConversation','AI_CHAT_HEADING','locale','execute','_createStartConversationButton','173101hWeozD','66748BhXoto','ck-ai-chat__start-conversation','AI_CHAT_LABEL_NEW_CHAT','isMaximized','set','2715188rhzwPG','14446410lvBUVS','children','10072931prRdDg','fire','9zyEYWt','12bdhJuB','ck-ai-header\x20ck-ai-header_chat','57IvxNVh','add'];_0x2218=function(){return _0x21a1c0;};return _0x2218();}import{createResizeButton as _0x219427}from'../../aicore/utils/createresizebutton.js';function _0x3653(_0x5c5337,_0x481f7f){const _0x221818=_0x2218();return _0x3653=function(_0x3653cf,_0x5b4de1){_0x3653cf=_0x3653cf-0x90;let _0x2dbeef=_0x221818[_0x3653cf];return _0x2dbeef;},_0x3653(_0x5c5337,_0x481f7f);}import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x39fd1a{[_0x15ea63(0x98)];[_0x15ea63(0x99)];constructor(_0x12d3c8,_0x41178e){const _0x42a865=_0x15ea63;super(_0x12d3c8,{'label':_0x3be01b(_0x12d3c8,_0x42a865(0x9d)),'class':_0x42a865(0x93),'icon':_0x2ff259}),this[_0x42a865(0xa6)](_0x42a865(0xa5),!0x1),this[_0x42a865(0x98)]=this[_0x42a865(0xa0)](_0x12d3c8),this[_0x42a865(0xa9)][_0x42a865(0x95)](this[_0x42a865(0x98)]),_0x41178e&&(this[_0x42a865(0x99)]=_0x219427(_0x12d3c8,this),this[_0x42a865(0xa9)][_0x42a865(0x95)](this[_0x42a865(0x99)]));}[_0x15ea63(0xa0)](_0x1756c6){const _0x2bbeda=_0x15ea63,_0x1cba69=new _0x352f36(_0x1756c6);return _0x1cba69[_0x2bbeda(0xa6)]({'label':_0x3be01b(this[_0x2bbeda(0x9e)],_0x2bbeda(0xa4)),'withText':!0x0,'icon':_0x53e3f1,'class':_0x2bbeda(0xa3)}),_0x1cba69['on'](_0x2bbeda(0x9f),()=>{const _0x544d76=_0x2bbeda;this[_0x544d76(0x90)](_0x544d76(0x9c));}),_0x1cba69;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2c56b5=_0x4911;(function(_0x5213cf,_0x5888c1){var _0x3271bb=_0x4911,_0x454e07=_0x5213cf();while(!![]){try{var _0x57fb92=-parseInt(_0x3271bb(0x176))/0x1*(parseInt(_0x3271bb(0x179))/0x2)+parseInt(_0x3271bb(0x178))/0x3*(-parseInt(_0x3271bb(0x168))/0x4)+parseInt(_0x3271bb(0x173))/0x5+-parseInt(_0x3271bb(0x164))/0x6*(-parseInt(_0x3271bb(0x166))/0x7)+parseInt(_0x3271bb(0x160))/0x8*(parseInt(_0x3271bb(0x174))/0x9)+parseInt(_0x3271bb(0x163))/0xa*(-parseInt(_0x3271bb(0x162))/0xb)+parseInt(_0x3271bb(0x17c))/0xc*(parseInt(_0x3271bb(0x16c))/0xd);if(_0x57fb92===_0x5888c1)break;else _0x454e07['push'](_0x454e07['shift']());}catch(_0x4b6850){_0x454e07['push'](_0x454e07['shift']());}}}(_0x3178,0x1ae12));import{View as _0x51f391,BodyCollection as _0x68da9a}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x54d36d}from'../utils/eventnames.js';function _0x4911(_0x1432be,_0x5de6a3){var _0x31784e=_0x3178();return _0x4911=function(_0x4911a9,_0x3282d7){_0x4911a9=_0x4911a9-0x15d;var _0x463db1=_0x31784e[_0x4911a9];return _0x463db1;},_0x4911(_0x1432be,_0x5de6a3);}import{AIChatFeedView as _0x5b7e14}from'./aichatfeedview.js';function _0x3178(){var _0x5c7faa=['contextResourcesSearchInputVisibleFrom','attachToDom','destroy','659810SWUkjH','791595OEjJeV','_bodyCollection','1uQaWqD','showResizeButton','12MyUJWf','398202TJVRHu','delegate','div','6024aHmWLM','populateSourceResourceBalloon','detachFromDom','ck-rounded-corners','8borned','chatDisclaimer','242qUcjCv','230yXdVoA','12jyiISG','uiLanguageDirection','181622fQyTmw','chatFeed','125756zhZSZS','setTemplate','chatHeader','ck-reset_all','4238egfONN','ck-ai-chat','chatControls','closeSourceResourceBalloon'];_0x3178=function(){return _0x5c7faa;};return _0x3178();}import{AIChatControlsView as _0x421003}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x2425dd}from'./aichatheaderview.js';import{AIDisclaimerView as _0x35a66a}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x51f391{[_0x2c56b5(0x16a)];[_0x2c56b5(0x167)];[_0x2c56b5(0x16e)];[_0x2c56b5(0x161)];[_0x2c56b5(0x175)];constructor(_0x598185,_0x2e5b7a){var _0x1ff578=_0x2c56b5;super(_0x598185),this[_0x1ff578(0x175)]=new _0x68da9a(_0x598185),this[_0x1ff578(0x175)][_0x1ff578(0x171)](),this[_0x1ff578(0x16a)]=new _0x2425dd(_0x598185,_0x2e5b7a[_0x1ff578(0x177)]),this[_0x1ff578(0x16a)][_0x1ff578(0x17a)](..._0x54d36d)['to'](this),this[_0x1ff578(0x167)]=new _0x5b7e14(_0x598185,this[_0x1ff578(0x175)]),this[_0x1ff578(0x167)][_0x1ff578(0x17a)](..._0x54d36d)['to'](this),this[_0x1ff578(0x16e)]=new _0x421003(_0x598185,{'bodyCollection':this[_0x1ff578(0x175)],'contextResourcesSearchInputVisibleFrom':_0x2e5b7a[_0x1ff578(0x170)]}),this[_0x1ff578(0x16e)][_0x1ff578(0x17a)](..._0x54d36d)['to'](this),this[_0x1ff578(0x161)]=new _0x35a66a(_0x598185),this[_0x1ff578(0x169)]({'tag':_0x1ff578(0x17b),'attributes':{'class':['ck',_0x1ff578(0x16b),_0x1ff578(0x16d),_0x1ff578(0x15f)],'dir':_0x598185[_0x1ff578(0x165)]},'children':[this[_0x1ff578(0x16a)],this[_0x1ff578(0x167)],this[_0x1ff578(0x16e)],this[_0x1ff578(0x161)]]});}[_0x2c56b5(0x15d)](_0x79f3e,_0x4e2112,_0x3d7779,_0x3a31d6){var _0x28c156=_0x2c56b5;this[_0x28c156(0x16e)][_0x28c156(0x15d)](_0x79f3e,_0x4e2112,_0x3d7779,_0x3a31d6);}[_0x2c56b5(0x16f)](_0x2b61bb){var _0x425e04=_0x2c56b5;this[_0x425e04(0x16e)][_0x425e04(0x16f)](_0x2b61bb);}[_0x2c56b5(0x172)](){var _0x1372c5=_0x2c56b5;this[_0x1372c5(0x175)][_0x1372c5(0x15e)](),super[_0x1372c5(0x172)]();}}
|
|
@@ -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
|
+
function _0x26ba(_0x30a8bc,_0x59620c){const _0x1a112f=_0x1a11();return _0x26ba=function(_0x26ba30,_0x5adc3f){_0x26ba30=_0x26ba30-0x134;let _0x2e8f49=_0x1a112f[_0x26ba30];return _0x2e8f49;},_0x26ba(_0x30a8bc,_0x59620c);}const _0x5bd5e1=_0x26ba;(function(_0x4731d7,_0x176484){const _0x554032=_0x26ba,_0xd3b8fc=_0x4731d7();while(!![]){try{const _0x3a479a=-parseInt(_0x554032(0x14f))/0x1*(-parseInt(_0x554032(0x1c4))/0x2)+parseInt(_0x554032(0x19b))/0x3*(parseInt(_0x554032(0x170))/0x4)+-parseInt(_0x554032(0x13d))/0x5+-parseInt(_0x554032(0x1be))/0x6+-parseInt(_0x554032(0x1a5))/0x7+-parseInt(_0x554032(0x184))/0x8*(parseInt(_0x554032(0x1b8))/0x9)+parseInt(_0x554032(0x1ab))/0xa;if(_0x3a479a===_0x176484)break;else _0xd3b8fc['push'](_0xd3b8fc['shift']());}catch(_0x5c1ba0){_0xd3b8fc['push'](_0xd3b8fc['shift']());}}}(_0x1a11,0x90cc5));import{View as _0x12e5cb,BalloonPanelView as _0x731784,ButtonView as _0x4d8629,clickOutsideHandler as _0x597ce0}from'ckeditor5/src/ui.js';import{Collection as _0x237036}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x5bd5e1(0x194);function _0x1a11(){const _0x53e3bb=['add','border-box','_calculateOverflowInContainer','body','_isContainerVisible','_showMoreButtonView','_applyCalculationStyles','_checkAndHandleOverflow','bottom','_locale','50px','1611TbFGsM','display','top','reorganizeChips','isOn','show','135672GPpsRI','hideBalloonPanel','_createMockButton','pointerEvents','_makeAncestorsVisible','render','10UkfJXJ','showMoreLabelPrefix','getComputedStyle','className','_createShowMoreBalloonPanelView','cssClasses','hide','width','showBalloonPanel','ck-calculation-container','_intersectionObserver','button','overflowContainer','2821705SZRqSH','disconnect','opacity','innerHeight','position','height','_targetContainer','_updateOverflowUI','element','classList','right','+\x201','controlsButton','hidden','abs','_restoreAncestorVisibility','block','_updateShowMoreButtonVisibility','40897xCFvJN','overflowChips','some','isVisible','extendTemplate','rowDetectionTolerance','_calculateContainerWidth','pin','content','push','_distributeChips','tagName','toLowerCase','cloneNode','observe','-9999px','textContent','_repinBalloonPanel','block\x20!important','left','_parentView','clear','none','length','style','_testButtonFit','_renderChipsAndCountRows','.ck-ai-chat','documentElement','_bodyCollection','pop','_pendingCalculation','disableAnimationOnEnter','840076MzwuQz','boxSizing','_config','innerWidth','appendChild','set','_findTargetContainer','querySelector','_visibleChips','remove','includes','slice','_handleShowMoreButtonClick','_createCalculationContainer','visibility','_showMoreBalloonPanelView','clientHeight','label','0px','clientWidth','52184almhOu','_ancestorsToRestore','destroy','_createShowMoreButton','parentElement','_applyOverflowResults','showMoreBalloon','_containerElement','calculationContainer','maxVisibleRows','showMoreButton','from','_setupVisibilityObserver','innerHTML','isIntersecting','zIndex','300px','div','visible\x20!important','_createShowMoreButtonView','undefined','_overflowChips','absolute','3pelBQI','createElement','filter','setTemplate','children','execute','isConnected','_createContainerElements','auto','offsetWidth','7443674jpAxxb','showMoreButtonView','setContainerElement','getBoundingClientRect','forEach','_updateBalloonContent','29965410lnUMbz','visible'];_0x1a11=function(){return _0x53e3bb;};return _0x1a11();}export class AIChatChipsOverflowManager{[_0x5bd5e1(0x1b6)];[_0x5bd5e1(0x172)];[_0x5bd5e1(0x178)];[_0x5bd5e1(0x199)];[_0x5bd5e1(0x1b2)]=null;[_0x5bd5e1(0x17f)]=null;[_0x5bd5e1(0x18b)]=null;[_0x5bd5e1(0x16c)];[_0x5bd5e1(0x163)]=null;[_0x5bd5e1(0x13a)]=null;[_0x5bd5e1(0x16e)]=!0x1;constructor(_0x4bfd30,_0x2e639b,_0x2b2f51,_0x57486b,_0x33a951){const _0xe6e597=_0x5bd5e1;this[_0xe6e597(0x1b6)]=_0x4bfd30,this[_0xe6e597(0x178)]=_0x2e639b,this[_0xe6e597(0x172)]={...hn,..._0x2b2f51,'cssClasses':{'controlsButton':'','calculationContainer':_0xe6e597(0x139),..._0x2b2f51[_0xe6e597(0x135)]}},this[_0xe6e597(0x199)]=new _0x237036(),this[_0xe6e597(0x16c)]=_0x57486b,this[_0xe6e597(0x163)]=_0x33a951||null;}[_0x5bd5e1(0x1a7)](_0x384d2e){const _0xe7a495=_0x5bd5e1;this[_0xe7a495(0x13a)]&&(this[_0xe7a495(0x13a)][_0xe7a495(0x13e)](),this[_0xe7a495(0x13a)]=null),this[_0xe7a495(0x18b)]=_0x384d2e,this[_0xe7a495(0x190)]();}get[_0x5bd5e1(0x1a6)](){const _0x3aaee4=_0x5bd5e1;return this[_0x3aaee4(0x1b2)];}get[_0x5bd5e1(0x150)](){const _0x6270d5=_0x5bd5e1;return this[_0x6270d5(0x199)];}[_0x5bd5e1(0x1bb)](){requestAnimationFrame(()=>{const _0x51eb09=_0x26ba;this[_0x51eb09(0x1b4)]();});}[_0x5bd5e1(0x138)](){const _0x2bc69e=_0x5bd5e1;this[_0x2bc69e(0x1b2)]&&this[_0x2bc69e(0x17f)]&&(this[_0x2bc69e(0x1aa)](),this[_0x2bc69e(0x1b2)][_0x2bc69e(0x1bc)]=!0x0,this[_0x2bc69e(0x17f)][_0x2bc69e(0x1bd)](),this[_0x2bc69e(0x17f)][_0x2bc69e(0x156)]({'target':this[_0x2bc69e(0x1b2)][_0x2bc69e(0x145)],'limiter':document[_0x2bc69e(0x177)](_0x2bc69e(0x16a))}));}[_0x5bd5e1(0x1bf)](){const _0x2a3eeb=_0x5bd5e1;this[_0x2a3eeb(0x1b2)]&&this[_0x2a3eeb(0x17f)]&&(this[_0x2a3eeb(0x1b2)][_0x2a3eeb(0x1bc)]=!0x1,this[_0x2a3eeb(0x17f)][_0x2a3eeb(0x136)]());}[_0x5bd5e1(0x164)](){const _0x11b541=_0x5bd5e1;this[_0x11b541(0x199)][_0x11b541(0x164)](),this[_0x11b541(0x1bf)](),this[_0x11b541(0x14e)](),this[_0x11b541(0x1b2)]&&(this[_0x11b541(0x1b2)][_0x11b541(0x181)]=''),this[_0x11b541(0x17f)]&&this[_0x11b541(0x17f)][_0x11b541(0x157)][_0x11b541(0x164)]();}[_0x5bd5e1(0x186)](){const _0x157c2a=_0x5bd5e1;this[_0x157c2a(0x13a)]&&(this[_0x157c2a(0x13a)][_0x157c2a(0x13e)](),this[_0x157c2a(0x13a)]=null),this[_0x157c2a(0x1b2)]&&(this[_0x157c2a(0x1b2)][_0x157c2a(0x186)](),this[_0x157c2a(0x1b2)]=null),this[_0x157c2a(0x17f)]&&(this[_0x157c2a(0x17f)][_0x157c2a(0x186)](),this[_0x157c2a(0x17f)]=null);}[_0x5bd5e1(0x1b4)](){const _0x322537=_0x5bd5e1;if(!this[_0x322537(0x18b)])return;if(!this[_0x322537(0x1b1)]())return void(this[_0x322537(0x16e)]=!0x0);this[_0x322537(0x16e)]=!0x1;const _0x58d16d=[...this[_0x322537(0x178)],...this[_0x322537(0x199)]],_0x3fda81=this[_0x322537(0x17d)](),_0x40b64c=this[_0x322537(0x1af)](_0x3fda81,_0x58d16d),_0x240368=_0x3fda81[_0x322537(0x185)];_0x240368&&this[_0x322537(0x14c)](_0x240368),_0x3fda81[_0x322537(0x179)](),this[_0x322537(0x189)](_0x58d16d,_0x40b64c);}[_0x5bd5e1(0x187)](){const _0x203048=_0x5bd5e1;this[_0x203048(0x1b2)]=this[_0x203048(0x197)](),this[_0x203048(0x17f)]=this[_0x203048(0x134)](),this[_0x203048(0x1b2)][_0x203048(0x1c3)](),this[_0x203048(0x18b)][_0x203048(0x174)](this[_0x203048(0x1b2)][_0x203048(0x145)]),this[_0x203048(0x1b2)]['on'](_0x203048(0x1a0),()=>{const _0x457a77=_0x203048;this[_0x457a77(0x17c)]();}),_0x597ce0({'emitter':this[_0x203048(0x17f)],'contextElements':[this[_0x203048(0x17f)][_0x203048(0x145)],this[_0x203048(0x1b2)][_0x203048(0x145)]],'callback':()=>this[_0x203048(0x1bf)](),'activator':()=>this[_0x203048(0x1b2)][_0x203048(0x1bc)]});}[_0x5bd5e1(0x197)](){const _0xdec777=_0x5bd5e1,_0x511de5=new _0x4d8629(this[_0xdec777(0x1b6)]);_0x511de5[_0xdec777(0x175)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x311eb2=[this[_0xdec777(0x172)][_0xdec777(0x135)][_0xdec777(0x18e)]];return this[_0xdec777(0x172)][_0xdec777(0x135)][_0xdec777(0x149)]&&_0x311eb2[_0xdec777(0x158)](this[_0xdec777(0x172)][_0xdec777(0x135)][_0xdec777(0x149)]),_0x511de5[_0xdec777(0x153)]({'attributes':{'class':_0x311eb2}}),_0x511de5;}[_0x5bd5e1(0x134)](){const _0x9c858=_0x5bd5e1,_0x574f8e=new _0x731784(this[_0x9c858(0x1b6)]);return _0x574f8e[_0x9c858(0x153)]({'attributes':{'class':this[_0x9c858(0x172)][_0x9c858(0x135)][_0x9c858(0x18a)]}}),this[_0x9c858(0x16c)][_0x9c858(0x1ad)](_0x574f8e),_0x574f8e;}[_0x5bd5e1(0x1aa)](){const _0x44a7d9=_0x5bd5e1;if(this[_0x44a7d9(0x17f)]&&(this[_0x44a7d9(0x17f)][_0x44a7d9(0x157)][_0x44a7d9(0x164)](),this[_0x44a7d9(0x199)][_0x44a7d9(0x166)]>0x0)){this[_0x44a7d9(0x199)][_0x44a7d9(0x1a9)](_0x240450=>{const _0x45386a=_0x44a7d9;_0x240450[_0x45386a(0x16f)]();});const _0x462a48=new _0x12e5cb(this[_0x44a7d9(0x1b6)]);_0x462a48[_0x44a7d9(0x19e)]({'tag':_0x44a7d9(0x195),'attributes':{'class':this[_0x44a7d9(0x172)][_0x44a7d9(0x135)][_0x44a7d9(0x13c)]},'children':this[_0x44a7d9(0x199)]}),this[_0x44a7d9(0x17f)][_0x44a7d9(0x157)][_0x44a7d9(0x1ad)](_0x462a48);}}[_0x5bd5e1(0x17c)](){const _0x38a881=_0x5bd5e1;this[_0x38a881(0x1b2)][_0x38a881(0x1bc)]?this[_0x38a881(0x1bf)]():this[_0x38a881(0x138)]();}[_0x5bd5e1(0x14e)](){const _0x39a815=_0x5bd5e1,_0xa3b6f9=this[_0x39a815(0x199)][_0x39a815(0x166)]>0x0;this[_0x39a815(0x1b2)]?.[_0x39a815(0x145)]&&(this[_0x39a815(0x1b2)][_0x39a815(0x145)][_0x39a815(0x167)][_0x39a815(0x1b9)]=_0xa3b6f9?'':_0x39a815(0x165));}[_0x5bd5e1(0x160)](){const _0x2cb333=_0x5bd5e1;this[_0x2cb333(0x1b2)]?.[_0x2cb333(0x1bc)]&&this[_0x2cb333(0x17f)]?.[_0x2cb333(0x152)]&&this[_0x2cb333(0x1b2)][_0x2cb333(0x145)]&&this[_0x2cb333(0x17f)][_0x2cb333(0x156)]({'target':this[_0x2cb333(0x1b2)][_0x2cb333(0x145)],'limiter':document[_0x2cb333(0x177)](_0x2cb333(0x16a))});}[_0x5bd5e1(0x176)](_0x4d1afa){const _0x5a1de8=_0x5bd5e1,_0x3ecb68=this[_0x5a1de8(0x18b)]?.[_0x5a1de8(0x15a)][_0x5a1de8(0x15b)]()||_0x5a1de8(0x195),_0x4206ef=this[_0x5a1de8(0x18b)]?.[_0x5a1de8(0x146)];if(_0x4206ef){const _0x32b784=_0x4206ef[0x0]||'',_0xca83c=_0x4d1afa[_0x5a1de8(0x177)]('.'+_0x32b784),_0x43608a=_0x4d1afa[_0x5a1de8(0x177)](_0x3ecb68);return _0xca83c||_0x43608a||_0x4d1afa;}return _0x4d1afa[_0x5a1de8(0x177)](_0x3ecb68)||_0x4d1afa;}[_0x5bd5e1(0x155)](){const _0x2334d2=_0x5bd5e1,_0x30f4f7=this[_0x2334d2(0x163)]?.[_0x2334d2(0x145)]||this[_0x2334d2(0x18b)];if(!_0x30f4f7)return an;const _0x331323=window[_0x2334d2(0x1c6)](_0x30f4f7)[_0x2334d2(0x137)];if(_0x2334d2(0x1a3)===_0x331323||_0x2334d2(0x182)===_0x331323||!_0x331323){const _0x314c9d=_0x30f4f7[_0x2334d2(0x188)];if(_0x314c9d){const _0x1bfe30=window[_0x2334d2(0x1c6)](_0x314c9d);return _0x2334d2(0x1a3)!==_0x1bfe30[_0x2334d2(0x137)]?_0x1bfe30[_0x2334d2(0x137)]:an;}return an;}return _0x331323;}[_0x5bd5e1(0x1b3)](_0x318ba6,_0x3cd0ad){const _0x173b38=_0x5bd5e1;this[_0x173b38(0x172)][_0x173b38(0x135)][_0x173b38(0x18c)]&&_0x318ba6[_0x173b38(0x146)][_0x173b38(0x1ad)](this[_0x173b38(0x172)][_0x173b38(0x135)][_0x173b38(0x18c)]),_0x318ba6[_0x173b38(0x167)][_0x173b38(0x137)]=_0x3cd0ad,_0x318ba6[_0x173b38(0x167)][_0x173b38(0x141)]=_0x173b38(0x19a),_0x318ba6[_0x173b38(0x167)][_0x173b38(0x1ba)]=_0x173b38(0x15e),_0x318ba6[_0x173b38(0x167)][_0x173b38(0x162)]=_0x173b38(0x15e),_0x318ba6[_0x173b38(0x167)][_0x173b38(0x13f)]='0',_0x318ba6[_0x173b38(0x167)][_0x173b38(0x1c1)]=_0x173b38(0x165),_0x318ba6[_0x173b38(0x167)][_0x173b38(0x193)]='-1',_0x318ba6[_0x173b38(0x167)][_0x173b38(0x17e)]=_0x173b38(0x196),_0x318ba6[_0x173b38(0x167)][_0x173b38(0x1b9)]=_0x173b38(0x161),_0x318ba6[_0x173b38(0x167)][_0x173b38(0x171)]=_0x173b38(0x1ae);}[_0x5bd5e1(0x14c)](_0x4a777c){const _0xdb93b0=_0x5bd5e1;_0x4a777c[_0xdb93b0(0x1a9)](({element:_0x540234,originalDisplay:_0x2ea566,originalVisibility:_0x524d16})=>{const _0x513439=_0xdb93b0;_0x540234[_0x513439(0x167)][_0x513439(0x1b9)]=_0x2ea566,_0x540234[_0x513439(0x167)][_0x513439(0x17e)]=_0x524d16;});}[_0x5bd5e1(0x1c2)](_0x141002){const _0x416b9=_0x5bd5e1,_0x513464=[];let _0x4ca084=_0x141002;for(;_0x4ca084&&_0x4ca084!==document[_0x416b9(0x1b0)];){const _0x1a3aec=window[_0x416b9(0x1c6)](_0x4ca084);_0x416b9(0x165)!==_0x1a3aec[_0x416b9(0x1b9)]&&_0x416b9(0x14a)!==_0x1a3aec[_0x416b9(0x17e)]||(_0x513464[_0x416b9(0x158)]({'element':_0x4ca084,'originalDisplay':_0x4ca084[_0x416b9(0x167)][_0x416b9(0x1b9)],'originalVisibility':_0x4ca084[_0x416b9(0x167)][_0x416b9(0x17e)]}),_0x4ca084[_0x416b9(0x167)][_0x416b9(0x1b9)]=_0x416b9(0x14d),_0x4ca084[_0x416b9(0x167)][_0x416b9(0x17e)]=_0x416b9(0x1ac)),_0x4ca084=_0x4ca084[_0x416b9(0x188)];}return _0x513464;}[_0x5bd5e1(0x1a2)](){const _0x559040=_0x5bd5e1;let _0x2a8e65,_0x5886ba;return this[_0x559040(0x163)]?.[_0x559040(0x145)]?(_0x2a8e65=this[_0x559040(0x163)][_0x559040(0x145)][_0x559040(0x15c)](!0x0),_0x5886ba=this[_0x559040(0x176)](_0x2a8e65)):(_0x2a8e65=document[_0x559040(0x19c)](_0x559040(0x195)),_0x5886ba=_0x2a8e65),{'calculationContainer':_0x2a8e65,'targetContainer':_0x5886ba};}[_0x5bd5e1(0x17d)](){const _0x308032=_0x5bd5e1,{calculationContainer:_0x5effd9,targetContainer:_0x4f71e8}=this[_0x308032(0x1a2)](),_0x4fd7f2=this[_0x308032(0x155)]();this[_0x308032(0x1b3)](_0x5effd9,_0x4fd7f2);const _0x462f3b=this[_0x308032(0x163)]?.[_0x308032(0x145)]||this[_0x308032(0x18b)],_0x275206=_0x462f3b?.[_0x308032(0x188)];_0x275206?_0x275206[_0x308032(0x174)](_0x5effd9):document[_0x308032(0x1b0)][_0x308032(0x174)](_0x5effd9),_0x5effd9[_0x308032(0x143)]=_0x4f71e8;const _0x1cfe27=this[_0x308032(0x1c2)](_0x275206||null);return _0x5effd9[_0x308032(0x1a4)],_0x5effd9[_0x308032(0x185)]=_0x1cfe27,_0x5effd9;}[_0x5bd5e1(0x1af)](_0x239e5e,_0x41cf9a){const _0x3db462=_0x5bd5e1,_0xf1379c=_0x239e5e[_0x3db462(0x143)]||_0x239e5e,_0x2eaefa=[],{rowCount:_0x33126c}=this[_0x3db462(0x169)](_0xf1379c,_0x41cf9a);if(_0x33126c<=this[_0x3db462(0x172)][_0x3db462(0x18d)])return _0x2eaefa;const _0x1f0910=_0x41cf9a[_0x3db462(0x17b)]();for(;_0x1f0910[_0x3db462(0x166)]>0x0;){if(this[_0x3db462(0x168)](_0x239e5e,_0xf1379c,_0x1f0910)){const _0x4eb78d=_0x41cf9a[_0x3db462(0x19d)](_0x50664b=>!_0x1f0910[_0x3db462(0x17a)](_0x50664b));_0x2eaefa[_0x3db462(0x158)](..._0x4eb78d);break;}if(!_0x1f0910[_0x3db462(0x16d)]())break;}return _0x2eaefa;}[_0x5bd5e1(0x169)](_0x8667d5,_0x4c8f22){const _0x49b620=_0x5bd5e1;_0x8667d5[_0x49b620(0x191)]='',_0x4c8f22[_0x49b620(0x1a9)](_0x28013a=>{const _0x3fbd29=_0x49b620;if(_0x28013a[_0x3fbd29(0x145)]){const _0x550c72=_0x28013a[_0x3fbd29(0x145)][_0x3fbd29(0x15c)](!0x0);_0x8667d5[_0x3fbd29(0x174)](_0x550c72);}}),_0x8667d5[_0x49b620(0x1a4)];const _0x662e7=_0x8667d5[_0x49b620(0x19f)],_0x2933f9=[];return Array[_0x49b620(0x18f)](_0x662e7)[_0x49b620(0x1a9)](_0x26e4d9=>{const _0x3b822b=_0x49b620,_0x358818=_0x26e4d9[_0x3b822b(0x1a8)]()[_0x3b822b(0x1ba)];_0x2933f9[_0x3b822b(0x151)](_0x62bbe6=>Math[_0x3b822b(0x14b)](_0x62bbe6-_0x358818)<this[_0x3b822b(0x172)][_0x3b822b(0x154)])||_0x2933f9[_0x3b822b(0x158)](_0x358818);}),{'rowCount':_0x2933f9[_0x49b620(0x166)]};}[_0x5bd5e1(0x1c0)](){const _0x3870e7=_0x5bd5e1,_0x1f05fc=document[_0x3870e7(0x19c)](_0x3870e7(0x13b));return _0x1f05fc[_0x3870e7(0x1c7)]=this[_0x3870e7(0x172)][_0x3870e7(0x135)][_0x3870e7(0x18e)],this[_0x3870e7(0x172)][_0x3870e7(0x135)][_0x3870e7(0x149)]&&_0x1f05fc[_0x3870e7(0x146)][_0x3870e7(0x1ad)](this[_0x3870e7(0x172)][_0x3870e7(0x135)][_0x3870e7(0x149)]),_0x1f05fc[_0x3870e7(0x15f)]=_0x3870e7(0x148),_0x1f05fc;}[_0x5bd5e1(0x168)](_0x174979,_0x593d42,_0x34868b){const _0x496099=_0x5bd5e1;this[_0x496099(0x169)](_0x593d42,_0x34868b);const _0x270b80=this[_0x496099(0x1c0)]();_0x174979[_0x496099(0x174)](_0x270b80),_0x174979[_0x496099(0x1a4)];const _0x481421=[..._0x593d42[_0x496099(0x19f)],_0x270b80],_0x3a4f33=[];_0x481421[_0x496099(0x1a9)](_0x345f42=>{const _0x1fcd2d=_0x496099,_0x3ac031=_0x345f42[_0x1fcd2d(0x1a8)]()[_0x1fcd2d(0x1ba)];_0x3a4f33[_0x1fcd2d(0x151)](_0x13a66f=>Math[_0x1fcd2d(0x14b)](_0x13a66f-_0x3ac031)<this[_0x1fcd2d(0x172)][_0x1fcd2d(0x154)])||_0x3a4f33[_0x1fcd2d(0x158)](_0x3ac031);});const _0x20ce98=_0x3a4f33[_0x496099(0x166)];return _0x270b80[_0x496099(0x179)](),_0x20ce98<=this[_0x496099(0x172)][_0x496099(0x18d)];}[_0x5bd5e1(0x159)](_0x102e81,_0x2d1578){const _0x37b0a7=_0x5bd5e1;this[_0x37b0a7(0x178)][_0x37b0a7(0x164)](),this[_0x37b0a7(0x199)][_0x37b0a7(0x164)](),_0x102e81[_0x37b0a7(0x1a9)](_0x78b17=>{const _0xb71747=_0x37b0a7;_0x2d1578[_0xb71747(0x17a)](_0x78b17)?this[_0xb71747(0x199)][_0xb71747(0x1ad)](_0x78b17):this[_0xb71747(0x178)][_0xb71747(0x1ad)](_0x78b17);});}[_0x5bd5e1(0x144)](_0x495be4){const _0x3d277c=_0x5bd5e1;if(_0x495be4>0x0&&!this[_0x3d277c(0x1b2)]&&this[_0x3d277c(0x187)](),_0x495be4>0x0&&this[_0x3d277c(0x1b2)]){const _0x196479=''+this[_0x3d277c(0x172)][_0x3d277c(0x1c5)]+(_0x495be4<0x63?_0x495be4:'99');this[_0x3d277c(0x1b2)][_0x3d277c(0x181)]=_0x196479;}this[_0x3d277c(0x1aa)](),this[_0x3d277c(0x14e)](),this[_0x3d277c(0x160)]();}[_0x5bd5e1(0x189)](_0x58971a,_0x4e8f82){const _0x35c837=_0x5bd5e1;this[_0x35c837(0x159)](_0x58971a,_0x4e8f82),this[_0x35c837(0x144)](_0x4e8f82[_0x35c837(0x166)]);}[_0x5bd5e1(0x190)](){const _0x5e3f7f=_0x5bd5e1;this[_0x5e3f7f(0x18b)]&&_0x5e3f7f(0x198)!=typeof IntersectionObserver&&(this[_0x5e3f7f(0x13a)]=new IntersectionObserver(_0x1198fe=>{const _0x1fa4b7=_0x5e3f7f;_0x1198fe[0x0][_0x1fa4b7(0x192)]&&this[_0x1fa4b7(0x16e)]&&requestAnimationFrame(()=>{const _0x1a713c=_0x1fa4b7;this[_0x1a713c(0x1b4)]();});},{'threshold':0.01,'rootMargin':_0x5e3f7f(0x1b7)}),this[_0x5e3f7f(0x13a)][_0x5e3f7f(0x15d)](this[_0x5e3f7f(0x18b)]));}[_0x5bd5e1(0x1b1)](){const _0x4cb0f4=_0x5bd5e1;if(!this[_0x4cb0f4(0x18b)])return!0x1;if(!this[_0x4cb0f4(0x18b)][_0x4cb0f4(0x1a1)])return!0x1;const _0xf43020=this[_0x4cb0f4(0x18b)][_0x4cb0f4(0x1a8)]();if(0x0===_0xf43020[_0x4cb0f4(0x137)]||0x0===_0xf43020[_0x4cb0f4(0x142)])return!0x1;const _0x22191b=window[_0x4cb0f4(0x140)]||document[_0x4cb0f4(0x16b)][_0x4cb0f4(0x180)],_0x4db200=window[_0x4cb0f4(0x173)]||document[_0x4cb0f4(0x16b)][_0x4cb0f4(0x183)],_0x2a0a2f=0xc8;return _0xf43020[_0x4cb0f4(0x1b5)]>=-0xc8&&_0xf43020[_0x4cb0f4(0x1ba)]<=_0x22191b+_0x2a0a2f&&_0xf43020[_0x4cb0f4(0x147)]>=-0xc8&&_0xf43020[_0x4cb0f4(0x162)]<=_0x4db200+_0x2a0a2f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x27deba=_0x4be3;(function(_0x4fb9dd,_0x4be8a8){const _0x25e137=_0x4be3,_0x197e92=_0x4fb9dd();while(!![]){try{const _0x37f8d4=parseInt(_0x25e137(0xa9))/0x1*(-parseInt(_0x25e137(0xbb))/0x2)+-parseInt(_0x25e137(0xcf))/0x3+-parseInt(_0x25e137(0xbe))/0x4*(parseInt(_0x25e137(0xca))/0x5)+-parseInt(_0x25e137(0xbf))/0x6+parseInt(_0x25e137(0xc4))/0x7*(parseInt(_0x25e137(0xb2))/0x8)+-parseInt(_0x25e137(0xb1))/0x9*(-parseInt(_0x25e137(0xe4))/0xa)+parseInt(_0x25e137(0xd0))/0xb*(parseInt(_0x25e137(0xcd))/0xc);if(_0x37f8d4===_0x4be8a8)break;else _0x197e92['push'](_0x197e92['shift']());}catch(_0x28d27f){_0x197e92['push'](_0x197e92['shift']());}}}(_0x5537,0x7e48a));import{ButtonView as _0x277256,IconView as _0x211f34}from'ckeditor5/src/ui.js';import{IconClose as _0x98edc3,IconDocument as _0x3c6a00,IconFileUpload as _0x58f253,IconLink as _0x1a7bf6,IconSelection as _0x398595}from'@ckeditor/ckeditor5-icons';function _0x5537(){const _0x109e5d=['fire','ck-ai-chat-context-controls__chip-tooltip','88eplVmj','ck-ai-chat-context-chip__type-icon','ck-ai-chat-context-chip_document','19556gIOudT','2770170HKoMHt','classList','uiId','setTemplate','type','102634VSaPmu','document','small','_createTemplateChildren','set','_initializeProperties','820KVYlIC','removeContextItemChip','webkitAnimationEnd','1128IVqMAo','_createTemplateAttributes','1472856JZfRcv','270259KElfyE','extendTemplate','_setupRemoveButtonEvent','_createLabelElement','_handleAnimationEndOnce','isVisible','addEventListener','removeEventListener','render','readonly','length','itemType','ck-ai-chat-context-chip_wide','add','ck-ai-chat-context-chip','remove','ck-ai-chat-context-chip_new-chip','selection','locale','disableAnimationOnEnter','5962850zIicaD','slice','_setupTemplate','execute','div','isLoading','_createIconView','span','_createLoaderIcon','20742EVLgBM','tooltip','ck-ai-chat-context-chip__label','content','_isAnimationOnEnterEnabled','animationend','label','bind','9jnxGQV','152LGBwnf','element','_createRemoveButton','ck-hidden','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','lastIndexOf','bindTemplate'];_0x5537=function(){return _0x109e5d;};return _0x5537();}import{getTranslation as _0x555012}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x44e1f6}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x58f253,'document':_0x3c6a00,'web-resource':_0x1a7bf6,'text':_0x58f253,'selection':_0x398595,'mcp-tool-context':_0x3c6a00},bn=_0x27deba(0xde),wn=_0x27deba(0xdc),Tn=_0x27deba(0xbd),En=_0x27deba(0xab),fn=_0x27deba(0xbc),An=_0x27deba(0xba),Cn='n';export class AIChatContextItemButtonView extends _0x277256{constructor(_0x5e4998,_0x314bd2,_0x1b2795,_0x256ead,_0x3d2cb2=!0x1){const _0x1173f7=_0x27deba;super(_0x5e4998),this[_0x1173f7(0xad)]=_0x256ead,this[_0x1173f7(0xc9)](_0x314bd2,_0x1b2795,_0x3d2cb2),this[_0x1173f7(0xa2)]();}[_0x27deba(0xd8)](){const _0x3069e4=_0x27deba;super[_0x3069e4(0xd8)](),this[_0x3069e4(0xad)]&&this[_0x3069e4(0xb3)]&&(this[_0x3069e4(0xb3)][_0x3069e4(0xc0)][_0x3069e4(0xdd)](_0x3069e4(0xe0)),this[_0x3069e4(0xd4)](this[_0x3069e4(0xb3)],()=>{const _0x40678f=_0x3069e4;this[_0x40678f(0xb3)]&&this[_0x40678f(0xb3)][_0x40678f(0xc0)][_0x40678f(0xdf)](_0x40678f(0xe0));}));}[_0x27deba(0xe3)](){const _0x3569a9=_0x27deba;this[_0x3569a9(0xad)]=!0x1,this[_0x3569a9(0xb3)]&&this[_0x3569a9(0xb3)][_0x3569a9(0xc0)][_0x3569a9(0xdf)](_0x3569a9(0xe0));}[_0x27deba(0xc9)](_0x18eaca,_0x539905,_0x14c2bc){const _0x14bdef=_0x27deba;this[_0x14bdef(0xc8)](_0x14bdef(0xaf),_0x18eaca[_0x14bdef(0xaf)]),this[_0x14bdef(0xc8)](_0x14bdef(0xaa),!0x0),this[_0x14bdef(0xc8)](_0x14bdef(0xdb),_0x18eaca[_0x14bdef(0xc3)]),this[_0x14bdef(0xc8)]('id',_0x18eaca[_0x14bdef(0xc1)]),this[_0x14bdef(0xc8)](_0x14bdef(0xd9),_0x539905),this[_0x14bdef(0xc8)](_0x14bdef(0xa5),_0x14c2bc);}[_0x27deba(0xa2)](){const _0x644adc=_0x27deba,_0x1775db=this[_0x644adc(0xa6)](),_0xbde957=this[_0x644adc(0xb4)](),_0xca08d4=this[_0x644adc(0xb8)];this[_0x644adc(0xc2)]({'tag':_0x644adc(0xa4),'attributes':this[_0x644adc(0xce)](_0xca08d4),'children':this[_0x644adc(0xc7)](_0x1775db,_0xbde957,_0xca08d4)});}[_0x27deba(0xce)](_0x52fd05){const _0x141d53=_0x27deba;return{'class':[bn,_0x52fd05['if'](_0x141d53(0xdb),Tn,_0x4ae7e6=>_0x141d53(0xc5)==_0x4ae7e6),_0x52fd05['if'](_0x141d53(0xdb),wn,_0x5def70=>_0x141d53(0xe1)==_0x5def70)],'data-cke-tooltip-text':_0x52fd05['to'](_0x141d53(0xaf),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x27deba(0xc7)](_0x5851eb,_0x2ddaf4,_0x55bcb0){const _0xf45e58=_0x27deba,_0x2cf26=this[_0xf45e58(0xd3)](_0x55bcb0),_0x21184a=this[_0xf45e58(0xa8)]();return this[_0xf45e58(0xd9)]?[_0x5851eb,_0x2cf26]:[_0x5851eb,_0x21184a,_0x2cf26,_0x2ddaf4];}[_0x27deba(0xd3)](_0x887f0){const _0x36ecf7=_0x27deba;return{'tag':_0x36ecf7(0xa7),'attributes':{'class':En},'children':[{'text':_0x887f0['to'](_0x36ecf7(0xaf))}]};}[_0x27deba(0xb4)](){const _0x49a2fc=_0x27deba,_0x5252bd=new _0x277256(this[_0x49a2fc(0xe2)]);return _0x5252bd[_0x49a2fc(0xc8)]({'label':_0x555012(this[_0x49a2fc(0xe2)],_0x49a2fc(0xb6)),'icon':_0x98edc3}),this[_0x49a2fc(0xd2)](_0x5252bd),_0x5252bd;}[_0x27deba(0xd2)](_0x206a03){const _0x37a878=_0x27deba;_0x206a03['on'](_0x37a878(0xa3),()=>{const _0x2d31c1=_0x37a878;this[_0x2d31c1(0xb9)](_0x2d31c1(0xcb),this['id']);});}[_0x27deba(0xa6)](){const _0x476440=_0x27deba,_0x57ca41=this[_0x476440(0xb8)],_0x3a02f7=new _0x211f34();return _0x3a02f7[_0x476440(0xac)]=xn[this[_0x476440(0xdb)]],_0x3a02f7[_0x476440(0xd1)]({'attributes':{'class':[fn,_0x57ca41['if'](_0x476440(0xa5),_0x476440(0xb5),_0x50af05=>_0x50af05)]}}),_0x3a02f7;}[_0x27deba(0xd4)](_0x4403ec,_0x471f34){const _0x17ee8f=_0x27deba;if(!_0x4403ec)return;const _0x3bdee7=()=>{const _0x5f1255=_0x4be3;_0x471f34(),_0x4403ec[_0x5f1255(0xd7)](_0x5f1255(0xae),_0x3bdee7),_0x4403ec[_0x5f1255(0xd7)](_0x5f1255(0xcc),_0x3bdee7);};_0x4403ec[_0x17ee8f(0xd6)](_0x17ee8f(0xae),_0x3bdee7),_0x4403ec[_0x17ee8f(0xd6)](_0x17ee8f(0xcc),_0x3bdee7);}[_0x27deba(0xa8)](){const _0x351ee1=_0x27deba,_0x5a467d=new _0x44e1f6(_0x351ee1(0xc6));return _0x5a467d[_0x351ee1(0xb0)](_0x351ee1(0xd5))['to'](this,_0x351ee1(0xa5),_0x3bc501=>_0x3bc501),_0x5a467d;}}function _0x4be3(_0x383aaf,_0x3d85af){const _0x5537e0=_0x5537();return _0x4be3=function(_0x4be329,_0x2a2369){_0x4be329=_0x4be329-0xa1;let _0x9a9513=_0x5537e0[_0x4be329];return _0x9a9513;},_0x4be3(_0x383aaf,_0x3d85af);}function In(_0x21880a){const _0x208152=_0x27deba;if(!_0x21880a)return _0x21880a;if(_0x21880a[_0x208152(0xda)]<=0x78)return _0x21880a;const _0x55a82c=_0x21880a[_0x208152(0xa1)](0x0,0x78),_0x599d10=_0x55a82c[_0x208152(0xb7)]('\x20');return(_0x599d10>0x0?_0x55a82c[_0x208152(0xa1)](0x0,_0x599d10):_0x55a82c)+'…';}
|