@ckeditor/ckeditor5-ai 47.7.3-alpha.0 → 47.7.3
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/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/awstextadapter.js +1 -1
- 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/aiformview.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/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/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/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.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/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/utils/eventnames.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/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiediting.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/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/aisuggestioncontentpartstateview.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/documentrange.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/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.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/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/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x2e9c(_0x3ff2ce,_0x1b70c8){const _0x2d0da3=_0x2d0d();return _0x2e9c=function(_0x2e9c70,_0x530f72){_0x2e9c70=_0x2e9c70-0x160;let _0x596d27=_0x2d0da3[_0x2e9c70];return _0x596d27;},_0x2e9c(_0x3ff2ce,_0x1b70c8);}const _0x1ddf2f=_0x2e9c;(function(_0x54ca31,_0x59bf55){const _0x5dde2e=_0x2e9c,_0x5037d9=_0x54ca31();while(!![]){try{const _0x5b64be=parseInt(_0x5dde2e(0x1b6))/0x1+parseInt(_0x5dde2e(0x179))/0x2+-parseInt(_0x5dde2e(0x1c0))/0x3+-parseInt(_0x5dde2e(0x195))/0x4+-parseInt(_0x5dde2e(0x1be))/0x5*(-parseInt(_0x5dde2e(0x1a5))/0x6)+parseInt(_0x5dde2e(0x17f))/0x7+-parseInt(_0x5dde2e(0x1d9))/0x8;if(_0x5b64be===_0x59bf55)break;else _0x5037d9['push'](_0x5037d9['shift']());}catch(_0x53307b){_0x5037d9['push'](_0x5037d9['shift']());}}}(_0x2d0d,0x4213c));import{CKEditorError as _0x1bd84d,EmitterMixin as _0x16c950,logWarning as _0x36f5c1}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x5e58f0}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x159b9b,AI_CONTEXT_MODEL_EVENT_NAMES as _0x3ef73b}from'./aichatcontext.js';import{AICapabilities as _0x12dc93,CAPABILITIES_MODEL_EVENT_NAMES as _0x5b8c2c}from'../../aicore/model/aicapabilities.js';function _0x2d0d(){const _0x3461c8=['setReasoning','isSelectionInContext','removeFromContext','ai-chat-conversation-set-model-null','connector','prompt','modelSelected','toggleReasoning','conversationId','_handleToolResultData','chatModels','delegate','interactions','getPendingContextItems','getModel','719886gwqLcy','ai-chat-conversation-start-failed','ai-chat-conversation-init-from-id-failed','updateCurrentDocumentInContext','error','isFromHistory','stop','sessionId','removeSelectionFromContext','attributes','ai-chat-conversation-init-failed','role','ai-chat-handle-user-interaction-already-in-progress','fire','selectedModel','addSelectionToContext','addToConversationContext','8774zuEFbY','removeInteraction','reset','ai-chat-conversation-start-no-model-selected','addToolItemToContext','splice','length','isStarted','10nddvgf','setWebSearch','1197972UZJeeA','getCurrentDocumentContext','setConversationTitle','_extractContextItems','getAll','isAvailable','setModel','ai-chat-conversation-already-started','getEditor','startConversation','hasOwn','populateFromMessage','isCurrentDocumentInConversation','code','loadSourceResources','user','get','toLowerCase','set','content','currentReply','currentInteraction','_processMessagesToInteractions','chatCapabilities','toolName','184160oQHgNF','parse','conversationStarted','indexOf','updateCurrentDocument','url','type','model','isCurrentDocumentInContext','push','group','modification','start','createInteraction','conversationInitialized','createReply','chatContext','getInteraction','interactionCreated','stack','message','ai-chat-handle-user-conversation-not-initialized','getDocumentContext','addFilesToContext','getConversation','init','getCapabilitiesConfig','title','255768pfMzMv','load','toggleWebSearch','getAvailableModels','options','capabilities','2231943DZYWnZ','handleUserInteraction','addResourceToContext','lastInteraction','ai-chat-conversation-set-model-not-available','fetchConversationMessages','selectedModelId','destroy','addUrlToContext','appendContent','ai-chat-handle-user-interaction-start-failed','reasoning','webSearch','mcp-tool-result','text','addCurrentDocumentToContext','sources','contextItems','fetchConversation','assistant','find','getMessages','9892syBbwH'];_0x2d0d=function(){return _0x3461c8;};return _0x2d0d();}import{AIChatInteraction as _0x34a9bd}from'./aichatinteraction.js';import{errorsMap as _0x1d1241}from'../../errorsmap.js';export class AIChatConversation extends _0x16c950(){['id'];[_0x1ddf2f(0x1bd)]=!0x1;[_0x1ddf2f(0x1aa)];[_0x1ddf2f(0x1a2)]=[];[_0x1ddf2f(0x1d5)];[_0x1ddf2f(0x1b3)];[_0x1ddf2f(0x19a)];[_0x1ddf2f(0x17d)];constructor(_0x247cc0){const _0x10a79f=_0x1ddf2f;super(),this[_0x10a79f(0x17d)]=_0x247cc0,this[_0x10a79f(0x19a)]=_0x247cc0[_0x10a79f(0x19a)],this[_0x10a79f(0x1a0)]=_0x247cc0[_0x10a79f(0x1a0)],this['id']=_0x247cc0[_0x10a79f(0x19e)],this[_0x10a79f(0x1aa)]=_0x247cc0[_0x10a79f(0x1aa)];}async[_0x1ddf2f(0x176)](_0x2723d7){const _0x15cfcd=_0x1ddf2f;try{this[_0x15cfcd(0x16d)]=new _0x159b9b({'connector':this[_0x15cfcd(0x19a)],'config':_0x2723d7,'ownerId':this['id']}),this[_0x15cfcd(0x16d)][_0x15cfcd(0x1a1)](..._0x3ef73b)['to'](this),this[_0x15cfcd(0x16d)][_0x15cfcd(0x176)](),this[_0x15cfcd(0x1d7)]=new _0x12dc93(),this[_0x15cfcd(0x1d7)][_0x15cfcd(0x1a1)](..._0x5b8c2c)['to'](this),this[_0x15cfcd(0x1d7)][_0x15cfcd(0x176)]();const _0x5f0b59=await this[_0x15cfcd(0x1a0)][_0x15cfcd(0x17c)]();this[_0x15cfcd(0x1b2)](_0x15cfcd(0x16b),{'availableModels':_0x5f0b59});const _0x26516c=await this[_0x15cfcd(0x1a0)][_0x15cfcd(0x1a4)](this[_0x15cfcd(0x17d)][_0x15cfcd(0x185)]);_0x26516c&&await this[_0x15cfcd(0x1c6)](_0x26516c);}catch(_0x4adc3f){const _0x3190c6=new _0x1bd84d(_0x15cfcd(0x1af),null,{'message':_0x4adc3f[_0x15cfcd(0x171)]||_0x4adc3f});_0x3190c6[_0x15cfcd(0x170)]=_0x4adc3f[_0x15cfcd(0x170)],this[_0x15cfcd(0x1b2)](_0x15cfcd(0x1a9),{'error':_0x3190c6});}}async[_0x1ddf2f(0x169)](){const _0x34a92d=_0x1ddf2f;if(this[_0x34a92d(0x1bd)])throw new _0x1bd84d(_0x34a92d(0x1c7),null,{'conversation':this});if(!this[_0x34a92d(0x1b3)])throw new _0x1bd84d(_0x34a92d(0x1b9),null,{'conversation':this});try{const {id:_0x408d8e}=await this[_0x34a92d(0x19a)][_0x34a92d(0x1c9)](this['id'],this[_0x34a92d(0x17d)][_0x34a92d(0x167)])[_0x34a92d(0x175)]();this['id']=_0x408d8e,this[_0x34a92d(0x1bd)]=!0x0,this[_0x34a92d(0x1b2)](_0x34a92d(0x1db),{'conversationId':this['id'],'selectedModel':this[_0x34a92d(0x1b3)]});}catch(_0x47c64c){const _0x3cb173=new _0x1bd84d(_0x34a92d(0x1a6),null,{'message':_0x47c64c[_0x34a92d(0x171)],'conversationId':this['id']});throw _0x3cb173[_0x34a92d(0x170)]=_0x47c64c[_0x34a92d(0x170)],this[_0x34a92d(0x1b2)](_0x34a92d(0x1a9),{'error':_0x3cb173}),_0x3cb173;}}async[_0x1ddf2f(0x17a)](_0x231e77,_0x349a20){const _0x93ca55=_0x1ddf2f;try{const _0xb325d0=await this[_0x93ca55(0x19a)][_0x93ca55(0x191)](_0x231e77)[_0x93ca55(0x175)](),_0x414dcb=await this[_0x93ca55(0x19a)][_0x93ca55(0x184)](_0x231e77)[_0x93ca55(0x194)](),_0x41e008=_0x414dcb[0x0][_0x93ca55(0x164)];this[_0x93ca55(0x1bd)]=!0x0,this['id']=_0xb325d0['id'],_0x93ca55(0x178)in _0xb325d0?this[_0x93ca55(0x1b2)](_0x93ca55(0x1c2),_0xb325d0[_0x93ca55(0x178)],!0x0):this[_0x93ca55(0x1b2)](_0x93ca55(0x1c2),'',!0x0);const _0x498485=(await this[_0x93ca55(0x1a0)][_0x93ca55(0x1c4)]())[_0x93ca55(0x193)](_0x499d10=>_0x499d10['id'][_0x93ca55(0x1d1)]()===_0x41e008[_0x93ca55(0x1d1)]());return this[_0x93ca55(0x1b3)]=_0x498485,this[_0x93ca55(0x1b2)](_0x93ca55(0x19c),{'selectedModel':_0x498485,'isDisabled':!0x0}),await this[_0x93ca55(0x1d6)](_0x414dcb,_0x349a20,_0x41e008),this[_0x93ca55(0x1d5)]=void 0x0,this;}catch(_0x383113){const _0x328b19=new _0x1bd84d(_0x93ca55(0x1a7),null,{'message':_0x383113[_0x93ca55(0x171)],'conversationId':_0x231e77});throw _0x328b19[_0x93ca55(0x170)]=_0x383113[_0x93ca55(0x170)],this[_0x93ca55(0x1b2)](_0x93ca55(0x1a9),{'error':_0x328b19}),_0x328b19;}}async[_0x1ddf2f(0x1d6)](_0x5a24a8,_0xdedf01,_0x5eddbb){const _0x1a2051=_0x1ddf2f;let _0x2f0d74;for(const _0x418ca1 of _0x5a24a8)if(_0x1a2051(0x1cf)===_0x418ca1[_0x1a2051(0x1b0)]){const _0x19ba82=await this[_0x1a2051(0x1c3)](_0x418ca1),_0x164256={'isReasoningEnabled':Object[_0x1a2051(0x1ca)](_0x418ca1[_0x1a2051(0x17e)],_0x1a2051(0x18a)),'isWebSearchEnabled':Object[_0x1a2051(0x1ca)](_0x418ca1[_0x1a2051(0x17e)],_0x1a2051(0x18b))};_0x2f0d74=this[_0x1a2051(0x16a)]({'userMessage':_0x418ca1[_0x1a2051(0x19b)],'contextItems':_0x19ba82,'capabilities':_0x164256,'modelId':_0x5eddbb,'attributes':_0x418ca1[_0x1a2051(0x1ae)]}),this[_0x1a2051(0x1d5)]=_0x2f0d74,this[_0x1a2051(0x16d)][_0x1a2051(0x1b5)](this[_0x1a2051(0x1d5)][_0x1a2051(0x190)]);}else{if(_0x1a2051(0x192)===_0x418ca1[_0x1a2051(0x1b0)]&&_0x2f0d74){const _0x1dea5d=[];for(const _0x34a37c of _0x418ca1[_0x1a2051(0x1d3)])switch(_0x34a37c[_0x1a2051(0x163)]){case _0x1a2051(0x18d):case _0x1a2051(0x168):{const _0x1c952e=_0x2f0d74[_0x1a2051(0x173)]()?.[_0x1a2051(0x1ac)]!==_0xdedf01;_0x2f0d74[_0x1a2051(0x1d4)]=_0x2f0d74[_0x1a2051(0x16c)]({'type':_0x34a37c[_0x1a2051(0x163)],'isDone':!0x0,'interactionId':_0x2f0d74['id'],'areActionsDisabled':_0x1c952e}),_0x2f0d74[_0x1a2051(0x1d4)][_0x1a2051(0x188)](_0x34a37c[_0x1a2051(0x1d3)]),_0x1dea5d[_0x1a2051(0x1bc)]>0x0&&(_0x2f0d74[_0x1a2051(0x1d4)][_0x1a2051(0x18f)]=_0x1dea5d[_0x1a2051(0x1bb)](0x0));break;}case _0x1a2051(0x162):_0x1dea5d[_0x1a2051(0x166)](_0x34a37c);break;case _0x1a2051(0x18c):{const {data:_0x2c0958,attributes:_0x2a1d6f}=JSON[_0x1a2051(0x1da)](_0x34a37c[_0x1a2051(0x1d3)]);_0x2f0d74[_0x1a2051(0x19f)]({'toolName':_0x34a37c[_0x1a2051(0x1d8)],'data':_0x2c0958,'attributes':_0x2a1d6f});break;}}}}}async[_0x1ddf2f(0x1c3)](_0x206047){const _0x5e03e1=_0x1ddf2f,_0x64e239=new Map();if(!_0x206047[_0x5e03e1(0x1d3)])return _0x64e239;for(const _0x1340be of _0x206047[_0x5e03e1(0x1d3)]){const _0x7405d1=await this[_0x5e03e1(0x16d)][_0x5e03e1(0x1cb)](_0x1340be);_0x7405d1&&_0x64e239[_0x5e03e1(0x1d2)](_0x7405d1['id'],_0x7405d1);}return _0x64e239;}async[_0x1ddf2f(0x180)]({userMessage:_0x53a528,attributes:_0x73bac7}){const _0x3284aa=_0x1ddf2f;if(!this[_0x3284aa(0x1bd)])throw new _0x1bd84d(_0x3284aa(0x172),null,{'conversation':this});if(this[_0x3284aa(0x1d5)])throw new _0x1bd84d(_0x3284aa(0x1b1),null,{'conversation':this});try{const _0x567fdb=this[_0x3284aa(0x16d)][_0x3284aa(0x1a3)](),_0x126f15=this[_0x3284aa(0x1d7)][_0x3284aa(0x177)](),_0x38d3ae=this[_0x3284aa(0x1b3)]['id'];this[_0x3284aa(0x1d5)]=this[_0x3284aa(0x16a)]({'userMessage':_0x53a528,'contextItems':_0x567fdb,'capabilities':_0x126f15,'modelId':_0x38d3ae,'attributes':_0x73bac7}),await this[_0x3284aa(0x1d5)][_0x3284aa(0x169)](),this[_0x3284aa(0x16d)][_0x3284aa(0x1b5)](this[_0x3284aa(0x1d5)][_0x3284aa(0x190)]);}catch(_0x4f718c){if(_0x4f718c instanceof _0x1bd84d)this[_0x3284aa(0x1b2)](_0x3284aa(0x1a9),{'interactionId':this[_0x3284aa(0x1d5)]?this[_0x3284aa(0x1d5)]['id']:void 0x0,'error':_0x4f718c});else{const _0x401958=_0x1d1241[_0x3284aa(0x1d0)](_0x4f718c[_0x3284aa(0x1cd)])||_0x3284aa(0x189);this[_0x3284aa(0x1b2)](_0x3284aa(0x1a9),{'interactionId':this[_0x3284aa(0x1d5)]?this[_0x3284aa(0x1d5)]['id']:void 0x0,'error':new _0x1bd84d(_0x401958,null,{'error':_0x4f718c})});}}finally{this[_0x3284aa(0x1d5)]?.[_0x3284aa(0x1ab)](),this[_0x3284aa(0x1d5)]=void 0x0;}}[_0x1ddf2f(0x16a)]({userMessage:_0x1cac25,contextItems:_0x2a7489,capabilities:_0x139f98,modelId:_0x3515d5,attributes:_0x2552a7}){const _0x25f767=_0x1ddf2f,_0x2d5f3a=new _0x34a9bd({'userMessage':_0x1cac25,'contextItems':_0x2a7489,'capabilities':_0x139f98,'conversationId':this['id'],'connector':this[_0x25f767(0x19a)],'editor':this[_0x25f767(0x17d)][_0x25f767(0x1c8)]&&this[_0x25f767(0x17d)][_0x25f767(0x1c8)](),'model':_0x3515d5,'attributes':_0x2552a7});return _0x2d5f3a[_0x25f767(0x1a1)](..._0x5e58f0)['to'](this),this[_0x25f767(0x1a2)][_0x25f767(0x166)](_0x2d5f3a),this[_0x25f767(0x1b2)](_0x25f767(0x16f),_0x2d5f3a),_0x2d5f3a;}[_0x1ddf2f(0x16e)](_0x579f3f){const _0x4675cd=_0x1ddf2f;return this[_0x4675cd(0x1a2)][_0x4675cd(0x193)](_0x40de4d=>_0x40de4d['id']===_0x579f3f);}[_0x1ddf2f(0x1b7)](_0x4a8665){const _0x528ca2=_0x1ddf2f,_0x3c9046=this[_0x528ca2(0x16e)](_0x4a8665);_0x3c9046&&(_0x3c9046[_0x528ca2(0x186)](),this[_0x528ca2(0x1a2)][_0x528ca2(0x1bb)](this[_0x528ca2(0x1a2)][_0x528ca2(0x160)](_0x3c9046),0x1));}get[_0x1ddf2f(0x182)](){const _0x50c97a=_0x1ddf2f;return this[_0x50c97a(0x1a2)][this[_0x50c97a(0x1a2)][_0x50c97a(0x1bc)]-0x1];}[_0x1ddf2f(0x18e)](_0x3c438d){const _0x30c6f1=_0x1ddf2f;this[_0x30c6f1(0x16d)][_0x30c6f1(0x18e)](_0x3c438d);}async[_0x1ddf2f(0x1a8)]({content:_0x243131,version:_0xed20ac,sessionId:_0x1b06c7,selections:_0x59bdcf}){const _0x435b5e=_0x1ddf2f;await this[_0x435b5e(0x16d)][_0x435b5e(0x161)](_0x243131,_0xed20ac,_0x1b06c7,_0x59bdcf);}[_0x1ddf2f(0x1c1)](){const _0x2bb201=_0x1ddf2f;return this[_0x2bb201(0x1d5)]?.[_0x2bb201(0x173)]()?.[_0x2bb201(0x1d3)]||'';}[_0x1ddf2f(0x1b4)](_0x36870b){const _0x473270=_0x1ddf2f;this[_0x473270(0x16d)][_0x473270(0x1b4)](_0x36870b);}[_0x1ddf2f(0x1ad)](){const _0x381c7e=_0x1ddf2f;this[_0x381c7e(0x16d)][_0x381c7e(0x1ad)]();}[_0x1ddf2f(0x174)](_0x246a9e){const _0x282f7f=_0x1ddf2f;this[_0x282f7f(0x16d)][_0x282f7f(0x174)](_0x246a9e);}[_0x1ddf2f(0x187)](_0x5917c9){const _0x27a0a1=_0x1ddf2f;this[_0x27a0a1(0x16d)][_0x27a0a1(0x187)](_0x5917c9);}[_0x1ddf2f(0x1ba)](_0x4d8062){const _0x551508=_0x1ddf2f;this[_0x551508(0x16d)][_0x551508(0x1ba)](_0x4d8062);}[_0x1ddf2f(0x181)](_0x2a55bd,_0x185cda){const _0x1d01c0=_0x1ddf2f;this[_0x1d01c0(0x16d)][_0x1d01c0(0x181)](_0x2a55bd,_0x185cda);}[_0x1ddf2f(0x1ce)](_0x57c8fb,_0x4a542d,_0x587969){const _0x16d9ab=_0x1ddf2f;return this[_0x16d9ab(0x16d)][_0x16d9ab(0x1ce)](_0x57c8fb,_0x4a542d,_0x587969);}[_0x1ddf2f(0x198)](_0x3481cc){const _0x4ab747=_0x1ddf2f;this[_0x4ab747(0x16d)][_0x4ab747(0x198)](_0x3481cc);}[_0x1ddf2f(0x1bf)](_0x5525d8){const _0x29ef96=_0x1ddf2f;this[_0x29ef96(0x1d7)][_0x29ef96(0x1bf)](_0x5525d8);}[_0x1ddf2f(0x17b)](){const _0x26dcd5=_0x1ddf2f;this[_0x26dcd5(0x1d7)][_0x26dcd5(0x17b)]();}[_0x1ddf2f(0x196)](_0x5f359e){const _0x393b2b=_0x1ddf2f;this[_0x393b2b(0x1d7)][_0x393b2b(0x196)](_0x5f359e);}[_0x1ddf2f(0x19d)](){const _0xc4a114=_0x1ddf2f;this[_0xc4a114(0x1d7)][_0xc4a114(0x19d)]();}[_0x1ddf2f(0x165)](){const _0x266e40=_0x1ddf2f;return this[_0x266e40(0x16d)][_0x266e40(0x165)]();}[_0x1ddf2f(0x1cc)](){const _0x4e6f72=_0x1ddf2f;return this[_0x4e6f72(0x16d)][_0x4e6f72(0x1cc)]();}[_0x1ddf2f(0x197)](){const _0xee7552=_0x1ddf2f;return this[_0xee7552(0x16d)][_0xee7552(0x197)]();}async[_0x1ddf2f(0x1c6)](_0x39d39b){const _0x16b1b5=_0x1ddf2f;_0x39d39b?!0x1===await this[_0x16b1b5(0x1a0)][_0x16b1b5(0x1c5)](_0x39d39b)&&(_0x36f5c1(_0x16b1b5(0x183),{'conversation':this,'model':_0x39d39b}),_0x39d39b=(await this[_0x16b1b5(0x1a0)][_0x16b1b5(0x17c)]())[0x0]):(_0x36f5c1(_0x16b1b5(0x199),{'conversation':this}),_0x39d39b=(await this[_0x16b1b5(0x1a0)][_0x16b1b5(0x17c)]())[0x0]),_0x39d39b['id']!==this[_0x16b1b5(0x1b3)]?.['id']&&(this[_0x16b1b5(0x1b3)]=_0x39d39b,this[_0x16b1b5(0x1d7)][_0x16b1b5(0x1b8)](),this[_0x16b1b5(0x1b2)](_0x16b1b5(0x19c),{'selectedModel':_0x39d39b}));}}
|
|
23
|
+
const _0x1dc51d=_0x6343;function _0x6343(_0x2b2c5e,_0x1d556d){const _0x20ad60=_0x20ad();return _0x6343=function(_0x6343e4,_0x5b6b17){_0x6343e4=_0x6343e4-0x10e;let _0x1cd416=_0x20ad60[_0x6343e4];return _0x1cd416;},_0x6343(_0x2b2c5e,_0x1d556d);}(function(_0x32408b,_0x370877){const _0x3b3bfd=_0x6343,_0x3ed799=_0x32408b();while(!![]){try{const _0x17b69f=-parseInt(_0x3b3bfd(0x11e))/0x1*(-parseInt(_0x3b3bfd(0x17e))/0x2)+-parseInt(_0x3b3bfd(0x18a))/0x3*(parseInt(_0x3b3bfd(0x181))/0x4)+parseInt(_0x3b3bfd(0x151))/0x5*(parseInt(_0x3b3bfd(0x177))/0x6)+-parseInt(_0x3b3bfd(0x136))/0x7*(-parseInt(_0x3b3bfd(0x174))/0x8)+-parseInt(_0x3b3bfd(0x143))/0x9*(parseInt(_0x3b3bfd(0x14f))/0xa)+-parseInt(_0x3b3bfd(0x165))/0xb*(-parseInt(_0x3b3bfd(0x16d))/0xc)+-parseInt(_0x3b3bfd(0x15a))/0xd*(parseInt(_0x3b3bfd(0x16a))/0xe);if(_0x17b69f===_0x370877)break;else _0x3ed799['push'](_0x3ed799['shift']());}catch(_0x36adad){_0x3ed799['push'](_0x3ed799['shift']());}}}(_0x20ad,0x7fac8));import{CKEditorError as _0x3c6d59,EmitterMixin as _0x48b84a,logWarning as _0x3eb7d5}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x5aec34}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0xfd1c9f,AI_CONTEXT_MODEL_EVENT_NAMES as _0x116d7f}from'./aichatcontext.js';import{AICapabilities as _0x15b93e,CAPABILITIES_MODEL_EVENT_NAMES as _0x64eb2}from'../../aicore/model/aicapabilities.js';function _0x20ad(){const _0x1f0a7b=['selectedModel','populateFromMessage','getMessages','role','title','stop','createInteraction','updateCurrentDocument','removeInteraction','ai-chat-handle-user-interaction-start-failed','10MrNXEv','addResourceToContext','3260ZRmXia','fetchConversationMessages','setWebSearch','removeSelectionFromContext','ai-chat-conversation-set-model-not-available','isStarted','load','addFilesToContext','ai-chat-conversation-set-model-null','18369bomvlx','modelSelected','addUrlToContext','_extractContextItems','set','ai-chat-conversation-init-failed','stack','parse','getAll','_processMessagesToInteractions','addSelectionToContext','113927UEVFYS','init','length','chatContext','updateCurrentDocumentInContext','6286nAcdrU','setReasoning','getAvailableModels','1032aVUxnX','hasOwn','isCurrentDocumentInConversation','addCurrentDocumentToContext','toLowerCase','addToolItemToContext','start','8atgeCl','createReply','type','2634IDzUyg','isCurrentDocumentInContext','code','reasoning','ai-chat-conversation-already-started','push','chatModels','11636soPFce','setConversationTitle','getCurrentDocumentContext','3385748xialmI','ai-chat-handle-user-conversation-not-initialized','reset','fire','ai-chat-conversation-start-failed','content','getCapabilitiesConfig','splice','currentInteraction','3SkdHvX','setModel','appendContent','error','lastInteraction','conversationId','contextItems','user','group','conversationStarted','chatCapabilities','sources','webSearch','addToConversationContext','toolName','ai-chat-conversation-init-from-id-failed','message','find','modification','currentReply','text','toggleWebSearch','72faUWTe','getInteraction','interactionCreated','attributes','assistant','toggleReasoning','sessionId','loadSourceResources','ai-chat-conversation-start-no-model-selected','connector','isSelectionInContext','selectedModelId','_handleToolResultData','get','url','indexOf','getDocumentContext','isFromHistory','removeFromContext','capabilities','delegate','model','options','ai-chat-handle-user-interaction-already-in-progress','5904997DkZAsM','mcp-tool-result','startConversation','getEditor','getModel','prompt','fetchConversation','destroy','getConversation','isAvailable','conversationInitialized','getPendingContextItems','handleUserInteraction','3920139cEZXSs','interactions'];_0x20ad=function(){return _0x1f0a7b;};return _0x20ad();}import{AIChatInteraction as _0x2aad21}from'./aichatinteraction.js';import{errorsMap as _0x1cc055}from'../../errorsmap.js';export class AIChatConversation extends _0x48b84a(){['id'];[_0x1dc51d(0x156)]=!0x1;[_0x1dc51d(0x12f)];[_0x1dc51d(0x144)]=[];[_0x1dc51d(0x189)];[_0x1dc51d(0x145)];[_0x1dc51d(0x127)];[_0x1dc51d(0x134)];constructor(_0x418c75){const _0x51fa1e=_0x1dc51d;super(),this[_0x51fa1e(0x134)]=_0x418c75,this[_0x51fa1e(0x127)]=_0x418c75[_0x51fa1e(0x127)],this[_0x51fa1e(0x17d)]=_0x418c75[_0x51fa1e(0x17d)],this['id']=_0x418c75[_0x51fa1e(0x18f)],this[_0x51fa1e(0x12f)]=_0x418c75[_0x51fa1e(0x12f)];}async[_0x1dc51d(0x166)](_0x235d17){const _0x281d25=_0x1dc51d;try{this[_0x281d25(0x168)]=new _0xfd1c9f({'connector':this[_0x281d25(0x127)],'config':_0x235d17,'ownerId':this['id']}),this[_0x281d25(0x168)][_0x281d25(0x132)](..._0x116d7f)['to'](this),this[_0x281d25(0x168)][_0x281d25(0x166)](),this[_0x281d25(0x112)]=new _0x15b93e(),this[_0x281d25(0x112)][_0x281d25(0x132)](..._0x64eb2)['to'](this),this[_0x281d25(0x112)][_0x281d25(0x166)]();const _0x3d75ce=await this[_0x281d25(0x17d)][_0x281d25(0x16c)]();this[_0x281d25(0x184)](_0x281d25(0x140),{'availableModels':_0x3d75ce});const _0x570254=await this[_0x281d25(0x17d)][_0x281d25(0x13a)](this[_0x281d25(0x134)][_0x281d25(0x129)]);_0x570254&&await this[_0x281d25(0x18b)](_0x570254);}catch(_0x49312e){const _0xb72e3b=new _0x3c6d59(_0x281d25(0x15f),null,{'message':_0x49312e[_0x281d25(0x118)]||_0x49312e});_0xb72e3b[_0x281d25(0x160)]=_0x49312e[_0x281d25(0x160)],this[_0x281d25(0x184)](_0x281d25(0x18d),{'error':_0xb72e3b});}}async[_0x1dc51d(0x173)](){const _0x286f66=_0x1dc51d;if(this[_0x286f66(0x156)])throw new _0x3c6d59(_0x286f66(0x17b),null,{'conversation':this});if(!this[_0x286f66(0x145)])throw new _0x3c6d59(_0x286f66(0x126),null,{'conversation':this});try{const {id:_0x35096e}=await this[_0x286f66(0x127)][_0x286f66(0x138)](this['id'],this[_0x286f66(0x134)][_0x286f66(0x110)])[_0x286f66(0x13e)]();this['id']=_0x35096e,this[_0x286f66(0x156)]=!0x0,this[_0x286f66(0x184)](_0x286f66(0x111),{'conversationId':this['id'],'selectedModel':this[_0x286f66(0x145)]});}catch(_0x57d7ff){const _0x8be4fe=new _0x3c6d59(_0x286f66(0x185),null,{'message':_0x57d7ff[_0x286f66(0x118)],'conversationId':this['id']});throw _0x8be4fe[_0x286f66(0x160)]=_0x57d7ff[_0x286f66(0x160)],this[_0x286f66(0x184)](_0x286f66(0x18d),{'error':_0x8be4fe}),_0x8be4fe;}}async[_0x1dc51d(0x157)](_0x34ab86,_0x44dcb4){const _0x35f430=_0x1dc51d;try{const _0x51cbbf=await this[_0x35f430(0x127)][_0x35f430(0x13c)](_0x34ab86)[_0x35f430(0x13e)](),_0x762aa6=await this[_0x35f430(0x127)][_0x35f430(0x152)](_0x34ab86)[_0x35f430(0x147)](),_0x40d4c2=_0x762aa6[0x0][_0x35f430(0x133)];this[_0x35f430(0x156)]=!0x0,this['id']=_0x51cbbf['id'],_0x35f430(0x149)in _0x51cbbf?this[_0x35f430(0x184)](_0x35f430(0x17f),_0x51cbbf[_0x35f430(0x149)],!0x0):this[_0x35f430(0x184)](_0x35f430(0x17f),'',!0x0);const _0x272926=(await this[_0x35f430(0x17d)][_0x35f430(0x162)]())[_0x35f430(0x119)](_0x33850e=>_0x33850e['id'][_0x35f430(0x171)]()===_0x40d4c2[_0x35f430(0x171)]());return this[_0x35f430(0x145)]=_0x272926,this[_0x35f430(0x184)](_0x35f430(0x15b),{'selectedModel':_0x272926,'isDisabled':!0x0}),await this[_0x35f430(0x163)](_0x762aa6,_0x44dcb4,_0x40d4c2),this[_0x35f430(0x189)]=void 0x0,this;}catch(_0x24b835){const _0x3d5049=new _0x3c6d59(_0x35f430(0x117),null,{'message':_0x24b835[_0x35f430(0x118)],'conversationId':_0x34ab86});throw _0x3d5049[_0x35f430(0x160)]=_0x24b835[_0x35f430(0x160)],this[_0x35f430(0x184)](_0x35f430(0x18d),{'error':_0x3d5049}),_0x3d5049;}}async[_0x1dc51d(0x163)](_0x342de3,_0xe383ac,_0x127f6e){const _0x3ea599=_0x1dc51d;let _0x357fa3;for(const _0x4a2d25 of _0x342de3)if(_0x3ea599(0x10f)===_0x4a2d25[_0x3ea599(0x148)]){const _0x43d17c=await this[_0x3ea599(0x15d)](_0x4a2d25),_0x2ca50c={'isReasoningEnabled':Object[_0x3ea599(0x16e)](_0x4a2d25[_0x3ea599(0x131)],_0x3ea599(0x17a)),'isWebSearchEnabled':Object[_0x3ea599(0x16e)](_0x4a2d25[_0x3ea599(0x131)],_0x3ea599(0x114))};_0x357fa3=this[_0x3ea599(0x14b)]({'userMessage':_0x4a2d25[_0x3ea599(0x13b)],'contextItems':_0x43d17c,'capabilities':_0x2ca50c,'modelId':_0x127f6e,'attributes':_0x4a2d25[_0x3ea599(0x121)]}),this[_0x3ea599(0x189)]=_0x357fa3,this[_0x3ea599(0x168)][_0x3ea599(0x115)](this[_0x3ea599(0x189)][_0x3ea599(0x10e)]);}else{if(_0x3ea599(0x122)===_0x4a2d25[_0x3ea599(0x148)]&&_0x357fa3){const _0x193ec4=[];for(const _0x41e523 of _0x4a2d25[_0x3ea599(0x186)])switch(_0x41e523[_0x3ea599(0x176)]){case _0x3ea599(0x11c):case _0x3ea599(0x11a):{const _0x37a10e=_0x357fa3[_0x3ea599(0x12e)]()?.[_0x3ea599(0x124)]!==_0xe383ac;_0x357fa3[_0x3ea599(0x11b)]=_0x357fa3[_0x3ea599(0x175)]({'type':_0x41e523[_0x3ea599(0x176)],'isDone':!0x0,'interactionId':_0x357fa3['id'],'areActionsDisabled':_0x37a10e}),_0x357fa3[_0x3ea599(0x11b)][_0x3ea599(0x18c)](_0x41e523[_0x3ea599(0x186)]),_0x193ec4[_0x3ea599(0x167)]>0x0&&(_0x357fa3[_0x3ea599(0x11b)][_0x3ea599(0x113)]=_0x193ec4[_0x3ea599(0x188)](0x0));break;}case _0x3ea599(0x12c):_0x193ec4[_0x3ea599(0x17c)](_0x41e523);break;case _0x3ea599(0x137):{const {data:_0x138bfc,attributes:_0x296755}=JSON[_0x3ea599(0x161)](_0x41e523[_0x3ea599(0x186)]);_0x357fa3[_0x3ea599(0x12a)]({'toolName':_0x41e523[_0x3ea599(0x116)],'data':_0x138bfc,'attributes':_0x296755});break;}}}}}async[_0x1dc51d(0x15d)](_0x4dcd6b){const _0xadaf0b=_0x1dc51d,_0x28df93=new Map();if(!_0x4dcd6b[_0xadaf0b(0x186)])return _0x28df93;for(const _0x4c8f10 of _0x4dcd6b[_0xadaf0b(0x186)]){const _0x22787a=await this[_0xadaf0b(0x168)][_0xadaf0b(0x146)](_0x4c8f10);_0x22787a&&_0x28df93[_0xadaf0b(0x15e)](_0x22787a['id'],_0x22787a);}return _0x28df93;}async[_0x1dc51d(0x142)]({userMessage:_0x571aaf,attributes:_0xd68ddb}){const _0x129fed=_0x1dc51d;if(!this[_0x129fed(0x156)])throw new _0x3c6d59(_0x129fed(0x182),null,{'conversation':this});if(this[_0x129fed(0x189)])throw new _0x3c6d59(_0x129fed(0x135),null,{'conversation':this});try{const _0x2c3157=this[_0x129fed(0x168)][_0x129fed(0x141)](),_0x4cba0e=this[_0x129fed(0x112)][_0x129fed(0x187)](),_0x4fa735=this[_0x129fed(0x145)]['id'];this[_0x129fed(0x189)]=this[_0x129fed(0x14b)]({'userMessage':_0x571aaf,'contextItems':_0x2c3157,'capabilities':_0x4cba0e,'modelId':_0x4fa735,'attributes':_0xd68ddb}),await this[_0x129fed(0x189)][_0x129fed(0x173)](),this[_0x129fed(0x168)][_0x129fed(0x115)](this[_0x129fed(0x189)][_0x129fed(0x10e)]);}catch(_0x41c526){if(_0x41c526 instanceof _0x3c6d59)this[_0x129fed(0x184)](_0x129fed(0x18d),{'interactionId':this[_0x129fed(0x189)]?this[_0x129fed(0x189)]['id']:void 0x0,'error':_0x41c526});else{const _0x9157ff=_0x1cc055[_0x129fed(0x12b)](_0x41c526[_0x129fed(0x179)])||_0x129fed(0x14e);this[_0x129fed(0x184)](_0x129fed(0x18d),{'interactionId':this[_0x129fed(0x189)]?this[_0x129fed(0x189)]['id']:void 0x0,'error':new _0x3c6d59(_0x9157ff,null,{'error':_0x41c526})});}}finally{this[_0x129fed(0x189)]?.[_0x129fed(0x14a)](),this[_0x129fed(0x189)]=void 0x0;}}[_0x1dc51d(0x14b)]({userMessage:_0xd2aef2,contextItems:_0x25293b,capabilities:_0x14c405,modelId:_0x1ea949,attributes:_0x4bc754}){const _0x5e42da=_0x1dc51d,_0x448453=new _0x2aad21({'userMessage':_0xd2aef2,'contextItems':_0x25293b,'capabilities':_0x14c405,'conversationId':this['id'],'connector':this[_0x5e42da(0x127)],'editor':this[_0x5e42da(0x134)][_0x5e42da(0x139)]&&this[_0x5e42da(0x134)][_0x5e42da(0x139)](),'model':_0x1ea949,'attributes':_0x4bc754});return _0x448453[_0x5e42da(0x132)](..._0x5aec34)['to'](this),this[_0x5e42da(0x144)][_0x5e42da(0x17c)](_0x448453),this[_0x5e42da(0x184)](_0x5e42da(0x120),_0x448453),_0x448453;}[_0x1dc51d(0x11f)](_0x29f710){const _0x5753b1=_0x1dc51d;return this[_0x5753b1(0x144)][_0x5753b1(0x119)](_0x625ac5=>_0x625ac5['id']===_0x29f710);}[_0x1dc51d(0x14d)](_0x53a13f){const _0x2fcc98=_0x1dc51d,_0x55f2b2=this[_0x2fcc98(0x11f)](_0x53a13f);_0x55f2b2&&(_0x55f2b2[_0x2fcc98(0x13d)](),this[_0x2fcc98(0x144)][_0x2fcc98(0x188)](this[_0x2fcc98(0x144)][_0x2fcc98(0x12d)](_0x55f2b2),0x1));}get[_0x1dc51d(0x18e)](){const _0x116a8f=_0x1dc51d;return this[_0x116a8f(0x144)][this[_0x116a8f(0x144)][_0x116a8f(0x167)]-0x1];}[_0x1dc51d(0x170)](_0x2bcc56){const _0x504024=_0x1dc51d;this[_0x504024(0x168)][_0x504024(0x170)](_0x2bcc56);}async[_0x1dc51d(0x169)]({content:_0x2b624e,version:_0x2b56fb,sessionId:_0xb492ae,selections:_0x3a3e1a}){const _0x5a7572=_0x1dc51d;await this[_0x5a7572(0x168)][_0x5a7572(0x14c)](_0x2b624e,_0x2b56fb,_0xb492ae,_0x3a3e1a);}[_0x1dc51d(0x180)](){const _0x14cc59=_0x1dc51d;return this[_0x14cc59(0x189)]?.[_0x14cc59(0x12e)]()?.[_0x14cc59(0x186)]||'';}[_0x1dc51d(0x164)](_0x5299e4){const _0x1f9195=_0x1dc51d;this[_0x1f9195(0x168)][_0x1f9195(0x164)](_0x5299e4);}[_0x1dc51d(0x154)](){const _0x404fb5=_0x1dc51d;this[_0x404fb5(0x168)][_0x404fb5(0x154)]();}[_0x1dc51d(0x158)](_0x481a3b){const _0x596b4d=_0x1dc51d;this[_0x596b4d(0x168)][_0x596b4d(0x158)](_0x481a3b);}[_0x1dc51d(0x15c)](_0x36de0a){const _0x3f5c1f=_0x1dc51d;this[_0x3f5c1f(0x168)][_0x3f5c1f(0x15c)](_0x36de0a);}[_0x1dc51d(0x172)](_0x49359b){const _0x2c47b7=_0x1dc51d;this[_0x2c47b7(0x168)][_0x2c47b7(0x172)](_0x49359b);}[_0x1dc51d(0x150)](_0x3e63c7,_0x49d2e0){const _0x3af144=_0x1dc51d;this[_0x3af144(0x168)][_0x3af144(0x150)](_0x3e63c7,_0x49d2e0);}[_0x1dc51d(0x125)](_0x31e377,_0x2efb6e,_0x1991a1){const _0x478731=_0x1dc51d;return this[_0x478731(0x168)][_0x478731(0x125)](_0x31e377,_0x2efb6e,_0x1991a1);}[_0x1dc51d(0x130)](_0x1649c1){const _0x1d408d=_0x1dc51d;this[_0x1d408d(0x168)][_0x1d408d(0x130)](_0x1649c1);}[_0x1dc51d(0x153)](_0x30e6a4){const _0x2722d1=_0x1dc51d;this[_0x2722d1(0x112)][_0x2722d1(0x153)](_0x30e6a4);}[_0x1dc51d(0x11d)](){const _0x2d90b8=_0x1dc51d;this[_0x2d90b8(0x112)][_0x2d90b8(0x11d)]();}[_0x1dc51d(0x16b)](_0x297967){const _0x3c2b06=_0x1dc51d;this[_0x3c2b06(0x112)][_0x3c2b06(0x16b)](_0x297967);}[_0x1dc51d(0x123)](){const _0x4f2c38=_0x1dc51d;this[_0x4f2c38(0x112)][_0x4f2c38(0x123)]();}[_0x1dc51d(0x178)](){const _0x4e6a81=_0x1dc51d;return this[_0x4e6a81(0x168)][_0x4e6a81(0x178)]();}[_0x1dc51d(0x16f)](){const _0x53b547=_0x1dc51d;return this[_0x53b547(0x168)][_0x53b547(0x16f)]();}[_0x1dc51d(0x128)](){const _0x53bd79=_0x1dc51d;return this[_0x53bd79(0x168)][_0x53bd79(0x128)]();}async[_0x1dc51d(0x18b)](_0x33a544){const _0xfda723=_0x1dc51d;_0x33a544?!0x1===await this[_0xfda723(0x17d)][_0xfda723(0x13f)](_0x33a544)&&(_0x3eb7d5(_0xfda723(0x155),{'conversation':this,'model':_0x33a544}),_0x33a544=(await this[_0xfda723(0x17d)][_0xfda723(0x16c)]())[0x0]):(_0x3eb7d5(_0xfda723(0x159),{'conversation':this}),_0x33a544=(await this[_0xfda723(0x17d)][_0xfda723(0x16c)]())[0x0]),_0x33a544['id']!==this[_0xfda723(0x145)]?.['id']&&(this[_0xfda723(0x145)]=_0x33a544,this[_0xfda723(0x112)][_0xfda723(0x183)](),this[_0xfda723(0x184)](_0xfda723(0x15b),{'selectedModel':_0x33a544}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x3c29(_0x597bd7,_0x11d921){var _0x4da44d=_0x4da4();return _0x3c29=function(_0x3c2924,_0x37ca8c){_0x3c2924=_0x3c2924-0x18c;var _0x4d7527=_0x4da44d[_0x3c2924];return _0x4d7527;},_0x3c29(_0x597bd7,_0x11d921);}function _0x4da4(){var _0x472043=['current-document','getCapabilitiesRequestData','mapContextItemsToRequestData','12602907GZCKpV','30104rBQMNM','4873GXHCKe','userMessage','10002UpJesg','capabilities','137slPCuE','1490ukrztP','23532YEbUzP','attributes','conversationId','1477MxoIyH','queryAssistant','14434hzuCMs','137530tuuBZy','sendRequest','connector','5904024hcuCrp','getDocumentContext','get','model','contextItems'];_0x4da4=function(){return _0x472043;};return _0x4da4();}var _0x32d062=_0x3c29;(function(_0x16e4b3,_0x8c7665){var _0x572658=_0x3c29,_0xb84aa1=_0x16e4b3();while(!![]){try{var _0x2fc870=-parseInt(_0x572658(0x19d))/0x1*(parseInt(_0x572658(0x1a4))/0x2)+-parseInt(_0x572658(0x19f))/0x3+-parseInt(_0x572658(0x18f))/0x4+-parseInt(_0x572658(0x19e))/0x5*(parseInt(_0x572658(0x19b))/0x6)+-parseInt(_0x572658(0x1a2))/0x7*(parseInt(_0x572658(0x198))/0x8)+-parseInt(_0x572658(0x197))/0x9+parseInt(_0x572658(0x18c))/0xa*(parseInt(_0x572658(0x199))/0xb);if(_0x2fc870===_0x8c7665)break;else _0xb84aa1['push'](_0xb84aa1['shift']());}catch(_0x4251f0){_0xb84aa1['push'](_0xb84aa1['shift']());}}}(_0x4da4,0xe2c96));import{AICapabilities as _0x23a281}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x5ac0b8}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3d6dd3}from'./aichatcontext.js';export class AIChatInteraction extends _0x5ac0b8{[_0x32d062(0x19a)];[_0x32d062(0x1a1)];[_0x32d062(0x193)]=new Map();[_0x32d062(0x192)];[_0x32d062(0x1a0)];constructor(_0x643ab6){var _0x2880ff=_0x32d062;super(_0x643ab6),this[_0x2880ff(0x1a1)]=_0x643ab6[_0x2880ff(0x1a1)],this[_0x2880ff(0x193)]=_0x643ab6[_0x2880ff(0x193)],this[_0x2880ff(0x19c)]=_0x643ab6[_0x2880ff(0x19c)],this[_0x2880ff(0x19a)]=_0x643ab6[_0x2880ff(0x19a)],this[_0x2880ff(0x192)]=_0x643ab6[_0x2880ff(0x192)],this[_0x2880ff(0x1a0)]=_0x643ab6[_0x2880ff(0x1a0)];}async[_0x32d062(0x18d)](){var _0x279888=_0x32d062;return this[_0x279888(0x18e)][_0x279888(0x1a3)]({'message':this[_0x279888(0x19a)],'conversationId':this[_0x279888(0x1a1)],'parts':_0x3d6dd3[_0x279888(0x196)](this[_0x279888(0x193)]),'capabilities':_0x23a281[_0x279888(0x195)](this[_0x279888(0x19c)]),'model':this[_0x279888(0x192)],'attributes':this[_0x279888(0x1a0)]});}[_0x32d062(0x190)](){var _0x20ebc1=_0x32d062;return this[_0x20ebc1(0x193)][_0x20ebc1(0x191)](_0x20ebc1(0x194));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x57727f=_0x3c43;(function(_0x411164,_0x25fd9a){const _0x3c7544=_0x3c43,_0x8fce35=_0x411164();while(!![]){try{const _0x1daac7=-parseInt(_0x3c7544(0x12d))/0x1*(-parseInt(_0x3c7544(0x120))/0x2)+parseInt(_0x3c7544(0x11a))/0x3+-parseInt(_0x3c7544(0x128))/0x4+parseInt(_0x3c7544(0x12b))/0x5+-parseInt(_0x3c7544(0xfa))/0x6*(-parseInt(_0x3c7544(0x10c))/0x7)+-parseInt(_0x3c7544(0x139))/0x8*(-parseInt(_0x3c7544(0x101))/0x9)+parseInt(_0x3c7544(0x13d))/0xa*(-parseInt(_0x3c7544(0x126))/0xb);if(_0x1daac7===_0x25fd9a)break;else _0x8fce35['push'](_0x8fce35['shift']());}catch(_0x2a5a00){_0x8fce35['push'](_0x8fce35['shift']());}}}(_0x4a11,0x22394));function _0x4a11(){const _0x261ce0=['setTemplate','_handlePromptInputFocus','bodyCollection','startConversation','clearCurrentContextItems','populateSourceResourceBalloon','setReasoning','removeContextItem','focusPromptInput','setContextItemLoading','form','2068680SnHVBN','value','setWebSearch','_createLoaderView','1099500asKWci','setAddContextOptions','clearConversationContextUI','addContextButtonView','setModel','_loaderView','_createModelUnavailableMessageView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','ck-ai-chat-controls','setConversationContext','queryView','change:isLoading','bindTemplate','ck-ai-chat-controls__start-new-chat-button','_promptCapabilitiesView','48AFCTkv','_modelUnavailableMessageView','setIsUploadInProgress','_promptInputView','updateResourceState','isModelAvailable','setPromptInputValue','9OqGGYO','toggleWebSearch','toggleReasoning','isLoading','ck-hidden','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','execute','selectModel','clearPendingContextUI','disableModelSelector','isDisabled','243173vgGGEG','delegate','_contextPanelView','clearConversationContextItems','reset','_createContextPanelView','resetMessageInput','_createPromptInputView','ck-ai-chat-controls-disabled','contextResourcesSearchInputVisibleFrom','addContextItem','locale','setModelList','closeSourceResourceBalloon','249414lfuPTU','sendUserMessage','setInputPlaceholder','setPlaceholderText','set','_createPromptCapabilitiesView','4aLmIgW','ck-ai-chat-controls-model-unavailable-message','fieldView','abortPromptStream','low','_shouldRestorePromptInputFocus','55IJndtE','enableModelSelector','393100lIGJQq','element','focus','690340SRkeHH','div','15251HLiTtP'];_0x4a11=function(){return _0x261ce0;};return _0x4a11();}import{ButtonView as _0x24bee5,clickOutsideHandler as _0x3be0c3,View as _0x67caf0}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x5d7c9a}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x250694}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x3402dc,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x16e140}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x52845b}from'./controls/aichatcontrolsloaderview.js';function _0x3c43(_0x361295,_0x1352ff){const _0x4a11ce=_0x4a11();return _0x3c43=function(_0x3c4368,_0x273efe){_0x3c4368=_0x3c4368-0xf9;let _0x2d4cf1=_0x4a11ce[_0x3c4368];return _0x2d4cf1;},_0x3c43(_0x361295,_0x1352ff);}import{getTranslation as _0x248dc7}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x67caf0{[_0x57727f(0x10e)];[_0x57727f(0xfd)];[_0x57727f(0xf9)];[_0x57727f(0x142)];[_0x57727f(0xfb)];[_0x57727f(0x125)];constructor(_0x5c5f46,_0x5df106){const _0x5b1fa1=_0x57727f;super(_0x5c5f46),this[_0x5b1fa1(0x10e)]=this[_0x5b1fa1(0x111)](_0x5c5f46,{'bodyCollection':_0x5df106[_0x5b1fa1(0x130)],'searchInputVisibleFrom':_0x5df106[_0x5b1fa1(0x115)]}),this[_0x5b1fa1(0xfd)]=this[_0x5b1fa1(0x113)](_0x5c5f46),this[_0x5b1fa1(0xf9)]=this[_0x5b1fa1(0x11f)](_0x5c5f46),this[_0x5b1fa1(0x142)]=this[_0x5b1fa1(0x13c)](_0x5c5f46),this[_0x5b1fa1(0xfb)]=this[_0x5b1fa1(0x143)](_0x5c5f46),this[_0x5b1fa1(0x125)]=!0x1,this[_0x5b1fa1(0xfd)][_0x5b1fa1(0x10d)](_0x5b1fa1(0x11b))['to'](this),this[_0x5b1fa1(0x142)][_0x5b1fa1(0x10d)](_0x5b1fa1(0x123))['to'](this),this[_0x5b1fa1(0xf9)][_0x5b1fa1(0x10d)](_0x5b1fa1(0x102))['to'](this),this[_0x5b1fa1(0xf9)][_0x5b1fa1(0x10d)](_0x5b1fa1(0x103))['to'](this),this[_0x5b1fa1(0xf9)][_0x5b1fa1(0x10d)](_0x5b1fa1(0x108))['to'](this),this[_0x5b1fa1(0x10e)][_0x5b1fa1(0x10d)](..._0x16e140)['to'](this),this[_0x5b1fa1(0x11e)](_0x5b1fa1(0xff),!0x0),this[_0x5b1fa1(0x11e)](_0x5b1fa1(0x10b),!0x1);const _0x2e9c6b=this[_0x5b1fa1(0x149)];this[_0x5b1fa1(0x12e)]({'tag':_0x5b1fa1(0x138),'attributes':{'class':['ck',_0x5b1fa1(0x145),_0x2e9c6b['if'](_0x5b1fa1(0x10b),_0x5b1fa1(0x114))]},'children':[{'tag':_0x5b1fa1(0x12c),'attributes':{'class':[_0x2e9c6b['if'](_0x5b1fa1(0x104),_0x5b1fa1(0x105),_0x235fb2=>_0x235fb2||!this[_0x5b1fa1(0xff)]),_0x2e9c6b['if'](_0x5b1fa1(0xff),_0x5b1fa1(0x105),_0x452174=>!_0x452174||this[_0x5b1fa1(0x104)])]},'children':[this[_0x5b1fa1(0x10e)],this[_0x5b1fa1(0xfd)],this[_0x5b1fa1(0xf9)]]},{'tag':_0x5b1fa1(0x12c),'attributes':{'class':[_0x2e9c6b['if'](_0x5b1fa1(0x104),_0x5b1fa1(0x105),_0x2d9c28=>!_0x2d9c28)]},'children':[this[_0x5b1fa1(0x142)]]},{'tag':_0x5b1fa1(0x12c),'attributes':{'class':[_0x2e9c6b['if'](_0x5b1fa1(0xff),_0x5b1fa1(0x105),_0x41e4e7=>_0x41e4e7)]},'children':[this[_0x5b1fa1(0xfb)]]}]}),_0x3be0c3({'emitter':this[_0x5b1fa1(0xfd)],'activator':()=>this[_0x5b1fa1(0x104)],'contextElements':()=>[this[_0x5b1fa1(0x129)]],'callback':()=>{const _0x1ba6f4=_0x5b1fa1;this[_0x1ba6f4(0x125)]=!0x1;}}),this['on'](_0x5b1fa1(0x148),this[_0x5b1fa1(0x12f)],{'priority':_0x5b1fa1(0x124)});}[_0x57727f(0x111)](_0x12fb49,_0x3dbec8){return new _0x3402dc(_0x12fb49,_0x3dbec8);}[_0x57727f(0x113)](_0x2e16e5){const _0x2a242b=_0x57727f;return new _0x5d7c9a(_0x2e16e5,this[_0x2a242b(0x10e)][_0x2a242b(0x140)]);}[_0x57727f(0x11f)](_0x1a8956){return new _0x250694(_0x1a8956);}[_0x57727f(0x13c)](_0x49db4b){return new _0x52845b(_0x49db4b);}[_0x57727f(0x143)](_0x26ac3c){const _0x67ccf9=_0x57727f,_0xbe436d=new AIChatModelUnavailableMessageView(_0x26ac3c);return _0xbe436d[_0x67ccf9(0x10d)](_0x67ccf9(0x131))['to'](this),_0xbe436d;}[_0x57727f(0x12f)](_0x366ad6,_0xea8b53,_0x5e2fd7){const _0x5587a6=_0x57727f;_0x5e2fd7?this[_0x5587a6(0x125)]=!0x0:this[_0x5587a6(0x125)]&&this[_0x5587a6(0xfd)][_0x5587a6(0x12a)]();}[_0x57727f(0x116)](_0x26fd9a,_0xe2189c){const _0x35c150=_0x57727f;this[_0x35c150(0x10e)][_0x35c150(0x116)](_0x26fd9a,_0xe2189c);}[_0x57727f(0x135)](_0x2902a4){const _0x53a2b2=_0x57727f;this[_0x53a2b2(0x10e)][_0x53a2b2(0x135)](_0x2902a4);}[_0x57727f(0x137)](_0xae70fe,_0x1f75a5){const _0x467009=_0x57727f;this[_0x467009(0x10e)][_0x467009(0x137)](_0xae70fe,_0x1f75a5);}[_0x57727f(0xfc)](_0x201192){const _0x47fe00=_0x57727f;this[_0x47fe00(0xfd)][_0x47fe00(0xfc)](_0x201192);}[_0x57727f(0x146)](_0x3a5fb3){const _0x558c54=_0x57727f;this[_0x558c54(0x10e)][_0x558c54(0x146)](_0x3a5fb3);}[_0x57727f(0x109)](){const _0x24be89=_0x57727f;this[_0x24be89(0x10e)][_0x24be89(0x132)]();}[_0x57727f(0x13f)](){const _0xe68a16=_0x57727f;this[_0xe68a16(0x10e)][_0xe68a16(0x10f)]();}[_0x57727f(0xfe)](_0x56701d,_0x4f1893,_0x155a00){const _0x306b7f=_0x57727f;this[_0x306b7f(0x10e)][_0x306b7f(0xfe)](_0x56701d,_0x4f1893,_0x155a00);}[_0x57727f(0x13b)](_0x178e1b){const _0x1716aa=_0x57727f;this[_0x1716aa(0xf9)][_0x1716aa(0x13b)](_0x178e1b);}[_0x57727f(0x134)](_0x5e10a6){const _0x53c784=_0x57727f;this[_0x53c784(0xf9)][_0x53c784(0x134)](_0x5e10a6);}[_0x57727f(0x112)](){const _0x29feed=_0x57727f;this[_0x29feed(0xfd)][_0x29feed(0x110)]();}[_0x57727f(0x13e)](_0x2cf8ad){const _0x4844a6=_0x57727f;this[_0x4844a6(0x10e)][_0x4844a6(0x13e)](_0x2cf8ad);}[_0x57727f(0x11c)](_0x16ba8b){const _0x114cec=_0x57727f;this[_0x114cec(0xfd)][_0x114cec(0x11d)](_0x16ba8b);}[_0x57727f(0x118)](_0x47006,_0x576447){const _0x4743fe=_0x57727f;this[_0x4743fe(0xf9)][_0x4743fe(0x118)](_0x47006,_0x576447);}[_0x57727f(0x141)](_0x377e65){const _0x34b648=_0x57727f;_0x377e65?(this[_0x34b648(0xff)]=!0x0,this[_0x34b648(0xf9)][_0x34b648(0x141)](_0x377e65)):this[_0x34b648(0xff)]=!0x1;}[_0x57727f(0x127)](){const _0x2cbc0a=_0x57727f;this[_0x2cbc0a(0xf9)][_0x2cbc0a(0x127)]();}[_0x57727f(0x10a)](_0x52f982){const _0x4c4e57=_0x57727f;this[_0x4c4e57(0xf9)][_0x4c4e57(0x10a)](_0x52f982);}[_0x57727f(0x133)](_0x201e00,_0xd2d6df,_0xc01a4d,_0x405380){const _0x5bb7ce=_0x57727f;this[_0x5bb7ce(0x10e)][_0x5bb7ce(0x133)](_0x201e00,_0xd2d6df,_0xc01a4d,_0x405380);}[_0x57727f(0x119)](_0xa7f5d7){const _0x2caae5=_0x57727f;this[_0x2caae5(0x10e)][_0x2caae5(0x119)](_0xa7f5d7);}[_0x57727f(0x136)](_0x132ddc=!0x1){const _0x27d5eb=_0x57727f;this[_0x27d5eb(0xfd)][_0x27d5eb(0x12a)](_0x132ddc);}[_0x57727f(0x100)](_0x110e3b){const _0x2f9394=_0x57727f;this[_0x2f9394(0xfd)][_0x2f9394(0x147)][_0x2f9394(0x122)][_0x2f9394(0x110)](),this[_0x2f9394(0xfd)][_0x2f9394(0x147)][_0x2f9394(0x122)][_0x2f9394(0x13a)]=_0x110e3b;}}class AIChatModelUnavailableMessageView extends _0x67caf0{constructor(_0x292926){const _0x4157df=_0x57727f;super(_0x292926);const _0xed82f1=new _0x24bee5(_0x292926);_0xed82f1[_0x4157df(0x11e)]({'label':_0x248dc7(this[_0x4157df(0x117)],_0x4157df(0x106)),'withText':!0x0,'class':[_0x4157df(0x14a)],'tooltip':''}),_0xed82f1[_0x4157df(0x10d)](_0x4157df(0x107))['to'](this,_0x4157df(0x131)),this[_0x4157df(0x12e)]({'tag':_0x4157df(0x12c),'attributes':{'class':['ck',_0x4157df(0x121)]},'children':[{'tag':'p','children':[{'text':_0x248dc7(this[_0x4157df(0x117)],_0x4157df(0x144))+'\x20'},_0xed82f1]}]});}}
|
|
23
|
+
const _0x5af3b5=_0x3c7e;(function(_0x5e39e0,_0x5c1e40){const _0x5f3159=_0x3c7e,_0x5eda14=_0x5e39e0();while(!![]){try{const _0x10970e=-parseInt(_0x5f3159(0x1f3))/0x1*(parseInt(_0x5f3159(0x1f6))/0x2)+parseInt(_0x5f3159(0x1d5))/0x3*(-parseInt(_0x5f3159(0x1f5))/0x4)+parseInt(_0x5f3159(0x1e0))/0x5*(parseInt(_0x5f3159(0x1ae))/0x6)+-parseInt(_0x5f3159(0x1f0))/0x7+parseInt(_0x5f3159(0x1c0))/0x8*(parseInt(_0x5f3159(0x1c6))/0x9)+parseInt(_0x5f3159(0x1f8))/0xa+-parseInt(_0x5f3159(0x1b8))/0xb*(-parseInt(_0x5f3159(0x1b2))/0xc);if(_0x10970e===_0x5c1e40)break;else _0x5eda14['push'](_0x5eda14['shift']());}catch(_0x18415e){_0x5eda14['push'](_0x5eda14['shift']());}}}(_0x84aa,0xd58a3));function _0x3c7e(_0x10a184,_0x3c1471){const _0x84aaf8=_0x84aa();return _0x3c7e=function(_0x3c7e34,_0x377e75){_0x3c7e34=_0x3c7e34-0x1ac;let _0x3cf814=_0x84aaf8[_0x3c7e34];return _0x3cf814;},_0x3c7e(_0x10a184,_0x3c1471);}function _0x84aa(){const _0x5b611e=['reset','_createModelUnavailableMessageView','disableModelSelector','addContextButtonView','ck-ai-chat-controls-disabled','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','sendUserMessage','ck-hidden','9726NhvKtU','isLoading','setConversationContext','clearConversationContextUI','2412DyGLck','focus','setWebSearch','_modelUnavailableMessageView','_loaderView','setTemplate','26587XyvxRW','_promptCapabilitiesView','locale','isDisabled','toggleReasoning','element','setInputPlaceholder','div','648nEqSYM','clearConversationContextItems','closeSourceResourceBalloon','focusPromptInput','value','updateResourceState','75798BKnQHy','contextResourcesSearchInputVisibleFrom','enableModelSelector','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setReasoning','_createPromptCapabilitiesView','setIsUploadInProgress','_promptInputView','queryView','clearCurrentContextItems','ck-ai-chat-controls-model-unavailable-message','setContextItemLoading','fieldView','bodyCollection','clearPendingContextUI','9TmJgom','setModel','execute','_createContextPanelView','_createLoaderView','setPromptInputValue','resetMessageInput','change:isLoading','_handlePromptInputFocus','set','low','3265KlWQRa','selectModel','_createPromptInputView','ck-ai-chat-controls__start-new-chat-button','toggleWebSearch','bindTemplate','addContextItem','form','setPlaceholderText','_shouldRestorePromptInputFocus','_contextPanelView','removeContextItem','setModelList','ck-ai-chat-controls','setAddContextOptions','isModelAvailable','4043340AjcEaV','startConversation','delegate','20nNXeQd','populateSourceResourceBalloon','1073528iwUUuI','146022QXAzJV','abortPromptStream','14911330oJezoc'];_0x84aa=function(){return _0x5b611e;};return _0x84aa();}import{ButtonView as _0xf3cf43,clickOutsideHandler as _0x40b633,View as _0x767c04}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x44a652}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x2dbc2e}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x22ce3f,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x664d10}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x22e17f}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x3dfdaf}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x767c04{[_0x5af3b5(0x1ea)];[_0x5af3b5(0x1cd)];[_0x5af3b5(0x1b9)];[_0x5af3b5(0x1b6)];[_0x5af3b5(0x1b5)];[_0x5af3b5(0x1e9)];constructor(_0x5021b3,_0x5377f5){const _0x20abb9=_0x5af3b5;super(_0x5021b3),this[_0x20abb9(0x1ea)]=this[_0x20abb9(0x1d8)](_0x5021b3,{'bodyCollection':_0x5377f5[_0x20abb9(0x1d3)],'searchInputVisibleFrom':_0x5377f5[_0x20abb9(0x1c7)]}),this[_0x20abb9(0x1cd)]=this[_0x20abb9(0x1e2)](_0x5021b3),this[_0x20abb9(0x1b9)]=this[_0x20abb9(0x1cb)](_0x5021b3),this[_0x20abb9(0x1b6)]=this[_0x20abb9(0x1d9)](_0x5021b3),this[_0x20abb9(0x1b5)]=this[_0x20abb9(0x1fa)](_0x5021b3),this[_0x20abb9(0x1e9)]=!0x1,this[_0x20abb9(0x1cd)][_0x20abb9(0x1f2)](_0x20abb9(0x1ac))['to'](this),this[_0x20abb9(0x1b6)][_0x20abb9(0x1f2)](_0x20abb9(0x1f7))['to'](this),this[_0x20abb9(0x1b9)][_0x20abb9(0x1f2)](_0x20abb9(0x1e4))['to'](this),this[_0x20abb9(0x1b9)][_0x20abb9(0x1f2)](_0x20abb9(0x1bc))['to'](this),this[_0x20abb9(0x1b9)][_0x20abb9(0x1f2)](_0x20abb9(0x1e1))['to'](this),this[_0x20abb9(0x1ea)][_0x20abb9(0x1f2)](..._0x664d10)['to'](this),this[_0x20abb9(0x1de)](_0x20abb9(0x1ef),!0x0),this[_0x20abb9(0x1de)](_0x20abb9(0x1bb),!0x1);const _0x33c973=this[_0x20abb9(0x1e5)];this[_0x20abb9(0x1b7)]({'tag':_0x20abb9(0x1e7),'attributes':{'class':['ck',_0x20abb9(0x1ed),_0x33c973['if'](_0x20abb9(0x1bb),_0x20abb9(0x1fd))]},'children':[{'tag':_0x20abb9(0x1bf),'attributes':{'class':[_0x33c973['if'](_0x20abb9(0x1af),_0x20abb9(0x1ad),_0x553ef6=>_0x553ef6||!this[_0x20abb9(0x1ef)]),_0x33c973['if'](_0x20abb9(0x1ef),_0x20abb9(0x1ad),_0x90c790=>!_0x90c790||this[_0x20abb9(0x1af)])]},'children':[this[_0x20abb9(0x1ea)],this[_0x20abb9(0x1cd)],this[_0x20abb9(0x1b9)]]},{'tag':_0x20abb9(0x1bf),'attributes':{'class':[_0x33c973['if'](_0x20abb9(0x1af),_0x20abb9(0x1ad),_0x55a69d=>!_0x55a69d)]},'children':[this[_0x20abb9(0x1b6)]]},{'tag':_0x20abb9(0x1bf),'attributes':{'class':[_0x33c973['if'](_0x20abb9(0x1ef),_0x20abb9(0x1ad),_0xd547ec=>_0xd547ec)]},'children':[this[_0x20abb9(0x1b5)]]}]}),_0x40b633({'emitter':this[_0x20abb9(0x1cd)],'activator':()=>this[_0x20abb9(0x1af)],'contextElements':()=>[this[_0x20abb9(0x1bd)]],'callback':()=>{const _0x2a82dd=_0x20abb9;this[_0x2a82dd(0x1e9)]=!0x1;}}),this['on'](_0x20abb9(0x1dc),this[_0x20abb9(0x1dd)],{'priority':_0x20abb9(0x1df)});}[_0x5af3b5(0x1d8)](_0x22f6c5,_0x4c01f8){return new _0x22ce3f(_0x22f6c5,_0x4c01f8);}[_0x5af3b5(0x1e2)](_0x17aa33){const _0x3e36b0=_0x5af3b5;return new _0x44a652(_0x17aa33,this[_0x3e36b0(0x1ea)][_0x3e36b0(0x1fc)]);}[_0x5af3b5(0x1cb)](_0x3e8caf){return new _0x2dbc2e(_0x3e8caf);}[_0x5af3b5(0x1d9)](_0x48d9f7){return new _0x22e17f(_0x48d9f7);}[_0x5af3b5(0x1fa)](_0x3072c3){const _0x50cc95=_0x5af3b5,_0x4d77f9=new AIChatModelUnavailableMessageView(_0x3072c3);return _0x4d77f9[_0x50cc95(0x1f2)](_0x50cc95(0x1f1))['to'](this),_0x4d77f9;}[_0x5af3b5(0x1dd)](_0x21f84e,_0x4f6861,_0x40f3a4){const _0x2b5130=_0x5af3b5;_0x40f3a4?this[_0x2b5130(0x1e9)]=!0x0:this[_0x2b5130(0x1e9)]&&this[_0x2b5130(0x1cd)][_0x2b5130(0x1b3)]();}[_0x5af3b5(0x1e6)](_0x4746e5,_0x5ef64e){const _0x390179=_0x5af3b5;this[_0x390179(0x1ea)][_0x390179(0x1e6)](_0x4746e5,_0x5ef64e);}[_0x5af3b5(0x1eb)](_0x4d4f1d){const _0x710e0f=_0x5af3b5;this[_0x710e0f(0x1ea)][_0x710e0f(0x1eb)](_0x4d4f1d);}[_0x5af3b5(0x1d1)](_0x2bf834,_0x8fa5fd){const _0x171f93=_0x5af3b5;this[_0x171f93(0x1ea)][_0x171f93(0x1d1)](_0x2bf834,_0x8fa5fd);}[_0x5af3b5(0x1cc)](_0x406875){const _0x47f13e=_0x5af3b5;this[_0x47f13e(0x1cd)][_0x47f13e(0x1cc)](_0x406875);}[_0x5af3b5(0x1b0)](_0x364c5f){const _0x4ff265=_0x5af3b5;this[_0x4ff265(0x1ea)][_0x4ff265(0x1b0)](_0x364c5f);}[_0x5af3b5(0x1d4)](){const _0x1f83b6=_0x5af3b5;this[_0x1f83b6(0x1ea)][_0x1f83b6(0x1cf)]();}[_0x5af3b5(0x1b1)](){const _0x3c48ec=_0x5af3b5;this[_0x3c48ec(0x1ea)][_0x3c48ec(0x1c1)]();}[_0x5af3b5(0x1c5)](_0x4d3cdf,_0x2b0417,_0x5cb3a3){const _0x417867=_0x5af3b5;this[_0x417867(0x1ea)][_0x417867(0x1c5)](_0x4d3cdf,_0x2b0417,_0x5cb3a3);}[_0x5af3b5(0x1b4)](_0xde177){const _0x3900af=_0x5af3b5;this[_0x3900af(0x1b9)][_0x3900af(0x1b4)](_0xde177);}[_0x5af3b5(0x1ca)](_0x3d4108){const _0x2b2562=_0x5af3b5;this[_0x2b2562(0x1b9)][_0x2b2562(0x1ca)](_0x3d4108);}[_0x5af3b5(0x1db)](){const _0x25fb9e=_0x5af3b5;this[_0x25fb9e(0x1cd)][_0x25fb9e(0x1f9)]();}[_0x5af3b5(0x1ee)](_0x47ea67){const _0x2d483d=_0x5af3b5;this[_0x2d483d(0x1ea)][_0x2d483d(0x1ee)](_0x47ea67);}[_0x5af3b5(0x1be)](_0x132be2){const _0x492ef2=_0x5af3b5;this[_0x492ef2(0x1cd)][_0x492ef2(0x1e8)](_0x132be2);}[_0x5af3b5(0x1ec)](_0x235c65,_0x4836fa){const _0x356a73=_0x5af3b5;this[_0x356a73(0x1b9)][_0x356a73(0x1ec)](_0x235c65,_0x4836fa);}[_0x5af3b5(0x1d6)](_0x1b8b5c){const _0x24b0cb=_0x5af3b5;_0x1b8b5c?(this[_0x24b0cb(0x1ef)]=!0x0,this[_0x24b0cb(0x1b9)][_0x24b0cb(0x1d6)](_0x1b8b5c)):this[_0x24b0cb(0x1ef)]=!0x1;}[_0x5af3b5(0x1c8)](){const _0x3768e2=_0x5af3b5;this[_0x3768e2(0x1b9)][_0x3768e2(0x1c8)]();}[_0x5af3b5(0x1fb)](_0x10107c){const _0x4eff36=_0x5af3b5;this[_0x4eff36(0x1b9)][_0x4eff36(0x1fb)](_0x10107c);}[_0x5af3b5(0x1f4)](_0xda7742,_0x1980a9,_0x399b62,_0x1f83c2){const _0x40d6d2=_0x5af3b5;this[_0x40d6d2(0x1ea)][_0x40d6d2(0x1f4)](_0xda7742,_0x1980a9,_0x399b62,_0x1f83c2);}[_0x5af3b5(0x1c2)](_0x161d19){const _0x143f2b=_0x5af3b5;this[_0x143f2b(0x1ea)][_0x143f2b(0x1c2)](_0x161d19);}[_0x5af3b5(0x1c3)](_0x2fd10f=!0x1){const _0x422a70=_0x5af3b5;this[_0x422a70(0x1cd)][_0x422a70(0x1b3)](_0x2fd10f);}[_0x5af3b5(0x1da)](_0x1a9138){const _0x38e355=_0x5af3b5;this[_0x38e355(0x1cd)][_0x38e355(0x1ce)][_0x38e355(0x1d2)][_0x38e355(0x1f9)](),this[_0x38e355(0x1cd)][_0x38e355(0x1ce)][_0x38e355(0x1d2)][_0x38e355(0x1c4)]=_0x1a9138;}}class AIChatModelUnavailableMessageView extends _0x767c04{constructor(_0x58227f){const _0xc7ba79=_0x5af3b5;super(_0x58227f);const _0x3024cf=new _0xf3cf43(_0x58227f);_0x3024cf[_0xc7ba79(0x1de)]({'label':_0x3dfdaf(this[_0xc7ba79(0x1ba)],_0xc7ba79(0x1fe)),'withText':!0x0,'class':[_0xc7ba79(0x1e3)],'tooltip':''}),_0x3024cf[_0xc7ba79(0x1f2)](_0xc7ba79(0x1d7))['to'](this,_0xc7ba79(0x1f1)),this[_0xc7ba79(0x1b7)]({'tag':_0xc7ba79(0x1bf),'attributes':{'class':['ck',_0xc7ba79(0x1d0)]},'children':[{'tag':'p','children':[{'text':_0x3dfdaf(this[_0xc7ba79(0x1ba)],_0xc7ba79(0x1c9))+'\x20'},_0x3024cf]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4e2441=_0x1867;(function(_0x8dccd2,_0x22d6e7){const _0x9e1b32=_0x1867,_0x114cf6=_0x8dccd2();while(!![]){try{const _0x5643fa=parseInt(_0x9e1b32(0x1cd))/0x1+parseInt(_0x9e1b32(0x18c))/0x2+-parseInt(_0x9e1b32(0x185))/0x3*(-parseInt(_0x9e1b32(0x1d0))/0x4)+-parseInt(_0x9e1b32(0x1b0))/0x5*(-parseInt(_0x9e1b32(0x1cb))/0x6)+parseInt(_0x9e1b32(0x193))/0x7+-parseInt(_0x9e1b32(0x1b5))/0x8*(-parseInt(_0x9e1b32(0x1b8))/0x9)+parseInt(_0x9e1b32(0x199))/0xa*(-parseInt(_0x9e1b32(0x18b))/0xb);if(_0x5643fa===_0x22d6e7)break;else _0x114cf6['push'](_0x114cf6['shift']());}catch(_0x314822){_0x114cf6['push'](_0x114cf6['shift']());}}}(_0x1bc9,0x97910));import{CKEditorError as _0x3cd1dd,logWarning as _0x56f21b,scrollAncestorsToShowTarget as _0x123425}from'ckeditor5/src/utils.js';function _0x1bc9(){const _0x2591b2=['custom-element','options','start','addItem','223962OyVqla','delegate','895758dcjFqi','createCollection','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','234560DsViaz','setLoadingMessage','scrollToSuggestion','ck-ai-chat__loader','render','bind','ai-chat-feed-view-item-not-found','markItemAsDone','ai-reply','includes','updatePartState','aiFeed','ck-ai-chat__loader-text','isPending','24kZobrU','bindTemplate','find','filter','startAutoScroll','div','150700FEGjbQ','1355186cxiJVg','interaction-header','updateContent','stop','_createSkeletonLoader','ck-ai-chat__feed__items','_createFeedLoader','5406205tkgmnA','ck-ai-chat__feed','_createFeedItems','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','getPartView','scrollManager','1920zymRwf','isTrackChangesOn','_setupTemplate','_bodyCollection','ai-suggestion-reply','updateSuggestionItem','extendTemplate','remove','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','setTemplate','add','_createTemplateChildren','element','ai-chat-feed-view-item-not-a-reply-item','clear','ck-hidden','loadingMessage','updateSuggestionPartState','parentElement','updateWebSources','forEach','updateSources','hasItem','55JKDoLm','removeItem','map','isVisible','getItemById','68888kfTziE','setPartActive','span','27CGAKjz','getItemIds','ai-chat-feed-view-item-not-a-suggestion-item','markAsDone','children','set','isLoadingSkeletonVisible','toggleLoadingSkeleton','destroy','_createLoaderChildren','locale','setSuggestionPartActive','stopAutoScroll','updateReplyItem','user-message'];_0x1bc9=function(){return _0x2591b2;};return _0x1bc9();}import{View as _0x1efcf6}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x392249}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x353151}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3ca747}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x28662f}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x2be204}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x2465c4}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x1bbc78}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x587641,SKELETON_DEFINITIONS as _0x4deb49}from'../../aicore/ui/aiskeleton.js';function _0x1867(_0x2c0c36,_0x1add69){const _0x1bc943=_0x1bc9();return _0x1867=function(_0x186733,_0x1de2a8){_0x186733=_0x186733-0x185;let _0x1bc1ed=_0x1bc943[_0x186733];return _0x1bc1ed;},_0x1867(_0x2c0c36,_0x1add69);}import{AISpinnerView as _0x475fdf}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x585a32}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x1efcf6{[_0x4e2441(0x1bc)];[_0x4e2441(0x198)];[_0x4e2441(0x19c)];constructor(_0x324123,_0x47ea17){const _0x4052e0=_0x4e2441;super(_0x324123),this[_0x4052e0(0x19c)]=_0x47ea17,this[_0x4052e0(0x1bd)](_0x4052e0(0x1dd),!0x1),this[_0x4052e0(0x1bd)](_0x4052e0(0x1a9),''),this[_0x4052e0(0x1bd)](_0x4052e0(0x1be),!0x1),this[_0x4052e0(0x1bd)](_0x4052e0(0x19a),!0x1),this[_0x4052e0(0x1bc)]=this[_0x4052e0(0x1ce)](),this[_0x4052e0(0x1bc)][_0x4052e0(0x1cc)](..._0x392249)['to'](this),this[_0x4052e0(0x19b)]();}[_0x4e2441(0x1d4)](){const _0x77ec75=_0x4e2441;super[_0x77ec75(0x1d4)](),this[_0x77ec75(0x198)]=new _0x1bbc78(this[_0x77ec75(0x1a5)]);}[_0x4e2441(0x1c0)](){const _0x57b292=_0x4e2441;super[_0x57b292(0x1c0)](),this[_0x57b292(0x198)][_0x57b292(0x1c0)]();}[_0x4e2441(0x1a7)](){const _0x3562a7=_0x4e2441;this[_0x3562a7(0x1bc)][_0x3562a7(0x1a7)]();}[_0x4e2441(0x1ca)](_0x16c1cf,_0x5debd9){const _0x734d5=_0x4e2441;let _0x3940a5;return _0x734d5(0x1d8)===_0x16c1cf?_0x3940a5=new _0x3ca747(this[_0x734d5(0x1c2)],_0x5debd9,this[_0x734d5(0x19c)]):_0x734d5(0x19d)===_0x16c1cf?(_0x3940a5=new _0x353151(this[_0x734d5(0x1c2)],_0x5debd9,this[_0x734d5(0x19c)]),_0x3940a5[_0x734d5(0x1d5)](_0x734d5(0x19a))['to'](this)):_0x3940a5=_0x734d5(0x1c6)===_0x16c1cf?new _0x28662f(this[_0x734d5(0x1c2)],_0x5debd9,this[_0x734d5(0x19c)]):_0x734d5(0x18d)===_0x16c1cf?new _0x2465c4(this[_0x734d5(0x1c2)],_0x5debd9):_0x734d5(0x1c7)===_0x16c1cf?new _0x585a32(_0x5debd9):new _0x2be204(_0x5debd9),this[_0x734d5(0x1bc)][_0x734d5(0x1a3)](_0x3940a5),_0x3940a5;}async[_0x4e2441(0x1c5)]({id:_0x3b7bfc,parsedContent:_0xf143dc,renderingStrategy:_0x5ef2ac,abortSignal:_0xf73157}){const _0x2870a8=_0x4e2441,_0x38e203=this[_0x2870a8(0x1b4)](_0x3b7bfc);if(!(_0x38e203 instanceof _0x3ca747))throw new _0x3cd1dd(_0x2870a8(0x1a6),null,{'itemView':_0x38e203,'id':_0x3b7bfc,'parsedContent':_0xf143dc});await _0x38e203[_0x2870a8(0x18e)]({'parsedContent':_0xf143dc,'renderingStrategy':_0x5ef2ac,'abortSignal':_0xf73157});}async[_0x4e2441(0x1ac)](_0x4b5806,_0x2fe668){const _0x54c05e=_0x4e2441,_0xf8c068=this[_0x54c05e(0x1b4)](_0x4b5806);if(_0xf8c068 instanceof _0x353151)_0xf8c068[_0x54c05e(0x1ae)](_0x2fe668);else{if(!(_0xf8c068 instanceof _0x3ca747))throw new _0x3cd1dd(_0x54c05e(0x196),null,{'itemView':_0xf8c068,'id':_0x4b5806,'sources':_0x2fe668});_0xf8c068[_0x54c05e(0x1ae)](_0x2fe668);}}async[_0x4e2441(0x19e)]({id:_0x21bec0,parts:_0x222de0,renderingStrategy:_0x4db238,abortSignal:_0x33d47a}){const _0x216d3a=_0x4e2441,_0x4ccb95=this[_0x216d3a(0x1b4)](_0x21bec0);if(!(_0x4ccb95 instanceof _0x353151))throw new _0x3cd1dd(_0x216d3a(0x1ba),null,{'itemView':_0x4ccb95,'id':_0x21bec0,'parts':_0x222de0});await _0x4ccb95[_0x216d3a(0x18e)]({'parts':_0x222de0,'renderingStrategy':_0x4db238,'abortSignal':_0x33d47a});}[_0x4e2441(0x1aa)]({id:_0xe88334,index:_0x14df31,state:_0x198c47}){const _0x18b0c6=_0x4e2441,_0x2b7132=this[_0x18b0c6(0x1b4)](_0xe88334);if(!(_0x2b7132 instanceof _0x353151))throw new _0x3cd1dd(_0x18b0c6(0x1ba),this,{'id':_0xe88334});_0x2b7132[_0x18b0c6(0x1da)](_0x14df31,_0x198c47);}[_0x4e2441(0x1c3)]({id:_0x25be4c,index:_0x5e6023,isActive:_0xd2c9fc}){const _0x480c5c=_0x4e2441,_0x160b57=this[_0x480c5c(0x1b4)](_0x25be4c);if(!(_0x160b57 instanceof _0x353151))throw new _0x3cd1dd(_0x480c5c(0x1ba),this,{'id':_0x25be4c});this[_0x480c5c(0x1bc)][_0x480c5c(0x188)](_0x48c1cf=>_0x48c1cf instanceof _0x353151)[_0x480c5c(0x1ad)](_0x64f3dc=>{const _0x4f135d=_0x480c5c;_0x64f3dc[_0x4f135d(0x1b6)](!0x1);}),_0x160b57[_0x480c5c(0x1b6)](_0x5e6023,_0xd2c9fc);}[_0x4e2441(0x1d7)](_0x2799c3){const _0x38056c=_0x4e2441;this[_0x38056c(0x1b4)](_0x2799c3)[_0x38056c(0x1bb)]();}[_0x4e2441(0x1b9)](){const _0x180003=_0x4e2441;return this[_0x180003(0x1bc)][_0x180003(0x1b2)](_0x418efc=>_0x418efc[_0x180003(0x1c8)]['id']);}[_0x4e2441(0x1b1)](_0x5562bb){const _0x27a2ca=_0x4e2441;this[_0x27a2ca(0x1bc)][_0x27a2ca(0x1a0)](this[_0x27a2ca(0x1b4)](_0x5562bb));}[_0x4e2441(0x1af)](_0x2523fe){const _0x11013f=_0x4e2441;return!!this[_0x11013f(0x1bc)][_0x11013f(0x187)](_0x22c7f8=>_0x22c7f8[_0x11013f(0x1c8)]['id'][_0x11013f(0x1d9)](_0x2523fe));}[_0x4e2441(0x1d2)](_0x5eab9a,_0x356257){const _0x4cee69=_0x4e2441,_0x3a3dc7=this[_0x4cee69(0x1b4)](_0x5eab9a);if(!(_0x3a3dc7 instanceof _0x353151))return void _0x56f21b(_0x4cee69(0x1cf),{'replyId':_0x5eab9a,'partIndex':_0x356257});const _0x1cb693=_0x3a3dc7[_0x4cee69(0x197)](_0x356257);_0x1cb693?_0x123425(_0x1cb693[_0x4cee69(0x1a5)],0x14,this[_0x4cee69(0x1a5)][_0x4cee69(0x1ab)],!0x0,!0x0):_0x56f21b(_0x4cee69(0x1a1),{'replyId':_0x5eab9a,'partIndex':_0x356257});}[_0x4e2441(0x19b)](){const _0x2cbb35=_0x4e2441;this[_0x2cbb35(0x1a2)]({'tag':_0x2cbb35(0x18a),'attributes':{'class':['ck',_0x2cbb35(0x194)]},'children':this[_0x2cbb35(0x1a4)]()});}[_0x4e2441(0x1a4)](){const _0x12923f=_0x4e2441,_0x505ed2=this[_0x12923f(0x190)]();return[this[_0x12923f(0x195)](),_0x505ed2,this[_0x12923f(0x192)]()];}[_0x4e2441(0x190)](){const _0x5690b7=_0x4e2441,_0x3bc82a=new _0x587641(this[_0x5690b7(0x1c2)],_0x4deb49[_0x5690b7(0x1db)]);return _0x3bc82a[_0x5690b7(0x19f)]({'attributes':{'class':[this[_0x5690b7(0x186)]['if'](_0x5690b7(0x1be),_0x5690b7(0x1a8),_0x989cb8=>!_0x989cb8)]}}),_0x3bc82a;}[_0x4e2441(0x195)](){const _0x5df71e=_0x4e2441,_0xea1c4f=new _0x1efcf6(this[_0x5df71e(0x1c2)]);return _0xea1c4f[_0x5df71e(0x1a2)]({'tag':_0x5df71e(0x18a),'attributes':{'class':['ck',_0x5df71e(0x191),this[_0x5df71e(0x186)]['if'](_0x5df71e(0x1be),_0x5df71e(0x1a8))]},'children':this[_0x5df71e(0x1bc)]}),_0xea1c4f;}[_0x4e2441(0x192)](){const _0x50612d=_0x4e2441,_0x3479a1=new _0x1efcf6(this[_0x50612d(0x1c2)]);return _0x3479a1[_0x50612d(0x1a2)]({'tag':_0x50612d(0x18a),'attributes':{'class':['ck',_0x50612d(0x1d3),this[_0x50612d(0x186)]['if'](_0x50612d(0x1dd),_0x50612d(0x1a8),_0x17936d=>!_0x17936d)]},'children':this[_0x50612d(0x1c1)]()}),_0x3479a1;}[_0x4e2441(0x1c1)](){const _0x3aabef=_0x4e2441,_0x335359=new _0x475fdf();return _0x335359[_0x3aabef(0x1b3)]=!0x0,[_0x335359,{'tag':_0x3aabef(0x1b7),'attributes':{'class':['ck',_0x3aabef(0x1dc)]},'children':[{'text':this[_0x3aabef(0x186)]['to'](_0x3aabef(0x1a9))}]}];}[_0x4e2441(0x1b4)](_0x3d84ba){const _0x2aff88=_0x4e2441,_0x4847a9=this[_0x2aff88(0x1bc)][_0x2aff88(0x187)](_0x122588=>_0x122588[_0x2aff88(0x1c8)]['id'][_0x2aff88(0x1d9)](_0x3d84ba));if(!_0x4847a9)throw new _0x3cd1dd(_0x2aff88(0x1d6),this,{'id':_0x3d84ba});return _0x4847a9;}[_0x4e2441(0x1d1)](_0x1fd033){const _0x3f12da=_0x4e2441;this[_0x3f12da(0x1bd)](_0x3f12da(0x1a9),_0x1fd033);}[_0x4e2441(0x1bf)](_0x373264){const _0x31e172=_0x4e2441;this[_0x31e172(0x1bd)](_0x31e172(0x1be),_0x373264);}[_0x4e2441(0x189)](){const _0x5076ff=_0x4e2441;this[_0x5076ff(0x198)][_0x5076ff(0x1c9)]();}[_0x4e2441(0x1c4)](){const _0x592a8a=_0x4e2441;this[_0x592a8a(0x198)][_0x592a8a(0x18f)]();}}
|
|
23
|
+
const _0x29f9c6=_0x2b30;(function(_0x5b52d3,_0x446e45){const _0x40536d=_0x2b30,_0x202866=_0x5b52d3();while(!![]){try{const _0x35a572=-parseInt(_0x40536d(0x20f))/0x1*(parseInt(_0x40536d(0x236))/0x2)+parseInt(_0x40536d(0x24a))/0x3+-parseInt(_0x40536d(0x229))/0x4*(parseInt(_0x40536d(0x237))/0x5)+-parseInt(_0x40536d(0x202))/0x6*(-parseInt(_0x40536d(0x221))/0x7)+parseInt(_0x40536d(0x231))/0x8+-parseInt(_0x40536d(0x245))/0x9*(-parseInt(_0x40536d(0x1fb))/0xa)+-parseInt(_0x40536d(0x22e))/0xb;if(_0x35a572===_0x446e45)break;else _0x202866['push'](_0x202866['shift']());}catch(_0xdf7656){_0x202866['push'](_0x202866['shift']());}}}(_0x2ade,0xa467e));import{CKEditorError as _0x417f61,logWarning as _0x18ae10,scrollAncestorsToShowTarget as _0x56c1a7}from'ckeditor5/src/utils.js';import{View as _0x21bf49}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5e76d1}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x19a6e2}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x1d2073}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x372b7d}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x4dee49}from'./feed/aichatfeederroritemview.js';function _0x2b30(_0x3750d6,_0x2ddced){const _0x2adee0=_0x2ade();return _0x2b30=function(_0x2b305e,_0x45a39a){_0x2b305e=_0x2b305e-0x1f4;let _0x4c1167=_0x2adee0[_0x2b305e];return _0x4c1167;},_0x2b30(_0x3750d6,_0x2ddced);}import{AIChatFeedInteractionHeaderView as _0x105c2f}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x505a5a}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x14d75a,SKELETON_DEFINITIONS as _0xdbf875}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x5296ba}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x5ea61d}from'./feed/aichatfeedcustomelementview.js';function _0x2ade(){const _0x3a8644=['options','updateReplyItem','10toHvlW','remove','toggleLoadingSkeleton','interaction-header','updateWebSources','start','delegate','84IwPHHS','render','isLoadingSkeletonVisible','_createLoaderChildren','removeItem','ck-ai-chat__loader-text','destroy','map','div','custom-element','filter','markAsDone','createCollection','5htEpuG','parentElement','aiFeed','bind','isVisible','_bodyCollection','updateSuggestionPartState','locale','updateSources','span','_createFeedLoader','ai-chat-feed-view-item-not-a-suggestion-item','getItemIds','ck-ai-chat__loader','find','setSuggestionPartActive','getItemById','ai-chat-feed-view-item-not-found','298515ETGjwz','ai-reply','ai-chat-feed-view-item-not-a-reply-item','startAutoScroll','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','element','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ai-suggestion-reply','58388ZDmRFs','children','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','_createSkeletonLoader','extendTemplate','6857895sdpFAs','loadingMessage','_createTemplateChildren','463296SPAbwS','user-message','scrollManager','updateContent','setTemplate','288440jPrpwN','55gxTMhr','setLoadingMessage','ck-ai-chat__feed__items','markItemAsDone','isPending','isTrackChangesOn','includes','ck-hidden','updateSuggestionItem','scrollToSuggestion','setPartActive','_setupTemplate','set','getPartView','11368908llEXxN','forEach','ck-ai-chat__feed','addItem','hasItem','781092LIHbDj','clear','bindTemplate','_createFeedItems','stop','add','stopAutoScroll','updatePartState'];_0x2ade=function(){return _0x3a8644;};return _0x2ade();}import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x21bf49{[_0x29f9c6(0x22a)];[_0x29f9c6(0x233)];[_0x29f9c6(0x214)];constructor(_0x2ec569,_0x1419f7){const _0x1fb039=_0x29f9c6;super(_0x2ec569),this[_0x1fb039(0x214)]=_0x1419f7,this[_0x1fb039(0x243)](_0x1fb039(0x23b),!0x1),this[_0x1fb039(0x243)](_0x1fb039(0x22f),''),this[_0x1fb039(0x243)](_0x1fb039(0x204),!0x1),this[_0x1fb039(0x243)](_0x1fb039(0x23c),!0x1),this[_0x1fb039(0x22a)]=this[_0x1fb039(0x20e)](),this[_0x1fb039(0x22a)][_0x1fb039(0x201)](..._0x5e76d1)['to'](this),this[_0x1fb039(0x242)]();}[_0x29f9c6(0x203)](){const _0x5ccd07=_0x29f9c6;super[_0x5ccd07(0x203)](),this[_0x5ccd07(0x233)]=new _0x505a5a(this[_0x5ccd07(0x226)]);}[_0x29f9c6(0x208)](){const _0x48920b=_0x29f9c6;super[_0x48920b(0x208)](),this[_0x48920b(0x233)][_0x48920b(0x208)]();}[_0x29f9c6(0x24b)](){const _0x39c6fe=_0x29f9c6;this[_0x39c6fe(0x22a)][_0x39c6fe(0x24b)]();}[_0x29f9c6(0x248)](_0x17d3bc,_0x5dfb80){const _0x276785=_0x29f9c6;let _0x324870;return _0x276785(0x222)===_0x17d3bc?_0x324870=new _0x1d2073(this[_0x276785(0x216)],_0x5dfb80,this[_0x276785(0x214)]):_0x276785(0x228)===_0x17d3bc?(_0x324870=new _0x19a6e2(this[_0x276785(0x216)],_0x5dfb80,this[_0x276785(0x214)]),_0x324870[_0x276785(0x212)](_0x276785(0x23c))['to'](this)):_0x324870=_0x276785(0x232)===_0x17d3bc?new _0x372b7d(this[_0x276785(0x216)],_0x5dfb80,this[_0x276785(0x214)]):_0x276785(0x1fe)===_0x17d3bc?new _0x105c2f(this[_0x276785(0x216)],_0x5dfb80):_0x276785(0x20b)===_0x17d3bc?new _0x5ea61d(_0x5dfb80):new _0x4dee49(_0x5dfb80),this[_0x276785(0x22a)][_0x276785(0x1f6)](_0x324870),_0x324870;}async[_0x29f9c6(0x1fa)]({id:_0x471e58,parsedContent:_0x1b17ec,renderingStrategy:_0x52c6a3,abortSignal:_0x165f4e}){const _0x4f5966=_0x29f9c6,_0x543b02=this[_0x4f5966(0x21f)](_0x471e58);if(!(_0x543b02 instanceof _0x1d2073))throw new _0x417f61(_0x4f5966(0x223),null,{'itemView':_0x543b02,'id':_0x471e58,'parsedContent':_0x1b17ec});await _0x543b02[_0x4f5966(0x234)]({'parsedContent':_0x1b17ec,'renderingStrategy':_0x52c6a3,'abortSignal':_0x165f4e});}async[_0x29f9c6(0x1ff)](_0x170a13,_0x4c2bfe){const _0x3e5785=_0x29f9c6,_0x1a3ad3=this[_0x3e5785(0x21f)](_0x170a13);if(_0x1a3ad3 instanceof _0x19a6e2)_0x1a3ad3[_0x3e5785(0x217)](_0x4c2bfe);else{if(!(_0x1a3ad3 instanceof _0x1d2073))throw new _0x417f61(_0x3e5785(0x225),null,{'itemView':_0x1a3ad3,'id':_0x170a13,'sources':_0x4c2bfe});_0x1a3ad3[_0x3e5785(0x217)](_0x4c2bfe);}}async[_0x29f9c6(0x23f)]({id:_0x5de8ec,parts:_0x3fb359,renderingStrategy:_0xac8f33,abortSignal:_0x262c0f}){const _0x56a8f2=_0x29f9c6,_0x215080=this[_0x56a8f2(0x21f)](_0x5de8ec);if(!(_0x215080 instanceof _0x19a6e2))throw new _0x417f61(_0x56a8f2(0x21a),null,{'itemView':_0x215080,'id':_0x5de8ec,'parts':_0x3fb359});await _0x215080[_0x56a8f2(0x234)]({'parts':_0x3fb359,'renderingStrategy':_0xac8f33,'abortSignal':_0x262c0f});}[_0x29f9c6(0x215)]({id:_0x248a0f,index:_0x306404,state:_0x2fb69f}){const _0x485111=_0x29f9c6,_0x2dcbcd=this[_0x485111(0x21f)](_0x248a0f);if(!(_0x2dcbcd instanceof _0x19a6e2))throw new _0x417f61(_0x485111(0x21a),this,{'id':_0x248a0f});_0x2dcbcd[_0x485111(0x1f8)](_0x306404,_0x2fb69f);}[_0x29f9c6(0x21e)]({id:_0x4f26c5,index:_0x26c3af,isActive:_0x3eb213}){const _0x255bc0=_0x29f9c6,_0x28f327=this[_0x255bc0(0x21f)](_0x4f26c5);if(!(_0x28f327 instanceof _0x19a6e2))throw new _0x417f61(_0x255bc0(0x21a),this,{'id':_0x4f26c5});this[_0x255bc0(0x22a)][_0x255bc0(0x20c)](_0xe5e9cb=>_0xe5e9cb instanceof _0x19a6e2)[_0x255bc0(0x246)](_0x2166bc=>{const _0x4d0f5a=_0x255bc0;_0x2166bc[_0x4d0f5a(0x241)](!0x1);}),_0x28f327[_0x255bc0(0x241)](_0x26c3af,_0x3eb213);}[_0x29f9c6(0x23a)](_0x44ebed){const _0x4daca3=_0x29f9c6;this[_0x4daca3(0x21f)](_0x44ebed)[_0x4daca3(0x20d)]();}[_0x29f9c6(0x21b)](){const _0x1e3ac1=_0x29f9c6;return this[_0x1e3ac1(0x22a)][_0x1e3ac1(0x209)](_0x57f047=>_0x57f047[_0x1e3ac1(0x1f9)]['id']);}[_0x29f9c6(0x206)](_0x142f8d){const _0xef553b=_0x29f9c6;this[_0xef553b(0x22a)][_0xef553b(0x1fc)](this[_0xef553b(0x21f)](_0x142f8d));}[_0x29f9c6(0x249)](_0x591e25){const _0xff792d=_0x29f9c6;return!!this[_0xff792d(0x22a)][_0xff792d(0x21d)](_0x3894de=>_0x3894de[_0xff792d(0x1f9)]['id'][_0xff792d(0x23d)](_0x591e25));}[_0x29f9c6(0x240)](_0x12cf24,_0x163b01){const _0x342833=_0x29f9c6,_0x125964=this[_0x342833(0x21f)](_0x12cf24);if(!(_0x125964 instanceof _0x19a6e2))return void _0x18ae10(_0x342833(0x227),{'replyId':_0x12cf24,'partIndex':_0x163b01});const _0x3ded6f=_0x125964[_0x342833(0x244)](_0x163b01);_0x3ded6f?_0x56c1a7(_0x3ded6f[_0x342833(0x226)],0x14,this[_0x342833(0x226)][_0x342833(0x210)],!0x0,!0x0):_0x18ae10(_0x342833(0x22b),{'replyId':_0x12cf24,'partIndex':_0x163b01});}[_0x29f9c6(0x242)](){const _0x30452a=_0x29f9c6;this[_0x30452a(0x235)]({'tag':_0x30452a(0x20a),'attributes':{'class':['ck',_0x30452a(0x247)]},'children':this[_0x30452a(0x230)]()});}[_0x29f9c6(0x230)](){const _0x311318=_0x29f9c6,_0x20ad84=this[_0x311318(0x22c)]();return[this[_0x311318(0x1f4)](),_0x20ad84,this[_0x311318(0x219)]()];}[_0x29f9c6(0x22c)](){const _0x3228b9=_0x29f9c6,_0x462f63=new _0x14d75a(this[_0x3228b9(0x216)],_0xdbf875[_0x3228b9(0x211)]);return _0x462f63[_0x3228b9(0x22d)]({'attributes':{'class':[this[_0x3228b9(0x24c)]['if'](_0x3228b9(0x204),_0x3228b9(0x23e),_0x3c93c1=>!_0x3c93c1)]}}),_0x462f63;}[_0x29f9c6(0x1f4)](){const _0x52b2b7=_0x29f9c6,_0x3452f6=new _0x21bf49(this[_0x52b2b7(0x216)]);return _0x3452f6[_0x52b2b7(0x235)]({'tag':_0x52b2b7(0x20a),'attributes':{'class':['ck',_0x52b2b7(0x239),this[_0x52b2b7(0x24c)]['if'](_0x52b2b7(0x204),_0x52b2b7(0x23e))]},'children':this[_0x52b2b7(0x22a)]}),_0x3452f6;}[_0x29f9c6(0x219)](){const _0x3cdf15=_0x29f9c6,_0xf2a96d=new _0x21bf49(this[_0x3cdf15(0x216)]);return _0xf2a96d[_0x3cdf15(0x235)]({'tag':_0x3cdf15(0x20a),'attributes':{'class':['ck',_0x3cdf15(0x21c),this[_0x3cdf15(0x24c)]['if'](_0x3cdf15(0x23b),_0x3cdf15(0x23e),_0x496300=>!_0x496300)]},'children':this[_0x3cdf15(0x205)]()}),_0xf2a96d;}[_0x29f9c6(0x205)](){const _0x23f1c8=_0x29f9c6,_0x21e1b1=new _0x5296ba();return _0x21e1b1[_0x23f1c8(0x213)]=!0x0,[_0x21e1b1,{'tag':_0x23f1c8(0x218),'attributes':{'class':['ck',_0x23f1c8(0x207)]},'children':[{'text':this[_0x23f1c8(0x24c)]['to'](_0x23f1c8(0x22f))}]}];}[_0x29f9c6(0x21f)](_0x538e8){const _0x3bde3c=_0x29f9c6,_0x1ab6b8=this[_0x3bde3c(0x22a)][_0x3bde3c(0x21d)](_0x4eb13c=>_0x4eb13c[_0x3bde3c(0x1f9)]['id'][_0x3bde3c(0x23d)](_0x538e8));if(!_0x1ab6b8)throw new _0x417f61(_0x3bde3c(0x220),this,{'id':_0x538e8});return _0x1ab6b8;}[_0x29f9c6(0x238)](_0x4b860a){const _0x62fbad=_0x29f9c6;this[_0x62fbad(0x243)](_0x62fbad(0x22f),_0x4b860a);}[_0x29f9c6(0x1fd)](_0x58cd05){const _0xcea42e=_0x29f9c6;this[_0xcea42e(0x243)](_0xcea42e(0x204),_0x58cd05);}[_0x29f9c6(0x224)](){const _0x4c0f1c=_0x29f9c6;this[_0x4c0f1c(0x233)][_0x4c0f1c(0x200)]();}[_0x29f9c6(0x1f7)](){const _0x133d58=_0x29f9c6;this[_0x133d58(0x233)][_0x133d58(0x1f5)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x224d7=_0x4daf;function _0xf0f8(){const _0x22cb9e=['135qrSUSU','add','8466408vtdSNG','ck-ai-header\x20ck-ai-header_chat','65154YkOAbS','_createStartConversationButton','children','AI_CHAT_LABEL_NEW_CHAT','525VflFsG','6224000uhvQJU','489750MABLbB','52112yBbCVN','resizeButton','isMaximized','startConversation','AI_CHAT_HEADING','1699892SIDhII','16ECGFNW','638ZpztCl','conversationStartButton','execute','set','locale','fire','ck-ai-chat__start-conversation','7354675ImNmHw'];_0xf0f8=function(){return _0x22cb9e;};return _0xf0f8();}(function(_0x33b5c0,_0x40474a){const _0x458c8d=_0x4daf,_0x480f1c=_0x33b5c0();while(!![]){try{const _0x29eac1=-parseInt(_0x458c8d(0x11c))/0x1+parseInt(_0x458c8d(0x117))/0x2*(-parseInt(_0x458c8d(0x126))/0x3)+-parseInt(_0x458c8d(0x115))/0x4+parseInt(_0x458c8d(0x125))/0x5+parseInt(_0x458c8d(0x12a))/0x6*(-parseInt(_0x458c8d(0x114))/0x7)+parseInt(_0x458c8d(0x11d))/0x8*(parseInt(_0x458c8d(0x128))/0x9)+-parseInt(_0x458c8d(0x116))/0xa*(-parseInt(_0x458c8d(0x11e))/0xb);if(_0x29eac1===_0x40474a)break;else _0x480f1c['push'](_0x480f1c['shift']());}catch(_0x2b8991){_0x480f1c['push'](_0x480f1c['shift']());}}}(_0xf0f8,0xe7f38));import{ButtonView as _0x4bd666,FormHeaderView as _0x463cd4}from'ckeditor5/src/ui.js';import{IconPlus as _0x554696,IconAIChat as _0x39b37d}from'ckeditor5/src/icons.js';import{getTranslation as _0x1f6714}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x29f4f6}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';function _0x4daf(_0xe6826,_0x44d37c){const _0xf0f8a5=_0xf0f8();return _0x4daf=function(_0x4dafdf,_0x259020){_0x4dafdf=_0x4dafdf-0x113;let _0xfd5fbf=_0xf0f8a5[_0x4dafdf];return _0xfd5fbf;},_0x4daf(_0xe6826,_0x44d37c);}export class AIChatHeaderView extends _0x463cd4{[_0x224d7(0x11f)];[_0x224d7(0x118)];constructor(_0x26a1cc,_0x16dca1){const _0x529c18=_0x224d7;super(_0x26a1cc,{'label':_0x1f6714(_0x26a1cc,_0x529c18(0x11b)),'class':_0x529c18(0x129),'icon':_0x39b37d}),this[_0x529c18(0x121)](_0x529c18(0x119),!0x1),this[_0x529c18(0x11f)]=this[_0x529c18(0x12b)](_0x26a1cc),this[_0x529c18(0x12c)][_0x529c18(0x127)](this[_0x529c18(0x11f)]),_0x16dca1&&(this[_0x529c18(0x118)]=_0x29f4f6(_0x26a1cc,this),this[_0x529c18(0x12c)][_0x529c18(0x127)](this[_0x529c18(0x118)]));}[_0x224d7(0x12b)](_0x4a6fca){const _0x4183a0=_0x224d7,_0x312429=new _0x4bd666(_0x4a6fca);return _0x312429[_0x4183a0(0x121)]({'label':_0x1f6714(this[_0x4183a0(0x122)],_0x4183a0(0x113)),'withText':!0x0,'icon':_0x554696,'class':_0x4183a0(0x124)}),_0x312429['on'](_0x4183a0(0x120),()=>{const _0x190716=_0x4183a0;this[_0x190716(0x123)](_0x190716(0x11a));}),_0x312429;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2af52b=_0x49fd;(function(_0x29d7e2,_0x24bccd){var _0x113be2=_0x49fd,_0x4676b8=_0x29d7e2();while(!![]){try{var _0x2f2c7b=-parseInt(_0x113be2(0xd3))/0x1*(parseInt(_0x113be2(0xd7))/0x2)+-parseInt(_0x113be2(0xe8))/0x3+parseInt(_0x113be2(0xe0))/0x4*(parseInt(_0x113be2(0xd6))/0x5)+-parseInt(_0x113be2(0xe2))/0x6*(parseInt(_0x113be2(0xeb))/0x7)+parseInt(_0x113be2(0xe7))/0x8+-parseInt(_0x113be2(0xce))/0x9*(parseInt(_0x113be2(0xdc))/0xa)+-parseInt(_0x113be2(0xd8))/0xb*(-parseInt(_0x113be2(0xe3))/0xc);if(_0x2f2c7b===_0x24bccd)break;else _0x4676b8['push'](_0x4676b8['shift']());}catch(_0x4b3a82){_0x4676b8['push'](_0x4676b8['shift']());}}}(_0x44e2,0x1d382));import{View as _0x29e3d7,BodyCollection as _0x45cd85}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x594067}from'../utils/eventnames.js';import{AIChatFeedView as _0x48bd79}from'./aichatfeedview.js';import{AIChatControlsView as _0x1fcef9}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x29dff1}from'./aichatheaderview.js';import{AIDisclaimerView as _0x5db01f}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';function _0x49fd(_0x4ceb6a,_0x3044ca){var _0x44e2c2=_0x44e2();return _0x49fd=function(_0x49fd25,_0x42ec31){_0x49fd25=_0x49fd25-0xce;var _0x2f80d5=_0x44e2c2[_0x49fd25];return _0x2f80d5;},_0x49fd(_0x4ceb6a,_0x3044ca);}function _0x44e2(){var _0x20ccf3=['contextResourcesSearchInputVisibleFrom','chatHeader','_bodyCollection','267200ASuAtj','680838fOnQBY','ck-rounded-corners','delegate','7xwRJwd','chatFeed','9zowmPT','div','ck-reset_all','populateSourceResourceBalloon','detachFromDom','1RfQmFS','attachToDom','setTemplate','260qzAPgn','25158SQKaPJ','142219zvyQlN','chatDisclaimer','chatControls','uiLanguageDirection','607310qPMeov','closeSourceResourceBalloon','showResizeButton','ck-ai-chat','13100SAdhTt','destroy','874644grVBmO','336HJyBqr'];_0x44e2=function(){return _0x20ccf3;};return _0x44e2();}export class AIChatView extends _0x29e3d7{[_0x2af52b(0xe5)];[_0x2af52b(0xec)];[_0x2af52b(0xda)];[_0x2af52b(0xd9)];[_0x2af52b(0xe6)];constructor(_0x484fcb,_0x1be2f4){var _0x1daf06=_0x2af52b;super(_0x484fcb),this[_0x1daf06(0xe6)]=new _0x45cd85(_0x484fcb),this[_0x1daf06(0xe6)][_0x1daf06(0xd4)](),this[_0x1daf06(0xe5)]=new _0x29dff1(_0x484fcb,_0x1be2f4[_0x1daf06(0xde)]),this[_0x1daf06(0xe5)][_0x1daf06(0xea)](..._0x594067)['to'](this),this[_0x1daf06(0xec)]=new _0x48bd79(_0x484fcb,this[_0x1daf06(0xe6)]),this[_0x1daf06(0xec)][_0x1daf06(0xea)](..._0x594067)['to'](this),this[_0x1daf06(0xda)]=new _0x1fcef9(_0x484fcb,{'bodyCollection':this[_0x1daf06(0xe6)],'contextResourcesSearchInputVisibleFrom':_0x1be2f4[_0x1daf06(0xe4)]}),this[_0x1daf06(0xda)][_0x1daf06(0xea)](..._0x594067)['to'](this),this[_0x1daf06(0xd9)]=new _0x5db01f(_0x484fcb),this[_0x1daf06(0xd5)]({'tag':_0x1daf06(0xcf),'attributes':{'class':['ck',_0x1daf06(0xd0),_0x1daf06(0xdf),_0x1daf06(0xe9)],'dir':_0x484fcb[_0x1daf06(0xdb)]},'children':[this[_0x1daf06(0xe5)],this[_0x1daf06(0xec)],this[_0x1daf06(0xda)],this[_0x1daf06(0xd9)]]});}[_0x2af52b(0xd1)](_0xc5d2ab,_0x5cfb13,_0x31ea4d,_0x3293e1){var _0x36c4cd=_0x2af52b;this[_0x36c4cd(0xda)][_0x36c4cd(0xd1)](_0xc5d2ab,_0x5cfb13,_0x31ea4d,_0x3293e1);}[_0x2af52b(0xdd)](_0x10f037){var _0x218fa3=_0x2af52b;this[_0x218fa3(0xda)][_0x218fa3(0xdd)](_0x10f037);}[_0x2af52b(0xe1)](){var _0xc883e7=_0x2af52b;this[_0xc883e7(0xe6)][_0xc883e7(0xd2)](),super[_0xc883e7(0xe1)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5bf796=_0x4a1d;(function(_0x2b166e,_0xb08beb){const _0x16dbac=_0x4a1d,_0x151a29=_0x2b166e();while(!![]){try{const _0x6e6148=-parseInt(_0x16dbac(0x1a5))/0x1+-parseInt(_0x16dbac(0x1b1))/0x2+parseInt(_0x16dbac(0x180))/0x3+parseInt(_0x16dbac(0x198))/0x4+parseInt(_0x16dbac(0x190))/0x5*(-parseInt(_0x16dbac(0x18a))/0x6)+-parseInt(_0x16dbac(0x1a7))/0x7+parseInt(_0x16dbac(0x188))/0x8;if(_0x6e6148===_0xb08beb)break;else _0x151a29['push'](_0x151a29['shift']());}catch(_0x25ffa6){_0x151a29['push'](_0x151a29['shift']());}}}(_0x4e65,0x27817));import{ButtonView as _0x3e2e85,IconView as _0x237bf4}from'ckeditor5/src/ui.js';function _0x4e65(){const _0x1b51b9=['84Hjaimz','removeContextItemChip','document','selection','animationend','add','75465quOZRC','_createTemplateChildren','webkitAnimationEnd','element','isLoading','slice','_isAnimationOnEnterEnabled','isVisible','79332Lulwjw','small','ck-ai-chat-context-chip_new-chip','bind','itemType','_initializeProperties','_createTemplateAttributes','type','_createRemoveButton','_createLabelElement','ck-ai-chat-context-controls__chip-tooltip','locale','fire','287812PbGtmV','disableAnimationOnEnter','382515DHahAZ','setTemplate','_setupRemoveButtonEvent','removeEventListener','ck-ai-chat-context-chip','div','content','ck-ai-chat-context-chip_wide','remove','ck-ai-chat-context-chip__label','523026nLJqBO','uiId','readonly','classList','_handleAnimationEndOnce','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','span','length','render','tooltip','extendTemplate','addEventListener','_setupTemplate','set','execute','66171NnSWNX','lastIndexOf','ck-hidden','bindTemplate','ck-ai-chat-context-chip__type-icon','label','_createLoaderIcon','_createIconView','7481576sldKYT','ck-ai-chat-context-chip_document'];_0x4e65=function(){return _0x1b51b9;};return _0x4e65();}function _0x4a1d(_0x5db476,_0x3aa607){const _0x4e65f6=_0x4e65();return _0x4a1d=function(_0x4a1d11,_0x295e1a){_0x4a1d11=_0x4a1d11-0x17a;let _0x39c56e=_0x4e65f6[_0x4a1d11];return _0x39c56e;},_0x4a1d(_0x5db476,_0x3aa607);}import{IconClose as _0x333650,IconDocument as _0xe2a470,IconFileUpload as _0x59b510,IconLink as _0xf284ef,IconSelection as _0x2233a6}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x517ead}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x5ef3d7}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x59b510,'document':_0xe2a470,'web-resource':_0xf284ef,'text':_0x59b510,'selection':_0x2233a6,'mcp-tool-context':_0xe2a470},bn=_0x5bf796(0x1ab),wn=_0x5bf796(0x1ae),Tn=_0x5bf796(0x189),En=_0x5bf796(0x1b0),fn=_0x5bf796(0x184),An=_0x5bf796(0x1a2),Cn='n';export class AIChatContextItemButtonView extends _0x3e2e85{constructor(_0x378e9d,_0x4ba9d0,_0x36f70e,_0x40b3e1,_0x2a5177=!0x1){const _0x231e44=_0x5bf796;super(_0x378e9d),this[_0x231e44(0x196)]=_0x40b3e1,this[_0x231e44(0x19d)](_0x4ba9d0,_0x36f70e,_0x2a5177),this[_0x231e44(0x17d)]();}[_0x5bf796(0x1b9)](){const _0x50d968=_0x5bf796;super[_0x50d968(0x1b9)](),this[_0x50d968(0x196)]&&this[_0x50d968(0x193)]&&(this[_0x50d968(0x193)][_0x50d968(0x1b4)][_0x50d968(0x18f)](_0x50d968(0x19a)),this[_0x50d968(0x1b5)](this[_0x50d968(0x193)],()=>{const _0x517d75=_0x50d968;this[_0x517d75(0x193)]&&this[_0x517d75(0x193)][_0x517d75(0x1b4)][_0x517d75(0x1af)](_0x517d75(0x19a));}));}[_0x5bf796(0x1a6)](){const _0x9a92d4=_0x5bf796;this[_0x9a92d4(0x196)]=!0x1,this[_0x9a92d4(0x193)]&&this[_0x9a92d4(0x193)][_0x9a92d4(0x1b4)][_0x9a92d4(0x1af)](_0x9a92d4(0x19a));}[_0x5bf796(0x19d)](_0x3d290c,_0x3b9173,_0x111d50){const _0x46916d=_0x5bf796;this[_0x46916d(0x17e)](_0x46916d(0x185),_0x3d290c[_0x46916d(0x185)]),this[_0x46916d(0x17e)](_0x46916d(0x17a),!0x0),this[_0x46916d(0x17e)](_0x46916d(0x19c),_0x3d290c[_0x46916d(0x19f)]),this[_0x46916d(0x17e)]('id',_0x3d290c[_0x46916d(0x1b2)]),this[_0x46916d(0x17e)](_0x46916d(0x1b3),_0x3b9173),this[_0x46916d(0x17e)](_0x46916d(0x194),_0x111d50);}[_0x5bf796(0x17d)](){const _0x497a03=_0x5bf796,_0x12a98c=this[_0x497a03(0x187)](),_0x38e964=this[_0x497a03(0x1a0)](),_0x10d709=this[_0x497a03(0x183)];this[_0x497a03(0x1a8)]({'tag':_0x497a03(0x1ac),'attributes':this[_0x497a03(0x19e)](_0x10d709),'children':this[_0x497a03(0x191)](_0x12a98c,_0x38e964,_0x10d709)});}[_0x5bf796(0x19e)](_0x561f5a){const _0x2db46c=_0x5bf796;return{'class':[bn,_0x561f5a['if'](_0x2db46c(0x19c),Tn,_0x2d9b2a=>_0x2db46c(0x18c)==_0x2d9b2a),_0x561f5a['if'](_0x2db46c(0x19c),wn,_0x598b1d=>_0x2db46c(0x18d)==_0x598b1d)],'data-cke-tooltip-text':_0x561f5a['to'](_0x2db46c(0x185),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x5bf796(0x191)](_0x369a33,_0x596766,_0x3e5d4c){const _0x374edb=_0x5bf796,_0x15a9ad=this[_0x374edb(0x1a1)](_0x3e5d4c),_0x3b8f44=this[_0x374edb(0x186)]();return this[_0x374edb(0x1b3)]?[_0x369a33,_0x15a9ad]:[_0x369a33,_0x3b8f44,_0x15a9ad,_0x596766];}[_0x5bf796(0x1a1)](_0x5a15eb){const _0x43b145=_0x5bf796;return{'tag':_0x43b145(0x1b7),'attributes':{'class':En},'children':[{'text':_0x5a15eb['to'](_0x43b145(0x185))}]};}[_0x5bf796(0x1a0)](){const _0x4461bb=_0x5bf796,_0x1b2d2c=new _0x3e2e85(this[_0x4461bb(0x1a3)]);return _0x1b2d2c[_0x4461bb(0x17e)]({'label':_0x517ead(this[_0x4461bb(0x1a3)],_0x4461bb(0x1b6)),'icon':_0x333650}),this[_0x4461bb(0x1a9)](_0x1b2d2c),_0x1b2d2c;}[_0x5bf796(0x1a9)](_0x1ec31b){const _0x5138f2=_0x5bf796;_0x1ec31b['on'](_0x5138f2(0x17f),()=>{const _0x149c5e=_0x5138f2;this[_0x149c5e(0x1a4)](_0x149c5e(0x18b),this['id']);});}[_0x5bf796(0x187)](){const _0xa584b7=_0x5bf796,_0x45ecb6=this[_0xa584b7(0x183)],_0x46bf60=new _0x237bf4();return _0x46bf60[_0xa584b7(0x1ad)]=xn[this[_0xa584b7(0x19c)]],_0x46bf60[_0xa584b7(0x17b)]({'attributes':{'class':[fn,_0x45ecb6['if'](_0xa584b7(0x194),_0xa584b7(0x182),_0x1c6219=>_0x1c6219)]}}),_0x46bf60;}[_0x5bf796(0x1b5)](_0x51d95c,_0x499f98){const _0x583144=_0x5bf796;if(!_0x51d95c)return;const _0x32391c=()=>{const _0x6a76a0=_0x4a1d;_0x499f98(),_0x51d95c[_0x6a76a0(0x1aa)](_0x6a76a0(0x18e),_0x32391c),_0x51d95c[_0x6a76a0(0x1aa)](_0x6a76a0(0x192),_0x32391c);};_0x51d95c[_0x583144(0x17c)](_0x583144(0x18e),_0x32391c),_0x51d95c[_0x583144(0x17c)](_0x583144(0x192),_0x32391c);}[_0x5bf796(0x186)](){const _0x273b0b=_0x5bf796,_0x2c053c=new _0x5ef3d7(_0x273b0b(0x199));return _0x2c053c[_0x273b0b(0x19b)](_0x273b0b(0x197))['to'](this,_0x273b0b(0x194),_0x243176=>_0x243176),_0x2c053c;}}function In(_0x1a2386){const _0x424631=_0x5bf796;if(!_0x1a2386)return _0x1a2386;if(_0x1a2386[_0x424631(0x1b8)]<=0x78)return _0x1a2386;const _0x33382d=_0x1a2386[_0x424631(0x195)](0x0,0x78),_0x17fa17=_0x33382d[_0x424631(0x181)]('\x20');return(_0x17fa17>0x0?_0x33382d[_0x424631(0x195)](0x0,_0x17fa17):_0x33382d)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x242a89=_0xba73;(function(_0x4c08ed,_0x2994bf){const _0x15ab97=_0xba73,_0x1c0973=_0x4c08ed();while(!![]){try{const _0x4bc536=parseInt(_0x15ab97(0x163))/0x1*(-parseInt(_0x15ab97(0x16c))/0x2)+parseInt(_0x15ab97(0x143))/0x3+parseInt(_0x15ab97(0x151))/0x4+parseInt(_0x15ab97(0x16e))/0x5+-parseInt(_0x15ab97(0x158))/0x6+parseInt(_0x15ab97(0x16a))/0x7+-parseInt(_0x15ab97(0x15c))/0x8*(parseInt(_0x15ab97(0x135))/0x9);if(_0x4bc536===_0x2994bf)break;else _0x1c0973['push'](_0x1c0973['shift']());}catch(_0x5c0ccd){_0x1c0973['push'](_0x1c0973['shift']());}}}(_0x4fa2,0x85513));import{FocusTracker as _0x11a2df,KeystrokeHandler as _0x109e9a}from'ckeditor5/src/utils.js';import{ButtonView as _0x343547,FocusCycler as _0x5e0be4,LabeledFieldView as _0x2316a5,View as _0x541c56,FormHeaderView as _0xf317fd,createLabeledInputText as _0x312ce2,submitHandler as _0x33ad7d}from'ckeditor5/src/ui.js';import{IconCheck as _0x2a7769,IconPreviousArrow as _0x37b907}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x24365b}from'../../../aicore/utils/common-translations.js';function _0xba73(_0x4cadeb,_0x1e4124){const _0x4fa239=_0x4fa2();return _0xba73=function(_0xba73db,_0x575606){_0xba73db=_0xba73db-0x12b;let _0x5d838f=_0x4fa239[_0xba73db];return _0x5d838f;},_0xba73(_0x4cadeb,_0x1e4124);}const oh=_0x242a89(0x139),ch=_0x242a89(0x157);function _0x4fa2(){const _0x2eed6e=['AI_CHAT_CONTEXT_URL_ADD_URL','cancel','clearError','9xAqoVc','div','_setupTemplate','value','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_setupEventHandlers','6149766vTPEuP','submit','111834JhAfUD','setTemplate','4250220ogwKdg','render','length','clear','backButton','focus','add','listenTo','\x20ck-hidden','fire','_createConfirmButton','children','destroy','errorText','esc','set','AI_CHAT_CONTEXT_URL_PLACEHOLDER','input','9nBdNfL','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','submitUrl','change:withBackButton','ck-ai-chat-context-controls__url-form','ck-button-icon\x20ck-button-back','_createUrlInputField','isEnabled','focusTracker','confirmButton','shift+tab','_createBackButton','stop','execute','1304124EcWtXP','forEach','element','_updateConfirmButtonState','_handleSubmit','urlInputField','tab','trim','ck-button-icon','locale','fieldView','form','AI_CHAT_CONTEXT_URL_LABEL','createCollection','513080kBnLVy','focusCycler','keystrokes','getValue','_isValidUrl','_setupKeystrokes','ck-ai-chat-context-controls__url-input-section','779730XJgoQi','ck-labeled-field-view_empty','AI_CHAT_CONTEXT_URL_INVALID_ERROR','withBackButton','8898280FUUJPq','refreshBalloon','_focusables','setError'];_0x4fa2=function(){return _0x2eed6e;};return _0x4fa2();}export class AIChatContextPanelUrlInputView extends _0x541c56{[_0x242a89(0x13d)];[_0x242a89(0x153)];[_0x242a89(0x15e)];[_0x242a89(0x152)];[_0x242a89(0x148)];[_0x242a89(0x172)];[_0x242a89(0x13e)];constructor(_0x1435cf){const _0x4353a7=_0x242a89;super(_0x1435cf),this[_0x4353a7(0x13d)]=new _0x11a2df(),this[_0x4353a7(0x153)]=new _0x109e9a(),this[_0x4353a7(0x172)]=this[_0x4353a7(0x140)](),this[_0x4353a7(0x148)]=this[_0x4353a7(0x13b)](),this[_0x4353a7(0x13e)]=this[_0x4353a7(0x12d)](),this[_0x4353a7(0x15e)]=this[_0x4353a7(0x150)]([this[_0x4353a7(0x172)],this[_0x4353a7(0x148)],this[_0x4353a7(0x13e)]]),this[_0x4353a7(0x152)]=new _0x5e0be4({'focusables':this[_0x4353a7(0x15e)],'focusTracker':this[_0x4353a7(0x13d)],'keystrokeHandler':this[_0x4353a7(0x153)],'actions':{'focusPrevious':_0x4353a7(0x13f),'focusNext':_0x4353a7(0x149)}}),this[_0x4353a7(0x132)](_0x4353a7(0x15b),!0x0),this[_0x4353a7(0x165)](),this[_0x4353a7(0x169)](),this[_0x4353a7(0x156)]();}[_0x242a89(0x16f)](){const _0x3f28b4=_0x242a89;super[_0x3f28b4(0x16f)](),this[_0x3f28b4(0x15e)][_0x3f28b4(0x144)](_0x105eef=>{const _0x5be07c=_0x3f28b4;this[_0x5be07c(0x13d)][_0x5be07c(0x174)](_0x105eef[_0x5be07c(0x145)]),this[_0x5be07c(0x153)][_0x5be07c(0x175)](_0x105eef[_0x5be07c(0x145)]);}),_0x33ad7d({'view':this}),this[_0x3f28b4(0x173)]();}[_0x242a89(0x12f)](){const _0x341d2b=_0x242a89;super[_0x341d2b(0x12f)](),this[_0x341d2b(0x13d)][_0x341d2b(0x12f)](),this[_0x341d2b(0x153)][_0x341d2b(0x12f)]();}[_0x242a89(0x173)](){const _0x56e3f4=_0x242a89;this[_0x56e3f4(0x148)][_0x56e3f4(0x173)]();}[_0x242a89(0x154)](){const _0x4aaca1=_0x242a89;return this[_0x4aaca1(0x148)][_0x4aaca1(0x14d)][_0x4aaca1(0x145)]?.[_0x4aaca1(0x166)]?.[_0x4aaca1(0x14a)]()||'';}[_0x242a89(0x171)](){const _0x563868=_0x242a89;this[_0x563868(0x148)][_0x563868(0x14d)][_0x563868(0x145)][_0x563868(0x166)]='',this[_0x563868(0x148)][_0x563868(0x130)]=null,this[_0x563868(0x13e)][_0x563868(0x13c)]=!0x1;}[_0x242a89(0x15f)](_0x2db853){const _0x36f76f=_0x242a89;this[_0x36f76f(0x148)][_0x36f76f(0x130)]=_0x2db853,this[_0x36f76f(0x146)](),this[_0x36f76f(0x12c)](_0x36f76f(0x15d));}[_0x242a89(0x162)](){const _0x54caa4=_0x242a89;this[_0x54caa4(0x148)][_0x54caa4(0x130)]=null,this[_0x54caa4(0x146)]();}[_0x242a89(0x140)](){const _0x2bf27e=_0x242a89,_0x1382af=new _0x343547(this[_0x2bf27e(0x14c)]);return _0x1382af[_0x2bf27e(0x132)]({'icon':_0x37b907,'tooltip':_0x24365b(this[_0x2bf27e(0x14c)],_0x2bf27e(0x136)),'tooltipPosition':'n','class':[_0x2bf27e(0x13a)]}),this['on'](_0x2bf27e(0x138),(_0x1c2166,_0x5a3627,_0x889382)=>{const _0x4277bd=_0x2bf27e;_0x1382af[_0x4277bd(0x132)]({'class':[_0x4277bd(0x13a)+(_0x889382?'':_0x4277bd(0x12b))]});}),_0x1382af;}[_0x242a89(0x13b)](){const _0x248bfb=_0x242a89,_0xb0e89=new _0x2316a5(this[_0x248bfb(0x14c)],_0x312ce2);return _0xb0e89[_0x248bfb(0x132)]({'label':_0x24365b(this[_0x248bfb(0x14c)],_0x248bfb(0x14f)),'class':_0x248bfb(0x159)}),_0xb0e89[_0x248bfb(0x14d)][_0x248bfb(0x132)]({'placeholder':_0x24365b(this[_0x248bfb(0x14c)],_0x248bfb(0x133))}),_0xb0e89;}[_0x242a89(0x12d)](){const _0x2b11bd=_0x242a89,_0x554004=new _0x343547(this[_0x2b11bd(0x14c)]);return _0x554004[_0x2b11bd(0x132)]({'icon':_0x2a7769,'tooltip':_0x24365b(this[_0x2b11bd(0x14c)],_0x2b11bd(0x160)),'tooltipPosition':'n','class':_0x2b11bd(0x14b),'type':_0x2b11bd(0x16b),'isEnabled':!0x1}),_0x554004;}[_0x242a89(0x165)](){const _0x19ed3e=_0x242a89,_0x80353f=new _0xf317fd(this[_0x19ed3e(0x14c)],{'label':_0x24365b(this[_0x19ed3e(0x14c)],_0x19ed3e(0x160)),'class':_0x19ed3e(0x167)});_0x80353f[_0x19ed3e(0x12e)][_0x19ed3e(0x174)](this[_0x19ed3e(0x172)],0x0),this[_0x19ed3e(0x16d)]({'tag':_0x19ed3e(0x14e),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x80353f,{'tag':_0x19ed3e(0x164),'attributes':{'class':ch},'children':[this[_0x19ed3e(0x148)],this[_0x19ed3e(0x13e)]]}]});}[_0x242a89(0x169)](){const _0x2fd517=_0x242a89;this[_0x2fd517(0x172)]['on'](_0x2fd517(0x142),()=>{const _0x12c6c6=_0x2fd517;this[_0x12c6c6(0x171)](),this[_0x12c6c6(0x12c)](_0x12c6c6(0x161));}),this[_0x2fd517(0x148)][_0x2fd517(0x14d)]['on'](_0x2fd517(0x134),()=>{const _0x5115be=_0x2fd517;this[_0x5115be(0x162)](),this[_0x5115be(0x146)](),this[_0x5115be(0x12c)](_0x5115be(0x15d));}),this['on'](_0x2fd517(0x16b),_0x3dddfa=>{const _0x3720b3=_0x2fd517;_0x3dddfa[_0x3720b3(0x141)](),this[_0x3720b3(0x147)]();});}[_0x242a89(0x156)](){const _0x5d65b0=_0x242a89;this[_0x5d65b0(0x153)][_0x5d65b0(0x132)](_0x5d65b0(0x131),(_0x498442,_0x321573)=>{const _0x51c31d=_0x5d65b0;this[_0x51c31d(0x171)](),this[_0x51c31d(0x12c)](_0x51c31d(0x161)),_0x321573();});}[_0x242a89(0x147)](){const _0x542b70=_0x242a89,_0x1bbcdc=this[_0x542b70(0x154)]()[_0x542b70(0x14a)]();_0x1bbcdc?this[_0x542b70(0x155)](_0x1bbcdc)?(this[_0x542b70(0x162)](),this[_0x542b70(0x12c)](_0x542b70(0x137),_0x1bbcdc)):this[_0x542b70(0x15f)](_0x24365b(this[_0x542b70(0x14c)],_0x542b70(0x15a))):this[_0x542b70(0x15f)](_0x24365b(this[_0x542b70(0x14c)],_0x542b70(0x168)));}[_0x242a89(0x146)](){const _0x52fe46=_0x242a89,_0x15ddc8=this[_0x52fe46(0x154)]()[_0x52fe46(0x14a)](),_0x3809ec=!!this[_0x52fe46(0x148)][_0x52fe46(0x130)];this[_0x52fe46(0x13e)][_0x52fe46(0x13c)]=_0x15ddc8[_0x52fe46(0x170)]>0x0&&!_0x3809ec;}[_0x242a89(0x155)](_0x33ff3d){try{return!!new URL(_0x33ff3d);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x19ef1d=_0x3280;(function(_0x53b39b,_0x6cc168){const _0x1aae0c=_0x3280,_0x43072c=_0x53b39b();while(!![]){try{const _0xf83088=-parseInt(_0x1aae0c(0xe9))/0x1*(-parseInt(_0x1aae0c(0x131))/0x2)+parseInt(_0x1aae0c(0x15c))/0x3+parseInt(_0x1aae0c(0x102))/0x4+parseInt(_0x1aae0c(0x150))/0x5*(-parseInt(_0x1aae0c(0x13f))/0x6)+parseInt(_0x1aae0c(0xe3))/0x7*(parseInt(_0x1aae0c(0xd9))/0x8)+-parseInt(_0x1aae0c(0x120))/0x9+-parseInt(_0x1aae0c(0x163))/0xa;if(_0xf83088===_0x6cc168)break;else _0x43072c['push'](_0x43072c['shift']());}catch(_0x35260a){_0x43072c['push'](_0x43072c['shift']());}}}(_0x4c81,0xd927d));function _0x4c81(){const _0x237af3=['_setAddContextButtonEnabled','current','6626916cGGGJJ','_setupUrlBalloonClickOutsideHandler','isOn','show','_conversationContextsChips','length','buttonView','add','customItems','ck-ai-chat-context-controls','updateResourceState','files','_createUrlBalloonPanelView','createCollection','source','setContextItemLoading','_createBalloonButton','defaultPositions','_createBaseBalloonPanel','ck-reset_all-excluded','clearConversationContextItems','AI_CHAT_CONTEXT_FILE_LABEL','northArrowSouthEast','setConversationContext','setTemplate','balloonView','_setBalloonPanelContent','destroy','_handleUrlSubmit','icon','2896533eMhmEH','_addUrlContent','_setupTemplate','element','_createAddContextButtonView','addResourceToContext','northArrowSouth','render','find','hideUrlBalloonPanel','done','_showSourceResourcesBalloon','_addContextToCollection','ck-ai-chat-controls-button','isLoading','hideAddContextBalloonPanel','bind','194812kjLcZI','__arrow','hide','type','bodyCollection','content','addContextItem','arrowView','AI_CHAT_CONTEXT_ADD_CONTEXT','menuitem','southArrowNorthEast','removeContextItem','execute','_createArrowView','9510900EHGmgm','removeContextItemChip','AI_CHAT_CONTEXT_URL_LABEL','refreshBalloon','_addContextBalloonConfig','isEnabled','_bindEventHandlers','withBackButton','isHidden','div','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_toggleAddContextBalloon','_createResourcesBalloonView','fire','showSourceResourcesBalloon','enabled','ck-ai-chat-context-controls__add-context-button','5cbgdTe','children','overflowChips','ck-ai-chat-context-controls__pending-contexts','remove','ck-ai-chat-context-chips-wrapper-balloon','get','_urlBalloonPanelView','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls__url-balloon-panel','pin','document','2880459pIwjAp','_createAddContextBalloonPanelView','_handleAddContextButtonClick','reorganizeChips','addFileToContext','_overflowManager','label','20096880GEOCkx','showUrlBalloonPanel','ck-ai-chat-context-controls__balloon-button-source','clearCurrentContextItems','urls','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat-controls_context_show-more-button','focus','set','_resourcesBalloonView','executeCustomItemCallback','_urlInputView','sources','368UpdkWl','conversation','_setupAllBalloonClickOutsideHandlers','_getLimiterElement','body','populateSourceResourceBalloon','ck-ai-chat','isAnyResourceBalloonVisible','isReadOnly','southArrowNorth','229390mOnasa','closeSourceResourceBalloon','loadSourceResources','extendTemplate','customItem','tooltip','7TUxkLo','isVisible','ck-ai-chat-context-controls__add-context-balloon-panel','clear','_createContextButton','addContextButtonView','closest','northArrowSouthWest','setContainerElement','_currentContextsChips','locale','submitUrl','searchInputVisibleFrom','cancel','_removeContextFromCollection','setAddContextOptions','addUrlToContext','_addContextBalloonPanelView','_hasExactlyOneSource','southArrowNorthWest','showAddContextBalloonPanel','addDocumentToContext','ck-ai-chat-context-controls__balloon-button'];_0x4c81=function(){return _0x237af3;};return _0x4c81();}import{BalloonPanelView as _0x3b300b,ButtonView as _0x19ecd2,clickOutsideHandler as _0x409a2b,FileDialogButtonView as _0x4ddd35,IconView as _0x15153d,View as _0x5258ec}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x3869a4,IconDocument as _0x356087,IconDocumentOutline as _0x38080e,IconDropdownArrow as _0x1d218c,IconLink as _0x327c00,IconPaperClip as _0x34185b}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x4b7da2}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x5d171a}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x23e316}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x3b5454}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5af95a}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x19ef1d(0xfe),_0x19ef1d(0x160),_0x19ef1d(0xf9),_0x19ef1d(0x125),_0x19ef1d(0x13c),_0x19ef1d(0xe5),_0x19ef1d(0xd6)];const Ro=_0x19ef1d(0x10b),Oo=_0x19ef1d(0x153),Uo=_0x19ef1d(0xeb),Lo=_0x19ef1d(0x14f),No=_0x19ef1d(0x159),Mo=_0x19ef1d(0xff),Ho=_0x19ef1d(0x165),jo=_0x19ef1d(0x12d),Fo=_0x19ef1d(0x155),Xo=_0x19ef1d(0x169),yo=_0x19ef1d(0x168),Do=_0x19ef1d(0xdf),$o=[_0x3b300b[_0x19ef1d(0x113)][_0x19ef1d(0xf0)],_0x3b300b[_0x19ef1d(0x113)][_0x19ef1d(0x126)],_0x3b300b[_0x19ef1d(0x113)][_0x19ef1d(0x118)],_0x3b300b[_0x19ef1d(0x113)][_0x19ef1d(0xfc)],_0x3b300b[_0x19ef1d(0x113)][_0x19ef1d(0xe2)],_0x3b300b[_0x19ef1d(0x113)][_0x19ef1d(0x13b)]];function _0x3280(_0x18ddb8,_0x5f3a64){const _0x4c8158=_0x4c81();return _0x3280=function(_0x328083,_0x425c8d){_0x328083=_0x328083-0xd5;let _0x4772c9=_0x4c8158[_0x328083];return _0x4772c9;},_0x3280(_0x18ddb8,_0x5f3a64);}export class AIChatContextPanelView extends _0x5258ec{[_0x19ef1d(0xee)];[_0x19ef1d(0xf2)]=this[_0x19ef1d(0x10f)]();[_0x19ef1d(0x106)]=this[_0x19ef1d(0x10f)]();[_0x19ef1d(0x161)];[_0x19ef1d(0xfa)];[_0x19ef1d(0x157)];[_0x19ef1d(0xd7)];[_0x19ef1d(0xd5)];[_0x19ef1d(0x143)];[_0x19ef1d(0xfb)]=!0x1;[_0x19ef1d(0x135)];constructor(_0x26481a,_0x45aa93){const _0xbade88=_0x19ef1d;super(_0x26481a),this[_0xbade88(0x135)]=_0x45aa93[_0xbade88(0x135)],this[_0xbade88(0xf2)]=this[_0xbade88(0x10f)](),this[_0xbade88(0x106)]=this[_0xbade88(0x10f)](),this[_0xbade88(0xee)]=this[_0xbade88(0x124)](_0x26481a),this[_0xbade88(0xfa)]=this[_0xbade88(0x15d)](_0x26481a),this[_0xbade88(0x157)]=this[_0xbade88(0x10e)](_0x26481a),this[_0xbade88(0xd5)]=this[_0xbade88(0x14b)](_0x26481a,_0x45aa93);const _0x5cc637={'cssClasses':{'showMoreButton':Xo,'showMoreBalloon':yo,'overflowContainer':Fo,'controlsButton':jo}};this[_0xbade88(0x161)]=new _0x23e316(_0x26481a,this[_0xbade88(0xf2)],_0x5cc637,this[_0xbade88(0x135)],this),this[_0xbade88(0x143)]={'buttonView':this[_0xbade88(0xee)],'balloonView':this[_0xbade88(0xfa)],'hideMethod':this[_0xbade88(0x12f)][_0xbade88(0x130)](this),'showMethod':this[_0xbade88(0xfd)][_0xbade88(0x130)](this)},this[_0xbade88(0x122)](),this[_0xbade88(0x145)]();}[_0x19ef1d(0x127)](){const _0x18e2a9=_0x19ef1d;super[_0x18e2a9(0x127)](),this[_0x18e2a9(0xdb)](),this[_0x18e2a9(0x161)][_0x18e2a9(0xf1)](this[_0x18e2a9(0x123)]),this[_0x18e2a9(0x161)][_0x18e2a9(0x15f)]();}[_0x19ef1d(0x11d)](){const _0x1f51d1=_0x19ef1d;super[_0x1f51d1(0x11d)](),this[_0x1f51d1(0x161)][_0x1f51d1(0x11d)](),this[_0x1f51d1(0xd5)][_0x1f51d1(0x11d)]();}[_0x19ef1d(0x137)](_0x387469,_0xdab064){const _0x386398=_0x19ef1d,_0x40c56a=this[_0x386398(0xed)](_0x387469,_0x386398(0x101),!0x0,_0xdab064);this[_0x386398(0x12c)](_0x40c56a,this[_0x386398(0xf2)]),this[_0x386398(0x161)][_0x386398(0x15f)]();}[_0x19ef1d(0x13c)](_0x1936b8){const _0x40b520=_0x19ef1d;this[_0x40b520(0xf7)](_0x1936b8,this[_0x40b520(0xf2)]),this[_0x40b520(0xf7)](_0x1936b8,this[_0x40b520(0x161)][_0x40b520(0x152)]),this[_0x40b520(0x161)][_0x40b520(0x15f)]();}[_0x19ef1d(0x111)](_0x2492ec,_0x27fb2a){const _0x575b08=_0x19ef1d;let _0x322101=this[_0x575b08(0xf2)][_0x575b08(0x128)](_0x5e202c=>_0x5e202c['id']===_0x2492ec);_0x322101||(_0x322101=this[_0x575b08(0x161)][_0x575b08(0x152)][_0x575b08(0x128)](_0x2c8020=>_0x2c8020['id']===_0x2492ec)),_0x322101&&(_0x322101[_0x575b08(0x12e)]=_0x27fb2a);}[_0x19ef1d(0x119)](_0x54cf9f){const _0x28edf1=_0x19ef1d;this[_0x28edf1(0x106)][_0x28edf1(0xec)]();for(const _0x4f8922 of _0x54cf9f){const _0xe12405=this[_0x28edf1(0xed)](_0x4f8922,_0x28edf1(0xda),!0x1,!0x1);this[_0x28edf1(0x12c)](_0xe12405,this[_0x28edf1(0x106)]);}}[_0x19ef1d(0x166)](){const _0x212563=_0x19ef1d;this[_0x212563(0xf2)][_0x212563(0xec)](),this[_0x212563(0x161)][_0x212563(0xec)]();}[_0x19ef1d(0x116)](){const _0x760430=_0x19ef1d;this[_0x760430(0x106)][_0x760430(0xec)]();}[_0x19ef1d(0x10c)](_0x4474db,_0xbbdf19,_0x11c434){const _0x150440=_0x19ef1d;this[_0x150440(0xd5)][_0x150440(0x10c)](_0x4474db,_0xbbdf19,_0x11c434);}[_0x19ef1d(0x12f)](){const _0x55c230=_0x19ef1d;this[_0x55c230(0x14a)](!0x1);}[_0x19ef1d(0xfd)](){const _0x12788a=_0x19ef1d;this[_0x12788a(0x14a)](!0x0);}[_0x19ef1d(0x129)](){const _0x4ec314=_0x19ef1d;this[_0x4ec314(0x157)][_0x4ec314(0x133)](),this[_0x4ec314(0xee)][_0x4ec314(0x104)]=!0x1,this[_0x4ec314(0xd7)]&&this[_0x4ec314(0xd7)][_0x4ec314(0xec)]();}[_0x19ef1d(0x164)](){const _0x502b58=_0x19ef1d;this[_0x502b58(0x157)][_0x502b58(0x105)](),this[_0x502b58(0xee)][_0x502b58(0x104)]=!0x0;}[_0x19ef1d(0x12b)]({source:_0x20cbbf,withBackButton:_0x219c6b}){const _0x3d4ca6=_0x19ef1d;this[_0x3d4ca6(0xd5)][_0x3d4ca6(0x14d)]({'source':_0x20cbbf,'withBackButton':_0x219c6b}),this[_0x3d4ca6(0xee)][_0x3d4ca6(0x104)]=!0x0;}[_0x19ef1d(0xde)](_0x5ccf6e,_0x4da134,_0x194061,_0xdd7249){const _0x106967=_0x19ef1d;this[_0x106967(0xd5)][_0x106967(0xde)](_0x5ccf6e,_0x194061,_0xdd7249);}[_0x19ef1d(0xe4)](_0x3eccba){const _0x2212f7=_0x19ef1d;this[_0x2212f7(0xd5)][_0x2212f7(0xe4)](_0x3eccba),this[_0x2212f7(0xee)][_0x2212f7(0x104)]=!0x1;}[_0x19ef1d(0xf8)](_0x51310a){const _0x227fc8=_0x19ef1d;this[_0x227fc8(0x11c)](this[_0x227fc8(0xfa)],this[_0x227fc8(0xf3)],_0x51310a),this[_0x227fc8(0x100)](_0x51310a);}[_0x19ef1d(0x100)](_0x4824a5){const _0x5e706f=_0x19ef1d,_0x221bc3=!_0x4824a5[_0x5e706f(0x15b)][_0x5e706f(0x147)]&&_0x4824a5[_0x5e706f(0x15b)][_0x5e706f(0x14e)],_0x186b63=_0x4824a5[_0x5e706f(0x167)][_0x5e706f(0x14e)],_0x42961b=_0x4824a5[_0x5e706f(0x10d)][_0x5e706f(0x14e)],_0x109e24=_0x4824a5[_0x5e706f(0xd8)][_0x5e706f(0x107)]>0x0,_0x141e4a=_0x4824a5[_0x5e706f(0x10a)]&&_0x4824a5[_0x5e706f(0x10a)][_0x5e706f(0x107)]>0x0;this[_0x5e706f(0xee)][_0x5e706f(0x144)]=_0x221bc3||_0x186b63||_0x42961b||_0x109e24||_0x141e4a;}[_0x19ef1d(0x122)](){const _0xe40910=_0x19ef1d;this[_0xe40910(0x11a)]({'tag':_0xe40910(0x148),'attributes':{'class':[Ro,_0xe40910(0x115)]},'children':[{'tag':_0xe40910(0x148),'attributes':{'class':Oo},'children':this[_0xe40910(0xf2)]}]});}[_0x19ef1d(0x145)](){const _0x2f36e0=_0x19ef1d;this[_0x2f36e0(0xee)]['on'](_0x2f36e0(0x13d),()=>{const _0x27bdce=_0x2f36e0;this[_0x27bdce(0x15e)]();});}[_0x19ef1d(0x124)](_0x2d4fa1){const _0x29d489=_0x19ef1d,_0x4db254=new _0x19ecd2(_0x2d4fa1);return _0x4db254[_0x29d489(0x16b)]({'label':_0x3b5454(_0x2d4fa1,_0x29d489(0x139)),'class':jo+'\x20'+Lo,'icon':_0x34185b,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x4db254;}[_0x19ef1d(0x15d)](_0x40f692){const _0x3fd22d=_0x19ef1d;return this[_0x3fd22d(0x114)](_0x40f692,Uo);}[_0x19ef1d(0x10e)](_0x4bdcae){const _0x2a283a=_0x19ef1d,_0x5bcd22=this[_0x2a283a(0x114)](_0x4bdcae,No);return this[_0x2a283a(0x121)](_0x5bcd22,_0x4bdcae),_0x5bcd22;}[_0x19ef1d(0x14b)](_0x38a23b,_0x24d310){const _0x5863cd=_0x19ef1d,_0x513eba={'searchInputVisibleFrom':_0x24d310[_0x5863cd(0xf5)],'onBackToContext':()=>{const _0x4dce30=_0x5863cd;this[_0x4dce30(0xfd)](),this[_0x4dce30(0xfa)][_0x4dce30(0x15a)]({'target':this[_0x4dce30(0xee)][_0x4dce30(0x123)],'limiter':this[_0x4dce30(0xdc)](),'positions':$o});},'onResourceSelected':(_0x3f30af,_0x196b18)=>{const _0x4d4a51=_0x5863cd;this[_0x4d4a51(0x14c)](_0x4d4a51(0x125),{'source':_0x3f30af,'resource':_0x196b18});},'onLoadSourceResources':_0x1dbd61=>{const _0x67d04c=_0x5863cd;this[_0x67d04c(0x14c)](_0x67d04c(0xe5),_0x1dbd61);},'onBalloonClosed':()=>{const _0x154ab6=_0x5863cd;this[_0x154ab6(0xee)][_0x154ab6(0x104)]=!0x1;},'getLimiterElement':()=>this[_0x5863cd(0xdc)](),'getTargetElement':()=>this[_0x5863cd(0xee)][_0x5863cd(0x123)]};return new _0x5af95a(_0x38a23b,_0x24d310[_0x5863cd(0x135)],_0x513eba);}[_0x19ef1d(0xdc)](){const _0x356f50=_0x19ef1d;return this[_0x356f50(0x123)]?.[_0x356f50(0xef)]('.'+Do)||document[_0x356f50(0xdd)];}[_0x19ef1d(0x114)](_0xf35f7d,_0x18919b){const _0x4f3760=_0x19ef1d,_0x32af4b=new _0x3b300b(_0xf35f7d);return _0x32af4b[_0x4f3760(0xe6)]({'attributes':{'class':_0x18919b}}),this[_0x4f3760(0x135)][_0x4f3760(0x109)](_0x32af4b),_0x32af4b;}[_0x19ef1d(0x11c)](_0x119204,_0x489f21,_0x19b766){const _0x284a30=_0x19ef1d;if(_0x119204[_0x284a30(0x136)][_0x284a30(0xec)](),!_0x19b766[_0x284a30(0x15b)][_0x284a30(0x147)]&&_0x19b766[_0x284a30(0x15b)][_0x284a30(0x14e)]){const _0x4bbed3=this[_0x284a30(0x112)](_0x489f21,{'label':_0x3b5454(_0x489f21,_0x284a30(0x149)),'icon':_0x356087});_0x4bbed3['on'](_0x284a30(0x13d),()=>{const _0x4d9575=_0x284a30;this[_0x4d9575(0x14c)](_0x4d9575(0xfe)),this[_0x4d9575(0x12f)]();}),_0x119204[_0x284a30(0x136)][_0x284a30(0x109)](_0x4bbed3);}if(_0x19b766[_0x284a30(0x167)][_0x284a30(0x14e)]){const _0x3081ba=this[_0x284a30(0x112)](_0x489f21,{'label':_0x3b5454(_0x489f21,_0x284a30(0x141)),'icon':_0x327c00});_0x3081ba['on'](_0x284a30(0x13d),()=>{const _0x35614a=_0x284a30;this[_0x35614a(0x12f)](),this[_0x35614a(0x164)](),this[_0x35614a(0x157)][_0x35614a(0x15a)]({'target':this[_0x35614a(0xee)][_0x35614a(0x123)],'limiter':this[_0x35614a(0xdc)](),'positions':$o}),this[_0x35614a(0xd7)][_0x35614a(0x16a)]();}),_0x119204[_0x284a30(0x136)][_0x284a30(0x109)](_0x3081ba);}if(_0x19b766[_0x284a30(0x10d)][_0x284a30(0x14e)]){const _0x3ea3ce=new _0x4ddd35(_0x489f21);_0x3ea3ce[_0x284a30(0x16b)]({'label':_0x3b5454(_0x489f21,_0x284a30(0x117)),'icon':_0x3869a4,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x3ea3ce['on'](_0x284a30(0x13d),()=>{const _0x8ed303=_0x284a30;this[_0x8ed303(0x12f)]();}),_0x3ea3ce['on'](_0x284a30(0x12a),(_0x123a4e,_0x29e846)=>{const _0x475af5=_0x284a30;this[_0x475af5(0x14c)](_0x475af5(0x160),_0x29e846);}),_0x3ea3ce[_0x284a30(0xe8)]=!0x0,_0x119204[_0x284a30(0x136)][_0x284a30(0x109)](_0x3ea3ce);}for(const _0x16f8ca of _0x19b766[_0x284a30(0xd8)]){const _0x4b9756=this[_0x284a30(0x112)](_0x489f21,{'label':_0x16f8ca[_0x284a30(0x162)],'icon':_0x16f8ca[_0x284a30(0x11f)]||_0x38080e,'type':_0x284a30(0x110)});_0x119204[_0x284a30(0x136)][_0x284a30(0x109)](_0x4b9756),_0x4b9756['on'](_0x284a30(0x13d),()=>{const _0x1a4c34=_0x284a30;this[_0x1a4c34(0x12f)](),this[_0x1a4c34(0x12b)]({'source':_0x16f8ca,'withBackButton':!this[_0x1a4c34(0xfb)]});});}for(const _0x475821 of _0x19b766[_0x284a30(0x10a)]||[]){const _0x2fe64c=this[_0x284a30(0x112)](_0x489f21,{'label':_0x475821[_0x284a30(0x162)],'icon':_0x475821[_0x284a30(0x11f)]||_0x38080e,'type':_0x284a30(0xe7)});_0x119204[_0x284a30(0x136)][_0x284a30(0x109)](_0x2fe64c),_0x2fe64c['on'](_0x284a30(0x13d),()=>{const _0x55e50c=_0x284a30;this[_0x55e50c(0x12f)](),this[_0x55e50c(0x14c)](_0x55e50c(0xd6),_0x475821);});}this[_0x284a30(0xfb)]=0x1===_0x119204[_0x284a30(0x136)][_0x284a30(0x107)],this[_0x284a30(0xd7)][_0x284a30(0x146)]=!this[_0x284a30(0xfb)];}[_0x19ef1d(0x121)](_0x3921c7,_0x165365){const _0x514a67=_0x19ef1d;this[_0x514a67(0xd7)]=new _0x5d171a(_0x165365),this[_0x514a67(0xd7)]['on'](_0x514a67(0xf4),(_0x18ff15,_0x112b29)=>{const _0x2459ef=_0x514a67;this[_0x2459ef(0x11e)](_0x112b29);}),this[_0x514a67(0xd7)]['on'](_0x514a67(0xf6),()=>{const _0x5d089e=_0x514a67;this[_0x5d089e(0x129)](),this[_0x5d089e(0xfb)]||(this[_0x5d089e(0xfd)](),this[_0x5d089e(0xfa)][_0x5d089e(0x15a)]({'target':this[_0x5d089e(0xee)][_0x5d089e(0x123)],'limiter':this[_0x5d089e(0xdc)](),'positions':$o}));}),this[_0x514a67(0xd7)]['on'](_0x514a67(0x142),()=>{const _0x3bceff=_0x514a67;this[_0x3bceff(0x157)][_0x3bceff(0xea)]&&this[_0x3bceff(0x157)][_0x3bceff(0x15a)]({'target':this[_0x3bceff(0xee)][_0x3bceff(0x123)],'limiter':this[_0x3bceff(0xdc)](),'positions':$o});}),_0x3921c7[_0x514a67(0x136)][_0x514a67(0x109)](this[_0x514a67(0xd7)]);}[_0x19ef1d(0x112)](_0x3b4676,_0x5a1c33){const _0x4a930d=_0x19ef1d,_0x2c7773=_0x4a930d(0x110)===_0x5a1c33[_0x4a930d(0x134)]?new SourcesBalloonButtonView(_0x3b4676):new _0x19ecd2(_0x3b4676);return _0x2c7773[_0x4a930d(0x16b)]({'label':_0x5a1c33[_0x4a930d(0x162)],'icon':_0x5a1c33[_0x4a930d(0x11f)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x2c7773;}[_0x19ef1d(0xdb)](){const _0x48c9e1=_0x19ef1d;this[_0x48c9e1(0x158)](),this[_0x48c9e1(0x103)]();}[_0x19ef1d(0x103)](){const _0x28bf96=_0x19ef1d;_0x409a2b({'emitter':this[_0x28bf96(0x157)],'contextElements':[this[_0x28bf96(0x157)][_0x28bf96(0x123)]],'callback':()=>{const _0x186d15=_0x28bf96;this[_0x186d15(0x129)]();},'activator':()=>this[_0x28bf96(0x157)][_0x28bf96(0xea)]});}[_0x19ef1d(0x14a)](_0x1077a1){const _0x354310=_0x19ef1d,_0x3b182f=this[_0x354310(0x143)];_0x3b182f[_0x354310(0x108)][_0x354310(0x104)]=_0x1077a1,_0x1077a1?_0x3b182f[_0x354310(0x11b)][_0x354310(0x105)]():_0x3b182f[_0x354310(0x11b)][_0x354310(0x133)]();}[_0x19ef1d(0x158)](){const _0x38321a=_0x19ef1d,{balloonView:_0x3b6783,buttonView:_0x35ae4d,hideMethod:_0x1a6480}=this[_0x38321a(0x143)];_0x409a2b({'emitter':_0x3b6783,'contextElements':[_0x3b6783[_0x38321a(0x123)],_0x35ae4d[_0x38321a(0x123)]],'callback':()=>{_0x1a6480();},'activator':()=>_0x35ae4d[_0x38321a(0x104)]&&!this[_0x38321a(0x157)][_0x38321a(0xea)]&&!this[_0x38321a(0xd5)][_0x38321a(0xe0)]()});}[_0x19ef1d(0xed)](_0x32c2a7,_0x12e531,_0x1e5866=!0x1,_0x575aed=!0x1){const _0x27218c=_0x19ef1d,_0x2565cd=_0x27218c(0xda)===_0x12e531||!0x0===_0x32c2a7[_0x27218c(0xe1)],_0x27a3b5=new _0x4b7da2(this[_0x27218c(0xf3)],_0x32c2a7,_0x2565cd,_0x1e5866,_0x575aed);return _0x2565cd||_0x27a3b5['on'](_0x27218c(0x140),()=>{const _0xd1beda=_0x27218c;this[_0xd1beda(0x14c)](_0xd1beda(0x13c),_0x27a3b5['id']);}),_0x27a3b5;}[_0x19ef1d(0x12c)](_0x31646e,_0x1bb0ad){const _0x1646f7=_0x19ef1d;_0x1bb0ad[_0x1646f7(0x109)](_0x31646e,0x0);}[_0x19ef1d(0xf7)](_0xcb8276,_0x5e7d8c){const _0x43003e=_0x19ef1d,_0x541a55=_0x5e7d8c[_0x43003e(0x128)](_0x456853=>_0x456853['id']===_0xcb8276);_0x541a55&&_0x5e7d8c[_0x43003e(0x154)](_0x541a55);}[_0x19ef1d(0x15e)](){const _0x5d6bc8=_0x19ef1d;this[_0x5d6bc8(0xee)][_0x5d6bc8(0x104)]?this[_0x5d6bc8(0x12f)]():(this[_0x5d6bc8(0xfd)](),this[_0x5d6bc8(0xfa)][_0x5d6bc8(0x15a)]({'target':this[_0x5d6bc8(0xee)][_0x5d6bc8(0x123)],'limiter':this[_0x5d6bc8(0xdc)](),'positions':$o}),this[_0x5d6bc8(0xfb)]&&this[_0x5d6bc8(0xfa)][_0x5d6bc8(0x136)][_0x5d6bc8(0x156)](0x0)?.[_0x5d6bc8(0x14c)](_0x5d6bc8(0x13d)));}[_0x19ef1d(0x11e)](_0x215d32){const _0x47aa03=_0x19ef1d;this[_0x47aa03(0xd7)][_0x47aa03(0xec)](),this[_0x47aa03(0x129)](),this[_0x47aa03(0x14c)](_0x47aa03(0xf9),_0x215d32);}}export class SourcesBalloonButtonView extends _0x19ecd2{[_0x19ef1d(0x138)];constructor(_0x5381a6){const _0x49c5aa=_0x19ef1d;super(_0x5381a6),this[_0x49c5aa(0x16b)]({'withText':!0x0,'role':_0x49c5aa(0x13a)}),this[_0x49c5aa(0x138)]=this[_0x49c5aa(0x13e)](),this[_0x49c5aa(0xe6)]({'attributes':{'class':[Ho]}});}[_0x19ef1d(0x127)](){const _0x18655d=_0x19ef1d;super[_0x18655d(0x127)](),this[_0x18655d(0x151)][_0x18655d(0x109)](this[_0x18655d(0x138)]);}[_0x19ef1d(0x13e)](){const _0xf7c437=_0x19ef1d,_0x5b9e7f=new _0x15153d();return _0x5b9e7f[_0xf7c437(0x136)]=_0x1d218c,_0x5b9e7f[_0xf7c437(0xe6)]({'attributes':{'class':Ho+_0xf7c437(0x132)}}),_0x5b9e7f;}}
|
|
23
|
+
const _0x15ebfb=_0x2ebf;(function(_0x569b92,_0xa78b5e){const _0x12bd3d=_0x2ebf,_0x40dddb=_0x569b92();while(!![]){try{const _0x49019f=-parseInt(_0x12bd3d(0x214))/0x1+parseInt(_0x12bd3d(0x234))/0x2+-parseInt(_0x12bd3d(0x229))/0x3+parseInt(_0x12bd3d(0x243))/0x4*(parseInt(_0x12bd3d(0x247))/0x5)+-parseInt(_0x12bd3d(0x239))/0x6+-parseInt(_0x12bd3d(0x23d))/0x7+parseInt(_0x12bd3d(0x23e))/0x8;if(_0x49019f===_0xa78b5e)break;else _0x40dddb['push'](_0x40dddb['shift']());}catch(_0x1acab3){_0x40dddb['push'](_0x40dddb['shift']());}}}(_0x2bdd,0x3b07c));import{BalloonPanelView as _0x797026,ButtonView as _0x817fd6,clickOutsideHandler as _0x2d8647,FileDialogButtonView as _0x3e5940,IconView as _0x52c064,View as _0x46b9f5}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1c6747,IconDocument as _0x261300,IconDocumentOutline as _0xb4c138,IconDropdownArrow as _0x3a9ce0,IconLink as _0x1e8bbd,IconPaperClip as _0xead702}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2be630}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x313029}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x565a57}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x5ce220}from'../../../aicore/utils/common-translations.js';function _0x2bdd(){const _0x54e9cc=['8660072ftKPuW','_urlBalloonPanelView','showUrlBalloonPanel','element','hideAddContextBalloonPanel','705452gtMKVa','withBackButton','isAnyResourceBalloonVisible','icon','5olKJbQ','enabled','southArrowNorth','refreshBalloon','showAddContextBalloonPanel','AI_CHAT_CONTEXT_ADD_CONTEXT','ck-ai-chat','destroy','_resourcesBalloonView','tooltip','_setupUrlBalloonClickOutsideHandler','done','show','ck-ai-chat-context-controls__add-context-balloon-panel','current','_handleUrlSubmit','pin','sources','clear','AI_CHAT_CONTEXT_URL_LABEL','menuitem','addContextItem','__arrow','northArrowSouthEast','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat-context-controls__balloon-button','body','ck-ai-chat-context-controls__add-context-button','_bindEventHandlers','loadSourceResources','_setupTemplate','_setupAddContextBalloonClickOutsideHandler','hide','southArrowNorthWest','_toggleAddContextBalloon','ck-ai-chat-context-chips-wrapper-balloon','extendTemplate','submitUrl','northArrowSouth','_createUrlBalloonPanelView','render','source','addUrlToContext','_removeContextFromCollection','_createBalloonButton','type','executeCustomItemCallback','isHidden','_addUrlContent','_hasExactlyOneSource','_addContextBalloonConfig','conversation','ck-ai-chat-context-controls','_conversationContextsChips','_createResourcesBalloonView','isEnabled','reorganizeChips','ck-ai-chat-controls_context_show-more-button','northArrowSouthWest','setAddContextOptions','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_addContextToCollection','ck-ai-chat-context-controls__balloon-button-source','cancel','_setBalloonPanelContent','defaultPositions','isVisible','find','_setAddContextButtonEnabled','closeSourceResourceBalloon','ck-ai-chat-context-controls__url-balloon-panel','showSourceResourcesBalloon','removeContextItemChip','clearCurrentContextItems','ck-ai-chat-controls-button','content','customItems','updateResourceState','label','addDocumentToContext','children','setContainerElement','southArrowNorthEast','fire','focus','setTemplate','_setupAllBalloonClickOutsideHandlers','remove','bodyCollection','_createAddContextButtonView','document','files','locale','_createArrowView','_urlInputView','_handleAddContextButtonClick','set','removeContextItem','199677WSqvaE','div','overflowChips','length','_createAddContextBalloonPanelView','arrowView','populateSourceResourceBalloon','buttonView','customItem','bind','setContextItemLoading','_currentContextsChips','addFileToContext','urls','isLoading','_createBaseBalloonPanel','_overflowManager','execute','balloonView','get','add','1077552bVoZEL','setConversationContext','isReadOnly','ck-ai-chat-context-controls__show-more-balloon-panel','closest','ck-ai-chat-context-controls__pending-contexts','createCollection','_getLimiterElement','isOn','_createContextButton','hideUrlBalloonPanel','608094wEExpt','ck-reset_all-excluded','_addContextBalloonPanelView','addContextButtonView','addResourceToContext','2684352adilxj','searchInputVisibleFrom','_showSourceResourcesBalloon','clearConversationContextItems','2204146EiJiNn'];_0x2bdd=function(){return _0x54e9cc;};return _0x2bdd();}import{AIChatResourcesBalloonView as _0x4b1aae}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x15ebfb(0x201),_0x15ebfb(0x220),_0x15ebfb(0x1dc),_0x15ebfb(0x238),_0x15ebfb(0x213),_0x15ebfb(0x264),_0x15ebfb(0x1e0)];function _0x2ebf(_0xb6e432,_0x40bb3c){const _0x2bdd68=_0x2bdd();return _0x2ebf=function(_0x2ebfb0,_0x52ed44){_0x2ebfb0=_0x2ebfb0-0x1d9;let _0x46519f=_0x2bdd68[_0x2ebfb0];return _0x46519f;},_0x2ebf(_0xb6e432,_0x40bb3c);}const Ro=_0x15ebfb(0x1e6),Oo=_0x15ebfb(0x22e),Uo=_0x15ebfb(0x254),Lo=_0x15ebfb(0x262),No=_0x15ebfb(0x1f8),Mo=_0x15ebfb(0x260),Ho=_0x15ebfb(0x1f0),jo=_0x15ebfb(0x1fc),Fo=_0x15ebfb(0x26a),Xo=_0x15ebfb(0x1eb),yo=_0x15ebfb(0x22c),Do=_0x15ebfb(0x24d),$o=[_0x797026[_0x15ebfb(0x1f3)][_0x15ebfb(0x1ec)],_0x797026[_0x15ebfb(0x1f3)][_0x15ebfb(0x26d)],_0x797026[_0x15ebfb(0x1f3)][_0x15ebfb(0x25e)],_0x797026[_0x15ebfb(0x1f3)][_0x15ebfb(0x268)],_0x797026[_0x15ebfb(0x1f3)][_0x15ebfb(0x249)],_0x797026[_0x15ebfb(0x1f3)][_0x15ebfb(0x204)]];export class AIChatContextPanelView extends _0x46b9f5{[_0x15ebfb(0x237)];[_0x15ebfb(0x21f)]=this[_0x15ebfb(0x22f)]();[_0x15ebfb(0x1e7)]=this[_0x15ebfb(0x22f)]();[_0x15ebfb(0x224)];[_0x15ebfb(0x236)];[_0x15ebfb(0x23f)];[_0x15ebfb(0x210)];[_0x15ebfb(0x24f)];[_0x15ebfb(0x1e4)];[_0x15ebfb(0x1e3)]=!0x1;[_0x15ebfb(0x20a)];constructor(_0x54cf14,_0x5126b4){const _0x2ebbc6=_0x15ebfb;super(_0x54cf14),this[_0x2ebbc6(0x20a)]=_0x5126b4[_0x2ebbc6(0x20a)],this[_0x2ebbc6(0x21f)]=this[_0x2ebbc6(0x22f)](),this[_0x2ebbc6(0x1e7)]=this[_0x2ebbc6(0x22f)](),this[_0x2ebbc6(0x237)]=this[_0x2ebbc6(0x20b)](_0x54cf14),this[_0x2ebbc6(0x236)]=this[_0x2ebbc6(0x218)](_0x54cf14),this[_0x2ebbc6(0x23f)]=this[_0x2ebbc6(0x1d9)](_0x54cf14),this[_0x2ebbc6(0x24f)]=this[_0x2ebbc6(0x1e8)](_0x54cf14,_0x5126b4);const _0x19b57f={'cssClasses':{'showMoreButton':Xo,'showMoreBalloon':yo,'overflowContainer':Fo,'controlsButton':jo}};this[_0x2ebbc6(0x224)]=new _0x565a57(_0x54cf14,this[_0x2ebbc6(0x21f)],_0x19b57f,this[_0x2ebbc6(0x20a)],this),this[_0x2ebbc6(0x1e4)]={'buttonView':this[_0x2ebbc6(0x237)],'balloonView':this[_0x2ebbc6(0x236)],'hideMethod':this[_0x2ebbc6(0x242)][_0x2ebbc6(0x21d)](this),'showMethod':this[_0x2ebbc6(0x24b)][_0x2ebbc6(0x21d)](this)},this[_0x2ebbc6(0x265)](),this[_0x2ebbc6(0x263)]();}[_0x15ebfb(0x1da)](){const _0x566e9c=_0x15ebfb;super[_0x566e9c(0x1da)](),this[_0x566e9c(0x208)](),this[_0x566e9c(0x224)][_0x566e9c(0x203)](this[_0x566e9c(0x241)]),this[_0x566e9c(0x224)][_0x566e9c(0x1ea)]();}[_0x15ebfb(0x24e)](){const _0x508dcd=_0x15ebfb;super[_0x508dcd(0x24e)](),this[_0x508dcd(0x224)][_0x508dcd(0x24e)](),this[_0x508dcd(0x24f)][_0x508dcd(0x24e)]();}[_0x15ebfb(0x25c)](_0x4ddc56,_0x75449d){const _0x264c99=_0x15ebfb,_0x2f7a6d=this[_0x264c99(0x232)](_0x4ddc56,_0x264c99(0x255),!0x0,_0x75449d);this[_0x264c99(0x1ef)](_0x2f7a6d,this[_0x264c99(0x21f)]),this[_0x264c99(0x224)][_0x264c99(0x1ea)]();}[_0x15ebfb(0x213)](_0x519bfc){const _0x40e1dd=_0x15ebfb;this[_0x40e1dd(0x1dd)](_0x519bfc,this[_0x40e1dd(0x21f)]),this[_0x40e1dd(0x1dd)](_0x519bfc,this[_0x40e1dd(0x224)][_0x40e1dd(0x216)]),this[_0x40e1dd(0x224)][_0x40e1dd(0x1ea)]();}[_0x15ebfb(0x21e)](_0x21b9fc,_0x4a3f7f){const _0x3c619f=_0x15ebfb;let _0x5da57d=this[_0x3c619f(0x21f)][_0x3c619f(0x1f5)](_0x2d9e63=>_0x2d9e63['id']===_0x21b9fc);_0x5da57d||(_0x5da57d=this[_0x3c619f(0x224)][_0x3c619f(0x216)][_0x3c619f(0x1f5)](_0x14762f=>_0x14762f['id']===_0x21b9fc)),_0x5da57d&&(_0x5da57d[_0x3c619f(0x222)]=_0x4a3f7f);}[_0x15ebfb(0x22a)](_0x60851c){const _0x3f8917=_0x15ebfb;this[_0x3f8917(0x1e7)][_0x3f8917(0x259)]();for(const _0x142d0f of _0x60851c){const _0x38daee=this[_0x3f8917(0x232)](_0x142d0f,_0x3f8917(0x1e5),!0x1,!0x1);this[_0x3f8917(0x1ef)](_0x38daee,this[_0x3f8917(0x1e7)]);}}[_0x15ebfb(0x1fb)](){const _0x33910e=_0x15ebfb;this[_0x33910e(0x21f)][_0x33910e(0x259)](),this[_0x33910e(0x224)][_0x33910e(0x259)]();}[_0x15ebfb(0x23c)](){const _0x167d06=_0x15ebfb;this[_0x167d06(0x1e7)][_0x167d06(0x259)]();}[_0x15ebfb(0x1ff)](_0x53ae9d,_0x395749,_0x5d600b){const _0x7a514d=_0x15ebfb;this[_0x7a514d(0x24f)][_0x7a514d(0x1ff)](_0x53ae9d,_0x395749,_0x5d600b);}[_0x15ebfb(0x242)](){const _0x149fab=_0x15ebfb;this[_0x149fab(0x269)](!0x1);}[_0x15ebfb(0x24b)](){const _0x690f46=_0x15ebfb;this[_0x690f46(0x269)](!0x0);}[_0x15ebfb(0x233)](){const _0x2daabc=_0x15ebfb;this[_0x2daabc(0x23f)][_0x2daabc(0x267)](),this[_0x2daabc(0x237)][_0x2daabc(0x231)]=!0x1,this[_0x2daabc(0x210)]&&this[_0x2daabc(0x210)][_0x2daabc(0x259)]();}[_0x15ebfb(0x240)](){const _0x26c7f6=_0x15ebfb;this[_0x26c7f6(0x23f)][_0x26c7f6(0x253)](),this[_0x26c7f6(0x237)][_0x26c7f6(0x231)]=!0x0;}[_0x15ebfb(0x23b)]({source:_0x54f356,withBackButton:_0x112b1b}){const _0x298e97=_0x15ebfb;this[_0x298e97(0x24f)][_0x298e97(0x1f9)]({'source':_0x54f356,'withBackButton':_0x112b1b}),this[_0x298e97(0x237)][_0x298e97(0x231)]=!0x0;}[_0x15ebfb(0x21a)](_0x3de050,_0x3435f0,_0x5998d7,_0x362998){const _0x5ba258=_0x15ebfb;this[_0x5ba258(0x24f)][_0x5ba258(0x21a)](_0x3de050,_0x5998d7,_0x362998);}[_0x15ebfb(0x1f7)](_0x55bc56){const _0xd4092a=_0x15ebfb;this[_0xd4092a(0x24f)][_0xd4092a(0x1f7)](_0x55bc56),this[_0xd4092a(0x237)][_0xd4092a(0x231)]=!0x1;}[_0x15ebfb(0x1ed)](_0x59e75c){const _0x1c21a3=_0x15ebfb;this[_0x1c21a3(0x1f2)](this[_0x1c21a3(0x236)],this[_0x1c21a3(0x20e)],_0x59e75c),this[_0x1c21a3(0x1f6)](_0x59e75c);}[_0x15ebfb(0x1f6)](_0x3483ce){const _0x145adc=_0x15ebfb,_0x1ce13f=!_0x3483ce[_0x145adc(0x20c)][_0x145adc(0x1e1)]&&_0x3483ce[_0x145adc(0x20c)][_0x145adc(0x248)],_0x1b35fc=_0x3483ce[_0x145adc(0x221)][_0x145adc(0x248)],_0x554e74=_0x3483ce[_0x145adc(0x20d)][_0x145adc(0x248)],_0x1f6f41=_0x3483ce[_0x145adc(0x258)][_0x145adc(0x217)]>0x0,_0x1de661=_0x3483ce[_0x145adc(0x1fe)]&&_0x3483ce[_0x145adc(0x1fe)][_0x145adc(0x217)]>0x0;this[_0x145adc(0x237)][_0x145adc(0x1e9)]=_0x1ce13f||_0x1b35fc||_0x554e74||_0x1f6f41||_0x1de661;}[_0x15ebfb(0x265)](){const _0x2eae6b=_0x15ebfb;this[_0x2eae6b(0x207)]({'tag':_0x2eae6b(0x215),'attributes':{'class':[Ro,_0x2eae6b(0x235)]},'children':[{'tag':_0x2eae6b(0x215),'attributes':{'class':Oo},'children':this[_0x2eae6b(0x21f)]}]});}[_0x15ebfb(0x263)](){const _0x51c59a=_0x15ebfb;this[_0x51c59a(0x237)]['on'](_0x51c59a(0x225),()=>{const _0xb4964c=_0x51c59a;this[_0xb4964c(0x211)]();});}[_0x15ebfb(0x20b)](_0x4e6912){const _0x5a042c=_0x15ebfb,_0x571851=new _0x817fd6(_0x4e6912);return _0x571851[_0x5a042c(0x212)]({'label':_0x5ce220(_0x4e6912,_0x5a042c(0x24c)),'class':jo+'\x20'+Lo,'icon':_0xead702,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x571851;}[_0x15ebfb(0x218)](_0x23d7c0){const _0x380300=_0x15ebfb;return this[_0x380300(0x223)](_0x23d7c0,Uo);}[_0x15ebfb(0x1d9)](_0x777f6b){const _0x227fad=_0x15ebfb,_0x55146e=this[_0x227fad(0x223)](_0x777f6b,No);return this[_0x227fad(0x1e2)](_0x55146e,_0x777f6b),_0x55146e;}[_0x15ebfb(0x1e8)](_0x43689e,_0x46313e){const _0x358536=_0x15ebfb,_0x68f659={'searchInputVisibleFrom':_0x46313e[_0x358536(0x23a)],'onBackToContext':()=>{const _0xd6bca3=_0x358536;this[_0xd6bca3(0x24b)](),this[_0xd6bca3(0x236)][_0xd6bca3(0x257)]({'target':this[_0xd6bca3(0x237)][_0xd6bca3(0x241)],'limiter':this[_0xd6bca3(0x230)](),'positions':$o});},'onResourceSelected':(_0x80db41,_0x43eb5e)=>{const _0x5bd7b1=_0x358536;this[_0x5bd7b1(0x205)](_0x5bd7b1(0x238),{'source':_0x80db41,'resource':_0x43eb5e});},'onLoadSourceResources':_0x308612=>{const _0x4a4038=_0x358536;this[_0x4a4038(0x205)](_0x4a4038(0x264),_0x308612);},'onBalloonClosed':()=>{const _0x453e08=_0x358536;this[_0x453e08(0x237)][_0x453e08(0x231)]=!0x1;},'getLimiterElement':()=>this[_0x358536(0x230)](),'getTargetElement':()=>this[_0x358536(0x237)][_0x358536(0x241)]};return new _0x4b1aae(_0x43689e,_0x46313e[_0x358536(0x20a)],_0x68f659);}[_0x15ebfb(0x230)](){const _0xb1590c=_0x15ebfb;return this[_0xb1590c(0x241)]?.[_0xb1590c(0x22d)]('.'+Do)||document[_0xb1590c(0x261)];}[_0x15ebfb(0x223)](_0x18f26d,_0x51f886){const _0x3c2334=_0x15ebfb,_0x51c8cf=new _0x797026(_0x18f26d);return _0x51c8cf[_0x3c2334(0x26b)]({'attributes':{'class':_0x51f886}}),this[_0x3c2334(0x20a)][_0x3c2334(0x228)](_0x51c8cf),_0x51c8cf;}[_0x15ebfb(0x1f2)](_0x499015,_0x15ffc3,_0xc5c1e0){const _0x32216a=_0x15ebfb;if(_0x499015[_0x32216a(0x1fd)][_0x32216a(0x259)](),!_0xc5c1e0[_0x32216a(0x20c)][_0x32216a(0x1e1)]&&_0xc5c1e0[_0x32216a(0x20c)][_0x32216a(0x248)]){const _0x51330f=this[_0x32216a(0x1de)](_0x15ffc3,{'label':_0x5ce220(_0x15ffc3,_0x32216a(0x1ee)),'icon':_0x261300});_0x51330f['on'](_0x32216a(0x225),()=>{const _0x9ed36e=_0x32216a;this[_0x9ed36e(0x205)](_0x9ed36e(0x201)),this[_0x9ed36e(0x242)]();}),_0x499015[_0x32216a(0x1fd)][_0x32216a(0x228)](_0x51330f);}if(_0xc5c1e0[_0x32216a(0x221)][_0x32216a(0x248)]){const _0x4ada3b=this[_0x32216a(0x1de)](_0x15ffc3,{'label':_0x5ce220(_0x15ffc3,_0x32216a(0x25a)),'icon':_0x1e8bbd});_0x4ada3b['on'](_0x32216a(0x225),()=>{const _0x1fda51=_0x32216a;this[_0x1fda51(0x242)](),this[_0x1fda51(0x240)](),this[_0x1fda51(0x23f)][_0x1fda51(0x257)]({'target':this[_0x1fda51(0x237)][_0x1fda51(0x241)],'limiter':this[_0x1fda51(0x230)](),'positions':$o}),this[_0x1fda51(0x210)][_0x1fda51(0x206)]();}),_0x499015[_0x32216a(0x1fd)][_0x32216a(0x228)](_0x4ada3b);}if(_0xc5c1e0[_0x32216a(0x20d)][_0x32216a(0x248)]){const _0x467dd2=new _0x3e5940(_0x15ffc3);_0x467dd2[_0x32216a(0x212)]({'label':_0x5ce220(_0x15ffc3,_0x32216a(0x25f)),'icon':_0x1c6747,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x467dd2['on'](_0x32216a(0x225),()=>{const _0x3e6e43=_0x32216a;this[_0x3e6e43(0x242)]();}),_0x467dd2['on'](_0x32216a(0x252),(_0x131ccd,_0x124869)=>{const _0xd5f8e8=_0x32216a;this[_0xd5f8e8(0x205)](_0xd5f8e8(0x220),_0x124869);}),_0x467dd2[_0x32216a(0x250)]=!0x0,_0x499015[_0x32216a(0x1fd)][_0x32216a(0x228)](_0x467dd2);}for(const _0x54cf8c of _0xc5c1e0[_0x32216a(0x258)]){const _0x16b265=this[_0x32216a(0x1de)](_0x15ffc3,{'label':_0x54cf8c[_0x32216a(0x200)],'icon':_0x54cf8c[_0x32216a(0x246)]||_0xb4c138,'type':_0x32216a(0x1db)});_0x499015[_0x32216a(0x1fd)][_0x32216a(0x228)](_0x16b265),_0x16b265['on'](_0x32216a(0x225),()=>{const _0x278a37=_0x32216a;this[_0x278a37(0x242)](),this[_0x278a37(0x23b)]({'source':_0x54cf8c,'withBackButton':!this[_0x278a37(0x1e3)]});});}for(const _0x340221 of _0xc5c1e0[_0x32216a(0x1fe)]||[]){const _0x8c911a=this[_0x32216a(0x1de)](_0x15ffc3,{'label':_0x340221[_0x32216a(0x200)],'icon':_0x340221[_0x32216a(0x246)]||_0xb4c138,'type':_0x32216a(0x21c)});_0x499015[_0x32216a(0x1fd)][_0x32216a(0x228)](_0x8c911a),_0x8c911a['on'](_0x32216a(0x225),()=>{const _0x5c15b8=_0x32216a;this[_0x5c15b8(0x242)](),this[_0x5c15b8(0x205)](_0x5c15b8(0x1e0),_0x340221);});}this[_0x32216a(0x1e3)]=0x1===_0x499015[_0x32216a(0x1fd)][_0x32216a(0x217)],this[_0x32216a(0x210)][_0x32216a(0x244)]=!this[_0x32216a(0x1e3)];}[_0x15ebfb(0x1e2)](_0x59a0f9,_0x41536b){const _0x37143b=_0x15ebfb;this[_0x37143b(0x210)]=new _0x313029(_0x41536b),this[_0x37143b(0x210)]['on'](_0x37143b(0x26c),(_0x2f43fc,_0x58b854)=>{const _0x39707f=_0x37143b;this[_0x39707f(0x256)](_0x58b854);}),this[_0x37143b(0x210)]['on'](_0x37143b(0x1f1),()=>{const _0x23a9c1=_0x37143b;this[_0x23a9c1(0x233)](),this[_0x23a9c1(0x1e3)]||(this[_0x23a9c1(0x24b)](),this[_0x23a9c1(0x236)][_0x23a9c1(0x257)]({'target':this[_0x23a9c1(0x237)][_0x23a9c1(0x241)],'limiter':this[_0x23a9c1(0x230)](),'positions':$o}));}),this[_0x37143b(0x210)]['on'](_0x37143b(0x24a),()=>{const _0x448a57=_0x37143b;this[_0x448a57(0x23f)][_0x448a57(0x1f4)]&&this[_0x448a57(0x23f)][_0x448a57(0x257)]({'target':this[_0x448a57(0x237)][_0x448a57(0x241)],'limiter':this[_0x448a57(0x230)](),'positions':$o});}),_0x59a0f9[_0x37143b(0x1fd)][_0x37143b(0x228)](this[_0x37143b(0x210)]);}[_0x15ebfb(0x1de)](_0x4ae946,_0x2a67a1){const _0x5885b7=_0x15ebfb,_0x31a769=_0x5885b7(0x1db)===_0x2a67a1[_0x5885b7(0x1df)]?new SourcesBalloonButtonView(_0x4ae946):new _0x817fd6(_0x4ae946);return _0x31a769[_0x5885b7(0x212)]({'label':_0x2a67a1[_0x5885b7(0x200)],'icon':_0x2a67a1[_0x5885b7(0x246)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x31a769;}[_0x15ebfb(0x208)](){const _0x75f45b=_0x15ebfb;this[_0x75f45b(0x266)](),this[_0x75f45b(0x251)]();}[_0x15ebfb(0x251)](){const _0x18722b=_0x15ebfb;_0x2d8647({'emitter':this[_0x18722b(0x23f)],'contextElements':[this[_0x18722b(0x23f)][_0x18722b(0x241)]],'callback':()=>{const _0x39ec73=_0x18722b;this[_0x39ec73(0x233)]();},'activator':()=>this[_0x18722b(0x23f)][_0x18722b(0x1f4)]});}[_0x15ebfb(0x269)](_0x4c31fd){const _0x2b7eb1=_0x15ebfb,_0x2568a4=this[_0x2b7eb1(0x1e4)];_0x2568a4[_0x2b7eb1(0x21b)][_0x2b7eb1(0x231)]=_0x4c31fd,_0x4c31fd?_0x2568a4[_0x2b7eb1(0x226)][_0x2b7eb1(0x253)]():_0x2568a4[_0x2b7eb1(0x226)][_0x2b7eb1(0x267)]();}[_0x15ebfb(0x266)](){const _0x32b1d3=_0x15ebfb,{balloonView:_0x5dd00d,buttonView:_0x1d9dbc,hideMethod:_0x21b42f}=this[_0x32b1d3(0x1e4)];_0x2d8647({'emitter':_0x5dd00d,'contextElements':[_0x5dd00d[_0x32b1d3(0x241)],_0x1d9dbc[_0x32b1d3(0x241)]],'callback':()=>{_0x21b42f();},'activator':()=>_0x1d9dbc[_0x32b1d3(0x231)]&&!this[_0x32b1d3(0x23f)][_0x32b1d3(0x1f4)]&&!this[_0x32b1d3(0x24f)][_0x32b1d3(0x245)]()});}[_0x15ebfb(0x232)](_0x30b567,_0x1cef2e,_0x306c54=!0x1,_0x506b8b=!0x1){const _0x2605bb=_0x15ebfb,_0x4007b4=_0x2605bb(0x1e5)===_0x1cef2e||!0x0===_0x30b567[_0x2605bb(0x22b)],_0x10d5b0=new _0x2be630(this[_0x2605bb(0x20e)],_0x30b567,_0x4007b4,_0x306c54,_0x506b8b);return _0x4007b4||_0x10d5b0['on'](_0x2605bb(0x1fa),()=>{const _0x2afb67=_0x2605bb;this[_0x2afb67(0x205)](_0x2afb67(0x213),_0x10d5b0['id']);}),_0x10d5b0;}[_0x15ebfb(0x1ef)](_0x526b25,_0x7b4f81){const _0x264c62=_0x15ebfb;_0x7b4f81[_0x264c62(0x228)](_0x526b25,0x0);}[_0x15ebfb(0x1dd)](_0x24a893,_0x3e261c){const _0x317981=_0x15ebfb,_0x1964a2=_0x3e261c[_0x317981(0x1f5)](_0x54de6e=>_0x54de6e['id']===_0x24a893);_0x1964a2&&_0x3e261c[_0x317981(0x209)](_0x1964a2);}[_0x15ebfb(0x211)](){const _0x45a418=_0x15ebfb;this[_0x45a418(0x237)][_0x45a418(0x231)]?this[_0x45a418(0x242)]():(this[_0x45a418(0x24b)](),this[_0x45a418(0x236)][_0x45a418(0x257)]({'target':this[_0x45a418(0x237)][_0x45a418(0x241)],'limiter':this[_0x45a418(0x230)](),'positions':$o}),this[_0x45a418(0x1e3)]&&this[_0x45a418(0x236)][_0x45a418(0x1fd)][_0x45a418(0x227)](0x0)?.[_0x45a418(0x205)](_0x45a418(0x225)));}[_0x15ebfb(0x256)](_0x3ed9d0){const _0x18f6f4=_0x15ebfb;this[_0x18f6f4(0x210)][_0x18f6f4(0x259)](),this[_0x18f6f4(0x233)](),this[_0x18f6f4(0x205)](_0x18f6f4(0x1dc),_0x3ed9d0);}}export class SourcesBalloonButtonView extends _0x817fd6{[_0x15ebfb(0x219)];constructor(_0xbe29b3){const _0x1264fb=_0x15ebfb;super(_0xbe29b3),this[_0x1264fb(0x212)]({'withText':!0x0,'role':_0x1264fb(0x25b)}),this[_0x1264fb(0x219)]=this[_0x1264fb(0x20f)](),this[_0x1264fb(0x26b)]({'attributes':{'class':[Ho]}});}[_0x15ebfb(0x1da)](){const _0xc501b3=_0x15ebfb;super[_0xc501b3(0x1da)](),this[_0xc501b3(0x202)][_0xc501b3(0x228)](this[_0xc501b3(0x219)]);}[_0x15ebfb(0x20f)](){const _0x3bfefc=_0x15ebfb,_0x57f9f7=new _0x52c064();return _0x57f9f7[_0x3bfefc(0x1fd)]=_0x3a9ce0,_0x57f9f7[_0x3bfefc(0x26b)]({'attributes':{'class':Ho+_0x3bfefc(0x25d)}}),_0x57f9f7;}}
|