@ckeditor/ckeditor5-ai 47.2.0-alpha.7 → 47.2.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 (127) 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/model/aichatmodels.js +1 -1
  35. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  36. package/src/aichat/ui/aichatfeedview.js +1 -1
  37. package/src/aichat/ui/aichatheaderview.js +1 -1
  38. package/src/aichat/ui/aichatview.js +1 -1
  39. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  43. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  46. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  51. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  58. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  59. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  60. package/src/aichat/utils/eventnames.js +1 -1
  61. package/src/aichat/utils/promisequeue.js +1 -1
  62. package/src/aichathistory/aichathistory.js +1 -1
  63. package/src/aichathistory/aichathistorycontroller.js +1 -1
  64. package/src/aichathistory/aichathistoryui.js +1 -1
  65. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  66. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  67. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  68. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  69. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  70. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  71. package/src/aicore/aiconnector.js +1 -1
  72. package/src/aicore/aiediting.js +1 -1
  73. package/src/aicore/model/aicapabilities.js +1 -1
  74. package/src/aicore/model/aiinteraction.js +1 -1
  75. package/src/aicore/model/aimodels.js +1 -1
  76. package/src/aicore/model/aireply.js +1 -1
  77. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  78. package/src/aicore/pipeline/airesponseparser.js +2 -2
  79. package/src/aicore/ui/aidisclaimerview.js +1 -1
  80. package/src/aicore/ui/aiskeleton.js +1 -1
  81. package/src/aicore/ui/aispinner.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  86. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  87. package/src/aicore/utils/createresizebutton.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/aieditorintegration/aieditorintegration.js +1 -1
  95. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  97. package/src/aiquickactions/aiquickactions.js +1 -1
  98. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  99. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  100. package/src/aiquickactions/aiquickactionsui.js +1 -1
  101. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  104. package/src/aireviewmode/aireviewmode.js +1 -1
  105. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  106. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  107. package/src/aireviewmode/aireviewmodeui.js +1 -1
  108. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  109. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  110. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  112. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  113. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  117. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  118. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  122. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  123. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  124. package/src/aitabs/aitabs.js +1 -1
  125. package/src/aitabs/tabs/aitabsview.js +1 -1
  126. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  127. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x589bec=_0x1726;(function(_0x38d4d3,_0x3f9dd7){const _0x532159=_0x1726,_0x31c67b=_0x38d4d3();while(!![]){try{const _0x34d3cb=parseInt(_0x532159(0x218))/0x1*(-parseInt(_0x532159(0x1f7))/0x2)+parseInt(_0x532159(0x1f3))/0x3+parseInt(_0x532159(0x206))/0x4*(-parseInt(_0x532159(0x1de))/0x5)+-parseInt(_0x532159(0x1ee))/0x6*(parseInt(_0x532159(0x213))/0x7)+-parseInt(_0x532159(0x1d2))/0x8+-parseInt(_0x532159(0x208))/0x9*(-parseInt(_0x532159(0x216))/0xa)+-parseInt(_0x532159(0x1e7))/0xb*(-parseInt(_0x532159(0x1f5))/0xc);if(_0x34d3cb===_0x3f9dd7)break;else _0x31c67b['push'](_0x31c67b['shift']());}catch(_0xff7c1e){_0x31c67b['push'](_0x31c67b['shift']());}}}(_0x3cb7,0x9374f));import{ButtonView as _0x491f7f,clickOutsideHandler as _0x4b5afb,View as _0x1b6ddb}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x4d7125}from'./controls/aichatpromptinputview.js';function _0x3cb7(){const _0x763121=['855996zXzkhf','setPlaceholderText','122670KhMpip','locale','div','updateResourceState','reset','removeContextItem','set','execute','ck-hidden','resetMessageInput','setModelList','7EDOGdd','ck-ai-chat-controls__start-new-chat-button','_modelUnavailableMessageView','660RDhdPo','toggleReasoning','43BnUeHf','isLoading','setAddContextOptions','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','_displayedModels','focusPromptInput','agent','setContextItemLoading','addContextItem','find','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','populateSourceResourceBalloon','startsWith','1548616YKCqqE','bindTemplate','isModelAvailable','element','setIsUploadInProgress','closeSourceResourceBalloon','abortPromptStream','ck-ai-chat-controls','focus','clearConversationContextItems','bodyCollection','_createLoaderView','20KcNhrC','_createPromptInputView','ck-ai-chat-controls-model-unavailable-message','toggleWebSearch','clearConversationContextUI','setModel','setReasoning','setWebSearch','_createModelUnavailableMessageView','11YrnSmo','_promptCapabilitiesView','form','sendUserMessage','_shouldRestorePromptInputFocus','selectModel','delegate','487218vCkmKo','addContextButtonView','_createPromptCapabilitiesView','low','_contextPanelView','3020067RzpoeI','_createContextPanelView','1498668zLawej','contextResourcesSearchInputVisibleFrom','13786JrAIIL','setConversationContext','_promptInputView','_handlePromptInputFocus','clearCurrentContextItems','disableModelSelector','startConversation','_loaderView','setInputPlaceholder','clearPendingContextUI','enableModelSelector','change:isLoading','setTemplate','ck-ai-chat-controls-disabled','isDisabled'];_0x3cb7=function(){return _0x763121;};return _0x3cb7();}import{AIChatPromptCapabilitiesView as _0x134960}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x1ae562,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x19e09b}from'./controls/aichatcontextpanelview.js';function _0x1726(_0x15cc67,_0x470ebe){const _0x3cb7cb=_0x3cb7();return _0x1726=function(_0x172662,_0x190850){_0x172662=_0x172662-0x1cc;let _0x48a1ee=_0x3cb7cb[_0x172662];return _0x48a1ee;},_0x1726(_0x15cc67,_0x470ebe);}import{AIChatControlsLoaderView as _0x1361a6}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x425536}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x1b6ddb{[_0x589bec(0x21c)]=[];[_0x589bec(0x1f2)];[_0x589bec(0x1f9)];[_0x589bec(0x1e8)];[_0x589bec(0x1fe)];[_0x589bec(0x215)];[_0x589bec(0x1eb)];constructor(_0x26aab3,_0x1778a3){const _0x10770a=_0x589bec;super(_0x26aab3),this[_0x10770a(0x1f2)]=this[_0x10770a(0x1f4)](_0x26aab3,{'bodyCollection':_0x1778a3[_0x10770a(0x1dc)],'searchInputVisibleFrom':_0x1778a3[_0x10770a(0x1f6)]}),this[_0x10770a(0x1f9)]=this[_0x10770a(0x1df)](_0x26aab3),this[_0x10770a(0x1e8)]=this[_0x10770a(0x1f0)](_0x26aab3),this[_0x10770a(0x1fe)]=this[_0x10770a(0x1dd)](_0x26aab3),this[_0x10770a(0x215)]=this[_0x10770a(0x1e6)](_0x26aab3),this[_0x10770a(0x1eb)]=!0x1,this[_0x10770a(0x1f9)][_0x10770a(0x1ed)](_0x10770a(0x1ea))['to'](this),this[_0x10770a(0x1fe)][_0x10770a(0x1ed)](_0x10770a(0x1d8))['to'](this),this[_0x10770a(0x1e8)][_0x10770a(0x1ed)](_0x10770a(0x1e1))['to'](this),this[_0x10770a(0x1e8)][_0x10770a(0x1ed)](_0x10770a(0x217))['to'](this),this[_0x10770a(0x1e8)][_0x10770a(0x1ed)](_0x10770a(0x1ec))['to'](this),this[_0x10770a(0x1f2)][_0x10770a(0x1ed)](..._0x19e09b)['to'](this),this[_0x10770a(0x20e)](_0x10770a(0x1d4),!0x0),this[_0x10770a(0x20e)](_0x10770a(0x205),!0x1);const _0x5c19e8=this[_0x10770a(0x1d3)];this[_0x10770a(0x203)]({'tag':_0x10770a(0x1e9),'attributes':{'class':['ck',_0x10770a(0x1d9),_0x5c19e8['if'](_0x10770a(0x205),_0x10770a(0x204))]},'children':[{'tag':_0x10770a(0x20a),'attributes':{'class':[_0x5c19e8['if'](_0x10770a(0x219),_0x10770a(0x210),_0x309014=>_0x309014||!this[_0x10770a(0x1d4)]),_0x5c19e8['if'](_0x10770a(0x1d4),_0x10770a(0x210),_0x49cd0a=>!_0x49cd0a||this[_0x10770a(0x219)])]},'children':[this[_0x10770a(0x1f2)],this[_0x10770a(0x1f9)],this[_0x10770a(0x1e8)]]},{'tag':_0x10770a(0x20a),'attributes':{'class':[_0x5c19e8['if'](_0x10770a(0x219),_0x10770a(0x210),_0xab87cf=>!_0xab87cf)]},'children':[this[_0x10770a(0x1fe)]]},{'tag':_0x10770a(0x20a),'attributes':{'class':[_0x5c19e8['if'](_0x10770a(0x1d4),_0x10770a(0x210),_0x38bc13=>_0x38bc13)]},'children':[this[_0x10770a(0x215)]]}]}),_0x4b5afb({'emitter':this[_0x10770a(0x1f9)],'activator':()=>this[_0x10770a(0x219)],'contextElements':()=>[this[_0x10770a(0x1d5)]],'callback':()=>{const _0x2bcd23=_0x10770a;this[_0x2bcd23(0x1eb)]=!0x1;}}),this['on'](_0x10770a(0x202),this[_0x10770a(0x1fa)],{'priority':_0x10770a(0x1f1)});}[_0x589bec(0x1f4)](_0x418694,_0x3160e3){return new _0x1ae562(_0x418694,_0x3160e3);}[_0x589bec(0x1df)](_0x15245a){const _0x36c7b8=_0x589bec;return new _0x4d7125(_0x15245a,this[_0x36c7b8(0x1f2)][_0x36c7b8(0x1ef)]);}[_0x589bec(0x1f0)](_0x134f0b){return new _0x134960(_0x134f0b);}[_0x589bec(0x1dd)](_0x182950){return new _0x1361a6(_0x182950);}[_0x589bec(0x1e6)](_0x46acf0){const _0x4b5d52=_0x589bec,_0x4bf262=new gs(_0x46acf0);return _0x4bf262[_0x4b5d52(0x1ed)](_0x4b5d52(0x1fd))['to'](this),_0x4bf262;}[_0x589bec(0x1fa)](_0x4a1ed6,_0x4715d3,_0x68fa4d){const _0x1eb8ef=_0x589bec;_0x68fa4d?this[_0x1eb8ef(0x1eb)]=!0x0:this[_0x1eb8ef(0x1eb)]&&this[_0x1eb8ef(0x1f9)][_0x1eb8ef(0x1da)]();}[_0x589bec(0x1cd)](_0x18418e,_0x855fd9){const _0x4c1c7f=_0x589bec;this[_0x4c1c7f(0x1f2)][_0x4c1c7f(0x1cd)](_0x18418e,_0x855fd9);}[_0x589bec(0x20d)](_0x3b38c7){const _0x2435f3=_0x589bec;this[_0x2435f3(0x1f2)][_0x2435f3(0x20d)](_0x3b38c7);}[_0x589bec(0x1cc)](_0x250422,_0x1e0a49){const _0x49ca49=_0x589bec;this[_0x49ca49(0x1f2)][_0x49ca49(0x1cc)](_0x250422,_0x1e0a49);}[_0x589bec(0x1d6)](_0x1a8efc){const _0xe35536=_0x589bec;this[_0xe35536(0x1f9)][_0xe35536(0x1d6)](_0x1a8efc);}[_0x589bec(0x1f8)](_0x5ade9f){const _0x439abf=_0x589bec;this[_0x439abf(0x1f2)][_0x439abf(0x1f8)](_0x5ade9f);}[_0x589bec(0x200)](){const _0x181580=_0x589bec;this[_0x181580(0x1f2)][_0x181580(0x1fb)]();}[_0x589bec(0x1e2)](){const _0x239015=_0x589bec;this[_0x239015(0x1f2)][_0x239015(0x1db)]();}[_0x589bec(0x20b)](_0x305b24,_0x171d96,_0x4c97e4){const _0x53c649=_0x589bec;this[_0x53c649(0x1f2)][_0x53c649(0x20b)](_0x305b24,_0x171d96,_0x4c97e4);}[_0x589bec(0x1e5)](_0x234482){const _0x4f98fe=_0x589bec;this[_0x4f98fe(0x1e8)][_0x4f98fe(0x1e5)](_0x234482);}[_0x589bec(0x1e4)](_0x510704){const _0x2f80a4=_0x589bec;this[_0x2f80a4(0x1e8)][_0x2f80a4(0x1e4)](_0x510704);}[_0x589bec(0x211)](){const _0x413dc7=_0x589bec;this[_0x413dc7(0x1f9)][_0x413dc7(0x20c)]();}[_0x589bec(0x21a)](_0x2709b5){const _0x1d5e3a=_0x589bec;this[_0x1d5e3a(0x1f2)][_0x1d5e3a(0x21a)](_0x2709b5);}[_0x589bec(0x1ff)](_0x195d86){const _0x1e11bd=_0x589bec;this[_0x1e11bd(0x1f9)][_0x1e11bd(0x207)](_0x195d86);}[_0x589bec(0x212)](_0x4ab3f4,_0x27a27e){const _0x1f43b4=_0x589bec;this[_0x1f43b4(0x21c)]=_0x4ab3f4,this[_0x1f43b4(0x1e8)][_0x1f43b4(0x212)](_0x4ab3f4,_0x27a27e);}[_0x589bec(0x1e3)](_0x3f35a0){const _0x3db612=_0x589bec;(_0x3f35a0?this[_0x3db612(0x21c)][_0x3db612(0x1ce)](_0x182e2b=>_0x182e2b['id']===_0x3f35a0['id']):null)?(this[_0x3db612(0x1d4)]=!0x0,this[_0x3db612(0x1e8)][_0x3db612(0x1e3)](_0x3f35a0)):_0x3f35a0?.['id'][_0x3db612(0x1d1)](_0x3db612(0x21e))?(this[_0x3db612(0x1d4)]=!0x0,this[_0x3db612(0x1e8)][_0x3db612(0x1e3)](this[_0x3db612(0x21c)][0x0])):this[_0x3db612(0x1d4)]=!0x1;}[_0x589bec(0x201)](){const _0x86b002=_0x589bec;this[_0x86b002(0x1e8)][_0x86b002(0x201)]();}[_0x589bec(0x1fc)](_0x86d45c){const _0x5ced35=_0x589bec;this[_0x5ced35(0x1e8)][_0x5ced35(0x1fc)](_0x86d45c);}[_0x589bec(0x1d0)](_0x3900c9,_0x3679fc,_0x2a3146,_0x10b511){const _0x312309=_0x589bec;this[_0x312309(0x1f2)][_0x312309(0x1d0)](_0x3900c9,_0x3679fc,_0x2a3146,_0x10b511);}[_0x589bec(0x1d7)](_0x2f0508){const _0x55073c=_0x589bec;this[_0x55073c(0x1f2)][_0x55073c(0x1d7)](_0x2f0508);}[_0x589bec(0x21d)](){const _0x4ba8dc=_0x589bec;this[_0x4ba8dc(0x1f9)][_0x4ba8dc(0x1da)]();}}class gs extends _0x1b6ddb{constructor(_0x1556e3){const _0x1ec0cb=_0x589bec;super(_0x1556e3);const _0x3f69cb=new _0x491f7f(_0x1556e3);_0x3f69cb[_0x1ec0cb(0x20e)]({'label':_0x425536(this[_0x1ec0cb(0x209)],_0x1ec0cb(0x1cf)),'withText':!0x0,'class':[_0x1ec0cb(0x214)],'tooltip':''}),_0x3f69cb[_0x1ec0cb(0x1ed)](_0x1ec0cb(0x20f))['to'](this,_0x1ec0cb(0x1fd)),this[_0x1ec0cb(0x203)]({'tag':_0x1ec0cb(0x20a),'attributes':{'class':['ck',_0x1ec0cb(0x1e0)]},'children':[{'tag':'p','children':[{'text':_0x425536(this[_0x1ec0cb(0x209)],_0x1ec0cb(0x21b))+'\x20'},_0x3f69cb]}]});}}
23
+ const _0x281581=_0x451c;function _0x451c(_0x11a1d2,_0x2883d4){const _0x224411=_0x2244();return _0x451c=function(_0x451c1d,_0x3ca5e8){_0x451c1d=_0x451c1d-0x1c6;let _0x1593b9=_0x224411[_0x451c1d];return _0x1593b9;},_0x451c(_0x11a1d2,_0x2883d4);}(function(_0xab9ff3,_0x145f01){const _0x38b67b=_0x451c,_0xe7176a=_0xab9ff3();while(!![]){try{const _0xcfbdb5=-parseInt(_0x38b67b(0x204))/0x1+parseInt(_0x38b67b(0x1f9))/0x2*(parseInt(_0x38b67b(0x1d9))/0x3)+-parseInt(_0x38b67b(0x1ed))/0x4+parseInt(_0x38b67b(0x1e5))/0x5+-parseInt(_0x38b67b(0x1f4))/0x6+-parseInt(_0x38b67b(0x201))/0x7*(parseInt(_0x38b67b(0x1da))/0x8)+parseInt(_0x38b67b(0x205))/0x9*(-parseInt(_0x38b67b(0x1cc))/0xa);if(_0xcfbdb5===_0x145f01)break;else _0xe7176a['push'](_0xe7176a['shift']());}catch(_0x1302f7){_0xe7176a['push'](_0xe7176a['shift']());}}}(_0x2244,0x34a72));import{ButtonView as _0x400852,clickOutsideHandler as _0x105d31,View as _0x3e9392}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x3f53fc}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x3495f7}from'./controls/aichatpromptcapabilitiesview.js';function _0x2244(){const _0xe9467a=['7VvBopZ','locale','setTemplate','33478PfYTdT','9MoxoCf','clearConversationContextItems','ck-ai-chat-controls','low','focus','addContextItem','ck-ai-chat-controls-disabled','_contextPanelView','_promptCapabilitiesView','populateSourceResourceBalloon','isLoading','setReasoning','isDisabled','ck-hidden','_createLoaderView','set','ck-ai-chat-controls__start-new-chat-button','bodyCollection','focusPromptInput','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','ck-ai-chat-controls-model-unavailable-message','element','setModelList','change:isLoading','138050NAxmcK','toggleWebSearch','sendUserMessage','_createPromptCapabilitiesView','setWebSearch','_modelUnavailableMessageView','_handlePromptInputFocus','toggleReasoning','_createPromptInputView','reset','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','_loaderView','clearPendingContextUI','248280KQXKUc','909112NENaOc','setConversationContext','setModel','removeContextItem','addContextButtonView','startsWith','clearConversationContextUI','contextResourcesSearchInputVisibleFrom','clearCurrentContextItems','agent','delegate','1351360qzlhqf','isModelAvailable','setAddContextOptions','bindTemplate','setInputPlaceholder','setPlaceholderText','form','closeSourceResourceBalloon','180656GspuEC','_displayedModels','execute','updateResourceState','enableModelSelector','_createModelUnavailableMessageView','find','580800GCbEMp','disableModelSelector','_shouldRestorePromptInputFocus','_promptInputView','_createContextPanelView','6evxYSx','abortPromptStream','resetMessageInput','startConversation','div','setContextItemLoading','selectModel','setIsUploadInProgress'];_0x2244=function(){return _0xe9467a;};return _0x2244();}import{AIChatContextPanelView as _0x601e7e,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x345d6d}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0xd95d88}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x2ed22e}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x3e9392{[_0x281581(0x1ee)]=[];[_0x281581(0x20c)];[_0x281581(0x1f7)];[_0x281581(0x20d)];[_0x281581(0x1d7)];[_0x281581(0x1d1)];[_0x281581(0x1f6)];constructor(_0x7e6a62,_0x29b021){const _0x1bfc92=_0x281581;super(_0x7e6a62),this[_0x1bfc92(0x20c)]=this[_0x1bfc92(0x1f8)](_0x7e6a62,{'bodyCollection':_0x29b021[_0x1bfc92(0x216)],'searchInputVisibleFrom':_0x29b021[_0x1bfc92(0x1e1)]}),this[_0x1bfc92(0x1f7)]=this[_0x1bfc92(0x1d4)](_0x7e6a62),this[_0x1bfc92(0x20d)]=this[_0x1bfc92(0x1cf)](_0x7e6a62),this[_0x1bfc92(0x1d7)]=this[_0x1bfc92(0x213)](_0x7e6a62),this[_0x1bfc92(0x1d1)]=this[_0x1bfc92(0x1f2)](_0x7e6a62),this[_0x1bfc92(0x1f6)]=!0x1,this[_0x1bfc92(0x1f7)][_0x1bfc92(0x1e4)](_0x1bfc92(0x1ce))['to'](this),this[_0x1bfc92(0x1d7)][_0x1bfc92(0x1e4)](_0x1bfc92(0x1fa))['to'](this),this[_0x1bfc92(0x20d)][_0x1bfc92(0x1e4)](_0x1bfc92(0x1cd))['to'](this),this[_0x1bfc92(0x20d)][_0x1bfc92(0x1e4)](_0x1bfc92(0x1d3))['to'](this),this[_0x1bfc92(0x20d)][_0x1bfc92(0x1e4)](_0x1bfc92(0x1ff))['to'](this),this[_0x1bfc92(0x20c)][_0x1bfc92(0x1e4)](..._0x345d6d)['to'](this),this[_0x1bfc92(0x214)](_0x1bfc92(0x1e6),!0x0),this[_0x1bfc92(0x214)](_0x1bfc92(0x211),!0x1);const _0x51bd1e=this[_0x1bfc92(0x1e8)];this[_0x1bfc92(0x203)]({'tag':_0x1bfc92(0x1eb),'attributes':{'class':['ck',_0x1bfc92(0x207),_0x51bd1e['if'](_0x1bfc92(0x211),_0x1bfc92(0x20b))]},'children':[{'tag':_0x1bfc92(0x1fd),'attributes':{'class':[_0x51bd1e['if'](_0x1bfc92(0x20f),_0x1bfc92(0x212),_0x318741=>_0x318741||!this[_0x1bfc92(0x1e6)]),_0x51bd1e['if'](_0x1bfc92(0x1e6),_0x1bfc92(0x212),_0x20af76=>!_0x20af76||this[_0x1bfc92(0x20f)])]},'children':[this[_0x1bfc92(0x20c)],this[_0x1bfc92(0x1f7)],this[_0x1bfc92(0x20d)]]},{'tag':_0x1bfc92(0x1fd),'attributes':{'class':[_0x51bd1e['if'](_0x1bfc92(0x20f),_0x1bfc92(0x212),_0xf2e522=>!_0xf2e522)]},'children':[this[_0x1bfc92(0x1d7)]]},{'tag':_0x1bfc92(0x1fd),'attributes':{'class':[_0x51bd1e['if'](_0x1bfc92(0x1e6),_0x1bfc92(0x212),_0x2d846d=>_0x2d846d)]},'children':[this[_0x1bfc92(0x1d1)]]}]}),_0x105d31({'emitter':this[_0x1bfc92(0x1f7)],'activator':()=>this[_0x1bfc92(0x20f)],'contextElements':()=>[this[_0x1bfc92(0x1c9)]],'callback':()=>{const _0xdaa9d4=_0x1bfc92;this[_0xdaa9d4(0x1f6)]=!0x1;}}),this['on'](_0x1bfc92(0x1cb),this[_0x1bfc92(0x1d2)],{'priority':_0x1bfc92(0x208)});}[_0x281581(0x1f8)](_0x4c27be,_0x5575dd){return new _0x601e7e(_0x4c27be,_0x5575dd);}[_0x281581(0x1d4)](_0x252abd){const _0x4bc82c=_0x281581;return new _0x3f53fc(_0x252abd,this[_0x4bc82c(0x20c)][_0x4bc82c(0x1de)]);}[_0x281581(0x1cf)](_0x367b72){return new _0x3495f7(_0x367b72);}[_0x281581(0x213)](_0x58096e){return new _0xd95d88(_0x58096e);}[_0x281581(0x1f2)](_0x5dcb9a){const _0x2e227c=_0x281581,_0xc838db=new _s(_0x5dcb9a);return _0xc838db[_0x2e227c(0x1e4)](_0x2e227c(0x1fc))['to'](this),_0xc838db;}[_0x281581(0x1d2)](_0x1865b6,_0x55f14e,_0x2afc5a){const _0xc14159=_0x281581;_0x2afc5a?this[_0xc14159(0x1f6)]=!0x0:this[_0xc14159(0x1f6)]&&this[_0xc14159(0x1f7)][_0xc14159(0x209)]();}[_0x281581(0x20a)](_0x40088d,_0x2ddf18){const _0x418dd9=_0x281581;this[_0x418dd9(0x20c)][_0x418dd9(0x20a)](_0x40088d,_0x2ddf18);}[_0x281581(0x1dd)](_0x3993e2){const _0x72109a=_0x281581;this[_0x72109a(0x20c)][_0x72109a(0x1dd)](_0x3993e2);}[_0x281581(0x1fe)](_0x2fde55,_0x4cbf16){const _0x5ea8b2=_0x281581;this[_0x5ea8b2(0x20c)][_0x5ea8b2(0x1fe)](_0x2fde55,_0x4cbf16);}[_0x281581(0x200)](_0x3f2bee){const _0x311cbd=_0x281581;this[_0x311cbd(0x1f7)][_0x311cbd(0x200)](_0x3f2bee);}[_0x281581(0x1db)](_0x5e5441){const _0x48add0=_0x281581;this[_0x48add0(0x20c)][_0x48add0(0x1db)](_0x5e5441);}[_0x281581(0x1d8)](){const _0x54f4bd=_0x281581;this[_0x54f4bd(0x20c)][_0x54f4bd(0x1e2)]();}[_0x281581(0x1e0)](){const _0x574205=_0x281581;this[_0x574205(0x20c)][_0x574205(0x206)]();}[_0x281581(0x1f0)](_0x100b8a,_0x407396,_0x4769f3){const _0x2cc289=_0x281581;this[_0x2cc289(0x20c)][_0x2cc289(0x1f0)](_0x100b8a,_0x407396,_0x4769f3);}[_0x281581(0x1d0)](_0x49e823){const _0x54cb0b=_0x281581;this[_0x54cb0b(0x20d)][_0x54cb0b(0x1d0)](_0x49e823);}[_0x281581(0x210)](_0x53f376){const _0x3ca8a8=_0x281581;this[_0x3ca8a8(0x20d)][_0x3ca8a8(0x210)](_0x53f376);}[_0x281581(0x1fb)](){const _0x178b64=_0x281581;this[_0x178b64(0x1f7)][_0x178b64(0x1d5)]();}[_0x281581(0x1e7)](_0x1b8cb0){const _0x4c7db7=_0x281581;this[_0x4c7db7(0x20c)][_0x4c7db7(0x1e7)](_0x1b8cb0);}[_0x281581(0x1e9)](_0x571f0c){const _0x22db84=_0x281581;this[_0x22db84(0x1f7)][_0x22db84(0x1ea)](_0x571f0c);}[_0x281581(0x1ca)](_0x2d9769,_0x57ea44){const _0xf564f0=_0x281581;this[_0xf564f0(0x1ee)]=_0x2d9769,this[_0xf564f0(0x20d)][_0xf564f0(0x1ca)](_0x2d9769,_0x57ea44);}[_0x281581(0x1dc)](_0x151010){const _0x4e78fa=_0x281581;(_0x151010?this[_0x4e78fa(0x1ee)][_0x4e78fa(0x1f3)](_0x5996eb=>_0x5996eb['id']===_0x151010['id']):null)?(this[_0x4e78fa(0x1e6)]=!0x0,this[_0x4e78fa(0x20d)][_0x4e78fa(0x1dc)](_0x151010)):_0x151010?.['id'][_0x4e78fa(0x1df)](_0x4e78fa(0x1e3))?(this[_0x4e78fa(0x1e6)]=!0x0,this[_0x4e78fa(0x20d)][_0x4e78fa(0x1dc)](this[_0x4e78fa(0x1ee)][0x0])):this[_0x4e78fa(0x1e6)]=!0x1;}[_0x281581(0x1f1)](){const _0x4f2ba1=_0x281581;this[_0x4f2ba1(0x20d)][_0x4f2ba1(0x1f1)]();}[_0x281581(0x1f5)](_0x30cec7){const _0xeb88d9=_0x281581;this[_0xeb88d9(0x20d)][_0xeb88d9(0x1f5)](_0x30cec7);}[_0x281581(0x20e)](_0x487922,_0x31be9f,_0x4fe1e0,_0x29c7d1){const _0x5cf532=_0x281581;this[_0x5cf532(0x20c)][_0x5cf532(0x20e)](_0x487922,_0x31be9f,_0x4fe1e0,_0x29c7d1);}[_0x281581(0x1ec)](_0x11c61d){const _0x3a9380=_0x281581;this[_0x3a9380(0x20c)][_0x3a9380(0x1ec)](_0x11c61d);}[_0x281581(0x1c6)](){const _0x35e770=_0x281581;this[_0x35e770(0x1f7)][_0x35e770(0x209)]();}}class _s extends _0x3e9392{constructor(_0x3e1d45){const _0x138d44=_0x281581;super(_0x3e1d45);const _0xbbf60=new _0x400852(_0x3e1d45);_0xbbf60[_0x138d44(0x214)]({'label':_0x2ed22e(this[_0x138d44(0x202)],_0x138d44(0x1c7)),'withText':!0x0,'class':[_0x138d44(0x215)],'tooltip':''}),_0xbbf60[_0x138d44(0x1e4)](_0x138d44(0x1ef))['to'](this,_0x138d44(0x1fc)),this[_0x138d44(0x203)]({'tag':_0x138d44(0x1fd),'attributes':{'class':['ck',_0x138d44(0x1c8)]},'children':[{'tag':'p','children':[{'text':_0x2ed22e(this[_0x138d44(0x202)],_0x138d44(0x1d6))+'\x20'},_0xbbf60]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x543a98=_0x41cd;(function(_0x586006,_0x537aca){const _0x347540=_0x41cd,_0x93603c=_0x586006();while(!![]){try{const _0x5aeeec=parseInt(_0x347540(0x13a))/0x1+parseInt(_0x347540(0x150))/0x2+parseInt(_0x347540(0x137))/0x3+-parseInt(_0x347540(0x12d))/0x4*(parseInt(_0x347540(0x10a))/0x5)+parseInt(_0x347540(0x14b))/0x6+-parseInt(_0x347540(0x107))/0x7+parseInt(_0x347540(0x14d))/0x8*(-parseInt(_0x347540(0x136))/0x9);if(_0x5aeeec===_0x537aca)break;else _0x93603c['push'](_0x93603c['shift']());}catch(_0x3defde){_0x93603c['push'](_0x93603c['shift']());}}}(_0x56b0,0xb524a));import{CKEditorError as _0x4f2416,logWarning as _0x5d26b5,scrollViewportToShowTarget as _0x2a20fc}from'ckeditor5/src/utils.js';function _0x56b0(){const _0x39e765=['start','isTrackChangesOn','ai-chat-feed-view-item-not-a-reply-item','markAsDone','addItem','aiFeed','_createTemplateChildren','ai-chat-feed-view-item-not-a-suggestion-item','updateSuggestionItem','clear','getItemIds','ck-hidden','markItemAsDone','bindTemplate','options','5194104neVHnk','ai-reply','272LQszln','setLoadingMessage','setTemplate','831260FVugrA','locale','remove','stop','isVisible','updateSources','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','8144773gdLRUg','find','interaction-header','4465MhrlBk','updateSuggestionPartState','destroy','add','_createSkeletonLoader','getItemById','removeItem','user-message','scrollManager','element','updateWebSources','startAutoScroll','isLoadingSkeletonVisible','ai-chat-feed-view-item-not-found','getPartView','loadingMessage','updatePartState','_bodyCollection','ck-ai-chat__loader','children','_setupTemplate','_createFeedItems','map','updateContent','toggleLoadingSkeleton','includes','scrollToSuggestion','bind','stopAutoScroll','delegate','updateReplyItem','createCollection','_createFeedLoader','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','render','3532RkGRIz','set','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','div','isPending','_createLoaderChildren','ai-suggestion-reply','extendTemplate','ck-ai-chat__feed__items','131283MfjjXD','2155881wcMiaA','span','ck-ai-chat__feed','1190037fvwmjX','ck-ai-chat__loader-text'];_0x56b0=function(){return _0x39e765;};return _0x56b0();}import{View as _0x31f453}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0xdd73e6}from'../utils/eventnames.js';function _0x41cd(_0x5a9a00,_0x42fff9){const _0x56b034=_0x56b0();return _0x41cd=function(_0x41cd6d,_0x547c4d){_0x41cd6d=_0x41cd6d-0x107;let _0x1db732=_0x56b034[_0x41cd6d];return _0x1db732;},_0x41cd(_0x5a9a00,_0x42fff9);}import{AIChatFeedSuggestionItemView as _0x181727}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x4ae46c}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x4861d1}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x5cf404}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x59ecd5}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x3fb8df}from'../utils/scrollmanager.js';import{AISkeletonView as _0x5ca3d8,SKELETON_DEFINITIONS as _0x4c8f45}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x436d94}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x31f453{[_0x543a98(0x11d)];[_0x543a98(0x112)];[_0x543a98(0x11b)];constructor(_0x586ec9,_0x38822d){const _0x39e14b=_0x543a98;super(_0x586ec9),this[_0x39e14b(0x11b)]=_0x38822d,this[_0x39e14b(0x12e)](_0x39e14b(0x131),!0x1),this[_0x39e14b(0x12e)](_0x39e14b(0x119),''),this[_0x39e14b(0x12e)](_0x39e14b(0x116),!0x1),this[_0x39e14b(0x12e)](_0x39e14b(0x13d),!0x1),this[_0x39e14b(0x11d)]=this[_0x39e14b(0x129)](),this[_0x39e14b(0x11d)][_0x39e14b(0x127)](..._0xdd73e6)['to'](this),this[_0x39e14b(0x11e)]();}[_0x543a98(0x12c)](){const _0x1e1117=_0x543a98;super[_0x1e1117(0x12c)](),this[_0x1e1117(0x112)]=new _0x3fb8df(this[_0x1e1117(0x113)]);}[_0x543a98(0x10c)](){const _0x372d4c=_0x543a98;super[_0x372d4c(0x10c)](),this[_0x372d4c(0x112)][_0x372d4c(0x10c)]();}[_0x543a98(0x145)](){const _0x49d091=_0x543a98;this[_0x49d091(0x11d)][_0x49d091(0x145)]();}[_0x543a98(0x140)](_0x1c54b,_0x254c01){const _0x1d9131=_0x543a98;let _0x1b9121;_0x1d9131(0x14c)===_0x1c54b?_0x1b9121=new _0x4ae46c(this[_0x1d9131(0x151)],_0x254c01):_0x1d9131(0x133)===_0x1c54b?(_0x1b9121=new _0x181727(this[_0x1d9131(0x151)],_0x254c01),_0x1b9121[_0x1d9131(0x125)](_0x1d9131(0x13d))['to'](this,_0x1d9131(0x13d))):_0x1b9121=_0x1d9131(0x111)===_0x1c54b?new _0x4861d1(this[_0x1d9131(0x151)],_0x254c01,this[_0x1d9131(0x11b)]):_0x1d9131(0x109)===_0x1c54b?new _0x59ecd5(this[_0x1d9131(0x151)],_0x254c01):new _0x5cf404(_0x254c01),this[_0x1d9131(0x11d)][_0x1d9131(0x10d)](_0x1b9121);}async[_0x543a98(0x128)]({id:_0x49cddc,parsedContent:_0x39c66a,renderingStrategy:_0x5799e2,abortSignal:_0x24f6e5}){const _0x2e0859=_0x543a98,_0x533742=this[_0x2e0859(0x10f)](_0x49cddc);if(!(_0x533742 instanceof _0x4ae46c))throw new _0x4f2416(_0x2e0859(0x13e),null,{'itemView':_0x533742,'id':_0x49cddc,'parsedContent':_0x39c66a});await _0x533742[_0x2e0859(0x121)]({'parsedContent':_0x39c66a,'renderingStrategy':_0x5799e2,'abortSignal':_0x24f6e5});}async[_0x543a98(0x114)](_0x27821a,_0x1c6f82){const _0x213e21=_0x543a98,_0x4eb787=this[_0x213e21(0x10f)](_0x27821a);if(_0x4eb787 instanceof _0x181727)_0x4eb787[_0x213e21(0x155)](_0x1c6f82);else{if(!(_0x4eb787 instanceof _0x4ae46c))throw new _0x4f2416(_0x213e21(0x156),null,{'itemView':_0x4eb787,'id':_0x27821a,'sources':_0x1c6f82});_0x4eb787[_0x213e21(0x155)](_0x1c6f82);}}async[_0x543a98(0x144)]({id:_0x41a67a,parts:_0x22e67c,renderingStrategy:_0xe74a1c,abortSignal:_0x510372}){const _0x434c21=_0x543a98,_0x54da29=this[_0x434c21(0x10f)](_0x41a67a);if(!(_0x54da29 instanceof _0x181727))throw new _0x4f2416(_0x434c21(0x143),null,{'itemView':_0x54da29,'id':_0x41a67a,'parts':_0x22e67c});await _0x54da29[_0x434c21(0x121)]({'parts':_0x22e67c,'renderingStrategy':_0xe74a1c,'abortSignal':_0x510372});}[_0x543a98(0x10b)]({id:_0x5c8686,index:_0x19216f,state:_0x543d02}){const _0x95f0ec=_0x543a98,_0x533cff=this[_0x95f0ec(0x10f)](_0x5c8686);if(!(_0x533cff instanceof _0x181727))throw new _0x4f2416(_0x95f0ec(0x143),this,{'id':_0x5c8686});_0x533cff[_0x95f0ec(0x11a)](_0x19216f,_0x543d02);}[_0x543a98(0x148)](_0x21e7d7){const _0x41651a=_0x543a98;this[_0x41651a(0x10f)](_0x21e7d7)[_0x41651a(0x13f)]();}[_0x543a98(0x146)](){const _0x44890c=_0x543a98;return this[_0x44890c(0x11d)][_0x44890c(0x120)](_0x1f8716=>_0x1f8716[_0x44890c(0x14a)]['id']);}[_0x543a98(0x110)](_0x19fc7d){const _0xce94f3=_0x543a98;this[_0xce94f3(0x11d)][_0xce94f3(0x152)](this[_0xce94f3(0x10f)](_0x19fc7d));}[_0x543a98(0x124)](_0x2c7e3c,_0x366dc2){const _0x460208=_0x543a98,_0x1ec90a=this[_0x460208(0x10f)](_0x2c7e3c);if(!(_0x1ec90a instanceof _0x181727))return void _0x5d26b5(_0x460208(0x12f),{'replyId':_0x2c7e3c,'partIndex':_0x366dc2});const _0x541d6f=_0x1ec90a[_0x460208(0x118)](_0x366dc2);_0x541d6f?_0x2a20fc({'target':_0x541d6f[_0x460208(0x113)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x5d26b5(_0x460208(0x12b),{'replyId':_0x2c7e3c,'partIndex':_0x366dc2});}[_0x543a98(0x11e)](){const _0x47c93e=_0x543a98;this[_0x47c93e(0x14f)]({'tag':_0x47c93e(0x130),'attributes':{'class':['ck',_0x47c93e(0x139)]},'children':this[_0x47c93e(0x142)]()});}[_0x543a98(0x142)](){const _0xa1814=_0x543a98,_0x5101ca=this[_0xa1814(0x10e)]();return[this[_0xa1814(0x11f)](),_0x5101ca,this[_0xa1814(0x12a)]()];}[_0x543a98(0x10e)](){const _0x557cc8=_0x543a98,_0x3fd7df=new _0x5ca3d8(this[_0x557cc8(0x151)],_0x4c8f45[_0x557cc8(0x141)]);return _0x3fd7df[_0x557cc8(0x134)]({'attributes':{'class':[this[_0x557cc8(0x149)]['if'](_0x557cc8(0x116),_0x557cc8(0x147),_0x16e8a8=>!_0x16e8a8)]}}),_0x3fd7df;}[_0x543a98(0x11f)](){const _0x1c8ebc=_0x543a98,_0x592830=new _0x31f453(this[_0x1c8ebc(0x151)]);return _0x592830[_0x1c8ebc(0x14f)]({'tag':_0x1c8ebc(0x130),'attributes':{'class':['ck',_0x1c8ebc(0x135),this[_0x1c8ebc(0x149)]['if'](_0x1c8ebc(0x116),_0x1c8ebc(0x147))]},'children':this[_0x1c8ebc(0x11d)]}),_0x592830;}[_0x543a98(0x12a)](){const _0x3c336f=_0x543a98,_0x5d76b6=new _0x31f453(this[_0x3c336f(0x151)]);return _0x5d76b6[_0x3c336f(0x14f)]({'tag':_0x3c336f(0x130),'attributes':{'class':['ck',_0x3c336f(0x11c),this[_0x3c336f(0x149)]['if'](_0x3c336f(0x131),_0x3c336f(0x147),_0x11efe6=>!_0x11efe6)]},'children':this[_0x3c336f(0x132)]()}),_0x5d76b6;}[_0x543a98(0x132)](){const _0x2eb358=_0x543a98,_0x3f9cb4=new _0x436d94();return _0x3f9cb4[_0x2eb358(0x154)]=!0x0,[_0x3f9cb4,{'tag':_0x2eb358(0x138),'attributes':{'class':['ck',_0x2eb358(0x13b)]},'children':[{'text':this[_0x2eb358(0x149)]['to'](_0x2eb358(0x119))}]}];}[_0x543a98(0x10f)](_0x139ad6){const _0x42ab78=_0x543a98,_0x274849=this[_0x42ab78(0x11d)][_0x42ab78(0x108)](_0x1d844e=>_0x1d844e[_0x42ab78(0x14a)]['id'][_0x42ab78(0x123)](_0x139ad6));if(!_0x274849)throw new _0x4f2416(_0x42ab78(0x117),this,{'id':_0x139ad6});return _0x274849;}[_0x543a98(0x14e)](_0x1453b1){const _0x53a364=_0x543a98;this[_0x53a364(0x12e)](_0x53a364(0x119),_0x1453b1);}[_0x543a98(0x122)](_0x17e3c2){const _0x437b9e=_0x543a98;this[_0x437b9e(0x12e)](_0x437b9e(0x116),_0x17e3c2);}[_0x543a98(0x115)](){const _0x29087e=_0x543a98;this[_0x29087e(0x112)][_0x29087e(0x13c)]();}[_0x543a98(0x126)](){const _0x343cfe=_0x543a98;this[_0x343cfe(0x112)][_0x343cfe(0x153)]();}}
23
+ const _0x30d6fb=_0x5f63;(function(_0x12da49,_0xe41ceb){const _0x5b7fec=_0x5f63,_0x3d2c30=_0x12da49();while(!![]){try{const _0x3e1a8a=-parseInt(_0x5b7fec(0x1d7))/0x1+parseInt(_0x5b7fec(0x1fc))/0x2*(parseInt(_0x5b7fec(0x1fe))/0x3)+parseInt(_0x5b7fec(0x1e0))/0x4+-parseInt(_0x5b7fec(0x1db))/0x5+parseInt(_0x5b7fec(0x1df))/0x6*(parseInt(_0x5b7fec(0x1d1))/0x7)+-parseInt(_0x5b7fec(0x1bd))/0x8*(-parseInt(_0x5b7fec(0x1b6))/0x9)+parseInt(_0x5b7fec(0x1da))/0xa;if(_0x3e1a8a===_0xe41ceb)break;else _0x3d2c30['push'](_0x3d2c30['shift']());}catch(_0x443a35){_0x3d2c30['push'](_0x3d2c30['shift']());}}}(_0x56aa,0x5ea37));function _0x5f63(_0x37366f,_0x5d0b46){const _0x56aa73=_0x56aa();return _0x5f63=function(_0x5f63e0,_0x5cd6c3){_0x5f63e0=_0x5f63e0-0x1b5;let _0x54742f=_0x56aa73[_0x5f63e0];return _0x54742f;},_0x5f63(_0x37366f,_0x5d0b46);}import{CKEditorError as _0x3ad269,logWarning as _0x330399,scrollViewportToShowTarget as _0x2822fe}from'ckeditor5/src/utils.js';function _0x56aa(){const _0x5b3f69=['2975005IfwpaW','ck-hidden','bindTemplate','getPartView','6RJHSAo','950612cqDKZC','updateSuggestionPartState','includes','find','createCollection','ai-chat-feed-view-item-not-found','updateContent','_createLoaderChildren','getItemById','span','_createFeedLoader','toggleLoadingSkeleton','isPending','_createTemplateChildren','addItem','start','div','set','_bodyCollection','interaction-header','getItemIds','bind','options','scrollManager','updateSources','updateSuggestionItem','aiFeed','scrollToSuggestion','11738AUDfgZ','setLoadingMessage','267SrlufW','setTemplate','isTrackChangesOn','ck-ai-chat__loader','user-message','add','updateWebSources','delegate','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','263376zgFfuZ','extendTemplate','updateReplyItem','startAutoScroll','stop','remove','loadingMessage','184iwumgF','isLoadingSkeletonVisible','ai-reply','ck-ai-chat__loader-text','ck-ai-chat__feed__items','_setupTemplate','markAsDone','removeItem','ck-ai-chat__feed','_createFeedItems','children','markItemAsDone','ai-chat-feed-view-item-not-a-suggestion-item','updatePartState','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','render','destroy','clear','ai-chat-feed-view-item-not-a-reply-item','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','254219BsoMdA','locale','stopAutoScroll','element','_createSkeletonLoader','isVisible','741401cQSgrn','ai-suggestion-reply','map','2546580XfgrOM'];_0x56aa=function(){return _0x5b3f69;};return _0x56aa();}import{View as _0x5ce9bf}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1d4d0c}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x160456}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x5f45b1}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x33d476}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x17269e}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x249190}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x1145c0}from'../utils/scrollmanager.js';import{AISkeletonView as _0x4d5730,SKELETON_DEFINITIONS as _0xd79c74}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0xdfb7a4}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x5ce9bf{[_0x30d6fb(0x1c7)];[_0x30d6fb(0x1f7)];[_0x30d6fb(0x1f2)];constructor(_0x2f9c6a,_0x505897){const _0x3001e7=_0x30d6fb;super(_0x2f9c6a),this[_0x3001e7(0x1f2)]=_0x505897,this[_0x3001e7(0x1f1)](_0x3001e7(0x1ec),!0x1),this[_0x3001e7(0x1f1)](_0x3001e7(0x1bc),''),this[_0x3001e7(0x1f1)](_0x3001e7(0x1be),!0x1),this[_0x3001e7(0x1f1)](_0x3001e7(0x200),!0x1),this[_0x3001e7(0x1c7)]=this[_0x3001e7(0x1e4)](),this[_0x3001e7(0x1c7)][_0x3001e7(0x205)](..._0x1d4d0c)['to'](this),this[_0x3001e7(0x1c2)]();}[_0x30d6fb(0x1cc)](){const _0x15f1a0=_0x30d6fb;super[_0x15f1a0(0x1cc)](),this[_0x15f1a0(0x1f7)]=new _0x1145c0(this[_0x15f1a0(0x1d4)]);}[_0x30d6fb(0x1cd)](){const _0x1474f2=_0x30d6fb;super[_0x1474f2(0x1cd)](),this[_0x1474f2(0x1f7)][_0x1474f2(0x1cd)]();}[_0x30d6fb(0x1ce)](){const _0x327166=_0x30d6fb;this[_0x327166(0x1c7)][_0x327166(0x1ce)]();}[_0x30d6fb(0x1ee)](_0x51fb4e,_0x53f991){const _0x2c6ac6=_0x30d6fb;let _0x439f58;_0x2c6ac6(0x1bf)===_0x51fb4e?_0x439f58=new _0x5f45b1(this[_0x2c6ac6(0x1d2)],_0x53f991):_0x2c6ac6(0x1d8)===_0x51fb4e?(_0x439f58=new _0x160456(this[_0x2c6ac6(0x1d2)],_0x53f991),_0x439f58[_0x2c6ac6(0x1f5)](_0x2c6ac6(0x200))['to'](this,_0x2c6ac6(0x200))):_0x439f58=_0x2c6ac6(0x202)===_0x51fb4e?new _0x33d476(this[_0x2c6ac6(0x1d2)],_0x53f991,this[_0x2c6ac6(0x1f2)]):_0x2c6ac6(0x1f3)===_0x51fb4e?new _0x249190(this[_0x2c6ac6(0x1d2)],_0x53f991):new _0x17269e(_0x53f991),this[_0x2c6ac6(0x1c7)][_0x2c6ac6(0x203)](_0x439f58);}async[_0x30d6fb(0x1b8)]({id:_0x58d5be,parsedContent:_0x23a777,renderingStrategy:_0x26829f,abortSignal:_0x41083e}){const _0x5e6f2c=_0x30d6fb,_0x4e753e=this[_0x5e6f2c(0x1e8)](_0x58d5be);if(!(_0x4e753e instanceof _0x5f45b1))throw new _0x3ad269(_0x5e6f2c(0x1cf),null,{'itemView':_0x4e753e,'id':_0x58d5be,'parsedContent':_0x23a777});await _0x4e753e[_0x5e6f2c(0x1e6)]({'parsedContent':_0x23a777,'renderingStrategy':_0x26829f,'abortSignal':_0x41083e});}async[_0x30d6fb(0x204)](_0x125d75,_0x2d96ab){const _0x1b6c02=_0x30d6fb,_0x2ee88f=this[_0x1b6c02(0x1e8)](_0x125d75);if(_0x2ee88f instanceof _0x160456)_0x2ee88f[_0x1b6c02(0x1f8)](_0x2d96ab);else{if(!(_0x2ee88f instanceof _0x5f45b1))throw new _0x3ad269(_0x1b6c02(0x1cb),null,{'itemView':_0x2ee88f,'id':_0x125d75,'sources':_0x2d96ab});_0x2ee88f[_0x1b6c02(0x1f8)](_0x2d96ab);}}async[_0x30d6fb(0x1f9)]({id:_0x1f1e4c,parts:_0x2c053a,renderingStrategy:_0x2557cb,abortSignal:_0x2c50ba}){const _0x644ab4=_0x30d6fb,_0x53e4ec=this[_0x644ab4(0x1e8)](_0x1f1e4c);if(!(_0x53e4ec instanceof _0x160456))throw new _0x3ad269(_0x644ab4(0x1c9),null,{'itemView':_0x53e4ec,'id':_0x1f1e4c,'parts':_0x2c053a});await _0x53e4ec[_0x644ab4(0x1e6)]({'parts':_0x2c053a,'renderingStrategy':_0x2557cb,'abortSignal':_0x2c50ba});}[_0x30d6fb(0x1e1)]({id:_0x312294,index:_0x594476,state:_0x2ddf2d}){const _0x4e9367=_0x30d6fb,_0x242d6d=this[_0x4e9367(0x1e8)](_0x312294);if(!(_0x242d6d instanceof _0x160456))throw new _0x3ad269(_0x4e9367(0x1c9),this,{'id':_0x312294});_0x242d6d[_0x4e9367(0x1ca)](_0x594476,_0x2ddf2d);}[_0x30d6fb(0x1c8)](_0x140804){const _0x54d8b6=_0x30d6fb;this[_0x54d8b6(0x1e8)](_0x140804)[_0x54d8b6(0x1c3)]();}[_0x30d6fb(0x1f4)](){const _0x3226ad=_0x30d6fb;return this[_0x3226ad(0x1c7)][_0x3226ad(0x1d9)](_0x2f60b5=>_0x2f60b5[_0x3226ad(0x1f6)]['id']);}[_0x30d6fb(0x1c4)](_0x503d0b){const _0xac11ea=_0x30d6fb;this[_0xac11ea(0x1c7)][_0xac11ea(0x1bb)](this[_0xac11ea(0x1e8)](_0x503d0b));}[_0x30d6fb(0x1fb)](_0x23873e,_0x50b2d5){const _0x165f1d=_0x30d6fb,_0x11d8c6=this[_0x165f1d(0x1e8)](_0x23873e);if(!(_0x11d8c6 instanceof _0x160456))return void _0x330399(_0x165f1d(0x1b5),{'replyId':_0x23873e,'partIndex':_0x50b2d5});const _0x2ecba3=_0x11d8c6[_0x165f1d(0x1de)](_0x50b2d5);_0x2ecba3?_0x2822fe({'target':_0x2ecba3[_0x165f1d(0x1d4)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x330399(_0x165f1d(0x1d0),{'replyId':_0x23873e,'partIndex':_0x50b2d5});}[_0x30d6fb(0x1c2)](){const _0x37e313=_0x30d6fb;this[_0x37e313(0x1ff)]({'tag':_0x37e313(0x1f0),'attributes':{'class':['ck',_0x37e313(0x1c5)]},'children':this[_0x37e313(0x1ed)]()});}[_0x30d6fb(0x1ed)](){const _0x5b0d46=_0x30d6fb,_0x57c858=this[_0x5b0d46(0x1d5)]();return[this[_0x5b0d46(0x1c6)](),_0x57c858,this[_0x5b0d46(0x1ea)]()];}[_0x30d6fb(0x1d5)](){const _0x15bccf=_0x30d6fb,_0xc9896e=new _0x4d5730(this[_0x15bccf(0x1d2)],_0xd79c74[_0x15bccf(0x1fa)]);return _0xc9896e[_0x15bccf(0x1b7)]({'attributes':{'class':[this[_0x15bccf(0x1dd)]['if'](_0x15bccf(0x1be),_0x15bccf(0x1dc),_0xc1c632=>!_0xc1c632)]}}),_0xc9896e;}[_0x30d6fb(0x1c6)](){const _0x4d597a=_0x30d6fb,_0x5a59b8=new _0x5ce9bf(this[_0x4d597a(0x1d2)]);return _0x5a59b8[_0x4d597a(0x1ff)]({'tag':_0x4d597a(0x1f0),'attributes':{'class':['ck',_0x4d597a(0x1c1),this[_0x4d597a(0x1dd)]['if'](_0x4d597a(0x1be),_0x4d597a(0x1dc))]},'children':this[_0x4d597a(0x1c7)]}),_0x5a59b8;}[_0x30d6fb(0x1ea)](){const _0x4335d4=_0x30d6fb,_0x2c8ca3=new _0x5ce9bf(this[_0x4335d4(0x1d2)]);return _0x2c8ca3[_0x4335d4(0x1ff)]({'tag':_0x4335d4(0x1f0),'attributes':{'class':['ck',_0x4335d4(0x201),this[_0x4335d4(0x1dd)]['if'](_0x4335d4(0x1ec),_0x4335d4(0x1dc),_0x2d77c6=>!_0x2d77c6)]},'children':this[_0x4335d4(0x1e7)]()}),_0x2c8ca3;}[_0x30d6fb(0x1e7)](){const _0x3455e9=_0x30d6fb,_0x4890a8=new _0xdfb7a4();return _0x4890a8[_0x3455e9(0x1d6)]=!0x0,[_0x4890a8,{'tag':_0x3455e9(0x1e9),'attributes':{'class':['ck',_0x3455e9(0x1c0)]},'children':[{'text':this[_0x3455e9(0x1dd)]['to'](_0x3455e9(0x1bc))}]}];}[_0x30d6fb(0x1e8)](_0xd596b5){const _0x534587=_0x30d6fb,_0x1a8ae4=this[_0x534587(0x1c7)][_0x534587(0x1e3)](_0xcab81f=>_0xcab81f[_0x534587(0x1f6)]['id'][_0x534587(0x1e2)](_0xd596b5));if(!_0x1a8ae4)throw new _0x3ad269(_0x534587(0x1e5),this,{'id':_0xd596b5});return _0x1a8ae4;}[_0x30d6fb(0x1fd)](_0x38e1f2){const _0x2f0a25=_0x30d6fb;this[_0x2f0a25(0x1f1)](_0x2f0a25(0x1bc),_0x38e1f2);}[_0x30d6fb(0x1eb)](_0x1f8892){const _0x8d5545=_0x30d6fb;this[_0x8d5545(0x1f1)](_0x8d5545(0x1be),_0x1f8892);}[_0x30d6fb(0x1b9)](){const _0x2c63d8=_0x30d6fb;this[_0x2c63d8(0x1f7)][_0x2c63d8(0x1ef)]();}[_0x30d6fb(0x1d3)](){const _0xeb7709=_0x30d6fb;this[_0xeb7709(0x1f7)][_0xeb7709(0x1ba)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3970fc=_0x16ad;(function(_0x530b24,_0x59c7a5){const _0x397e8d=_0x16ad,_0x1a7399=_0x530b24();while(!![]){try{const _0x1e4821=-parseInt(_0x397e8d(0x1cf))/0x1*(parseInt(_0x397e8d(0x1c8))/0x2)+parseInt(_0x397e8d(0x1c3))/0x3+-parseInt(_0x397e8d(0x1c4))/0x4*(-parseInt(_0x397e8d(0x1c5))/0x5)+-parseInt(_0x397e8d(0x1d6))/0x6*(-parseInt(_0x397e8d(0x1d2))/0x7)+-parseInt(_0x397e8d(0x1c7))/0x8*(parseInt(_0x397e8d(0x1ce))/0x9)+-parseInt(_0x397e8d(0x1c9))/0xa*(parseInt(_0x397e8d(0x1ca))/0xb)+parseInt(_0x397e8d(0x1c2))/0xc;if(_0x1e4821===_0x59c7a5)break;else _0x1a7399['push'](_0x1a7399['shift']());}catch(_0x1d81b8){_0x1a7399['push'](_0x1a7399['shift']());}}}(_0x4079,0x95743));import{ButtonView as _0x36663c,FormHeaderView as _0x591679}from'ckeditor5/src/ui.js';function _0x4079(){const _0x212acf=['1275528qwkxZY','358196azxQYV','25SJmGjN','children','2342704LHugGw','1118462ypVCKk','160CyUYxN','799557cstNVt','execute','set','ck-ai-chat__start-conversation','36vFykJo','1OBZRdh','startConversation','AI_CHAT_LABEL_NEW_CHAT','1995fbhekk','add','AI_CHAT_HEADING','isMaximized','7374JdrhMb','fire','ck-ai-header\x20ck-ai-header_chat','resizeButton','conversationStartButton','_createStartConversationButton','locale','27390624AwJqDD'];_0x4079=function(){return _0x212acf;};return _0x4079();}import{IconPlus as _0x8e7d13,IconAIChat as _0x1fc793}from'ckeditor5/src/icons.js';import{getTranslation as _0x25fd05}from'../../aicore/utils/common-translations.js';function _0x16ad(_0x577bba,_0x116256){const _0x40790c=_0x4079();return _0x16ad=function(_0x16add5,_0x1a50a2){_0x16add5=_0x16add5-0x1be;let _0x218800=_0x40790c[_0x16add5];return _0x218800;},_0x16ad(_0x577bba,_0x116256);}import{createResizeButton as _0x13571c}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x591679{[_0x3970fc(0x1bf)];[_0x3970fc(0x1be)];constructor(_0x2186ad,_0x3039d5){const _0x2c53da=_0x3970fc;super(_0x2186ad,{'label':_0x25fd05(_0x2186ad,_0x2c53da(0x1d4)),'class':_0x2c53da(0x1d8),'icon':_0x1fc793}),this[_0x2c53da(0x1cc)](_0x2c53da(0x1d5),!0x1),this[_0x2c53da(0x1bf)]=this[_0x2c53da(0x1c0)](_0x2186ad),this[_0x2c53da(0x1c6)][_0x2c53da(0x1d3)](this[_0x2c53da(0x1bf)]),_0x3039d5&&(this[_0x2c53da(0x1be)]=_0x13571c(_0x2186ad,this),this[_0x2c53da(0x1c6)][_0x2c53da(0x1d3)](this[_0x2c53da(0x1be)]));}[_0x3970fc(0x1c0)](_0x2fbf30){const _0x1f07f5=_0x3970fc,_0x818856=new _0x36663c(_0x2fbf30);return _0x818856[_0x1f07f5(0x1cc)]({'label':_0x25fd05(this[_0x1f07f5(0x1c1)],_0x1f07f5(0x1d1)),'withText':!0x0,'icon':_0x8e7d13,'class':_0x1f07f5(0x1cd)}),_0x818856['on'](_0x1f07f5(0x1cb),()=>{const _0x18a850=_0x1f07f5;this[_0x18a850(0x1d7)](_0x18a850(0x1d0));}),_0x818856;}}
23
+ function _0x3d45(){const _0x7bb24b=['161EXnNvQ','2ZSxTTL','219672bCuxIi','3044280bpSpJm','512972iFKDOb','90084OlEfGl','2629eTGllL','set','startConversation','AI_CHAT_LABEL_NEW_CHAT','resizeButton','execute','8vjldZl','5989356VsioRX','fire','_createStartConversationButton','ck-ai-chat__start-conversation','children','isMaximized','390221VtcYgd','conversationStartButton','locale','add','3RuECUA','2873720kFvlXn','ck-ai-header\x20ck-ai-header_chat','AI_CHAT_HEADING'];_0x3d45=function(){return _0x7bb24b;};return _0x3d45();}const _0x1c0e54=_0x3534;(function(_0x8e6c11,_0x2c98f8){const _0x5783ea=_0x3534,_0x127aab=_0x8e6c11();while(!![]){try{const _0x3dea53=-parseInt(_0x5783ea(0x187))/0x1*(parseInt(_0x5783ea(0x190))/0x2)+parseInt(_0x5783ea(0x18b))/0x3*(-parseInt(_0x5783ea(0x193))/0x4)+-parseInt(_0x5783ea(0x192))/0x5+-parseInt(_0x5783ea(0x191))/0x6*(-parseInt(_0x5783ea(0x18f))/0x7)+-parseInt(_0x5783ea(0x19b))/0x8*(parseInt(_0x5783ea(0x19c))/0x9)+-parseInt(_0x5783ea(0x18c))/0xa+-parseInt(_0x5783ea(0x195))/0xb*(-parseInt(_0x5783ea(0x194))/0xc);if(_0x3dea53===_0x2c98f8)break;else _0x127aab['push'](_0x127aab['shift']());}catch(_0x5e8513){_0x127aab['push'](_0x127aab['shift']());}}}(_0x3d45,0x87c29));import{ButtonView as _0x3a2126,FormHeaderView as _0x23ec98}from'ckeditor5/src/ui.js';function _0x3534(_0x260184,_0x9f285b){const _0x3d4591=_0x3d45();return _0x3534=function(_0x3534b7,_0x4be9f3){_0x3534b7=_0x3534b7-0x182;let _0x14e5b1=_0x3d4591[_0x3534b7];return _0x14e5b1;},_0x3534(_0x260184,_0x9f285b);}import{IconPlus as _0x120bb2,IconAIChat as _0x37a445}from'ckeditor5/src/icons.js';import{getTranslation as _0x4ea55c}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x143f17}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x23ec98{[_0x1c0e54(0x188)];[_0x1c0e54(0x199)];constructor(_0x35cfa6,_0x2a9551){const _0x5a663d=_0x1c0e54;super(_0x35cfa6,{'label':_0x4ea55c(_0x35cfa6,_0x5a663d(0x18e)),'class':_0x5a663d(0x18d),'icon':_0x37a445}),this[_0x5a663d(0x196)](_0x5a663d(0x186),!0x1),this[_0x5a663d(0x188)]=this[_0x5a663d(0x183)](_0x35cfa6),this[_0x5a663d(0x185)][_0x5a663d(0x18a)](this[_0x5a663d(0x188)]),_0x2a9551&&(this[_0x5a663d(0x199)]=_0x143f17(_0x35cfa6,this),this[_0x5a663d(0x185)][_0x5a663d(0x18a)](this[_0x5a663d(0x199)]));}[_0x1c0e54(0x183)](_0x42b831){const _0x401551=_0x1c0e54,_0x56ec4e=new _0x3a2126(_0x42b831);return _0x56ec4e[_0x401551(0x196)]({'label':_0x4ea55c(this[_0x401551(0x189)],_0x401551(0x198)),'withText':!0x0,'icon':_0x120bb2,'class':_0x401551(0x184)}),_0x56ec4e['on'](_0x401551(0x19a),()=>{const _0x57051a=_0x401551;this[_0x57051a(0x182)](_0x57051a(0x197));}),_0x56ec4e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x33bdac=_0xa8fd;(function(_0x299098,_0x5990a0){var _0x2c2139=_0xa8fd,_0x415395=_0x299098();while(!![]){try{var _0x195d75=-parseInt(_0x2c2139(0x1aa))/0x1*(parseInt(_0x2c2139(0x1b9))/0x2)+parseInt(_0x2c2139(0x1b6))/0x3+-parseInt(_0x2c2139(0x1ba))/0x4+parseInt(_0x2c2139(0x1af))/0x5*(-parseInt(_0x2c2139(0x1a9))/0x6)+-parseInt(_0x2c2139(0x1ae))/0x7*(-parseInt(_0x2c2139(0x1b1))/0x8)+-parseInt(_0x2c2139(0x1a2))/0x9*(parseInt(_0x2c2139(0x1ab))/0xa)+parseInt(_0x2c2139(0x1a7))/0xb;if(_0x195d75===_0x5990a0)break;else _0x415395['push'](_0x415395['shift']());}catch(_0x53d0b8){_0x415395['push'](_0x415395['shift']());}}}(_0x52fc,0xbefd6));import{View as _0x4ba800,BodyCollection as _0x54f60b}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2b1d20}from'../utils/eventnames.js';function _0xa8fd(_0xc455e,_0x1f5802){var _0x52fc24=_0x52fc();return _0xa8fd=function(_0xa8fd44,_0x437618){_0xa8fd44=_0xa8fd44-0x1a1;var _0x529eda=_0x52fc24[_0xa8fd44];return _0x529eda;},_0xa8fd(_0xc455e,_0x1f5802);}import{AIChatFeedView as _0xfe5ac5}from'./aichatfeedview.js';import{AIChatControlsView as _0x1d650b}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x288460}from'./aichatheaderview.js';import{AIDisclaimerView as _0x34b883}from'../../aicore/ui/aidisclaimerview.js';function _0x52fc(){var _0x2e0fec=['uiLanguageDirection','chatHeader','4104835xSDkOs','4329905JJHhcZ','ck-rounded-corners','16SaBOYw','destroy','detachFromDom','div','chatDisclaimer','2741358ZaHgqf','_bodyCollection','attachToDom','72578pCAJVR','5275992HuDwAq','showResizeButton','chatFeed','setTemplate','contextResourcesSearchInputVisibleFrom','ck-reset_all','9QJmhTO','delegate','ck-ai-chat','populateSourceResourceBalloon','chatControls','22694441tMMTRy','closeSourceResourceBalloon','6JhttKT','31HCLItl','574950IJCdee'];_0x52fc=function(){return _0x2e0fec;};return _0x52fc();}export class AIChatView extends _0x4ba800{[_0x33bdac(0x1ad)];[_0x33bdac(0x1bc)];[_0x33bdac(0x1a6)];[_0x33bdac(0x1b5)];[_0x33bdac(0x1b7)];constructor(_0xfd6d5c,_0x50f749){var _0x1ea2e9=_0x33bdac;super(_0xfd6d5c),this[_0x1ea2e9(0x1b7)]=new _0x54f60b(_0xfd6d5c),this[_0x1ea2e9(0x1b7)][_0x1ea2e9(0x1b8)](),this[_0x1ea2e9(0x1ad)]=new _0x288460(_0xfd6d5c,_0x50f749[_0x1ea2e9(0x1bb)]),this[_0x1ea2e9(0x1ad)][_0x1ea2e9(0x1a3)](..._0x2b1d20)['to'](this),this[_0x1ea2e9(0x1bc)]=new _0xfe5ac5(_0xfd6d5c,this[_0x1ea2e9(0x1b7)]),this[_0x1ea2e9(0x1bc)][_0x1ea2e9(0x1a3)](..._0x2b1d20)['to'](this),this[_0x1ea2e9(0x1a6)]=new _0x1d650b(_0xfd6d5c,{'bodyCollection':this[_0x1ea2e9(0x1b7)],'contextResourcesSearchInputVisibleFrom':_0x50f749[_0x1ea2e9(0x1be)]}),this[_0x1ea2e9(0x1a6)][_0x1ea2e9(0x1a3)](..._0x2b1d20)['to'](this),this[_0x1ea2e9(0x1b5)]=new _0x34b883(_0xfd6d5c),this[_0x1ea2e9(0x1bd)]({'tag':_0x1ea2e9(0x1b4),'attributes':{'class':['ck',_0x1ea2e9(0x1a1),_0x1ea2e9(0x1a4),_0x1ea2e9(0x1b0)],'dir':_0xfd6d5c[_0x1ea2e9(0x1ac)]},'children':[this[_0x1ea2e9(0x1ad)],this[_0x1ea2e9(0x1bc)],this[_0x1ea2e9(0x1a6)],this[_0x1ea2e9(0x1b5)]]});}[_0x33bdac(0x1a5)](_0x3d56c0,_0x4513b2,_0x223a64,_0x48598b){var _0xe42ae=_0x33bdac;this[_0xe42ae(0x1a6)][_0xe42ae(0x1a5)](_0x3d56c0,_0x4513b2,_0x223a64,_0x48598b);}[_0x33bdac(0x1a8)](_0x3ecc88){var _0xdf4eb=_0x33bdac;this[_0xdf4eb(0x1a6)][_0xdf4eb(0x1a8)](_0x3ecc88);}[_0x33bdac(0x1b2)](){var _0x11876b=_0x33bdac;this[_0x11876b(0x1b7)][_0x11876b(0x1b3)](),super[_0x11876b(0x1b2)]();}}
23
+ var _0x277e5e=_0x1ce8;(function(_0x44e51f,_0x70f5e5){var _0x41ec35=_0x1ce8,_0x531053=_0x44e51f();while(!![]){try{var _0x3ae416=-parseInt(_0x41ec35(0x149))/0x1+-parseInt(_0x41ec35(0x160))/0x2+-parseInt(_0x41ec35(0x15b))/0x3*(-parseInt(_0x41ec35(0x15e))/0x4)+parseInt(_0x41ec35(0x14a))/0x5*(parseInt(_0x41ec35(0x159))/0x6)+-parseInt(_0x41ec35(0x158))/0x7+-parseInt(_0x41ec35(0x155))/0x8+parseInt(_0x41ec35(0x14f))/0x9*(parseInt(_0x41ec35(0x150))/0xa);if(_0x3ae416===_0x70f5e5)break;else _0x531053['push'](_0x531053['shift']());}catch(_0x13b1b1){_0x531053['push'](_0x531053['shift']());}}}(_0x6bf7,0x929b4));import{View as _0x25948b,BodyCollection as _0x1ffb57}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1d3e20}from'../utils/eventnames.js';function _0x6bf7(){var _0x38b53a=['10vXvach','ck-ai-chat','populateSourceResourceBalloon','div','setTemplate','2268560OkxJbO','chatDisclaimer','destroy','4808083QZmKsA','168HzrCgN','chatHeader','6OJEOXE','detachFromDom','ck-rounded-corners','866812BPBtGz','showResizeButton','586366tLbNjp','delegate','ck-reset_all','attachToDom','_bodyCollection','closeSourceResourceBalloon','306039ZGkuzA','124875zUTAAa','chatControls','uiLanguageDirection','chatFeed','contextResourcesSearchInputVisibleFrom','9337095VHmzVW'];_0x6bf7=function(){return _0x38b53a;};return _0x6bf7();}import{AIChatFeedView as _0x15985c}from'./aichatfeedview.js';function _0x1ce8(_0x10c256,_0x2ce4a6){var _0x6bf7ff=_0x6bf7();return _0x1ce8=function(_0x1ce8d7,_0x21edf5){_0x1ce8d7=_0x1ce8d7-0x146;var _0x24bd5=_0x6bf7ff[_0x1ce8d7];return _0x24bd5;},_0x1ce8(_0x10c256,_0x2ce4a6);}import{AIChatControlsView as _0x56def1}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x8fc787}from'./aichatheaderview.js';import{AIDisclaimerView as _0x8c769f}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x25948b{[_0x277e5e(0x15a)];[_0x277e5e(0x14d)];[_0x277e5e(0x14b)];[_0x277e5e(0x156)];[_0x277e5e(0x147)];constructor(_0x12a3c1,_0x1812a9){var _0x20bba9=_0x277e5e;super(_0x12a3c1),this[_0x20bba9(0x147)]=new _0x1ffb57(_0x12a3c1),this[_0x20bba9(0x147)][_0x20bba9(0x146)](),this[_0x20bba9(0x15a)]=new _0x8fc787(_0x12a3c1,_0x1812a9[_0x20bba9(0x15f)]),this[_0x20bba9(0x15a)][_0x20bba9(0x161)](..._0x1d3e20)['to'](this),this[_0x20bba9(0x14d)]=new _0x15985c(_0x12a3c1,this[_0x20bba9(0x147)]),this[_0x20bba9(0x14d)][_0x20bba9(0x161)](..._0x1d3e20)['to'](this),this[_0x20bba9(0x14b)]=new _0x56def1(_0x12a3c1,{'bodyCollection':this[_0x20bba9(0x147)],'contextResourcesSearchInputVisibleFrom':_0x1812a9[_0x20bba9(0x14e)]}),this[_0x20bba9(0x14b)][_0x20bba9(0x161)](..._0x1d3e20)['to'](this),this[_0x20bba9(0x156)]=new _0x8c769f(_0x12a3c1),this[_0x20bba9(0x154)]({'tag':_0x20bba9(0x153),'attributes':{'class':['ck',_0x20bba9(0x162),_0x20bba9(0x151),_0x20bba9(0x15d)],'dir':_0x12a3c1[_0x20bba9(0x14c)]},'children':[this[_0x20bba9(0x15a)],this[_0x20bba9(0x14d)],this[_0x20bba9(0x14b)],this[_0x20bba9(0x156)]]});}[_0x277e5e(0x152)](_0x28ecc5,_0xd99847,_0x4f9aff,_0x5375dd){var _0x49358c=_0x277e5e;this[_0x49358c(0x14b)][_0x49358c(0x152)](_0x28ecc5,_0xd99847,_0x4f9aff,_0x5375dd);}[_0x277e5e(0x148)](_0x19bc84){var _0x4aecbf=_0x277e5e;this[_0x4aecbf(0x14b)][_0x4aecbf(0x148)](_0x19bc84);}[_0x277e5e(0x157)](){var _0x47fe2=_0x277e5e;this[_0x47fe2(0x147)][_0x47fe2(0x15c)](),super[_0x47fe2(0x157)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x473cc4=_0x5599;function _0x48ec(){const _0x22007d=['div','destroy','1721442dpOwZP','visible','tagName','parentElement','4069618aDWNNR','-9999px','15814NSEmVe','cloneNode','_createShowMoreBalloonPanelView','hideBalloonPanel','none','auto','_createShowMoreButtonView','_createShowMoreButton','content','opacity','clientHeight','clear','300px','_ancestorsToRestore','children','pop','_createCalculationContainer','textContent','_overflowChips','showMoreButton','innerHTML','innerHeight','zIndex','disableAnimationOnEnter','slice','createElement','_calculateOverflowInContainer','overflowContainer','clientWidth','from','block\x20!important','_calculateContainerWidth','bottom','_makeAncestorsVisible','.ck-ai-chat','_findTargetContainer','body','absolute','className','showMoreButtonView','_createContainerElements','boxSizing','_intersectionObserver','15259068SXhAJc','display','2908236bPEomL','maxVisibleRows','showMoreBalloon','visibility','_updateOverflowUI','left','_showMoreButtonView','block','forEach','_repinBalloonPanel','hidden','ck-calculation-container','_updateBalloonContent','_pendingCalculation','height','_showMoreBalloonPanelView','_handleShowMoreButtonClick','overflowChips','show','innerWidth','disconnect','0px','_visibleChips','observe','element','455728HcIFFG','isConnected','reorganizeChips','label','cssClasses','remove','offsetWidth','_bodyCollection','border-box','_config','render','classList','getBoundingClientRect','top','_applyCalculationStyles','_locale','+\x201','style','_parentView','_checkAndHandleOverflow','position','extendTemplate','_restoreAncestorVisibility','pointerEvents','documentElement','button','undefined','execute','20SjRRJD','_createMockButton','toLowerCase','controlsButton','width','483765gEhsUF','isIntersecting','50px','_testButtonFit','_updateShowMoreButtonVisibility','_setupVisibilityObserver','some','getComputedStyle','isVisible','filter','includes','abs','_containerElement','setTemplate','set','isOn','23lJxAPU','showBalloonPanel','querySelector','calculationContainer','right','hide','showMoreLabelPrefix','add','_renderChipsAndCountRows','push','_applyOverflowResults','rowDetectionTolerance','appendChild','length','pin','setContainerElement','_distributeChips','_targetContainer','visible\x20!important','_isContainerVisible'];_0x48ec=function(){return _0x22007d;};return _0x48ec();}(function(_0x4b47c2,_0x5e1dea){const _0x544220=_0x5599,_0x17fbb2=_0x4b47c2();while(!![]){try{const _0x2a3f95=parseInt(_0x544220(0x1d3))/0x1*(-parseInt(_0x544220(0x15c))/0x2)+-parseInt(_0x544220(0x156))/0x3+parseInt(_0x544220(0x1be))/0x4*(parseInt(_0x544220(0x1c3))/0x5)+-parseInt(_0x544220(0x189))/0x6+-parseInt(_0x544220(0x15a))/0x7+-parseInt(_0x544220(0x1a2))/0x8+parseInt(_0x544220(0x187))/0x9;if(_0x2a3f95===_0x5e1dea)break;else _0x17fbb2['push'](_0x17fbb2['shift']());}catch(_0x740dee){_0x17fbb2['push'](_0x17fbb2['shift']());}}}(_0x48ec,0x495d0));import{View as _0x40ad50,BalloonPanelView as _0x30ba49,ButtonView as _0x24285e,clickOutsideHandler as _0x270fd4}from'ckeditor5/src/ui.js';import{Collection as _0x19347f}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x473cc4(0x168);function _0x5599(_0x2e6188,_0x4a9a14){const _0x48ecf2=_0x48ec();return _0x5599=function(_0x559933,_0x5ac85f){_0x559933=_0x559933-0x14a;let _0x20c54e=_0x48ecf2[_0x559933];return _0x20c54e;},_0x5599(_0x2e6188,_0x4a9a14);}export class AIChatChipsOverflowManager{[_0x473cc4(0x1b1)];[_0x473cc4(0x1ab)];[_0x473cc4(0x19f)];[_0x473cc4(0x16e)];[_0x473cc4(0x18f)]=null;[_0x473cc4(0x198)]=null;[_0x473cc4(0x1cf)]=null;[_0x473cc4(0x1a9)];[_0x473cc4(0x1b4)]=null;[_0x473cc4(0x186)]=null;[_0x473cc4(0x196)]=!0x1;constructor(_0x5acb21,_0x3a72b0,_0x5cde32,_0x26c6e9,_0x54c8e3){const _0x454f11=_0x473cc4;this[_0x454f11(0x1b1)]=_0x5acb21,this[_0x454f11(0x19f)]=_0x3a72b0,this[_0x454f11(0x1ab)]={...hn,..._0x5cde32,'cssClasses':{'controlsButton':'','calculationContainer':_0x454f11(0x194),..._0x5cde32[_0x454f11(0x1a6)]}},this[_0x454f11(0x16e)]=new _0x19347f(),this[_0x454f11(0x1a9)]=_0x26c6e9,this[_0x454f11(0x1b4)]=_0x54c8e3||null;}[_0x473cc4(0x14f)](_0x430948){const _0x4b58de=_0x473cc4;this[_0x4b58de(0x186)]&&(this[_0x4b58de(0x186)][_0x4b58de(0x19d)](),this[_0x4b58de(0x186)]=null),this[_0x4b58de(0x1cf)]=_0x430948,this[_0x4b58de(0x1c8)]();}get[_0x473cc4(0x183)](){const _0x19b9d4=_0x473cc4;return this[_0x19b9d4(0x18f)];}get[_0x473cc4(0x19a)](){const _0x155634=_0x473cc4;return this[_0x155634(0x16e)];}[_0x473cc4(0x1a4)](){requestAnimationFrame(()=>{const _0x56ac1b=_0x5599;this[_0x56ac1b(0x1b5)]();});}[_0x473cc4(0x1d4)](){const _0x5af1ee=_0x473cc4;this[_0x5af1ee(0x18f)]&&this[_0x5af1ee(0x198)]&&(this[_0x5af1ee(0x195)](),this[_0x5af1ee(0x18f)][_0x5af1ee(0x1d2)]=!0x0,this[_0x5af1ee(0x198)][_0x5af1ee(0x19b)](),this[_0x5af1ee(0x198)][_0x5af1ee(0x14e)]({'target':this[_0x5af1ee(0x18f)][_0x5af1ee(0x1a1)],'limiter':document[_0x5af1ee(0x1d5)](_0x5af1ee(0x17e))}));}[_0x473cc4(0x15f)](){const _0x2f23c9=_0x473cc4;this[_0x2f23c9(0x18f)]&&this[_0x2f23c9(0x198)]&&(this[_0x2f23c9(0x18f)][_0x2f23c9(0x1d2)]=!0x1,this[_0x2f23c9(0x198)][_0x2f23c9(0x1d8)]());}[_0x473cc4(0x167)](){const _0x4c2f38=_0x473cc4;this[_0x4c2f38(0x16e)][_0x4c2f38(0x167)](),this[_0x4c2f38(0x15f)](),this[_0x4c2f38(0x1c7)](),this[_0x4c2f38(0x18f)]&&(this[_0x4c2f38(0x18f)][_0x4c2f38(0x1a5)]=''),this[_0x4c2f38(0x198)]&&this[_0x4c2f38(0x198)][_0x4c2f38(0x164)][_0x4c2f38(0x167)]();}[_0x473cc4(0x155)](){const _0x206971=_0x473cc4;this[_0x206971(0x186)]&&(this[_0x206971(0x186)][_0x206971(0x19d)](),this[_0x206971(0x186)]=null),this[_0x206971(0x18f)]&&(this[_0x206971(0x18f)][_0x206971(0x155)](),this[_0x206971(0x18f)]=null),this[_0x206971(0x198)]&&(this[_0x206971(0x198)][_0x206971(0x155)](),this[_0x206971(0x198)]=null);}[_0x473cc4(0x1b5)](){const _0x2f93e6=_0x473cc4;if(!this[_0x2f93e6(0x1cf)])return;if(!this[_0x2f93e6(0x153)]())return void(this[_0x2f93e6(0x196)]=!0x0);this[_0x2f93e6(0x196)]=!0x1;const _0x1f4266=[...this[_0x2f93e6(0x19f)],...this[_0x2f93e6(0x16e)]],_0x5a17b0=this[_0x2f93e6(0x16c)](),_0x4a03ba=this[_0x2f93e6(0x176)](_0x5a17b0,_0x1f4266),_0x2b8bb0=_0x5a17b0[_0x2f93e6(0x169)];_0x2b8bb0&&this[_0x2f93e6(0x1b8)](_0x2b8bb0),_0x5a17b0[_0x2f93e6(0x1a7)](),this[_0x2f93e6(0x14a)](_0x1f4266,_0x4a03ba);}[_0x473cc4(0x163)](){const _0x1b1ba4=_0x473cc4;this[_0x1b1ba4(0x18f)]=this[_0x1b1ba4(0x162)](),this[_0x1b1ba4(0x198)]=this[_0x1b1ba4(0x15e)](),this[_0x1b1ba4(0x18f)][_0x1b1ba4(0x1ac)](),this[_0x1b1ba4(0x1cf)][_0x1b1ba4(0x14c)](this[_0x1b1ba4(0x18f)][_0x1b1ba4(0x1a1)]),this[_0x1b1ba4(0x18f)]['on'](_0x1b1ba4(0x1bd),()=>{const _0x48c4f6=_0x1b1ba4;this[_0x48c4f6(0x199)]();}),_0x270fd4({'emitter':this[_0x1b1ba4(0x198)],'contextElements':[this[_0x1b1ba4(0x198)][_0x1b1ba4(0x1a1)],this[_0x1b1ba4(0x18f)][_0x1b1ba4(0x1a1)]],'callback':()=>this[_0x1b1ba4(0x15f)](),'activator':()=>this[_0x1b1ba4(0x18f)][_0x1b1ba4(0x1d2)]});}[_0x473cc4(0x162)](){const _0x3118b4=_0x473cc4,_0x16e531=new _0x24285e(this[_0x3118b4(0x1b1)]);_0x16e531[_0x3118b4(0x1d1)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1971ad=[this[_0x3118b4(0x1ab)][_0x3118b4(0x1a6)][_0x3118b4(0x16f)]];return this[_0x3118b4(0x1ab)][_0x3118b4(0x1a6)][_0x3118b4(0x1c1)]&&_0x1971ad[_0x3118b4(0x1dc)](this[_0x3118b4(0x1ab)][_0x3118b4(0x1a6)][_0x3118b4(0x1c1)]),_0x16e531[_0x3118b4(0x1b7)]({'attributes':{'class':_0x1971ad}}),_0x16e531;}[_0x473cc4(0x15e)](){const _0x123cd7=_0x473cc4,_0x3633f8=new _0x30ba49(this[_0x123cd7(0x1b1)]);return _0x3633f8[_0x123cd7(0x1b7)]({'attributes':{'class':this[_0x123cd7(0x1ab)][_0x123cd7(0x1a6)][_0x123cd7(0x18b)]}}),this[_0x123cd7(0x1a9)][_0x123cd7(0x1da)](_0x3633f8),_0x3633f8;}[_0x473cc4(0x195)](){const _0x4519cb=_0x473cc4;if(this[_0x4519cb(0x198)]&&(this[_0x4519cb(0x198)][_0x4519cb(0x164)][_0x4519cb(0x167)](),this[_0x4519cb(0x16e)][_0x4519cb(0x14d)]>0x0)){this[_0x4519cb(0x16e)][_0x4519cb(0x191)](_0x375185=>{const _0x79a1af=_0x4519cb;_0x375185[_0x79a1af(0x173)]();});const _0x54c495=new _0x40ad50(this[_0x4519cb(0x1b1)]);_0x54c495[_0x4519cb(0x1d0)]({'tag':_0x4519cb(0x154),'attributes':{'class':this[_0x4519cb(0x1ab)][_0x4519cb(0x1a6)][_0x4519cb(0x177)]},'children':this[_0x4519cb(0x16e)]}),this[_0x4519cb(0x198)][_0x4519cb(0x164)][_0x4519cb(0x1da)](_0x54c495);}}[_0x473cc4(0x199)](){const _0x264cbd=_0x473cc4;this[_0x264cbd(0x18f)][_0x264cbd(0x1d2)]?this[_0x264cbd(0x15f)]():this[_0x264cbd(0x1d4)]();}[_0x473cc4(0x1c7)](){const _0x5240cd=_0x473cc4,_0x1b7e68=this[_0x5240cd(0x16e)][_0x5240cd(0x14d)]>0x0;this[_0x5240cd(0x18f)]?.[_0x5240cd(0x1a1)]&&(this[_0x5240cd(0x18f)][_0x5240cd(0x1a1)][_0x5240cd(0x1b3)][_0x5240cd(0x188)]=_0x1b7e68?'':_0x5240cd(0x160));}[_0x473cc4(0x192)](){const _0x78efe7=_0x473cc4;this[_0x78efe7(0x18f)]?.[_0x78efe7(0x1d2)]&&this[_0x78efe7(0x198)]?.[_0x78efe7(0x1cb)]&&this[_0x78efe7(0x18f)][_0x78efe7(0x1a1)]&&this[_0x78efe7(0x198)][_0x78efe7(0x14e)]({'target':this[_0x78efe7(0x18f)][_0x78efe7(0x1a1)],'limiter':document[_0x78efe7(0x1d5)](_0x78efe7(0x17e))});}[_0x473cc4(0x17f)](_0x595664){const _0x190575=_0x473cc4,_0x5343e6=this[_0x190575(0x1cf)]?.[_0x190575(0x158)][_0x190575(0x1c0)]()||_0x190575(0x154),_0x13a3af=this[_0x190575(0x1cf)]?.[_0x190575(0x1ad)];if(_0x13a3af){const _0x5c1c71=_0x13a3af[0x0]||'',_0x3641a3=_0x595664[_0x190575(0x1d5)]('.'+_0x5c1c71),_0x3e225a=_0x595664[_0x190575(0x1d5)](_0x5343e6);return _0x3641a3||_0x3e225a||_0x595664;}return _0x595664[_0x190575(0x1d5)](_0x5343e6)||_0x595664;}[_0x473cc4(0x17b)](){const _0x5d2644=_0x473cc4,_0x11440c=this[_0x5d2644(0x1b4)]?.[_0x5d2644(0x1a1)]||this[_0x5d2644(0x1cf)];if(!_0x11440c)return an;const _0x5dc413=window[_0x5d2644(0x1ca)](_0x11440c)[_0x5d2644(0x1c2)];if(_0x5d2644(0x161)===_0x5dc413||_0x5d2644(0x19e)===_0x5dc413||!_0x5dc413){const _0x4bc42b=_0x11440c[_0x5d2644(0x159)];if(_0x4bc42b){const _0x1ed2a4=window[_0x5d2644(0x1ca)](_0x4bc42b);return _0x5d2644(0x161)!==_0x1ed2a4[_0x5d2644(0x1c2)]?_0x1ed2a4[_0x5d2644(0x1c2)]:an;}return an;}return _0x5dc413;}[_0x473cc4(0x1b0)](_0x1f09a7,_0x4b92d0){const _0x11fd00=_0x473cc4;this[_0x11fd00(0x1ab)][_0x11fd00(0x1a6)][_0x11fd00(0x1d6)]&&_0x1f09a7[_0x11fd00(0x1ad)][_0x11fd00(0x1da)](this[_0x11fd00(0x1ab)][_0x11fd00(0x1a6)][_0x11fd00(0x1d6)]),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x1c2)]=_0x4b92d0,_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x1b6)]=_0x11fd00(0x181),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x1af)]=_0x11fd00(0x15b),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x18e)]=_0x11fd00(0x15b),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x165)]='0',_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x1b9)]=_0x11fd00(0x160),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x172)]='-1',_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x18c)]=_0x11fd00(0x152),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x188)]=_0x11fd00(0x17a),_0x1f09a7[_0x11fd00(0x1b3)][_0x11fd00(0x185)]=_0x11fd00(0x1aa);}[_0x473cc4(0x1b8)](_0x65722c){const _0x53c028=_0x473cc4;_0x65722c[_0x53c028(0x191)](({element:_0x1e38e1,originalDisplay:_0x582b53,originalVisibility:_0x55ce7b})=>{const _0x5ede39=_0x53c028;_0x1e38e1[_0x5ede39(0x1b3)][_0x5ede39(0x188)]=_0x582b53,_0x1e38e1[_0x5ede39(0x1b3)][_0x5ede39(0x18c)]=_0x55ce7b;});}[_0x473cc4(0x17d)](_0x59d78d){const _0x3ca0f6=_0x473cc4,_0x3facd6=[];let _0x1e91b3=_0x59d78d;for(;_0x1e91b3&&_0x1e91b3!==document[_0x3ca0f6(0x180)];){const _0x3d3a19=window[_0x3ca0f6(0x1ca)](_0x1e91b3);_0x3ca0f6(0x160)!==_0x3d3a19[_0x3ca0f6(0x188)]&&_0x3ca0f6(0x193)!==_0x3d3a19[_0x3ca0f6(0x18c)]||(_0x3facd6[_0x3ca0f6(0x1dc)]({'element':_0x1e91b3,'originalDisplay':_0x1e91b3[_0x3ca0f6(0x1b3)][_0x3ca0f6(0x188)],'originalVisibility':_0x1e91b3[_0x3ca0f6(0x1b3)][_0x3ca0f6(0x18c)]}),_0x1e91b3[_0x3ca0f6(0x1b3)][_0x3ca0f6(0x188)]=_0x3ca0f6(0x190),_0x1e91b3[_0x3ca0f6(0x1b3)][_0x3ca0f6(0x18c)]=_0x3ca0f6(0x157)),_0x1e91b3=_0x1e91b3[_0x3ca0f6(0x159)];}return _0x3facd6;}[_0x473cc4(0x184)](){const _0x2c75f7=_0x473cc4;let _0x4d15e9,_0x1af885;return this[_0x2c75f7(0x1b4)]?.[_0x2c75f7(0x1a1)]?(_0x4d15e9=this[_0x2c75f7(0x1b4)][_0x2c75f7(0x1a1)][_0x2c75f7(0x15d)](!0x0),_0x1af885=this[_0x2c75f7(0x17f)](_0x4d15e9)):(_0x4d15e9=document[_0x2c75f7(0x175)](_0x2c75f7(0x154)),_0x1af885=_0x4d15e9),{'calculationContainer':_0x4d15e9,'targetContainer':_0x1af885};}[_0x473cc4(0x16c)](){const _0x5166b5=_0x473cc4,{calculationContainer:_0x48af77,targetContainer:_0x841373}=this[_0x5166b5(0x184)](),_0x7b0106=this[_0x5166b5(0x17b)]();this[_0x5166b5(0x1b0)](_0x48af77,_0x7b0106);const _0x4a5b1c=this[_0x5166b5(0x1b4)]?.[_0x5166b5(0x1a1)]||this[_0x5166b5(0x1cf)],_0x10418c=_0x4a5b1c?.[_0x5166b5(0x159)];_0x10418c?_0x10418c[_0x5166b5(0x14c)](_0x48af77):document[_0x5166b5(0x180)][_0x5166b5(0x14c)](_0x48af77),_0x48af77[_0x5166b5(0x151)]=_0x841373;const _0xd10414=this[_0x5166b5(0x17d)](_0x10418c||null);return _0x48af77[_0x5166b5(0x1a8)],_0x48af77[_0x5166b5(0x169)]=_0xd10414,_0x48af77;}[_0x473cc4(0x176)](_0x1b4370,_0x43c8e5){const _0x35a137=_0x473cc4,_0x222a95=_0x1b4370[_0x35a137(0x151)]||_0x1b4370,_0x1a2b25=[],{rowCount:_0x51d71e}=this[_0x35a137(0x1db)](_0x222a95,_0x43c8e5);if(_0x51d71e<=this[_0x35a137(0x1ab)][_0x35a137(0x18a)])return _0x1a2b25;const _0x23faa8=_0x43c8e5[_0x35a137(0x174)]();for(;_0x23faa8[_0x35a137(0x14d)]>0x0;){if(this[_0x35a137(0x1c6)](_0x1b4370,_0x222a95,_0x23faa8)){const _0x1e4b00=_0x43c8e5[_0x35a137(0x1cc)](_0x3cc0b6=>!_0x23faa8[_0x35a137(0x1cd)](_0x3cc0b6));_0x1a2b25[_0x35a137(0x1dc)](..._0x1e4b00);break;}if(!_0x23faa8[_0x35a137(0x16b)]())break;}return _0x1a2b25;}[_0x473cc4(0x1db)](_0x2abf6f,_0x2ff570){const _0x1f7256=_0x473cc4;_0x2abf6f[_0x1f7256(0x170)]='',_0x2ff570[_0x1f7256(0x191)](_0x449b77=>{const _0x57f848=_0x1f7256;if(_0x449b77[_0x57f848(0x1a1)]){const _0x2ba41e=_0x449b77[_0x57f848(0x1a1)][_0x57f848(0x15d)](!0x0);_0x2abf6f[_0x57f848(0x14c)](_0x2ba41e);}}),_0x2abf6f[_0x1f7256(0x1a8)];const _0x2c397c=_0x2abf6f[_0x1f7256(0x16a)],_0xba668d=[];return Array[_0x1f7256(0x179)](_0x2c397c)[_0x1f7256(0x191)](_0x34080d=>{const _0x10f4c5=_0x1f7256,_0x31adbc=_0x34080d[_0x10f4c5(0x1ae)]()[_0x10f4c5(0x1af)];_0xba668d[_0x10f4c5(0x1c9)](_0xef0f4e=>Math[_0x10f4c5(0x1ce)](_0xef0f4e-_0x31adbc)<this[_0x10f4c5(0x1ab)][_0x10f4c5(0x14b)])||_0xba668d[_0x10f4c5(0x1dc)](_0x31adbc);}),{'rowCount':_0xba668d[_0x1f7256(0x14d)]};}[_0x473cc4(0x1bf)](){const _0x522e3f=_0x473cc4,_0x8351c7=document[_0x522e3f(0x175)](_0x522e3f(0x1bb));return _0x8351c7[_0x522e3f(0x182)]=this[_0x522e3f(0x1ab)][_0x522e3f(0x1a6)][_0x522e3f(0x16f)],this[_0x522e3f(0x1ab)][_0x522e3f(0x1a6)][_0x522e3f(0x1c1)]&&_0x8351c7[_0x522e3f(0x1ad)][_0x522e3f(0x1da)](this[_0x522e3f(0x1ab)][_0x522e3f(0x1a6)][_0x522e3f(0x1c1)]),_0x8351c7[_0x522e3f(0x16d)]=_0x522e3f(0x1b2),_0x8351c7;}[_0x473cc4(0x1c6)](_0x449f2c,_0x413683,_0xc0be33){const _0x289df9=_0x473cc4;this[_0x289df9(0x1db)](_0x413683,_0xc0be33);const _0x591866=this[_0x289df9(0x1bf)]();_0x449f2c[_0x289df9(0x14c)](_0x591866),_0x449f2c[_0x289df9(0x1a8)];const _0x4d6063=[..._0x413683[_0x289df9(0x16a)],_0x591866],_0x550cdc=[];_0x4d6063[_0x289df9(0x191)](_0x590824=>{const _0x251987=_0x289df9,_0x169502=_0x590824[_0x251987(0x1ae)]()[_0x251987(0x1af)];_0x550cdc[_0x251987(0x1c9)](_0x570b5d=>Math[_0x251987(0x1ce)](_0x570b5d-_0x169502)<this[_0x251987(0x1ab)][_0x251987(0x14b)])||_0x550cdc[_0x251987(0x1dc)](_0x169502);});const _0x15ecf6=_0x550cdc[_0x289df9(0x14d)];return _0x591866[_0x289df9(0x1a7)](),_0x15ecf6<=this[_0x289df9(0x1ab)][_0x289df9(0x18a)];}[_0x473cc4(0x150)](_0x5071b8,_0x808e89){const _0x5e5060=_0x473cc4;this[_0x5e5060(0x19f)][_0x5e5060(0x167)](),this[_0x5e5060(0x16e)][_0x5e5060(0x167)](),_0x5071b8[_0x5e5060(0x191)](_0x182895=>{const _0x34ed6c=_0x5e5060;_0x808e89[_0x34ed6c(0x1cd)](_0x182895)?this[_0x34ed6c(0x16e)][_0x34ed6c(0x1da)](_0x182895):this[_0x34ed6c(0x19f)][_0x34ed6c(0x1da)](_0x182895);});}[_0x473cc4(0x18d)](_0x17b751){const _0x3e9322=_0x473cc4;if(_0x17b751>0x0&&!this[_0x3e9322(0x18f)]&&this[_0x3e9322(0x163)](),_0x17b751>0x0&&this[_0x3e9322(0x18f)]){const _0x5b6869=''+this[_0x3e9322(0x1ab)][_0x3e9322(0x1d9)]+(_0x17b751<0x63?_0x17b751:'99');this[_0x3e9322(0x18f)][_0x3e9322(0x1a5)]=_0x5b6869;}this[_0x3e9322(0x195)](),this[_0x3e9322(0x1c7)](),this[_0x3e9322(0x192)]();}[_0x473cc4(0x14a)](_0xb3255,_0x246d08){const _0x21dd3c=_0x473cc4;this[_0x21dd3c(0x150)](_0xb3255,_0x246d08),this[_0x21dd3c(0x18d)](_0x246d08[_0x21dd3c(0x14d)]);}[_0x473cc4(0x1c8)](){const _0x48bc97=_0x473cc4;this[_0x48bc97(0x1cf)]&&_0x48bc97(0x1bc)!=typeof IntersectionObserver&&(this[_0x48bc97(0x186)]=new IntersectionObserver(_0x30ca2e=>{const _0x49c58f=_0x48bc97;_0x30ca2e[0x0][_0x49c58f(0x1c4)]&&this[_0x49c58f(0x196)]&&requestAnimationFrame(()=>{const _0x422e7f=_0x49c58f;this[_0x422e7f(0x1b5)]();});},{'threshold':0.01,'rootMargin':_0x48bc97(0x1c5)}),this[_0x48bc97(0x186)][_0x48bc97(0x1a0)](this[_0x48bc97(0x1cf)]));}[_0x473cc4(0x153)](){const _0x32dc91=_0x473cc4;if(!this[_0x32dc91(0x1cf)])return!0x1;if(!this[_0x32dc91(0x1cf)][_0x32dc91(0x1a3)])return!0x1;const _0x3bd16e=this[_0x32dc91(0x1cf)][_0x32dc91(0x1ae)]();if(0x0===_0x3bd16e[_0x32dc91(0x1c2)]||0x0===_0x3bd16e[_0x32dc91(0x197)])return!0x1;const _0x3f88f0=window[_0x32dc91(0x171)]||document[_0x32dc91(0x1ba)][_0x32dc91(0x166)],_0x4640ba=window[_0x32dc91(0x19c)]||document[_0x32dc91(0x1ba)][_0x32dc91(0x178)],_0x28d786=0xc8;return _0x3bd16e[_0x32dc91(0x17c)]>=-0xc8&&_0x3bd16e[_0x32dc91(0x1af)]<=_0x3f88f0+_0x28d786&&_0x3bd16e[_0x32dc91(0x1d7)]>=-0xc8&&_0x3bd16e[_0x32dc91(0x18e)]<=_0x4640ba+_0x28d786;}}
23
+ function _0x15e7(_0x58b596,_0x49b6e0){const _0x30d5ef=_0x30d5();return _0x15e7=function(_0x15e7c3,_0x3c61f0){_0x15e7c3=_0x15e7c3-0x1a3;let _0x1900b7=_0x30d5ef[_0x15e7c3];return _0x1900b7;},_0x15e7(_0x58b596,_0x49b6e0);}const _0x9c7903=_0x15e7;(function(_0x4cdade,_0x43affc){const _0x5f48fa=_0x15e7,_0x4b9dad=_0x4cdade();while(!![]){try{const _0x2ec882=parseInt(_0x5f48fa(0x1b8))/0x1*(parseInt(_0x5f48fa(0x237))/0x2)+parseInt(_0x5f48fa(0x1f3))/0x3*(parseInt(_0x5f48fa(0x1b7))/0x4)+parseInt(_0x5f48fa(0x219))/0x5*(-parseInt(_0x5f48fa(0x1dc))/0x6)+parseInt(_0x5f48fa(0x1c2))/0x7*(parseInt(_0x5f48fa(0x1b5))/0x8)+-parseInt(_0x5f48fa(0x21b))/0x9*(-parseInt(_0x5f48fa(0x1c3))/0xa)+-parseInt(_0x5f48fa(0x22e))/0xb*(-parseInt(_0x5f48fa(0x1ec))/0xc)+-parseInt(_0x5f48fa(0x1af))/0xd;if(_0x2ec882===_0x43affc)break;else _0x4b9dad['push'](_0x4b9dad['shift']());}catch(_0x11013b){_0x4b9dad['push'](_0x4b9dad['shift']());}}}(_0x30d5,0xb8cb4));import{View as _0x205eec,BalloonPanelView as _0x359e33,ButtonView as _0x231815,clickOutsideHandler as _0x3fbf77}from'ckeditor5/src/ui.js';import{Collection as _0x3c2f0d}from'ckeditor5/src/utils.js';const dn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},bn=_0x9c7903(0x1d7);export class AIChatChipsOverflowManager{[_0x9c7903(0x1b0)];[_0x9c7903(0x1d4)];[_0x9c7903(0x21f)];[_0x9c7903(0x229)];[_0x9c7903(0x223)]=null;[_0x9c7903(0x1bc)]=null;[_0x9c7903(0x1d3)]=null;[_0x9c7903(0x1c8)];[_0x9c7903(0x1d6)]=null;[_0x9c7903(0x1ba)]=null;[_0x9c7903(0x1b4)]=!0x1;constructor(_0x4b7e48,_0x2c455a,_0x1bebff,_0x36763e,_0x5cc938){const _0x161c8f=_0x9c7903;this[_0x161c8f(0x1b0)]=_0x4b7e48,this[_0x161c8f(0x21f)]=_0x2c455a,this[_0x161c8f(0x1d4)]={...dn,..._0x1bebff,'cssClasses':{'controlsButton':'','calculationContainer':_0x161c8f(0x1fb),..._0x1bebff[_0x161c8f(0x1a9)]}},this[_0x161c8f(0x229)]=new _0x3c2f0d(),this[_0x161c8f(0x1c8)]=_0x36763e,this[_0x161c8f(0x1d6)]=_0x5cc938||null;}[_0x9c7903(0x1fe)](_0x2364ab){const _0x410cc3=_0x9c7903;this[_0x410cc3(0x1ba)]&&(this[_0x410cc3(0x1ba)][_0x410cc3(0x1ff)](),this[_0x410cc3(0x1ba)]=null),this[_0x410cc3(0x1d3)]=_0x2364ab,this[_0x410cc3(0x1a7)]();}get[_0x9c7903(0x1fc)](){const _0x536733=_0x9c7903;return this[_0x536733(0x223)];}get[_0x9c7903(0x1c0)](){const _0x34f785=_0x9c7903;return this[_0x34f785(0x229)];}[_0x9c7903(0x215)](){requestAnimationFrame(()=>{const _0x10d829=_0x15e7;this[_0x10d829(0x1be)]();});}[_0x9c7903(0x239)](){const _0x3e3f7f=_0x9c7903;this[_0x3e3f7f(0x223)]&&this[_0x3e3f7f(0x1bc)]&&(this[_0x3e3f7f(0x1ee)](),this[_0x3e3f7f(0x223)][_0x3e3f7f(0x1da)]=!0x0,this[_0x3e3f7f(0x1bc)][_0x3e3f7f(0x228)](),this[_0x3e3f7f(0x1bc)][_0x3e3f7f(0x1e4)]({'target':this[_0x3e3f7f(0x223)][_0x3e3f7f(0x1cf)],'limiter':document[_0x3e3f7f(0x20b)](_0x3e3f7f(0x1cb))}));}[_0x9c7903(0x1e8)](){const _0x5de340=_0x9c7903;this[_0x5de340(0x223)]&&this[_0x5de340(0x1bc)]&&(this[_0x5de340(0x223)][_0x5de340(0x1da)]=!0x1,this[_0x5de340(0x1bc)][_0x5de340(0x1ca)]());}[_0x9c7903(0x21d)](){const _0x4182a1=_0x9c7903;this[_0x4182a1(0x229)][_0x4182a1(0x21d)](),this[_0x4182a1(0x1e8)](),this[_0x4182a1(0x1e6)](),this[_0x4182a1(0x223)]&&(this[_0x4182a1(0x223)][_0x4182a1(0x1f2)]=''),this[_0x4182a1(0x1bc)]&&this[_0x4182a1(0x1bc)][_0x4182a1(0x1e7)][_0x4182a1(0x21d)]();}[_0x9c7903(0x224)](){const _0x3b44ed=_0x9c7903;this[_0x3b44ed(0x1ba)]&&(this[_0x3b44ed(0x1ba)][_0x3b44ed(0x1ff)](),this[_0x3b44ed(0x1ba)]=null),this[_0x3b44ed(0x223)]&&(this[_0x3b44ed(0x223)][_0x3b44ed(0x224)](),this[_0x3b44ed(0x223)]=null),this[_0x3b44ed(0x1bc)]&&(this[_0x3b44ed(0x1bc)][_0x3b44ed(0x224)](),this[_0x3b44ed(0x1bc)]=null);}[_0x9c7903(0x1be)](){const _0xdf0117=_0x9c7903;if(!this[_0xdf0117(0x1d3)])return;if(!this[_0xdf0117(0x200)]())return void(this[_0xdf0117(0x1b4)]=!0x0);this[_0xdf0117(0x1b4)]=!0x1;const _0x122510=[...this[_0xdf0117(0x21f)],...this[_0xdf0117(0x229)]],_0x23e119=this[_0xdf0117(0x21a)](),_0x5acf12=this[_0xdf0117(0x1f6)](_0x23e119,_0x122510),_0x496f75=_0x23e119[_0xdf0117(0x238)];_0x496f75&&this[_0xdf0117(0x1b6)](_0x496f75),_0x23e119[_0xdf0117(0x233)](),this[_0xdf0117(0x1ef)](_0x122510,_0x5acf12);}[_0x9c7903(0x218)](){const _0x5b7e76=_0x9c7903;this[_0x5b7e76(0x223)]=this[_0x5b7e76(0x1bb)](),this[_0x5b7e76(0x1bc)]=this[_0x5b7e76(0x1c1)](),this[_0x5b7e76(0x223)][_0x5b7e76(0x1f7)](),this[_0x5b7e76(0x1d3)][_0x5b7e76(0x217)](this[_0x5b7e76(0x223)][_0x5b7e76(0x1cf)]),this[_0x5b7e76(0x223)]['on'](_0x5b7e76(0x1ac),()=>{const _0x1e00c0=_0x5b7e76;this[_0x1e00c0(0x1e1)]();}),_0x3fbf77({'emitter':this[_0x5b7e76(0x1bc)],'contextElements':[this[_0x5b7e76(0x1bc)][_0x5b7e76(0x1cf)],this[_0x5b7e76(0x223)][_0x5b7e76(0x1cf)]],'callback':()=>this[_0x5b7e76(0x1e8)](),'activator':()=>this[_0x5b7e76(0x223)][_0x5b7e76(0x1da)]});}[_0x9c7903(0x1bb)](){const _0xcd64e5=_0x9c7903,_0x53a0c9=new _0x231815(this[_0xcd64e5(0x1b0)]);_0x53a0c9[_0xcd64e5(0x1e0)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0xe98797=[this[_0xcd64e5(0x1d4)][_0xcd64e5(0x1a9)][_0xcd64e5(0x1ce)]];return this[_0xcd64e5(0x1d4)][_0xcd64e5(0x1a9)][_0xcd64e5(0x210)]&&_0xe98797[_0xcd64e5(0x205)](this[_0xcd64e5(0x1d4)][_0xcd64e5(0x1a9)][_0xcd64e5(0x210)]),_0x53a0c9[_0xcd64e5(0x227)]({'attributes':{'class':_0xe98797}}),_0x53a0c9;}[_0x9c7903(0x1c1)](){const _0x4bca73=_0x9c7903,_0x186fad=new _0x359e33(this[_0x4bca73(0x1b0)]);return _0x186fad[_0x4bca73(0x227)]({'attributes':{'class':this[_0x4bca73(0x1d4)][_0x4bca73(0x1a9)][_0x4bca73(0x1fd)]}}),this[_0x4bca73(0x1c8)][_0x4bca73(0x1a8)](_0x186fad),_0x186fad;}[_0x9c7903(0x1ee)](){const _0x56b28e=_0x9c7903;if(this[_0x56b28e(0x1bc)]&&(this[_0x56b28e(0x1bc)][_0x56b28e(0x1e7)][_0x56b28e(0x21d)](),this[_0x56b28e(0x229)][_0x56b28e(0x1a4)]>0x0)){this[_0x56b28e(0x229)][_0x56b28e(0x1f8)](_0x256fcc=>{const _0x4f2e4e=_0x56b28e;_0x256fcc[_0x4f2e4e(0x1ab)]();});const _0x2ef39b=new _0x205eec(this[_0x56b28e(0x1b0)]);_0x2ef39b[_0x56b28e(0x230)]({'tag':_0x56b28e(0x1d1),'attributes':{'class':this[_0x56b28e(0x1d4)][_0x56b28e(0x1a9)][_0x56b28e(0x1b3)]},'children':this[_0x56b28e(0x229)]}),this[_0x56b28e(0x1bc)][_0x56b28e(0x1e7)][_0x56b28e(0x1a8)](_0x2ef39b);}}[_0x9c7903(0x1e1)](){const _0x4ecee0=_0x9c7903;this[_0x4ecee0(0x223)][_0x4ecee0(0x1da)]?this[_0x4ecee0(0x1e8)]():this[_0x4ecee0(0x239)]();}[_0x9c7903(0x1e6)](){const _0x49fd7d=_0x9c7903,_0x35c278=this[_0x49fd7d(0x229)][_0x49fd7d(0x1a4)]>0x0;this[_0x49fd7d(0x223)]?.[_0x49fd7d(0x1cf)]&&(this[_0x49fd7d(0x223)][_0x49fd7d(0x1cf)][_0x49fd7d(0x222)][_0x49fd7d(0x1db)]=_0x35c278?'':_0x49fd7d(0x1f4));}[_0x9c7903(0x213)](){const _0x4b4d1a=_0x9c7903;this[_0x4b4d1a(0x223)]?.[_0x4b4d1a(0x1da)]&&this[_0x4b4d1a(0x1bc)]?.[_0x4b4d1a(0x1f5)]&&this[_0x4b4d1a(0x223)][_0x4b4d1a(0x1cf)]&&this[_0x4b4d1a(0x1bc)][_0x4b4d1a(0x1e4)]({'target':this[_0x4b4d1a(0x223)][_0x4b4d1a(0x1cf)],'limiter':document[_0x4b4d1a(0x20b)](_0x4b4d1a(0x1cb))});}[_0x9c7903(0x1cd)](_0x1e9aab){const _0x24a417=_0x9c7903,_0x1030ca=this[_0x24a417(0x1d3)]?.[_0x24a417(0x1b2)][_0x24a417(0x1d8)]()||_0x24a417(0x1d1),_0x52ad07=this[_0x24a417(0x1d3)]?.[_0x24a417(0x1d5)];if(_0x52ad07){const _0x3bda70=_0x52ad07[0x0]||'',_0x269b5e=_0x1e9aab[_0x24a417(0x20b)]('.'+_0x3bda70),_0x6f07ea=_0x1e9aab[_0x24a417(0x20b)](_0x1030ca);return _0x269b5e||_0x6f07ea||_0x1e9aab;}return _0x1e9aab[_0x24a417(0x20b)](_0x1030ca)||_0x1e9aab;}[_0x9c7903(0x225)](){const _0x5090b1=_0x9c7903,_0x2a610b=this[_0x5090b1(0x1d6)]?.[_0x5090b1(0x1cf)]||this[_0x5090b1(0x1d3)];if(!_0x2a610b)return bn;const _0x1095a1=window[_0x5090b1(0x209)](_0x2a610b)[_0x5090b1(0x1f0)];if(_0x5090b1(0x1f9)===_0x1095a1||_0x5090b1(0x235)===_0x1095a1||!_0x1095a1){const _0x191c5e=_0x2a610b[_0x5090b1(0x221)];if(_0x191c5e){const _0x4cb4f8=window[_0x5090b1(0x209)](_0x191c5e);return _0x5090b1(0x1f9)!==_0x4cb4f8[_0x5090b1(0x1f0)]?_0x4cb4f8[_0x5090b1(0x1f0)]:bn;}return bn;}return _0x1095a1;}[_0x9c7903(0x212)](_0x50749f,_0x8fb4ff){const _0x3e6084=_0x9c7903;this[_0x3e6084(0x1d4)][_0x3e6084(0x1a9)][_0x3e6084(0x207)]&&_0x50749f[_0x3e6084(0x1d5)][_0x3e6084(0x1a8)](this[_0x3e6084(0x1d4)][_0x3e6084(0x1a9)][_0x3e6084(0x207)]),_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x1f0)]=_0x8fb4ff,_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x206)]=_0x3e6084(0x1c7),_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x22d)]=_0x3e6084(0x203),_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x1d2)]=_0x3e6084(0x203),_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x1a3)]='0',_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x22a)]=_0x3e6084(0x1f4),_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x1ea)]='-1',_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x1b1)]=_0x3e6084(0x204),_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x1db)]=_0x3e6084(0x1b9),_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x216)]=_0x3e6084(0x1e3);}[_0x9c7903(0x1b6)](_0x3eacc3){const _0x540f21=_0x9c7903;_0x3eacc3[_0x540f21(0x1f8)](({element:_0x22288c,originalDisplay:_0x30da8c,originalVisibility:_0x153380})=>{const _0x2a8455=_0x540f21;_0x22288c[_0x2a8455(0x222)][_0x2a8455(0x1db)]=_0x30da8c,_0x22288c[_0x2a8455(0x222)][_0x2a8455(0x1b1)]=_0x153380;});}[_0x9c7903(0x1de)](_0x5004f5){const _0x51da38=_0x9c7903,_0x3bd94=[];let _0x121e17=_0x5004f5;for(;_0x121e17&&_0x121e17!==document[_0x51da38(0x1dd)];){const _0xb9a42a=window[_0x51da38(0x209)](_0x121e17);_0x51da38(0x1f4)!==_0xb9a42a[_0x51da38(0x1db)]&&_0x51da38(0x20e)!==_0xb9a42a[_0x51da38(0x1b1)]||(_0x3bd94[_0x51da38(0x205)]({'element':_0x121e17,'originalDisplay':_0x121e17[_0x51da38(0x222)][_0x51da38(0x1db)],'originalVisibility':_0x121e17[_0x51da38(0x222)][_0x51da38(0x1b1)]}),_0x121e17[_0x51da38(0x222)][_0x51da38(0x1db)]=_0x51da38(0x1bd),_0x121e17[_0x51da38(0x222)][_0x51da38(0x1b1)]=_0x51da38(0x1c4)),_0x121e17=_0x121e17[_0x51da38(0x221)];}return _0x3bd94;}[_0x9c7903(0x1a5)](){const _0x286436=_0x9c7903;let _0x351433,_0x328883;return this[_0x286436(0x1d6)]?.[_0x286436(0x1cf)]?(_0x351433=this[_0x286436(0x1d6)][_0x286436(0x1cf)][_0x286436(0x20d)](!0x0),_0x328883=this[_0x286436(0x1cd)](_0x351433)):(_0x351433=document[_0x286436(0x1ad)](_0x286436(0x1d1)),_0x328883=_0x351433),{'calculationContainer':_0x351433,'targetContainer':_0x328883};}[_0x9c7903(0x21a)](){const _0x1276c4=_0x9c7903,{calculationContainer:_0x2e0625,targetContainer:_0x1c00a3}=this[_0x1276c4(0x1a5)](),_0x5da16f=this[_0x1276c4(0x225)]();this[_0x1276c4(0x212)](_0x2e0625,_0x5da16f);const _0x53e1f8=this[_0x1276c4(0x1d6)]?.[_0x1276c4(0x1cf)]||this[_0x1276c4(0x1d3)],_0x271323=_0x53e1f8?.[_0x1276c4(0x221)];_0x271323?_0x271323[_0x1276c4(0x217)](_0x2e0625):document[_0x1276c4(0x1dd)][_0x1276c4(0x217)](_0x2e0625),_0x2e0625[_0x1276c4(0x1fa)]=_0x1c00a3;const _0xf17bc=this[_0x1276c4(0x1de)](_0x271323||null);return _0x2e0625[_0x1276c4(0x1ed)],_0x2e0625[_0x1276c4(0x238)]=_0xf17bc,_0x2e0625;}[_0x9c7903(0x1f6)](_0x1b7357,_0x40dabd){const _0x2efb42=_0x9c7903,_0x429850=_0x1b7357[_0x2efb42(0x1fa)]||_0x1b7357,_0x5e5dbc=[],{rowCount:_0x54311d}=this[_0x2efb42(0x1d0)](_0x429850,_0x40dabd);if(_0x54311d<=this[_0x2efb42(0x1d4)][_0x2efb42(0x1aa)])return _0x5e5dbc;const _0x13d641=_0x40dabd[_0x2efb42(0x1f1)]();for(;_0x13d641[_0x2efb42(0x1a4)]>0x0;){if(this[_0x2efb42(0x1eb)](_0x1b7357,_0x429850,_0x13d641)){const _0x33b68f=_0x40dabd[_0x2efb42(0x231)](_0x25e9db=>!_0x13d641[_0x2efb42(0x201)](_0x25e9db));_0x5e5dbc[_0x2efb42(0x205)](..._0x33b68f);break;}if(!_0x13d641[_0x2efb42(0x214)]())break;}return _0x5e5dbc;}[_0x9c7903(0x1d0)](_0x3b69f9,_0x3f26e4){const _0x251bce=_0x9c7903;_0x3b69f9[_0x251bce(0x226)]='',_0x3f26e4[_0x251bce(0x1f8)](_0x1ccf98=>{const _0x4fd6e1=_0x251bce;if(_0x1ccf98[_0x4fd6e1(0x1cf)]){const _0x148d59=_0x1ccf98[_0x4fd6e1(0x1cf)][_0x4fd6e1(0x20d)](!0x0);_0x3b69f9[_0x4fd6e1(0x217)](_0x148d59);}}),_0x3b69f9[_0x251bce(0x1ed)];const _0x4c8fde=_0x3b69f9[_0x251bce(0x22f)],_0x3c198d=[];return Array[_0x251bce(0x1bf)](_0x4c8fde)[_0x251bce(0x1f8)](_0x16d005=>{const _0x3cd275=_0x251bce,_0x116565=_0x16d005[_0x3cd275(0x220)]()[_0x3cd275(0x22d)];_0x3c198d[_0x3cd275(0x1ae)](_0xcb327b=>Math[_0x3cd275(0x1e2)](_0xcb327b-_0x116565)<this[_0x3cd275(0x1d4)][_0x3cd275(0x21c)])||_0x3c198d[_0x3cd275(0x205)](_0x116565);}),{'rowCount':_0x3c198d[_0x251bce(0x1a4)]};}[_0x9c7903(0x232)](){const _0x3efe20=_0x9c7903,_0x25c5dd=document[_0x3efe20(0x1ad)](_0x3efe20(0x1d9));return _0x25c5dd[_0x3efe20(0x1c5)]=this[_0x3efe20(0x1d4)][_0x3efe20(0x1a9)][_0x3efe20(0x1ce)],this[_0x3efe20(0x1d4)][_0x3efe20(0x1a9)][_0x3efe20(0x210)]&&_0x25c5dd[_0x3efe20(0x1d5)][_0x3efe20(0x1a8)](this[_0x3efe20(0x1d4)][_0x3efe20(0x1a9)][_0x3efe20(0x210)]),_0x25c5dd[_0x3efe20(0x20c)]=_0x3efe20(0x21e),_0x25c5dd;}[_0x9c7903(0x1eb)](_0xcb27e,_0x58c311,_0x326f73){const _0x3b2015=_0x9c7903;this[_0x3b2015(0x1d0)](_0x58c311,_0x326f73);const _0x5c5c0f=this[_0x3b2015(0x232)]();_0xcb27e[_0x3b2015(0x217)](_0x5c5c0f),_0xcb27e[_0x3b2015(0x1ed)];const _0x2e842b=[..._0x58c311[_0x3b2015(0x22f)],_0x5c5c0f],_0x7bcff2=[];_0x2e842b[_0x3b2015(0x1f8)](_0x65701e=>{const _0x50fc69=_0x3b2015,_0x2a4ea8=_0x65701e[_0x50fc69(0x220)]()[_0x50fc69(0x22d)];_0x7bcff2[_0x50fc69(0x1ae)](_0x57dd11=>Math[_0x50fc69(0x1e2)](_0x57dd11-_0x2a4ea8)<this[_0x50fc69(0x1d4)][_0x50fc69(0x21c)])||_0x7bcff2[_0x50fc69(0x205)](_0x2a4ea8);});const _0x40ca99=_0x7bcff2[_0x3b2015(0x1a4)];return _0x5c5c0f[_0x3b2015(0x233)](),_0x40ca99<=this[_0x3b2015(0x1d4)][_0x3b2015(0x1aa)];}[_0x9c7903(0x22c)](_0x1053a7,_0x3b106f){const _0x4b0e5d=_0x9c7903;this[_0x4b0e5d(0x21f)][_0x4b0e5d(0x21d)](),this[_0x4b0e5d(0x229)][_0x4b0e5d(0x21d)](),_0x1053a7[_0x4b0e5d(0x1f8)](_0x17030e=>{const _0x5a9375=_0x4b0e5d;_0x3b106f[_0x5a9375(0x201)](_0x17030e)?this[_0x5a9375(0x229)][_0x5a9375(0x1a8)](_0x17030e):this[_0x5a9375(0x21f)][_0x5a9375(0x1a8)](_0x17030e);});}[_0x9c7903(0x202)](_0x626893){const _0x3279c6=_0x9c7903;if(_0x626893>0x0&&!this[_0x3279c6(0x223)]&&this[_0x3279c6(0x218)](),_0x626893>0x0&&this[_0x3279c6(0x223)]){const _0x510d96=''+this[_0x3279c6(0x1d4)][_0x3279c6(0x1c6)]+(_0x626893<0x63?_0x626893:'99');this[_0x3279c6(0x223)][_0x3279c6(0x1f2)]=_0x510d96;}this[_0x3279c6(0x1ee)](),this[_0x3279c6(0x1e6)](),this[_0x3279c6(0x213)]();}[_0x9c7903(0x1ef)](_0x1364fb,_0x5e7eca){const _0x5ce6f1=_0x9c7903;this[_0x5ce6f1(0x22c)](_0x1364fb,_0x5e7eca),this[_0x5ce6f1(0x202)](_0x5e7eca[_0x5ce6f1(0x1a4)]);}[_0x9c7903(0x1a7)](){const _0x5b7f06=_0x9c7903;this[_0x5b7f06(0x1d3)]&&_0x5b7f06(0x1cc)!=typeof IntersectionObserver&&(this[_0x5b7f06(0x1ba)]=new IntersectionObserver(_0x80c32d=>{const _0x3b67f1=_0x5b7f06;_0x80c32d[0x0][_0x3b67f1(0x1df)]&&this[_0x3b67f1(0x1b4)]&&requestAnimationFrame(()=>{const _0x2c4ab0=_0x3b67f1;this[_0x2c4ab0(0x1be)]();});},{'threshold':0.01,'rootMargin':_0x5b7f06(0x1a6)}),this[_0x5b7f06(0x1ba)][_0x5b7f06(0x211)](this[_0x5b7f06(0x1d3)]));}[_0x9c7903(0x200)](){const _0x1a4d74=_0x9c7903;if(!this[_0x1a4d74(0x1d3)])return!0x1;if(!this[_0x1a4d74(0x1d3)][_0x1a4d74(0x20a)])return!0x1;const _0x2a9cd5=this[_0x1a4d74(0x1d3)][_0x1a4d74(0x220)]();if(0x0===_0x2a9cd5[_0x1a4d74(0x1f0)]||0x0===_0x2a9cd5[_0x1a4d74(0x1c9)])return!0x1;const _0xb7db23=window[_0x1a4d74(0x208)]||document[_0x1a4d74(0x22b)][_0x1a4d74(0x1e9)],_0x4800ba=window[_0x1a4d74(0x20f)]||document[_0x1a4d74(0x22b)][_0x1a4d74(0x236)],_0x2aa5fd=0xc8;return _0x2a9cd5[_0x1a4d74(0x234)]>=-0xc8&&_0x2a9cd5[_0x1a4d74(0x22d)]<=_0xb7db23+_0x2aa5fd&&_0x2a9cd5[_0x1a4d74(0x1e5)]>=-0xc8&&_0x2a9cd5[_0x1a4d74(0x1d2)]<=_0x4800ba+_0x2aa5fd;}}function _0x30d5(){const _0x27c971=['_createMockButton','remove','bottom','0px','clientWidth','85112AogiSq','_ancestorsToRestore','showBalloonPanel','opacity','length','_createContainerElements','50px','_setupVisibilityObserver','add','cssClasses','maxVisibleRows','disableAnimationOnEnter','execute','createElement','some','3516097tawyAd','_locale','visibility','tagName','overflowContainer','_pendingCalculation','4584IjeIGK','_restoreAncestorVisibility','66532nYVkkF','10okSKfK','block\x20!important','_intersectionObserver','_createShowMoreButtonView','_showMoreBalloonPanelView','block','_checkAndHandleOverflow','from','overflowChips','_createShowMoreBalloonPanelView','5670RRGBlN','617920SHbxWc','visible','className','showMoreLabelPrefix','absolute','_bodyCollection','height','hide','.ck-ai-chat','undefined','_findTargetContainer','showMoreButton','element','_renderChipsAndCountRows','div','left','_containerElement','_config','classList','_parentView','300px','toLowerCase','button','isOn','display','906fCezNt','body','_makeAncestorsVisible','isIntersecting','set','_handleShowMoreButtonClick','abs','border-box','pin','right','_updateShowMoreButtonVisibility','content','hideBalloonPanel','clientHeight','zIndex','_testButtonFit','1833204GBUtQv','offsetWidth','_updateBalloonContent','_applyOverflowResults','width','slice','label','141XWqGOI','none','isVisible','_calculateOverflowInContainer','render','forEach','auto','_targetContainer','ck-calculation-container','showMoreButtonView','showMoreBalloon','setContainerElement','disconnect','_isContainerVisible','includes','_updateOverflowUI','-9999px','visible\x20!important','push','position','calculationContainer','innerHeight','getComputedStyle','isConnected','querySelector','textContent','cloneNode','hidden','innerWidth','controlsButton','observe','_applyCalculationStyles','_repinBalloonPanel','pop','reorganizeChips','boxSizing','appendChild','_createShowMoreButton','48665kHWTwP','_createCalculationContainer','9xQZwYy','rowDetectionTolerance','clear','+\x201','_visibleChips','getBoundingClientRect','parentElement','style','_showMoreButtonView','destroy','_calculateContainerWidth','innerHTML','extendTemplate','show','_overflowChips','pointerEvents','documentElement','_distributeChips','top','55fodMPO','children','setTemplate','filter'];_0x30d5=function(){return _0x27c971;};return _0x30d5();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x182a88=_0x5aa0;(function(_0x76c274,_0x38692c){const _0x48e183=_0x5aa0,_0x526ec7=_0x76c274();while(!![]){try{const _0x923fbf=parseInt(_0x48e183(0x1a6))/0x1+-parseInt(_0x48e183(0x1b6))/0x2+parseInt(_0x48e183(0x19d))/0x3+-parseInt(_0x48e183(0x1b5))/0x4+-parseInt(_0x48e183(0x181))/0x5+-parseInt(_0x48e183(0x1a3))/0x6*(parseInt(_0x48e183(0x1a8))/0x7)+parseInt(_0x48e183(0x184))/0x8;if(_0x923fbf===_0x38692c)break;else _0x526ec7['push'](_0x526ec7['shift']());}catch(_0x391afd){_0x526ec7['push'](_0x526ec7['shift']());}}}(_0x2011,0x3d43b));import{ButtonView as _0x3db7eb,IconView as _0x1f666d}from'ckeditor5/src/ui.js';function _0x5aa0(_0x23cfc8,_0x16c4ff){const _0x20112d=_0x2011();return _0x5aa0=function(_0x5aa0ec,_0x1950a4){_0x5aa0ec=_0x5aa0ec-0x180;let _0x3243fc=_0x20112d[_0x5aa0ec];return _0x3243fc;},_0x5aa0(_0x23cfc8,_0x16c4ff);}import{IconClose as _0x45b72d,IconDocument as _0x5392e1,IconFileUpload as _0xb4293c,IconLink as _0x5cdbcf,IconSelection as _0x407609}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x12e6a7}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0xbaf44a}from'../../../aicore/ui/aispinner.js';const xn={'file':_0xb4293c,'document':_0x5392e1,'web-resource':_0x5cdbcf,'text':_0xb4293c,'selection':_0x407609},bn=_0x182a88(0x1b0),wn=_0x182a88(0x1a4),Tn=_0x182a88(0x1b1),En=_0x182a88(0x1ab),fn=_0x182a88(0x187),An=_0x182a88(0x19b),Cn='n';export class AIChatContextItemButtonView extends _0x3db7eb{constructor(_0x126cf4,_0x4c9d8b,_0x1a8cf8,_0x9028b,_0x4395ca=!0x1){const _0x5aade3=_0x182a88;super(_0x126cf4),this[_0x5aade3(0x1a2)]=_0x9028b,this[_0x5aade3(0x1a1)](_0x4c9d8b,_0x1a8cf8,_0x4395ca),this[_0x5aade3(0x18e)]();}[_0x182a88(0x1bc)](){const _0x7ec0d6=_0x182a88;super[_0x7ec0d6(0x1bc)](),this[_0x7ec0d6(0x1a2)]&&this[_0x7ec0d6(0x198)]&&(this[_0x7ec0d6(0x198)][_0x7ec0d6(0x1ba)][_0x7ec0d6(0x1a5)](_0x7ec0d6(0x1b4)),this[_0x7ec0d6(0x180)](this[_0x7ec0d6(0x198)],()=>{const _0x124f2b=_0x7ec0d6;this[_0x124f2b(0x198)]&&this[_0x124f2b(0x198)][_0x124f2b(0x1ba)][_0x124f2b(0x190)](_0x124f2b(0x1b4));}));}[_0x182a88(0x19e)](){const _0x157a59=_0x182a88;this[_0x157a59(0x1a2)]=!0x1,this[_0x157a59(0x198)]&&this[_0x157a59(0x198)][_0x157a59(0x1ba)][_0x157a59(0x190)](_0x157a59(0x1b4));}[_0x182a88(0x1a1)](_0x54b0f3,_0x1e2d17,_0x9167e7){const _0x4353cc=_0x182a88;this[_0x4353cc(0x1bd)](_0x4353cc(0x1b3),_0x54b0f3[_0x4353cc(0x1b3)]),this[_0x4353cc(0x1bd)](_0x4353cc(0x188),!0x0),this[_0x4353cc(0x1bd)](_0x4353cc(0x189),_0x54b0f3[_0x4353cc(0x1be)]),this[_0x4353cc(0x1bd)]('id',_0x54b0f3[_0x4353cc(0x1a7)]),this[_0x4353cc(0x1bd)](_0x4353cc(0x1af),_0x1e2d17),this[_0x4353cc(0x1bd)](_0x4353cc(0x1ac),_0x9167e7);}[_0x182a88(0x18e)](){const _0x5e23c=_0x182a88,_0x2e1cfc=this[_0x5e23c(0x1a9)](),_0x13445b=this[_0x5e23c(0x18c)](),_0x33a9a8=this[_0x5e23c(0x19c)];this[_0x5e23c(0x191)]({'tag':_0x5e23c(0x1b7),'attributes':this[_0x5e23c(0x186)](_0x33a9a8),'children':this[_0x5e23c(0x1b9)](_0x2e1cfc,_0x13445b,_0x33a9a8)});}[_0x182a88(0x186)](_0x49631d){const _0xf03b3a=_0x182a88;return{'class':[bn,_0x49631d['if'](_0xf03b3a(0x189),Tn,_0x111d86=>_0xf03b3a(0x182)==_0x111d86),_0x49631d['if'](_0xf03b3a(0x189),wn,_0x576dc1=>_0xf03b3a(0x1a0)==_0x576dc1)],'data-cke-tooltip-text':_0x49631d['to'](_0xf03b3a(0x1b3),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x182a88(0x1b9)](_0x2bf7cb,_0x400b4c,_0x2435c9){const _0x38a406=_0x182a88,_0x4b7fc0=this[_0x38a406(0x1bb)](_0x2435c9),_0x33b331=this[_0x38a406(0x197)]();return this[_0x38a406(0x1af)]?[_0x2bf7cb,_0x4b7fc0]:[_0x2bf7cb,_0x33b331,_0x4b7fc0,_0x400b4c];}[_0x182a88(0x1bb)](_0x2b81ef){const _0x47532b=_0x182a88;return{'tag':_0x47532b(0x1bf),'attributes':{'class':En},'children':[{'text':_0x2b81ef['to'](_0x47532b(0x1b3))}]};}[_0x182a88(0x18c)](){const _0x294578=_0x182a88,_0x8fde0=new _0x3db7eb(this[_0x294578(0x194)]);return _0x8fde0[_0x294578(0x1bd)]({'label':_0x12e6a7(this[_0x294578(0x194)],_0x294578(0x18a)),'icon':_0x45b72d}),this[_0x294578(0x19a)](_0x8fde0),_0x8fde0;}[_0x182a88(0x19a)](_0x2a4ce7){const _0x13a3fb=_0x182a88;_0x2a4ce7['on'](_0x13a3fb(0x1aa),()=>{const _0x251c44=_0x13a3fb;this[_0x251c44(0x183)](_0x251c44(0x1ad),this['id']);});}[_0x182a88(0x1a9)](){const _0x4b7409=_0x182a88,_0x3816fd=this[_0x4b7409(0x19c)],_0x1939d8=new _0x1f666d();return _0x1939d8[_0x4b7409(0x193)]=xn[this[_0x4b7409(0x189)]],_0x1939d8[_0x4b7409(0x1b2)]({'attributes':{'class':[fn,_0x3816fd['if'](_0x4b7409(0x1ac),_0x4b7409(0x192),_0x179752=>_0x179752)]}}),_0x1939d8;}[_0x182a88(0x180)](_0x432e62,_0x260b3d){const _0x36d78b=_0x182a88;if(!_0x432e62)return;const _0x5c1755=()=>{const _0x18a3ad=_0x5aa0;_0x260b3d(),_0x432e62[_0x18a3ad(0x18f)](_0x18a3ad(0x1b8),_0x5c1755),_0x432e62[_0x18a3ad(0x18f)](_0x18a3ad(0x199),_0x5c1755);};_0x432e62[_0x36d78b(0x18d)](_0x36d78b(0x1b8),_0x5c1755),_0x432e62[_0x36d78b(0x18d)](_0x36d78b(0x199),_0x5c1755);}[_0x182a88(0x197)](){const _0x2e8992=_0x182a88,_0x4abe0d=new _0xbaf44a(_0x2e8992(0x195));return _0x4abe0d[_0x2e8992(0x19f)](_0x2e8992(0x185))['to'](this,_0x2e8992(0x1ac),_0x5cf59b=>_0x5cf59b),_0x4abe0d;}}function _0x2011(){const _0x8cecbb=['_handleAnimationEndOnce','2123065qNQIGG','document','fire','6360656FZLLNt','isVisible','_createTemplateAttributes','ck-ai-chat-context-chip__type-icon','tooltip','itemType','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','slice','_createRemoveButton','addEventListener','_setupTemplate','removeEventListener','remove','setTemplate','ck-hidden','content','locale','small','lastIndexOf','_createLoaderIcon','element','webkitAnimationEnd','_setupRemoveButtonEvent','ck-ai-chat-context-controls__chip-tooltip','bindTemplate','969KDydXq','disableAnimationOnEnter','bind','selection','_initializeProperties','_isAnimationOnEnterEnabled','258hzpsoJ','ck-ai-chat-context-chip_wide','add','406190JjJARe','uiId','36155LOcqwe','_createIconView','execute','ck-ai-chat-context-chip__label','isLoading','removeContextItemChip','length','readonly','ck-ai-chat-context-chip','ck-ai-chat-context-chip_document','extendTemplate','label','ck-ai-chat-context-chip_new-chip','319732BPHjqy','448030moYprh','div','animationend','_createTemplateChildren','classList','_createLabelElement','render','set','type','span'];_0x2011=function(){return _0x8cecbb;};return _0x2011();}function In(_0x396732){const _0x2edece=_0x182a88;if(!_0x396732)return _0x396732;if(_0x396732[_0x2edece(0x1ae)]<=0x78)return _0x396732;const _0x3eba3a=_0x396732[_0x2edece(0x18b)](0x0,0x78),_0x1177a5=_0x3eba3a[_0x2edece(0x196)]('\x20');return(_0x1177a5>0x0?_0x3eba3a[_0x2edece(0x18b)](0x0,_0x1177a5):_0x3eba3a)+'…';}
23
+ const _0x19414f=_0x5f18;(function(_0x378fb8,_0x494296){const _0x4badfe=_0x5f18,_0x1686bb=_0x378fb8();while(!![]){try{const _0x27b3bf=parseInt(_0x4badfe(0xd3))/0x1+-parseInt(_0x4badfe(0xd2))/0x2*(-parseInt(_0x4badfe(0x105))/0x3)+-parseInt(_0x4badfe(0x109))/0x4*(parseInt(_0x4badfe(0x10a))/0x5)+-parseInt(_0x4badfe(0xf5))/0x6*(parseInt(_0x4badfe(0xdf))/0x7)+parseInt(_0x4badfe(0xf9))/0x8+parseInt(_0x4badfe(0xd7))/0x9*(parseInt(_0x4badfe(0xea))/0xa)+-parseInt(_0x4badfe(0xfa))/0xb;if(_0x27b3bf===_0x494296)break;else _0x1686bb['push'](_0x1686bb['shift']());}catch(_0x5d6781){_0x1686bb['push'](_0x1686bb['shift']());}}}(_0x3af6,0xe71d2));function _0x5f18(_0xd4d7c1,_0x145c65){const _0x3af64d=_0x3af6();return _0x5f18=function(_0x5f18d5,_0x1ec9f6){_0x5f18d5=_0x5f18d5-0xcc;let _0x461d1f=_0x3af64d[_0x5f18d5];return _0x461d1f;},_0x5f18(_0xd4d7c1,_0x145c65);}import{ButtonView as _0x2e1807,IconView as _0x40686d}from'ckeditor5/src/ui.js';import{IconClose as _0x1dca54,IconDocument as _0x53deef,IconFileUpload as _0x119768,IconLink as _0x2974f1,IconSelection as _0x486289}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1452f5}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x8507b8}from'../../../aicore/ui/aispinner.js';function _0x3af6(){const _0x28f917=['small','ck-ai-chat-context-chip_new-chip','_createTemplateChildren','classList','_createLoaderIcon','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','length','span','9454MOoaSf','587895pLNRHJ','execute','locale','ck-hidden','5004hSHxtX','uiId','_handleAnimationEndOnce','itemType','extendTemplate','selection','ck-ai-chat-context-chip__label','element','7RcDrOO','document','_initializeProperties','content','slice','ck-ai-chat-context-chip','setTemplate','removeContextItemChip','render','add','ck-ai-chat-context-chip_wide','9580TDdezG','type','_setupRemoveButtonEvent','div','set','ck-ai-chat-context-chip_document','animationend','disableAnimationOnEnter','readonly','remove','bind','5431170lPECBw','webkitAnimationEnd','removeEventListener','ck-ai-chat-context-controls__chip-tooltip','8612576OGnLOv','9935871kikwYv','lastIndexOf','fire','isLoading','_createRemoveButton','ck-ai-chat-context-chip__type-icon','tooltip','isVisible','addEventListener','_createIconView','_isAnimationOnEnterEnabled','1128WzFHVi','label','_setupTemplate','_createTemplateAttributes','4877476WIXIIh','5vSskPh','bindTemplate','_createLabelElement'];_0x3af6=function(){return _0x28f917;};return _0x3af6();}const An={'file':_0x119768,'document':_0x53deef,'web-resource':_0x2974f1,'text':_0x119768,'selection':_0x486289},Cn=_0x19414f(0xe4),On=_0x19414f(0xe9),vn=_0x19414f(0xef),yn=_0x19414f(0xdd),Ln=_0x19414f(0xff),Rn=_0x19414f(0xf8),Vn='n';export class AIChatContextItemButtonView extends _0x2e1807{constructor(_0x1883fd,_0x14b2f7,_0x508d1b,_0x395b8c,_0x1d230f=!0x1){const _0x293cc6=_0x19414f;super(_0x1883fd),this[_0x293cc6(0x104)]=_0x395b8c,this[_0x293cc6(0xe1)](_0x14b2f7,_0x508d1b,_0x1d230f),this[_0x293cc6(0x107)]();}[_0x19414f(0xe7)](){const _0x3bcfac=_0x19414f;super[_0x3bcfac(0xe7)](),this[_0x3bcfac(0x104)]&&this[_0x3bcfac(0xde)]&&(this[_0x3bcfac(0xde)][_0x3bcfac(0xcd)][_0x3bcfac(0xe8)](_0x3bcfac(0x10e)),this[_0x3bcfac(0xd9)](this[_0x3bcfac(0xde)],()=>{const _0x3ffdbf=_0x3bcfac;this[_0x3ffdbf(0xde)]&&this[_0x3ffdbf(0xde)][_0x3ffdbf(0xcd)][_0x3ffdbf(0xf3)](_0x3ffdbf(0x10e));}));}[_0x19414f(0xf1)](){const _0x4e7b1b=_0x19414f;this[_0x4e7b1b(0x104)]=!0x1,this[_0x4e7b1b(0xde)]&&this[_0x4e7b1b(0xde)][_0x4e7b1b(0xcd)][_0x4e7b1b(0xf3)](_0x4e7b1b(0x10e));}[_0x19414f(0xe1)](_0xc2b412,_0x56d205,_0x6d5c14){const _0x22e288=_0x19414f;this[_0x22e288(0xee)](_0x22e288(0x106),_0xc2b412[_0x22e288(0x106)]),this[_0x22e288(0xee)](_0x22e288(0x100),!0x0),this[_0x22e288(0xee)](_0x22e288(0xda),_0xc2b412[_0x22e288(0xeb)]),this[_0x22e288(0xee)]('id',_0xc2b412[_0x22e288(0xd8)]),this[_0x22e288(0xee)](_0x22e288(0xf2),_0x56d205),this[_0x22e288(0xee)](_0x22e288(0xfd),_0x6d5c14);}[_0x19414f(0x107)](){const _0x118301=_0x19414f,_0x3cdb52=this[_0x118301(0x103)](),_0x588018=this[_0x118301(0xfe)](),_0x48010a=this[_0x118301(0x10b)];this[_0x118301(0xe5)]({'tag':_0x118301(0xed),'attributes':this[_0x118301(0x108)](_0x48010a),'children':this[_0x118301(0xcc)](_0x3cdb52,_0x588018,_0x48010a)});}[_0x19414f(0x108)](_0xf64c64){const _0x26088e=_0x19414f;return{'class':[Cn,_0xf64c64['if'](_0x26088e(0xda),vn,_0x4004d2=>_0x26088e(0xe0)==_0x4004d2),_0xf64c64['if'](_0x26088e(0xda),On,_0x3890a5=>_0x26088e(0xdc)==_0x3890a5)],'data-cke-tooltip-text':_0xf64c64['to'](_0x26088e(0x106),jn),'data-cke-tooltip-position':Vn,'data-cke-tooltip-class':Rn};}[_0x19414f(0xcc)](_0x9f15a1,_0x2c4a7a,_0x4e8ff9){const _0x226958=_0x19414f,_0x5553d7=this[_0x226958(0x10c)](_0x4e8ff9),_0x1f8984=this[_0x226958(0xce)]();return this[_0x226958(0xf2)]?[_0x9f15a1,_0x5553d7]:[_0x9f15a1,_0x1f8984,_0x5553d7,_0x2c4a7a];}[_0x19414f(0x10c)](_0x405fe3){const _0x42d390=_0x19414f;return{'tag':_0x42d390(0xd1),'attributes':{'class':yn},'children':[{'text':_0x405fe3['to'](_0x42d390(0x106))}]};}[_0x19414f(0xfe)](){const _0x52d745=_0x19414f,_0x3fca4d=new _0x2e1807(this[_0x52d745(0xd5)]);return _0x3fca4d[_0x52d745(0xee)]({'label':_0x1452f5(this[_0x52d745(0xd5)],_0x52d745(0xcf)),'icon':_0x1dca54}),this[_0x52d745(0xec)](_0x3fca4d),_0x3fca4d;}[_0x19414f(0xec)](_0x53e970){const _0x18c9e0=_0x19414f;_0x53e970['on'](_0x18c9e0(0xd4),()=>{const _0x112b97=_0x18c9e0;this[_0x112b97(0xfc)](_0x112b97(0xe6),this['id']);});}[_0x19414f(0x103)](){const _0x5d0cb9=_0x19414f,_0x3148ef=this[_0x5d0cb9(0x10b)],_0x4a315b=new _0x40686d();return _0x4a315b[_0x5d0cb9(0xe2)]=An[this[_0x5d0cb9(0xda)]],_0x4a315b[_0x5d0cb9(0xdb)]({'attributes':{'class':[Ln,_0x3148ef['if'](_0x5d0cb9(0xfd),_0x5d0cb9(0xd6),_0x275936=>_0x275936)]}}),_0x4a315b;}[_0x19414f(0xd9)](_0x1049af,_0x56e4d1){const _0x1172b0=_0x19414f;if(!_0x1049af)return;const _0x1be226=()=>{const _0x3a8ad8=_0x5f18;_0x56e4d1(),_0x1049af[_0x3a8ad8(0xf7)](_0x3a8ad8(0xf0),_0x1be226),_0x1049af[_0x3a8ad8(0xf7)](_0x3a8ad8(0xf6),_0x1be226);};_0x1049af[_0x1172b0(0x102)](_0x1172b0(0xf0),_0x1be226),_0x1049af[_0x1172b0(0x102)](_0x1172b0(0xf6),_0x1be226);}[_0x19414f(0xce)](){const _0x5019c2=_0x19414f,_0x1e8a7b=new _0x8507b8(_0x5019c2(0x10d));return _0x1e8a7b[_0x5019c2(0xf4)](_0x5019c2(0x101))['to'](this,_0x5019c2(0xfd),_0x2294a2=>_0x2294a2),_0x1e8a7b;}}function jn(_0x1eae57){const _0x4e72d6=_0x19414f;if(!_0x1eae57)return _0x1eae57;if(_0x1eae57[_0x4e72d6(0xd0)]<=0x78)return _0x1eae57;const _0x31edee=_0x1eae57[_0x4e72d6(0xe3)](0x0,0x78),_0x19fd14=_0x31edee[_0x4e72d6(0xfb)]('\x20');return(_0x19fd14>0x0?_0x31edee[_0x4e72d6(0xe3)](0x0,_0x19fd14):_0x31edee)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x22fb17=_0x3841;(function(_0x302451,_0x48c407){const _0x105b37=_0x3841,_0x473348=_0x302451();while(!![]){try{const _0x229dae=parseInt(_0x105b37(0x1bb))/0x1*(-parseInt(_0x105b37(0x1b3))/0x2)+parseInt(_0x105b37(0x1a7))/0x3+-parseInt(_0x105b37(0x1ed))/0x4+-parseInt(_0x105b37(0x1d8))/0x5*(-parseInt(_0x105b37(0x1b7))/0x6)+-parseInt(_0x105b37(0x1dc))/0x7*(-parseInt(_0x105b37(0x1c9))/0x8)+parseInt(_0x105b37(0x1ef))/0x9+-parseInt(_0x105b37(0x1d2))/0xa*(parseInt(_0x105b37(0x1db))/0xb);if(_0x229dae===_0x48c407)break;else _0x473348['push'](_0x473348['shift']());}catch(_0x3979f3){_0x473348['push'](_0x473348['shift']());}}}(_0x3da2,0x2d466));import{FocusTracker as _0x17a72f,KeystrokeHandler as _0x3dc294}from'ckeditor5/src/utils.js';import{ButtonView as _0x2895cc,FocusCycler as _0x34d571,LabeledFieldView as _0x1f89f0,View as _0x26e446,FormHeaderView as _0x32e1b1,createLabeledInputText as _0x5bdabb,submitHandler as _0x3ed12f}from'ckeditor5/src/ui.js';import{IconCheck as _0x1a770f,IconPreviousArrow as _0x58dab6}from'@ckeditor/ckeditor5-icons';function _0x3841(_0x37c8c6,_0x5f0565){const _0x3da2bc=_0x3da2();return _0x3841=function(_0x384115,_0x55facb){_0x384115=_0x384115-0x1a7;let _0x424c6c=_0x3da2bc[_0x384115];return _0x424c6c;},_0x3841(_0x37c8c6,_0x5f0565);}import{getTranslation as _0x2c1d52}from'../../../aicore/utils/common-translations.js';const hh=_0x22fb17(0x1d1),rh=_0x22fb17(0x1c8);export class AIChatContextPanelUrlInputView extends _0x26e446{[_0x22fb17(0x1eb)];[_0x22fb17(0x1ab)];[_0x22fb17(0x1e0)];[_0x22fb17(0x1e2)];[_0x22fb17(0x1d5)];[_0x22fb17(0x1d0)];[_0x22fb17(0x1e4)];constructor(_0x47d0ba){const _0x1d6a00=_0x22fb17;super(_0x47d0ba),this[_0x1d6a00(0x1eb)]=new _0x17a72f(),this[_0x1d6a00(0x1ab)]=new _0x3dc294(),this[_0x1d6a00(0x1d0)]=this[_0x1d6a00(0x1ea)](),this[_0x1d6a00(0x1d5)]=this[_0x1d6a00(0x1b0)](),this[_0x1d6a00(0x1e4)]=this[_0x1d6a00(0x1ba)](),this[_0x1d6a00(0x1e0)]=this[_0x1d6a00(0x1a9)]([this[_0x1d6a00(0x1d0)],this[_0x1d6a00(0x1d5)],this[_0x1d6a00(0x1e4)]]),this[_0x1d6a00(0x1e2)]=new _0x34d571({'focusables':this[_0x1d6a00(0x1e0)],'focusTracker':this[_0x1d6a00(0x1eb)],'keystrokeHandler':this[_0x1d6a00(0x1ab)],'actions':{'focusPrevious':_0x1d6a00(0x1bf),'focusNext':_0x1d6a00(0x1ee)}}),this[_0x1d6a00(0x1b8)](),this[_0x1d6a00(0x1c6)](),this[_0x1d6a00(0x1e3)]();}[_0x22fb17(0x1cc)](){const _0x35c31f=_0x22fb17;super[_0x35c31f(0x1cc)](),this[_0x35c31f(0x1e0)][_0x35c31f(0x1c5)](_0x334abc=>{const _0x4b0f12=_0x35c31f;this[_0x4b0f12(0x1eb)][_0x4b0f12(0x1ae)](_0x334abc[_0x4b0f12(0x1c0)]),this[_0x4b0f12(0x1ab)][_0x4b0f12(0x1c7)](_0x334abc[_0x4b0f12(0x1c0)]);}),_0x3ed12f({'view':this}),this[_0x35c31f(0x1d7)]();}[_0x22fb17(0x1c1)](){const _0x4c46e8=_0x22fb17;super[_0x4c46e8(0x1c1)](),this[_0x4c46e8(0x1eb)][_0x4c46e8(0x1c1)](),this[_0x4c46e8(0x1ab)][_0x4c46e8(0x1c1)]();}[_0x22fb17(0x1d7)](){const _0x959be7=_0x22fb17;this[_0x959be7(0x1d5)][_0x959be7(0x1d7)]();}[_0x22fb17(0x1cf)](){const _0x4b16bf=_0x22fb17;return this[_0x4b16bf(0x1d5)][_0x4b16bf(0x1e7)][_0x4b16bf(0x1c0)]?.[_0x4b16bf(0x1c3)]?.[_0x4b16bf(0x1b6)]()||'';}[_0x22fb17(0x1d9)](){const _0x230e91=_0x22fb17;this[_0x230e91(0x1d5)][_0x230e91(0x1e7)][_0x230e91(0x1c0)][_0x230e91(0x1c3)]='',this[_0x230e91(0x1d5)][_0x230e91(0x1e8)]=null,this[_0x230e91(0x1e4)][_0x230e91(0x1df)]=!0x1;}[_0x22fb17(0x1ec)](_0x1de254){const _0x5d6424=_0x22fb17;this[_0x5d6424(0x1d5)][_0x5d6424(0x1e8)]=_0x1de254,this[_0x5d6424(0x1b2)](),this[_0x5d6424(0x1c4)](_0x5d6424(0x1b9));}[_0x22fb17(0x1e9)](){const _0x242ab2=_0x22fb17;this[_0x242ab2(0x1d5)][_0x242ab2(0x1e8)]=null,this[_0x242ab2(0x1b2)]();}[_0x22fb17(0x1ea)](){const _0x41a3f5=_0x22fb17,_0x376757=new _0x2895cc(this[_0x41a3f5(0x1de)]);return _0x376757[_0x41a3f5(0x1cb)]({'icon':_0x58dab6,'tooltip':_0x2c1d52(this[_0x41a3f5(0x1de)],_0x41a3f5(0x1b4)),'tooltipPosition':'n','class':_0x41a3f5(0x1cd)}),_0x376757;}[_0x22fb17(0x1b0)](){const _0x1a4e9b=_0x22fb17,_0x1c86c3=new _0x1f89f0(this[_0x1a4e9b(0x1de)],_0x5bdabb);return _0x1c86c3[_0x1a4e9b(0x1cb)]({'label':_0x2c1d52(this[_0x1a4e9b(0x1de)],_0x1a4e9b(0x1e5)),'class':_0x1a4e9b(0x1f0)}),_0x1c86c3[_0x1a4e9b(0x1e7)][_0x1a4e9b(0x1cb)]({'placeholder':_0x2c1d52(this[_0x1a4e9b(0x1de)],_0x1a4e9b(0x1ce))}),_0x1c86c3;}[_0x22fb17(0x1ba)](){const _0x41c1fc=_0x22fb17,_0x48475f=new _0x2895cc(this[_0x41c1fc(0x1de)]);return _0x48475f[_0x41c1fc(0x1cb)]({'icon':_0x1a770f,'tooltip':_0x2c1d52(this[_0x41c1fc(0x1de)],_0x41c1fc(0x1ad)),'tooltipPosition':'n','class':_0x41c1fc(0x1b5),'type':_0x41c1fc(0x1aa),'isEnabled':!0x1}),_0x48475f;}[_0x22fb17(0x1b8)](){const _0x2f36ce=_0x22fb17,_0x561971=new _0x32e1b1(this[_0x2f36ce(0x1de)],{'label':_0x2c1d52(this[_0x2f36ce(0x1de)],_0x2f36ce(0x1ad)),'class':_0x2f36ce(0x1bd)});_0x561971[_0x2f36ce(0x1a8)][_0x2f36ce(0x1ae)](this[_0x2f36ce(0x1d0)],0x0),this[_0x2f36ce(0x1d4)]({'tag':_0x2f36ce(0x1dd),'attributes':{'class':hh,'tabindex':'-1'},'children':[_0x561971,{'tag':_0x2f36ce(0x1bc),'attributes':{'class':rh},'children':[this[_0x2f36ce(0x1d5)],this[_0x2f36ce(0x1e4)]]}]});}[_0x22fb17(0x1c6)](){const _0x3853ab=_0x22fb17;this[_0x3853ab(0x1d0)]['on'](_0x3853ab(0x1e1),()=>{const _0x4dbdf3=_0x3853ab;this[_0x4dbdf3(0x1d9)](),this[_0x4dbdf3(0x1c4)](_0x4dbdf3(0x1d3));}),this[_0x3853ab(0x1d5)][_0x3853ab(0x1e7)]['on'](_0x3853ab(0x1b1),()=>{const _0x247ef1=_0x3853ab;this[_0x247ef1(0x1e9)](),this[_0x247ef1(0x1b2)](),this[_0x247ef1(0x1c4)](_0x247ef1(0x1b9));}),this['on'](_0x3853ab(0x1aa),_0x517ff5=>{const _0x3d0f5b=_0x3853ab;_0x517ff5[_0x3d0f5b(0x1da)](),this[_0x3d0f5b(0x1c2)]();});}[_0x22fb17(0x1e3)](){const _0x7e4f6e=_0x22fb17;this[_0x7e4f6e(0x1ab)][_0x7e4f6e(0x1cb)](_0x7e4f6e(0x1af),(_0x2fdca5,_0x378547)=>{const _0x4c4d69=_0x7e4f6e;this[_0x4c4d69(0x1d9)](),this[_0x4c4d69(0x1c4)](_0x4c4d69(0x1d3)),_0x378547();});}[_0x22fb17(0x1c2)](){const _0x1cae0a=_0x22fb17,_0x4442ca=this[_0x1cae0a(0x1cf)]()[_0x1cae0a(0x1b6)]();_0x4442ca?this[_0x1cae0a(0x1e6)](_0x4442ca)?(this[_0x1cae0a(0x1e9)](),this[_0x1cae0a(0x1c4)](_0x1cae0a(0x1ca),_0x4442ca)):this[_0x1cae0a(0x1ec)](_0x2c1d52(this[_0x1cae0a(0x1de)],_0x1cae0a(0x1be))):this[_0x1cae0a(0x1ec)](_0x2c1d52(this[_0x1cae0a(0x1de)],_0x1cae0a(0x1ac)));}[_0x22fb17(0x1b2)](){const _0x272635=_0x22fb17,_0x2411a1=this[_0x272635(0x1cf)]()[_0x272635(0x1b6)](),_0x18a838=!!this[_0x272635(0x1d5)][_0x272635(0x1e8)];this[_0x272635(0x1e4)][_0x272635(0x1df)]=_0x2411a1[_0x272635(0x1d6)]>0x0&&!_0x18a838;}[_0x22fb17(0x1e6)](_0x9f5208){try{return!!new URL(_0x9f5208);}catch{return!0x1;}}}function _0x3da2(){const _0x572468=['clear','stop','11gIiqpA','7Mwatyc','form','locale','isEnabled','_focusables','execute','focusCycler','_setupKeystrokes','confirmButton','AI_CHAT_CONTEXT_URL_LABEL','_isValidUrl','fieldView','errorText','clearError','_createBackButton','focusTracker','setError','1252068woiuYf','tab','1556739ojITuC','ck-labeled-field-view_empty','157824BSeyTP','children','createCollection','submit','keystrokes','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','AI_CHAT_CONTEXT_URL_ADD_URL','add','esc','_createUrlInputField','input','_updateConfirmButtonState','1322xllWPD','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-button-icon','trim','938466YnwuRD','_setupTemplate','refreshBalloon','_createConfirmButton','262LCpOPB','div','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_INVALID_ERROR','shift+tab','element','destroy','_handleSubmit','value','fire','forEach','_setupEventHandlers','listenTo','ck-ai-chat-context-controls__url-input-section','1096968pkLpsD','submitUrl','set','render','ck-button-icon\x20ck-button-back','AI_CHAT_CONTEXT_URL_PLACEHOLDER','getValue','backButton','ck-ai-chat-context-controls__url-form','38770ACtIcT','cancel','setTemplate','urlInputField','length','focus','10CldCsT'];_0x3da2=function(){return _0x572468;};return _0x3da2();}
23
+ const _0xbaec5=_0x30ef;function _0x30ef(_0x28d6b1,_0x5b51e7){const _0x4c86e6=_0x4c86();return _0x30ef=function(_0x30efce,_0x4c9c36){_0x30efce=_0x30efce-0x6a;let _0x2ae210=_0x4c86e6[_0x30efce];return _0x2ae210;},_0x30ef(_0x28d6b1,_0x5b51e7);}(function(_0x260dd4,_0x37040f){const _0x5885f0=_0x30ef,_0x2b0c88=_0x260dd4();while(!![]){try{const _0x68c26c=parseInt(_0x5885f0(0x81))/0x1*(-parseInt(_0x5885f0(0x88))/0x2)+-parseInt(_0x5885f0(0x84))/0x3+-parseInt(_0x5885f0(0x75))/0x4*(-parseInt(_0x5885f0(0x7c))/0x5)+parseInt(_0x5885f0(0x96))/0x6+-parseInt(_0x5885f0(0x6f))/0x7*(-parseInt(_0x5885f0(0xaf))/0x8)+parseInt(_0x5885f0(0x8c))/0x9+parseInt(_0x5885f0(0x6b))/0xa*(-parseInt(_0x5885f0(0x8e))/0xb);if(_0x68c26c===_0x37040f)break;else _0x2b0c88['push'](_0x2b0c88['shift']());}catch(_0x5a08a3){_0x2b0c88['push'](_0x2b0c88['shift']());}}}(_0x4c86,0x88d9a));import{FocusTracker as _0x248499,KeystrokeHandler as _0x5fd9e}from'ckeditor5/src/utils.js';import{ButtonView as _0x380f81,FocusCycler as _0xc910f7,LabeledFieldView as _0x34c9b3,View as _0x191dee,FormHeaderView as _0x2808fb,createLabeledInputText as _0x4b3dd0,submitHandler as _0x306fa2}from'ckeditor5/src/ui.js';import{IconCheck as _0x4162e2,IconPreviousArrow as _0x3ceeb2}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x432eb9}from'../../../aicore/utils/common-translations.js';function _0x4c86(){const _0x22cad7=['_isValidUrl','setError','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','shift+tab','14156VNPsbM','listenTo','fire','keystrokes','_createUrlInputField','submit','setTemplate','695RsfNVy','render','_setupTemplate','children','AI_CHAT_CONTEXT_URL_INVALID_ERROR','329wDbZUZ','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','_setupEventHandlers','2097534QOlHHr','AI_CHAT_CONTEXT_URL_PLACEHOLDER','AI_CHAT_CONTEXT_URL_ADD_URL','ck-button-icon\x20ck-button-back','2408KbKuRO','AI_CHAT_CONTEXT_URL_LABEL','destroy','ck-labeled-field-view_empty','3932739rVWVxh','element','55xvAefz','_createConfirmButton','trim','ck-ai-chat-context-controls__url-form','execute','getValue','add','_focusables','5370174xHYjvo','_setupKeystrokes','value','clear','_handleSubmit','tab','errorText','locale','form','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','forEach','input','esc','ck-button-icon','fieldView','set','div','focusCycler','_createBackButton','_updateConfirmButtonState','isEnabled','submitUrl','confirmButton','createCollection','ck-ai-chat-context-controls__url-input-section','560672KgxkVN','focusTracker','stop','backButton','refreshBalloon','clearError','1597690KDBpgo','length','focus','cancel','63jeYBBI','urlInputField'];_0x4c86=function(){return _0x22cad7;};return _0x4c86();}const oh=_0xbaec5(0x91),ch=_0xbaec5(0xae);export class AIChatContextPanelUrlInputView extends _0x191dee{[_0xbaec5(0xb0)];[_0xbaec5(0x78)];[_0xbaec5(0x95)];[_0xbaec5(0xa7)];[_0xbaec5(0x70)];[_0xbaec5(0xb2)];[_0xbaec5(0xac)];constructor(_0x56a10e){const _0x4e862b=_0xbaec5;super(_0x56a10e),this[_0x4e862b(0xb0)]=new _0x248499(),this[_0x4e862b(0x78)]=new _0x5fd9e(),this[_0x4e862b(0xb2)]=this[_0x4e862b(0xa8)](),this[_0x4e862b(0x70)]=this[_0x4e862b(0x79)](),this[_0x4e862b(0xac)]=this[_0x4e862b(0x8f)](),this[_0x4e862b(0x95)]=this[_0x4e862b(0xad)]([this[_0x4e862b(0xb2)],this[_0x4e862b(0x70)],this[_0x4e862b(0xac)]]),this[_0x4e862b(0xa7)]=new _0xc910f7({'focusables':this[_0x4e862b(0x95)],'focusTracker':this[_0x4e862b(0xb0)],'keystrokeHandler':this[_0x4e862b(0x78)],'actions':{'focusPrevious':_0x4e862b(0x74),'focusNext':_0x4e862b(0x9b)}}),this[_0x4e862b(0x7e)](),this[_0x4e862b(0x83)](),this[_0x4e862b(0x97)]();}[_0xbaec5(0x7d)](){const _0x4ad327=_0xbaec5;super[_0x4ad327(0x7d)](),this[_0x4ad327(0x95)][_0x4ad327(0xa0)](_0x2e976d=>{const _0x18e2fd=_0x4ad327;this[_0x18e2fd(0xb0)][_0x18e2fd(0x94)](_0x2e976d[_0x18e2fd(0x8d)]),this[_0x18e2fd(0x78)][_0x18e2fd(0x76)](_0x2e976d[_0x18e2fd(0x8d)]);}),_0x306fa2({'view':this}),this[_0x4ad327(0x6d)]();}[_0xbaec5(0x8a)](){const _0x451117=_0xbaec5;super[_0x451117(0x8a)](),this[_0x451117(0xb0)][_0x451117(0x8a)](),this[_0x451117(0x78)][_0x451117(0x8a)]();}[_0xbaec5(0x6d)](){const _0x3b6c71=_0xbaec5;this[_0x3b6c71(0x70)][_0x3b6c71(0x6d)]();}[_0xbaec5(0x93)](){const _0x38b4b0=_0xbaec5;return this[_0x38b4b0(0x70)][_0x38b4b0(0xa4)][_0x38b4b0(0x8d)]?.[_0x38b4b0(0x98)]?.[_0x38b4b0(0x90)]()||'';}[_0xbaec5(0x99)](){const _0x2792e0=_0xbaec5;this[_0x2792e0(0x70)][_0x2792e0(0xa4)][_0x2792e0(0x8d)][_0x2792e0(0x98)]='',this[_0x2792e0(0x70)][_0x2792e0(0x9c)]=null,this[_0x2792e0(0xac)][_0x2792e0(0xaa)]=!0x1;}[_0xbaec5(0x72)](_0x4f4d68){const _0x55a5cf=_0xbaec5;this[_0x55a5cf(0x70)][_0x55a5cf(0x9c)]=_0x4f4d68,this[_0x55a5cf(0xa9)](),this[_0x55a5cf(0x77)](_0x55a5cf(0xb3));}[_0xbaec5(0x6a)](){const _0x5b610c=_0xbaec5;this[_0x5b610c(0x70)][_0x5b610c(0x9c)]=null,this[_0x5b610c(0xa9)]();}[_0xbaec5(0xa8)](){const _0x39abe6=_0xbaec5,_0x19e922=new _0x380f81(this[_0x39abe6(0x9d)]);return _0x19e922[_0x39abe6(0xa5)]({'icon':_0x3ceeb2,'tooltip':_0x432eb9(this[_0x39abe6(0x9d)],_0x39abe6(0x73)),'tooltipPosition':'n','class':_0x39abe6(0x87)}),_0x19e922;}[_0xbaec5(0x79)](){const _0x1a132b=_0xbaec5,_0x1591d7=new _0x34c9b3(this[_0x1a132b(0x9d)],_0x4b3dd0);return _0x1591d7[_0x1a132b(0xa5)]({'label':_0x432eb9(this[_0x1a132b(0x9d)],_0x1a132b(0x89)),'class':_0x1a132b(0x8b)}),_0x1591d7[_0x1a132b(0xa4)][_0x1a132b(0xa5)]({'placeholder':_0x432eb9(this[_0x1a132b(0x9d)],_0x1a132b(0x85))}),_0x1591d7;}[_0xbaec5(0x8f)](){const _0x2a5112=_0xbaec5,_0x2f20c3=new _0x380f81(this[_0x2a5112(0x9d)]);return _0x2f20c3[_0x2a5112(0xa5)]({'icon':_0x4162e2,'tooltip':_0x432eb9(this[_0x2a5112(0x9d)],_0x2a5112(0x86)),'tooltipPosition':'n','class':_0x2a5112(0xa3),'type':_0x2a5112(0x7a),'isEnabled':!0x1}),_0x2f20c3;}[_0xbaec5(0x7e)](){const _0x1ce277=_0xbaec5,_0x3d917e=new _0x2808fb(this[_0x1ce277(0x9d)],{'label':_0x432eb9(this[_0x1ce277(0x9d)],_0x1ce277(0x86)),'class':_0x1ce277(0x82)});_0x3d917e[_0x1ce277(0x7f)][_0x1ce277(0x94)](this[_0x1ce277(0xb2)],0x0),this[_0x1ce277(0x7b)]({'tag':_0x1ce277(0x9e),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x3d917e,{'tag':_0x1ce277(0xa6),'attributes':{'class':ch},'children':[this[_0x1ce277(0x70)],this[_0x1ce277(0xac)]]}]});}[_0xbaec5(0x83)](){const _0x49b286=_0xbaec5;this[_0x49b286(0xb2)]['on'](_0x49b286(0x92),()=>{const _0x437b42=_0x49b286;this[_0x437b42(0x99)](),this[_0x437b42(0x77)](_0x437b42(0x6e));}),this[_0x49b286(0x70)][_0x49b286(0xa4)]['on'](_0x49b286(0xa1),()=>{const _0x2aaa34=_0x49b286;this[_0x2aaa34(0x6a)](),this[_0x2aaa34(0xa9)](),this[_0x2aaa34(0x77)](_0x2aaa34(0xb3));}),this['on'](_0x49b286(0x7a),_0x36a265=>{const _0x46e677=_0x49b286;_0x36a265[_0x46e677(0xb1)](),this[_0x46e677(0x9a)]();});}[_0xbaec5(0x97)](){const _0x33d718=_0xbaec5;this[_0x33d718(0x78)][_0x33d718(0xa5)](_0x33d718(0xa2),(_0x251a84,_0x3aa259)=>{const _0x2b0daa=_0x33d718;this[_0x2b0daa(0x99)](),this[_0x2b0daa(0x77)](_0x2b0daa(0x6e)),_0x3aa259();});}[_0xbaec5(0x9a)](){const _0x3494f5=_0xbaec5,_0x4c46a5=this[_0x3494f5(0x93)]()[_0x3494f5(0x90)]();_0x4c46a5?this[_0x3494f5(0x71)](_0x4c46a5)?(this[_0x3494f5(0x6a)](),this[_0x3494f5(0x77)](_0x3494f5(0xab),_0x4c46a5)):this[_0x3494f5(0x72)](_0x432eb9(this[_0x3494f5(0x9d)],_0x3494f5(0x80))):this[_0x3494f5(0x72)](_0x432eb9(this[_0x3494f5(0x9d)],_0x3494f5(0x9f)));}[_0xbaec5(0xa9)](){const _0x27ec47=_0xbaec5,_0x25c32c=this[_0x27ec47(0x93)]()[_0x27ec47(0x90)](),_0x1032b2=!!this[_0x27ec47(0x70)][_0x27ec47(0x9c)];this[_0x27ec47(0xac)][_0x27ec47(0xaa)]=_0x25c32c[_0x27ec47(0x6c)]>0x0&&!_0x1032b2;}[_0xbaec5(0x71)](_0x2e2810){try{return!!new URL(_0x2e2810);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ee477=_0x5076;(function(_0x11e270,_0x280ac0){const _0x51c5a6=_0x5076,_0x286b02=_0x11e270();while(!![]){try{const _0x2ef716=-parseInt(_0x51c5a6(0x13a))/0x1*(parseInt(_0x51c5a6(0x118))/0x2)+-parseInt(_0x51c5a6(0x117))/0x3+parseInt(_0x51c5a6(0x122))/0x4*(-parseInt(_0x51c5a6(0x134))/0x5)+-parseInt(_0x51c5a6(0x109))/0x6*(-parseInt(_0x51c5a6(0xfb))/0x7)+parseInt(_0x51c5a6(0x120))/0x8+-parseInt(_0x51c5a6(0x12a))/0x9*(parseInt(_0x51c5a6(0x12f))/0xa)+-parseInt(_0x51c5a6(0x16a))/0xb*(-parseInt(_0x51c5a6(0xe7))/0xc);if(_0x2ef716===_0x280ac0)break;else _0x286b02['push'](_0x286b02['shift']());}catch(_0x262164){_0x286b02['push'](_0x286b02['shift']());}}}(_0x584a,0xbbb0d));import{BalloonPanelView as _0x53c740,ButtonView as _0x4d9735,clickOutsideHandler as _0x53a877,FileDialogButtonView as _0x3b3ec8,IconView as _0x2e8000,View as _0x1a61ef}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x5b26ef,IconDocument as _0xb7b852,IconDocumentOutline as _0x5aaf9f,IconDropdownArrow as _0x231f78,IconLink as _0x51b0e5,IconPaperClip as _0x4d65b8}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0xb95f48}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x2707fe}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x4aaff9}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x6b549}from'../../../aicore/utils/common-translations.js';function _0x5076(_0x27ad60,_0x5c788d){const _0x584a0d=_0x584a();return _0x5076=function(_0x5076c0,_0x111cd4){_0x5076c0=_0x5076c0-0xe2;let _0x2a161a=_0x584a0d[_0x5076c0];return _0x2a161a;},_0x5076(_0x27ad60,_0x5c788d);}import{AIChatResourcesBalloonView as _0x1f010c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2ee477(0xf9),_0x2ee477(0x121),_0x2ee477(0xec),_0x2ee477(0x13c),_0x2ee477(0xf0),_0x2ee477(0x108)];const Eo=_0x2ee477(0x166),vo=_0x2ee477(0x172),Vo=_0x2ee477(0x103),Io=_0x2ee477(0x165),Po=_0x2ee477(0x100),Ro=_0x2ee477(0xff),Uo=_0x2ee477(0x14a),Lo=_0x2ee477(0x15d),No=_0x2ee477(0xfd),Oo=_0x2ee477(0x11d),Mo=_0x2ee477(0x14d),Ho=_0x2ee477(0x164),jo=[_0x53c740[_0x2ee477(0x173)][_0x2ee477(0xe4)],_0x53c740[_0x2ee477(0x173)][_0x2ee477(0x11f)],_0x53c740[_0x2ee477(0x173)][_0x2ee477(0x152)],_0x53c740[_0x2ee477(0x173)][_0x2ee477(0x15e)],_0x53c740[_0x2ee477(0x173)][_0x2ee477(0x14e)],_0x53c740[_0x2ee477(0x173)][_0x2ee477(0x10a)]];export class AIChatContextPanelView extends _0x1a61ef{[_0x2ee477(0x101)];[_0x2ee477(0x143)]=this[_0x2ee477(0x12b)]();[_0x2ee477(0x12c)]=this[_0x2ee477(0x12b)]();[_0x2ee477(0xe6)];[_0x2ee477(0x156)];[_0x2ee477(0x13b)];[_0x2ee477(0xf5)];[_0x2ee477(0x149)];[_0x2ee477(0xeb)];[_0x2ee477(0x125)];constructor(_0x37ffda,_0x348848){const _0x43b449=_0x2ee477;super(_0x37ffda),this[_0x43b449(0x125)]=_0x348848[_0x43b449(0x125)],this[_0x43b449(0x143)]=this[_0x43b449(0x12b)](),this[_0x43b449(0x12c)]=this[_0x43b449(0x12b)](),this[_0x43b449(0x101)]=this[_0x43b449(0x128)](_0x37ffda),this[_0x43b449(0x156)]=this[_0x43b449(0x16b)](_0x37ffda),this[_0x43b449(0x13b)]=this[_0x43b449(0x119)](_0x37ffda),this[_0x43b449(0x149)]=this[_0x43b449(0xf2)](_0x37ffda,_0x348848);const _0x58bfb2={'cssClasses':{'showMoreButton':Oo,'showMoreBalloon':Mo,'overflowContainer':No,'controlsButton':Lo}};this[_0x43b449(0xe6)]=new _0x4aaff9(_0x37ffda,this[_0x43b449(0x143)],_0x58bfb2,this[_0x43b449(0x125)],this),this[_0x43b449(0xeb)]={'buttonView':this[_0x43b449(0x101)],'balloonView':this[_0x43b449(0x156)],'hideMethod':this[_0x43b449(0x16c)][_0x43b449(0x155)](this),'showMethod':this[_0x43b449(0x14f)][_0x43b449(0x155)](this)},this[_0x43b449(0x168)](),this[_0x43b449(0x15a)]();}[_0x2ee477(0x104)](){const _0x299469=_0x2ee477;super[_0x299469(0x104)](),this[_0x299469(0x11a)](),this[_0x299469(0xe6)][_0x299469(0x15c)](this[_0x299469(0x15f)]),this[_0x299469(0xe6)][_0x299469(0x116)]();}[_0x2ee477(0x154)](){const _0xce4adb=_0x2ee477;super[_0xce4adb(0x154)](),this[_0xce4adb(0xe6)][_0xce4adb(0x154)](),this[_0xce4adb(0x149)][_0xce4adb(0x154)]();}[_0x2ee477(0x144)](_0x340c3f,_0x2f6625){const _0x2f87b7=_0x2ee477,_0x25da14=this[_0x2f87b7(0x10f)](_0x340c3f,_0x2f87b7(0xf8),!0x0,_0x2f6625);this[_0x2f87b7(0x140)](_0x25da14,this[_0x2f87b7(0x143)]),this[_0x2f87b7(0xe6)][_0x2f87b7(0x116)]();}[_0x2ee477(0xf0)](_0x3dd842){const _0x1e2e23=_0x2ee477;this[_0x1e2e23(0xef)](_0x3dd842,this[_0x1e2e23(0x143)]),this[_0x1e2e23(0xef)](_0x3dd842,this[_0x1e2e23(0xe6)][_0x1e2e23(0x11b)]),this[_0x1e2e23(0xe6)][_0x1e2e23(0x116)]();}[_0x2ee477(0xf7)](_0x562507,_0xa89ad7){const _0x27de08=_0x2ee477;let _0x2e3e71=this[_0x27de08(0x143)][_0x27de08(0xea)](_0x5f1be2=>_0x5f1be2['id']===_0x562507);_0x2e3e71||(_0x2e3e71=this[_0x27de08(0xe6)][_0x27de08(0x11b)][_0x27de08(0xea)](_0x260ef2=>_0x260ef2['id']===_0x562507)),_0x2e3e71&&(_0x2e3e71[_0x27de08(0x16e)]=_0xa89ad7);}[_0x2ee477(0xfa)](_0x2cbb39){const _0x5f4cde=_0x2ee477;this[_0x5f4cde(0x12c)][_0x5f4cde(0xe9)]();for(const _0x262eb7 of _0x2cbb39){const _0x1b1079=this[_0x5f4cde(0x10f)](_0x262eb7,_0x5f4cde(0x127),!0x1,!0x1);this[_0x5f4cde(0x140)](_0x1b1079,this[_0x5f4cde(0x12c)]);}}[_0x2ee477(0xe8)](){const _0x1f5fb8=_0x2ee477;this[_0x1f5fb8(0x143)][_0x1f5fb8(0xe9)](),this[_0x1f5fb8(0xe6)][_0x1f5fb8(0xe9)]();}[_0x2ee477(0x131)](){const _0x35ea7b=_0x2ee477;this[_0x35ea7b(0x12c)][_0x35ea7b(0xe9)]();}[_0x2ee477(0x136)](_0x27c594,_0x572bae,_0x33b8a8){const _0x2cb750=_0x2ee477;this[_0x2cb750(0x149)][_0x2cb750(0x136)](_0x27c594,_0x572bae,_0x33b8a8);}[_0x2ee477(0x16c)](){const _0x286718=_0x2ee477;this[_0x286718(0x130)](!0x1);}[_0x2ee477(0x14f)](){const _0x54ed3c=_0x2ee477;this[_0x54ed3c(0x130)](!0x0);}[_0x2ee477(0xf6)](){const _0x133af7=_0x2ee477;this[_0x133af7(0x13b)][_0x133af7(0x10b)](),this[_0x133af7(0x101)][_0x133af7(0xf4)]=!0x1,this[_0x133af7(0xf5)]&&this[_0x133af7(0xf5)][_0x133af7(0xe9)]();}[_0x2ee477(0x139)](){const _0x28cbcf=_0x2ee477;this[_0x28cbcf(0x13b)][_0x28cbcf(0x106)](),this[_0x28cbcf(0x101)][_0x28cbcf(0xf4)]=!0x0;}[_0x2ee477(0x150)](_0x520ff7){const _0xd5f5ff=_0x2ee477;this[_0xd5f5ff(0x149)][_0xd5f5ff(0x113)](_0x520ff7),this[_0xd5f5ff(0x101)][_0xd5f5ff(0xf4)]=!0x0;}[_0x2ee477(0x123)](_0x6006d6,_0x57057d,_0x3faa69,_0x39ed80){const _0x2a317a=_0x2ee477;this[_0x2a317a(0x149)][_0x2a317a(0x123)](_0x6006d6,_0x3faa69,_0x39ed80);}[_0x2ee477(0x137)](_0x523b5a){const _0x386d92=_0x2ee477;this[_0x386d92(0x149)][_0x386d92(0x137)](_0x523b5a),this[_0x386d92(0x101)][_0x386d92(0xf4)]=!0x1;}[_0x2ee477(0x111)](_0x3748c5){const _0x49e574=_0x2ee477;this[_0x49e574(0xfe)](this[_0x49e574(0x156)],this[_0x49e574(0x13d)],_0x3748c5),this[_0x49e574(0x158)](_0x3748c5);}[_0x2ee477(0x158)](_0x4d7d1e){const _0x2ff0cf=_0x2ee477,_0x45a59c=!_0x4d7d1e[_0x2ff0cf(0x15b)][_0x2ff0cf(0x114)]&&_0x4d7d1e[_0x2ff0cf(0x15b)][_0x2ff0cf(0x132)],_0x5a07cd=_0x4d7d1e[_0x2ff0cf(0x10e)][_0x2ff0cf(0x132)],_0x3c6381=_0x4d7d1e[_0x2ff0cf(0x14b)][_0x2ff0cf(0x132)];this[_0x2ff0cf(0x101)][_0x2ff0cf(0x11e)]=_0x45a59c||_0x5a07cd||_0x3c6381;}[_0x2ee477(0x168)](){const _0x49669c=_0x2ee477;this[_0x49669c(0x12e)]({'tag':_0x49669c(0xed),'attributes':{'class':[Eo,_0x49669c(0x167)]},'children':[{'tag':_0x49669c(0xed),'attributes':{'class':vo},'children':this[_0x49669c(0x143)]}]});}[_0x2ee477(0x15a)](){const _0x297beb=_0x2ee477;this[_0x297beb(0x101)]['on'](_0x297beb(0x147),()=>{const _0x1b31ce=_0x297beb;this[_0x1b31ce(0xf1)]();});}[_0x2ee477(0x128)](_0x33aa7c){const _0x3d63f2=_0x2ee477,_0x2323c8=new _0x4d9735(_0x33aa7c);return _0x2323c8[_0x3d63f2(0x14c)]({'label':_0x6b549(_0x33aa7c,_0x3d63f2(0xee)),'class':Lo+'\x20'+Io,'icon':_0x4d65b8,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x2323c8;}[_0x2ee477(0x16b)](_0x117b17){const _0x2c59f9=_0x2ee477;return this[_0x2c59f9(0x107)](_0x117b17,Vo);}[_0x2ee477(0x119)](_0x2b5688){const _0x43fcde=_0x2ee477,_0x34f53f=this[_0x43fcde(0x107)](_0x2b5688,Po);return this[_0x43fcde(0xe5)](_0x34f53f,_0x2b5688),_0x34f53f;}[_0x2ee477(0xf2)](_0x51df93,_0x59bb0d){const _0x54fabd=_0x2ee477,_0x110b50={'searchInputVisibleFrom':_0x59bb0d[_0x54fabd(0x105)],'onBackToContext':()=>{const _0x1e7c13=_0x54fabd;this[_0x1e7c13(0x14f)](),this[_0x1e7c13(0x156)][_0x1e7c13(0xfc)]({'target':this[_0x1e7c13(0x101)][_0x1e7c13(0x15f)],'limiter':this[_0x1e7c13(0x133)](),'positions':jo});},'onResourceSelected':(_0x329e7b,_0x37ce7e)=>{const _0x462570=_0x54fabd;this[_0x462570(0x141)](_0x462570(0x13c),{'source':_0x329e7b,'resource':_0x37ce7e});},'onLoadSourceResources':_0x59de32=>{const _0x382421=_0x54fabd;this[_0x382421(0x141)](_0x382421(0x108),_0x59de32);},'onBalloonClosed':()=>{const _0x3ec48e=_0x54fabd;this[_0x3ec48e(0x101)][_0x3ec48e(0xf4)]=!0x1;},'getLimiterElement':()=>this[_0x54fabd(0x133)](),'getTargetElement':()=>this[_0x54fabd(0x101)][_0x54fabd(0x15f)]};return new _0x1f010c(_0x51df93,_0x59bb0d[_0x54fabd(0x125)],_0x110b50);}[_0x2ee477(0x133)](){const _0x2713ba=_0x2ee477;return this[_0x2713ba(0x15f)]?.[_0x2713ba(0x160)]('.'+Ho)||document[_0x2713ba(0x10c)];}[_0x2ee477(0x107)](_0x560d20,_0x21d80c){const _0x1dce17=_0x2ee477,_0x39cb43=new _0x53c740(_0x560d20);return _0x39cb43[_0x1dce17(0x157)]({'attributes':{'class':_0x21d80c}}),this[_0x1dce17(0x125)][_0x1dce17(0xe2)](_0x39cb43),_0x39cb43;}[_0x2ee477(0xfe)](_0x163b73,_0x45aa5d,_0x5443b3){const _0x12321d=_0x2ee477;if(_0x163b73[_0x12321d(0x110)][_0x12321d(0xe9)](),!_0x5443b3[_0x12321d(0x15b)][_0x12321d(0x114)]&&_0x5443b3[_0x12321d(0x15b)][_0x12321d(0x132)]){const _0x50c777=this[_0x12321d(0x145)](_0x45aa5d,{'label':_0x6b549(_0x45aa5d,_0x12321d(0x146)),'icon':_0xb7b852});_0x50c777['on'](_0x12321d(0x147),()=>{const _0xa92633=_0x12321d;this[_0xa92633(0x141)](_0xa92633(0xf9)),this[_0xa92633(0x16c)]();}),_0x163b73[_0x12321d(0x110)][_0x12321d(0xe2)](_0x50c777);}if(_0x5443b3[_0x12321d(0x10e)][_0x12321d(0x132)]){const _0x22bee1=this[_0x12321d(0x145)](_0x45aa5d,{'label':_0x6b549(_0x45aa5d,_0x12321d(0xe3)),'icon':_0x51b0e5});_0x22bee1['on'](_0x12321d(0x147),()=>{const _0x2576a8=_0x12321d;this[_0x2576a8(0x16c)](),this[_0x2576a8(0x139)](),this[_0x2576a8(0x13b)][_0x2576a8(0xfc)]({'target':this[_0x2576a8(0x101)][_0x2576a8(0x15f)],'limiter':this[_0x2576a8(0x133)](),'positions':jo}),this[_0x2576a8(0xf5)][_0x2576a8(0x161)]();}),_0x163b73[_0x12321d(0x110)][_0x12321d(0xe2)](_0x22bee1);}if(_0x5443b3[_0x12321d(0x14b)][_0x12321d(0x132)]){const _0x5cbe96=new _0x3b3ec8(_0x45aa5d);_0x5cbe96[_0x12321d(0x14c)]({'label':_0x6b549(_0x45aa5d,_0x12321d(0x12d)),'icon':_0x5b26ef,'withText':!0x0,'tooltip':!0x0,'class':Ro,'allowMultipleFiles':!0x0}),_0x5cbe96['on'](_0x12321d(0x16d),(_0x3e8bef,_0x5440fc)=>{const _0x3daf76=_0x12321d;this[_0x3daf76(0x141)](_0x3daf76(0x121),_0x5440fc),this[_0x3daf76(0x16c)]();}),_0x5cbe96[_0x12321d(0x163)]=!0x0,_0x163b73[_0x12321d(0x110)][_0x12321d(0xe2)](_0x5cbe96);}for(const _0x5a4de5 of _0x5443b3[_0x12321d(0x148)]){const _0x5e3b0d=this[_0x12321d(0x145)](_0x45aa5d,{'label':_0x5a4de5[_0x12321d(0x151)],'icon':_0x5a4de5[_0x12321d(0x169)]||_0x5aaf9f,'type':_0x12321d(0x13e)});_0x163b73[_0x12321d(0x110)][_0x12321d(0xe2)](_0x5e3b0d),_0x5e3b0d['on'](_0x12321d(0x147),()=>{const _0x559927=_0x12321d;this[_0x559927(0x16c)](),this[_0x559927(0x150)](_0x5a4de5);});}}[_0x2ee477(0xe5)](_0xa75e8c,_0x28c844){const _0x54697d=_0x2ee477;this[_0x54697d(0xf5)]=new _0x2707fe(_0x28c844),this[_0x54697d(0xf5)]['on'](_0x54697d(0x10d),(_0x1c1558,_0x256602)=>{const _0x3b4642=_0x54697d;this[_0x3b4642(0xf3)](_0x256602);}),this[_0x54697d(0xf5)]['on'](_0x54697d(0x102),()=>{const _0x45db83=_0x54697d;this[_0x45db83(0xf6)](),this[_0x45db83(0x14f)](),this[_0x45db83(0x156)][_0x45db83(0xfc)]({'target':this[_0x45db83(0x101)][_0x45db83(0x15f)],'limiter':this[_0x45db83(0x133)](),'positions':jo});}),this[_0x54697d(0xf5)]['on'](_0x54697d(0x112),()=>{const _0x8ebc1d=_0x54697d;this[_0x8ebc1d(0x13b)][_0x8ebc1d(0x16f)]&&this[_0x8ebc1d(0x13b)][_0x8ebc1d(0xfc)]({'target':this[_0x8ebc1d(0x101)][_0x8ebc1d(0x15f)],'limiter':this[_0x8ebc1d(0x133)](),'positions':jo});}),_0xa75e8c[_0x54697d(0x110)][_0x54697d(0xe2)](this[_0x54697d(0xf5)]);}[_0x2ee477(0x145)](_0x38f78d,_0x332e6e){const _0xdcfcc4=_0x2ee477,_0x52b8a1=_0xdcfcc4(0x13e)===_0x332e6e[_0xdcfcc4(0x11c)]?new SourcesBalloonButtonView(_0x38f78d):new _0x4d9735(_0x38f78d);return _0x52b8a1[_0xdcfcc4(0x14c)]({'label':_0x332e6e[_0xdcfcc4(0x151)],'icon':_0x332e6e[_0xdcfcc4(0x169)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ro}),_0x52b8a1;}[_0x2ee477(0x11a)](){const _0x459ddf=_0x2ee477;this[_0x459ddf(0x162)](),this[_0x459ddf(0x115)]();}[_0x2ee477(0x115)](){const _0x35d264=_0x2ee477;_0x53a877({'emitter':this[_0x35d264(0x13b)],'contextElements':[this[_0x35d264(0x13b)][_0x35d264(0x15f)]],'callback':()=>{const _0x231029=_0x35d264;this[_0x231029(0xf6)]();},'activator':()=>this[_0x35d264(0x13b)][_0x35d264(0x16f)]});}[_0x2ee477(0x130)](_0x131609){const _0x342323=_0x2ee477,_0x448805=this[_0x342323(0xeb)];_0x448805[_0x342323(0x142)][_0x342323(0xf4)]=_0x131609,_0x131609?_0x448805[_0x342323(0x126)][_0x342323(0x106)]():_0x448805[_0x342323(0x126)][_0x342323(0x10b)]();}[_0x2ee477(0x162)](){const _0x8e99f3=_0x2ee477,{balloonView:_0x286ce5,buttonView:_0x47df9a,hideMethod:_0x8acac4}=this[_0x8e99f3(0xeb)];_0x53a877({'emitter':_0x286ce5,'contextElements':[_0x286ce5[_0x8e99f3(0x15f)],_0x47df9a[_0x8e99f3(0x15f)]],'callback':()=>{_0x8acac4();},'activator':()=>_0x47df9a[_0x8e99f3(0xf4)]&&!this[_0x8e99f3(0x13b)][_0x8e99f3(0x16f)]&&!this[_0x8e99f3(0x149)][_0x8e99f3(0x13f)]()});}[_0x2ee477(0x10f)](_0x13b932,_0x274802,_0x1802d1=!0x1,_0x1c2f1f=!0x1){const _0x4237ef=_0x2ee477,_0x543676=_0x4237ef(0x127)===_0x274802||!0x0===_0x13b932[_0x4237ef(0x153)],_0x195266=new _0xb95f48(this[_0x4237ef(0x13d)],_0x13b932,_0x543676,_0x1802d1,_0x1c2f1f);return _0x543676||_0x195266['on'](_0x4237ef(0x170),()=>{const _0xbd587b=_0x4237ef;this[_0xbd587b(0x141)](_0xbd587b(0xf0),_0x195266['id']);}),_0x195266;}[_0x2ee477(0x140)](_0x4652f3,_0x355318){const _0x7cdf3a=_0x2ee477;_0x355318[_0x7cdf3a(0xe2)](_0x4652f3,0x0);}[_0x2ee477(0xef)](_0x1c4844,_0x1f253c){const _0x530f34=_0x2ee477,_0xc4e5fc=_0x1f253c[_0x530f34(0xea)](_0x59af5a=>_0x59af5a['id']===_0x1c4844);_0xc4e5fc&&_0x1f253c[_0x530f34(0x129)](_0xc4e5fc);}[_0x2ee477(0xf1)](){const _0x37ac5e=_0x2ee477;this[_0x37ac5e(0x101)][_0x37ac5e(0xf4)]?this[_0x37ac5e(0x16c)]():(this[_0x37ac5e(0x14f)](),this[_0x37ac5e(0x156)][_0x37ac5e(0xfc)]({'target':this[_0x37ac5e(0x101)][_0x37ac5e(0x15f)],'limiter':this[_0x37ac5e(0x133)](),'positions':jo}));}[_0x2ee477(0xf3)](_0x3ff920){const _0x521914=_0x2ee477;this[_0x521914(0xf5)][_0x521914(0xe9)](),this[_0x521914(0xf6)](),this[_0x521914(0x141)](_0x521914(0xec),_0x3ff920);}}function _0x584a(){const _0x36b9c8=['element','closest','focus','_setupAddContextBalloonClickOutsideHandler','tooltip','ck-ai-chat','ck-ai-chat-context-controls__add-context-button','ck-ai-chat-context-controls','ck-reset_all-excluded','_setupTemplate','icon','7766RVJZil','_createAddContextBalloonPanelView','hideAddContextBalloonPanel','done','isLoading','isVisible','removeContextItemChip','children','ck-ai-chat-context-controls__pending-contexts','defaultPositions','add','AI_CHAT_CONTEXT_URL_LABEL','northArrowSouthWest','_addUrlContent','_overflowManager','50268mSDVYD','clearCurrentContextItems','clear','find','_addContextBalloonConfig','addUrlToContext','div','AI_CHAT_CONTEXT_ADD_CONTEXT','_removeContextFromCollection','removeContextItem','_handleAddContextButtonClick','_createResourcesBalloonView','_handleUrlSubmit','isOn','_urlInputView','hideUrlBalloonPanel','setContextItemLoading','current','addDocumentToContext','setConversationContext','5348uwLkxy','pin','ck-ai-chat-context-chips-wrapper-balloon','_setBalloonPanelContent','ck-ai-chat-context-controls__balloon-button','ck-ai-chat-context-controls__url-balloon-panel','addContextButtonView','cancel','ck-ai-chat-context-controls__add-context-balloon-panel','render','searchInputVisibleFrom','show','_createBaseBalloonPanel','loadSourceResources','5268yvfdSL','southArrowNorthEast','hide','body','submitUrl','urls','_createContextButton','content','setAddContextOptions','refreshBalloon','showSourceResourcesBalloon','isHidden','_setupUrlBalloonClickOutsideHandler','reorganizeChips','2065902OetBTy','4EygvRU','_createUrlBalloonPanelView','_setupAllBalloonClickOutsideHandlers','overflowChips','type','ck-ai-chat-controls_context_show-more-button','isEnabled','northArrowSouth','494224kYtXKj','addFileToContext','160BLmNyO','populateSourceResourceBalloon','__arrow','bodyCollection','balloonView','conversation','_createAddContextButtonView','remove','2442969qgqSYT','createCollection','_conversationContextsChips','AI_CHAT_CONTEXT_FILE_LABEL','setTemplate','30WfMqTB','_toggleAddContextBalloon','clearConversationContextItems','enabled','_getLimiterElement','146460XELPmm','arrowView','updateResourceState','closeSourceResourceBalloon','_createArrowView','showUrlBalloonPanel','123293GryIZl','_urlBalloonPanelView','addResourceToContext','locale','source','isAnyResourceBalloonVisible','_addContextToCollection','fire','buttonView','_currentContextsChips','addContextItem','_createBalloonButton','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','execute','sources','_resourcesBalloonView','ck-ai-chat-context-controls__balloon-button-source','files','set','ck-ai-chat-context-controls__show-more-balloon-panel','southArrowNorth','showAddContextBalloonPanel','_showSourceResourcesBalloon','label','northArrowSouthEast','isReadOnly','destroy','bind','_addContextBalloonPanelView','extendTemplate','_setAddContextButtonEnabled','menuitem','_bindEventHandlers','document','setContainerElement','ck-ai-chat-controls-button','southArrowNorthWest'];_0x584a=function(){return _0x36b9c8;};return _0x584a();}export class SourcesBalloonButtonView extends _0x4d9735{[_0x2ee477(0x135)];constructor(_0x2ca2e7){const _0x373277=_0x2ee477;super(_0x2ca2e7),this[_0x373277(0x14c)]({'withText':!0x0,'role':_0x373277(0x159)}),this[_0x373277(0x135)]=this[_0x373277(0x138)](),this[_0x373277(0x157)]({'attributes':{'class':[Uo]}});}[_0x2ee477(0x104)](){const _0x1d1133=_0x2ee477;super[_0x1d1133(0x104)](),this[_0x1d1133(0x171)][_0x1d1133(0xe2)](this[_0x1d1133(0x135)]);}[_0x2ee477(0x138)](){const _0x54a8dd=_0x2ee477,_0x3c2f54=new _0x2e8000();return _0x3c2f54[_0x54a8dd(0x110)]=_0x231f78,_0x3c2f54[_0x54a8dd(0x157)]({'attributes':{'class':Uo+_0x54a8dd(0x124)}}),_0x3c2f54;}}
23
+ function _0x5b5b(_0x4ba31a,_0x13b5df){const _0x3779a9=_0x3779();return _0x5b5b=function(_0x5b5bc7,_0x2ff7bd){_0x5b5bc7=_0x5b5bc7-0x10e;let _0x53a3b3=_0x3779a9[_0x5b5bc7];return _0x53a3b3;},_0x5b5b(_0x4ba31a,_0x13b5df);}const _0x21a751=_0x5b5b;(function(_0x4e9d64,_0x3610c8){const _0x16f732=_0x5b5b,_0x4a83c1=_0x4e9d64();while(!![]){try{const _0x11d369=parseInt(_0x16f732(0x151))/0x1+-parseInt(_0x16f732(0x17c))/0x2+parseInt(_0x16f732(0x131))/0x3+-parseInt(_0x16f732(0x153))/0x4+-parseInt(_0x16f732(0x192))/0x5*(parseInt(_0x16f732(0x15d))/0x6)+parseInt(_0x16f732(0x115))/0x7*(-parseInt(_0x16f732(0x19a))/0x8)+parseInt(_0x16f732(0x139))/0x9;if(_0x11d369===_0x3610c8)break;else _0x4a83c1['push'](_0x4a83c1['shift']());}catch(_0x47ffad){_0x4a83c1['push'](_0x4a83c1['shift']());}}}(_0x3779,0x8c62a));import{BalloonPanelView as _0x500f13,ButtonView as _0x5acd13,clickOutsideHandler as _0x385be2,FileDialogButtonView as _0x547be5,IconView as _0x54d274,View as _0x40a7fb}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x301489,IconDocument as _0x4bf564,IconDocumentOutline as _0x2c3dac,IconDropdownArrow as _0x36e10d,IconLink as _0x9ea0b1,IconPaperClip as _0x3520a2}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2e68fc}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x536cda}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x430289}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x2b2b1f}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x36aaa6}from'./resources/aichatresourcesballoonview.js';function _0x3779(){const _0x7517f4=['isEnabled','ck-ai-chat-context-controls__balloon-button','ck-ai-chat-context-controls__url-balloon-panel','current','cancel','ck-ai-chat','northArrowSouthWest','hideUrlBalloonPanel','remove','1832913SdFKbU','locale','add','_createArrowView','fire','_bindEventHandlers','bodyCollection','removeContextItemChip','23443281aPeHsT','isHidden','ck-ai-chat-context-controls__pending-contexts','balloonView','isAnyResourceBalloonVisible','_showSourceResourcesBalloon','_handleUrlSubmit','setAddContextOptions','reorganizeChips','setTemplate','ck-ai-chat-context-controls','setConversationContext','extendTemplate','_addContextBalloonConfig','_addUrlContent','ck-ai-chat-controls_context_show-more-button','setContainerElement','_setupAllBalloonClickOutsideHandlers','southArrowNorthEast','addContextItem','hideAddContextBalloonPanel','_createAddContextBalloonPanelView','_createUrlBalloonPanelView','addDocumentToContext','521132nHIqup','removeContextItem','3905204oTItwS','_resourcesBalloonView','done','execute','conversation','AI_CHAT_CONTEXT_FILE_LABEL','clear','defaultPositions','overflowChips','label','19254GEwYqg','children','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','loadSourceResources','ck-ai-chat-context-chips-wrapper-balloon','_setBalloonPanelContent','isReadOnly','pin','closest','southArrowNorthWest','northArrowSouth','source','enabled','_setAddContextButtonEnabled','addFileToContext','showUrlBalloonPanel','content','type','isLoading','files','northArrowSouthEast','_setupUrlBalloonClickOutsideHandler','_conversationContextsChips','ck-ai-chat-context-controls__show-more-balloon-panel','set','isVisible','ck-ai-chat-controls-button','closeSourceResourceBalloon','_addContextToCollection','_handleAddContextButtonClick','show','2070836RHctVn','_urlBalloonPanelView','sources','AI_CHAT_CONTEXT_URL_LABEL','ck-ai-chat-context-controls__add-context-balloon-panel','_currentContextsChips','div','_overflowManager','focus','document','arrowView','hide','_createBaseBalloonPanel','_removeContextFromCollection','showSourceResourcesBalloon','updateResourceState','_addContextBalloonPanelView','populateSourceResourceBalloon','_getLimiterElement','menuitem','isOn','_setupTemplate','385NyBbXB','_createResourcesBalloonView','_createBalloonButton','find','addContextButtonView','showAddContextBalloonPanel','submitUrl','AI_CHAT_CONTEXT_ADD_CONTEXT','3612328GdvyMv','addResourceToContext','ck-ai-chat-context-controls__add-context-button','icon','tooltip','clearCurrentContextItems','render','destroy','searchInputVisibleFrom','urls','14LbjOPK','bind','ck-reset_all-excluded','_createContextButton','southArrowNorth','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls__balloon-button-source','element','body','refreshBalloon','createCollection','_toggleAddContextBalloon','buttonView','__arrow','addUrlToContext','setContextItemLoading','_createAddContextButtonView','clearConversationContextItems','_urlInputView'];_0x3779=function(){return _0x7517f4;};return _0x3779();}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x21a751(0x150),_0x21a751(0x16b),_0x21a751(0x123),_0x21a751(0x19b),_0x21a751(0x152),_0x21a751(0x160)];const Ro=_0x21a751(0x143),Uo=_0x21a751(0x13b),Lo=_0x21a751(0x180),No=_0x21a751(0x19c),Oo=_0x21a751(0x12a),Mo=_0x21a751(0x129),Ho=_0x21a751(0x11b),bo=_0x21a751(0x177),Fo=_0x21a751(0x161),vo=_0x21a751(0x148),jo=_0x21a751(0x174),Xo=_0x21a751(0x12d),Do=[_0x500f13[_0x21a751(0x15a)][_0x21a751(0x12e)],_0x500f13[_0x21a751(0x15a)][_0x21a751(0x167)],_0x500f13[_0x21a751(0x15a)][_0x21a751(0x171)],_0x500f13[_0x21a751(0x15a)][_0x21a751(0x166)],_0x500f13[_0x21a751(0x15a)][_0x21a751(0x119)],_0x500f13[_0x21a751(0x15a)][_0x21a751(0x14b)]];export class AIChatContextPanelView extends _0x40a7fb{[_0x21a751(0x196)];[_0x21a751(0x181)]=this[_0x21a751(0x11f)]();[_0x21a751(0x173)]=this[_0x21a751(0x11f)]();[_0x21a751(0x183)];[_0x21a751(0x18c)];[_0x21a751(0x17d)];[_0x21a751(0x127)];[_0x21a751(0x154)];[_0x21a751(0x146)];[_0x21a751(0x137)];constructor(_0x10a458,_0x5788a3){const _0x4b3afd=_0x21a751;super(_0x10a458),this[_0x4b3afd(0x137)]=_0x5788a3[_0x4b3afd(0x137)],this[_0x4b3afd(0x181)]=this[_0x4b3afd(0x11f)](),this[_0x4b3afd(0x173)]=this[_0x4b3afd(0x11f)](),this[_0x4b3afd(0x196)]=this[_0x4b3afd(0x125)](_0x10a458),this[_0x4b3afd(0x18c)]=this[_0x4b3afd(0x14e)](_0x10a458),this[_0x4b3afd(0x17d)]=this[_0x4b3afd(0x14f)](_0x10a458),this[_0x4b3afd(0x154)]=this[_0x4b3afd(0x193)](_0x10a458,_0x5788a3);const _0x2599e8={'cssClasses':{'showMoreButton':vo,'showMoreBalloon':jo,'overflowContainer':Fo,'controlsButton':bo}};this[_0x4b3afd(0x183)]=new _0x430289(_0x10a458,this[_0x4b3afd(0x181)],_0x2599e8,this[_0x4b3afd(0x137)],this),this[_0x4b3afd(0x146)]={'buttonView':this[_0x4b3afd(0x196)],'balloonView':this[_0x4b3afd(0x18c)],'hideMethod':this[_0x4b3afd(0x14d)][_0x4b3afd(0x116)](this),'showMethod':this[_0x4b3afd(0x197)][_0x4b3afd(0x116)](this)},this[_0x4b3afd(0x191)](),this[_0x4b3afd(0x136)]();}[_0x21a751(0x111)](){const _0x3a035d=_0x21a751;super[_0x3a035d(0x111)](),this[_0x3a035d(0x14a)](),this[_0x3a035d(0x183)][_0x3a035d(0x149)](this[_0x3a035d(0x11c)]),this[_0x3a035d(0x183)][_0x3a035d(0x141)]();}[_0x21a751(0x112)](){const _0x1d6649=_0x21a751;super[_0x1d6649(0x112)](),this[_0x1d6649(0x183)][_0x1d6649(0x112)](),this[_0x1d6649(0x154)][_0x1d6649(0x112)]();}[_0x21a751(0x14c)](_0x1962ed,_0x5d46be){const _0x1bc594=_0x21a751,_0x4d5f16=this[_0x1bc594(0x118)](_0x1962ed,_0x1bc594(0x12b),!0x0,_0x5d46be);this[_0x1bc594(0x179)](_0x4d5f16,this[_0x1bc594(0x181)]),this[_0x1bc594(0x183)][_0x1bc594(0x141)]();}[_0x21a751(0x152)](_0xc542fb){const _0x6eb290=_0x21a751;this[_0x6eb290(0x189)](_0xc542fb,this[_0x6eb290(0x181)]),this[_0x6eb290(0x189)](_0xc542fb,this[_0x6eb290(0x183)][_0x6eb290(0x15b)]),this[_0x6eb290(0x183)][_0x6eb290(0x141)]();}[_0x21a751(0x124)](_0x4e477c,_0x5aeeed){const _0x7d7e62=_0x21a751;let _0x1b3586=this[_0x7d7e62(0x181)][_0x7d7e62(0x195)](_0x4db2fd=>_0x4db2fd['id']===_0x4e477c);_0x1b3586||(_0x1b3586=this[_0x7d7e62(0x183)][_0x7d7e62(0x15b)][_0x7d7e62(0x195)](_0x40ddc3=>_0x40ddc3['id']===_0x4e477c)),_0x1b3586&&(_0x1b3586[_0x7d7e62(0x16f)]=_0x5aeeed);}[_0x21a751(0x144)](_0x277478){const _0xe87886=_0x21a751;this[_0xe87886(0x173)][_0xe87886(0x159)]();for(const _0x20bb8c of _0x277478){const _0x59818d=this[_0xe87886(0x118)](_0x20bb8c,_0xe87886(0x157),!0x1,!0x1);this[_0xe87886(0x179)](_0x59818d,this[_0xe87886(0x173)]);}}[_0x21a751(0x110)](){const _0x788134=_0x21a751;this[_0x788134(0x181)][_0x788134(0x159)](),this[_0x788134(0x183)][_0x788134(0x159)]();}[_0x21a751(0x126)](){const _0x2a07ba=_0x21a751;this[_0x2a07ba(0x173)][_0x2a07ba(0x159)]();}[_0x21a751(0x18b)](_0x5bf947,_0xad3f5,_0x1f9d77){const _0x4632d9=_0x21a751;this[_0x4632d9(0x154)][_0x4632d9(0x18b)](_0x5bf947,_0xad3f5,_0x1f9d77);}[_0x21a751(0x14d)](){const _0x5ebe00=_0x21a751;this[_0x5ebe00(0x120)](!0x1);}[_0x21a751(0x197)](){const _0x1dc7e1=_0x21a751;this[_0x1dc7e1(0x120)](!0x0);}[_0x21a751(0x12f)](){const _0x22a1a3=_0x21a751;this[_0x22a1a3(0x17d)][_0x22a1a3(0x187)](),this[_0x22a1a3(0x196)][_0x22a1a3(0x190)]=!0x1,this[_0x22a1a3(0x127)]&&this[_0x22a1a3(0x127)][_0x22a1a3(0x159)]();}[_0x21a751(0x16c)](){const _0x46eadd=_0x21a751;this[_0x46eadd(0x17d)][_0x46eadd(0x17b)](),this[_0x46eadd(0x196)][_0x46eadd(0x190)]=!0x0;}[_0x21a751(0x13e)](_0x121fa4){const _0x493a91=_0x21a751;this[_0x493a91(0x154)][_0x493a91(0x18a)](_0x121fa4),this[_0x493a91(0x196)][_0x493a91(0x190)]=!0x0;}[_0x21a751(0x18d)](_0x1c27e7,_0x2111ee,_0x3dec81,_0x43ea9f){const _0x4ec06a=_0x21a751;this[_0x4ec06a(0x154)][_0x4ec06a(0x18d)](_0x1c27e7,_0x3dec81,_0x43ea9f);}[_0x21a751(0x178)](_0x5c2b6c){const _0x3b8a27=_0x21a751;this[_0x3b8a27(0x154)][_0x3b8a27(0x178)](_0x5c2b6c),this[_0x3b8a27(0x196)][_0x3b8a27(0x190)]=!0x1;}[_0x21a751(0x140)](_0x10f46e){const _0x357b96=_0x21a751;this[_0x357b96(0x162)](this[_0x357b96(0x18c)],this[_0x357b96(0x132)],_0x10f46e),this[_0x357b96(0x16a)](_0x10f46e);}[_0x21a751(0x16a)](_0x234fbb){const _0xe8963f=_0x21a751,_0x24f989=!_0x234fbb[_0xe8963f(0x185)][_0xe8963f(0x13a)]&&_0x234fbb[_0xe8963f(0x185)][_0xe8963f(0x169)],_0x3bb4c5=_0x234fbb[_0xe8963f(0x114)][_0xe8963f(0x169)],_0x1cdf7e=_0x234fbb[_0xe8963f(0x170)][_0xe8963f(0x169)];this[_0xe8963f(0x196)][_0xe8963f(0x128)]=_0x24f989||_0x3bb4c5||_0x1cdf7e;}[_0x21a751(0x191)](){const _0x1cbb61=_0x21a751;this[_0x1cbb61(0x142)]({'tag':_0x1cbb61(0x182),'attributes':{'class':[Ro,_0x1cbb61(0x117)]},'children':[{'tag':_0x1cbb61(0x182),'attributes':{'class':Uo},'children':this[_0x1cbb61(0x181)]}]});}[_0x21a751(0x136)](){const _0x4b5674=_0x21a751;this[_0x4b5674(0x196)]['on'](_0x4b5674(0x156),()=>{const _0xcdba33=_0x4b5674;this[_0xcdba33(0x17a)]();});}[_0x21a751(0x125)](_0x2302d4){const _0x4cd062=_0x21a751,_0x21c253=new _0x5acd13(_0x2302d4);return _0x21c253[_0x4cd062(0x175)]({'label':_0x2b2b1f(_0x2302d4,_0x4cd062(0x199)),'class':bo+'\x20'+No,'icon':_0x3520a2,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x21c253;}[_0x21a751(0x14e)](_0xbf1ff4){const _0xe198e2=_0x21a751;return this[_0xe198e2(0x188)](_0xbf1ff4,Lo);}[_0x21a751(0x14f)](_0x2a75fd){const _0x12579c=_0x21a751,_0x60f99e=this[_0x12579c(0x188)](_0x2a75fd,Oo);return this[_0x12579c(0x147)](_0x60f99e,_0x2a75fd),_0x60f99e;}[_0x21a751(0x193)](_0x332d4c,_0x5d5e5b){const _0x5acbc7=_0x21a751,_0x1898b3={'searchInputVisibleFrom':_0x5d5e5b[_0x5acbc7(0x113)],'onBackToContext':()=>{const _0x49d335=_0x5acbc7;this[_0x49d335(0x197)](),this[_0x49d335(0x18c)][_0x49d335(0x164)]({'target':this[_0x49d335(0x196)][_0x49d335(0x11c)],'limiter':this[_0x49d335(0x18e)](),'positions':Do});},'onResourceSelected':(_0x46b8da,_0x41229d)=>{const _0x5cb079=_0x5acbc7;this[_0x5cb079(0x135)](_0x5cb079(0x19b),{'source':_0x46b8da,'resource':_0x41229d});},'onLoadSourceResources':_0x3e9ea9=>{const _0x2ed585=_0x5acbc7;this[_0x2ed585(0x135)](_0x2ed585(0x160),_0x3e9ea9);},'onBalloonClosed':()=>{const _0x5c03b2=_0x5acbc7;this[_0x5c03b2(0x196)][_0x5c03b2(0x190)]=!0x1;},'getLimiterElement':()=>this[_0x5acbc7(0x18e)](),'getTargetElement':()=>this[_0x5acbc7(0x196)][_0x5acbc7(0x11c)]};return new _0x36aaa6(_0x332d4c,_0x5d5e5b[_0x5acbc7(0x137)],_0x1898b3);}[_0x21a751(0x18e)](){const _0x59c40b=_0x21a751;return this[_0x59c40b(0x11c)]?.[_0x59c40b(0x165)]('.'+Xo)||document[_0x59c40b(0x11d)];}[_0x21a751(0x188)](_0x214b3e,_0x3e86a5){const _0x4fe115=_0x21a751,_0x447c01=new _0x500f13(_0x214b3e);return _0x447c01[_0x4fe115(0x145)]({'attributes':{'class':_0x3e86a5}}),this[_0x4fe115(0x137)][_0x4fe115(0x133)](_0x447c01),_0x447c01;}[_0x21a751(0x162)](_0x3a9787,_0x556c21,_0x34fb8d){const _0x14e967=_0x21a751;if(_0x3a9787[_0x14e967(0x16d)][_0x14e967(0x159)](),!_0x34fb8d[_0x14e967(0x185)][_0x14e967(0x13a)]&&_0x34fb8d[_0x14e967(0x185)][_0x14e967(0x169)]){const _0x1f7540=this[_0x14e967(0x194)](_0x556c21,{'label':_0x2b2b1f(_0x556c21,_0x14e967(0x15f)),'icon':_0x4bf564});_0x1f7540['on'](_0x14e967(0x156),()=>{const _0x69ae50=_0x14e967;this[_0x69ae50(0x135)](_0x69ae50(0x150)),this[_0x69ae50(0x14d)]();}),_0x3a9787[_0x14e967(0x16d)][_0x14e967(0x133)](_0x1f7540);}if(_0x34fb8d[_0x14e967(0x114)][_0x14e967(0x169)]){const _0x5f1461=this[_0x14e967(0x194)](_0x556c21,{'label':_0x2b2b1f(_0x556c21,_0x14e967(0x17f)),'icon':_0x9ea0b1});_0x5f1461['on'](_0x14e967(0x156),()=>{const _0x202ca9=_0x14e967;this[_0x202ca9(0x14d)](),this[_0x202ca9(0x16c)](),this[_0x202ca9(0x17d)][_0x202ca9(0x164)]({'target':this[_0x202ca9(0x196)][_0x202ca9(0x11c)],'limiter':this[_0x202ca9(0x18e)](),'positions':Do}),this[_0x202ca9(0x127)][_0x202ca9(0x184)]();}),_0x3a9787[_0x14e967(0x16d)][_0x14e967(0x133)](_0x5f1461);}if(_0x34fb8d[_0x14e967(0x170)][_0x14e967(0x169)]){const _0xd44b91=new _0x547be5(_0x556c21);_0xd44b91[_0x14e967(0x175)]({'label':_0x2b2b1f(_0x556c21,_0x14e967(0x158)),'icon':_0x301489,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0xd44b91['on'](_0x14e967(0x155),(_0x3a8f33,_0x354a0b)=>{const _0x1ad576=_0x14e967;this[_0x1ad576(0x135)](_0x1ad576(0x16b),_0x354a0b),this[_0x1ad576(0x14d)]();}),_0xd44b91[_0x14e967(0x10f)]=!0x0,_0x3a9787[_0x14e967(0x16d)][_0x14e967(0x133)](_0xd44b91);}for(const _0x1e4588 of _0x34fb8d[_0x14e967(0x17e)]){const _0x590c63=this[_0x14e967(0x194)](_0x556c21,{'label':_0x1e4588[_0x14e967(0x15c)],'icon':_0x1e4588[_0x14e967(0x10e)]||_0x2c3dac,'type':_0x14e967(0x168)});_0x3a9787[_0x14e967(0x16d)][_0x14e967(0x133)](_0x590c63),_0x590c63['on'](_0x14e967(0x156),()=>{const _0xf42c21=_0x14e967;this[_0xf42c21(0x14d)](),this[_0xf42c21(0x13e)](_0x1e4588);});}}[_0x21a751(0x147)](_0x6a0cf1,_0x5a9457){const _0x18bdc6=_0x21a751;this[_0x18bdc6(0x127)]=new _0x536cda(_0x5a9457),this[_0x18bdc6(0x127)]['on'](_0x18bdc6(0x198),(_0x4cb99e,_0x24686d)=>{const _0x2c96a2=_0x18bdc6;this[_0x2c96a2(0x13f)](_0x24686d);}),this[_0x18bdc6(0x127)]['on'](_0x18bdc6(0x12c),()=>{const _0x130331=_0x18bdc6;this[_0x130331(0x12f)](),this[_0x130331(0x197)](),this[_0x130331(0x18c)][_0x130331(0x164)]({'target':this[_0x130331(0x196)][_0x130331(0x11c)],'limiter':this[_0x130331(0x18e)](),'positions':Do});}),this[_0x18bdc6(0x127)]['on'](_0x18bdc6(0x11e),()=>{const _0x48887c=_0x18bdc6;this[_0x48887c(0x17d)][_0x48887c(0x176)]&&this[_0x48887c(0x17d)][_0x48887c(0x164)]({'target':this[_0x48887c(0x196)][_0x48887c(0x11c)],'limiter':this[_0x48887c(0x18e)](),'positions':Do});}),_0x6a0cf1[_0x18bdc6(0x16d)][_0x18bdc6(0x133)](this[_0x18bdc6(0x127)]);}[_0x21a751(0x194)](_0x279f0d,_0x128576){const _0x55aef8=_0x21a751,_0xbf13c1=_0x55aef8(0x168)===_0x128576[_0x55aef8(0x16e)]?new SourcesBalloonButtonView(_0x279f0d):new _0x5acd13(_0x279f0d);return _0xbf13c1[_0x55aef8(0x175)]({'label':_0x128576[_0x55aef8(0x15c)],'icon':_0x128576[_0x55aef8(0x10e)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0xbf13c1;}[_0x21a751(0x14a)](){const _0x58cf47=_0x21a751;this[_0x58cf47(0x11a)](),this[_0x58cf47(0x172)]();}[_0x21a751(0x172)](){const _0x22adb7=_0x21a751;_0x385be2({'emitter':this[_0x22adb7(0x17d)],'contextElements':[this[_0x22adb7(0x17d)][_0x22adb7(0x11c)]],'callback':()=>{const _0x3253c4=_0x22adb7;this[_0x3253c4(0x12f)]();},'activator':()=>this[_0x22adb7(0x17d)][_0x22adb7(0x176)]});}[_0x21a751(0x120)](_0x5e63b1){const _0x594bbd=_0x21a751,_0x27fe96=this[_0x594bbd(0x146)];_0x27fe96[_0x594bbd(0x121)][_0x594bbd(0x190)]=_0x5e63b1,_0x5e63b1?_0x27fe96[_0x594bbd(0x13c)][_0x594bbd(0x17b)]():_0x27fe96[_0x594bbd(0x13c)][_0x594bbd(0x187)]();}[_0x21a751(0x11a)](){const _0x41ef23=_0x21a751,{balloonView:_0x79b01f,buttonView:_0x5e4405,hideMethod:_0x450a5e}=this[_0x41ef23(0x146)];_0x385be2({'emitter':_0x79b01f,'contextElements':[_0x79b01f[_0x41ef23(0x11c)],_0x5e4405[_0x41ef23(0x11c)]],'callback':()=>{_0x450a5e();},'activator':()=>_0x5e4405[_0x41ef23(0x190)]&&!this[_0x41ef23(0x17d)][_0x41ef23(0x176)]&&!this[_0x41ef23(0x154)][_0x41ef23(0x13d)]()});}[_0x21a751(0x118)](_0x4bab19,_0x170a15,_0x3ff5e8=!0x1,_0x386f9c=!0x1){const _0x71a4e3=_0x21a751,_0x2da78f=_0x71a4e3(0x157)===_0x170a15||!0x0===_0x4bab19[_0x71a4e3(0x163)],_0x3913a5=new _0x2e68fc(this[_0x71a4e3(0x132)],_0x4bab19,_0x2da78f,_0x3ff5e8,_0x386f9c);return _0x2da78f||_0x3913a5['on'](_0x71a4e3(0x138),()=>{const _0xfbd45a=_0x71a4e3;this[_0xfbd45a(0x135)](_0xfbd45a(0x152),_0x3913a5['id']);}),_0x3913a5;}[_0x21a751(0x179)](_0x562277,_0x338462){const _0x32efa0=_0x21a751;_0x338462[_0x32efa0(0x133)](_0x562277,0x0);}[_0x21a751(0x189)](_0x4ba073,_0xebde98){const _0x4923e2=_0x21a751,_0x5a708e=_0xebde98[_0x4923e2(0x195)](_0x216736=>_0x216736['id']===_0x4ba073);_0x5a708e&&_0xebde98[_0x4923e2(0x130)](_0x5a708e);}[_0x21a751(0x17a)](){const _0x4688a1=_0x21a751;this[_0x4688a1(0x196)][_0x4688a1(0x190)]?this[_0x4688a1(0x14d)]():(this[_0x4688a1(0x197)](),this[_0x4688a1(0x18c)][_0x4688a1(0x164)]({'target':this[_0x4688a1(0x196)][_0x4688a1(0x11c)],'limiter':this[_0x4688a1(0x18e)](),'positions':Do}));}[_0x21a751(0x13f)](_0x327b74){const _0x520cf9=_0x21a751;this[_0x520cf9(0x127)][_0x520cf9(0x159)](),this[_0x520cf9(0x12f)](),this[_0x520cf9(0x135)](_0x520cf9(0x123),_0x327b74);}}export class SourcesBalloonButtonView extends _0x5acd13{[_0x21a751(0x186)];constructor(_0x3a4758){const _0x215b55=_0x21a751;super(_0x3a4758),this[_0x215b55(0x175)]({'withText':!0x0,'role':_0x215b55(0x18f)}),this[_0x215b55(0x186)]=this[_0x215b55(0x134)](),this[_0x215b55(0x145)]({'attributes':{'class':[Ho]}});}[_0x21a751(0x111)](){const _0x22e107=_0x21a751;super[_0x22e107(0x111)](),this[_0x22e107(0x15e)][_0x22e107(0x133)](this[_0x22e107(0x186)]);}[_0x21a751(0x134)](){const _0x3360ce=_0x21a751,_0x43c70f=new _0x54d274();return _0x43c70f[_0x3360ce(0x16d)]=_0x36e10d,_0x43c70f[_0x3360ce(0x145)]({'attributes':{'class':Ho+_0x3360ce(0x122)}}),_0x43c70f;}}