UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines • 19.4 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ function _0xa314(_0x4374be,_0x31521f){const _0x4bde8e=_0x4bde();return _0xa314=function(_0xa31436,_0x2f2d48){_0xa31436=_0xa31436-0x18e;let _0x391ee1=_0x4bde8e[_0xa31436];return _0x391ee1;},_0xa314(_0x4374be,_0x31521f);}const _0x247f4c=_0xa314;(function(_0x4962e2,_0x31a610){const _0x5a1add=_0xa314,_0x328624=_0x4962e2();while(!![]){try{const _0x141a8b=parseInt(_0x5a1add(0x211))/0x1*(-parseInt(_0x5a1add(0x1d4))/0x2)+parseInt(_0x5a1add(0x1e3))/0x3*(-parseInt(_0x5a1add(0x1f3))/0x4)+-parseInt(_0x5a1add(0x193))/0x5+-parseInt(_0x5a1add(0x1a8))/0x6*(parseInt(_0x5a1add(0x198))/0x7)+parseInt(_0x5a1add(0x1dd))/0x8*(parseInt(_0x5a1add(0x1d1))/0x9)+-parseInt(_0x5a1add(0x1b2))/0xa+-parseInt(_0x5a1add(0x1be))/0xb*(-parseInt(_0x5a1add(0x19b))/0xc);if(_0x141a8b===_0x31a610)break;else _0x328624['push'](_0x328624['shift']());}catch(_0x3b6cf4){_0x328624['push'](_0x328624['shift']());}}}(_0x4bde,0x35331));import{BalloonPanelView as _0x220da,ButtonView as _0x4b4e07,clickOutsideHandler as _0x46870e,FileDialogButtonView as _0x2b6d07,IconView as _0x7fb187,View as _0x4104fe}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x4b4bcb,IconDocument as _0x595f96,IconDocumentOutline as _0x5ddcc8,IconDropdownArrow as _0x202baf,IconLink as _0x12d98f,IconPaperClip as _0x13cbaf}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x5c0b74}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x7cef34}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xe6ab1d}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x27b36e}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x46500a}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x247f4c(0x1ca),_0x247f4c(0x1e1),_0x247f4c(0x1cd),_0x247f4c(0x21d),_0x247f4c(0x1fb),_0x247f4c(0x1ee)];function _0x4bde(){const _0x3d197c=['_setupAllBalloonClickOutsideHandlers','1043cByDuL','tooltip','add','36IjYiRe','locale','_createResourcesBalloonView','ck-reset_all-excluded','ck-ai-chat-context-chips-wrapper-balloon','_addContextBalloonConfig','_urlBalloonPanelView','_currentContextsChips','ck-ai-chat-controls-button','source','_addUrlContent','extendTemplate','find','16356NjDIiP','overflowChips','_resourcesBalloonView','show','hideAddContextBalloonPanel','_toggleAddContextBalloon','_setupTemplate','ck-ai-chat-context-controls','_overflowManager','_removeContextFromCollection','87210qxlajX','_setAddContextButtonEnabled','type','southArrowNorthWest','remove','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','clear','enabled','document','AI_CHAT_CONTEXT_URL_LABEL','setConversationContext','ck-ai-chat-context-controls__balloon-button-source','3753409PQCsOv','_createUrlBalloonPanelView','menuitem','ck-ai-chat-controls_context_show-more-button','northArrowSouth','_createContextButton','_createAddContextBalloonPanelView','render','setAddContextOptions','set','isEnabled','submitUrl','addDocumentToContext','_conversationContextsChips','_createArrowView','addUrlToContext','_handleUrlSubmit','content','isOn','27eZPfES','isAnyResourceBalloonVisible','showUrlBalloonPanel','4KzqwgC','southArrowNorth','ck-ai-chat-context-controls__url-balloon-panel','_showSourceResourcesBalloon','hideUrlBalloonPanel','AI_CHAT_CONTEXT_FILE_LABEL','updateResourceState','sources','cancel','304976grovmd','files','_createBalloonButton','conversation','addFileToContext','addContextButtonView','621051XaSvTA','balloonView','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__balloon-button','bodyCollection','buttonView','done','body','northArrowSouthEast','_addContextToCollection','isVisible','loadSourceResources','isHidden','execute','closest','ck-ai-chat','4uPmrNt','_handleAddContextButtonClick','element','southArrowNorthEast','_setupAddContextBalloonClickOutsideHandler','focus','hide','label','removeContextItem','fire','clearCurrentContextItems','_urlInputView','setContextItemLoading','ck-ai-chat-context-controls__show-more-balloon-panel','isLoading','reorganizeChips','icon','ck-ai-chat-context-controls__add-context-button','ck-ai-chat-context-controls__add-context-balloon-panel','removeContextItemChip','addContextItem','destroy','isReadOnly','setContainerElement','clearConversationContextItems','populateSourceResourceBalloon','setTemplate','closeSourceResourceBalloon','northArrowSouthWest','showAddContextBalloonPanel','28019feFNuP','arrowView','searchInputVisibleFrom','_createAddContextButtonView','showSourceResourcesBalloon','defaultPositions','ck-ai-chat-context-controls__pending-contexts','children','createCollection','_getLimiterElement','current','_addContextBalloonPanelView','addResourceToContext','_bindEventHandlers','refreshBalloon','bind','pin','div','_createBaseBalloonPanel','urls','1210840NRWwPG','_setBalloonPanelContent','__arrow','AI_CHAT_CONTEXT_ADD_CONTEXT'];_0x4bde=function(){return _0x3d197c;};return _0x4bde();}const ko=_0x247f4c(0x1af),Eo=_0x247f4c(0x217),vo=_0x247f4c(0x205),Vo=_0x247f4c(0x204),Io=_0x247f4c(0x1d6),Po=_0x247f4c(0x1e6),Ro=_0x247f4c(0x1bd),Uo=_0x247f4c(0x1a3),Lo=_0x247f4c(0x19f),No=_0x247f4c(0x1c1),Oo=_0x247f4c(0x200),Mo=_0x247f4c(0x1f2),Ho=[_0x220da[_0x247f4c(0x216)][_0x247f4c(0x20f)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1c2)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1eb)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1b5)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1d5)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1f6)]];export class AIChatContextPanelView extends _0x4104fe{[_0x247f4c(0x1e2)];[_0x247f4c(0x1a2)]=this[_0x247f4c(0x219)]();[_0x247f4c(0x1cb)]=this[_0x247f4c(0x219)]();[_0x247f4c(0x1b0)];[_0x247f4c(0x21c)];[_0x247f4c(0x1a1)];[_0x247f4c(0x1fe)];[_0x247f4c(0x1aa)];[_0x247f4c(0x1a0)];[_0x247f4c(0x1e7)];constructor(_0x39c407,_0x51352c){const _0x4ff0fc=_0x247f4c;super(_0x39c407),this[_0x4ff0fc(0x1e7)]=_0x51352c[_0x4ff0fc(0x1e7)],this[_0x4ff0fc(0x1a2)]=this[_0x4ff0fc(0x219)](),this[_0x4ff0fc(0x1cb)]=this[_0x4ff0fc(0x219)](),this[_0x4ff0fc(0x1e2)]=this[_0x4ff0fc(0x214)](_0x39c407),this[_0x4ff0fc(0x21c)]=this[_0x4ff0fc(0x1c4)](_0x39c407),this[_0x4ff0fc(0x1a1)]=this[_0x4ff0fc(0x1bf)](_0x39c407),this[_0x4ff0fc(0x1aa)]=this[_0x4ff0fc(0x19d)](_0x39c407,_0x51352c);const _0x4fa966={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x4ff0fc(0x1b0)]=new _0xe6ab1d(_0x39c407,this[_0x4ff0fc(0x1a2)],_0x4fa966,this[_0x4ff0fc(0x1e7)],this),this[_0x4ff0fc(0x1a0)]={'buttonView':this[_0x4ff0fc(0x1e2)],'balloonView':this[_0x4ff0fc(0x21c)],'hideMethod':this[_0x4ff0fc(0x1ac)][_0x4ff0fc(0x18e)](this),'showMethod':this[_0x4ff0fc(0x210)][_0x4ff0fc(0x18e)](this)},this[_0x4ff0fc(0x1ae)](),this[_0x4ff0fc(0x21e)]();}[_0x247f4c(0x1c5)](){const _0x16edb9=_0x247f4c;super[_0x16edb9(0x1c5)](),this[_0x16edb9(0x197)](),this[_0x16edb9(0x1b0)][_0x16edb9(0x20a)](this[_0x16edb9(0x1f5)]),this[_0x16edb9(0x1b0)][_0x16edb9(0x202)]();}[_0x247f4c(0x208)](){const _0x5eea72=_0x247f4c;super[_0x5eea72(0x208)](),this[_0x5eea72(0x1b0)][_0x5eea72(0x208)](),this[_0x5eea72(0x1aa)][_0x5eea72(0x208)]();}[_0x247f4c(0x207)](_0x3db0d8,_0x516bb9){const _0x22a57d=_0x247f4c,_0xc2fb90=this[_0x22a57d(0x1c3)](_0x3db0d8,_0x22a57d(0x21b),!0x0,_0x516bb9);this[_0x22a57d(0x1ec)](_0xc2fb90,this[_0x22a57d(0x1a2)]),this[_0x22a57d(0x1b0)][_0x22a57d(0x202)]();}[_0x247f4c(0x1fb)](_0x5eb56d){const _0x532be5=_0x247f4c;this[_0x532be5(0x1b1)](_0x5eb56d,this[_0x532be5(0x1a2)]),this[_0x532be5(0x1b1)](_0x5eb56d,this[_0x532be5(0x1b0)][_0x532be5(0x1a9)]),this[_0x532be5(0x1b0)][_0x532be5(0x202)]();}[_0x247f4c(0x1ff)](_0x31b31e,_0xb001ee){const _0x2f67b1=_0x247f4c;let _0x14c85f=this[_0x2f67b1(0x1a2)][_0x2f67b1(0x1a7)](_0x3582dd=>_0x3582dd['id']===_0x31b31e);_0x14c85f||(_0x14c85f=this[_0x2f67b1(0x1b0)][_0x2f67b1(0x1a9)][_0x2f67b1(0x1a7)](_0x471314=>_0x471314['id']===_0x31b31e)),_0x14c85f&&(_0x14c85f[_0x2f67b1(0x201)]=_0xb001ee);}[_0x247f4c(0x1bc)](_0x24b386){const _0x399faa=_0x247f4c;this[_0x399faa(0x1cb)][_0x399faa(0x1b8)]();for(const _0x16bb6e of _0x24b386){const _0x217e5f=this[_0x399faa(0x1c3)](_0x16bb6e,_0x399faa(0x1e0),!0x1,!0x1);this[_0x399faa(0x1ec)](_0x217e5f,this[_0x399faa(0x1cb)]);}}[_0x247f4c(0x1fd)](){const _0x205fb7=_0x247f4c;this[_0x205fb7(0x1a2)][_0x205fb7(0x1b8)](),this[_0x205fb7(0x1b0)][_0x205fb7(0x1b8)]();}[_0x247f4c(0x20b)](){const _0x36cbad=_0x247f4c;this[_0x36cbad(0x1cb)][_0x36cbad(0x1b8)]();}[_0x247f4c(0x1da)](_0x5668f6,_0x43e9c9,_0xe04db4){const _0x2e3926=_0x247f4c;this[_0x2e3926(0x1aa)][_0x2e3926(0x1da)](_0x5668f6,_0x43e9c9,_0xe04db4);}[_0x247f4c(0x1ac)](){const _0x231b61=_0x247f4c;this[_0x231b61(0x1ad)](!0x1);}[_0x247f4c(0x210)](){const _0x5f117c=_0x247f4c;this[_0x5f117c(0x1ad)](!0x0);}[_0x247f4c(0x1d8)](){const _0xcc22a4=_0x247f4c;this[_0xcc22a4(0x1a1)][_0xcc22a4(0x1f9)](),this[_0xcc22a4(0x1e2)][_0xcc22a4(0x1d0)]=!0x1,this[_0xcc22a4(0x1fe)]&&this[_0xcc22a4(0x1fe)][_0xcc22a4(0x1b8)]();}[_0x247f4c(0x1d3)](){const _0x14fac2=_0x247f4c;this[_0x14fac2(0x1a1)][_0x14fac2(0x1ab)](),this[_0x14fac2(0x1e2)][_0x14fac2(0x1d0)]=!0x0;}[_0x247f4c(0x1d7)](_0x3efed0){const _0x17ea05=_0x247f4c;this[_0x17ea05(0x1aa)][_0x17ea05(0x215)](_0x3efed0),this[_0x17ea05(0x1e2)][_0x17ea05(0x1d0)]=!0x0;}[_0x247f4c(0x20c)](_0x2ac2a3,_0x132288,_0x1d18b4,_0x19f8bb){const _0x1c42d1=_0x247f4c;this[_0x1c42d1(0x1aa)][_0x1c42d1(0x20c)](_0x2ac2a3,_0x1d18b4,_0x19f8bb);}[_0x247f4c(0x20e)](_0x5a5026){const _0x5dc315=_0x247f4c;this[_0x5dc315(0x1aa)][_0x5dc315(0x20e)](_0x5a5026),this[_0x5dc315(0x1e2)][_0x5dc315(0x1d0)]=!0x1;}[_0x247f4c(0x1c6)](_0x3bb636){const _0xdb9fed=_0x247f4c;this[_0xdb9fed(0x194)](this[_0xdb9fed(0x21c)],this[_0xdb9fed(0x19c)],_0x3bb636),this[_0xdb9fed(0x1b3)](_0x3bb636);}[_0x247f4c(0x1b3)](_0x3c9743){const _0x152817=_0x247f4c,_0x3d908a=!_0x3c9743[_0x152817(0x1ba)][_0x152817(0x1ef)]&&_0x3c9743[_0x152817(0x1ba)][_0x152817(0x1b9)],_0xa3ccc0=_0x3c9743[_0x152817(0x192)][_0x152817(0x1b9)],_0x124f08=_0x3c9743[_0x152817(0x1de)][_0x152817(0x1b9)];this[_0x152817(0x1e2)][_0x152817(0x1c8)]=_0x3d908a||_0xa3ccc0||_0x124f08;}[_0x247f4c(0x1ae)](){const _0x1e2bd8=_0x247f4c;this[_0x1e2bd8(0x20d)]({'tag':_0x1e2bd8(0x190),'attributes':{'class':[ko,_0x1e2bd8(0x19e)]},'children':[{'tag':_0x1e2bd8(0x190),'attributes':{'class':Eo},'children':this[_0x1e2bd8(0x1a2)]}]});}[_0x247f4c(0x21e)](){const _0x5e7841=_0x247f4c;this[_0x5e7841(0x1e2)]['on'](_0x5e7841(0x1f0),()=>{const _0x14f75d=_0x5e7841;this[_0x14f75d(0x1f4)]();});}[_0x247f4c(0x214)](_0x3451fa){const _0x45e943=_0x247f4c,_0x347f4f=new _0x4b4e07(_0x3451fa);return _0x347f4f[_0x45e943(0x1c7)]({'label':_0x27b36e(_0x3451fa,_0x45e943(0x196)),'class':Uo+'\x20'+Vo,'icon':_0x13cbaf,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x347f4f;}[_0x247f4c(0x1c4)](_0x36b37d){const _0x193573=_0x247f4c;return this[_0x193573(0x191)](_0x36b37d,vo);}[_0x247f4c(0x1bf)](_0x469825){const _0x4097c3=_0x247f4c,_0x179418=this[_0x4097c3(0x191)](_0x469825,Io);return this[_0x4097c3(0x1a5)](_0x179418,_0x469825),_0x179418;}[_0x247f4c(0x19d)](_0x1d8d6d,_0x1a836b){const _0x26f24=_0x247f4c,_0x39edda={'searchInputVisibleFrom':_0x1a836b[_0x26f24(0x213)],'onBackToContext':()=>{const _0x115c51=_0x26f24;this[_0x115c51(0x210)](),this[_0x115c51(0x21c)][_0x115c51(0x18f)]({'target':this[_0x115c51(0x1e2)][_0x115c51(0x1f5)],'limiter':this[_0x115c51(0x21a)](),'positions':Ho});},'onResourceSelected':(_0x4232e9,_0x3394f1)=>{const _0x3451d1=_0x26f24;this[_0x3451d1(0x1fc)](_0x3451d1(0x21d),{'source':_0x4232e9,'resource':_0x3394f1});},'onLoadSourceResources':_0x43ad42=>{const _0xb4dd0b=_0x26f24;this[_0xb4dd0b(0x1fc)](_0xb4dd0b(0x1ee),_0x43ad42);},'onBalloonClosed':()=>{const _0x5c573a=_0x26f24;this[_0x5c573a(0x1e2)][_0x5c573a(0x1d0)]=!0x1;},'getLimiterElement':()=>this[_0x26f24(0x21a)](),'getTargetElement':()=>this[_0x26f24(0x1e2)][_0x26f24(0x1f5)]};return new _0x46500a(_0x1d8d6d,_0x1a836b[_0x26f24(0x1e7)],_0x39edda);}[_0x247f4c(0x21a)](){const _0x590d2a=_0x247f4c;return this[_0x590d2a(0x1f5)]?.[_0x590d2a(0x1f1)]('.'+Mo)||document[_0x590d2a(0x1ea)];}[_0x247f4c(0x191)](_0x14be31,_0xa50878){const _0x9098e6=_0x247f4c,_0x375b44=new _0x220da(_0x14be31);return _0x375b44[_0x9098e6(0x1a6)]({'attributes':{'class':_0xa50878}}),this[_0x9098e6(0x1e7)][_0x9098e6(0x19a)](_0x375b44),_0x375b44;}[_0x247f4c(0x194)](_0x5cc7f2,_0x709694,_0x5efd53){const _0x38f2d6=_0x247f4c;if(_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x1b8)](),!_0x5efd53[_0x38f2d6(0x1ba)][_0x38f2d6(0x1ef)]&&_0x5efd53[_0x38f2d6(0x1ba)][_0x38f2d6(0x1b9)]){const _0x407b1b=this[_0x38f2d6(0x1df)](_0x709694,{'label':_0x27b36e(_0x709694,_0x38f2d6(0x1b7)),'icon':_0x595f96});_0x407b1b['on'](_0x38f2d6(0x1f0),()=>{const _0x1f6753=_0x38f2d6;this[_0x1f6753(0x1fc)](_0x1f6753(0x1ca)),this[_0x1f6753(0x1ac)]();}),_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x19a)](_0x407b1b);}if(_0x5efd53[_0x38f2d6(0x192)][_0x38f2d6(0x1b9)]){const _0x397e88=this[_0x38f2d6(0x1df)](_0x709694,{'label':_0x27b36e(_0x709694,_0x38f2d6(0x1bb)),'icon':_0x12d98f});_0x397e88['on'](_0x38f2d6(0x1f0),()=>{const _0x17c706=_0x38f2d6;this[_0x17c706(0x1ac)](),this[_0x17c706(0x1d3)](),this[_0x17c706(0x1a1)][_0x17c706(0x18f)]({'target':this[_0x17c706(0x1e2)][_0x17c706(0x1f5)],'limiter':this[_0x17c706(0x21a)](),'positions':Ho}),this[_0x17c706(0x1fe)][_0x17c706(0x1f8)]();}),_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x19a)](_0x397e88);}if(_0x5efd53[_0x38f2d6(0x1de)][_0x38f2d6(0x1b9)]){const _0x4b21b2=new _0x2b6d07(_0x709694);_0x4b21b2[_0x38f2d6(0x1c7)]({'label':_0x27b36e(_0x709694,_0x38f2d6(0x1d9)),'icon':_0x4b4bcb,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x4b21b2['on'](_0x38f2d6(0x1e9),(_0x7767be,_0xbe24aa)=>{const _0x4ef42a=_0x38f2d6;this[_0x4ef42a(0x1fc)](_0x4ef42a(0x1e1),_0xbe24aa),this[_0x4ef42a(0x1ac)]();}),_0x4b21b2[_0x38f2d6(0x199)]=!0x0,_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x19a)](_0x4b21b2);}for(const _0x334e65 of _0x5efd53[_0x38f2d6(0x1db)]){const _0x547d1c=this[_0x38f2d6(0x1df)](_0x709694,{'label':_0x334e65[_0x38f2d6(0x1fa)],'icon':_0x334e65[_0x38f2d6(0x203)]||_0x5ddcc8,'type':_0x38f2d6(0x1a4)});_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x19a)](_0x547d1c),_0x547d1c['on'](_0x38f2d6(0x1f0),()=>{const _0x177368=_0x38f2d6;this[_0x177368(0x1ac)](),this[_0x177368(0x1d7)](_0x334e65);});}}[_0x247f4c(0x1a5)](_0x10ab1f,_0x59948a){const _0x97f836=_0x247f4c;this[_0x97f836(0x1fe)]=new _0x7cef34(_0x59948a),this[_0x97f836(0x1fe)]['on'](_0x97f836(0x1c9),(_0x31e82a,_0x3b5c31)=>{const _0x158f2=_0x97f836;this[_0x158f2(0x1ce)](_0x3b5c31);}),this[_0x97f836(0x1fe)]['on'](_0x97f836(0x1dc),()=>{const _0x56581=_0x97f836;this[_0x56581(0x1d8)](),this[_0x56581(0x210)](),this[_0x56581(0x21c)][_0x56581(0x18f)]({'target':this[_0x56581(0x1e2)][_0x56581(0x1f5)],'limiter':this[_0x56581(0x21a)](),'positions':Ho});}),this[_0x97f836(0x1fe)]['on'](_0x97f836(0x21f),()=>{const _0x1d097c=_0x97f836;this[_0x1d097c(0x1a1)][_0x1d097c(0x1ed)]&&this[_0x1d097c(0x1a1)][_0x1d097c(0x18f)]({'target':this[_0x1d097c(0x1e2)][_0x1d097c(0x1f5)],'limiter':this[_0x1d097c(0x21a)](),'positions':Ho});}),_0x10ab1f[_0x97f836(0x1cf)][_0x97f836(0x19a)](this[_0x97f836(0x1fe)]);}[_0x247f4c(0x1df)](_0x2dd08a,_0x55acd5){const _0x228579=_0x247f4c,_0x5d7f5f=_0x228579(0x1a4)===_0x55acd5[_0x228579(0x1b4)]?new SourcesBalloonButtonView(_0x2dd08a):new _0x4b4e07(_0x2dd08a);return _0x5d7f5f[_0x228579(0x1c7)]({'label':_0x55acd5[_0x228579(0x1fa)],'icon':_0x55acd5[_0x228579(0x203)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x5d7f5f;}[_0x247f4c(0x197)](){const _0x33241f=_0x247f4c;this[_0x33241f(0x1f7)](),this[_0x33241f(0x1e5)]();}[_0x247f4c(0x1e5)](){const _0x25fb5a=_0x247f4c;_0x46870e({'emitter':this[_0x25fb5a(0x1a1)],'contextElements':[this[_0x25fb5a(0x1a1)][_0x25fb5a(0x1f5)]],'callback':()=>{const _0x2e73a1=_0x25fb5a;this[_0x2e73a1(0x1d8)]();},'activator':()=>this[_0x25fb5a(0x1a1)][_0x25fb5a(0x1ed)]});}[_0x247f4c(0x1ad)](_0x40cdfe){const _0xb0018c=_0x247f4c,_0x5c4f01=this[_0xb0018c(0x1a0)];_0x5c4f01[_0xb0018c(0x1e8)][_0xb0018c(0x1d0)]=_0x40cdfe,_0x40cdfe?_0x5c4f01[_0xb0018c(0x1e4)][_0xb0018c(0x1ab)]():_0x5c4f01[_0xb0018c(0x1e4)][_0xb0018c(0x1f9)]();}[_0x247f4c(0x1f7)](){const _0x37c0d8=_0x247f4c,{balloonView:_0x3cdd7d,buttonView:_0x38530c,hideMethod:_0x4fa446}=this[_0x37c0d8(0x1a0)];_0x46870e({'emitter':_0x3cdd7d,'contextElements':[_0x3cdd7d[_0x37c0d8(0x1f5)],_0x38530c[_0x37c0d8(0x1f5)]],'callback':()=>{_0x4fa446();},'activator':()=>_0x38530c[_0x37c0d8(0x1d0)]&&!this[_0x37c0d8(0x1a1)][_0x37c0d8(0x1ed)]&&!this[_0x37c0d8(0x1aa)][_0x37c0d8(0x1d2)]()});}[_0x247f4c(0x1c3)](_0x342f32,_0x46482b,_0x2d2c11=!0x1,_0x4b3c49=!0x1){const _0x4c8ee0=_0x247f4c,_0xa88353=_0x4c8ee0(0x1e0)===_0x46482b||!0x0===_0x342f32[_0x4c8ee0(0x209)],_0x585f5c=new _0x5c0b74(this[_0x4c8ee0(0x19c)],_0x342f32,_0xa88353,_0x2d2c11,_0x4b3c49);return _0xa88353||_0x585f5c['on'](_0x4c8ee0(0x206),()=>{const _0x41df6c=_0x4c8ee0;this[_0x41df6c(0x1fc)](_0x41df6c(0x1fb),_0x585f5c['id']);}),_0x585f5c;}[_0x247f4c(0x1ec)](_0x22536c,_0xcb432a){const _0x19990d=_0x247f4c;_0xcb432a[_0x19990d(0x19a)](_0x22536c,0x0);}[_0x247f4c(0x1b1)](_0x39c82e,_0x1a02c6){const _0x38a596=_0x247f4c,_0x1212d7=_0x1a02c6[_0x38a596(0x1a7)](_0x2f9997=>_0x2f9997['id']===_0x39c82e);_0x1212d7&&_0x1a02c6[_0x38a596(0x1b6)](_0x1212d7);}[_0x247f4c(0x1f4)](){const _0x1de822=_0x247f4c;this[_0x1de822(0x1e2)][_0x1de822(0x1d0)]?this[_0x1de822(0x1ac)]():(this[_0x1de822(0x210)](),this[_0x1de822(0x21c)][_0x1de822(0x18f)]({'target':this[_0x1de822(0x1e2)][_0x1de822(0x1f5)],'limiter':this[_0x1de822(0x21a)](),'positions':Ho}));}[_0x247f4c(0x1ce)](_0x2de11b){const _0x3c3462=_0x247f4c;this[_0x3c3462(0x1fe)][_0x3c3462(0x1b8)](),this[_0x3c3462(0x1d8)](),this[_0x3c3462(0x1fc)](_0x3c3462(0x1cd),_0x2de11b);}}export class SourcesBalloonButtonView extends _0x4b4e07{[_0x247f4c(0x212)];constructor(_0x5d821e){const _0x12727f=_0x247f4c;super(_0x5d821e),this[_0x12727f(0x1c7)]({'withText':!0x0,'role':_0x12727f(0x1c0)}),this[_0x12727f(0x212)]=this[_0x12727f(0x1cc)](),this[_0x12727f(0x1a6)]({'attributes':{'class':[Ro]}});}[_0x247f4c(0x1c5)](){const _0x2d1530=_0x247f4c;super[_0x2d1530(0x1c5)](),this[_0x2d1530(0x218)][_0x2d1530(0x19a)](this[_0x2d1530(0x212)]);}[_0x247f4c(0x1cc)](){const _0x2fa894=_0x247f4c,_0x31aea4=new _0x7fb187();return _0x31aea4[_0x2fa894(0x1cf)]=_0x202baf,_0x31aea4[_0x2fa894(0x1a6)]({'attributes':{'class':Ro+_0x2fa894(0x195)}}),_0x31aea4;}}