@ckeditor/ckeditor5-ai 47.3.0-alpha.4 → 47.3.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiassistant/aiassistantediting.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/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.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/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/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/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/documentrange.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/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/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3e4626=_0x5302;(function(_0xe01f41,_0x2e8d01){const _0x130950=_0x5302,_0x54ffc5=_0xe01f41();while(!![]){try{const _0x559ce6=parseInt(_0x130950(0x24c))/0x1+parseInt(_0x130950(0x211))/0x2+parseInt(_0x130950(0x1e9))/0x3*(parseInt(_0x130950(0x1fb))/0x4)+parseInt(_0x130950(0x206))/0x5+parseInt(_0x130950(0x215))/0x6+-parseInt(_0x130950(0x1f1))/0x7*(-parseInt(_0x130950(0x242))/0x8)+parseInt(_0x130950(0x22f))/0x9*(-parseInt(_0x130950(0x1f3))/0xa);if(_0x559ce6===_0x2e8d01)break;else _0x54ffc5['push'](_0x54ffc5['shift']());}catch(_0x1a274c){_0x54ffc5['push'](_0x54ffc5['shift']());}}}(_0x3b7c,0xb0bb8));import{CKEditorError as _0x28d55c,ObservableMixin as _0x1e5c16,uid as _0x113b57}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x445f8b,AIContextTextResourceType as _0x2ff579}from'../../aicore/model/aicontext.js';import{escape as _0x233d96}from'es-toolkit/compat';function _0x3b7c(){const _0xa0e2cd=['has','addFilesToContext','push','values','size','from','_finishUploadOperation','Current\x20document','uiId','getData','5537050CKQFUu','_ongoingUploads','text/markdown','abortController','_updateResourceInContextState','getSentContextItems','object','_addContextOptionsState','addSelectionToContext','sourceResourcesLoaded','addContextOptionsChanged','309796xwPTxL','uploadFile','contextItemLoadingEnded','contextItemAdded','1392330mswQvP','isSelectionInContext','ai-chat-resource-load-failed','_ongoingUploadOperations','ai-chat-context-unsupported-type','SELECTION','ai-chat-url-upload-failed','ai-chat-document-upload-failed','_removeContextItem','length','version','enabled','ai-chat-context-invalid-data','addCurrentDocumentToContext','url-','_startUploadOperation','text/plain','File','all','current-document','type','message','fire','addResourceToContext','_addToConversationContextItem','files-','117BaBhFb','uploadDocument','_convertTextResourceToFile','ai-chat-file-upload-failed','contextSent','uploadProgressChanged','filter','selection','uploadUrl','MARKDOWN','code','map','set','stack','URL','string','fetchDocument','sources','isReadOnly','10063288TkHqBZ','FILE','resourceStateChanged','isCurrentDocumentInContext','addUrlToContext','getDocument','removeFromContext','populateFromMessage','_config','getPendingContextItems','1413385NclExC','updateCurrentDocument','isHidden','resources','_createContextItemFromContent','resourceId','_addContextItem','_pendingContextItems','abort','document','isCurrentDocumentInConversation','label','forEach','ai-request-aborted','data','TEXT','_isResourceInContext','ai-chat-source-not-found','HTML','removeSelectionFromContext','_toggleAddCurrentDocumentOptionVisibility','DOCUMENT','get','object\x20with\x20content\x20and\x20type\x20properties','_findSourceIdsByResourceId','_setAddContextOptionsDefaultState','mapContextItemsToRequestData','init','hidden','_ownerId','_mapContextItemToRequestData','loadSourceResources','_connector','sessionId','startsWith','isInContext','addToConversationContext','text/html','name','start','ai-chat-source-resources-load-failed','find','file-','content','1248zfGAak','contextItemRemoved','_getCustomSourcesInitialState','delete','getResources','error','end','getId','7oGyroc','urls','3350230MqrSBz','files','_finishContextItemLoading','attributes','_conversationContextItems','url','clearPendingContextItems','ai-chat-resource-no-data','8784GwEdJX'];_0x3b7c=function(){return _0xa0e2cd;};return _0x3b7c();}import{errorsMap as _0x377805}from'../../errorsmap.js';function _0x5302(_0x140ec3,_0x4bd142){const _0x3b7cfd=_0x3b7c();return _0x5302=function(_0x5302f1,_0x2a6837){_0x5302f1=_0x5302f1-0x1c4;let _0x4d3e7c=_0x3b7cfd[_0x5302f1];return _0x4d3e7c;},_0x5302(_0x140ec3,_0x4bd142);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x3e4626(0x214),_0x3e4626(0x1ea),_0x3e4626(0x213),_0x3e4626(0x233),_0x3e4626(0x1ee),_0x3e4626(0x210),_0x3e4626(0x20f),_0x3e4626(0x244),_0x3e4626(0x234)];export class AIChatContext extends _0x1e5c16(){[_0x3e4626(0x1dd)];[_0x3e4626(0x24a)];[_0x3e4626(0x1da)];constructor({connector:_0x13dc6f,config:_0x35f500,ownerId:_0x1dd461}){const _0xc723cf=_0x3e4626;super(),this[_0xc723cf(0x1dd)]=_0x13dc6f,this[_0xc723cf(0x24a)]=_0x35f500,this[_0xc723cf(0x1da)]=_0x1dd461;}[_0x3e4626(0x1d8)](){const _0x424f94=_0x3e4626;this[_0x424f94(0x1c4)]=new Map(),this[_0x424f94(0x1f7)]=new Map(),this[_0x424f94(0x207)]=new Map(),this[_0x424f94(0x218)]=new Map(),this[_0x424f94(0x1d6)]();}[_0x3e4626(0x24b)](){const _0x5a79e1=_0x3e4626;return this[_0x5a79e1(0x1c4)];}async[_0x3e4626(0x249)](_0x2751b2){const _0x1cff94=_0x3e4626,_0x378d52=await this[_0x1cff94(0x250)](_0x2751b2);return this[_0x1cff94(0x22d)](_0x378d52),_0x1cff94(0x228)===_0x378d52[_0x1cff94(0x204)]&&this[_0x1cff94(0x1d1)](),_0x378d52;}async[_0x3e4626(0x250)](_0x426686){const _0x5bbe48=_0x3e4626;if(_0x426686[_0x5bbe48(0x229)]===_0x445f8b[_0x5bbe48(0x1d2)]){const _0x11c4d0=await this[_0x5bbe48(0x1dd)][_0x5bbe48(0x23f)](this[_0x5bbe48(0x1da)],_0x426686['id'])[_0x5bbe48(0x247)]();return{'id':_0x5bbe48(0x228),'uiId':_0x5bbe48(0x228),'label':_0x5bbe48(0x203),'type':_0x426686[_0x5bbe48(0x229)],'content':_0x11c4d0[_0x5bbe48(0x1e8)],'hidden':this[_0x5bbe48(0x1f7)][_0x5bbe48(0x1fc)](_0x5bbe48(0x228)),'version':_0x11c4d0[_0x5bbe48(0x1f6)]?.[_0x5bbe48(0x21f)],'sessionId':_0x11c4d0[_0x5bbe48(0x1f6)]?.[_0x5bbe48(0x1de)]};}return{'id':_0x426686['id'],'uiId':_0x426686['id'],'label':_0x426686[_0x5bbe48(0x1f6)]?.[_0x5bbe48(0x1c8)]||_0x426686[_0x5bbe48(0x1e3)]||_0x426686[_0x5bbe48(0x1f8)]||_0x426686['id'],'type':_0x426686[_0x5bbe48(0x229)],..._0x426686?.[_0x5bbe48(0x1f6)]?.[_0x5bbe48(0x251)]?{'resourceId':_0x426686[_0x5bbe48(0x1f6)]?.[_0x5bbe48(0x251)]}:{}};}[_0x3e4626(0x20b)](){const _0x56da10=_0x3e4626;return new Map(this[_0x56da10(0x1f7)]);}[_0x3e4626(0x248)](_0x199352){const _0x32a7b5=_0x3e4626,_0x17c2a9=this[_0x32a7b5(0x1c4)][_0x32a7b5(0x1d3)](_0x199352);_0x17c2a9?.[_0x32a7b5(0x241)]||this[_0x32a7b5(0x21d)](_0x199352);}[_0x3e4626(0x1f9)](){const _0x4bad9e=_0x3e4626;if(0x0===this[_0x4bad9e(0x1c4)][_0x4bad9e(0x200)])return;for(const _0xb694ac of this[_0x4bad9e(0x1c4)][_0x4bad9e(0x1ff)]())this[_0x4bad9e(0x21d)](_0xb694ac[_0x4bad9e(0x204)]);const _0x342893=this[_0x4bad9e(0x1f7)][_0x4bad9e(0x1d3)](_0x4bad9e(0x228))||this[_0x4bad9e(0x1c4)][_0x4bad9e(0x1d3)](_0x4bad9e(0x228));_0x342893&&this[_0x4bad9e(0x252)]({..._0x342893,'isReadOnly':!0x0,'hidden':!0x0});}[_0x3e4626(0x1e1)](_0x5f2581){const _0x2c57ba=_0x3e4626;for(const _0x42ba21 of _0x5f2581[_0x2c57ba(0x1ff)]())this[_0x2c57ba(0x22d)](_0x42ba21);this[_0x2c57ba(0x1f9)](),this[_0x2c57ba(0x22b)](_0x2c57ba(0x233),{'contextItems':Array[_0x2c57ba(0x201)](this[_0x2c57ba(0x20b)]()[_0x2c57ba(0x1ff)]())});}[_0x3e4626(0x245)](){const _0x40b965=_0x3e4626;return this[_0x40b965(0x1c4)][_0x40b965(0x1fc)](_0x40b965(0x228));}[_0x3e4626(0x216)](){const _0x42b7fa=_0x3e4626;return this[_0x42b7fa(0x1c4)][_0x42b7fa(0x1fc)](_0x42b7fa(0x236));}[_0x3e4626(0x1c7)](){const _0x13ce1e=_0x3e4626;return this[_0x13ce1e(0x1f7)][_0x13ce1e(0x1fc)](_0x13ce1e(0x228));}static[_0x3e4626(0x1d7)](_0x14d5e1){const _0x31c0cd=_0x3e4626;return Array[_0x31c0cd(0x201)](_0x14d5e1[_0x31c0cd(0x1ff)]())[_0x31c0cd(0x23a)](_0x320f97=>this[_0x31c0cd(0x1db)](_0x320f97))[_0x31c0cd(0x235)](_0x58d0af=>null!==_0x58d0af);}async[_0x3e4626(0x1fd)](_0x7f461,_0x4ae7ae,_0x27c8c9=_0x445f8b[_0x3e4626(0x243)]){const _0x2f772f=_0x3e4626,_0x54e36c=_0x2f772f(0x22e)+_0x113b57();this[_0x2f772f(0x224)](_0x54e36c);try{await Promise[_0x2f772f(0x227)](_0x7f461[_0x2f772f(0x23a)](async _0x137b79=>{const _0x2576d7=_0x2f772f,_0x5a7a89=_0x2576d7(0x1e7)+_0x113b57(),_0x26a4a2=_0x233d96(_0x137b79[_0x2576d7(0x1e3)]);try{this[_0x2576d7(0x252)]({'type':_0x27c8c9,'label':_0x4ae7ae?.[_0x2576d7(0x1c8)]||_0x26a4a2,'uiId':_0x5a7a89,'resourceId':_0x4ae7ae?.[_0x2576d7(0x251)]},!0x0);const _0x555d7b=this[_0x2576d7(0x1dd)][_0x2576d7(0x212)](this[_0x2576d7(0x1da)],_0x137b79,_0x4ae7ae);this[_0x2576d7(0x207)][_0x2576d7(0x23b)](_0x5a7a89,_0x555d7b[_0x2576d7(0x209)]);const {id:_0x748ca0}=await _0x555d7b[_0x2576d7(0x1f0)]();this[_0x2576d7(0x207)][_0x2576d7(0x1ec)](_0x5a7a89),this[_0x2576d7(0x1f5)]({'type':_0x27c8c9,'id':_0x748ca0,'label':_0x4ae7ae?.[_0x2576d7(0x1c8)]||_0x26a4a2,'uiId':_0x5a7a89,'resourceId':_0x4ae7ae?.[_0x2576d7(0x251)]},!0x1);}catch(_0x3e081a){this[_0x2576d7(0x207)][_0x2576d7(0x1ec)](_0x5a7a89);if(!(_0x3e081a instanceof _0x28d55c&&_0x3e081a[_0x2576d7(0x22a)][_0x2576d7(0x1df)](_0x2576d7(0x1ca)))){const _0x16ddb4=_0x377805[_0x2576d7(0x1d3)](_0x3e081a[_0x2576d7(0x239)])||_0x2576d7(0x232),_0x1414e7=new _0x28d55c(_0x16ddb4,null,{'fileName':_0x26a4a2,..._0x3e081a});_0x1414e7[_0x2576d7(0x23c)]=_0x3e081a[_0x2576d7(0x23c)],this[_0x2576d7(0x22b)](_0x2576d7(0x1ee),{'error':_0x1414e7});}this[_0x2576d7(0x21d)](_0x5a7a89);}}));}finally{this[_0x2f772f(0x202)](_0x54e36c);}}[_0x3e4626(0x222)](_0x2ea4e8){const _0x110027=_0x3e4626;if(this[_0x110027(0x245)]())return;const _0x1f3e44={'type':_0x445f8b[_0x110027(0x1d2)],'uiId':_0x110027(0x228),'label':_0x2ea4e8,'isReadOnly':this[_0x110027(0x1f7)][_0x110027(0x1fc)](_0x110027(0x228)),'hidden':this[_0x110027(0x1f7)][_0x110027(0x1fc)](_0x110027(0x228))};this[_0x110027(0x252)](_0x1f3e44);}async[_0x3e4626(0x24d)](_0x30e684,_0x78aade,_0x141973,_0x26980c){const _0x2e6ebd=_0x3e4626,_0x9ad16f=this[_0x2e6ebd(0x1c4)][_0x2e6ebd(0x1d3)](_0x2e6ebd(0x228));if(_0x9ad16f&&_0x30e684){_0x9ad16f[_0x2e6ebd(0x236)]=_0x26980c?_0x26980c[_0x2e6ebd(0x23a)](_0x47bb69=>({'start':_0x47bb69[_0x2e6ebd(0x1e4)],'end':_0x47bb69[_0x2e6ebd(0x1ef)]})):[];try{if(_0x9ad16f[_0x2e6ebd(0x21f)]===_0x78aade)return;const {id:_0xbce828}=await this[_0x2e6ebd(0x1dd)][_0x2e6ebd(0x230)](this[_0x2e6ebd(0x1da)],_0x30e684,{'version':_0x78aade,'sessionId':_0x141973})[_0x2e6ebd(0x1f0)]();_0x9ad16f['id']=_0xbce828,_0x9ad16f[_0x2e6ebd(0x1e8)]=_0x30e684,_0x9ad16f[_0x2e6ebd(0x21f)]=_0x78aade,_0x9ad16f[_0x2e6ebd(0x1de)]=_0x141973;}catch(_0x46d8db){const _0x5539c6=new _0x28d55c(_0x2e6ebd(0x21c),null);_0x5539c6[_0x2e6ebd(0x23c)]=_0x46d8db[_0x2e6ebd(0x23c)],this[_0x2e6ebd(0x22b)](_0x2e6ebd(0x1ee),{'error':_0x5539c6});}}}[_0x3e4626(0x20e)](_0x5d38c2){const _0xbbb51=_0x3e4626;this[_0xbbb51(0x252)]({'type':_0x445f8b[_0xbbb51(0x21a)],'label':_0x5d38c2,'uiId':_0xbbb51(0x236),'content':_0x5d38c2});}[_0x3e4626(0x1d0)](){const _0x349689=_0x3e4626;this[_0x349689(0x21d)](_0x349689(0x236));}async[_0x3e4626(0x246)](_0x2fedbd,_0xc10e87){const _0x531089=_0x3e4626,_0x518f33=_0x531089(0x223)+_0x113b57();this[_0x531089(0x224)](_0x518f33);const _0x1e44b1=_0x531089(0x223)+_0x113b57();try{this[_0x531089(0x252)]({'type':_0x445f8b[_0x531089(0x23d)],'label':_0xc10e87?.[_0x531089(0x1c8)]||_0x2fedbd,'uiId':_0x1e44b1,'resourceId':_0xc10e87?.[_0x531089(0x251)]},!0x0);const _0xfe0a53=this[_0x531089(0x1dd)][_0x531089(0x237)](this[_0x531089(0x1da)],_0x2fedbd,_0xc10e87);this[_0x531089(0x207)][_0x531089(0x23b)](_0x1e44b1,_0xfe0a53[_0x531089(0x209)]);const {id:_0x29eace}=await _0xfe0a53[_0x531089(0x1f0)]();this[_0x531089(0x207)][_0x531089(0x1ec)](_0x1e44b1),this[_0x531089(0x1f5)]({'type':_0x445f8b[_0x531089(0x23d)],'id':_0x29eace,'label':_0xc10e87?.[_0x531089(0x1c8)]||_0x2fedbd,'uiId':_0x1e44b1,'resourceId':_0xc10e87?.[_0x531089(0x251)]},!0x1);}catch(_0x13a0f4){this[_0x531089(0x207)][_0x531089(0x1ec)](_0x1e44b1),(_0x13a0f4[_0x531089(0x22a)][_0x531089(0x1df)](_0x531089(0x1ca))||this[_0x531089(0x22b)](_0x531089(0x1ee),{'error':new _0x28d55c(_0x531089(0x21b),this,{'url':_0x2fedbd,'originalError':_0x13a0f4}),'url':_0x2fedbd}),this[_0x531089(0x21d)](_0x1e44b1));}finally{this[_0x531089(0x202)](_0x518f33);}}async[_0x3e4626(0x1dc)](_0xd7f9cd,_0xd47124,_0x3acc0d){const _0x3015cb=_0x3e4626,_0xac4d23=this[_0x3015cb(0x20d)][_0x3015cb(0x240)][_0x3015cb(0x1e6)](_0x4c4d9e=>_0x4c4d9e['id']===_0xd7f9cd);if(!_0xac4d23)return this[_0x3015cb(0x22b)](_0x3015cb(0x1ee),{'error':new _0x28d55c(_0x3015cb(0x1ce),this,{'sourceId':_0xd7f9cd}),'sourceId':_0xd7f9cd}),[];try{const _0x1ff61e=(await _0xac4d23[_0x3015cb(0x1ed)](_0xd47124))[_0x3015cb(0x23a)](_0x105dd4=>{const _0x225219=_0x3015cb,_0x3246e5=this[_0x225219(0x1cd)](_0x105dd4['id']);return{..._0x105dd4,'isInContext':_0x3246e5};});return _0xac4d23[_0x3015cb(0x24f)]=_0x1ff61e,this[_0x3015cb(0x22b)](_0x3015cb(0x20f),{'sourceId':_0xd7f9cd,'source':_0xac4d23,'resources':_0x1ff61e,'uid':_0x3acc0d}),_0x1ff61e;}catch(_0x427271){return this[_0x3015cb(0x22b)](_0x3015cb(0x1ee),{'error':new _0x28d55c(_0x3015cb(0x1e5),this,{'sourceId':_0xd7f9cd,'originalError':_0x427271}),'sourceId':_0xd7f9cd,'sourceLabel':_0xac4d23[_0x3015cb(0x1c8)]}),[];}}async[_0x3e4626(0x22c)](_0x4ba1ed,_0x5125e1){const _0x1d888f=_0x3e4626;if(this[_0x1d888f(0x1cd)](_0x5125e1['id']))return;let _0x27b056=_0x5125e1[_0x1d888f(0x1cb)];if(!_0x27b056&&_0x4ba1ed[_0x1d888f(0x205)])try{_0x27b056=await _0x4ba1ed[_0x1d888f(0x205)](_0x5125e1['id']);}catch(_0x361ec6){return void this[_0x1d888f(0x22b)](_0x1d888f(0x1ee),{'error':new _0x28d55c(_0x1d888f(0x217),this,{'resourceId':_0x5125e1['id'],'sourceId':_0x4ba1ed['id'],'originalError':_0x361ec6}),'resourceId':_0x5125e1['id'],'sourceId':_0x4ba1ed['id']});}if(_0x27b056)switch(_0x5125e1[_0x1d888f(0x229)]){case _0x445f8b[_0x1d888f(0x23d)]:if(_0x1d888f(0x23e)!=typeof _0x27b056)return void this[_0x1d888f(0x22b)](_0x1d888f(0x1ee),{'error':new _0x28d55c(_0x1d888f(0x221),this,{'resourceId':_0x5125e1['id'],'sourceId':_0x4ba1ed['id'],'expectedType':_0x1d888f(0x23e),'actualType':typeof _0x27b056}),'resourceId':_0x5125e1['id'],'sourceId':_0x4ba1ed['id']});await this[_0x1d888f(0x246)](_0x27b056,{'label':_0x5125e1[_0x1d888f(0x1c8)],'resourceId':_0x5125e1['id']});break;case _0x445f8b[_0x1d888f(0x243)]:if(!(_0x27b056 instanceof File))return void this[_0x1d888f(0x22b)](_0x1d888f(0x1ee),{'error':new _0x28d55c(_0x1d888f(0x221),this,{'resourceId':_0x5125e1['id'],'sourceId':_0x4ba1ed['id'],'expectedType':_0x1d888f(0x226),'actualType':typeof _0x27b056}),'resourceId':_0x5125e1['id'],'sourceId':_0x4ba1ed['id']});await this[_0x1d888f(0x1fd)]([_0x27b056],{'label':_0x5125e1[_0x1d888f(0x1c8)],'resourceId':_0x5125e1['id']});break;case _0x445f8b[_0x1d888f(0x1cc)]:if(_0x1d888f(0x20c)!=typeof _0x27b056||!(_0x1d888f(0x1e8)in _0x27b056)||!(_0x1d888f(0x229)in _0x27b056))return void this[_0x1d888f(0x22b)](_0x1d888f(0x1ee),{'error':new _0x28d55c(_0x1d888f(0x221),this,{'resourceId':_0x5125e1['id'],'sourceId':_0x4ba1ed['id'],'expectedType':_0x1d888f(0x1d4),'actualType':typeof _0x27b056}),'resourceId':_0x5125e1['id'],'sourceId':_0x4ba1ed['id']});_0x27b056=AIChatContext[_0x1d888f(0x231)](_0x27b056,_0x5125e1[_0x1d888f(0x1c8)]),await this[_0x1d888f(0x1fd)]([_0x27b056],{'label':_0x5125e1[_0x1d888f(0x1c8)],'resourceId':_0x5125e1['id']},_0x445f8b[_0x1d888f(0x1cc)]);break;default:this[_0x1d888f(0x22b)](_0x1d888f(0x1ee),{'error':new _0x28d55c(_0x1d888f(0x219),this,{'resourceId':_0x5125e1['id'],'sourceId':_0x4ba1ed['id'],'resourceType':_0x5125e1[_0x1d888f(0x229)]}),'resourceId':_0x5125e1['id'],'sourceId':_0x4ba1ed['id']});}else this[_0x1d888f(0x22b)](_0x1d888f(0x1ee),{'error':new _0x28d55c(_0x1d888f(0x1fa),this,{'resourceId':_0x5125e1['id'],'sourceId':_0x4ba1ed['id']}),'resourceId':_0x5125e1['id'],'sourceId':_0x4ba1ed['id']});}static[_0x3e4626(0x231)](_0x37d074,_0x48683f){const _0x4414b0=_0x3e4626;switch(_0x37d074[_0x4414b0(0x229)]){case _0x2ff579[_0x4414b0(0x238)]:return new File([_0x37d074[_0x4414b0(0x1e8)]],_0x48683f,{'type':_0x4414b0(0x208)});case _0x2ff579[_0x4414b0(0x1cf)]:return new File([_0x37d074[_0x4414b0(0x1e8)]],_0x48683f,{'type':_0x4414b0(0x1e2)});default:return new File([_0x37d074[_0x4414b0(0x1e8)]],_0x48683f,{'type':_0x4414b0(0x225)});}}static[_0x3e4626(0x1db)](_0xdee7c1){const _0x2346ed=_0x3e4626;switch(_0xdee7c1[_0x2346ed(0x229)]){case _0x445f8b[_0x2346ed(0x243)]:return{'type':_0x445f8b[_0x2346ed(0x243)],'id':_0xdee7c1['id']};case _0x445f8b[_0x2346ed(0x23d)]:return{'type':_0x445f8b[_0x2346ed(0x23d)],'id':_0xdee7c1['id']};case _0x445f8b[_0x2346ed(0x1d2)]:return{'type':_0x445f8b[_0x2346ed(0x1d2)],'id':_0xdee7c1['id'],..._0xdee7c1[_0x2346ed(0x236)]?.[_0x2346ed(0x21e)]&&{'selection':_0xdee7c1[_0x2346ed(0x236)]}};case _0x445f8b[_0x2346ed(0x1cc)]:return{'type':_0x445f8b[_0x2346ed(0x243)],'id':_0xdee7c1['id']};default:return null;}}[_0x3e4626(0x252)](_0x144885,_0x2d6329=!0x1){const _0x11b8f9=_0x3e4626;if(this[_0x11b8f9(0x1c4)][_0x11b8f9(0x23b)](_0x144885[_0x11b8f9(0x204)],_0x144885),_0x144885[_0x11b8f9(0x1d9)]||this[_0x11b8f9(0x22b)](_0x11b8f9(0x214),{'contextItem':_0x144885,'isLoading':_0x2d6329}),_0x11b8f9(0x228)===_0x144885[_0x11b8f9(0x204)]&&this[_0x11b8f9(0x1d1)](),_0x144885[_0x11b8f9(0x251)]){const _0x45503a=this[_0x11b8f9(0x1d5)](_0x144885[_0x11b8f9(0x251)]);_0x45503a&&_0x45503a[_0x11b8f9(0x1c9)](_0x25e511=>{const _0x36028b=_0x11b8f9;this[_0x36028b(0x20a)](_0x25e511,_0x144885[_0x36028b(0x251)],!0x0);});}}[_0x3e4626(0x21d)](_0x28b0b1){const _0x52d1b9=_0x3e4626,_0x4a91dc=this[_0x52d1b9(0x1c4)][_0x52d1b9(0x1d3)](_0x28b0b1),_0xe06740=this[_0x52d1b9(0x207)][_0x52d1b9(0x1d3)](_0x28b0b1);if(_0xe06740&&(_0xe06740[_0x52d1b9(0x1c5)](),this[_0x52d1b9(0x207)][_0x52d1b9(0x1ec)](_0x28b0b1)),_0x4a91dc?.[_0x52d1b9(0x251)]){const _0x1f83e3=this[_0x52d1b9(0x1d5)](_0x4a91dc[_0x52d1b9(0x251)]);_0x1f83e3&&_0x1f83e3[_0x52d1b9(0x1c9)](_0x1d191d=>{const _0x44943f=_0x52d1b9;this[_0x44943f(0x20a)](_0x1d191d,_0x4a91dc[_0x44943f(0x251)],!0x1);});}this[_0x52d1b9(0x1c4)][_0x52d1b9(0x1ec)](_0x28b0b1),this[_0x52d1b9(0x22b)](_0x52d1b9(0x1ea),{'uiId':_0x28b0b1,'type':_0x4a91dc?.[_0x52d1b9(0x229)]}),_0x52d1b9(0x228)===_0x28b0b1&&this[_0x52d1b9(0x1d1)]();}[_0x3e4626(0x1f5)](_0x55e6b0,_0x291973){const _0x2e3323=_0x3e4626;if(this[_0x2e3323(0x1c4)][_0x2e3323(0x1fc)](_0x55e6b0[_0x2e3323(0x204)])&&(this[_0x2e3323(0x1c4)][_0x2e3323(0x23b)](_0x55e6b0[_0x2e3323(0x204)],_0x55e6b0),this[_0x2e3323(0x22b)](_0x2e3323(0x213),{'contextItem':_0x55e6b0,'isLoading':_0x291973}),_0x55e6b0[_0x2e3323(0x251)])){const _0x71c000=this[_0x2e3323(0x1d5)](_0x55e6b0[_0x2e3323(0x251)]);_0x71c000&&_0x71c000[_0x2e3323(0x1c9)](_0x47bdb5=>{const _0x16da1f=_0x2e3323;this[_0x16da1f(0x20a)](_0x47bdb5,_0x55e6b0[_0x16da1f(0x251)],!0x0);});}}[_0x3e4626(0x22d)](_0xb2e9a){const _0x803cf=_0x3e4626;this[_0x803cf(0x1f7)][_0x803cf(0x23b)](_0xb2e9a[_0x803cf(0x204)],_0xb2e9a);}[_0x3e4626(0x1d6)](){const _0x2af20c=_0x3e4626;this[_0x2af20c(0x20d)]={'document':{'enabled':!0x1!==this[_0x2af20c(0x24a)]?.[_0x2af20c(0x1c6)]?.[_0x2af20c(0x220)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x2af20c(0x24a)]?.[_0x2af20c(0x1f2)]?.[_0x2af20c(0x220)]},'files':{'enabled':!0x1!==this[_0x2af20c(0x24a)]?.[_0x2af20c(0x1f4)]?.[_0x2af20c(0x220)]},'sources':this[_0x2af20c(0x1eb)]()},this[_0x2af20c(0x22b)](_0x2af20c(0x210),{'options':this[_0x2af20c(0x20d)]});}[_0x3e4626(0x1eb)](){const _0x3e0b3b=_0x3e4626;return this[_0x3e0b3b(0x24a)]?.[_0x3e0b3b(0x240)]?.[_0x3e0b3b(0x23a)](_0x43f587=>({..._0x43f587,'resources':[]}))??[];}[_0x3e4626(0x1d1)](){const _0x43c9ee=_0x3e4626,_0x1ca253=this[_0x43c9ee(0x245)]()||this[_0x43c9ee(0x1c7)]();this[_0x43c9ee(0x20d)][_0x43c9ee(0x1c6)][_0x43c9ee(0x24e)]=_0x1ca253,this[_0x43c9ee(0x22b)](_0x43c9ee(0x210),{'options':this[_0x43c9ee(0x20d)]});}[_0x3e4626(0x1cd)](_0x52b12f){const _0x81b540=_0x3e4626;for(const _0xcb3412 of this[_0x81b540(0x1c4)][_0x81b540(0x1ff)]())if(_0xcb3412[_0x81b540(0x251)]===_0x52b12f)return!0x0;for(const _0x39615d of this[_0x81b540(0x1f7)][_0x81b540(0x1ff)]())if(_0x39615d[_0x81b540(0x251)]===_0x52b12f)return!0x0;return!0x1;}[_0x3e4626(0x1d5)](_0x4b31d4){const _0x3a455f=_0x3e4626,_0x3ac67e=[];for(const _0x1d86de of this[_0x3a455f(0x20d)][_0x3a455f(0x240)]){_0x1d86de[_0x3a455f(0x24f)][_0x3a455f(0x1e6)](_0x2f6c5b=>_0x2f6c5b['id']===_0x4b31d4)&&_0x3ac67e[_0x3a455f(0x1fe)](_0x1d86de['id']);}return 0x0===_0x3ac67e[_0x3a455f(0x21e)]?null:_0x3ac67e;}[_0x3e4626(0x20a)](_0x469b51,_0x44fbe7,_0x4a322b){const _0x5dd699=_0x3e4626,_0x9be18e=this[_0x5dd699(0x20d)][_0x5dd699(0x240)][_0x5dd699(0x1e6)](_0x39fc4b=>_0x39fc4b['id']===_0x469b51);if(!_0x9be18e)return;const _0x37f497=_0x9be18e[_0x5dd699(0x24f)][_0x5dd699(0x1e6)](_0x3c4cbc=>_0x3c4cbc['id']===_0x44fbe7);_0x37f497&&(_0x37f497[_0x5dd699(0x1e0)]=_0x4a322b,this[_0x5dd699(0x22b)](_0x5dd699(0x244),{'sourceId':_0x469b51,'resourceId':_0x44fbe7,'isInContext':_0x4a322b}));}[_0x3e4626(0x224)](_0x324b51){const _0x5e84d4=_0x3e4626;this[_0x5e84d4(0x218)][_0x5e84d4(0x23b)](_0x324b51,!0x0),this[_0x5e84d4(0x218)][_0x5e84d4(0x200)]&&this[_0x5e84d4(0x22b)](_0x5e84d4(0x234),{'isUploadInProgress':!0x0});}[_0x3e4626(0x202)](_0xf65a18){const _0x19c2f9=_0x3e4626;this[_0x19c2f9(0x218)][_0x19c2f9(0x1ec)](_0xf65a18),0x0===this[_0x19c2f9(0x218)][_0x19c2f9(0x200)]&&this[_0x19c2f9(0x22b)](_0x19c2f9(0x234),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x328029=_0x18de;(function(_0x1970f0,_0x4796aa){const _0x26bea5=_0x18de,_0x70e460=_0x1970f0();while(!![]){try{const _0x53654f=parseInt(_0x26bea5(0x13b))/0x1+parseInt(_0x26bea5(0xf8))/0x2+parseInt(_0x26bea5(0xdc))/0x3*(parseInt(_0x26bea5(0xef))/0x4)+parseInt(_0x26bea5(0x137))/0x5+-parseInt(_0x26bea5(0x14c))/0x6*(-parseInt(_0x26bea5(0xd8))/0x7)+parseInt(_0x26bea5(0x156))/0x8+parseInt(_0x26bea5(0xf7))/0x9*(-parseInt(_0x26bea5(0xf9))/0xa);if(_0x53654f===_0x4796aa)break;else _0x70e460['push'](_0x70e460['shift']());}catch(_0x48c524){_0x70e460['push'](_0x70e460['shift']());}}}(_0x3177,0x4fac8));import{CKEditorError as _0x9e7702,ObservableMixin as _0x45dd7b,uid as _0x1f91d7}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x558573,AIContextTextResourceType as _0x26de67}from'../../aicore/model/aicontext.js';import{escape as _0x3b1600}from'es-toolkit/compat';function _0x3177(){const _0x2360d7=['all','_finishUploadOperation','addUrlToContext','populateFromMessage','1608712jhTQPq','ai-chat-resource-load-failed','HTML','abort','object','set','_createContextItemFromContent','Current\x20document','code','isHidden','contextItemLoadingEnded','contextItemAdded','stack','isSelectionInContext','start','removeSelectionFromContext','size','3702202wGJeNL','resourceStateChanged','addCurrentDocumentToContext','getId','39oVejZR','url','enabled','uploadFile','_addContextItem','attributes','length','urls','uploadDocument','removeFromContext','_ongoingUploadOperations','SELECTION','FILE','File','string','error','_removeContextItem','document','clearPendingContextItems','88524IkzoXy','uploadProgressChanged','current-document','hidden','ai-chat-file-upload-failed','end','mapContextItemsToRequestData','map','9tPBoWg','883578MQXZXY','16422660CZwLDe','ai-chat-document-upload-failed','getDocument','ai-chat-context-invalid-data','type','_connector','getSentContextItems','ai-chat-source-not-found','fetchDocument','file-','_ownerId','text/html','ai-chat-source-resources-load-failed','addContextOptionsChanged','from','_conversationContextItems','DOCUMENT','_startUploadOperation','URL','startsWith','ai-chat-resource-no-data','addSelectionToContext','_isResourceInContext','_findSourceIdsByResourceId','_pendingContextItems','loadSourceResources','forEach','_addContextOptionsState','content','ai-chat-url-upload-failed','getData','resources','sources','MARKDOWN','fire','_config','isCurrentDocumentInConversation','uploadUrl','addFilesToContext','isInContext','_finishContextItemLoading','_getCustomSourcesInitialState','message','resourceId','addToConversationContext','_setAddContextOptionsDefaultState','updateCurrentDocument','_convertTextResourceToFile','uiId','data','TEXT','sourceResourcesLoaded','init','selection','_updateResourceInContextState','label','url-','getResources','ai-request-aborted','filter','text/plain','ai-chat-context-unsupported-type','424930uqGFbl','files','find','name','424157Fnzbpi','contextItemRemoved','isCurrentDocumentInContext','push','_addToConversationContextItem','_toggleAddCurrentDocumentOptionVisibility','has','files-','_mapContextItemToRequestData','version','abortController','isReadOnly','object\x20with\x20content\x20and\x20type\x20properties','delete','get','getPendingContextItems','sessionId','6PwSKKE','text/markdown','addResourceToContext','_ongoingUploads','contextSent','values'];_0x3177=function(){return _0x2360d7;};return _0x3177();}import{errorsMap as _0x431612}from'../../errorsmap.js';function _0x18de(_0x390cf1,_0x3d3b35){const _0x317707=_0x3177();return _0x18de=function(_0x18de3d,_0x416491){_0x18de3d=_0x18de3d-0xd0;let _0x175e69=_0x317707[_0x18de3d];return _0x175e69;},_0x18de(_0x390cf1,_0x3d3b35);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x328029(0xd2),_0x328029(0x13c),_0x328029(0xd1),_0x328029(0x150),_0x328029(0xeb),_0x328029(0x106),_0x328029(0x12c),_0x328029(0xd9),_0x328029(0xf0)];export class AIChatContext extends _0x45dd7b(){[_0x328029(0xfe)];[_0x328029(0x11c)];[_0x328029(0x103)];constructor({connector:_0x19d7f1,config:_0x24d00d,ownerId:_0x386b14}){const _0x1212d6=_0x328029;super(),this[_0x1212d6(0xfe)]=_0x19d7f1,this[_0x1212d6(0x11c)]=_0x24d00d,this[_0x1212d6(0x103)]=_0x386b14;}[_0x328029(0x12d)](){const _0x528fbe=_0x328029;this[_0x528fbe(0x111)]=new Map(),this[_0x528fbe(0x108)]=new Map(),this[_0x528fbe(0x14f)]=new Map(),this[_0x528fbe(0xe6)]=new Map(),this[_0x528fbe(0x126)]();}[_0x328029(0x14a)](){const _0x3e9fff=_0x328029;return this[_0x3e9fff(0x111)];}async[_0x328029(0x155)](_0x488c13){const _0x427fa1=_0x328029,_0x5ad11a=await this[_0x427fa1(0x15c)](_0x488c13);return this[_0x427fa1(0x13f)](_0x5ad11a),_0x427fa1(0xf1)===_0x5ad11a[_0x427fa1(0x129)]&&this[_0x427fa1(0x140)](),_0x5ad11a;}async[_0x328029(0x15c)](_0x239e0d){const _0x52ec24=_0x328029;if(_0x239e0d[_0x52ec24(0xfd)]===_0x558573[_0x52ec24(0x109)]){const _0x4b8e3a=await this[_0x52ec24(0xfe)][_0x52ec24(0x101)](this[_0x52ec24(0x103)],_0x239e0d['id'])[_0x52ec24(0xfb)]();return{'id':_0x52ec24(0xf1),'uiId':_0x52ec24(0xf1),'label':_0x52ec24(0x15d),'type':_0x239e0d[_0x52ec24(0xfd)],'content':_0x4b8e3a[_0x52ec24(0x115)],'hidden':this[_0x52ec24(0x108)][_0x52ec24(0x141)](_0x52ec24(0xf1)),'version':_0x4b8e3a[_0x52ec24(0xe1)]?.[_0x52ec24(0x144)],'sessionId':_0x4b8e3a[_0x52ec24(0xe1)]?.[_0x52ec24(0x14b)]};}return{'id':_0x239e0d['id'],'uiId':_0x239e0d['id'],'label':_0x239e0d[_0x52ec24(0xe1)]?.[_0x52ec24(0x130)]||_0x239e0d[_0x52ec24(0x13a)]||_0x239e0d[_0x52ec24(0xdd)]||_0x239e0d['id'],'type':_0x239e0d[_0x52ec24(0xfd)],..._0x239e0d?.[_0x52ec24(0xe1)]?.[_0x52ec24(0x124)]?{'resourceId':_0x239e0d[_0x52ec24(0xe1)]?.[_0x52ec24(0x124)]}:{}};}[_0x328029(0xff)](){const _0x3fa13b=_0x328029;return new Map(this[_0x3fa13b(0x108)]);}[_0x328029(0xe5)](_0x4b09bd){const _0x4c6225=_0x328029,_0x56b343=this[_0x4c6225(0x111)][_0x4c6225(0x149)](_0x4b09bd);_0x56b343?.[_0x4c6225(0x146)]||this[_0x4c6225(0xec)](_0x4b09bd);}[_0x328029(0xee)](){const _0x2cfd62=_0x328029;if(0x0===this[_0x2cfd62(0x111)][_0x2cfd62(0xd7)])return;for(const _0x281deb of this[_0x2cfd62(0x111)][_0x2cfd62(0x151)]())this[_0x2cfd62(0xec)](_0x281deb[_0x2cfd62(0x129)]);const _0x11f564=this[_0x2cfd62(0x108)][_0x2cfd62(0x149)](_0x2cfd62(0xf1))||this[_0x2cfd62(0x111)][_0x2cfd62(0x149)](_0x2cfd62(0xf1));_0x11f564&&this[_0x2cfd62(0xe0)]({..._0x11f564,'isReadOnly':!0x0,'hidden':!0x0});}[_0x328029(0x125)](_0x265e5b){const _0x30dfcd=_0x328029;for(const _0x4d4c94 of _0x265e5b[_0x30dfcd(0x151)]())this[_0x30dfcd(0x13f)](_0x4d4c94);this[_0x30dfcd(0xee)](),this[_0x30dfcd(0x11b)](_0x30dfcd(0x150),{'contextItems':Array[_0x30dfcd(0x107)](this[_0x30dfcd(0xff)]()[_0x30dfcd(0x151)]())});}[_0x328029(0x13d)](){const _0x9212b8=_0x328029;return this[_0x9212b8(0x111)][_0x9212b8(0x141)](_0x9212b8(0xf1));}[_0x328029(0xd4)](){const _0x435128=_0x328029;return this[_0x435128(0x111)][_0x435128(0x141)](_0x435128(0x12e));}[_0x328029(0x11d)](){const _0x279cbf=_0x328029;return this[_0x279cbf(0x108)][_0x279cbf(0x141)](_0x279cbf(0xf1));}static[_0x328029(0xf5)](_0x122ab4){const _0x313ced=_0x328029;return Array[_0x313ced(0x107)](_0x122ab4[_0x313ced(0x151)]())[_0x313ced(0xf6)](_0x1863e4=>this[_0x313ced(0x143)](_0x1863e4))[_0x313ced(0x134)](_0x459969=>null!==_0x459969);}async[_0x328029(0x11f)](_0x160151,_0x236309,_0x1d1465=_0x558573[_0x328029(0xe8)]){const _0x47cd6f=_0x328029,_0x454644=_0x47cd6f(0x142)+_0x1f91d7();this[_0x47cd6f(0x10a)](_0x454644);try{await Promise[_0x47cd6f(0x152)](_0x160151[_0x47cd6f(0xf6)](async _0x265a77=>{const _0x393cf6=_0x47cd6f,_0x417fce=_0x393cf6(0x102)+_0x1f91d7(),_0x2a4bfd=_0x3b1600(_0x265a77[_0x393cf6(0x13a)]);try{this[_0x393cf6(0xe0)]({'type':_0x1d1465,'label':_0x236309?.[_0x393cf6(0x130)]||_0x2a4bfd,'uiId':_0x417fce,'resourceId':_0x236309?.[_0x393cf6(0x124)]},!0x0);const _0x1f5a15=this[_0x393cf6(0xfe)][_0x393cf6(0xdf)](this[_0x393cf6(0x103)],_0x265a77,_0x236309);this[_0x393cf6(0x14f)][_0x393cf6(0x15b)](_0x417fce,_0x1f5a15[_0x393cf6(0x145)]);const {id:_0x2949c2}=await _0x1f5a15[_0x393cf6(0xdb)]();this[_0x393cf6(0x14f)][_0x393cf6(0x148)](_0x417fce),this[_0x393cf6(0x121)]({'type':_0x1d1465,'id':_0x2949c2,'label':_0x236309?.[_0x393cf6(0x130)]||_0x2a4bfd,'uiId':_0x417fce,'resourceId':_0x236309?.[_0x393cf6(0x124)]},!0x1);}catch(_0x5f061a){this[_0x393cf6(0x14f)][_0x393cf6(0x148)](_0x417fce);if(!(_0x5f061a instanceof _0x9e7702&&_0x5f061a[_0x393cf6(0x123)][_0x393cf6(0x10c)](_0x393cf6(0x133)))){const _0x473ff9=_0x431612[_0x393cf6(0x149)](_0x5f061a[_0x393cf6(0x15e)])||_0x393cf6(0xf3),_0x55c76f=new _0x9e7702(_0x473ff9,null,{'fileName':_0x2a4bfd,..._0x5f061a});_0x55c76f[_0x393cf6(0xd3)]=_0x5f061a[_0x393cf6(0xd3)],this[_0x393cf6(0x11b)](_0x393cf6(0xeb),{'error':_0x55c76f});}this[_0x393cf6(0xec)](_0x417fce);}}));}finally{this[_0x47cd6f(0x153)](_0x454644);}}[_0x328029(0xda)](_0x2d8fd0){const _0x300689=_0x328029;if(this[_0x300689(0x13d)]())return;const _0x4bc1fb={'type':_0x558573[_0x300689(0x109)],'uiId':_0x300689(0xf1),'label':_0x2d8fd0,'isReadOnly':this[_0x300689(0x108)][_0x300689(0x141)](_0x300689(0xf1)),'hidden':this[_0x300689(0x108)][_0x300689(0x141)](_0x300689(0xf1))};this[_0x300689(0xe0)](_0x4bc1fb);}async[_0x328029(0x127)](_0x27ed3b,_0x467322,_0x2133ca,_0x29f726){const _0x41187=_0x328029,_0x5a3cf5=this[_0x41187(0x111)][_0x41187(0x149)](_0x41187(0xf1));if(_0x5a3cf5&&_0x27ed3b){_0x5a3cf5[_0x41187(0x12e)]=_0x29f726?_0x29f726[_0x41187(0xf6)](_0x46f580=>({'start':_0x46f580[_0x41187(0xd5)],'end':_0x46f580[_0x41187(0xf4)]})):[];try{if(_0x5a3cf5[_0x41187(0x144)]===_0x467322)return;const {id:_0x1ff82d}=await this[_0x41187(0xfe)][_0x41187(0xe4)](this[_0x41187(0x103)],_0x27ed3b,{'version':_0x467322,'sessionId':_0x2133ca})[_0x41187(0xdb)]();_0x5a3cf5['id']=_0x1ff82d,_0x5a3cf5[_0x41187(0x115)]=_0x27ed3b,_0x5a3cf5[_0x41187(0x144)]=_0x467322,_0x5a3cf5[_0x41187(0x14b)]=_0x2133ca;}catch(_0x3b2bf){const _0x55f1b3=new _0x9e7702(_0x41187(0xfa),null);_0x55f1b3[_0x41187(0xd3)]=_0x3b2bf[_0x41187(0xd3)],this[_0x41187(0x11b)](_0x41187(0xeb),{'error':_0x55f1b3});}}}[_0x328029(0x10e)](_0x100f82){const _0x12e799=_0x328029;this[_0x12e799(0xe0)]({'type':_0x558573[_0x12e799(0xe7)],'label':_0x100f82,'uiId':_0x12e799(0x12e),'content':_0x100f82});}[_0x328029(0xd6)](){const _0xfa50fe=_0x328029;this[_0xfa50fe(0xec)](_0xfa50fe(0x12e));}async[_0x328029(0x154)](_0x21cc9d,_0x4556ef){const _0x4a5478=_0x328029,_0xb635f4=_0x4a5478(0x131)+_0x1f91d7();this[_0x4a5478(0x10a)](_0xb635f4);const _0x25b629=_0x4a5478(0x131)+_0x1f91d7();try{this[_0x4a5478(0xe0)]({'type':_0x558573[_0x4a5478(0x10b)],'label':_0x4556ef?.[_0x4a5478(0x130)]||_0x21cc9d,'uiId':_0x25b629,'resourceId':_0x4556ef?.[_0x4a5478(0x124)]},!0x0);const _0x5a7df0=this[_0x4a5478(0xfe)][_0x4a5478(0x11e)](this[_0x4a5478(0x103)],_0x21cc9d,_0x4556ef);this[_0x4a5478(0x14f)][_0x4a5478(0x15b)](_0x25b629,_0x5a7df0[_0x4a5478(0x145)]);const {id:_0xf2ab11}=await _0x5a7df0[_0x4a5478(0xdb)]();this[_0x4a5478(0x14f)][_0x4a5478(0x148)](_0x25b629),this[_0x4a5478(0x121)]({'type':_0x558573[_0x4a5478(0x10b)],'id':_0xf2ab11,'label':_0x4556ef?.[_0x4a5478(0x130)]||_0x21cc9d,'uiId':_0x25b629,'resourceId':_0x4556ef?.[_0x4a5478(0x124)]},!0x1);}catch(_0x589515){this[_0x4a5478(0x14f)][_0x4a5478(0x148)](_0x25b629),(_0x589515[_0x4a5478(0x123)][_0x4a5478(0x10c)](_0x4a5478(0x133))||this[_0x4a5478(0x11b)](_0x4a5478(0xeb),{'error':new _0x9e7702(_0x4a5478(0x116),this,{'url':_0x21cc9d,'originalError':_0x589515}),'url':_0x21cc9d}),this[_0x4a5478(0xec)](_0x25b629));}finally{this[_0x4a5478(0x153)](_0xb635f4);}}async[_0x328029(0x112)](_0xfc85cb,_0x5b8e10,_0x41d45b){const _0x49c821=_0x328029,_0x56ed5e=this[_0x49c821(0x114)][_0x49c821(0x119)][_0x49c821(0x139)](_0x21f39c=>_0x21f39c['id']===_0xfc85cb);if(!_0x56ed5e)return this[_0x49c821(0x11b)](_0x49c821(0xeb),{'error':new _0x9e7702(_0x49c821(0x100),this,{'sourceId':_0xfc85cb}),'sourceId':_0xfc85cb}),[];try{const _0x5085f8=(await _0x56ed5e[_0x49c821(0x132)](_0x5b8e10))[_0x49c821(0xf6)](_0x3d63a3=>{const _0x3088f2=_0x49c821,_0x42b1b1=this[_0x3088f2(0x10f)](_0x3d63a3['id']);return{..._0x3d63a3,'isInContext':_0x42b1b1};});return _0x56ed5e[_0x49c821(0x118)]=_0x5085f8,this[_0x49c821(0x11b)](_0x49c821(0x12c),{'sourceId':_0xfc85cb,'source':_0x56ed5e,'resources':_0x5085f8,'uid':_0x41d45b}),_0x5085f8;}catch(_0x1c5ea7){return this[_0x49c821(0x11b)](_0x49c821(0xeb),{'error':new _0x9e7702(_0x49c821(0x105),this,{'sourceId':_0xfc85cb,'originalError':_0x1c5ea7}),'sourceId':_0xfc85cb,'sourceLabel':_0x56ed5e[_0x49c821(0x130)]}),[];}}async[_0x328029(0x14e)](_0x36c45f,_0x2b7f40){const _0x4743=_0x328029;if(this[_0x4743(0x10f)](_0x2b7f40['id']))return;let _0x795d29=_0x2b7f40[_0x4743(0x12a)];if(!_0x795d29&&_0x36c45f[_0x4743(0x117)])try{_0x795d29=await _0x36c45f[_0x4743(0x117)](_0x2b7f40['id']);}catch(_0x341e60){return void this[_0x4743(0x11b)](_0x4743(0xeb),{'error':new _0x9e7702(_0x4743(0x157),this,{'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id'],'originalError':_0x341e60}),'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id']});}if(_0x795d29)switch(_0x2b7f40[_0x4743(0xfd)]){case _0x558573[_0x4743(0x10b)]:if(_0x4743(0xea)!=typeof _0x795d29)return void this[_0x4743(0x11b)](_0x4743(0xeb),{'error':new _0x9e7702(_0x4743(0xfc),this,{'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id'],'expectedType':_0x4743(0xea),'actualType':typeof _0x795d29}),'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id']});await this[_0x4743(0x154)](_0x795d29,{'label':_0x2b7f40[_0x4743(0x130)],'resourceId':_0x2b7f40['id']});break;case _0x558573[_0x4743(0xe8)]:if(!(_0x795d29 instanceof File))return void this[_0x4743(0x11b)](_0x4743(0xeb),{'error':new _0x9e7702(_0x4743(0xfc),this,{'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id'],'expectedType':_0x4743(0xe9),'actualType':typeof _0x795d29}),'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id']});await this[_0x4743(0x11f)]([_0x795d29],{'label':_0x2b7f40[_0x4743(0x130)],'resourceId':_0x2b7f40['id']});break;case _0x558573[_0x4743(0x12b)]:if(_0x4743(0x15a)!=typeof _0x795d29||!(_0x4743(0x115)in _0x795d29)||!(_0x4743(0xfd)in _0x795d29))return void this[_0x4743(0x11b)](_0x4743(0xeb),{'error':new _0x9e7702(_0x4743(0xfc),this,{'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id'],'expectedType':_0x4743(0x147),'actualType':typeof _0x795d29}),'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id']});_0x795d29=AIChatContext[_0x4743(0x128)](_0x795d29,_0x2b7f40[_0x4743(0x130)]),await this[_0x4743(0x11f)]([_0x795d29],{'label':_0x2b7f40[_0x4743(0x130)],'resourceId':_0x2b7f40['id']},_0x558573[_0x4743(0x12b)]);break;default:this[_0x4743(0x11b)](_0x4743(0xeb),{'error':new _0x9e7702(_0x4743(0x136),this,{'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id'],'resourceType':_0x2b7f40[_0x4743(0xfd)]}),'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id']});}else this[_0x4743(0x11b)](_0x4743(0xeb),{'error':new _0x9e7702(_0x4743(0x10d),this,{'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id']}),'resourceId':_0x2b7f40['id'],'sourceId':_0x36c45f['id']});}static[_0x328029(0x128)](_0x5ddc72,_0x4d38c8){const _0xa547ee=_0x328029;switch(_0x5ddc72[_0xa547ee(0xfd)]){case _0x26de67[_0xa547ee(0x11a)]:return new File([_0x5ddc72[_0xa547ee(0x115)]],_0x4d38c8,{'type':_0xa547ee(0x14d)});case _0x26de67[_0xa547ee(0x158)]:return new File([_0x5ddc72[_0xa547ee(0x115)]],_0x4d38c8,{'type':_0xa547ee(0x104)});default:return new File([_0x5ddc72[_0xa547ee(0x115)]],_0x4d38c8,{'type':_0xa547ee(0x135)});}}static[_0x328029(0x143)](_0x41d732){const _0x1d6540=_0x328029;switch(_0x41d732[_0x1d6540(0xfd)]){case _0x558573[_0x1d6540(0xe8)]:return{'type':_0x558573[_0x1d6540(0xe8)],'id':_0x41d732['id']};case _0x558573[_0x1d6540(0x10b)]:return{'type':_0x558573[_0x1d6540(0x10b)],'id':_0x41d732['id']};case _0x558573[_0x1d6540(0x109)]:return{'type':_0x558573[_0x1d6540(0x109)],'id':_0x41d732['id'],..._0x41d732[_0x1d6540(0x12e)]?.[_0x1d6540(0xe2)]&&{'selection':_0x41d732[_0x1d6540(0x12e)]}};case _0x558573[_0x1d6540(0x12b)]:return{'type':_0x558573[_0x1d6540(0xe8)],'id':_0x41d732['id']};default:return null;}}[_0x328029(0xe0)](_0x8e1315,_0x3689a9=!0x1){const _0x25c0d1=_0x328029;if(this[_0x25c0d1(0x111)][_0x25c0d1(0x15b)](_0x8e1315[_0x25c0d1(0x129)],_0x8e1315),_0x8e1315[_0x25c0d1(0xf2)]||this[_0x25c0d1(0x11b)](_0x25c0d1(0xd2),{'contextItem':_0x8e1315,'isLoading':_0x3689a9}),_0x25c0d1(0xf1)===_0x8e1315[_0x25c0d1(0x129)]&&this[_0x25c0d1(0x140)](),_0x8e1315[_0x25c0d1(0x124)]){const _0xbc0c2b=this[_0x25c0d1(0x110)](_0x8e1315[_0x25c0d1(0x124)]);_0xbc0c2b&&_0xbc0c2b[_0x25c0d1(0x113)](_0x64505e=>{const _0x5d2841=_0x25c0d1;this[_0x5d2841(0x12f)](_0x64505e,_0x8e1315[_0x5d2841(0x124)],!0x0);});}}[_0x328029(0xec)](_0x524b33){const _0x1671b4=_0x328029,_0x2632bb=this[_0x1671b4(0x111)][_0x1671b4(0x149)](_0x524b33),_0x9d3c4c=this[_0x1671b4(0x14f)][_0x1671b4(0x149)](_0x524b33);if(_0x9d3c4c&&(_0x9d3c4c[_0x1671b4(0x159)](),this[_0x1671b4(0x14f)][_0x1671b4(0x148)](_0x524b33)),_0x2632bb?.[_0x1671b4(0x124)]){const _0x111510=this[_0x1671b4(0x110)](_0x2632bb[_0x1671b4(0x124)]);_0x111510&&_0x111510[_0x1671b4(0x113)](_0x17eb71=>{const _0x587937=_0x1671b4;this[_0x587937(0x12f)](_0x17eb71,_0x2632bb[_0x587937(0x124)],!0x1);});}this[_0x1671b4(0x111)][_0x1671b4(0x148)](_0x524b33),this[_0x1671b4(0x11b)](_0x1671b4(0x13c),{'uiId':_0x524b33,'type':_0x2632bb?.[_0x1671b4(0xfd)]}),_0x1671b4(0xf1)===_0x524b33&&this[_0x1671b4(0x140)]();}[_0x328029(0x121)](_0x4d3d29,_0x555a3e){const _0x51d026=_0x328029;if(this[_0x51d026(0x111)][_0x51d026(0x141)](_0x4d3d29[_0x51d026(0x129)])&&(this[_0x51d026(0x111)][_0x51d026(0x15b)](_0x4d3d29[_0x51d026(0x129)],_0x4d3d29),this[_0x51d026(0x11b)](_0x51d026(0xd1),{'contextItem':_0x4d3d29,'isLoading':_0x555a3e}),_0x4d3d29[_0x51d026(0x124)])){const _0x2e8397=this[_0x51d026(0x110)](_0x4d3d29[_0x51d026(0x124)]);_0x2e8397&&_0x2e8397[_0x51d026(0x113)](_0x18c406=>{const _0xe8f18d=_0x51d026;this[_0xe8f18d(0x12f)](_0x18c406,_0x4d3d29[_0xe8f18d(0x124)],!0x0);});}}[_0x328029(0x13f)](_0x46cc90){const _0x159f0e=_0x328029;this[_0x159f0e(0x108)][_0x159f0e(0x15b)](_0x46cc90[_0x159f0e(0x129)],_0x46cc90);}[_0x328029(0x126)](){const _0x342a7a=_0x328029;this[_0x342a7a(0x114)]={'document':{'enabled':!0x1!==this[_0x342a7a(0x11c)]?.[_0x342a7a(0xed)]?.[_0x342a7a(0xde)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x342a7a(0x11c)]?.[_0x342a7a(0xe3)]?.[_0x342a7a(0xde)]},'files':{'enabled':!0x1!==this[_0x342a7a(0x11c)]?.[_0x342a7a(0x138)]?.[_0x342a7a(0xde)]},'sources':this[_0x342a7a(0x122)]()},this[_0x342a7a(0x11b)](_0x342a7a(0x106),{'options':this[_0x342a7a(0x114)]});}[_0x328029(0x122)](){const _0x71cbbc=_0x328029;return this[_0x71cbbc(0x11c)]?.[_0x71cbbc(0x119)]?.[_0x71cbbc(0xf6)](_0x2f41be=>({..._0x2f41be,'resources':[]}))??[];}[_0x328029(0x140)](){const _0x5cd7ad=_0x328029,_0x338526=this[_0x5cd7ad(0x13d)]()||this[_0x5cd7ad(0x11d)]();this[_0x5cd7ad(0x114)][_0x5cd7ad(0xed)][_0x5cd7ad(0xd0)]=_0x338526,this[_0x5cd7ad(0x11b)](_0x5cd7ad(0x106),{'options':this[_0x5cd7ad(0x114)]});}[_0x328029(0x10f)](_0x4311fa){const _0x1e627c=_0x328029;for(const _0x242a2a of this[_0x1e627c(0x111)][_0x1e627c(0x151)]())if(_0x242a2a[_0x1e627c(0x124)]===_0x4311fa)return!0x0;for(const _0x23502a of this[_0x1e627c(0x108)][_0x1e627c(0x151)]())if(_0x23502a[_0x1e627c(0x124)]===_0x4311fa)return!0x0;return!0x1;}[_0x328029(0x110)](_0x5a91f9){const _0x23ebdb=_0x328029,_0x263a84=[];for(const _0x3619c9 of this[_0x23ebdb(0x114)][_0x23ebdb(0x119)]){_0x3619c9[_0x23ebdb(0x118)][_0x23ebdb(0x139)](_0x2d7990=>_0x2d7990['id']===_0x5a91f9)&&_0x263a84[_0x23ebdb(0x13e)](_0x3619c9['id']);}return 0x0===_0x263a84[_0x23ebdb(0xe2)]?null:_0x263a84;}[_0x328029(0x12f)](_0x19beec,_0x4d658f,_0xa8b99d){const _0x55eac0=_0x328029,_0x18d192=this[_0x55eac0(0x114)][_0x55eac0(0x119)][_0x55eac0(0x139)](_0x22992d=>_0x22992d['id']===_0x19beec);if(!_0x18d192)return;const _0x3bff72=_0x18d192[_0x55eac0(0x118)][_0x55eac0(0x139)](_0x14934d=>_0x14934d['id']===_0x4d658f);_0x3bff72&&(_0x3bff72[_0x55eac0(0x120)]=_0xa8b99d,this[_0x55eac0(0x11b)](_0x55eac0(0xd9),{'sourceId':_0x19beec,'resourceId':_0x4d658f,'isInContext':_0xa8b99d}));}[_0x328029(0x10a)](_0x5509ea){const _0x55cadc=_0x328029;this[_0x55cadc(0xe6)][_0x55cadc(0x15b)](_0x5509ea,!0x0),this[_0x55cadc(0xe6)][_0x55cadc(0xd7)]&&this[_0x55cadc(0x11b)](_0x55cadc(0xf0),{'isUploadInProgress':!0x0});}[_0x328029(0x153)](_0x37b479){const _0x4d90a1=_0x328029;this[_0x4d90a1(0xe6)][_0x4d90a1(0x148)](_0x37b479),0x0===this[_0x4d90a1(0xe6)][_0x4d90a1(0xd7)]&&this[_0x4d90a1(0x11b)](_0x4d90a1(0xf0),{'isUploadInProgress':!0x1});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x212178=_0x2846;function _0x2846(_0xbc0c4d,_0x1dd22e){const _0x5a9e47=_0x5a9e();return _0x2846=function(_0x284620,_0x21cf27){_0x284620=_0x284620-0x86;let _0x1e1cbc=_0x5a9e47[_0x284620];return _0x1e1cbc;},_0x2846(_0xbc0c4d,_0x1dd22e);}(function(_0x163b4e,_0x2c84b9){const _0x4d274d=_0x2846,_0xeee46e=_0x163b4e();while(!![]){try{const _0x3d1b30=-parseInt(_0x4d274d(0xb5))/0x1+-parseInt(_0x4d274d(0x8e))/0x2*(-parseInt(_0x4d274d(0xb1))/0x3)+parseInt(_0x4d274d(0xb6))/0x4+-parseInt(_0x4d274d(0xe1))/0x5*(-parseInt(_0x4d274d(0xa5))/0x6)+parseInt(_0x4d274d(0xc9))/0x7+-parseInt(_0x4d274d(0xd4))/0x8+-parseInt(_0x4d274d(0xcc))/0x9*(parseInt(_0x4d274d(0xa2))/0xa);if(_0x3d1b30===_0x2c84b9)break;else _0xeee46e['push'](_0xeee46e['shift']());}catch(_0x495b99){_0xeee46e['push'](_0xeee46e['shift']());}}}(_0x5a9e,0x913a9));import{CKEditorError as _0x4bcf14,EmitterMixin as _0x56789d,logWarning as _0x1bd44f}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x509c9f}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x179571,AI_CONTEXT_MODEL_EVENT_NAMES as _0x20d172}from'./aichatcontext.js';import{AICapabilities as _0xd16371,CAPABILITIES_MODEL_EVENT_NAMES as _0x27bf65}from'../../aicore/model/aicapabilities.js';function _0x5a9e(){const _0x3ba1a1=['getInteraction','chatModels','sessionId','delegate','getCapabilitiesConfig','type','toggleWebSearch','setConversationTitle','model','set','reasoning','getMessages','isCurrentDocumentInConversation','10SKlUrz','isStarted','role','6qvtbTM','ai-chat-conversation-init-failed','handleUserInteraction','ai-chat-conversation-set-model-null','interactionCreated','populateFromMessage','addCurrentDocumentToContext','getAll','getCurrentDocumentContext','_processMessagesToInteractions','currentInteraction','prompt','48kMVoTw','chatCapabilities','ai-chat-conversation-start-failed','isCurrentDocumentInContext','445598XpoXUU','1535232psOIGD','quickActionData','setModel','hasOwn','loadSourceResources','getPendingContextItems','stack','selectedModelId','getDocumentContext','addUrlToContext','removeFromContext','destroy','lastInteraction','ai-chat-conversation-set-model-not-available','ai-chat-conversation-start-no-model-selected','text','group','content','push','5544427WntcHa','length','conversationStarted','9075627PpnDKk','splice','get','modification-delta','start','connector','chatContext','toLowerCase','2545360qxBAqF','selectedModel','getEditor','ai-chat-handle-user-interaction-already-in-progress','isAvailable','fire','interactions','addToConversationContext','startConversation','addFilesToContext','webSearch','message','ai-chat-handle-user-conversation-not-initialized','3024115bLYuOW','indexOf','_extractContextItems','conversationInitialized','createReply','addResourceToContext','getModel','stop','getAvailableModels','code','ai-chat-conversation-init-from-id-failed','updateCurrentDocumentInContext','getConversation','user','toggleReasoning','currentReply','createInteraction','removeInteraction','text-delta','find','init','fetchConversation','isSelectionInContext','options','appendContent','assistant','load','attributes','modelSelected','ai-chat-handle-user-interaction-start-failed','fetchConversationMessages','contextItems','conversationId','addSelectionToContext','reset','73292kBcmay','ai-chat-conversation-already-started','error','title','removeSelectionFromContext','updateCurrentDocument','capabilities'];_0x5a9e=function(){return _0x3ba1a1;};return _0x5a9e();}import{AIChatInteraction as _0xb9beeb}from'./aichatinteraction.js';import{errorsMap as _0x25dcc0}from'../../errorsmap.js';export class AIChatConversation extends _0x56789d(){['id'];[_0x212178(0xa3)]=!0x1;[_0x212178(0xda)]=[];[_0x212178(0xaf)];[_0x212178(0xd5)];[_0x212178(0xd1)];[_0x212178(0xf8)];constructor(_0x4b114e){const _0x5a7e9c=_0x212178;super(),this[_0x5a7e9c(0xf8)]=_0x4b114e,this[_0x5a7e9c(0xd1)]=_0x4b114e[_0x5a7e9c(0xd1)],this[_0x5a7e9c(0x96)]=_0x4b114e[_0x5a7e9c(0x96)],this['id']=_0x4b114e[_0x5a7e9c(0x8b)];}async[_0x212178(0xf5)](_0x1a0395){const _0x592825=_0x212178;try{this[_0x592825(0xd2)]=new _0x179571({'connector':this[_0x592825(0xd1)],'config':_0x1a0395,'ownerId':this['id']}),this[_0x592825(0xd2)][_0x592825(0x98)](..._0x20d172)['to'](this),this[_0x592825(0xd2)][_0x592825(0xf5)](),this[_0x592825(0xb2)]=new _0xd16371(),this[_0x592825(0xb2)][_0x592825(0x98)](..._0x27bf65)['to'](this),this[_0x592825(0xb2)][_0x592825(0xf5)]();const _0x263a53=await this[_0x592825(0x96)][_0x592825(0xe9)]();this[_0x592825(0xd9)](_0x592825(0xe4),{'availableModels':_0x263a53});const _0x23896d=await this[_0x592825(0x96)][_0x592825(0xe7)](this[_0x592825(0xf8)][_0x592825(0xbd)]);_0x23896d&&await this[_0x592825(0xb8)](_0x23896d);}catch(_0x5c52fb){const _0x1a9324=new _0x4bcf14(_0x592825(0xa6),null,{'message':_0x5c52fb[_0x592825(0xdf)]||_0x5c52fb});_0x1a9324[_0x592825(0xbc)]=_0x5c52fb[_0x592825(0xbc)],this[_0x592825(0xd9)](_0x592825(0x90),{'error':_0x1a9324});}}async[_0x212178(0xd0)](){const _0x3254bc=_0x212178;if(this[_0x3254bc(0xa3)])throw new _0x4bcf14(_0x3254bc(0x8f),null,{'conversation':this});if(!this[_0x3254bc(0xd5)])throw new _0x4bcf14(_0x3254bc(0xc4),null,{'conversation':this});try{const {id:_0x315f3e}=await this[_0x3254bc(0xd1)][_0x3254bc(0xdc)](this['id'],this[_0x3254bc(0xf8)][_0x3254bc(0xc6)])[_0x3254bc(0xed)]();this['id']=_0x315f3e,this[_0x3254bc(0xa3)]=!0x0,this[_0x3254bc(0xd9)](_0x3254bc(0xcb),{'conversationId':this['id'],'selectedModel':this[_0x3254bc(0xd5)]});}catch(_0x284373){const _0x48ef5c=new _0x4bcf14(_0x3254bc(0xb3),null,{'message':_0x284373[_0x3254bc(0xdf)],'conversationId':this['id']});throw _0x48ef5c[_0x3254bc(0xbc)]=_0x284373[_0x3254bc(0xbc)],this[_0x3254bc(0xd9)](_0x3254bc(0x90),{'error':_0x48ef5c}),_0x48ef5c;}}async[_0x212178(0xfb)](_0x2afbdc,_0x45e0eb){const _0x46c865=_0x212178;try{const _0x519f9c=await this[_0x46c865(0xd1)][_0x46c865(0xf6)](_0x2afbdc)[_0x46c865(0xed)](),_0x425aec=await this[_0x46c865(0xd1)][_0x46c865(0x89)](_0x2afbdc)[_0x46c865(0xa0)](),_0x5f508a=_0x425aec[0x0][_0x46c865(0x9d)];this[_0x46c865(0xa3)]=!0x0,this['id']=_0x519f9c['id'],_0x46c865(0x91)in _0x519f9c?this[_0x46c865(0xd9)](_0x46c865(0x9c),_0x519f9c[_0x46c865(0x91)],!0x0):this[_0x46c865(0xd9)](_0x46c865(0x9c),'',!0x0);const _0x20d8d7=(await this[_0x46c865(0x96)][_0x46c865(0xac)]())[_0x46c865(0xf4)](_0x19b389=>_0x19b389['id'][_0x46c865(0xd3)]()===_0x5f508a[_0x46c865(0xd3)]());return this[_0x46c865(0xd5)]=_0x20d8d7,this[_0x46c865(0xd9)](_0x46c865(0x87),{'selectedModel':_0x20d8d7,'isDisabled':!0x0}),await this[_0x46c865(0xae)](_0x425aec,_0x45e0eb,_0x5f508a),this[_0x46c865(0xaf)]=void 0x0,this;}catch(_0x3d22a8){const _0x4ce4ec=new _0x4bcf14(_0x46c865(0xeb),null,{'message':_0x3d22a8[_0x46c865(0xdf)],'conversationId':_0x2afbdc});throw _0x4ce4ec[_0x46c865(0xbc)]=_0x3d22a8[_0x46c865(0xbc)],this[_0x46c865(0xd9)](_0x46c865(0x90),{'error':_0x4ce4ec}),_0x4ce4ec;}}async[_0x212178(0xae)](_0x4973b3,_0x53b4ad,_0x13eea3){const _0x26ac48=_0x212178;let _0x5c0099;for(const _0x574f70 of _0x4973b3)if(_0x26ac48(0xee)===_0x574f70[_0x26ac48(0xa4)]){const _0x4ac52e=await this[_0x26ac48(0xe3)](_0x574f70),_0x6ac1be={'isReasoningEnabled':Object[_0x26ac48(0xb9)](_0x574f70[_0x26ac48(0x94)],_0x26ac48(0x9f)),'isWebSearchEnabled':Object[_0x26ac48(0xb9)](_0x574f70[_0x26ac48(0x94)],_0x26ac48(0xde))};_0x5c0099=this[_0x26ac48(0xf1)]({'userMessage':_0x574f70[_0x26ac48(0xb0)],'contextItems':_0x4ac52e,'capabilities':_0x6ac1be,'modelId':_0x13eea3,'quickActionData':_0x574f70[_0x26ac48(0x86)]?.[_0x26ac48(0xb7)]}),this[_0x26ac48(0xaf)]=_0x5c0099,this[_0x26ac48(0xd2)][_0x26ac48(0xdb)](this[_0x26ac48(0xaf)][_0x26ac48(0x8a)]);}else{if(_0x26ac48(0xfa)===_0x574f70[_0x26ac48(0xa4)]&&_0x5c0099)for(const _0x83ac02 of _0x574f70[_0x26ac48(0xc7)]){const _0x3d5d20=_0x26ac48(0xc5)===_0x83ac02[_0x26ac48(0x9a)]?_0x26ac48(0xf3):_0x26ac48(0xcf),_0x319090=_0x5c0099[_0x26ac48(0xbe)]()?.[_0x26ac48(0x97)]!==_0x53b4ad;_0x5c0099[_0x26ac48(0xf0)]=_0x5c0099[_0x26ac48(0xe5)]({'type':_0x3d5d20,'isDone':!0x0,'interactionId':_0x5c0099['id'],'areActionsDisabled':_0x319090}),_0x5c0099[_0x26ac48(0xf0)][_0x26ac48(0xf9)](_0x83ac02[_0x26ac48(0xc7)]);}}}async[_0x212178(0xe3)](_0x92140c){const _0x1eb7f6=_0x212178,_0x12a225=new Map();if(!_0x92140c[_0x1eb7f6(0xc7)])return _0x12a225;for(const _0xbbda6f of _0x92140c[_0x1eb7f6(0xc7)]){const _0x5e2e5c=await this[_0x1eb7f6(0xd2)][_0x1eb7f6(0xaa)](_0xbbda6f);_0x5e2e5c&&_0x12a225[_0x1eb7f6(0x9e)](_0x5e2e5c['id'],_0x5e2e5c);}return _0x12a225;}async[_0x212178(0xa7)]({userMessage:_0x3de229,quickActionData:_0x2a9e2e}){const _0x4d876e=_0x212178;if(!this[_0x4d876e(0xa3)])throw new _0x4bcf14(_0x4d876e(0xe0),null,{'conversation':this});if(this[_0x4d876e(0xaf)])throw new _0x4bcf14(_0x4d876e(0xd7),null,{'conversation':this});try{const _0x2159cc=this[_0x4d876e(0xd2)][_0x4d876e(0xbb)](),_0x4f8759=this[_0x4d876e(0xb2)][_0x4d876e(0x99)](),_0x6c743d=this[_0x4d876e(0xd5)]['id'];this[_0x4d876e(0xaf)]=this[_0x4d876e(0xf1)]({'userMessage':_0x3de229,'contextItems':_0x2159cc,'capabilities':_0x4f8759,'modelId':_0x6c743d,'quickActionData':_0x2a9e2e}),await this[_0x4d876e(0xaf)][_0x4d876e(0xd0)](),this[_0x4d876e(0xd2)][_0x4d876e(0xdb)](this[_0x4d876e(0xaf)][_0x4d876e(0x8a)]);}catch(_0x286583){if(_0x286583 instanceof _0x4bcf14)this[_0x4d876e(0xd9)](_0x4d876e(0x90),{'interactionId':this[_0x4d876e(0xaf)]?this[_0x4d876e(0xaf)]['id']:void 0x0,'error':_0x286583});else{const _0xd06268=_0x25dcc0[_0x4d876e(0xce)](_0x286583[_0x4d876e(0xea)])||_0x4d876e(0x88);this[_0x4d876e(0xd9)](_0x4d876e(0x90),{'interactionId':this[_0x4d876e(0xaf)]?this[_0x4d876e(0xaf)]['id']:void 0x0,'error':new _0x4bcf14(_0xd06268,null,{'error':_0x286583})});}}finally{this[_0x4d876e(0xaf)]?.[_0x4d876e(0xe8)](),this[_0x4d876e(0xaf)]=void 0x0;}}[_0x212178(0xf1)]({userMessage:_0xda3337,contextItems:_0x4dae69,capabilities:_0x5f2772,modelId:_0x2f1487,quickActionData:_0x2f464b}){const _0x139bb4=_0x212178,_0x50a282=new _0xb9beeb({'userMessage':_0xda3337,'contextItems':_0x4dae69,'capabilities':_0x5f2772,'conversationId':this['id'],'connector':this[_0x139bb4(0xd1)],'editor':this[_0x139bb4(0xf8)][_0x139bb4(0xd6)]&&this[_0x139bb4(0xf8)][_0x139bb4(0xd6)](),'model':_0x2f1487,'quickActionData':_0x2f464b});return _0x50a282[_0x139bb4(0x98)](..._0x509c9f)['to'](this),this[_0x139bb4(0xda)][_0x139bb4(0xc8)](_0x50a282),this[_0x139bb4(0xd9)](_0x139bb4(0xa9),_0x50a282),_0x50a282;}[_0x212178(0x95)](_0x415b40){const _0x339499=_0x212178;return this[_0x339499(0xda)][_0x339499(0xf4)](_0x535b96=>_0x535b96['id']===_0x415b40);}[_0x212178(0xf2)](_0x2c1a60){const _0x4d1fe9=_0x212178,_0x59d852=this[_0x4d1fe9(0x95)](_0x2c1a60);_0x59d852&&(_0x59d852[_0x4d1fe9(0xc1)](),this[_0x4d1fe9(0xda)][_0x4d1fe9(0xcd)](this[_0x4d1fe9(0xda)][_0x4d1fe9(0xe2)](_0x59d852),0x1));}get[_0x212178(0xc2)](){const _0x43a747=_0x212178;return this[_0x43a747(0xda)][this[_0x43a747(0xda)][_0x43a747(0xca)]-0x1];}[_0x212178(0xab)](_0x1fa41b){const _0x39d183=_0x212178;this[_0x39d183(0xd2)][_0x39d183(0xab)](_0x1fa41b);}async[_0x212178(0xec)]({content:_0x241fc8,version:_0x288226,sessionId:_0x4148e4,selections:_0x5c0443}){const _0x2eb942=_0x212178;await this[_0x2eb942(0xd2)][_0x2eb942(0x93)](_0x241fc8,_0x288226,_0x4148e4,_0x5c0443);}[_0x212178(0xad)](){const _0x8e5e24=_0x212178;return this[_0x8e5e24(0xaf)]?.[_0x8e5e24(0xbe)]()?.[_0x8e5e24(0xc7)]||'';}[_0x212178(0x8c)](_0x48e0da){const _0x1bb2f2=_0x212178;this[_0x1bb2f2(0xd2)][_0x1bb2f2(0x8c)](_0x48e0da);}[_0x212178(0x92)](){const _0x216c20=_0x212178;this[_0x216c20(0xd2)][_0x216c20(0x92)]();}[_0x212178(0xdd)](_0x396460){const _0x5c9ef5=_0x212178;this[_0x5c9ef5(0xd2)][_0x5c9ef5(0xdd)](_0x396460);}[_0x212178(0xbf)](_0x5d6e9c){const _0x211728=_0x212178;this[_0x211728(0xd2)][_0x211728(0xbf)](_0x5d6e9c);}[_0x212178(0xe6)](_0x573474,_0x5dbae7){const _0x16c013=_0x212178;this[_0x16c013(0xd2)][_0x16c013(0xe6)](_0x573474,_0x5dbae7);}[_0x212178(0xba)](_0x63bd90,_0x55fbda,_0x3acde9){const _0x933751=_0x212178;return this[_0x933751(0xd2)][_0x933751(0xba)](_0x63bd90,_0x55fbda,_0x3acde9);}[_0x212178(0xc0)](_0x414311){const _0x3c36a8=_0x212178;this[_0x3c36a8(0xd2)][_0x3c36a8(0xc0)](_0x414311);}[_0x212178(0x9b)](){const _0x3fdbea=_0x212178;this[_0x3fdbea(0xb2)][_0x3fdbea(0x9b)]();}[_0x212178(0xef)](){const _0x222ef7=_0x212178;this[_0x222ef7(0xb2)][_0x222ef7(0xef)]();}[_0x212178(0xb4)](){const _0x574fd1=_0x212178;return this[_0x574fd1(0xd2)][_0x574fd1(0xb4)]();}[_0x212178(0xa1)](){const _0x3c40e3=_0x212178;return this[_0x3c40e3(0xd2)][_0x3c40e3(0xa1)]();}[_0x212178(0xf7)](){const _0x30b7e7=_0x212178;return this[_0x30b7e7(0xd2)][_0x30b7e7(0xf7)]();}async[_0x212178(0xb8)](_0x1e5d30){const _0x34ceb9=_0x212178;_0x1e5d30?!0x1===await this[_0x34ceb9(0x96)][_0x34ceb9(0xd8)](_0x1e5d30)&&(_0x1bd44f(_0x34ceb9(0xc3),{'conversation':this,'model':_0x1e5d30}),_0x1e5d30=(await this[_0x34ceb9(0x96)][_0x34ceb9(0xe9)]())[0x0]):(_0x1bd44f(_0x34ceb9(0xa8),{'conversation':this}),_0x1e5d30=(await this[_0x34ceb9(0x96)][_0x34ceb9(0xe9)]())[0x0]),_0x1e5d30['id']!==this[_0x34ceb9(0xd5)]?.['id']&&(this[_0x34ceb9(0xd5)]=_0x1e5d30,this[_0x34ceb9(0xb2)][_0x34ceb9(0x8d)](),this[_0x34ceb9(0xd9)](_0x34ceb9(0x87),{'selectedModel':_0x1e5d30}));}}
|
|
23
|
+
const _0x2918e4=_0x1fb5;(function(_0x154c83,_0x572e8a){const _0x81527c=_0x1fb5,_0x4505b5=_0x154c83();while(!![]){try{const _0x5dbff6=-parseInt(_0x81527c(0x146))/0x1*(-parseInt(_0x81527c(0x12b))/0x2)+-parseInt(_0x81527c(0x17d))/0x3*(-parseInt(_0x81527c(0x11e))/0x4)+parseInt(_0x81527c(0x16c))/0x5*(parseInt(_0x81527c(0x13f))/0x6)+-parseInt(_0x81527c(0x148))/0x7+parseInt(_0x81527c(0x15e))/0x8*(-parseInt(_0x81527c(0x142))/0x9)+-parseInt(_0x81527c(0x164))/0xa*(-parseInt(_0x81527c(0x170))/0xb)+parseInt(_0x81527c(0x144))/0xc*(-parseInt(_0x81527c(0x136))/0xd);if(_0x5dbff6===_0x572e8a)break;else _0x4505b5['push'](_0x4505b5['shift']());}catch(_0x264982){_0x4505b5['push'](_0x4505b5['shift']());}}}(_0x4104,0xd3842));import{CKEditorError as _0x252a34,EmitterMixin as _0x15519f,logWarning as _0x6acb}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x13ace8}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4a912c,AI_CONTEXT_MODEL_EVENT_NAMES as _0x2af3da}from'./aichatcontext.js';import{AICapabilities as _0x3b6257,CAPABILITIES_MODEL_EVENT_NAMES as _0x272746}from'../../aicore/model/aicapabilities.js';function _0x1fb5(_0x436924,_0x50806f){const _0x4104d1=_0x4104();return _0x1fb5=function(_0x1fb5b5,_0x393841){_0x1fb5b5=_0x1fb5b5-0x10c;let _0x3fbe1d=_0x4104d1[_0x1fb5b5];return _0x3fbe1d;},_0x1fb5(_0x436924,_0x50806f);}import{AIChatInteraction as _0x11a905}from'./aichatinteraction.js';import{errorsMap as _0x2d0718}from'../../errorsmap.js';export class AIChatConversation extends _0x15519f(){['id'];[_0x2918e4(0x14b)]=!0x1;[_0x2918e4(0x10f)]=[];[_0x2918e4(0x119)];[_0x2918e4(0x156)];[_0x2918e4(0x11d)];[_0x2918e4(0x125)];constructor(_0x25a574){const _0x545f5f=_0x2918e4;super(),this[_0x545f5f(0x125)]=_0x25a574,this[_0x545f5f(0x11d)]=_0x25a574[_0x545f5f(0x11d)],this[_0x545f5f(0x13d)]=_0x25a574[_0x545f5f(0x13d)],this['id']=_0x25a574[_0x545f5f(0x130)];}async[_0x2918e4(0x179)](_0x5d7c3d){const _0x11d1fe=_0x2918e4;try{this[_0x11d1fe(0x14e)]=new _0x4a912c({'connector':this[_0x11d1fe(0x11d)],'config':_0x5d7c3d,'ownerId':this['id']}),this[_0x11d1fe(0x14e)][_0x11d1fe(0x13e)](..._0x2af3da)['to'](this),this[_0x11d1fe(0x14e)][_0x11d1fe(0x179)](),this[_0x11d1fe(0x14c)]=new _0x3b6257(),this[_0x11d1fe(0x14c)][_0x11d1fe(0x13e)](..._0x272746)['to'](this),this[_0x11d1fe(0x14c)][_0x11d1fe(0x179)]();const _0x1868c8=await this[_0x11d1fe(0x13d)][_0x11d1fe(0x157)]();this[_0x11d1fe(0x114)](_0x11d1fe(0x153),{'availableModels':_0x1868c8});const _0x309348=await this[_0x11d1fe(0x13d)][_0x11d1fe(0x12c)](this[_0x11d1fe(0x125)][_0x11d1fe(0x14d)]);_0x309348&&await this[_0x11d1fe(0x16f)](_0x309348);}catch(_0x6e673e){const _0x52f86d=new _0x252a34(_0x11d1fe(0x173),null,{'message':_0x6e673e[_0x11d1fe(0x14a)]||_0x6e673e});_0x52f86d[_0x11d1fe(0x181)]=_0x6e673e[_0x11d1fe(0x181)],this[_0x11d1fe(0x114)](_0x11d1fe(0x112),{'error':_0x52f86d});}}async[_0x2918e4(0x15a)](){const _0xff85=_0x2918e4;if(this[_0xff85(0x14b)])throw new _0x252a34(_0xff85(0x163),null,{'conversation':this});if(!this[_0xff85(0x156)])throw new _0x252a34(_0xff85(0x16d),null,{'conversation':this});try{const {id:_0x3eee04}=await this[_0xff85(0x11d)][_0xff85(0x147)](this['id'],this[_0xff85(0x125)][_0xff85(0x13a)])[_0xff85(0x11f)]();this['id']=_0x3eee04,this[_0xff85(0x14b)]=!0x0,this[_0xff85(0x114)](_0xff85(0x160),{'conversationId':this['id'],'selectedModel':this[_0xff85(0x156)]});}catch(_0xbc480){const _0x19cc18=new _0x252a34(_0xff85(0x11b),null,{'message':_0xbc480[_0xff85(0x14a)],'conversationId':this['id']});throw _0x19cc18[_0xff85(0x181)]=_0xbc480[_0xff85(0x181)],this[_0xff85(0x114)](_0xff85(0x112),{'error':_0x19cc18}),_0x19cc18;}}async[_0x2918e4(0x17b)](_0x84635e,_0x2f5678){const _0x5dd5c1=_0x2918e4;try{const _0x24ec61=await this[_0x5dd5c1(0x11d)][_0x5dd5c1(0x171)](_0x84635e)[_0x5dd5c1(0x11f)](),_0x2cec1b=await this[_0x5dd5c1(0x11d)][_0x5dd5c1(0x155)](_0x84635e)[_0x5dd5c1(0x124)](),_0x27531b=_0x2cec1b[0x0][_0x5dd5c1(0x127)];this[_0x5dd5c1(0x14b)]=!0x0,this['id']=_0x24ec61['id'],_0x5dd5c1(0x117)in _0x24ec61?this[_0x5dd5c1(0x114)](_0x5dd5c1(0x135),_0x24ec61[_0x5dd5c1(0x117)],!0x0):this[_0x5dd5c1(0x114)](_0x5dd5c1(0x135),'',!0x0);const _0xeddf9b=(await this[_0x5dd5c1(0x13d)][_0x5dd5c1(0x149)]())[_0x5dd5c1(0x169)](_0x24ee58=>_0x24ee58['id'][_0x5dd5c1(0x172)]()===_0x27531b[_0x5dd5c1(0x172)]());return this[_0x5dd5c1(0x156)]=_0xeddf9b,this[_0x5dd5c1(0x114)](_0x5dd5c1(0x17f),{'selectedModel':_0xeddf9b,'isDisabled':!0x0}),await this[_0x5dd5c1(0x12e)](_0x2cec1b,_0x2f5678,_0x27531b),this[_0x5dd5c1(0x119)]=void 0x0,this;}catch(_0x4c8050){const _0x101985=new _0x252a34(_0x5dd5c1(0x16e),null,{'message':_0x4c8050[_0x5dd5c1(0x14a)],'conversationId':_0x84635e});throw _0x101985[_0x5dd5c1(0x181)]=_0x4c8050[_0x5dd5c1(0x181)],this[_0x5dd5c1(0x114)](_0x5dd5c1(0x112),{'error':_0x101985}),_0x101985;}}async[_0x2918e4(0x12e)](_0x376e15,_0xb33f85,_0x255820){const _0x16bf6b=_0x2918e4;let _0x3a068e;for(const _0x28cff7 of _0x376e15)if(_0x16bf6b(0x161)===_0x28cff7[_0x16bf6b(0x12d)]){const _0x4ab91d=await this[_0x16bf6b(0x165)](_0x28cff7),_0x7ee4f7={'isReasoningEnabled':Object[_0x16bf6b(0x16b)](_0x28cff7[_0x16bf6b(0x178)],_0x16bf6b(0x118)),'isWebSearchEnabled':Object[_0x16bf6b(0x16b)](_0x28cff7[_0x16bf6b(0x178)],_0x16bf6b(0x122))};_0x3a068e=this[_0x16bf6b(0x111)]({'userMessage':_0x28cff7[_0x16bf6b(0x162)],'contextItems':_0x4ab91d,'capabilities':_0x7ee4f7,'modelId':_0x255820,'quickActionData':_0x28cff7[_0x16bf6b(0x123)]?.[_0x16bf6b(0x150)]}),this[_0x16bf6b(0x119)]=_0x3a068e,this[_0x16bf6b(0x14e)][_0x16bf6b(0x129)](this[_0x16bf6b(0x119)][_0x16bf6b(0x133)]);}else{if(_0x16bf6b(0x131)===_0x28cff7[_0x16bf6b(0x12d)]&&_0x3a068e)for(const _0xd82aee of _0x28cff7[_0x16bf6b(0x132)]){const _0x1d4b91=_0x16bf6b(0x137)===_0xd82aee[_0x16bf6b(0x11a)]?_0x16bf6b(0x17e):_0x16bf6b(0x134),_0x1b0c1c=_0x3a068e[_0x16bf6b(0x10d)]()?.[_0x16bf6b(0x15b)]!==_0xb33f85;_0x3a068e[_0x16bf6b(0x10e)]=_0x3a068e[_0x16bf6b(0x143)]({'type':_0x1d4b91,'isDone':!0x0,'interactionId':_0x3a068e['id'],'areActionsDisabled':_0x1b0c1c}),_0x3a068e[_0x16bf6b(0x10e)][_0x16bf6b(0x175)](_0xd82aee[_0x16bf6b(0x132)]);}}}async[_0x2918e4(0x165)](_0x3a561e){const _0x632ec9=_0x2918e4,_0x40b6ee=new Map();if(!_0x3a561e[_0x632ec9(0x132)])return _0x40b6ee;for(const _0x5cdf1b of _0x3a561e[_0x632ec9(0x132)]){const _0x5df87f=await this[_0x632ec9(0x14e)][_0x632ec9(0x184)](_0x5cdf1b);_0x5df87f&&_0x40b6ee[_0x632ec9(0x158)](_0x5df87f['id'],_0x5df87f);}return _0x40b6ee;}async[_0x2918e4(0x138)]({userMessage:_0x21f69a,quickActionData:_0x134939}){const _0x584238=_0x2918e4;if(!this[_0x584238(0x14b)])throw new _0x252a34(_0x584238(0x168),null,{'conversation':this});if(this[_0x584238(0x119)])throw new _0x252a34(_0x584238(0x183),null,{'conversation':this});try{const _0x48e59b=this[_0x584238(0x14e)][_0x584238(0x174)](),_0x300c01=this[_0x584238(0x14c)][_0x584238(0x14f)](),_0xf68374=this[_0x584238(0x156)]['id'];this[_0x584238(0x119)]=this[_0x584238(0x111)]({'userMessage':_0x21f69a,'contextItems':_0x48e59b,'capabilities':_0x300c01,'modelId':_0xf68374,'quickActionData':_0x134939}),await this[_0x584238(0x119)][_0x584238(0x15a)](),this[_0x584238(0x14e)][_0x584238(0x129)](this[_0x584238(0x119)][_0x584238(0x133)]);}catch(_0x1ad73e){if(_0x1ad73e instanceof _0x252a34)this[_0x584238(0x114)](_0x584238(0x112),{'interactionId':this[_0x584238(0x119)]?this[_0x584238(0x119)]['id']:void 0x0,'error':_0x1ad73e});else{const _0x73f883=_0x2d0718[_0x584238(0x139)](_0x1ad73e[_0x584238(0x116)])||_0x584238(0x154);this[_0x584238(0x114)](_0x584238(0x112),{'interactionId':this[_0x584238(0x119)]?this[_0x584238(0x119)]['id']:void 0x0,'error':new _0x252a34(_0x73f883,null,{'error':_0x1ad73e})});}}finally{this[_0x584238(0x119)]?.[_0x584238(0x152)](),this[_0x584238(0x119)]=void 0x0;}}[_0x2918e4(0x111)]({userMessage:_0x3805ca,contextItems:_0x57bbf0,capabilities:_0x2f4a28,modelId:_0x218459,quickActionData:_0x1e91c6}){const _0x255876=_0x2918e4,_0x5ab138=new _0x11a905({'userMessage':_0x3805ca,'contextItems':_0x57bbf0,'capabilities':_0x2f4a28,'conversationId':this['id'],'connector':this[_0x255876(0x11d)],'editor':this[_0x255876(0x125)][_0x255876(0x13c)]&&this[_0x255876(0x125)][_0x255876(0x13c)](),'model':_0x218459,'quickActionData':_0x1e91c6});return _0x5ab138[_0x255876(0x13e)](..._0x13ace8)['to'](this),this[_0x255876(0x10f)][_0x255876(0x121)](_0x5ab138),this[_0x255876(0x114)](_0x255876(0x140),_0x5ab138),_0x5ab138;}[_0x2918e4(0x15f)](_0x1046b0){const _0x5aca5c=_0x2918e4;return this[_0x5aca5c(0x10f)][_0x5aca5c(0x169)](_0x298693=>_0x298693['id']===_0x1046b0);}[_0x2918e4(0x180)](_0x535d50){const _0x482345=_0x2918e4,_0x244630=this[_0x482345(0x15f)](_0x535d50);_0x244630&&(_0x244630[_0x482345(0x126)](),this[_0x482345(0x10f)][_0x482345(0x110)](this[_0x482345(0x10f)][_0x482345(0x141)](_0x244630),0x1));}get[_0x2918e4(0x115)](){const _0x2ad3ad=_0x2918e4;return this[_0x2ad3ad(0x10f)][this[_0x2ad3ad(0x10f)][_0x2ad3ad(0x15c)]-0x1];}[_0x2918e4(0x120)](_0x2ad8fa){const _0x5cb8bf=_0x2918e4;this[_0x5cb8bf(0x14e)][_0x5cb8bf(0x120)](_0x2ad8fa);}async[_0x2918e4(0x145)]({content:_0x16fc31,version:_0x16a91a,sessionId:_0x1c8515,selections:_0x52d347}){const _0xc3988=_0x2918e4;await this[_0xc3988(0x14e)][_0xc3988(0x166)](_0x16fc31,_0x16a91a,_0x1c8515,_0x52d347);}[_0x2918e4(0x128)](){const _0x273a86=_0x2918e4;return this[_0x273a86(0x119)]?.[_0x273a86(0x10d)]()?.[_0x273a86(0x132)]||'';}[_0x2918e4(0x12f)](_0x1c39b8){const _0x1d9eac=_0x2918e4;this[_0x1d9eac(0x14e)][_0x1d9eac(0x12f)](_0x1c39b8);}[_0x2918e4(0x159)](){const _0x18130d=_0x2918e4;this[_0x18130d(0x14e)][_0x18130d(0x159)]();}[_0x2918e4(0x12a)](_0x7e563){const _0x19c2d9=_0x2918e4;this[_0x19c2d9(0x14e)][_0x19c2d9(0x12a)](_0x7e563);}[_0x2918e4(0x13b)](_0x2abd1d){const _0xd89449=_0x2918e4;this[_0xd89449(0x14e)][_0xd89449(0x13b)](_0x2abd1d);}[_0x2918e4(0x167)](_0x17968f,_0x3c6973){const _0x4c66b9=_0x2918e4;this[_0x4c66b9(0x14e)][_0x4c66b9(0x167)](_0x17968f,_0x3c6973);}[_0x2918e4(0x151)](_0x5a92fd,_0x55f181,_0x145e7d){const _0x4dbe07=_0x2918e4;return this[_0x4dbe07(0x14e)][_0x4dbe07(0x151)](_0x5a92fd,_0x55f181,_0x145e7d);}[_0x2918e4(0x176)](_0x3d3d31){const _0x3addb8=_0x2918e4;this[_0x3addb8(0x14e)][_0x3addb8(0x176)](_0x3d3d31);}[_0x2918e4(0x113)](){const _0x9e3997=_0x2918e4;this[_0x9e3997(0x14c)][_0x9e3997(0x113)]();}[_0x2918e4(0x17a)](){const _0x36e64d=_0x2918e4;this[_0x36e64d(0x14c)][_0x36e64d(0x17a)]();}[_0x2918e4(0x177)](){const _0xa639e7=_0x2918e4;return this[_0xa639e7(0x14e)][_0xa639e7(0x177)]();}[_0x2918e4(0x15d)](){const _0x46fef2=_0x2918e4;return this[_0x46fef2(0x14e)][_0x46fef2(0x15d)]();}[_0x2918e4(0x11c)](){const _0x303138=_0x2918e4;return this[_0x303138(0x14e)][_0x303138(0x11c)]();}async[_0x2918e4(0x16f)](_0x14f78a){const _0x1f3738=_0x2918e4;_0x14f78a?!0x1===await this[_0x1f3738(0x13d)][_0x1f3738(0x16a)](_0x14f78a)&&(_0x6acb(_0x1f3738(0x182),{'conversation':this,'model':_0x14f78a}),_0x14f78a=(await this[_0x1f3738(0x13d)][_0x1f3738(0x157)]())[0x0]):(_0x6acb(_0x1f3738(0x10c),{'conversation':this}),_0x14f78a=(await this[_0x1f3738(0x13d)][_0x1f3738(0x157)]())[0x0]),_0x14f78a['id']!==this[_0x1f3738(0x156)]?.['id']&&(this[_0x1f3738(0x156)]=_0x14f78a,this[_0x1f3738(0x14c)][_0x1f3738(0x17c)](),this[_0x1f3738(0x114)](_0x1f3738(0x17f),{'selectedModel':_0x14f78a}));}}function _0x4104(){const _0x3bd68d=['interactions','splice','createInteraction','error','toggleWebSearch','fire','lastInteraction','code','title','reasoning','currentInteraction','type','ai-chat-conversation-start-failed','isSelectionInContext','connector','24884QomPAZ','getConversation','addCurrentDocumentToContext','push','webSearch','attributes','getMessages','options','destroy','model','getCurrentDocumentContext','addToConversationContext','addFilesToContext','19340PJetIj','getModel','role','_processMessagesToInteractions','addSelectionToContext','conversationId','assistant','content','contextItems','modification-delta','setConversationTitle','923XLLPgW','text','handleUserInteraction','get','group','addUrlToContext','getEditor','chatModels','delegate','821388jtXIhF','interactionCreated','indexOf','3951NXWlra','createReply','341148BmXcXV','updateCurrentDocumentInContext','147ONWOoq','startConversation','1326262BmipOf','getAll','message','isStarted','chatCapabilities','selectedModelId','chatContext','getCapabilitiesConfig','quickActionData','loadSourceResources','stop','conversationInitialized','ai-chat-handle-user-interaction-start-failed','fetchConversationMessages','selectedModel','getAvailableModels','set','removeSelectionFromContext','start','sessionId','length','isCurrentDocumentInConversation','14008TareRi','getInteraction','conversationStarted','user','prompt','ai-chat-conversation-already-started','11147600XzdbjA','_extractContextItems','updateCurrentDocument','addResourceToContext','ai-chat-handle-user-conversation-not-initialized','find','isAvailable','hasOwn','45YYARJd','ai-chat-conversation-start-no-model-selected','ai-chat-conversation-init-from-id-failed','setModel','11OCqInR','fetchConversation','toLowerCase','ai-chat-conversation-init-failed','getPendingContextItems','appendContent','removeFromContext','isCurrentDocumentInContext','capabilities','init','toggleReasoning','load','reset','36LQnwyP','text-delta','modelSelected','removeInteraction','stack','ai-chat-conversation-set-model-not-available','ai-chat-handle-user-interaction-already-in-progress','populateFromMessage','ai-chat-conversation-set-model-null','getDocumentContext','currentReply'];_0x4104=function(){return _0x3bd68d;};return _0x4104();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4e0d4c=_0x2fbc;(function(_0x15038d,_0x3a384b){var _0x238255=_0x2fbc,_0x58de33=_0x15038d();while(!![]){try{var _0x260b19=-parseInt(_0x238255(0x185))/0x1+parseInt(_0x238255(0x182))/0x2*(-parseInt(_0x238255(0x184))/0x3)+parseInt(_0x238255(0x186))/0x4+parseInt(_0x238255(0x18e))/0x5+parseInt(_0x238255(0x181))/0x6+parseInt(_0x238255(0x183))/0x7*(parseInt(_0x238255(0x188))/0x8)+-parseInt(_0x238255(0x17f))/0x9;if(_0x260b19===_0x3a384b)break;else _0x58de33['push'](_0x58de33['shift']());}catch(_0x4c49b0){_0x58de33['push'](_0x58de33['shift']());}}}(_0x28ae,0x46cf8));import{AICapabilities as _0x4753c4}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x2069e7}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x599198}from'./aichatcontext.js';export class AIChatInteraction extends _0x2069e7{[_0x4e0d4c(0x179)];[_0x4e0d4c(0x17e)];[_0x4e0d4c(0x18d)]=new Map();[_0x4e0d4c(0x17b)];[_0x4e0d4c(0x17a)];constructor(_0x4fafe7){var _0x198a0b=_0x4e0d4c;super(_0x4fafe7),this[_0x198a0b(0x17e)]=_0x4fafe7[_0x198a0b(0x17e)],this[_0x198a0b(0x18d)]=_0x4fafe7[_0x198a0b(0x18d)],this[_0x198a0b(0x18a)]=_0x4fafe7[_0x198a0b(0x18a)],this[_0x198a0b(0x179)]=_0x4fafe7[_0x198a0b(0x179)],this[_0x198a0b(0x17b)]=_0x4fafe7[_0x198a0b(0x17b)],this[_0x198a0b(0x17a)]=_0x4fafe7[_0x198a0b(0x17a)];}async[_0x4e0d4c(0x17c)](){var _0x224661=_0x4e0d4c;return this[_0x224661(0x18b)][_0x224661(0x18f)]({'message':this[_0x224661(0x179)],'conversationId':this[_0x224661(0x17e)],'parts':_0x599198[_0x224661(0x17d)](this[_0x224661(0x18d)]),'capabilities':_0x4753c4[_0x224661(0x180)](this[_0x224661(0x18a)]),'model':this[_0x224661(0x17b)],'quickActionData':this[_0x224661(0x17a)]});}[_0x4e0d4c(0x18c)](){var _0x1b986d=_0x4e0d4c;return this[_0x1b986d(0x18d)][_0x1b986d(0x189)](_0x1b986d(0x187));}}function _0x2fbc(_0x4b5997,_0x271e47){var _0x28ae7a=_0x28ae();return _0x2fbc=function(_0x2fbc6b,_0x4932f7){_0x2fbc6b=_0x2fbc6b-0x179;var _0x58f631=_0x28ae7a[_0x2fbc6b];return _0x58f631;},_0x2fbc(_0x4b5997,_0x271e47);}function _0x28ae(){var _0x375458=['getDocumentContext','contextItems','2732350RJuqXk','queryAssistant','userMessage','quickActionData','model','sendRequest','mapContextItemsToRequestData','conversationId','7743789CJLnlh','getCapabilitiesRequestData','2833656dALuLJ','36020jaYfHS','14YleVyp','39sIJRYx','187294rLVhfC','1468268EnGbHD','current-document','744288vQXYqd','get','capabilities','connector'];_0x28ae=function(){return _0x375458;};return _0x28ae();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x584ace=_0x1a22;(function(_0x4dd34f,_0x1a3ebe){const _0x424ea6=_0x1a22,_0x498e90=_0x4dd34f();while(!![]){try{const _0xba7912=parseInt(_0x424ea6(0x1d9))/0x1*(parseInt(_0x424ea6(0x1d2))/0x2)+-parseInt(_0x424ea6(0x1fe))/0x3+-parseInt(_0x424ea6(0x1cd))/0x4*(-parseInt(_0x424ea6(0x202))/0x5)+-parseInt(_0x424ea6(0x1d4))/0x6*(parseInt(_0x424ea6(0x1e4))/0x7)+-parseInt(_0x424ea6(0x1c6))/0x8*(parseInt(_0x424ea6(0x1d6))/0x9)+-parseInt(_0x424ea6(0x1d7))/0xa+parseInt(_0x424ea6(0x1c2))/0xb*(parseInt(_0x424ea6(0x1fd))/0xc);if(_0xba7912===_0x1a3ebe)break;else _0x498e90['push'](_0x498e90['shift']());}catch(_0x481453){_0x498e90['push'](_0x498e90['shift']());}}}(_0x379e,0x631ad));function _0x379e(){const _0xdff50c=['ck-ai-chat-controls','_handlePromptInputFocus','433448tQMmjo','addContextButtonView','_contextPanelView','bindTemplate','setAddContextOptions','2aYgtDz','_promptCapabilitiesView','204HPioPF','setWebSearch','495NOeYRu','7763680Obttoz','setTemplate','509861CEbBbP','div','populateSourceResourceBalloon','_createLoaderView','delegate','ck-ai-chat-controls-model-unavailable-message','contextResourcesSearchInputVisibleFrom','focusPromptInput','setContextItemLoading','clearConversationContextUI','_loaderView','31038PNxKuS','isDisabled','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','_displayedModels','toggleWebSearch','toggleReasoning','setIsUploadInProgress','_modelUnavailableMessageView','form','startConversation','agent','_createPromptCapabilitiesView','clearConversationContextItems','reset','isLoading','_createModelUnavailableMessageView','resetMessageInput','setModel','selectModel','disableModelSelector','sendUserMessage','setReasoning','startsWith','setConversationContext','ck-ai-chat-controls-disabled','5044836KJNBUY','2193174AbosiS','updateResourceState','ck-ai-chat-controls__start-new-chat-button','element','25ePuLtB','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','find','abortPromptStream','execute','locale','isModelAvailable','setPlaceholderText','setInputPlaceholder','removeContextItem','clearCurrentContextItems','set','closeSourceResourceBalloon','_createPromptInputView','ck-hidden','_shouldRestorePromptInputFocus','addContextItem','low','focus','33dBhShJ','bodyCollection','_promptInputView','change:isLoading','36184esyyJZ','enableModelSelector','setModelList','_createContextPanelView','clearPendingContextUI'];_0x379e=function(){return _0xdff50c;};return _0x379e();}import{ButtonView as _0xce73dd,clickOutsideHandler as _0x45a81e,View as _0x4a1f35}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x15231c}from'./controls/aichatpromptinputview.js';function _0x1a22(_0x2f116a,_0x8e3cfb){const _0x379e33=_0x379e();return _0x1a22=function(_0x1a22b0,_0x4cd0c0){_0x1a22b0=_0x1a22b0-0x1b8;let _0x276281=_0x379e33[_0x1a22b0];return _0x276281;},_0x1a22(_0x2f116a,_0x8e3cfb);}import{AIChatPromptCapabilitiesView as _0x1a4362}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x250f7e,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x2b1293}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x2c8136}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x15ab7a}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x4a1f35{[_0x584ace(0x1e7)]=[];[_0x584ace(0x1cf)];[_0x584ace(0x1c4)];[_0x584ace(0x1d3)];[_0x584ace(0x1e3)];[_0x584ace(0x1eb)];[_0x584ace(0x1be)];constructor(_0x2aed8d,_0x14856c){const _0x35446a=_0x584ace;super(_0x2aed8d),this[_0x35446a(0x1cf)]=this[_0x35446a(0x1c9)](_0x2aed8d,{'bodyCollection':_0x14856c[_0x35446a(0x1c3)],'searchInputVisibleFrom':_0x14856c[_0x35446a(0x1df)]}),this[_0x35446a(0x1c4)]=this[_0x35446a(0x1bc)](_0x2aed8d),this[_0x35446a(0x1d3)]=this[_0x35446a(0x1ef)](_0x2aed8d),this[_0x35446a(0x1e3)]=this[_0x35446a(0x1dc)](_0x2aed8d),this[_0x35446a(0x1eb)]=this[_0x35446a(0x1f3)](_0x2aed8d),this[_0x35446a(0x1be)]=!0x1,this[_0x35446a(0x1c4)][_0x35446a(0x1dd)](_0x35446a(0x1f8))['to'](this),this[_0x35446a(0x1e3)][_0x35446a(0x1dd)](_0x35446a(0x205))['to'](this),this[_0x35446a(0x1d3)][_0x35446a(0x1dd)](_0x35446a(0x1e8))['to'](this),this[_0x35446a(0x1d3)][_0x35446a(0x1dd)](_0x35446a(0x1e9))['to'](this),this[_0x35446a(0x1d3)][_0x35446a(0x1dd)](_0x35446a(0x1f6))['to'](this),this[_0x35446a(0x1cf)][_0x35446a(0x1dd)](..._0x2b1293)['to'](this),this[_0x35446a(0x1ba)](_0x35446a(0x208),!0x0),this[_0x35446a(0x1ba)](_0x35446a(0x1e5),!0x1);const _0x10424d=this[_0x35446a(0x1d0)];this[_0x35446a(0x1d8)]({'tag':_0x35446a(0x1ec),'attributes':{'class':['ck',_0x35446a(0x1cb),_0x10424d['if'](_0x35446a(0x1e5),_0x35446a(0x1fc))]},'children':[{'tag':_0x35446a(0x1da),'attributes':{'class':[_0x10424d['if'](_0x35446a(0x1f2),_0x35446a(0x1bd),_0x5a0685=>_0x5a0685||!this[_0x35446a(0x208)]),_0x10424d['if'](_0x35446a(0x208),_0x35446a(0x1bd),_0x466570=>!_0x466570||this[_0x35446a(0x1f2)])]},'children':[this[_0x35446a(0x1cf)],this[_0x35446a(0x1c4)],this[_0x35446a(0x1d3)]]},{'tag':_0x35446a(0x1da),'attributes':{'class':[_0x10424d['if'](_0x35446a(0x1f2),_0x35446a(0x1bd),_0x2c4e5f=>!_0x2c4e5f)]},'children':[this[_0x35446a(0x1e3)]]},{'tag':_0x35446a(0x1da),'attributes':{'class':[_0x10424d['if'](_0x35446a(0x208),_0x35446a(0x1bd),_0x548b50=>_0x548b50)]},'children':[this[_0x35446a(0x1eb)]]}]}),_0x45a81e({'emitter':this[_0x35446a(0x1c4)],'activator':()=>this[_0x35446a(0x1f2)],'contextElements':()=>[this[_0x35446a(0x201)]],'callback':()=>{const _0x4beb71=_0x35446a;this[_0x4beb71(0x1be)]=!0x1;}}),this['on'](_0x35446a(0x1c5),this[_0x35446a(0x1cc)],{'priority':_0x35446a(0x1c0)});}[_0x584ace(0x1c9)](_0x46ae23,_0x3da0ba){return new _0x250f7e(_0x46ae23,_0x3da0ba);}[_0x584ace(0x1bc)](_0x514741){const _0x2d6ba4=_0x584ace;return new _0x15231c(_0x514741,this[_0x2d6ba4(0x1cf)][_0x2d6ba4(0x1ce)]);}[_0x584ace(0x1ef)](_0x13aca2){return new _0x1a4362(_0x13aca2);}[_0x584ace(0x1dc)](_0x176931){return new _0x2c8136(_0x176931);}[_0x584ace(0x1f3)](_0x36f5af){const _0x1216e4=_0x584ace,_0x39cda4=new ws(_0x36f5af);return _0x39cda4[_0x1216e4(0x1dd)](_0x1216e4(0x1ed))['to'](this),_0x39cda4;}[_0x584ace(0x1cc)](_0x159cba,_0x1a1310,_0x4ecbbb){const _0x23acc7=_0x584ace;_0x4ecbbb?this[_0x23acc7(0x1be)]=!0x0:this[_0x23acc7(0x1be)]&&this[_0x23acc7(0x1c4)][_0x23acc7(0x1c1)]();}[_0x584ace(0x1bf)](_0x29b716,_0x250a6c){const _0x567e31=_0x584ace;this[_0x567e31(0x1cf)][_0x567e31(0x1bf)](_0x29b716,_0x250a6c);}[_0x584ace(0x1b8)](_0x25ecc5){const _0x23469d=_0x584ace;this[_0x23469d(0x1cf)][_0x23469d(0x1b8)](_0x25ecc5);}[_0x584ace(0x1e1)](_0x5140ba,_0x5ed7e0){const _0xef2a3e=_0x584ace;this[_0xef2a3e(0x1cf)][_0xef2a3e(0x1e1)](_0x5140ba,_0x5ed7e0);}[_0x584ace(0x1ea)](_0xb19289){const _0x8b393c=_0x584ace;this[_0x8b393c(0x1c4)][_0x8b393c(0x1ea)](_0xb19289);}[_0x584ace(0x1fb)](_0x2c0ebf){const _0x333ce2=_0x584ace;this[_0x333ce2(0x1cf)][_0x333ce2(0x1fb)](_0x2c0ebf);}[_0x584ace(0x1ca)](){const _0x53c04d=_0x584ace;this[_0x53c04d(0x1cf)][_0x53c04d(0x1b9)]();}[_0x584ace(0x1e2)](){const _0x3f8750=_0x584ace;this[_0x3f8750(0x1cf)][_0x3f8750(0x1f0)]();}[_0x584ace(0x1ff)](_0xe3430c,_0x4c3c76,_0x122ea7){const _0x4a40b7=_0x584ace;this[_0x4a40b7(0x1cf)][_0x4a40b7(0x1ff)](_0xe3430c,_0x4c3c76,_0x122ea7);}[_0x584ace(0x1d5)](_0x223f8d){const _0x4bf2d5=_0x584ace;this[_0x4bf2d5(0x1d3)][_0x4bf2d5(0x1d5)](_0x223f8d);}[_0x584ace(0x1f9)](_0x3329c7){const _0x448b42=_0x584ace;this[_0x448b42(0x1d3)][_0x448b42(0x1f9)](_0x3329c7);}[_0x584ace(0x1f4)](){const _0xb18d86=_0x584ace;this[_0xb18d86(0x1c4)][_0xb18d86(0x1f1)]();}[_0x584ace(0x1d1)](_0x5dc58d){const _0x2bb07b=_0x584ace;this[_0x2bb07b(0x1cf)][_0x2bb07b(0x1d1)](_0x5dc58d);}[_0x584ace(0x20a)](_0x1f7d13){const _0x462854=_0x584ace;this[_0x462854(0x1c4)][_0x462854(0x209)](_0x1f7d13);}[_0x584ace(0x1c8)](_0x7fa92e,_0x4dea3e){const _0x352919=_0x584ace;this[_0x352919(0x1e7)]=_0x7fa92e,this[_0x352919(0x1d3)][_0x352919(0x1c8)](_0x7fa92e,_0x4dea3e);}[_0x584ace(0x1f5)](_0x2c3bde){const _0x2f9e91=_0x584ace;(_0x2c3bde?this[_0x2f9e91(0x1e7)][_0x2f9e91(0x204)](_0x5ed4f1=>_0x5ed4f1['id']===_0x2c3bde['id']):null)?(this[_0x2f9e91(0x208)]=!0x0,this[_0x2f9e91(0x1d3)][_0x2f9e91(0x1f5)](_0x2c3bde)):_0x2c3bde?.['id'][_0x2f9e91(0x1fa)](_0x2f9e91(0x1ee))?(this[_0x2f9e91(0x208)]=!0x0,this[_0x2f9e91(0x1d3)][_0x2f9e91(0x1f5)](this[_0x2f9e91(0x1e7)][0x0])):this[_0x2f9e91(0x208)]=!0x1;}[_0x584ace(0x1c7)](){const _0x14ee17=_0x584ace;this[_0x14ee17(0x1d3)][_0x14ee17(0x1c7)]();}[_0x584ace(0x1f7)](_0x5420c1){const _0x4e16e3=_0x584ace;this[_0x4e16e3(0x1d3)][_0x4e16e3(0x1f7)](_0x5420c1);}[_0x584ace(0x1db)](_0x9e0408,_0x242a80,_0x37a920,_0x3b6f29){const _0x110145=_0x584ace;this[_0x110145(0x1cf)][_0x110145(0x1db)](_0x9e0408,_0x242a80,_0x37a920,_0x3b6f29);}[_0x584ace(0x1bb)](_0x14f5f9){const _0x5ece83=_0x584ace;this[_0x5ece83(0x1cf)][_0x5ece83(0x1bb)](_0x14f5f9);}[_0x584ace(0x1e0)](){const _0x3dd7d0=_0x584ace;this[_0x3dd7d0(0x1c4)][_0x3dd7d0(0x1c1)]();}}class ws extends _0x4a1f35{constructor(_0x3de5f6){const _0x5a4972=_0x584ace;super(_0x3de5f6);const _0x193956=new _0xce73dd(_0x3de5f6);_0x193956[_0x5a4972(0x1ba)]({'label':_0x15ab7a(this[_0x5a4972(0x207)],_0x5a4972(0x203)),'withText':!0x0,'class':[_0x5a4972(0x200)],'tooltip':''}),_0x193956[_0x5a4972(0x1dd)](_0x5a4972(0x206))['to'](this,_0x5a4972(0x1ed)),this[_0x5a4972(0x1d8)]({'tag':_0x5a4972(0x1da),'attributes':{'class':['ck',_0x5a4972(0x1de)]},'children':[{'tag':'p','children':[{'text':_0x15ab7a(this[_0x5a4972(0x207)],_0x5a4972(0x1e6))+'\x20'},_0x193956]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd2dd64=_0x30c3;(function(_0x462682,_0x4d0ded){const _0xeffcca=_0x30c3,_0x43b881=_0x462682();while(!![]){try{const _0x4c07e4=-parseInt(_0xeffcca(0xb3))/0x1+parseInt(_0xeffcca(0xcb))/0x2+parseInt(_0xeffcca(0xe6))/0x3+-parseInt(_0xeffcca(0xae))/0x4+-parseInt(_0xeffcca(0xab))/0x5+-parseInt(_0xeffcca(0xd8))/0x6+parseInt(_0xeffcca(0xb4))/0x7*(parseInt(_0xeffcca(0xee))/0x8);if(_0x4c07e4===_0x4d0ded)break;else _0x43b881['push'](_0x43b881['shift']());}catch(_0x182c50){_0x43b881['push'](_0x43b881['shift']());}}}(_0x3ac5,0x36d9b));import{CKEditorError as _0x10929f,logWarning as _0x5882ea,scrollViewportToShowTarget as _0x1cdbbd}from'ckeditor5/src/utils.js';import{View as _0x32b5dd}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x56043d}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x159c08}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x2014e8}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x4f6bc7}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x19820c}from'./feed/aichatfeederroritemview.js';function _0x30c3(_0x2189ec,_0x3e6890){const _0x3ac51c=_0x3ac5();return _0x30c3=function(_0x30c3f2,_0x210f95){_0x30c3f2=_0x30c3f2-0xaa;let _0x4144b1=_0x3ac51c[_0x30c3f2];return _0x4144b1;},_0x30c3(_0x2189ec,_0x3e6890);}import{AIChatFeedInteractionHeaderView as _0x5c05ac}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x22ffd0}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x24d3e0,SKELETON_DEFINITIONS as _0x18d1da}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x1100b9}from'../../aicore/ui/aispinner.js';function _0x3ac5(){const _0x3e9feb=['_bodyCollection','_createTemplateChildren','777060etLHUP','_createFeedLoader','loadingMessage','1198760HBjxGX','markAsDone','ai-suggestion-reply','div','bind','38750QaruDn','763JrtlFi','_setupTemplate','find','interaction-header','createCollection','set','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','updateSources','ck-ai-chat__loader-text','clear','updateWebSources','updatePartState','removeItem','getItemIds','updateSuggestionItem','children','getItemById','render','add','ai-chat-feed-view-item-not-a-reply-item','element','delegate','startAutoScroll','63384InjzUU','remove','map','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ai-chat-feed-view-item-not-a-suggestion-item','destroy','_createFeedItems','ck-ai-chat__loader','getPartView','stop','ai-reply','locale','toggleLoadingSkeleton','415824gQJBYh','extendTemplate','scrollManager','bindTemplate','ck-hidden','scrollToSuggestion','updateContent','setTemplate','user-message','isPending','isLoadingSkeletonVisible','isTrackChangesOn','ck-ai-chat__feed__items','_createSkeletonLoader','737706lwUWza','isVisible','aiFeed','ck-ai-chat__feed','span','updateReplyItem','includes','ai-chat-feed-view-item-not-found','37448OwPJkE','setLoadingMessage','_createLoaderChildren','start','markItemAsDone','updateSuggestionPartState','stopAutoScroll','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','options','addItem'];_0x3ac5=function(){return _0x3e9feb;};return _0x3ac5();}export class AIChatFeedView extends _0x32b5dd{[_0xd2dd64(0xc3)];[_0xd2dd64(0xda)];[_0xd2dd64(0xf8)];constructor(_0x461c59,_0x234e2d){const _0x5466e2=_0xd2dd64;super(_0x461c59),this[_0x5466e2(0xf8)]=_0x234e2d,this[_0x5466e2(0xb9)](_0x5466e2(0xe1),!0x1),this[_0x5466e2(0xb9)](_0x5466e2(0xad),''),this[_0x5466e2(0xb9)](_0x5466e2(0xe2),!0x1),this[_0x5466e2(0xb9)](_0x5466e2(0xe3),!0x1),this[_0x5466e2(0xc3)]=this[_0x5466e2(0xb8)](),this[_0x5466e2(0xc3)][_0x5466e2(0xc9)](..._0x56043d)['to'](this),this[_0x5466e2(0xb5)]();}[_0xd2dd64(0xc5)](){const _0x40a8df=_0xd2dd64;super[_0x40a8df(0xc5)](),this[_0x40a8df(0xda)]=new _0x22ffd0(this[_0x40a8df(0xc8)]);}[_0xd2dd64(0xd0)](){const _0xf6f924=_0xd2dd64;super[_0xf6f924(0xd0)](),this[_0xf6f924(0xda)][_0xf6f924(0xd0)]();}[_0xd2dd64(0xbd)](){const _0xfde941=_0xd2dd64;this[_0xfde941(0xc3)][_0xfde941(0xbd)]();}[_0xd2dd64(0xf7)](_0x22adb3,_0x25c428){const _0x436222=_0xd2dd64;let _0x494c6f;_0x436222(0xd5)===_0x22adb3?_0x494c6f=new _0x2014e8(this[_0x436222(0xd6)],_0x25c428):_0x436222(0xb0)===_0x22adb3?(_0x494c6f=new _0x159c08(this[_0x436222(0xd6)],_0x25c428),_0x494c6f[_0x436222(0xb2)](_0x436222(0xe3))['to'](this,_0x436222(0xe3))):_0x494c6f=_0x436222(0xe0)===_0x22adb3?new _0x4f6bc7(this[_0x436222(0xd6)],_0x25c428,this[_0x436222(0xf8)]):_0x436222(0xb7)===_0x22adb3?new _0x5c05ac(this[_0x436222(0xd6)],_0x25c428):new _0x19820c(_0x25c428),this[_0x436222(0xc3)][_0x436222(0xc6)](_0x494c6f);}async[_0xd2dd64(0xeb)]({id:_0x3ee8e8,parsedContent:_0x5acf00,renderingStrategy:_0x1ab89f,abortSignal:_0x111e4c}){const _0x1e3c4d=_0xd2dd64,_0x1a675a=this[_0x1e3c4d(0xc4)](_0x3ee8e8);if(!(_0x1a675a instanceof _0x2014e8))throw new _0x10929f(_0x1e3c4d(0xc7),null,{'itemView':_0x1a675a,'id':_0x3ee8e8,'parsedContent':_0x5acf00});await _0x1a675a[_0x1e3c4d(0xde)]({'parsedContent':_0x5acf00,'renderingStrategy':_0x1ab89f,'abortSignal':_0x111e4c});}async[_0xd2dd64(0xbe)](_0x49909c,_0x1750bb){const _0x5048ae=_0xd2dd64,_0x2b0994=this[_0x5048ae(0xc4)](_0x49909c);if(_0x2b0994 instanceof _0x159c08)_0x2b0994[_0x5048ae(0xbb)](_0x1750bb);else{if(!(_0x2b0994 instanceof _0x2014e8))throw new _0x10929f(_0x5048ae(0xf5),null,{'itemView':_0x2b0994,'id':_0x49909c,'sources':_0x1750bb});_0x2b0994[_0x5048ae(0xbb)](_0x1750bb);}}async[_0xd2dd64(0xc2)]({id:_0xf28767,parts:_0x2d1bbb,renderingStrategy:_0x605610,abortSignal:_0x4f82d3}){const _0xdc6bf5=_0xd2dd64,_0x5f4be0=this[_0xdc6bf5(0xc4)](_0xf28767);if(!(_0x5f4be0 instanceof _0x159c08))throw new _0x10929f(_0xdc6bf5(0xcf),null,{'itemView':_0x5f4be0,'id':_0xf28767,'parts':_0x2d1bbb});await _0x5f4be0[_0xdc6bf5(0xde)]({'parts':_0x2d1bbb,'renderingStrategy':_0x605610,'abortSignal':_0x4f82d3});}[_0xd2dd64(0xf3)]({id:_0x9c4c2e,index:_0xa6c2c4,state:_0x2b6e12}){const _0x472ff1=_0xd2dd64,_0x489d02=this[_0x472ff1(0xc4)](_0x9c4c2e);if(!(_0x489d02 instanceof _0x159c08))throw new _0x10929f(_0x472ff1(0xcf),this,{'id':_0x9c4c2e});_0x489d02[_0x472ff1(0xbf)](_0xa6c2c4,_0x2b6e12);}[_0xd2dd64(0xf2)](_0xbc9a7a){const _0x443e0a=_0xd2dd64;this[_0x443e0a(0xc4)](_0xbc9a7a)[_0x443e0a(0xaf)]();}[_0xd2dd64(0xc1)](){const _0x2f37c0=_0xd2dd64;return this[_0x2f37c0(0xc3)][_0x2f37c0(0xcd)](_0x396fa6=>_0x396fa6[_0x2f37c0(0xf6)]['id']);}[_0xd2dd64(0xc0)](_0x11fb01){const _0x2c14fc=_0xd2dd64;this[_0x2c14fc(0xc3)][_0x2c14fc(0xcc)](this[_0x2c14fc(0xc4)](_0x11fb01));}[_0xd2dd64(0xdd)](_0x3cc740,_0x1a7140){const _0x3e2f93=_0xd2dd64,_0xa4d879=this[_0x3e2f93(0xc4)](_0x3cc740);if(!(_0xa4d879 instanceof _0x159c08))return void _0x5882ea(_0x3e2f93(0xce),{'replyId':_0x3cc740,'partIndex':_0x1a7140});const _0x414ba4=_0xa4d879[_0x3e2f93(0xd3)](_0x1a7140);_0x414ba4?_0x1cdbbd({'target':_0x414ba4[_0x3e2f93(0xc8)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x5882ea(_0x3e2f93(0xba),{'replyId':_0x3cc740,'partIndex':_0x1a7140});}[_0xd2dd64(0xb5)](){const _0x19eabf=_0xd2dd64;this[_0x19eabf(0xdf)]({'tag':_0x19eabf(0xb1),'attributes':{'class':['ck',_0x19eabf(0xe9)]},'children':this[_0x19eabf(0xaa)]()});}[_0xd2dd64(0xaa)](){const _0x42f272=_0xd2dd64,_0xdec815=this[_0x42f272(0xe5)]();return[this[_0x42f272(0xd1)](),_0xdec815,this[_0x42f272(0xac)]()];}[_0xd2dd64(0xe5)](){const _0x1467ff=_0xd2dd64,_0x42751c=new _0x24d3e0(this[_0x1467ff(0xd6)],_0x18d1da[_0x1467ff(0xe8)]);return _0x42751c[_0x1467ff(0xd9)]({'attributes':{'class':[this[_0x1467ff(0xdb)]['if'](_0x1467ff(0xe2),_0x1467ff(0xdc),_0x1ec5d3=>!_0x1ec5d3)]}}),_0x42751c;}[_0xd2dd64(0xd1)](){const _0x59c7b3=_0xd2dd64,_0x248041=new _0x32b5dd(this[_0x59c7b3(0xd6)]);return _0x248041[_0x59c7b3(0xdf)]({'tag':_0x59c7b3(0xb1),'attributes':{'class':['ck',_0x59c7b3(0xe4),this[_0x59c7b3(0xdb)]['if'](_0x59c7b3(0xe2),_0x59c7b3(0xdc))]},'children':this[_0x59c7b3(0xc3)]}),_0x248041;}[_0xd2dd64(0xac)](){const _0x5e8bee=_0xd2dd64,_0x55fecc=new _0x32b5dd(this[_0x5e8bee(0xd6)]);return _0x55fecc[_0x5e8bee(0xdf)]({'tag':_0x5e8bee(0xb1),'attributes':{'class':['ck',_0x5e8bee(0xd2),this[_0x5e8bee(0xdb)]['if'](_0x5e8bee(0xe1),_0x5e8bee(0xdc),_0x3778bb=>!_0x3778bb)]},'children':this[_0x5e8bee(0xf0)]()}),_0x55fecc;}[_0xd2dd64(0xf0)](){const _0x4d34a8=_0xd2dd64,_0x565c67=new _0x1100b9();return _0x565c67[_0x4d34a8(0xe7)]=!0x0,[_0x565c67,{'tag':_0x4d34a8(0xea),'attributes':{'class':['ck',_0x4d34a8(0xbc)]},'children':[{'text':this[_0x4d34a8(0xdb)]['to'](_0x4d34a8(0xad))}]}];}[_0xd2dd64(0xc4)](_0x4084e1){const _0x4deae4=_0xd2dd64,_0x25a0aa=this[_0x4deae4(0xc3)][_0x4deae4(0xb6)](_0x634dc6=>_0x634dc6[_0x4deae4(0xf6)]['id'][_0x4deae4(0xec)](_0x4084e1));if(!_0x25a0aa)throw new _0x10929f(_0x4deae4(0xed),this,{'id':_0x4084e1});return _0x25a0aa;}[_0xd2dd64(0xef)](_0x51eb9f){const _0x41362e=_0xd2dd64;this[_0x41362e(0xb9)](_0x41362e(0xad),_0x51eb9f);}[_0xd2dd64(0xd7)](_0x37b3c2){const _0x337024=_0xd2dd64;this[_0x337024(0xb9)](_0x337024(0xe2),_0x37b3c2);}[_0xd2dd64(0xca)](){const _0x3b5569=_0xd2dd64;this[_0x3b5569(0xda)][_0x3b5569(0xf1)]();}[_0xd2dd64(0xf4)](){const _0x19e992=_0xd2dd64;this[_0x19e992(0xda)][_0x19e992(0xd4)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xdb7ad2=_0xa68f;(function(_0x105cc6,_0x3b2b2d){var _0x27dbeb=_0xa68f,_0x54ac8f=_0x105cc6();while(!![]){try{var _0x3d6a28=-parseInt(_0x27dbeb(0xf4))/0x1*(-parseInt(_0x27dbeb(0xed))/0x2)+-parseInt(_0x27dbeb(0xf5))/0x3+parseInt(_0x27dbeb(0x100))/0x4*(-parseInt(_0x27dbeb(0xec))/0x5)+parseInt(_0x27dbeb(0xf6))/0x6*(-parseInt(_0x27dbeb(0x102))/0x7)+-parseInt(_0x27dbeb(0x105))/0x8*(-parseInt(_0x27dbeb(0xeb))/0x9)+parseInt(_0x27dbeb(0x104))/0xa*(-parseInt(_0x27dbeb(0xe8))/0xb)+-parseInt(_0x27dbeb(0xf8))/0xc*(-parseInt(_0x27dbeb(0xee))/0xd);if(_0x3d6a28===_0x3b2b2d)break;else _0x54ac8f['push'](_0x54ac8f['shift']());}catch(_0x3bbf39){_0x54ac8f['push'](_0x54ac8f['shift']());}}}(_0x406a,0xb75c6));import{View as _0x943f85,BodyCollection as _0x5854b8}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x464e90}from'../utils/eventnames.js';import{AIChatFeedView as _0x57a75b}from'./aichatfeedview.js';function _0xa68f(_0x59f0b9,_0x17dde7){var _0x406a25=_0x406a();return _0xa68f=function(_0xa68f1c,_0x221544){_0xa68f1c=_0xa68f1c-0xe8;var _0x2ff0f0=_0x406a25[_0xa68f1c];return _0x2ff0f0;},_0xa68f(_0x59f0b9,_0x17dde7);}import{AIChatControlsView as _0x57aea4}from'./aichatcontrolsview.js';function _0x406a(){var _0x380f39=['detachFromDom','230SazoEj','40kqDNYw','chatHeader','uiLanguageDirection','511478ThQkNI','chatFeed','ck-reset_all','234162FCJiNg','5FTgzCj','38014nsXToq','3954665OTqOTF','showResizeButton','_bodyCollection','populateSourceResourceBalloon','setTemplate','chatControls','37lVWxmK','1509777yhRBgh','12oOSRNB','destroy','132qCOScB','closeSourceResourceBalloon','contextResourcesSearchInputVisibleFrom','attachToDom','chatDisclaimer','ck-rounded-corners','delegate','div','5859876aQFyLU','ck-ai-chat','1368066ePmaAd'];_0x406a=function(){return _0x380f39;};return _0x406a();}import{AIChatHeaderView as _0xff15cf}from'./aichatheaderview.js';import{AIDisclaimerView as _0x5afa0a}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x943f85{[_0xdb7ad2(0x106)];[_0xdb7ad2(0xe9)];[_0xdb7ad2(0xf3)];[_0xdb7ad2(0xfc)];[_0xdb7ad2(0xf0)];constructor(_0x3cefde,_0xbb3127){var _0x391790=_0xdb7ad2;super(_0x3cefde),this[_0x391790(0xf0)]=new _0x5854b8(_0x3cefde),this[_0x391790(0xf0)][_0x391790(0xfb)](),this[_0x391790(0x106)]=new _0xff15cf(_0x3cefde,_0xbb3127[_0x391790(0xef)]),this[_0x391790(0x106)][_0x391790(0xfe)](..._0x464e90)['to'](this),this[_0x391790(0xe9)]=new _0x57a75b(_0x3cefde,this[_0x391790(0xf0)]),this[_0x391790(0xe9)][_0x391790(0xfe)](..._0x464e90)['to'](this),this[_0x391790(0xf3)]=new _0x57aea4(_0x3cefde,{'bodyCollection':this[_0x391790(0xf0)],'contextResourcesSearchInputVisibleFrom':_0xbb3127[_0x391790(0xfa)]}),this[_0x391790(0xf3)][_0x391790(0xfe)](..._0x464e90)['to'](this),this[_0x391790(0xfc)]=new _0x5afa0a(_0x3cefde),this[_0x391790(0xf2)]({'tag':_0x391790(0xff),'attributes':{'class':['ck',_0x391790(0xea),_0x391790(0x101),_0x391790(0xfd)],'dir':_0x3cefde[_0x391790(0x107)]},'children':[this[_0x391790(0x106)],this[_0x391790(0xe9)],this[_0x391790(0xf3)],this[_0x391790(0xfc)]]});}[_0xdb7ad2(0xf1)](_0x3fe8d7,_0x42d2bd,_0xf35c19,_0x84fbb2){var _0x1c08c3=_0xdb7ad2;this[_0x1c08c3(0xf3)][_0x1c08c3(0xf1)](_0x3fe8d7,_0x42d2bd,_0xf35c19,_0x84fbb2);}[_0xdb7ad2(0xf9)](_0x1e7c84){var _0x1745a1=_0xdb7ad2;this[_0x1745a1(0xf3)][_0x1745a1(0xf9)](_0x1e7c84);}[_0xdb7ad2(0xf7)](){var _0x2df4ab=_0xdb7ad2;this[_0x2df4ab(0xf0)][_0x2df4ab(0x103)](),super[_0x2df4ab(0xf7)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x331c88=_0x3bf2;(function(_0xfb714c,_0x384375){const _0x2678bd=_0x3bf2,_0x2c1064=_0xfb714c();while(!![]){try{const _0x5a3be3=-parseInt(_0x2678bd(0xc7))/0x1*(-parseInt(_0x2678bd(0xe6))/0x2)+-parseInt(_0x2678bd(0xc1))/0x3*(parseInt(_0x2678bd(0xed))/0x4)+-parseInt(_0x2678bd(0xf2))/0x5*(-parseInt(_0x2678bd(0xa2))/0x6)+parseInt(_0x2678bd(0x8d))/0x7*(-parseInt(_0x2678bd(0xc3))/0x8)+-parseInt(_0x2678bd(0x6f))/0x9+-parseInt(_0x2678bd(0xa6))/0xa*(parseInt(_0x2678bd(0x87))/0xb)+parseInt(_0x2678bd(0x7b))/0xc*(parseInt(_0x2678bd(0xf9))/0xd);if(_0x5a3be3===_0x384375)break;else _0x2c1064['push'](_0x2c1064['shift']());}catch(_0x452f4b){_0x2c1064['push'](_0x2c1064['shift']());}}}(_0x3099,0x308e9));function _0x3bf2(_0x7971e1,_0x4bc379){const _0x30990a=_0x3099();return _0x3bf2=function(_0x3bf2f0,_0x521258){_0x3bf2f0=_0x3bf2f0-0x6f;let _0x2ea22a=_0x30990a[_0x3bf2f0];return _0x2ea22a;},_0x3bf2(_0x7971e1,_0x4bc379);}function _0x3099(){const _0x4998f9=['height','0px','_handleShowMoreButtonClick','cssClasses','1390446PEgJCf','querySelector','controlsButton','execute','10ybFehv','ck-calculation-container','children','tagName','forEach','some','_distributeChips','hideBalloonPanel','_restoreAncestorVisibility','pointerEvents','_createShowMoreButtonView','visible','getBoundingClientRect','includes','reorganizeChips','body','disableAnimationOnEnter','zIndex','clear','_isContainerVisible','destroy','_containerElement','-9999px','_bodyCollection','setContainerElement','toLowerCase','bottom','3Uvznjw','position','24120yFhUZy','_createShowMoreButton','50px','none','16iyUKWr','innerHTML','style','push','pin','left','show','from','width','_setupVisibilityObserver','div','button','disconnect','element','abs','_overflowChips','top','pop','parentElement','filter','_pendingCalculation','calculationContainer','_checkAndHandleOverflow','offsetWidth','maxVisibleRows','_config','opacity','visibility','remove','_ancestorsToRestore','overflowChips','17594HAgHcM','content','_renderChipsAndCountRows','label','observe','+\x201','300px','1299636GORNbA','render','_locale','showMoreButton','length','5fIupzv','clientWidth','boxSizing','rowDetectionTolerance','isIntersecting','display','_calculateContainerWidth','525668PFIXFE','_showMoreButtonView','isVisible','setTemplate','_applyOverflowResults','createElement','isConnected','_calculateOverflowInContainer','_createShowMoreBalloonPanelView','isOn','_findTargetContainer','add','hidden','750321EEliZW','border-box','block','.ck-ai-chat','cloneNode','overflowContainer','getComputedStyle','appendChild','_createMockButton','_updateShowMoreButtonVisibility','_createCalculationContainer','innerHeight','240SgYSVC','classList','right','_parentView','slice','absolute','_repinBalloonPanel','_createContainerElements','_makeAncestorsVisible','set','_targetContainer','_applyCalculationStyles','2235211sGVSRu','showMoreBalloon','_visibleChips','textContent','showBalloonPanel','documentElement','861rGPcfA','_showMoreBalloonPanelView','showMoreLabelPrefix','innerWidth','block\x20!important','extendTemplate','className','undefined','hide','clientHeight','_intersectionObserver','visible\x20!important','_testButtonFit','_updateOverflowUI','auto','showMoreButtonView','_updateBalloonContent'];_0x3099=function(){return _0x4998f9;};return _0x3099();}import{View as _0x27c4c3,BalloonPanelView as _0x1e4904,ButtonView as _0x18472b,clickOutsideHandler as _0x1f79a0}from'ckeditor5/src/ui.js';import{Collection as _0x392554}from'ckeditor5/src/utils.js';const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},dn=_0x331c88(0xec);export class AIChatChipsOverflowManager{[_0x331c88(0xef)];[_0x331c88(0xe0)];[_0x331c88(0x89)];[_0x331c88(0xd6)];[_0x331c88(0xfa)]=null;[_0x331c88(0x8e)]=null;[_0x331c88(0xbb)]=null;[_0x331c88(0xbd)];[_0x331c88(0x7e)]=null;[_0x331c88(0x97)]=null;[_0x331c88(0xdb)]=!0x1;constructor(_0x5d093b,_0x26b5c6,_0x598684,_0x2fe18b,_0x5e6fe0){const _0x54505f=_0x331c88;this[_0x54505f(0xef)]=_0x5d093b,this[_0x54505f(0x89)]=_0x26b5c6,this[_0x54505f(0xe0)]={...wn,..._0x598684,'cssClasses':{'controlsButton':'','calculationContainer':_0x54505f(0xa7),..._0x598684[_0x54505f(0xa1)]}},this[_0x54505f(0xd6)]=new _0x392554(),this[_0x54505f(0xbd)]=_0x2fe18b,this[_0x54505f(0x7e)]=_0x5e6fe0||null;}[_0x331c88(0xbe)](_0x2c7eb2){const _0x5af7de=_0x331c88;this[_0x5af7de(0x97)]&&(this[_0x5af7de(0x97)][_0x5af7de(0xd3)](),this[_0x5af7de(0x97)]=null),this[_0x5af7de(0xbb)]=_0x2c7eb2,this[_0x5af7de(0xd0)]();}get[_0x331c88(0x9c)](){const _0x201c1d=_0x331c88;return this[_0x201c1d(0xfa)];}get[_0x331c88(0xe5)](){const _0x47ab6c=_0x331c88;return this[_0x47ab6c(0xd6)];}[_0x331c88(0xb4)](){requestAnimationFrame(()=>{const _0x51abef=_0x3bf2;this[_0x51abef(0xdd)]();});}[_0x331c88(0x8b)](){const _0x4aec00=_0x331c88;this[_0x4aec00(0xfa)]&&this[_0x4aec00(0x8e)]&&(this[_0x4aec00(0x9d)](),this[_0x4aec00(0xfa)][_0x4aec00(0x102)]=!0x0,this[_0x4aec00(0x8e)][_0x4aec00(0xcd)](),this[_0x4aec00(0x8e)][_0x4aec00(0xcb)]({'target':this[_0x4aec00(0xfa)][_0x4aec00(0xd4)],'limiter':document[_0x4aec00(0xa3)](_0x4aec00(0x72))}));}[_0x331c88(0xad)](){const _0x30eb7e=_0x331c88;this[_0x30eb7e(0xfa)]&&this[_0x30eb7e(0x8e)]&&(this[_0x30eb7e(0xfa)][_0x30eb7e(0x102)]=!0x1,this[_0x30eb7e(0x8e)][_0x30eb7e(0x95)]());}[_0x331c88(0xb8)](){const _0x5d5a31=_0x331c88;this[_0x5d5a31(0xd6)][_0x5d5a31(0xb8)](),this[_0x5d5a31(0xad)](),this[_0x5d5a31(0x78)](),this[_0x5d5a31(0xfa)]&&(this[_0x5d5a31(0xfa)][_0x5d5a31(0xe9)]=''),this[_0x5d5a31(0x8e)]&&this[_0x5d5a31(0x8e)][_0x5d5a31(0xe7)][_0x5d5a31(0xb8)]();}[_0x331c88(0xba)](){const _0x22ad60=_0x331c88;this[_0x22ad60(0x97)]&&(this[_0x22ad60(0x97)][_0x22ad60(0xd3)](),this[_0x22ad60(0x97)]=null),this[_0x22ad60(0xfa)]&&(this[_0x22ad60(0xfa)][_0x22ad60(0xba)](),this[_0x22ad60(0xfa)]=null),this[_0x22ad60(0x8e)]&&(this[_0x22ad60(0x8e)][_0x22ad60(0xba)](),this[_0x22ad60(0x8e)]=null);}[_0x331c88(0xdd)](){const _0x5e2b9d=_0x331c88;if(!this[_0x5e2b9d(0xbb)])return;if(!this[_0x5e2b9d(0xb9)]())return void(this[_0x5e2b9d(0xdb)]=!0x0);this[_0x5e2b9d(0xdb)]=!0x1;const _0xbc7b72=[...this[_0x5e2b9d(0x89)],...this[_0x5e2b9d(0xd6)]],_0x1eb479=this[_0x5e2b9d(0x79)](),_0x568ade=this[_0x5e2b9d(0x100)](_0x1eb479,_0xbc7b72),_0x160f54=_0x1eb479[_0x5e2b9d(0xe4)];_0x160f54&&this[_0x5e2b9d(0xae)](_0x160f54),_0x1eb479[_0x5e2b9d(0xe3)](),this[_0x5e2b9d(0xfd)](_0xbc7b72,_0x568ade);}[_0x331c88(0xc4)](){const _0x2edb21=_0x331c88;this[_0x2edb21(0xfa)]=this[_0x2edb21(0xb0)](),this[_0x2edb21(0x8e)]=this[_0x2edb21(0x101)](),this[_0x2edb21(0xfa)][_0x2edb21(0xee)](),this[_0x2edb21(0xbb)][_0x2edb21(0x76)](this[_0x2edb21(0xfa)][_0x2edb21(0xd4)]),this[_0x2edb21(0xfa)]['on'](_0x2edb21(0xa5),()=>{const _0x23138d=_0x2edb21;this[_0x23138d(0xa0)]();}),_0x1f79a0({'emitter':this[_0x2edb21(0x8e)],'contextElements':[this[_0x2edb21(0x8e)][_0x2edb21(0xd4)],this[_0x2edb21(0xfa)][_0x2edb21(0xd4)]],'callback':()=>this[_0x2edb21(0xad)](),'activator':()=>this[_0x2edb21(0xfa)][_0x2edb21(0x102)]});}[_0x331c88(0xb0)](){const _0x29e494=_0x331c88,_0x2d0a78=new _0x18472b(this[_0x29e494(0xef)]);_0x2d0a78[_0x29e494(0x84)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x113bd4=[this[_0x29e494(0xe0)][_0x29e494(0xa1)][_0x29e494(0xf0)]];return this[_0x29e494(0xe0)][_0x29e494(0xa1)][_0x29e494(0xa4)]&&_0x113bd4[_0x29e494(0xca)](this[_0x29e494(0xe0)][_0x29e494(0xa1)][_0x29e494(0xa4)]),_0x2d0a78[_0x29e494(0x92)]({'attributes':{'class':_0x113bd4}}),_0x2d0a78;}[_0x331c88(0x101)](){const _0x16b52b=_0x331c88,_0x5a27b5=new _0x1e4904(this[_0x16b52b(0xef)]);return _0x5a27b5[_0x16b52b(0x92)]({'attributes':{'class':this[_0x16b52b(0xe0)][_0x16b52b(0xa1)][_0x16b52b(0x88)]}}),this[_0x16b52b(0xbd)][_0x16b52b(0x104)](_0x5a27b5),_0x5a27b5;}[_0x331c88(0x9d)](){const _0x18d0cb=_0x331c88;if(this[_0x18d0cb(0x8e)]&&(this[_0x18d0cb(0x8e)][_0x18d0cb(0xe7)][_0x18d0cb(0xb8)](),this[_0x18d0cb(0xd6)][_0x18d0cb(0xf1)]>0x0)){this[_0x18d0cb(0xd6)][_0x18d0cb(0xaa)](_0xfc7e71=>{const _0x52026f=_0x18d0cb;_0xfc7e71[_0x52026f(0xb6)]();});const _0x146c81=new _0x27c4c3(this[_0x18d0cb(0xef)]);_0x146c81[_0x18d0cb(0xfc)]({'tag':_0x18d0cb(0xd1),'attributes':{'class':this[_0x18d0cb(0xe0)][_0x18d0cb(0xa1)][_0x18d0cb(0x74)]},'children':this[_0x18d0cb(0xd6)]}),this[_0x18d0cb(0x8e)][_0x18d0cb(0xe7)][_0x18d0cb(0x104)](_0x146c81);}}[_0x331c88(0xa0)](){const _0x1378aa=_0x331c88;this[_0x1378aa(0xfa)][_0x1378aa(0x102)]?this[_0x1378aa(0xad)]():this[_0x1378aa(0x8b)]();}[_0x331c88(0x78)](){const _0x43138d=_0x331c88,_0x4dfd70=this[_0x43138d(0xd6)][_0x43138d(0xf1)]>0x0;this[_0x43138d(0xfa)]?.[_0x43138d(0xd4)]&&(this[_0x43138d(0xfa)][_0x43138d(0xd4)][_0x43138d(0xc9)][_0x43138d(0xf7)]=_0x4dfd70?'':_0x43138d(0xc6));}[_0x331c88(0x81)](){const _0x188452=_0x331c88;this[_0x188452(0xfa)]?.[_0x188452(0x102)]&&this[_0x188452(0x8e)]?.[_0x188452(0xfb)]&&this[_0x188452(0xfa)][_0x188452(0xd4)]&&this[_0x188452(0x8e)][_0x188452(0xcb)]({'target':this[_0x188452(0xfa)][_0x188452(0xd4)],'limiter':document[_0x188452(0xa3)](_0x188452(0x72))});}[_0x331c88(0x103)](_0x1deb40){const _0x565ce6=_0x331c88,_0x4f723e=this[_0x565ce6(0xbb)]?.[_0x565ce6(0xa9)][_0x565ce6(0xbf)]()||_0x565ce6(0xd1),_0x41c705=this[_0x565ce6(0xbb)]?.[_0x565ce6(0x7c)];if(_0x41c705){const _0x40a073=_0x41c705[0x0]||'',_0x4a6f66=_0x1deb40[_0x565ce6(0xa3)]('.'+_0x40a073),_0x595be8=_0x1deb40[_0x565ce6(0xa3)](_0x4f723e);return _0x4a6f66||_0x595be8||_0x1deb40;}return _0x1deb40[_0x565ce6(0xa3)](_0x4f723e)||_0x1deb40;}[_0x331c88(0xf8)](){const _0x452567=_0x331c88,_0x341fe2=this[_0x452567(0x7e)]?.[_0x452567(0xd4)]||this[_0x452567(0xbb)];if(!_0x341fe2)return dn;const _0x5cd5e7=window[_0x452567(0x75)](_0x341fe2)[_0x452567(0xcf)];if(_0x452567(0x9b)===_0x5cd5e7||_0x452567(0x9f)===_0x5cd5e7||!_0x5cd5e7){const _0x312ac0=_0x341fe2[_0x452567(0xd9)];if(_0x312ac0){const _0x3852ec=window[_0x452567(0x75)](_0x312ac0);return _0x452567(0x9b)!==_0x3852ec[_0x452567(0xcf)]?_0x3852ec[_0x452567(0xcf)]:dn;}return dn;}return _0x5cd5e7;}[_0x331c88(0x86)](_0x18eca1,_0x4d5228){const _0x222d97=_0x331c88;this[_0x222d97(0xe0)][_0x222d97(0xa1)][_0x222d97(0xdc)]&&_0x18eca1[_0x222d97(0x7c)][_0x222d97(0x104)](this[_0x222d97(0xe0)][_0x222d97(0xa1)][_0x222d97(0xdc)]),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xcf)]=_0x4d5228,_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xc2)]=_0x222d97(0x80),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xd7)]=_0x222d97(0xbc),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xcc)]=_0x222d97(0xbc),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xe1)]='0',_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xaf)]=_0x222d97(0xc6),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xb7)]='-1',_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xe2)]=_0x222d97(0x98),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xf7)]=_0x222d97(0x91),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xf4)]=_0x222d97(0x70);}[_0x331c88(0xae)](_0x2cdf23){const _0x2dcf11=_0x331c88;_0x2cdf23[_0x2dcf11(0xaa)](({element:_0x43b79f,originalDisplay:_0x312e7c,originalVisibility:_0x5b5e46})=>{const _0x1699cf=_0x2dcf11;_0x43b79f[_0x1699cf(0xc9)][_0x1699cf(0xf7)]=_0x312e7c,_0x43b79f[_0x1699cf(0xc9)][_0x1699cf(0xe2)]=_0x5b5e46;});}[_0x331c88(0x83)](_0x58fa24){const _0x23cf0a=_0x331c88,_0x1d78b1=[];let _0x2404cf=_0x58fa24;for(;_0x2404cf&&_0x2404cf!==document[_0x23cf0a(0xb5)];){const _0x2ce972=window[_0x23cf0a(0x75)](_0x2404cf);_0x23cf0a(0xc6)!==_0x2ce972[_0x23cf0a(0xf7)]&&_0x23cf0a(0x105)!==_0x2ce972[_0x23cf0a(0xe2)]||(_0x1d78b1[_0x23cf0a(0xca)]({'element':_0x2404cf,'originalDisplay':_0x2404cf[_0x23cf0a(0xc9)][_0x23cf0a(0xf7)],'originalVisibility':_0x2404cf[_0x23cf0a(0xc9)][_0x23cf0a(0xe2)]}),_0x2404cf[_0x23cf0a(0xc9)][_0x23cf0a(0xf7)]=_0x23cf0a(0x71),_0x2404cf[_0x23cf0a(0xc9)][_0x23cf0a(0xe2)]=_0x23cf0a(0xb1)),_0x2404cf=_0x2404cf[_0x23cf0a(0xd9)];}return _0x1d78b1;}[_0x331c88(0x82)](){const _0x15d5ed=_0x331c88;let _0x2cc2d2,_0x17008d;return this[_0x15d5ed(0x7e)]?.[_0x15d5ed(0xd4)]?(_0x2cc2d2=this[_0x15d5ed(0x7e)][_0x15d5ed(0xd4)][_0x15d5ed(0x73)](!0x0),_0x17008d=this[_0x15d5ed(0x103)](_0x2cc2d2)):(_0x2cc2d2=document[_0x15d5ed(0xfe)](_0x15d5ed(0xd1)),_0x17008d=_0x2cc2d2),{'calculationContainer':_0x2cc2d2,'targetContainer':_0x17008d};}[_0x331c88(0x79)](){const _0x2e7f97=_0x331c88,{calculationContainer:_0x5509f8,targetContainer:_0x363e48}=this[_0x2e7f97(0x82)](),_0xc11d72=this[_0x2e7f97(0xf8)]();this[_0x2e7f97(0x86)](_0x5509f8,_0xc11d72);const _0x49338d=this[_0x2e7f97(0x7e)]?.[_0x2e7f97(0xd4)]||this[_0x2e7f97(0xbb)],_0x5d8bb7=_0x49338d?.[_0x2e7f97(0xd9)];_0x5d8bb7?_0x5d8bb7[_0x2e7f97(0x76)](_0x5509f8):document[_0x2e7f97(0xb5)][_0x2e7f97(0x76)](_0x5509f8),_0x5509f8[_0x2e7f97(0x85)]=_0x363e48;const _0x59f00b=this[_0x2e7f97(0x83)](_0x5d8bb7||null);return _0x5509f8[_0x2e7f97(0xde)],_0x5509f8[_0x2e7f97(0xe4)]=_0x59f00b,_0x5509f8;}[_0x331c88(0x100)](_0x208282,_0x25a548){const _0x112c8d=_0x331c88,_0x2f55a4=_0x208282[_0x112c8d(0x85)]||_0x208282,_0x5307a1=[],{rowCount:_0x2be262}=this[_0x112c8d(0xe8)](_0x2f55a4,_0x25a548);if(_0x2be262<=this[_0x112c8d(0xe0)][_0x112c8d(0xdf)])return _0x5307a1;const _0x4c81fd=_0x25a548[_0x112c8d(0x7f)]();for(;_0x4c81fd[_0x112c8d(0xf1)]>0x0;){if(this[_0x112c8d(0x99)](_0x208282,_0x2f55a4,_0x4c81fd)){const _0xee5eb5=_0x25a548[_0x112c8d(0xda)](_0x450760=>!_0x4c81fd[_0x112c8d(0xb3)](_0x450760));_0x5307a1[_0x112c8d(0xca)](..._0xee5eb5);break;}if(!_0x4c81fd[_0x112c8d(0xd8)]())break;}return _0x5307a1;}[_0x331c88(0xe8)](_0x77f2d,_0x1d4779){const _0x303b83=_0x331c88;_0x77f2d[_0x303b83(0xc8)]='',_0x1d4779[_0x303b83(0xaa)](_0x29d119=>{const _0x19952d=_0x303b83;if(_0x29d119[_0x19952d(0xd4)]){const _0x42b658=_0x29d119[_0x19952d(0xd4)][_0x19952d(0x73)](!0x0);_0x77f2d[_0x19952d(0x76)](_0x42b658);}}),_0x77f2d[_0x303b83(0xde)];const _0x30ef77=_0x77f2d[_0x303b83(0xa8)],_0x370817=[];return Array[_0x303b83(0xce)](_0x30ef77)[_0x303b83(0xaa)](_0x43ffc3=>{const _0x4da1ab=_0x303b83,_0x438ec1=_0x43ffc3[_0x4da1ab(0xb2)]()[_0x4da1ab(0xd7)];_0x370817[_0x4da1ab(0xab)](_0x980efa=>Math[_0x4da1ab(0xd5)](_0x980efa-_0x438ec1)<this[_0x4da1ab(0xe0)][_0x4da1ab(0xf5)])||_0x370817[_0x4da1ab(0xca)](_0x438ec1);}),{'rowCount':_0x370817[_0x303b83(0xf1)]};}[_0x331c88(0x77)](){const _0x57355f=_0x331c88,_0x4fba00=document[_0x57355f(0xfe)](_0x57355f(0xd2));return _0x4fba00[_0x57355f(0x93)]=this[_0x57355f(0xe0)][_0x57355f(0xa1)][_0x57355f(0xf0)],this[_0x57355f(0xe0)][_0x57355f(0xa1)][_0x57355f(0xa4)]&&_0x4fba00[_0x57355f(0x7c)][_0x57355f(0x104)](this[_0x57355f(0xe0)][_0x57355f(0xa1)][_0x57355f(0xa4)]),_0x4fba00[_0x57355f(0x8a)]=_0x57355f(0xeb),_0x4fba00;}[_0x331c88(0x99)](_0x267a05,_0x1542bb,_0x25ec65){const _0x145ca6=_0x331c88;this[_0x145ca6(0xe8)](_0x1542bb,_0x25ec65);const _0x1f439c=this[_0x145ca6(0x77)]();_0x267a05[_0x145ca6(0x76)](_0x1f439c),_0x267a05[_0x145ca6(0xde)];const _0xed7d8e=[..._0x1542bb[_0x145ca6(0xa8)],_0x1f439c],_0xb96c9b=[];_0xed7d8e[_0x145ca6(0xaa)](_0x1464e6=>{const _0x4d5f35=_0x145ca6,_0x34a33a=_0x1464e6[_0x4d5f35(0xb2)]()[_0x4d5f35(0xd7)];_0xb96c9b[_0x4d5f35(0xab)](_0x1a9fc3=>Math[_0x4d5f35(0xd5)](_0x1a9fc3-_0x34a33a)<this[_0x4d5f35(0xe0)][_0x4d5f35(0xf5)])||_0xb96c9b[_0x4d5f35(0xca)](_0x34a33a);});const _0x1b034c=_0xb96c9b[_0x145ca6(0xf1)];return _0x1f439c[_0x145ca6(0xe3)](),_0x1b034c<=this[_0x145ca6(0xe0)][_0x145ca6(0xdf)];}[_0x331c88(0xac)](_0x2d2f8a,_0x4d6747){const _0x4be67b=_0x331c88;this[_0x4be67b(0x89)][_0x4be67b(0xb8)](),this[_0x4be67b(0xd6)][_0x4be67b(0xb8)](),_0x2d2f8a[_0x4be67b(0xaa)](_0x2275f0=>{const _0x36716d=_0x4be67b;_0x4d6747[_0x36716d(0xb3)](_0x2275f0)?this[_0x36716d(0xd6)][_0x36716d(0x104)](_0x2275f0):this[_0x36716d(0x89)][_0x36716d(0x104)](_0x2275f0);});}[_0x331c88(0x9a)](_0x1cc441){const _0x34a834=_0x331c88;if(_0x1cc441>0x0&&!this[_0x34a834(0xfa)]&&this[_0x34a834(0xc4)](),_0x1cc441>0x0&&this[_0x34a834(0xfa)]){const _0x3369cc=''+this[_0x34a834(0xe0)][_0x34a834(0x8f)]+(_0x1cc441<0x63?_0x1cc441:'99');this[_0x34a834(0xfa)][_0x34a834(0xe9)]=_0x3369cc;}this[_0x34a834(0x9d)](),this[_0x34a834(0x78)](),this[_0x34a834(0x81)]();}[_0x331c88(0xfd)](_0x51f016,_0x3d63c5){const _0x210109=_0x331c88;this[_0x210109(0xac)](_0x51f016,_0x3d63c5),this[_0x210109(0x9a)](_0x3d63c5[_0x210109(0xf1)]);}[_0x331c88(0xd0)](){const _0xa0331e=_0x331c88;this[_0xa0331e(0xbb)]&&_0xa0331e(0x94)!=typeof IntersectionObserver&&(this[_0xa0331e(0x97)]=new IntersectionObserver(_0x158fec=>{const _0x3aae12=_0xa0331e;_0x158fec[0x0][_0x3aae12(0xf6)]&&this[_0x3aae12(0xdb)]&&requestAnimationFrame(()=>{const _0x1806bc=_0x3aae12;this[_0x1806bc(0xdd)]();});},{'threshold':0.01,'rootMargin':_0xa0331e(0xc5)}),this[_0xa0331e(0x97)][_0xa0331e(0xea)](this[_0xa0331e(0xbb)]));}[_0x331c88(0xb9)](){const _0x1a40b3=_0x331c88;if(!this[_0x1a40b3(0xbb)])return!0x1;if(!this[_0x1a40b3(0xbb)][_0x1a40b3(0xff)])return!0x1;const _0x467466=this[_0x1a40b3(0xbb)][_0x1a40b3(0xb2)]();if(0x0===_0x467466[_0x1a40b3(0xcf)]||0x0===_0x467466[_0x1a40b3(0x9e)])return!0x1;const _0x1326b3=window[_0x1a40b3(0x7a)]||document[_0x1a40b3(0x8c)][_0x1a40b3(0x96)],_0x307c34=window[_0x1a40b3(0x90)]||document[_0x1a40b3(0x8c)][_0x1a40b3(0xf3)],_0x371d68=0xc8;return _0x467466[_0x1a40b3(0xc0)]>=-0xc8&&_0x467466[_0x1a40b3(0xd7)]<=_0x1326b3+_0x371d68&&_0x467466[_0x1a40b3(0x7d)]>=-0xc8&&_0x467466[_0x1a40b3(0xcc)]<=_0x307c34+_0x371d68;}}
|
|
23
|
+
const _0x4cf5e2=_0x4d4a;(function(_0x57e118,_0x33085d){const _0x352a2b=_0x4d4a,_0x361489=_0x57e118();while(!![]){try{const _0x40cf12=-parseInt(_0x352a2b(0x165))/0x1+-parseInt(_0x352a2b(0x195))/0x2*(-parseInt(_0x352a2b(0x138))/0x3)+-parseInt(_0x352a2b(0x198))/0x4*(-parseInt(_0x352a2b(0x143))/0x5)+-parseInt(_0x352a2b(0x11d))/0x6*(parseInt(_0x352a2b(0x178))/0x7)+-parseInt(_0x352a2b(0x137))/0x8*(parseInt(_0x352a2b(0x11b))/0x9)+parseInt(_0x352a2b(0x159))/0xa*(-parseInt(_0x352a2b(0x11f))/0xb)+-parseInt(_0x352a2b(0x173))/0xc*(parseInt(_0x352a2b(0x193))/0xd);if(_0x40cf12===_0x33085d)break;else _0x361489['push'](_0x361489['shift']());}catch(_0x1c3e02){_0x361489['push'](_0x361489['shift']());}}}(_0x2478,0x288bd));import{View as _0x86989a,BalloonPanelView as _0x23109e,ButtonView as _0x554c65,clickOutsideHandler as _0xf778b3}from'ckeditor5/src/ui.js';import{Collection as _0x1ad72d}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x4cf5e2(0x142);function _0x2478(){const _0x2c425b=['9rDaFLC','isConnected','remove','innerWidth','element','zIndex','_handleShowMoreButtonClick','innerHeight','_repinBalloonPanel','slice','300px','111540XiGXtY','_visibleChips','isVisible','calculationContainer','auto','pointerEvents','_createContainerElements','tagName','_applyCalculationStyles','innerHTML','isIntersecting','border-box','overflowContainer','left','absolute','includes','_updateBalloonContent','_showMoreBalloonPanelView','destroy','appendChild','undefined','_bodyCollection','490630ajCUAy','extendTemplate','_config','_findTargetContainer','0px','set','showMoreBalloon','_pendingCalculation','display','observe','_locale','showMoreButtonView','99684GyirMu','disconnect','visible','visible\x20!important','toLowerCase','setContainerElement','visibility','_createMockButton','pin','abs','documentElement','showMoreLabelPrefix','offsetWidth','showMoreButton','12RwMfLg','forEach','.ck-ai-chat','_parentView','_updateOverflowUI','3108qxLnmO','_createCalculationContainer','position','-9999px','cloneNode','hide','block\x20!important','getComputedStyle','showBalloonPanel','body','right','execute','render','pop','reorganizeChips','_testButtonFit','rowDetectionTolerance','height','_overflowChips','boxSizing','_checkAndHandleOverflow','ck-calculation-container','none','_containerElement','add','classList','_showMoreButtonView','400439BpAjJr','bottom','134182DNEheq','+\x201','maxVisibleRows','32JhJkQf','_createShowMoreButton','hideBalloonPanel','clear','_makeAncestorsVisible','controlsButton','some','createElement','_isContainerVisible','_calculateOverflowInContainer','50px','overflowChips','querySelector','_ancestorsToRestore','content','style','children','block','setTemplate','textContent','from','width','length','_restoreAncestorVisibility','clientHeight','_createShowMoreButtonView','54atTXGR','_applyOverflowResults','108vNYZwV','label','11OcZBkF','_createShowMoreBalloonPanelView','_setupVisibilityObserver','parentElement','_renderChipsAndCountRows','cssClasses','div','hidden','top','isOn','opacity','show','_calculateContainerWidth','getBoundingClientRect','_intersectionObserver','_updateShowMoreButtonVisibility','disableAnimationOnEnter','className','filter','push','_distributeChips','_targetContainer','clientWidth','button','34824mcqADT'];_0x2478=function(){return _0x2c425b;};return _0x2478();}function _0x4d4a(_0xbfa48,_0x4ef460){const _0x24788c=_0x2478();return _0x4d4a=function(_0x4d4a1d,_0x530bfc){_0x4d4a1d=_0x4d4a1d-0x112;let _0x277a45=_0x24788c[_0x4d4a1d];return _0x277a45;},_0x4d4a(_0xbfa48,_0x4ef460);}export class AIChatChipsOverflowManager{[_0x4cf5e2(0x163)];[_0x4cf5e2(0x15b)];[_0x4cf5e2(0x144)];[_0x4cf5e2(0x18a)];[_0x4cf5e2(0x192)]=null;[_0x4cf5e2(0x154)]=null;[_0x4cf5e2(0x18f)]=null;[_0x4cf5e2(0x158)];[_0x4cf5e2(0x176)]=null;[_0x4cf5e2(0x12d)]=null;[_0x4cf5e2(0x160)]=!0x1;constructor(_0x452dc9,_0x309f17,_0xb21776,_0x351209,_0x912da2){const _0x45e523=_0x4cf5e2;this[_0x45e523(0x163)]=_0x452dc9,this[_0x45e523(0x144)]=_0x309f17,this[_0x45e523(0x15b)]={...hn,..._0xb21776,'cssClasses':{'controlsButton':'','calculationContainer':_0x45e523(0x18d),..._0xb21776[_0x45e523(0x124)]}},this[_0x45e523(0x18a)]=new _0x1ad72d(),this[_0x45e523(0x158)]=_0x351209,this[_0x45e523(0x176)]=_0x912da2||null;}[_0x4cf5e2(0x16a)](_0x52b01a){const _0xb7aa9=_0x4cf5e2;this[_0xb7aa9(0x12d)]&&(this[_0xb7aa9(0x12d)][_0xb7aa9(0x166)](),this[_0xb7aa9(0x12d)]=null),this[_0xb7aa9(0x18f)]=_0x52b01a,this[_0xb7aa9(0x121)]();}get[_0x4cf5e2(0x164)](){const _0x2a44ef=_0x4cf5e2;return this[_0x2a44ef(0x192)];}get[_0x4cf5e2(0x1a3)](){const _0x33f297=_0x4cf5e2;return this[_0x33f297(0x18a)];}[_0x4cf5e2(0x186)](){requestAnimationFrame(()=>{const _0x3db7fe=_0x4d4a;this[_0x3db7fe(0x18c)]();});}[_0x4cf5e2(0x180)](){const _0x256a4e=_0x4cf5e2;this[_0x256a4e(0x192)]&&this[_0x256a4e(0x154)]&&(this[_0x256a4e(0x153)](),this[_0x256a4e(0x192)][_0x256a4e(0x128)]=!0x0,this[_0x256a4e(0x154)][_0x256a4e(0x12a)](),this[_0x256a4e(0x154)][_0x256a4e(0x16d)]({'target':this[_0x256a4e(0x192)][_0x256a4e(0x13c)],'limiter':document[_0x256a4e(0x1a4)](_0x256a4e(0x175))}));}[_0x4cf5e2(0x19a)](){const _0x518197=_0x4cf5e2;this[_0x518197(0x192)]&&this[_0x518197(0x154)]&&(this[_0x518197(0x192)][_0x518197(0x128)]=!0x1,this[_0x518197(0x154)][_0x518197(0x17d)]());}[_0x4cf5e2(0x19b)](){const _0x5b1b81=_0x4cf5e2;this[_0x5b1b81(0x18a)][_0x5b1b81(0x19b)](),this[_0x5b1b81(0x19a)](),this[_0x5b1b81(0x12e)](),this[_0x5b1b81(0x192)]&&(this[_0x5b1b81(0x192)][_0x5b1b81(0x11e)]=''),this[_0x5b1b81(0x154)]&&this[_0x5b1b81(0x154)][_0x5b1b81(0x1a6)][_0x5b1b81(0x19b)]();}[_0x4cf5e2(0x155)](){const _0x55f6da=_0x4cf5e2;this[_0x55f6da(0x12d)]&&(this[_0x55f6da(0x12d)][_0x55f6da(0x166)](),this[_0x55f6da(0x12d)]=null),this[_0x55f6da(0x192)]&&(this[_0x55f6da(0x192)][_0x55f6da(0x155)](),this[_0x55f6da(0x192)]=null),this[_0x55f6da(0x154)]&&(this[_0x55f6da(0x154)][_0x55f6da(0x155)](),this[_0x55f6da(0x154)]=null);}[_0x4cf5e2(0x18c)](){const _0x57cfba=_0x4cf5e2;if(!this[_0x57cfba(0x18f)])return;if(!this[_0x57cfba(0x1a0)]())return void(this[_0x57cfba(0x160)]=!0x0);this[_0x57cfba(0x160)]=!0x1;const _0x14cc12=[...this[_0x57cfba(0x144)],...this[_0x57cfba(0x18a)]],_0x5674ef=this[_0x57cfba(0x179)](),_0x4629ea=this[_0x57cfba(0x1a1)](_0x5674ef,_0x14cc12),_0x58f6fe=_0x5674ef[_0x57cfba(0x1a5)];_0x58f6fe&&this[_0x57cfba(0x118)](_0x58f6fe),_0x5674ef[_0x57cfba(0x13a)](),this[_0x57cfba(0x11c)](_0x14cc12,_0x4629ea);}[_0x4cf5e2(0x199)](){const _0x225226=_0x4cf5e2;this[_0x225226(0x192)]=this[_0x225226(0x11a)](),this[_0x225226(0x154)]=this[_0x225226(0x120)](),this[_0x225226(0x192)][_0x225226(0x184)](),this[_0x225226(0x18f)][_0x225226(0x156)](this[_0x225226(0x192)][_0x225226(0x13c)]),this[_0x225226(0x192)]['on'](_0x225226(0x183),()=>{const _0x47a306=_0x225226;this[_0x47a306(0x13e)]();}),_0xf778b3({'emitter':this[_0x225226(0x154)],'contextElements':[this[_0x225226(0x154)][_0x225226(0x13c)],this[_0x225226(0x192)][_0x225226(0x13c)]],'callback':()=>this[_0x225226(0x19a)](),'activator':()=>this[_0x225226(0x192)][_0x225226(0x128)]});}[_0x4cf5e2(0x11a)](){const _0x551359=_0x4cf5e2,_0xbb118d=new _0x554c65(this[_0x551359(0x163)]);_0xbb118d[_0x551359(0x15e)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5a40f6=[this[_0x551359(0x15b)][_0x551359(0x124)][_0x551359(0x172)]];return this[_0x551359(0x15b)][_0x551359(0x124)][_0x551359(0x19d)]&&_0x5a40f6[_0x551359(0x132)](this[_0x551359(0x15b)][_0x551359(0x124)][_0x551359(0x19d)]),_0xbb118d[_0x551359(0x15a)]({'attributes':{'class':_0x5a40f6}}),_0xbb118d;}[_0x4cf5e2(0x120)](){const _0x5d4adf=_0x4cf5e2,_0x59c6d0=new _0x23109e(this[_0x5d4adf(0x163)]);return _0x59c6d0[_0x5d4adf(0x15a)]({'attributes':{'class':this[_0x5d4adf(0x15b)][_0x5d4adf(0x124)][_0x5d4adf(0x15f)]}}),this[_0x5d4adf(0x158)][_0x5d4adf(0x190)](_0x59c6d0),_0x59c6d0;}[_0x4cf5e2(0x153)](){const _0x2488e5=_0x4cf5e2;if(this[_0x2488e5(0x154)]&&(this[_0x2488e5(0x154)][_0x2488e5(0x1a6)][_0x2488e5(0x19b)](),this[_0x2488e5(0x18a)][_0x2488e5(0x117)]>0x0)){this[_0x2488e5(0x18a)][_0x2488e5(0x174)](_0x3b036d=>{const _0x358d9d=_0x2488e5;_0x3b036d[_0x358d9d(0x12f)]();});const _0x9071b3=new _0x86989a(this[_0x2488e5(0x163)]);_0x9071b3[_0x2488e5(0x113)]({'tag':_0x2488e5(0x125),'attributes':{'class':this[_0x2488e5(0x15b)][_0x2488e5(0x124)][_0x2488e5(0x14f)]},'children':this[_0x2488e5(0x18a)]}),this[_0x2488e5(0x154)][_0x2488e5(0x1a6)][_0x2488e5(0x190)](_0x9071b3);}}[_0x4cf5e2(0x13e)](){const _0xf3c1f0=_0x4cf5e2;this[_0xf3c1f0(0x192)][_0xf3c1f0(0x128)]?this[_0xf3c1f0(0x19a)]():this[_0xf3c1f0(0x180)]();}[_0x4cf5e2(0x12e)](){const _0x5d30a2=_0x4cf5e2,_0xbeaefe=this[_0x5d30a2(0x18a)][_0x5d30a2(0x117)]>0x0;this[_0x5d30a2(0x192)]?.[_0x5d30a2(0x13c)]&&(this[_0x5d30a2(0x192)][_0x5d30a2(0x13c)][_0x5d30a2(0x1a7)][_0x5d30a2(0x161)]=_0xbeaefe?'':_0x5d30a2(0x18e));}[_0x4cf5e2(0x140)](){const _0x4a2ba4=_0x4cf5e2;this[_0x4a2ba4(0x192)]?.[_0x4a2ba4(0x128)]&&this[_0x4a2ba4(0x154)]?.[_0x4a2ba4(0x145)]&&this[_0x4a2ba4(0x192)][_0x4a2ba4(0x13c)]&&this[_0x4a2ba4(0x154)][_0x4a2ba4(0x16d)]({'target':this[_0x4a2ba4(0x192)][_0x4a2ba4(0x13c)],'limiter':document[_0x4a2ba4(0x1a4)](_0x4a2ba4(0x175))});}[_0x4cf5e2(0x15c)](_0x1a6e10){const _0x1ffb79=_0x4cf5e2,_0x50240c=this[_0x1ffb79(0x18f)]?.[_0x1ffb79(0x14a)][_0x1ffb79(0x169)]()||_0x1ffb79(0x125),_0x1f378a=this[_0x1ffb79(0x18f)]?.[_0x1ffb79(0x191)];if(_0x1f378a){const _0x2ef5b0=_0x1f378a[0x0]||'',_0x562bd8=_0x1a6e10[_0x1ffb79(0x1a4)]('.'+_0x2ef5b0),_0x46c87f=_0x1a6e10[_0x1ffb79(0x1a4)](_0x50240c);return _0x562bd8||_0x46c87f||_0x1a6e10;}return _0x1a6e10[_0x1ffb79(0x1a4)](_0x50240c)||_0x1a6e10;}[_0x4cf5e2(0x12b)](){const _0x4886cb=_0x4cf5e2,_0x30ddec=this[_0x4886cb(0x176)]?.[_0x4886cb(0x13c)]||this[_0x4886cb(0x18f)];if(!_0x30ddec)return an;const _0x3e191d=window[_0x4886cb(0x17f)](_0x30ddec)[_0x4886cb(0x116)];if(_0x4886cb(0x147)===_0x3e191d||_0x4886cb(0x15d)===_0x3e191d||!_0x3e191d){const _0x210837=_0x30ddec[_0x4886cb(0x122)];if(_0x210837){const _0x5af5be=window[_0x4886cb(0x17f)](_0x210837);return _0x4886cb(0x147)!==_0x5af5be[_0x4886cb(0x116)]?_0x5af5be[_0x4886cb(0x116)]:an;}return an;}return _0x3e191d;}[_0x4cf5e2(0x14b)](_0x1d5192,_0x211e4f){const _0x20679a=_0x4cf5e2;this[_0x20679a(0x15b)][_0x20679a(0x124)][_0x20679a(0x146)]&&_0x1d5192[_0x20679a(0x191)][_0x20679a(0x190)](this[_0x20679a(0x15b)][_0x20679a(0x124)][_0x20679a(0x146)]),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x116)]=_0x211e4f,_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x17a)]=_0x20679a(0x151),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x127)]=_0x20679a(0x17b),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x150)]=_0x20679a(0x17b),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x129)]='0',_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x148)]=_0x20679a(0x18e),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x13d)]='-1',_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x16b)]=_0x20679a(0x168),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x161)]=_0x20679a(0x17e),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x18b)]=_0x20679a(0x14e);}[_0x4cf5e2(0x118)](_0x5b4a6a){const _0x468dbb=_0x4cf5e2;_0x5b4a6a[_0x468dbb(0x174)](({element:_0x1968be,originalDisplay:_0x3ef6bc,originalVisibility:_0x37aefd})=>{const _0x9a12d9=_0x468dbb;_0x1968be[_0x9a12d9(0x1a7)][_0x9a12d9(0x161)]=_0x3ef6bc,_0x1968be[_0x9a12d9(0x1a7)][_0x9a12d9(0x16b)]=_0x37aefd;});}[_0x4cf5e2(0x19c)](_0x5d4b54){const _0xcc6058=_0x4cf5e2,_0x39a789=[];let _0x352a25=_0x5d4b54;for(;_0x352a25&&_0x352a25!==document[_0xcc6058(0x181)];){const _0x2e7fc1=window[_0xcc6058(0x17f)](_0x352a25);_0xcc6058(0x18e)!==_0x2e7fc1[_0xcc6058(0x161)]&&_0xcc6058(0x126)!==_0x2e7fc1[_0xcc6058(0x16b)]||(_0x39a789[_0xcc6058(0x132)]({'element':_0x352a25,'originalDisplay':_0x352a25[_0xcc6058(0x1a7)][_0xcc6058(0x161)],'originalVisibility':_0x352a25[_0xcc6058(0x1a7)][_0xcc6058(0x16b)]}),_0x352a25[_0xcc6058(0x1a7)][_0xcc6058(0x161)]=_0xcc6058(0x112),_0x352a25[_0xcc6058(0x1a7)][_0xcc6058(0x16b)]=_0xcc6058(0x167)),_0x352a25=_0x352a25[_0xcc6058(0x122)];}return _0x39a789;}[_0x4cf5e2(0x149)](){const _0x366cf3=_0x4cf5e2;let _0x23f42d,_0xc6dc36;return this[_0x366cf3(0x176)]?.[_0x366cf3(0x13c)]?(_0x23f42d=this[_0x366cf3(0x176)][_0x366cf3(0x13c)][_0x366cf3(0x17c)](!0x0),_0xc6dc36=this[_0x366cf3(0x15c)](_0x23f42d)):(_0x23f42d=document[_0x366cf3(0x19f)](_0x366cf3(0x125)),_0xc6dc36=_0x23f42d),{'calculationContainer':_0x23f42d,'targetContainer':_0xc6dc36};}[_0x4cf5e2(0x179)](){const _0x324aab=_0x4cf5e2,{calculationContainer:_0x41e244,targetContainer:_0x5e147b}=this[_0x324aab(0x149)](),_0x2f96b0=this[_0x324aab(0x12b)]();this[_0x324aab(0x14b)](_0x41e244,_0x2f96b0);const _0x586469=this[_0x324aab(0x176)]?.[_0x324aab(0x13c)]||this[_0x324aab(0x18f)],_0x29d114=_0x586469?.[_0x324aab(0x122)];_0x29d114?_0x29d114[_0x324aab(0x156)](_0x41e244):document[_0x324aab(0x181)][_0x324aab(0x156)](_0x41e244),_0x41e244[_0x324aab(0x134)]=_0x5e147b;const _0x4edf54=this[_0x324aab(0x19c)](_0x29d114||null);return _0x41e244[_0x324aab(0x171)],_0x41e244[_0x324aab(0x1a5)]=_0x4edf54,_0x41e244;}[_0x4cf5e2(0x1a1)](_0x9bce86,_0x44a0e9){const _0x53864b=_0x4cf5e2,_0x1690e0=_0x9bce86[_0x53864b(0x134)]||_0x9bce86,_0xedc2ba=[],{rowCount:_0x1fe8ea}=this[_0x53864b(0x123)](_0x1690e0,_0x44a0e9);if(_0x1fe8ea<=this[_0x53864b(0x15b)][_0x53864b(0x197)])return _0xedc2ba;const _0x4b2006=_0x44a0e9[_0x53864b(0x141)]();for(;_0x4b2006[_0x53864b(0x117)]>0x0;){if(this[_0x53864b(0x187)](_0x9bce86,_0x1690e0,_0x4b2006)){const _0x34cd97=_0x44a0e9[_0x53864b(0x131)](_0xc27de1=>!_0x4b2006[_0x53864b(0x152)](_0xc27de1));_0xedc2ba[_0x53864b(0x132)](..._0x34cd97);break;}if(!_0x4b2006[_0x53864b(0x185)]())break;}return _0xedc2ba;}[_0x4cf5e2(0x123)](_0xc84b64,_0x582537){const _0xa0e227=_0x4cf5e2;_0xc84b64[_0xa0e227(0x14c)]='',_0x582537[_0xa0e227(0x174)](_0x23df89=>{const _0x440dfe=_0xa0e227;if(_0x23df89[_0x440dfe(0x13c)]){const _0x4c47f9=_0x23df89[_0x440dfe(0x13c)][_0x440dfe(0x17c)](!0x0);_0xc84b64[_0x440dfe(0x156)](_0x4c47f9);}}),_0xc84b64[_0xa0e227(0x171)];const _0x7f99e=_0xc84b64[_0xa0e227(0x1a8)],_0xb298ed=[];return Array[_0xa0e227(0x115)](_0x7f99e)[_0xa0e227(0x174)](_0x1e6550=>{const _0x203354=_0xa0e227,_0x4d6b50=_0x1e6550[_0x203354(0x12c)]()[_0x203354(0x127)];_0xb298ed[_0x203354(0x19e)](_0x22ed12=>Math[_0x203354(0x16e)](_0x22ed12-_0x4d6b50)<this[_0x203354(0x15b)][_0x203354(0x188)])||_0xb298ed[_0x203354(0x132)](_0x4d6b50);}),{'rowCount':_0xb298ed[_0xa0e227(0x117)]};}[_0x4cf5e2(0x16c)](){const _0xfce3b0=_0x4cf5e2,_0x2137c1=document[_0xfce3b0(0x19f)](_0xfce3b0(0x136));return _0x2137c1[_0xfce3b0(0x130)]=this[_0xfce3b0(0x15b)][_0xfce3b0(0x124)][_0xfce3b0(0x172)],this[_0xfce3b0(0x15b)][_0xfce3b0(0x124)][_0xfce3b0(0x19d)]&&_0x2137c1[_0xfce3b0(0x191)][_0xfce3b0(0x190)](this[_0xfce3b0(0x15b)][_0xfce3b0(0x124)][_0xfce3b0(0x19d)]),_0x2137c1[_0xfce3b0(0x114)]=_0xfce3b0(0x196),_0x2137c1;}[_0x4cf5e2(0x187)](_0xce34f4,_0x30e9e5,_0x4c26e2){const _0x52f2a5=_0x4cf5e2;this[_0x52f2a5(0x123)](_0x30e9e5,_0x4c26e2);const _0x2b26ed=this[_0x52f2a5(0x16c)]();_0xce34f4[_0x52f2a5(0x156)](_0x2b26ed),_0xce34f4[_0x52f2a5(0x171)];const _0x42a9d2=[..._0x30e9e5[_0x52f2a5(0x1a8)],_0x2b26ed],_0x12ad02=[];_0x42a9d2[_0x52f2a5(0x174)](_0x927c64=>{const _0x460420=_0x52f2a5,_0x2614d2=_0x927c64[_0x460420(0x12c)]()[_0x460420(0x127)];_0x12ad02[_0x460420(0x19e)](_0x265b88=>Math[_0x460420(0x16e)](_0x265b88-_0x2614d2)<this[_0x460420(0x15b)][_0x460420(0x188)])||_0x12ad02[_0x460420(0x132)](_0x2614d2);});const _0x10e15e=_0x12ad02[_0x52f2a5(0x117)];return _0x2b26ed[_0x52f2a5(0x13a)](),_0x10e15e<=this[_0x52f2a5(0x15b)][_0x52f2a5(0x197)];}[_0x4cf5e2(0x133)](_0x43cac8,_0x4a711b){const _0x58aa10=_0x4cf5e2;this[_0x58aa10(0x144)][_0x58aa10(0x19b)](),this[_0x58aa10(0x18a)][_0x58aa10(0x19b)](),_0x43cac8[_0x58aa10(0x174)](_0x3cf4a2=>{const _0x5f5cc3=_0x58aa10;_0x4a711b[_0x5f5cc3(0x152)](_0x3cf4a2)?this[_0x5f5cc3(0x18a)][_0x5f5cc3(0x190)](_0x3cf4a2):this[_0x5f5cc3(0x144)][_0x5f5cc3(0x190)](_0x3cf4a2);});}[_0x4cf5e2(0x177)](_0x5d42a1){const _0x2f031b=_0x4cf5e2;if(_0x5d42a1>0x0&&!this[_0x2f031b(0x192)]&&this[_0x2f031b(0x199)](),_0x5d42a1>0x0&&this[_0x2f031b(0x192)]){const _0x4f1bc7=''+this[_0x2f031b(0x15b)][_0x2f031b(0x170)]+(_0x5d42a1<0x63?_0x5d42a1:'99');this[_0x2f031b(0x192)][_0x2f031b(0x11e)]=_0x4f1bc7;}this[_0x2f031b(0x153)](),this[_0x2f031b(0x12e)](),this[_0x2f031b(0x140)]();}[_0x4cf5e2(0x11c)](_0x31758b,_0x28bdfb){const _0x4d1acf=_0x4cf5e2;this[_0x4d1acf(0x133)](_0x31758b,_0x28bdfb),this[_0x4d1acf(0x177)](_0x28bdfb[_0x4d1acf(0x117)]);}[_0x4cf5e2(0x121)](){const _0x3660a0=_0x4cf5e2;this[_0x3660a0(0x18f)]&&_0x3660a0(0x157)!=typeof IntersectionObserver&&(this[_0x3660a0(0x12d)]=new IntersectionObserver(_0x4e9e18=>{const _0x138c79=_0x3660a0;_0x4e9e18[0x0][_0x138c79(0x14d)]&&this[_0x138c79(0x160)]&&requestAnimationFrame(()=>{const _0x58214d=_0x138c79;this[_0x58214d(0x18c)]();});},{'threshold':0.01,'rootMargin':_0x3660a0(0x1a2)}),this[_0x3660a0(0x12d)][_0x3660a0(0x162)](this[_0x3660a0(0x18f)]));}[_0x4cf5e2(0x1a0)](){const _0x1ae7cd=_0x4cf5e2;if(!this[_0x1ae7cd(0x18f)])return!0x1;if(!this[_0x1ae7cd(0x18f)][_0x1ae7cd(0x139)])return!0x1;const _0x291f15=this[_0x1ae7cd(0x18f)][_0x1ae7cd(0x12c)]();if(0x0===_0x291f15[_0x1ae7cd(0x116)]||0x0===_0x291f15[_0x1ae7cd(0x189)])return!0x1;const _0x4c47e0=window[_0x1ae7cd(0x13f)]||document[_0x1ae7cd(0x16f)][_0x1ae7cd(0x119)],_0x548245=window[_0x1ae7cd(0x13b)]||document[_0x1ae7cd(0x16f)][_0x1ae7cd(0x135)],_0xeb8a12=0xc8;return _0x291f15[_0x1ae7cd(0x194)]>=-0xc8&&_0x291f15[_0x1ae7cd(0x127)]<=_0x4c47e0+_0xeb8a12&&_0x291f15[_0x1ae7cd(0x182)]>=-0xc8&&_0x291f15[_0x1ae7cd(0x150)]<=_0x548245+_0xeb8a12;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a18cc=_0x1641;(function(_0x46cd6f,_0x4c8d58){const _0xc6b8e7=_0x1641,_0x48e627=_0x46cd6f();while(!![]){try{const _0x3cd577=parseInt(_0xc6b8e7(0x1dc))/0x1+-parseInt(_0xc6b8e7(0x1f0))/0x2+parseInt(_0xc6b8e7(0x1b1))/0x3*(-parseInt(_0xc6b8e7(0x1df))/0x4)+parseInt(_0xc6b8e7(0x1b3))/0x5+parseInt(_0xc6b8e7(0x1e1))/0x6*(-parseInt(_0xc6b8e7(0x1be))/0x7)+parseInt(_0xc6b8e7(0x1d4))/0x8+parseInt(_0xc6b8e7(0x1ca))/0x9;if(_0x3cd577===_0x4c8d58)break;else _0x48e627['push'](_0x48e627['shift']());}catch(_0xd79b16){_0x48e627['push'](_0x48e627['shift']());}}}(_0xdf39,0x4a8e2));function _0x1641(_0x492e7c,_0x1df86c){const _0xdf391a=_0xdf39();return _0x1641=function(_0x1641c1,_0x422fc5){_0x1641c1=_0x1641c1-0x1b0;let _0x4a673b=_0xdf391a[_0x1641c1];return _0x4a673b;},_0x1641(_0x492e7c,_0x1df86c);}import{ButtonView as _0x410927,IconView as _0x5a2567}from'ckeditor5/src/ui.js';function _0xdf39(){const _0x88dd0b=['_handleAnimationEndOnce','_createLoaderIcon','isLoading','ck-ai-chat-context-chip','210eJYAlz','_createTemplateChildren','span','bindTemplate','animationend','_setupTemplate','ck-ai-chat-context-chip_wide','bind','_createIconView','_createRemoveButton','removeEventListener','_createLabelElement','2376783nZfLrO','removeContextItemChip','webkitAnimationEnd','document','locale','ck-ai-chat-context-chip__type-icon','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','small','ck-hidden','_initializeProperties','3690536qTBEaa','_isAnimationOnEnterEnabled','add','ck-ai-chat-context-controls__chip-tooltip','_setupRemoveButtonEvent','selection','ck-ai-chat-context-chip__label','remove','266286KBzEeF','ck-ai-chat-context-chip_new-chip','slice','4PilTPU','type','73386PgstxX','readonly','set','tooltip','content','render','fire','uiId','disableAnimationOnEnter','classList','execute','itemType','extendTemplate','element','lastIndexOf','428648nItflJ','label','1486839fNzzIN','_createTemplateAttributes','1952775NsZeHd','isVisible','div','ck-ai-chat-context-chip_document','setTemplate','addEventListener','length'];_0xdf39=function(){return _0x88dd0b;};return _0xdf39();}import{IconClose as _0x50e94c,IconDocument as _0x4afcfb,IconFileUpload as _0xacf592,IconLink as _0x2d9dac,IconSelection as _0x1b04da}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x260549}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x3c534e}from'../../../aicore/ui/aispinner.js';const xn={'file':_0xacf592,'document':_0x4afcfb,'web-resource':_0x2d9dac,'text':_0xacf592,'selection':_0x1b04da},bn=_0x5a18cc(0x1bd),wn=_0x5a18cc(0x1c4),Tn=_0x5a18cc(0x1b6),En=_0x5a18cc(0x1da),fn=_0x5a18cc(0x1cf),An=_0x5a18cc(0x1d7),Cn='n';export class AIChatContextItemButtonView extends _0x410927{constructor(_0x1a3e25,_0x4a9c7f,_0x755c2b,_0x1c1943,_0x35c5c0=!0x1){const _0x25107e=_0x5a18cc;super(_0x1a3e25),this[_0x25107e(0x1d5)]=_0x1c1943,this[_0x25107e(0x1d3)](_0x4a9c7f,_0x755c2b,_0x35c5c0),this[_0x25107e(0x1c3)]();}[_0x5a18cc(0x1e6)](){const _0x4c0ce6=_0x5a18cc;super[_0x4c0ce6(0x1e6)](),this[_0x4c0ce6(0x1d5)]&&this[_0x4c0ce6(0x1ee)]&&(this[_0x4c0ce6(0x1ee)][_0x4c0ce6(0x1ea)][_0x4c0ce6(0x1d6)](_0x4c0ce6(0x1dd)),this[_0x4c0ce6(0x1ba)](this[_0x4c0ce6(0x1ee)],()=>{const _0x478079=_0x4c0ce6;this[_0x478079(0x1ee)]&&this[_0x478079(0x1ee)][_0x478079(0x1ea)][_0x478079(0x1db)](_0x478079(0x1dd));}));}[_0x5a18cc(0x1e9)](){const _0x44f3f3=_0x5a18cc;this[_0x44f3f3(0x1d5)]=!0x1,this[_0x44f3f3(0x1ee)]&&this[_0x44f3f3(0x1ee)][_0x44f3f3(0x1ea)][_0x44f3f3(0x1db)](_0x44f3f3(0x1dd));}[_0x5a18cc(0x1d3)](_0x5de6ea,_0xd10fcc,_0x29acc1){const _0x30abd0=_0x5a18cc;this[_0x30abd0(0x1e3)](_0x30abd0(0x1b0),_0x5de6ea[_0x30abd0(0x1b0)]),this[_0x30abd0(0x1e3)](_0x30abd0(0x1e4),!0x0),this[_0x30abd0(0x1e3)](_0x30abd0(0x1ec),_0x5de6ea[_0x30abd0(0x1e0)]),this[_0x30abd0(0x1e3)]('id',_0x5de6ea[_0x30abd0(0x1e8)]),this[_0x30abd0(0x1e3)](_0x30abd0(0x1e2),_0xd10fcc),this[_0x30abd0(0x1e3)](_0x30abd0(0x1bc),_0x29acc1);}[_0x5a18cc(0x1c3)](){const _0x3dfb5c=_0x5a18cc,_0x118bca=this[_0x3dfb5c(0x1c6)](),_0x2a6fbd=this[_0x3dfb5c(0x1c7)](),_0x3addbb=this[_0x3dfb5c(0x1c1)];this[_0x3dfb5c(0x1b7)]({'tag':_0x3dfb5c(0x1b5),'attributes':this[_0x3dfb5c(0x1b2)](_0x3addbb),'children':this[_0x3dfb5c(0x1bf)](_0x118bca,_0x2a6fbd,_0x3addbb)});}[_0x5a18cc(0x1b2)](_0x4602fc){const _0xf0302a=_0x5a18cc;return{'class':[bn,_0x4602fc['if'](_0xf0302a(0x1ec),Tn,_0x3e9e1b=>_0xf0302a(0x1cd)==_0x3e9e1b),_0x4602fc['if'](_0xf0302a(0x1ec),wn,_0x426343=>_0xf0302a(0x1d9)==_0x426343)],'data-cke-tooltip-text':_0x4602fc['to'](_0xf0302a(0x1b0),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x5a18cc(0x1bf)](_0x32a6bd,_0x5d4ac9,_0x51d699){const _0x14dbb8=_0x5a18cc,_0x31a668=this[_0x14dbb8(0x1c9)](_0x51d699),_0xcf2ff3=this[_0x14dbb8(0x1bb)]();return this[_0x14dbb8(0x1e2)]?[_0x32a6bd,_0x31a668]:[_0x32a6bd,_0xcf2ff3,_0x31a668,_0x5d4ac9];}[_0x5a18cc(0x1c9)](_0x48638a){const _0x48c53d=_0x5a18cc;return{'tag':_0x48c53d(0x1c0),'attributes':{'class':En},'children':[{'text':_0x48638a['to'](_0x48c53d(0x1b0))}]};}[_0x5a18cc(0x1c7)](){const _0x3b9ce1=_0x5a18cc,_0x4d014e=new _0x410927(this[_0x3b9ce1(0x1ce)]);return _0x4d014e[_0x3b9ce1(0x1e3)]({'label':_0x260549(this[_0x3b9ce1(0x1ce)],_0x3b9ce1(0x1d0)),'icon':_0x50e94c}),this[_0x3b9ce1(0x1d8)](_0x4d014e),_0x4d014e;}[_0x5a18cc(0x1d8)](_0x15ef7f){const _0x3453b3=_0x5a18cc;_0x15ef7f['on'](_0x3453b3(0x1eb),()=>{const _0x1a1467=_0x3453b3;this[_0x1a1467(0x1e7)](_0x1a1467(0x1cb),this['id']);});}[_0x5a18cc(0x1c6)](){const _0x249a72=_0x5a18cc,_0x104328=this[_0x249a72(0x1c1)],_0x29a741=new _0x5a2567();return _0x29a741[_0x249a72(0x1e5)]=xn[this[_0x249a72(0x1ec)]],_0x29a741[_0x249a72(0x1ed)]({'attributes':{'class':[fn,_0x104328['if'](_0x249a72(0x1bc),_0x249a72(0x1d2),_0x15cd9e=>_0x15cd9e)]}}),_0x29a741;}[_0x5a18cc(0x1ba)](_0x8cac8d,_0x10ea9c){const _0x5f4f73=_0x5a18cc;if(!_0x8cac8d)return;const _0x1e2b3f=()=>{const _0x1e9f29=_0x1641;_0x10ea9c(),_0x8cac8d[_0x1e9f29(0x1c8)](_0x1e9f29(0x1c2),_0x1e2b3f),_0x8cac8d[_0x1e9f29(0x1c8)](_0x1e9f29(0x1cc),_0x1e2b3f);};_0x8cac8d[_0x5f4f73(0x1b8)](_0x5f4f73(0x1c2),_0x1e2b3f),_0x8cac8d[_0x5f4f73(0x1b8)](_0x5f4f73(0x1cc),_0x1e2b3f);}[_0x5a18cc(0x1bb)](){const _0x3c697b=_0x5a18cc,_0x58f2df=new _0x3c534e(_0x3c697b(0x1d1));return _0x58f2df[_0x3c697b(0x1c5)](_0x3c697b(0x1b4))['to'](this,_0x3c697b(0x1bc),_0x1823ec=>_0x1823ec),_0x58f2df;}}function In(_0x1151f1){const _0x51de44=_0x5a18cc;if(!_0x1151f1)return _0x1151f1;if(_0x1151f1[_0x51de44(0x1b9)]<=0x78)return _0x1151f1;const _0x13b662=_0x1151f1[_0x51de44(0x1de)](0x0,0x78),_0x47df4e=_0x13b662[_0x51de44(0x1ef)]('\x20');return(_0x47df4e>0x0?_0x13b662[_0x51de44(0x1de)](0x0,_0x47df4e):_0x13b662)+'…';}
|