@ckeditor/ckeditor5-ai 47.4.0-alpha.5 → 47.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  15. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  22. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  26. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  27. package/src/aiballoon/ui/aiballoonview.js +1 -1
  28. package/src/aichat/aichat.js +1 -1
  29. package/src/aichat/aichatcontroller.js +1 -1
  30. package/src/aichat/aichatui.js +1 -1
  31. package/src/aichat/model/aichatcontext.js +1 -1
  32. package/src/aichat/model/aichatconversation.js +1 -1
  33. package/src/aichat/model/aichatinteraction.js +1 -1
  34. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  35. package/src/aichat/ui/aichatfeedview.js +1 -1
  36. package/src/aichat/ui/aichatheaderview.js +1 -1
  37. package/src/aichat/ui/aichatview.js +1 -1
  38. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  58. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  59. package/src/aichat/utils/eventnames.js +1 -1
  60. package/src/aichat/utils/promisequeue.js +1 -1
  61. package/src/aichathistory/aichathistory.js +1 -1
  62. package/src/aichathistory/aichathistorycontroller.js +1 -1
  63. package/src/aichathistory/aichathistoryui.js +1 -1
  64. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  65. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  66. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  67. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  68. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  69. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  70. package/src/aicore/aiconnector.js +1 -1
  71. package/src/aicore/aiediting.js +1 -1
  72. package/src/aicore/model/aicapabilities.js +1 -1
  73. package/src/aicore/model/aiinteraction.js +1 -1
  74. package/src/aicore/model/aimodels.js +1 -1
  75. package/src/aicore/model/aireply.js +1 -1
  76. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  77. package/src/aicore/pipeline/airesponseparser.js +2 -2
  78. package/src/aicore/ui/aidisclaimerview.js +1 -1
  79. package/src/aicore/ui/aiskeleton.js +1 -1
  80. package/src/aicore/ui/aispinner.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  86. package/src/aicore/utils/createresizebutton.js +1 -1
  87. package/src/aicore/utils/documentposition.js +1 -1
  88. package/src/aicore/utils/documentrange.js +1 -1
  89. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  90. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  91. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  92. package/src/aicore/utils/htmlparser.js +1 -1
  93. package/src/aicore/utils/htmlstreamer.js +1 -1
  94. package/src/aicore/utils/scrollmanager.js +1 -1
  95. package/src/aieditorintegration/aieditorintegration.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  97. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  98. package/src/aiquickactions/aiquickactions.js +1 -1
  99. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  100. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  101. package/src/aiquickactions/aiquickactionsui.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  104. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  105. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  106. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  107. package/src/aireviewmode/aireviewmode.js +1 -1
  108. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  109. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  110. package/src/aireviewmode/aireviewmodeui.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  112. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  113. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  114. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  115. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  116. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  117. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  118. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  122. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  123. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  124. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  125. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  126. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  127. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  128. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  129. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  130. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  131. package/src/aitabs/aitabs.js +1 -1
  132. package/src/aitabs/tabs/aitabsview.js +1 -1
  133. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  134. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x103fa6=_0x111d;(function(_0x25c3a5,_0x4a83f3){const _0x3d7fff=_0x111d,_0x4c6b6d=_0x25c3a5();while(!![]){try{const _0x5cc99e=parseInt(_0x3d7fff(0xdf))/0x1*(-parseInt(_0x3d7fff(0xc7))/0x2)+parseInt(_0x3d7fff(0xd7))/0x3+-parseInt(_0x3d7fff(0xfa))/0x4*(-parseInt(_0x3d7fff(0xcb))/0x5)+-parseInt(_0x3d7fff(0xb1))/0x6+-parseInt(_0x3d7fff(0xf0))/0x7+parseInt(_0x3d7fff(0xb9))/0x8+parseInt(_0x3d7fff(0xee))/0x9;if(_0x5cc99e===_0x4a83f3)break;else _0x4c6b6d['push'](_0x4c6b6d['shift']());}catch(_0x3c3165){_0x4c6b6d['push'](_0x4c6b6d['shift']());}}}(_0x131b,0xe4111));import{ButtonView as _0x25612f,clickOutsideHandler as _0x3ab67e,View as _0x47e5e1}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x992260}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x426397}from'./controls/aichatpromptcapabilitiesview.js';function _0x111d(_0x37f1d6,_0x146893){const _0x131b06=_0x131b();return _0x111d=function(_0x111d6a,_0x1dca4f){_0x111d6a=_0x111d6a-0xb0;let _0x57fadf=_0x131b06[_0x111d6a];return _0x57fadf;},_0x111d(_0x37f1d6,_0x146893);}import{AIChatContextPanelView as _0x38a6fd,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x843d2e}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x233300}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x5dd2a6}from'../../aicore/utils/common-translations.js';function _0x131b(){const _0x115e4f=['setAddContextOptions','_promptInputView','ck-ai-chat-controls-disabled','15658668vdaUZk','focus','4551442kvBrMl','find','ck-ai-chat-controls-model-unavailable-message','_loaderView','setReasoning','selectModel','_createPromptInputView','low','isModelAvailable','updateResourceState','4MzlEfA','setIsUploadInProgress','addContextItem','addContextButtonView','_createPromptCapabilitiesView','isLoading','ck-hidden','4933020NkDabi','populateSourceResourceBalloon','toggleReasoning','ck-ai-chat-controls__start-new-chat-button','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setConversationContext','clearCurrentContextItems','_createLoaderView','2579016SeiEWo','setTemplate','setContextItemLoading','change:isLoading','element','execute','form','ck-ai-chat-controls','_shouldRestorePromptInputFocus','bodyCollection','toggleWebSearch','setModel','clearConversationContextItems','isDisabled','8KNmToN','setPlaceholderText','setModelList','startsWith','8246545YYFCMz','_createContextPanelView','set','closeSourceResourceBalloon','_contextPanelView','contextResourcesSearchInputVisibleFrom','reset','setWebSearch','bindTemplate','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','locale','enableModelSelector','1333341doPgzR','abortPromptStream','div','focusPromptInput','resetMessageInput','_handlePromptInputFocus','_displayedModels','removeContextItem','437362rQarCA','_promptCapabilitiesView','_createModelUnavailableMessageView','clearPendingContextUI','delegate','startConversation','_modelUnavailableMessageView','clearConversationContextUI','setInputPlaceholder','agent','disableModelSelector','sendUserMessage'];_0x131b=function(){return _0x115e4f;};return _0x131b();}export class AIChatControlsView extends _0x47e5e1{[_0x103fa6(0xdd)]=[];[_0x103fa6(0xcf)];[_0x103fa6(0xec)];[_0x103fa6(0xe0)];[_0x103fa6(0xf3)];[_0x103fa6(0xe5)];[_0x103fa6(0xc1)];constructor(_0x1f53d8,_0x397558){const _0xbef10e=_0x103fa6;super(_0x1f53d8),this[_0xbef10e(0xcf)]=this[_0xbef10e(0xcc)](_0x1f53d8,{'bodyCollection':_0x397558[_0xbef10e(0xc2)],'searchInputVisibleFrom':_0x397558[_0xbef10e(0xd0)]}),this[_0xbef10e(0xec)]=this[_0xbef10e(0xf6)](_0x1f53d8),this[_0xbef10e(0xe0)]=this[_0xbef10e(0xfe)](_0x1f53d8),this[_0xbef10e(0xf3)]=this[_0xbef10e(0xb8)](_0x1f53d8),this[_0xbef10e(0xe5)]=this[_0xbef10e(0xe1)](_0x1f53d8),this[_0xbef10e(0xc1)]=!0x1,this[_0xbef10e(0xec)][_0xbef10e(0xe3)](_0xbef10e(0xea))['to'](this),this[_0xbef10e(0xf3)][_0xbef10e(0xe3)](_0xbef10e(0xd8))['to'](this),this[_0xbef10e(0xe0)][_0xbef10e(0xe3)](_0xbef10e(0xc3))['to'](this),this[_0xbef10e(0xe0)][_0xbef10e(0xe3)](_0xbef10e(0xb3))['to'](this),this[_0xbef10e(0xe0)][_0xbef10e(0xe3)](_0xbef10e(0xf5))['to'](this),this[_0xbef10e(0xcf)][_0xbef10e(0xe3)](..._0x843d2e)['to'](this),this[_0xbef10e(0xcd)](_0xbef10e(0xf8),!0x0),this[_0xbef10e(0xcd)](_0xbef10e(0xc6),!0x1);const _0x1c3129=this[_0xbef10e(0xd3)];this[_0xbef10e(0xba)]({'tag':_0xbef10e(0xbf),'attributes':{'class':['ck',_0xbef10e(0xc0),_0x1c3129['if'](_0xbef10e(0xc6),_0xbef10e(0xed))]},'children':[{'tag':_0xbef10e(0xd9),'attributes':{'class':[_0x1c3129['if'](_0xbef10e(0xff),_0xbef10e(0xb0),_0x38373c=>_0x38373c||!this[_0xbef10e(0xf8)]),_0x1c3129['if'](_0xbef10e(0xf8),_0xbef10e(0xb0),_0x5d0aac=>!_0x5d0aac||this[_0xbef10e(0xff)])]},'children':[this[_0xbef10e(0xcf)],this[_0xbef10e(0xec)],this[_0xbef10e(0xe0)]]},{'tag':_0xbef10e(0xd9),'attributes':{'class':[_0x1c3129['if'](_0xbef10e(0xff),_0xbef10e(0xb0),_0x15ebd7=>!_0x15ebd7)]},'children':[this[_0xbef10e(0xf3)]]},{'tag':_0xbef10e(0xd9),'attributes':{'class':[_0x1c3129['if'](_0xbef10e(0xf8),_0xbef10e(0xb0),_0x172793=>_0x172793)]},'children':[this[_0xbef10e(0xe5)]]}]}),_0x3ab67e({'emitter':this[_0xbef10e(0xec)],'activator':()=>this[_0xbef10e(0xff)],'contextElements':()=>[this[_0xbef10e(0xbd)]],'callback':()=>{const _0x222c12=_0xbef10e;this[_0x222c12(0xc1)]=!0x1;}}),this['on'](_0xbef10e(0xbc),this[_0xbef10e(0xdc)],{'priority':_0xbef10e(0xf7)});}[_0x103fa6(0xcc)](_0x336a08,_0x58edec){return new _0x38a6fd(_0x336a08,_0x58edec);}[_0x103fa6(0xf6)](_0x118cc3){const _0x3d1170=_0x103fa6;return new _0x992260(_0x118cc3,this[_0x3d1170(0xcf)][_0x3d1170(0xfd)]);}[_0x103fa6(0xfe)](_0x14425a){return new _0x426397(_0x14425a);}[_0x103fa6(0xb8)](_0x144bdd){return new _0x233300(_0x144bdd);}[_0x103fa6(0xe1)](_0x1c9025){const _0x4136d8=_0x103fa6,_0x1132ee=new ws(_0x1c9025);return _0x1132ee[_0x4136d8(0xe3)](_0x4136d8(0xe4))['to'](this),_0x1132ee;}[_0x103fa6(0xdc)](_0x3dc5b6,_0x737794,_0x68ecdd){const _0x3993e1=_0x103fa6;_0x68ecdd?this[_0x3993e1(0xc1)]=!0x0:this[_0x3993e1(0xc1)]&&this[_0x3993e1(0xec)][_0x3993e1(0xef)]();}[_0x103fa6(0xfc)](_0x54f08e,_0xa5db59){const _0x278d2f=_0x103fa6;this[_0x278d2f(0xcf)][_0x278d2f(0xfc)](_0x54f08e,_0xa5db59);}[_0x103fa6(0xde)](_0x415400){const _0x8b345d=_0x103fa6;this[_0x8b345d(0xcf)][_0x8b345d(0xde)](_0x415400);}[_0x103fa6(0xbb)](_0x374b56,_0x30ae59){const _0x2029a5=_0x103fa6;this[_0x2029a5(0xcf)][_0x2029a5(0xbb)](_0x374b56,_0x30ae59);}[_0x103fa6(0xfb)](_0x431990){const _0x296c1a=_0x103fa6;this[_0x296c1a(0xec)][_0x296c1a(0xfb)](_0x431990);}[_0x103fa6(0xb6)](_0x147b95){const _0xcf1382=_0x103fa6;this[_0xcf1382(0xcf)][_0xcf1382(0xb6)](_0x147b95);}[_0x103fa6(0xe2)](){const _0xaf5a38=_0x103fa6;this[_0xaf5a38(0xcf)][_0xaf5a38(0xb7)]();}[_0x103fa6(0xe6)](){const _0x45dcae=_0x103fa6;this[_0x45dcae(0xcf)][_0x45dcae(0xc5)]();}[_0x103fa6(0xf9)](_0x45e748,_0x345a64,_0x430c58){const _0x33abfb=_0x103fa6;this[_0x33abfb(0xcf)][_0x33abfb(0xf9)](_0x45e748,_0x345a64,_0x430c58);}[_0x103fa6(0xd2)](_0x524bd8){const _0x44e7cf=_0x103fa6;this[_0x44e7cf(0xe0)][_0x44e7cf(0xd2)](_0x524bd8);}[_0x103fa6(0xf4)](_0x2f8e9c){const _0x204801=_0x103fa6;this[_0x204801(0xe0)][_0x204801(0xf4)](_0x2f8e9c);}[_0x103fa6(0xdb)](){const _0x3fd2b1=_0x103fa6;this[_0x3fd2b1(0xec)][_0x3fd2b1(0xd1)]();}[_0x103fa6(0xeb)](_0x99dfa4){const _0x1358e2=_0x103fa6;this[_0x1358e2(0xcf)][_0x1358e2(0xeb)](_0x99dfa4);}[_0x103fa6(0xe7)](_0x46f98b){const _0x43ff9e=_0x103fa6;this[_0x43ff9e(0xec)][_0x43ff9e(0xc8)](_0x46f98b);}[_0x103fa6(0xc9)](_0x99e946,_0x54b6c0){const _0xd2da29=_0x103fa6;this[_0xd2da29(0xdd)]=_0x99e946,this[_0xd2da29(0xe0)][_0xd2da29(0xc9)](_0x99e946,_0x54b6c0);}[_0x103fa6(0xc4)](_0x239477){const _0x36b562=_0x103fa6;(_0x239477?this[_0x36b562(0xdd)][_0x36b562(0xf1)](_0x3184b9=>_0x3184b9['id']===_0x239477['id']):null)?(this[_0x36b562(0xf8)]=!0x0,this[_0x36b562(0xe0)][_0x36b562(0xc4)](_0x239477)):_0x239477?.['id'][_0x36b562(0xca)](_0x36b562(0xe8))?(this[_0x36b562(0xf8)]=!0x0,this[_0x36b562(0xe0)][_0x36b562(0xc4)](this[_0x36b562(0xdd)][0x0])):this[_0x36b562(0xf8)]=!0x1;}[_0x103fa6(0xd6)](){const _0xf222c0=_0x103fa6;this[_0xf222c0(0xe0)][_0xf222c0(0xd6)]();}[_0x103fa6(0xe9)](_0x1b7976){const _0xcf011=_0x103fa6;this[_0xcf011(0xe0)][_0xcf011(0xe9)](_0x1b7976);}[_0x103fa6(0xb2)](_0x2fb245,_0x108385,_0x1daf24,_0x28e064){const _0x3de910=_0x103fa6;this[_0x3de910(0xcf)][_0x3de910(0xb2)](_0x2fb245,_0x108385,_0x1daf24,_0x28e064);}[_0x103fa6(0xce)](_0x2303e5){const _0x1972f0=_0x103fa6;this[_0x1972f0(0xcf)][_0x1972f0(0xce)](_0x2303e5);}[_0x103fa6(0xda)](){const _0x1bf445=_0x103fa6;this[_0x1bf445(0xec)][_0x1bf445(0xef)]();}}class ws extends _0x47e5e1{constructor(_0x1baf2d){const _0x5f1e08=_0x103fa6;super(_0x1baf2d);const _0x59ab4c=new _0x25612f(_0x1baf2d);_0x59ab4c[_0x5f1e08(0xcd)]({'label':_0x5dd2a6(this[_0x5f1e08(0xd5)],_0x5f1e08(0xb5)),'withText':!0x0,'class':[_0x5f1e08(0xb4)],'tooltip':''}),_0x59ab4c[_0x5f1e08(0xe3)](_0x5f1e08(0xbe))['to'](this,_0x5f1e08(0xe4)),this[_0x5f1e08(0xba)]({'tag':_0x5f1e08(0xd9),'attributes':{'class':['ck',_0x5f1e08(0xf2)]},'children':[{'tag':'p','children':[{'text':_0x5dd2a6(this[_0x5f1e08(0xd5)],_0x5f1e08(0xd4))+'\x20'},_0x59ab4c]}]});}}
23
+ const _0x21fc29=_0x3cda;(function(_0x21914c,_0x2a78c9){const _0x4fe3c7=_0x3cda,_0x456b29=_0x21914c();while(!![]){try{const _0x481fc8=-parseInt(_0x4fe3c7(0x206))/0x1+parseInt(_0x4fe3c7(0x213))/0x2*(-parseInt(_0x4fe3c7(0x200))/0x3)+parseInt(_0x4fe3c7(0x1f7))/0x4+parseInt(_0x4fe3c7(0x20f))/0x5+parseInt(_0x4fe3c7(0x220))/0x6+-parseInt(_0x4fe3c7(0x1ff))/0x7*(parseInt(_0x4fe3c7(0x22a))/0x8)+parseInt(_0x4fe3c7(0x21f))/0x9;if(_0x481fc8===_0x2a78c9)break;else _0x456b29['push'](_0x456b29['shift']());}catch(_0x20b1a3){_0x456b29['push'](_0x456b29['shift']());}}}(_0x42a2,0xaf8d3));function _0x3cda(_0x508525,_0xea8542){const _0x42a2a3=_0x42a2();return _0x3cda=function(_0x3cdad3,_0x540dfe){_0x3cdad3=_0x3cdad3-0x1db;let _0x296697=_0x42a2a3[_0x3cdad3];return _0x296697;},_0x3cda(_0x508525,_0xea8542);}import{ButtonView as _0x48804d,clickOutsideHandler as _0x3d3ab0,View as _0x25b464}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x1ab626}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x381898}from'./controls/aichatpromptcapabilitiesview.js';function _0x42a2(){const _0x3a0bcf=['_modelUnavailableMessageView','bodyCollection','7976wWRWaU','setInputPlaceholder','clearConversationContextItems','setAddContextOptions','_loaderView','_contextPanelView','clearCurrentContextItems','contextResourcesSearchInputVisibleFrom','_displayedModels','find','toggleWebSearch','enableModelSelector','resetMessageInput','bindTemplate','populateSourceResourceBalloon','_createModelUnavailableMessageView','_createPromptInputView','_shouldRestorePromptInputFocus','setWebSearch','ck-ai-chat-controls-model-unavailable-message','selectModel','setIsUploadInProgress','agent','delegate','clearConversationContextUI','ck-hidden','toggleReasoning','sendUserMessage','isDisabled','2382772qUMsoU','setConversationContext','closeSourceResourceBalloon','updateResourceState','isModelAvailable','addContextButtonView','locale','setTemplate','889Wbcyuu','172353HxMXmO','reset','startsWith','set','change:isLoading','_promptCapabilitiesView','1327978lcrMLC','ck-ai-chat-controls-disabled','setModelList','div','focusPromptInput','ck-ai-chat-controls','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setModel','_promptInputView','3664890SWQBZJ','isLoading','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','startConversation','18gaegXO','_createContextPanelView','ck-ai-chat-controls__start-new-chat-button','execute','setPlaceholderText','abortPromptStream','addContextItem','element','focus','low','_createPromptCapabilitiesView','_createLoaderView','4999464yGJRsS','4839288hjihUq','removeContextItem','_handlePromptInputFocus','disableModelSelector','clearPendingContextUI','setContextItemLoading','setReasoning','form'];_0x42a2=function(){return _0x3a0bcf;};return _0x42a2();}import{AIChatContextPanelView as _0x16100b,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x155b21}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x37a175}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x24d807}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x25b464{[_0x21fc29(0x1e2)]=[];[_0x21fc29(0x1df)];[_0x21fc29(0x20e)];[_0x21fc29(0x205)];[_0x21fc29(0x1de)];[_0x21fc29(0x228)];[_0x21fc29(0x1eb)];constructor(_0xd53e6b,_0x596a90){const _0x17bbff=_0x21fc29;super(_0xd53e6b),this[_0x17bbff(0x1df)]=this[_0x17bbff(0x214)](_0xd53e6b,{'bodyCollection':_0x596a90[_0x17bbff(0x229)],'searchInputVisibleFrom':_0x596a90[_0x17bbff(0x1e1)]}),this[_0x17bbff(0x20e)]=this[_0x17bbff(0x1ea)](_0xd53e6b),this[_0x17bbff(0x205)]=this[_0x17bbff(0x21d)](_0xd53e6b),this[_0x17bbff(0x1de)]=this[_0x17bbff(0x21e)](_0xd53e6b),this[_0x17bbff(0x228)]=this[_0x17bbff(0x1e9)](_0xd53e6b),this[_0x17bbff(0x1eb)]=!0x1,this[_0x17bbff(0x20e)][_0x17bbff(0x1f1)](_0x17bbff(0x1f5))['to'](this),this[_0x17bbff(0x1de)][_0x17bbff(0x1f1)](_0x17bbff(0x218))['to'](this),this[_0x17bbff(0x205)][_0x17bbff(0x1f1)](_0x17bbff(0x1e4))['to'](this),this[_0x17bbff(0x205)][_0x17bbff(0x1f1)](_0x17bbff(0x1f4))['to'](this),this[_0x17bbff(0x205)][_0x17bbff(0x1f1)](_0x17bbff(0x1ee))['to'](this),this[_0x17bbff(0x1df)][_0x17bbff(0x1f1)](..._0x155b21)['to'](this),this[_0x17bbff(0x203)](_0x17bbff(0x1fb),!0x0),this[_0x17bbff(0x203)](_0x17bbff(0x1f6),!0x1);const _0x459745=this[_0x17bbff(0x1e7)];this[_0x17bbff(0x1fe)]({'tag':_0x17bbff(0x227),'attributes':{'class':['ck',_0x17bbff(0x20b),_0x459745['if'](_0x17bbff(0x1f6),_0x17bbff(0x207))]},'children':[{'tag':_0x17bbff(0x209),'attributes':{'class':[_0x459745['if'](_0x17bbff(0x210),_0x17bbff(0x1f3),_0x3e8c1d=>_0x3e8c1d||!this[_0x17bbff(0x1fb)]),_0x459745['if'](_0x17bbff(0x1fb),_0x17bbff(0x1f3),_0x4e3d39=>!_0x4e3d39||this[_0x17bbff(0x210)])]},'children':[this[_0x17bbff(0x1df)],this[_0x17bbff(0x20e)],this[_0x17bbff(0x205)]]},{'tag':_0x17bbff(0x209),'attributes':{'class':[_0x459745['if'](_0x17bbff(0x210),_0x17bbff(0x1f3),_0x57b164=>!_0x57b164)]},'children':[this[_0x17bbff(0x1de)]]},{'tag':_0x17bbff(0x209),'attributes':{'class':[_0x459745['if'](_0x17bbff(0x1fb),_0x17bbff(0x1f3),_0x159e6e=>_0x159e6e)]},'children':[this[_0x17bbff(0x228)]]}]}),_0x3d3ab0({'emitter':this[_0x17bbff(0x20e)],'activator':()=>this[_0x17bbff(0x210)],'contextElements':()=>[this[_0x17bbff(0x21a)]],'callback':()=>{const _0xdead0d=_0x17bbff;this[_0xdead0d(0x1eb)]=!0x1;}}),this['on'](_0x17bbff(0x204),this[_0x17bbff(0x222)],{'priority':_0x17bbff(0x21c)});}[_0x21fc29(0x214)](_0x57519,_0x306c79){return new _0x16100b(_0x57519,_0x306c79);}[_0x21fc29(0x1ea)](_0x42f1d6){const _0x297280=_0x21fc29;return new _0x1ab626(_0x42f1d6,this[_0x297280(0x1df)][_0x297280(0x1fc)]);}[_0x21fc29(0x21d)](_0x270969){return new _0x381898(_0x270969);}[_0x21fc29(0x21e)](_0x29cb0d){return new _0x37a175(_0x29cb0d);}[_0x21fc29(0x1e9)](_0x39111e){const _0x41f897=_0x21fc29,_0x107de8=new hs(_0x39111e);return _0x107de8[_0x41f897(0x1f1)](_0x41f897(0x212))['to'](this),_0x107de8;}[_0x21fc29(0x222)](_0x2882ac,_0x1b79ea,_0x2133e0){const _0x5689e5=_0x21fc29;_0x2133e0?this[_0x5689e5(0x1eb)]=!0x0:this[_0x5689e5(0x1eb)]&&this[_0x5689e5(0x20e)][_0x5689e5(0x21b)]();}[_0x21fc29(0x219)](_0x8a2d3e,_0x37d8dd){const _0x93d636=_0x21fc29;this[_0x93d636(0x1df)][_0x93d636(0x219)](_0x8a2d3e,_0x37d8dd);}[_0x21fc29(0x221)](_0x567e5b){const _0x9d9743=_0x21fc29;this[_0x9d9743(0x1df)][_0x9d9743(0x221)](_0x567e5b);}[_0x21fc29(0x225)](_0x3f743c,_0x5038d2){const _0x577643=_0x21fc29;this[_0x577643(0x1df)][_0x577643(0x225)](_0x3f743c,_0x5038d2);}[_0x21fc29(0x1ef)](_0x3be52f){const _0x2ef406=_0x21fc29;this[_0x2ef406(0x20e)][_0x2ef406(0x1ef)](_0x3be52f);}[_0x21fc29(0x1f8)](_0x5aa02e){const _0x4ffd78=_0x21fc29;this[_0x4ffd78(0x1df)][_0x4ffd78(0x1f8)](_0x5aa02e);}[_0x21fc29(0x224)](){const _0x543006=_0x21fc29;this[_0x543006(0x1df)][_0x543006(0x1e0)]();}[_0x21fc29(0x1f2)](){const _0x3f2ff1=_0x21fc29;this[_0x3f2ff1(0x1df)][_0x3f2ff1(0x1dc)]();}[_0x21fc29(0x1fa)](_0x20ce92,_0x58a477,_0x508ae3){const _0x318978=_0x21fc29;this[_0x318978(0x1df)][_0x318978(0x1fa)](_0x20ce92,_0x58a477,_0x508ae3);}[_0x21fc29(0x1ec)](_0x1adb60){const _0x220496=_0x21fc29;this[_0x220496(0x205)][_0x220496(0x1ec)](_0x1adb60);}[_0x21fc29(0x226)](_0xba1070){const _0x1a71ff=_0x21fc29;this[_0x1a71ff(0x205)][_0x1a71ff(0x226)](_0xba1070);}[_0x21fc29(0x1e6)](){const _0xeb543b=_0x21fc29;this[_0xeb543b(0x20e)][_0xeb543b(0x201)]();}[_0x21fc29(0x1dd)](_0x5ec86a){const _0x3b6aef=_0x21fc29;this[_0x3b6aef(0x1df)][_0x3b6aef(0x1dd)](_0x5ec86a);}[_0x21fc29(0x1db)](_0x1228b2){const _0x1e7e1a=_0x21fc29;this[_0x1e7e1a(0x20e)][_0x1e7e1a(0x217)](_0x1228b2);}[_0x21fc29(0x208)](_0x21842d,_0x3df718){const _0x4ac667=_0x21fc29;this[_0x4ac667(0x1e2)]=_0x21842d,this[_0x4ac667(0x205)][_0x4ac667(0x208)](_0x21842d,_0x3df718);}[_0x21fc29(0x20d)](_0xf255a4){const _0x21a736=_0x21fc29;(_0xf255a4?this[_0x21a736(0x1e2)][_0x21a736(0x1e3)](_0xd3c41e=>_0xd3c41e['id']===_0xf255a4['id']):null)?(this[_0x21a736(0x1fb)]=!0x0,this[_0x21a736(0x205)][_0x21a736(0x20d)](_0xf255a4)):_0xf255a4?.['id'][_0x21a736(0x202)](_0x21a736(0x1f0))?(this[_0x21a736(0x1fb)]=!0x0,this[_0x21a736(0x205)][_0x21a736(0x20d)](this[_0x21a736(0x1e2)][0x0])):this[_0x21a736(0x1fb)]=!0x1;}[_0x21fc29(0x1e5)](){const _0x86ac69=_0x21fc29;this[_0x86ac69(0x205)][_0x86ac69(0x1e5)]();}[_0x21fc29(0x223)](_0x554419){const _0x44412b=_0x21fc29;this[_0x44412b(0x205)][_0x44412b(0x223)](_0x554419);}[_0x21fc29(0x1e8)](_0x24751a,_0x516de1,_0x2fac72,_0x378633){const _0x54bc6a=_0x21fc29;this[_0x54bc6a(0x1df)][_0x54bc6a(0x1e8)](_0x24751a,_0x516de1,_0x2fac72,_0x378633);}[_0x21fc29(0x1f9)](_0x166d6f){const _0x4adb77=_0x21fc29;this[_0x4adb77(0x1df)][_0x4adb77(0x1f9)](_0x166d6f);}[_0x21fc29(0x20a)](){const _0x522d=_0x21fc29;this[_0x522d(0x20e)][_0x522d(0x21b)]();}}class hs extends _0x25b464{constructor(_0x3fd5a5){const _0x46aa5b=_0x21fc29;super(_0x3fd5a5);const _0x5b5bf1=new _0x48804d(_0x3fd5a5);_0x5b5bf1[_0x46aa5b(0x203)]({'label':_0x24d807(this[_0x46aa5b(0x1fd)],_0x46aa5b(0x211)),'withText':!0x0,'class':[_0x46aa5b(0x215)],'tooltip':''}),_0x5b5bf1[_0x46aa5b(0x1f1)](_0x46aa5b(0x216))['to'](this,_0x46aa5b(0x212)),this[_0x46aa5b(0x1fe)]({'tag':_0x46aa5b(0x209),'attributes':{'class':['ck',_0x46aa5b(0x1ed)]},'children':[{'tag':'p','children':[{'text':_0x24d807(this[_0x46aa5b(0x1fd)],_0x46aa5b(0x20c))+'\x20'},_0x5b5bf1]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a6113=_0x41b1;(function(_0x283275,_0x1307b9){const _0x5e0be9=_0x41b1,_0x451e75=_0x283275();while(!![]){try{const _0x5ac69c=parseInt(_0x5e0be9(0x197))/0x1+-parseInt(_0x5e0be9(0x1a4))/0x2+-parseInt(_0x5e0be9(0x1ae))/0x3+-parseInt(_0x5e0be9(0x1a0))/0x4+parseInt(_0x5e0be9(0x161))/0x5*(parseInt(_0x5e0be9(0x18a))/0x6)+parseInt(_0x5e0be9(0x173))/0x7+-parseInt(_0x5e0be9(0x17a))/0x8*(-parseInt(_0x5e0be9(0x19e))/0x9);if(_0x5ac69c===_0x1307b9)break;else _0x451e75['push'](_0x451e75['shift']());}catch(_0x3368aa){_0x451e75['push'](_0x451e75['shift']());}}}(_0x3864,0xbe96d));import{CKEditorError as _0x806187,logWarning as _0x500907,scrollViewportToShowTarget as _0x11fa7a}from'ckeditor5/src/utils.js';import{View as _0x58a36d}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1742c9}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x2b6ec1}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0xb274eb}from'./feed/aichatfeedreplyitemview.js';function _0x41b1(_0x22590f,_0x1078dd){const _0x386464=_0x3864();return _0x41b1=function(_0x41b17f,_0x270d2e){_0x41b17f=_0x41b17f-0x15f;let _0x452c30=_0x386464[_0x41b17f];return _0x452c30;},_0x41b1(_0x22590f,_0x1078dd);}function _0x3864(){const _0x3ba049=['add','ai-suggestion-reply','scrollManager','find','options','span','_bodyCollection','updateContent','ck-hidden','24iqEEuf','updateReplyItem','_createFeedLoader','map','isLoadingSkeletonVisible','children','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','getItemById','toggleLoadingSkeleton','ck-ai-chat__feed','loadingMessage','element','destroy','932815jrtTFU','isVisible','stopAutoScroll','includes','extendTemplate','updatePartState','markItemAsDone','3420891CfcVvl','div','4452780RCwETj','ai-chat-feed-view-item-not-a-reply-item','isTrackChangesOn','setLoadingMessage','376460gTGtHi','ai-reply','getPartView','_createLoaderChildren','_createSkeletonLoader','setTemplate','updateWebSources','stop','bind','remove','3475776QKpNRG','ck-ai-chat__feed__items','removeItem','1766820TSQrVH','_createTemplateChildren','ai-chat-feed-view-item-not-found','set','markAsDone','updateSources','render','addItem','start','updateSuggestionItem','locale','ck-ai-chat__loader-text','aiFeed','delegate','clear','ck-ai-chat__loader','getItemIds','updateSuggestionPartState','3600100RHDffo','interaction-header','user-message','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','ai-chat-feed-view-item-not-a-suggestion-item','createCollection','isPending','8jPomnq','bindTemplate','_setupTemplate','_createFeedItems','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','scrollToSuggestion','startAutoScroll'];_0x3864=function(){return _0x3ba049;};return _0x3864();}import{AIChatFeedUserMessageItemView as _0x47e75b}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x1d444f}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x2e5b81}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x1f1263}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x39ebd1,SKELETON_DEFINITIONS as _0xf3b5dc}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x1baeb3}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x58a36d{[_0x3a6113(0x18f)];[_0x3a6113(0x183)];[_0x3a6113(0x187)];constructor(_0x1eb550,_0x41a3fe){const _0x56f2c4=_0x3a6113;super(_0x1eb550),this[_0x56f2c4(0x187)]=_0x41a3fe,this[_0x56f2c4(0x164)](_0x56f2c4(0x179),!0x1),this[_0x56f2c4(0x164)](_0x56f2c4(0x194),''),this[_0x56f2c4(0x164)](_0x56f2c4(0x18e),!0x1),this[_0x56f2c4(0x164)](_0x56f2c4(0x1a2),!0x1),this[_0x56f2c4(0x18f)]=this[_0x56f2c4(0x178)](),this[_0x56f2c4(0x18f)][_0x56f2c4(0x16e)](..._0x1742c9)['to'](this),this[_0x56f2c4(0x17c)]();}[_0x3a6113(0x167)](){const _0x21c8d6=_0x3a6113;super[_0x21c8d6(0x167)](),this[_0x21c8d6(0x183)]=new _0x1f1263(this[_0x21c8d6(0x195)]);}[_0x3a6113(0x196)](){const _0x2cd488=_0x3a6113;super[_0x2cd488(0x196)](),this[_0x2cd488(0x183)][_0x2cd488(0x196)]();}[_0x3a6113(0x16f)](){const _0x3efee3=_0x3a6113;this[_0x3efee3(0x18f)][_0x3efee3(0x16f)]();}[_0x3a6113(0x168)](_0x4d8e3e,_0x2accf0){const _0xff4241=_0x3a6113;let _0x4942df;_0xff4241(0x1a5)===_0x4d8e3e?_0x4942df=new _0xb274eb(this[_0xff4241(0x16b)],_0x2accf0,this[_0xff4241(0x187)]):_0xff4241(0x182)===_0x4d8e3e?(_0x4942df=new _0x2b6ec1(this[_0xff4241(0x16b)],_0x2accf0,this[_0xff4241(0x187)]),_0x4942df[_0xff4241(0x1ac)](_0xff4241(0x1a2))['to'](this,_0xff4241(0x1a2))):_0x4942df=_0xff4241(0x175)===_0x4d8e3e?new _0x47e75b(this[_0xff4241(0x16b)],_0x2accf0,this[_0xff4241(0x187)]):_0xff4241(0x174)===_0x4d8e3e?new _0x2e5b81(this[_0xff4241(0x16b)],_0x2accf0):new _0x1d444f(_0x2accf0),this[_0xff4241(0x18f)][_0xff4241(0x181)](_0x4942df);}async[_0x3a6113(0x18b)]({id:_0x556510,parsedContent:_0x11e3af,renderingStrategy:_0x18eeec,abortSignal:_0x45f467}){const _0x55a792=_0x3a6113,_0x6c74eb=this[_0x55a792(0x191)](_0x556510);if(!(_0x6c74eb instanceof _0xb274eb))throw new _0x806187(_0x55a792(0x1a1),null,{'itemView':_0x6c74eb,'id':_0x556510,'parsedContent':_0x11e3af});await _0x6c74eb[_0x55a792(0x188)]({'parsedContent':_0x11e3af,'renderingStrategy':_0x18eeec,'abortSignal':_0x45f467});}async[_0x3a6113(0x1aa)](_0x556b27,_0x84e152){const _0x1f54a2=_0x3a6113,_0x33f3f4=this[_0x1f54a2(0x191)](_0x556b27);if(_0x33f3f4 instanceof _0x2b6ec1)_0x33f3f4[_0x1f54a2(0x166)](_0x84e152);else{if(!(_0x33f3f4 instanceof _0xb274eb))throw new _0x806187(_0x1f54a2(0x176),null,{'itemView':_0x33f3f4,'id':_0x556b27,'sources':_0x84e152});_0x33f3f4[_0x1f54a2(0x166)](_0x84e152);}}async[_0x3a6113(0x16a)]({id:_0x49e258,parts:_0x103a53,renderingStrategy:_0x5ed923,abortSignal:_0x852ddf}){const _0x1355dd=_0x3a6113,_0x415069=this[_0x1355dd(0x191)](_0x49e258);if(!(_0x415069 instanceof _0x2b6ec1))throw new _0x806187(_0x1355dd(0x177),null,{'itemView':_0x415069,'id':_0x49e258,'parts':_0x103a53});await _0x415069[_0x1355dd(0x188)]({'parts':_0x103a53,'renderingStrategy':_0x5ed923,'abortSignal':_0x852ddf});}[_0x3a6113(0x172)]({id:_0x17cb1,index:_0x3fea1a,state:_0x433334}){const _0x41dc27=_0x3a6113,_0x6b0e5d=this[_0x41dc27(0x191)](_0x17cb1);if(!(_0x6b0e5d instanceof _0x2b6ec1))throw new _0x806187(_0x41dc27(0x177),this,{'id':_0x17cb1});_0x6b0e5d[_0x41dc27(0x19c)](_0x3fea1a,_0x433334);}[_0x3a6113(0x19d)](_0x565ada){const _0x487a06=_0x3a6113;this[_0x487a06(0x191)](_0x565ada)[_0x487a06(0x165)]();}[_0x3a6113(0x171)](){const _0x4fda3e=_0x3a6113;return this[_0x4fda3e(0x18f)][_0x4fda3e(0x18d)](_0x34dfa9=>_0x34dfa9[_0x4fda3e(0x185)]['id']);}[_0x3a6113(0x160)](_0x10a9ee){const _0x24074a=_0x3a6113;this[_0x24074a(0x18f)][_0x24074a(0x1ad)](this[_0x24074a(0x191)](_0x10a9ee));}[_0x3a6113(0x17f)](_0x1e0d8f,_0x28bdbf){const _0x36f10e=_0x3a6113,_0x273539=this[_0x36f10e(0x191)](_0x1e0d8f);if(!(_0x273539 instanceof _0x2b6ec1))return void _0x500907(_0x36f10e(0x190),{'replyId':_0x1e0d8f,'partIndex':_0x28bdbf});const _0x17b98d=_0x273539[_0x36f10e(0x1a6)](_0x28bdbf);_0x17b98d?_0x11fa7a({'target':_0x17b98d[_0x36f10e(0x195)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x500907(_0x36f10e(0x17e),{'replyId':_0x1e0d8f,'partIndex':_0x28bdbf});}[_0x3a6113(0x17c)](){const _0x53acc2=_0x3a6113;this[_0x53acc2(0x1a9)]({'tag':_0x53acc2(0x19f),'attributes':{'class':['ck',_0x53acc2(0x193)]},'children':this[_0x53acc2(0x162)]()});}[_0x3a6113(0x162)](){const _0x5d2690=_0x3a6113,_0x7c1cf4=this[_0x5d2690(0x1a8)]();return[this[_0x5d2690(0x17d)](),_0x7c1cf4,this[_0x5d2690(0x18c)]()];}[_0x3a6113(0x1a8)](){const _0x1c809a=_0x3a6113,_0x3fd502=new _0x39ebd1(this[_0x1c809a(0x16b)],_0xf3b5dc[_0x1c809a(0x16d)]);return _0x3fd502[_0x1c809a(0x19b)]({'attributes':{'class':[this[_0x1c809a(0x17b)]['if'](_0x1c809a(0x18e),_0x1c809a(0x189),_0x36668b=>!_0x36668b)]}}),_0x3fd502;}[_0x3a6113(0x17d)](){const _0x4ef144=_0x3a6113,_0x871bd8=new _0x58a36d(this[_0x4ef144(0x16b)]);return _0x871bd8[_0x4ef144(0x1a9)]({'tag':_0x4ef144(0x19f),'attributes':{'class':['ck',_0x4ef144(0x15f),this[_0x4ef144(0x17b)]['if'](_0x4ef144(0x18e),_0x4ef144(0x189))]},'children':this[_0x4ef144(0x18f)]}),_0x871bd8;}[_0x3a6113(0x18c)](){const _0xf880f2=_0x3a6113,_0x4044d0=new _0x58a36d(this[_0xf880f2(0x16b)]);return _0x4044d0[_0xf880f2(0x1a9)]({'tag':_0xf880f2(0x19f),'attributes':{'class':['ck',_0xf880f2(0x170),this[_0xf880f2(0x17b)]['if'](_0xf880f2(0x179),_0xf880f2(0x189),_0x140990=>!_0x140990)]},'children':this[_0xf880f2(0x1a7)]()}),_0x4044d0;}[_0x3a6113(0x1a7)](){const _0x2ace9e=_0x3a6113,_0x5ba6b2=new _0x1baeb3();return _0x5ba6b2[_0x2ace9e(0x198)]=!0x0,[_0x5ba6b2,{'tag':_0x2ace9e(0x186),'attributes':{'class':['ck',_0x2ace9e(0x16c)]},'children':[{'text':this[_0x2ace9e(0x17b)]['to'](_0x2ace9e(0x194))}]}];}[_0x3a6113(0x191)](_0x3e5864){const _0x1f69ea=_0x3a6113,_0x47d4b2=this[_0x1f69ea(0x18f)][_0x1f69ea(0x184)](_0x5bdf1f=>_0x5bdf1f[_0x1f69ea(0x185)]['id'][_0x1f69ea(0x19a)](_0x3e5864));if(!_0x47d4b2)throw new _0x806187(_0x1f69ea(0x163),this,{'id':_0x3e5864});return _0x47d4b2;}[_0x3a6113(0x1a3)](_0x56a2f3){const _0x4099b1=_0x3a6113;this[_0x4099b1(0x164)](_0x4099b1(0x194),_0x56a2f3);}[_0x3a6113(0x192)](_0x2b13aa){const _0x33ea81=_0x3a6113;this[_0x33ea81(0x164)](_0x33ea81(0x18e),_0x2b13aa);}[_0x3a6113(0x180)](){const _0x37d02e=_0x3a6113;this[_0x37d02e(0x183)][_0x37d02e(0x169)]();}[_0x3a6113(0x199)](){const _0x13640f=_0x3a6113;this[_0x13640f(0x183)][_0x13640f(0x1ab)]();}}
23
+ const _0x2cefcb=_0x5d38;(function(_0x51abcf,_0x6a5e69){const _0x591d1d=_0x5d38,_0x5c84fc=_0x51abcf();while(!![]){try{const _0x24e391=parseInt(_0x591d1d(0x175))/0x1*(-parseInt(_0x591d1d(0x13a))/0x2)+-parseInt(_0x591d1d(0x17d))/0x3*(parseInt(_0x591d1d(0x15d))/0x4)+parseInt(_0x591d1d(0x177))/0x5+parseInt(_0x591d1d(0x17a))/0x6+parseInt(_0x591d1d(0x184))/0x7*(-parseInt(_0x591d1d(0x163))/0x8)+parseInt(_0x591d1d(0x17c))/0x9+parseInt(_0x591d1d(0x179))/0xa*(parseInt(_0x591d1d(0x157))/0xb);if(_0x24e391===_0x6a5e69)break;else _0x5c84fc['push'](_0x5c84fc['shift']());}catch(_0x337cf1){_0x5c84fc['push'](_0x5c84fc['shift']());}}}(_0x2516,0x6fc47));import{CKEditorError as _0x2b95b6,logWarning as _0x2374b4,scrollViewportToShowTarget as _0x34202e}from'ckeditor5/src/utils.js';import{View as _0x1d90e2}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x42bd1f}from'../utils/eventnames.js';function _0x5d38(_0x150170,_0xcbd55e){const _0x2516ae=_0x2516();return _0x5d38=function(_0x5d38e3,_0x165685){_0x5d38e3=_0x5d38e3-0x136;let _0x51313c=_0x2516ae[_0x5d38e3];return _0x51313c;},_0x5d38(_0x150170,_0xcbd55e);}import{AIChatFeedSuggestionItemView as _0x1f12ee}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x1cc552}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x6b1235}from'./feed/aichatfeedusermessageitem.js';function _0x2516(){const _0x2ce062=['stopAutoScroll','includes','_createTemplateChildren','children','ck-hidden','bindTemplate','clear','ck-ai-chat__feed','removeItem','isTrackChangesOn','4861kRGZEI','toggleLoadingSkeleton','2924925FsVibN','element','310yayNkj','3756840WoTZDu','ai-chat-feed-view-item-not-a-suggestion-item','7082622qEnHpA','8706XOZwBm','add','interaction-header','updateSources','ck-ai-chat__feed__items','_setupTemplate','render','2279767AGUwyx','scrollManager','setTemplate','_createFeedItems','find','remove','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','_createSkeletonLoader','376xXKYHO','locale','markItemAsDone','extendTemplate','destroy','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','div','user-message','updateContent','_bodyCollection','options','getItemIds','createCollection','delegate','set','_createFeedLoader','span','ai-chat-feed-view-item-not-found','ai-reply','aiFeed','ai-chat-feed-view-item-not-a-reply-item','ck-ai-chat__loader-text','startAutoScroll','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','markAsDone','updateReplyItem','loadingMessage','start','updateWebSources','127039znXScV','map','ai-suggestion-reply','getPartView','scrollToSuggestion','stop','908hYAHgP','getItemById','isPending','bind','isVisible','ck-ai-chat__loader','8oqxORA','updatePartState','setLoadingMessage','updateSuggestionItem','addItem','updateSuggestionPartState','_createLoaderChildren','isLoadingSkeletonVisible'];_0x2516=function(){return _0x2ce062;};return _0x2516();}import{AIChatFeedErrorItemView as _0x518c43}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x14911e}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x464c3d}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x4fd07d,SKELETON_DEFINITIONS as _0x59db90}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x2a8549}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x1d90e2{[_0x2cefcb(0x16e)];[_0x2cefcb(0x185)];[_0x2cefcb(0x143)];constructor(_0x54879d,_0x399b7b){const _0x46952f=_0x2cefcb;super(_0x54879d),this[_0x46952f(0x143)]=_0x399b7b,this[_0x46952f(0x148)](_0x46952f(0x15f),!0x1),this[_0x46952f(0x148)](_0x46952f(0x154),''),this[_0x46952f(0x148)](_0x46952f(0x16a),!0x1),this[_0x46952f(0x148)](_0x46952f(0x174),!0x1),this[_0x46952f(0x16e)]=this[_0x46952f(0x146)](),this[_0x46952f(0x16e)][_0x46952f(0x147)](..._0x42bd1f)['to'](this),this[_0x46952f(0x182)]();}[_0x2cefcb(0x183)](){const _0x97b031=_0x2cefcb;super[_0x97b031(0x183)](),this[_0x97b031(0x185)]=new _0x464c3d(this[_0x97b031(0x178)]);}[_0x2cefcb(0x13e)](){const _0x40bec3=_0x2cefcb;super[_0x40bec3(0x13e)](),this[_0x40bec3(0x185)][_0x40bec3(0x13e)]();}[_0x2cefcb(0x171)](){const _0xa8e86f=_0x2cefcb;this[_0xa8e86f(0x16e)][_0xa8e86f(0x171)]();}[_0x2cefcb(0x167)](_0x1775dc,_0x3e713e){const _0x518611=_0x2cefcb;let _0x2b2fb8;_0x518611(0x14c)===_0x1775dc?_0x2b2fb8=new _0x1cc552(this[_0x518611(0x13b)],_0x3e713e,this[_0x518611(0x143)]):_0x518611(0x159)===_0x1775dc?(_0x2b2fb8=new _0x1f12ee(this[_0x518611(0x13b)],_0x3e713e,this[_0x518611(0x143)]),_0x2b2fb8[_0x518611(0x160)](_0x518611(0x174))['to'](this,_0x518611(0x174))):_0x2b2fb8=_0x518611(0x141)===_0x1775dc?new _0x6b1235(this[_0x518611(0x13b)],_0x3e713e,this[_0x518611(0x143)]):_0x518611(0x17f)===_0x1775dc?new _0x14911e(this[_0x518611(0x13b)],_0x3e713e):new _0x518c43(_0x3e713e),this[_0x518611(0x16e)][_0x518611(0x17e)](_0x2b2fb8);}async[_0x2cefcb(0x153)]({id:_0x2e658b,parsedContent:_0x1cdf74,renderingStrategy:_0x1984fe,abortSignal:_0x2cb25e}){const _0x4fea75=_0x2cefcb,_0x4278cf=this[_0x4fea75(0x15e)](_0x2e658b);if(!(_0x4278cf instanceof _0x1cc552))throw new _0x2b95b6(_0x4fea75(0x14e),null,{'itemView':_0x4278cf,'id':_0x2e658b,'parsedContent':_0x1cdf74});await _0x4278cf[_0x4fea75(0x142)]({'parsedContent':_0x1cdf74,'renderingStrategy':_0x1984fe,'abortSignal':_0x2cb25e});}async[_0x2cefcb(0x156)](_0x1cea74,_0x50e41c){const _0x49ab0f=_0x2cefcb,_0x4acd8b=this[_0x49ab0f(0x15e)](_0x1cea74);if(_0x4acd8b instanceof _0x1f12ee)_0x4acd8b[_0x49ab0f(0x180)](_0x50e41c);else{if(!(_0x4acd8b instanceof _0x1cc552))throw new _0x2b95b6(_0x49ab0f(0x13f),null,{'itemView':_0x4acd8b,'id':_0x1cea74,'sources':_0x50e41c});_0x4acd8b[_0x49ab0f(0x180)](_0x50e41c);}}async[_0x2cefcb(0x166)]({id:_0x475c03,parts:_0x116dee,renderingStrategy:_0x412213,abortSignal:_0x263f4d}){const _0x448435=_0x2cefcb,_0x1619cf=this[_0x448435(0x15e)](_0x475c03);if(!(_0x1619cf instanceof _0x1f12ee))throw new _0x2b95b6(_0x448435(0x17b),null,{'itemView':_0x1619cf,'id':_0x475c03,'parts':_0x116dee});await _0x1619cf[_0x448435(0x142)]({'parts':_0x116dee,'renderingStrategy':_0x412213,'abortSignal':_0x263f4d});}[_0x2cefcb(0x168)]({id:_0x35a1a4,index:_0x64c694,state:_0x2a169c}){const _0x19ed5c=_0x2cefcb,_0x28585a=this[_0x19ed5c(0x15e)](_0x35a1a4);if(!(_0x28585a instanceof _0x1f12ee))throw new _0x2b95b6(_0x19ed5c(0x17b),this,{'id':_0x35a1a4});_0x28585a[_0x19ed5c(0x164)](_0x64c694,_0x2a169c);}[_0x2cefcb(0x13c)](_0x49fa6c){const _0x2bc89e=_0x2cefcb;this[_0x2bc89e(0x15e)](_0x49fa6c)[_0x2bc89e(0x152)]();}[_0x2cefcb(0x145)](){const _0x11671b=_0x2cefcb;return this[_0x11671b(0x16e)][_0x11671b(0x158)](_0x18716f=>_0x18716f[_0x11671b(0x144)]['id']);}[_0x2cefcb(0x173)](_0xf69eab){const _0x32ebb2=_0x2cefcb;this[_0x32ebb2(0x16e)][_0x32ebb2(0x137)](this[_0x32ebb2(0x15e)](_0xf69eab));}[_0x2cefcb(0x15b)](_0x59612e,_0x1657ca){const _0x3adbfb=_0x2cefcb,_0x4dc247=this[_0x3adbfb(0x15e)](_0x59612e);if(!(_0x4dc247 instanceof _0x1f12ee))return void _0x2374b4(_0x3adbfb(0x138),{'replyId':_0x59612e,'partIndex':_0x1657ca});const _0x49cfee=_0x4dc247[_0x3adbfb(0x15a)](_0x1657ca);_0x49cfee?_0x34202e({'target':_0x49cfee[_0x3adbfb(0x178)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x2374b4(_0x3adbfb(0x151),{'replyId':_0x59612e,'partIndex':_0x1657ca});}[_0x2cefcb(0x182)](){const _0x49496a=_0x2cefcb;this[_0x49496a(0x186)]({'tag':_0x49496a(0x140),'attributes':{'class':['ck',_0x49496a(0x172)]},'children':this[_0x49496a(0x16d)]()});}[_0x2cefcb(0x16d)](){const _0x5ca07b=_0x2cefcb,_0x196751=this[_0x5ca07b(0x139)]();return[this[_0x5ca07b(0x187)](),_0x196751,this[_0x5ca07b(0x149)]()];}[_0x2cefcb(0x139)](){const _0x4cab36=_0x2cefcb,_0x3f602f=new _0x4fd07d(this[_0x4cab36(0x13b)],_0x59db90[_0x4cab36(0x14d)]);return _0x3f602f[_0x4cab36(0x13d)]({'attributes':{'class':[this[_0x4cab36(0x170)]['if'](_0x4cab36(0x16a),_0x4cab36(0x16f),_0x3868f4=>!_0x3868f4)]}}),_0x3f602f;}[_0x2cefcb(0x187)](){const _0x38cb8c=_0x2cefcb,_0x476764=new _0x1d90e2(this[_0x38cb8c(0x13b)]);return _0x476764[_0x38cb8c(0x186)]({'tag':_0x38cb8c(0x140),'attributes':{'class':['ck',_0x38cb8c(0x181),this[_0x38cb8c(0x170)]['if'](_0x38cb8c(0x16a),_0x38cb8c(0x16f))]},'children':this[_0x38cb8c(0x16e)]}),_0x476764;}[_0x2cefcb(0x149)](){const _0x1b7b51=_0x2cefcb,_0x53e498=new _0x1d90e2(this[_0x1b7b51(0x13b)]);return _0x53e498[_0x1b7b51(0x186)]({'tag':_0x1b7b51(0x140),'attributes':{'class':['ck',_0x1b7b51(0x162),this[_0x1b7b51(0x170)]['if'](_0x1b7b51(0x15f),_0x1b7b51(0x16f),_0x158724=>!_0x158724)]},'children':this[_0x1b7b51(0x169)]()}),_0x53e498;}[_0x2cefcb(0x169)](){const _0x514553=_0x2cefcb,_0x5a62eb=new _0x2a8549();return _0x5a62eb[_0x514553(0x161)]=!0x0,[_0x5a62eb,{'tag':_0x514553(0x14a),'attributes':{'class':['ck',_0x514553(0x14f)]},'children':[{'text':this[_0x514553(0x170)]['to'](_0x514553(0x154))}]}];}[_0x2cefcb(0x15e)](_0x25f637){const _0x3296de=_0x2cefcb,_0x1cc6b3=this[_0x3296de(0x16e)][_0x3296de(0x136)](_0x3d3cf3=>_0x3d3cf3[_0x3296de(0x144)]['id'][_0x3296de(0x16c)](_0x25f637));if(!_0x1cc6b3)throw new _0x2b95b6(_0x3296de(0x14b),this,{'id':_0x25f637});return _0x1cc6b3;}[_0x2cefcb(0x165)](_0x10c9a8){const _0x2123d4=_0x2cefcb;this[_0x2123d4(0x148)](_0x2123d4(0x154),_0x10c9a8);}[_0x2cefcb(0x176)](_0x44f243){const _0x35b0ec=_0x2cefcb;this[_0x35b0ec(0x148)](_0x35b0ec(0x16a),_0x44f243);}[_0x2cefcb(0x150)](){const _0x2cb04b=_0x2cefcb;this[_0x2cb04b(0x185)][_0x2cb04b(0x155)]();}[_0x2cefcb(0x16b)](){const _0x42d17d=_0x2cefcb;this[_0x42d17d(0x185)][_0x42d17d(0x15c)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b7bde=_0x4f19;(function(_0x46afde,_0x47466f){const _0x4ceeac=_0x4f19,_0x4ef8d=_0x46afde();while(!![]){try{const _0x3b1b3f=-parseInt(_0x4ceeac(0x10b))/0x1+-parseInt(_0x4ceeac(0x102))/0x2*(-parseInt(_0x4ceeac(0x106))/0x3)+-parseInt(_0x4ceeac(0x101))/0x4*(-parseInt(_0x4ceeac(0x108))/0x5)+parseInt(_0x4ceeac(0x105))/0x6*(-parseInt(_0x4ceeac(0x103))/0x7)+parseInt(_0x4ceeac(0xfe))/0x8+parseInt(_0x4ceeac(0x116))/0x9+parseInt(_0x4ceeac(0x115))/0xa*(-parseInt(_0x4ceeac(0x10c))/0xb);if(_0x3b1b3f===_0x47466f)break;else _0x4ef8d['push'](_0x4ef8d['shift']());}catch(_0x5f1509){_0x4ef8d['push'](_0x4ef8d['shift']());}}}(_0x4078,0x93b88));function _0x4f19(_0x4895a5,_0xef540c){const _0x4078a3=_0x4078();return _0x4f19=function(_0x4f1976,_0x3dcd32){_0x4f1976=_0x4f1976-0xfe;let _0x233d81=_0x4078a3[_0x4f1976];return _0x233d81;},_0x4f19(_0x4895a5,_0xef540c);}import{ButtonView as _0x39c93a,FormHeaderView as _0x576f8d}from'ckeditor5/src/ui.js';import{IconPlus as _0x3411d7,IconAIChat as _0xe5e359}from'ckeditor5/src/icons.js';import{getTranslation as _0x20ca52}from'../../aicore/utils/common-translations.js';function _0x4078(){const _0x101089=['6690426noYpFr','6BfgNkX','conversationStartButton','12695owOaEl','add','AI_CHAT_HEADING','453339wvjpHm','173437nmPQOs','resizeButton','children','ck-ai-header\x20ck-ai-header_chat','startConversation','fire','AI_CHAT_LABEL_NEW_CHAT','isMaximized','_createStartConversationButton','600jbZjdH','5176710FIJhGr','locale','9255064HAsqRc','ck-ai-chat__start-conversation','set','1220jlQymC','613026SQetbo','7kiGXGH','execute'];_0x4078=function(){return _0x101089;};return _0x4078();}import{createResizeButton as _0x34905d}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x576f8d{[_0x2b7bde(0x107)];[_0x2b7bde(0x10d)];constructor(_0x42af66,_0x12e156){const _0xa5dc72=_0x2b7bde;super(_0x42af66,{'label':_0x20ca52(_0x42af66,_0xa5dc72(0x10a)),'class':_0xa5dc72(0x10f),'icon':_0xe5e359}),this[_0xa5dc72(0x100)](_0xa5dc72(0x113),!0x1),this[_0xa5dc72(0x107)]=this[_0xa5dc72(0x114)](_0x42af66),this[_0xa5dc72(0x10e)][_0xa5dc72(0x109)](this[_0xa5dc72(0x107)]),_0x12e156&&(this[_0xa5dc72(0x10d)]=_0x34905d(_0x42af66,this),this[_0xa5dc72(0x10e)][_0xa5dc72(0x109)](this[_0xa5dc72(0x10d)]));}[_0x2b7bde(0x114)](_0x3bd24c){const _0x3597cd=_0x2b7bde,_0x16347c=new _0x39c93a(_0x3bd24c);return _0x16347c[_0x3597cd(0x100)]({'label':_0x20ca52(this[_0x3597cd(0x117)],_0x3597cd(0x112)),'withText':!0x0,'icon':_0x3411d7,'class':_0x3597cd(0xff)}),_0x16347c['on'](_0x3597cd(0x104),()=>{const _0x5acdfb=_0x3597cd;this[_0x5acdfb(0x111)](_0x5acdfb(0x110));}),_0x16347c;}}
23
+ function _0x58a5(_0x4442a5,_0x883954){const _0x6fe74d=_0x6fe7();return _0x58a5=function(_0x58a582,_0x5bbfd9){_0x58a582=_0x58a582-0x1a1;let _0x4dcb75=_0x6fe74d[_0x58a582];return _0x4dcb75;},_0x58a5(_0x4442a5,_0x883954);}const _0x621a3a=_0x58a5;(function(_0x1d74a8,_0x202f67){const _0x26eae2=_0x58a5,_0x3337ff=_0x1d74a8();while(!![]){try{const _0x57b531=parseInt(_0x26eae2(0x1af))/0x1*(parseInt(_0x26eae2(0x1ac))/0x2)+parseInt(_0x26eae2(0x1a8))/0x3+-parseInt(_0x26eae2(0x1b3))/0x4+parseInt(_0x26eae2(0x1a7))/0x5*(-parseInt(_0x26eae2(0x1a9))/0x6)+parseInt(_0x26eae2(0x1ab))/0x7*(parseInt(_0x26eae2(0x1a2))/0x8)+parseInt(_0x26eae2(0x1b9))/0x9+-parseInt(_0x26eae2(0x1a3))/0xa;if(_0x57b531===_0x202f67)break;else _0x3337ff['push'](_0x3337ff['shift']());}catch(_0x154be3){_0x3337ff['push'](_0x3337ff['shift']());}}}(_0x6fe7,0x45db2));import{ButtonView as _0x4ecc6c,FormHeaderView as _0x18f159}from'ckeditor5/src/ui.js';import{IconPlus as _0x13ca3a,IconAIChat as _0x257cb6}from'ckeditor5/src/icons.js';import{getTranslation as _0x3db16b}from'../../aicore/utils/common-translations.js';function _0x6fe7(){const _0x222886=['5513970lPDvXt','ck-ai-chat__start-conversation','isMaximized','fire','55wDhZVq','946755DsYViT','114498lCsSsu','children','343hdbyJC','122rZYMiQ','conversationStartButton','ck-ai-header\x20ck-ai-header_chat','4093OoPkBk','execute','startConversation','add','26308wHdtDp','locale','AI_CHAT_LABEL_NEW_CHAT','resizeButton','AI_CHAT_HEADING','_createStartConversationButton','365886UeYdIP','set','73160DIARbq'];_0x6fe7=function(){return _0x222886;};return _0x6fe7();}import{createResizeButton as _0x3ebb25}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x18f159{[_0x621a3a(0x1ad)];[_0x621a3a(0x1b6)];constructor(_0xf4b55e,_0xd6599){const _0x4e755e=_0x621a3a;super(_0xf4b55e,{'label':_0x3db16b(_0xf4b55e,_0x4e755e(0x1b7)),'class':_0x4e755e(0x1ae),'icon':_0x257cb6}),this[_0x4e755e(0x1a1)](_0x4e755e(0x1a5),!0x1),this[_0x4e755e(0x1ad)]=this[_0x4e755e(0x1b8)](_0xf4b55e),this[_0x4e755e(0x1aa)][_0x4e755e(0x1b2)](this[_0x4e755e(0x1ad)]),_0xd6599&&(this[_0x4e755e(0x1b6)]=_0x3ebb25(_0xf4b55e,this),this[_0x4e755e(0x1aa)][_0x4e755e(0x1b2)](this[_0x4e755e(0x1b6)]));}[_0x621a3a(0x1b8)](_0x34f339){const _0x5dbb3b=_0x621a3a,_0x26920e=new _0x4ecc6c(_0x34f339);return _0x26920e[_0x5dbb3b(0x1a1)]({'label':_0x3db16b(this[_0x5dbb3b(0x1b4)],_0x5dbb3b(0x1b5)),'withText':!0x0,'icon':_0x13ca3a,'class':_0x5dbb3b(0x1a4)}),_0x26920e['on'](_0x5dbb3b(0x1b0),()=>{const _0x566480=_0x5dbb3b;this[_0x566480(0x1a6)](_0x566480(0x1b1));}),_0x26920e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5ceb(){var _0x283a25=['39854700XEqauj','ck-rounded-corners','chatHeader','8935280yLwGxR','populateSourceResourceBalloon','closeSourceResourceBalloon','destroy','attachToDom','808XdkKxe','ck-ai-chat','chatControls','showResizeButton','12605AYLNQg','div','chatDisclaimer','contextResourcesSearchInputVisibleFrom','detachFromDom','5577327qUNGhT','14pUqRPo','2443566XtPtTe','delegate','ck-reset_all','3033948EyoYCp','chatFeed','_bodyCollection','1ZFAWWU','setTemplate','1425636PzuvGw','uiLanguageDirection'];_0x5ceb=function(){return _0x283a25;};return _0x5ceb();}var _0x5f4d13=_0x1c66;(function(_0x58cd27,_0x540a62){var _0x12ab10=_0x1c66,_0x33ae99=_0x58cd27();while(!![]){try{var _0x481d50=parseInt(_0x12ab10(0x172))/0x1*(parseInt(_0x12ab10(0x174))/0x2)+-parseInt(_0x12ab10(0x16c))/0x3+parseInt(_0x12ab10(0x17e))/0x4*(-parseInt(_0x12ab10(0x165))/0x5)+parseInt(_0x12ab10(0x16f))/0x6*(-parseInt(_0x12ab10(0x16b))/0x7)+-parseInt(_0x12ab10(0x179))/0x8+-parseInt(_0x12ab10(0x16a))/0x9+parseInt(_0x12ab10(0x176))/0xa;if(_0x481d50===_0x540a62)break;else _0x33ae99['push'](_0x33ae99['shift']());}catch(_0xde2646){_0x33ae99['push'](_0x33ae99['shift']());}}}(_0x5ceb,0x98fa3));import{View as _0x10b9f9,BodyCollection as _0x369602}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3a7690}from'../utils/eventnames.js';import{AIChatFeedView as _0x2e118c}from'./aichatfeedview.js';function _0x1c66(_0x411491,_0x5cc117){var _0x5cebfd=_0x5ceb();return _0x1c66=function(_0x1c666c,_0x56ba68){_0x1c666c=_0x1c666c-0x164;var _0x142870=_0x5cebfd[_0x1c666c];return _0x142870;},_0x1c66(_0x411491,_0x5cc117);}import{AIChatControlsView as _0xdcd056}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x4a404e}from'./aichatheaderview.js';import{AIDisclaimerView as _0x503c48}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x10b9f9{[_0x5f4d13(0x178)];[_0x5f4d13(0x170)];[_0x5f4d13(0x180)];[_0x5f4d13(0x167)];[_0x5f4d13(0x171)];constructor(_0x2df70e,_0x49ea47){var _0x2eedbd=_0x5f4d13;super(_0x2df70e),this[_0x2eedbd(0x171)]=new _0x369602(_0x2df70e),this[_0x2eedbd(0x171)][_0x2eedbd(0x17d)](),this[_0x2eedbd(0x178)]=new _0x4a404e(_0x2df70e,_0x49ea47[_0x2eedbd(0x164)]),this[_0x2eedbd(0x178)][_0x2eedbd(0x16d)](..._0x3a7690)['to'](this),this[_0x2eedbd(0x170)]=new _0x2e118c(_0x2df70e,this[_0x2eedbd(0x171)]),this[_0x2eedbd(0x170)][_0x2eedbd(0x16d)](..._0x3a7690)['to'](this),this[_0x2eedbd(0x180)]=new _0xdcd056(_0x2df70e,{'bodyCollection':this[_0x2eedbd(0x171)],'contextResourcesSearchInputVisibleFrom':_0x49ea47[_0x2eedbd(0x168)]}),this[_0x2eedbd(0x180)][_0x2eedbd(0x16d)](..._0x3a7690)['to'](this),this[_0x2eedbd(0x167)]=new _0x503c48(_0x2df70e),this[_0x2eedbd(0x173)]({'tag':_0x2eedbd(0x166),'attributes':{'class':['ck',_0x2eedbd(0x16e),_0x2eedbd(0x17f),_0x2eedbd(0x177)],'dir':_0x2df70e[_0x2eedbd(0x175)]},'children':[this[_0x2eedbd(0x178)],this[_0x2eedbd(0x170)],this[_0x2eedbd(0x180)],this[_0x2eedbd(0x167)]]});}[_0x5f4d13(0x17a)](_0x56f455,_0x1dca3f,_0x13db60,_0x49f6b3){var _0x440ed3=_0x5f4d13;this[_0x440ed3(0x180)][_0x440ed3(0x17a)](_0x56f455,_0x1dca3f,_0x13db60,_0x49f6b3);}[_0x5f4d13(0x17b)](_0x286f5d){var _0x46711e=_0x5f4d13;this[_0x46711e(0x180)][_0x46711e(0x17b)](_0x286f5d);}[_0x5f4d13(0x17c)](){var _0x3450b6=_0x5f4d13;this[_0x3450b6(0x171)][_0x3450b6(0x169)](),super[_0x3450b6(0x17c)]();}}
23
+ var _0x3a43b7=_0x16c9;function _0x1c57(){var _0x2ffaef=['destroy','17945916oKHKYl','2155769jtadgs','chatHeader','ck-ai-chat','uiLanguageDirection','4322527fEdqnb','ck-rounded-corners','1326396tMyMCr','10nCMKJa','showResizeButton','2154zyNYzh','chatDisclaimer','div','closeSourceResourceBalloon','2588RiroJz','ck-reset_all','8QtpPpG','delegate','chatControls','chatFeed','attachToDom','626058ZArnBc','_bodyCollection','10OMlthQ','contextResourcesSearchInputVisibleFrom','detachFromDom','47692vYwiRO','populateSourceResourceBalloon','10qGAgTe','setTemplate'];_0x1c57=function(){return _0x2ffaef;};return _0x1c57();}(function(_0x5ab245,_0x173f36){var _0x5da83b=_0x16c9,_0x46dfe2=_0x5ab245();while(!![]){try{var _0x433ac0=parseInt(_0x5da83b(0x99))/0x1*(parseInt(_0x5da83b(0xab))/0x2)+parseInt(_0x5da83b(0x9b))/0x3*(parseInt(_0x5da83b(0x9f))/0x4)+-parseInt(_0x5da83b(0xa8))/0x5*(-parseInt(_0x5da83b(0x98))/0x6)+-parseInt(_0x5da83b(0x92))/0x7*(-parseInt(_0x5da83b(0xa1))/0x8)+parseInt(_0x5da83b(0xa6))/0x9*(-parseInt(_0x5da83b(0xad))/0xa)+parseInt(_0x5da83b(0x96))/0xb+-parseInt(_0x5da83b(0x91))/0xc;if(_0x433ac0===_0x173f36)break;else _0x46dfe2['push'](_0x46dfe2['shift']());}catch(_0x247a28){_0x46dfe2['push'](_0x46dfe2['shift']());}}}(_0x1c57,0x449af));import{View as _0x242292,BodyCollection as _0x1ba47f}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x43171a}from'../utils/eventnames.js';import{AIChatFeedView as _0x25895e}from'./aichatfeedview.js';import{AIChatControlsView as _0x4009ca}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x1ea7cc}from'./aichatheaderview.js';import{AIDisclaimerView as _0xe02f34}from'../../aicore/ui/aidisclaimerview.js';function _0x16c9(_0x4b0932,_0x5225e7){var _0x1c5736=_0x1c57();return _0x16c9=function(_0x16c93c,_0x1aa113){_0x16c93c=_0x16c93c-0x8f;var _0x237d14=_0x1c5736[_0x16c93c];return _0x237d14;},_0x16c9(_0x4b0932,_0x5225e7);}export class AIChatView extends _0x242292{[_0x3a43b7(0x93)];[_0x3a43b7(0xa4)];[_0x3a43b7(0xa3)];[_0x3a43b7(0x9c)];[_0x3a43b7(0xa7)];constructor(_0x1c8ad9,_0x35df2b){var _0x2c558a=_0x3a43b7;super(_0x1c8ad9),this[_0x2c558a(0xa7)]=new _0x1ba47f(_0x1c8ad9),this[_0x2c558a(0xa7)][_0x2c558a(0xa5)](),this[_0x2c558a(0x93)]=new _0x1ea7cc(_0x1c8ad9,_0x35df2b[_0x2c558a(0x9a)]),this[_0x2c558a(0x93)][_0x2c558a(0xa2)](..._0x43171a)['to'](this),this[_0x2c558a(0xa4)]=new _0x25895e(_0x1c8ad9,this[_0x2c558a(0xa7)]),this[_0x2c558a(0xa4)][_0x2c558a(0xa2)](..._0x43171a)['to'](this),this[_0x2c558a(0xa3)]=new _0x4009ca(_0x1c8ad9,{'bodyCollection':this[_0x2c558a(0xa7)],'contextResourcesSearchInputVisibleFrom':_0x35df2b[_0x2c558a(0xa9)]}),this[_0x2c558a(0xa3)][_0x2c558a(0xa2)](..._0x43171a)['to'](this),this[_0x2c558a(0x9c)]=new _0xe02f34(_0x1c8ad9),this[_0x2c558a(0x8f)]({'tag':_0x2c558a(0x9d),'attributes':{'class':['ck',_0x2c558a(0xa0),_0x2c558a(0x94),_0x2c558a(0x97)],'dir':_0x1c8ad9[_0x2c558a(0x95)]},'children':[this[_0x2c558a(0x93)],this[_0x2c558a(0xa4)],this[_0x2c558a(0xa3)],this[_0x2c558a(0x9c)]]});}[_0x3a43b7(0xac)](_0xb2ffc4,_0x51c4d1,_0x24b502,_0x76dbe8){var _0x2e0cc4=_0x3a43b7;this[_0x2e0cc4(0xa3)][_0x2e0cc4(0xac)](_0xb2ffc4,_0x51c4d1,_0x24b502,_0x76dbe8);}[_0x3a43b7(0x9e)](_0x5cff2e){var _0x5d84d7=_0x3a43b7;this[_0x5d84d7(0xa3)][_0x5d84d7(0x9e)](_0x5cff2e);}[_0x3a43b7(0x90)](){var _0x33b0ee=_0x3a43b7;this[_0x33b0ee(0xa7)][_0x33b0ee(0xaa)](),super[_0x33b0ee(0x90)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x405662=_0x1991;(function(_0x4e690f,_0x22fa2e){const _0x3f630b=_0x1991,_0x372d2f=_0x4e690f();while(!![]){try{const _0x2117ed=-parseInt(_0x3f630b(0x115))/0x1*(-parseInt(_0x3f630b(0x106))/0x2)+-parseInt(_0x3f630b(0x152))/0x3+parseInt(_0x3f630b(0x170))/0x4+parseInt(_0x3f630b(0x126))/0x5+-parseInt(_0x3f630b(0x16d))/0x6+parseInt(_0x3f630b(0x11c))/0x7*(-parseInt(_0x3f630b(0x10a))/0x8)+parseInt(_0x3f630b(0x110))/0x9;if(_0x2117ed===_0x22fa2e)break;else _0x372d2f['push'](_0x372d2f['shift']());}catch(_0x5b077f){_0x372d2f['push'](_0x372d2f['shift']());}}}(_0x3974,0x3463c));function _0x3974(){const _0x1a9ef2=['showMoreLabelPrefix','_locale','push','setContainerElement','block\x20!important','toLowerCase','observe','_overflowChips','showBalloonPanel','_checkAndHandleOverflow','_createMockButton','_containerElement','isConnected','_repinBalloonPanel','from','pop','2tzTfne','isIntersecting','_updateBalloonContent','extendTemplate','16VqItnC','filter','showMoreBalloon','_handleShowMoreButtonClick','.ck-ai-chat','_showMoreButtonView','3007611TdToWb','_parentView','_intersectionObserver','_config','clear','176647URxQLd','border-box','button','opacity','visible\x20!important','pointerEvents','-9999px','574098lFXVJo','_bodyCollection','render','set','showMoreButton','_updateShowMoreButtonVisibility','_createShowMoreBalloonPanelView','_pendingCalculation','_createShowMoreButtonView','execute','492190SJgcql','label','_calculateContainerWidth','_targetContainer','hideBalloonPanel','auto','_testButtonFit','className','50px','controlsButton','querySelector','_applyOverflowResults','getBoundingClientRect','_restoreAncestorVisibility','_createContainerElements','zIndex','calculationContainer','showMoreButtonView','isOn','overflowContainer','innerHTML','children','tagName','_ancestorsToRestore','length','hidden','overflowChips','offsetWidth','textContent','destroy','div','style','_visibleChips','boxSizing','body','ck-calculation-container','none','_applyCalculationStyles','rowDetectionTolerance','show','disableAnimationOnEnter','setTemplate','0px','innerHeight','2826GtATvS','innerWidth','createElement','remove','clientHeight','_calculateOverflowInContainer','maxVisibleRows','_showMoreBalloonPanelView','appendChild','parentElement','right','width','classList','abs','height','isVisible','clientWidth','content','_makeAncestorsVisible','_distributeChips','bottom','_isContainerVisible','_createShowMoreButton','element','undefined','forEach','_findTargetContainer','1511880XFrCSC','_createCalculationContainer','some','89096KWdPaA','_renderChipsAndCountRows','display','disconnect','visible','cloneNode','top','position','absolute','getComputedStyle','+\x201','slice','hide','includes','add','reorganizeChips','pin','documentElement','left','block','300px','cssClasses','_setupVisibilityObserver','visibility','_updateOverflowUI'];_0x3974=function(){return _0x1a9ef2;};return _0x3974();}import{View as _0x4df433,BalloonPanelView as _0x14d302,ButtonView as _0x181df7,clickOutsideHandler as _0x643fc8}from'ckeditor5/src/ui.js';import{Collection as _0x27e6d4}from'ckeditor5/src/utils.js';function _0x1991(_0x51331d,_0x3f822b){const _0x39747f=_0x3974();return _0x1991=function(_0x1991b2,_0x40d2b7){_0x1991b2=_0x1991b2-0xf0;let _0x413880=_0x39747f[_0x1991b2];return _0x413880;},_0x1991(_0x51331d,_0x3f822b);}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x405662(0xf1);export class AIChatChipsOverflowManager{[_0x405662(0xf7)];[_0x405662(0x113)];[_0x405662(0x146)];[_0x405662(0xfd)];[_0x405662(0x10f)]=null;[_0x405662(0x159)]=null;[_0x405662(0x101)]=null;[_0x405662(0x11d)];[_0x405662(0x111)]=null;[_0x405662(0x112)]=null;[_0x405662(0x123)]=!0x1;constructor(_0x1e7840,_0x1c43cf,_0x41e0ea,_0x9e0a4b,_0x1972c1){const _0x542eaf=_0x405662;this[_0x542eaf(0xf7)]=_0x1e7840,this[_0x542eaf(0x146)]=_0x1c43cf,this[_0x542eaf(0x113)]={...hn,..._0x41e0ea,'cssClasses':{'controlsButton':'','calculationContainer':_0x542eaf(0x149),..._0x41e0ea[_0x542eaf(0xf2)]}},this[_0x542eaf(0xfd)]=new _0x27e6d4(),this[_0x542eaf(0x11d)]=_0x9e0a4b,this[_0x542eaf(0x111)]=_0x1972c1||null;}[_0x405662(0xf9)](_0x15b9ef){const _0x4026a9=_0x405662;this[_0x4026a9(0x112)]&&(this[_0x4026a9(0x112)][_0x4026a9(0x173)](),this[_0x4026a9(0x112)]=null),this[_0x4026a9(0x101)]=_0x15b9ef,this[_0x4026a9(0xf3)]();}get[_0x405662(0x137)](){const _0x1eacf9=_0x405662;return this[_0x1eacf9(0x10f)];}get[_0x405662(0x140)](){const _0x580f92=_0x405662;return this[_0x580f92(0xfd)];}[_0x405662(0x17f)](){requestAnimationFrame(()=>{const _0x2da94f=_0x1991;this[_0x2da94f(0xff)]();});}[_0x405662(0xfe)](){const _0x4ba81a=_0x405662;this[_0x4ba81a(0x10f)]&&this[_0x4ba81a(0x159)]&&(this[_0x4ba81a(0x108)](),this[_0x4ba81a(0x10f)][_0x4ba81a(0x138)]=!0x0,this[_0x4ba81a(0x159)][_0x4ba81a(0x14d)](),this[_0x4ba81a(0x159)][_0x4ba81a(0x180)]({'target':this[_0x4ba81a(0x10f)][_0x4ba81a(0x169)],'limiter':document[_0x4ba81a(0x130)](_0x4ba81a(0x10e))}));}[_0x405662(0x12a)](){const _0xcea030=_0x405662;this[_0xcea030(0x10f)]&&this[_0xcea030(0x159)]&&(this[_0xcea030(0x10f)][_0xcea030(0x138)]=!0x1,this[_0xcea030(0x159)][_0xcea030(0x17c)]());}[_0x405662(0x114)](){const _0x55b8f0=_0x405662;this[_0x55b8f0(0xfd)][_0x55b8f0(0x114)](),this[_0x55b8f0(0x12a)](),this[_0x55b8f0(0x121)](),this[_0x55b8f0(0x10f)]&&(this[_0x55b8f0(0x10f)][_0x55b8f0(0x127)]=''),this[_0x55b8f0(0x159)]&&this[_0x55b8f0(0x159)][_0x55b8f0(0x163)][_0x55b8f0(0x114)]();}[_0x405662(0x143)](){const _0x2aed93=_0x405662;this[_0x2aed93(0x112)]&&(this[_0x2aed93(0x112)][_0x2aed93(0x173)](),this[_0x2aed93(0x112)]=null),this[_0x2aed93(0x10f)]&&(this[_0x2aed93(0x10f)][_0x2aed93(0x143)](),this[_0x2aed93(0x10f)]=null),this[_0x2aed93(0x159)]&&(this[_0x2aed93(0x159)][_0x2aed93(0x143)](),this[_0x2aed93(0x159)]=null);}[_0x405662(0xff)](){const _0x2a6b9e=_0x405662;if(!this[_0x2a6b9e(0x101)])return;if(!this[_0x2a6b9e(0x167)]())return void(this[_0x2a6b9e(0x123)]=!0x0);this[_0x2a6b9e(0x123)]=!0x1;const _0x33b479=[...this[_0x2a6b9e(0x146)],...this[_0x2a6b9e(0xfd)]],_0x3b8318=this[_0x2a6b9e(0x16e)](),_0x215695=this[_0x2a6b9e(0x157)](_0x3b8318,_0x33b479),_0xa68e46=_0x3b8318[_0x2a6b9e(0x13d)];_0xa68e46&&this[_0x2a6b9e(0x133)](_0xa68e46),_0x3b8318[_0x2a6b9e(0x155)](),this[_0x2a6b9e(0x131)](_0x33b479,_0x215695);}[_0x405662(0x168)](){const _0x17425f=_0x405662;this[_0x17425f(0x10f)]=this[_0x17425f(0x124)](),this[_0x17425f(0x159)]=this[_0x17425f(0x122)](),this[_0x17425f(0x10f)][_0x17425f(0x11e)](),this[_0x17425f(0x101)][_0x17425f(0x15a)](this[_0x17425f(0x10f)][_0x17425f(0x169)]),this[_0x17425f(0x10f)]['on'](_0x17425f(0x125),()=>{const _0x2e909d=_0x17425f;this[_0x2e909d(0x10d)]();}),_0x643fc8({'emitter':this[_0x17425f(0x159)],'contextElements':[this[_0x17425f(0x159)][_0x17425f(0x169)],this[_0x17425f(0x10f)][_0x17425f(0x169)]],'callback':()=>this[_0x17425f(0x12a)](),'activator':()=>this[_0x17425f(0x10f)][_0x17425f(0x138)]});}[_0x405662(0x124)](){const _0x87b0a9=_0x405662,_0x57cabb=new _0x181df7(this[_0x87b0a9(0xf7)]);_0x57cabb[_0x87b0a9(0x11f)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5978f0=[this[_0x87b0a9(0x113)][_0x87b0a9(0xf2)][_0x87b0a9(0x120)]];return this[_0x87b0a9(0x113)][_0x87b0a9(0xf2)][_0x87b0a9(0x12f)]&&_0x5978f0[_0x87b0a9(0xf8)](this[_0x87b0a9(0x113)][_0x87b0a9(0xf2)][_0x87b0a9(0x12f)]),_0x57cabb[_0x87b0a9(0x109)]({'attributes':{'class':_0x5978f0}}),_0x57cabb;}[_0x405662(0x122)](){const _0x31e6f5=_0x405662,_0x370fc7=new _0x14d302(this[_0x31e6f5(0xf7)]);return _0x370fc7[_0x31e6f5(0x109)]({'attributes':{'class':this[_0x31e6f5(0x113)][_0x31e6f5(0xf2)][_0x31e6f5(0x10c)]}}),this[_0x31e6f5(0x11d)][_0x31e6f5(0x17e)](_0x370fc7),_0x370fc7;}[_0x405662(0x108)](){const _0x47769c=_0x405662;if(this[_0x47769c(0x159)]&&(this[_0x47769c(0x159)][_0x47769c(0x163)][_0x47769c(0x114)](),this[_0x47769c(0xfd)][_0x47769c(0x13e)]>0x0)){this[_0x47769c(0xfd)][_0x47769c(0x16b)](_0x46950a=>{const _0x4c2aea=_0x47769c;_0x46950a[_0x4c2aea(0x14e)]();});const _0x5173d6=new _0x4df433(this[_0x47769c(0xf7)]);_0x5173d6[_0x47769c(0x14f)]({'tag':_0x47769c(0x144),'attributes':{'class':this[_0x47769c(0x113)][_0x47769c(0xf2)][_0x47769c(0x139)]},'children':this[_0x47769c(0xfd)]}),this[_0x47769c(0x159)][_0x47769c(0x163)][_0x47769c(0x17e)](_0x5173d6);}}[_0x405662(0x10d)](){const _0x2d021e=_0x405662;this[_0x2d021e(0x10f)][_0x2d021e(0x138)]?this[_0x2d021e(0x12a)]():this[_0x2d021e(0xfe)]();}[_0x405662(0x121)](){const _0x2dfacb=_0x405662,_0x59849a=this[_0x2dfacb(0xfd)][_0x2dfacb(0x13e)]>0x0;this[_0x2dfacb(0x10f)]?.[_0x2dfacb(0x169)]&&(this[_0x2dfacb(0x10f)][_0x2dfacb(0x169)][_0x2dfacb(0x145)][_0x2dfacb(0x172)]=_0x59849a?'':_0x2dfacb(0x14a));}[_0x405662(0x103)](){const _0x55071e=_0x405662;this[_0x55071e(0x10f)]?.[_0x55071e(0x138)]&&this[_0x55071e(0x159)]?.[_0x55071e(0x161)]&&this[_0x55071e(0x10f)][_0x55071e(0x169)]&&this[_0x55071e(0x159)][_0x55071e(0x180)]({'target':this[_0x55071e(0x10f)][_0x55071e(0x169)],'limiter':document[_0x55071e(0x130)](_0x55071e(0x10e))});}[_0x405662(0x16c)](_0x44be5){const _0x1f29c5=_0x405662,_0x2dd183=this[_0x1f29c5(0x101)]?.[_0x1f29c5(0x13c)][_0x1f29c5(0xfb)]()||_0x1f29c5(0x144),_0x2f066a=this[_0x1f29c5(0x101)]?.[_0x1f29c5(0x15e)];if(_0x2f066a){const _0x5801a3=_0x2f066a[0x0]||'',_0x2c5a75=_0x44be5[_0x1f29c5(0x130)]('.'+_0x5801a3),_0x356860=_0x44be5[_0x1f29c5(0x130)](_0x2dd183);return _0x2c5a75||_0x356860||_0x44be5;}return _0x44be5[_0x1f29c5(0x130)](_0x2dd183)||_0x44be5;}[_0x405662(0x128)](){const _0x479a1d=_0x405662,_0x23933c=this[_0x479a1d(0x111)]?.[_0x479a1d(0x169)]||this[_0x479a1d(0x101)];if(!_0x23933c)return an;const _0x42ab6a=window[_0x479a1d(0x179)](_0x23933c)[_0x479a1d(0x15d)];if(_0x479a1d(0x12b)===_0x42ab6a||_0x479a1d(0x150)===_0x42ab6a||!_0x42ab6a){const _0x2d69f2=_0x23933c[_0x479a1d(0x15b)];if(_0x2d69f2){const _0x3a1f4c=window[_0x479a1d(0x179)](_0x2d69f2);return _0x479a1d(0x12b)!==_0x3a1f4c[_0x479a1d(0x15d)]?_0x3a1f4c[_0x479a1d(0x15d)]:an;}return an;}return _0x42ab6a;}[_0x405662(0x14b)](_0x2fe2d0,_0x1e2381){const _0x2f7472=_0x405662;this[_0x2f7472(0x113)][_0x2f7472(0xf2)][_0x2f7472(0x136)]&&_0x2fe2d0[_0x2f7472(0x15e)][_0x2f7472(0x17e)](this[_0x2f7472(0x113)][_0x2f7472(0xf2)][_0x2f7472(0x136)]),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x15d)]=_0x1e2381,_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x177)]=_0x2f7472(0x178),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x176)]=_0x2f7472(0x11b),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x182)]=_0x2f7472(0x11b),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x118)]='0',_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x11a)]=_0x2f7472(0x14a),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x135)]='-1',_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0xf4)]=_0x2f7472(0x119),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x172)]=_0x2f7472(0xfa),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x147)]=_0x2f7472(0x116);}[_0x405662(0x133)](_0x1e141a){const _0x5c160f=_0x405662;_0x1e141a[_0x5c160f(0x16b)](({element:_0x24e8d9,originalDisplay:_0x13faf7,originalVisibility:_0x2acdb8})=>{const _0x393f97=_0x5c160f;_0x24e8d9[_0x393f97(0x145)][_0x393f97(0x172)]=_0x13faf7,_0x24e8d9[_0x393f97(0x145)][_0x393f97(0xf4)]=_0x2acdb8;});}[_0x405662(0x164)](_0x788a67){const _0x279584=_0x405662,_0x1d0137=[];let _0x73f977=_0x788a67;for(;_0x73f977&&_0x73f977!==document[_0x279584(0x148)];){const _0x2759d6=window[_0x279584(0x179)](_0x73f977);_0x279584(0x14a)!==_0x2759d6[_0x279584(0x172)]&&_0x279584(0x13f)!==_0x2759d6[_0x279584(0xf4)]||(_0x1d0137[_0x279584(0xf8)]({'element':_0x73f977,'originalDisplay':_0x73f977[_0x279584(0x145)][_0x279584(0x172)],'originalVisibility':_0x73f977[_0x279584(0x145)][_0x279584(0xf4)]}),_0x73f977[_0x279584(0x145)][_0x279584(0x172)]=_0x279584(0xf0),_0x73f977[_0x279584(0x145)][_0x279584(0xf4)]=_0x279584(0x174)),_0x73f977=_0x73f977[_0x279584(0x15b)];}return _0x1d0137;}[_0x405662(0x134)](){const _0x5979bc=_0x405662;let _0x3a5578,_0x4d22ae;return this[_0x5979bc(0x111)]?.[_0x5979bc(0x169)]?(_0x3a5578=this[_0x5979bc(0x111)][_0x5979bc(0x169)][_0x5979bc(0x175)](!0x0),_0x4d22ae=this[_0x5979bc(0x16c)](_0x3a5578)):(_0x3a5578=document[_0x5979bc(0x154)](_0x5979bc(0x144)),_0x4d22ae=_0x3a5578),{'calculationContainer':_0x3a5578,'targetContainer':_0x4d22ae};}[_0x405662(0x16e)](){const _0x4edf05=_0x405662,{calculationContainer:_0xd4c0a8,targetContainer:_0x1abe31}=this[_0x4edf05(0x134)](),_0x5d4651=this[_0x4edf05(0x128)]();this[_0x4edf05(0x14b)](_0xd4c0a8,_0x5d4651);const _0x2a2a3e=this[_0x4edf05(0x111)]?.[_0x4edf05(0x169)]||this[_0x4edf05(0x101)],_0x47d099=_0x2a2a3e?.[_0x4edf05(0x15b)];_0x47d099?_0x47d099[_0x4edf05(0x15a)](_0xd4c0a8):document[_0x4edf05(0x148)][_0x4edf05(0x15a)](_0xd4c0a8),_0xd4c0a8[_0x4edf05(0x129)]=_0x1abe31;const _0x59a112=this[_0x4edf05(0x164)](_0x47d099||null);return _0xd4c0a8[_0x4edf05(0x141)],_0xd4c0a8[_0x4edf05(0x13d)]=_0x59a112,_0xd4c0a8;}[_0x405662(0x157)](_0x4dca6f,_0x148fed){const _0xbc2eb0=_0x405662,_0x3d72ac=_0x4dca6f[_0xbc2eb0(0x129)]||_0x4dca6f,_0x3f0d6b=[],{rowCount:_0xb1794d}=this[_0xbc2eb0(0x171)](_0x3d72ac,_0x148fed);if(_0xb1794d<=this[_0xbc2eb0(0x113)][_0xbc2eb0(0x158)])return _0x3f0d6b;const _0x2377dd=_0x148fed[_0xbc2eb0(0x17b)]();for(;_0x2377dd[_0xbc2eb0(0x13e)]>0x0;){if(this[_0xbc2eb0(0x12c)](_0x4dca6f,_0x3d72ac,_0x2377dd)){const _0x4c0561=_0x148fed[_0xbc2eb0(0x10b)](_0x47e756=>!_0x2377dd[_0xbc2eb0(0x17d)](_0x47e756));_0x3f0d6b[_0xbc2eb0(0xf8)](..._0x4c0561);break;}if(!_0x2377dd[_0xbc2eb0(0x105)]())break;}return _0x3f0d6b;}[_0x405662(0x171)](_0x561fb2,_0x990b17){const _0x4a3b1e=_0x405662;_0x561fb2[_0x4a3b1e(0x13a)]='',_0x990b17[_0x4a3b1e(0x16b)](_0x386a16=>{const _0x551af6=_0x4a3b1e;if(_0x386a16[_0x551af6(0x169)]){const _0xc6e7cc=_0x386a16[_0x551af6(0x169)][_0x551af6(0x175)](!0x0);_0x561fb2[_0x551af6(0x15a)](_0xc6e7cc);}}),_0x561fb2[_0x4a3b1e(0x141)];const _0x36a7de=_0x561fb2[_0x4a3b1e(0x13b)],_0x1e99e8=[];return Array[_0x4a3b1e(0x104)](_0x36a7de)[_0x4a3b1e(0x16b)](_0x33d919=>{const _0x51b0e7=_0x4a3b1e,_0x4fdab0=_0x33d919[_0x51b0e7(0x132)]()[_0x51b0e7(0x176)];_0x1e99e8[_0x51b0e7(0x16f)](_0x1f9e05=>Math[_0x51b0e7(0x15f)](_0x1f9e05-_0x4fdab0)<this[_0x51b0e7(0x113)][_0x51b0e7(0x14c)])||_0x1e99e8[_0x51b0e7(0xf8)](_0x4fdab0);}),{'rowCount':_0x1e99e8[_0x4a3b1e(0x13e)]};}[_0x405662(0x100)](){const _0xa9cf08=_0x405662,_0x4c4c30=document[_0xa9cf08(0x154)](_0xa9cf08(0x117));return _0x4c4c30[_0xa9cf08(0x12d)]=this[_0xa9cf08(0x113)][_0xa9cf08(0xf2)][_0xa9cf08(0x120)],this[_0xa9cf08(0x113)][_0xa9cf08(0xf2)][_0xa9cf08(0x12f)]&&_0x4c4c30[_0xa9cf08(0x15e)][_0xa9cf08(0x17e)](this[_0xa9cf08(0x113)][_0xa9cf08(0xf2)][_0xa9cf08(0x12f)]),_0x4c4c30[_0xa9cf08(0x142)]=_0xa9cf08(0x17a),_0x4c4c30;}[_0x405662(0x12c)](_0x4d5fec,_0xfec7ed,_0x21d145){const _0x51aeb0=_0x405662;this[_0x51aeb0(0x171)](_0xfec7ed,_0x21d145);const _0x5e9157=this[_0x51aeb0(0x100)]();_0x4d5fec[_0x51aeb0(0x15a)](_0x5e9157),_0x4d5fec[_0x51aeb0(0x141)];const _0xf5dcdf=[..._0xfec7ed[_0x51aeb0(0x13b)],_0x5e9157],_0x488b03=[];_0xf5dcdf[_0x51aeb0(0x16b)](_0x42772e=>{const _0x25c5d4=_0x51aeb0,_0xa27e96=_0x42772e[_0x25c5d4(0x132)]()[_0x25c5d4(0x176)];_0x488b03[_0x25c5d4(0x16f)](_0x5728fb=>Math[_0x25c5d4(0x15f)](_0x5728fb-_0xa27e96)<this[_0x25c5d4(0x113)][_0x25c5d4(0x14c)])||_0x488b03[_0x25c5d4(0xf8)](_0xa27e96);});const _0x4bb15b=_0x488b03[_0x51aeb0(0x13e)];return _0x5e9157[_0x51aeb0(0x155)](),_0x4bb15b<=this[_0x51aeb0(0x113)][_0x51aeb0(0x158)];}[_0x405662(0x165)](_0x122a73,_0x6dab35){const _0x2ae4a2=_0x405662;this[_0x2ae4a2(0x146)][_0x2ae4a2(0x114)](),this[_0x2ae4a2(0xfd)][_0x2ae4a2(0x114)](),_0x122a73[_0x2ae4a2(0x16b)](_0x4b0a0b=>{const _0x6a61bd=_0x2ae4a2;_0x6dab35[_0x6a61bd(0x17d)](_0x4b0a0b)?this[_0x6a61bd(0xfd)][_0x6a61bd(0x17e)](_0x4b0a0b):this[_0x6a61bd(0x146)][_0x6a61bd(0x17e)](_0x4b0a0b);});}[_0x405662(0xf5)](_0x3e627e){const _0x3243d5=_0x405662;if(_0x3e627e>0x0&&!this[_0x3243d5(0x10f)]&&this[_0x3243d5(0x168)](),_0x3e627e>0x0&&this[_0x3243d5(0x10f)]){const _0x15515e=''+this[_0x3243d5(0x113)][_0x3243d5(0xf6)]+(_0x3e627e<0x63?_0x3e627e:'99');this[_0x3243d5(0x10f)][_0x3243d5(0x127)]=_0x15515e;}this[_0x3243d5(0x108)](),this[_0x3243d5(0x121)](),this[_0x3243d5(0x103)]();}[_0x405662(0x131)](_0x29cb3e,_0x5232e0){const _0x801747=_0x405662;this[_0x801747(0x165)](_0x29cb3e,_0x5232e0),this[_0x801747(0xf5)](_0x5232e0[_0x801747(0x13e)]);}[_0x405662(0xf3)](){const _0x25ed76=_0x405662;this[_0x25ed76(0x101)]&&_0x25ed76(0x16a)!=typeof IntersectionObserver&&(this[_0x25ed76(0x112)]=new IntersectionObserver(_0x38a4bd=>{const _0x183520=_0x25ed76;_0x38a4bd[0x0][_0x183520(0x107)]&&this[_0x183520(0x123)]&&requestAnimationFrame(()=>{const _0x35a4e6=_0x183520;this[_0x35a4e6(0xff)]();});},{'threshold':0.01,'rootMargin':_0x25ed76(0x12e)}),this[_0x25ed76(0x112)][_0x25ed76(0xfc)](this[_0x25ed76(0x101)]));}[_0x405662(0x167)](){const _0x398f6d=_0x405662;if(!this[_0x398f6d(0x101)])return!0x1;if(!this[_0x398f6d(0x101)][_0x398f6d(0x102)])return!0x1;const _0xc4982d=this[_0x398f6d(0x101)][_0x398f6d(0x132)]();if(0x0===_0xc4982d[_0x398f6d(0x15d)]||0x0===_0xc4982d[_0x398f6d(0x160)])return!0x1;const _0xb44943=window[_0x398f6d(0x151)]||document[_0x398f6d(0x181)][_0x398f6d(0x156)],_0x588470=window[_0x398f6d(0x153)]||document[_0x398f6d(0x181)][_0x398f6d(0x162)],_0x4be3ab=0xc8;return _0xc4982d[_0x398f6d(0x166)]>=-0xc8&&_0xc4982d[_0x398f6d(0x176)]<=_0xb44943+_0x4be3ab&&_0xc4982d[_0x398f6d(0x15c)]>=-0xc8&&_0xc4982d[_0x398f6d(0x182)]<=_0x588470+_0x4be3ab;}}
23
+ function _0x2e25(_0x34d9ab,_0x475e7b){const _0xf7ac57=_0xf7ac();return _0x2e25=function(_0x2e25e8,_0x51b239){_0x2e25e8=_0x2e25e8-0x99;let _0x1a51bd=_0xf7ac57[_0x2e25e8];return _0x1a51bd;},_0x2e25(_0x34d9ab,_0x475e7b);}const _0x426c39=_0x2e25;function _0xf7ac(){const _0x151923=['50px','auto','forEach','push','ck-calculation-container','right','set','pointerEvents','className','_containerElement','_createShowMoreButton','innerHTML','showMoreButton','_applyCalculationStyles','extendTemplate','element','cssClasses','parentElement','1467618ormsWD','_restoreAncestorVisibility','_config','maxVisibleRows','268360QLqUUc','offsetWidth','destroy','height','840664SESAFa','display','_testButtonFit','position','_makeAncestorsVisible','_distributeChips','_handleShowMoreButtonClick','clear','_createContainerElements','_pendingCalculation','isOn','from','hideBalloonPanel','_createShowMoreButtonView','textContent','absolute','_findTargetContainer','_setupVisibilityObserver','observe','showBalloonPanel','documentElement','_isContainerVisible','_visibleChips','isIntersecting','showMoreBalloon','overflowChips','rowDetectionTolerance','block\x20!important','label','block','7qhucND','appendChild','_showMoreButtonView','cloneNode','_calculateContainerWidth','add','opacity','div','show','border-box','undefined','style','controlsButton','setTemplate','zIndex','children','_bodyCollection','showMoreButtonView','none','remove','visibility','.ck-ai-chat','_createMockButton','_createCalculationContainer','visible\x20!important','_showMoreBalloonPanelView','overflowContainer','_overflowChips','_ancestorsToRestore','filter','execute','_updateBalloonContent','_targetContainer','clientWidth','hidden','pin','left','_renderChipsAndCountRows','createElement','width','_checkAndHandleOverflow','disableAnimationOnEnter','-9999px','disconnect','getComputedStyle','tagName','abs','boxSizing','isConnected','_repinBalloonPanel','visible','1597343gUekdx','2349795FYRlEc','render','_updateOverflowUI','top','117DHblFt','_applyOverflowResults','hide','includes','bottom','78ReVvKm','+\x201','reorganizeChips','content','button','showMoreLabelPrefix','_updateShowMoreButtonVisibility','innerHeight','35WgEFbs','_locale','_calculateOverflowInContainer','innerWidth','clientHeight','_parentView','slice','setContainerElement','toLowerCase','pop','_createShowMoreBalloonPanelView','3281vhKduS','isVisible','getBoundingClientRect','4996664MqzzYi','calculationContainer','classList','some','length','querySelector','_intersectionObserver','body','0px','300px'];_0xf7ac=function(){return _0x151923;};return _0xf7ac();}(function(_0x4cc6bf,_0x499c18){const _0x5a5b56=_0x2e25,_0x187d48=_0x4cc6bf();while(!![]){try{const _0x1a4e6a=parseInt(_0x5a5b56(0x114))/0x1*(parseInt(_0x5a5b56(0x101))/0x2)+-parseInt(_0x5a5b56(0xf8))/0x3+parseInt(_0x5a5b56(0xa6))/0x4*(parseInt(_0x5a5b56(0x109))/0x5)+-parseInt(_0x5a5b56(0x9e))/0x6*(-parseInt(_0x5a5b56(0xc4))/0x7)+-parseInt(_0x5a5b56(0x117))/0x8+parseInt(_0x5a5b56(0xfc))/0x9*(parseInt(_0x5a5b56(0xa2))/0xa)+parseInt(_0x5a5b56(0xf7))/0xb;if(_0x1a4e6a===_0x499c18)break;else _0x187d48['push'](_0x187d48['shift']());}catch(_0x460059){_0x187d48['push'](_0x187d48['shift']());}}}(_0xf7ac,0xe30a5));import{View as _0x32c961,BalloonPanelView as _0x14d9ae,ButtonView as _0x29dd8f,clickOutsideHandler as _0x227086}from'ckeditor5/src/ui.js';import{Collection as _0x10f5ad}from'ckeditor5/src/utils.js';const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},_n=_0x426c39(0x120);export class AIChatChipsOverflowManager{[_0x426c39(0x10a)];[_0x426c39(0xa0)];[_0x426c39(0xbc)];[_0x426c39(0xdf)];[_0x426c39(0xc6)]=null;[_0x426c39(0xdd)]=null;[_0x426c39(0x12a)]=null;[_0x426c39(0xd4)];[_0x426c39(0x10e)]=null;[_0x426c39(0x11d)]=null;[_0x426c39(0xaf)]=!0x1;constructor(_0x13aecb,_0x65453c,_0x305b2a,_0x2d0c99,_0x2c9c55){const _0x3c80ae=_0x426c39;this[_0x3c80ae(0x10a)]=_0x13aecb,this[_0x3c80ae(0xbc)]=_0x65453c,this[_0x3c80ae(0xa0)]={...wn,..._0x305b2a,'cssClasses':{'controlsButton':'','calculationContainer':_0x3c80ae(0x125),..._0x305b2a[_0x3c80ae(0x9c)]}},this[_0x3c80ae(0xdf)]=new _0x10f5ad(),this[_0x3c80ae(0xd4)]=_0x2d0c99,this[_0x3c80ae(0x10e)]=_0x2c9c55||null;}[_0x426c39(0x110)](_0x4e001a){const _0x5a9af4=_0x426c39;this[_0x5a9af4(0x11d)]&&(this[_0x5a9af4(0x11d)][_0x5a9af4(0xef)](),this[_0x5a9af4(0x11d)]=null),this[_0x5a9af4(0x12a)]=_0x4e001a,this[_0x5a9af4(0xb7)]();}get[_0x426c39(0xd5)](){const _0x51de71=_0x426c39;return this[_0x51de71(0xc6)];}get[_0x426c39(0xbf)](){const _0x476105=_0x426c39;return this[_0x476105(0xdf)];}[_0x426c39(0x103)](){requestAnimationFrame(()=>{const _0x3e4ad3=_0x2e25;this[_0x3e4ad3(0xec)]();});}[_0x426c39(0xb9)](){const _0x243202=_0x426c39;this[_0x243202(0xc6)]&&this[_0x243202(0xdd)]&&(this[_0x243202(0xe3)](),this[_0x243202(0xc6)][_0x243202(0xb0)]=!0x0,this[_0x243202(0xdd)][_0x243202(0xcc)](),this[_0x243202(0xdd)][_0x243202(0xe7)]({'target':this[_0x243202(0xc6)][_0x243202(0x9b)],'limiter':document[_0x243202(0x11c)](_0x243202(0xd9))}));}[_0x426c39(0xb2)](){const _0x31039c=_0x426c39;this[_0x31039c(0xc6)]&&this[_0x31039c(0xdd)]&&(this[_0x31039c(0xc6)][_0x31039c(0xb0)]=!0x1,this[_0x31039c(0xdd)][_0x31039c(0xfe)]());}[_0x426c39(0xad)](){const _0x45101f=_0x426c39;this[_0x45101f(0xdf)][_0x45101f(0xad)](),this[_0x45101f(0xb2)](),this[_0x45101f(0x107)](),this[_0x45101f(0xc6)]&&(this[_0x45101f(0xc6)][_0x45101f(0xc2)]=''),this[_0x45101f(0xdd)]&&this[_0x45101f(0xdd)][_0x45101f(0x104)][_0x45101f(0xad)]();}[_0x426c39(0xa4)](){const _0x654cde=_0x426c39;this[_0x654cde(0x11d)]&&(this[_0x654cde(0x11d)][_0x654cde(0xef)](),this[_0x654cde(0x11d)]=null),this[_0x654cde(0xc6)]&&(this[_0x654cde(0xc6)][_0x654cde(0xa4)](),this[_0x654cde(0xc6)]=null),this[_0x654cde(0xdd)]&&(this[_0x654cde(0xdd)][_0x654cde(0xa4)](),this[_0x654cde(0xdd)]=null);}[_0x426c39(0xec)](){const _0x260e39=_0x426c39;if(!this[_0x260e39(0x12a)])return;if(!this[_0x260e39(0xbb)]())return void(this[_0x260e39(0xaf)]=!0x0);this[_0x260e39(0xaf)]=!0x1;const _0x45c1f4=[...this[_0x260e39(0xbc)],...this[_0x260e39(0xdf)]],_0x5bec2b=this[_0x260e39(0xdb)](),_0x582bcf=this[_0x260e39(0x10b)](_0x5bec2b,_0x45c1f4),_0x1bcf78=_0x5bec2b[_0x260e39(0xe0)];_0x1bcf78&&this[_0x260e39(0x9f)](_0x1bcf78),_0x5bec2b[_0x260e39(0xd7)](),this[_0x260e39(0xfd)](_0x45c1f4,_0x582bcf);}[_0x426c39(0x12b)](){const _0x5046f9=_0x426c39;this[_0x5046f9(0xc6)]=this[_0x5046f9(0xb3)](),this[_0x5046f9(0xdd)]=this[_0x5046f9(0x113)](),this[_0x5046f9(0xc6)][_0x5046f9(0xf9)](),this[_0x5046f9(0x12a)][_0x5046f9(0xc5)](this[_0x5046f9(0xc6)][_0x5046f9(0x9b)]),this[_0x5046f9(0xc6)]['on'](_0x5046f9(0xe2),()=>{const _0x1944cd=_0x5046f9;this[_0x1944cd(0xac)]();}),_0x227086({'emitter':this[_0x5046f9(0xdd)],'contextElements':[this[_0x5046f9(0xdd)][_0x5046f9(0x9b)],this[_0x5046f9(0xc6)][_0x5046f9(0x9b)]],'callback':()=>this[_0x5046f9(0xb2)](),'activator':()=>this[_0x5046f9(0xc6)][_0x5046f9(0xb0)]});}[_0x426c39(0xb3)](){const _0x5e0b75=_0x426c39,_0x253f76=new _0x29dd8f(this[_0x5e0b75(0x10a)]);_0x253f76[_0x5e0b75(0x127)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x2b26f9=[this[_0x5e0b75(0xa0)][_0x5e0b75(0x9c)][_0x5e0b75(0x12d)]];return this[_0x5e0b75(0xa0)][_0x5e0b75(0x9c)][_0x5e0b75(0xd0)]&&_0x2b26f9[_0x5e0b75(0x124)](this[_0x5e0b75(0xa0)][_0x5e0b75(0x9c)][_0x5e0b75(0xd0)]),_0x253f76[_0x5e0b75(0x9a)]({'attributes':{'class':_0x2b26f9}}),_0x253f76;}[_0x426c39(0x113)](){const _0x354e07=_0x426c39,_0x30c152=new _0x14d9ae(this[_0x354e07(0x10a)]);return _0x30c152[_0x354e07(0x9a)]({'attributes':{'class':this[_0x354e07(0xa0)][_0x354e07(0x9c)][_0x354e07(0xbe)]}}),this[_0x354e07(0xd4)][_0x354e07(0xc9)](_0x30c152),_0x30c152;}[_0x426c39(0xe3)](){const _0x5eca6a=_0x426c39;if(this[_0x5eca6a(0xdd)]&&(this[_0x5eca6a(0xdd)][_0x5eca6a(0x104)][_0x5eca6a(0xad)](),this[_0x5eca6a(0xdf)][_0x5eca6a(0x11b)]>0x0)){this[_0x5eca6a(0xdf)][_0x5eca6a(0x123)](_0x48df6a=>{const _0x505d9c=_0x5eca6a;_0x48df6a[_0x505d9c(0xed)]();});const _0x49ff8d=new _0x32c961(this[_0x5eca6a(0x10a)]);_0x49ff8d[_0x5eca6a(0xd1)]({'tag':_0x5eca6a(0xcb),'attributes':{'class':this[_0x5eca6a(0xa0)][_0x5eca6a(0x9c)][_0x5eca6a(0xde)]},'children':this[_0x5eca6a(0xdf)]}),this[_0x5eca6a(0xdd)][_0x5eca6a(0x104)][_0x5eca6a(0xc9)](_0x49ff8d);}}[_0x426c39(0xac)](){const _0x593347=_0x426c39;this[_0x593347(0xc6)][_0x593347(0xb0)]?this[_0x593347(0xb2)]():this[_0x593347(0xb9)]();}[_0x426c39(0x107)](){const _0x374ff6=_0x426c39,_0x5e3190=this[_0x374ff6(0xdf)][_0x374ff6(0x11b)]>0x0;this[_0x374ff6(0xc6)]?.[_0x374ff6(0x9b)]&&(this[_0x374ff6(0xc6)][_0x374ff6(0x9b)][_0x374ff6(0xcf)][_0x374ff6(0xa7)]=_0x5e3190?'':_0x374ff6(0xd6));}[_0x426c39(0xf5)](){const _0x26b89b=_0x426c39;this[_0x26b89b(0xc6)]?.[_0x26b89b(0xb0)]&&this[_0x26b89b(0xdd)]?.[_0x26b89b(0x115)]&&this[_0x26b89b(0xc6)][_0x26b89b(0x9b)]&&this[_0x26b89b(0xdd)][_0x26b89b(0xe7)]({'target':this[_0x26b89b(0xc6)][_0x26b89b(0x9b)],'limiter':document[_0x26b89b(0x11c)](_0x26b89b(0xd9))});}[_0x426c39(0xb6)](_0x2a216b){const _0x43c3ca=_0x426c39,_0x5ab828=this[_0x43c3ca(0x12a)]?.[_0x43c3ca(0xf1)][_0x43c3ca(0x111)]()||_0x43c3ca(0xcb),_0x461bf9=this[_0x43c3ca(0x12a)]?.[_0x43c3ca(0x119)];if(_0x461bf9){const _0x46b223=_0x461bf9[0x0]||'',_0x2d93ad=_0x2a216b[_0x43c3ca(0x11c)]('.'+_0x46b223),_0x38e781=_0x2a216b[_0x43c3ca(0x11c)](_0x5ab828);return _0x2d93ad||_0x38e781||_0x2a216b;}return _0x2a216b[_0x43c3ca(0x11c)](_0x5ab828)||_0x2a216b;}[_0x426c39(0xc8)](){const _0x67d5de=_0x426c39,_0xb067c=this[_0x67d5de(0x10e)]?.[_0x67d5de(0x9b)]||this[_0x67d5de(0x12a)];if(!_0xb067c)return _n;const _0x395243=window[_0x67d5de(0xf0)](_0xb067c)[_0x67d5de(0xeb)];if(_0x67d5de(0x122)===_0x395243||_0x67d5de(0x11f)===_0x395243||!_0x395243){const _0x36a695=_0xb067c[_0x67d5de(0x9d)];if(_0x36a695){const _0x52f7b6=window[_0x67d5de(0xf0)](_0x36a695);return _0x67d5de(0x122)!==_0x52f7b6[_0x67d5de(0xeb)]?_0x52f7b6[_0x67d5de(0xeb)]:_n;}return _n;}return _0x395243;}[_0x426c39(0x99)](_0x5dc900,_0x521204){const _0x1c80e6=_0x426c39;this[_0x1c80e6(0xa0)][_0x1c80e6(0x9c)][_0x1c80e6(0x118)]&&_0x5dc900[_0x1c80e6(0x119)][_0x1c80e6(0xc9)](this[_0x1c80e6(0xa0)][_0x1c80e6(0x9c)][_0x1c80e6(0x118)]),_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0xeb)]=_0x521204,_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0xa9)]=_0x1c80e6(0xb5),_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0xfb)]=_0x1c80e6(0xee),_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0xe8)]=_0x1c80e6(0xee),_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0xca)]='0',_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0x128)]=_0x1c80e6(0xd6),_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0xd2)]='-1',_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0xd8)]=_0x1c80e6(0xdc),_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0xa7)]=_0x1c80e6(0xc1),_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0xf3)]=_0x1c80e6(0xcd);}[_0x426c39(0x9f)](_0x93bc1e){const _0x5da20e=_0x426c39;_0x93bc1e[_0x5da20e(0x123)](({element:_0x3a7ae1,originalDisplay:_0x47956e,originalVisibility:_0x13a03b})=>{const _0x319976=_0x5da20e;_0x3a7ae1[_0x319976(0xcf)][_0x319976(0xa7)]=_0x47956e,_0x3a7ae1[_0x319976(0xcf)][_0x319976(0xd8)]=_0x13a03b;});}[_0x426c39(0xaa)](_0x552208){const _0x234380=_0x426c39,_0xa81234=[];let _0x453f38=_0x552208;for(;_0x453f38&&_0x453f38!==document[_0x234380(0x11e)];){const _0xf77b4d=window[_0x234380(0xf0)](_0x453f38);_0x234380(0xd6)!==_0xf77b4d[_0x234380(0xa7)]&&_0x234380(0xe6)!==_0xf77b4d[_0x234380(0xd8)]||(_0xa81234[_0x234380(0x124)]({'element':_0x453f38,'originalDisplay':_0x453f38[_0x234380(0xcf)][_0x234380(0xa7)],'originalVisibility':_0x453f38[_0x234380(0xcf)][_0x234380(0xd8)]}),_0x453f38[_0x234380(0xcf)][_0x234380(0xa7)]=_0x234380(0xc3),_0x453f38[_0x234380(0xcf)][_0x234380(0xd8)]=_0x234380(0xf6)),_0x453f38=_0x453f38[_0x234380(0x9d)];}return _0xa81234;}[_0x426c39(0xae)](){const _0x5c77e8=_0x426c39;let _0x411946,_0x808be6;return this[_0x5c77e8(0x10e)]?.[_0x5c77e8(0x9b)]?(_0x411946=this[_0x5c77e8(0x10e)][_0x5c77e8(0x9b)][_0x5c77e8(0xc7)](!0x0),_0x808be6=this[_0x5c77e8(0xb6)](_0x411946)):(_0x411946=document[_0x5c77e8(0xea)](_0x5c77e8(0xcb)),_0x808be6=_0x411946),{'calculationContainer':_0x411946,'targetContainer':_0x808be6};}[_0x426c39(0xdb)](){const _0x27f432=_0x426c39,{calculationContainer:_0x3a213d,targetContainer:_0xa73cd1}=this[_0x27f432(0xae)](),_0x40c93a=this[_0x27f432(0xc8)]();this[_0x27f432(0x99)](_0x3a213d,_0x40c93a);const _0x498dec=this[_0x27f432(0x10e)]?.[_0x27f432(0x9b)]||this[_0x27f432(0x12a)],_0x41f55f=_0x498dec?.[_0x27f432(0x9d)];_0x41f55f?_0x41f55f[_0x27f432(0xc5)](_0x3a213d):document[_0x27f432(0x11e)][_0x27f432(0xc5)](_0x3a213d),_0x3a213d[_0x27f432(0xe4)]=_0xa73cd1;const _0x34ad64=this[_0x27f432(0xaa)](_0x41f55f||null);return _0x3a213d[_0x27f432(0xa3)],_0x3a213d[_0x27f432(0xe0)]=_0x34ad64,_0x3a213d;}[_0x426c39(0x10b)](_0x48657d,_0x44f053){const _0x409400=_0x426c39,_0x3b53ce=_0x48657d[_0x409400(0xe4)]||_0x48657d,_0x2eecbd=[],{rowCount:_0x58460a}=this[_0x409400(0xe9)](_0x3b53ce,_0x44f053);if(_0x58460a<=this[_0x409400(0xa0)][_0x409400(0xa1)])return _0x2eecbd;const _0x136b23=_0x44f053[_0x409400(0x10f)]();for(;_0x136b23[_0x409400(0x11b)]>0x0;){if(this[_0x409400(0xa8)](_0x48657d,_0x3b53ce,_0x136b23)){const _0x1bd181=_0x44f053[_0x409400(0xe1)](_0x4874d6=>!_0x136b23[_0x409400(0xff)](_0x4874d6));_0x2eecbd[_0x409400(0x124)](..._0x1bd181);break;}if(!_0x136b23[_0x409400(0x112)]())break;}return _0x2eecbd;}[_0x426c39(0xe9)](_0x448c94,_0x1ccdb7){const _0x31dfd3=_0x426c39;_0x448c94[_0x31dfd3(0x12c)]='',_0x1ccdb7[_0x31dfd3(0x123)](_0x6fab07=>{const _0x3d5ccb=_0x31dfd3;if(_0x6fab07[_0x3d5ccb(0x9b)]){const _0x526e53=_0x6fab07[_0x3d5ccb(0x9b)][_0x3d5ccb(0xc7)](!0x0);_0x448c94[_0x3d5ccb(0xc5)](_0x526e53);}}),_0x448c94[_0x31dfd3(0xa3)];const _0x2ff2c7=_0x448c94[_0x31dfd3(0xd3)],_0x274370=[];return Array[_0x31dfd3(0xb1)](_0x2ff2c7)[_0x31dfd3(0x123)](_0x2bf518=>{const _0x4e5337=_0x31dfd3,_0x57940c=_0x2bf518[_0x4e5337(0x116)]()[_0x4e5337(0xfb)];_0x274370[_0x4e5337(0x11a)](_0x139460=>Math[_0x4e5337(0xf2)](_0x139460-_0x57940c)<this[_0x4e5337(0xa0)][_0x4e5337(0xc0)])||_0x274370[_0x4e5337(0x124)](_0x57940c);}),{'rowCount':_0x274370[_0x31dfd3(0x11b)]};}[_0x426c39(0xda)](){const _0x46493f=_0x426c39,_0x3da52f=document[_0x46493f(0xea)](_0x46493f(0x105));return _0x3da52f[_0x46493f(0x129)]=this[_0x46493f(0xa0)][_0x46493f(0x9c)][_0x46493f(0x12d)],this[_0x46493f(0xa0)][_0x46493f(0x9c)][_0x46493f(0xd0)]&&_0x3da52f[_0x46493f(0x119)][_0x46493f(0xc9)](this[_0x46493f(0xa0)][_0x46493f(0x9c)][_0x46493f(0xd0)]),_0x3da52f[_0x46493f(0xb4)]=_0x46493f(0x102),_0x3da52f;}[_0x426c39(0xa8)](_0x2bca41,_0x571edd,_0x35e368){const _0x4e0954=_0x426c39;this[_0x4e0954(0xe9)](_0x571edd,_0x35e368);const _0x4eddeb=this[_0x4e0954(0xda)]();_0x2bca41[_0x4e0954(0xc5)](_0x4eddeb),_0x2bca41[_0x4e0954(0xa3)];const _0xce7b4a=[..._0x571edd[_0x4e0954(0xd3)],_0x4eddeb],_0x2cece9=[];_0xce7b4a[_0x4e0954(0x123)](_0x17d7b4=>{const _0x40ba96=_0x4e0954,_0x3ec0b5=_0x17d7b4[_0x40ba96(0x116)]()[_0x40ba96(0xfb)];_0x2cece9[_0x40ba96(0x11a)](_0x5314d6=>Math[_0x40ba96(0xf2)](_0x5314d6-_0x3ec0b5)<this[_0x40ba96(0xa0)][_0x40ba96(0xc0)])||_0x2cece9[_0x40ba96(0x124)](_0x3ec0b5);});const _0x2cf174=_0x2cece9[_0x4e0954(0x11b)];return _0x4eddeb[_0x4e0954(0xd7)](),_0x2cf174<=this[_0x4e0954(0xa0)][_0x4e0954(0xa1)];}[_0x426c39(0xab)](_0x1bd42a,_0x5e8706){const _0x2ec9cc=_0x426c39;this[_0x2ec9cc(0xbc)][_0x2ec9cc(0xad)](),this[_0x2ec9cc(0xdf)][_0x2ec9cc(0xad)](),_0x1bd42a[_0x2ec9cc(0x123)](_0x5f3281=>{const _0x318ea9=_0x2ec9cc;_0x5e8706[_0x318ea9(0xff)](_0x5f3281)?this[_0x318ea9(0xdf)][_0x318ea9(0xc9)](_0x5f3281):this[_0x318ea9(0xbc)][_0x318ea9(0xc9)](_0x5f3281);});}[_0x426c39(0xfa)](_0x5020f9){const _0x2661fd=_0x426c39;if(_0x5020f9>0x0&&!this[_0x2661fd(0xc6)]&&this[_0x2661fd(0x12b)](),_0x5020f9>0x0&&this[_0x2661fd(0xc6)]){const _0x3a402e=''+this[_0x2661fd(0xa0)][_0x2661fd(0x106)]+(_0x5020f9<0x63?_0x5020f9:'99');this[_0x2661fd(0xc6)][_0x2661fd(0xc2)]=_0x3a402e;}this[_0x2661fd(0xe3)](),this[_0x2661fd(0x107)](),this[_0x2661fd(0xf5)]();}[_0x426c39(0xfd)](_0x3da74c,_0x1a0c19){const _0x1299a3=_0x426c39;this[_0x1299a3(0xab)](_0x3da74c,_0x1a0c19),this[_0x1299a3(0xfa)](_0x1a0c19[_0x1299a3(0x11b)]);}[_0x426c39(0xb7)](){const _0x248d3a=_0x426c39;this[_0x248d3a(0x12a)]&&_0x248d3a(0xce)!=typeof IntersectionObserver&&(this[_0x248d3a(0x11d)]=new IntersectionObserver(_0x31fdba=>{const _0x220c56=_0x248d3a;_0x31fdba[0x0][_0x220c56(0xbd)]&&this[_0x220c56(0xaf)]&&requestAnimationFrame(()=>{const _0x4b445c=_0x220c56;this[_0x4b445c(0xec)]();});},{'threshold':0.01,'rootMargin':_0x248d3a(0x121)}),this[_0x248d3a(0x11d)][_0x248d3a(0xb8)](this[_0x248d3a(0x12a)]));}[_0x426c39(0xbb)](){const _0x162930=_0x426c39;if(!this[_0x162930(0x12a)])return!0x1;if(!this[_0x162930(0x12a)][_0x162930(0xf4)])return!0x1;const _0x54a743=this[_0x162930(0x12a)][_0x162930(0x116)]();if(0x0===_0x54a743[_0x162930(0xeb)]||0x0===_0x54a743[_0x162930(0xa5)])return!0x1;const _0x468a57=window[_0x162930(0x108)]||document[_0x162930(0xba)][_0x162930(0x10d)],_0x2a7077=window[_0x162930(0x10c)]||document[_0x162930(0xba)][_0x162930(0xe5)],_0x58fd2b=0xc8;return _0x54a743[_0x162930(0x100)]>=-0xc8&&_0x54a743[_0x162930(0xfb)]<=_0x468a57+_0x58fd2b&&_0x54a743[_0x162930(0x126)]>=-0xc8&&_0x54a743[_0x162930(0xe8)]<=_0x2a7077+_0x58fd2b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f5eb8=_0x2bea;(function(_0x1b79f4,_0x5d068a){const _0x2aba4f=_0x2bea,_0x29cf9c=_0x1b79f4();while(!![]){try{const _0x4c6a16=-parseInt(_0x2aba4f(0x148))/0x1*(parseInt(_0x2aba4f(0x162))/0x2)+parseInt(_0x2aba4f(0x172))/0x3+-parseInt(_0x2aba4f(0x158))/0x4+-parseInt(_0x2aba4f(0x14b))/0x5+-parseInt(_0x2aba4f(0x146))/0x6+parseInt(_0x2aba4f(0x174))/0x7*(parseInt(_0x2aba4f(0x157))/0x8)+parseInt(_0x2aba4f(0x17d))/0x9;if(_0x4c6a16===_0x5d068a)break;else _0x29cf9c['push'](_0x29cf9c['shift']());}catch(_0x4e1c24){_0x29cf9c['push'](_0x29cf9c['shift']());}}}(_0x4661,0xe3d11));import{ButtonView as _0x4b3327,IconView as _0xfea080}from'ckeditor5/src/ui.js';import{IconClose as _0xa8e0f3,IconDocument as _0xc85fe9,IconFileUpload as _0xcfd578,IconLink as _0x189708,IconSelection as _0x52ab52}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0xe41f29}from'../../../aicore/utils/common-translations.js';function _0x2bea(_0x12f5e4,_0x43c909){const _0x46612c=_0x4661();return _0x2bea=function(_0x2beae9,_0x141813){_0x2beae9=_0x2beae9-0x140;let _0x29d478=_0x46612c[_0x2beae9];return _0x29d478;},_0x2bea(_0x12f5e4,_0x43c909);}import{AISpinnerView as _0x5386c6}from'../../../aicore/ui/aispinner.js';const xn={'file':_0xcfd578,'document':_0xc85fe9,'web-resource':_0x189708,'text':_0xcfd578,'selection':_0x52ab52},bn=_0x4f5eb8(0x16f),wn=_0x4f5eb8(0x175),Tn=_0x4f5eb8(0x147),En=_0x4f5eb8(0x142),fn=_0x4f5eb8(0x14a),An=_0x4f5eb8(0x149),Cn='n';function _0x4661(){const _0x4c3301=['_isAnimationOnEnterEnabled','webkitAnimationEnd','uiId','ck-ai-chat-context-chip__label','_createLabelElement','addEventListener','readonly','6231612ehAdlK','ck-ai-chat-context-chip_document','50256lsxxsb','ck-ai-chat-context-controls__chip-tooltip','ck-ai-chat-context-chip__type-icon','1171290oXpYSH','div','execute','lastIndexOf','disableAnimationOnEnter','element','length','isVisible','ck-hidden','set','_createIconView','isLoading','381520XJWyKm','5241756FkzSsW','tooltip','extendTemplate','removeEventListener','locale','slice','selection','removeContextItemChip','ck-ai-chat-context-chip_new-chip','remove','12EDiJjQ','add','span','document','render','fire','itemType','_setupRemoveButtonEvent','_initializeProperties','bind','_createTemplateAttributes','_createTemplateChildren','label','ck-ai-chat-context-chip','small','animationend','3706917Iippcc','_setupTemplate','7OkGggP','ck-ai-chat-context-chip_wide','type','content','_createRemoveButton','bindTemplate','_handleAnimationEndOnce','setTemplate','_createLoaderIcon','22811787BhNmhq','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','classList'];_0x4661=function(){return _0x4c3301;};return _0x4661();}export class AIChatContextItemButtonView extends _0x4b3327{constructor(_0x235b48,_0x51f12c,_0x521e66,_0x38fa6d,_0x2c5b87=!0x1){const _0x4f06b1=_0x4f5eb8;super(_0x235b48),this[_0x4f06b1(0x180)]=_0x38fa6d,this[_0x4f06b1(0x16a)](_0x51f12c,_0x521e66,_0x2c5b87),this[_0x4f06b1(0x173)]();}[_0x4f5eb8(0x166)](){const _0x4c8811=_0x4f5eb8;super[_0x4c8811(0x166)](),this[_0x4c8811(0x180)]&&this[_0x4c8811(0x150)]&&(this[_0x4c8811(0x150)][_0x4c8811(0x17f)][_0x4c8811(0x163)](_0x4c8811(0x160)),this[_0x4c8811(0x17a)](this[_0x4c8811(0x150)],()=>{const _0x27bddf=_0x4c8811;this[_0x27bddf(0x150)]&&this[_0x27bddf(0x150)][_0x27bddf(0x17f)][_0x27bddf(0x161)](_0x27bddf(0x160));}));}[_0x4f5eb8(0x14f)](){const _0x3a0aea=_0x4f5eb8;this[_0x3a0aea(0x180)]=!0x1,this[_0x3a0aea(0x150)]&&this[_0x3a0aea(0x150)][_0x3a0aea(0x17f)][_0x3a0aea(0x161)](_0x3a0aea(0x160));}[_0x4f5eb8(0x16a)](_0x352194,_0x3551f5,_0x1b52d9){const _0x34123f=_0x4f5eb8;this[_0x34123f(0x154)](_0x34123f(0x16e),_0x352194[_0x34123f(0x16e)]),this[_0x34123f(0x154)](_0x34123f(0x159),!0x0),this[_0x34123f(0x154)](_0x34123f(0x168),_0x352194[_0x34123f(0x176)]),this[_0x34123f(0x154)]('id',_0x352194[_0x34123f(0x141)]),this[_0x34123f(0x154)](_0x34123f(0x145),_0x3551f5),this[_0x34123f(0x154)](_0x34123f(0x156),_0x1b52d9);}[_0x4f5eb8(0x173)](){const _0x4f9ee3=_0x4f5eb8,_0x2f2c57=this[_0x4f9ee3(0x155)](),_0x24bd50=this[_0x4f9ee3(0x178)](),_0x7d8127=this[_0x4f9ee3(0x179)];this[_0x4f9ee3(0x17b)]({'tag':_0x4f9ee3(0x14c),'attributes':this[_0x4f9ee3(0x16c)](_0x7d8127),'children':this[_0x4f9ee3(0x16d)](_0x2f2c57,_0x24bd50,_0x7d8127)});}[_0x4f5eb8(0x16c)](_0x18a114){const _0x489719=_0x4f5eb8;return{'class':[bn,_0x18a114['if'](_0x489719(0x168),Tn,_0x4d5ebc=>_0x489719(0x165)==_0x4d5ebc),_0x18a114['if'](_0x489719(0x168),wn,_0xf0f5b8=>_0x489719(0x15e)==_0xf0f5b8)],'data-cke-tooltip-text':_0x18a114['to'](_0x489719(0x16e),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x4f5eb8(0x16d)](_0x19864c,_0x3d6c0a,_0x4ce849){const _0x5f44ef=_0x4f5eb8,_0x1fb13e=this[_0x5f44ef(0x143)](_0x4ce849),_0x2b9128=this[_0x5f44ef(0x17c)]();return this[_0x5f44ef(0x145)]?[_0x19864c,_0x1fb13e]:[_0x19864c,_0x2b9128,_0x1fb13e,_0x3d6c0a];}[_0x4f5eb8(0x143)](_0x13bd5b){const _0x560b32=_0x4f5eb8;return{'tag':_0x560b32(0x164),'attributes':{'class':En},'children':[{'text':_0x13bd5b['to'](_0x560b32(0x16e))}]};}[_0x4f5eb8(0x178)](){const _0x49e201=_0x4f5eb8,_0x379e9b=new _0x4b3327(this[_0x49e201(0x15c)]);return _0x379e9b[_0x49e201(0x154)]({'label':_0xe41f29(this[_0x49e201(0x15c)],_0x49e201(0x17e)),'icon':_0xa8e0f3}),this[_0x49e201(0x169)](_0x379e9b),_0x379e9b;}[_0x4f5eb8(0x169)](_0x4cc13c){const _0x198107=_0x4f5eb8;_0x4cc13c['on'](_0x198107(0x14d),()=>{const _0x22b1fd=_0x198107;this[_0x22b1fd(0x167)](_0x22b1fd(0x15f),this['id']);});}[_0x4f5eb8(0x155)](){const _0xd6f877=_0x4f5eb8,_0xe776f6=this[_0xd6f877(0x179)],_0x267615=new _0xfea080();return _0x267615[_0xd6f877(0x177)]=xn[this[_0xd6f877(0x168)]],_0x267615[_0xd6f877(0x15a)]({'attributes':{'class':[fn,_0xe776f6['if'](_0xd6f877(0x156),_0xd6f877(0x153),_0x141c1e=>_0x141c1e)]}}),_0x267615;}[_0x4f5eb8(0x17a)](_0x54a9c9,_0x5df5da){const _0x1dd0d0=_0x4f5eb8;if(!_0x54a9c9)return;const _0x585a50=()=>{const _0x5d70d0=_0x2bea;_0x5df5da(),_0x54a9c9[_0x5d70d0(0x15b)](_0x5d70d0(0x171),_0x585a50),_0x54a9c9[_0x5d70d0(0x15b)](_0x5d70d0(0x140),_0x585a50);};_0x54a9c9[_0x1dd0d0(0x144)](_0x1dd0d0(0x171),_0x585a50),_0x54a9c9[_0x1dd0d0(0x144)](_0x1dd0d0(0x140),_0x585a50);}[_0x4f5eb8(0x17c)](){const _0x3ba8f7=_0x4f5eb8,_0x2ec079=new _0x5386c6(_0x3ba8f7(0x170));return _0x2ec079[_0x3ba8f7(0x16b)](_0x3ba8f7(0x152))['to'](this,_0x3ba8f7(0x156),_0x2aca0b=>_0x2aca0b),_0x2ec079;}}function In(_0x412be4){const _0x54c330=_0x4f5eb8;if(!_0x412be4)return _0x412be4;if(_0x412be4[_0x54c330(0x151)]<=0x78)return _0x412be4;const _0x540b26=_0x412be4[_0x54c330(0x15d)](0x0,0x78),_0x5eb9e3=_0x540b26[_0x54c330(0x14e)]('\x20');return(_0x5eb9e3>0x0?_0x540b26[_0x54c330(0x15d)](0x0,_0x5eb9e3):_0x540b26)+'…';}
23
+ const _0x2016d9=_0x203a;(function(_0x36ac51,_0x29a85a){const _0x80222b=_0x203a,_0x241bbb=_0x36ac51();while(!![]){try{const _0x19e653=parseInt(_0x80222b(0xed))/0x1*(parseInt(_0x80222b(0xc7))/0x2)+parseInt(_0x80222b(0xc8))/0x3*(parseInt(_0x80222b(0xcc))/0x4)+-parseInt(_0x80222b(0xc0))/0x5*(-parseInt(_0x80222b(0xd1))/0x6)+parseInt(_0x80222b(0xba))/0x7+-parseInt(_0x80222b(0xeb))/0x8+-parseInt(_0x80222b(0xda))/0x9+-parseInt(_0x80222b(0xcd))/0xa;if(_0x19e653===_0x29a85a)break;else _0x241bbb['push'](_0x241bbb['shift']());}catch(_0x23af1c){_0x241bbb['push'](_0x241bbb['shift']());}}}(_0xce26,0x37d87));import{ButtonView as _0x352050,IconView as _0x1636ef}from'ckeditor5/src/ui.js';import{IconClose as _0xeb0d50,IconDocument as _0x2b37ec,IconFileUpload as _0x3817c2,IconLink as _0x214012,IconSelection as _0x46fa40}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x90a17e}from'../../../aicore/utils/common-translations.js';function _0xce26(){const _0x14d85b=['add','render','readonly','isLoading','small','ck-hidden','bind','span','tooltip','uiId','ck-ai-chat-context-chip','selection','isVisible','_setupTemplate','_createLoaderIcon','_createIconView','2782368qITYaw','ck-ai-chat-context-chip_wide','6359DZyumt','_createTemplateAttributes','ck-ai-chat-context-chip__type-icon','fire','animationend','extendTemplate','addEventListener','ck-ai-chat-context-chip_document','execute','set','_handleAnimationEndOnce','_createTemplateChildren','_createLabelElement','length','disableAnimationOnEnter','1240575eGCupA','_createRemoveButton','document','_setupRemoveButtonEvent','classList','remove','5KICkLH','label','_initializeProperties','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','setTemplate','webkitAnimationEnd','ck-ai-chat-context-chip__label','82ENXVsm','27648ixEwiH','content','element','bindTemplate','132HnmmRs','3156710Jkvaum','_isAnimationOnEnterEnabled','removeContextItemChip','ck-ai-chat-context-chip_new-chip','2578638NHcfWz','type','locale','slice','removeEventListener','itemType','lastIndexOf','div','ck-ai-chat-context-controls__chip-tooltip','2516715Tddmqj'];_0xce26=function(){return _0x14d85b;};return _0xce26();}import{AISpinnerView as _0x34c7cd}from'../../../aicore/ui/aispinner.js';const En={'file':_0x3817c2,'document':_0x2b37ec,'web-resource':_0x214012,'text':_0x3817c2,'selection':_0x46fa40},An=_0x2016d9(0xe5),Cn=_0x2016d9(0xec),In=_0x2016d9(0xb2),On=_0x2016d9(0xc6),vn=_0x2016d9(0xad),yn=_0x2016d9(0xd9),Ln='n';export class AIChatContextItemButtonView extends _0x352050{constructor(_0x53b02a,_0x375de7,_0x5ae8d7,_0x59af28,_0xe25a98=!0x1){const _0x5138c2=_0x2016d9;super(_0x53b02a),this[_0x5138c2(0xce)]=_0x59af28,this[_0x5138c2(0xc2)](_0x375de7,_0x5ae8d7,_0xe25a98),this[_0x5138c2(0xe8)]();}[_0x2016d9(0xdc)](){const _0x235749=_0x2016d9;super[_0x235749(0xdc)](),this[_0x235749(0xce)]&&this[_0x235749(0xca)]&&(this[_0x235749(0xca)][_0x235749(0xbe)][_0x235749(0xdb)](_0x235749(0xd0)),this[_0x235749(0xb5)](this[_0x235749(0xca)],()=>{const _0x3c788a=_0x235749;this[_0x3c788a(0xca)]&&this[_0x3c788a(0xca)][_0x3c788a(0xbe)][_0x3c788a(0xbf)](_0x3c788a(0xd0));}));}[_0x2016d9(0xb9)](){const _0x65efaf=_0x2016d9;this[_0x65efaf(0xce)]=!0x1,this[_0x65efaf(0xca)]&&this[_0x65efaf(0xca)][_0x65efaf(0xbe)][_0x65efaf(0xbf)](_0x65efaf(0xd0));}[_0x2016d9(0xc2)](_0x1cdfe0,_0x136c6b,_0x161300){const _0x37a44d=_0x2016d9;this[_0x37a44d(0xb4)](_0x37a44d(0xc1),_0x1cdfe0[_0x37a44d(0xc1)]),this[_0x37a44d(0xb4)](_0x37a44d(0xe3),!0x0),this[_0x37a44d(0xb4)](_0x37a44d(0xd6),_0x1cdfe0[_0x37a44d(0xd2)]),this[_0x37a44d(0xb4)]('id',_0x1cdfe0[_0x37a44d(0xe4)]),this[_0x37a44d(0xb4)](_0x37a44d(0xdd),_0x136c6b),this[_0x37a44d(0xb4)](_0x37a44d(0xde),_0x161300);}[_0x2016d9(0xe8)](){const _0x35867b=_0x2016d9,_0x415c28=this[_0x35867b(0xea)](),_0xc8cddd=this[_0x35867b(0xbb)](),_0x50fe90=this[_0x35867b(0xcb)];this[_0x35867b(0xc4)]({'tag':_0x35867b(0xd8),'attributes':this[_0x35867b(0xee)](_0x50fe90),'children':this[_0x35867b(0xb6)](_0x415c28,_0xc8cddd,_0x50fe90)});}[_0x2016d9(0xee)](_0xeec9fb){const _0x5c45c7=_0x2016d9;return{'class':[An,_0xeec9fb['if'](_0x5c45c7(0xd6),In,_0x3a5c2f=>_0x5c45c7(0xbc)==_0x3a5c2f),_0xeec9fb['if'](_0x5c45c7(0xd6),Cn,_0x1bffb9=>_0x5c45c7(0xe6)==_0x1bffb9)],'data-cke-tooltip-text':_0xeec9fb['to'](_0x5c45c7(0xc1),Rn),'data-cke-tooltip-position':Ln,'data-cke-tooltip-class':yn};}[_0x2016d9(0xb6)](_0x156a4f,_0x1c5805,_0x3d343e){const _0x1082a7=_0x2016d9,_0x203bae=this[_0x1082a7(0xb7)](_0x3d343e),_0x4f457e=this[_0x1082a7(0xe9)]();return this[_0x1082a7(0xdd)]?[_0x156a4f,_0x203bae]:[_0x156a4f,_0x4f457e,_0x203bae,_0x1c5805];}[_0x2016d9(0xb7)](_0x5f4068){const _0xa33b16=_0x2016d9;return{'tag':_0xa33b16(0xe2),'attributes':{'class':On},'children':[{'text':_0x5f4068['to'](_0xa33b16(0xc1))}]};}[_0x2016d9(0xbb)](){const _0x99090f=_0x2016d9,_0x252fa3=new _0x352050(this[_0x99090f(0xd3)]);return _0x252fa3[_0x99090f(0xb4)]({'label':_0x90a17e(this[_0x99090f(0xd3)],_0x99090f(0xc3)),'icon':_0xeb0d50}),this[_0x99090f(0xbd)](_0x252fa3),_0x252fa3;}[_0x2016d9(0xbd)](_0x43a8a1){const _0x2a8e5a=_0x2016d9;_0x43a8a1['on'](_0x2a8e5a(0xb3),()=>{const _0x1c8ec6=_0x2a8e5a;this[_0x1c8ec6(0xae)](_0x1c8ec6(0xcf),this['id']);});}[_0x2016d9(0xea)](){const _0x3399f4=_0x2016d9,_0x4facd1=this[_0x3399f4(0xcb)],_0x4e1085=new _0x1636ef();return _0x4e1085[_0x3399f4(0xc9)]=En[this[_0x3399f4(0xd6)]],_0x4e1085[_0x3399f4(0xb0)]({'attributes':{'class':[vn,_0x4facd1['if'](_0x3399f4(0xde),_0x3399f4(0xe0),_0x5755f2=>_0x5755f2)]}}),_0x4e1085;}[_0x2016d9(0xb5)](_0x31927d,_0x3b4323){const _0xa83033=_0x2016d9;if(!_0x31927d)return;const _0x4795a5=()=>{const _0x212b51=_0x203a;_0x3b4323(),_0x31927d[_0x212b51(0xd5)](_0x212b51(0xaf),_0x4795a5),_0x31927d[_0x212b51(0xd5)](_0x212b51(0xc5),_0x4795a5);};_0x31927d[_0xa83033(0xb1)](_0xa83033(0xaf),_0x4795a5),_0x31927d[_0xa83033(0xb1)](_0xa83033(0xc5),_0x4795a5);}[_0x2016d9(0xe9)](){const _0x18ecca=_0x2016d9,_0x311b4b=new _0x34c7cd(_0x18ecca(0xdf));return _0x311b4b[_0x18ecca(0xe1)](_0x18ecca(0xe7))['to'](this,_0x18ecca(0xde),_0x260455=>_0x260455),_0x311b4b;}}function _0x203a(_0x4163c6,_0x3b9ed6){const _0xce26ef=_0xce26();return _0x203a=function(_0x203aa6,_0x493257){_0x203aa6=_0x203aa6-0xad;let _0xf4a0e9=_0xce26ef[_0x203aa6];return _0xf4a0e9;},_0x203a(_0x4163c6,_0x3b9ed6);}function Rn(_0x35b01b){const _0x5e5595=_0x2016d9;if(!_0x35b01b)return _0x35b01b;if(_0x35b01b[_0x5e5595(0xb8)]<=0x78)return _0x35b01b;const _0x227a60=_0x35b01b[_0x5e5595(0xd4)](0x0,0x78),_0x370fc8=_0x227a60[_0x5e5595(0xd7)]('\x20');return(_0x370fc8>0x0?_0x227a60[_0x5e5595(0xd4)](0x0,_0x370fc8):_0x227a60)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3152aa=_0x455c;(function(_0x5c13b2,_0x23c8c0){const _0x14d23a=_0x455c,_0x3d4c21=_0x5c13b2();while(!![]){try{const _0x4d43ef=-parseInt(_0x14d23a(0xdd))/0x1*(-parseInt(_0x14d23a(0xe2))/0x2)+-parseInt(_0x14d23a(0x101))/0x3*(parseInt(_0x14d23a(0xe9))/0x4)+parseInt(_0x14d23a(0xfc))/0x5*(-parseInt(_0x14d23a(0xde))/0x6)+parseInt(_0x14d23a(0x11f))/0x7+parseInt(_0x14d23a(0xfd))/0x8*(-parseInt(_0x14d23a(0x10c))/0x9)+-parseInt(_0x14d23a(0x104))/0xa*(parseInt(_0x14d23a(0x117))/0xb)+parseInt(_0x14d23a(0x107))/0xc*(parseInt(_0x14d23a(0x11c))/0xd);if(_0x4d43ef===_0x23c8c0)break;else _0x3d4c21['push'](_0x3d4c21['shift']());}catch(_0x47794c){_0x3d4c21['push'](_0x3d4c21['shift']());}}}(_0x35f0,0x33ac5));import{FocusTracker as _0xd16163,KeystrokeHandler as _0x1516fe}from'ckeditor5/src/utils.js';function _0x35f0(){const _0x525510=['esc','div','ck-button-icon\x20ck-button-back','input','38DeLJMj','6ZrExvU','shift+tab','value','ck-ai-chat-context-controls__url-input-section','13582zJejip','ck-labeled-field-view_empty','refreshBalloon','add','_setupEventHandlers','_focusables','createCollection','67012OYGScd','destroy','trim','locale','AI_CHAT_CONTEXT_URL_LABEL','_setupTemplate','fire','execute','isEnabled','AI_CHAT_CONTEXT_URL_INVALID_ERROR','tab','element','setError','render','ck-ai-chat-context-controls__url-form','focusTracker','_isValidUrl','urlInputField','_createConfirmButton','1089060BUdyPZ','112mVyhRB','_handleSubmit','focusCycler','children','27RCdGjD','errorText','cancel','3274030CYrXAO','AI_CHAT_CONTEXT_URL_PLACEHOLDER','forEach','12DbmwyG','submit','_setupKeystrokes','getValue','clear','190395DYGfrv','setTemplate','stop','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_createBackButton','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','set','AI_CHAT_CONTEXT_URL_ADD_URL','confirmButton','clearError','11SUXVPX','focus','form','length','keystrokes','11968645HxMuDA','ck-button-icon','fieldView','175644WzcInE','backButton','_updateConfirmButtonState','submitUrl','_createUrlInputField','listenTo'];_0x35f0=function(){return _0x525510;};return _0x35f0();}import{ButtonView as _0x37182c,FocusCycler as _0x3cd621,LabeledFieldView as _0x4ab98d,View as _0x9e09e9,FormHeaderView as _0x536608,createLabeledInputText as _0x1fe988,submitHandler as _0x260afa}from'ckeditor5/src/ui.js';import{IconCheck as _0x530cca,IconPreviousArrow as _0x3fea9d}from'@ckeditor/ckeditor5-icons';function _0x455c(_0x51f86c,_0xcaa993){const _0x35f029=_0x35f0();return _0x455c=function(_0x455cc8,_0x1d8d99){_0x455cc8=_0x455cc8-0xd5;let _0x105d0c=_0x35f029[_0x455cc8];return _0x105d0c;},_0x455c(_0x51f86c,_0xcaa993);}import{getTranslation as _0x2edd7a}from'../../../aicore/utils/common-translations.js';const ch=_0x3152aa(0xf7),nh=_0x3152aa(0xe1);export class AIChatContextPanelUrlInputView extends _0x9e09e9{[_0x3152aa(0xf8)];[_0x3152aa(0x11b)];[_0x3152aa(0xe7)];[_0x3152aa(0xff)];[_0x3152aa(0xfa)];[_0x3152aa(0x120)];[_0x3152aa(0x115)];constructor(_0xa04ca5){const _0x5c84fd=_0x3152aa;super(_0xa04ca5),this[_0x5c84fd(0xf8)]=new _0xd16163(),this[_0x5c84fd(0x11b)]=new _0x1516fe(),this[_0x5c84fd(0x120)]=this[_0x5c84fd(0x110)](),this[_0x5c84fd(0xfa)]=this[_0x5c84fd(0xd7)](),this[_0x5c84fd(0x115)]=this[_0x5c84fd(0xfb)](),this[_0x5c84fd(0xe7)]=this[_0x5c84fd(0xe8)]([this[_0x5c84fd(0x120)],this[_0x5c84fd(0xfa)],this[_0x5c84fd(0x115)]]),this[_0x5c84fd(0xff)]=new _0x3cd621({'focusables':this[_0x5c84fd(0xe7)],'focusTracker':this[_0x5c84fd(0xf8)],'keystrokeHandler':this[_0x5c84fd(0x11b)],'actions':{'focusPrevious':_0x5c84fd(0xdf),'focusNext':_0x5c84fd(0xf3)}}),this[_0x5c84fd(0xee)](),this[_0x5c84fd(0xe6)](),this[_0x5c84fd(0x109)]();}[_0x3152aa(0xf6)](){const _0x3695f8=_0x3152aa;super[_0x3695f8(0xf6)](),this[_0x3695f8(0xe7)][_0x3695f8(0x106)](_0x12e7e0=>{const _0x4a6a88=_0x3695f8;this[_0x4a6a88(0xf8)][_0x4a6a88(0xe5)](_0x12e7e0[_0x4a6a88(0xf4)]),this[_0x4a6a88(0x11b)][_0x4a6a88(0xd8)](_0x12e7e0[_0x4a6a88(0xf4)]);}),_0x260afa({'view':this}),this[_0x3695f8(0x118)]();}[_0x3152aa(0xea)](){const _0x14bc43=_0x3152aa;super[_0x14bc43(0xea)](),this[_0x14bc43(0xf8)][_0x14bc43(0xea)](),this[_0x14bc43(0x11b)][_0x14bc43(0xea)]();}[_0x3152aa(0x118)](){const _0x100c0d=_0x3152aa;this[_0x100c0d(0xfa)][_0x100c0d(0x118)]();}[_0x3152aa(0x10a)](){const _0x4f3737=_0x3152aa;return this[_0x4f3737(0xfa)][_0x4f3737(0x11e)][_0x4f3737(0xf4)]?.[_0x4f3737(0xe0)]?.[_0x4f3737(0xeb)]()||'';}[_0x3152aa(0x10b)](){const _0x540e28=_0x3152aa;this[_0x540e28(0xfa)][_0x540e28(0x11e)][_0x540e28(0xf4)][_0x540e28(0xe0)]='',this[_0x540e28(0xfa)][_0x540e28(0x102)]=null,this[_0x540e28(0x115)][_0x540e28(0xf1)]=!0x1;}[_0x3152aa(0xf5)](_0x2829a7){const _0x212636=_0x3152aa;this[_0x212636(0xfa)][_0x212636(0x102)]=_0x2829a7,this[_0x212636(0xd5)](),this[_0x212636(0xef)](_0x212636(0xe4));}[_0x3152aa(0x116)](){const _0x41c306=_0x3152aa;this[_0x41c306(0xfa)][_0x41c306(0x102)]=null,this[_0x41c306(0xd5)]();}[_0x3152aa(0x110)](){const _0x452c78=_0x3152aa,_0xefaf2a=new _0x37182c(this[_0x452c78(0xec)]);return _0xefaf2a[_0x452c78(0x113)]({'icon':_0x3fea9d,'tooltip':_0x2edd7a(this[_0x452c78(0xec)],_0x452c78(0x112)),'tooltipPosition':'n','class':_0x452c78(0xdb)}),_0xefaf2a;}[_0x3152aa(0xd7)](){const _0x287049=_0x3152aa,_0x3de3bb=new _0x4ab98d(this[_0x287049(0xec)],_0x1fe988);return _0x3de3bb[_0x287049(0x113)]({'label':_0x2edd7a(this[_0x287049(0xec)],_0x287049(0xed)),'class':_0x287049(0xe3)}),_0x3de3bb[_0x287049(0x11e)][_0x287049(0x113)]({'placeholder':_0x2edd7a(this[_0x287049(0xec)],_0x287049(0x105))}),_0x3de3bb;}[_0x3152aa(0xfb)](){const _0x354ea5=_0x3152aa,_0x51bf05=new _0x37182c(this[_0x354ea5(0xec)]);return _0x51bf05[_0x354ea5(0x113)]({'icon':_0x530cca,'tooltip':_0x2edd7a(this[_0x354ea5(0xec)],_0x354ea5(0x114)),'tooltipPosition':'n','class':_0x354ea5(0x11d),'type':_0x354ea5(0x108),'isEnabled':!0x1}),_0x51bf05;}[_0x3152aa(0xee)](){const _0x47710e=_0x3152aa,_0x1a02e3=new _0x536608(this[_0x47710e(0xec)],{'label':_0x2edd7a(this[_0x47710e(0xec)],_0x47710e(0x114)),'class':_0x47710e(0x111)});_0x1a02e3[_0x47710e(0x100)][_0x47710e(0xe5)](this[_0x47710e(0x120)],0x0),this[_0x47710e(0x10d)]({'tag':_0x47710e(0x119),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x1a02e3,{'tag':_0x47710e(0xda),'attributes':{'class':nh},'children':[this[_0x47710e(0xfa)],this[_0x47710e(0x115)]]}]});}[_0x3152aa(0xe6)](){const _0x4b05c7=_0x3152aa;this[_0x4b05c7(0x120)]['on'](_0x4b05c7(0xf0),()=>{const _0x35f46e=_0x4b05c7;this[_0x35f46e(0x10b)](),this[_0x35f46e(0xef)](_0x35f46e(0x103));}),this[_0x4b05c7(0xfa)][_0x4b05c7(0x11e)]['on'](_0x4b05c7(0xdc),()=>{const _0x2df79a=_0x4b05c7;this[_0x2df79a(0x116)](),this[_0x2df79a(0xd5)](),this[_0x2df79a(0xef)](_0x2df79a(0xe4));}),this['on'](_0x4b05c7(0x108),_0x4ed79d=>{const _0x2585f5=_0x4b05c7;_0x4ed79d[_0x2585f5(0x10e)](),this[_0x2585f5(0xfe)]();});}[_0x3152aa(0x109)](){const _0x5e3cdd=_0x3152aa;this[_0x5e3cdd(0x11b)][_0x5e3cdd(0x113)](_0x5e3cdd(0xd9),(_0x6eb85e,_0x4f7e98)=>{const _0x3e2158=_0x5e3cdd;this[_0x3e2158(0x10b)](),this[_0x3e2158(0xef)](_0x3e2158(0x103)),_0x4f7e98();});}[_0x3152aa(0xfe)](){const _0x89cd6a=_0x3152aa,_0x333091=this[_0x89cd6a(0x10a)]()[_0x89cd6a(0xeb)]();_0x333091?this[_0x89cd6a(0xf9)](_0x333091)?(this[_0x89cd6a(0x116)](),this[_0x89cd6a(0xef)](_0x89cd6a(0xd6),_0x333091)):this[_0x89cd6a(0xf5)](_0x2edd7a(this[_0x89cd6a(0xec)],_0x89cd6a(0xf2))):this[_0x89cd6a(0xf5)](_0x2edd7a(this[_0x89cd6a(0xec)],_0x89cd6a(0x10f)));}[_0x3152aa(0xd5)](){const _0x50b421=_0x3152aa,_0x1a15d2=this[_0x50b421(0x10a)]()[_0x50b421(0xeb)](),_0x32e52c=!!this[_0x50b421(0xfa)][_0x50b421(0x102)];this[_0x50b421(0x115)][_0x50b421(0xf1)]=_0x1a15d2[_0x50b421(0x11a)]>0x0&&!_0x32e52c;}[_0x3152aa(0xf9)](_0x2ca6c3){try{return!!new URL(_0x2ca6c3);}catch{return!0x1;}}}
23
+ function _0x51f5(_0x2a9000,_0x57371a){const _0x3fdbf7=_0x3fdb();return _0x51f5=function(_0x51f54b,_0x2d6a5d){_0x51f54b=_0x51f54b-0x8d;let _0x20e296=_0x3fdbf7[_0x51f54b];return _0x20e296;},_0x51f5(_0x2a9000,_0x57371a);}const _0x16475b=_0x51f5;(function(_0xd6bf4,_0x357d03){const _0x3f2f85=_0x51f5,_0x1c402c=_0xd6bf4();while(!![]){try{const _0x27d4d9=-parseInt(_0x3f2f85(0xb0))/0x1+parseInt(_0x3f2f85(0xc6))/0x2*(-parseInt(_0x3f2f85(0xa6))/0x3)+-parseInt(_0x3f2f85(0x91))/0x4+parseInt(_0x3f2f85(0xbb))/0x5+parseInt(_0x3f2f85(0x9c))/0x6+-parseInt(_0x3f2f85(0xa3))/0x7+-parseInt(_0x3f2f85(0xd3))/0x8*(-parseInt(_0x3f2f85(0x93))/0x9);if(_0x27d4d9===_0x357d03)break;else _0x1c402c['push'](_0x1c402c['shift']());}catch(_0x1551c4){_0x1c402c['push'](_0x1c402c['shift']());}}}(_0x3fdb,0xb89a8));import{FocusTracker as _0x4f3991,KeystrokeHandler as _0x2761c3}from'ckeditor5/src/utils.js';import{ButtonView as _0x1ce3df,FocusCycler as _0x59ed68,LabeledFieldView as _0x76db50,View as _0xcf6a8c,FormHeaderView as _0xa33c5d,createLabeledInputText as _0x3e8d1b,submitHandler as _0x324a6b}from'ckeditor5/src/ui.js';function _0x3fdb(){const _0x329666=['clear','3997630AGgNZa','fieldView','shift+tab','17511eCpLOe','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','length','value','_updateConfirmButtonState','_isValidUrl','_setupTemplate','errorText','AI_CHAT_CONTEXT_URL_ADD_URL','_setupKeystrokes','554610erKaBC','setError','form','element','_createBackButton','render','refreshBalloon','tab','cancel','ck-button-icon','focusCycler','1970760ikgbbo','confirmButton','forEach','ck-labeled-field-view_empty','fire','AI_CHAT_CONTEXT_URL_LABEL','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','destroy','_setupEventHandlers','backButton','ck-ai-chat-context-controls__url-input-section','102nfuUkd','urlInputField','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','getValue','isEnabled','_focusables','input','div','set','_createUrlInputField','submitUrl','setTemplate','_handleSubmit','16ciHsmd','add','_createConfirmButton','focus','ck-button-icon\x20ck-button-back','listenTo','3135824SEWdNJ','submit','8165007dtPGub','AI_CHAT_CONTEXT_URL_INVALID_ERROR','esc','trim','children','focusTracker','ck-ai-chat-context-controls__url-form','createCollection','keystrokes','4529286TWUlPU','clearError','execute','stop','AI_CHAT_CONTEXT_URL_PLACEHOLDER','locale'];_0x3fdb=function(){return _0x329666;};return _0x3fdb();}import{IconCheck as _0x21ae4d,IconPreviousArrow as _0x11c8ed}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x487dc5}from'../../../aicore/utils/common-translations.js';const eh=_0x16475b(0x99),hh=_0x16475b(0xc5);export class AIChatContextPanelUrlInputView extends _0xcf6a8c{[_0x16475b(0x98)];[_0x16475b(0x9b)];[_0x16475b(0xcb)];[_0x16475b(0xba)];[_0x16475b(0xc7)];[_0x16475b(0xc4)];[_0x16475b(0xbc)];constructor(_0x1dc16f){const _0x4a9dce=_0x16475b;super(_0x1dc16f),this[_0x4a9dce(0x98)]=new _0x4f3991(),this[_0x4a9dce(0x9b)]=new _0x2761c3(),this[_0x4a9dce(0xc4)]=this[_0x4a9dce(0xb4)](),this[_0x4a9dce(0xc7)]=this[_0x4a9dce(0xcf)](),this[_0x4a9dce(0xbc)]=this[_0x4a9dce(0x8d)](),this[_0x4a9dce(0xcb)]=this[_0x4a9dce(0x9a)]([this[_0x4a9dce(0xc4)],this[_0x4a9dce(0xc7)],this[_0x4a9dce(0xbc)]]),this[_0x4a9dce(0xba)]=new _0x59ed68({'focusables':this[_0x4a9dce(0xcb)],'focusTracker':this[_0x4a9dce(0x98)],'keystrokeHandler':this[_0x4a9dce(0x9b)],'actions':{'focusPrevious':_0x4a9dce(0xa5),'focusNext':_0x4a9dce(0xb7)}}),this[_0x4a9dce(0xac)](),this[_0x4a9dce(0xc3)](),this[_0x4a9dce(0xaf)]();}[_0x16475b(0xb5)](){const _0x8cca3a=_0x16475b;super[_0x8cca3a(0xb5)](),this[_0x8cca3a(0xcb)][_0x8cca3a(0xbd)](_0x2fa4ee=>{const _0x228c71=_0x8cca3a;this[_0x228c71(0x98)][_0x228c71(0xd4)](_0x2fa4ee[_0x228c71(0xb3)]),this[_0x228c71(0x9b)][_0x228c71(0x90)](_0x2fa4ee[_0x228c71(0xb3)]);}),_0x324a6b({'view':this}),this[_0x8cca3a(0x8e)]();}[_0x16475b(0xc2)](){const _0x283436=_0x16475b;super[_0x283436(0xc2)](),this[_0x283436(0x98)][_0x283436(0xc2)](),this[_0x283436(0x9b)][_0x283436(0xc2)]();}[_0x16475b(0x8e)](){const _0x156a0b=_0x16475b;this[_0x156a0b(0xc7)][_0x156a0b(0x8e)]();}[_0x16475b(0xc9)](){const _0x568d9e=_0x16475b;return this[_0x568d9e(0xc7)][_0x568d9e(0xa4)][_0x568d9e(0xb3)]?.[_0x568d9e(0xa9)]?.[_0x568d9e(0x96)]()||'';}[_0x16475b(0xa2)](){const _0x399c80=_0x16475b;this[_0x399c80(0xc7)][_0x399c80(0xa4)][_0x399c80(0xb3)][_0x399c80(0xa9)]='',this[_0x399c80(0xc7)][_0x399c80(0xad)]=null,this[_0x399c80(0xbc)][_0x399c80(0xca)]=!0x1;}[_0x16475b(0xb1)](_0xab61fd){const _0x1c31e3=_0x16475b;this[_0x1c31e3(0xc7)][_0x1c31e3(0xad)]=_0xab61fd,this[_0x1c31e3(0xaa)](),this[_0x1c31e3(0xbf)](_0x1c31e3(0xb6));}[_0x16475b(0x9d)](){const _0x2477aa=_0x16475b;this[_0x2477aa(0xc7)][_0x2477aa(0xad)]=null,this[_0x2477aa(0xaa)]();}[_0x16475b(0xb4)](){const _0x2e66b7=_0x16475b,_0x37c626=new _0x1ce3df(this[_0x2e66b7(0xa1)]);return _0x37c626[_0x2e66b7(0xce)]({'icon':_0x11c8ed,'tooltip':_0x487dc5(this[_0x2e66b7(0xa1)],_0x2e66b7(0xc8)),'tooltipPosition':'n','class':_0x2e66b7(0x8f)}),_0x37c626;}[_0x16475b(0xcf)](){const _0x95b135=_0x16475b,_0x37e6c6=new _0x76db50(this[_0x95b135(0xa1)],_0x3e8d1b);return _0x37e6c6[_0x95b135(0xce)]({'label':_0x487dc5(this[_0x95b135(0xa1)],_0x95b135(0xc0)),'class':_0x95b135(0xbe)}),_0x37e6c6[_0x95b135(0xa4)][_0x95b135(0xce)]({'placeholder':_0x487dc5(this[_0x95b135(0xa1)],_0x95b135(0xa0))}),_0x37e6c6;}[_0x16475b(0x8d)](){const _0x4bc99f=_0x16475b,_0x50616b=new _0x1ce3df(this[_0x4bc99f(0xa1)]);return _0x50616b[_0x4bc99f(0xce)]({'icon':_0x21ae4d,'tooltip':_0x487dc5(this[_0x4bc99f(0xa1)],_0x4bc99f(0xae)),'tooltipPosition':'n','class':_0x4bc99f(0xb9),'type':_0x4bc99f(0x92),'isEnabled':!0x1}),_0x50616b;}[_0x16475b(0xac)](){const _0x380358=_0x16475b,_0x40689c=new _0xa33c5d(this[_0x380358(0xa1)],{'label':_0x487dc5(this[_0x380358(0xa1)],_0x380358(0xae)),'class':_0x380358(0xa7)});_0x40689c[_0x380358(0x97)][_0x380358(0xd4)](this[_0x380358(0xc4)],0x0),this[_0x380358(0xd1)]({'tag':_0x380358(0xb2),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x40689c,{'tag':_0x380358(0xcd),'attributes':{'class':hh},'children':[this[_0x380358(0xc7)],this[_0x380358(0xbc)]]}]});}[_0x16475b(0xc3)](){const _0x28013b=_0x16475b;this[_0x28013b(0xc4)]['on'](_0x28013b(0x9e),()=>{const _0x347a2b=_0x28013b;this[_0x347a2b(0xa2)](),this[_0x347a2b(0xbf)](_0x347a2b(0xb8));}),this[_0x28013b(0xc7)][_0x28013b(0xa4)]['on'](_0x28013b(0xcc),()=>{const _0x57807f=_0x28013b;this[_0x57807f(0x9d)](),this[_0x57807f(0xaa)](),this[_0x57807f(0xbf)](_0x57807f(0xb6));}),this['on'](_0x28013b(0x92),_0x544c4c=>{const _0x585e3c=_0x28013b;_0x544c4c[_0x585e3c(0x9f)](),this[_0x585e3c(0xd2)]();});}[_0x16475b(0xaf)](){const _0x388c43=_0x16475b;this[_0x388c43(0x9b)][_0x388c43(0xce)](_0x388c43(0x95),(_0x193735,_0x21a7ca)=>{const _0x4a5ac7=_0x388c43;this[_0x4a5ac7(0xa2)](),this[_0x4a5ac7(0xbf)](_0x4a5ac7(0xb8)),_0x21a7ca();});}[_0x16475b(0xd2)](){const _0x4d7b7f=_0x16475b,_0x1c5f7b=this[_0x4d7b7f(0xc9)]()[_0x4d7b7f(0x96)]();_0x1c5f7b?this[_0x4d7b7f(0xab)](_0x1c5f7b)?(this[_0x4d7b7f(0x9d)](),this[_0x4d7b7f(0xbf)](_0x4d7b7f(0xd0),_0x1c5f7b)):this[_0x4d7b7f(0xb1)](_0x487dc5(this[_0x4d7b7f(0xa1)],_0x4d7b7f(0x94))):this[_0x4d7b7f(0xb1)](_0x487dc5(this[_0x4d7b7f(0xa1)],_0x4d7b7f(0xc1)));}[_0x16475b(0xaa)](){const _0x1e1e80=_0x16475b,_0xa3d6bd=this[_0x1e1e80(0xc9)]()[_0x1e1e80(0x96)](),_0x3c768d=!!this[_0x1e1e80(0xc7)][_0x1e1e80(0xad)];this[_0x1e1e80(0xbc)][_0x1e1e80(0xca)]=_0xa3d6bd[_0x1e1e80(0xa8)]>0x0&&!_0x3c768d;}[_0x16475b(0xab)](_0x4e0a98){try{return!!new URL(_0x4e0a98);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x50aa3b=_0x44f6;function _0x1c38(){const _0x561109=['element','northArrowSouthWest','extendTemplate','_urlInputView','setContextItemLoading','enabled','urls','buttonView','_createResourcesBalloonView','bind','setAddContextOptions','current','removeContextItemChip','cancel','balloonView','showUrlBalloonPanel','showSourceResourcesBalloon','reorganizeChips','searchInputVisibleFrom','_addContextBalloonConfig','_setupTemplate','remove','execute','_createContextButton','ck-ai-chat-context-controls__add-context-button','_bindEventHandlers','20414664fthoDb','ck-ai-chat-context-controls__add-context-balloon-panel','defaultPositions','ck-ai-chat-context-controls__url-balloon-panel','pin','_conversationContextsChips','showAddContextBalloonPanel','addContextButtonView','submitUrl','_setupAllBalloonClickOutsideHandlers','done','removeContextItem','setContainerElement','addUrlToContext','createCollection','_currentContextsChips','isLoading','icon','2263935IosoTZ','_toggleAddContextBalloon','updateResourceState','menuitem','_addContextToCollection','clearCurrentContextItems','clear','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','addDocumentToContext','conversation','southArrowNorth','_handleUrlSubmit','_createBalloonButton','_setBalloonPanelContent','addFileToContext','_resourcesBalloonView','div','overflowChips','_createAddContextBalloonPanelView','northArrowSouth','document','setConversationContext','isVisible','_setAddContextButtonEnabled','arrowView','5229364ODEnCG','addContextItem','fire','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat','locale','1368340eUwwAG','ck-ai-chat-controls-button','_setupAddContextBalloonClickOutsideHandler','AI_CHAT_CONTEXT_ADD_CONTEXT','set','add','closeSourceResourceBalloon','_getLimiterElement','ck-reset_all-excluded','_addContextBalloonPanelView','children','hide','focus','render','populateSourceResourceBalloon','_showSourceResourcesBalloon','tooltip','closest','southArrowNorthEast','2508762jeDmft','isOn','source','body','_setupUrlBalloonClickOutsideHandler','_createUrlBalloonPanelView','_createArrowView','_createAddContextButtonView','loadSourceResources','995094HNsNKL','ck-ai-chat-controls_context_show-more-button','files','type','hideAddContextBalloonPanel','10687313VhYQMB','_overflowManager','refreshBalloon','__arrow','hideUrlBalloonPanel','ck-ai-chat-context-controls','show','_handleAddContextButtonClick','_removeContextFromCollection','_urlBalloonPanelView','bodyCollection','label','isAnyResourceBalloonVisible','sources','content','ck-ai-chat-context-controls__pending-contexts','AI_CHAT_CONTEXT_URL_LABEL','southArrowNorthWest','destroy','find','clearConversationContextItems','_createBaseBalloonPanel','isEnabled','northArrowSouthEast','ck-ai-chat-context-chips-wrapper-balloon','addResourceToContext','setTemplate','_addUrlContent','isHidden','ck-ai-chat-context-controls__balloon-button-source','ck-ai-chat-context-controls__balloon-button','25bwkKQR','AI_CHAT_CONTEXT_FILE_LABEL','isReadOnly'];_0x1c38=function(){return _0x561109;};return _0x1c38();}(function(_0x44f480,_0x218049){const _0x463f1b=_0x44f6,_0x1afcb4=_0x44f480();while(!![]){try{const _0x530172=parseInt(_0x463f1b(0xfc))/0x1+-parseInt(_0x463f1b(0x10f))/0x2+-parseInt(_0x463f1b(0x16b))/0x3+parseInt(_0x463f1b(0xf6))/0x4+parseInt(_0x463f1b(0x13c))/0x5*(-parseInt(_0x463f1b(0x118))/0x6)+-parseInt(_0x463f1b(0x11d))/0x7+parseInt(_0x463f1b(0x159))/0x8;if(_0x530172===_0x218049)break;else _0x1afcb4['push'](_0x1afcb4['shift']());}catch(_0x4e59be){_0x1afcb4['push'](_0x1afcb4['shift']());}}}(_0x1c38,0xd2914));import{BalloonPanelView as _0x1c9cbe,ButtonView as _0x314fe6,clickOutsideHandler as _0x323c3c,FileDialogButtonView as _0x283fcb,IconView as _0x14ed84,View as _0x313c89}from'ckeditor5/src/ui.js';function _0x44f6(_0x188b7a,_0x455f63){const _0x1c3808=_0x1c38();return _0x44f6=function(_0x44f63a,_0x5e9914){_0x44f63a=_0x44f63a-0xf3;let _0x29ee83=_0x1c3808[_0x44f63a];return _0x29ee83;},_0x44f6(_0x188b7a,_0x455f63);}import{IconBrowseFiles as _0x44a71f,IconDocument as _0x29d693,IconDocumentOutline as _0x186b14,IconDropdownArrow as _0xe95710,IconLink as _0x3e19cf,IconPaperClip as _0x1caf9f}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x39520d}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x42ee9b}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x1b0994}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1fb0bb}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x47334c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x50aa3b(0x173),_0x50aa3b(0x179),_0x50aa3b(0x166),_0x50aa3b(0x136),_0x50aa3b(0x164),_0x50aa3b(0x117)];const ko=_0x50aa3b(0x122),Eo=_0x50aa3b(0x12c),vo=_0x50aa3b(0x15a),Vo=_0x50aa3b(0x157),Io=_0x50aa3b(0x15c),Po=_0x50aa3b(0x13b),Ro=_0x50aa3b(0x13a),Uo=_0x50aa3b(0xfd),Lo=_0x50aa3b(0x135),No=_0x50aa3b(0x119),Oo=_0x50aa3b(0xf9),Mo=_0x50aa3b(0xfa),Ho=[_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x140)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x17e)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x134)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x12e)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x175)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x10e)]];export class AIChatContextPanelView extends _0x313c89{[_0x50aa3b(0x160)];[_0x50aa3b(0x168)]=this[_0x50aa3b(0x167)]();[_0x50aa3b(0x15e)]=this[_0x50aa3b(0x167)]();[_0x50aa3b(0x11e)];[_0x50aa3b(0x105)];[_0x50aa3b(0x126)];[_0x50aa3b(0x142)];[_0x50aa3b(0x17a)];[_0x50aa3b(0x152)];[_0x50aa3b(0x127)];constructor(_0x1bd29c,_0x1c4dea){const _0x1e4f60=_0x50aa3b;super(_0x1bd29c),this[_0x1e4f60(0x127)]=_0x1c4dea[_0x1e4f60(0x127)],this[_0x1e4f60(0x168)]=this[_0x1e4f60(0x167)](),this[_0x1e4f60(0x15e)]=this[_0x1e4f60(0x167)](),this[_0x1e4f60(0x160)]=this[_0x1e4f60(0x116)](_0x1bd29c),this[_0x1e4f60(0x105)]=this[_0x1e4f60(0x17d)](_0x1bd29c),this[_0x1e4f60(0x126)]=this[_0x1e4f60(0x114)](_0x1bd29c),this[_0x1e4f60(0x17a)]=this[_0x1e4f60(0x147)](_0x1bd29c,_0x1c4dea);const _0x177362={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x1e4f60(0x11e)]=new _0x1b0994(_0x1bd29c,this[_0x1e4f60(0x168)],_0x177362,this[_0x1e4f60(0x127)],this),this[_0x1e4f60(0x152)]={'buttonView':this[_0x1e4f60(0x160)],'balloonView':this[_0x1e4f60(0x105)],'hideMethod':this[_0x1e4f60(0x11c)][_0x1e4f60(0x148)](this),'showMethod':this[_0x1e4f60(0x15f)][_0x1e4f60(0x148)](this)},this[_0x1e4f60(0x153)](),this[_0x1e4f60(0x158)]();}[_0x50aa3b(0x109)](){const _0x4fc124=_0x50aa3b;super[_0x4fc124(0x109)](),this[_0x4fc124(0x162)](),this[_0x4fc124(0x11e)][_0x4fc124(0x165)](this[_0x4fc124(0x13f)]),this[_0x4fc124(0x11e)][_0x4fc124(0x150)]();}[_0x50aa3b(0x12f)](){const _0x58fa80=_0x50aa3b;super[_0x58fa80(0x12f)](),this[_0x58fa80(0x11e)][_0x58fa80(0x12f)](),this[_0x58fa80(0x17a)][_0x58fa80(0x12f)]();}[_0x50aa3b(0xf7)](_0x4707d9,_0x749ced){const _0x152883=_0x50aa3b,_0x895c29=this[_0x152883(0x156)](_0x4707d9,_0x152883(0x14a),!0x0,_0x749ced);this[_0x152883(0x16f)](_0x895c29,this[_0x152883(0x168)]),this[_0x152883(0x11e)][_0x152883(0x150)]();}[_0x50aa3b(0x164)](_0x412bb9){const _0xb591e9=_0x50aa3b;this[_0xb591e9(0x125)](_0x412bb9,this[_0xb591e9(0x168)]),this[_0xb591e9(0x125)](_0x412bb9,this[_0xb591e9(0x11e)][_0xb591e9(0x17c)]),this[_0xb591e9(0x11e)][_0xb591e9(0x150)]();}[_0x50aa3b(0x143)](_0x15907b,_0x54dbca){const _0x252c2e=_0x50aa3b;let _0x158954=this[_0x252c2e(0x168)][_0x252c2e(0x130)](_0x979143=>_0x979143['id']===_0x15907b);_0x158954||(_0x158954=this[_0x252c2e(0x11e)][_0x252c2e(0x17c)][_0x252c2e(0x130)](_0x1e6be6=>_0x1e6be6['id']===_0x15907b)),_0x158954&&(_0x158954[_0x252c2e(0x169)]=_0x54dbca);}[_0x50aa3b(0x180)](_0x5bf8d8){const _0x5f3a06=_0x50aa3b;this[_0x5f3a06(0x15e)][_0x5f3a06(0x171)]();for(const _0x3fcfc4 of _0x5bf8d8){const _0x5f0cc1=this[_0x5f3a06(0x156)](_0x3fcfc4,_0x5f3a06(0x174),!0x1,!0x1);this[_0x5f3a06(0x16f)](_0x5f0cc1,this[_0x5f3a06(0x15e)]);}}[_0x50aa3b(0x170)](){const _0x18d821=_0x50aa3b;this[_0x18d821(0x168)][_0x18d821(0x171)](),this[_0x18d821(0x11e)][_0x18d821(0x171)]();}[_0x50aa3b(0x131)](){const _0x1f6741=_0x50aa3b;this[_0x1f6741(0x15e)][_0x1f6741(0x171)]();}[_0x50aa3b(0x16d)](_0x1a136b,_0x1337b0,_0xe51e09){const _0x3bd277=_0x50aa3b;this[_0x3bd277(0x17a)][_0x3bd277(0x16d)](_0x1a136b,_0x1337b0,_0xe51e09);}[_0x50aa3b(0x11c)](){const _0x77ddd9=_0x50aa3b;this[_0x77ddd9(0x16c)](!0x1);}[_0x50aa3b(0x15f)](){const _0x272810=_0x50aa3b;this[_0x272810(0x16c)](!0x0);}[_0x50aa3b(0x121)](){const _0x2d2052=_0x50aa3b;this[_0x2d2052(0x126)][_0x2d2052(0x107)](),this[_0x2d2052(0x160)][_0x2d2052(0x110)]=!0x1,this[_0x2d2052(0x142)]&&this[_0x2d2052(0x142)][_0x2d2052(0x171)]();}[_0x50aa3b(0x14e)](){const _0xd9e229=_0x50aa3b;this[_0xd9e229(0x126)][_0xd9e229(0x123)](),this[_0xd9e229(0x160)][_0xd9e229(0x110)]=!0x0;}[_0x50aa3b(0x10b)](_0xb3c101){const _0x54c867=_0x50aa3b;this[_0x54c867(0x17a)][_0x54c867(0x14f)](_0xb3c101),this[_0x54c867(0x160)][_0x54c867(0x110)]=!0x0;}[_0x50aa3b(0x10a)](_0x1db187,_0x412b41,_0x4f5262,_0x4b3a57){const _0x5f0fe2=_0x50aa3b;this[_0x5f0fe2(0x17a)][_0x5f0fe2(0x10a)](_0x1db187,_0x4f5262,_0x4b3a57);}[_0x50aa3b(0x102)](_0x349546){const _0xcc158e=_0x50aa3b;this[_0xcc158e(0x17a)][_0xcc158e(0x102)](_0x349546),this[_0xcc158e(0x160)][_0xcc158e(0x110)]=!0x1;}[_0x50aa3b(0x149)](_0x34cc00){const _0x34dcdb=_0x50aa3b;this[_0x34dcdb(0x178)](this[_0x34dcdb(0x105)],this[_0x34dcdb(0xfb)],_0x34cc00),this[_0x34dcdb(0xf4)](_0x34cc00);}[_0x50aa3b(0xf4)](_0x480a1e){const _0xceafa9=_0x50aa3b,_0x5963be=!_0x480a1e[_0xceafa9(0x17f)][_0xceafa9(0x139)]&&_0x480a1e[_0xceafa9(0x17f)][_0xceafa9(0x144)],_0x980089=_0x480a1e[_0xceafa9(0x145)][_0xceafa9(0x144)],_0x25d585=_0x480a1e[_0xceafa9(0x11a)][_0xceafa9(0x144)];this[_0xceafa9(0x160)][_0xceafa9(0x133)]=_0x5963be||_0x980089||_0x25d585;}[_0x50aa3b(0x153)](){const _0x2aea55=_0x50aa3b;this[_0x2aea55(0x137)]({'tag':_0x2aea55(0x17b),'attributes':{'class':[ko,_0x2aea55(0x104)]},'children':[{'tag':_0x2aea55(0x17b),'attributes':{'class':Eo},'children':this[_0x2aea55(0x168)]}]});}[_0x50aa3b(0x158)](){const _0x1c1cb1=_0x50aa3b;this[_0x1c1cb1(0x160)]['on'](_0x1c1cb1(0x155),()=>{const _0x3e0798=_0x1c1cb1;this[_0x3e0798(0x124)]();});}[_0x50aa3b(0x116)](_0x27e5a1){const _0xa57a76=_0x50aa3b,_0x5922c1=new _0x314fe6(_0x27e5a1);return _0x5922c1[_0xa57a76(0x100)]({'label':_0x1fb0bb(_0x27e5a1,_0xa57a76(0xff)),'class':Uo+'\x20'+Vo,'icon':_0x1caf9f,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x5922c1;}[_0x50aa3b(0x17d)](_0xb8a6ba){const _0x48c061=_0x50aa3b;return this[_0x48c061(0x132)](_0xb8a6ba,vo);}[_0x50aa3b(0x114)](_0x345afa){const _0x549982=_0x50aa3b,_0x5f15d1=this[_0x549982(0x132)](_0x345afa,Io);return this[_0x549982(0x138)](_0x5f15d1,_0x345afa),_0x5f15d1;}[_0x50aa3b(0x147)](_0x9fa319,_0x1aaaad){const _0x13c721=_0x50aa3b,_0xcd2eb2={'searchInputVisibleFrom':_0x1aaaad[_0x13c721(0x151)],'onBackToContext':()=>{const _0x6c92a4=_0x13c721;this[_0x6c92a4(0x15f)](),this[_0x6c92a4(0x105)][_0x6c92a4(0x15d)]({'target':this[_0x6c92a4(0x160)][_0x6c92a4(0x13f)],'limiter':this[_0x6c92a4(0x103)](),'positions':Ho});},'onResourceSelected':(_0x463a34,_0x583958)=>{const _0xa05ad2=_0x13c721;this[_0xa05ad2(0xf8)](_0xa05ad2(0x136),{'source':_0x463a34,'resource':_0x583958});},'onLoadSourceResources':_0x4a61a8=>{const _0x4ed3fc=_0x13c721;this[_0x4ed3fc(0xf8)](_0x4ed3fc(0x117),_0x4a61a8);},'onBalloonClosed':()=>{const _0x3ab139=_0x13c721;this[_0x3ab139(0x160)][_0x3ab139(0x110)]=!0x1;},'getLimiterElement':()=>this[_0x13c721(0x103)](),'getTargetElement':()=>this[_0x13c721(0x160)][_0x13c721(0x13f)]};return new _0x47334c(_0x9fa319,_0x1aaaad[_0x13c721(0x127)],_0xcd2eb2);}[_0x50aa3b(0x103)](){const _0x113cc6=_0x50aa3b;return this[_0x113cc6(0x13f)]?.[_0x113cc6(0x10d)]('.'+Mo)||document[_0x113cc6(0x112)];}[_0x50aa3b(0x132)](_0x366f40,_0x33eae4){const _0x4517c6=_0x50aa3b,_0x4ac0b6=new _0x1c9cbe(_0x366f40);return _0x4ac0b6[_0x4517c6(0x141)]({'attributes':{'class':_0x33eae4}}),this[_0x4517c6(0x127)][_0x4517c6(0x101)](_0x4ac0b6),_0x4ac0b6;}[_0x50aa3b(0x178)](_0x5d1473,_0xd71d79,_0x4ff088){const _0x183ff0=_0x50aa3b;if(_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x171)](),!_0x4ff088[_0x183ff0(0x17f)][_0x183ff0(0x139)]&&_0x4ff088[_0x183ff0(0x17f)][_0x183ff0(0x144)]){const _0x13f26a=this[_0x183ff0(0x177)](_0xd71d79,{'label':_0x1fb0bb(_0xd71d79,_0x183ff0(0x172)),'icon':_0x29d693});_0x13f26a['on'](_0x183ff0(0x155),()=>{const _0x3f2be5=_0x183ff0;this[_0x3f2be5(0xf8)](_0x3f2be5(0x173)),this[_0x3f2be5(0x11c)]();}),_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x13f26a);}if(_0x4ff088[_0x183ff0(0x145)][_0x183ff0(0x144)]){const _0x561c0b=this[_0x183ff0(0x177)](_0xd71d79,{'label':_0x1fb0bb(_0xd71d79,_0x183ff0(0x12d)),'icon':_0x3e19cf});_0x561c0b['on'](_0x183ff0(0x155),()=>{const _0x5a5317=_0x183ff0;this[_0x5a5317(0x11c)](),this[_0x5a5317(0x14e)](),this[_0x5a5317(0x126)][_0x5a5317(0x15d)]({'target':this[_0x5a5317(0x160)][_0x5a5317(0x13f)],'limiter':this[_0x5a5317(0x103)](),'positions':Ho}),this[_0x5a5317(0x142)][_0x5a5317(0x108)]();}),_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x561c0b);}if(_0x4ff088[_0x183ff0(0x11a)][_0x183ff0(0x144)]){const _0x221f9a=new _0x283fcb(_0xd71d79);_0x221f9a[_0x183ff0(0x100)]({'label':_0x1fb0bb(_0xd71d79,_0x183ff0(0x13d)),'icon':_0x44a71f,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x221f9a['on'](_0x183ff0(0x163),(_0x46c28b,_0x57dc48)=>{const _0x5ed8d8=_0x183ff0;this[_0x5ed8d8(0xf8)](_0x5ed8d8(0x179),_0x57dc48),this[_0x5ed8d8(0x11c)]();}),_0x221f9a[_0x183ff0(0x10c)]=!0x0,_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x221f9a);}for(const _0x110180 of _0x4ff088[_0x183ff0(0x12a)]){const _0x5da222=this[_0x183ff0(0x177)](_0xd71d79,{'label':_0x110180[_0x183ff0(0x128)],'icon':_0x110180[_0x183ff0(0x16a)]||_0x186b14,'type':_0x183ff0(0x111)});_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x5da222),_0x5da222['on'](_0x183ff0(0x155),()=>{const _0x494d49=_0x183ff0;this[_0x494d49(0x11c)](),this[_0x494d49(0x10b)](_0x110180);});}}[_0x50aa3b(0x138)](_0x44e142,_0x510dc0){const _0x339e56=_0x50aa3b;this[_0x339e56(0x142)]=new _0x42ee9b(_0x510dc0),this[_0x339e56(0x142)]['on'](_0x339e56(0x161),(_0x5f48e6,_0x2611ac)=>{const _0x5bbee9=_0x339e56;this[_0x5bbee9(0x176)](_0x2611ac);}),this[_0x339e56(0x142)]['on'](_0x339e56(0x14c),()=>{const _0x2c6f52=_0x339e56;this[_0x2c6f52(0x121)](),this[_0x2c6f52(0x15f)](),this[_0x2c6f52(0x105)][_0x2c6f52(0x15d)]({'target':this[_0x2c6f52(0x160)][_0x2c6f52(0x13f)],'limiter':this[_0x2c6f52(0x103)](),'positions':Ho});}),this[_0x339e56(0x142)]['on'](_0x339e56(0x11f),()=>{const _0x2e75e9=_0x339e56;this[_0x2e75e9(0x126)][_0x2e75e9(0xf3)]&&this[_0x2e75e9(0x126)][_0x2e75e9(0x15d)]({'target':this[_0x2e75e9(0x160)][_0x2e75e9(0x13f)],'limiter':this[_0x2e75e9(0x103)](),'positions':Ho});}),_0x44e142[_0x339e56(0x12b)][_0x339e56(0x101)](this[_0x339e56(0x142)]);}[_0x50aa3b(0x177)](_0x3603fc,_0x5684e6){const _0x1b128d=_0x50aa3b,_0x312bd6=_0x1b128d(0x111)===_0x5684e6[_0x1b128d(0x11b)]?new SourcesBalloonButtonView(_0x3603fc):new _0x314fe6(_0x3603fc);return _0x312bd6[_0x1b128d(0x100)]({'label':_0x5684e6[_0x1b128d(0x128)],'icon':_0x5684e6[_0x1b128d(0x16a)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x312bd6;}[_0x50aa3b(0x162)](){const _0x28dd63=_0x50aa3b;this[_0x28dd63(0xfe)](),this[_0x28dd63(0x113)]();}[_0x50aa3b(0x113)](){const _0x2b866c=_0x50aa3b;_0x323c3c({'emitter':this[_0x2b866c(0x126)],'contextElements':[this[_0x2b866c(0x126)][_0x2b866c(0x13f)]],'callback':()=>{const _0x4d9d84=_0x2b866c;this[_0x4d9d84(0x121)]();},'activator':()=>this[_0x2b866c(0x126)][_0x2b866c(0xf3)]});}[_0x50aa3b(0x16c)](_0x402cc1){const _0x2830b8=_0x50aa3b,_0x5ef567=this[_0x2830b8(0x152)];_0x5ef567[_0x2830b8(0x146)][_0x2830b8(0x110)]=_0x402cc1,_0x402cc1?_0x5ef567[_0x2830b8(0x14d)][_0x2830b8(0x123)]():_0x5ef567[_0x2830b8(0x14d)][_0x2830b8(0x107)]();}[_0x50aa3b(0xfe)](){const _0xd8b80c=_0x50aa3b,{balloonView:_0x292585,buttonView:_0x54397a,hideMethod:_0x5e37bc}=this[_0xd8b80c(0x152)];_0x323c3c({'emitter':_0x292585,'contextElements':[_0x292585[_0xd8b80c(0x13f)],_0x54397a[_0xd8b80c(0x13f)]],'callback':()=>{_0x5e37bc();},'activator':()=>_0x54397a[_0xd8b80c(0x110)]&&!this[_0xd8b80c(0x126)][_0xd8b80c(0xf3)]&&!this[_0xd8b80c(0x17a)][_0xd8b80c(0x129)]()});}[_0x50aa3b(0x156)](_0x168339,_0x4b41a6,_0x49ef6a=!0x1,_0x2218ca=!0x1){const _0x14e5c5=_0x50aa3b,_0x3a2b25=_0x14e5c5(0x174)===_0x4b41a6||!0x0===_0x168339[_0x14e5c5(0x13e)],_0x45f2cd=new _0x39520d(this[_0x14e5c5(0xfb)],_0x168339,_0x3a2b25,_0x49ef6a,_0x2218ca);return _0x3a2b25||_0x45f2cd['on'](_0x14e5c5(0x14b),()=>{const _0x341c2d=_0x14e5c5;this[_0x341c2d(0xf8)](_0x341c2d(0x164),_0x45f2cd['id']);}),_0x45f2cd;}[_0x50aa3b(0x16f)](_0x25bab5,_0x324e8f){const _0xf2af35=_0x50aa3b;_0x324e8f[_0xf2af35(0x101)](_0x25bab5,0x0);}[_0x50aa3b(0x125)](_0x4e9c9f,_0x58c3dc){const _0x466616=_0x50aa3b,_0x260aa4=_0x58c3dc[_0x466616(0x130)](_0x41c5e7=>_0x41c5e7['id']===_0x4e9c9f);_0x260aa4&&_0x58c3dc[_0x466616(0x154)](_0x260aa4);}[_0x50aa3b(0x124)](){const _0x39a1d5=_0x50aa3b;this[_0x39a1d5(0x160)][_0x39a1d5(0x110)]?this[_0x39a1d5(0x11c)]():(this[_0x39a1d5(0x15f)](),this[_0x39a1d5(0x105)][_0x39a1d5(0x15d)]({'target':this[_0x39a1d5(0x160)][_0x39a1d5(0x13f)],'limiter':this[_0x39a1d5(0x103)](),'positions':Ho}));}[_0x50aa3b(0x176)](_0x5f57d5){const _0x1e0e46=_0x50aa3b;this[_0x1e0e46(0x142)][_0x1e0e46(0x171)](),this[_0x1e0e46(0x121)](),this[_0x1e0e46(0xf8)](_0x1e0e46(0x166),_0x5f57d5);}}export class SourcesBalloonButtonView extends _0x314fe6{[_0x50aa3b(0xf5)];constructor(_0x5d2071){const _0x15fe35=_0x50aa3b;super(_0x5d2071),this[_0x15fe35(0x100)]({'withText':!0x0,'role':_0x15fe35(0x16e)}),this[_0x15fe35(0xf5)]=this[_0x15fe35(0x115)](),this[_0x15fe35(0x141)]({'attributes':{'class':[Ro]}});}[_0x50aa3b(0x109)](){const _0x1b83e0=_0x50aa3b;super[_0x1b83e0(0x109)](),this[_0x1b83e0(0x106)][_0x1b83e0(0x101)](this[_0x1b83e0(0xf5)]);}[_0x50aa3b(0x115)](){const _0x5679e8=_0x50aa3b,_0x44115e=new _0x14ed84();return _0x44115e[_0x5679e8(0x12b)]=_0xe95710,_0x44115e[_0x5679e8(0x141)]({'attributes':{'class':Ro+_0x5679e8(0x120)}}),_0x44115e;}}
23
+ const _0x2b35c2=_0xf53b;(function(_0x36b2a4,_0x25451a){const _0x37db6c=_0xf53b,_0x19c872=_0x36b2a4();while(!![]){try{const _0x3704ba=-parseInt(_0x37db6c(0x110))/0x1+parseInt(_0x37db6c(0xb8))/0x2*(parseInt(_0x37db6c(0xda))/0x3)+-parseInt(_0x37db6c(0xf8))/0x4+-parseInt(_0x37db6c(0x10e))/0x5*(parseInt(_0x37db6c(0xc1))/0x6)+-parseInt(_0x37db6c(0xb6))/0x7*(parseInt(_0x37db6c(0xe8))/0x8)+-parseInt(_0x37db6c(0xdb))/0x9*(-parseInt(_0x37db6c(0xf1))/0xa)+parseInt(_0x37db6c(0xe7))/0xb*(parseInt(_0x37db6c(0x12d))/0xc);if(_0x3704ba===_0x25451a)break;else _0x19c872['push'](_0x19c872['shift']());}catch(_0x1a330b){_0x19c872['push'](_0x19c872['shift']());}}}(_0x4c39,0x1b710));import{BalloonPanelView as _0x13281e,ButtonView as _0x1da79c,clickOutsideHandler as _0x1c6530,FileDialogButtonView as _0x43fc2d,IconView as _0x2d4303,View as _0x45c8b3}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1db9f9,IconDocument as _0x1b755e,IconDocumentOutline as _0x42627d,IconDropdownArrow as _0x1e5ab0,IconLink as _0x150029,IconPaperClip as _0x3b4d07}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0xf28186}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x559616}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x5d1079}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x2b6271}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x20f49f}from'./resources/aichatresourcesballoonview.js';function _0xf53b(_0x19d89c,_0x17248c){const _0x4c397d=_0x4c39();return _0xf53b=function(_0xf53b89,_0x4ef318){_0xf53b89=_0xf53b89-0xb0;let _0x4bb19b=_0x4c397d[_0xf53b89];return _0x4bb19b;},_0xf53b(_0x19d89c,_0x17248c);}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2b35c2(0xbd),_0x2b35c2(0x121),_0x2b35c2(0x13a),_0x2b35c2(0xbf),_0x2b35c2(0xe2),_0x2b35c2(0x136)];const Bo=_0x2b35c2(0xe1),bo=_0x2b35c2(0xd0),To=_0x2b35c2(0xea),Ao=_0x2b35c2(0x130),ko=_0x2b35c2(0xe4),Eo=_0x2b35c2(0x12e),vo=_0x2b35c2(0xd1),Vo=_0x2b35c2(0x11a),fo=_0x2b35c2(0xb1),Io=_0x2b35c2(0xec),Po=_0x2b35c2(0x139),Ro=_0x2b35c2(0xd8),So=[_0x13281e[_0x2b35c2(0x122)][_0x2b35c2(0xf6)],_0x13281e[_0x2b35c2(0x122)][_0x2b35c2(0xfa)],_0x13281e[_0x2b35c2(0x122)][_0x2b35c2(0xe6)],_0x13281e[_0x2b35c2(0x122)][_0x2b35c2(0x11c)],_0x13281e[_0x2b35c2(0x122)][_0x2b35c2(0x126)],_0x13281e[_0x2b35c2(0x122)][_0x2b35c2(0x137)]];export class AIChatContextPanelView extends _0x45c8b3{[_0x2b35c2(0x128)];[_0x2b35c2(0xf5)]=this[_0x2b35c2(0xd6)]();[_0x2b35c2(0xc9)]=this[_0x2b35c2(0xd6)]();[_0x2b35c2(0xdf)];[_0x2b35c2(0x113)];[_0x2b35c2(0xf9)];[_0x2b35c2(0x131)];[_0x2b35c2(0x127)];[_0x2b35c2(0x119)];[_0x2b35c2(0x105)];constructor(_0x5d604c,_0x4796e8){const _0x728973=_0x2b35c2;super(_0x5d604c),this[_0x728973(0x105)]=_0x4796e8[_0x728973(0x105)],this[_0x728973(0xf5)]=this[_0x728973(0xd6)](),this[_0x728973(0xc9)]=this[_0x728973(0xd6)](),this[_0x728973(0x128)]=this[_0x728973(0x10b)](_0x5d604c),this[_0x728973(0x113)]=this[_0x728973(0xfc)](_0x5d604c),this[_0x728973(0xf9)]=this[_0x728973(0xc6)](_0x5d604c),this[_0x728973(0x127)]=this[_0x728973(0xe5)](_0x5d604c,_0x4796e8);const _0x5803d7={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':fo,'controlsButton':Vo}};this[_0x728973(0xdf)]=new _0x5d1079(_0x5d604c,this[_0x728973(0xf5)],_0x5803d7,this[_0x728973(0x105)],this),this[_0x728973(0x119)]={'buttonView':this[_0x728973(0x128)],'balloonView':this[_0x728973(0x113)],'hideMethod':this[_0x728973(0x140)][_0x728973(0xd4)](this),'showMethod':this[_0x728973(0x111)][_0x728973(0xd4)](this)},this[_0x728973(0x123)](),this[_0x728973(0x129)]();}[_0x2b35c2(0xcb)](){const _0x4a251f=_0x2b35c2;super[_0x4a251f(0xcb)](),this[_0x4a251f(0xfd)](),this[_0x4a251f(0xdf)][_0x4a251f(0xb7)](this[_0x4a251f(0xb9)]),this[_0x4a251f(0xdf)][_0x4a251f(0x10d)]();}[_0x2b35c2(0x125)](){const _0x4d8402=_0x2b35c2;super[_0x4d8402(0x125)](),this[_0x4d8402(0xdf)][_0x4d8402(0x125)](),this[_0x4d8402(0x127)][_0x4d8402(0x125)]();}[_0x2b35c2(0x107)](_0x553628,_0x7a7eab){const _0x1a4c42=_0x2b35c2,_0x1e71b5=this[_0x1a4c42(0x132)](_0x553628,_0x1a4c42(0x13d),!0x0,_0x7a7eab);this[_0x1a4c42(0xb0)](_0x1e71b5,this[_0x1a4c42(0xf5)]),this[_0x1a4c42(0xdf)][_0x1a4c42(0x10d)]();}[_0x2b35c2(0xe2)](_0x2b1629){const _0x40dc1b=_0x2b35c2;this[_0x40dc1b(0xce)](_0x2b1629,this[_0x40dc1b(0xf5)]),this[_0x40dc1b(0xce)](_0x2b1629,this[_0x40dc1b(0xdf)][_0x40dc1b(0x101)]),this[_0x40dc1b(0xdf)][_0x40dc1b(0x10d)]();}[_0x2b35c2(0xb5)](_0x509987,_0x120078){const _0x171c75=_0x2b35c2;let _0x44e5dc=this[_0x171c75(0xf5)][_0x171c75(0x117)](_0x2d4b97=>_0x2d4b97['id']===_0x509987);_0x44e5dc||(_0x44e5dc=this[_0x171c75(0xdf)][_0x171c75(0x101)][_0x171c75(0x117)](_0x388801=>_0x388801['id']===_0x509987)),_0x44e5dc&&(_0x44e5dc[_0x171c75(0xbc)]=_0x120078);}[_0x2b35c2(0xcd)](_0x4deb0a){const _0x32ab5f=_0x2b35c2;this[_0x32ab5f(0xc9)][_0x32ab5f(0x103)]();for(const _0x4772e6 of _0x4deb0a){const _0x30e2d1=this[_0x32ab5f(0x132)](_0x4772e6,_0x32ab5f(0x102),!0x1,!0x1);this[_0x32ab5f(0xb0)](_0x30e2d1,this[_0x32ab5f(0xc9)]);}}[_0x2b35c2(0x10a)](){const _0x40bd57=_0x2b35c2;this[_0x40bd57(0xf5)][_0x40bd57(0x103)](),this[_0x40bd57(0xdf)][_0x40bd57(0x103)]();}[_0x2b35c2(0xfe)](){const _0x5308d2=_0x2b35c2;this[_0x5308d2(0xc9)][_0x5308d2(0x103)]();}[_0x2b35c2(0xc3)](_0x2d7d4a,_0x16a40f,_0x18f60b){const _0x4707b3=_0x2b35c2;this[_0x4707b3(0x127)][_0x4707b3(0xc3)](_0x2d7d4a,_0x16a40f,_0x18f60b);}[_0x2b35c2(0x140)](){const _0x1216a2=_0x2b35c2;this[_0x1216a2(0xe3)](!0x1);}[_0x2b35c2(0x111)](){const _0x2ce1f4=_0x2b35c2;this[_0x2ce1f4(0xe3)](!0x0);}[_0x2b35c2(0x106)](){const _0xaa8eb7=_0x2b35c2;this[_0xaa8eb7(0xf9)][_0xaa8eb7(0x13f)](),this[_0xaa8eb7(0x128)][_0xaa8eb7(0xc4)]=!0x1,this[_0xaa8eb7(0x131)]&&this[_0xaa8eb7(0x131)][_0xaa8eb7(0x103)]();}[_0x2b35c2(0xf3)](){const _0x29b93c=_0x2b35c2;this[_0x29b93c(0xf9)][_0x29b93c(0x12a)](),this[_0x29b93c(0x128)][_0x29b93c(0xc4)]=!0x0;}[_0x2b35c2(0x133)](_0x4091b2){const _0x1aa73a=_0x2b35c2;this[_0x1aa73a(0x127)][_0x1aa73a(0x112)](_0x4091b2),this[_0x1aa73a(0x128)][_0x1aa73a(0xc4)]=!0x0;}[_0x2b35c2(0x109)](_0x4b8e47,_0x27ad9f,_0x43805b,_0x5db4ab){const _0x1aecae=_0x2b35c2;this[_0x1aecae(0x127)][_0x1aecae(0x109)](_0x4b8e47,_0x43805b,_0x5db4ab);}[_0x2b35c2(0xff)](_0x4d3e58){const _0x5da7ef=_0x2b35c2;this[_0x5da7ef(0x127)][_0x5da7ef(0xff)](_0x4d3e58),this[_0x5da7ef(0x128)][_0x5da7ef(0xc4)]=!0x1;}[_0x2b35c2(0x114)](_0x344a2f){const _0x39062b=_0x2b35c2;this[_0x39062b(0x13e)](this[_0x39062b(0x113)],this[_0x39062b(0xb4)],_0x344a2f),this[_0x39062b(0x12b)](_0x344a2f);}[_0x2b35c2(0x12b)](_0x2a7c06){const _0x2c9ce2=_0x2b35c2,_0x4ee95d=!_0x2a7c06[_0x2c9ce2(0xc5)][_0x2c9ce2(0xb2)]&&_0x2a7c06[_0x2c9ce2(0xc5)][_0x2c9ce2(0xba)],_0x234dbb=_0x2a7c06[_0x2c9ce2(0xdd)][_0x2c9ce2(0xba)],_0x91fa81=_0x2a7c06[_0x2c9ce2(0xbe)][_0x2c9ce2(0xba)];this[_0x2c9ce2(0x128)][_0x2c9ce2(0xfb)]=_0x4ee95d||_0x234dbb||_0x91fa81;}[_0x2b35c2(0x123)](){const _0x47c393=_0x2b35c2;this[_0x47c393(0x124)]({'tag':_0x47c393(0x11d),'attributes':{'class':[Bo,_0x47c393(0x115)]},'children':[{'tag':_0x47c393(0x11d),'attributes':{'class':bo},'children':this[_0x47c393(0xf5)]}]});}[_0x2b35c2(0x129)](){const _0x6877c2=_0x2b35c2;this[_0x6877c2(0x128)]['on'](_0x6877c2(0xc0),()=>{const _0x126f64=_0x6877c2;this[_0x126f64(0x12f)]();});}[_0x2b35c2(0x10b)](_0x48c3ba){const _0x2d6d53=_0x2b35c2,_0x133add=new _0x1da79c(_0x48c3ba);return _0x133add[_0x2d6d53(0xc7)]({'label':_0x2b6271(_0x48c3ba,_0x2d6d53(0x100)),'class':Vo+'\x20'+Ao,'icon':_0x3b4d07,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x133add;}[_0x2b35c2(0xfc)](_0x1bbc42){const _0x99e252=_0x2b35c2;return this[_0x99e252(0x118)](_0x1bbc42,To);}[_0x2b35c2(0xc6)](_0x2003b3){const _0xab5a9a=_0x2b35c2,_0x28f2cb=this[_0xab5a9a(0x118)](_0x2003b3,ko);return this[_0xab5a9a(0x11e)](_0x28f2cb,_0x2003b3),_0x28f2cb;}[_0x2b35c2(0xe5)](_0x4d74c8,_0x5bc2fb){const _0x5e1135=_0x2b35c2,_0x32696b={'searchInputVisibleFrom':_0x5bc2fb[_0x5e1135(0xef)],'onBackToContext':()=>{const _0x2c5cb7=_0x5e1135;this[_0x2c5cb7(0x111)](),this[_0x2c5cb7(0x113)][_0x2c5cb7(0x11b)]({'target':this[_0x2c5cb7(0x128)][_0x2c5cb7(0xb9)],'limiter':this[_0x2c5cb7(0x135)](),'positions':So});},'onResourceSelected':(_0x31a4b3,_0x230580)=>{const _0x4437f4=_0x5e1135;this[_0x4437f4(0xc2)](_0x4437f4(0xbf),{'source':_0x31a4b3,'resource':_0x230580});},'onLoadSourceResources':_0x540ad8=>{const _0x26362a=_0x5e1135;this[_0x26362a(0xc2)](_0x26362a(0x136),_0x540ad8);},'onBalloonClosed':()=>{const _0x2a5b3f=_0x5e1135;this[_0x2a5b3f(0x128)][_0x2a5b3f(0xc4)]=!0x1;},'getLimiterElement':()=>this[_0x5e1135(0x135)](),'getTargetElement':()=>this[_0x5e1135(0x128)][_0x5e1135(0xb9)]};return new _0x20f49f(_0x4d74c8,_0x5bc2fb[_0x5e1135(0x105)],_0x32696b);}[_0x2b35c2(0x135)](){const _0x2da917=_0x2b35c2;return this[_0x2da917(0xb9)]?.[_0x2da917(0xd5)]('.'+Ro)||document[_0x2da917(0xf0)];}[_0x2b35c2(0x118)](_0x53a8ff,_0x218a3e){const _0x37308d=_0x2b35c2,_0x379398=new _0x13281e(_0x53a8ff);return _0x379398[_0x37308d(0x116)]({'attributes':{'class':_0x218a3e}}),this[_0x37308d(0x105)][_0x37308d(0xde)](_0x379398),_0x379398;}[_0x2b35c2(0x13e)](_0x575636,_0x1ed7be,_0x8c6b5){const _0xab69bb=_0x2b35c2;if(_0x575636[_0xab69bb(0x138)][_0xab69bb(0x103)](),!_0x8c6b5[_0xab69bb(0xc5)][_0xab69bb(0xb2)]&&_0x8c6b5[_0xab69bb(0xc5)][_0xab69bb(0xba)]){const _0x4d63c2=this[_0xab69bb(0xcc)](_0x1ed7be,{'label':_0x2b6271(_0x1ed7be,_0xab69bb(0xcf)),'icon':_0x1b755e});_0x4d63c2['on'](_0xab69bb(0xc0),()=>{const _0x131319=_0xab69bb;this[_0x131319(0xc2)](_0x131319(0xbd)),this[_0x131319(0x140)]();}),_0x575636[_0xab69bb(0x138)][_0xab69bb(0xde)](_0x4d63c2);}if(_0x8c6b5[_0xab69bb(0xdd)][_0xab69bb(0xba)]){const _0x418b70=this[_0xab69bb(0xcc)](_0x1ed7be,{'label':_0x2b6271(_0x1ed7be,_0xab69bb(0x134)),'icon':_0x150029});_0x418b70['on'](_0xab69bb(0xc0),()=>{const _0xb549f4=_0xab69bb;this[_0xb549f4(0x140)](),this[_0xb549f4(0xf3)](),this[_0xb549f4(0xf9)][_0xb549f4(0x11b)]({'target':this[_0xb549f4(0x128)][_0xb549f4(0xb9)],'limiter':this[_0xb549f4(0x135)](),'positions':So}),this[_0xb549f4(0x131)][_0xb549f4(0xf2)]();}),_0x575636[_0xab69bb(0x138)][_0xab69bb(0xde)](_0x418b70);}if(_0x8c6b5[_0xab69bb(0xbe)][_0xab69bb(0xba)]){const _0x558605=new _0x43fc2d(_0x1ed7be);_0x558605[_0xab69bb(0xc7)]({'label':_0x2b6271(_0x1ed7be,_0xab69bb(0xb3)),'icon':_0x1db9f9,'withText':!0x0,'tooltip':!0x0,'class':Eo,'allowMultipleFiles':!0x0}),_0x558605['on'](_0xab69bb(0x13c),(_0x299e94,_0x4b809b)=>{const _0x396e11=_0xab69bb;this[_0x396e11(0xc2)](_0x396e11(0x121),_0x4b809b),this[_0x396e11(0x140)]();}),_0x558605[_0xab69bb(0xd3)]=!0x0,_0x575636[_0xab69bb(0x138)][_0xab69bb(0xde)](_0x558605);}for(const _0x5ab062 of _0x8c6b5[_0xab69bb(0xf4)]){const _0x2aee57=this[_0xab69bb(0xcc)](_0x1ed7be,{'label':_0x5ab062[_0xab69bb(0xeb)],'icon':_0x5ab062[_0xab69bb(0xbb)]||_0x42627d,'type':_0xab69bb(0x13b)});_0x575636[_0xab69bb(0x138)][_0xab69bb(0xde)](_0x2aee57),_0x2aee57['on'](_0xab69bb(0xc0),()=>{const _0xa021d0=_0xab69bb;this[_0xa021d0(0x140)](),this[_0xa021d0(0x133)](_0x5ab062);});}}[_0x2b35c2(0x11e)](_0xd2378a,_0x1597c9){const _0x331af3=_0x2b35c2;this[_0x331af3(0x131)]=new _0x559616(_0x1597c9),this[_0x331af3(0x131)]['on'](_0x331af3(0xc8),(_0x5cfb53,_0x21dcd2)=>{const _0x565959=_0x331af3;this[_0x565959(0xee)](_0x21dcd2);}),this[_0x331af3(0x131)]['on'](_0x331af3(0x12c),()=>{const _0x19e956=_0x331af3;this[_0x19e956(0x106)](),this[_0x19e956(0x111)](),this[_0x19e956(0x113)][_0x19e956(0x11b)]({'target':this[_0x19e956(0x128)][_0x19e956(0xb9)],'limiter':this[_0x19e956(0x135)](),'positions':So});}),this[_0x331af3(0x131)]['on'](_0x331af3(0x104),()=>{const _0x2775ab=_0x331af3;this[_0x2775ab(0xf9)][_0x2775ab(0x10f)]&&this[_0x2775ab(0xf9)][_0x2775ab(0x11b)]({'target':this[_0x2775ab(0x128)][_0x2775ab(0xb9)],'limiter':this[_0x2775ab(0x135)](),'positions':So});}),_0xd2378a[_0x331af3(0x138)][_0x331af3(0xde)](this[_0x331af3(0x131)]);}[_0x2b35c2(0xcc)](_0x5167b3,_0x4423cd){const _0x3954b2=_0x2b35c2,_0x46d02b=_0x3954b2(0x13b)===_0x4423cd[_0x3954b2(0xf7)]?new SourcesBalloonButtonView(_0x5167b3):new _0x1da79c(_0x5167b3);return _0x46d02b[_0x3954b2(0xc7)]({'label':_0x4423cd[_0x3954b2(0xeb)],'icon':_0x4423cd[_0x3954b2(0xbb)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Eo}),_0x46d02b;}[_0x2b35c2(0xfd)](){const _0x1d6d8a=_0x2b35c2;this[_0x1d6d8a(0xd2)](),this[_0x1d6d8a(0xed)]();}[_0x2b35c2(0xed)](){const _0x1bab5a=_0x2b35c2;_0x1c6530({'emitter':this[_0x1bab5a(0xf9)],'contextElements':[this[_0x1bab5a(0xf9)][_0x1bab5a(0xb9)]],'callback':()=>{const _0xd53df2=_0x1bab5a;this[_0xd53df2(0x106)]();},'activator':()=>this[_0x1bab5a(0xf9)][_0x1bab5a(0x10f)]});}[_0x2b35c2(0xe3)](_0x38282f){const _0x2d3625=_0x2b35c2,_0x36c978=this[_0x2d3625(0x119)];_0x36c978[_0x2d3625(0x141)][_0x2d3625(0xc4)]=_0x38282f,_0x38282f?_0x36c978[_0x2d3625(0xd7)][_0x2d3625(0x12a)]():_0x36c978[_0x2d3625(0xd7)][_0x2d3625(0x13f)]();}[_0x2b35c2(0xd2)](){const _0x2ea125=_0x2b35c2,{balloonView:_0x11af49,buttonView:_0x3936b6,hideMethod:_0x25bbcd}=this[_0x2ea125(0x119)];_0x1c6530({'emitter':_0x11af49,'contextElements':[_0x11af49[_0x2ea125(0xb9)],_0x3936b6[_0x2ea125(0xb9)]],'callback':()=>{_0x25bbcd();},'activator':()=>_0x3936b6[_0x2ea125(0xc4)]&&!this[_0x2ea125(0xf9)][_0x2ea125(0x10f)]&&!this[_0x2ea125(0x127)][_0x2ea125(0xe0)]()});}[_0x2b35c2(0x132)](_0x2a1d06,_0x14f59e,_0x10c7cf=!0x1,_0x309937=!0x1){const _0x8e106=_0x2b35c2,_0x5cb143=_0x8e106(0x102)===_0x14f59e||!0x0===_0x2a1d06[_0x8e106(0x120)],_0x9f2157=new _0xf28186(this[_0x8e106(0xb4)],_0x2a1d06,_0x5cb143,_0x10c7cf,_0x309937);return _0x5cb143||_0x9f2157['on'](_0x8e106(0x108),()=>{const _0x51a9fd=_0x8e106;this[_0x51a9fd(0xc2)](_0x51a9fd(0xe2),_0x9f2157['id']);}),_0x9f2157;}[_0x2b35c2(0xb0)](_0x52bed4,_0xf1b7d4){const _0x162f5e=_0x2b35c2;_0xf1b7d4[_0x162f5e(0xde)](_0x52bed4,0x0);}[_0x2b35c2(0xce)](_0xa0f89f,_0x421bfb){const _0xfa319b=_0x2b35c2,_0x5c6262=_0x421bfb[_0xfa319b(0x117)](_0x5bdcfb=>_0x5bdcfb['id']===_0xa0f89f);_0x5c6262&&_0x421bfb[_0xfa319b(0xdc)](_0x5c6262);}[_0x2b35c2(0x12f)](){const _0x4ab756=_0x2b35c2;this[_0x4ab756(0x128)][_0x4ab756(0xc4)]?this[_0x4ab756(0x140)]():(this[_0x4ab756(0x111)](),this[_0x4ab756(0x113)][_0x4ab756(0x11b)]({'target':this[_0x4ab756(0x128)][_0x4ab756(0xb9)],'limiter':this[_0x4ab756(0x135)](),'positions':So}));}[_0x2b35c2(0xee)](_0x2722e1){const _0x47385a=_0x2b35c2;this[_0x47385a(0x131)][_0x47385a(0x103)](),this[_0x47385a(0x106)](),this[_0x47385a(0xc2)](_0x47385a(0x13a),_0x2722e1);}}export class SourcesBalloonButtonView extends _0x1da79c{[_0x2b35c2(0xca)];constructor(_0x2a5f09){const _0x38549a=_0x2b35c2;super(_0x2a5f09),this[_0x38549a(0xc7)]({'withText':!0x0,'role':_0x38549a(0xe9)}),this[_0x38549a(0xca)]=this[_0x38549a(0x10c)](),this[_0x38549a(0x116)]({'attributes':{'class':[vo]}});}[_0x2b35c2(0xcb)](){const _0x4f807c=_0x2b35c2;super[_0x4f807c(0xcb)](),this[_0x4f807c(0x11f)][_0x4f807c(0xde)](this[_0x4f807c(0xca)]);}[_0x2b35c2(0x10c)](){const _0x39be9e=_0x2b35c2,_0x50d7b0=new _0x2d4303();return _0x50d7b0[_0x39be9e(0x138)]=_0x1e5ab0,_0x50d7b0[_0x39be9e(0x116)]({'attributes':{'class':vo+_0x39be9e(0xd9)}}),_0x50d7b0;}}function _0x4c39(){const _0x5cdb25=['refreshBalloon','bodyCollection','hideUrlBalloonPanel','addContextItem','removeContextItemChip','populateSourceResourceBalloon','clearCurrentContextItems','_createAddContextButtonView','_createArrowView','reorganizeChips','95nddgbM','isVisible','59646AHcPrB','showAddContextBalloonPanel','showSourceResourcesBalloon','_addContextBalloonPanelView','setAddContextOptions','ck-reset_all-excluded','extendTemplate','find','_createBaseBalloonPanel','_addContextBalloonConfig','ck-ai-chat-controls-button','pin','southArrowNorthWest','div','_addUrlContent','children','isReadOnly','addFileToContext','defaultPositions','_setupTemplate','setTemplate','destroy','southArrowNorth','_resourcesBalloonView','addContextButtonView','_bindEventHandlers','show','_setAddContextButtonEnabled','cancel','52188ZZXcvM','ck-ai-chat-context-controls__balloon-button','_handleAddContextButtonClick','ck-ai-chat-context-controls__add-context-button','_urlInputView','_createContextButton','_showSourceResourcesBalloon','AI_CHAT_CONTEXT_URL_LABEL','_getLimiterElement','loadSourceResources','southArrowNorthEast','content','ck-ai-chat-context-controls__show-more-balloon-panel','addUrlToContext','source','done','current','_setBalloonPanelContent','hide','hideAddContextBalloonPanel','buttonView','_addContextToCollection','ck-ai-chat-context-chips-wrapper-balloon','isHidden','AI_CHAT_CONTEXT_FILE_LABEL','locale','setContextItemLoading','266xyUAfW','setContainerElement','136RbhzKa','element','enabled','icon','isLoading','addDocumentToContext','files','addResourceToContext','execute','17652rjdvxd','fire','updateResourceState','isOn','document','_createUrlBalloonPanelView','set','submitUrl','_conversationContextsChips','arrowView','render','_createBalloonButton','setConversationContext','_removeContextFromCollection','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-context-controls__balloon-button-source','_setupAddContextBalloonClickOutsideHandler','tooltip','bind','closest','createCollection','balloonView','ck-ai-chat','__arrow','6033LbbKyG','144LWDLmv','remove','urls','add','_overflowManager','isAnyResourceBalloonVisible','ck-ai-chat-context-controls','removeContextItem','_toggleAddContextBalloon','ck-ai-chat-context-controls__url-balloon-panel','_createResourcesBalloonView','northArrowSouthEast','341yMpaLH','21832mFgcVZ','menuitem','ck-ai-chat-context-controls__add-context-balloon-panel','label','ck-ai-chat-controls_context_show-more-button','_setupUrlBalloonClickOutsideHandler','_handleUrlSubmit','searchInputVisibleFrom','body','52580BAZeFt','focus','showUrlBalloonPanel','sources','_currentContextsChips','northArrowSouthWest','type','96196DLwmnM','_urlBalloonPanelView','northArrowSouth','isEnabled','_createAddContextBalloonPanelView','_setupAllBalloonClickOutsideHandlers','clearConversationContextItems','closeSourceResourceBalloon','AI_CHAT_CONTEXT_ADD_CONTEXT','overflowChips','conversation','clear'];_0x4c39=function(){return _0x5cdb25;};return _0x4c39();}