@ckeditor/ckeditor5-ai 47.4.0-alpha.5 → 47.4.0-alpha.6
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/aiassistantcontroller.js +2 -2
- 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/form/prompthistory.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/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/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/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.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/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/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
|
+
function _0x1428(){const _0x31019a=['AI_CHAT_STOP_GENERATING','759478nivhXL','fire','ck-ai-chat-controls-loader-icon','10545sXolsj','ck-ai-chat-controls-loader-icon-dot','ck-reset_all','setTemplate','842139PtEWcQ','_createLoaderView','ck-ai-chat-controls-loader','84FHOhpT','_loaderView','execute','1600328VVXHaH','_createCancelButtonView','set','60UVYJlO','6176177gGbeDg','locale','285364FHADvd','ck-ai-button-secondary\x20ck-ai-button-stop-generating','AI_CHAT_IS_WRITING','abortPromptStream','ck-ai-chat-controls-loader-wrapper','div','_cancelButtonView','12186cWFNzn'];_0x1428=function(){return _0x31019a;};return _0x1428();}const _0x1ca029=_0x1108;(function(_0x182e44,_0x3c9b66){const _0xc30099=_0x1108,_0x533174=_0x182e44();while(!![]){try{const _0x29c095=-parseInt(_0xc30099(0xad))/0x1+-parseInt(_0xc30099(0xab))/0x2*(-parseInt(_0xc30099(0xbd))/0x3)+-parseInt(_0xc30099(0xc0))/0x4+parseInt(_0xc30099(0xb0))/0x5*(parseInt(_0xc30099(0xb7))/0x6)+parseInt(_0xc30099(0xbe))/0x7+parseInt(_0xc30099(0xba))/0x8+parseInt(_0xc30099(0xb4))/0x9;if(_0x29c095===_0x3c9b66)break;else _0x533174['push'](_0x533174['shift']());}catch(_0x35c8be){_0x533174['push'](_0x533174['shift']());}}}(_0x1428,0x7936a));import{ButtonView as _0x4ab602,View as _0xbcd2cb}from'ckeditor5/src/ui.js';function _0x1108(_0x5496f7,_0x34de4f){const _0x14281e=_0x1428();return _0x1108=function(_0x1108c8,_0x38363f){_0x1108c8=_0x1108c8-0xa7;let _0x6c485=_0x14281e[_0x1108c8];return _0x6c485;},_0x1108(_0x5496f7,_0x34de4f);}import{IconStop as _0x33d041}from'ckeditor5/src/icons.js';import{getTranslation as _0x375da6}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0xbcd2cb{[_0x1ca029(0xaa)];[_0x1ca029(0xb8)];constructor(_0x30732e){const _0xd416f3=_0x1ca029;super(_0x30732e),this[_0xd416f3(0xaa)]=this[_0xd416f3(0xbb)](),this[_0xd416f3(0xb8)]=this[_0xd416f3(0xb5)](),this[_0xd416f3(0xb3)]({'tag':_0xd416f3(0xa9),'attributes':{'class':['ck',_0xd416f3(0xa8),_0xd416f3(0xb2)]},'children':[this[_0xd416f3(0xb8)],this[_0xd416f3(0xaa)]]});}[_0x1ca029(0xbb)](){const _0x2d48d4=_0x1ca029,_0x539580=new _0x4ab602(this[_0x2d48d4(0xbf)]);return _0x539580[_0x2d48d4(0xbc)]({'label':_0x375da6(this[_0x2d48d4(0xbf)],_0x2d48d4(0xac)),'withText':!0x0,'class':_0x2d48d4(0xc1),'icon':_0x33d041}),_0x539580['on'](_0x2d48d4(0xb9),()=>{const _0x535833=_0x2d48d4;this[_0x535833(0xae)](_0x535833(0xa7));}),_0x539580;}[_0x1ca029(0xb5)](){const _0x412651=_0x1ca029,_0x443318=new _0xbcd2cb(this[_0x412651(0xbf)]);return _0x443318[_0x412651(0xb3)]({'tag':_0x412651(0xa9),'attributes':{'class':[_0x412651(0xb6)]},'children':[{'tag':_0x412651(0xa9),'attributes':{'class':[_0x412651(0xaf)]},'children':[{'tag':_0x412651(0xa9),'attributes':{'class':[_0x412651(0xb1)]}},{'tag':_0x412651(0xa9),'attributes':{'class':[_0x412651(0xb1)]}},{'tag':_0x412651(0xa9),'attributes':{'class':[_0x412651(0xb1)]}}]},{'text':_0x375da6(this[_0x412651(0xbf)],_0x412651(0xc2))}]}),_0x443318;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x40fa94=_0x466d;(function(_0x49fab8,_0x2eec26){const _0x19becf=_0x466d,_0x1cebee=_0x49fab8();while(!![]){try{const _0x85838=-parseInt(_0x19becf(0x12a))/0x1+parseInt(_0x19becf(0x12c))/0x2+parseInt(_0x19becf(0xe3))/0x3*(parseInt(_0x19becf(0xd2))/0x4)+parseInt(_0x19becf(0x107))/0x5+parseInt(_0x19becf(0xd5))/0x6+parseInt(_0x19becf(0x105))/0x7*(-parseInt(_0x19becf(0xe5))/0x8)+-parseInt(_0x19becf(0xef))/0x9;if(_0x85838===_0x2eec26)break;else _0x1cebee['push'](_0x1cebee['shift']());}catch(_0x2e9d6c){_0x1cebee['push'](_0x1cebee['shift']());}}}(_0x4ed7,0xe2ad3));import{Collection as _0x20e192}from'ckeditor5/src/utils.js';import{IconAI as _0x34c174,IconBulb as _0x16fd0e,IconWeb as _0x294338}from'@ckeditor/ckeditor5-icons';function _0x4ed7(){const _0x6da2ee=['reasoning','startsWith','locale','ck-hidden','27QUGDCQ','_modelSelectionDropdown','970336nJiLgU','modelSelectorEnabled','content','_getCapabilityParts','AI_CHAT_CAPABILITIES_NO','_webSearchButton','setModel','webSearch','_createModelSelectionDropdown','setTemplate','1386783xhwVpF','_modelSelectionDropdownItems','style','length','_commandsButton','disableModelSelector','capabilities','buttonView','agent','AI_CHAT_REASONING','execute','ck-ai-chat-controls__model-selection__item-name','source','activeModelId','webSearchActive','_reasoningButton','description','selectModel','isEnabled','toggleReasoning','AI_CHAT_SEARCH_WEB','model','56IxVzTr','add','5682735IzwAmj','isVisible','ck-ai-chat-controls__model-name','bindTemplate','ck-ai-chat-controls__model-selection__item-description','_createModelNameView','setModelList','createCollection','setWebSearch','addMany','AI_CHAT_DISABLE_REASONING','bind','_createWebSearchButton','enableModelSelector','ck-ai-chat-controls-button--commands','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','text','toLowerCase','_modelNameView','name','_createReasoningButton','_createCommandsButton','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','isOn','ck-ai-chat-controls__model-selection__item-capabilities','AI_CHAT_CAPABILITIES_YES','AI_CHAT_COMMANDS','div','AI_CHAT_ENABLE_WEB_SEARCH','toggleWebSearch','button','listenTo','reasoningActive','extendTemplate','ck-ai-chat__prompt-capabilities','1747126YTQNlp','ck-ai-chat-controls__model-selection','3657384gOUjRg','withText','span','AI_CHAT_ENABLE_REASONING','Commands\x20are\x20not\x20implemented\x20yet.','setReasoning','enabled','ck-button__label','24844dJjZub','fire','clear','4673268scBUwW','set','modelSelectorVisible','activeModelName','log','tooltip','menuitemradio','ck-ai-chat-controls-button','label','AI_CHAT_DISABLE_WEB_SEARCH'];_0x4ed7=function(){return _0x6da2ee;};return _0x4ed7();}import{addListToDropdown as _0x492efe,ButtonLabelView as _0x52aa41,ButtonView as _0x3bae8a,createDropdown as _0x913079,IconView as _0x58437a,UIModel as _0x2ab8ec,View as _0x4c3299}from'ckeditor5/src/ui.js';import{getTranslation as _0x3b7772}from'../../../aicore/utils/common-translations.js';function _0x466d(_0x298772,_0x3c6045){const _0x4ed7b9=_0x4ed7();return _0x466d=function(_0x466d8f,_0x553a5c){_0x466d8f=_0x466d8f-0xcb;let _0x43206d=_0x4ed7b9[_0x466d8f];return _0x43206d;},_0x466d(_0x298772,_0x3c6045);}const yo=_0x40fa94(0x129),Uo=_0x40fa94(0xdc),Go=_0x40fa94(0x115),jo=_0x40fa94(0x12b),Yo=_0x40fa94(0xfa),qo=_0x40fa94(0x10b),zo=_0x40fa94(0x11f),Fo='n';export class AIChatPromptCapabilitiesView extends _0x4c3299{[_0x40fa94(0xea)];[_0x40fa94(0xfe)];[_0x40fa94(0xf3)];[_0x40fa94(0xe4)];[_0x40fa94(0xf0)];[_0x40fa94(0x119)];constructor(_0x5667d9){const _0x1bc049=_0x40fa94;super(_0x5667d9),this[_0x1bc049(0xd6)](_0x1bc049(0xfd),!0x1),this[_0x1bc049(0xd6)](_0x1bc049(0x127),!0x1),this[_0x1bc049(0xd6)](_0x1bc049(0xd7),!0x0),this[_0x1bc049(0xd6)](_0x1bc049(0xe6),!0x0),this[_0x1bc049(0xd6)](_0x1bc049(0xfc),null),this[_0x1bc049(0xd6)](_0x1bc049(0xd8),null),this[_0x1bc049(0xe4)]=this[_0x1bc049(0xed)](),this[_0x1bc049(0x119)]=this[_0x1bc049(0x10c)](),this[_0x1bc049(0xea)]=this[_0x1bc049(0x113)](),this[_0x1bc049(0xfe)]=this[_0x1bc049(0x11b)](),this[_0x1bc049(0xf3)]=this[_0x1bc049(0x11c)](),this[_0x1bc049(0xe4)][_0x1bc049(0xf6)][_0x1bc049(0x112)](_0x1bc049(0x108))['to'](this,_0x1bc049(0xd7),_0x28751e=>_0x28751e),this[_0x1bc049(0xe4)][_0x1bc049(0xf6)][_0x1bc049(0x112)](_0x1bc049(0xda))['to'](this,_0x1bc049(0xe6),_0xe7f657=>_0xe7f657?this[_0x1bc049(0xe4)][_0x1bc049(0xf6)][_0x1bc049(0xdd)]:_0x3b7772(this[_0x1bc049(0xe1)],_0x1bc049(0x116))),this[_0x1bc049(0xe4)][_0x1bc049(0x112)](_0x1bc049(0x101))['to'](this,_0x1bc049(0xe6),_0x304a57=>_0x304a57),this[_0x1bc049(0xea)][_0x1bc049(0x112)](_0x1bc049(0x11e))['to'](this,_0x1bc049(0xfd),_0x4ac01d=>_0x4ac01d),this[_0x1bc049(0xea)][_0x1bc049(0x112)](_0x1bc049(0xcb))['to'](this,_0x1bc049(0xd7),_0x40afd5=>!_0x40afd5),this[_0x1bc049(0xea)][_0x1bc049(0x112)](_0x1bc049(0xda))['to'](this,_0x1bc049(0xfd),_0x46f7d3=>_0x3b7772(this[_0x1bc049(0xe1)],_0x46f7d3?_0x1bc049(0xde):_0x1bc049(0x123))),this[_0x1bc049(0xfe)][_0x1bc049(0x112)](_0x1bc049(0x11e))['to'](this,_0x1bc049(0x127),_0x5842d9=>_0x5842d9),this[_0x1bc049(0xfe)][_0x1bc049(0x112)](_0x1bc049(0xcb))['to'](this,_0x1bc049(0xd7),_0x5f0939=>!_0x5f0939),this[_0x1bc049(0xfe)][_0x1bc049(0x112)](_0x1bc049(0xda))['to'](this,_0x1bc049(0x127),_0x72cc3b=>_0x3b7772(this[_0x1bc049(0xe1)],_0x72cc3b?_0x1bc049(0x111):_0x1bc049(0xcd))),this[_0x1bc049(0xee)]({'tag':_0x1bc049(0x122),'attributes':{'class':[yo]},'children':[this[_0x1bc049(0xe4)],this[_0x1bc049(0x119)],this[_0x1bc049(0xea)],this[_0x1bc049(0xfe)],this[_0x1bc049(0xf3)]]}),this[_0x1bc049(0xf0)]=new _0x20e192(),_0x492efe(this[_0x1bc049(0xe4)],this[_0x1bc049(0xf0)]);}[_0x40fa94(0x10d)](_0x21da8a,_0x44c964){const _0x5688da=_0x40fa94;if(this[_0x5688da(0xd6)](_0x5688da(0xd7),!(_0x44c964&&_0x21da8a[_0x5688da(0xf2)]<=0x1)),this[_0x5688da(0xf0)][_0x5688da(0xd4)](),_0x21da8a?.[_0x5688da(0xf2)])for(const _0x281f35 of _0x21da8a){const _0x33fda5=new _0x2ab8ec({'label':_0x281f35[_0x5688da(0x11a)],'withText':!0x0,'role':_0x5688da(0xdb),'id':_0x281f35['id'],'model':_0x281f35});_0x33fda5[_0x5688da(0x112)](_0x5688da(0x11e))['to'](this,_0x5688da(0xfc),_0x23f744=>_0x23f744===_0x281f35['id']),this[_0x5688da(0xf0)][_0x5688da(0x106)]({'type':_0x5688da(0x125),'model':_0x33fda5,'labelView':new Us(this[_0x5688da(0xe1)],_0x281f35)});}}[_0x40fa94(0x10f)](_0x2e4a18){const _0x448237=_0x40fa94;this[_0x448237(0xd6)](_0x448237(0xfd),_0x2e4a18);}[_0x40fa94(0xcf)](_0xd85c84){const _0x10952b=_0x40fa94;this[_0x10952b(0xd6)](_0x10952b(0x127),_0xd85c84);}[_0x40fa94(0xeb)](_0x20ead0){const _0x5e8ee2=_0x40fa94;if(!_0x20ead0)return;this[_0x5e8ee2(0xfc)]=_0x20ead0['id'],this[_0x5e8ee2(0xd8)]=_0x20ead0[_0x5e8ee2(0x11a)]||_0x20ead0['id'],this[_0x5e8ee2(0xe4)][_0x5e8ee2(0xf6)][_0x5e8ee2(0xd6)](_0x5e8ee2(0xdd),_0x20ead0[_0x5e8ee2(0x11a)]),this[_0x5e8ee2(0xe4)][_0x5e8ee2(0xf6)][_0x5e8ee2(0xd6)](_0x5e8ee2(0xda),_0x20ead0[_0x5e8ee2(0x11a)]);const _0x85a768=_0x20ead0[_0x5e8ee2(0xf5)][_0x5e8ee2(0xec)]?.[_0x5e8ee2(0xd0)]??!0x1;this[_0x5e8ee2(0xd6)](_0x5e8ee2(0xfd),!0x1),this[_0x5e8ee2(0xea)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x11e),!0x1),this[_0x5e8ee2(0xea)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x101),_0x85a768),this[_0x5e8ee2(0xea)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x108),_0x85a768);const _0x219608=_0x20ead0[_0x5e8ee2(0xf5)][_0x5e8ee2(0xdf)]?.[_0x5e8ee2(0xd0)]??!0x1;this[_0x5e8ee2(0xd6)](_0x5e8ee2(0x127),!0x1),this[_0x5e8ee2(0xfe)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x11e),!0x1),this[_0x5e8ee2(0xfe)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x101),_0x219608),this[_0x5e8ee2(0xfe)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x108),_0x219608);}[_0x40fa94(0x114)](){const _0xc53ab3=_0x40fa94;this[_0xc53ab3(0xd6)](_0xc53ab3(0xe6),!0x0),this[_0xc53ab3(0xd6)](_0xc53ab3(0xd7),!0x0);}[_0x40fa94(0xf4)](_0x589a3b){const _0x18f5a9=_0x40fa94;this[_0x18f5a9(0xd6)](_0x18f5a9(0xe6),!0x1),_0x589a3b&&this[_0x18f5a9(0xd6)](_0x18f5a9(0xd7),!0x1);}[_0x40fa94(0x113)](){const _0x4be035=_0x40fa94,_0xcbfc39=new _0x3bae8a();return _0xcbfc39[_0x4be035(0xd6)]({'label':_0x3b7772(this[_0x4be035(0xe1)],_0x4be035(0x103)),'icon':_0x294338,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0xcbfc39['on'](_0x4be035(0xf9),()=>{const _0x2c80a7=_0x4be035;this[_0x2c80a7(0xd3)](_0x2c80a7(0x124));}),_0xcbfc39;}[_0x40fa94(0x11b)](){const _0x5ec8a8=_0x40fa94,_0x813eed=new _0x3bae8a();return _0x813eed[_0x5ec8a8(0xd6)]({'label':_0x3b7772(this[_0x5ec8a8(0xe1)],_0x5ec8a8(0xf8)),'icon':_0x16fd0e,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x813eed['on'](_0x5ec8a8(0xf9),()=>{const _0x3bf48e=_0x5ec8a8;this[_0x3bf48e(0xd3)](_0x3bf48e(0x102));}),_0x813eed;}[_0x40fa94(0x11c)](){const _0x3480be=_0x40fa94,_0x4ff296=new _0x3bae8a();return _0x4ff296[_0x3480be(0xd6)]({'label':_0x3b7772(this[_0x3480be(0xe1)],_0x3480be(0x121)),'icon':_0x34c174,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x3b7772(this[_0x3480be(0xe1)],_0x3480be(0x121)),'tooltipPosition':Fo}),_0x4ff296[_0x3480be(0x128)]({'attributes':{'class':[Go]}}),_0x4ff296['on'](_0x3480be(0xf9),()=>{const _0x320d92=_0x3480be;console[_0x320d92(0xd9)](_0x320d92(0xce)),alert(_0x320d92(0xce));}),_0x4ff296;}[_0x40fa94(0xed)](){const _0x2c8c98=_0x40fa94,_0x391a61=_0x913079(this[_0x2c8c98(0xe1)]);return _0x391a61[_0x2c8c98(0xd6)]({'panelPosition':'ne','class':[jo]}),_0x391a61[_0x2c8c98(0xf6)][_0x2c8c98(0xd6)]({'label':_0x3b7772(this[_0x2c8c98(0xe1)],_0x2c8c98(0x11d)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x2c8c98(0x126)](_0x391a61,_0x2c8c98(0xf9),_0x2fbdbc=>{const _0x241c99=_0x2c8c98;this[_0x241c99(0xd3)](_0x241c99(0x100),_0x2fbdbc[_0x241c99(0xfb)][_0x241c99(0x104)]);}),_0x391a61;}[_0x40fa94(0x10c)](){const _0x4480fe=_0x40fa94,_0x3aa7eb=new Jo(this[_0x4480fe(0xe1)]);return _0x3aa7eb[_0x4480fe(0x112)](_0x4480fe(0x117))['to'](this,_0x4480fe(0xd8),_0x2b33d1=>_0x2b33d1??''),_0x3aa7eb[_0x4480fe(0x112)](_0x4480fe(0x108))['to'](this,_0x4480fe(0xd7),this,_0x4480fe(0xd8),(_0x87a588,_0x21f6c2)=>!_0x87a588&&!_0x21f6c2?.[_0x4480fe(0x118)]()[_0x4480fe(0xe0)](_0x4480fe(0xf7))),_0x3aa7eb;}}class Us extends _0x52aa41{constructor(_0x32ab17,_0x276cfe){const _0x28026d=_0x40fa94;super();const _0x2a3632=this[_0x28026d(0x10a)],_0x5e0fde=this[_0x28026d(0x10e)]();this[_0x28026d(0xee)]({'tag':_0x28026d(0x122),'attributes':{'class':['ck',_0x28026d(0xd1)],'style':_0x2a3632['to'](_0x28026d(0xf1)),'id':_0x2a3632['to']('id')},'children':[{'tag':_0x28026d(0x122),'attributes':{'class':[Yo]},'children':[{'text':_0x2a3632['to'](_0x28026d(0x117))}]},{'tag':_0x28026d(0x122),'attributes':{'class':[qo]},'children':[{'tag':_0x28026d(0xcc),'children':[{'text':_0x276cfe[_0x28026d(0xff)]}]}]},{'tag':_0x28026d(0x122),'attributes':{'class':[zo]},'children':_0x5e0fde}]}),_0x5e0fde[_0x28026d(0x110)](this[_0x28026d(0xe8)](_0x32ab17,_0x294338,_0x28026d(0x103),_0x276cfe[_0x28026d(0xf5)][_0x28026d(0xec)]?.[_0x28026d(0xd0)]??!0x1)),_0x5e0fde[_0x28026d(0x110)](this[_0x28026d(0xe8)](_0x32ab17,_0x16fd0e,_0x28026d(0xf8),_0x276cfe[_0x28026d(0xf5)][_0x28026d(0xdf)]?.[_0x28026d(0xd0)]??!0x1));}[_0x40fa94(0xe8)](_0x575fb7,_0x4deff5,_0x91c535,_0x12d71a){const _0x4ba3db=_0x40fa94,_0x2321cd=new _0x58437a();_0x2321cd[_0x4ba3db(0xe7)]=_0x4deff5;const _0x7d130f=new _0x4c3299(_0x575fb7);_0x7d130f[_0x4ba3db(0xee)]({'tag':_0x4ba3db(0xcc),'children':[{'text':_0x3b7772(_0x575fb7,_0x91c535)+':\x20'}]});const _0x501d5b=new _0x4c3299(_0x575fb7);return _0x501d5b[_0x4ba3db(0xee)]({'tag':_0x4ba3db(0xcc),'children':[{'text':_0x3b7772(_0x575fb7,_0x12d71a?_0x4ba3db(0x120):_0x4ba3db(0xe9))}]}),[_0x2321cd,_0x7d130f,_0x501d5b];}}class Jo extends _0x4c3299{constructor(_0x572858){const _0x591d1e=_0x40fa94;super(_0x572858),this[_0x591d1e(0xd6)](_0x591d1e(0x117),void 0x0),this[_0x591d1e(0xd6)](_0x591d1e(0x108),!0x0);const _0x1df650=this[_0x591d1e(0x10a)];this[_0x591d1e(0xee)]({'tag':_0x591d1e(0xcc),'attributes':{'class':['ck',_0x591d1e(0x109),_0x1df650['if'](_0x591d1e(0x108),_0x591d1e(0xe2),_0x34b86c=>!_0x34b86c)]},'children':[{'text':_0x1df650['to'](_0x591d1e(0x117))}]});}}
|
|
23
|
+
const _0x4a611a=_0x6dc5;(function(_0x56c2eb,_0x1221ad){const _0x5c6410=_0x6dc5,_0x481d70=_0x56c2eb();while(!![]){try{const _0x430c2c=-parseInt(_0x5c6410(0x185))/0x1*(parseInt(_0x5c6410(0x183))/0x2)+-parseInt(_0x5c6410(0x159))/0x3*(-parseInt(_0x5c6410(0x168))/0x4)+-parseInt(_0x5c6410(0x163))/0x5+parseInt(_0x5c6410(0x178))/0x6+parseInt(_0x5c6410(0x16e))/0x7+parseInt(_0x5c6410(0x1ae))/0x8*(-parseInt(_0x5c6410(0x189))/0x9)+parseInt(_0x5c6410(0x151))/0xa*(parseInt(_0x5c6410(0x16a))/0xb);if(_0x430c2c===_0x1221ad)break;else _0x481d70['push'](_0x481d70['shift']());}catch(_0x39800d){_0x481d70['push'](_0x481d70['shift']());}}}(_0x49eb,0xe03d6));import{Collection as _0x2482c9}from'ckeditor5/src/utils.js';import{IconAI as _0x4915b9,IconBulb as _0x2b7d2d,IconWeb as _0x30bc9f}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0xd3867,ButtonLabelView as _0x129e58,ButtonView as _0x168408,createDropdown as _0x3d1b97,IconView as _0x14bfe1,UIModel as _0x5659cd,View as _0x155b5a}from'ckeditor5/src/ui.js';import{getTranslation as _0x394b9a}from'../../../aicore/utils/common-translations.js';function _0x49eb(){const _0x3a69d3=['ck-button__label','addMany','ck-hidden','AI_CHAT_ENABLE_REASONING','isVisible','content','ck-ai-chat-controls__model-selection__item-name','reasoning','ck-ai-chat__prompt-capabilities','startsWith','webSearch','isEnabled','log','setReasoning','model','_getCapabilityParts','ck-ai-chat-controls__model-selection__item-capabilities','_modelSelectionDropdown','AI_CHAT_COMMANDS','buttonView','setWebSearch','ck-ai-chat-controls__model-selection','ck-ai-chat-controls__model-name','name','locale','8060792KShOLO','AI_CHAT_CAPABILITIES_NO','setTemplate','style','modelSelectorEnabled','clear','AI_CHAT_SEARCH_WEB','1150OANQSs','disableModelSelector','_createModelSelectionDropdown','bindTemplate','button','reasoningActive','AI_CHAT_ENABLE_WEB_SEARCH','set','724395uGuEhP','AI_CHAT_CAPABILITIES_YES','ck-ai-chat-controls-button','activeModelName','execute','_createReasoningButton','listenTo','createCollection','agent','ck-ai-chat-controls__model-selection__item-description','7779610utcCMy','enableModelSelector','_createWebSearchButton','bind','extendTemplate','28tElBBG','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','169587RsASVJ','capabilities','menuitemradio','add','3431008FNDQbD','toLowerCase','tooltip','setModelList','_modelSelectionDropdownItems','div','selectModel','withText','_createCommandsButton','toggleWebSearch','3261216yezSif','source','fire','AI_CHAT_DISABLE_REASONING','toggleReasoning','AI_CHAT_DISABLE_WEB_SEARCH','length','description','text','webSearchActive','ck-ai-chat-controls-button--commands','2029766RoXCMm','activeModelId','1WbVURb','_commandsButton','enabled','_webSearchButton','9hUTxDy','AI_CHAT_REASONING','_modelNameView','_reasoningButton','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','span','Commands\x20are\x20not\x20implemented\x20yet.','setModel','modelSelectorVisible','label','_createModelNameView','isOn'];_0x49eb=function(){return _0x3a69d3;};return _0x49eb();}const yo=_0x4a611a(0x19d),Oo=_0x4a611a(0x15b),Go=_0x4a611a(0x182),Yo=_0x4a611a(0x1aa),qo=_0x4a611a(0x19b),zo=_0x4a611a(0x162),Jo=_0x4a611a(0x1a5),Ko='n';export class AIChatPromptCapabilitiesView extends _0x155b5a{[_0x4a611a(0x188)];[_0x4a611a(0x18c)];[_0x4a611a(0x186)];[_0x4a611a(0x1a6)];[_0x4a611a(0x172)];[_0x4a611a(0x18b)];constructor(_0x4157e0){const _0x2991eb=_0x4a611a;super(_0x4157e0),this[_0x2991eb(0x158)](_0x2991eb(0x181),!0x1),this[_0x2991eb(0x158)](_0x2991eb(0x156),!0x1),this[_0x2991eb(0x158)](_0x2991eb(0x191),!0x0),this[_0x2991eb(0x158)](_0x2991eb(0x14e),!0x0),this[_0x2991eb(0x158)](_0x2991eb(0x184),null),this[_0x2991eb(0x158)](_0x2991eb(0x15c),null),this[_0x2991eb(0x1a6)]=this[_0x2991eb(0x153)](),this[_0x2991eb(0x18b)]=this[_0x2991eb(0x193)](),this[_0x2991eb(0x188)]=this[_0x2991eb(0x165)](),this[_0x2991eb(0x18c)]=this[_0x2991eb(0x15e)](),this[_0x2991eb(0x186)]=this[_0x2991eb(0x176)](),this[_0x2991eb(0x1a6)][_0x2991eb(0x1a8)][_0x2991eb(0x166)](_0x2991eb(0x199))['to'](this,_0x2991eb(0x191),_0x14999f=>_0x14999f),this[_0x2991eb(0x1a6)][_0x2991eb(0x1a8)][_0x2991eb(0x166)](_0x2991eb(0x170))['to'](this,_0x2991eb(0x14e),_0x2ddeb8=>_0x2ddeb8?this[_0x2991eb(0x1a6)][_0x2991eb(0x1a8)][_0x2991eb(0x192)]:_0x394b9a(this[_0x2991eb(0x1ad)],_0x2991eb(0x18d))),this[_0x2991eb(0x1a6)][_0x2991eb(0x166)](_0x2991eb(0x1a0))['to'](this,_0x2991eb(0x14e),_0x5903ac=>_0x5903ac),this[_0x2991eb(0x188)][_0x2991eb(0x166)](_0x2991eb(0x194))['to'](this,_0x2991eb(0x181),_0x55aa28=>_0x55aa28),this[_0x2991eb(0x188)][_0x2991eb(0x166)](_0x2991eb(0x175))['to'](this,_0x2991eb(0x191),_0x2c9923=>!_0x2c9923),this[_0x2991eb(0x188)][_0x2991eb(0x166)](_0x2991eb(0x170))['to'](this,_0x2991eb(0x181),_0x4ffeed=>_0x394b9a(this[_0x2991eb(0x1ad)],_0x4ffeed?_0x2991eb(0x17d):_0x2991eb(0x157))),this[_0x2991eb(0x18c)][_0x2991eb(0x166)](_0x2991eb(0x194))['to'](this,_0x2991eb(0x156),_0x11d074=>_0x11d074),this[_0x2991eb(0x18c)][_0x2991eb(0x166)](_0x2991eb(0x175))['to'](this,_0x2991eb(0x191),_0x3cbe75=>!_0x3cbe75),this[_0x2991eb(0x18c)][_0x2991eb(0x166)](_0x2991eb(0x170))['to'](this,_0x2991eb(0x156),_0x2c34b8=>_0x394b9a(this[_0x2991eb(0x1ad)],_0x2c34b8?_0x2991eb(0x17b):_0x2991eb(0x198))),this[_0x2991eb(0x14c)]({'tag':_0x2991eb(0x173),'attributes':{'class':[yo]},'children':[this[_0x2991eb(0x1a6)],this[_0x2991eb(0x18b)],this[_0x2991eb(0x188)],this[_0x2991eb(0x18c)],this[_0x2991eb(0x186)]]}),this[_0x2991eb(0x172)]=new _0x2482c9(),_0xd3867(this[_0x2991eb(0x1a6)],this[_0x2991eb(0x172)]);}[_0x4a611a(0x171)](_0x1482b9,_0x37547c){const _0x31aae2=_0x4a611a;if(this[_0x31aae2(0x158)](_0x31aae2(0x191),!(_0x37547c&&_0x1482b9[_0x31aae2(0x17e)]<=0x1)),this[_0x31aae2(0x172)][_0x31aae2(0x14f)](),_0x1482b9?.[_0x31aae2(0x17e)])for(const _0x23b03b of _0x1482b9){const _0x41a25a=new _0x5659cd({'label':_0x23b03b[_0x31aae2(0x1ac)],'withText':!0x0,'role':_0x31aae2(0x16c),'id':_0x23b03b['id'],'model':_0x23b03b});_0x41a25a[_0x31aae2(0x166)](_0x31aae2(0x194))['to'](this,_0x31aae2(0x184),_0x11cb06=>_0x11cb06===_0x23b03b['id']),this[_0x31aae2(0x172)][_0x31aae2(0x16d)]({'type':_0x31aae2(0x155),'model':_0x41a25a,'labelView':new mo(this[_0x31aae2(0x1ad)],_0x23b03b)});}}[_0x4a611a(0x1a9)](_0x1dbf52){const _0x19ff8c=_0x4a611a;this[_0x19ff8c(0x158)](_0x19ff8c(0x181),_0x1dbf52);}[_0x4a611a(0x1a2)](_0x30c7a1){const _0xec151d=_0x4a611a;this[_0xec151d(0x158)](_0xec151d(0x156),_0x30c7a1);}[_0x4a611a(0x190)](_0x210209){const _0x4c0763=_0x4a611a;if(!_0x210209)return;this[_0x4c0763(0x184)]=_0x210209['id'],this[_0x4c0763(0x15c)]=_0x210209[_0x4c0763(0x1ac)]||_0x210209['id'],this[_0x4c0763(0x1a6)][_0x4c0763(0x1a8)][_0x4c0763(0x158)](_0x4c0763(0x192),_0x210209[_0x4c0763(0x1ac)]),this[_0x4c0763(0x1a6)][_0x4c0763(0x1a8)][_0x4c0763(0x158)](_0x4c0763(0x170),_0x210209[_0x4c0763(0x1ac)]);const _0x3e94d0=_0x210209[_0x4c0763(0x16b)][_0x4c0763(0x19f)]?.[_0x4c0763(0x187)]??!0x1;this[_0x4c0763(0x158)](_0x4c0763(0x181),!0x1),this[_0x4c0763(0x188)][_0x4c0763(0x158)](_0x4c0763(0x194),!0x1),this[_0x4c0763(0x188)][_0x4c0763(0x158)](_0x4c0763(0x1a0),_0x3e94d0),this[_0x4c0763(0x188)][_0x4c0763(0x158)](_0x4c0763(0x199),_0x3e94d0);const _0x256f5e=_0x210209[_0x4c0763(0x16b)][_0x4c0763(0x19c)]?.[_0x4c0763(0x187)]??!0x1;this[_0x4c0763(0x158)](_0x4c0763(0x156),!0x1),this[_0x4c0763(0x18c)][_0x4c0763(0x158)](_0x4c0763(0x194),!0x1),this[_0x4c0763(0x18c)][_0x4c0763(0x158)](_0x4c0763(0x1a0),_0x256f5e),this[_0x4c0763(0x18c)][_0x4c0763(0x158)](_0x4c0763(0x199),_0x256f5e);}[_0x4a611a(0x164)](){const _0x405677=_0x4a611a;this[_0x405677(0x158)](_0x405677(0x14e),!0x0),this[_0x405677(0x158)](_0x405677(0x191),!0x0);}[_0x4a611a(0x152)](_0x486cf7){const _0x2f0e0c=_0x4a611a;this[_0x2f0e0c(0x158)](_0x2f0e0c(0x14e),!0x1),_0x486cf7&&this[_0x2f0e0c(0x158)](_0x2f0e0c(0x191),!0x1);}[_0x4a611a(0x165)](){const _0xa8bcb8=_0x4a611a,_0x51742f=new _0x168408();return _0x51742f[_0xa8bcb8(0x158)]({'label':_0x394b9a(this[_0xa8bcb8(0x1ad)],_0xa8bcb8(0x150)),'icon':_0x30bc9f,'class':Oo,'isToggleable':!0x0,'tooltipPosition':Ko}),_0x51742f['on'](_0xa8bcb8(0x15d),()=>{const _0x327e90=_0xa8bcb8;this[_0x327e90(0x17a)](_0x327e90(0x177));}),_0x51742f;}[_0x4a611a(0x15e)](){const _0x325419=_0x4a611a,_0x13b9da=new _0x168408();return _0x13b9da[_0x325419(0x158)]({'label':_0x394b9a(this[_0x325419(0x1ad)],_0x325419(0x18a)),'icon':_0x2b7d2d,'class':Oo,'isToggleable':!0x0,'tooltipPosition':Ko}),_0x13b9da['on'](_0x325419(0x15d),()=>{const _0x21467e=_0x325419;this[_0x21467e(0x17a)](_0x21467e(0x17c));}),_0x13b9da;}[_0x4a611a(0x176)](){const _0x6d86cd=_0x4a611a,_0x32b891=new _0x168408();return _0x32b891[_0x6d86cd(0x158)]({'label':_0x394b9a(this[_0x6d86cd(0x1ad)],_0x6d86cd(0x1a7)),'icon':_0x4915b9,'withText':!0x0,'class':Oo,'isToggleable':!0x0,'tooltip':_0x394b9a(this[_0x6d86cd(0x1ad)],_0x6d86cd(0x1a7)),'tooltipPosition':Ko}),_0x32b891[_0x6d86cd(0x167)]({'attributes':{'class':[Go]}}),_0x32b891['on'](_0x6d86cd(0x15d),()=>{const _0x241528=_0x6d86cd;console[_0x241528(0x1a1)](_0x241528(0x18f)),alert(_0x241528(0x18f));}),_0x32b891;}[_0x4a611a(0x153)](){const _0x1f39ae=_0x4a611a,_0x4cada9=_0x3d1b97(this[_0x1f39ae(0x1ad)]);return _0x4cada9[_0x1f39ae(0x158)]({'panelPosition':'ne','class':[Yo]}),_0x4cada9[_0x1f39ae(0x1a8)][_0x1f39ae(0x158)]({'label':_0x394b9a(this[_0x1f39ae(0x1ad)],_0x1f39ae(0x169)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Ko}),this[_0x1f39ae(0x15f)](_0x4cada9,_0x1f39ae(0x15d),_0x4d3d12=>{const _0x58c1e6=_0x1f39ae;this[_0x58c1e6(0x17a)](_0x58c1e6(0x174),_0x4d3d12[_0x58c1e6(0x179)][_0x58c1e6(0x1a3)]);}),_0x4cada9;}[_0x4a611a(0x193)](){const _0x337fdd=_0x4a611a,_0x224383=new Qo(this[_0x337fdd(0x1ad)]);return _0x224383[_0x337fdd(0x166)](_0x337fdd(0x180))['to'](this,_0x337fdd(0x15c),_0x1c02b0=>_0x1c02b0??''),_0x224383[_0x337fdd(0x166)](_0x337fdd(0x199))['to'](this,_0x337fdd(0x191),this,_0x337fdd(0x15c),(_0x2a553f,_0x47613d)=>!_0x2a553f&&!_0x47613d?.[_0x337fdd(0x16f)]()[_0x337fdd(0x19e)](_0x337fdd(0x161))),_0x224383;}}function _0x6dc5(_0x49d251,_0x92c378){const _0x49ebfa=_0x49eb();return _0x6dc5=function(_0x6dc5c7,_0x358021){_0x6dc5c7=_0x6dc5c7-0x14b;let _0x129c28=_0x49ebfa[_0x6dc5c7];return _0x129c28;},_0x6dc5(_0x49d251,_0x92c378);}class mo extends _0x129e58{constructor(_0x281647,_0x541748){const _0x1b6f44=_0x4a611a;super();const _0x4725df=this[_0x1b6f44(0x154)],_0xc5e191=this[_0x1b6f44(0x160)]();this[_0x1b6f44(0x14c)]({'tag':_0x1b6f44(0x173),'attributes':{'class':['ck',_0x1b6f44(0x195)],'style':_0x4725df['to'](_0x1b6f44(0x14d)),'id':_0x4725df['to']('id')},'children':[{'tag':_0x1b6f44(0x173),'attributes':{'class':[qo]},'children':[{'text':_0x4725df['to'](_0x1b6f44(0x180))}]},{'tag':_0x1b6f44(0x173),'attributes':{'class':[zo]},'children':[{'tag':_0x1b6f44(0x18e),'children':[{'text':_0x541748[_0x1b6f44(0x17f)]}]}]},{'tag':_0x1b6f44(0x173),'attributes':{'class':[Jo]},'children':_0xc5e191}]}),_0xc5e191[_0x1b6f44(0x196)](this[_0x1b6f44(0x1a4)](_0x281647,_0x30bc9f,_0x1b6f44(0x150),_0x541748[_0x1b6f44(0x16b)][_0x1b6f44(0x19f)]?.[_0x1b6f44(0x187)]??!0x1)),_0xc5e191[_0x1b6f44(0x196)](this[_0x1b6f44(0x1a4)](_0x281647,_0x2b7d2d,_0x1b6f44(0x18a),_0x541748[_0x1b6f44(0x16b)][_0x1b6f44(0x19c)]?.[_0x1b6f44(0x187)]??!0x1));}[_0x4a611a(0x1a4)](_0x263426,_0x5e16e2,_0x251e0d,_0x445f7e){const _0x5cec20=_0x4a611a,_0xa2dc1f=new _0x14bfe1();_0xa2dc1f[_0x5cec20(0x19a)]=_0x5e16e2;const _0x538e58=new _0x155b5a(_0x263426);_0x538e58[_0x5cec20(0x14c)]({'tag':_0x5cec20(0x18e),'children':[{'text':_0x394b9a(_0x263426,_0x251e0d)+':\x20'}]});const _0x51e16e=new _0x155b5a(_0x263426);return _0x51e16e[_0x5cec20(0x14c)]({'tag':_0x5cec20(0x18e),'children':[{'text':_0x394b9a(_0x263426,_0x445f7e?_0x5cec20(0x15a):_0x5cec20(0x14b))}]}),[_0xa2dc1f,_0x538e58,_0x51e16e];}}class Qo extends _0x155b5a{constructor(_0x365b48){const _0x313c13=_0x4a611a;super(_0x365b48),this[_0x313c13(0x158)](_0x313c13(0x180),void 0x0),this[_0x313c13(0x158)](_0x313c13(0x199),!0x0);const _0x311c53=this[_0x313c13(0x154)];this[_0x313c13(0x14c)]({'tag':_0x313c13(0x18e),'attributes':{'class':['ck',_0x313c13(0x1ab),_0x311c53['if'](_0x313c13(0x199),_0x313c13(0x197),_0x579500=>!_0x579500)]},'children':[{'text':_0x311c53['to'](_0x313c13(0x180))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53db5e=_0x954a;(function(_0xbd7ead,_0x24d600){const _0x45a621=_0x954a,_0x53225e=_0xbd7ead();while(!![]){try{const _0x356de6=-parseInt(_0x45a621(0x187))/0x1+parseInt(_0x45a621(0x17d))/0x2+-parseInt(_0x45a621(0x1a8))/0x3+parseInt(_0x45a621(0x1a9))/0x4*(parseInt(_0x45a621(0x1a5))/0x5)+parseInt(_0x45a621(0x182))/0x6*(parseInt(_0x45a621(0x183))/0x7)+parseInt(_0x45a621(0x1af))/0x8+parseInt(_0x45a621(0x18b))/0x9;if(_0x356de6===_0x24d600)break;else _0x53225e['push'](_0x53225e['shift']());}catch(_0x5ad5c7){_0x53225e['push'](_0x53225e['shift']());}}}(_0x1590,0x3f2cd));function _0x1590(){const _0x42a3f7=['render','13460yYVIoH','AI_CHAT_LABEL_SUBMIT','element','1215633gVRmDM','12fBvyNJ','placeholder','_setUpAddContextButtonPositioning','style','execute','isEmpty','508616ZyOZPF','isEnabled','AI_CHAT_PROMPT_EMPTY_ERROR','submit','errorText','rtl','_createSubmitButton','ck-ai-chat__prompt-submit-button','set','add','width','fieldWrapperChildren','fieldView','value','140894oCAswB','MIN_ROWS','sendUserMessage','bind','maxRows','2052354fqELsx','7LHnKYv','calc(','_queryViewResizeObserver','update','16468sQFffB','setPlaceholderText','MAX_ROWS','right','1766565QpfKks','ck-ai-chat__prompt-input','queryView','uiLanguageDirection','setIsUploadInProgress','locale','_addContextButtonView','requestAnimationFrame','window','isUploadInProgress','hasError','focusableChildren','enter','keystrokes','px\x20-\x20var(--ck-spacing-tiny))','target','left','extendTemplate','reset','fire','trim','submitButtonView','destroy','excludeScrollbarsAndBorders','minRows'];_0x1590=function(){return _0x42a3f7;};return _0x1590();}import{IconSubmit as _0x1008fc}from'ckeditor5/src/icons.js';function _0x954a(_0x48fcc9,_0x54254e){const _0x15908a=_0x1590();return _0x954a=function(_0x954ad3,_0x400e89){_0x954ad3=_0x954ad3-0x171;let _0x23647b=_0x15908a[_0x954ad3];return _0x23647b;},_0x954a(_0x48fcc9,_0x54254e);}import{ButtonView as _0x1a8624,AutocompleteView as _0x4558a4,createLabeledTextarea as _0x487286}from'ckeditor5/src/ui.js';import{global as _0x4d4e53,isVisible as _0x31c5ca,Rect as _0x1f79ef,ResizeObserver as _0x356381}from'ckeditor5/src/utils.js';import{getTranslation as _0x4da6f4}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x19ba2c}from'./aichatpromptsuggestionslistview.js';import{escape as _0x30d83f}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x4558a4{[_0x53db5e(0x1a0)];static [_0x53db5e(0x17e)]=0x1;static [_0x53db5e(0x189)]=0xc;[_0x53db5e(0x191)];[_0x53db5e(0x185)];constructor(_0x54becd,_0x180a49){const _0xe80507=_0x53db5e;super(_0x54becd,{'queryView':{'label':'','creator':_0x487286,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x19ba2c(_0x54becd),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0xe80507(0x177)](_0xe80507(0x1ae),!0x0),this[_0xe80507(0x177)](_0xe80507(0x194),!0x1),this[_0xe80507(0x191)]=_0x180a49,this[_0xe80507(0x185)]=null,this[_0xe80507(0x18d)][_0xe80507(0x17b)][_0xe80507(0x1a3)]=AIChatPromptInputView[_0xe80507(0x17e)],this[_0xe80507(0x18d)][_0xe80507(0x17b)][_0xe80507(0x181)]=AIChatPromptInputView[_0xe80507(0x189)],this[_0xe80507(0x18d)][_0xe80507(0x17a)][_0xe80507(0x178)](this[_0xe80507(0x191)]),this[_0xe80507(0x1ab)](),this[_0xe80507(0x19c)]({'attributes':{'class':['ck',_0xe80507(0x18c)]}}),this[_0xe80507(0x1a0)]=this[_0xe80507(0x175)](),this[_0xe80507(0x1a0)][_0xe80507(0x180)](_0xe80507(0x1b0))['to'](this,_0xe80507(0x1ae),this,_0xe80507(0x194),(_0x521c64,_0x13d1b4)=>!_0x521c64&&!_0x13d1b4),this[_0xe80507(0x196)][_0xe80507(0x178)](this[_0xe80507(0x1a0)]);}[_0x53db5e(0x1a4)](){const _0x58bd5c=_0x53db5e;super[_0x58bd5c(0x1a4)](),this[_0x58bd5c(0x18d)][_0x58bd5c(0x17a)][_0x58bd5c(0x178)](this[_0x58bd5c(0x1a0)]),this[_0x58bd5c(0x198)][_0x58bd5c(0x177)](_0x58bd5c(0x197),(_0x466d4d,_0x351738)=>{const _0x588722=_0x58bd5c;this[_0x588722(0x194)]||this[_0x588722(0x1ae)]||_0x466d4d[_0x588722(0x19a)]==this[_0x588722(0x18d)][_0x588722(0x17b)][_0x588722(0x1a7)]&&(this[_0x588722(0x172)](),_0x351738());}),this[_0x58bd5c(0x18d)][_0x58bd5c(0x17b)]['on'](_0x58bd5c(0x186),()=>{const _0x215ebf=_0x58bd5c;this[_0x215ebf(0x1ae)]=''===this[_0x215ebf(0x18d)][_0x215ebf(0x17b)][_0x215ebf(0x1a7)][_0x215ebf(0x17c)]?.[_0x215ebf(0x19f)]();});}[_0x53db5e(0x1a1)](){const _0x5e6b70=_0x53db5e;super[_0x5e6b70(0x1a1)](),this[_0x5e6b70(0x185)]&&this[_0x5e6b70(0x185)][_0x5e6b70(0x1a1)]();}[_0x53db5e(0x172)](){const _0x49c258=_0x53db5e,_0x951ff8=this[_0x49c258(0x18d)][_0x49c258(0x17b)][_0x49c258(0x1a7)][_0x49c258(0x17c)]?.[_0x49c258(0x19f)]();if(!_0x951ff8)return this[_0x49c258(0x18d)][_0x49c258(0x173)]=_0x4da6f4(this[_0x49c258(0x190)],_0x49c258(0x171)),void(this[_0x49c258(0x18d)][_0x49c258(0x17b)][_0x49c258(0x195)]=!0x0);this[_0x49c258(0x18d)][_0x49c258(0x17b)][_0x49c258(0x195)]=!0x1;const _0x3b24bd=_0x30d83f(_0x951ff8);this[_0x49c258(0x19e)](_0x49c258(0x17f),_0x3b24bd),this[_0x49c258(0x18d)][_0x49c258(0x17b)][_0x49c258(0x19d)]();}[_0x53db5e(0x188)](_0x23417a){const _0x274239=_0x53db5e;this[_0x274239(0x18d)][_0x274239(0x17b)][_0x274239(0x177)](_0x274239(0x1aa),_0x23417a);}[_0x53db5e(0x175)](){const _0x50941c=_0x53db5e,_0x4614c2=new _0x1a8624(this[_0x50941c(0x190)]);return _0x4614c2[_0x50941c(0x177)]({'icon':_0x1008fc,'label':_0x4da6f4(this[_0x50941c(0x190)],_0x50941c(0x1a6)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x50941c(0x176),'isEnabled':!0x1}),_0x4614c2['on'](_0x50941c(0x1ad),()=>{const _0x667ac7=_0x50941c;this[_0x667ac7(0x172)]();}),_0x4614c2;}[_0x53db5e(0x18f)](_0xae254){const _0x1ec351=_0x53db5e;this[_0x1ec351(0x194)]=_0xae254;}[_0x53db5e(0x1ab)](){const _0x384e3b=_0x53db5e,_0x473696=this[_0x384e3b(0x190)],_0x14ddd5=()=>{const _0x4cea6a=_0x384e3b;_0x4d4e53[_0x4cea6a(0x193)][_0x4cea6a(0x192)](()=>{const _0x1d881b=_0x4cea6a;if(_0x31c5ca(this[_0x1d881b(0x1a7)])){const _0x36d06a=new _0x1f79ef(this[_0x1d881b(0x18d)][_0x1d881b(0x17b)][_0x1d881b(0x1a7)]),_0x50e83e=new _0x1f79ef(this[_0x1d881b(0x191)][_0x1d881b(0x1a7)]),_0xd3b89f=_0x36d06a[_0x1d881b(0x179)],_0x49fccc=_0x1d881b(0x174)===_0x473696[_0x1d881b(0x18e)]?_0x1d881b(0x18a):_0x1d881b(0x19b);_0x36d06a[_0x1d881b(0x1a2)]();const _0x5b90f4=_0xd3b89f-_0x36d06a[_0x1d881b(0x179)]+0x1;this[_0x1d881b(0x191)][_0x1d881b(0x1a7)][_0x1d881b(0x1ac)][_0x49fccc]=_0x1d881b(0x184)+(_0xd3b89f-_0x50e83e[_0x1d881b(0x179)]-_0x5b90f4)+_0x1d881b(0x199);}});};this[_0x384e3b(0x18d)][_0x384e3b(0x17b)]['on'](_0x384e3b(0x186),_0x14ddd5),this['on'](_0x384e3b(0x1a4),()=>{const _0x3095e9=_0x384e3b;_0x14ddd5(),this[_0x3095e9(0x185)]=new _0x356381(this[_0x3095e9(0x18d)][_0x3095e9(0x17b)][_0x3095e9(0x1a7)],()=>{_0x14ddd5();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c72fc=_0x59ed;function _0x59ed(_0x21739f,_0x1c0b26){const _0x359a7b=_0x359a();return _0x59ed=function(_0x59edaf,_0x58cfc9){_0x59edaf=_0x59edaf-0x127;let _0xea5a1a=_0x359a7b[_0x59edaf];return _0xea5a1a;},_0x59ed(_0x21739f,_0x1c0b26);}(function(_0x252b7d,_0x3c1671){const _0x2efac4=_0x59ed,_0x5effdf=_0x252b7d();while(!![]){try{const _0x2d14d5=-parseInt(_0x2efac4(0x129))/0x1+-parseInt(_0x2efac4(0x133))/0x2*(parseInt(_0x2efac4(0x130))/0x3)+parseInt(_0x2efac4(0x12e))/0x4+-parseInt(_0x2efac4(0x12f))/0x5*(-parseInt(_0x2efac4(0x131))/0x6)+-parseInt(_0x2efac4(0x128))/0x7*(parseInt(_0x2efac4(0x12b))/0x8)+parseInt(_0x2efac4(0x12c))/0x9+parseInt(_0x2efac4(0x12a))/0xa;if(_0x2d14d5===_0x3c1671)break;else _0x5effdf['push'](_0x5effdf['shift']());}catch(_0x215f95){_0x5effdf['push'](_0x5effdf['shift']());}}}(_0x359a,0x86c4a));import{ListView as _0x1a2558}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x1a2558{[_0x4c72fc(0x127)](){const _0xaf9d79=_0x4c72fc;let _0x441cf3=0x0;for(const _0x4183ed of this[_0xaf9d79(0x12d)])_0x441cf3+=_0x4183ed[_0xaf9d79(0x12d)][_0xaf9d79(0x132)];return{'resultsCount':_0x441cf3,'totalItemsCount':_0x441cf3};}}function _0x359a(){const _0x2477ab=['12FHzzGv','length','4sotVLz','filter','1037582NTETYZ','470726cNgewI','1884720vxUuNM','8IAsrDp','2869029FReSBK','items','3622452tMNuJA','419295bjhgMX','614433Xvszhp'];_0x359a=function(){return _0x2477ab;};return _0x359a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x310068=_0x12e9;(function(_0x252fc9,_0x57c5a3){const _0x1c5ce5=_0x12e9,_0x91f80a=_0x252fc9();while(!![]){try{const _0x244db7=-parseInt(_0x1c5ce5(0x170))/0x1+parseInt(_0x1c5ce5(0x16c))/0x2*(-parseInt(_0x1c5ce5(0x172))/0x3)+parseInt(_0x1c5ce5(0x183))/0x4*(parseInt(_0x1c5ce5(0x186))/0x5)+-parseInt(_0x1c5ce5(0x18b))/0x6*(-parseInt(_0x1c5ce5(0x171))/0x7)+-parseInt(_0x1c5ce5(0x175))/0x8+-parseInt(_0x1c5ce5(0x17b))/0x9*(-parseInt(_0x1c5ce5(0x179))/0xa)+-parseInt(_0x1c5ce5(0x177))/0xb;if(_0x244db7===_0x57c5a3)break;else _0x91f80a['push'](_0x91f80a['shift']());}catch(_0x275a38){_0x91f80a['push'](_0x91f80a['shift']());}}}(_0x12ac,0xb8065));function _0x12ac(){const _0x4745a7=['140TlMAoq','resource','items','91395MkgIWu','add','clear','test','forEach','27834HzwMbp','locale','updateResourceState','1727058haORqa','\x5c$&','useDefaultFiltering','ck-ai-chat-resources__list','63991xnWzGG','1428eAFeFc','3iPZScM','label','addResourceToContext','5723472oWgYeL','replace','7282121nSrIAH','execute','14726090eeOrKq','fire','9jwlYPX','highlightText','_handleResourceSelection','_source','filter','setResources','extendTemplate','trim'];_0x12ac=function(){return _0x4745a7;};return _0x12ac();}import{ListView as _0xa4e139}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x45fc1e}from'./aichatresourcelistitemview.js';const rc=_0x310068(0x16f);function _0x12e9(_0x2dfba3,_0x58ea6a){const _0x12ac85=_0x12ac();return _0x12e9=function(_0x12e95e,_0x1d0926){_0x12e95e=_0x12e95e-0x16c;let _0x2b11a3=_0x12ac85[_0x12e95e];return _0x2b11a3;},_0x12e9(_0x2dfba3,_0x58ea6a);}export class AIChatContextResourcesListView extends _0xa4e139{[_0x310068(0x17e)];constructor(_0x9c12a6,_0x41525b){const _0x15cad8=_0x310068;super(_0x9c12a6),this[_0x15cad8(0x17e)]=_0x41525b,this[_0x15cad8(0x181)]({'attributes':{'class':[rc]}});}[_0x310068(0x180)](_0x2accec,_0x5b8b1f){const _0x170c56=_0x310068;this[_0x170c56(0x185)][_0x170c56(0x188)]();let _0x19c1a6=_0x2accec;if(this[_0x170c56(0x17e)][_0x170c56(0x16e)]&&_0x5b8b1f&&''!==_0x5b8b1f[_0x170c56(0x182)]()){const _0x318a3e=new RegExp(_0x5b8b1f[_0x170c56(0x176)](/[.*+?^${}()|[\]\\]/g,_0x170c56(0x16d)),'gi');_0x19c1a6=_0x2accec[_0x170c56(0x17f)](_0x1fd05a=>_0x318a3e[_0x170c56(0x189)](_0x1fd05a[_0x170c56(0x173)]));}for(const _0xeb6b1 of _0x19c1a6){const _0xb6435c=new _0x45fc1e(this[_0x170c56(0x18c)],_0xeb6b1);_0xb6435c['on'](_0x170c56(0x178),()=>{const _0x582cf4=_0x170c56;this[_0x582cf4(0x17d)](this[_0x582cf4(0x17e)],_0xeb6b1);}),this[_0x170c56(0x185)][_0x170c56(0x187)](_0xb6435c);}this[_0x170c56(0x17e)][_0x170c56(0x16e)]&&this[_0x170c56(0x17c)](_0x5b8b1f);}[_0x310068(0x17c)](_0x294bf4){const _0x1bfb2a=_0x310068;this[_0x1bfb2a(0x17e)][_0x1bfb2a(0x16e)]&&this[_0x1bfb2a(0x185)][_0x1bfb2a(0x18a)](_0x37c0a7=>{const _0x353b84=_0x1bfb2a;_0x37c0a7[_0x353b84(0x17c)](_0x294bf4);});}[_0x310068(0x18d)](_0xfd228d,_0x1547a4){const _0x11fc33=_0x310068;for(const _0x41f415 of this[_0x11fc33(0x185)]){const _0xe9473e=_0x41f415;_0xe9473e[_0x11fc33(0x184)]['id']===_0xfd228d&&_0xe9473e[_0x11fc33(0x18d)](_0x1547a4);}}[_0x310068(0x17d)](_0x119e02,_0x468017){const _0x407fe1=_0x310068;this[_0x407fe1(0x17a)](_0x407fe1(0x174),{'source':_0x119e02,'resource':_0x468017});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bd8b2=_0x5880;(function(_0x5d8959,_0xbc80e2){const _0x9c37b2=_0x5880,_0x8969f6=_0x5d8959();while(!![]){try{const _0x50c965=-parseInt(_0x9c37b2(0x17c))/0x1*(-parseInt(_0x9c37b2(0x16e))/0x2)+parseInt(_0x9c37b2(0x16c))/0x3*(parseInt(_0x9c37b2(0x180))/0x4)+parseInt(_0x9c37b2(0x190))/0x5+-parseInt(_0x9c37b2(0x178))/0x6*(-parseInt(_0x9c37b2(0x17b))/0x7)+-parseInt(_0x9c37b2(0x198))/0x8*(-parseInt(_0x9c37b2(0x17d))/0x9)+parseInt(_0x9c37b2(0x17e))/0xa*(parseInt(_0x9c37b2(0x196))/0xb)+-parseInt(_0x9c37b2(0x197))/0xc;if(_0x50c965===_0xbc80e2)break;else _0x8969f6['push'](_0x8969f6['shift']());}catch(_0x13e3d9){_0x8969f6['push'](_0x8969f6['shift']());}}}(_0x4501,0x3faf3));function _0x5880(_0x11e174,_0x4ff689){const _0x450163=_0x4501();return _0x5880=function(_0x5880ce,_0x10cf38){_0x5880ce=_0x5880ce-0x165;let _0x455b2a=_0x450163[_0x5880ce];return _0x455b2a;},_0x5880(_0x11e174,_0x4ff689);}import{View as _0x1c273f,ViewCollection as _0x4352da}from'ckeditor5/src/ui.js';function _0x4501(){const _0x48453e=['locale','has','fire','1023qyOIRZ','11717640yxjNHo','8VKSTJu','_resourcesListView','extendTemplate','setResources','search','children','searchInputVisibleFrom','div','20925SvGtzt','updateResourceState','2pLQdLb','_searchInputVisibleFrom','aiChatResources','_searchSection','source','ck\x20ck-search','_createSearchView','bindTemplate','ck-hidden','_source','876bFMVKp','length','set','19509NejuxD','273668LJgjrA','417402QnBGEW','19630OTxerF','highlightText','152prSSbz','useDefaultFiltering','getQuery','render','loadResources','add','loadSourceResources','_latestLoadResourcesUid','_createSkeletonView','_skeletonLoader','_createResourcesListView','ck-ai-chat-resources','_createSearchSection','setTemplate','delegate','addResourceToContext','313820FvbSpA','_searchView','isLoading'];_0x4501=function(){return _0x48453e;};return _0x4501();}import{uid as _0x187695}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x17a7cb}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x537595}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0xfac724,SKELETON_DEFINITIONS as _0x421478}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x1c273f{[_0x4bd8b2(0x191)];[_0x4bd8b2(0x171)];[_0x4bd8b2(0x16f)];[_0x4bd8b2(0x165)];[_0x4bd8b2(0x189)];[_0x4bd8b2(0x177)];[_0x4bd8b2(0x169)];[_0x4bd8b2(0x187)]=null;constructor(_0x3fee6a,_0x57d6fd){const _0xd0d070=_0x4bd8b2;super(_0x3fee6a),this[_0xd0d070(0x177)]=_0x57d6fd[_0xd0d070(0x172)],this[_0xd0d070(0x16f)]=_0x57d6fd[_0xd0d070(0x16a)]??0x7,this[_0xd0d070(0x17a)](_0xd0d070(0x192),!0x0),this[_0xd0d070(0x191)]=this[_0xd0d070(0x174)](),this[_0xd0d070(0x171)]=this[_0xd0d070(0x18c)](),this[_0xd0d070(0x165)]=this[_0xd0d070(0x18a)](),this[_0xd0d070(0x189)]=this[_0xd0d070(0x188)](),this[_0xd0d070(0x169)]=new _0x4352da([this[_0xd0d070(0x189)],this[_0xd0d070(0x165)]]),this[_0xd0d070(0x18d)]({'tag':_0xd0d070(0x16b),'attributes':{'class':_0xd0d070(0x18b)},'children':this[_0xd0d070(0x169)]});}[_0x4bd8b2(0x174)](){const _0x1c5c36=_0x4bd8b2;return new _0x537595(this[_0x1c5c36(0x193)]);}[_0x4bd8b2(0x18c)](){const _0x4c3cdd=_0x4bd8b2,_0x57dff6=new _0x1c273f(this[_0x4c3cdd(0x193)]);return _0x57dff6[_0x4c3cdd(0x18d)]({'tag':_0x4c3cdd(0x16b),'attributes':{'class':_0x4c3cdd(0x173)},'children':[this[_0x4c3cdd(0x191)]]}),this[_0x4c3cdd(0x191)]['on'](_0x4c3cdd(0x168),(_0x1e2b62,_0x30f436)=>{const _0x2ddfc8=_0x4c3cdd;this[_0x2ddfc8(0x184)](_0x30f436),this[_0x2ddfc8(0x177)][_0x2ddfc8(0x181)]&&this[_0x2ddfc8(0x165)][_0x2ddfc8(0x17f)](_0x30f436);}),_0x57dff6;}[_0x4bd8b2(0x18a)](){const _0x1e4723=_0x4bd8b2,_0x4fb6ea=new _0x17a7cb(this[_0x1e4723(0x193)],this[_0x1e4723(0x177)]);return _0x4fb6ea[_0x1e4723(0x18e)](_0x1e4723(0x18f))['to'](this),_0x4fb6ea[_0x1e4723(0x166)]({'attributes':{'class':this[_0x1e4723(0x175)]['if'](_0x1e4723(0x192),_0x1e4723(0x176))}}),_0x4fb6ea;}[_0x4bd8b2(0x188)](){const _0x1dd381=_0x4bd8b2,_0x8cbfc=new _0xfac724(this[_0x1dd381(0x193)],_0x421478[_0x1dd381(0x170)]);return _0x8cbfc[_0x1dd381(0x166)]({'attributes':{'class':[this[_0x1dd381(0x175)]['if'](_0x1dd381(0x192),_0x1dd381(0x176),_0x1f9a2d=>!_0x1f9a2d)]}}),_0x8cbfc;}[_0x4bd8b2(0x183)](){const _0x1ffec2=_0x4bd8b2;super[_0x1ffec2(0x183)](),this[_0x1ffec2(0x184)]('');}[_0x4bd8b2(0x184)](_0x285fda){const _0x384fef=_0x4bd8b2,_0x494cc0=_0x187695();this[_0x384fef(0x187)]=_0x494cc0,this[_0x384fef(0x195)](_0x384fef(0x186),{'sourceId':this[_0x384fef(0x177)]['id'],'query':_0x285fda,'uid':_0x494cc0}),this[_0x384fef(0x192)]=!0x0;}[_0x4bd8b2(0x167)](_0x5adceb,_0x334c76){const _0x1e601c=_0x4bd8b2;if(_0x334c76&&_0x334c76!==this[_0x1e601c(0x187)])return;const _0x4b60bf=this[_0x1e601c(0x177)][_0x1e601c(0x181)]?this[_0x1e601c(0x191)][_0x1e601c(0x182)]():'';this[_0x1e601c(0x165)][_0x1e601c(0x167)](_0x5adceb,_0x4b60bf),_0x5adceb[_0x1e601c(0x179)]>=this[_0x1e601c(0x16f)]&&!this[_0x1e601c(0x169)][_0x1e601c(0x194)](this[_0x1e601c(0x171)])&&this[_0x1e601c(0x169)][_0x1e601c(0x185)](this[_0x1e601c(0x171)],0x0),requestAnimationFrame(()=>{const _0x258989=_0x1e601c;this[_0x258989(0x192)]=!0x1;});}[_0x4bd8b2(0x16d)](_0x2a3e7e,_0x55f426){const _0x300388=_0x4bd8b2;this[_0x300388(0x165)][_0x300388(0x16d)](_0x2a3e7e,_0x55f426);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x37c9(_0x15cbe7,_0x49d742){const _0x59daa5=_0x59da();return _0x37c9=function(_0x37c9a9,_0x8456a3){_0x37c9a9=_0x37c9a9-0x1dc;let _0xcd77ab=_0x59daa5[_0x37c9a9];return _0xcd77ab;},_0x37c9(_0x15cbe7,_0x49d742);}const _0x441bb6=_0x37c9;(function(_0x2d2bdf,_0x78f968){const _0x436620=_0x37c9,_0x3d06f2=_0x2d2bdf();while(!![]){try{const _0x295ef8=-parseInt(_0x436620(0x1dc))/0x1*(parseInt(_0x436620(0x201))/0x2)+-parseInt(_0x436620(0x1e8))/0x3+-parseInt(_0x436620(0x1e2))/0x4+-parseInt(_0x436620(0x1f1))/0x5+-parseInt(_0x436620(0x1f8))/0x6*(parseInt(_0x436620(0x1de))/0x7)+-parseInt(_0x436620(0x1e7))/0x8+parseInt(_0x436620(0x203))/0x9*(parseInt(_0x436620(0x1e1))/0xa);if(_0x295ef8===_0x78f968)break;else _0x3d06f2['push'](_0x3d06f2['shift']());}catch(_0x52fddf){_0x3d06f2['push'](_0x3d06f2['shift']());}}}(_0x59da,0xbfafc));import{HighlightedTextView as _0x41dd03,IconView as _0x10d675,ListItemView as _0x207630}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x3a8c4d}from'es-toolkit/compat';import{AIContextItemType as _0x5d742c}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x2c573c,IconCheck as _0x4cf730,IconDocument as _0x24a6c5,IconDocumentOutline as _0x4421cc,IconLink as _0x6df427}from'@ckeditor/ckeditor5-icons';function _0x59da(){const _0x115ef3=['extendTemplate','set','URL','931360HcZwBG','_setupTemplate','div','setTemplate','text','highlightText','resource','807138OLdmKH','_createTitleView','span','_createIconView','DOCUMENT','execute','_iconView','_titleView','isInContext','198opLKgR','getResourceIcon','279hMLoRG','ck-ai-chat-resources__item-title','label','type','ck-ai-chat-resources__item__icon','10799KBZZkW','ck-ai-chat-resources__item','14LTffEk','ck-hidden','FILE','1017260GPRbDr','2777572ohPDEV','TEXT','trim','_updateIcon','render','474160rvttZF','270828ghYRyJ','bindTemplate','updateResourceState','content','isVisible','ck-ai-chat-resources__item--in-context'];_0x59da=function(){return _0x115ef3;};return _0x59da();}const Jr=_0x441bb6(0x1dd),Kr=_0x441bb6(0x1ed),Nr=_0x441bb6(0x204),Qr=_0x441bb6(0x207);export class AIChatResourceListItemView extends _0x207630{[_0x441bb6(0x1f7)];[_0x441bb6(0x1ff)];[_0x441bb6(0x1fe)];constructor(_0xfc7693,_0x428814){const _0x35686c=_0x441bb6;super(_0xfc7693),this[_0x35686c(0x1f7)]=_0x428814,this[_0x35686c(0x1ef)](_0x35686c(0x200),!!_0x428814[_0x35686c(0x200)]),this[_0x35686c(0x1ff)]=this[_0x35686c(0x1f9)](),this[_0x35686c(0x1fe)]=this[_0x35686c(0x1fb)](),this[_0x35686c(0x1f2)]();}[_0x441bb6(0x1e6)](){const _0xf53a2c=_0x441bb6;super[_0xf53a2c(0x1e6)]();}[_0x441bb6(0x202)](_0x95d72a){const _0x4405db=_0x441bb6;if(_0x95d72a[_0x4405db(0x200)])return _0x4cf730;switch(_0x95d72a[_0x4405db(0x206)]){case _0x5d742c[_0x4405db(0x1fc)]:return _0x24a6c5;case _0x5d742c[_0x4405db(0x1f0)]:return _0x6df427;case _0x5d742c[_0x4405db(0x1e0)]:case _0x5d742c[_0x4405db(0x1e3)]:return _0x2c573c;default:return _0x4421cc;}}[_0x441bb6(0x1f6)](_0x502b0f){const _0x404a1b=_0x441bb6;if(!_0x502b0f||''===_0x502b0f[_0x404a1b(0x1e4)]())return void this[_0x404a1b(0x1ff)][_0x404a1b(0x1f6)](null);const _0x29b763=new RegExp(_0x3a8c4d(_0x502b0f),'gi');this[_0x404a1b(0x1ff)][_0x404a1b(0x1f6)](_0x29b763);}[_0x441bb6(0x1ea)](_0x1c3eb8){const _0x1ca2cc=_0x441bb6;this[_0x1ca2cc(0x1f7)][_0x1ca2cc(0x200)]=_0x1c3eb8,this[_0x1ca2cc(0x200)]=_0x1c3eb8,this[_0x1ca2cc(0x1e5)]();}[_0x441bb6(0x1f9)](){const _0x31ffef=_0x441bb6,_0x421b83=new _0x41dd03();return _0x421b83[_0x31ffef(0x1f5)]=this[_0x31ffef(0x1f7)][_0x31ffef(0x205)],_0x421b83[_0x31ffef(0x1ee)]({'tag':_0x31ffef(0x1fa),'attributes':{'class':[Nr]}}),_0x421b83;}[_0x441bb6(0x1fb)](){const _0x22e9c5=_0x441bb6,_0x34d807=new _0x10d675();return _0x34d807[_0x22e9c5(0x1eb)]=this[_0x22e9c5(0x202)](this[_0x22e9c5(0x1f7)]),_0x34d807;}[_0x441bb6(0x1f2)](){const _0x540663=_0x441bb6,_0x421c05=this[_0x540663(0x1e9)];this[_0x540663(0x1f4)]({'tag':_0x540663(0x1f3),'attributes':{'class':[Jr,_0x421c05['if'](_0x540663(0x1ec),_0x540663(0x1df),_0x2ee831=>!_0x2ee831),_0x421c05['if'](_0x540663(0x200),Kr)]},'children':[{'tag':_0x540663(0x1f3),'attributes':{'class':[Qr]},'children':[this[_0x540663(0x1fe)]]},this[_0x540663(0x1ff)]],'on':{'click':_0x421c05['to'](_0x540663(0x1fd))}});}[_0x441bb6(0x1e5)](){const _0x574245=_0x441bb6;this[_0x574245(0x1fe)][_0x574245(0x1eb)]=this[_0x574245(0x202)](this[_0x574245(0x1f7)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x24c7ce=_0x4152;(function(_0x2056b9,_0x38b226){const _0x2c47b0=_0x4152,_0x1cbcb5=_0x2056b9();while(!![]){try{const _0x282610=parseInt(_0x2c47b0(0xed))/0x1+parseInt(_0x2c47b0(0xf6))/0x2*(parseInt(_0x2c47b0(0xe5))/0x3)+parseInt(_0x2c47b0(0xfd))/0x4+-parseInt(_0x2c47b0(0x112))/0x5*(-parseInt(_0x2c47b0(0x110))/0x6)+parseInt(_0x2c47b0(0xff))/0x7*(-parseInt(_0x2c47b0(0x10a))/0x8)+parseInt(_0x2c47b0(0x111))/0x9+-parseInt(_0x2c47b0(0xf5))/0xa;if(_0x282610===_0x38b226)break;else _0x1cbcb5['push'](_0x1cbcb5['shift']());}catch(_0x517d22){_0x1cbcb5['push'](_0x1cbcb5['shift']());}}}(_0x1c10,0x77d76));import{BalloonPanelView as _0x1415a6,ButtonView as _0x2bf840,clickOutsideHandler as _0x4436d2,FormHeaderView as _0x165dcb}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x264a83}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x210ecd}from'../../../../aicore/utils/common-translations.js';function _0x1c10(){const _0x268e9c=['5576490eIsggG','2165wfRBuy','once','onLoadSourceResources','set','_createBackButton','setResources','add','onBalloonClosed','populateSourceResourceBalloon','_getResourcesViewFromBalloon','content','resource','hide','ck-ai-chat-context-controls__source-balloon-panel','change:isLoading','_createSourceResourceBalloonPanel','6fPpHEt','values','_setupSingleResourceBalloonClickOutsideHandler','extendTemplate','_addSourceResourceContent','_createBalloonResourcesView','getLimiterElement','_createBalloonHeader','500613vpnllz','getTargetElement','_bodyCollection','source','_config','clear','_sourceResourceBalloons','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','9536150lndtCR','346846BLvQSL','loadSourceResources','label','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','updateResourceState','destroy','children','452732QwgrPx','closeSourceResourceBalloon','56RcNluI','isVisible','element','ck-button-icon\x20ck-button-back','addResourceToContext','get','_locale','show','showSourceResourcesBalloon','pin','isAnyResourceBalloonVisible','229728ccOeYy','delete','execute','searchInputVisibleFrom','onBackToContext','onResourceSelected','1302bSfeQv'];_0x1c10=function(){return _0x268e9c;};return _0x1c10();}function _0x4152(_0x4f8ee6,_0x429a3c){const _0x1c1019=_0x1c10();return _0x4152=function(_0x4152c4,_0x46ce0b){_0x4152c4=_0x4152c4-0xd7;let _0x59e352=_0x1c1019[_0x4152c4];return _0x59e352;},_0x4152(_0x4f8ee6,_0x429a3c);}import{AIChatContextResourcesView as _0xa39079}from'./aichatcontextresourcesview.js';const Wr=_0x24c7ce(0xe2),Yr=_0x24c7ce(0x102),Zr=_0x24c7ce(0xf4);export class AIChatResourcesBalloonView{[_0x24c7ce(0xf3)]=new Map();[_0x24c7ce(0xef)];[_0x24c7ce(0x105)];[_0x24c7ce(0xf1)];constructor(_0xc278da,_0x1361cd,_0x3ff1e2){const _0x4a3e37=_0x24c7ce;this[_0x4a3e37(0x105)]=_0xc278da,this[_0x4a3e37(0xef)]=_0x1361cd,this[_0x4a3e37(0xf1)]=_0x3ff1e2;}[_0x24c7ce(0x107)](_0x5d8d7b){const _0x43709f=_0x24c7ce;let _0x864859=this[_0x43709f(0xf3)][_0x43709f(0x104)](_0x5d8d7b['id']);_0x864859||(_0x864859=this[_0x43709f(0xe4)](),this[_0x43709f(0xf3)][_0x43709f(0xd8)](_0x5d8d7b['id'],_0x864859),this[_0x43709f(0xe7)](_0x864859)),this[_0x43709f(0xe9)](_0x864859,_0x5d8d7b),_0x864859[_0x43709f(0x106)]();const _0x4d9024=this[_0x43709f(0xf1)][_0x43709f(0xee)]();_0x4d9024&&_0x864859[_0x43709f(0x108)]({'target':_0x4d9024,'limiter':this[_0x43709f(0xf1)][_0x43709f(0xeb)]()});}[_0x24c7ce(0xdd)](_0x1260bc,_0x119116,_0x38e46d){const _0x131a33=_0x24c7ce,_0x3f80af=this[_0x131a33(0xf3)][_0x131a33(0x104)](_0x1260bc);if(!_0x3f80af)return;const _0x49406a=this[_0x131a33(0xde)](_0x3f80af);_0x49406a&&(_0x49406a[_0x131a33(0xda)](_0x119116,_0x38e46d),_0x49406a[_0x131a33(0x113)](_0x131a33(0xe3),()=>{const _0x46fc33=_0x131a33;_0x3f80af[_0x46fc33(0x108)]({'target':this[_0x46fc33(0xf1)][_0x46fc33(0xee)](),'limiter':this[_0x46fc33(0xf1)][_0x46fc33(0xeb)]()});}));}[_0x24c7ce(0xfe)](_0x3e8271){const _0x3b76b9=_0x24c7ce,_0x20adce=this[_0x3b76b9(0xf3)][_0x3b76b9(0x104)](_0x3e8271);_0x20adce&&requestAnimationFrame(()=>{const _0x32de85=_0x3b76b9;_0x20adce[_0x32de85(0xe1)](),this[_0x32de85(0xf3)][_0x32de85(0x10b)](_0x3e8271),this[_0x32de85(0xf1)][_0x32de85(0xdc)]();});}[_0x24c7ce(0x109)](){const _0x56ccf6=_0x24c7ce;for(const _0x2720d5 of this[_0x56ccf6(0xf3)][_0x56ccf6(0xe6)]())if(_0x2720d5[_0x56ccf6(0x100)])return!0x0;return!0x1;}[_0x24c7ce(0xfa)](_0x3d2956,_0x2b8dd7,_0x5c6c2a){const _0x3656aa=_0x24c7ce,_0x435097=this[_0x3656aa(0xf3)][_0x3656aa(0x104)](_0x3d2956);if(!_0x435097||!_0x435097[_0x3656aa(0x100)])return;const _0x57737c=this[_0x3656aa(0xf1)][_0x3656aa(0xee)]();if(!_0x57737c)return;_0x435097[_0x3656aa(0x108)]({'target':_0x57737c,'limiter':this[_0x3656aa(0xf1)][_0x3656aa(0xeb)]()});const _0xa472bc=this[_0x3656aa(0xde)](_0x435097);_0xa472bc&&_0xa472bc[_0x3656aa(0xfa)](_0x2b8dd7,_0x5c6c2a);}[_0x24c7ce(0xfb)](){const _0x8a8c49=_0x24c7ce;for(const _0x30902b of this[_0x8a8c49(0xf3)][_0x8a8c49(0xe6)]())_0x30902b[_0x8a8c49(0xfb)]();this[_0x8a8c49(0xf3)][_0x8a8c49(0xf2)]();}[_0x24c7ce(0xe4)](){const _0x11b493=_0x24c7ce,_0x3b28df=new _0x1415a6(this[_0x11b493(0x105)]);return _0x3b28df[_0x11b493(0xe8)]({'attributes':{'class':Wr}}),this[_0x11b493(0xef)][_0x11b493(0xdb)](_0x3b28df),_0x3b28df;}[_0x24c7ce(0xe9)](_0x259631,_0x198eff){const _0x45a1e5=_0x24c7ce;_0x259631[_0x45a1e5(0xdf)][_0x45a1e5(0xf2)]();const _0x53f3ab=this[_0x45a1e5(0xec)](_0x259631,_0x198eff);_0x259631[_0x45a1e5(0xdf)][_0x45a1e5(0xdb)](_0x53f3ab);const _0x3e11c8=this[_0x45a1e5(0xea)](_0x198eff);_0x259631[_0x45a1e5(0xdf)][_0x45a1e5(0xdb)](_0x3e11c8);}[_0x24c7ce(0xec)](_0x400f36,_0x5e24d1){const _0x415687=_0x24c7ce,_0x3ce1ab=this[_0x415687(0xd9)](_0x400f36),_0x19f3da=new _0x165dcb(this[_0x415687(0x105)],{'label':_0x5e24d1[_0x415687(0xf8)],'class':Zr});return _0x19f3da[_0x415687(0xfc)][_0x415687(0xdb)](_0x3ce1ab,0x0),_0x19f3da;}[_0x24c7ce(0xd9)](_0xdca50a){const _0x1ca2dd=_0x24c7ce,_0x52f36e=new _0x2bf840(this[_0x1ca2dd(0x105)]);return _0x52f36e[_0x1ca2dd(0xd8)]({'icon':_0x264a83,'tooltip':_0x210ecd(this[_0x1ca2dd(0x105)],_0x1ca2dd(0xf9)),'tooltipPosition':'n','class':Yr}),_0x52f36e['on'](_0x1ca2dd(0x10c),()=>{const _0x63817f=_0x1ca2dd;_0xdca50a[_0x63817f(0xe1)](),this[_0x63817f(0xf1)][_0x63817f(0x10e)]();}),_0x52f36e;}[_0x24c7ce(0xea)](_0x2c4761){const _0x29b358=_0x24c7ce,_0x105713=new _0xa39079(this[_0x29b358(0x105)],{'source':_0x2c4761,'searchInputVisibleFrom':this[_0x29b358(0xf1)][_0x29b358(0x10d)]});return _0x105713['on'](_0x29b358(0xf7),(_0xcab06c,_0x5dc767)=>{const _0x38949a=_0x29b358;this[_0x38949a(0xf1)][_0x38949a(0xd7)](_0x5dc767);}),_0x105713['on'](_0x29b358(0x103),(_0x1b0f83,_0xb42065)=>{const _0x2ad886=_0x29b358;this[_0x2ad886(0xf1)][_0x2ad886(0x10f)](_0xb42065[_0x2ad886(0xf0)],_0xb42065[_0x2ad886(0xe0)]),this[_0x2ad886(0xfe)](_0x2c4761['id']);}),_0x105713;}[_0x24c7ce(0xde)](_0x3742de){const _0x590a6d=_0x24c7ce,_0x1703da=_0x3742de[_0x590a6d(0xdf)][_0x590a6d(0x104)](0x1);return _0x1703da instanceof _0xa39079?_0x1703da:null;}[_0x24c7ce(0xe7)](_0x4c3b50){const _0x5ce0aa=_0x24c7ce;_0x4436d2({'emitter':_0x4c3b50,'contextElements':[_0x4c3b50[_0x5ce0aa(0x101)]],'callback':()=>{const _0x13eb62=_0x5ce0aa;_0x4c3b50[_0x13eb62(0xe1)](),this[_0x13eb62(0xf1)][_0x13eb62(0xdc)]();},'activator':()=>_0x4c3b50[_0x5ce0aa(0x100)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x2ab353,IconView as _0xaf6417,LabeledFieldView as _0x50b59a,createLabeledInputText as _0x424d4d}from'ckeditor5/src/ui.js';import{IconLoupe as _0x2f0707,IconCancel as _0x1cb8b7}from'ckeditor5/src/icons.js';import{getTranslation as _0x3148ec}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x50b59a{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0xc85770){const t=_0xc85770['t'],_0x5113bf={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x424d4d,'label':_0x3148ec(_0xc85770,'AI_CHAT_SEARCH_RESOURCES')};super(_0xc85770,_0x5113bf['creator']),this['label']=_0x5113bf['label'],this['_viewConfig']=_0x5113bf,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0xc85770,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x20a775){this['fire']('search',_0x20a775);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0xaf6417(),this['iconView']['content']=_0x2f0707,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x23daa5,t){this['resetButtonView']=new _0x2ab353(_0x23daa5),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x1cb8b7,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x24bbbc=>!_0x24bbbc),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe69d85=_0x179b;(function(_0x365070,_0x2ea22c){const _0x388859=_0x179b,_0x42915f=_0x365070();while(!![]){try{const _0x2c3242=parseInt(_0x388859(0x201))/0x1+parseInt(_0x388859(0x206))/0x2+parseInt(_0x388859(0x202))/0x3+-parseInt(_0x388859(0x204))/0x4+-parseInt(_0x388859(0x1ff))/0x5+parseInt(_0x388859(0x1f2))/0x6+parseInt(_0x388859(0x200))/0x7*(-parseInt(_0x388859(0x1f3))/0x8);if(_0x2c3242===_0x2ea22c)break;else _0x42915f['push'](_0x42915f['shift']());}catch(_0x2ff57a){_0x42915f['push'](_0x42915f['shift']());}}}(_0x3eae,0x684fa));import{View as _0xfe0077}from'ckeditor5/src/ui.js';function _0x3eae(){const _0x2cee6e=['locale','render','setContainerElement','4618782QQUUUS','2748536ZQoZvz','destroy','ck-ai-chat-context-chips-wrapper-balloon','querySelector','ck-ai-chat-context-controls__show-more-balloon-panel','_overflowManager','setTemplate','_contextChips','div','ck-ai-chat__feed__context-chips','ck-ai-chat-controls-button','element','1625290nlXMSl','28qrmvbf','820970wMULnx','1114155coBJAH','_bodyCollection','137660jvoPcZ','createCollection','397694MoVtVC','ck-ai-chat-controls_context_show-more-button','ck-ai-chat-context-chips-wrapper','_createContextChips','add','reorganizeChips','ck-reset_all'];_0x3eae=function(){return _0x2cee6e;};return _0x3eae();}function _0x179b(_0x3e0aa1,_0x5a6449){const _0x3eaef9=_0x3eae();return _0x179b=function(_0x179b2e,_0x12f92d){_0x179b2e=_0x179b2e-0x1f2;let _0x2db974=_0x3eaef9[_0x179b2e];return _0x2db974;},_0x179b(_0x3e0aa1,_0x5a6449);}import{AIChatContextItemButtonView as _0x391f76}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x430e28}from'../controls/aichatchipsoverflowmanager.js';const $o=_0xe69d85(0x1fc),Zo=_0xe69d85(0x208),oc=_0xe69d85(0x1f5),Oo=_0xe69d85(0x1fd),Ho=_0xe69d85(0x207),jo=_0xe69d85(0x1f7);export class AIChatFeedContextChipsView extends _0xfe0077{[_0xe69d85(0x1fa)]=this[_0xe69d85(0x205)]();[_0xe69d85(0x1f8)];[_0xe69d85(0x203)];constructor(_0x3d4db8,_0xb09e39,_0x3afead){const _0x93545=_0xe69d85;super(_0x3d4db8),this[_0x93545(0x203)]=_0x3afead,this[_0x93545(0x209)](_0xb09e39);const _0x48d027={'cssClasses':{'showMoreButton':Ho,'showMoreBalloon':jo,'overflowContainer':oc,'controlsButton':Oo}};this[_0x93545(0x1f8)]=new _0x430e28(_0x3d4db8,this[_0x93545(0x1fa)],_0x48d027,this[_0x93545(0x203)],this),this[_0x93545(0x1f9)]({'tag':_0x93545(0x1fb),'attributes':{'class':[$o,'ck',_0x93545(0x20c)]},'children':[{'tag':_0x93545(0x1fb),'attributes':{'class':Zo},'children':this[_0x93545(0x1fa)]}]});}[_0xe69d85(0x20e)](){const _0x54344d=_0xe69d85;super[_0x54344d(0x20e)]();const _0x4db195=this[_0x54344d(0x1fe)][_0x54344d(0x1f6)]('.'+Zo);_0x4db195&&(this[_0x54344d(0x1f8)][_0x54344d(0x20f)](_0x4db195),this[_0x54344d(0x1f8)][_0x54344d(0x20b)]());}[_0xe69d85(0x1f4)](){const _0x2ec68f=_0xe69d85;super[_0x2ec68f(0x1f4)](),this[_0x2ec68f(0x1f8)][_0x2ec68f(0x1f4)]();}[_0xe69d85(0x209)](_0x119957){const _0x4c06d2=_0xe69d85;for(const _0x3b8ea2 of _0x119957){const _0xbf422a=new _0x391f76(this[_0x4c06d2(0x20d)],_0x3b8ea2,!0x0,!0x1);this[_0x4c06d2(0x1fa)][_0x4c06d2(0x20a)](_0xbf422a);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x491f25=_0x5660;(function(_0x367688,_0x359134){const _0x4d34b2=_0x5660,_0x4e2252=_0x367688();while(!![]){try{const _0xb180d=parseInt(_0x4d34b2(0x16a))/0x1+-parseInt(_0x4d34b2(0x181))/0x2*(-parseInt(_0x4d34b2(0x175))/0x3)+parseInt(_0x4d34b2(0x182))/0x4*(parseInt(_0x4d34b2(0x16f))/0x5)+-parseInt(_0x4d34b2(0x179))/0x6+parseInt(_0x4d34b2(0x172))/0x7*(-parseInt(_0x4d34b2(0x17e))/0x8)+parseInt(_0x4d34b2(0x176))/0x9+-parseInt(_0x4d34b2(0x17c))/0xa;if(_0xb180d===_0x359134)break;else _0x4e2252['push'](_0x4e2252['shift']());}catch(_0x4c10b0){_0x4e2252['push'](_0x4e2252['shift']());}}}(_0x43f1,0x99434));import{IconBulb as _0x4e1bab,IconWeb as _0x3b9e43}from'@ckeditor/ckeditor5-icons';function _0x43f1(){const _0x1e315d=['AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','ck-hidden','45mqxcKQ','add','extendTemplate','40124mCRMMj','setTemplate','content','546vQhSvP','7368885oftUeb','ck-ai-chat__feed__interaction-header__capabilities','children','1110240FnSivx','ck-ai-chat__feed__interaction-header','div','1670570TjfjbH','span','1232xecyXX','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','push','2030DSPZLP','260332ZIZtqR','capabilities','273347sHQnQx','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','ck-ai-chat__feed__interaction-header__capabilities__text'];_0x43f1=function(){return _0x1e315d;};return _0x43f1();}import{IconView as _0x1edb1d,View as _0x1f613c}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x5b451c}from'./aichatfeeditemview.js';import{getTranslation as _0x4a7ad3}from'../../../aicore/utils/common-translations.js';function _0x5660(_0x3b1383,_0x5ab469){const _0x43f1db=_0x43f1();return _0x5660=function(_0x5660ee,_0xcb4aa1){_0x5660ee=_0x5660ee-0x169;let _0x43c64a=_0x43f1db[_0x5660ee];return _0x43c64a;},_0x5660(_0x3b1383,_0x5ab469);}export class AIChatFeedInteractionHeaderView extends _0x5b451c{[_0x491f25(0x169)];constructor(_0x10144f,_0x3723fb){const _0x479668=_0x491f25;super(_0x3723fb);const {isWebSearchEnabled:_0x16801e,isReasoningEnabled:_0x503403}=_0x3723fb[_0x479668(0x169)],_0x13a26b=[];let _0x42a7d3='';_0x16801e&&_0x503403?(_0x42a7d3=_0x4a7ad3(_0x10144f,_0x479668(0x16b)),_0x13a26b[_0x479668(0x180)](ta(_0x3b9e43)),_0x13a26b[_0x479668(0x180)](ta(_0x4e1bab))):_0x16801e?(_0x42a7d3=_0x4a7ad3(_0x10144f,_0x479668(0x16d)),_0x13a26b[_0x479668(0x180)](ta(_0x3b9e43))):_0x503403&&(_0x42a7d3=_0x4a7ad3(_0x10144f,_0x479668(0x17f)),_0x13a26b[_0x479668(0x180)](ta(_0x4e1bab))),this[_0x479668(0x171)]({'attributes':{'class':[_0x479668(0x17a),_0x42a7d3?'':_0x479668(0x16e)]}});const _0x156f0c=new _0x1f613c();_0x156f0c[_0x479668(0x173)]({'tag':_0x479668(0x17b),'attributes':{'class':['ck',_0x479668(0x177)]},'children':[..._0x13a26b,{'tag':_0x479668(0x17d),'attributes':{'class':[_0x479668(0x16c)]},'children':[_0x42a7d3]}]}),this[_0x479668(0x178)][_0x479668(0x170)](_0x156f0c),this[_0x479668(0x169)]=_0x3723fb[_0x479668(0x169)];}}function ta(_0x36da77){const _0x3a0706=_0x491f25,_0x2f1c76=new _0x1edb1d();return _0x2f1c76[_0x3a0706(0x174)]=_0x36da77,_0x2f1c76;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x375502=_0x2add;(function(_0x750f8f,_0x41a854){const _0x4c3cab=_0x2add,_0x3943cc=_0x750f8f();while(!![]){try{const _0x4499e3=-parseInt(_0x4c3cab(0x1f5))/0x1*(-parseInt(_0x4c3cab(0x1ed))/0x2)+-parseInt(_0x4c3cab(0x1ea))/0x3*(-parseInt(_0x4c3cab(0x1ff))/0x4)+-parseInt(_0x4c3cab(0x1e9))/0x5*(parseInt(_0x4c3cab(0x207))/0x6)+-parseInt(_0x4c3cab(0x20a))/0x7+parseInt(_0x4c3cab(0x203))/0x8+-parseInt(_0x4c3cab(0x1fe))/0x9+-parseInt(_0x4c3cab(0x1fd))/0xa*(-parseInt(_0x4c3cab(0x1f9))/0xb);if(_0x4499e3===_0x41a854)break;else _0x3943cc['push'](_0x3943cc['shift']());}catch(_0xc51afe){_0x3943cc['push'](_0x3943cc['shift']());}}}(_0x338b,0x2881a));import{View as _0x520e29}from'ckeditor5/src/ui.js';import{HTMLStreamer as _0x160c46}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x520e29{[_0x375502(0x1eb)];[_0x375502(0x209)]='';[_0x375502(0x200)];[_0x375502(0x205)];constructor(_0x798e0f){const _0x4688fc=_0x375502;super();const _0x59a19f=this[_0x4688fc(0x208)];this[_0x4688fc(0x1f1)](_0x4688fc(0x1f3),!0x1),this[_0x4688fc(0x1f1)](_0x4688fc(0x1f2),!0x0),this[_0x4688fc(0x200)]=new _0x160c46({'textNodeStyle':_0x4688fc(0x1f0),'delay':0x14}),this[_0x4688fc(0x1eb)]=_0x798e0f,this[_0x4688fc(0x205)]=this[_0x4688fc(0x1fa)](),this[_0x4688fc(0x206)]({'tag':_0x4688fc(0x1e7),'attributes':{'class':['ck',_0x4688fc(0x1f6),_0x59a19f['if'](_0x4688fc(0x1f3),_0x4688fc(0x1f4)),_0x59a19f['if'](_0x4688fc(0x1f2),_0x4688fc(0x1fb),_0x151edf=>!_0x151edf),_0x4688fc(0x1fc)],'data-cke-ai-id':this[_0x4688fc(0x1eb)]['id']},'children':this[_0x4688fc(0x205)]});}[_0x375502(0x201)](){const _0x1b7b2d=_0x375502;this[_0x1b7b2d(0x200)][_0x1b7b2d(0x1ec)]({'targetElement':this[_0x1b7b2d(0x1f8)]}),this[_0x1b7b2d(0x1f8)][_0x1b7b2d(0x1ef)](_0x1b7b2d(0x1f7))[_0x1b7b2d(0x1ee)](_0x591529=>{const _0x1b9fc5=_0x1b7b2d;_0x591529[_0x1b9fc5(0x20b)](_0x1b9fc5(0x1e8));}),this[_0x1b7b2d(0x1f3)]=!0x0;}async[_0x375502(0x202)](_0x3e28c1,_0x3be05b,_0x5e4103){const _0x464ac9=_0x375502;await this[_0x464ac9(0x200)][_0x464ac9(0x204)]({'document':_0x3e28c1,'targetElement':_0x3be05b,'abortSignal':_0x5e4103});}}function _0x2add(_0x41084c,_0x1013c7){const _0x338be5=_0x338b();return _0x2add=function(_0x2add9a,_0x2fde3d){_0x2add9a=_0x2add9a-0x1e7;let _0x147c55=_0x338be5[_0x2add9a];return _0x147c55;},_0x2add(_0x41084c,_0x1013c7);}function _0x338b(){const _0x4b2776=['set','isVisible','isDone','ck-ai-chat__feed__item_done','26367FKPUgm','ck-ai-chat__feed__item','[data-id]','element','10428fdTqWh','createCollection','ck-hidden','ck-ai-chat__feed__text-item','3240QzJjvo','2741976ZGnYYw','40WYscHh','htmlStreamer','markAsDone','streamIntoElement','949624luyMdU','stream','children','setTemplate','1983930sFDPaa','bindTemplate','content','421687fjhDhC','removeAttribute','div','data-id','5RwiJrp','75315lnxURB','options','cleanUpAnimations','14NqyhGw','forEach','querySelectorAll','animation:\x20ck-html-streamer-fade-in\x20.5s'];_0x338b=function(){return _0x4b2776;};return _0x338b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x503372=_0x52d2;(function(_0x4101b8,_0x52238d){const _0x6e382b=_0x52d2,_0x26fd4e=_0x4101b8();while(!![]){try{const _0x32fe10=-parseInt(_0x6e382b(0xf9))/0x1*(-parseInt(_0x6e382b(0xec))/0x2)+-parseInt(_0x6e382b(0xfb))/0x3*(-parseInt(_0x6e382b(0xde))/0x4)+-parseInt(_0x6e382b(0xe5))/0x5*(-parseInt(_0x6e382b(0xfc))/0x6)+-parseInt(_0x6e382b(0xe9))/0x7+parseInt(_0x6e382b(0xe2))/0x8+-parseInt(_0x6e382b(0xe1))/0x9*(-parseInt(_0x6e382b(0xe8))/0xa)+-parseInt(_0x6e382b(0xea))/0xb;if(_0x32fe10===_0x52238d)break;else _0x26fd4e['push'](_0x26fd4e['shift']());}catch(_0x8ffb4f){_0x26fd4e['push'](_0x26fd4e['shift']());}}}(_0x4dcd,0x1eab8));function _0x4dcd(){const _0x5a88b4=['replyContainer','isVisible','streaming','updateContent','balloonPanelView','setTemplate','streamIntoElement','updateSources','1973avolFn','ck-ai-chat__feed__ai-reply-container','30aJioLK','588IalYyh','render','children','locale','options','addMany','initialContent','81464lixtoq','static','element','9srDgYK','602736qCRXbu','map','markAsDone','7245DawKPU','_bodyCollection','add','185980VPdCtJ','1302252LeolGp','4098534CNTynA','extendTemplate','248hYPFBG','ck-reset_all-excluded','innerHTML','ck-ai-chat__feed__ai-reply','div'];_0x4dcd=function(){return _0x5a88b4;};return _0x4dcd();}import{AIChatFeedItemView as _0x1ac46a}from'./aichatfeeditemview.js';import{parse as _0x57252f,render as _0x2c8266}from'../../../aicore/utils/htmlparser.js';import{View as _0xcce8c7}from'ckeditor5/src/ui.js';function _0x52d2(_0x21e624,_0x2eeddb){const _0x4dcdd5=_0x4dcd();return _0x52d2=function(_0x52d287,_0x41c08b){_0x52d287=_0x52d287-0xdd;let _0x411d39=_0x4dcdd5[_0x52d287];return _0x411d39;},_0x52d2(_0x21e624,_0x2eeddb);}import{AIWebSourcesView as _0x15b1ce,AIWebSourceView as _0x1eac46}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0x1ac46a{[_0x503372(0xf1)];[_0x503372(0xe6)];constructor(_0x1148b8,_0x450ffa,_0x2542b5){const _0x1f0e8e=_0x503372;super(_0x450ffa),this[_0x1f0e8e(0xe6)]=_0x2542b5,this[_0x1f0e8e(0xff)]=_0x1148b8,this[_0x1f0e8e(0xeb)]({'attributes':{'class':[_0x1f0e8e(0xef)]}}),this[_0x1f0e8e(0xf1)]=new _0xcce8c7(),this[_0x1f0e8e(0xf1)][_0x1f0e8e(0xf6)]({'tag':_0x1f0e8e(0xf0),'attributes':{'class':['ck',_0x1f0e8e(0xed),_0x1f0e8e(0xfa)]}}),this[_0x1f0e8e(0xfe)][_0x1f0e8e(0xe7)](this[_0x1f0e8e(0xf1)]);}async[_0x503372(0xfd)](){const _0x555195=_0x503372;super[_0x555195(0xfd)](),this[_0x555195(0x100)][_0x555195(0xdd)]&&(await this[_0x555195(0xf4)]({'parsedContent':_0x57252f(this[_0x555195(0x100)][_0x555195(0xdd)]),'renderingStrategy':_0x555195(0xdf)}),this[_0x555195(0xe4)]());}async[_0x503372(0xf4)]({parsedContent:_0xce73ef,renderingStrategy:_0x491977,abortSignal:_0x50559d}){const _0x29b5c7=_0x503372;_0x29b5c7(0xf3)===_0x491977?await this[_0x29b5c7(0xf7)](_0xce73ef,this[_0x29b5c7(0xf1)][_0x29b5c7(0xe0)],_0x50559d):this[_0x29b5c7(0xf1)][_0x29b5c7(0xe0)][_0x29b5c7(0xee)]=_0x2c8266(_0xce73ef);}[_0x503372(0xf8)](_0x202d57){const _0x27ea77=_0x503372,_0x1fde92=new _0x15b1ce(this[_0x27ea77(0xff)],this[_0x27ea77(0xe6)]);_0x1fde92[_0x27ea77(0xfe)][_0x27ea77(0x101)](_0x202d57[_0x27ea77(0xe3)](_0x57ad16=>new _0x1eac46(this[_0x27ea77(0xff)],_0x57ad16,_0x1fde92[_0x27ea77(0xf5)]))),_0x1fde92[_0x27ea77(0xf2)]=!0x0,this[_0x27ea77(0xfe)][_0x27ea77(0xe7)](_0x1fde92);}}
|