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