@ckeditor/ckeditor5-ai 47.1.0-alpha.2 → 47.1.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 (114) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +4 -4
  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/awstextadapter.js +1 -1
  8. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  9. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  10. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  11. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  12. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  13. package/src/aiassistant/ui/form/aiformview.js +1 -1
  14. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  15. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  16. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  17. package/src/aiballoon/aiballoon.js +1 -1
  18. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  19. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  20. package/src/aiballoon/ui/aiballoonview.js +1 -1
  21. package/src/aichat/aichat.js +1 -1
  22. package/src/aichat/aichatcontroller.js +1 -1
  23. package/src/aichat/aichatui.js +1 -1
  24. package/src/aichat/model/aichatcontext.js +1 -1
  25. package/src/aichat/model/aichatconversation.js +1 -1
  26. package/src/aichat/model/aichatinteraction.js +1 -1
  27. package/src/aichat/model/aichatmodels.js +1 -1
  28. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  29. package/src/aichat/ui/aichatfeedview.js +1 -1
  30. package/src/aichat/ui/aichatheaderview.js +1 -1
  31. package/src/aichat/ui/aichatview.js +1 -1
  32. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  33. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  34. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  35. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  36. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  37. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  38. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  39. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  40. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  41. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  42. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  43. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  44. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  45. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  46. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  47. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  48. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  49. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  53. package/src/aichat/utils/eventnames.js +1 -1
  54. package/src/aichat/utils/promisequeue.js +1 -1
  55. package/src/aichathistory/aichathistory.js +1 -1
  56. package/src/aichathistory/aichathistorycontroller.js +1 -1
  57. package/src/aichathistory/aichathistoryui.js +1 -1
  58. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  59. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  60. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  61. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  62. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  63. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  64. package/src/aicore/aiconnector.js +1 -1
  65. package/src/aicore/aiediting.js +1 -1
  66. package/src/aicore/model/aicapabilities.js +1 -1
  67. package/src/aicore/model/aiinteraction.js +1 -1
  68. package/src/aicore/model/aireply.js +1 -1
  69. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  70. package/src/aicore/pipeline/airesponseparser.js +2 -2
  71. package/src/aicore/ui/aidisclaimerview.js +1 -1
  72. package/src/aicore/ui/aiskeleton.js +1 -1
  73. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  74. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  75. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  76. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  77. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  78. package/src/aicore/utils/createresizebutton.js +1 -1
  79. package/src/aicore/utils/documentposition.js +1 -1
  80. package/src/aicore/utils/documentrange.js +1 -1
  81. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  82. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  83. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  84. package/src/aicore/utils/htmlparser.js +1 -1
  85. package/src/aicore/utils/htmlstreamer.js +1 -1
  86. package/src/aieditorintegration/aieditorintegration.js +1 -1
  87. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  88. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  89. package/src/aiquickactions/aiquickactions.js +1 -1
  90. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  91. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  92. package/src/aiquickactions/aiquickactionsui.js +1 -1
  93. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  94. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  95. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  96. package/src/aireviewmode/aireviewmode.js +1 -1
  97. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  98. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  99. package/src/aireviewmode/aireviewmodeui.js +1 -1
  100. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  101. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  102. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  103. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  104. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  105. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  106. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  107. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  108. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  109. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  110. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  111. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  112. package/src/aitabs/aitabs.js +1 -1
  113. package/src/aitabs/tabs/aitabsview.js +1 -1
  114. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13e4ce=_0xf6a2;(function(_0x54e5fa,_0xbaf8e5){const _0x3d9e61=_0xf6a2,_0x1fc5e4=_0x54e5fa();while(!![]){try{const _0x36e926=parseInt(_0x3d9e61(0x1c8))/0x1*(parseInt(_0x3d9e61(0x201))/0x2)+parseInt(_0x3d9e61(0x1ed))/0x3+parseInt(_0x3d9e61(0x200))/0x4*(-parseInt(_0x3d9e61(0x1eb))/0x5)+-parseInt(_0x3d9e61(0x1f5))/0x6*(-parseInt(_0x3d9e61(0x1e4))/0x7)+-parseInt(_0x3d9e61(0x1c9))/0x8*(parseInt(_0x3d9e61(0x1fc))/0x9)+parseInt(_0x3d9e61(0x1be))/0xa*(-parseInt(_0x3d9e61(0x1f1))/0xb)+parseInt(_0x3d9e61(0x1ee))/0xc;if(_0x36e926===_0xbaf8e5)break;else _0x1fc5e4['push'](_0x1fc5e4['shift']());}catch(_0x487ef9){_0x1fc5e4['push'](_0x1fc5e4['shift']());}}}(_0x4586,0x5fcc2));import{ButtonView as _0x1f7b0d,clickOutsideHandler as _0x1a468a,View as _0x4e2dd4}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x227f5d}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0xcc67eb}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x24906e,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x1692c8}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x2d0189}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x301cb6}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x4e2dd4{[_0x13e4ce(0x20a)]=[];[_0x13e4ce(0x1c0)];[_0x13e4ce(0x1e5)];[_0x13e4ce(0x1db)];[_0x13e4ce(0x1c6)];[_0x13e4ce(0x1c7)];[_0x13e4ce(0x1e1)];constructor(_0x32563d,_0x59da62){const _0x4c3b07=_0x13e4ce;super(_0x32563d),this[_0x4c3b07(0x1c0)]=this[_0x4c3b07(0x1ca)](_0x32563d,_0x59da62),this[_0x4c3b07(0x1e5)]=this[_0x4c3b07(0x1cf)](_0x32563d),this[_0x4c3b07(0x1db)]=this[_0x4c3b07(0x1f6)](_0x32563d),this[_0x4c3b07(0x1c6)]=this[_0x4c3b07(0x206)](_0x32563d),this[_0x4c3b07(0x1c7)]=this[_0x4c3b07(0x1d9)](_0x32563d),this[_0x4c3b07(0x1e1)]=!0x1,this[_0x4c3b07(0x1e5)][_0x4c3b07(0x1fe)](_0x4c3b07(0x1f7))['to'](this),this[_0x4c3b07(0x1c6)][_0x4c3b07(0x1fe)](_0x4c3b07(0x1fb))['to'](this),this[_0x4c3b07(0x1db)][_0x4c3b07(0x1fe)](_0x4c3b07(0x1c1))['to'](this),this[_0x4c3b07(0x1db)][_0x4c3b07(0x1fe)](_0x4c3b07(0x209))['to'](this),this[_0x4c3b07(0x1db)][_0x4c3b07(0x1fe)](_0x4c3b07(0x1ef))['to'](this),this[_0x4c3b07(0x1c0)][_0x4c3b07(0x1fe)](..._0x1692c8)['to'](this),this[_0x4c3b07(0x1fd)](_0x4c3b07(0x1cb),!0x0),this[_0x4c3b07(0x1fd)](_0x4c3b07(0x1d7),!0x1);const _0x3408eb=this[_0x4c3b07(0x1ce)];this[_0x4c3b07(0x207)]({'tag':_0x4c3b07(0x204),'attributes':{'class':['ck',_0x4c3b07(0x1c4),_0x3408eb['if'](_0x4c3b07(0x1d7),_0x4c3b07(0x20d))]},'children':[{'tag':_0x4c3b07(0x1ec),'attributes':{'class':[_0x3408eb['if'](_0x4c3b07(0x1e3),_0x4c3b07(0x20c),_0x3863cc=>_0x3863cc||!this[_0x4c3b07(0x1cb)]),_0x3408eb['if'](_0x4c3b07(0x1cb),_0x4c3b07(0x20c),_0x53c33e=>!_0x53c33e||this[_0x4c3b07(0x1e3)])]},'children':[this[_0x4c3b07(0x1c0)],this[_0x4c3b07(0x1e5)],this[_0x4c3b07(0x1db)]]},{'tag':_0x4c3b07(0x1ec),'attributes':{'class':[_0x3408eb['if'](_0x4c3b07(0x1e3),_0x4c3b07(0x20c),_0x40e4b=>!_0x40e4b)]},'children':[this[_0x4c3b07(0x1c6)]]},{'tag':_0x4c3b07(0x1ec),'attributes':{'class':[_0x3408eb['if'](_0x4c3b07(0x1cb),_0x4c3b07(0x20c),_0x167f7f=>_0x167f7f)]},'children':[this[_0x4c3b07(0x1c7)]]}]}),_0x1a468a({'emitter':this[_0x4c3b07(0x1e5)],'activator':()=>this[_0x4c3b07(0x1e3)],'contextElements':()=>[this[_0x4c3b07(0x1da)]],'callback':()=>{const _0x3f8fd7=_0x4c3b07;this[_0x3f8fd7(0x1e1)]=!0x1;}}),this['on'](_0x4c3b07(0x1f2),this[_0x4c3b07(0x20e)],{'priority':_0x4c3b07(0x1e7)});}[_0x13e4ce(0x1ca)](_0x96772b,_0x40db78){return new _0x24906e(_0x96772b,_0x40db78);}[_0x13e4ce(0x1cf)](_0x587616){const _0x476bf9=_0x13e4ce;return new _0x227f5d(_0x587616,this[_0x476bf9(0x1c0)][_0x476bf9(0x1e0)]);}[_0x13e4ce(0x1f6)](_0x48d855){return new _0xcc67eb(_0x48d855);}[_0x13e4ce(0x206)](_0x182025){return new _0x2d0189(_0x182025);}[_0x13e4ce(0x1d9)](_0x8d69e2){const _0x6e8abb=_0x13e4ce,_0x3b615e=new _s(_0x8d69e2);return _0x3b615e[_0x6e8abb(0x1fe)](_0x6e8abb(0x1fa))['to'](this),_0x3b615e;}[_0x13e4ce(0x20e)](_0x1ec44b,_0x6b34d5,_0x125eba){const _0x9fcf6b=_0x13e4ce;_0x125eba?this[_0x9fcf6b(0x1e1)]=!0x0:this[_0x9fcf6b(0x1e1)]&&this[_0x9fcf6b(0x1e5)][_0x9fcf6b(0x1d4)]();}[_0x13e4ce(0x1d6)](_0x6f0729,_0x42c723){const _0x41575d=_0x13e4ce;this[_0x41575d(0x1c0)][_0x41575d(0x1d6)](_0x6f0729,_0x42c723);}[_0x13e4ce(0x20b)](_0x4de369){const _0x1ba2f9=_0x13e4ce;this[_0x1ba2f9(0x1c0)][_0x1ba2f9(0x20b)](_0x4de369);}[_0x13e4ce(0x1cc)](_0x114dfe,_0x5610ce){const _0x3ed468=_0x13e4ce;this[_0x3ed468(0x1c0)][_0x3ed468(0x1cc)](_0x114dfe,_0x5610ce);}[_0x13e4ce(0x1de)](_0x5860a6){const _0xc762d0=_0x13e4ce;this[_0xc762d0(0x1e5)][_0xc762d0(0x1de)](_0x5860a6);}[_0x13e4ce(0x1d3)](_0x19cdf5){const _0x30297a=_0x13e4ce;this[_0x30297a(0x1c0)][_0x30297a(0x1d3)](_0x19cdf5);}[_0x13e4ce(0x1e2)](){const _0x299690=_0x13e4ce;this[_0x299690(0x1c0)][_0x299690(0x1cd)]();}[_0x13e4ce(0x1f4)](){const _0x2d5f53=_0x13e4ce;this[_0x2d5f53(0x1c0)][_0x2d5f53(0x1dc)]();}[_0x13e4ce(0x1c5)](_0x2aa5e6,_0x18c12b,_0x240e16){const _0x56876a=_0x13e4ce;this[_0x56876a(0x1c0)][_0x56876a(0x1c5)](_0x2aa5e6,_0x18c12b,_0x240e16);}[_0x13e4ce(0x1d5)](_0x4240c8){const _0x2c89d4=_0x13e4ce;this[_0x2c89d4(0x1db)][_0x2c89d4(0x1d5)](_0x4240c8);}[_0x13e4ce(0x1d2)](_0x257148){const _0xfa9484=_0x13e4ce;this[_0xfa9484(0x1db)][_0xfa9484(0x1d2)](_0x257148);}[_0x13e4ce(0x1ea)](){const _0x35b6b8=_0x13e4ce;this[_0x35b6b8(0x1e5)][_0x35b6b8(0x1c2)]();}[_0x13e4ce(0x208)](_0x41dd70){const _0x14408c=_0x13e4ce;this[_0x14408c(0x1c0)][_0x14408c(0x208)](_0x41dd70);}[_0x13e4ce(0x1d0)](_0x4cb032){const _0x5ea62b=_0x13e4ce;this[_0x5ea62b(0x1e5)][_0x5ea62b(0x1d1)](_0x4cb032);}[_0x13e4ce(0x1dd)](_0x13ed4c,_0x7be288){const _0x152e65=_0x13e4ce;this[_0x152e65(0x20a)]=_0x13ed4c,this[_0x152e65(0x1db)][_0x152e65(0x1dd)](_0x13ed4c,_0x7be288);}[_0x13e4ce(0x1df)](_0x38c762){const _0x118a62=_0x13e4ce;(_0x38c762?this[_0x118a62(0x20a)][_0x118a62(0x1d8)](_0x53e8c5=>_0x53e8c5['id']===_0x38c762['id']):null)?(this[_0x118a62(0x1cb)]=!0x0,this[_0x118a62(0x1db)][_0x118a62(0x1df)](_0x38c762)):_0x38c762?.['id'][_0x118a62(0x1f0)](_0x118a62(0x1e8))?(this[_0x118a62(0x1cb)]=!0x0,this[_0x118a62(0x1db)][_0x118a62(0x1df)](this[_0x118a62(0x20a)][0x0])):this[_0x118a62(0x1cb)]=!0x1;}[_0x13e4ce(0x1ff)](){const _0x536c44=_0x13e4ce;this[_0x536c44(0x1db)][_0x536c44(0x1ff)]();}[_0x13e4ce(0x1f3)](_0x11c3de){const _0x16c1dd=_0x13e4ce;this[_0x16c1dd(0x1db)][_0x16c1dd(0x1f3)](_0x11c3de);}[_0x13e4ce(0x1c3)](_0x2bc7ef,_0x2c9fe3,_0x31eb27,_0x1d04ec){const _0x1af578=_0x13e4ce;this[_0x1af578(0x1c0)][_0x1af578(0x1c3)](_0x2bc7ef,_0x2c9fe3,_0x31eb27,_0x1d04ec);}[_0x13e4ce(0x205)](_0x2f863f){const _0x4df2a0=_0x13e4ce;this[_0x4df2a0(0x1c0)][_0x4df2a0(0x205)](_0x2f863f);}[_0x13e4ce(0x1e9)](){const _0x56df81=_0x13e4ce;this[_0x56df81(0x1e5)][_0x56df81(0x1d4)]();}}function _0x4586(){const _0x28c0cc=['10gvlqGL','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','_contextPanelView','toggleWebSearch','reset','populateSourceResourceBalloon','ck-ai-chat-controls','updateResourceState','_loaderView','_modelUnavailableMessageView','2rFTesJ','1591472kUevDy','_createContextPanelView','isModelAvailable','setContextItemLoading','clearCurrentContextItems','bindTemplate','_createPromptInputView','setInputPlaceholder','setPlaceholderText','setReasoning','setConversationContext','focus','setWebSearch','addContextItem','isDisabled','find','_createModelUnavailableMessageView','element','_promptCapabilitiesView','clearConversationContextItems','setModelList','setIsUploadInProgress','setModel','addContextButtonView','_shouldRestorePromptInputFocus','clearPendingContextUI','isLoading','14XMyJZc','_promptInputView','ck-ai-chat-controls__start-new-chat-button','low','agent','focusPromptInput','resetMessageInput','133295QDVZXn','div','1052199HUJKce','5704752vFIYhj','selectModel','startsWith','2324267lCFqFj','change:isLoading','disableModelSelector','clearConversationContextUI','56640LbiYXc','_createPromptCapabilitiesView','sendUserMessage','ck-ai-chat-controls-model-unavailable-message','execute','startConversation','abortPromptStream','9yBloNW','set','delegate','enableModelSelector','24sowJTc','117562kOZabt','locale','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','form','closeSourceResourceBalloon','_createLoaderView','setTemplate','setAddContextOptions','toggleReasoning','_displayedModels','removeContextItem','ck-hidden','ck-ai-chat-controls-disabled','_handlePromptInputFocus'];_0x4586=function(){return _0x28c0cc;};return _0x4586();}function _0xf6a2(_0x286266,_0x4c1d75){const _0x458633=_0x4586();return _0xf6a2=function(_0xf6a269,_0x1b5244){_0xf6a269=_0xf6a269-0x1be;let _0x29ecb0=_0x458633[_0xf6a269];return _0x29ecb0;},_0xf6a2(_0x286266,_0x4c1d75);}class _s extends _0x4e2dd4{constructor(_0x557591){const _0x1b3594=_0x13e4ce;super(_0x557591);const _0x505af8=new _0x1f7b0d(_0x557591);_0x505af8[_0x1b3594(0x1fd)]({'label':_0x301cb6(this[_0x1b3594(0x202)],_0x1b3594(0x1bf)),'withText':!0x0,'class':[_0x1b3594(0x1e6)],'tooltip':''}),_0x505af8[_0x1b3594(0x1fe)](_0x1b3594(0x1f9))['to'](this,_0x1b3594(0x1fa)),this[_0x1b3594(0x207)]({'tag':_0x1b3594(0x1ec),'attributes':{'class':['ck',_0x1b3594(0x1f8)]},'children':[{'tag':'p','children':[{'text':_0x301cb6(this[_0x1b3594(0x202)],_0x1b3594(0x203))+'\x20'},_0x505af8]}]});}}
23
+ const _0x581676=_0x54d7;(function(_0x34a722,_0x57368f){const _0x546cad=_0x54d7,_0x5e8720=_0x34a722();while(!![]){try{const _0x539bcf=-parseInt(_0x546cad(0x171))/0x1+-parseInt(_0x546cad(0x191))/0x2+-parseInt(_0x546cad(0x1a6))/0x3+-parseInt(_0x546cad(0x1a4))/0x4+parseInt(_0x546cad(0x189))/0x5+-parseInt(_0x546cad(0x193))/0x6+-parseInt(_0x546cad(0x1ab))/0x7*(-parseInt(_0x546cad(0x177))/0x8);if(_0x539bcf===_0x57368f)break;else _0x5e8720['push'](_0x5e8720['shift']());}catch(_0x50454b){_0x5e8720['push'](_0x5e8720['shift']());}}}(_0x1afd,0x5747d));import{ButtonView as _0x5f46a8,clickOutsideHandler as _0x443ba4,View as _0x154584}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x5bca46}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x483dc3}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x4ffb97,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x5d4fba}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x2048d3}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x1c617f}from'../../aicore/utils/common-translations.js';function _0x1afd(){const _0x23595d=['setReasoning','_createPromptCapabilitiesView','_promptCapabilitiesView','startConversation','405986wjETuQ','_shouldRestorePromptInputFocus','4146024qEOsrU','isDisabled','reset','clearConversationContextUI','locale','setWebSearch','bindTemplate','setTemplate','ck-ai-chat-controls','_createPromptInputView','addContextItem','populateSourceResourceBalloon','resetMessageInput','div','removeContextItem','execute','clearConversationContextItems','31560yLZUVp','disableModelSelector','761637jWYLkt','setContextItemLoading','ck-hidden','abortPromptStream','toggleReasoning','14MAWryu','setConversationContext','change:isLoading','agent','_displayedModels','ck-ai-chat-controls-model-unavailable-message','sendUserMessage','addContextButtonView','find','ck-ai-chat-controls-disabled','enableModelSelector','selectModel','toggleWebSearch','isLoading','form','focus','setModel','_loaderView','clearPendingContextUI','682603oPIMLP','focusPromptInput','ck-ai-chat-controls__start-new-chat-button','updateResourceState','element','closeSourceResourceBalloon','6264032YZxDmT','_handlePromptInputFocus','_contextPanelView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setPlaceholderText','clearCurrentContextItems','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','_createModelUnavailableMessageView','setAddContextOptions','set','_promptInputView','_createContextPanelView','isModelAvailable','delegate','startsWith','_modelUnavailableMessageView','setModelList','setInputPlaceholder','3149310XpbSSC','setIsUploadInProgress','low','_createLoaderView'];_0x1afd=function(){return _0x23595d;};return _0x1afd();}function _0x54d7(_0x540220,_0x113775){const _0x1afdce=_0x1afd();return _0x54d7=function(_0x54d7e0,_0x25221f){_0x54d7e0=_0x54d7e0-0x161;let _0x3beedf=_0x1afdce[_0x54d7e0];return _0x3beedf;},_0x54d7(_0x540220,_0x113775);}export class AIChatControlsView extends _0x154584{[_0x581676(0x162)]=[];[_0x581676(0x179)];[_0x581676(0x181)];[_0x581676(0x18f)];[_0x581676(0x16f)];[_0x581676(0x186)];[_0x581676(0x192)];constructor(_0x3301fa,_0x315bf4){const _0x4f1d15=_0x581676;super(_0x3301fa),this[_0x4f1d15(0x179)]=this[_0x4f1d15(0x182)](_0x3301fa,_0x315bf4),this[_0x4f1d15(0x181)]=this[_0x4f1d15(0x19c)](_0x3301fa),this[_0x4f1d15(0x18f)]=this[_0x4f1d15(0x18e)](_0x3301fa),this[_0x4f1d15(0x16f)]=this[_0x4f1d15(0x18c)](_0x3301fa),this[_0x4f1d15(0x186)]=this[_0x4f1d15(0x17e)](_0x3301fa),this[_0x4f1d15(0x192)]=!0x1,this[_0x4f1d15(0x181)][_0x4f1d15(0x184)](_0x4f1d15(0x164))['to'](this),this[_0x4f1d15(0x16f)][_0x4f1d15(0x184)](_0x4f1d15(0x1a9))['to'](this),this[_0x4f1d15(0x18f)][_0x4f1d15(0x184)](_0x4f1d15(0x16a))['to'](this),this[_0x4f1d15(0x18f)][_0x4f1d15(0x184)](_0x4f1d15(0x1aa))['to'](this),this[_0x4f1d15(0x18f)][_0x4f1d15(0x184)](_0x4f1d15(0x169))['to'](this),this[_0x4f1d15(0x179)][_0x4f1d15(0x184)](..._0x5d4fba)['to'](this),this[_0x4f1d15(0x180)](_0x4f1d15(0x183),!0x0),this[_0x4f1d15(0x180)](_0x4f1d15(0x194),!0x1);const _0x39fd48=this[_0x4f1d15(0x199)];this[_0x4f1d15(0x19a)]({'tag':_0x4f1d15(0x16c),'attributes':{'class':['ck',_0x4f1d15(0x19b),_0x39fd48['if'](_0x4f1d15(0x194),_0x4f1d15(0x167))]},'children':[{'tag':_0x4f1d15(0x1a0),'attributes':{'class':[_0x39fd48['if'](_0x4f1d15(0x16b),_0x4f1d15(0x1a8),_0x26c700=>_0x26c700||!this[_0x4f1d15(0x183)]),_0x39fd48['if'](_0x4f1d15(0x183),_0x4f1d15(0x1a8),_0x42145e=>!_0x42145e||this[_0x4f1d15(0x16b)])]},'children':[this[_0x4f1d15(0x179)],this[_0x4f1d15(0x181)],this[_0x4f1d15(0x18f)]]},{'tag':_0x4f1d15(0x1a0),'attributes':{'class':[_0x39fd48['if'](_0x4f1d15(0x16b),_0x4f1d15(0x1a8),_0x15396a=>!_0x15396a)]},'children':[this[_0x4f1d15(0x16f)]]},{'tag':_0x4f1d15(0x1a0),'attributes':{'class':[_0x39fd48['if'](_0x4f1d15(0x183),_0x4f1d15(0x1a8),_0x4f4e27=>_0x4f4e27)]},'children':[this[_0x4f1d15(0x186)]]}]}),_0x443ba4({'emitter':this[_0x4f1d15(0x181)],'activator':()=>this[_0x4f1d15(0x16b)],'contextElements':()=>[this[_0x4f1d15(0x175)]],'callback':()=>{const _0x5402c6=_0x4f1d15;this[_0x5402c6(0x192)]=!0x1;}}),this['on'](_0x4f1d15(0x1ad),this[_0x4f1d15(0x178)],{'priority':_0x4f1d15(0x18b)});}[_0x581676(0x182)](_0x4da515,_0x3dbde9){return new _0x4ffb97(_0x4da515,_0x3dbde9);}[_0x581676(0x19c)](_0x533b84){const _0x5c946f=_0x581676;return new _0x5bca46(_0x533b84,this[_0x5c946f(0x179)][_0x5c946f(0x165)]);}[_0x581676(0x18e)](_0x1cbd18){return new _0x483dc3(_0x1cbd18);}[_0x581676(0x18c)](_0x337b2d){return new _0x2048d3(_0x337b2d);}[_0x581676(0x17e)](_0x5298e9){const _0x227a3d=_0x581676,_0x260dca=new _s(_0x5298e9);return _0x260dca[_0x227a3d(0x184)](_0x227a3d(0x190))['to'](this),_0x260dca;}[_0x581676(0x178)](_0x529e7f,_0x5377d9,_0x2e00ca){const _0x2afcde=_0x581676;_0x2e00ca?this[_0x2afcde(0x192)]=!0x0:this[_0x2afcde(0x192)]&&this[_0x2afcde(0x181)][_0x2afcde(0x16d)]();}[_0x581676(0x19d)](_0xc2753b,_0x2fe5a8){const _0x301814=_0x581676;this[_0x301814(0x179)][_0x301814(0x19d)](_0xc2753b,_0x2fe5a8);}[_0x581676(0x1a1)](_0x1c9931){const _0x450c94=_0x581676;this[_0x450c94(0x179)][_0x450c94(0x1a1)](_0x1c9931);}[_0x581676(0x1a7)](_0x1e368c,_0x27a69c){const _0x5f3b99=_0x581676;this[_0x5f3b99(0x179)][_0x5f3b99(0x1a7)](_0x1e368c,_0x27a69c);}[_0x581676(0x18a)](_0x9a169b){const _0x5629a6=_0x581676;this[_0x5629a6(0x181)][_0x5629a6(0x18a)](_0x9a169b);}[_0x581676(0x1ac)](_0x7bfec5){const _0x52c26f=_0x581676;this[_0x52c26f(0x179)][_0x52c26f(0x1ac)](_0x7bfec5);}[_0x581676(0x170)](){const _0x4773c7=_0x581676;this[_0x4773c7(0x179)][_0x4773c7(0x17c)]();}[_0x581676(0x196)](){const _0x172f2e=_0x581676;this[_0x172f2e(0x179)][_0x172f2e(0x1a3)]();}[_0x581676(0x174)](_0xed539c,_0x44562b,_0x42e547){const _0x365d3c=_0x581676;this[_0x365d3c(0x179)][_0x365d3c(0x174)](_0xed539c,_0x44562b,_0x42e547);}[_0x581676(0x198)](_0x551ff7){const _0x3adc56=_0x581676;this[_0x3adc56(0x18f)][_0x3adc56(0x198)](_0x551ff7);}[_0x581676(0x18d)](_0x20031b){const _0x5d8be6=_0x581676;this[_0x5d8be6(0x18f)][_0x5d8be6(0x18d)](_0x20031b);}[_0x581676(0x19f)](){const _0x32e8fb=_0x581676;this[_0x32e8fb(0x181)][_0x32e8fb(0x195)]();}[_0x581676(0x17f)](_0x47fb21){const _0x1e2e04=_0x581676;this[_0x1e2e04(0x179)][_0x1e2e04(0x17f)](_0x47fb21);}[_0x581676(0x188)](_0x215bef){const _0xe022c3=_0x581676;this[_0xe022c3(0x181)][_0xe022c3(0x17b)](_0x215bef);}[_0x581676(0x187)](_0x14d4aa,_0x3ca95c){const _0x54904a=_0x581676;this[_0x54904a(0x162)]=_0x14d4aa,this[_0x54904a(0x18f)][_0x54904a(0x187)](_0x14d4aa,_0x3ca95c);}[_0x581676(0x16e)](_0x228467){const _0x461a0d=_0x581676;(_0x228467?this[_0x461a0d(0x162)][_0x461a0d(0x166)](_0x5f284e=>_0x5f284e['id']===_0x228467['id']):null)?(this[_0x461a0d(0x183)]=!0x0,this[_0x461a0d(0x18f)][_0x461a0d(0x16e)](_0x228467)):_0x228467?.['id'][_0x461a0d(0x185)](_0x461a0d(0x161))?(this[_0x461a0d(0x183)]=!0x0,this[_0x461a0d(0x18f)][_0x461a0d(0x16e)](this[_0x461a0d(0x162)][0x0])):this[_0x461a0d(0x183)]=!0x1;}[_0x581676(0x168)](){const _0x26f02b=_0x581676;this[_0x26f02b(0x18f)][_0x26f02b(0x168)]();}[_0x581676(0x1a5)](_0x16eebb){const _0x2cf2c2=_0x581676;this[_0x2cf2c2(0x18f)][_0x2cf2c2(0x1a5)](_0x16eebb);}[_0x581676(0x19e)](_0x20439d,_0x3420e4,_0x4854bf,_0x8752ee){const _0x4192bd=_0x581676;this[_0x4192bd(0x179)][_0x4192bd(0x19e)](_0x20439d,_0x3420e4,_0x4854bf,_0x8752ee);}[_0x581676(0x176)](_0x126b3f){const _0x1b4888=_0x581676;this[_0x1b4888(0x179)][_0x1b4888(0x176)](_0x126b3f);}[_0x581676(0x172)](){const _0x16c308=_0x581676;this[_0x16c308(0x181)][_0x16c308(0x16d)]();}}class _s extends _0x154584{constructor(_0x809988){const _0x9d2dbf=_0x581676;super(_0x809988);const _0x49c415=new _0x5f46a8(_0x809988);_0x49c415[_0x9d2dbf(0x180)]({'label':_0x1c617f(this[_0x9d2dbf(0x197)],_0x9d2dbf(0x17a)),'withText':!0x0,'class':[_0x9d2dbf(0x173)],'tooltip':''}),_0x49c415[_0x9d2dbf(0x184)](_0x9d2dbf(0x1a2))['to'](this,_0x9d2dbf(0x190)),this[_0x9d2dbf(0x19a)]({'tag':_0x9d2dbf(0x1a0),'attributes':{'class':['ck',_0x9d2dbf(0x163)]},'children':[{'tag':'p','children':[{'text':_0x1c617f(this[_0x9d2dbf(0x197)],_0x9d2dbf(0x17d))+'\x20'},_0x49c415]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc15549=_0x5d3b;(function(_0x447b72,_0x3a1605){const _0x1d6f95=_0x5d3b,_0x1cdfbb=_0x447b72();while(!![]){try{const _0x87471f=-parseInt(_0x1d6f95(0x1b8))/0x1+-parseInt(_0x1d6f95(0x1c1))/0x2+-parseInt(_0x1d6f95(0x1e4))/0x3+parseInt(_0x1d6f95(0x1d8))/0x4+parseInt(_0x1d6f95(0x1e1))/0x5*(-parseInt(_0x1d6f95(0x1df))/0x6)+-parseInt(_0x1d6f95(0x1ca))/0x7+parseInt(_0x1d6f95(0x1cd))/0x8*(parseInt(_0x1d6f95(0x1a3))/0x9);if(_0x87471f===_0x3a1605)break;else _0x1cdfbb['push'](_0x1cdfbb['shift']());}catch(_0x29c1ee){_0x1cdfbb['push'](_0x1cdfbb['shift']());}}}(_0x1e27,0xa1751));import{CKEditorError as _0x3d7490,logWarning as _0x442e0c,scrollViewportToShowTarget as _0x411237}from'ckeditor5/src/utils.js';import{View as _0x445e14}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x569b26}from'../utils/eventnames.js';function _0x1e27(){const _0x1606cb=['delegate','updateSources','updateSuggestionPartState','updateContent','ai-chat-feed-view-item-not-found','removeItem','1752702fzhuzU','getItemById','locale','startAutoScroll','options','getPartView','_createFeedLoader','isVisible','loadingMessage','8924566sTOvAn','stop','add','40jncRUM','ai-chat-feed-view-item-not-a-reply-item','span','destroy','element','scrollManager','find','ck-hidden','addItem','user-message','bindTemplate','3355296mBXOvD','createCollection','updateSuggestionItem','start','children','interaction-header','_createTemplateChildren','187548SMlqcR','setLoadingMessage','5NeqUBj','includes','updatePartState','2276397Bebijd','_createLoaderChildren','_setupTemplate','div','isPending','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','scrollToSuggestion','isTrackChangesOn','set','markAsDone','isLoadingSkeletonVisible','setTemplate','getItemIds','updateReplyItem','clear','6027831adkOGx','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','stopAutoScroll','ai-reply','aiFeed','ai-chat-feed-view-item-not-a-suggestion-item','ck-ai-chat__loader','ck-ai-chat__feed__items','bind','toggleLoadingSkeleton','ck-ai-chat__feed','extendTemplate','map','markItemAsDone','ai-suggestion-reply','_bodyCollection','remove','ck-ai-chat__loader-text','render','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','_createFeedItems','584944lqJkJU','updateWebSources','_createSkeletonLoader'];_0x1e27=function(){return _0x1606cb;};return _0x1e27();}import{AIChatFeedSuggestionItemView as _0x4f1ac3}from'./feed/aichatfeedsuggestionitemview.js';function _0x5d3b(_0x1df251,_0x418351){const _0x1e27b3=_0x1e27();return _0x5d3b=function(_0x5d3bbc,_0x262031){_0x5d3bbc=_0x5d3bbc-0x1a2;let _0x28fc5b=_0x1e27b3[_0x5d3bbc];return _0x28fc5b;},_0x5d3b(_0x1df251,_0x418351);}import{AIChatFeedReplyItemView as _0x58b6da}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x44ebef}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x5bb8f3}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x1985be}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x15f9a8}from'../utils/scrollmanager.js';import{AISkeletonView as _0x3334f4,SKELETON_DEFINITIONS as _0xb82301}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x593254}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x445e14{[_0xc15549(0x1dc)];[_0xc15549(0x1d2)];[_0xc15549(0x1b2)];constructor(_0x6c972,_0x46fe87){const _0x5e9e6c=_0xc15549;super(_0x6c972),this[_0x5e9e6c(0x1b2)]=_0x46fe87,this[_0x5e9e6c(0x1ec)](_0x5e9e6c(0x1e8),!0x1),this[_0x5e9e6c(0x1ec)](_0x5e9e6c(0x1c9),''),this[_0x5e9e6c(0x1ec)](_0x5e9e6c(0x1ee),!0x1),this[_0x5e9e6c(0x1ec)](_0x5e9e6c(0x1eb),!0x1),this[_0x5e9e6c(0x1dc)]=this[_0x5e9e6c(0x1d9)](),this[_0x5e9e6c(0x1dc)][_0x5e9e6c(0x1bb)](..._0x569b26)['to'](this),this[_0x5e9e6c(0x1e6)]();}[_0xc15549(0x1b5)](){const _0xcd8059=_0xc15549;super[_0xcd8059(0x1b5)](),this[_0xcd8059(0x1d2)]=new _0x15f9a8(this[_0xcd8059(0x1d1)]);}[_0xc15549(0x1d0)](){const _0x785690=_0xc15549;super[_0x785690(0x1d0)](),this[_0x785690(0x1d2)][_0x785690(0x1d0)]();}[_0xc15549(0x1a2)](){const _0xf56022=_0xc15549;this[_0xf56022(0x1dc)][_0xf56022(0x1a2)]();}[_0xc15549(0x1d5)](_0x496daa,_0x3c0a10){const _0x2d7e8e=_0xc15549;let _0x184375;_0x2d7e8e(0x1a6)===_0x496daa?_0x184375=new _0x58b6da(this[_0x2d7e8e(0x1c3)],_0x3c0a10):_0x2d7e8e(0x1b1)===_0x496daa?(_0x184375=new _0x4f1ac3(this[_0x2d7e8e(0x1c3)],_0x3c0a10),_0x184375[_0x2d7e8e(0x1ab)](_0x2d7e8e(0x1eb))['to'](this,_0x2d7e8e(0x1eb))):_0x184375=_0x2d7e8e(0x1d6)===_0x496daa?new _0x44ebef(this[_0x2d7e8e(0x1c3)],_0x3c0a10,this[_0x2d7e8e(0x1b2)]):_0x2d7e8e(0x1dd)===_0x496daa?new _0x1985be(this[_0x2d7e8e(0x1c3)],_0x3c0a10):new _0x5bb8f3(_0x3c0a10),this[_0x2d7e8e(0x1dc)][_0x2d7e8e(0x1cc)](_0x184375);}async[_0xc15549(0x1f1)]({id:_0x596402,parsedContent:_0x23241f,renderingStrategy:_0x32155d,abortSignal:_0x89f4e6}){const _0x2a5eb0=_0xc15549,_0x3e937c=this[_0x2a5eb0(0x1c2)](_0x596402);if(!(_0x3e937c instanceof _0x58b6da))throw new _0x3d7490(_0x2a5eb0(0x1ce),null,{'itemView':_0x3e937c,'id':_0x596402,'parsedContent':_0x23241f});await _0x3e937c[_0x2a5eb0(0x1be)]({'parsedContent':_0x23241f,'renderingStrategy':_0x32155d,'abortSignal':_0x89f4e6});}async[_0xc15549(0x1b9)](_0x2f9f2d,_0x9eae16){const _0x357d20=_0xc15549,_0x394b77=this[_0x357d20(0x1c2)](_0x2f9f2d);if(_0x394b77 instanceof _0x4f1ac3)_0x394b77[_0x357d20(0x1bc)](_0x9eae16);else{if(!(_0x394b77 instanceof _0x58b6da))throw new _0x3d7490(_0x357d20(0x1a4),null,{'itemView':_0x394b77,'id':_0x2f9f2d,'sources':_0x9eae16});_0x394b77[_0x357d20(0x1bc)](_0x9eae16);}}async[_0xc15549(0x1da)]({id:_0x4e813f,parts:_0x53b937,renderingStrategy:_0x2bc229,abortSignal:_0x16136e}){const _0x2b405f=_0xc15549,_0x998565=this[_0x2b405f(0x1c2)](_0x4e813f);if(!(_0x998565 instanceof _0x4f1ac3))throw new _0x3d7490(_0x2b405f(0x1a8),null,{'itemView':_0x998565,'id':_0x4e813f,'parts':_0x53b937});await _0x998565[_0x2b405f(0x1be)]({'parts':_0x53b937,'renderingStrategy':_0x2bc229,'abortSignal':_0x16136e});}[_0xc15549(0x1bd)]({id:_0x576391,index:_0xd5b70b,state:_0x6e3ab9}){const _0x4f2aa3=_0xc15549,_0xf0b972=this[_0x4f2aa3(0x1c2)](_0x576391);if(!(_0xf0b972 instanceof _0x4f1ac3))throw new _0x3d7490(_0x4f2aa3(0x1a8),this,{'id':_0x576391});_0xf0b972[_0x4f2aa3(0x1e3)](_0xd5b70b,_0x6e3ab9);}[_0xc15549(0x1b0)](_0x408510){const _0x1f0c83=_0xc15549;this[_0x1f0c83(0x1c2)](_0x408510)[_0x1f0c83(0x1ed)]();}[_0xc15549(0x1f0)](){const _0x4f5bcd=_0xc15549;return this[_0x4f5bcd(0x1dc)][_0x4f5bcd(0x1af)](_0xc143f=>_0xc143f[_0x4f5bcd(0x1c5)]['id']);}[_0xc15549(0x1c0)](_0x55c5f2){const _0xc8ac96=_0xc15549;this[_0xc8ac96(0x1dc)][_0xc8ac96(0x1b3)](this[_0xc8ac96(0x1c2)](_0x55c5f2));}[_0xc15549(0x1ea)](_0x55733e,_0x2bf8e8){const _0x3408d7=_0xc15549,_0x2e8832=this[_0x3408d7(0x1c2)](_0x55733e);if(!(_0x2e8832 instanceof _0x4f1ac3))return void _0x442e0c(_0x3408d7(0x1b6),{'replyId':_0x55733e,'partIndex':_0x2bf8e8});const _0x235722=_0x2e8832[_0x3408d7(0x1c6)](_0x2bf8e8);_0x235722?_0x411237({'target':_0x235722[_0x3408d7(0x1d1)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x442e0c(_0x3408d7(0x1e9),{'replyId':_0x55733e,'partIndex':_0x2bf8e8});}[_0xc15549(0x1e6)](){const _0x2502c8=_0xc15549;this[_0x2502c8(0x1ef)]({'tag':_0x2502c8(0x1e7),'attributes':{'class':['ck',_0x2502c8(0x1ad)]},'children':this[_0x2502c8(0x1de)]()});}[_0xc15549(0x1de)](){const _0x47e9fa=_0xc15549,_0x4775d9=this[_0x47e9fa(0x1ba)]();return[this[_0x47e9fa(0x1b7)](),_0x4775d9,this[_0x47e9fa(0x1c7)]()];}[_0xc15549(0x1ba)](){const _0x3c1dd4=_0xc15549,_0x399e19=new _0x3334f4(this[_0x3c1dd4(0x1c3)],_0xb82301[_0x3c1dd4(0x1a7)]);return _0x399e19[_0x3c1dd4(0x1ae)]({'attributes':{'class':[this[_0x3c1dd4(0x1d7)]['if'](_0x3c1dd4(0x1ee),_0x3c1dd4(0x1d4),_0x48710c=>!_0x48710c)]}}),_0x399e19;}[_0xc15549(0x1b7)](){const _0x1e8690=_0xc15549,_0xa2c731=new _0x445e14(this[_0x1e8690(0x1c3)]);return _0xa2c731[_0x1e8690(0x1ef)]({'tag':_0x1e8690(0x1e7),'attributes':{'class':['ck',_0x1e8690(0x1aa),this[_0x1e8690(0x1d7)]['if'](_0x1e8690(0x1ee),_0x1e8690(0x1d4))]},'children':this[_0x1e8690(0x1dc)]}),_0xa2c731;}[_0xc15549(0x1c7)](){const _0x3d0b94=_0xc15549,_0x473d40=new _0x445e14(this[_0x3d0b94(0x1c3)]);return _0x473d40[_0x3d0b94(0x1ef)]({'tag':_0x3d0b94(0x1e7),'attributes':{'class':['ck',_0x3d0b94(0x1a9),this[_0x3d0b94(0x1d7)]['if'](_0x3d0b94(0x1e8),_0x3d0b94(0x1d4),_0x5c9bef=>!_0x5c9bef)]},'children':this[_0x3d0b94(0x1e5)]()}),_0x473d40;}[_0xc15549(0x1e5)](){const _0xa11449=_0xc15549,_0x176525=new _0x593254();return _0x176525[_0xa11449(0x1c8)]=!0x0,[_0x176525,{'tag':_0xa11449(0x1cf),'attributes':{'class':['ck',_0xa11449(0x1b4)]},'children':[{'text':this[_0xa11449(0x1d7)]['to'](_0xa11449(0x1c9))}]}];}[_0xc15549(0x1c2)](_0x161842){const _0x2ea5ae=_0xc15549,_0x240ceb=this[_0x2ea5ae(0x1dc)][_0x2ea5ae(0x1d3)](_0x3fea11=>_0x3fea11[_0x2ea5ae(0x1c5)]['id'][_0x2ea5ae(0x1e2)](_0x161842));if(!_0x240ceb)throw new _0x3d7490(_0x2ea5ae(0x1bf),this,{'id':_0x161842});return _0x240ceb;}[_0xc15549(0x1e0)](_0x5aa17d){const _0x3114f7=_0xc15549;this[_0x3114f7(0x1ec)](_0x3114f7(0x1c9),_0x5aa17d);}[_0xc15549(0x1ac)](_0xdb15d){const _0xaddfb9=_0xc15549;this[_0xaddfb9(0x1ec)](_0xaddfb9(0x1ee),_0xdb15d);}[_0xc15549(0x1c4)](){const _0x327d38=_0xc15549;this[_0x327d38(0x1d2)][_0x327d38(0x1db)]();}[_0xc15549(0x1a5)](){const _0x2a9498=_0xc15549;this[_0x2a9498(0x1d2)][_0x2a9498(0x1cb)]();}}
23
+ const _0x36572d=_0xe104;(function(_0x524826,_0x47c2dd){const _0x29f050=_0xe104,_0x39a07d=_0x524826();while(!![]){try{const _0x300632=parseInt(_0x29f050(0xea))/0x1*(-parseInt(_0x29f050(0xc6))/0x2)+parseInt(_0x29f050(0xb7))/0x3*(-parseInt(_0x29f050(0xaa))/0x4)+parseInt(_0x29f050(0xba))/0x5+-parseInt(_0x29f050(0xd7))/0x6+parseInt(_0x29f050(0xdb))/0x7*(-parseInt(_0x29f050(0xf3))/0x8)+parseInt(_0x29f050(0xde))/0x9*(-parseInt(_0x29f050(0xe8))/0xa)+parseInt(_0x29f050(0xd3))/0xb*(parseInt(_0x29f050(0xe7))/0xc);if(_0x300632===_0x47c2dd)break;else _0x39a07d['push'](_0x39a07d['shift']());}catch(_0x1211af){_0x39a07d['push'](_0x39a07d['shift']());}}}(_0x532f,0x983d2));import{CKEditorError as _0x93584d,logWarning as _0x3fe92d,scrollViewportToShowTarget as _0x29c801}from'ckeditor5/src/utils.js';import{View as _0x22d56f}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2c87fd}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x1d05b2}from'./feed/aichatfeedsuggestionitemview.js';function _0xe104(_0x4409e0,_0x11a6ac){const _0x532f98=_0x532f();return _0xe104=function(_0xe10485,_0x862465){_0xe10485=_0xe10485-0xa4;let _0x4ecc0f=_0x532f98[_0xe10485];return _0x4ecc0f;},_0xe104(_0x4409e0,_0x11a6ac);}import{AIChatFeedReplyItemView as _0xcd8acf}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x2c9a81}from'./feed/aichatfeedusermessageitem.js';function _0x532f(){const _0x28d8ee=['add','7nALMFo','clear','delegate','61443NicFsR','_createFeedItems','toggleLoadingSkeleton','ck-hidden','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','scrollManager','map','updateSuggestionPartState','find','1318776LGynJT','1070LBRpJm','startAutoScroll','106ABUSen','isTrackChangesOn','includes','stop','user-message','_createSkeletonLoader','createCollection','aiFeed','updateContent','7561448qeGqzW','ai-suggestion-reply','updateWebSources','stopAutoScroll','ck-ai-chat__loader','element','_setupTemplate','interaction-header','_bodyCollection','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','4ZQXXqU','span','_createTemplateChildren','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','start','removeItem','destroy','options','children','setTemplate','bindTemplate','locale','ai-chat-feed-view-item-not-a-suggestion-item','305625zGbTYM','bind','ck-ai-chat__feed__items','4597375nTkNNw','updatePartState','loadingMessage','ck-ai-chat__feed','getPartView','ai-chat-feed-view-item-not-a-reply-item','updateSuggestionItem','markItemAsDone','div','addItem','markAsDone','isLoadingSkeletonVisible','9938girAPw','_createFeedLoader','render','updateReplyItem','ck-ai-chat__loader-text','scrollToSuggestion','remove','updateSources','getItemById','setLoadingMessage','ai-chat-feed-view-item-not-found','set','_createLoaderChildren','286EzCTeO','isPending','getItemIds','ai-reply','5093964FgsIbm','isVisible','extendTemplate'];_0x532f=function(){return _0x28d8ee;};return _0x532f();}import{AIChatFeedErrorItemView as _0x2e3ca3}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x5b8e8b}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x2f1edb}from'../utils/scrollmanager.js';import{AISkeletonView as _0x39bec6,SKELETON_DEFINITIONS as _0x220a2b}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x4fdc13}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x22d56f{[_0x36572d(0xb2)];[_0x36572d(0xe3)];[_0x36572d(0xa8)];constructor(_0x6f0735,_0xfb55d6){const _0x52d2d2=_0x36572d;super(_0x6f0735),this[_0x52d2d2(0xa8)]=_0xfb55d6,this[_0x52d2d2(0xd1)](_0x52d2d2(0xd4),!0x1),this[_0x52d2d2(0xd1)](_0x52d2d2(0xbc),''),this[_0x52d2d2(0xd1)](_0x52d2d2(0xc5),!0x1),this[_0x52d2d2(0xd1)](_0x52d2d2(0xeb),!0x1),this[_0x52d2d2(0xb2)]=this[_0x52d2d2(0xf0)](),this[_0x52d2d2(0xb2)][_0x52d2d2(0xdd)](..._0x2c87fd)['to'](this),this[_0x52d2d2(0xa6)]();}[_0x36572d(0xc8)](){const _0x69dbc4=_0x36572d;super[_0x69dbc4(0xc8)](),this[_0x69dbc4(0xe3)]=new _0x2f1edb(this[_0x69dbc4(0xa5)]);}[_0x36572d(0xb0)](){const _0x3e5c42=_0x36572d;super[_0x3e5c42(0xb0)](),this[_0x3e5c42(0xe3)][_0x3e5c42(0xb0)]();}[_0x36572d(0xdc)](){const _0x19f3be=_0x36572d;this[_0x19f3be(0xb2)][_0x19f3be(0xdc)]();}[_0x36572d(0xc3)](_0x1b3410,_0xff401e){const _0x313897=_0x36572d;let _0xf67c39;_0x313897(0xd6)===_0x1b3410?_0xf67c39=new _0xcd8acf(this[_0x313897(0xb5)],_0xff401e):_0x313897(0xf4)===_0x1b3410?(_0xf67c39=new _0x1d05b2(this[_0x313897(0xb5)],_0xff401e),_0xf67c39[_0x313897(0xb8)](_0x313897(0xeb))['to'](this,_0x313897(0xeb))):_0xf67c39=_0x313897(0xee)===_0x1b3410?new _0x2c9a81(this[_0x313897(0xb5)],_0xff401e,this[_0x313897(0xa8)]):_0x313897(0xa7)===_0x1b3410?new _0x5b8e8b(this[_0x313897(0xb5)],_0xff401e):new _0x2e3ca3(_0xff401e),this[_0x313897(0xb2)][_0x313897(0xda)](_0xf67c39);}async[_0x36572d(0xc9)]({id:_0x114bab,parsedContent:_0x13075c,renderingStrategy:_0x2891b1,abortSignal:_0xf3d2a9}){const _0x3d8061=_0x36572d,_0x3d3905=this[_0x3d8061(0xce)](_0x114bab);if(!(_0x3d3905 instanceof _0xcd8acf))throw new _0x93584d(_0x3d8061(0xbf),null,{'itemView':_0x3d3905,'id':_0x114bab,'parsedContent':_0x13075c});await _0x3d3905[_0x3d8061(0xf2)]({'parsedContent':_0x13075c,'renderingStrategy':_0x2891b1,'abortSignal':_0xf3d2a9});}async[_0x36572d(0xf5)](_0x2862f8,_0x5b66aa){const _0x47aa98=_0x36572d,_0x55b984=this[_0x47aa98(0xce)](_0x2862f8);if(_0x55b984 instanceof _0x1d05b2)_0x55b984[_0x47aa98(0xcd)](_0x5b66aa);else{if(!(_0x55b984 instanceof _0xcd8acf))throw new _0x93584d(_0x47aa98(0xe2),null,{'itemView':_0x55b984,'id':_0x2862f8,'sources':_0x5b66aa});_0x55b984[_0x47aa98(0xcd)](_0x5b66aa);}}async[_0x36572d(0xc0)]({id:_0x4ca48d,parts:_0x54fff1,renderingStrategy:_0x1cc358,abortSignal:_0x5080c1}){const _0x35f7c3=_0x36572d,_0x52dcc6=this[_0x35f7c3(0xce)](_0x4ca48d);if(!(_0x52dcc6 instanceof _0x1d05b2))throw new _0x93584d(_0x35f7c3(0xb6),null,{'itemView':_0x52dcc6,'id':_0x4ca48d,'parts':_0x54fff1});await _0x52dcc6[_0x35f7c3(0xf2)]({'parts':_0x54fff1,'renderingStrategy':_0x1cc358,'abortSignal':_0x5080c1});}[_0x36572d(0xe5)]({id:_0x4ffa7d,index:_0x127ba5,state:_0x586c29}){const _0x2d7d95=_0x36572d,_0xa1f68c=this[_0x2d7d95(0xce)](_0x4ffa7d);if(!(_0xa1f68c instanceof _0x1d05b2))throw new _0x93584d(_0x2d7d95(0xb6),this,{'id':_0x4ffa7d});_0xa1f68c[_0x2d7d95(0xbb)](_0x127ba5,_0x586c29);}[_0x36572d(0xc1)](_0x1ab76a){const _0x2101c8=_0x36572d;this[_0x2101c8(0xce)](_0x1ab76a)[_0x2101c8(0xc4)]();}[_0x36572d(0xd5)](){const _0x273e48=_0x36572d;return this[_0x273e48(0xb2)][_0x273e48(0xe4)](_0x21317d=>_0x21317d[_0x273e48(0xb1)]['id']);}[_0x36572d(0xaf)](_0x2c70e8){const _0x212ebe=_0x36572d;this[_0x212ebe(0xb2)][_0x212ebe(0xcc)](this[_0x212ebe(0xce)](_0x2c70e8));}[_0x36572d(0xcb)](_0x2f86a7,_0x2cc6aa){const _0x2836c8=_0x36572d,_0x57eb5a=this[_0x2836c8(0xce)](_0x2f86a7);if(!(_0x57eb5a instanceof _0x1d05b2))return void _0x3fe92d(_0x2836c8(0xad),{'replyId':_0x2f86a7,'partIndex':_0x2cc6aa});const _0x49bc25=_0x57eb5a[_0x2836c8(0xbe)](_0x2cc6aa);_0x49bc25?_0x29c801({'target':_0x49bc25[_0x2836c8(0xa5)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x3fe92d(_0x2836c8(0xa9),{'replyId':_0x2f86a7,'partIndex':_0x2cc6aa});}[_0x36572d(0xa6)](){const _0x4a35a2=_0x36572d;this[_0x4a35a2(0xb3)]({'tag':_0x4a35a2(0xc2),'attributes':{'class':['ck',_0x4a35a2(0xbd)]},'children':this[_0x4a35a2(0xac)]()});}[_0x36572d(0xac)](){const _0x16232f=_0x36572d,_0x404b8b=this[_0x16232f(0xef)]();return[this[_0x16232f(0xdf)](),_0x404b8b,this[_0x16232f(0xc7)]()];}[_0x36572d(0xef)](){const _0x5bace1=_0x36572d,_0x14d85b=new _0x39bec6(this[_0x5bace1(0xb5)],_0x220a2b[_0x5bace1(0xf1)]);return _0x14d85b[_0x5bace1(0xd9)]({'attributes':{'class':[this[_0x5bace1(0xb4)]['if'](_0x5bace1(0xc5),_0x5bace1(0xe1),_0x3a3739=>!_0x3a3739)]}}),_0x14d85b;}[_0x36572d(0xdf)](){const _0x2621d6=_0x36572d,_0x39d3df=new _0x22d56f(this[_0x2621d6(0xb5)]);return _0x39d3df[_0x2621d6(0xb3)]({'tag':_0x2621d6(0xc2),'attributes':{'class':['ck',_0x2621d6(0xb9),this[_0x2621d6(0xb4)]['if'](_0x2621d6(0xc5),_0x2621d6(0xe1))]},'children':this[_0x2621d6(0xb2)]}),_0x39d3df;}[_0x36572d(0xc7)](){const _0x4fe81b=_0x36572d,_0x4f7f5c=new _0x22d56f(this[_0x4fe81b(0xb5)]);return _0x4f7f5c[_0x4fe81b(0xb3)]({'tag':_0x4fe81b(0xc2),'attributes':{'class':['ck',_0x4fe81b(0xa4),this[_0x4fe81b(0xb4)]['if'](_0x4fe81b(0xd4),_0x4fe81b(0xe1),_0x12c2e0=>!_0x12c2e0)]},'children':this[_0x4fe81b(0xd2)]()}),_0x4f7f5c;}[_0x36572d(0xd2)](){const _0x53abdd=_0x36572d,_0x948276=new _0x4fdc13();return _0x948276[_0x53abdd(0xd8)]=!0x0,[_0x948276,{'tag':_0x53abdd(0xab),'attributes':{'class':['ck',_0x53abdd(0xca)]},'children':[{'text':this[_0x53abdd(0xb4)]['to'](_0x53abdd(0xbc))}]}];}[_0x36572d(0xce)](_0x3d3dfb){const _0x555019=_0x36572d,_0x1f32a2=this[_0x555019(0xb2)][_0x555019(0xe6)](_0x5c5341=>_0x5c5341[_0x555019(0xb1)]['id'][_0x555019(0xec)](_0x3d3dfb));if(!_0x1f32a2)throw new _0x93584d(_0x555019(0xd0),this,{'id':_0x3d3dfb});return _0x1f32a2;}[_0x36572d(0xcf)](_0x7df104){const _0x36d820=_0x36572d;this[_0x36d820(0xd1)](_0x36d820(0xbc),_0x7df104);}[_0x36572d(0xe0)](_0xcaaf86){const _0x1a27a3=_0x36572d;this[_0x1a27a3(0xd1)](_0x1a27a3(0xc5),_0xcaaf86);}[_0x36572d(0xe9)](){const _0x3180e7=_0x36572d;this[_0x3180e7(0xe3)][_0x3180e7(0xae)]();}[_0x36572d(0xf6)](){const _0x28a645=_0x36572d;this[_0x28a645(0xe3)][_0x28a645(0xed)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x40b6c3=_0x3397;(function(_0x255a0b,_0x4c5197){const _0x514528=_0x3397,_0x456f4e=_0x255a0b();while(!![]){try{const _0x5c3809=parseInt(_0x514528(0x1a9))/0x1*(parseInt(_0x514528(0x1b2))/0x2)+parseInt(_0x514528(0x19b))/0x3+parseInt(_0x514528(0x1ab))/0x4*(-parseInt(_0x514528(0x1b0))/0x5)+parseInt(_0x514528(0x19e))/0x6*(parseInt(_0x514528(0x1af))/0x7)+-parseInt(_0x514528(0x1a1))/0x8*(-parseInt(_0x514528(0x1ad))/0x9)+-parseInt(_0x514528(0x1a0))/0xa*(parseInt(_0x514528(0x1a4))/0xb)+parseInt(_0x514528(0x1ac))/0xc*(-parseInt(_0x514528(0x1a2))/0xd);if(_0x5c3809===_0x4c5197)break;else _0x456f4e['push'](_0x456f4e['shift']());}catch(_0x437d0b){_0x456f4e['push'](_0x456f4e['shift']());}}}(_0x4e01,0x2bb61));import{ButtonView as _0x5ab4f8,FormHeaderView as _0x104d5d}from'ckeditor5/src/ui.js';import{IconPlus as _0x4ee225,IconAIChat as _0x3a0c06}from'ckeditor5/src/icons.js';function _0x4e01(){const _0xeb59d0=['16PRWeto','1282788bvOYKF','AI_CHAT_HEADING','20229ZiqeYV','conversationStartButton','resizeButton','locale','ck-ai-chat__start-conversation','21cEKaBh','children','204604SMYbxo','24mgKlgw','1255131fLsbAT','isMaximized','14uoogoY','15UOczry','add','14582AmmCEf','execute','AI_CHAT_LABEL_NEW_CHAT','_createStartConversationButton','set','105114LBCnzZ','fire','startConversation','855894mastxo','ck-ai-header\x20ck-ai-header_chat','1210mxCIiQ'];_0x4e01=function(){return _0xeb59d0;};return _0x4e01();}function _0x3397(_0x283356,_0x20e501){const _0x4e012f=_0x4e01();return _0x3397=function(_0x339718,_0x3d93ca){_0x339718=_0x339718-0x199;let _0x5ce8f4=_0x4e012f[_0x339718];return _0x5ce8f4;},_0x3397(_0x283356,_0x20e501);}import{getTranslation as _0x493cc3}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x1fffca}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x104d5d{[_0x40b6c3(0x1a5)];[_0x40b6c3(0x1a6)];constructor(_0x1b810b,_0x595e97){const _0x4383d5=_0x40b6c3;super(_0x1b810b,{'label':_0x493cc3(_0x1b810b,_0x4383d5(0x1a3)),'class':_0x4383d5(0x19f),'icon':_0x3a0c06}),this[_0x4383d5(0x19a)](_0x4383d5(0x1ae),!0x1),this[_0x4383d5(0x1a5)]=this[_0x4383d5(0x199)](_0x1b810b),this[_0x4383d5(0x1aa)][_0x4383d5(0x1b1)](this[_0x4383d5(0x1a5)]),_0x595e97&&(this[_0x4383d5(0x1a6)]=_0x1fffca(_0x1b810b,this),this[_0x4383d5(0x1aa)][_0x4383d5(0x1b1)](this[_0x4383d5(0x1a6)]));}[_0x40b6c3(0x199)](_0xf418fd){const _0x494a87=_0x40b6c3,_0x2770b4=new _0x5ab4f8(_0xf418fd);return _0x2770b4[_0x494a87(0x19a)]({'label':_0x493cc3(this[_0x494a87(0x1a7)],_0x494a87(0x1b4)),'withText':!0x0,'icon':_0x4ee225,'class':_0x494a87(0x1a8)}),_0x2770b4['on'](_0x494a87(0x1b3),()=>{const _0x2a306d=_0x494a87;this[_0x2a306d(0x19c)](_0x2a306d(0x19d));}),_0x2770b4;}}
23
+ function _0x3814(){const _0x449ad0=['1074hVzDYZ','conversationStartButton','288372fipwsy','startConversation','ck-ai-chat__start-conversation','735690VDEuSk','36qqQyzL','locale','_createStartConversationButton','ck-ai-header\x20ck-ai-header_chat','fire','set','16LnjCeR','AI_CHAT_HEADING','576IwlqiY','9388CnsIrK','144GcakGe','isMaximized','133661uuIxsB','resizeButton','6227858GXEGmU','add','children','452tgTYQT','execute','9895OktNst','AI_CHAT_LABEL_NEW_CHAT','9QcDzqQ'];_0x3814=function(){return _0x449ad0;};return _0x3814();}const _0x587f63=_0x1a6a;function _0x1a6a(_0x547fa5,_0x2a2801){const _0x38145f=_0x3814();return _0x1a6a=function(_0x1a6ad4,_0x72bdcd){_0x1a6ad4=_0x1a6ad4-0x156;let _0x1f2a9e=_0x38145f[_0x1a6ad4];return _0x1f2a9e;},_0x1a6a(_0x547fa5,_0x2a2801);}(function(_0x2d5537,_0xe4b9ae){const _0x150926=_0x1a6a,_0x5c1b17=_0x2d5537();while(!![]){try{const _0x39db04=parseInt(_0x150926(0x171))/0x1*(-parseInt(_0x150926(0x15a))/0x2)+-parseInt(_0x150926(0x16a))/0x3*(parseInt(_0x150926(0x169))/0x4)+parseInt(_0x150926(0x157))/0x5*(-parseInt(_0x150926(0x168))/0x6)+-parseInt(_0x150926(0x15c))/0x7*(-parseInt(_0x150926(0x166))/0x8)+-parseInt(_0x150926(0x159))/0x9*(-parseInt(_0x150926(0x15f))/0xa)+parseInt(_0x150926(0x16c))/0xb*(parseInt(_0x150926(0x160))/0xc)+parseInt(_0x150926(0x16e))/0xd;if(_0x39db04===_0xe4b9ae)break;else _0x5c1b17['push'](_0x5c1b17['shift']());}catch(_0x48080a){_0x5c1b17['push'](_0x5c1b17['shift']());}}}(_0x3814,0x1eca4));import{ButtonView as _0x289e93,FormHeaderView as _0x1dd769}from'ckeditor5/src/ui.js';import{IconPlus as _0x36ba7f,IconAIChat as _0x1510ed}from'ckeditor5/src/icons.js';import{getTranslation as _0x34eb3e}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x371c5c}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x1dd769{[_0x587f63(0x15b)];[_0x587f63(0x16d)];constructor(_0x5cf77e,_0x2db588){const _0x29e386=_0x587f63;super(_0x5cf77e,{'label':_0x34eb3e(_0x5cf77e,_0x29e386(0x167)),'class':_0x29e386(0x163),'icon':_0x1510ed}),this[_0x29e386(0x165)](_0x29e386(0x16b),!0x1),this[_0x29e386(0x15b)]=this[_0x29e386(0x162)](_0x5cf77e),this[_0x29e386(0x170)][_0x29e386(0x16f)](this[_0x29e386(0x15b)]),_0x2db588&&(this[_0x29e386(0x16d)]=_0x371c5c(_0x5cf77e,this),this[_0x29e386(0x170)][_0x29e386(0x16f)](this[_0x29e386(0x16d)]));}[_0x587f63(0x162)](_0x39c23e){const _0x4610f0=_0x587f63,_0x23c510=new _0x289e93(_0x39c23e);return _0x23c510[_0x4610f0(0x165)]({'label':_0x34eb3e(this[_0x4610f0(0x161)],_0x4610f0(0x158)),'withText':!0x0,'icon':_0x36ba7f,'class':_0x4610f0(0x15e)}),_0x23c510['on'](_0x4610f0(0x156),()=>{const _0x1cfe12=_0x4610f0;this[_0x1cfe12(0x164)](_0x1cfe12(0x15d));}),_0x23c510;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5e8efd=_0x3ec0;(function(_0x4fcfad,_0x995d2d){var _0x5c3473=_0x3ec0,_0x21791d=_0x4fcfad();while(!![]){try{var _0x1b82bd=-parseInt(_0x5c3473(0x1fc))/0x1+-parseInt(_0x5c3473(0x206))/0x2*(parseInt(_0x5c3473(0x202))/0x3)+parseInt(_0x5c3473(0x1f1))/0x4+-parseInt(_0x5c3473(0x200))/0x5*(-parseInt(_0x5c3473(0x204))/0x6)+-parseInt(_0x5c3473(0x1f9))/0x7+parseInt(_0x5c3473(0x1fd))/0x8*(-parseInt(_0x5c3473(0x207))/0x9)+parseInt(_0x5c3473(0x1f5))/0xa;if(_0x1b82bd===_0x995d2d)break;else _0x21791d['push'](_0x21791d['shift']());}catch(_0x45b00f){_0x21791d['push'](_0x21791d['shift']());}}}(_0xae76,0xe67fe));import{View as _0x419d41,BodyCollection as _0xd35d59}from'ckeditor5/src/ui.js';function _0x3ec0(_0x1241ee,_0x17063c){var _0xae7654=_0xae76();return _0x3ec0=function(_0x3ec06d,_0x21a7e4){_0x3ec06d=_0x3ec06d-0x1ed;var _0x19914d=_0xae7654[_0x3ec06d];return _0x19914d;},_0x3ec0(_0x1241ee,_0x17063c);}import{AI_CHAT_UI_EVENT_NAMES as _0x458927}from'../utils/eventnames.js';import{AIChatFeedView as _0x413f5d}from'./aichatfeedview.js';import{AIChatControlsView as _0x4ce032}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x48ff20}from'./aichatheaderview.js';function _0xae76(){var _0x3b4c85=['_bodyCollection','3953335POiBwo','ck-ai-chat','9KzfAKX','chatHeader','6ctLnEN','div','801358apDUxX','9fxjyEv','ck-rounded-corners','uiLanguageDirection','populateSourceResourceBalloon','setTemplate','360056bfewgV','closeSourceResourceBalloon','destroy','detachFromDom','32978460Ejyghc','chatControls','chatDisclaimer','delegate','7402129OHOkFI','ck-reset_all','chatFeed','787049ZfRook','1502944YZGBCa','attachToDom'];_0xae76=function(){return _0x3b4c85;};return _0xae76();}import{AIDisclaimerView as _0x5eb372}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x419d41{[_0x5e8efd(0x203)];[_0x5e8efd(0x1fb)];[_0x5e8efd(0x1f6)];[_0x5e8efd(0x1f7)];[_0x5e8efd(0x1ff)];constructor(_0x31c3e0,_0x327d86){var _0x27eaab=_0x5e8efd;super(_0x31c3e0),this[_0x27eaab(0x1ff)]=new _0xd35d59(_0x31c3e0),this[_0x27eaab(0x1ff)][_0x27eaab(0x1fe)](),this[_0x27eaab(0x203)]=new _0x48ff20(_0x31c3e0,_0x327d86),this[_0x27eaab(0x203)][_0x27eaab(0x1f8)](..._0x458927)['to'](this),this[_0x27eaab(0x1fb)]=new _0x413f5d(_0x31c3e0,this[_0x27eaab(0x1ff)]),this[_0x27eaab(0x1fb)][_0x27eaab(0x1f8)](..._0x458927)['to'](this),this[_0x27eaab(0x1f6)]=new _0x4ce032(_0x31c3e0,this[_0x27eaab(0x1ff)]),this[_0x27eaab(0x1f6)][_0x27eaab(0x1f8)](..._0x458927)['to'](this),this[_0x27eaab(0x1f7)]=new _0x5eb372(_0x31c3e0),this[_0x27eaab(0x1f0)]({'tag':_0x27eaab(0x205),'attributes':{'class':['ck',_0x27eaab(0x1fa),_0x27eaab(0x201),_0x27eaab(0x1ed)],'dir':_0x31c3e0[_0x27eaab(0x1ee)]},'children':[this[_0x27eaab(0x203)],this[_0x27eaab(0x1fb)],this[_0x27eaab(0x1f6)],this[_0x27eaab(0x1f7)]]});}[_0x5e8efd(0x1ef)](_0x29d88a,_0x18c920,_0x2a8514,_0x27e605){var _0x4ae7fb=_0x5e8efd;this[_0x4ae7fb(0x1f6)][_0x4ae7fb(0x1ef)](_0x29d88a,_0x18c920,_0x2a8514,_0x27e605);}[_0x5e8efd(0x1f2)](_0x1afc31){var _0x5eacd0=_0x5e8efd;this[_0x5eacd0(0x1f6)][_0x5eacd0(0x1f2)](_0x1afc31);}[_0x5e8efd(0x1f3)](){var _0x51c4c4=_0x5e8efd;this[_0x51c4c4(0x1ff)][_0x51c4c4(0x1f4)](),super[_0x51c4c4(0x1f3)]();}}
23
+ var _0x4d2ab4=_0x1c74;(function(_0x57b3ed,_0x67bda7){var _0xc50880=_0x1c74,_0x52b7a3=_0x57b3ed();while(!![]){try{var _0x2a3ba6=-parseInt(_0xc50880(0xbd))/0x1*(parseInt(_0xc50880(0xc6))/0x2)+parseInt(_0xc50880(0xc2))/0x3*(-parseInt(_0xc50880(0xb6))/0x4)+parseInt(_0xc50880(0xb3))/0x5*(-parseInt(_0xc50880(0xcb))/0x6)+-parseInt(_0xc50880(0xc5))/0x7+parseInt(_0xc50880(0xc4))/0x8*(-parseInt(_0xc50880(0xbf))/0x9)+parseInt(_0xc50880(0xc1))/0xa*(parseInt(_0xc50880(0xba))/0xb)+parseInt(_0xc50880(0xc9))/0xc;if(_0x2a3ba6===_0x67bda7)break;else _0x52b7a3['push'](_0x52b7a3['shift']());}catch(_0x49768d){_0x52b7a3['push'](_0x52b7a3['shift']());}}}(_0x1804,0x9b2c3));function _0x1804(){var _0x166dba=['chatFeed','120220muNaLs','165021tDGWRj','attachToDom','220368kiMPLI','2166934vEjchz','149866HdCOWz','detachFromDom','populateSourceResourceBalloon','47986512pTBrzl','delegate','7348206FsnAog','div','destroy','chatHeader','setTemplate','5cZQRTO','_bodyCollection','chatDisclaimer','92ebByQp','uiLanguageDirection','closeSourceResourceBalloon','chatControls','451yljqhT','ck-rounded-corners','ck-reset_all','13KUESaf','ck-ai-chat','27OmdKpa'];_0x1804=function(){return _0x166dba;};return _0x1804();}import{View as _0x27fa0a,BodyCollection as _0x573643}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5f2a69}from'../utils/eventnames.js';import{AIChatFeedView as _0x2fdca7}from'./aichatfeedview.js';import{AIChatControlsView as _0xd89dd4}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0xeadd10}from'./aichatheaderview.js';import{AIDisclaimerView as _0x595d5f}from'../../aicore/ui/aidisclaimerview.js';function _0x1c74(_0x12fc47,_0x5b682f){var _0x18043b=_0x1804();return _0x1c74=function(_0x1c74f3,_0x28c80c){_0x1c74f3=_0x1c74f3-0xb1;var _0x370de5=_0x18043b[_0x1c74f3];return _0x370de5;},_0x1c74(_0x12fc47,_0x5b682f);}export class AIChatView extends _0x27fa0a{[_0x4d2ab4(0xb1)];[_0x4d2ab4(0xc0)];[_0x4d2ab4(0xb9)];[_0x4d2ab4(0xb5)];[_0x4d2ab4(0xb4)];constructor(_0x417eee,_0x31d601){var _0x10b7c8=_0x4d2ab4;super(_0x417eee),this[_0x10b7c8(0xb4)]=new _0x573643(_0x417eee),this[_0x10b7c8(0xb4)][_0x10b7c8(0xc3)](),this[_0x10b7c8(0xb1)]=new _0xeadd10(_0x417eee,_0x31d601),this[_0x10b7c8(0xb1)][_0x10b7c8(0xca)](..._0x5f2a69)['to'](this),this[_0x10b7c8(0xc0)]=new _0x2fdca7(_0x417eee,this[_0x10b7c8(0xb4)]),this[_0x10b7c8(0xc0)][_0x10b7c8(0xca)](..._0x5f2a69)['to'](this),this[_0x10b7c8(0xb9)]=new _0xd89dd4(_0x417eee,this[_0x10b7c8(0xb4)]),this[_0x10b7c8(0xb9)][_0x10b7c8(0xca)](..._0x5f2a69)['to'](this),this[_0x10b7c8(0xb5)]=new _0x595d5f(_0x417eee),this[_0x10b7c8(0xb2)]({'tag':_0x10b7c8(0xcc),'attributes':{'class':['ck',_0x10b7c8(0xbc),_0x10b7c8(0xbe),_0x10b7c8(0xbb)],'dir':_0x417eee[_0x10b7c8(0xb7)]},'children':[this[_0x10b7c8(0xb1)],this[_0x10b7c8(0xc0)],this[_0x10b7c8(0xb9)],this[_0x10b7c8(0xb5)]]});}[_0x4d2ab4(0xc8)](_0x22839b,_0x25bf22,_0x11725a,_0x573bce){var _0x2b4373=_0x4d2ab4;this[_0x2b4373(0xb9)][_0x2b4373(0xc8)](_0x22839b,_0x25bf22,_0x11725a,_0x573bce);}[_0x4d2ab4(0xb8)](_0x324d91){var _0x36d7da=_0x4d2ab4;this[_0x36d7da(0xb9)][_0x36d7da(0xb8)](_0x324d91);}[_0x4d2ab4(0xcd)](){var _0x16fb25=_0x4d2ab4;this[_0x16fb25(0xb4)][_0x16fb25(0xc7)](),super[_0x16fb25(0xcd)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33058d=_0x2e14;(function(_0x3177cf,_0x5df784){const _0x1d3937=_0x2e14,_0x40c4a4=_0x3177cf();while(!![]){try{const _0x1d2c1d=parseInt(_0x1d3937(0x185))/0x1+-parseInt(_0x1d3937(0x16f))/0x2+parseInt(_0x1d3937(0x1b3))/0x3+parseInt(_0x1d3937(0x15f))/0x4*(-parseInt(_0x1d3937(0x1b4))/0x5)+-parseInt(_0x1d3937(0x182))/0x6+parseInt(_0x1d3937(0x184))/0x7*(-parseInt(_0x1d3937(0x174))/0x8)+-parseInt(_0x1d3937(0x1d2))/0x9*(-parseInt(_0x1d3937(0x180))/0xa);if(_0x1d2c1d===_0x5df784)break;else _0x40c4a4['push'](_0x40c4a4['shift']());}catch(_0x42ad41){_0x40c4a4['push'](_0x40c4a4['shift']());}}}(_0x1e50,0x43996));import{View as _0x1ba152,BalloonPanelView as _0x113887,ButtonView as _0x264321,clickOutsideHandler as _0x4e828c}from'ckeditor5/src/ui.js';function _0x2e14(_0x2b2a10,_0x4e42be){const _0x1e50a0=_0x1e50();return _0x2e14=function(_0x2e1419,_0x117557){_0x2e1419=_0x2e1419-0x15a;let _0x476d63=_0x1e50a0[_0x2e1419];return _0x476d63;},_0x2e14(_0x2b2a10,_0x4e42be);}import{Collection as _0x362f59}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},ln=_0x33058d(0x168);export class AIChatChipsOverflowManager{[_0x33058d(0x183)];[_0x33058d(0x1ae)];[_0x33058d(0x171)];[_0x33058d(0x17a)];[_0x33058d(0x1b9)]=null;[_0x33058d(0x1c8)]=null;[_0x33058d(0x1bf)]=null;[_0x33058d(0x1c6)];[_0x33058d(0x163)]=null;[_0x33058d(0x17e)]=null;[_0x33058d(0x1ac)]=!0x1;constructor(_0x15c918,_0x3c10ac,_0x99fa95,_0x3457bf,_0x5f7332){const _0x5469a=_0x33058d;this[_0x5469a(0x183)]=_0x15c918,this[_0x5469a(0x171)]=_0x3c10ac,this[_0x5469a(0x1ae)]={...hn,..._0x99fa95,'cssClasses':{'controlsButton':'','calculationContainer':_0x5469a(0x1ad),..._0x99fa95[_0x5469a(0x16c)]}},this[_0x5469a(0x17a)]=new _0x362f59(),this[_0x5469a(0x1c6)]=_0x3457bf,this[_0x5469a(0x163)]=_0x5f7332||null;}[_0x33058d(0x1a5)](_0x30635c){const _0x1f18eb=_0x33058d;this[_0x1f18eb(0x17e)]&&(this[_0x1f18eb(0x17e)][_0x1f18eb(0x1cf)](),this[_0x1f18eb(0x17e)]=null),this[_0x1f18eb(0x1bf)]=_0x30635c,this[_0x1f18eb(0x188)]();}get[_0x33058d(0x1cc)](){const _0x5100d3=_0x33058d;return this[_0x5100d3(0x1b9)];}get[_0x33058d(0x1b2)](){const _0x2f6e4f=_0x33058d;return this[_0x2f6e4f(0x17a)];}[_0x33058d(0x1dc)](){requestAnimationFrame(()=>{const _0x2195a3=_0x2e14;this[_0x2195a3(0x179)]();});}[_0x33058d(0x1c3)](){const _0x136f9d=_0x33058d;this[_0x136f9d(0x1b9)]&&this[_0x136f9d(0x1c8)]&&(this[_0x136f9d(0x1b1)](),this[_0x136f9d(0x1b9)][_0x136f9d(0x1e2)]=!0x0,this[_0x136f9d(0x1c8)][_0x136f9d(0x1e3)](),this[_0x136f9d(0x1c8)][_0x136f9d(0x1c4)]({'target':this[_0x136f9d(0x1b9)][_0x136f9d(0x19f)],'limiter':document[_0x136f9d(0x198)](_0x136f9d(0x1cd))}));}[_0x33058d(0x1a8)](){const _0x4e2d0d=_0x33058d;this[_0x4e2d0d(0x1b9)]&&this[_0x4e2d0d(0x1c8)]&&(this[_0x4e2d0d(0x1b9)][_0x4e2d0d(0x1e2)]=!0x1,this[_0x4e2d0d(0x1c8)][_0x4e2d0d(0x181)]());}[_0x33058d(0x177)](){const _0x65f8c4=_0x33058d;this[_0x65f8c4(0x17a)][_0x65f8c4(0x177)](),this[_0x65f8c4(0x1a8)](),this[_0x65f8c4(0x1e8)](),this[_0x65f8c4(0x1b9)]&&(this[_0x65f8c4(0x1b9)][_0x65f8c4(0x16a)]=''),this[_0x65f8c4(0x1c8)]&&this[_0x65f8c4(0x1c8)][_0x65f8c4(0x1ce)][_0x65f8c4(0x177)]();}[_0x33058d(0x173)](){const _0x3d12d8=_0x33058d;this[_0x3d12d8(0x17e)]&&(this[_0x3d12d8(0x17e)][_0x3d12d8(0x1cf)](),this[_0x3d12d8(0x17e)]=null),this[_0x3d12d8(0x1b9)]&&(this[_0x3d12d8(0x1b9)][_0x3d12d8(0x173)](),this[_0x3d12d8(0x1b9)]=null),this[_0x3d12d8(0x1c8)]&&(this[_0x3d12d8(0x1c8)][_0x3d12d8(0x173)](),this[_0x3d12d8(0x1c8)]=null);}[_0x33058d(0x179)](){const _0x21b7a5=_0x33058d;if(!this[_0x21b7a5(0x1bf)])return;if(!this[_0x21b7a5(0x197)]())return void(this[_0x21b7a5(0x1ac)]=!0x0);this[_0x21b7a5(0x1ac)]=!0x1;const _0x2419b3=[...this[_0x21b7a5(0x171)],...this[_0x21b7a5(0x17a)]],_0x10ba88=this[_0x21b7a5(0x19e)](),_0x4de482=this[_0x21b7a5(0x192)](_0x10ba88,_0x2419b3),_0x39a9e4=_0x10ba88[_0x21b7a5(0x191)];_0x39a9e4&&this[_0x21b7a5(0x1a0)](_0x39a9e4),_0x10ba88[_0x21b7a5(0x19b)](),this[_0x21b7a5(0x1d6)](_0x2419b3,_0x4de482);}[_0x33058d(0x16b)](){const _0x1b9e52=_0x33058d;this[_0x1b9e52(0x1b9)]=this[_0x1b9e52(0x1a9)](),this[_0x1b9e52(0x1c8)]=this[_0x1b9e52(0x1af)](),this[_0x1b9e52(0x1b9)][_0x1b9e52(0x189)](),this[_0x1b9e52(0x1bf)][_0x1b9e52(0x15c)](this[_0x1b9e52(0x1b9)][_0x1b9e52(0x19f)]),this[_0x1b9e52(0x1b9)]['on'](_0x1b9e52(0x1c2),()=>{const _0x86b265=_0x1b9e52;this[_0x86b265(0x160)]();}),_0x4e828c({'emitter':this[_0x1b9e52(0x1c8)],'contextElements':[this[_0x1b9e52(0x1c8)][_0x1b9e52(0x19f)],this[_0x1b9e52(0x1b9)][_0x1b9e52(0x19f)]],'callback':()=>this[_0x1b9e52(0x1a8)](),'activator':()=>this[_0x1b9e52(0x1b9)][_0x1b9e52(0x1e2)]});}[_0x33058d(0x1a9)](){const _0x2b0198=_0x33058d,_0x3aedd6=new _0x264321(this[_0x2b0198(0x183)]);_0x3aedd6[_0x2b0198(0x16d)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x298dde=[this[_0x2b0198(0x1ae)][_0x2b0198(0x16c)][_0x2b0198(0x16e)]];return this[_0x2b0198(0x1ae)][_0x2b0198(0x16c)][_0x2b0198(0x1d3)]&&_0x298dde[_0x2b0198(0x194)](this[_0x2b0198(0x1ae)][_0x2b0198(0x16c)][_0x2b0198(0x1d3)]),_0x3aedd6[_0x2b0198(0x164)]({'attributes':{'class':_0x298dde}}),_0x3aedd6;}[_0x33058d(0x1af)](){const _0x902241=_0x33058d,_0x39f7aa=new _0x113887(this[_0x902241(0x183)]);return _0x39f7aa[_0x902241(0x164)]({'attributes':{'class':this[_0x902241(0x1ae)][_0x902241(0x16c)][_0x902241(0x17c)]}}),this[_0x902241(0x1c6)][_0x902241(0x1be)](_0x39f7aa),_0x39f7aa;}[_0x33058d(0x1b1)](){const _0x24e6a1=_0x33058d;if(this[_0x24e6a1(0x1c8)]&&(this[_0x24e6a1(0x1c8)][_0x24e6a1(0x1ce)][_0x24e6a1(0x177)](),this[_0x24e6a1(0x17a)][_0x24e6a1(0x15d)]>0x0)){this[_0x24e6a1(0x17a)][_0x24e6a1(0x1a7)](_0x31cce1=>{const _0x105b11=_0x24e6a1;_0x31cce1[_0x105b11(0x1e1)]();});const _0x3f4967=new _0x1ba152(this[_0x24e6a1(0x183)]);_0x3f4967[_0x24e6a1(0x1e5)]({'tag':_0x24e6a1(0x162),'attributes':{'class':this[_0x24e6a1(0x1ae)][_0x24e6a1(0x16c)][_0x24e6a1(0x18a)]},'children':this[_0x24e6a1(0x17a)]}),this[_0x24e6a1(0x1c8)][_0x24e6a1(0x1ce)][_0x24e6a1(0x1be)](_0x3f4967);}}[_0x33058d(0x160)](){const _0x1ff5b3=_0x33058d;this[_0x1ff5b3(0x1b9)][_0x1ff5b3(0x1e2)]?this[_0x1ff5b3(0x1a8)]():this[_0x1ff5b3(0x1c3)]();}[_0x33058d(0x1e8)](){const _0x118b57=_0x33058d,_0x1409b5=this[_0x118b57(0x17a)][_0x118b57(0x15d)]>0x0;this[_0x118b57(0x1b9)]?.[_0x118b57(0x19f)]&&(this[_0x118b57(0x1b9)][_0x118b57(0x19f)][_0x118b57(0x1d7)][_0x118b57(0x1cb)]=_0x1409b5?'':_0x118b57(0x165));}[_0x33058d(0x19a)](){const _0x1ca045=_0x33058d;this[_0x1ca045(0x1b9)]?.[_0x1ca045(0x1e2)]&&this[_0x1ca045(0x1c8)]?.[_0x1ca045(0x1e4)]&&this[_0x1ca045(0x1b9)][_0x1ca045(0x19f)]&&this[_0x1ca045(0x1c8)][_0x1ca045(0x1c4)]({'target':this[_0x1ca045(0x1b9)][_0x1ca045(0x19f)],'limiter':document[_0x1ca045(0x198)](_0x1ca045(0x1cd))});}[_0x33058d(0x1bb)](_0xa8c887){const _0x3e1dee=_0x33058d,_0x4bb6f0=this[_0x3e1dee(0x1bf)]?.[_0x3e1dee(0x186)][_0x3e1dee(0x1ec)]()||_0x3e1dee(0x162),_0x4d1ff4=this[_0x3e1dee(0x1bf)]?.[_0x3e1dee(0x17d)];if(_0x4d1ff4){const _0x15ef65=_0x4d1ff4[0x0]||'',_0x4f8953=_0xa8c887[_0x3e1dee(0x198)]('.'+_0x15ef65),_0x15c42d=_0xa8c887[_0x3e1dee(0x198)](_0x4bb6f0);return _0x4f8953||_0x15c42d||_0xa8c887;}return _0xa8c887[_0x3e1dee(0x198)](_0x4bb6f0)||_0xa8c887;}[_0x33058d(0x15a)](){const _0x568974=_0x33058d,_0x23af54=this[_0x568974(0x163)]?.[_0x568974(0x19f)]||this[_0x568974(0x1bf)];if(!_0x23af54)return ln;const _0x8b426a=window[_0x568974(0x1a6)](_0x23af54)[_0x568974(0x176)];if(_0x568974(0x18b)===_0x8b426a||_0x568974(0x172)===_0x8b426a||!_0x8b426a){const _0x118602=_0x23af54[_0x568974(0x166)];if(_0x118602){const _0x396270=window[_0x568974(0x1a6)](_0x118602);return _0x568974(0x18b)!==_0x396270[_0x568974(0x176)]?_0x396270[_0x568974(0x176)]:ln;}return ln;}return _0x8b426a;}[_0x33058d(0x19d)](_0x29ede5,_0x193c16){const _0x5ab073=_0x33058d;this[_0x5ab073(0x1ae)][_0x5ab073(0x16c)][_0x5ab073(0x1c5)]&&_0x29ede5[_0x5ab073(0x17d)][_0x5ab073(0x1be)](this[_0x5ab073(0x1ae)][_0x5ab073(0x16c)][_0x5ab073(0x1c5)]),_0x29ede5[_0x5ab073(0x1d7)][_0x5ab073(0x176)]=_0x193c16,_0x29ede5[_0x5ab073(0x1d7)][_0x5ab073(0x1ea)]=_0x5ab073(0x17f),_0x29ede5[_0x5ab073(0x1d7)][_0x5ab073(0x178)]=_0x5ab073(0x1ba),_0x29ede5[_0x5ab073(0x1d7)][_0x5ab073(0x1e0)]=_0x5ab073(0x1ba),_0x29ede5[_0x5ab073(0x1d7)][_0x5ab073(0x1e9)]='0',_0x29ede5[_0x5ab073(0x1d7)][_0x5ab073(0x1dd)]=_0x5ab073(0x165),_0x29ede5[_0x5ab073(0x1d7)][_0x5ab073(0x175)]='-1',_0x29ede5[_0x5ab073(0x1d7)][_0x5ab073(0x1b7)]=_0x5ab073(0x1ed),_0x29ede5[_0x5ab073(0x1d7)][_0x5ab073(0x1cb)]=_0x5ab073(0x1e6),_0x29ede5[_0x5ab073(0x1d7)][_0x5ab073(0x18e)]=_0x5ab073(0x19c);}[_0x33058d(0x1a0)](_0x31c790){const _0x144f88=_0x33058d;_0x31c790[_0x144f88(0x1a7)](({element:_0x406bb8,originalDisplay:_0x3645bc,originalVisibility:_0x49d414})=>{const _0x486eaf=_0x144f88;_0x406bb8[_0x486eaf(0x1d7)][_0x486eaf(0x1cb)]=_0x3645bc,_0x406bb8[_0x486eaf(0x1d7)][_0x486eaf(0x1b7)]=_0x49d414;});}[_0x33058d(0x170)](_0x2cd133){const _0x29bced=_0x33058d,_0x55e6eb=[];let _0x122dac=_0x2cd133;for(;_0x122dac&&_0x122dac!==document[_0x29bced(0x15e)];){const _0x107f4e=window[_0x29bced(0x1a6)](_0x122dac);_0x29bced(0x165)!==_0x107f4e[_0x29bced(0x1cb)]&&_0x29bced(0x1a2)!==_0x107f4e[_0x29bced(0x1b7)]||(_0x55e6eb[_0x29bced(0x194)]({'element':_0x122dac,'originalDisplay':_0x122dac[_0x29bced(0x1d7)][_0x29bced(0x1cb)],'originalVisibility':_0x122dac[_0x29bced(0x1d7)][_0x29bced(0x1b7)]}),_0x122dac[_0x29bced(0x1d7)][_0x29bced(0x1cb)]=_0x29bced(0x1b0),_0x122dac[_0x29bced(0x1d7)][_0x29bced(0x1b7)]=_0x29bced(0x161)),_0x122dac=_0x122dac[_0x29bced(0x166)];}return _0x55e6eb;}[_0x33058d(0x169)](){const _0x5644ad=_0x33058d;let _0x50e6e4,_0x2df6b0;return this[_0x5644ad(0x163)]?.[_0x5644ad(0x19f)]?(_0x50e6e4=this[_0x5644ad(0x163)][_0x5644ad(0x19f)][_0x5644ad(0x1d8)](!0x0),_0x2df6b0=this[_0x5644ad(0x1bb)](_0x50e6e4)):(_0x50e6e4=document[_0x5644ad(0x15b)](_0x5644ad(0x162)),_0x2df6b0=_0x50e6e4),{'calculationContainer':_0x50e6e4,'targetContainer':_0x2df6b0};}[_0x33058d(0x19e)](){const _0x4c2f02=_0x33058d,{calculationContainer:_0x217eae,targetContainer:_0x25feda}=this[_0x4c2f02(0x169)](),_0x3cb736=this[_0x4c2f02(0x15a)]();this[_0x4c2f02(0x19d)](_0x217eae,_0x3cb736);const _0x156561=this[_0x4c2f02(0x163)]?.[_0x4c2f02(0x19f)]||this[_0x4c2f02(0x1bf)],_0x429559=_0x156561?.[_0x4c2f02(0x166)];_0x429559?_0x429559[_0x4c2f02(0x15c)](_0x217eae):document[_0x4c2f02(0x15e)][_0x4c2f02(0x15c)](_0x217eae),_0x217eae[_0x4c2f02(0x1df)]=_0x25feda;const _0x5a16f6=this[_0x4c2f02(0x170)](_0x429559||null);return _0x217eae[_0x4c2f02(0x1bc)],_0x217eae[_0x4c2f02(0x191)]=_0x5a16f6,_0x217eae;}[_0x33058d(0x192)](_0xeded3d,_0xc2b45e){const _0x35960b=_0x33058d,_0x47036a=_0xeded3d[_0x35960b(0x1df)]||_0xeded3d,_0x2b079f=[],{rowCount:_0x2b6da9}=this[_0x35960b(0x1c1)](_0x47036a,_0xc2b45e);if(_0x2b6da9<=this[_0x35960b(0x1ae)][_0x35960b(0x1d4)])return _0x2b079f;const _0x565895=_0xc2b45e[_0x35960b(0x18d)]();for(;_0x565895[_0x35960b(0x15d)]>0x0;){if(this[_0x35960b(0x193)](_0xeded3d,_0x47036a,_0x565895)){const _0xd0c584=_0xc2b45e[_0x35960b(0x1ab)](_0xc0b1a3=>!_0x565895[_0x35960b(0x17b)](_0xc0b1a3));_0x2b079f[_0x35960b(0x194)](..._0xd0c584);break;}if(!_0x565895[_0x35960b(0x1eb)]())break;}return _0x2b079f;}[_0x33058d(0x1c1)](_0x3d1d08,_0x42e432){const _0x123e34=_0x33058d;_0x3d1d08[_0x123e34(0x1de)]='',_0x42e432[_0x123e34(0x1a7)](_0x1b1acf=>{const _0x1553cb=_0x123e34;if(_0x1b1acf[_0x1553cb(0x19f)]){const _0x397a3b=_0x1b1acf[_0x1553cb(0x19f)][_0x1553cb(0x1d8)](!0x0);_0x3d1d08[_0x1553cb(0x15c)](_0x397a3b);}}),_0x3d1d08[_0x123e34(0x1bc)];const _0x23fbeb=_0x3d1d08[_0x123e34(0x1d5)],_0x16bff0=[];return Array[_0x123e34(0x1d1)](_0x23fbeb)[_0x123e34(0x1a7)](_0x4eb8b0=>{const _0x3c2e85=_0x123e34,_0x17c44d=_0x4eb8b0[_0x3c2e85(0x1da)]()[_0x3c2e85(0x178)];_0x16bff0[_0x3c2e85(0x167)](_0x5d84ae=>Math[_0x3c2e85(0x1e7)](_0x5d84ae-_0x17c44d)<this[_0x3c2e85(0x1ae)][_0x3c2e85(0x1aa)])||_0x16bff0[_0x3c2e85(0x194)](_0x17c44d);}),{'rowCount':_0x16bff0[_0x123e34(0x15d)]};}[_0x33058d(0x187)](){const _0x279211=_0x33058d,_0x237f04=document[_0x279211(0x15b)](_0x279211(0x1ca));return _0x237f04[_0x279211(0x195)]=this[_0x279211(0x1ae)][_0x279211(0x16c)][_0x279211(0x16e)],this[_0x279211(0x1ae)][_0x279211(0x16c)][_0x279211(0x1d3)]&&_0x237f04[_0x279211(0x17d)][_0x279211(0x1be)](this[_0x279211(0x1ae)][_0x279211(0x16c)][_0x279211(0x1d3)]),_0x237f04[_0x279211(0x1bd)]=_0x279211(0x18c),_0x237f04;}[_0x33058d(0x193)](_0x39b88b,_0x28cbb5,_0x57dc4b){const _0x42a37e=_0x33058d;this[_0x42a37e(0x1c1)](_0x28cbb5,_0x57dc4b);const _0x39e8f4=this[_0x42a37e(0x187)]();_0x39b88b[_0x42a37e(0x15c)](_0x39e8f4),_0x39b88b[_0x42a37e(0x1bc)];const _0x258539=[..._0x28cbb5[_0x42a37e(0x1d5)],_0x39e8f4],_0x4bdc5c=[];_0x258539[_0x42a37e(0x1a7)](_0x2999ca=>{const _0x1c204c=_0x42a37e,_0x181263=_0x2999ca[_0x1c204c(0x1da)]()[_0x1c204c(0x178)];_0x4bdc5c[_0x1c204c(0x167)](_0x3f2c91=>Math[_0x1c204c(0x1e7)](_0x3f2c91-_0x181263)<this[_0x1c204c(0x1ae)][_0x1c204c(0x1aa)])||_0x4bdc5c[_0x1c204c(0x194)](_0x181263);});const _0x361907=_0x4bdc5c[_0x42a37e(0x15d)];return _0x39e8f4[_0x42a37e(0x19b)](),_0x361907<=this[_0x42a37e(0x1ae)][_0x42a37e(0x1d4)];}[_0x33058d(0x1a4)](_0x25a408,_0x2fc65c){const _0x3cf54b=_0x33058d;this[_0x3cf54b(0x171)][_0x3cf54b(0x177)](),this[_0x3cf54b(0x17a)][_0x3cf54b(0x177)](),_0x25a408[_0x3cf54b(0x1a7)](_0x20c114=>{const _0x47587d=_0x3cf54b;_0x2fc65c[_0x47587d(0x17b)](_0x20c114)?this[_0x47587d(0x17a)][_0x47587d(0x1be)](_0x20c114):this[_0x47587d(0x171)][_0x47587d(0x1be)](_0x20c114);});}[_0x33058d(0x1d9)](_0x420194){const _0x185115=_0x33058d;if(_0x420194>0x0&&!this[_0x185115(0x1b9)]&&this[_0x185115(0x16b)](),_0x420194>0x0&&this[_0x185115(0x1b9)]){const _0xcfa424=''+this[_0x185115(0x1ae)][_0x185115(0x18f)]+(_0x420194<0x63?_0x420194:'99');this[_0x185115(0x1b9)][_0x185115(0x16a)]=_0xcfa424;}this[_0x185115(0x1b1)](),this[_0x185115(0x1e8)](),this[_0x185115(0x19a)]();}[_0x33058d(0x1d6)](_0x2ecb4d,_0x33ca7a){const _0xc6a350=_0x33058d;this[_0xc6a350(0x1a4)](_0x2ecb4d,_0x33ca7a),this[_0xc6a350(0x1d9)](_0x33ca7a[_0xc6a350(0x15d)]);}[_0x33058d(0x188)](){const _0x301ead=_0x33058d;this[_0x301ead(0x1bf)]&&_0x301ead(0x1b8)!=typeof IntersectionObserver&&(this[_0x301ead(0x17e)]=new IntersectionObserver(_0x52c35e=>{const _0x317f3a=_0x301ead;_0x52c35e[0x0][_0x317f3a(0x1a3)]&&this[_0x317f3a(0x1ac)]&&requestAnimationFrame(()=>{const _0x158f7d=_0x317f3a;this[_0x158f7d(0x179)]();});},{'threshold':0.01,'rootMargin':_0x301ead(0x190)}),this[_0x301ead(0x17e)][_0x301ead(0x196)](this[_0x301ead(0x1bf)]));}[_0x33058d(0x197)](){const _0x42dc7d=_0x33058d;if(!this[_0x42dc7d(0x1bf)])return!0x1;if(!this[_0x42dc7d(0x1bf)][_0x42dc7d(0x1a1)])return!0x1;const _0x3708a8=this[_0x42dc7d(0x1bf)][_0x42dc7d(0x1da)]();if(0x0===_0x3708a8[_0x42dc7d(0x176)]||0x0===_0x3708a8[_0x42dc7d(0x1c9)])return!0x1;const _0x7b783a=window[_0x42dc7d(0x199)]||document[_0x42dc7d(0x1b6)][_0x42dc7d(0x1b5)],_0x3014a3=window[_0x42dc7d(0x1c0)]||document[_0x42dc7d(0x1b6)][_0x42dc7d(0x1c7)],_0x41bb5e=0xc8;return _0x3708a8[_0x42dc7d(0x1db)]>=-0xc8&&_0x3708a8[_0x42dc7d(0x178)]<=_0x7b783a+_0x41bb5e&&_0x3708a8[_0x42dc7d(0x1d0)]>=-0xc8&&_0x3708a8[_0x42dc7d(0x1e0)]<=_0x3014a3+_0x41bb5e;}}function _0x1e50(){const _0x391551=['showMoreButton','178422QOsiVp','_makeAncestorsVisible','_visibleChips','0px','destroy','48TJJFju','zIndex','width','clear','top','_checkAndHandleOverflow','_overflowChips','includes','showMoreBalloon','classList','_intersectionObserver','absolute','6470AYkHvC','hide','3130278OkgszB','_locale','226639fVCUxa','463442pYpvsl','tagName','_createMockButton','_setupVisibilityObserver','render','overflowContainer','auto','+\x201','slice','boxSizing','showMoreLabelPrefix','50px','_ancestorsToRestore','_calculateOverflowInContainer','_testButtonFit','push','className','observe','_isContainerVisible','querySelector','innerHeight','_repinBalloonPanel','remove','border-box','_applyCalculationStyles','_createCalculationContainer','element','_restoreAncestorVisibility','isConnected','hidden','isIntersecting','_distributeChips','setContainerElement','getComputedStyle','forEach','hideBalloonPanel','_createShowMoreButtonView','rowDetectionTolerance','filter','_pendingCalculation','ck-calculation-container','_config','_createShowMoreBalloonPanelView','block','_updateBalloonContent','overflowChips','891813pRBFIt','825XvPWod','clientHeight','documentElement','visibility','undefined','_showMoreButtonView','-9999px','_findTargetContainer','offsetWidth','textContent','add','_containerElement','innerWidth','_renderChipsAndCountRows','execute','showBalloonPanel','pin','calculationContainer','_bodyCollection','clientWidth','_showMoreBalloonPanelView','height','button','display','showMoreButtonView','.ck-ai-chat','content','disconnect','right','from','5868goFFVG','controlsButton','maxVisibleRows','children','_applyOverflowResults','style','cloneNode','_updateOverflowUI','getBoundingClientRect','bottom','reorganizeChips','pointerEvents','innerHTML','_targetContainer','left','disableAnimationOnEnter','isOn','show','isVisible','setTemplate','block\x20!important','abs','_updateShowMoreButtonVisibility','opacity','position','pop','toLowerCase','visible\x20!important','_calculateContainerWidth','createElement','appendChild','length','body','2436SIcZyt','_handleShowMoreButtonClick','visible','div','_parentView','extendTemplate','none','parentElement','some','300px','_createContainerElements','label','_createShowMoreButton','cssClasses','set'];_0x1e50=function(){return _0x391551;};return _0x1e50();}
23
+ const _0x2a80b0=_0x4cc6;(function(_0x4f12b5,_0x1a9631){const _0x59fcdc=_0x4cc6,_0x2eb6e9=_0x4f12b5();while(!![]){try{const _0x4c1829=parseInt(_0x59fcdc(0x163))/0x1*(parseInt(_0x59fcdc(0x170))/0x2)+-parseInt(_0x59fcdc(0x1b8))/0x3*(-parseInt(_0x59fcdc(0x15c))/0x4)+parseInt(_0x59fcdc(0x183))/0x5+-parseInt(_0x59fcdc(0x18a))/0x6*(parseInt(_0x59fcdc(0x129))/0x7)+parseInt(_0x59fcdc(0x18f))/0x8*(-parseInt(_0x59fcdc(0x15f))/0x9)+-parseInt(_0x59fcdc(0x159))/0xa+-parseInt(_0x59fcdc(0x144))/0xb;if(_0x4c1829===_0x1a9631)break;else _0x2eb6e9['push'](_0x2eb6e9['shift']());}catch(_0x3d028c){_0x2eb6e9['push'](_0x2eb6e9['shift']());}}}(_0x2456,0x5cf48));import{View as _0x5b42ce,BalloonPanelView as _0x130dc0,ButtonView as _0x36f47e,clickOutsideHandler as _0x1fe077}from'ckeditor5/src/ui.js';import{Collection as _0x12ea65}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},ln=_0x2a80b0(0x152);export class AIChatChipsOverflowManager{[_0x2a80b0(0x18d)];[_0x2a80b0(0x179)];[_0x2a80b0(0x1a0)];[_0x2a80b0(0x148)];[_0x2a80b0(0x175)]=null;[_0x2a80b0(0x196)]=null;[_0x2a80b0(0x140)]=null;[_0x2a80b0(0x17e)];[_0x2a80b0(0x12d)]=null;[_0x2a80b0(0x130)]=null;[_0x2a80b0(0x156)]=!0x1;constructor(_0x1783e4,_0x55e54e,_0x2edf1d,_0x30bae6,_0x4a796d){const _0x268999=_0x2a80b0;this[_0x268999(0x18d)]=_0x1783e4,this[_0x268999(0x1a0)]=_0x55e54e,this[_0x268999(0x179)]={...hn,..._0x2edf1d,'cssClasses':{'controlsButton':'','calculationContainer':_0x268999(0x158),..._0x2edf1d[_0x268999(0x13f)]}},this[_0x268999(0x148)]=new _0x12ea65(),this[_0x268999(0x17e)]=_0x30bae6,this[_0x268999(0x12d)]=_0x4a796d||null;}[_0x2a80b0(0x192)](_0x5120f6){const _0x5dd3b1=_0x2a80b0;this[_0x5dd3b1(0x130)]&&(this[_0x5dd3b1(0x130)][_0x5dd3b1(0x172)](),this[_0x5dd3b1(0x130)]=null),this[_0x5dd3b1(0x140)]=_0x5120f6,this[_0x5dd3b1(0x12a)]();}get[_0x2a80b0(0x14f)](){const _0x3f3c02=_0x2a80b0;return this[_0x3f3c02(0x175)];}get[_0x2a80b0(0x197)](){const _0xf7ac82=_0x2a80b0;return this[_0xf7ac82(0x148)];}[_0x2a80b0(0x1a5)](){requestAnimationFrame(()=>{const _0x2ba43a=_0x4cc6;this[_0x2ba43a(0x16e)]();});}[_0x2a80b0(0x162)](){const _0x30cabe=_0x2a80b0;this[_0x30cabe(0x175)]&&this[_0x30cabe(0x196)]&&(this[_0x30cabe(0x147)](),this[_0x30cabe(0x175)][_0x30cabe(0x188)]=!0x0,this[_0x30cabe(0x196)][_0x30cabe(0x125)](),this[_0x30cabe(0x196)][_0x30cabe(0x198)]({'target':this[_0x30cabe(0x175)][_0x30cabe(0x1ae)],'limiter':document[_0x30cabe(0x1b7)](_0x30cabe(0x15e))}));}[_0x2a80b0(0x19a)](){const _0x1e64cc=_0x2a80b0;this[_0x1e64cc(0x175)]&&this[_0x1e64cc(0x196)]&&(this[_0x1e64cc(0x175)][_0x1e64cc(0x188)]=!0x1,this[_0x1e64cc(0x196)][_0x1e64cc(0x16c)]());}[_0x2a80b0(0x169)](){const _0x362ad9=_0x2a80b0;this[_0x362ad9(0x148)][_0x362ad9(0x169)](),this[_0x362ad9(0x19a)](),this[_0x362ad9(0x19c)](),this[_0x362ad9(0x175)]&&(this[_0x362ad9(0x175)][_0x362ad9(0x18e)]=''),this[_0x362ad9(0x196)]&&this[_0x362ad9(0x196)][_0x362ad9(0x14a)][_0x362ad9(0x169)]();}[_0x2a80b0(0x1a9)](){const _0x2d780c=_0x2a80b0;this[_0x2d780c(0x130)]&&(this[_0x2d780c(0x130)][_0x2d780c(0x172)](),this[_0x2d780c(0x130)]=null),this[_0x2d780c(0x175)]&&(this[_0x2d780c(0x175)][_0x2d780c(0x1a9)](),this[_0x2d780c(0x175)]=null),this[_0x2d780c(0x196)]&&(this[_0x2d780c(0x196)][_0x2d780c(0x1a9)](),this[_0x2d780c(0x196)]=null);}[_0x2a80b0(0x16e)](){const _0x2508a5=_0x2a80b0;if(!this[_0x2508a5(0x140)])return;if(!this[_0x2508a5(0x1a2)]())return void(this[_0x2508a5(0x156)]=!0x0);this[_0x2508a5(0x156)]=!0x1;const _0x27272a=[...this[_0x2508a5(0x1a0)],...this[_0x2508a5(0x148)]],_0xb501df=this[_0x2508a5(0x154)](),_0x1bed8e=this[_0x2508a5(0x13a)](_0xb501df,_0x27272a),_0x1b7eb9=_0xb501df[_0x2508a5(0x157)];_0x1b7eb9&&this[_0x2508a5(0x14d)](_0x1b7eb9),_0xb501df[_0x2508a5(0x178)](),this[_0x2508a5(0x15d)](_0x27272a,_0x1bed8e);}[_0x2a80b0(0x12c)](){const _0x2b59f8=_0x2a80b0;this[_0x2b59f8(0x175)]=this[_0x2b59f8(0x141)](),this[_0x2b59f8(0x196)]=this[_0x2b59f8(0x184)](),this[_0x2b59f8(0x175)][_0x2b59f8(0x19e)](),this[_0x2b59f8(0x140)][_0x2b59f8(0x1af)](this[_0x2b59f8(0x175)][_0x2b59f8(0x1ae)]),this[_0x2b59f8(0x175)]['on'](_0x2b59f8(0x137),()=>{const _0x3a63cb=_0x2b59f8;this[_0x3a63cb(0x12b)]();}),_0x1fe077({'emitter':this[_0x2b59f8(0x196)],'contextElements':[this[_0x2b59f8(0x196)][_0x2b59f8(0x1ae)],this[_0x2b59f8(0x175)][_0x2b59f8(0x1ae)]],'callback':()=>this[_0x2b59f8(0x19a)](),'activator':()=>this[_0x2b59f8(0x175)][_0x2b59f8(0x188)]});}[_0x2a80b0(0x141)](){const _0x230f8e=_0x2a80b0,_0x7859dd=new _0x36f47e(this[_0x230f8e(0x18d)]);_0x7859dd[_0x230f8e(0x160)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x390e54=[this[_0x230f8e(0x179)][_0x230f8e(0x13f)][_0x230f8e(0x173)]];return this[_0x230f8e(0x179)][_0x230f8e(0x13f)][_0x230f8e(0x1b6)]&&_0x390e54[_0x230f8e(0x19d)](this[_0x230f8e(0x179)][_0x230f8e(0x13f)][_0x230f8e(0x1b6)]),_0x7859dd[_0x230f8e(0x186)]({'attributes':{'class':_0x390e54}}),_0x7859dd;}[_0x2a80b0(0x184)](){const _0x570585=_0x2a80b0,_0x17093f=new _0x130dc0(this[_0x570585(0x18d)]);return _0x17093f[_0x570585(0x186)]({'attributes':{'class':this[_0x570585(0x179)][_0x570585(0x13f)][_0x570585(0x15b)]}}),this[_0x570585(0x17e)][_0x570585(0x194)](_0x17093f),_0x17093f;}[_0x2a80b0(0x147)](){const _0x4375c6=_0x2a80b0;if(this[_0x4375c6(0x196)]&&(this[_0x4375c6(0x196)][_0x4375c6(0x14a)][_0x4375c6(0x169)](),this[_0x4375c6(0x148)][_0x4375c6(0x190)]>0x0)){this[_0x4375c6(0x148)][_0x4375c6(0x155)](_0x430c52=>{const _0x1ec6f6=_0x4375c6;_0x430c52[_0x1ec6f6(0x1b1)]();});const _0x396e0a=new _0x5b42ce(this[_0x4375c6(0x18d)]);_0x396e0a[_0x4375c6(0x1b3)]({'tag':_0x4375c6(0x1b5),'attributes':{'class':this[_0x4375c6(0x179)][_0x4375c6(0x13f)][_0x4375c6(0x132)]},'children':this[_0x4375c6(0x148)]}),this[_0x4375c6(0x196)][_0x4375c6(0x14a)][_0x4375c6(0x194)](_0x396e0a);}}[_0x2a80b0(0x12b)](){const _0x215d93=_0x2a80b0;this[_0x215d93(0x175)][_0x215d93(0x188)]?this[_0x215d93(0x19a)]():this[_0x215d93(0x162)]();}[_0x2a80b0(0x19c)](){const _0x5659a1=_0x2a80b0,_0x320c1b=this[_0x5659a1(0x148)][_0x5659a1(0x190)]>0x0;this[_0x5659a1(0x175)]?.[_0x5659a1(0x1ae)]&&(this[_0x5659a1(0x175)][_0x5659a1(0x1ae)][_0x5659a1(0x136)][_0x5659a1(0x17a)]=_0x320c1b?'':_0x5659a1(0x1b4));}[_0x2a80b0(0x1a6)](){const _0x4cf0a8=_0x2a80b0;this[_0x4cf0a8(0x175)]?.[_0x4cf0a8(0x188)]&&this[_0x4cf0a8(0x196)]?.[_0x4cf0a8(0x133)]&&this[_0x4cf0a8(0x175)][_0x4cf0a8(0x1ae)]&&this[_0x4cf0a8(0x196)][_0x4cf0a8(0x198)]({'target':this[_0x4cf0a8(0x175)][_0x4cf0a8(0x1ae)],'limiter':document[_0x4cf0a8(0x1b7)](_0x4cf0a8(0x15e))});}[_0x2a80b0(0x181)](_0x492bfd){const _0x33d350=_0x2a80b0,_0x45fc44=this[_0x33d350(0x140)]?.[_0x33d350(0x1a4)][_0x33d350(0x195)]()||_0x33d350(0x1b5),_0x404c9e=this[_0x33d350(0x140)]?.[_0x33d350(0x1ad)];if(_0x404c9e){const _0x2c3b44=_0x404c9e[0x0]||'',_0x88ad04=_0x492bfd[_0x33d350(0x1b7)]('.'+_0x2c3b44),_0x3599dc=_0x492bfd[_0x33d350(0x1b7)](_0x45fc44);return _0x88ad04||_0x3599dc||_0x492bfd;}return _0x492bfd[_0x33d350(0x1b7)](_0x45fc44)||_0x492bfd;}[_0x2a80b0(0x171)](){const _0x4eae6b=_0x2a80b0,_0x4c9204=this[_0x4eae6b(0x12d)]?.[_0x4eae6b(0x1ae)]||this[_0x4eae6b(0x140)];if(!_0x4c9204)return ln;const _0x3d42f2=window[_0x4eae6b(0x153)](_0x4c9204)[_0x4eae6b(0x14c)];if(_0x4eae6b(0x187)===_0x3d42f2||_0x4eae6b(0x180)===_0x3d42f2||!_0x3d42f2){const _0x120593=_0x4c9204[_0x4eae6b(0x142)];if(_0x120593){const _0x929e9e=window[_0x4eae6b(0x153)](_0x120593);return _0x4eae6b(0x187)!==_0x929e9e[_0x4eae6b(0x14c)]?_0x929e9e[_0x4eae6b(0x14c)]:ln;}return ln;}return _0x3d42f2;}[_0x2a80b0(0x168)](_0x3be96d,_0x35fef6){const _0x281338=_0x2a80b0;this[_0x281338(0x179)][_0x281338(0x13f)][_0x281338(0x174)]&&_0x3be96d[_0x281338(0x1ad)][_0x281338(0x194)](this[_0x281338(0x179)][_0x281338(0x13f)][_0x281338(0x174)]),_0x3be96d[_0x281338(0x136)][_0x281338(0x14c)]=_0x35fef6,_0x3be96d[_0x281338(0x136)][_0x281338(0x1a7)]=_0x281338(0x164),_0x3be96d[_0x281338(0x136)][_0x281338(0x177)]=_0x281338(0x15a),_0x3be96d[_0x281338(0x136)][_0x281338(0x1a1)]=_0x281338(0x15a),_0x3be96d[_0x281338(0x136)][_0x281338(0x12f)]='0',_0x3be96d[_0x281338(0x136)][_0x281338(0x13c)]=_0x281338(0x1b4),_0x3be96d[_0x281338(0x136)][_0x281338(0x193)]='-1',_0x3be96d[_0x281338(0x136)][_0x281338(0x176)]=_0x281338(0x16f),_0x3be96d[_0x281338(0x136)][_0x281338(0x17a)]=_0x281338(0x14b),_0x3be96d[_0x281338(0x136)][_0x281338(0x134)]=_0x281338(0x16a);}[_0x2a80b0(0x14d)](_0x18acbe){const _0x3b8fca=_0x2a80b0;_0x18acbe[_0x3b8fca(0x155)](({element:_0x417574,originalDisplay:_0x8d0456,originalVisibility:_0x3e8270})=>{const _0x2c2e5b=_0x3b8fca;_0x417574[_0x2c2e5b(0x136)][_0x2c2e5b(0x17a)]=_0x8d0456,_0x417574[_0x2c2e5b(0x136)][_0x2c2e5b(0x176)]=_0x3e8270;});}[_0x2a80b0(0x16d)](_0x22ec54){const _0x2bab8b=_0x2a80b0,_0x5ef4b9=[];let _0x300f38=_0x22ec54;for(;_0x300f38&&_0x300f38!==document[_0x2bab8b(0x166)];){const _0xb3b1ff=window[_0x2bab8b(0x153)](_0x300f38);_0x2bab8b(0x1b4)!==_0xb3b1ff[_0x2bab8b(0x17a)]&&_0x2bab8b(0x1b0)!==_0xb3b1ff[_0x2bab8b(0x176)]||(_0x5ef4b9[_0x2bab8b(0x19d)]({'element':_0x300f38,'originalDisplay':_0x300f38[_0x2bab8b(0x136)][_0x2bab8b(0x17a)],'originalVisibility':_0x300f38[_0x2bab8b(0x136)][_0x2bab8b(0x176)]}),_0x300f38[_0x2bab8b(0x136)][_0x2bab8b(0x17a)]=_0x2bab8b(0x19b),_0x300f38[_0x2bab8b(0x136)][_0x2bab8b(0x176)]=_0x2bab8b(0x1a8)),_0x300f38=_0x300f38[_0x2bab8b(0x142)];}return _0x5ef4b9;}[_0x2a80b0(0x13d)](){const _0x6e7df7=_0x2a80b0;let _0x328624,_0x5ad74a;return this[_0x6e7df7(0x12d)]?.[_0x6e7df7(0x1ae)]?(_0x328624=this[_0x6e7df7(0x12d)][_0x6e7df7(0x1ae)][_0x6e7df7(0x1a3)](!0x0),_0x5ad74a=this[_0x6e7df7(0x181)](_0x328624)):(_0x328624=document[_0x6e7df7(0x1ab)](_0x6e7df7(0x1b5)),_0x5ad74a=_0x328624),{'calculationContainer':_0x328624,'targetContainer':_0x5ad74a};}[_0x2a80b0(0x154)](){const _0x10509c=_0x2a80b0,{calculationContainer:_0x4358f1,targetContainer:_0x274b8d}=this[_0x10509c(0x13d)](),_0x2cde3c=this[_0x10509c(0x171)]();this[_0x10509c(0x168)](_0x4358f1,_0x2cde3c);const _0x3e879c=this[_0x10509c(0x12d)]?.[_0x10509c(0x1ae)]||this[_0x10509c(0x140)],_0x4dfc6e=_0x3e879c?.[_0x10509c(0x142)];_0x4dfc6e?_0x4dfc6e[_0x10509c(0x1af)](_0x4358f1):document[_0x10509c(0x166)][_0x10509c(0x1af)](_0x4358f1),_0x4358f1[_0x10509c(0x150)]=_0x274b8d;const _0xcede7b=this[_0x10509c(0x16d)](_0x4dfc6e||null);return _0x4358f1[_0x10509c(0x143)],_0x4358f1[_0x10509c(0x157)]=_0xcede7b,_0x4358f1;}[_0x2a80b0(0x13a)](_0x4a9cef,_0x392d79){const _0x79539c=_0x2a80b0,_0x1d392d=_0x4a9cef[_0x79539c(0x150)]||_0x4a9cef,_0x1635a4=[],{rowCount:_0x370be6}=this[_0x79539c(0x149)](_0x1d392d,_0x392d79);if(_0x370be6<=this[_0x79539c(0x179)][_0x79539c(0x17d)])return _0x1635a4;const _0xa905e2=_0x392d79[_0x79539c(0x127)]();for(;_0xa905e2[_0x79539c(0x190)]>0x0;){if(this[_0x79539c(0x18c)](_0x4a9cef,_0x1d392d,_0xa905e2)){const _0x40a752=_0x392d79[_0x79539c(0x17b)](_0xd0728c=>!_0xa905e2[_0x79539c(0x135)](_0xd0728c));_0x1635a4[_0x79539c(0x19d)](..._0x40a752);break;}if(!_0xa905e2[_0x79539c(0x1aa)]())break;}return _0x1635a4;}[_0x2a80b0(0x149)](_0x4e4071,_0x4e4f89){const _0x17a831=_0x2a80b0;_0x4e4071[_0x17a831(0x199)]='',_0x4e4f89[_0x17a831(0x155)](_0x3ea258=>{const _0x1b02c9=_0x17a831;if(_0x3ea258[_0x1b02c9(0x1ae)]){const _0x493353=_0x3ea258[_0x1b02c9(0x1ae)][_0x1b02c9(0x1a3)](!0x0);_0x4e4071[_0x1b02c9(0x1af)](_0x493353);}}),_0x4e4071[_0x17a831(0x143)];const _0x936f36=_0x4e4071[_0x17a831(0x13b)],_0x47e737=[];return Array[_0x17a831(0x182)](_0x936f36)[_0x17a831(0x155)](_0x597921=>{const _0x977ddd=_0x17a831,_0x810cfc=_0x597921[_0x977ddd(0x16b)]()[_0x977ddd(0x177)];_0x47e737[_0x977ddd(0x17f)](_0x2a5305=>Math[_0x977ddd(0x126)](_0x2a5305-_0x810cfc)<this[_0x977ddd(0x179)][_0x977ddd(0x128)])||_0x47e737[_0x977ddd(0x19d)](_0x810cfc);}),{'rowCount':_0x47e737[_0x17a831(0x190)]};}[_0x2a80b0(0x18b)](){const _0x1747b7=_0x2a80b0,_0x5e2068=document[_0x1747b7(0x1ab)](_0x1747b7(0x146));return _0x5e2068[_0x1747b7(0x138)]=this[_0x1747b7(0x179)][_0x1747b7(0x13f)][_0x1747b7(0x173)],this[_0x1747b7(0x179)][_0x1747b7(0x13f)][_0x1747b7(0x1b6)]&&_0x5e2068[_0x1747b7(0x1ad)][_0x1747b7(0x194)](this[_0x1747b7(0x179)][_0x1747b7(0x13f)][_0x1747b7(0x1b6)]),_0x5e2068[_0x1747b7(0x185)]=_0x1747b7(0x1b2),_0x5e2068;}[_0x2a80b0(0x18c)](_0x356e72,_0x529745,_0x3bf5e2){const _0xadc35d=_0x2a80b0;this[_0xadc35d(0x149)](_0x529745,_0x3bf5e2);const _0xf4edb6=this[_0xadc35d(0x18b)]();_0x356e72[_0xadc35d(0x1af)](_0xf4edb6),_0x356e72[_0xadc35d(0x143)];const _0x422ad2=[..._0x529745[_0xadc35d(0x13b)],_0xf4edb6],_0x2de828=[];_0x422ad2[_0xadc35d(0x155)](_0x3afd74=>{const _0x356be2=_0xadc35d,_0x1bc33c=_0x3afd74[_0x356be2(0x16b)]()[_0x356be2(0x177)];_0x2de828[_0x356be2(0x17f)](_0xbb25bb=>Math[_0x356be2(0x126)](_0xbb25bb-_0x1bc33c)<this[_0x356be2(0x179)][_0x356be2(0x128)])||_0x2de828[_0x356be2(0x19d)](_0x1bc33c);});const _0x3c9216=_0x2de828[_0xadc35d(0x190)];return _0xf4edb6[_0xadc35d(0x178)](),_0x3c9216<=this[_0xadc35d(0x179)][_0xadc35d(0x17d)];}[_0x2a80b0(0x124)](_0x19f8ce,_0x55fe36){const _0x467651=_0x2a80b0;this[_0x467651(0x1a0)][_0x467651(0x169)](),this[_0x467651(0x148)][_0x467651(0x169)](),_0x19f8ce[_0x467651(0x155)](_0x26ecec=>{const _0x41a4b8=_0x467651;_0x55fe36[_0x41a4b8(0x135)](_0x26ecec)?this[_0x41a4b8(0x148)][_0x41a4b8(0x194)](_0x26ecec):this[_0x41a4b8(0x1a0)][_0x41a4b8(0x194)](_0x26ecec);});}[_0x2a80b0(0x145)](_0x1e02d3){const _0x438661=_0x2a80b0;if(_0x1e02d3>0x0&&!this[_0x438661(0x175)]&&this[_0x438661(0x12c)](),_0x1e02d3>0x0&&this[_0x438661(0x175)]){const _0x1d1dcc=''+this[_0x438661(0x179)][_0x438661(0x131)]+(_0x1e02d3<0x63?_0x1e02d3:'99');this[_0x438661(0x175)][_0x438661(0x18e)]=_0x1d1dcc;}this[_0x438661(0x147)](),this[_0x438661(0x19c)](),this[_0x438661(0x1a6)]();}[_0x2a80b0(0x15d)](_0x1b3185,_0x522df1){const _0xb4398a=_0x2a80b0;this[_0xb4398a(0x124)](_0x1b3185,_0x522df1),this[_0xb4398a(0x145)](_0x522df1[_0xb4398a(0x190)]);}[_0x2a80b0(0x12a)](){const _0x3eb3ce=_0x2a80b0;this[_0x3eb3ce(0x140)]&&_0x3eb3ce(0x139)!=typeof IntersectionObserver&&(this[_0x3eb3ce(0x130)]=new IntersectionObserver(_0x45c704=>{const _0x219570=_0x3eb3ce;_0x45c704[0x0][_0x219570(0x1ac)]&&this[_0x219570(0x156)]&&requestAnimationFrame(()=>{const _0x4aa692=_0x219570;this[_0x4aa692(0x16e)]();});},{'threshold':0.01,'rootMargin':_0x3eb3ce(0x189)}),this[_0x3eb3ce(0x130)][_0x3eb3ce(0x13e)](this[_0x3eb3ce(0x140)]));}[_0x2a80b0(0x1a2)](){const _0x4422cf=_0x2a80b0;if(!this[_0x4422cf(0x140)])return!0x1;if(!this[_0x4422cf(0x140)][_0x4422cf(0x19f)])return!0x1;const _0x4a02df=this[_0x4422cf(0x140)][_0x4422cf(0x16b)]();if(0x0===_0x4a02df[_0x4422cf(0x14c)]||0x0===_0x4a02df[_0x4422cf(0x191)])return!0x1;const _0x450e62=window[_0x4422cf(0x167)]||document[_0x4422cf(0x14e)][_0x4422cf(0x161)],_0x197a15=window[_0x4422cf(0x17c)]||document[_0x4422cf(0x14e)][_0x4422cf(0x165)],_0x1a5438=0xc8;return _0x4a02df[_0x4422cf(0x12e)]>=-0xc8&&_0x4a02df[_0x4422cf(0x177)]<=_0x450e62+_0x1a5438&&_0x4a02df[_0x4422cf(0x151)]>=-0xc8&&_0x4a02df[_0x4422cf(0x1a1)]<=_0x197a15+_0x1a5438;}}function _0x4cc6(_0x26a4d7,_0x47ce57){const _0x245691=_0x2456();return _0x4cc6=function(_0x4cc63f,_0x76da59){_0x4cc63f=_0x4cc63f-0x124;let _0x539539=_0x245691[_0x4cc63f];return _0x539539;},_0x4cc6(_0x26a4d7,_0x47ce57);}function _0x2456(){const _0x499cfd=['showMoreLabelPrefix','overflowContainer','isVisible','boxSizing','includes','style','execute','className','undefined','_calculateOverflowInContainer','children','pointerEvents','_createContainerElements','observe','cssClasses','_containerElement','_createShowMoreButtonView','parentElement','offsetWidth','5963254exqRJE','_updateOverflowUI','button','_updateBalloonContent','_overflowChips','_renderChipsAndCountRows','content','block\x20!important','width','_restoreAncestorVisibility','documentElement','showMoreButtonView','_targetContainer','right','300px','getComputedStyle','_createCalculationContainer','forEach','_pendingCalculation','_ancestorsToRestore','ck-calculation-container','3285390IwHufT','-9999px','showMoreBalloon','2945284VXeAqP','_applyOverflowResults','.ck-ai-chat','758826HuBCZz','set','clientHeight','showBalloonPanel','3909kUMdHb','absolute','clientWidth','body','innerHeight','_applyCalculationStyles','clear','border-box','getBoundingClientRect','hide','_makeAncestorsVisible','_checkAndHandleOverflow','visible\x20!important','346JCAADf','_calculateContainerWidth','disconnect','showMoreButton','calculationContainer','_showMoreButtonView','visibility','top','remove','_config','display','filter','innerWidth','maxVisibleRows','_bodyCollection','some','0px','_findTargetContainer','from','389770pnxkod','_createShowMoreBalloonPanelView','textContent','extendTemplate','auto','isOn','50px','6vFgZVZ','_createMockButton','_testButtonFit','_locale','label','8nPJAUb','length','height','setContainerElement','zIndex','add','toLowerCase','_showMoreBalloonPanelView','overflowChips','pin','innerHTML','hideBalloonPanel','block','_updateShowMoreButtonVisibility','push','render','isConnected','_visibleChips','left','_isContainerVisible','cloneNode','tagName','reorganizeChips','_repinBalloonPanel','position','visible','destroy','pop','createElement','isIntersecting','classList','element','appendChild','hidden','disableAnimationOnEnter','+\x201','setTemplate','none','div','controlsButton','querySelector','3PGvOQC','_distributeChips','show','abs','slice','rowDetectionTolerance','1083747sNxQpp','_setupVisibilityObserver','_handleShowMoreButtonClick','_createShowMoreButton','_parentView','bottom','opacity','_intersectionObserver'];_0x2456=function(){return _0x499cfd;};return _0x2456();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47a81b=_0x4334;(function(_0x5885af,_0x466b17){const _0x544f29=_0x4334,_0x2269ee=_0x5885af();while(!![]){try{const _0x529c59=-parseInt(_0x544f29(0xae))/0x1*(parseInt(_0x544f29(0x90))/0x2)+-parseInt(_0x544f29(0x8a))/0x3+parseInt(_0x544f29(0x75))/0x4*(parseInt(_0x544f29(0x8f))/0x5)+parseInt(_0x544f29(0xa9))/0x6*(parseInt(_0x544f29(0x93))/0x7)+-parseInt(_0x544f29(0x82))/0x8+-parseInt(_0x544f29(0x9e))/0x9+parseInt(_0x544f29(0x9d))/0xa;if(_0x529c59===_0x466b17)break;else _0x2269ee['push'](_0x2269ee['shift']());}catch(_0x888f10){_0x2269ee['push'](_0x2269ee['shift']());}}}(_0x489c,0x2a417));function _0x4334(_0x98c4de,_0x1a5f4a){const _0x489c34=_0x489c();return _0x4334=function(_0x43344b,_0x27eaae){_0x43344b=_0x43344b-0x70;let _0x2c01e6=_0x489c34[_0x43344b];return _0x2c01e6;},_0x4334(_0x98c4de,_0x1a5f4a);}import{ButtonView as _0x55a2fe,IconView as _0x9c2db}from'ckeditor5/src/ui.js';function _0x489c(){const _0x487554=['slice','isVisible','ck-ai-chat-context-chip','_createLabelElement','render','464034DtagnR','webkitAnimationEnd','div','disableAnimationOnEnter','readonly','1465EkMczk','92350wotLlY','removeContextItemChip','ck-ai-chat-context-controls__chip-tooltip','60494PkihBI','_createRemoveButton','set','removeEventListener','uiId','document','ck-ai-chat-context-chip__type-icon','_createTemplateAttributes','animationend','content','1709480bWttlD','1271502XBEECq','small','ck-ai-chat-context-chip_new-chip','ck-ai-chat-context-chip_document','length','setTemplate','bindTemplate','itemType','lastIndexOf','addEventListener','_createLoaderIcon','198xgPmek','_initializeProperties','fire','isLoading','_createTemplateChildren','4ZpwWXJ','span','ck-hidden','selection','execute','classList','_isAnimationOnEnterEnabled','extendTemplate','_setupRemoveButtonEvent','3280hOcmIA','tooltip','_handleAnimationEndOnce','type','label','locale','bind','_createIconView','_setupTemplate','element','ck-ai-chat-context-chip_wide','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','ck-ai-chat-context-chip__label','341272KZKeLX','add','remove'];_0x489c=function(){return _0x487554;};return _0x489c();}import{IconClose as _0x35f73b,IconDocument as _0x11fe2b,IconFileUpload as _0x76241c,IconLink as _0x5d75d7,IconSelection as _0x256004}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5dc309}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x190b14}from'../../../aicore/ui/aispinner.js';const kn={'file':_0x76241c,'document':_0x11fe2b,'web-resource':_0x5d75d7,'text':_0x76241c,'selection':_0x256004},xn=_0x47a81b(0x87),bn=_0x47a81b(0x7f),wn=_0x47a81b(0xa1),Tn=_0x47a81b(0x81),En=_0x47a81b(0x99),fn=_0x47a81b(0x92),An='n';export class AIChatContextItemButtonView extends _0x55a2fe{constructor(_0x52aca1,_0x4b8ffc,_0x20f431,_0x18b607,_0x3186c9=!0x1){const _0x384a3e=_0x47a81b;super(_0x52aca1),this[_0x384a3e(0x72)]=_0x18b607,this[_0x384a3e(0xaa)](_0x4b8ffc,_0x20f431,_0x3186c9),this[_0x384a3e(0x7d)]();}[_0x47a81b(0x89)](){const _0xd4bcf3=_0x47a81b;super[_0xd4bcf3(0x89)](),this[_0xd4bcf3(0x72)]&&this[_0xd4bcf3(0x7e)]&&(this[_0xd4bcf3(0x7e)][_0xd4bcf3(0x71)][_0xd4bcf3(0x83)](_0xd4bcf3(0xa0)),this[_0xd4bcf3(0x77)](this[_0xd4bcf3(0x7e)],()=>{const _0x1c4a38=_0xd4bcf3;this[_0x1c4a38(0x7e)]&&this[_0x1c4a38(0x7e)][_0x1c4a38(0x71)][_0x1c4a38(0x84)](_0x1c4a38(0xa0));}));}[_0x47a81b(0x8d)](){const _0x15bc52=_0x47a81b;this[_0x15bc52(0x72)]=!0x1,this[_0x15bc52(0x7e)]&&this[_0x15bc52(0x7e)][_0x15bc52(0x71)][_0x15bc52(0x84)](_0x15bc52(0xa0));}[_0x47a81b(0xaa)](_0x4a5ecd,_0x4b2a0e,_0x3907c4){const _0x4d5935=_0x47a81b;this[_0x4d5935(0x95)](_0x4d5935(0x79),_0x4a5ecd[_0x4d5935(0x79)]),this[_0x4d5935(0x95)](_0x4d5935(0x76),!0x0),this[_0x4d5935(0x95)](_0x4d5935(0xa5),_0x4a5ecd[_0x4d5935(0x78)]),this[_0x4d5935(0x95)]('id',_0x4a5ecd[_0x4d5935(0x97)]),this[_0x4d5935(0x95)](_0x4d5935(0x8e),_0x4b2a0e),this[_0x4d5935(0x95)](_0x4d5935(0xac),_0x3907c4);}[_0x47a81b(0x7d)](){const _0x263d7e=_0x47a81b,_0x123cde=this[_0x263d7e(0x7c)](),_0x4aec54=this[_0x263d7e(0x94)](),_0x2ea252=this[_0x263d7e(0xa4)];this[_0x263d7e(0xa3)]({'tag':_0x263d7e(0x8c),'attributes':this[_0x263d7e(0x9a)](_0x2ea252),'children':this[_0x263d7e(0xad)](_0x123cde,_0x4aec54,_0x2ea252)});}[_0x47a81b(0x9a)](_0x30dc68){const _0x1f8502=_0x47a81b;return{'class':[xn,_0x30dc68['if'](_0x1f8502(0xa5),wn,_0x41a8b5=>_0x1f8502(0x98)==_0x41a8b5),_0x30dc68['if'](_0x1f8502(0xa5),bn,_0x1fbacf=>_0x1f8502(0xb1)==_0x1fbacf)],'data-cke-tooltip-text':_0x30dc68['to'](_0x1f8502(0x79),Cn),'data-cke-tooltip-position':An,'data-cke-tooltip-class':fn};}[_0x47a81b(0xad)](_0x40625e,_0x2c7833,_0x5f5487){const _0x10f110=_0x47a81b,_0x2f5acc=this[_0x10f110(0x88)](_0x5f5487),_0x4a7ee8=this[_0x10f110(0xa8)]();return this[_0x10f110(0x8e)]?[_0x40625e,_0x2f5acc]:[_0x40625e,_0x4a7ee8,_0x2f5acc,_0x2c7833];}[_0x47a81b(0x88)](_0x2de207){const _0x4df353=_0x47a81b;return{'tag':_0x4df353(0xaf),'attributes':{'class':Tn},'children':[{'text':_0x2de207['to'](_0x4df353(0x79))}]};}[_0x47a81b(0x94)](){const _0x26f426=_0x47a81b,_0x48a378=new _0x55a2fe(this[_0x26f426(0x7a)]);return _0x48a378[_0x26f426(0x95)]({'label':_0x5dc309(this[_0x26f426(0x7a)],_0x26f426(0x80)),'icon':_0x35f73b}),this[_0x26f426(0x74)](_0x48a378),_0x48a378;}[_0x47a81b(0x74)](_0x1c3293){const _0xa2b8e4=_0x47a81b;_0x1c3293['on'](_0xa2b8e4(0x70),()=>{const _0x37fa3f=_0xa2b8e4;this[_0x37fa3f(0xab)](_0x37fa3f(0x91),this['id']);});}[_0x47a81b(0x7c)](){const _0x24a49a=_0x47a81b,_0x556913=this[_0x24a49a(0xa4)],_0x34a352=new _0x9c2db();return _0x34a352[_0x24a49a(0x9c)]=kn[this[_0x24a49a(0xa5)]],_0x34a352[_0x24a49a(0x73)]({'attributes':{'class':[En,_0x556913['if'](_0x24a49a(0xac),_0x24a49a(0xb0),_0x59d80f=>_0x59d80f)]}}),_0x34a352;}[_0x47a81b(0x77)](_0x49333b,_0x58136b){const _0x441bc0=_0x47a81b;if(!_0x49333b)return;const _0x1ab6ec=()=>{const _0x5a5c6a=_0x4334;_0x58136b(),_0x49333b[_0x5a5c6a(0x96)](_0x5a5c6a(0x9b),_0x1ab6ec),_0x49333b[_0x5a5c6a(0x96)](_0x5a5c6a(0x8b),_0x1ab6ec);};_0x49333b[_0x441bc0(0xa7)](_0x441bc0(0x9b),_0x1ab6ec),_0x49333b[_0x441bc0(0xa7)](_0x441bc0(0x8b),_0x1ab6ec);}[_0x47a81b(0xa8)](){const _0x23af58=_0x47a81b,_0x2b61e2=new _0x190b14(_0x23af58(0x9f));return _0x2b61e2[_0x23af58(0x7b)](_0x23af58(0x86))['to'](this,_0x23af58(0xac),_0x56fc6a=>_0x56fc6a),_0x2b61e2;}}function Cn(_0x26f1a8){const _0x532acc=_0x47a81b;if(!_0x26f1a8)return _0x26f1a8;if(_0x26f1a8[_0x532acc(0xa2)]<=0x78)return _0x26f1a8;const _0x538dbc=_0x26f1a8[_0x532acc(0x85)](0x0,0x78),_0x2f570b=_0x538dbc[_0x532acc(0xa6)]('\x20');return(_0x2f570b>0x0?_0x538dbc[_0x532acc(0x85)](0x0,_0x2f570b):_0x538dbc)+'…';}
23
+ const _0x5c9483=_0x4be8;function _0x1902(){const _0x48ccbd=['_createIconView','removeEventListener','type','selection','extendTemplate','length','_initializeProperties','ck-ai-chat-context-chip_new-chip','2445642lQpfzO','20ASsZhQ','ck-hidden','2796170xSVbTB','render','_createLabelElement','_isAnimationOnEnterEnabled','isLoading','execute','setTemplate','disableAnimationOnEnter','7qwGiRj','_handleAnimationEndOnce','lastIndexOf','span','bindTemplate','_setupRemoveButtonEvent','4315752vpcPJC','document','small','locale','animationend','_createTemplateAttributes','removeContextItemChip','add','readonly','_createTemplateChildren','fire','18506952vyqvmk','label','316264nyqmqE','310145jbUBdF','webkitAnimationEnd','_createRemoveButton','set','bind','element','_createLoaderIcon','itemType','addEventListener','ck-ai-chat-context-controls__chip-tooltip','ck-ai-chat-context-chip__label','slice','remove','ck-ai-chat-context-chip__type-icon','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','ck-ai-chat-context-chip','tooltip','ck-ai-chat-context-chip_wide','isVisible','ck-ai-chat-context-chip_document','content','_setupTemplate','div','192192iFESzb','uiId','classList'];_0x1902=function(){return _0x48ccbd;};return _0x1902();}(function(_0x4dd921,_0x4c4ec1){const _0x2d5536=_0x4be8,_0x1a13ce=_0x4dd921();while(!![]){try{const _0x30355e=-parseInt(_0x2d5536(0x14b))/0x1+-parseInt(_0x2d5536(0x12d))/0x2*(parseInt(_0x2d5536(0x121))/0x3)+-parseInt(_0x2d5536(0x14a))/0x4+-parseInt(_0x2d5536(0x12f))/0x5+-parseInt(_0x2d5536(0x12c))/0x6*(-parseInt(_0x2d5536(0x137))/0x7)+-parseInt(_0x2d5536(0x13d))/0x8+parseInt(_0x2d5536(0x148))/0x9;if(_0x30355e===_0x4c4ec1)break;else _0x1a13ce['push'](_0x1a13ce['shift']());}catch(_0xcf6729){_0x1a13ce['push'](_0x1a13ce['shift']());}}}(_0x1902,0x51e15));import{ButtonView as _0x399890,IconView as _0x400688}from'ckeditor5/src/ui.js';function _0x4be8(_0x3979ae,_0x2a62dd){const _0x190252=_0x1902();return _0x4be8=function(_0x4be870,_0x2660ca){_0x4be870=_0x4be870-0x11a;let _0x2f1fc2=_0x190252[_0x4be870];return _0x2f1fc2;},_0x4be8(_0x3979ae,_0x2a62dd);}import{IconClose as _0x1f9e91,IconDocument as _0x549ea3,IconFileUpload as _0x205307,IconLink as _0x299f15,IconSelection as _0x7bbd5e}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2a5cad}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x15d813}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x205307,'document':_0x549ea3,'web-resource':_0x299f15,'text':_0x205307,'selection':_0x7bbd5e},bn=_0x5c9483(0x15a),wn=_0x5c9483(0x11b),Tn=_0x5c9483(0x11d),En=_0x5c9483(0x155),fn=_0x5c9483(0x158),An=_0x5c9483(0x154),Cn='n';export class AIChatContextItemButtonView extends _0x399890{constructor(_0xea27f6,_0x9b47ef,_0x2e7806,_0x84e319,_0x2a8be0=!0x1){const _0x54f884=_0x5c9483;super(_0xea27f6),this[_0x54f884(0x132)]=_0x84e319,this[_0x54f884(0x12a)](_0x9b47ef,_0x2e7806,_0x2a8be0),this[_0x54f884(0x11f)]();}[_0x5c9483(0x130)](){const _0x116074=_0x5c9483;super[_0x116074(0x130)](),this[_0x116074(0x132)]&&this[_0x116074(0x150)]&&(this[_0x116074(0x150)][_0x116074(0x123)][_0x116074(0x144)](_0x116074(0x12b)),this[_0x116074(0x138)](this[_0x116074(0x150)],()=>{const _0x2313bc=_0x116074;this[_0x2313bc(0x150)]&&this[_0x2313bc(0x150)][_0x2313bc(0x123)][_0x2313bc(0x157)](_0x2313bc(0x12b));}));}[_0x5c9483(0x136)](){const _0x48f841=_0x5c9483;this[_0x48f841(0x132)]=!0x1,this[_0x48f841(0x150)]&&this[_0x48f841(0x150)][_0x48f841(0x123)][_0x48f841(0x157)](_0x48f841(0x12b));}[_0x5c9483(0x12a)](_0x40b6bd,_0x1b2a72,_0x483f6d){const _0x731e32=_0x5c9483;this[_0x731e32(0x14e)](_0x731e32(0x149),_0x40b6bd[_0x731e32(0x149)]),this[_0x731e32(0x14e)](_0x731e32(0x11a),!0x0),this[_0x731e32(0x14e)](_0x731e32(0x152),_0x40b6bd[_0x731e32(0x126)]),this[_0x731e32(0x14e)]('id',_0x40b6bd[_0x731e32(0x122)]),this[_0x731e32(0x14e)](_0x731e32(0x145),_0x1b2a72),this[_0x731e32(0x14e)](_0x731e32(0x133),_0x483f6d);}[_0x5c9483(0x11f)](){const _0x538ab7=_0x5c9483,_0x596027=this[_0x538ab7(0x124)](),_0x3b223f=this[_0x538ab7(0x14d)](),_0x255ba6=this[_0x538ab7(0x13b)];this[_0x538ab7(0x135)]({'tag':_0x538ab7(0x120),'attributes':this[_0x538ab7(0x142)](_0x255ba6),'children':this[_0x538ab7(0x146)](_0x596027,_0x3b223f,_0x255ba6)});}[_0x5c9483(0x142)](_0x2434ea){const _0x1c7157=_0x5c9483;return{'class':[bn,_0x2434ea['if'](_0x1c7157(0x152),Tn,_0x114cd9=>_0x1c7157(0x13e)==_0x114cd9),_0x2434ea['if'](_0x1c7157(0x152),wn,_0x4f20e4=>_0x1c7157(0x127)==_0x4f20e4)],'data-cke-tooltip-text':_0x2434ea['to'](_0x1c7157(0x149),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x5c9483(0x146)](_0x3cd9e7,_0x37652a,_0x48811b){const _0x4ee01b=_0x5c9483,_0x256712=this[_0x4ee01b(0x131)](_0x48811b),_0x6a1768=this[_0x4ee01b(0x151)]();return this[_0x4ee01b(0x145)]?[_0x3cd9e7,_0x256712]:[_0x3cd9e7,_0x6a1768,_0x256712,_0x37652a];}[_0x5c9483(0x131)](_0x1638e2){const _0x30a6d5=_0x5c9483;return{'tag':_0x30a6d5(0x13a),'attributes':{'class':En},'children':[{'text':_0x1638e2['to'](_0x30a6d5(0x149))}]};}[_0x5c9483(0x14d)](){const _0x4a8f8b=_0x5c9483,_0x215690=new _0x399890(this[_0x4a8f8b(0x140)]);return _0x215690[_0x4a8f8b(0x14e)]({'label':_0x2a5cad(this[_0x4a8f8b(0x140)],_0x4a8f8b(0x159)),'icon':_0x1f9e91}),this[_0x4a8f8b(0x13c)](_0x215690),_0x215690;}[_0x5c9483(0x13c)](_0x32be53){const _0x10ddf3=_0x5c9483;_0x32be53['on'](_0x10ddf3(0x134),()=>{const _0x57ef2e=_0x10ddf3;this[_0x57ef2e(0x147)](_0x57ef2e(0x143),this['id']);});}[_0x5c9483(0x124)](){const _0x306f6c=_0x5c9483,_0x27ede2=this[_0x306f6c(0x13b)],_0x58b358=new _0x400688();return _0x58b358[_0x306f6c(0x11e)]=xn[this[_0x306f6c(0x152)]],_0x58b358[_0x306f6c(0x128)]({'attributes':{'class':[fn,_0x27ede2['if'](_0x306f6c(0x133),_0x306f6c(0x12e),_0x43cbc9=>_0x43cbc9)]}}),_0x58b358;}[_0x5c9483(0x138)](_0x18d9fe,_0x4aa186){const _0x3db8ec=_0x5c9483;if(!_0x18d9fe)return;const _0x47fb96=()=>{const _0x48dc30=_0x4be8;_0x4aa186(),_0x18d9fe[_0x48dc30(0x125)](_0x48dc30(0x141),_0x47fb96),_0x18d9fe[_0x48dc30(0x125)](_0x48dc30(0x14c),_0x47fb96);};_0x18d9fe[_0x3db8ec(0x153)](_0x3db8ec(0x141),_0x47fb96),_0x18d9fe[_0x3db8ec(0x153)](_0x3db8ec(0x14c),_0x47fb96);}[_0x5c9483(0x151)](){const _0x5dac21=_0x5c9483,_0x4ba451=new _0x15d813(_0x5dac21(0x13f));return _0x4ba451[_0x5dac21(0x14f)](_0x5dac21(0x11c))['to'](this,_0x5dac21(0x133),_0x5ed2fd=>_0x5ed2fd),_0x4ba451;}}function In(_0x34d083){const _0x444f57=_0x5c9483;if(!_0x34d083)return _0x34d083;if(_0x34d083[_0x444f57(0x129)]<=0x78)return _0x34d083;const _0xfb2fec=_0x34d083[_0x444f57(0x156)](0x0,0x78),_0x363617=_0xfb2fec[_0x444f57(0x139)]('\x20');return(_0x363617>0x0?_0xfb2fec[_0x444f57(0x156)](0x0,_0x363617):_0xfb2fec)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2cbfeb=_0x5627;(function(_0x1ee553,_0x45c59e){const _0x4ccc78=_0x5627,_0x345c49=_0x1ee553();while(!![]){try{const _0x25a284=parseInt(_0x4ccc78(0x110))/0x1*(parseInt(_0x4ccc78(0x11d))/0x2)+parseInt(_0x4ccc78(0x136))/0x3*(-parseInt(_0x4ccc78(0x143))/0x4)+parseInt(_0x4ccc78(0x11b))/0x5*(parseInt(_0x4ccc78(0x137))/0x6)+-parseInt(_0x4ccc78(0x10b))/0x7+-parseInt(_0x4ccc78(0x11c))/0x8*(-parseInt(_0x4ccc78(0x12c))/0x9)+-parseInt(_0x4ccc78(0x135))/0xa+-parseInt(_0x4ccc78(0x105))/0xb*(-parseInt(_0x4ccc78(0x129))/0xc);if(_0x25a284===_0x45c59e)break;else _0x345c49['push'](_0x345c49['shift']());}catch(_0x43b706){_0x345c49['push'](_0x345c49['shift']());}}}(_0x38ea,0xe8c65));import{FocusTracker as _0x572647,KeystrokeHandler as _0x5d65e8}from'ckeditor5/src/utils.js';import{ButtonView as _0xdf7025,FocusCycler as _0x228dbe,LabeledFieldView as _0x148670,View as _0x5e0de9,FormHeaderView as _0x4fb5a8,createLabeledInputText as _0x52e909,submitHandler as _0x244e5e}from'ckeditor5/src/ui.js';import{IconCheck as _0x30c868,IconPreviousArrow as _0x18c470}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2006ee}from'../../../aicore/utils/common-translations.js';function _0x5627(_0x234398,_0x4f8291){const _0x38eaae=_0x38ea();return _0x5627=function(_0x562775,_0x224fd3){_0x562775=_0x562775-0xf9;let _0x166c63=_0x38eaae[_0x562775];return _0x166c63;},_0x5627(_0x234398,_0x4f8291);}const eh=_0x2cbfeb(0x101),hh=_0x2cbfeb(0x115);function _0x38ea(){const _0x23ed11=['ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','_setupEventHandlers','focus','15ZpuanS','5240264OtxPkm','404582KaqlVV','_focusables','forEach','AI_CHAT_CONTEXT_URL_ADD_URL','length','_createConfirmButton','submit','clearError','_setupKeystrokes','div','_isValidUrl','ck-labeled-field-view_empty','84hfoLWN','AI_CHAT_CONTEXT_URL_INVALID_ERROR','refreshBalloon','9xhOvzF','children','value','render','_updateConfirmButtonState','cancel','_createUrlInputField','createCollection','fieldView','10707260aQFrQd','357fbczQG','513390MUoqPh','_createBackButton','element','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_setupTemplate','setError','errorText','_handleSubmit','submitUrl','getValue','focusTracker','focusCycler','49976hDgAUY','execute','clear','trim','confirmButton','listenTo','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','input','esc','ck-ai-chat-context-controls__url-form','ck-button-icon\x20ck-button-back','fire','destroy','5937811XwvOTg','tab','AI_CHAT_CONTEXT_URL_LABEL','backButton','set','shift+tab','12503757DKOYXg','urlInputField','setTemplate','AI_CHAT_CONTEXT_URL_PLACEHOLDER','keystrokes','3uVcDXf','ck-button-icon','add','isEnabled','locale','ck-ai-chat-context-controls__url-input-section','stop','form'];_0x38ea=function(){return _0x23ed11;};return _0x38ea();}export class AIChatContextPanelUrlInputView extends _0x5e0de9{[_0x2cbfeb(0x141)];[_0x2cbfeb(0x10f)];[_0x2cbfeb(0x11e)];[_0x2cbfeb(0x142)];[_0x2cbfeb(0x10c)];[_0x2cbfeb(0x108)];[_0x2cbfeb(0xfc)];constructor(_0x29ce8b){const _0x3a1e5=_0x2cbfeb;super(_0x29ce8b),this[_0x3a1e5(0x141)]=new _0x572647(),this[_0x3a1e5(0x10f)]=new _0x5d65e8(),this[_0x3a1e5(0x108)]=this[_0x3a1e5(0x138)](),this[_0x3a1e5(0x10c)]=this[_0x3a1e5(0x132)](),this[_0x3a1e5(0xfc)]=this[_0x3a1e5(0x122)](),this[_0x3a1e5(0x11e)]=this[_0x3a1e5(0x133)]([this[_0x3a1e5(0x108)],this[_0x3a1e5(0x10c)],this[_0x3a1e5(0xfc)]]),this[_0x3a1e5(0x142)]=new _0x228dbe({'focusables':this[_0x3a1e5(0x11e)],'focusTracker':this[_0x3a1e5(0x141)],'keystrokeHandler':this[_0x3a1e5(0x10f)],'actions':{'focusPrevious':_0x3a1e5(0x10a),'focusNext':_0x3a1e5(0x106)}}),this[_0x3a1e5(0x13b)](),this[_0x3a1e5(0x119)](),this[_0x3a1e5(0x125)]();}[_0x2cbfeb(0x12f)](){const _0x4e64be=_0x2cbfeb;super[_0x4e64be(0x12f)](),this[_0x4e64be(0x11e)][_0x4e64be(0x11f)](_0xc9e44b=>{const _0x14220b=_0x4e64be;this[_0x14220b(0x141)][_0x14220b(0x112)](_0xc9e44b[_0x14220b(0x139)]),this[_0x14220b(0x10f)][_0x14220b(0xfd)](_0xc9e44b[_0x14220b(0x139)]);}),_0x244e5e({'view':this}),this[_0x4e64be(0x11a)]();}[_0x2cbfeb(0x104)](){const _0x3c30c3=_0x2cbfeb;super[_0x3c30c3(0x104)](),this[_0x3c30c3(0x141)][_0x3c30c3(0x104)](),this[_0x3c30c3(0x10f)][_0x3c30c3(0x104)]();}[_0x2cbfeb(0x11a)](){const _0x12e2ea=_0x2cbfeb;this[_0x12e2ea(0x10c)][_0x12e2ea(0x11a)]();}[_0x2cbfeb(0x140)](){const _0x20f873=_0x2cbfeb;return this[_0x20f873(0x10c)][_0x20f873(0x134)][_0x20f873(0x139)]?.[_0x20f873(0x12e)]?.[_0x20f873(0xfb)]()||'';}[_0x2cbfeb(0xfa)](){const _0x41804a=_0x2cbfeb;this[_0x41804a(0x10c)][_0x41804a(0x134)][_0x41804a(0x139)][_0x41804a(0x12e)]='',this[_0x41804a(0x10c)][_0x41804a(0x13d)]=null,this[_0x41804a(0xfc)][_0x41804a(0x113)]=!0x1;}[_0x2cbfeb(0x13c)](_0x38262b){const _0x583720=_0x2cbfeb;this[_0x583720(0x10c)][_0x583720(0x13d)]=_0x38262b,this[_0x583720(0x130)](),this[_0x583720(0x103)](_0x583720(0x12b));}[_0x2cbfeb(0x124)](){const _0x433f8e=_0x2cbfeb;this[_0x433f8e(0x10c)][_0x433f8e(0x13d)]=null,this[_0x433f8e(0x130)]();}[_0x2cbfeb(0x138)](){const _0x4723c2=_0x2cbfeb,_0x26382b=new _0xdf7025(this[_0x4723c2(0x114)]);return _0x26382b[_0x4723c2(0x109)]({'icon':_0x18c470,'tooltip':_0x2006ee(this[_0x4723c2(0x114)],_0x4723c2(0xfe)),'tooltipPosition':'n','class':_0x4723c2(0x102)}),_0x26382b;}[_0x2cbfeb(0x132)](){const _0x4475ed=_0x2cbfeb,_0x4e0ef2=new _0x148670(this[_0x4475ed(0x114)],_0x52e909);return _0x4e0ef2[_0x4475ed(0x109)]({'label':_0x2006ee(this[_0x4475ed(0x114)],_0x4475ed(0x107)),'class':_0x4475ed(0x128)}),_0x4e0ef2[_0x4475ed(0x134)][_0x4475ed(0x109)]({'placeholder':_0x2006ee(this[_0x4475ed(0x114)],_0x4475ed(0x10e))}),_0x4e0ef2;}[_0x2cbfeb(0x122)](){const _0x766179=_0x2cbfeb,_0x27b263=new _0xdf7025(this[_0x766179(0x114)]);return _0x27b263[_0x766179(0x109)]({'icon':_0x30c868,'tooltip':_0x2006ee(this[_0x766179(0x114)],_0x766179(0x120)),'tooltipPosition':'n','class':_0x766179(0x111),'type':_0x766179(0x123),'isEnabled':!0x1}),_0x27b263;}[_0x2cbfeb(0x13b)](){const _0x2400dd=_0x2cbfeb,_0x35173d=new _0x4fb5a8(this[_0x2400dd(0x114)],{'label':_0x2006ee(this[_0x2400dd(0x114)],_0x2400dd(0x120)),'class':_0x2400dd(0x118)});_0x35173d[_0x2400dd(0x12d)][_0x2400dd(0x112)](this[_0x2400dd(0x108)],0x0),this[_0x2400dd(0x10d)]({'tag':_0x2400dd(0x117),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x35173d,{'tag':_0x2400dd(0x126),'attributes':{'class':hh},'children':[this[_0x2400dd(0x10c)],this[_0x2400dd(0xfc)]]}]});}[_0x2cbfeb(0x119)](){const _0x1b417b=_0x2cbfeb;this[_0x1b417b(0x108)]['on'](_0x1b417b(0xf9),()=>{const _0x414d72=_0x1b417b;this[_0x414d72(0xfa)](),this[_0x414d72(0x103)](_0x414d72(0x131));}),this[_0x1b417b(0x10c)][_0x1b417b(0x134)]['on'](_0x1b417b(0xff),()=>{const _0x52b64e=_0x1b417b;this[_0x52b64e(0x124)](),this[_0x52b64e(0x130)](),this[_0x52b64e(0x103)](_0x52b64e(0x12b));}),this['on'](_0x1b417b(0x123),_0x34b8bb=>{const _0x127900=_0x1b417b;_0x34b8bb[_0x127900(0x116)](),this[_0x127900(0x13e)]();});}[_0x2cbfeb(0x125)](){const _0x4cc8ff=_0x2cbfeb;this[_0x4cc8ff(0x10f)][_0x4cc8ff(0x109)](_0x4cc8ff(0x100),(_0x50a95d,_0x2aab26)=>{const _0x4e807d=_0x4cc8ff;this[_0x4e807d(0xfa)](),this[_0x4e807d(0x103)](_0x4e807d(0x131)),_0x2aab26();});}[_0x2cbfeb(0x13e)](){const _0x1fa218=_0x2cbfeb,_0x42df3e=this[_0x1fa218(0x140)]()[_0x1fa218(0xfb)]();_0x42df3e?this[_0x1fa218(0x127)](_0x42df3e)?(this[_0x1fa218(0x124)](),this[_0x1fa218(0x103)](_0x1fa218(0x13f),_0x42df3e)):this[_0x1fa218(0x13c)](_0x2006ee(this[_0x1fa218(0x114)],_0x1fa218(0x12a))):this[_0x1fa218(0x13c)](_0x2006ee(this[_0x1fa218(0x114)],_0x1fa218(0x13a)));}[_0x2cbfeb(0x130)](){const _0x2e7673=_0x2cbfeb,_0x7ff774=this[_0x2e7673(0x140)]()[_0x2e7673(0xfb)](),_0x3d36e0=!!this[_0x2e7673(0x10c)][_0x2e7673(0x13d)];this[_0x2e7673(0xfc)][_0x2e7673(0x113)]=_0x7ff774[_0x2e7673(0x121)]>0x0&&!_0x3d36e0;}[_0x2cbfeb(0x127)](_0x35256f){try{return!!new URL(_0x35256f);}catch{return!0x1;}}}
23
+ const _0x17f560=_0x2190;function _0x2190(_0x5097bf,_0x35ea50){const _0x53798b=_0x5379();return _0x2190=function(_0x219008,_0x1e5920){_0x219008=_0x219008-0xd1;let _0x44c4ed=_0x53798b[_0x219008];return _0x44c4ed;},_0x2190(_0x5097bf,_0x35ea50);}(function(_0xeb706d,_0x5c04a3){const _0xd5b8bc=_0x2190,_0x10a6ca=_0xeb706d();while(!![]){try{const _0x1b8458=-parseInt(_0xd5b8bc(0xdb))/0x1+parseInt(_0xd5b8bc(0x102))/0x2*(parseInt(_0xd5b8bc(0xe5))/0x3)+-parseInt(_0xd5b8bc(0x100))/0x4*(-parseInt(_0xd5b8bc(0x116))/0x5)+-parseInt(_0xd5b8bc(0xf8))/0x6+-parseInt(_0xd5b8bc(0xf9))/0x7+parseInt(_0xd5b8bc(0xe9))/0x8+-parseInt(_0xd5b8bc(0xea))/0x9*(-parseInt(_0xd5b8bc(0xd1))/0xa);if(_0x1b8458===_0x5c04a3)break;else _0x10a6ca['push'](_0x10a6ca['shift']());}catch(_0x2c5b79){_0x10a6ca['push'](_0x10a6ca['shift']());}}}(_0x5379,0xebc9c));import{FocusTracker as _0xaf7a76,KeystrokeHandler as _0x2a53e9}from'ckeditor5/src/utils.js';import{ButtonView as _0x11c2b1,FocusCycler as _0x3a9723,LabeledFieldView as _0x1d4528,View as _0xa6090f,FormHeaderView as _0x4f3c2c,createLabeledInputText as _0x18fad0,submitHandler as _0x3ea1f1}from'ckeditor5/src/ui.js';import{IconCheck as _0x35e1fd,IconPreviousArrow as _0x18acd5}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4899ba}from'../../../aicore/utils/common-translations.js';const eh=_0x17f560(0xd5),hh=_0x17f560(0x109);export class AIChatContextPanelUrlInputView extends _0xa6090f{[_0x17f560(0xfb)];[_0x17f560(0x10c)];[_0x17f560(0xf0)];[_0x17f560(0x110)];[_0x17f560(0x10d)];[_0x17f560(0xda)];[_0x17f560(0xdd)];constructor(_0x4d4fc6){const _0x1c462f=_0x17f560;super(_0x4d4fc6),this[_0x1c462f(0xfb)]=new _0xaf7a76(),this[_0x1c462f(0x10c)]=new _0x2a53e9(),this[_0x1c462f(0xda)]=this[_0x1c462f(0xd6)](),this[_0x1c462f(0x10d)]=this[_0x1c462f(0x106)](),this[_0x1c462f(0xdd)]=this[_0x1c462f(0x119)](),this[_0x1c462f(0xf0)]=this[_0x1c462f(0xee)]([this[_0x1c462f(0xda)],this[_0x1c462f(0x10d)],this[_0x1c462f(0xdd)]]),this[_0x1c462f(0x110)]=new _0x3a9723({'focusables':this[_0x1c462f(0xf0)],'focusTracker':this[_0x1c462f(0xfb)],'keystrokeHandler':this[_0x1c462f(0x10c)],'actions':{'focusPrevious':_0x1c462f(0xdc),'focusNext':_0x1c462f(0xf7)}}),this[_0x1c462f(0x10f)](),this[_0x1c462f(0xe3)](),this[_0x1c462f(0x117)]();}[_0x17f560(0xe2)](){const _0x55dd25=_0x17f560;super[_0x55dd25(0xe2)](),this[_0x55dd25(0xf0)][_0x55dd25(0xfc)](_0xf45043=>{const _0x33d24b=_0x55dd25;this[_0x33d24b(0xfb)][_0x33d24b(0x104)](_0xf45043[_0x33d24b(0x114)]),this[_0x33d24b(0x10c)][_0x33d24b(0xe8)](_0xf45043[_0x33d24b(0x114)]);}),_0x3ea1f1({'view':this}),this[_0x55dd25(0x118)]();}[_0x17f560(0xd4)](){const _0xae22d9=_0x17f560;super[_0xae22d9(0xd4)](),this[_0xae22d9(0xfb)][_0xae22d9(0xd4)](),this[_0xae22d9(0x10c)][_0xae22d9(0xd4)]();}[_0x17f560(0x118)](){const _0x4491f5=_0x17f560;this[_0x4491f5(0x10d)][_0x4491f5(0x118)]();}[_0x17f560(0xf2)](){const _0x5a9db8=_0x17f560;return this[_0x5a9db8(0x10d)][_0x5a9db8(0xe4)][_0x5a9db8(0x114)]?.[_0x5a9db8(0xde)]?.[_0x5a9db8(0x10a)]()||'';}[_0x17f560(0xe6)](){const _0xcf90f7=_0x17f560;this[_0xcf90f7(0x10d)][_0xcf90f7(0xe4)][_0xcf90f7(0x114)][_0xcf90f7(0xde)]='',this[_0xcf90f7(0x10d)][_0xcf90f7(0x112)]=null,this[_0xcf90f7(0xdd)][_0xcf90f7(0x103)]=!0x1;}[_0x17f560(0x105)](_0x446430){const _0x1c95b6=_0x17f560;this[_0x1c95b6(0x10d)][_0x1c95b6(0x112)]=_0x446430,this[_0x1c95b6(0xef)](),this[_0x1c95b6(0xd3)](_0x1c95b6(0xed));}[_0x17f560(0x111)](){const _0x38b15e=_0x17f560;this[_0x38b15e(0x10d)][_0x38b15e(0x112)]=null,this[_0x38b15e(0xef)]();}[_0x17f560(0xd6)](){const _0x13e3cb=_0x17f560,_0x1d297a=new _0x11c2b1(this[_0x13e3cb(0xe7)]);return _0x1d297a[_0x13e3cb(0xec)]({'icon':_0x18acd5,'tooltip':_0x4899ba(this[_0x13e3cb(0xe7)],_0x13e3cb(0xd8)),'tooltipPosition':'n','class':_0x13e3cb(0x10b)}),_0x1d297a;}[_0x17f560(0x106)](){const _0x2c7126=_0x17f560,_0x2f728d=new _0x1d4528(this[_0x2c7126(0xe7)],_0x18fad0);return _0x2f728d[_0x2c7126(0xec)]({'label':_0x4899ba(this[_0x2c7126(0xe7)],_0x2c7126(0xfd)),'class':_0x2c7126(0xe0)}),_0x2f728d[_0x2c7126(0xe4)][_0x2c7126(0xec)]({'placeholder':_0x4899ba(this[_0x2c7126(0xe7)],_0x2c7126(0x108))}),_0x2f728d;}[_0x17f560(0x119)](){const _0x48f2a=_0x17f560,_0x558d55=new _0x11c2b1(this[_0x48f2a(0xe7)]);return _0x558d55[_0x48f2a(0xec)]({'icon':_0x35e1fd,'tooltip':_0x4899ba(this[_0x48f2a(0xe7)],_0x48f2a(0xdf)),'tooltipPosition':'n','class':_0x48f2a(0xf6),'type':_0x48f2a(0xd7),'isEnabled':!0x1}),_0x558d55;}[_0x17f560(0x10f)](){const _0x64cd87=_0x17f560,_0x2d7caa=new _0x4f3c2c(this[_0x64cd87(0xe7)],{'label':_0x4899ba(this[_0x64cd87(0xe7)],_0x64cd87(0xdf)),'class':_0x64cd87(0xfa)});_0x2d7caa[_0x64cd87(0xeb)][_0x64cd87(0x104)](this[_0x64cd87(0xda)],0x0),this[_0x64cd87(0x113)]({'tag':_0x64cd87(0x115),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x2d7caa,{'tag':_0x64cd87(0xff),'attributes':{'class':hh},'children':[this[_0x64cd87(0x10d)],this[_0x64cd87(0xdd)]]}]});}[_0x17f560(0xe3)](){const _0x175d8c=_0x17f560;this[_0x175d8c(0xda)]['on'](_0x175d8c(0xf5),()=>{const _0xf4f386=_0x175d8c;this[_0xf4f386(0xe6)](),this[_0xf4f386(0xd3)](_0xf4f386(0x107));}),this[_0x175d8c(0x10d)][_0x175d8c(0xe4)]['on'](_0x175d8c(0xd2),()=>{const _0x32467e=_0x175d8c;this[_0x32467e(0x111)](),this[_0x32467e(0xef)](),this[_0x32467e(0xd3)](_0x32467e(0xed));}),this['on'](_0x175d8c(0xd7),_0x941a96=>{const _0x2ff910=_0x175d8c;_0x941a96[_0x2ff910(0xf4)](),this[_0x2ff910(0x10e)]();});}[_0x17f560(0x117)](){const _0x3e099b=_0x17f560;this[_0x3e099b(0x10c)][_0x3e099b(0xec)](_0x3e099b(0xf3),(_0x4516a6,_0x28138e)=>{const _0x4d642e=_0x3e099b;this[_0x4d642e(0xe6)](),this[_0x4d642e(0xd3)](_0x4d642e(0x107)),_0x28138e();});}[_0x17f560(0x10e)](){const _0x12c242=_0x17f560,_0x3e6be4=this[_0x12c242(0xf2)]()[_0x12c242(0x10a)]();_0x3e6be4?this[_0x12c242(0xe1)](_0x3e6be4)?(this[_0x12c242(0x111)](),this[_0x12c242(0xd3)](_0x12c242(0x101),_0x3e6be4)):this[_0x12c242(0x105)](_0x4899ba(this[_0x12c242(0xe7)],_0x12c242(0xf1))):this[_0x12c242(0x105)](_0x4899ba(this[_0x12c242(0xe7)],_0x12c242(0xd9)));}[_0x17f560(0xef)](){const _0x242b1a=_0x17f560,_0x17d49f=this[_0x242b1a(0xf2)]()[_0x242b1a(0x10a)](),_0x1cfb99=!!this[_0x242b1a(0x10d)][_0x242b1a(0x112)];this[_0x242b1a(0xdd)][_0x242b1a(0x103)]=_0x17d49f[_0x242b1a(0xfe)]>0x0&&!_0x1cfb99;}[_0x17f560(0xe1)](_0x35502b){try{return!!new URL(_0x35502b);}catch{return!0x1;}}}function _0x5379(){const _0xa3f87=['refreshBalloon','createCollection','_updateConfirmButtonState','_focusables','AI_CHAT_CONTEXT_URL_INVALID_ERROR','getValue','esc','stop','execute','ck-button-icon','tab','10725930NTbcOF','8199065pAhDXi','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','focusTracker','forEach','AI_CHAT_CONTEXT_URL_LABEL','length','div','5464xFFYWC','submitUrl','77782KzYZuf','isEnabled','add','setError','_createUrlInputField','cancel','AI_CHAT_CONTEXT_URL_PLACEHOLDER','ck-ai-chat-context-controls__url-input-section','trim','ck-button-icon\x20ck-button-back','keystrokes','urlInputField','_handleSubmit','_setupTemplate','focusCycler','clearError','errorText','setTemplate','element','form','4405Nupjdw','_setupKeystrokes','focus','_createConfirmButton','2488940QhAxXu','input','fire','destroy','ck-ai-chat-context-controls__url-form','_createBackButton','submit','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','backButton','73146QhIRVJ','shift+tab','confirmButton','value','AI_CHAT_CONTEXT_URL_ADD_URL','ck-labeled-field-view_empty','_isValidUrl','render','_setupEventHandlers','fieldView','36iWHuGW','clear','locale','listenTo','4683904OXPOYc','63aPkBXG','children','set'];_0x5379=function(){return _0xa3f87;};return _0x5379();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b06d8=_0x626b;(function(_0x3f9068,_0x6513de){const _0xf6b5dd=_0x626b,_0x31e961=_0x3f9068();while(!![]){try{const _0x4101ff=-parseInt(_0xf6b5dd(0x175))/0x1+-parseInt(_0xf6b5dd(0x1a4))/0x2+-parseInt(_0xf6b5dd(0x173))/0x3+parseInt(_0xf6b5dd(0x1b5))/0x4*(parseInt(_0xf6b5dd(0x1d9))/0x5)+-parseInt(_0xf6b5dd(0x1b7))/0x6+-parseInt(_0xf6b5dd(0x1a9))/0x7*(parseInt(_0xf6b5dd(0x1ca))/0x8)+parseInt(_0xf6b5dd(0x188))/0x9;if(_0x4101ff===_0x6513de)break;else _0x31e961['push'](_0x31e961['shift']());}catch(_0x13e020){_0x31e961['push'](_0x31e961['shift']());}}}(_0x515d,0xb2f4c));import{BalloonPanelView as _0x26814f,ButtonView as _0x523e58,clickOutsideHandler as _0x4a81b1,FileDialogButtonView as _0x49af76,IconView as _0x20900a,View as _0x193a6b}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x9f8cf4,IconDocument as _0x4757c6,IconDocumentOutline as _0x534ca3,IconDropdownArrow as _0xcadddf,IconLink as _0x3e1ae0,IconPaperClip as _0x4fddf1}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2ab600}from'./aichatcontextitembuttonview.js';function _0x515d(){const _0x2c14fa=['loadSourceResources','sources','65hMJqTs','current','setConversationContext','files','addResourceToContext','children','isReadOnly','element','_overflowManager','locale','_createBalloonButton','execute','updateResourceState','ck-ai-chat-context-controls__show-more-balloon-panel','_createResourcesBalloonView','_resourcesBalloonView','addContextItem','cancel','_conversationContextsChips','_bindEventHandlers','hide','submitUrl','addDocumentToContext','clear','_createArrowView','focus','extendTemplate','balloonView','reorganizeChips','clearConversationContextItems','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat-context-controls__add-context-button','_showSourceResourcesBalloon','_createAddContextButtonView','removeContextItem','icon','body','destroy','_addContextToCollection','ck-ai-chat-context-controls__balloon-button-source','3832191GHBSnL','showAddContextBalloonPanel','644330aKmfwt','addUrlToContext','urls','_createContextButton','setAddContextOptions','ck-reset_all-excluded','southArrowNorth','southArrowNorthWest','_setBalloonPanelContent','northArrowSouth','_toggleAddContextBalloon','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat','_removeContextFromCollection','showUrlBalloonPanel','southArrowNorthEast','_handleUrlSubmit','showSourceResourcesBalloon','_urlBalloonPanelView','22509747RMxuCn','label','addFileToContext','ck-ai-chat-context-controls__url-balloon-panel','_urlInputView','hideUrlBalloonPanel','isAnyResourceBalloonVisible','document','_setupAllBalloonClickOutsideHandlers','AI_CHAT_CONTEXT_URL_LABEL','set','_currentContextsChips','pin','removeContextItemChip','createCollection','_addUrlContent','ck-ai-chat-context-controls__balloon-button','setContainerElement','source','add','menuitem','overflowChips','_setupTemplate','enabled','setTemplate','_createBaseBalloonPanel','bodyCollection','_setupUrlBalloonClickOutsideHandler','365484EZGIib','AI_CHAT_CONTEXT_ADD_CONTEXT','northArrowSouthEast','setContextItemLoading','_addContextBalloonPanelView','7reJWzB','__arrow','ck-ai-chat-controls-button','tooltip','find','div','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','conversation','render','closest','northArrowSouthWest','buttonView','334228uBzEBG','ck-ai-chat-context-controls__pending-contexts','2086596xPheku','closeSourceResourceBalloon','_handleAddContextButtonClick','ck-ai-chat-context-controls','isLoading','_setAddContextButtonEnabled','_getLimiterElement','isOn','hideAddContextBalloonPanel','show','ck-ai-chat-controls_context_show-more-button','_createUrlBalloonPanelView','type','isVisible','bind','addContextButtonView','fire','content','clearCurrentContextItems','3216680cyZBJk','populateSourceResourceBalloon','remove','done','isHidden','ck-ai-chat-context-controls__add-context-balloon-panel','_addContextBalloonConfig','defaultPositions','_createAddContextBalloonPanelView','arrowView','_setupAddContextBalloonClickOutsideHandler','isEnabled','refreshBalloon'];_0x515d=function(){return _0x2c14fa;};return _0x515d();}import{AIChatContextPanelUrlInputView as _0xb6092f}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x3dde82}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x5563c1}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x312a76}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2b06d8(0x161),_0x2b06d8(0x18a),_0x2b06d8(0x176),_0x2b06d8(0x1dd),_0x2b06d8(0x16d),_0x2b06d8(0x1d7)];const Ao=_0x2b06d8(0x1ba),ko=_0x2b06d8(0x1b6),Eo=_0x2b06d8(0x1cf),vo=_0x2b06d8(0x16a),go=_0x2b06d8(0x18b),Vo=_0x2b06d8(0x198),fo=_0x2b06d8(0x172),Io=_0x2b06d8(0x1ab),Po=_0x2b06d8(0x180),Ro=_0x2b06d8(0x1c1),Uo=_0x2b06d8(0x1e6),Lo=_0x2b06d8(0x181),No=[_0x26814f[_0x2b06d8(0x1d1)][_0x2b06d8(0x1b3)],_0x26814f[_0x2b06d8(0x1d1)][_0x2b06d8(0x17e)],_0x26814f[_0x2b06d8(0x1d1)][_0x2b06d8(0x1a6)],_0x26814f[_0x2b06d8(0x1d1)][_0x2b06d8(0x17c)],_0x26814f[_0x2b06d8(0x1d1)][_0x2b06d8(0x17b)],_0x26814f[_0x2b06d8(0x1d1)][_0x2b06d8(0x184)]];function _0x626b(_0x13a547,_0x2c3f65){const _0x515d9c=_0x515d();return _0x626b=function(_0x626bb,_0x2c6880){_0x626bb=_0x626bb-0x161;let _0x4b7c2a=_0x515d9c[_0x626bb];return _0x4b7c2a;},_0x626b(_0x13a547,_0x2c3f65);}export class AIChatContextPanelView extends _0x193a6b{[_0x2b06d8(0x1c6)];[_0x2b06d8(0x193)]=this[_0x2b06d8(0x196)]();[_0x2b06d8(0x1eb)]=this[_0x2b06d8(0x196)]();[_0x2b06d8(0x1e1)];[_0x2b06d8(0x1a8)];[_0x2b06d8(0x187)];[_0x2b06d8(0x18c)];[_0x2b06d8(0x1e8)];[_0x2b06d8(0x1d0)];[_0x2b06d8(0x1a2)];constructor(_0x4ee835,_0x28f7ce){const _0x59f6e9=_0x2b06d8;super(_0x4ee835),this[_0x59f6e9(0x1a2)]=_0x28f7ce,this[_0x59f6e9(0x193)]=this[_0x59f6e9(0x196)](),this[_0x59f6e9(0x1eb)]=this[_0x59f6e9(0x196)](),this[_0x59f6e9(0x1c6)]=this[_0x59f6e9(0x16c)](_0x4ee835),this[_0x59f6e9(0x1a8)]=this[_0x59f6e9(0x1d2)](_0x4ee835),this[_0x59f6e9(0x187)]=this[_0x59f6e9(0x1c2)](_0x4ee835),this[_0x59f6e9(0x1e8)]=this[_0x59f6e9(0x1e7)](_0x4ee835,_0x28f7ce);const _0x53b1cb={'cssClasses':{'showMoreButton':Ro,'showMoreBalloon':Uo,'overflowContainer':Po,'controlsButton':Io}};this[_0x59f6e9(0x1e1)]=new _0x3dde82(_0x4ee835,this[_0x59f6e9(0x193)],_0x53b1cb,this[_0x59f6e9(0x1a2)],this),this[_0x59f6e9(0x1d0)]={'buttonView':this[_0x59f6e9(0x1c6)],'balloonView':this[_0x59f6e9(0x1a8)],'hideMethod':this[_0x59f6e9(0x1bf)][_0x59f6e9(0x1c5)](this),'showMethod':this[_0x59f6e9(0x174)][_0x59f6e9(0x1c5)](this)},this[_0x59f6e9(0x19e)](),this[_0x59f6e9(0x1ec)]();}[_0x2b06d8(0x1b1)](){const _0x8507bc=_0x2b06d8;super[_0x8507bc(0x1b1)](),this[_0x8507bc(0x190)](),this[_0x8507bc(0x1e1)][_0x8507bc(0x199)](this[_0x8507bc(0x1e0)]),this[_0x8507bc(0x1e1)][_0x8507bc(0x167)]();}[_0x2b06d8(0x170)](){const _0x5ae85c=_0x2b06d8;super[_0x5ae85c(0x170)](),this[_0x5ae85c(0x1e1)][_0x5ae85c(0x170)](),this[_0x5ae85c(0x1e8)][_0x5ae85c(0x170)]();}[_0x2b06d8(0x1e9)](_0x16db26,_0x5a507e){const _0x45e42e=_0x2b06d8,_0x5d2ce0=this[_0x45e42e(0x178)](_0x16db26,_0x45e42e(0x1da),!0x0,_0x5a507e);this[_0x45e42e(0x171)](_0x5d2ce0,this[_0x45e42e(0x193)]),this[_0x45e42e(0x1e1)][_0x45e42e(0x167)]();}[_0x2b06d8(0x16d)](_0x2ce22d){const _0x65962a=_0x2b06d8;this[_0x65962a(0x182)](_0x2ce22d,this[_0x65962a(0x193)]),this[_0x65962a(0x182)](_0x2ce22d,this[_0x65962a(0x1e1)][_0x65962a(0x19d)]),this[_0x65962a(0x1e1)][_0x65962a(0x167)]();}[_0x2b06d8(0x1a7)](_0x20d8c2,_0x38f018){const _0x2166c5=_0x2b06d8;let _0x4e0475=this[_0x2166c5(0x193)][_0x2166c5(0x1ad)](_0x52711f=>_0x52711f['id']===_0x20d8c2);_0x4e0475||(_0x4e0475=this[_0x2166c5(0x1e1)][_0x2166c5(0x19d)][_0x2166c5(0x1ad)](_0x463f98=>_0x463f98['id']===_0x20d8c2)),_0x4e0475&&(_0x4e0475[_0x2166c5(0x1bb)]=_0x38f018);}[_0x2b06d8(0x1db)](_0x15e806){const _0x505e7e=_0x2b06d8;this[_0x505e7e(0x1eb)][_0x505e7e(0x162)]();for(const _0x5f407b of _0x15e806){const _0x476d0e=this[_0x505e7e(0x178)](_0x5f407b,_0x505e7e(0x1b0),!0x1,!0x1);this[_0x505e7e(0x171)](_0x476d0e,this[_0x505e7e(0x1eb)]);}}[_0x2b06d8(0x1c9)](){const _0x1dff92=_0x2b06d8;this[_0x1dff92(0x193)][_0x1dff92(0x162)](),this[_0x1dff92(0x1e1)][_0x1dff92(0x162)]();}[_0x2b06d8(0x168)](){const _0x1413b5=_0x2b06d8;this[_0x1413b5(0x1eb)][_0x1413b5(0x162)]();}[_0x2b06d8(0x1e5)](_0x34c5e0,_0xda7dfe,_0x31ad3d){const _0x3c753c=_0x2b06d8;this[_0x3c753c(0x1e8)][_0x3c753c(0x1e5)](_0x34c5e0,_0xda7dfe,_0x31ad3d);}[_0x2b06d8(0x1bf)](){const _0x1e75c=_0x2b06d8;this[_0x1e75c(0x17f)](!0x1);}[_0x2b06d8(0x174)](){const _0x3e6ca5=_0x2b06d8;this[_0x3e6ca5(0x17f)](!0x0);}[_0x2b06d8(0x18d)](){const _0x6b7d7d=_0x2b06d8;this[_0x6b7d7d(0x187)][_0x6b7d7d(0x1ed)](),this[_0x6b7d7d(0x1c6)][_0x6b7d7d(0x1be)]=!0x1,this[_0x6b7d7d(0x18c)]&&this[_0x6b7d7d(0x18c)][_0x6b7d7d(0x162)]();}[_0x2b06d8(0x183)](){const _0x4e8ba1=_0x2b06d8;this[_0x4e8ba1(0x187)][_0x4e8ba1(0x1c0)](),this[_0x4e8ba1(0x1c6)][_0x4e8ba1(0x1be)]=!0x0;}[_0x2b06d8(0x16b)](_0x439309){const _0x141cdd=_0x2b06d8;this[_0x141cdd(0x1e8)][_0x141cdd(0x186)](_0x439309),this[_0x141cdd(0x1c6)][_0x141cdd(0x1be)]=!0x0;}[_0x2b06d8(0x1cb)](_0x169867,_0x46cdf4,_0x1fc0fb,_0x159320){const _0x29419e=_0x2b06d8;this[_0x29419e(0x1e8)][_0x29419e(0x1cb)](_0x169867,_0x1fc0fb,_0x159320);}[_0x2b06d8(0x1b8)](_0x4ddc6e){const _0x40a0e6=_0x2b06d8;this[_0x40a0e6(0x1e8)][_0x40a0e6(0x1b8)](_0x4ddc6e),this[_0x40a0e6(0x1c6)][_0x40a0e6(0x1be)]=!0x1;}[_0x2b06d8(0x179)](_0x3c55c3){const _0x3231bb=_0x2b06d8;this[_0x3231bb(0x17d)](this[_0x3231bb(0x1a8)],this[_0x3231bb(0x1e2)],_0x3c55c3),this[_0x3231bb(0x1bc)](_0x3c55c3);}[_0x2b06d8(0x1bc)](_0xf5c39d){const _0x3f552d=_0x2b06d8,_0x3a8ba1=!_0xf5c39d[_0x3f552d(0x18f)][_0x3f552d(0x1ce)]&&_0xf5c39d[_0x3f552d(0x18f)][_0x3f552d(0x19f)],_0x3e83a5=_0xf5c39d[_0x3f552d(0x177)][_0x3f552d(0x19f)],_0x5eaa33=_0xf5c39d[_0x3f552d(0x1dc)][_0x3f552d(0x19f)];this[_0x3f552d(0x1c6)][_0x3f552d(0x1d5)]=_0x3a8ba1||_0x3e83a5||_0x5eaa33;}[_0x2b06d8(0x19e)](){const _0x5168e9=_0x2b06d8;this[_0x5168e9(0x1a0)]({'tag':_0x5168e9(0x1ae),'attributes':{'class':[Ao,_0x5168e9(0x17a)]},'children':[{'tag':_0x5168e9(0x1ae),'attributes':{'class':ko},'children':this[_0x5168e9(0x193)]}]});}[_0x2b06d8(0x1ec)](){const _0xd9dffd=_0x2b06d8;this[_0xd9dffd(0x1c6)]['on'](_0xd9dffd(0x1e4),()=>{const _0x41e5e0=_0xd9dffd;this[_0x41e5e0(0x1b9)]();});}[_0x2b06d8(0x16c)](_0x45d066){const _0x331f3f=_0x2b06d8,_0x494127=new _0x523e58(_0x45d066);return _0x494127[_0x331f3f(0x192)]({'label':_0x5563c1(_0x45d066,_0x331f3f(0x1a5)),'class':Io+'\x20'+vo,'icon':_0x4fddf1,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x494127;}[_0x2b06d8(0x1d2)](_0x4986f8){const _0x4046f4=_0x2b06d8;return this[_0x4046f4(0x1a1)](_0x4986f8,Eo);}[_0x2b06d8(0x1c2)](_0x49c52f){const _0x198591=_0x2b06d8,_0x2d0d25=this[_0x198591(0x1a1)](_0x49c52f,go);return this[_0x198591(0x197)](_0x2d0d25,_0x49c52f),_0x2d0d25;}[_0x2b06d8(0x1e7)](_0x264180,_0x3ca639){const _0x36b7c2=_0x2b06d8;return new _0x312a76(_0x264180,_0x3ca639,{'onBackToContext':()=>{const _0xf5654e=_0x626b;this[_0xf5654e(0x174)](),this[_0xf5654e(0x1a8)][_0xf5654e(0x194)]({'target':this[_0xf5654e(0x1c6)][_0xf5654e(0x1e0)],'limiter':this[_0xf5654e(0x1bd)](),'positions':No});},'onResourceSelected':(_0x3b5a08,_0x59b546)=>{const _0x5b944a=_0x626b;this[_0x5b944a(0x1c7)](_0x5b944a(0x1dd),{'source':_0x3b5a08,'resource':_0x59b546});},'onLoadSourceResources':_0x385eda=>{const _0x243d00=_0x626b;this[_0x243d00(0x1c7)](_0x243d00(0x1d7),_0x385eda);},'onBalloonClosed':()=>{const _0x4d9097=_0x626b;this[_0x4d9097(0x1c6)][_0x4d9097(0x1be)]=!0x1;},'getLimiterElement':()=>this[_0x36b7c2(0x1bd)](),'getTargetElement':()=>this[_0x36b7c2(0x1c6)][_0x36b7c2(0x1e0)]});}[_0x2b06d8(0x1bd)](){const _0x512c0c=_0x2b06d8;return this[_0x512c0c(0x1e0)]?.[_0x512c0c(0x1b2)]('.'+Lo)||document[_0x512c0c(0x16f)];}[_0x2b06d8(0x1a1)](_0x2fa1bb,_0x4fadce){const _0x454379=_0x2b06d8,_0x29b68a=new _0x26814f(_0x2fa1bb);return _0x29b68a[_0x454379(0x165)]({'attributes':{'class':_0x4fadce}}),this[_0x454379(0x1a2)][_0x454379(0x19b)](_0x29b68a),_0x29b68a;}[_0x2b06d8(0x17d)](_0x3fd1b1,_0xde9af,_0x306059){const _0x541135=_0x2b06d8;if(_0x3fd1b1[_0x541135(0x1c8)][_0x541135(0x162)](),!_0x306059[_0x541135(0x18f)][_0x541135(0x1ce)]&&_0x306059[_0x541135(0x18f)][_0x541135(0x19f)]){const _0x3f0b25=this[_0x541135(0x1e3)](_0xde9af,{'label':_0x5563c1(_0xde9af,_0x541135(0x1af)),'icon':_0x4757c6});_0x3f0b25['on'](_0x541135(0x1e4),()=>{const _0x426aff=_0x541135;this[_0x426aff(0x1c7)](_0x426aff(0x161)),this[_0x426aff(0x1bf)]();}),_0x3fd1b1[_0x541135(0x1c8)][_0x541135(0x19b)](_0x3f0b25);}if(_0x306059[_0x541135(0x177)][_0x541135(0x19f)]){const _0x4fae35=this[_0x541135(0x1e3)](_0xde9af,{'label':_0x5563c1(_0xde9af,_0x541135(0x191)),'icon':_0x3e1ae0});_0x4fae35['on'](_0x541135(0x1e4),()=>{const _0x1cf5bd=_0x541135;this[_0x1cf5bd(0x1bf)](),this[_0x1cf5bd(0x183)](),this[_0x1cf5bd(0x187)][_0x1cf5bd(0x194)]({'target':this[_0x1cf5bd(0x1c6)][_0x1cf5bd(0x1e0)],'limiter':this[_0x1cf5bd(0x1bd)](),'positions':No}),this[_0x1cf5bd(0x18c)][_0x1cf5bd(0x164)]();}),_0x3fd1b1[_0x541135(0x1c8)][_0x541135(0x19b)](_0x4fae35);}if(_0x306059[_0x541135(0x1dc)][_0x541135(0x19f)]){const _0x15f0c6=new _0x49af76(_0xde9af);_0x15f0c6[_0x541135(0x192)]({'label':_0x5563c1(_0xde9af,_0x541135(0x169)),'icon':_0x9f8cf4,'withText':!0x0,'tooltip':!0x0,'class':Vo,'allowMultipleFiles':!0x0}),_0x15f0c6['on'](_0x541135(0x1cd),(_0x4adbae,_0x341c15)=>{const _0x2b039a=_0x541135;this[_0x2b039a(0x1c7)](_0x2b039a(0x18a),_0x341c15),this[_0x2b039a(0x1bf)]();}),_0x15f0c6[_0x541135(0x1ac)]=!0x0,_0x3fd1b1[_0x541135(0x1c8)][_0x541135(0x19b)](_0x15f0c6);}for(const _0x3df316 of _0x306059[_0x541135(0x1d8)]){const _0x59e09e=this[_0x541135(0x1e3)](_0xde9af,{'label':_0x3df316[_0x541135(0x189)],'icon':_0x3df316[_0x541135(0x16e)]||_0x534ca3,'type':_0x541135(0x19a)});_0x3fd1b1[_0x541135(0x1c8)][_0x541135(0x19b)](_0x59e09e),_0x59e09e['on'](_0x541135(0x1e4),()=>{const _0x149f64=_0x541135;this[_0x149f64(0x1bf)](),this[_0x149f64(0x16b)](_0x3df316);});}}[_0x2b06d8(0x197)](_0x4707a8,_0x329684){const _0xce5b5e=_0x2b06d8;this[_0xce5b5e(0x18c)]=new _0xb6092f(_0x329684),this[_0xce5b5e(0x18c)]['on'](_0xce5b5e(0x1ee),(_0x308aab,_0x4aeb60)=>{const _0x3faa56=_0xce5b5e;this[_0x3faa56(0x185)](_0x4aeb60);}),this[_0xce5b5e(0x18c)]['on'](_0xce5b5e(0x1ea),()=>{const _0x15a9bf=_0xce5b5e;this[_0x15a9bf(0x18d)](),this[_0x15a9bf(0x174)](),this[_0x15a9bf(0x1a8)][_0x15a9bf(0x194)]({'target':this[_0x15a9bf(0x1c6)][_0x15a9bf(0x1e0)],'limiter':this[_0x15a9bf(0x1bd)](),'positions':No});}),this[_0xce5b5e(0x18c)]['on'](_0xce5b5e(0x1d6),()=>{const _0x5bb6bc=_0xce5b5e;this[_0x5bb6bc(0x187)][_0x5bb6bc(0x1c4)]&&this[_0x5bb6bc(0x187)][_0x5bb6bc(0x194)]({'target':this[_0x5bb6bc(0x1c6)][_0x5bb6bc(0x1e0)],'limiter':this[_0x5bb6bc(0x1bd)](),'positions':No});}),_0x4707a8[_0xce5b5e(0x1c8)][_0xce5b5e(0x19b)](this[_0xce5b5e(0x18c)]);}[_0x2b06d8(0x1e3)](_0x2411c7,_0x3dbf6e){const _0x3daab6=_0x2b06d8,_0x4b1a8e=_0x3daab6(0x19a)===_0x3dbf6e[_0x3daab6(0x1c3)]?new SourcesBalloonButtonView(_0x2411c7):new _0x523e58(_0x2411c7);return _0x4b1a8e[_0x3daab6(0x192)]({'label':_0x3dbf6e[_0x3daab6(0x189)],'icon':_0x3dbf6e[_0x3daab6(0x16e)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Vo}),_0x4b1a8e;}[_0x2b06d8(0x190)](){const _0x5daf90=_0x2b06d8;this[_0x5daf90(0x1d4)](),this[_0x5daf90(0x1a3)]();}[_0x2b06d8(0x1a3)](){const _0x4f04e0=_0x2b06d8;_0x4a81b1({'emitter':this[_0x4f04e0(0x187)],'contextElements':[this[_0x4f04e0(0x187)][_0x4f04e0(0x1e0)]],'callback':()=>{const _0x83de2=_0x4f04e0;this[_0x83de2(0x18d)]();},'activator':()=>this[_0x4f04e0(0x187)][_0x4f04e0(0x1c4)]});}[_0x2b06d8(0x17f)](_0x5a806e){const _0x544eda=_0x2b06d8,_0x16409a=this[_0x544eda(0x1d0)];_0x16409a[_0x544eda(0x1b4)][_0x544eda(0x1be)]=_0x5a806e,_0x5a806e?_0x16409a[_0x544eda(0x166)][_0x544eda(0x1c0)]():_0x16409a[_0x544eda(0x166)][_0x544eda(0x1ed)]();}[_0x2b06d8(0x1d4)](){const _0x11f188=_0x2b06d8,{balloonView:_0x3a7b44,buttonView:_0x2969c5,hideMethod:_0x32ed42}=this[_0x11f188(0x1d0)];_0x4a81b1({'emitter':_0x3a7b44,'contextElements':[_0x3a7b44[_0x11f188(0x1e0)],_0x2969c5[_0x11f188(0x1e0)]],'callback':()=>{_0x32ed42();},'activator':()=>_0x2969c5[_0x11f188(0x1be)]&&!this[_0x11f188(0x187)][_0x11f188(0x1c4)]&&!this[_0x11f188(0x1e8)][_0x11f188(0x18e)]()});}[_0x2b06d8(0x178)](_0x215d32,_0xb13b08,_0x29bc13=!0x1,_0x108e0f=!0x1){const _0x5641e8=_0x2b06d8,_0x2cabc0=_0x5641e8(0x1b0)===_0xb13b08||!0x0===_0x215d32[_0x5641e8(0x1df)],_0x429fb4=new _0x2ab600(this[_0x5641e8(0x1e2)],_0x215d32,_0x2cabc0,_0x29bc13,_0x108e0f);return _0x2cabc0||_0x429fb4['on'](_0x5641e8(0x195),()=>{const _0x59f50e=_0x5641e8;this[_0x59f50e(0x1c7)](_0x59f50e(0x16d),_0x429fb4['id']);}),_0x429fb4;}[_0x2b06d8(0x171)](_0xe756a5,_0x1b5035){const _0x44c4d7=_0x2b06d8;_0x1b5035[_0x44c4d7(0x19b)](_0xe756a5,0x0);}[_0x2b06d8(0x182)](_0x569ff9,_0x43c02b){const _0x146a06=_0x2b06d8,_0x130df0=_0x43c02b[_0x146a06(0x1ad)](_0x49419b=>_0x49419b['id']===_0x569ff9);_0x130df0&&_0x43c02b[_0x146a06(0x1cc)](_0x130df0);}[_0x2b06d8(0x1b9)](){const _0x5642bf=_0x2b06d8;this[_0x5642bf(0x1c6)][_0x5642bf(0x1be)]?this[_0x5642bf(0x1bf)]():(this[_0x5642bf(0x174)](),this[_0x5642bf(0x1a8)][_0x5642bf(0x194)]({'target':this[_0x5642bf(0x1c6)][_0x5642bf(0x1e0)],'limiter':this[_0x5642bf(0x1bd)](),'positions':No}));}[_0x2b06d8(0x185)](_0x5a2c21){const _0x5da6e0=_0x2b06d8;this[_0x5da6e0(0x18c)][_0x5da6e0(0x162)](),this[_0x5da6e0(0x18d)](),this[_0x5da6e0(0x1c7)](_0x5da6e0(0x176),_0x5a2c21);}}export class SourcesBalloonButtonView extends _0x523e58{[_0x2b06d8(0x1d3)];constructor(_0x111186){const _0x2861d3=_0x2b06d8;super(_0x111186),this[_0x2861d3(0x192)]({'withText':!0x0,'role':_0x2861d3(0x19c)}),this[_0x2861d3(0x1d3)]=this[_0x2861d3(0x163)](),this[_0x2861d3(0x165)]({'attributes':{'class':[fo]}});}[_0x2b06d8(0x1b1)](){const _0x1ae3bc=_0x2b06d8;super[_0x1ae3bc(0x1b1)](),this[_0x1ae3bc(0x1de)][_0x1ae3bc(0x19b)](this[_0x1ae3bc(0x1d3)]);}[_0x2b06d8(0x163)](){const _0x178a59=_0x2b06d8,_0xdde8c0=new _0x20900a();return _0xdde8c0[_0x178a59(0x1c8)]=_0xcadddf,_0xdde8c0[_0x178a59(0x165)]({'attributes':{'class':fo+_0x178a59(0x1aa)}}),_0xdde8c0;}}
23
+ const _0x5a6694=_0x364d;(function(_0x421c39,_0x5ccf40){const _0x31f2d8=_0x364d,_0x313e7e=_0x421c39();while(!![]){try{const _0x5ef059=parseInt(_0x31f2d8(0x1b0))/0x1+parseInt(_0x31f2d8(0x175))/0x2*(parseInt(_0x31f2d8(0x1b9))/0x3)+parseInt(_0x31f2d8(0x1c3))/0x4*(-parseInt(_0x31f2d8(0x1f6))/0x5)+-parseInt(_0x31f2d8(0x19c))/0x6*(-parseInt(_0x31f2d8(0x1a7))/0x7)+-parseInt(_0x31f2d8(0x177))/0x8+-parseInt(_0x31f2d8(0x1d0))/0x9+-parseInt(_0x31f2d8(0x1ee))/0xa;if(_0x5ef059===_0x5ccf40)break;else _0x313e7e['push'](_0x313e7e['shift']());}catch(_0x1e63e9){_0x313e7e['push'](_0x313e7e['shift']());}}}(_0x4d8e,0xecf87));import{BalloonPanelView as _0x52eb9f,ButtonView as _0x301170,clickOutsideHandler as _0x44e341,FileDialogButtonView as _0x39892f,IconView as _0x30333b,View as _0x464d1e}from'ckeditor5/src/ui.js';function _0x364d(_0x313c69,_0x3b91da){const _0x4d8ec6=_0x4d8e();return _0x364d=function(_0x364d50,_0x45c74c){_0x364d50=_0x364d50-0x16d;let _0x1d052d=_0x4d8ec6[_0x364d50];return _0x1d052d;},_0x364d(_0x313c69,_0x3b91da);}import{IconBrowseFiles as _0x1a5789,IconDocument as _0x5e8ae3,IconDocumentOutline as _0x3dba5a,IconDropdownArrow as _0x40f7b3,IconLink as _0x444830,IconPaperClip as _0x4c1a08}from'@ckeditor/ckeditor5-icons';function _0x4d8e(){const _0x58eb3c=['AI_CHAT_CONTEXT_FILE_LABEL','pin','showUrlBalloonPanel','execute','AI_CHAT_CONTEXT_URL_LABEL','ck-ai-chat-context-controls__url-balloon-panel','closeSourceResourceBalloon','_createBalloonButton','_setBalloonPanelContent','_resourcesBalloonView','document','type','_createUrlBalloonPanelView','southArrowNorthEast','6684520VVuRgC','northArrowSouthWest','setConversationContext','setContainerElement','add','isLoading','hideAddContextBalloonPanel','_createArrowView','1545ArEOxu','conversation','render','_setAddContextButtonEnabled','_showSourceResourcesBalloon','bodyCollection','urls','label','addDocumentToContext','ck-ai-chat-controls-button','_setupTemplate','_urlBalloonPanelView','body','arrowView','1233868eNyLou','_urlInputView','8168264MpoRuo','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__balloon-button','show','remove','_handleUrlSubmit','_handleAddContextButtonClick','ck-reset_all-excluded','submitUrl','enabled','source','addContextItem','_setupAddContextBalloonClickOutsideHandler','clear','balloonView','destroy','addResourceToContext','buttonView','populateSourceResourceBalloon','sources','ck-ai-chat','cancel','clearConversationContextItems','northArrowSouthEast','menuitem','_toggleAddContextBalloon','showSourceResourcesBalloon','updateResourceState','closest','ck-ai-chat-context-controls__add-context-button','ck-ai-chat-context-controls__balloon-button-source','refreshBalloon','extendTemplate','files','southArrowNorthWest','element','isOn','12DVvngT','ck-ai-chat-context-controls__pending-contexts','overflowChips','isVisible','_createContextButton','bind','setAddContextOptions','_createResourcesBalloonView','clearCurrentContextItems','_addContextToCollection','_conversationContextsChips','6754615fQkNKQ','southArrowNorth','addUrlToContext','find','icon','_addContextBalloonConfig','_getLimiterElement','addFileToContext','removeContextItem','523428GIvABk','current','ck-ai-chat-controls_context_show-more-button','set','_setupAllBalloonClickOutsideHandlers','_createBaseBalloonPanel','isAnyResourceBalloonVisible','defaultPositions','hideUrlBalloonPanel','3kMOZAk','done','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','hide','__arrow','_overflowManager','removeContextItemChip','ck-ai-chat-context-controls__add-context-balloon-panel','_addUrlContent','isHidden','316ygXeRp','setContextItemLoading','isEnabled','loadSourceResources','_currentContextsChips','addContextButtonView','setTemplate','createCollection','isReadOnly','ck-ai-chat-context-controls__show-more-balloon-panel','tooltip','_bindEventHandlers','focus','3471525knyTHl','AI_CHAT_CONTEXT_ADD_CONTEXT','northArrowSouth','ck-ai-chat-context-chips-wrapper-balloon','locale','div','fire','_createAddContextButtonView','_removeContextFromCollection','_createAddContextBalloonPanelView','_addContextBalloonPanelView','children','showAddContextBalloonPanel','ck-ai-chat-context-controls','content','reorganizeChips'];_0x4d8e=function(){return _0x58eb3c;};return _0x4d8e();}import{AIChatContextItemButtonView as _0x30086b}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x1429ff}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x167240}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x2928ca}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x3edc12}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x5a6694(0x16f),_0x5a6694(0x1ae),_0x5a6694(0x1a9),_0x5a6694(0x187),_0x5a6694(0x1af),_0x5a6694(0x1c6)];const Ao=_0x5a6694(0x1dd),ko=_0x5a6694(0x19d),Eo=_0x5a6694(0x1c0),vo=_0x5a6694(0x194),go=_0x5a6694(0x1e5),Vo=_0x5a6694(0x179),fo=_0x5a6694(0x195),Io=_0x5a6694(0x170),Po=_0x5a6694(0x1d3),Ro=_0x5a6694(0x1b2),Uo=_0x5a6694(0x1cc),Lo=_0x5a6694(0x18b),No=[_0x52eb9f[_0x5a6694(0x1b7)][_0x5a6694(0x1ef)],_0x52eb9f[_0x5a6694(0x1b7)][_0x5a6694(0x1d2)],_0x52eb9f[_0x5a6694(0x1b7)][_0x5a6694(0x18e)],_0x52eb9f[_0x5a6694(0x1b7)][_0x5a6694(0x199)],_0x52eb9f[_0x5a6694(0x1b7)][_0x5a6694(0x1a8)],_0x52eb9f[_0x5a6694(0x1b7)][_0x5a6694(0x1ed)]];export class AIChatContextPanelView extends _0x464d1e{[_0x5a6694(0x1c8)];[_0x5a6694(0x1c7)]=this[_0x5a6694(0x1ca)]();[_0x5a6694(0x1a6)]=this[_0x5a6694(0x1ca)]();[_0x5a6694(0x1be)];[_0x5a6694(0x1da)];[_0x5a6694(0x172)];[_0x5a6694(0x176)];[_0x5a6694(0x1e9)];[_0x5a6694(0x1ac)];[_0x5a6694(0x1fb)];constructor(_0x4d878e,_0x506dd0){const _0xf8694c=_0x5a6694;super(_0x4d878e),this[_0xf8694c(0x1fb)]=_0x506dd0,this[_0xf8694c(0x1c7)]=this[_0xf8694c(0x1ca)](),this[_0xf8694c(0x1a6)]=this[_0xf8694c(0x1ca)](),this[_0xf8694c(0x1c8)]=this[_0xf8694c(0x1d7)](_0x4d878e),this[_0xf8694c(0x1da)]=this[_0xf8694c(0x1d9)](_0x4d878e),this[_0xf8694c(0x172)]=this[_0xf8694c(0x1ec)](_0x4d878e),this[_0xf8694c(0x1e9)]=this[_0xf8694c(0x1a3)](_0x4d878e,_0x506dd0);const _0x2dfdd0={'cssClasses':{'showMoreButton':Ro,'showMoreBalloon':Uo,'overflowContainer':Po,'controlsButton':Io}};this[_0xf8694c(0x1be)]=new _0x167240(_0x4d878e,this[_0xf8694c(0x1c7)],_0x2dfdd0,this[_0xf8694c(0x1fb)],this),this[_0xf8694c(0x1ac)]={'buttonView':this[_0xf8694c(0x1c8)],'balloonView':this[_0xf8694c(0x1da)],'hideMethod':this[_0xf8694c(0x1f4)][_0xf8694c(0x1a1)](this),'showMethod':this[_0xf8694c(0x1dc)][_0xf8694c(0x1a1)](this)},this[_0xf8694c(0x171)](),this[_0xf8694c(0x1ce)]();}[_0x5a6694(0x1f8)](){const _0x5c7e85=_0x5a6694;super[_0x5c7e85(0x1f8)](),this[_0x5c7e85(0x1b4)](),this[_0x5c7e85(0x1be)][_0x5c7e85(0x1f1)](this[_0x5c7e85(0x19a)]),this[_0x5c7e85(0x1be)][_0x5c7e85(0x1df)]();}[_0x5a6694(0x186)](){const _0x3e25b6=_0x5a6694;super[_0x3e25b6(0x186)](),this[_0x3e25b6(0x1be)][_0x3e25b6(0x186)](),this[_0x3e25b6(0x1e9)][_0x3e25b6(0x186)]();}[_0x5a6694(0x182)](_0x42a34e,_0x32cb56){const _0x3398a7=_0x5a6694,_0x1c86b1=this[_0x3398a7(0x1a0)](_0x42a34e,_0x3398a7(0x1b1),!0x0,_0x32cb56);this[_0x3398a7(0x1a5)](_0x1c86b1,this[_0x3398a7(0x1c7)]),this[_0x3398a7(0x1be)][_0x3398a7(0x1df)]();}[_0x5a6694(0x1af)](_0x538013){const _0x2b3538=_0x5a6694;this[_0x2b3538(0x1d8)](_0x538013,this[_0x2b3538(0x1c7)]),this[_0x2b3538(0x1d8)](_0x538013,this[_0x2b3538(0x1be)][_0x2b3538(0x19e)]),this[_0x2b3538(0x1be)][_0x2b3538(0x1df)]();}[_0x5a6694(0x1c4)](_0x2764e8,_0x8b84e4){const _0x41c2f0=_0x5a6694;let _0x2ee65f=this[_0x41c2f0(0x1c7)][_0x41c2f0(0x1aa)](_0x20987f=>_0x20987f['id']===_0x2764e8);_0x2ee65f||(_0x2ee65f=this[_0x41c2f0(0x1be)][_0x41c2f0(0x19e)][_0x41c2f0(0x1aa)](_0x4a5e38=>_0x4a5e38['id']===_0x2764e8)),_0x2ee65f&&(_0x2ee65f[_0x41c2f0(0x1f3)]=_0x8b84e4);}[_0x5a6694(0x1f0)](_0x41cd08){const _0x3ab172=_0x5a6694;this[_0x3ab172(0x1a6)][_0x3ab172(0x184)]();for(const _0x5e7ae1 of _0x41cd08){const _0x91301f=this[_0x3ab172(0x1a0)](_0x5e7ae1,_0x3ab172(0x1f7),!0x1,!0x1);this[_0x3ab172(0x1a5)](_0x91301f,this[_0x3ab172(0x1a6)]);}}[_0x5a6694(0x1a4)](){const _0x797a58=_0x5a6694;this[_0x797a58(0x1c7)][_0x797a58(0x184)](),this[_0x797a58(0x1be)][_0x797a58(0x184)]();}[_0x5a6694(0x18d)](){const _0x1f0c80=_0x5a6694;this[_0x1f0c80(0x1a6)][_0x1f0c80(0x184)]();}[_0x5a6694(0x192)](_0x33bbf6,_0x212489,_0x58b8a9){const _0x2726f1=_0x5a6694;this[_0x2726f1(0x1e9)][_0x2726f1(0x192)](_0x33bbf6,_0x212489,_0x58b8a9);}[_0x5a6694(0x1f4)](){const _0x1e0d5e=_0x5a6694;this[_0x1e0d5e(0x190)](!0x1);}[_0x5a6694(0x1dc)](){const _0x3abb33=_0x5a6694;this[_0x3abb33(0x190)](!0x0);}[_0x5a6694(0x1b8)](){const _0x17c3e5=_0x5a6694;this[_0x17c3e5(0x172)][_0x17c3e5(0x1bc)](),this[_0x17c3e5(0x1c8)][_0x17c3e5(0x19b)]=!0x1,this[_0x17c3e5(0x176)]&&this[_0x17c3e5(0x176)][_0x17c3e5(0x184)]();}[_0x5a6694(0x1e2)](){const _0x21fd46=_0x5a6694;this[_0x21fd46(0x172)][_0x21fd46(0x17a)](),this[_0x21fd46(0x1c8)][_0x21fd46(0x19b)]=!0x0;}[_0x5a6694(0x1fa)](_0x5be12e){const _0x1d6bfc=_0x5a6694;this[_0x1d6bfc(0x1e9)][_0x1d6bfc(0x191)](_0x5be12e),this[_0x1d6bfc(0x1c8)][_0x1d6bfc(0x19b)]=!0x0;}[_0x5a6694(0x189)](_0x3e765b,_0x67785b,_0x5d6d87,_0xcfd817){const _0x34ad48=_0x5a6694;this[_0x34ad48(0x1e9)][_0x34ad48(0x189)](_0x3e765b,_0x5d6d87,_0xcfd817);}[_0x5a6694(0x1e6)](_0x51e827){const _0xf582ae=_0x5a6694;this[_0xf582ae(0x1e9)][_0xf582ae(0x1e6)](_0x51e827),this[_0xf582ae(0x1c8)][_0xf582ae(0x19b)]=!0x1;}[_0x5a6694(0x1a2)](_0x2cead1){const _0x525992=_0x5a6694;this[_0x525992(0x1e8)](this[_0x525992(0x1da)],this[_0x525992(0x1d4)],_0x2cead1),this[_0x525992(0x1f9)](_0x2cead1);}[_0x5a6694(0x1f9)](_0xa76526){const _0x547da7=_0x5a6694,_0xee6510=!_0xa76526[_0x547da7(0x1ea)][_0x547da7(0x1c2)]&&_0xa76526[_0x547da7(0x1ea)][_0x547da7(0x180)],_0x1fb1ec=_0xa76526[_0x547da7(0x16d)][_0x547da7(0x180)],_0x375bd8=_0xa76526[_0x547da7(0x198)][_0x547da7(0x180)];this[_0x547da7(0x1c8)][_0x547da7(0x1c5)]=_0xee6510||_0x1fb1ec||_0x375bd8;}[_0x5a6694(0x171)](){const _0x313a8d=_0x5a6694;this[_0x313a8d(0x1c9)]({'tag':_0x313a8d(0x1d5),'attributes':{'class':[Ao,_0x313a8d(0x17e)]},'children':[{'tag':_0x313a8d(0x1d5),'attributes':{'class':ko},'children':this[_0x313a8d(0x1c7)]}]});}[_0x5a6694(0x1ce)](){const _0x343e08=_0x5a6694;this[_0x343e08(0x1c8)]['on'](_0x343e08(0x1e3),()=>{const _0x1079a7=_0x343e08;this[_0x1079a7(0x17d)]();});}[_0x5a6694(0x1d7)](_0x2da3d3){const _0x5a40a9=_0x5a6694,_0xe3751b=new _0x301170(_0x2da3d3);return _0xe3751b[_0x5a40a9(0x1b3)]({'label':_0x2928ca(_0x2da3d3,_0x5a40a9(0x1d1)),'class':Io+'\x20'+vo,'icon':_0x4c1a08,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0xe3751b;}[_0x5a6694(0x1d9)](_0x1e694f){const _0x5e96a1=_0x5a6694;return this[_0x5e96a1(0x1b5)](_0x1e694f,Eo);}[_0x5a6694(0x1ec)](_0xa45ca3){const _0x577d1e=_0x5a6694,_0x19007b=this[_0x577d1e(0x1b5)](_0xa45ca3,go);return this[_0x577d1e(0x1c1)](_0x19007b,_0xa45ca3),_0x19007b;}[_0x5a6694(0x1a3)](_0x529727,_0x2acdb4){const _0x353d1a=_0x5a6694;return new _0x3edc12(_0x529727,_0x2acdb4,{'onBackToContext':()=>{const _0x113de2=_0x364d;this[_0x113de2(0x1dc)](),this[_0x113de2(0x1da)][_0x113de2(0x1e1)]({'target':this[_0x113de2(0x1c8)][_0x113de2(0x19a)],'limiter':this[_0x113de2(0x1ad)](),'positions':No});},'onResourceSelected':(_0x4c05e6,_0x1a7cea)=>{const _0x15e0d7=_0x364d;this[_0x15e0d7(0x1d6)](_0x15e0d7(0x187),{'source':_0x4c05e6,'resource':_0x1a7cea});},'onLoadSourceResources':_0x407675=>{const _0x34b2e8=_0x364d;this[_0x34b2e8(0x1d6)](_0x34b2e8(0x1c6),_0x407675);},'onBalloonClosed':()=>{const _0x21f90a=_0x364d;this[_0x21f90a(0x1c8)][_0x21f90a(0x19b)]=!0x1;},'getLimiterElement':()=>this[_0x353d1a(0x1ad)](),'getTargetElement':()=>this[_0x353d1a(0x1c8)][_0x353d1a(0x19a)]});}[_0x5a6694(0x1ad)](){const _0x2699a4=_0x5a6694;return this[_0x2699a4(0x19a)]?.[_0x2699a4(0x193)]('.'+Lo)||document[_0x2699a4(0x173)];}[_0x5a6694(0x1b5)](_0x208e99,_0x523d5b){const _0x387e8d=_0x5a6694,_0x41d00a=new _0x52eb9f(_0x208e99);return _0x41d00a[_0x387e8d(0x197)]({'attributes':{'class':_0x523d5b}}),this[_0x387e8d(0x1fb)][_0x387e8d(0x1f2)](_0x41d00a),_0x41d00a;}[_0x5a6694(0x1e8)](_0x428303,_0x4dcc2b,_0x3ff91e){const _0x5ddc46=_0x5a6694;if(_0x428303[_0x5ddc46(0x1de)][_0x5ddc46(0x184)](),!_0x3ff91e[_0x5ddc46(0x1ea)][_0x5ddc46(0x1c2)]&&_0x3ff91e[_0x5ddc46(0x1ea)][_0x5ddc46(0x180)]){const _0x8d039f=this[_0x5ddc46(0x1e7)](_0x4dcc2b,{'label':_0x2928ca(_0x4dcc2b,_0x5ddc46(0x1bb)),'icon':_0x5e8ae3});_0x8d039f['on'](_0x5ddc46(0x1e3),()=>{const _0x5726e7=_0x5ddc46;this[_0x5726e7(0x1d6)](_0x5726e7(0x16f)),this[_0x5726e7(0x1f4)]();}),_0x428303[_0x5ddc46(0x1de)][_0x5ddc46(0x1f2)](_0x8d039f);}if(_0x3ff91e[_0x5ddc46(0x16d)][_0x5ddc46(0x180)]){const _0x549c62=this[_0x5ddc46(0x1e7)](_0x4dcc2b,{'label':_0x2928ca(_0x4dcc2b,_0x5ddc46(0x1e4)),'icon':_0x444830});_0x549c62['on'](_0x5ddc46(0x1e3),()=>{const _0x129887=_0x5ddc46;this[_0x129887(0x1f4)](),this[_0x129887(0x1e2)](),this[_0x129887(0x172)][_0x129887(0x1e1)]({'target':this[_0x129887(0x1c8)][_0x129887(0x19a)],'limiter':this[_0x129887(0x1ad)](),'positions':No}),this[_0x129887(0x176)][_0x129887(0x1cf)]();}),_0x428303[_0x5ddc46(0x1de)][_0x5ddc46(0x1f2)](_0x549c62);}if(_0x3ff91e[_0x5ddc46(0x198)][_0x5ddc46(0x180)]){const _0x154d8b=new _0x39892f(_0x4dcc2b);_0x154d8b[_0x5ddc46(0x1b3)]({'label':_0x2928ca(_0x4dcc2b,_0x5ddc46(0x1e0)),'icon':_0x1a5789,'withText':!0x0,'tooltip':!0x0,'class':Vo,'allowMultipleFiles':!0x0}),_0x154d8b['on'](_0x5ddc46(0x1ba),(_0x935892,_0x83fc3d)=>{const _0x2fd558=_0x5ddc46;this[_0x2fd558(0x1d6)](_0x2fd558(0x1ae),_0x83fc3d),this[_0x2fd558(0x1f4)]();}),_0x154d8b[_0x5ddc46(0x1cd)]=!0x0,_0x428303[_0x5ddc46(0x1de)][_0x5ddc46(0x1f2)](_0x154d8b);}for(const _0x2952ca of _0x3ff91e[_0x5ddc46(0x18a)]){const _0x3d0545=this[_0x5ddc46(0x1e7)](_0x4dcc2b,{'label':_0x2952ca[_0x5ddc46(0x16e)],'icon':_0x2952ca[_0x5ddc46(0x1ab)]||_0x3dba5a,'type':_0x5ddc46(0x181)});_0x428303[_0x5ddc46(0x1de)][_0x5ddc46(0x1f2)](_0x3d0545),_0x3d0545['on'](_0x5ddc46(0x1e3),()=>{const _0xa26db8=_0x5ddc46;this[_0xa26db8(0x1f4)](),this[_0xa26db8(0x1fa)](_0x2952ca);});}}[_0x5a6694(0x1c1)](_0x2ecd64,_0x4b225f){const _0x322339=_0x5a6694;this[_0x322339(0x176)]=new _0x1429ff(_0x4b225f),this[_0x322339(0x176)]['on'](_0x322339(0x17f),(_0x465ff6,_0x209311)=>{const _0x38cdd5=_0x322339;this[_0x38cdd5(0x17c)](_0x209311);}),this[_0x322339(0x176)]['on'](_0x322339(0x18c),()=>{const _0x3aebab=_0x322339;this[_0x3aebab(0x1b8)](),this[_0x3aebab(0x1dc)](),this[_0x3aebab(0x1da)][_0x3aebab(0x1e1)]({'target':this[_0x3aebab(0x1c8)][_0x3aebab(0x19a)],'limiter':this[_0x3aebab(0x1ad)](),'positions':No});}),this[_0x322339(0x176)]['on'](_0x322339(0x196),()=>{const _0x517f8a=_0x322339;this[_0x517f8a(0x172)][_0x517f8a(0x19f)]&&this[_0x517f8a(0x172)][_0x517f8a(0x1e1)]({'target':this[_0x517f8a(0x1c8)][_0x517f8a(0x19a)],'limiter':this[_0x517f8a(0x1ad)](),'positions':No});}),_0x2ecd64[_0x322339(0x1de)][_0x322339(0x1f2)](this[_0x322339(0x176)]);}[_0x5a6694(0x1e7)](_0x3f694e,_0x2070f2){const _0x550f93=_0x5a6694,_0x28bf1f=_0x550f93(0x181)===_0x2070f2[_0x550f93(0x1eb)]?new SourcesBalloonButtonView(_0x3f694e):new _0x301170(_0x3f694e);return _0x28bf1f[_0x550f93(0x1b3)]({'label':_0x2070f2[_0x550f93(0x16e)],'icon':_0x2070f2[_0x550f93(0x1ab)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Vo}),_0x28bf1f;}[_0x5a6694(0x1b4)](){const _0x8cce07=_0x5a6694;this[_0x8cce07(0x183)](),this[_0x8cce07(0x178)]();}[_0x5a6694(0x178)](){const _0x2a2058=_0x5a6694;_0x44e341({'emitter':this[_0x2a2058(0x172)],'contextElements':[this[_0x2a2058(0x172)][_0x2a2058(0x19a)]],'callback':()=>{const _0x31da2c=_0x2a2058;this[_0x31da2c(0x1b8)]();},'activator':()=>this[_0x2a2058(0x172)][_0x2a2058(0x19f)]});}[_0x5a6694(0x190)](_0x36799f){const _0x1e0af4=_0x5a6694,_0x565125=this[_0x1e0af4(0x1ac)];_0x565125[_0x1e0af4(0x188)][_0x1e0af4(0x19b)]=_0x36799f,_0x36799f?_0x565125[_0x1e0af4(0x185)][_0x1e0af4(0x17a)]():_0x565125[_0x1e0af4(0x185)][_0x1e0af4(0x1bc)]();}[_0x5a6694(0x183)](){const _0x56e09b=_0x5a6694,{balloonView:_0x29bc56,buttonView:_0x118319,hideMethod:_0x1a65f2}=this[_0x56e09b(0x1ac)];_0x44e341({'emitter':_0x29bc56,'contextElements':[_0x29bc56[_0x56e09b(0x19a)],_0x118319[_0x56e09b(0x19a)]],'callback':()=>{_0x1a65f2();},'activator':()=>_0x118319[_0x56e09b(0x19b)]&&!this[_0x56e09b(0x172)][_0x56e09b(0x19f)]&&!this[_0x56e09b(0x1e9)][_0x56e09b(0x1b6)]()});}[_0x5a6694(0x1a0)](_0x1973fe,_0x31d567,_0x558fc9=!0x1,_0x396b32=!0x1){const _0x3f0ec0=_0x5a6694,_0x588a9a=_0x3f0ec0(0x1f7)===_0x31d567||!0x0===_0x1973fe[_0x3f0ec0(0x1cb)],_0xfb8c28=new _0x30086b(this[_0x3f0ec0(0x1d4)],_0x1973fe,_0x588a9a,_0x558fc9,_0x396b32);return _0x588a9a||_0xfb8c28['on'](_0x3f0ec0(0x1bf),()=>{const _0x32ce99=_0x3f0ec0;this[_0x32ce99(0x1d6)](_0x32ce99(0x1af),_0xfb8c28['id']);}),_0xfb8c28;}[_0x5a6694(0x1a5)](_0x2aac3a,_0x31843f){const _0x5e4ced=_0x5a6694;_0x31843f[_0x5e4ced(0x1f2)](_0x2aac3a,0x0);}[_0x5a6694(0x1d8)](_0x1c6260,_0x230135){const _0x2a6b5f=_0x5a6694,_0xd3e242=_0x230135[_0x2a6b5f(0x1aa)](_0x5d8826=>_0x5d8826['id']===_0x1c6260);_0xd3e242&&_0x230135[_0x2a6b5f(0x17b)](_0xd3e242);}[_0x5a6694(0x17d)](){const _0x207670=_0x5a6694;this[_0x207670(0x1c8)][_0x207670(0x19b)]?this[_0x207670(0x1f4)]():(this[_0x207670(0x1dc)](),this[_0x207670(0x1da)][_0x207670(0x1e1)]({'target':this[_0x207670(0x1c8)][_0x207670(0x19a)],'limiter':this[_0x207670(0x1ad)](),'positions':No}));}[_0x5a6694(0x17c)](_0xbce947){const _0x24a6d6=_0x5a6694;this[_0x24a6d6(0x176)][_0x24a6d6(0x184)](),this[_0x24a6d6(0x1b8)](),this[_0x24a6d6(0x1d6)](_0x24a6d6(0x1a9),_0xbce947);}}export class SourcesBalloonButtonView extends _0x301170{[_0x5a6694(0x174)];constructor(_0x2e51f3){const _0xb39e9e=_0x5a6694;super(_0x2e51f3),this[_0xb39e9e(0x1b3)]({'withText':!0x0,'role':_0xb39e9e(0x18f)}),this[_0xb39e9e(0x174)]=this[_0xb39e9e(0x1f5)](),this[_0xb39e9e(0x197)]({'attributes':{'class':[fo]}});}[_0x5a6694(0x1f8)](){const _0x4dd4be=_0x5a6694;super[_0x4dd4be(0x1f8)](),this[_0x4dd4be(0x1db)][_0x4dd4be(0x1f2)](this[_0x4dd4be(0x174)]);}[_0x5a6694(0x1f5)](){const _0x4b38c2=_0x5a6694,_0x36c202=new _0x30333b();return _0x36c202[_0x4b38c2(0x1de)]=_0x40f7b3,_0x36c202[_0x4b38c2(0x197)]({'attributes':{'class':fo+_0x4b38c2(0x1bd)}}),_0x36c202;}}