@ckeditor/ckeditor5-ai 47.7.5-alpha.0 → 47.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/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
|
-
const _0x4ba517=_0x4e60;(function(_0x479c60,_0x3a25d6){const _0x591e79=_0x4e60,_0x175f85=_0x479c60();while(!![]){try{const _0x978598=-parseInt(_0x591e79(0x183))/0x1+parseInt(_0x591e79(0x147))/0x2+-parseInt(_0x591e79(0x182))/0x3*(-parseInt(_0x591e79(0x185))/0x4)+-parseInt(_0x591e79(0x132))/0x5*(-parseInt(_0x591e79(0x16d))/0x6)+-parseInt(_0x591e79(0x133))/0x7*(-parseInt(_0x591e79(0x12e))/0x8)+parseInt(_0x591e79(0x18a))/0x9+-parseInt(_0x591e79(0x149))/0xa;if(_0x978598===_0x3a25d6)break;else _0x175f85['push'](_0x175f85['shift']());}catch(_0x444d11){_0x175f85['push'](_0x175f85['shift']());}}}(_0x5b75,0xdac2f));import{CKEditorError as _0x2db455,EmitterMixin as _0x51919b,logWarning as _0xef999b}from'ckeditor5/src/utils.js';function _0x4e60(_0x33fe07,_0x1c6fd1){const _0x5b75d0=_0x5b75();return _0x4e60=function(_0x4e60d0,_0x532287){_0x4e60d0=_0x4e60d0-0x12a;let _0x319690=_0x5b75d0[_0x4e60d0];return _0x319690;},_0x4e60(_0x33fe07,_0x1c6fd1);}import{AI_MODEL_EVENT_NAMES as _0x4ad885}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4c8803,AI_CONTEXT_MODEL_EVENT_NAMES as _0x23cbb0}from'./aichatcontext.js';function _0x5b75(){const _0x5a7114=['interactions','toggleWebSearch','type','setWebSearch','addUrlToContext','updateCurrentDocumentInContext','createInteraction','chatCapabilities','isStarted','destroy','text','getAvailableModels','lastInteraction','chatContext','mcp-tool-result','3HeitSG','1087980FVnCVW','toolName','5801996JiPJUR','group','isAvailable','stop','reset','15126561gGhvEk','prompt','_extractContextItems','removeFromContext','load','loadSourceResources','connector','sources','delegate','ai-chat-conversation-set-model-not-available','options','conversationInitialized','updateCurrentDocument','currentInteraction','addSelectionToContext','setConversationTitle','title','getCurrentDocumentContext','handleUserInteraction','isFromHistory','getModel','user','getDocumentContext','fetchConversation','attributes','model','toLowerCase','chatModels','addCurrentDocumentToContext','getConversation','ai-chat-handle-user-interaction-start-failed','error','getEditor','capabilities','8qLlTsg','contextItems','isSelectionInContext','stack','6651030QDMMYP','6787424TwdKos','conversationId','ai-chat-conversation-init-from-id-failed','role','content','isCurrentDocumentInConversation','hasOwn','indexOf','ai-chat-conversation-start-no-model-selected','isCurrentDocumentInContext','getCapabilitiesConfig','start','getMessages','length','setModel','ai-chat-conversation-already-started','getInteraction','ai-chat-handle-user-conversation-not-initialized','setReasoning','populateFromMessage','3400600ryrSbE','push','51473390EGDURR','addResourceToContext','fire','addToConversationContext','modification','createReply','assistant','appendContent','removeSelectionFromContext','code','fetchConversationMessages','getPendingContextItems','startConversation','splice','message','addToolItemToContext','interactionCreated','selectedModelId','_processMessagesToInteractions','modelSelected','webSearch','toggleReasoning','ai-chat-conversation-set-model-null','parse','find','init','ai-chat-handle-user-interaction-already-in-progress','url','currentReply','_handleToolResultData','ai-chat-conversation-init-failed','getAll','addFilesToContext','set','get','removeInteraction','6DZeBYg','sessionId','ai-chat-conversation-start-failed','conversationStarted','selectedModel','reasoning'];_0x5b75=function(){return _0x5a7114;};return _0x5b75();}import{AICapabilities as _0x36a27e,CAPABILITIES_MODEL_EVENT_NAMES as _0x874463}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x34771a}from'./aichatinteraction.js';import{errorsMap as _0x1edb8f}from'../../errorsmap.js';export class AIChatConversation extends _0x51919b(){['id'];[_0x4ba517(0x17b)]=!0x1;[_0x4ba517(0x19d)];[_0x4ba517(0x173)]=[];[_0x4ba517(0x197)];[_0x4ba517(0x171)];[_0x4ba517(0x190)];[_0x4ba517(0x194)];constructor(_0x156850){const _0x4748be=_0x4ba517;super(),this[_0x4748be(0x194)]=_0x156850,this[_0x4748be(0x190)]=_0x156850[_0x4748be(0x190)],this[_0x4748be(0x1a5)]=_0x156850[_0x4748be(0x1a5)],this['id']=_0x156850[_0x4748be(0x134)],this[_0x4748be(0x19d)]=_0x156850[_0x4748be(0x19d)];}async[_0x4ba517(0x162)](_0x48797a){const _0x3de4b8=_0x4ba517;try{this[_0x3de4b8(0x180)]=new _0x4c8803({'connector':this[_0x3de4b8(0x190)],'config':_0x48797a,'ownerId':this['id']}),this[_0x3de4b8(0x180)][_0x3de4b8(0x192)](..._0x23cbb0)['to'](this),this[_0x3de4b8(0x180)][_0x3de4b8(0x162)](),this[_0x3de4b8(0x17a)]=new _0x36a27e(),this[_0x3de4b8(0x17a)][_0x3de4b8(0x192)](..._0x874463)['to'](this),this[_0x3de4b8(0x17a)][_0x3de4b8(0x162)]();const _0x118405=await this[_0x3de4b8(0x1a5)][_0x3de4b8(0x17e)]();this[_0x3de4b8(0x14b)](_0x3de4b8(0x195),{'availableModels':_0x118405});const _0x387225=await this[_0x3de4b8(0x1a5)][_0x3de4b8(0x19e)](this[_0x3de4b8(0x194)][_0x3de4b8(0x15a)]);_0x387225&&await this[_0x3de4b8(0x141)](_0x387225);}catch(_0x53df19){const _0x2fbb34=new _0x2db455(_0x3de4b8(0x167),null,{'message':_0x53df19[_0x3de4b8(0x157)]||_0x53df19});_0x2fbb34[_0x3de4b8(0x131)]=_0x53df19[_0x3de4b8(0x131)],this[_0x3de4b8(0x14b)](_0x3de4b8(0x12b),{'error':_0x2fbb34});}}async[_0x4ba517(0x13e)](){const _0x3eac2d=_0x4ba517;if(this[_0x3eac2d(0x17b)])throw new _0x2db455(_0x3eac2d(0x142),null,{'conversation':this});if(!this[_0x3eac2d(0x171)])throw new _0x2db455(_0x3eac2d(0x13b),null,{'conversation':this});try{const {id:_0x36b901}=await this[_0x3eac2d(0x190)][_0x3eac2d(0x155)](this['id'],this[_0x3eac2d(0x194)][_0x3eac2d(0x186)])[_0x3eac2d(0x1a7)]();this['id']=_0x36b901,this[_0x3eac2d(0x17b)]=!0x0,this[_0x3eac2d(0x14b)](_0x3eac2d(0x170),{'conversationId':this['id'],'selectedModel':this[_0x3eac2d(0x171)]});}catch(_0x2a8a78){const _0x41c920=new _0x2db455(_0x3eac2d(0x16f),null,{'message':_0x2a8a78[_0x3eac2d(0x157)],'conversationId':this['id']});throw _0x41c920[_0x3eac2d(0x131)]=_0x2a8a78[_0x3eac2d(0x131)],this[_0x3eac2d(0x14b)](_0x3eac2d(0x12b),{'error':_0x41c920}),_0x41c920;}}async[_0x4ba517(0x18e)](_0x4cec08,_0x2a4792){const _0x3841c3=_0x4ba517;try{const _0x988b0e=await this[_0x3841c3(0x190)][_0x3841c3(0x1a1)](_0x4cec08)[_0x3841c3(0x1a7)](),_0x459956=await this[_0x3841c3(0x190)][_0x3841c3(0x153)](_0x4cec08)[_0x3841c3(0x13f)](),_0x27ff33=_0x459956[0x0][_0x3841c3(0x1a3)];this[_0x3841c3(0x17b)]=!0x0,this['id']=_0x988b0e['id'],_0x3841c3(0x19a)in _0x988b0e?this[_0x3841c3(0x14b)](_0x3841c3(0x199),_0x988b0e[_0x3841c3(0x19a)],!0x0):this[_0x3841c3(0x14b)](_0x3841c3(0x199),'',!0x0);const _0x588828=(await this[_0x3841c3(0x1a5)][_0x3841c3(0x168)]())[_0x3841c3(0x161)](_0x79de7e=>_0x79de7e['id'][_0x3841c3(0x1a4)]()===_0x27ff33[_0x3841c3(0x1a4)]());return this[_0x3841c3(0x171)]=_0x588828,this[_0x3841c3(0x14b)](_0x3841c3(0x15c),{'selectedModel':_0x588828,'isDisabled':!0x0}),await this[_0x3841c3(0x15b)](_0x459956,_0x2a4792,_0x27ff33),this[_0x3841c3(0x197)]=void 0x0,this;}catch(_0x4475d9){const _0x2d6735=new _0x2db455(_0x3841c3(0x135),null,{'message':_0x4475d9[_0x3841c3(0x157)],'conversationId':_0x4cec08});throw _0x2d6735[_0x3841c3(0x131)]=_0x4475d9[_0x3841c3(0x131)],this[_0x3841c3(0x14b)](_0x3841c3(0x12b),{'error':_0x2d6735}),_0x2d6735;}}async[_0x4ba517(0x15b)](_0x5e431a,_0x4ea5e6,_0x1f8488){const _0x1614ad=_0x4ba517;let _0x212655;for(const _0x600c55 of _0x5e431a)if(_0x1614ad(0x19f)===_0x600c55[_0x1614ad(0x136)]){const _0x488af5=await this[_0x1614ad(0x18c)](_0x600c55),_0x51a700={'isReasoningEnabled':Object[_0x1614ad(0x139)](_0x600c55[_0x1614ad(0x12d)],_0x1614ad(0x172)),'isWebSearchEnabled':Object[_0x1614ad(0x139)](_0x600c55[_0x1614ad(0x12d)],_0x1614ad(0x15d))};_0x212655=this[_0x1614ad(0x179)]({'userMessage':_0x600c55[_0x1614ad(0x18b)],'contextItems':_0x488af5,'capabilities':_0x51a700,'modelId':_0x1f8488,'attributes':_0x600c55[_0x1614ad(0x1a2)]}),this[_0x1614ad(0x197)]=_0x212655,this[_0x1614ad(0x180)][_0x1614ad(0x14c)](this[_0x1614ad(0x197)][_0x1614ad(0x12f)]);}else{if(_0x1614ad(0x14f)===_0x600c55[_0x1614ad(0x136)]&&_0x212655){const _0x3f6086=[];for(const _0x24030e of _0x600c55[_0x1614ad(0x137)])switch(_0x24030e[_0x1614ad(0x175)]){case _0x1614ad(0x17d):case _0x1614ad(0x14d):{const _0x57c069=_0x212655[_0x1614ad(0x1a0)]()?.[_0x1614ad(0x16e)]!==_0x4ea5e6;_0x212655[_0x1614ad(0x165)]=_0x212655[_0x1614ad(0x14e)]({'type':_0x24030e[_0x1614ad(0x175)],'isDone':!0x0,'interactionId':_0x212655['id'],'areActionsDisabled':_0x57c069}),_0x212655[_0x1614ad(0x165)][_0x1614ad(0x150)](_0x24030e[_0x1614ad(0x137)]),_0x3f6086[_0x1614ad(0x140)]>0x0&&(_0x212655[_0x1614ad(0x165)][_0x1614ad(0x191)]=_0x3f6086[_0x1614ad(0x156)](0x0));break;}case _0x1614ad(0x164):_0x3f6086[_0x1614ad(0x148)](_0x24030e);break;case _0x1614ad(0x181):{const {data:_0x32625b,attributes:_0x3499bc}=JSON[_0x1614ad(0x160)](_0x24030e[_0x1614ad(0x137)]);_0x212655[_0x1614ad(0x166)]({'toolName':_0x24030e[_0x1614ad(0x184)],'data':_0x32625b,'attributes':_0x3499bc});break;}}}}}async[_0x4ba517(0x18c)](_0x21b7b6){const _0x1e0820=_0x4ba517,_0x4a2611=new Map();if(!_0x21b7b6[_0x1e0820(0x137)])return _0x4a2611;for(const _0x4887b8 of _0x21b7b6[_0x1e0820(0x137)]){const _0x10b932=await this[_0x1e0820(0x180)][_0x1e0820(0x146)](_0x4887b8);_0x10b932&&_0x4a2611[_0x1e0820(0x16a)](_0x10b932['id'],_0x10b932);}return _0x4a2611;}async[_0x4ba517(0x19c)]({userMessage:_0x48b320,attributes:_0x4ec5b1}){const _0x5ff06=_0x4ba517;if(!this[_0x5ff06(0x17b)])throw new _0x2db455(_0x5ff06(0x144),null,{'conversation':this});if(this[_0x5ff06(0x197)])throw new _0x2db455(_0x5ff06(0x163),null,{'conversation':this});try{const _0x172529=this[_0x5ff06(0x180)][_0x5ff06(0x154)](),_0x8b0292=this[_0x5ff06(0x17a)][_0x5ff06(0x13d)](),_0x4d81d2=this[_0x5ff06(0x171)]['id'];this[_0x5ff06(0x197)]=this[_0x5ff06(0x179)]({'userMessage':_0x48b320,'contextItems':_0x172529,'capabilities':_0x8b0292,'modelId':_0x4d81d2,'attributes':_0x4ec5b1}),await this[_0x5ff06(0x197)][_0x5ff06(0x13e)](),this[_0x5ff06(0x180)][_0x5ff06(0x14c)](this[_0x5ff06(0x197)][_0x5ff06(0x12f)]);}catch(_0x6c4c32){if(_0x6c4c32 instanceof _0x2db455)this[_0x5ff06(0x14b)](_0x5ff06(0x12b),{'interactionId':this[_0x5ff06(0x197)]?this[_0x5ff06(0x197)]['id']:void 0x0,'error':_0x6c4c32});else{const _0x4f1606=_0x1edb8f[_0x5ff06(0x16b)](_0x6c4c32[_0x5ff06(0x152)])||_0x5ff06(0x12a);this[_0x5ff06(0x14b)](_0x5ff06(0x12b),{'interactionId':this[_0x5ff06(0x197)]?this[_0x5ff06(0x197)]['id']:void 0x0,'error':new _0x2db455(_0x4f1606,null,{'error':_0x6c4c32})});}}finally{this[_0x5ff06(0x197)]?.[_0x5ff06(0x188)](),this[_0x5ff06(0x197)]=void 0x0;}}[_0x4ba517(0x179)]({userMessage:_0x354845,contextItems:_0x24fa47,capabilities:_0x33d141,modelId:_0x8f96bf,attributes:_0x164f2f}){const _0x16a4c0=_0x4ba517,_0x40742c=new _0x34771a({'userMessage':_0x354845,'contextItems':_0x24fa47,'capabilities':_0x33d141,'conversationId':this['id'],'connector':this[_0x16a4c0(0x190)],'editor':this[_0x16a4c0(0x194)][_0x16a4c0(0x12c)]&&this[_0x16a4c0(0x194)][_0x16a4c0(0x12c)](),'model':_0x8f96bf,'attributes':_0x164f2f});return _0x40742c[_0x16a4c0(0x192)](..._0x4ad885)['to'](this),this[_0x16a4c0(0x173)][_0x16a4c0(0x148)](_0x40742c),this[_0x16a4c0(0x14b)](_0x16a4c0(0x159),_0x40742c),_0x40742c;}[_0x4ba517(0x143)](_0x369eb6){const _0x2b53af=_0x4ba517;return this[_0x2b53af(0x173)][_0x2b53af(0x161)](_0xc24c98=>_0xc24c98['id']===_0x369eb6);}[_0x4ba517(0x16c)](_0x1ed649){const _0x4210ca=_0x4ba517,_0x2b82ab=this[_0x4210ca(0x143)](_0x1ed649);_0x2b82ab&&(_0x2b82ab[_0x4210ca(0x17c)](),this[_0x4210ca(0x173)][_0x4210ca(0x156)](this[_0x4210ca(0x173)][_0x4210ca(0x13a)](_0x2b82ab),0x1));}get[_0x4ba517(0x17f)](){const _0x328a49=_0x4ba517;return this[_0x328a49(0x173)][this[_0x328a49(0x173)][_0x328a49(0x140)]-0x1];}[_0x4ba517(0x1a6)](_0x432e7a){const _0x5dd16d=_0x4ba517;this[_0x5dd16d(0x180)][_0x5dd16d(0x1a6)](_0x432e7a);}async[_0x4ba517(0x178)]({content:_0x13d0a6,version:_0x1d8a52,sessionId:_0x1a6372,selections:_0x190afb}){const _0x223b61=_0x4ba517;await this[_0x223b61(0x180)][_0x223b61(0x196)](_0x13d0a6,_0x1d8a52,_0x1a6372,_0x190afb);}[_0x4ba517(0x19b)](){const _0x47e2cf=_0x4ba517;return this[_0x47e2cf(0x197)]?.[_0x47e2cf(0x1a0)]()?.[_0x47e2cf(0x137)]||'';}[_0x4ba517(0x198)](_0x4ab6e5){const _0x1d962b=_0x4ba517;this[_0x1d962b(0x180)][_0x1d962b(0x198)](_0x4ab6e5);}[_0x4ba517(0x151)](){const _0xb61087=_0x4ba517;this[_0xb61087(0x180)][_0xb61087(0x151)]();}[_0x4ba517(0x169)](_0x13a099){const _0x448bca=_0x4ba517;this[_0x448bca(0x180)][_0x448bca(0x169)](_0x13a099);}[_0x4ba517(0x177)](_0x5aacc8){const _0x2c58d8=_0x4ba517;this[_0x2c58d8(0x180)][_0x2c58d8(0x177)](_0x5aacc8);}[_0x4ba517(0x158)](_0x244e0a){const _0x58a990=_0x4ba517;this[_0x58a990(0x180)][_0x58a990(0x158)](_0x244e0a);}[_0x4ba517(0x14a)](_0x447cd2,_0x301535){const _0x3b64b5=_0x4ba517;this[_0x3b64b5(0x180)][_0x3b64b5(0x14a)](_0x447cd2,_0x301535);}[_0x4ba517(0x18f)](_0x50e35c,_0x42688b,_0x110035){const _0x273308=_0x4ba517;return this[_0x273308(0x180)][_0x273308(0x18f)](_0x50e35c,_0x42688b,_0x110035);}[_0x4ba517(0x18d)](_0x33d8cf){const _0x4891b7=_0x4ba517;this[_0x4891b7(0x180)][_0x4891b7(0x18d)](_0x33d8cf);}[_0x4ba517(0x176)](_0x492e98){const _0x64271a=_0x4ba517;this[_0x64271a(0x17a)][_0x64271a(0x176)](_0x492e98);}[_0x4ba517(0x174)](){const _0xf5236f=_0x4ba517;this[_0xf5236f(0x17a)][_0xf5236f(0x174)]();}[_0x4ba517(0x145)](_0x11056a){const _0x1a4a95=_0x4ba517;this[_0x1a4a95(0x17a)][_0x1a4a95(0x145)](_0x11056a);}[_0x4ba517(0x15e)](){const _0x2a0c3e=_0x4ba517;this[_0x2a0c3e(0x17a)][_0x2a0c3e(0x15e)]();}[_0x4ba517(0x13c)](){const _0xbb2a25=_0x4ba517;return this[_0xbb2a25(0x180)][_0xbb2a25(0x13c)]();}[_0x4ba517(0x138)](){const _0x50ee6e=_0x4ba517;return this[_0x50ee6e(0x180)][_0x50ee6e(0x138)]();}[_0x4ba517(0x130)](){const _0x2dc876=_0x4ba517;return this[_0x2dc876(0x180)][_0x2dc876(0x130)]();}async[_0x4ba517(0x141)](_0x5b6f3e){const _0x24deff=_0x4ba517;_0x5b6f3e?!0x1===await this[_0x24deff(0x1a5)][_0x24deff(0x187)](_0x5b6f3e)&&(_0xef999b(_0x24deff(0x193),{'conversation':this,'model':_0x5b6f3e}),_0x5b6f3e=(await this[_0x24deff(0x1a5)][_0x24deff(0x17e)]())[0x0]):(_0xef999b(_0x24deff(0x15f),{'conversation':this}),_0x5b6f3e=(await this[_0x24deff(0x1a5)][_0x24deff(0x17e)]())[0x0]),_0x5b6f3e['id']!==this[_0x24deff(0x171)]?.['id']&&(this[_0x24deff(0x171)]=_0x5b6f3e,this[_0x24deff(0x17a)][_0x24deff(0x189)](),this[_0x24deff(0x14b)](_0x24deff(0x15c),{'selectedModel':_0x5b6f3e}));}}
|
|
23
|
+
const _0xa82f8f=_0x13b0;(function(_0x1dee60,_0x20a2a6){const _0x754a65=_0x13b0,_0x39a092=_0x1dee60();while(!![]){try{const _0x2b0116=-parseInt(_0x754a65(0x13a))/0x1*(-parseInt(_0x754a65(0x153))/0x2)+parseInt(_0x754a65(0x107))/0x3+-parseInt(_0x754a65(0x131))/0x4*(parseInt(_0x754a65(0x129))/0x5)+-parseInt(_0x754a65(0x122))/0x6+parseInt(_0x754a65(0x144))/0x7*(-parseInt(_0x754a65(0x105))/0x8)+parseInt(_0x754a65(0x121))/0x9*(-parseInt(_0x754a65(0xda))/0xa)+parseInt(_0x754a65(0x13f))/0xb;if(_0x2b0116===_0x20a2a6)break;else _0x39a092['push'](_0x39a092['shift']());}catch(_0x218155){_0x39a092['push'](_0x39a092['shift']());}}}(_0x3df6,0xb49d6));import{CKEditorError as _0xd70891,EmitterMixin as _0x492e7c,logWarning as _0x2058fc}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x553ab7}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x9570f,AI_CONTEXT_MODEL_EVENT_NAMES as _0x4a81c1}from'./aichatcontext.js';import{AICapabilities as _0x1edd16,CAPABILITIES_MODEL_EVENT_NAMES as _0x1adece}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x3773d9}from'./aichatinteraction.js';import{errorsMap as _0x511481}from'../../errorsmap.js';function _0x3df6(){const _0x3c1436=['387259bctvDG','currentInteraction','mcp-tool-result','getDocumentContext','addFilesToContext','15070000CKTuez','ai-chat-conversation-set-model-not-available','_processMessagesToInteractions','ai-chat-conversation-start-no-model-selected','sources','264509YJePOJ','isCurrentDocumentInContext','getModel','find','updateCurrentDocument','setWebSearch','ai-chat-conversation-init-failed','text','addToConversationContext','toolName','attributes','createReply','removeFromContext','addUrlToContext','webSearch','6mDkRVk','toggleReasoning','setReasoning','message','addCurrentDocumentToContext','_handleToolResultData','25780pxXOFM','role','title','modelSelected','ai-chat-conversation-set-model-null','interactionCreated','fetchConversationMessages','fire','load','addResourceToContext','lastInteraction','code','setModel','loadSourceResources','_extractContextItems','chatCapabilities','ai-chat-handle-user-interaction-start-failed','connector','stop','isFromHistory','isStarted','ai-chat-handle-user-interaction-already-in-progress','sessionId','getPendingContextItems','getAvailableModels','handleUserInteraction','hasOwn','ai-chat-conversation-already-started','length','get','getInteraction','populateFromMessage','conversationInitialized','currentReply','contextItems','selectedModel','reasoning','conversationId','appendContent','isAvailable','toggleWebSearch','push','selectedModelId','56gKgrmh','options','733779TIreSn','error','modification','prompt','content','parse','getCapabilitiesConfig','getMessages','createInteraction','getConversation','destroy','type','addSelectionToContext','group','chatContext','ai-chat-conversation-start-failed','getAll','indexOf','user','ai-chat-conversation-init-from-id-failed','stack','delegate','capabilities','reset','addToolItemToContext','url','729SFujTf','1965534idiFEr','interactions','removeInteraction','assistant','ai-chat-handle-user-conversation-not-initialized','startConversation','updateCurrentDocumentInContext','10280XWxzaC','getCurrentDocumentContext','isCurrentDocumentInConversation','getEditor','chatModels','removeSelectionFromContext','fetchConversation','model','2404SwjFeZ','toLowerCase','setConversationTitle','conversationStarted','set','init','start','splice','isSelectionInContext'];_0x3df6=function(){return _0x3c1436;};return _0x3df6();}function _0x13b0(_0x339ed8,_0x8017d8){const _0x3df62c=_0x3df6();return _0x13b0=function(_0x13b0b0,_0x4a54c3){_0x13b0b0=_0x13b0b0-0xd8;let _0x4cdb3a=_0x3df62c[_0x13b0b0];return _0x4cdb3a;},_0x13b0(_0x339ed8,_0x8017d8);}export class AIChatConversation extends _0x492e7c(){['id'];[_0xa82f8f(0xee)]=!0x1;[_0xa82f8f(0xed)];[_0xa82f8f(0x123)]=[];[_0xa82f8f(0x13b)];[_0xa82f8f(0xfd)];[_0xa82f8f(0xeb)];[_0xa82f8f(0x106)];constructor(_0x4939bc){const _0x2bdc5e=_0xa82f8f;super(),this[_0x2bdc5e(0x106)]=_0x4939bc,this[_0x2bdc5e(0xeb)]=_0x4939bc[_0x2bdc5e(0xeb)],this[_0x2bdc5e(0x12d)]=_0x4939bc[_0x2bdc5e(0x12d)],this['id']=_0x4939bc[_0x2bdc5e(0xff)],this[_0x2bdc5e(0xed)]=_0x4939bc[_0x2bdc5e(0xed)];}async[_0xa82f8f(0x136)](_0x2b1ad2){const _0x59434f=_0xa82f8f;try{this[_0x59434f(0x115)]=new _0x9570f({'connector':this[_0x59434f(0xeb)],'config':_0x2b1ad2,'ownerId':this['id']}),this[_0x59434f(0x115)][_0x59434f(0x11c)](..._0x4a81c1)['to'](this),this[_0x59434f(0x115)][_0x59434f(0x136)](),this[_0x59434f(0xe9)]=new _0x1edd16(),this[_0x59434f(0xe9)][_0x59434f(0x11c)](..._0x1adece)['to'](this),this[_0x59434f(0xe9)][_0x59434f(0x136)]();const _0x56764d=await this[_0x59434f(0x12d)][_0x59434f(0xf2)]();this[_0x59434f(0xe1)](_0x59434f(0xfa),{'availableModels':_0x56764d});const _0x37cf0f=await this[_0x59434f(0x12d)][_0x59434f(0x146)](this[_0x59434f(0x106)][_0x59434f(0x104)]);_0x37cf0f&&await this[_0x59434f(0xe6)](_0x37cf0f);}catch(_0x318293){const _0x5d49b2=new _0xd70891(_0x59434f(0x14a),null,{'message':_0x318293[_0x59434f(0x156)]||_0x318293});_0x5d49b2[_0x59434f(0x11b)]=_0x318293[_0x59434f(0x11b)],this[_0x59434f(0xe1)](_0x59434f(0x108),{'error':_0x5d49b2});}}async[_0xa82f8f(0x137)](){const _0x336c1a=_0xa82f8f;if(this[_0x336c1a(0xee)])throw new _0xd70891(_0x336c1a(0xf5),null,{'conversation':this});if(!this[_0x336c1a(0xfd)])throw new _0xd70891(_0x336c1a(0x142),null,{'conversation':this});try{const {id:_0x540440}=await this[_0x336c1a(0xeb)][_0x336c1a(0x127)](this['id'],this[_0x336c1a(0x106)][_0x336c1a(0x114)])[_0x336c1a(0x110)]();this['id']=_0x540440,this[_0x336c1a(0xee)]=!0x0,this[_0x336c1a(0xe1)](_0x336c1a(0x134),{'conversationId':this['id'],'selectedModel':this[_0x336c1a(0xfd)]});}catch(_0x16d706){const _0x78380e=new _0xd70891(_0x336c1a(0x116),null,{'message':_0x16d706[_0x336c1a(0x156)],'conversationId':this['id']});throw _0x78380e[_0x336c1a(0x11b)]=_0x16d706[_0x336c1a(0x11b)],this[_0x336c1a(0xe1)](_0x336c1a(0x108),{'error':_0x78380e}),_0x78380e;}}async[_0xa82f8f(0xe2)](_0x2a6c8a,_0x18f2d0){const _0x220a8e=_0xa82f8f;try{const _0x24cb94=await this[_0x220a8e(0xeb)][_0x220a8e(0x12f)](_0x2a6c8a)[_0x220a8e(0x110)](),_0x119494=await this[_0x220a8e(0xeb)][_0x220a8e(0xe0)](_0x2a6c8a)[_0x220a8e(0x10e)](),_0x4dd079=_0x119494[0x0][_0x220a8e(0x130)];this[_0x220a8e(0xee)]=!0x0,this['id']=_0x24cb94['id'],_0x220a8e(0xdc)in _0x24cb94?this[_0x220a8e(0xe1)](_0x220a8e(0x133),_0x24cb94[_0x220a8e(0xdc)],!0x0):this[_0x220a8e(0xe1)](_0x220a8e(0x133),'',!0x0);const _0x24b0b6=(await this[_0x220a8e(0x12d)][_0x220a8e(0x117)]())[_0x220a8e(0x147)](_0x5c1b9f=>_0x5c1b9f['id'][_0x220a8e(0x132)]()===_0x4dd079[_0x220a8e(0x132)]());return this[_0x220a8e(0xfd)]=_0x24b0b6,this[_0x220a8e(0xe1)](_0x220a8e(0xdd),{'selectedModel':_0x24b0b6,'isDisabled':!0x0}),await this[_0x220a8e(0x141)](_0x119494,_0x18f2d0,_0x4dd079),this[_0x220a8e(0x13b)]=void 0x0,this;}catch(_0x2604e8){const _0x4ad768=new _0xd70891(_0x220a8e(0x11a),null,{'message':_0x2604e8[_0x220a8e(0x156)],'conversationId':_0x2a6c8a});throw _0x4ad768[_0x220a8e(0x11b)]=_0x2604e8[_0x220a8e(0x11b)],this[_0x220a8e(0xe1)](_0x220a8e(0x108),{'error':_0x4ad768}),_0x4ad768;}}async[_0xa82f8f(0x141)](_0x262b2d,_0x867bce,_0x4b4747){const _0x4ea035=_0xa82f8f;let _0x3065db;for(const _0x57a026 of _0x262b2d)if(_0x4ea035(0x119)===_0x57a026[_0x4ea035(0xdb)]){const _0x2feba2=await this[_0x4ea035(0xe8)](_0x57a026),_0x3e3727={'isReasoningEnabled':Object[_0x4ea035(0xf4)](_0x57a026[_0x4ea035(0x11d)],_0x4ea035(0xfe)),'isWebSearchEnabled':Object[_0x4ea035(0xf4)](_0x57a026[_0x4ea035(0x11d)],_0x4ea035(0x152))};_0x3065db=this[_0x4ea035(0x10f)]({'userMessage':_0x57a026[_0x4ea035(0x10a)],'contextItems':_0x2feba2,'capabilities':_0x3e3727,'modelId':_0x4b4747,'attributes':_0x57a026[_0x4ea035(0x14e)]}),this[_0x4ea035(0x13b)]=_0x3065db,this[_0x4ea035(0x115)][_0x4ea035(0x14c)](this[_0x4ea035(0x13b)][_0x4ea035(0xfc)]);}else{if(_0x4ea035(0x125)===_0x57a026[_0x4ea035(0xdb)]&&_0x3065db){const _0x283fd1=[];for(const _0x2c7173 of _0x57a026[_0x4ea035(0x10b)])switch(_0x2c7173[_0x4ea035(0x112)]){case _0x4ea035(0x14b):case _0x4ea035(0x109):{const _0x45175e=_0x3065db[_0x4ea035(0x13d)]()?.[_0x4ea035(0xf0)]!==_0x867bce;_0x3065db[_0x4ea035(0xfb)]=_0x3065db[_0x4ea035(0x14f)]({'type':_0x2c7173[_0x4ea035(0x112)],'isDone':!0x0,'interactionId':_0x3065db['id'],'areActionsDisabled':_0x45175e}),_0x3065db[_0x4ea035(0xfb)][_0x4ea035(0x100)](_0x2c7173[_0x4ea035(0x10b)]),_0x283fd1[_0x4ea035(0xf6)]>0x0&&(_0x3065db[_0x4ea035(0xfb)][_0x4ea035(0x143)]=_0x283fd1[_0x4ea035(0x138)](0x0));break;}case _0x4ea035(0x120):_0x283fd1[_0x4ea035(0x103)](_0x2c7173);break;case _0x4ea035(0x13c):{const {data:_0x2369ab,attributes:_0x493fee}=JSON[_0x4ea035(0x10c)](_0x2c7173[_0x4ea035(0x10b)]);_0x3065db[_0x4ea035(0xd9)]({'toolName':_0x2c7173[_0x4ea035(0x14d)],'data':_0x2369ab,'attributes':_0x493fee});break;}}}}}async[_0xa82f8f(0xe8)](_0x1d527d){const _0x193705=_0xa82f8f,_0x40bbd9=new Map();if(!_0x1d527d[_0x193705(0x10b)])return _0x40bbd9;for(const _0x3545b1 of _0x1d527d[_0x193705(0x10b)]){const _0x3a5488=await this[_0x193705(0x115)][_0x193705(0xf9)](_0x3545b1);_0x3a5488&&_0x40bbd9[_0x193705(0x135)](_0x3a5488['id'],_0x3a5488);}return _0x40bbd9;}async[_0xa82f8f(0xf3)]({userMessage:_0x5981ce,attributes:_0x32615}){const _0x111f73=_0xa82f8f;if(!this[_0x111f73(0xee)])throw new _0xd70891(_0x111f73(0x126),null,{'conversation':this});if(this[_0x111f73(0x13b)])throw new _0xd70891(_0x111f73(0xef),null,{'conversation':this});try{const _0x4846b1=this[_0x111f73(0x115)][_0x111f73(0xf1)](),_0x2e4ca3=this[_0x111f73(0xe9)][_0x111f73(0x10d)](),_0x5698c4=this[_0x111f73(0xfd)]['id'];this[_0x111f73(0x13b)]=this[_0x111f73(0x10f)]({'userMessage':_0x5981ce,'contextItems':_0x4846b1,'capabilities':_0x2e4ca3,'modelId':_0x5698c4,'attributes':_0x32615}),await this[_0x111f73(0x13b)][_0x111f73(0x137)](),this[_0x111f73(0x115)][_0x111f73(0x14c)](this[_0x111f73(0x13b)][_0x111f73(0xfc)]);}catch(_0x4478a5){if(_0x4478a5 instanceof _0xd70891)this[_0x111f73(0xe1)](_0x111f73(0x108),{'interactionId':this[_0x111f73(0x13b)]?this[_0x111f73(0x13b)]['id']:void 0x0,'error':_0x4478a5});else{const _0x4c88d7=_0x511481[_0x111f73(0xf7)](_0x4478a5[_0x111f73(0xe5)])||_0x111f73(0xea);this[_0x111f73(0xe1)](_0x111f73(0x108),{'interactionId':this[_0x111f73(0x13b)]?this[_0x111f73(0x13b)]['id']:void 0x0,'error':new _0xd70891(_0x4c88d7,null,{'error':_0x4478a5})});}}finally{this[_0x111f73(0x13b)]?.[_0x111f73(0xec)](),this[_0x111f73(0x13b)]=void 0x0;}}[_0xa82f8f(0x10f)]({userMessage:_0x53eab0,contextItems:_0x341c65,capabilities:_0x18de06,modelId:_0x2c0ca2,attributes:_0x5053a3}){const _0x732a0=_0xa82f8f,_0x1aead2=new _0x3773d9({'userMessage':_0x53eab0,'contextItems':_0x341c65,'capabilities':_0x18de06,'conversationId':this['id'],'connector':this[_0x732a0(0xeb)],'editor':this[_0x732a0(0x106)][_0x732a0(0x12c)]&&this[_0x732a0(0x106)][_0x732a0(0x12c)](),'model':_0x2c0ca2,'attributes':_0x5053a3});return _0x1aead2[_0x732a0(0x11c)](..._0x553ab7)['to'](this),this[_0x732a0(0x123)][_0x732a0(0x103)](_0x1aead2),this[_0x732a0(0xe1)](_0x732a0(0xdf),_0x1aead2),_0x1aead2;}[_0xa82f8f(0xf8)](_0x223b38){const _0x2d6a2e=_0xa82f8f;return this[_0x2d6a2e(0x123)][_0x2d6a2e(0x147)](_0x5a9a44=>_0x5a9a44['id']===_0x223b38);}[_0xa82f8f(0x124)](_0x4e5b67){const _0x41b293=_0xa82f8f,_0x3245bf=this[_0x41b293(0xf8)](_0x4e5b67);_0x3245bf&&(_0x3245bf[_0x41b293(0x111)](),this[_0x41b293(0x123)][_0x41b293(0x138)](this[_0x41b293(0x123)][_0x41b293(0x118)](_0x3245bf),0x1));}get[_0xa82f8f(0xe4)](){const _0x5bacf0=_0xa82f8f;return this[_0x5bacf0(0x123)][this[_0x5bacf0(0x123)][_0x5bacf0(0xf6)]-0x1];}[_0xa82f8f(0xd8)](_0x2407d2){const _0x1e067e=_0xa82f8f;this[_0x1e067e(0x115)][_0x1e067e(0xd8)](_0x2407d2);}async[_0xa82f8f(0x128)]({content:_0x5ae9bb,version:_0x4ba8e4,sessionId:_0x4dd859,selections:_0x33a336}){const _0x5a4bf2=_0xa82f8f;await this[_0x5a4bf2(0x115)][_0x5a4bf2(0x148)](_0x5ae9bb,_0x4ba8e4,_0x4dd859,_0x33a336);}[_0xa82f8f(0x12a)](){const _0x23f977=_0xa82f8f;return this[_0x23f977(0x13b)]?.[_0x23f977(0x13d)]()?.[_0x23f977(0x10b)]||'';}[_0xa82f8f(0x113)](_0x8af872){const _0x416d29=_0xa82f8f;this[_0x416d29(0x115)][_0x416d29(0x113)](_0x8af872);}[_0xa82f8f(0x12e)](){const _0x5ac4b0=_0xa82f8f;this[_0x5ac4b0(0x115)][_0x5ac4b0(0x12e)]();}[_0xa82f8f(0x13e)](_0x176069){const _0x1b18a6=_0xa82f8f;this[_0x1b18a6(0x115)][_0x1b18a6(0x13e)](_0x176069);}[_0xa82f8f(0x151)](_0x1d477a){const _0x259d29=_0xa82f8f;this[_0x259d29(0x115)][_0x259d29(0x151)](_0x1d477a);}[_0xa82f8f(0x11f)](_0x560164){const _0x3ff4d6=_0xa82f8f;this[_0x3ff4d6(0x115)][_0x3ff4d6(0x11f)](_0x560164);}[_0xa82f8f(0xe3)](_0x349f4f,_0x1c24f4){const _0x5414a6=_0xa82f8f;this[_0x5414a6(0x115)][_0x5414a6(0xe3)](_0x349f4f,_0x1c24f4);}[_0xa82f8f(0xe7)](_0x2ace2,_0x4581e0,_0x14d9cf){const _0x430c6e=_0xa82f8f;return this[_0x430c6e(0x115)][_0x430c6e(0xe7)](_0x2ace2,_0x4581e0,_0x14d9cf);}[_0xa82f8f(0x150)](_0x4e11df){const _0x574a4e=_0xa82f8f;this[_0x574a4e(0x115)][_0x574a4e(0x150)](_0x4e11df);}[_0xa82f8f(0x149)](_0x1f60cb){const _0x23c690=_0xa82f8f;this[_0x23c690(0xe9)][_0x23c690(0x149)](_0x1f60cb);}[_0xa82f8f(0x102)](){const _0x2237b1=_0xa82f8f;this[_0x2237b1(0xe9)][_0x2237b1(0x102)]();}[_0xa82f8f(0x155)](_0x4e5688){const _0x57064d=_0xa82f8f;this[_0x57064d(0xe9)][_0x57064d(0x155)](_0x4e5688);}[_0xa82f8f(0x154)](){const _0x56db4a=_0xa82f8f;this[_0x56db4a(0xe9)][_0x56db4a(0x154)]();}[_0xa82f8f(0x145)](){const _0x1b70d8=_0xa82f8f;return this[_0x1b70d8(0x115)][_0x1b70d8(0x145)]();}[_0xa82f8f(0x12b)](){const _0x2f7606=_0xa82f8f;return this[_0x2f7606(0x115)][_0x2f7606(0x12b)]();}[_0xa82f8f(0x139)](){const _0x13cf21=_0xa82f8f;return this[_0x13cf21(0x115)][_0x13cf21(0x139)]();}async[_0xa82f8f(0xe6)](_0x4ffa88){const _0xc190e8=_0xa82f8f;_0x4ffa88?!0x1===await this[_0xc190e8(0x12d)][_0xc190e8(0x101)](_0x4ffa88)&&(_0x2058fc(_0xc190e8(0x140),{'conversation':this,'model':_0x4ffa88}),_0x4ffa88=(await this[_0xc190e8(0x12d)][_0xc190e8(0xf2)]())[0x0]):(_0x2058fc(_0xc190e8(0xde),{'conversation':this}),_0x4ffa88=(await this[_0xc190e8(0x12d)][_0xc190e8(0xf2)]())[0x0]),_0x4ffa88['id']!==this[_0xc190e8(0xfd)]?.['id']&&(this[_0xc190e8(0xfd)]=_0x4ffa88,this[_0xc190e8(0xe9)][_0xc190e8(0x11e)](),this[_0xc190e8(0xe1)](_0xc190e8(0xdd),{'selectedModel':_0x4ffa88}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x447113=_0xbe81;function _0x254d(){var _0x37dbfb=['sendRequest','model','capabilities','8398AHQMUI','attributes','3798462XKwEaT','480VsswDT','146105YhCZAJ','connector','3675848pxbozE','mapContextItemsToRequestData','18896368WmjZwD','getDocumentContext','get','10155smNaJV','current-document','3395049gFfnAo','contextItems','userMessage','queryAssistant','conversationId','getCapabilitiesRequestData'];_0x254d=function(){return _0x37dbfb;};return _0x254d();}(function(_0x20e3b9,_0x19e119){var _0x14c0e2=_0xbe81,_0x1564c7=_0x20e3b9();while(!![]){try{var _0x1890da=-parseInt(_0x14c0e2(0x10c))/0x1+-parseInt(_0x14c0e2(0x10f))/0x2*(-parseInt(_0x14c0e2(0x101))/0x3)+parseInt(_0x14c0e2(0xfc))/0x4+parseInt(_0x14c0e2(0xfa))/0x5+parseInt(_0x14c0e2(0x10e))/0x6+parseInt(_0x14c0e2(0x103))/0x7+-parseInt(_0x14c0e2(0xfe))/0x8;if(_0x1890da===_0x19e119)break;else _0x1564c7['push'](_0x1564c7['shift']());}catch(_0x4b3505){_0x1564c7['push'](_0x1564c7['shift']());}}}(_0x254d,0x7c13f));import{AICapabilities as _0x35a3a7}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x317f3d}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x939e00}from'./aichatcontext.js';function _0xbe81(_0x32a469,_0x2eb899){var _0x254d06=_0x254d();return _0xbe81=function(_0xbe81bc,_0x242ef1){_0xbe81bc=_0xbe81bc-0xfa;var _0x1ca34c=_0x254d06[_0xbe81bc];return _0x1ca34c;},_0xbe81(_0x32a469,_0x2eb899);}export class AIChatInteraction extends _0x317f3d{[_0x447113(0x105)];[_0x447113(0x107)];[_0x447113(0x104)]=new Map();[_0x447113(0x10a)];[_0x447113(0x10d)];constructor(_0x3cd640){var _0x3e933c=_0x447113;super(_0x3cd640),this[_0x3e933c(0x107)]=_0x3cd640[_0x3e933c(0x107)],this[_0x3e933c(0x104)]=_0x3cd640[_0x3e933c(0x104)],this[_0x3e933c(0x10b)]=_0x3cd640[_0x3e933c(0x10b)],this[_0x3e933c(0x105)]=_0x3cd640[_0x3e933c(0x105)],this[_0x3e933c(0x10a)]=_0x3cd640[_0x3e933c(0x10a)],this[_0x3e933c(0x10d)]=_0x3cd640[_0x3e933c(0x10d)];}async[_0x447113(0x109)](){var _0x32c526=_0x447113;return this[_0x32c526(0xfb)][_0x32c526(0x106)]({'message':this[_0x32c526(0x105)],'conversationId':this[_0x32c526(0x107)],'parts':_0x939e00[_0x32c526(0xfd)](this[_0x32c526(0x104)]),'capabilities':_0x35a3a7[_0x32c526(0x108)](this[_0x32c526(0x10b)]),'model':this[_0x32c526(0x10a)],'attributes':this[_0x32c526(0x10d)]});}[_0x447113(0xff)](){var _0x5df89d=_0x447113;return this[_0x5df89d(0x104)][_0x5df89d(0x100)](_0x5df89d(0x102));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb05377=_0x10b9;(function(_0x5eb112,_0x38942d){const _0x103ec5=_0x10b9,_0x4ef8e1=_0x5eb112();while(!![]){try{const _0x24a9fa=-parseInt(_0x103ec5(0x190))/0x1+parseInt(_0x103ec5(0x19d))/0x2*(parseInt(_0x103ec5(0x183))/0x3)+-parseInt(_0x103ec5(0x1b8))/0x4*(parseInt(_0x103ec5(0x18b))/0x5)+-parseInt(_0x103ec5(0x184))/0x6+parseInt(_0x103ec5(0x1c9))/0x7+-parseInt(_0x103ec5(0x1ab))/0x8+-parseInt(_0x103ec5(0x1bb))/0x9*(-parseInt(_0x103ec5(0x187))/0xa);if(_0x24a9fa===_0x38942d)break;else _0x4ef8e1['push'](_0x4ef8e1['shift']());}catch(_0x49e407){_0x4ef8e1['push'](_0x4ef8e1['shift']());}}}(_0x3f1b,0x3ba78));import{FocusTracker as _0x28aaef,KeystrokeHandler as _0x5d50ef}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x5dc298}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x5a7e38}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x22c074}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';function _0x3f1b(){const _0x2c026b=['_config','_focusables','2249443khgXEK','fire','div','_isErrorVisible','ck-ai-chat-balloon-main_state_','updateContent','bind','change:_state','element','_keystrokes','focusFirst','_togglePartToolbarButtonsVisibility','delegate','isVisible','524073oTLdfT','2375562MevPwf','setState','previousButtonView','56830OyAjpt','_errorView','execute','showBlockingError','475035cOBkND','AI_BALLOON_NEXT_LABEL','availableActions','add','update','441428hYQpis','pending','_focusTracker','createCollection','setButtonsVisibility','tab','setTemplate','_state','showDiff','_streamableContentView','applySuggestion','has','full','4tYCWen','showError','isEnabled','focus','_partToolbarView','keepErrors','_createPreviousButtonView','render','isShowChangesOn','_miniToolbarView','ck-ai-chat-balloon__toolbar-container','nextButtonView','destroy','togglePartToolbarEnabled','1238856qSZuHe','focusLast','toggleShowChanges','rejectSuggestion','AI_BALLOON_PREVIOUS_LABEL','includes','hideError','listenTo','locale','showNext','insertSuggestion','_createNextButtonView','focusCycler','8vXmSou','toggleRotatorButtonsVisibility','ck-ai-chat-balloon-main','1197WSYYYK','_stateView','bindTemplate','children','toggleSuggestionDisplayMode','set','addMany','isTrackChangesOn','showPrevious','_toolbarContainerView','change:isTrackChangesOn','shift\x20+\x20tab'];_0x3f1b=function(){return _0x2c026b;};return _0x3f1b();}import{AIBalloonView as _0x4e17fb}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x60f147,FocusCycler as _0x237138,View as _0x48be16}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x1eca65}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x2454b1,IconChevronUp as _0x2395b1}from'ckeditor5/src/icons.js';function _0x10b9(_0x1a60d1,_0x1a9e5a){const _0x3f1bd3=_0x3f1b();return _0x10b9=function(_0x10b9cc,_0x309ad0){_0x10b9cc=_0x10b9cc-0x183;let _0x1faa60=_0x3f1bd3[_0x10b9cc];return _0x1faa60;},_0x10b9(_0x1a60d1,_0x1a9e5a);}import{getTranslation as _0x424e1e}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x4e17fb{[_0xb05377(0x1be)];[_0xb05377(0x1a8)];[_0xb05377(0x186)];[_0xb05377(0x1b7)];[_0xb05377(0x1c8)];[_0xb05377(0x192)];[_0xb05377(0x1d2)];[_0xb05377(0x1c7)];[_0xb05377(0x199)];[_0xb05377(0x1c4)];[_0xb05377(0x1a1)];[_0xb05377(0x1bc)];[_0xb05377(0x1a6)];constructor(_0x30c6a4,_0x840817){const _0x35482d=_0xb05377;super(_0x30c6a4);const _0x3967ff=this[_0x35482d(0x1bd)];this[_0x35482d(0x1c0)](_0x35482d(0x198),!0x1),this[_0x35482d(0x1c0)](_0x35482d(0x197),_0x35482d(0x191)),this[_0x35482d(0x192)]=new _0x28aaef(),this[_0x35482d(0x1d2)]=new _0x5d50ef(),this[_0x35482d(0x1c8)]=this[_0x35482d(0x193)](),this[_0x35482d(0x1b7)]=new _0x237138({'focusables':this[_0x35482d(0x1c8)],'focusTracker':this[_0x35482d(0x192)],'keystrokeHandler':this[_0x35482d(0x1d2)],'actions':{'focusPrevious':_0x35482d(0x1c6),'focusNext':_0x35482d(0x195)}}),this[_0x35482d(0x1c7)]=_0x840817,this[_0x35482d(0x1a8)]=this[_0x35482d(0x1b6)](),this[_0x35482d(0x186)]=this[_0x35482d(0x1a3)](),this[_0x35482d(0x199)]=new _0x5dc298(_0x30c6a4),this[_0x35482d(0x1a1)]=new _0x5a7e38(_0x30c6a4,_0x840817[_0x35482d(0x18d)]),this[_0x35482d(0x1a1)][_0x35482d(0x1d5)](_0x35482d(0x19a),_0x35482d(0x1b5),_0x35482d(0x1ae))['to'](this),this[_0x35482d(0x1d4)](_0x840817),this[_0x35482d(0x1bc)]=new _0x1eca65(_0x30c6a4),this[_0x35482d(0x1bc)][_0x35482d(0x1d6)]=!0x1,this[_0x35482d(0x1a6)]=new _0x22c074(_0x30c6a4,{'showChanges':_0x35482d(0x19c)}),this[_0x35482d(0x1a6)][_0x35482d(0x1cf)](_0x35482d(0x1a5))['to'](this,_0x35482d(0x198)),this[_0x35482d(0x1a6)]['on'](_0x35482d(0x1ad),()=>{const _0x2ced32=_0x35482d;this[_0x2ced32(0x1ca)](_0x2ced32(0x1bf));}),this[_0x35482d(0x1c4)]=new AIChatBalloonToolbarContainerView(_0x30c6a4,[this[_0x35482d(0x1a1)],this[_0x35482d(0x1bc)],this[_0x35482d(0x1a6)]]),this[_0x35482d(0x1be)]=this[_0x35482d(0x193)]([this[_0x35482d(0x199)],this[_0x35482d(0x1c4)]]),this['on'](_0x35482d(0x1d0),(_0x4eb068,_0x855fd4,_0x389ada,_0x3d45c9)=>{const _0x1a2edb=_0x35482d;let _0x2ca68c,_0x5ec3d1;_0x1a2edb(0x191)===_0x3d45c9?(_0x2ca68c=this[_0x1a2edb(0x1a1)],_0x5ec3d1=this[_0x1a2edb(0x1bc)]):(_0x2ca68c=this[_0x1a2edb(0x1bc)],_0x5ec3d1=this[_0x1a2edb(0x1a1)]),this[_0x1a2edb(0x1bc)][_0x1a2edb(0x185)](_0x389ada),_0x2ca68c[_0x1a2edb(0x1d6)]=!0x1,_0x5ec3d1[_0x1a2edb(0x1d6)]=!0x0;}),this[_0x35482d(0x196)]({'tag':_0x35482d(0x1cb),'attributes':{'class':['ck',_0x35482d(0x1ba),_0x3967ff['to'](_0x35482d(0x197),_0x197aeb=>_0x35482d(0x1cd)+_0x197aeb)]},'children':this[_0x35482d(0x1be)]}),this['on'](_0x35482d(0x1c5),()=>{const _0x3f27b1=_0x35482d;this[_0x3f27b1(0x1d4)](_0x840817);});}[_0xb05377(0x1a4)](){const _0x2eb84c=_0xb05377;super[_0x2eb84c(0x1a4)](),this[_0x2eb84c(0x1a8)][_0x2eb84c(0x1a4)](),this[_0x2eb84c(0x186)][_0x2eb84c(0x1a4)](),this[_0x2eb84c(0x192)][_0x2eb84c(0x18e)](this[_0x2eb84c(0x1d1)]),this[_0x2eb84c(0x192)][_0x2eb84c(0x18e)](this[_0x2eb84c(0x1a8)]),this[_0x2eb84c(0x192)][_0x2eb84c(0x18e)](this[_0x2eb84c(0x186)]),this[_0x2eb84c(0x192)][_0x2eb84c(0x18e)](this[_0x2eb84c(0x1a6)]),this[_0x2eb84c(0x192)][_0x2eb84c(0x18e)](this[_0x2eb84c(0x1a1)]),this[_0x2eb84c(0x1d2)][_0x2eb84c(0x1b2)](this[_0x2eb84c(0x1d1)]),this[_0x2eb84c(0x1d2)][_0x2eb84c(0x1b2)](this[_0x2eb84c(0x1a8)][_0x2eb84c(0x1d1)]),this[_0x2eb84c(0x1d2)][_0x2eb84c(0x1b2)](this[_0x2eb84c(0x186)][_0x2eb84c(0x1d1)]),this[_0x2eb84c(0x1c8)][_0x2eb84c(0x1c1)]([this[_0x2eb84c(0x1a8)],this[_0x2eb84c(0x186)],this[_0x2eb84c(0x1a1)],this[_0x2eb84c(0x1a6)]]);}[_0xb05377(0x1a9)](){const _0x197b78=_0xb05377;super[_0x197b78(0x1a9)](),this[_0x197b78(0x186)][_0x197b78(0x1a9)](),this[_0x197b78(0x1a8)][_0x197b78(0x1a9)]();}[_0xb05377(0x1a0)](){const _0x246560=_0xb05377;this[_0x246560(0x1b7)][_0x246560(0x1d3)]();}[_0xb05377(0x1ac)](){const _0x395145=_0xb05377;this[_0x395145(0x1b7)][_0x395145(0x1ac)]();}async[_0xb05377(0x1ce)](_0xd9779d){const _0x52104c=_0xb05377;_0xd9779d?.[_0x52104c(0x1a2)]||this[_0x52104c(0x1b1)](),await this[_0x52104c(0x199)][_0x52104c(0x18f)](_0xd9779d);}[_0xb05377(0x185)](_0x3d09cd){const _0x5ba7a8=_0xb05377;this[_0x5ba7a8(0x197)]=_0x3d09cd;}[_0xb05377(0x19e)](_0x37fcfd){const _0x2fbc96=_0xb05377;super[_0x2fbc96(0x19e)](_0x37fcfd),this[_0x2fbc96(0x1be)][_0x2fbc96(0x19b)](this[_0x2fbc96(0x188)])||this[_0x2fbc96(0x1be)][_0x2fbc96(0x18e)](this[_0x2fbc96(0x188)],0x0);}[_0xb05377(0x1b1)](){const _0x2ab877=_0xb05377;this[_0x2ab877(0x1cc)]&&(super[_0x2ab877(0x1b1)](),this[_0x2ab877(0x1aa)](!0x0));}[_0xb05377(0x18a)](_0x18f24f){const _0x505f76=_0xb05377;super[_0x505f76(0x18a)](_0x18f24f),this[_0x505f76(0x1aa)](!0x1);}[_0xb05377(0x1b9)](_0x4f374e){const _0x2220cd=_0xb05377;this[_0x2220cd(0x1a8)][_0x2220cd(0x1d6)]=this[_0x2220cd(0x186)][_0x2220cd(0x1d6)]=_0x4f374e;}[_0xb05377(0x1aa)](_0x84926){const _0x50a913=_0xb05377;this[_0x50a913(0x1a1)][_0x50a913(0x19f)]=_0x84926;}[_0xb05377(0x1d4)]({showApplyButton:_0x127ea0,showSuggestButton:_0x10887b}){const _0x37f225=_0xb05377;_0x127ea0=_0x127ea0&&!this[_0x37f225(0x1c2)]&&this[_0x37f225(0x1c7)][_0x37f225(0x18d)][_0x37f225(0x1b0)](_0x37f225(0x19a)),_0x10887b=_0x10887b&&this[_0x37f225(0x1c7)][_0x37f225(0x18d)][_0x37f225(0x1b0)](_0x37f225(0x1b5)),this[_0x37f225(0x1a1)][_0x37f225(0x194)]({'showApplyButton':_0x127ea0,'showSuggestButton':_0x10887b});}[_0xb05377(0x1b6)](){const _0x3d66f6=_0xb05377,_0x5b461f=new _0x60f147(this[_0x3d66f6(0x1b3)]);return _0x5b461f[_0x3d66f6(0x1c0)]({'icon':_0x2454b1,'label':_0x424e1e(this[_0x3d66f6(0x1b3)],_0x3d66f6(0x18c)),'isVisible':!0x0}),_0x5b461f['on'](_0x3d66f6(0x189),()=>{const _0x2d56ad=_0x3d66f6;this[_0x2d56ad(0x1ca)](_0x2d56ad(0x1b4));}),_0x5b461f;}[_0xb05377(0x1a3)](){const _0x1e5386=_0xb05377,_0x2f838d=new _0x60f147(this[_0x1e5386(0x1b3)]);return _0x2f838d[_0x1e5386(0x1c0)]({'icon':_0x2395b1,'label':_0x424e1e(this[_0x1e5386(0x1b3)],_0x1e5386(0x1af)),'isVisible':!0x0}),_0x2f838d['on'](_0x1e5386(0x189),()=>{const _0x2922e3=_0x1e5386;this[_0x2922e3(0x1ca)](_0x2922e3(0x1c3));}),_0x2f838d;}}class AIChatBalloonToolbarContainerView extends _0x48be16{constructor(_0x78c5ae,_0x32d2e2){const _0x5e8ffa=_0xb05377;super(_0x78c5ae),this[_0x5e8ffa(0x196)]({'tag':_0x5e8ffa(0x1cb),'attributes':{'class':[_0x5e8ffa(0x1a7)]},'children':_0x32d2e2});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9a288a=_0x391f;(function(_0x44f71b,_0x32c2d1){const _0x34eaef=_0x391f,_0x4fc8ef=_0x44f71b();while(!![]){try{const _0x343bbe=parseInt(_0x34eaef(0xd3))/0x1*(-parseInt(_0x34eaef(0xdd))/0x2)+parseInt(_0x34eaef(0xd9))/0x3*(parseInt(_0x34eaef(0xb5))/0x4)+-parseInt(_0x34eaef(0x9f))/0x5*(-parseInt(_0x34eaef(0xaa))/0x6)+-parseInt(_0x34eaef(0x97))/0x7*(-parseInt(_0x34eaef(0xb7))/0x8)+-parseInt(_0x34eaef(0xb3))/0x9+parseInt(_0x34eaef(0xb4))/0xa+parseInt(_0x34eaef(0xbc))/0xb*(-parseInt(_0x34eaef(0xbf))/0xc);if(_0x343bbe===_0x32c2d1)break;else _0x4fc8ef['push'](_0x4fc8ef['shift']());}catch(_0x5c1bbb){_0x4fc8ef['push'](_0x4fc8ef['shift']());}}}(_0x1468,0xf1a1c));import{ButtonView as _0x5043a1,clickOutsideHandler as _0x599a90,View as _0x4e5b3c}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x2685d7}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0xf3541c}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x53f418,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x533e63}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x1092ed}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x4d3f92}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';function _0x391f(_0x29e130,_0x4da3ca){const _0x1468f0=_0x1468();return _0x391f=function(_0x391fd1,_0x161e45){_0x391fd1=_0x391fd1-0x8f;let _0x1d76bb=_0x1468f0[_0x391fd1];return _0x1d76bb;},_0x391f(_0x29e130,_0x4da3ca);}import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';function _0x1468(){const _0x49fcc9=['61984ICJzYL','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','change:isLoading','clearConversationContextUI','_createLoaderView','66EGQtCk','div','setAddContextOptions','477672autuuz','form','ck-ai-chat-controls','setPromptInputValue','bindTemplate','low','ck-ai-chat-controls-disabled','fieldView','clearPendingContextUI','setTemplate','_createPromptCapabilitiesView','focus','value','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','sendUserMessage','_contextPanelView','ck-hidden','updateResourceState','_handlePromptInputFocus','selectModel','157HuNuVA','setModel','queryView','removeContextItem','setWebSearch','disableModelSelector','1138461tpAwjd','locale','addContextItem','setPlaceholderText','22048Tfqhrl','ck-ai-chat-controls-model-unavailable-message','delegate','startConversation','_createPromptInputView','_loaderView','set','ck-ai-chat-controls__start-new-chat-button','isDisabled','closeSourceResourceBalloon','element','_createContextPanelView','setConversationContext','1337OagkzV','setIsUploadInProgress','_modelUnavailableMessageView','setContextItemLoading','toggleReasoning','isModelAvailable','_promptInputView','setModelList','1855MQRdLH','clearCurrentContextItems','setReasoning','populateSourceResourceBalloon','bodyCollection','contextResourcesSearchInputVisibleFrom','clearConversationContextItems','isLoading','_promptCapabilitiesView','enableModelSelector','toggleWebSearch','20022YdVAkk','focusPromptInput','resetMessageInput','setInputPlaceholder','abortPromptStream','reset','_shouldRestorePromptInputFocus','addContextButtonView','execute','16051914QCepBZ','12660050joxZOJ','8AKGDUg','_createModelUnavailableMessageView'];_0x1468=function(){return _0x49fcc9;};return _0x1468();}import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x4e5b3c{[_0x9a288a(0xce)];[_0x9a288a(0x9d)];[_0x9a288a(0xa7)];[_0x9a288a(0x8f)];[_0x9a288a(0x99)];[_0x9a288a(0xb0)];constructor(_0x4186e4,_0x321091){const _0xf73863=_0x9a288a;super(_0x4186e4),this[_0xf73863(0xce)]=this[_0xf73863(0x95)](_0x4186e4,{'bodyCollection':_0x321091[_0xf73863(0xa3)],'searchInputVisibleFrom':_0x321091[_0xf73863(0xa4)]}),this[_0xf73863(0x9d)]=this[_0xf73863(0xe1)](_0x4186e4),this[_0xf73863(0xa7)]=this[_0xf73863(0xc9)](_0x4186e4),this[_0xf73863(0x8f)]=this[_0xf73863(0xbb)](_0x4186e4),this[_0xf73863(0x99)]=this[_0xf73863(0xb6)](_0x4186e4),this[_0xf73863(0xb0)]=!0x1,this[_0xf73863(0x9d)][_0xf73863(0xdf)](_0xf73863(0xcd))['to'](this),this[_0xf73863(0x8f)][_0xf73863(0xdf)](_0xf73863(0xae))['to'](this),this[_0xf73863(0xa7)][_0xf73863(0xdf)](_0xf73863(0xa9))['to'](this),this[_0xf73863(0xa7)][_0xf73863(0xdf)](_0xf73863(0x9b))['to'](this),this[_0xf73863(0xa7)][_0xf73863(0xdf)](_0xf73863(0xd2))['to'](this),this[_0xf73863(0xce)][_0xf73863(0xdf)](..._0x533e63)['to'](this),this[_0xf73863(0x90)](_0xf73863(0x9c),!0x0),this[_0xf73863(0x90)](_0xf73863(0x92),!0x1);const _0x8cd70e=this[_0xf73863(0xc3)];this[_0xf73863(0xc8)]({'tag':_0xf73863(0xc0),'attributes':{'class':['ck',_0xf73863(0xc1),_0x8cd70e['if'](_0xf73863(0x92),_0xf73863(0xc5))]},'children':[{'tag':_0xf73863(0xbd),'attributes':{'class':[_0x8cd70e['if'](_0xf73863(0xa6),_0xf73863(0xcf),_0x37f6a5=>_0x37f6a5||!this[_0xf73863(0x9c)]),_0x8cd70e['if'](_0xf73863(0x9c),_0xf73863(0xcf),_0x32a2b8=>!_0x32a2b8||this[_0xf73863(0xa6)])]},'children':[this[_0xf73863(0xce)],this[_0xf73863(0x9d)],this[_0xf73863(0xa7)]]},{'tag':_0xf73863(0xbd),'attributes':{'class':[_0x8cd70e['if'](_0xf73863(0xa6),_0xf73863(0xcf),_0x5eccc8=>!_0x5eccc8)]},'children':[this[_0xf73863(0x8f)]]},{'tag':_0xf73863(0xbd),'attributes':{'class':[_0x8cd70e['if'](_0xf73863(0x9c),_0xf73863(0xcf),_0x41a88c=>_0x41a88c)]},'children':[this[_0xf73863(0x99)]]}]}),_0x599a90({'emitter':this[_0xf73863(0x9d)],'activator':()=>this[_0xf73863(0xa6)],'contextElements':()=>[this[_0xf73863(0x94)]],'callback':()=>{const _0x3a8126=_0xf73863;this[_0x3a8126(0xb0)]=!0x1;}}),this['on'](_0xf73863(0xb9),this[_0xf73863(0xd1)],{'priority':_0xf73863(0xc4)});}[_0x9a288a(0x95)](_0x5289d5,_0x1432e5){return new _0x53f418(_0x5289d5,_0x1432e5);}[_0x9a288a(0xe1)](_0x4412b3){const _0x53f886=_0x9a288a;return new _0x2685d7(_0x4412b3,this[_0x53f886(0xce)][_0x53f886(0xb1)]);}[_0x9a288a(0xc9)](_0x1c9bec){return new _0xf3541c(_0x1c9bec);}[_0x9a288a(0xbb)](_0x176bda){return new _0x1092ed(_0x176bda);}[_0x9a288a(0xb6)](_0x5982d8){const _0x4d0949=_0x9a288a,_0x52095b=new AIChatModelUnavailableMessageView(_0x5982d8);return _0x52095b[_0x4d0949(0xdf)](_0x4d0949(0xe0))['to'](this),_0x52095b;}[_0x9a288a(0xd1)](_0xdde9d6,_0x54253d,_0x226905){const _0x318155=_0x9a288a;_0x226905?this[_0x318155(0xb0)]=!0x0:this[_0x318155(0xb0)]&&this[_0x318155(0x9d)][_0x318155(0xca)]();}[_0x9a288a(0xdb)](_0x40de66,_0x1e87cb){const _0x56dd58=_0x9a288a;this[_0x56dd58(0xce)][_0x56dd58(0xdb)](_0x40de66,_0x1e87cb);}[_0x9a288a(0xd6)](_0x1b0ef7){const _0x41de50=_0x9a288a;this[_0x41de50(0xce)][_0x41de50(0xd6)](_0x1b0ef7);}[_0x9a288a(0x9a)](_0x4785aa,_0x29355c){const _0x4adece=_0x9a288a;this[_0x4adece(0xce)][_0x4adece(0x9a)](_0x4785aa,_0x29355c);}[_0x9a288a(0x98)](_0x1fca8d){const _0x1a0804=_0x9a288a;this[_0x1a0804(0x9d)][_0x1a0804(0x98)](_0x1fca8d);}[_0x9a288a(0x96)](_0x19c61d){const _0x25c3e3=_0x9a288a;this[_0x25c3e3(0xce)][_0x25c3e3(0x96)](_0x19c61d);}[_0x9a288a(0xc7)](){const _0x297951=_0x9a288a;this[_0x297951(0xce)][_0x297951(0xa0)]();}[_0x9a288a(0xba)](){const _0x802908=_0x9a288a;this[_0x802908(0xce)][_0x802908(0xa5)]();}[_0x9a288a(0xd0)](_0x13eac2,_0x320ee6,_0x2c9d48){const _0x3ced3f=_0x9a288a;this[_0x3ced3f(0xce)][_0x3ced3f(0xd0)](_0x13eac2,_0x320ee6,_0x2c9d48);}[_0x9a288a(0xd7)](_0x3f8563){const _0x157a33=_0x9a288a;this[_0x157a33(0xa7)][_0x157a33(0xd7)](_0x3f8563);}[_0x9a288a(0xa1)](_0x1ce596){const _0x592741=_0x9a288a;this[_0x592741(0xa7)][_0x592741(0xa1)](_0x1ce596);}[_0x9a288a(0xac)](){const _0xecc99e=_0x9a288a;this[_0xecc99e(0x9d)][_0xecc99e(0xaf)]();}[_0x9a288a(0xbe)](_0x3ada1a){const _0x58cce5=_0x9a288a;this[_0x58cce5(0xce)][_0x58cce5(0xbe)](_0x3ada1a);}[_0x9a288a(0xad)](_0x1ec410){const _0x2e6f88=_0x9a288a;this[_0x2e6f88(0x9d)][_0x2e6f88(0xdc)](_0x1ec410);}[_0x9a288a(0x9e)](_0x363fcd,_0x109e7c){const _0x245de5=_0x9a288a;this[_0x245de5(0xa7)][_0x245de5(0x9e)](_0x363fcd,_0x109e7c);}[_0x9a288a(0xd4)](_0x408ad9){const _0x3bf8a2=_0x9a288a;_0x408ad9?(this[_0x3bf8a2(0x9c)]=!0x0,this[_0x3bf8a2(0xa7)][_0x3bf8a2(0xd4)](_0x408ad9)):this[_0x3bf8a2(0x9c)]=!0x1;}[_0x9a288a(0xa8)](){const _0xad9e10=_0x9a288a;this[_0xad9e10(0xa7)][_0xad9e10(0xa8)]();}[_0x9a288a(0xd8)](_0x7535a5){const _0x232d86=_0x9a288a;this[_0x232d86(0xa7)][_0x232d86(0xd8)](_0x7535a5);}[_0x9a288a(0xa2)](_0x4ccc98,_0x72684d,_0x43807c,_0x52a476){const _0x3e057a=_0x9a288a;this[_0x3e057a(0xce)][_0x3e057a(0xa2)](_0x4ccc98,_0x72684d,_0x43807c,_0x52a476);}[_0x9a288a(0x93)](_0x1373b0){const _0x3afe98=_0x9a288a;this[_0x3afe98(0xce)][_0x3afe98(0x93)](_0x1373b0);}[_0x9a288a(0xab)](_0x544681=!0x1){const _0x3a6af1=_0x9a288a;this[_0x3a6af1(0x9d)][_0x3a6af1(0xca)](_0x544681);}[_0x9a288a(0xc2)](_0x1775ba){const _0x548876=_0x9a288a;this[_0x548876(0x9d)][_0x548876(0xd5)][_0x548876(0xc6)][_0x548876(0xaf)](),this[_0x548876(0x9d)][_0x548876(0xd5)][_0x548876(0xc6)][_0x548876(0xcb)]=_0x1775ba;}}class AIChatModelUnavailableMessageView extends _0x4e5b3c{constructor(_0x3a2cf8){const _0x59693d=_0x9a288a;super(_0x3a2cf8);const _0x102cf3=new _0x5043a1(_0x3a2cf8);_0x102cf3[_0x59693d(0x90)]({'label':_0x4d3f92(this[_0x59693d(0xda)],_0x59693d(0xb8)),'withText':!0x0,'class':[_0x59693d(0x91)],'tooltip':''}),_0x102cf3[_0x59693d(0xdf)](_0x59693d(0xb2))['to'](this,_0x59693d(0xe0)),this[_0x59693d(0xc8)]({'tag':_0x59693d(0xbd),'attributes':{'class':['ck',_0x59693d(0xde)]},'children':[{'tag':'p','children':[{'text':_0x4d3f92(this[_0x59693d(0xda)],_0x59693d(0xcc))+'\x20'},_0x102cf3]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x2443(){const _0x233122=['25468AckEYt','_createFeedItems','getPartView','updateSources','interaction-header','bindTemplate','ck-ai-chat__loader-text','31329xXJtLZ','isLoadingSkeletonVisible','removeItem','scrollToSuggestion','_setupTemplate','markAsDone','filter','updatePartState','156852eOtABJ','scrollManager','stop','isTrackChangesOn','locale','map','startAutoScroll','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','ai-suggestion-reply','ck-ai-chat__feed__items','_createTemplateChildren','updateWebSources','isPending','delegate','bind','130QVVKYo','getItemIds','updateSuggestionPartState','aiFeed','setTemplate','user-message','find','updateContent','394048bScBMM','_createLoaderChildren','span','updateSuggestionItem','stopAutoScroll','parentElement','ai-reply','remove','setLoadingMessage','getItemById','options','createCollection','88SrLmgE','276LyyjZW','_createSkeletonLoader','2247105bXGuQP','clear','destroy','ck-hidden','forEach','addItem','_createFeedLoader','children','ck-ai-chat__loader','31865TrMtgu','extendTemplate','585695eXRMxv','div','includes','setSuggestionPartActive','_bodyCollection','setPartActive','custom-element','20mkrOgo','ck-ai-chat__feed','set','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ai-chat-feed-view-item-not-found','render','loadingMessage','isVisible','add','hasItem','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','markItemAsDone','ai-chat-feed-view-item-not-a-suggestion-item','element','toggleLoadingSkeleton','start','ai-chat-feed-view-item-not-a-reply-item','updateReplyItem'];_0x2443=function(){return _0x233122;};return _0x2443();}const _0x24fed1=_0x33f6;(function(_0x5368e7,_0x57437c){const _0x30bc20=_0x33f6,_0x440403=_0x5368e7();while(!![]){try{const _0x1078b6=-parseInt(_0x30bc20(0xaa))/0x1*(-parseInt(_0x30bc20(0x98))/0x2)+parseInt(_0x30bc20(0xb1))/0x3*(-parseInt(_0x30bc20(0x83))/0x4)+parseInt(_0x30bc20(0x8f))/0x5*(-parseInt(_0x30bc20(0x84))/0x6)+-parseInt(_0x30bc20(0x86))/0x7+parseInt(_0x30bc20(0xd0))/0x8+parseInt(_0x30bc20(0xb9))/0x9+parseInt(_0x30bc20(0xc8))/0xa*(parseInt(_0x30bc20(0x91))/0xb);if(_0x1078b6===_0x57437c)break;else _0x440403['push'](_0x440403['shift']());}catch(_0x46e0a6){_0x440403['push'](_0x440403['shift']());}}}(_0x2443,0x2969e));import{CKEditorError as _0xdc9f3a,logWarning as _0x3d23bb,scrollAncestorsToShowTarget as _0x5a209c}from'ckeditor5/src/utils.js';import{View as _0x200e23}from'ckeditor5/src/ui.js';function _0x33f6(_0x439a20,_0x2c72e7){const _0x244397=_0x2443();return _0x33f6=function(_0x33f640,_0x1d71d7){_0x33f640=_0x33f640-0x7c;let _0x28fcb2=_0x244397[_0x33f640];return _0x28fcb2;},_0x33f6(_0x439a20,_0x2c72e7);}import{AI_CHAT_UI_EVENT_NAMES as _0x4776b4}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x5ac1}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x539cfc}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x298b92}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x5762bb}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x1bc9fb}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x1ba299}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x64ae81,SKELETON_DEFINITIONS as _0x106168}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0xe7bd98}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x5211df}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x200e23{[_0x24fed1(0x8d)];[_0x24fed1(0xba)];[_0x24fed1(0x95)];constructor(_0x23128e,_0x38c874){const _0x508911=_0x24fed1;super(_0x23128e),this[_0x508911(0x95)]=_0x38c874,this[_0x508911(0x9a)](_0x508911(0xc5),!0x1),this[_0x508911(0x9a)](_0x508911(0x9e),''),this[_0x508911(0x9a)](_0x508911(0xb2),!0x1),this[_0x508911(0x9a)](_0x508911(0xbc),!0x1),this[_0x508911(0x8d)]=this[_0x508911(0x82)](),this[_0x508911(0x8d)][_0x508911(0xc6)](..._0x4776b4)['to'](this),this[_0x508911(0xb5)]();}[_0x24fed1(0x9d)](){const _0x42745b=_0x24fed1;super[_0x42745b(0x9d)](),this[_0x42745b(0xba)]=new _0x1ba299(this[_0x42745b(0xa5)]);}[_0x24fed1(0x88)](){const _0x197580=_0x24fed1;super[_0x197580(0x88)](),this[_0x197580(0xba)][_0x197580(0x88)]();}[_0x24fed1(0x87)](){const _0x2ac47f=_0x24fed1;this[_0x2ac47f(0x8d)][_0x2ac47f(0x87)]();}[_0x24fed1(0x8b)](_0x1e20d0,_0x2acb28){const _0x59ac9e=_0x24fed1;let _0x5d5f42;return _0x59ac9e(0x7d)===_0x1e20d0?_0x5d5f42=new _0x539cfc(this[_0x59ac9e(0xbd)],_0x2acb28,this[_0x59ac9e(0x95)]):_0x59ac9e(0xc1)===_0x1e20d0?(_0x5d5f42=new _0x5ac1(this[_0x59ac9e(0xbd)],_0x2acb28,this[_0x59ac9e(0x95)]),_0x5d5f42[_0x59ac9e(0xc7)](_0x59ac9e(0xbc))['to'](this)):_0x5d5f42=_0x59ac9e(0xcd)===_0x1e20d0?new _0x298b92(this[_0x59ac9e(0xbd)],_0x2acb28,this[_0x59ac9e(0x95)]):_0x59ac9e(0xae)===_0x1e20d0?new _0x1bc9fb(this[_0x59ac9e(0xbd)],_0x2acb28):_0x59ac9e(0x97)===_0x1e20d0?new _0x5211df(_0x2acb28):new _0x5762bb(_0x2acb28),this[_0x59ac9e(0x8d)][_0x59ac9e(0xa0)](_0x5d5f42),_0x5d5f42;}async[_0x24fed1(0xa9)]({id:_0x1cbf3e,parsedContent:_0x9684ad,renderingStrategy:_0x49f54d,abortSignal:_0x5adbed}){const _0xee5ac1=_0x24fed1,_0x1cc199=this[_0xee5ac1(0x80)](_0x1cbf3e);if(!(_0x1cc199 instanceof _0x539cfc))throw new _0xdc9f3a(_0xee5ac1(0xa8),null,{'itemView':_0x1cc199,'id':_0x1cbf3e,'parsedContent':_0x9684ad});await _0x1cc199[_0xee5ac1(0xcf)]({'parsedContent':_0x9684ad,'renderingStrategy':_0x49f54d,'abortSignal':_0x5adbed});}async[_0x24fed1(0xc4)](_0x55f8b3,_0x5caf07){const _0x982ff5=_0x24fed1,_0x3040e7=this[_0x982ff5(0x80)](_0x55f8b3);if(_0x3040e7 instanceof _0x5ac1)_0x3040e7[_0x982ff5(0xad)](_0x5caf07);else{if(!(_0x3040e7 instanceof _0x539cfc))throw new _0xdc9f3a(_0x982ff5(0xc0),null,{'itemView':_0x3040e7,'id':_0x55f8b3,'sources':_0x5caf07});_0x3040e7[_0x982ff5(0xad)](_0x5caf07);}}async[_0x24fed1(0xd3)]({id:_0x3fb946,parts:_0x5cbdf0,renderingStrategy:_0x5afafd,abortSignal:_0xc463f4}){const _0x353145=_0x24fed1,_0x519155=this[_0x353145(0x80)](_0x3fb946);if(!(_0x519155 instanceof _0x5ac1))throw new _0xdc9f3a(_0x353145(0xa4),null,{'itemView':_0x519155,'id':_0x3fb946,'parts':_0x5cbdf0});await _0x519155[_0x353145(0xcf)]({'parts':_0x5cbdf0,'renderingStrategy':_0x5afafd,'abortSignal':_0xc463f4});}[_0x24fed1(0xca)]({id:_0x5d3a36,index:_0x57f2cd,state:_0x1373af}){const _0x471837=_0x24fed1,_0x38562c=this[_0x471837(0x80)](_0x5d3a36);if(!(_0x38562c instanceof _0x5ac1))throw new _0xdc9f3a(_0x471837(0xa4),this,{'id':_0x5d3a36});_0x38562c[_0x471837(0xb8)](_0x57f2cd,_0x1373af);}[_0x24fed1(0x94)]({id:_0x2ab05b,index:_0x1ea105,isActive:_0x289112}){const _0x28f9cf=_0x24fed1,_0x33f8ed=this[_0x28f9cf(0x80)](_0x2ab05b);if(!(_0x33f8ed instanceof _0x5ac1))throw new _0xdc9f3a(_0x28f9cf(0xa4),this,{'id':_0x2ab05b});this[_0x28f9cf(0x8d)][_0x28f9cf(0xb7)](_0x488fe4=>_0x488fe4 instanceof _0x5ac1)[_0x28f9cf(0x8a)](_0x479666=>{const _0x4948cf=_0x28f9cf;_0x479666[_0x4948cf(0x96)](!0x1);}),_0x33f8ed[_0x28f9cf(0x96)](_0x1ea105,_0x289112);}[_0x24fed1(0xa3)](_0x26e35f){const _0xa902ab=_0x24fed1;this[_0xa902ab(0x80)](_0x26e35f)[_0xa902ab(0xb6)]();}[_0x24fed1(0xc9)](){const _0x4eb76e=_0x24fed1;return this[_0x4eb76e(0x8d)][_0x4eb76e(0xbe)](_0x36e2b9=>_0x36e2b9[_0x4eb76e(0x81)]['id']);}[_0x24fed1(0xb3)](_0x183893){const _0x495149=_0x24fed1;this[_0x495149(0x8d)][_0x495149(0x7e)](this[_0x495149(0x80)](_0x183893));}[_0x24fed1(0xa1)](_0x4ad454){const _0x23188c=_0x24fed1;return!!this[_0x23188c(0x8d)][_0x23188c(0xce)](_0x1cca86=>_0x1cca86[_0x23188c(0x81)]['id'][_0x23188c(0x93)](_0x4ad454));}[_0x24fed1(0xb4)](_0xfe19e8,_0x512001){const _0x394572=_0x24fed1,_0x22fa21=this[_0x394572(0x80)](_0xfe19e8);if(!(_0x22fa21 instanceof _0x5ac1))return void _0x3d23bb(_0x394572(0x9b),{'replyId':_0xfe19e8,'partIndex':_0x512001});const _0x1b0bbd=_0x22fa21[_0x394572(0xac)](_0x512001);_0x1b0bbd?_0x5a209c(_0x1b0bbd[_0x394572(0xa5)],0x14,this[_0x394572(0xa5)][_0x394572(0x7c)],!0x0,!0x0):_0x3d23bb(_0x394572(0xa2),{'replyId':_0xfe19e8,'partIndex':_0x512001});}[_0x24fed1(0xb5)](){const _0x5131af=_0x24fed1;this[_0x5131af(0xcc)]({'tag':_0x5131af(0x92),'attributes':{'class':['ck',_0x5131af(0x99)]},'children':this[_0x5131af(0xc3)]()});}[_0x24fed1(0xc3)](){const _0x5c934f=_0x24fed1,_0x390f7a=this[_0x5c934f(0x85)]();return[this[_0x5c934f(0xab)](),_0x390f7a,this[_0x5c934f(0x8c)]()];}[_0x24fed1(0x85)](){const _0x12327b=_0x24fed1,_0x3db3b1=new _0x64ae81(this[_0x12327b(0xbd)],_0x106168[_0x12327b(0xcb)]);return _0x3db3b1[_0x12327b(0x90)]({'attributes':{'class':[this[_0x12327b(0xaf)]['if'](_0x12327b(0xb2),_0x12327b(0x89),_0x43bf7e=>!_0x43bf7e)]}}),_0x3db3b1;}[_0x24fed1(0xab)](){const _0x5f1969=_0x24fed1,_0x598441=new _0x200e23(this[_0x5f1969(0xbd)]);return _0x598441[_0x5f1969(0xcc)]({'tag':_0x5f1969(0x92),'attributes':{'class':['ck',_0x5f1969(0xc2),this[_0x5f1969(0xaf)]['if'](_0x5f1969(0xb2),_0x5f1969(0x89))]},'children':this[_0x5f1969(0x8d)]}),_0x598441;}[_0x24fed1(0x8c)](){const _0x211823=_0x24fed1,_0x4e4113=new _0x200e23(this[_0x211823(0xbd)]);return _0x4e4113[_0x211823(0xcc)]({'tag':_0x211823(0x92),'attributes':{'class':['ck',_0x211823(0x8e),this[_0x211823(0xaf)]['if'](_0x211823(0xc5),_0x211823(0x89),_0x1ce646=>!_0x1ce646)]},'children':this[_0x211823(0xd1)]()}),_0x4e4113;}[_0x24fed1(0xd1)](){const _0x31f35e=_0x24fed1,_0x27680d=new _0xe7bd98();return _0x27680d[_0x31f35e(0x9f)]=!0x0,[_0x27680d,{'tag':_0x31f35e(0xd2),'attributes':{'class':['ck',_0x31f35e(0xb0)]},'children':[{'text':this[_0x31f35e(0xaf)]['to'](_0x31f35e(0x9e))}]}];}[_0x24fed1(0x80)](_0xc3fb72){const _0x520014=_0x24fed1,_0x13656e=this[_0x520014(0x8d)][_0x520014(0xce)](_0x4e0901=>_0x4e0901[_0x520014(0x81)]['id'][_0x520014(0x93)](_0xc3fb72));if(!_0x13656e)throw new _0xdc9f3a(_0x520014(0x9c),this,{'id':_0xc3fb72});return _0x13656e;}[_0x24fed1(0x7f)](_0x1b7003){const _0x4f9ddb=_0x24fed1;this[_0x4f9ddb(0x9a)](_0x4f9ddb(0x9e),_0x1b7003);}[_0x24fed1(0xa6)](_0x37fb9d){const _0x295327=_0x24fed1;this[_0x295327(0x9a)](_0x295327(0xb2),_0x37fb9d);}[_0x24fed1(0xbf)](){const _0x3ba348=_0x24fed1;this[_0x3ba348(0xba)][_0x3ba348(0xa7)]();}[_0x24fed1(0xd4)](){const _0xcb98c4=_0x24fed1;this[_0xcb98c4(0xba)][_0xcb98c4(0xbb)]();}}
|
|
23
|
+
const _0x3b9be5=_0x131c;(function(_0x6c0267,_0x20f899){const _0x598975=_0x131c,_0x59efbf=_0x6c0267();while(!![]){try{const _0x770474=parseInt(_0x598975(0x1d7))/0x1+-parseInt(_0x598975(0x206))/0x2*(parseInt(_0x598975(0x1e8))/0x3)+-parseInt(_0x598975(0x1f5))/0x4+parseInt(_0x598975(0x217))/0x5*(-parseInt(_0x598975(0x227))/0x6)+-parseInt(_0x598975(0x1d9))/0x7+-parseInt(_0x598975(0x1ef))/0x8*(parseInt(_0x598975(0x20b))/0x9)+-parseInt(_0x598975(0x202))/0xa*(-parseInt(_0x598975(0x1eb))/0xb);if(_0x770474===_0x20f899)break;else _0x59efbf['push'](_0x59efbf['shift']());}catch(_0x39e59c){_0x59efbf['push'](_0x59efbf['shift']());}}}(_0x5a3c,0xcfb1f));import{CKEditorError as _0x272618,logWarning as _0x36ca72,scrollAncestorsToShowTarget as _0x3cadc9}from'ckeditor5/src/utils.js';import{View as _0x2dffeb}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3c982f}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x52e608}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x2b2c4e}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x96c57b}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x213170}from'./feed/aichatfeederroritemview.js';function _0x5a3c(){const _0x4c0077=['hasItem','ck-ai-chat__loader-text','ai-chat-feed-view-item-not-found','delegate','bind','destroy','addItem','aiFeed','_createFeedLoader','interaction-header','options','2670aUSajl','getItemIds','startAutoScroll','updateContent','504710duURGz','scrollManager','start','ai-suggestion-reply','ai-chat-feed-view-item-not-a-reply-item','13214763oYeaOk','ck-ai-chat__feed__items','setLoadingMessage','getPartView','map','extendTemplate','removeItem','span','clear','children','_createSkeletonLoader','_setupTemplate','877755sqeHxK','setPartActive','updateWebSources','element','isPending','ck-ai-chat__feed','scrollToSuggestion','updatePartState','set','_bodyCollection','stop','updateSources','forEach','getItemById','filter','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','6JwudhW','parentElement','isTrackChangesOn','ai-chat-feed-view-item-not-a-suggestion-item','setTemplate','updateReplyItem','bindTemplate','render','isVisible','266777osQlaJ','loadingMessage','938889jMIfNz','markItemAsDone','add','ck-hidden','setSuggestionPartActive','includes','markAsDone','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','stopAutoScroll','updateSuggestionPartState','user-message','locale','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','div','updateSuggestionItem','3gtRVnh','remove','createCollection','147444DHHRRZ','toggleLoadingSkeleton','_createFeedItems','_createLoaderChildren','8WSPipI','isLoadingSkeletonVisible','custom-element','_createTemplateChildren','find','ai-reply','3858344pdaWzW','ck-ai-chat__loader'];_0x5a3c=function(){return _0x4c0077;};return _0x5a3c();}function _0x131c(_0x5c46b9,_0x505fc8){const _0x5a3c9a=_0x5a3c();return _0x131c=function(_0x131c92,_0x82d260){_0x131c92=_0x131c92-0x1d2;let _0x1a7dd3=_0x5a3c9a[_0x131c92];return _0x1a7dd3;},_0x131c(_0x5c46b9,_0x505fc8);}import{AIChatFeedInteractionHeaderView as _0x2ad5ff}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x242c89}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x5c9f06,SKELETON_DEFINITIONS as _0x25fb14}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x13d493}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x11477c}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x2dffeb{[_0x3b9be5(0x214)];[_0x3b9be5(0x207)];[_0x3b9be5(0x220)];constructor(_0x232541,_0x4f01a0){const _0x414a90=_0x3b9be5;super(_0x232541),this[_0x414a90(0x220)]=_0x4f01a0,this[_0x414a90(0x21f)](_0x414a90(0x21b),!0x1),this[_0x414a90(0x21f)](_0x414a90(0x1d8),''),this[_0x414a90(0x21f)](_0x414a90(0x1f0),!0x1),this[_0x414a90(0x21f)](_0x414a90(0x229),!0x1),this[_0x414a90(0x214)]=this[_0x414a90(0x1ea)](),this[_0x414a90(0x214)][_0x414a90(0x1fa)](..._0x3c982f)['to'](this),this[_0x414a90(0x216)]();}[_0x3b9be5(0x1d5)](){const _0x207c10=_0x3b9be5;super[_0x207c10(0x1d5)](),this[_0x207c10(0x207)]=new _0x242c89(this[_0x207c10(0x21a)]);}[_0x3b9be5(0x1fc)](){const _0x47a081=_0x3b9be5;super[_0x47a081(0x1fc)](),this[_0x47a081(0x207)][_0x47a081(0x1fc)]();}[_0x3b9be5(0x213)](){const _0x22c149=_0x3b9be5;this[_0x22c149(0x214)][_0x22c149(0x213)]();}[_0x3b9be5(0x1fd)](_0x2eac5c,_0x201ea7){const _0x30d5e7=_0x3b9be5;let _0x541877;return _0x30d5e7(0x1f4)===_0x2eac5c?_0x541877=new _0x2b2c4e(this[_0x30d5e7(0x1e4)],_0x201ea7,this[_0x30d5e7(0x220)]):_0x30d5e7(0x209)===_0x2eac5c?(_0x541877=new _0x52e608(this[_0x30d5e7(0x1e4)],_0x201ea7,this[_0x30d5e7(0x220)]),_0x541877[_0x30d5e7(0x1fb)](_0x30d5e7(0x229))['to'](this)):_0x541877=_0x30d5e7(0x1e3)===_0x2eac5c?new _0x96c57b(this[_0x30d5e7(0x1e4)],_0x201ea7,this[_0x30d5e7(0x220)]):_0x30d5e7(0x200)===_0x2eac5c?new _0x2ad5ff(this[_0x30d5e7(0x1e4)],_0x201ea7):_0x30d5e7(0x1f1)===_0x2eac5c?new _0x11477c(_0x201ea7):new _0x213170(_0x201ea7),this[_0x30d5e7(0x214)][_0x30d5e7(0x1db)](_0x541877),_0x541877;}async[_0x3b9be5(0x1d3)]({id:_0x15c539,parsedContent:_0x7d6edd,renderingStrategy:_0x1d8c6e,abortSignal:_0x187c61}){const _0x216f68=_0x3b9be5,_0xc43219=this[_0x216f68(0x224)](_0x15c539);if(!(_0xc43219 instanceof _0x2b2c4e))throw new _0x272618(_0x216f68(0x20a),null,{'itemView':_0xc43219,'id':_0x15c539,'parsedContent':_0x7d6edd});await _0xc43219[_0x216f68(0x205)]({'parsedContent':_0x7d6edd,'renderingStrategy':_0x1d8c6e,'abortSignal':_0x187c61});}async[_0x3b9be5(0x219)](_0x49aaf4,_0xb3d2e2){const _0x5b6d0b=_0x3b9be5,_0x365672=this[_0x5b6d0b(0x224)](_0x49aaf4);if(_0x365672 instanceof _0x52e608)_0x365672[_0x5b6d0b(0x222)](_0xb3d2e2);else{if(!(_0x365672 instanceof _0x2b2c4e))throw new _0x272618(_0x5b6d0b(0x1e0),null,{'itemView':_0x365672,'id':_0x49aaf4,'sources':_0xb3d2e2});_0x365672[_0x5b6d0b(0x222)](_0xb3d2e2);}}async[_0x3b9be5(0x1e7)]({id:_0x25cb87,parts:_0x4e6db8,renderingStrategy:_0x56e804,abortSignal:_0x43eb6c}){const _0x39f7e4=_0x3b9be5,_0x18ef87=this[_0x39f7e4(0x224)](_0x25cb87);if(!(_0x18ef87 instanceof _0x52e608))throw new _0x272618(_0x39f7e4(0x22a),null,{'itemView':_0x18ef87,'id':_0x25cb87,'parts':_0x4e6db8});await _0x18ef87[_0x39f7e4(0x205)]({'parts':_0x4e6db8,'renderingStrategy':_0x56e804,'abortSignal':_0x43eb6c});}[_0x3b9be5(0x1e2)]({id:_0x20e6be,index:_0x4e2bcb,state:_0x46042a}){const _0x776531=_0x3b9be5,_0x4747c6=this[_0x776531(0x224)](_0x20e6be);if(!(_0x4747c6 instanceof _0x52e608))throw new _0x272618(_0x776531(0x22a),this,{'id':_0x20e6be});_0x4747c6[_0x776531(0x21e)](_0x4e2bcb,_0x46042a);}[_0x3b9be5(0x1dd)]({id:_0x129fdc,index:_0x1c5255,isActive:_0x27ca5f}){const _0x24cd98=_0x3b9be5,_0xdc29ea=this[_0x24cd98(0x224)](_0x129fdc);if(!(_0xdc29ea instanceof _0x52e608))throw new _0x272618(_0x24cd98(0x22a),this,{'id':_0x129fdc});this[_0x24cd98(0x214)][_0x24cd98(0x225)](_0xc207fc=>_0xc207fc instanceof _0x52e608)[_0x24cd98(0x223)](_0x4da7df=>{const _0x2dc4f1=_0x24cd98;_0x4da7df[_0x2dc4f1(0x218)](!0x1);}),_0xdc29ea[_0x24cd98(0x218)](_0x1c5255,_0x27ca5f);}[_0x3b9be5(0x1da)](_0x257563){const _0x5bc4ee=_0x3b9be5;this[_0x5bc4ee(0x224)](_0x257563)[_0x5bc4ee(0x1df)]();}[_0x3b9be5(0x203)](){const _0x4dfedf=_0x3b9be5;return this[_0x4dfedf(0x214)][_0x4dfedf(0x20f)](_0x358e46=>_0x358e46[_0x4dfedf(0x201)]['id']);}[_0x3b9be5(0x211)](_0x46eeac){const _0x3774c7=_0x3b9be5;this[_0x3774c7(0x214)][_0x3774c7(0x1e9)](this[_0x3774c7(0x224)](_0x46eeac));}[_0x3b9be5(0x1f7)](_0x435095){const _0x5a78ec=_0x3b9be5;return!!this[_0x5a78ec(0x214)][_0x5a78ec(0x1f3)](_0x3dc856=>_0x3dc856[_0x5a78ec(0x201)]['id'][_0x5a78ec(0x1de)](_0x435095));}[_0x3b9be5(0x21d)](_0x178eb8,_0x430a73){const _0x3a4362=_0x3b9be5,_0x38f73d=this[_0x3a4362(0x224)](_0x178eb8);if(!(_0x38f73d instanceof _0x52e608))return void _0x36ca72(_0x3a4362(0x226),{'replyId':_0x178eb8,'partIndex':_0x430a73});const _0xd3932b=_0x38f73d[_0x3a4362(0x20e)](_0x430a73);_0xd3932b?_0x3cadc9(_0xd3932b[_0x3a4362(0x21a)],0x14,this[_0x3a4362(0x21a)][_0x3a4362(0x228)],!0x0,!0x0):_0x36ca72(_0x3a4362(0x1e5),{'replyId':_0x178eb8,'partIndex':_0x430a73});}[_0x3b9be5(0x216)](){const _0x34ee97=_0x3b9be5;this[_0x34ee97(0x1d2)]({'tag':_0x34ee97(0x1e6),'attributes':{'class':['ck',_0x34ee97(0x21c)]},'children':this[_0x34ee97(0x1f2)]()});}[_0x3b9be5(0x1f2)](){const _0x4f4b5a=_0x3b9be5,_0x1341de=this[_0x4f4b5a(0x215)]();return[this[_0x4f4b5a(0x1ed)](),_0x1341de,this[_0x4f4b5a(0x1ff)]()];}[_0x3b9be5(0x215)](){const _0x1c0da1=_0x3b9be5,_0x16cad6=new _0x5c9f06(this[_0x1c0da1(0x1e4)],_0x25fb14[_0x1c0da1(0x1fe)]);return _0x16cad6[_0x1c0da1(0x210)]({'attributes':{'class':[this[_0x1c0da1(0x1d4)]['if'](_0x1c0da1(0x1f0),_0x1c0da1(0x1dc),_0x4e6b37=>!_0x4e6b37)]}}),_0x16cad6;}[_0x3b9be5(0x1ed)](){const _0x1ae42b=_0x3b9be5,_0x13624b=new _0x2dffeb(this[_0x1ae42b(0x1e4)]);return _0x13624b[_0x1ae42b(0x1d2)]({'tag':_0x1ae42b(0x1e6),'attributes':{'class':['ck',_0x1ae42b(0x20c),this[_0x1ae42b(0x1d4)]['if'](_0x1ae42b(0x1f0),_0x1ae42b(0x1dc))]},'children':this[_0x1ae42b(0x214)]}),_0x13624b;}[_0x3b9be5(0x1ff)](){const _0x37ad79=_0x3b9be5,_0x7acb80=new _0x2dffeb(this[_0x37ad79(0x1e4)]);return _0x7acb80[_0x37ad79(0x1d2)]({'tag':_0x37ad79(0x1e6),'attributes':{'class':['ck',_0x37ad79(0x1f6),this[_0x37ad79(0x1d4)]['if'](_0x37ad79(0x21b),_0x37ad79(0x1dc),_0x136089=>!_0x136089)]},'children':this[_0x37ad79(0x1ee)]()}),_0x7acb80;}[_0x3b9be5(0x1ee)](){const _0x2f3fca=_0x3b9be5,_0x3944d6=new _0x13d493();return _0x3944d6[_0x2f3fca(0x1d6)]=!0x0,[_0x3944d6,{'tag':_0x2f3fca(0x212),'attributes':{'class':['ck',_0x2f3fca(0x1f8)]},'children':[{'text':this[_0x2f3fca(0x1d4)]['to'](_0x2f3fca(0x1d8))}]}];}[_0x3b9be5(0x224)](_0x58cee8){const _0x4d19f8=_0x3b9be5,_0x2877c3=this[_0x4d19f8(0x214)][_0x4d19f8(0x1f3)](_0x2118d7=>_0x2118d7[_0x4d19f8(0x201)]['id'][_0x4d19f8(0x1de)](_0x58cee8));if(!_0x2877c3)throw new _0x272618(_0x4d19f8(0x1f9),this,{'id':_0x58cee8});return _0x2877c3;}[_0x3b9be5(0x20d)](_0x5345b7){const _0xc08852=_0x3b9be5;this[_0xc08852(0x21f)](_0xc08852(0x1d8),_0x5345b7);}[_0x3b9be5(0x1ec)](_0x5e7f7){const _0x432f57=_0x3b9be5;this[_0x432f57(0x21f)](_0x432f57(0x1f0),_0x5e7f7);}[_0x3b9be5(0x204)](){const _0x20ffda=_0x3b9be5;this[_0x20ffda(0x207)][_0x20ffda(0x208)]();}[_0x3b9be5(0x1e1)](){const _0x28f684=_0x3b9be5;this[_0x28f684(0x207)][_0x28f684(0x221)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a73da=_0x5197;(function(_0x3fb294,_0x1eb012){const _0x266d05=_0x5197,_0x4eb41c=_0x3fb294();while(!![]){try{const _0x156e02=parseInt(_0x266d05(0x7e))/0x1*(-parseInt(_0x266d05(0x77))/0x2)+parseInt(_0x266d05(0x85))/0x3*(parseInt(_0x266d05(0x8a))/0x4)+parseInt(_0x266d05(0x75))/0x5+parseInt(_0x266d05(0x74))/0x6*(parseInt(_0x266d05(0x89))/0x7)+-parseInt(_0x266d05(0x81))/0x8*(-parseInt(_0x266d05(0x7a))/0x9)+parseInt(_0x266d05(0x7c))/0xa+-parseInt(_0x266d05(0x82))/0xb;if(_0x156e02===_0x1eb012)break;else _0x4eb41c['push'](_0x4eb41c['shift']());}catch(_0x2b12fd){_0x4eb41c['push'](_0x4eb41c['shift']());}}}(_0x4861,0x6ea05));import{ButtonView as _0x52f845,FormHeaderView as _0x3fc031}from'ckeditor5/src/ui.js';import{IconPlus as _0x62bc0,IconAIChat as _0x329557}from'ckeditor5/src/icons.js';function _0x5197(_0xf582dc,_0x3226d1){const _0x4861d2=_0x4861();return _0x5197=function(_0x51977c,_0x568967){_0x51977c=_0x51977c-0x73;let _0x54a87d=_0x4861d2[_0x51977c];return _0x54a87d;},_0x5197(_0xf582dc,_0x3226d1);}import{getTranslation as _0x25d381}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x5ed638}from'../../aicore/utils/createresizebutton.js';function _0x4861(){const _0x32b0af=['isMaximized','ck-ai-header\x20ck-ai-header_chat','AI_CHAT_HEADING','664194XUhWjc','1220700KbmlZw','conversationStartButton','4BkFvLI','AI_CHAT_LABEL_NEW_CHAT','set','1992456sBEBUT','startConversation','853470pFYSOS','locale','321284vVtQMw','_createStartConversationButton','children','8tNCKOR','7663359gMmwoK','resizeButton','add','3954GkkvMe','execute','ck-ai-chat__start-conversation','fire','35LKrvnW','2088NehZim'];_0x4861=function(){return _0x32b0af;};return _0x4861();}import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x3fc031{[_0x4a73da(0x76)];[_0x4a73da(0x83)];constructor(_0x210a16,_0x3f7bb8){const _0x429b1b=_0x4a73da;super(_0x210a16,{'label':_0x25d381(_0x210a16,_0x429b1b(0x73)),'class':_0x429b1b(0x8c),'icon':_0x329557}),this[_0x429b1b(0x79)](_0x429b1b(0x8b),!0x1),this[_0x429b1b(0x76)]=this[_0x429b1b(0x7f)](_0x210a16),this[_0x429b1b(0x80)][_0x429b1b(0x84)](this[_0x429b1b(0x76)]),_0x3f7bb8&&(this[_0x429b1b(0x83)]=_0x5ed638(_0x210a16,this),this[_0x429b1b(0x80)][_0x429b1b(0x84)](this[_0x429b1b(0x83)]));}[_0x4a73da(0x7f)](_0x453bb5){const _0x66b820=_0x4a73da,_0x1e632b=new _0x52f845(_0x453bb5);return _0x1e632b[_0x66b820(0x79)]({'label':_0x25d381(this[_0x66b820(0x7d)],_0x66b820(0x78)),'withText':!0x0,'icon':_0x62bc0,'class':_0x66b820(0x87)}),_0x1e632b['on'](_0x66b820(0x86),()=>{const _0x21e6e0=_0x66b820;this[_0x21e6e0(0x88)](_0x21e6e0(0x7b));}),_0x1e632b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x18d02d=_0x1bbe;(function(_0x5b4662,_0x1afde2){var _0x3ef2f7=_0x1bbe,_0x39da34=_0x5b4662();while(!![]){try{var _0xa93842=-parseInt(_0x3ef2f7(0xad))/0x1*(parseInt(_0x3ef2f7(0xb9))/0x2)+parseInt(_0x3ef2f7(0xbd))/0x3+parseInt(_0x3ef2f7(0xc4))/0x4+-parseInt(_0x3ef2f7(0xaf))/0x5+-parseInt(_0x3ef2f7(0xb8))/0x6*(parseInt(_0x3ef2f7(0xc2))/0x7)+parseInt(_0x3ef2f7(0xbe))/0x8+parseInt(_0x3ef2f7(0xbb))/0x9*(-parseInt(_0x3ef2f7(0xac))/0xa);if(_0xa93842===_0x1afde2)break;else _0x39da34['push'](_0x39da34['shift']());}catch(_0x20ee21){_0x39da34['push'](_0x39da34['shift']());}}}(_0x2bb3,0xadcc5));import{View as _0x149e65,BodyCollection as _0x20b91a}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3890fe}from'../utils/eventnames.js';import{AIChatFeedView as _0x31b689}from'./aichatfeedview.js';function _0x2bb3(){var _0x33fc7c=['chatHeader','117gVnUSy','_bodyCollection','1664628sHSAqx','9133504RQiCYv','chatFeed','attachToDom','chatControls','142233XMuIYd','chatDisclaimer','5197672CjjIbF','showResizeButton','detachFromDom','populateSourceResourceBalloon','destroy','1067860KEhOOb','57znpJXk','ck-rounded-corners','1292445SFQozJ','ck-ai-chat','closeSourceResourceBalloon','div','ck-reset_all','uiLanguageDirection','contextResourcesSearchInputVisibleFrom','delegate','setTemplate','18lesLps','20226qJsogs'];_0x2bb3=function(){return _0x33fc7c;};return _0x2bb3();}import{AIChatControlsView as _0x2a604c}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x5d85cd}from'./aichatheaderview.js';import{AIDisclaimerView as _0x3f0a8e}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';function _0x1bbe(_0x5bd534,_0x5abc00){var _0x2bb3c1=_0x2bb3();return _0x1bbe=function(_0x1bbed7,_0x3aed11){_0x1bbed7=_0x1bbed7-0xa8;var _0x430b14=_0x2bb3c1[_0x1bbed7];return _0x430b14;},_0x1bbe(_0x5bd534,_0x5abc00);}import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x149e65{[_0x18d02d(0xba)];[_0x18d02d(0xbf)];[_0x18d02d(0xc1)];[_0x18d02d(0xc3)];[_0x18d02d(0xbc)];constructor(_0x54b512,_0x3e7470){var _0x235346=_0x18d02d;super(_0x54b512),this[_0x235346(0xbc)]=new _0x20b91a(_0x54b512),this[_0x235346(0xbc)][_0x235346(0xc0)](),this[_0x235346(0xba)]=new _0x5d85cd(_0x54b512,_0x3e7470[_0x235346(0xa8)]),this[_0x235346(0xba)][_0x235346(0xb6)](..._0x3890fe)['to'](this),this[_0x235346(0xbf)]=new _0x31b689(_0x54b512,this[_0x235346(0xbc)]),this[_0x235346(0xbf)][_0x235346(0xb6)](..._0x3890fe)['to'](this),this[_0x235346(0xc1)]=new _0x2a604c(_0x54b512,{'bodyCollection':this[_0x235346(0xbc)],'contextResourcesSearchInputVisibleFrom':_0x3e7470[_0x235346(0xb5)]}),this[_0x235346(0xc1)][_0x235346(0xb6)](..._0x3890fe)['to'](this),this[_0x235346(0xc3)]=new _0x3f0a8e(_0x54b512),this[_0x235346(0xb7)]({'tag':_0x235346(0xb2),'attributes':{'class':['ck',_0x235346(0xb3),_0x235346(0xb0),_0x235346(0xae)],'dir':_0x54b512[_0x235346(0xb4)]},'children':[this[_0x235346(0xba)],this[_0x235346(0xbf)],this[_0x235346(0xc1)],this[_0x235346(0xc3)]]});}[_0x18d02d(0xaa)](_0x464b85,_0x4270f4,_0x2b7c83,_0x44a14e){var _0x245b0b=_0x18d02d;this[_0x245b0b(0xc1)][_0x245b0b(0xaa)](_0x464b85,_0x4270f4,_0x2b7c83,_0x44a14e);}[_0x18d02d(0xb1)](_0x556790){var _0x4b9bc1=_0x18d02d;this[_0x4b9bc1(0xc1)][_0x4b9bc1(0xb1)](_0x556790);}[_0x18d02d(0xab)](){var _0x51572f=_0x18d02d;this[_0x51572f(0xbc)][_0x51572f(0xa9)](),super[_0x51572f(0xab)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x275cdc=_0x4111;(function(_0xe7119,_0x510e0e){const _0x3ebdcd=_0x4111,_0x544cd8=_0xe7119();while(!![]){try{const _0x6ec5c=parseInt(_0x3ebdcd(0x188))/0x1*(parseInt(_0x3ebdcd(0x184))/0x2)+parseInt(_0x3ebdcd(0x1a0))/0x3*(parseInt(_0x3ebdcd(0x169))/0x4)+parseInt(_0x3ebdcd(0x139))/0x5+-parseInt(_0x3ebdcd(0x190))/0x6+-parseInt(_0x3ebdcd(0x13a))/0x7*(-parseInt(_0x3ebdcd(0x1aa))/0x8)+parseInt(_0x3ebdcd(0x1a3))/0x9*(-parseInt(_0x3ebdcd(0x18b))/0xa)+-parseInt(_0x3ebdcd(0x1be))/0xb;if(_0x6ec5c===_0x510e0e)break;else _0x544cd8['push'](_0x544cd8['shift']());}catch(_0x265e43){_0x544cd8['push'](_0x544cd8['shift']());}}}(_0xe79d,0x8114d));function _0xe79d(){const _0x365318=['appendChild','.ck-ai-chat','_createMockButton','showMoreLabelPrefix','_distributeChips','classList','_parentView','pointerEvents','innerWidth','_intersectionObserver','_overflowChips','_createShowMoreBalloonPanelView','showMoreButton','filter','_applyOverflowResults','auto','height','body','getComputedStyle','setContainerElement','maxVisibleRows','_repinBalloonPanel','300px','_createCalculationContainer','_checkAndHandleOverflow','showMoreButtonView','querySelector','_setupVisibilityObserver','hide','observe','disableAnimationOnEnter','clear','_updateShowMoreButtonVisibility','destroy','hidden','_renderChipsAndCountRows','2692YjAPon','_config','_updateOverflowUI','_updateBalloonContent','_makeAncestorsVisible','getBoundingClientRect','undefined','remove','innerHTML','button','pop','render','_applyCalculationStyles','left','visible\x20!important','parentElement','-9999px','textContent','display','clientWidth','isIntersecting','_handleShowMoreButtonClick','_createShowMoreButton','cloneNode','showMoreBalloon','_calculateContainerWidth','className','46RaALjJ','content','isConnected','ck-calculation-container','35698ROTRmv','innerHeight','showBalloonPanel','19430kCnwBb','50px','visibility','block','show','3910578ZFvEAW','_ancestorsToRestore','execute','pin','top','0px','clientHeight','width','_containerElement','isOn','isVisible','calculationContainer','some','setTemplate','length','_isContainerVisible','3867gSSRJF','_createContainerElements','none','3015eqEgGB','right','_testButtonFit','hideBalloonPanel','_calculateOverflowInContainer','includes','_findTargetContainer','5004728yiMOhp','cssClasses','rowDetectionTolerance','element','_locale','zIndex','from','tagName','+\x201','style','_createShowMoreButtonView','set','reorganizeChips','disconnect','push','opacity','_bodyCollection','div','children','block\x20!important','13331219sUEXwe','position','_pendingCalculation','visible','_showMoreBalloonPanelView','offsetWidth','toLowerCase','add','bottom','forEach','_restoreAncestorVisibility','label','overflowContainer','createElement','_showMoreButtonView','slice','3645860YGOZNy','7SLCxZZ','controlsButton','_visibleChips','documentElement','overflowChips','_targetContainer','boxSizing','abs','extendTemplate','absolute','border-box'];_0xe79d=function(){return _0x365318;};return _0xe79d();}import{View as _0x2c3dd2,BalloonPanelView as _0x4603e4,ButtonView as _0x13022e,clickOutsideHandler as _0x53352b}from'ckeditor5/src/ui.js';import{Collection as _0x3c7d9f}from'ckeditor5/src/utils.js';function _0x4111(_0x333946,_0x839513){const _0xe79d10=_0xe79d();return _0x4111=function(_0x411184,_0x437242){_0x411184=_0x411184-0x133;let _0x250194=_0xe79d10[_0x411184];return _0x250194;},_0x4111(_0x333946,_0x839513);}const an={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},wn=_0x275cdc(0x15b);export class AIChatChipsOverflowManager{[_0x275cdc(0x1ae)];[_0x275cdc(0x16a)];[_0x275cdc(0x13c)];[_0x275cdc(0x14f)];[_0x275cdc(0x137)]=null;[_0x275cdc(0x1c2)]=null;[_0x275cdc(0x198)]=null;[_0x275cdc(0x1ba)];[_0x275cdc(0x14b)]=null;[_0x275cdc(0x14e)]=null;[_0x275cdc(0x1c0)]=!0x1;constructor(_0x1bbc07,_0x4e540e,_0x439718,_0x30e7d4,_0x1bf301){const _0x26cb7d=_0x275cdc;this[_0x26cb7d(0x1ae)]=_0x1bbc07,this[_0x26cb7d(0x13c)]=_0x4e540e,this[_0x26cb7d(0x16a)]={...an,..._0x439718,'cssClasses':{'controlsButton':'','calculationContainer':_0x26cb7d(0x187),..._0x439718[_0x26cb7d(0x1ab)]}},this[_0x26cb7d(0x14f)]=new _0x3c7d9f(),this[_0x26cb7d(0x1ba)]=_0x30e7d4,this[_0x26cb7d(0x14b)]=_0x1bf301||null;}[_0x275cdc(0x158)](_0xc9247){const _0x2e3f10=_0x275cdc;this[_0x2e3f10(0x14e)]&&(this[_0x2e3f10(0x14e)][_0x2e3f10(0x1b7)](),this[_0x2e3f10(0x14e)]=null),this[_0x2e3f10(0x198)]=_0xc9247,this[_0x2e3f10(0x160)]();}get[_0x275cdc(0x15e)](){const _0x47fb17=_0x275cdc;return this[_0x47fb17(0x137)];}get[_0x275cdc(0x13e)](){const _0x10488b=_0x275cdc;return this[_0x10488b(0x14f)];}[_0x275cdc(0x1b6)](){requestAnimationFrame(()=>{const _0x3985d6=_0x4111;this[_0x3985d6(0x15d)]();});}[_0x275cdc(0x18a)](){const _0xca809a=_0x275cdc;this[_0xca809a(0x137)]&&this[_0xca809a(0x1c2)]&&(this[_0xca809a(0x16c)](),this[_0xca809a(0x137)][_0xca809a(0x199)]=!0x0,this[_0xca809a(0x1c2)][_0xca809a(0x18f)](),this[_0xca809a(0x1c2)][_0xca809a(0x193)]({'target':this[_0xca809a(0x137)][_0xca809a(0x1ad)],'limiter':document[_0xca809a(0x15f)](_0xca809a(0x146))}));}[_0x275cdc(0x1a6)](){const _0x23b873=_0x275cdc;this[_0x23b873(0x137)]&&this[_0x23b873(0x1c2)]&&(this[_0x23b873(0x137)][_0x23b873(0x199)]=!0x1,this[_0x23b873(0x1c2)][_0x23b873(0x161)]());}[_0x275cdc(0x164)](){const _0x53c41a=_0x275cdc;this[_0x53c41a(0x14f)][_0x53c41a(0x164)](),this[_0x53c41a(0x1a6)](),this[_0x53c41a(0x165)](),this[_0x53c41a(0x137)]&&(this[_0x53c41a(0x137)][_0x53c41a(0x134)]=''),this[_0x53c41a(0x1c2)]&&this[_0x53c41a(0x1c2)][_0x53c41a(0x185)][_0x53c41a(0x164)]();}[_0x275cdc(0x166)](){const _0x22245c=_0x275cdc;this[_0x22245c(0x14e)]&&(this[_0x22245c(0x14e)][_0x22245c(0x1b7)](),this[_0x22245c(0x14e)]=null),this[_0x22245c(0x137)]&&(this[_0x22245c(0x137)][_0x22245c(0x166)](),this[_0x22245c(0x137)]=null),this[_0x22245c(0x1c2)]&&(this[_0x22245c(0x1c2)][_0x22245c(0x166)](),this[_0x22245c(0x1c2)]=null);}[_0x275cdc(0x15d)](){const _0x1e6b51=_0x275cdc;if(!this[_0x1e6b51(0x198)])return;if(!this[_0x1e6b51(0x19f)]())return void(this[_0x1e6b51(0x1c0)]=!0x0);this[_0x1e6b51(0x1c0)]=!0x1;const _0x2809e1=[...this[_0x1e6b51(0x13c)],...this[_0x1e6b51(0x14f)]],_0x565288=this[_0x1e6b51(0x15c)](),_0x394c22=this[_0x1e6b51(0x1a7)](_0x565288,_0x2809e1),_0x3ef605=_0x565288[_0x1e6b51(0x191)];_0x3ef605&&this[_0x1e6b51(0x133)](_0x3ef605),_0x565288[_0x1e6b51(0x170)](),this[_0x1e6b51(0x153)](_0x2809e1,_0x394c22);}[_0x275cdc(0x17f)](){const _0xcc6485=_0x275cdc;this[_0xcc6485(0x137)]=this[_0xcc6485(0x1b4)](),this[_0xcc6485(0x1c2)]=this[_0xcc6485(0x150)](),this[_0xcc6485(0x137)][_0xcc6485(0x174)](),this[_0xcc6485(0x198)][_0xcc6485(0x145)](this[_0xcc6485(0x137)][_0xcc6485(0x1ad)]),this[_0xcc6485(0x137)]['on'](_0xcc6485(0x192),()=>{const _0x533038=_0xcc6485;this[_0x533038(0x17e)]();}),_0x53352b({'emitter':this[_0xcc6485(0x1c2)],'contextElements':[this[_0xcc6485(0x1c2)][_0xcc6485(0x1ad)],this[_0xcc6485(0x137)][_0xcc6485(0x1ad)]],'callback':()=>this[_0xcc6485(0x1a6)](),'activator':()=>this[_0xcc6485(0x137)][_0xcc6485(0x199)]});}[_0x275cdc(0x1b4)](){const _0x511e39=_0x275cdc,_0x3abbbb=new _0x13022e(this[_0x511e39(0x1ae)]);_0x3abbbb[_0x511e39(0x1b5)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x55db19=[this[_0x511e39(0x16a)][_0x511e39(0x1ab)][_0x511e39(0x151)]];return this[_0x511e39(0x16a)][_0x511e39(0x1ab)][_0x511e39(0x13b)]&&_0x55db19[_0x511e39(0x1b8)](this[_0x511e39(0x16a)][_0x511e39(0x1ab)][_0x511e39(0x13b)]),_0x3abbbb[_0x511e39(0x142)]({'attributes':{'class':_0x55db19}}),_0x3abbbb;}[_0x275cdc(0x150)](){const _0xe6edb4=_0x275cdc,_0x5e7e55=new _0x4603e4(this[_0xe6edb4(0x1ae)]);return _0x5e7e55[_0xe6edb4(0x142)]({'attributes':{'class':this[_0xe6edb4(0x16a)][_0xe6edb4(0x1ab)][_0xe6edb4(0x181)]}}),this[_0xe6edb4(0x1ba)][_0xe6edb4(0x1c5)](_0x5e7e55),_0x5e7e55;}[_0x275cdc(0x16c)](){const _0x54b73e=_0x275cdc;if(this[_0x54b73e(0x1c2)]&&(this[_0x54b73e(0x1c2)][_0x54b73e(0x185)][_0x54b73e(0x164)](),this[_0x54b73e(0x14f)][_0x54b73e(0x19e)]>0x0)){this[_0x54b73e(0x14f)][_0x54b73e(0x1c7)](_0x57f043=>{const _0x3b569b=_0x54b73e;_0x57f043[_0x3b569b(0x163)]();});const _0x1a0c55=new _0x2c3dd2(this[_0x54b73e(0x1ae)]);_0x1a0c55[_0x54b73e(0x19d)]({'tag':_0x54b73e(0x1bb),'attributes':{'class':this[_0x54b73e(0x16a)][_0x54b73e(0x1ab)][_0x54b73e(0x135)]},'children':this[_0x54b73e(0x14f)]}),this[_0x54b73e(0x1c2)][_0x54b73e(0x185)][_0x54b73e(0x1c5)](_0x1a0c55);}}[_0x275cdc(0x17e)](){const _0x1c52ed=_0x275cdc;this[_0x1c52ed(0x137)][_0x1c52ed(0x199)]?this[_0x1c52ed(0x1a6)]():this[_0x1c52ed(0x18a)]();}[_0x275cdc(0x165)](){const _0x4e778f=_0x275cdc,_0x530267=this[_0x4e778f(0x14f)][_0x4e778f(0x19e)]>0x0;this[_0x4e778f(0x137)]?.[_0x4e778f(0x1ad)]&&(this[_0x4e778f(0x137)][_0x4e778f(0x1ad)][_0x4e778f(0x1b3)][_0x4e778f(0x17b)]=_0x530267?'':_0x4e778f(0x1a2));}[_0x275cdc(0x15a)](){const _0x31a11b=_0x275cdc;this[_0x31a11b(0x137)]?.[_0x31a11b(0x199)]&&this[_0x31a11b(0x1c2)]?.[_0x31a11b(0x19a)]&&this[_0x31a11b(0x137)][_0x31a11b(0x1ad)]&&this[_0x31a11b(0x1c2)][_0x31a11b(0x193)]({'target':this[_0x31a11b(0x137)][_0x31a11b(0x1ad)],'limiter':document[_0x31a11b(0x15f)](_0x31a11b(0x146))});}[_0x275cdc(0x1a9)](_0x3265eb){const _0x26f093=_0x275cdc,_0x353e2b=this[_0x26f093(0x198)]?.[_0x26f093(0x1b1)][_0x26f093(0x1c4)]()||_0x26f093(0x1bb),_0x362665=this[_0x26f093(0x198)]?.[_0x26f093(0x14a)];if(_0x362665){const _0x2f155e=_0x362665[0x0]||'',_0xc5eac3=_0x3265eb[_0x26f093(0x15f)]('.'+_0x2f155e),_0x5e9e59=_0x3265eb[_0x26f093(0x15f)](_0x353e2b);return _0xc5eac3||_0x5e9e59||_0x3265eb;}return _0x3265eb[_0x26f093(0x15f)](_0x353e2b)||_0x3265eb;}[_0x275cdc(0x182)](){const _0x426a41=_0x275cdc,_0x16e873=this[_0x426a41(0x14b)]?.[_0x426a41(0x1ad)]||this[_0x426a41(0x198)];if(!_0x16e873)return wn;const _0x53d728=window[_0x426a41(0x157)](_0x16e873)[_0x426a41(0x197)];if(_0x426a41(0x154)===_0x53d728||_0x426a41(0x195)===_0x53d728||!_0x53d728){const _0x1b4964=_0x16e873[_0x426a41(0x178)];if(_0x1b4964){const _0x4ce2c0=window[_0x426a41(0x157)](_0x1b4964);return _0x426a41(0x154)!==_0x4ce2c0[_0x426a41(0x197)]?_0x4ce2c0[_0x426a41(0x197)]:wn;}return wn;}return _0x53d728;}[_0x275cdc(0x175)](_0x3dd86f,_0x3f6f3c){const _0x596f49=_0x275cdc;this[_0x596f49(0x16a)][_0x596f49(0x1ab)][_0x596f49(0x19b)]&&_0x3dd86f[_0x596f49(0x14a)][_0x596f49(0x1c5)](this[_0x596f49(0x16a)][_0x596f49(0x1ab)][_0x596f49(0x19b)]),_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x197)]=_0x3f6f3c,_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x1bf)]=_0x596f49(0x143),_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x194)]=_0x596f49(0x179),_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x176)]=_0x596f49(0x179),_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x1b9)]='0',_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x14c)]=_0x596f49(0x1a2),_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x1af)]='-1',_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x18d)]=_0x596f49(0x177),_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x17b)]=_0x596f49(0x1bd),_0x3dd86f[_0x596f49(0x1b3)][_0x596f49(0x140)]=_0x596f49(0x144);}[_0x275cdc(0x133)](_0x117064){const _0xe6a9d4=_0x275cdc;_0x117064[_0xe6a9d4(0x1c7)](({element:_0x5a6298,originalDisplay:_0x591804,originalVisibility:_0x1bc9da})=>{const _0xa3589c=_0xe6a9d4;_0x5a6298[_0xa3589c(0x1b3)][_0xa3589c(0x17b)]=_0x591804,_0x5a6298[_0xa3589c(0x1b3)][_0xa3589c(0x18d)]=_0x1bc9da;});}[_0x275cdc(0x16d)](_0x127409){const _0xf2600=_0x275cdc,_0x1d6f17=[];let _0x22b8e3=_0x127409;for(;_0x22b8e3&&_0x22b8e3!==document[_0xf2600(0x156)];){const _0x269225=window[_0xf2600(0x157)](_0x22b8e3);_0xf2600(0x1a2)!==_0x269225[_0xf2600(0x17b)]&&_0xf2600(0x167)!==_0x269225[_0xf2600(0x18d)]||(_0x1d6f17[_0xf2600(0x1b8)]({'element':_0x22b8e3,'originalDisplay':_0x22b8e3[_0xf2600(0x1b3)][_0xf2600(0x17b)],'originalVisibility':_0x22b8e3[_0xf2600(0x1b3)][_0xf2600(0x18d)]}),_0x22b8e3[_0xf2600(0x1b3)][_0xf2600(0x17b)]=_0xf2600(0x18e),_0x22b8e3[_0xf2600(0x1b3)][_0xf2600(0x18d)]=_0xf2600(0x1c1)),_0x22b8e3=_0x22b8e3[_0xf2600(0x178)];}return _0x1d6f17;}[_0x275cdc(0x1a1)](){const _0x5e9c92=_0x275cdc;let _0x523cd7,_0xaf7f81;return this[_0x5e9c92(0x14b)]?.[_0x5e9c92(0x1ad)]?(_0x523cd7=this[_0x5e9c92(0x14b)][_0x5e9c92(0x1ad)][_0x5e9c92(0x180)](!0x0),_0xaf7f81=this[_0x5e9c92(0x1a9)](_0x523cd7)):(_0x523cd7=document[_0x5e9c92(0x136)](_0x5e9c92(0x1bb)),_0xaf7f81=_0x523cd7),{'calculationContainer':_0x523cd7,'targetContainer':_0xaf7f81};}[_0x275cdc(0x15c)](){const _0x265c61=_0x275cdc,{calculationContainer:_0x39fd07,targetContainer:_0x3cce6a}=this[_0x265c61(0x1a1)](),_0x26e180=this[_0x265c61(0x182)]();this[_0x265c61(0x175)](_0x39fd07,_0x26e180);const _0x423b2a=this[_0x265c61(0x14b)]?.[_0x265c61(0x1ad)]||this[_0x265c61(0x198)],_0xa6d6ec=_0x423b2a?.[_0x265c61(0x178)];_0xa6d6ec?_0xa6d6ec[_0x265c61(0x145)](_0x39fd07):document[_0x265c61(0x156)][_0x265c61(0x145)](_0x39fd07),_0x39fd07[_0x265c61(0x13f)]=_0x3cce6a;const _0x2b75da=this[_0x265c61(0x16d)](_0xa6d6ec||null);return _0x39fd07[_0x265c61(0x1c3)],_0x39fd07[_0x265c61(0x191)]=_0x2b75da,_0x39fd07;}[_0x275cdc(0x1a7)](_0x26e930,_0x47d401){const _0x355eb7=_0x275cdc,_0x43f20c=_0x26e930[_0x355eb7(0x13f)]||_0x26e930,_0x1bd419=[],{rowCount:_0x506e2f}=this[_0x355eb7(0x168)](_0x43f20c,_0x47d401);if(_0x506e2f<=this[_0x355eb7(0x16a)][_0x355eb7(0x159)])return _0x1bd419;const _0x5157a4=_0x47d401[_0x355eb7(0x138)]();for(;_0x5157a4[_0x355eb7(0x19e)]>0x0;){if(this[_0x355eb7(0x1a5)](_0x26e930,_0x43f20c,_0x5157a4)){const _0x10b668=_0x47d401[_0x355eb7(0x152)](_0x1db810=>!_0x5157a4[_0x355eb7(0x1a8)](_0x1db810));_0x1bd419[_0x355eb7(0x1b8)](..._0x10b668);break;}if(!_0x5157a4[_0x355eb7(0x173)]())break;}return _0x1bd419;}[_0x275cdc(0x168)](_0x484401,_0x32c2fb){const _0x96b4f6=_0x275cdc;_0x484401[_0x96b4f6(0x171)]='',_0x32c2fb[_0x96b4f6(0x1c7)](_0xc9de34=>{const _0x40fdde=_0x96b4f6;if(_0xc9de34[_0x40fdde(0x1ad)]){const _0x44d237=_0xc9de34[_0x40fdde(0x1ad)][_0x40fdde(0x180)](!0x0);_0x484401[_0x40fdde(0x145)](_0x44d237);}}),_0x484401[_0x96b4f6(0x1c3)];const _0x10231f=_0x484401[_0x96b4f6(0x1bc)],_0x2b6a4a=[];return Array[_0x96b4f6(0x1b0)](_0x10231f)[_0x96b4f6(0x1c7)](_0x5157fd=>{const _0x535d9d=_0x96b4f6,_0x11b067=_0x5157fd[_0x535d9d(0x16e)]()[_0x535d9d(0x194)];_0x2b6a4a[_0x535d9d(0x19c)](_0x5a476a=>Math[_0x535d9d(0x141)](_0x5a476a-_0x11b067)<this[_0x535d9d(0x16a)][_0x535d9d(0x1ac)])||_0x2b6a4a[_0x535d9d(0x1b8)](_0x11b067);}),{'rowCount':_0x2b6a4a[_0x96b4f6(0x19e)]};}[_0x275cdc(0x147)](){const _0xd497=_0x275cdc,_0x5b425b=document[_0xd497(0x136)](_0xd497(0x172));return _0x5b425b[_0xd497(0x183)]=this[_0xd497(0x16a)][_0xd497(0x1ab)][_0xd497(0x151)],this[_0xd497(0x16a)][_0xd497(0x1ab)][_0xd497(0x13b)]&&_0x5b425b[_0xd497(0x14a)][_0xd497(0x1c5)](this[_0xd497(0x16a)][_0xd497(0x1ab)][_0xd497(0x13b)]),_0x5b425b[_0xd497(0x17a)]=_0xd497(0x1b2),_0x5b425b;}[_0x275cdc(0x1a5)](_0x4be23d,_0x37de2e,_0x60a63d){const _0x1a99e3=_0x275cdc;this[_0x1a99e3(0x168)](_0x37de2e,_0x60a63d);const _0x414e6f=this[_0x1a99e3(0x147)]();_0x4be23d[_0x1a99e3(0x145)](_0x414e6f),_0x4be23d[_0x1a99e3(0x1c3)];const _0x29a6f0=[..._0x37de2e[_0x1a99e3(0x1bc)],_0x414e6f],_0x289eac=[];_0x29a6f0[_0x1a99e3(0x1c7)](_0x545ebb=>{const _0x48f249=_0x1a99e3,_0xb3d877=_0x545ebb[_0x48f249(0x16e)]()[_0x48f249(0x194)];_0x289eac[_0x48f249(0x19c)](_0x57e8cc=>Math[_0x48f249(0x141)](_0x57e8cc-_0xb3d877)<this[_0x48f249(0x16a)][_0x48f249(0x1ac)])||_0x289eac[_0x48f249(0x1b8)](_0xb3d877);});const _0x8305e6=_0x289eac[_0x1a99e3(0x19e)];return _0x414e6f[_0x1a99e3(0x170)](),_0x8305e6<=this[_0x1a99e3(0x16a)][_0x1a99e3(0x159)];}[_0x275cdc(0x149)](_0xbadb16,_0x343241){const _0x37a750=_0x275cdc;this[_0x37a750(0x13c)][_0x37a750(0x164)](),this[_0x37a750(0x14f)][_0x37a750(0x164)](),_0xbadb16[_0x37a750(0x1c7)](_0x3e3b0a=>{const _0x44eb1c=_0x37a750;_0x343241[_0x44eb1c(0x1a8)](_0x3e3b0a)?this[_0x44eb1c(0x14f)][_0x44eb1c(0x1c5)](_0x3e3b0a):this[_0x44eb1c(0x13c)][_0x44eb1c(0x1c5)](_0x3e3b0a);});}[_0x275cdc(0x16b)](_0x30f4a5){const _0x3bfd59=_0x275cdc;if(_0x30f4a5>0x0&&!this[_0x3bfd59(0x137)]&&this[_0x3bfd59(0x17f)](),_0x30f4a5>0x0&&this[_0x3bfd59(0x137)]){const _0x3292f9=''+this[_0x3bfd59(0x16a)][_0x3bfd59(0x148)]+(_0x30f4a5<0x63?_0x30f4a5:'99');this[_0x3bfd59(0x137)][_0x3bfd59(0x134)]=_0x3292f9;}this[_0x3bfd59(0x16c)](),this[_0x3bfd59(0x165)](),this[_0x3bfd59(0x15a)]();}[_0x275cdc(0x153)](_0x572bd4,_0x2042fe){const _0x12976f=_0x275cdc;this[_0x12976f(0x149)](_0x572bd4,_0x2042fe),this[_0x12976f(0x16b)](_0x2042fe[_0x12976f(0x19e)]);}[_0x275cdc(0x160)](){const _0x28c838=_0x275cdc;this[_0x28c838(0x198)]&&_0x28c838(0x16f)!=typeof IntersectionObserver&&(this[_0x28c838(0x14e)]=new IntersectionObserver(_0x3cfbbb=>{const _0x4f1702=_0x28c838;_0x3cfbbb[0x0][_0x4f1702(0x17d)]&&this[_0x4f1702(0x1c0)]&&requestAnimationFrame(()=>{const _0x1d11c8=_0x4f1702;this[_0x1d11c8(0x15d)]();});},{'threshold':0.01,'rootMargin':_0x28c838(0x18c)}),this[_0x28c838(0x14e)][_0x28c838(0x162)](this[_0x28c838(0x198)]));}[_0x275cdc(0x19f)](){const _0x4cedf3=_0x275cdc;if(!this[_0x4cedf3(0x198)])return!0x1;if(!this[_0x4cedf3(0x198)][_0x4cedf3(0x186)])return!0x1;const _0x2af3c1=this[_0x4cedf3(0x198)][_0x4cedf3(0x16e)]();if(0x0===_0x2af3c1[_0x4cedf3(0x197)]||0x0===_0x2af3c1[_0x4cedf3(0x155)])return!0x1;const _0x14ebba=window[_0x4cedf3(0x189)]||document[_0x4cedf3(0x13d)][_0x4cedf3(0x196)],_0x3e7c3c=window[_0x4cedf3(0x14d)]||document[_0x4cedf3(0x13d)][_0x4cedf3(0x17c)],_0x499408=0xc8;return _0x2af3c1[_0x4cedf3(0x1c6)]>=-0xc8&&_0x2af3c1[_0x4cedf3(0x194)]<=_0x14ebba+_0x499408&&_0x2af3c1[_0x4cedf3(0x1a4)]>=-0xc8&&_0x2af3c1[_0x4cedf3(0x176)]<=_0x3e7c3c+_0x499408;}}
|
|
23
|
+
function _0x2b51(){const _0x332cf1=['parentElement','_containerElement','getComputedStyle','_config','includes','visible','offsetWidth','_testButtonFit','showMoreBalloon','_checkAndHandleOverflow','width','_findTargetContainer','from','_createShowMoreButtonView','setTemplate','showMoreButtonView','body','_bodyCollection','_pendingCalculation','_createCalculationContainer','toLowerCase','zIndex','button','118234GuChAK','clear','reorganizeChips','querySelector','overflowContainer','_updateOverflowUI','extendTemplate','height','pop','push','114GHxvDA','forEach','auto','isIntersecting','cssClasses','_createMockButton','createElement','children','-9999px','innerHTML','undefined','bottom','element','appendChild','display','tagName','_showMoreBalloonPanelView','boxSizing','_targetContainer','some','_updateShowMoreButtonVisibility','label','showMoreButton','maxVisibleRows','top','overflowChips','visible\x20!important','showBalloonPanel','setContainerElement','_intersectionObserver','hidden','ck-calculation-container','654528Smowzf','+\x201','abs','render','innerWidth','11421540gBsRDX','_createContainerElements','_makeAncestorsVisible','visibility','_distributeChips','controlsButton','absolute','50px','_calculateContainerWidth','1215884EbSYSa','_applyCalculationStyles','_isContainerVisible','isOn','textContent','_renderChipsAndCountRows','position','execute','none','innerHeight','_updateBalloonContent','1219990PAuICZ','isConnected','_applyOverflowResults','rowDetectionTolerance','pin','_handleShowMoreButtonClick','_repinBalloonPanel','right','.ck-ai-chat','show','length','getBoundingClientRect','cloneNode','content','_setupVisibilityObserver','disableAnimationOnEnter','opacity','observe','div','1hwWplO','_calculateOverflowInContainer','hide','classList','left','documentElement','style','_createShowMoreBalloonPanelView','className','_visibleChips','clientHeight','300px','border-box','_showMoreButtonView','_ancestorsToRestore','showMoreLabelPrefix','3447800ukxvuv','0px','slice','_overflowChips','set','add','_parentView','hideBalloonPanel','remove','clientWidth','destroy','isVisible','_locale','101206udtbBo','_createShowMoreButton','calculationContainer','pointerEvents','filter','_restoreAncestorVisibility','block','disconnect','block\x20!important'];_0x2b51=function(){return _0x332cf1;};return _0x2b51();}const _0x5e93c0=_0x4c38;(function(_0x2c1c13,_0x4b9d01){const _0x20f6e1=_0x4c38,_0x2bbaf7=_0x2c1c13();while(!![]){try{const _0x2b34f2=-parseInt(_0x20f6e1(0x1ef))/0x1*(parseInt(_0x20f6e1(0x199))/0x2)+-parseInt(_0x20f6e1(0x1c3))/0x3+parseInt(_0x20f6e1(0x1d1))/0x4+-parseInt(_0x20f6e1(0x1dc))/0x5+-parseInt(_0x20f6e1(0x1a3))/0x6*(parseInt(_0x20f6e1(0x179))/0x7)+-parseInt(_0x20f6e1(0x1ff))/0x8+parseInt(_0x20f6e1(0x1c8))/0x9;if(_0x2b34f2===_0x4b9d01)break;else _0x2bbaf7['push'](_0x2bbaf7['shift']());}catch(_0x1bd603){_0x2bbaf7['push'](_0x2bbaf7['shift']());}}}(_0x2b51,0x547cf));function _0x4c38(_0x2b048f,_0x11f782){const _0x2b5160=_0x2b51();return _0x4c38=function(_0x4c38fc,_0x242a6e){_0x4c38fc=_0x4c38fc-0x16e;let _0x3e68d3=_0x2b5160[_0x4c38fc];return _0x3e68d3;},_0x4c38(_0x2b048f,_0x11f782);}import{View as _0x131672,BalloonPanelView as _0x49f673,ButtonView as _0x8a111a,clickOutsideHandler as _0x3756e8}from'ckeditor5/src/ui.js';import{Collection as _0x493a2b}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x5e93c0(0x1fa);export class AIChatChipsOverflowManager{[_0x5e93c0(0x178)];[_0x5e93c0(0x185)];[_0x5e93c0(0x1f8)];[_0x5e93c0(0x16f)];[_0x5e93c0(0x1fc)]=null;[_0x5e93c0(0x1b3)]=null;[_0x5e93c0(0x183)]=null;[_0x5e93c0(0x193)];[_0x5e93c0(0x172)]=null;[_0x5e93c0(0x1c0)]=null;[_0x5e93c0(0x194)]=!0x1;constructor(_0x37fd63,_0x2366c9,_0x580146,_0x380acc,_0x59d546){const _0x373f0a=_0x5e93c0;this[_0x373f0a(0x178)]=_0x37fd63,this[_0x373f0a(0x1f8)]=_0x2366c9,this[_0x373f0a(0x185)]={...hn,..._0x580146,'cssClasses':{'controlsButton':'','calculationContainer':_0x373f0a(0x1c2),..._0x580146[_0x373f0a(0x1a7)]}},this[_0x373f0a(0x16f)]=new _0x493a2b(),this[_0x373f0a(0x193)]=_0x380acc,this[_0x373f0a(0x172)]=_0x59d546||null;}[_0x5e93c0(0x1bf)](_0x16f7cd){const _0x1cc0c2=_0x5e93c0;this[_0x1cc0c2(0x1c0)]&&(this[_0x1cc0c2(0x1c0)][_0x1cc0c2(0x180)](),this[_0x1cc0c2(0x1c0)]=null),this[_0x1cc0c2(0x183)]=_0x16f7cd,this[_0x1cc0c2(0x1ea)]();}get[_0x5e93c0(0x191)](){const _0x5b75ab=_0x5e93c0;return this[_0x5b75ab(0x1fc)];}get[_0x5e93c0(0x1bc)](){const _0x1003ea=_0x5e93c0;return this[_0x1003ea(0x16f)];}[_0x5e93c0(0x19b)](){requestAnimationFrame(()=>{const _0x43a607=_0x4c38;this[_0x43a607(0x18b)]();});}[_0x5e93c0(0x1be)](){const _0x5141d8=_0x5e93c0;this[_0x5141d8(0x1fc)]&&this[_0x5141d8(0x1b3)]&&(this[_0x5141d8(0x1db)](),this[_0x5141d8(0x1fc)][_0x5141d8(0x1d4)]=!0x0,this[_0x5141d8(0x1b3)][_0x5141d8(0x1e5)](),this[_0x5141d8(0x1b3)][_0x5141d8(0x1e0)]({'target':this[_0x5141d8(0x1fc)][_0x5141d8(0x1af)],'limiter':document[_0x5141d8(0x19c)](_0x5141d8(0x1e4))}));}[_0x5e93c0(0x173)](){const _0x394b83=_0x5e93c0;this[_0x394b83(0x1fc)]&&this[_0x394b83(0x1b3)]&&(this[_0x394b83(0x1fc)][_0x394b83(0x1d4)]=!0x1,this[_0x394b83(0x1b3)][_0x394b83(0x1f1)]());}[_0x5e93c0(0x19a)](){const _0x38533a=_0x5e93c0;this[_0x38533a(0x16f)][_0x38533a(0x19a)](),this[_0x38533a(0x173)](),this[_0x38533a(0x1b7)](),this[_0x38533a(0x1fc)]&&(this[_0x38533a(0x1fc)][_0x38533a(0x1b8)]=''),this[_0x38533a(0x1b3)]&&this[_0x38533a(0x1b3)][_0x38533a(0x1e9)][_0x38533a(0x19a)]();}[_0x5e93c0(0x176)](){const _0x4d81b5=_0x5e93c0;this[_0x4d81b5(0x1c0)]&&(this[_0x4d81b5(0x1c0)][_0x4d81b5(0x180)](),this[_0x4d81b5(0x1c0)]=null),this[_0x4d81b5(0x1fc)]&&(this[_0x4d81b5(0x1fc)][_0x4d81b5(0x176)](),this[_0x4d81b5(0x1fc)]=null),this[_0x4d81b5(0x1b3)]&&(this[_0x4d81b5(0x1b3)][_0x4d81b5(0x176)](),this[_0x4d81b5(0x1b3)]=null);}[_0x5e93c0(0x18b)](){const _0x453936=_0x5e93c0;if(!this[_0x453936(0x183)])return;if(!this[_0x453936(0x1d3)]())return void(this[_0x453936(0x194)]=!0x0);this[_0x453936(0x194)]=!0x1;const _0x56b05a=[...this[_0x453936(0x1f8)],...this[_0x453936(0x16f)]],_0x401da2=this[_0x453936(0x195)](),_0x41e77b=this[_0x453936(0x1f0)](_0x401da2,_0x56b05a),_0xe5d796=_0x401da2[_0x453936(0x1fd)];_0xe5d796&&this[_0x453936(0x17e)](_0xe5d796),_0x401da2[_0x453936(0x174)](),this[_0x453936(0x1de)](_0x56b05a,_0x41e77b);}[_0x5e93c0(0x17a)](){const _0x4e404d=_0x5e93c0;this[_0x4e404d(0x1fc)]=this[_0x4e404d(0x18f)](),this[_0x4e404d(0x1b3)]=this[_0x4e404d(0x1f6)](),this[_0x4e404d(0x1fc)][_0x4e404d(0x1c6)](),this[_0x4e404d(0x183)][_0x4e404d(0x1b0)](this[_0x4e404d(0x1fc)][_0x4e404d(0x1af)]),this[_0x4e404d(0x1fc)]['on'](_0x4e404d(0x1d8),()=>{const _0xd70189=_0x4e404d;this[_0xd70189(0x1e1)]();}),_0x3756e8({'emitter':this[_0x4e404d(0x1b3)],'contextElements':[this[_0x4e404d(0x1b3)][_0x4e404d(0x1af)],this[_0x4e404d(0x1fc)][_0x4e404d(0x1af)]],'callback':()=>this[_0x4e404d(0x173)](),'activator':()=>this[_0x4e404d(0x1fc)][_0x4e404d(0x1d4)]});}[_0x5e93c0(0x18f)](){const _0x5c4e5c=_0x5e93c0,_0x32effa=new _0x8a111a(this[_0x5c4e5c(0x178)]);_0x32effa[_0x5c4e5c(0x170)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0xe98a46=[this[_0x5c4e5c(0x185)][_0x5c4e5c(0x1a7)][_0x5c4e5c(0x1b9)]];return this[_0x5c4e5c(0x185)][_0x5c4e5c(0x1a7)][_0x5c4e5c(0x1cd)]&&_0xe98a46[_0x5c4e5c(0x1a2)](this[_0x5c4e5c(0x185)][_0x5c4e5c(0x1a7)][_0x5c4e5c(0x1cd)]),_0x32effa[_0x5c4e5c(0x19f)]({'attributes':{'class':_0xe98a46}}),_0x32effa;}[_0x5e93c0(0x1f6)](){const _0x49c65c=_0x5e93c0,_0x3d38f1=new _0x49f673(this[_0x49c65c(0x178)]);return _0x3d38f1[_0x49c65c(0x19f)]({'attributes':{'class':this[_0x49c65c(0x185)][_0x49c65c(0x1a7)][_0x49c65c(0x18a)]}}),this[_0x49c65c(0x193)][_0x49c65c(0x171)](_0x3d38f1),_0x3d38f1;}[_0x5e93c0(0x1db)](){const _0x24b0a7=_0x5e93c0;if(this[_0x24b0a7(0x1b3)]&&(this[_0x24b0a7(0x1b3)][_0x24b0a7(0x1e9)][_0x24b0a7(0x19a)](),this[_0x24b0a7(0x16f)][_0x24b0a7(0x1e6)]>0x0)){this[_0x24b0a7(0x16f)][_0x24b0a7(0x1a4)](_0x238d2a=>{const _0x5280c2=_0x24b0a7;_0x238d2a[_0x5280c2(0x1eb)]();});const _0x53b4e5=new _0x131672(this[_0x24b0a7(0x178)]);_0x53b4e5[_0x24b0a7(0x190)]({'tag':_0x24b0a7(0x1ee),'attributes':{'class':this[_0x24b0a7(0x185)][_0x24b0a7(0x1a7)][_0x24b0a7(0x19d)]},'children':this[_0x24b0a7(0x16f)]}),this[_0x24b0a7(0x1b3)][_0x24b0a7(0x1e9)][_0x24b0a7(0x171)](_0x53b4e5);}}[_0x5e93c0(0x1e1)](){const _0xd38728=_0x5e93c0;this[_0xd38728(0x1fc)][_0xd38728(0x1d4)]?this[_0xd38728(0x173)]():this[_0xd38728(0x1be)]();}[_0x5e93c0(0x1b7)](){const _0x38d9fd=_0x5e93c0,_0x599bb7=this[_0x38d9fd(0x16f)][_0x38d9fd(0x1e6)]>0x0;this[_0x38d9fd(0x1fc)]?.[_0x38d9fd(0x1af)]&&(this[_0x38d9fd(0x1fc)][_0x38d9fd(0x1af)][_0x38d9fd(0x1f5)][_0x38d9fd(0x1b1)]=_0x599bb7?'':_0x38d9fd(0x1d9));}[_0x5e93c0(0x1e2)](){const _0x46869e=_0x5e93c0;this[_0x46869e(0x1fc)]?.[_0x46869e(0x1d4)]&&this[_0x46869e(0x1b3)]?.[_0x46869e(0x177)]&&this[_0x46869e(0x1fc)][_0x46869e(0x1af)]&&this[_0x46869e(0x1b3)][_0x46869e(0x1e0)]({'target':this[_0x46869e(0x1fc)][_0x46869e(0x1af)],'limiter':document[_0x46869e(0x19c)](_0x46869e(0x1e4))});}[_0x5e93c0(0x18d)](_0x124696){const _0x5151a3=_0x5e93c0,_0x4adcdf=this[_0x5151a3(0x183)]?.[_0x5151a3(0x1b2)][_0x5151a3(0x196)]()||_0x5151a3(0x1ee),_0x43c433=this[_0x5151a3(0x183)]?.[_0x5151a3(0x1f2)];if(_0x43c433){const _0x2e13f0=_0x43c433[0x0]||'',_0x27fe86=_0x124696[_0x5151a3(0x19c)]('.'+_0x2e13f0),_0x544f6f=_0x124696[_0x5151a3(0x19c)](_0x4adcdf);return _0x27fe86||_0x544f6f||_0x124696;}return _0x124696[_0x5151a3(0x19c)](_0x4adcdf)||_0x124696;}[_0x5e93c0(0x1d0)](){const _0x11897e=_0x5e93c0,_0x230870=this[_0x11897e(0x172)]?.[_0x11897e(0x1af)]||this[_0x11897e(0x183)];if(!_0x230870)return an;const _0xba3026=window[_0x11897e(0x184)](_0x230870)[_0x11897e(0x18c)];if(_0x11897e(0x1a5)===_0xba3026||_0x11897e(0x200)===_0xba3026||!_0xba3026){const _0x46ed79=_0x230870[_0x11897e(0x182)];if(_0x46ed79){const _0x9fa1cf=window[_0x11897e(0x184)](_0x46ed79);return _0x11897e(0x1a5)!==_0x9fa1cf[_0x11897e(0x18c)]?_0x9fa1cf[_0x11897e(0x18c)]:an;}return an;}return _0xba3026;}[_0x5e93c0(0x1d2)](_0x34d112,_0x2d58a8){const _0x380891=_0x5e93c0;this[_0x380891(0x185)][_0x380891(0x1a7)][_0x380891(0x17b)]&&_0x34d112[_0x380891(0x1f2)][_0x380891(0x171)](this[_0x380891(0x185)][_0x380891(0x1a7)][_0x380891(0x17b)]),_0x34d112[_0x380891(0x1f5)][_0x380891(0x18c)]=_0x2d58a8,_0x34d112[_0x380891(0x1f5)][_0x380891(0x1d7)]=_0x380891(0x1ce),_0x34d112[_0x380891(0x1f5)][_0x380891(0x1bb)]=_0x380891(0x1ab),_0x34d112[_0x380891(0x1f5)][_0x380891(0x1f3)]=_0x380891(0x1ab),_0x34d112[_0x380891(0x1f5)][_0x380891(0x1ec)]='0',_0x34d112[_0x380891(0x1f5)][_0x380891(0x17c)]=_0x380891(0x1d9),_0x34d112[_0x380891(0x1f5)][_0x380891(0x197)]='-1',_0x34d112[_0x380891(0x1f5)][_0x380891(0x1cb)]=_0x380891(0x1bd),_0x34d112[_0x380891(0x1f5)][_0x380891(0x1b1)]=_0x380891(0x181),_0x34d112[_0x380891(0x1f5)][_0x380891(0x1b4)]=_0x380891(0x1fb);}[_0x5e93c0(0x17e)](_0x37b731){const _0x1429b7=_0x5e93c0;_0x37b731[_0x1429b7(0x1a4)](({element:_0x3c7162,originalDisplay:_0x20882f,originalVisibility:_0x57c656})=>{const _0xcfbb71=_0x1429b7;_0x3c7162[_0xcfbb71(0x1f5)][_0xcfbb71(0x1b1)]=_0x20882f,_0x3c7162[_0xcfbb71(0x1f5)][_0xcfbb71(0x1cb)]=_0x57c656;});}[_0x5e93c0(0x1ca)](_0x42bc07){const _0x19a507=_0x5e93c0,_0x487dc7=[];let _0x5a0e26=_0x42bc07;for(;_0x5a0e26&&_0x5a0e26!==document[_0x19a507(0x192)];){const _0x589338=window[_0x19a507(0x184)](_0x5a0e26);_0x19a507(0x1d9)!==_0x589338[_0x19a507(0x1b1)]&&_0x19a507(0x1c1)!==_0x589338[_0x19a507(0x1cb)]||(_0x487dc7[_0x19a507(0x1a2)]({'element':_0x5a0e26,'originalDisplay':_0x5a0e26[_0x19a507(0x1f5)][_0x19a507(0x1b1)],'originalVisibility':_0x5a0e26[_0x19a507(0x1f5)][_0x19a507(0x1cb)]}),_0x5a0e26[_0x19a507(0x1f5)][_0x19a507(0x1b1)]=_0x19a507(0x17f),_0x5a0e26[_0x19a507(0x1f5)][_0x19a507(0x1cb)]=_0x19a507(0x187)),_0x5a0e26=_0x5a0e26[_0x19a507(0x182)];}return _0x487dc7;}[_0x5e93c0(0x1c9)](){const _0x4cbe8a=_0x5e93c0;let _0x2282bb,_0x446a06;return this[_0x4cbe8a(0x172)]?.[_0x4cbe8a(0x1af)]?(_0x2282bb=this[_0x4cbe8a(0x172)][_0x4cbe8a(0x1af)][_0x4cbe8a(0x1e8)](!0x0),_0x446a06=this[_0x4cbe8a(0x18d)](_0x2282bb)):(_0x2282bb=document[_0x4cbe8a(0x1a9)](_0x4cbe8a(0x1ee)),_0x446a06=_0x2282bb),{'calculationContainer':_0x2282bb,'targetContainer':_0x446a06};}[_0x5e93c0(0x195)](){const _0x91297c=_0x5e93c0,{calculationContainer:_0x3351fe,targetContainer:_0x113629}=this[_0x91297c(0x1c9)](),_0x440679=this[_0x91297c(0x1d0)]();this[_0x91297c(0x1d2)](_0x3351fe,_0x440679);const _0x2c7572=this[_0x91297c(0x172)]?.[_0x91297c(0x1af)]||this[_0x91297c(0x183)],_0x15e4ca=_0x2c7572?.[_0x91297c(0x182)];_0x15e4ca?_0x15e4ca[_0x91297c(0x1b0)](_0x3351fe):document[_0x91297c(0x192)][_0x91297c(0x1b0)](_0x3351fe),_0x3351fe[_0x91297c(0x1b5)]=_0x113629;const _0x21c20e=this[_0x91297c(0x1ca)](_0x15e4ca||null);return _0x3351fe[_0x91297c(0x188)],_0x3351fe[_0x91297c(0x1fd)]=_0x21c20e,_0x3351fe;}[_0x5e93c0(0x1f0)](_0x4d08a2,_0x81887c){const _0x4ae0e0=_0x5e93c0,_0x5c77e8=_0x4d08a2[_0x4ae0e0(0x1b5)]||_0x4d08a2,_0x433e4e=[],{rowCount:_0x5c22cc}=this[_0x4ae0e0(0x1d6)](_0x5c77e8,_0x81887c);if(_0x5c22cc<=this[_0x4ae0e0(0x185)][_0x4ae0e0(0x1ba)])return _0x433e4e;const _0x159454=_0x81887c[_0x4ae0e0(0x16e)]();for(;_0x159454[_0x4ae0e0(0x1e6)]>0x0;){if(this[_0x4ae0e0(0x189)](_0x4d08a2,_0x5c77e8,_0x159454)){const _0x25c2c8=_0x81887c[_0x4ae0e0(0x17d)](_0x342ab1=>!_0x159454[_0x4ae0e0(0x186)](_0x342ab1));_0x433e4e[_0x4ae0e0(0x1a2)](..._0x25c2c8);break;}if(!_0x159454[_0x4ae0e0(0x1a1)]())break;}return _0x433e4e;}[_0x5e93c0(0x1d6)](_0x1e1235,_0x5015f7){const _0x20e177=_0x5e93c0;_0x1e1235[_0x20e177(0x1ac)]='',_0x5015f7[_0x20e177(0x1a4)](_0x59ebf9=>{const _0x1b3b1d=_0x20e177;if(_0x59ebf9[_0x1b3b1d(0x1af)]){const _0x2166cd=_0x59ebf9[_0x1b3b1d(0x1af)][_0x1b3b1d(0x1e8)](!0x0);_0x1e1235[_0x1b3b1d(0x1b0)](_0x2166cd);}}),_0x1e1235[_0x20e177(0x188)];const _0x120462=_0x1e1235[_0x20e177(0x1aa)],_0x1278af=[];return Array[_0x20e177(0x18e)](_0x120462)[_0x20e177(0x1a4)](_0x35ef19=>{const _0xdf11c=_0x20e177,_0x426cd3=_0x35ef19[_0xdf11c(0x1e7)]()[_0xdf11c(0x1bb)];_0x1278af[_0xdf11c(0x1b6)](_0x41f86f=>Math[_0xdf11c(0x1c5)](_0x41f86f-_0x426cd3)<this[_0xdf11c(0x185)][_0xdf11c(0x1df)])||_0x1278af[_0xdf11c(0x1a2)](_0x426cd3);}),{'rowCount':_0x1278af[_0x20e177(0x1e6)]};}[_0x5e93c0(0x1a8)](){const _0x280a09=_0x5e93c0,_0x9a8d5f=document[_0x280a09(0x1a9)](_0x280a09(0x198));return _0x9a8d5f[_0x280a09(0x1f7)]=this[_0x280a09(0x185)][_0x280a09(0x1a7)][_0x280a09(0x1b9)],this[_0x280a09(0x185)][_0x280a09(0x1a7)][_0x280a09(0x1cd)]&&_0x9a8d5f[_0x280a09(0x1f2)][_0x280a09(0x171)](this[_0x280a09(0x185)][_0x280a09(0x1a7)][_0x280a09(0x1cd)]),_0x9a8d5f[_0x280a09(0x1d5)]=_0x280a09(0x1c4),_0x9a8d5f;}[_0x5e93c0(0x189)](_0x2ac373,_0x239c8c,_0x36959c){const _0x59d27b=_0x5e93c0;this[_0x59d27b(0x1d6)](_0x239c8c,_0x36959c);const _0x35bfb=this[_0x59d27b(0x1a8)]();_0x2ac373[_0x59d27b(0x1b0)](_0x35bfb),_0x2ac373[_0x59d27b(0x188)];const _0x4ab2f9=[..._0x239c8c[_0x59d27b(0x1aa)],_0x35bfb],_0x3dc5f4=[];_0x4ab2f9[_0x59d27b(0x1a4)](_0x50d9f2=>{const _0x231c1c=_0x59d27b,_0x51d39e=_0x50d9f2[_0x231c1c(0x1e7)]()[_0x231c1c(0x1bb)];_0x3dc5f4[_0x231c1c(0x1b6)](_0x3914a6=>Math[_0x231c1c(0x1c5)](_0x3914a6-_0x51d39e)<this[_0x231c1c(0x185)][_0x231c1c(0x1df)])||_0x3dc5f4[_0x231c1c(0x1a2)](_0x51d39e);});const _0x16d8ab=_0x3dc5f4[_0x59d27b(0x1e6)];return _0x35bfb[_0x59d27b(0x174)](),_0x16d8ab<=this[_0x59d27b(0x185)][_0x59d27b(0x1ba)];}[_0x5e93c0(0x1cc)](_0xe365cd,_0x402656){const _0x46084f=_0x5e93c0;this[_0x46084f(0x1f8)][_0x46084f(0x19a)](),this[_0x46084f(0x16f)][_0x46084f(0x19a)](),_0xe365cd[_0x46084f(0x1a4)](_0x25c8e0=>{const _0x3c0a77=_0x46084f;_0x402656[_0x3c0a77(0x186)](_0x25c8e0)?this[_0x3c0a77(0x16f)][_0x3c0a77(0x171)](_0x25c8e0):this[_0x3c0a77(0x1f8)][_0x3c0a77(0x171)](_0x25c8e0);});}[_0x5e93c0(0x19e)](_0x390346){const _0x3cffd6=_0x5e93c0;if(_0x390346>0x0&&!this[_0x3cffd6(0x1fc)]&&this[_0x3cffd6(0x17a)](),_0x390346>0x0&&this[_0x3cffd6(0x1fc)]){const _0x483cc4=''+this[_0x3cffd6(0x185)][_0x3cffd6(0x1fe)]+(_0x390346<0x63?_0x390346:'99');this[_0x3cffd6(0x1fc)][_0x3cffd6(0x1b8)]=_0x483cc4;}this[_0x3cffd6(0x1db)](),this[_0x3cffd6(0x1b7)](),this[_0x3cffd6(0x1e2)]();}[_0x5e93c0(0x1de)](_0x37c8a5,_0x3ce8c4){const _0x4ef905=_0x5e93c0;this[_0x4ef905(0x1cc)](_0x37c8a5,_0x3ce8c4),this[_0x4ef905(0x19e)](_0x3ce8c4[_0x4ef905(0x1e6)]);}[_0x5e93c0(0x1ea)](){const _0x537cb1=_0x5e93c0;this[_0x537cb1(0x183)]&&_0x537cb1(0x1ad)!=typeof IntersectionObserver&&(this[_0x537cb1(0x1c0)]=new IntersectionObserver(_0x5563a1=>{const _0x11fdb6=_0x537cb1;_0x5563a1[0x0][_0x11fdb6(0x1a6)]&&this[_0x11fdb6(0x194)]&&requestAnimationFrame(()=>{const _0x10d7a6=_0x11fdb6;this[_0x10d7a6(0x18b)]();});},{'threshold':0.01,'rootMargin':_0x537cb1(0x1cf)}),this[_0x537cb1(0x1c0)][_0x537cb1(0x1ed)](this[_0x537cb1(0x183)]));}[_0x5e93c0(0x1d3)](){const _0xb196a4=_0x5e93c0;if(!this[_0xb196a4(0x183)])return!0x1;if(!this[_0xb196a4(0x183)][_0xb196a4(0x1dd)])return!0x1;const _0x626668=this[_0xb196a4(0x183)][_0xb196a4(0x1e7)]();if(0x0===_0x626668[_0xb196a4(0x18c)]||0x0===_0x626668[_0xb196a4(0x1a0)])return!0x1;const _0x56e85e=window[_0xb196a4(0x1da)]||document[_0xb196a4(0x1f4)][_0xb196a4(0x1f9)],_0x18df30=window[_0xb196a4(0x1c7)]||document[_0xb196a4(0x1f4)][_0xb196a4(0x175)],_0x53304e=0xc8;return _0x626668[_0xb196a4(0x1ae)]>=-0xc8&&_0x626668[_0xb196a4(0x1bb)]<=_0x56e85e+_0x53304e&&_0x626668[_0xb196a4(0x1e3)]>=-0xc8&&_0x626668[_0xb196a4(0x1f3)]<=_0x18df30+_0x53304e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c745a=_0x6219;(function(_0x2b0c9a,_0x4247a1){const _0x2dddc8=_0x6219,_0x74d069=_0x2b0c9a();while(!![]){try{const _0x14eb76=-parseInt(_0x2dddc8(0x181))/0x1+parseInt(_0x2dddc8(0x16e))/0x2+parseInt(_0x2dddc8(0x195))/0x3+parseInt(_0x2dddc8(0x1a0))/0x4+parseInt(_0x2dddc8(0x17f))/0x5*(-parseInt(_0x2dddc8(0x180))/0x6)+-parseInt(_0x2dddc8(0x179))/0x7*(-parseInt(_0x2dddc8(0x1a7))/0x8)+-parseInt(_0x2dddc8(0x174))/0x9;if(_0x14eb76===_0x4247a1)break;else _0x74d069['push'](_0x74d069['shift']());}catch(_0x3863dd){_0x74d069['push'](_0x74d069['shift']());}}}(_0x10c0,0xe2c3c));import{ButtonView as _0x235338,IconView as _0x4e5599}from'ckeditor5/src/ui.js';import{IconClose as _0x2c1d08,IconDocument as _0x326aa5,IconFileUpload as _0x2e3b09,IconLink as _0x647c8a,IconSelection as _0xe76cb9}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1f6761}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x40a358}from'../../../aicore/ui/aispinner.js';function _0x10c0(){const _0x4622a4=['slice','ck-ai-chat-context-controls__chip-tooltip','isLoading','32822100ZYaiQS','_initializeProperties','_createIconView','_setupTemplate','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','6321847ymaYWO','_isAnimationOnEnterEnabled','locale','tooltip','_createLoaderIcon','remove','4124125gjAMOr','12jsbcBn','220742WBXEwK','ck-ai-chat-context-chip_wide','removeContextItemChip','extendTemplate','_createRemoveButton','addEventListener','readonly','_createLabelElement','webkitAnimationEnd','bind','type','label','ck-ai-chat-context-chip','setTemplate','removeEventListener','ck-ai-chat-context-chip__label','element','uiId','fire','ck-hidden','5518206cwEJGE','div','_handleAnimationEndOnce','classList','_setupRemoveButtonEvent','execute','_createTemplateChildren','bindTemplate','lastIndexOf','ck-ai-chat-context-chip_new-chip','content','6002372NccRPH','isVisible','selection','span','itemType','document','ck-ai-chat-context-chip_document','16fQIvdl','_createTemplateAttributes','disableAnimationOnEnter','set','length','ck-ai-chat-context-chip__type-icon','add','animationend','2599766lLsLiX','render','small'];_0x10c0=function(){return _0x4622a4;};return _0x10c0();}const xn={'file':_0x2e3b09,'document':_0x326aa5,'web-resource':_0x647c8a,'text':_0x2e3b09,'selection':_0xe76cb9,'mcp-tool-context':_0x326aa5},bn=_0x2c745a(0x18d),wn=_0x2c745a(0x182),Tn=_0x2c745a(0x1a6),En=_0x2c745a(0x190),fn=_0x2c745a(0x1ac),An=_0x2c745a(0x172),Cn='n';function _0x6219(_0x3c8b12,_0x1dda31){const _0x10c0a4=_0x10c0();return _0x6219=function(_0x621924,_0xc266d7){_0x621924=_0x621924-0x16c;let _0xb17533=_0x10c0a4[_0x621924];return _0xb17533;},_0x6219(_0x3c8b12,_0x1dda31);}export class AIChatContextItemButtonView extends _0x235338{constructor(_0x53717a,_0x254a7e,_0x5914dc,_0x35951a,_0x5615a6=!0x1){const _0x436001=_0x2c745a;super(_0x53717a),this[_0x436001(0x17a)]=_0x35951a,this[_0x436001(0x175)](_0x254a7e,_0x5914dc,_0x5615a6),this[_0x436001(0x177)]();}[_0x2c745a(0x16f)](){const _0xbae96b=_0x2c745a;super[_0xbae96b(0x16f)](),this[_0xbae96b(0x17a)]&&this[_0xbae96b(0x191)]&&(this[_0xbae96b(0x191)][_0xbae96b(0x198)][_0xbae96b(0x16c)](_0xbae96b(0x19e)),this[_0xbae96b(0x197)](this[_0xbae96b(0x191)],()=>{const _0x6cbb59=_0xbae96b;this[_0x6cbb59(0x191)]&&this[_0x6cbb59(0x191)][_0x6cbb59(0x198)][_0x6cbb59(0x17e)](_0x6cbb59(0x19e));}));}[_0x2c745a(0x1a9)](){const _0xf6535d=_0x2c745a;this[_0xf6535d(0x17a)]=!0x1,this[_0xf6535d(0x191)]&&this[_0xf6535d(0x191)][_0xf6535d(0x198)][_0xf6535d(0x17e)](_0xf6535d(0x19e));}[_0x2c745a(0x175)](_0x52f175,_0x12f269,_0x996750){const _0x41bfa8=_0x2c745a;this[_0x41bfa8(0x1aa)](_0x41bfa8(0x18c),_0x52f175[_0x41bfa8(0x18c)]),this[_0x41bfa8(0x1aa)](_0x41bfa8(0x17c),!0x0),this[_0x41bfa8(0x1aa)](_0x41bfa8(0x1a4),_0x52f175[_0x41bfa8(0x18b)]),this[_0x41bfa8(0x1aa)]('id',_0x52f175[_0x41bfa8(0x192)]),this[_0x41bfa8(0x1aa)](_0x41bfa8(0x187),_0x12f269),this[_0x41bfa8(0x1aa)](_0x41bfa8(0x173),_0x996750);}[_0x2c745a(0x177)](){const _0x36b12b=_0x2c745a,_0x563442=this[_0x36b12b(0x176)](),_0x59f3ec=this[_0x36b12b(0x185)](),_0x3532bb=this[_0x36b12b(0x19c)];this[_0x36b12b(0x18e)]({'tag':_0x36b12b(0x196),'attributes':this[_0x36b12b(0x1a8)](_0x3532bb),'children':this[_0x36b12b(0x19b)](_0x563442,_0x59f3ec,_0x3532bb)});}[_0x2c745a(0x1a8)](_0x23aa6b){const _0x1f6d21=_0x2c745a;return{'class':[bn,_0x23aa6b['if'](_0x1f6d21(0x1a4),Tn,_0xa00341=>_0x1f6d21(0x1a5)==_0xa00341),_0x23aa6b['if'](_0x1f6d21(0x1a4),wn,_0x3c82a8=>_0x1f6d21(0x1a2)==_0x3c82a8)],'data-cke-tooltip-text':_0x23aa6b['to'](_0x1f6d21(0x18c),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x2c745a(0x19b)](_0x102e26,_0x5dbb24,_0x42f385){const _0x29e4bf=_0x2c745a,_0x425263=this[_0x29e4bf(0x188)](_0x42f385),_0x3a2a38=this[_0x29e4bf(0x17d)]();return this[_0x29e4bf(0x187)]?[_0x102e26,_0x425263]:[_0x102e26,_0x3a2a38,_0x425263,_0x5dbb24];}[_0x2c745a(0x188)](_0x26c144){const _0x3edb47=_0x2c745a;return{'tag':_0x3edb47(0x1a3),'attributes':{'class':En},'children':[{'text':_0x26c144['to'](_0x3edb47(0x18c))}]};}[_0x2c745a(0x185)](){const _0x4e78a2=_0x2c745a,_0x4609fc=new _0x235338(this[_0x4e78a2(0x17b)]);return _0x4609fc[_0x4e78a2(0x1aa)]({'label':_0x1f6761(this[_0x4e78a2(0x17b)],_0x4e78a2(0x178)),'icon':_0x2c1d08}),this[_0x4e78a2(0x199)](_0x4609fc),_0x4609fc;}[_0x2c745a(0x199)](_0x524b52){const _0x14753f=_0x2c745a;_0x524b52['on'](_0x14753f(0x19a),()=>{const _0x1be66c=_0x14753f;this[_0x1be66c(0x193)](_0x1be66c(0x183),this['id']);});}[_0x2c745a(0x176)](){const _0x50f8ab=_0x2c745a,_0x16ca38=this[_0x50f8ab(0x19c)],_0x38a86f=new _0x4e5599();return _0x38a86f[_0x50f8ab(0x19f)]=xn[this[_0x50f8ab(0x1a4)]],_0x38a86f[_0x50f8ab(0x184)]({'attributes':{'class':[fn,_0x16ca38['if'](_0x50f8ab(0x173),_0x50f8ab(0x194),_0x34c43d=>_0x34c43d)]}}),_0x38a86f;}[_0x2c745a(0x197)](_0x1f5ae8,_0x125fd8){const _0x35c06b=_0x2c745a;if(!_0x1f5ae8)return;const _0x115128=()=>{const _0x2f225f=_0x6219;_0x125fd8(),_0x1f5ae8[_0x2f225f(0x18f)](_0x2f225f(0x16d),_0x115128),_0x1f5ae8[_0x2f225f(0x18f)](_0x2f225f(0x189),_0x115128);};_0x1f5ae8[_0x35c06b(0x186)](_0x35c06b(0x16d),_0x115128),_0x1f5ae8[_0x35c06b(0x186)](_0x35c06b(0x189),_0x115128);}[_0x2c745a(0x17d)](){const _0x5c071d=_0x2c745a,_0x7e8a22=new _0x40a358(_0x5c071d(0x170));return _0x7e8a22[_0x5c071d(0x18a)](_0x5c071d(0x1a1))['to'](this,_0x5c071d(0x173),_0x242385=>_0x242385),_0x7e8a22;}}function In(_0x579f33){const _0x2a0b82=_0x2c745a;if(!_0x579f33)return _0x579f33;if(_0x579f33[_0x2a0b82(0x1ab)]<=0x78)return _0x579f33;const _0x1b5318=_0x579f33[_0x2a0b82(0x171)](0x0,0x78),_0x39823c=_0x1b5318[_0x2a0b82(0x19d)]('\x20');return(_0x39823c>0x0?_0x1b5318[_0x2a0b82(0x171)](0x0,_0x39823c):_0x1b5318)+'…';}
|