@ckeditor/ckeditor5-ai 47.3.0-alpha.7 → 47.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/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/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/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/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/createresizebutton.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/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.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/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/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
|
+
const _0x555038=_0x15ef;(function(_0x553bb9,_0x3308ad){const _0x4ba93c=_0x15ef,_0x437cf7=_0x553bb9();while(!![]){try{const _0x7992bf=-parseInt(_0x4ba93c(0x1c3))/0x1+parseInt(_0x4ba93c(0x1b3))/0x2+-parseInt(_0x4ba93c(0x1c0))/0x3*(-parseInt(_0x4ba93c(0x1b6))/0x4)+-parseInt(_0x4ba93c(0x1b9))/0x5*(-parseInt(_0x4ba93c(0x1a6))/0x6)+parseInt(_0x4ba93c(0x1d6))/0x7*(parseInt(_0x4ba93c(0x1aa))/0x8)+-parseInt(_0x4ba93c(0x1da))/0x9*(-parseInt(_0x4ba93c(0x1c8))/0xa)+parseInt(_0x4ba93c(0x1b4))/0xb*(-parseInt(_0x4ba93c(0x1d4))/0xc);if(_0x7992bf===_0x3308ad)break;else _0x437cf7['push'](_0x437cf7['shift']());}catch(_0x1a09dd){_0x437cf7['push'](_0x437cf7['shift']());}}}(_0x3ebd,0x1d696));import{ButtonView as _0x4c844e,IconView as _0x101fc3}from'ckeditor5/src/ui.js';function _0x15ef(_0x3f6c13,_0x246afd){const _0x3ebdc5=_0x3ebd();return _0x15ef=function(_0x15ef21,_0x5b7392){_0x15ef21=_0x15ef21-0x198;let _0x279c61=_0x3ebdc5[_0x15ef21];return _0x279c61;},_0x15ef(_0x3f6c13,_0x246afd);}function _0x3ebd(){const _0x449416=['653000lgqwMg','_initializeProperties','isVisible','lastIndexOf','removeEventListener','setTemplate','fire','small','isLoading','328164YSRjUS','1441Stjigk','execute','4HQSpQG','label','_handleAnimationEndOnce','5dvGcRY','element','ck-ai-chat-context-chip_new-chip','locale','ck-ai-chat-context-chip__type-icon','tooltip','add','81318ceEJfx','_createRemoveButton','itemType','143315nTqdHK','selection','_setupRemoveButtonEvent','slice','_createLoaderIcon','470pEbsKR','ck-ai-chat-context-chip__label','ck-ai-chat-context-controls__chip-tooltip','bind','classList','uiId','ck-ai-chat-context-chip_wide','render','webkitAnimationEnd','readonly','bindTemplate','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','30396HUIhxT','ck-ai-chat-context-chip','7TZmhLw','type','_isAnimationOnEnterEnabled','_createIconView','21591mQFzyn','document','ck-ai-chat-context-chip_document','removeContextItemChip','content','addEventListener','length','animationend','_createTemplateChildren','_createLabelElement','span','remove','disableAnimationOnEnter','div','ck-hidden','extendTemplate','1260252YHgSQO','set','_setupTemplate','_createTemplateAttributes'];_0x3ebd=function(){return _0x449416;};return _0x3ebd();}import{IconClose as _0x35776a,IconDocument as _0x21681a,IconFileUpload as _0x25d78d,IconLink as _0x20ca3b,IconSelection as _0x43fa46}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x34d30f}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x3dff25}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x25d78d,'document':_0x21681a,'web-resource':_0x20ca3b,'text':_0x25d78d,'selection':_0x43fa46},bn=_0x555038(0x1d5),wn=_0x555038(0x1ce),Tn=_0x555038(0x198),En=_0x555038(0x1c9),fn=_0x555038(0x1bd),An=_0x555038(0x1ca),Cn='n';export class AIChatContextItemButtonView extends _0x4c844e{constructor(_0x3b0e26,_0x12814f,_0x4ba47e,_0x4fc3f9,_0x659b0b=!0x1){const _0xb99868=_0x555038;super(_0x3b0e26),this[_0xb99868(0x1d8)]=_0x4fc3f9,this[_0xb99868(0x1ab)](_0x12814f,_0x4ba47e,_0x659b0b),this[_0xb99868(0x1a8)]();}[_0x555038(0x1cf)](){const _0x28b2f0=_0x555038;super[_0x28b2f0(0x1cf)](),this[_0x28b2f0(0x1d8)]&&this[_0x28b2f0(0x1ba)]&&(this[_0x28b2f0(0x1ba)][_0x28b2f0(0x1cc)][_0x28b2f0(0x1bf)](_0x28b2f0(0x1bb)),this[_0x28b2f0(0x1b8)](this[_0x28b2f0(0x1ba)],()=>{const _0x4303ca=_0x28b2f0;this[_0x4303ca(0x1ba)]&&this[_0x4303ca(0x1ba)][_0x4303ca(0x1cc)][_0x4303ca(0x1a1)](_0x4303ca(0x1bb));}));}[_0x555038(0x1a2)](){const _0x254284=_0x555038;this[_0x254284(0x1d8)]=!0x1,this[_0x254284(0x1ba)]&&this[_0x254284(0x1ba)][_0x254284(0x1cc)][_0x254284(0x1a1)](_0x254284(0x1bb));}[_0x555038(0x1ab)](_0x113daa,_0x5e4825,_0x30c950){const _0x5b2321=_0x555038;this[_0x5b2321(0x1a7)](_0x5b2321(0x1b7),_0x113daa[_0x5b2321(0x1b7)]),this[_0x5b2321(0x1a7)](_0x5b2321(0x1be),!0x0),this[_0x5b2321(0x1a7)](_0x5b2321(0x1c2),_0x113daa[_0x5b2321(0x1d7)]),this[_0x5b2321(0x1a7)]('id',_0x113daa[_0x5b2321(0x1cd)]),this[_0x5b2321(0x1a7)](_0x5b2321(0x1d1),_0x5e4825),this[_0x5b2321(0x1a7)](_0x5b2321(0x1b2),_0x30c950);}[_0x555038(0x1a8)](){const _0x5a4b9a=_0x555038,_0x1dd372=this[_0x5a4b9a(0x1d9)](),_0x28c508=this[_0x5a4b9a(0x1c1)](),_0x531540=this[_0x5a4b9a(0x1d2)];this[_0x5a4b9a(0x1af)]({'tag':_0x5a4b9a(0x1a3),'attributes':this[_0x5a4b9a(0x1a9)](_0x531540),'children':this[_0x5a4b9a(0x19e)](_0x1dd372,_0x28c508,_0x531540)});}[_0x555038(0x1a9)](_0x501baa){const _0x26eeca=_0x555038;return{'class':[bn,_0x501baa['if'](_0x26eeca(0x1c2),Tn,_0x3a88fe=>_0x26eeca(0x1db)==_0x3a88fe),_0x501baa['if'](_0x26eeca(0x1c2),wn,_0x1cbf0f=>_0x26eeca(0x1c4)==_0x1cbf0f)],'data-cke-tooltip-text':_0x501baa['to'](_0x26eeca(0x1b7),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x555038(0x19e)](_0x31cef9,_0x47a323,_0x3201cf){const _0x5eff0c=_0x555038,_0x4286d8=this[_0x5eff0c(0x19f)](_0x3201cf),_0x13b27d=this[_0x5eff0c(0x1c7)]();return this[_0x5eff0c(0x1d1)]?[_0x31cef9,_0x4286d8]:[_0x31cef9,_0x13b27d,_0x4286d8,_0x47a323];}[_0x555038(0x19f)](_0x3195b9){const _0x2da849=_0x555038;return{'tag':_0x2da849(0x1a0),'attributes':{'class':En},'children':[{'text':_0x3195b9['to'](_0x2da849(0x1b7))}]};}[_0x555038(0x1c1)](){const _0x363e2e=_0x555038,_0x47f855=new _0x4c844e(this[_0x363e2e(0x1bc)]);return _0x47f855[_0x363e2e(0x1a7)]({'label':_0x34d30f(this[_0x363e2e(0x1bc)],_0x363e2e(0x1d3)),'icon':_0x35776a}),this[_0x363e2e(0x1c5)](_0x47f855),_0x47f855;}[_0x555038(0x1c5)](_0x5f2ff6){const _0x29bc23=_0x555038;_0x5f2ff6['on'](_0x29bc23(0x1b5),()=>{const _0x154890=_0x29bc23;this[_0x154890(0x1b0)](_0x154890(0x199),this['id']);});}[_0x555038(0x1d9)](){const _0x55d35e=_0x555038,_0x323a0a=this[_0x55d35e(0x1d2)],_0x31c5cd=new _0x101fc3();return _0x31c5cd[_0x55d35e(0x19a)]=xn[this[_0x55d35e(0x1c2)]],_0x31c5cd[_0x55d35e(0x1a5)]({'attributes':{'class':[fn,_0x323a0a['if'](_0x55d35e(0x1b2),_0x55d35e(0x1a4),_0x5ce6b7=>_0x5ce6b7)]}}),_0x31c5cd;}[_0x555038(0x1b8)](_0x54499d,_0x24cbce){const _0x2f9a06=_0x555038;if(!_0x54499d)return;const _0x420463=()=>{const _0xd9ec0e=_0x15ef;_0x24cbce(),_0x54499d[_0xd9ec0e(0x1ae)](_0xd9ec0e(0x19d),_0x420463),_0x54499d[_0xd9ec0e(0x1ae)](_0xd9ec0e(0x1d0),_0x420463);};_0x54499d[_0x2f9a06(0x19b)](_0x2f9a06(0x19d),_0x420463),_0x54499d[_0x2f9a06(0x19b)](_0x2f9a06(0x1d0),_0x420463);}[_0x555038(0x1c7)](){const _0x922102=_0x555038,_0x274d90=new _0x3dff25(_0x922102(0x1b1));return _0x274d90[_0x922102(0x1cb)](_0x922102(0x1ac))['to'](this,_0x922102(0x1b2),_0x51208e=>_0x51208e),_0x274d90;}}function In(_0x278f86){const _0x3f0987=_0x555038;if(!_0x278f86)return _0x278f86;if(_0x278f86[_0x3f0987(0x19c)]<=0x78)return _0x278f86;const _0x358bc=_0x278f86[_0x3f0987(0x1c6)](0x0,0x78),_0x51fdf1=_0x358bc[_0x3f0987(0x1ad)]('\x20');return(_0x51fdf1>0x0?_0x358bc[_0x3f0987(0x1c6)](0x0,_0x51fdf1):_0x358bc)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f4291=_0x44c9;function _0x44c9(_0x3089d2,_0x4cfe0c){const _0xca3c56=_0xca3c();return _0x44c9=function(_0x44c9dc,_0x2befd2){_0x44c9dc=_0x44c9dc-0x14e;let _0x19e59c=_0xca3c56[_0x44c9dc];return _0x19e59c;},_0x44c9(_0x3089d2,_0x4cfe0c);}(function(_0x44a94a,_0x3de9e0){const _0xfbfd99=_0x44c9,_0x3f400a=_0x44a94a();while(!![]){try{const _0x46af3a=-parseInt(_0xfbfd99(0x175))/0x1*(-parseInt(_0xfbfd99(0x185))/0x2)+parseInt(_0xfbfd99(0x18e))/0x3*(parseInt(_0xfbfd99(0x16f))/0x4)+parseInt(_0xfbfd99(0x181))/0x5+-parseInt(_0xfbfd99(0x167))/0x6+-parseInt(_0xfbfd99(0x196))/0x7+parseInt(_0xfbfd99(0x164))/0x8*(-parseInt(_0xfbfd99(0x18d))/0x9)+parseInt(_0xfbfd99(0x172))/0xa;if(_0x46af3a===_0x3de9e0)break;else _0x3f400a['push'](_0x3f400a['shift']());}catch(_0x1f6549){_0x3f400a['push'](_0x3f400a['shift']());}}}(_0xca3c,0x886fd));import{FocusTracker as _0x19992d,KeystrokeHandler as _0x5463e7}from'ckeditor5/src/utils.js';import{ButtonView as _0x266e96,FocusCycler as _0x34d381,LabeledFieldView as _0x8ffdfc,View as _0x251757,FormHeaderView as _0x4a5c42,createLabeledInputText as _0x2c39f2,submitHandler as _0x419fb0}from'ckeditor5/src/ui.js';import{IconCheck as _0x3b198d,IconPreviousArrow as _0x404aab}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x44b068}from'../../../aicore/utils/common-translations.js';function _0xca3c(){const _0x38e386=['shift+tab','_createUrlInputField','backButton','ck-button-icon\x20ck-button-back','getValue','4584VAdEhV','destroy','fire','4190730DfmCvW','_setupTemplate','urlInputField','div','locale','setError','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-ai-chat-context-controls__url-input-section','18672VRnzVJ','length','forEach','855360jFfTiD','_createConfirmButton','add','9539LSIcWN','input','render','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','set','stop','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','AI_CHAT_CONTEXT_URL_ADD_URL','form','focus','AI_CHAT_CONTEXT_URL_INVALID_ERROR','execute','3041165TtSttK','refreshBalloon','_setupKeystrokes','_updateConfirmButtonState','122dIMySf','AI_CHAT_CONTEXT_URL_LABEL','children','esc','_handleSubmit','focusCycler','tab','clearError','81aSZjYO','186HCRREB','errorText','ck-labeled-field-view_empty','submit','ck-ai-chat-context-controls__url-form','isEnabled','_setupEventHandlers','element','2118249HVZIiD','setTemplate','_createBackButton','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_focusables','trim','_isValidUrl','submitUrl','clear','confirmButton','fieldView','keystrokes','focusTracker','value','createCollection','ck-button-icon','listenTo','cancel'];_0xca3c=function(){return _0x38e386;};return _0xca3c();}const ch=_0x2f4291(0x192),nh=_0x2f4291(0x16e);export class AIChatContextPanelUrlInputView extends _0x251757{[_0x2f4291(0x159)];[_0x2f4291(0x158)];[_0x2f4291(0x151)];[_0x2f4291(0x18a)];[_0x2f4291(0x169)];[_0x2f4291(0x161)];[_0x2f4291(0x156)];constructor(_0x130361){const _0x36c367=_0x2f4291;super(_0x130361),this[_0x36c367(0x159)]=new _0x19992d(),this[_0x36c367(0x158)]=new _0x5463e7(),this[_0x36c367(0x161)]=this[_0x36c367(0x14f)](),this[_0x36c367(0x169)]=this[_0x36c367(0x160)](),this[_0x36c367(0x156)]=this[_0x36c367(0x173)](),this[_0x36c367(0x151)]=this[_0x36c367(0x15b)]([this[_0x36c367(0x161)],this[_0x36c367(0x169)],this[_0x36c367(0x156)]]),this[_0x36c367(0x18a)]=new _0x34d381({'focusables':this[_0x36c367(0x151)],'focusTracker':this[_0x36c367(0x159)],'keystrokeHandler':this[_0x36c367(0x158)],'actions':{'focusPrevious':_0x36c367(0x15f),'focusNext':_0x36c367(0x18b)}}),this[_0x36c367(0x168)](),this[_0x36c367(0x194)](),this[_0x36c367(0x183)]();}[_0x2f4291(0x177)](){const _0x2500e9=_0x2f4291;super[_0x2500e9(0x177)](),this[_0x2500e9(0x151)][_0x2500e9(0x171)](_0x4a90d7=>{const _0x1b587c=_0x2500e9;this[_0x1b587c(0x159)][_0x1b587c(0x174)](_0x4a90d7[_0x1b587c(0x195)]),this[_0x1b587c(0x158)][_0x1b587c(0x15d)](_0x4a90d7[_0x1b587c(0x195)]);}),_0x419fb0({'view':this}),this[_0x2500e9(0x17e)]();}[_0x2f4291(0x165)](){const _0x5b2139=_0x2f4291;super[_0x5b2139(0x165)](),this[_0x5b2139(0x159)][_0x5b2139(0x165)](),this[_0x5b2139(0x158)][_0x5b2139(0x165)]();}[_0x2f4291(0x17e)](){const _0x2818bf=_0x2f4291;this[_0x2818bf(0x169)][_0x2818bf(0x17e)]();}[_0x2f4291(0x163)](){const _0x5d31d6=_0x2f4291;return this[_0x5d31d6(0x169)][_0x5d31d6(0x157)][_0x5d31d6(0x195)]?.[_0x5d31d6(0x15a)]?.[_0x5d31d6(0x152)]()||'';}[_0x2f4291(0x155)](){const _0x172337=_0x2f4291;this[_0x172337(0x169)][_0x172337(0x157)][_0x172337(0x195)][_0x172337(0x15a)]='',this[_0x172337(0x169)][_0x172337(0x18f)]=null,this[_0x172337(0x156)][_0x172337(0x193)]=!0x1;}[_0x2f4291(0x16c)](_0x2978f7){const _0x2053e3=_0x2f4291;this[_0x2053e3(0x169)][_0x2053e3(0x18f)]=_0x2978f7,this[_0x2053e3(0x184)](),this[_0x2053e3(0x166)](_0x2053e3(0x182));}[_0x2f4291(0x18c)](){const _0x491d16=_0x2f4291;this[_0x491d16(0x169)][_0x491d16(0x18f)]=null,this[_0x491d16(0x184)]();}[_0x2f4291(0x14f)](){const _0xf0cd19=_0x2f4291,_0xddd2b9=new _0x266e96(this[_0xf0cd19(0x16b)]);return _0xddd2b9[_0xf0cd19(0x179)]({'icon':_0x404aab,'tooltip':_0x44b068(this[_0xf0cd19(0x16b)],_0xf0cd19(0x16d)),'tooltipPosition':'n','class':_0xf0cd19(0x162)}),_0xddd2b9;}[_0x2f4291(0x160)](){const _0x1d19ca=_0x2f4291,_0x1ef6d7=new _0x8ffdfc(this[_0x1d19ca(0x16b)],_0x2c39f2);return _0x1ef6d7[_0x1d19ca(0x179)]({'label':_0x44b068(this[_0x1d19ca(0x16b)],_0x1d19ca(0x186)),'class':_0x1d19ca(0x190)}),_0x1ef6d7[_0x1d19ca(0x157)][_0x1d19ca(0x179)]({'placeholder':_0x44b068(this[_0x1d19ca(0x16b)],_0x1d19ca(0x150))}),_0x1ef6d7;}[_0x2f4291(0x173)](){const _0x29ec43=_0x2f4291,_0x34e4fc=new _0x266e96(this[_0x29ec43(0x16b)]);return _0x34e4fc[_0x29ec43(0x179)]({'icon':_0x3b198d,'tooltip':_0x44b068(this[_0x29ec43(0x16b)],_0x29ec43(0x17c)),'tooltipPosition':'n','class':_0x29ec43(0x15c),'type':_0x29ec43(0x191),'isEnabled':!0x1}),_0x34e4fc;}[_0x2f4291(0x168)](){const _0x485b9d=_0x2f4291,_0x363114=new _0x4a5c42(this[_0x485b9d(0x16b)],{'label':_0x44b068(this[_0x485b9d(0x16b)],_0x485b9d(0x17c)),'class':_0x485b9d(0x178)});_0x363114[_0x485b9d(0x187)][_0x485b9d(0x174)](this[_0x485b9d(0x161)],0x0),this[_0x485b9d(0x14e)]({'tag':_0x485b9d(0x17d),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x363114,{'tag':_0x485b9d(0x16a),'attributes':{'class':nh},'children':[this[_0x485b9d(0x169)],this[_0x485b9d(0x156)]]}]});}[_0x2f4291(0x194)](){const _0x3e22af=_0x2f4291;this[_0x3e22af(0x161)]['on'](_0x3e22af(0x180),()=>{const _0x54ebcb=_0x3e22af;this[_0x54ebcb(0x155)](),this[_0x54ebcb(0x166)](_0x54ebcb(0x15e));}),this[_0x3e22af(0x169)][_0x3e22af(0x157)]['on'](_0x3e22af(0x176),()=>{const _0x42153a=_0x3e22af;this[_0x42153a(0x18c)](),this[_0x42153a(0x184)](),this[_0x42153a(0x166)](_0x42153a(0x182));}),this['on'](_0x3e22af(0x191),_0x435575=>{const _0x249c95=_0x3e22af;_0x435575[_0x249c95(0x17a)](),this[_0x249c95(0x189)]();});}[_0x2f4291(0x183)](){const _0x3a461d=_0x2f4291;this[_0x3a461d(0x158)][_0x3a461d(0x179)](_0x3a461d(0x188),(_0x564689,_0x2914be)=>{const _0x2f2ef8=_0x3a461d;this[_0x2f2ef8(0x155)](),this[_0x2f2ef8(0x166)](_0x2f2ef8(0x15e)),_0x2914be();});}[_0x2f4291(0x189)](){const _0x346341=_0x2f4291,_0x441f5d=this[_0x346341(0x163)]()[_0x346341(0x152)]();_0x441f5d?this[_0x346341(0x153)](_0x441f5d)?(this[_0x346341(0x18c)](),this[_0x346341(0x166)](_0x346341(0x154),_0x441f5d)):this[_0x346341(0x16c)](_0x44b068(this[_0x346341(0x16b)],_0x346341(0x17f))):this[_0x346341(0x16c)](_0x44b068(this[_0x346341(0x16b)],_0x346341(0x17b)));}[_0x2f4291(0x184)](){const _0x4890fa=_0x2f4291,_0x9ece08=this[_0x4890fa(0x163)]()[_0x4890fa(0x152)](),_0x554c5d=!!this[_0x4890fa(0x169)][_0x4890fa(0x18f)];this[_0x4890fa(0x156)][_0x4890fa(0x193)]=_0x9ece08[_0x4890fa(0x170)]>0x0&&!_0x554c5d;}[_0x2f4291(0x153)](_0x2d1f37){try{return!!new URL(_0x2d1f37);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x24d9(_0x454858,_0x4360f1){const _0x4adc95=_0x4adc();return _0x24d9=function(_0x24d961,_0xfa4d0b){_0x24d961=_0x24d961-0x1d0;let _0x489bed=_0x4adc95[_0x24d961];return _0x489bed;},_0x24d9(_0x454858,_0x4360f1);}const _0x1b294a=_0x24d9;(function(_0x402a09,_0x300083){const _0x1c5eab=_0x24d9,_0xd77907=_0x402a09();while(!![]){try{const _0x46b0ce=-parseInt(_0x1c5eab(0x261))/0x1*(-parseInt(_0x1c5eab(0x24e))/0x2)+-parseInt(_0x1c5eab(0x238))/0x3*(-parseInt(_0x1c5eab(0x228))/0x4)+-parseInt(_0x1c5eab(0x217))/0x5*(parseInt(_0x1c5eab(0x23d))/0x6)+-parseInt(_0x1c5eab(0x23e))/0x7*(-parseInt(_0x1c5eab(0x208))/0x8)+parseInt(_0x1c5eab(0x1f8))/0x9+parseInt(_0x1c5eab(0x1e3))/0xa*(-parseInt(_0x1c5eab(0x25d))/0xb)+-parseInt(_0x1c5eab(0x24b))/0xc;if(_0x46b0ce===_0x300083)break;else _0xd77907['push'](_0xd77907['shift']());}catch(_0x416a64){_0xd77907['push'](_0xd77907['shift']());}}}(_0x4adc,0x6b2d9));import{BalloonPanelView as _0x70fcb2,ButtonView as _0x1d78a3,clickOutsideHandler as _0x236d5d,FileDialogButtonView as _0x570aca,IconView as _0x5590e3,View as _0x130c3f}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x158680,IconDocument as _0x1aa855,IconDocumentOutline as _0x4213dc,IconDropdownArrow as _0x2acf06,IconLink as _0x50e3a5,IconPaperClip as _0x577500}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x264106}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x3b6efd}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x3d31e7}from'./aichatchipsoverflowmanager.js';function _0x4adc(){const _0x510720=['showSourceResourcesBalloon','setConversationContext','_addContextBalloonConfig','setTemplate','cancel','showUrlBalloonPanel','updateResourceState','_addContextToCollection','ck-ai-chat-context-controls__balloon-button-source','overflowChips','__arrow','done','isReadOnly','fire','11rxwZUY','ck-ai-chat-controls-button','_createAddContextButtonView','files','2041pxJUgL','_createArrowView','_setAddContextButtonEnabled','addContextItem','isVisible','reorganizeChips','addFileToContext','conversation','populateSourceResourceBalloon','isHidden','execute','addResourceToContext','_showSourceResourcesBalloon','ck-ai-chat-context-controls__show-more-balloon-panel','_handleAddContextButtonClick','showAddContextBalloonPanel','addContextButtonView','northArrowSouthEast','div','balloonView','6563660QLJKIM','defaultPositions','menuitem','setAddContextOptions','sources','isLoading','_setupUrlBalloonClickOutsideHandler','_createUrlBalloonPanelView','loadSourceResources','setContextItemLoading','isEnabled','clearCurrentContextItems','ck-ai-chat-controls_context_show-more-button','northArrowSouth','submitUrl','render','hideAddContextBalloonPanel','urls','arrowView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','hide','1236213ZjeBng','_createBalloonButton','_setupTemplate','closeSourceResourceBalloon','searchInputVisibleFrom','body','ck-ai-chat-context-controls__add-context-balloon-panel','_toggleAddContextBalloon','clearConversationContextItems','isOn','content','_setupAllBalloonClickOutsideHandlers','ck-ai-chat-context-chips-wrapper-balloon','_overflowManager','source','_createBaseBalloonPanel','15328ZJNmQY','southArrowNorth','_resourcesBalloonView','southArrowNorthEast','_setBalloonPanelContent','hideUrlBalloonPanel','_currentContextsChips','_createAddContextBalloonPanelView','AI_CHAT_CONTEXT_ADD_CONTEXT','icon','AI_CHAT_CONTEXT_FILE_LABEL','buttonView','focus','ck-ai-chat-context-controls__pending-contexts','set','868435TawxoW','createCollection','addUrlToContext','_createResourcesBalloonView','_urlBalloonPanelView','ck-reset_all-excluded','tooltip','_removeContextFromCollection','ck-ai-chat','closest','_conversationContextsChips','label','_createContextButton','bodyCollection','_setupAddContextBalloonClickOutsideHandler','type','ck-ai-chat-context-controls','261176umwYwv','ck-ai-chat-context-controls__add-context-button','remove','setContainerElement','isAnyResourceBalloonVisible','AI_CHAT_CONTEXT_URL_LABEL','locale','extendTemplate','addDocumentToContext','clear','southArrowNorthWest','enabled','add','bind','_addContextBalloonPanelView','_addUrlContent','39rfUxmZ','destroy','_handleUrlSubmit','refreshBalloon','pin','30HCumzt','2569GUFRdP','_urlInputView','element','_bindEventHandlers','removeContextItemChip','ck-ai-chat-context-controls__url-balloon-panel','northArrowSouthWest','current','show','document','find','_getLimiterElement','ck-ai-chat-context-controls__balloon-button','1653972EwmWFi','removeContextItem','children','404kFIMcM'];_0x4adc=function(){return _0x510720;};return _0x4adc();}import{getTranslation as _0x224cf3}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5ebf0f}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x1b294a(0x230),_0x1b294a(0x1d5),_0x1b294a(0x219),_0x1b294a(0x1da),_0x1b294a(0x24c),_0x1b294a(0x1eb)];const Po=_0x1b294a(0x227),Ro=_0x1b294a(0x215),Uo=_0x1b294a(0x1fe),Lo=_0x1b294a(0x229),No=_0x1b294a(0x243),Oo=_0x1b294a(0x24a),Mo=_0x1b294a(0x257),bo=_0x1b294a(0x25e),Ho=_0x1b294a(0x204),vo=_0x1b294a(0x1ef),jo=_0x1b294a(0x1dc),Fo=_0x1b294a(0x21f),Xo=[_0x70fcb2[_0x1b294a(0x1e4)][_0x1b294a(0x244)],_0x70fcb2[_0x1b294a(0x1e4)][_0x1b294a(0x1f0)],_0x70fcb2[_0x1b294a(0x1e4)][_0x1b294a(0x1e0)],_0x70fcb2[_0x1b294a(0x1e4)][_0x1b294a(0x232)],_0x70fcb2[_0x1b294a(0x1e4)][_0x1b294a(0x209)],_0x70fcb2[_0x1b294a(0x1e4)][_0x1b294a(0x20b)]];export class AIChatContextPanelView extends _0x130c3f{[_0x1b294a(0x1df)];[_0x1b294a(0x20e)]=this[_0x1b294a(0x218)]();[_0x1b294a(0x221)]=this[_0x1b294a(0x218)]();[_0x1b294a(0x205)];[_0x1b294a(0x236)];[_0x1b294a(0x21b)];[_0x1b294a(0x23f)];[_0x1b294a(0x20a)];[_0x1b294a(0x251)];[_0x1b294a(0x224)];constructor(_0x5ddb11,_0xa0209d){const _0x4b2481=_0x1b294a;super(_0x5ddb11),this[_0x4b2481(0x224)]=_0xa0209d[_0x4b2481(0x224)],this[_0x4b2481(0x20e)]=this[_0x4b2481(0x218)](),this[_0x4b2481(0x221)]=this[_0x4b2481(0x218)](),this[_0x4b2481(0x1df)]=this[_0x4b2481(0x25f)](_0x5ddb11),this[_0x4b2481(0x236)]=this[_0x4b2481(0x20f)](_0x5ddb11),this[_0x4b2481(0x21b)]=this[_0x4b2481(0x1ea)](_0x5ddb11),this[_0x4b2481(0x20a)]=this[_0x4b2481(0x21a)](_0x5ddb11,_0xa0209d);const _0x4b2b5d={'cssClasses':{'showMoreButton':vo,'showMoreBalloon':jo,'overflowContainer':Ho,'controlsButton':bo}};this[_0x4b2481(0x205)]=new _0x3d31e7(_0x5ddb11,this[_0x4b2481(0x20e)],_0x4b2b5d,this[_0x4b2481(0x224)],this),this[_0x4b2481(0x251)]={'buttonView':this[_0x4b2481(0x1df)],'balloonView':this[_0x4b2481(0x236)],'hideMethod':this[_0x4b2481(0x1f3)][_0x4b2481(0x235)](this),'showMethod':this[_0x4b2481(0x1de)][_0x4b2481(0x235)](this)},this[_0x4b2481(0x1fa)](),this[_0x4b2481(0x241)]();}[_0x1b294a(0x1f2)](){const _0x3eac90=_0x1b294a;super[_0x3eac90(0x1f2)](),this[_0x3eac90(0x203)](),this[_0x3eac90(0x205)][_0x3eac90(0x22b)](this[_0x3eac90(0x240)]),this[_0x3eac90(0x205)][_0x3eac90(0x1d4)]();}[_0x1b294a(0x239)](){const _0xbe021e=_0x1b294a;super[_0xbe021e(0x239)](),this[_0xbe021e(0x205)][_0xbe021e(0x239)](),this[_0xbe021e(0x20a)][_0xbe021e(0x239)]();}[_0x1b294a(0x1d2)](_0x31ec36,_0x3747b6){const _0x385245=_0x1b294a,_0x2ddcda=this[_0x385245(0x223)](_0x31ec36,_0x385245(0x245),!0x0,_0x3747b6);this[_0x385245(0x256)](_0x2ddcda,this[_0x385245(0x20e)]),this[_0x385245(0x205)][_0x385245(0x1d4)]();}[_0x1b294a(0x24c)](_0x47b2cf){const _0x3e584d=_0x1b294a;this[_0x3e584d(0x21e)](_0x47b2cf,this[_0x3e584d(0x20e)]),this[_0x3e584d(0x21e)](_0x47b2cf,this[_0x3e584d(0x205)][_0x3e584d(0x258)]),this[_0x3e584d(0x205)][_0x3e584d(0x1d4)]();}[_0x1b294a(0x1ec)](_0x5219c9,_0x2f92e6){const _0xb45ded=_0x1b294a;let _0x423291=this[_0xb45ded(0x20e)][_0xb45ded(0x248)](_0x20145b=>_0x20145b['id']===_0x5219c9);_0x423291||(_0x423291=this[_0xb45ded(0x205)][_0xb45ded(0x258)][_0xb45ded(0x248)](_0x230fd0=>_0x230fd0['id']===_0x5219c9)),_0x423291&&(_0x423291[_0xb45ded(0x1e8)]=_0x2f92e6);}[_0x1b294a(0x250)](_0x282fde){const _0x51c192=_0x1b294a;this[_0x51c192(0x221)][_0x51c192(0x231)]();for(const _0x4efe24 of _0x282fde){const _0x45db9f=this[_0x51c192(0x223)](_0x4efe24,_0x51c192(0x1d6),!0x1,!0x1);this[_0x51c192(0x256)](_0x45db9f,this[_0x51c192(0x221)]);}}[_0x1b294a(0x1ee)](){const _0x5c91b0=_0x1b294a;this[_0x5c91b0(0x20e)][_0x5c91b0(0x231)](),this[_0x5c91b0(0x205)][_0x5c91b0(0x231)]();}[_0x1b294a(0x200)](){const _0x148e6a=_0x1b294a;this[_0x148e6a(0x221)][_0x148e6a(0x231)]();}[_0x1b294a(0x255)](_0x1c7a37,_0x596176,_0x1dcfdb){const _0x4ba7d0=_0x1b294a;this[_0x4ba7d0(0x20a)][_0x4ba7d0(0x255)](_0x1c7a37,_0x596176,_0x1dcfdb);}[_0x1b294a(0x1f3)](){const _0x21e0b2=_0x1b294a;this[_0x21e0b2(0x1ff)](!0x1);}[_0x1b294a(0x1de)](){const _0x412460=_0x1b294a;this[_0x412460(0x1ff)](!0x0);}[_0x1b294a(0x20d)](){const _0x4c0440=_0x1b294a;this[_0x4c0440(0x21b)][_0x4c0440(0x1f7)](),this[_0x4c0440(0x1df)][_0x4c0440(0x201)]=!0x1,this[_0x4c0440(0x23f)]&&this[_0x4c0440(0x23f)][_0x4c0440(0x231)]();}[_0x1b294a(0x254)](){const _0x43bc8b=_0x1b294a;this[_0x43bc8b(0x21b)][_0x43bc8b(0x246)](),this[_0x43bc8b(0x1df)][_0x43bc8b(0x201)]=!0x0;}[_0x1b294a(0x1db)](_0x273834){const _0x1abdb5=_0x1b294a;this[_0x1abdb5(0x20a)][_0x1abdb5(0x24f)](_0x273834),this[_0x1abdb5(0x1df)][_0x1abdb5(0x201)]=!0x0;}[_0x1b294a(0x1d7)](_0xfc8449,_0x5aab99,_0x16e80d,_0xbc82f4){const _0x275602=_0x1b294a;this[_0x275602(0x20a)][_0x275602(0x1d7)](_0xfc8449,_0x16e80d,_0xbc82f4);}[_0x1b294a(0x1fb)](_0x11fdaa){const _0x4e651d=_0x1b294a;this[_0x4e651d(0x20a)][_0x4e651d(0x1fb)](_0x11fdaa),this[_0x4e651d(0x1df)][_0x4e651d(0x201)]=!0x1;}[_0x1b294a(0x1e6)](_0x56b0e6){const _0x1c39a4=_0x1b294a;this[_0x1c39a4(0x20c)](this[_0x1c39a4(0x236)],this[_0x1c39a4(0x22e)],_0x56b0e6),this[_0x1c39a4(0x1d1)](_0x56b0e6);}[_0x1b294a(0x1d1)](_0x4564e0){const _0x55e99d=_0x1b294a,_0x5c6d9d=!_0x4564e0[_0x55e99d(0x247)][_0x55e99d(0x1d8)]&&_0x4564e0[_0x55e99d(0x247)][_0x55e99d(0x233)],_0xd311f7=_0x4564e0[_0x55e99d(0x1f4)][_0x55e99d(0x233)],_0x4df923=_0x4564e0[_0x55e99d(0x260)][_0x55e99d(0x233)];this[_0x55e99d(0x1df)][_0x55e99d(0x1ed)]=_0x5c6d9d||_0xd311f7||_0x4df923;}[_0x1b294a(0x1fa)](){const _0x5ba627=_0x1b294a;this[_0x5ba627(0x252)]({'tag':_0x5ba627(0x1e1),'attributes':{'class':[Po,_0x5ba627(0x21c)]},'children':[{'tag':_0x5ba627(0x1e1),'attributes':{'class':Ro},'children':this[_0x5ba627(0x20e)]}]});}[_0x1b294a(0x241)](){const _0x43734e=_0x1b294a;this[_0x43734e(0x1df)]['on'](_0x43734e(0x1d9),()=>{const _0x5cbb78=_0x43734e;this[_0x5cbb78(0x1dd)]();});}[_0x1b294a(0x25f)](_0x43b2db){const _0x1af8bc=_0x1b294a,_0x3c3e9d=new _0x1d78a3(_0x43b2db);return _0x3c3e9d[_0x1af8bc(0x216)]({'label':_0x224cf3(_0x43b2db,_0x1af8bc(0x210)),'class':bo+'\x20'+Lo,'icon':_0x577500,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x3c3e9d;}[_0x1b294a(0x20f)](_0xfb84e8){const _0x30f608=_0x1b294a;return this[_0x30f608(0x207)](_0xfb84e8,Uo);}[_0x1b294a(0x1ea)](_0x1f6728){const _0x1aed2b=_0x1b294a,_0x528397=this[_0x1aed2b(0x207)](_0x1f6728,No);return this[_0x1aed2b(0x237)](_0x528397,_0x1f6728),_0x528397;}[_0x1b294a(0x21a)](_0xee2fbf,_0x3f1f04){const _0x48fcce=_0x1b294a,_0x7668ad={'searchInputVisibleFrom':_0x3f1f04[_0x48fcce(0x1fc)],'onBackToContext':()=>{const _0x56fa56=_0x48fcce;this[_0x56fa56(0x1de)](),this[_0x56fa56(0x236)][_0x56fa56(0x23c)]({'target':this[_0x56fa56(0x1df)][_0x56fa56(0x240)],'limiter':this[_0x56fa56(0x249)](),'positions':Xo});},'onResourceSelected':(_0x317de8,_0xd3eb4e)=>{const _0x38cc6a=_0x48fcce;this[_0x38cc6a(0x25c)](_0x38cc6a(0x1da),{'source':_0x317de8,'resource':_0xd3eb4e});},'onLoadSourceResources':_0x183462=>{const _0x3a84e7=_0x48fcce;this[_0x3a84e7(0x25c)](_0x3a84e7(0x1eb),_0x183462);},'onBalloonClosed':()=>{const _0x4af6d7=_0x48fcce;this[_0x4af6d7(0x1df)][_0x4af6d7(0x201)]=!0x1;},'getLimiterElement':()=>this[_0x48fcce(0x249)](),'getTargetElement':()=>this[_0x48fcce(0x1df)][_0x48fcce(0x240)]};return new _0x5ebf0f(_0xee2fbf,_0x3f1f04[_0x48fcce(0x224)],_0x7668ad);}[_0x1b294a(0x249)](){const _0x37fe06=_0x1b294a;return this[_0x37fe06(0x240)]?.[_0x37fe06(0x220)]('.'+Fo)||document[_0x37fe06(0x1fd)];}[_0x1b294a(0x207)](_0x13202c,_0x2c7f1d){const _0x48f0c5=_0x1b294a,_0x35e28f=new _0x70fcb2(_0x13202c);return _0x35e28f[_0x48f0c5(0x22f)]({'attributes':{'class':_0x2c7f1d}}),this[_0x48f0c5(0x224)][_0x48f0c5(0x234)](_0x35e28f),_0x35e28f;}[_0x1b294a(0x20c)](_0x1b4a10,_0x1a1789,_0x3f076a){const _0x59a9b3=_0x1b294a;if(_0x1b4a10[_0x59a9b3(0x202)][_0x59a9b3(0x231)](),!_0x3f076a[_0x59a9b3(0x247)][_0x59a9b3(0x1d8)]&&_0x3f076a[_0x59a9b3(0x247)][_0x59a9b3(0x233)]){const _0x1f0cbe=this[_0x59a9b3(0x1f9)](_0x1a1789,{'label':_0x224cf3(_0x1a1789,_0x59a9b3(0x1f6)),'icon':_0x1aa855});_0x1f0cbe['on'](_0x59a9b3(0x1d9),()=>{const _0x33ac0b=_0x59a9b3;this[_0x33ac0b(0x25c)](_0x33ac0b(0x230)),this[_0x33ac0b(0x1f3)]();}),_0x1b4a10[_0x59a9b3(0x202)][_0x59a9b3(0x234)](_0x1f0cbe);}if(_0x3f076a[_0x59a9b3(0x1f4)][_0x59a9b3(0x233)]){const _0x2b5af1=this[_0x59a9b3(0x1f9)](_0x1a1789,{'label':_0x224cf3(_0x1a1789,_0x59a9b3(0x22d)),'icon':_0x50e3a5});_0x2b5af1['on'](_0x59a9b3(0x1d9),()=>{const _0x5b2dc8=_0x59a9b3;this[_0x5b2dc8(0x1f3)](),this[_0x5b2dc8(0x254)](),this[_0x5b2dc8(0x21b)][_0x5b2dc8(0x23c)]({'target':this[_0x5b2dc8(0x1df)][_0x5b2dc8(0x240)],'limiter':this[_0x5b2dc8(0x249)](),'positions':Xo}),this[_0x5b2dc8(0x23f)][_0x5b2dc8(0x214)]();}),_0x1b4a10[_0x59a9b3(0x202)][_0x59a9b3(0x234)](_0x2b5af1);}if(_0x3f076a[_0x59a9b3(0x260)][_0x59a9b3(0x233)]){const _0x26dd60=new _0x570aca(_0x1a1789);_0x26dd60[_0x59a9b3(0x216)]({'label':_0x224cf3(_0x1a1789,_0x59a9b3(0x212)),'icon':_0x158680,'withText':!0x0,'tooltip':!0x0,'class':Oo,'allowMultipleFiles':!0x0}),_0x26dd60['on'](_0x59a9b3(0x25a),(_0x22cf66,_0x4b9a9a)=>{const _0x261ccc=_0x59a9b3;this[_0x261ccc(0x25c)](_0x261ccc(0x1d5),_0x4b9a9a),this[_0x261ccc(0x1f3)]();}),_0x26dd60[_0x59a9b3(0x21d)]=!0x0,_0x1b4a10[_0x59a9b3(0x202)][_0x59a9b3(0x234)](_0x26dd60);}for(const _0x239fcf of _0x3f076a[_0x59a9b3(0x1e7)]){const _0x931a63=this[_0x59a9b3(0x1f9)](_0x1a1789,{'label':_0x239fcf[_0x59a9b3(0x222)],'icon':_0x239fcf[_0x59a9b3(0x211)]||_0x4213dc,'type':_0x59a9b3(0x206)});_0x1b4a10[_0x59a9b3(0x202)][_0x59a9b3(0x234)](_0x931a63),_0x931a63['on'](_0x59a9b3(0x1d9),()=>{const _0x533f5f=_0x59a9b3;this[_0x533f5f(0x1f3)](),this[_0x533f5f(0x1db)](_0x239fcf);});}}[_0x1b294a(0x237)](_0x173efb,_0x316384){const _0x725ad6=_0x1b294a;this[_0x725ad6(0x23f)]=new _0x3b6efd(_0x316384),this[_0x725ad6(0x23f)]['on'](_0x725ad6(0x1f1),(_0x56117b,_0x5303d3)=>{const _0x58e79d=_0x725ad6;this[_0x58e79d(0x23a)](_0x5303d3);}),this[_0x725ad6(0x23f)]['on'](_0x725ad6(0x253),()=>{const _0x3f553c=_0x725ad6;this[_0x3f553c(0x20d)](),this[_0x3f553c(0x1de)](),this[_0x3f553c(0x236)][_0x3f553c(0x23c)]({'target':this[_0x3f553c(0x1df)][_0x3f553c(0x240)],'limiter':this[_0x3f553c(0x249)](),'positions':Xo});}),this[_0x725ad6(0x23f)]['on'](_0x725ad6(0x23b),()=>{const _0x205106=_0x725ad6;this[_0x205106(0x21b)][_0x205106(0x1d3)]&&this[_0x205106(0x21b)][_0x205106(0x23c)]({'target':this[_0x205106(0x1df)][_0x205106(0x240)],'limiter':this[_0x205106(0x249)](),'positions':Xo});}),_0x173efb[_0x725ad6(0x202)][_0x725ad6(0x234)](this[_0x725ad6(0x23f)]);}[_0x1b294a(0x1f9)](_0x191121,_0x535388){const _0xa507c4=_0x1b294a,_0xc2477=_0xa507c4(0x206)===_0x535388[_0xa507c4(0x226)]?new SourcesBalloonButtonView(_0x191121):new _0x1d78a3(_0x191121);return _0xc2477[_0xa507c4(0x216)]({'label':_0x535388[_0xa507c4(0x222)],'icon':_0x535388[_0xa507c4(0x211)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Oo}),_0xc2477;}[_0x1b294a(0x203)](){const _0x17beb2=_0x1b294a;this[_0x17beb2(0x225)](),this[_0x17beb2(0x1e9)]();}[_0x1b294a(0x1e9)](){const _0xa4057d=_0x1b294a;_0x236d5d({'emitter':this[_0xa4057d(0x21b)],'contextElements':[this[_0xa4057d(0x21b)][_0xa4057d(0x240)]],'callback':()=>{const _0x2b20d9=_0xa4057d;this[_0x2b20d9(0x20d)]();},'activator':()=>this[_0xa4057d(0x21b)][_0xa4057d(0x1d3)]});}[_0x1b294a(0x1ff)](_0x429160){const _0x145592=_0x1b294a,_0x1077d7=this[_0x145592(0x251)];_0x1077d7[_0x145592(0x213)][_0x145592(0x201)]=_0x429160,_0x429160?_0x1077d7[_0x145592(0x1e2)][_0x145592(0x246)]():_0x1077d7[_0x145592(0x1e2)][_0x145592(0x1f7)]();}[_0x1b294a(0x225)](){const _0x496568=_0x1b294a,{balloonView:_0x319d38,buttonView:_0x2dca5f,hideMethod:_0x3aa41a}=this[_0x496568(0x251)];_0x236d5d({'emitter':_0x319d38,'contextElements':[_0x319d38[_0x496568(0x240)],_0x2dca5f[_0x496568(0x240)]],'callback':()=>{_0x3aa41a();},'activator':()=>_0x2dca5f[_0x496568(0x201)]&&!this[_0x496568(0x21b)][_0x496568(0x1d3)]&&!this[_0x496568(0x20a)][_0x496568(0x22c)]()});}[_0x1b294a(0x223)](_0x315429,_0x3c3bbd,_0x3e9d1e=!0x1,_0x50425f=!0x1){const _0x19763c=_0x1b294a,_0x35692f=_0x19763c(0x1d6)===_0x3c3bbd||!0x0===_0x315429[_0x19763c(0x25b)],_0x32d063=new _0x264106(this[_0x19763c(0x22e)],_0x315429,_0x35692f,_0x3e9d1e,_0x50425f);return _0x35692f||_0x32d063['on'](_0x19763c(0x242),()=>{const _0x15baf9=_0x19763c;this[_0x15baf9(0x25c)](_0x15baf9(0x24c),_0x32d063['id']);}),_0x32d063;}[_0x1b294a(0x256)](_0x16111f,_0x2111a1){const _0x78eeae=_0x1b294a;_0x2111a1[_0x78eeae(0x234)](_0x16111f,0x0);}[_0x1b294a(0x21e)](_0x2b21e8,_0x12606c){const _0x49763e=_0x1b294a,_0x2182e1=_0x12606c[_0x49763e(0x248)](_0x508265=>_0x508265['id']===_0x2b21e8);_0x2182e1&&_0x12606c[_0x49763e(0x22a)](_0x2182e1);}[_0x1b294a(0x1dd)](){const _0x41ee8f=_0x1b294a;this[_0x41ee8f(0x1df)][_0x41ee8f(0x201)]?this[_0x41ee8f(0x1f3)]():(this[_0x41ee8f(0x1de)](),this[_0x41ee8f(0x236)][_0x41ee8f(0x23c)]({'target':this[_0x41ee8f(0x1df)][_0x41ee8f(0x240)],'limiter':this[_0x41ee8f(0x249)](),'positions':Xo}));}[_0x1b294a(0x23a)](_0x108b68){const _0x155b1f=_0x1b294a;this[_0x155b1f(0x23f)][_0x155b1f(0x231)](),this[_0x155b1f(0x20d)](),this[_0x155b1f(0x25c)](_0x155b1f(0x219),_0x108b68);}}export class SourcesBalloonButtonView extends _0x1d78a3{[_0x1b294a(0x1f5)];constructor(_0x2c4747){const _0x5e14b6=_0x1b294a;super(_0x2c4747),this[_0x5e14b6(0x216)]({'withText':!0x0,'role':_0x5e14b6(0x1e5)}),this[_0x5e14b6(0x1f5)]=this[_0x5e14b6(0x1d0)](),this[_0x5e14b6(0x22f)]({'attributes':{'class':[Mo]}});}[_0x1b294a(0x1f2)](){const _0x417011=_0x1b294a;super[_0x417011(0x1f2)](),this[_0x417011(0x24d)][_0x417011(0x234)](this[_0x417011(0x1f5)]);}[_0x1b294a(0x1d0)](){const _0x6bfdca=_0x1b294a,_0x3881c4=new _0x5590e3();return _0x3881c4[_0x6bfdca(0x202)]=_0x2acf06,_0x3881c4[_0x6bfdca(0x22f)]({'attributes':{'class':Mo+_0x6bfdca(0x259)}}),_0x3881c4;}}
|
|
23
|
+
function _0xa314(_0x4374be,_0x31521f){const _0x4bde8e=_0x4bde();return _0xa314=function(_0xa31436,_0x2f2d48){_0xa31436=_0xa31436-0x18e;let _0x391ee1=_0x4bde8e[_0xa31436];return _0x391ee1;},_0xa314(_0x4374be,_0x31521f);}const _0x247f4c=_0xa314;(function(_0x4962e2,_0x31a610){const _0x5a1add=_0xa314,_0x328624=_0x4962e2();while(!![]){try{const _0x141a8b=parseInt(_0x5a1add(0x211))/0x1*(-parseInt(_0x5a1add(0x1d4))/0x2)+parseInt(_0x5a1add(0x1e3))/0x3*(-parseInt(_0x5a1add(0x1f3))/0x4)+-parseInt(_0x5a1add(0x193))/0x5+-parseInt(_0x5a1add(0x1a8))/0x6*(parseInt(_0x5a1add(0x198))/0x7)+parseInt(_0x5a1add(0x1dd))/0x8*(parseInt(_0x5a1add(0x1d1))/0x9)+-parseInt(_0x5a1add(0x1b2))/0xa+-parseInt(_0x5a1add(0x1be))/0xb*(-parseInt(_0x5a1add(0x19b))/0xc);if(_0x141a8b===_0x31a610)break;else _0x328624['push'](_0x328624['shift']());}catch(_0x3b6cf4){_0x328624['push'](_0x328624['shift']());}}}(_0x4bde,0x35331));import{BalloonPanelView as _0x220da,ButtonView as _0x4b4e07,clickOutsideHandler as _0x46870e,FileDialogButtonView as _0x2b6d07,IconView as _0x7fb187,View as _0x4104fe}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x4b4bcb,IconDocument as _0x595f96,IconDocumentOutline as _0x5ddcc8,IconDropdownArrow as _0x202baf,IconLink as _0x12d98f,IconPaperClip as _0x13cbaf}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x5c0b74}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x7cef34}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xe6ab1d}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x27b36e}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x46500a}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x247f4c(0x1ca),_0x247f4c(0x1e1),_0x247f4c(0x1cd),_0x247f4c(0x21d),_0x247f4c(0x1fb),_0x247f4c(0x1ee)];function _0x4bde(){const _0x3d197c=['_setupAllBalloonClickOutsideHandlers','1043cByDuL','tooltip','add','36IjYiRe','locale','_createResourcesBalloonView','ck-reset_all-excluded','ck-ai-chat-context-chips-wrapper-balloon','_addContextBalloonConfig','_urlBalloonPanelView','_currentContextsChips','ck-ai-chat-controls-button','source','_addUrlContent','extendTemplate','find','16356NjDIiP','overflowChips','_resourcesBalloonView','show','hideAddContextBalloonPanel','_toggleAddContextBalloon','_setupTemplate','ck-ai-chat-context-controls','_overflowManager','_removeContextFromCollection','87210qxlajX','_setAddContextButtonEnabled','type','southArrowNorthWest','remove','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','clear','enabled','document','AI_CHAT_CONTEXT_URL_LABEL','setConversationContext','ck-ai-chat-context-controls__balloon-button-source','3753409PQCsOv','_createUrlBalloonPanelView','menuitem','ck-ai-chat-controls_context_show-more-button','northArrowSouth','_createContextButton','_createAddContextBalloonPanelView','render','setAddContextOptions','set','isEnabled','submitUrl','addDocumentToContext','_conversationContextsChips','_createArrowView','addUrlToContext','_handleUrlSubmit','content','isOn','27eZPfES','isAnyResourceBalloonVisible','showUrlBalloonPanel','4KzqwgC','southArrowNorth','ck-ai-chat-context-controls__url-balloon-panel','_showSourceResourcesBalloon','hideUrlBalloonPanel','AI_CHAT_CONTEXT_FILE_LABEL','updateResourceState','sources','cancel','304976grovmd','files','_createBalloonButton','conversation','addFileToContext','addContextButtonView','621051XaSvTA','balloonView','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__balloon-button','bodyCollection','buttonView','done','body','northArrowSouthEast','_addContextToCollection','isVisible','loadSourceResources','isHidden','execute','closest','ck-ai-chat','4uPmrNt','_handleAddContextButtonClick','element','southArrowNorthEast','_setupAddContextBalloonClickOutsideHandler','focus','hide','label','removeContextItem','fire','clearCurrentContextItems','_urlInputView','setContextItemLoading','ck-ai-chat-context-controls__show-more-balloon-panel','isLoading','reorganizeChips','icon','ck-ai-chat-context-controls__add-context-button','ck-ai-chat-context-controls__add-context-balloon-panel','removeContextItemChip','addContextItem','destroy','isReadOnly','setContainerElement','clearConversationContextItems','populateSourceResourceBalloon','setTemplate','closeSourceResourceBalloon','northArrowSouthWest','showAddContextBalloonPanel','28019feFNuP','arrowView','searchInputVisibleFrom','_createAddContextButtonView','showSourceResourcesBalloon','defaultPositions','ck-ai-chat-context-controls__pending-contexts','children','createCollection','_getLimiterElement','current','_addContextBalloonPanelView','addResourceToContext','_bindEventHandlers','refreshBalloon','bind','pin','div','_createBaseBalloonPanel','urls','1210840NRWwPG','_setBalloonPanelContent','__arrow','AI_CHAT_CONTEXT_ADD_CONTEXT'];_0x4bde=function(){return _0x3d197c;};return _0x4bde();}const ko=_0x247f4c(0x1af),Eo=_0x247f4c(0x217),vo=_0x247f4c(0x205),Vo=_0x247f4c(0x204),Io=_0x247f4c(0x1d6),Po=_0x247f4c(0x1e6),Ro=_0x247f4c(0x1bd),Uo=_0x247f4c(0x1a3),Lo=_0x247f4c(0x19f),No=_0x247f4c(0x1c1),Oo=_0x247f4c(0x200),Mo=_0x247f4c(0x1f2),Ho=[_0x220da[_0x247f4c(0x216)][_0x247f4c(0x20f)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1c2)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1eb)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1b5)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1d5)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1f6)]];export class AIChatContextPanelView extends _0x4104fe{[_0x247f4c(0x1e2)];[_0x247f4c(0x1a2)]=this[_0x247f4c(0x219)]();[_0x247f4c(0x1cb)]=this[_0x247f4c(0x219)]();[_0x247f4c(0x1b0)];[_0x247f4c(0x21c)];[_0x247f4c(0x1a1)];[_0x247f4c(0x1fe)];[_0x247f4c(0x1aa)];[_0x247f4c(0x1a0)];[_0x247f4c(0x1e7)];constructor(_0x39c407,_0x51352c){const _0x4ff0fc=_0x247f4c;super(_0x39c407),this[_0x4ff0fc(0x1e7)]=_0x51352c[_0x4ff0fc(0x1e7)],this[_0x4ff0fc(0x1a2)]=this[_0x4ff0fc(0x219)](),this[_0x4ff0fc(0x1cb)]=this[_0x4ff0fc(0x219)](),this[_0x4ff0fc(0x1e2)]=this[_0x4ff0fc(0x214)](_0x39c407),this[_0x4ff0fc(0x21c)]=this[_0x4ff0fc(0x1c4)](_0x39c407),this[_0x4ff0fc(0x1a1)]=this[_0x4ff0fc(0x1bf)](_0x39c407),this[_0x4ff0fc(0x1aa)]=this[_0x4ff0fc(0x19d)](_0x39c407,_0x51352c);const _0x4fa966={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x4ff0fc(0x1b0)]=new _0xe6ab1d(_0x39c407,this[_0x4ff0fc(0x1a2)],_0x4fa966,this[_0x4ff0fc(0x1e7)],this),this[_0x4ff0fc(0x1a0)]={'buttonView':this[_0x4ff0fc(0x1e2)],'balloonView':this[_0x4ff0fc(0x21c)],'hideMethod':this[_0x4ff0fc(0x1ac)][_0x4ff0fc(0x18e)](this),'showMethod':this[_0x4ff0fc(0x210)][_0x4ff0fc(0x18e)](this)},this[_0x4ff0fc(0x1ae)](),this[_0x4ff0fc(0x21e)]();}[_0x247f4c(0x1c5)](){const _0x16edb9=_0x247f4c;super[_0x16edb9(0x1c5)](),this[_0x16edb9(0x197)](),this[_0x16edb9(0x1b0)][_0x16edb9(0x20a)](this[_0x16edb9(0x1f5)]),this[_0x16edb9(0x1b0)][_0x16edb9(0x202)]();}[_0x247f4c(0x208)](){const _0x5eea72=_0x247f4c;super[_0x5eea72(0x208)](),this[_0x5eea72(0x1b0)][_0x5eea72(0x208)](),this[_0x5eea72(0x1aa)][_0x5eea72(0x208)]();}[_0x247f4c(0x207)](_0x3db0d8,_0x516bb9){const _0x22a57d=_0x247f4c,_0xc2fb90=this[_0x22a57d(0x1c3)](_0x3db0d8,_0x22a57d(0x21b),!0x0,_0x516bb9);this[_0x22a57d(0x1ec)](_0xc2fb90,this[_0x22a57d(0x1a2)]),this[_0x22a57d(0x1b0)][_0x22a57d(0x202)]();}[_0x247f4c(0x1fb)](_0x5eb56d){const _0x532be5=_0x247f4c;this[_0x532be5(0x1b1)](_0x5eb56d,this[_0x532be5(0x1a2)]),this[_0x532be5(0x1b1)](_0x5eb56d,this[_0x532be5(0x1b0)][_0x532be5(0x1a9)]),this[_0x532be5(0x1b0)][_0x532be5(0x202)]();}[_0x247f4c(0x1ff)](_0x31b31e,_0xb001ee){const _0x2f67b1=_0x247f4c;let _0x14c85f=this[_0x2f67b1(0x1a2)][_0x2f67b1(0x1a7)](_0x3582dd=>_0x3582dd['id']===_0x31b31e);_0x14c85f||(_0x14c85f=this[_0x2f67b1(0x1b0)][_0x2f67b1(0x1a9)][_0x2f67b1(0x1a7)](_0x471314=>_0x471314['id']===_0x31b31e)),_0x14c85f&&(_0x14c85f[_0x2f67b1(0x201)]=_0xb001ee);}[_0x247f4c(0x1bc)](_0x24b386){const _0x399faa=_0x247f4c;this[_0x399faa(0x1cb)][_0x399faa(0x1b8)]();for(const _0x16bb6e of _0x24b386){const _0x217e5f=this[_0x399faa(0x1c3)](_0x16bb6e,_0x399faa(0x1e0),!0x1,!0x1);this[_0x399faa(0x1ec)](_0x217e5f,this[_0x399faa(0x1cb)]);}}[_0x247f4c(0x1fd)](){const _0x205fb7=_0x247f4c;this[_0x205fb7(0x1a2)][_0x205fb7(0x1b8)](),this[_0x205fb7(0x1b0)][_0x205fb7(0x1b8)]();}[_0x247f4c(0x20b)](){const _0x36cbad=_0x247f4c;this[_0x36cbad(0x1cb)][_0x36cbad(0x1b8)]();}[_0x247f4c(0x1da)](_0x5668f6,_0x43e9c9,_0xe04db4){const _0x2e3926=_0x247f4c;this[_0x2e3926(0x1aa)][_0x2e3926(0x1da)](_0x5668f6,_0x43e9c9,_0xe04db4);}[_0x247f4c(0x1ac)](){const _0x231b61=_0x247f4c;this[_0x231b61(0x1ad)](!0x1);}[_0x247f4c(0x210)](){const _0x5f117c=_0x247f4c;this[_0x5f117c(0x1ad)](!0x0);}[_0x247f4c(0x1d8)](){const _0xcc22a4=_0x247f4c;this[_0xcc22a4(0x1a1)][_0xcc22a4(0x1f9)](),this[_0xcc22a4(0x1e2)][_0xcc22a4(0x1d0)]=!0x1,this[_0xcc22a4(0x1fe)]&&this[_0xcc22a4(0x1fe)][_0xcc22a4(0x1b8)]();}[_0x247f4c(0x1d3)](){const _0x14fac2=_0x247f4c;this[_0x14fac2(0x1a1)][_0x14fac2(0x1ab)](),this[_0x14fac2(0x1e2)][_0x14fac2(0x1d0)]=!0x0;}[_0x247f4c(0x1d7)](_0x3efed0){const _0x17ea05=_0x247f4c;this[_0x17ea05(0x1aa)][_0x17ea05(0x215)](_0x3efed0),this[_0x17ea05(0x1e2)][_0x17ea05(0x1d0)]=!0x0;}[_0x247f4c(0x20c)](_0x2ac2a3,_0x132288,_0x1d18b4,_0x19f8bb){const _0x1c42d1=_0x247f4c;this[_0x1c42d1(0x1aa)][_0x1c42d1(0x20c)](_0x2ac2a3,_0x1d18b4,_0x19f8bb);}[_0x247f4c(0x20e)](_0x5a5026){const _0x5dc315=_0x247f4c;this[_0x5dc315(0x1aa)][_0x5dc315(0x20e)](_0x5a5026),this[_0x5dc315(0x1e2)][_0x5dc315(0x1d0)]=!0x1;}[_0x247f4c(0x1c6)](_0x3bb636){const _0xdb9fed=_0x247f4c;this[_0xdb9fed(0x194)](this[_0xdb9fed(0x21c)],this[_0xdb9fed(0x19c)],_0x3bb636),this[_0xdb9fed(0x1b3)](_0x3bb636);}[_0x247f4c(0x1b3)](_0x3c9743){const _0x152817=_0x247f4c,_0x3d908a=!_0x3c9743[_0x152817(0x1ba)][_0x152817(0x1ef)]&&_0x3c9743[_0x152817(0x1ba)][_0x152817(0x1b9)],_0xa3ccc0=_0x3c9743[_0x152817(0x192)][_0x152817(0x1b9)],_0x124f08=_0x3c9743[_0x152817(0x1de)][_0x152817(0x1b9)];this[_0x152817(0x1e2)][_0x152817(0x1c8)]=_0x3d908a||_0xa3ccc0||_0x124f08;}[_0x247f4c(0x1ae)](){const _0x1e2bd8=_0x247f4c;this[_0x1e2bd8(0x20d)]({'tag':_0x1e2bd8(0x190),'attributes':{'class':[ko,_0x1e2bd8(0x19e)]},'children':[{'tag':_0x1e2bd8(0x190),'attributes':{'class':Eo},'children':this[_0x1e2bd8(0x1a2)]}]});}[_0x247f4c(0x21e)](){const _0x5e7841=_0x247f4c;this[_0x5e7841(0x1e2)]['on'](_0x5e7841(0x1f0),()=>{const _0x14f75d=_0x5e7841;this[_0x14f75d(0x1f4)]();});}[_0x247f4c(0x214)](_0x3451fa){const _0x45e943=_0x247f4c,_0x347f4f=new _0x4b4e07(_0x3451fa);return _0x347f4f[_0x45e943(0x1c7)]({'label':_0x27b36e(_0x3451fa,_0x45e943(0x196)),'class':Uo+'\x20'+Vo,'icon':_0x13cbaf,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x347f4f;}[_0x247f4c(0x1c4)](_0x36b37d){const _0x193573=_0x247f4c;return this[_0x193573(0x191)](_0x36b37d,vo);}[_0x247f4c(0x1bf)](_0x469825){const _0x4097c3=_0x247f4c,_0x179418=this[_0x4097c3(0x191)](_0x469825,Io);return this[_0x4097c3(0x1a5)](_0x179418,_0x469825),_0x179418;}[_0x247f4c(0x19d)](_0x1d8d6d,_0x1a836b){const _0x26f24=_0x247f4c,_0x39edda={'searchInputVisibleFrom':_0x1a836b[_0x26f24(0x213)],'onBackToContext':()=>{const _0x115c51=_0x26f24;this[_0x115c51(0x210)](),this[_0x115c51(0x21c)][_0x115c51(0x18f)]({'target':this[_0x115c51(0x1e2)][_0x115c51(0x1f5)],'limiter':this[_0x115c51(0x21a)](),'positions':Ho});},'onResourceSelected':(_0x4232e9,_0x3394f1)=>{const _0x3451d1=_0x26f24;this[_0x3451d1(0x1fc)](_0x3451d1(0x21d),{'source':_0x4232e9,'resource':_0x3394f1});},'onLoadSourceResources':_0x43ad42=>{const _0xb4dd0b=_0x26f24;this[_0xb4dd0b(0x1fc)](_0xb4dd0b(0x1ee),_0x43ad42);},'onBalloonClosed':()=>{const _0x5c573a=_0x26f24;this[_0x5c573a(0x1e2)][_0x5c573a(0x1d0)]=!0x1;},'getLimiterElement':()=>this[_0x26f24(0x21a)](),'getTargetElement':()=>this[_0x26f24(0x1e2)][_0x26f24(0x1f5)]};return new _0x46500a(_0x1d8d6d,_0x1a836b[_0x26f24(0x1e7)],_0x39edda);}[_0x247f4c(0x21a)](){const _0x590d2a=_0x247f4c;return this[_0x590d2a(0x1f5)]?.[_0x590d2a(0x1f1)]('.'+Mo)||document[_0x590d2a(0x1ea)];}[_0x247f4c(0x191)](_0x14be31,_0xa50878){const _0x9098e6=_0x247f4c,_0x375b44=new _0x220da(_0x14be31);return _0x375b44[_0x9098e6(0x1a6)]({'attributes':{'class':_0xa50878}}),this[_0x9098e6(0x1e7)][_0x9098e6(0x19a)](_0x375b44),_0x375b44;}[_0x247f4c(0x194)](_0x5cc7f2,_0x709694,_0x5efd53){const _0x38f2d6=_0x247f4c;if(_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x1b8)](),!_0x5efd53[_0x38f2d6(0x1ba)][_0x38f2d6(0x1ef)]&&_0x5efd53[_0x38f2d6(0x1ba)][_0x38f2d6(0x1b9)]){const _0x407b1b=this[_0x38f2d6(0x1df)](_0x709694,{'label':_0x27b36e(_0x709694,_0x38f2d6(0x1b7)),'icon':_0x595f96});_0x407b1b['on'](_0x38f2d6(0x1f0),()=>{const _0x1f6753=_0x38f2d6;this[_0x1f6753(0x1fc)](_0x1f6753(0x1ca)),this[_0x1f6753(0x1ac)]();}),_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x19a)](_0x407b1b);}if(_0x5efd53[_0x38f2d6(0x192)][_0x38f2d6(0x1b9)]){const _0x397e88=this[_0x38f2d6(0x1df)](_0x709694,{'label':_0x27b36e(_0x709694,_0x38f2d6(0x1bb)),'icon':_0x12d98f});_0x397e88['on'](_0x38f2d6(0x1f0),()=>{const _0x17c706=_0x38f2d6;this[_0x17c706(0x1ac)](),this[_0x17c706(0x1d3)](),this[_0x17c706(0x1a1)][_0x17c706(0x18f)]({'target':this[_0x17c706(0x1e2)][_0x17c706(0x1f5)],'limiter':this[_0x17c706(0x21a)](),'positions':Ho}),this[_0x17c706(0x1fe)][_0x17c706(0x1f8)]();}),_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x19a)](_0x397e88);}if(_0x5efd53[_0x38f2d6(0x1de)][_0x38f2d6(0x1b9)]){const _0x4b21b2=new _0x2b6d07(_0x709694);_0x4b21b2[_0x38f2d6(0x1c7)]({'label':_0x27b36e(_0x709694,_0x38f2d6(0x1d9)),'icon':_0x4b4bcb,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x4b21b2['on'](_0x38f2d6(0x1e9),(_0x7767be,_0xbe24aa)=>{const _0x4ef42a=_0x38f2d6;this[_0x4ef42a(0x1fc)](_0x4ef42a(0x1e1),_0xbe24aa),this[_0x4ef42a(0x1ac)]();}),_0x4b21b2[_0x38f2d6(0x199)]=!0x0,_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x19a)](_0x4b21b2);}for(const _0x334e65 of _0x5efd53[_0x38f2d6(0x1db)]){const _0x547d1c=this[_0x38f2d6(0x1df)](_0x709694,{'label':_0x334e65[_0x38f2d6(0x1fa)],'icon':_0x334e65[_0x38f2d6(0x203)]||_0x5ddcc8,'type':_0x38f2d6(0x1a4)});_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x19a)](_0x547d1c),_0x547d1c['on'](_0x38f2d6(0x1f0),()=>{const _0x177368=_0x38f2d6;this[_0x177368(0x1ac)](),this[_0x177368(0x1d7)](_0x334e65);});}}[_0x247f4c(0x1a5)](_0x10ab1f,_0x59948a){const _0x97f836=_0x247f4c;this[_0x97f836(0x1fe)]=new _0x7cef34(_0x59948a),this[_0x97f836(0x1fe)]['on'](_0x97f836(0x1c9),(_0x31e82a,_0x3b5c31)=>{const _0x158f2=_0x97f836;this[_0x158f2(0x1ce)](_0x3b5c31);}),this[_0x97f836(0x1fe)]['on'](_0x97f836(0x1dc),()=>{const _0x56581=_0x97f836;this[_0x56581(0x1d8)](),this[_0x56581(0x210)](),this[_0x56581(0x21c)][_0x56581(0x18f)]({'target':this[_0x56581(0x1e2)][_0x56581(0x1f5)],'limiter':this[_0x56581(0x21a)](),'positions':Ho});}),this[_0x97f836(0x1fe)]['on'](_0x97f836(0x21f),()=>{const _0x1d097c=_0x97f836;this[_0x1d097c(0x1a1)][_0x1d097c(0x1ed)]&&this[_0x1d097c(0x1a1)][_0x1d097c(0x18f)]({'target':this[_0x1d097c(0x1e2)][_0x1d097c(0x1f5)],'limiter':this[_0x1d097c(0x21a)](),'positions':Ho});}),_0x10ab1f[_0x97f836(0x1cf)][_0x97f836(0x19a)](this[_0x97f836(0x1fe)]);}[_0x247f4c(0x1df)](_0x2dd08a,_0x55acd5){const _0x228579=_0x247f4c,_0x5d7f5f=_0x228579(0x1a4)===_0x55acd5[_0x228579(0x1b4)]?new SourcesBalloonButtonView(_0x2dd08a):new _0x4b4e07(_0x2dd08a);return _0x5d7f5f[_0x228579(0x1c7)]({'label':_0x55acd5[_0x228579(0x1fa)],'icon':_0x55acd5[_0x228579(0x203)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x5d7f5f;}[_0x247f4c(0x197)](){const _0x33241f=_0x247f4c;this[_0x33241f(0x1f7)](),this[_0x33241f(0x1e5)]();}[_0x247f4c(0x1e5)](){const _0x25fb5a=_0x247f4c;_0x46870e({'emitter':this[_0x25fb5a(0x1a1)],'contextElements':[this[_0x25fb5a(0x1a1)][_0x25fb5a(0x1f5)]],'callback':()=>{const _0x2e73a1=_0x25fb5a;this[_0x2e73a1(0x1d8)]();},'activator':()=>this[_0x25fb5a(0x1a1)][_0x25fb5a(0x1ed)]});}[_0x247f4c(0x1ad)](_0x40cdfe){const _0xb0018c=_0x247f4c,_0x5c4f01=this[_0xb0018c(0x1a0)];_0x5c4f01[_0xb0018c(0x1e8)][_0xb0018c(0x1d0)]=_0x40cdfe,_0x40cdfe?_0x5c4f01[_0xb0018c(0x1e4)][_0xb0018c(0x1ab)]():_0x5c4f01[_0xb0018c(0x1e4)][_0xb0018c(0x1f9)]();}[_0x247f4c(0x1f7)](){const _0x37c0d8=_0x247f4c,{balloonView:_0x3cdd7d,buttonView:_0x38530c,hideMethod:_0x4fa446}=this[_0x37c0d8(0x1a0)];_0x46870e({'emitter':_0x3cdd7d,'contextElements':[_0x3cdd7d[_0x37c0d8(0x1f5)],_0x38530c[_0x37c0d8(0x1f5)]],'callback':()=>{_0x4fa446();},'activator':()=>_0x38530c[_0x37c0d8(0x1d0)]&&!this[_0x37c0d8(0x1a1)][_0x37c0d8(0x1ed)]&&!this[_0x37c0d8(0x1aa)][_0x37c0d8(0x1d2)]()});}[_0x247f4c(0x1c3)](_0x342f32,_0x46482b,_0x2d2c11=!0x1,_0x4b3c49=!0x1){const _0x4c8ee0=_0x247f4c,_0xa88353=_0x4c8ee0(0x1e0)===_0x46482b||!0x0===_0x342f32[_0x4c8ee0(0x209)],_0x585f5c=new _0x5c0b74(this[_0x4c8ee0(0x19c)],_0x342f32,_0xa88353,_0x2d2c11,_0x4b3c49);return _0xa88353||_0x585f5c['on'](_0x4c8ee0(0x206),()=>{const _0x41df6c=_0x4c8ee0;this[_0x41df6c(0x1fc)](_0x41df6c(0x1fb),_0x585f5c['id']);}),_0x585f5c;}[_0x247f4c(0x1ec)](_0x22536c,_0xcb432a){const _0x19990d=_0x247f4c;_0xcb432a[_0x19990d(0x19a)](_0x22536c,0x0);}[_0x247f4c(0x1b1)](_0x39c82e,_0x1a02c6){const _0x38a596=_0x247f4c,_0x1212d7=_0x1a02c6[_0x38a596(0x1a7)](_0x2f9997=>_0x2f9997['id']===_0x39c82e);_0x1212d7&&_0x1a02c6[_0x38a596(0x1b6)](_0x1212d7);}[_0x247f4c(0x1f4)](){const _0x1de822=_0x247f4c;this[_0x1de822(0x1e2)][_0x1de822(0x1d0)]?this[_0x1de822(0x1ac)]():(this[_0x1de822(0x210)](),this[_0x1de822(0x21c)][_0x1de822(0x18f)]({'target':this[_0x1de822(0x1e2)][_0x1de822(0x1f5)],'limiter':this[_0x1de822(0x21a)](),'positions':Ho}));}[_0x247f4c(0x1ce)](_0x2de11b){const _0x3c3462=_0x247f4c;this[_0x3c3462(0x1fe)][_0x3c3462(0x1b8)](),this[_0x3c3462(0x1d8)](),this[_0x3c3462(0x1fc)](_0x3c3462(0x1cd),_0x2de11b);}}export class SourcesBalloonButtonView extends _0x4b4e07{[_0x247f4c(0x212)];constructor(_0x5d821e){const _0x12727f=_0x247f4c;super(_0x5d821e),this[_0x12727f(0x1c7)]({'withText':!0x0,'role':_0x12727f(0x1c0)}),this[_0x12727f(0x212)]=this[_0x12727f(0x1cc)](),this[_0x12727f(0x1a6)]({'attributes':{'class':[Ro]}});}[_0x247f4c(0x1c5)](){const _0x2d1530=_0x247f4c;super[_0x2d1530(0x1c5)](),this[_0x2d1530(0x218)][_0x2d1530(0x19a)](this[_0x2d1530(0x212)]);}[_0x247f4c(0x1cc)](){const _0x2fa894=_0x247f4c,_0x31aea4=new _0x7fb187();return _0x31aea4[_0x2fa894(0x1cf)]=_0x202baf,_0x31aea4[_0x2fa894(0x1a6)]({'attributes':{'class':Ro+_0x2fa894(0x195)}}),_0x31aea4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48d12a=_0x11c7;(function(_0x4b8025,_0x4b5f8f){const _0x123259=_0x11c7,_0x4355da=_0x4b8025();while(!![]){try{const _0x20b8d7=parseInt(_0x123259(0x150))/0x1+parseInt(_0x123259(0x156))/0x2+-parseInt(_0x123259(0x155))/0x3+-parseInt(_0x123259(0x152))/0x4*(-parseInt(_0x123259(0x157))/0x5)+parseInt(_0x123259(0x167))/0x6*(-parseInt(_0x123259(0x15f))/0x7)+-parseInt(_0x123259(0x153))/0x8+parseInt(_0x123259(0x162))/0x9*(parseInt(_0x123259(0x161))/0xa);if(_0x20b8d7===_0x4b5f8f)break;else _0x4355da['push'](_0x4355da['shift']());}catch(_0x1012ad){_0x4355da['push'](_0x4355da['shift']());}}}(_0x494a,0x75567));import{ButtonView as _0x1470cd,View as _0x49ea6f}from'ckeditor5/src/ui.js';import{IconStop as _0x4b2532}from'ckeditor5/src/icons.js';import{getTranslation as _0x45af24}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x49ea6f{[_0x48d12a(0x15e)];[_0x48d12a(0x165)];constructor(_0x35c344){const _0x5b0376=_0x48d12a;super(_0x35c344),this[_0x5b0376(0x15e)]=this[_0x5b0376(0x154)](),this[_0x5b0376(0x165)]=this[_0x5b0376(0x163)](),this[_0x5b0376(0x15d)]({'tag':_0x5b0376(0x164),'attributes':{'class':['ck',_0x5b0376(0x14f),_0x5b0376(0x151)]},'children':[this[_0x5b0376(0x165)],this[_0x5b0376(0x15e)]]});}[_0x48d12a(0x154)](){const _0x1895fb=_0x48d12a,_0x3bf215=new _0x1470cd(this[_0x1895fb(0x159)]);return _0x3bf215[_0x1895fb(0x160)]({'label':_0x45af24(this[_0x1895fb(0x159)],_0x1895fb(0x14b)),'withText':!0x0,'class':_0x1895fb(0x158),'icon':_0x4b2532}),_0x3bf215['on'](_0x1895fb(0x166),()=>{const _0x2dc9f0=_0x1895fb;this[_0x2dc9f0(0x14e)](_0x2dc9f0(0x15b));}),_0x3bf215;}[_0x48d12a(0x163)](){const _0x1c556b=_0x48d12a,_0xc7211e=new _0x49ea6f(this[_0x1c556b(0x159)]);return _0xc7211e[_0x1c556b(0x15d)]({'tag':_0x1c556b(0x164),'attributes':{'class':[_0x1c556b(0x14d)]},'children':[{'tag':_0x1c556b(0x164),'attributes':{'class':[_0x1c556b(0x15c)]},'children':[{'tag':_0x1c556b(0x164),'attributes':{'class':[_0x1c556b(0x15a)]}},{'tag':_0x1c556b(0x164),'attributes':{'class':[_0x1c556b(0x15a)]}},{'tag':_0x1c556b(0x164),'attributes':{'class':[_0x1c556b(0x15a)]}}]},{'text':_0x45af24(this[_0x1c556b(0x159)],_0x1c556b(0x14c))}]}),_0xc7211e;}}function _0x11c7(_0x1df95a,_0x4a1160){const _0x494af9=_0x494a();return _0x11c7=function(_0x11c782,_0x5f3cf0){_0x11c782=_0x11c782-0x14b;let _0x7b57f0=_0x494af9[_0x11c782];return _0x7b57f0;},_0x11c7(_0x1df95a,_0x4a1160);}function _0x494a(){const _0x26635=['set','3750020mOepDR','9sxwYti','_createLoaderView','div','_loaderView','execute','30NczlrO','AI_CHAT_STOP_GENERATING','AI_CHAT_IS_WRITING','ck-ai-chat-controls-loader','fire','ck-ai-chat-controls-loader-wrapper','265804WqOofI','ck-reset_all','56yeCBSL','1220968ZoAzKT','_createCancelButtonView','1782165klQmER','1053128svYDyX','171945qkNkNs','ck-ai-button-secondary\x20ck-ai-button-stop-generating','locale','ck-ai-chat-controls-loader-icon-dot','abortPromptStream','ck-ai-chat-controls-loader-icon','setTemplate','_cancelButtonView','590135GXuZCr'];_0x494a=function(){return _0x26635;};return _0x494a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x260848=_0x4975;(function(_0x20f865,_0x10fbed){const _0x1c23cb=_0x4975,_0x4f55e4=_0x20f865();while(!![]){try{const _0x541052=parseInt(_0x1c23cb(0x16f))/0x1*(-parseInt(_0x1c23cb(0x14a))/0x2)+-parseInt(_0x1c23cb(0x145))/0x3+parseInt(_0x1c23cb(0x121))/0x4*(parseInt(_0x1c23cb(0x171))/0x5)+-parseInt(_0x1c23cb(0x165))/0x6*(parseInt(_0x1c23cb(0x139))/0x7)+parseInt(_0x1c23cb(0x11e))/0x8*(-parseInt(_0x1c23cb(0x141))/0x9)+parseInt(_0x1c23cb(0x142))/0xa+-parseInt(_0x1c23cb(0x11b))/0xb*(-parseInt(_0x1c23cb(0x128))/0xc);if(_0x541052===_0x10fbed)break;else _0x4f55e4['push'](_0x4f55e4['shift']());}catch(_0x86a6c){_0x4f55e4['push'](_0x4f55e4['shift']());}}}(_0x247f,0xab661));import{Collection as _0x419921}from'ckeditor5/src/utils.js';import{IconAI as _0x9a2fe0,IconBulb as _0x30f27c,IconWeb as _0x183a29}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x399bd8,ButtonLabelView as _0x35c256,ButtonView as _0x3a5d64,createDropdown as _0x4e1f4e,IconView as _0x3b4039,UIModel as _0x7a3edb,View as _0x23a7be}from'ckeditor5/src/ui.js';import{getTranslation as _0x5dbc81}from'../../../aicore/utils/common-translations.js';function _0x247f(){const _0x29d213=['agent','ck-ai-chat-controls__model-name','_modelNameView','setTemplate','getLocalized','Commands\x20are\x20not\x20implemented\x20yet.','_createWebSearchButton','locale','AI_CHAT_CAPABILITIES_YES','_createCommandsButton','7tUhLSz','tooltip','fire','_reasoningButton','disableModelSelector','menuitemradio','ck-hidden','content','333RVOAXs','13185410rsGZDh','ck-ai-chat-controls__model-selection__item-capabilities','addMany','2321640RPfOws','name','add','div','ck-ai-chat__prompt-capabilities','70ZEhrbc','source','buttonView','span','activeModelId','withText','ck-ai-chat-controls-button','modelSelectorVisible','ck-ai-chat-controls__model-selection','_createModelSelectionDropdown','_createModelNameView','enabled','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_modelSelectionDropdownItems','AI_CHAT_DISABLE_WEB_SEARCH','ck-button__label','log','reasoningActive','setReasoning','AI_CHAT_REASONING','extendTemplate','capabilities','selectModel','AI_CHAT_COMMANDS','ck-ai-chat-controls-button--commands','AI_CHAT_SEARCH_WEB','modelSelectorEnabled','7957428BowqAV','_commandsButton','listenTo','isEnabled','style','activeModelName','ck-ai-chat-controls__model-selection__item-name','_webSearchButton','clear','description','16329DDnDRI','_getCapabilityParts','1075265pnRTht','reasoning','set','bindTemplate','setWebSearch','isOn','webSearch','AI_CHAT_CAPABILITIES_NO','toggleReasoning','createCollection','_createReasoningButton','isVisible','text','_modelSelectionDropdown','enableModelSelector','setModelList','647526ivJsmj','model','execute','34376YndBea','AI_CHAT_DISABLE_REASONING','startsWith','16WUoNqX','ck-ai-chat-controls__model-selection__item-description','webSearchActive','toggleWebSearch','AI_CHAT_ENABLE_WEB_SEARCH','AI_CHAT_ENABLE_REASONING','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','276BUQsPS','bind','button','toLowerCase','setModel','length','label'];_0x247f=function(){return _0x29d213;};return _0x247f();}import{AIModels as _0x19b685}from'../../../aicore/model/aimodels.js';const Do=_0x260848(0x149),bo=_0x260848(0x150),Wo=_0x260848(0x162),yo=_0x260848(0x152),Go=_0x260848(0x16b),Yo=_0x260848(0x122),qo=_0x260848(0x143),zo='n';export class AIChatPromptCapabilitiesView extends _0x23a7be{[_0x260848(0x16c)];[_0x260848(0x13c)];[_0x260848(0x166)];[_0x260848(0x118)];[_0x260848(0x157)];[_0x260848(0x131)];constructor(_0x5511ce){const _0xaf1475=_0x260848;super(_0x5511ce),this[_0xaf1475(0x173)](_0xaf1475(0x123),!0x1),this[_0xaf1475(0x173)](_0xaf1475(0x15b),!0x1),this[_0xaf1475(0x173)](_0xaf1475(0x151),!0x0),this[_0xaf1475(0x173)](_0xaf1475(0x164),!0x0),this[_0xaf1475(0x173)](_0xaf1475(0x14e),null),this[_0xaf1475(0x173)](_0xaf1475(0x16a),null),this[_0xaf1475(0x118)]=this[_0xaf1475(0x153)](),this[_0xaf1475(0x131)]=this[_0xaf1475(0x154)](),this[_0xaf1475(0x16c)]=this[_0xaf1475(0x135)](),this[_0xaf1475(0x13c)]=this[_0xaf1475(0x17b)](),this[_0xaf1475(0x166)]=this[_0xaf1475(0x138)](),this[_0xaf1475(0x118)][_0xaf1475(0x14c)][_0xaf1475(0x129)](_0xaf1475(0x116))['to'](this,_0xaf1475(0x151),_0x2a5c71=>_0x2a5c71),this[_0xaf1475(0x118)][_0xaf1475(0x14c)][_0xaf1475(0x129)](_0xaf1475(0x13a))['to'](this,_0xaf1475(0x164),_0xfe406d=>_0xfe406d?this[_0xaf1475(0x118)][_0xaf1475(0x14c)][_0xaf1475(0x12e)]:_0x5dbc81(this[_0xaf1475(0x136)],_0xaf1475(0x156))),this[_0xaf1475(0x118)][_0xaf1475(0x129)](_0xaf1475(0x168))['to'](this,_0xaf1475(0x164),_0x2895b1=>_0x2895b1),this[_0xaf1475(0x16c)][_0xaf1475(0x129)](_0xaf1475(0x176))['to'](this,_0xaf1475(0x123),_0xd4c6f7=>_0xd4c6f7),this[_0xaf1475(0x16c)][_0xaf1475(0x129)](_0xaf1475(0x14f))['to'](this,_0xaf1475(0x151),_0x52b6f7=>!_0x52b6f7),this[_0xaf1475(0x16c)][_0xaf1475(0x129)](_0xaf1475(0x13a))['to'](this,_0xaf1475(0x123),_0x33c979=>_0x5dbc81(this[_0xaf1475(0x136)],_0x33c979?_0xaf1475(0x158):_0xaf1475(0x125))),this[_0xaf1475(0x13c)][_0xaf1475(0x129)](_0xaf1475(0x176))['to'](this,_0xaf1475(0x15b),_0x585276=>_0x585276),this[_0xaf1475(0x13c)][_0xaf1475(0x129)](_0xaf1475(0x14f))['to'](this,_0xaf1475(0x151),_0x59cc9c=>!_0x59cc9c),this[_0xaf1475(0x13c)][_0xaf1475(0x129)](_0xaf1475(0x13a))['to'](this,_0xaf1475(0x15b),_0x12b7a4=>_0x5dbc81(this[_0xaf1475(0x136)],_0x12b7a4?_0xaf1475(0x11f):_0xaf1475(0x126))),this[_0xaf1475(0x132)]({'tag':_0xaf1475(0x148),'attributes':{'class':[Do]},'children':[this[_0xaf1475(0x118)],this[_0xaf1475(0x131)],this[_0xaf1475(0x16c)],this[_0xaf1475(0x13c)],this[_0xaf1475(0x166)]]}),this[_0xaf1475(0x157)]=new _0x419921(),_0x399bd8(this[_0xaf1475(0x118)],this[_0xaf1475(0x157)]);}[_0x260848(0x11a)](_0x102550,_0x4fe467){const _0x4e7236=_0x260848;if(this[_0x4e7236(0x173)](_0x4e7236(0x151),!(_0x4fe467&&_0x102550[_0x4e7236(0x12d)]<=0x1)),this[_0x4e7236(0x157)][_0x4e7236(0x16d)](),_0x102550?.[_0x4e7236(0x12d)]){const _0x4f7553=_0x19b685[_0x4e7236(0x133)](this[_0x4e7236(0x136)],_0x102550);for(const _0x40f069 of _0x4f7553){const _0x44639d=new _0x7a3edb({'label':_0x40f069[_0x4e7236(0x146)],'withText':!0x0,'role':_0x4e7236(0x13e),'id':_0x40f069['id'],'model':_0x40f069});_0x44639d[_0x4e7236(0x129)](_0x4e7236(0x176))['to'](this,_0x4e7236(0x14e),_0x24f4c4=>_0x24f4c4===_0x40f069['id']),this[_0x4e7236(0x157)][_0x4e7236(0x147)]({'type':_0x4e7236(0x12a),'model':_0x44639d,'labelView':new Xs(this[_0x4e7236(0x136)],_0x40f069)});}}}[_0x260848(0x175)](_0x4c2240){const _0x4c7697=_0x260848;this[_0x4c7697(0x173)](_0x4c7697(0x123),_0x4c2240);}[_0x260848(0x15c)](_0x2d98e8){const _0x29251b=_0x260848;this[_0x29251b(0x173)](_0x29251b(0x15b),_0x2d98e8);}[_0x260848(0x12c)](_0x4a81ea){const _0x42aa57=_0x260848;if(!_0x4a81ea)return;this[_0x42aa57(0x14e)]=_0x4a81ea['id'],this[_0x42aa57(0x16a)]=_0x4a81ea[_0x42aa57(0x146)]||_0x4a81ea['id'],this[_0x42aa57(0x118)][_0x42aa57(0x14c)][_0x42aa57(0x173)](_0x42aa57(0x12e),_0x4a81ea[_0x42aa57(0x146)]),this[_0x42aa57(0x118)][_0x42aa57(0x14c)][_0x42aa57(0x173)](_0x42aa57(0x13a),_0x4a81ea[_0x42aa57(0x146)]);const _0x550094=_0x4a81ea[_0x42aa57(0x15f)][_0x42aa57(0x177)]?.[_0x42aa57(0x155)]??!0x1;this[_0x42aa57(0x173)](_0x42aa57(0x123),!0x1),this[_0x42aa57(0x16c)][_0x42aa57(0x173)](_0x42aa57(0x176),!0x1),this[_0x42aa57(0x16c)][_0x42aa57(0x173)](_0x42aa57(0x168),_0x550094),this[_0x42aa57(0x16c)][_0x42aa57(0x173)](_0x42aa57(0x116),_0x550094);const _0x213e24=_0x4a81ea[_0x42aa57(0x15f)][_0x42aa57(0x172)]?.[_0x42aa57(0x155)]??!0x1;this[_0x42aa57(0x173)](_0x42aa57(0x15b),!0x1),this[_0x42aa57(0x13c)][_0x42aa57(0x173)](_0x42aa57(0x176),!0x1),this[_0x42aa57(0x13c)][_0x42aa57(0x173)](_0x42aa57(0x168),_0x213e24),this[_0x42aa57(0x13c)][_0x42aa57(0x173)](_0x42aa57(0x116),_0x213e24);}[_0x260848(0x119)](){const _0x856731=_0x260848;this[_0x856731(0x173)](_0x856731(0x164),!0x0),this[_0x856731(0x173)](_0x856731(0x151),!0x0);}[_0x260848(0x13d)](_0x5efa2c){const _0x136611=_0x260848;this[_0x136611(0x173)](_0x136611(0x164),!0x1),_0x5efa2c&&this[_0x136611(0x173)](_0x136611(0x151),!0x1);}[_0x260848(0x135)](){const _0x38e0ba=_0x260848,_0x2a1bdc=new _0x3a5d64();return _0x2a1bdc[_0x38e0ba(0x173)]({'label':_0x5dbc81(this[_0x38e0ba(0x136)],_0x38e0ba(0x163)),'icon':_0x183a29,'class':bo,'isToggleable':!0x0,'tooltipPosition':zo}),_0x2a1bdc['on'](_0x38e0ba(0x11d),()=>{const _0x33975a=_0x38e0ba;this[_0x33975a(0x13b)](_0x33975a(0x124));}),_0x2a1bdc;}[_0x260848(0x17b)](){const _0x5b0867=_0x260848,_0x56f8ae=new _0x3a5d64();return _0x56f8ae[_0x5b0867(0x173)]({'label':_0x5dbc81(this[_0x5b0867(0x136)],_0x5b0867(0x15d)),'icon':_0x30f27c,'class':bo,'isToggleable':!0x0,'tooltipPosition':zo}),_0x56f8ae['on'](_0x5b0867(0x11d),()=>{const _0x1b4abc=_0x5b0867;this[_0x1b4abc(0x13b)](_0x1b4abc(0x179));}),_0x56f8ae;}[_0x260848(0x138)](){const _0x4428c3=_0x260848,_0x1d0c99=new _0x3a5d64();return _0x1d0c99[_0x4428c3(0x173)]({'label':_0x5dbc81(this[_0x4428c3(0x136)],_0x4428c3(0x161)),'icon':_0x9a2fe0,'withText':!0x0,'class':bo,'isToggleable':!0x0,'tooltip':_0x5dbc81(this[_0x4428c3(0x136)],_0x4428c3(0x161)),'tooltipPosition':zo}),_0x1d0c99[_0x4428c3(0x15e)]({'attributes':{'class':[Wo]}}),_0x1d0c99['on'](_0x4428c3(0x11d),()=>{const _0x573b1d=_0x4428c3;console[_0x573b1d(0x15a)](_0x573b1d(0x134)),alert(_0x573b1d(0x134));}),_0x1d0c99;}[_0x260848(0x153)](){const _0x5cd37f=_0x260848,_0x52faad=_0x4e1f4e(this[_0x5cd37f(0x136)]);return _0x52faad[_0x5cd37f(0x173)]({'panelPosition':'ne','class':[yo]}),_0x52faad[_0x5cd37f(0x14c)][_0x5cd37f(0x173)]({'label':_0x5dbc81(this[_0x5cd37f(0x136)],_0x5cd37f(0x127)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':zo}),this[_0x5cd37f(0x167)](_0x52faad,_0x5cd37f(0x11d),_0x43073b=>{const _0x360574=_0x5cd37f;this[_0x360574(0x13b)](_0x360574(0x160),_0x43073b[_0x360574(0x14b)][_0x360574(0x11c)]);}),_0x52faad;}[_0x260848(0x154)](){const _0xed4395=_0x260848,_0x2e4bd6=new Jo(this[_0xed4395(0x136)]);return _0x2e4bd6[_0xed4395(0x129)](_0xed4395(0x117))['to'](this,_0xed4395(0x16a),_0x8fb9ea=>_0x8fb9ea??''),_0x2e4bd6[_0xed4395(0x129)](_0xed4395(0x116))['to'](this,_0xed4395(0x151),this,_0xed4395(0x16a),(_0x34a619,_0x65403d)=>!_0x34a619&&!_0x65403d?.[_0xed4395(0x12b)]()[_0xed4395(0x120)](_0xed4395(0x12f))),_0x2e4bd6;}}class Xs extends _0x35c256{constructor(_0x1f8976,_0x37c8bf){const _0x4d8440=_0x260848;super();const _0x247d64=this[_0x4d8440(0x174)],_0x4a3108=this[_0x4d8440(0x17a)]();this[_0x4d8440(0x132)]({'tag':_0x4d8440(0x148),'attributes':{'class':['ck',_0x4d8440(0x159)],'style':_0x247d64['to'](_0x4d8440(0x169)),'id':_0x247d64['to']('id')},'children':[{'tag':_0x4d8440(0x148),'attributes':{'class':[Go]},'children':[{'text':_0x247d64['to'](_0x4d8440(0x117))}]},{'tag':_0x4d8440(0x148),'attributes':{'class':[Yo]},'children':[{'tag':_0x4d8440(0x14d),'children':[{'text':_0x37c8bf[_0x4d8440(0x16e)]}]}]},{'tag':_0x4d8440(0x148),'attributes':{'class':[qo]},'children':_0x4a3108}]}),_0x4a3108[_0x4d8440(0x144)](this[_0x4d8440(0x170)](_0x1f8976,_0x183a29,_0x4d8440(0x163),_0x37c8bf[_0x4d8440(0x15f)][_0x4d8440(0x177)]?.[_0x4d8440(0x155)]??!0x1)),_0x4a3108[_0x4d8440(0x144)](this[_0x4d8440(0x170)](_0x1f8976,_0x30f27c,_0x4d8440(0x15d),_0x37c8bf[_0x4d8440(0x15f)][_0x4d8440(0x172)]?.[_0x4d8440(0x155)]??!0x1));}[_0x260848(0x170)](_0x203c64,_0x5442d4,_0x4b7cab,_0x3d316f){const _0x3d2002=_0x260848,_0x3fc72c=new _0x3b4039();_0x3fc72c[_0x3d2002(0x140)]=_0x5442d4;const _0x310841=new _0x23a7be(_0x203c64);_0x310841[_0x3d2002(0x132)]({'tag':_0x3d2002(0x14d),'children':[{'text':_0x5dbc81(_0x203c64,_0x4b7cab)+':\x20'}]});const _0x4d2bb4=new _0x23a7be(_0x203c64);return _0x4d2bb4[_0x3d2002(0x132)]({'tag':_0x3d2002(0x14d),'children':[{'text':_0x5dbc81(_0x203c64,_0x3d316f?_0x3d2002(0x137):_0x3d2002(0x178))}]}),[_0x3fc72c,_0x310841,_0x4d2bb4];}}function _0x4975(_0x4f221d,_0x50f001){const _0x247fca=_0x247f();return _0x4975=function(_0x49751c,_0x2dba06){_0x49751c=_0x49751c-0x116;let _0x28c102=_0x247fca[_0x49751c];return _0x28c102;},_0x4975(_0x4f221d,_0x50f001);}class Jo extends _0x23a7be{constructor(_0x307d59){const _0x1eae98=_0x260848;super(_0x307d59),this[_0x1eae98(0x173)](_0x1eae98(0x117),void 0x0),this[_0x1eae98(0x173)](_0x1eae98(0x116),!0x0);const _0x4cb0fd=this[_0x1eae98(0x174)];this[_0x1eae98(0x132)]({'tag':_0x1eae98(0x14d),'attributes':{'class':['ck',_0x1eae98(0x130),_0x4cb0fd['if'](_0x1eae98(0x116),_0x1eae98(0x13f),_0x12a4a4=>!_0x12a4a4)]},'children':[{'text':_0x4cb0fd['to'](_0x1eae98(0x117))}]});}}
|
|
23
|
+
function _0x52de(_0x2a2e99,_0x40220d){const _0x54edca=_0x54ed();return _0x52de=function(_0x52de11,_0x1ec0d5){_0x52de11=_0x52de11-0x91;let _0x62498e=_0x54edca[_0x52de11];return _0x62498e;},_0x52de(_0x2a2e99,_0x40220d);}const _0x498d5d=_0x52de;function _0x54ed(){const _0x11ecfd=['model','3660GXHwMJ','extendTemplate','createCollection','ck-ai-chat-controls__model-selection','modelSelectorEnabled','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_ENABLE_REASONING','length','selectModel','log','description','_createWebSearchButton','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_REASONING','397734vpbzSa','bindTemplate','_createCommandsButton','add','_createReasoningButton','4992630Tfncyc','isVisible','listenTo','toggleWebSearch','_createModelSelectionDropdown','AI_CHAT_DISABLE_WEB_SEARCH','98pPjVTe','setReasoning','_createModelNameView','activeModelId','_reasoningButton','AI_CHAT_SEARCH_WEB','span','AI_CHAT_CAPABILITIES_NO','_modelSelectionDropdown','ck-ai-chat-controls-button--commands','setModelList','enableModelSelector','setWebSearch','tooltip','isEnabled','toLowerCase','label','ck-ai-chat-controls__model-selection__item-description','AI_CHAT_ENABLE_WEB_SEARCH','ck-ai-chat__prompt-capabilities','ck-ai-chat-controls__model-selection__item-capabilities','_getCapabilityParts','fire','ck-hidden','text','setModel','agent','enabled','webSearchActive','webSearch','AI_CHAT_DISABLE_REASONING','ck-ai-chat-controls-button','ck-ai-chat-controls__model-name','AI_CHAT_COMMANDS','capabilities','clear','_modelNameView','menuitemradio','content','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','bind','376TiIyYM','withText','reasoning','5020wcTdeK','source','name','div','24gHRwer','33726vdgFfV','button','12247920GbrnJZ','toggleReasoning','execute','ck-ai-chat-controls__model-selection__item-name','buttonView','ck-button__label','setTemplate','isOn','715328AbNQKC','_webSearchButton','activeModelName','reasoningActive','7170944xebvNQ','set','_commandsButton','_modelSelectionDropdownItems','disableModelSelector','style','startsWith','getLocalized','AI_CHAT_CAPABILITIES_YES','addMany','locale','modelSelectorVisible'];_0x54ed=function(){return _0x11ecfd;};return _0x54ed();}(function(_0x5c678c,_0x509e8f){const _0x41d4c6=_0x52de,_0x43cb09=_0x5c678c();while(!![]){try{const _0x1cd734=parseInt(_0x41d4c6(0xd4))/0x1*(parseInt(_0x41d4c6(0xd7))/0x2)+parseInt(_0x41d4c6(0xdb))/0x3*(parseInt(_0x41d4c6(0xe6))/0x4)+-parseInt(_0x41d4c6(0xa5))/0x5+parseInt(_0x41d4c6(0xa0))/0x6*(parseInt(_0x41d4c6(0xab))/0x7)+parseInt(_0x41d4c6(0xea))/0x8+-parseInt(_0x41d4c6(0xde))/0x9+-parseInt(_0x41d4c6(0x92))/0xa*(parseInt(_0x41d4c6(0xdc))/0xb);if(_0x1cd734===_0x509e8f)break;else _0x43cb09['push'](_0x43cb09['shift']());}catch(_0x34fb2f){_0x43cb09['push'](_0x43cb09['shift']());}}}(_0x54ed,0xaf1d4));import{Collection as _0x79e392}from'ckeditor5/src/utils.js';import{IconAI as _0x3e9bde,IconBulb as _0x4423c5,IconWeb as _0x3d787c}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x8edfc8,ButtonLabelView as _0x2e56c8,ButtonView as _0x51b15d,createDropdown as _0x38515c,IconView as _0x191944,UIModel as _0x61fa73,View as _0x406b44}from'ckeditor5/src/ui.js';import{getTranslation as _0x8e7cdb}from'../../../aicore/utils/common-translations.js';import{AIModels as _0x3715b9}from'../../../aicore/model/aimodels.js';const yo=_0x498d5d(0xbe),Uo=_0x498d5d(0xca),jo=_0x498d5d(0xb4),Go=_0x498d5d(0x95),Yo=_0x498d5d(0xe1),qo=_0x498d5d(0xbc),zo=_0x498d5d(0xbf),Fo='n';export class AIChatPromptCapabilitiesView extends _0x406b44{[_0x498d5d(0xe7)];[_0x498d5d(0xaf)];[_0x498d5d(0xec)];[_0x498d5d(0xb3)];[_0x498d5d(0xed)];[_0x498d5d(0xcf)];constructor(_0x27b15){const _0x5718d0=_0x498d5d;super(_0x27b15),this[_0x5718d0(0xeb)](_0x5718d0(0xc7),!0x1),this[_0x5718d0(0xeb)](_0x5718d0(0xe9),!0x1),this[_0x5718d0(0xeb)](_0x5718d0(0xf5),!0x0),this[_0x5718d0(0xeb)](_0x5718d0(0x96),!0x0),this[_0x5718d0(0xeb)](_0x5718d0(0xae),null),this[_0x5718d0(0xeb)](_0x5718d0(0xe8),null),this[_0x5718d0(0xb3)]=this[_0x5718d0(0xa9)](),this[_0x5718d0(0xcf)]=this[_0x5718d0(0xad)](),this[_0x5718d0(0xe7)]=this[_0x5718d0(0x9d)](),this[_0x5718d0(0xaf)]=this[_0x5718d0(0xa4)](),this[_0x5718d0(0xec)]=this[_0x5718d0(0xa2)](),this[_0x5718d0(0xb3)][_0x5718d0(0xe2)][_0x5718d0(0xd3)](_0x5718d0(0xa6))['to'](this,_0x5718d0(0xf5),_0x19758b=>_0x19758b),this[_0x5718d0(0xb3)][_0x5718d0(0xe2)][_0x5718d0(0xd3)](_0x5718d0(0xb8))['to'](this,_0x5718d0(0x96),_0x4d96b6=>_0x4d96b6?this[_0x5718d0(0xb3)][_0x5718d0(0xe2)][_0x5718d0(0xbb)]:_0x8e7cdb(this[_0x5718d0(0xf4)],_0x5718d0(0x9e))),this[_0x5718d0(0xb3)][_0x5718d0(0xd3)](_0x5718d0(0xb9))['to'](this,_0x5718d0(0x96),_0x179892=>_0x179892),this[_0x5718d0(0xe7)][_0x5718d0(0xd3)](_0x5718d0(0xe5))['to'](this,_0x5718d0(0xc7),_0x59ca93=>_0x59ca93),this[_0x5718d0(0xe7)][_0x5718d0(0xd3)](_0x5718d0(0xd5))['to'](this,_0x5718d0(0xf5),_0x249228=>!_0x249228),this[_0x5718d0(0xe7)][_0x5718d0(0xd3)](_0x5718d0(0xb8))['to'](this,_0x5718d0(0xc7),_0x418411=>_0x8e7cdb(this[_0x5718d0(0xf4)],_0x418411?_0x5718d0(0xaa):_0x5718d0(0xbd))),this[_0x5718d0(0xaf)][_0x5718d0(0xd3)](_0x5718d0(0xe5))['to'](this,_0x5718d0(0xe9),_0x49a249=>_0x49a249),this[_0x5718d0(0xaf)][_0x5718d0(0xd3)](_0x5718d0(0xd5))['to'](this,_0x5718d0(0xf5),_0x15cef4=>!_0x15cef4),this[_0x5718d0(0xaf)][_0x5718d0(0xd3)](_0x5718d0(0xb8))['to'](this,_0x5718d0(0xe9),_0x108a1e=>_0x8e7cdb(this[_0x5718d0(0xf4)],_0x108a1e?_0x5718d0(0xc9):_0x5718d0(0x98))),this[_0x5718d0(0xe4)]({'tag':_0x5718d0(0xda),'attributes':{'class':[yo]},'children':[this[_0x5718d0(0xb3)],this[_0x5718d0(0xcf)],this[_0x5718d0(0xe7)],this[_0x5718d0(0xaf)],this[_0x5718d0(0xec)]]}),this[_0x5718d0(0xed)]=new _0x79e392(),_0x8edfc8(this[_0x5718d0(0xb3)],this[_0x5718d0(0xed)]);}[_0x498d5d(0xb5)](_0x331f73,_0x11ab9a){const _0x25f273=_0x498d5d;if(this[_0x25f273(0xeb)](_0x25f273(0xf5),!(_0x11ab9a&&_0x331f73[_0x25f273(0x99)]<=0x1)),this[_0x25f273(0xed)][_0x25f273(0xce)](),_0x331f73?.[_0x25f273(0x99)]){const _0x1552df=_0x3715b9[_0x25f273(0xf1)](this[_0x25f273(0xf4)],_0x331f73);for(const _0x1d5fca of _0x1552df){const _0x4581a1=new _0x61fa73({'label':_0x1d5fca[_0x25f273(0xd9)],'withText':!0x0,'role':_0x25f273(0xd0),'id':_0x1d5fca['id'],'model':_0x1d5fca});_0x4581a1[_0x25f273(0xd3)](_0x25f273(0xe5))['to'](this,_0x25f273(0xae),_0x4d9b07=>_0x4d9b07===_0x1d5fca['id']),this[_0x25f273(0xed)][_0x25f273(0xa3)]({'type':_0x25f273(0xdd),'model':_0x4581a1,'labelView':new Xs(this[_0x25f273(0xf4)],_0x1d5fca)});}}}[_0x498d5d(0xb7)](_0x446c28){const _0x5a161a=_0x498d5d;this[_0x5a161a(0xeb)](_0x5a161a(0xc7),_0x446c28);}[_0x498d5d(0xac)](_0x539e82){const _0x2bb866=_0x498d5d;this[_0x2bb866(0xeb)](_0x2bb866(0xe9),_0x539e82);}[_0x498d5d(0xc4)](_0x551aef){const _0x17984b=_0x498d5d;if(!_0x551aef)return;this[_0x17984b(0xae)]=_0x551aef['id'],this[_0x17984b(0xe8)]=_0x551aef[_0x17984b(0xd9)]||_0x551aef['id'],this[_0x17984b(0xb3)][_0x17984b(0xe2)][_0x17984b(0xeb)](_0x17984b(0xbb),_0x551aef[_0x17984b(0xd9)]),this[_0x17984b(0xb3)][_0x17984b(0xe2)][_0x17984b(0xeb)](_0x17984b(0xb8),_0x551aef[_0x17984b(0xd9)]);const _0x575c16=_0x551aef[_0x17984b(0xcd)][_0x17984b(0xc8)]?.[_0x17984b(0xc6)]??!0x1;this[_0x17984b(0xeb)](_0x17984b(0xc7),!0x1),this[_0x17984b(0xe7)][_0x17984b(0xeb)](_0x17984b(0xe5),!0x1),this[_0x17984b(0xe7)][_0x17984b(0xeb)](_0x17984b(0xb9),_0x575c16),this[_0x17984b(0xe7)][_0x17984b(0xeb)](_0x17984b(0xa6),_0x575c16);const _0x11a100=_0x551aef[_0x17984b(0xcd)][_0x17984b(0xd6)]?.[_0x17984b(0xc6)]??!0x1;this[_0x17984b(0xeb)](_0x17984b(0xe9),!0x1),this[_0x17984b(0xaf)][_0x17984b(0xeb)](_0x17984b(0xe5),!0x1),this[_0x17984b(0xaf)][_0x17984b(0xeb)](_0x17984b(0xb9),_0x11a100),this[_0x17984b(0xaf)][_0x17984b(0xeb)](_0x17984b(0xa6),_0x11a100);}[_0x498d5d(0xb6)](){const _0xeebc03=_0x498d5d;this[_0xeebc03(0xeb)](_0xeebc03(0x96),!0x0),this[_0xeebc03(0xeb)](_0xeebc03(0xf5),!0x0);}[_0x498d5d(0xee)](_0x276840){const _0x53cf1d=_0x498d5d;this[_0x53cf1d(0xeb)](_0x53cf1d(0x96),!0x1),_0x276840&&this[_0x53cf1d(0xeb)](_0x53cf1d(0xf5),!0x1);}[_0x498d5d(0x9d)](){const _0x1bb581=_0x498d5d,_0x755bdb=new _0x51b15d();return _0x755bdb[_0x1bb581(0xeb)]({'label':_0x8e7cdb(this[_0x1bb581(0xf4)],_0x1bb581(0xb0)),'icon':_0x3d787c,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x755bdb['on'](_0x1bb581(0xe0),()=>{const _0x2055a1=_0x1bb581;this[_0x2055a1(0xc1)](_0x2055a1(0xa8));}),_0x755bdb;}[_0x498d5d(0xa4)](){const _0x2c3494=_0x498d5d,_0x36482f=new _0x51b15d();return _0x36482f[_0x2c3494(0xeb)]({'label':_0x8e7cdb(this[_0x2c3494(0xf4)],_0x2c3494(0x9f)),'icon':_0x4423c5,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x36482f['on'](_0x2c3494(0xe0),()=>{const _0x18b714=_0x2c3494;this[_0x18b714(0xc1)](_0x18b714(0xdf));}),_0x36482f;}[_0x498d5d(0xa2)](){const _0x570234=_0x498d5d,_0x501072=new _0x51b15d();return _0x501072[_0x570234(0xeb)]({'label':_0x8e7cdb(this[_0x570234(0xf4)],_0x570234(0xcc)),'icon':_0x3e9bde,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x8e7cdb(this[_0x570234(0xf4)],_0x570234(0xcc)),'tooltipPosition':Fo}),_0x501072[_0x570234(0x93)]({'attributes':{'class':[jo]}}),_0x501072['on'](_0x570234(0xe0),()=>{const _0xcdd9a4=_0x570234;console[_0xcdd9a4(0x9b)](_0xcdd9a4(0x97)),alert(_0xcdd9a4(0x97));}),_0x501072;}[_0x498d5d(0xa9)](){const _0x474a58=_0x498d5d,_0x4b03db=_0x38515c(this[_0x474a58(0xf4)]);return _0x4b03db[_0x474a58(0xeb)]({'panelPosition':'ne','class':[Go]}),_0x4b03db[_0x474a58(0xe2)][_0x474a58(0xeb)]({'label':_0x8e7cdb(this[_0x474a58(0xf4)],_0x474a58(0xd2)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x474a58(0xa7)](_0x4b03db,_0x474a58(0xe0),_0x49fb78=>{const _0x487291=_0x474a58;this[_0x487291(0xc1)](_0x487291(0x9a),_0x49fb78[_0x487291(0xd8)][_0x487291(0x91)]);}),_0x4b03db;}[_0x498d5d(0xad)](){const _0x1eed57=_0x498d5d,_0x21fd61=new Jo(this[_0x1eed57(0xf4)]);return _0x21fd61[_0x1eed57(0xd3)](_0x1eed57(0xc3))['to'](this,_0x1eed57(0xe8),_0x37b869=>_0x37b869??''),_0x21fd61[_0x1eed57(0xd3)](_0x1eed57(0xa6))['to'](this,_0x1eed57(0xf5),this,_0x1eed57(0xe8),(_0x445051,_0x44d533)=>!_0x445051&&!_0x44d533?.[_0x1eed57(0xba)]()[_0x1eed57(0xf0)](_0x1eed57(0xc5))),_0x21fd61;}}class Xs extends _0x2e56c8{constructor(_0xe9c7bd,_0x1ea9ae){const _0x3c5c56=_0x498d5d;super();const _0x1c7150=this[_0x3c5c56(0xa1)],_0xc7d1b0=this[_0x3c5c56(0x94)]();this[_0x3c5c56(0xe4)]({'tag':_0x3c5c56(0xda),'attributes':{'class':['ck',_0x3c5c56(0xe3)],'style':_0x1c7150['to'](_0x3c5c56(0xef)),'id':_0x1c7150['to']('id')},'children':[{'tag':_0x3c5c56(0xda),'attributes':{'class':[Yo]},'children':[{'text':_0x1c7150['to'](_0x3c5c56(0xc3))}]},{'tag':_0x3c5c56(0xda),'attributes':{'class':[qo]},'children':[{'tag':_0x3c5c56(0xb1),'children':[{'text':_0x1ea9ae[_0x3c5c56(0x9c)]}]}]},{'tag':_0x3c5c56(0xda),'attributes':{'class':[zo]},'children':_0xc7d1b0}]}),_0xc7d1b0[_0x3c5c56(0xf3)](this[_0x3c5c56(0xc0)](_0xe9c7bd,_0x3d787c,_0x3c5c56(0xb0),_0x1ea9ae[_0x3c5c56(0xcd)][_0x3c5c56(0xc8)]?.[_0x3c5c56(0xc6)]??!0x1)),_0xc7d1b0[_0x3c5c56(0xf3)](this[_0x3c5c56(0xc0)](_0xe9c7bd,_0x4423c5,_0x3c5c56(0x9f),_0x1ea9ae[_0x3c5c56(0xcd)][_0x3c5c56(0xd6)]?.[_0x3c5c56(0xc6)]??!0x1));}[_0x498d5d(0xc0)](_0x1befd2,_0x13f1d7,_0x281e75,_0x4d65e4){const _0x14fa2b=_0x498d5d,_0x47c1c0=new _0x191944();_0x47c1c0[_0x14fa2b(0xd1)]=_0x13f1d7;const _0x643126=new _0x406b44(_0x1befd2);_0x643126[_0x14fa2b(0xe4)]({'tag':_0x14fa2b(0xb1),'children':[{'text':_0x8e7cdb(_0x1befd2,_0x281e75)+':\x20'}]});const _0x32edca=new _0x406b44(_0x1befd2);return _0x32edca[_0x14fa2b(0xe4)]({'tag':_0x14fa2b(0xb1),'children':[{'text':_0x8e7cdb(_0x1befd2,_0x4d65e4?_0x14fa2b(0xf2):_0x14fa2b(0xb2))}]}),[_0x47c1c0,_0x643126,_0x32edca];}}class Jo extends _0x406b44{constructor(_0x5200a8){const _0x5e4558=_0x498d5d;super(_0x5200a8),this[_0x5e4558(0xeb)](_0x5e4558(0xc3),void 0x0),this[_0x5e4558(0xeb)](_0x5e4558(0xa6),!0x0);const _0x1ce540=this[_0x5e4558(0xa1)];this[_0x5e4558(0xe4)]({'tag':_0x5e4558(0xb1),'attributes':{'class':['ck',_0x5e4558(0xcb),_0x1ce540['if'](_0x5e4558(0xa6),_0x5e4558(0xc2),_0x1887c7=>!_0x1887c7)]},'children':[{'text':_0x1ce540['to'](_0x5e4558(0xc3))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59a7b1=_0x35ee;(function(_0x48acef,_0x433299){const _0xd20c86=_0x35ee,_0x11cccf=_0x48acef();while(!![]){try{const _0x45bb3d=parseInt(_0xd20c86(0xf9))/0x1*(parseInt(_0xd20c86(0xec))/0x2)+-parseInt(_0xd20c86(0xe6))/0x3*(parseInt(_0xd20c86(0xe0))/0x4)+parseInt(_0xd20c86(0xba))/0x5+-parseInt(_0xd20c86(0xde))/0x6+parseInt(_0xd20c86(0xdb))/0x7*(parseInt(_0xd20c86(0xf0))/0x8)+-parseInt(_0xd20c86(0xd3))/0x9*(-parseInt(_0xd20c86(0xe1))/0xa)+parseInt(_0xd20c86(0xca))/0xb*(-parseInt(_0xd20c86(0xcb))/0xc);if(_0x45bb3d===_0x433299)break;else _0x11cccf['push'](_0x11cccf['shift']());}catch(_0x527f83){_0x11cccf['push'](_0x11cccf['shift']());}}}(_0x5456,0xcc16e));import{IconSubmit as _0x446c25}from'ckeditor5/src/icons.js';function _0x35ee(_0x5c6fcb,_0x1ec29e){const _0x545630=_0x5456();return _0x35ee=function(_0x35ee75,_0x5a80f7){_0x35ee75=_0x35ee75-0xba;let _0x246fc0=_0x545630[_0x35ee75];return _0x246fc0;},_0x35ee(_0x5c6fcb,_0x1ec29e);}import{ButtonView as _0xb36065,AutocompleteView as _0x1e18d9,createLabeledTextarea as _0xedf23e}from'ckeditor5/src/ui.js';import{global as _0x5ebdc5,isVisible as _0x32b2f6,Rect as _0x466028,ResizeObserver as _0x30ffe6}from'ckeditor5/src/utils.js';import{getTranslation as _0x4e853f}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x49a613}from'./aichatpromptsuggestionslistview.js';import{escape as _0x11ae6f}from'es-toolkit/compat';function _0x5456(){const _0x520b0e=['width','sendUserMessage','hasError','_queryViewResizeObserver','px\x20-\x20var(--ck-spacing-tiny))','requestAnimationFrame','keystrokes','element','left','destroy','ck-ai-chat__prompt-input','window','110XnjhjI','2239524yIojku','_createSubmitButton','extendTemplate','enter','right','fieldView','target','maxRows','1305VoLaHB','style','focusableChildren','_addContextButtonView','submitButtonView','fieldWrapperChildren','rtl','errorText','10424071UvXLdd','trim','update','2848776fJMnaN','isEmpty','4rEAkku','59580aqXQFB','bind','fire','value','reset','3041133oqZToO','uiLanguageDirection','execute','add','_setUpAddContextButtonPositioning','queryView','10432iZiBGW','ck-ai-chat__prompt-submit-button','placeholder','MIN_ROWS','8SrDBpR','setIsUploadInProgress','render','calc(','MAX_ROWS','submit','isUploadInProgress','excludeScrollbarsAndBorders','minRows','71zaLFQP','AI_CHAT_LABEL_SUBMIT','isEnabled','AI_CHAT_PROMPT_EMPTY_ERROR','7336640wRbNeT','set','locale','setPlaceholderText'];_0x5456=function(){return _0x520b0e;};return _0x5456();}export class AIChatPromptInputView extends _0x1e18d9{[_0x59a7b1(0xd7)];static [_0x59a7b1(0xef)]=0x1;static [_0x59a7b1(0xf4)]=0xc;[_0x59a7b1(0xd6)];[_0x59a7b1(0xc1)];constructor(_0x13ae98,_0x302441){const _0x45e80d=_0x59a7b1;super(_0x13ae98,{'queryView':{'label':'','creator':_0xedf23e,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x49a613(_0x13ae98),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x45e80d(0xbb)](_0x45e80d(0xdf),!0x0),this[_0x45e80d(0xbb)](_0x45e80d(0xf6),!0x1),this[_0x45e80d(0xd6)]=_0x302441,this[_0x45e80d(0xc1)]=null,this[_0x45e80d(0xeb)][_0x45e80d(0xd0)][_0x45e80d(0xf8)]=AIChatPromptInputView[_0x45e80d(0xef)],this[_0x45e80d(0xeb)][_0x45e80d(0xd0)][_0x45e80d(0xd2)]=AIChatPromptInputView[_0x45e80d(0xf4)],this[_0x45e80d(0xeb)][_0x45e80d(0xd8)][_0x45e80d(0xe9)](this[_0x45e80d(0xd6)]),this[_0x45e80d(0xea)](),this[_0x45e80d(0xcd)]({'attributes':{'class':['ck',_0x45e80d(0xc8)]}}),this[_0x45e80d(0xd7)]=this[_0x45e80d(0xcc)](),this[_0x45e80d(0xd7)][_0x45e80d(0xe2)](_0x45e80d(0xfb))['to'](this,_0x45e80d(0xdf),this,_0x45e80d(0xf6),(_0x393537,_0x4c522b)=>!_0x393537&&!_0x4c522b),this[_0x45e80d(0xd5)][_0x45e80d(0xe9)](this[_0x45e80d(0xd7)]);}[_0x59a7b1(0xf2)](){const _0x45323c=_0x59a7b1;super[_0x45323c(0xf2)](),this[_0x45323c(0xeb)][_0x45323c(0xd8)][_0x45323c(0xe9)](this[_0x45323c(0xd7)]),this[_0x45323c(0xc4)][_0x45323c(0xbb)](_0x45323c(0xce),(_0x575af6,_0x35e5b8)=>{const _0x6186ce=_0x45323c;this[_0x6186ce(0xf6)]||this[_0x6186ce(0xdf)]||_0x575af6[_0x6186ce(0xd1)]==this[_0x6186ce(0xeb)][_0x6186ce(0xd0)][_0x6186ce(0xc5)]&&(this[_0x6186ce(0xf5)](),_0x35e5b8());}),this[_0x45323c(0xeb)][_0x45323c(0xd0)]['on'](_0x45323c(0xdd),()=>{const _0x28d8ed=_0x45323c;this[_0x28d8ed(0xdf)]=''===this[_0x28d8ed(0xeb)][_0x28d8ed(0xd0)][_0x28d8ed(0xc5)][_0x28d8ed(0xe4)]?.[_0x28d8ed(0xdc)]();});}[_0x59a7b1(0xc7)](){const _0x4ac4d0=_0x59a7b1;super[_0x4ac4d0(0xc7)](),this[_0x4ac4d0(0xc1)]&&this[_0x4ac4d0(0xc1)][_0x4ac4d0(0xc7)]();}[_0x59a7b1(0xf5)](){const _0x5571eb=_0x59a7b1,_0x5bb08a=this[_0x5571eb(0xeb)][_0x5571eb(0xd0)][_0x5571eb(0xc5)][_0x5571eb(0xe4)]?.[_0x5571eb(0xdc)]();if(!_0x5bb08a)return this[_0x5571eb(0xeb)][_0x5571eb(0xda)]=_0x4e853f(this[_0x5571eb(0xbc)],_0x5571eb(0xfc)),void(this[_0x5571eb(0xeb)][_0x5571eb(0xd0)][_0x5571eb(0xc0)]=!0x0);this[_0x5571eb(0xeb)][_0x5571eb(0xd0)][_0x5571eb(0xc0)]=!0x1;const _0x5e3f89=_0x11ae6f(_0x5bb08a);this[_0x5571eb(0xe3)](_0x5571eb(0xbf),_0x5e3f89),this[_0x5571eb(0xeb)][_0x5571eb(0xd0)][_0x5571eb(0xe5)]();}[_0x59a7b1(0xbd)](_0x792e0a){const _0x20bcd7=_0x59a7b1;this[_0x20bcd7(0xeb)][_0x20bcd7(0xd0)][_0x20bcd7(0xbb)](_0x20bcd7(0xee),_0x792e0a);}[_0x59a7b1(0xcc)](){const _0xe8a752=_0x59a7b1,_0x5c1e95=new _0xb36065(this[_0xe8a752(0xbc)]);return _0x5c1e95[_0xe8a752(0xbb)]({'icon':_0x446c25,'label':_0x4e853f(this[_0xe8a752(0xbc)],_0xe8a752(0xfa)),'isVisible':!0x0,'tooltip':!0x0,'class':_0xe8a752(0xed),'isEnabled':!0x1}),_0x5c1e95['on'](_0xe8a752(0xe8),()=>{const _0x274f10=_0xe8a752;this[_0x274f10(0xf5)]();}),_0x5c1e95;}[_0x59a7b1(0xf1)](_0x3b2486){const _0x67f56b=_0x59a7b1;this[_0x67f56b(0xf6)]=_0x3b2486;}[_0x59a7b1(0xea)](){const _0x28e03b=_0x59a7b1,_0x30fa3c=this[_0x28e03b(0xbc)],_0x14e4fb=()=>{const _0x33eb27=_0x28e03b;_0x5ebdc5[_0x33eb27(0xc9)][_0x33eb27(0xc3)](()=>{const _0x4ac72c=_0x33eb27;if(_0x32b2f6(this[_0x4ac72c(0xc5)])){const _0x158e13=new _0x466028(this[_0x4ac72c(0xeb)][_0x4ac72c(0xd0)][_0x4ac72c(0xc5)]),_0x4046ec=new _0x466028(this[_0x4ac72c(0xd6)][_0x4ac72c(0xc5)]),_0x5b926e=_0x158e13[_0x4ac72c(0xbe)],_0x414c0a=_0x4ac72c(0xd9)===_0x30fa3c[_0x4ac72c(0xe7)]?_0x4ac72c(0xcf):_0x4ac72c(0xc6);_0x158e13[_0x4ac72c(0xf7)]();const _0x14d105=_0x5b926e-_0x158e13[_0x4ac72c(0xbe)]+0x1;this[_0x4ac72c(0xd6)][_0x4ac72c(0xc5)][_0x4ac72c(0xd4)][_0x414c0a]=_0x4ac72c(0xf3)+(_0x5b926e-_0x4046ec[_0x4ac72c(0xbe)]-_0x14d105)+_0x4ac72c(0xc2);}});};this[_0x28e03b(0xeb)][_0x28e03b(0xd0)]['on'](_0x28e03b(0xdd),_0x14e4fb),this['on'](_0x28e03b(0xf2),()=>{const _0x35499d=_0x28e03b;_0x14e4fb(),this[_0x35499d(0xc1)]=new _0x30ffe6(this[_0x35499d(0xeb)][_0x35499d(0xd0)][_0x35499d(0xc5)],()=>{_0x14e4fb();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x105e40=_0x3c3c;function _0x5a3e(){const _0x1148ae=['850440eMfAkO','1505AaNMVP','62iqZKsM','1876176JzIRzP','24858GqLazW','66krYDpP','filter','length','3096pgWnrS','1526LFcxDd','26916Rojgnu','12416xFXbhW','1948700EqHNFe','items','181pvInEF'];_0x5a3e=function(){return _0x1148ae;};return _0x5a3e();}function _0x3c3c(_0x4905cd,_0x247446){const _0x5a3e38=_0x5a3e();return _0x3c3c=function(_0x3c3c13,_0x1191d3){_0x3c3c13=_0x3c3c13-0x168;let _0x51db02=_0x5a3e38[_0x3c3c13];return _0x51db02;},_0x3c3c(_0x4905cd,_0x247446);}(function(_0x4ce982,_0x142e1d){const _0x26a87e=_0x3c3c,_0x4d0650=_0x4ce982();while(!![]){try{const _0x187aaa=parseInt(_0x26a87e(0x171))/0x1*(-parseInt(_0x26a87e(0x174))/0x2)+parseInt(_0x26a87e(0x172))/0x3+parseInt(_0x26a87e(0x16e))/0x4*(parseInt(_0x26a87e(0x173))/0x5)+parseInt(_0x26a87e(0x16d))/0x6*(-parseInt(_0x26a87e(0x16c))/0x7)+-parseInt(_0x26a87e(0x16b))/0x8*(-parseInt(_0x26a87e(0x176))/0x9)+parseInt(_0x26a87e(0x16f))/0xa+parseInt(_0x26a87e(0x168))/0xb*(-parseInt(_0x26a87e(0x175))/0xc);if(_0x187aaa===_0x142e1d)break;else _0x4d0650['push'](_0x4d0650['shift']());}catch(_0x1f6427){_0x4d0650['push'](_0x4d0650['shift']());}}}(_0x5a3e,0x88b1d));import{ListView as _0x2c3c6e}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x2c3c6e{[_0x105e40(0x169)](){const _0x535d40=_0x105e40;let _0x20e3f4=0x0;for(const _0x11db0a of this[_0x535d40(0x170)])_0x20e3f4+=_0x11db0a[_0x535d40(0x170)][_0x535d40(0x16a)];return{'resultsCount':_0x20e3f4,'totalItemsCount':_0x20e3f4};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x52059b=_0x50f2;(function(_0x4f3cb8,_0x5b7e2c){const _0x19d587=_0x50f2,_0x478660=_0x4f3cb8();while(!![]){try{const _0x5043bb=-parseInt(_0x19d587(0x135))/0x1*(-parseInt(_0x19d587(0x148))/0x2)+parseInt(_0x19d587(0x132))/0x3*(parseInt(_0x19d587(0x13c))/0x4)+-parseInt(_0x19d587(0x13e))/0x5*(-parseInt(_0x19d587(0x12f))/0x6)+parseInt(_0x19d587(0x134))/0x7*(parseInt(_0x19d587(0x14e))/0x8)+parseInt(_0x19d587(0x149))/0x9+parseInt(_0x19d587(0x14b))/0xa+-parseInt(_0x19d587(0x13a))/0xb;if(_0x5043bb===_0x5b7e2c)break;else _0x478660['push'](_0x478660['shift']());}catch(_0x4f15f3){_0x478660['push'](_0x478660['shift']());}}}(_0x56ae,0xac8ba));import{ListView as _0x3eb588}from'ckeditor5/src/ui.js';function _0x50f2(_0x12c1ce,_0x5dd873){const _0x56ae51=_0x56ae();return _0x50f2=function(_0x50f2c6,_0xa0e5c4){_0x50f2c6=_0x50f2c6-0x12f;let _0x4c72e0=_0x56ae51[_0x50f2c6];return _0x4c72e0;},_0x50f2(_0x12c1ce,_0x5dd873);}import{AIChatResourceListItemView as _0x503c9c}from'./aichatresourcelistitemview.js';const oc=_0x52059b(0x138);export class AIChatContextResourcesListView extends _0x3eb588{[_0x52059b(0x136)];constructor(_0xf4732,_0x434157){const _0xe95ce6=_0x52059b;super(_0xf4732),this[_0xe95ce6(0x136)]=_0x434157,this[_0xe95ce6(0x150)]({'attributes':{'class':[oc]}});}[_0x52059b(0x140)](_0x159d68,_0x5c7a52){const _0x27aff0=_0x52059b;this[_0x27aff0(0x137)][_0x27aff0(0x13f)]();let _0x19a1a0=_0x159d68;if(this[_0x27aff0(0x136)][_0x27aff0(0x141)]&&_0x5c7a52&&''!==_0x5c7a52[_0x27aff0(0x14d)]()){const _0x2aa35e=new RegExp(_0x5c7a52[_0x27aff0(0x145)](/[.*+?^${}()|[\]\\]/g,_0x27aff0(0x144)),'gi');_0x19a1a0=_0x159d68[_0x27aff0(0x139)](_0x367511=>_0x2aa35e[_0x27aff0(0x142)](_0x367511[_0x27aff0(0x14a)]));}for(const _0x320d36 of _0x19a1a0){const _0x9d4a18=new _0x503c9c(this[_0x27aff0(0x130)],_0x320d36);_0x9d4a18['on'](_0x27aff0(0x147),()=>{const _0xbdc191=_0x27aff0;this[_0xbdc191(0x14f)](this[_0xbdc191(0x136)],_0x320d36);}),this[_0x27aff0(0x137)][_0x27aff0(0x143)](_0x9d4a18);}this[_0x27aff0(0x136)][_0x27aff0(0x141)]&&this[_0x27aff0(0x146)](_0x5c7a52);}[_0x52059b(0x146)](_0x1a060c){const _0x401db1=_0x52059b;this[_0x401db1(0x136)][_0x401db1(0x141)]&&this[_0x401db1(0x137)][_0x401db1(0x13b)](_0x52ae19=>{const _0x46db71=_0x401db1;_0x52ae19[_0x46db71(0x146)](_0x1a060c);});}[_0x52059b(0x14c)](_0x3af1ab,_0x42e36f){const _0x20ee04=_0x52059b;for(const _0x54cc4b of this[_0x20ee04(0x137)]){const _0x331fbc=_0x54cc4b;_0x331fbc[_0x20ee04(0x131)]['id']===_0x3af1ab&&_0x331fbc[_0x20ee04(0x14c)](_0x42e36f);}}[_0x52059b(0x14f)](_0x542f08,_0x169b29){const _0x5c2fe3=_0x52059b;this[_0x5c2fe3(0x13d)](_0x5c2fe3(0x133),{'source':_0x542f08,'resource':_0x169b29});}}function _0x56ae(){const _0x23111e=['6452pnrYoC','fire','4755920josCxs','clear','setResources','useDefaultFiltering','test','add','\x5c$&','replace','highlightText','execute','46150gDGApB','12493224eMPhWT','label','7186340yrEGMK','updateResourceState','trim','7756872avkdKp','_handleResourceSelection','extendTemplate','6norfHi','locale','resource','567OPvpLz','addResourceToContext','7URDVQp','33tQjKmx','_source','items','ck-ai-chat-resources__list','filter','48258639SXgPNP','forEach'];_0x56ae=function(){return _0x23111e;};return _0x56ae();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d3fd6=_0x3fb6;(function(_0x4e6f89,_0x671930){const _0x6c62f5=_0x3fb6,_0x4303dd=_0x4e6f89();while(!![]){try{const _0x29c581=parseInt(_0x6c62f5(0x12c))/0x1+parseInt(_0x6c62f5(0x14e))/0x2*(parseInt(_0x6c62f5(0x142))/0x3)+parseInt(_0x6c62f5(0x141))/0x4*(parseInt(_0x6c62f5(0x13e))/0x5)+parseInt(_0x6c62f5(0x150))/0x6+parseInt(_0x6c62f5(0x13a))/0x7+parseInt(_0x6c62f5(0x146))/0x8+parseInt(_0x6c62f5(0x129))/0x9*(-parseInt(_0x6c62f5(0x138))/0xa);if(_0x29c581===_0x671930)break;else _0x4303dd['push'](_0x4303dd['shift']());}catch(_0x40c2e4){_0x4303dd['push'](_0x4303dd['shift']());}}}(_0x5586,0x84c10));function _0x5586(){const _0x1948d9=['set','loadSourceResources','2920VbLNmO','length','_resourcesListView','_searchInputVisibleFrom','loadResources','locale','render','extendTemplate','4cDGiVI','_skeletonLoader','1067784UpSzxI','isLoading','ck-hidden','setResources','_searchView','aiChatResources','searchInputVisibleFrom','delegate','_searchSection','setTemplate','ck\x20ck-search','1482039UKJYHw','add','source','520374PrnHUE','bindTemplate','_source','fire','_createResourcesListView','_latestLoadResourcesUid','updateResourceState','has','search','_createSearchSection','highlightText','getQuery','150LDTJFi','addResourceToContext','6626830zOntem','ck-ai-chat-resources','useDefaultFiltering','div','2865550hTqghT','children','_createSkeletonView','4filEFT','1192983HEuGCL','_createSearchView'];_0x5586=function(){return _0x1948d9;};return _0x5586();}import{View as _0x203b9e,ViewCollection as _0x1e405f}from'ckeditor5/src/ui.js';import{uid as _0x1b5b9f}from'ckeditor5/src/utils.js';function _0x3fb6(_0x49ec0b,_0x2fccf8){const _0x558628=_0x5586();return _0x3fb6=function(_0x3fb6b4,_0x252907){_0x3fb6b4=_0x3fb6b4-0x125;let _0x1adcba=_0x558628[_0x3fb6b4];return _0x1adcba;},_0x3fb6(_0x49ec0b,_0x2fccf8);}import{AIChatContextResourcesListView as _0x41b213}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x9dc211}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x3fbf92,SKELETON_DEFINITIONS as _0x29d84c}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x203b9e{[_0x4d3fd6(0x154)];[_0x4d3fd6(0x126)];[_0x4d3fd6(0x149)];[_0x4d3fd6(0x148)];[_0x4d3fd6(0x14f)];[_0x4d3fd6(0x12e)];[_0x4d3fd6(0x13f)];[_0x4d3fd6(0x131)]=null;constructor(_0x22b92c,_0x50ff48){const _0x4bdc0a=_0x4d3fd6;super(_0x22b92c),this[_0x4bdc0a(0x12e)]=_0x50ff48[_0x4bdc0a(0x12b)],this[_0x4bdc0a(0x149)]=_0x50ff48[_0x4bdc0a(0x156)]??0x7,this[_0x4bdc0a(0x144)](_0x4bdc0a(0x151),!0x0),this[_0x4bdc0a(0x154)]=this[_0x4bdc0a(0x143)](),this[_0x4bdc0a(0x126)]=this[_0x4bdc0a(0x135)](),this[_0x4bdc0a(0x148)]=this[_0x4bdc0a(0x130)](),this[_0x4bdc0a(0x14f)]=this[_0x4bdc0a(0x140)](),this[_0x4bdc0a(0x13f)]=new _0x1e405f([this[_0x4bdc0a(0x14f)],this[_0x4bdc0a(0x148)]]),this[_0x4bdc0a(0x127)]({'tag':_0x4bdc0a(0x13d),'attributes':{'class':_0x4bdc0a(0x13b)},'children':this[_0x4bdc0a(0x13f)]});}[_0x4d3fd6(0x143)](){const _0x36588b=_0x4d3fd6;return new _0x9dc211(this[_0x36588b(0x14b)]);}[_0x4d3fd6(0x135)](){const _0x2be483=_0x4d3fd6,_0x200d05=new _0x203b9e(this[_0x2be483(0x14b)]);return _0x200d05[_0x2be483(0x127)]({'tag':_0x2be483(0x13d),'attributes':{'class':_0x2be483(0x128)},'children':[this[_0x2be483(0x154)]]}),this[_0x2be483(0x154)]['on'](_0x2be483(0x134),(_0xe4fa82,_0x575807)=>{const _0x4154eb=_0x2be483;this[_0x4154eb(0x14a)](_0x575807),this[_0x4154eb(0x12e)][_0x4154eb(0x13c)]&&this[_0x4154eb(0x148)][_0x4154eb(0x136)](_0x575807);}),_0x200d05;}[_0x4d3fd6(0x130)](){const _0x472720=_0x4d3fd6,_0x353309=new _0x41b213(this[_0x472720(0x14b)],this[_0x472720(0x12e)]);return _0x353309[_0x472720(0x125)](_0x472720(0x139))['to'](this),_0x353309[_0x472720(0x14d)]({'attributes':{'class':this[_0x472720(0x12d)]['if'](_0x472720(0x151),_0x472720(0x152))}}),_0x353309;}[_0x4d3fd6(0x140)](){const _0x44af5e=_0x4d3fd6,_0x31e388=new _0x3fbf92(this[_0x44af5e(0x14b)],_0x29d84c[_0x44af5e(0x155)]);return _0x31e388[_0x44af5e(0x14d)]({'attributes':{'class':[this[_0x44af5e(0x12d)]['if'](_0x44af5e(0x151),_0x44af5e(0x152),_0x5422c2=>!_0x5422c2)]}}),_0x31e388;}[_0x4d3fd6(0x14c)](){const _0x37a6f0=_0x4d3fd6;super[_0x37a6f0(0x14c)](),this[_0x37a6f0(0x14a)]('');}[_0x4d3fd6(0x14a)](_0x14a0b9){const _0x1df013=_0x4d3fd6,_0x4c9ef8=_0x1b5b9f();this[_0x1df013(0x131)]=_0x4c9ef8,this[_0x1df013(0x12f)](_0x1df013(0x145),{'sourceId':this[_0x1df013(0x12e)]['id'],'query':_0x14a0b9,'uid':_0x4c9ef8}),this[_0x1df013(0x151)]=!0x0;}[_0x4d3fd6(0x153)](_0x8ab31d,_0x12e68a){const _0x21f230=_0x4d3fd6;if(_0x12e68a&&_0x12e68a!==this[_0x21f230(0x131)])return;const _0x2f9fe=this[_0x21f230(0x12e)][_0x21f230(0x13c)]?this[_0x21f230(0x154)][_0x21f230(0x137)]():'';this[_0x21f230(0x148)][_0x21f230(0x153)](_0x8ab31d,_0x2f9fe),_0x8ab31d[_0x21f230(0x147)]>=this[_0x21f230(0x149)]&&!this[_0x21f230(0x13f)][_0x21f230(0x133)](this[_0x21f230(0x126)])&&this[_0x21f230(0x13f)][_0x21f230(0x12a)](this[_0x21f230(0x126)],0x0),requestAnimationFrame(()=>{const _0x2b165e=_0x21f230;this[_0x2b165e(0x151)]=!0x1;});}[_0x4d3fd6(0x132)](_0x4fcdd9,_0x2e71a7){const _0x2047ac=_0x4d3fd6;this[_0x2047ac(0x148)][_0x2047ac(0x132)](_0x4fcdd9,_0x2e71a7);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x114df1=_0x4adc;(function(_0x56cc33,_0xce9ede){const _0xba95e5=_0x4adc,_0x33288c=_0x56cc33();while(!![]){try{const _0x4e76b7=-parseInt(_0xba95e5(0xcf))/0x1*(-parseInt(_0xba95e5(0xc8))/0x2)+parseInt(_0xba95e5(0xdc))/0x3+parseInt(_0xba95e5(0xc9))/0x4+parseInt(_0xba95e5(0xeb))/0x5*(-parseInt(_0xba95e5(0xf1))/0x6)+parseInt(_0xba95e5(0xea))/0x7+-parseInt(_0xba95e5(0xdf))/0x8*(-parseInt(_0xba95e5(0xe4))/0x9)+-parseInt(_0xba95e5(0xe2))/0xa;if(_0x4e76b7===_0xce9ede)break;else _0x33288c['push'](_0x33288c['shift']());}catch(_0x324011){_0x33288c['push'](_0x33288c['shift']());}}}(_0x3684,0x6926f));function _0x4adc(_0x33b644,_0x5ed557){const _0x36846e=_0x3684();return _0x4adc=function(_0x4adcd7,_0x8bdd1d){_0x4adcd7=_0x4adcd7-0xc6;let _0x7ccc9=_0x36846e[_0x4adcd7];return _0x7ccc9;},_0x4adc(_0x33b644,_0x5ed557);}import{HighlightedTextView as _0x525bb6,IconView as _0x2350dd,ListItemView as _0x4b9e12}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x407db3}from'es-toolkit/compat';import{AIContextItemType as _0x3e9d91}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x7db1d5,IconCheck as _0x374b94,IconDocument as _0x36a186,IconDocumentOutline as _0x31a0dd,IconLink as _0x44483f}from'@ckeditor/ckeditor5-icons';const Gr=_0x114df1(0xda),Hr=_0x114df1(0xdb),Jr=_0x114df1(0xd2),Kr=_0x114df1(0xd9);export class AIChatResourceListItemView extends _0x4b9e12{[_0x114df1(0xd3)];[_0x114df1(0xe5)];[_0x114df1(0xdd)];constructor(_0x397726,_0x5895d1){const _0x33bb1a=_0x114df1;super(_0x397726),this[_0x33bb1a(0xd3)]=_0x5895d1,this[_0x33bb1a(0xd4)](_0x33bb1a(0xcb),!!_0x5895d1[_0x33bb1a(0xcb)]),this[_0x33bb1a(0xe5)]=this[_0x33bb1a(0xd7)](),this[_0x33bb1a(0xdd)]=this[_0x33bb1a(0xed)](),this[_0x33bb1a(0xc7)]();}[_0x114df1(0xc6)](){const _0x42743a=_0x114df1;super[_0x42743a(0xc6)]();}[_0x114df1(0xe0)](_0x388d9d){const _0x206380=_0x114df1;if(_0x388d9d[_0x206380(0xcb)])return _0x374b94;switch(_0x388d9d[_0x206380(0xe8)]){case _0x3e9d91[_0x206380(0xcd)]:return _0x36a186;case _0x3e9d91[_0x206380(0xec)]:return _0x44483f;case _0x3e9d91[_0x206380(0xce)]:case _0x3e9d91[_0x206380(0xd0)]:return _0x7db1d5;default:return _0x31a0dd;}}[_0x114df1(0xe1)](_0x1d6fac){const _0x2e099c=_0x114df1;if(!_0x1d6fac||''===_0x1d6fac[_0x2e099c(0xde)]())return void this[_0x2e099c(0xe5)][_0x2e099c(0xe1)](null);const _0x57c9=new RegExp(_0x407db3(_0x1d6fac),'gi');this[_0x2e099c(0xe5)][_0x2e099c(0xe1)](_0x57c9);}[_0x114df1(0xee)](_0x1e583e){const _0x369c61=_0x114df1;this[_0x369c61(0xd3)][_0x369c61(0xcb)]=_0x1e583e,this[_0x369c61(0xcb)]=_0x1e583e,this[_0x369c61(0xd1)]();}[_0x114df1(0xd7)](){const _0xd86106=_0x114df1,_0x4656c5=new _0x525bb6();return _0x4656c5[_0xd86106(0xd8)]=this[_0xd86106(0xd3)][_0xd86106(0xe9)],_0x4656c5[_0xd86106(0xcc)]({'tag':_0xd86106(0xe3),'attributes':{'class':[Jr]}}),_0x4656c5;}[_0x114df1(0xed)](){const _0x568da1=_0x114df1,_0x4f8781=new _0x2350dd();return _0x4f8781[_0x568da1(0xef)]=this[_0x568da1(0xe0)](this[_0x568da1(0xd3)]),_0x4f8781;}[_0x114df1(0xc7)](){const _0x4da7b7=_0x114df1,_0x2bb5f7=this[_0x4da7b7(0xd5)];this[_0x4da7b7(0xf0)]({'tag':_0x4da7b7(0xe6),'attributes':{'class':[Gr,_0x2bb5f7['if'](_0x4da7b7(0xca),_0x4da7b7(0xe7),_0x5f0b41=>!_0x5f0b41),_0x2bb5f7['if'](_0x4da7b7(0xcb),Hr)]},'children':[{'tag':_0x4da7b7(0xe6),'attributes':{'class':[Kr]},'children':[this[_0x4da7b7(0xdd)]]},this[_0x4da7b7(0xe5)]],'on':{'click':_0x2bb5f7['to'](_0x4da7b7(0xd6))}});}[_0x114df1(0xd1)](){const _0x5320a5=_0x114df1;this[_0x5320a5(0xdd)][_0x5320a5(0xef)]=this[_0x5320a5(0xe0)](this[_0x5320a5(0xd3)]);}}function _0x3684(){const _0x19e4cb=['1194130LbEmNF','URL','_createIconView','updateResourceState','content','setTemplate','6jQfknm','render','_setupTemplate','2iOHPcx','3093144WFpAds','isVisible','isInContext','extendTemplate','DOCUMENT','FILE','161992qxcFHS','TEXT','_updateIcon','ck-ai-chat-resources__item-title','resource','set','bindTemplate','execute','_createTitleView','text','ck-ai-chat-resources__item__icon','ck-ai-chat-resources__item','ck-ai-chat-resources__item--in-context','584898ZQBlkz','_iconView','trim','8Mlazfr','getResourceIcon','highlightText','11118920nvkCaw','span','3195999gevpkG','_titleView','div','ck-hidden','type','label','2072462MNhtJt'];_0x3684=function(){return _0x19e4cb;};return _0x3684();}
|