@ckeditor/ckeditor5-ai 47.1.0-alpha.0 → 47.1.0-alpha.1
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 +4 -4
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.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/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.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/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x32dc(_0x17957b,_0x8f9bb7){const _0x53edf7=_0x53ed();return _0x32dc=function(_0x32dc5f,_0x5a45d5){_0x32dc5f=_0x32dc5f-0xcb;let _0x46299b=_0x53edf7[_0x32dc5f];return _0x46299b;},_0x32dc(_0x17957b,_0x8f9bb7);}const _0x585d47=_0x32dc;(function(_0x1e5cd9,_0xeba80f){const _0x33b1fd=_0x32dc,_0x5d218f=_0x1e5cd9();while(!![]){try{const _0x288d2b=-parseInt(_0x33b1fd(0xce))/0x1+-parseInt(_0x33b1fd(0xf5))/0x2*(parseInt(_0x33b1fd(0xef))/0x3)+-parseInt(_0x33b1fd(0xfd))/0x4+-parseInt(_0x33b1fd(0xfa))/0x5+parseInt(_0x33b1fd(0xdc))/0x6*(-parseInt(_0x33b1fd(0xdb))/0x7)+-parseInt(_0x33b1fd(0xe8))/0x8+parseInt(_0x33b1fd(0xf2))/0x9*(parseInt(_0x33b1fd(0xf1))/0xa);if(_0x288d2b===_0xeba80f)break;else _0x5d218f['push'](_0x5d218f['shift']());}catch(_0xd478f4){_0x5d218f['push'](_0x5d218f['shift']());}}}(_0x53ed,0xe1271));import{ButtonView as _0x1a42f1,IconView as _0x2512ac}from'ckeditor5/src/ui.js';import{IconClose as _0x15537c,IconDocument as _0x5e5ca1,IconFileUpload as _0x3d31b7,IconLink as _0x2e5132,IconSelection as _0x2be1e0}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x38c828}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x2bdfd7}from'../../../aicore/ui/aispinner.js';function _0x53ed(){const _0x402022=['6YQzVOx','addEventListener','removeContextItemChip','small','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_createIconView','render','_createTemplateAttributes','disableAnimationOnEnter','ck-ai-chat-context-controls__chip-tooltip','slice','_setupRemoveButtonEvent','6044304GvFNuN','element','_initializeProperties','add','itemType','_createTemplateChildren','lastIndexOf','3qqdplC','div','98510XAezSF','5481ezTqqf','animationend','length','3048154KXSJss','ck-ai-chat-context-chip__label','selection','ck-ai-chat-context-chip','ck-ai-chat-context-chip_new-chip','3605805DcqLdA','readonly','type','2654876dvjDEU','_createRemoveButton','ck-hidden','_handleAnimationEndOnce','classList','tooltip','isLoading','uiId','setTemplate','_createLoaderIcon','bind','_isAnimationOnEnterEnabled','execute','locale','removeEventListener','label','content','document','ck-ai-chat-context-chip__type-icon','1086468CzRJqf','extendTemplate','bindTemplate','webkitAnimationEnd','_setupTemplate','_createLabelElement','ck-ai-chat-context-chip_document','span','remove','ck-ai-chat-context-chip_wide','set','fire','isVisible','2282497gpkIHG'];_0x53ed=function(){return _0x402022;};return _0x53ed();}const kn={'file':_0x3d31b7,'document':_0x5e5ca1,'web-resource':_0x2e5132,'text':_0x3d31b7,'selection':_0x2be1e0},xn=_0x585d47(0xf8),bn=_0x585d47(0xd7),wn=_0x585d47(0xd4),Tn=_0x585d47(0xf6),En=_0x585d47(0xcd),An=_0x585d47(0xe5),Cn='n';export class AIChatContextItemButtonView extends _0x1a42f1{constructor(_0x4b2582,_0x54a885,_0x289b90,_0x71e721,_0x8421c1=!0x1){const _0x3fb4bc=_0x585d47;super(_0x4b2582),this[_0x3fb4bc(0x108)]=_0x71e721,this[_0x3fb4bc(0xea)](_0x54a885,_0x289b90,_0x8421c1),this[_0x3fb4bc(0xd2)]();}[_0x585d47(0xe2)](){const _0x295a84=_0x585d47;super[_0x295a84(0xe2)](),this[_0x295a84(0x108)]&&this[_0x295a84(0xe9)]&&(this[_0x295a84(0xe9)][_0x295a84(0x101)][_0x295a84(0xeb)](_0x295a84(0xf9)),this[_0x295a84(0x100)](this[_0x295a84(0xe9)],()=>{const _0x300087=_0x295a84;this[_0x300087(0xe9)]&&this[_0x300087(0xe9)][_0x300087(0x101)][_0x300087(0xd6)](_0x300087(0xf9));}));}[_0x585d47(0xe4)](){const _0x2e8368=_0x585d47;this[_0x2e8368(0x108)]=!0x1,this[_0x2e8368(0xe9)]&&this[_0x2e8368(0xe9)][_0x2e8368(0x101)][_0x2e8368(0xd6)](_0x2e8368(0xf9));}[_0x585d47(0xea)](_0x33b4e8,_0x60f139,_0x3b747a){const _0x30c99f=_0x585d47;this[_0x30c99f(0xd8)](_0x30c99f(0x10c),_0x33b4e8[_0x30c99f(0x10c)]),this[_0x30c99f(0xd8)](_0x30c99f(0x102),!0x0),this[_0x30c99f(0xd8)](_0x30c99f(0xec),_0x33b4e8[_0x30c99f(0xfc)]),this[_0x30c99f(0xd8)]('id',_0x33b4e8[_0x30c99f(0x104)]),this[_0x30c99f(0xd8)](_0x30c99f(0xfb),_0x60f139),this[_0x30c99f(0xd8)](_0x30c99f(0x103),_0x3b747a);}[_0x585d47(0xd2)](){const _0xa177b4=_0x585d47,_0x2c9902=this[_0xa177b4(0xe1)](),_0x10eed1=this[_0xa177b4(0xfe)](),_0x2ccbed=this[_0xa177b4(0xd0)];this[_0xa177b4(0x105)]({'tag':_0xa177b4(0xf0),'attributes':this[_0xa177b4(0xe3)](_0x2ccbed),'children':this[_0xa177b4(0xed)](_0x2c9902,_0x10eed1,_0x2ccbed)});}[_0x585d47(0xe3)](_0x55b187){const _0xb32963=_0x585d47;return{'class':[xn,_0x55b187['if'](_0xb32963(0xec),wn,_0x5a4636=>_0xb32963(0xcc)==_0x5a4636),_0x55b187['if'](_0xb32963(0xec),bn,_0x10ce2a=>_0xb32963(0xf7)==_0x10ce2a)],'data-cke-tooltip-text':_0x55b187['to'](_0xb32963(0x10c),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x585d47(0xed)](_0x1a20fb,_0xea027,_0x43c660){const _0x3e2144=_0x585d47,_0x33d947=this[_0x3e2144(0xd3)](_0x43c660),_0x3b0e43=this[_0x3e2144(0x106)]();return this[_0x3e2144(0xfb)]?[_0x1a20fb,_0x33d947]:[_0x1a20fb,_0x3b0e43,_0x33d947,_0xea027];}[_0x585d47(0xd3)](_0x183afb){const _0x2a2966=_0x585d47;return{'tag':_0x2a2966(0xd5),'attributes':{'class':Tn},'children':[{'text':_0x183afb['to'](_0x2a2966(0x10c))}]};}[_0x585d47(0xfe)](){const _0x41f199=_0x585d47,_0x3979dc=new _0x1a42f1(this[_0x41f199(0x10a)]);return _0x3979dc[_0x41f199(0xd8)]({'label':_0x38c828(this[_0x41f199(0x10a)],_0x41f199(0xe0)),'icon':_0x15537c}),this[_0x41f199(0xe7)](_0x3979dc),_0x3979dc;}[_0x585d47(0xe7)](_0x2ddf56){const _0x4acd46=_0x585d47;_0x2ddf56['on'](_0x4acd46(0x109),()=>{const _0x2f4b3f=_0x4acd46;this[_0x2f4b3f(0xd9)](_0x2f4b3f(0xde),this['id']);});}[_0x585d47(0xe1)](){const _0x4c9490=_0x585d47,_0x593512=this[_0x4c9490(0xd0)],_0x5315f1=new _0x2512ac();return _0x5315f1[_0x4c9490(0xcb)]=kn[this[_0x4c9490(0xec)]],_0x5315f1[_0x4c9490(0xcf)]({'attributes':{'class':[En,_0x593512['if'](_0x4c9490(0x103),_0x4c9490(0xff),_0x327973=>_0x327973)]}}),_0x5315f1;}[_0x585d47(0x100)](_0x2be4e2,_0x50ed04){const _0x2e0ff1=_0x585d47;if(!_0x2be4e2)return;const _0x245048=()=>{const _0x31738c=_0x32dc;_0x50ed04(),_0x2be4e2[_0x31738c(0x10b)](_0x31738c(0xf3),_0x245048),_0x2be4e2[_0x31738c(0x10b)](_0x31738c(0xd1),_0x245048);};_0x2be4e2[_0x2e0ff1(0xdd)](_0x2e0ff1(0xf3),_0x245048),_0x2be4e2[_0x2e0ff1(0xdd)](_0x2e0ff1(0xd1),_0x245048);}[_0x585d47(0x106)](){const _0x4e9777=_0x585d47,_0x2d7209=new _0x2bdfd7(_0x4e9777(0xdf));return _0x2d7209[_0x4e9777(0x107)](_0x4e9777(0xda))['to'](this,_0x4e9777(0x103),_0x1383a8=>_0x1383a8),_0x2d7209;}}function In(_0x139778){const _0x197888=_0x585d47;if(!_0x139778)return _0x139778;if(_0x139778[_0x197888(0xf4)]<=0x78)return _0x139778;const _0x4c0a60=_0x139778[_0x197888(0xe6)](0x0,0x78),_0x3c46d1=_0x4c0a60[_0x197888(0xee)]('\x20');return(_0x3c46d1>0x0?_0x4c0a60[_0x197888(0xe6)](0x0,_0x3c46d1):_0x4c0a60)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f203c=_0x54ad;(function(_0x4f0ee3,_0x551d2a){const _0x4a745a=_0x54ad,_0xa4f7df=_0x4f0ee3();while(!![]){try{const _0x50aa75=-parseInt(_0x4a745a(0xc2))/0x1*(parseInt(_0x4a745a(0xfd))/0x2)+parseInt(_0x4a745a(0xff))/0x3*(parseInt(_0x4a745a(0xbe))/0x4)+parseInt(_0x4a745a(0xfc))/0x5+-parseInt(_0x4a745a(0xdd))/0x6+-parseInt(_0x4a745a(0xc1))/0x7*(parseInt(_0x4a745a(0xf8))/0x8)+parseInt(_0x4a745a(0xbb))/0x9+parseInt(_0x4a745a(0xd6))/0xa*(parseInt(_0x4a745a(0xf6))/0xb);if(_0x50aa75===_0x551d2a)break;else _0xa4f7df['push'](_0xa4f7df['shift']());}catch(_0x5d1a67){_0xa4f7df['push'](_0xa4f7df['shift']());}}}(_0x481c,0x5c44c));import{FocusTracker as _0x30abcd,KeystrokeHandler as _0x351a7b}from'ckeditor5/src/utils.js';import{ButtonView as _0x2eb32c,FocusCycler as _0x52729e,LabeledFieldView as _0x30cc85,View as _0x53b846,FormHeaderView as _0x341eca,createLabeledInputText as _0x5be1bd,submitHandler as _0x1c8407}from'ckeditor5/src/ui.js';import{IconCheck as _0x3192df,IconPreviousArrow as _0x39db98}from'@ckeditor/ckeditor5-icons';function _0x54ad(_0x2c9c5f,_0x55cffc){const _0x481c85=_0x481c();return _0x54ad=function(_0x54ad62,_0x130422){_0x54ad62=_0x54ad62-0xb6;let _0x18df59=_0x481c85[_0x54ad62];return _0x18df59;},_0x54ad(_0x2c9c5f,_0x55cffc);}import{getTranslation as _0x13a761}from'../../../aicore/utils/common-translations.js';const eh=_0x2f203c(0xca),hh=_0x2f203c(0xec);function _0x481c(){const _0x521718=['focusTracker','listenTo','input','fire','refreshBalloon','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','AI_CHAT_CONTEXT_URL_INVALID_ERROR','keystrokes','_setupTemplate','confirmButton','_createConfirmButton','ck-ai-chat-context-controls__url-input-section','value','ck-button-icon','clear','focusCycler','submit','element','trim','div','_updateConfirmButtonState','11HcKCgR','AI_CHAT_CONTEXT_URL_ADD_URL','168pYeKLd','submitUrl','ck-labeled-field-view_empty','createCollection','3690545fXcUrF','3778ROOaYD','locale','69rgjemB','add','focus','_setupKeystrokes','AI_CHAT_CONTEXT_URL_LABEL','_focusables','3625245PnMqby','forEach','execute','17348kbOJlc','set','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','206059uaOoBu','31rSxFOr','fieldView','setTemplate','render','stop','isEnabled','esc','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','ck-ai-chat-context-controls__url-form','form','children','_createBackButton','backButton','length','clearError','_setupEventHandlers','setError','getValue','tab','shift+tab','444330kyRKlx','_createUrlInputField','errorText','ck-button-icon\x20ck-button-back','_isValidUrl','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_handleSubmit','1382580zXAfNR','urlInputField','cancel','destroy'];_0x481c=function(){return _0x521718;};return _0x481c();}export class AIChatContextPanelUrlInputView extends _0x53b846{[_0x2f203c(0xe1)];[_0x2f203c(0xe8)];[_0x2f203c(0xba)];[_0x2f203c(0xf0)];[_0x2f203c(0xde)];[_0x2f203c(0xce)];[_0x2f203c(0xea)];constructor(_0x45598e){const _0xfb3b8a=_0x2f203c;super(_0x45598e),this[_0xfb3b8a(0xe1)]=new _0x30abcd(),this[_0xfb3b8a(0xe8)]=new _0x351a7b(),this[_0xfb3b8a(0xce)]=this[_0xfb3b8a(0xcd)](),this[_0xfb3b8a(0xde)]=this[_0xfb3b8a(0xd7)](),this[_0xfb3b8a(0xea)]=this[_0xfb3b8a(0xeb)](),this[_0xfb3b8a(0xba)]=this[_0xfb3b8a(0xfb)]([this[_0xfb3b8a(0xce)],this[_0xfb3b8a(0xde)],this[_0xfb3b8a(0xea)]]),this[_0xfb3b8a(0xf0)]=new _0x52729e({'focusables':this[_0xfb3b8a(0xba)],'focusTracker':this[_0xfb3b8a(0xe1)],'keystrokeHandler':this[_0xfb3b8a(0xe8)],'actions':{'focusPrevious':_0xfb3b8a(0xd5),'focusNext':_0xfb3b8a(0xd4)}}),this[_0xfb3b8a(0xe9)](),this[_0xfb3b8a(0xd1)](),this[_0xfb3b8a(0xb8)]();}[_0x2f203c(0xc5)](){const _0x3a4165=_0x2f203c;super[_0x3a4165(0xc5)](),this[_0x3a4165(0xba)][_0x3a4165(0xbc)](_0x57d35d=>{const _0x481592=_0x3a4165;this[_0x481592(0xe1)][_0x481592(0xb6)](_0x57d35d[_0x481592(0xf2)]),this[_0x481592(0xe8)][_0x481592(0xe2)](_0x57d35d[_0x481592(0xf2)]);}),_0x1c8407({'view':this}),this[_0x3a4165(0xb7)]();}[_0x2f203c(0xe0)](){const _0x533880=_0x2f203c;super[_0x533880(0xe0)](),this[_0x533880(0xe1)][_0x533880(0xe0)](),this[_0x533880(0xe8)][_0x533880(0xe0)]();}[_0x2f203c(0xb7)](){const _0x518588=_0x2f203c;this[_0x518588(0xde)][_0x518588(0xb7)]();}[_0x2f203c(0xd3)](){const _0x51e93b=_0x2f203c;return this[_0x51e93b(0xde)][_0x51e93b(0xc3)][_0x51e93b(0xf2)]?.[_0x51e93b(0xed)]?.[_0x51e93b(0xf3)]()||'';}[_0x2f203c(0xef)](){const _0x157eeb=_0x2f203c;this[_0x157eeb(0xde)][_0x157eeb(0xc3)][_0x157eeb(0xf2)][_0x157eeb(0xed)]='',this[_0x157eeb(0xde)][_0x157eeb(0xd8)]=null,this[_0x157eeb(0xea)][_0x157eeb(0xc7)]=!0x1;}[_0x2f203c(0xd2)](_0x3e88ab){const _0x4bc261=_0x2f203c;this[_0x4bc261(0xde)][_0x4bc261(0xd8)]=_0x3e88ab,this[_0x4bc261(0xf5)](),this[_0x4bc261(0xe4)](_0x4bc261(0xe5));}[_0x2f203c(0xd0)](){const _0x26eb0a=_0x2f203c;this[_0x26eb0a(0xde)][_0x26eb0a(0xd8)]=null,this[_0x26eb0a(0xf5)]();}[_0x2f203c(0xcd)](){const _0x1097a4=_0x2f203c,_0x4e7d2c=new _0x2eb32c(this[_0x1097a4(0xfe)]);return _0x4e7d2c[_0x1097a4(0xbf)]({'icon':_0x39db98,'tooltip':_0x13a761(this[_0x1097a4(0xfe)],_0x1097a4(0xe6)),'tooltipPosition':'n','class':_0x1097a4(0xd9)}),_0x4e7d2c;}[_0x2f203c(0xd7)](){const _0x4dd7db=_0x2f203c,_0x24a3bd=new _0x30cc85(this[_0x4dd7db(0xfe)],_0x5be1bd);return _0x24a3bd[_0x4dd7db(0xbf)]({'label':_0x13a761(this[_0x4dd7db(0xfe)],_0x4dd7db(0xb9)),'class':_0x4dd7db(0xfa)}),_0x24a3bd[_0x4dd7db(0xc3)][_0x4dd7db(0xbf)]({'placeholder':_0x13a761(this[_0x4dd7db(0xfe)],_0x4dd7db(0xdb))}),_0x24a3bd;}[_0x2f203c(0xeb)](){const _0x273e51=_0x2f203c,_0x514e24=new _0x2eb32c(this[_0x273e51(0xfe)]);return _0x514e24[_0x273e51(0xbf)]({'icon':_0x3192df,'tooltip':_0x13a761(this[_0x273e51(0xfe)],_0x273e51(0xf7)),'tooltipPosition':'n','class':_0x273e51(0xee),'type':_0x273e51(0xf1),'isEnabled':!0x1}),_0x514e24;}[_0x2f203c(0xe9)](){const _0x2c0b5c=_0x2f203c,_0x29448a=new _0x341eca(this[_0x2c0b5c(0xfe)],{'label':_0x13a761(this[_0x2c0b5c(0xfe)],_0x2c0b5c(0xf7)),'class':_0x2c0b5c(0xc9)});_0x29448a[_0x2c0b5c(0xcc)][_0x2c0b5c(0xb6)](this[_0x2c0b5c(0xce)],0x0),this[_0x2c0b5c(0xc4)]({'tag':_0x2c0b5c(0xcb),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x29448a,{'tag':_0x2c0b5c(0xf4),'attributes':{'class':hh},'children':[this[_0x2c0b5c(0xde)],this[_0x2c0b5c(0xea)]]}]});}[_0x2f203c(0xd1)](){const _0x81c849=_0x2f203c;this[_0x81c849(0xce)]['on'](_0x81c849(0xbd),()=>{const _0x4857b7=_0x81c849;this[_0x4857b7(0xef)](),this[_0x4857b7(0xe4)](_0x4857b7(0xdf));}),this[_0x81c849(0xde)][_0x81c849(0xc3)]['on'](_0x81c849(0xe3),()=>{const _0x5625b6=_0x81c849;this[_0x5625b6(0xd0)](),this[_0x5625b6(0xf5)](),this[_0x5625b6(0xe4)](_0x5625b6(0xe5));}),this['on'](_0x81c849(0xf1),_0x2c23c8=>{const _0x44a7ff=_0x81c849;_0x2c23c8[_0x44a7ff(0xc6)](),this[_0x44a7ff(0xdc)]();});}[_0x2f203c(0xb8)](){const _0x55c685=_0x2f203c;this[_0x55c685(0xe8)][_0x55c685(0xbf)](_0x55c685(0xc8),(_0x81c6e7,_0x4c8222)=>{const _0x35e242=_0x55c685;this[_0x35e242(0xef)](),this[_0x35e242(0xe4)](_0x35e242(0xdf)),_0x4c8222();});}[_0x2f203c(0xdc)](){const _0x529f28=_0x2f203c,_0x319e9a=this[_0x529f28(0xd3)]()[_0x529f28(0xf3)]();_0x319e9a?this[_0x529f28(0xda)](_0x319e9a)?(this[_0x529f28(0xd0)](),this[_0x529f28(0xe4)](_0x529f28(0xf9),_0x319e9a)):this[_0x529f28(0xd2)](_0x13a761(this[_0x529f28(0xfe)],_0x529f28(0xe7))):this[_0x529f28(0xd2)](_0x13a761(this[_0x529f28(0xfe)],_0x529f28(0xc0)));}[_0x2f203c(0xf5)](){const _0x2ecf28=_0x2f203c,_0x46add6=this[_0x2ecf28(0xd3)]()[_0x2ecf28(0xf3)](),_0x20462a=!!this[_0x2ecf28(0xde)][_0x2ecf28(0xd8)];this[_0x2ecf28(0xea)][_0x2ecf28(0xc7)]=_0x46add6[_0x2ecf28(0xcf)]>0x0&&!_0x20462a;}[_0x2f203c(0xda)](_0x4aa11a){try{return!!new URL(_0x4aa11a);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2a36b6=_0x527a;(function(_0x19620f,_0x4d324d){const _0x461063=_0x527a,_0x29fbdf=_0x19620f();while(!![]){try{const _0x2bab2d=parseInt(_0x461063(0x11f))/0x1+-parseInt(_0x461063(0xf8))/0x2+parseInt(_0x461063(0xec))/0x3+-parseInt(_0x461063(0xd4))/0x4+-parseInt(_0x461063(0x13d))/0x5+-parseInt(_0x461063(0xf2))/0x6+parseInt(_0x461063(0x112))/0x7*(parseInt(_0x461063(0xef))/0x8);if(_0x2bab2d===_0x4d324d)break;else _0x29fbdf['push'](_0x29fbdf['shift']());}catch(_0x55b76b){_0x29fbdf['push'](_0x29fbdf['shift']());}}}(_0xab40,0x1a814));import{BalloonPanelView as _0x363dc8,ButtonView as _0x258c9c,clickOutsideHandler as _0x7d2fed,FileDialogButtonView as _0x5c2dac,IconView as _0x126796,View as _0x243f19}from'ckeditor5/src/ui.js';function _0xab40(){const _0x2f279f=['setAddContextOptions','bodyCollection','reorganizeChips','388113BjOJTX','buttonView','_setupTemplate','822552uVeCPv','createCollection','addDocumentToContext','526518SqXPGH','menuitem','_showSourceResourcesBalloon','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat','_currentContextsChips','285956PiRVXi','element','ck-ai-chat-context-controls__add-context-button','isVisible','urls','isEnabled','_handleAddContextButtonClick','focus','_createResourcesBalloonView','showAddContextBalloonPanel','_addContextBalloonConfig','_addUrlContent','_overflowManager','fire','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','ck-ai-chat-context-controls__balloon-button','isHidden','ck-ai-chat-context-controls__url-balloon-panel','_createArrowView','showUrlBalloonPanel','addUrlToContext','_toggleAddContextBalloon','body','_addContextBalloonPanelView','icon','northArrowSouthEast','28PULPta','extendTemplate','_createAddContextButtonView','closest','AI_CHAT_CONTEXT_URL_LABEL','clear','addContextButtonView','ck-ai-chat-context-controls','hideAddContextBalloonPanel','add','enabled','content','ck-ai-chat-context-controls__pending-contexts','133383lItDkf','addContextItem','_createContextButton','_setupUrlBalloonClickOutsideHandler','_resourcesBalloonView','hideUrlBalloonPanel','tooltip','ck-reset_all-excluded','setTemplate','isAnyResourceBalloonVisible','ck-ai-chat-controls-button','ck-ai-chat-context-chips-wrapper-balloon','locale','clearCurrentContextItems','_bindEventHandlers','_createBaseBalloonPanel','execute','find','defaultPositions','show','type','_getLimiterElement','removeContextItem','render','ck-ai-chat-context-controls__balloon-button-source','clearConversationContextItems','addResourceToContext','pin','showSourceResourcesBalloon','submitUrl','852795xTCYqq','setConversationContext','ck-ai-chat-context-controls__add-context-balloon-panel','_urlBalloonPanelView','_conversationContextsChips','overflowChips','populateSourceResourceBalloon','setContainerElement','northArrowSouthWest','destroy','_setupAddContextBalloonClickOutsideHandler','northArrowSouth','_createUrlBalloonPanelView','refreshBalloon','AI_CHAT_CONTEXT_FILE_LABEL','_removeContextFromCollection','setContextItemLoading','__arrow','cancel','removeContextItemChip','children','files','balloonView','set','arrowView','_setupAllBalloonClickOutsideHandlers','southArrowNorthEast','_setAddContextButtonEnabled','div','isReadOnly','AI_CHAT_CONTEXT_ADD_CONTEXT','addFileToContext','hide','_setBalloonPanelContent','_createAddContextBalloonPanelView','loadSourceResources','656704vnbAjg','done','_handleUrlSubmit','_addContextToCollection','conversation','closeSourceResourceBalloon','southArrowNorthWest','updateResourceState','remove','isOn','_urlInputView','isLoading','current','document','sources','bind','source','southArrowNorth','label','ck-ai-chat-controls_context_show-more-button','_createBalloonButton'];_0xab40=function(){return _0x2f279f;};return _0xab40();}import{IconBrowseFiles as _0x3cd925,IconDocument as _0x512a46,IconDocumentOutline as _0x5bee98,IconDropdownArrow as _0x266538,IconLink as _0x213f71,IconPaperClip as _0x1849f7}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x5d6946}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x396dfb}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x31fbfc}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x5e3b2e}from'../../../aicore/utils/common-translations.js';function _0x527a(_0x17b1d4,_0x661e33){const _0xab4031=_0xab40();return _0x527a=function(_0x527a18,_0x370537){_0x527a18=_0x527a18-0xb4;let _0x2ae212=_0xab4031[_0x527a18];return _0x2ae212;},_0x527a(_0x17b1d4,_0x661e33);}import{AIChatResourcesBalloonView as _0x28cd2e}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2a36b6(0xf1),_0x2a36b6(0xcf),_0x2a36b6(0x10c),_0x2a36b6(0x139),_0x2a36b6(0x135),_0x2a36b6(0xd3)];const To=_0x2a36b6(0x119),Ao=_0x2a36b6(0x11e),ko=_0x2a36b6(0x13f),Eo=_0x2a36b6(0xfa),vo=_0x2a36b6(0x109),go=_0x2a36b6(0x107),Vo=_0x2a36b6(0x137),fo=_0x2a36b6(0x129),Io=_0x2a36b6(0x12a),Po=_0x2a36b6(0xe7),Ro=_0x2a36b6(0xf5),Uo=_0x2a36b6(0xf6),Lo=[_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xb8)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xbb)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0x111)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xda)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xe5)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xca)]];export class AIChatContextPanelView extends _0x243f19{[_0x2a36b6(0x118)];[_0x2a36b6(0xf7)]=this[_0x2a36b6(0xf0)]();[_0x2a36b6(0xb4)]=this[_0x2a36b6(0xf0)]();[_0x2a36b6(0x104)];[_0x2a36b6(0x10f)];[_0x2a36b6(0x140)];[_0x2a36b6(0xde)];[_0x2a36b6(0x123)];[_0x2a36b6(0x102)];[_0x2a36b6(0xea)];constructor(_0x4c81c0,_0x2c6b56){const _0xdc107e=_0x2a36b6;super(_0x4c81c0),this[_0xdc107e(0xea)]=_0x2c6b56,this[_0xdc107e(0xf7)]=this[_0xdc107e(0xf0)](),this[_0xdc107e(0xb4)]=this[_0xdc107e(0xf0)](),this[_0xdc107e(0x118)]=this[_0xdc107e(0x114)](_0x4c81c0),this[_0xdc107e(0x10f)]=this[_0xdc107e(0xd2)](_0x4c81c0),this[_0xdc107e(0x140)]=this[_0xdc107e(0xbc)](_0x4c81c0),this[_0xdc107e(0x123)]=this[_0xdc107e(0x100)](_0x4c81c0,_0x2c6b56);const _0x3a06cd={'cssClasses':{'showMoreButton':Po,'showMoreBalloon':Ro,'overflowContainer':Io,'controlsButton':fo}};this[_0xdc107e(0x104)]=new _0x31fbfc(_0x4c81c0,this[_0xdc107e(0xf7)],_0x3a06cd,this[_0xdc107e(0xea)],this),this[_0xdc107e(0x102)]={'buttonView':this[_0xdc107e(0x118)],'balloonView':this[_0xdc107e(0x10f)],'hideMethod':this[_0xdc107e(0x11a)][_0xdc107e(0xe3)](this),'showMethod':this[_0xdc107e(0x101)][_0xdc107e(0xe3)](this)},this[_0xdc107e(0xee)](),this[_0xdc107e(0x12d)]();}[_0x2a36b6(0x136)](){const _0x14498f=_0x2a36b6;super[_0x14498f(0x136)](),this[_0x14498f(0xc9)](),this[_0x14498f(0x104)][_0x14498f(0xb7)](this[_0x14498f(0xf9)]),this[_0x14498f(0x104)][_0x14498f(0xeb)]();}[_0x2a36b6(0xb9)](){const _0x294f05=_0x2a36b6;super[_0x294f05(0xb9)](),this[_0x294f05(0x104)][_0x294f05(0xb9)](),this[_0x294f05(0x123)][_0x294f05(0xb9)]();}[_0x2a36b6(0x120)](_0x48d525,_0x473678){const _0x4178c0=_0x2a36b6,_0x35d4f5=this[_0x4178c0(0x121)](_0x48d525,_0x4178c0(0xe0),!0x0,_0x473678);this[_0x4178c0(0xd7)](_0x35d4f5,this[_0x4178c0(0xf7)]),this[_0x4178c0(0x104)][_0x4178c0(0xeb)]();}[_0x2a36b6(0x135)](_0x375b47){const _0x37d414=_0x2a36b6;this[_0x37d414(0xbf)](_0x375b47,this[_0x37d414(0xf7)]),this[_0x37d414(0xbf)](_0x375b47,this[_0x37d414(0x104)][_0x37d414(0xb5)]),this[_0x37d414(0x104)][_0x37d414(0xeb)]();}[_0x2a36b6(0xc0)](_0x43c57d,_0xc22695){const _0x18d41a=_0x2a36b6;let _0x5e79cf=this[_0x18d41a(0xf7)][_0x18d41a(0x130)](_0x3c9758=>_0x3c9758['id']===_0x43c57d);_0x5e79cf||(_0x5e79cf=this[_0x18d41a(0x104)][_0x18d41a(0xb5)][_0x18d41a(0x130)](_0x17721d=>_0x17721d['id']===_0x43c57d)),_0x5e79cf&&(_0x5e79cf[_0x18d41a(0xdf)]=_0xc22695);}[_0x2a36b6(0x13e)](_0x5d55d8){const _0x1d0b0c=_0x2a36b6;this[_0x1d0b0c(0xb4)][_0x1d0b0c(0x117)]();for(const _0x1e4956 of _0x5d55d8){const _0x1f0eaa=this[_0x1d0b0c(0x121)](_0x1e4956,_0x1d0b0c(0xd8),!0x1,!0x1);this[_0x1d0b0c(0xd7)](_0x1f0eaa,this[_0x1d0b0c(0xb4)]);}}[_0x2a36b6(0x12c)](){const _0x1e5a7e=_0x2a36b6;this[_0x1e5a7e(0xf7)][_0x1e5a7e(0x117)](),this[_0x1e5a7e(0x104)][_0x1e5a7e(0x117)]();}[_0x2a36b6(0x138)](){const _0x1a2b34=_0x2a36b6;this[_0x1a2b34(0xb4)][_0x1a2b34(0x117)]();}[_0x2a36b6(0xdb)](_0x24de9a,_0x69df81,_0x33ca4a){const _0x4fe836=_0x2a36b6;this[_0x4fe836(0x123)][_0x4fe836(0xdb)](_0x24de9a,_0x69df81,_0x33ca4a);}[_0x2a36b6(0x11a)](){const _0x4f43bf=_0x2a36b6;this[_0x4f43bf(0x10d)](!0x1);}[_0x2a36b6(0x101)](){const _0x1d207c=_0x2a36b6;this[_0x1d207c(0x10d)](!0x0);}[_0x2a36b6(0x124)](){const _0x3c0ed3=_0x2a36b6;this[_0x3c0ed3(0x140)][_0x3c0ed3(0xd0)](),this[_0x3c0ed3(0x118)][_0x3c0ed3(0xdd)]=!0x1,this[_0x3c0ed3(0xde)]&&this[_0x3c0ed3(0xde)][_0x3c0ed3(0x117)]();}[_0x2a36b6(0x10b)](){const _0x17b028=_0x2a36b6;this[_0x17b028(0x140)][_0x17b028(0x132)](),this[_0x17b028(0x118)][_0x17b028(0xdd)]=!0x0;}[_0x2a36b6(0xf4)](_0x5066a8){const _0x3a4f68=_0x2a36b6;this[_0x3a4f68(0x123)][_0x3a4f68(0x13b)](_0x5066a8),this[_0x3a4f68(0x118)][_0x3a4f68(0xdd)]=!0x0;}[_0x2a36b6(0xb6)](_0x12d39f,_0x31912b,_0x170caf,_0x314ea3){const _0x5c7612=_0x2a36b6;this[_0x5c7612(0x123)][_0x5c7612(0xb6)](_0x12d39f,_0x170caf,_0x314ea3);}[_0x2a36b6(0xd9)](_0x1ea139){const _0xa3ee28=_0x2a36b6;this[_0xa3ee28(0x123)][_0xa3ee28(0xd9)](_0x1ea139),this[_0xa3ee28(0x118)][_0xa3ee28(0xdd)]=!0x1;}[_0x2a36b6(0xe9)](_0x2b78d5){const _0x5129e9=_0x2a36b6;this[_0x5129e9(0xd1)](this[_0x5129e9(0x10f)],this[_0x5129e9(0x12b)],_0x2b78d5),this[_0x5129e9(0xcb)](_0x2b78d5);}[_0x2a36b6(0xcb)](_0x1f60c9){const _0x126a4d=_0x2a36b6,_0x3c4228=!_0x1f60c9[_0x126a4d(0xe1)][_0x126a4d(0x108)]&&_0x1f60c9[_0x126a4d(0xe1)][_0x126a4d(0x11c)],_0x481d2e=_0x1f60c9[_0x126a4d(0xfc)][_0x126a4d(0x11c)],_0x74b6cc=_0x1f60c9[_0x126a4d(0xc5)][_0x126a4d(0x11c)];this[_0x126a4d(0x118)][_0x126a4d(0xfd)]=_0x3c4228||_0x481d2e||_0x74b6cc;}[_0x2a36b6(0xee)](){const _0x2c3ded=_0x2a36b6;this[_0x2c3ded(0x127)]({'tag':_0x2c3ded(0xcc),'attributes':{'class':[To,_0x2c3ded(0x126)]},'children':[{'tag':_0x2c3ded(0xcc),'attributes':{'class':Ao},'children':this[_0x2c3ded(0xf7)]}]});}[_0x2a36b6(0x12d)](){const _0x5f1a48=_0x2a36b6;this[_0x5f1a48(0x118)]['on'](_0x5f1a48(0x12f),()=>{const _0x2a3e51=_0x5f1a48;this[_0x2a3e51(0xfe)]();});}[_0x2a36b6(0x114)](_0x4f81f4){const _0x2e824c=_0x2a36b6,_0x390bf6=new _0x258c9c(_0x4f81f4);return _0x390bf6[_0x2e824c(0xc7)]({'label':_0x5e3b2e(_0x4f81f4,_0x2e824c(0xce)),'class':fo+'\x20'+Eo,'icon':_0x1849f7,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x390bf6;}[_0x2a36b6(0xd2)](_0x415df){const _0x5abef1=_0x2a36b6;return this[_0x5abef1(0x12e)](_0x415df,ko);}[_0x2a36b6(0xbc)](_0x4c49c0){const _0x4ae9c3=_0x2a36b6,_0x16352d=this[_0x4ae9c3(0x12e)](_0x4c49c0,vo);return this[_0x4ae9c3(0x103)](_0x16352d,_0x4c49c0),_0x16352d;}[_0x2a36b6(0x100)](_0xf93236,_0xed1125){const _0x5b929e=_0x2a36b6;return new _0x28cd2e(_0xf93236,_0xed1125,{'onBackToContext':()=>{const _0x716317=_0x527a;this[_0x716317(0x101)](),this[_0x716317(0x10f)][_0x716317(0x13a)]({'target':this[_0x716317(0x118)][_0x716317(0xf9)],'limiter':this[_0x716317(0x134)](),'positions':Lo});},'onResourceSelected':(_0x1d9499,_0x566e7)=>{const _0x2a8c5b=_0x527a;this[_0x2a8c5b(0x105)](_0x2a8c5b(0x139),{'source':_0x1d9499,'resource':_0x566e7});},'onLoadSourceResources':_0x413219=>{const _0x2ee8fd=_0x527a;this[_0x2ee8fd(0x105)](_0x2ee8fd(0xd3),_0x413219);},'onBalloonClosed':()=>{const _0x543b38=_0x527a;this[_0x543b38(0x118)][_0x543b38(0xdd)]=!0x1;},'getLimiterElement':()=>this[_0x5b929e(0x134)](),'getTargetElement':()=>this[_0x5b929e(0x118)][_0x5b929e(0xf9)]});}[_0x2a36b6(0x134)](){const _0xdbc66b=_0x2a36b6;return this[_0xdbc66b(0xf9)]?.[_0xdbc66b(0x115)]('.'+Uo)||document[_0xdbc66b(0x10e)];}[_0x2a36b6(0x12e)](_0x1d6387,_0x45805f){const _0x44c7cf=_0x2a36b6,_0x31b751=new _0x363dc8(_0x1d6387);return _0x31b751[_0x44c7cf(0x113)]({'attributes':{'class':_0x45805f}}),this[_0x44c7cf(0xea)][_0x44c7cf(0x11b)](_0x31b751),_0x31b751;}[_0x2a36b6(0xd1)](_0x39d4b0,_0x3afe1b,_0x215f7f){const _0x57f292=_0x2a36b6;if(_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x117)](),!_0x215f7f[_0x57f292(0xe1)][_0x57f292(0x108)]&&_0x215f7f[_0x57f292(0xe1)][_0x57f292(0x11c)]){const _0x4d6d22=this[_0x57f292(0xe8)](_0x3afe1b,{'label':_0x5e3b2e(_0x3afe1b,_0x57f292(0x106)),'icon':_0x512a46});_0x4d6d22['on'](_0x57f292(0x12f),()=>{const _0x3453da=_0x57f292;this[_0x3453da(0x105)](_0x3453da(0xf1)),this[_0x3453da(0x11a)]();}),_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x11b)](_0x4d6d22);}if(_0x215f7f[_0x57f292(0xfc)][_0x57f292(0x11c)]){const _0x623724=this[_0x57f292(0xe8)](_0x3afe1b,{'label':_0x5e3b2e(_0x3afe1b,_0x57f292(0x116)),'icon':_0x213f71});_0x623724['on'](_0x57f292(0x12f),()=>{const _0x57d4af=_0x57f292;this[_0x57d4af(0x11a)](),this[_0x57d4af(0x10b)](),this[_0x57d4af(0x140)][_0x57d4af(0x13a)]({'target':this[_0x57d4af(0x118)][_0x57d4af(0xf9)],'limiter':this[_0x57d4af(0x134)](),'positions':Lo}),this[_0x57d4af(0xde)][_0x57d4af(0xff)]();}),_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x11b)](_0x623724);}if(_0x215f7f[_0x57f292(0xc5)][_0x57f292(0x11c)]){const _0x4df333=new _0x5c2dac(_0x3afe1b);_0x4df333[_0x57f292(0xc7)]({'label':_0x5e3b2e(_0x3afe1b,_0x57f292(0xbe)),'icon':_0x3cd925,'withText':!0x0,'tooltip':!0x0,'class':go,'allowMultipleFiles':!0x0}),_0x4df333['on'](_0x57f292(0xd5),(_0x1887be,_0x2e32ed)=>{const _0xb3b139=_0x57f292;this[_0xb3b139(0x105)](_0xb3b139(0xcf),_0x2e32ed),this[_0xb3b139(0x11a)]();}),_0x4df333[_0x57f292(0x125)]=!0x0,_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x11b)](_0x4df333);}for(const _0x5b0eef of _0x215f7f[_0x57f292(0xe2)]){const _0x1c0b8d=this[_0x57f292(0xe8)](_0x3afe1b,{'label':_0x5b0eef[_0x57f292(0xe6)],'icon':_0x5b0eef[_0x57f292(0x110)]||_0x5bee98,'type':_0x57f292(0xe4)});_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x11b)](_0x1c0b8d),_0x1c0b8d['on'](_0x57f292(0x12f),()=>{const _0x506177=_0x57f292;this[_0x506177(0x11a)](),this[_0x506177(0xf4)](_0x5b0eef);});}}[_0x2a36b6(0x103)](_0x21d173,_0x226c4c){const _0x300119=_0x2a36b6;this[_0x300119(0xde)]=new _0x396dfb(_0x226c4c),this[_0x300119(0xde)]['on'](_0x300119(0x13c),(_0x214e79,_0x1626b1)=>{const _0x1f2da1=_0x300119;this[_0x1f2da1(0xd6)](_0x1626b1);}),this[_0x300119(0xde)]['on'](_0x300119(0xc2),()=>{const _0x486939=_0x300119;this[_0x486939(0x124)](),this[_0x486939(0x101)](),this[_0x486939(0x10f)][_0x486939(0x13a)]({'target':this[_0x486939(0x118)][_0x486939(0xf9)],'limiter':this[_0x486939(0x134)](),'positions':Lo});}),this[_0x300119(0xde)]['on'](_0x300119(0xbd),()=>{const _0x466edd=_0x300119;this[_0x466edd(0x140)][_0x466edd(0xfb)]&&this[_0x466edd(0x140)][_0x466edd(0x13a)]({'target':this[_0x466edd(0x118)][_0x466edd(0xf9)],'limiter':this[_0x466edd(0x134)](),'positions':Lo});}),_0x21d173[_0x300119(0x11d)][_0x300119(0x11b)](this[_0x300119(0xde)]);}[_0x2a36b6(0xe8)](_0x58675e,_0x4621c8){const _0x116294=_0x2a36b6,_0x406772=_0x116294(0xe4)===_0x4621c8[_0x116294(0x133)]?new SourcesBalloonButtonView(_0x58675e):new _0x258c9c(_0x58675e);return _0x406772[_0x116294(0xc7)]({'label':_0x4621c8[_0x116294(0xe6)],'icon':_0x4621c8[_0x116294(0x110)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':go}),_0x406772;}[_0x2a36b6(0xc9)](){const _0xfeedf2=_0x2a36b6;this[_0xfeedf2(0xba)](),this[_0xfeedf2(0x122)]();}[_0x2a36b6(0x122)](){const _0x12fd19=_0x2a36b6;_0x7d2fed({'emitter':this[_0x12fd19(0x140)],'contextElements':[this[_0x12fd19(0x140)][_0x12fd19(0xf9)]],'callback':()=>{const _0x4e96b6=_0x12fd19;this[_0x4e96b6(0x124)]();},'activator':()=>this[_0x12fd19(0x140)][_0x12fd19(0xfb)]});}[_0x2a36b6(0x10d)](_0x4a62d9){const _0x137412=_0x2a36b6,_0x511162=this[_0x137412(0x102)];_0x511162[_0x137412(0xed)][_0x137412(0xdd)]=_0x4a62d9,_0x4a62d9?_0x511162[_0x137412(0xc6)][_0x137412(0x132)]():_0x511162[_0x137412(0xc6)][_0x137412(0xd0)]();}[_0x2a36b6(0xba)](){const _0x8aae4=_0x2a36b6,{balloonView:_0x166457,buttonView:_0x3c6b35,hideMethod:_0x58b40e}=this[_0x8aae4(0x102)];_0x7d2fed({'emitter':_0x166457,'contextElements':[_0x166457[_0x8aae4(0xf9)],_0x3c6b35[_0x8aae4(0xf9)]],'callback':()=>{_0x58b40e();},'activator':()=>_0x3c6b35[_0x8aae4(0xdd)]&&!this[_0x8aae4(0x140)][_0x8aae4(0xfb)]&&!this[_0x8aae4(0x123)][_0x8aae4(0x128)]()});}[_0x2a36b6(0x121)](_0x588f50,_0x126c76,_0x40002b=!0x1,_0x3f7f98=!0x1){const _0x43b04d=_0x2a36b6,_0x1a6dc5=_0x43b04d(0xd8)===_0x126c76||!0x0===_0x588f50[_0x43b04d(0xcd)],_0x3ef555=new _0x5d6946(this[_0x43b04d(0x12b)],_0x588f50,_0x1a6dc5,_0x40002b,_0x3f7f98);return _0x1a6dc5||_0x3ef555['on'](_0x43b04d(0xc3),()=>{const _0x35aa79=_0x43b04d;this[_0x35aa79(0x105)](_0x35aa79(0x135),_0x3ef555['id']);}),_0x3ef555;}[_0x2a36b6(0xd7)](_0x38256a,_0xaf9bc5){const _0x238cf7=_0x2a36b6;_0xaf9bc5[_0x238cf7(0x11b)](_0x38256a,0x0);}[_0x2a36b6(0xbf)](_0x18d693,_0xd97836){const _0x2325a2=_0x2a36b6,_0x291aca=_0xd97836[_0x2325a2(0x130)](_0x23af7f=>_0x23af7f['id']===_0x18d693);_0x291aca&&_0xd97836[_0x2325a2(0xdc)](_0x291aca);}[_0x2a36b6(0xfe)](){const _0x50f5aa=_0x2a36b6;this[_0x50f5aa(0x118)][_0x50f5aa(0xdd)]?this[_0x50f5aa(0x11a)]():(this[_0x50f5aa(0x101)](),this[_0x50f5aa(0x10f)][_0x50f5aa(0x13a)]({'target':this[_0x50f5aa(0x118)][_0x50f5aa(0xf9)],'limiter':this[_0x50f5aa(0x134)](),'positions':Lo}));}[_0x2a36b6(0xd6)](_0x350c3c){const _0x532355=_0x2a36b6;this[_0x532355(0xde)][_0x532355(0x117)](),this[_0x532355(0x124)](),this[_0x532355(0x105)](_0x532355(0x10c),_0x350c3c);}}export class SourcesBalloonButtonView extends _0x258c9c{[_0x2a36b6(0xc8)];constructor(_0x533288){const _0x1c3ef4=_0x2a36b6;super(_0x533288),this[_0x1c3ef4(0xc7)]({'withText':!0x0,'role':_0x1c3ef4(0xf3)}),this[_0x1c3ef4(0xc8)]=this[_0x1c3ef4(0x10a)](),this[_0x1c3ef4(0x113)]({'attributes':{'class':[Vo]}});}[_0x2a36b6(0x136)](){const _0x6c7198=_0x2a36b6;super[_0x6c7198(0x136)](),this[_0x6c7198(0xc4)][_0x6c7198(0x11b)](this[_0x6c7198(0xc8)]);}[_0x2a36b6(0x10a)](){const _0x42b0c4=_0x2a36b6,_0x40fa50=new _0x126796();return _0x40fa50[_0x42b0c4(0x11d)]=_0x266538,_0x40fa50[_0x42b0c4(0x113)]({'attributes':{'class':Vo+_0x42b0c4(0xc1)}}),_0x40fa50;}}
|
|
23
|
+
const _0x318cd3=_0x3ba0;(function(_0x175e41,_0x1d6c63){const _0x495b6e=_0x3ba0,_0xcaf66f=_0x175e41();while(!![]){try{const _0x6a0711=parseInt(_0x495b6e(0x10a))/0x1+-parseInt(_0x495b6e(0x103))/0x2*(parseInt(_0x495b6e(0x14c))/0x3)+parseInt(_0x495b6e(0xc1))/0x4*(-parseInt(_0x495b6e(0x126))/0x5)+parseInt(_0x495b6e(0xe8))/0x6+-parseInt(_0x495b6e(0xcc))/0x7+parseInt(_0x495b6e(0x148))/0x8*(parseInt(_0x495b6e(0xbf))/0x9)+-parseInt(_0x495b6e(0x13a))/0xa*(-parseInt(_0x495b6e(0x13b))/0xb);if(_0x6a0711===_0x1d6c63)break;else _0xcaf66f['push'](_0xcaf66f['shift']());}catch(_0x26fb88){_0xcaf66f['push'](_0xcaf66f['shift']());}}}(_0x134a,0xac987));import{BalloonPanelView as _0x4681c8,ButtonView as _0x16ecf4,clickOutsideHandler as _0x288ed2,FileDialogButtonView as _0x2d9777,IconView as _0x38c52d,View as _0x2a63f8}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x44c458,IconDocument as _0x9c9a6a,IconDocumentOutline as _0x55fe32,IconDropdownArrow as _0x5a9a93,IconLink as _0x5b7183,IconPaperClip as _0x52accd}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x1e2d4f}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0xa963b8}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x1d50a2}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x46ba45}from'../../../aicore/utils/common-translations.js';function _0x134a(){const _0x1b5f8c=['source','_createBalloonButton','847470BBCUsA','isLoading','_setAddContextButtonEnabled','addContextButtonView','isReadOnly','northArrowSouth','_addContextToCollection','overflowChips','_createAddContextButtonView','locale','hide','children','populateSourceResourceBalloon','_setupTemplate','arrowView','addResourceToContext','southArrowNorthEast','body','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat','set','enabled','label','bind','done','_handleUrlSubmit','tooltip','12756ovuvcf','ck-ai-chat-controls_context_show-more-button','southArrowNorthWest','_currentContextsChips','isHidden','add','ck-ai-chat-controls-button','628983DCWzDa','sources','bodyCollection','_addContextBalloonConfig','showSourceResourcesBalloon','removeContextItem','balloonView','_createBaseBalloonPanel','ck-ai-chat-context-controls__balloon-button-source','reorganizeChips','element','ck-ai-chat-context-controls','clearCurrentContextItems','ck-ai-chat-context-chips-wrapper-balloon','div','submitUrl','content','updateResourceState','menuitem','type','cancel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','hideAddContextBalloonPanel','_setBalloonPanelContent','_showSourceResourcesBalloon','ck-ai-chat-context-controls__pending-contexts','setContextItemLoading','createCollection','1435HbCJrr','removeContextItemChip','extendTemplate','addFileToContext','_createArrowView','showUrlBalloonPanel','_addContextBalloonPanelView','_toggleAddContextBalloon','defaultPositions','northArrowSouthEast','conversation','_bindEventHandlers','render','clear','_urlBalloonPanelView','isOn','_overflowManager','southArrowNorth','_setupUrlBalloonClickOutsideHandler','fire','7010UccGup','29095ZvTbkr','ck-reset_all-excluded','_handleAddContextButtonClick','AI_CHAT_CONTEXT_ADD_CONTEXT','AI_CHAT_CONTEXT_URL_LABEL','setAddContextOptions','focus','remove','closeSourceResourceBalloon','_createAddContextBalloonPanelView','_setupAddContextBalloonClickOutsideHandler','_urlInputView','_createContextButton','26608qNMtxC','hideUrlBalloonPanel','files','ck-ai-chat-context-controls__url-balloon-panel','156hOsmQu','isEnabled','setTemplate','351qJMbkP','setConversationContext','10716oOvfCB','_removeContextFromCollection','ck-ai-chat-context-controls__show-more-balloon-panel','isAnyResourceBalloonVisible','addContextItem','buttonView','addDocumentToContext','current','show','document','urls','6626249RvpZCl','_createResourcesBalloonView','_conversationContextsChips','destroy','closest','icon','__arrow','_addUrlContent','ck-ai-chat-context-controls__add-context-button','showAddContextBalloonPanel','setContainerElement','_getLimiterElement','loadSourceResources','pin','ck-ai-chat-context-controls__add-context-balloon-panel','refreshBalloon','ck-ai-chat-context-controls__balloon-button','_setupAllBalloonClickOutsideHandlers','addUrlToContext','northArrowSouthWest','execute','_resourcesBalloonView','clearConversationContextItems','isVisible','find','_createUrlBalloonPanelView'];_0x134a=function(){return _0x1b5f8c;};return _0x134a();}import{AIChatResourcesBalloonView as _0x1730df}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x318cd3(0xc7),_0x318cd3(0x129),_0x318cd3(0xde),_0x318cd3(0xf7),_0x318cd3(0x10f),_0x318cd3(0xd8)];const Ao=_0x318cd3(0x115),ko=_0x318cd3(0x123),Eo=_0x318cd3(0xda),vo=_0x318cd3(0xd4),go=_0x318cd3(0x14b),Vo=_0x318cd3(0xdc),fo=_0x318cd3(0x112),Io=_0x318cd3(0x109),Po=_0x318cd3(0x117),Ro=_0x318cd3(0x104),Uo=_0x318cd3(0xc3),Lo=_0x318cd3(0xfb),No=[_0x4681c8[_0x318cd3(0x12e)][_0x318cd3(0xdf)],_0x4681c8[_0x318cd3(0x12e)][_0x318cd3(0xed)],_0x4681c8[_0x318cd3(0x12e)][_0x318cd3(0x12f)],_0x4681c8[_0x318cd3(0x12e)][_0x318cd3(0x105)],_0x4681c8[_0x318cd3(0x12e)][_0x318cd3(0x137)],_0x4681c8[_0x318cd3(0x12e)][_0x318cd3(0xf8)]];export class AIChatContextPanelView extends _0x2a63f8{[_0x318cd3(0xeb)];[_0x318cd3(0x106)]=this[_0x318cd3(0x125)]();[_0x318cd3(0xce)]=this[_0x318cd3(0x125)]();[_0x318cd3(0x136)];[_0x318cd3(0x12c)];[_0x318cd3(0x134)];[_0x318cd3(0x146)];[_0x318cd3(0xe1)];[_0x318cd3(0x10d)];[_0x318cd3(0x10c)];constructor(_0x1818ab,_0x33ed34){const _0x41d9c9=_0x318cd3;super(_0x1818ab),this[_0x41d9c9(0x10c)]=_0x33ed34,this[_0x41d9c9(0x106)]=this[_0x41d9c9(0x125)](),this[_0x41d9c9(0xce)]=this[_0x41d9c9(0x125)](),this[_0x41d9c9(0xeb)]=this[_0x41d9c9(0xf0)](_0x1818ab),this[_0x41d9c9(0x12c)]=this[_0x41d9c9(0x144)](_0x1818ab),this[_0x41d9c9(0x134)]=this[_0x41d9c9(0xe5)](_0x1818ab),this[_0x41d9c9(0xe1)]=this[_0x41d9c9(0xcd)](_0x1818ab,_0x33ed34);const _0x310557={'cssClasses':{'showMoreButton':Ro,'showMoreBalloon':Uo,'overflowContainer':Po,'controlsButton':Io}};this[_0x41d9c9(0x136)]=new _0x1d50a2(_0x1818ab,this[_0x41d9c9(0x106)],_0x310557,this[_0x41d9c9(0x10c)],this),this[_0x41d9c9(0x10d)]={'buttonView':this[_0x41d9c9(0xeb)],'balloonView':this[_0x41d9c9(0x12c)],'hideMethod':this[_0x41d9c9(0x120)][_0x41d9c9(0xff)](this),'showMethod':this[_0x41d9c9(0xd5)][_0x41d9c9(0xff)](this)},this[_0x41d9c9(0xf5)](),this[_0x41d9c9(0x131)]();}[_0x318cd3(0x132)](){const _0x1dee4c=_0x318cd3;super[_0x1dee4c(0x132)](),this[_0x1dee4c(0xdd)](),this[_0x1dee4c(0x136)][_0x1dee4c(0xd6)](this[_0x1dee4c(0x114)]),this[_0x1dee4c(0x136)][_0x1dee4c(0x113)]();}[_0x318cd3(0xcf)](){const _0x84309=_0x318cd3;super[_0x84309(0xcf)](),this[_0x84309(0x136)][_0x84309(0xcf)](),this[_0x84309(0xe1)][_0x84309(0xcf)]();}[_0x318cd3(0xc5)](_0x5c58b2,_0x1eaf2a){const _0x560874=_0x318cd3,_0x136067=this[_0x560874(0x147)](_0x5c58b2,_0x560874(0xc8),!0x0,_0x1eaf2a);this[_0x560874(0xee)](_0x136067,this[_0x560874(0x106)]),this[_0x560874(0x136)][_0x560874(0x113)]();}[_0x318cd3(0x10f)](_0x1864f7){const _0x55e449=_0x318cd3;this[_0x55e449(0xc2)](_0x1864f7,this[_0x55e449(0x106)]),this[_0x55e449(0xc2)](_0x1864f7,this[_0x55e449(0x136)][_0x55e449(0xef)]),this[_0x55e449(0x136)][_0x55e449(0x113)]();}[_0x318cd3(0x124)](_0x41da88,_0x2ea138){const _0x3c834f=_0x318cd3;let _0x18e78e=this[_0x3c834f(0x106)][_0x3c834f(0xe4)](_0x1ceccc=>_0x1ceccc['id']===_0x41da88);_0x18e78e||(_0x18e78e=this[_0x3c834f(0x136)][_0x3c834f(0xef)][_0x3c834f(0xe4)](_0x2a8181=>_0x2a8181['id']===_0x41da88)),_0x18e78e&&(_0x18e78e[_0x3c834f(0xe9)]=_0x2ea138);}[_0x318cd3(0xc0)](_0x46e49c){const _0x299bd4=_0x318cd3;this[_0x299bd4(0xce)][_0x299bd4(0x133)]();for(const _0x2622bf of _0x46e49c){const _0x3dc884=this[_0x299bd4(0x147)](_0x2622bf,_0x299bd4(0x130),!0x1,!0x1);this[_0x299bd4(0xee)](_0x3dc884,this[_0x299bd4(0xce)]);}}[_0x318cd3(0x116)](){const _0x23ce3a=_0x318cd3;this[_0x23ce3a(0x106)][_0x23ce3a(0x133)](),this[_0x23ce3a(0x136)][_0x23ce3a(0x133)]();}[_0x318cd3(0xe2)](){const _0x461bd3=_0x318cd3;this[_0x461bd3(0xce)][_0x461bd3(0x133)]();}[_0x318cd3(0x11b)](_0x497a78,_0x2df900,_0x46bae1){const _0x3ae052=_0x318cd3;this[_0x3ae052(0xe1)][_0x3ae052(0x11b)](_0x497a78,_0x2df900,_0x46bae1);}[_0x318cd3(0x120)](){const _0x1624c7=_0x318cd3;this[_0x1624c7(0x12d)](!0x1);}[_0x318cd3(0xd5)](){const _0x5ea652=_0x318cd3;this[_0x5ea652(0x12d)](!0x0);}[_0x318cd3(0x149)](){const _0x1d5c8f=_0x318cd3;this[_0x1d5c8f(0x134)][_0x1d5c8f(0xf2)](),this[_0x1d5c8f(0xeb)][_0x1d5c8f(0x135)]=!0x1,this[_0x1d5c8f(0x146)]&&this[_0x1d5c8f(0x146)][_0x1d5c8f(0x133)]();}[_0x318cd3(0x12b)](){const _0xcf9cb3=_0x318cd3;this[_0xcf9cb3(0x134)][_0xcf9cb3(0xc9)](),this[_0xcf9cb3(0xeb)][_0xcf9cb3(0x135)]=!0x0;}[_0x318cd3(0x122)](_0x194ec4){const _0x13cd30=_0x318cd3;this[_0x13cd30(0xe1)][_0x13cd30(0x10e)](_0x194ec4),this[_0x13cd30(0xeb)][_0x13cd30(0x135)]=!0x0;}[_0x318cd3(0xf4)](_0x1d26ce,_0xd729d3,_0x328b92,_0x44f529){const _0x163bb7=_0x318cd3;this[_0x163bb7(0xe1)][_0x163bb7(0xf4)](_0x1d26ce,_0x328b92,_0x44f529);}[_0x318cd3(0x143)](_0x5dc3cd){const _0x5334e2=_0x318cd3;this[_0x5334e2(0xe1)][_0x5334e2(0x143)](_0x5dc3cd),this[_0x5334e2(0xeb)][_0x5334e2(0x135)]=!0x1;}[_0x318cd3(0x140)](_0x56bb40){const _0xc08ca5=_0x318cd3;this[_0xc08ca5(0x121)](this[_0xc08ca5(0x12c)],this[_0xc08ca5(0xf1)],_0x56bb40),this[_0xc08ca5(0xea)](_0x56bb40);}[_0x318cd3(0xea)](_0xe431e4){const _0x42afcc=_0x318cd3,_0x54e421=!_0xe431e4[_0x42afcc(0xca)][_0x42afcc(0x107)]&&_0xe431e4[_0x42afcc(0xca)][_0x42afcc(0xfd)],_0x431e6f=_0xe431e4[_0x42afcc(0xcb)][_0x42afcc(0xfd)],_0x41aff7=_0xe431e4[_0x42afcc(0x14a)][_0x42afcc(0xfd)];this[_0x42afcc(0xeb)][_0x42afcc(0xbd)]=_0x54e421||_0x431e6f||_0x41aff7;}[_0x318cd3(0xf5)](){const _0x20d77b=_0x318cd3;this[_0x20d77b(0xbe)]({'tag':_0x20d77b(0x118),'attributes':{'class':[Ao,_0x20d77b(0x13c)]},'children':[{'tag':_0x20d77b(0x118),'attributes':{'class':ko},'children':this[_0x20d77b(0x106)]}]});}[_0x318cd3(0x131)](){const _0x47dd13=_0x318cd3;this[_0x47dd13(0xeb)]['on'](_0x47dd13(0xe0),()=>{const _0x5a9da7=_0x47dd13;this[_0x5a9da7(0x13d)]();});}[_0x318cd3(0xf0)](_0x284633){const _0x3efb8=_0x318cd3,_0x3244d0=new _0x16ecf4(_0x284633);return _0x3244d0[_0x3efb8(0xfc)]({'label':_0x46ba45(_0x284633,_0x3efb8(0x13e)),'class':Io+'\x20'+vo,'icon':_0x52accd,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x3244d0;}[_0x318cd3(0x144)](_0x234436){const _0x15a612=_0x318cd3;return this[_0x15a612(0x111)](_0x234436,Eo);}[_0x318cd3(0xe5)](_0xffdbda){const _0x2e87d8=_0x318cd3,_0x1d98b4=this[_0x2e87d8(0x111)](_0xffdbda,go);return this[_0x2e87d8(0xd3)](_0x1d98b4,_0xffdbda),_0x1d98b4;}[_0x318cd3(0xcd)](_0x117d9c,_0x3153fa){const _0xe913e=_0x318cd3;return new _0x1730df(_0x117d9c,_0x3153fa,{'onBackToContext':()=>{const _0x546cd5=_0x3ba0;this[_0x546cd5(0xd5)](),this[_0x546cd5(0x12c)][_0x546cd5(0xd9)]({'target':this[_0x546cd5(0xeb)][_0x546cd5(0x114)],'limiter':this[_0x546cd5(0xd7)](),'positions':No});},'onResourceSelected':(_0x5f1c92,_0x46481f)=>{const _0x344b46=_0x3ba0;this[_0x344b46(0x139)](_0x344b46(0xf7),{'source':_0x5f1c92,'resource':_0x46481f});},'onLoadSourceResources':_0x31b0a1=>{const _0x5ec2f1=_0x3ba0;this[_0x5ec2f1(0x139)](_0x5ec2f1(0xd8),_0x31b0a1);},'onBalloonClosed':()=>{const _0xfeb007=_0x3ba0;this[_0xfeb007(0xeb)][_0xfeb007(0x135)]=!0x1;},'getLimiterElement':()=>this[_0xe913e(0xd7)](),'getTargetElement':()=>this[_0xe913e(0xeb)][_0xe913e(0x114)]});}[_0x318cd3(0xd7)](){const _0x2edf0f=_0x318cd3;return this[_0x2edf0f(0x114)]?.[_0x2edf0f(0xd0)]('.'+Lo)||document[_0x2edf0f(0xf9)];}[_0x318cd3(0x111)](_0x4b2297,_0x8f418a){const _0x468f68=_0x318cd3,_0x3eb99d=new _0x4681c8(_0x4b2297);return _0x3eb99d[_0x468f68(0x128)]({'attributes':{'class':_0x8f418a}}),this[_0x468f68(0x10c)][_0x468f68(0x108)](_0x3eb99d),_0x3eb99d;}[_0x318cd3(0x121)](_0x86c5d9,_0x5e2fdf,_0x59f234){const _0x201c13=_0x318cd3;if(_0x86c5d9[_0x201c13(0x11a)][_0x201c13(0x133)](),!_0x59f234[_0x201c13(0xca)][_0x201c13(0x107)]&&_0x59f234[_0x201c13(0xca)][_0x201c13(0xfd)]){const _0x518eb1=this[_0x201c13(0xe7)](_0x5e2fdf,{'label':_0x46ba45(_0x5e2fdf,_0x201c13(0x11f)),'icon':_0x9c9a6a});_0x518eb1['on'](_0x201c13(0xe0),()=>{const _0x45577b=_0x201c13;this[_0x45577b(0x139)](_0x45577b(0xc7)),this[_0x45577b(0x120)]();}),_0x86c5d9[_0x201c13(0x11a)][_0x201c13(0x108)](_0x518eb1);}if(_0x59f234[_0x201c13(0xcb)][_0x201c13(0xfd)]){const _0x25b2c4=this[_0x201c13(0xe7)](_0x5e2fdf,{'label':_0x46ba45(_0x5e2fdf,_0x201c13(0x13f)),'icon':_0x5b7183});_0x25b2c4['on'](_0x201c13(0xe0),()=>{const _0x4853de=_0x201c13;this[_0x4853de(0x120)](),this[_0x4853de(0x12b)](),this[_0x4853de(0x134)][_0x4853de(0xd9)]({'target':this[_0x4853de(0xeb)][_0x4853de(0x114)],'limiter':this[_0x4853de(0xd7)](),'positions':No}),this[_0x4853de(0x146)][_0x4853de(0x141)]();}),_0x86c5d9[_0x201c13(0x11a)][_0x201c13(0x108)](_0x25b2c4);}if(_0x59f234[_0x201c13(0x14a)][_0x201c13(0xfd)]){const _0x12d042=new _0x2d9777(_0x5e2fdf);_0x12d042[_0x201c13(0xfc)]({'label':_0x46ba45(_0x5e2fdf,_0x201c13(0xfa)),'icon':_0x44c458,'withText':!0x0,'tooltip':!0x0,'class':Vo,'allowMultipleFiles':!0x0}),_0x12d042['on'](_0x201c13(0x100),(_0x175953,_0xe876e7)=>{const _0x2cad99=_0x201c13;this[_0x2cad99(0x139)](_0x2cad99(0x129),_0xe876e7),this[_0x2cad99(0x120)]();}),_0x12d042[_0x201c13(0x102)]=!0x0,_0x86c5d9[_0x201c13(0x11a)][_0x201c13(0x108)](_0x12d042);}for(const _0x2c705d of _0x59f234[_0x201c13(0x10b)]){const _0x486eff=this[_0x201c13(0xe7)](_0x5e2fdf,{'label':_0x2c705d[_0x201c13(0xfe)],'icon':_0x2c705d[_0x201c13(0xd1)]||_0x55fe32,'type':_0x201c13(0xe6)});_0x86c5d9[_0x201c13(0x11a)][_0x201c13(0x108)](_0x486eff),_0x486eff['on'](_0x201c13(0xe0),()=>{const _0x6e61eb=_0x201c13;this[_0x6e61eb(0x120)](),this[_0x6e61eb(0x122)](_0x2c705d);});}}[_0x318cd3(0xd3)](_0x3921f1,_0x3a26d8){const _0x43e241=_0x318cd3;this[_0x43e241(0x146)]=new _0xa963b8(_0x3a26d8),this[_0x43e241(0x146)]['on'](_0x43e241(0x119),(_0xb2279d,_0x59d09e)=>{const _0x5cc87c=_0x43e241;this[_0x5cc87c(0x101)](_0x59d09e);}),this[_0x43e241(0x146)]['on'](_0x43e241(0x11e),()=>{const _0x4804b6=_0x43e241;this[_0x4804b6(0x149)](),this[_0x4804b6(0xd5)](),this[_0x4804b6(0x12c)][_0x4804b6(0xd9)]({'target':this[_0x4804b6(0xeb)][_0x4804b6(0x114)],'limiter':this[_0x4804b6(0xd7)](),'positions':No});}),this[_0x43e241(0x146)]['on'](_0x43e241(0xdb),()=>{const _0x3fdcf3=_0x43e241;this[_0x3fdcf3(0x134)][_0x3fdcf3(0xe3)]&&this[_0x3fdcf3(0x134)][_0x3fdcf3(0xd9)]({'target':this[_0x3fdcf3(0xeb)][_0x3fdcf3(0x114)],'limiter':this[_0x3fdcf3(0xd7)](),'positions':No});}),_0x3921f1[_0x43e241(0x11a)][_0x43e241(0x108)](this[_0x43e241(0x146)]);}[_0x318cd3(0xe7)](_0x482b99,_0x32ac57){const _0x5af0e3=_0x318cd3,_0x47965b=_0x5af0e3(0xe6)===_0x32ac57[_0x5af0e3(0x11d)]?new SourcesBalloonButtonView(_0x482b99):new _0x16ecf4(_0x482b99);return _0x47965b[_0x5af0e3(0xfc)]({'label':_0x32ac57[_0x5af0e3(0xfe)],'icon':_0x32ac57[_0x5af0e3(0xd1)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Vo}),_0x47965b;}[_0x318cd3(0xdd)](){const _0x17c179=_0x318cd3;this[_0x17c179(0x145)](),this[_0x17c179(0x138)]();}[_0x318cd3(0x138)](){const _0x153793=_0x318cd3;_0x288ed2({'emitter':this[_0x153793(0x134)],'contextElements':[this[_0x153793(0x134)][_0x153793(0x114)]],'callback':()=>{const _0x326ca2=_0x153793;this[_0x326ca2(0x149)]();},'activator':()=>this[_0x153793(0x134)][_0x153793(0xe3)]});}[_0x318cd3(0x12d)](_0x578b02){const _0x10839b=_0x318cd3,_0x171351=this[_0x10839b(0x10d)];_0x171351[_0x10839b(0xc6)][_0x10839b(0x135)]=_0x578b02,_0x578b02?_0x171351[_0x10839b(0x110)][_0x10839b(0xc9)]():_0x171351[_0x10839b(0x110)][_0x10839b(0xf2)]();}[_0x318cd3(0x145)](){const _0xa5d94f=_0x318cd3,{balloonView:_0x3ed57c,buttonView:_0x57d068,hideMethod:_0x3fd866}=this[_0xa5d94f(0x10d)];_0x288ed2({'emitter':_0x3ed57c,'contextElements':[_0x3ed57c[_0xa5d94f(0x114)],_0x57d068[_0xa5d94f(0x114)]],'callback':()=>{_0x3fd866();},'activator':()=>_0x57d068[_0xa5d94f(0x135)]&&!this[_0xa5d94f(0x134)][_0xa5d94f(0xe3)]&&!this[_0xa5d94f(0xe1)][_0xa5d94f(0xc4)]()});}[_0x318cd3(0x147)](_0xad7dcf,_0x23117e,_0x40900b=!0x1,_0x3d8c42=!0x1){const _0x2b102b=_0x318cd3,_0x39b004=_0x2b102b(0x130)===_0x23117e||!0x0===_0xad7dcf[_0x2b102b(0xec)],_0x58e9b1=new _0x1e2d4f(this[_0x2b102b(0xf1)],_0xad7dcf,_0x39b004,_0x40900b,_0x3d8c42);return _0x39b004||_0x58e9b1['on'](_0x2b102b(0x127),()=>{const _0x4ba857=_0x2b102b;this[_0x4ba857(0x139)](_0x4ba857(0x10f),_0x58e9b1['id']);}),_0x58e9b1;}[_0x318cd3(0xee)](_0x305326,_0x17c246){const _0x51a2b9=_0x318cd3;_0x17c246[_0x51a2b9(0x108)](_0x305326,0x0);}[_0x318cd3(0xc2)](_0x400783,_0x23cc96){const _0x4db41b=_0x318cd3,_0x285936=_0x23cc96[_0x4db41b(0xe4)](_0x52cbbe=>_0x52cbbe['id']===_0x400783);_0x285936&&_0x23cc96[_0x4db41b(0x142)](_0x285936);}[_0x318cd3(0x13d)](){const _0x44c16c=_0x318cd3;this[_0x44c16c(0xeb)][_0x44c16c(0x135)]?this[_0x44c16c(0x120)]():(this[_0x44c16c(0xd5)](),this[_0x44c16c(0x12c)][_0x44c16c(0xd9)]({'target':this[_0x44c16c(0xeb)][_0x44c16c(0x114)],'limiter':this[_0x44c16c(0xd7)](),'positions':No}));}[_0x318cd3(0x101)](_0x54b883){const _0x11a65c=_0x318cd3;this[_0x11a65c(0x146)][_0x11a65c(0x133)](),this[_0x11a65c(0x149)](),this[_0x11a65c(0x139)](_0x11a65c(0xde),_0x54b883);}}function _0x3ba0(_0x46fe73,_0x5070f4){const _0x134ad3=_0x134a();return _0x3ba0=function(_0x3ba051,_0x58a822){_0x3ba051=_0x3ba051-0xbd;let _0x4b5a27=_0x134ad3[_0x3ba051];return _0x4b5a27;},_0x3ba0(_0x46fe73,_0x5070f4);}export class SourcesBalloonButtonView extends _0x16ecf4{[_0x318cd3(0xf6)];constructor(_0x5d5949){const _0x410ec0=_0x318cd3;super(_0x5d5949),this[_0x410ec0(0xfc)]({'withText':!0x0,'role':_0x410ec0(0x11c)}),this[_0x410ec0(0xf6)]=this[_0x410ec0(0x12a)](),this[_0x410ec0(0x128)]({'attributes':{'class':[fo]}});}[_0x318cd3(0x132)](){const _0x56c9e1=_0x318cd3;super[_0x56c9e1(0x132)](),this[_0x56c9e1(0xf3)][_0x56c9e1(0x108)](this[_0x56c9e1(0xf6)]);}[_0x318cd3(0x12a)](){const _0x2bcaf6=_0x318cd3,_0x237e66=new _0x38c52d();return _0x237e66[_0x2bcaf6(0x11a)]=_0x5a9a93,_0x237e66[_0x2bcaf6(0x128)]({'attributes':{'class':fo+_0x2bcaf6(0xd2)}}),_0x237e66;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x461730=_0x10e7;(function(_0xbe87fb,_0x6f5f74){const _0x5e2cb6=_0x10e7,_0x6c89d8=_0xbe87fb();while(!![]){try{const _0x4f5e22=-parseInt(_0x5e2cb6(0x6d))/0x1*(parseInt(_0x5e2cb6(0x69))/0x2)+-parseInt(_0x5e2cb6(0x75))/0x3*(-parseInt(_0x5e2cb6(0x7f))/0x4)+-parseInt(_0x5e2cb6(0x65))/0x5+-parseInt(_0x5e2cb6(0x79))/0x6+-parseInt(_0x5e2cb6(0x7a))/0x7*(parseInt(_0x5e2cb6(0x81))/0x8)+-parseInt(_0x5e2cb6(0x7c))/0x9+parseInt(_0x5e2cb6(0x80))/0xa;if(_0x4f5e22===_0x6f5f74)break;else _0x6c89d8['push'](_0x6c89d8['shift']());}catch(_0x193b76){_0x6c89d8['push'](_0x6c89d8['shift']());}}}(_0x35b2,0xd28f4));import{ButtonView as _0x3858fa,View as _0x516b17}from'ckeditor5/src/ui.js';function _0x10e7(_0x5a148c,_0x57b037){const _0x35b216=_0x35b2();return _0x10e7=function(_0x10e713,_0x4ec6d5){_0x10e713=_0x10e713-0x65;let _0x5cc882=_0x35b216[_0x10e713];return _0x5cc882;},_0x10e7(_0x5a148c,_0x57b037);}import{IconStop as _0x37580a}from'ckeditor5/src/icons.js';function _0x35b2(){const _0x2dbb63=['_cancelButtonView','ck-ai-chat-controls-loader-icon-dot','_createCancelButtonView','401XEJUOB','ai-chat-controls-loader__cancel-button','div','_loaderView','ck-ai-chat-controls-loader-icon','fire','_createLoaderView','execute','3hMWxhb','AI_CHAT_STOP_GENERATING','set','locale','4082916tuZefd','7gTqxJn','ck-ai-chat-controls-loader-wrapper','9520317CLfces','setTemplate','abortPromptStream','2659496DJeSxm','56365310jJeoKV','9835352nTVHrl','4129660EAyMZo','AI_CHAT_IS_WRITING','ck-ai-chat-controls-loader','ck-reset_all','8206CFmKZF'];_0x35b2=function(){return _0x2dbb63;};return _0x35b2();}import{getTranslation as _0x4bc66d}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x516b17{[_0x461730(0x6a)];[_0x461730(0x70)];constructor(_0x33fb45){const _0x526f68=_0x461730;super(_0x33fb45),this[_0x526f68(0x6a)]=this[_0x526f68(0x6c)](),this[_0x526f68(0x70)]=this[_0x526f68(0x73)](),this[_0x526f68(0x7d)]({'tag':_0x526f68(0x6f),'attributes':{'class':['ck',_0x526f68(0x7b),_0x526f68(0x68)]},'children':[this[_0x526f68(0x70)],this[_0x526f68(0x6a)]]});}[_0x461730(0x6c)](){const _0x270fcc=_0x461730,_0x3f043a=new _0x3858fa(this[_0x270fcc(0x78)]);return _0x3f043a[_0x270fcc(0x77)]({'label':_0x4bc66d(this[_0x270fcc(0x78)],_0x270fcc(0x76)),'withText':!0x0,'class':_0x270fcc(0x6e),'icon':_0x37580a}),_0x3f043a['on'](_0x270fcc(0x74),()=>{const _0x1dc2f2=_0x270fcc;this[_0x1dc2f2(0x72)](_0x1dc2f2(0x7e));}),_0x3f043a;}[_0x461730(0x73)](){const _0x43380d=_0x461730,_0x22499a=new _0x516b17(this[_0x43380d(0x78)]);return _0x22499a[_0x43380d(0x7d)]({'tag':_0x43380d(0x6f),'attributes':{'class':[_0x43380d(0x67)]},'children':[{'tag':_0x43380d(0x6f),'attributes':{'class':[_0x43380d(0x71)]},'children':[{'tag':_0x43380d(0x6f),'attributes':{'class':[_0x43380d(0x6b)]}},{'tag':_0x43380d(0x6f),'attributes':{'class':[_0x43380d(0x6b)]}},{'tag':_0x43380d(0x6f),'attributes':{'class':[_0x43380d(0x6b)]}}]},{'text':_0x4bc66d(this[_0x43380d(0x78)],_0x43380d(0x66))}]}),_0x22499a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xe7273b=_0x3a46;(function(_0x919a3a,_0x76099b){const _0x10635f=_0x3a46,_0x3ff96d=_0x919a3a();while(!![]){try{const _0x3bea01=-parseInt(_0x10635f(0x14e))/0x1*(-parseInt(_0x10635f(0x155))/0x2)+-parseInt(_0x10635f(0x104))/0x3*(parseInt(_0x10635f(0x132))/0x4)+parseInt(_0x10635f(0x11a))/0x5+-parseInt(_0x10635f(0x110))/0x6*(parseInt(_0x10635f(0x14f))/0x7)+parseInt(_0x10635f(0x143))/0x8+parseInt(_0x10635f(0x144))/0x9*(parseInt(_0x10635f(0x112))/0xa)+-parseInt(_0x10635f(0x121))/0xb;if(_0x3bea01===_0x76099b)break;else _0x3ff96d['push'](_0x3ff96d['shift']());}catch(_0x5c00d3){_0x3ff96d['push'](_0x3ff96d['shift']());}}}(_0x2a1a,0xa41b9));import{Collection as _0x537450}from'ckeditor5/src/utils.js';function _0x2a1a(){const _0x337aa5=['bindTemplate','enableModelSelector','ck-ai-chat-controls__model-selection__item-name','clear','execute','Commands\x20are\x20not\x20implemented\x20yet.','set','listenTo','ck-ai-chat-controls__model-selection','ck-button__label','ck-ai-chat-controls__model-name','3bJPUfh','webSearch','name','locale','style','description','capabilities','source','toggleReasoning','log','ck-ai-chat-controls__model-selection__item-description','button','237390iebhxd','AI_CHAT_SEARCH_WEB','10GOxRAg','toLowerCase','_commandsButton','model','AI_CHAT_CAPABILITIES_YES','isVisible','ck-ai-chat__prompt-capabilities','tooltip','4853010oJaYCm','AI_CHAT_ENABLE_REASONING','ck-ai-chat-controls-button--commands','_createReasoningButton','activeModelName','activeModelId','withText','2146782jYLwoT','ck-hidden','content','_modelSelectionDropdown','enabled','AI_CHAT_CAPABILITIES_NO','setModelList','AI_CHAT_REASONING','setModel','buttonView','_modelNameView','ck-ai-chat-controls-button','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','bind','_reasoningButton','setReasoning','createCollection','4891868MABFKZ','span','text','webSearchActive','reasoning','isOn','isEnabled','selectModel','reasoningActive','agent','AI_CHAT_DISABLE_WEB_SEARCH','menuitemradio','label','toggleWebSearch','modelSelectorEnabled','_webSearchButton','startsWith','874336briOYL','10126683zIwHtj','_getCapabilityParts','_createWebSearchButton','fire','add','setTemplate','extendTemplate','AI_CHAT_COMMANDS','modelSelectorVisible','addMany','2739yMtsbA','140MoyEaK','_createCommandsButton','div','setWebSearch','ck-ai-chat-controls__model-selection__item-capabilities','disableModelSelector','494gouCEf','AI_CHAT_ENABLE_WEB_SEARCH','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_createModelSelectionDropdown','AI_CHAT_DISABLE_REASONING','length','_modelSelectionDropdownItems','_createModelNameView'];_0x2a1a=function(){return _0x337aa5;};return _0x2a1a();}import{IconAI as _0x4f14c5,IconBulb as _0x1037e7,IconWeb as _0xc1ef40}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x476fd4,ButtonLabelView as _0x555f04,ButtonView as _0x2b26a8,createDropdown as _0x550aa3,IconView as _0x39c9d9,UIModel as _0x4c0344,View as _0x2adc93}from'ckeditor5/src/ui.js';import{getTranslation as _0x4820f3}from'../../../aicore/utils/common-translations.js';const Ho=_0xe7273b(0x118),fo=_0xe7273b(0x12c),Mo=_0xe7273b(0x11c),Do=_0xe7273b(0x165),Wo=_0xe7273b(0x15f),yo=_0xe7273b(0x10e),Go=_0xe7273b(0x153),jo='n';function _0x3a46(_0x3d059c,_0x64705c){const _0x2a1a22=_0x2a1a();return _0x3a46=function(_0x3a4688,_0x14598c){_0x3a4688=_0x3a4688-0x103;let _0x1078b4=_0x2a1a22[_0x3a4688];return _0x1078b4;},_0x3a46(_0x3d059c,_0x64705c);}export class AIChatPromptCapabilitiesView extends _0x2adc93{[_0xe7273b(0x141)];[_0xe7273b(0x12f)];[_0xe7273b(0x114)];[_0xe7273b(0x124)];[_0xe7273b(0x15b)];[_0xe7273b(0x12b)];constructor(_0x37aca4){const _0x5441bb=_0xe7273b;super(_0x37aca4),this[_0x5441bb(0x163)](_0x5441bb(0x135),!0x1),this[_0x5441bb(0x163)](_0x5441bb(0x13a),!0x1),this[_0x5441bb(0x163)](_0x5441bb(0x14c),!0x0),this[_0x5441bb(0x163)](_0x5441bb(0x140),!0x0),this[_0x5441bb(0x163)](_0x5441bb(0x11f),null),this[_0x5441bb(0x163)](_0x5441bb(0x11e),null),this[_0x5441bb(0x124)]=this[_0x5441bb(0x158)](),this[_0x5441bb(0x12b)]=this[_0x5441bb(0x15c)](),this[_0x5441bb(0x141)]=this[_0x5441bb(0x146)](),this[_0x5441bb(0x12f)]=this[_0x5441bb(0x11d)](),this[_0x5441bb(0x114)]=this[_0x5441bb(0x150)](),this[_0x5441bb(0x124)][_0x5441bb(0x12a)][_0x5441bb(0x12e)](_0x5441bb(0x117))['to'](this,_0x5441bb(0x14c),_0x5a8f5d=>_0x5a8f5d),this[_0x5441bb(0x124)][_0x5441bb(0x12a)][_0x5441bb(0x12e)](_0x5441bb(0x119))['to'](this,_0x5441bb(0x140),_0x20391a=>_0x20391a?this[_0x5441bb(0x124)][_0x5441bb(0x12a)][_0x5441bb(0x13e)]:_0x4820f3(this[_0x5441bb(0x107)],_0x5441bb(0x157))),this[_0x5441bb(0x124)][_0x5441bb(0x12e)](_0x5441bb(0x138))['to'](this,_0x5441bb(0x140),_0x4b65cc=>_0x4b65cc),this[_0x5441bb(0x141)][_0x5441bb(0x12e)](_0x5441bb(0x137))['to'](this,_0x5441bb(0x135),_0x9a4553=>_0x9a4553),this[_0x5441bb(0x141)][_0x5441bb(0x12e)](_0x5441bb(0x120))['to'](this,_0x5441bb(0x14c),_0x2d5a0d=>!_0x2d5a0d),this[_0x5441bb(0x141)][_0x5441bb(0x12e)](_0x5441bb(0x119))['to'](this,_0x5441bb(0x135),_0x5985d6=>_0x4820f3(this[_0x5441bb(0x107)],_0x5985d6?_0x5441bb(0x13c):_0x5441bb(0x156))),this[_0x5441bb(0x12f)][_0x5441bb(0x12e)](_0x5441bb(0x137))['to'](this,_0x5441bb(0x13a),_0x5db870=>_0x5db870),this[_0x5441bb(0x12f)][_0x5441bb(0x12e)](_0x5441bb(0x120))['to'](this,_0x5441bb(0x14c),_0xed0fd4=>!_0xed0fd4),this[_0x5441bb(0x12f)][_0x5441bb(0x12e)](_0x5441bb(0x119))['to'](this,_0x5441bb(0x13a),_0x6f2ec1=>_0x4820f3(this[_0x5441bb(0x107)],_0x6f2ec1?_0x5441bb(0x159):_0x5441bb(0x11b))),this[_0x5441bb(0x149)]({'tag':_0x5441bb(0x151),'attributes':{'class':[Ho]},'children':[this[_0x5441bb(0x124)],this[_0x5441bb(0x12b)],this[_0x5441bb(0x141)],this[_0x5441bb(0x12f)],this[_0x5441bb(0x114)]]}),this[_0x5441bb(0x15b)]=new _0x537450(),_0x476fd4(this[_0x5441bb(0x124)],this[_0x5441bb(0x15b)]);}[_0xe7273b(0x127)](_0x4a3597,_0x54c18b){const _0x5db215=_0xe7273b;if(this[_0x5db215(0x163)](_0x5db215(0x14c),!(_0x54c18b&&_0x4a3597[_0x5db215(0x15a)]<=0x1)),this[_0x5db215(0x15b)][_0x5db215(0x160)](),_0x4a3597?.[_0x5db215(0x15a)])for(const _0x56b62b of _0x4a3597){const _0x543d70=new _0x4c0344({'label':_0x56b62b[_0x5db215(0x106)],'withText':!0x0,'role':_0x5db215(0x13d),'id':_0x56b62b['id'],'model':_0x56b62b});_0x543d70[_0x5db215(0x12e)](_0x5db215(0x137))['to'](this,_0x5db215(0x11f),_0x43aec5=>_0x43aec5===_0x56b62b['id']),this[_0x5db215(0x15b)][_0x5db215(0x148)]({'type':_0x5db215(0x10f),'model':_0x543d70,'labelView':new Ns(this[_0x5db215(0x107)],_0x56b62b)});}}[_0xe7273b(0x152)](_0x4b1a84){const _0xe15cd=_0xe7273b;this[_0xe15cd(0x163)](_0xe15cd(0x135),_0x4b1a84);}[_0xe7273b(0x130)](_0xab1e66){const _0x3045e7=_0xe7273b;this[_0x3045e7(0x163)](_0x3045e7(0x13a),_0xab1e66);}[_0xe7273b(0x129)](_0x5724e2){const _0x50ffe7=_0xe7273b;if(!_0x5724e2)return;this[_0x50ffe7(0x11f)]=_0x5724e2['id'],this[_0x50ffe7(0x11e)]=_0x5724e2[_0x50ffe7(0x106)]||_0x5724e2['id'],this[_0x50ffe7(0x124)][_0x50ffe7(0x12a)][_0x50ffe7(0x163)](_0x50ffe7(0x13e),_0x5724e2[_0x50ffe7(0x106)]),this[_0x50ffe7(0x124)][_0x50ffe7(0x12a)][_0x50ffe7(0x163)](_0x50ffe7(0x119),_0x5724e2[_0x50ffe7(0x106)]);const _0x6a8fa7=_0x5724e2[_0x50ffe7(0x10a)][_0x50ffe7(0x105)]?.[_0x50ffe7(0x125)]??!0x1;this[_0x50ffe7(0x163)](_0x50ffe7(0x135),!0x1),this[_0x50ffe7(0x141)][_0x50ffe7(0x163)](_0x50ffe7(0x137),!0x1),this[_0x50ffe7(0x141)][_0x50ffe7(0x163)](_0x50ffe7(0x138),_0x6a8fa7),this[_0x50ffe7(0x141)][_0x50ffe7(0x163)](_0x50ffe7(0x117),_0x6a8fa7);const _0x3955a9=_0x5724e2[_0x50ffe7(0x10a)][_0x50ffe7(0x136)]?.[_0x50ffe7(0x125)]??!0x1;this[_0x50ffe7(0x163)](_0x50ffe7(0x13a),!0x1),this[_0x50ffe7(0x12f)][_0x50ffe7(0x163)](_0x50ffe7(0x137),!0x1),this[_0x50ffe7(0x12f)][_0x50ffe7(0x163)](_0x50ffe7(0x138),_0x3955a9),this[_0x50ffe7(0x12f)][_0x50ffe7(0x163)](_0x50ffe7(0x117),_0x3955a9);}[_0xe7273b(0x15e)](){const _0x311840=_0xe7273b;this[_0x311840(0x163)](_0x311840(0x140),!0x0),this[_0x311840(0x163)](_0x311840(0x14c),!0x0);}[_0xe7273b(0x154)](_0x2d2d76){const _0x225928=_0xe7273b;this[_0x225928(0x163)](_0x225928(0x140),!0x1),_0x2d2d76&&this[_0x225928(0x163)](_0x225928(0x14c),!0x1);}[_0xe7273b(0x146)](){const _0x1c88b6=_0xe7273b,_0x489781=new _0x2b26a8();return _0x489781[_0x1c88b6(0x163)]({'label':_0x4820f3(this[_0x1c88b6(0x107)],_0x1c88b6(0x111)),'icon':_0xc1ef40,'class':fo,'isToggleable':!0x0,'tooltipPosition':jo}),_0x489781['on'](_0x1c88b6(0x161),()=>{const _0x4932f9=_0x1c88b6;this[_0x4932f9(0x147)](_0x4932f9(0x13f));}),_0x489781;}[_0xe7273b(0x11d)](){const _0x1686a0=_0xe7273b,_0x4e7ed0=new _0x2b26a8();return _0x4e7ed0[_0x1686a0(0x163)]({'label':_0x4820f3(this[_0x1686a0(0x107)],_0x1686a0(0x128)),'icon':_0x1037e7,'class':fo,'isToggleable':!0x0,'tooltipPosition':jo}),_0x4e7ed0['on'](_0x1686a0(0x161),()=>{const _0x109234=_0x1686a0;this[_0x109234(0x147)](_0x109234(0x10c));}),_0x4e7ed0;}[_0xe7273b(0x150)](){const _0xce9095=_0xe7273b,_0x26edbe=new _0x2b26a8();return _0x26edbe[_0xce9095(0x163)]({'label':_0x4820f3(this[_0xce9095(0x107)],_0xce9095(0x14b)),'icon':_0x4f14c5,'withText':!0x0,'class':fo,'isToggleable':!0x0,'tooltip':_0x4820f3(this[_0xce9095(0x107)],_0xce9095(0x14b)),'tooltipPosition':jo}),_0x26edbe[_0xce9095(0x14a)]({'attributes':{'class':[Mo]}}),_0x26edbe['on'](_0xce9095(0x161),()=>{const _0x3170c7=_0xce9095;console[_0x3170c7(0x10d)](_0x3170c7(0x162)),alert(_0x3170c7(0x162));}),_0x26edbe;}[_0xe7273b(0x158)](){const _0x14ce63=_0xe7273b,_0x217970=_0x550aa3(this[_0x14ce63(0x107)]);return _0x217970[_0x14ce63(0x163)]({'panelPosition':'ne','class':[Do]}),_0x217970[_0x14ce63(0x12a)][_0x14ce63(0x163)]({'label':_0x4820f3(this[_0x14ce63(0x107)],_0x14ce63(0x12d)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':jo}),this[_0x14ce63(0x164)](_0x217970,_0x14ce63(0x161),_0x4bd074=>{const _0x1ce9be=_0x14ce63;this[_0x1ce9be(0x147)](_0x1ce9be(0x139),_0x4bd074[_0x1ce9be(0x10b)][_0x1ce9be(0x115)]);}),_0x217970;}[_0xe7273b(0x15c)](){const _0x364708=_0xe7273b,_0x28bbda=new Yo(this[_0x364708(0x107)]);return _0x28bbda[_0x364708(0x12e)](_0x364708(0x134))['to'](this,_0x364708(0x11e),_0xf502cf=>_0xf502cf??''),_0x28bbda[_0x364708(0x12e)](_0x364708(0x117))['to'](this,_0x364708(0x14c),this,_0x364708(0x11e),(_0x8c94fe,_0x2c0cde)=>!_0x8c94fe&&!_0x2c0cde?.[_0x364708(0x113)]()[_0x364708(0x142)](_0x364708(0x13b))),_0x28bbda;}}class Ns extends _0x555f04{constructor(_0x5303f1,_0x365e24){const _0x5a28f7=_0xe7273b;super();const _0x3bd1bf=this[_0x5a28f7(0x15d)],_0x5e7ca6=this[_0x5a28f7(0x131)]();this[_0x5a28f7(0x149)]({'tag':_0x5a28f7(0x151),'attributes':{'class':['ck',_0x5a28f7(0x166)],'style':_0x3bd1bf['to'](_0x5a28f7(0x108)),'id':_0x3bd1bf['to']('id')},'children':[{'tag':_0x5a28f7(0x151),'attributes':{'class':[Wo]},'children':[{'text':_0x3bd1bf['to'](_0x5a28f7(0x134))}]},{'tag':_0x5a28f7(0x151),'attributes':{'class':[yo]},'children':[{'tag':_0x5a28f7(0x133),'children':[{'text':_0x365e24[_0x5a28f7(0x109)]}]}]},{'tag':_0x5a28f7(0x151),'attributes':{'class':[Go]},'children':_0x5e7ca6}]}),_0x5e7ca6[_0x5a28f7(0x14d)](this[_0x5a28f7(0x145)](_0x5303f1,_0xc1ef40,_0x5a28f7(0x111),_0x365e24[_0x5a28f7(0x10a)][_0x5a28f7(0x105)]?.[_0x5a28f7(0x125)]??!0x1)),_0x5e7ca6[_0x5a28f7(0x14d)](this[_0x5a28f7(0x145)](_0x5303f1,_0x1037e7,_0x5a28f7(0x128),_0x365e24[_0x5a28f7(0x10a)][_0x5a28f7(0x136)]?.[_0x5a28f7(0x125)]??!0x1));}[_0xe7273b(0x145)](_0xc13973,_0xfddaf2,_0x3ea181,_0x4f2404){const _0x32e8e8=_0xe7273b,_0x47a21d=new _0x39c9d9();_0x47a21d[_0x32e8e8(0x123)]=_0xfddaf2;const _0x460fc8=new _0x2adc93(_0xc13973);_0x460fc8[_0x32e8e8(0x149)]({'tag':_0x32e8e8(0x133),'children':[{'text':_0x4820f3(_0xc13973,_0x3ea181)+':\x20'}]});const _0x2d4eb1=new _0x2adc93(_0xc13973);return _0x2d4eb1[_0x32e8e8(0x149)]({'tag':_0x32e8e8(0x133),'children':[{'text':_0x4820f3(_0xc13973,_0x4f2404?_0x32e8e8(0x116):_0x32e8e8(0x126))}]}),[_0x47a21d,_0x460fc8,_0x2d4eb1];}}class Yo extends _0x2adc93{constructor(_0x4ec00b){const _0x5d2336=_0xe7273b;super(_0x4ec00b),this[_0x5d2336(0x163)](_0x5d2336(0x134),void 0x0),this[_0x5d2336(0x163)](_0x5d2336(0x117),!0x0);const _0x2f52fa=this[_0x5d2336(0x15d)];this[_0x5d2336(0x149)]({'tag':_0x5d2336(0x133),'attributes':{'class':['ck',_0x5d2336(0x103),_0x2f52fa['if'](_0x5d2336(0x117),_0x5d2336(0x122),_0xef7190=>!_0xef7190)]},'children':[{'text':_0x2f52fa['to'](_0x5d2336(0x134))}]});}}
|
|
23
|
+
const _0xd5577=_0x29a9;(function(_0x2da4e0,_0x538714){const _0x48deb6=_0x29a9,_0x341d1e=_0x2da4e0();while(!![]){try{const _0x2a15dd=-parseInt(_0x48deb6(0xf7))/0x1*(parseInt(_0x48deb6(0xf2))/0x2)+parseInt(_0x48deb6(0xef))/0x3+parseInt(_0x48deb6(0x127))/0x4*(-parseInt(_0x48deb6(0x120))/0x5)+-parseInt(_0x48deb6(0xda))/0x6+-parseInt(_0x48deb6(0x11c))/0x7*(-parseInt(_0x48deb6(0xf4))/0x8)+parseInt(_0x48deb6(0xec))/0x9+parseInt(_0x48deb6(0xf5))/0xa;if(_0x2a15dd===_0x538714)break;else _0x341d1e['push'](_0x341d1e['shift']());}catch(_0x1a1593){_0x341d1e['push'](_0x341d1e['shift']());}}}(_0x45c8,0x364ab));import{Collection as _0x425cee}from'ckeditor5/src/utils.js';import{IconAI as _0x51be6d,IconBulb as _0x262f1a,IconWeb as _0x236a58}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x4951a4,ButtonLabelView as _0x5b3b73,ButtonView as _0x502880,createDropdown as _0x404c91,IconView as _0xe71593,UIModel as _0x1e7e0b,View as _0x4a59f}from'ckeditor5/src/ui.js';import{getTranslation as _0x505da2}from'../../../aicore/utils/common-translations.js';function _0x45c8(){const _0x4dd25c=['tooltip','_getCapabilityParts','activeModelName','5lWaumN','_modelSelectionDropdownItems','webSearchActive','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','toggleWebSearch','AI_CHAT_REASONING','_commandsButton','752788tAUxbI','AI_CHAT_ENABLE_REASONING','ck-button__label','setModel','reasoning','startsWith','AI_CHAT_ENABLE_WEB_SEARCH','locale','_createModelSelectionDropdown','createCollection','set','withText','AI_CHAT_COMMANDS','label','add','ck-ai-chat__prompt-capabilities','capabilities','_createReasoningButton','setTemplate','setModelList','_modelSelectionDropdown','addMany','769272YGNptO','extendTemplate','_modelNameView','ck-ai-chat-controls__model-selection','execute','div','bind','fire','setReasoning','enabled','model','description','clear','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls__model-name','enableModelSelector','ck-hidden','bindTemplate','982926clvtSp','span','ck-ai-chat-controls-button--commands','253002LfQtWM','listenTo','button','834BkfcYq','Commands\x20are\x20not\x20implemented\x20yet.','80Vxpdxv','4063490YCPoiV','menuitemradio','147oyzhiC','_webSearchButton','isOn','isVisible','log','ck-ai-chat-controls__model-selection__item-capabilities','_createCommandsButton','AI_CHAT_SEARCH_WEB','_reasoningButton','ck-ai-chat-controls__model-selection__item-description','content','reasoningActive','source','setWebSearch','_createModelNameView','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','toLowerCase','name','toggleReasoning','_createWebSearchButton','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_CAPABILITIES_YES','isEnabled','activeModelId','agent','ck-ai-chat-controls-button','AI_CHAT_DISABLE_REASONING','modelSelectorEnabled','text','style','AI_CHAT_DISABLE_WEB_SEARCH','selectModel','modelSelectorVisible','buttonView','disableModelSelector','webSearch','length','133cCLvWd'];_0x45c8=function(){return _0x4dd25c;};return _0x45c8();}const Mo=_0xd5577(0xd3),Io=_0xd5577(0x110),Do=_0xd5577(0xee),Wo=_0xd5577(0xdd),yo=_0xd5577(0x10b),Go=_0xd5577(0x100),jo=_0xd5577(0xfc),Yo='n';function _0x29a9(_0x35a663,_0x58130a){const _0x45c84d=_0x45c8();return _0x29a9=function(_0x29a96c,_0x245fed){_0x29a96c=_0x29a96c-0xca;let _0x5a9531=_0x45c84d[_0x29a96c];return _0x5a9531;},_0x29a9(_0x35a663,_0x58130a);}export class AIChatPromptCapabilitiesView extends _0x4a59f{[_0xd5577(0xf8)];[_0xd5577(0xff)];[_0xd5577(0x126)];[_0xd5577(0xd8)];[_0xd5577(0x121)];[_0xd5577(0xdc)];constructor(_0x592743){const _0x191255=_0xd5577;super(_0x592743),this[_0x191255(0xce)](_0x191255(0x122),!0x1),this[_0x191255(0xce)](_0x191255(0x102),!0x1),this[_0x191255(0xce)](_0x191255(0x117),!0x0),this[_0x191255(0xce)](_0x191255(0x112),!0x0),this[_0x191255(0xce)](_0x191255(0x10e),null),this[_0x191255(0xce)](_0x191255(0x11f),null),this[_0x191255(0xd8)]=this[_0x191255(0xcc)](),this[_0x191255(0xdc)]=this[_0x191255(0x105)](),this[_0x191255(0xf8)]=this[_0x191255(0x10a)](),this[_0x191255(0xff)]=this[_0x191255(0xd5)](),this[_0x191255(0x126)]=this[_0x191255(0xfd)](),this[_0x191255(0xd8)][_0x191255(0x118)][_0x191255(0xe0)](_0x191255(0xfa))['to'](this,_0x191255(0x117),_0x3cc58b=>_0x3cc58b),this[_0x191255(0xd8)][_0x191255(0x118)][_0x191255(0xe0)](_0x191255(0x11d))['to'](this,_0x191255(0x112),_0x10e437=>_0x10e437?this[_0x191255(0xd8)][_0x191255(0x118)][_0x191255(0xd1)]:_0x505da2(this[_0x191255(0xcb)],_0x191255(0x123))),this[_0x191255(0xd8)][_0x191255(0xe0)](_0x191255(0x10d))['to'](this,_0x191255(0x112),_0x274335=>_0x274335),this[_0x191255(0xf8)][_0x191255(0xe0)](_0x191255(0xf9))['to'](this,_0x191255(0x122),_0x18a924=>_0x18a924),this[_0x191255(0xf8)][_0x191255(0xe0)](_0x191255(0xcf))['to'](this,_0x191255(0x117),_0x1fe43e=>!_0x1fe43e),this[_0x191255(0xf8)][_0x191255(0xe0)](_0x191255(0x11d))['to'](this,_0x191255(0x122),_0x2e3b66=>_0x505da2(this[_0x191255(0xcb)],_0x2e3b66?_0x191255(0x115):_0x191255(0xca))),this[_0x191255(0xff)][_0x191255(0xe0)](_0x191255(0xf9))['to'](this,_0x191255(0x102),_0x2ce2a4=>_0x2ce2a4),this[_0x191255(0xff)][_0x191255(0xe0)](_0x191255(0xcf))['to'](this,_0x191255(0x117),_0x323b9a=>!_0x323b9a),this[_0x191255(0xff)][_0x191255(0xe0)](_0x191255(0x11d))['to'](this,_0x191255(0x102),_0x4e500b=>_0x505da2(this[_0x191255(0xcb)],_0x4e500b?_0x191255(0x111):_0x191255(0x128))),this[_0x191255(0xd6)]({'tag':_0x191255(0xdf),'attributes':{'class':[Mo]},'children':[this[_0x191255(0xd8)],this[_0x191255(0xdc)],this[_0x191255(0xf8)],this[_0x191255(0xff)],this[_0x191255(0x126)]]}),this[_0x191255(0x121)]=new _0x425cee(),_0x4951a4(this[_0x191255(0xd8)],this[_0x191255(0x121)]);}[_0xd5577(0xd7)](_0x41d903,_0x30af9f){const _0x3c8a61=_0xd5577;if(this[_0x3c8a61(0xce)](_0x3c8a61(0x117),!(_0x30af9f&&_0x41d903[_0x3c8a61(0x11b)]<=0x1)),this[_0x3c8a61(0x121)][_0x3c8a61(0xe6)](),_0x41d903?.[_0x3c8a61(0x11b)])for(const _0x3ae019 of _0x41d903){const _0x40abdd=new _0x1e7e0b({'label':_0x3ae019[_0x3c8a61(0x108)],'withText':!0x0,'role':_0x3c8a61(0xf6),'id':_0x3ae019['id'],'model':_0x3ae019});_0x40abdd[_0x3c8a61(0xe0)](_0x3c8a61(0xf9))['to'](this,_0x3c8a61(0x10e),_0x5064dc=>_0x5064dc===_0x3ae019['id']),this[_0x3c8a61(0x121)][_0x3c8a61(0xd2)]({'type':_0x3c8a61(0xf1),'model':_0x40abdd,'labelView':new Hs(this[_0x3c8a61(0xcb)],_0x3ae019)});}}[_0xd5577(0x104)](_0x3bf65e){const _0x4aaaa7=_0xd5577;this[_0x4aaaa7(0xce)](_0x4aaaa7(0x122),_0x3bf65e);}[_0xd5577(0xe2)](_0x8b0f46){const _0x5222bf=_0xd5577;this[_0x5222bf(0xce)](_0x5222bf(0x102),_0x8b0f46);}[_0xd5577(0x12a)](_0x341e6e){const _0x460009=_0xd5577;if(!_0x341e6e)return;this[_0x460009(0x10e)]=_0x341e6e['id'],this[_0x460009(0x11f)]=_0x341e6e[_0x460009(0x108)]||_0x341e6e['id'],this[_0x460009(0xd8)][_0x460009(0x118)][_0x460009(0xce)](_0x460009(0xd1),_0x341e6e[_0x460009(0x108)]),this[_0x460009(0xd8)][_0x460009(0x118)][_0x460009(0xce)](_0x460009(0x11d),_0x341e6e[_0x460009(0x108)]);const _0x1d33fb=_0x341e6e[_0x460009(0xd4)][_0x460009(0x11a)]?.[_0x460009(0xe3)]??!0x1;this[_0x460009(0xce)](_0x460009(0x122),!0x1),this[_0x460009(0xf8)][_0x460009(0xce)](_0x460009(0xf9),!0x1),this[_0x460009(0xf8)][_0x460009(0xce)](_0x460009(0x10d),_0x1d33fb),this[_0x460009(0xf8)][_0x460009(0xce)](_0x460009(0xfa),_0x1d33fb);const _0x2eed38=_0x341e6e[_0x460009(0xd4)][_0x460009(0x12b)]?.[_0x460009(0xe3)]??!0x1;this[_0x460009(0xce)](_0x460009(0x102),!0x1),this[_0x460009(0xff)][_0x460009(0xce)](_0x460009(0xf9),!0x1),this[_0x460009(0xff)][_0x460009(0xce)](_0x460009(0x10d),_0x2eed38),this[_0x460009(0xff)][_0x460009(0xce)](_0x460009(0xfa),_0x2eed38);}[_0xd5577(0xe9)](){const _0x205c60=_0xd5577;this[_0x205c60(0xce)](_0x205c60(0x112),!0x0),this[_0x205c60(0xce)](_0x205c60(0x117),!0x0);}[_0xd5577(0x119)](_0x4080de){const _0xad9da0=_0xd5577;this[_0xad9da0(0xce)](_0xad9da0(0x112),!0x1),_0x4080de&&this[_0xad9da0(0xce)](_0xad9da0(0x117),!0x1);}[_0xd5577(0x10a)](){const _0x3d0dd1=_0xd5577,_0x51cd31=new _0x502880();return _0x51cd31[_0x3d0dd1(0xce)]({'label':_0x505da2(this[_0x3d0dd1(0xcb)],_0x3d0dd1(0xfe)),'icon':_0x236a58,'class':Io,'isToggleable':!0x0,'tooltipPosition':Yo}),_0x51cd31['on'](_0x3d0dd1(0xde),()=>{const _0x35f2d0=_0x3d0dd1;this[_0x35f2d0(0xe1)](_0x35f2d0(0x124));}),_0x51cd31;}[_0xd5577(0xd5)](){const _0xded50b=_0xd5577,_0x32562a=new _0x502880();return _0x32562a[_0xded50b(0xce)]({'label':_0x505da2(this[_0xded50b(0xcb)],_0xded50b(0x125)),'icon':_0x262f1a,'class':Io,'isToggleable':!0x0,'tooltipPosition':Yo}),_0x32562a['on'](_0xded50b(0xde),()=>{const _0x89f640=_0xded50b;this[_0x89f640(0xe1)](_0x89f640(0x109));}),_0x32562a;}[_0xd5577(0xfd)](){const _0x192fe2=_0xd5577,_0x39f9ca=new _0x502880();return _0x39f9ca[_0x192fe2(0xce)]({'label':_0x505da2(this[_0x192fe2(0xcb)],_0x192fe2(0xd0)),'icon':_0x51be6d,'withText':!0x0,'class':Io,'isToggleable':!0x0,'tooltip':_0x505da2(this[_0x192fe2(0xcb)],_0x192fe2(0xd0)),'tooltipPosition':Yo}),_0x39f9ca[_0x192fe2(0xdb)]({'attributes':{'class':[Do]}}),_0x39f9ca['on'](_0x192fe2(0xde),()=>{const _0x4572aa=_0x192fe2;console[_0x4572aa(0xfb)](_0x4572aa(0xf3)),alert(_0x4572aa(0xf3));}),_0x39f9ca;}[_0xd5577(0xcc)](){const _0x315adf=_0xd5577,_0x2fdbf5=_0x404c91(this[_0x315adf(0xcb)]);return _0x2fdbf5[_0x315adf(0xce)]({'panelPosition':'ne','class':[Wo]}),_0x2fdbf5[_0x315adf(0x118)][_0x315adf(0xce)]({'label':_0x505da2(this[_0x315adf(0xcb)],_0x315adf(0x106)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Yo}),this[_0x315adf(0xf0)](_0x2fdbf5,_0x315adf(0xde),_0x5cd10b=>{const _0xbbdcb2=_0x315adf;this[_0xbbdcb2(0xe1)](_0xbbdcb2(0x116),_0x5cd10b[_0xbbdcb2(0x103)][_0xbbdcb2(0xe4)]);}),_0x2fdbf5;}[_0xd5577(0x105)](){const _0x318e55=_0xd5577,_0x59902f=new qo(this[_0x318e55(0xcb)]);return _0x59902f[_0x318e55(0xe0)](_0x318e55(0x113))['to'](this,_0x318e55(0x11f),_0x4c1eb1=>_0x4c1eb1??''),_0x59902f[_0x318e55(0xe0)](_0x318e55(0xfa))['to'](this,_0x318e55(0x117),this,_0x318e55(0x11f),(_0x4f577b,_0x59025c)=>!_0x4f577b&&!_0x59025c?.[_0x318e55(0x107)]()[_0x318e55(0x12c)](_0x318e55(0x10f))),_0x59902f;}}class Hs extends _0x5b3b73{constructor(_0xaf909e,_0x325bd7){const _0x355752=_0xd5577;super();const _0xaf4f38=this[_0x355752(0xeb)],_0x5b448b=this[_0x355752(0xcd)]();this[_0x355752(0xd6)]({'tag':_0x355752(0xdf),'attributes':{'class':['ck',_0x355752(0x129)],'style':_0xaf4f38['to'](_0x355752(0x114)),'id':_0xaf4f38['to']('id')},'children':[{'tag':_0x355752(0xdf),'attributes':{'class':[yo]},'children':[{'text':_0xaf4f38['to'](_0x355752(0x113))}]},{'tag':_0x355752(0xdf),'attributes':{'class':[Go]},'children':[{'tag':_0x355752(0xed),'children':[{'text':_0x325bd7[_0x355752(0xe5)]}]}]},{'tag':_0x355752(0xdf),'attributes':{'class':[jo]},'children':_0x5b448b}]}),_0x5b448b[_0x355752(0xd9)](this[_0x355752(0x11e)](_0xaf909e,_0x236a58,_0x355752(0xfe),_0x325bd7[_0x355752(0xd4)][_0x355752(0x11a)]?.[_0x355752(0xe3)]??!0x1)),_0x5b448b[_0x355752(0xd9)](this[_0x355752(0x11e)](_0xaf909e,_0x262f1a,_0x355752(0x125),_0x325bd7[_0x355752(0xd4)][_0x355752(0x12b)]?.[_0x355752(0xe3)]??!0x1));}[_0xd5577(0x11e)](_0x55722a,_0x4d8055,_0x3c9c0e,_0xc0054f){const _0x532eda=_0xd5577,_0x4443b6=new _0xe71593();_0x4443b6[_0x532eda(0x101)]=_0x4d8055;const _0x520f76=new _0x4a59f(_0x55722a);_0x520f76[_0x532eda(0xd6)]({'tag':_0x532eda(0xed),'children':[{'text':_0x505da2(_0x55722a,_0x3c9c0e)+':\x20'}]});const _0x3983b6=new _0x4a59f(_0x55722a);return _0x3983b6[_0x532eda(0xd6)]({'tag':_0x532eda(0xed),'children':[{'text':_0x505da2(_0x55722a,_0xc0054f?_0x532eda(0x10c):_0x532eda(0xe7))}]}),[_0x4443b6,_0x520f76,_0x3983b6];}}class qo extends _0x4a59f{constructor(_0x44d483){const _0x24871b=_0xd5577;super(_0x44d483),this[_0x24871b(0xce)](_0x24871b(0x113),void 0x0),this[_0x24871b(0xce)](_0x24871b(0xfa),!0x0);const _0x593df1=this[_0x24871b(0xeb)];this[_0x24871b(0xd6)]({'tag':_0x24871b(0xed),'attributes':{'class':['ck',_0x24871b(0xe8),_0x593df1['if'](_0x24871b(0xfa),_0x24871b(0xea),_0x4d5f26=>!_0x4d5f26)]},'children':[{'text':_0x593df1['to'](_0x24871b(0x113))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e5abf=_0x5366;function _0x5366(_0x53900c,_0x155e14){const _0x2b73bf=_0x2b73();return _0x5366=function(_0x536618,_0x3c4ac7){_0x536618=_0x536618-0x13e;let _0x36252c=_0x2b73bf[_0x536618];return _0x36252c;},_0x5366(_0x53900c,_0x155e14);}(function(_0x584207,_0x48c065){const _0x13d8d1=_0x5366,_0x3f5b72=_0x584207();while(!![]){try{const _0x3cc2fd=parseInt(_0x13d8d1(0x157))/0x1+-parseInt(_0x13d8d1(0x16d))/0x2+-parseInt(_0x13d8d1(0x175))/0x3*(-parseInt(_0x13d8d1(0x17b))/0x4)+parseInt(_0x13d8d1(0x149))/0x5*(-parseInt(_0x13d8d1(0x17f))/0x6)+-parseInt(_0x13d8d1(0x14c))/0x7*(parseInt(_0x13d8d1(0x17e))/0x8)+-parseInt(_0x13d8d1(0x156))/0x9+parseInt(_0x13d8d1(0x17d))/0xa*(parseInt(_0x13d8d1(0x174))/0xb);if(_0x3cc2fd===_0x48c065)break;else _0x3f5b72['push'](_0x3f5b72['shift']());}catch(_0x128a72){_0x3f5b72['push'](_0x3f5b72['shift']());}}}(_0x2b73,0x53eb0));import{IconSubmit as _0x16ceb0}from'ckeditor5/src/icons.js';import{ButtonView as _0x1abfbc,AutocompleteView as _0x5d0e7a,createLabeledTextarea as _0x590406}from'ckeditor5/src/ui.js';import{global as _0x4c57d2,isVisible as _0x361c9d,Rect as _0x422ef2,ResizeObserver as _0x4759ea}from'ckeditor5/src/utils.js';function _0x2b73(){const _0x53adfc=['1674231dNluIW','execute','set','maxRows','minRows','render','4gFQTZC','left','10MkdXjo','68840kbTQvs','186vexETX','sendUserMessage','window','calc(','isEmpty','destroy','rtl','fieldView','hasError','update','locale','ck-ai-chat__prompt-input','46015evbbco','_setUpAddContextButtonPositioning','MIN_ROWS','119drQntt','extendTemplate','add','ck-ai-chat__prompt-submit-button','_queryViewResizeObserver','reset','queryView','setIsUploadInProgress','trim','isUploadInProgress','5880906ATdXAy','232439FrfPIv','target','px\x20-\x20var(--ck-spacing-tiny))','uiLanguageDirection','style','keystrokes','value','errorText','_createSubmitButton','enter','fieldWrapperChildren','focusableChildren','placeholder','fire','submitButtonView','AI_CHAT_PROMPT_EMPTY_ERROR','excludeScrollbarsAndBorders','submit','right','MAX_ROWS','requestAnimationFrame','AI_CHAT_LABEL_SUBMIT','599204XrZeps','bind','width','isEnabled','element','_addContextButtonView','setPlaceholderText','10316086UlKnhb'];_0x2b73=function(){return _0x53adfc;};return _0x2b73();}import{getTranslation as _0x1c5c8e}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x44997f}from'./aichatpromptsuggestionslistview.js';import{escape as _0x531be1}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x5d0e7a{[_0x2e5abf(0x165)];static [_0x2e5abf(0x14b)]=0x1;static [_0x2e5abf(0x16a)]=0xc;[_0x2e5abf(0x172)];[_0x2e5abf(0x150)];constructor(_0x153e41,_0x304794){const _0x5b32d7=_0x2e5abf;super(_0x153e41,{'queryView':{'label':'','creator':_0x590406,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x44997f(_0x153e41),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x5b32d7(0x177)](_0x5b32d7(0x141),!0x0),this[_0x5b32d7(0x177)](_0x5b32d7(0x155),!0x1),this[_0x5b32d7(0x172)]=_0x304794,this[_0x5b32d7(0x150)]=null,this[_0x5b32d7(0x152)][_0x5b32d7(0x144)][_0x5b32d7(0x179)]=AIChatPromptInputView[_0x5b32d7(0x14b)],this[_0x5b32d7(0x152)][_0x5b32d7(0x144)][_0x5b32d7(0x178)]=AIChatPromptInputView[_0x5b32d7(0x16a)],this[_0x5b32d7(0x152)][_0x5b32d7(0x161)][_0x5b32d7(0x14e)](this[_0x5b32d7(0x172)]),this[_0x5b32d7(0x14a)](),this[_0x5b32d7(0x14d)]({'attributes':{'class':['ck',_0x5b32d7(0x148)]}}),this[_0x5b32d7(0x165)]=this[_0x5b32d7(0x15f)](),this[_0x5b32d7(0x165)][_0x5b32d7(0x16e)](_0x5b32d7(0x170))['to'](this,_0x5b32d7(0x141),this,_0x5b32d7(0x155),(_0x23958b,_0x5ea733)=>!_0x23958b&&!_0x5ea733),this[_0x5b32d7(0x162)][_0x5b32d7(0x14e)](this[_0x5b32d7(0x165)]);}[_0x2e5abf(0x17a)](){const _0x1240f0=_0x2e5abf;super[_0x1240f0(0x17a)](),this[_0x1240f0(0x152)][_0x1240f0(0x161)][_0x1240f0(0x14e)](this[_0x1240f0(0x165)]),this[_0x1240f0(0x15c)][_0x1240f0(0x177)](_0x1240f0(0x160),(_0xa558fa,_0x5ddaea)=>{const _0x31f189=_0x1240f0;this[_0x31f189(0x155)]||this[_0x31f189(0x141)]||_0xa558fa[_0x31f189(0x158)]==this[_0x31f189(0x152)][_0x31f189(0x144)][_0x31f189(0x171)]&&(this[_0x31f189(0x168)](),_0x5ddaea());}),this[_0x1240f0(0x152)][_0x1240f0(0x144)]['on'](_0x1240f0(0x146),()=>{const _0xbf93ef=_0x1240f0;this[_0xbf93ef(0x141)]=''===this[_0xbf93ef(0x152)][_0xbf93ef(0x144)][_0xbf93ef(0x171)][_0xbf93ef(0x15d)]?.[_0xbf93ef(0x154)]();});}[_0x2e5abf(0x142)](){const _0x4407a7=_0x2e5abf;super[_0x4407a7(0x142)](),this[_0x4407a7(0x150)]&&this[_0x4407a7(0x150)][_0x4407a7(0x142)]();}[_0x2e5abf(0x168)](){const _0x3ba159=_0x2e5abf,_0x5f2a42=this[_0x3ba159(0x152)][_0x3ba159(0x144)][_0x3ba159(0x171)][_0x3ba159(0x15d)]?.[_0x3ba159(0x154)]();if(!_0x5f2a42)return this[_0x3ba159(0x152)][_0x3ba159(0x15e)]=_0x1c5c8e(this[_0x3ba159(0x147)],_0x3ba159(0x166)),void(this[_0x3ba159(0x152)][_0x3ba159(0x144)][_0x3ba159(0x145)]=!0x0);this[_0x3ba159(0x152)][_0x3ba159(0x144)][_0x3ba159(0x145)]=!0x1;const _0x1dd487=_0x531be1(_0x5f2a42);this[_0x3ba159(0x164)](_0x3ba159(0x13e),_0x1dd487),this[_0x3ba159(0x152)][_0x3ba159(0x144)][_0x3ba159(0x151)]();}[_0x2e5abf(0x173)](_0x394516){const _0x4df3da=_0x2e5abf;this[_0x4df3da(0x152)][_0x4df3da(0x144)][_0x4df3da(0x177)](_0x4df3da(0x163),_0x394516);}[_0x2e5abf(0x15f)](){const _0x552384=_0x2e5abf,_0x2f507f=new _0x1abfbc(this[_0x552384(0x147)]);return _0x2f507f[_0x552384(0x177)]({'icon':_0x16ceb0,'label':_0x1c5c8e(this[_0x552384(0x147)],_0x552384(0x16c)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x552384(0x14f),'isEnabled':!0x1}),_0x2f507f['on'](_0x552384(0x176),()=>{const _0x5edcdb=_0x552384;this[_0x5edcdb(0x168)]();}),_0x2f507f;}[_0x2e5abf(0x153)](_0x2d77e3){const _0x1c9db0=_0x2e5abf;this[_0x1c9db0(0x155)]=_0x2d77e3;}[_0x2e5abf(0x14a)](){const _0x337e41=_0x2e5abf,_0x5e6a14=this[_0x337e41(0x147)],_0x4f7260=()=>{const _0x29df0e=_0x337e41;_0x4c57d2[_0x29df0e(0x13f)][_0x29df0e(0x16b)](()=>{const _0x280932=_0x29df0e;if(_0x361c9d(this[_0x280932(0x171)])){const _0x16c7df=new _0x422ef2(this[_0x280932(0x152)][_0x280932(0x144)][_0x280932(0x171)]),_0x41da66=new _0x422ef2(this[_0x280932(0x172)][_0x280932(0x171)]),_0x36f110=_0x16c7df[_0x280932(0x16f)],_0x3c5816=_0x280932(0x143)===_0x5e6a14[_0x280932(0x15a)]?_0x280932(0x169):_0x280932(0x17c);_0x16c7df[_0x280932(0x167)]();const _0x3c5c8a=_0x36f110-_0x16c7df[_0x280932(0x16f)]+0x1;this[_0x280932(0x172)][_0x280932(0x171)][_0x280932(0x15b)][_0x3c5816]=_0x280932(0x140)+(_0x36f110-_0x41da66[_0x280932(0x16f)]-_0x3c5c8a)+_0x280932(0x159);}});};this[_0x337e41(0x152)][_0x337e41(0x144)]['on'](_0x337e41(0x146),_0x4f7260),this['on'](_0x337e41(0x17a),()=>{const _0x201281=_0x337e41;_0x4f7260(),this[_0x201281(0x150)]=new _0x4759ea(this[_0x201281(0x152)][_0x201281(0x144)][_0x201281(0x171)],()=>{_0x4f7260();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x79c4(_0x1ff80b,_0x2d0fef){const _0x212ece=_0x212e();return _0x79c4=function(_0x79c4e2,_0x1f80ea){_0x79c4e2=_0x79c4e2-0xef;let _0x8f4fd7=_0x212ece[_0x79c4e2];return _0x8f4fd7;},_0x79c4(_0x1ff80b,_0x2d0fef);}const _0x10dd15=_0x79c4;function _0x212e(){const _0x34a492=['2549141zqapHs','length','310038sAUqRI','65GUhJuB','10XJpQTT','2399NHbSWh','8764450PNDeLG','items','4376JQNkVs','10860MWNnfT','1158fLhZBe','filter','22JpwvkL','8864aqypay','7173DxMQiz'];_0x212e=function(){return _0x34a492;};return _0x212e();}(function(_0x715709,_0x17ff1f){const _0x16a9ac=_0x79c4,_0x109007=_0x715709();while(!![]){try{const _0x48eeb7=-parseInt(_0x16a9ac(0xfd))/0x1*(-parseInt(_0x16a9ac(0xfc))/0x2)+-parseInt(_0x16a9ac(0xf3))/0x3*(parseInt(_0x16a9ac(0xf6))/0x4)+parseInt(_0x16a9ac(0xfb))/0x5*(parseInt(_0x16a9ac(0xfa))/0x6)+parseInt(_0x16a9ac(0xf8))/0x7+parseInt(_0x16a9ac(0xf1))/0x8*(-parseInt(_0x16a9ac(0xf7))/0x9)+parseInt(_0x16a9ac(0xef))/0xa+-parseInt(_0x16a9ac(0xf5))/0xb*(parseInt(_0x16a9ac(0xf2))/0xc);if(_0x48eeb7===_0x17ff1f)break;else _0x109007['push'](_0x109007['shift']());}catch(_0x24d633){_0x109007['push'](_0x109007['shift']());}}}(_0x212e,0x9a1a7));import{ListView as _0x1707ce}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x1707ce{[_0x10dd15(0xf4)](){const _0x430730=_0x10dd15;let _0x279cad=0x0;for(const _0x99b4f1 of this[_0x430730(0xf0)])_0x279cad+=_0x99b4f1[_0x430730(0xf0)][_0x430730(0xf9)];return{'resultsCount':_0x279cad,'totalItemsCount':_0x279cad};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ab23f=_0x26ff;(function(_0xd99a5c,_0x2031be){const _0x2c1b6f=_0x26ff,_0x250f70=_0xd99a5c();while(!![]){try{const _0x55a003=parseInt(_0x2c1b6f(0x131))/0x1+parseInt(_0x2c1b6f(0x10f))/0x2*(parseInt(_0x2c1b6f(0x12b))/0x3)+-parseInt(_0x2c1b6f(0x125))/0x4*(-parseInt(_0x2c1b6f(0x138))/0x5)+parseInt(_0x2c1b6f(0x11a))/0x6+-parseInt(_0x2c1b6f(0x137))/0x7*(parseInt(_0x2c1b6f(0x123))/0x8)+parseInt(_0x2c1b6f(0x130))/0x9+-parseInt(_0x2c1b6f(0x124))/0xa;if(_0x55a003===_0x2031be)break;else _0x250f70['push'](_0x250f70['shift']());}catch(_0x23f486){_0x250f70['push'](_0x250f70['shift']());}}}(_0x2e3b,0x897f3));function _0x2e3b(){const _0x393572=['6356394clgOwG','getResourceIcon','_iconView','type','execute','isInContext','highlightText','ck-ai-chat-resources__item--in-context','extendTemplate','64cuDEYz','9143970kasAOt','8VdVCIC','ck-ai-chat-resources__item-title','FILE','_createTitleView','_setupTemplate','div','1226937sGihQT','label','DOCUMENT','_updateIcon','trim','1578951omeYqE','343539UMTMFA','URL','resource','isVisible','updateResourceState','text','611828JxAMMT','473650pMcXgb','span','ck-ai-chat-resources__item','2iSYAQw','_createIconView','_titleView','set','bindTemplate','content','setTemplate','render','TEXT','ck-hidden','ck-ai-chat-resources__item__icon'];_0x2e3b=function(){return _0x393572;};return _0x2e3b();}import{HighlightedTextView as _0x45e3fd,IconView as _0x3c9ce0,ListItemView as _0x4d378d}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x251e83}from'es-toolkit/compat';import{AIContextItemType as _0x4a47eb}from'../../../../aicore/model/aicontext.js';function _0x26ff(_0x8c4570,_0x3db4bb){const _0x2e3b47=_0x2e3b();return _0x26ff=function(_0x26ff03,_0x1ab3a6){_0x26ff03=_0x26ff03-0x10f;let _0x40c6d1=_0x2e3b47[_0x26ff03];return _0x40c6d1;},_0x26ff(_0x8c4570,_0x3db4bb);}import{IconFileUpload as _0x98b87e,IconCheck as _0x148b7f,IconDocument as _0x41b1e6,IconDocumentOutline as _0x308c12,IconLink as _0x9217c1}from'@ckeditor/ckeditor5-icons';const Tr=_0x2ab23f(0x13a),qr=_0x2ab23f(0x121),zr=_0x2ab23f(0x126),Br=_0x2ab23f(0x119);export class AIChatResourceListItemView extends _0x4d378d{[_0x2ab23f(0x133)];[_0x2ab23f(0x111)];[_0x2ab23f(0x11c)];constructor(_0x17690f,_0x428a4e){const _0x3b8371=_0x2ab23f;super(_0x17690f),this[_0x3b8371(0x133)]=_0x428a4e,this[_0x3b8371(0x112)](_0x3b8371(0x11f),!!_0x428a4e[_0x3b8371(0x11f)]),this[_0x3b8371(0x111)]=this[_0x3b8371(0x128)](),this[_0x3b8371(0x11c)]=this[_0x3b8371(0x110)](),this[_0x3b8371(0x129)]();}[_0x2ab23f(0x116)](){const _0xc1c6f4=_0x2ab23f;super[_0xc1c6f4(0x116)]();}[_0x2ab23f(0x11b)](_0x51d664){const _0x115f12=_0x2ab23f;if(_0x51d664[_0x115f12(0x11f)])return _0x148b7f;switch(_0x51d664[_0x115f12(0x11d)]){case _0x4a47eb[_0x115f12(0x12d)]:return _0x41b1e6;case _0x4a47eb[_0x115f12(0x132)]:return _0x9217c1;case _0x4a47eb[_0x115f12(0x127)]:case _0x4a47eb[_0x115f12(0x117)]:return _0x98b87e;default:return _0x308c12;}}[_0x2ab23f(0x120)](_0xaae227){const _0x8b387d=_0x2ab23f;if(!_0xaae227||''===_0xaae227[_0x8b387d(0x12f)]())return void this[_0x8b387d(0x111)][_0x8b387d(0x120)](null);const _0x2d7057=new RegExp(_0x251e83(_0xaae227),'gi');this[_0x8b387d(0x111)][_0x8b387d(0x120)](_0x2d7057);}[_0x2ab23f(0x135)](_0xc96218){const _0x36664d=_0x2ab23f;this[_0x36664d(0x133)][_0x36664d(0x11f)]=_0xc96218,this[_0x36664d(0x11f)]=_0xc96218,this[_0x36664d(0x12e)]();}[_0x2ab23f(0x128)](){const _0x737ca7=_0x2ab23f,_0x3f8f2b=new _0x45e3fd();return _0x3f8f2b[_0x737ca7(0x136)]=this[_0x737ca7(0x133)][_0x737ca7(0x12c)],_0x3f8f2b[_0x737ca7(0x122)]({'tag':_0x737ca7(0x139),'attributes':{'class':[zr]}}),_0x3f8f2b;}[_0x2ab23f(0x110)](){const _0xc5ad1a=_0x2ab23f,_0x306740=new _0x3c9ce0();return _0x306740[_0xc5ad1a(0x114)]=this[_0xc5ad1a(0x11b)](this[_0xc5ad1a(0x133)]),_0x306740;}[_0x2ab23f(0x129)](){const _0x2e98eb=_0x2ab23f,_0x564269=this[_0x2e98eb(0x113)];this[_0x2e98eb(0x115)]({'tag':_0x2e98eb(0x12a),'attributes':{'class':[Tr,_0x564269['if'](_0x2e98eb(0x134),_0x2e98eb(0x118),_0xbf8bd1=>!_0xbf8bd1),_0x564269['if'](_0x2e98eb(0x11f),qr)]},'children':[{'tag':_0x2e98eb(0x12a),'attributes':{'class':[Br]},'children':[this[_0x2e98eb(0x11c)]]},this[_0x2e98eb(0x111)]],'on':{'click':_0x564269['to'](_0x2e98eb(0x11e))}});}[_0x2ab23f(0x12e)](){const _0x139923=_0x2ab23f;this[_0x139923(0x11c)][_0x139923(0x114)]=this[_0x139923(0x11b)](this[_0x139923(0x133)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e0080=_0x442d;(function(_0x1c1510,_0x203379){const _0x1b1c7f=_0x442d,_0x163803=_0x1c1510();while(!![]){try{const _0x551544=-parseInt(_0x1b1c7f(0x15c))/0x1*(parseInt(_0x1b1c7f(0x16a))/0x2)+parseInt(_0x1b1c7f(0x167))/0x3+parseInt(_0x1b1c7f(0x16d))/0x4+parseInt(_0x1b1c7f(0x159))/0x5*(-parseInt(_0x1b1c7f(0x17e))/0x6)+-parseInt(_0x1b1c7f(0x16f))/0x7+-parseInt(_0x1b1c7f(0x175))/0x8+parseInt(_0x1b1c7f(0x183))/0x9;if(_0x551544===_0x203379)break;else _0x163803['push'](_0x163803['shift']());}catch(_0x50765a){_0x163803['push'](_0x163803['shift']());}}}(_0x4f94,0x73271));import{BalloonPanelView as _0x441f79,ButtonView as _0x486e14,clickOutsideHandler as _0x1ea25f,FormHeaderView as _0x50603a}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x3dff87}from'@ckeditor/ckeditor5-icons';function _0x4f94(){const _0x48a5a8=['updateResourceState','_createBackButton','resource','_bodyCollection','onBalloonClosed','extendTemplate','_setupSingleResourceBalloonClickOutsideHandler','_locale','ck-ai-chat-context-controls__source-balloon-panel','execute','1912689MMdyCw','closeSourceResourceBalloon','onResourceSelected','8174fkIiBU','_createBalloonHeader','onLoadSourceResources','1036068DAPZVh','values','2676807pLXVlZ','content','populateSourceResourceBalloon','isVisible','_config','get','1404496PAfpcK','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','_createBalloonResourcesView','destroy','loadSourceResources','_createSourceResourceBalloonPanel','getLimiterElement','source','getTargetElement','186YyxAll','pin','add','hide','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','4545783ctMSnY','_addSourceResourceContent','set','element','setResources','show','delete','clear','onBackToContext','label','children','isAnyResourceBalloonVisible','_sourceResourceBalloons','showSourceResourcesBalloon','ck-button-icon\x20ck-button-back','7930ORaQNc','addResourceToContext','_getResourcesViewFromBalloon','79MYSZhK'];_0x4f94=function(){return _0x48a5a8;};return _0x4f94();}import{getTranslation as _0x20b909}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x1a7ff8}from'./aichatresourcesview.js';function _0x442d(_0x28c597,_0x585380){const _0x4f9482=_0x4f94();return _0x442d=function(_0x442d29,_0xfa634d){_0x442d29=_0x442d29-0x14b;let _0x19d264=_0x4f9482[_0x442d29];return _0x19d264;},_0x442d(_0x28c597,_0x585380);}const Zo=_0x1e0080(0x165),Or=_0x1e0080(0x158),Hr=_0x1e0080(0x176);export class AIChatResourcesBalloonView{[_0x1e0080(0x156)]=new Map();[_0x1e0080(0x160)];[_0x1e0080(0x164)];[_0x1e0080(0x173)];constructor(_0x163fa4,_0x2588e4,_0x4d3341){const _0x46dcc5=_0x1e0080;this[_0x46dcc5(0x164)]=_0x163fa4,this[_0x46dcc5(0x160)]=_0x2588e4,this[_0x46dcc5(0x173)]=_0x4d3341;}[_0x1e0080(0x157)](_0xdf9cff){const _0x21bee1=_0x1e0080;let _0x43d5b7=this[_0x21bee1(0x156)][_0x21bee1(0x174)](_0xdf9cff['id']);_0x43d5b7||(_0x43d5b7=this[_0x21bee1(0x17a)](),this[_0x21bee1(0x156)][_0x21bee1(0x14c)](_0xdf9cff['id'],_0x43d5b7),this[_0x21bee1(0x163)](_0x43d5b7)),this[_0x21bee1(0x14b)](_0x43d5b7,_0xdf9cff),_0x43d5b7[_0x21bee1(0x14f)]();const _0x12dd77=this[_0x21bee1(0x173)][_0x21bee1(0x17d)]();_0x12dd77&&_0x43d5b7[_0x21bee1(0x17f)]({'target':_0x12dd77,'limiter':this[_0x21bee1(0x173)][_0x21bee1(0x17b)]()});}[_0x1e0080(0x171)](_0x5d93a3,_0x2b1590,_0x5f2e37){const _0x4427bf=_0x1e0080,_0x5489fc=this[_0x4427bf(0x156)][_0x4427bf(0x174)](_0x5d93a3);if(!_0x5489fc)return;const _0x2d0902=this[_0x4427bf(0x15b)](_0x5489fc);_0x2d0902&&_0x2d0902[_0x4427bf(0x14e)](_0x2b1590,_0x5f2e37);}[_0x1e0080(0x168)](_0x9b60fc){const _0xe18b69=_0x1e0080,_0x44e833=this[_0xe18b69(0x156)][_0xe18b69(0x174)](_0x9b60fc);_0x44e833&&requestAnimationFrame(()=>{const _0x22403b=_0xe18b69;_0x44e833[_0x22403b(0x181)](),this[_0x22403b(0x156)][_0x22403b(0x150)](_0x9b60fc),this[_0x22403b(0x173)][_0x22403b(0x161)]();});}[_0x1e0080(0x155)](){const _0x211253=_0x1e0080;for(const _0xbb8b5d of this[_0x211253(0x156)][_0x211253(0x16e)]())if(_0xbb8b5d[_0x211253(0x172)])return!0x0;return!0x1;}[_0x1e0080(0x15d)](_0x160fb9,_0xf5b768,_0x54ccae){const _0x4dad55=_0x1e0080,_0x4bce26=this[_0x4dad55(0x156)][_0x4dad55(0x174)](_0x160fb9);if(!_0x4bce26||!_0x4bce26[_0x4dad55(0x172)])return;const _0x403a8a=this[_0x4dad55(0x173)][_0x4dad55(0x17d)]();if(!_0x403a8a)return;_0x4bce26[_0x4dad55(0x17f)]({'target':_0x403a8a,'limiter':this[_0x4dad55(0x173)][_0x4dad55(0x17b)]()});const _0x4f11f4=this[_0x4dad55(0x15b)](_0x4bce26);_0x4f11f4&&_0x4f11f4[_0x4dad55(0x15d)](_0xf5b768,_0x54ccae);}[_0x1e0080(0x178)](){const _0x257e1d=_0x1e0080;for(const _0x3ac0be of this[_0x257e1d(0x156)][_0x257e1d(0x16e)]())_0x3ac0be[_0x257e1d(0x178)]();this[_0x257e1d(0x156)][_0x257e1d(0x151)]();}[_0x1e0080(0x17a)](){const _0x1947c2=_0x1e0080,_0x2de9c7=new _0x441f79(this[_0x1947c2(0x164)]);return _0x2de9c7[_0x1947c2(0x162)]({'attributes':{'class':Zo}}),this[_0x1947c2(0x160)][_0x1947c2(0x180)](_0x2de9c7),_0x2de9c7;}[_0x1e0080(0x14b)](_0x1727f4,_0x55788b){const _0x49aec7=_0x1e0080;_0x1727f4[_0x49aec7(0x170)][_0x49aec7(0x151)]();const _0x396115=this[_0x49aec7(0x16b)](_0x1727f4,_0x55788b);_0x1727f4[_0x49aec7(0x170)][_0x49aec7(0x180)](_0x396115);const _0x4c4090=this[_0x49aec7(0x177)](_0x55788b);_0x1727f4[_0x49aec7(0x170)][_0x49aec7(0x180)](_0x4c4090);}[_0x1e0080(0x16b)](_0x173066,_0x6578ef){const _0x580cd5=_0x1e0080,_0x9ac4e2=this[_0x580cd5(0x15e)](_0x173066),_0x3a3116=new _0x50603a(this[_0x580cd5(0x164)],{'label':_0x6578ef[_0x580cd5(0x153)],'class':Hr});return _0x3a3116[_0x580cd5(0x154)][_0x580cd5(0x180)](_0x9ac4e2,0x0),_0x3a3116;}[_0x1e0080(0x15e)](_0x36a9ae){const _0x2500ae=_0x1e0080,_0x5e28e9=new _0x486e14(this[_0x2500ae(0x164)]);return _0x5e28e9[_0x2500ae(0x14c)]({'icon':_0x3dff87,'tooltip':_0x20b909(this[_0x2500ae(0x164)],_0x2500ae(0x182)),'tooltipPosition':'n','class':Or}),_0x5e28e9['on'](_0x2500ae(0x166),()=>{const _0x1c331e=_0x2500ae;_0x36a9ae[_0x1c331e(0x181)](),this[_0x1c331e(0x173)][_0x1c331e(0x152)]();}),_0x5e28e9;}[_0x1e0080(0x177)](_0xd4f6f5){const _0x4af17c=_0x1e0080,_0x427fc2=new _0x1a7ff8(this[_0x4af17c(0x164)],_0xd4f6f5);return _0x427fc2['on'](_0x4af17c(0x179),(_0x3509dc,_0x40e412)=>{const _0x2671ce=_0x4af17c;this[_0x2671ce(0x173)][_0x2671ce(0x16c)](_0x40e412);}),_0x427fc2['on'](_0x4af17c(0x15a),(_0x1cedf7,_0x1275f2)=>{const _0x59ba23=_0x4af17c;this[_0x59ba23(0x173)][_0x59ba23(0x169)](_0x1275f2[_0x59ba23(0x17c)],_0x1275f2[_0x59ba23(0x15f)]),this[_0x59ba23(0x168)](_0xd4f6f5['id']);}),_0x427fc2;}[_0x1e0080(0x15b)](_0xef8364){const _0x6a0434=_0x1e0080,_0x23bd47=_0xef8364[_0x6a0434(0x170)][_0x6a0434(0x174)](0x1);return _0x23bd47 instanceof _0x1a7ff8?_0x23bd47:null;}[_0x1e0080(0x163)](_0x4ab85a){const _0x21914a=_0x1e0080;_0x1ea25f({'emitter':_0x4ab85a,'contextElements':[_0x4ab85a[_0x21914a(0x14d)]],'callback':()=>{const _0x4bf04f=_0x21914a;_0x4ab85a[_0x4bf04f(0x181)](),this[_0x4bf04f(0x173)][_0x4bf04f(0x161)]();},'activator':()=>_0x4ab85a[_0x21914a(0x172)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x9f4379=_0x47d1;(function(_0x55a97a,_0xc7afa2){const _0x7dc4b8=_0x47d1,_0x430fe2=_0x55a97a();while(!![]){try{const _0x365b60=-parseInt(_0x7dc4b8(0xfc))/0x1+parseInt(_0x7dc4b8(0xfb))/0x2+-parseInt(_0x7dc4b8(0x114))/0x3+-parseInt(_0x7dc4b8(0x112))/0x4+parseInt(_0x7dc4b8(0x10e))/0x5*(-parseInt(_0x7dc4b8(0x103))/0x6)+parseInt(_0x7dc4b8(0x109))/0x7+parseInt(_0x7dc4b8(0x110))/0x8;if(_0x365b60===_0xc7afa2)break;else _0x430fe2['push'](_0x430fe2['shift']());}catch(_0x364fe5){_0x430fe2['push'](_0x430fe2['shift']());}}}(_0x195d,0x66cc1));function _0x47d1(_0x15b016,_0x36f351){const _0x195d3e=_0x195d();return _0x47d1=function(_0x47d191,_0x558aa9){_0x47d191=_0x47d191-0xf8;let _0x94c54d=_0x195d3e[_0x47d191];return _0x94c54d;},_0x47d1(_0x15b016,_0x36f351);}import{ListView as _0x32d660}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x1f118a}from'./aichatresourcelistitemview.js';const sc=_0x9f4379(0x115);export class AIChatContextResourcesListView extends _0x32d660{[_0x9f4379(0xf9)];constructor(_0x4e0c29,_0x467aad){const _0x1f78b7=_0x9f4379;super(_0x4e0c29),this[_0x1f78b7(0xf9)]=_0x467aad,this[_0x1f78b7(0x10f)]({'attributes':{'class':[sc]}});}[_0x9f4379(0x102)](_0x58cd6b,_0x1c044c){const _0x449a11=_0x9f4379;this[_0x449a11(0x106)][_0x449a11(0x116)]();let _0x37385a=_0x58cd6b;if(this[_0x449a11(0xf9)][_0x449a11(0xff)]&&_0x1c044c&&''!==_0x1c044c[_0x449a11(0xfe)]()){const _0x5cde4a=new RegExp(_0x1c044c[_0x449a11(0x101)](/[.*+?^${}()|[\]\\]/g,_0x449a11(0xfd)),'gi');_0x37385a=_0x58cd6b[_0x449a11(0x113)](_0x184924=>_0x5cde4a[_0x449a11(0x105)](_0x184924[_0x449a11(0x10b)]));}for(const _0x353755 of _0x37385a){const _0x3d443d=new _0x1f118a(this[_0x449a11(0x111)],_0x353755);_0x3d443d['on'](_0x449a11(0x104),()=>{const _0x28f709=_0x449a11;this[_0x28f709(0x100)](this[_0x28f709(0xf9)],_0x353755);}),this[_0x449a11(0x106)][_0x449a11(0x108)](_0x3d443d);}this[_0x449a11(0xf9)][_0x449a11(0xff)]&&this[_0x449a11(0x10a)](_0x1c044c);}[_0x9f4379(0x10a)](_0x380252){const _0x303768=_0x9f4379;this[_0x303768(0xf9)][_0x303768(0xff)]&&this[_0x303768(0x106)][_0x303768(0xf8)](_0xe447be=>{const _0x15e9cd=_0x303768;_0xe447be[_0x15e9cd(0x10a)](_0x380252);});}[_0x9f4379(0x107)](_0x323e9d,_0x4b680b){const _0x425204=_0x9f4379;for(const _0x170c86 of this[_0x425204(0x106)]){const _0x57fb5e=_0x170c86;_0x57fb5e[_0x425204(0xfa)]['id']===_0x323e9d&&_0x57fb5e[_0x425204(0x107)](_0x4b680b);}}[_0x9f4379(0x100)](_0x1e31d9,_0x582e2e){const _0x42e676=_0x9f4379;this[_0x42e676(0x10d)](_0x42e676(0x10c),{'source':_0x1e31d9,'resource':_0x582e2e});}}function _0x195d(){const _0x27682d=['test','items','updateResourceState','add','1710002RawrZp','highlightText','label','addResourceToContext','fire','1345SBXuVg','extendTemplate','13324960KdPApK','locale','3332248JsjSwD','filter','1207071UVdDQN','ck-ai-chat-resources__list','clear','forEach','_source','resource','1682754zWfEUj','679740EpvCVF','\x5c$&','trim','useDefaultFiltering','_handleResourceSelection','replace','setResources','9258pIVlDQ','execute'];_0x195d=function(){return _0x27682d;};return _0x195d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x22bdf4,IconView as _0x356c9e,LabeledFieldView as _0x4a1768,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x1346a4,IconCancel as _0x1726e4}from'ckeditor5/src/icons.js';import{getTranslation as _0xff1320}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x4a1768{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x3f081d){const t=_0x3f081d['t'],_0xf9d135={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0xff1320(_0x3f081d,'AI_CHAT_SEARCH_RESOURCES')};super(_0x3f081d,_0xf9d135['creator']),this['label']=_0xf9d135['label'],this['_viewConfig']=_0xf9d135,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x3f081d,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x1c2f4c){this['fire']('search',_0x1c2f4c);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x356c9e(),this['iconView']['content']=_0x1346a4,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x86a8c8,t){this['resetButtonView']=new _0x22bdf4(_0x86a8c8),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x1726e4,'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',_0x37ff88=>!_0x37ff88),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);}}
|