@ckeditor/ckeditor5-ai 47.5.0-alpha.8 → 47.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.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/aichathistoryview.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ff9cd=_0x44cf;(function(_0x5ac507,_0x550801){const _0x4579c1=_0x44cf,_0x4e5c80=_0x5ac507();while(!![]){try{const _0x273d6b=-parseInt(_0x4579c1(0x10e))/0x1+-parseInt(_0x4579c1(0x119))/0x2*(-parseInt(_0x4579c1(0x111))/0x3)+parseInt(_0x4579c1(0x11c))/0x4*(parseInt(_0x4579c1(0x11b))/0x5)+parseInt(_0x4579c1(0x11a))/0x6*(parseInt(_0x4579c1(0x122))/0x7)+parseInt(_0x4579c1(0x118))/0x8*(-parseInt(_0x4579c1(0x11f))/0x9)+parseInt(_0x4579c1(0x112))/0xa*(-parseInt(_0x4579c1(0x117))/0xb)+parseInt(_0x4579c1(0x126))/0xc*(-parseInt(_0x4579c1(0x115))/0xd);if(_0x273d6b===_0x550801)break;else _0x4e5c80['push'](_0x4e5c80['shift']());}catch(_0x1598c5){_0x4e5c80['push'](_0x4e5c80['shift']());}}}(_0xabf0,0xb2173));import{ButtonView as _0x4a2b09,FormHeaderView as _0x183f18}from'ckeditor5/src/ui.js';import{IconPlus as _0x14dbc6,IconAIChat as _0x5523b8}from'ckeditor5/src/icons.js';function _0xabf0(){const _0x59d8d7=['433884gzUKXF','ck-ai-header\x20ck-ai-header_chat','isMaximized','1619196poBwzp','1686950pwCMHu','startConversation','add','13183703hLVUtJ','locale','11EEuzOw','7944oUtIXy','4hxBeRF','1284RvZjhH','305OjjzFH','17840DHokwm','resizeButton','AI_CHAT_HEADING','4149YBbIcH','children','ck-ai-chat__start-conversation','47509MrLVjN','conversationStartButton','set','fire','12JZnzgq','execute','_createStartConversationButton','AI_CHAT_LABEL_NEW_CHAT'];_0xabf0=function(){return _0x59d8d7;};return _0xabf0();}import{getTranslation as _0x131f3a}from'../../aicore/utils/common-translations.js';function _0x44cf(_0x295dc7,_0x4ea371){const _0xabf004=_0xabf0();return _0x44cf=function(_0x44cf4c,_0x2eec4e){_0x44cf4c=_0x44cf4c-0x10e;let _0x22f76e=_0xabf004[_0x44cf4c];return _0x22f76e;},_0x44cf(_0x295dc7,_0x4ea371);}import{createResizeButton as _0x5cd103}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x183f18{[_0x1ff9cd(0x123)];[_0x1ff9cd(0x11d)];constructor(_0x4fc018,_0x54e9ca){const _0x366339=_0x1ff9cd;super(_0x4fc018,{'label':_0x131f3a(_0x4fc018,_0x366339(0x11e)),'class':_0x366339(0x10f),'icon':_0x5523b8}),this[_0x366339(0x124)](_0x366339(0x110),!0x1),this[_0x366339(0x123)]=this[_0x366339(0x128)](_0x4fc018),this[_0x366339(0x120)][_0x366339(0x114)](this[_0x366339(0x123)]),_0x54e9ca&&(this[_0x366339(0x11d)]=_0x5cd103(_0x4fc018,this),this[_0x366339(0x120)][_0x366339(0x114)](this[_0x366339(0x11d)]));}[_0x1ff9cd(0x128)](_0x4ec531){const _0x6e4916=_0x1ff9cd,_0x388c5b=new _0x4a2b09(_0x4ec531);return _0x388c5b[_0x6e4916(0x124)]({'label':_0x131f3a(this[_0x6e4916(0x116)],_0x6e4916(0x129)),'withText':!0x0,'icon':_0x14dbc6,'class':_0x6e4916(0x121)}),_0x388c5b['on'](_0x6e4916(0x127),()=>{const _0x115cc8=_0x6e4916;this[_0x115cc8(0x125)](_0x115cc8(0x113));}),_0x388c5b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x428375=_0x7c38;(function(_0x7e34c4,_0x537c7e){var _0xa7142d=_0x7c38,_0x499c9d=_0x7e34c4();while(!![]){try{var _0x512402=-parseInt(_0xa7142d(0x15c))/0x1+parseInt(_0xa7142d(0x146))/0x2*(parseInt(_0xa7142d(0x151))/0x3)+parseInt(_0xa7142d(0x149))/0x4*(parseInt(_0xa7142d(0x141))/0x5)+parseInt(_0xa7142d(0x152))/0x6*(-parseInt(_0xa7142d(0x14c))/0x7)+parseInt(_0xa7142d(0x154))/0x8+parseInt(_0xa7142d(0x14b))/0x9+parseInt(_0xa7142d(0x157))/0xa;if(_0x512402===_0x537c7e)break;else _0x499c9d['push'](_0x499c9d['shift']());}catch(_0x2674f6){_0x499c9d['push'](_0x499c9d['shift']());}}}(_0x1c04,0x4cbe0));import{View as _0x2d624b,BodyCollection as _0x9d37f3}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2ccb2a}from'../utils/eventnames.js';function _0x7c38(_0x4bcb62,_0x37de38){var _0x1c049c=_0x1c04();return _0x7c38=function(_0x7c383f,_0x34a67e){_0x7c383f=_0x7c383f-0x141;var _0x37012a=_0x1c049c[_0x7c383f];return _0x37012a;},_0x7c38(_0x4bcb62,_0x37de38);}function _0x1c04(){var _0x2c157a=['attachToDom','394263UTplHZ','15190aZWNjr','delegate','ck-reset_all','ck-ai-chat','contextResourcesSearchInputVisibleFrom','2109eQUGcv','1236cGMtie','chatFeed','1103656rnsGsE','showResizeButton','uiLanguageDirection','8666830lITpNP','ck-rounded-corners','setTemplate','_bodyCollection','chatControls','483624qWXMzJ','destroy','5qidNDG','detachFromDom','closeSourceResourceBalloon','chatDisclaimer','populateSourceResourceBalloon','124oOMFSx','div','chatHeader','611788APwOTe'];_0x1c04=function(){return _0x2c157a;};return _0x1c04();}import{AIChatFeedView as _0x2b1221}from'./aichatfeedview.js';import{AIChatControlsView as _0x7c668}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x2a9bc5}from'./aichatheaderview.js';import{AIDisclaimerView as _0x49b70b}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x2d624b{[_0x428375(0x148)];[_0x428375(0x153)];[_0x428375(0x15b)];[_0x428375(0x144)];[_0x428375(0x15a)];constructor(_0x22f226,_0x5847b4){var _0x16a902=_0x428375;super(_0x22f226),this[_0x16a902(0x15a)]=new _0x9d37f3(_0x22f226),this[_0x16a902(0x15a)][_0x16a902(0x14a)](),this[_0x16a902(0x148)]=new _0x2a9bc5(_0x22f226,_0x5847b4[_0x16a902(0x155)]),this[_0x16a902(0x148)][_0x16a902(0x14d)](..._0x2ccb2a)['to'](this),this[_0x16a902(0x153)]=new _0x2b1221(_0x22f226,this[_0x16a902(0x15a)]),this[_0x16a902(0x153)][_0x16a902(0x14d)](..._0x2ccb2a)['to'](this),this[_0x16a902(0x15b)]=new _0x7c668(_0x22f226,{'bodyCollection':this[_0x16a902(0x15a)],'contextResourcesSearchInputVisibleFrom':_0x5847b4[_0x16a902(0x150)]}),this[_0x16a902(0x15b)][_0x16a902(0x14d)](..._0x2ccb2a)['to'](this),this[_0x16a902(0x144)]=new _0x49b70b(_0x22f226),this[_0x16a902(0x159)]({'tag':_0x16a902(0x147),'attributes':{'class':['ck',_0x16a902(0x14e),_0x16a902(0x14f),_0x16a902(0x158)],'dir':_0x22f226[_0x16a902(0x156)]},'children':[this[_0x16a902(0x148)],this[_0x16a902(0x153)],this[_0x16a902(0x15b)],this[_0x16a902(0x144)]]});}[_0x428375(0x145)](_0x13c394,_0x204cb5,_0x26b15f,_0x3293af){var _0x58e397=_0x428375;this[_0x58e397(0x15b)][_0x58e397(0x145)](_0x13c394,_0x204cb5,_0x26b15f,_0x3293af);}[_0x428375(0x143)](_0x24cb01){var _0x3e65e0=_0x428375;this[_0x3e65e0(0x15b)][_0x3e65e0(0x143)](_0x24cb01);}[_0x428375(0x15d)](){var _0x2c2b3f=_0x428375;this[_0x2c2b3f(0x15a)][_0x2c2b3f(0x142)](),super[_0x2c2b3f(0x15d)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x48b8(){const _0x44994f=['tooltip','1413699GNJFOL','ck-ai-chat-context-chip_document','add','252921pKVOEC','ck-hidden','slice','isLoading','isVisible','_isAnimationOnEnterEnabled','9198808KXJqBu','lastIndexOf','webkitAnimationEnd','5dvAyEK','disableAnimationOnEnter','8sSvKLd','ck-ai-chat-context-chip_wide','addEventListener','document','div','small','render','itemType','_handleAnimationEndOnce','ck-ai-chat-context-chip','17314857QGTGaF','ck-ai-chat-context-chip__label','bindTemplate','length','element','setTemplate','classList','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','label','ck-ai-chat-context-chip__type-icon','2565940QQMzEe','type','uiId','removeEventListener','_createLoaderIcon','_setupRemoveButtonEvent','ck-ai-chat-context-chip_new-chip','removeContextItemChip','execute','2954076bSPtuc','set','selection','_createTemplateAttributes','_createTemplateChildren','3515127AyVHRQ','animationend','extendTemplate','_createRemoveButton','ck-ai-chat-context-controls__chip-tooltip','remove','bind','span','_setupTemplate','_createLabelElement','locale','_createIconView','readonly','_initializeProperties','content','fire'];_0x48b8=function(){return _0x44994f;};return _0x48b8();}const _0x246ae8=_0xc8e8;(function(_0xff3df4,_0x24730e){const _0x3d85fd=_0xc8e8,_0x2945ba=_0xff3df4();while(!![]){try{const _0x3536b2=-parseInt(_0x3d85fd(0x155))/0x1*(-parseInt(_0x3d85fd(0x160))/0x2)+-parseInt(_0x3d85fd(0x152))/0x3+parseInt(_0x3d85fd(0x133))/0x4+parseInt(_0x3d85fd(0x15e))/0x5*(-parseInt(_0x3d85fd(0x13c))/0x6)+-parseInt(_0x3d85fd(0x141))/0x7+-parseInt(_0x3d85fd(0x15b))/0x8+parseInt(_0x3d85fd(0x16a))/0x9;if(_0x3536b2===_0x24730e)break;else _0x2945ba['push'](_0x2945ba['shift']());}catch(_0x416288){_0x2945ba['push'](_0x2945ba['shift']());}}}(_0x48b8,0xeabab));import{ButtonView as _0x5d15f8,IconView as _0x48bde0}from'ckeditor5/src/ui.js';import{IconClose as _0x10fba5,IconDocument as _0x3391f8,IconFileUpload as _0x4ddcfb,IconLink as _0x4aa3c2,IconSelection as _0x234623}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x310f14}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0xc5708}from'../../../aicore/ui/aispinner.js';function _0xc8e8(_0x5a441f,_0x323771){const _0x48b898=_0x48b8();return _0xc8e8=function(_0xc8e878,_0xac5f3d){_0xc8e878=_0xc8e878-0x133;let _0x264cb8=_0x48b898[_0xc8e878];return _0x264cb8;},_0xc8e8(_0x5a441f,_0x323771);}const xn={'file':_0x4ddcfb,'document':_0x3391f8,'web-resource':_0x4aa3c2,'text':_0x4ddcfb,'selection':_0x234623,'mcp-tool-context':_0x3391f8},bn=_0x246ae8(0x169),wn=_0x246ae8(0x161),Tn=_0x246ae8(0x153),En=_0x246ae8(0x16b),fn=_0x246ae8(0x173),An=_0x246ae8(0x145),Cn='n';export class AIChatContextItemButtonView extends _0x5d15f8{constructor(_0xf3b1df,_0x1a5005,_0x2cd7fe,_0x504f46,_0x436363=!0x1){const _0xbb8668=_0x246ae8;super(_0xf3b1df),this[_0xbb8668(0x15a)]=_0x504f46,this[_0xbb8668(0x14e)](_0x1a5005,_0x2cd7fe,_0x436363),this[_0xbb8668(0x149)]();}[_0x246ae8(0x166)](){const _0x3b15d1=_0x246ae8;super[_0x3b15d1(0x166)](),this[_0x3b15d1(0x15a)]&&this[_0x3b15d1(0x16e)]&&(this[_0x3b15d1(0x16e)][_0x3b15d1(0x170)][_0x3b15d1(0x154)](_0x3b15d1(0x139)),this[_0x3b15d1(0x168)](this[_0x3b15d1(0x16e)],()=>{const _0x2fda4c=_0x3b15d1;this[_0x2fda4c(0x16e)]&&this[_0x2fda4c(0x16e)][_0x2fda4c(0x170)][_0x2fda4c(0x146)](_0x2fda4c(0x139));}));}[_0x246ae8(0x15f)](){const _0x103b3a=_0x246ae8;this[_0x103b3a(0x15a)]=!0x1,this[_0x103b3a(0x16e)]&&this[_0x103b3a(0x16e)][_0x103b3a(0x170)][_0x103b3a(0x146)](_0x103b3a(0x139));}[_0x246ae8(0x14e)](_0x5c9f1b,_0x4c3063,_0x59adba){const _0x5acf60=_0x246ae8;this[_0x5acf60(0x13d)](_0x5acf60(0x172),_0x5c9f1b[_0x5acf60(0x172)]),this[_0x5acf60(0x13d)](_0x5acf60(0x151),!0x0),this[_0x5acf60(0x13d)](_0x5acf60(0x167),_0x5c9f1b[_0x5acf60(0x134)]),this[_0x5acf60(0x13d)]('id',_0x5c9f1b[_0x5acf60(0x135)]),this[_0x5acf60(0x13d)](_0x5acf60(0x14d),_0x4c3063),this[_0x5acf60(0x13d)](_0x5acf60(0x158),_0x59adba);}[_0x246ae8(0x149)](){const _0x4fc880=_0x246ae8,_0x658425=this[_0x4fc880(0x14c)](),_0x538941=this[_0x4fc880(0x144)](),_0x566c46=this[_0x4fc880(0x16c)];this[_0x4fc880(0x16f)]({'tag':_0x4fc880(0x164),'attributes':this[_0x4fc880(0x13f)](_0x566c46),'children':this[_0x4fc880(0x140)](_0x658425,_0x538941,_0x566c46)});}[_0x246ae8(0x13f)](_0x4001ad){const _0x3fe6f0=_0x246ae8;return{'class':[bn,_0x4001ad['if'](_0x3fe6f0(0x167),Tn,_0x4d34d1=>_0x3fe6f0(0x163)==_0x4d34d1),_0x4001ad['if'](_0x3fe6f0(0x167),wn,_0xa9548e=>_0x3fe6f0(0x13e)==_0xa9548e)],'data-cke-tooltip-text':_0x4001ad['to'](_0x3fe6f0(0x172),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x246ae8(0x140)](_0x334c41,_0x1df9ff,_0x23ca25){const _0x581102=_0x246ae8,_0x39f564=this[_0x581102(0x14a)](_0x23ca25),_0x44205e=this[_0x581102(0x137)]();return this[_0x581102(0x14d)]?[_0x334c41,_0x39f564]:[_0x334c41,_0x44205e,_0x39f564,_0x1df9ff];}[_0x246ae8(0x14a)](_0x203675){const _0x20b5fc=_0x246ae8;return{'tag':_0x20b5fc(0x148),'attributes':{'class':En},'children':[{'text':_0x203675['to'](_0x20b5fc(0x172))}]};}[_0x246ae8(0x144)](){const _0x4a8348=_0x246ae8,_0x1e7ed6=new _0x5d15f8(this[_0x4a8348(0x14b)]);return _0x1e7ed6[_0x4a8348(0x13d)]({'label':_0x310f14(this[_0x4a8348(0x14b)],_0x4a8348(0x171)),'icon':_0x10fba5}),this[_0x4a8348(0x138)](_0x1e7ed6),_0x1e7ed6;}[_0x246ae8(0x138)](_0x247900){const _0xfa9fef=_0x246ae8;_0x247900['on'](_0xfa9fef(0x13b),()=>{const _0x16d65a=_0xfa9fef;this[_0x16d65a(0x150)](_0x16d65a(0x13a),this['id']);});}[_0x246ae8(0x14c)](){const _0x28202a=_0x246ae8,_0x42b671=this[_0x28202a(0x16c)],_0x1db265=new _0x48bde0();return _0x1db265[_0x28202a(0x14f)]=xn[this[_0x28202a(0x167)]],_0x1db265[_0x28202a(0x143)]({'attributes':{'class':[fn,_0x42b671['if'](_0x28202a(0x158),_0x28202a(0x156),_0x324ec1=>_0x324ec1)]}}),_0x1db265;}[_0x246ae8(0x168)](_0x5c6deb,_0x4a75fe){const _0x4f9315=_0x246ae8;if(!_0x5c6deb)return;const _0x421ebd=()=>{const _0x31b3c0=_0xc8e8;_0x4a75fe(),_0x5c6deb[_0x31b3c0(0x136)](_0x31b3c0(0x142),_0x421ebd),_0x5c6deb[_0x31b3c0(0x136)](_0x31b3c0(0x15d),_0x421ebd);};_0x5c6deb[_0x4f9315(0x162)](_0x4f9315(0x142),_0x421ebd),_0x5c6deb[_0x4f9315(0x162)](_0x4f9315(0x15d),_0x421ebd);}[_0x246ae8(0x137)](){const _0x1537bb=_0x246ae8,_0x7bdd0f=new _0xc5708(_0x1537bb(0x165));return _0x7bdd0f[_0x1537bb(0x147)](_0x1537bb(0x159))['to'](this,_0x1537bb(0x158),_0x224c31=>_0x224c31),_0x7bdd0f;}}function In(_0xd5b2cf){const _0x2a4194=_0x246ae8;if(!_0xd5b2cf)return _0xd5b2cf;if(_0xd5b2cf[_0x2a4194(0x16d)]<=0x78)return _0xd5b2cf;const _0x227ab0=_0xd5b2cf[_0x2a4194(0x157)](0x0,0x78),_0x3f812a=_0x227ab0[_0x2a4194(0x15c)]('\x20');return(_0x3f812a>0x0?_0x227ab0[_0x2a4194(0x157)](0x0,_0x3f812a):_0x227ab0)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x137ff1=_0x3d3c;(function(_0x45f841,_0x4c94fa){const _0x544b39=_0x3d3c,_0x1fc82c=_0x45f841();while(!![]){try{const _0x5842bd=parseInt(_0x544b39(0x12f))/0x1+-parseInt(_0x544b39(0x16a))/0x2+-parseInt(_0x544b39(0x14a))/0x3*(-parseInt(_0x544b39(0x14d))/0x4)+-parseInt(_0x544b39(0x142))/0x5*(parseInt(_0x544b39(0x138))/0x6)+parseInt(_0x544b39(0x168))/0x7+parseInt(_0x544b39(0x132))/0x8+parseInt(_0x544b39(0x124))/0x9*(-parseInt(_0x544b39(0x12a))/0xa);if(_0x5842bd===_0x4c94fa)break;else _0x1fc82c['push'](_0x1fc82c['shift']());}catch(_0x545869){_0x1fc82c['push'](_0x1fc82c['shift']());}}}(_0x4495,0x34fd2));import{FocusTracker as _0x123e03,KeystrokeHandler as _0x264255}from'ckeditor5/src/utils.js';function _0x4495(){const _0x1bdd9e=['_createUrlInputField','910dgLwMt','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','\x20ck-hidden','focusTracker','destroy','230443bqVDGe','tab','ck-button-icon\x20ck-button-back','1515664mDWyme','submit','setTemplate','_focusables','fieldView','_isValidUrl','5388DkXsmM','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_setupKeystrokes','ck-labeled-field-view_empty','trim','cancel','fire','element','change:withBackButton','_setupTemplate','1135IktxZr','refreshBalloon','errorText','esc','createCollection','_setupEventHandlers','listenTo','children','3vuYQxJ','_handleSubmit','confirmButton','1674208mAqJNt','getValue','isEnabled','render','withBackButton','locale','clearError','AI_CHAT_CONTEXT_URL_ADD_URL','set','div','stop','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','focus','submitUrl','form','AI_CHAT_CONTEXT_URL_INVALID_ERROR','forEach','ck-ai-chat-context-controls__url-form','setError','execute','length','urlInputField','add','focusCycler','input','shift+tab','ck-ai-chat-context-controls__url-input-section','578130XgChgy','_createConfirmButton','746784FdUBOh','_updateConfirmButtonState','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_LABEL','clear','keystrokes','12537UQIVYv','_createBackButton','value','ck-button-icon','backButton'];_0x4495=function(){return _0x1bdd9e;};return _0x4495();}import{ButtonView as _0x51d4d5,FocusCycler as _0x13774b,LabeledFieldView as _0x59f4ff,View as _0x3d72e2,FormHeaderView as _0x5a7446,createLabeledInputText as _0x352c94,submitHandler as _0x57887e}from'ckeditor5/src/ui.js';import{IconCheck as _0x38d41b,IconPreviousArrow as _0x58f7fe}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x110877}from'../../../aicore/utils/common-translations.js';const oh=_0x137ff1(0x15e),ch=_0x137ff1(0x167);function _0x3d3c(_0x3e7643,_0x4e1ebb){const _0x44955f=_0x4495();return _0x3d3c=function(_0x3d3c67,_0x50ca81){_0x3d3c67=_0x3d3c67-0x121;let _0x31cac6=_0x44955f[_0x3d3c67];return _0x31cac6;},_0x3d3c(_0x3e7643,_0x4e1ebb);}export class AIChatContextPanelUrlInputView extends _0x3d72e2{[_0x137ff1(0x12d)];[_0x137ff1(0x123)];[_0x137ff1(0x135)];[_0x137ff1(0x164)];[_0x137ff1(0x162)];[_0x137ff1(0x128)];[_0x137ff1(0x14c)];constructor(_0x44b369){const _0x5d30c4=_0x137ff1;super(_0x44b369),this[_0x5d30c4(0x12d)]=new _0x123e03(),this[_0x5d30c4(0x123)]=new _0x264255(),this[_0x5d30c4(0x128)]=this[_0x5d30c4(0x125)](),this[_0x5d30c4(0x162)]=this[_0x5d30c4(0x129)](),this[_0x5d30c4(0x14c)]=this[_0x5d30c4(0x169)](),this[_0x5d30c4(0x135)]=this[_0x5d30c4(0x146)]([this[_0x5d30c4(0x128)],this[_0x5d30c4(0x162)],this[_0x5d30c4(0x14c)]]),this[_0x5d30c4(0x164)]=new _0x13774b({'focusables':this[_0x5d30c4(0x135)],'focusTracker':this[_0x5d30c4(0x12d)],'keystrokeHandler':this[_0x5d30c4(0x123)],'actions':{'focusPrevious':_0x5d30c4(0x166),'focusNext':_0x5d30c4(0x130)}}),this[_0x5d30c4(0x155)](_0x5d30c4(0x151),!0x0),this[_0x5d30c4(0x141)](),this[_0x5d30c4(0x147)](),this[_0x5d30c4(0x13a)]();}[_0x137ff1(0x150)](){const _0x192df5=_0x137ff1;super[_0x192df5(0x150)](),this[_0x192df5(0x135)][_0x192df5(0x15d)](_0x257888=>{const _0x240fbd=_0x192df5;this[_0x240fbd(0x12d)][_0x240fbd(0x163)](_0x257888[_0x240fbd(0x13f)]),this[_0x240fbd(0x123)][_0x240fbd(0x148)](_0x257888[_0x240fbd(0x13f)]);}),_0x57887e({'view':this}),this[_0x192df5(0x159)]();}[_0x137ff1(0x12e)](){const _0x18355a=_0x137ff1;super[_0x18355a(0x12e)](),this[_0x18355a(0x12d)][_0x18355a(0x12e)](),this[_0x18355a(0x123)][_0x18355a(0x12e)]();}[_0x137ff1(0x159)](){const _0x44de84=_0x137ff1;this[_0x44de84(0x162)][_0x44de84(0x159)]();}[_0x137ff1(0x14e)](){const _0x1193cd=_0x137ff1;return this[_0x1193cd(0x162)][_0x1193cd(0x136)][_0x1193cd(0x13f)]?.[_0x1193cd(0x126)]?.[_0x1193cd(0x13c)]()||'';}[_0x137ff1(0x122)](){const _0x5cc96e=_0x137ff1;this[_0x5cc96e(0x162)][_0x5cc96e(0x136)][_0x5cc96e(0x13f)][_0x5cc96e(0x126)]='',this[_0x5cc96e(0x162)][_0x5cc96e(0x144)]=null,this[_0x5cc96e(0x14c)][_0x5cc96e(0x14f)]=!0x1;}[_0x137ff1(0x15f)](_0x1cacca){const _0x39d0ad=_0x137ff1;this[_0x39d0ad(0x162)][_0x39d0ad(0x144)]=_0x1cacca,this[_0x39d0ad(0x16b)](),this[_0x39d0ad(0x13e)](_0x39d0ad(0x143));}[_0x137ff1(0x153)](){const _0x1d8a52=_0x137ff1;this[_0x1d8a52(0x162)][_0x1d8a52(0x144)]=null,this[_0x1d8a52(0x16b)]();}[_0x137ff1(0x125)](){const _0x5b94a0=_0x137ff1,_0x4cf597=new _0x51d4d5(this[_0x5b94a0(0x152)]);return _0x4cf597[_0x5b94a0(0x155)]({'icon':_0x58f7fe,'tooltip':_0x110877(this[_0x5b94a0(0x152)],_0x5b94a0(0x12b)),'tooltipPosition':'n','class':[_0x5b94a0(0x131)]}),this['on'](_0x5b94a0(0x140),(_0x306d26,_0x1a0545,_0x1a2ef4)=>{const _0x287811=_0x5b94a0;_0x4cf597[_0x287811(0x155)]({'class':[_0x287811(0x131)+(_0x1a2ef4?'':_0x287811(0x12c))]});}),_0x4cf597;}[_0x137ff1(0x129)](){const _0x47f28d=_0x137ff1,_0x5bae1e=new _0x59f4ff(this[_0x47f28d(0x152)],_0x352c94);return _0x5bae1e[_0x47f28d(0x155)]({'label':_0x110877(this[_0x47f28d(0x152)],_0x47f28d(0x121)),'class':_0x47f28d(0x13b)}),_0x5bae1e[_0x47f28d(0x136)][_0x47f28d(0x155)]({'placeholder':_0x110877(this[_0x47f28d(0x152)],_0x47f28d(0x139))}),_0x5bae1e;}[_0x137ff1(0x169)](){const _0x1c5c59=_0x137ff1,_0x344d37=new _0x51d4d5(this[_0x1c5c59(0x152)]);return _0x344d37[_0x1c5c59(0x155)]({'icon':_0x38d41b,'tooltip':_0x110877(this[_0x1c5c59(0x152)],_0x1c5c59(0x154)),'tooltipPosition':'n','class':_0x1c5c59(0x127),'type':_0x1c5c59(0x133),'isEnabled':!0x1}),_0x344d37;}[_0x137ff1(0x141)](){const _0x3dc9a3=_0x137ff1,_0x1e0543=new _0x5a7446(this[_0x3dc9a3(0x152)],{'label':_0x110877(this[_0x3dc9a3(0x152)],_0x3dc9a3(0x154)),'class':_0x3dc9a3(0x16c)});_0x1e0543[_0x3dc9a3(0x149)][_0x3dc9a3(0x163)](this[_0x3dc9a3(0x128)],0x0),this[_0x3dc9a3(0x134)]({'tag':_0x3dc9a3(0x15b),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x1e0543,{'tag':_0x3dc9a3(0x156),'attributes':{'class':ch},'children':[this[_0x3dc9a3(0x162)],this[_0x3dc9a3(0x14c)]]}]});}[_0x137ff1(0x147)](){const _0x4e0c5b=_0x137ff1;this[_0x4e0c5b(0x128)]['on'](_0x4e0c5b(0x160),()=>{const _0x21ea13=_0x4e0c5b;this[_0x21ea13(0x122)](),this[_0x21ea13(0x13e)](_0x21ea13(0x13d));}),this[_0x4e0c5b(0x162)][_0x4e0c5b(0x136)]['on'](_0x4e0c5b(0x165),()=>{const _0x227fd5=_0x4e0c5b;this[_0x227fd5(0x153)](),this[_0x227fd5(0x16b)](),this[_0x227fd5(0x13e)](_0x227fd5(0x143));}),this['on'](_0x4e0c5b(0x133),_0x4ae85b=>{const _0x2aec4e=_0x4e0c5b;_0x4ae85b[_0x2aec4e(0x157)](),this[_0x2aec4e(0x14b)]();});}[_0x137ff1(0x13a)](){const _0x42b387=_0x137ff1;this[_0x42b387(0x123)][_0x42b387(0x155)](_0x42b387(0x145),(_0x2df2c8,_0x293e24)=>{const _0x20437d=_0x42b387;this[_0x20437d(0x122)](),this[_0x20437d(0x13e)](_0x20437d(0x13d)),_0x293e24();});}[_0x137ff1(0x14b)](){const _0x5969dd=_0x137ff1,_0x24851b=this[_0x5969dd(0x14e)]()[_0x5969dd(0x13c)]();_0x24851b?this[_0x5969dd(0x137)](_0x24851b)?(this[_0x5969dd(0x153)](),this[_0x5969dd(0x13e)](_0x5969dd(0x15a),_0x24851b)):this[_0x5969dd(0x15f)](_0x110877(this[_0x5969dd(0x152)],_0x5969dd(0x15c))):this[_0x5969dd(0x15f)](_0x110877(this[_0x5969dd(0x152)],_0x5969dd(0x158)));}[_0x137ff1(0x16b)](){const _0x308aeb=_0x137ff1,_0x51ae5a=this[_0x308aeb(0x14e)]()[_0x308aeb(0x13c)](),_0x2e910d=!!this[_0x308aeb(0x162)][_0x308aeb(0x144)];this[_0x308aeb(0x14c)][_0x308aeb(0x14f)]=_0x51ae5a[_0x308aeb(0x161)]>0x0&&!_0x2e910d;}[_0x137ff1(0x137)](_0x48fc3c){try{return!!new URL(_0x48fc3c);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x963c68=_0x3fa9;(function(_0x1fb5f6,_0x11d489){const _0x28cec3=_0x3fa9,_0x595582=_0x1fb5f6();while(!![]){try{const _0x49d148=-parseInt(_0x28cec3(0x14c))/0x1+parseInt(_0x28cec3(0x152))/0x2+-parseInt(_0x28cec3(0x1cf))/0x3+-parseInt(_0x28cec3(0x1b9))/0x4*(parseInt(_0x28cec3(0x19a))/0x5)+parseInt(_0x28cec3(0x15a))/0x6+-parseInt(_0x28cec3(0x183))/0x7*(parseInt(_0x28cec3(0x1d0))/0x8)+parseInt(_0x28cec3(0x1bf))/0x9*(parseInt(_0x28cec3(0x1ad))/0xa);if(_0x49d148===_0x11d489)break;else _0x595582['push'](_0x595582['shift']());}catch(_0x3d6804){_0x595582['push'](_0x595582['shift']());}}}(_0x2324,0xc01b1));import{BalloonPanelView as _0x25f420,ButtonView as _0x2b00e9,clickOutsideHandler as _0x120a92,FileDialogButtonView as _0x3c2857,IconView as _0x31ee02,View as _0x21d602}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x12b036,IconDocument as _0x4b6af2,IconDocumentOutline as _0x424f93,IconDropdownArrow as _0x5443c3,IconLink as _0x3d4f9d,IconPaperClip as _0x3e2f72}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x47368a}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x3582ec}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x46bc41}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x44c3e7}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x28ff2a}from'./resources/aichatresourcesballoonview.js';function _0x3fa9(_0x2024d3,_0x52bba1){const _0x232412=_0x2324();return _0x3fa9=function(_0x3fa9c5,_0x485a85){_0x3fa9c5=_0x3fa9c5-0x13c;let _0x357dbb=_0x232412[_0x3fa9c5];return _0x357dbb;},_0x3fa9(_0x2024d3,_0x52bba1);}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x963c68(0x1a9),_0x963c68(0x1c5),_0x963c68(0x180),_0x963c68(0x142),_0x963c68(0x1cc),_0x963c68(0x1bc),_0x963c68(0x15c)];const Ro=_0x963c68(0x194),Oo=_0x963c68(0x1a8),Uo=_0x963c68(0x1ac),Lo=_0x963c68(0x16c),No=_0x963c68(0x175),Mo=_0x963c68(0x150),Ho=_0x963c68(0x1b1),jo=_0x963c68(0x182),Fo=_0x963c68(0x185),Xo=_0x963c68(0x13d),yo=_0x963c68(0x154),Do=_0x963c68(0x146),$o=[_0x25f420[_0x963c68(0x1d1)][_0x963c68(0x13c)],_0x25f420[_0x963c68(0x1d1)][_0x963c68(0x145)],_0x25f420[_0x963c68(0x1d1)][_0x963c68(0x186)],_0x25f420[_0x963c68(0x1d1)][_0x963c68(0x1c1)],_0x25f420[_0x963c68(0x1d1)][_0x963c68(0x167)],_0x25f420[_0x963c68(0x1d1)][_0x963c68(0x16f)]];export class AIChatContextPanelView extends _0x21d602{[_0x963c68(0x199)];[_0x963c68(0x1ab)]=this[_0x963c68(0x1aa)]();[_0x963c68(0x17c)]=this[_0x963c68(0x1aa)]();[_0x963c68(0x155)];[_0x963c68(0x141)];[_0x963c68(0x1a0)];[_0x963c68(0x18a)];[_0x963c68(0x197)];[_0x963c68(0x140)];[_0x963c68(0x18c)]=!0x1;[_0x963c68(0x1b7)];constructor(_0x5af33c,_0x594baf){const _0x252901=_0x963c68;super(_0x5af33c),this[_0x252901(0x1b7)]=_0x594baf[_0x252901(0x1b7)],this[_0x252901(0x1ab)]=this[_0x252901(0x1aa)](),this[_0x252901(0x17c)]=this[_0x252901(0x1aa)](),this[_0x252901(0x199)]=this[_0x252901(0x161)](_0x5af33c),this[_0x252901(0x141)]=this[_0x252901(0x1cb)](_0x5af33c),this[_0x252901(0x1a0)]=this[_0x252901(0x178)](_0x5af33c),this[_0x252901(0x197)]=this[_0x252901(0x14a)](_0x5af33c,_0x594baf);const _0x19924b={'cssClasses':{'showMoreButton':Xo,'showMoreBalloon':yo,'overflowContainer':Fo,'controlsButton':jo}};this[_0x252901(0x155)]=new _0x46bc41(_0x5af33c,this[_0x252901(0x1ab)],_0x19924b,this[_0x252901(0x1b7)],this),this[_0x252901(0x140)]={'buttonView':this[_0x252901(0x199)],'balloonView':this[_0x252901(0x141)],'hideMethod':this[_0x252901(0x17a)][_0x252901(0x165)](this),'showMethod':this[_0x252901(0x181)][_0x252901(0x165)](this)},this[_0x252901(0x15e)](),this[_0x252901(0x196)]();}[_0x963c68(0x171)](){const _0x5ce7b0=_0x963c68;super[_0x5ce7b0(0x171)](),this[_0x5ce7b0(0x147)](),this[_0x5ce7b0(0x155)][_0x5ce7b0(0x1c7)](this[_0x5ce7b0(0x1c3)]),this[_0x5ce7b0(0x155)][_0x5ce7b0(0x170)]();}[_0x963c68(0x1ca)](){const _0x583d8e=_0x963c68;super[_0x583d8e(0x1ca)](),this[_0x583d8e(0x155)][_0x583d8e(0x1ca)](),this[_0x583d8e(0x197)][_0x583d8e(0x1ca)]();}[_0x963c68(0x163)](_0x210747,_0x5ac3d0){const _0x106303=_0x963c68,_0x393116=this[_0x106303(0x174)](_0x210747,_0x106303(0x1af),!0x0,_0x5ac3d0);this[_0x106303(0x172)](_0x393116,this[_0x106303(0x1ab)]),this[_0x106303(0x155)][_0x106303(0x170)]();}[_0x963c68(0x1cc)](_0x5be4e6){const _0x219bfb=_0x963c68;this[_0x219bfb(0x1a4)](_0x5be4e6,this[_0x219bfb(0x1ab)]),this[_0x219bfb(0x1a4)](_0x5be4e6,this[_0x219bfb(0x155)][_0x219bfb(0x19d)]),this[_0x219bfb(0x155)][_0x219bfb(0x170)]();}[_0x963c68(0x1a7)](_0x1ed4ac,_0x2eb7f0){const _0x34290d=_0x963c68;let _0x2b2f4a=this[_0x34290d(0x1ab)][_0x34290d(0x19f)](_0x35140b=>_0x35140b['id']===_0x1ed4ac);_0x2b2f4a||(_0x2b2f4a=this[_0x34290d(0x155)][_0x34290d(0x19d)][_0x34290d(0x19f)](_0x4e925b=>_0x4e925b['id']===_0x1ed4ac)),_0x2b2f4a&&(_0x2b2f4a[_0x34290d(0x177)]=_0x2eb7f0);}[_0x963c68(0x1b3)](_0x1f19d8){const _0x65644=_0x963c68;this[_0x65644(0x17c)][_0x65644(0x1a3)]();for(const _0x3e611a of _0x1f19d8){const _0x56a911=this[_0x65644(0x174)](_0x3e611a,_0x65644(0x1a6),!0x1,!0x1);this[_0x65644(0x172)](_0x56a911,this[_0x65644(0x17c)]);}}[_0x963c68(0x1c8)](){const _0x1a8719=_0x963c68;this[_0x1a8719(0x1ab)][_0x1a8719(0x1a3)](),this[_0x1a8719(0x155)][_0x1a8719(0x1a3)]();}[_0x963c68(0x1c9)](){const _0x458332=_0x963c68;this[_0x458332(0x17c)][_0x458332(0x1a3)]();}[_0x963c68(0x17e)](_0x3fbb03,_0x5c112a,_0xdbb515){const _0x595a5c=_0x963c68;this[_0x595a5c(0x197)][_0x595a5c(0x17e)](_0x3fbb03,_0x5c112a,_0xdbb515);}[_0x963c68(0x17a)](){const _0x37361e=_0x963c68;this[_0x37361e(0x176)](!0x1);}[_0x963c68(0x181)](){const _0xce4a32=_0x963c68;this[_0xce4a32(0x176)](!0x0);}[_0x963c68(0x1c6)](){const _0x23ac62=_0x963c68;this[_0x23ac62(0x1a0)][_0x23ac62(0x195)](),this[_0x23ac62(0x199)][_0x23ac62(0x156)]=!0x1,this[_0x23ac62(0x18a)]&&this[_0x23ac62(0x18a)][_0x23ac62(0x1a3)]();}[_0x963c68(0x1be)](){const _0x2e9c02=_0x963c68;this[_0x2e9c02(0x1a0)][_0x2e9c02(0x16b)](),this[_0x2e9c02(0x199)][_0x2e9c02(0x156)]=!0x0;}[_0x963c68(0x18b)]({source:_0x9a1486,withBackButton:_0x6812d7}){const _0x5a75e5=_0x963c68;this[_0x5a75e5(0x197)][_0x5a75e5(0x159)]({'source':_0x9a1486,'withBackButton':_0x6812d7}),this[_0x5a75e5(0x199)][_0x5a75e5(0x156)]=!0x0;}[_0x963c68(0x1d2)](_0x470f06,_0x4dab3c,_0x174fed,_0x57ac39){const _0x452c46=_0x963c68;this[_0x452c46(0x197)][_0x452c46(0x1d2)](_0x470f06,_0x174fed,_0x57ac39);}[_0x963c68(0x184)](_0x5a38ff){const _0x5a5c64=_0x963c68;this[_0x5a5c64(0x197)][_0x5a5c64(0x184)](_0x5a38ff),this[_0x5a5c64(0x199)][_0x5a5c64(0x156)]=!0x1;}[_0x963c68(0x143)](_0x3bb93c){const _0x553414=_0x963c68;this[_0x553414(0x157)](this[_0x553414(0x141)],this[_0x553414(0x169)],_0x3bb93c),this[_0x553414(0x19e)](_0x3bb93c);}[_0x963c68(0x19e)](_0x3a944c){const _0x23c05f=_0x963c68,_0xbf1285=!_0x3a944c[_0x23c05f(0x1b5)][_0x23c05f(0x193)]&&_0x3a944c[_0x23c05f(0x1b5)][_0x23c05f(0x18d)],_0x3aef5c=_0x3a944c[_0x23c05f(0x13f)][_0x23c05f(0x18d)],_0x5ef131=_0x3a944c[_0x23c05f(0x168)][_0x23c05f(0x18d)],_0x501ace=_0x3a944c[_0x23c05f(0x13e)][_0x23c05f(0x1ba)]>0x0,_0x57c7b7=_0x3a944c[_0x23c05f(0x17b)]&&_0x3a944c[_0x23c05f(0x17b)][_0x23c05f(0x1ba)]>0x0;this[_0x23c05f(0x199)][_0x23c05f(0x1cd)]=_0xbf1285||_0x3aef5c||_0x5ef131||_0x501ace||_0x57c7b7;}[_0x963c68(0x15e)](){const _0xf1a94c=_0x963c68;this[_0xf1a94c(0x158)]({'tag':_0xf1a94c(0x1a2),'attributes':{'class':[Ro,_0xf1a94c(0x149)]},'children':[{'tag':_0xf1a94c(0x1a2),'attributes':{'class':Oo},'children':this[_0xf1a94c(0x1ab)]}]});}[_0x963c68(0x196)](){const _0x207d1b=_0x963c68;this[_0x207d1b(0x199)]['on'](_0x207d1b(0x14f),()=>{const _0x300408=_0x207d1b;this[_0x300408(0x1c4)]();});}[_0x963c68(0x161)](_0x4d10dd){const _0x4762ed=_0x963c68,_0x38bbc5=new _0x2b00e9(_0x4d10dd);return _0x38bbc5[_0x4762ed(0x190)]({'label':_0x44c3e7(_0x4d10dd,_0x4762ed(0x16d)),'class':jo+'\x20'+Lo,'icon':_0x3e2f72,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x38bbc5;}[_0x963c68(0x1cb)](_0x233e48){const _0x1984a1=_0x963c68;return this[_0x1984a1(0x17f)](_0x233e48,Uo);}[_0x963c68(0x178)](_0x233195){const _0x3d3c12=_0x963c68,_0x60899c=this[_0x3d3c12(0x17f)](_0x233195,No);return this[_0x3d3c12(0x162)](_0x60899c,_0x233195),_0x60899c;}[_0x963c68(0x14a)](_0xb46b6a,_0x2e261e){const _0x125d06=_0x963c68,_0x5ac4b4={'searchInputVisibleFrom':_0x2e261e[_0x125d06(0x16e)],'onBackToContext':()=>{const _0x3fd87a=_0x125d06;this[_0x3fd87a(0x181)](),this[_0x3fd87a(0x141)][_0x3fd87a(0x160)]({'target':this[_0x3fd87a(0x199)][_0x3fd87a(0x1c3)],'limiter':this[_0x3fd87a(0x173)](),'positions':$o});},'onResourceSelected':(_0x322786,_0x34eb39)=>{const _0x302947=_0x125d06;this[_0x302947(0x1b4)](_0x302947(0x142),{'source':_0x322786,'resource':_0x34eb39});},'onLoadSourceResources':_0x5c8b6a=>{const _0x1d4dcf=_0x125d06;this[_0x1d4dcf(0x1b4)](_0x1d4dcf(0x1bc),_0x5c8b6a);},'onBalloonClosed':()=>{const _0x40e29f=_0x125d06;this[_0x40e29f(0x199)][_0x40e29f(0x156)]=!0x1;},'getLimiterElement':()=>this[_0x125d06(0x173)](),'getTargetElement':()=>this[_0x125d06(0x199)][_0x125d06(0x1c3)]};return new _0x28ff2a(_0xb46b6a,_0x2e261e[_0x125d06(0x1b7)],_0x5ac4b4);}[_0x963c68(0x173)](){const _0x3593be=_0x963c68;return this[_0x3593be(0x1c3)]?.[_0x3593be(0x1c2)]('.'+Do)||document[_0x3593be(0x14e)];}[_0x963c68(0x17f)](_0x1393a7,_0x4b12c6){const _0x1a13d3=_0x963c68,_0x46dfb7=new _0x25f420(_0x1393a7);return _0x46dfb7[_0x1a13d3(0x1a1)]({'attributes':{'class':_0x4b12c6}}),this[_0x1a13d3(0x1b7)][_0x1a13d3(0x15f)](_0x46dfb7),_0x46dfb7;}[_0x963c68(0x157)](_0x1445ca,_0x6f876,_0x45457a){const _0x54b0b3=_0x963c68;if(_0x1445ca[_0x54b0b3(0x187)][_0x54b0b3(0x1a3)](),!_0x45457a[_0x54b0b3(0x1b5)][_0x54b0b3(0x193)]&&_0x45457a[_0x54b0b3(0x1b5)][_0x54b0b3(0x18d)]){const _0x2962c9=this[_0x54b0b3(0x179)](_0x6f876,{'label':_0x44c3e7(_0x6f876,_0x54b0b3(0x192)),'icon':_0x4b6af2});_0x2962c9['on'](_0x54b0b3(0x14f),()=>{const _0x29b2a6=_0x54b0b3;this[_0x29b2a6(0x1b4)](_0x29b2a6(0x1a9)),this[_0x29b2a6(0x17a)]();}),_0x1445ca[_0x54b0b3(0x187)][_0x54b0b3(0x15f)](_0x2962c9);}if(_0x45457a[_0x54b0b3(0x13f)][_0x54b0b3(0x18d)]){const _0x333e42=this[_0x54b0b3(0x179)](_0x6f876,{'label':_0x44c3e7(_0x6f876,_0x54b0b3(0x1c0)),'icon':_0x3d4f9d});_0x333e42['on'](_0x54b0b3(0x14f),()=>{const _0x4b0cfb=_0x54b0b3;this[_0x4b0cfb(0x17a)](),this[_0x4b0cfb(0x1be)](),this[_0x4b0cfb(0x1a0)][_0x4b0cfb(0x160)]({'target':this[_0x4b0cfb(0x199)][_0x4b0cfb(0x1c3)],'limiter':this[_0x4b0cfb(0x173)](),'positions':$o}),this[_0x4b0cfb(0x18a)][_0x4b0cfb(0x18f)]();}),_0x1445ca[_0x54b0b3(0x187)][_0x54b0b3(0x15f)](_0x333e42);}if(_0x45457a[_0x54b0b3(0x168)][_0x54b0b3(0x18d)]){const _0x47e6a7=new _0x3c2857(_0x6f876);_0x47e6a7[_0x54b0b3(0x190)]({'label':_0x44c3e7(_0x6f876,_0x54b0b3(0x151)),'icon':_0x12b036,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x47e6a7['on'](_0x54b0b3(0x14f),()=>{const _0x59b736=_0x54b0b3;this[_0x59b736(0x17a)]();}),_0x47e6a7['on'](_0x54b0b3(0x16a),(_0x402106,_0x278cf1)=>{const _0x36a936=_0x54b0b3;this[_0x36a936(0x1b4)](_0x36a936(0x1c5),_0x278cf1);}),_0x47e6a7[_0x54b0b3(0x198)]=!0x0,_0x1445ca[_0x54b0b3(0x187)][_0x54b0b3(0x15f)](_0x47e6a7);}for(const _0x7a0142 of _0x45457a[_0x54b0b3(0x13e)]){const _0x528f6d=this[_0x54b0b3(0x179)](_0x6f876,{'label':_0x7a0142[_0x54b0b3(0x153)],'icon':_0x7a0142[_0x54b0b3(0x19b)]||_0x424f93,'type':_0x54b0b3(0x166)});_0x1445ca[_0x54b0b3(0x187)][_0x54b0b3(0x15f)](_0x528f6d),_0x528f6d['on'](_0x54b0b3(0x14f),()=>{const _0xfdcd97=_0x54b0b3;this[_0xfdcd97(0x17a)](),this[_0xfdcd97(0x18b)]({'source':_0x7a0142,'withBackButton':!this[_0xfdcd97(0x18c)]});});}for(const _0x5b0755 of _0x45457a[_0x54b0b3(0x17b)]||[]){const _0x806388=this[_0x54b0b3(0x179)](_0x6f876,{'label':_0x5b0755[_0x54b0b3(0x153)],'icon':_0x5b0755[_0x54b0b3(0x19b)]||_0x424f93,'type':_0x54b0b3(0x1b8)});_0x1445ca[_0x54b0b3(0x187)][_0x54b0b3(0x15f)](_0x806388),_0x806388['on'](_0x54b0b3(0x14f),()=>{const _0x165601=_0x54b0b3;this[_0x165601(0x17a)](),this[_0x165601(0x1b4)](_0x165601(0x15c),_0x5b0755);});}this[_0x54b0b3(0x18c)]=0x1===_0x1445ca[_0x54b0b3(0x187)][_0x54b0b3(0x1ba)],this[_0x54b0b3(0x18a)][_0x54b0b3(0x189)]=!this[_0x54b0b3(0x18c)];}[_0x963c68(0x162)](_0x5467dd,_0x3a8ebe){const _0x8dee83=_0x963c68;this[_0x8dee83(0x18a)]=new _0x3582ec(_0x3a8ebe),this[_0x8dee83(0x18a)]['on'](_0x8dee83(0x18e),(_0x2938f8,_0xbbda6e)=>{const _0x3a906c=_0x8dee83;this[_0x3a906c(0x188)](_0xbbda6e);}),this[_0x8dee83(0x18a)]['on'](_0x8dee83(0x14b),()=>{const _0x126f20=_0x8dee83;this[_0x126f20(0x1c6)](),this[_0x126f20(0x18c)]||(this[_0x126f20(0x181)](),this[_0x126f20(0x141)][_0x126f20(0x160)]({'target':this[_0x126f20(0x199)][_0x126f20(0x1c3)],'limiter':this[_0x126f20(0x173)](),'positions':$o}));}),this[_0x8dee83(0x18a)]['on'](_0x8dee83(0x191),()=>{const _0x4e7d32=_0x8dee83;this[_0x4e7d32(0x1a0)][_0x4e7d32(0x1ce)]&&this[_0x4e7d32(0x1a0)][_0x4e7d32(0x160)]({'target':this[_0x4e7d32(0x199)][_0x4e7d32(0x1c3)],'limiter':this[_0x4e7d32(0x173)](),'positions':$o});}),_0x5467dd[_0x8dee83(0x187)][_0x8dee83(0x15f)](this[_0x8dee83(0x18a)]);}[_0x963c68(0x179)](_0x284f16,_0x5dd91d){const _0xddf8d0=_0x963c68,_0x17e8a3=_0xddf8d0(0x166)===_0x5dd91d[_0xddf8d0(0x148)]?new SourcesBalloonButtonView(_0x284f16):new _0x2b00e9(_0x284f16);return _0x17e8a3[_0xddf8d0(0x190)]({'label':_0x5dd91d[_0xddf8d0(0x153)],'icon':_0x5dd91d[_0xddf8d0(0x19b)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x17e8a3;}[_0x963c68(0x147)](){const _0x4dde1e=_0x963c68;this[_0x4dde1e(0x1ae)](),this[_0x4dde1e(0x15d)]();}[_0x963c68(0x15d)](){const _0x1d1f2c=_0x963c68;_0x120a92({'emitter':this[_0x1d1f2c(0x1a0)],'contextElements':[this[_0x1d1f2c(0x1a0)][_0x1d1f2c(0x1c3)]],'callback':()=>{const _0x5ec72c=_0x1d1f2c;this[_0x5ec72c(0x1c6)]();},'activator':()=>this[_0x1d1f2c(0x1a0)][_0x1d1f2c(0x1ce)]});}[_0x963c68(0x176)](_0x56867b){const _0x2c5318=_0x963c68,_0x5e2c55=this[_0x2c5318(0x140)];_0x5e2c55[_0x2c5318(0x1b6)][_0x2c5318(0x156)]=_0x56867b,_0x56867b?_0x5e2c55[_0x2c5318(0x144)][_0x2c5318(0x16b)]():_0x5e2c55[_0x2c5318(0x144)][_0x2c5318(0x195)]();}[_0x963c68(0x1ae)](){const _0xf11261=_0x963c68,{balloonView:_0x28f976,buttonView:_0x334716,hideMethod:_0x234543}=this[_0xf11261(0x140)];_0x120a92({'emitter':_0x28f976,'contextElements':[_0x28f976[_0xf11261(0x1c3)],_0x334716[_0xf11261(0x1c3)]],'callback':()=>{_0x234543();},'activator':()=>_0x334716[_0xf11261(0x156)]&&!this[_0xf11261(0x1a0)][_0xf11261(0x1ce)]&&!this[_0xf11261(0x197)][_0xf11261(0x1bb)]()});}[_0x963c68(0x174)](_0x9da089,_0x3cfd2c,_0x3b7ff8=!0x1,_0x3874b0=!0x1){const _0x19c328=_0x963c68,_0x193645=_0x19c328(0x1a6)===_0x3cfd2c||!0x0===_0x9da089[_0x19c328(0x17d)],_0x5b2646=new _0x47368a(this[_0x19c328(0x169)],_0x9da089,_0x193645,_0x3b7ff8,_0x3874b0);return _0x193645||_0x5b2646['on'](_0x19c328(0x1bd),()=>{const _0x127972=_0x19c328;this[_0x127972(0x1b4)](_0x127972(0x1cc),_0x5b2646['id']);}),_0x5b2646;}[_0x963c68(0x172)](_0x1bfc12,_0x23fef4){const _0x24c45d=_0x963c68;_0x23fef4[_0x24c45d(0x15f)](_0x1bfc12,0x0);}[_0x963c68(0x1a4)](_0x272e10,_0x35cba6){const _0x6a8779=_0x963c68,_0x3f9c78=_0x35cba6[_0x6a8779(0x19f)](_0x153f4a=>_0x153f4a['id']===_0x272e10);_0x3f9c78&&_0x35cba6[_0x6a8779(0x19c)](_0x3f9c78);}[_0x963c68(0x1c4)](){const _0x3d2106=_0x963c68;this[_0x3d2106(0x199)][_0x3d2106(0x156)]?this[_0x3d2106(0x17a)]():(this[_0x3d2106(0x181)](),this[_0x3d2106(0x141)][_0x3d2106(0x160)]({'target':this[_0x3d2106(0x199)][_0x3d2106(0x1c3)],'limiter':this[_0x3d2106(0x173)](),'positions':$o}),this[_0x3d2106(0x18c)]&&this[_0x3d2106(0x141)][_0x3d2106(0x187)][_0x3d2106(0x1a5)](0x0)?.[_0x3d2106(0x1b4)](_0x3d2106(0x14f)));}[_0x963c68(0x188)](_0x29d424){const _0x1636c1=_0x963c68;this[_0x1636c1(0x18a)][_0x1636c1(0x1a3)](),this[_0x1636c1(0x1c6)](),this[_0x1636c1(0x1b4)](_0x1636c1(0x180),_0x29d424);}}function _0x2324(){const _0x1509cd=['_removeContextFromCollection','get','conversation','setContextItemLoading','ck-ai-chat-context-controls__pending-contexts','addDocumentToContext','createCollection','_currentContextsChips','ck-ai-chat-context-controls__add-context-balloon-panel','8336290SBUrAq','_setupAddContextBalloonClickOutsideHandler','current','__arrow','ck-ai-chat-context-controls__balloon-button-source','_createArrowView','setConversationContext','fire','document','buttonView','bodyCollection','customItem','2365204fiwGJl','length','isAnyResourceBalloonVisible','loadSourceResources','removeContextItemChip','showUrlBalloonPanel','18nfLTeJ','AI_CHAT_CONTEXT_URL_LABEL','southArrowNorthWest','closest','element','_handleAddContextButtonClick','addFileToContext','hideUrlBalloonPanel','setContainerElement','clearCurrentContextItems','clearConversationContextItems','destroy','_createAddContextBalloonPanelView','removeContextItem','isEnabled','isVisible','2385093KgXHzu','24CQzMeT','defaultPositions','populateSourceResourceBalloon','northArrowSouthWest','ck-ai-chat-controls_context_show-more-button','sources','urls','_addContextBalloonConfig','_addContextBalloonPanelView','addResourceToContext','setAddContextOptions','balloonView','northArrowSouth','ck-ai-chat','_setupAllBalloonClickOutsideHandlers','type','ck-reset_all-excluded','_createResourcesBalloonView','cancel','270225AgnLYA','children','body','execute','ck-ai-chat-context-controls__balloon-button','AI_CHAT_CONTEXT_FILE_LABEL','2574052bAlrsJ','label','ck-ai-chat-context-controls__show-more-balloon-panel','_overflowManager','isOn','_setBalloonPanelContent','setTemplate','showSourceResourcesBalloon','4330434yQrBwW','arrowView','executeCustomItemCallback','_setupUrlBalloonClickOutsideHandler','_setupTemplate','add','pin','_createAddContextButtonView','_addUrlContent','addContextItem','menuitem','bind','source','southArrowNorth','files','locale','done','show','ck-ai-chat-context-controls__add-context-button','AI_CHAT_CONTEXT_ADD_CONTEXT','searchInputVisibleFrom','southArrowNorthEast','reorganizeChips','render','_addContextToCollection','_getLimiterElement','_createContextButton','ck-ai-chat-context-controls__url-balloon-panel','_toggleAddContextBalloon','isLoading','_createUrlBalloonPanelView','_createBalloonButton','hideAddContextBalloonPanel','customItems','_conversationContextsChips','isReadOnly','updateResourceState','_createBaseBalloonPanel','addUrlToContext','showAddContextBalloonPanel','ck-ai-chat-controls-button','2876069HzJdZE','closeSourceResourceBalloon','ck-ai-chat-context-chips-wrapper-balloon','northArrowSouthEast','content','_handleUrlSubmit','withBackButton','_urlInputView','_showSourceResourcesBalloon','_hasExactlyOneSource','enabled','submitUrl','focus','set','refreshBalloon','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','isHidden','ck-ai-chat-context-controls','hide','_bindEventHandlers','_resourcesBalloonView','tooltip','addContextButtonView','5mmXRUp','icon','remove','overflowChips','_setAddContextButtonEnabled','find','_urlBalloonPanelView','extendTemplate','div','clear'];_0x2324=function(){return _0x1509cd;};return _0x2324();}export class SourcesBalloonButtonView extends _0x2b00e9{[_0x963c68(0x15b)];constructor(_0x22dda2){const _0x1f109d=_0x963c68;super(_0x22dda2),this[_0x1f109d(0x190)]({'withText':!0x0,'role':_0x1f109d(0x164)}),this[_0x1f109d(0x15b)]=this[_0x1f109d(0x1b2)](),this[_0x1f109d(0x1a1)]({'attributes':{'class':[Ho]}});}[_0x963c68(0x171)](){const _0x46b027=_0x963c68;super[_0x46b027(0x171)](),this[_0x46b027(0x14d)][_0x46b027(0x15f)](this[_0x46b027(0x15b)]);}[_0x963c68(0x1b2)](){const _0x50c020=_0x963c68,_0x597b63=new _0x31ee02();return _0x597b63[_0x50c020(0x187)]=_0x5443c3,_0x597b63[_0x50c020(0x1a1)]({'attributes':{'class':Ho+_0x50c020(0x1b0)}}),_0x597b63;}}
|
|
23
|
+
const _0x5b4f25=_0x3dfa;(function(_0x3b6ad0,_0x445af0){const _0x3675f5=_0x3dfa,_0x428eda=_0x3b6ad0();while(!![]){try{const _0xe2ce4d=parseInt(_0x3675f5(0x20a))/0x1+-parseInt(_0x3675f5(0x234))/0x2+-parseInt(_0x3675f5(0x1aa))/0x3*(-parseInt(_0x3675f5(0x1a6))/0x4)+-parseInt(_0x3675f5(0x1d7))/0x5+-parseInt(_0x3675f5(0x1af))/0x6*(-parseInt(_0x3675f5(0x214))/0x7)+-parseInt(_0x3675f5(0x1e1))/0x8*(-parseInt(_0x3675f5(0x1e4))/0x9)+parseInt(_0x3675f5(0x210))/0xa*(parseInt(_0x3675f5(0x1cb))/0xb);if(_0xe2ce4d===_0x445af0)break;else _0x428eda['push'](_0x428eda['shift']());}catch(_0x3a3988){_0x428eda['push'](_0x428eda['shift']());}}}(_0x468b,0x85609));function _0x3dfa(_0x14259e,_0x43b242){const _0x468b7e=_0x468b();return _0x3dfa=function(_0x3dfa34,_0x217776){_0x3dfa34=_0x3dfa34-0x1a4;let _0x389715=_0x468b7e[_0x3dfa34];return _0x389715;},_0x3dfa(_0x14259e,_0x43b242);}import{BalloonPanelView as _0x46c417,ButtonView as _0x24bcd4,clickOutsideHandler as _0x119ef5,FileDialogButtonView as _0x2ae85c,IconView as _0x41efa0,View as _0x885a4c}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x77def6,IconDocument as _0x1fda8f,IconDocumentOutline as _0x3ea621,IconDropdownArrow as _0x288f94,IconLink as _0x5ab1de,IconPaperClip as _0x19c750}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x3b7bda}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x1432e0}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x15c100}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x5ccf7c}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x61e016}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x5b4f25(0x1cf),_0x5b4f25(0x1b3),_0x5b4f25(0x1e8),_0x5b4f25(0x1cc),_0x5b4f25(0x23a),_0x5b4f25(0x1bd),_0x5b4f25(0x1fe)];const Uo=_0x5b4f25(0x238),Lo=_0x5b4f25(0x1ff),No=_0x5b4f25(0x1dd),Mo=_0x5b4f25(0x1f6),Ho=_0x5b4f25(0x1a8),jo=_0x5b4f25(0x1d8),Fo=_0x5b4f25(0x1db),Xo=_0x5b4f25(0x1e9),yo=_0x5b4f25(0x22f),Do=_0x5b4f25(0x1ea),$o=_0x5b4f25(0x1d9),Wo=_0x5b4f25(0x220),qo=[_0x46c417[_0x5b4f25(0x1c3)][_0x5b4f25(0x1b2)],_0x46c417[_0x5b4f25(0x1c3)][_0x5b4f25(0x202)],_0x46c417[_0x5b4f25(0x1c3)][_0x5b4f25(0x1d6)],_0x46c417[_0x5b4f25(0x1c3)][_0x5b4f25(0x236)],_0x46c417[_0x5b4f25(0x1c3)][_0x5b4f25(0x1f0)],_0x46c417[_0x5b4f25(0x1c3)][_0x5b4f25(0x22a)]];export class AIChatContextPanelView extends _0x885a4c{[_0x5b4f25(0x213)];[_0x5b4f25(0x223)]=this[_0x5b4f25(0x217)]();[_0x5b4f25(0x1fb)]=this[_0x5b4f25(0x217)]();[_0x5b4f25(0x22b)];[_0x5b4f25(0x1b4)];[_0x5b4f25(0x1ad)];[_0x5b4f25(0x208)];[_0x5b4f25(0x1ba)];[_0x5b4f25(0x1a7)];[_0x5b4f25(0x1a4)]=!0x1;[_0x5b4f25(0x1d2)];constructor(_0x203dab,_0x4ad9db){const _0x2bd3b1=_0x5b4f25;super(_0x203dab),this[_0x2bd3b1(0x1d2)]=_0x4ad9db[_0x2bd3b1(0x1d2)],this[_0x2bd3b1(0x223)]=this[_0x2bd3b1(0x217)](),this[_0x2bd3b1(0x1fb)]=this[_0x2bd3b1(0x217)](),this[_0x2bd3b1(0x213)]=this[_0x2bd3b1(0x1e5)](_0x203dab),this[_0x2bd3b1(0x1b4)]=this[_0x2bd3b1(0x1c6)](_0x203dab),this[_0x2bd3b1(0x1ad)]=this[_0x2bd3b1(0x1b0)](_0x203dab),this[_0x2bd3b1(0x1ba)]=this[_0x2bd3b1(0x1eb)](_0x203dab,_0x4ad9db);const _0xde91e9={'cssClasses':{'showMoreButton':Do,'showMoreBalloon':$o,'overflowContainer':yo,'controlsButton':Xo}};this[_0x2bd3b1(0x22b)]=new _0x15c100(_0x203dab,this[_0x2bd3b1(0x223)],_0xde91e9,this[_0x2bd3b1(0x1d2)],this),this[_0x2bd3b1(0x1a7)]={'buttonView':this[_0x2bd3b1(0x213)],'balloonView':this[_0x2bd3b1(0x1b4)],'hideMethod':this[_0x2bd3b1(0x1e6)][_0x2bd3b1(0x1ec)](this),'showMethod':this[_0x2bd3b1(0x215)][_0x2bd3b1(0x1ec)](this)},this[_0x2bd3b1(0x209)](),this[_0x2bd3b1(0x1bc)]();}[_0x5b4f25(0x230)](){const _0x2f5d3a=_0x5b4f25;super[_0x2f5d3a(0x230)](),this[_0x2f5d3a(0x21e)](),this[_0x2f5d3a(0x22b)][_0x2f5d3a(0x1c9)](this[_0x2f5d3a(0x211)]),this[_0x2f5d3a(0x22b)][_0x2f5d3a(0x1dc)]();}[_0x5b4f25(0x23b)](){const _0x52eba8=_0x5b4f25;super[_0x52eba8(0x23b)](),this[_0x52eba8(0x22b)][_0x52eba8(0x23b)](),this[_0x52eba8(0x1ba)][_0x52eba8(0x23b)]();}[_0x5b4f25(0x21a)](_0x1abd12,_0x4eeac9){const _0x4c25c0=_0x5b4f25,_0x5a1501=this[_0x4c25c0(0x1e2)](_0x1abd12,_0x4c25c0(0x1b7),!0x0,_0x4eeac9);this[_0x4c25c0(0x1cd)](_0x5a1501,this[_0x4c25c0(0x223)]),this[_0x4c25c0(0x22b)][_0x4c25c0(0x1dc)]();}[_0x5b4f25(0x23a)](_0x82ff55){const _0x5c5c01=_0x5b4f25;this[_0x5c5c01(0x20f)](_0x82ff55,this[_0x5c5c01(0x223)]),this[_0x5c5c01(0x20f)](_0x82ff55,this[_0x5c5c01(0x22b)][_0x5c5c01(0x224)]),this[_0x5c5c01(0x22b)][_0x5c5c01(0x1dc)]();}[_0x5b4f25(0x1f5)](_0x54db78,_0x129082){const _0x491ae8=_0x5b4f25;let _0x4b941b=this[_0x491ae8(0x223)][_0x491ae8(0x1f1)](_0x226552=>_0x226552['id']===_0x54db78);_0x4b941b||(_0x4b941b=this[_0x491ae8(0x22b)][_0x491ae8(0x224)][_0x491ae8(0x1f1)](_0x76a689=>_0x76a689['id']===_0x54db78)),_0x4b941b&&(_0x4b941b[_0x491ae8(0x22e)]=_0x129082);}[_0x5b4f25(0x1e7)](_0x3ff8c2){const _0x27365e=_0x5b4f25;this[_0x27365e(0x1fb)][_0x27365e(0x1d5)]();for(const _0x54efed of _0x3ff8c2){const _0x559a51=this[_0x27365e(0x1e2)](_0x54efed,_0x27365e(0x206),!0x1,!0x1);this[_0x27365e(0x1cd)](_0x559a51,this[_0x27365e(0x1fb)]);}}[_0x5b4f25(0x20b)](){const _0x5964c4=_0x5b4f25;this[_0x5964c4(0x223)][_0x5964c4(0x1d5)](),this[_0x5964c4(0x22b)][_0x5964c4(0x1d5)]();}[_0x5b4f25(0x1fd)](){const _0x22057a=_0x5b4f25;this[_0x22057a(0x1fb)][_0x22057a(0x1d5)]();}[_0x5b4f25(0x1d0)](_0x4eeb1a,_0x1b52be,_0x71034f){const _0x240e0d=_0x5b4f25;this[_0x240e0d(0x1ba)][_0x240e0d(0x1d0)](_0x4eeb1a,_0x1b52be,_0x71034f);}[_0x5b4f25(0x1e6)](){const _0x305ebf=_0x5b4f25;this[_0x305ebf(0x1f3)](!0x1);}[_0x5b4f25(0x215)](){const _0x78a3fa=_0x5b4f25;this[_0x78a3fa(0x1f3)](!0x0);}[_0x5b4f25(0x20e)](){const _0x4dcaf8=_0x5b4f25;this[_0x4dcaf8(0x1ad)][_0x4dcaf8(0x205)](),this[_0x4dcaf8(0x213)][_0x4dcaf8(0x1e0)]=!0x1,this[_0x4dcaf8(0x208)]&&this[_0x4dcaf8(0x208)][_0x4dcaf8(0x1d5)]();}[_0x5b4f25(0x1df)](){const _0x54cc6e=_0x5b4f25;this[_0x54cc6e(0x1ad)][_0x54cc6e(0x1be)](),this[_0x54cc6e(0x213)][_0x54cc6e(0x1e0)]=!0x0;}[_0x5b4f25(0x227)]({source:_0x29e86e,withBackButton:_0xbd068a}){const _0xa113c3=_0x5b4f25;this[_0xa113c3(0x1ba)][_0xa113c3(0x20d)]({'source':_0x29e86e,'withBackButton':_0xbd068a}),this[_0xa113c3(0x213)][_0xa113c3(0x1e0)]=!0x0;}[_0x5b4f25(0x1bb)](_0x6a513e,_0xe5e51e,_0xab957,_0x1d923b){const _0x29399b=_0x5b4f25;this[_0x29399b(0x1ba)][_0x29399b(0x1bb)](_0x6a513e,_0xab957,_0x1d923b);}[_0x5b4f25(0x207)](_0xfa124b){const _0x282e1b=_0x5b4f25;this[_0x282e1b(0x1ba)][_0x282e1b(0x207)](_0xfa124b),this[_0x282e1b(0x213)][_0x282e1b(0x1e0)]=!0x1;}[_0x5b4f25(0x1ce)](_0x3ce046){const _0x36a9d7=_0x5b4f25;this[_0x36a9d7(0x232)](this[_0x36a9d7(0x1b4)],this[_0x36a9d7(0x1b9)],_0x3ce046),this[_0x36a9d7(0x219)](_0x3ce046);}[_0x5b4f25(0x219)](_0x4f82c0){const _0x4a6e93=_0x5b4f25,_0x43e6b7=!_0x4f82c0[_0x4a6e93(0x1de)][_0x4a6e93(0x1f9)]&&_0x4f82c0[_0x4a6e93(0x1de)][_0x4a6e93(0x1a5)],_0x1ea271=_0x4f82c0[_0x4a6e93(0x1f7)][_0x4a6e93(0x1a5)],_0x4d88b6=_0x4f82c0[_0x4a6e93(0x1ef)][_0x4a6e93(0x1a5)],_0x319d82=_0x4f82c0[_0x4a6e93(0x216)][_0x4a6e93(0x1ee)]>0x0,_0x135644=_0x4f82c0[_0x4a6e93(0x233)]&&_0x4f82c0[_0x4a6e93(0x233)][_0x4a6e93(0x1ee)]>0x0;this[_0x4a6e93(0x213)][_0x4a6e93(0x1b8)]=_0x43e6b7||_0x1ea271||_0x4d88b6||_0x319d82||_0x135644;}[_0x5b4f25(0x209)](){const _0x3c390d=_0x5b4f25;this[_0x3c390d(0x203)]({'tag':_0x3c390d(0x229),'attributes':{'class':[Uo,_0x3c390d(0x1a9)]},'children':[{'tag':_0x3c390d(0x229),'attributes':{'class':Lo},'children':this[_0x3c390d(0x223)]}]});}[_0x5b4f25(0x1bc)](){const _0xa9a72c=_0x5b4f25;this[_0xa9a72c(0x213)]['on'](_0xa9a72c(0x1c5),()=>{const _0x33502c=_0xa9a72c;this[_0x33502c(0x226)]();});}[_0x5b4f25(0x1e5)](_0x24160f){const _0x257a3a=_0x5b4f25,_0x31d895=new _0x24bcd4(_0x24160f);return _0x31d895[_0x257a3a(0x1ed)]({'label':_0x5ccf7c(_0x24160f,_0x257a3a(0x231)),'class':Xo+'\x20'+Mo,'icon':_0x19c750,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x31d895;}[_0x5b4f25(0x1c6)](_0x136f62){const _0xb7ab15=_0x5b4f25;return this[_0xb7ab15(0x204)](_0x136f62,No);}[_0x5b4f25(0x1b0)](_0x35a57c){const _0x55c024=_0x5b4f25,_0x10d8c3=this[_0x55c024(0x204)](_0x35a57c,Ho);return this[_0x55c024(0x200)](_0x10d8c3,_0x35a57c),_0x10d8c3;}[_0x5b4f25(0x1eb)](_0x563356,_0x1ba404){const _0x43d6f9=_0x5b4f25,_0x425562={'searchInputVisibleFrom':_0x1ba404[_0x43d6f9(0x21b)],'onBackToContext':()=>{const _0x212d4a=_0x43d6f9;this[_0x212d4a(0x215)](),this[_0x212d4a(0x1b4)][_0x212d4a(0x239)]({'target':this[_0x212d4a(0x213)][_0x212d4a(0x211)],'limiter':this[_0x212d4a(0x1c2)](),'positions':qo});},'onResourceSelected':(_0x12cd07,_0x2f199b)=>{const _0x8c6fc7=_0x43d6f9;this[_0x8c6fc7(0x201)](_0x8c6fc7(0x1cc),{'source':_0x12cd07,'resource':_0x2f199b});},'onLoadSourceResources':_0x1f299c=>{const _0x124c00=_0x43d6f9;this[_0x124c00(0x201)](_0x124c00(0x1bd),_0x1f299c);},'onBalloonClosed':()=>{const _0x66b223=_0x43d6f9;this[_0x66b223(0x213)][_0x66b223(0x1e0)]=!0x1;},'getLimiterElement':()=>this[_0x43d6f9(0x1c2)](),'getTargetElement':()=>this[_0x43d6f9(0x213)][_0x43d6f9(0x211)]};return new _0x61e016(_0x563356,_0x1ba404[_0x43d6f9(0x1d2)],_0x425562);}[_0x5b4f25(0x1c2)](){const _0x48d2ee=_0x5b4f25;return this[_0x48d2ee(0x211)]?.[_0x48d2ee(0x1d3)]('.'+Wo)||document[_0x48d2ee(0x1f8)];}[_0x5b4f25(0x204)](_0x42c093,_0x1e864f){const _0x16dc18=_0x5b4f25,_0x4d6269=new _0x46c417(_0x42c093);return _0x4d6269[_0x16dc18(0x1b1)]({'attributes':{'class':_0x1e864f}}),this[_0x16dc18(0x1d2)][_0x16dc18(0x218)](_0x4d6269),_0x4d6269;}[_0x5b4f25(0x232)](_0x33269b,_0x160f8b,_0x5222ed){const _0x2a20de=_0x5b4f25;if(_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x1d5)](),!_0x5222ed[_0x2a20de(0x1de)][_0x2a20de(0x1f9)]&&_0x5222ed[_0x2a20de(0x1de)][_0x2a20de(0x1a5)]){const _0x22177f=this[_0x2a20de(0x1b6)](_0x160f8b,{'label':_0x5ccf7c(_0x160f8b,_0x2a20de(0x22d)),'icon':_0x1fda8f});_0x22177f['on'](_0x2a20de(0x1c5),()=>{const _0x91dca7=_0x2a20de;this[_0x91dca7(0x201)](_0x91dca7(0x1cf)),this[_0x91dca7(0x1e6)]();}),_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x218)](_0x22177f);}if(_0x5222ed[_0x2a20de(0x1f7)][_0x2a20de(0x1a5)]){const _0x4c462c=this[_0x2a20de(0x1b6)](_0x160f8b,{'label':_0x5ccf7c(_0x160f8b,_0x2a20de(0x222)),'icon':_0x5ab1de});_0x4c462c['on'](_0x2a20de(0x1c5),()=>{const _0x56787d=_0x2a20de;this[_0x56787d(0x1e6)](),this[_0x56787d(0x1df)](),this[_0x56787d(0x1ad)][_0x56787d(0x239)]({'target':this[_0x56787d(0x213)][_0x56787d(0x211)],'limiter':this[_0x56787d(0x1c2)](),'positions':qo}),this[_0x56787d(0x208)][_0x56787d(0x21c)]();}),_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x218)](_0x4c462c);}if(_0x5222ed[_0x2a20de(0x1ef)][_0x2a20de(0x1a5)]){const _0x216879=new _0x2ae85c(_0x160f8b);_0x216879[_0x2a20de(0x1ed)]({'label':_0x5ccf7c(_0x160f8b,_0x2a20de(0x228)),'icon':_0x77def6,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x216879['on'](_0x2a20de(0x1c5),()=>{const _0x120d42=_0x2a20de;this[_0x120d42(0x1e6)]();}),_0x216879['on'](_0x2a20de(0x225),(_0x28c717,_0x146a7d)=>{const _0x48da16=_0x2a20de;this[_0x48da16(0x201)](_0x48da16(0x1b3),_0x146a7d);}),_0x216879[_0x2a20de(0x1c1)]=!0x0,_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x218)](_0x216879);}for(const _0x59273c of _0x5222ed[_0x2a20de(0x216)]){const _0x49de6b=this[_0x2a20de(0x1b6)](_0x160f8b,{'label':_0x59273c[_0x2a20de(0x1c4)],'icon':_0x59273c[_0x2a20de(0x1c8)]||_0x3ea621,'type':_0x2a20de(0x212)});_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x218)](_0x49de6b),_0x49de6b['on'](_0x2a20de(0x1c5),()=>{const _0x215834=_0x2a20de;this[_0x215834(0x1e6)](),this[_0x215834(0x227)]({'source':_0x59273c,'withBackButton':!this[_0x215834(0x1a4)]});});}for(const _0xc4990f of _0x5222ed[_0x2a20de(0x233)]||[]){const _0x49da85=this[_0x2a20de(0x1b6)](_0x160f8b,{'label':_0xc4990f[_0x2a20de(0x1c4)],'icon':_0xc4990f[_0x2a20de(0x1c8)]||_0x3ea621,'type':_0x2a20de(0x1e3)});_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x218)](_0x49da85),_0x49da85['on'](_0x2a20de(0x1c5),()=>{const _0x3d751d=_0x2a20de;this[_0x3d751d(0x1e6)](),this[_0x3d751d(0x201)](_0x3d751d(0x1fe),_0xc4990f);});}this[_0x2a20de(0x1a4)]=0x1===_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x1ee)],this[_0x2a20de(0x208)][_0x2a20de(0x1ac)]=!this[_0x2a20de(0x1a4)];}[_0x5b4f25(0x200)](_0x3a4327,_0xcef65a){const _0x3a0609=_0x5b4f25;this[_0x3a0609(0x208)]=new _0x1432e0(_0xcef65a),this[_0x3a0609(0x208)]['on'](_0x3a0609(0x1b5),(_0x1840c1,_0x4170c1)=>{const _0x20a60f=_0x3a0609;this[_0x20a60f(0x1d4)](_0x4170c1);}),this[_0x3a0609(0x208)]['on'](_0x3a0609(0x235),()=>{const _0x5e9be2=_0x3a0609;this[_0x5e9be2(0x20e)](),this[_0x5e9be2(0x1a4)]||(this[_0x5e9be2(0x215)](),this[_0x5e9be2(0x1b4)][_0x5e9be2(0x239)]({'target':this[_0x5e9be2(0x213)][_0x5e9be2(0x211)],'limiter':this[_0x5e9be2(0x1c2)](),'positions':qo}));}),this[_0x3a0609(0x208)]['on'](_0x3a0609(0x1ca),()=>{const _0x25d991=_0x3a0609;this[_0x25d991(0x1ad)][_0x25d991(0x1ae)]&&this[_0x25d991(0x1ad)][_0x25d991(0x239)]({'target':this[_0x25d991(0x213)][_0x25d991(0x211)],'limiter':this[_0x25d991(0x1c2)](),'positions':qo});}),_0x3a4327[_0x3a0609(0x21d)][_0x3a0609(0x218)](this[_0x3a0609(0x208)]);}[_0x5b4f25(0x1b6)](_0x1624cb,_0x524c15){const _0x17b1af=_0x5b4f25,_0xb0a252=_0x17b1af(0x212)===_0x524c15[_0x17b1af(0x237)]?new SourcesBalloonButtonView(_0x1624cb):new _0x24bcd4(_0x1624cb);return _0xb0a252[_0x17b1af(0x1ed)]({'label':_0x524c15[_0x17b1af(0x1c4)],'icon':_0x524c15[_0x17b1af(0x1c8)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0xb0a252;}[_0x5b4f25(0x21e)](){const _0x45860d=_0x5b4f25;this[_0x45860d(0x1c7)](),this[_0x45860d(0x20c)]();}[_0x5b4f25(0x20c)](){const _0x11bf35=_0x5b4f25;_0x119ef5({'emitter':this[_0x11bf35(0x1ad)],'contextElements':[this[_0x11bf35(0x1ad)][_0x11bf35(0x211)]],'callback':()=>{const _0x53e648=_0x11bf35;this[_0x53e648(0x20e)]();},'activator':()=>this[_0x11bf35(0x1ad)][_0x11bf35(0x1ae)]});}[_0x5b4f25(0x1f3)](_0x232f55){const _0x68ed14=_0x5b4f25,_0x38fdc5=this[_0x68ed14(0x1a7)];_0x38fdc5[_0x68ed14(0x1ab)][_0x68ed14(0x1e0)]=_0x232f55,_0x232f55?_0x38fdc5[_0x68ed14(0x1da)][_0x68ed14(0x1be)]():_0x38fdc5[_0x68ed14(0x1da)][_0x68ed14(0x205)]();}[_0x5b4f25(0x1c7)](){const _0x2118e7=_0x5b4f25,{balloonView:_0x1b871e,buttonView:_0x22e585,hideMethod:_0x5a3c7f}=this[_0x2118e7(0x1a7)];_0x119ef5({'emitter':_0x1b871e,'contextElements':[_0x1b871e[_0x2118e7(0x211)],_0x22e585[_0x2118e7(0x211)]],'callback':()=>{_0x5a3c7f();},'activator':()=>_0x22e585[_0x2118e7(0x1e0)]&&!this[_0x2118e7(0x1ad)][_0x2118e7(0x1ae)]&&!this[_0x2118e7(0x1ba)][_0x2118e7(0x1d1)]()});}[_0x5b4f25(0x1e2)](_0x46cd73,_0x5666ee,_0x26c380=!0x1,_0x4a9789=!0x1){const _0x22b22f=_0x5b4f25,_0x3631a3=_0x22b22f(0x206)===_0x5666ee||!0x0===_0x46cd73[_0x22b22f(0x1bf)],_0x3df6bb=new _0x3b7bda(this[_0x22b22f(0x1b9)],_0x46cd73,_0x3631a3,_0x26c380,_0x4a9789);return _0x3631a3||_0x3df6bb['on'](_0x22b22f(0x1c0),()=>{const _0x2af1ff=_0x22b22f;this[_0x2af1ff(0x201)](_0x2af1ff(0x23a),_0x3df6bb['id']);}),_0x3df6bb;}[_0x5b4f25(0x1cd)](_0x2bbed6,_0x2ec74b){const _0xf76f2f=_0x5b4f25;_0x2ec74b[_0xf76f2f(0x218)](_0x2bbed6,0x0);}[_0x5b4f25(0x20f)](_0x212136,_0x28f141){const _0x353a4d=_0x5b4f25,_0x4616e3=_0x28f141[_0x353a4d(0x1f1)](_0x50f3d1=>_0x50f3d1['id']===_0x212136);_0x4616e3&&_0x28f141[_0x353a4d(0x1fa)](_0x4616e3);}[_0x5b4f25(0x226)](){const _0x5c3285=_0x5b4f25;this[_0x5c3285(0x213)][_0x5c3285(0x1e0)]?this[_0x5c3285(0x1e6)]():(this[_0x5c3285(0x215)](),this[_0x5c3285(0x1b4)][_0x5c3285(0x239)]({'target':this[_0x5c3285(0x213)][_0x5c3285(0x211)],'limiter':this[_0x5c3285(0x1c2)](),'positions':qo}),this[_0x5c3285(0x1a4)]&&this[_0x5c3285(0x1b4)][_0x5c3285(0x21d)][_0x5c3285(0x1f2)](0x0)?.[_0x5c3285(0x201)](_0x5c3285(0x1c5)));}[_0x5b4f25(0x1d4)](_0xe660a1){const _0x94b937=_0x5b4f25;this[_0x94b937(0x208)][_0x94b937(0x1d5)](),this[_0x94b937(0x20e)](),this[_0x94b937(0x201)](_0x94b937(0x1e8),_0xe660a1);}}function _0x468b(){const _0x417a30=['extendTemplate','northArrowSouthWest','addFileToContext','_addContextBalloonPanelView','submitUrl','_createBalloonButton','current','isEnabled','locale','_resourcesBalloonView','populateSourceResourceBalloon','_bindEventHandlers','loadSourceResources','show','isReadOnly','removeContextItemChip','tooltip','_getLimiterElement','defaultPositions','label','execute','_createAddContextBalloonPanelView','_setupAddContextBalloonClickOutsideHandler','icon','setContainerElement','refreshBalloon','905179CJZjMe','addResourceToContext','_addContextToCollection','setAddContextOptions','addDocumentToContext','updateResourceState','isAnyResourceBalloonVisible','bodyCollection','closest','_handleUrlSubmit','clear','northArrowSouthEast','1961290HTKLhT','ck-ai-chat-context-controls__balloon-button','ck-ai-chat-context-controls__show-more-balloon-panel','balloonView','ck-ai-chat-context-controls__balloon-button-source','reorganizeChips','ck-ai-chat-context-controls__add-context-balloon-panel','document','showUrlBalloonPanel','isOn','2123032JNjfnt','_createContextButton','customItem','9vTaOsq','_createAddContextButtonView','hideAddContextBalloonPanel','setConversationContext','addUrlToContext','ck-ai-chat-controls-button','ck-ai-chat-controls_context_show-more-button','_createResourcesBalloonView','bind','set','length','files','southArrowNorth','find','get','_toggleAddContextBalloon','menuitem','setContextItemLoading','ck-ai-chat-context-controls__add-context-button','urls','body','isHidden','remove','_conversationContextsChips','arrowView','clearConversationContextItems','executeCustomItemCallback','ck-ai-chat-context-controls__pending-contexts','_addUrlContent','fire','northArrowSouth','setTemplate','_createBaseBalloonPanel','hide','conversation','closeSourceResourceBalloon','_urlInputView','_setupTemplate','373716IFKCTP','clearCurrentContextItems','_setupUrlBalloonClickOutsideHandler','showSourceResourcesBalloon','hideUrlBalloonPanel','_removeContextFromCollection','50JIDfqC','element','source','addContextButtonView','7uuEUol','showAddContextBalloonPanel','sources','createCollection','add','_setAddContextButtonEnabled','addContextItem','searchInputVisibleFrom','focus','content','_setupAllBalloonClickOutsideHandlers','__arrow','ck-ai-chat','children','AI_CHAT_CONTEXT_URL_LABEL','_currentContextsChips','overflowChips','done','_handleAddContextButtonClick','_showSourceResourcesBalloon','AI_CHAT_CONTEXT_FILE_LABEL','div','southArrowNorthEast','_overflowManager','_createArrowView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','isLoading','ck-ai-chat-context-chips-wrapper-balloon','render','AI_CHAT_CONTEXT_ADD_CONTEXT','_setBalloonPanelContent','customItems','1256142UlkBTi','cancel','southArrowNorthWest','type','ck-ai-chat-context-controls','pin','removeContextItem','destroy','_hasExactlyOneSource','enabled','60692sCIkOL','_addContextBalloonConfig','ck-ai-chat-context-controls__url-balloon-panel','ck-reset_all-excluded','69NPyTSM','buttonView','withBackButton','_urlBalloonPanelView','isVisible','1002738ORVDBR','_createUrlBalloonPanelView'];_0x468b=function(){return _0x417a30;};return _0x468b();}export class SourcesBalloonButtonView extends _0x24bcd4{[_0x5b4f25(0x1fc)];constructor(_0x20cacd){const _0x7f6406=_0x5b4f25;super(_0x20cacd),this[_0x7f6406(0x1ed)]({'withText':!0x0,'role':_0x7f6406(0x1f4)}),this[_0x7f6406(0x1fc)]=this[_0x7f6406(0x22c)](),this[_0x7f6406(0x1b1)]({'attributes':{'class':[Fo]}});}[_0x5b4f25(0x230)](){const _0x469016=_0x5b4f25;super[_0x469016(0x230)](),this[_0x469016(0x221)][_0x469016(0x218)](this[_0x469016(0x1fc)]);}[_0x5b4f25(0x22c)](){const _0x4f59c4=_0x5b4f25,_0x330b26=new _0x41efa0();return _0x330b26[_0x4f59c4(0x21d)]=_0x288f94,_0x330b26[_0x4f59c4(0x1b1)]({'attributes':{'class':Fo+_0x4f59c4(0x21f)}}),_0x330b26;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3d29be=_0x32d3;(function(_0x6d2a36,_0x45b31a){const _0x114809=_0x32d3,_0x398c78=_0x6d2a36();while(!![]){try{const _0x411721=-parseInt(_0x114809(0x215))/0x1+parseInt(_0x114809(0x1f0))/0x2+parseInt(_0x114809(0x1d9))/0x3*(parseInt(_0x114809(0x20a))/0x4)+-parseInt(_0x114809(0x1c5))/0x5+parseInt(_0x114809(0x1e6))/0x6*(-parseInt(_0x114809(0x206))/0x7)+parseInt(_0x114809(0x1f6))/0x8+-parseInt(_0x114809(0x1be))/0x9*(-parseInt(_0x114809(0x1bf))/0xa);if(_0x411721===_0x45b31a)break;else _0x398c78['push'](_0x398c78['shift']());}catch(_0x38d85a){_0x398c78['push'](_0x398c78['shift']());}}}(_0x4f81,0xe3fdd));import{Collection as _0x38674e}from'ckeditor5/src/utils.js';import{IconAI as _0xa7db88,IconBulb as _0x171892,IconWeb as _0x580014}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x2a3def,ButtonLabelView as _0x191ff7,ButtonView as _0x4fb8bf,createDropdown as _0xcb88df,IconView as _0x288e80,UIModel as _0x57f79f,View as _0x1d357e}from'ckeditor5/src/ui.js';import{getTranslation as _0x4bb3b9}from'../../../aicore/utils/common-translations.js';function _0x4f81(){const _0x4b0b5c=['extendTemplate','length','ck-ai-chat-controls-button','ck-hidden','webSearchActive','add','ck-ai-chat-controls-button--commands','AI_CHAT_ENABLE_WEB_SEARCH','isVisible','9MxrEMf','selector','_commandsButton','AI_CHAT_ENABLE_REASONING','setTemplate','_createModelNameView','execute','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','style','source','ck-ai-chat-controls__model-selection','modelSelectorEnabled','AI_CHAT_DISABLE_REASONING','767322uhDiXt','AI_CHAT_SEARCH_WEB','label','AI_CHAT_CAPABILITIES_NO','isOn','div','setModelList','addMany','bindTemplate','capabilities','1787710JQekda','_webSearchButton','disableModelSelector','model','setWebSearch','_createModelSelectionDropdown','7185080jZyvLE','reasoning','_createCommandsButton','text','AI_CHAT_REASONING','clear','fire','buttonView','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','modelDisplayMode','_modelNameView','content','enableModelSelector','toggleReasoning','setModel','_modelSelectionDropdown','63gECFPU','listenTo','_getCapabilityParts','ck-ai-chat-controls__model-selection__item-description','1285484vmxyKo','setReasoning','log','AI_CHAT_CAPABILITIES_YES','button','_reasoningButton','AI_CHAT_COMMANDS','_modelSelectionDropdownItems','description','set','activeModelName','362840ocnfEP','hidden','locale','_createWebSearchButton','ck-ai-chat__prompt-capabilities','name','webSearch','bind','reasoningActive','enabled','452943QuWBoQ','10rSFcIV','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_DISABLE_WEB_SEARCH','toggleWebSearch','activeModelId','span','1793770cPUCjM','_createReasoningButton','ck-ai-chat-controls__model-selection__item-capabilities','tooltip','isEnabled','menuitemradio','createCollection','selectModel','ck-ai-chat-controls__model-selection__item-name','ck-button__label','ck-ai-chat-controls__model-name'];_0x4f81=function(){return _0x4b0b5c;};return _0x4f81();}const qo=_0x3d29be(0x219),jo=_0x3d29be(0x1d2),zo=_0x3d29be(0x1d6),Jo=_0x3d29be(0x1e3),Ko=_0x3d29be(0x1cd),Qo=_0x3d29be(0x209),Zo=_0x3d29be(0x1c7),tl='n';export class AIChatPromptCapabilitiesView extends _0x1d357e{[_0x3d29be(0x1f1)];[_0x3d29be(0x20f)];[_0x3d29be(0x1db)];[_0x3d29be(0x205)];[_0x3d29be(0x211)];[_0x3d29be(0x200)];constructor(_0x11de15){const _0x2f27b8=_0x3d29be;super(_0x11de15),this[_0x2f27b8(0x213)](_0x2f27b8(0x1d4),!0x1),this[_0x2f27b8(0x213)](_0x2f27b8(0x1bc),!0x1),this[_0x2f27b8(0x213)](_0x2f27b8(0x1ff),_0x2f27b8(0x1da)),this[_0x2f27b8(0x213)](_0x2f27b8(0x1e4),!0x0),this[_0x2f27b8(0x213)](_0x2f27b8(0x1c3),null),this[_0x2f27b8(0x213)](_0x2f27b8(0x214),null),this[_0x2f27b8(0x205)]=this[_0x2f27b8(0x1f5)](),this[_0x2f27b8(0x200)]=this[_0x2f27b8(0x1de)](),this[_0x2f27b8(0x1f1)]=this[_0x2f27b8(0x218)](),this[_0x2f27b8(0x20f)]=this[_0x2f27b8(0x1c6)](),this[_0x2f27b8(0x1db)]=this[_0x2f27b8(0x1f8)](),this[_0x2f27b8(0x205)][_0x2f27b8(0x1fd)][_0x2f27b8(0x21c)](_0x2f27b8(0x1d8))['to'](this,_0x2f27b8(0x1ff),_0x27fe12=>_0x2f27b8(0x1da)===_0x27fe12),this[_0x2f27b8(0x205)][_0x2f27b8(0x1fd)][_0x2f27b8(0x21c)](_0x2f27b8(0x1c8))['to'](this,_0x2f27b8(0x1e4),_0x533701=>_0x533701?this[_0x2f27b8(0x205)][_0x2f27b8(0x1fd)][_0x2f27b8(0x1e8)]:_0x4bb3b9(this[_0x2f27b8(0x217)],_0x2f27b8(0x1fe))),this[_0x2f27b8(0x205)][_0x2f27b8(0x21c)](_0x2f27b8(0x1c9))['to'](this,_0x2f27b8(0x1e4),_0x2bb689=>_0x2bb689),this[_0x2f27b8(0x1f1)][_0x2f27b8(0x21c)](_0x2f27b8(0x1ea))['to'](this,_0x2f27b8(0x1d4),_0x4e1206=>_0x4e1206),this[_0x2f27b8(0x1f1)][_0x2f27b8(0x21c)](_0x2f27b8(0x1c8))['to'](this,_0x2f27b8(0x1d4),_0x4c86d1=>_0x4bb3b9(this[_0x2f27b8(0x217)],_0x4c86d1?_0x2f27b8(0x1c1):_0x2f27b8(0x1d7))),this[_0x2f27b8(0x20f)][_0x2f27b8(0x21c)](_0x2f27b8(0x1ea))['to'](this,_0x2f27b8(0x1bc),_0x465125=>_0x465125),this[_0x2f27b8(0x20f)][_0x2f27b8(0x21c)](_0x2f27b8(0x1c8))['to'](this,_0x2f27b8(0x1bc),_0x8ce65c=>_0x4bb3b9(this[_0x2f27b8(0x217)],_0x8ce65c?_0x2f27b8(0x1e5):_0x2f27b8(0x1dc))),this[_0x2f27b8(0x1dd)]({'tag':_0x2f27b8(0x1eb),'attributes':{'class':[qo]},'children':[this[_0x2f27b8(0x205)],this[_0x2f27b8(0x200)],this[_0x2f27b8(0x1f1)],this[_0x2f27b8(0x20f)],this[_0x2f27b8(0x1db)]]}),this[_0x2f27b8(0x211)]=new _0x38674e(),_0x2a3def(this[_0x2f27b8(0x205)],this[_0x2f27b8(0x211)]);}[_0x3d29be(0x1ec)](_0x5ce094,_0x3daac1){const _0x5eb5c8=_0x3d29be;if(_0x3daac1)this[_0x5eb5c8(0x213)](_0x5eb5c8(0x1ff),_0x5eb5c8(0x216));else{const _0x4e6778=0x1===_0x5ce094[_0x5eb5c8(0x1d1)];this[_0x5eb5c8(0x213)](_0x5eb5c8(0x1ff),_0x4e6778?_0x5eb5c8(0x21a):_0x5eb5c8(0x1da));}if(this[_0x5eb5c8(0x211)][_0x5eb5c8(0x1fb)](),_0x5ce094?.[_0x5eb5c8(0x1d1)])for(const _0x55b683 of _0x5ce094){const _0x1c20b2=new _0x57f79f({'label':_0x55b683[_0x5eb5c8(0x21a)],'withText':!0x0,'role':_0x5eb5c8(0x1ca),'id':_0x55b683['id'],'model':_0x55b683});_0x1c20b2[_0x5eb5c8(0x21c)](_0x5eb5c8(0x1ea))['to'](this,_0x5eb5c8(0x1c3),_0x4a4b62=>_0x4a4b62===_0x55b683['id']),this[_0x5eb5c8(0x211)][_0x5eb5c8(0x1d5)]({'type':_0x5eb5c8(0x20e),'model':_0x1c20b2,'labelView':new wo(this[_0x5eb5c8(0x217)],_0x55b683)});}}[_0x3d29be(0x1f4)](_0x39fe9c){const _0xdd090d=_0x3d29be;this[_0xdd090d(0x213)](_0xdd090d(0x1d4),_0x39fe9c);}[_0x3d29be(0x20b)](_0x1c35ed){const _0x44ce9c=_0x3d29be;this[_0x44ce9c(0x213)](_0x44ce9c(0x1bc),_0x1c35ed);}[_0x3d29be(0x204)](_0x4c3172){const _0x3fa6cb=_0x3d29be;if(!_0x4c3172)return;this[_0x3fa6cb(0x1c3)]=_0x4c3172['id'],this[_0x3fa6cb(0x214)]=_0x4c3172[_0x3fa6cb(0x21a)]||_0x4c3172['id'],this[_0x3fa6cb(0x205)][_0x3fa6cb(0x1fd)][_0x3fa6cb(0x213)](_0x3fa6cb(0x1e8),_0x4c3172[_0x3fa6cb(0x21a)]),this[_0x3fa6cb(0x205)][_0x3fa6cb(0x1fd)][_0x3fa6cb(0x213)](_0x3fa6cb(0x1c8),_0x4c3172[_0x3fa6cb(0x21a)]);const _0x37b040=_0x4c3172[_0x3fa6cb(0x1ef)][_0x3fa6cb(0x21b)]?.[_0x3fa6cb(0x1bd)]??!0x1;this[_0x3fa6cb(0x213)](_0x3fa6cb(0x1d4),!0x1),this[_0x3fa6cb(0x1f1)][_0x3fa6cb(0x213)](_0x3fa6cb(0x1ea),!0x1),this[_0x3fa6cb(0x1f1)][_0x3fa6cb(0x213)](_0x3fa6cb(0x1c9),_0x37b040),this[_0x3fa6cb(0x1f1)][_0x3fa6cb(0x213)](_0x3fa6cb(0x1d8),_0x37b040);const _0x57fb23=_0x4c3172[_0x3fa6cb(0x1ef)][_0x3fa6cb(0x1f7)]?.[_0x3fa6cb(0x1bd)]??!0x1;this[_0x3fa6cb(0x213)](_0x3fa6cb(0x1bc),!0x1),this[_0x3fa6cb(0x20f)][_0x3fa6cb(0x213)](_0x3fa6cb(0x1ea),!0x1),this[_0x3fa6cb(0x20f)][_0x3fa6cb(0x213)](_0x3fa6cb(0x1c9),_0x57fb23),this[_0x3fa6cb(0x20f)][_0x3fa6cb(0x213)](_0x3fa6cb(0x1d8),_0x57fb23);}[_0x3d29be(0x202)](){const _0x22e362=_0x3d29be;this[_0x22e362(0x213)](_0x22e362(0x1e4),!0x0);}[_0x3d29be(0x1f2)](_0x5ce494){const _0x2fe17d=_0x3d29be;this[_0x2fe17d(0x213)](_0x2fe17d(0x1e4),!0x1),_0x5ce494&&this[_0x2fe17d(0x213)](_0x2fe17d(0x1ff),_0x2fe17d(0x216));}[_0x3d29be(0x218)](){const _0x9beea=_0x3d29be,_0x484849=new _0x4fb8bf();return _0x484849[_0x9beea(0x213)]({'label':_0x4bb3b9(this[_0x9beea(0x217)],_0x9beea(0x1e7)),'icon':_0x580014,'class':jo,'isToggleable':!0x0,'tooltipPosition':tl}),_0x484849['on'](_0x9beea(0x1df),()=>{const _0x2b3a49=_0x9beea;this[_0x2b3a49(0x1fc)](_0x2b3a49(0x1c2));}),_0x484849;}[_0x3d29be(0x1c6)](){const _0xcb40cc=_0x3d29be,_0x95488f=new _0x4fb8bf();return _0x95488f[_0xcb40cc(0x213)]({'label':_0x4bb3b9(this[_0xcb40cc(0x217)],_0xcb40cc(0x1fa)),'icon':_0x171892,'class':jo,'isToggleable':!0x0,'tooltipPosition':tl}),_0x95488f['on'](_0xcb40cc(0x1df),()=>{const _0x21bc8e=_0xcb40cc;this[_0x21bc8e(0x1fc)](_0x21bc8e(0x203));}),_0x95488f;}[_0x3d29be(0x1f8)](){const _0x41736e=_0x3d29be,_0x34b048=new _0x4fb8bf();return _0x34b048[_0x41736e(0x213)]({'label':_0x4bb3b9(this[_0x41736e(0x217)],_0x41736e(0x210)),'icon':_0xa7db88,'withText':!0x0,'class':jo,'isToggleable':!0x0,'tooltip':_0x4bb3b9(this[_0x41736e(0x217)],_0x41736e(0x210)),'tooltipPosition':tl}),_0x34b048[_0x41736e(0x1d0)]({'attributes':{'class':[zo]}}),_0x34b048['on'](_0x41736e(0x1df),()=>{const _0x22a77c=_0x41736e;console[_0x22a77c(0x20c)](_0x22a77c(0x1c0)),alert(_0x22a77c(0x1c0));}),_0x34b048;}[_0x3d29be(0x1f5)](){const _0x517dde=_0x3d29be,_0x34eb1e=_0xcb88df(this[_0x517dde(0x217)]);return _0x34eb1e[_0x517dde(0x213)]({'panelPosition':'ne','class':[Jo]}),_0x34eb1e[_0x517dde(0x1fd)][_0x517dde(0x213)]({'label':_0x4bb3b9(this[_0x517dde(0x217)],_0x517dde(0x1e0)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':tl}),this[_0x517dde(0x207)](_0x34eb1e,_0x517dde(0x1df),_0x4adc95=>{const _0x310676=_0x517dde;this[_0x310676(0x1fc)](_0x310676(0x1cc),_0x4adc95[_0x310676(0x1e2)][_0x310676(0x1f3)]);}),_0x34eb1e;}[_0x3d29be(0x1de)](){const _0x1ae65e=_0x3d29be,_0x489ecd=new mo(this[_0x1ae65e(0x217)]);return _0x489ecd[_0x1ae65e(0x21c)](_0x1ae65e(0x1f9))['to'](this,_0x1ae65e(0x214),_0x4805ad=>_0x4805ad??''),_0x489ecd[_0x1ae65e(0x21c)](_0x1ae65e(0x1d8))['to'](this,_0x1ae65e(0x1ff),_0x54f1fe=>_0x1ae65e(0x21a)===_0x54f1fe),_0x489ecd;}}function _0x32d3(_0x3895c1,_0x127f6d){const _0x4f817b=_0x4f81();return _0x32d3=function(_0x32d383,_0x170a34){_0x32d383=_0x32d383-0x1bc;let _0x5278e1=_0x4f817b[_0x32d383];return _0x5278e1;},_0x32d3(_0x3895c1,_0x127f6d);}class wo extends _0x191ff7{constructor(_0x2109fb,_0x3cf76e){const _0x30b0a7=_0x3d29be;super();const _0xd4abfb=this[_0x30b0a7(0x1ee)],_0x3c9f98=this[_0x30b0a7(0x1cb)]();this[_0x30b0a7(0x1dd)]({'tag':_0x30b0a7(0x1eb),'attributes':{'class':['ck',_0x30b0a7(0x1ce)],'style':_0xd4abfb['to'](_0x30b0a7(0x1e1)),'id':_0xd4abfb['to']('id')},'children':[{'tag':_0x30b0a7(0x1eb),'attributes':{'class':[Ko]},'children':[{'text':_0xd4abfb['to'](_0x30b0a7(0x1f9))}]},{'tag':_0x30b0a7(0x1eb),'attributes':{'class':[Qo]},'children':[{'tag':_0x30b0a7(0x1c4),'children':[{'text':_0x3cf76e[_0x30b0a7(0x212)]}]}]},{'tag':_0x30b0a7(0x1eb),'attributes':{'class':[Zo]},'children':_0x3c9f98}]}),_0x3c9f98[_0x30b0a7(0x1ed)](this[_0x30b0a7(0x208)](_0x2109fb,_0x580014,_0x30b0a7(0x1e7),_0x3cf76e[_0x30b0a7(0x1ef)][_0x30b0a7(0x21b)]?.[_0x30b0a7(0x1bd)]??!0x1)),_0x3c9f98[_0x30b0a7(0x1ed)](this[_0x30b0a7(0x208)](_0x2109fb,_0x171892,_0x30b0a7(0x1fa),_0x3cf76e[_0x30b0a7(0x1ef)][_0x30b0a7(0x1f7)]?.[_0x30b0a7(0x1bd)]??!0x1));}[_0x3d29be(0x208)](_0x3d8e63,_0x26e83d,_0x5d99f4,_0x5b048c){const _0x133750=_0x3d29be,_0x4aaa97=new _0x288e80();_0x4aaa97[_0x133750(0x201)]=_0x26e83d;const _0x3b1f31=new _0x1d357e(_0x3d8e63);_0x3b1f31[_0x133750(0x1dd)]({'tag':_0x133750(0x1c4),'children':[{'text':_0x4bb3b9(_0x3d8e63,_0x5d99f4)+':\x20'}]});const _0x4bc4b8=new _0x1d357e(_0x3d8e63);return _0x4bc4b8[_0x133750(0x1dd)]({'tag':_0x133750(0x1c4),'children':[{'text':_0x4bb3b9(_0x3d8e63,_0x5b048c?_0x133750(0x20d):_0x133750(0x1e9))}]}),[_0x4aaa97,_0x3b1f31,_0x4bc4b8];}}class mo extends _0x1d357e{constructor(_0x1749e3){const _0x38f382=_0x3d29be;super(_0x1749e3),this[_0x38f382(0x213)](_0x38f382(0x1f9),void 0x0),this[_0x38f382(0x213)](_0x38f382(0x1d8),!0x0);const _0x456c2b=this[_0x38f382(0x1ee)];this[_0x38f382(0x1dd)]({'tag':_0x38f382(0x1c4),'attributes':{'class':['ck',_0x38f382(0x1cf),_0x456c2b['if'](_0x38f382(0x1d8),_0x38f382(0x1d3),_0x4018eb=>!_0x4018eb)]},'children':[{'text':_0x456c2b['to'](_0x38f382(0x1f9))}]});}}
|
|
23
|
+
function _0x360a(_0x2e1a4d,_0x2f3c73){const _0x47374d=_0x4737();return _0x360a=function(_0x360ae4,_0x20de39){_0x360ae4=_0x360ae4-0x1b9;let _0x23ca2b=_0x47374d[_0x360ae4];return _0x23ca2b;},_0x360a(_0x2e1a4d,_0x2f3c73);}const _0x4191ad=_0x360a;(function(_0x784cd8,_0x452815){const _0x5be2a6=_0x360a,_0x5d72dc=_0x784cd8();while(!![]){try{const _0x174c99=parseInt(_0x5be2a6(0x1d6))/0x1+-parseInt(_0x5be2a6(0x1d9))/0x2+-parseInt(_0x5be2a6(0x1c0))/0x3+parseInt(_0x5be2a6(0x20d))/0x4+parseInt(_0x5be2a6(0x1f6))/0x5*(-parseInt(_0x5be2a6(0x1f4))/0x6)+parseInt(_0x5be2a6(0x212))/0x7+parseInt(_0x5be2a6(0x201))/0x8;if(_0x174c99===_0x452815)break;else _0x5d72dc['push'](_0x5d72dc['shift']());}catch(_0x447f4c){_0x5d72dc['push'](_0x5d72dc['shift']());}}}(_0x4737,0x5e901));import{Collection as _0x5c9ee6}from'ckeditor5/src/utils.js';import{IconAI as _0x3fbc6c,IconBulb as _0x2f6b5,IconWeb as _0x2cd46a}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x1e094f,ButtonLabelView as _0x310d77,ButtonView as _0x9146c4,createDropdown as _0x302b0b,IconView as _0x133b18,UIModel as _0x2fbe13,View as _0x3cc023}from'ckeditor5/src/ui.js';function _0x4737(){const _0x115c2c=['_createCommandsButton','28254lcSGOE','content','enableModelSelector','selector','source','text','label','AI_CHAT_ENABLE_REASONING','button','addMany','Commands\x20are\x20not\x20implemented\x20yet.','ck-ai-chat-controls__model-selection__item-description','AI_CHAT_CAPABILITIES_NO','_commandsButton','log','listenTo','webSearch','buttonView','reasoningActive','div','ck-ai-chat-controls__model-name','isVisible','289055FuyYEW','span','setModel','1549300ToJbTh','length','_reasoningButton','add','locale','_modelSelectionDropdown','set','fire','bind','enabled','_modelNameView','execute','_createModelSelectionDropdown','modelDisplayMode','AI_CHAT_DISABLE_REASONING','activeModelName','setWebSearch','AI_CHAT_DISABLE_WEB_SEARCH','createCollection','AI_CHAT_SEARCH_WEB','_createWebSearchButton','disableModelSelector','_getCapabilityParts','toggleReasoning','capabilities','selectModel','activeModelId','98466LxWphr','AI_CHAT_REASONING','175AqqPYP','clear','ck-ai-chat-controls__model-selection__item-name','hidden','tooltip','_webSearchButton','menuitemradio','ck-button__label','name','isEnabled','ck-ai-chat-controls-button','2928752WnitqU','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','AI_CHAT_COMMANDS','setReasoning','description','ck-ai-chat-controls-button--commands','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','style','webSearchActive','setTemplate','ck-hidden','isOn','1468140nAcslu','AI_CHAT_CAPABILITIES_YES','reasoning','ck-ai-chat__prompt-capabilities','toggleWebSearch','5065186eCGufd','_modelSelectionDropdownItems','setModelList','extendTemplate','AI_CHAT_ENABLE_WEB_SEARCH','_createModelNameView','bindTemplate','ck-ai-chat-controls__model-selection','_createReasoningButton','modelSelectorEnabled','ck-ai-chat-controls__model-selection__item-capabilities','model'];_0x4737=function(){return _0x115c2c;};return _0x4737();}import{getTranslation as _0x5a79a0}from'../../../aicore/utils/common-translations.js';const Jo=_0x4191ad(0x210),Xo=_0x4191ad(0x200),Ko=_0x4191ad(0x206),Qo=_0x4191ad(0x1ba),Zo=_0x4191ad(0x1f8),tl=_0x4191ad(0x1cb),el=_0x4191ad(0x1bd),il='n';export class AIChatPromptCapabilitiesView extends _0x3cc023{[_0x4191ad(0x1fb)];[_0x4191ad(0x1db)];[_0x4191ad(0x1cd)];[_0x4191ad(0x1de)];[_0x4191ad(0x213)];[_0x4191ad(0x1e3)];constructor(_0x4d37f4){const _0x126b3e=_0x4191ad;super(_0x4d37f4),this[_0x126b3e(0x1df)](_0x126b3e(0x209),!0x1),this[_0x126b3e(0x1df)](_0x126b3e(0x1d2),!0x1),this[_0x126b3e(0x1df)](_0x126b3e(0x1e6),_0x126b3e(0x1c3)),this[_0x126b3e(0x1df)](_0x126b3e(0x1bc),!0x0),this[_0x126b3e(0x1df)](_0x126b3e(0x1f3),null),this[_0x126b3e(0x1df)](_0x126b3e(0x1e8),null),this[_0x126b3e(0x1de)]=this[_0x126b3e(0x1e5)](),this[_0x126b3e(0x1e3)]=this[_0x126b3e(0x217)](),this[_0x126b3e(0x1fb)]=this[_0x126b3e(0x1ed)](),this[_0x126b3e(0x1db)]=this[_0x126b3e(0x1bb)](),this[_0x126b3e(0x1cd)]=this[_0x126b3e(0x1bf)](),this[_0x126b3e(0x1de)][_0x126b3e(0x1d1)][_0x126b3e(0x1e1)](_0x126b3e(0x1d5))['to'](this,_0x126b3e(0x1e6),_0x57343e=>_0x126b3e(0x1c3)===_0x57343e),this[_0x126b3e(0x1de)][_0x126b3e(0x1d1)][_0x126b3e(0x1e1)](_0x126b3e(0x1fa))['to'](this,_0x126b3e(0x1bc),_0x5e5677=>_0x5e5677?this[_0x126b3e(0x1de)][_0x126b3e(0x1d1)][_0x126b3e(0x1c6)]:_0x5a79a0(this[_0x126b3e(0x1dd)],_0x126b3e(0x207))),this[_0x126b3e(0x1de)][_0x126b3e(0x1e1)](_0x126b3e(0x1ff))['to'](this,_0x126b3e(0x1bc),_0x556396=>_0x556396),this[_0x126b3e(0x1fb)][_0x126b3e(0x1e1)](_0x126b3e(0x20c))['to'](this,_0x126b3e(0x209),_0x545136=>_0x545136),this[_0x126b3e(0x1fb)][_0x126b3e(0x1e1)](_0x126b3e(0x1fa))['to'](this,_0x126b3e(0x209),_0x33546c=>_0x5a79a0(this[_0x126b3e(0x1dd)],_0x33546c?_0x126b3e(0x1ea):_0x126b3e(0x216))),this[_0x126b3e(0x1db)][_0x126b3e(0x1e1)](_0x126b3e(0x20c))['to'](this,_0x126b3e(0x1d2),_0x3ed205=>_0x3ed205),this[_0x126b3e(0x1db)][_0x126b3e(0x1e1)](_0x126b3e(0x1fa))['to'](this,_0x126b3e(0x1d2),_0x14d238=>_0x5a79a0(this[_0x126b3e(0x1dd)],_0x14d238?_0x126b3e(0x1e7):_0x126b3e(0x1c7))),this[_0x126b3e(0x20a)]({'tag':_0x126b3e(0x1d3),'attributes':{'class':[Jo]},'children':[this[_0x126b3e(0x1de)],this[_0x126b3e(0x1e3)],this[_0x126b3e(0x1fb)],this[_0x126b3e(0x1db)],this[_0x126b3e(0x1cd)]]}),this[_0x126b3e(0x213)]=new _0x5c9ee6(),_0x1e094f(this[_0x126b3e(0x1de)],this[_0x126b3e(0x213)]);}[_0x4191ad(0x214)](_0x5175b6,_0x4ffef3){const _0x48a10f=_0x4191ad;if(_0x4ffef3)this[_0x48a10f(0x1df)](_0x48a10f(0x1e6),_0x48a10f(0x1f9));else{const _0x1eaa36=0x1===_0x5175b6[_0x48a10f(0x1da)];this[_0x48a10f(0x1df)](_0x48a10f(0x1e6),_0x1eaa36?_0x48a10f(0x1fe):_0x48a10f(0x1c3));}if(this[_0x48a10f(0x213)][_0x48a10f(0x1f7)](),_0x5175b6?.[_0x48a10f(0x1da)])for(const _0x2fe462 of _0x5175b6){const _0x12b121=new _0x2fbe13({'label':_0x2fe462[_0x48a10f(0x1fe)],'withText':!0x0,'role':_0x48a10f(0x1fc),'id':_0x2fe462['id'],'model':_0x2fe462});_0x12b121[_0x48a10f(0x1e1)](_0x48a10f(0x20c))['to'](this,_0x48a10f(0x1f3),_0x28caf9=>_0x28caf9===_0x2fe462['id']),this[_0x48a10f(0x213)][_0x48a10f(0x1dc)]({'type':_0x48a10f(0x1c8),'model':_0x12b121,'labelView':new _o(this[_0x48a10f(0x1dd)],_0x2fe462)});}}[_0x4191ad(0x1e9)](_0x173e83){const _0x3f0b02=_0x4191ad;this[_0x3f0b02(0x1df)](_0x3f0b02(0x209),_0x173e83);}[_0x4191ad(0x204)](_0x5b90e9){const _0x48ea83=_0x4191ad;this[_0x48ea83(0x1df)](_0x48ea83(0x1d2),_0x5b90e9);}[_0x4191ad(0x1d8)](_0x121d36){const _0x521edd=_0x4191ad;if(!_0x121d36)return;this[_0x521edd(0x1f3)]=_0x121d36['id'],this[_0x521edd(0x1e8)]=_0x121d36[_0x521edd(0x1fe)]||_0x121d36['id'],this[_0x521edd(0x1de)][_0x521edd(0x1d1)][_0x521edd(0x1df)](_0x521edd(0x1c6),_0x121d36[_0x521edd(0x1fe)]),this[_0x521edd(0x1de)][_0x521edd(0x1d1)][_0x521edd(0x1df)](_0x521edd(0x1fa),_0x121d36[_0x521edd(0x1fe)]);const _0x25fe77=_0x121d36[_0x521edd(0x1f1)][_0x521edd(0x1d0)]?.[_0x521edd(0x1e2)]??!0x1;this[_0x521edd(0x1df)](_0x521edd(0x209),!0x1),this[_0x521edd(0x1fb)][_0x521edd(0x1df)](_0x521edd(0x20c),!0x1),this[_0x521edd(0x1fb)][_0x521edd(0x1df)](_0x521edd(0x1ff),_0x25fe77),this[_0x521edd(0x1fb)][_0x521edd(0x1df)](_0x521edd(0x1d5),_0x25fe77);const _0x4ad228=_0x121d36[_0x521edd(0x1f1)][_0x521edd(0x20f)]?.[_0x521edd(0x1e2)]??!0x1;this[_0x521edd(0x1df)](_0x521edd(0x1d2),!0x1),this[_0x521edd(0x1db)][_0x521edd(0x1df)](_0x521edd(0x20c),!0x1),this[_0x521edd(0x1db)][_0x521edd(0x1df)](_0x521edd(0x1ff),_0x4ad228),this[_0x521edd(0x1db)][_0x521edd(0x1df)](_0x521edd(0x1d5),_0x4ad228);}[_0x4191ad(0x1c2)](){const _0x2c7cd5=_0x4191ad;this[_0x2c7cd5(0x1df)](_0x2c7cd5(0x1bc),!0x0);}[_0x4191ad(0x1ee)](_0x5df866){const _0x5ac17b=_0x4191ad;this[_0x5ac17b(0x1df)](_0x5ac17b(0x1bc),!0x1),_0x5df866&&this[_0x5ac17b(0x1df)](_0x5ac17b(0x1e6),_0x5ac17b(0x1f9));}[_0x4191ad(0x1ed)](){const _0x57a0f6=_0x4191ad,_0x41f5fb=new _0x9146c4();return _0x41f5fb[_0x57a0f6(0x1df)]({'label':_0x5a79a0(this[_0x57a0f6(0x1dd)],_0x57a0f6(0x1ec)),'icon':_0x2cd46a,'class':Xo,'isToggleable':!0x0,'tooltipPosition':il}),_0x41f5fb['on'](_0x57a0f6(0x1e4),()=>{const _0x429d89=_0x57a0f6;this[_0x429d89(0x1e0)](_0x429d89(0x211));}),_0x41f5fb;}[_0x4191ad(0x1bb)](){const _0xd7c927=_0x4191ad,_0xb623bb=new _0x9146c4();return _0xb623bb[_0xd7c927(0x1df)]({'label':_0x5a79a0(this[_0xd7c927(0x1dd)],_0xd7c927(0x1f5)),'icon':_0x2f6b5,'class':Xo,'isToggleable':!0x0,'tooltipPosition':il}),_0xb623bb['on'](_0xd7c927(0x1e4),()=>{const _0x4e88c0=_0xd7c927;this[_0x4e88c0(0x1e0)](_0x4e88c0(0x1f0));}),_0xb623bb;}[_0x4191ad(0x1bf)](){const _0x1ad392=_0x4191ad,_0x116cbe=new _0x9146c4();return _0x116cbe[_0x1ad392(0x1df)]({'label':_0x5a79a0(this[_0x1ad392(0x1dd)],_0x1ad392(0x203)),'icon':_0x3fbc6c,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x5a79a0(this[_0x1ad392(0x1dd)],_0x1ad392(0x203)),'tooltipPosition':il}),_0x116cbe[_0x1ad392(0x215)]({'attributes':{'class':[Ko]}}),_0x116cbe['on'](_0x1ad392(0x1e4),()=>{const _0x48c444=_0x1ad392;console[_0x48c444(0x1ce)](_0x48c444(0x1ca)),alert(_0x48c444(0x1ca));}),_0x116cbe;}[_0x4191ad(0x1e5)](){const _0x38d3c5=_0x4191ad,_0x19ca3d=_0x302b0b(this[_0x38d3c5(0x1dd)]);return _0x19ca3d[_0x38d3c5(0x1df)]({'panelPosition':'ne','class':[Qo]}),_0x19ca3d[_0x38d3c5(0x1d1)][_0x38d3c5(0x1df)]({'label':_0x5a79a0(this[_0x38d3c5(0x1dd)],_0x38d3c5(0x202)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':il}),this[_0x38d3c5(0x1cf)](_0x19ca3d,_0x38d3c5(0x1e4),_0x47db6a=>{const _0x3acf1e=_0x38d3c5;this[_0x3acf1e(0x1e0)](_0x3acf1e(0x1f2),_0x47db6a[_0x3acf1e(0x1c4)][_0x3acf1e(0x1be)]);}),_0x19ca3d;}[_0x4191ad(0x217)](){const _0x52a291=_0x4191ad,_0x257d4b=new po(this[_0x52a291(0x1dd)]);return _0x257d4b[_0x52a291(0x1e1)](_0x52a291(0x1c5))['to'](this,_0x52a291(0x1e8),_0x848e27=>_0x848e27??''),_0x257d4b[_0x52a291(0x1e1)](_0x52a291(0x1d5))['to'](this,_0x52a291(0x1e6),_0x3926ee=>_0x52a291(0x1fe)===_0x3926ee),_0x257d4b;}}class _o extends _0x310d77{constructor(_0x287478,_0x273f80){const _0x46ef69=_0x4191ad;super();const _0x7a1e72=this[_0x46ef69(0x1b9)],_0x228739=this[_0x46ef69(0x1eb)]();this[_0x46ef69(0x20a)]({'tag':_0x46ef69(0x1d3),'attributes':{'class':['ck',_0x46ef69(0x1fd)],'style':_0x7a1e72['to'](_0x46ef69(0x208)),'id':_0x7a1e72['to']('id')},'children':[{'tag':_0x46ef69(0x1d3),'attributes':{'class':[Zo]},'children':[{'text':_0x7a1e72['to'](_0x46ef69(0x1c5))}]},{'tag':_0x46ef69(0x1d3),'attributes':{'class':[tl]},'children':[{'tag':_0x46ef69(0x1d7),'children':[{'text':_0x273f80[_0x46ef69(0x205)]}]}]},{'tag':_0x46ef69(0x1d3),'attributes':{'class':[el]},'children':_0x228739}]}),_0x228739[_0x46ef69(0x1c9)](this[_0x46ef69(0x1ef)](_0x287478,_0x2cd46a,_0x46ef69(0x1ec),_0x273f80[_0x46ef69(0x1f1)][_0x46ef69(0x1d0)]?.[_0x46ef69(0x1e2)]??!0x1)),_0x228739[_0x46ef69(0x1c9)](this[_0x46ef69(0x1ef)](_0x287478,_0x2f6b5,_0x46ef69(0x1f5),_0x273f80[_0x46ef69(0x1f1)][_0x46ef69(0x20f)]?.[_0x46ef69(0x1e2)]??!0x1));}[_0x4191ad(0x1ef)](_0x45959b,_0x346e41,_0x532ed4,_0x318c3f){const _0x56af17=_0x4191ad,_0x577947=new _0x133b18();_0x577947[_0x56af17(0x1c1)]=_0x346e41;const _0x2b8dc0=new _0x3cc023(_0x45959b);_0x2b8dc0[_0x56af17(0x20a)]({'tag':_0x56af17(0x1d7),'children':[{'text':_0x5a79a0(_0x45959b,_0x532ed4)+':\x20'}]});const _0x243b8a=new _0x3cc023(_0x45959b);return _0x243b8a[_0x56af17(0x20a)]({'tag':_0x56af17(0x1d7),'children':[{'text':_0x5a79a0(_0x45959b,_0x318c3f?_0x56af17(0x20e):_0x56af17(0x1cc))}]}),[_0x577947,_0x2b8dc0,_0x243b8a];}}class po extends _0x3cc023{constructor(_0x46f193){const _0xf8a173=_0x4191ad;super(_0x46f193),this[_0xf8a173(0x1df)](_0xf8a173(0x1c5),void 0x0),this[_0xf8a173(0x1df)](_0xf8a173(0x1d5),!0x0);const _0xf77413=this[_0xf8a173(0x1b9)];this[_0xf8a173(0x20a)]({'tag':_0xf8a173(0x1d7),'attributes':{'class':['ck',_0xf8a173(0x1d4),_0xf77413['if'](_0xf8a173(0x1d5),_0xf8a173(0x20b),_0x4ee821=>!_0x4ee821)]},'children':[{'text':_0xf77413['to'](_0xf8a173(0x1c5))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28e35d=_0xb6d0;(function(_0x8aea93,_0x2e8818){const _0x130805=_0xb6d0,_0x258a28=_0x8aea93();while(!![]){try{const _0x2f509e=parseInt(_0x130805(0xcc))/0x1*(parseInt(_0x130805(0xc3))/0x2)+parseInt(_0x130805(0xc6))/0x3*(-parseInt(_0x130805(0xcb))/0x4)+-parseInt(_0x130805(0xce))/0x5+-parseInt(_0x130805(0xac))/0x6+parseInt(_0x130805(0x94))/0x7*(parseInt(_0x130805(0xb7))/0x8)+parseInt(_0x130805(0xbe))/0x9+-parseInt(_0x130805(0xba))/0xa*(-parseInt(_0x130805(0xc7))/0xb);if(_0x2f509e===_0x2e8818)break;else _0x258a28['push'](_0x258a28['shift']());}catch(_0x2ecae7){_0x258a28['push'](_0x258a28['shift']());}}}(_0x1f71,0x69cd9));function _0x1f71(){const _0x3e88e4=['submitButtonView','locale','fieldWrapperChildren','isUploadInProgress','minRows','set','queryView','_setUpAddContextButtonPositioning','hasError','AI_CHAT_PROMPT_EMPTY_ERROR','fieldView','bind','calc(','style','rtl','ck-ai-chat__prompt-input','sendUserMessage','_addContextButtonView','_queryViewResizeObserver','MIN_ROWS','MAX_ROWS','execute','AI_CHAT_LABEL_SUBMIT','3024732UChUhj','update','extendTemplate','value','right','width','uiLanguageDirection','trim','setIsUploadInProgress','fire','reset','964112zPmNlf','isEnabled','maxRows','18350SZLcXD','requestAnimationFrame','px\x20-\x20var(--ck-spacing-tiny))','setPlaceholderText','7174278FPwuVT','left','destroy','enter','_createSubmitButton','6666OcSkcf','target','window','27543cRCrsK','1045LSOrUi','submit','errorText','excludeScrollbarsAndBorders','60rkqJJG','88fqECIL','element','2152965MFXoMJ','focusableChildren','add','placeholder','render','keystrokes','ck-ai-chat__prompt-submit-button','isEmpty','14rHTyAY'];_0x1f71=function(){return _0x3e88e4;};return _0x1f71();}import{IconSubmit as _0x3483b4}from'ckeditor5/src/icons.js';import{ButtonView as _0x58599e,AutocompleteView as _0xfef505,createLabeledTextarea as _0x40a17a}from'ckeditor5/src/ui.js';import{global as _0x19bc7b,isVisible as _0x3510d8,Rect as _0x159a1a,ResizeObserver as _0x20a669}from'ckeditor5/src/utils.js';import{getTranslation as _0x4b6e05}from'../../../aicore/utils/common-translations.js';function _0xb6d0(_0x507fd6,_0xe5b209){const _0x1f711d=_0x1f71();return _0xb6d0=function(_0xb6d09c,_0x38e2fa){_0xb6d09c=_0xb6d09c-0x90;let _0x497b42=_0x1f711d[_0xb6d09c];return _0x497b42;},_0xb6d0(_0x507fd6,_0xe5b209);}import{AIChatPromptSuggestionsListView as _0x481c11}from'./aichatpromptsuggestionslistview.js';import{escape as _0x602b95}from'es-toolkit/compat';export class AIChatPromptInputView extends _0xfef505{[_0x28e35d(0x95)];static [_0x28e35d(0xa8)]=0x1;static [_0x28e35d(0xa9)]=0xc;[_0x28e35d(0xa6)];[_0x28e35d(0xa7)];constructor(_0xdf5905,_0x241698){const _0x26d655=_0x28e35d;super(_0xdf5905,{'queryView':{'label':'','creator':_0x40a17a,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x481c11(_0xdf5905),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x26d655(0x9a)](_0x26d655(0x93),!0x0),this[_0x26d655(0x9a)](_0x26d655(0x98),!0x1),this[_0x26d655(0xa6)]=_0x241698,this[_0x26d655(0xa7)]=null,this[_0x26d655(0x9b)][_0x26d655(0x9f)][_0x26d655(0x99)]=AIChatPromptInputView[_0x26d655(0xa8)],this[_0x26d655(0x9b)][_0x26d655(0x9f)][_0x26d655(0xb9)]=AIChatPromptInputView[_0x26d655(0xa9)],this[_0x26d655(0x9b)][_0x26d655(0x97)][_0x26d655(0xd0)](this[_0x26d655(0xa6)]),this[_0x26d655(0x9c)](),this[_0x26d655(0xae)]({'attributes':{'class':['ck',_0x26d655(0xa4)]}}),this[_0x26d655(0x95)]=this[_0x26d655(0xc2)](),this[_0x26d655(0x95)][_0x26d655(0xa0)](_0x26d655(0xb8))['to'](this,_0x26d655(0x93),this,_0x26d655(0x98),(_0x1bb6fe,_0x3c3f90)=>!_0x1bb6fe&&!_0x3c3f90),this[_0x26d655(0xcf)][_0x26d655(0xd0)](this[_0x26d655(0x95)]);}[_0x28e35d(0x90)](){const _0x2c26d2=_0x28e35d;super[_0x2c26d2(0x90)](),this[_0x2c26d2(0x9b)][_0x2c26d2(0x97)][_0x2c26d2(0xd0)](this[_0x2c26d2(0x95)]),this[_0x2c26d2(0x91)][_0x2c26d2(0x9a)](_0x2c26d2(0xc1),(_0x2aa69d,_0x24986a)=>{const _0x759f01=_0x2c26d2;this[_0x759f01(0x98)]||this[_0x759f01(0x93)]||_0x2aa69d[_0x759f01(0xc4)]==this[_0x759f01(0x9b)][_0x759f01(0x9f)][_0x759f01(0xcd)]&&(this[_0x759f01(0xc8)](),_0x24986a());}),this[_0x2c26d2(0x9b)][_0x2c26d2(0x9f)]['on'](_0x2c26d2(0xad),()=>{const _0x1d85ef=_0x2c26d2;this[_0x1d85ef(0x93)]=''===this[_0x1d85ef(0x9b)][_0x1d85ef(0x9f)][_0x1d85ef(0xcd)][_0x1d85ef(0xaf)]?.[_0x1d85ef(0xb3)]();});}[_0x28e35d(0xc0)](){const _0x4a435a=_0x28e35d;super[_0x4a435a(0xc0)](),this[_0x4a435a(0xa7)]&&this[_0x4a435a(0xa7)][_0x4a435a(0xc0)]();}[_0x28e35d(0xc8)](){const _0x41c7e3=_0x28e35d,_0x3ee7fa=this[_0x41c7e3(0x9b)][_0x41c7e3(0x9f)][_0x41c7e3(0xcd)][_0x41c7e3(0xaf)]?.[_0x41c7e3(0xb3)]();if(!_0x3ee7fa)return this[_0x41c7e3(0x9b)][_0x41c7e3(0xc9)]=_0x4b6e05(this[_0x41c7e3(0x96)],_0x41c7e3(0x9e)),void(this[_0x41c7e3(0x9b)][_0x41c7e3(0x9f)][_0x41c7e3(0x9d)]=!0x0);this[_0x41c7e3(0x9b)][_0x41c7e3(0x9f)][_0x41c7e3(0x9d)]=!0x1;const _0xb6aa18=_0x602b95(_0x3ee7fa);this[_0x41c7e3(0xb5)](_0x41c7e3(0xa5),_0xb6aa18),this[_0x41c7e3(0x9b)][_0x41c7e3(0x9f)][_0x41c7e3(0xb6)]();}[_0x28e35d(0xbd)](_0x11ece8){const _0x115763=_0x28e35d;this[_0x115763(0x9b)][_0x115763(0x9f)][_0x115763(0x9a)](_0x115763(0xd1),_0x11ece8);}[_0x28e35d(0xc2)](){const _0x1b2555=_0x28e35d,_0x164078=new _0x58599e(this[_0x1b2555(0x96)]);return _0x164078[_0x1b2555(0x9a)]({'icon':_0x3483b4,'label':_0x4b6e05(this[_0x1b2555(0x96)],_0x1b2555(0xab)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x1b2555(0x92),'isEnabled':!0x1}),_0x164078['on'](_0x1b2555(0xaa),()=>{const _0x2a445e=_0x1b2555;this[_0x2a445e(0xc8)]();}),_0x164078;}[_0x28e35d(0xb4)](_0xe25986){const _0x107fd6=_0x28e35d;this[_0x107fd6(0x98)]=_0xe25986;}[_0x28e35d(0x9c)](){const _0xd24fd7=_0x28e35d,_0x3eb00f=this[_0xd24fd7(0x96)],_0x5eec3c=()=>{const _0xcd3d7f=_0xd24fd7;_0x19bc7b[_0xcd3d7f(0xc5)][_0xcd3d7f(0xbb)](()=>{const _0x1db74a=_0xcd3d7f;if(_0x3510d8(this[_0x1db74a(0xcd)])){const _0x1b7df3=new _0x159a1a(this[_0x1db74a(0x9b)][_0x1db74a(0x9f)][_0x1db74a(0xcd)]),_0x17dc13=new _0x159a1a(this[_0x1db74a(0xa6)][_0x1db74a(0xcd)]),_0x2e7877=_0x1b7df3[_0x1db74a(0xb1)],_0x5b5cb4=_0x1db74a(0xa3)===_0x3eb00f[_0x1db74a(0xb2)]?_0x1db74a(0xb0):_0x1db74a(0xbf);_0x1b7df3[_0x1db74a(0xca)]();const _0x3abd4f=_0x2e7877-_0x1b7df3[_0x1db74a(0xb1)]+0x1;this[_0x1db74a(0xa6)][_0x1db74a(0xcd)][_0x1db74a(0xa2)][_0x5b5cb4]=_0x1db74a(0xa1)+(_0x2e7877-_0x17dc13[_0x1db74a(0xb1)]-_0x3abd4f)+_0x1db74a(0xbc);}});};this[_0xd24fd7(0x9b)][_0xd24fd7(0x9f)]['on'](_0xd24fd7(0xad),_0x5eec3c),this['on'](_0xd24fd7(0x90),()=>{const _0x8abf81=_0xd24fd7;_0x5eec3c(),this[_0x8abf81(0xa7)]=new _0x20a669(this[_0x8abf81(0x9b)][_0x8abf81(0x9f)][_0x8abf81(0xcd)],()=>{_0x5eec3c();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4462(){const _0x22b246=['search','children','62405400fhbskW','delegate','aiChatResources','11901768fjRZFz','length','_skeletonLoader','set','useDefaultFiltering','2291496QmjvUM','_createSkeletonView','setTemplate','isLoading','extendTemplate','div','_resourcesListView','ck\x20ck-search','14nxIrNk','_searchView','_source','loadResources','_createSearchSection','render','updateResourceState','getQuery','source','add','locale','has','addResourceToContext','searchInputVisibleFrom','ck-ai-chat-resources','fire','_createSearchView','286107IxVofL','_latestLoadResourcesUid','bindTemplate','8189150dxkKxU','53EhBYFa','highlightText','_searchSection','_searchInputVisibleFrom','65598rghooz','44ohACFj','loadSourceResources','ck-hidden','6674877LJMfVw','setResources','_createResourcesListView'];_0x4462=function(){return _0x22b246;};return _0x4462();}const _0x28e33c=_0x2034;(function(_0x2c0ac2,_0x474025){const _0x15c721=_0x2034,_0xde8ef2=_0x2c0ac2();while(!![]){try{const _0x4d948d=-parseInt(_0x15c721(0x19e))/0x1*(parseInt(_0x15c721(0x1a2))/0x2)+parseInt(_0x15c721(0x19a))/0x3*(parseInt(_0x15c721(0x1a3))/0x4)+-parseInt(_0x15c721(0x19d))/0x5+parseInt(_0x15c721(0x1b3))/0x6*(-parseInt(_0x15c721(0x1bb))/0x7)+-parseInt(_0x15c721(0x1ae))/0x8+-parseInt(_0x15c721(0x1a6))/0x9+parseInt(_0x15c721(0x1ab))/0xa;if(_0x4d948d===_0x474025)break;else _0xde8ef2['push'](_0xde8ef2['shift']());}catch(_0x371f62){_0xde8ef2['push'](_0xde8ef2['shift']());}}}(_0x4462,0xe0a98));import{View as _0x50be98,ViewCollection as _0x52c0a9}from'ckeditor5/src/ui.js';import{uid as _0x1b6214}from'ckeditor5/src/utils.js';function _0x2034(_0x3a56a4,_0x455ea5){const _0x4462a0=_0x4462();return _0x2034=function(_0x20349b,_0x4c7bae){_0x20349b=_0x20349b-0x192;let _0x107587=_0x4462a0[_0x20349b];return _0x107587;},_0x2034(_0x3a56a4,_0x455ea5);}import{AIChatContextResourcesListView as _0x22f11d}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x1425a2}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x237c89,SKELETON_DEFINITIONS as _0x47fd27}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x50be98{[_0x28e33c(0x1bc)];[_0x28e33c(0x1a0)];[_0x28e33c(0x1a1)];[_0x28e33c(0x1b9)];[_0x28e33c(0x1b0)];[_0x28e33c(0x1bd)];[_0x28e33c(0x1aa)];[_0x28e33c(0x19b)]=null;constructor(_0x4ae152,_0x50649c){const _0x36dbff=_0x28e33c;super(_0x4ae152),this[_0x36dbff(0x1bd)]=_0x50649c[_0x36dbff(0x1c3)],this[_0x36dbff(0x1a1)]=_0x50649c[_0x36dbff(0x196)]??0x7,this[_0x36dbff(0x1b1)](_0x36dbff(0x1b6),!0x0),this[_0x36dbff(0x1bc)]=this[_0x36dbff(0x199)](),this[_0x36dbff(0x1a0)]=this[_0x36dbff(0x1bf)](),this[_0x36dbff(0x1b9)]=this[_0x36dbff(0x1a8)](),this[_0x36dbff(0x1b0)]=this[_0x36dbff(0x1b4)](),this[_0x36dbff(0x1aa)]=new _0x52c0a9([this[_0x36dbff(0x1b0)],this[_0x36dbff(0x1b9)]]),this[_0x36dbff(0x1b5)]({'tag':_0x36dbff(0x1b8),'attributes':{'class':_0x36dbff(0x197)},'children':this[_0x36dbff(0x1aa)]});}[_0x28e33c(0x199)](){const _0x360834=_0x28e33c;return new _0x1425a2(this[_0x360834(0x193)]);}[_0x28e33c(0x1bf)](){const _0x32c708=_0x28e33c,_0x20b808=new _0x50be98(this[_0x32c708(0x193)]);return _0x20b808[_0x32c708(0x1b5)]({'tag':_0x32c708(0x1b8),'attributes':{'class':_0x32c708(0x1ba)},'children':[this[_0x32c708(0x1bc)]]}),this[_0x32c708(0x1bc)]['on'](_0x32c708(0x1a9),(_0x515dec,_0x24021b)=>{const _0x141825=_0x32c708;this[_0x141825(0x1be)](_0x24021b),this[_0x141825(0x1bd)][_0x141825(0x1b2)]&&this[_0x141825(0x1b9)][_0x141825(0x19f)](_0x24021b);}),_0x20b808;}[_0x28e33c(0x1a8)](){const _0x265221=_0x28e33c,_0x70cb64=new _0x22f11d(this[_0x265221(0x193)],this[_0x265221(0x1bd)]);return _0x70cb64[_0x265221(0x1ac)](_0x265221(0x195))['to'](this),_0x70cb64[_0x265221(0x1b7)]({'attributes':{'class':this[_0x265221(0x19c)]['if'](_0x265221(0x1b6),_0x265221(0x1a5))}}),_0x70cb64;}[_0x28e33c(0x1b4)](){const _0x130176=_0x28e33c,_0xb5ab59=new _0x237c89(this[_0x130176(0x193)],_0x47fd27[_0x130176(0x1ad)]);return _0xb5ab59[_0x130176(0x1b7)]({'attributes':{'class':[this[_0x130176(0x19c)]['if'](_0x130176(0x1b6),_0x130176(0x1a5),_0x3b011f=>!_0x3b011f)]}}),_0xb5ab59;}[_0x28e33c(0x1c0)](){const _0x5b4118=_0x28e33c;super[_0x5b4118(0x1c0)](),this[_0x5b4118(0x1be)]('');}[_0x28e33c(0x1be)](_0x5a1865){const _0x34c27c=_0x28e33c,_0x5bdb88=_0x1b6214();this[_0x34c27c(0x19b)]=_0x5bdb88,this[_0x34c27c(0x198)](_0x34c27c(0x1a4),{'sourceId':this[_0x34c27c(0x1bd)]['id'],'query':_0x5a1865,'uid':_0x5bdb88}),this[_0x34c27c(0x1b6)]=!0x0;}[_0x28e33c(0x1a7)](_0x28a7fc,_0x320610){const _0x2d276b=_0x28e33c;if(_0x320610&&_0x320610!==this[_0x2d276b(0x19b)])return;const _0x3ceeaf=this[_0x2d276b(0x1bd)][_0x2d276b(0x1b2)]?this[_0x2d276b(0x1bc)][_0x2d276b(0x1c2)]():'';this[_0x2d276b(0x1b9)][_0x2d276b(0x1a7)](_0x28a7fc,_0x3ceeaf),_0x28a7fc[_0x2d276b(0x1af)]>=this[_0x2d276b(0x1a1)]&&!this[_0x2d276b(0x1aa)][_0x2d276b(0x194)](this[_0x2d276b(0x1a0)])&&this[_0x2d276b(0x1aa)][_0x2d276b(0x192)](this[_0x2d276b(0x1a0)],0x0),requestAnimationFrame(()=>{const _0x4ca804=_0x2d276b;this[_0x4ca804(0x1b6)]=!0x1;});}[_0x28e33c(0x1c1)](_0x5a132b,_0x1c5b3e){const _0xc06642=_0x28e33c;this[_0xc06642(0x1b9)][_0xc06642(0x1c1)](_0x5a132b,_0x1c5b3e);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41f43d=_0x5768;(function(_0x74f1d9,_0x805f69){const _0x52cb1f=_0x5768,_0x6cfc4c=_0x74f1d9();while(!![]){try{const _0x3a2112=parseInt(_0x52cb1f(0x99))/0x1+parseInt(_0x52cb1f(0xb4))/0x2+-parseInt(_0x52cb1f(0xa9))/0x3+-parseInt(_0x52cb1f(0xa1))/0x4+parseInt(_0x52cb1f(0x9b))/0x5+-parseInt(_0x52cb1f(0x94))/0x6+-parseInt(_0x52cb1f(0xa4))/0x7;if(_0x3a2112===_0x805f69)break;else _0x6cfc4c['push'](_0x6cfc4c['shift']());}catch(_0x3387f6){_0x6cfc4c['push'](_0x6cfc4c['shift']());}}}(_0x212e,0x97922));import{HighlightedTextView as _0xdfbdc4,IconView as _0x5ce64d,ListItemView as _0x3a7a9d}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x3660a1}from'es-toolkit/compat';import{AIContextItemType as _0x94f700}from'../../../../aicore/model/aicontext.js';function _0x5768(_0x20106a,_0x2c6b3a){const _0x212e27=_0x212e();return _0x5768=function(_0x576855,_0x470d24){_0x576855=_0x576855-0x90;let _0x3a04f0=_0x212e27[_0x576855];return _0x3a04f0;},_0x5768(_0x20106a,_0x2c6b3a);}import{IconFileUpload as _0x488478,IconCheck as _0x587715,IconDocument as _0x9b9c66,IconDocumentOutline as _0x380b0e,IconLink as _0x571f22}from'@ckeditor/ckeditor5-icons';const zr=_0x41f43d(0xa7),Jr=_0x41f43d(0xac),Kr=_0x41f43d(0x98),Nr=_0x41f43d(0x96);function _0x212e(){const _0x497fb9=['extendTemplate','DOCUMENT','1879020XjwIgO','isInContext','content','4123770NmWhlK','getResourceIcon','type','ck-ai-chat-resources__item','TEXT','934542BccIyq','bindTemplate','setTemplate','ck-ai-chat-resources__item--in-context','trim','set','execute','_updateIcon','_titleView','_createTitleView','resource','2356282KXkTHG','label','highlightText','text','render','_iconView','FILE','isVisible','div','898056VZtVJf','_createIconView','ck-ai-chat-resources__item__icon','span','ck-ai-chat-resources__item-title','170064RWOciv','ck-hidden','3963420kgXBcx','URL','updateResourceState','_setupTemplate'];_0x212e=function(){return _0x497fb9;};return _0x212e();}export class AIChatResourceListItemView extends _0x3a7a9d{[_0x41f43d(0xb3)];[_0x41f43d(0xb1)];[_0x41f43d(0x90)];constructor(_0x698133,_0x4c4019){const _0x19015c=_0x41f43d;super(_0x698133),this[_0x19015c(0xb3)]=_0x4c4019,this[_0x19015c(0xae)](_0x19015c(0xa2),!!_0x4c4019[_0x19015c(0xa2)]),this[_0x19015c(0xb1)]=this[_0x19015c(0xb2)](),this[_0x19015c(0x90)]=this[_0x19015c(0x95)](),this[_0x19015c(0x9e)]();}[_0x41f43d(0xb8)](){const _0x43d99e=_0x41f43d;super[_0x43d99e(0xb8)]();}[_0x41f43d(0xa5)](_0x24a18d){const _0x4cac27=_0x41f43d;if(_0x24a18d[_0x4cac27(0xa2)])return _0x587715;switch(_0x24a18d[_0x4cac27(0xa6)]){case _0x94f700[_0x4cac27(0xa0)]:return _0x9b9c66;case _0x94f700[_0x4cac27(0x9c)]:return _0x571f22;case _0x94f700[_0x4cac27(0x91)]:case _0x94f700[_0x4cac27(0xa8)]:return _0x488478;default:return _0x380b0e;}}[_0x41f43d(0xb6)](_0x5d8a70){const _0x354f36=_0x41f43d;if(!_0x5d8a70||''===_0x5d8a70[_0x354f36(0xad)]())return void this[_0x354f36(0xb1)][_0x354f36(0xb6)](null);const _0x90cdd3=new RegExp(_0x3660a1(_0x5d8a70),'gi');this[_0x354f36(0xb1)][_0x354f36(0xb6)](_0x90cdd3);}[_0x41f43d(0x9d)](_0x53c9aa){const _0x3107ea=_0x41f43d;this[_0x3107ea(0xb3)][_0x3107ea(0xa2)]=_0x53c9aa,this[_0x3107ea(0xa2)]=_0x53c9aa,this[_0x3107ea(0xb0)]();}[_0x41f43d(0xb2)](){const _0x1d927d=_0x41f43d,_0x5d1186=new _0xdfbdc4();return _0x5d1186[_0x1d927d(0xb7)]=this[_0x1d927d(0xb3)][_0x1d927d(0xb5)],_0x5d1186[_0x1d927d(0x9f)]({'tag':_0x1d927d(0x97),'attributes':{'class':[Kr]}}),_0x5d1186;}[_0x41f43d(0x95)](){const _0x25e575=_0x41f43d,_0x55ba1b=new _0x5ce64d();return _0x55ba1b[_0x25e575(0xa3)]=this[_0x25e575(0xa5)](this[_0x25e575(0xb3)]),_0x55ba1b;}[_0x41f43d(0x9e)](){const _0x287ad4=_0x41f43d,_0xe86865=this[_0x287ad4(0xaa)];this[_0x287ad4(0xab)]({'tag':_0x287ad4(0x93),'attributes':{'class':[zr,_0xe86865['if'](_0x287ad4(0x92),_0x287ad4(0x9a),_0xf839aa=>!_0xf839aa),_0xe86865['if'](_0x287ad4(0xa2),Jr)]},'children':[{'tag':_0x287ad4(0x93),'attributes':{'class':[Nr]},'children':[this[_0x287ad4(0x90)]]},this[_0x287ad4(0xb1)]],'on':{'click':_0xe86865['to'](_0x287ad4(0xaf))}});}[_0x41f43d(0xb0)](){const _0x180cb4=_0x41f43d;this[_0x180cb4(0x90)][_0x180cb4(0xa3)]=this[_0x180cb4(0xa5)](this[_0x180cb4(0xb3)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x40158f,IconView as _0x42da94,LabeledFieldView as _0x2133b8,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x52762c,IconCancel as _0x30fb0a}from'ckeditor5/src/icons.js';import{getTranslation as _0x457d5c}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x2133b8{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x55eb50){const t=_0x55eb50['t'],_0x20ce69={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x457d5c(_0x55eb50,'AI_CHAT_SEARCH_RESOURCES')};super(_0x55eb50,_0x20ce69['creator']),this['label']=_0x20ce69['label'],this['_viewConfig']=_0x20ce69,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x55eb50,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x4bf30b){this['fire']('search',_0x4bf30b);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x42da94(),this['iconView']['content']=_0x52762c,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x3b50b2,t){this['resetButtonView']=new _0x40158f(_0x3b50b2),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x30fb0a,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x4bce22=>!_0x4bce22),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
|