@ckeditor/ckeditor5-ai 47.7.2-alpha.0 → 47.7.2
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/awstextadapter.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/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/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/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.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/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x527666=_0x2049;function _0x2049(_0x576f30,_0x5ea486){const _0x5ec175=_0x5ec1();return _0x2049=function(_0x204995,_0x17a5ed){_0x204995=_0x204995-0x1cc;let _0x102835=_0x5ec175[_0x204995];return _0x102835;},_0x2049(_0x576f30,_0x5ea486);}(function(_0x3b5e02,_0x2c7ee9){const _0x5719ad=_0x2049,_0xa7427e=_0x3b5e02();while(!![]){try{const _0x3260c4=parseInt(_0x5719ad(0x203))/0x1*(-parseInt(_0x5719ad(0x235))/0x2)+parseInt(_0x5719ad(0x21c))/0x3+parseInt(_0x5719ad(0x25b))/0x4*(-parseInt(_0x5719ad(0x23e))/0x5)+-parseInt(_0x5719ad(0x21a))/0x6*(-parseInt(_0x5719ad(0x25c))/0x7)+parseInt(_0x5719ad(0x1e6))/0x8*(-parseInt(_0x5719ad(0x1d5))/0x9)+parseInt(_0x5719ad(0x23f))/0xa+-parseInt(_0x5719ad(0x211))/0xb*(-parseInt(_0x5719ad(0x1e8))/0xc);if(_0x3260c4===_0x2c7ee9)break;else _0xa7427e['push'](_0xa7427e['shift']());}catch(_0x11ba69){_0xa7427e['push'](_0xa7427e['shift']());}}}(_0x5ec1,0xaae95));import{BalloonPanelView as _0x523307,ButtonView as _0x16d464,clickOutsideHandler as _0x36b9b8,FileDialogButtonView as _0x4fec57,IconView as _0x35ce79,View as _0x2b251d}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1afc0f,IconDocument as _0x3cba38,IconDocumentOutline as _0x4eb70f,IconDropdownArrow as _0x18e363,IconLink as _0x5f308c,IconPaperClip as _0x49db0f}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x57fd14}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x206585}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x389527}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x48740e}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x3bc001}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x527666(0x259),_0x527666(0x20c),_0x527666(0x202),_0x527666(0x239),_0x527666(0x1fe),_0x527666(0x246),_0x527666(0x1f1)];function _0x5ec1(){const _0x26754e=['2098280vPYpvV','customItems','12lPHwSR','cancel','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat-context-controls__add-context-balloon-panel','arrowView','_setupUrlBalloonClickOutsideHandler','urls','_setBalloonPanelContent','ck-ai-chat-context-controls__show-more-balloon-panel','executeCustomItemCallback','_createAddContextButtonView','setAddContextOptions','ck-ai-chat-context-controls__pending-contexts','destroy','submitUrl','_hasExactlyOneSource','ck-ai-chat-controls_context_show-more-button','clearConversationContextItems','withBackButton','_urlBalloonPanelView','hideUrlBalloonPanel','reorganizeChips','removeContextItem','_setupTemplate','ck-ai-chat','isAnyResourceBalloonVisible','addUrlToContext','368255dXTuHb','overflowChips','_resourcesBalloonView','bind','find','_handleUrlSubmit','isLoading','extendTemplate','body','addFileToContext','showSourceResourcesBalloon','southArrowNorthWest','setContextItemLoading','tooltip','27668531dCpqsp','clearCurrentContextItems','_createAddContextBalloonPanelView','isReadOnly','refreshBalloon','closeSourceResourceBalloon','files','northArrowSouth','AI_CHAT_CONTEXT_URL_LABEL','96IMCRBB','sources','40458RTDmSS','_handleAddContextButtonClick','isEnabled','_createContextButton','_addContextToCollection','AI_CHAT_CONTEXT_ADD_CONTEXT','fire','addContextButtonView','setTemplate','_conversationContextsChips','removeContextItemChip','div','_setAddContextButtonEnabled','ck-ai-chat-context-controls__url-balloon-panel','customItem','_removeContextFromCollection','AI_CHAT_CONTEXT_FILE_LABEL','_createUrlBalloonPanelView','showUrlBalloonPanel','_getLimiterElement','_addContextBalloonPanelView','hide','isHidden','populateSourceResourceBalloon','children','6rAUNTt','_setupAllBalloonClickOutsideHandlers','updateResourceState','ck-ai-chat-context-controls__add-context-button','addResourceToContext','_createBalloonButton','ck-reset_all-excluded','_setupAddContextBalloonClickOutsideHandler','defaultPositions','5yEeNom','791400Otsrdu','southArrowNorth','element','done','_bindEventHandlers','setConversationContext','isVisible','loadSourceResources','closest','focus','show','current','_addContextBalloonConfig','source','set','createCollection','northArrowSouthEast','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','buttonView','enabled','setContainerElement','label','ck-ai-chat-context-controls__balloon-button-source','length','ck-ai-chat-context-controls','locale','addDocumentToContext','balloonView','3705788BukbSW','283451DYtKZy','type','_currentContextsChips','add','ck-ai-chat-context-controls__balloon-button','_toggleAddContextBalloon','execute','southArrowNorthEast','isOn','clear','menuitem','_createResourcesBalloonView','ck-ai-chat-controls-button','pin','_overflowManager','northArrowSouthWest','_createBaseBalloonPanel','_addUrlContent','18iyOLTr','content','_urlInputView','searchInputVisibleFrom','document','_showSourceResourcesBalloon','get','bodyCollection','addContextItem','showAddContextBalloonPanel','remove','icon','render','hideAddContextBalloonPanel','conversation','__arrow','_createArrowView'];_0x5ec1=function(){return _0x26754e;};return _0x5ec1();}const Uo=_0x527666(0x257),Lo=_0x527666(0x1f4),No=_0x527666(0x1eb),Ho=_0x527666(0x238),Xo=_0x527666(0x229),Do=_0x527666(0x260),$o=_0x527666(0x255),yo=_0x527666(0x1cf),Wo=_0x527666(0x1ea),Fo=_0x527666(0x1f8),Io=_0x527666(0x1f0),qo=_0x527666(0x200),zo=[_0x523307[_0x527666(0x23d)][_0x527666(0x1d2)],_0x523307[_0x527666(0x23d)][_0x527666(0x218)],_0x523307[_0x527666(0x23d)][_0x527666(0x24f)],_0x523307[_0x527666(0x23d)][_0x527666(0x20e)],_0x523307[_0x527666(0x23d)][_0x527666(0x240)],_0x523307[_0x527666(0x23d)][_0x527666(0x263)]];export class AIChatContextPanelView extends _0x2b251d{[_0x527666(0x223)];[_0x527666(0x25e)]=this[_0x527666(0x24e)]();[_0x527666(0x225)]=this[_0x527666(0x24e)]();[_0x527666(0x1d1)];[_0x527666(0x230)];[_0x527666(0x1fb)];[_0x527666(0x1d7)];[_0x527666(0x205)];[_0x527666(0x24b)];[_0x527666(0x1f7)]=!0x1;[_0x527666(0x1dc)];constructor(_0x24973d,_0x58a300){const _0x1781c1=_0x527666;super(_0x24973d),this[_0x1781c1(0x1dc)]=_0x58a300[_0x1781c1(0x1dc)],this[_0x1781c1(0x25e)]=this[_0x1781c1(0x24e)](),this[_0x1781c1(0x225)]=this[_0x1781c1(0x24e)](),this[_0x1781c1(0x223)]=this[_0x1781c1(0x1f2)](_0x24973d),this[_0x1781c1(0x230)]=this[_0x1781c1(0x213)](_0x24973d),this[_0x1781c1(0x1fb)]=this[_0x1781c1(0x22d)](_0x24973d),this[_0x1781c1(0x205)]=this[_0x1781c1(0x1ce)](_0x24973d,_0x58a300);const _0x521070={'cssClasses':{'showMoreButton':Fo,'showMoreBalloon':Io,'overflowContainer':Wo,'controlsButton':yo}};this[_0x1781c1(0x1d1)]=new _0x389527(_0x24973d,this[_0x1781c1(0x25e)],_0x521070,this[_0x1781c1(0x1dc)],this),this[_0x1781c1(0x24b)]={'buttonView':this[_0x1781c1(0x223)],'balloonView':this[_0x1781c1(0x230)],'hideMethod':this[_0x1781c1(0x1e2)][_0x1781c1(0x206)](this),'showMethod':this[_0x1781c1(0x1de)][_0x1781c1(0x206)](this)},this[_0x1781c1(0x1ff)](),this[_0x1781c1(0x243)]();}[_0x527666(0x1e1)](){const _0x13bd39=_0x527666;super[_0x13bd39(0x1e1)](),this[_0x13bd39(0x236)](),this[_0x13bd39(0x1d1)][_0x13bd39(0x253)](this[_0x13bd39(0x241)]),this[_0x13bd39(0x1d1)][_0x13bd39(0x1fd)]();}[_0x527666(0x1f5)](){const _0xc65e15=_0x527666;super[_0xc65e15(0x1f5)](),this[_0xc65e15(0x1d1)][_0xc65e15(0x1f5)](),this[_0xc65e15(0x205)][_0xc65e15(0x1f5)]();}[_0x527666(0x1dd)](_0x59b351,_0x1f22e3){const _0x193d1d=_0x527666,_0x20ad66=this[_0x193d1d(0x21f)](_0x59b351,_0x193d1d(0x24a),!0x0,_0x1f22e3);this[_0x193d1d(0x220)](_0x20ad66,this[_0x193d1d(0x25e)]),this[_0x193d1d(0x1d1)][_0x193d1d(0x1fd)]();}[_0x527666(0x1fe)](_0x123dc7){const _0x413170=_0x527666;this[_0x413170(0x22b)](_0x123dc7,this[_0x413170(0x25e)]),this[_0x413170(0x22b)](_0x123dc7,this[_0x413170(0x1d1)][_0x413170(0x204)]),this[_0x413170(0x1d1)][_0x413170(0x1fd)]();}[_0x527666(0x20f)](_0x579af9,_0x375343){const _0x4afb4c=_0x527666;let _0x42cda2=this[_0x4afb4c(0x25e)][_0x4afb4c(0x207)](_0x2b50dd=>_0x2b50dd['id']===_0x579af9);_0x42cda2||(_0x42cda2=this[_0x4afb4c(0x1d1)][_0x4afb4c(0x204)][_0x4afb4c(0x207)](_0xeedcac=>_0xeedcac['id']===_0x579af9)),_0x42cda2&&(_0x42cda2[_0x4afb4c(0x209)]=_0x375343);}[_0x527666(0x244)](_0x46fd64){const _0x32622c=_0x527666;this[_0x32622c(0x225)][_0x32622c(0x1cc)]();for(const _0x496bbb of _0x46fd64){const _0x2c6aa7=this[_0x32622c(0x21f)](_0x496bbb,_0x32622c(0x1e3),!0x1,!0x1);this[_0x32622c(0x220)](_0x2c6aa7,this[_0x32622c(0x225)]);}}[_0x527666(0x212)](){const _0x5da6b1=_0x527666;this[_0x5da6b1(0x25e)][_0x5da6b1(0x1cc)](),this[_0x5da6b1(0x1d1)][_0x5da6b1(0x1cc)]();}[_0x527666(0x1f9)](){const _0x17b075=_0x527666;this[_0x17b075(0x225)][_0x17b075(0x1cc)]();}[_0x527666(0x237)](_0x36fc41,_0x5355bf,_0x1335af){const _0x23f38f=_0x527666;this[_0x23f38f(0x205)][_0x23f38f(0x237)](_0x36fc41,_0x5355bf,_0x1335af);}[_0x527666(0x1e2)](){const _0xe71b8f=_0x527666;this[_0xe71b8f(0x261)](!0x1);}[_0x527666(0x1de)](){const _0x131c00=_0x527666;this[_0x131c00(0x261)](!0x0);}[_0x527666(0x1fc)](){const _0x2541a5=_0x527666;this[_0x2541a5(0x1fb)][_0x2541a5(0x231)](),this[_0x2541a5(0x223)][_0x2541a5(0x264)]=!0x1,this[_0x2541a5(0x1d7)]&&this[_0x2541a5(0x1d7)][_0x2541a5(0x1cc)]();}[_0x527666(0x22e)](){const _0x21f87d=_0x527666;this[_0x21f87d(0x1fb)][_0x21f87d(0x249)](),this[_0x21f87d(0x223)][_0x21f87d(0x264)]=!0x0;}[_0x527666(0x1da)]({source:_0x493a6e,withBackButton:_0x232eb8}){const _0x2d4a20=_0x527666;this[_0x2d4a20(0x205)][_0x2d4a20(0x20d)]({'source':_0x493a6e,'withBackButton':_0x232eb8}),this[_0x2d4a20(0x223)][_0x2d4a20(0x264)]=!0x0;}[_0x527666(0x233)](_0x4f07c0,_0x41fd0e,_0x38d8de,_0x4ed247){const _0x402978=_0x527666;this[_0x402978(0x205)][_0x402978(0x233)](_0x4f07c0,_0x38d8de,_0x4ed247);}[_0x527666(0x216)](_0x24adc8){const _0x38729f=_0x527666;this[_0x38729f(0x205)][_0x38729f(0x216)](_0x24adc8),this[_0x38729f(0x223)][_0x38729f(0x264)]=!0x1;}[_0x527666(0x1f3)](_0x347d6b){const _0xfef717=_0x527666;this[_0xfef717(0x1ef)](this[_0xfef717(0x230)],this[_0xfef717(0x258)],_0x347d6b),this[_0xfef717(0x228)](_0x347d6b);}[_0x527666(0x228)](_0x1dc096){const _0x1ca7b5=_0x527666,_0x1b82be=!_0x1dc096[_0x1ca7b5(0x1d9)][_0x1ca7b5(0x232)]&&_0x1dc096[_0x1ca7b5(0x1d9)][_0x1ca7b5(0x252)],_0x42b217=_0x1dc096[_0x1ca7b5(0x1ee)][_0x1ca7b5(0x252)],_0x150d13=_0x1dc096[_0x1ca7b5(0x217)][_0x1ca7b5(0x252)],_0x588222=_0x1dc096[_0x1ca7b5(0x21b)][_0x1ca7b5(0x256)]>0x0,_0xcfbf=_0x1dc096[_0x1ca7b5(0x1e7)]&&_0x1dc096[_0x1ca7b5(0x1e7)][_0x1ca7b5(0x256)]>0x0;this[_0x1ca7b5(0x223)][_0x1ca7b5(0x21e)]=_0x1b82be||_0x42b217||_0x150d13||_0x588222||_0xcfbf;}[_0x527666(0x1ff)](){const _0x4a570d=_0x527666;this[_0x4a570d(0x224)]({'tag':_0x4a570d(0x227),'attributes':{'class':[Uo,_0x4a570d(0x23b)]},'children':[{'tag':_0x4a570d(0x227),'attributes':{'class':Lo},'children':this[_0x4a570d(0x25e)]}]});}[_0x527666(0x243)](){const _0x47e8b5=_0x527666;this[_0x47e8b5(0x223)]['on'](_0x47e8b5(0x262),()=>{const _0x2c77bb=_0x47e8b5;this[_0x2c77bb(0x21d)]();});}[_0x527666(0x1f2)](_0x13289c){const _0x3999b2=_0x527666,_0x21dc91=new _0x16d464(_0x13289c);return _0x21dc91[_0x3999b2(0x24d)]({'label':_0x48740e(_0x13289c,_0x3999b2(0x221)),'class':yo+'\x20'+Ho,'icon':_0x49db0f,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x21dc91;}[_0x527666(0x213)](_0x30c115){const _0x1ea35a=_0x527666;return this[_0x1ea35a(0x1d3)](_0x30c115,No);}[_0x527666(0x22d)](_0x42f78f){const _0x3dc6b3=_0x527666,_0x2c2db6=this[_0x3dc6b3(0x1d3)](_0x42f78f,Xo);return this[_0x3dc6b3(0x1d4)](_0x2c2db6,_0x42f78f),_0x2c2db6;}[_0x527666(0x1ce)](_0x260b58,_0x1ac31e){const _0x42d677=_0x527666,_0x41c968={'searchInputVisibleFrom':_0x1ac31e[_0x42d677(0x1d8)],'onBackToContext':()=>{const _0x241b3b=_0x42d677;this[_0x241b3b(0x1de)](),this[_0x241b3b(0x230)][_0x241b3b(0x1d0)]({'target':this[_0x241b3b(0x223)][_0x241b3b(0x241)],'limiter':this[_0x241b3b(0x22f)](),'positions':zo});},'onResourceSelected':(_0x1ddb8f,_0x3d8c0a)=>{const _0x2db8f2=_0x42d677;this[_0x2db8f2(0x222)](_0x2db8f2(0x239),{'source':_0x1ddb8f,'resource':_0x3d8c0a});},'onLoadSourceResources':_0x5ccd3a=>{const _0x18b171=_0x42d677;this[_0x18b171(0x222)](_0x18b171(0x246),_0x5ccd3a);},'onBalloonClosed':()=>{const _0x1ec02d=_0x42d677;this[_0x1ec02d(0x223)][_0x1ec02d(0x264)]=!0x1;},'getLimiterElement':()=>this[_0x42d677(0x22f)](),'getTargetElement':()=>this[_0x42d677(0x223)][_0x42d677(0x241)]};return new _0x3bc001(_0x260b58,_0x1ac31e[_0x42d677(0x1dc)],_0x41c968);}[_0x527666(0x22f)](){const _0x368dac=_0x527666;return this[_0x368dac(0x241)]?.[_0x368dac(0x247)]('.'+qo)||document[_0x368dac(0x20b)];}[_0x527666(0x1d3)](_0x62ea67,_0x550dec){const _0x399eda=_0x527666,_0x2cfeee=new _0x523307(_0x62ea67);return _0x2cfeee[_0x399eda(0x20a)]({'attributes':{'class':_0x550dec}}),this[_0x399eda(0x1dc)][_0x399eda(0x25f)](_0x2cfeee),_0x2cfeee;}[_0x527666(0x1ef)](_0x584add,_0x32a208,_0x803afa){const _0x53e756=_0x527666;if(_0x584add[_0x53e756(0x1d6)][_0x53e756(0x1cc)](),!_0x803afa[_0x53e756(0x1d9)][_0x53e756(0x232)]&&_0x803afa[_0x53e756(0x1d9)][_0x53e756(0x252)]){const _0xd8366f=this[_0x53e756(0x23a)](_0x32a208,{'label':_0x48740e(_0x32a208,_0x53e756(0x250)),'icon':_0x3cba38});_0xd8366f['on'](_0x53e756(0x262),()=>{const _0x51b155=_0x53e756;this[_0x51b155(0x222)](_0x51b155(0x259)),this[_0x51b155(0x1e2)]();}),_0x584add[_0x53e756(0x1d6)][_0x53e756(0x25f)](_0xd8366f);}if(_0x803afa[_0x53e756(0x1ee)][_0x53e756(0x252)]){const _0xef2d60=this[_0x53e756(0x23a)](_0x32a208,{'label':_0x48740e(_0x32a208,_0x53e756(0x219)),'icon':_0x5f308c});_0xef2d60['on'](_0x53e756(0x262),()=>{const _0x23356a=_0x53e756;this[_0x23356a(0x1e2)](),this[_0x23356a(0x22e)](),this[_0x23356a(0x1fb)][_0x23356a(0x1d0)]({'target':this[_0x23356a(0x223)][_0x23356a(0x241)],'limiter':this[_0x23356a(0x22f)](),'positions':zo}),this[_0x23356a(0x1d7)][_0x23356a(0x248)]();}),_0x584add[_0x53e756(0x1d6)][_0x53e756(0x25f)](_0xef2d60);}if(_0x803afa[_0x53e756(0x217)][_0x53e756(0x252)]){const _0x4a817b=new _0x4fec57(_0x32a208);_0x4a817b[_0x53e756(0x24d)]({'label':_0x48740e(_0x32a208,_0x53e756(0x22c)),'icon':_0x1afc0f,'withText':!0x0,'tooltip':!0x0,'class':Do,'allowMultipleFiles':!0x0}),_0x4a817b['on'](_0x53e756(0x262),()=>{const _0x2cadec=_0x53e756;this[_0x2cadec(0x1e2)]();}),_0x4a817b['on'](_0x53e756(0x242),(_0x529c0a,_0x2fb353)=>{const _0x5c6db0=_0x53e756;this[_0x5c6db0(0x222)](_0x5c6db0(0x20c),_0x2fb353);}),_0x4a817b[_0x53e756(0x210)]=!0x0,_0x584add[_0x53e756(0x1d6)][_0x53e756(0x25f)](_0x4a817b);}for(const _0x459e77 of _0x803afa[_0x53e756(0x21b)]){const _0x46ea97=this[_0x53e756(0x23a)](_0x32a208,{'label':_0x459e77[_0x53e756(0x254)],'icon':_0x459e77[_0x53e756(0x1e0)]||_0x4eb70f,'type':_0x53e756(0x24c)});_0x584add[_0x53e756(0x1d6)][_0x53e756(0x25f)](_0x46ea97),_0x46ea97['on'](_0x53e756(0x262),()=>{const _0x12db72=_0x53e756;this[_0x12db72(0x1e2)](),this[_0x12db72(0x1da)]({'source':_0x459e77,'withBackButton':!this[_0x12db72(0x1f7)]});});}for(const _0x54d444 of _0x803afa[_0x53e756(0x1e7)]||[]){const _0x5edfff=this[_0x53e756(0x23a)](_0x32a208,{'label':_0x54d444[_0x53e756(0x254)],'icon':_0x54d444[_0x53e756(0x1e0)]||_0x4eb70f,'type':_0x53e756(0x22a)});_0x584add[_0x53e756(0x1d6)][_0x53e756(0x25f)](_0x5edfff),_0x5edfff['on'](_0x53e756(0x262),()=>{const _0x3f9211=_0x53e756;this[_0x3f9211(0x1e2)](),this[_0x3f9211(0x222)](_0x3f9211(0x1f1),_0x54d444);});}this[_0x53e756(0x1f7)]=0x1===_0x584add[_0x53e756(0x1d6)][_0x53e756(0x256)],this[_0x53e756(0x1d7)][_0x53e756(0x1fa)]=!this[_0x53e756(0x1f7)];}[_0x527666(0x1d4)](_0x21797f,_0x3ec3b8){const _0x292348=_0x527666;this[_0x292348(0x1d7)]=new _0x206585(_0x3ec3b8),this[_0x292348(0x1d7)]['on'](_0x292348(0x1f6),(_0x20b65a,_0x49c15f)=>{const _0x1ab8cc=_0x292348;this[_0x1ab8cc(0x208)](_0x49c15f);}),this[_0x292348(0x1d7)]['on'](_0x292348(0x1e9),()=>{const _0x396b51=_0x292348;this[_0x396b51(0x1fc)](),this[_0x396b51(0x1f7)]||(this[_0x396b51(0x1de)](),this[_0x396b51(0x230)][_0x396b51(0x1d0)]({'target':this[_0x396b51(0x223)][_0x396b51(0x241)],'limiter':this[_0x396b51(0x22f)](),'positions':zo}));}),this[_0x292348(0x1d7)]['on'](_0x292348(0x215),()=>{const _0x22a602=_0x292348;this[_0x22a602(0x1fb)][_0x22a602(0x245)]&&this[_0x22a602(0x1fb)][_0x22a602(0x1d0)]({'target':this[_0x22a602(0x223)][_0x22a602(0x241)],'limiter':this[_0x22a602(0x22f)](),'positions':zo});}),_0x21797f[_0x292348(0x1d6)][_0x292348(0x25f)](this[_0x292348(0x1d7)]);}[_0x527666(0x23a)](_0x55be6d,_0x565826){const _0x2e56be=_0x527666,_0x50c850=_0x2e56be(0x24c)===_0x565826[_0x2e56be(0x25d)]?new SourcesBalloonButtonView(_0x55be6d):new _0x16d464(_0x55be6d);return _0x50c850[_0x2e56be(0x24d)]({'label':_0x565826[_0x2e56be(0x254)],'icon':_0x565826[_0x2e56be(0x1e0)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Do}),_0x50c850;}[_0x527666(0x236)](){const _0x574436=_0x527666;this[_0x574436(0x23c)](),this[_0x574436(0x1ed)]();}[_0x527666(0x1ed)](){const _0x2249e9=_0x527666;_0x36b9b8({'emitter':this[_0x2249e9(0x1fb)],'contextElements':[this[_0x2249e9(0x1fb)][_0x2249e9(0x241)]],'callback':()=>{const _0x2708dc=_0x2249e9;this[_0x2708dc(0x1fc)]();},'activator':()=>this[_0x2249e9(0x1fb)][_0x2249e9(0x245)]});}[_0x527666(0x261)](_0x330396){const _0x1c29bd=_0x527666,_0x181801=this[_0x1c29bd(0x24b)];_0x181801[_0x1c29bd(0x251)][_0x1c29bd(0x264)]=_0x330396,_0x330396?_0x181801[_0x1c29bd(0x25a)][_0x1c29bd(0x249)]():_0x181801[_0x1c29bd(0x25a)][_0x1c29bd(0x231)]();}[_0x527666(0x23c)](){const _0x16e3de=_0x527666,{balloonView:_0x273f06,buttonView:_0x6be56f,hideMethod:_0x484d11}=this[_0x16e3de(0x24b)];_0x36b9b8({'emitter':_0x273f06,'contextElements':[_0x273f06[_0x16e3de(0x241)],_0x6be56f[_0x16e3de(0x241)]],'callback':()=>{_0x484d11();},'activator':()=>_0x6be56f[_0x16e3de(0x264)]&&!this[_0x16e3de(0x1fb)][_0x16e3de(0x245)]&&!this[_0x16e3de(0x205)][_0x16e3de(0x201)]()});}[_0x527666(0x21f)](_0x36d036,_0x22eb04,_0x4062fb=!0x1,_0x49afd4=!0x1){const _0x158f22=_0x527666,_0x182242=_0x158f22(0x1e3)===_0x22eb04||!0x0===_0x36d036[_0x158f22(0x214)],_0x165429=new _0x57fd14(this[_0x158f22(0x258)],_0x36d036,_0x182242,_0x4062fb,_0x49afd4);return _0x182242||_0x165429['on'](_0x158f22(0x226),()=>{const _0xb169ab=_0x158f22;this[_0xb169ab(0x222)](_0xb169ab(0x1fe),_0x165429['id']);}),_0x165429;}[_0x527666(0x220)](_0x228b4e,_0x42d448){const _0x1c50e9=_0x527666;_0x42d448[_0x1c50e9(0x25f)](_0x228b4e,0x0);}[_0x527666(0x22b)](_0x333348,_0x10ba57){const _0x4a507b=_0x527666,_0x3aca12=_0x10ba57[_0x4a507b(0x207)](_0x468185=>_0x468185['id']===_0x333348);_0x3aca12&&_0x10ba57[_0x4a507b(0x1df)](_0x3aca12);}[_0x527666(0x21d)](){const _0x38b9f4=_0x527666;this[_0x38b9f4(0x223)][_0x38b9f4(0x264)]?this[_0x38b9f4(0x1e2)]():(this[_0x38b9f4(0x1de)](),this[_0x38b9f4(0x230)][_0x38b9f4(0x1d0)]({'target':this[_0x38b9f4(0x223)][_0x38b9f4(0x241)],'limiter':this[_0x38b9f4(0x22f)](),'positions':zo}),this[_0x38b9f4(0x1f7)]&&this[_0x38b9f4(0x230)][_0x38b9f4(0x1d6)][_0x38b9f4(0x1db)](0x0)?.[_0x38b9f4(0x222)](_0x38b9f4(0x262)));}[_0x527666(0x208)](_0x25cd13){const _0x25ed45=_0x527666;this[_0x25ed45(0x1d7)][_0x25ed45(0x1cc)](),this[_0x25ed45(0x1fc)](),this[_0x25ed45(0x222)](_0x25ed45(0x202),_0x25cd13);}}export class SourcesBalloonButtonView extends _0x16d464{[_0x527666(0x1ec)];constructor(_0x4af8e3){const _0x50f717=_0x527666;super(_0x4af8e3),this[_0x50f717(0x24d)]({'withText':!0x0,'role':_0x50f717(0x1cd)}),this[_0x50f717(0x1ec)]=this[_0x50f717(0x1e5)](),this[_0x50f717(0x20a)]({'attributes':{'class':[$o]}});}[_0x527666(0x1e1)](){const _0xf285b7=_0x527666;super[_0xf285b7(0x1e1)](),this[_0xf285b7(0x234)][_0xf285b7(0x25f)](this[_0xf285b7(0x1ec)]);}[_0x527666(0x1e5)](){const _0x8a3285=_0x527666,_0x584a4e=new _0x35ce79();return _0x584a4e[_0x8a3285(0x1d6)]=_0x18e363,_0x584a4e[_0x8a3285(0x20a)]({'attributes':{'class':$o+_0x8a3285(0x1e4)}}),_0x584a4e;}}
|
|
23
|
+
const _0x59748d=_0x58c6;function _0x5086(){const _0x44958c=['AI_CHAT_CONTEXT_FILE_LABEL','pin','ck-ai-chat-controls_context_show-more-button','element','done','showSourceResourcesBalloon','isAnyResourceBalloonVisible','_createUrlBalloonPanelView','isReadOnly','fire','updateResourceState','ck-ai-chat-context-controls__add-context-balloon-panel','319896DxIqiH','show','_handleUrlSubmit','ck-ai-chat','addUrlToContext','render','ck-ai-chat-context-controls','_resourcesBalloonView','addContextButtonView','tooltip','ck-ai-chat-context-controls__pending-contexts','southArrowNorthWest','source','_setupAddContextBalloonClickOutsideHandler','get','280695bazWMc','_getLimiterElement','removeContextItemChip','isEnabled','setTemplate','add','_overflowManager','removeContextItem','ck-ai-chat-context-controls__url-balloon-panel','addFileToContext','_setupAllBalloonClickOutsideHandlers','northArrowSouth','_hasExactlyOneSource','find','northArrowSouthEast','length','createCollection','menuitem','hide','extendTemplate','showUrlBalloonPanel','isLoading','_showSourceResourcesBalloon','_handleAddContextButtonClick','setAddContextOptions','12QuCkUY','setContextItemLoading','closeSourceResourceBalloon','isVisible','hideAddContextBalloonPanel','customItem','_currentContextsChips','label','_bindEventHandlers','northArrowSouthWest','ck-ai-chat-context-controls__balloon-button-source','_conversationContextsChips','ck-ai-chat-context-controls__add-context-button','_addContextBalloonConfig','reorganizeChips','_setupTemplate','_setAddContextButtonEnabled','ck-ai-chat-context-controls__balloon-button','document','_createBalloonButton','4tOZoZB','showAddContextBalloonPanel','addDocumentToContext','12615570PBTLon','setContainerElement','refreshBalloon','clear','cancel','_createBaseBalloonPanel','addResourceToContext','2220654uSQKBM','current','__arrow','198lYjItn','_urlInputView','withBackButton','overflowChips','southArrowNorthEast','_setBalloonPanelContent','clearCurrentContextItems','body','content','bind','_createResourcesBalloonView','_addUrlContent','searchInputVisibleFrom','_addContextBalloonPanelView','destroy','6CpYNtr','AI_CHAT_CONTEXT_ADD_CONTEXT','ck-ai-chat-context-controls__show-more-balloon-panel','execute','clearConversationContextItems','children','_addContextToCollection','8108248bPaIhf','southArrowNorth','hideUrlBalloonPanel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','AI_CHAT_CONTEXT_URL_LABEL','_createArrowView','urls','closest','locale','setConversationContext','_removeContextFromCollection','enabled','focus','_urlBalloonPanelView','buttonView','customItems','defaultPositions','set','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-chips-wrapper-balloon','conversation','62366xyMBWc','sources','isOn','9WKMLzL','icon','addContextItem','bodyCollection','_createContextButton','ck-ai-chat-controls-button','type','ck-reset_all-excluded','balloonView','3070739rfPGqM','_toggleAddContextBalloon','remove','isHidden','_createAddContextButtonView','_createAddContextBalloonPanelView','executeCustomItemCallback','submitUrl','files','div','loadSourceResources','populateSourceResourceBalloon','arrowView'];_0x5086=function(){return _0x44958c;};return _0x5086();}(function(_0x1c33f3,_0x500a6f){const _0xf75fd7=_0x58c6,_0x5585d6=_0x1c33f3();while(!![]){try{const _0x598bd9=-parseInt(_0xf75fd7(0x1f8))/0x1+-parseInt(_0xf75fd7(0x1c0))/0x2*(-parseInt(_0xf75fd7(0x1ca))/0x3)+parseInt(_0xf75fd7(0x1ac))/0x4*(-parseInt(_0xf75fd7(0x193))/0x5)+-parseInt(_0xf75fd7(0x1dc))/0x6*(-parseInt(_0xf75fd7(0x16b))/0x7)+-parseInt(_0xf75fd7(0x1e3))/0x8*(-parseInt(_0xf75fd7(0x162))/0x9)+-parseInt(_0xf75fd7(0x1c3))/0xa+parseInt(_0xf75fd7(0x1cd))/0xb*(-parseInt(_0xf75fd7(0x184))/0xc);if(_0x598bd9===_0x500a6f)break;else _0x5585d6['push'](_0x5585d6['shift']());}catch(_0x5909c4){_0x5585d6['push'](_0x5585d6['shift']());}}}(_0x5086,0xea7cc));import{BalloonPanelView as _0xb11eb8,ButtonView as _0x472432,clickOutsideHandler as _0x413bd1,FileDialogButtonView as _0x22554e,IconView as _0x16b6bc,View as _0x55bd1d}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x2fc908,IconDocument as _0x5bc856,IconDocumentOutline as _0x29b33d,IconDropdownArrow as _0x293270,IconLink as _0x1829b8,IconPaperClip as _0x5f2a49}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2657df}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x58579e}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x162730}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x37e344}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2dd124}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x59748d(0x1c2),_0x59748d(0x19c),_0x59748d(0x188),_0x59748d(0x1c9),_0x59748d(0x19a),_0x59748d(0x175),_0x59748d(0x171)];function _0x58c6(_0x141cf4,_0x20e939){const _0x5086c5=_0x5086();return _0x58c6=function(_0x58c63c,_0x206431){_0x58c63c=_0x58c63c-0x161;let _0x117ba3=_0x5086c5[_0x58c63c];return _0x117ba3;},_0x58c6(_0x141cf4,_0x20e939);}const Ro=_0x59748d(0x18a),Oo=_0x59748d(0x18e),Uo=_0x59748d(0x183),Lo=_0x59748d(0x1b8),No=_0x59748d(0x19b),Mo=_0x59748d(0x1bd),Ho=_0x59748d(0x1b6),jo=_0x59748d(0x167),Fo=_0x59748d(0x1f6),Xo=_0x59748d(0x17a),yo=_0x59748d(0x1de),Do=_0x59748d(0x187),$o=[_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x1b5)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x19e)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x1a1)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x18f)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x1e4)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x1d1)]];export class AIChatContextPanelView extends _0x55bd1d{[_0x59748d(0x18c)];[_0x59748d(0x1b2)]=this[_0x59748d(0x1a3)]();[_0x59748d(0x1b7)]=this[_0x59748d(0x1a3)]();[_0x59748d(0x199)];[_0x59748d(0x1da)];[_0x59748d(0x1f0)];[_0x59748d(0x1ce)];[_0x59748d(0x18b)];[_0x59748d(0x1b9)];[_0x59748d(0x19f)]=!0x1;[_0x59748d(0x165)];constructor(_0x1d94f2,_0x503fe7){const _0x48099e=_0x59748d;super(_0x1d94f2),this[_0x48099e(0x165)]=_0x503fe7[_0x48099e(0x165)],this[_0x48099e(0x1b2)]=this[_0x48099e(0x1a3)](),this[_0x48099e(0x1b7)]=this[_0x48099e(0x1a3)](),this[_0x48099e(0x18c)]=this[_0x48099e(0x16f)](_0x1d94f2),this[_0x48099e(0x1da)]=this[_0x48099e(0x170)](_0x1d94f2),this[_0x48099e(0x1f0)]=this[_0x48099e(0x17f)](_0x1d94f2),this[_0x48099e(0x18b)]=this[_0x48099e(0x1d7)](_0x1d94f2,_0x503fe7);const _0xeccae1={'cssClasses':{'showMoreButton':Xo,'showMoreBalloon':yo,'overflowContainer':Fo,'controlsButton':jo}};this[_0x48099e(0x199)]=new _0x162730(_0x1d94f2,this[_0x48099e(0x1b2)],_0xeccae1,this[_0x48099e(0x165)],this),this[_0x48099e(0x1b9)]={'buttonView':this[_0x48099e(0x18c)],'balloonView':this[_0x48099e(0x1da)],'hideMethod':this[_0x48099e(0x1b0)][_0x48099e(0x1d6)](this),'showMethod':this[_0x48099e(0x1c1)][_0x48099e(0x1d6)](this)},this[_0x48099e(0x1bb)](),this[_0x48099e(0x1b4)]();}[_0x59748d(0x189)](){const _0x38b249=_0x59748d;super[_0x38b249(0x189)](),this[_0x38b249(0x19d)](),this[_0x38b249(0x199)][_0x38b249(0x1c4)](this[_0x38b249(0x17b)]),this[_0x38b249(0x199)][_0x38b249(0x1ba)]();}[_0x59748d(0x1db)](){const _0x453307=_0x59748d;super[_0x453307(0x1db)](),this[_0x453307(0x199)][_0x453307(0x1db)](),this[_0x453307(0x18b)][_0x453307(0x1db)]();}[_0x59748d(0x164)](_0x3a383e,_0x45f6ca){const _0x3a5927=_0x59748d,_0x3e4d3c=this[_0x3a5927(0x166)](_0x3a383e,_0x3a5927(0x1cb),!0x0,_0x45f6ca);this[_0x3a5927(0x1e2)](_0x3e4d3c,this[_0x3a5927(0x1b2)]),this[_0x3a5927(0x199)][_0x3a5927(0x1ba)]();}[_0x59748d(0x19a)](_0x279ae3){const _0x2767c8=_0x59748d;this[_0x2767c8(0x1ed)](_0x279ae3,this[_0x2767c8(0x1b2)]),this[_0x2767c8(0x1ed)](_0x279ae3,this[_0x2767c8(0x199)][_0x2767c8(0x1d0)]),this[_0x2767c8(0x199)][_0x2767c8(0x1ba)]();}[_0x59748d(0x1ad)](_0x5970e0,_0x5117b9){const _0x27d16b=_0x59748d;let _0x262579=this[_0x27d16b(0x1b2)][_0x27d16b(0x1a0)](_0xb91982=>_0xb91982['id']===_0x5970e0);_0x262579||(_0x262579=this[_0x27d16b(0x199)][_0x27d16b(0x1d0)][_0x27d16b(0x1a0)](_0x22e4d8=>_0x22e4d8['id']===_0x5970e0)),_0x262579&&(_0x262579[_0x27d16b(0x1a8)]=_0x5117b9);}[_0x59748d(0x1ec)](_0x582e72){const _0x1d1641=_0x59748d;this[_0x1d1641(0x1b7)][_0x1d1641(0x1c6)]();for(const _0x17cdb6 of _0x582e72){const _0xaed873=this[_0x1d1641(0x166)](_0x17cdb6,_0x1d1641(0x1f7),!0x1,!0x1);this[_0x1d1641(0x1e2)](_0xaed873,this[_0x1d1641(0x1b7)]);}}[_0x59748d(0x1d3)](){const _0x1f6a84=_0x59748d;this[_0x1f6a84(0x1b2)][_0x1f6a84(0x1c6)](),this[_0x1f6a84(0x199)][_0x1f6a84(0x1c6)]();}[_0x59748d(0x1e0)](){const _0x5079fb=_0x59748d;this[_0x5079fb(0x1b7)][_0x5079fb(0x1c6)]();}[_0x59748d(0x182)](_0x1269d4,_0x3f77a2,_0x8abd08){const _0x27188a=_0x59748d;this[_0x27188a(0x18b)][_0x27188a(0x182)](_0x1269d4,_0x3f77a2,_0x8abd08);}[_0x59748d(0x1b0)](){const _0x34b710=_0x59748d;this[_0x34b710(0x16c)](!0x1);}[_0x59748d(0x1c1)](){const _0xe98020=_0x59748d;this[_0xe98020(0x16c)](!0x0);}[_0x59748d(0x1e5)](){const _0x5b366c=_0x59748d;this[_0x5b366c(0x1f0)][_0x5b366c(0x1a5)](),this[_0x5b366c(0x18c)][_0x5b366c(0x161)]=!0x1,this[_0x5b366c(0x1ce)]&&this[_0x5b366c(0x1ce)][_0x5b366c(0x1c6)]();}[_0x59748d(0x1a7)](){const _0x5a8691=_0x59748d;this[_0x5a8691(0x1f0)][_0x5a8691(0x185)](),this[_0x5a8691(0x18c)][_0x5a8691(0x161)]=!0x0;}[_0x59748d(0x1a9)]({source:_0x672d7e,withBackButton:_0x52ac00}){const _0x132ac5=_0x59748d;this[_0x132ac5(0x18b)][_0x132ac5(0x17d)]({'source':_0x672d7e,'withBackButton':_0x52ac00}),this[_0x132ac5(0x18c)][_0x132ac5(0x161)]=!0x0;}[_0x59748d(0x176)](_0x5dc8a8,_0x45394f,_0xbf4715,_0x72d5a3){const _0x5268e3=_0x59748d;this[_0x5268e3(0x18b)][_0x5268e3(0x176)](_0x5dc8a8,_0xbf4715,_0x72d5a3);}[_0x59748d(0x1ae)](_0x19b827){const _0x1ff1a6=_0x59748d;this[_0x1ff1a6(0x18b)][_0x1ff1a6(0x1ae)](_0x19b827),this[_0x1ff1a6(0x18c)][_0x1ff1a6(0x161)]=!0x1;}[_0x59748d(0x1ab)](_0x19e96a){const _0x2a00c9=_0x59748d;this[_0x2a00c9(0x1d2)](this[_0x2a00c9(0x1da)],this[_0x2a00c9(0x1eb)],_0x19e96a),this[_0x2a00c9(0x1bc)](_0x19e96a);}[_0x59748d(0x1bc)](_0x28fee5){const _0x2bc13f=_0x59748d,_0x41c75b=!_0x28fee5[_0x2bc13f(0x1be)][_0x2bc13f(0x16e)]&&_0x28fee5[_0x2bc13f(0x1be)][_0x2bc13f(0x1ee)],_0x324160=_0x28fee5[_0x2bc13f(0x1e9)][_0x2bc13f(0x1ee)],_0x265d76=_0x28fee5[_0x2bc13f(0x173)][_0x2bc13f(0x1ee)],_0x3887ef=_0x28fee5[_0x2bc13f(0x1f9)][_0x2bc13f(0x1a2)]>0x0,_0x3d4f4f=_0x28fee5[_0x2bc13f(0x1f2)]&&_0x28fee5[_0x2bc13f(0x1f2)][_0x2bc13f(0x1a2)]>0x0;this[_0x2bc13f(0x18c)][_0x2bc13f(0x196)]=_0x41c75b||_0x324160||_0x265d76||_0x3887ef||_0x3d4f4f;}[_0x59748d(0x1bb)](){const _0x195807=_0x59748d;this[_0x195807(0x197)]({'tag':_0x195807(0x174),'attributes':{'class':[Ro,_0x195807(0x169)]},'children':[{'tag':_0x195807(0x174),'attributes':{'class':Oo},'children':this[_0x195807(0x1b2)]}]});}[_0x59748d(0x1b4)](){const _0x2f11da=_0x59748d;this[_0x2f11da(0x18c)]['on'](_0x2f11da(0x1df),()=>{const _0x3ef375=_0x2f11da;this[_0x3ef375(0x1aa)]();});}[_0x59748d(0x16f)](_0x2335ba){const _0xd6a9aa=_0x59748d,_0x532918=new _0x472432(_0x2335ba);return _0x532918[_0xd6a9aa(0x1f4)]({'label':_0x37e344(_0x2335ba,_0xd6a9aa(0x1dd)),'class':jo+'\x20'+Lo,'icon':_0x5f2a49,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x532918;}[_0x59748d(0x170)](_0xb3d03f){const _0x4ab3f3=_0x59748d;return this[_0x4ab3f3(0x1c8)](_0xb3d03f,Uo);}[_0x59748d(0x17f)](_0x5a0903){const _0x267fdd=_0x59748d,_0x2ef296=this[_0x267fdd(0x1c8)](_0x5a0903,No);return this[_0x267fdd(0x1d8)](_0x2ef296,_0x5a0903),_0x2ef296;}[_0x59748d(0x1d7)](_0x1c9042,_0x51ce0e){const _0x6197b4=_0x59748d,_0x4c589f={'searchInputVisibleFrom':_0x51ce0e[_0x6197b4(0x1d9)],'onBackToContext':()=>{const _0x118d7d=_0x6197b4;this[_0x118d7d(0x1c1)](),this[_0x118d7d(0x1da)][_0x118d7d(0x179)]({'target':this[_0x118d7d(0x18c)][_0x118d7d(0x17b)],'limiter':this[_0x118d7d(0x194)](),'positions':$o});},'onResourceSelected':(_0x4dd6e8,_0x199796)=>{const _0xafa920=_0x6197b4;this[_0xafa920(0x181)](_0xafa920(0x1c9),{'source':_0x4dd6e8,'resource':_0x199796});},'onLoadSourceResources':_0x13b0e8=>{const _0x2fd4b5=_0x6197b4;this[_0x2fd4b5(0x181)](_0x2fd4b5(0x175),_0x13b0e8);},'onBalloonClosed':()=>{const _0x2169ce=_0x6197b4;this[_0x2169ce(0x18c)][_0x2169ce(0x161)]=!0x1;},'getLimiterElement':()=>this[_0x6197b4(0x194)](),'getTargetElement':()=>this[_0x6197b4(0x18c)][_0x6197b4(0x17b)]};return new _0x2dd124(_0x1c9042,_0x51ce0e[_0x6197b4(0x165)],_0x4c589f);}[_0x59748d(0x194)](){const _0x33ad09=_0x59748d;return this[_0x33ad09(0x17b)]?.[_0x33ad09(0x1ea)]('.'+Do)||document[_0x33ad09(0x1d4)];}[_0x59748d(0x1c8)](_0x259534,_0x31ac78){const _0x2bbdfd=_0x59748d,_0x2b073e=new _0xb11eb8(_0x259534);return _0x2b073e[_0x2bbdfd(0x1a6)]({'attributes':{'class':_0x31ac78}}),this[_0x2bbdfd(0x165)][_0x2bbdfd(0x198)](_0x2b073e),_0x2b073e;}[_0x59748d(0x1d2)](_0x55a1d3,_0x4d6f42,_0x19d67d){const _0x542afc=_0x59748d;if(_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x1c6)](),!_0x19d67d[_0x542afc(0x1be)][_0x542afc(0x16e)]&&_0x19d67d[_0x542afc(0x1be)][_0x542afc(0x1ee)]){const _0xc28543=this[_0x542afc(0x1bf)](_0x4d6f42,{'label':_0x37e344(_0x4d6f42,_0x542afc(0x1e6)),'icon':_0x5bc856});_0xc28543['on'](_0x542afc(0x1df),()=>{const _0x439317=_0x542afc;this[_0x439317(0x181)](_0x439317(0x1c2)),this[_0x439317(0x1b0)]();}),_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0xc28543);}if(_0x19d67d[_0x542afc(0x1e9)][_0x542afc(0x1ee)]){const _0x5b7e12=this[_0x542afc(0x1bf)](_0x4d6f42,{'label':_0x37e344(_0x4d6f42,_0x542afc(0x1e7)),'icon':_0x1829b8});_0x5b7e12['on'](_0x542afc(0x1df),()=>{const _0x34fd0f=_0x542afc;this[_0x34fd0f(0x1b0)](),this[_0x34fd0f(0x1a7)](),this[_0x34fd0f(0x1f0)][_0x34fd0f(0x179)]({'target':this[_0x34fd0f(0x18c)][_0x34fd0f(0x17b)],'limiter':this[_0x34fd0f(0x194)](),'positions':$o}),this[_0x34fd0f(0x1ce)][_0x34fd0f(0x1ef)]();}),_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0x5b7e12);}if(_0x19d67d[_0x542afc(0x173)][_0x542afc(0x1ee)]){const _0x3ac099=new _0x22554e(_0x4d6f42);_0x3ac099[_0x542afc(0x1f4)]({'label':_0x37e344(_0x4d6f42,_0x542afc(0x178)),'icon':_0x2fc908,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x3ac099['on'](_0x542afc(0x1df),()=>{const _0x16aa60=_0x542afc;this[_0x16aa60(0x1b0)]();}),_0x3ac099['on'](_0x542afc(0x17c),(_0x43a50d,_0x152b13)=>{const _0x791086=_0x542afc;this[_0x791086(0x181)](_0x791086(0x19c),_0x152b13);}),_0x3ac099[_0x542afc(0x18d)]=!0x0,_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0x3ac099);}for(const _0x405c55 of _0x19d67d[_0x542afc(0x1f9)]){const _0x1ac404=this[_0x542afc(0x1bf)](_0x4d6f42,{'label':_0x405c55[_0x542afc(0x1b3)],'icon':_0x405c55[_0x542afc(0x163)]||_0x29b33d,'type':_0x542afc(0x190)});_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0x1ac404),_0x1ac404['on'](_0x542afc(0x1df),()=>{const _0x479bff=_0x542afc;this[_0x479bff(0x1b0)](),this[_0x479bff(0x1a9)]({'source':_0x405c55,'withBackButton':!this[_0x479bff(0x19f)]});});}for(const _0x57188e of _0x19d67d[_0x542afc(0x1f2)]||[]){const _0x3e47d1=this[_0x542afc(0x1bf)](_0x4d6f42,{'label':_0x57188e[_0x542afc(0x1b3)],'icon':_0x57188e[_0x542afc(0x163)]||_0x29b33d,'type':_0x542afc(0x1b1)});_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0x3e47d1),_0x3e47d1['on'](_0x542afc(0x1df),()=>{const _0xab4637=_0x542afc;this[_0xab4637(0x1b0)](),this[_0xab4637(0x181)](_0xab4637(0x171),_0x57188e);});}this[_0x542afc(0x19f)]=0x1===_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x1a2)],this[_0x542afc(0x1ce)][_0x542afc(0x1cf)]=!this[_0x542afc(0x19f)];}[_0x59748d(0x1d8)](_0x5ed389,_0x48eb0a){const _0x483e92=_0x59748d;this[_0x483e92(0x1ce)]=new _0x58579e(_0x48eb0a),this[_0x483e92(0x1ce)]['on'](_0x483e92(0x172),(_0xa69432,_0x34e7c6)=>{const _0x4520e4=_0x483e92;this[_0x4520e4(0x186)](_0x34e7c6);}),this[_0x483e92(0x1ce)]['on'](_0x483e92(0x1c7),()=>{const _0x597be3=_0x483e92;this[_0x597be3(0x1e5)](),this[_0x597be3(0x19f)]||(this[_0x597be3(0x1c1)](),this[_0x597be3(0x1da)][_0x597be3(0x179)]({'target':this[_0x597be3(0x18c)][_0x597be3(0x17b)],'limiter':this[_0x597be3(0x194)](),'positions':$o}));}),this[_0x483e92(0x1ce)]['on'](_0x483e92(0x1c5),()=>{const _0x29ef63=_0x483e92;this[_0x29ef63(0x1f0)][_0x29ef63(0x1af)]&&this[_0x29ef63(0x1f0)][_0x29ef63(0x179)]({'target':this[_0x29ef63(0x18c)][_0x29ef63(0x17b)],'limiter':this[_0x29ef63(0x194)](),'positions':$o});}),_0x5ed389[_0x483e92(0x1d5)][_0x483e92(0x198)](this[_0x483e92(0x1ce)]);}[_0x59748d(0x1bf)](_0x5de837,_0x24cfc1){const _0x56d414=_0x59748d,_0x34acf1=_0x56d414(0x190)===_0x24cfc1[_0x56d414(0x168)]?new SourcesBalloonButtonView(_0x5de837):new _0x472432(_0x5de837);return _0x34acf1[_0x56d414(0x1f4)]({'label':_0x24cfc1[_0x56d414(0x1b3)],'icon':_0x24cfc1[_0x56d414(0x163)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x34acf1;}[_0x59748d(0x19d)](){const _0x4e5f84=_0x59748d;this[_0x4e5f84(0x191)](),this[_0x4e5f84(0x1f5)]();}[_0x59748d(0x1f5)](){const _0x3acc7f=_0x59748d;_0x413bd1({'emitter':this[_0x3acc7f(0x1f0)],'contextElements':[this[_0x3acc7f(0x1f0)][_0x3acc7f(0x17b)]],'callback':()=>{const _0xf56ac9=_0x3acc7f;this[_0xf56ac9(0x1e5)]();},'activator':()=>this[_0x3acc7f(0x1f0)][_0x3acc7f(0x1af)]});}[_0x59748d(0x16c)](_0x51e617){const _0x561a7e=_0x59748d,_0x5dfe04=this[_0x561a7e(0x1b9)];_0x5dfe04[_0x561a7e(0x1f1)][_0x561a7e(0x161)]=_0x51e617,_0x51e617?_0x5dfe04[_0x561a7e(0x16a)][_0x561a7e(0x185)]():_0x5dfe04[_0x561a7e(0x16a)][_0x561a7e(0x1a5)]();}[_0x59748d(0x191)](){const _0x3d805d=_0x59748d,{balloonView:_0x39ab54,buttonView:_0x395e06,hideMethod:_0x4e5f35}=this[_0x3d805d(0x1b9)];_0x413bd1({'emitter':_0x39ab54,'contextElements':[_0x39ab54[_0x3d805d(0x17b)],_0x395e06[_0x3d805d(0x17b)]],'callback':()=>{_0x4e5f35();},'activator':()=>_0x395e06[_0x3d805d(0x161)]&&!this[_0x3d805d(0x1f0)][_0x3d805d(0x1af)]&&!this[_0x3d805d(0x18b)][_0x3d805d(0x17e)]()});}[_0x59748d(0x166)](_0x27f2dc,_0x2fa1af,_0x1091b0=!0x1,_0x2c3f9e=!0x1){const _0x5b4359=_0x59748d,_0x418dd3=_0x5b4359(0x1f7)===_0x2fa1af||!0x0===_0x27f2dc[_0x5b4359(0x180)],_0x15c3ee=new _0x2657df(this[_0x5b4359(0x1eb)],_0x27f2dc,_0x418dd3,_0x1091b0,_0x2c3f9e);return _0x418dd3||_0x15c3ee['on'](_0x5b4359(0x195),()=>{const _0x125151=_0x5b4359;this[_0x125151(0x181)](_0x125151(0x19a),_0x15c3ee['id']);}),_0x15c3ee;}[_0x59748d(0x1e2)](_0x1885a4,_0x8dbd19){const _0x15fce4=_0x59748d;_0x8dbd19[_0x15fce4(0x198)](_0x1885a4,0x0);}[_0x59748d(0x1ed)](_0x20e495,_0x527a7b){const _0x491c35=_0x59748d,_0x30e67a=_0x527a7b[_0x491c35(0x1a0)](_0x342b07=>_0x342b07['id']===_0x20e495);_0x30e67a&&_0x527a7b[_0x491c35(0x16d)](_0x30e67a);}[_0x59748d(0x1aa)](){const _0x405878=_0x59748d;this[_0x405878(0x18c)][_0x405878(0x161)]?this[_0x405878(0x1b0)]():(this[_0x405878(0x1c1)](),this[_0x405878(0x1da)][_0x405878(0x179)]({'target':this[_0x405878(0x18c)][_0x405878(0x17b)],'limiter':this[_0x405878(0x194)](),'positions':$o}),this[_0x405878(0x19f)]&&this[_0x405878(0x1da)][_0x405878(0x1d5)][_0x405878(0x192)](0x0)?.[_0x405878(0x181)](_0x405878(0x1df)));}[_0x59748d(0x186)](_0x381460){const _0x4ba9b8=_0x59748d;this[_0x4ba9b8(0x1ce)][_0x4ba9b8(0x1c6)](),this[_0x4ba9b8(0x1e5)](),this[_0x4ba9b8(0x181)](_0x4ba9b8(0x188),_0x381460);}}export class SourcesBalloonButtonView extends _0x472432{[_0x59748d(0x177)];constructor(_0x4955b3){const _0x3c2187=_0x59748d;super(_0x4955b3),this[_0x3c2187(0x1f4)]({'withText':!0x0,'role':_0x3c2187(0x1a4)}),this[_0x3c2187(0x177)]=this[_0x3c2187(0x1e8)](),this[_0x3c2187(0x1a6)]({'attributes':{'class':[Ho]}});}[_0x59748d(0x189)](){const _0x360822=_0x59748d;super[_0x360822(0x189)](),this[_0x360822(0x1e1)][_0x360822(0x198)](this[_0x360822(0x177)]);}[_0x59748d(0x1e8)](){const _0x28774c=_0x59748d,_0x4865b0=new _0x16b6bc();return _0x4865b0[_0x28774c(0x1d5)]=_0x293270,_0x4865b0[_0x28774c(0x1a6)]({'attributes':{'class':Ho+_0x28774c(0x1cc)}}),_0x4865b0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x33da45=_0x17a7;(function(_0xd6828c,_0x321a7f){const _0x4fa424=_0x17a7,_0x2333cf=_0xd6828c();while(!![]){try{const _0x2382e1=parseInt(_0x4fa424(0x1fa))/0x1*(-parseInt(_0x4fa424(0x208))/0x2)+parseInt(_0x4fa424(0x1dd))/0x3*(parseInt(_0x4fa424(0x1f2))/0x4)+parseInt(_0x4fa424(0x1c2))/0x5*(parseInt(_0x4fa424(0x1b6))/0x6)+parseInt(_0x4fa424(0x1f0))/0x7+-parseInt(_0x4fa424(0x1c1))/0x8+-parseInt(_0x4fa424(0x1c3))/0x9+-parseInt(_0x4fa424(0x204))/0xa*(parseInt(_0x4fa424(0x1d8))/0xb);if(_0x2382e1===_0x321a7f)break;else _0x2333cf['push'](_0x2333cf['shift']());}catch(_0x12a6b4){_0x2333cf['push'](_0x2333cf['shift']());}}}(_0xfab6,0xccfe4));import{Collection as _0x816b8}from'ckeditor5/src/utils.js';import{IconAI as _0x31d228,IconBulb as _0x25bdd4,IconWeb as _0x152487}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x32617f,ButtonLabelView as _0x38ff7b,ButtonView as _0x329f5e,createDropdown as _0x584b18,IconView as _0x3d2978,UIModel as _0x2f41fb,View as _0x1f251e}from'ckeditor5/src/ui.js';import{getTranslation as _0x357284}from'../../../aicore/utils/common-translations.js';const Yo=_0x33da45(0x20b),yo=_0x33da45(0x20e),Jo=_0x33da45(0x20f),Ko=_0x33da45(0x214),Qo=_0x33da45(0x1cb),Zo=_0x33da45(0x1ea),tl=_0x33da45(0x203),el=_0x33da45(0x1ca),il='n';function _0x17a7(_0x5d0d76,_0x9034ef){const _0xfab697=_0xfab6();return _0x17a7=function(_0x17a76b,_0x4e783a){_0x17a76b=_0x17a76b-0x1b2;let _0x14700c=_0xfab697[_0x17a76b];return _0x14700c;},_0x17a7(_0x5d0d76,_0x9034ef);}export class AIChatPromptCapabilitiesView extends _0x1f251e{[_0x33da45(0x1db)];[_0x33da45(0x1bc)];[_0x33da45(0x1bd)];[_0x33da45(0x202)];[_0x33da45(0x1b4)];[_0x33da45(0x1de)];constructor(_0x49d78b){const _0x1e9343=_0x33da45;super(_0x49d78b),this[_0x1e9343(0x1b8)](_0x1e9343(0x1ec),!0x1),this[_0x1e9343(0x1b8)](_0x1e9343(0x1da),!0x1),this[_0x1e9343(0x1b8)](_0x1e9343(0x1e5),_0x1e9343(0x1f1)),this[_0x1e9343(0x1b8)](_0x1e9343(0x210),!0x0),this[_0x1e9343(0x1b8)](_0x1e9343(0x200),null),this[_0x1e9343(0x1b8)](_0x1e9343(0x1b7),null),this[_0x1e9343(0x202)]=this[_0x1e9343(0x1f8)](),this[_0x1e9343(0x1de)]=this[_0x1e9343(0x1df)](),this[_0x1e9343(0x1db)]=this[_0x1e9343(0x1e7)](),this[_0x1e9343(0x1bc)]=this[_0x1e9343(0x1f7)](),this[_0x1e9343(0x1bd)]=this[_0x1e9343(0x1d9)](),this[_0x1e9343(0x202)][_0x1e9343(0x1cf)][_0x1e9343(0x1b2)](_0x1e9343(0x1c5))['to'](this,_0x1e9343(0x1e5),_0x4d6c4f=>_0x1e9343(0x1f1)===_0x4d6c4f),this[_0x1e9343(0x202)][_0x1e9343(0x1cf)][_0x1e9343(0x1b2)](_0x1e9343(0x1f9))['to'](this,_0x1e9343(0x210),_0xd0629c=>_0xd0629c?this[_0x1e9343(0x202)][_0x1e9343(0x1cf)][_0x1e9343(0x1e4)]:_0x357284(this[_0x1e9343(0x213)],_0x1e9343(0x1b3))),this[_0x1e9343(0x202)][_0x1e9343(0x1b2)](_0x1e9343(0x1e3))['to'](this,_0x1e9343(0x210),_0x499877=>_0x499877),this[_0x1e9343(0x1db)][_0x1e9343(0x1b2)](_0x1e9343(0x207))['to'](this,_0x1e9343(0x1ec),_0xff0b98=>_0xff0b98),this[_0x1e9343(0x1db)][_0x1e9343(0x1b2)](_0x1e9343(0x1f9))['to'](this,_0x1e9343(0x1ec),_0x1770f1=>_0x357284(this[_0x1e9343(0x213)],_0x1770f1?_0x1e9343(0x1bf):_0x1e9343(0x212))),this[_0x1e9343(0x1bc)][_0x1e9343(0x1b2)](_0x1e9343(0x207))['to'](this,_0x1e9343(0x1da),_0x3640e0=>_0x3640e0),this[_0x1e9343(0x1bc)][_0x1e9343(0x1b2)](_0x1e9343(0x1f9))['to'](this,_0x1e9343(0x1da),_0x20a1f1=>_0x357284(this[_0x1e9343(0x213)],_0x20a1f1?_0x1e9343(0x1d3):_0x1e9343(0x1f4))),this[_0x1e9343(0x1fc)]({'tag':_0x1e9343(0x1f6),'attributes':{'class':[Yo]},'children':[this[_0x1e9343(0x202)],this[_0x1e9343(0x1de)],this[_0x1e9343(0x1db)],this[_0x1e9343(0x1bc)],this[_0x1e9343(0x1bd)]]}),this[_0x1e9343(0x1b4)]=new _0x816b8(),_0x32617f(this[_0x1e9343(0x202)],this[_0x1e9343(0x1b4)]);}[_0x33da45(0x1c6)](_0x5e11dd,_0x336af1){const _0xac5248=_0x33da45;if(_0x336af1)this[_0xac5248(0x1b8)](_0xac5248(0x1e5),_0xac5248(0x1bb));else{const _0x2178bd=0x1===_0x5e11dd[_0xac5248(0x211)];this[_0xac5248(0x1b8)](_0xac5248(0x1e5),_0x2178bd?_0xac5248(0x1be):_0xac5248(0x1f1));}if(this[_0xac5248(0x1b4)][_0xac5248(0x1e0)](),_0x5e11dd?.[_0xac5248(0x211)])for(const _0x120105 of _0x5e11dd){const _0x8ec852=new _0x2f41fb({'label':_0x120105[_0xac5248(0x1be)],'withText':!0x0,'role':_0xac5248(0x206),'id':_0x120105['id'],'model':_0x120105});_0x8ec852[_0xac5248(0x1b2)](_0xac5248(0x207))['to'](this,_0xac5248(0x200),_0xdee76c=>_0xdee76c===_0x120105['id']),this[_0xac5248(0x1b4)][_0xac5248(0x1c9)]({'type':_0xac5248(0x1d6),'model':_0x8ec852,'labelView':new ModelButtonLabelView(this[_0xac5248(0x213)],_0x120105)});}}[_0x33da45(0x1ba)](_0xe4bde1){const _0x44bd40=_0x33da45;this[_0x44bd40(0x1b8)](_0x44bd40(0x1ec),_0xe4bde1);}[_0x33da45(0x1e1)](_0x44ccd0){const _0x2dda53=_0x33da45;this[_0x2dda53(0x1b8)](_0x2dda53(0x1da),_0x44ccd0);}[_0x33da45(0x205)](_0x3d4e00){const _0x1d2d14=_0x33da45;if(!_0x3d4e00)return;this[_0x1d2d14(0x200)]=_0x3d4e00['id'],this[_0x1d2d14(0x1b7)]=_0x3d4e00[_0x1d2d14(0x1be)]||_0x3d4e00['id'],this[_0x1d2d14(0x202)][_0x1d2d14(0x1cf)][_0x1d2d14(0x1b8)](_0x1d2d14(0x1e4),_0x3d4e00[_0x1d2d14(0x1be)]),this[_0x1d2d14(0x202)][_0x1d2d14(0x1cf)][_0x1d2d14(0x1b8)](_0x1d2d14(0x1f9),_0x3d4e00[_0x1d2d14(0x1be)]);const _0x1d2576=_0x3d4e00[_0x1d2d14(0x20d)][_0x1d2d14(0x20c)]?.[_0x1d2d14(0x1c4)]??!0x1;this[_0x1d2d14(0x1b8)](_0x1d2d14(0x1ec),!0x1),this[_0x1d2d14(0x1db)][_0x1d2d14(0x1b8)](_0x1d2d14(0x207),!0x1),this[_0x1d2d14(0x1db)][_0x1d2d14(0x1b8)](_0x1d2d14(0x1e3),_0x1d2576),this[_0x1d2d14(0x1db)][_0x1d2d14(0x1b8)](_0x1d2d14(0x1c5),_0x1d2576);const _0x3dc05e=_0x3d4e00[_0x1d2d14(0x20d)][_0x1d2d14(0x209)]?.[_0x1d2d14(0x1c4)]??!0x1;this[_0x1d2d14(0x1b8)](_0x1d2d14(0x1da),!0x1),this[_0x1d2d14(0x1bc)][_0x1d2d14(0x1b8)](_0x1d2d14(0x207),!0x1),this[_0x1d2d14(0x1bc)][_0x1d2d14(0x1b8)](_0x1d2d14(0x1e3),_0x3dc05e),this[_0x1d2d14(0x1bc)][_0x1d2d14(0x1b8)](_0x1d2d14(0x1c5),_0x3dc05e);}[_0x33da45(0x1ef)](){const _0x4e4e28=_0x33da45;this[_0x4e4e28(0x1b8)](_0x4e4e28(0x210),!0x0);}[_0x33da45(0x201)](_0x151a0a){const _0x4d63c9=_0x33da45;this[_0x4d63c9(0x1b8)](_0x4d63c9(0x210),!0x1),_0x151a0a&&this[_0x4d63c9(0x1b8)](_0x4d63c9(0x1e5),_0x4d63c9(0x1bb));}[_0x33da45(0x1e7)](){const _0xd797e1=_0x33da45,_0x105f1c=new _0x329f5e();return _0x105f1c[_0xd797e1(0x1b8)]({'label':_0x357284(this[_0xd797e1(0x213)],_0xd797e1(0x1b5)),'icon':_0x152487,'class':yo,'isToggleable':!0x0,'tooltipPosition':il}),_0x105f1c['on'](_0xd797e1(0x1fd),()=>{const _0x44e8d7=_0xd797e1;this[_0x44e8d7(0x1f5)](_0x44e8d7(0x1ee));}),_0x105f1c;}[_0x33da45(0x1f7)](){const _0x397e36=_0x33da45,_0x191f93=new _0x329f5e();return _0x191f93[_0x397e36(0x1b8)]({'label':_0x357284(this[_0x397e36(0x213)],_0x397e36(0x1ff)),'icon':_0x25bdd4,'class':yo,'isToggleable':!0x0,'tooltipPosition':il}),_0x191f93['on'](_0x397e36(0x1fd),()=>{const _0x2b0bc2=_0x397e36;this[_0x2b0bc2(0x1f5)](_0x2b0bc2(0x1ed));}),_0x191f93;}[_0x33da45(0x1d9)](){const _0x2b0dc0=_0x33da45,_0x57c1a1=new _0x329f5e();return _0x57c1a1[_0x2b0dc0(0x1b8)]({'label':_0x357284(this[_0x2b0dc0(0x213)],_0x2b0dc0(0x1d4)),'icon':_0x31d228,'withText':!0x0,'class':yo,'isToggleable':!0x0,'tooltip':_0x357284(this[_0x2b0dc0(0x213)],_0x2b0dc0(0x1d4)),'tooltipPosition':il}),_0x57c1a1[_0x2b0dc0(0x1eb)]({'attributes':{'class':[Jo]}}),_0x57c1a1['on'](_0x2b0dc0(0x1fd),()=>{const _0x11baba=_0x2b0dc0;console[_0x11baba(0x20a)](_0x11baba(0x1d7)),alert(_0x11baba(0x1d7));}),_0x57c1a1;}[_0x33da45(0x1f8)](){const _0x52ec98=_0x33da45,_0x373646=_0x584b18(this[_0x52ec98(0x213)]);return _0x373646[_0x52ec98(0x1b8)]({'panelPosition':'ne','class':[Qo]}),_0x373646[_0x52ec98(0x1cf)][_0x52ec98(0x1b8)]({'label':_0x357284(this[_0x52ec98(0x213)],_0x52ec98(0x1b9)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':il,'class':Ko}),this[_0x52ec98(0x1c8)](_0x373646,_0x52ec98(0x1fd),_0x14de1b=>{const _0x29691=_0x52ec98;this[_0x29691(0x1f5)](_0x29691(0x1e9),_0x14de1b[_0x29691(0x1c7)][_0x29691(0x1cc)]);}),_0x373646;}[_0x33da45(0x1df)](){const _0xf25f84=_0x33da45,_0x1fbd7a=new ModelNameView(this[_0xf25f84(0x213)]);return _0x1fbd7a[_0xf25f84(0x1b2)](_0xf25f84(0x1dc))['to'](this,_0xf25f84(0x1b7),_0x3d7213=>_0x3d7213??''),_0x1fbd7a[_0xf25f84(0x1b2)](_0xf25f84(0x1c5))['to'](this,_0xf25f84(0x1e5),_0xe6aad1=>_0xf25f84(0x1be)===_0xe6aad1),_0x1fbd7a;}}function _0xfab6(){const _0x399409=['text','498yjvETU','_modelNameView','_createModelNameView','clear','setReasoning','addMany','isEnabled','label','modelDisplayMode','ck-hidden','_createWebSearchButton','AI_CHAT_CAPABILITIES_NO','selectModel','ck-ai-chat-controls__model-selection__item-name','extendTemplate','webSearchActive','toggleReasoning','toggleWebSearch','enableModelSelector','7704620XnFkaJ','selector','33324xvKRZR','style','AI_CHAT_ENABLE_REASONING','fire','div','_createReasoningButton','_createModelSelectionDropdown','tooltip','1tZglIq','content','setTemplate','execute','span','AI_CHAT_REASONING','activeModelId','disableModelSelector','_modelSelectionDropdown','ck-ai-chat-controls__model-selection__item-description','40dIOfhc','setModel','menuitemradio','isOn','1073062EGsBVB','reasoning','log','ck-ai-chat__prompt-capabilities','webSearch','capabilities','ck-ai-chat-controls-button','ck-ai-chat-controls-button--commands','modelSelectorEnabled','length','AI_CHAT_ENABLE_WEB_SEARCH','locale','ck-ai-button-tertiary','bind','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_modelSelectionDropdownItems','AI_CHAT_SEARCH_WEB','5297502gwHNVj','activeModelName','set','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','setWebSearch','hidden','_reasoningButton','_commandsButton','name','AI_CHAT_DISABLE_WEB_SEARCH','bindTemplate','1626872YiCiJV','5FumLxb','10667565acoPfK','enabled','isVisible','setModelList','source','listenTo','add','ck-ai-chat-controls__model-selection__item-capabilities','ck-ai-chat-controls__model-selection','model','ck-button__label','_getCapabilityParts','buttonView','AI_CHAT_CAPABILITIES_YES','ck-ai-chat-controls__model-name','description','AI_CHAT_DISABLE_REASONING','AI_CHAT_COMMANDS','createCollection','button','Commands\x20are\x20not\x20implemented\x20yet.','1654664LXnTaD','_createCommandsButton','reasoningActive','_webSearchButton'];_0xfab6=function(){return _0x399409;};return _0xfab6();}class ModelButtonLabelView extends _0x38ff7b{constructor(_0xfbd559,_0x3d9160){const _0x1d8729=_0x33da45;super();const _0x36520f=this[_0x1d8729(0x1c0)],_0x503982=this[_0x1d8729(0x1d5)]();this[_0x1d8729(0x1fc)]({'tag':_0x1d8729(0x1f6),'attributes':{'class':['ck',_0x1d8729(0x1cd)],'style':_0x36520f['to'](_0x1d8729(0x1f3)),'id':_0x36520f['to']('id')},'children':[{'tag':_0x1d8729(0x1f6),'attributes':{'class':[Zo]},'children':[{'text':_0x36520f['to'](_0x1d8729(0x1dc))}]},{'tag':_0x1d8729(0x1f6),'attributes':{'class':[tl]},'children':[{'tag':_0x1d8729(0x1fe),'children':[{'text':_0x3d9160[_0x1d8729(0x1d2)]}]}]},{'tag':_0x1d8729(0x1f6),'attributes':{'class':[el]},'children':_0x503982}]}),_0x503982[_0x1d8729(0x1e2)](this[_0x1d8729(0x1ce)](_0xfbd559,_0x152487,_0x1d8729(0x1b5),_0x3d9160[_0x1d8729(0x20d)][_0x1d8729(0x20c)]?.[_0x1d8729(0x1c4)]??!0x1)),_0x503982[_0x1d8729(0x1e2)](this[_0x1d8729(0x1ce)](_0xfbd559,_0x25bdd4,_0x1d8729(0x1ff),_0x3d9160[_0x1d8729(0x20d)][_0x1d8729(0x209)]?.[_0x1d8729(0x1c4)]??!0x1));}[_0x33da45(0x1ce)](_0x1884e0,_0xeedf49,_0x493b89,_0x48d10e){const _0x506caa=_0x33da45,_0x1e2fe4=new _0x3d2978();_0x1e2fe4[_0x506caa(0x1fb)]=_0xeedf49;const _0x2c6fa8=new _0x1f251e(_0x1884e0);_0x2c6fa8[_0x506caa(0x1fc)]({'tag':_0x506caa(0x1fe),'children':[{'text':_0x357284(_0x1884e0,_0x493b89)+':\x20'}]});const _0x36c974=new _0x1f251e(_0x1884e0);return _0x36c974[_0x506caa(0x1fc)]({'tag':_0x506caa(0x1fe),'children':[{'text':_0x357284(_0x1884e0,_0x48d10e?_0x506caa(0x1d0):_0x506caa(0x1e8))}]}),[_0x1e2fe4,_0x2c6fa8,_0x36c974];}}class ModelNameView extends _0x1f251e{constructor(_0x1bc3b6){const _0x218e3d=_0x33da45;super(_0x1bc3b6),this[_0x218e3d(0x1b8)](_0x218e3d(0x1dc),void 0x0),this[_0x218e3d(0x1b8)](_0x218e3d(0x1c5),!0x0);const _0x3f9d2b=this[_0x218e3d(0x1c0)];this[_0x218e3d(0x1fc)]({'tag':_0x218e3d(0x1fe),'attributes':{'class':['ck',_0x218e3d(0x1d1),_0x3f9d2b['if'](_0x218e3d(0x1c5),_0x218e3d(0x1e6),_0x37d5ff=>!_0x37d5ff)]},'children':[{'text':_0x3f9d2b['to'](_0x218e3d(0x1dc))}]});}}
|
|
23
|
+
const _0x259f6d=_0x5aaa;(function(_0x2824ad,_0xa281b3){const _0x1c62bd=_0x5aaa,_0xd2e658=_0x2824ad();while(!![]){try{const _0x371486=-parseInt(_0x1c62bd(0x18b))/0x1*(-parseInt(_0x1c62bd(0x184))/0x2)+-parseInt(_0x1c62bd(0x1bf))/0x3*(-parseInt(_0x1c62bd(0x19e))/0x4)+parseInt(_0x1c62bd(0x1a9))/0x5*(parseInt(_0x1c62bd(0x186))/0x6)+-parseInt(_0x1c62bd(0x1c7))/0x7+parseInt(_0x1c62bd(0x1a2))/0x8+parseInt(_0x1c62bd(0x1ad))/0x9*(parseInt(_0x1c62bd(0x170))/0xa)+-parseInt(_0x1c62bd(0x1ae))/0xb*(parseInt(_0x1c62bd(0x192))/0xc);if(_0x371486===_0xa281b3)break;else _0xd2e658['push'](_0xd2e658['shift']());}catch(_0x1b16d5){_0xd2e658['push'](_0xd2e658['shift']());}}}(_0x1b93,0x7f019));function _0x1b93(){const _0x53a60a=['reasoning','_getCapabilityParts','activeModelName','ck-ai-chat-controls-button--commands','menuitemradio','isOn','name','4LLrLRP','activeModelId','label','AI_CHAT_CAPABILITIES_NO','4477480ZWZDEK','enabled','selectModel','ck-ai-chat__prompt-capabilities','_createModelSelectionDropdown','AI_CHAT_REASONING','_modelSelectionDropdownItems','115QkhVjI','_createCommandsButton','ck-ai-chat-controls__model-selection__item-name','modelDisplayMode','11196jYiHIk','16135086iQdNKT','clear','style','bindTemplate','webSearchActive','length','AI_CHAT_SEARCH_WEB','_createModelNameView','ck-ai-chat-controls__model-selection__item-description','selector','_createReasoningButton','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','div','isEnabled','tooltip','webSearch','ck-hidden','996033UEpAuc','add','text','disableModelSelector','_createWebSearchButton','AI_CHAT_ENABLE_WEB_SEARCH','content','bind','3457475AXsdll','modelSelectorEnabled','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_reasoningButton','set','ck-ai-chat-controls__model-name','_modelNameView','AI_CHAT_COMMANDS','locale','span','_commandsButton','ck-ai-button-tertiary','setTemplate','6330FtCqgh','AI_CHAT_DISABLE_WEB_SEARCH','button','capabilities','setWebSearch','description','toggleWebSearch','hidden','fire','buttonView','setModel','extendTemplate','toggleReasoning','_modelSelectionDropdown','reasoningActive','listenTo','source','execute','createCollection','setReasoning','208966emvVLe','Commands\x20are\x20not\x20implemented\x20yet.','181914VZHOYN','AI_CHAT_DISABLE_REASONING','ck-ai-chat-controls__model-selection','ck-button__label','enableModelSelector','1taODQA','AI_CHAT_CAPABILITIES_YES','ck-ai-chat-controls__model-selection__item-capabilities','addMany','ck-ai-chat-controls-button','log','setModelList','12UUxVLL','model','isVisible','AI_CHAT_ENABLE_REASONING','_webSearchButton'];_0x1b93=function(){return _0x53a60a;};return _0x1b93();}import{Collection as _0x1bdca1}from'ckeditor5/src/utils.js';import{IconAI as _0x2d55ad,IconBulb as _0x48017c,IconWeb as _0x3a2fe2}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x5f161a,ButtonLabelView as _0x25ab7b,ButtonView as _0x22cab6,createDropdown as _0x58074b,IconView as _0x2a5eca,UIModel as _0x4300a6,View as _0x4c38b0}from'ckeditor5/src/ui.js';function _0x5aaa(_0x4f7be4,_0x1082b4){const _0x1b939c=_0x1b93();return _0x5aaa=function(_0x5aaaa9,_0x25b585){_0x5aaaa9=_0x5aaaa9-0x16d;let _0x293dfe=_0x1b939c[_0x5aaaa9];return _0x293dfe;},_0x5aaa(_0x4f7be4,_0x1082b4);}import{getTranslation as _0x1eeb82}from'../../../aicore/utils/common-translations.js';const qo=_0x259f6d(0x1a5),jo=_0x259f6d(0x18f),zo=_0x259f6d(0x19a),Jo=_0x259f6d(0x16e),Ko=_0x259f6d(0x188),Qo=_0x259f6d(0x1ab),Zo=_0x259f6d(0x1b6),tl=_0x259f6d(0x18d),el='n';export class AIChatPromptCapabilitiesView extends _0x4c38b0{[_0x259f6d(0x196)];[_0x259f6d(0x1ca)];[_0x259f6d(0x16d)];[_0x259f6d(0x17d)];[_0x259f6d(0x1a8)];[_0x259f6d(0x1cd)];constructor(_0x625631){const _0x427318=_0x259f6d;super(_0x625631),this[_0x427318(0x1cb)](_0x427318(0x1b2),!0x1),this[_0x427318(0x1cb)](_0x427318(0x17e),!0x1),this[_0x427318(0x1cb)](_0x427318(0x1ac),_0x427318(0x1b7)),this[_0x427318(0x1cb)](_0x427318(0x1c8),!0x0),this[_0x427318(0x1cb)](_0x427318(0x19f),null),this[_0x427318(0x1cb)](_0x427318(0x199),null),this[_0x427318(0x17d)]=this[_0x427318(0x1a6)](),this[_0x427318(0x1cd)]=this[_0x427318(0x1b5)](),this[_0x427318(0x196)]=this[_0x427318(0x1c3)](),this[_0x427318(0x1ca)]=this[_0x427318(0x1b8)](),this[_0x427318(0x16d)]=this[_0x427318(0x1aa)](),this[_0x427318(0x17d)][_0x427318(0x179)][_0x427318(0x1c6)](_0x427318(0x194))['to'](this,_0x427318(0x1ac),_0x476e96=>_0x427318(0x1b7)===_0x476e96),this[_0x427318(0x17d)][_0x427318(0x179)][_0x427318(0x1c6)](_0x427318(0x1bc))['to'](this,_0x427318(0x1c8),_0x31e654=>_0x31e654?this[_0x427318(0x17d)][_0x427318(0x179)][_0x427318(0x1a0)]:_0x1eeb82(this[_0x427318(0x1cf)],_0x427318(0x1c9))),this[_0x427318(0x17d)][_0x427318(0x1c6)](_0x427318(0x1bb))['to'](this,_0x427318(0x1c8),_0x103761=>_0x103761),this[_0x427318(0x196)][_0x427318(0x1c6)](_0x427318(0x19c))['to'](this,_0x427318(0x1b2),_0xfea3e6=>_0xfea3e6),this[_0x427318(0x196)][_0x427318(0x1c6)](_0x427318(0x1bc))['to'](this,_0x427318(0x1b2),_0x60a0dd=>_0x1eeb82(this[_0x427318(0x1cf)],_0x60a0dd?_0x427318(0x171):_0x427318(0x1c4))),this[_0x427318(0x1ca)][_0x427318(0x1c6)](_0x427318(0x19c))['to'](this,_0x427318(0x17e),_0x47214c=>_0x47214c),this[_0x427318(0x1ca)][_0x427318(0x1c6)](_0x427318(0x1bc))['to'](this,_0x427318(0x17e),_0x978236=>_0x1eeb82(this[_0x427318(0x1cf)],_0x978236?_0x427318(0x187):_0x427318(0x195))),this[_0x427318(0x16f)]({'tag':_0x427318(0x1ba),'attributes':{'class':[qo]},'children':[this[_0x427318(0x17d)],this[_0x427318(0x1cd)],this[_0x427318(0x196)],this[_0x427318(0x1ca)],this[_0x427318(0x16d)]]}),this[_0x427318(0x1a8)]=new _0x1bdca1(),_0x5f161a(this[_0x427318(0x17d)],this[_0x427318(0x1a8)]);}[_0x259f6d(0x191)](_0xf34dd5,_0x50b5a5){const _0x4cc619=_0x259f6d;if(_0x50b5a5)this[_0x4cc619(0x1cb)](_0x4cc619(0x1ac),_0x4cc619(0x177));else{const _0x346109=0x1===_0xf34dd5[_0x4cc619(0x1b3)];this[_0x4cc619(0x1cb)](_0x4cc619(0x1ac),_0x346109?_0x4cc619(0x19d):_0x4cc619(0x1b7));}if(this[_0x4cc619(0x1a8)][_0x4cc619(0x1af)](),_0xf34dd5?.[_0x4cc619(0x1b3)])for(const _0x2e3f19 of _0xf34dd5){const _0x136b70=new _0x4300a6({'label':_0x2e3f19[_0x4cc619(0x19d)],'withText':!0x0,'role':_0x4cc619(0x19b),'id':_0x2e3f19['id'],'model':_0x2e3f19});_0x136b70[_0x4cc619(0x1c6)](_0x4cc619(0x19c))['to'](this,_0x4cc619(0x19f),_0x5e5807=>_0x5e5807===_0x2e3f19['id']),this[_0x4cc619(0x1a8)][_0x4cc619(0x1c0)]({'type':_0x4cc619(0x172),'model':_0x136b70,'labelView':new ModelButtonLabelView(this[_0x4cc619(0x1cf)],_0x2e3f19)});}}[_0x259f6d(0x174)](_0x47a5b5){const _0x3d690e=_0x259f6d;this[_0x3d690e(0x1cb)](_0x3d690e(0x1b2),_0x47a5b5);}[_0x259f6d(0x183)](_0x36a30b){const _0x27b51a=_0x259f6d;this[_0x27b51a(0x1cb)](_0x27b51a(0x17e),_0x36a30b);}[_0x259f6d(0x17a)](_0x31b4c5){const _0x478e8d=_0x259f6d;if(!_0x31b4c5)return;this[_0x478e8d(0x19f)]=_0x31b4c5['id'],this[_0x478e8d(0x199)]=_0x31b4c5[_0x478e8d(0x19d)]||_0x31b4c5['id'],this[_0x478e8d(0x17d)][_0x478e8d(0x179)][_0x478e8d(0x1cb)](_0x478e8d(0x1a0),_0x31b4c5[_0x478e8d(0x19d)]),this[_0x478e8d(0x17d)][_0x478e8d(0x179)][_0x478e8d(0x1cb)](_0x478e8d(0x1bc),_0x31b4c5[_0x478e8d(0x19d)]);const _0x10e02b=_0x31b4c5[_0x478e8d(0x173)][_0x478e8d(0x1bd)]?.[_0x478e8d(0x1a3)]??!0x1;this[_0x478e8d(0x1cb)](_0x478e8d(0x1b2),!0x1),this[_0x478e8d(0x196)][_0x478e8d(0x1cb)](_0x478e8d(0x19c),!0x1),this[_0x478e8d(0x196)][_0x478e8d(0x1cb)](_0x478e8d(0x1bb),_0x10e02b),this[_0x478e8d(0x196)][_0x478e8d(0x1cb)](_0x478e8d(0x194),_0x10e02b);const _0x229805=_0x31b4c5[_0x478e8d(0x173)][_0x478e8d(0x197)]?.[_0x478e8d(0x1a3)]??!0x1;this[_0x478e8d(0x1cb)](_0x478e8d(0x17e),!0x1),this[_0x478e8d(0x1ca)][_0x478e8d(0x1cb)](_0x478e8d(0x19c),!0x1),this[_0x478e8d(0x1ca)][_0x478e8d(0x1cb)](_0x478e8d(0x1bb),_0x229805),this[_0x478e8d(0x1ca)][_0x478e8d(0x1cb)](_0x478e8d(0x194),_0x229805);}[_0x259f6d(0x18a)](){const _0x4ca005=_0x259f6d;this[_0x4ca005(0x1cb)](_0x4ca005(0x1c8),!0x0);}[_0x259f6d(0x1c2)](_0x21e4a5){const _0x393590=_0x259f6d;this[_0x393590(0x1cb)](_0x393590(0x1c8),!0x1),_0x21e4a5&&this[_0x393590(0x1cb)](_0x393590(0x1ac),_0x393590(0x177));}[_0x259f6d(0x1c3)](){const _0xb7aeea=_0x259f6d,_0x33567e=new _0x22cab6();return _0x33567e[_0xb7aeea(0x1cb)]({'label':_0x1eeb82(this[_0xb7aeea(0x1cf)],_0xb7aeea(0x1b4)),'icon':_0x3a2fe2,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x33567e['on'](_0xb7aeea(0x181),()=>{const _0x4dc9cb=_0xb7aeea;this[_0x4dc9cb(0x178)](_0x4dc9cb(0x176));}),_0x33567e;}[_0x259f6d(0x1b8)](){const _0x3759c8=_0x259f6d,_0x4f34de=new _0x22cab6();return _0x4f34de[_0x3759c8(0x1cb)]({'label':_0x1eeb82(this[_0x3759c8(0x1cf)],_0x3759c8(0x1a7)),'icon':_0x48017c,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x4f34de['on'](_0x3759c8(0x181),()=>{const _0x14b666=_0x3759c8;this[_0x14b666(0x178)](_0x14b666(0x17c));}),_0x4f34de;}[_0x259f6d(0x1aa)](){const _0x45425b=_0x259f6d,_0x37c82e=new _0x22cab6();return _0x37c82e[_0x45425b(0x1cb)]({'label':_0x1eeb82(this[_0x45425b(0x1cf)],_0x45425b(0x1ce)),'icon':_0x2d55ad,'withText':!0x0,'class':jo,'isToggleable':!0x0,'tooltip':_0x1eeb82(this[_0x45425b(0x1cf)],_0x45425b(0x1ce)),'tooltipPosition':el}),_0x37c82e[_0x45425b(0x17b)]({'attributes':{'class':[zo]}}),_0x37c82e['on'](_0x45425b(0x181),()=>{const _0x449fc4=_0x45425b;console[_0x449fc4(0x190)](_0x449fc4(0x185)),alert(_0x449fc4(0x185));}),_0x37c82e;}[_0x259f6d(0x1a6)](){const _0x27efab=_0x259f6d,_0x73787=_0x58074b(this[_0x27efab(0x1cf)]);return _0x73787[_0x27efab(0x1cb)]({'panelPosition':'ne','class':[Ko]}),_0x73787[_0x27efab(0x179)][_0x27efab(0x1cb)]({'label':_0x1eeb82(this[_0x27efab(0x1cf)],_0x27efab(0x1b9)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':el,'class':Jo}),this[_0x27efab(0x17f)](_0x73787,_0x27efab(0x181),_0x53cde6=>{const _0x551211=_0x27efab;this[_0x551211(0x178)](_0x551211(0x1a4),_0x53cde6[_0x551211(0x180)][_0x551211(0x193)]);}),_0x73787;}[_0x259f6d(0x1b5)](){const _0x8e8fe3=_0x259f6d,_0x3e167d=new ModelNameView(this[_0x8e8fe3(0x1cf)]);return _0x3e167d[_0x8e8fe3(0x1c6)](_0x8e8fe3(0x1c1))['to'](this,_0x8e8fe3(0x199),_0x4f712e=>_0x4f712e??''),_0x3e167d[_0x8e8fe3(0x1c6)](_0x8e8fe3(0x194))['to'](this,_0x8e8fe3(0x1ac),_0x5a8556=>_0x8e8fe3(0x19d)===_0x5a8556),_0x3e167d;}}class ModelButtonLabelView extends _0x25ab7b{constructor(_0x552dc5,_0x3314d6){const _0x25304a=_0x259f6d;super();const _0x41932b=this[_0x25304a(0x1b1)],_0x589aab=this[_0x25304a(0x182)]();this[_0x25304a(0x16f)]({'tag':_0x25304a(0x1ba),'attributes':{'class':['ck',_0x25304a(0x189)],'style':_0x41932b['to'](_0x25304a(0x1b0)),'id':_0x41932b['to']('id')},'children':[{'tag':_0x25304a(0x1ba),'attributes':{'class':[Qo]},'children':[{'text':_0x41932b['to'](_0x25304a(0x1c1))}]},{'tag':_0x25304a(0x1ba),'attributes':{'class':[Zo]},'children':[{'tag':_0x25304a(0x1d0),'children':[{'text':_0x3314d6[_0x25304a(0x175)]}]}]},{'tag':_0x25304a(0x1ba),'attributes':{'class':[tl]},'children':_0x589aab}]}),_0x589aab[_0x25304a(0x18e)](this[_0x25304a(0x198)](_0x552dc5,_0x3a2fe2,_0x25304a(0x1b4),_0x3314d6[_0x25304a(0x173)][_0x25304a(0x1bd)]?.[_0x25304a(0x1a3)]??!0x1)),_0x589aab[_0x25304a(0x18e)](this[_0x25304a(0x198)](_0x552dc5,_0x48017c,_0x25304a(0x1a7),_0x3314d6[_0x25304a(0x173)][_0x25304a(0x197)]?.[_0x25304a(0x1a3)]??!0x1));}[_0x259f6d(0x198)](_0x1c88df,_0x5a9c47,_0x32f190,_0x28d31c){const _0x42b07f=_0x259f6d,_0x2183c5=new _0x2a5eca();_0x2183c5[_0x42b07f(0x1c5)]=_0x5a9c47;const _0x261612=new _0x4c38b0(_0x1c88df);_0x261612[_0x42b07f(0x16f)]({'tag':_0x42b07f(0x1d0),'children':[{'text':_0x1eeb82(_0x1c88df,_0x32f190)+':\x20'}]});const _0x44c3e1=new _0x4c38b0(_0x1c88df);return _0x44c3e1[_0x42b07f(0x16f)]({'tag':_0x42b07f(0x1d0),'children':[{'text':_0x1eeb82(_0x1c88df,_0x28d31c?_0x42b07f(0x18c):_0x42b07f(0x1a1))}]}),[_0x2183c5,_0x261612,_0x44c3e1];}}class ModelNameView extends _0x4c38b0{constructor(_0x1f1ecf){const _0x41b9fa=_0x259f6d;super(_0x1f1ecf),this[_0x41b9fa(0x1cb)](_0x41b9fa(0x1c1),void 0x0),this[_0x41b9fa(0x1cb)](_0x41b9fa(0x194),!0x0);const _0x39de39=this[_0x41b9fa(0x1b1)];this[_0x41b9fa(0x16f)]({'tag':_0x41b9fa(0x1d0),'attributes':{'class':['ck',_0x41b9fa(0x1cc),_0x39de39['if'](_0x41b9fa(0x194),_0x41b9fa(0x1be),_0x583b2c=>!_0x583b2c)]},'children':[{'text':_0x39de39['to'](_0x41b9fa(0x1c1))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x159581=_0x5a89;(function(_0x2b0e5f,_0xc0b128){const _0x496f10=_0x5a89,_0x4656bf=_0x2b0e5f();while(!![]){try{const _0x2056ed=-parseInt(_0x496f10(0xc0))/0x1+parseInt(_0x496f10(0x89))/0x2*(-parseInt(_0x496f10(0x93))/0x3)+-parseInt(_0x496f10(0x94))/0x4+-parseInt(_0x496f10(0x9a))/0x5+parseInt(_0x496f10(0xbe))/0x6*(parseInt(_0x496f10(0xae))/0x7)+-parseInt(_0x496f10(0x88))/0x8*(parseInt(_0x496f10(0xbf))/0x9)+parseInt(_0x496f10(0xaa))/0xa;if(_0x2056ed===_0xc0b128)break;else _0x4656bf['push'](_0x4656bf['shift']());}catch(_0x48fe0a){_0x4656bf['push'](_0x4656bf['shift']());}}}(_0x137b,0x995ea));function _0x5a89(_0x2162de,_0x448401){const _0x137bc8=_0x137b();return _0x5a89=function(_0x5a8921,_0xf537fe){_0x5a8921=_0x5a8921-0x88;let _0x4a3ce5=_0x137bc8[_0x5a8921];return _0x4a3ce5;},_0x5a89(_0x2162de,_0x448401);}import{IconSubmit as _0x32fb39}from'ckeditor5/src/icons.js';import{ButtonView as _0x2fb97c,AutocompleteView as _0x7a1847,createLabeledTextarea as _0x5d3563}from'ckeditor5/src/ui.js';import{global as _0x416b20,isVisible as _0x67396b,Rect as _0x543597,ResizeObserver as _0x187917}from'ckeditor5/src/utils.js';import{getTranslation as _0x346b98}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x25388f}from'./aichatpromptsuggestionslistview.js';function _0x137b(){const _0x279247=['extendTemplate','contains','reset','left','submit','queryView','submitButtonView','target','px\x20-\x20var(--ck-spacing-tiny))','fire','value','ck-ai-chat__prompt-submit-button','49426250LhHEuP','sendUserMessage','remove','maxRows','21945ILyBNl','focusableChildren','uiLanguageDirection','ck-ai-chat__prompt-input_highlighted','errorText','hasError','MIN_ROWS','classList','_addContextButtonView','isUploadInProgress','rtl','AI_CHAT_PROMPT_EMPTY_ERROR','width','add','update','enter','1158iZzGLF','729iExGLK','1098621YgsifO','_queryViewResizeObserver','fieldView','AI_CHAT_LABEL_SUBMIT','fieldWrapperChildren','isEmpty','excludeScrollbarsAndBorders','render','ck-ai-chat__prompt-input','locale','_setUpAddContextButtonPositioning','minRows','style','element','76608jikIdy','2051768QHdnHD','calc(','setIsUploadInProgress','isEnabled','execute','keystrokes','requestAnimationFrame','trim','bind','MAX_ROWS','3uOPsLV','4690652GyNknE','focus','window','set','setPlaceholderText','placeholder','4233270MunBVR','destroy','_createSubmitButton','right'];_0x137b=function(){return _0x279247;};return _0x137b();}import{escape as _0x462d43}from'es-toolkit/compat';const ah=_0x159581(0xb1);export class AIChatPromptInputView extends _0x7a1847{[_0x159581(0xa4)];static [_0x159581(0xb4)]=0x1;static [_0x159581(0x92)]=0xc;[_0x159581(0xb6)];[_0x159581(0xc1)];constructor(_0x65a3ae,_0x530a41){const _0xcba595=_0x159581;super(_0x65a3ae,{'queryView':{'label':'','creator':_0x5d3563,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x25388f(_0x65a3ae),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0xcba595(0x97)](_0xcba595(0xc5),!0x0),this[_0xcba595(0x97)](_0xcba595(0xb7),!0x1),this[_0xcba595(0xb6)]=_0x530a41,this[_0xcba595(0xc1)]=null,this[_0xcba595(0xa3)][_0xcba595(0xc2)][_0xcba595(0xcb)]=AIChatPromptInputView[_0xcba595(0xb4)],this[_0xcba595(0xa3)][_0xcba595(0xc2)][_0xcba595(0xad)]=AIChatPromptInputView[_0xcba595(0x92)],this[_0xcba595(0xa3)][_0xcba595(0xc4)][_0xcba595(0xbb)](this[_0xcba595(0xb6)]),this[_0xcba595(0xca)](),this[_0xcba595(0x9e)]({'attributes':{'class':['ck',_0xcba595(0xc8)]}}),this[_0xcba595(0xa4)]=this[_0xcba595(0x9c)](),this[_0xcba595(0xa4)][_0xcba595(0x91)](_0xcba595(0x8c))['to'](this,_0xcba595(0xc5),this,_0xcba595(0xb7),(_0x1a1235,_0x426186)=>!_0x1a1235&&!_0x426186),this[_0xcba595(0xaf)][_0xcba595(0xbb)](this[_0xcba595(0xa4)]);}[_0x159581(0xc7)](){const _0x165b2b=_0x159581;super[_0x165b2b(0xc7)](),this[_0x165b2b(0xa3)][_0x165b2b(0xc4)][_0x165b2b(0xbb)](this[_0x165b2b(0xa4)]),this[_0x165b2b(0x8e)][_0x165b2b(0x97)](_0x165b2b(0xbd),(_0x1f3d20,_0x5c81b8)=>{const _0xf6eb61=_0x165b2b;this[_0xf6eb61(0xb7)]||this[_0xf6eb61(0xc5)]||_0x1f3d20[_0xf6eb61(0xa5)]==this[_0xf6eb61(0xa3)][_0xf6eb61(0xc2)][_0xf6eb61(0xcd)]&&(this[_0xf6eb61(0xa2)](),_0x5c81b8());}),this[_0x165b2b(0xa3)][_0x165b2b(0xc2)]['on'](_0x165b2b(0xbc),()=>{const _0x428db2=_0x165b2b;this[_0x428db2(0xc5)]=''===this[_0x428db2(0xa3)][_0x428db2(0xc2)][_0x428db2(0xcd)][_0x428db2(0xa8)]?.[_0x428db2(0x90)]();});}[_0x159581(0x9b)](){const _0x487976=_0x159581;super[_0x487976(0x9b)](),this[_0x487976(0xc1)]&&this[_0x487976(0xc1)][_0x487976(0x9b)]();}[_0x159581(0xa2)](){const _0x5d219e=_0x159581,_0x157788=this[_0x5d219e(0xa3)][_0x5d219e(0xc2)][_0x5d219e(0xcd)][_0x5d219e(0xa8)]?.[_0x5d219e(0x90)]();if(!_0x157788)return this[_0x5d219e(0xa3)][_0x5d219e(0xb2)]=_0x346b98(this[_0x5d219e(0xc9)],_0x5d219e(0xb9)),void(this[_0x5d219e(0xa3)][_0x5d219e(0xc2)][_0x5d219e(0xb3)]=!0x0);this[_0x5d219e(0xa3)][_0x5d219e(0xc2)][_0x5d219e(0xb3)]=!0x1;const _0x3e5683=_0x462d43(_0x157788);this[_0x5d219e(0xa7)](_0x5d219e(0xab),_0x3e5683),this[_0x5d219e(0xa3)][_0x5d219e(0xc2)][_0x5d219e(0xa0)]();}[_0x159581(0x98)](_0x52f96b){const _0x5a7541=_0x159581;this[_0x5a7541(0xa3)][_0x5a7541(0xc2)][_0x5a7541(0x97)](_0x5a7541(0x99),_0x52f96b);}[_0x159581(0x95)](_0x51c687=!0x1){const _0x466a81=_0x159581;super[_0x466a81(0x95)](),_0x51c687&&(this[_0x466a81(0xcd)][_0x466a81(0xb5)][_0x466a81(0x9f)](ah)||(this[_0x466a81(0xcd)][_0x466a81(0xb5)][_0x466a81(0xbb)](ah),setTimeout(()=>{const _0x1df6cc=_0x466a81;this[_0x1df6cc(0xcd)][_0x1df6cc(0xb5)][_0x1df6cc(0xac)](ah);},0x320)));}[_0x159581(0x9c)](){const _0x2c97ad=_0x159581,_0x4d79f3=new _0x2fb97c(this[_0x2c97ad(0xc9)]);return _0x4d79f3[_0x2c97ad(0x97)]({'icon':_0x32fb39,'label':_0x346b98(this[_0x2c97ad(0xc9)],_0x2c97ad(0xc3)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2c97ad(0xa9),'isEnabled':!0x1}),_0x4d79f3['on'](_0x2c97ad(0x8d),()=>{const _0x31345e=_0x2c97ad;this[_0x31345e(0xa2)]();}),_0x4d79f3;}[_0x159581(0x8b)](_0x5e446d){const _0x137473=_0x159581;this[_0x137473(0xb7)]=_0x5e446d;}[_0x159581(0xca)](){const _0x50815a=_0x159581,_0x56626e=this[_0x50815a(0xc9)],_0x3f4178=()=>{const _0x598427=_0x50815a;_0x416b20[_0x598427(0x96)][_0x598427(0x8f)](()=>{const _0x1c0a21=_0x598427;if(_0x67396b(this[_0x1c0a21(0xcd)])){const _0x2ea5a1=new _0x543597(this[_0x1c0a21(0xa3)][_0x1c0a21(0xc2)][_0x1c0a21(0xcd)]),_0x52c898=new _0x543597(this[_0x1c0a21(0xb6)][_0x1c0a21(0xcd)]),_0x257bc5=_0x2ea5a1[_0x1c0a21(0xba)],_0x5c7a6f=_0x1c0a21(0xb8)===_0x56626e[_0x1c0a21(0xb0)]?_0x1c0a21(0x9d):_0x1c0a21(0xa1);_0x2ea5a1[_0x1c0a21(0xc6)]();const _0x5ca8dd=_0x257bc5-_0x2ea5a1[_0x1c0a21(0xba)]+0x1;this[_0x1c0a21(0xb6)][_0x1c0a21(0xcd)][_0x1c0a21(0xcc)][_0x5c7a6f]=_0x1c0a21(0x8a)+(_0x257bc5-_0x52c898[_0x1c0a21(0xba)]-_0x5ca8dd)+_0x1c0a21(0xa6);}});};this[_0x50815a(0xa3)][_0x50815a(0xc2)]['on'](_0x50815a(0xbc),_0x3f4178),this['on'](_0x50815a(0xc7),()=>{const _0x549436=_0x50815a;_0x3f4178(),this[_0x549436(0xc1)]=new _0x187917(this[_0x549436(0xa3)][_0x549436(0xc2)][_0x549436(0xcd)],()=>{_0x3f4178();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1d85(_0x137f6c,_0x11fd61){const _0x2ff525=_0x2ff5();return _0x1d85=function(_0x1d859c,_0x1b9507){_0x1d859c=_0x1d859c-0x1cb;let _0x164ff5=_0x2ff525[_0x1d859c];return _0x164ff5;},_0x1d85(_0x137f6c,_0x11fd61);}function _0x2ff5(){const _0x22db86=['filter','14ofLzvN','14355PCKKKO','3LtIXZp','617316WCSgeM','2744FEVIJZ','434010QsbvsL','1354460fZkHGp','8791849ywExhJ','24gJeYOC','559260xeyXbm','items','length','1139608LEwiPX','8kDLwtL'];_0x2ff5=function(){return _0x22db86;};return _0x2ff5();}const _0x2b5503=_0x1d85;(function(_0xe4ee35,_0x1e8fbc){const _0xa60257=_0x1d85,_0xa94169=_0xe4ee35();while(!![]){try{const _0x5c3622=-parseInt(_0xa60257(0x1d7))/0x1+parseInt(_0xa60257(0x1cf))/0x2*(-parseInt(_0xa60257(0x1d4))/0x3)+-parseInt(_0xa60257(0x1d0))/0x4*(parseInt(_0xa60257(0x1d8))/0x5)+-parseInt(_0xa60257(0x1d5))/0x6*(-parseInt(_0xa60257(0x1d2))/0x7)+parseInt(_0xa60257(0x1d6))/0x8*(parseInt(_0xa60257(0x1d3))/0x9)+-parseInt(_0xa60257(0x1cc))/0xa+parseInt(_0xa60257(0x1d9))/0xb*(parseInt(_0xa60257(0x1cb))/0xc);if(_0x5c3622===_0x1e8fbc)break;else _0xa94169['push'](_0xa94169['shift']());}catch(_0x1f6b8c){_0xa94169['push'](_0xa94169['shift']());}}}(_0x2ff5,0xb711b));import{ListView as _0x39130b}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x39130b{[_0x2b5503(0x1d1)](){const _0x4b7e80=_0x2b5503;let _0x24eb69=0x0;for(const _0x281a13 of this[_0x4b7e80(0x1cd)])_0x24eb69+=_0x281a13[_0x4b7e80(0x1cd)][_0x4b7e80(0x1ce)];return{'resultsCount':_0x24eb69,'totalItemsCount':_0x24eb69};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5493(_0x51c511,_0x161e9d){const _0x5e0713=_0x5e07();return _0x5493=function(_0x5493d8,_0x45ed3f){_0x5493d8=_0x5493d8-0x19b;let _0x492e63=_0x5e0713[_0x5493d8];return _0x492e63;},_0x5493(_0x51c511,_0x161e9d);}const _0x2ac051=_0x5493;(function(_0xb60fcc,_0x29b95b){const _0x35b380=_0x5493,_0x2c6eff=_0xb60fcc();while(!![]){try{const _0x88e75d=-parseInt(_0x35b380(0x1ba))/0x1*(-parseInt(_0x35b380(0x1ad))/0x2)+-parseInt(_0x35b380(0x1b1))/0x3+parseInt(_0x35b380(0x19e))/0x4*(parseInt(_0x35b380(0x1ab))/0x5)+-parseInt(_0x35b380(0x1a2))/0x6*(-parseInt(_0x35b380(0x1b2))/0x7)+-parseInt(_0x35b380(0x1a0))/0x8*(-parseInt(_0x35b380(0x19d))/0x9)+-parseInt(_0x35b380(0x1b5))/0xa+-parseInt(_0x35b380(0x19f))/0xb;if(_0x88e75d===_0x29b95b)break;else _0x2c6eff['push'](_0x2c6eff['shift']());}catch(_0x202c22){_0x2c6eff['push'](_0x2c6eff['shift']());}}}(_0x5e07,0x76a7d));import{ListView as _0x2bec3f}from'ckeditor5/src/ui.js';function _0x5e07(){const _0x1ea598=['4ZnXzdL','4590927WwyEgX','1381928EwVDbI','add','102gPPgbW','fire','label','clear','trim','replace','_source','locale','setResources','1552225oKcRnR','highlightText','32soaYSL','_handleResourceSelection','addResourceToContext','updateResourceState','884100BygelK','395717mJaGRA','execute','filter','6005640JIwall','items','forEach','useDefaultFiltering','extendTemplate','11355ZPBYyY','resource','test','ck-ai-chat-resources__list','\x5c$&','18tHLruW'];_0x5e07=function(){return _0x1ea598;};return _0x5e07();}import{AIChatResourceListItemView as _0x2839e6}from'./aichatresourcelistitemview.js';const uc=_0x2ac051(0x19b);export class AIChatContextResourcesListView extends _0x2bec3f{[_0x2ac051(0x1a8)];constructor(_0x58d1a8,_0x5c8f92){const _0x4c1fe8=_0x2ac051;super(_0x58d1a8),this[_0x4c1fe8(0x1a8)]=_0x5c8f92,this[_0x4c1fe8(0x1b9)]({'attributes':{'class':[uc]}});}[_0x2ac051(0x1aa)](_0x4a3308,_0x4ad875){const _0x2ee95d=_0x2ac051;this[_0x2ee95d(0x1b6)][_0x2ee95d(0x1a5)]();let _0x2c3b71=_0x4a3308;if(this[_0x2ee95d(0x1a8)][_0x2ee95d(0x1b8)]&&_0x4ad875&&''!==_0x4ad875[_0x2ee95d(0x1a6)]()){const _0x2e22bb=new RegExp(_0x4ad875[_0x2ee95d(0x1a7)](/[.*+?^${}()|[\]\\]/g,_0x2ee95d(0x19c)),'gi');_0x2c3b71=_0x4a3308[_0x2ee95d(0x1b4)](_0x521412=>_0x2e22bb[_0x2ee95d(0x1bc)](_0x521412[_0x2ee95d(0x1a4)]));}for(const _0xac862 of _0x2c3b71){const _0x19e603=new _0x2839e6(this[_0x2ee95d(0x1a9)],_0xac862);_0x19e603['on'](_0x2ee95d(0x1b3),()=>{const _0x4e2861=_0x2ee95d;this[_0x4e2861(0x1ae)](this[_0x4e2861(0x1a8)],_0xac862);}),this[_0x2ee95d(0x1b6)][_0x2ee95d(0x1a1)](_0x19e603);}this[_0x2ee95d(0x1a8)][_0x2ee95d(0x1b8)]&&this[_0x2ee95d(0x1ac)](_0x4ad875);}[_0x2ac051(0x1ac)](_0x162d66){const _0x1c9c60=_0x2ac051;this[_0x1c9c60(0x1a8)][_0x1c9c60(0x1b8)]&&this[_0x1c9c60(0x1b6)][_0x1c9c60(0x1b7)](_0x301024=>{const _0x467cb0=_0x1c9c60;_0x301024[_0x467cb0(0x1ac)](_0x162d66);});}[_0x2ac051(0x1b0)](_0x281f61,_0x11721c){const _0x20873f=_0x2ac051;for(const _0x12f8b6 of this[_0x20873f(0x1b6)]){const _0x28aa45=_0x12f8b6;_0x28aa45[_0x20873f(0x1bb)]['id']===_0x281f61&&_0x28aa45[_0x20873f(0x1b0)](_0x11721c);}}[_0x2ac051(0x1ae)](_0x5b3b40,_0x50ee35){const _0x48d36f=_0x2ac051;this[_0x48d36f(0x1a3)](_0x48d36f(0x1af),{'source':_0x5b3b40,'resource':_0x50ee35});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10183e=_0x10ed;(function(_0x3e7949,_0x37ee7c){const _0x49d2f1=_0x10ed,_0x3255f6=_0x3e7949();while(!![]){try{const _0x38f65c=-parseInt(_0x49d2f1(0xb2))/0x1*(parseInt(_0x49d2f1(0xaf))/0x2)+-parseInt(_0x49d2f1(0xba))/0x3+-parseInt(_0x49d2f1(0xa1))/0x4*(-parseInt(_0x49d2f1(0xaa))/0x5)+-parseInt(_0x49d2f1(0xc7))/0x6*(parseInt(_0x49d2f1(0xa9))/0x7)+-parseInt(_0x49d2f1(0xce))/0x8*(-parseInt(_0x49d2f1(0xbf))/0x9)+parseInt(_0x49d2f1(0xad))/0xa+parseInt(_0x49d2f1(0xc2))/0xb;if(_0x38f65c===_0x37ee7c)break;else _0x3255f6['push'](_0x3255f6['shift']());}catch(_0x13fce8){_0x3255f6['push'](_0x3255f6['shift']());}}}(_0x20d3,0x354c4));function _0x10ed(_0x5bb235,_0x3a846b){const _0x20d312=_0x20d3();return _0x10ed=function(_0x10ed0c,_0x374da9){_0x10ed0c=_0x10ed0c-0x9f;let _0x1ef63b=_0x20d312[_0x10ed0c];return _0x1ef63b;},_0x10ed(_0x5bb235,_0x3a846b);}import{View as _0x53dc97,ViewCollection as _0x1d8533}from'ckeditor5/src/ui.js';import{uid as _0x52e215}from'ckeditor5/src/utils.js';function _0x20d3(){const _0x36cc72=['2591556QpmkRS','ck\x20ck-search','isLoading','_createSkeletonView','source','1812XMjqQo','extendTemplate','_searchInputVisibleFrom','highlightText','children','_searchView','addResourceToContext','104hKrpvB','setResources','_latestLoadResourcesUid','locale','_skeletonLoader','delegate','43132sQCOvM','_createSearchView','render','set','_searchSection','updateResourceState','has','searchInputVisibleFrom','4319sNqgqF','65ZArGIA','setTemplate','loadSourceResources','1466280ZwjCII','ck-ai-chat-resources','97298sWzDBd','search','aiChatResources','2pkDXCO','_source','getQuery','_createResourcesListView','_createSearchSection','useDefaultFiltering','length','add','633948bPXRBM','ck-hidden','div','_resourcesListView','fire','132129HxIKsC','loadResources','bindTemplate'];_0x20d3=function(){return _0x36cc72;};return _0x20d3();}import{AIChatContextResourcesListView as _0x35b995}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0xb98f5c}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x300d82,SKELETON_DEFINITIONS as _0x3716d1}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x53dc97{[_0x10183e(0xcc)];[_0x10183e(0xa5)];[_0x10183e(0xc9)];[_0x10183e(0xbd)];[_0x10183e(0x9f)];[_0x10183e(0xb3)];[_0x10183e(0xcb)];[_0x10183e(0xd0)]=null;constructor(_0x4ea12c,_0x14c798){const _0x3ec869=_0x10183e;super(_0x4ea12c),this[_0x3ec869(0xb3)]=_0x14c798[_0x3ec869(0xc6)],this[_0x3ec869(0xc9)]=_0x14c798[_0x3ec869(0xa8)]??0x7,this[_0x3ec869(0xa4)](_0x3ec869(0xc4),!0x0),this[_0x3ec869(0xcc)]=this[_0x3ec869(0xa2)](),this[_0x3ec869(0xa5)]=this[_0x3ec869(0xb6)](),this[_0x3ec869(0xbd)]=this[_0x3ec869(0xb5)](),this[_0x3ec869(0x9f)]=this[_0x3ec869(0xc5)](),this[_0x3ec869(0xcb)]=new _0x1d8533([this[_0x3ec869(0x9f)],this[_0x3ec869(0xbd)]]),this[_0x3ec869(0xab)]({'tag':_0x3ec869(0xbc),'attributes':{'class':_0x3ec869(0xae)},'children':this[_0x3ec869(0xcb)]});}[_0x10183e(0xa2)](){const _0x207e9d=_0x10183e;return new _0xb98f5c(this[_0x207e9d(0xd1)]);}[_0x10183e(0xb6)](){const _0x182a69=_0x10183e,_0x1e891d=new _0x53dc97(this[_0x182a69(0xd1)]);return _0x1e891d[_0x182a69(0xab)]({'tag':_0x182a69(0xbc),'attributes':{'class':_0x182a69(0xc3)},'children':[this[_0x182a69(0xcc)]]}),this[_0x182a69(0xcc)]['on'](_0x182a69(0xb0),(_0x5fba51,_0x3697c8)=>{const _0x9394e1=_0x182a69;this[_0x9394e1(0xc0)](_0x3697c8),this[_0x9394e1(0xb3)][_0x9394e1(0xb7)]&&this[_0x9394e1(0xbd)][_0x9394e1(0xca)](_0x3697c8);}),_0x1e891d;}[_0x10183e(0xb5)](){const _0x23144b=_0x10183e,_0x2d4810=new _0x35b995(this[_0x23144b(0xd1)],this[_0x23144b(0xb3)]);return _0x2d4810[_0x23144b(0xa0)](_0x23144b(0xcd))['to'](this),_0x2d4810[_0x23144b(0xc8)]({'attributes':{'class':this[_0x23144b(0xc1)]['if'](_0x23144b(0xc4),_0x23144b(0xbb))}}),_0x2d4810;}[_0x10183e(0xc5)](){const _0x7c9e90=_0x10183e,_0x3941d5=new _0x300d82(this[_0x7c9e90(0xd1)],_0x3716d1[_0x7c9e90(0xb1)]);return _0x3941d5[_0x7c9e90(0xc8)]({'attributes':{'class':[this[_0x7c9e90(0xc1)]['if'](_0x7c9e90(0xc4),_0x7c9e90(0xbb),_0x4131ca=>!_0x4131ca)]}}),_0x3941d5;}[_0x10183e(0xa3)](){const _0x1b638e=_0x10183e;super[_0x1b638e(0xa3)](),this[_0x1b638e(0xc0)]('');}[_0x10183e(0xc0)](_0x7ba2){const _0x4edf74=_0x10183e,_0x4ac7ff=_0x52e215();this[_0x4edf74(0xd0)]=_0x4ac7ff,this[_0x4edf74(0xbe)](_0x4edf74(0xac),{'sourceId':this[_0x4edf74(0xb3)]['id'],'query':_0x7ba2,'uid':_0x4ac7ff}),this[_0x4edf74(0xc4)]=!0x0;}[_0x10183e(0xcf)](_0x1fefd8,_0x397af0){const _0x3a29b7=_0x10183e;if(_0x397af0&&_0x397af0!==this[_0x3a29b7(0xd0)])return;const _0x20662f=this[_0x3a29b7(0xb3)][_0x3a29b7(0xb7)]?this[_0x3a29b7(0xcc)][_0x3a29b7(0xb4)]():'';this[_0x3a29b7(0xbd)][_0x3a29b7(0xcf)](_0x1fefd8,_0x20662f),_0x1fefd8[_0x3a29b7(0xb8)]>=this[_0x3a29b7(0xc9)]&&!this[_0x3a29b7(0xcb)][_0x3a29b7(0xa7)](this[_0x3a29b7(0xa5)])&&this[_0x3a29b7(0xcb)][_0x3a29b7(0xb9)](this[_0x3a29b7(0xa5)],0x0),requestAnimationFrame(()=>{const _0x1ca6a5=_0x3a29b7;this[_0x1ca6a5(0xc4)]=!0x1;});}[_0x10183e(0xa6)](_0x44ccf6,_0x130fd0){const _0x118507=_0x10183e;this[_0x118507(0xbd)][_0x118507(0xa6)](_0x44ccf6,_0x130fd0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4783ab=_0x130e;(function(_0x3d9afb,_0x2bbebb){const _0xf173d0=_0x130e,_0x596879=_0x3d9afb();while(!![]){try{const _0x931253=parseInt(_0xf173d0(0x1f7))/0x1+parseInt(_0xf173d0(0x1f3))/0x2+-parseInt(_0xf173d0(0x1e1))/0x3+-parseInt(_0xf173d0(0x1ce))/0x4+-parseInt(_0xf173d0(0x1dd))/0x5*(parseInt(_0xf173d0(0x1e3))/0x6)+parseInt(_0xf173d0(0x1d7))/0x7*(parseInt(_0xf173d0(0x1f4))/0x8)+parseInt(_0xf173d0(0x1cf))/0x9;if(_0x931253===_0x2bbebb)break;else _0x596879['push'](_0x596879['shift']());}catch(_0x5b8716){_0x596879['push'](_0x596879['shift']());}}}(_0x5ccc,0x34534));function _0x130e(_0x4bae90,_0x11e4f8){const _0x5ccc34=_0x5ccc();return _0x130e=function(_0x130e3d,_0x1fd8b8){_0x130e3d=_0x130e3d-0x1ce;let _0x4a297e=_0x5ccc34[_0x130e3d];return _0x4a297e;},_0x130e(_0x4bae90,_0x11e4f8);}import{HighlightedTextView as _0x134035,IconView as _0x580bb5,ListItemView as _0x29f2ed}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x1ea79b}from'es-toolkit/compat';import{AIContextItemType as _0x227380}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x300cd1,IconCheck as _0x24127e,IconDocument as _0x535091,IconDocumentOutline as _0x2ef486,IconLink as _0x4fffff}from'@ckeditor/ckeditor5-icons';const zr=_0x4783ab(0x1e0),Jr=_0x4783ab(0x1df),Kr=_0x4783ab(0x1ed),Mr=_0x4783ab(0x1e5);function _0x5ccc(){const _0x2df1db=['_createTitleView','_iconView','69020eekwaZ','1192UbMDLy','render','content','35348LJRHRi','span','399944xQOymL','7957980nHigsj','ck-hidden','text','_updateIcon','getResourceIcon','DOCUMENT','URL','_titleView','4207dXVgHZ','highlightText','set','execute','updateResourceState','resource','5sFmORP','_createIconView','ck-ai-chat-resources__item--in-context','ck-ai-chat-resources__item','1185348VBFItE','bindTemplate','2005206tDLSCH','setTemplate','ck-ai-chat-resources__item__icon','extendTemplate','_setupTemplate','trim','div','FILE','TEXT','label','ck-ai-chat-resources__item-title','isInContext','type','isVisible'];_0x5ccc=function(){return _0x2df1db;};return _0x5ccc();}export class AIChatResourceListItemView extends _0x29f2ed{[_0x4783ab(0x1dc)];[_0x4783ab(0x1d6)];[_0x4783ab(0x1f2)];constructor(_0x456d93,_0xa3fde1){const _0x509134=_0x4783ab;super(_0x456d93),this[_0x509134(0x1dc)]=_0xa3fde1,this[_0x509134(0x1d9)](_0x509134(0x1ee),!!_0xa3fde1[_0x509134(0x1ee)]),this[_0x509134(0x1d6)]=this[_0x509134(0x1f1)](),this[_0x509134(0x1f2)]=this[_0x509134(0x1de)](),this[_0x509134(0x1e7)]();}[_0x4783ab(0x1f5)](){const _0x610dd5=_0x4783ab;super[_0x610dd5(0x1f5)]();}[_0x4783ab(0x1d3)](_0x4baa0b){const _0x4145ed=_0x4783ab;if(_0x4baa0b[_0x4145ed(0x1ee)])return _0x24127e;switch(_0x4baa0b[_0x4145ed(0x1ef)]){case _0x227380[_0x4145ed(0x1d4)]:return _0x535091;case _0x227380[_0x4145ed(0x1d5)]:return _0x4fffff;case _0x227380[_0x4145ed(0x1ea)]:case _0x227380[_0x4145ed(0x1eb)]:return _0x300cd1;default:return _0x2ef486;}}[_0x4783ab(0x1d8)](_0x37792e){const _0x455ec7=_0x4783ab;if(!_0x37792e||''===_0x37792e[_0x455ec7(0x1e8)]())return void this[_0x455ec7(0x1d6)][_0x455ec7(0x1d8)](null);const _0x4136c1=new RegExp(_0x1ea79b(_0x37792e),'gi');this[_0x455ec7(0x1d6)][_0x455ec7(0x1d8)](_0x4136c1);}[_0x4783ab(0x1db)](_0x412722){const _0x2cc1e7=_0x4783ab;this[_0x2cc1e7(0x1dc)][_0x2cc1e7(0x1ee)]=_0x412722,this[_0x2cc1e7(0x1ee)]=_0x412722,this[_0x2cc1e7(0x1d2)]();}[_0x4783ab(0x1f1)](){const _0x87422a=_0x4783ab,_0x57a8a0=new _0x134035();return _0x57a8a0[_0x87422a(0x1d1)]=this[_0x87422a(0x1dc)][_0x87422a(0x1ec)],_0x57a8a0[_0x87422a(0x1e6)]({'tag':_0x87422a(0x1f8),'attributes':{'class':[Kr]}}),_0x57a8a0;}[_0x4783ab(0x1de)](){const _0x5734b2=_0x4783ab,_0x3b1c4b=new _0x580bb5();return _0x3b1c4b[_0x5734b2(0x1f6)]=this[_0x5734b2(0x1d3)](this[_0x5734b2(0x1dc)]),_0x3b1c4b;}[_0x4783ab(0x1e7)](){const _0x4047f2=_0x4783ab,_0x21916f=this[_0x4047f2(0x1e2)];this[_0x4047f2(0x1e4)]({'tag':_0x4047f2(0x1e9),'attributes':{'class':[zr,_0x21916f['if'](_0x4047f2(0x1f0),_0x4047f2(0x1d0),_0x384713=>!_0x384713),_0x21916f['if'](_0x4047f2(0x1ee),Jr)]},'children':[{'tag':_0x4047f2(0x1e9),'attributes':{'class':[Mr]},'children':[this[_0x4047f2(0x1f2)]]},this[_0x4047f2(0x1d6)]],'on':{'click':_0x21916f['to'](_0x4047f2(0x1da))}});}[_0x4783ab(0x1d2)](){const _0xf216fd=_0x4783ab;this[_0xf216fd(0x1f2)][_0xf216fd(0x1f6)]=this[_0xf216fd(0x1d3)](this[_0xf216fd(0x1dc)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x358c7d=_0x2723;(function(_0x5ed939,_0x144bfc){const _0x3eb14c=_0x2723,_0x3ae884=_0x5ed939();while(!![]){try{const _0x17dff6=-parseInt(_0x3eb14c(0xb2))/0x1+-parseInt(_0x3eb14c(0xcb))/0x2+parseInt(_0x3eb14c(0xd5))/0x3*(-parseInt(_0x3eb14c(0xc9))/0x4)+parseInt(_0x3eb14c(0xa5))/0x5*(parseInt(_0x3eb14c(0xb1))/0x6)+parseInt(_0x3eb14c(0xab))/0x7*(-parseInt(_0x3eb14c(0xb9))/0x8)+-parseInt(_0x3eb14c(0xb8))/0x9*(parseInt(_0x3eb14c(0xd3))/0xa)+-parseInt(_0x3eb14c(0xb0))/0xb*(-parseInt(_0x3eb14c(0xc0))/0xc);if(_0x17dff6===_0x144bfc)break;else _0x3ae884['push'](_0x3ae884['shift']());}catch(_0x2b6a7e){_0x3ae884['push'](_0x3ae884['shift']());}}}(_0x3147,0xacbfe));import{BalloonPanelView as _0x6a5bd8,ButtonView as _0x1abeee,clickOutsideHandler as _0x190b82,FormHeaderView as _0x299a6d}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x382364}from'@ckeditor/ckeditor5-icons';function _0x3147(){const _0x49aefe=['closeSourceResourceBalloon','onResourceSelected','change:isLoading','_getResourcesViewFromBalloon','21nOeerv','pin','content','add','_createBackButton','44064581OgJMHH','193746teKPYb','453358grNKzh','searchInputVisibleFrom','onBalloonClosed','ck-ai-chat-context-controls__source-balloon-panel','_bodyCollection','source','127638kvFetA','986032mDJOwq','_locale','_createBalloonResourcesView','onBackToContext','values','_addSourceResourceContent','get','12CQJfqK','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','once','addResourceToContext','populateSourceResourceBalloon','showSourceResourcesBalloon','hide','destroy','_createSourceResourceBalloonPanel','72UDWRRv','loadSourceResources','1914948YhkiuT','resource','execute','clear','element','set','_sourceResourceBalloons','_config','640gMmjUe','ck-button-icon\x20ck-button-back','150111IkQhvY','delete','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_createBalloonHeader','setResources','children','isAnyResourceBalloonVisible','_setupSingleResourceBalloonClickOutsideHandler','label','extendTemplate','isVisible','getTargetElement','onLoadSourceResources','getLimiterElement','updateResourceState','45sQbHQC','show'];_0x3147=function(){return _0x49aefe;};return _0x3147();}import{getTranslation as _0x408897}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x2625b8}from'./aichatcontextresourcesview.js';function _0x2723(_0x56f148,_0x82f332){const _0x314733=_0x3147();return _0x2723=function(_0x2723db,_0x14c3b0){_0x2723db=_0x2723db-0x9d;let _0x1a988e=_0x314733[_0x2723db];return _0x1a988e;},_0x2723(_0x56f148,_0x82f332);}const Bc=_0x358c7d(0xb5),_c=_0x358c7d(0xd4),mc=_0x358c7d(0xc1);export class AIChatResourcesBalloonView{[_0x358c7d(0xd1)]=new Map();[_0x358c7d(0xb6)];[_0x358c7d(0xba)];[_0x358c7d(0xd2)];constructor(_0x32302f,_0x1dbcb3,_0x3df001){const _0x5a756e=_0x358c7d;this[_0x5a756e(0xba)]=_0x32302f,this[_0x5a756e(0xb6)]=_0x1dbcb3,this[_0x5a756e(0xd2)]=_0x3df001;}[_0x358c7d(0xc5)]({source:_0x11812d,withBackButton:_0x454416}){const _0x3ee72e=_0x358c7d;let _0x523fba=this[_0x3ee72e(0xd1)][_0x3ee72e(0xbf)](_0x11812d['id']);_0x523fba||(_0x523fba=this[_0x3ee72e(0xc8)](),this[_0x3ee72e(0xd1)][_0x3ee72e(0xd0)](_0x11812d['id'],_0x523fba),this[_0x3ee72e(0x9d)](_0x523fba)),this[_0x3ee72e(0xbe)]({'balloonPanel':_0x523fba,'source':_0x11812d,'withBackButton':_0x454416}),_0x523fba[_0x3ee72e(0xa6)]();const _0xeb148b=this[_0x3ee72e(0xd2)][_0x3ee72e(0xa1)]();_0xeb148b&&_0x523fba[_0x3ee72e(0xac)]({'target':_0xeb148b,'limiter':this[_0x3ee72e(0xd2)][_0x3ee72e(0xa3)]()});}[_0x358c7d(0xc4)](_0x3f5493,_0xc35ecb,_0x4ab101){const _0x4ee6df=_0x358c7d,_0x74b4ac=this[_0x4ee6df(0xd1)][_0x4ee6df(0xbf)](_0x3f5493);if(!_0x74b4ac)return;const _0x571421=this[_0x4ee6df(0xaa)](_0x74b4ac);_0x571421&&(_0x571421[_0x4ee6df(0xd9)](_0xc35ecb,_0x4ab101),_0x571421[_0x4ee6df(0xc2)](_0x4ee6df(0xa9),()=>{const _0x206531=_0x4ee6df;_0x74b4ac[_0x206531(0xac)]({'target':this[_0x206531(0xd2)][_0x206531(0xa1)](),'limiter':this[_0x206531(0xd2)][_0x206531(0xa3)]()});}));}[_0x358c7d(0xa7)](_0x2562c9){const _0x1c4710=_0x358c7d,_0xc14238=this[_0x1c4710(0xd1)][_0x1c4710(0xbf)](_0x2562c9);_0xc14238&&requestAnimationFrame(()=>{const _0x32207a=_0x1c4710;_0xc14238[_0x32207a(0xc6)](),this[_0x32207a(0xd1)][_0x32207a(0xd6)](_0x2562c9),this[_0x32207a(0xd2)][_0x32207a(0xb4)]();});}[_0x358c7d(0xdb)](){const _0x33584d=_0x358c7d;for(const _0x9932df of this[_0x33584d(0xd1)][_0x33584d(0xbd)]())if(_0x9932df[_0x33584d(0xa0)])return!0x0;return!0x1;}[_0x358c7d(0xa4)](_0xd264e2,_0x216871,_0x593145){const _0x27cce4=_0x358c7d,_0x1c8300=this[_0x27cce4(0xd1)][_0x27cce4(0xbf)](_0xd264e2);if(!_0x1c8300||!_0x1c8300[_0x27cce4(0xa0)])return;const _0x1ac904=this[_0x27cce4(0xd2)][_0x27cce4(0xa1)]();if(!_0x1ac904)return;_0x1c8300[_0x27cce4(0xac)]({'target':_0x1ac904,'limiter':this[_0x27cce4(0xd2)][_0x27cce4(0xa3)]()});const _0x3f1c87=this[_0x27cce4(0xaa)](_0x1c8300);_0x3f1c87&&_0x3f1c87[_0x27cce4(0xa4)](_0x216871,_0x593145);}[_0x358c7d(0xc7)](){const _0x421d74=_0x358c7d;for(const _0x4c9b87 of this[_0x421d74(0xd1)][_0x421d74(0xbd)]())_0x4c9b87[_0x421d74(0xc7)]();this[_0x421d74(0xd1)][_0x421d74(0xce)]();}[_0x358c7d(0xc8)](){const _0x2e018a=_0x358c7d,_0x44cac4=new _0x6a5bd8(this[_0x2e018a(0xba)]);return _0x44cac4[_0x2e018a(0x9f)]({'attributes':{'class':Bc}}),this[_0x2e018a(0xb6)][_0x2e018a(0xae)](_0x44cac4),_0x44cac4;}[_0x358c7d(0xbe)]({balloonPanel:_0xbef8d,source:_0x501d7d,withBackButton:_0x33d293}){const _0x37838b=_0x358c7d;_0xbef8d[_0x37838b(0xad)][_0x37838b(0xce)]();const _0x4873f6=this[_0x37838b(0xd8)]({'balloonPanel':_0xbef8d,'source':_0x501d7d,'withBackButton':_0x33d293});_0xbef8d[_0x37838b(0xad)][_0x37838b(0xae)](_0x4873f6);const _0x88bc48=this[_0x37838b(0xbb)](_0x501d7d);_0xbef8d[_0x37838b(0xad)][_0x37838b(0xae)](_0x88bc48);}[_0x358c7d(0xd8)]({balloonPanel:_0x11864e,source:_0x228cc9,withBackButton:_0x1094d2}){const _0x439466=_0x358c7d,_0x633cd7=new _0x299a6d(this[_0x439466(0xba)],{'label':_0x228cc9[_0x439466(0x9e)],'class':mc});return _0x1094d2&&_0x633cd7[_0x439466(0xda)][_0x439466(0xae)](this[_0x439466(0xaf)](_0x11864e),0x0),_0x633cd7;}[_0x358c7d(0xaf)](_0x255f02){const _0xb8fcd4=_0x358c7d,_0x4b3b1a=new _0x1abeee(this[_0xb8fcd4(0xba)]);return _0x4b3b1a[_0xb8fcd4(0xd0)]({'icon':_0x382364,'tooltip':_0x408897(this[_0xb8fcd4(0xba)],_0xb8fcd4(0xd7)),'tooltipPosition':'n','class':_c}),_0x4b3b1a['on'](_0xb8fcd4(0xcd),()=>{const _0x2970e0=_0xb8fcd4;_0x255f02[_0x2970e0(0xc6)](),this[_0x2970e0(0xd2)][_0x2970e0(0xbc)]();}),_0x4b3b1a;}[_0x358c7d(0xbb)](_0x6f8e42){const _0x3bfafc=_0x358c7d,_0x1012fe=new _0x2625b8(this[_0x3bfafc(0xba)],{'source':_0x6f8e42,'searchInputVisibleFrom':this[_0x3bfafc(0xd2)][_0x3bfafc(0xb3)]});return _0x1012fe['on'](_0x3bfafc(0xca),(_0x55472c,_0xef6a38)=>{const _0x58f84a=_0x3bfafc;this[_0x58f84a(0xd2)][_0x58f84a(0xa2)](_0xef6a38);}),_0x1012fe['on'](_0x3bfafc(0xc3),(_0x5a089f,_0x43cdbd)=>{const _0x282d4f=_0x3bfafc;this[_0x282d4f(0xd2)][_0x282d4f(0xa8)](_0x43cdbd[_0x282d4f(0xb7)],_0x43cdbd[_0x282d4f(0xcc)]),this[_0x282d4f(0xa7)](_0x6f8e42['id']);}),_0x1012fe;}[_0x358c7d(0xaa)](_0x54d812){const _0x38193a=_0x358c7d,_0x56047f=_0x54d812[_0x38193a(0xad)][_0x38193a(0xbf)](0x1);return _0x56047f instanceof _0x2625b8?_0x56047f:null;}[_0x358c7d(0x9d)](_0x1b214d){const _0x52c119=_0x358c7d;_0x190b82({'emitter':_0x1b214d,'contextElements':[_0x1b214d[_0x52c119(0xcf)]],'callback':()=>{const _0x5f3f58=_0x52c119;_0x1b214d[_0x5f3f58(0xc6)](),this[_0x5f3f58(0xd2)][_0x5f3f58(0xb4)]();},'activator':()=>_0x1b214d[_0x52c119(0xa0)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x35d9ed,IconView as _0x1f9e42,LabeledFieldView as _0x437e71,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x1d10ed,IconCancel as _0x4e1e6d}from'ckeditor5/src/icons.js';import{getTranslation as _0x4919bc}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x437e71{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x1f7c9f){const t=_0x1f7c9f['t'],_0x324caf={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x4919bc(_0x1f7c9f,'AI_CHAT_SEARCH_RESOURCES')};super(_0x1f7c9f,_0x324caf['creator']),this['label']=_0x324caf['label'],this['_viewConfig']=_0x324caf,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x1f7c9f,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x574a50){this['fire']('search',_0x574a50);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x1f9e42(),this['iconView']['content']=_0x1d10ed,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x36032a,t){this['resetButtonView']=new _0x35d9ed(_0x36032a),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x4e1e6d,'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',_0x312061=>!_0x312061),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 _0x169882=_0x3743;(function(_0x3f4dcf,_0x1da181){const _0x2370da=_0x3743,_0x141514=_0x3f4dcf();while(!![]){try{const _0x4e8e10=parseInt(_0x2370da(0x16d))/0x1+-parseInt(_0x2370da(0x15f))/0x2*(-parseInt(_0x2370da(0x16f))/0x3)+parseInt(_0x2370da(0x17d))/0x4+-parseInt(_0x2370da(0x164))/0x5+-parseInt(_0x2370da(0x176))/0x6+-parseInt(_0x2370da(0x175))/0x7*(parseInt(_0x2370da(0x178))/0x8)+-parseInt(_0x2370da(0x170))/0x9*(-parseInt(_0x2370da(0x167))/0xa);if(_0x4e8e10===_0x1da181)break;else _0x141514['push'](_0x141514['shift']());}catch(_0x389627){_0x141514['push'](_0x141514['shift']());}}}(_0xd5c6,0xda54d));function _0xd5c6(){const _0x1cfc18=['4219500LMpRAA','createCollection','12835432lvGpaq','reorganizeChips','div','querySelector','destroy','448524nPqaZj','ck-ai-chat-controls-button','2NRIjLo','_createContextChips','setContainerElement','setTemplate','_bodyCollection','5495635XjBOud','locale','ck-ai-chat-context-controls__show-more-balloon-panel','36787010bJJpIO','ck-ai-chat-context-chips-wrapper-balloon','element','_overflowManager','ck-ai-chat-controls_context_show-more-button','ck-ai-chat__feed__context-chips','321893VycgYr','render','565098fjSRdn','9oTzzUP','ck-ai-chat-context-chips-wrapper','_contextChips','add','ck-reset_all','7KRRWkq'];_0xd5c6=function(){return _0x1cfc18;};return _0xd5c6();}import{View as _0x3ff77b}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x54eb6d}from'../controls/aichatcontextitembuttonview.js';function _0x3743(_0x65428f,_0x4fefcc){const _0xd5c652=_0xd5c6();return _0x3743=function(_0x374396,_0x3c74e0){_0x374396=_0x374396-0x15e;let _0x270503=_0xd5c652[_0x374396];return _0x270503;},_0x3743(_0x65428f,_0x4fefcc);}import{AIChatChipsOverflowManager as _0x4ff5d1}from'../controls/aichatchipsoverflowmanager.js';const oc=_0x169882(0x16c),cc=_0x169882(0x171),rc=_0x169882(0x168),jo=_0x169882(0x15e),Xo=_0x169882(0x16b),yo=_0x169882(0x166);export class AIChatFeedContextChipsView extends _0x3ff77b{[_0x169882(0x172)]=this[_0x169882(0x177)]();[_0x169882(0x16a)];[_0x169882(0x163)];constructor(_0x442866,_0x573fe5,_0x543f9e){const _0x3bda65=_0x169882;super(_0x442866),this[_0x3bda65(0x163)]=_0x543f9e,this[_0x3bda65(0x160)](_0x573fe5);const _0x384cad={'cssClasses':{'showMoreButton':Xo,'showMoreBalloon':yo,'overflowContainer':rc,'controlsButton':jo}};this[_0x3bda65(0x16a)]=new _0x4ff5d1(_0x442866,this[_0x3bda65(0x172)],_0x384cad,this[_0x3bda65(0x163)],this),this[_0x3bda65(0x162)]({'tag':_0x3bda65(0x17a),'attributes':{'class':[oc,'ck',_0x3bda65(0x174)]},'children':[{'tag':_0x3bda65(0x17a),'attributes':{'class':cc},'children':this[_0x3bda65(0x172)]}]});}[_0x169882(0x16e)](){const _0x254f95=_0x169882;super[_0x254f95(0x16e)]();const _0x318861=this[_0x254f95(0x169)][_0x254f95(0x17b)]('.'+cc);_0x318861&&(this[_0x254f95(0x16a)][_0x254f95(0x161)](_0x318861),this[_0x254f95(0x16a)][_0x254f95(0x179)]());}[_0x169882(0x17c)](){const _0x126250=_0x169882;super[_0x126250(0x17c)](),this[_0x126250(0x16a)][_0x126250(0x17c)]();}[_0x169882(0x160)](_0xb39ac6){const _0x1da320=_0x169882;for(const _0x331f3e of _0xb39ac6){const _0x31ead1=new _0x54eb6d(this[_0x1da320(0x165)],_0x331f3e,!0x0,!0x1);this[_0x1da320(0x172)][_0x1da320(0x173)](_0x31ead1);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4efd2e=_0x2458;function _0x333a(){const _0x1a5800=['extendTemplate','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','14psmFlI','span','3604320DiQjeo','add','content','124730SnFiUf','ck-ai-chat__feed__interaction-header','753380skivBH','div','1865836PXqoIg','ck-ai-chat__feed__interaction-header__capabilities','setTemplate','118046xZJQLv','10795400bymhUG','ck-hidden','push','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','ck-ai-chat__feed__interaction-header__capabilities__text','56FpofOX','children','16JawFmD','71319alltkR','12jSvBMY','capabilities','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING'];_0x333a=function(){return _0x1a5800;};return _0x333a();}(function(_0x1d0df0,_0x4c6e9b){const _0x32943e=_0x2458,_0x5841bd=_0x1d0df0();while(!![]){try{const _0x2ef48d=-parseInt(_0x32943e(0xd4))/0x1*(-parseInt(_0x32943e(0xc5))/0x2)+parseInt(_0x32943e(0xce))/0x3*(-parseInt(_0x32943e(0xcb))/0x4)+-parseInt(_0x32943e(0xd9))/0x5*(-parseInt(_0x32943e(0xcf))/0x6)+parseInt(_0x32943e(0xdd))/0x7*(-parseInt(_0x32943e(0xcd))/0x8)+-parseInt(_0x32943e(0xd6))/0x9+-parseInt(_0x32943e(0xdb))/0xa+parseInt(_0x32943e(0xc6))/0xb;if(_0x2ef48d===_0x4c6e9b)break;else _0x5841bd['push'](_0x5841bd['shift']());}catch(_0xf5129f){_0x5841bd['push'](_0x5841bd['shift']());}}}(_0x333a,0x7df26));function _0x2458(_0x1a3ddb,_0x1efe39){const _0x333aeb=_0x333a();return _0x2458=function(_0x245865,_0x2f04cd){_0x245865=_0x245865-0xc3;let _0x12a4d4=_0x333aeb[_0x245865];return _0x12a4d4;},_0x2458(_0x1a3ddb,_0x1efe39);}import{IconBulb as _0x1d64d0,IconWeb as _0x169115}from'@ckeditor/ckeditor5-icons';import{IconView as _0x53fd72,View as _0x317ee2}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x5cbd05}from'./aichatfeeditemview.js';import{getTranslation as _0x3fdf10}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x5cbd05{[_0x4efd2e(0xd0)];constructor(_0x2fb500,_0x5dd8e3){const _0x5986be=_0x4efd2e;super(_0x5dd8e3);const {isWebSearchEnabled:_0x50721f,isReasoningEnabled:_0x4e678f}=_0x5dd8e3[_0x5986be(0xd0)],_0x597087=[];let _0x2009db='';_0x50721f&&_0x4e678f?(_0x2009db=_0x3fdf10(_0x2fb500,_0x5986be(0xd1)),_0x597087[_0x5986be(0xc8)](aa(_0x169115)),_0x597087[_0x5986be(0xc8)](aa(_0x1d64d0))):_0x50721f?(_0x2009db=_0x3fdf10(_0x2fb500,_0x5986be(0xd3)),_0x597087[_0x5986be(0xc8)](aa(_0x169115))):_0x4e678f&&(_0x2009db=_0x3fdf10(_0x2fb500,_0x5986be(0xc9)),_0x597087[_0x5986be(0xc8)](aa(_0x1d64d0))),this[_0x5986be(0xd2)]({'attributes':{'class':[_0x5986be(0xda),_0x2009db?'':_0x5986be(0xc7)]}});const _0x20081e=new _0x317ee2();_0x20081e[_0x5986be(0xc4)]({'tag':_0x5986be(0xdc),'attributes':{'class':['ck',_0x5986be(0xc3)]},'children':[..._0x597087,{'tag':_0x5986be(0xd5),'attributes':{'class':[_0x5986be(0xca)]},'children':[_0x2009db]}]}),this[_0x5986be(0xcc)][_0x5986be(0xd7)](_0x20081e),this[_0x5986be(0xd0)]=_0x5dd8e3[_0x5986be(0xd0)];}}function aa(_0x3468ca){const _0x5b89d0=_0x4efd2e,_0x5ec42a=new _0x53fd72();return _0x5ec42a[_0x5b89d0(0xd8)]=_0x3468ca,_0x5ec42a;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x38bfcf=_0x5f4e;(function(_0x4e5557,_0x2ffdaa){const _0x39a678=_0x5f4e,_0x29c8f4=_0x4e5557();while(!![]){try{const _0x35d104=parseInt(_0x39a678(0x6f))/0x1*(parseInt(_0x39a678(0x77))/0x2)+-parseInt(_0x39a678(0x73))/0x3+parseInt(_0x39a678(0x68))/0x4+-parseInt(_0x39a678(0x71))/0x5+parseInt(_0x39a678(0x6d))/0x6*(-parseInt(_0x39a678(0x7a))/0x7)+parseInt(_0x39a678(0x76))/0x8*(parseInt(_0x39a678(0x6c))/0x9)+parseInt(_0x39a678(0x86))/0xa*(parseInt(_0x39a678(0x66))/0xb);if(_0x35d104===_0x2ffdaa)break;else _0x29c8f4['push'](_0x29c8f4['shift']());}catch(_0x329453){_0x29c8f4['push'](_0x29c8f4['shift']());}}}(_0xf03e,0x4daa4));import{AIChatFeedItemView as _0x5364fc}from'./aichatfeeditemview.js';import{parse as _0x9a0067,render as _0x131736}from'../../../aicore/utils/htmlparser.js';import{View as _0x44fbc8}from'ckeditor5/src/ui.js';function _0x5f4e(_0x461623,_0xc0f6f8){const _0xf03e83=_0xf03e();return _0x5f4e=function(_0x5f4ec9,_0x5eb128){_0x5f4ec9=_0x5f4ec9-0x66;let _0x4241cf=_0xf03e83[_0x5f4ec9];return _0x4241cf;},_0x5f4e(_0x461623,_0xc0f6f8);}import{AIWebSourcesView as _0x12a57c,AIWebSourceView as _0x3a4dd8}from'../../../aicore/ui/suggestioncontainer/aiwebsourcesview.js';function _0xf03e(){const _0xf337fb=['setTemplate','extendTemplate','render','15947173lPGwpk','div','354024PfQnlC','balloonPanelView','options','ck-ai-chat__feed__ai-reply-container','19854dpXVfU','288pvArev','addMany','2rhVnOA','updateSources','2226830SDrknd','initialContent','1784283zZvSFx','children','isVisible','832rDpGTk','220378DzqCJU','replyContainer','element','91847yxeIbW','_bodyCollection','ck-reset_all-excluded','map','add','ck-ai-chat__feed__ai-reply','markAsDone','streamIntoElement','static','updateContent','streaming','innerHTML','10mBTcgr','locale'];_0xf03e=function(){return _0xf337fb;};return _0xf03e();}export class AIChatFeedReplyItemView extends _0x5364fc{[_0x38bfcf(0x78)];[_0x38bfcf(0x7b)];constructor(_0x588410,_0x4986df,_0x27ce89){const _0x4053a0=_0x38bfcf;super(_0x4986df),this[_0x4053a0(0x7b)]=_0x27ce89,this[_0x4053a0(0x87)]=_0x588410,this[_0x4053a0(0x89)]({'attributes':{'class':[_0x4053a0(0x7f)]}}),this[_0x4053a0(0x78)]=new _0x44fbc8(),this[_0x4053a0(0x78)][_0x4053a0(0x88)]({'tag':_0x4053a0(0x67),'attributes':{'class':['ck',_0x4053a0(0x7c),_0x4053a0(0x6b)]}}),this[_0x4053a0(0x74)][_0x4053a0(0x7e)](this[_0x4053a0(0x78)]);}async[_0x38bfcf(0x8a)](){const _0x4a2806=_0x38bfcf;super[_0x4a2806(0x8a)](),this[_0x4a2806(0x6a)][_0x4a2806(0x72)]&&(await this[_0x4a2806(0x83)]({'parsedContent':_0x9a0067(this[_0x4a2806(0x6a)][_0x4a2806(0x72)]),'renderingStrategy':_0x4a2806(0x82)}),this[_0x4a2806(0x80)]());}async[_0x38bfcf(0x83)]({parsedContent:_0x40d621,renderingStrategy:_0x3cae5e,abortSignal:_0x11f12c}){const _0x22a8f0=_0x38bfcf;_0x22a8f0(0x84)===_0x3cae5e?await this[_0x22a8f0(0x81)](_0x40d621,this[_0x22a8f0(0x78)][_0x22a8f0(0x79)],_0x11f12c):this[_0x22a8f0(0x78)][_0x22a8f0(0x79)][_0x22a8f0(0x85)]=_0x131736(_0x40d621);}[_0x38bfcf(0x70)](_0x27b56e){const _0x50ecaf=_0x38bfcf,_0x4d03fc=new _0x12a57c(this[_0x50ecaf(0x87)],this[_0x50ecaf(0x7b)]);_0x4d03fc[_0x50ecaf(0x74)][_0x50ecaf(0x6e)](_0x27b56e[_0x50ecaf(0x7d)](_0x328f5f=>new _0x3a4dd8(this[_0x50ecaf(0x87)],_0x328f5f,_0x4d03fc[_0x50ecaf(0x69)]))),_0x4d03fc[_0x50ecaf(0x75)]=!0x0,this[_0x50ecaf(0x74)][_0x50ecaf(0x7e)](_0x4d03fc);}}
|