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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  15. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  22. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  26. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  27. package/src/aiballoon/ui/aiballoonview.js +1 -1
  28. package/src/aichat/aichat.js +1 -1
  29. package/src/aichat/aichatcontroller.js +1 -1
  30. package/src/aichat/aichatui.js +1 -1
  31. package/src/aichat/model/aichatcontext.js +1 -1
  32. package/src/aichat/model/aichatconversation.js +1 -1
  33. package/src/aichat/model/aichatinteraction.js +1 -1
  34. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  35. package/src/aichat/ui/aichatfeedview.js +1 -1
  36. package/src/aichat/ui/aichatheaderview.js +1 -1
  37. package/src/aichat/ui/aichatview.js +1 -1
  38. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  58. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  59. package/src/aichat/utils/eventnames.js +1 -1
  60. package/src/aichat/utils/promisequeue.js +1 -1
  61. package/src/aichathistory/aichathistory.js +1 -1
  62. package/src/aichathistory/aichathistorycontroller.js +1 -1
  63. package/src/aichathistory/aichathistoryui.js +1 -1
  64. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  65. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  66. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  67. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  68. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  69. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  70. package/src/aicore/aiconnector.js +1 -1
  71. package/src/aicore/aiediting.js +1 -1
  72. package/src/aicore/model/aicapabilities.js +1 -1
  73. package/src/aicore/model/aiinteraction.js +1 -1
  74. package/src/aicore/model/aimodels.js +1 -1
  75. package/src/aicore/model/aireply.js +1 -1
  76. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  77. package/src/aicore/pipeline/airesponseparser.js +2 -2
  78. package/src/aicore/ui/aidisclaimerview.js +1 -1
  79. package/src/aicore/ui/aiskeleton.js +1 -1
  80. package/src/aicore/ui/aispinner.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  86. package/src/aicore/utils/createresizebutton.js +1 -1
  87. package/src/aicore/utils/documentposition.js +1 -1
  88. package/src/aicore/utils/documentrange.js +1 -1
  89. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  90. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  91. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  92. package/src/aicore/utils/htmlparser.js +1 -1
  93. package/src/aicore/utils/htmlstreamer.js +1 -1
  94. package/src/aicore/utils/scrollmanager.js +1 -1
  95. package/src/aieditorintegration/aieditorintegration.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  97. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  98. package/src/aiquickactions/aiquickactions.js +1 -1
  99. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  100. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  101. package/src/aiquickactions/aiquickactionsui.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  104. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  105. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  106. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  107. package/src/aireviewmode/aireviewmode.js +1 -1
  108. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  109. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  110. package/src/aireviewmode/aireviewmodeui.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  112. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  113. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  114. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  115. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  116. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  117. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  118. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  122. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  123. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  124. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  125. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  126. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  127. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  128. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  129. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  130. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  131. package/src/aitabs/aitabs.js +1 -1
  132. package/src/aitabs/tabs/aitabsview.js +1 -1
  133. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  134. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x75dd37=_0x2886;(function(_0x142a80,_0x1feef9){const _0x7b65d0=_0x2886,_0x2e2863=_0x142a80();while(!![]){try{const _0x367917=parseInt(_0x7b65d0(0x174))/0x1*(-parseInt(_0x7b65d0(0x14a))/0x2)+parseInt(_0x7b65d0(0x177))/0x3*(parseInt(_0x7b65d0(0x134))/0x4)+parseInt(_0x7b65d0(0x176))/0x5*(-parseInt(_0x7b65d0(0x16d))/0x6)+parseInt(_0x7b65d0(0x15c))/0x7*(parseInt(_0x7b65d0(0x172))/0x8)+-parseInt(_0x7b65d0(0x164))/0x9+-parseInt(_0x7b65d0(0x181))/0xa*(-parseInt(_0x7b65d0(0x15a))/0xb)+-parseInt(_0x7b65d0(0x16b))/0xc*(-parseInt(_0x7b65d0(0x170))/0xd);if(_0x367917===_0x1feef9)break;else _0x2e2863['push'](_0x2e2863['shift']());}catch(_0x143a80){_0x2e2863['push'](_0x2e2863['shift']());}}}(_0xd876,0xcbe74));function _0xd876(){const _0x497960=['isLoading','_createContextPanelView','form','_contextPanelView','_createModelUnavailableMessageView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','change:isLoading','setConversationContext','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','div','_loaderView','clearConversationContextUI','_createPromptCapabilitiesView','agent','ck-ai-chat-controls__start-new-chat-button','clearPendingContextUI','2LiMWku','toggleReasoning','locale','setContextItemLoading','disableModelSelector','isModelAvailable','ck-hidden','_promptInputView','startConversation','element','closeSourceResourceBalloon','setAddContextOptions','setModel','setIsUploadInProgress','ck-ai-chat-controls-disabled','addContextItem','2997401ANouHX','focusPromptInput','1645mxHYUu','_displayedModels','setPlaceholderText','updateResourceState','toggleWebSearch','focus','_modelUnavailableMessageView','_createPromptInputView','3415977zCwfpa','execute','bodyCollection','selectModel','setWebSearch','startsWith','resetMessageInput','26151924tgNTAJ','clearCurrentContextItems','3499536wonjXz','reset','ck-ai-chat-controls-model-unavailable-message','13tWiywX','populateSourceResourceBalloon','13504qXWluW','contextResourcesSearchInputVisibleFrom','1298267deKGOX','isDisabled','10DMbvGf','3PseKYj','find','addContextButtonView','setModelList','_shouldRestorePromptInputFocus','setReasoning','setInputPlaceholder','clearConversationContextItems','bindTemplate','_promptCapabilitiesView','40rOjCCq','removeContextItem','low','_createLoaderView','abortPromptStream','set','delegate','54196BvYxIl','setTemplate','sendUserMessage','ck-ai-chat-controls','enableModelSelector','_handlePromptInputFocus'];_0xd876=function(){return _0x497960;};return _0xd876();}import{ButtonView as _0x15e766,clickOutsideHandler as _0xc754a2,View as _0x1669c9}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x539bff}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x183aac}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x3a485b,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x5ac3d0}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x1da5b1}from'./controls/aichatcontrolsloaderview.js';function _0x2886(_0x16ebb7,_0x21056e){const _0xd876c=_0xd876();return _0x2886=function(_0x288698,_0x2fa117){_0x288698=_0x288698-0x134;let _0x1d5a7f=_0xd876c[_0x288698];return _0x1d5a7f;},_0x2886(_0x16ebb7,_0x21056e);}import{getTranslation as _0x132ab1}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x1669c9{[_0x75dd37(0x15d)]=[];[_0x75dd37(0x13d)];[_0x75dd37(0x151)];[_0x75dd37(0x180)];[_0x75dd37(0x144)];[_0x75dd37(0x162)];[_0x75dd37(0x17b)];constructor(_0x3ba47e,_0x131b10){const _0x40ca7c=_0x75dd37;super(_0x3ba47e),this[_0x40ca7c(0x13d)]=this[_0x40ca7c(0x13b)](_0x3ba47e,{'bodyCollection':_0x131b10[_0x40ca7c(0x166)],'searchInputVisibleFrom':_0x131b10[_0x40ca7c(0x173)]}),this[_0x40ca7c(0x151)]=this[_0x40ca7c(0x163)](_0x3ba47e),this[_0x40ca7c(0x180)]=this[_0x40ca7c(0x146)](_0x3ba47e),this[_0x40ca7c(0x144)]=this[_0x40ca7c(0x184)](_0x3ba47e),this[_0x40ca7c(0x162)]=this[_0x40ca7c(0x13e)](_0x3ba47e),this[_0x40ca7c(0x17b)]=!0x1,this[_0x40ca7c(0x151)][_0x40ca7c(0x187)](_0x40ca7c(0x136))['to'](this),this[_0x40ca7c(0x144)][_0x40ca7c(0x187)](_0x40ca7c(0x185))['to'](this),this[_0x40ca7c(0x180)][_0x40ca7c(0x187)](_0x40ca7c(0x160))['to'](this),this[_0x40ca7c(0x180)][_0x40ca7c(0x187)](_0x40ca7c(0x14b))['to'](this),this[_0x40ca7c(0x180)][_0x40ca7c(0x187)](_0x40ca7c(0x167))['to'](this),this[_0x40ca7c(0x13d)][_0x40ca7c(0x187)](..._0x5ac3d0)['to'](this),this[_0x40ca7c(0x186)](_0x40ca7c(0x14f),!0x0),this[_0x40ca7c(0x186)](_0x40ca7c(0x175),!0x1);const _0x5eee56=this[_0x40ca7c(0x17f)];this[_0x40ca7c(0x135)]({'tag':_0x40ca7c(0x13c),'attributes':{'class':['ck',_0x40ca7c(0x137),_0x5eee56['if'](_0x40ca7c(0x175),_0x40ca7c(0x158))]},'children':[{'tag':_0x40ca7c(0x143),'attributes':{'class':[_0x5eee56['if'](_0x40ca7c(0x13a),_0x40ca7c(0x150),_0x1a3d9b=>_0x1a3d9b||!this[_0x40ca7c(0x14f)]),_0x5eee56['if'](_0x40ca7c(0x14f),_0x40ca7c(0x150),_0x31f8c6=>!_0x31f8c6||this[_0x40ca7c(0x13a)])]},'children':[this[_0x40ca7c(0x13d)],this[_0x40ca7c(0x151)],this[_0x40ca7c(0x180)]]},{'tag':_0x40ca7c(0x143),'attributes':{'class':[_0x5eee56['if'](_0x40ca7c(0x13a),_0x40ca7c(0x150),_0x1c3690=>!_0x1c3690)]},'children':[this[_0x40ca7c(0x144)]]},{'tag':_0x40ca7c(0x143),'attributes':{'class':[_0x5eee56['if'](_0x40ca7c(0x14f),_0x40ca7c(0x150),_0x5d317c=>_0x5d317c)]},'children':[this[_0x40ca7c(0x162)]]}]}),_0xc754a2({'emitter':this[_0x40ca7c(0x151)],'activator':()=>this[_0x40ca7c(0x13a)],'contextElements':()=>[this[_0x40ca7c(0x153)]],'callback':()=>{const _0x1164b9=_0x40ca7c;this[_0x1164b9(0x17b)]=!0x1;}}),this['on'](_0x40ca7c(0x140),this[_0x40ca7c(0x139)],{'priority':_0x40ca7c(0x183)});}[_0x75dd37(0x13b)](_0x422ea7,_0x332a85){return new _0x3a485b(_0x422ea7,_0x332a85);}[_0x75dd37(0x163)](_0x110d3a){const _0x1d79e1=_0x75dd37;return new _0x539bff(_0x110d3a,this[_0x1d79e1(0x13d)][_0x1d79e1(0x179)]);}[_0x75dd37(0x146)](_0x2a5319){return new _0x183aac(_0x2a5319);}[_0x75dd37(0x184)](_0x5d1d50){return new _0x1da5b1(_0x5d1d50);}[_0x75dd37(0x13e)](_0x3033d8){const _0x28e0a7=_0x75dd37,_0x494def=new ps(_0x3033d8);return _0x494def[_0x28e0a7(0x187)](_0x28e0a7(0x152))['to'](this),_0x494def;}[_0x75dd37(0x139)](_0x534980,_0x104654,_0x348276){const _0x3c4118=_0x75dd37;_0x348276?this[_0x3c4118(0x17b)]=!0x0:this[_0x3c4118(0x17b)]&&this[_0x3c4118(0x151)][_0x3c4118(0x161)]();}[_0x75dd37(0x159)](_0x300c3a,_0x34d518){const _0x1f8f27=_0x75dd37;this[_0x1f8f27(0x13d)][_0x1f8f27(0x159)](_0x300c3a,_0x34d518);}[_0x75dd37(0x182)](_0x523d4d){const _0x45dfe4=_0x75dd37;this[_0x45dfe4(0x13d)][_0x45dfe4(0x182)](_0x523d4d);}[_0x75dd37(0x14d)](_0x52ef66,_0x1a6579){const _0x9db41a=_0x75dd37;this[_0x9db41a(0x13d)][_0x9db41a(0x14d)](_0x52ef66,_0x1a6579);}[_0x75dd37(0x157)](_0x40996d){const _0xd32897=_0x75dd37;this[_0xd32897(0x151)][_0xd32897(0x157)](_0x40996d);}[_0x75dd37(0x141)](_0x508f3e){const _0x1a4954=_0x75dd37;this[_0x1a4954(0x13d)][_0x1a4954(0x141)](_0x508f3e);}[_0x75dd37(0x149)](){const _0x3dd0fa=_0x75dd37;this[_0x3dd0fa(0x13d)][_0x3dd0fa(0x16c)]();}[_0x75dd37(0x145)](){const _0x34f55b=_0x75dd37;this[_0x34f55b(0x13d)][_0x34f55b(0x17e)]();}[_0x75dd37(0x15f)](_0x5500a3,_0x10b6d2,_0x56c3c1){const _0x3016cc=_0x75dd37;this[_0x3016cc(0x13d)][_0x3016cc(0x15f)](_0x5500a3,_0x10b6d2,_0x56c3c1);}[_0x75dd37(0x168)](_0x1395f6){const _0x413676=_0x75dd37;this[_0x413676(0x180)][_0x413676(0x168)](_0x1395f6);}[_0x75dd37(0x17c)](_0x5b5d63){const _0xe511b4=_0x75dd37;this[_0xe511b4(0x180)][_0xe511b4(0x17c)](_0x5b5d63);}[_0x75dd37(0x16a)](){const _0x3b1969=_0x75dd37;this[_0x3b1969(0x151)][_0x3b1969(0x16e)]();}[_0x75dd37(0x155)](_0x2f6538){const _0xe3a05f=_0x75dd37;this[_0xe3a05f(0x13d)][_0xe3a05f(0x155)](_0x2f6538);}[_0x75dd37(0x17d)](_0x494581){const _0x2257e6=_0x75dd37;this[_0x2257e6(0x151)][_0x2257e6(0x15e)](_0x494581);}[_0x75dd37(0x17a)](_0xad89bb,_0x469d9c){const _0x3254ac=_0x75dd37;this[_0x3254ac(0x15d)]=_0xad89bb,this[_0x3254ac(0x180)][_0x3254ac(0x17a)](_0xad89bb,_0x469d9c);}[_0x75dd37(0x156)](_0x526a96){const _0x4829fe=_0x75dd37;(_0x526a96?this[_0x4829fe(0x15d)][_0x4829fe(0x178)](_0x59d676=>_0x59d676['id']===_0x526a96['id']):null)?(this[_0x4829fe(0x14f)]=!0x0,this[_0x4829fe(0x180)][_0x4829fe(0x156)](_0x526a96)):_0x526a96?.['id'][_0x4829fe(0x169)](_0x4829fe(0x147))?(this[_0x4829fe(0x14f)]=!0x0,this[_0x4829fe(0x180)][_0x4829fe(0x156)](this[_0x4829fe(0x15d)][0x0])):this[_0x4829fe(0x14f)]=!0x1;}[_0x75dd37(0x138)](){const _0x5a88dd=_0x75dd37;this[_0x5a88dd(0x180)][_0x5a88dd(0x138)]();}[_0x75dd37(0x14e)](_0x361ffc){const _0x316aec=_0x75dd37;this[_0x316aec(0x180)][_0x316aec(0x14e)](_0x361ffc);}[_0x75dd37(0x171)](_0x17a554,_0x471e50,_0x4748ba,_0x2aeb2a){const _0x3d3e95=_0x75dd37;this[_0x3d3e95(0x13d)][_0x3d3e95(0x171)](_0x17a554,_0x471e50,_0x4748ba,_0x2aeb2a);}[_0x75dd37(0x154)](_0x99c31){const _0x4be31a=_0x75dd37;this[_0x4be31a(0x13d)][_0x4be31a(0x154)](_0x99c31);}[_0x75dd37(0x15b)](){const _0x3c9177=_0x75dd37;this[_0x3c9177(0x151)][_0x3c9177(0x161)]();}}class ps extends _0x1669c9{constructor(_0x90e6b4){const _0x4430b0=_0x75dd37;super(_0x90e6b4);const _0x56d74f=new _0x15e766(_0x90e6b4);_0x56d74f[_0x4430b0(0x186)]({'label':_0x132ab1(this[_0x4430b0(0x14c)],_0x4430b0(0x142)),'withText':!0x0,'class':[_0x4430b0(0x148)],'tooltip':''}),_0x56d74f[_0x4430b0(0x187)](_0x4430b0(0x165))['to'](this,_0x4430b0(0x152)),this[_0x4430b0(0x135)]({'tag':_0x4430b0(0x143),'attributes':{'class':['ck',_0x4430b0(0x16f)]},'children':[{'tag':'p','children':[{'text':_0x132ab1(this[_0x4430b0(0x14c)],_0x4430b0(0x13f))+'\x20'},_0x56d74f]}]});}}
23
+ const _0x21fc29=_0x3cda;(function(_0x21914c,_0x2a78c9){const _0x4fe3c7=_0x3cda,_0x456b29=_0x21914c();while(!![]){try{const _0x481fc8=-parseInt(_0x4fe3c7(0x206))/0x1+parseInt(_0x4fe3c7(0x213))/0x2*(-parseInt(_0x4fe3c7(0x200))/0x3)+parseInt(_0x4fe3c7(0x1f7))/0x4+parseInt(_0x4fe3c7(0x20f))/0x5+parseInt(_0x4fe3c7(0x220))/0x6+-parseInt(_0x4fe3c7(0x1ff))/0x7*(parseInt(_0x4fe3c7(0x22a))/0x8)+parseInt(_0x4fe3c7(0x21f))/0x9;if(_0x481fc8===_0x2a78c9)break;else _0x456b29['push'](_0x456b29['shift']());}catch(_0x20b1a3){_0x456b29['push'](_0x456b29['shift']());}}}(_0x42a2,0xaf8d3));function _0x3cda(_0x508525,_0xea8542){const _0x42a2a3=_0x42a2();return _0x3cda=function(_0x3cdad3,_0x540dfe){_0x3cdad3=_0x3cdad3-0x1db;let _0x296697=_0x42a2a3[_0x3cdad3];return _0x296697;},_0x3cda(_0x508525,_0xea8542);}import{ButtonView as _0x48804d,clickOutsideHandler as _0x3d3ab0,View as _0x25b464}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x1ab626}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x381898}from'./controls/aichatpromptcapabilitiesview.js';function _0x42a2(){const _0x3a0bcf=['_modelUnavailableMessageView','bodyCollection','7976wWRWaU','setInputPlaceholder','clearConversationContextItems','setAddContextOptions','_loaderView','_contextPanelView','clearCurrentContextItems','contextResourcesSearchInputVisibleFrom','_displayedModels','find','toggleWebSearch','enableModelSelector','resetMessageInput','bindTemplate','populateSourceResourceBalloon','_createModelUnavailableMessageView','_createPromptInputView','_shouldRestorePromptInputFocus','setWebSearch','ck-ai-chat-controls-model-unavailable-message','selectModel','setIsUploadInProgress','agent','delegate','clearConversationContextUI','ck-hidden','toggleReasoning','sendUserMessage','isDisabled','2382772qUMsoU','setConversationContext','closeSourceResourceBalloon','updateResourceState','isModelAvailable','addContextButtonView','locale','setTemplate','889Wbcyuu','172353HxMXmO','reset','startsWith','set','change:isLoading','_promptCapabilitiesView','1327978lcrMLC','ck-ai-chat-controls-disabled','setModelList','div','focusPromptInput','ck-ai-chat-controls','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setModel','_promptInputView','3664890SWQBZJ','isLoading','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','startConversation','18gaegXO','_createContextPanelView','ck-ai-chat-controls__start-new-chat-button','execute','setPlaceholderText','abortPromptStream','addContextItem','element','focus','low','_createPromptCapabilitiesView','_createLoaderView','4999464yGJRsS','4839288hjihUq','removeContextItem','_handlePromptInputFocus','disableModelSelector','clearPendingContextUI','setContextItemLoading','setReasoning','form'];_0x42a2=function(){return _0x3a0bcf;};return _0x42a2();}import{AIChatContextPanelView as _0x16100b,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x155b21}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x37a175}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x24d807}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x25b464{[_0x21fc29(0x1e2)]=[];[_0x21fc29(0x1df)];[_0x21fc29(0x20e)];[_0x21fc29(0x205)];[_0x21fc29(0x1de)];[_0x21fc29(0x228)];[_0x21fc29(0x1eb)];constructor(_0xd53e6b,_0x596a90){const _0x17bbff=_0x21fc29;super(_0xd53e6b),this[_0x17bbff(0x1df)]=this[_0x17bbff(0x214)](_0xd53e6b,{'bodyCollection':_0x596a90[_0x17bbff(0x229)],'searchInputVisibleFrom':_0x596a90[_0x17bbff(0x1e1)]}),this[_0x17bbff(0x20e)]=this[_0x17bbff(0x1ea)](_0xd53e6b),this[_0x17bbff(0x205)]=this[_0x17bbff(0x21d)](_0xd53e6b),this[_0x17bbff(0x1de)]=this[_0x17bbff(0x21e)](_0xd53e6b),this[_0x17bbff(0x228)]=this[_0x17bbff(0x1e9)](_0xd53e6b),this[_0x17bbff(0x1eb)]=!0x1,this[_0x17bbff(0x20e)][_0x17bbff(0x1f1)](_0x17bbff(0x1f5))['to'](this),this[_0x17bbff(0x1de)][_0x17bbff(0x1f1)](_0x17bbff(0x218))['to'](this),this[_0x17bbff(0x205)][_0x17bbff(0x1f1)](_0x17bbff(0x1e4))['to'](this),this[_0x17bbff(0x205)][_0x17bbff(0x1f1)](_0x17bbff(0x1f4))['to'](this),this[_0x17bbff(0x205)][_0x17bbff(0x1f1)](_0x17bbff(0x1ee))['to'](this),this[_0x17bbff(0x1df)][_0x17bbff(0x1f1)](..._0x155b21)['to'](this),this[_0x17bbff(0x203)](_0x17bbff(0x1fb),!0x0),this[_0x17bbff(0x203)](_0x17bbff(0x1f6),!0x1);const _0x459745=this[_0x17bbff(0x1e7)];this[_0x17bbff(0x1fe)]({'tag':_0x17bbff(0x227),'attributes':{'class':['ck',_0x17bbff(0x20b),_0x459745['if'](_0x17bbff(0x1f6),_0x17bbff(0x207))]},'children':[{'tag':_0x17bbff(0x209),'attributes':{'class':[_0x459745['if'](_0x17bbff(0x210),_0x17bbff(0x1f3),_0x3e8c1d=>_0x3e8c1d||!this[_0x17bbff(0x1fb)]),_0x459745['if'](_0x17bbff(0x1fb),_0x17bbff(0x1f3),_0x4e3d39=>!_0x4e3d39||this[_0x17bbff(0x210)])]},'children':[this[_0x17bbff(0x1df)],this[_0x17bbff(0x20e)],this[_0x17bbff(0x205)]]},{'tag':_0x17bbff(0x209),'attributes':{'class':[_0x459745['if'](_0x17bbff(0x210),_0x17bbff(0x1f3),_0x57b164=>!_0x57b164)]},'children':[this[_0x17bbff(0x1de)]]},{'tag':_0x17bbff(0x209),'attributes':{'class':[_0x459745['if'](_0x17bbff(0x1fb),_0x17bbff(0x1f3),_0x159e6e=>_0x159e6e)]},'children':[this[_0x17bbff(0x228)]]}]}),_0x3d3ab0({'emitter':this[_0x17bbff(0x20e)],'activator':()=>this[_0x17bbff(0x210)],'contextElements':()=>[this[_0x17bbff(0x21a)]],'callback':()=>{const _0xdead0d=_0x17bbff;this[_0xdead0d(0x1eb)]=!0x1;}}),this['on'](_0x17bbff(0x204),this[_0x17bbff(0x222)],{'priority':_0x17bbff(0x21c)});}[_0x21fc29(0x214)](_0x57519,_0x306c79){return new _0x16100b(_0x57519,_0x306c79);}[_0x21fc29(0x1ea)](_0x42f1d6){const _0x297280=_0x21fc29;return new _0x1ab626(_0x42f1d6,this[_0x297280(0x1df)][_0x297280(0x1fc)]);}[_0x21fc29(0x21d)](_0x270969){return new _0x381898(_0x270969);}[_0x21fc29(0x21e)](_0x29cb0d){return new _0x37a175(_0x29cb0d);}[_0x21fc29(0x1e9)](_0x39111e){const _0x41f897=_0x21fc29,_0x107de8=new hs(_0x39111e);return _0x107de8[_0x41f897(0x1f1)](_0x41f897(0x212))['to'](this),_0x107de8;}[_0x21fc29(0x222)](_0x2882ac,_0x1b79ea,_0x2133e0){const _0x5689e5=_0x21fc29;_0x2133e0?this[_0x5689e5(0x1eb)]=!0x0:this[_0x5689e5(0x1eb)]&&this[_0x5689e5(0x20e)][_0x5689e5(0x21b)]();}[_0x21fc29(0x219)](_0x8a2d3e,_0x37d8dd){const _0x93d636=_0x21fc29;this[_0x93d636(0x1df)][_0x93d636(0x219)](_0x8a2d3e,_0x37d8dd);}[_0x21fc29(0x221)](_0x567e5b){const _0x9d9743=_0x21fc29;this[_0x9d9743(0x1df)][_0x9d9743(0x221)](_0x567e5b);}[_0x21fc29(0x225)](_0x3f743c,_0x5038d2){const _0x577643=_0x21fc29;this[_0x577643(0x1df)][_0x577643(0x225)](_0x3f743c,_0x5038d2);}[_0x21fc29(0x1ef)](_0x3be52f){const _0x2ef406=_0x21fc29;this[_0x2ef406(0x20e)][_0x2ef406(0x1ef)](_0x3be52f);}[_0x21fc29(0x1f8)](_0x5aa02e){const _0x4ffd78=_0x21fc29;this[_0x4ffd78(0x1df)][_0x4ffd78(0x1f8)](_0x5aa02e);}[_0x21fc29(0x224)](){const _0x543006=_0x21fc29;this[_0x543006(0x1df)][_0x543006(0x1e0)]();}[_0x21fc29(0x1f2)](){const _0x3f2ff1=_0x21fc29;this[_0x3f2ff1(0x1df)][_0x3f2ff1(0x1dc)]();}[_0x21fc29(0x1fa)](_0x20ce92,_0x58a477,_0x508ae3){const _0x318978=_0x21fc29;this[_0x318978(0x1df)][_0x318978(0x1fa)](_0x20ce92,_0x58a477,_0x508ae3);}[_0x21fc29(0x1ec)](_0x1adb60){const _0x220496=_0x21fc29;this[_0x220496(0x205)][_0x220496(0x1ec)](_0x1adb60);}[_0x21fc29(0x226)](_0xba1070){const _0x1a71ff=_0x21fc29;this[_0x1a71ff(0x205)][_0x1a71ff(0x226)](_0xba1070);}[_0x21fc29(0x1e6)](){const _0xeb543b=_0x21fc29;this[_0xeb543b(0x20e)][_0xeb543b(0x201)]();}[_0x21fc29(0x1dd)](_0x5ec86a){const _0x3b6aef=_0x21fc29;this[_0x3b6aef(0x1df)][_0x3b6aef(0x1dd)](_0x5ec86a);}[_0x21fc29(0x1db)](_0x1228b2){const _0x1e7e1a=_0x21fc29;this[_0x1e7e1a(0x20e)][_0x1e7e1a(0x217)](_0x1228b2);}[_0x21fc29(0x208)](_0x21842d,_0x3df718){const _0x4ac667=_0x21fc29;this[_0x4ac667(0x1e2)]=_0x21842d,this[_0x4ac667(0x205)][_0x4ac667(0x208)](_0x21842d,_0x3df718);}[_0x21fc29(0x20d)](_0xf255a4){const _0x21a736=_0x21fc29;(_0xf255a4?this[_0x21a736(0x1e2)][_0x21a736(0x1e3)](_0xd3c41e=>_0xd3c41e['id']===_0xf255a4['id']):null)?(this[_0x21a736(0x1fb)]=!0x0,this[_0x21a736(0x205)][_0x21a736(0x20d)](_0xf255a4)):_0xf255a4?.['id'][_0x21a736(0x202)](_0x21a736(0x1f0))?(this[_0x21a736(0x1fb)]=!0x0,this[_0x21a736(0x205)][_0x21a736(0x20d)](this[_0x21a736(0x1e2)][0x0])):this[_0x21a736(0x1fb)]=!0x1;}[_0x21fc29(0x1e5)](){const _0x86ac69=_0x21fc29;this[_0x86ac69(0x205)][_0x86ac69(0x1e5)]();}[_0x21fc29(0x223)](_0x554419){const _0x44412b=_0x21fc29;this[_0x44412b(0x205)][_0x44412b(0x223)](_0x554419);}[_0x21fc29(0x1e8)](_0x24751a,_0x516de1,_0x2fac72,_0x378633){const _0x54bc6a=_0x21fc29;this[_0x54bc6a(0x1df)][_0x54bc6a(0x1e8)](_0x24751a,_0x516de1,_0x2fac72,_0x378633);}[_0x21fc29(0x1f9)](_0x166d6f){const _0x4adb77=_0x21fc29;this[_0x4adb77(0x1df)][_0x4adb77(0x1f9)](_0x166d6f);}[_0x21fc29(0x20a)](){const _0x522d=_0x21fc29;this[_0x522d(0x20e)][_0x522d(0x21b)]();}}class hs extends _0x25b464{constructor(_0x3fd5a5){const _0x46aa5b=_0x21fc29;super(_0x3fd5a5);const _0x5b5bf1=new _0x48804d(_0x3fd5a5);_0x5b5bf1[_0x46aa5b(0x203)]({'label':_0x24d807(this[_0x46aa5b(0x1fd)],_0x46aa5b(0x211)),'withText':!0x0,'class':[_0x46aa5b(0x215)],'tooltip':''}),_0x5b5bf1[_0x46aa5b(0x1f1)](_0x46aa5b(0x216))['to'](this,_0x46aa5b(0x212)),this[_0x46aa5b(0x1fe)]({'tag':_0x46aa5b(0x209),'attributes':{'class':['ck',_0x46aa5b(0x1ed)]},'children':[{'tag':'p','children':[{'text':_0x24d807(this[_0x46aa5b(0x1fd)],_0x46aa5b(0x20c))+'\x20'},_0x5b5bf1]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3db5(_0x26e8db,_0x1d9dcb){const _0x3800a5=_0x3800();return _0x3db5=function(_0x3db523,_0x77b14a){_0x3db523=_0x3db523-0x131;let _0x3b82e1=_0x3800a5[_0x3db523];return _0x3b82e1;},_0x3db5(_0x26e8db,_0x1d9dcb);}const _0x3930f5=_0x3db5;(function(_0x54a115,_0x3aced2){const _0x2affa6=_0x3db5,_0x3451ce=_0x54a115();while(!![]){try{const _0x356e1f=-parseInt(_0x2affa6(0x157))/0x1+parseInt(_0x2affa6(0x16b))/0x2*(parseInt(_0x2affa6(0x133))/0x3)+parseInt(_0x2affa6(0x158))/0x4*(parseInt(_0x2affa6(0x139))/0x5)+parseInt(_0x2affa6(0x15a))/0x6*(-parseInt(_0x2affa6(0x163))/0x7)+-parseInt(_0x2affa6(0x143))/0x8+-parseInt(_0x2affa6(0x154))/0x9*(-parseInt(_0x2affa6(0x16e))/0xa)+-parseInt(_0x2affa6(0x152))/0xb*(-parseInt(_0x2affa6(0x174))/0xc);if(_0x356e1f===_0x3aced2)break;else _0x3451ce['push'](_0x3451ce['shift']());}catch(_0x3d376f){_0x3451ce['push'](_0x3451ce['shift']());}}}(_0x3800,0xe8ad6));import{CKEditorError as _0x1b2370,logWarning as _0x5aefb1,scrollViewportToShowTarget as _0x4db389}from'ckeditor5/src/utils.js';import{View as _0x23bd02}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x19b7a5}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x6ad9c9}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x1866b2}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x4d2111}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x31c7cd}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x5af3f5}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0xe2430a}from'../../aicore/utils/scrollmanager.js';function _0x3800(){const _0x5eacee=['find','1944086VKrSzL','isVisible','ck-ai-chat__loader-text','319090leAJtm','markAsDone','markItemAsDone','isPending','_bodyCollection','isLoadingSkeletonVisible','132NJRdut','includes','stopAutoScroll','start','ai-suggestion-reply','createCollection','updateSources','render','bindTemplate','updateReplyItem','ai-chat-feed-view-item-not-a-suggestion-item','div','startAutoScroll','ck-ai-chat__loader','updateSuggestionPartState','remove','removeItem','updateSuggestionItem','3JxVlNK','delegate','scrollToSuggestion','map','ai-reply','bind','2830gkxbkp','addItem','interaction-header','_createFeedLoader','_createSkeletonLoader','options','toggleLoadingSkeleton','_createLoaderChildren','getItemIds','_setupTemplate','12732336uILOWF','ai-chat-feed-view-item-not-found','locale','isTrackChangesOn','_createTemplateChildren','scrollManager','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','user-message','aiFeed','children','getPartView','ck-ai-chat__feed','updatePartState','setTemplate','stop','1667061mCtHjO','extendTemplate','342DVuIkI','clear','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','1281861aKaJBc','10676ctAzoy','add','21282bVQMFB','destroy','getItemById','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','setLoadingMessage','set','updateWebSources','element','_createFeedItems','3031QGhzDo','span','ai-chat-feed-view-item-not-a-reply-item','loadingMessage','ck-hidden','ck-ai-chat__feed__items','updateContent'];_0x3800=function(){return _0x5eacee;};return _0x3800();}import{AISkeletonView as _0x17ad7a,SKELETON_DEFINITIONS as _0x207b9f}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x44c45e}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x23bd02{[_0x3930f5(0x14c)];[_0x3930f5(0x148)];[_0x3930f5(0x172)];constructor(_0x2e5d63,_0x58b730){const _0xc9c7e1=_0x3930f5;super(_0x2e5d63),this[_0xc9c7e1(0x172)]=_0x58b730,this[_0xc9c7e1(0x15f)](_0xc9c7e1(0x171),!0x1),this[_0xc9c7e1(0x15f)](_0xc9c7e1(0x166),''),this[_0xc9c7e1(0x15f)](_0xc9c7e1(0x173),!0x1),this[_0xc9c7e1(0x15f)](_0xc9c7e1(0x146),!0x1),this[_0xc9c7e1(0x14c)]=this[_0xc9c7e1(0x179)](),this[_0xc9c7e1(0x14c)][_0xc9c7e1(0x134)](..._0x19b7a5)['to'](this),this[_0xc9c7e1(0x142)]();}[_0x3930f5(0x17b)](){const _0x4a6f38=_0x3930f5;super[_0x4a6f38(0x17b)](),this[_0x4a6f38(0x148)]=new _0xe2430a(this[_0x4a6f38(0x161)]);}[_0x3930f5(0x15b)](){const _0x338327=_0x3930f5;super[_0x338327(0x15b)](),this[_0x338327(0x148)][_0x338327(0x15b)]();}[_0x3930f5(0x155)](){const _0x289283=_0x3930f5;this[_0x289283(0x14c)][_0x289283(0x155)]();}[_0x3930f5(0x13a)](_0x350f70,_0x2f707c){const _0x5a840b=_0x3930f5;let _0x2890a3;_0x5a840b(0x137)===_0x350f70?_0x2890a3=new _0x1866b2(this[_0x5a840b(0x145)],_0x2f707c,this[_0x5a840b(0x172)]):_0x5a840b(0x178)===_0x350f70?(_0x2890a3=new _0x6ad9c9(this[_0x5a840b(0x145)],_0x2f707c,this[_0x5a840b(0x172)]),_0x2890a3[_0x5a840b(0x138)](_0x5a840b(0x146))['to'](this,_0x5a840b(0x146))):_0x2890a3=_0x5a840b(0x14a)===_0x350f70?new _0x4d2111(this[_0x5a840b(0x145)],_0x2f707c,this[_0x5a840b(0x172)]):_0x5a840b(0x13b)===_0x350f70?new _0x5af3f5(this[_0x5a840b(0x145)],_0x2f707c):new _0x31c7cd(_0x2f707c),this[_0x5a840b(0x14c)][_0x5a840b(0x159)](_0x2890a3);}async[_0x3930f5(0x17d)]({id:_0x315d0d,parsedContent:_0x30780a,renderingStrategy:_0x457cea,abortSignal:_0x20e97f}){const _0x52c595=_0x3930f5,_0x316796=this[_0x52c595(0x15c)](_0x315d0d);if(!(_0x316796 instanceof _0x1866b2))throw new _0x1b2370(_0x52c595(0x165),null,{'itemView':_0x316796,'id':_0x315d0d,'parsedContent':_0x30780a});await _0x316796[_0x52c595(0x169)]({'parsedContent':_0x30780a,'renderingStrategy':_0x457cea,'abortSignal':_0x20e97f});}async[_0x3930f5(0x160)](_0x32a705,_0xf77885){const _0x57b674=_0x3930f5,_0x2710b9=this[_0x57b674(0x15c)](_0x32a705);if(_0x2710b9 instanceof _0x6ad9c9)_0x2710b9[_0x57b674(0x17a)](_0xf77885);else{if(!(_0x2710b9 instanceof _0x1866b2))throw new _0x1b2370(_0x57b674(0x149),null,{'itemView':_0x2710b9,'id':_0x32a705,'sources':_0xf77885});_0x2710b9[_0x57b674(0x17a)](_0xf77885);}}async[_0x3930f5(0x132)]({id:_0x16e2bb,parts:_0x435790,renderingStrategy:_0x413c59,abortSignal:_0x4a5f82}){const _0x2697fc=_0x3930f5,_0x461ff3=this[_0x2697fc(0x15c)](_0x16e2bb);if(!(_0x461ff3 instanceof _0x6ad9c9))throw new _0x1b2370(_0x2697fc(0x17e),null,{'itemView':_0x461ff3,'id':_0x16e2bb,'parts':_0x435790});await _0x461ff3[_0x2697fc(0x169)]({'parts':_0x435790,'renderingStrategy':_0x413c59,'abortSignal':_0x4a5f82});}[_0x3930f5(0x182)]({id:_0x16f5df,index:_0x5a3112,state:_0x2becc6}){const _0x5b0551=_0x3930f5,_0x95d36=this[_0x5b0551(0x15c)](_0x16f5df);if(!(_0x95d36 instanceof _0x6ad9c9))throw new _0x1b2370(_0x5b0551(0x17e),this,{'id':_0x16f5df});_0x95d36[_0x5b0551(0x14f)](_0x5a3112,_0x2becc6);}[_0x3930f5(0x170)](_0x475e87){const _0x317205=_0x3930f5;this[_0x317205(0x15c)](_0x475e87)[_0x317205(0x16f)]();}[_0x3930f5(0x141)](){const _0x266b91=_0x3930f5;return this[_0x266b91(0x14c)][_0x266b91(0x136)](_0x5ac798=>_0x5ac798[_0x266b91(0x13e)]['id']);}[_0x3930f5(0x131)](_0x4ab70a){const _0x19d157=_0x3930f5;this[_0x19d157(0x14c)][_0x19d157(0x183)](this[_0x19d157(0x15c)](_0x4ab70a));}[_0x3930f5(0x135)](_0x2abba8,_0x3a9231){const _0x161451=_0x3930f5,_0x305ac7=this[_0x161451(0x15c)](_0x2abba8);if(!(_0x305ac7 instanceof _0x6ad9c9))return void _0x5aefb1(_0x161451(0x156),{'replyId':_0x2abba8,'partIndex':_0x3a9231});const _0x10ce0f=_0x305ac7[_0x161451(0x14d)](_0x3a9231);_0x10ce0f?_0x4db389({'target':_0x10ce0f[_0x161451(0x161)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x5aefb1(_0x161451(0x15d),{'replyId':_0x2abba8,'partIndex':_0x3a9231});}[_0x3930f5(0x142)](){const _0x2a7260=_0x3930f5;this[_0x2a7260(0x150)]({'tag':_0x2a7260(0x17f),'attributes':{'class':['ck',_0x2a7260(0x14e)]},'children':this[_0x2a7260(0x147)]()});}[_0x3930f5(0x147)](){const _0x4a8297=_0x3930f5,_0x9c0b56=this[_0x4a8297(0x13d)]();return[this[_0x4a8297(0x162)](),_0x9c0b56,this[_0x4a8297(0x13c)]()];}[_0x3930f5(0x13d)](){const _0x5dc43f=_0x3930f5,_0x5ec0c5=new _0x17ad7a(this[_0x5dc43f(0x145)],_0x207b9f[_0x5dc43f(0x14b)]);return _0x5ec0c5[_0x5dc43f(0x153)]({'attributes':{'class':[this[_0x5dc43f(0x17c)]['if'](_0x5dc43f(0x173),_0x5dc43f(0x167),_0x4c0a56=>!_0x4c0a56)]}}),_0x5ec0c5;}[_0x3930f5(0x162)](){const _0x24217e=_0x3930f5,_0x1f93c7=new _0x23bd02(this[_0x24217e(0x145)]);return _0x1f93c7[_0x24217e(0x150)]({'tag':_0x24217e(0x17f),'attributes':{'class':['ck',_0x24217e(0x168),this[_0x24217e(0x17c)]['if'](_0x24217e(0x173),_0x24217e(0x167))]},'children':this[_0x24217e(0x14c)]}),_0x1f93c7;}[_0x3930f5(0x13c)](){const _0x3864c9=_0x3930f5,_0x296b7d=new _0x23bd02(this[_0x3864c9(0x145)]);return _0x296b7d[_0x3864c9(0x150)]({'tag':_0x3864c9(0x17f),'attributes':{'class':['ck',_0x3864c9(0x181),this[_0x3864c9(0x17c)]['if'](_0x3864c9(0x171),_0x3864c9(0x167),_0x10ef80=>!_0x10ef80)]},'children':this[_0x3864c9(0x140)]()}),_0x296b7d;}[_0x3930f5(0x140)](){const _0x350b7a=_0x3930f5,_0x4034b6=new _0x44c45e();return _0x4034b6[_0x350b7a(0x16c)]=!0x0,[_0x4034b6,{'tag':_0x350b7a(0x164),'attributes':{'class':['ck',_0x350b7a(0x16d)]},'children':[{'text':this[_0x350b7a(0x17c)]['to'](_0x350b7a(0x166))}]}];}[_0x3930f5(0x15c)](_0x1e3bbc){const _0x3fe631=_0x3930f5,_0x2ad0e9=this[_0x3fe631(0x14c)][_0x3fe631(0x16a)](_0x54cee8=>_0x54cee8[_0x3fe631(0x13e)]['id'][_0x3fe631(0x175)](_0x1e3bbc));if(!_0x2ad0e9)throw new _0x1b2370(_0x3fe631(0x144),this,{'id':_0x1e3bbc});return _0x2ad0e9;}[_0x3930f5(0x15e)](_0x5b425c){const _0x47104c=_0x3930f5;this[_0x47104c(0x15f)](_0x47104c(0x166),_0x5b425c);}[_0x3930f5(0x13f)](_0x2e0a25){const _0xccc422=_0x3930f5;this[_0xccc422(0x15f)](_0xccc422(0x173),_0x2e0a25);}[_0x3930f5(0x180)](){const _0x52d0b6=_0x3930f5;this[_0x52d0b6(0x148)][_0x52d0b6(0x177)]();}[_0x3930f5(0x176)](){const _0x322761=_0x3930f5;this[_0x322761(0x148)][_0x322761(0x151)]();}}
23
+ const _0x2cefcb=_0x5d38;(function(_0x51abcf,_0x6a5e69){const _0x591d1d=_0x5d38,_0x5c84fc=_0x51abcf();while(!![]){try{const _0x24e391=parseInt(_0x591d1d(0x175))/0x1*(-parseInt(_0x591d1d(0x13a))/0x2)+-parseInt(_0x591d1d(0x17d))/0x3*(parseInt(_0x591d1d(0x15d))/0x4)+parseInt(_0x591d1d(0x177))/0x5+parseInt(_0x591d1d(0x17a))/0x6+parseInt(_0x591d1d(0x184))/0x7*(-parseInt(_0x591d1d(0x163))/0x8)+parseInt(_0x591d1d(0x17c))/0x9+parseInt(_0x591d1d(0x179))/0xa*(parseInt(_0x591d1d(0x157))/0xb);if(_0x24e391===_0x6a5e69)break;else _0x5c84fc['push'](_0x5c84fc['shift']());}catch(_0x337cf1){_0x5c84fc['push'](_0x5c84fc['shift']());}}}(_0x2516,0x6fc47));import{CKEditorError as _0x2b95b6,logWarning as _0x2374b4,scrollViewportToShowTarget as _0x34202e}from'ckeditor5/src/utils.js';import{View as _0x1d90e2}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x42bd1f}from'../utils/eventnames.js';function _0x5d38(_0x150170,_0xcbd55e){const _0x2516ae=_0x2516();return _0x5d38=function(_0x5d38e3,_0x165685){_0x5d38e3=_0x5d38e3-0x136;let _0x51313c=_0x2516ae[_0x5d38e3];return _0x51313c;},_0x5d38(_0x150170,_0xcbd55e);}import{AIChatFeedSuggestionItemView as _0x1f12ee}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x1cc552}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x6b1235}from'./feed/aichatfeedusermessageitem.js';function _0x2516(){const _0x2ce062=['stopAutoScroll','includes','_createTemplateChildren','children','ck-hidden','bindTemplate','clear','ck-ai-chat__feed','removeItem','isTrackChangesOn','4861kRGZEI','toggleLoadingSkeleton','2924925FsVibN','element','310yayNkj','3756840WoTZDu','ai-chat-feed-view-item-not-a-suggestion-item','7082622qEnHpA','8706XOZwBm','add','interaction-header','updateSources','ck-ai-chat__feed__items','_setupTemplate','render','2279767AGUwyx','scrollManager','setTemplate','_createFeedItems','find','remove','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','_createSkeletonLoader','376xXKYHO','locale','markItemAsDone','extendTemplate','destroy','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','div','user-message','updateContent','_bodyCollection','options','getItemIds','createCollection','delegate','set','_createFeedLoader','span','ai-chat-feed-view-item-not-found','ai-reply','aiFeed','ai-chat-feed-view-item-not-a-reply-item','ck-ai-chat__loader-text','startAutoScroll','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','markAsDone','updateReplyItem','loadingMessage','start','updateWebSources','127039znXScV','map','ai-suggestion-reply','getPartView','scrollToSuggestion','stop','908hYAHgP','getItemById','isPending','bind','isVisible','ck-ai-chat__loader','8oqxORA','updatePartState','setLoadingMessage','updateSuggestionItem','addItem','updateSuggestionPartState','_createLoaderChildren','isLoadingSkeletonVisible'];_0x2516=function(){return _0x2ce062;};return _0x2516();}import{AIChatFeedErrorItemView as _0x518c43}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x14911e}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x464c3d}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x4fd07d,SKELETON_DEFINITIONS as _0x59db90}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x2a8549}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x1d90e2{[_0x2cefcb(0x16e)];[_0x2cefcb(0x185)];[_0x2cefcb(0x143)];constructor(_0x54879d,_0x399b7b){const _0x46952f=_0x2cefcb;super(_0x54879d),this[_0x46952f(0x143)]=_0x399b7b,this[_0x46952f(0x148)](_0x46952f(0x15f),!0x1),this[_0x46952f(0x148)](_0x46952f(0x154),''),this[_0x46952f(0x148)](_0x46952f(0x16a),!0x1),this[_0x46952f(0x148)](_0x46952f(0x174),!0x1),this[_0x46952f(0x16e)]=this[_0x46952f(0x146)](),this[_0x46952f(0x16e)][_0x46952f(0x147)](..._0x42bd1f)['to'](this),this[_0x46952f(0x182)]();}[_0x2cefcb(0x183)](){const _0x97b031=_0x2cefcb;super[_0x97b031(0x183)](),this[_0x97b031(0x185)]=new _0x464c3d(this[_0x97b031(0x178)]);}[_0x2cefcb(0x13e)](){const _0x40bec3=_0x2cefcb;super[_0x40bec3(0x13e)](),this[_0x40bec3(0x185)][_0x40bec3(0x13e)]();}[_0x2cefcb(0x171)](){const _0xa8e86f=_0x2cefcb;this[_0xa8e86f(0x16e)][_0xa8e86f(0x171)]();}[_0x2cefcb(0x167)](_0x1775dc,_0x3e713e){const _0x518611=_0x2cefcb;let _0x2b2fb8;_0x518611(0x14c)===_0x1775dc?_0x2b2fb8=new _0x1cc552(this[_0x518611(0x13b)],_0x3e713e,this[_0x518611(0x143)]):_0x518611(0x159)===_0x1775dc?(_0x2b2fb8=new _0x1f12ee(this[_0x518611(0x13b)],_0x3e713e,this[_0x518611(0x143)]),_0x2b2fb8[_0x518611(0x160)](_0x518611(0x174))['to'](this,_0x518611(0x174))):_0x2b2fb8=_0x518611(0x141)===_0x1775dc?new _0x6b1235(this[_0x518611(0x13b)],_0x3e713e,this[_0x518611(0x143)]):_0x518611(0x17f)===_0x1775dc?new _0x14911e(this[_0x518611(0x13b)],_0x3e713e):new _0x518c43(_0x3e713e),this[_0x518611(0x16e)][_0x518611(0x17e)](_0x2b2fb8);}async[_0x2cefcb(0x153)]({id:_0x2e658b,parsedContent:_0x1cdf74,renderingStrategy:_0x1984fe,abortSignal:_0x2cb25e}){const _0x4fea75=_0x2cefcb,_0x4278cf=this[_0x4fea75(0x15e)](_0x2e658b);if(!(_0x4278cf instanceof _0x1cc552))throw new _0x2b95b6(_0x4fea75(0x14e),null,{'itemView':_0x4278cf,'id':_0x2e658b,'parsedContent':_0x1cdf74});await _0x4278cf[_0x4fea75(0x142)]({'parsedContent':_0x1cdf74,'renderingStrategy':_0x1984fe,'abortSignal':_0x2cb25e});}async[_0x2cefcb(0x156)](_0x1cea74,_0x50e41c){const _0x49ab0f=_0x2cefcb,_0x4acd8b=this[_0x49ab0f(0x15e)](_0x1cea74);if(_0x4acd8b instanceof _0x1f12ee)_0x4acd8b[_0x49ab0f(0x180)](_0x50e41c);else{if(!(_0x4acd8b instanceof _0x1cc552))throw new _0x2b95b6(_0x49ab0f(0x13f),null,{'itemView':_0x4acd8b,'id':_0x1cea74,'sources':_0x50e41c});_0x4acd8b[_0x49ab0f(0x180)](_0x50e41c);}}async[_0x2cefcb(0x166)]({id:_0x475c03,parts:_0x116dee,renderingStrategy:_0x412213,abortSignal:_0x263f4d}){const _0x448435=_0x2cefcb,_0x1619cf=this[_0x448435(0x15e)](_0x475c03);if(!(_0x1619cf instanceof _0x1f12ee))throw new _0x2b95b6(_0x448435(0x17b),null,{'itemView':_0x1619cf,'id':_0x475c03,'parts':_0x116dee});await _0x1619cf[_0x448435(0x142)]({'parts':_0x116dee,'renderingStrategy':_0x412213,'abortSignal':_0x263f4d});}[_0x2cefcb(0x168)]({id:_0x35a1a4,index:_0x64c694,state:_0x2a169c}){const _0x19ed5c=_0x2cefcb,_0x28585a=this[_0x19ed5c(0x15e)](_0x35a1a4);if(!(_0x28585a instanceof _0x1f12ee))throw new _0x2b95b6(_0x19ed5c(0x17b),this,{'id':_0x35a1a4});_0x28585a[_0x19ed5c(0x164)](_0x64c694,_0x2a169c);}[_0x2cefcb(0x13c)](_0x49fa6c){const _0x2bc89e=_0x2cefcb;this[_0x2bc89e(0x15e)](_0x49fa6c)[_0x2bc89e(0x152)]();}[_0x2cefcb(0x145)](){const _0x11671b=_0x2cefcb;return this[_0x11671b(0x16e)][_0x11671b(0x158)](_0x18716f=>_0x18716f[_0x11671b(0x144)]['id']);}[_0x2cefcb(0x173)](_0xf69eab){const _0x32ebb2=_0x2cefcb;this[_0x32ebb2(0x16e)][_0x32ebb2(0x137)](this[_0x32ebb2(0x15e)](_0xf69eab));}[_0x2cefcb(0x15b)](_0x59612e,_0x1657ca){const _0x3adbfb=_0x2cefcb,_0x4dc247=this[_0x3adbfb(0x15e)](_0x59612e);if(!(_0x4dc247 instanceof _0x1f12ee))return void _0x2374b4(_0x3adbfb(0x138),{'replyId':_0x59612e,'partIndex':_0x1657ca});const _0x49cfee=_0x4dc247[_0x3adbfb(0x15a)](_0x1657ca);_0x49cfee?_0x34202e({'target':_0x49cfee[_0x3adbfb(0x178)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x2374b4(_0x3adbfb(0x151),{'replyId':_0x59612e,'partIndex':_0x1657ca});}[_0x2cefcb(0x182)](){const _0x49496a=_0x2cefcb;this[_0x49496a(0x186)]({'tag':_0x49496a(0x140),'attributes':{'class':['ck',_0x49496a(0x172)]},'children':this[_0x49496a(0x16d)]()});}[_0x2cefcb(0x16d)](){const _0x5ca07b=_0x2cefcb,_0x196751=this[_0x5ca07b(0x139)]();return[this[_0x5ca07b(0x187)](),_0x196751,this[_0x5ca07b(0x149)]()];}[_0x2cefcb(0x139)](){const _0x4cab36=_0x2cefcb,_0x3f602f=new _0x4fd07d(this[_0x4cab36(0x13b)],_0x59db90[_0x4cab36(0x14d)]);return _0x3f602f[_0x4cab36(0x13d)]({'attributes':{'class':[this[_0x4cab36(0x170)]['if'](_0x4cab36(0x16a),_0x4cab36(0x16f),_0x3868f4=>!_0x3868f4)]}}),_0x3f602f;}[_0x2cefcb(0x187)](){const _0x38cb8c=_0x2cefcb,_0x476764=new _0x1d90e2(this[_0x38cb8c(0x13b)]);return _0x476764[_0x38cb8c(0x186)]({'tag':_0x38cb8c(0x140),'attributes':{'class':['ck',_0x38cb8c(0x181),this[_0x38cb8c(0x170)]['if'](_0x38cb8c(0x16a),_0x38cb8c(0x16f))]},'children':this[_0x38cb8c(0x16e)]}),_0x476764;}[_0x2cefcb(0x149)](){const _0x1b7b51=_0x2cefcb,_0x53e498=new _0x1d90e2(this[_0x1b7b51(0x13b)]);return _0x53e498[_0x1b7b51(0x186)]({'tag':_0x1b7b51(0x140),'attributes':{'class':['ck',_0x1b7b51(0x162),this[_0x1b7b51(0x170)]['if'](_0x1b7b51(0x15f),_0x1b7b51(0x16f),_0x158724=>!_0x158724)]},'children':this[_0x1b7b51(0x169)]()}),_0x53e498;}[_0x2cefcb(0x169)](){const _0x514553=_0x2cefcb,_0x5a62eb=new _0x2a8549();return _0x5a62eb[_0x514553(0x161)]=!0x0,[_0x5a62eb,{'tag':_0x514553(0x14a),'attributes':{'class':['ck',_0x514553(0x14f)]},'children':[{'text':this[_0x514553(0x170)]['to'](_0x514553(0x154))}]}];}[_0x2cefcb(0x15e)](_0x25f637){const _0x3296de=_0x2cefcb,_0x1cc6b3=this[_0x3296de(0x16e)][_0x3296de(0x136)](_0x3d3cf3=>_0x3d3cf3[_0x3296de(0x144)]['id'][_0x3296de(0x16c)](_0x25f637));if(!_0x1cc6b3)throw new _0x2b95b6(_0x3296de(0x14b),this,{'id':_0x25f637});return _0x1cc6b3;}[_0x2cefcb(0x165)](_0x10c9a8){const _0x2123d4=_0x2cefcb;this[_0x2123d4(0x148)](_0x2123d4(0x154),_0x10c9a8);}[_0x2cefcb(0x176)](_0x44f243){const _0x35b0ec=_0x2cefcb;this[_0x35b0ec(0x148)](_0x35b0ec(0x16a),_0x44f243);}[_0x2cefcb(0x150)](){const _0x2cb04b=_0x2cefcb;this[_0x2cb04b(0x185)][_0x2cb04b(0x155)]();}[_0x2cefcb(0x16b)](){const _0x42d17d=_0x2cefcb;this[_0x42d17d(0x185)][_0x42d17d(0x15c)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x165928=_0x303f;(function(_0x3a96b8,_0x4caccb){const _0x3ed6c1=_0x303f,_0x3353b5=_0x3a96b8();while(!![]){try{const _0x323d7b=-parseInt(_0x3ed6c1(0x106))/0x1+-parseInt(_0x3ed6c1(0x102))/0x2*(-parseInt(_0x3ed6c1(0x100))/0x3)+-parseInt(_0x3ed6c1(0x101))/0x4+parseInt(_0x3ed6c1(0xf5))/0x5+-parseInt(_0x3ed6c1(0xfe))/0x6*(-parseInt(_0x3ed6c1(0x109))/0x7)+-parseInt(_0x3ed6c1(0x103))/0x8*(-parseInt(_0x3ed6c1(0xf9))/0x9)+-parseInt(_0x3ed6c1(0xf6))/0xa;if(_0x323d7b===_0x4caccb)break;else _0x3353b5['push'](_0x3353b5['shift']());}catch(_0x11fb56){_0x3353b5['push'](_0x3353b5['shift']());}}}(_0xc2f8,0x651bc));import{ButtonView as _0x1a8d8c,FormHeaderView as _0x3cdca9}from'ckeditor5/src/ui.js';import{IconPlus as _0x2ebebf,IconAIChat as _0x4c29e6}from'ckeditor5/src/icons.js';import{getTranslation as _0x1bc322}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x10b6da}from'../../aicore/utils/createresizebutton.js';function _0x303f(_0xc148d3,_0x320256){const _0xc2f803=_0xc2f8();return _0x303f=function(_0x303f61,_0x5bb6af){_0x303f61=_0x303f61-0xf2;let _0x5d7e44=_0xc2f803[_0x303f61];return _0x5d7e44;},_0x303f(_0xc148d3,_0x320256);}export class AIChatHeaderView extends _0x3cdca9{[_0x165928(0x107)];[_0x165928(0xf2)];constructor(_0x54c0f8,_0x3b19c3){const _0x2dfddc=_0x165928;super(_0x54c0f8,{'label':_0x1bc322(_0x54c0f8,_0x2dfddc(0xfd)),'class':_0x2dfddc(0xf7),'icon':_0x4c29e6}),this[_0x2dfddc(0x108)](_0x2dfddc(0x10a),!0x1),this[_0x2dfddc(0x107)]=this[_0x2dfddc(0xfc)](_0x54c0f8),this[_0x2dfddc(0xfb)][_0x2dfddc(0xf8)](this[_0x2dfddc(0x107)]),_0x3b19c3&&(this[_0x2dfddc(0xf2)]=_0x10b6da(_0x54c0f8,this),this[_0x2dfddc(0xfb)][_0x2dfddc(0xf8)](this[_0x2dfddc(0xf2)]));}[_0x165928(0xfc)](_0x564e1b){const _0x2f90b5=_0x165928,_0x1b72e4=new _0x1a8d8c(_0x564e1b);return _0x1b72e4[_0x2f90b5(0x108)]({'label':_0x1bc322(this[_0x2f90b5(0xf4)],_0x2f90b5(0x105)),'withText':!0x0,'icon':_0x2ebebf,'class':_0x2f90b5(0xf3)}),_0x1b72e4['on'](_0x2f90b5(0xfa),()=>{const _0x11cbb9=_0x2f90b5;this[_0x11cbb9(0xff)](_0x11cbb9(0x104));}),_0x1b72e4;}}function _0xc2f8(){const _0x4ef041=['execute','children','_createStartConversationButton','AI_CHAT_HEADING','6KAzWKC','fire','763281SGJBYB','624868klxUzC','2AZSgSH','1268968mPlyNz','startConversation','AI_CHAT_LABEL_NEW_CHAT','561090CnlEKf','conversationStartButton','set','3464741IQzZmK','isMaximized','resizeButton','ck-ai-chat__start-conversation','locale','2243770FVzbuY','2253180QQTuOY','ck-ai-header\x20ck-ai-header_chat','add','9LmvvZl'];_0xc2f8=function(){return _0x4ef041;};return _0xc2f8();}
23
+ function _0x58a5(_0x4442a5,_0x883954){const _0x6fe74d=_0x6fe7();return _0x58a5=function(_0x58a582,_0x5bbfd9){_0x58a582=_0x58a582-0x1a1;let _0x4dcb75=_0x6fe74d[_0x58a582];return _0x4dcb75;},_0x58a5(_0x4442a5,_0x883954);}const _0x621a3a=_0x58a5;(function(_0x1d74a8,_0x202f67){const _0x26eae2=_0x58a5,_0x3337ff=_0x1d74a8();while(!![]){try{const _0x57b531=parseInt(_0x26eae2(0x1af))/0x1*(parseInt(_0x26eae2(0x1ac))/0x2)+parseInt(_0x26eae2(0x1a8))/0x3+-parseInt(_0x26eae2(0x1b3))/0x4+parseInt(_0x26eae2(0x1a7))/0x5*(-parseInt(_0x26eae2(0x1a9))/0x6)+parseInt(_0x26eae2(0x1ab))/0x7*(parseInt(_0x26eae2(0x1a2))/0x8)+parseInt(_0x26eae2(0x1b9))/0x9+-parseInt(_0x26eae2(0x1a3))/0xa;if(_0x57b531===_0x202f67)break;else _0x3337ff['push'](_0x3337ff['shift']());}catch(_0x154be3){_0x3337ff['push'](_0x3337ff['shift']());}}}(_0x6fe7,0x45db2));import{ButtonView as _0x4ecc6c,FormHeaderView as _0x18f159}from'ckeditor5/src/ui.js';import{IconPlus as _0x13ca3a,IconAIChat as _0x257cb6}from'ckeditor5/src/icons.js';import{getTranslation as _0x3db16b}from'../../aicore/utils/common-translations.js';function _0x6fe7(){const _0x222886=['5513970lPDvXt','ck-ai-chat__start-conversation','isMaximized','fire','55wDhZVq','946755DsYViT','114498lCsSsu','children','343hdbyJC','122rZYMiQ','conversationStartButton','ck-ai-header\x20ck-ai-header_chat','4093OoPkBk','execute','startConversation','add','26308wHdtDp','locale','AI_CHAT_LABEL_NEW_CHAT','resizeButton','AI_CHAT_HEADING','_createStartConversationButton','365886UeYdIP','set','73160DIARbq'];_0x6fe7=function(){return _0x222886;};return _0x6fe7();}import{createResizeButton as _0x3ebb25}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x18f159{[_0x621a3a(0x1ad)];[_0x621a3a(0x1b6)];constructor(_0xf4b55e,_0xd6599){const _0x4e755e=_0x621a3a;super(_0xf4b55e,{'label':_0x3db16b(_0xf4b55e,_0x4e755e(0x1b7)),'class':_0x4e755e(0x1ae),'icon':_0x257cb6}),this[_0x4e755e(0x1a1)](_0x4e755e(0x1a5),!0x1),this[_0x4e755e(0x1ad)]=this[_0x4e755e(0x1b8)](_0xf4b55e),this[_0x4e755e(0x1aa)][_0x4e755e(0x1b2)](this[_0x4e755e(0x1ad)]),_0xd6599&&(this[_0x4e755e(0x1b6)]=_0x3ebb25(_0xf4b55e,this),this[_0x4e755e(0x1aa)][_0x4e755e(0x1b2)](this[_0x4e755e(0x1b6)]));}[_0x621a3a(0x1b8)](_0x34f339){const _0x5dbb3b=_0x621a3a,_0x26920e=new _0x4ecc6c(_0x34f339);return _0x26920e[_0x5dbb3b(0x1a1)]({'label':_0x3db16b(this[_0x5dbb3b(0x1b4)],_0x5dbb3b(0x1b5)),'withText':!0x0,'icon':_0x13ca3a,'class':_0x5dbb3b(0x1a4)}),_0x26920e['on'](_0x5dbb3b(0x1b0),()=>{const _0x566480=_0x5dbb3b;this[_0x566480(0x1a6)](_0x566480(0x1b1));}),_0x26920e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4d5a97=_0x2389;(function(_0xb618dc,_0x5d4bc0){var _0x22c7b4=_0x2389,_0x7df247=_0xb618dc();while(!![]){try{var _0x2deed7=parseInt(_0x22c7b4(0x118))/0x1*(parseInt(_0x22c7b4(0x110))/0x2)+parseInt(_0x22c7b4(0x128))/0x3+parseInt(_0x22c7b4(0x111))/0x4*(-parseInt(_0x22c7b4(0x11a))/0x5)+parseInt(_0x22c7b4(0x11d))/0x6*(-parseInt(_0x22c7b4(0x125))/0x7)+-parseInt(_0x22c7b4(0x112))/0x8+-parseInt(_0x22c7b4(0x122))/0x9+-parseInt(_0x22c7b4(0x126))/0xa*(parseInt(_0x22c7b4(0x11c))/0xb);if(_0x2deed7===_0x5d4bc0)break;else _0x7df247['push'](_0x7df247['shift']());}catch(_0x4c3c1d){_0x7df247['push'](_0x7df247['shift']());}}}(_0x5caa,0x875b9));import{View as _0x410ec6,BodyCollection as _0x4cea54}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x20d95b}from'../utils/eventnames.js';function _0x2389(_0xba681a,_0x281969){var _0x5caaa9=_0x5caa();return _0x2389=function(_0x238972,_0xe70dd6){_0x238972=_0x238972-0x10d;var _0x429db4=_0x5caaa9[_0x238972];return _0x429db4;},_0x2389(_0xba681a,_0x281969);}import{AIChatFeedView as _0x35f70b}from'./aichatfeedview.js';import{AIChatControlsView as _0x34ad78}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x12858d}from'./aichatheaderview.js';import{AIDisclaimerView as _0x3d9314}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x410ec6{[_0x4d5a97(0x116)];[_0x4d5a97(0x127)];[_0x4d5a97(0x117)];[_0x4d5a97(0x113)];[_0x4d5a97(0x11e)];constructor(_0x3c74a5,_0x263b78){var _0x7dcf58=_0x4d5a97;super(_0x3c74a5),this[_0x7dcf58(0x11e)]=new _0x4cea54(_0x3c74a5),this[_0x7dcf58(0x11e)][_0x7dcf58(0x115)](),this[_0x7dcf58(0x116)]=new _0x12858d(_0x3c74a5,_0x263b78[_0x7dcf58(0x11f)]),this[_0x7dcf58(0x116)][_0x7dcf58(0x114)](..._0x20d95b)['to'](this),this[_0x7dcf58(0x127)]=new _0x35f70b(_0x3c74a5,this[_0x7dcf58(0x11e)]),this[_0x7dcf58(0x127)][_0x7dcf58(0x114)](..._0x20d95b)['to'](this),this[_0x7dcf58(0x117)]=new _0x34ad78(_0x3c74a5,{'bodyCollection':this[_0x7dcf58(0x11e)],'contextResourcesSearchInputVisibleFrom':_0x263b78[_0x7dcf58(0x124)]}),this[_0x7dcf58(0x117)][_0x7dcf58(0x114)](..._0x20d95b)['to'](this),this[_0x7dcf58(0x113)]=new _0x3d9314(_0x3c74a5),this[_0x7dcf58(0x10d)]({'tag':_0x7dcf58(0x123),'attributes':{'class':['ck',_0x7dcf58(0x12a),_0x7dcf58(0x129),_0x7dcf58(0x11b)],'dir':_0x3c74a5[_0x7dcf58(0x10f)]},'children':[this[_0x7dcf58(0x116)],this[_0x7dcf58(0x127)],this[_0x7dcf58(0x117)],this[_0x7dcf58(0x113)]]});}[_0x4d5a97(0x119)](_0x225da,_0x582395,_0x1a1f51,_0x446764){var _0x1f0b80=_0x4d5a97;this[_0x1f0b80(0x117)][_0x1f0b80(0x119)](_0x225da,_0x582395,_0x1a1f51,_0x446764);}[_0x4d5a97(0x10e)](_0x4363c3){var _0x5da3e8=_0x4d5a97;this[_0x5da3e8(0x117)][_0x5da3e8(0x10e)](_0x4363c3);}[_0x4d5a97(0x121)](){var _0x5914d7=_0x4d5a97;this[_0x5914d7(0x11e)][_0x5914d7(0x120)](),super[_0x5914d7(0x121)]();}}function _0x5caa(){var _0x332f4a=['chatHeader','chatControls','1cmvrAs','populateSourceResourceBalloon','145HcxzuF','ck-rounded-corners','132QgRlPQ','6ZhNbbk','_bodyCollection','showResizeButton','detachFromDom','destroy','7292106SRxWyo','div','contextResourcesSearchInputVisibleFrom','1914647fUhMnW','59710famuxG','chatFeed','3268629NITPfb','ck-ai-chat','ck-reset_all','setTemplate','closeSourceResourceBalloon','uiLanguageDirection','2120146HTWGCA','31576yFWrjT','1686864TTCzds','chatDisclaimer','delegate','attachToDom'];_0x5caa=function(){return _0x332f4a;};return _0x5caa();}
23
+ var _0x3a43b7=_0x16c9;function _0x1c57(){var _0x2ffaef=['destroy','17945916oKHKYl','2155769jtadgs','chatHeader','ck-ai-chat','uiLanguageDirection','4322527fEdqnb','ck-rounded-corners','1326396tMyMCr','10nCMKJa','showResizeButton','2154zyNYzh','chatDisclaimer','div','closeSourceResourceBalloon','2588RiroJz','ck-reset_all','8QtpPpG','delegate','chatControls','chatFeed','attachToDom','626058ZArnBc','_bodyCollection','10OMlthQ','contextResourcesSearchInputVisibleFrom','detachFromDom','47692vYwiRO','populateSourceResourceBalloon','10qGAgTe','setTemplate'];_0x1c57=function(){return _0x2ffaef;};return _0x1c57();}(function(_0x5ab245,_0x173f36){var _0x5da83b=_0x16c9,_0x46dfe2=_0x5ab245();while(!![]){try{var _0x433ac0=parseInt(_0x5da83b(0x99))/0x1*(parseInt(_0x5da83b(0xab))/0x2)+parseInt(_0x5da83b(0x9b))/0x3*(parseInt(_0x5da83b(0x9f))/0x4)+-parseInt(_0x5da83b(0xa8))/0x5*(-parseInt(_0x5da83b(0x98))/0x6)+-parseInt(_0x5da83b(0x92))/0x7*(-parseInt(_0x5da83b(0xa1))/0x8)+parseInt(_0x5da83b(0xa6))/0x9*(-parseInt(_0x5da83b(0xad))/0xa)+parseInt(_0x5da83b(0x96))/0xb+-parseInt(_0x5da83b(0x91))/0xc;if(_0x433ac0===_0x173f36)break;else _0x46dfe2['push'](_0x46dfe2['shift']());}catch(_0x247a28){_0x46dfe2['push'](_0x46dfe2['shift']());}}}(_0x1c57,0x449af));import{View as _0x242292,BodyCollection as _0x1ba47f}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x43171a}from'../utils/eventnames.js';import{AIChatFeedView as _0x25895e}from'./aichatfeedview.js';import{AIChatControlsView as _0x4009ca}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x1ea7cc}from'./aichatheaderview.js';import{AIDisclaimerView as _0xe02f34}from'../../aicore/ui/aidisclaimerview.js';function _0x16c9(_0x4b0932,_0x5225e7){var _0x1c5736=_0x1c57();return _0x16c9=function(_0x16c93c,_0x1aa113){_0x16c93c=_0x16c93c-0x8f;var _0x237d14=_0x1c5736[_0x16c93c];return _0x237d14;},_0x16c9(_0x4b0932,_0x5225e7);}export class AIChatView extends _0x242292{[_0x3a43b7(0x93)];[_0x3a43b7(0xa4)];[_0x3a43b7(0xa3)];[_0x3a43b7(0x9c)];[_0x3a43b7(0xa7)];constructor(_0x1c8ad9,_0x35df2b){var _0x2c558a=_0x3a43b7;super(_0x1c8ad9),this[_0x2c558a(0xa7)]=new _0x1ba47f(_0x1c8ad9),this[_0x2c558a(0xa7)][_0x2c558a(0xa5)](),this[_0x2c558a(0x93)]=new _0x1ea7cc(_0x1c8ad9,_0x35df2b[_0x2c558a(0x9a)]),this[_0x2c558a(0x93)][_0x2c558a(0xa2)](..._0x43171a)['to'](this),this[_0x2c558a(0xa4)]=new _0x25895e(_0x1c8ad9,this[_0x2c558a(0xa7)]),this[_0x2c558a(0xa4)][_0x2c558a(0xa2)](..._0x43171a)['to'](this),this[_0x2c558a(0xa3)]=new _0x4009ca(_0x1c8ad9,{'bodyCollection':this[_0x2c558a(0xa7)],'contextResourcesSearchInputVisibleFrom':_0x35df2b[_0x2c558a(0xa9)]}),this[_0x2c558a(0xa3)][_0x2c558a(0xa2)](..._0x43171a)['to'](this),this[_0x2c558a(0x9c)]=new _0xe02f34(_0x1c8ad9),this[_0x2c558a(0x8f)]({'tag':_0x2c558a(0x9d),'attributes':{'class':['ck',_0x2c558a(0xa0),_0x2c558a(0x94),_0x2c558a(0x97)],'dir':_0x1c8ad9[_0x2c558a(0x95)]},'children':[this[_0x2c558a(0x93)],this[_0x2c558a(0xa4)],this[_0x2c558a(0xa3)],this[_0x2c558a(0x9c)]]});}[_0x3a43b7(0xac)](_0xb2ffc4,_0x51c4d1,_0x24b502,_0x76dbe8){var _0x2e0cc4=_0x3a43b7;this[_0x2e0cc4(0xa3)][_0x2e0cc4(0xac)](_0xb2ffc4,_0x51c4d1,_0x24b502,_0x76dbe8);}[_0x3a43b7(0x9e)](_0x5cff2e){var _0x5d84d7=_0x3a43b7;this[_0x5d84d7(0xa3)][_0x5d84d7(0x9e)](_0x5cff2e);}[_0x3a43b7(0x90)](){var _0x33b0ee=_0x3a43b7;this[_0x33b0ee(0xa7)][_0x33b0ee(0xaa)](),super[_0x33b0ee(0x90)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x410709=_0xf654;(function(_0x6aa6d3,_0x51cf81){const _0x2a0c4f=_0xf654,_0xdde5ba=_0x6aa6d3();while(!![]){try{const _0x4a68ad=parseInt(_0x2a0c4f(0x19d))/0x1*(parseInt(_0x2a0c4f(0x1a9))/0x2)+parseInt(_0x2a0c4f(0x1c8))/0x3*(-parseInt(_0x2a0c4f(0x1ee))/0x4)+parseInt(_0x2a0c4f(0x192))/0x5*(-parseInt(_0x2a0c4f(0x1b2))/0x6)+-parseInt(_0x2a0c4f(0x215))/0x7+parseInt(_0x2a0c4f(0x1fd))/0x8*(parseInt(_0x2a0c4f(0x1af))/0x9)+-parseInt(_0x2a0c4f(0x1cb))/0xa+parseInt(_0x2a0c4f(0x18d))/0xb*(parseInt(_0x2a0c4f(0x1f5))/0xc);if(_0x4a68ad===_0x51cf81)break;else _0xdde5ba['push'](_0xdde5ba['shift']());}catch(_0x2bf2a1){_0xdde5ba['push'](_0xdde5ba['shift']());}}}(_0x3151,0x29e2b));import{View as _0x3dd104,BalloonPanelView as _0x4b4411,ButtonView as _0x22f141,clickOutsideHandler as _0x760a16}from'ckeditor5/src/ui.js';function _0xf654(_0x2685a2,_0x5b721e){const _0x315194=_0x3151();return _0xf654=function(_0xf654d6,_0x57ed12){_0xf654d6=_0xf654d6-0x182;let _0x584b78=_0x315194[_0xf654d6];return _0x584b78;},_0xf654(_0x2685a2,_0x5b721e);}import{Collection as _0x239a35}from'ckeditor5/src/utils.js';function _0x3151(){const _0x4011f1=['hide','300px','style','_createContainerElements','getComputedStyle','3RvAWnu','reorganizeChips','_applyCalculationStyles','some','querySelector','destroy','_updateShowMoreButtonVisibility','right','add','_bodyCollection','documentElement','calculationContainer','133372jhSORM','overflowChips','_ancestorsToRestore','showMoreButtonView','50px','_createMockButton','48537eBnDBI','children','from','58284feKhDP','innerHeight','position','slice','abs','remove','top','opacity','observe','_overflowChips','isVisible','left','none','setTemplate','_makeAncestorsVisible','pop','button','boxSizing','controlsButton','_containerElement','_showMoreBalloonPanelView','_createShowMoreButton','9aCXvig','height','block','487590PWqxNd','clientWidth','disconnect','disableAnimationOnEnter','_renderChipsAndCountRows','-9999px','div','_calculateContainerWidth','_checkAndHandleOverflow','textContent','clientHeight','bottom','_createCalculationContainer','zIndex','_repinBalloonPanel','_createShowMoreBalloonPanelView','_createShowMoreButtonView','isIntersecting','block\x20!important','createElement','clear','+\x201','overflowContainer','set','innerHTML','label','isConnected','render','showMoreLabelPrefix','push','element','tagName','extendTemplate','border-box','setContainerElement','119696tPXpAp','_updateOverflowUI','rowDetectionTolerance','_findTargetContainer','ck-calculation-container','cloneNode','content','1056fMJzIZ','_config','length','pointerEvents','forEach','_handleShowMoreButtonClick','_pendingCalculation','hidden','80rnDbrX','hideBalloonPanel','_applyOverflowResults','_showMoreButtonView','_parentView','width','visibility','innerWidth','_targetContainer','showMoreBalloon','maxVisibleRows','showBalloonPanel','appendChild','includes','visible\x20!important','_intersectionObserver','_visibleChips','parentElement','pin','display','_locale','_restoreAncestorVisibility','filter','auto','390922zQVQHs','visible','absolute','_distributeChips','_updateBalloonContent','_isContainerVisible','isOn','className','show','_testButtonFit','_calculateOverflowInContainer','_setupVisibilityObserver','showMoreButton','cssClasses','47993UQEWTn','body','execute','.ck-ai-chat','undefined','140EYtQnJ','classList','0px','offsetWidth','toLowerCase','getBoundingClientRect'];_0x3151=function(){return _0x4011f1;};return _0x3151();}const sn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},hn=_0x410709(0x199);export class AIChatChipsOverflowManager{[_0x410709(0x211)];[_0x410709(0x1f6)];[_0x410709(0x20d)];[_0x410709(0x1bb)];[_0x410709(0x200)]=null;[_0x410709(0x1c6)]=null;[_0x410709(0x1c5)]=null;[_0x410709(0x1a6)];[_0x410709(0x201)]=null;[_0x410709(0x20c)]=null;[_0x410709(0x1fb)]=!0x1;constructor(_0x2583c3,_0x30c166,_0x1390b1,_0x5a8601,_0x443e46){const _0x25d957=_0x410709;this[_0x25d957(0x211)]=_0x2583c3,this[_0x25d957(0x20d)]=_0x30c166,this[_0x25d957(0x1f6)]={...sn,..._0x1390b1,'cssClasses':{'controlsButton':'','calculationContainer':_0x25d957(0x1f2),..._0x1390b1[_0x25d957(0x18c)]}},this[_0x25d957(0x1bb)]=new _0x239a35(),this[_0x25d957(0x1a6)]=_0x5a8601,this[_0x25d957(0x201)]=_0x443e46||null;}[_0x410709(0x1ed)](_0x4555f5){const _0x24ad6c=_0x410709;this[_0x24ad6c(0x20c)]&&(this[_0x24ad6c(0x20c)][_0x24ad6c(0x1cd)](),this[_0x24ad6c(0x20c)]=null),this[_0x24ad6c(0x1c5)]=_0x4555f5,this[_0x24ad6c(0x18a)]();}get[_0x410709(0x1ac)](){const _0x1cb884=_0x410709;return this[_0x1cb884(0x200)];}get[_0x410709(0x1aa)](){const _0x57d0ac=_0x410709;return this[_0x57d0ac(0x1bb)];}[_0x410709(0x19e)](){requestAnimationFrame(()=>{const _0x20a8bf=_0xf654;this[_0x20a8bf(0x1d3)]();});}[_0x410709(0x208)](){const _0x563539=_0x410709;this[_0x563539(0x200)]&&this[_0x563539(0x1c6)]&&(this[_0x563539(0x183)](),this[_0x563539(0x200)][_0x563539(0x185)]=!0x0,this[_0x563539(0x1c6)][_0x563539(0x187)](),this[_0x563539(0x1c6)][_0x563539(0x20f)]({'target':this[_0x563539(0x200)][_0x563539(0x1e9)],'limiter':document[_0x563539(0x1a1)](_0x563539(0x190))}));}[_0x410709(0x1fe)](){const _0x3f864e=_0x410709;this[_0x3f864e(0x200)]&&this[_0x3f864e(0x1c6)]&&(this[_0x3f864e(0x200)][_0x3f864e(0x185)]=!0x1,this[_0x3f864e(0x1c6)][_0x3f864e(0x198)]());}[_0x410709(0x1df)](){const _0x436852=_0x410709;this[_0x436852(0x1bb)][_0x436852(0x1df)](),this[_0x436852(0x1fe)](),this[_0x436852(0x1a3)](),this[_0x436852(0x200)]&&(this[_0x436852(0x200)][_0x436852(0x1e4)]=''),this[_0x436852(0x1c6)]&&this[_0x436852(0x1c6)][_0x436852(0x1f4)][_0x436852(0x1df)]();}[_0x410709(0x1a2)](){const _0x2d2a5b=_0x410709;this[_0x2d2a5b(0x20c)]&&(this[_0x2d2a5b(0x20c)][_0x2d2a5b(0x1cd)](),this[_0x2d2a5b(0x20c)]=null),this[_0x2d2a5b(0x200)]&&(this[_0x2d2a5b(0x200)][_0x2d2a5b(0x1a2)](),this[_0x2d2a5b(0x200)]=null),this[_0x2d2a5b(0x1c6)]&&(this[_0x2d2a5b(0x1c6)][_0x2d2a5b(0x1a2)](),this[_0x2d2a5b(0x1c6)]=null);}[_0x410709(0x1d3)](){const _0x2bc960=_0x410709;if(!this[_0x2bc960(0x1c5)])return;if(!this[_0x2bc960(0x184)]())return void(this[_0x2bc960(0x1fb)]=!0x0);this[_0x2bc960(0x1fb)]=!0x1;const _0x827518=[...this[_0x2bc960(0x20d)],...this[_0x2bc960(0x1bb)]],_0x119bad=this[_0x2bc960(0x1d7)](),_0x2169ae=this[_0x2bc960(0x189)](_0x119bad,_0x827518),_0x2a3aa0=_0x119bad[_0x2bc960(0x1ab)];_0x2a3aa0&&this[_0x2bc960(0x212)](_0x2a3aa0),_0x119bad[_0x2bc960(0x1b7)](),this[_0x2bc960(0x1ff)](_0x827518,_0x2169ae);}[_0x410709(0x1c7)](){const _0x52eba8=_0x410709;this[_0x52eba8(0x200)]=this[_0x52eba8(0x1db)](),this[_0x52eba8(0x1c6)]=this[_0x52eba8(0x1da)](),this[_0x52eba8(0x200)][_0x52eba8(0x1e6)](),this[_0x52eba8(0x1c5)][_0x52eba8(0x209)](this[_0x52eba8(0x200)][_0x52eba8(0x1e9)]),this[_0x52eba8(0x200)]['on'](_0x52eba8(0x18f),()=>{const _0x337330=_0x52eba8;this[_0x337330(0x1fa)]();}),_0x760a16({'emitter':this[_0x52eba8(0x1c6)],'contextElements':[this[_0x52eba8(0x1c6)][_0x52eba8(0x1e9)],this[_0x52eba8(0x200)][_0x52eba8(0x1e9)]],'callback':()=>this[_0x52eba8(0x1fe)](),'activator':()=>this[_0x52eba8(0x200)][_0x52eba8(0x185)]});}[_0x410709(0x1db)](){const _0x4519ef=_0x410709,_0x243c26=new _0x22f141(this[_0x4519ef(0x211)]);_0x243c26[_0x4519ef(0x1e2)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1009a6=[this[_0x4519ef(0x1f6)][_0x4519ef(0x18c)][_0x4519ef(0x18b)]];return this[_0x4519ef(0x1f6)][_0x4519ef(0x18c)][_0x4519ef(0x1c4)]&&_0x1009a6[_0x4519ef(0x1e8)](this[_0x4519ef(0x1f6)][_0x4519ef(0x18c)][_0x4519ef(0x1c4)]),_0x243c26[_0x4519ef(0x1eb)]({'attributes':{'class':_0x1009a6}}),_0x243c26;}[_0x410709(0x1da)](){const _0x140b36=_0x410709,_0xa6fce6=new _0x4b4411(this[_0x140b36(0x211)]);return _0xa6fce6[_0x140b36(0x1eb)]({'attributes':{'class':this[_0x140b36(0x1f6)][_0x140b36(0x18c)][_0x140b36(0x206)]}}),this[_0x140b36(0x1a6)][_0x140b36(0x1a5)](_0xa6fce6),_0xa6fce6;}[_0x410709(0x183)](){const _0x51a24a=_0x410709;if(this[_0x51a24a(0x1c6)]&&(this[_0x51a24a(0x1c6)][_0x51a24a(0x1f4)][_0x51a24a(0x1df)](),this[_0x51a24a(0x1bb)][_0x51a24a(0x1f7)]>0x0)){this[_0x51a24a(0x1bb)][_0x51a24a(0x1f9)](_0xd4527=>{const _0x7bdb75=_0x51a24a;_0xd4527[_0x7bdb75(0x1ce)]();});const _0x21ea14=new _0x3dd104(this[_0x51a24a(0x211)]);_0x21ea14[_0x51a24a(0x1bf)]({'tag':_0x51a24a(0x1d1),'attributes':{'class':this[_0x51a24a(0x1f6)][_0x51a24a(0x18c)][_0x51a24a(0x1e1)]},'children':this[_0x51a24a(0x1bb)]}),this[_0x51a24a(0x1c6)][_0x51a24a(0x1f4)][_0x51a24a(0x1a5)](_0x21ea14);}}[_0x410709(0x1fa)](){const _0x1a9274=_0x410709;this[_0x1a9274(0x200)][_0x1a9274(0x185)]?this[_0x1a9274(0x1fe)]():this[_0x1a9274(0x208)]();}[_0x410709(0x1a3)](){const _0x527784=_0x410709,_0x4fbd6d=this[_0x527784(0x1bb)][_0x527784(0x1f7)]>0x0;this[_0x527784(0x200)]?.[_0x527784(0x1e9)]&&(this[_0x527784(0x200)][_0x527784(0x1e9)][_0x527784(0x19a)][_0x527784(0x210)]=_0x4fbd6d?'':_0x527784(0x1be));}[_0x410709(0x1d9)](){const _0x23128e=_0x410709;this[_0x23128e(0x200)]?.[_0x23128e(0x185)]&&this[_0x23128e(0x1c6)]?.[_0x23128e(0x1bc)]&&this[_0x23128e(0x200)][_0x23128e(0x1e9)]&&this[_0x23128e(0x1c6)][_0x23128e(0x20f)]({'target':this[_0x23128e(0x200)][_0x23128e(0x1e9)],'limiter':document[_0x23128e(0x1a1)](_0x23128e(0x190))});}[_0x410709(0x1f1)](_0x2b2d6a){const _0x5810f1=_0x410709,_0x437ba0=this[_0x5810f1(0x1c5)]?.[_0x5810f1(0x1ea)][_0x5810f1(0x196)]()||_0x5810f1(0x1d1),_0x1f9c34=this[_0x5810f1(0x1c5)]?.[_0x5810f1(0x193)];if(_0x1f9c34){const _0x47f52d=_0x1f9c34[0x0]||'',_0x10ff10=_0x2b2d6a[_0x5810f1(0x1a1)]('.'+_0x47f52d),_0x446526=_0x2b2d6a[_0x5810f1(0x1a1)](_0x437ba0);return _0x10ff10||_0x446526||_0x2b2d6a;}return _0x2b2d6a[_0x5810f1(0x1a1)](_0x437ba0)||_0x2b2d6a;}[_0x410709(0x1d2)](){const _0xf3d922=_0x410709,_0x2abb3a=this[_0xf3d922(0x201)]?.[_0xf3d922(0x1e9)]||this[_0xf3d922(0x1c5)];if(!_0x2abb3a)return hn;const _0x5ee15d=window[_0xf3d922(0x19c)](_0x2abb3a)[_0xf3d922(0x202)];if(_0xf3d922(0x214)===_0x5ee15d||_0xf3d922(0x194)===_0x5ee15d||!_0x5ee15d){const _0x2f2925=_0x2abb3a[_0xf3d922(0x20e)];if(_0x2f2925){const _0xc944be=window[_0xf3d922(0x19c)](_0x2f2925);return _0xf3d922(0x214)!==_0xc944be[_0xf3d922(0x202)]?_0xc944be[_0xf3d922(0x202)]:hn;}return hn;}return _0x5ee15d;}[_0x410709(0x19f)](_0xe9d7d3,_0x2f36b2){const _0x10de0d=_0x410709;this[_0x10de0d(0x1f6)][_0x10de0d(0x18c)][_0x10de0d(0x1a8)]&&_0xe9d7d3[_0x10de0d(0x193)][_0x10de0d(0x1a5)](this[_0x10de0d(0x1f6)][_0x10de0d(0x18c)][_0x10de0d(0x1a8)]),_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x202)]=_0x2f36b2,_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x1b4)]=_0x10de0d(0x217),_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x1b8)]=_0x10de0d(0x1d0),_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x1bd)]=_0x10de0d(0x1d0),_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x1b9)]='0',_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x1f8)]=_0x10de0d(0x1be),_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x1d8)]='-1',_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x203)]=_0x10de0d(0x20b),_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x210)]=_0x10de0d(0x1dd),_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x1c3)]=_0x10de0d(0x1ec);}[_0x410709(0x212)](_0x3cd3b4){const _0x5eafed=_0x410709;_0x3cd3b4[_0x5eafed(0x1f9)](({element:_0x46de12,originalDisplay:_0x17c060,originalVisibility:_0xa979e0})=>{const _0x4d198c=_0x5eafed;_0x46de12[_0x4d198c(0x19a)][_0x4d198c(0x210)]=_0x17c060,_0x46de12[_0x4d198c(0x19a)][_0x4d198c(0x203)]=_0xa979e0;});}[_0x410709(0x1c0)](_0x3ea299){const _0x57988f=_0x410709,_0x3d5626=[];let _0x39b1ba=_0x3ea299;for(;_0x39b1ba&&_0x39b1ba!==document[_0x57988f(0x18e)];){const _0x32bced=window[_0x57988f(0x19c)](_0x39b1ba);_0x57988f(0x1be)!==_0x32bced[_0x57988f(0x210)]&&_0x57988f(0x1fc)!==_0x32bced[_0x57988f(0x203)]||(_0x3d5626[_0x57988f(0x1e8)]({'element':_0x39b1ba,'originalDisplay':_0x39b1ba[_0x57988f(0x19a)][_0x57988f(0x210)],'originalVisibility':_0x39b1ba[_0x57988f(0x19a)][_0x57988f(0x203)]}),_0x39b1ba[_0x57988f(0x19a)][_0x57988f(0x210)]=_0x57988f(0x1ca),_0x39b1ba[_0x57988f(0x19a)][_0x57988f(0x203)]=_0x57988f(0x216)),_0x39b1ba=_0x39b1ba[_0x57988f(0x20e)];}return _0x3d5626;}[_0x410709(0x19b)](){const _0x1450fd=_0x410709;let _0x408902,_0x2d479e;return this[_0x1450fd(0x201)]?.[_0x1450fd(0x1e9)]?(_0x408902=this[_0x1450fd(0x201)][_0x1450fd(0x1e9)][_0x1450fd(0x1f3)](!0x0),_0x2d479e=this[_0x1450fd(0x1f1)](_0x408902)):(_0x408902=document[_0x1450fd(0x1de)](_0x1450fd(0x1d1)),_0x2d479e=_0x408902),{'calculationContainer':_0x408902,'targetContainer':_0x2d479e};}[_0x410709(0x1d7)](){const _0x283556=_0x410709,{calculationContainer:_0x400ff3,targetContainer:_0x37cfcb}=this[_0x283556(0x19b)](),_0x5efc4=this[_0x283556(0x1d2)]();this[_0x283556(0x19f)](_0x400ff3,_0x5efc4);const _0xba9161=this[_0x283556(0x201)]?.[_0x283556(0x1e9)]||this[_0x283556(0x1c5)],_0x5b44c1=_0xba9161?.[_0x283556(0x20e)];_0x5b44c1?_0x5b44c1[_0x283556(0x209)](_0x400ff3):document[_0x283556(0x18e)][_0x283556(0x209)](_0x400ff3),_0x400ff3[_0x283556(0x205)]=_0x37cfcb;const _0x3d4f7c=this[_0x283556(0x1c0)](_0x5b44c1||null);return _0x400ff3[_0x283556(0x195)],_0x400ff3[_0x283556(0x1ab)]=_0x3d4f7c,_0x400ff3;}[_0x410709(0x189)](_0x5b1a77,_0x3c67f5){const _0x7dd004=_0x410709,_0x374f48=_0x5b1a77[_0x7dd004(0x205)]||_0x5b1a77,_0x590387=[],{rowCount:_0x1ce375}=this[_0x7dd004(0x1cf)](_0x374f48,_0x3c67f5);if(_0x1ce375<=this[_0x7dd004(0x1f6)][_0x7dd004(0x207)])return _0x590387;const _0x1742d3=_0x3c67f5[_0x7dd004(0x1b5)]();for(;_0x1742d3[_0x7dd004(0x1f7)]>0x0;){if(this[_0x7dd004(0x188)](_0x5b1a77,_0x374f48,_0x1742d3)){const _0x3015db=_0x3c67f5[_0x7dd004(0x213)](_0x574561=>!_0x1742d3[_0x7dd004(0x20a)](_0x574561));_0x590387[_0x7dd004(0x1e8)](..._0x3015db);break;}if(!_0x1742d3[_0x7dd004(0x1c1)]())break;}return _0x590387;}[_0x410709(0x1cf)](_0x15a5e8,_0x5bfbd0){const _0x4560ba=_0x410709;_0x15a5e8[_0x4560ba(0x1e3)]='',_0x5bfbd0[_0x4560ba(0x1f9)](_0x3ffb9f=>{const _0x1f8786=_0x4560ba;if(_0x3ffb9f[_0x1f8786(0x1e9)]){const _0x3e3f9d=_0x3ffb9f[_0x1f8786(0x1e9)][_0x1f8786(0x1f3)](!0x0);_0x15a5e8[_0x1f8786(0x209)](_0x3e3f9d);}}),_0x15a5e8[_0x4560ba(0x195)];const _0x5569a0=_0x15a5e8[_0x4560ba(0x1b0)],_0x3e7039=[];return Array[_0x4560ba(0x1b1)](_0x5569a0)[_0x4560ba(0x1f9)](_0x310ef4=>{const _0x1a8425=_0x4560ba,_0x849187=_0x310ef4[_0x1a8425(0x197)]()[_0x1a8425(0x1b8)];_0x3e7039[_0x1a8425(0x1a0)](_0x4cf25d=>Math[_0x1a8425(0x1b6)](_0x4cf25d-_0x849187)<this[_0x1a8425(0x1f6)][_0x1a8425(0x1f0)])||_0x3e7039[_0x1a8425(0x1e8)](_0x849187);}),{'rowCount':_0x3e7039[_0x4560ba(0x1f7)]};}[_0x410709(0x1ae)](){const _0x43d942=_0x410709,_0x45b5e4=document[_0x43d942(0x1de)](_0x43d942(0x1c2));return _0x45b5e4[_0x43d942(0x186)]=this[_0x43d942(0x1f6)][_0x43d942(0x18c)][_0x43d942(0x18b)],this[_0x43d942(0x1f6)][_0x43d942(0x18c)][_0x43d942(0x1c4)]&&_0x45b5e4[_0x43d942(0x193)][_0x43d942(0x1a5)](this[_0x43d942(0x1f6)][_0x43d942(0x18c)][_0x43d942(0x1c4)]),_0x45b5e4[_0x43d942(0x1d4)]=_0x43d942(0x1e0),_0x45b5e4;}[_0x410709(0x188)](_0x15a00b,_0x259db2,_0x1320d7){const _0x2def2=_0x410709;this[_0x2def2(0x1cf)](_0x259db2,_0x1320d7);const _0x595a0b=this[_0x2def2(0x1ae)]();_0x15a00b[_0x2def2(0x209)](_0x595a0b),_0x15a00b[_0x2def2(0x195)];const _0x505f7a=[..._0x259db2[_0x2def2(0x1b0)],_0x595a0b],_0x3547c7=[];_0x505f7a[_0x2def2(0x1f9)](_0x371705=>{const _0x48c8c9=_0x2def2,_0x6cf854=_0x371705[_0x48c8c9(0x197)]()[_0x48c8c9(0x1b8)];_0x3547c7[_0x48c8c9(0x1a0)](_0x56cdcf=>Math[_0x48c8c9(0x1b6)](_0x56cdcf-_0x6cf854)<this[_0x48c8c9(0x1f6)][_0x48c8c9(0x1f0)])||_0x3547c7[_0x48c8c9(0x1e8)](_0x6cf854);});const _0x15d339=_0x3547c7[_0x2def2(0x1f7)];return _0x595a0b[_0x2def2(0x1b7)](),_0x15d339<=this[_0x2def2(0x1f6)][_0x2def2(0x207)];}[_0x410709(0x182)](_0x57fc2a,_0x3cffe1){const _0x3e70bf=_0x410709;this[_0x3e70bf(0x20d)][_0x3e70bf(0x1df)](),this[_0x3e70bf(0x1bb)][_0x3e70bf(0x1df)](),_0x57fc2a[_0x3e70bf(0x1f9)](_0x1fe918=>{const _0x20138e=_0x3e70bf;_0x3cffe1[_0x20138e(0x20a)](_0x1fe918)?this[_0x20138e(0x1bb)][_0x20138e(0x1a5)](_0x1fe918):this[_0x20138e(0x20d)][_0x20138e(0x1a5)](_0x1fe918);});}[_0x410709(0x1ef)](_0x506bf0){const _0x46ca61=_0x410709;if(_0x506bf0>0x0&&!this[_0x46ca61(0x200)]&&this[_0x46ca61(0x1c7)](),_0x506bf0>0x0&&this[_0x46ca61(0x200)]){const _0x41252c=''+this[_0x46ca61(0x1f6)][_0x46ca61(0x1e7)]+(_0x506bf0<0x63?_0x506bf0:'99');this[_0x46ca61(0x200)][_0x46ca61(0x1e4)]=_0x41252c;}this[_0x46ca61(0x183)](),this[_0x46ca61(0x1a3)](),this[_0x46ca61(0x1d9)]();}[_0x410709(0x1ff)](_0x31ba5c,_0x32fd08){const _0x50cec0=_0x410709;this[_0x50cec0(0x182)](_0x31ba5c,_0x32fd08),this[_0x50cec0(0x1ef)](_0x32fd08[_0x50cec0(0x1f7)]);}[_0x410709(0x18a)](){const _0xa31369=_0x410709;this[_0xa31369(0x1c5)]&&_0xa31369(0x191)!=typeof IntersectionObserver&&(this[_0xa31369(0x20c)]=new IntersectionObserver(_0x2df0a1=>{const _0xd8e93c=_0xa31369;_0x2df0a1[0x0][_0xd8e93c(0x1dc)]&&this[_0xd8e93c(0x1fb)]&&requestAnimationFrame(()=>{const _0x2cfb8a=_0xd8e93c;this[_0x2cfb8a(0x1d3)]();});},{'threshold':0.01,'rootMargin':_0xa31369(0x1ad)}),this[_0xa31369(0x20c)][_0xa31369(0x1ba)](this[_0xa31369(0x1c5)]));}[_0x410709(0x184)](){const _0x37f177=_0x410709;if(!this[_0x37f177(0x1c5)])return!0x1;if(!this[_0x37f177(0x1c5)][_0x37f177(0x1e5)])return!0x1;const _0x576cbf=this[_0x37f177(0x1c5)][_0x37f177(0x197)]();if(0x0===_0x576cbf[_0x37f177(0x202)]||0x0===_0x576cbf[_0x37f177(0x1c9)])return!0x1;const _0x518615=window[_0x37f177(0x1b3)]||document[_0x37f177(0x1a7)][_0x37f177(0x1d5)],_0x6acaa7=window[_0x37f177(0x204)]||document[_0x37f177(0x1a7)][_0x37f177(0x1cc)],_0x42ff04=0xc8;return _0x576cbf[_0x37f177(0x1d6)]>=-0xc8&&_0x576cbf[_0x37f177(0x1b8)]<=_0x518615+_0x42ff04&&_0x576cbf[_0x37f177(0x1a4)]>=-0xc8&&_0x576cbf[_0x37f177(0x1bd)]<=_0x6acaa7+_0x42ff04;}}
23
+ function _0x2e25(_0x34d9ab,_0x475e7b){const _0xf7ac57=_0xf7ac();return _0x2e25=function(_0x2e25e8,_0x51b239){_0x2e25e8=_0x2e25e8-0x99;let _0x1a51bd=_0xf7ac57[_0x2e25e8];return _0x1a51bd;},_0x2e25(_0x34d9ab,_0x475e7b);}const _0x426c39=_0x2e25;function _0xf7ac(){const _0x151923=['50px','auto','forEach','push','ck-calculation-container','right','set','pointerEvents','className','_containerElement','_createShowMoreButton','innerHTML','showMoreButton','_applyCalculationStyles','extendTemplate','element','cssClasses','parentElement','1467618ormsWD','_restoreAncestorVisibility','_config','maxVisibleRows','268360QLqUUc','offsetWidth','destroy','height','840664SESAFa','display','_testButtonFit','position','_makeAncestorsVisible','_distributeChips','_handleShowMoreButtonClick','clear','_createContainerElements','_pendingCalculation','isOn','from','hideBalloonPanel','_createShowMoreButtonView','textContent','absolute','_findTargetContainer','_setupVisibilityObserver','observe','showBalloonPanel','documentElement','_isContainerVisible','_visibleChips','isIntersecting','showMoreBalloon','overflowChips','rowDetectionTolerance','block\x20!important','label','block','7qhucND','appendChild','_showMoreButtonView','cloneNode','_calculateContainerWidth','add','opacity','div','show','border-box','undefined','style','controlsButton','setTemplate','zIndex','children','_bodyCollection','showMoreButtonView','none','remove','visibility','.ck-ai-chat','_createMockButton','_createCalculationContainer','visible\x20!important','_showMoreBalloonPanelView','overflowContainer','_overflowChips','_ancestorsToRestore','filter','execute','_updateBalloonContent','_targetContainer','clientWidth','hidden','pin','left','_renderChipsAndCountRows','createElement','width','_checkAndHandleOverflow','disableAnimationOnEnter','-9999px','disconnect','getComputedStyle','tagName','abs','boxSizing','isConnected','_repinBalloonPanel','visible','1597343gUekdx','2349795FYRlEc','render','_updateOverflowUI','top','117DHblFt','_applyOverflowResults','hide','includes','bottom','78ReVvKm','+\x201','reorganizeChips','content','button','showMoreLabelPrefix','_updateShowMoreButtonVisibility','innerHeight','35WgEFbs','_locale','_calculateOverflowInContainer','innerWidth','clientHeight','_parentView','slice','setContainerElement','toLowerCase','pop','_createShowMoreBalloonPanelView','3281vhKduS','isVisible','getBoundingClientRect','4996664MqzzYi','calculationContainer','classList','some','length','querySelector','_intersectionObserver','body','0px','300px'];_0xf7ac=function(){return _0x151923;};return _0xf7ac();}(function(_0x4cc6bf,_0x499c18){const _0x5a5b56=_0x2e25,_0x187d48=_0x4cc6bf();while(!![]){try{const _0x1a4e6a=parseInt(_0x5a5b56(0x114))/0x1*(parseInt(_0x5a5b56(0x101))/0x2)+-parseInt(_0x5a5b56(0xf8))/0x3+parseInt(_0x5a5b56(0xa6))/0x4*(parseInt(_0x5a5b56(0x109))/0x5)+-parseInt(_0x5a5b56(0x9e))/0x6*(-parseInt(_0x5a5b56(0xc4))/0x7)+-parseInt(_0x5a5b56(0x117))/0x8+parseInt(_0x5a5b56(0xfc))/0x9*(parseInt(_0x5a5b56(0xa2))/0xa)+parseInt(_0x5a5b56(0xf7))/0xb;if(_0x1a4e6a===_0x499c18)break;else _0x187d48['push'](_0x187d48['shift']());}catch(_0x460059){_0x187d48['push'](_0x187d48['shift']());}}}(_0xf7ac,0xe30a5));import{View as _0x32c961,BalloonPanelView as _0x14d9ae,ButtonView as _0x29dd8f,clickOutsideHandler as _0x227086}from'ckeditor5/src/ui.js';import{Collection as _0x10f5ad}from'ckeditor5/src/utils.js';const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},_n=_0x426c39(0x120);export class AIChatChipsOverflowManager{[_0x426c39(0x10a)];[_0x426c39(0xa0)];[_0x426c39(0xbc)];[_0x426c39(0xdf)];[_0x426c39(0xc6)]=null;[_0x426c39(0xdd)]=null;[_0x426c39(0x12a)]=null;[_0x426c39(0xd4)];[_0x426c39(0x10e)]=null;[_0x426c39(0x11d)]=null;[_0x426c39(0xaf)]=!0x1;constructor(_0x13aecb,_0x65453c,_0x305b2a,_0x2d0c99,_0x2c9c55){const _0x3c80ae=_0x426c39;this[_0x3c80ae(0x10a)]=_0x13aecb,this[_0x3c80ae(0xbc)]=_0x65453c,this[_0x3c80ae(0xa0)]={...wn,..._0x305b2a,'cssClasses':{'controlsButton':'','calculationContainer':_0x3c80ae(0x125),..._0x305b2a[_0x3c80ae(0x9c)]}},this[_0x3c80ae(0xdf)]=new _0x10f5ad(),this[_0x3c80ae(0xd4)]=_0x2d0c99,this[_0x3c80ae(0x10e)]=_0x2c9c55||null;}[_0x426c39(0x110)](_0x4e001a){const _0x5a9af4=_0x426c39;this[_0x5a9af4(0x11d)]&&(this[_0x5a9af4(0x11d)][_0x5a9af4(0xef)](),this[_0x5a9af4(0x11d)]=null),this[_0x5a9af4(0x12a)]=_0x4e001a,this[_0x5a9af4(0xb7)]();}get[_0x426c39(0xd5)](){const _0x51de71=_0x426c39;return this[_0x51de71(0xc6)];}get[_0x426c39(0xbf)](){const _0x476105=_0x426c39;return this[_0x476105(0xdf)];}[_0x426c39(0x103)](){requestAnimationFrame(()=>{const _0x3e4ad3=_0x2e25;this[_0x3e4ad3(0xec)]();});}[_0x426c39(0xb9)](){const _0x243202=_0x426c39;this[_0x243202(0xc6)]&&this[_0x243202(0xdd)]&&(this[_0x243202(0xe3)](),this[_0x243202(0xc6)][_0x243202(0xb0)]=!0x0,this[_0x243202(0xdd)][_0x243202(0xcc)](),this[_0x243202(0xdd)][_0x243202(0xe7)]({'target':this[_0x243202(0xc6)][_0x243202(0x9b)],'limiter':document[_0x243202(0x11c)](_0x243202(0xd9))}));}[_0x426c39(0xb2)](){const _0x31039c=_0x426c39;this[_0x31039c(0xc6)]&&this[_0x31039c(0xdd)]&&(this[_0x31039c(0xc6)][_0x31039c(0xb0)]=!0x1,this[_0x31039c(0xdd)][_0x31039c(0xfe)]());}[_0x426c39(0xad)](){const _0x45101f=_0x426c39;this[_0x45101f(0xdf)][_0x45101f(0xad)](),this[_0x45101f(0xb2)](),this[_0x45101f(0x107)](),this[_0x45101f(0xc6)]&&(this[_0x45101f(0xc6)][_0x45101f(0xc2)]=''),this[_0x45101f(0xdd)]&&this[_0x45101f(0xdd)][_0x45101f(0x104)][_0x45101f(0xad)]();}[_0x426c39(0xa4)](){const _0x654cde=_0x426c39;this[_0x654cde(0x11d)]&&(this[_0x654cde(0x11d)][_0x654cde(0xef)](),this[_0x654cde(0x11d)]=null),this[_0x654cde(0xc6)]&&(this[_0x654cde(0xc6)][_0x654cde(0xa4)](),this[_0x654cde(0xc6)]=null),this[_0x654cde(0xdd)]&&(this[_0x654cde(0xdd)][_0x654cde(0xa4)](),this[_0x654cde(0xdd)]=null);}[_0x426c39(0xec)](){const _0x260e39=_0x426c39;if(!this[_0x260e39(0x12a)])return;if(!this[_0x260e39(0xbb)]())return void(this[_0x260e39(0xaf)]=!0x0);this[_0x260e39(0xaf)]=!0x1;const _0x45c1f4=[...this[_0x260e39(0xbc)],...this[_0x260e39(0xdf)]],_0x5bec2b=this[_0x260e39(0xdb)](),_0x582bcf=this[_0x260e39(0x10b)](_0x5bec2b,_0x45c1f4),_0x1bcf78=_0x5bec2b[_0x260e39(0xe0)];_0x1bcf78&&this[_0x260e39(0x9f)](_0x1bcf78),_0x5bec2b[_0x260e39(0xd7)](),this[_0x260e39(0xfd)](_0x45c1f4,_0x582bcf);}[_0x426c39(0x12b)](){const _0x5046f9=_0x426c39;this[_0x5046f9(0xc6)]=this[_0x5046f9(0xb3)](),this[_0x5046f9(0xdd)]=this[_0x5046f9(0x113)](),this[_0x5046f9(0xc6)][_0x5046f9(0xf9)](),this[_0x5046f9(0x12a)][_0x5046f9(0xc5)](this[_0x5046f9(0xc6)][_0x5046f9(0x9b)]),this[_0x5046f9(0xc6)]['on'](_0x5046f9(0xe2),()=>{const _0x1944cd=_0x5046f9;this[_0x1944cd(0xac)]();}),_0x227086({'emitter':this[_0x5046f9(0xdd)],'contextElements':[this[_0x5046f9(0xdd)][_0x5046f9(0x9b)],this[_0x5046f9(0xc6)][_0x5046f9(0x9b)]],'callback':()=>this[_0x5046f9(0xb2)](),'activator':()=>this[_0x5046f9(0xc6)][_0x5046f9(0xb0)]});}[_0x426c39(0xb3)](){const _0x5e0b75=_0x426c39,_0x253f76=new _0x29dd8f(this[_0x5e0b75(0x10a)]);_0x253f76[_0x5e0b75(0x127)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x2b26f9=[this[_0x5e0b75(0xa0)][_0x5e0b75(0x9c)][_0x5e0b75(0x12d)]];return this[_0x5e0b75(0xa0)][_0x5e0b75(0x9c)][_0x5e0b75(0xd0)]&&_0x2b26f9[_0x5e0b75(0x124)](this[_0x5e0b75(0xa0)][_0x5e0b75(0x9c)][_0x5e0b75(0xd0)]),_0x253f76[_0x5e0b75(0x9a)]({'attributes':{'class':_0x2b26f9}}),_0x253f76;}[_0x426c39(0x113)](){const _0x354e07=_0x426c39,_0x30c152=new _0x14d9ae(this[_0x354e07(0x10a)]);return _0x30c152[_0x354e07(0x9a)]({'attributes':{'class':this[_0x354e07(0xa0)][_0x354e07(0x9c)][_0x354e07(0xbe)]}}),this[_0x354e07(0xd4)][_0x354e07(0xc9)](_0x30c152),_0x30c152;}[_0x426c39(0xe3)](){const _0x5eca6a=_0x426c39;if(this[_0x5eca6a(0xdd)]&&(this[_0x5eca6a(0xdd)][_0x5eca6a(0x104)][_0x5eca6a(0xad)](),this[_0x5eca6a(0xdf)][_0x5eca6a(0x11b)]>0x0)){this[_0x5eca6a(0xdf)][_0x5eca6a(0x123)](_0x48df6a=>{const _0x505d9c=_0x5eca6a;_0x48df6a[_0x505d9c(0xed)]();});const _0x49ff8d=new _0x32c961(this[_0x5eca6a(0x10a)]);_0x49ff8d[_0x5eca6a(0xd1)]({'tag':_0x5eca6a(0xcb),'attributes':{'class':this[_0x5eca6a(0xa0)][_0x5eca6a(0x9c)][_0x5eca6a(0xde)]},'children':this[_0x5eca6a(0xdf)]}),this[_0x5eca6a(0xdd)][_0x5eca6a(0x104)][_0x5eca6a(0xc9)](_0x49ff8d);}}[_0x426c39(0xac)](){const _0x593347=_0x426c39;this[_0x593347(0xc6)][_0x593347(0xb0)]?this[_0x593347(0xb2)]():this[_0x593347(0xb9)]();}[_0x426c39(0x107)](){const _0x374ff6=_0x426c39,_0x5e3190=this[_0x374ff6(0xdf)][_0x374ff6(0x11b)]>0x0;this[_0x374ff6(0xc6)]?.[_0x374ff6(0x9b)]&&(this[_0x374ff6(0xc6)][_0x374ff6(0x9b)][_0x374ff6(0xcf)][_0x374ff6(0xa7)]=_0x5e3190?'':_0x374ff6(0xd6));}[_0x426c39(0xf5)](){const _0x26b89b=_0x426c39;this[_0x26b89b(0xc6)]?.[_0x26b89b(0xb0)]&&this[_0x26b89b(0xdd)]?.[_0x26b89b(0x115)]&&this[_0x26b89b(0xc6)][_0x26b89b(0x9b)]&&this[_0x26b89b(0xdd)][_0x26b89b(0xe7)]({'target':this[_0x26b89b(0xc6)][_0x26b89b(0x9b)],'limiter':document[_0x26b89b(0x11c)](_0x26b89b(0xd9))});}[_0x426c39(0xb6)](_0x2a216b){const _0x43c3ca=_0x426c39,_0x5ab828=this[_0x43c3ca(0x12a)]?.[_0x43c3ca(0xf1)][_0x43c3ca(0x111)]()||_0x43c3ca(0xcb),_0x461bf9=this[_0x43c3ca(0x12a)]?.[_0x43c3ca(0x119)];if(_0x461bf9){const _0x46b223=_0x461bf9[0x0]||'',_0x2d93ad=_0x2a216b[_0x43c3ca(0x11c)]('.'+_0x46b223),_0x38e781=_0x2a216b[_0x43c3ca(0x11c)](_0x5ab828);return _0x2d93ad||_0x38e781||_0x2a216b;}return _0x2a216b[_0x43c3ca(0x11c)](_0x5ab828)||_0x2a216b;}[_0x426c39(0xc8)](){const _0x67d5de=_0x426c39,_0xb067c=this[_0x67d5de(0x10e)]?.[_0x67d5de(0x9b)]||this[_0x67d5de(0x12a)];if(!_0xb067c)return _n;const _0x395243=window[_0x67d5de(0xf0)](_0xb067c)[_0x67d5de(0xeb)];if(_0x67d5de(0x122)===_0x395243||_0x67d5de(0x11f)===_0x395243||!_0x395243){const _0x36a695=_0xb067c[_0x67d5de(0x9d)];if(_0x36a695){const _0x52f7b6=window[_0x67d5de(0xf0)](_0x36a695);return _0x67d5de(0x122)!==_0x52f7b6[_0x67d5de(0xeb)]?_0x52f7b6[_0x67d5de(0xeb)]:_n;}return _n;}return _0x395243;}[_0x426c39(0x99)](_0x5dc900,_0x521204){const _0x1c80e6=_0x426c39;this[_0x1c80e6(0xa0)][_0x1c80e6(0x9c)][_0x1c80e6(0x118)]&&_0x5dc900[_0x1c80e6(0x119)][_0x1c80e6(0xc9)](this[_0x1c80e6(0xa0)][_0x1c80e6(0x9c)][_0x1c80e6(0x118)]),_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0xeb)]=_0x521204,_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0xa9)]=_0x1c80e6(0xb5),_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0xfb)]=_0x1c80e6(0xee),_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0xe8)]=_0x1c80e6(0xee),_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0xca)]='0',_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0x128)]=_0x1c80e6(0xd6),_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0xd2)]='-1',_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0xd8)]=_0x1c80e6(0xdc),_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0xa7)]=_0x1c80e6(0xc1),_0x5dc900[_0x1c80e6(0xcf)][_0x1c80e6(0xf3)]=_0x1c80e6(0xcd);}[_0x426c39(0x9f)](_0x93bc1e){const _0x5da20e=_0x426c39;_0x93bc1e[_0x5da20e(0x123)](({element:_0x3a7ae1,originalDisplay:_0x47956e,originalVisibility:_0x13a03b})=>{const _0x319976=_0x5da20e;_0x3a7ae1[_0x319976(0xcf)][_0x319976(0xa7)]=_0x47956e,_0x3a7ae1[_0x319976(0xcf)][_0x319976(0xd8)]=_0x13a03b;});}[_0x426c39(0xaa)](_0x552208){const _0x234380=_0x426c39,_0xa81234=[];let _0x453f38=_0x552208;for(;_0x453f38&&_0x453f38!==document[_0x234380(0x11e)];){const _0xf77b4d=window[_0x234380(0xf0)](_0x453f38);_0x234380(0xd6)!==_0xf77b4d[_0x234380(0xa7)]&&_0x234380(0xe6)!==_0xf77b4d[_0x234380(0xd8)]||(_0xa81234[_0x234380(0x124)]({'element':_0x453f38,'originalDisplay':_0x453f38[_0x234380(0xcf)][_0x234380(0xa7)],'originalVisibility':_0x453f38[_0x234380(0xcf)][_0x234380(0xd8)]}),_0x453f38[_0x234380(0xcf)][_0x234380(0xa7)]=_0x234380(0xc3),_0x453f38[_0x234380(0xcf)][_0x234380(0xd8)]=_0x234380(0xf6)),_0x453f38=_0x453f38[_0x234380(0x9d)];}return _0xa81234;}[_0x426c39(0xae)](){const _0x5c77e8=_0x426c39;let _0x411946,_0x808be6;return this[_0x5c77e8(0x10e)]?.[_0x5c77e8(0x9b)]?(_0x411946=this[_0x5c77e8(0x10e)][_0x5c77e8(0x9b)][_0x5c77e8(0xc7)](!0x0),_0x808be6=this[_0x5c77e8(0xb6)](_0x411946)):(_0x411946=document[_0x5c77e8(0xea)](_0x5c77e8(0xcb)),_0x808be6=_0x411946),{'calculationContainer':_0x411946,'targetContainer':_0x808be6};}[_0x426c39(0xdb)](){const _0x27f432=_0x426c39,{calculationContainer:_0x3a213d,targetContainer:_0xa73cd1}=this[_0x27f432(0xae)](),_0x40c93a=this[_0x27f432(0xc8)]();this[_0x27f432(0x99)](_0x3a213d,_0x40c93a);const _0x498dec=this[_0x27f432(0x10e)]?.[_0x27f432(0x9b)]||this[_0x27f432(0x12a)],_0x41f55f=_0x498dec?.[_0x27f432(0x9d)];_0x41f55f?_0x41f55f[_0x27f432(0xc5)](_0x3a213d):document[_0x27f432(0x11e)][_0x27f432(0xc5)](_0x3a213d),_0x3a213d[_0x27f432(0xe4)]=_0xa73cd1;const _0x34ad64=this[_0x27f432(0xaa)](_0x41f55f||null);return _0x3a213d[_0x27f432(0xa3)],_0x3a213d[_0x27f432(0xe0)]=_0x34ad64,_0x3a213d;}[_0x426c39(0x10b)](_0x48657d,_0x44f053){const _0x409400=_0x426c39,_0x3b53ce=_0x48657d[_0x409400(0xe4)]||_0x48657d,_0x2eecbd=[],{rowCount:_0x58460a}=this[_0x409400(0xe9)](_0x3b53ce,_0x44f053);if(_0x58460a<=this[_0x409400(0xa0)][_0x409400(0xa1)])return _0x2eecbd;const _0x136b23=_0x44f053[_0x409400(0x10f)]();for(;_0x136b23[_0x409400(0x11b)]>0x0;){if(this[_0x409400(0xa8)](_0x48657d,_0x3b53ce,_0x136b23)){const _0x1bd181=_0x44f053[_0x409400(0xe1)](_0x4874d6=>!_0x136b23[_0x409400(0xff)](_0x4874d6));_0x2eecbd[_0x409400(0x124)](..._0x1bd181);break;}if(!_0x136b23[_0x409400(0x112)]())break;}return _0x2eecbd;}[_0x426c39(0xe9)](_0x448c94,_0x1ccdb7){const _0x31dfd3=_0x426c39;_0x448c94[_0x31dfd3(0x12c)]='',_0x1ccdb7[_0x31dfd3(0x123)](_0x6fab07=>{const _0x3d5ccb=_0x31dfd3;if(_0x6fab07[_0x3d5ccb(0x9b)]){const _0x526e53=_0x6fab07[_0x3d5ccb(0x9b)][_0x3d5ccb(0xc7)](!0x0);_0x448c94[_0x3d5ccb(0xc5)](_0x526e53);}}),_0x448c94[_0x31dfd3(0xa3)];const _0x2ff2c7=_0x448c94[_0x31dfd3(0xd3)],_0x274370=[];return Array[_0x31dfd3(0xb1)](_0x2ff2c7)[_0x31dfd3(0x123)](_0x2bf518=>{const _0x4e5337=_0x31dfd3,_0x57940c=_0x2bf518[_0x4e5337(0x116)]()[_0x4e5337(0xfb)];_0x274370[_0x4e5337(0x11a)](_0x139460=>Math[_0x4e5337(0xf2)](_0x139460-_0x57940c)<this[_0x4e5337(0xa0)][_0x4e5337(0xc0)])||_0x274370[_0x4e5337(0x124)](_0x57940c);}),{'rowCount':_0x274370[_0x31dfd3(0x11b)]};}[_0x426c39(0xda)](){const _0x46493f=_0x426c39,_0x3da52f=document[_0x46493f(0xea)](_0x46493f(0x105));return _0x3da52f[_0x46493f(0x129)]=this[_0x46493f(0xa0)][_0x46493f(0x9c)][_0x46493f(0x12d)],this[_0x46493f(0xa0)][_0x46493f(0x9c)][_0x46493f(0xd0)]&&_0x3da52f[_0x46493f(0x119)][_0x46493f(0xc9)](this[_0x46493f(0xa0)][_0x46493f(0x9c)][_0x46493f(0xd0)]),_0x3da52f[_0x46493f(0xb4)]=_0x46493f(0x102),_0x3da52f;}[_0x426c39(0xa8)](_0x2bca41,_0x571edd,_0x35e368){const _0x4e0954=_0x426c39;this[_0x4e0954(0xe9)](_0x571edd,_0x35e368);const _0x4eddeb=this[_0x4e0954(0xda)]();_0x2bca41[_0x4e0954(0xc5)](_0x4eddeb),_0x2bca41[_0x4e0954(0xa3)];const _0xce7b4a=[..._0x571edd[_0x4e0954(0xd3)],_0x4eddeb],_0x2cece9=[];_0xce7b4a[_0x4e0954(0x123)](_0x17d7b4=>{const _0x40ba96=_0x4e0954,_0x3ec0b5=_0x17d7b4[_0x40ba96(0x116)]()[_0x40ba96(0xfb)];_0x2cece9[_0x40ba96(0x11a)](_0x5314d6=>Math[_0x40ba96(0xf2)](_0x5314d6-_0x3ec0b5)<this[_0x40ba96(0xa0)][_0x40ba96(0xc0)])||_0x2cece9[_0x40ba96(0x124)](_0x3ec0b5);});const _0x2cf174=_0x2cece9[_0x4e0954(0x11b)];return _0x4eddeb[_0x4e0954(0xd7)](),_0x2cf174<=this[_0x4e0954(0xa0)][_0x4e0954(0xa1)];}[_0x426c39(0xab)](_0x1bd42a,_0x5e8706){const _0x2ec9cc=_0x426c39;this[_0x2ec9cc(0xbc)][_0x2ec9cc(0xad)](),this[_0x2ec9cc(0xdf)][_0x2ec9cc(0xad)](),_0x1bd42a[_0x2ec9cc(0x123)](_0x5f3281=>{const _0x318ea9=_0x2ec9cc;_0x5e8706[_0x318ea9(0xff)](_0x5f3281)?this[_0x318ea9(0xdf)][_0x318ea9(0xc9)](_0x5f3281):this[_0x318ea9(0xbc)][_0x318ea9(0xc9)](_0x5f3281);});}[_0x426c39(0xfa)](_0x5020f9){const _0x2661fd=_0x426c39;if(_0x5020f9>0x0&&!this[_0x2661fd(0xc6)]&&this[_0x2661fd(0x12b)](),_0x5020f9>0x0&&this[_0x2661fd(0xc6)]){const _0x3a402e=''+this[_0x2661fd(0xa0)][_0x2661fd(0x106)]+(_0x5020f9<0x63?_0x5020f9:'99');this[_0x2661fd(0xc6)][_0x2661fd(0xc2)]=_0x3a402e;}this[_0x2661fd(0xe3)](),this[_0x2661fd(0x107)](),this[_0x2661fd(0xf5)]();}[_0x426c39(0xfd)](_0x3da74c,_0x1a0c19){const _0x1299a3=_0x426c39;this[_0x1299a3(0xab)](_0x3da74c,_0x1a0c19),this[_0x1299a3(0xfa)](_0x1a0c19[_0x1299a3(0x11b)]);}[_0x426c39(0xb7)](){const _0x248d3a=_0x426c39;this[_0x248d3a(0x12a)]&&_0x248d3a(0xce)!=typeof IntersectionObserver&&(this[_0x248d3a(0x11d)]=new IntersectionObserver(_0x31fdba=>{const _0x220c56=_0x248d3a;_0x31fdba[0x0][_0x220c56(0xbd)]&&this[_0x220c56(0xaf)]&&requestAnimationFrame(()=>{const _0x4b445c=_0x220c56;this[_0x4b445c(0xec)]();});},{'threshold':0.01,'rootMargin':_0x248d3a(0x121)}),this[_0x248d3a(0x11d)][_0x248d3a(0xb8)](this[_0x248d3a(0x12a)]));}[_0x426c39(0xbb)](){const _0x162930=_0x426c39;if(!this[_0x162930(0x12a)])return!0x1;if(!this[_0x162930(0x12a)][_0x162930(0xf4)])return!0x1;const _0x54a743=this[_0x162930(0x12a)][_0x162930(0x116)]();if(0x0===_0x54a743[_0x162930(0xeb)]||0x0===_0x54a743[_0x162930(0xa5)])return!0x1;const _0x468a57=window[_0x162930(0x108)]||document[_0x162930(0xba)][_0x162930(0x10d)],_0x2a7077=window[_0x162930(0x10c)]||document[_0x162930(0xba)][_0x162930(0xe5)],_0x58fd2b=0xc8;return _0x54a743[_0x162930(0x100)]>=-0xc8&&_0x54a743[_0x162930(0xfb)]<=_0x468a57+_0x58fd2b&&_0x54a743[_0x162930(0x126)]>=-0xc8&&_0x54a743[_0x162930(0xe8)]<=_0x2a7077+_0x58fd2b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x565e85=_0x44f0;(function(_0x121c70,_0x11f1d8){const _0x1952fd=_0x44f0,_0x1f316d=_0x121c70();while(!![]){try{const _0x5d3940=parseInt(_0x1952fd(0xf1))/0x1*(-parseInt(_0x1952fd(0xf5))/0x2)+-parseInt(_0x1952fd(0xdc))/0x3*(parseInt(_0x1952fd(0xfd))/0x4)+-parseInt(_0x1952fd(0xf4))/0x5*(parseInt(_0x1952fd(0xda))/0x6)+-parseInt(_0x1952fd(0xec))/0x7+-parseInt(_0x1952fd(0x114))/0x8+parseInt(_0x1952fd(0x106))/0x9+parseInt(_0x1952fd(0x10a))/0xa;if(_0x5d3940===_0x11f1d8)break;else _0x1f316d['push'](_0x1f316d['shift']());}catch(_0x21ab02){_0x1f316d['push'](_0x1f316d['shift']());}}}(_0xcc3e,0x2aa15));function _0x44f0(_0x1070ca,_0x6f9fcc){const _0xcc3e7c=_0xcc3e();return _0x44f0=function(_0x44f0c3,_0x80ed9b){_0x44f0c3=_0x44f0c3-0xd3;let _0x100099=_0xcc3e7c[_0x44f0c3];return _0x100099;},_0x44f0(_0x1070ca,_0x6f9fcc);}import{ButtonView as _0x660fdc,IconView as _0xe19375}from'ckeditor5/src/ui.js';import{IconClose as _0x1af7eb,IconDocument as _0x5e5357,IconFileUpload as _0x14df55,IconLink as _0xa1c169,IconSelection as _0x6def14}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x288f4a}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x41fcc7}from'../../../aicore/ui/aispinner.js';const mn={'file':_0x14df55,'document':_0x5e5357,'web-resource':_0xa1c169,'text':_0x14df55,'selection':_0x6def14},dn=_0x565e85(0xd8),un=_0x565e85(0xd9),_n=_0x565e85(0xeb),kn=_0x565e85(0xe7),xn=_0x565e85(0xf0),bn=_0x565e85(0xdd),wn='n';function _0xcc3e(){const _0x2d8f9c=['removeEventListener','remove','label','11347320obnxGh','_handleAnimationEndOnce','isVisible','webkitAnimationEnd','div','_initializeProperties','add','fire','removeContextItemChip','setTemplate','970328UKxkIM','type','ck-hidden','render','isLoading','_createTemplateChildren','ck-ai-chat-context-chip','ck-ai-chat-context-chip_wide','90XWTKdi','bindTemplate','38616doLxlm','ck-ai-chat-context-controls__chip-tooltip','_createRemoveButton','selection','uiId','set','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','disableAnimationOnEnter','_createLabelElement','ck-ai-chat-context-chip_new-chip','small','ck-ai-chat-context-chip__label','bind','tooltip','itemType','ck-ai-chat-context-chip_document','1827651jKXzoR','element','_createLoaderIcon','slice','ck-ai-chat-context-chip__type-icon','11OitVsx','_isAnimationOnEnterEnabled','_createIconView','77755FvWBBZ','54566ldPFjA','length','_createTemplateAttributes','content','addEventListener','extendTemplate','span','lastIndexOf','104mXNRvR','readonly','_setupRemoveButtonEvent','document','classList','locale','animationend','execute','_setupTemplate','2612835NCqjZI'];_0xcc3e=function(){return _0x2d8f9c;};return _0xcc3e();}export class AIChatContextItemButtonView extends _0x660fdc{constructor(_0x331035,_0x5b4ffc,_0x192231,_0x13b9a0,_0x5d0be2=!0x1){const _0x3b0a62=_0x565e85;super(_0x331035),this[_0x3b0a62(0xf2)]=_0x13b9a0,this[_0x3b0a62(0x10f)](_0x5b4ffc,_0x192231,_0x5d0be2),this[_0x3b0a62(0x105)]();}[_0x565e85(0xd5)](){const _0x11d9f4=_0x565e85;super[_0x11d9f4(0xd5)](),this[_0x11d9f4(0xf2)]&&this[_0x11d9f4(0xed)]&&(this[_0x11d9f4(0xed)][_0x11d9f4(0x101)][_0x11d9f4(0x110)](_0x11d9f4(0xe5)),this[_0x11d9f4(0x10b)](this[_0x11d9f4(0xed)],()=>{const _0x289e1a=_0x11d9f4;this[_0x289e1a(0xed)]&&this[_0x289e1a(0xed)][_0x289e1a(0x101)][_0x289e1a(0x108)](_0x289e1a(0xe5));}));}[_0x565e85(0xe3)](){const _0x398adf=_0x565e85;this[_0x398adf(0xf2)]=!0x1,this[_0x398adf(0xed)]&&this[_0x398adf(0xed)][_0x398adf(0x101)][_0x398adf(0x108)](_0x398adf(0xe5));}[_0x565e85(0x10f)](_0x49b576,_0x54c5c9,_0x514f64){const _0x18a540=_0x565e85;this[_0x18a540(0xe1)](_0x18a540(0x109),_0x49b576[_0x18a540(0x109)]),this[_0x18a540(0xe1)](_0x18a540(0xe9),!0x0),this[_0x18a540(0xe1)](_0x18a540(0xea),_0x49b576[_0x18a540(0xd3)]),this[_0x18a540(0xe1)]('id',_0x49b576[_0x18a540(0xe0)]),this[_0x18a540(0xe1)](_0x18a540(0xfe),_0x54c5c9),this[_0x18a540(0xe1)](_0x18a540(0xd6),_0x514f64);}[_0x565e85(0x105)](){const _0x3c35de=_0x565e85,_0x1784ef=this[_0x3c35de(0xf3)](),_0x5b55a9=this[_0x3c35de(0xde)](),_0x22de8b=this[_0x3c35de(0xdb)];this[_0x3c35de(0x113)]({'tag':_0x3c35de(0x10e),'attributes':this[_0x3c35de(0xf7)](_0x22de8b),'children':this[_0x3c35de(0xd7)](_0x1784ef,_0x5b55a9,_0x22de8b)});}[_0x565e85(0xf7)](_0x1c40b9){const _0x4cbfb2=_0x565e85;return{'class':[dn,_0x1c40b9['if'](_0x4cbfb2(0xea),_n,_0x1acd06=>_0x4cbfb2(0x100)==_0x1acd06),_0x1c40b9['if'](_0x4cbfb2(0xea),un,_0x1ce87d=>_0x4cbfb2(0xdf)==_0x1ce87d)],'data-cke-tooltip-text':_0x1c40b9['to'](_0x4cbfb2(0x109),Tn),'data-cke-tooltip-position':wn,'data-cke-tooltip-class':bn};}[_0x565e85(0xd7)](_0x3e29c5,_0x39a7ee,_0x44d858){const _0x1ee88d=_0x565e85,_0x3aed14=this[_0x1ee88d(0xe4)](_0x44d858),_0x49142b=this[_0x1ee88d(0xee)]();return this[_0x1ee88d(0xfe)]?[_0x3e29c5,_0x3aed14]:[_0x3e29c5,_0x49142b,_0x3aed14,_0x39a7ee];}[_0x565e85(0xe4)](_0x59df4e){const _0x32c974=_0x565e85;return{'tag':_0x32c974(0xfb),'attributes':{'class':kn},'children':[{'text':_0x59df4e['to'](_0x32c974(0x109))}]};}[_0x565e85(0xde)](){const _0x19800d=_0x565e85,_0x175098=new _0x660fdc(this[_0x19800d(0x102)]);return _0x175098[_0x19800d(0xe1)]({'label':_0x288f4a(this[_0x19800d(0x102)],_0x19800d(0xe2)),'icon':_0x1af7eb}),this[_0x19800d(0xff)](_0x175098),_0x175098;}[_0x565e85(0xff)](_0x413758){const _0x523f93=_0x565e85;_0x413758['on'](_0x523f93(0x104),()=>{const _0x3ee9f5=_0x523f93;this[_0x3ee9f5(0x111)](_0x3ee9f5(0x112),this['id']);});}[_0x565e85(0xf3)](){const _0x3dc754=_0x565e85,_0x11f0eb=this[_0x3dc754(0xdb)],_0x221140=new _0xe19375();return _0x221140[_0x3dc754(0xf8)]=mn[this[_0x3dc754(0xea)]],_0x221140[_0x3dc754(0xfa)]({'attributes':{'class':[xn,_0x11f0eb['if'](_0x3dc754(0xd6),_0x3dc754(0xd4),_0x3c7017=>_0x3c7017)]}}),_0x221140;}[_0x565e85(0x10b)](_0x464733,_0x1986e1){const _0x129d37=_0x565e85;if(!_0x464733)return;const _0x40726c=()=>{const _0x12753b=_0x44f0;_0x1986e1(),_0x464733[_0x12753b(0x107)](_0x12753b(0x103),_0x40726c),_0x464733[_0x12753b(0x107)](_0x12753b(0x10d),_0x40726c);};_0x464733[_0x129d37(0xf9)](_0x129d37(0x103),_0x40726c),_0x464733[_0x129d37(0xf9)](_0x129d37(0x10d),_0x40726c);}[_0x565e85(0xee)](){const _0x544532=_0x565e85,_0x407f70=new _0x41fcc7(_0x544532(0xe6));return _0x407f70[_0x544532(0xe8)](_0x544532(0x10c))['to'](this,_0x544532(0xd6),_0x5f58ab=>_0x5f58ab),_0x407f70;}}function Tn(_0x1541b7){const _0x43530f=_0x565e85;if(!_0x1541b7)return _0x1541b7;if(_0x1541b7[_0x43530f(0xf6)]<=0x78)return _0x1541b7;const _0x16513e=_0x1541b7[_0x43530f(0xef)](0x0,0x78),_0x24b196=_0x16513e[_0x43530f(0xfc)]('\x20');return(_0x24b196>0x0?_0x16513e[_0x43530f(0xef)](0x0,_0x24b196):_0x16513e)+'…';}
23
+ const _0x2016d9=_0x203a;(function(_0x36ac51,_0x29a85a){const _0x80222b=_0x203a,_0x241bbb=_0x36ac51();while(!![]){try{const _0x19e653=parseInt(_0x80222b(0xed))/0x1*(parseInt(_0x80222b(0xc7))/0x2)+parseInt(_0x80222b(0xc8))/0x3*(parseInt(_0x80222b(0xcc))/0x4)+-parseInt(_0x80222b(0xc0))/0x5*(-parseInt(_0x80222b(0xd1))/0x6)+parseInt(_0x80222b(0xba))/0x7+-parseInt(_0x80222b(0xeb))/0x8+-parseInt(_0x80222b(0xda))/0x9+-parseInt(_0x80222b(0xcd))/0xa;if(_0x19e653===_0x29a85a)break;else _0x241bbb['push'](_0x241bbb['shift']());}catch(_0x23af1c){_0x241bbb['push'](_0x241bbb['shift']());}}}(_0xce26,0x37d87));import{ButtonView as _0x352050,IconView as _0x1636ef}from'ckeditor5/src/ui.js';import{IconClose as _0xeb0d50,IconDocument as _0x2b37ec,IconFileUpload as _0x3817c2,IconLink as _0x214012,IconSelection as _0x46fa40}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x90a17e}from'../../../aicore/utils/common-translations.js';function _0xce26(){const _0x14d85b=['add','render','readonly','isLoading','small','ck-hidden','bind','span','tooltip','uiId','ck-ai-chat-context-chip','selection','isVisible','_setupTemplate','_createLoaderIcon','_createIconView','2782368qITYaw','ck-ai-chat-context-chip_wide','6359DZyumt','_createTemplateAttributes','ck-ai-chat-context-chip__type-icon','fire','animationend','extendTemplate','addEventListener','ck-ai-chat-context-chip_document','execute','set','_handleAnimationEndOnce','_createTemplateChildren','_createLabelElement','length','disableAnimationOnEnter','1240575eGCupA','_createRemoveButton','document','_setupRemoveButtonEvent','classList','remove','5KICkLH','label','_initializeProperties','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','setTemplate','webkitAnimationEnd','ck-ai-chat-context-chip__label','82ENXVsm','27648ixEwiH','content','element','bindTemplate','132HnmmRs','3156710Jkvaum','_isAnimationOnEnterEnabled','removeContextItemChip','ck-ai-chat-context-chip_new-chip','2578638NHcfWz','type','locale','slice','removeEventListener','itemType','lastIndexOf','div','ck-ai-chat-context-controls__chip-tooltip','2516715Tddmqj'];_0xce26=function(){return _0x14d85b;};return _0xce26();}import{AISpinnerView as _0x34c7cd}from'../../../aicore/ui/aispinner.js';const En={'file':_0x3817c2,'document':_0x2b37ec,'web-resource':_0x214012,'text':_0x3817c2,'selection':_0x46fa40},An=_0x2016d9(0xe5),Cn=_0x2016d9(0xec),In=_0x2016d9(0xb2),On=_0x2016d9(0xc6),vn=_0x2016d9(0xad),yn=_0x2016d9(0xd9),Ln='n';export class AIChatContextItemButtonView extends _0x352050{constructor(_0x53b02a,_0x375de7,_0x5ae8d7,_0x59af28,_0xe25a98=!0x1){const _0x5138c2=_0x2016d9;super(_0x53b02a),this[_0x5138c2(0xce)]=_0x59af28,this[_0x5138c2(0xc2)](_0x375de7,_0x5ae8d7,_0xe25a98),this[_0x5138c2(0xe8)]();}[_0x2016d9(0xdc)](){const _0x235749=_0x2016d9;super[_0x235749(0xdc)](),this[_0x235749(0xce)]&&this[_0x235749(0xca)]&&(this[_0x235749(0xca)][_0x235749(0xbe)][_0x235749(0xdb)](_0x235749(0xd0)),this[_0x235749(0xb5)](this[_0x235749(0xca)],()=>{const _0x3c788a=_0x235749;this[_0x3c788a(0xca)]&&this[_0x3c788a(0xca)][_0x3c788a(0xbe)][_0x3c788a(0xbf)](_0x3c788a(0xd0));}));}[_0x2016d9(0xb9)](){const _0x65efaf=_0x2016d9;this[_0x65efaf(0xce)]=!0x1,this[_0x65efaf(0xca)]&&this[_0x65efaf(0xca)][_0x65efaf(0xbe)][_0x65efaf(0xbf)](_0x65efaf(0xd0));}[_0x2016d9(0xc2)](_0x1cdfe0,_0x136c6b,_0x161300){const _0x37a44d=_0x2016d9;this[_0x37a44d(0xb4)](_0x37a44d(0xc1),_0x1cdfe0[_0x37a44d(0xc1)]),this[_0x37a44d(0xb4)](_0x37a44d(0xe3),!0x0),this[_0x37a44d(0xb4)](_0x37a44d(0xd6),_0x1cdfe0[_0x37a44d(0xd2)]),this[_0x37a44d(0xb4)]('id',_0x1cdfe0[_0x37a44d(0xe4)]),this[_0x37a44d(0xb4)](_0x37a44d(0xdd),_0x136c6b),this[_0x37a44d(0xb4)](_0x37a44d(0xde),_0x161300);}[_0x2016d9(0xe8)](){const _0x35867b=_0x2016d9,_0x415c28=this[_0x35867b(0xea)](),_0xc8cddd=this[_0x35867b(0xbb)](),_0x50fe90=this[_0x35867b(0xcb)];this[_0x35867b(0xc4)]({'tag':_0x35867b(0xd8),'attributes':this[_0x35867b(0xee)](_0x50fe90),'children':this[_0x35867b(0xb6)](_0x415c28,_0xc8cddd,_0x50fe90)});}[_0x2016d9(0xee)](_0xeec9fb){const _0x5c45c7=_0x2016d9;return{'class':[An,_0xeec9fb['if'](_0x5c45c7(0xd6),In,_0x3a5c2f=>_0x5c45c7(0xbc)==_0x3a5c2f),_0xeec9fb['if'](_0x5c45c7(0xd6),Cn,_0x1bffb9=>_0x5c45c7(0xe6)==_0x1bffb9)],'data-cke-tooltip-text':_0xeec9fb['to'](_0x5c45c7(0xc1),Rn),'data-cke-tooltip-position':Ln,'data-cke-tooltip-class':yn};}[_0x2016d9(0xb6)](_0x156a4f,_0x1c5805,_0x3d343e){const _0x1082a7=_0x2016d9,_0x203bae=this[_0x1082a7(0xb7)](_0x3d343e),_0x4f457e=this[_0x1082a7(0xe9)]();return this[_0x1082a7(0xdd)]?[_0x156a4f,_0x203bae]:[_0x156a4f,_0x4f457e,_0x203bae,_0x1c5805];}[_0x2016d9(0xb7)](_0x5f4068){const _0xa33b16=_0x2016d9;return{'tag':_0xa33b16(0xe2),'attributes':{'class':On},'children':[{'text':_0x5f4068['to'](_0xa33b16(0xc1))}]};}[_0x2016d9(0xbb)](){const _0x99090f=_0x2016d9,_0x252fa3=new _0x352050(this[_0x99090f(0xd3)]);return _0x252fa3[_0x99090f(0xb4)]({'label':_0x90a17e(this[_0x99090f(0xd3)],_0x99090f(0xc3)),'icon':_0xeb0d50}),this[_0x99090f(0xbd)](_0x252fa3),_0x252fa3;}[_0x2016d9(0xbd)](_0x43a8a1){const _0x2a8e5a=_0x2016d9;_0x43a8a1['on'](_0x2a8e5a(0xb3),()=>{const _0x1c8ec6=_0x2a8e5a;this[_0x1c8ec6(0xae)](_0x1c8ec6(0xcf),this['id']);});}[_0x2016d9(0xea)](){const _0x3399f4=_0x2016d9,_0x4facd1=this[_0x3399f4(0xcb)],_0x4e1085=new _0x1636ef();return _0x4e1085[_0x3399f4(0xc9)]=En[this[_0x3399f4(0xd6)]],_0x4e1085[_0x3399f4(0xb0)]({'attributes':{'class':[vn,_0x4facd1['if'](_0x3399f4(0xde),_0x3399f4(0xe0),_0x5755f2=>_0x5755f2)]}}),_0x4e1085;}[_0x2016d9(0xb5)](_0x31927d,_0x3b4323){const _0xa83033=_0x2016d9;if(!_0x31927d)return;const _0x4795a5=()=>{const _0x212b51=_0x203a;_0x3b4323(),_0x31927d[_0x212b51(0xd5)](_0x212b51(0xaf),_0x4795a5),_0x31927d[_0x212b51(0xd5)](_0x212b51(0xc5),_0x4795a5);};_0x31927d[_0xa83033(0xb1)](_0xa83033(0xaf),_0x4795a5),_0x31927d[_0xa83033(0xb1)](_0xa83033(0xc5),_0x4795a5);}[_0x2016d9(0xe9)](){const _0x18ecca=_0x2016d9,_0x311b4b=new _0x34c7cd(_0x18ecca(0xdf));return _0x311b4b[_0x18ecca(0xe1)](_0x18ecca(0xe7))['to'](this,_0x18ecca(0xde),_0x260455=>_0x260455),_0x311b4b;}}function _0x203a(_0x4163c6,_0x3b9ed6){const _0xce26ef=_0xce26();return _0x203a=function(_0x203aa6,_0x493257){_0x203aa6=_0x203aa6-0xad;let _0xf4a0e9=_0xce26ef[_0x203aa6];return _0xf4a0e9;},_0x203a(_0x4163c6,_0x3b9ed6);}function Rn(_0x35b01b){const _0x5e5595=_0x2016d9;if(!_0x35b01b)return _0x35b01b;if(_0x35b01b[_0x5e5595(0xb8)]<=0x78)return _0x35b01b;const _0x227a60=_0x35b01b[_0x5e5595(0xd4)](0x0,0x78),_0x370fc8=_0x227a60[_0x5e5595(0xd7)]('\x20');return(_0x370fc8>0x0?_0x227a60[_0x5e5595(0xd4)](0x0,_0x370fc8):_0x227a60)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c63a1=_0x302c;(function(_0x54ea5f,_0x4f5a8c){const _0x537b05=_0x302c,_0x577c3b=_0x54ea5f();while(!![]){try{const _0x310561=-parseInt(_0x537b05(0x192))/0x1*(-parseInt(_0x537b05(0x1cb))/0x2)+-parseInt(_0x537b05(0x195))/0x3*(-parseInt(_0x537b05(0x1cc))/0x4)+parseInt(_0x537b05(0x1b0))/0x5+-parseInt(_0x537b05(0x1cd))/0x6*(parseInt(_0x537b05(0x194))/0x7)+parseInt(_0x537b05(0x1a5))/0x8*(-parseInt(_0x537b05(0x1cf))/0x9)+parseInt(_0x537b05(0x198))/0xa*(parseInt(_0x537b05(0x19a))/0xb)+-parseInt(_0x537b05(0x1a0))/0xc;if(_0x310561===_0x4f5a8c)break;else _0x577c3b['push'](_0x577c3b['shift']());}catch(_0x30064b){_0x577c3b['push'](_0x577c3b['shift']());}}}(_0x1a59,0xed8a8));import{FocusTracker as _0x406790,KeystrokeHandler as _0x5e8608}from'ckeditor5/src/utils.js';function _0x1a59(){const _0x4598d7=['536968RbKcBE','35376isgzNM','focus','4310532HmCySU','clear','element','clearError','listenTo','locale','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','div','stop','render','AI_CHAT_CONTEXT_URL_INVALID_ERROR','errorText','add','ck-button-icon\x20ck-button-back','727EzhsML','trim','826FsLYDu','36dJQJiH','focusTracker','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','3349900VXaugl','AI_CHAT_CONTEXT_URL_PLACEHOLDER','22xtRMfV','AI_CHAT_CONTEXT_URL_LABEL','esc','shift+tab','ck-button-icon','ck-labeled-field-view_empty','5756508mocYVA','cancel','_updateConfirmButtonState','set','fieldView','8hHEadr','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_setupEventHandlers','urlInputField','keystrokes','fire','submitUrl','execute','length','_createUrlInputField','confirmButton','1347035HxwggT','focusCycler','submit','_createBackButton','_setupTemplate','_isValidUrl','_createConfirmButton','input','createCollection','getValue','tab','_handleSubmit','setError','forEach','ck-ai-chat-context-controls__url-input-section','isEnabled','ck-ai-chat-context-controls__url-form','refreshBalloon','children','value','_focusables','AI_CHAT_CONTEXT_URL_ADD_URL','form','destroy','backButton','_setupKeystrokes','setTemplate','212xxSTEy'];_0x1a59=function(){return _0x4598d7;};return _0x1a59();}import{ButtonView as _0x2d113e,FocusCycler as _0xb89a67,LabeledFieldView as _0x52789b,View as _0x159f82,FormHeaderView as _0x304cd9,createLabeledInputText as _0x147ef3,submitHandler as _0x4a20d8}from'ckeditor5/src/ui.js';import{IconCheck as _0x41e897,IconPreviousArrow as _0x230b24}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2a3dbb}from'../../../aicore/utils/common-translations.js';function _0x302c(_0x56f12d,_0x608550){const _0x1a5914=_0x1a59();return _0x302c=function(_0x302c9c,_0x2f5972){_0x302c9c=_0x302c9c-0x18d;let _0x22d3ca=_0x1a5914[_0x302c9c];return _0x22d3ca;},_0x302c(_0x56f12d,_0x608550);}const ch=_0x3c63a1(0x1c0),nh=_0x3c63a1(0x1be);export class AIChatContextPanelUrlInputView extends _0x159f82{[_0x3c63a1(0x196)];[_0x3c63a1(0x1a9)];[_0x3c63a1(0x1c4)];[_0x3c63a1(0x1b1)];[_0x3c63a1(0x1a8)];[_0x3c63a1(0x1c8)];[_0x3c63a1(0x1af)];constructor(_0x450ea0){const _0x47d851=_0x3c63a1;super(_0x450ea0),this[_0x47d851(0x196)]=new _0x406790(),this[_0x47d851(0x1a9)]=new _0x5e8608(),this[_0x47d851(0x1c8)]=this[_0x47d851(0x1b3)](),this[_0x47d851(0x1a8)]=this[_0x47d851(0x1ae)](),this[_0x47d851(0x1af)]=this[_0x47d851(0x1b6)](),this[_0x47d851(0x1c4)]=this[_0x47d851(0x1b8)]([this[_0x47d851(0x1c8)],this[_0x47d851(0x1a8)],this[_0x47d851(0x1af)]]),this[_0x47d851(0x1b1)]=new _0xb89a67({'focusables':this[_0x47d851(0x1c4)],'focusTracker':this[_0x47d851(0x196)],'keystrokeHandler':this[_0x47d851(0x1a9)],'actions':{'focusPrevious':_0x47d851(0x19d),'focusNext':_0x47d851(0x1ba)}}),this[_0x47d851(0x1b4)](),this[_0x47d851(0x1a7)](),this[_0x47d851(0x1c9)]();}[_0x3c63a1(0x18d)](){const _0x5b6dea=_0x3c63a1;super[_0x5b6dea(0x18d)](),this[_0x5b6dea(0x1c4)][_0x5b6dea(0x1bd)](_0x5d2913=>{const _0x104885=_0x5b6dea;this[_0x104885(0x196)][_0x104885(0x190)](_0x5d2913[_0x104885(0x1d1)]),this[_0x104885(0x1a9)][_0x104885(0x1d3)](_0x5d2913[_0x104885(0x1d1)]);}),_0x4a20d8({'view':this}),this[_0x5b6dea(0x1ce)]();}[_0x3c63a1(0x1c7)](){const _0x512282=_0x3c63a1;super[_0x512282(0x1c7)](),this[_0x512282(0x196)][_0x512282(0x1c7)](),this[_0x512282(0x1a9)][_0x512282(0x1c7)]();}[_0x3c63a1(0x1ce)](){const _0x18cc38=_0x3c63a1;this[_0x18cc38(0x1a8)][_0x18cc38(0x1ce)]();}[_0x3c63a1(0x1b9)](){const _0x4d0a47=_0x3c63a1;return this[_0x4d0a47(0x1a8)][_0x4d0a47(0x1a4)][_0x4d0a47(0x1d1)]?.[_0x4d0a47(0x1c3)]?.[_0x4d0a47(0x193)]()||'';}[_0x3c63a1(0x1d0)](){const _0x34b366=_0x3c63a1;this[_0x34b366(0x1a8)][_0x34b366(0x1a4)][_0x34b366(0x1d1)][_0x34b366(0x1c3)]='',this[_0x34b366(0x1a8)][_0x34b366(0x18f)]=null,this[_0x34b366(0x1af)][_0x34b366(0x1bf)]=!0x1;}[_0x3c63a1(0x1bc)](_0x1f0de3){const _0x2521f7=_0x3c63a1;this[_0x2521f7(0x1a8)][_0x2521f7(0x18f)]=_0x1f0de3,this[_0x2521f7(0x1a2)](),this[_0x2521f7(0x1aa)](_0x2521f7(0x1c1));}[_0x3c63a1(0x1d2)](){const _0x3e02d1=_0x3c63a1;this[_0x3e02d1(0x1a8)][_0x3e02d1(0x18f)]=null,this[_0x3e02d1(0x1a2)]();}[_0x3c63a1(0x1b3)](){const _0x2418ba=_0x3c63a1,_0x279af8=new _0x2d113e(this[_0x2418ba(0x1d4)]);return _0x279af8[_0x2418ba(0x1a3)]({'icon':_0x230b24,'tooltip':_0x2a3dbb(this[_0x2418ba(0x1d4)],_0x2418ba(0x1d5)),'tooltipPosition':'n','class':_0x2418ba(0x191)}),_0x279af8;}[_0x3c63a1(0x1ae)](){const _0x13bd34=_0x3c63a1,_0x3a2a5c=new _0x52789b(this[_0x13bd34(0x1d4)],_0x147ef3);return _0x3a2a5c[_0x13bd34(0x1a3)]({'label':_0x2a3dbb(this[_0x13bd34(0x1d4)],_0x13bd34(0x19b)),'class':_0x13bd34(0x19f)}),_0x3a2a5c[_0x13bd34(0x1a4)][_0x13bd34(0x1a3)]({'placeholder':_0x2a3dbb(this[_0x13bd34(0x1d4)],_0x13bd34(0x199))}),_0x3a2a5c;}[_0x3c63a1(0x1b6)](){const _0x142e22=_0x3c63a1,_0x4e9ba6=new _0x2d113e(this[_0x142e22(0x1d4)]);return _0x4e9ba6[_0x142e22(0x1a3)]({'icon':_0x41e897,'tooltip':_0x2a3dbb(this[_0x142e22(0x1d4)],_0x142e22(0x1c5)),'tooltipPosition':'n','class':_0x142e22(0x19e),'type':_0x142e22(0x1b2),'isEnabled':!0x1}),_0x4e9ba6;}[_0x3c63a1(0x1b4)](){const _0x312867=_0x3c63a1,_0xe87050=new _0x304cd9(this[_0x312867(0x1d4)],{'label':_0x2a3dbb(this[_0x312867(0x1d4)],_0x312867(0x1c5)),'class':_0x312867(0x197)});_0xe87050[_0x312867(0x1c2)][_0x312867(0x190)](this[_0x312867(0x1c8)],0x0),this[_0x312867(0x1ca)]({'tag':_0x312867(0x1c6),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0xe87050,{'tag':_0x312867(0x1d6),'attributes':{'class':nh},'children':[this[_0x312867(0x1a8)],this[_0x312867(0x1af)]]}]});}[_0x3c63a1(0x1a7)](){const _0xb18045=_0x3c63a1;this[_0xb18045(0x1c8)]['on'](_0xb18045(0x1ac),()=>{const _0x5a08f1=_0xb18045;this[_0x5a08f1(0x1d0)](),this[_0x5a08f1(0x1aa)](_0x5a08f1(0x1a1));}),this[_0xb18045(0x1a8)][_0xb18045(0x1a4)]['on'](_0xb18045(0x1b7),()=>{const _0x410e82=_0xb18045;this[_0x410e82(0x1d2)](),this[_0x410e82(0x1a2)](),this[_0x410e82(0x1aa)](_0x410e82(0x1c1));}),this['on'](_0xb18045(0x1b2),_0x35d235=>{const _0x518ce3=_0xb18045;_0x35d235[_0x518ce3(0x1d7)](),this[_0x518ce3(0x1bb)]();});}[_0x3c63a1(0x1c9)](){const _0xd0bd6e=_0x3c63a1;this[_0xd0bd6e(0x1a9)][_0xd0bd6e(0x1a3)](_0xd0bd6e(0x19c),(_0x48c8ff,_0xc427d2)=>{const _0x507562=_0xd0bd6e;this[_0x507562(0x1d0)](),this[_0x507562(0x1aa)](_0x507562(0x1a1)),_0xc427d2();});}[_0x3c63a1(0x1bb)](){const _0x287410=_0x3c63a1,_0x1b223a=this[_0x287410(0x1b9)]()[_0x287410(0x193)]();_0x1b223a?this[_0x287410(0x1b5)](_0x1b223a)?(this[_0x287410(0x1d2)](),this[_0x287410(0x1aa)](_0x287410(0x1ab),_0x1b223a)):this[_0x287410(0x1bc)](_0x2a3dbb(this[_0x287410(0x1d4)],_0x287410(0x18e))):this[_0x287410(0x1bc)](_0x2a3dbb(this[_0x287410(0x1d4)],_0x287410(0x1a6)));}[_0x3c63a1(0x1a2)](){const _0xa0fd45=_0x3c63a1,_0x4aa5c9=this[_0xa0fd45(0x1b9)]()[_0xa0fd45(0x193)](),_0x250a76=!!this[_0xa0fd45(0x1a8)][_0xa0fd45(0x18f)];this[_0xa0fd45(0x1af)][_0xa0fd45(0x1bf)]=_0x4aa5c9[_0xa0fd45(0x1ad)]>0x0&&!_0x250a76;}[_0x3c63a1(0x1b5)](_0x297493){try{return!!new URL(_0x297493);}catch{return!0x1;}}}
23
+ function _0x51f5(_0x2a9000,_0x57371a){const _0x3fdbf7=_0x3fdb();return _0x51f5=function(_0x51f54b,_0x2d6a5d){_0x51f54b=_0x51f54b-0x8d;let _0x20e296=_0x3fdbf7[_0x51f54b];return _0x20e296;},_0x51f5(_0x2a9000,_0x57371a);}const _0x16475b=_0x51f5;(function(_0xd6bf4,_0x357d03){const _0x3f2f85=_0x51f5,_0x1c402c=_0xd6bf4();while(!![]){try{const _0x27d4d9=-parseInt(_0x3f2f85(0xb0))/0x1+parseInt(_0x3f2f85(0xc6))/0x2*(-parseInt(_0x3f2f85(0xa6))/0x3)+-parseInt(_0x3f2f85(0x91))/0x4+parseInt(_0x3f2f85(0xbb))/0x5+parseInt(_0x3f2f85(0x9c))/0x6+-parseInt(_0x3f2f85(0xa3))/0x7+-parseInt(_0x3f2f85(0xd3))/0x8*(-parseInt(_0x3f2f85(0x93))/0x9);if(_0x27d4d9===_0x357d03)break;else _0x1c402c['push'](_0x1c402c['shift']());}catch(_0x1551c4){_0x1c402c['push'](_0x1c402c['shift']());}}}(_0x3fdb,0xb89a8));import{FocusTracker as _0x4f3991,KeystrokeHandler as _0x2761c3}from'ckeditor5/src/utils.js';import{ButtonView as _0x1ce3df,FocusCycler as _0x59ed68,LabeledFieldView as _0x76db50,View as _0xcf6a8c,FormHeaderView as _0xa33c5d,createLabeledInputText as _0x3e8d1b,submitHandler as _0x324a6b}from'ckeditor5/src/ui.js';function _0x3fdb(){const _0x329666=['clear','3997630AGgNZa','fieldView','shift+tab','17511eCpLOe','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','length','value','_updateConfirmButtonState','_isValidUrl','_setupTemplate','errorText','AI_CHAT_CONTEXT_URL_ADD_URL','_setupKeystrokes','554610erKaBC','setError','form','element','_createBackButton','render','refreshBalloon','tab','cancel','ck-button-icon','focusCycler','1970760ikgbbo','confirmButton','forEach','ck-labeled-field-view_empty','fire','AI_CHAT_CONTEXT_URL_LABEL','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','destroy','_setupEventHandlers','backButton','ck-ai-chat-context-controls__url-input-section','102nfuUkd','urlInputField','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','getValue','isEnabled','_focusables','input','div','set','_createUrlInputField','submitUrl','setTemplate','_handleSubmit','16ciHsmd','add','_createConfirmButton','focus','ck-button-icon\x20ck-button-back','listenTo','3135824SEWdNJ','submit','8165007dtPGub','AI_CHAT_CONTEXT_URL_INVALID_ERROR','esc','trim','children','focusTracker','ck-ai-chat-context-controls__url-form','createCollection','keystrokes','4529286TWUlPU','clearError','execute','stop','AI_CHAT_CONTEXT_URL_PLACEHOLDER','locale'];_0x3fdb=function(){return _0x329666;};return _0x3fdb();}import{IconCheck as _0x21ae4d,IconPreviousArrow as _0x11c8ed}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x487dc5}from'../../../aicore/utils/common-translations.js';const eh=_0x16475b(0x99),hh=_0x16475b(0xc5);export class AIChatContextPanelUrlInputView extends _0xcf6a8c{[_0x16475b(0x98)];[_0x16475b(0x9b)];[_0x16475b(0xcb)];[_0x16475b(0xba)];[_0x16475b(0xc7)];[_0x16475b(0xc4)];[_0x16475b(0xbc)];constructor(_0x1dc16f){const _0x4a9dce=_0x16475b;super(_0x1dc16f),this[_0x4a9dce(0x98)]=new _0x4f3991(),this[_0x4a9dce(0x9b)]=new _0x2761c3(),this[_0x4a9dce(0xc4)]=this[_0x4a9dce(0xb4)](),this[_0x4a9dce(0xc7)]=this[_0x4a9dce(0xcf)](),this[_0x4a9dce(0xbc)]=this[_0x4a9dce(0x8d)](),this[_0x4a9dce(0xcb)]=this[_0x4a9dce(0x9a)]([this[_0x4a9dce(0xc4)],this[_0x4a9dce(0xc7)],this[_0x4a9dce(0xbc)]]),this[_0x4a9dce(0xba)]=new _0x59ed68({'focusables':this[_0x4a9dce(0xcb)],'focusTracker':this[_0x4a9dce(0x98)],'keystrokeHandler':this[_0x4a9dce(0x9b)],'actions':{'focusPrevious':_0x4a9dce(0xa5),'focusNext':_0x4a9dce(0xb7)}}),this[_0x4a9dce(0xac)](),this[_0x4a9dce(0xc3)](),this[_0x4a9dce(0xaf)]();}[_0x16475b(0xb5)](){const _0x8cca3a=_0x16475b;super[_0x8cca3a(0xb5)](),this[_0x8cca3a(0xcb)][_0x8cca3a(0xbd)](_0x2fa4ee=>{const _0x228c71=_0x8cca3a;this[_0x228c71(0x98)][_0x228c71(0xd4)](_0x2fa4ee[_0x228c71(0xb3)]),this[_0x228c71(0x9b)][_0x228c71(0x90)](_0x2fa4ee[_0x228c71(0xb3)]);}),_0x324a6b({'view':this}),this[_0x8cca3a(0x8e)]();}[_0x16475b(0xc2)](){const _0x283436=_0x16475b;super[_0x283436(0xc2)](),this[_0x283436(0x98)][_0x283436(0xc2)](),this[_0x283436(0x9b)][_0x283436(0xc2)]();}[_0x16475b(0x8e)](){const _0x156a0b=_0x16475b;this[_0x156a0b(0xc7)][_0x156a0b(0x8e)]();}[_0x16475b(0xc9)](){const _0x568d9e=_0x16475b;return this[_0x568d9e(0xc7)][_0x568d9e(0xa4)][_0x568d9e(0xb3)]?.[_0x568d9e(0xa9)]?.[_0x568d9e(0x96)]()||'';}[_0x16475b(0xa2)](){const _0x399c80=_0x16475b;this[_0x399c80(0xc7)][_0x399c80(0xa4)][_0x399c80(0xb3)][_0x399c80(0xa9)]='',this[_0x399c80(0xc7)][_0x399c80(0xad)]=null,this[_0x399c80(0xbc)][_0x399c80(0xca)]=!0x1;}[_0x16475b(0xb1)](_0xab61fd){const _0x1c31e3=_0x16475b;this[_0x1c31e3(0xc7)][_0x1c31e3(0xad)]=_0xab61fd,this[_0x1c31e3(0xaa)](),this[_0x1c31e3(0xbf)](_0x1c31e3(0xb6));}[_0x16475b(0x9d)](){const _0x2477aa=_0x16475b;this[_0x2477aa(0xc7)][_0x2477aa(0xad)]=null,this[_0x2477aa(0xaa)]();}[_0x16475b(0xb4)](){const _0x2e66b7=_0x16475b,_0x37c626=new _0x1ce3df(this[_0x2e66b7(0xa1)]);return _0x37c626[_0x2e66b7(0xce)]({'icon':_0x11c8ed,'tooltip':_0x487dc5(this[_0x2e66b7(0xa1)],_0x2e66b7(0xc8)),'tooltipPosition':'n','class':_0x2e66b7(0x8f)}),_0x37c626;}[_0x16475b(0xcf)](){const _0x95b135=_0x16475b,_0x37e6c6=new _0x76db50(this[_0x95b135(0xa1)],_0x3e8d1b);return _0x37e6c6[_0x95b135(0xce)]({'label':_0x487dc5(this[_0x95b135(0xa1)],_0x95b135(0xc0)),'class':_0x95b135(0xbe)}),_0x37e6c6[_0x95b135(0xa4)][_0x95b135(0xce)]({'placeholder':_0x487dc5(this[_0x95b135(0xa1)],_0x95b135(0xa0))}),_0x37e6c6;}[_0x16475b(0x8d)](){const _0x4bc99f=_0x16475b,_0x50616b=new _0x1ce3df(this[_0x4bc99f(0xa1)]);return _0x50616b[_0x4bc99f(0xce)]({'icon':_0x21ae4d,'tooltip':_0x487dc5(this[_0x4bc99f(0xa1)],_0x4bc99f(0xae)),'tooltipPosition':'n','class':_0x4bc99f(0xb9),'type':_0x4bc99f(0x92),'isEnabled':!0x1}),_0x50616b;}[_0x16475b(0xac)](){const _0x380358=_0x16475b,_0x40689c=new _0xa33c5d(this[_0x380358(0xa1)],{'label':_0x487dc5(this[_0x380358(0xa1)],_0x380358(0xae)),'class':_0x380358(0xa7)});_0x40689c[_0x380358(0x97)][_0x380358(0xd4)](this[_0x380358(0xc4)],0x0),this[_0x380358(0xd1)]({'tag':_0x380358(0xb2),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x40689c,{'tag':_0x380358(0xcd),'attributes':{'class':hh},'children':[this[_0x380358(0xc7)],this[_0x380358(0xbc)]]}]});}[_0x16475b(0xc3)](){const _0x28013b=_0x16475b;this[_0x28013b(0xc4)]['on'](_0x28013b(0x9e),()=>{const _0x347a2b=_0x28013b;this[_0x347a2b(0xa2)](),this[_0x347a2b(0xbf)](_0x347a2b(0xb8));}),this[_0x28013b(0xc7)][_0x28013b(0xa4)]['on'](_0x28013b(0xcc),()=>{const _0x57807f=_0x28013b;this[_0x57807f(0x9d)](),this[_0x57807f(0xaa)](),this[_0x57807f(0xbf)](_0x57807f(0xb6));}),this['on'](_0x28013b(0x92),_0x544c4c=>{const _0x585e3c=_0x28013b;_0x544c4c[_0x585e3c(0x9f)](),this[_0x585e3c(0xd2)]();});}[_0x16475b(0xaf)](){const _0x388c43=_0x16475b;this[_0x388c43(0x9b)][_0x388c43(0xce)](_0x388c43(0x95),(_0x193735,_0x21a7ca)=>{const _0x4a5ac7=_0x388c43;this[_0x4a5ac7(0xa2)](),this[_0x4a5ac7(0xbf)](_0x4a5ac7(0xb8)),_0x21a7ca();});}[_0x16475b(0xd2)](){const _0x4d7b7f=_0x16475b,_0x1c5f7b=this[_0x4d7b7f(0xc9)]()[_0x4d7b7f(0x96)]();_0x1c5f7b?this[_0x4d7b7f(0xab)](_0x1c5f7b)?(this[_0x4d7b7f(0x9d)](),this[_0x4d7b7f(0xbf)](_0x4d7b7f(0xd0),_0x1c5f7b)):this[_0x4d7b7f(0xb1)](_0x487dc5(this[_0x4d7b7f(0xa1)],_0x4d7b7f(0x94))):this[_0x4d7b7f(0xb1)](_0x487dc5(this[_0x4d7b7f(0xa1)],_0x4d7b7f(0xc1)));}[_0x16475b(0xaa)](){const _0x1e1e80=_0x16475b,_0xa3d6bd=this[_0x1e1e80(0xc9)]()[_0x1e1e80(0x96)](),_0x3c768d=!!this[_0x1e1e80(0xc7)][_0x1e1e80(0xad)];this[_0x1e1e80(0xbc)][_0x1e1e80(0xca)]=_0xa3d6bd[_0x1e1e80(0xa8)]>0x0&&!_0x3c768d;}[_0x16475b(0xab)](_0x4e0a98){try{return!!new URL(_0x4e0a98);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3f7a(_0x41f10e,_0x2bf53b){const _0x19e624=_0x19e6();return _0x3f7a=function(_0x3f7a24,_0xbf7128){_0x3f7a24=_0x3f7a24-0x166;let _0x5d8d80=_0x19e624[_0x3f7a24];return _0x5d8d80;},_0x3f7a(_0x41f10e,_0x2bf53b);}const _0x2f4993=_0x3f7a;(function(_0x55e66e,_0x1c8aba){const _0x586a4a=_0x3f7a,_0x1a725b=_0x55e66e();while(!![]){try{const _0x3e08a4=parseInt(_0x586a4a(0x1b2))/0x1*(-parseInt(_0x586a4a(0x169))/0x2)+parseInt(_0x586a4a(0x1f6))/0x3+-parseInt(_0x586a4a(0x1cc))/0x4*(-parseInt(_0x586a4a(0x1f4))/0x5)+-parseInt(_0x586a4a(0x1ce))/0x6*(parseInt(_0x586a4a(0x17e))/0x7)+parseInt(_0x586a4a(0x1eb))/0x8*(parseInt(_0x586a4a(0x1af))/0x9)+parseInt(_0x586a4a(0x1ec))/0xa+-parseInt(_0x586a4a(0x16f))/0xb*(parseInt(_0x586a4a(0x16a))/0xc);if(_0x3e08a4===_0x1c8aba)break;else _0x1a725b['push'](_0x1a725b['shift']());}catch(_0x4bee35){_0x1a725b['push'](_0x1a725b['shift']());}}}(_0x19e6,0x3318f));import{BalloonPanelView as _0x488bd0,ButtonView as _0x1dec6f,clickOutsideHandler as _0x43329d,FileDialogButtonView as _0x4bd77d,IconView as _0x598c44,View as _0x6126f6}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1bd93f,IconDocument as _0x3d82e1,IconDocumentOutline as _0x5d6e1d,IconDropdownArrow as _0x12a032,IconLink as _0x4dddc7,IconPaperClip as _0x145df5}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x493e49}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x43cb5c}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x902824}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x3c5ce3}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x85a221}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2f4993(0x1d7),_0x2f4993(0x1c6),_0x2f4993(0x1f7),_0x2f4993(0x16b),_0x2f4993(0x16e),_0x2f4993(0x1bf)];const Vo=_0x2f4993(0x19d),Io=_0x2f4993(0x1cb),Po=_0x2f4993(0x190),Ro=_0x2f4993(0x1cf),Uo=_0x2f4993(0x1b3),Lo=_0x2f4993(0x183),No=_0x2f4993(0x17d),Oo=_0x2f4993(0x1ab),Mo=_0x2f4993(0x168),Ho=_0x2f4993(0x198),jo=_0x2f4993(0x170),Fo=_0x2f4993(0x1ed),Xo=[_0x488bd0[_0x2f4993(0x1ae)][_0x2f4993(0x18b)],_0x488bd0[_0x2f4993(0x1ae)][_0x2f4993(0x19a)],_0x488bd0[_0x2f4993(0x1ae)][_0x2f4993(0x1f5)],_0x488bd0[_0x2f4993(0x1ae)][_0x2f4993(0x1c0)],_0x488bd0[_0x2f4993(0x1ae)][_0x2f4993(0x187)],_0x488bd0[_0x2f4993(0x1ae)][_0x2f4993(0x19f)]];export class AIChatContextPanelView extends _0x6126f6{[_0x2f4993(0x1e1)];[_0x2f4993(0x1df)]=this[_0x2f4993(0x195)]();[_0x2f4993(0x17f)]=this[_0x2f4993(0x195)]();[_0x2f4993(0x174)];[_0x2f4993(0x17b)];[_0x2f4993(0x193)];[_0x2f4993(0x196)];[_0x2f4993(0x1a3)];[_0x2f4993(0x16d)];[_0x2f4993(0x184)];constructor(_0x56a9f4,_0x183029){const _0x4117fe=_0x2f4993;super(_0x56a9f4),this[_0x4117fe(0x184)]=_0x183029[_0x4117fe(0x184)],this[_0x4117fe(0x1df)]=this[_0x4117fe(0x195)](),this[_0x4117fe(0x17f)]=this[_0x4117fe(0x195)](),this[_0x4117fe(0x1e1)]=this[_0x4117fe(0x18e)](_0x56a9f4),this[_0x4117fe(0x17b)]=this[_0x4117fe(0x1d0)](_0x56a9f4),this[_0x4117fe(0x193)]=this[_0x4117fe(0x1c8)](_0x56a9f4),this[_0x4117fe(0x1a3)]=this[_0x4117fe(0x199)](_0x56a9f4,_0x183029);const _0x1fe10f={'cssClasses':{'showMoreButton':Ho,'showMoreBalloon':jo,'overflowContainer':Mo,'controlsButton':Oo}};this[_0x4117fe(0x174)]=new _0x902824(_0x56a9f4,this[_0x4117fe(0x1df)],_0x1fe10f,this[_0x4117fe(0x184)],this),this[_0x4117fe(0x16d)]={'buttonView':this[_0x4117fe(0x1e1)],'balloonView':this[_0x4117fe(0x17b)],'hideMethod':this[_0x4117fe(0x185)][_0x4117fe(0x1e0)](this),'showMethod':this[_0x4117fe(0x175)][_0x4117fe(0x1e0)](this)},this[_0x4117fe(0x1b6)](),this[_0x4117fe(0x18d)]();}[_0x2f4993(0x177)](){const _0x9e0c05=_0x2f4993;super[_0x9e0c05(0x177)](),this[_0x9e0c05(0x1d3)](),this[_0x9e0c05(0x174)][_0x9e0c05(0x1a2)](this[_0x9e0c05(0x1d8)]),this[_0x9e0c05(0x174)][_0x9e0c05(0x18a)]();}[_0x2f4993(0x1e6)](){const _0x48dea8=_0x2f4993;super[_0x48dea8(0x1e6)](),this[_0x48dea8(0x174)][_0x48dea8(0x1e6)](),this[_0x48dea8(0x1a3)][_0x48dea8(0x1e6)]();}[_0x2f4993(0x1aa)](_0x2b4967,_0x497944){const _0x4d89f1=_0x2f4993,_0x55de98=this[_0x4d89f1(0x1e8)](_0x2b4967,_0x4d89f1(0x1de),!0x0,_0x497944);this[_0x4d89f1(0x181)](_0x55de98,this[_0x4d89f1(0x1df)]),this[_0x4d89f1(0x174)][_0x4d89f1(0x18a)]();}[_0x2f4993(0x16e)](_0x5d1ade){const _0x13e302=_0x2f4993;this[_0x13e302(0x166)](_0x5d1ade,this[_0x13e302(0x1df)]),this[_0x13e302(0x166)](_0x5d1ade,this[_0x13e302(0x174)][_0x13e302(0x1d4)]),this[_0x13e302(0x174)][_0x13e302(0x18a)]();}[_0x2f4993(0x1d1)](_0x595a93,_0x2118ab){const _0x13be94=_0x2f4993;let _0x365605=this[_0x13be94(0x1df)][_0x13be94(0x1db)](_0x40bd1f=>_0x40bd1f['id']===_0x595a93);_0x365605||(_0x365605=this[_0x13be94(0x174)][_0x13be94(0x1d4)][_0x13be94(0x1db)](_0xc4ef6c=>_0xc4ef6c['id']===_0x595a93)),_0x365605&&(_0x365605[_0x13be94(0x182)]=_0x2118ab);}[_0x2f4993(0x1a9)](_0x3da974){const _0x141949=_0x2f4993;this[_0x141949(0x17f)][_0x141949(0x17c)]();for(const _0x235d67 of _0x3da974){const _0x516028=this[_0x141949(0x1e8)](_0x235d67,_0x141949(0x1c7),!0x1,!0x1);this[_0x141949(0x181)](_0x516028,this[_0x141949(0x17f)]);}}[_0x2f4993(0x1c9)](){const _0x400f22=_0x2f4993;this[_0x400f22(0x1df)][_0x400f22(0x17c)](),this[_0x400f22(0x174)][_0x400f22(0x17c)]();}[_0x2f4993(0x176)](){const _0x1ebff4=_0x2f4993;this[_0x1ebff4(0x17f)][_0x1ebff4(0x17c)]();}[_0x2f4993(0x1f0)](_0xe05d9a,_0x43460a,_0x42452a){const _0x281791=_0x2f4993;this[_0x281791(0x1a3)][_0x281791(0x1f0)](_0xe05d9a,_0x43460a,_0x42452a);}[_0x2f4993(0x185)](){const _0x2a7a12=_0x2f4993;this[_0x2a7a12(0x1e5)](!0x1);}[_0x2f4993(0x175)](){const _0x28f576=_0x2f4993;this[_0x28f576(0x1e5)](!0x0);}[_0x2f4993(0x19e)](){const _0x5b7ab7=_0x2f4993;this[_0x5b7ab7(0x193)][_0x5b7ab7(0x172)](),this[_0x5b7ab7(0x1e1)][_0x5b7ab7(0x197)]=!0x1,this[_0x5b7ab7(0x196)]&&this[_0x5b7ab7(0x196)][_0x5b7ab7(0x17c)]();}[_0x2f4993(0x1b8)](){const _0x3b1213=_0x2f4993;this[_0x3b1213(0x193)][_0x3b1213(0x1ca)](),this[_0x3b1213(0x1e1)][_0x3b1213(0x197)]=!0x0;}[_0x2f4993(0x186)](_0x97fbe5){const _0x340d60=_0x2f4993;this[_0x340d60(0x1a3)][_0x340d60(0x1c5)](_0x97fbe5),this[_0x340d60(0x1e1)][_0x340d60(0x197)]=!0x0;}[_0x2f4993(0x1b0)](_0x51bbf0,_0x25322b,_0x1fb21f,_0x597b66){const _0x4cc006=_0x2f4993;this[_0x4cc006(0x1a3)][_0x4cc006(0x1b0)](_0x51bbf0,_0x1fb21f,_0x597b66);}[_0x2f4993(0x1d2)](_0x5e2c94){const _0x20121c=_0x2f4993;this[_0x20121c(0x1a3)][_0x20121c(0x1d2)](_0x5e2c94),this[_0x20121c(0x1e1)][_0x20121c(0x197)]=!0x1;}[_0x2f4993(0x1f3)](_0x119c03){const _0x1e0b37=_0x2f4993;this[_0x1e0b37(0x1a7)](this[_0x1e0b37(0x17b)],this[_0x1e0b37(0x1e3)],_0x119c03),this[_0x1e0b37(0x19c)](_0x119c03);}[_0x2f4993(0x19c)](_0x1b3342){const _0x32b2bd=_0x2f4993,_0x313059=!_0x1b3342[_0x32b2bd(0x180)][_0x32b2bd(0x189)]&&_0x1b3342[_0x32b2bd(0x180)][_0x32b2bd(0x1ba)],_0x18a5de=_0x1b3342[_0x32b2bd(0x1a6)][_0x32b2bd(0x1ba)],_0x5cf396=_0x1b3342[_0x32b2bd(0x1bb)][_0x32b2bd(0x1ba)];this[_0x32b2bd(0x1e1)][_0x32b2bd(0x188)]=_0x313059||_0x18a5de||_0x5cf396;}[_0x2f4993(0x1b6)](){const _0x4b199b=_0x2f4993;this[_0x4b199b(0x1f1)]({'tag':_0x4b199b(0x1f2),'attributes':{'class':[Vo,_0x4b199b(0x18f)]},'children':[{'tag':_0x4b199b(0x1f2),'attributes':{'class':Io},'children':this[_0x4b199b(0x1df)]}]});}[_0x2f4993(0x18d)](){const _0x48df61=_0x2f4993;this[_0x48df61(0x1e1)]['on'](_0x48df61(0x1c3),()=>{const _0x423281=_0x48df61;this[_0x423281(0x16c)]();});}[_0x2f4993(0x18e)](_0x543d72){const _0x4b0272=_0x2f4993,_0x29f007=new _0x1dec6f(_0x543d72);return _0x29f007[_0x4b0272(0x173)]({'label':_0x3c5ce3(_0x543d72,_0x4b0272(0x1c2)),'class':Oo+'\x20'+Ro,'icon':_0x145df5,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x29f007;}[_0x2f4993(0x1d0)](_0x193d52){const _0x43196c=_0x2f4993;return this[_0x43196c(0x1d9)](_0x193d52,Po);}[_0x2f4993(0x1c8)](_0x3c0b80){const _0x56f6c4=_0x2f4993,_0x5453cd=this[_0x56f6c4(0x1d9)](_0x3c0b80,Uo);return this[_0x56f6c4(0x192)](_0x5453cd,_0x3c0b80),_0x5453cd;}[_0x2f4993(0x199)](_0x501370,_0x4acdee){const _0x403a11=_0x2f4993,_0x45b51f={'searchInputVisibleFrom':_0x4acdee[_0x403a11(0x19b)],'onBackToContext':()=>{const _0x9ed660=_0x403a11;this[_0x9ed660(0x175)](),this[_0x9ed660(0x17b)][_0x9ed660(0x1da)]({'target':this[_0x9ed660(0x1e1)][_0x9ed660(0x1d8)],'limiter':this[_0x9ed660(0x1b7)](),'positions':Xo});},'onResourceSelected':(_0x285da2,_0x4990df)=>{const _0x358291=_0x403a11;this[_0x358291(0x1be)](_0x358291(0x16b),{'source':_0x285da2,'resource':_0x4990df});},'onLoadSourceResources':_0x5713df=>{const _0x19eb92=_0x403a11;this[_0x19eb92(0x1be)](_0x19eb92(0x1bf),_0x5713df);},'onBalloonClosed':()=>{const _0x3fdaee=_0x403a11;this[_0x3fdaee(0x1e1)][_0x3fdaee(0x197)]=!0x1;},'getLimiterElement':()=>this[_0x403a11(0x1b7)](),'getTargetElement':()=>this[_0x403a11(0x1e1)][_0x403a11(0x1d8)]};return new _0x85a221(_0x501370,_0x4acdee[_0x403a11(0x184)],_0x45b51f);}[_0x2f4993(0x1b7)](){const _0x46a9e3=_0x2f4993;return this[_0x46a9e3(0x1d8)]?.[_0x46a9e3(0x1e2)]('.'+Fo)||document[_0x46a9e3(0x1ef)];}[_0x2f4993(0x1d9)](_0x31ef35,_0x482648){const _0x10fd29=_0x2f4993,_0x45dd22=new _0x488bd0(_0x31ef35);return _0x45dd22[_0x10fd29(0x1dd)]({'attributes':{'class':_0x482648}}),this[_0x10fd29(0x184)][_0x10fd29(0x1bd)](_0x45dd22),_0x45dd22;}[_0x2f4993(0x1a7)](_0x5f0f8f,_0x58561f,_0x16cf60){const _0x29714c=_0x2f4993;if(_0x5f0f8f[_0x29714c(0x1a8)][_0x29714c(0x17c)](),!_0x16cf60[_0x29714c(0x180)][_0x29714c(0x189)]&&_0x16cf60[_0x29714c(0x180)][_0x29714c(0x1ba)]){const _0x5b360c=this[_0x29714c(0x1e7)](_0x58561f,{'label':_0x3c5ce3(_0x58561f,_0x29714c(0x1ee)),'icon':_0x3d82e1});_0x5b360c['on'](_0x29714c(0x1c3),()=>{const _0xc58781=_0x29714c;this[_0xc58781(0x1be)](_0xc58781(0x1d7)),this[_0xc58781(0x185)]();}),_0x5f0f8f[_0x29714c(0x1a8)][_0x29714c(0x1bd)](_0x5b360c);}if(_0x16cf60[_0x29714c(0x1a6)][_0x29714c(0x1ba)]){const _0x3da3f2=this[_0x29714c(0x1e7)](_0x58561f,{'label':_0x3c5ce3(_0x58561f,_0x29714c(0x1e9)),'icon':_0x4dddc7});_0x3da3f2['on'](_0x29714c(0x1c3),()=>{const _0x560e1e=_0x29714c;this[_0x560e1e(0x185)](),this[_0x560e1e(0x1b8)](),this[_0x560e1e(0x193)][_0x560e1e(0x1da)]({'target':this[_0x560e1e(0x1e1)][_0x560e1e(0x1d8)],'limiter':this[_0x560e1e(0x1b7)](),'positions':Xo}),this[_0x560e1e(0x196)][_0x560e1e(0x1ad)]();}),_0x5f0f8f[_0x29714c(0x1a8)][_0x29714c(0x1bd)](_0x3da3f2);}if(_0x16cf60[_0x29714c(0x1bb)][_0x29714c(0x1ba)]){const _0x3cc449=new _0x4bd77d(_0x58561f);_0x3cc449[_0x29714c(0x173)]({'label':_0x3c5ce3(_0x58561f,_0x29714c(0x1a5)),'icon':_0x1bd93f,'withText':!0x0,'tooltip':!0x0,'class':Lo,'allowMultipleFiles':!0x0}),_0x3cc449['on'](_0x29714c(0x1bc),(_0x1d3487,_0x4f04ec)=>{const _0x32eb1b=_0x29714c;this[_0x32eb1b(0x1be)](_0x32eb1b(0x1c6),_0x4f04ec),this[_0x32eb1b(0x185)]();}),_0x3cc449[_0x29714c(0x1c1)]=!0x0,_0x5f0f8f[_0x29714c(0x1a8)][_0x29714c(0x1bd)](_0x3cc449);}for(const _0x556944 of _0x16cf60[_0x29714c(0x1c4)]){const _0x4ba739=this[_0x29714c(0x1e7)](_0x58561f,{'label':_0x556944[_0x29714c(0x1d6)],'icon':_0x556944[_0x29714c(0x1e4)]||_0x5d6e1d,'type':_0x29714c(0x171)});_0x5f0f8f[_0x29714c(0x1a8)][_0x29714c(0x1bd)](_0x4ba739),_0x4ba739['on'](_0x29714c(0x1c3),()=>{const _0x26946f=_0x29714c;this[_0x26946f(0x185)](),this[_0x26946f(0x186)](_0x556944);});}}[_0x2f4993(0x192)](_0x18e37a,_0x5ab1f6){const _0x4bd36d=_0x2f4993;this[_0x4bd36d(0x196)]=new _0x43cb5c(_0x5ab1f6),this[_0x4bd36d(0x196)]['on'](_0x4bd36d(0x1a0),(_0x20bbe5,_0x21ca26)=>{const _0x6ef4a3=_0x4bd36d;this[_0x6ef4a3(0x1d5)](_0x21ca26);}),this[_0x4bd36d(0x196)]['on'](_0x4bd36d(0x167),()=>{const _0x10b53c=_0x4bd36d;this[_0x10b53c(0x19e)](),this[_0x10b53c(0x175)](),this[_0x10b53c(0x17b)][_0x10b53c(0x1da)]({'target':this[_0x10b53c(0x1e1)][_0x10b53c(0x1d8)],'limiter':this[_0x10b53c(0x1b7)](),'positions':Xo});}),this[_0x4bd36d(0x196)]['on'](_0x4bd36d(0x1b4),()=>{const _0x46e38c=_0x4bd36d;this[_0x46e38c(0x193)][_0x46e38c(0x1b5)]&&this[_0x46e38c(0x193)][_0x46e38c(0x1da)]({'target':this[_0x46e38c(0x1e1)][_0x46e38c(0x1d8)],'limiter':this[_0x46e38c(0x1b7)](),'positions':Xo});}),_0x18e37a[_0x4bd36d(0x1a8)][_0x4bd36d(0x1bd)](this[_0x4bd36d(0x196)]);}[_0x2f4993(0x1e7)](_0x204905,_0x32a10d){const _0xdbbd04=_0x2f4993,_0x4a1ccb=_0xdbbd04(0x171)===_0x32a10d[_0xdbbd04(0x194)]?new SourcesBalloonButtonView(_0x204905):new _0x1dec6f(_0x204905);return _0x4a1ccb[_0xdbbd04(0x173)]({'label':_0x32a10d[_0xdbbd04(0x1d6)],'icon':_0x32a10d[_0xdbbd04(0x1e4)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Lo}),_0x4a1ccb;}[_0x2f4993(0x1d3)](){const _0x48c1c4=_0x2f4993;this[_0x48c1c4(0x17a)](),this[_0x48c1c4(0x1a4)]();}[_0x2f4993(0x1a4)](){const _0x4d6f42=_0x2f4993;_0x43329d({'emitter':this[_0x4d6f42(0x193)],'contextElements':[this[_0x4d6f42(0x193)][_0x4d6f42(0x1d8)]],'callback':()=>{const _0x540660=_0x4d6f42;this[_0x540660(0x19e)]();},'activator':()=>this[_0x4d6f42(0x193)][_0x4d6f42(0x1b5)]});}[_0x2f4993(0x1e5)](_0x7ab4e9){const _0x471761=_0x2f4993,_0x12cbe8=this[_0x471761(0x16d)];_0x12cbe8[_0x471761(0x1cd)][_0x471761(0x197)]=_0x7ab4e9,_0x7ab4e9?_0x12cbe8[_0x471761(0x1dc)][_0x471761(0x1ca)]():_0x12cbe8[_0x471761(0x1dc)][_0x471761(0x172)]();}[_0x2f4993(0x17a)](){const _0xc8666b=_0x2f4993,{balloonView:_0x599d6a,buttonView:_0x5f4dc5,hideMethod:_0x4d99}=this[_0xc8666b(0x16d)];_0x43329d({'emitter':_0x599d6a,'contextElements':[_0x599d6a[_0xc8666b(0x1d8)],_0x5f4dc5[_0xc8666b(0x1d8)]],'callback':()=>{_0x4d99();},'activator':()=>_0x5f4dc5[_0xc8666b(0x197)]&&!this[_0xc8666b(0x193)][_0xc8666b(0x1b5)]&&!this[_0xc8666b(0x1a3)][_0xc8666b(0x191)]()});}[_0x2f4993(0x1e8)](_0xb6ee31,_0x2ef760,_0x294e4a=!0x1,_0x52db65=!0x1){const _0x527d8c=_0x2f4993,_0x12324d=_0x527d8c(0x1c7)===_0x2ef760||!0x0===_0xb6ee31[_0x527d8c(0x1a1)],_0x4b4fad=new _0x493e49(this[_0x527d8c(0x1e3)],_0xb6ee31,_0x12324d,_0x294e4a,_0x52db65);return _0x12324d||_0x4b4fad['on'](_0x527d8c(0x179),()=>{const _0x89f20a=_0x527d8c;this[_0x89f20a(0x1be)](_0x89f20a(0x16e),_0x4b4fad['id']);}),_0x4b4fad;}[_0x2f4993(0x181)](_0x322d18,_0x3b7f1e){const _0x29988d=_0x2f4993;_0x3b7f1e[_0x29988d(0x1bd)](_0x322d18,0x0);}[_0x2f4993(0x166)](_0x3f380f,_0x444e0e){const _0x22d48b=_0x2f4993,_0x5b8539=_0x444e0e[_0x22d48b(0x1db)](_0x89aaf7=>_0x89aaf7['id']===_0x3f380f);_0x5b8539&&_0x444e0e[_0x22d48b(0x1ac)](_0x5b8539);}[_0x2f4993(0x16c)](){const _0x627611=_0x2f4993;this[_0x627611(0x1e1)][_0x627611(0x197)]?this[_0x627611(0x185)]():(this[_0x627611(0x175)](),this[_0x627611(0x17b)][_0x627611(0x1da)]({'target':this[_0x627611(0x1e1)][_0x627611(0x1d8)],'limiter':this[_0x627611(0x1b7)](),'positions':Xo}));}[_0x2f4993(0x1d5)](_0x29567e){const _0x7d30ad=_0x2f4993;this[_0x7d30ad(0x196)][_0x7d30ad(0x17c)](),this[_0x7d30ad(0x19e)](),this[_0x7d30ad(0x1be)](_0x7d30ad(0x1f7),_0x29567e);}}function _0x19e6(){const _0x2174b4=['_overflowManager','showAddContextBalloonPanel','clearConversationContextItems','render','arrowView','removeContextItemChip','_setupAddContextBalloonClickOutsideHandler','_addContextBalloonPanelView','clear','ck-ai-chat-context-controls__balloon-button-source','309953cynhMS','_conversationContextsChips','document','_addContextToCollection','isLoading','ck-ai-chat-context-controls__balloon-button','bodyCollection','hideAddContextBalloonPanel','_showSourceResourcesBalloon','southArrowNorth','isEnabled','isHidden','reorganizeChips','northArrowSouthWest','__arrow','_bindEventHandlers','_createAddContextButtonView','ck-reset_all-excluded','ck-ai-chat-context-controls__add-context-balloon-panel','isAnyResourceBalloonVisible','_addUrlContent','_urlBalloonPanelView','type','createCollection','_urlInputView','isOn','ck-ai-chat-controls_context_show-more-button','_createResourcesBalloonView','northArrowSouth','searchInputVisibleFrom','_setAddContextButtonEnabled','ck-ai-chat-context-controls','hideUrlBalloonPanel','southArrowNorthEast','submitUrl','isReadOnly','setContainerElement','_resourcesBalloonView','_setupUrlBalloonClickOutsideHandler','AI_CHAT_CONTEXT_FILE_LABEL','urls','_setBalloonPanelContent','content','setConversationContext','addContextItem','ck-ai-chat-controls-button','remove','focus','defaultPositions','177048ydRSTZ','populateSourceResourceBalloon','children','104336DEPJri','ck-ai-chat-context-controls__url-balloon-panel','refreshBalloon','isVisible','_setupTemplate','_getLimiterElement','showUrlBalloonPanel','_createArrowView','enabled','files','done','add','fire','loadSourceResources','southArrowNorthWest','tooltip','AI_CHAT_CONTEXT_ADD_CONTEXT','execute','sources','showSourceResourcesBalloon','addFileToContext','conversation','_createUrlBalloonPanelView','clearCurrentContextItems','show','ck-ai-chat-context-controls__pending-contexts','1064308acZzmJ','buttonView','42gVGcPc','ck-ai-chat-context-controls__add-context-button','_createAddContextBalloonPanelView','setContextItemLoading','closeSourceResourceBalloon','_setupAllBalloonClickOutsideHandlers','overflowChips','_handleUrlSubmit','label','addDocumentToContext','element','_createBaseBalloonPanel','pin','find','balloonView','extendTemplate','current','_currentContextsChips','bind','addContextButtonView','closest','locale','icon','_toggleAddContextBalloon','destroy','_createBalloonButton','_createContextButton','AI_CHAT_CONTEXT_URL_LABEL','menuitem','136XLcfkx','1319220Tsuwzj','ck-ai-chat','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','body','updateResourceState','setTemplate','div','setAddContextOptions','5AyLirf','northArrowSouthEast','890523hNtRnz','addUrlToContext','_removeContextFromCollection','cancel','ck-ai-chat-context-chips-wrapper-balloon','6uDGTwf','84nKtjaK','addResourceToContext','_handleAddContextButtonClick','_addContextBalloonConfig','removeContextItem','309584AgxxOD','ck-ai-chat-context-controls__show-more-balloon-panel','source','hide','set'];_0x19e6=function(){return _0x2174b4;};return _0x19e6();}export class SourcesBalloonButtonView extends _0x1dec6f{[_0x2f4993(0x178)];constructor(_0x4b380f){const _0x379853=_0x2f4993;super(_0x4b380f),this[_0x379853(0x173)]({'withText':!0x0,'role':_0x379853(0x1ea)}),this[_0x379853(0x178)]=this[_0x379853(0x1b9)](),this[_0x379853(0x1dd)]({'attributes':{'class':[No]}});}[_0x2f4993(0x177)](){const _0x155d2d=_0x2f4993;super[_0x155d2d(0x177)](),this[_0x155d2d(0x1b1)][_0x155d2d(0x1bd)](this[_0x155d2d(0x178)]);}[_0x2f4993(0x1b9)](){const _0x5c3bb3=_0x2f4993,_0x2e26a6=new _0x598c44();return _0x2e26a6[_0x5c3bb3(0x1a8)]=_0x12a032,_0x2e26a6[_0x5c3bb3(0x1dd)]({'attributes':{'class':No+_0x5c3bb3(0x18c)}}),_0x2e26a6;}}
23
+ const _0x2b35c2=_0xf53b;(function(_0x36b2a4,_0x25451a){const _0x37db6c=_0xf53b,_0x19c872=_0x36b2a4();while(!![]){try{const _0x3704ba=-parseInt(_0x37db6c(0x110))/0x1+parseInt(_0x37db6c(0xb8))/0x2*(parseInt(_0x37db6c(0xda))/0x3)+-parseInt(_0x37db6c(0xf8))/0x4+-parseInt(_0x37db6c(0x10e))/0x5*(parseInt(_0x37db6c(0xc1))/0x6)+-parseInt(_0x37db6c(0xb6))/0x7*(parseInt(_0x37db6c(0xe8))/0x8)+-parseInt(_0x37db6c(0xdb))/0x9*(-parseInt(_0x37db6c(0xf1))/0xa)+parseInt(_0x37db6c(0xe7))/0xb*(parseInt(_0x37db6c(0x12d))/0xc);if(_0x3704ba===_0x25451a)break;else _0x19c872['push'](_0x19c872['shift']());}catch(_0x1a330b){_0x19c872['push'](_0x19c872['shift']());}}}(_0x4c39,0x1b710));import{BalloonPanelView as _0x13281e,ButtonView as _0x1da79c,clickOutsideHandler as _0x1c6530,FileDialogButtonView as _0x43fc2d,IconView as _0x2d4303,View as _0x45c8b3}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1db9f9,IconDocument as _0x1b755e,IconDocumentOutline as _0x42627d,IconDropdownArrow as _0x1e5ab0,IconLink as _0x150029,IconPaperClip as _0x3b4d07}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0xf28186}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x559616}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x5d1079}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x2b6271}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x20f49f}from'./resources/aichatresourcesballoonview.js';function _0xf53b(_0x19d89c,_0x17248c){const _0x4c397d=_0x4c39();return _0xf53b=function(_0xf53b89,_0x4ef318){_0xf53b89=_0xf53b89-0xb0;let _0x4bb19b=_0x4c397d[_0xf53b89];return _0x4bb19b;},_0xf53b(_0x19d89c,_0x17248c);}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2b35c2(0xbd),_0x2b35c2(0x121),_0x2b35c2(0x13a),_0x2b35c2(0xbf),_0x2b35c2(0xe2),_0x2b35c2(0x136)];const Bo=_0x2b35c2(0xe1),bo=_0x2b35c2(0xd0),To=_0x2b35c2(0xea),Ao=_0x2b35c2(0x130),ko=_0x2b35c2(0xe4),Eo=_0x2b35c2(0x12e),vo=_0x2b35c2(0xd1),Vo=_0x2b35c2(0x11a),fo=_0x2b35c2(0xb1),Io=_0x2b35c2(0xec),Po=_0x2b35c2(0x139),Ro=_0x2b35c2(0xd8),So=[_0x13281e[_0x2b35c2(0x122)][_0x2b35c2(0xf6)],_0x13281e[_0x2b35c2(0x122)][_0x2b35c2(0xfa)],_0x13281e[_0x2b35c2(0x122)][_0x2b35c2(0xe6)],_0x13281e[_0x2b35c2(0x122)][_0x2b35c2(0x11c)],_0x13281e[_0x2b35c2(0x122)][_0x2b35c2(0x126)],_0x13281e[_0x2b35c2(0x122)][_0x2b35c2(0x137)]];export class AIChatContextPanelView extends _0x45c8b3{[_0x2b35c2(0x128)];[_0x2b35c2(0xf5)]=this[_0x2b35c2(0xd6)]();[_0x2b35c2(0xc9)]=this[_0x2b35c2(0xd6)]();[_0x2b35c2(0xdf)];[_0x2b35c2(0x113)];[_0x2b35c2(0xf9)];[_0x2b35c2(0x131)];[_0x2b35c2(0x127)];[_0x2b35c2(0x119)];[_0x2b35c2(0x105)];constructor(_0x5d604c,_0x4796e8){const _0x728973=_0x2b35c2;super(_0x5d604c),this[_0x728973(0x105)]=_0x4796e8[_0x728973(0x105)],this[_0x728973(0xf5)]=this[_0x728973(0xd6)](),this[_0x728973(0xc9)]=this[_0x728973(0xd6)](),this[_0x728973(0x128)]=this[_0x728973(0x10b)](_0x5d604c),this[_0x728973(0x113)]=this[_0x728973(0xfc)](_0x5d604c),this[_0x728973(0xf9)]=this[_0x728973(0xc6)](_0x5d604c),this[_0x728973(0x127)]=this[_0x728973(0xe5)](_0x5d604c,_0x4796e8);const _0x5803d7={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':fo,'controlsButton':Vo}};this[_0x728973(0xdf)]=new _0x5d1079(_0x5d604c,this[_0x728973(0xf5)],_0x5803d7,this[_0x728973(0x105)],this),this[_0x728973(0x119)]={'buttonView':this[_0x728973(0x128)],'balloonView':this[_0x728973(0x113)],'hideMethod':this[_0x728973(0x140)][_0x728973(0xd4)](this),'showMethod':this[_0x728973(0x111)][_0x728973(0xd4)](this)},this[_0x728973(0x123)](),this[_0x728973(0x129)]();}[_0x2b35c2(0xcb)](){const _0x4a251f=_0x2b35c2;super[_0x4a251f(0xcb)](),this[_0x4a251f(0xfd)](),this[_0x4a251f(0xdf)][_0x4a251f(0xb7)](this[_0x4a251f(0xb9)]),this[_0x4a251f(0xdf)][_0x4a251f(0x10d)]();}[_0x2b35c2(0x125)](){const _0x4d8402=_0x2b35c2;super[_0x4d8402(0x125)](),this[_0x4d8402(0xdf)][_0x4d8402(0x125)](),this[_0x4d8402(0x127)][_0x4d8402(0x125)]();}[_0x2b35c2(0x107)](_0x553628,_0x7a7eab){const _0x1a4c42=_0x2b35c2,_0x1e71b5=this[_0x1a4c42(0x132)](_0x553628,_0x1a4c42(0x13d),!0x0,_0x7a7eab);this[_0x1a4c42(0xb0)](_0x1e71b5,this[_0x1a4c42(0xf5)]),this[_0x1a4c42(0xdf)][_0x1a4c42(0x10d)]();}[_0x2b35c2(0xe2)](_0x2b1629){const _0x40dc1b=_0x2b35c2;this[_0x40dc1b(0xce)](_0x2b1629,this[_0x40dc1b(0xf5)]),this[_0x40dc1b(0xce)](_0x2b1629,this[_0x40dc1b(0xdf)][_0x40dc1b(0x101)]),this[_0x40dc1b(0xdf)][_0x40dc1b(0x10d)]();}[_0x2b35c2(0xb5)](_0x509987,_0x120078){const _0x171c75=_0x2b35c2;let _0x44e5dc=this[_0x171c75(0xf5)][_0x171c75(0x117)](_0x2d4b97=>_0x2d4b97['id']===_0x509987);_0x44e5dc||(_0x44e5dc=this[_0x171c75(0xdf)][_0x171c75(0x101)][_0x171c75(0x117)](_0x388801=>_0x388801['id']===_0x509987)),_0x44e5dc&&(_0x44e5dc[_0x171c75(0xbc)]=_0x120078);}[_0x2b35c2(0xcd)](_0x4deb0a){const _0x32ab5f=_0x2b35c2;this[_0x32ab5f(0xc9)][_0x32ab5f(0x103)]();for(const _0x4772e6 of _0x4deb0a){const _0x30e2d1=this[_0x32ab5f(0x132)](_0x4772e6,_0x32ab5f(0x102),!0x1,!0x1);this[_0x32ab5f(0xb0)](_0x30e2d1,this[_0x32ab5f(0xc9)]);}}[_0x2b35c2(0x10a)](){const _0x40bd57=_0x2b35c2;this[_0x40bd57(0xf5)][_0x40bd57(0x103)](),this[_0x40bd57(0xdf)][_0x40bd57(0x103)]();}[_0x2b35c2(0xfe)](){const _0x5308d2=_0x2b35c2;this[_0x5308d2(0xc9)][_0x5308d2(0x103)]();}[_0x2b35c2(0xc3)](_0x2d7d4a,_0x16a40f,_0x18f60b){const _0x4707b3=_0x2b35c2;this[_0x4707b3(0x127)][_0x4707b3(0xc3)](_0x2d7d4a,_0x16a40f,_0x18f60b);}[_0x2b35c2(0x140)](){const _0x1216a2=_0x2b35c2;this[_0x1216a2(0xe3)](!0x1);}[_0x2b35c2(0x111)](){const _0x2ce1f4=_0x2b35c2;this[_0x2ce1f4(0xe3)](!0x0);}[_0x2b35c2(0x106)](){const _0xaa8eb7=_0x2b35c2;this[_0xaa8eb7(0xf9)][_0xaa8eb7(0x13f)](),this[_0xaa8eb7(0x128)][_0xaa8eb7(0xc4)]=!0x1,this[_0xaa8eb7(0x131)]&&this[_0xaa8eb7(0x131)][_0xaa8eb7(0x103)]();}[_0x2b35c2(0xf3)](){const _0x29b93c=_0x2b35c2;this[_0x29b93c(0xf9)][_0x29b93c(0x12a)](),this[_0x29b93c(0x128)][_0x29b93c(0xc4)]=!0x0;}[_0x2b35c2(0x133)](_0x4091b2){const _0x1aa73a=_0x2b35c2;this[_0x1aa73a(0x127)][_0x1aa73a(0x112)](_0x4091b2),this[_0x1aa73a(0x128)][_0x1aa73a(0xc4)]=!0x0;}[_0x2b35c2(0x109)](_0x4b8e47,_0x27ad9f,_0x43805b,_0x5db4ab){const _0x1aecae=_0x2b35c2;this[_0x1aecae(0x127)][_0x1aecae(0x109)](_0x4b8e47,_0x43805b,_0x5db4ab);}[_0x2b35c2(0xff)](_0x4d3e58){const _0x5da7ef=_0x2b35c2;this[_0x5da7ef(0x127)][_0x5da7ef(0xff)](_0x4d3e58),this[_0x5da7ef(0x128)][_0x5da7ef(0xc4)]=!0x1;}[_0x2b35c2(0x114)](_0x344a2f){const _0x39062b=_0x2b35c2;this[_0x39062b(0x13e)](this[_0x39062b(0x113)],this[_0x39062b(0xb4)],_0x344a2f),this[_0x39062b(0x12b)](_0x344a2f);}[_0x2b35c2(0x12b)](_0x2a7c06){const _0x2c9ce2=_0x2b35c2,_0x4ee95d=!_0x2a7c06[_0x2c9ce2(0xc5)][_0x2c9ce2(0xb2)]&&_0x2a7c06[_0x2c9ce2(0xc5)][_0x2c9ce2(0xba)],_0x234dbb=_0x2a7c06[_0x2c9ce2(0xdd)][_0x2c9ce2(0xba)],_0x91fa81=_0x2a7c06[_0x2c9ce2(0xbe)][_0x2c9ce2(0xba)];this[_0x2c9ce2(0x128)][_0x2c9ce2(0xfb)]=_0x4ee95d||_0x234dbb||_0x91fa81;}[_0x2b35c2(0x123)](){const _0x47c393=_0x2b35c2;this[_0x47c393(0x124)]({'tag':_0x47c393(0x11d),'attributes':{'class':[Bo,_0x47c393(0x115)]},'children':[{'tag':_0x47c393(0x11d),'attributes':{'class':bo},'children':this[_0x47c393(0xf5)]}]});}[_0x2b35c2(0x129)](){const _0x6877c2=_0x2b35c2;this[_0x6877c2(0x128)]['on'](_0x6877c2(0xc0),()=>{const _0x126f64=_0x6877c2;this[_0x126f64(0x12f)]();});}[_0x2b35c2(0x10b)](_0x48c3ba){const _0x2d6d53=_0x2b35c2,_0x133add=new _0x1da79c(_0x48c3ba);return _0x133add[_0x2d6d53(0xc7)]({'label':_0x2b6271(_0x48c3ba,_0x2d6d53(0x100)),'class':Vo+'\x20'+Ao,'icon':_0x3b4d07,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x133add;}[_0x2b35c2(0xfc)](_0x1bbc42){const _0x99e252=_0x2b35c2;return this[_0x99e252(0x118)](_0x1bbc42,To);}[_0x2b35c2(0xc6)](_0x2003b3){const _0xab5a9a=_0x2b35c2,_0x28f2cb=this[_0xab5a9a(0x118)](_0x2003b3,ko);return this[_0xab5a9a(0x11e)](_0x28f2cb,_0x2003b3),_0x28f2cb;}[_0x2b35c2(0xe5)](_0x4d74c8,_0x5bc2fb){const _0x5e1135=_0x2b35c2,_0x32696b={'searchInputVisibleFrom':_0x5bc2fb[_0x5e1135(0xef)],'onBackToContext':()=>{const _0x2c5cb7=_0x5e1135;this[_0x2c5cb7(0x111)](),this[_0x2c5cb7(0x113)][_0x2c5cb7(0x11b)]({'target':this[_0x2c5cb7(0x128)][_0x2c5cb7(0xb9)],'limiter':this[_0x2c5cb7(0x135)](),'positions':So});},'onResourceSelected':(_0x31a4b3,_0x230580)=>{const _0x4437f4=_0x5e1135;this[_0x4437f4(0xc2)](_0x4437f4(0xbf),{'source':_0x31a4b3,'resource':_0x230580});},'onLoadSourceResources':_0x540ad8=>{const _0x26362a=_0x5e1135;this[_0x26362a(0xc2)](_0x26362a(0x136),_0x540ad8);},'onBalloonClosed':()=>{const _0x2a5b3f=_0x5e1135;this[_0x2a5b3f(0x128)][_0x2a5b3f(0xc4)]=!0x1;},'getLimiterElement':()=>this[_0x5e1135(0x135)](),'getTargetElement':()=>this[_0x5e1135(0x128)][_0x5e1135(0xb9)]};return new _0x20f49f(_0x4d74c8,_0x5bc2fb[_0x5e1135(0x105)],_0x32696b);}[_0x2b35c2(0x135)](){const _0x2da917=_0x2b35c2;return this[_0x2da917(0xb9)]?.[_0x2da917(0xd5)]('.'+Ro)||document[_0x2da917(0xf0)];}[_0x2b35c2(0x118)](_0x53a8ff,_0x218a3e){const _0x37308d=_0x2b35c2,_0x379398=new _0x13281e(_0x53a8ff);return _0x379398[_0x37308d(0x116)]({'attributes':{'class':_0x218a3e}}),this[_0x37308d(0x105)][_0x37308d(0xde)](_0x379398),_0x379398;}[_0x2b35c2(0x13e)](_0x575636,_0x1ed7be,_0x8c6b5){const _0xab69bb=_0x2b35c2;if(_0x575636[_0xab69bb(0x138)][_0xab69bb(0x103)](),!_0x8c6b5[_0xab69bb(0xc5)][_0xab69bb(0xb2)]&&_0x8c6b5[_0xab69bb(0xc5)][_0xab69bb(0xba)]){const _0x4d63c2=this[_0xab69bb(0xcc)](_0x1ed7be,{'label':_0x2b6271(_0x1ed7be,_0xab69bb(0xcf)),'icon':_0x1b755e});_0x4d63c2['on'](_0xab69bb(0xc0),()=>{const _0x131319=_0xab69bb;this[_0x131319(0xc2)](_0x131319(0xbd)),this[_0x131319(0x140)]();}),_0x575636[_0xab69bb(0x138)][_0xab69bb(0xde)](_0x4d63c2);}if(_0x8c6b5[_0xab69bb(0xdd)][_0xab69bb(0xba)]){const _0x418b70=this[_0xab69bb(0xcc)](_0x1ed7be,{'label':_0x2b6271(_0x1ed7be,_0xab69bb(0x134)),'icon':_0x150029});_0x418b70['on'](_0xab69bb(0xc0),()=>{const _0xb549f4=_0xab69bb;this[_0xb549f4(0x140)](),this[_0xb549f4(0xf3)](),this[_0xb549f4(0xf9)][_0xb549f4(0x11b)]({'target':this[_0xb549f4(0x128)][_0xb549f4(0xb9)],'limiter':this[_0xb549f4(0x135)](),'positions':So}),this[_0xb549f4(0x131)][_0xb549f4(0xf2)]();}),_0x575636[_0xab69bb(0x138)][_0xab69bb(0xde)](_0x418b70);}if(_0x8c6b5[_0xab69bb(0xbe)][_0xab69bb(0xba)]){const _0x558605=new _0x43fc2d(_0x1ed7be);_0x558605[_0xab69bb(0xc7)]({'label':_0x2b6271(_0x1ed7be,_0xab69bb(0xb3)),'icon':_0x1db9f9,'withText':!0x0,'tooltip':!0x0,'class':Eo,'allowMultipleFiles':!0x0}),_0x558605['on'](_0xab69bb(0x13c),(_0x299e94,_0x4b809b)=>{const _0x396e11=_0xab69bb;this[_0x396e11(0xc2)](_0x396e11(0x121),_0x4b809b),this[_0x396e11(0x140)]();}),_0x558605[_0xab69bb(0xd3)]=!0x0,_0x575636[_0xab69bb(0x138)][_0xab69bb(0xde)](_0x558605);}for(const _0x5ab062 of _0x8c6b5[_0xab69bb(0xf4)]){const _0x2aee57=this[_0xab69bb(0xcc)](_0x1ed7be,{'label':_0x5ab062[_0xab69bb(0xeb)],'icon':_0x5ab062[_0xab69bb(0xbb)]||_0x42627d,'type':_0xab69bb(0x13b)});_0x575636[_0xab69bb(0x138)][_0xab69bb(0xde)](_0x2aee57),_0x2aee57['on'](_0xab69bb(0xc0),()=>{const _0xa021d0=_0xab69bb;this[_0xa021d0(0x140)](),this[_0xa021d0(0x133)](_0x5ab062);});}}[_0x2b35c2(0x11e)](_0xd2378a,_0x1597c9){const _0x331af3=_0x2b35c2;this[_0x331af3(0x131)]=new _0x559616(_0x1597c9),this[_0x331af3(0x131)]['on'](_0x331af3(0xc8),(_0x5cfb53,_0x21dcd2)=>{const _0x565959=_0x331af3;this[_0x565959(0xee)](_0x21dcd2);}),this[_0x331af3(0x131)]['on'](_0x331af3(0x12c),()=>{const _0x19e956=_0x331af3;this[_0x19e956(0x106)](),this[_0x19e956(0x111)](),this[_0x19e956(0x113)][_0x19e956(0x11b)]({'target':this[_0x19e956(0x128)][_0x19e956(0xb9)],'limiter':this[_0x19e956(0x135)](),'positions':So});}),this[_0x331af3(0x131)]['on'](_0x331af3(0x104),()=>{const _0x2775ab=_0x331af3;this[_0x2775ab(0xf9)][_0x2775ab(0x10f)]&&this[_0x2775ab(0xf9)][_0x2775ab(0x11b)]({'target':this[_0x2775ab(0x128)][_0x2775ab(0xb9)],'limiter':this[_0x2775ab(0x135)](),'positions':So});}),_0xd2378a[_0x331af3(0x138)][_0x331af3(0xde)](this[_0x331af3(0x131)]);}[_0x2b35c2(0xcc)](_0x5167b3,_0x4423cd){const _0x3954b2=_0x2b35c2,_0x46d02b=_0x3954b2(0x13b)===_0x4423cd[_0x3954b2(0xf7)]?new SourcesBalloonButtonView(_0x5167b3):new _0x1da79c(_0x5167b3);return _0x46d02b[_0x3954b2(0xc7)]({'label':_0x4423cd[_0x3954b2(0xeb)],'icon':_0x4423cd[_0x3954b2(0xbb)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Eo}),_0x46d02b;}[_0x2b35c2(0xfd)](){const _0x1d6d8a=_0x2b35c2;this[_0x1d6d8a(0xd2)](),this[_0x1d6d8a(0xed)]();}[_0x2b35c2(0xed)](){const _0x1bab5a=_0x2b35c2;_0x1c6530({'emitter':this[_0x1bab5a(0xf9)],'contextElements':[this[_0x1bab5a(0xf9)][_0x1bab5a(0xb9)]],'callback':()=>{const _0xd53df2=_0x1bab5a;this[_0xd53df2(0x106)]();},'activator':()=>this[_0x1bab5a(0xf9)][_0x1bab5a(0x10f)]});}[_0x2b35c2(0xe3)](_0x38282f){const _0x2d3625=_0x2b35c2,_0x36c978=this[_0x2d3625(0x119)];_0x36c978[_0x2d3625(0x141)][_0x2d3625(0xc4)]=_0x38282f,_0x38282f?_0x36c978[_0x2d3625(0xd7)][_0x2d3625(0x12a)]():_0x36c978[_0x2d3625(0xd7)][_0x2d3625(0x13f)]();}[_0x2b35c2(0xd2)](){const _0x2ea125=_0x2b35c2,{balloonView:_0x11af49,buttonView:_0x3936b6,hideMethod:_0x25bbcd}=this[_0x2ea125(0x119)];_0x1c6530({'emitter':_0x11af49,'contextElements':[_0x11af49[_0x2ea125(0xb9)],_0x3936b6[_0x2ea125(0xb9)]],'callback':()=>{_0x25bbcd();},'activator':()=>_0x3936b6[_0x2ea125(0xc4)]&&!this[_0x2ea125(0xf9)][_0x2ea125(0x10f)]&&!this[_0x2ea125(0x127)][_0x2ea125(0xe0)]()});}[_0x2b35c2(0x132)](_0x2a1d06,_0x14f59e,_0x10c7cf=!0x1,_0x309937=!0x1){const _0x8e106=_0x2b35c2,_0x5cb143=_0x8e106(0x102)===_0x14f59e||!0x0===_0x2a1d06[_0x8e106(0x120)],_0x9f2157=new _0xf28186(this[_0x8e106(0xb4)],_0x2a1d06,_0x5cb143,_0x10c7cf,_0x309937);return _0x5cb143||_0x9f2157['on'](_0x8e106(0x108),()=>{const _0x51a9fd=_0x8e106;this[_0x51a9fd(0xc2)](_0x51a9fd(0xe2),_0x9f2157['id']);}),_0x9f2157;}[_0x2b35c2(0xb0)](_0x52bed4,_0xf1b7d4){const _0x162f5e=_0x2b35c2;_0xf1b7d4[_0x162f5e(0xde)](_0x52bed4,0x0);}[_0x2b35c2(0xce)](_0xa0f89f,_0x421bfb){const _0xfa319b=_0x2b35c2,_0x5c6262=_0x421bfb[_0xfa319b(0x117)](_0x5bdcfb=>_0x5bdcfb['id']===_0xa0f89f);_0x5c6262&&_0x421bfb[_0xfa319b(0xdc)](_0x5c6262);}[_0x2b35c2(0x12f)](){const _0x4ab756=_0x2b35c2;this[_0x4ab756(0x128)][_0x4ab756(0xc4)]?this[_0x4ab756(0x140)]():(this[_0x4ab756(0x111)](),this[_0x4ab756(0x113)][_0x4ab756(0x11b)]({'target':this[_0x4ab756(0x128)][_0x4ab756(0xb9)],'limiter':this[_0x4ab756(0x135)](),'positions':So}));}[_0x2b35c2(0xee)](_0x2722e1){const _0x47385a=_0x2b35c2;this[_0x47385a(0x131)][_0x47385a(0x103)](),this[_0x47385a(0x106)](),this[_0x47385a(0xc2)](_0x47385a(0x13a),_0x2722e1);}}export class SourcesBalloonButtonView extends _0x1da79c{[_0x2b35c2(0xca)];constructor(_0x2a5f09){const _0x38549a=_0x2b35c2;super(_0x2a5f09),this[_0x38549a(0xc7)]({'withText':!0x0,'role':_0x38549a(0xe9)}),this[_0x38549a(0xca)]=this[_0x38549a(0x10c)](),this[_0x38549a(0x116)]({'attributes':{'class':[vo]}});}[_0x2b35c2(0xcb)](){const _0x4f807c=_0x2b35c2;super[_0x4f807c(0xcb)](),this[_0x4f807c(0x11f)][_0x4f807c(0xde)](this[_0x4f807c(0xca)]);}[_0x2b35c2(0x10c)](){const _0x39be9e=_0x2b35c2,_0x50d7b0=new _0x2d4303();return _0x50d7b0[_0x39be9e(0x138)]=_0x1e5ab0,_0x50d7b0[_0x39be9e(0x116)]({'attributes':{'class':vo+_0x39be9e(0xd9)}}),_0x50d7b0;}}function _0x4c39(){const _0x5cdb25=['refreshBalloon','bodyCollection','hideUrlBalloonPanel','addContextItem','removeContextItemChip','populateSourceResourceBalloon','clearCurrentContextItems','_createAddContextButtonView','_createArrowView','reorganizeChips','95nddgbM','isVisible','59646AHcPrB','showAddContextBalloonPanel','showSourceResourcesBalloon','_addContextBalloonPanelView','setAddContextOptions','ck-reset_all-excluded','extendTemplate','find','_createBaseBalloonPanel','_addContextBalloonConfig','ck-ai-chat-controls-button','pin','southArrowNorthWest','div','_addUrlContent','children','isReadOnly','addFileToContext','defaultPositions','_setupTemplate','setTemplate','destroy','southArrowNorth','_resourcesBalloonView','addContextButtonView','_bindEventHandlers','show','_setAddContextButtonEnabled','cancel','52188ZZXcvM','ck-ai-chat-context-controls__balloon-button','_handleAddContextButtonClick','ck-ai-chat-context-controls__add-context-button','_urlInputView','_createContextButton','_showSourceResourcesBalloon','AI_CHAT_CONTEXT_URL_LABEL','_getLimiterElement','loadSourceResources','southArrowNorthEast','content','ck-ai-chat-context-controls__show-more-balloon-panel','addUrlToContext','source','done','current','_setBalloonPanelContent','hide','hideAddContextBalloonPanel','buttonView','_addContextToCollection','ck-ai-chat-context-chips-wrapper-balloon','isHidden','AI_CHAT_CONTEXT_FILE_LABEL','locale','setContextItemLoading','266xyUAfW','setContainerElement','136RbhzKa','element','enabled','icon','isLoading','addDocumentToContext','files','addResourceToContext','execute','17652rjdvxd','fire','updateResourceState','isOn','document','_createUrlBalloonPanelView','set','submitUrl','_conversationContextsChips','arrowView','render','_createBalloonButton','setConversationContext','_removeContextFromCollection','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-context-controls__balloon-button-source','_setupAddContextBalloonClickOutsideHandler','tooltip','bind','closest','createCollection','balloonView','ck-ai-chat','__arrow','6033LbbKyG','144LWDLmv','remove','urls','add','_overflowManager','isAnyResourceBalloonVisible','ck-ai-chat-context-controls','removeContextItem','_toggleAddContextBalloon','ck-ai-chat-context-controls__url-balloon-panel','_createResourcesBalloonView','northArrowSouthEast','341yMpaLH','21832mFgcVZ','menuitem','ck-ai-chat-context-controls__add-context-balloon-panel','label','ck-ai-chat-controls_context_show-more-button','_setupUrlBalloonClickOutsideHandler','_handleUrlSubmit','searchInputVisibleFrom','body','52580BAZeFt','focus','showUrlBalloonPanel','sources','_currentContextsChips','northArrowSouthWest','type','96196DLwmnM','_urlBalloonPanelView','northArrowSouth','isEnabled','_createAddContextBalloonPanelView','_setupAllBalloonClickOutsideHandlers','clearConversationContextItems','closeSourceResourceBalloon','AI_CHAT_CONTEXT_ADD_CONTEXT','overflowChips','conversation','clear'];_0x4c39=function(){return _0x5cdb25;};return _0x4c39();}