@ckeditor/ckeditor5-ai 47.6.1-alpha.1 → 47.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/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/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.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/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/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/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/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/createresizebutton.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.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/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3ad47c=_0x82c1;(function(_0x4d8496,_0x5d5165){const _0x5bf3b4=_0x82c1,_0x3dba48=_0x4d8496();while(!![]){try{const _0x203b2b=parseInt(_0x5bf3b4(0x14d))/0x1*(parseInt(_0x5bf3b4(0x13d))/0x2)+parseInt(_0x5bf3b4(0x1a0))/0x3*(-parseInt(_0x5bf3b4(0x19b))/0x4)+parseInt(_0x5bf3b4(0x19a))/0x5*(-parseInt(_0x5bf3b4(0x18d))/0x6)+-parseInt(_0x5bf3b4(0x126))/0x7*(-parseInt(_0x5bf3b4(0x171))/0x8)+-parseInt(_0x5bf3b4(0x182))/0x9+parseInt(_0x5bf3b4(0x136))/0xa*(parseInt(_0x5bf3b4(0x1be))/0xb)+-parseInt(_0x5bf3b4(0x197))/0xc*(parseInt(_0x5bf3b4(0x1bb))/0xd);if(_0x203b2b===_0x5d5165)break;else _0x3dba48['push'](_0x3dba48['shift']());}catch(_0x388f9a){_0x3dba48['push'](_0x3dba48['shift']());}}}(_0x2a28,0xa6ebe));import{BalloonPanelView as _0x3a327e,ButtonView as _0x184ffd,clickOutsideHandler as _0x32d63b,FileDialogButtonView as _0x1eda12,IconView as _0x1a7661,View as _0x33dec1}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x2c4aa3,IconDocument as _0x6dbee9,IconDocumentOutline as _0x492c96,IconDropdownArrow as _0x37f0da,IconLink as _0x80dc86,IconPaperClip as _0xcf56f3}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2e79df}from'./aichatcontextitembuttonview.js';function _0x82c1(_0x1ff097,_0x30f29e){const _0x2a282d=_0x2a28();return _0x82c1=function(_0x82c143,_0x222b7d){_0x82c143=_0x82c143-0x126;let _0x4c40b8=_0x2a282d[_0x82c143];return _0x4c40b8;},_0x82c1(_0x1ff097,_0x30f29e);}import{AIChatContextPanelUrlInputView as _0x5ac8f6}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x47ee21}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x22225c}from'../../../aicore/utils/common-translations.js';function _0x2a28(){const _0x5ec59a=['content','showUrlBalloonPanel','_setupTemplate','ck-ai-chat-context-controls__pending-contexts','_overflowManager','find','render','bind','document','children','isHidden','sources','__arrow','_toggleAddContextBalloon','11707659TZgvWC','add','_hasExactlyOneSource','icon','_createContextButton','isReadOnly','southArrowNorthEast','setAddContextOptions','ck-ai-chat-context-controls__balloon-button','source','ck-ai-chat-context-controls__add-context-button','2244804XMfDpG','body','_addContextBalloonPanelView','refreshBalloon','_createAddContextBalloonPanelView','updateResourceState','setConversationContext','label','_showSourceResourcesBalloon','_conversationContextsChips','64788chtWZO','isAnyResourceBalloonVisible','clear','5vvUkiY','4wXzHyd','_urlInputView','tooltip','ck-ai-chat-context-controls__add-context-balloon-panel','urls','992499WykUuL','executeCustomItemCallback','AI_CHAT_CONTEXT_FILE_LABEL','bodyCollection','northArrowSouth','ck-ai-chat-controls_context_show-more-button','AI_CHAT_CONTEXT_ADD_CONTEXT','addUrlToContext','_setupAddContextBalloonClickOutsideHandler','_setupAllBalloonClickOutsideHandlers','hide','ck-ai-chat-context-controls','_handleUrlSubmit','setTemplate','populateSourceResourceBalloon','element','ck-ai-chat-context-chips-wrapper-balloon','removeContextItemChip','customItem','ck-ai-chat-controls-button','_createResourcesBalloonView','ck-reset_all-excluded','ck-ai-chat','current','_setBalloonPanelContent','files','arrowView','208nRXNgP','addContextButtonView','northArrowSouthEast','265793oBMCgJ','_currentContextsChips','924XRiQvB','hideUrlBalloonPanel','hideAddContextBalloonPanel','remove','_addContextBalloonConfig','menuitem','fire','searchInputVisibleFrom','cancel','show','withBackButton','_createAddContextButtonView','_setupUrlBalloonClickOutsideHandler','_resourcesBalloonView','addContextItem','showSourceResourcesBalloon','430QVnZbU','_bindEventHandlers','closeSourceResourceBalloon','get','buttonView','createCollection','clearCurrentContextItems','1307422PeMrxG','overflowChips','isLoading','_removeContextFromCollection','div','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','southArrowNorthWest','execute','locale','_createBaseBalloonPanel','closest','addFileToContext','set','_urlBalloonPanelView','setContextItemLoading','pin','1jSbrdj','northArrowSouthWest','_handleAddContextButtonClick','clearConversationContextItems','submitUrl','done','loadSourceResources','extendTemplate','length','type','addDocumentToContext','customItems','addResourceToContext','removeContextItem','isOn','destroy','_addUrlContent','_getLimiterElement','conversation','ck-ai-chat-context-controls__balloon-button-source','enabled','AI_CHAT_CONTEXT_URL_LABEL','reorganizeChips','isVisible','_setAddContextButtonEnabled','ck-ai-chat-context-controls__show-more-balloon-panel','_createBalloonButton','_createArrowView','isEnabled','_addContextToCollection','showAddContextBalloonPanel','_createUrlBalloonPanelView','focus','ck-ai-chat-context-controls__url-balloon-panel','setContainerElement','balloonView','65648tXUDQr','southArrowNorth','defaultPositions'];_0x2a28=function(){return _0x5ec59a;};return _0x2a28();}import{AIChatResourcesBalloonView as _0x53bff5}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x3ad47c(0x157),_0x3ad47c(0x148),_0x3ad47c(0x1a7),_0x3ad47c(0x159),_0x3ad47c(0x15a),_0x3ad47c(0x153),_0x3ad47c(0x1a1)];const Uo=_0x3ad47c(0x1ab),Lo=_0x3ad47c(0x177),No=_0x3ad47c(0x19e),Mo=_0x3ad47c(0x18c),Ho=_0x3ad47c(0x16e),jo=_0x3ad47c(0x18a),Fo=_0x3ad47c(0x160),Xo=_0x3ad47c(0x1b3),Do=_0x3ad47c(0x1b0),$o=_0x3ad47c(0x1a5),Wo=_0x3ad47c(0x166),qo=_0x3ad47c(0x1b6),zo=[_0x3a327e[_0x3ad47c(0x173)][_0x3ad47c(0x14e)],_0x3a327e[_0x3ad47c(0x173)][_0x3ad47c(0x1a4)],_0x3a327e[_0x3ad47c(0x173)][_0x3ad47c(0x1bd)],_0x3a327e[_0x3ad47c(0x173)][_0x3ad47c(0x143)],_0x3a327e[_0x3ad47c(0x173)][_0x3ad47c(0x172)],_0x3a327e[_0x3ad47c(0x173)][_0x3ad47c(0x188)]];export class AIChatContextPanelView extends _0x33dec1{[_0x3ad47c(0x1bc)];[_0x3ad47c(0x1bf)]=this[_0x3ad47c(0x13b)]();[_0x3ad47c(0x196)]=this[_0x3ad47c(0x13b)]();[_0x3ad47c(0x178)];[_0x3ad47c(0x18f)];[_0x3ad47c(0x14a)];[_0x3ad47c(0x19c)];[_0x3ad47c(0x133)];[_0x3ad47c(0x12a)];[_0x3ad47c(0x184)]=!0x1;[_0x3ad47c(0x1a3)];constructor(_0x2cf449,_0x5b9408){const _0x239ee4=_0x3ad47c;super(_0x2cf449),this[_0x239ee4(0x1a3)]=_0x5b9408[_0x239ee4(0x1a3)],this[_0x239ee4(0x1bf)]=this[_0x239ee4(0x13b)](),this[_0x239ee4(0x196)]=this[_0x239ee4(0x13b)](),this[_0x239ee4(0x1bc)]=this[_0x239ee4(0x131)](_0x2cf449),this[_0x239ee4(0x18f)]=this[_0x239ee4(0x191)](_0x2cf449),this[_0x239ee4(0x14a)]=this[_0x239ee4(0x16c)](_0x2cf449),this[_0x239ee4(0x133)]=this[_0x239ee4(0x1b4)](_0x2cf449,_0x5b9408);const _0x11895d={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x239ee4(0x178)]=new _0x47ee21(_0x2cf449,this[_0x239ee4(0x1bf)],_0x11895d,this[_0x239ee4(0x1a3)],this),this[_0x239ee4(0x12a)]={'buttonView':this[_0x239ee4(0x1bc)],'balloonView':this[_0x239ee4(0x18f)],'hideMethod':this[_0x239ee4(0x128)][_0x239ee4(0x17b)](this),'showMethod':this[_0x239ee4(0x16b)][_0x239ee4(0x17b)](this)},this[_0x239ee4(0x176)](),this[_0x239ee4(0x137)]();}[_0x3ad47c(0x17a)](){const _0x54f405=_0x3ad47c;super[_0x54f405(0x17a)](),this[_0x54f405(0x1a9)](),this[_0x54f405(0x178)][_0x54f405(0x16f)](this[_0x54f405(0x1af)]),this[_0x54f405(0x178)][_0x54f405(0x163)]();}[_0x3ad47c(0x15c)](){const _0x2f6361=_0x3ad47c;super[_0x2f6361(0x15c)](),this[_0x2f6361(0x178)][_0x2f6361(0x15c)](),this[_0x2f6361(0x133)][_0x2f6361(0x15c)]();}[_0x3ad47c(0x134)](_0x5631f0,_0x23b2a7){const _0xea291b=_0x3ad47c,_0x2b3544=this[_0xea291b(0x186)](_0x5631f0,_0xea291b(0x1b7),!0x0,_0x23b2a7);this[_0xea291b(0x16a)](_0x2b3544,this[_0xea291b(0x1bf)]),this[_0xea291b(0x178)][_0xea291b(0x163)]();}[_0x3ad47c(0x15a)](_0x3d2b40){const _0x138bcc=_0x3ad47c;this[_0x138bcc(0x140)](_0x3d2b40,this[_0x138bcc(0x1bf)]),this[_0x138bcc(0x140)](_0x3d2b40,this[_0x138bcc(0x178)][_0x138bcc(0x13e)]),this[_0x138bcc(0x178)][_0x138bcc(0x163)]();}[_0x3ad47c(0x14b)](_0x34e519,_0x8fdbd0){const _0x56583c=_0x3ad47c;let _0x16fb99=this[_0x56583c(0x1bf)][_0x56583c(0x179)](_0x558de9=>_0x558de9['id']===_0x34e519);_0x16fb99||(_0x16fb99=this[_0x56583c(0x178)][_0x56583c(0x13e)][_0x56583c(0x179)](_0x1c8450=>_0x1c8450['id']===_0x34e519)),_0x16fb99&&(_0x16fb99[_0x56583c(0x13f)]=_0x8fdbd0);}[_0x3ad47c(0x193)](_0x3a5ce6){const _0x2e902d=_0x3ad47c;this[_0x2e902d(0x196)][_0x2e902d(0x199)]();for(const _0x245229 of _0x3a5ce6){const _0x407501=this[_0x2e902d(0x186)](_0x245229,_0x2e902d(0x15f),!0x1,!0x1);this[_0x2e902d(0x16a)](_0x407501,this[_0x2e902d(0x196)]);}}[_0x3ad47c(0x13c)](){const _0x35b9e8=_0x3ad47c;this[_0x35b9e8(0x1bf)][_0x35b9e8(0x199)](),this[_0x35b9e8(0x178)][_0x35b9e8(0x199)]();}[_0x3ad47c(0x150)](){const _0x442fc0=_0x3ad47c;this[_0x442fc0(0x196)][_0x442fc0(0x199)]();}[_0x3ad47c(0x192)](_0x523764,_0xcc6244,_0x3c7706){const _0x2a9129=_0x3ad47c;this[_0x2a9129(0x133)][_0x2a9129(0x192)](_0x523764,_0xcc6244,_0x3c7706);}[_0x3ad47c(0x128)](){const _0x585632=_0x3ad47c;this[_0x585632(0x181)](!0x1);}[_0x3ad47c(0x16b)](){const _0x5b6290=_0x3ad47c;this[_0x5b6290(0x181)](!0x0);}[_0x3ad47c(0x127)](){const _0x1a30a1=_0x3ad47c;this[_0x1a30a1(0x14a)][_0x1a30a1(0x1aa)](),this[_0x1a30a1(0x1bc)][_0x1a30a1(0x15b)]=!0x1,this[_0x1a30a1(0x19c)]&&this[_0x1a30a1(0x19c)][_0x1a30a1(0x199)]();}[_0x3ad47c(0x175)](){const _0x15bcb3=_0x3ad47c;this[_0x15bcb3(0x14a)][_0x15bcb3(0x12f)](),this[_0x15bcb3(0x1bc)][_0x15bcb3(0x15b)]=!0x0;}[_0x3ad47c(0x195)]({source:_0x4826ab,withBackButton:_0x103f8d}){const _0xf982ff=_0x3ad47c;this[_0xf982ff(0x133)][_0xf982ff(0x135)]({'source':_0x4826ab,'withBackButton':_0x103f8d}),this[_0xf982ff(0x1bc)][_0xf982ff(0x15b)]=!0x0;}[_0x3ad47c(0x1ae)](_0x2fde9b,_0x30afed,_0xd35901,_0x4d8f0e){const _0xc81b7b=_0x3ad47c;this[_0xc81b7b(0x133)][_0xc81b7b(0x1ae)](_0x2fde9b,_0xd35901,_0x4d8f0e);}[_0x3ad47c(0x138)](_0x44669d){const _0x32760b=_0x3ad47c;this[_0x32760b(0x133)][_0x32760b(0x138)](_0x44669d),this[_0x32760b(0x1bc)][_0x32760b(0x15b)]=!0x1;}[_0x3ad47c(0x189)](_0x3aee12){const _0x596f3c=_0x3ad47c;this[_0x596f3c(0x1b8)](this[_0x596f3c(0x18f)],this[_0x596f3c(0x145)],_0x3aee12),this[_0x596f3c(0x165)](_0x3aee12);}[_0x3ad47c(0x165)](_0xb553b0){const _0x221893=_0x3ad47c,_0x23cce7=!_0xb553b0[_0x221893(0x17c)][_0x221893(0x17e)]&&_0xb553b0[_0x221893(0x17c)][_0x221893(0x161)],_0x205794=_0xb553b0[_0x221893(0x19f)][_0x221893(0x161)],_0x4441a4=_0xb553b0[_0x221893(0x1b9)][_0x221893(0x161)],_0x2741cc=_0xb553b0[_0x221893(0x17f)][_0x221893(0x155)]>0x0,_0x1bd782=_0xb553b0[_0x221893(0x158)]&&_0xb553b0[_0x221893(0x158)][_0x221893(0x155)]>0x0;this[_0x221893(0x1bc)][_0x221893(0x169)]=_0x23cce7||_0x205794||_0x4441a4||_0x2741cc||_0x1bd782;}[_0x3ad47c(0x176)](){const _0x114bd8=_0x3ad47c;this[_0x114bd8(0x1ad)]({'tag':_0x114bd8(0x141),'attributes':{'class':[Uo,_0x114bd8(0x1b5)]},'children':[{'tag':_0x114bd8(0x141),'attributes':{'class':Lo},'children':this[_0x114bd8(0x1bf)]}]});}[_0x3ad47c(0x137)](){const _0x1cef79=_0x3ad47c;this[_0x1cef79(0x1bc)]['on'](_0x1cef79(0x144),()=>{const _0x27be1a=_0x1cef79;this[_0x27be1a(0x14f)]();});}[_0x3ad47c(0x131)](_0x1fc4ec){const _0x568cbd=_0x3ad47c,_0x14dac1=new _0x184ffd(_0x1fc4ec);return _0x14dac1[_0x568cbd(0x149)]({'label':_0x22225c(_0x1fc4ec,_0x568cbd(0x1a6)),'class':Xo+'\x20'+Mo,'icon':_0xcf56f3,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x14dac1;}[_0x3ad47c(0x191)](_0x568503){const _0x22466e=_0x3ad47c;return this[_0x22466e(0x146)](_0x568503,No);}[_0x3ad47c(0x16c)](_0x470d9d){const _0x4bd5a5=_0x3ad47c,_0x48ebb9=this[_0x4bd5a5(0x146)](_0x470d9d,Ho);return this[_0x4bd5a5(0x15d)](_0x48ebb9,_0x470d9d),_0x48ebb9;}[_0x3ad47c(0x1b4)](_0x4ccbf7,_0x258d60){const _0x1c4eb2=_0x3ad47c,_0x4298da={'searchInputVisibleFrom':_0x258d60[_0x1c4eb2(0x12d)],'onBackToContext':()=>{const _0x430475=_0x1c4eb2;this[_0x430475(0x16b)](),this[_0x430475(0x18f)][_0x430475(0x14c)]({'target':this[_0x430475(0x1bc)][_0x430475(0x1af)],'limiter':this[_0x430475(0x15e)](),'positions':zo});},'onResourceSelected':(_0x292461,_0xde1ef2)=>{const _0x1059b5=_0x1c4eb2;this[_0x1059b5(0x12c)](_0x1059b5(0x159),{'source':_0x292461,'resource':_0xde1ef2});},'onLoadSourceResources':_0x26b266=>{const _0x4c6918=_0x1c4eb2;this[_0x4c6918(0x12c)](_0x4c6918(0x153),_0x26b266);},'onBalloonClosed':()=>{const _0xa8fa2d=_0x1c4eb2;this[_0xa8fa2d(0x1bc)][_0xa8fa2d(0x15b)]=!0x1;},'getLimiterElement':()=>this[_0x1c4eb2(0x15e)](),'getTargetElement':()=>this[_0x1c4eb2(0x1bc)][_0x1c4eb2(0x1af)]};return new _0x53bff5(_0x4ccbf7,_0x258d60[_0x1c4eb2(0x1a3)],_0x4298da);}[_0x3ad47c(0x15e)](){const _0x27fed2=_0x3ad47c;return this[_0x27fed2(0x1af)]?.[_0x27fed2(0x147)]('.'+qo)||document[_0x27fed2(0x18e)];}[_0x3ad47c(0x146)](_0x21763f,_0x349ad1){const _0x131834=_0x3ad47c,_0x5e442d=new _0x3a327e(_0x21763f);return _0x5e442d[_0x131834(0x154)]({'attributes':{'class':_0x349ad1}}),this[_0x131834(0x1a3)][_0x131834(0x183)](_0x5e442d),_0x5e442d;}[_0x3ad47c(0x1b8)](_0xa4991f,_0x47d09a,_0x268a95){const _0x5715ad=_0x3ad47c;if(_0xa4991f[_0x5715ad(0x174)][_0x5715ad(0x199)](),!_0x268a95[_0x5715ad(0x17c)][_0x5715ad(0x17e)]&&_0x268a95[_0x5715ad(0x17c)][_0x5715ad(0x161)]){const _0x16575c=this[_0x5715ad(0x167)](_0x47d09a,{'label':_0x22225c(_0x47d09a,_0x5715ad(0x142)),'icon':_0x6dbee9});_0x16575c['on'](_0x5715ad(0x144),()=>{const _0x47f486=_0x5715ad;this[_0x47f486(0x12c)](_0x47f486(0x157)),this[_0x47f486(0x128)]();}),_0xa4991f[_0x5715ad(0x174)][_0x5715ad(0x183)](_0x16575c);}if(_0x268a95[_0x5715ad(0x19f)][_0x5715ad(0x161)]){const _0x34b40d=this[_0x5715ad(0x167)](_0x47d09a,{'label':_0x22225c(_0x47d09a,_0x5715ad(0x162)),'icon':_0x80dc86});_0x34b40d['on'](_0x5715ad(0x144),()=>{const _0x39908d=_0x5715ad;this[_0x39908d(0x128)](),this[_0x39908d(0x175)](),this[_0x39908d(0x14a)][_0x39908d(0x14c)]({'target':this[_0x39908d(0x1bc)][_0x39908d(0x1af)],'limiter':this[_0x39908d(0x15e)](),'positions':zo}),this[_0x39908d(0x19c)][_0x39908d(0x16d)]();}),_0xa4991f[_0x5715ad(0x174)][_0x5715ad(0x183)](_0x34b40d);}if(_0x268a95[_0x5715ad(0x1b9)][_0x5715ad(0x161)]){const _0x5d9403=new _0x1eda12(_0x47d09a);_0x5d9403[_0x5715ad(0x149)]({'label':_0x22225c(_0x47d09a,_0x5715ad(0x1a2)),'icon':_0x2c4aa3,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x5d9403['on'](_0x5715ad(0x144),()=>{const _0x2f4a38=_0x5715ad;this[_0x2f4a38(0x128)]();}),_0x5d9403['on'](_0x5715ad(0x152),(_0x24ba3e,_0x3e7c21)=>{const _0x51aaeb=_0x5715ad;this[_0x51aaeb(0x12c)](_0x51aaeb(0x148),_0x3e7c21);}),_0x5d9403[_0x5715ad(0x19d)]=!0x0,_0xa4991f[_0x5715ad(0x174)][_0x5715ad(0x183)](_0x5d9403);}for(const _0x377438 of _0x268a95[_0x5715ad(0x17f)]){const _0x589213=this[_0x5715ad(0x167)](_0x47d09a,{'label':_0x377438[_0x5715ad(0x194)],'icon':_0x377438[_0x5715ad(0x185)]||_0x492c96,'type':_0x5715ad(0x18b)});_0xa4991f[_0x5715ad(0x174)][_0x5715ad(0x183)](_0x589213),_0x589213['on'](_0x5715ad(0x144),()=>{const _0x46ab35=_0x5715ad;this[_0x46ab35(0x128)](),this[_0x46ab35(0x195)]({'source':_0x377438,'withBackButton':!this[_0x46ab35(0x184)]});});}for(const _0x2be41b of _0x268a95[_0x5715ad(0x158)]||[]){const _0x500c77=this[_0x5715ad(0x167)](_0x47d09a,{'label':_0x2be41b[_0x5715ad(0x194)],'icon':_0x2be41b[_0x5715ad(0x185)]||_0x492c96,'type':_0x5715ad(0x1b2)});_0xa4991f[_0x5715ad(0x174)][_0x5715ad(0x183)](_0x500c77),_0x500c77['on'](_0x5715ad(0x144),()=>{const _0x2846c2=_0x5715ad;this[_0x2846c2(0x128)](),this[_0x2846c2(0x12c)](_0x2846c2(0x1a1),_0x2be41b);});}this[_0x5715ad(0x184)]=0x1===_0xa4991f[_0x5715ad(0x174)][_0x5715ad(0x155)],this[_0x5715ad(0x19c)][_0x5715ad(0x130)]=!this[_0x5715ad(0x184)];}[_0x3ad47c(0x15d)](_0x447b03,_0x51a765){const _0x1c551b=_0x3ad47c;this[_0x1c551b(0x19c)]=new _0x5ac8f6(_0x51a765),this[_0x1c551b(0x19c)]['on'](_0x1c551b(0x151),(_0x301b27,_0x4584ff)=>{const _0x575c36=_0x1c551b;this[_0x575c36(0x1ac)](_0x4584ff);}),this[_0x1c551b(0x19c)]['on'](_0x1c551b(0x12e),()=>{const _0x4c6664=_0x1c551b;this[_0x4c6664(0x127)](),this[_0x4c6664(0x184)]||(this[_0x4c6664(0x16b)](),this[_0x4c6664(0x18f)][_0x4c6664(0x14c)]({'target':this[_0x4c6664(0x1bc)][_0x4c6664(0x1af)],'limiter':this[_0x4c6664(0x15e)](),'positions':zo}));}),this[_0x1c551b(0x19c)]['on'](_0x1c551b(0x190),()=>{const _0x2399b5=_0x1c551b;this[_0x2399b5(0x14a)][_0x2399b5(0x164)]&&this[_0x2399b5(0x14a)][_0x2399b5(0x14c)]({'target':this[_0x2399b5(0x1bc)][_0x2399b5(0x1af)],'limiter':this[_0x2399b5(0x15e)](),'positions':zo});}),_0x447b03[_0x1c551b(0x174)][_0x1c551b(0x183)](this[_0x1c551b(0x19c)]);}[_0x3ad47c(0x167)](_0x3bf98,_0x1a075e){const _0x28d3bc=_0x3ad47c,_0x169124=_0x28d3bc(0x18b)===_0x1a075e[_0x28d3bc(0x156)]?new SourcesBalloonButtonView(_0x3bf98):new _0x184ffd(_0x3bf98);return _0x169124[_0x28d3bc(0x149)]({'label':_0x1a075e[_0x28d3bc(0x194)],'icon':_0x1a075e[_0x28d3bc(0x185)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x169124;}[_0x3ad47c(0x1a9)](){const _0x2cca0a=_0x3ad47c;this[_0x2cca0a(0x1a8)](),this[_0x2cca0a(0x132)]();}[_0x3ad47c(0x132)](){const _0x5cc180=_0x3ad47c;_0x32d63b({'emitter':this[_0x5cc180(0x14a)],'contextElements':[this[_0x5cc180(0x14a)][_0x5cc180(0x1af)]],'callback':()=>{const _0x47c907=_0x5cc180;this[_0x47c907(0x127)]();},'activator':()=>this[_0x5cc180(0x14a)][_0x5cc180(0x164)]});}[_0x3ad47c(0x181)](_0x466b52){const _0x1a838c=_0x3ad47c,_0x576042=this[_0x1a838c(0x12a)];_0x576042[_0x1a838c(0x13a)][_0x1a838c(0x15b)]=_0x466b52,_0x466b52?_0x576042[_0x1a838c(0x170)][_0x1a838c(0x12f)]():_0x576042[_0x1a838c(0x170)][_0x1a838c(0x1aa)]();}[_0x3ad47c(0x1a8)](){const _0x1bb231=_0x3ad47c,{balloonView:_0x2291d5,buttonView:_0x54d4a5,hideMethod:_0x5abb86}=this[_0x1bb231(0x12a)];_0x32d63b({'emitter':_0x2291d5,'contextElements':[_0x2291d5[_0x1bb231(0x1af)],_0x54d4a5[_0x1bb231(0x1af)]],'callback':()=>{_0x5abb86();},'activator':()=>_0x54d4a5[_0x1bb231(0x15b)]&&!this[_0x1bb231(0x14a)][_0x1bb231(0x164)]&&!this[_0x1bb231(0x133)][_0x1bb231(0x198)]()});}[_0x3ad47c(0x186)](_0xefea85,_0x1a59a7,_0x106a2b=!0x1,_0x5f56fd=!0x1){const _0x13927e=_0x3ad47c,_0x3166ce=_0x13927e(0x15f)===_0x1a59a7||!0x0===_0xefea85[_0x13927e(0x187)],_0x4faca6=new _0x2e79df(this[_0x13927e(0x145)],_0xefea85,_0x3166ce,_0x106a2b,_0x5f56fd);return _0x3166ce||_0x4faca6['on'](_0x13927e(0x1b1),()=>{const _0x145473=_0x13927e;this[_0x145473(0x12c)](_0x145473(0x15a),_0x4faca6['id']);}),_0x4faca6;}[_0x3ad47c(0x16a)](_0x39a1ba,_0x474302){const _0x98d184=_0x3ad47c;_0x474302[_0x98d184(0x183)](_0x39a1ba,0x0);}[_0x3ad47c(0x140)](_0x3c780a,_0x42d5a7){const _0x2d4b24=_0x3ad47c,_0x4d68d1=_0x42d5a7[_0x2d4b24(0x179)](_0x5d342d=>_0x5d342d['id']===_0x3c780a);_0x4d68d1&&_0x42d5a7[_0x2d4b24(0x129)](_0x4d68d1);}[_0x3ad47c(0x14f)](){const _0x4a3cb4=_0x3ad47c;this[_0x4a3cb4(0x1bc)][_0x4a3cb4(0x15b)]?this[_0x4a3cb4(0x128)]():(this[_0x4a3cb4(0x16b)](),this[_0x4a3cb4(0x18f)][_0x4a3cb4(0x14c)]({'target':this[_0x4a3cb4(0x1bc)][_0x4a3cb4(0x1af)],'limiter':this[_0x4a3cb4(0x15e)](),'positions':zo}),this[_0x4a3cb4(0x184)]&&this[_0x4a3cb4(0x18f)][_0x4a3cb4(0x174)][_0x4a3cb4(0x139)](0x0)?.[_0x4a3cb4(0x12c)](_0x4a3cb4(0x144)));}[_0x3ad47c(0x1ac)](_0x45c73f){const _0x5c1a03=_0x3ad47c;this[_0x5c1a03(0x19c)][_0x5c1a03(0x199)](),this[_0x5c1a03(0x127)](),this[_0x5c1a03(0x12c)](_0x5c1a03(0x1a7),_0x45c73f);}}export class SourcesBalloonButtonView extends _0x184ffd{[_0x3ad47c(0x1ba)];constructor(_0x3157eb){const _0x146d93=_0x3ad47c;super(_0x3157eb),this[_0x146d93(0x149)]({'withText':!0x0,'role':_0x146d93(0x12b)}),this[_0x146d93(0x1ba)]=this[_0x146d93(0x168)](),this[_0x146d93(0x154)]({'attributes':{'class':[Fo]}});}[_0x3ad47c(0x17a)](){const _0x47fc49=_0x3ad47c;super[_0x47fc49(0x17a)](),this[_0x47fc49(0x17d)][_0x47fc49(0x183)](this[_0x47fc49(0x1ba)]);}[_0x3ad47c(0x168)](){const _0xc95413=_0x3ad47c,_0x494b5a=new _0x1a7661();return _0x494b5a[_0xc95413(0x174)]=_0x37f0da,_0x494b5a[_0xc95413(0x154)]({'attributes':{'class':Fo+_0xc95413(0x180)}}),_0x494b5a;}}
|
|
23
|
+
const _0x46cdf6=_0x4658;(function(_0x34638a,_0xbe4b98){const _0x4051bc=_0x4658,_0xeb45ab=_0x34638a();while(!![]){try{const _0x29f765=-parseInt(_0x4051bc(0xfe))/0x1+parseInt(_0x4051bc(0x8f))/0x2+parseInt(_0x4051bc(0x9e))/0x3+-parseInt(_0x4051bc(0x10c))/0x4*(-parseInt(_0x4051bc(0xe1))/0x5)+parseInt(_0x4051bc(0xa4))/0x6+parseInt(_0x4051bc(0xf2))/0x7+-parseInt(_0x4051bc(0xdb))/0x8;if(_0x29f765===_0xbe4b98)break;else _0xeb45ab['push'](_0xeb45ab['shift']());}catch(_0x59a324){_0xeb45ab['push'](_0xeb45ab['shift']());}}}(_0x3991,0x6bebd));function _0x3991(){const _0x3277b7=['locale','44143DVMSps','_showSourceResourcesBalloon','add','balloonView','AI_CHAT_CONTEXT_ADD_CONTEXT','setContextItemLoading','done','_createAddContextBalloonPanelView','addContextButtonView','_createContextButton','customItems','icon','bind','populateSourceResourceBalloon','2064nVDyYc','isVisible','_setupUrlBalloonClickOutsideHandler','_setupAllBalloonClickOutsideHandlers','_setupTemplate','createCollection','showSourceResourcesBalloon','_urlBalloonPanelView','clear','executeCustomItemCallback','setConversationContext','loadSourceResources','_setBalloonPanelContent','northArrowSouthEast','ck-ai-chat-context-controls__add-context-button','searchInputVisibleFrom','execute','show','bodyCollection','label','ck-reset_all-excluded','closest','length','addResourceToContext','344582wFFzhY','_createUrlBalloonPanelView','_handleUrlSubmit','focus','customItem','buttonView','ck-ai-chat-context-controls__url-balloon-panel','_createResourcesBalloonView','hide','fire','_addUrlContent','showAddContextBalloonPanel','setContainerElement','_createAddContextButtonView','ck-ai-chat-controls_context_show-more-button','680337zqVAJX','arrowView','render','set','sources','_addContextBalloonPanelView','461562TKacAM','pin','_conversationContextsChips','isEnabled','_addContextBalloonConfig','addContextItem','southArrowNorth','_setupAddContextBalloonClickOutsideHandler','_createBaseBalloonPanel','overflowChips','removeContextItemChip','isHidden','element','isReadOnly','isLoading','conversation','_createBalloonButton','destroy','setAddContextOptions','find','ck-ai-chat-context-controls__balloon-button-source','source','cancel','submitUrl','addUrlToContext','_getLimiterElement','_createArrowView','removeContextItem','AI_CHAT_CONTEXT_URL_LABEL','closeSourceResourceBalloon','children','addFileToContext','_addContextToCollection','_handleAddContextButtonClick','ck-ai-chat-context-controls__add-context-balloon-panel','_hasExactlyOneSource','refreshBalloon','enabled','current','ck-ai-chat','urls','northArrowSouthWest','ck-ai-chat-context-controls__pending-contexts','_setAddContextButtonEnabled','ck-ai-chat-context-controls','body','AI_CHAT_CONTEXT_FILE_LABEL','_removeContextFromCollection','isAnyResourceBalloonVisible','ck-ai-chat-controls-button','remove','southArrowNorthEast','_overflowManager','menuitem','clearCurrentContextItems','4917152oGyHMS','get','tooltip','document','showUrlBalloonPanel','type','380rfyfQB','div','ck-ai-chat-context-chips-wrapper-balloon','defaultPositions','__arrow','reorganizeChips','_bindEventHandlers','updateResourceState','hideAddContextBalloonPanel','southArrowNorthWest','_toggleAddContextBalloon','clearConversationContextItems','content','northArrowSouth','_resourcesBalloonView','_currentContextsChips','withBackButton','4099333fgCgJm','_urlInputView','addDocumentToContext','isOn','setTemplate','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','extendTemplate','hideUrlBalloonPanel','ck-ai-chat-context-controls__balloon-button','files','ck-ai-chat-context-controls__show-more-balloon-panel'];_0x3991=function(){return _0x3277b7;};return _0x3991();}import{BalloonPanelView as _0x168f2e,ButtonView as _0x3d5c06,clickOutsideHandler as _0x3ec0d8,FileDialogButtonView as _0x4b3811,IconView as _0x366d16,View as _0x1dc98b}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1cf317,IconDocument as _0x47234e,IconDocumentOutline as _0x4fd791,IconDropdownArrow as _0xcb40fe,IconLink as _0x3e9d1e,IconPaperClip as _0x195237}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x46a735}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x1b918a}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x14b0ab}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x37f3fa}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0xfd6c5d}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x46cdf6(0xf4),_0x46cdf6(0xc3),_0x46cdf6(0xbc),_0x46cdf6(0x8e),_0x46cdf6(0xbf),_0x46cdf6(0x82),_0x46cdf6(0x115)];const Ro=_0x46cdf6(0xd0),So=_0x46cdf6(0xce),Oo=_0x46cdf6(0xc6),Uo=_0x46cdf6(0x85),Lo=_0x46cdf6(0x95),No=_0x46cdf6(0xfa),Ho=_0x46cdf6(0xb8),jo=_0x46cdf6(0xd5),Fo=_0x46cdf6(0xe3),Bo=_0x46cdf6(0x9d),Mo=_0x46cdf6(0xfc),Xo=_0x46cdf6(0xcb),yo=[_0x168f2e[_0x46cdf6(0xe4)][_0x46cdf6(0xcd)],_0x168f2e[_0x46cdf6(0xe4)][_0x46cdf6(0xee)],_0x168f2e[_0x46cdf6(0xe4)][_0x46cdf6(0x84)],_0x168f2e[_0x46cdf6(0xe4)][_0x46cdf6(0xea)],_0x168f2e[_0x46cdf6(0xe4)][_0x46cdf6(0xaa)],_0x168f2e[_0x46cdf6(0xe4)][_0x46cdf6(0xd7)]];function _0x4658(_0x430a8a,_0x3edb6c){const _0x3991df=_0x3991();return _0x4658=function(_0x465810,_0x473861){_0x465810=_0x465810-0x82;let _0x4afd33=_0x3991df[_0x465810];return _0x4afd33;},_0x4658(_0x430a8a,_0x3edb6c);}export class AIChatContextPanelView extends _0x1dc98b{[_0x46cdf6(0x106)];[_0x46cdf6(0xf0)]=this[_0x46cdf6(0x111)]();[_0x46cdf6(0xa6)]=this[_0x46cdf6(0x111)]();[_0x46cdf6(0xd8)];[_0x46cdf6(0xa3)];[_0x46cdf6(0x113)];[_0x46cdf6(0xf3)];[_0x46cdf6(0xef)];[_0x46cdf6(0xa8)];[_0x46cdf6(0xc7)]=!0x1;[_0x46cdf6(0x89)];constructor(_0x1cfad2,_0x4fea3a){const _0x3bddd6=_0x46cdf6;super(_0x1cfad2),this[_0x3bddd6(0x89)]=_0x4fea3a[_0x3bddd6(0x89)],this[_0x3bddd6(0xf0)]=this[_0x3bddd6(0x111)](),this[_0x3bddd6(0xa6)]=this[_0x3bddd6(0x111)](),this[_0x3bddd6(0x106)]=this[_0x3bddd6(0x9c)](_0x1cfad2),this[_0x3bddd6(0xa3)]=this[_0x3bddd6(0x105)](_0x1cfad2),this[_0x3bddd6(0x113)]=this[_0x3bddd6(0x90)](_0x1cfad2),this[_0x3bddd6(0xef)]=this[_0x3bddd6(0x96)](_0x1cfad2,_0x4fea3a);const _0x5172f6={'cssClasses':{'showMoreButton':Bo,'showMoreBalloon':Mo,'overflowContainer':Fo,'controlsButton':jo}};this[_0x3bddd6(0xd8)]=new _0x14b0ab(_0x1cfad2,this[_0x3bddd6(0xf0)],_0x5172f6,this[_0x3bddd6(0x89)],this),this[_0x3bddd6(0xa8)]={'buttonView':this[_0x3bddd6(0x106)],'balloonView':this[_0x3bddd6(0xa3)],'hideMethod':this[_0x3bddd6(0xe9)][_0x3bddd6(0x10a)](this),'showMethod':this[_0x3bddd6(0x9a)][_0x3bddd6(0x10a)](this)},this[_0x3bddd6(0x110)](),this[_0x3bddd6(0xe7)]();}[_0x46cdf6(0xa0)](){const _0x19e662=_0x46cdf6;super[_0x19e662(0xa0)](),this[_0x19e662(0x10f)](),this[_0x19e662(0xd8)][_0x19e662(0x9b)](this[_0x19e662(0xb0)]),this[_0x19e662(0xd8)][_0x19e662(0xe6)]();}[_0x46cdf6(0xb5)](){const _0x4fbea9=_0x46cdf6;super[_0x4fbea9(0xb5)](),this[_0x4fbea9(0xd8)][_0x4fbea9(0xb5)](),this[_0x4fbea9(0xef)][_0x4fbea9(0xb5)]();}[_0x46cdf6(0xa9)](_0x4be848,_0x5547d3){const _0x4cc02f=_0x46cdf6,_0x5aa2ee=this[_0x4cc02f(0x107)](_0x4be848,_0x4cc02f(0xca),!0x0,_0x5547d3);this[_0x4cc02f(0xc4)](_0x5aa2ee,this[_0x4cc02f(0xf0)]),this[_0x4cc02f(0xd8)][_0x4cc02f(0xe6)]();}[_0x46cdf6(0xbf)](_0x4acac4){const _0xd69216=_0x46cdf6;this[_0xd69216(0xd3)](_0x4acac4,this[_0xd69216(0xf0)]),this[_0xd69216(0xd3)](_0x4acac4,this[_0xd69216(0xd8)][_0xd69216(0xad)]),this[_0xd69216(0xd8)][_0xd69216(0xe6)]();}[_0x46cdf6(0x103)](_0x41b72c,_0x3e7820){const _0x1413dd=_0x46cdf6;let _0x49f9bc=this[_0x1413dd(0xf0)][_0x1413dd(0xb7)](_0xd1b348=>_0xd1b348['id']===_0x41b72c);_0x49f9bc||(_0x49f9bc=this[_0x1413dd(0xd8)][_0x1413dd(0xad)][_0x1413dd(0xb7)](_0x2e81f0=>_0x2e81f0['id']===_0x41b72c)),_0x49f9bc&&(_0x49f9bc[_0x1413dd(0xb2)]=_0x3e7820);}[_0x46cdf6(0x116)](_0x80eb4f){const _0x3f46bd=_0x46cdf6;this[_0x3f46bd(0xa6)][_0x3f46bd(0x114)]();for(const _0x5588cd of _0x80eb4f){const _0x607e2=this[_0x3f46bd(0x107)](_0x5588cd,_0x3f46bd(0xb3),!0x1,!0x1);this[_0x3f46bd(0xc4)](_0x607e2,this[_0x3f46bd(0xa6)]);}}[_0x46cdf6(0xda)](){const _0x4f7614=_0x46cdf6;this[_0x4f7614(0xf0)][_0x4f7614(0x114)](),this[_0x4f7614(0xd8)][_0x4f7614(0x114)]();}[_0x46cdf6(0xec)](){const _0x4fb80b=_0x46cdf6;this[_0x4fb80b(0xa6)][_0x4fb80b(0x114)]();}[_0x46cdf6(0xe8)](_0xa5e00e,_0x53b9cf,_0x543354){const _0x53b15f=_0x46cdf6;this[_0x53b15f(0xef)][_0x53b15f(0xe8)](_0xa5e00e,_0x53b9cf,_0x543354);}[_0x46cdf6(0xe9)](){const _0x10d368=_0x46cdf6;this[_0x10d368(0xeb)](!0x1);}[_0x46cdf6(0x9a)](){const _0x4e660a=_0x46cdf6;this[_0x4e660a(0xeb)](!0x0);}[_0x46cdf6(0xf9)](){const _0x8c672e=_0x46cdf6;this[_0x8c672e(0x113)][_0x8c672e(0x97)](),this[_0x8c672e(0x106)][_0x8c672e(0xf5)]=!0x1,this[_0x8c672e(0xf3)]&&this[_0x8c672e(0xf3)][_0x8c672e(0x114)]();}[_0x46cdf6(0xdf)](){const _0x111a16=_0x46cdf6;this[_0x111a16(0x113)][_0x111a16(0x88)](),this[_0x111a16(0x106)][_0x111a16(0xf5)]=!0x0;}[_0x46cdf6(0xff)]({source:_0x3b6987,withBackButton:_0x571505}){const _0x1ec66d=_0x46cdf6;this[_0x1ec66d(0xef)][_0x1ec66d(0x112)]({'source':_0x3b6987,'withBackButton':_0x571505}),this[_0x1ec66d(0x106)][_0x1ec66d(0xf5)]=!0x0;}[_0x46cdf6(0x10b)](_0x9c81f0,_0x483e37,_0x292c16,_0x5d7668){const _0x127f22=_0x46cdf6;this[_0x127f22(0xef)][_0x127f22(0x10b)](_0x9c81f0,_0x292c16,_0x5d7668);}[_0x46cdf6(0xc1)](_0x5b382a){const _0x25ece9=_0x46cdf6;this[_0x25ece9(0xef)][_0x25ece9(0xc1)](_0x5b382a),this[_0x25ece9(0x106)][_0x25ece9(0xf5)]=!0x1;}[_0x46cdf6(0xb6)](_0x451634){const _0x25054b=_0x46cdf6;this[_0x25054b(0x83)](this[_0x25054b(0xa3)],this[_0x25054b(0xfd)],_0x451634),this[_0x25054b(0xcf)](_0x451634);}[_0x46cdf6(0xcf)](_0x27fffc){const _0x4e0439=_0x46cdf6,_0x1e3dd8=!_0x27fffc[_0x4e0439(0xde)][_0x4e0439(0xaf)]&&_0x27fffc[_0x4e0439(0xde)][_0x4e0439(0xc9)],_0x399c90=_0x27fffc[_0x4e0439(0xcc)][_0x4e0439(0xc9)],_0x42819b=_0x27fffc[_0x4e0439(0xfb)][_0x4e0439(0xc9)],_0x3e9ebe=_0x27fffc[_0x4e0439(0xa2)][_0x4e0439(0x8d)]>0x0,_0x37033b=_0x27fffc[_0x4e0439(0x108)]&&_0x27fffc[_0x4e0439(0x108)][_0x4e0439(0x8d)]>0x0;this[_0x4e0439(0x106)][_0x4e0439(0xa7)]=_0x1e3dd8||_0x399c90||_0x42819b||_0x3e9ebe||_0x37033b;}[_0x46cdf6(0x110)](){const _0x2f52b7=_0x46cdf6;this[_0x2f52b7(0xf6)]({'tag':_0x2f52b7(0xe2),'attributes':{'class':[Ro,_0x2f52b7(0x8b)]},'children':[{'tag':_0x2f52b7(0xe2),'attributes':{'class':So},'children':this[_0x2f52b7(0xf0)]}]});}[_0x46cdf6(0xe7)](){const _0x43d981=_0x46cdf6;this[_0x43d981(0x106)]['on'](_0x43d981(0x87),()=>{const _0x4dbee2=_0x43d981;this[_0x4dbee2(0xc5)]();});}[_0x46cdf6(0x9c)](_0x264450){const _0x222eab=_0x46cdf6,_0x1d3270=new _0x3d5c06(_0x264450);return _0x1d3270[_0x222eab(0xa1)]({'label':_0x37f3fa(_0x264450,_0x222eab(0x102)),'class':jo+'\x20'+Uo,'icon':_0x195237,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x1d3270;}[_0x46cdf6(0x105)](_0x5c8af6){const _0x326cab=_0x46cdf6;return this[_0x326cab(0xac)](_0x5c8af6,Oo);}[_0x46cdf6(0x90)](_0x5ab1ad){const _0x115e40=_0x46cdf6,_0x1a4ef5=this[_0x115e40(0xac)](_0x5ab1ad,Lo);return this[_0x115e40(0x99)](_0x1a4ef5,_0x5ab1ad),_0x1a4ef5;}[_0x46cdf6(0x96)](_0x3345a3,_0x26f7b7){const _0x2efe76=_0x46cdf6,_0x51a801={'searchInputVisibleFrom':_0x26f7b7[_0x2efe76(0x86)],'onBackToContext':()=>{const _0x4a9ca9=_0x2efe76;this[_0x4a9ca9(0x9a)](),this[_0x4a9ca9(0xa3)][_0x4a9ca9(0xa5)]({'target':this[_0x4a9ca9(0x106)][_0x4a9ca9(0xb0)],'limiter':this[_0x4a9ca9(0xbd)](),'positions':yo});},'onResourceSelected':(_0x4edb1a,_0x574665)=>{const _0x39ce1a=_0x2efe76;this[_0x39ce1a(0x98)](_0x39ce1a(0x8e),{'source':_0x4edb1a,'resource':_0x574665});},'onLoadSourceResources':_0x53663a=>{const _0x172b7e=_0x2efe76;this[_0x172b7e(0x98)](_0x172b7e(0x82),_0x53663a);},'onBalloonClosed':()=>{const _0x157ad0=_0x2efe76;this[_0x157ad0(0x106)][_0x157ad0(0xf5)]=!0x1;},'getLimiterElement':()=>this[_0x2efe76(0xbd)](),'getTargetElement':()=>this[_0x2efe76(0x106)][_0x2efe76(0xb0)]};return new _0xfd6c5d(_0x3345a3,_0x26f7b7[_0x2efe76(0x89)],_0x51a801);}[_0x46cdf6(0xbd)](){const _0x310074=_0x46cdf6;return this[_0x310074(0xb0)]?.[_0x310074(0x8c)]('.'+Xo)||document[_0x310074(0xd1)];}[_0x46cdf6(0xac)](_0x27c6eb,_0x483575){const _0x20ac1d=_0x46cdf6,_0xcb0142=new _0x168f2e(_0x27c6eb);return _0xcb0142[_0x20ac1d(0xf8)]({'attributes':{'class':_0x483575}}),this[_0x20ac1d(0x89)][_0x20ac1d(0x100)](_0xcb0142),_0xcb0142;}[_0x46cdf6(0x83)](_0x33530d,_0x172a25,_0x5282a3){const _0x1145f6=_0x46cdf6;if(_0x33530d[_0x1145f6(0xed)][_0x1145f6(0x114)](),!_0x5282a3[_0x1145f6(0xde)][_0x1145f6(0xaf)]&&_0x5282a3[_0x1145f6(0xde)][_0x1145f6(0xc9)]){const _0x3a8db0=this[_0x1145f6(0xb4)](_0x172a25,{'label':_0x37f3fa(_0x172a25,_0x1145f6(0xf7)),'icon':_0x47234e});_0x3a8db0['on'](_0x1145f6(0x87),()=>{const _0xd99717=_0x1145f6;this[_0xd99717(0x98)](_0xd99717(0xf4)),this[_0xd99717(0xe9)]();}),_0x33530d[_0x1145f6(0xed)][_0x1145f6(0x100)](_0x3a8db0);}if(_0x5282a3[_0x1145f6(0xcc)][_0x1145f6(0xc9)]){const _0xda35b7=this[_0x1145f6(0xb4)](_0x172a25,{'label':_0x37f3fa(_0x172a25,_0x1145f6(0xc0)),'icon':_0x3e9d1e});_0xda35b7['on'](_0x1145f6(0x87),()=>{const _0x3c0432=_0x1145f6;this[_0x3c0432(0xe9)](),this[_0x3c0432(0xdf)](),this[_0x3c0432(0x113)][_0x3c0432(0xa5)]({'target':this[_0x3c0432(0x106)][_0x3c0432(0xb0)],'limiter':this[_0x3c0432(0xbd)](),'positions':yo}),this[_0x3c0432(0xf3)][_0x3c0432(0x92)]();}),_0x33530d[_0x1145f6(0xed)][_0x1145f6(0x100)](_0xda35b7);}if(_0x5282a3[_0x1145f6(0xfb)][_0x1145f6(0xc9)]){const _0x446dd7=new _0x4b3811(_0x172a25);_0x446dd7[_0x1145f6(0xa1)]({'label':_0x37f3fa(_0x172a25,_0x1145f6(0xd2)),'icon':_0x1cf317,'withText':!0x0,'tooltip':!0x0,'class':No,'allowMultipleFiles':!0x0}),_0x446dd7['on'](_0x1145f6(0x87),()=>{const _0x100449=_0x1145f6;this[_0x100449(0xe9)]();}),_0x446dd7['on'](_0x1145f6(0x104),(_0x377824,_0x172988)=>{const _0x30cdd4=_0x1145f6;this[_0x30cdd4(0x98)](_0x30cdd4(0xc3),_0x172988);}),_0x446dd7[_0x1145f6(0xdd)]=!0x0,_0x33530d[_0x1145f6(0xed)][_0x1145f6(0x100)](_0x446dd7);}for(const _0x2afa65 of _0x5282a3[_0x1145f6(0xa2)]){const _0x275b98=this[_0x1145f6(0xb4)](_0x172a25,{'label':_0x2afa65[_0x1145f6(0x8a)],'icon':_0x2afa65[_0x1145f6(0x109)]||_0x4fd791,'type':_0x1145f6(0xb9)});_0x33530d[_0x1145f6(0xed)][_0x1145f6(0x100)](_0x275b98),_0x275b98['on'](_0x1145f6(0x87),()=>{const _0x32de8a=_0x1145f6;this[_0x32de8a(0xe9)](),this[_0x32de8a(0xff)]({'source':_0x2afa65,'withBackButton':!this[_0x32de8a(0xc7)]});});}for(const _0x31df42 of _0x5282a3[_0x1145f6(0x108)]||[]){const _0x248143=this[_0x1145f6(0xb4)](_0x172a25,{'label':_0x31df42[_0x1145f6(0x8a)],'icon':_0x31df42[_0x1145f6(0x109)]||_0x4fd791,'type':_0x1145f6(0x93)});_0x33530d[_0x1145f6(0xed)][_0x1145f6(0x100)](_0x248143),_0x248143['on'](_0x1145f6(0x87),()=>{const _0xd8fc39=_0x1145f6;this[_0xd8fc39(0xe9)](),this[_0xd8fc39(0x98)](_0xd8fc39(0x115),_0x31df42);});}this[_0x1145f6(0xc7)]=0x1===_0x33530d[_0x1145f6(0xed)][_0x1145f6(0x8d)],this[_0x1145f6(0xf3)][_0x1145f6(0xf1)]=!this[_0x1145f6(0xc7)];}[_0x46cdf6(0x99)](_0x291df2,_0x2c88a5){const _0x56322b=_0x46cdf6;this[_0x56322b(0xf3)]=new _0x1b918a(_0x2c88a5),this[_0x56322b(0xf3)]['on'](_0x56322b(0xbb),(_0x58337b,_0x41d112)=>{const _0x1a5d6b=_0x56322b;this[_0x1a5d6b(0x91)](_0x41d112);}),this[_0x56322b(0xf3)]['on'](_0x56322b(0xba),()=>{const _0x4c2a70=_0x56322b;this[_0x4c2a70(0xf9)](),this[_0x4c2a70(0xc7)]||(this[_0x4c2a70(0x9a)](),this[_0x4c2a70(0xa3)][_0x4c2a70(0xa5)]({'target':this[_0x4c2a70(0x106)][_0x4c2a70(0xb0)],'limiter':this[_0x4c2a70(0xbd)](),'positions':yo}));}),this[_0x56322b(0xf3)]['on'](_0x56322b(0xc8),()=>{const _0x3d94f1=_0x56322b;this[_0x3d94f1(0x113)][_0x3d94f1(0x10d)]&&this[_0x3d94f1(0x113)][_0x3d94f1(0xa5)]({'target':this[_0x3d94f1(0x106)][_0x3d94f1(0xb0)],'limiter':this[_0x3d94f1(0xbd)](),'positions':yo});}),_0x291df2[_0x56322b(0xed)][_0x56322b(0x100)](this[_0x56322b(0xf3)]);}[_0x46cdf6(0xb4)](_0x5ed8fe,_0x9de66c){const _0x4c5b4f=_0x46cdf6,_0x3ecfd1=_0x4c5b4f(0xb9)===_0x9de66c[_0x4c5b4f(0xe0)]?new SourcesBalloonButtonView(_0x5ed8fe):new _0x3d5c06(_0x5ed8fe);return _0x3ecfd1[_0x4c5b4f(0xa1)]({'label':_0x9de66c[_0x4c5b4f(0x8a)],'icon':_0x9de66c[_0x4c5b4f(0x109)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':No}),_0x3ecfd1;}[_0x46cdf6(0x10f)](){const _0x867b38=_0x46cdf6;this[_0x867b38(0xab)](),this[_0x867b38(0x10e)]();}[_0x46cdf6(0x10e)](){const _0x2b1871=_0x46cdf6;_0x3ec0d8({'emitter':this[_0x2b1871(0x113)],'contextElements':[this[_0x2b1871(0x113)][_0x2b1871(0xb0)]],'callback':()=>{const _0x11e1af=_0x2b1871;this[_0x11e1af(0xf9)]();},'activator':()=>this[_0x2b1871(0x113)][_0x2b1871(0x10d)]});}[_0x46cdf6(0xeb)](_0x3e2fb8){const _0x233635=_0x46cdf6,_0x4a22f3=this[_0x233635(0xa8)];_0x4a22f3[_0x233635(0x94)][_0x233635(0xf5)]=_0x3e2fb8,_0x3e2fb8?_0x4a22f3[_0x233635(0x101)][_0x233635(0x88)]():_0x4a22f3[_0x233635(0x101)][_0x233635(0x97)]();}[_0x46cdf6(0xab)](){const _0x347978=_0x46cdf6,{balloonView:_0x307e9b,buttonView:_0x1491eb,hideMethod:_0x589bcb}=this[_0x347978(0xa8)];_0x3ec0d8({'emitter':_0x307e9b,'contextElements':[_0x307e9b[_0x347978(0xb0)],_0x1491eb[_0x347978(0xb0)]],'callback':()=>{_0x589bcb();},'activator':()=>_0x1491eb[_0x347978(0xf5)]&&!this[_0x347978(0x113)][_0x347978(0x10d)]&&!this[_0x347978(0xef)][_0x347978(0xd4)]()});}[_0x46cdf6(0x107)](_0x103956,_0x2e44c1,_0x346ff0=!0x1,_0x950c83=!0x1){const _0x2c6cf2=_0x46cdf6,_0x42a088=_0x2c6cf2(0xb3)===_0x2e44c1||!0x0===_0x103956[_0x2c6cf2(0xb1)],_0x12bbc7=new _0x46a735(this[_0x2c6cf2(0xfd)],_0x103956,_0x42a088,_0x346ff0,_0x950c83);return _0x42a088||_0x12bbc7['on'](_0x2c6cf2(0xae),()=>{const _0x6cfc64=_0x2c6cf2;this[_0x6cfc64(0x98)](_0x6cfc64(0xbf),_0x12bbc7['id']);}),_0x12bbc7;}[_0x46cdf6(0xc4)](_0x307188,_0x3eb9e2){const _0x822d37=_0x46cdf6;_0x3eb9e2[_0x822d37(0x100)](_0x307188,0x0);}[_0x46cdf6(0xd3)](_0x1246a1,_0x4d6e4c){const _0x3a41bc=_0x46cdf6,_0x45492e=_0x4d6e4c[_0x3a41bc(0xb7)](_0x3c32e6=>_0x3c32e6['id']===_0x1246a1);_0x45492e&&_0x4d6e4c[_0x3a41bc(0xd6)](_0x45492e);}[_0x46cdf6(0xc5)](){const _0x578705=_0x46cdf6;this[_0x578705(0x106)][_0x578705(0xf5)]?this[_0x578705(0xe9)]():(this[_0x578705(0x9a)](),this[_0x578705(0xa3)][_0x578705(0xa5)]({'target':this[_0x578705(0x106)][_0x578705(0xb0)],'limiter':this[_0x578705(0xbd)](),'positions':yo}),this[_0x578705(0xc7)]&&this[_0x578705(0xa3)][_0x578705(0xed)][_0x578705(0xdc)](0x0)?.[_0x578705(0x98)](_0x578705(0x87)));}[_0x46cdf6(0x91)](_0x49c712){const _0x41f33b=_0x46cdf6;this[_0x41f33b(0xf3)][_0x41f33b(0x114)](),this[_0x41f33b(0xf9)](),this[_0x41f33b(0x98)](_0x41f33b(0xbc),_0x49c712);}}export class SourcesBalloonButtonView extends _0x3d5c06{[_0x46cdf6(0x9f)];constructor(_0x494d7b){const _0x414189=_0x46cdf6;super(_0x494d7b),this[_0x414189(0xa1)]({'withText':!0x0,'role':_0x414189(0xd9)}),this[_0x414189(0x9f)]=this[_0x414189(0xbe)](),this[_0x414189(0xf8)]({'attributes':{'class':[Ho]}});}[_0x46cdf6(0xa0)](){const _0x5b77d5=_0x46cdf6;super[_0x5b77d5(0xa0)](),this[_0x5b77d5(0xc2)][_0x5b77d5(0x100)](this[_0x5b77d5(0x9f)]);}[_0x46cdf6(0xbe)](){const _0x2c84d8=_0x46cdf6,_0x31b13c=new _0x366d16();return _0x31b13c[_0x2c84d8(0xed)]=_0xcb40fe,_0x31b13c[_0x2c84d8(0xf8)]({'attributes':{'class':Ho+_0x2c84d8(0xe5)}}),_0x31b13c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x116620=_0x42e4;(function(_0x34b210,_0x16a691){const _0x3e239e=_0x42e4,_0x3e3c14=_0x34b210();while(!![]){try{const _0x143274=-parseInt(_0x3e239e(0x8d))/0x1*(-parseInt(_0x3e239e(0x88))/0x2)+parseInt(_0x3e239e(0x73))/0x3+parseInt(_0x3e239e(0x7e))/0x4+-parseInt(_0x3e239e(0x7d))/0x5*(parseInt(_0x3e239e(0x8b))/0x6)+parseInt(_0x3e239e(0x83))/0x7*(-parseInt(_0x3e239e(0x81))/0x8)+parseInt(_0x3e239e(0x7b))/0x9*(parseInt(_0x3e239e(0x8f))/0xa)+-parseInt(_0x3e239e(0x7c))/0xb*(parseInt(_0x3e239e(0x77))/0xc);if(_0x143274===_0x16a691)break;else _0x3e3c14['push'](_0x3e3c14['shift']());}catch(_0x49f2d3){_0x3e3c14['push'](_0x3e3c14['shift']());}}}(_0x2f5c,0x4f4f5));import{ButtonView as _0x227b3d,View as _0x35f1c0}from'ckeditor5/src/ui.js';import{IconStop as _0x3a8c94}from'ckeditor5/src/icons.js';function _0x42e4(_0x3d295d,_0x10efb0){const _0x2f5c96=_0x2f5c();return _0x42e4=function(_0x42e428,_0x55e5eb){_0x42e428=_0x42e428-0x72;let _0x507567=_0x2f5c96[_0x42e428];return _0x507567;},_0x42e4(_0x3d295d,_0x10efb0);}import{getTranslation as _0x1ff2d3}from'../../../aicore/utils/common-translations.js';function _0x2f5c(){const _0xe9e43f=['ck-ai-chat-controls-loader','_createCancelButtonView','ck-ai-button-secondary\x20ck-ai-button-stop-generating','_loaderView','4kKAIbz','AI_CHAT_STOP_GENERATING','locale','12SXGDxk','fire','222014gnRzpz','AI_CHAT_IS_WRITING','399970UQMPcV','ck-ai-chat-controls-loader-icon-dot','set','1276743AEUHNF','_createLoaderView','setTemplate','ck-ai-chat-controls-loader-wrapper','48qlViPy','execute','ck-reset_all','ck-ai-chat-controls-loader-icon','18EDWWEq','95766TZVWAU','818395VdyFee','1328840zxHNhM','abortPromptStream','_cancelButtonView','8giGnmG','div','4163446tVsJQP'];_0x2f5c=function(){return _0xe9e43f;};return _0x2f5c();}export class AIChatControlsLoaderView extends _0x35f1c0{[_0x116620(0x80)];[_0x116620(0x87)];constructor(_0x63baec){const _0x219d40=_0x116620;super(_0x63baec),this[_0x219d40(0x80)]=this[_0x219d40(0x85)](),this[_0x219d40(0x87)]=this[_0x219d40(0x74)](),this[_0x219d40(0x75)]({'tag':_0x219d40(0x82),'attributes':{'class':['ck',_0x219d40(0x76),_0x219d40(0x79)]},'children':[this[_0x219d40(0x87)],this[_0x219d40(0x80)]]});}[_0x116620(0x85)](){const _0x4d34f4=_0x116620,_0x23c448=new _0x227b3d(this[_0x4d34f4(0x8a)]);return _0x23c448[_0x4d34f4(0x72)]({'label':_0x1ff2d3(this[_0x4d34f4(0x8a)],_0x4d34f4(0x89)),'withText':!0x0,'class':_0x4d34f4(0x86),'icon':_0x3a8c94}),_0x23c448['on'](_0x4d34f4(0x78),()=>{const _0x351d0f=_0x4d34f4;this[_0x351d0f(0x8c)](_0x351d0f(0x7f));}),_0x23c448;}[_0x116620(0x74)](){const _0x32b1a4=_0x116620,_0x476aa9=new _0x35f1c0(this[_0x32b1a4(0x8a)]);return _0x476aa9[_0x32b1a4(0x75)]({'tag':_0x32b1a4(0x82),'attributes':{'class':[_0x32b1a4(0x84)]},'children':[{'tag':_0x32b1a4(0x82),'attributes':{'class':[_0x32b1a4(0x7a)]},'children':[{'tag':_0x32b1a4(0x82),'attributes':{'class':[_0x32b1a4(0x90)]}},{'tag':_0x32b1a4(0x82),'attributes':{'class':[_0x32b1a4(0x90)]}},{'tag':_0x32b1a4(0x82),'attributes':{'class':[_0x32b1a4(0x90)]}}]},{'text':_0x1ff2d3(this[_0x32b1a4(0x8a)],_0x32b1a4(0x8e))}]}),_0x476aa9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x47d01a=_0x2f1c;(function(_0x3d8e57,_0x7a141b){const _0x206045=_0x2f1c,_0xe60086=_0x3d8e57();while(!![]){try{const _0x43d2e0=parseInt(_0x206045(0x105))/0x1+-parseInt(_0x206045(0x134))/0x2*(parseInt(_0x206045(0xf7))/0x3)+parseInt(_0x206045(0x12e))/0x4+-parseInt(_0x206045(0x13a))/0x5*(parseInt(_0x206045(0xea))/0x6)+-parseInt(_0x206045(0x12a))/0x7+parseInt(_0x206045(0x119))/0x8+parseInt(_0x206045(0xfa))/0x9;if(_0x43d2e0===_0x7a141b)break;else _0xe60086['push'](_0xe60086['shift']());}catch(_0x24a6ce){_0xe60086['push'](_0xe60086['shift']());}}}(_0x19b4,0x21b3e));import{Collection as _0x393f2d}from'ckeditor5/src/utils.js';import{IconAI as _0x37c307,IconBulb as _0x392de0,IconWeb as _0x319e68}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x49d41f,ButtonLabelView as _0x414f8d,ButtonView as _0x22cb76,createDropdown as _0x66ac2,IconView as _0x55a45d,UIModel as _0x1be6d0,View as _0x34724c}from'ckeditor5/src/ui.js';import{getTranslation as _0x47cfdb}from'../../../aicore/utils/common-translations.js';const Ko=_0x47d01a(0x11c),Xo=_0x47d01a(0x144),Qo=_0x47d01a(0xf0),Zo=_0x47d01a(0xeb),tl=_0x47d01a(0x145),el=_0x47d01a(0x141),il=_0x47d01a(0x120),sl=_0x47d01a(0x136),ol='n';export class AIChatPromptCapabilitiesView extends _0x34724c{[_0x47d01a(0x11f)];[_0x47d01a(0x100)];[_0x47d01a(0xe9)];[_0x47d01a(0x132)];[_0x47d01a(0x108)];[_0x47d01a(0x12f)];constructor(_0x5f4e83){const _0x4e5953=_0x47d01a;super(_0x5f4e83),this[_0x4e5953(0x12b)](_0x4e5953(0x106),!0x1),this[_0x4e5953(0x12b)](_0x4e5953(0x122),!0x1),this[_0x4e5953(0x12b)](_0x4e5953(0x133),_0x4e5953(0xfe)),this[_0x4e5953(0x12b)](_0x4e5953(0xf6),!0x0),this[_0x4e5953(0x12b)](_0x4e5953(0xf8),null),this[_0x4e5953(0x12b)](_0x4e5953(0x129),null),this[_0x4e5953(0x132)]=this[_0x4e5953(0x13f)](),this[_0x4e5953(0x12f)]=this[_0x4e5953(0x10e)](),this[_0x4e5953(0x11f)]=this[_0x4e5953(0xf9)](),this[_0x4e5953(0x100)]=this[_0x4e5953(0x11d)](),this[_0x4e5953(0xe9)]=this[_0x4e5953(0x103)](),this[_0x4e5953(0x132)][_0x4e5953(0x140)][_0x4e5953(0x112)](_0x4e5953(0x12c))['to'](this,_0x4e5953(0x133),_0x2c934c=>_0x4e5953(0xfe)===_0x2c934c),this[_0x4e5953(0x132)][_0x4e5953(0x140)][_0x4e5953(0x112)](_0x4e5953(0xf4))['to'](this,_0x4e5953(0xf6),_0x42485b=>_0x42485b?this[_0x4e5953(0x132)][_0x4e5953(0x140)][_0x4e5953(0x10f)]:_0x47cfdb(this[_0x4e5953(0x12d)],_0x4e5953(0x130))),this[_0x4e5953(0x132)][_0x4e5953(0x112)](_0x4e5953(0x114))['to'](this,_0x4e5953(0xf6),_0x1a8e19=>_0x1a8e19),this[_0x4e5953(0x11f)][_0x4e5953(0x112)](_0x4e5953(0x118))['to'](this,_0x4e5953(0x106),_0x2f37ce=>_0x2f37ce),this[_0x4e5953(0x11f)][_0x4e5953(0x112)](_0x4e5953(0xf4))['to'](this,_0x4e5953(0x106),_0x1c5cb1=>_0x47cfdb(this[_0x4e5953(0x12d)],_0x1c5cb1?_0x4e5953(0x126):_0x4e5953(0x116))),this[_0x4e5953(0x100)][_0x4e5953(0x112)](_0x4e5953(0x118))['to'](this,_0x4e5953(0x122),_0x4d463e=>_0x4d463e),this[_0x4e5953(0x100)][_0x4e5953(0x112)](_0x4e5953(0xf4))['to'](this,_0x4e5953(0x122),_0x293693=>_0x47cfdb(this[_0x4e5953(0x12d)],_0x293693?_0x4e5953(0x10a):_0x4e5953(0x142))),this[_0x4e5953(0xe6)]({'tag':_0x4e5953(0x107),'attributes':{'class':[Ko]},'children':[this[_0x4e5953(0x132)],this[_0x4e5953(0x12f)],this[_0x4e5953(0x11f)],this[_0x4e5953(0x100)],this[_0x4e5953(0xe9)]]}),this[_0x4e5953(0x108)]=new _0x393f2d(),_0x49d41f(this[_0x4e5953(0x132)],this[_0x4e5953(0x108)]);}[_0x47d01a(0x11e)](_0x26a014,_0x2e0d60){const _0x6c4a06=_0x47d01a;if(_0x2e0d60)this[_0x6c4a06(0x12b)](_0x6c4a06(0x133),_0x6c4a06(0x10b));else{const _0x28d647=0x1===_0x26a014[_0x6c4a06(0x13d)];this[_0x6c4a06(0x12b)](_0x6c4a06(0x133),_0x28d647?_0x6c4a06(0x13e):_0x6c4a06(0xfe));}if(this[_0x6c4a06(0x108)][_0x6c4a06(0x11b)](),_0x26a014?.[_0x6c4a06(0x13d)])for(const _0x4dcbb2 of _0x26a014){const _0x2ef605=new _0x1be6d0({'label':_0x4dcbb2[_0x6c4a06(0x13e)],'withText':!0x0,'role':_0x6c4a06(0x10d),'id':_0x4dcbb2['id'],'model':_0x4dcbb2});_0x2ef605[_0x6c4a06(0x112)](_0x6c4a06(0x118))['to'](this,_0x6c4a06(0xf8),_0x58f325=>_0x58f325===_0x4dcbb2['id']),this[_0x6c4a06(0x108)][_0x6c4a06(0x109)]({'type':_0x6c4a06(0xfc),'model':_0x2ef605,'labelView':new ko(this[_0x6c4a06(0x12d)],_0x4dcbb2)});}}[_0x47d01a(0x124)](_0x315e3f){const _0x2cd597=_0x47d01a;this[_0x2cd597(0x12b)](_0x2cd597(0x106),_0x315e3f);}[_0x47d01a(0x102)](_0x59a8b9){const _0x21f59c=_0x47d01a;this[_0x21f59c(0x12b)](_0x21f59c(0x122),_0x59a8b9);}[_0x47d01a(0xee)](_0x826e3){const _0x22cf2f=_0x47d01a;if(!_0x826e3)return;this[_0x22cf2f(0xf8)]=_0x826e3['id'],this[_0x22cf2f(0x129)]=_0x826e3[_0x22cf2f(0x13e)]||_0x826e3['id'],this[_0x22cf2f(0x132)][_0x22cf2f(0x140)][_0x22cf2f(0x12b)](_0x22cf2f(0x10f),_0x826e3[_0x22cf2f(0x13e)]),this[_0x22cf2f(0x132)][_0x22cf2f(0x140)][_0x22cf2f(0x12b)](_0x22cf2f(0xf4),_0x826e3[_0x22cf2f(0x13e)]);const _0x48f5e7=_0x826e3[_0x22cf2f(0xf3)][_0x22cf2f(0x131)]?.[_0x22cf2f(0x10c)]??!0x1;this[_0x22cf2f(0x12b)](_0x22cf2f(0x106),!0x1),this[_0x22cf2f(0x11f)][_0x22cf2f(0x12b)](_0x22cf2f(0x118),!0x1),this[_0x22cf2f(0x11f)][_0x22cf2f(0x12b)](_0x22cf2f(0x114),_0x48f5e7),this[_0x22cf2f(0x11f)][_0x22cf2f(0x12b)](_0x22cf2f(0x12c),_0x48f5e7);const _0x1c2733=_0x826e3[_0x22cf2f(0xf3)][_0x22cf2f(0xe8)]?.[_0x22cf2f(0x10c)]??!0x1;this[_0x22cf2f(0x12b)](_0x22cf2f(0x122),!0x1),this[_0x22cf2f(0x100)][_0x22cf2f(0x12b)](_0x22cf2f(0x118),!0x1),this[_0x22cf2f(0x100)][_0x22cf2f(0x12b)](_0x22cf2f(0x114),_0x1c2733),this[_0x22cf2f(0x100)][_0x22cf2f(0x12b)](_0x22cf2f(0x12c),_0x1c2733);}[_0x47d01a(0x123)](){const _0x363155=_0x47d01a;this[_0x363155(0x12b)](_0x363155(0xf6),!0x0);}[_0x47d01a(0xef)](_0x21ba42){const _0x57156e=_0x47d01a;this[_0x57156e(0x12b)](_0x57156e(0xf6),!0x1),_0x21ba42&&this[_0x57156e(0x12b)](_0x57156e(0x133),_0x57156e(0x10b));}[_0x47d01a(0xf9)](){const _0x5392fe=_0x47d01a,_0x2505cd=new _0x22cb76();return _0x2505cd[_0x5392fe(0x12b)]({'label':_0x47cfdb(this[_0x5392fe(0x12d)],_0x5392fe(0xf2)),'icon':_0x319e68,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x2505cd['on'](_0x5392fe(0xe7),()=>{const _0x32845a=_0x5392fe;this[_0x32845a(0x128)](_0x32845a(0xf5));}),_0x2505cd;}[_0x47d01a(0x11d)](){const _0x5a5cb3=_0x47d01a,_0x2e7c9f=new _0x22cb76();return _0x2e7c9f[_0x5a5cb3(0x12b)]({'label':_0x47cfdb(this[_0x5a5cb3(0x12d)],_0x5a5cb3(0x13b)),'icon':_0x392de0,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x2e7c9f['on'](_0x5a5cb3(0xe7),()=>{const _0x8a988c=_0x5a5cb3;this[_0x8a988c(0x128)](_0x8a988c(0xec));}),_0x2e7c9f;}[_0x47d01a(0x103)](){const _0x425a8c=_0x47d01a,_0x36f20e=new _0x22cb76();return _0x36f20e[_0x425a8c(0x12b)]({'label':_0x47cfdb(this[_0x425a8c(0x12d)],_0x425a8c(0x125)),'icon':_0x37c307,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x47cfdb(this[_0x425a8c(0x12d)],_0x425a8c(0x125)),'tooltipPosition':ol}),_0x36f20e[_0x425a8c(0xed)]({'attributes':{'class':[Qo]}}),_0x36f20e['on'](_0x425a8c(0xe7),()=>{const _0x3d2b1a=_0x425a8c;console[_0x3d2b1a(0x115)](_0x3d2b1a(0x127)),alert(_0x3d2b1a(0x127));}),_0x36f20e;}[_0x47d01a(0x13f)](){const _0x5cf1a2=_0x47d01a,_0x55c041=_0x66ac2(this[_0x5cf1a2(0x12d)]);return _0x55c041[_0x5cf1a2(0x12b)]({'panelPosition':'ne','class':[tl]}),_0x55c041[_0x5cf1a2(0x140)][_0x5cf1a2(0x12b)]({'label':_0x47cfdb(this[_0x5cf1a2(0x12d)],_0x5cf1a2(0x146)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x5cf1a2(0xfb)](_0x55c041,_0x5cf1a2(0xe7),_0xef2c96=>{const _0x592071=_0x5cf1a2;this[_0x592071(0x128)](_0x592071(0x117),_0xef2c96[_0x592071(0x110)][_0x592071(0x143)]);}),_0x55c041;}[_0x47d01a(0x10e)](){const _0x1d0e4c=_0x47d01a,_0x45c7d4=new _o(this[_0x1d0e4c(0x12d)]);return _0x45c7d4[_0x1d0e4c(0x112)](_0x1d0e4c(0x11a))['to'](this,_0x1d0e4c(0x129),_0x226458=>_0x226458??''),_0x45c7d4[_0x1d0e4c(0x112)](_0x1d0e4c(0x12c))['to'](this,_0x1d0e4c(0x133),_0x53e73e=>_0x1d0e4c(0x13e)===_0x53e73e),_0x45c7d4;}}function _0x2f1c(_0x5d2f8a,_0x83b2f3){const _0x19b4ca=_0x19b4();return _0x2f1c=function(_0x2f1c77,_0x5438f1){_0x2f1c77=_0x2f1c77-0xe6;let _0x366bd=_0x19b4ca[_0x2f1c77];return _0x366bd;},_0x2f1c(_0x5d2f8a,_0x83b2f3);}function _0x19b4(){const _0x54564a=['860672TjiTlE','text','clear','ck-ai-chat__prompt-capabilities','_createReasoningButton','setModelList','_webSearchButton','ck-ai-chat-controls__model-selection__item-description','AI_CHAT_CAPABILITIES_YES','reasoningActive','enableModelSelector','setWebSearch','AI_CHAT_COMMANDS','AI_CHAT_DISABLE_WEB_SEARCH','Commands\x20are\x20not\x20implemented\x20yet.','fire','activeModelName','605955ydlpnC','set','isVisible','locale','296840aRQmPg','_modelNameView','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','webSearch','_modelSelectionDropdown','modelDisplayMode','1100MflCrf','_getCapabilityParts','ck-ai-chat-controls__model-selection__item-capabilities','bindTemplate','createCollection','span','42140uAdBTi','AI_CHAT_REASONING','description','length','name','_createModelSelectionDropdown','buttonView','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_ENABLE_REASONING','model','ck-ai-chat-controls-button','ck-ai-chat-controls__model-selection','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','setTemplate','execute','reasoning','_commandsButton','186DtEcuH','ck-ai-button-tertiary','toggleReasoning','extendTemplate','setModel','disableModelSelector','ck-ai-chat-controls-button--commands','style','AI_CHAT_SEARCH_WEB','capabilities','tooltip','toggleWebSearch','modelSelectorEnabled','687pjmTGU','activeModelId','_createWebSearchButton','3290535zAMbXT','listenTo','button','addMany','selector','ck-ai-chat-controls__model-name','_reasoningButton','ck-button__label','setReasoning','_createCommandsButton','ck-hidden','64420brzFbN','webSearchActive','div','_modelSelectionDropdownItems','add','AI_CHAT_DISABLE_REASONING','hidden','enabled','menuitemradio','_createModelNameView','label','source','content','bind','AI_CHAT_CAPABILITIES_NO','isEnabled','log','AI_CHAT_ENABLE_WEB_SEARCH','selectModel','isOn'];_0x19b4=function(){return _0x54564a;};return _0x19b4();}class ko extends _0x414f8d{constructor(_0x2b8439,_0x380497){const _0x39208d=_0x47d01a;super();const _0x54d8e4=this[_0x39208d(0x137)],_0x2b5eae=this[_0x39208d(0x138)]();this[_0x39208d(0xe6)]({'tag':_0x39208d(0x107),'attributes':{'class':['ck',_0x39208d(0x101)],'style':_0x54d8e4['to'](_0x39208d(0xf1)),'id':_0x54d8e4['to']('id')},'children':[{'tag':_0x39208d(0x107),'attributes':{'class':[el]},'children':[{'text':_0x54d8e4['to'](_0x39208d(0x11a))}]},{'tag':_0x39208d(0x107),'attributes':{'class':[il]},'children':[{'tag':_0x39208d(0x139),'children':[{'text':_0x380497[_0x39208d(0x13c)]}]}]},{'tag':_0x39208d(0x107),'attributes':{'class':[sl]},'children':_0x2b5eae}]}),_0x2b5eae[_0x39208d(0xfd)](this[_0x39208d(0x135)](_0x2b8439,_0x319e68,_0x39208d(0xf2),_0x380497[_0x39208d(0xf3)][_0x39208d(0x131)]?.[_0x39208d(0x10c)]??!0x1)),_0x2b5eae[_0x39208d(0xfd)](this[_0x39208d(0x135)](_0x2b8439,_0x392de0,_0x39208d(0x13b),_0x380497[_0x39208d(0xf3)][_0x39208d(0xe8)]?.[_0x39208d(0x10c)]??!0x1));}[_0x47d01a(0x135)](_0x56e42f,_0xfe4898,_0x243157,_0x447841){const _0x1ca89b=_0x47d01a,_0xced2ce=new _0x55a45d();_0xced2ce[_0x1ca89b(0x111)]=_0xfe4898;const _0x35510f=new _0x34724c(_0x56e42f);_0x35510f[_0x1ca89b(0xe6)]({'tag':_0x1ca89b(0x139),'children':[{'text':_0x47cfdb(_0x56e42f,_0x243157)+':\x20'}]});const _0x1cb576=new _0x34724c(_0x56e42f);return _0x1cb576[_0x1ca89b(0xe6)]({'tag':_0x1ca89b(0x139),'children':[{'text':_0x47cfdb(_0x56e42f,_0x447841?_0x1ca89b(0x121):_0x1ca89b(0x113))}]}),[_0xced2ce,_0x35510f,_0x1cb576];}}class _o extends _0x34724c{constructor(_0x165c37){const _0x32b2e3=_0x47d01a;super(_0x165c37),this[_0x32b2e3(0x12b)](_0x32b2e3(0x11a),void 0x0),this[_0x32b2e3(0x12b)](_0x32b2e3(0x12c),!0x0);const _0x348f71=this[_0x32b2e3(0x137)];this[_0x32b2e3(0xe6)]({'tag':_0x32b2e3(0x139),'attributes':{'class':['ck',_0x32b2e3(0xff),_0x348f71['if'](_0x32b2e3(0x12c),_0x32b2e3(0x104),_0x446dfc=>!_0x446dfc)]},'children':[{'text':_0x348f71['to'](_0x32b2e3(0x11a))}]});}}
|
|
23
|
+
const _0x52bd13=_0x3251;(function(_0x55a2a2,_0x53bc32){const _0xb633ec=_0x3251,_0x2136b9=_0x55a2a2();while(!![]){try{const _0x296ddb=-parseInt(_0xb633ec(0x1a4))/0x1+parseInt(_0xb633ec(0x1b9))/0x2+-parseInt(_0xb633ec(0x19b))/0x3*(-parseInt(_0xb633ec(0x1d3))/0x4)+-parseInt(_0xb633ec(0x1b0))/0x5+parseInt(_0xb633ec(0x1be))/0x6+-parseInt(_0xb633ec(0x188))/0x7+parseInt(_0xb633ec(0x1e4))/0x8;if(_0x296ddb===_0x53bc32)break;else _0x2136b9['push'](_0x2136b9['shift']());}catch(_0x343176){_0x2136b9['push'](_0x2136b9['shift']());}}}(_0x47a5,0xa45b6));import{Collection as _0x204ec0}from'ckeditor5/src/utils.js';function _0x3251(_0x1dea86,_0x219e19){const _0x47a509=_0x47a5();return _0x3251=function(_0x325144,_0x93403d){_0x325144=_0x325144-0x187;let _0x3e15bc=_0x47a509[_0x325144];return _0x3e15bc;},_0x3251(_0x1dea86,_0x219e19);}import{IconAI as _0x55bb13,IconBulb as _0x5e5d3e,IconWeb as _0x18d4c2}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x3a931b,ButtonLabelView as _0x358158,ButtonView as _0x251505,createDropdown as _0x4e861f,IconView as _0x25a46e,UIModel as _0x3fab4d,View as _0x1a740a}from'ckeditor5/src/ui.js';import{getTranslation as _0x90d7ca}from'../../../aicore/utils/common-translations.js';const Wo=_0x52bd13(0x195),jo=_0x52bd13(0x1b1),Go=_0x52bd13(0x1b4),Yo=_0x52bd13(0x191),qo=_0x52bd13(0x1d0),zo=_0x52bd13(0x193),Jo=_0x52bd13(0x1c9),Ko=_0x52bd13(0x1b8),Qo='n';export class AIChatPromptCapabilitiesView extends _0x1a740a{[_0x52bd13(0x1ca)];[_0x52bd13(0x1c4)];[_0x52bd13(0x1e6)];[_0x52bd13(0x1de)];[_0x52bd13(0x18b)];[_0x52bd13(0x1a1)];constructor(_0x377758){const _0x46623c=_0x52bd13;super(_0x377758),this[_0x46623c(0x1e3)](_0x46623c(0x1a2),!0x1),this[_0x46623c(0x1e3)](_0x46623c(0x1c3),!0x1),this[_0x46623c(0x1e3)](_0x46623c(0x1cb),_0x46623c(0x1d9)),this[_0x46623c(0x1e3)](_0x46623c(0x1a3),!0x0),this[_0x46623c(0x1e3)](_0x46623c(0x1e5),null),this[_0x46623c(0x1e3)](_0x46623c(0x1e2),null),this[_0x46623c(0x1de)]=this[_0x46623c(0x18f)](),this[_0x46623c(0x1a1)]=this[_0x46623c(0x18e)](),this[_0x46623c(0x1ca)]=this[_0x46623c(0x187)](),this[_0x46623c(0x1c4)]=this[_0x46623c(0x19e)](),this[_0x46623c(0x1e6)]=this[_0x46623c(0x1c2)](),this[_0x46623c(0x1de)][_0x46623c(0x1cd)][_0x46623c(0x1c8)](_0x46623c(0x1b6))['to'](this,_0x46623c(0x1cb),_0x3c643f=>_0x46623c(0x1d9)===_0x3c643f),this[_0x46623c(0x1de)][_0x46623c(0x1cd)][_0x46623c(0x1c8)](_0x46623c(0x1cf))['to'](this,_0x46623c(0x1a3),_0x5d33b0=>_0x5d33b0?this[_0x46623c(0x1de)][_0x46623c(0x1cd)][_0x46623c(0x1dc)]:_0x90d7ca(this[_0x46623c(0x199)],_0x46623c(0x19f))),this[_0x46623c(0x1de)][_0x46623c(0x1c8)](_0x46623c(0x1db))['to'](this,_0x46623c(0x1a3),_0x86ec6=>_0x86ec6),this[_0x46623c(0x1ca)][_0x46623c(0x1c8)](_0x46623c(0x1bf))['to'](this,_0x46623c(0x1a2),_0x21ea45=>_0x21ea45),this[_0x46623c(0x1ca)][_0x46623c(0x1c8)](_0x46623c(0x1cf))['to'](this,_0x46623c(0x1a2),_0x26bcaf=>_0x90d7ca(this[_0x46623c(0x199)],_0x26bcaf?_0x46623c(0x1aa):_0x46623c(0x19a))),this[_0x46623c(0x1c4)][_0x46623c(0x1c8)](_0x46623c(0x1bf))['to'](this,_0x46623c(0x1c3),_0x2be16d=>_0x2be16d),this[_0x46623c(0x1c4)][_0x46623c(0x1c8)](_0x46623c(0x1cf))['to'](this,_0x46623c(0x1c3),_0x140b0f=>_0x90d7ca(this[_0x46623c(0x199)],_0x140b0f?_0x46623c(0x1c0):_0x46623c(0x189))),this[_0x46623c(0x194)]({'tag':_0x46623c(0x1d2),'attributes':{'class':[Wo]},'children':[this[_0x46623c(0x1de)],this[_0x46623c(0x1a1)],this[_0x46623c(0x1ca)],this[_0x46623c(0x1c4)],this[_0x46623c(0x1e6)]]}),this[_0x46623c(0x18b)]=new _0x204ec0(),_0x3a931b(this[_0x46623c(0x1de)],this[_0x46623c(0x18b)]);}[_0x52bd13(0x1ac)](_0x5e4c5e,_0x4aba21){const _0x96811a=_0x52bd13;if(_0x4aba21)this[_0x96811a(0x1e3)](_0x96811a(0x1cb),_0x96811a(0x1da));else{const _0x175d65=0x1===_0x5e4c5e[_0x96811a(0x1e0)];this[_0x96811a(0x1e3)](_0x96811a(0x1cb),_0x175d65?_0x96811a(0x1ab):_0x96811a(0x1d9));}if(this[_0x96811a(0x18b)][_0x96811a(0x19c)](),_0x5e4c5e?.[_0x96811a(0x1e0)])for(const _0x2866c3 of _0x5e4c5e){const _0x282bf9=new _0x3fab4d({'label':_0x2866c3[_0x96811a(0x1ab)],'withText':!0x0,'role':_0x96811a(0x1d6),'id':_0x2866c3['id'],'model':_0x2866c3});_0x282bf9[_0x96811a(0x1c8)](_0x96811a(0x1bf))['to'](this,_0x96811a(0x1e5),_0x86429d=>_0x86429d===_0x2866c3['id']),this[_0x96811a(0x18b)][_0x96811a(0x1c5)]({'type':_0x96811a(0x1a6),'model':_0x282bf9,'labelView':new ko(this[_0x96811a(0x199)],_0x2866c3)});}}[_0x52bd13(0x1a7)](_0x46c3a0){const _0x9349e9=_0x52bd13;this[_0x9349e9(0x1e3)](_0x9349e9(0x1a2),_0x46c3a0);}[_0x52bd13(0x1b7)](_0x459a78){const _0x4212f2=_0x52bd13;this[_0x4212f2(0x1e3)](_0x4212f2(0x1c3),_0x459a78);}[_0x52bd13(0x1bc)](_0x1d1614){const _0x45e0f9=_0x52bd13;if(!_0x1d1614)return;this[_0x45e0f9(0x1e5)]=_0x1d1614['id'],this[_0x45e0f9(0x1e2)]=_0x1d1614[_0x45e0f9(0x1ab)]||_0x1d1614['id'],this[_0x45e0f9(0x1de)][_0x45e0f9(0x1cd)][_0x45e0f9(0x1e3)](_0x45e0f9(0x1dc),_0x1d1614[_0x45e0f9(0x1ab)]),this[_0x45e0f9(0x1de)][_0x45e0f9(0x1cd)][_0x45e0f9(0x1e3)](_0x45e0f9(0x1cf),_0x1d1614[_0x45e0f9(0x1ab)]);const _0x447ea5=_0x1d1614[_0x45e0f9(0x1ba)][_0x45e0f9(0x18a)]?.[_0x45e0f9(0x18c)]??!0x1;this[_0x45e0f9(0x1e3)](_0x45e0f9(0x1a2),!0x1),this[_0x45e0f9(0x1ca)][_0x45e0f9(0x1e3)](_0x45e0f9(0x1bf),!0x1),this[_0x45e0f9(0x1ca)][_0x45e0f9(0x1e3)](_0x45e0f9(0x1db),_0x447ea5),this[_0x45e0f9(0x1ca)][_0x45e0f9(0x1e3)](_0x45e0f9(0x1b6),_0x447ea5);const _0x4fbfd9=_0x1d1614[_0x45e0f9(0x1ba)][_0x45e0f9(0x1bd)]?.[_0x45e0f9(0x18c)]??!0x1;this[_0x45e0f9(0x1e3)](_0x45e0f9(0x1c3),!0x1),this[_0x45e0f9(0x1c4)][_0x45e0f9(0x1e3)](_0x45e0f9(0x1bf),!0x1),this[_0x45e0f9(0x1c4)][_0x45e0f9(0x1e3)](_0x45e0f9(0x1db),_0x4fbfd9),this[_0x45e0f9(0x1c4)][_0x45e0f9(0x1e3)](_0x45e0f9(0x1b6),_0x4fbfd9);}[_0x52bd13(0x1d5)](){const _0x5e912d=_0x52bd13;this[_0x5e912d(0x1e3)](_0x5e912d(0x1a3),!0x0);}[_0x52bd13(0x1c1)](_0x52d2c0){const _0x4bd16d=_0x52bd13;this[_0x4bd16d(0x1e3)](_0x4bd16d(0x1a3),!0x1),_0x52d2c0&&this[_0x4bd16d(0x1e3)](_0x4bd16d(0x1cb),_0x4bd16d(0x1da));}[_0x52bd13(0x187)](){const _0x433996=_0x52bd13,_0x359785=new _0x251505();return _0x359785[_0x433996(0x1e3)]({'label':_0x90d7ca(this[_0x433996(0x199)],_0x433996(0x1cc)),'icon':_0x18d4c2,'class':jo,'isToggleable':!0x0,'tooltipPosition':Qo}),_0x359785['on'](_0x433996(0x1a0),()=>{const _0xb72733=_0x433996;this[_0xb72733(0x19d)](_0xb72733(0x1a5));}),_0x359785;}[_0x52bd13(0x19e)](){const _0x5474ad=_0x52bd13,_0x4574a9=new _0x251505();return _0x4574a9[_0x5474ad(0x1e3)]({'label':_0x90d7ca(this[_0x5474ad(0x199)],_0x5474ad(0x1d1)),'icon':_0x5e5d3e,'class':jo,'isToggleable':!0x0,'tooltipPosition':Qo}),_0x4574a9['on'](_0x5474ad(0x1a0),()=>{const _0x2346fd=_0x5474ad;this[_0x2346fd(0x19d)](_0x2346fd(0x1bb));}),_0x4574a9;}[_0x52bd13(0x1c2)](){const _0x31b381=_0x52bd13,_0x1dbad0=new _0x251505();return _0x1dbad0[_0x31b381(0x1e3)]({'label':_0x90d7ca(this[_0x31b381(0x199)],_0x31b381(0x1d7)),'icon':_0x55bb13,'withText':!0x0,'class':jo,'isToggleable':!0x0,'tooltip':_0x90d7ca(this[_0x31b381(0x199)],_0x31b381(0x1d7)),'tooltipPosition':Qo}),_0x1dbad0[_0x31b381(0x1dd)]({'attributes':{'class':[Go]}}),_0x1dbad0['on'](_0x31b381(0x1a0),()=>{const _0x5ab2f5=_0x31b381;console[_0x5ab2f5(0x1a8)](_0x5ab2f5(0x1ae)),alert(_0x5ab2f5(0x1ae));}),_0x1dbad0;}[_0x52bd13(0x18f)](){const _0x54197f=_0x52bd13,_0x52fc22=_0x4e861f(this[_0x54197f(0x199)]);return _0x52fc22[_0x54197f(0x1e3)]({'panelPosition':'ne','class':[qo]}),_0x52fc22[_0x54197f(0x1cd)][_0x54197f(0x1e3)]({'label':_0x90d7ca(this[_0x54197f(0x199)],_0x54197f(0x1c6)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Qo,'class':Yo}),this[_0x54197f(0x1e1)](_0x52fc22,_0x54197f(0x1a0),_0x1e6344=>{const _0x3bdaf6=_0x54197f;this[_0x3bdaf6(0x19d)](_0x3bdaf6(0x198),_0x1e6344[_0x3bdaf6(0x197)][_0x3bdaf6(0x196)]);}),_0x52fc22;}[_0x52bd13(0x18e)](){const _0x145bff=_0x52bd13,_0x6d8f6f=new _o(this[_0x145bff(0x199)]);return _0x6d8f6f[_0x145bff(0x1c8)](_0x145bff(0x1a9))['to'](this,_0x145bff(0x1e2),_0xc3bd0d=>_0xc3bd0d??''),_0x6d8f6f[_0x145bff(0x1c8)](_0x145bff(0x1b6))['to'](this,_0x145bff(0x1cb),_0x96a5aa=>_0x145bff(0x1ab)===_0x96a5aa),_0x6d8f6f;}}function _0x47a5(){const _0x425e31=['AI_CHAT_DISABLE_WEB_SEARCH','name','setModelList','ck-button__label','Commands\x20are\x20not\x20implemented\x20yet.','description','3211225SiXIrX','ck-ai-chat-controls-button','style','AI_CHAT_CAPABILITIES_YES','ck-ai-chat-controls-button--commands','span','isVisible','setReasoning','ck-ai-chat-controls__model-selection__item-capabilities','720632yRKubH','capabilities','toggleReasoning','setModel','reasoning','3362532ewzQrc','isOn','AI_CHAT_DISABLE_REASONING','disableModelSelector','_createCommandsButton','reasoningActive','_reasoningButton','add','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','content','bind','ck-ai-chat-controls__model-selection__item-description','_webSearchButton','modelDisplayMode','AI_CHAT_SEARCH_WEB','buttonView','ck-ai-chat-controls__model-name','tooltip','ck-ai-chat-controls__model-selection','AI_CHAT_REASONING','div','332xzYOlL','_getCapabilityParts','enableModelSelector','menuitemradio','AI_CHAT_COMMANDS','bindTemplate','selector','hidden','isEnabled','label','extendTemplate','_modelSelectionDropdown','ck-hidden','length','listenTo','activeModelName','set','19358920Qtvefo','activeModelId','_commandsButton','_createWebSearchButton','5783204fFOfiB','AI_CHAT_ENABLE_REASONING','webSearch','_modelSelectionDropdownItems','enabled','createCollection','_createModelNameView','_createModelSelectionDropdown','addMany','ck-ai-button-tertiary','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls__model-selection__item-name','setTemplate','ck-ai-chat__prompt-capabilities','model','source','selectModel','locale','AI_CHAT_ENABLE_WEB_SEARCH','5091eUUBOM','clear','fire','_createReasoningButton','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','execute','_modelNameView','webSearchActive','modelSelectorEnabled','1339831WEBQft','toggleWebSearch','button','setWebSearch','log','text'];_0x47a5=function(){return _0x425e31;};return _0x47a5();}class ko extends _0x358158{constructor(_0x54596c,_0x3e6556){const _0x2fdfd8=_0x52bd13;super();const _0x5f59e4=this[_0x2fdfd8(0x1d8)],_0x4442de=this[_0x2fdfd8(0x18d)]();this[_0x2fdfd8(0x194)]({'tag':_0x2fdfd8(0x1d2),'attributes':{'class':['ck',_0x2fdfd8(0x1ad)],'style':_0x5f59e4['to'](_0x2fdfd8(0x1b2)),'id':_0x5f59e4['to']('id')},'children':[{'tag':_0x2fdfd8(0x1d2),'attributes':{'class':[zo]},'children':[{'text':_0x5f59e4['to'](_0x2fdfd8(0x1a9))}]},{'tag':_0x2fdfd8(0x1d2),'attributes':{'class':[Jo]},'children':[{'tag':_0x2fdfd8(0x1b5),'children':[{'text':_0x3e6556[_0x2fdfd8(0x1af)]}]}]},{'tag':_0x2fdfd8(0x1d2),'attributes':{'class':[Ko]},'children':_0x4442de}]}),_0x4442de[_0x2fdfd8(0x190)](this[_0x2fdfd8(0x1d4)](_0x54596c,_0x18d4c2,_0x2fdfd8(0x1cc),_0x3e6556[_0x2fdfd8(0x1ba)][_0x2fdfd8(0x18a)]?.[_0x2fdfd8(0x18c)]??!0x1)),_0x4442de[_0x2fdfd8(0x190)](this[_0x2fdfd8(0x1d4)](_0x54596c,_0x5e5d3e,_0x2fdfd8(0x1d1),_0x3e6556[_0x2fdfd8(0x1ba)][_0x2fdfd8(0x1bd)]?.[_0x2fdfd8(0x18c)]??!0x1));}[_0x52bd13(0x1d4)](_0x406669,_0x2d50ae,_0x393547,_0x2e61a1){const _0x107d02=_0x52bd13,_0x5ca77b=new _0x25a46e();_0x5ca77b[_0x107d02(0x1c7)]=_0x2d50ae;const _0x409690=new _0x1a740a(_0x406669);_0x409690[_0x107d02(0x194)]({'tag':_0x107d02(0x1b5),'children':[{'text':_0x90d7ca(_0x406669,_0x393547)+':\x20'}]});const _0x5cb964=new _0x1a740a(_0x406669);return _0x5cb964[_0x107d02(0x194)]({'tag':_0x107d02(0x1b5),'children':[{'text':_0x90d7ca(_0x406669,_0x2e61a1?_0x107d02(0x1b3):_0x107d02(0x192))}]}),[_0x5ca77b,_0x409690,_0x5cb964];}}class _o extends _0x1a740a{constructor(_0x586933){const _0x28f12c=_0x52bd13;super(_0x586933),this[_0x28f12c(0x1e3)](_0x28f12c(0x1a9),void 0x0),this[_0x28f12c(0x1e3)](_0x28f12c(0x1b6),!0x0);const _0x1393bc=this[_0x28f12c(0x1d8)];this[_0x28f12c(0x194)]({'tag':_0x28f12c(0x1b5),'attributes':{'class':['ck',_0x28f12c(0x1ce),_0x1393bc['if'](_0x28f12c(0x1b6),_0x28f12c(0x1df),_0x5f34b0=>!_0x5f34b0)]},'children':[{'text':_0x1393bc['to'](_0x28f12c(0x1a9))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a8177=_0x549d;(function(_0x4b4eb4,_0x1dcd55){const _0x597dbe=_0x549d,_0x39abdb=_0x4b4eb4();while(!![]){try{const _0x2c55e2=-parseInt(_0x597dbe(0x13e))/0x1*(-parseInt(_0x597dbe(0x169))/0x2)+parseInt(_0x597dbe(0x16e))/0x3+parseInt(_0x597dbe(0x12a))/0x4+parseInt(_0x597dbe(0x15e))/0x5*(-parseInt(_0x597dbe(0x144))/0x6)+-parseInt(_0x597dbe(0x152))/0x7*(parseInt(_0x597dbe(0x12e))/0x8)+-parseInt(_0x597dbe(0x147))/0x9*(parseInt(_0x597dbe(0x14e))/0xa)+-parseInt(_0x597dbe(0x136))/0xb;if(_0x2c55e2===_0x1dcd55)break;else _0x39abdb['push'](_0x39abdb['shift']());}catch(_0x5a44e7){_0x39abdb['push'](_0x39abdb['shift']());}}}(_0x23cc,0xbbc3c));import{IconSubmit as _0x440b70}from'ckeditor5/src/icons.js';import{ButtonView as _0x5a3bbf,AutocompleteView as _0x3830c5,createLabeledTextarea as _0x14e216}from'ckeditor5/src/ui.js';import{global as _0x46d294,isVisible as _0x74e6d6,Rect as _0x3d65bc,ResizeObserver as _0x368151}from'ckeditor5/src/utils.js';function _0x23cc(){const _0xf7e3d1=['fire','trim','8kgQekU','isEnabled','classList','right','placeholder','reset','fieldWrapperChildren','locale','5189580YkdLmY','MIN_ROWS','enter','uiLanguageDirection','excludeScrollbarsAndBorders','set','add','hasError','497YqlKEX','maxRows','requestAnimationFrame','ck-ai-chat__prompt-input_highlighted','queryView','minRows','4034652DVnphT','submitButtonView','extendTemplate','2728845zgIdHV','fieldView','left','update','setIsUploadInProgress','contains','value','10NOXKtR','target','rtl','remove','2257927FESIHn','isUploadInProgress','bind','render','sendUserMessage','width','isEmpty','execute','element','submit','destroy','keystrokes','5nCBrRv','ck-ai-chat__prompt-submit-button','setPlaceholderText','calc(','ck-ai-chat__prompt-input','MAX_ROWS','px\x20-\x20var(--ck-spacing-tiny))','focus','AI_CHAT_LABEL_SUBMIT','errorText','focusableChildren','3372IFpxfw','_queryViewResizeObserver','_addContextButtonView','_createSubmitButton','window','1735458WtbnCa','_setUpAddContextButtonPositioning','AI_CHAT_PROMPT_EMPTY_ERROR','4490576PfTJvT','style'];_0x23cc=function(){return _0xf7e3d1;};return _0x23cc();}import{getTranslation as _0x2a49ec}from'../../../aicore/utils/common-translations.js';function _0x549d(_0x4098ab,_0x1c1318){const _0x23ccc4=_0x23cc();return _0x549d=function(_0x549d73,_0xdfa15d){_0x549d73=_0x549d73-0x128;let _0x1fe3cb=_0x23ccc4[_0x549d73];return _0x1fe3cb;},_0x549d(_0x4098ab,_0x1c1318);}import{AIChatPromptSuggestionsListView as _0x4178f1}from'./aichatpromptsuggestionslistview.js';import{escape as _0x3470d4}from'es-toolkit/compat';const _h=_0x5a8177(0x141);export class AIChatPromptInputView extends _0x3830c5{[_0x5a8177(0x145)];static [_0x5a8177(0x137)]=0x1;static [_0x5a8177(0x163)]=0xc;[_0x5a8177(0x16b)];[_0x5a8177(0x16a)];constructor(_0xe18518,_0x483723){const _0x88d3dd=_0x5a8177;super(_0xe18518,{'queryView':{'label':'','creator':_0x14e216,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x4178f1(_0xe18518),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x88d3dd(0x13b)](_0x88d3dd(0x158),!0x0),this[_0x88d3dd(0x13b)](_0x88d3dd(0x153),!0x1),this[_0x88d3dd(0x16b)]=_0x483723,this[_0x88d3dd(0x16a)]=null,this[_0x88d3dd(0x142)][_0x88d3dd(0x148)][_0x88d3dd(0x143)]=AIChatPromptInputView[_0x88d3dd(0x137)],this[_0x88d3dd(0x142)][_0x88d3dd(0x148)][_0x88d3dd(0x13f)]=AIChatPromptInputView[_0x88d3dd(0x163)],this[_0x88d3dd(0x142)][_0x88d3dd(0x134)][_0x88d3dd(0x13c)](this[_0x88d3dd(0x16b)]),this[_0x88d3dd(0x128)](),this[_0x88d3dd(0x146)]({'attributes':{'class':['ck',_0x88d3dd(0x162)]}}),this[_0x88d3dd(0x145)]=this[_0x88d3dd(0x16c)](),this[_0x88d3dd(0x145)][_0x88d3dd(0x154)](_0x88d3dd(0x12f))['to'](this,_0x88d3dd(0x158),this,_0x88d3dd(0x153),(_0x5a7bc3,_0x3e347c)=>!_0x5a7bc3&&!_0x3e347c),this[_0x88d3dd(0x168)][_0x88d3dd(0x13c)](this[_0x88d3dd(0x145)]);}[_0x5a8177(0x155)](){const _0x4f4387=_0x5a8177;super[_0x4f4387(0x155)](),this[_0x4f4387(0x142)][_0x4f4387(0x134)][_0x4f4387(0x13c)](this[_0x4f4387(0x145)]),this[_0x4f4387(0x15d)][_0x4f4387(0x13b)](_0x4f4387(0x138),(_0x2409a6,_0x4a096e)=>{const _0x153106=_0x4f4387;this[_0x153106(0x153)]||this[_0x153106(0x158)]||_0x2409a6[_0x153106(0x14f)]==this[_0x153106(0x142)][_0x153106(0x148)][_0x153106(0x15a)]&&(this[_0x153106(0x15b)](),_0x4a096e());}),this[_0x4f4387(0x142)][_0x4f4387(0x148)]['on'](_0x4f4387(0x14a),()=>{const _0x36a5a9=_0x4f4387;this[_0x36a5a9(0x158)]=''===this[_0x36a5a9(0x142)][_0x36a5a9(0x148)][_0x36a5a9(0x15a)][_0x36a5a9(0x14d)]?.[_0x36a5a9(0x12d)]();});}[_0x5a8177(0x15c)](){const _0x46c785=_0x5a8177;super[_0x46c785(0x15c)](),this[_0x46c785(0x16a)]&&this[_0x46c785(0x16a)][_0x46c785(0x15c)]();}[_0x5a8177(0x15b)](){const _0x589ca6=_0x5a8177,_0x440045=this[_0x589ca6(0x142)][_0x589ca6(0x148)][_0x589ca6(0x15a)][_0x589ca6(0x14d)]?.[_0x589ca6(0x12d)]();if(!_0x440045)return this[_0x589ca6(0x142)][_0x589ca6(0x167)]=_0x2a49ec(this[_0x589ca6(0x135)],_0x589ca6(0x129)),void(this[_0x589ca6(0x142)][_0x589ca6(0x148)][_0x589ca6(0x13d)]=!0x0);this[_0x589ca6(0x142)][_0x589ca6(0x148)][_0x589ca6(0x13d)]=!0x1;const _0x540570=_0x3470d4(_0x440045);this[_0x589ca6(0x12c)](_0x589ca6(0x156),_0x540570),this[_0x589ca6(0x142)][_0x589ca6(0x148)][_0x589ca6(0x133)]();}[_0x5a8177(0x160)](_0x54fa9e){const _0x332516=_0x5a8177;this[_0x332516(0x142)][_0x332516(0x148)][_0x332516(0x13b)](_0x332516(0x132),_0x54fa9e);}[_0x5a8177(0x165)](_0xf7b2ab=!0x1){const _0x492bb4=_0x5a8177;super[_0x492bb4(0x165)](),_0xf7b2ab&&(this[_0x492bb4(0x15a)][_0x492bb4(0x130)][_0x492bb4(0x14c)](_h)||(this[_0x492bb4(0x15a)][_0x492bb4(0x130)][_0x492bb4(0x13c)](_h),setTimeout(()=>{const _0x312b4d=_0x492bb4;this[_0x312b4d(0x15a)][_0x312b4d(0x130)][_0x312b4d(0x151)](_h);},0x320)));}[_0x5a8177(0x16c)](){const _0x5ec79a=_0x5a8177,_0x2bf268=new _0x5a3bbf(this[_0x5ec79a(0x135)]);return _0x2bf268[_0x5ec79a(0x13b)]({'icon':_0x440b70,'label':_0x2a49ec(this[_0x5ec79a(0x135)],_0x5ec79a(0x166)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x5ec79a(0x15f),'isEnabled':!0x1}),_0x2bf268['on'](_0x5ec79a(0x159),()=>{const _0x1ca26c=_0x5ec79a;this[_0x1ca26c(0x15b)]();}),_0x2bf268;}[_0x5a8177(0x14b)](_0x562e64){const _0xb8fc43=_0x5a8177;this[_0xb8fc43(0x153)]=_0x562e64;}[_0x5a8177(0x128)](){const _0x348af9=_0x5a8177,_0x1f6c65=this[_0x348af9(0x135)],_0x42dafd=()=>{const _0x24ae89=_0x348af9;_0x46d294[_0x24ae89(0x16d)][_0x24ae89(0x140)](()=>{const _0x33fe28=_0x24ae89;if(_0x74e6d6(this[_0x33fe28(0x15a)])){const _0x1a739f=new _0x3d65bc(this[_0x33fe28(0x142)][_0x33fe28(0x148)][_0x33fe28(0x15a)]),_0x3be3ca=new _0x3d65bc(this[_0x33fe28(0x16b)][_0x33fe28(0x15a)]),_0x4b709c=_0x1a739f[_0x33fe28(0x157)],_0x2e6428=_0x33fe28(0x150)===_0x1f6c65[_0x33fe28(0x139)]?_0x33fe28(0x131):_0x33fe28(0x149);_0x1a739f[_0x33fe28(0x13a)]();const _0x5101c0=_0x4b709c-_0x1a739f[_0x33fe28(0x157)]+0x1;this[_0x33fe28(0x16b)][_0x33fe28(0x15a)][_0x33fe28(0x12b)][_0x2e6428]=_0x33fe28(0x161)+(_0x4b709c-_0x3be3ca[_0x33fe28(0x157)]-_0x5101c0)+_0x33fe28(0x164);}});};this[_0x348af9(0x142)][_0x348af9(0x148)]['on'](_0x348af9(0x14a),_0x42dafd),this['on'](_0x348af9(0x155),()=>{const _0x5242dc=_0x348af9;_0x42dafd(),this[_0x5242dc(0x16a)]=new _0x368151(this[_0x5242dc(0x142)][_0x5242dc(0x148)][_0x5242dc(0x15a)],()=>{_0x42dafd();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1b727f=_0x5c8f;(function(_0x14d088,_0x277cd3){const _0x2ac544=_0x5c8f,_0x46d06d=_0x14d088();while(!![]){try{const _0x47471d=-parseInt(_0x2ac544(0x1e1))/0x1+parseInt(_0x2ac544(0x1e7))/0x2*(-parseInt(_0x2ac544(0x1e3))/0x3)+parseInt(_0x2ac544(0x1e5))/0x4*(parseInt(_0x2ac544(0x1e8))/0x5)+parseInt(_0x2ac544(0x1e2))/0x6*(-parseInt(_0x2ac544(0x1df))/0x7)+parseInt(_0x2ac544(0x1dd))/0x8+-parseInt(_0x2ac544(0x1e9))/0x9+-parseInt(_0x2ac544(0x1e4))/0xa*(-parseInt(_0x2ac544(0x1ea))/0xb);if(_0x47471d===_0x277cd3)break;else _0x46d06d['push'](_0x46d06d['shift']());}catch(_0x597eb2){_0x46d06d['push'](_0x46d06d['shift']());}}}(_0xd694,0x99643));function _0x5c8f(_0x41ad39,_0x339b03){const _0xd6947c=_0xd694();return _0x5c8f=function(_0x5c8f99,_0x542652){_0x5c8f99=_0x5c8f99-0x1dd;let _0xc42e49=_0xd6947c[_0x5c8f99];return _0xc42e49;},_0x5c8f(_0x41ad39,_0x339b03);}import{ListView as _0x35171c}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x35171c{[_0x1b727f(0x1e6)](){const _0x12fa26=_0x1b727f;let _0x201439=0x0;for(const _0x45f55d of this[_0x12fa26(0x1e0)])_0x201439+=_0x45f55d[_0x12fa26(0x1e0)][_0x12fa26(0x1de)];return{'resultsCount':_0x201439,'totalItemsCount':_0x201439};}}function _0xd694(){const _0x3d803e=['31362580PgCENv','36xtVeQW','filter','4WyQxVf','657535Jyjgcp','9999585hwPapk','11urmxrT','559424GsLXUO','length','7WnLKdh','items','543510hbnviq','7274142SQfXiJ','1341789VKfUiH'];_0xd694=function(){return _0x3d803e;};return _0xd694();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xbb8c(_0x57abd6,_0x47ecdf){const _0x1dfec9=_0x1dfe();return _0xbb8c=function(_0xbb8cc4,_0x4c05da){_0xbb8cc4=_0xbb8cc4-0x101;let _0x15bcd1=_0x1dfec9[_0xbb8cc4];return _0x15bcd1;},_0xbb8c(_0x57abd6,_0x47ecdf);}const _0x1e6b23=_0xbb8c;function _0x1dfe(){const _0x3f213a=['_handleResourceSelection','test','locale','setResources','updateResourceState','addResourceToContext','fire','43412edNLlX','clear','11ZPtZrU','4ZDjKza','resource','10lbUXPR','10640wNImkF','replace','366QPQOAX','\x5c$&','ck-ai-chat-resources__list','3871017OKXxBO','90OokKqW','_source','useDefaultFiltering','forEach','highlightText','items','extendTemplate','2499392MLQqwP','91905kEAYOP','add','624138TtWyrB','trim','filter','19527684dWIrcN','label','execute'];_0x1dfe=function(){return _0x3f213a;};return _0x1dfe();}(function(_0x3c45da,_0x36177c){const _0x29bb96=_0xbb8c,_0x5058d4=_0x3c45da();while(!![]){try{const _0x510b2a=-parseInt(_0x29bb96(0x115))/0x1+-parseInt(_0x29bb96(0x102))/0x2*(-parseInt(_0x29bb96(0x113))/0x3)+-parseInt(_0x29bb96(0x122))/0x4*(-parseInt(_0x29bb96(0x10b))/0x5)+-parseInt(_0x29bb96(0x107))/0x6*(parseInt(_0x29bb96(0x105))/0x7)+-parseInt(_0x29bb96(0x112))/0x8+-parseInt(_0x29bb96(0x10a))/0x9*(parseInt(_0x29bb96(0x104))/0xa)+parseInt(_0x29bb96(0x101))/0xb*(parseInt(_0x29bb96(0x118))/0xc);if(_0x510b2a===_0x36177c)break;else _0x5058d4['push'](_0x5058d4['shift']());}catch(_0x20c007){_0x5058d4['push'](_0x5058d4['shift']());}}}(_0x1dfe,0x67a58));import{ListView as _0xd1fced}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x1e497c}from'./aichatresourcelistitemview.js';const uc=_0x1e6b23(0x109);export class AIChatContextResourcesListView extends _0xd1fced{[_0x1e6b23(0x10c)];constructor(_0x41d5af,_0x103081){const _0x44aa74=_0x1e6b23;super(_0x41d5af),this[_0x44aa74(0x10c)]=_0x103081,this[_0x44aa74(0x111)]({'attributes':{'class':[uc]}});}[_0x1e6b23(0x11e)](_0x19dfd3,_0x95c303){const _0x26dabb=_0x1e6b23;this[_0x26dabb(0x110)][_0x26dabb(0x123)]();let _0x1b9e67=_0x19dfd3;if(this[_0x26dabb(0x10c)][_0x26dabb(0x10d)]&&_0x95c303&&''!==_0x95c303[_0x26dabb(0x116)]()){const _0x2ab4b7=new RegExp(_0x95c303[_0x26dabb(0x106)](/[.*+?^${}()|[\]\\]/g,_0x26dabb(0x108)),'gi');_0x1b9e67=_0x19dfd3[_0x26dabb(0x117)](_0x4b8613=>_0x2ab4b7[_0x26dabb(0x11c)](_0x4b8613[_0x26dabb(0x119)]));}for(const _0x1d034d of _0x1b9e67){const _0x1211b8=new _0x1e497c(this[_0x26dabb(0x11d)],_0x1d034d);_0x1211b8['on'](_0x26dabb(0x11a),()=>{const _0x216cd1=_0x26dabb;this[_0x216cd1(0x11b)](this[_0x216cd1(0x10c)],_0x1d034d);}),this[_0x26dabb(0x110)][_0x26dabb(0x114)](_0x1211b8);}this[_0x26dabb(0x10c)][_0x26dabb(0x10d)]&&this[_0x26dabb(0x10f)](_0x95c303);}[_0x1e6b23(0x10f)](_0x162961){const _0x4b599f=_0x1e6b23;this[_0x4b599f(0x10c)][_0x4b599f(0x10d)]&&this[_0x4b599f(0x110)][_0x4b599f(0x10e)](_0x304cca=>{const _0x14aa87=_0x4b599f;_0x304cca[_0x14aa87(0x10f)](_0x162961);});}[_0x1e6b23(0x11f)](_0x1b5c2f,_0x4c812b){const _0x436e97=_0x1e6b23;for(const _0x18e7da of this[_0x436e97(0x110)]){const _0x3e6f16=_0x18e7da;_0x3e6f16[_0x436e97(0x103)]['id']===_0x1b5c2f&&_0x3e6f16[_0x436e97(0x11f)](_0x4c812b);}}[_0x1e6b23(0x11b)](_0x3eeb95,_0x5d6bfc){const _0x1fd43a=_0x1e6b23;this[_0x1fd43a(0x121)](_0x1fd43a(0x120),{'source':_0x3eeb95,'resource':_0x5d6bfc});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18415a=_0x204b;(function(_0xd9e536,_0x50228f){const _0x1945ec=_0x204b,_0x325654=_0xd9e536();while(!![]){try{const _0x53cab2=parseInt(_0x1945ec(0x140))/0x1*(-parseInt(_0x1945ec(0x12e))/0x2)+-parseInt(_0x1945ec(0x149))/0x3+-parseInt(_0x1945ec(0x12b))/0x4+parseInt(_0x1945ec(0x11b))/0x5+-parseInt(_0x1945ec(0x129))/0x6*(parseInt(_0x1945ec(0x11d))/0x7)+-parseInt(_0x1945ec(0x133))/0x8*(-parseInt(_0x1945ec(0x130))/0x9)+parseInt(_0x1945ec(0x128))/0xa*(parseInt(_0x1945ec(0x12c))/0xb);if(_0x53cab2===_0x50228f)break;else _0x325654['push'](_0x325654['shift']());}catch(_0x514201){_0x325654['push'](_0x325654['shift']());}}}(_0x1fe3,0x2c6d3));import{View as _0x3686ef,ViewCollection as _0x128699}from'ckeditor5/src/ui.js';import{uid as _0x32a4b6}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x3a1599}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x55d262}from'./aichatresourcessearchinputview.js';function _0x204b(_0x22cfe0,_0x1e3519){const _0x1fe380=_0x1fe3();return _0x204b=function(_0x204b6c,_0x38223f){_0x204b6c=_0x204b6c-0x11b;let _0xa12502=_0x1fe380[_0x204b6c];return _0xa12502;},_0x204b(_0x22cfe0,_0x1e3519);}import{AISkeletonView as _0x2e2660,SKELETON_DEFINITIONS as _0x4e4d57}from'../../../../aicore/ui/aiskeleton.js';function _0x1fe3(){const _0xb0bea4=['loadSourceResources','length','_resourcesListView','_searchView','search','setResources','locale','extendTemplate','_searchSection','loadResources','_createSearchSection','190177RNLWTM','searchInputVisibleFrom','_createSkeletonView','fire','setTemplate','render','ck-hidden','ck-ai-chat-resources','div','380049eXNnDD','_source','_skeletonLoader','isLoading','aiChatResources','1513170BOFVXb','_createSearchView','46921PMaOuE','addResourceToContext','bindTemplate','_createResourcesListView','set','getQuery','updateResourceState','_searchInputVisibleFrom','children','has','ck\x20ck-search','30CuGQZh','54jKbzJv','add','1123872YqefNM','972939PzHJdZ','delegate','2LpSNbN','highlightText','27zOkPSw','useDefaultFiltering','source','725720bCHywN','_latestLoadResourcesUid'];_0x1fe3=function(){return _0xb0bea4;};return _0x1fe3();}export class AIChatContextResourcesView extends _0x3686ef{[_0x18415a(0x138)];[_0x18415a(0x13d)];[_0x18415a(0x124)];[_0x18415a(0x137)];[_0x18415a(0x14b)];[_0x18415a(0x14a)];[_0x18415a(0x125)];[_0x18415a(0x134)]=null;constructor(_0x1ca13d,_0x87b6bf){const _0x1515d1=_0x18415a;super(_0x1ca13d),this[_0x1515d1(0x14a)]=_0x87b6bf[_0x1515d1(0x132)],this[_0x1515d1(0x124)]=_0x87b6bf[_0x1515d1(0x141)]??0x7,this[_0x1515d1(0x121)](_0x1515d1(0x14c),!0x0),this[_0x1515d1(0x138)]=this[_0x1515d1(0x11c)](),this[_0x1515d1(0x13d)]=this[_0x1515d1(0x13f)](),this[_0x1515d1(0x137)]=this[_0x1515d1(0x120)](),this[_0x1515d1(0x14b)]=this[_0x1515d1(0x142)](),this[_0x1515d1(0x125)]=new _0x128699([this[_0x1515d1(0x14b)],this[_0x1515d1(0x137)]]),this[_0x1515d1(0x144)]({'tag':_0x1515d1(0x148),'attributes':{'class':_0x1515d1(0x147)},'children':this[_0x1515d1(0x125)]});}[_0x18415a(0x11c)](){const _0x1ff21f=_0x18415a;return new _0x55d262(this[_0x1ff21f(0x13b)]);}[_0x18415a(0x13f)](){const _0x50ee92=_0x18415a,_0x108532=new _0x3686ef(this[_0x50ee92(0x13b)]);return _0x108532[_0x50ee92(0x144)]({'tag':_0x50ee92(0x148),'attributes':{'class':_0x50ee92(0x127)},'children':[this[_0x50ee92(0x138)]]}),this[_0x50ee92(0x138)]['on'](_0x50ee92(0x139),(_0x3bb54d,_0x24c886)=>{const _0x2223d3=_0x50ee92;this[_0x2223d3(0x13e)](_0x24c886),this[_0x2223d3(0x14a)][_0x2223d3(0x131)]&&this[_0x2223d3(0x137)][_0x2223d3(0x12f)](_0x24c886);}),_0x108532;}[_0x18415a(0x120)](){const _0x3e435c=_0x18415a,_0x3de40e=new _0x3a1599(this[_0x3e435c(0x13b)],this[_0x3e435c(0x14a)]);return _0x3de40e[_0x3e435c(0x12d)](_0x3e435c(0x11e))['to'](this),_0x3de40e[_0x3e435c(0x13c)]({'attributes':{'class':this[_0x3e435c(0x11f)]['if'](_0x3e435c(0x14c),_0x3e435c(0x146))}}),_0x3de40e;}[_0x18415a(0x142)](){const _0xfad6a5=_0x18415a,_0x733391=new _0x2e2660(this[_0xfad6a5(0x13b)],_0x4e4d57[_0xfad6a5(0x14d)]);return _0x733391[_0xfad6a5(0x13c)]({'attributes':{'class':[this[_0xfad6a5(0x11f)]['if'](_0xfad6a5(0x14c),_0xfad6a5(0x146),_0x4433f7=>!_0x4433f7)]}}),_0x733391;}[_0x18415a(0x145)](){const _0xce6f33=_0x18415a;super[_0xce6f33(0x145)](),this[_0xce6f33(0x13e)]('');}[_0x18415a(0x13e)](_0x5b9883){const _0x262dc9=_0x18415a,_0x55cee3=_0x32a4b6();this[_0x262dc9(0x134)]=_0x55cee3,this[_0x262dc9(0x143)](_0x262dc9(0x135),{'sourceId':this[_0x262dc9(0x14a)]['id'],'query':_0x5b9883,'uid':_0x55cee3}),this[_0x262dc9(0x14c)]=!0x0;}[_0x18415a(0x13a)](_0x286a43,_0x15cc38){const _0x5003a3=_0x18415a;if(_0x15cc38&&_0x15cc38!==this[_0x5003a3(0x134)])return;const _0xb38c79=this[_0x5003a3(0x14a)][_0x5003a3(0x131)]?this[_0x5003a3(0x138)][_0x5003a3(0x122)]():'';this[_0x5003a3(0x137)][_0x5003a3(0x13a)](_0x286a43,_0xb38c79),_0x286a43[_0x5003a3(0x136)]>=this[_0x5003a3(0x124)]&&!this[_0x5003a3(0x125)][_0x5003a3(0x126)](this[_0x5003a3(0x13d)])&&this[_0x5003a3(0x125)][_0x5003a3(0x12a)](this[_0x5003a3(0x13d)],0x0),requestAnimationFrame(()=>{const _0x267501=_0x5003a3;this[_0x267501(0x14c)]=!0x1;});}[_0x18415a(0x123)](_0x5b647d,_0x177948){const _0x3f0c3e=_0x18415a;this[_0x3f0c3e(0x137)][_0x3f0c3e(0x123)](_0x5b647d,_0x177948);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b7d90=_0x5ba9;function _0x5ba9(_0x1d08bb,_0x335cfb){const _0x3d9c5e=_0x3d9c();return _0x5ba9=function(_0x5ba9f2,_0x2d16e4){_0x5ba9f2=_0x5ba9f2-0xbc;let _0x4a27d6=_0x3d9c5e[_0x5ba9f2];return _0x4a27d6;},_0x5ba9(_0x1d08bb,_0x335cfb);}(function(_0x289f5a,_0x275de0){const _0xd3da37=_0x5ba9,_0x30eb3f=_0x289f5a();while(!![]){try{const _0x39ecf=parseInt(_0xd3da37(0xcf))/0x1*(-parseInt(_0xd3da37(0xce))/0x2)+-parseInt(_0xd3da37(0xcb))/0x3*(parseInt(_0xd3da37(0xc6))/0x4)+-parseInt(_0xd3da37(0xdc))/0x5*(-parseInt(_0xd3da37(0xd2))/0x6)+parseInt(_0xd3da37(0xd9))/0x7+-parseInt(_0xd3da37(0xdd))/0x8+parseInt(_0xd3da37(0xca))/0x9*(-parseInt(_0xd3da37(0xc4))/0xa)+-parseInt(_0xd3da37(0xbe))/0xb*(-parseInt(_0xd3da37(0xbc))/0xc);if(_0x39ecf===_0x275de0)break;else _0x30eb3f['push'](_0x30eb3f['shift']());}catch(_0x3e8753){_0x30eb3f['push'](_0x30eb3f['shift']());}}}(_0x3d9c,0x78c92));import{HighlightedTextView as _0x2183e9,IconView as _0x20d683,ListItemView as _0x176845}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x510428}from'es-toolkit/compat';function _0x3d9c(){const _0x871ac5=['1152WcOQqT','994DOGCHZ','_createTitleView','span','406662VvKqHA','text','updateResourceState','FILE','set','ck-ai-chat-resources__item','_setupTemplate','5231366UKuQOm','URL','ck-hidden','35rpcGdq','5418320ngWXGz','bindTemplate','ck-ai-chat-resources__item-title','_createIconView','TEXT','ck-ai-chat-resources__item--in-context','isInContext','isVisible','ck-ai-chat-resources__item__icon','_titleView','label','highlightText','resource','131628avMVvg','getResourceIcon','1221vxyNIS','div','_updateIcon','render','extendTemplate','type','59900xSFpxQ','trim','512IVOZOw','content','setTemplate','_iconView','450zwQDjY','9264eWHOKZ','execute','DOCUMENT'];_0x3d9c=function(){return _0x871ac5;};return _0x3d9c();}import{AIContextItemType as _0x5276fa}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x376492,IconCheck as _0xc65640,IconDocument as _0x4ba44f,IconDocumentOutline as _0x4e60d9,IconLink as _0x2e4146}from'@ckeditor/ckeditor5-icons';const Jr=_0x2b7d90(0xd7),Kr=_0x2b7d90(0xe2),Mr=_0x2b7d90(0xdf),Nr=_0x2b7d90(0xe5);export class AIChatResourceListItemView extends _0x176845{[_0x2b7d90(0xe9)];[_0x2b7d90(0xe6)];[_0x2b7d90(0xc9)];constructor(_0x233dff,_0x2579d6){const _0x470adc=_0x2b7d90;super(_0x233dff),this[_0x470adc(0xe9)]=_0x2579d6,this[_0x470adc(0xd6)](_0x470adc(0xe3),!!_0x2579d6[_0x470adc(0xe3)]),this[_0x470adc(0xe6)]=this[_0x470adc(0xd0)](),this[_0x470adc(0xc9)]=this[_0x470adc(0xe0)](),this[_0x470adc(0xd8)]();}[_0x2b7d90(0xc1)](){const _0x144439=_0x2b7d90;super[_0x144439(0xc1)]();}[_0x2b7d90(0xbd)](_0x5c54ad){const _0x422a35=_0x2b7d90;if(_0x5c54ad[_0x422a35(0xe3)])return _0xc65640;switch(_0x5c54ad[_0x422a35(0xc3)]){case _0x5276fa[_0x422a35(0xcd)]:return _0x4ba44f;case _0x5276fa[_0x422a35(0xda)]:return _0x2e4146;case _0x5276fa[_0x422a35(0xd5)]:case _0x5276fa[_0x422a35(0xe1)]:return _0x376492;default:return _0x4e60d9;}}[_0x2b7d90(0xe8)](_0x29f6b9){const _0x176994=_0x2b7d90;if(!_0x29f6b9||''===_0x29f6b9[_0x176994(0xc5)]())return void this[_0x176994(0xe6)][_0x176994(0xe8)](null);const _0x12ba49=new RegExp(_0x510428(_0x29f6b9),'gi');this[_0x176994(0xe6)][_0x176994(0xe8)](_0x12ba49);}[_0x2b7d90(0xd4)](_0x35cf4c){const _0x151820=_0x2b7d90;this[_0x151820(0xe9)][_0x151820(0xe3)]=_0x35cf4c,this[_0x151820(0xe3)]=_0x35cf4c,this[_0x151820(0xc0)]();}[_0x2b7d90(0xd0)](){const _0x1bccb1=_0x2b7d90,_0x20499e=new _0x2183e9();return _0x20499e[_0x1bccb1(0xd3)]=this[_0x1bccb1(0xe9)][_0x1bccb1(0xe7)],_0x20499e[_0x1bccb1(0xc2)]({'tag':_0x1bccb1(0xd1),'attributes':{'class':[Mr]}}),_0x20499e;}[_0x2b7d90(0xe0)](){const _0x3f4ad9=_0x2b7d90,_0x197343=new _0x20d683();return _0x197343[_0x3f4ad9(0xc7)]=this[_0x3f4ad9(0xbd)](this[_0x3f4ad9(0xe9)]),_0x197343;}[_0x2b7d90(0xd8)](){const _0x2be21b=_0x2b7d90,_0x27c3fb=this[_0x2be21b(0xde)];this[_0x2be21b(0xc8)]({'tag':_0x2be21b(0xbf),'attributes':{'class':[Jr,_0x27c3fb['if'](_0x2be21b(0xe4),_0x2be21b(0xdb),_0x888ab7=>!_0x888ab7),_0x27c3fb['if'](_0x2be21b(0xe3),Kr)]},'children':[{'tag':_0x2be21b(0xbf),'attributes':{'class':[Nr]},'children':[this[_0x2be21b(0xc9)]]},this[_0x2be21b(0xe6)]],'on':{'click':_0x27c3fb['to'](_0x2be21b(0xcc))}});}[_0x2b7d90(0xc0)](){const _0x30442f=_0x2b7d90;this[_0x30442f(0xc9)][_0x30442f(0xc7)]=this[_0x30442f(0xbd)](this[_0x30442f(0xe9)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b143a=_0x33f2;(function(_0x57fffe,_0x2b257d){const _0x93adf=_0x33f2,_0x3a2292=_0x57fffe();while(!![]){try{const _0x1ecce2=parseInt(_0x93adf(0x1e9))/0x1+parseInt(_0x93adf(0x1d8))/0x2+parseInt(_0x93adf(0x1f8))/0x3+-parseInt(_0x93adf(0x1d1))/0x4+parseInt(_0x93adf(0x1fa))/0x5+-parseInt(_0x93adf(0x1e0))/0x6+-parseInt(_0x93adf(0x1c2))/0x7;if(_0x1ecce2===_0x2b257d)break;else _0x3a2292['push'](_0x3a2292['shift']());}catch(_0x3abb7d){_0x3a2292['push'](_0x3a2292['shift']());}}}(_0xb62d,0xdc8a0));import{BalloonPanelView as _0x58dd45,ButtonView as _0x57f5ae,clickOutsideHandler as _0x230f0b,FormHeaderView as _0xde744e}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x473591}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x51e63b}from'../../../../aicore/utils/common-translations.js';function _0x33f2(_0x38e503,_0x3fd195){const _0xb62d7b=_0xb62d();return _0x33f2=function(_0x33f207,_0x45ab2d){_0x33f207=_0x33f207-0x1c2;let _0x4bb464=_0xb62d7b[_0x33f207];return _0x4bb464;},_0x33f2(_0x38e503,_0x3fd195);}import{AIChatContextResourcesView as _0x5f0131}from'./aichatcontextresourcesview.js';function _0xb62d(){const _0x4206d6=['destroy','content','isAnyResourceBalloonVisible','show','_locale','delete','_createBalloonResourcesView','_createSourceResourceBalloonPanel','set','3423620FoSmEN','showSourceResourcesBalloon','get','children','searchInputVisibleFrom','execute','updateResourceState','2293280HnncLY','resource','add','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','element','_createBalloonHeader','onBalloonClosed','isVisible','3464664PguPDV','change:isLoading','closeSourceResourceBalloon','once','_bodyCollection','_sourceResourceBalloons','setResources','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','onLoadSourceResources','1281702ToIxHG','_config','extendTemplate','clear','_setupSingleResourceBalloonClickOutsideHandler','onBackToContext','onResourceSelected','hide','values','_addSourceResourceContent','_createBackButton','ck-button-icon\x20ck-button-back','pin','source','label','2520744VtvQNk','loadSourceResources','7801535sFxnDU','addResourceToContext','17445540VTXnaJ','populateSourceResourceBalloon','_getResourcesViewFromBalloon','getLimiterElement','ck-ai-chat-context-controls__source-balloon-panel','getTargetElement'];_0xb62d=function(){return _0x4206d6;};return _0xb62d();}const lc=_0x3b143a(0x1c6),Bc=_0x3b143a(0x1f4),_c=_0x3b143a(0x1e7);export class AIChatResourcesBalloonView{[_0x3b143a(0x1e5)]=new Map();[_0x3b143a(0x1e4)];[_0x3b143a(0x1cc)];[_0x3b143a(0x1ea)];constructor(_0x472244,_0xa8f008,_0x2e7573){const _0x5eb069=_0x3b143a;this[_0x5eb069(0x1cc)]=_0x472244,this[_0x5eb069(0x1e4)]=_0xa8f008,this[_0x5eb069(0x1ea)]=_0x2e7573;}[_0x3b143a(0x1d2)]({source:_0x36ed01,withBackButton:_0x4d471e}){const _0x5c291b=_0x3b143a;let _0x2aa29a=this[_0x5c291b(0x1e5)][_0x5c291b(0x1d3)](_0x36ed01['id']);_0x2aa29a||(_0x2aa29a=this[_0x5c291b(0x1cf)](),this[_0x5c291b(0x1e5)][_0x5c291b(0x1d0)](_0x36ed01['id'],_0x2aa29a),this[_0x5c291b(0x1ed)](_0x2aa29a)),this[_0x5c291b(0x1f2)]({'balloonPanel':_0x2aa29a,'source':_0x36ed01,'withBackButton':_0x4d471e}),_0x2aa29a[_0x5c291b(0x1cb)]();const _0x3ceb23=this[_0x5c291b(0x1ea)][_0x5c291b(0x1c7)]();_0x3ceb23&&_0x2aa29a[_0x5c291b(0x1f5)]({'target':_0x3ceb23,'limiter':this[_0x5c291b(0x1ea)][_0x5c291b(0x1c5)]()});}[_0x3b143a(0x1c3)](_0x4c113c,_0x521eb2,_0x3bcb0f){const _0x3db4ec=_0x3b143a,_0x203742=this[_0x3db4ec(0x1e5)][_0x3db4ec(0x1d3)](_0x4c113c);if(!_0x203742)return;const _0x1305a6=this[_0x3db4ec(0x1c4)](_0x203742);_0x1305a6&&(_0x1305a6[_0x3db4ec(0x1e6)](_0x521eb2,_0x3bcb0f),_0x1305a6[_0x3db4ec(0x1e3)](_0x3db4ec(0x1e1),()=>{const _0x29a6b1=_0x3db4ec;_0x203742[_0x29a6b1(0x1f5)]({'target':this[_0x29a6b1(0x1ea)][_0x29a6b1(0x1c7)](),'limiter':this[_0x29a6b1(0x1ea)][_0x29a6b1(0x1c5)]()});}));}[_0x3b143a(0x1e2)](_0x2f7bff){const _0x36ef4e=_0x3b143a,_0x1f0ff3=this[_0x36ef4e(0x1e5)][_0x36ef4e(0x1d3)](_0x2f7bff);_0x1f0ff3&&requestAnimationFrame(()=>{const _0x106ab7=_0x36ef4e;_0x1f0ff3[_0x106ab7(0x1f0)](),this[_0x106ab7(0x1e5)][_0x106ab7(0x1cd)](_0x2f7bff),this[_0x106ab7(0x1ea)][_0x106ab7(0x1de)]();});}[_0x3b143a(0x1ca)](){const _0xb27b20=_0x3b143a;for(const _0x2b250f of this[_0xb27b20(0x1e5)][_0xb27b20(0x1f1)]())if(_0x2b250f[_0xb27b20(0x1df)])return!0x0;return!0x1;}[_0x3b143a(0x1d7)](_0x3acc5c,_0x1549e0,_0x345294){const _0x3ed641=_0x3b143a,_0x4931ed=this[_0x3ed641(0x1e5)][_0x3ed641(0x1d3)](_0x3acc5c);if(!_0x4931ed||!_0x4931ed[_0x3ed641(0x1df)])return;const _0x5224e9=this[_0x3ed641(0x1ea)][_0x3ed641(0x1c7)]();if(!_0x5224e9)return;_0x4931ed[_0x3ed641(0x1f5)]({'target':_0x5224e9,'limiter':this[_0x3ed641(0x1ea)][_0x3ed641(0x1c5)]()});const _0x56e6d7=this[_0x3ed641(0x1c4)](_0x4931ed);_0x56e6d7&&_0x56e6d7[_0x3ed641(0x1d7)](_0x1549e0,_0x345294);}[_0x3b143a(0x1c8)](){const _0x439e56=_0x3b143a;for(const _0xf66be2 of this[_0x439e56(0x1e5)][_0x439e56(0x1f1)]())_0xf66be2[_0x439e56(0x1c8)]();this[_0x439e56(0x1e5)][_0x439e56(0x1ec)]();}[_0x3b143a(0x1cf)](){const _0xdbf0a6=_0x3b143a,_0x4fede1=new _0x58dd45(this[_0xdbf0a6(0x1cc)]);return _0x4fede1[_0xdbf0a6(0x1eb)]({'attributes':{'class':lc}}),this[_0xdbf0a6(0x1e4)][_0xdbf0a6(0x1da)](_0x4fede1),_0x4fede1;}[_0x3b143a(0x1f2)]({balloonPanel:_0x496344,source:_0x1ae16e,withBackButton:_0x3107e9}){const _0x5cc1bc=_0x3b143a;_0x496344[_0x5cc1bc(0x1c9)][_0x5cc1bc(0x1ec)]();const _0x3fffb6=this[_0x5cc1bc(0x1dd)]({'balloonPanel':_0x496344,'source':_0x1ae16e,'withBackButton':_0x3107e9});_0x496344[_0x5cc1bc(0x1c9)][_0x5cc1bc(0x1da)](_0x3fffb6);const _0x320b8c=this[_0x5cc1bc(0x1ce)](_0x1ae16e);_0x496344[_0x5cc1bc(0x1c9)][_0x5cc1bc(0x1da)](_0x320b8c);}[_0x3b143a(0x1dd)]({balloonPanel:_0xe767ff,source:_0x3c7d2c,withBackButton:_0xb8d88e}){const _0x3cc3dc=_0x3b143a,_0x37cb2a=new _0xde744e(this[_0x3cc3dc(0x1cc)],{'label':_0x3c7d2c[_0x3cc3dc(0x1f7)],'class':_c});return _0xb8d88e&&_0x37cb2a[_0x3cc3dc(0x1d4)][_0x3cc3dc(0x1da)](this[_0x3cc3dc(0x1f3)](_0xe767ff),0x0),_0x37cb2a;}[_0x3b143a(0x1f3)](_0x46b689){const _0x2c6da4=_0x3b143a,_0x21a014=new _0x57f5ae(this[_0x2c6da4(0x1cc)]);return _0x21a014[_0x2c6da4(0x1d0)]({'icon':_0x473591,'tooltip':_0x51e63b(this[_0x2c6da4(0x1cc)],_0x2c6da4(0x1db)),'tooltipPosition':'n','class':Bc}),_0x21a014['on'](_0x2c6da4(0x1d6),()=>{const _0x13086d=_0x2c6da4;_0x46b689[_0x13086d(0x1f0)](),this[_0x13086d(0x1ea)][_0x13086d(0x1ee)]();}),_0x21a014;}[_0x3b143a(0x1ce)](_0x534986){const _0x3d3ff6=_0x3b143a,_0x12c530=new _0x5f0131(this[_0x3d3ff6(0x1cc)],{'source':_0x534986,'searchInputVisibleFrom':this[_0x3d3ff6(0x1ea)][_0x3d3ff6(0x1d5)]});return _0x12c530['on'](_0x3d3ff6(0x1f9),(_0x527924,_0x4ddd95)=>{const _0x5e310d=_0x3d3ff6;this[_0x5e310d(0x1ea)][_0x5e310d(0x1e8)](_0x4ddd95);}),_0x12c530['on'](_0x3d3ff6(0x1fb),(_0x108ce2,_0x562b4b)=>{const _0x142405=_0x3d3ff6;this[_0x142405(0x1ea)][_0x142405(0x1ef)](_0x562b4b[_0x142405(0x1f6)],_0x562b4b[_0x142405(0x1d9)]),this[_0x142405(0x1e2)](_0x534986['id']);}),_0x12c530;}[_0x3b143a(0x1c4)](_0x4ce446){const _0x43424a=_0x3b143a,_0x22456a=_0x4ce446[_0x43424a(0x1c9)][_0x43424a(0x1d3)](0x1);return _0x22456a instanceof _0x5f0131?_0x22456a:null;}[_0x3b143a(0x1ed)](_0x537128){const _0x52ee42=_0x3b143a;_0x230f0b({'emitter':_0x537128,'contextElements':[_0x537128[_0x52ee42(0x1dc)]],'callback':()=>{const _0x1a3057=_0x52ee42;_0x537128[_0x1a3057(0x1f0)](),this[_0x1a3057(0x1ea)][_0x1a3057(0x1de)]();},'activator':()=>_0x537128[_0x52ee42(0x1df)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x357c44,IconView as _0x4baa8c,LabeledFieldView as _0x11cc4e,createLabeledInputText as _0x2a690e}from'ckeditor5/src/ui.js';import{IconLoupe as _0x3aed84,IconCancel as _0x213d42}from'ckeditor5/src/icons.js';import{getTranslation as _0x44fd55}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x11cc4e{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x1838ed){const t=_0x1838ed['t'],_0xf48095={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x2a690e,'label':_0x44fd55(_0x1838ed,'AI_CHAT_SEARCH_RESOURCES')};super(_0x1838ed,_0xf48095['creator']),this['label']=_0xf48095['label'],this['_viewConfig']=_0xf48095,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x1838ed,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x54471c){this['fire']('search',_0x54471c);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x4baa8c(),this['iconView']['content']=_0x3aed84,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x231753,t){this['resetButtonView']=new _0x357c44(_0x231753),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x213d42,'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',_0x1a3061=>!_0x1a3061),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 _0x457a87=_0x3999;function _0x3999(_0x2449f9,_0x47f660){const _0x400315=_0x4003();return _0x3999=function(_0x399986,_0x4e7319){_0x399986=_0x399986-0xf5;let _0x24c56d=_0x400315[_0x399986];return _0x24c56d;},_0x3999(_0x2449f9,_0x47f660);}function _0x4003(){const _0xbed2fc=['327490mmLNbC','1235526fEFFsv','ck-ai-chat-context-chips-wrapper','_contextChips','3GEHQhC','_bodyCollection','ck-ai-chat-controls-button','ck-ai-chat-controls_context_show-more-button','63862IRbLyU','3159TbxEdJ','setContainerElement','24gJTUYW','locale','div','7VBrtWk','render','508WFQBYP','ck-ai-chat-context-controls__show-more-balloon-panel','27imLiTd','_overflowManager','970750ISSIzD','771683npQnUM','ck-ai-chat-context-chips-wrapper-balloon','ck-reset_all','_createContextChips','destroy','createCollection','setTemplate','add','element','querySelector','reorganizeChips','ck-ai-chat__feed__context-chips','2210200hgUwGL'];_0x4003=function(){return _0xbed2fc;};return _0x4003();}(function(_0x864477,_0x32756c){const _0x2949b9=_0x3999,_0x4204db=_0x864477();while(!![]){try{const _0x1058fc=parseInt(_0x2949b9(0x101))/0x1*(-parseInt(_0x2949b9(0x105))/0x2)+parseInt(_0x2949b9(0x106))/0x3*(parseInt(_0x2949b9(0x10d))/0x4)+parseInt(_0x2949b9(0x111))/0x5+-parseInt(_0x2949b9(0xfe))/0x6*(-parseInt(_0x2949b9(0x10b))/0x7)+-parseInt(_0x2949b9(0xfc))/0x8+parseInt(_0x2949b9(0x10f))/0x9*(-parseInt(_0x2949b9(0xfd))/0xa)+-parseInt(_0x2949b9(0x112))/0xb*(-parseInt(_0x2949b9(0x108))/0xc);if(_0x1058fc===_0x32756c)break;else _0x4204db['push'](_0x4204db['shift']());}catch(_0xe85033){_0x4204db['push'](_0x4204db['shift']());}}}(_0x4003,0x31c11));import{View as _0x44cd46}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x2dd041}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x4271b4}from'../controls/aichatchipsoverflowmanager.js';const Co=_0x457a87(0xfb),bo=_0x457a87(0xff),go=_0x457a87(0x113),jo=_0x457a87(0x103),Bo=_0x457a87(0x104),Mo=_0x457a87(0x10e);export class AIChatFeedContextChipsView extends _0x44cd46{[_0x457a87(0x100)]=this[_0x457a87(0xf5)]();[_0x457a87(0x110)];[_0x457a87(0x102)];constructor(_0x459e36,_0x267540,_0x1a61b8){const _0x4beb2a=_0x457a87;super(_0x459e36),this[_0x4beb2a(0x102)]=_0x1a61b8,this[_0x4beb2a(0x115)](_0x267540);const _0x455992={'cssClasses':{'showMoreButton':Bo,'showMoreBalloon':Mo,'overflowContainer':go,'controlsButton':jo}};this[_0x4beb2a(0x110)]=new _0x4271b4(_0x459e36,this[_0x4beb2a(0x100)],_0x455992,this[_0x4beb2a(0x102)],this),this[_0x4beb2a(0xf6)]({'tag':_0x4beb2a(0x10a),'attributes':{'class':[Co,'ck',_0x4beb2a(0x114)]},'children':[{'tag':_0x4beb2a(0x10a),'attributes':{'class':bo},'children':this[_0x4beb2a(0x100)]}]});}[_0x457a87(0x10c)](){const _0x13fef7=_0x457a87;super[_0x13fef7(0x10c)]();const _0x46a2a2=this[_0x13fef7(0xf8)][_0x13fef7(0xf9)]('.'+bo);_0x46a2a2&&(this[_0x13fef7(0x110)][_0x13fef7(0x107)](_0x46a2a2),this[_0x13fef7(0x110)][_0x13fef7(0xfa)]());}[_0x457a87(0x116)](){const _0xd0b4fb=_0x457a87;super[_0xd0b4fb(0x116)](),this[_0xd0b4fb(0x110)][_0xd0b4fb(0x116)]();}[_0x457a87(0x115)](_0x2051a5){const _0x579143=_0x457a87;for(const _0x59467e of _0x2051a5){const _0x3c53cd=new _0x2dd041(this[_0x579143(0x109)],_0x59467e,!0x0,!0x1);this[_0x579143(0x100)][_0x579143(0xf7)](_0x3c53cd);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x320a(){var _0x16b306=['878252XWVuNc','appendChild','1HJsteM','options','render','string','5200038DqEBga','7528815iLxsAN','2045786NWfnPm','element','5095795GbwHQe','15XypgsU','extendTemplate','content','4175720fsVFLB','ck-ai-chat__feed__custom-element','3373506uZOodw','innerHTML'];_0x320a=function(){return _0x16b306;};return _0x320a();}var _0xbd5c5c=_0x32eb;(function(_0x3e0ace,_0x3890c7){var _0x424424=_0x32eb,_0x1023fe=_0x3e0ace();while(!![]){try{var _0x4d4564=parseInt(_0x424424(0x1cc))/0x1*(-parseInt(_0x424424(0x1c0))/0x2)+parseInt(_0x424424(0x1c3))/0x3*(parseInt(_0x424424(0x1ca))/0x4)+parseInt(_0x424424(0x1c2))/0x5+-parseInt(_0x424424(0x1c8))/0x6+-parseInt(_0x424424(0x1d1))/0x7+parseInt(_0x424424(0x1c6))/0x8+parseInt(_0x424424(0x1d0))/0x9;if(_0x4d4564===_0x3890c7)break;else _0x1023fe['push'](_0x1023fe['shift']());}catch(_0x17f4af){_0x1023fe['push'](_0x1023fe['shift']());}}}(_0x320a,0x87c00));function _0x32eb(_0x12cb96,_0x126f1e){var _0x320a81=_0x320a();return _0x32eb=function(_0x32ebe9,_0x46c3ed){_0x32ebe9=_0x32ebe9-0x1c0;var _0x3a5ba0=_0x320a81[_0x32ebe9];return _0x3a5ba0;},_0x32eb(_0x12cb96,_0x126f1e);}import{AIChatFeedItemView as _0x27c657}from'./aichatfeeditemview.js';export class AIChatFeedCustomElementView extends _0x27c657{constructor(_0x1a1f29){var _0x121543=_0x32eb;super(_0x1a1f29),this[_0x121543(0x1c4)]({'attributes':{'class':[_0x121543(0x1c7)]}});}async[_0xbd5c5c(0x1ce)](){var _0x235321=_0xbd5c5c;super[_0x235321(0x1ce)](),_0x235321(0x1cf)==typeof this[_0x235321(0x1cd)][_0x235321(0x1c5)]?this[_0x235321(0x1c1)][_0x235321(0x1c9)]=this[_0x235321(0x1cd)][_0x235321(0x1c5)]:this[_0x235321(0x1c1)][_0x235321(0x1cb)](this[_0x235321(0x1cd)][_0x235321(0x1c5)]);}}
|