@ckeditor/ckeditor5-ai 47.7.0-alpha.3 → 47.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x3a09(){const _0x2f24c9=['ai-chat-conversation-start-failed','conversationId','start','getCurrentDocumentContext','indexOf','getConversation','role','getPendingContextItems','addToConversationContext','push','_processMessagesToInteractions','9NYdRKX','fetchConversation','addSelectionToContext','ai-chat-conversation-set-model-not-available','setModel','setReasoning','ai-chat-handle-user-interaction-start-failed','length','ai-chat-handle-user-interaction-already-in-progress','modelSelected','addToolItemToContext','group','toggleWebSearch','setWebSearch','prompt','chatModels','message','options','text','contextItems','isFromHistory','ai-chat-handle-user-conversation-not-initialized','getCapabilitiesConfig','model','setConversationTitle','init','6HGQPEV','webSearch','hasOwn','addCurrentDocumentToContext','addUrlToContext','ai-chat-conversation-init-failed','isCurrentDocumentInContext','destroy','createInteraction','_handleToolResultData','find','addResourceToContext','getAll','4483905WRZxTg','reasoning','ai-chat-conversation-init-from-id-failed','code','addFilesToContext','attributes','modification','capabilities','stop','updateCurrentDocument','delegate','content','connector','isAvailable','_extractContextItems','selectedModel','loadSourceResources','getEditor','stack','handleUserInteraction','ai-chat-conversation-set-model-null','1028796ZuNLjY','interactionCreated','sessionId','startConversation','8YgIYTZ','conversationStarted','2410000eZheEZ','reset','lastInteraction','chatCapabilities','24NTsfRS','set','selectedModelId','toLowerCase','removeInteraction','parse','conversationInitialized','get','updateCurrentDocumentInContext','getDocumentContext','chatContext','assistant','interactions','splice','3199149bZDaxs','sources','removeSelectionFromContext','removeFromContext','8096924QxrCnJ','user','title','isSelectionInContext','fetchConversationMessages','appendContent','getAvailableModels','currentInteraction','createReply','currentReply','getModel','5537329YBFLTm','error','getMessages','load','populateFromMessage','6022idSNma','327WLBind','isCurrentDocumentInConversation','mcp-tool-result','getInteraction','toolName','ai-chat-conversation-already-started','isStarted','url','ai-chat-conversation-start-no-model-selected','fire','type','toggleReasoning'];_0x3a09=function(){return _0x2f24c9;};return _0x3a09();}function _0x21c6(_0x328ebf,_0x24b58f){const _0x3a094e=_0x3a09();return _0x21c6=function(_0x21c6bb,_0x3f4581){_0x21c6bb=_0x21c6bb-0x10c;let _0x3ff245=_0x3a094e[_0x21c6bb];return _0x3ff245;},_0x21c6(_0x328ebf,_0x24b58f);}const _0xf624fd=_0x21c6;(function(_0xc0c540,_0x414283){const _0x39763c=_0x21c6,_0x4051e2=_0xc0c540();while(!![]){try{const _0x13dd9f=-parseInt(_0x39763c(0x12c))/0x1*(parseInt(_0x39763c(0x12b))/0x2)+-parseInt(_0x39763c(0x143))/0x3*(-parseInt(_0x39763c(0x17f))/0x4)+-parseInt(_0x39763c(0x16a))/0x5*(parseInt(_0x39763c(0x15d))/0x6)+parseInt(_0x39763c(0x126))/0x7*(parseInt(_0x39763c(0x183))/0x8)+-parseInt(_0x39763c(0x117))/0x9+-parseInt(_0x39763c(0x185))/0xa+-parseInt(_0x39763c(0x11b))/0xb*(-parseInt(_0x39763c(0x189))/0xc);if(_0x13dd9f===_0x414283)break;else _0x4051e2['push'](_0x4051e2['shift']());}catch(_0x2fb810){_0x4051e2['push'](_0x4051e2['shift']());}}}(_0x3a09,0x87fad));import{CKEditorError as _0x5af740,EmitterMixin as _0x28ced1,logWarning as _0x13eb82}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x5ce25a}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x1fbda6,AI_CONTEXT_MODEL_EVENT_NAMES as _0x1e1980}from'./aichatcontext.js';import{AICapabilities as _0x36e433,CAPABILITIES_MODEL_EVENT_NAMES as _0x18bf33}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x29da5e}from'./aichatinteraction.js';import{errorsMap as _0x3b9821}from'../../errorsmap.js';export class AIChatConversation extends _0x28ced1(){['id'];[_0xf624fd(0x132)]=!0x1;[_0xf624fd(0x157)];[_0xf624fd(0x115)]=[];[_0xf624fd(0x122)];[_0xf624fd(0x179)];[_0xf624fd(0x176)];[_0xf624fd(0x154)];constructor(_0xad5c8f){const _0x358085=_0xf624fd;super(),this[_0x358085(0x154)]=_0xad5c8f,this[_0x358085(0x176)]=_0xad5c8f[_0x358085(0x176)],this[_0x358085(0x152)]=_0xad5c8f[_0x358085(0x152)],this['id']=_0xad5c8f[_0x358085(0x139)],this[_0x358085(0x157)]=_0xad5c8f[_0x358085(0x157)];}async[_0xf624fd(0x15c)](_0x1bda07){const _0x1b0ff6=_0xf624fd;try{this[_0x1b0ff6(0x113)]=new _0x1fbda6({'connector':this[_0x1b0ff6(0x176)],'config':_0x1bda07,'ownerId':this['id']}),this[_0x1b0ff6(0x113)][_0x1b0ff6(0x174)](..._0x1e1980)['to'](this),this[_0x1b0ff6(0x113)][_0x1b0ff6(0x15c)](),this[_0x1b0ff6(0x188)]=new _0x36e433(),this[_0x1b0ff6(0x188)][_0x1b0ff6(0x174)](..._0x18bf33)['to'](this),this[_0x1b0ff6(0x188)][_0x1b0ff6(0x15c)]();const _0x43f0a4=await this[_0x1b0ff6(0x152)][_0x1b0ff6(0x121)]();this[_0x1b0ff6(0x135)](_0x1b0ff6(0x10f),{'availableModels':_0x43f0a4});const _0x2a93c7=await this[_0x1b0ff6(0x152)][_0x1b0ff6(0x125)](this[_0x1b0ff6(0x154)][_0x1b0ff6(0x18b)]);_0x2a93c7&&await this[_0x1b0ff6(0x147)](_0x2a93c7);}catch(_0x265333){const _0x1e89be=new _0x5af740(_0x1b0ff6(0x162),null,{'message':_0x265333[_0x1b0ff6(0x153)]||_0x265333});_0x1e89be[_0x1b0ff6(0x17c)]=_0x265333[_0x1b0ff6(0x17c)],this[_0x1b0ff6(0x135)](_0x1b0ff6(0x127),{'error':_0x1e89be});}}async[_0xf624fd(0x13a)](){const _0x24e6d2=_0xf624fd;if(this[_0x24e6d2(0x132)])throw new _0x5af740(_0x24e6d2(0x131),null,{'conversation':this});if(!this[_0x24e6d2(0x179)])throw new _0x5af740(_0x24e6d2(0x134),null,{'conversation':this});try{const {id:_0x45a51b}=await this[_0x24e6d2(0x176)][_0x24e6d2(0x182)](this['id'],this[_0x24e6d2(0x154)][_0x24e6d2(0x14e)])[_0x24e6d2(0x13d)]();this['id']=_0x45a51b,this[_0x24e6d2(0x132)]=!0x0,this[_0x24e6d2(0x135)](_0x24e6d2(0x184),{'conversationId':this['id'],'selectedModel':this[_0x24e6d2(0x179)]});}catch(_0x2a7257){const _0x3d4db3=new _0x5af740(_0x24e6d2(0x138),null,{'message':_0x2a7257[_0x24e6d2(0x153)],'conversationId':this['id']});throw _0x3d4db3[_0x24e6d2(0x17c)]=_0x2a7257[_0x24e6d2(0x17c)],this[_0x24e6d2(0x135)](_0x24e6d2(0x127),{'error':_0x3d4db3}),_0x3d4db3;}}async[_0xf624fd(0x129)](_0x1b4380,_0x613fcc){const _0xb5f2a1=_0xf624fd;try{const _0x662ff=await this[_0xb5f2a1(0x176)][_0xb5f2a1(0x144)](_0x1b4380)[_0xb5f2a1(0x13d)](),_0x594d6e=await this[_0xb5f2a1(0x176)][_0xb5f2a1(0x11f)](_0x1b4380)[_0xb5f2a1(0x128)](),_0x3336e6=_0x594d6e[0x0][_0xb5f2a1(0x15a)];this[_0xb5f2a1(0x132)]=!0x0,this['id']=_0x662ff['id'],_0xb5f2a1(0x11d)in _0x662ff?this[_0xb5f2a1(0x135)](_0xb5f2a1(0x15b),_0x662ff[_0xb5f2a1(0x11d)],!0x0):this[_0xb5f2a1(0x135)](_0xb5f2a1(0x15b),'',!0x0);const _0x24c732=(await this[_0xb5f2a1(0x152)][_0xb5f2a1(0x169)]())[_0xb5f2a1(0x167)](_0x4d74c8=>_0x4d74c8['id'][_0xb5f2a1(0x10c)]()===_0x3336e6[_0xb5f2a1(0x10c)]());return this[_0xb5f2a1(0x179)]=_0x24c732,this[_0xb5f2a1(0x135)](_0xb5f2a1(0x14c),{'selectedModel':_0x24c732,'isDisabled':!0x0}),await this[_0xb5f2a1(0x142)](_0x594d6e,_0x613fcc,_0x3336e6),this[_0xb5f2a1(0x122)]=void 0x0,this;}catch(_0x4142e3){const _0x24746e=new _0x5af740(_0xb5f2a1(0x16c),null,{'message':_0x4142e3[_0xb5f2a1(0x153)],'conversationId':_0x1b4380});throw _0x24746e[_0xb5f2a1(0x17c)]=_0x4142e3[_0xb5f2a1(0x17c)],this[_0xb5f2a1(0x135)](_0xb5f2a1(0x127),{'error':_0x24746e}),_0x24746e;}}async[_0xf624fd(0x142)](_0x273eaa,_0x21ec08,_0x3b60fd){const _0x2c7550=_0xf624fd;let _0x23a1e2;for(const _0x213269 of _0x273eaa)if(_0x2c7550(0x11c)===_0x213269[_0x2c7550(0x13e)]){const _0x54358a=await this[_0x2c7550(0x178)](_0x213269),_0x28de6d={'isReasoningEnabled':Object[_0x2c7550(0x15f)](_0x213269[_0x2c7550(0x171)],_0x2c7550(0x16b)),'isWebSearchEnabled':Object[_0x2c7550(0x15f)](_0x213269[_0x2c7550(0x171)],_0x2c7550(0x15e))};_0x23a1e2=this[_0x2c7550(0x165)]({'userMessage':_0x213269[_0x2c7550(0x151)],'contextItems':_0x54358a,'capabilities':_0x28de6d,'modelId':_0x3b60fd,'attributes':_0x213269[_0x2c7550(0x16f)]}),this[_0x2c7550(0x122)]=_0x23a1e2,this[_0x2c7550(0x113)][_0x2c7550(0x140)](this[_0x2c7550(0x122)][_0x2c7550(0x156)]);}else{if(_0x2c7550(0x114)===_0x213269[_0x2c7550(0x13e)]&&_0x23a1e2){const _0xde25a6=[];for(const _0x301025 of _0x213269[_0x2c7550(0x175)])switch(_0x301025[_0x2c7550(0x136)]){case _0x2c7550(0x155):case _0x2c7550(0x170):{const _0x4d964e=_0x23a1e2[_0x2c7550(0x112)]()?.[_0x2c7550(0x181)]!==_0x21ec08;_0x23a1e2[_0x2c7550(0x124)]=_0x23a1e2[_0x2c7550(0x123)]({'type':_0x301025[_0x2c7550(0x136)],'isDone':!0x0,'interactionId':_0x23a1e2['id'],'areActionsDisabled':_0x4d964e}),_0x23a1e2[_0x2c7550(0x124)][_0x2c7550(0x120)](_0x301025[_0x2c7550(0x175)]),_0xde25a6[_0x2c7550(0x14a)]>0x0&&(_0x23a1e2[_0x2c7550(0x124)][_0x2c7550(0x118)]=_0xde25a6[_0x2c7550(0x116)](0x0));break;}case _0x2c7550(0x133):_0xde25a6[_0x2c7550(0x141)](_0x301025);break;case _0x2c7550(0x12e):{const {data:_0xfd882d,attributes:_0x1d190d}=JSON[_0x2c7550(0x10e)](_0x301025[_0x2c7550(0x175)]);_0x23a1e2[_0x2c7550(0x166)]({'toolName':_0x301025[_0x2c7550(0x130)],'data':_0xfd882d,'attributes':_0x1d190d});break;}}}}}async[_0xf624fd(0x178)](_0xc7bb67){const _0x5c0d0c=_0xf624fd,_0x35cb4f=new Map();if(!_0xc7bb67[_0x5c0d0c(0x175)])return _0x35cb4f;for(const _0x1060da of _0xc7bb67[_0x5c0d0c(0x175)]){const _0x79f866=await this[_0x5c0d0c(0x113)][_0x5c0d0c(0x12a)](_0x1060da);_0x79f866&&_0x35cb4f[_0x5c0d0c(0x18a)](_0x79f866['id'],_0x79f866);}return _0x35cb4f;}async[_0xf624fd(0x17d)]({userMessage:_0x573aff,attributes:_0x586d62}){const _0x38aad6=_0xf624fd;if(!this[_0x38aad6(0x132)])throw new _0x5af740(_0x38aad6(0x158),null,{'conversation':this});if(this[_0x38aad6(0x122)])throw new _0x5af740(_0x38aad6(0x14b),null,{'conversation':this});try{const _0x13ee14=this[_0x38aad6(0x113)][_0x38aad6(0x13f)](),_0x31f7ab=this[_0x38aad6(0x188)][_0x38aad6(0x159)](),_0x337143=this[_0x38aad6(0x179)]['id'];this[_0x38aad6(0x122)]=this[_0x38aad6(0x165)]({'userMessage':_0x573aff,'contextItems':_0x13ee14,'capabilities':_0x31f7ab,'modelId':_0x337143,'attributes':_0x586d62}),await this[_0x38aad6(0x122)][_0x38aad6(0x13a)](),this[_0x38aad6(0x113)][_0x38aad6(0x140)](this[_0x38aad6(0x122)][_0x38aad6(0x156)]);}catch(_0x5b9b81){if(_0x5b9b81 instanceof _0x5af740)this[_0x38aad6(0x135)](_0x38aad6(0x127),{'interactionId':this[_0x38aad6(0x122)]?this[_0x38aad6(0x122)]['id']:void 0x0,'error':_0x5b9b81});else{const _0x4815ab=_0x3b9821[_0x38aad6(0x110)](_0x5b9b81[_0x38aad6(0x16d)])||_0x38aad6(0x149);this[_0x38aad6(0x135)](_0x38aad6(0x127),{'interactionId':this[_0x38aad6(0x122)]?this[_0x38aad6(0x122)]['id']:void 0x0,'error':new _0x5af740(_0x4815ab,null,{'error':_0x5b9b81})});}}finally{this[_0x38aad6(0x122)]?.[_0x38aad6(0x172)](),this[_0x38aad6(0x122)]=void 0x0;}}[_0xf624fd(0x165)]({userMessage:_0x42200b,contextItems:_0x4ebf2b,capabilities:_0x221304,modelId:_0x53963d,attributes:_0x2233c1}){const _0x47d0ff=_0xf624fd,_0x26e746=new _0x29da5e({'userMessage':_0x42200b,'contextItems':_0x4ebf2b,'capabilities':_0x221304,'conversationId':this['id'],'connector':this[_0x47d0ff(0x176)],'editor':this[_0x47d0ff(0x154)][_0x47d0ff(0x17b)]&&this[_0x47d0ff(0x154)][_0x47d0ff(0x17b)](),'model':_0x53963d,'attributes':_0x2233c1});return _0x26e746[_0x47d0ff(0x174)](..._0x5ce25a)['to'](this),this[_0x47d0ff(0x115)][_0x47d0ff(0x141)](_0x26e746),this[_0x47d0ff(0x135)](_0x47d0ff(0x180),_0x26e746),_0x26e746;}[_0xf624fd(0x12f)](_0x3c8d2e){const _0x26ff2a=_0xf624fd;return this[_0x26ff2a(0x115)][_0x26ff2a(0x167)](_0xfd2770=>_0xfd2770['id']===_0x3c8d2e);}[_0xf624fd(0x10d)](_0x3dbae9){const _0x456ca5=_0xf624fd,_0x223e39=this[_0x456ca5(0x12f)](_0x3dbae9);_0x223e39&&(_0x223e39[_0x456ca5(0x164)](),this[_0x456ca5(0x115)][_0x456ca5(0x116)](this[_0x456ca5(0x115)][_0x456ca5(0x13c)](_0x223e39),0x1));}get[_0xf624fd(0x187)](){const _0x55b3a2=_0xf624fd;return this[_0x55b3a2(0x115)][this[_0x55b3a2(0x115)][_0x55b3a2(0x14a)]-0x1];}[_0xf624fd(0x160)](_0x3c345c){const _0xdf3b68=_0xf624fd;this[_0xdf3b68(0x113)][_0xdf3b68(0x160)](_0x3c345c);}async[_0xf624fd(0x111)]({content:_0x48f372,version:_0x668c7f,sessionId:_0x50708f,selections:_0x1a44ac}){const _0x54a57c=_0xf624fd;await this[_0x54a57c(0x113)][_0x54a57c(0x173)](_0x48f372,_0x668c7f,_0x50708f,_0x1a44ac);}[_0xf624fd(0x13b)](){const _0x4e772f=_0xf624fd;return this[_0x4e772f(0x122)]?.[_0x4e772f(0x112)]()?.[_0x4e772f(0x175)]||'';}[_0xf624fd(0x145)](_0x39450f){const _0x6ff881=_0xf624fd;this[_0x6ff881(0x113)][_0x6ff881(0x145)](_0x39450f);}[_0xf624fd(0x119)](){const _0x45ec9f=_0xf624fd;this[_0x45ec9f(0x113)][_0x45ec9f(0x119)]();}[_0xf624fd(0x16e)](_0x4346ca){const _0x101335=_0xf624fd;this[_0x101335(0x113)][_0x101335(0x16e)](_0x4346ca);}[_0xf624fd(0x161)](_0x4cd0f7){const _0x352e6a=_0xf624fd;this[_0x352e6a(0x113)][_0x352e6a(0x161)](_0x4cd0f7);}[_0xf624fd(0x14d)](_0x41b3d7){const _0x30254e=_0xf624fd;this[_0x30254e(0x113)][_0x30254e(0x14d)](_0x41b3d7);}[_0xf624fd(0x168)](_0x407563,_0x413467){const _0x2c1197=_0xf624fd;this[_0x2c1197(0x113)][_0x2c1197(0x168)](_0x407563,_0x413467);}[_0xf624fd(0x17a)](_0x50468d,_0x4426fc,_0x449f08){const _0xed5863=_0xf624fd;return this[_0xed5863(0x113)][_0xed5863(0x17a)](_0x50468d,_0x4426fc,_0x449f08);}[_0xf624fd(0x11a)](_0x1396ca){const _0x17f7cc=_0xf624fd;this[_0x17f7cc(0x113)][_0x17f7cc(0x11a)](_0x1396ca);}[_0xf624fd(0x150)](_0x356eff){const _0x372772=_0xf624fd;this[_0x372772(0x188)][_0x372772(0x150)](_0x356eff);}[_0xf624fd(0x14f)](){const _0x569c6a=_0xf624fd;this[_0x569c6a(0x188)][_0x569c6a(0x14f)]();}[_0xf624fd(0x148)](_0x4c18ff){const _0x523b34=_0xf624fd;this[_0x523b34(0x188)][_0x523b34(0x148)](_0x4c18ff);}[_0xf624fd(0x137)](){const _0x462768=_0xf624fd;this[_0x462768(0x188)][_0x462768(0x137)]();}[_0xf624fd(0x163)](){const _0x2f550f=_0xf624fd;return this[_0x2f550f(0x113)][_0x2f550f(0x163)]();}[_0xf624fd(0x12d)](){const _0x1c78e4=_0xf624fd;return this[_0x1c78e4(0x113)][_0x1c78e4(0x12d)]();}[_0xf624fd(0x11e)](){const _0x171214=_0xf624fd;return this[_0x171214(0x113)][_0x171214(0x11e)]();}async[_0xf624fd(0x147)](_0x30e983){const _0x54897d=_0xf624fd;_0x30e983?!0x1===await this[_0x54897d(0x152)][_0x54897d(0x177)](_0x30e983)&&(_0x13eb82(_0x54897d(0x146),{'conversation':this,'model':_0x30e983}),_0x30e983=(await this[_0x54897d(0x152)][_0x54897d(0x121)]())[0x0]):(_0x13eb82(_0x54897d(0x17e),{'conversation':this}),_0x30e983=(await this[_0x54897d(0x152)][_0x54897d(0x121)]())[0x0]),_0x30e983['id']!==this[_0x54897d(0x179)]?.['id']&&(this[_0x54897d(0x179)]=_0x30e983,this[_0x54897d(0x188)][_0x54897d(0x186)](),this[_0x54897d(0x135)](_0x54897d(0x14c),{'selectedModel':_0x30e983}));}}
|
|
23
|
+
const _0x2c5f9a=_0x1173;(function(_0x44d938,_0x460805){const _0x4b16e0=_0x1173,_0x33da34=_0x44d938();while(!![]){try{const _0x4349b5=parseInt(_0x4b16e0(0x85))/0x1+parseInt(_0x4b16e0(0xf1))/0x2+-parseInt(_0x4b16e0(0x8b))/0x3+parseInt(_0x4b16e0(0xe0))/0x4*(-parseInt(_0x4b16e0(0xb3))/0x5)+-parseInt(_0x4b16e0(0x91))/0x6*(-parseInt(_0x4b16e0(0xb8))/0x7)+-parseInt(_0x4b16e0(0xbd))/0x8+-parseInt(_0x4b16e0(0xcf))/0x9*(-parseInt(_0x4b16e0(0xcd))/0xa);if(_0x4349b5===_0x460805)break;else _0x33da34['push'](_0x33da34['shift']());}catch(_0x4346c2){_0x33da34['push'](_0x33da34['shift']());}}}(_0x3157,0xc4f91));import{CKEditorError as _0x3c3e8f,EmitterMixin as _0x569678,logWarning as _0x239af2}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x3ef124}from'../../aicore/model/aiinteraction.js';function _0x1173(_0x48e103,_0x173132){const _0x3157d6=_0x3157();return _0x1173=function(_0x1173e1,_0x8229ca){_0x1173e1=_0x1173e1-0x80;let _0xf6ea23=_0x3157d6[_0x1173e1];return _0xf6ea23;},_0x1173(_0x48e103,_0x173132);}import{AIChatContext as _0x4fcde2,AI_CONTEXT_MODEL_EVENT_NAMES as _0x12e4a2}from'./aichatcontext.js';import{AICapabilities as _0x45c450,CAPABILITIES_MODEL_EVENT_NAMES as _0x1573fd}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x172ed3}from'./aichatinteraction.js';import{errorsMap as _0x49dc51}from'../../errorsmap.js';export class AIChatConversation extends _0x569678(){['id'];[_0x2c5f9a(0x80)]=!0x1;[_0x2c5f9a(0xf2)];[_0x2c5f9a(0xda)]=[];[_0x2c5f9a(0xb2)];[_0x2c5f9a(0xdf)];[_0x2c5f9a(0x8f)];[_0x2c5f9a(0xa9)];constructor(_0x84d526){const _0x40e6bb=_0x2c5f9a;super(),this[_0x40e6bb(0xa9)]=_0x84d526,this[_0x40e6bb(0x8f)]=_0x84d526[_0x40e6bb(0x8f)],this[_0x40e6bb(0xbc)]=_0x84d526[_0x40e6bb(0xbc)],this['id']=_0x84d526[_0x40e6bb(0xf6)],this[_0x40e6bb(0xf2)]=_0x84d526[_0x40e6bb(0xf2)];}async[_0x2c5f9a(0xe4)](_0x3c4132){const _0x1496b0=_0x2c5f9a;try{this[_0x1496b0(0xe3)]=new _0x4fcde2({'connector':this[_0x1496b0(0x8f)],'config':_0x3c4132,'ownerId':this['id']}),this[_0x1496b0(0xe3)][_0x1496b0(0x90)](..._0x12e4a2)['to'](this),this[_0x1496b0(0xe3)][_0x1496b0(0xe4)](),this[_0x1496b0(0xfb)]=new _0x45c450(),this[_0x1496b0(0xfb)][_0x1496b0(0x90)](..._0x1573fd)['to'](this),this[_0x1496b0(0xfb)][_0x1496b0(0xe4)]();const _0x144d7f=await this[_0x1496b0(0xbc)][_0x1496b0(0xf3)]();this[_0x1496b0(0xc3)](_0x1496b0(0x9e),{'availableModels':_0x144d7f});const _0x4a7f04=await this[_0x1496b0(0xbc)][_0x1496b0(0x92)](this[_0x1496b0(0xa9)][_0x1496b0(0xdc)]);_0x4a7f04&&await this[_0x1496b0(0xd5)](_0x4a7f04);}catch(_0x1c6d4c){const _0x4a1cd1=new _0x3c3e8f(_0x1496b0(0x82),null,{'message':_0x1c6d4c[_0x1496b0(0xb1)]||_0x1c6d4c});_0x4a1cd1[_0x1496b0(0xd8)]=_0x1c6d4c[_0x1496b0(0xd8)],this[_0x1496b0(0xc3)](_0x1496b0(0xf7),{'error':_0x4a1cd1});}}async[_0x2c5f9a(0x9b)](){const _0x510592=_0x2c5f9a;if(this[_0x510592(0x80)])throw new _0x3c3e8f(_0x510592(0x99),null,{'conversation':this});if(!this[_0x510592(0xdf)])throw new _0x3c3e8f(_0x510592(0x8d),null,{'conversation':this});try{const {id:_0x91c7ab}=await this[_0x510592(0x8f)][_0x510592(0xa1)](this['id'],this[_0x510592(0xa9)][_0x510592(0xe1)])[_0x510592(0x83)]();this['id']=_0x91c7ab,this[_0x510592(0x80)]=!0x0,this[_0x510592(0xc3)](_0x510592(0xc9),{'conversationId':this['id'],'selectedModel':this[_0x510592(0xdf)]});}catch(_0xe72a5e){const _0x1cd468=new _0x3c3e8f(_0x510592(0xe9),null,{'message':_0xe72a5e[_0x510592(0xb1)],'conversationId':this['id']});throw _0x1cd468[_0x510592(0xd8)]=_0xe72a5e[_0x510592(0xd8)],this[_0x510592(0xc3)](_0x510592(0xf7),{'error':_0x1cd468}),_0x1cd468;}}async[_0x2c5f9a(0x81)](_0x4cea5f,_0x1a62dc){const _0x28b81d=_0x2c5f9a;try{const _0x5d6899=await this[_0x28b81d(0x8f)][_0x28b81d(0xc1)](_0x4cea5f)[_0x28b81d(0x83)](),_0x4dfbdf=await this[_0x28b81d(0x8f)][_0x28b81d(0xfd)](_0x4cea5f)[_0x28b81d(0xee)](),_0xb17d40=_0x4dfbdf[0x0][_0x28b81d(0xd3)];this[_0x28b81d(0x80)]=!0x0,this['id']=_0x5d6899['id'],_0x28b81d(0xde)in _0x5d6899?this[_0x28b81d(0xc3)](_0x28b81d(0xa7),_0x5d6899[_0x28b81d(0xde)],!0x0):this[_0x28b81d(0xc3)](_0x28b81d(0xa7),'',!0x0);const _0x30e097=(await this[_0x28b81d(0xbc)][_0x28b81d(0xc0)]())[_0x28b81d(0x8c)](_0x386da6=>_0x386da6['id'][_0x28b81d(0xe5)]()===_0xb17d40[_0x28b81d(0xe5)]());return this[_0x28b81d(0xdf)]=_0x30e097,this[_0x28b81d(0xc3)](_0x28b81d(0xeb),{'selectedModel':_0x30e097,'isDisabled':!0x0}),await this[_0x28b81d(0xb7)](_0x4dfbdf,_0x1a62dc,_0xb17d40),this[_0x28b81d(0xb2)]=void 0x0,this;}catch(_0x21c1aa){const _0xb119f1=new _0x3c3e8f(_0x28b81d(0xb9),null,{'message':_0x21c1aa[_0x28b81d(0xb1)],'conversationId':_0x4cea5f});throw _0xb119f1[_0x28b81d(0xd8)]=_0x21c1aa[_0x28b81d(0xd8)],this[_0x28b81d(0xc3)](_0x28b81d(0xf7),{'error':_0xb119f1}),_0xb119f1;}}async[_0x2c5f9a(0xb7)](_0x27c2bb,_0x1be3fc,_0x50d821){const _0x7bdea0=_0x2c5f9a;let _0x1b3f90;for(const _0x48e5ac of _0x27c2bb)if(_0x7bdea0(0xf5)===_0x48e5ac[_0x7bdea0(0xad)]){const _0x9af883=await this[_0x7bdea0(0xca)](_0x48e5ac),_0x293606={'isReasoningEnabled':Object[_0x7bdea0(0xab)](_0x48e5ac[_0x7bdea0(0x84)],_0x7bdea0(0xd6)),'isWebSearchEnabled':Object[_0x7bdea0(0xab)](_0x48e5ac[_0x7bdea0(0x84)],_0x7bdea0(0xdb))};_0x1b3f90=this[_0x7bdea0(0xef)]({'userMessage':_0x48e5ac[_0x7bdea0(0x87)],'contextItems':_0x9af883,'capabilities':_0x293606,'modelId':_0x50d821,'attributes':_0x48e5ac[_0x7bdea0(0xd4)]}),this[_0x7bdea0(0xb2)]=_0x1b3f90,this[_0x7bdea0(0xe3)][_0x7bdea0(0xa4)](this[_0x7bdea0(0xb2)][_0x7bdea0(0xd9)]);}else{if(_0x7bdea0(0xf8)===_0x48e5ac[_0x7bdea0(0xad)]&&_0x1b3f90){const _0x3f0997=[];for(const _0x3ca42c of _0x48e5ac[_0x7bdea0(0xa8)])switch(_0x3ca42c[_0x7bdea0(0xe2)]){case _0x7bdea0(0xbf):case _0x7bdea0(0x96):{const _0x140c23=_0x1b3f90[_0x7bdea0(0xae)]()?.[_0x7bdea0(0xe8)]!==_0x1be3fc;_0x1b3f90[_0x7bdea0(0x9d)]=_0x1b3f90[_0x7bdea0(0xfa)]({'type':_0x3ca42c[_0x7bdea0(0xe2)],'isDone':!0x0,'interactionId':_0x1b3f90['id'],'areActionsDisabled':_0x140c23}),_0x1b3f90[_0x7bdea0(0x9d)][_0x7bdea0(0xe7)](_0x3ca42c[_0x7bdea0(0xa8)]),_0x3f0997[_0x7bdea0(0xbb)]>0x0&&(_0x1b3f90[_0x7bdea0(0x9d)][_0x7bdea0(0xb6)]=_0x3f0997[_0x7bdea0(0xdd)](0x0));break;}case _0x7bdea0(0xd0):_0x3f0997[_0x7bdea0(0xc4)](_0x3ca42c);break;case _0x7bdea0(0x94):{const {data:_0x5f0165,attributes:_0x1eae1f}=JSON[_0x7bdea0(0xf9)](_0x3ca42c[_0x7bdea0(0xa8)]);_0x1b3f90[_0x7bdea0(0xa0)]({'toolName':_0x3ca42c[_0x7bdea0(0xc8)],'data':_0x5f0165,'attributes':_0x1eae1f});break;}}}}}async[_0x2c5f9a(0xca)](_0x4f328d){const _0x2098fd=_0x2c5f9a,_0x289314=new Map();if(!_0x4f328d[_0x2098fd(0xa8)])return _0x289314;for(const _0x43ba5a of _0x4f328d[_0x2098fd(0xa8)]){const _0x337b42=await this[_0x2098fd(0xe3)][_0x2098fd(0xbe)](_0x43ba5a);_0x337b42&&_0x289314[_0x2098fd(0xfc)](_0x337b42['id'],_0x337b42);}return _0x289314;}async[_0x2c5f9a(0xc6)]({userMessage:_0x1e46e3,attributes:_0x536786}){const _0x4782ba=_0x2c5f9a;if(!this[_0x4782ba(0x80)])throw new _0x3c3e8f(_0x4782ba(0xf0),null,{'conversation':this});if(this[_0x4782ba(0xb2)])throw new _0x3c3e8f(_0x4782ba(0xb0),null,{'conversation':this});try{const _0x354aa6=this[_0x4782ba(0xe3)][_0x4782ba(0xd1)](),_0x6b3f36=this[_0x4782ba(0xfb)][_0x4782ba(0x8a)](),_0x5040ef=this[_0x4782ba(0xdf)]['id'];this[_0x4782ba(0xb2)]=this[_0x4782ba(0xef)]({'userMessage':_0x1e46e3,'contextItems':_0x354aa6,'capabilities':_0x6b3f36,'modelId':_0x5040ef,'attributes':_0x536786}),await this[_0x4782ba(0xb2)][_0x4782ba(0x9b)](),this[_0x4782ba(0xe3)][_0x4782ba(0xa4)](this[_0x4782ba(0xb2)][_0x4782ba(0xd9)]);}catch(_0xf467fd){if(_0xf467fd instanceof _0x3c3e8f)this[_0x4782ba(0xc3)](_0x4782ba(0xf7),{'interactionId':this[_0x4782ba(0xb2)]?this[_0x4782ba(0xb2)]['id']:void 0x0,'error':_0xf467fd});else{const _0x5ed04e=_0x49dc51[_0x4782ba(0xc2)](_0xf467fd[_0x4782ba(0x8e)])||_0x4782ba(0xea);this[_0x4782ba(0xc3)](_0x4782ba(0xf7),{'interactionId':this[_0x4782ba(0xb2)]?this[_0x4782ba(0xb2)]['id']:void 0x0,'error':new _0x3c3e8f(_0x5ed04e,null,{'error':_0xf467fd})});}}finally{this[_0x4782ba(0xb2)]?.[_0x4782ba(0xcb)](),this[_0x4782ba(0xb2)]=void 0x0;}}[_0x2c5f9a(0xef)]({userMessage:_0x234e42,contextItems:_0x43e280,capabilities:_0x3d3a93,modelId:_0x26873e,attributes:_0x2edc42}){const _0x86559d=_0x2c5f9a,_0x42c720=new _0x172ed3({'userMessage':_0x234e42,'contextItems':_0x43e280,'capabilities':_0x3d3a93,'conversationId':this['id'],'connector':this[_0x86559d(0x8f)],'editor':this[_0x86559d(0xa9)][_0x86559d(0x88)]&&this[_0x86559d(0xa9)][_0x86559d(0x88)](),'model':_0x26873e,'attributes':_0x2edc42});return _0x42c720[_0x86559d(0x90)](..._0x3ef124)['to'](this),this[_0x86559d(0xda)][_0x86559d(0xc4)](_0x42c720),this[_0x86559d(0xc3)](_0x86559d(0xc7),_0x42c720),_0x42c720;}[_0x2c5f9a(0xb4)](_0x1f503e){const _0x598527=_0x2c5f9a;return this[_0x598527(0xda)][_0x598527(0x8c)](_0x318c8c=>_0x318c8c['id']===_0x1f503e);}[_0x2c5f9a(0xa5)](_0x1e452f){const _0x5c3800=_0x2c5f9a,_0x96870d=this[_0x5c3800(0xb4)](_0x1e452f);_0x96870d&&(_0x96870d[_0x5c3800(0x89)](),this[_0x5c3800(0xda)][_0x5c3800(0xdd)](this[_0x5c3800(0xda)][_0x5c3800(0xed)](_0x96870d),0x1));}get[_0x2c5f9a(0x86)](){const _0x5b4239=_0x2c5f9a;return this[_0x5b4239(0xda)][this[_0x5b4239(0xda)][_0x5b4239(0xbb)]-0x1];}[_0x2c5f9a(0xd2)](_0x5dd053){const _0x4a3714=_0x2c5f9a;this[_0x4a3714(0xe3)][_0x4a3714(0xd2)](_0x5dd053);}async[_0x2c5f9a(0x9f)]({content:_0x1d9786,version:_0x4c7f74,sessionId:_0x2ce9cf,selections:_0x5e2596}){const _0x483436=_0x2c5f9a;await this[_0x483436(0xe3)][_0x483436(0x9c)](_0x1d9786,_0x4c7f74,_0x2ce9cf,_0x5e2596);}[_0x2c5f9a(0xaf)](){const _0x1fd69d=_0x2c5f9a;return this[_0x1fd69d(0xb2)]?.[_0x1fd69d(0xae)]()?.[_0x1fd69d(0xa8)]||'';}[_0x2c5f9a(0xe6)](_0x302e25){const _0x350f66=_0x2c5f9a;this[_0x350f66(0xe3)][_0x350f66(0xe6)](_0x302e25);}[_0x2c5f9a(0xba)](){const _0x2b69c8=_0x2c5f9a;this[_0x2b69c8(0xe3)][_0x2b69c8(0xba)]();}[_0x2c5f9a(0xb5)](_0xaa6097){const _0x4737ab=_0x2c5f9a;this[_0x4737ab(0xe3)][_0x4737ab(0xb5)](_0xaa6097);}[_0x2c5f9a(0xd7)](_0x488a2b){const _0x4bc47c=_0x2c5f9a;this[_0x4bc47c(0xe3)][_0x4bc47c(0xd7)](_0x488a2b);}[_0x2c5f9a(0xec)](_0x3b1e9b){const _0x446fe0=_0x2c5f9a;this[_0x446fe0(0xe3)][_0x446fe0(0xec)](_0x3b1e9b);}[_0x2c5f9a(0xf4)](_0x352db7,_0x5bd0e6){const _0x1c7029=_0x2c5f9a;this[_0x1c7029(0xe3)][_0x1c7029(0xf4)](_0x352db7,_0x5bd0e6);}[_0x2c5f9a(0xa6)](_0x582af4,_0x330350,_0x374966){const _0x7f5b9=_0x2c5f9a;return this[_0x7f5b9(0xe3)][_0x7f5b9(0xa6)](_0x582af4,_0x330350,_0x374966);}[_0x2c5f9a(0x97)](_0x34506b){const _0x3735df=_0x2c5f9a;this[_0x3735df(0xe3)][_0x3735df(0x97)](_0x34506b);}[_0x2c5f9a(0xce)](_0x5f1ee7){const _0x400f98=_0x2c5f9a;this[_0x400f98(0xfb)][_0x400f98(0xce)](_0x5f1ee7);}[_0x2c5f9a(0xa2)](){const _0x3204f0=_0x2c5f9a;this[_0x3204f0(0xfb)][_0x3204f0(0xa2)]();}[_0x2c5f9a(0xa3)](_0x369e84){const _0x1468e6=_0x2c5f9a;this[_0x1468e6(0xfb)][_0x1468e6(0xa3)](_0x369e84);}[_0x2c5f9a(0xaa)](){const _0x5c1b47=_0x2c5f9a;this[_0x5c1b47(0xfb)][_0x5c1b47(0xaa)]();}[_0x2c5f9a(0xc5)](){const _0x4b7896=_0x2c5f9a;return this[_0x4b7896(0xe3)][_0x4b7896(0xc5)]();}[_0x2c5f9a(0x95)](){const _0x2a4251=_0x2c5f9a;return this[_0x2a4251(0xe3)][_0x2a4251(0x95)]();}[_0x2c5f9a(0xcc)](){const _0xe69bcc=_0x2c5f9a;return this[_0xe69bcc(0xe3)][_0xe69bcc(0xcc)]();}async[_0x2c5f9a(0xd5)](_0x454445){const _0x567bd2=_0x2c5f9a;_0x454445?!0x1===await this[_0x567bd2(0xbc)][_0x567bd2(0x93)](_0x454445)&&(_0x239af2(_0x567bd2(0xac),{'conversation':this,'model':_0x454445}),_0x454445=(await this[_0x567bd2(0xbc)][_0x567bd2(0xf3)]())[0x0]):(_0x239af2(_0x567bd2(0x98),{'conversation':this}),_0x454445=(await this[_0x567bd2(0xbc)][_0x567bd2(0xf3)]())[0x0]),_0x454445['id']!==this[_0x567bd2(0xdf)]?.['id']&&(this[_0x567bd2(0xdf)]=_0x454445,this[_0x567bd2(0xfb)][_0x567bd2(0x9a)](),this[_0x567bd2(0xc3)](_0x567bd2(0xeb),{'selectedModel':_0x454445}));}}function _0x3157(){const _0x48e9d0=['addToolItemToContext','indexOf','getMessages','createInteraction','ai-chat-handle-user-conversation-not-initialized','3155900TaeWOU','isFromHistory','getAvailableModels','addResourceToContext','user','conversationId','error','assistant','parse','createReply','chatCapabilities','set','fetchConversationMessages','isStarted','load','ai-chat-conversation-init-failed','getConversation','capabilities','765691QpFZOw','lastInteraction','prompt','getEditor','destroy','getCapabilitiesConfig','2225271qakrRE','find','ai-chat-conversation-start-no-model-selected','code','connector','delegate','6EPGXyB','getModel','isAvailable','mcp-tool-result','isCurrentDocumentInConversation','modification','removeFromContext','ai-chat-conversation-set-model-null','ai-chat-conversation-already-started','reset','start','updateCurrentDocument','currentReply','conversationInitialized','updateCurrentDocumentInContext','_handleToolResultData','startConversation','toggleWebSearch','setReasoning','addToConversationContext','removeInteraction','loadSourceResources','setConversationTitle','content','options','toggleReasoning','hasOwn','ai-chat-conversation-set-model-not-available','role','getDocumentContext','getCurrentDocumentContext','ai-chat-handle-user-interaction-already-in-progress','message','currentInteraction','5bXlTtq','getInteraction','addFilesToContext','sources','_processMessagesToInteractions','2395106fLUQMa','ai-chat-conversation-init-from-id-failed','removeSelectionFromContext','length','chatModels','12549136QHwMdL','populateFromMessage','text','getAll','fetchConversation','get','fire','push','isCurrentDocumentInContext','handleUserInteraction','interactionCreated','toolName','conversationStarted','_extractContextItems','stop','isSelectionInContext','10chSmtQ','setWebSearch','12738213FoOhkd','url','getPendingContextItems','addCurrentDocumentToContext','model','attributes','setModel','reasoning','addUrlToContext','stack','contextItems','interactions','webSearch','selectedModelId','splice','title','selectedModel','3935824qlQhPB','group','type','chatContext','init','toLowerCase','addSelectionToContext','appendContent','sessionId','ai-chat-conversation-start-failed','ai-chat-handle-user-interaction-start-failed','modelSelected'];_0x3157=function(){return _0x48e9d0;};return _0x3157();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4367f4=_0x3f86;function _0x3e7b(){var _0x26027a=['conversationId','current-document','queryAssistant','7017384YTgzEO','getDocumentContext','133SNHyUE','attributes','722510MfMoFV','44RoqxjS','model','252137EVDFpR','3068180wSgVcD','272022zBotlX','21EgThfQ','userMessage','4BrFGOe','contextItems','250170zaPzhJ','mapContextItemsToRequestData','capabilities','510021VUKYNy','sendRequest','connector','get','getCapabilitiesRequestData'];_0x3e7b=function(){return _0x26027a;};return _0x3e7b();}function _0x3f86(_0x56d92c,_0x552ab1){var _0x3e7b7e=_0x3e7b();return _0x3f86=function(_0x3f8680,_0x4f5e6b){_0x3f8680=_0x3f8680-0x12f;var _0x103b44=_0x3e7b7e[_0x3f8680];return _0x103b44;},_0x3f86(_0x56d92c,_0x552ab1);}(function(_0x5be75d,_0x4fb9eb){var _0x7766a5=_0x3f86,_0x571c2d=_0x5be75d();while(!![]){try{var _0x5703d7=parseInt(_0x7766a5(0x13c))/0x1+-parseInt(_0x7766a5(0x143))/0x2*(-parseInt(_0x7766a5(0x13f))/0x3)+parseInt(_0x7766a5(0x141))/0x4*(-parseInt(_0x7766a5(0x139))/0x5)+-parseInt(_0x7766a5(0x13e))/0x6*(parseInt(_0x7766a5(0x137))/0x7)+-parseInt(_0x7766a5(0x135))/0x8+parseInt(_0x7766a5(0x146))/0x9+parseInt(_0x7766a5(0x13d))/0xa*(parseInt(_0x7766a5(0x13a))/0xb);if(_0x5703d7===_0x4fb9eb)break;else _0x571c2d['push'](_0x571c2d['shift']());}catch(_0x5839d1){_0x571c2d['push'](_0x571c2d['shift']());}}}(_0x3e7b,0x810d3));import{AICapabilities as _0x256b9f}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x5d45e9}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x534fcb}from'./aichatcontext.js';export class AIChatInteraction extends _0x5d45e9{[_0x4367f4(0x140)];[_0x4367f4(0x132)];[_0x4367f4(0x142)]=new Map();[_0x4367f4(0x13b)];[_0x4367f4(0x138)];constructor(_0x1dd1d6){var _0x42b365=_0x4367f4;super(_0x1dd1d6),this[_0x42b365(0x132)]=_0x1dd1d6[_0x42b365(0x132)],this[_0x42b365(0x142)]=_0x1dd1d6[_0x42b365(0x142)],this[_0x42b365(0x145)]=_0x1dd1d6[_0x42b365(0x145)],this[_0x42b365(0x140)]=_0x1dd1d6[_0x42b365(0x140)],this[_0x42b365(0x13b)]=_0x1dd1d6[_0x42b365(0x13b)],this[_0x42b365(0x138)]=_0x1dd1d6[_0x42b365(0x138)];}async[_0x4367f4(0x147)](){var _0x47d39b=_0x4367f4;return this[_0x47d39b(0x12f)][_0x47d39b(0x134)]({'message':this[_0x47d39b(0x140)],'conversationId':this[_0x47d39b(0x132)],'parts':_0x534fcb[_0x47d39b(0x144)](this[_0x47d39b(0x142)]),'capabilities':_0x256b9f[_0x47d39b(0x131)](this[_0x47d39b(0x145)]),'model':this[_0x47d39b(0x13b)],'attributes':this[_0x47d39b(0x138)]});}[_0x4367f4(0x136)](){var _0x56e33a=_0x4367f4;return this[_0x56e33a(0x142)][_0x56e33a(0x130)](_0x56e33a(0x133));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fb2a2=_0x4085;(function(_0x218c5e,_0x3ab741){const _0x2e1440=_0x4085,_0x10724c=_0x218c5e();while(!![]){try{const _0x43b69c=-parseInt(_0x2e1440(0x1df))/0x1*(parseInt(_0x2e1440(0x203))/0x2)+parseInt(_0x2e1440(0x1f2))/0x3+parseInt(_0x2e1440(0x1dc))/0x4+-parseInt(_0x2e1440(0x1d6))/0x5+-parseInt(_0x2e1440(0x1fd))/0x6+parseInt(_0x2e1440(0x1cb))/0x7*(-parseInt(_0x2e1440(0x1d4))/0x8)+parseInt(_0x2e1440(0x1c6))/0x9*(-parseInt(_0x2e1440(0x20d))/0xa);if(_0x43b69c===_0x3ab741)break;else _0x10724c['push'](_0x10724c['shift']());}catch(_0x52795e){_0x10724c['push'](_0x10724c['shift']());}}}(_0x2460,0x4fbc2));import{FocusTracker as _0xb0cfbc,KeystrokeHandler as _0x4be2eb}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x3b6557}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';function _0x4085(_0x7a643d,_0x880095){const _0x246043=_0x2460();return _0x4085=function(_0x408563,_0x2a143e){_0x408563=_0x408563-0x1c0;let _0x23466a=_0x246043[_0x408563];return _0x23466a;},_0x4085(_0x7a643d,_0x880095);}import{AISuggestionContentPartToolbarView as _0x41636e}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0xe0bc3c}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x1e041e}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x9aed70,FocusCycler as _0x4db247,View as _0xb81d71}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x1d89ef}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';function _0x2460(){const _0x3cfca4=['listenTo','400878YUJXCb','hideError','showPrevious','nextButtonView','setButtonsVisibility','21wWHazd','_toolbarContainerView','_isErrorVisible','div','_keystrokes','_partToolbarView','showNext','_togglePartToolbarButtonsVisibility','_focusTracker','927792hNIgTB','change:_state','358125ZOfWVW','bindTemplate','includes','bind','focus','toggleRotatorButtonsVisibility','1871832wSAPXT','focusCycler','_errorView','1PJJoqp','previousButtonView','delegate','add','full','setTemplate','set','keepErrors','availableActions','pending','locale','showBlockingError','_createPreviousButtonView','execute','_streamableContentView','_stateView','children','update','togglePartToolbarEnabled','1336758JdsciP','tab','ck-ai-chat-balloon-main','toggleSuggestionDisplayMode','ck-ai-chat-balloon-main_state_','_focusables','element','addMany','focusLast','createCollection','AI_BALLOON_NEXT_LABEL','462840ZVfErf','isVisible','_miniToolbarView','setState','change:isTrackChangesOn','shift\x20+\x20tab','2358yNLQDm','updateContent','toggleShowChanges','ck-ai-chat-balloon__toolbar-container','focusFirst','render','applySuggestion','_state','insertSuggestion','_config','20BnOmZQ','isShowChangesOn','AI_BALLOON_PREVIOUS_LABEL','destroy','fire','showDiff','_createNextButtonView','has','rejectSuggestion','isEnabled','showError','isTrackChangesOn'];_0x2460=function(){return _0x3cfca4;};return _0x2460();}import{IconChevronDown as _0x1f07b8,IconChevronUp as _0x246d46}from'ckeditor5/src/icons.js';import{getTranslation as _0x4714d3}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x1e041e{[_0x2fb2a2(0x1ef)];[_0x2fb2a2(0x1c9)];[_0x2fb2a2(0x1e0)];[_0x2fb2a2(0x1dd)];[_0x2fb2a2(0x1f7)];[_0x2fb2a2(0x1d3)];[_0x2fb2a2(0x1cf)];[_0x2fb2a2(0x20c)];[_0x2fb2a2(0x1ed)];[_0x2fb2a2(0x1cc)];[_0x2fb2a2(0x1d0)];[_0x2fb2a2(0x1ee)];[_0x2fb2a2(0x1ff)];constructor(_0x10cb7e,_0x3fa24b){const _0x2def92=_0x2fb2a2;super(_0x10cb7e);const _0x51e99f=this[_0x2def92(0x1d7)];this[_0x2def92(0x1e5)](_0x2def92(0x212),!0x1),this[_0x2def92(0x1e5)](_0x2def92(0x20a),_0x2def92(0x1e8)),this[_0x2def92(0x1d3)]=new _0xb0cfbc(),this[_0x2def92(0x1cf)]=new _0x4be2eb(),this[_0x2def92(0x1f7)]=this[_0x2def92(0x1fb)](),this[_0x2def92(0x1dd)]=new _0x4db247({'focusables':this[_0x2def92(0x1f7)],'focusTracker':this[_0x2def92(0x1d3)],'keystrokeHandler':this[_0x2def92(0x1cf)],'actions':{'focusPrevious':_0x2def92(0x202),'focusNext':_0x2def92(0x1f3)}}),this[_0x2def92(0x20c)]=_0x3fa24b,this[_0x2def92(0x1c9)]=this[_0x2def92(0x213)](),this[_0x2def92(0x1e0)]=this[_0x2def92(0x1eb)](),this[_0x2def92(0x1ed)]=new _0x3b6557(_0x10cb7e),this[_0x2def92(0x1d0)]=new _0x41636e(_0x10cb7e,_0x3fa24b[_0x2def92(0x1e7)]),this[_0x2def92(0x1d0)][_0x2def92(0x1e1)](_0x2def92(0x209),_0x2def92(0x20b),_0x2def92(0x1c1))['to'](this),this[_0x2def92(0x1d2)](_0x3fa24b),this[_0x2def92(0x1ee)]=new _0x1d89ef(_0x10cb7e),this[_0x2def92(0x1ee)][_0x2def92(0x1fe)]=!0x1,this[_0x2def92(0x1ff)]=new _0xe0bc3c(_0x10cb7e,{'showChanges':_0x2def92(0x1e3)}),this[_0x2def92(0x1ff)][_0x2def92(0x1d9)](_0x2def92(0x20e))['to'](this,_0x2def92(0x212)),this[_0x2def92(0x1ff)]['on'](_0x2def92(0x205),()=>{const _0x484912=_0x2def92;this[_0x484912(0x211)](_0x484912(0x1f5));}),this[_0x2def92(0x1cc)]=new ms(_0x10cb7e,[this[_0x2def92(0x1d0)],this[_0x2def92(0x1ee)],this[_0x2def92(0x1ff)]]),this[_0x2def92(0x1ef)]=this[_0x2def92(0x1fb)]([this[_0x2def92(0x1ed)],this[_0x2def92(0x1cc)]]),this['on'](_0x2def92(0x1d5),(_0x1a2bd6,_0x27c818,_0x19a928,_0x2a7997)=>{const _0x581e65=_0x2def92;let _0x3a6b54,_0xa7da72;_0x581e65(0x1e8)===_0x2a7997?(_0x3a6b54=this[_0x581e65(0x1d0)],_0xa7da72=this[_0x581e65(0x1ee)]):(_0x3a6b54=this[_0x581e65(0x1ee)],_0xa7da72=this[_0x581e65(0x1d0)]),this[_0x581e65(0x1ee)][_0x581e65(0x200)](_0x19a928),_0x3a6b54[_0x581e65(0x1fe)]=!0x1,_0xa7da72[_0x581e65(0x1fe)]=!0x0;}),this[_0x2def92(0x1e4)]({'tag':_0x2def92(0x1ce),'attributes':{'class':['ck',_0x2def92(0x1f4),_0x51e99f['to'](_0x2def92(0x20a),_0x5d7593=>_0x2def92(0x1f6)+_0x5d7593)]},'children':this[_0x2def92(0x1ef)]}),this['on'](_0x2def92(0x201),()=>{const _0x3eed5d=_0x2def92;this[_0x3eed5d(0x1d2)](_0x3fa24b);});}[_0x2fb2a2(0x208)](){const _0xba56ba=_0x2fb2a2;super[_0xba56ba(0x208)](),this[_0xba56ba(0x1c9)][_0xba56ba(0x208)](),this[_0xba56ba(0x1e0)][_0xba56ba(0x208)](),this[_0xba56ba(0x1d3)][_0xba56ba(0x1e2)](this[_0xba56ba(0x1f8)]),this[_0xba56ba(0x1d3)][_0xba56ba(0x1e2)](this[_0xba56ba(0x1c9)]),this[_0xba56ba(0x1d3)][_0xba56ba(0x1e2)](this[_0xba56ba(0x1e0)]),this[_0xba56ba(0x1d3)][_0xba56ba(0x1e2)](this[_0xba56ba(0x1ff)]),this[_0xba56ba(0x1d3)][_0xba56ba(0x1e2)](this[_0xba56ba(0x1d0)]),this[_0xba56ba(0x1cf)][_0xba56ba(0x1c5)](this[_0xba56ba(0x1f8)]),this[_0xba56ba(0x1cf)][_0xba56ba(0x1c5)](this[_0xba56ba(0x1c9)][_0xba56ba(0x1f8)]),this[_0xba56ba(0x1cf)][_0xba56ba(0x1c5)](this[_0xba56ba(0x1e0)][_0xba56ba(0x1f8)]),this[_0xba56ba(0x1f7)][_0xba56ba(0x1f9)]([this[_0xba56ba(0x1c9)],this[_0xba56ba(0x1e0)],this[_0xba56ba(0x1d0)],this[_0xba56ba(0x1ff)]]);}[_0x2fb2a2(0x210)](){const _0x20dcc0=_0x2fb2a2;super[_0x20dcc0(0x210)](),this[_0x20dcc0(0x1e0)][_0x20dcc0(0x210)](),this[_0x20dcc0(0x1c9)][_0x20dcc0(0x210)]();}[_0x2fb2a2(0x1da)](){const _0x4d597a=_0x2fb2a2;this[_0x4d597a(0x1dd)][_0x4d597a(0x207)]();}[_0x2fb2a2(0x1fa)](){const _0x18f754=_0x2fb2a2;this[_0x18f754(0x1dd)][_0x18f754(0x1fa)]();}async[_0x2fb2a2(0x204)](_0x30de4f){const _0x67324d=_0x2fb2a2;_0x30de4f?.[_0x67324d(0x1e6)]||this[_0x67324d(0x1c7)](),await this[_0x67324d(0x1ed)][_0x67324d(0x1f0)](_0x30de4f);}[_0x2fb2a2(0x200)](_0x12fb4b){const _0x3be5c3=_0x2fb2a2;this[_0x3be5c3(0x20a)]=_0x12fb4b;}[_0x2fb2a2(0x1c3)](_0xec35a4){const _0x305cb6=_0x2fb2a2;super[_0x305cb6(0x1c3)](_0xec35a4),this[_0x305cb6(0x1ef)][_0x305cb6(0x1c0)](this[_0x305cb6(0x1de)])||this[_0x305cb6(0x1ef)][_0x305cb6(0x1e2)](this[_0x305cb6(0x1de)],0x0);}[_0x2fb2a2(0x1c7)](){const _0x53b939=_0x2fb2a2;this[_0x53b939(0x1cd)]&&(super[_0x53b939(0x1c7)](),this[_0x53b939(0x1f1)](!0x0));}[_0x2fb2a2(0x1ea)](_0x5de5b3){const _0x42ef79=_0x2fb2a2;super[_0x42ef79(0x1ea)](_0x5de5b3),this[_0x42ef79(0x1f1)](!0x1);}[_0x2fb2a2(0x1db)](_0x4e7f08){const _0x57fbbf=_0x2fb2a2;this[_0x57fbbf(0x1c9)][_0x57fbbf(0x1fe)]=this[_0x57fbbf(0x1e0)][_0x57fbbf(0x1fe)]=_0x4e7f08;}[_0x2fb2a2(0x1f1)](_0xcb3073){const _0x101f54=_0x2fb2a2;this[_0x101f54(0x1d0)][_0x101f54(0x1c2)]=_0xcb3073;}[_0x2fb2a2(0x1d2)]({showApplyButton:_0x2e47c0,showSuggestButton:_0x663bf1}){const _0x5d40b9=_0x2fb2a2;_0x2e47c0=_0x2e47c0&&!this[_0x5d40b9(0x1c4)]&&this[_0x5d40b9(0x20c)][_0x5d40b9(0x1e7)][_0x5d40b9(0x1d8)](_0x5d40b9(0x209)),_0x663bf1=_0x663bf1&&this[_0x5d40b9(0x20c)][_0x5d40b9(0x1e7)][_0x5d40b9(0x1d8)](_0x5d40b9(0x20b)),this[_0x5d40b9(0x1d0)][_0x5d40b9(0x1ca)]({'showApplyButton':_0x2e47c0,'showSuggestButton':_0x663bf1});}[_0x2fb2a2(0x213)](){const _0x36229f=_0x2fb2a2,_0x23f8a3=new _0x9aed70(this[_0x36229f(0x1e9)]);return _0x23f8a3[_0x36229f(0x1e5)]({'icon':_0x1f07b8,'label':_0x4714d3(this[_0x36229f(0x1e9)],_0x36229f(0x1fc)),'isVisible':!0x0}),_0x23f8a3['on'](_0x36229f(0x1ec),()=>{const _0x584286=_0x36229f;this[_0x584286(0x211)](_0x584286(0x1d1));}),_0x23f8a3;}[_0x2fb2a2(0x1eb)](){const _0x5a6606=_0x2fb2a2,_0x12911b=new _0x9aed70(this[_0x5a6606(0x1e9)]);return _0x12911b[_0x5a6606(0x1e5)]({'icon':_0x246d46,'label':_0x4714d3(this[_0x5a6606(0x1e9)],_0x5a6606(0x20f)),'isVisible':!0x0}),_0x12911b['on'](_0x5a6606(0x1ec),()=>{const _0x3c874d=_0x5a6606;this[_0x3c874d(0x211)](_0x3c874d(0x1c8));}),_0x12911b;}}class ms extends _0xb81d71{constructor(_0x51b9ff,_0x5a5f8e){const _0x258821=_0x2fb2a2;super(_0x51b9ff),this[_0x258821(0x1e4)]({'tag':_0x258821(0x1ce),'attributes':{'class':[_0x258821(0x206)]},'children':_0x5a5f8e});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x269d71=_0x4daa;(function(_0x656fad,_0x13cb51){const _0x347695=_0x4daa,_0x341ab3=_0x656fad();while(!![]){try{const _0x3b2f2c=-parseInt(_0x347695(0xf0))/0x1*(parseInt(_0x347695(0x11e))/0x2)+-parseInt(_0x347695(0x117))/0x3+-parseInt(_0x347695(0x11d))/0x4+parseInt(_0x347695(0x132))/0x5+parseInt(_0x347695(0x116))/0x6*(-parseInt(_0x347695(0xf2))/0x7)+parseInt(_0x347695(0x103))/0x8*(-parseInt(_0x347695(0x125))/0x9)+parseInt(_0x347695(0x110))/0xa;if(_0x3b2f2c===_0x13cb51)break;else _0x341ab3['push'](_0x341ab3['shift']());}catch(_0x3d729d){_0x341ab3['push'](_0x341ab3['shift']());}}}(_0x2c42,0x6ac03));import{ButtonView as _0x4def17,clickOutsideHandler as _0x213ca3,View as _0x5ed4fd}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x2244d3}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x493e0e}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x4d5a00,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x21935a}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x2cc609}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x1a4993}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';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';function _0x2c42(){const _0x5e36e9=['ck-ai-chat-controls-disabled','fieldView','setModel','change:isLoading','disableModelSelector','ck-ai-chat-controls-model-unavailable-message','clearCurrentContextItems','isDisabled','8570RnxgVl','sendUserMessage','3371172FwepJM','setModelList','form','contextResourcesSearchInputVisibleFrom','_promptInputView','removeContextItem','populateSourceResourceBalloon','setConversationContext','setContextItemLoading','set','_createPromptCapabilitiesView','isModelAvailable','setReasoning','execute','ck-ai-chat-controls','abortPromptStream','delegate','688eBtwPp','addContextItem','_contextPanelView','_createContextPanelView','value','_modelUnavailableMessageView','focus','bodyCollection','clearConversationContextUI','_loaderView','reset','setPromptInputValue','enableModelSelector','10517060txjKND','startConversation','toggleWebSearch','toggleReasoning','focusPromptInput','closeSourceResourceBalloon','6wZZAqI','710136oDIVKx','_shouldRestorePromptInputFocus','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setIsUploadInProgress','clearConversationContextItems','setPlaceholderText','1094724MFaqiw','56KicwiO','selectModel','element','bindTemplate','queryView','_promptCapabilitiesView','updateResourceState','7677oBwqIi','setAddContextOptions','ck-ai-chat-controls__start-new-chat-button','setTemplate','isLoading','clearPendingContextUI','low','_createLoaderView','locale','ck-hidden','setInputPlaceholder','resetMessageInput','addContextButtonView','3454260xenSIr','setWebSearch','_createPromptInputView','_handlePromptInputFocus','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','_createModelUnavailableMessageView','div'];_0x2c42=function(){return _0x5e36e9;};return _0x2c42();}import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';function _0x4daa(_0xf17c14,_0x27df06){const _0x2c423f=_0x2c42();return _0x4daa=function(_0x4daadc,_0x8724f7){_0x4daadc=_0x4daadc-0xe4;let _0x4e481d=_0x2c423f[_0x4daadc];return _0x4e481d;},_0x4daa(_0xf17c14,_0x27df06);}export class AIChatControlsView extends _0x5ed4fd{[_0x269d71(0x105)];[_0x269d71(0xf6)];[_0x269d71(0x123)];[_0x269d71(0x10c)];[_0x269d71(0x108)];[_0x269d71(0x118)];constructor(_0x3ed0fa,_0x330f8f){const _0x324701=_0x269d71;super(_0x3ed0fa),this[_0x324701(0x105)]=this[_0x324701(0x106)](_0x3ed0fa,{'bodyCollection':_0x330f8f[_0x324701(0x10a)],'searchInputVisibleFrom':_0x330f8f[_0x324701(0xf5)]}),this[_0x324701(0xf6)]=this[_0x324701(0x134)](_0x3ed0fa),this[_0x324701(0x123)]=this[_0x324701(0xfc)](_0x3ed0fa),this[_0x324701(0x10c)]=this[_0x324701(0x12c)](_0x3ed0fa),this[_0x324701(0x108)]=this[_0x324701(0xe6)](_0x3ed0fa),this[_0x324701(0x118)]=!0x1,this[_0x324701(0xf6)][_0x324701(0x102)](_0x324701(0xf1))['to'](this),this[_0x324701(0x10c)][_0x324701(0x102)](_0x324701(0x101))['to'](this),this[_0x324701(0x123)][_0x324701(0x102)](_0x324701(0x112))['to'](this),this[_0x324701(0x123)][_0x324701(0x102)](_0x324701(0x113))['to'](this),this[_0x324701(0x123)][_0x324701(0x102)](_0x324701(0x11f))['to'](this),this[_0x324701(0x105)][_0x324701(0x102)](..._0x21935a)['to'](this),this[_0x324701(0xfb)](_0x324701(0xfd),!0x0),this[_0x324701(0xfb)](_0x324701(0xef),!0x1);const _0x182b30=this[_0x324701(0x121)];this[_0x324701(0x128)]({'tag':_0x324701(0xf4),'attributes':{'class':['ck',_0x324701(0x100),_0x182b30['if'](_0x324701(0xef),_0x324701(0xe8))]},'children':[{'tag':_0x324701(0xe7),'attributes':{'class':[_0x182b30['if'](_0x324701(0x129),_0x324701(0x12e),_0x1ad88f=>_0x1ad88f||!this[_0x324701(0xfd)]),_0x182b30['if'](_0x324701(0xfd),_0x324701(0x12e),_0x465ab2=>!_0x465ab2||this[_0x324701(0x129)])]},'children':[this[_0x324701(0x105)],this[_0x324701(0xf6)],this[_0x324701(0x123)]]},{'tag':_0x324701(0xe7),'attributes':{'class':[_0x182b30['if'](_0x324701(0x129),_0x324701(0x12e),_0x520bb1=>!_0x520bb1)]},'children':[this[_0x324701(0x10c)]]},{'tag':_0x324701(0xe7),'attributes':{'class':[_0x182b30['if'](_0x324701(0xfd),_0x324701(0x12e),_0x167cab=>_0x167cab)]},'children':[this[_0x324701(0x108)]]}]}),_0x213ca3({'emitter':this[_0x324701(0xf6)],'activator':()=>this[_0x324701(0x129)],'contextElements':()=>[this[_0x324701(0x120)]],'callback':()=>{const _0x182889=_0x324701;this[_0x182889(0x118)]=!0x1;}}),this['on'](_0x324701(0xeb),this[_0x324701(0xe4)],{'priority':_0x324701(0x12b)});}[_0x269d71(0x106)](_0x491da9,_0x441690){return new _0x4d5a00(_0x491da9,_0x441690);}[_0x269d71(0x134)](_0x3dc59f){const _0x49a9e7=_0x269d71;return new _0x2244d3(_0x3dc59f,this[_0x49a9e7(0x105)][_0x49a9e7(0x131)]);}[_0x269d71(0xfc)](_0x6e5d7b){return new _0x493e0e(_0x6e5d7b);}[_0x269d71(0x12c)](_0x3d34f2){return new _0x2cc609(_0x3d34f2);}[_0x269d71(0xe6)](_0x5dc03b){const _0x4c5ead=_0x269d71,_0x32df56=new As(_0x5dc03b);return _0x32df56[_0x4c5ead(0x102)](_0x4c5ead(0x111))['to'](this),_0x32df56;}[_0x269d71(0xe4)](_0x2e1e84,_0x269aa3,_0x5b8636){const _0x45d40f=_0x269d71;_0x5b8636?this[_0x45d40f(0x118)]=!0x0:this[_0x45d40f(0x118)]&&this[_0x45d40f(0xf6)][_0x45d40f(0x109)]();}[_0x269d71(0x104)](_0x37331f,_0x42a804){const _0x3a42e8=_0x269d71;this[_0x3a42e8(0x105)][_0x3a42e8(0x104)](_0x37331f,_0x42a804);}[_0x269d71(0xf7)](_0x527bd7){const _0x755a26=_0x269d71;this[_0x755a26(0x105)][_0x755a26(0xf7)](_0x527bd7);}[_0x269d71(0xfa)](_0xd1b018,_0x453e3e){const _0x5e791e=_0x269d71;this[_0x5e791e(0x105)][_0x5e791e(0xfa)](_0xd1b018,_0x453e3e);}[_0x269d71(0x11a)](_0x60d72e){const _0x353962=_0x269d71;this[_0x353962(0xf6)][_0x353962(0x11a)](_0x60d72e);}[_0x269d71(0xf9)](_0x22911b){const _0x1ebd3e=_0x269d71;this[_0x1ebd3e(0x105)][_0x1ebd3e(0xf9)](_0x22911b);}[_0x269d71(0x12a)](){const _0x2e0680=_0x269d71;this[_0x2e0680(0x105)][_0x2e0680(0xee)]();}[_0x269d71(0x10b)](){const _0x29b02d=_0x269d71;this[_0x29b02d(0x105)][_0x29b02d(0x11b)]();}[_0x269d71(0x124)](_0x2819ff,_0x57990c,_0x5c5495){const _0x4a72fd=_0x269d71;this[_0x4a72fd(0x105)][_0x4a72fd(0x124)](_0x2819ff,_0x57990c,_0x5c5495);}[_0x269d71(0x133)](_0x5e37b8){const _0x148cde=_0x269d71;this[_0x148cde(0x123)][_0x148cde(0x133)](_0x5e37b8);}[_0x269d71(0xfe)](_0x21f8a6){const _0x365d52=_0x269d71;this[_0x365d52(0x123)][_0x365d52(0xfe)](_0x21f8a6);}[_0x269d71(0x130)](){const _0x1e0d71=_0x269d71;this[_0x1e0d71(0xf6)][_0x1e0d71(0x10d)]();}[_0x269d71(0x126)](_0x46c249){const _0x534773=_0x269d71;this[_0x534773(0x105)][_0x534773(0x126)](_0x46c249);}[_0x269d71(0x12f)](_0x3f8672){const _0x27e3e1=_0x269d71;this[_0x27e3e1(0xf6)][_0x27e3e1(0x11c)](_0x3f8672);}[_0x269d71(0xf3)](_0x188058,_0x1f6d4e){const _0x1386b3=_0x269d71;this[_0x1386b3(0x123)][_0x1386b3(0xf3)](_0x188058,_0x1f6d4e);}[_0x269d71(0xea)](_0x1c2860){const _0x3ec2d5=_0x269d71;_0x1c2860?(this[_0x3ec2d5(0xfd)]=!0x0,this[_0x3ec2d5(0x123)][_0x3ec2d5(0xea)](_0x1c2860)):this[_0x3ec2d5(0xfd)]=!0x1;}[_0x269d71(0x10f)](){const _0x257f6b=_0x269d71;this[_0x257f6b(0x123)][_0x257f6b(0x10f)]();}[_0x269d71(0xec)](_0x5140e5){const _0x3c76f5=_0x269d71;this[_0x3c76f5(0x123)][_0x3c76f5(0xec)](_0x5140e5);}[_0x269d71(0xf8)](_0x29331b,_0x4d3d53,_0x11ed68,_0x5b6437){const _0x115695=_0x269d71;this[_0x115695(0x105)][_0x115695(0xf8)](_0x29331b,_0x4d3d53,_0x11ed68,_0x5b6437);}[_0x269d71(0x115)](_0x571bab){const _0x4a13f0=_0x269d71;this[_0x4a13f0(0x105)][_0x4a13f0(0x115)](_0x571bab);}[_0x269d71(0x114)](_0xb34535=!0x1){const _0xca58c7=_0x269d71;this[_0xca58c7(0xf6)][_0xca58c7(0x109)](_0xb34535);}[_0x269d71(0x10e)](_0x1e0545){const _0x5a5ccd=_0x269d71;this[_0x5a5ccd(0xf6)][_0x5a5ccd(0x122)][_0x5a5ccd(0xe9)][_0x5a5ccd(0x10d)](),this[_0x5a5ccd(0xf6)][_0x5a5ccd(0x122)][_0x5a5ccd(0xe9)][_0x5a5ccd(0x107)]=_0x1e0545;}}class As extends _0x5ed4fd{constructor(_0x3ad845){const _0x4f30c0=_0x269d71;super(_0x3ad845);const _0x6a1fb1=new _0x4def17(_0x3ad845);_0x6a1fb1[_0x4f30c0(0xfb)]({'label':_0x1a4993(this[_0x4f30c0(0x12d)],_0x4f30c0(0x119)),'withText':!0x0,'class':[_0x4f30c0(0x127)],'tooltip':''}),_0x6a1fb1[_0x4f30c0(0x102)](_0x4f30c0(0xff))['to'](this,_0x4f30c0(0x111)),this[_0x4f30c0(0x128)]({'tag':_0x4f30c0(0xe7),'attributes':{'class':['ck',_0x4f30c0(0xed)]},'children':[{'tag':'p','children':[{'text':_0x1a4993(this[_0x4f30c0(0x12d)],_0x4f30c0(0xe5))+'\x20'},_0x6a1fb1]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x153c02=_0x5706;(function(_0x14277a,_0x8e6b20){const _0x22e7b9=_0x5706,_0x11b208=_0x14277a();while(!![]){try{const _0x1936d3=-parseInt(_0x22e7b9(0x203))/0x1*(-parseInt(_0x22e7b9(0x1fa))/0x2)+parseInt(_0x22e7b9(0x1da))/0x3*(parseInt(_0x22e7b9(0x1f6))/0x4)+-parseInt(_0x22e7b9(0x1cd))/0x5*(parseInt(_0x22e7b9(0x1ed))/0x6)+parseInt(_0x22e7b9(0x205))/0x7*(-parseInt(_0x22e7b9(0x204))/0x8)+parseInt(_0x22e7b9(0x1cb))/0x9*(-parseInt(_0x22e7b9(0x213))/0xa)+parseInt(_0x22e7b9(0x1e8))/0xb+-parseInt(_0x22e7b9(0x1e0))/0xc;if(_0x1936d3===_0x8e6b20)break;else _0x11b208['push'](_0x11b208['shift']());}catch(_0x40bfbd){_0x11b208['push'](_0x11b208['shift']());}}}(_0x4868,0xe2020));function _0x5706(_0x13c05c,_0x4ea185){const _0x48687c=_0x4868();return _0x5706=function(_0x5706e3,_0x131e99){_0x5706e3=_0x5706e3-0x1c4;let _0x4cbcf0=_0x48687c[_0x5706e3];return _0x4cbcf0;},_0x5706(_0x13c05c,_0x4ea185);}import{CKEditorError as _0x324a99,logWarning as _0xb780da,scrollAncestorsToShowTarget as _0xd1d823}from'ckeditor5/src/utils.js';import{View as _0x354d30}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x901d20}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x33de81}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x24aec3}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x3af46c}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x4a3934}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x517375}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0xdb090e}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x2f421d,SKELETON_DEFINITIONS as _0x353b56}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x2b7594}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x1205c3}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x354d30{[_0x153c02(0x217)];[_0x153c02(0x1e7)];[_0x153c02(0x1ef)];constructor(_0x43e1fd,_0x5d0265){const _0x36ca7b=_0x153c02;super(_0x43e1fd),this[_0x36ca7b(0x1ef)]=_0x5d0265,this[_0x36ca7b(0x1d9)](_0x36ca7b(0x1db),!0x1),this[_0x36ca7b(0x1d9)](_0x36ca7b(0x214),''),this[_0x36ca7b(0x1d9)](_0x36ca7b(0x20a),!0x1),this[_0x36ca7b(0x1d9)](_0x36ca7b(0x1dd),!0x1),this[_0x36ca7b(0x217)]=this[_0x36ca7b(0x1fd)](),this[_0x36ca7b(0x217)][_0x36ca7b(0x1f8)](..._0x901d20)['to'](this),this[_0x36ca7b(0x20d)]();}[_0x153c02(0x20f)](){const _0x36f289=_0x153c02;super[_0x36f289(0x20f)](),this[_0x36f289(0x1e7)]=new _0xdb090e(this[_0x36f289(0x1e1)]);}[_0x153c02(0x1df)](){const _0x345b4=_0x153c02;super[_0x345b4(0x1df)](),this[_0x345b4(0x1e7)][_0x345b4(0x1df)]();}[_0x153c02(0x1e6)](){const _0x44f804=_0x153c02;this[_0x44f804(0x217)][_0x44f804(0x1e6)]();}[_0x153c02(0x1ce)](_0x399f1d,_0x415384){const _0x1316b0=_0x153c02;let _0x16cdea;return _0x1316b0(0x1cf)===_0x399f1d?_0x16cdea=new _0x24aec3(this[_0x1316b0(0x1f9)],_0x415384,this[_0x1316b0(0x1ef)]):_0x1316b0(0x201)===_0x399f1d?(_0x16cdea=new _0x33de81(this[_0x1316b0(0x1f9)],_0x415384,this[_0x1316b0(0x1ef)]),_0x16cdea[_0x1316b0(0x1f1)](_0x1316b0(0x1dd))['to'](this)):_0x16cdea=_0x1316b0(0x1f5)===_0x399f1d?new _0x3af46c(this[_0x1316b0(0x1f9)],_0x415384,this[_0x1316b0(0x1ef)]):_0x1316b0(0x1c9)===_0x399f1d?new _0x517375(this[_0x1316b0(0x1f9)],_0x415384):_0x1316b0(0x1f7)===_0x399f1d?new _0x1205c3(_0x415384):new _0x4a3934(_0x415384),this[_0x1316b0(0x217)][_0x1316b0(0x219)](_0x16cdea),_0x16cdea;}async[_0x153c02(0x1d1)]({id:_0x2b2f2c,parsedContent:_0x400152,renderingStrategy:_0x5dac26,abortSignal:_0x24f225}){const _0x41d40b=_0x153c02,_0x344061=this[_0x41d40b(0x1ee)](_0x2b2f2c);if(!(_0x344061 instanceof _0x24aec3))throw new _0x324a99(_0x41d40b(0x1d8),null,{'itemView':_0x344061,'id':_0x2b2f2c,'parsedContent':_0x400152});await _0x344061[_0x41d40b(0x20c)]({'parsedContent':_0x400152,'renderingStrategy':_0x5dac26,'abortSignal':_0x24f225});}async[_0x153c02(0x1e3)](_0x56b8a1,_0x47cbdc){const _0xd2e569=_0x153c02,_0x479550=this[_0xd2e569(0x1ee)](_0x56b8a1);if(_0x479550 instanceof _0x33de81)_0x479550[_0xd2e569(0x207)](_0x47cbdc);else{if(!(_0x479550 instanceof _0x24aec3))throw new _0x324a99(_0xd2e569(0x21d),null,{'itemView':_0x479550,'id':_0x56b8a1,'sources':_0x47cbdc});_0x479550[_0xd2e569(0x207)](_0x47cbdc);}}async[_0x153c02(0x1c5)]({id:_0x470093,parts:_0x19aaaa,renderingStrategy:_0x6bf908,abortSignal:_0x2e4eea}){const _0x6aa62f=_0x153c02,_0x1b9269=this[_0x6aa62f(0x1ee)](_0x470093);if(!(_0x1b9269 instanceof _0x33de81))throw new _0x324a99(_0x6aa62f(0x1c8),null,{'itemView':_0x1b9269,'id':_0x470093,'parts':_0x19aaaa});await _0x1b9269[_0x6aa62f(0x20c)]({'parts':_0x19aaaa,'renderingStrategy':_0x6bf908,'abortSignal':_0x2e4eea});}[_0x153c02(0x1f4)]({id:_0x1ba398,index:_0x5393c5,state:_0x51a01a}){const _0x15eae6=_0x153c02,_0x15553b=this[_0x15eae6(0x1ee)](_0x1ba398);if(!(_0x15553b instanceof _0x33de81))throw new _0x324a99(_0x15eae6(0x1c8),this,{'id':_0x1ba398});_0x15553b[_0x15eae6(0x1cc)](_0x5393c5,_0x51a01a);}[_0x153c02(0x20e)]({id:_0x5a2bf8,index:_0x1a4817,isActive:_0x128d84}){const _0x1f2b5c=_0x153c02,_0x53d24e=this[_0x1f2b5c(0x1ee)](_0x5a2bf8);if(!(_0x53d24e instanceof _0x33de81))throw new _0x324a99(_0x1f2b5c(0x1c8),this,{'id':_0x5a2bf8});this[_0x1f2b5c(0x217)][_0x1f2b5c(0x1d3)](_0x27f4d6=>_0x27f4d6 instanceof _0x33de81)[_0x1f2b5c(0x218)](_0x1d86cd=>{const _0x5a07a8=_0x1f2b5c;_0x1d86cd[_0x5a07a8(0x1ca)](!0x1);}),_0x53d24e[_0x1f2b5c(0x1ca)](_0x1a4817,_0x128d84);}[_0x153c02(0x206)](_0x39dc42){const _0x4f858a=_0x153c02;this[_0x4f858a(0x1ee)](_0x39dc42)[_0x4f858a(0x211)]();}[_0x153c02(0x1d6)](){const _0xb6d177=_0x153c02;return this[_0xb6d177(0x217)][_0xb6d177(0x212)](_0x3d3f0d=>_0x3d3f0d[_0xb6d177(0x20b)]['id']);}[_0x153c02(0x1f3)](_0x5bf633){const _0x103bad=_0x153c02;this[_0x103bad(0x217)][_0x103bad(0x1eb)](this[_0x103bad(0x1ee)](_0x5bf633));}[_0x153c02(0x202)](_0x5e3485){const _0x1f730d=_0x153c02;return!!this[_0x1f730d(0x217)][_0x1f730d(0x1fc)](_0x272cf7=>_0x272cf7[_0x1f730d(0x20b)]['id'][_0x1f730d(0x1dc)](_0x5e3485));}[_0x153c02(0x216)](_0x396ada,_0x5e0e22){const _0x59a258=_0x153c02,_0x1814b2=this[_0x59a258(0x1ee)](_0x396ada);if(!(_0x1814b2 instanceof _0x33de81))return void _0xb780da(_0x59a258(0x200),{'replyId':_0x396ada,'partIndex':_0x5e0e22});const _0x2a3340=_0x1814b2[_0x59a258(0x1d5)](_0x5e0e22);_0x2a3340?_0xd1d823(_0x2a3340[_0x59a258(0x1e1)],0x14,this[_0x59a258(0x1e1)][_0x59a258(0x1c4)],!0x0,!0x0):_0xb780da(_0x59a258(0x1c7),{'replyId':_0x396ada,'partIndex':_0x5e0e22});}[_0x153c02(0x20d)](){const _0x47a6a5=_0x153c02;this[_0x47a6a5(0x1d0)]({'tag':_0x47a6a5(0x215),'attributes':{'class':['ck',_0x47a6a5(0x1d7)]},'children':this[_0x47a6a5(0x21a)]()});}[_0x153c02(0x21a)](){const _0x54888c=_0x153c02,_0x35f2e3=this[_0x54888c(0x209)]();return[this[_0x54888c(0x1d2)](),_0x35f2e3,this[_0x54888c(0x1fb)]()];}[_0x153c02(0x209)](){const _0x3d589b=_0x153c02,_0x10f627=new _0x2f421d(this[_0x3d589b(0x1f9)],_0x353b56[_0x3d589b(0x1ff)]);return _0x10f627[_0x3d589b(0x1e4)]({'attributes':{'class':[this[_0x3d589b(0x210)]['if'](_0x3d589b(0x20a),_0x3d589b(0x1e2),_0xd9d48b=>!_0xd9d48b)]}}),_0x10f627;}[_0x153c02(0x1d2)](){const _0x3dba51=_0x153c02,_0x4bee6d=new _0x354d30(this[_0x3dba51(0x1f9)]);return _0x4bee6d[_0x3dba51(0x1d0)]({'tag':_0x3dba51(0x215),'attributes':{'class':['ck',_0x3dba51(0x1e5),this[_0x3dba51(0x210)]['if'](_0x3dba51(0x20a),_0x3dba51(0x1e2))]},'children':this[_0x3dba51(0x217)]}),_0x4bee6d;}[_0x153c02(0x1fb)](){const _0x5ba17f=_0x153c02,_0x1b416e=new _0x354d30(this[_0x5ba17f(0x1f9)]);return _0x1b416e[_0x5ba17f(0x1d0)]({'tag':_0x5ba17f(0x215),'attributes':{'class':['ck',_0x5ba17f(0x208),this[_0x5ba17f(0x210)]['if'](_0x5ba17f(0x1db),_0x5ba17f(0x1e2),_0x501879=>!_0x501879)]},'children':this[_0x5ba17f(0x1ec)]()}),_0x1b416e;}[_0x153c02(0x1ec)](){const _0x3bc976=_0x153c02,_0x4a68ee=new _0x2b7594();return _0x4a68ee[_0x3bc976(0x1c6)]=!0x0,[_0x4a68ee,{'tag':_0x3bc976(0x1d4),'attributes':{'class':['ck',_0x3bc976(0x1de)]},'children':[{'text':this[_0x3bc976(0x210)]['to'](_0x3bc976(0x214))}]}];}[_0x153c02(0x1ee)](_0x911438){const _0x13ff3b=_0x153c02,_0x3bbbda=this[_0x13ff3b(0x217)][_0x13ff3b(0x1fc)](_0x3f5b5a=>_0x3f5b5a[_0x13ff3b(0x20b)]['id'][_0x13ff3b(0x1dc)](_0x911438));if(!_0x3bbbda)throw new _0x324a99(_0x13ff3b(0x1fe),this,{'id':_0x911438});return _0x3bbbda;}[_0x153c02(0x1ea)](_0x3fad29){const _0x4c1e8a=_0x153c02;this[_0x4c1e8a(0x1d9)](_0x4c1e8a(0x214),_0x3fad29);}[_0x153c02(0x21b)](_0x2f2d90){const _0x482288=_0x153c02;this[_0x482288(0x1d9)](_0x482288(0x20a),_0x2f2d90);}[_0x153c02(0x1f0)](){const _0x2607f2=_0x153c02;this[_0x2607f2(0x1e7)][_0x2607f2(0x1e9)]();}[_0x153c02(0x21c)](){const _0x53f1bd=_0x153c02;this[_0x53f1bd(0x1e7)][_0x53f1bd(0x1f2)]();}}function _0x4868(){const _0x66d77d=['forEach','add','_createTemplateChildren','toggleLoadingSkeleton','stopAutoScroll','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','parentElement','updateSuggestionItem','isVisible','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ai-chat-feed-view-item-not-a-suggestion-item','interaction-header','setPartActive','9pKCFUu','updatePartState','10kvsGjk','addItem','ai-reply','setTemplate','updateReplyItem','_createFeedItems','filter','span','getPartView','getItemIds','ck-ai-chat__feed','ai-chat-feed-view-item-not-a-reply-item','set','433872ybtmXq','isPending','includes','isTrackChangesOn','ck-ai-chat__loader-text','destroy','20231784FbZMdY','element','ck-hidden','updateWebSources','extendTemplate','ck-ai-chat__feed__items','clear','scrollManager','4987378viIYuw','start','setLoadingMessage','remove','_createLoaderChildren','1593096jgLJtB','getItemById','_bodyCollection','startAutoScroll','bind','stop','removeItem','updateSuggestionPartState','user-message','48EZVqAe','custom-element','delegate','locale','4vYCWti','_createFeedLoader','find','createCollection','ai-chat-feed-view-item-not-found','aiFeed','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ai-suggestion-reply','hasItem','783013sDouxN','3875048mymlVj','7KKAhJJ','markItemAsDone','updateSources','ck-ai-chat__loader','_createSkeletonLoader','isLoadingSkeletonVisible','options','updateContent','_setupTemplate','setSuggestionPartActive','render','bindTemplate','markAsDone','map','1277890lmLTmC','loadingMessage','div','scrollToSuggestion','children'];_0x4868=function(){return _0x66d77d;};return _0x4868();}
|
|
23
|
+
const _0x42a8ba=_0x1320;(function(_0x1df4a8,_0x3a7edb){const _0x2851ae=_0x1320,_0x543ac9=_0x1df4a8();while(!![]){try{const _0xfa7a62=parseInt(_0x2851ae(0x17f))/0x1+parseInt(_0x2851ae(0x161))/0x2+-parseInt(_0x2851ae(0x18c))/0x3+parseInt(_0x2851ae(0x176))/0x4+parseInt(_0x2851ae(0x18d))/0x5+parseInt(_0x2851ae(0x160))/0x6*(parseInt(_0x2851ae(0x1ad))/0x7)+-parseInt(_0x2851ae(0x162))/0x8*(parseInt(_0x2851ae(0x1ab))/0x9);if(_0xfa7a62===_0x3a7edb)break;else _0x543ac9['push'](_0x543ac9['shift']());}catch(_0x532528){_0x543ac9['push'](_0x543ac9['shift']());}}}(_0x3584,0xa0f39));import{CKEditorError as _0x45b861,logWarning as _0x1cab98,scrollAncestorsToShowTarget as _0x20a5aa}from'ckeditor5/src/utils.js';import{View as _0x51356f}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3410b1}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x47be48}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x593d7e}from'./feed/aichatfeedreplyitemview.js';function _0x3584(){const _0x2c2e4a=['stopAutoScroll','ck-ai-chat__loader','isTrackChangesOn','_bodyCollection','ck-ai-chat__feed__items','updateWebSources','86247sHjVoT','_createSkeletonLoader','includes','remove','updateSuggestionItem','custom-element','delegate','aiFeed','updateReplyItem','getPartView','isVisible','_createFeedItems','stop','1734954Vdvwgl','6151730Zlknti','_createTemplateChildren','updatePartState','setLoadingMessage','ck-ai-chat__feed','span','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','setTemplate','div','bind','toggleLoadingSkeleton','createCollection','_createLoaderChildren','ai-chat-feed-view-item-not-a-suggestion-item','element','markAsDone','map','interaction-header','clear','addItem','add','setSuggestionPartActive','children','options','ai-suggestion-reply','loadingMessage','updateSources','ai-chat-feed-view-item-not-a-reply-item','updateContent','scrollManager','9tnCPoz','set','49jSAWIL','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','filter','parentElement','locale','ai-chat-feed-view-item-not-found','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','getItemById','updateSuggestionPartState','bindTemplate','244176qRxwHm','698146PeWCkD','11953672TOyDVL','find','isLoadingSkeletonVisible','ck-ai-chat__loader-text','ai-reply','render','scrollToSuggestion','user-message','_setupTemplate','setPartActive','getItemIds','ck-hidden','isPending','start','_createFeedLoader','destroy','hasItem','forEach','removeItem','markItemAsDone','3124984AktEbZ','startAutoScroll','extendTemplate'];_0x3584=function(){return _0x2c2e4a;};return _0x3584();}import{AIChatFeedUserMessageItemView as _0x4ba812}from'./feed/aichatfeedusermessageitem.js';function _0x1320(_0x1525ea,_0x5ee4e5){const _0x3584c6=_0x3584();return _0x1320=function(_0x1320e9,_0x56aa54){_0x1320e9=_0x1320e9-0x160;let _0x3b2442=_0x3584c6[_0x1320e9];return _0x3b2442;},_0x1320(_0x1525ea,_0x5ee4e5);}import{AIChatFeedErrorItemView as _0x3a2521}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x410016}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4da46b}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x3f1447,SKELETON_DEFINITIONS as _0x17deaa}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x3d9c5b}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x16c8f7}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x51356f{[_0x42a8ba(0x1a3)];[_0x42a8ba(0x1aa)];[_0x42a8ba(0x17c)];constructor(_0x27d109,_0x544a63){const _0x58f4d6=_0x42a8ba;super(_0x27d109),this[_0x58f4d6(0x17c)]=_0x544a63,this[_0x58f4d6(0x1ac)](_0x58f4d6(0x16e),!0x1),this[_0x58f4d6(0x1ac)](_0x58f4d6(0x1a6),''),this[_0x58f4d6(0x1ac)](_0x58f4d6(0x164),!0x1),this[_0x58f4d6(0x1ac)](_0x58f4d6(0x17b),!0x1),this[_0x58f4d6(0x1a3)]=this[_0x58f4d6(0x198)](),this[_0x58f4d6(0x1a3)][_0x58f4d6(0x185)](..._0x3410b1)['to'](this),this[_0x58f4d6(0x16a)]();}[_0x42a8ba(0x167)](){const _0x5a70b3=_0x42a8ba;super[_0x5a70b3(0x167)](),this[_0x5a70b3(0x1aa)]=new _0x4da46b(this[_0x5a70b3(0x19b)]);}[_0x42a8ba(0x171)](){const _0x5bd1f0=_0x42a8ba;super[_0x5bd1f0(0x171)](),this[_0x5bd1f0(0x1aa)][_0x5bd1f0(0x171)]();}[_0x42a8ba(0x19f)](){const _0x10f151=_0x42a8ba;this[_0x10f151(0x1a3)][_0x10f151(0x19f)]();}[_0x42a8ba(0x1a0)](_0xcc8de4,_0x3e08d1){const _0x1d4cc0=_0x42a8ba;let _0x95357e;return _0x1d4cc0(0x166)===_0xcc8de4?_0x95357e=new _0x593d7e(this[_0x1d4cc0(0x1b1)],_0x3e08d1,this[_0x1d4cc0(0x17c)]):_0x1d4cc0(0x1a5)===_0xcc8de4?(_0x95357e=new _0x47be48(this[_0x1d4cc0(0x1b1)],_0x3e08d1,this[_0x1d4cc0(0x17c)]),_0x95357e[_0x1d4cc0(0x196)](_0x1d4cc0(0x17b))['to'](this)):_0x95357e=_0x1d4cc0(0x169)===_0xcc8de4?new _0x4ba812(this[_0x1d4cc0(0x1b1)],_0x3e08d1,this[_0x1d4cc0(0x17c)]):_0x1d4cc0(0x19e)===_0xcc8de4?new _0x410016(this[_0x1d4cc0(0x1b1)],_0x3e08d1):_0x1d4cc0(0x184)===_0xcc8de4?new _0x16c8f7(_0x3e08d1):new _0x3a2521(_0x3e08d1),this[_0x1d4cc0(0x1a3)][_0x1d4cc0(0x1a1)](_0x95357e),_0x95357e;}async[_0x42a8ba(0x187)]({id:_0x1ea00f,parsedContent:_0x33cb91,renderingStrategy:_0x159e2e,abortSignal:_0x222dee}){const _0x4acec7=_0x42a8ba,_0x42a009=this[_0x4acec7(0x1b4)](_0x1ea00f);if(!(_0x42a009 instanceof _0x593d7e))throw new _0x45b861(_0x4acec7(0x1a8),null,{'itemView':_0x42a009,'id':_0x1ea00f,'parsedContent':_0x33cb91});await _0x42a009[_0x4acec7(0x1a9)]({'parsedContent':_0x33cb91,'renderingStrategy':_0x159e2e,'abortSignal':_0x222dee});}async[_0x42a8ba(0x17e)](_0x5d0b6e,_0x14a019){const _0x1218f2=_0x42a8ba,_0x33c802=this[_0x1218f2(0x1b4)](_0x5d0b6e);if(_0x33c802 instanceof _0x47be48)_0x33c802[_0x1218f2(0x1a7)](_0x14a019);else{if(!(_0x33c802 instanceof _0x593d7e))throw new _0x45b861(_0x1218f2(0x1b3),null,{'itemView':_0x33c802,'id':_0x5d0b6e,'sources':_0x14a019});_0x33c802[_0x1218f2(0x1a7)](_0x14a019);}}async[_0x42a8ba(0x183)]({id:_0x397ed3,parts:_0x237ce3,renderingStrategy:_0x242e15,abortSignal:_0x5b699a}){const _0x5379aa=_0x42a8ba,_0x4f00ff=this[_0x5379aa(0x1b4)](_0x397ed3);if(!(_0x4f00ff instanceof _0x47be48))throw new _0x45b861(_0x5379aa(0x19a),null,{'itemView':_0x4f00ff,'id':_0x397ed3,'parts':_0x237ce3});await _0x4f00ff[_0x5379aa(0x1a9)]({'parts':_0x237ce3,'renderingStrategy':_0x242e15,'abortSignal':_0x5b699a});}[_0x42a8ba(0x1b5)]({id:_0xfcc042,index:_0x494880,state:_0xa35082}){const _0x546eea=_0x42a8ba,_0x2a5973=this[_0x546eea(0x1b4)](_0xfcc042);if(!(_0x2a5973 instanceof _0x47be48))throw new _0x45b861(_0x546eea(0x19a),this,{'id':_0xfcc042});_0x2a5973[_0x546eea(0x18f)](_0x494880,_0xa35082);}[_0x42a8ba(0x1a2)]({id:_0x39d6d2,index:_0x55e1d6,isActive:_0x22be9b}){const _0x577b13=_0x42a8ba,_0x14a5a6=this[_0x577b13(0x1b4)](_0x39d6d2);if(!(_0x14a5a6 instanceof _0x47be48))throw new _0x45b861(_0x577b13(0x19a),this,{'id':_0x39d6d2});this[_0x577b13(0x1a3)][_0x577b13(0x1af)](_0x2b676c=>_0x2b676c instanceof _0x47be48)[_0x577b13(0x173)](_0x1ca5f1=>{const _0x3ae78b=_0x577b13;_0x1ca5f1[_0x3ae78b(0x16b)](!0x1);}),_0x14a5a6[_0x577b13(0x16b)](_0x55e1d6,_0x22be9b);}[_0x42a8ba(0x175)](_0x4b18eb){const _0x181d3a=_0x42a8ba;this[_0x181d3a(0x1b4)](_0x4b18eb)[_0x181d3a(0x19c)]();}[_0x42a8ba(0x16c)](){const _0x48be11=_0x42a8ba;return this[_0x48be11(0x1a3)][_0x48be11(0x19d)](_0x5631d4=>_0x5631d4[_0x48be11(0x1a4)]['id']);}[_0x42a8ba(0x174)](_0x175b6b){const _0x304fba=_0x42a8ba;this[_0x304fba(0x1a3)][_0x304fba(0x182)](this[_0x304fba(0x1b4)](_0x175b6b));}[_0x42a8ba(0x172)](_0x32f1e5){const _0x58ecd7=_0x42a8ba;return!!this[_0x58ecd7(0x1a3)][_0x58ecd7(0x163)](_0x3291ed=>_0x3291ed[_0x58ecd7(0x1a4)]['id'][_0x58ecd7(0x181)](_0x32f1e5));}[_0x42a8ba(0x168)](_0x397214,_0x2148d5){const _0x3a9c25=_0x42a8ba,_0x496eb6=this[_0x3a9c25(0x1b4)](_0x397214);if(!(_0x496eb6 instanceof _0x47be48))return void _0x1cab98(_0x3a9c25(0x193),{'replyId':_0x397214,'partIndex':_0x2148d5});const _0x3e548b=_0x496eb6[_0x3a9c25(0x188)](_0x2148d5);_0x3e548b?_0x20a5aa(_0x3e548b[_0x3a9c25(0x19b)],0x14,this[_0x3a9c25(0x19b)][_0x3a9c25(0x1b0)],!0x0,!0x0):_0x1cab98(_0x3a9c25(0x1ae),{'replyId':_0x397214,'partIndex':_0x2148d5});}[_0x42a8ba(0x16a)](){const _0x4f6028=_0x42a8ba;this[_0x4f6028(0x194)]({'tag':_0x4f6028(0x195),'attributes':{'class':['ck',_0x4f6028(0x191)]},'children':this[_0x4f6028(0x18e)]()});}[_0x42a8ba(0x18e)](){const _0x32f29e=_0x42a8ba,_0x20746a=this[_0x32f29e(0x180)]();return[this[_0x32f29e(0x18a)](),_0x20746a,this[_0x32f29e(0x170)]()];}[_0x42a8ba(0x180)](){const _0x401cae=_0x42a8ba,_0x1513de=new _0x3f1447(this[_0x401cae(0x1b1)],_0x17deaa[_0x401cae(0x186)]);return _0x1513de[_0x401cae(0x178)]({'attributes':{'class':[this[_0x401cae(0x1b6)]['if'](_0x401cae(0x164),_0x401cae(0x16d),_0x4beac1=>!_0x4beac1)]}}),_0x1513de;}[_0x42a8ba(0x18a)](){const _0x436c66=_0x42a8ba,_0x5653c3=new _0x51356f(this[_0x436c66(0x1b1)]);return _0x5653c3[_0x436c66(0x194)]({'tag':_0x436c66(0x195),'attributes':{'class':['ck',_0x436c66(0x17d),this[_0x436c66(0x1b6)]['if'](_0x436c66(0x164),_0x436c66(0x16d))]},'children':this[_0x436c66(0x1a3)]}),_0x5653c3;}[_0x42a8ba(0x170)](){const _0xff9dc0=_0x42a8ba,_0x37b43e=new _0x51356f(this[_0xff9dc0(0x1b1)]);return _0x37b43e[_0xff9dc0(0x194)]({'tag':_0xff9dc0(0x195),'attributes':{'class':['ck',_0xff9dc0(0x17a),this[_0xff9dc0(0x1b6)]['if'](_0xff9dc0(0x16e),_0xff9dc0(0x16d),_0x2aebea=>!_0x2aebea)]},'children':this[_0xff9dc0(0x199)]()}),_0x37b43e;}[_0x42a8ba(0x199)](){const _0x5f2f2d=_0x42a8ba,_0x22a5b4=new _0x3d9c5b();return _0x22a5b4[_0x5f2f2d(0x189)]=!0x0,[_0x22a5b4,{'tag':_0x5f2f2d(0x192),'attributes':{'class':['ck',_0x5f2f2d(0x165)]},'children':[{'text':this[_0x5f2f2d(0x1b6)]['to'](_0x5f2f2d(0x1a6))}]}];}[_0x42a8ba(0x1b4)](_0x5373cc){const _0x57f07b=_0x42a8ba,_0x4cc3a2=this[_0x57f07b(0x1a3)][_0x57f07b(0x163)](_0x4de9c3=>_0x4de9c3[_0x57f07b(0x1a4)]['id'][_0x57f07b(0x181)](_0x5373cc));if(!_0x4cc3a2)throw new _0x45b861(_0x57f07b(0x1b2),this,{'id':_0x5373cc});return _0x4cc3a2;}[_0x42a8ba(0x190)](_0x17498a){const _0x465fdd=_0x42a8ba;this[_0x465fdd(0x1ac)](_0x465fdd(0x1a6),_0x17498a);}[_0x42a8ba(0x197)](_0x58b3f9){const _0x53c14e=_0x42a8ba;this[_0x53c14e(0x1ac)](_0x53c14e(0x164),_0x58b3f9);}[_0x42a8ba(0x177)](){const _0x5c459d=_0x42a8ba;this[_0x5c459d(0x1aa)][_0x5c459d(0x16f)]();}[_0x42a8ba(0x179)](){const _0x37d6ba=_0x42a8ba;this[_0x37d6ba(0x1aa)][_0x37d6ba(0x18b)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1cdd36=_0x3a59;function _0x436b(){const _0x5b49a5=['67352cqRskI','add','conversationStartButton','5475xAjrTs','_createStartConversationButton','1140628XspvSZ','768CMCBbn','locale','60oefoJA','819cpFWYV','fire','3628OzlznQ','resizeButton','12174asMyeV','set','children','3703HXcwmN','ck-ai-chat__start-conversation','3457570kmoLLi','execute','125499UAOYVa','AI_CHAT_HEADING','startConversation','4182OIfRpu','ck-ai-header\x20ck-ai-header_chat','AI_CHAT_LABEL_NEW_CHAT','isMaximized'];_0x436b=function(){return _0x5b49a5;};return _0x436b();}(function(_0x295627,_0x5c7cc2){const _0x295066=_0x3a59,_0x3f084c=_0x295627();while(!![]){try{const _0x353816=-parseInt(_0x295066(0x1b8))/0x1+-parseInt(_0x295066(0x1ca))/0x2*(parseInt(_0x295066(0x1bb))/0x3)+parseInt(_0x295066(0x1be))/0x4*(parseInt(_0x295066(0x1b6))/0x5)+-parseInt(_0x295066(0x1c0))/0x6*(-parseInt(_0x295066(0x1c3))/0x7)+-parseInt(_0x295066(0x1ce))/0x8*(-parseInt(_0x295066(0x1bc))/0x9)+-parseInt(_0x295066(0x1c5))/0xa+parseInt(_0x295066(0x1c7))/0xb*(-parseInt(_0x295066(0x1b9))/0xc);if(_0x353816===_0x5c7cc2)break;else _0x3f084c['push'](_0x3f084c['shift']());}catch(_0x56b0df){_0x3f084c['push'](_0x3f084c['shift']());}}}(_0x436b,0x8c32e));import{ButtonView as _0xd24e1d,FormHeaderView as _0x163e2b}from'ckeditor5/src/ui.js';import{IconPlus as _0x3ad553,IconAIChat as _0x5bce77}from'ckeditor5/src/icons.js';function _0x3a59(_0x4a5d82,_0x1916c8){const _0x436ba3=_0x436b();return _0x3a59=function(_0x3a599b,_0x26e75a){_0x3a599b=_0x3a599b-0x1b4;let _0x461e71=_0x436ba3[_0x3a599b];return _0x461e71;},_0x3a59(_0x4a5d82,_0x1916c8);}import{getTranslation as _0x3a901c}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x4648d6}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x163e2b{[_0x1cdd36(0x1b5)];[_0x1cdd36(0x1bf)];constructor(_0x38e6b9,_0xc4350c){const _0x1b2b3f=_0x1cdd36;super(_0x38e6b9,{'label':_0x3a901c(_0x38e6b9,_0x1b2b3f(0x1c8)),'class':_0x1b2b3f(0x1cb),'icon':_0x5bce77}),this[_0x1b2b3f(0x1c1)](_0x1b2b3f(0x1cd),!0x1),this[_0x1b2b3f(0x1b5)]=this[_0x1b2b3f(0x1b7)](_0x38e6b9),this[_0x1b2b3f(0x1c2)][_0x1b2b3f(0x1b4)](this[_0x1b2b3f(0x1b5)]),_0xc4350c&&(this[_0x1b2b3f(0x1bf)]=_0x4648d6(_0x38e6b9,this),this[_0x1b2b3f(0x1c2)][_0x1b2b3f(0x1b4)](this[_0x1b2b3f(0x1bf)]));}[_0x1cdd36(0x1b7)](_0x4892c3){const _0x569254=_0x1cdd36,_0x11b07d=new _0xd24e1d(_0x4892c3);return _0x11b07d[_0x569254(0x1c1)]({'label':_0x3a901c(this[_0x569254(0x1ba)],_0x569254(0x1cc)),'withText':!0x0,'icon':_0x3ad553,'class':_0x569254(0x1c4)}),_0x11b07d['on'](_0x569254(0x1c6),()=>{const _0x4a4cce=_0x569254;this[_0x4a4cce(0x1bd)](_0x4a4cce(0x1c9));}),_0x11b07d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2add58=_0x2a4c;(function(_0x2018d2,_0x10f2bc){var _0x20d08e=_0x2a4c,_0x418d97=_0x2018d2();while(!![]){try{var _0x5c0cb6=parseInt(_0x20d08e(0x14f))/0x1*(-parseInt(_0x20d08e(0x152))/0x2)+-parseInt(_0x20d08e(0x13c))/0x3*(-parseInt(_0x20d08e(0x14a))/0x4)+-parseInt(_0x20d08e(0x13b))/0x5*(parseInt(_0x20d08e(0x146))/0x6)+-parseInt(_0x20d08e(0x147))/0x7+parseInt(_0x20d08e(0x154))/0x8*(parseInt(_0x20d08e(0x144))/0x9)+-parseInt(_0x20d08e(0x14d))/0xa*(-parseInt(_0x20d08e(0x145))/0xb)+parseInt(_0x20d08e(0x14b))/0xc;if(_0x5c0cb6===_0x10f2bc)break;else _0x418d97['push'](_0x418d97['shift']());}catch(_0x416b71){_0x418d97['push'](_0x418d97['shift']());}}}(_0x2820,0xcfc17));import{View as _0x439c87,BodyCollection as _0x436e65}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5a037d}from'../utils/eventnames.js';import{AIChatFeedView as _0x2b5376}from'./aichatfeedview.js';import{AIChatControlsView as _0x469289}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x233b7a}from'./aichatheaderview.js';import{AIDisclaimerView as _0x38686f}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';function _0x2a4c(_0xf62f30,_0x276c81){var _0x28200e=_0x2820();return _0x2a4c=function(_0x2a4c86,_0x5b8b0e){_0x2a4c86=_0x2a4c86-0x139;var _0x2241c6=_0x28200e[_0x2a4c86];return _0x2241c6;},_0x2a4c(_0xf62f30,_0x276c81);}function _0x2820(){var _0x520ca3=['populateSourceResourceBalloon','setTemplate','showResizeButton','closeSourceResourceBalloon','detachFromDom','4857183btFkqS','11CiRYGF','7716pWkyUK','2507855JsHCYP','contextResourcesSearchInputVisibleFrom','div','1336NyzUor','2061408Uvtjhs','chatFeed','15492650gZbNDC','_bodyCollection','10070KPvbku','delegate','ck-ai-chat','304lPlMqX','ck-rounded-corners','8klZEIa','chatControls','destroy','uiLanguageDirection','chatHeader','chatDisclaimer','4360FGMcmx','14376bZTVEv','ck-reset_all','attachToDom'];_0x2820=function(){return _0x520ca3;};return _0x2820();}import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x439c87{[_0x2add58(0x139)];[_0x2add58(0x14c)];[_0x2add58(0x155)];[_0x2add58(0x13a)];[_0x2add58(0x14e)];constructor(_0xd51b8c,_0x14501){var _0x5866e3=_0x2add58;super(_0xd51b8c),this[_0x5866e3(0x14e)]=new _0x436e65(_0xd51b8c),this[_0x5866e3(0x14e)][_0x5866e3(0x13e)](),this[_0x5866e3(0x139)]=new _0x233b7a(_0xd51b8c,_0x14501[_0x5866e3(0x141)]),this[_0x5866e3(0x139)][_0x5866e3(0x150)](..._0x5a037d)['to'](this),this[_0x5866e3(0x14c)]=new _0x2b5376(_0xd51b8c,this[_0x5866e3(0x14e)]),this[_0x5866e3(0x14c)][_0x5866e3(0x150)](..._0x5a037d)['to'](this),this[_0x5866e3(0x155)]=new _0x469289(_0xd51b8c,{'bodyCollection':this[_0x5866e3(0x14e)],'contextResourcesSearchInputVisibleFrom':_0x14501[_0x5866e3(0x148)]}),this[_0x5866e3(0x155)][_0x5866e3(0x150)](..._0x5a037d)['to'](this),this[_0x5866e3(0x13a)]=new _0x38686f(_0xd51b8c),this[_0x5866e3(0x140)]({'tag':_0x5866e3(0x149),'attributes':{'class':['ck',_0x5866e3(0x13d),_0x5866e3(0x151),_0x5866e3(0x153)],'dir':_0xd51b8c[_0x5866e3(0x157)]},'children':[this[_0x5866e3(0x139)],this[_0x5866e3(0x14c)],this[_0x5866e3(0x155)],this[_0x5866e3(0x13a)]]});}[_0x2add58(0x13f)](_0x2c8f28,_0x198d28,_0x2e7e5d,_0x9ed246){var _0x490171=_0x2add58;this[_0x490171(0x155)][_0x490171(0x13f)](_0x2c8f28,_0x198d28,_0x2e7e5d,_0x9ed246);}[_0x2add58(0x142)](_0x488654){var _0x57a575=_0x2add58;this[_0x57a575(0x155)][_0x57a575(0x142)](_0x488654);}[_0x2add58(0x156)](){var _0x54009e=_0x2add58;this[_0x54009e(0x14e)][_0x54009e(0x143)](),super[_0x54009e(0x156)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x29a56a=_0x191d;function _0x191d(_0x107100,_0x2fc649){const _0x2a0ac3=_0x2a0a();return _0x191d=function(_0x191d36,_0x37c14a){_0x191d36=_0x191d36-0x19b;let _0x5c60e0=_0x2a0ac3[_0x191d36];return _0x5c60e0;},_0x191d(_0x107100,_0x2fc649);}(function(_0x35af18,_0x4e4294){const _0x3bf37a=_0x191d,_0x492d54=_0x35af18();while(!![]){try{const _0xc2aee2=parseInt(_0x3bf37a(0x1ee))/0x1*(-parseInt(_0x3bf37a(0x1a3))/0x2)+parseInt(_0x3bf37a(0x21c))/0x3+-parseInt(_0x3bf37a(0x206))/0x4+parseInt(_0x3bf37a(0x1b3))/0x5*(parseInt(_0x3bf37a(0x1fe))/0x6)+parseInt(_0x3bf37a(0x1d7))/0x7+parseInt(_0x3bf37a(0x1bf))/0x8+-parseInt(_0x3bf37a(0x218))/0x9;if(_0xc2aee2===_0x4e4294)break;else _0x492d54['push'](_0x492d54['shift']());}catch(_0x43ee84){_0x492d54['push'](_0x492d54['shift']());}}}(_0x2a0a,0x7263d));function _0x2a0a(){const _0x595844=['block\x20!important','visible\x20!important','calculationContainer','isConnected','none','clientHeight','pointerEvents','reorganizeChips','includes','remove','_calculateContainerWidth','body','_setupVisibilityObserver','_createCalculationContainer','_intersectionObserver','5498801wKVGea','disableAnimationOnEnter','_pendingCalculation','toLowerCase','rowDetectionTolerance','add','classList','_calculateOverflowInContainer','children','hide','showMoreBalloon','_visibleChips','border-box','style','block','isOn','_createShowMoreButton','label','undefined','forEach','-9999px','300px','_ancestorsToRestore','7eHweid','div','showMoreButton','+\x201','bottom','_createMockButton','_createShowMoreButtonView','left','extendTemplate','_applyOverflowResults','position','hidden','controlsButton','push','parentElement','_makeAncestorsVisible','1684698WKHrZc','button','from','pin','ck-calculation-container','length','textContent','offsetWidth','1304356MAHFIQ','_containerElement','set','innerHeight','50px','_distributeChips','top','destroy','slice','_updateShowMoreButtonVisibility','_findTargetContainer','visible','overflowChips','tagName','visibility','.ck-ai-chat','_targetContainer','cloneNode','10068489rqzTFR','_parentView','isVisible','content','318468tnSKfZ','innerHTML','some','_renderChipsAndCountRows','showBalloonPanel','observe','_testButtonFit','_updateOverflowUI','height','setTemplate','getBoundingClientRect','createElement','abs','overflowContainer','_isContainerVisible','render','0px','_restoreAncestorVisibility','zIndex','clientWidth','setContainerElement','_showMoreButtonView','maxVisibleRows','_updateBalloonContent','cssClasses','_createContainerElements','98894SBnWZC','documentElement','_overflowChips','display','_showMoreBalloonPanelView','absolute','_repinBalloonPanel','filter','querySelector','innerWidth','execute','width','appendChild','_handleShowMoreButtonClick','show','clear','10uGBsKt','boxSizing','className','element','hideBalloonPanel','_config','right','auto','showMoreLabelPrefix','_checkAndHandleOverflow','_createShowMoreBalloonPanelView','showMoreButtonView','6449720WHShgH','_bodyCollection','pop','isIntersecting','opacity','getComputedStyle','disconnect','_locale','_applyCalculationStyles'];_0x2a0a=function(){return _0x595844;};return _0x2a0a();}import{View as _0x26e7b5,BalloonPanelView as _0x47264d,ButtonView as _0x12e5d6,clickOutsideHandler as _0x5b1cfc}from'ckeditor5/src/ui.js';import{Collection as _0xb51e32}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x29a56a(0x1ec);export class AIChatChipsOverflowManager{[_0x29a56a(0x1c6)];[_0x29a56a(0x1b8)];[_0x29a56a(0x1e2)];[_0x29a56a(0x1a5)];[_0x29a56a(0x19e)]=null;[_0x29a56a(0x1a7)]=null;[_0x29a56a(0x207)]=null;[_0x29a56a(0x1c0)];[_0x29a56a(0x219)]=null;[_0x29a56a(0x1d6)]=null;[_0x29a56a(0x1d9)]=!0x1;constructor(_0xe26175,_0x1a2424,_0x2b5da0,_0x4b1c57,_0x41d188){const _0x469538=_0x29a56a;this[_0x469538(0x1c6)]=_0xe26175,this[_0x469538(0x1e2)]=_0x1a2424,this[_0x469538(0x1b8)]={...hn,..._0x2b5da0,'cssClasses':{'controlsButton':'','calculationContainer':_0x469538(0x202),..._0x2b5da0[_0x469538(0x1a1)]}},this[_0x469538(0x1a5)]=new _0xb51e32(),this[_0x469538(0x1c0)]=_0x4b1c57,this[_0x469538(0x219)]=_0x41d188||null;}[_0x29a56a(0x19d)](_0x11ad60){const _0x51f292=_0x29a56a;this[_0x51f292(0x1d6)]&&(this[_0x51f292(0x1d6)][_0x51f292(0x1c5)](),this[_0x51f292(0x1d6)]=null),this[_0x51f292(0x207)]=_0x11ad60,this[_0x51f292(0x1d4)]();}get[_0x29a56a(0x1be)](){const _0x25befe=_0x29a56a;return this[_0x25befe(0x19e)];}get[_0x29a56a(0x212)](){const _0x571d5c=_0x29a56a;return this[_0x571d5c(0x1a5)];}[_0x29a56a(0x1cf)](){requestAnimationFrame(()=>{const _0x35f0c2=_0x191d;this[_0x35f0c2(0x1bc)]();});}[_0x29a56a(0x220)](){const _0x928209=_0x29a56a;this[_0x928209(0x19e)]&&this[_0x928209(0x1a7)]&&(this[_0x928209(0x1a0)](),this[_0x928209(0x19e)][_0x928209(0x1e6)]=!0x0,this[_0x928209(0x1a7)][_0x928209(0x1b1)](),this[_0x928209(0x1a7)][_0x928209(0x201)]({'target':this[_0x928209(0x19e)][_0x928209(0x1b6)],'limiter':document[_0x928209(0x1ab)](_0x928209(0x215))}));}[_0x29a56a(0x1b7)](){const _0x355215=_0x29a56a;this[_0x355215(0x19e)]&&this[_0x355215(0x1a7)]&&(this[_0x355215(0x19e)][_0x355215(0x1e6)]=!0x1,this[_0x355215(0x1a7)][_0x355215(0x1e0)]());}[_0x29a56a(0x1b2)](){const _0x4276d8=_0x29a56a;this[_0x4276d8(0x1a5)][_0x4276d8(0x1b2)](),this[_0x4276d8(0x1b7)](),this[_0x4276d8(0x20f)](),this[_0x4276d8(0x19e)]&&(this[_0x4276d8(0x19e)][_0x4276d8(0x1e8)]=''),this[_0x4276d8(0x1a7)]&&this[_0x4276d8(0x1a7)][_0x4276d8(0x21b)][_0x4276d8(0x1b2)]();}[_0x29a56a(0x20d)](){const _0x5d6a42=_0x29a56a;this[_0x5d6a42(0x1d6)]&&(this[_0x5d6a42(0x1d6)][_0x5d6a42(0x1c5)](),this[_0x5d6a42(0x1d6)]=null),this[_0x5d6a42(0x19e)]&&(this[_0x5d6a42(0x19e)][_0x5d6a42(0x20d)](),this[_0x5d6a42(0x19e)]=null),this[_0x5d6a42(0x1a7)]&&(this[_0x5d6a42(0x1a7)][_0x5d6a42(0x20d)](),this[_0x5d6a42(0x1a7)]=null);}[_0x29a56a(0x1bc)](){const _0x167634=_0x29a56a;if(!this[_0x167634(0x207)])return;if(!this[_0x167634(0x22a)]())return void(this[_0x167634(0x1d9)]=!0x0);this[_0x167634(0x1d9)]=!0x1;const _0x4e7824=[...this[_0x167634(0x1e2)],...this[_0x167634(0x1a5)]],_0x1c8166=this[_0x167634(0x1d5)](),_0x137bd5=this[_0x167634(0x1de)](_0x1c8166,_0x4e7824),_0x4f7b5d=_0x1c8166[_0x167634(0x1ed)];_0x4f7b5d&&this[_0x167634(0x22d)](_0x4f7b5d),_0x1c8166[_0x167634(0x1d1)](),this[_0x167634(0x1f7)](_0x4e7824,_0x137bd5);}[_0x29a56a(0x1e7)](){const _0x518415=_0x29a56a;this[_0x518415(0x19e)]=this[_0x518415(0x1f4)](),this[_0x518415(0x1a7)]=this[_0x518415(0x1bd)](),this[_0x518415(0x19e)][_0x518415(0x22b)](),this[_0x518415(0x207)][_0x518415(0x1af)](this[_0x518415(0x19e)][_0x518415(0x1b6)]),this[_0x518415(0x19e)]['on'](_0x518415(0x1ad),()=>{const _0x4dbbb6=_0x518415;this[_0x4dbbb6(0x1b0)]();}),_0x5b1cfc({'emitter':this[_0x518415(0x1a7)],'contextElements':[this[_0x518415(0x1a7)][_0x518415(0x1b6)],this[_0x518415(0x19e)][_0x518415(0x1b6)]],'callback':()=>this[_0x518415(0x1b7)](),'activator':()=>this[_0x518415(0x19e)][_0x518415(0x1e6)]});}[_0x29a56a(0x1f4)](){const _0x1196a5=_0x29a56a,_0x2629ee=new _0x12e5d6(this[_0x1196a5(0x1c6)]);_0x2629ee[_0x1196a5(0x208)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x81838e=[this[_0x1196a5(0x1b8)][_0x1196a5(0x1a1)][_0x1196a5(0x1f0)]];return this[_0x1196a5(0x1b8)][_0x1196a5(0x1a1)][_0x1196a5(0x1fa)]&&_0x81838e[_0x1196a5(0x1fb)](this[_0x1196a5(0x1b8)][_0x1196a5(0x1a1)][_0x1196a5(0x1fa)]),_0x2629ee[_0x1196a5(0x1f6)]({'attributes':{'class':_0x81838e}}),_0x2629ee;}[_0x29a56a(0x1bd)](){const _0x44fe97=_0x29a56a,_0x284871=new _0x47264d(this[_0x44fe97(0x1c6)]);return _0x284871[_0x44fe97(0x1f6)]({'attributes':{'class':this[_0x44fe97(0x1b8)][_0x44fe97(0x1a1)][_0x44fe97(0x1e1)]}}),this[_0x44fe97(0x1c0)][_0x44fe97(0x1dc)](_0x284871),_0x284871;}[_0x29a56a(0x1a0)](){const _0x836031=_0x29a56a;if(this[_0x836031(0x1a7)]&&(this[_0x836031(0x1a7)][_0x836031(0x21b)][_0x836031(0x1b2)](),this[_0x836031(0x1a5)][_0x836031(0x203)]>0x0)){this[_0x836031(0x1a5)][_0x836031(0x1ea)](_0x29d74a=>{const _0x3b3ec2=_0x836031;_0x29d74a[_0x3b3ec2(0x1d8)]();});const _0x304824=new _0x26e7b5(this[_0x836031(0x1c6)]);_0x304824[_0x836031(0x225)]({'tag':_0x836031(0x1ef),'attributes':{'class':this[_0x836031(0x1b8)][_0x836031(0x1a1)][_0x836031(0x229)]},'children':this[_0x836031(0x1a5)]}),this[_0x836031(0x1a7)][_0x836031(0x21b)][_0x836031(0x1dc)](_0x304824);}}[_0x29a56a(0x1b0)](){const _0x498e09=_0x29a56a;this[_0x498e09(0x19e)][_0x498e09(0x1e6)]?this[_0x498e09(0x1b7)]():this[_0x498e09(0x220)]();}[_0x29a56a(0x20f)](){const _0x1d6df7=_0x29a56a,_0x179c1f=this[_0x1d6df7(0x1a5)][_0x1d6df7(0x203)]>0x0;this[_0x1d6df7(0x19e)]?.[_0x1d6df7(0x1b6)]&&(this[_0x1d6df7(0x19e)][_0x1d6df7(0x1b6)][_0x1d6df7(0x1e4)][_0x1d6df7(0x1a6)]=_0x179c1f?'':_0x1d6df7(0x1cc));}[_0x29a56a(0x1a9)](){const _0x232f47=_0x29a56a;this[_0x232f47(0x19e)]?.[_0x232f47(0x1e6)]&&this[_0x232f47(0x1a7)]?.[_0x232f47(0x21a)]&&this[_0x232f47(0x19e)][_0x232f47(0x1b6)]&&this[_0x232f47(0x1a7)][_0x232f47(0x201)]({'target':this[_0x232f47(0x19e)][_0x232f47(0x1b6)],'limiter':document[_0x232f47(0x1ab)](_0x232f47(0x215))});}[_0x29a56a(0x210)](_0x4d7b6d){const _0x181abe=_0x29a56a,_0x400744=this[_0x181abe(0x207)]?.[_0x181abe(0x213)][_0x181abe(0x1da)]()||_0x181abe(0x1ef),_0x16a19f=this[_0x181abe(0x207)]?.[_0x181abe(0x1dd)];if(_0x16a19f){const _0x2e7bd7=_0x16a19f[0x0]||'',_0x2f2c86=_0x4d7b6d[_0x181abe(0x1ab)]('.'+_0x2e7bd7),_0x565b46=_0x4d7b6d[_0x181abe(0x1ab)](_0x400744);return _0x2f2c86||_0x565b46||_0x4d7b6d;}return _0x4d7b6d[_0x181abe(0x1ab)](_0x400744)||_0x4d7b6d;}[_0x29a56a(0x1d2)](){const _0x380487=_0x29a56a,_0x15f09f=this[_0x380487(0x219)]?.[_0x380487(0x1b6)]||this[_0x380487(0x207)];if(!_0x15f09f)return an;const _0x491983=window[_0x380487(0x1c4)](_0x15f09f)[_0x380487(0x1ae)];if(_0x380487(0x1ba)===_0x491983||_0x380487(0x22c)===_0x491983||!_0x491983){const _0x489304=_0x15f09f[_0x380487(0x1fc)];if(_0x489304){const _0xbf2707=window[_0x380487(0x1c4)](_0x489304);return _0x380487(0x1ba)!==_0xbf2707[_0x380487(0x1ae)]?_0xbf2707[_0x380487(0x1ae)]:an;}return an;}return _0x491983;}[_0x29a56a(0x1c7)](_0x33030a,_0x2b0388){const _0x5d12c1=_0x29a56a;this[_0x5d12c1(0x1b8)][_0x5d12c1(0x1a1)][_0x5d12c1(0x1ca)]&&_0x33030a[_0x5d12c1(0x1dd)][_0x5d12c1(0x1dc)](this[_0x5d12c1(0x1b8)][_0x5d12c1(0x1a1)][_0x5d12c1(0x1ca)]),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1ae)]=_0x2b0388,_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1f8)]=_0x5d12c1(0x1a8),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x20c)]=_0x5d12c1(0x1eb),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1f5)]=_0x5d12c1(0x1eb),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1c3)]='0',_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1ce)]=_0x5d12c1(0x1cc),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x19b)]='-1',_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x214)]=_0x5d12c1(0x1c9),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1a6)]=_0x5d12c1(0x1c8),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1b4)]=_0x5d12c1(0x1e3);}[_0x29a56a(0x22d)](_0x1e6908){const _0x41f851=_0x29a56a;_0x1e6908[_0x41f851(0x1ea)](({element:_0x3f07de,originalDisplay:_0x9f0f88,originalVisibility:_0xbaa263})=>{const _0x57c3a8=_0x41f851;_0x3f07de[_0x57c3a8(0x1e4)][_0x57c3a8(0x1a6)]=_0x9f0f88,_0x3f07de[_0x57c3a8(0x1e4)][_0x57c3a8(0x214)]=_0xbaa263;});}[_0x29a56a(0x1fd)](_0x1df0a9){const _0x712aad=_0x29a56a,_0x1b12e5=[];let _0x402709=_0x1df0a9;for(;_0x402709&&_0x402709!==document[_0x712aad(0x1d3)];){const _0x407402=window[_0x712aad(0x1c4)](_0x402709);_0x712aad(0x1cc)!==_0x407402[_0x712aad(0x1a6)]&&_0x712aad(0x1f9)!==_0x407402[_0x712aad(0x214)]||(_0x1b12e5[_0x712aad(0x1fb)]({'element':_0x402709,'originalDisplay':_0x402709[_0x712aad(0x1e4)][_0x712aad(0x1a6)],'originalVisibility':_0x402709[_0x712aad(0x1e4)][_0x712aad(0x214)]}),_0x402709[_0x712aad(0x1e4)][_0x712aad(0x1a6)]=_0x712aad(0x1e5),_0x402709[_0x712aad(0x1e4)][_0x712aad(0x214)]=_0x712aad(0x211)),_0x402709=_0x402709[_0x712aad(0x1fc)];}return _0x1b12e5;}[_0x29a56a(0x1a2)](){const _0x128f06=_0x29a56a;let _0x1b24c9,_0x4e11ec;return this[_0x128f06(0x219)]?.[_0x128f06(0x1b6)]?(_0x1b24c9=this[_0x128f06(0x219)][_0x128f06(0x1b6)][_0x128f06(0x217)](!0x0),_0x4e11ec=this[_0x128f06(0x210)](_0x1b24c9)):(_0x1b24c9=document[_0x128f06(0x227)](_0x128f06(0x1ef)),_0x4e11ec=_0x1b24c9),{'calculationContainer':_0x1b24c9,'targetContainer':_0x4e11ec};}[_0x29a56a(0x1d5)](){const _0x130254=_0x29a56a,{calculationContainer:_0x338a12,targetContainer:_0x6670c6}=this[_0x130254(0x1a2)](),_0x338ec6=this[_0x130254(0x1d2)]();this[_0x130254(0x1c7)](_0x338a12,_0x338ec6);const _0x3df158=this[_0x130254(0x219)]?.[_0x130254(0x1b6)]||this[_0x130254(0x207)],_0x1a8650=_0x3df158?.[_0x130254(0x1fc)];_0x1a8650?_0x1a8650[_0x130254(0x1af)](_0x338a12):document[_0x130254(0x1d3)][_0x130254(0x1af)](_0x338a12),_0x338a12[_0x130254(0x216)]=_0x6670c6;const _0x55b5de=this[_0x130254(0x1fd)](_0x1a8650||null);return _0x338a12[_0x130254(0x205)],_0x338a12[_0x130254(0x1ed)]=_0x55b5de,_0x338a12;}[_0x29a56a(0x1de)](_0x297f75,_0x4f7602){const _0x273a2b=_0x29a56a,_0x46dd78=_0x297f75[_0x273a2b(0x216)]||_0x297f75,_0x5622f8=[],{rowCount:_0x54e93c}=this[_0x273a2b(0x21f)](_0x46dd78,_0x4f7602);if(_0x54e93c<=this[_0x273a2b(0x1b8)][_0x273a2b(0x19f)])return _0x5622f8;const _0x218727=_0x4f7602[_0x273a2b(0x20e)]();for(;_0x218727[_0x273a2b(0x203)]>0x0;){if(this[_0x273a2b(0x222)](_0x297f75,_0x46dd78,_0x218727)){const _0x37c6ca=_0x4f7602[_0x273a2b(0x1aa)](_0x3a87a8=>!_0x218727[_0x273a2b(0x1d0)](_0x3a87a8));_0x5622f8[_0x273a2b(0x1fb)](..._0x37c6ca);break;}if(!_0x218727[_0x273a2b(0x1c1)]())break;}return _0x5622f8;}[_0x29a56a(0x21f)](_0x277741,_0x3d3d34){const _0xbaf43e=_0x29a56a;_0x277741[_0xbaf43e(0x21d)]='',_0x3d3d34[_0xbaf43e(0x1ea)](_0x565c28=>{const _0x217c15=_0xbaf43e;if(_0x565c28[_0x217c15(0x1b6)]){const _0x337b4a=_0x565c28[_0x217c15(0x1b6)][_0x217c15(0x217)](!0x0);_0x277741[_0x217c15(0x1af)](_0x337b4a);}}),_0x277741[_0xbaf43e(0x205)];const _0x38e5f7=_0x277741[_0xbaf43e(0x1df)],_0x47a5a2=[];return Array[_0xbaf43e(0x200)](_0x38e5f7)[_0xbaf43e(0x1ea)](_0x56fca8=>{const _0x2824d4=_0xbaf43e,_0x4f8b19=_0x56fca8[_0x2824d4(0x226)]()[_0x2824d4(0x20c)];_0x47a5a2[_0x2824d4(0x21e)](_0x3c47d0=>Math[_0x2824d4(0x228)](_0x3c47d0-_0x4f8b19)<this[_0x2824d4(0x1b8)][_0x2824d4(0x1db)])||_0x47a5a2[_0x2824d4(0x1fb)](_0x4f8b19);}),{'rowCount':_0x47a5a2[_0xbaf43e(0x203)]};}[_0x29a56a(0x1f3)](){const _0x356b5a=_0x29a56a,_0x1d6564=document[_0x356b5a(0x227)](_0x356b5a(0x1ff));return _0x1d6564[_0x356b5a(0x1b5)]=this[_0x356b5a(0x1b8)][_0x356b5a(0x1a1)][_0x356b5a(0x1f0)],this[_0x356b5a(0x1b8)][_0x356b5a(0x1a1)][_0x356b5a(0x1fa)]&&_0x1d6564[_0x356b5a(0x1dd)][_0x356b5a(0x1dc)](this[_0x356b5a(0x1b8)][_0x356b5a(0x1a1)][_0x356b5a(0x1fa)]),_0x1d6564[_0x356b5a(0x204)]=_0x356b5a(0x1f1),_0x1d6564;}[_0x29a56a(0x222)](_0x1dd300,_0x30dd6f,_0x57121f){const _0x34c3ff=_0x29a56a;this[_0x34c3ff(0x21f)](_0x30dd6f,_0x57121f);const _0x4d1186=this[_0x34c3ff(0x1f3)]();_0x1dd300[_0x34c3ff(0x1af)](_0x4d1186),_0x1dd300[_0x34c3ff(0x205)];const _0x3adda7=[..._0x30dd6f[_0x34c3ff(0x1df)],_0x4d1186],_0x13f86b=[];_0x3adda7[_0x34c3ff(0x1ea)](_0x156763=>{const _0x54a437=_0x34c3ff,_0x1f0845=_0x156763[_0x54a437(0x226)]()[_0x54a437(0x20c)];_0x13f86b[_0x54a437(0x21e)](_0x269091=>Math[_0x54a437(0x228)](_0x269091-_0x1f0845)<this[_0x54a437(0x1b8)][_0x54a437(0x1db)])||_0x13f86b[_0x54a437(0x1fb)](_0x1f0845);});const _0x385d10=_0x13f86b[_0x34c3ff(0x203)];return _0x4d1186[_0x34c3ff(0x1d1)](),_0x385d10<=this[_0x34c3ff(0x1b8)][_0x34c3ff(0x19f)];}[_0x29a56a(0x20b)](_0x4585ab,_0xa77cb7){const _0x32954a=_0x29a56a;this[_0x32954a(0x1e2)][_0x32954a(0x1b2)](),this[_0x32954a(0x1a5)][_0x32954a(0x1b2)](),_0x4585ab[_0x32954a(0x1ea)](_0x502055=>{const _0x1e58ef=_0x32954a;_0xa77cb7[_0x1e58ef(0x1d0)](_0x502055)?this[_0x1e58ef(0x1a5)][_0x1e58ef(0x1dc)](_0x502055):this[_0x1e58ef(0x1e2)][_0x1e58ef(0x1dc)](_0x502055);});}[_0x29a56a(0x223)](_0x970f32){const _0x18cfa8=_0x29a56a;if(_0x970f32>0x0&&!this[_0x18cfa8(0x19e)]&&this[_0x18cfa8(0x1e7)](),_0x970f32>0x0&&this[_0x18cfa8(0x19e)]){const _0x2a9122=''+this[_0x18cfa8(0x1b8)][_0x18cfa8(0x1bb)]+(_0x970f32<0x63?_0x970f32:'99');this[_0x18cfa8(0x19e)][_0x18cfa8(0x1e8)]=_0x2a9122;}this[_0x18cfa8(0x1a0)](),this[_0x18cfa8(0x20f)](),this[_0x18cfa8(0x1a9)]();}[_0x29a56a(0x1f7)](_0x2907fc,_0x14c3ab){const _0x127f22=_0x29a56a;this[_0x127f22(0x20b)](_0x2907fc,_0x14c3ab),this[_0x127f22(0x223)](_0x14c3ab[_0x127f22(0x203)]);}[_0x29a56a(0x1d4)](){const _0x340d4a=_0x29a56a;this[_0x340d4a(0x207)]&&_0x340d4a(0x1e9)!=typeof IntersectionObserver&&(this[_0x340d4a(0x1d6)]=new IntersectionObserver(_0x2e1358=>{const _0x4226bf=_0x340d4a;_0x2e1358[0x0][_0x4226bf(0x1c2)]&&this[_0x4226bf(0x1d9)]&&requestAnimationFrame(()=>{const _0x586edf=_0x4226bf;this[_0x586edf(0x1bc)]();});},{'threshold':0.01,'rootMargin':_0x340d4a(0x20a)}),this[_0x340d4a(0x1d6)][_0x340d4a(0x221)](this[_0x340d4a(0x207)]));}[_0x29a56a(0x22a)](){const _0x1dc06b=_0x29a56a;if(!this[_0x1dc06b(0x207)])return!0x1;if(!this[_0x1dc06b(0x207)][_0x1dc06b(0x1cb)])return!0x1;const _0x2049ca=this[_0x1dc06b(0x207)][_0x1dc06b(0x226)]();if(0x0===_0x2049ca[_0x1dc06b(0x1ae)]||0x0===_0x2049ca[_0x1dc06b(0x224)])return!0x1;const _0x482432=window[_0x1dc06b(0x209)]||document[_0x1dc06b(0x1a4)][_0x1dc06b(0x1cd)],_0x2759ed=window[_0x1dc06b(0x1ac)]||document[_0x1dc06b(0x1a4)][_0x1dc06b(0x19c)],_0x15c4bb=0xc8;return _0x2049ca[_0x1dc06b(0x1f2)]>=-0xc8&&_0x2049ca[_0x1dc06b(0x20c)]<=_0x482432+_0x15c4bb&&_0x2049ca[_0x1dc06b(0x1b9)]>=-0xc8&&_0x2049ca[_0x1dc06b(0x1f5)]<=_0x2759ed+_0x15c4bb;}}
|
|
23
|
+
function _0x4aed(_0x3e7c10,_0x13e3ed){const _0x1d1e3a=_0x1d1e();return _0x4aed=function(_0x4aedc4,_0x460b34){_0x4aedc4=_0x4aedc4-0x78;let _0x477fd5=_0x1d1e3a[_0x4aedc4];return _0x477fd5;},_0x4aed(_0x3e7c10,_0x13e3ed);}const _0x12ada0=_0x4aed;function _0x1d1e(){const _0x1f578c=['overflowChips','_config','show','getBoundingClientRect','_visibleChips','_ancestorsToRestore','isOn','_handleShowMoreButtonClick','innerHTML','overflowContainer','disableAnimationOnEnter','render','300px','slice','querySelector','createElement','toLowerCase','19708784JMMhFa','_showMoreBalloonPanelView','_distributeChips','offsetWidth','_checkAndHandleOverflow','_findTargetContainer','extendTemplate','button','length','5395665fQyuCr','_parentView','remove','textContent','destroy','showBalloonPanel','some','isConnected','right','setTemplate','auto','observe','position','style','element','_containerElement','none','boxSizing','bottom','_applyOverflowResults','+\x201','cloneNode','absolute','clear','controlsButton','body','_showMoreButtonView','1513240JYGpFB','_makeAncestorsVisible','isIntersecting','0px','-9999px','pointerEvents','classList','_createCalculationContainer','innerHeight','push','3115442CxbXTE','showMoreButton','execute','hidden','visibility','rowDetectionTolerance','display','_repinBalloonPanel','_calculateContainerWidth','disconnect','from','className','_testButtonFit','.ck-ai-chat','pin','filter','_locale','4391106jHyoVT','_createShowMoreBalloonPanelView','calculationContainer','cssClasses','_createContainerElements','pop','_renderChipsAndCountRows','50px','abs','set','width','visible\x20!important','forEach','content','undefined','hideBalloonPanel','_updateBalloonContent','_restoreAncestorVisibility','_createShowMoreButtonView','_intersectionObserver','_setupVisibilityObserver','children','includes','ck-calculation-container','_updateOverflowUI','visible','reorganizeChips','setContainerElement','add','_targetContainer','height','_overflowChips','7wtEoUX','block','getComputedStyle','_pendingCalculation','left','_createMockButton','_updateShowMoreButtonVisibility','showMoreButtonView','clientHeight','appendChild','_bodyCollection','top','tagName','594814LlZOJW','zIndex','parentElement','clientWidth','_isContainerVisible','showMoreLabelPrefix','_createShowMoreButton','showMoreBalloon','maxVisibleRows','isVisible','block\x20!important','3757083xQPQYF','documentElement','label','opacity','_calculateOverflowInContainer','innerWidth','div','hide','_applyCalculationStyles','border-box'];_0x1d1e=function(){return _0x1f578c;};return _0x1d1e();}(function(_0x5ac2ca,_0x52f3ce){const _0x49b857=_0x4aed,_0x3cdadf=_0x5ac2ca();while(!![]){try{const _0x56a5fb=-parseInt(_0x49b857(0x102))/0x1+-parseInt(_0x49b857(0xc4))/0x2+parseInt(_0x49b857(0x7b))/0x3+-parseInt(_0x49b857(0xba))/0x4+-parseInt(_0x49b857(0x9f))/0x5+-parseInt(_0x49b857(0xd5))/0x6*(-parseInt(_0x49b857(0xf5))/0x7)+parseInt(_0x49b857(0x96))/0x8;if(_0x56a5fb===_0x52f3ce)break;else _0x3cdadf['push'](_0x3cdadf['shift']());}catch(_0x3f4028){_0x3cdadf['push'](_0x3cdadf['shift']());}}}(_0x1d1e,0xcc8c8));import{View as _0x86860d,BalloonPanelView as _0x18847f,ButtonView as _0x5c3010,clickOutsideHandler as _0x354a6e}from'ckeditor5/src/ui.js';import{Collection as _0xe3f288}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x12ada0(0x91);export class AIChatChipsOverflowManager{[_0x12ada0(0xd4)];[_0x12ada0(0x86)];[_0x12ada0(0x89)];[_0x12ada0(0xf4)];[_0x12ada0(0xb9)]=null;[_0x12ada0(0x97)]=null;[_0x12ada0(0xae)]=null;[_0x12ada0(0xff)];[_0x12ada0(0xa0)]=null;[_0x12ada0(0xe8)]=null;[_0x12ada0(0xf8)]=!0x1;constructor(_0x52ea97,_0x5f1cde,_0x14bcc7,_0x302dc9,_0x2cebeb){const _0x478be3=_0x12ada0;this[_0x478be3(0xd4)]=_0x52ea97,this[_0x478be3(0x89)]=_0x5f1cde,this[_0x478be3(0x86)]={...hn,..._0x14bcc7,'cssClasses':{'controlsButton':'','calculationContainer':_0x478be3(0xec),..._0x14bcc7[_0x478be3(0xd8)]}},this[_0x478be3(0xf4)]=new _0xe3f288(),this[_0x478be3(0xff)]=_0x302dc9,this[_0x478be3(0xa0)]=_0x2cebeb||null;}[_0x12ada0(0xf0)](_0x28c8c2){const _0x14e6ba=_0x12ada0;this[_0x14e6ba(0xe8)]&&(this[_0x14e6ba(0xe8)][_0x14e6ba(0xcd)](),this[_0x14e6ba(0xe8)]=null),this[_0x14e6ba(0xae)]=_0x28c8c2,this[_0x14e6ba(0xe9)]();}get[_0x12ada0(0xfc)](){const _0x319a99=_0x12ada0;return this[_0x319a99(0xb9)];}get[_0x12ada0(0x85)](){const _0x2af4fc=_0x12ada0;return this[_0x2af4fc(0xf4)];}[_0x12ada0(0xef)](){requestAnimationFrame(()=>{const _0x21f74f=_0x4aed;this[_0x21f74f(0x9a)]();});}[_0x12ada0(0xa4)](){const _0x414231=_0x12ada0;this[_0x414231(0xb9)]&&this[_0x414231(0x97)]&&(this[_0x414231(0xe5)](),this[_0x414231(0xb9)][_0x414231(0x8b)]=!0x0,this[_0x414231(0x97)][_0x414231(0x87)](),this[_0x414231(0x97)][_0x414231(0xd2)]({'target':this[_0x414231(0xb9)][_0x414231(0xad)],'limiter':document[_0x414231(0x93)](_0x414231(0xd1))}));}[_0x12ada0(0xe4)](){const _0xdd419d=_0x12ada0;this[_0xdd419d(0xb9)]&&this[_0xdd419d(0x97)]&&(this[_0xdd419d(0xb9)][_0xdd419d(0x8b)]=!0x1,this[_0xdd419d(0x97)][_0xdd419d(0x82)]());}[_0x12ada0(0xb6)](){const _0x54846c=_0x12ada0;this[_0x54846c(0xf4)][_0x54846c(0xb6)](),this[_0x54846c(0xe4)](),this[_0x54846c(0xfb)](),this[_0x54846c(0xb9)]&&(this[_0x54846c(0xb9)][_0x54846c(0x7d)]=''),this[_0x54846c(0x97)]&&this[_0x54846c(0x97)][_0x54846c(0xe2)][_0x54846c(0xb6)]();}[_0x12ada0(0xa3)](){const _0xf06acf=_0x12ada0;this[_0xf06acf(0xe8)]&&(this[_0xf06acf(0xe8)][_0xf06acf(0xcd)](),this[_0xf06acf(0xe8)]=null),this[_0xf06acf(0xb9)]&&(this[_0xf06acf(0xb9)][_0xf06acf(0xa3)](),this[_0xf06acf(0xb9)]=null),this[_0xf06acf(0x97)]&&(this[_0xf06acf(0x97)][_0xf06acf(0xa3)](),this[_0xf06acf(0x97)]=null);}[_0x12ada0(0x9a)](){const _0x26ad95=_0x12ada0;if(!this[_0x26ad95(0xae)])return;if(!this[_0x26ad95(0x106)]())return void(this[_0x26ad95(0xf8)]=!0x0);this[_0x26ad95(0xf8)]=!0x1;const _0x4f9f10=[...this[_0x26ad95(0x89)],...this[_0x26ad95(0xf4)]],_0x37ddc1=this[_0x26ad95(0xc1)](),_0x5c9c0b=this[_0x26ad95(0x7f)](_0x37ddc1,_0x4f9f10),_0x5d08fc=_0x37ddc1[_0x26ad95(0x8a)];_0x5d08fc&&this[_0x26ad95(0xe6)](_0x5d08fc),_0x37ddc1[_0x26ad95(0xa1)](),this[_0x26ad95(0xb2)](_0x4f9f10,_0x5c9c0b);}[_0x12ada0(0x108)](){const _0xaff6bc=_0x12ada0;this[_0xaff6bc(0xb9)]=this[_0xaff6bc(0xe7)](),this[_0xaff6bc(0x97)]=this[_0xaff6bc(0xd6)](),this[_0xaff6bc(0xb9)][_0xaff6bc(0x90)](),this[_0xaff6bc(0xae)][_0xaff6bc(0xfe)](this[_0xaff6bc(0xb9)][_0xaff6bc(0xad)]),this[_0xaff6bc(0xb9)]['on'](_0xaff6bc(0xc6),()=>{const _0x1c9da5=_0xaff6bc;this[_0x1c9da5(0x8c)]();}),_0x354a6e({'emitter':this[_0xaff6bc(0x97)],'contextElements':[this[_0xaff6bc(0x97)][_0xaff6bc(0xad)],this[_0xaff6bc(0xb9)][_0xaff6bc(0xad)]],'callback':()=>this[_0xaff6bc(0xe4)](),'activator':()=>this[_0xaff6bc(0xb9)][_0xaff6bc(0x8b)]});}[_0x12ada0(0xe7)](){const _0x15c55a=_0x12ada0,_0x492741=new _0x5c3010(this[_0x15c55a(0xd4)]);_0x492741[_0x15c55a(0xde)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1206fe=[this[_0x15c55a(0x86)][_0x15c55a(0xd8)][_0x15c55a(0xc5)]];return this[_0x15c55a(0x86)][_0x15c55a(0xd8)][_0x15c55a(0xb7)]&&_0x1206fe[_0x15c55a(0xc3)](this[_0x15c55a(0x86)][_0x15c55a(0xd8)][_0x15c55a(0xb7)]),_0x492741[_0x15c55a(0x9c)]({'attributes':{'class':_0x1206fe}}),_0x492741;}[_0x12ada0(0xd6)](){const _0x342b36=_0x12ada0,_0x30408d=new _0x18847f(this[_0x342b36(0xd4)]);return _0x30408d[_0x342b36(0x9c)]({'attributes':{'class':this[_0x342b36(0x86)][_0x342b36(0xd8)][_0x342b36(0x109)]}}),this[_0x342b36(0xff)][_0x342b36(0xf1)](_0x30408d),_0x30408d;}[_0x12ada0(0xe5)](){const _0x494686=_0x12ada0;if(this[_0x494686(0x97)]&&(this[_0x494686(0x97)][_0x494686(0xe2)][_0x494686(0xb6)](),this[_0x494686(0xf4)][_0x494686(0x9e)]>0x0)){this[_0x494686(0xf4)][_0x494686(0xe1)](_0x228f86=>{const _0x344823=_0x494686;_0x228f86[_0x344823(0x8f)]();});const _0xf65a3f=new _0x86860d(this[_0x494686(0xd4)]);_0xf65a3f[_0x494686(0xa8)]({'tag':_0x494686(0x81),'attributes':{'class':this[_0x494686(0x86)][_0x494686(0xd8)][_0x494686(0x8e)]},'children':this[_0x494686(0xf4)]}),this[_0x494686(0x97)][_0x494686(0xe2)][_0x494686(0xf1)](_0xf65a3f);}}[_0x12ada0(0x8c)](){const _0x4b95e4=_0x12ada0;this[_0x4b95e4(0xb9)][_0x4b95e4(0x8b)]?this[_0x4b95e4(0xe4)]():this[_0x4b95e4(0xa4)]();}[_0x12ada0(0xfb)](){const _0x129237=_0x12ada0,_0x5af010=this[_0x129237(0xf4)][_0x129237(0x9e)]>0x0;this[_0x129237(0xb9)]?.[_0x129237(0xad)]&&(this[_0x129237(0xb9)][_0x129237(0xad)][_0x129237(0xac)][_0x129237(0xca)]=_0x5af010?'':_0x129237(0xaf));}[_0x12ada0(0xcb)](){const _0x4ce6cf=_0x12ada0;this[_0x4ce6cf(0xb9)]?.[_0x4ce6cf(0x8b)]&&this[_0x4ce6cf(0x97)]?.[_0x4ce6cf(0x79)]&&this[_0x4ce6cf(0xb9)][_0x4ce6cf(0xad)]&&this[_0x4ce6cf(0x97)][_0x4ce6cf(0xd2)]({'target':this[_0x4ce6cf(0xb9)][_0x4ce6cf(0xad)],'limiter':document[_0x4ce6cf(0x93)](_0x4ce6cf(0xd1))});}[_0x12ada0(0x9b)](_0x187e84){const _0x153492=_0x12ada0,_0x50e9fe=this[_0x153492(0xae)]?.[_0x153492(0x101)][_0x153492(0x95)]()||_0x153492(0x81),_0x4307e5=this[_0x153492(0xae)]?.[_0x153492(0xc0)];if(_0x4307e5){const _0x5d0fee=_0x4307e5[0x0]||'',_0xc39b5b=_0x187e84[_0x153492(0x93)]('.'+_0x5d0fee),_0x4b662a=_0x187e84[_0x153492(0x93)](_0x50e9fe);return _0xc39b5b||_0x4b662a||_0x187e84;}return _0x187e84[_0x153492(0x93)](_0x50e9fe)||_0x187e84;}[_0x12ada0(0xcc)](){const _0x361b21=_0x12ada0,_0x3375e6=this[_0x361b21(0xa0)]?.[_0x361b21(0xad)]||this[_0x361b21(0xae)];if(!_0x3375e6)return an;const _0x17d0c9=window[_0x361b21(0xf7)](_0x3375e6)[_0x361b21(0xdf)];if(_0x361b21(0xa9)===_0x17d0c9||_0x361b21(0xbd)===_0x17d0c9||!_0x17d0c9){const _0x778382=_0x3375e6[_0x361b21(0x104)];if(_0x778382){const _0x3df5df=window[_0x361b21(0xf7)](_0x778382);return _0x361b21(0xa9)!==_0x3df5df[_0x361b21(0xdf)]?_0x3df5df[_0x361b21(0xdf)]:an;}return an;}return _0x17d0c9;}[_0x12ada0(0x83)](_0x4a5bc7,_0x442c48){const _0x544890=_0x12ada0;this[_0x544890(0x86)][_0x544890(0xd8)][_0x544890(0xd7)]&&_0x4a5bc7[_0x544890(0xc0)][_0x544890(0xf1)](this[_0x544890(0x86)][_0x544890(0xd8)][_0x544890(0xd7)]),_0x4a5bc7[_0x544890(0xac)][_0x544890(0xdf)]=_0x442c48,_0x4a5bc7[_0x544890(0xac)][_0x544890(0xab)]=_0x544890(0xb5),_0x4a5bc7[_0x544890(0xac)][_0x544890(0x100)]=_0x544890(0xbe),_0x4a5bc7[_0x544890(0xac)][_0x544890(0xf9)]=_0x544890(0xbe),_0x4a5bc7[_0x544890(0xac)][_0x544890(0x7e)]='0',_0x4a5bc7[_0x544890(0xac)][_0x544890(0xbf)]=_0x544890(0xaf),_0x4a5bc7[_0x544890(0xac)][_0x544890(0x103)]='-1',_0x4a5bc7[_0x544890(0xac)][_0x544890(0xc8)]=_0x544890(0xe0),_0x4a5bc7[_0x544890(0xac)][_0x544890(0xca)]=_0x544890(0x7a),_0x4a5bc7[_0x544890(0xac)][_0x544890(0xb0)]=_0x544890(0x84);}[_0x12ada0(0xe6)](_0x881179){const _0x4b6670=_0x12ada0;_0x881179[_0x4b6670(0xe1)](({element:_0x264ec6,originalDisplay:_0x2d0f9d,originalVisibility:_0x42186a})=>{const _0x3a1faa=_0x4b6670;_0x264ec6[_0x3a1faa(0xac)][_0x3a1faa(0xca)]=_0x2d0f9d,_0x264ec6[_0x3a1faa(0xac)][_0x3a1faa(0xc8)]=_0x42186a;});}[_0x12ada0(0xbb)](_0x36daf3){const _0xc7a6ad=_0x12ada0,_0x4021a1=[];let _0x17f624=_0x36daf3;for(;_0x17f624&&_0x17f624!==document[_0xc7a6ad(0xb8)];){const _0xfcf29d=window[_0xc7a6ad(0xf7)](_0x17f624);_0xc7a6ad(0xaf)!==_0xfcf29d[_0xc7a6ad(0xca)]&&_0xc7a6ad(0xc7)!==_0xfcf29d[_0xc7a6ad(0xc8)]||(_0x4021a1[_0xc7a6ad(0xc3)]({'element':_0x17f624,'originalDisplay':_0x17f624[_0xc7a6ad(0xac)][_0xc7a6ad(0xca)],'originalVisibility':_0x17f624[_0xc7a6ad(0xac)][_0xc7a6ad(0xc8)]}),_0x17f624[_0xc7a6ad(0xac)][_0xc7a6ad(0xca)]=_0xc7a6ad(0xf6),_0x17f624[_0xc7a6ad(0xac)][_0xc7a6ad(0xc8)]=_0xc7a6ad(0xee)),_0x17f624=_0x17f624[_0xc7a6ad(0x104)];}return _0x4021a1;}[_0x12ada0(0xd9)](){const _0x718e5c=_0x12ada0;let _0x1d7393,_0x53ceb6;return this[_0x718e5c(0xa0)]?.[_0x718e5c(0xad)]?(_0x1d7393=this[_0x718e5c(0xa0)][_0x718e5c(0xad)][_0x718e5c(0xb4)](!0x0),_0x53ceb6=this[_0x718e5c(0x9b)](_0x1d7393)):(_0x1d7393=document[_0x718e5c(0x94)](_0x718e5c(0x81)),_0x53ceb6=_0x1d7393),{'calculationContainer':_0x1d7393,'targetContainer':_0x53ceb6};}[_0x12ada0(0xc1)](){const _0x3b315c=_0x12ada0,{calculationContainer:_0x3f54bc,targetContainer:_0x19e00f}=this[_0x3b315c(0xd9)](),_0x4284af=this[_0x3b315c(0xcc)]();this[_0x3b315c(0x83)](_0x3f54bc,_0x4284af);const _0x46d5f4=this[_0x3b315c(0xa0)]?.[_0x3b315c(0xad)]||this[_0x3b315c(0xae)],_0x49bbd2=_0x46d5f4?.[_0x3b315c(0x104)];_0x49bbd2?_0x49bbd2[_0x3b315c(0xfe)](_0x3f54bc):document[_0x3b315c(0xb8)][_0x3b315c(0xfe)](_0x3f54bc),_0x3f54bc[_0x3b315c(0xf2)]=_0x19e00f;const _0x462c04=this[_0x3b315c(0xbb)](_0x49bbd2||null);return _0x3f54bc[_0x3b315c(0x99)],_0x3f54bc[_0x3b315c(0x8a)]=_0x462c04,_0x3f54bc;}[_0x12ada0(0x7f)](_0x4021fa,_0x22836c){const _0x35df06=_0x12ada0,_0xd5fc4f=_0x4021fa[_0x35df06(0xf2)]||_0x4021fa,_0x161a62=[],{rowCount:_0xff3591}=this[_0x35df06(0xdb)](_0xd5fc4f,_0x22836c);if(_0xff3591<=this[_0x35df06(0x86)][_0x35df06(0x78)])return _0x161a62;const _0x5ad543=_0x22836c[_0x35df06(0x92)]();for(;_0x5ad543[_0x35df06(0x9e)]>0x0;){if(this[_0x35df06(0xd0)](_0x4021fa,_0xd5fc4f,_0x5ad543)){const _0x495d43=_0x22836c[_0x35df06(0xd3)](_0x49a89a=>!_0x5ad543[_0x35df06(0xeb)](_0x49a89a));_0x161a62[_0x35df06(0xc3)](..._0x495d43);break;}if(!_0x5ad543[_0x35df06(0xda)]())break;}return _0x161a62;}[_0x12ada0(0xdb)](_0x12fa24,_0x5819fe){const _0x354093=_0x12ada0;_0x12fa24[_0x354093(0x8d)]='',_0x5819fe[_0x354093(0xe1)](_0x29b712=>{const _0x432302=_0x354093;if(_0x29b712[_0x432302(0xad)]){const _0x40b7ac=_0x29b712[_0x432302(0xad)][_0x432302(0xb4)](!0x0);_0x12fa24[_0x432302(0xfe)](_0x40b7ac);}}),_0x12fa24[_0x354093(0x99)];const _0xb99e34=_0x12fa24[_0x354093(0xea)],_0x2aa3f2=[];return Array[_0x354093(0xce)](_0xb99e34)[_0x354093(0xe1)](_0xaa8421=>{const _0x41c2b3=_0x354093,_0x11e1b2=_0xaa8421[_0x41c2b3(0x88)]()[_0x41c2b3(0x100)];_0x2aa3f2[_0x41c2b3(0xa5)](_0x395440=>Math[_0x41c2b3(0xdd)](_0x395440-_0x11e1b2)<this[_0x41c2b3(0x86)][_0x41c2b3(0xc9)])||_0x2aa3f2[_0x41c2b3(0xc3)](_0x11e1b2);}),{'rowCount':_0x2aa3f2[_0x354093(0x9e)]};}[_0x12ada0(0xfa)](){const _0x3bb01c=_0x12ada0,_0x59fdb1=document[_0x3bb01c(0x94)](_0x3bb01c(0x9d));return _0x59fdb1[_0x3bb01c(0xcf)]=this[_0x3bb01c(0x86)][_0x3bb01c(0xd8)][_0x3bb01c(0xc5)],this[_0x3bb01c(0x86)][_0x3bb01c(0xd8)][_0x3bb01c(0xb7)]&&_0x59fdb1[_0x3bb01c(0xc0)][_0x3bb01c(0xf1)](this[_0x3bb01c(0x86)][_0x3bb01c(0xd8)][_0x3bb01c(0xb7)]),_0x59fdb1[_0x3bb01c(0xa2)]=_0x3bb01c(0xb3),_0x59fdb1;}[_0x12ada0(0xd0)](_0x31cca5,_0x22daa4,_0x350794){const _0x225235=_0x12ada0;this[_0x225235(0xdb)](_0x22daa4,_0x350794);const _0x9701c7=this[_0x225235(0xfa)]();_0x31cca5[_0x225235(0xfe)](_0x9701c7),_0x31cca5[_0x225235(0x99)];const _0x102d6e=[..._0x22daa4[_0x225235(0xea)],_0x9701c7],_0x48150d=[];_0x102d6e[_0x225235(0xe1)](_0x592d16=>{const _0x37004c=_0x225235,_0x37f180=_0x592d16[_0x37004c(0x88)]()[_0x37004c(0x100)];_0x48150d[_0x37004c(0xa5)](_0x3d317b=>Math[_0x37004c(0xdd)](_0x3d317b-_0x37f180)<this[_0x37004c(0x86)][_0x37004c(0xc9)])||_0x48150d[_0x37004c(0xc3)](_0x37f180);});const _0x2f7ea2=_0x48150d[_0x225235(0x9e)];return _0x9701c7[_0x225235(0xa1)](),_0x2f7ea2<=this[_0x225235(0x86)][_0x225235(0x78)];}[_0x12ada0(0x98)](_0x4be4d5,_0x425631){const _0x4730cd=_0x12ada0;this[_0x4730cd(0x89)][_0x4730cd(0xb6)](),this[_0x4730cd(0xf4)][_0x4730cd(0xb6)](),_0x4be4d5[_0x4730cd(0xe1)](_0x4a5903=>{const _0x352361=_0x4730cd;_0x425631[_0x352361(0xeb)](_0x4a5903)?this[_0x352361(0xf4)][_0x352361(0xf1)](_0x4a5903):this[_0x352361(0x89)][_0x352361(0xf1)](_0x4a5903);});}[_0x12ada0(0xed)](_0x247f4d){const _0x4f00f5=_0x12ada0;if(_0x247f4d>0x0&&!this[_0x4f00f5(0xb9)]&&this[_0x4f00f5(0x108)](),_0x247f4d>0x0&&this[_0x4f00f5(0xb9)]){const _0xace2c4=''+this[_0x4f00f5(0x86)][_0x4f00f5(0x107)]+(_0x247f4d<0x63?_0x247f4d:'99');this[_0x4f00f5(0xb9)][_0x4f00f5(0x7d)]=_0xace2c4;}this[_0x4f00f5(0xe5)](),this[_0x4f00f5(0xfb)](),this[_0x4f00f5(0xcb)]();}[_0x12ada0(0xb2)](_0x17a940,_0x12ae17){const _0xc4ff31=_0x12ada0;this[_0xc4ff31(0x98)](_0x17a940,_0x12ae17),this[_0xc4ff31(0xed)](_0x12ae17[_0xc4ff31(0x9e)]);}[_0x12ada0(0xe9)](){const _0x496ce4=_0x12ada0;this[_0x496ce4(0xae)]&&_0x496ce4(0xe3)!=typeof IntersectionObserver&&(this[_0x496ce4(0xe8)]=new IntersectionObserver(_0x245c17=>{const _0x1044c1=_0x496ce4;_0x245c17[0x0][_0x1044c1(0xbc)]&&this[_0x1044c1(0xf8)]&&requestAnimationFrame(()=>{const _0x1a165f=_0x1044c1;this[_0x1a165f(0x9a)]();});},{'threshold':0.01,'rootMargin':_0x496ce4(0xdc)}),this[_0x496ce4(0xe8)][_0x496ce4(0xaa)](this[_0x496ce4(0xae)]));}[_0x12ada0(0x106)](){const _0x180e8e=_0x12ada0;if(!this[_0x180e8e(0xae)])return!0x1;if(!this[_0x180e8e(0xae)][_0x180e8e(0xa6)])return!0x1;const _0x3712a1=this[_0x180e8e(0xae)][_0x180e8e(0x88)]();if(0x0===_0x3712a1[_0x180e8e(0xdf)]||0x0===_0x3712a1[_0x180e8e(0xf3)])return!0x1;const _0x22cbac=window[_0x180e8e(0xc2)]||document[_0x180e8e(0x7c)][_0x180e8e(0xfd)],_0x16700f=window[_0x180e8e(0x80)]||document[_0x180e8e(0x7c)][_0x180e8e(0x105)],_0x11a125=0xc8;return _0x3712a1[_0x180e8e(0xb1)]>=-0xc8&&_0x3712a1[_0x180e8e(0x100)]<=_0x22cbac+_0x11a125&&_0x3712a1[_0x180e8e(0xa7)]>=-0xc8&&_0x3712a1[_0x180e8e(0xf9)]<=_0x16700f+_0x11a125;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37e35d=_0xd077;(function(_0x4554fa,_0x3da19c){const _0x42b208=_0xd077,_0x1f7ada=_0x4554fa();while(!![]){try{const _0x2e1d91=-parseInt(_0x42b208(0x129))/0x1+parseInt(_0x42b208(0x10e))/0x2+parseInt(_0x42b208(0x115))/0x3+parseInt(_0x42b208(0x102))/0x4+-parseInt(_0x42b208(0x13c))/0x5+parseInt(_0x42b208(0x110))/0x6*(parseInt(_0x42b208(0x11d))/0x7)+-parseInt(_0x42b208(0x12f))/0x8;if(_0x2e1d91===_0x3da19c)break;else _0x1f7ada['push'](_0x1f7ada['shift']());}catch(_0x4fbffa){_0x1f7ada['push'](_0x1f7ada['shift']());}}}(_0x4706,0xcb2ac));import{ButtonView as _0x3596fa,IconView as _0x458559}from'ckeditor5/src/ui.js';import{IconClose as _0x132dc9,IconDocument as _0x35e4af,IconFileUpload as _0xadd2ff,IconLink as _0x142ae7,IconSelection as _0x394cd6}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2913ae}from'../../../aicore/utils/common-translations.js';function _0x4706(){const _0x155df6=['set','_initializeProperties','ck-ai-chat-context-chip__label','readonly','ck-ai-chat-context-chip_document','removeContextItemChip','ck-ai-chat-context-controls__chip-tooltip','classList','_createTemplateChildren','render','lastIndexOf','1814334uiYpKo','removeEventListener','252798CrxCwZ','slice','uiId','length','_createRemoveButton','2200758dNzlYf','_handleAnimationEndOnce','bindTemplate','_createTemplateAttributes','isLoading','element','animationend','document','133UPSvxc','_isAnimationOnEnterEnabled','_setupRemoveButtonEvent','setTemplate','ck-ai-chat-context-chip_wide','bind','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','span','ck-ai-chat-context-chip__type-icon','fire','disableAnimationOnEnter','_setupTemplate','313048tTVHSy','ck-ai-chat-context-chip_new-chip','ck-hidden','_createIconView','type','itemType','4325096qiYVSQ','_createLabelElement','execute','small','addEventListener','div','remove','locale','ck-ai-chat-context-chip','extendTemplate','content','webkitAnimationEnd','label','7926055pISOrP','_createLoaderIcon','add','tooltip','selection','isVisible','3319152nwTppj'];_0x4706=function(){return _0x155df6;};return _0x4706();}import{AISpinnerView as _0x261f68}from'../../../aicore/ui/aispinner.js';const xn={'file':_0xadd2ff,'document':_0x35e4af,'web-resource':_0x142ae7,'text':_0xadd2ff,'selection':_0x394cd6,'mcp-tool-context':_0x35e4af},bn=_0x37e35d(0x137),wn=_0x37e35d(0x121),Tn=_0x37e35d(0x107),En=_0x37e35d(0x105),fn=_0x37e35d(0x125),An=_0x37e35d(0x109),Cn='n';function _0xd077(_0x3e8ba3,_0x31ea6a){const _0x4706e0=_0x4706();return _0xd077=function(_0xd0771,_0x33c60b){_0xd0771=_0xd0771-0x100;let _0x53dc31=_0x4706e0[_0xd0771];return _0x53dc31;},_0xd077(_0x3e8ba3,_0x31ea6a);}export class AIChatContextItemButtonView extends _0x3596fa{constructor(_0x324634,_0x135f01,_0x1e880b,_0x239351,_0x38f913=!0x1){const _0xc85eb4=_0x37e35d;super(_0x324634),this[_0xc85eb4(0x11e)]=_0x239351,this[_0xc85eb4(0x104)](_0x135f01,_0x1e880b,_0x38f913),this[_0xc85eb4(0x128)]();}[_0x37e35d(0x10c)](){const _0x3643e8=_0x37e35d;super[_0x3643e8(0x10c)](),this[_0x3643e8(0x11e)]&&this[_0x3643e8(0x11a)]&&(this[_0x3643e8(0x11a)][_0x3643e8(0x10a)][_0x3643e8(0x13e)](_0x3643e8(0x12a)),this[_0x3643e8(0x116)](this[_0x3643e8(0x11a)],()=>{const _0xf55bb4=_0x3643e8;this[_0xf55bb4(0x11a)]&&this[_0xf55bb4(0x11a)][_0xf55bb4(0x10a)][_0xf55bb4(0x135)](_0xf55bb4(0x12a));}));}[_0x37e35d(0x127)](){const _0x55165d=_0x37e35d;this[_0x55165d(0x11e)]=!0x1,this[_0x55165d(0x11a)]&&this[_0x55165d(0x11a)][_0x55165d(0x10a)][_0x55165d(0x135)](_0x55165d(0x12a));}[_0x37e35d(0x104)](_0x124a4f,_0x141f50,_0x416655){const _0x36e1a1=_0x37e35d;this[_0x36e1a1(0x103)](_0x36e1a1(0x13b),_0x124a4f[_0x36e1a1(0x13b)]),this[_0x36e1a1(0x103)](_0x36e1a1(0x13f),!0x0),this[_0x36e1a1(0x103)](_0x36e1a1(0x12e),_0x124a4f[_0x36e1a1(0x12d)]),this[_0x36e1a1(0x103)]('id',_0x124a4f[_0x36e1a1(0x112)]),this[_0x36e1a1(0x103)](_0x36e1a1(0x106),_0x141f50),this[_0x36e1a1(0x103)](_0x36e1a1(0x119),_0x416655);}[_0x37e35d(0x128)](){const _0x2f53b2=_0x37e35d,_0x4bed84=this[_0x2f53b2(0x12c)](),_0x2c6523=this[_0x2f53b2(0x114)](),_0x26f422=this[_0x2f53b2(0x117)];this[_0x2f53b2(0x120)]({'tag':_0x2f53b2(0x134),'attributes':this[_0x2f53b2(0x118)](_0x26f422),'children':this[_0x2f53b2(0x10b)](_0x4bed84,_0x2c6523,_0x26f422)});}[_0x37e35d(0x118)](_0x2c1c90){const _0x3c11d0=_0x37e35d;return{'class':[bn,_0x2c1c90['if'](_0x3c11d0(0x12e),Tn,_0x1dad02=>_0x3c11d0(0x11c)==_0x1dad02),_0x2c1c90['if'](_0x3c11d0(0x12e),wn,_0x48d020=>_0x3c11d0(0x100)==_0x48d020)],'data-cke-tooltip-text':_0x2c1c90['to'](_0x3c11d0(0x13b),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x37e35d(0x10b)](_0x4879f9,_0x2eb97e,_0x16e971){const _0x111857=_0x37e35d,_0x4bf1f1=this[_0x111857(0x130)](_0x16e971),_0x234bf1=this[_0x111857(0x13d)]();return this[_0x111857(0x106)]?[_0x4879f9,_0x4bf1f1]:[_0x4879f9,_0x234bf1,_0x4bf1f1,_0x2eb97e];}[_0x37e35d(0x130)](_0x455cf2){const _0x3f63a5=_0x37e35d;return{'tag':_0x3f63a5(0x124),'attributes':{'class':En},'children':[{'text':_0x455cf2['to'](_0x3f63a5(0x13b))}]};}[_0x37e35d(0x114)](){const _0x42bac3=_0x37e35d,_0x1a6041=new _0x3596fa(this[_0x42bac3(0x136)]);return _0x1a6041[_0x42bac3(0x103)]({'label':_0x2913ae(this[_0x42bac3(0x136)],_0x42bac3(0x123)),'icon':_0x132dc9}),this[_0x42bac3(0x11f)](_0x1a6041),_0x1a6041;}[_0x37e35d(0x11f)](_0x57332b){const _0x3d460a=_0x37e35d;_0x57332b['on'](_0x3d460a(0x131),()=>{const _0x47e5ec=_0x3d460a;this[_0x47e5ec(0x126)](_0x47e5ec(0x108),this['id']);});}[_0x37e35d(0x12c)](){const _0x5c95df=_0x37e35d,_0x4bcc8a=this[_0x5c95df(0x117)],_0xb1044b=new _0x458559();return _0xb1044b[_0x5c95df(0x139)]=xn[this[_0x5c95df(0x12e)]],_0xb1044b[_0x5c95df(0x138)]({'attributes':{'class':[fn,_0x4bcc8a['if'](_0x5c95df(0x119),_0x5c95df(0x12b),_0x58d40f=>_0x58d40f)]}}),_0xb1044b;}[_0x37e35d(0x116)](_0x50cf56,_0x24b6d5){const _0x16d4c9=_0x37e35d;if(!_0x50cf56)return;const _0x51cf55=()=>{const _0x2aa51e=_0xd077;_0x24b6d5(),_0x50cf56[_0x2aa51e(0x10f)](_0x2aa51e(0x11b),_0x51cf55),_0x50cf56[_0x2aa51e(0x10f)](_0x2aa51e(0x13a),_0x51cf55);};_0x50cf56[_0x16d4c9(0x133)](_0x16d4c9(0x11b),_0x51cf55),_0x50cf56[_0x16d4c9(0x133)](_0x16d4c9(0x13a),_0x51cf55);}[_0x37e35d(0x13d)](){const _0x3c5212=_0x37e35d,_0x36a77f=new _0x261f68(_0x3c5212(0x132));return _0x36a77f[_0x3c5212(0x122)](_0x3c5212(0x101))['to'](this,_0x3c5212(0x119),_0x378503=>_0x378503),_0x36a77f;}}function In(_0x195d0f){const _0x2bb095=_0x37e35d;if(!_0x195d0f)return _0x195d0f;if(_0x195d0f[_0x2bb095(0x113)]<=0x78)return _0x195d0f;const _0x4d8a96=_0x195d0f[_0x2bb095(0x111)](0x0,0x78),_0x509af8=_0x4d8a96[_0x2bb095(0x10d)]('\x20');return(_0x509af8>0x0?_0x4d8a96[_0x2bb095(0x111)](0x0,_0x509af8):_0x4d8a96)+'…';}
|