@ckeditor/ckeditor5-ai 47.0.0-alpha.9 → 47.0.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 (123) 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/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/legacyerrors.js +1 -1
  15. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  16. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  17. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  20. package/src/aiassistant/ui/form/aiformview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  22. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  26. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  27. package/src/aiballoon/ui/aiballoonview.js +1 -1
  28. package/src/aichat/aichat.js +1 -1
  29. package/src/aichat/aichatcontroller.js +1 -1
  30. package/src/aichat/aichatui.js +1 -1
  31. package/src/aichat/model/aichatcontext.js +1 -1
  32. package/src/aichat/model/aichatconversation.js +1 -1
  33. package/src/aichat/model/aichatinteraction.js +1 -1
  34. package/src/aichat/model/aichatmodels.js +1 -1
  35. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  36. package/src/aichat/ui/aichatfeedview.js +1 -1
  37. package/src/aichat/ui/aichatheaderview.js +1 -1
  38. package/src/aichat/ui/aichatview.js +1 -1
  39. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  43. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  58. package/src/aichat/utils/eventnames.js +1 -1
  59. package/src/aichat/utils/promisequeue.js +1 -1
  60. package/src/aichat/utils/scrollmanager.js +1 -1
  61. package/src/aichathistory/aichathistory.js +1 -1
  62. package/src/aichathistory/aichathistorycontroller.js +1 -1
  63. package/src/aichathistory/aichathistoryui.js +1 -1
  64. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  65. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  66. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  67. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  68. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  69. package/src/aicore/aiconnector.js +1 -1
  70. package/src/aicore/aiediting.js +1 -1
  71. package/src/aicore/model/aicapabilities.js +1 -1
  72. package/src/aicore/model/aiinteraction.js +1 -1
  73. package/src/aicore/model/aireply.js +1 -1
  74. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  75. package/src/aicore/pipeline/airesponseparser.js +2 -2
  76. package/src/aicore/ui/aidisclaimerview.js +1 -1
  77. package/src/aicore/ui/aiskeleton.js +1 -1
  78. package/src/aicore/ui/aispinner.js +1 -1
  79. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  80. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  84. package/src/aicore/utils/createresizebutton.js +1 -1
  85. package/src/aicore/utils/documentposition.js +1 -1
  86. package/src/aicore/utils/documentrange.js +1 -1
  87. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  88. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  89. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  90. package/src/aicore/utils/htmlparser.js +1 -1
  91. package/src/aicore/utils/htmlstreamer.js +1 -1
  92. package/src/aieditorintegration/aieditorintegration.js +1 -1
  93. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  94. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  95. package/src/aiquickactions/aiquickactions.js +1 -1
  96. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  97. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  98. package/src/aiquickactions/aiquickactionsui.js +1 -1
  99. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  100. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  101. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  102. package/src/aireviewmode/aireviewmode.js +1 -1
  103. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  104. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  105. package/src/aireviewmode/aireviewmodeui.js +1 -1
  106. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  107. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  108. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  109. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  110. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  111. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  112. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  113. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  117. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  118. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  119. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  120. package/src/aitabs/aitabs.js +1 -1
  121. package/src/aitabs/tabs/aitabsview.js +1 -1
  122. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  123. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x453dde=_0x10dd;(function(_0x46195b,_0x151273){const _0x264205=_0x10dd,_0x3b9412=_0x46195b();while(!![]){try{const _0x26fc3b=parseInt(_0x264205(0x1d7))/0x1+parseInt(_0x264205(0x1a4))/0x2*(-parseInt(_0x264205(0x19f))/0x3)+-parseInt(_0x264205(0x1af))/0x4*(parseInt(_0x264205(0x1bf))/0x5)+-parseInt(_0x264205(0x1d4))/0x6*(-parseInt(_0x264205(0x1bb))/0x7)+-parseInt(_0x264205(0x1a7))/0x8+-parseInt(_0x264205(0x1c1))/0x9+parseInt(_0x264205(0x1ca))/0xa;if(_0x26fc3b===_0x151273)break;else _0x3b9412['push'](_0x3b9412['shift']());}catch(_0x323d87){_0x3b9412['push'](_0x3b9412['shift']());}}}(_0x96be,0xe8dec));import{clickOutsideHandler as _0x95100c,View as _0x594abb}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x307153}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0xaab0e7}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x14ba0b,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x4ae18e}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x3d54f3}from'./controls/aichatcontrolsloaderview.js';function _0x10dd(_0xe06f6a,_0x3dbfbd){const _0x96be7f=_0x96be();return _0x10dd=function(_0x10dd31,_0x2cbd1a){_0x10dd31=_0x10dd31-0x199;let _0x3a3736=_0x96be7f[_0x10dd31];return _0x3a3736;},_0x10dd(_0xe06f6a,_0x3dbfbd);}function _0x96be(){const _0x1f1794=['selectModel','resetMessageInput','_createLoaderView','setModelList','enableModelSelector','clearCurrentContextItems','39463300LTflVM','_contextPanelView','setTemplate','setContextItemLoading','_createPromptInputView','_promptCapabilitiesView','focusPromptInput','disableModelSelector','setWebSearch','delegate','12yrRAAL','clearConversationContextUI','ck-ai-chat-controls','920196dSxkxw','low','removeContextItem','_createPromptCapabilitiesView','setPlaceholderText','ck-ai-chat-controls-disabled','_loaderView','addContextItem','setModel','17367KmagEy','form','div','focus','toggleReasoning','562chxWDR','_shouldRestorePromptInputFocus','isDisabled','12594312NRVrYm','reset','setIsUploadInProgress','isLoading','bindTemplate','populateSourceResourceBalloon','_handlePromptInputFocus','updateResourceState','5565260acndDq','clearPendingContextUI','clearConversationContextItems','toggleWebSearch','ck-hidden','setReasoning','_promptInputView','change:isLoading','set','_createContextPanelView','addContextButtonView','setInputPlaceholder','4164475ZPZGNZ','closeSourceResourceBalloon','setConversationContext','sendUserMessage','5MgtDZm','abortPromptStream','4592043DxAraF','element','setAddContextOptions'];_0x96be=function(){return _0x1f1794;};return _0x96be();}export class AIChatControlsView extends _0x594abb{[_0x453dde(0x1cb)];[_0x453dde(0x1b5)];[_0x453dde(0x1cf)];[_0x453dde(0x19c)];[_0x453dde(0x1a5)];constructor(_0x4ae295,_0x142d7c){const _0x34dae9=_0x453dde;super(_0x4ae295),this[_0x34dae9(0x1cb)]=this[_0x34dae9(0x1b8)](_0x4ae295,_0x142d7c),this[_0x34dae9(0x1b5)]=this[_0x34dae9(0x1ce)](_0x4ae295),this[_0x34dae9(0x1cf)]=this[_0x34dae9(0x199)](_0x4ae295),this[_0x34dae9(0x19c)]=this[_0x34dae9(0x1c6)](_0x4ae295),this[_0x34dae9(0x1a5)]=!0x1,this[_0x34dae9(0x1b5)][_0x34dae9(0x1d3)](_0x34dae9(0x1be))['to'](this),this[_0x34dae9(0x19c)][_0x34dae9(0x1d3)](_0x34dae9(0x1c0))['to'](this),this[_0x34dae9(0x1cf)][_0x34dae9(0x1d3)](_0x34dae9(0x1b2))['to'](this),this[_0x34dae9(0x1cf)][_0x34dae9(0x1d3)](_0x34dae9(0x1a3))['to'](this),this[_0x34dae9(0x1cf)][_0x34dae9(0x1d3)](_0x34dae9(0x1c4))['to'](this),this[_0x34dae9(0x1cb)][_0x34dae9(0x1d3)](..._0x4ae18e)['to'](this),this[_0x34dae9(0x1b7)](_0x34dae9(0x1a6),!0x1);const _0x649328=this[_0x34dae9(0x1ab)];this[_0x34dae9(0x1cc)]({'tag':_0x34dae9(0x1a0),'attributes':{'class':['ck',_0x34dae9(0x1d6),_0x649328['if'](_0x34dae9(0x1a6),_0x34dae9(0x19b))]},'children':[{'tag':_0x34dae9(0x1a1),'attributes':{'class':[_0x649328['if'](_0x34dae9(0x1aa),_0x34dae9(0x1b3))]},'children':[this[_0x34dae9(0x1cb)],this[_0x34dae9(0x1b5)],this[_0x34dae9(0x1cf)]]},{'tag':_0x34dae9(0x1a1),'attributes':{'class':[_0x649328['if'](_0x34dae9(0x1aa),_0x34dae9(0x1b3),_0x11b8bf=>!_0x11b8bf)]},'children':[this[_0x34dae9(0x19c)]]}]}),_0x95100c({'emitter':this[_0x34dae9(0x1b5)],'activator':()=>this[_0x34dae9(0x1aa)],'contextElements':()=>[this[_0x34dae9(0x1c2)]],'callback':()=>{const _0x57cce7=_0x34dae9;this[_0x57cce7(0x1a5)]=!0x1;}}),this['on'](_0x34dae9(0x1b6),this[_0x34dae9(0x1ad)],{'priority':_0x34dae9(0x1d8)});}[_0x453dde(0x1b8)](_0x2c959d,_0x3263de){return new _0x14ba0b(_0x2c959d,_0x3263de);}[_0x453dde(0x1ce)](_0xb58ca){const _0x52a581=_0x453dde;return new _0x307153(_0xb58ca,this[_0x52a581(0x1cb)][_0x52a581(0x1b9)]);}[_0x453dde(0x199)](_0x16c74d){return new _0xaab0e7(_0x16c74d);}[_0x453dde(0x1c6)](_0x24a0cb){return new _0x3d54f3(_0x24a0cb);}[_0x453dde(0x1ad)](_0x2ca12b,_0x1d90ab,_0x105318){const _0x2698d2=_0x453dde;_0x105318?this[_0x2698d2(0x1a5)]=!0x0:this[_0x2698d2(0x1a5)]&&this[_0x2698d2(0x1b5)][_0x2698d2(0x1a2)]();}[_0x453dde(0x19d)](_0x2ef348,_0x2eab84){const _0x10ffde=_0x453dde;this[_0x10ffde(0x1cb)][_0x10ffde(0x19d)](_0x2ef348,_0x2eab84);}[_0x453dde(0x1d9)](_0x4c83f5){const _0xc7622c=_0x453dde;this[_0xc7622c(0x1cb)][_0xc7622c(0x1d9)](_0x4c83f5);}[_0x453dde(0x1cd)](_0x2ebf4d,_0x12337c){const _0x36aec4=_0x453dde;this[_0x36aec4(0x1cb)][_0x36aec4(0x1cd)](_0x2ebf4d,_0x12337c);}[_0x453dde(0x1a9)](_0xc73c88){const _0x26d299=_0x453dde;this[_0x26d299(0x1b5)][_0x26d299(0x1a9)](_0xc73c88);}[_0x453dde(0x1bd)](_0x1cf551){const _0x5a9075=_0x453dde;this[_0x5a9075(0x1cb)][_0x5a9075(0x1bd)](_0x1cf551);}[_0x453dde(0x1b0)](){const _0x1c6f68=_0x453dde;this[_0x1c6f68(0x1cb)][_0x1c6f68(0x1c9)]();}[_0x453dde(0x1d5)](){const _0x3df53=_0x453dde;this[_0x3df53(0x1cb)][_0x3df53(0x1b1)]();}[_0x453dde(0x1ae)](_0x2e97dc,_0x3cac29,_0x7d0831){const _0x2f3db8=_0x453dde;this[_0x2f3db8(0x1cb)][_0x2f3db8(0x1ae)](_0x2e97dc,_0x3cac29,_0x7d0831);}[_0x453dde(0x1d2)](_0x4e0def){const _0x1cd1ee=_0x453dde;this[_0x1cd1ee(0x1cf)][_0x1cd1ee(0x1d2)](_0x4e0def);}[_0x453dde(0x1b4)](_0x19fbf9){const _0x3440c6=_0x453dde;this[_0x3440c6(0x1cf)][_0x3440c6(0x1b4)](_0x19fbf9);}[_0x453dde(0x1c5)](){const _0x9e85e1=_0x453dde;this[_0x9e85e1(0x1b5)][_0x9e85e1(0x1a8)]();}[_0x453dde(0x1c3)](_0x1ef074){const _0x2375bf=_0x453dde;this[_0x2375bf(0x1cb)][_0x2375bf(0x1c3)](_0x1ef074);}[_0x453dde(0x1ba)](_0x57ae93){const _0x2a5f3c=_0x453dde;this[_0x2a5f3c(0x1b5)][_0x2a5f3c(0x19a)](_0x57ae93);}[_0x453dde(0x1c7)](_0xa052ac,_0x5ba3d6){const _0x2682ea=_0x453dde;this[_0x2682ea(0x1cf)][_0x2682ea(0x1c7)](_0xa052ac,_0x5ba3d6);}[_0x453dde(0x19e)](_0x4f3dbf){const _0x1063db=_0x453dde;this[_0x1063db(0x1cf)][_0x1063db(0x19e)](_0x4f3dbf);}[_0x453dde(0x1c8)](){const _0x54c679=_0x453dde;this[_0x54c679(0x1cf)][_0x54c679(0x1c8)]();}[_0x453dde(0x1d1)](_0xb8b07d){const _0x2800dc=_0x453dde;this[_0x2800dc(0x1cf)][_0x2800dc(0x1d1)](_0xb8b07d);}[_0x453dde(0x1ac)](_0x152ea6,_0x18071,_0x42be19,_0x3c1a){const _0x23204b=_0x453dde;this[_0x23204b(0x1cb)][_0x23204b(0x1ac)](_0x152ea6,_0x18071,_0x42be19,_0x3c1a);}[_0x453dde(0x1bc)](_0x4ead9f){const _0x4c3a81=_0x453dde;this[_0x4c3a81(0x1cb)][_0x4c3a81(0x1bc)](_0x4ead9f);}[_0x453dde(0x1d0)](){const _0x10507d=_0x453dde;this[_0x10507d(0x1b5)][_0x10507d(0x1a2)]();}}
23
+ const _0x1956f5=_0x4736;function _0xb771(){const _0xba80f5=['130tafYBV','900FyhgAl','_contextPanelView','16642219WOMTxH','isDisabled','_promptInputView','ck-hidden','setAddContextOptions','addContextItem','bindTemplate','disableModelSelector','67cmUMuR','closeSourceResourceBalloon','setInputPlaceholder','isLoading','form','setContextItemLoading','clearConversationContextUI','delegate','29870wuuMdS','toggleWebSearch','_createContextPanelView','538376DjKVlu','sendUserMessage','clearCurrentContextItems','clearPendingContextUI','updateResourceState','div','focusPromptInput','setPlaceholderText','change:isLoading','3949104dldTaW','setConversationContext','_loaderView','ck-ai-chat-controls-disabled','element','_handlePromptInputFocus','_createLoaderView','low','toggleReasoning','enableModelSelector','_createPromptCapabilitiesView','set','resetMessageInput','removeContextItem','1123560XMfusk','_createPromptInputView','focus','28624cpajJB','setTemplate','_promptCapabilitiesView','setIsUploadInProgress','setReasoning','clearConversationContextItems','selectModel','setWebSearch','setModelList','addContextButtonView','abortPromptStream','ck-ai-chat-controls','3611454nEUIaT','_shouldRestorePromptInputFocus','49kyAKFQ','populateSourceResourceBalloon','setModel','reset'];_0xb771=function(){return _0xba80f5;};return _0xb771();}(function(_0x5309ce,_0xe408ef){const _0x20afa2=_0x4736,_0xbb72a6=_0x5309ce();while(!![]){try{const _0x18dec7=parseInt(_0x20afa2(0x168))/0x1*(parseInt(_0x20afa2(0x14b))/0x2)+parseInt(_0x20afa2(0x157))/0x3+-parseInt(_0x20afa2(0x13a))/0x4+parseInt(_0x20afa2(0x170))/0x5*(-parseInt(_0x20afa2(0x15e))/0x6)+-parseInt(_0x20afa2(0x159))/0x7*(-parseInt(_0x20afa2(0x173))/0x8)+-parseInt(_0x20afa2(0x148))/0x9*(-parseInt(_0x20afa2(0x15d))/0xa)+-parseInt(_0x20afa2(0x160))/0xb;if(_0x18dec7===_0xe408ef)break;else _0xbb72a6['push'](_0xbb72a6['shift']());}catch(_0x3a8cbb){_0xbb72a6['push'](_0xbb72a6['shift']());}}}(_0xb771,0xd2100));import{clickOutsideHandler as _0x5b4d67,View as _0x14797c}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x47efb3}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x4443ef}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x2e50f4,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x1f691a}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x305328}from'./controls/aichatcontrolsloaderview.js';function _0x4736(_0x2bf9b4,_0x50842e){const _0xb77161=_0xb771();return _0x4736=function(_0x47363b,_0x47f83d){_0x47363b=_0x47363b-0x137;let _0x353a0a=_0xb77161[_0x47363b];return _0x353a0a;},_0x4736(_0x2bf9b4,_0x50842e);}export class AIChatControlsView extends _0x14797c{[_0x1956f5(0x15f)];[_0x1956f5(0x162)];[_0x1956f5(0x14d)];[_0x1956f5(0x13c)];[_0x1956f5(0x158)];constructor(_0x57cb5d,_0x2d7486){const _0xf51f35=_0x1956f5;super(_0x57cb5d),this[_0xf51f35(0x15f)]=this[_0xf51f35(0x172)](_0x57cb5d,_0x2d7486),this[_0xf51f35(0x162)]=this[_0xf51f35(0x149)](_0x57cb5d),this[_0xf51f35(0x14d)]=this[_0xf51f35(0x144)](_0x57cb5d),this[_0xf51f35(0x13c)]=this[_0xf51f35(0x140)](_0x57cb5d),this[_0xf51f35(0x158)]=!0x1,this[_0xf51f35(0x162)][_0xf51f35(0x16f)](_0xf51f35(0x174))['to'](this),this[_0xf51f35(0x13c)][_0xf51f35(0x16f)](_0xf51f35(0x155))['to'](this),this[_0xf51f35(0x14d)][_0xf51f35(0x16f)](_0xf51f35(0x171))['to'](this),this[_0xf51f35(0x14d)][_0xf51f35(0x16f)](_0xf51f35(0x142))['to'](this),this[_0xf51f35(0x14d)][_0xf51f35(0x16f)](_0xf51f35(0x151))['to'](this),this[_0xf51f35(0x15f)][_0xf51f35(0x16f)](..._0x1f691a)['to'](this),this[_0xf51f35(0x145)](_0xf51f35(0x161),!0x1);const _0x549ed7=this[_0xf51f35(0x166)];this[_0xf51f35(0x14c)]({'tag':_0xf51f35(0x16c),'attributes':{'class':['ck',_0xf51f35(0x156),_0x549ed7['if'](_0xf51f35(0x161),_0xf51f35(0x13d))]},'children':[{'tag':_0xf51f35(0x178),'attributes':{'class':[_0x549ed7['if'](_0xf51f35(0x16b),_0xf51f35(0x163))]},'children':[this[_0xf51f35(0x15f)],this[_0xf51f35(0x162)],this[_0xf51f35(0x14d)]]},{'tag':_0xf51f35(0x178),'attributes':{'class':[_0x549ed7['if'](_0xf51f35(0x16b),_0xf51f35(0x163),_0x7373f2=>!_0x7373f2)]},'children':[this[_0xf51f35(0x13c)]]}]}),_0x5b4d67({'emitter':this[_0xf51f35(0x162)],'activator':()=>this[_0xf51f35(0x16b)],'contextElements':()=>[this[_0xf51f35(0x13e)]],'callback':()=>{const _0x278e73=_0xf51f35;this[_0x278e73(0x158)]=!0x1;}}),this['on'](_0xf51f35(0x139),this[_0xf51f35(0x13f)],{'priority':_0xf51f35(0x141)});}[_0x1956f5(0x172)](_0x5f269b,_0x41064a){return new _0x2e50f4(_0x5f269b,_0x41064a);}[_0x1956f5(0x149)](_0x30518d){const _0x1330e4=_0x1956f5;return new _0x47efb3(_0x30518d,this[_0x1330e4(0x15f)][_0x1330e4(0x154)]);}[_0x1956f5(0x144)](_0x541510){return new _0x4443ef(_0x541510);}[_0x1956f5(0x140)](_0x322cc6){return new _0x305328(_0x322cc6);}[_0x1956f5(0x13f)](_0x52ad4c,_0x283109,_0x426670){const _0x40d5a0=_0x1956f5;_0x426670?this[_0x40d5a0(0x158)]=!0x0:this[_0x40d5a0(0x158)]&&this[_0x40d5a0(0x162)][_0x40d5a0(0x14a)]();}[_0x1956f5(0x165)](_0x19b421,_0x5a157d){const _0x1946e9=_0x1956f5;this[_0x1946e9(0x15f)][_0x1946e9(0x165)](_0x19b421,_0x5a157d);}[_0x1956f5(0x147)](_0x385449){const _0x31b18f=_0x1956f5;this[_0x31b18f(0x15f)][_0x31b18f(0x147)](_0x385449);}[_0x1956f5(0x16d)](_0x2c932e,_0x2cbfda){const _0x5bf62e=_0x1956f5;this[_0x5bf62e(0x15f)][_0x5bf62e(0x16d)](_0x2c932e,_0x2cbfda);}[_0x1956f5(0x14e)](_0x2bb0cf){const _0x50c756=_0x1956f5;this[_0x50c756(0x162)][_0x50c756(0x14e)](_0x2bb0cf);}[_0x1956f5(0x13b)](_0x20bf1e){const _0x334156=_0x1956f5;this[_0x334156(0x15f)][_0x334156(0x13b)](_0x20bf1e);}[_0x1956f5(0x176)](){const _0x1b4f57=_0x1956f5;this[_0x1b4f57(0x15f)][_0x1b4f57(0x175)]();}[_0x1956f5(0x16e)](){const _0x2077bb=_0x1956f5;this[_0x2077bb(0x15f)][_0x2077bb(0x150)]();}[_0x1956f5(0x177)](_0x48f98c,_0x2bd21d,_0x37b67b){const _0x28fd64=_0x1956f5;this[_0x28fd64(0x15f)][_0x28fd64(0x177)](_0x48f98c,_0x2bd21d,_0x37b67b);}[_0x1956f5(0x152)](_0xe216b1){const _0x5cf647=_0x1956f5;this[_0x5cf647(0x14d)][_0x5cf647(0x152)](_0xe216b1);}[_0x1956f5(0x14f)](_0x1d0401){const _0x22dd67=_0x1956f5;this[_0x22dd67(0x14d)][_0x22dd67(0x14f)](_0x1d0401);}[_0x1956f5(0x146)](){const _0x4a7aa8=_0x1956f5;this[_0x4a7aa8(0x162)][_0x4a7aa8(0x15c)]();}[_0x1956f5(0x164)](_0x334e7f){const _0x56affd=_0x1956f5;this[_0x56affd(0x15f)][_0x56affd(0x164)](_0x334e7f);}[_0x1956f5(0x16a)](_0x2ce784){const _0x587e1e=_0x1956f5;this[_0x587e1e(0x162)][_0x587e1e(0x138)](_0x2ce784);}[_0x1956f5(0x153)](_0x514a9d,_0xb26d97){const _0x4dac3a=_0x1956f5;this[_0x4dac3a(0x14d)][_0x4dac3a(0x153)](_0x514a9d,_0xb26d97);}[_0x1956f5(0x15b)](_0x10c7b9){const _0x5d654c=_0x1956f5;this[_0x5d654c(0x14d)][_0x5d654c(0x15b)](_0x10c7b9);}[_0x1956f5(0x143)](){const _0x19ad1a=_0x1956f5;this[_0x19ad1a(0x14d)][_0x19ad1a(0x143)]();}[_0x1956f5(0x167)](_0x4e2252){const _0x1adf69=_0x1956f5;this[_0x1adf69(0x14d)][_0x1adf69(0x167)](_0x4e2252);}[_0x1956f5(0x15a)](_0x2e3931,_0x37718f,_0x3dbc08,_0x1ff528){const _0x14da8c=_0x1956f5;this[_0x14da8c(0x15f)][_0x14da8c(0x15a)](_0x2e3931,_0x37718f,_0x3dbc08,_0x1ff528);}[_0x1956f5(0x169)](_0x51d485){const _0x49725b=_0x1956f5;this[_0x49725b(0x15f)][_0x49725b(0x169)](_0x51d485);}[_0x1956f5(0x137)](){const _0x39bb79=_0x1956f5;this[_0x39bb79(0x162)][_0x39bb79(0x14a)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xbe0b70=_0x6210;(function(_0xd45314,_0xf91ecb){const _0x111b30=_0x6210,_0x546e9b=_0xd45314();while(!![]){try{const _0x3371f7=parseInt(_0x111b30(0x12b))/0x1*(parseInt(_0x111b30(0x115))/0x2)+-parseInt(_0x111b30(0x133))/0x3+parseInt(_0x111b30(0x10d))/0x4*(-parseInt(_0x111b30(0x141))/0x5)+parseInt(_0x111b30(0x11a))/0x6+parseInt(_0x111b30(0x101))/0x7*(-parseInt(_0x111b30(0x122))/0x8)+parseInt(_0x111b30(0x13f))/0x9*(parseInt(_0x111b30(0x10e))/0xa)+parseInt(_0x111b30(0x117))/0xb;if(_0x3371f7===_0xf91ecb)break;else _0x546e9b['push'](_0x546e9b['shift']());}catch(_0x54f780){_0x546e9b['push'](_0x546e9b['shift']());}}}(_0x15a8,0x90c68));import{CKEditorError as _0x5a49c1,logWarning as _0x4259e6,scrollViewportToShowTarget as _0x17f222}from'ckeditor5/src/utils.js';import{View as _0x19ca64}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2afc51}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x395957}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x32f916}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x4b6be6}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x3de03b}from'./feed/aichatfeederroritemview.js';function _0x15a8(){const _0xbe63be=['isVisible','set','4464612HAKKZi','add','removeItem','span','updateContent','options','destroy','ck-ai-chat__feed__items','102624xvUPQf','updateSuggestionItem','startAutoScroll','_createFeedLoader','map','render','setTemplate','markItemAsDone','element','747047OVqPVX','isPending','isLoadingSkeletonVisible','ai-chat-feed-view-item-not-a-suggestion-item','scrollManager','bindTemplate','updateWebSources','updateReplyItem','3225813oqmUmm','children','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','find','setLoadingMessage','ck-ai-chat__loader','ck-hidden','getPartView','updateSuggestionPartState','markAsDone','addItem','toggleLoadingSkeleton','27uIjMmJ','isTrackChangesOn','180680hnOiOJ','updatePartState','_createSkeletonLoader','_bodyCollection','_setupTemplate','user-message','loadingMessage','locale','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ai-reply','getItemIds','ck-ai-chat__loader-text','ai-chat-feed-view-item-not-found','updateSources','getItemById','_createLoaderChildren','start','div','413TEIDyY','_createFeedItems','delegate','createCollection','interaction-header','_createTemplateChildren','stopAutoScroll','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','scrollToSuggestion','includes','stop','ck-ai-chat__feed','88CMYkHf','233690PnTFDp','ai-chat-feed-view-item-not-a-reply-item','remove','ai-suggestion-reply','bind','extendTemplate','aiFeed','2BMemrk','clear','18247449jsQxvF'];_0x15a8=function(){return _0xbe63be;};return _0x15a8();}import{AIChatFeedInteractionHeaderView as _0x3a88e4}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x3a0d57}from'../utils/scrollmanager.js';import{AISkeletonView as _0x504372,SKELETON_DEFINITIONS as _0x1270d8}from'../../aicore/ui/aiskeleton.js';function _0x6210(_0x4f5401,_0x22502f){const _0x15a8d9=_0x15a8();return _0x6210=function(_0x62107d,_0x51ed0c){_0x62107d=_0x62107d-0xf4;let _0x5f01ff=_0x15a8d9[_0x62107d];return _0x5f01ff;},_0x6210(_0x4f5401,_0x22502f);}import{AISpinnerView as _0x1cab85}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x19ca64{[_0xbe0b70(0x134)];[_0xbe0b70(0x12f)];[_0xbe0b70(0x144)];constructor(_0x109412,_0x3ffd7e){const _0x7c4565=_0xbe0b70;super(_0x109412),this[_0x7c4565(0x144)]=_0x3ffd7e,this[_0x7c4565(0x119)](_0x7c4565(0x12c),!0x1),this[_0x7c4565(0x119)](_0x7c4565(0xf5),''),this[_0x7c4565(0x119)](_0x7c4565(0x12d),!0x1),this[_0x7c4565(0x119)](_0x7c4565(0x140),!0x1),this[_0x7c4565(0x134)]=this[_0x7c4565(0x104)](),this[_0x7c4565(0x134)][_0x7c4565(0x103)](..._0x2afc51)['to'](this),this[_0x7c4565(0x145)]();}[_0xbe0b70(0x127)](){const _0x4a26e3=_0xbe0b70;super[_0x4a26e3(0x127)](),this[_0x4a26e3(0x12f)]=new _0x3a0d57(this[_0x4a26e3(0x12a)]);}[_0xbe0b70(0x120)](){const _0x58bb8d=_0xbe0b70;super[_0x58bb8d(0x120)](),this[_0x58bb8d(0x12f)][_0x58bb8d(0x120)]();}[_0xbe0b70(0x116)](){const _0x4a0360=_0xbe0b70;this[_0x4a0360(0x134)][_0x4a0360(0x116)]();}[_0xbe0b70(0x13d)](_0x411446,_0x36f7f2){const _0x2fa7ae=_0xbe0b70;let _0x277dd5;_0x2fa7ae(0xf8)===_0x411446?_0x277dd5=new _0x32f916(this[_0x2fa7ae(0xf6)],_0x36f7f2):_0x2fa7ae(0x111)===_0x411446?(_0x277dd5=new _0x395957(this[_0x2fa7ae(0xf6)],_0x36f7f2),_0x277dd5[_0x2fa7ae(0x112)](_0x2fa7ae(0x140))['to'](this,_0x2fa7ae(0x140))):_0x277dd5=_0x2fa7ae(0xf4)===_0x411446?new _0x4b6be6(this[_0x2fa7ae(0xf6)],_0x36f7f2,this[_0x2fa7ae(0x144)]):_0x2fa7ae(0x105)===_0x411446?new _0x3a88e4(this[_0x2fa7ae(0xf6)],_0x36f7f2):new _0x3de03b(_0x36f7f2),this[_0x2fa7ae(0x134)][_0x2fa7ae(0x11b)](_0x277dd5);}async[_0xbe0b70(0x132)]({id:_0x5179d2,parsedContent:_0x3718a3,renderingStrategy:_0x44c1cd,abortSignal:_0x56683b}){const _0x496df3=_0xbe0b70,_0x3807b7=this[_0x496df3(0xfd)](_0x5179d2);if(!(_0x3807b7 instanceof _0x32f916))throw new _0x5a49c1(_0x496df3(0x10f),null,{'itemView':_0x3807b7,'id':_0x5179d2,'parsedContent':_0x3718a3});await _0x3807b7[_0x496df3(0x11e)]({'parsedContent':_0x3718a3,'renderingStrategy':_0x44c1cd,'abortSignal':_0x56683b});}async[_0xbe0b70(0x131)](_0x10b2c0,_0x47bdfc){const _0x326c8f=_0xbe0b70,_0x40fdfe=this[_0x326c8f(0xfd)](_0x10b2c0);if(_0x40fdfe instanceof _0x395957)_0x40fdfe[_0x326c8f(0xfc)](_0x47bdfc);else{if(!(_0x40fdfe instanceof _0x32f916))throw new _0x5a49c1(_0x326c8f(0x135),null,{'itemView':_0x40fdfe,'id':_0x10b2c0,'sources':_0x47bdfc});_0x40fdfe[_0x326c8f(0xfc)](_0x47bdfc);}}async[_0xbe0b70(0x123)]({id:_0x3c880e,parts:_0x39d5ad,renderingStrategy:_0x192e21,abortSignal:_0x51e1e3}){const _0x3f6580=_0xbe0b70,_0xff444e=this[_0x3f6580(0xfd)](_0x3c880e);if(!(_0xff444e instanceof _0x395957))throw new _0x5a49c1(_0x3f6580(0x12e),null,{'itemView':_0xff444e,'id':_0x3c880e,'parts':_0x39d5ad});await _0xff444e[_0x3f6580(0x11e)]({'parts':_0x39d5ad,'renderingStrategy':_0x192e21,'abortSignal':_0x51e1e3});}[_0xbe0b70(0x13b)]({id:_0x6fe763,index:_0x1d79b0,state:_0x281201}){const _0x23ed52=_0xbe0b70,_0x3098db=this[_0x23ed52(0xfd)](_0x6fe763);if(!(_0x3098db instanceof _0x395957))throw new _0x5a49c1(_0x23ed52(0x12e),this,{'id':_0x6fe763});_0x3098db[_0x23ed52(0x142)](_0x1d79b0,_0x281201);}[_0xbe0b70(0x129)](_0x5a8231){const _0x52bea8=_0xbe0b70;this[_0x52bea8(0xfd)](_0x5a8231)[_0x52bea8(0x13c)]();}[_0xbe0b70(0xf9)](){const _0x35c3d1=_0xbe0b70;return this[_0x35c3d1(0x134)][_0x35c3d1(0x126)](_0x13fff1=>_0x13fff1[_0x35c3d1(0x11f)]['id']);}[_0xbe0b70(0x11c)](_0x5f5005){const _0xd5937e=_0xbe0b70;this[_0xd5937e(0x134)][_0xd5937e(0x110)](this[_0xd5937e(0xfd)](_0x5f5005));}[_0xbe0b70(0x109)](_0x512993,_0xe59ddf){const _0xbc788=_0xbe0b70,_0x46dc51=this[_0xbc788(0xfd)](_0x512993);if(!(_0x46dc51 instanceof _0x395957))return void _0x4259e6(_0xbc788(0x108),{'replyId':_0x512993,'partIndex':_0xe59ddf});const _0xb7e8ab=_0x46dc51[_0xbc788(0x13a)](_0xe59ddf);_0xb7e8ab?_0x17f222({'target':_0xb7e8ab[_0xbc788(0x12a)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x4259e6(_0xbc788(0xf7),{'replyId':_0x512993,'partIndex':_0xe59ddf});}[_0xbe0b70(0x145)](){const _0x45cd98=_0xbe0b70;this[_0x45cd98(0x128)]({'tag':_0x45cd98(0x100),'attributes':{'class':['ck',_0x45cd98(0x10c)]},'children':this[_0x45cd98(0x106)]()});}[_0xbe0b70(0x106)](){const _0x3109e3=_0xbe0b70,_0x56b1e6=this[_0x3109e3(0x143)]();return[this[_0x3109e3(0x102)](),_0x56b1e6,this[_0x3109e3(0x125)]()];}[_0xbe0b70(0x143)](){const _0x4c9106=_0xbe0b70,_0x5f19f9=new _0x504372(this[_0x4c9106(0xf6)],_0x1270d8[_0x4c9106(0x114)]);return _0x5f19f9[_0x4c9106(0x113)]({'attributes':{'class':[this[_0x4c9106(0x130)]['if'](_0x4c9106(0x12d),_0x4c9106(0x139),_0x1be65d=>!_0x1be65d)]}}),_0x5f19f9;}[_0xbe0b70(0x102)](){const _0x318d2d=_0xbe0b70,_0xd411a4=new _0x19ca64(this[_0x318d2d(0xf6)]);return _0xd411a4[_0x318d2d(0x128)]({'tag':_0x318d2d(0x100),'attributes':{'class':['ck',_0x318d2d(0x121),this[_0x318d2d(0x130)]['if'](_0x318d2d(0x12d),_0x318d2d(0x139))]},'children':this[_0x318d2d(0x134)]}),_0xd411a4;}[_0xbe0b70(0x125)](){const _0x34d392=_0xbe0b70,_0x500ada=new _0x19ca64(this[_0x34d392(0xf6)]);return _0x500ada[_0x34d392(0x128)]({'tag':_0x34d392(0x100),'attributes':{'class':['ck',_0x34d392(0x138),this[_0x34d392(0x130)]['if'](_0x34d392(0x12c),_0x34d392(0x139),_0x36f71c=>!_0x36f71c)]},'children':this[_0x34d392(0xfe)]()}),_0x500ada;}[_0xbe0b70(0xfe)](){const _0x2bc54b=_0xbe0b70,_0x18cebc=new _0x1cab85();return _0x18cebc[_0x2bc54b(0x118)]=!0x0,[_0x18cebc,{'tag':_0x2bc54b(0x11d),'attributes':{'class':['ck',_0x2bc54b(0xfa)]},'children':[{'text':this[_0x2bc54b(0x130)]['to'](_0x2bc54b(0xf5))}]}];}[_0xbe0b70(0xfd)](_0x568432){const _0x34dbef=_0xbe0b70,_0x25556b=this[_0x34dbef(0x134)][_0x34dbef(0x136)](_0x28b024=>_0x28b024[_0x34dbef(0x11f)]['id'][_0x34dbef(0x10a)](_0x568432));if(!_0x25556b)throw new _0x5a49c1(_0x34dbef(0xfb),this,{'id':_0x568432});return _0x25556b;}[_0xbe0b70(0x137)](_0x509dbf){const _0x2535cd=_0xbe0b70;this[_0x2535cd(0x119)](_0x2535cd(0xf5),_0x509dbf);}[_0xbe0b70(0x13e)](_0x5e68a3){const _0x1c9c12=_0xbe0b70;this[_0x1c9c12(0x119)](_0x1c9c12(0x12d),_0x5e68a3);}[_0xbe0b70(0x124)](){const _0x4745b2=_0xbe0b70;this[_0x4745b2(0x12f)][_0x4745b2(0xff)]();}[_0xbe0b70(0x107)](){const _0x768b91=_0xbe0b70;this[_0x768b91(0x12f)][_0x768b91(0x10b)]();}}
23
+ const _0x560ae1=_0x57ac;(function(_0x3d93ce,_0x5b1db3){const _0x223d75=_0x57ac,_0x3a4319=_0x3d93ce();while(!![]){try{const _0xf27f2b=parseInt(_0x223d75(0xec))/0x1+parseInt(_0x223d75(0xda))/0x2*(-parseInt(_0x223d75(0x114))/0x3)+parseInt(_0x223d75(0x120))/0x4+-parseInt(_0x223d75(0xf8))/0x5+-parseInt(_0x223d75(0x116))/0x6*(-parseInt(_0x223d75(0xf5))/0x7)+-parseInt(_0x223d75(0x10e))/0x8*(parseInt(_0x223d75(0x119))/0x9)+parseInt(_0x223d75(0x100))/0xa;if(_0xf27f2b===_0x5b1db3)break;else _0x3a4319['push'](_0x3a4319['shift']());}catch(_0x4e9d42){_0x3a4319['push'](_0x3a4319['shift']());}}}(_0x58a3,0xb5cfe));import{CKEditorError as _0x55632c,logWarning as _0x29e433,scrollViewportToShowTarget as _0x3078e0}from'ckeditor5/src/utils.js';function _0x57ac(_0x50e628,_0x52c3e6){const _0x58a308=_0x58a3();return _0x57ac=function(_0x57ac9c,_0x518b11){_0x57ac9c=_0x57ac9c-0xd0;let _0x3bbedb=_0x58a308[_0x57ac9c];return _0x3bbedb;},_0x57ac(_0x50e628,_0x52c3e6);}import{View as _0x21eaa1}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0xba874d}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0xe66263}from'./feed/aichatfeedsuggestionitemview.js';function _0x58a3(){const _0x2b2164=['getItemById','updatePartState','aiFeed','8aZyvSK','setTemplate','ai-reply','span','ck-ai-chat__loader','find','150YMDqaQ','getPartView','41868rVtTed','_bodyCollection','addItem','6673743yHubrF','includes','ck-ai-chat__feed','markItemAsDone','stop','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','createCollection','1781336kOlhoU','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','getItemIds','_createFeedLoader','extendTemplate','isPending','scrollToSuggestion','bindTemplate','map','delegate','11606vqDuPJ','ai-chat-feed-view-item-not-a-reply-item','locale','_setupTemplate','element','scrollManager','updateWebSources','destroy','setLoadingMessage','isLoadingSkeletonVisible','stopAutoScroll','_createFeedItems','interaction-header','updateSuggestionPartState','children','div','updateContent','start','1173565zqIIqL','user-message','ai-suggestion-reply','set','bind','ck-hidden','isTrackChangesOn','remove','_createSkeletonLoader','819BJfVND','clear','options','5692570RHMwfB','ck-ai-chat__feed__items','ck-ai-chat__loader-text','add','toggleLoadingSkeleton','markAsDone','updateSources','render','4795680IaBWkm','startAutoScroll','updateSuggestionItem','_createLoaderChildren','loadingMessage','_createTemplateChildren','removeItem','isVisible','ai-chat-feed-view-item-not-a-suggestion-item','updateReplyItem','ai-chat-feed-view-item-not-found'];_0x58a3=function(){return _0x2b2164;};return _0x58a3();}import{AIChatFeedReplyItemView as _0x125c83}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x4d88ec}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x15961c}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x57ddc8}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x8f99d2}from'../utils/scrollmanager.js';import{AISkeletonView as _0x5349eb,SKELETON_DEFINITIONS as _0x2e0bc0}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x513ceb}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x21eaa1{[_0x560ae1(0xe8)];[_0x560ae1(0xdf)];[_0x560ae1(0x117)];constructor(_0x4a60fe,_0x245ef2){const _0xafa718=_0x560ae1;super(_0x4a60fe),this[_0xafa718(0x117)]=_0x245ef2,this[_0xafa718(0xef)](_0xafa718(0xd5),!0x1),this[_0xafa718(0xef)](_0xafa718(0x104),''),this[_0xafa718(0xef)](_0xafa718(0xe3),!0x1),this[_0xafa718(0xef)](_0xafa718(0xf2),!0x1),this[_0xafa718(0xe8)]=this[_0xafa718(0x11f)](),this[_0xafa718(0xe8)][_0xafa718(0xd9)](..._0xba874d)['to'](this),this[_0xafa718(0xdd)]();}[_0x560ae1(0xff)](){const _0x4a61f7=_0x560ae1;super[_0x4a61f7(0xff)](),this[_0x4a61f7(0xdf)]=new _0x8f99d2(this[_0x4a61f7(0xde)]);}[_0x560ae1(0xe1)](){const _0x59d583=_0x560ae1;super[_0x59d583(0xe1)](),this[_0x59d583(0xdf)][_0x59d583(0xe1)]();}[_0x560ae1(0xf6)](){const _0x31f5bd=_0x560ae1;this[_0x31f5bd(0xe8)][_0x31f5bd(0xf6)]();}[_0x560ae1(0x118)](_0x306cc3,_0x100f27){const _0x82c533=_0x560ae1;let _0x7b133d;_0x82c533(0x110)===_0x306cc3?_0x7b133d=new _0x125c83(this[_0x82c533(0xdc)],_0x100f27):_0x82c533(0xee)===_0x306cc3?(_0x7b133d=new _0xe66263(this[_0x82c533(0xdc)],_0x100f27),_0x7b133d[_0x82c533(0xf0)](_0x82c533(0xf2))['to'](this,_0x82c533(0xf2))):_0x7b133d=_0x82c533(0xed)===_0x306cc3?new _0x4d88ec(this[_0x82c533(0xdc)],_0x100f27,this[_0x82c533(0x117)]):_0x82c533(0xe6)===_0x306cc3?new _0x57ddc8(this[_0x82c533(0xdc)],_0x100f27):new _0x15961c(_0x100f27),this[_0x82c533(0xe8)][_0x82c533(0xfb)](_0x7b133d);}async[_0x560ae1(0x109)]({id:_0x4dab6e,parsedContent:_0x5aa2d3,renderingStrategy:_0x38b914,abortSignal:_0x58f093}){const _0x26dccd=_0x560ae1,_0xcc9d76=this[_0x26dccd(0x10b)](_0x4dab6e);if(!(_0xcc9d76 instanceof _0x125c83))throw new _0x55632c(_0x26dccd(0xdb),null,{'itemView':_0xcc9d76,'id':_0x4dab6e,'parsedContent':_0x5aa2d3});await _0xcc9d76[_0x26dccd(0xea)]({'parsedContent':_0x5aa2d3,'renderingStrategy':_0x38b914,'abortSignal':_0x58f093});}async[_0x560ae1(0xe0)](_0x173cae,_0x5d1b67){const _0x2a72c9=_0x560ae1,_0x105d62=this[_0x2a72c9(0x10b)](_0x173cae);if(_0x105d62 instanceof _0xe66263)_0x105d62[_0x2a72c9(0xfe)](_0x5d1b67);else{if(!(_0x105d62 instanceof _0x125c83))throw new _0x55632c(_0x2a72c9(0x11e),null,{'itemView':_0x105d62,'id':_0x173cae,'sources':_0x5d1b67});_0x105d62[_0x2a72c9(0xfe)](_0x5d1b67);}}async[_0x560ae1(0x102)]({id:_0x4190b5,parts:_0x18f195,renderingStrategy:_0x50cb1e,abortSignal:_0x1a16f8}){const _0x1ecf4e=_0x560ae1,_0x53b699=this[_0x1ecf4e(0x10b)](_0x4190b5);if(!(_0x53b699 instanceof _0xe66263))throw new _0x55632c(_0x1ecf4e(0x108),null,{'itemView':_0x53b699,'id':_0x4190b5,'parts':_0x18f195});await _0x53b699[_0x1ecf4e(0xea)]({'parts':_0x18f195,'renderingStrategy':_0x50cb1e,'abortSignal':_0x1a16f8});}[_0x560ae1(0xe7)]({id:_0x15c217,index:_0xf9bc22,state:_0x51a430}){const _0x256941=_0x560ae1,_0x142b0d=this[_0x256941(0x10b)](_0x15c217);if(!(_0x142b0d instanceof _0xe66263))throw new _0x55632c(_0x256941(0x108),this,{'id':_0x15c217});_0x142b0d[_0x256941(0x10c)](_0xf9bc22,_0x51a430);}[_0x560ae1(0x11c)](_0x242db8){const _0x262fe1=_0x560ae1;this[_0x262fe1(0x10b)](_0x242db8)[_0x262fe1(0xfd)]();}[_0x560ae1(0xd2)](){const _0x3ca589=_0x560ae1;return this[_0x3ca589(0xe8)][_0x3ca589(0xd8)](_0x208c3a=>_0x208c3a[_0x3ca589(0xf7)]['id']);}[_0x560ae1(0x106)](_0x45cf04){const _0x17f7ee=_0x560ae1;this[_0x17f7ee(0xe8)][_0x17f7ee(0xf3)](this[_0x17f7ee(0x10b)](_0x45cf04));}[_0x560ae1(0xd6)](_0x7401ee,_0x4f7be5){const _0x35046d=_0x560ae1,_0x1b5e19=this[_0x35046d(0x10b)](_0x7401ee);if(!(_0x1b5e19 instanceof _0xe66263))return void _0x29e433(_0x35046d(0xd1),{'replyId':_0x7401ee,'partIndex':_0x4f7be5});const _0x24b437=_0x1b5e19[_0x35046d(0x115)](_0x4f7be5);_0x24b437?_0x3078e0({'target':_0x24b437[_0x35046d(0xde)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x29e433(_0x35046d(0xd0),{'replyId':_0x7401ee,'partIndex':_0x4f7be5});}[_0x560ae1(0xdd)](){const _0x2554dd=_0x560ae1;this[_0x2554dd(0x10f)]({'tag':_0x2554dd(0xe9),'attributes':{'class':['ck',_0x2554dd(0x11b)]},'children':this[_0x2554dd(0x105)]()});}[_0x560ae1(0x105)](){const _0x2c1390=_0x560ae1,_0x13dc36=this[_0x2c1390(0xf4)]();return[this[_0x2c1390(0xe5)](),_0x13dc36,this[_0x2c1390(0xd3)]()];}[_0x560ae1(0xf4)](){const _0x57da28=_0x560ae1,_0x570a42=new _0x5349eb(this[_0x57da28(0xdc)],_0x2e0bc0[_0x57da28(0x10d)]);return _0x570a42[_0x57da28(0xd4)]({'attributes':{'class':[this[_0x57da28(0xd7)]['if'](_0x57da28(0xe3),_0x57da28(0xf1),_0x4fe09c=>!_0x4fe09c)]}}),_0x570a42;}[_0x560ae1(0xe5)](){const _0x452e01=_0x560ae1,_0xf188dd=new _0x21eaa1(this[_0x452e01(0xdc)]);return _0xf188dd[_0x452e01(0x10f)]({'tag':_0x452e01(0xe9),'attributes':{'class':['ck',_0x452e01(0xf9),this[_0x452e01(0xd7)]['if'](_0x452e01(0xe3),_0x452e01(0xf1))]},'children':this[_0x452e01(0xe8)]}),_0xf188dd;}[_0x560ae1(0xd3)](){const _0x4c4ed3=_0x560ae1,_0x54ece0=new _0x21eaa1(this[_0x4c4ed3(0xdc)]);return _0x54ece0[_0x4c4ed3(0x10f)]({'tag':_0x4c4ed3(0xe9),'attributes':{'class':['ck',_0x4c4ed3(0x112),this[_0x4c4ed3(0xd7)]['if'](_0x4c4ed3(0xd5),_0x4c4ed3(0xf1),_0x441519=>!_0x441519)]},'children':this[_0x4c4ed3(0x103)]()}),_0x54ece0;}[_0x560ae1(0x103)](){const _0x446a3c=_0x560ae1,_0x101df3=new _0x513ceb();return _0x101df3[_0x446a3c(0x107)]=!0x0,[_0x101df3,{'tag':_0x446a3c(0x111),'attributes':{'class':['ck',_0x446a3c(0xfa)]},'children':[{'text':this[_0x446a3c(0xd7)]['to'](_0x446a3c(0x104))}]}];}[_0x560ae1(0x10b)](_0x210b6f){const _0x4d87ee=_0x560ae1,_0x212b3a=this[_0x4d87ee(0xe8)][_0x4d87ee(0x113)](_0x30ed32=>_0x30ed32[_0x4d87ee(0xf7)]['id'][_0x4d87ee(0x11a)](_0x210b6f));if(!_0x212b3a)throw new _0x55632c(_0x4d87ee(0x10a),this,{'id':_0x210b6f});return _0x212b3a;}[_0x560ae1(0xe2)](_0x2d2f77){const _0x8cba6d=_0x560ae1;this[_0x8cba6d(0xef)](_0x8cba6d(0x104),_0x2d2f77);}[_0x560ae1(0xfc)](_0x251c61){const _0xb979b6=_0x560ae1;this[_0xb979b6(0xef)](_0xb979b6(0xe3),_0x251c61);}[_0x560ae1(0x101)](){const _0x2e7e52=_0x560ae1;this[_0x2e7e52(0xdf)][_0x2e7e52(0xeb)]();}[_0x560ae1(0xe4)](){const _0xd07782=_0x560ae1;this[_0xd07782(0xdf)][_0xd07782(0x11d)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1241(){const _0x394ab6=['276408pnSWbj','AI_CHAT_HEADING','46CaBkXu','locale','ck-ai-chat__start-conversation','1455005ZJAmpi','1204693otJnQn','children','conversationStartButton','8rjEakX','AI_CHAT_LABEL_NEW_CHAT','execute','17436eAPriL','453992BogXQe','add','startConversation','isMaximized','fire','3900714EJQpBn','1103976lxdpiC','resizeButton','set','160URrdvO','ck-ai-header\x20ck-ai-header_chat','_createStartConversationButton'];_0x1241=function(){return _0x394ab6;};return _0x1241();}const _0x1217df=_0x585e;function _0x585e(_0x3c6372,_0x347e46){const _0x124134=_0x1241();return _0x585e=function(_0x585e7e,_0x3d0de7){_0x585e7e=_0x585e7e-0x122;let _0x57d968=_0x124134[_0x585e7e];return _0x57d968;},_0x585e(_0x3c6372,_0x347e46);}(function(_0x25eaf5,_0x570534){const _0x604c54=_0x585e,_0x4509ee=_0x25eaf5();while(!![]){try{const _0x109706=parseInt(_0x604c54(0x137))/0x1+-parseInt(_0x604c54(0x12c))/0x2*(parseInt(_0x604c54(0x136))/0x3)+-parseInt(_0x604c54(0x124))/0x4+parseInt(_0x604c54(0x12f))/0x5+-parseInt(_0x604c54(0x123))/0x6+-parseInt(_0x604c54(0x130))/0x7*(-parseInt(_0x604c54(0x133))/0x8)+-parseInt(_0x604c54(0x12a))/0x9*(-parseInt(_0x604c54(0x127))/0xa);if(_0x109706===_0x570534)break;else _0x4509ee['push'](_0x4509ee['shift']());}catch(_0x1cfa58){_0x4509ee['push'](_0x4509ee['shift']());}}}(_0x1241,0x55217));import{ButtonView as _0x5162e5,FormHeaderView as _0x43fa62}from'ckeditor5/src/ui.js';import{IconPlus as _0x21b177,IconAIChat as _0x4b362c}from'ckeditor5/src/icons.js';import{getTranslation as _0x209bef}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x51d0ab}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x43fa62{[_0x1217df(0x132)];[_0x1217df(0x125)];constructor(_0x1e6a43,_0x2fd6fb){const _0xbfed37=_0x1217df;super(_0x1e6a43,{'label':_0x209bef(_0x1e6a43,_0xbfed37(0x12b)),'class':_0xbfed37(0x128),'icon':_0x4b362c}),this[_0xbfed37(0x126)](_0xbfed37(0x13a),!0x1),this[_0xbfed37(0x132)]=this[_0xbfed37(0x129)](_0x1e6a43),this[_0xbfed37(0x131)][_0xbfed37(0x138)](this[_0xbfed37(0x132)]),_0x2fd6fb&&(this[_0xbfed37(0x125)]=_0x51d0ab(_0x1e6a43,this),this[_0xbfed37(0x131)][_0xbfed37(0x138)](this[_0xbfed37(0x125)]));}[_0x1217df(0x129)](_0x580541){const _0xcb4624=_0x1217df,_0x58c264=new _0x5162e5(_0x580541);return _0x58c264[_0xcb4624(0x126)]({'label':_0x209bef(this[_0xcb4624(0x12d)],_0xcb4624(0x134)),'withText':!0x0,'icon':_0x21b177,'class':_0xcb4624(0x12e)}),_0x58c264['on'](_0xcb4624(0x135),()=>{const _0x24b76e=_0xcb4624;this[_0x24b76e(0x122)](_0x24b76e(0x139));}),_0x58c264;}}
23
+ const _0x3582c2=_0x4fc1;(function(_0x326760,_0x18af4f){const _0x192e7a=_0x4fc1,_0x1186d3=_0x326760();while(!![]){try{const _0x9c4126=-parseInt(_0x192e7a(0x1cf))/0x1+-parseInt(_0x192e7a(0x1c2))/0x2+-parseInt(_0x192e7a(0x1d2))/0x3*(parseInt(_0x192e7a(0x1d3))/0x4)+parseInt(_0x192e7a(0x1c8))/0x5*(parseInt(_0x192e7a(0x1ca))/0x6)+-parseInt(_0x192e7a(0x1d6))/0x7+-parseInt(_0x192e7a(0x1c5))/0x8+parseInt(_0x192e7a(0x1cc))/0x9;if(_0x9c4126===_0x18af4f)break;else _0x1186d3['push'](_0x1186d3['shift']());}catch(_0x4cc8b8){_0x1186d3['push'](_0x1186d3['shift']());}}}(_0x22cd,0xc9d03));import{ButtonView as _0x250fca,FormHeaderView as _0x44e02b}from'ckeditor5/src/ui.js';function _0x22cd(){const _0xe16fe1=['18PdQghc','580252Ehxtcy','_createStartConversationButton','children','231721eFeiqC','ck-ai-header\x20ck-ai-header_chat','AI_CHAT_LABEL_NEW_CHAT','fire','2595274gyWZbs','conversationStartButton','execute','3116976dSQCKl','locale','ck-ai-chat__start-conversation','114850fKkaJv','AI_CHAT_HEADING','186zTXKer','startConversation','38116620YujKxU','isMaximized','set','1529883HZhhit','add','resizeButton'];_0x22cd=function(){return _0xe16fe1;};return _0x22cd();}import{IconPlus as _0x7cab4b,IconAIChat as _0x403f03}from'ckeditor5/src/icons.js';import{getTranslation as _0x57c833}from'../../aicore/utils/common-translations.js';function _0x4fc1(_0x1ad889,_0x309e64){const _0x22cd1d=_0x22cd();return _0x4fc1=function(_0x4fc192,_0x5c05ee){_0x4fc192=_0x4fc192-0x1c2;let _0x5859b3=_0x22cd1d[_0x4fc192];return _0x5859b3;},_0x4fc1(_0x1ad889,_0x309e64);}import{createResizeButton as _0x5cc760}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x44e02b{[_0x3582c2(0x1c3)];[_0x3582c2(0x1d1)];constructor(_0x17242e,_0x246556){const _0x1297ef=_0x3582c2;super(_0x17242e,{'label':_0x57c833(_0x17242e,_0x1297ef(0x1c9)),'class':_0x1297ef(0x1d7),'icon':_0x403f03}),this[_0x1297ef(0x1ce)](_0x1297ef(0x1cd),!0x1),this[_0x1297ef(0x1c3)]=this[_0x1297ef(0x1d4)](_0x17242e),this[_0x1297ef(0x1d5)][_0x1297ef(0x1d0)](this[_0x1297ef(0x1c3)]),_0x246556&&(this[_0x1297ef(0x1d1)]=_0x5cc760(_0x17242e,this),this[_0x1297ef(0x1d5)][_0x1297ef(0x1d0)](this[_0x1297ef(0x1d1)]));}[_0x3582c2(0x1d4)](_0x5099f8){const _0x3b1f74=_0x3582c2,_0x419f57=new _0x250fca(_0x5099f8);return _0x419f57[_0x3b1f74(0x1ce)]({'label':_0x57c833(this[_0x3b1f74(0x1c6)],_0x3b1f74(0x1d8)),'withText':!0x0,'icon':_0x7cab4b,'class':_0x3b1f74(0x1c7)}),_0x419f57['on'](_0x3b1f74(0x1c4),()=>{const _0x314aaa=_0x3b1f74;this[_0x314aaa(0x1d9)](_0x314aaa(0x1cb));}),_0x419f57;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x319c(){var _0x17adbe=['1088664ENvDxv','chatDisclaimer','ck-ai-chat','7289847CNMIOT','4427250cdNsHG','ck-rounded-corners','setTemplate','1493448szRFWU','1004XOBFWg','delegate','attachToDom','uiLanguageDirection','6582VOMaFq','chatHeader','7uPoDcQ','chatFeed','populateSourceResourceBalloon','div','_bodyCollection','ck-reset_all','closeSourceResourceBalloon','destroy','chatControls','6CVpOrr','506501rKpJCW','detachFromDom','13400050fFEEph'];_0x319c=function(){return _0x17adbe;};return _0x319c();}var _0x5e739d=_0x5af0;(function(_0x3b3531,_0x302beb){var _0x467235=_0x5af0,_0x3239a7=_0x3b3531();while(!![]){try{var _0x4e0974=parseInt(_0x467235(0x1f4))/0x1+parseInt(_0x467235(0x1fe))/0x2+parseInt(_0x467235(0x203))/0x3*(parseInt(_0x467235(0x1ff))/0x4)+-parseInt(_0x467235(0x1fb))/0x5*(-parseInt(_0x467235(0x1f3))/0x6)+-parseInt(_0x467235(0x205))/0x7*(-parseInt(_0x467235(0x1f7))/0x8)+-parseInt(_0x467235(0x1fa))/0x9+-parseInt(_0x467235(0x1f6))/0xa;if(_0x4e0974===_0x302beb)break;else _0x3239a7['push'](_0x3239a7['shift']());}catch(_0x244ae3){_0x3239a7['push'](_0x3239a7['shift']());}}}(_0x319c,0xa4e88));function _0x5af0(_0x139a9c,_0x4a7dbb){var _0x319c76=_0x319c();return _0x5af0=function(_0x5af08e,_0x5b19f4){_0x5af08e=_0x5af08e-0x1ed;var _0x68262c=_0x319c76[_0x5af08e];return _0x68262c;},_0x5af0(_0x139a9c,_0x4a7dbb);}import{View as _0x3ad474,BodyCollection as _0x157492}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1f4358}from'../utils/eventnames.js';import{AIChatFeedView as _0x6eff85}from'./aichatfeedview.js';import{AIChatControlsView as _0x46c079}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x50282c}from'./aichatheaderview.js';import{AIDisclaimerView as _0x39dca5}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x3ad474{[_0x5e739d(0x204)];[_0x5e739d(0x206)];[_0x5e739d(0x1f2)];[_0x5e739d(0x1f8)];[_0x5e739d(0x1ee)];constructor(_0x392bd5,_0x738c48){var _0x5a8249=_0x5e739d;super(_0x392bd5),this[_0x5a8249(0x1ee)]=new _0x157492(_0x392bd5),this[_0x5a8249(0x1ee)][_0x5a8249(0x201)](),this[_0x5a8249(0x204)]=new _0x50282c(_0x392bd5,_0x738c48),this[_0x5a8249(0x204)][_0x5a8249(0x200)](..._0x1f4358)['to'](this),this[_0x5a8249(0x206)]=new _0x6eff85(_0x392bd5,this[_0x5a8249(0x1ee)]),this[_0x5a8249(0x206)][_0x5a8249(0x200)](..._0x1f4358)['to'](this),this[_0x5a8249(0x1f2)]=new _0x46c079(_0x392bd5,this[_0x5a8249(0x1ee)]),this[_0x5a8249(0x1f2)][_0x5a8249(0x200)](..._0x1f4358)['to'](this),this[_0x5a8249(0x1f8)]=new _0x39dca5(_0x392bd5),this[_0x5a8249(0x1fd)]({'tag':_0x5a8249(0x1ed),'attributes':{'class':['ck',_0x5a8249(0x1ef),_0x5a8249(0x1f9),_0x5a8249(0x1fc)],'dir':_0x392bd5[_0x5a8249(0x202)]},'children':[this[_0x5a8249(0x204)],this[_0x5a8249(0x206)],this[_0x5a8249(0x1f2)],this[_0x5a8249(0x1f8)]]});}[_0x5e739d(0x207)](_0xfeb960,_0x13e0a9,_0x3cc821,_0x2d068a){var _0x27d26d=_0x5e739d;this[_0x27d26d(0x1f2)][_0x27d26d(0x207)](_0xfeb960,_0x13e0a9,_0x3cc821,_0x2d068a);}[_0x5e739d(0x1f0)](_0x1136c1){var _0x24f10c=_0x5e739d;this[_0x24f10c(0x1f2)][_0x24f10c(0x1f0)](_0x1136c1);}[_0x5e739d(0x1f1)](){var _0x2d89a5=_0x5e739d;this[_0x2d89a5(0x1ee)][_0x2d89a5(0x1f5)](),super[_0x2d89a5(0x1f1)]();}}
23
+ var _0x56298b=_0x23b4;function _0x6dff(){var _0x5eec50=['ck-reset_all','destroy','attachToDom','chatDisclaimer','uiLanguageDirection','331900MIfYwK','div','ck-rounded-corners','chatControls','221977fotQoK','setTemplate','912440yenPmk','18edxRHu','delegate','1667955gVHSks','detachFromDom','ck-ai-chat','chatHeader','7830BEbCfg','populateSourceResourceBalloon','151890rLRHMt','9DuXxZT','4758gxKZWF','7128ysNPVZ','chatFeed','_bodyCollection','3122vAJiwe','closeSourceResourceBalloon'];_0x6dff=function(){return _0x5eec50;};return _0x6dff();}(function(_0x2d3ae5,_0x2cd82a){var _0x3d65f2=_0x23b4,_0x3348a5=_0x2d3ae5();while(!![]){try{var _0x5744c3=parseInt(_0x3d65f2(0x1f1))/0x1+-parseInt(_0x3d65f2(0x1fc))/0x2*(-parseInt(_0x3d65f2(0x1fd))/0x3)+parseInt(_0x3d65f2(0x1ed))/0x4+parseInt(_0x3d65f2(0x1f6))/0x5+-parseInt(_0x3d65f2(0x1fe))/0x6*(parseInt(_0x3d65f2(0x202))/0x7)+-parseInt(_0x3d65f2(0x1f3))/0x8*(-parseInt(_0x3d65f2(0x1f4))/0x9)+parseInt(_0x3d65f2(0x1fa))/0xa*(-parseInt(_0x3d65f2(0x1ff))/0xb);if(_0x5744c3===_0x2cd82a)break;else _0x3348a5['push'](_0x3348a5['shift']());}catch(_0xbfb686){_0x3348a5['push'](_0x3348a5['shift']());}}}(_0x6dff,0x38fd2));import{View as _0x3f138d,BodyCollection as _0xeffecc}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x407b16}from'../utils/eventnames.js';import{AIChatFeedView as _0xc160ca}from'./aichatfeedview.js';import{AIChatControlsView as _0x16cf8b}from'./aichatcontrolsview.js';function _0x23b4(_0x4bbd8a,_0x5c7c14){var _0x6dff63=_0x6dff();return _0x23b4=function(_0x23b467,_0x3481fe){_0x23b467=_0x23b467-0x1e7;var _0x4b61a2=_0x6dff63[_0x23b467];return _0x4b61a2;},_0x23b4(_0x4bbd8a,_0x5c7c14);}import{AIChatHeaderView as _0x57cd3c}from'./aichatheaderview.js';import{AIDisclaimerView as _0x4822db}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x3f138d{[_0x56298b(0x1f9)];[_0x56298b(0x200)];[_0x56298b(0x1f0)];[_0x56298b(0x1eb)];[_0x56298b(0x201)];constructor(_0x49ccb0,_0xaf3528){var _0x319ebe=_0x56298b;super(_0x49ccb0),this[_0x319ebe(0x201)]=new _0xeffecc(_0x49ccb0),this[_0x319ebe(0x201)][_0x319ebe(0x1ea)](),this[_0x319ebe(0x1f9)]=new _0x57cd3c(_0x49ccb0,_0xaf3528),this[_0x319ebe(0x1f9)][_0x319ebe(0x1f5)](..._0x407b16)['to'](this),this[_0x319ebe(0x200)]=new _0xc160ca(_0x49ccb0,this[_0x319ebe(0x201)]),this[_0x319ebe(0x200)][_0x319ebe(0x1f5)](..._0x407b16)['to'](this),this[_0x319ebe(0x1f0)]=new _0x16cf8b(_0x49ccb0,this[_0x319ebe(0x201)]),this[_0x319ebe(0x1f0)][_0x319ebe(0x1f5)](..._0x407b16)['to'](this),this[_0x319ebe(0x1eb)]=new _0x4822db(_0x49ccb0),this[_0x319ebe(0x1f2)]({'tag':_0x319ebe(0x1ee),'attributes':{'class':['ck',_0x319ebe(0x1e8),_0x319ebe(0x1f8),_0x319ebe(0x1ef)],'dir':_0x49ccb0[_0x319ebe(0x1ec)]},'children':[this[_0x319ebe(0x1f9)],this[_0x319ebe(0x200)],this[_0x319ebe(0x1f0)],this[_0x319ebe(0x1eb)]]});}[_0x56298b(0x1fb)](_0x5110e6,_0x53e381,_0x6c1dec,_0x123131){var _0x295818=_0x56298b;this[_0x295818(0x1f0)][_0x295818(0x1fb)](_0x5110e6,_0x53e381,_0x6c1dec,_0x123131);}[_0x56298b(0x1e7)](_0x4673d9){var _0x531386=_0x56298b;this[_0x531386(0x1f0)][_0x531386(0x1e7)](_0x4673d9);}[_0x56298b(0x1e9)](){var _0x16613c=_0x56298b;this[_0x16613c(0x201)][_0x16613c(0x1f7)](),super[_0x16613c(0x1e9)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x512fa2=_0x39b7;function _0x5393(){const _0x6c304d=['overflowChips','observe','visible\x20!important','maxVisibleRows','clientWidth','boxSizing','hideBalloonPanel','_setupVisibilityObserver','extendTemplate','_makeAncestorsVisible','style','div','showMoreButton','_distributeChips','visibility','rowDetectionTolerance','setContainerElement','showBalloonPanel','hide','_overflowChips','children','_config','12030AjaxzS','controlsButton','_parentView','classList','createElement','875xxsDrD','300px','_restoreAncestorVisibility','none','body','reorganizeChips','documentElement','offsetWidth','_updateBalloonContent','_applyOverflowResults','_calculateContainerWidth','_createCalculationContainer','_repinBalloonPanel','innerHeight','zIndex','block','24Ogijtd','isIntersecting','parentElement','button','cloneNode','from','_bodyCollection','pin','pop','showMoreButtonView','_containerElement','visible','clear','filter','_createContainerElements','absolute','block\x20!important','forEach','_visibleChips','overflowContainer','destroy','ck-calculation-container','right','102500GOfDhw','isOn','toLowerCase','left','set','bottom','top','width','disconnect','show','_createShowMoreButton','218637QuqeiO','tagName','length','slice','cssClasses','_updateOverflowUI','abs','_calculateOverflowInContainer','position','50px','content','textContent','pointerEvents','189eynjDc','remove','.ck-ai-chat','undefined','_handleShowMoreButtonClick','180519lLSHWq','_ancestorsToRestore','_showMoreBalloonPanelView','_showMoreButtonView','_targetContainer','0px','_renderChipsAndCountRows','height','_updateShowMoreButtonVisibility','label','disableAnimationOnEnter','some','clientHeight','add','getBoundingClientRect','hidden','element','appendChild','_createShowMoreBalloonPanelView','_intersectionObserver','_locale','+\x201','_createShowMoreButtonView','className','push','_checkAndHandleOverflow','querySelector','calculationContainer','6668YlAMVG','_applyCalculationStyles','isVisible','display','_findTargetContainer','border-box','isConnected','getComputedStyle','_testButtonFit','setTemplate','innerHTML','_pendingCalculation','innerWidth','auto','execute','1389740sqJlAn','render','_isContainerVisible','33835LbfIja','showMoreLabelPrefix','showMoreBalloon','includes','-9999px','opacity','_createMockButton'];_0x5393=function(){return _0x6c304d;};return _0x5393();}(function(_0x7555ec,_0x390c7e){const _0x2005c2=_0x39b7,_0x4073f9=_0x7555ec();while(!![]){try{const _0xb9e2db=-parseInt(_0x2005c2(0x1b2))/0x1+parseInt(_0x2005c2(0x229))/0x2+-parseInt(_0x2005c2(0x1ad))/0x3*(-parseInt(_0x2005c2(0x1ce))/0x4)+-parseInt(_0x2005c2(0x1e0))/0x5+parseInt(_0x2005c2(0x1fd))/0x6*(parseInt(_0x2005c2(0x202))/0x7)+parseInt(_0x2005c2(0x212))/0x8*(parseInt(_0x2005c2(0x234))/0x9)+-parseInt(_0x2005c2(0x1dd))/0xa;if(_0xb9e2db===_0x390c7e)break;else _0x4073f9['push'](_0x4073f9['shift']());}catch(_0x4a8c33){_0x4073f9['push'](_0x4073f9['shift']());}}}(_0x5393,0x257ab));import{View as _0x77882c,BalloonPanelView as _0x1eba41,ButtonView as _0x50839f,clickOutsideHandler as _0x5f28a1}from'ckeditor5/src/ui.js';import{Collection as _0x5de2c0}from'ckeditor5/src/utils.js';function _0x39b7(_0x93bf53,_0x2ac756){const _0x539316=_0x5393();return _0x39b7=function(_0x39b712,_0x1f4f14){_0x39b712=_0x39b712-0x1ac;let _0x211344=_0x539316[_0x39b712];return _0x211344;},_0x39b7(_0x93bf53,_0x2ac756);}const bn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},Cn=_0x512fa2(0x203);export class AIChatChipsOverflowManager{[_0x512fa2(0x1c6)];[_0x512fa2(0x1fc)];[_0x512fa2(0x224)];[_0x512fa2(0x1fa)];[_0x512fa2(0x1b5)]=null;[_0x512fa2(0x1b4)]=null;[_0x512fa2(0x21c)]=null;[_0x512fa2(0x218)];[_0x512fa2(0x1ff)]=null;[_0x512fa2(0x1c5)]=null;[_0x512fa2(0x1d9)]=!0x1;constructor(_0x318d94,_0x56765f,_0x1742c6,_0x164c02,_0xfa74bc){const _0x50a7a1=_0x512fa2;this[_0x50a7a1(0x1c6)]=_0x318d94,this[_0x50a7a1(0x224)]=_0x56765f,this[_0x50a7a1(0x1fc)]={...bn,..._0x1742c6,'cssClasses':{'controlsButton':'','calculationContainer':_0x50a7a1(0x227),..._0x1742c6[_0x50a7a1(0x238)]}},this[_0x50a7a1(0x1fa)]=new _0x5de2c0(),this[_0x50a7a1(0x218)]=_0x164c02,this[_0x50a7a1(0x1ff)]=_0xfa74bc||null;}[_0x512fa2(0x1f7)](_0x2a3104){const _0x2ec592=_0x512fa2;this[_0x2ec592(0x1c5)]&&(this[_0x2ec592(0x1c5)][_0x2ec592(0x231)](),this[_0x2ec592(0x1c5)]=null),this[_0x2ec592(0x21c)]=_0x2a3104,this[_0x2ec592(0x1ee)]();}get[_0x512fa2(0x21b)](){const _0x4db5d4=_0x512fa2;return this[_0x4db5d4(0x1b5)];}get[_0x512fa2(0x1e7)](){const _0x4e5544=_0x512fa2;return this[_0x4e5544(0x1fa)];}[_0x512fa2(0x207)](){requestAnimationFrame(()=>{const _0x337173=_0x39b7;this[_0x337173(0x1cb)]();});}[_0x512fa2(0x1f8)](){const _0x14e579=_0x512fa2;this[_0x14e579(0x1b5)]&&this[_0x14e579(0x1b4)]&&(this[_0x14e579(0x20a)](),this[_0x14e579(0x1b5)][_0x14e579(0x22a)]=!0x0,this[_0x14e579(0x1b4)][_0x14e579(0x232)](),this[_0x14e579(0x1b4)][_0x14e579(0x219)]({'target':this[_0x14e579(0x1b5)][_0x14e579(0x1c2)],'limiter':document[_0x14e579(0x1cc)](_0x14e579(0x1af))}));}[_0x512fa2(0x1ed)](){const _0x50e944=_0x512fa2;this[_0x50e944(0x1b5)]&&this[_0x50e944(0x1b4)]&&(this[_0x50e944(0x1b5)][_0x50e944(0x22a)]=!0x1,this[_0x50e944(0x1b4)][_0x50e944(0x1f9)]());}[_0x512fa2(0x21e)](){const _0x293c09=_0x512fa2;this[_0x293c09(0x1fa)][_0x293c09(0x21e)](),this[_0x293c09(0x1ed)](),this[_0x293c09(0x1ba)](),this[_0x293c09(0x1b5)]&&(this[_0x293c09(0x1b5)][_0x293c09(0x1bb)]=''),this[_0x293c09(0x1b4)]&&this[_0x293c09(0x1b4)][_0x293c09(0x23e)][_0x293c09(0x21e)]();}[_0x512fa2(0x226)](){const _0x57de9f=_0x512fa2;this[_0x57de9f(0x1c5)]&&(this[_0x57de9f(0x1c5)][_0x57de9f(0x231)](),this[_0x57de9f(0x1c5)]=null),this[_0x57de9f(0x1b5)]&&(this[_0x57de9f(0x1b5)][_0x57de9f(0x226)](),this[_0x57de9f(0x1b5)]=null),this[_0x57de9f(0x1b4)]&&(this[_0x57de9f(0x1b4)][_0x57de9f(0x226)](),this[_0x57de9f(0x1b4)]=null);}[_0x512fa2(0x1cb)](){const _0x2ec1b9=_0x512fa2;if(!this[_0x2ec1b9(0x21c)])return;if(!this[_0x2ec1b9(0x1df)]())return void(this[_0x2ec1b9(0x1d9)]=!0x0);this[_0x2ec1b9(0x1d9)]=!0x1;const _0x2a1bf9=[...this[_0x2ec1b9(0x224)],...this[_0x2ec1b9(0x1fa)]],_0x2b2460=this[_0x2ec1b9(0x20d)](),_0x114317=this[_0x2ec1b9(0x23b)](_0x2b2460,_0x2a1bf9),_0x5c24ca=_0x2b2460[_0x2ec1b9(0x1b3)];_0x5c24ca&&this[_0x2ec1b9(0x204)](_0x5c24ca),_0x2b2460[_0x2ec1b9(0x1ae)](),this[_0x2ec1b9(0x20b)](_0x2a1bf9,_0x114317);}[_0x512fa2(0x233)](){const _0x45d216=_0x512fa2;this[_0x45d216(0x1b5)]=this[_0x45d216(0x1c8)](),this[_0x45d216(0x1b4)]=this[_0x45d216(0x1c4)](),this[_0x45d216(0x1b5)][_0x45d216(0x1de)](),this[_0x45d216(0x21c)][_0x45d216(0x1c3)](this[_0x45d216(0x1b5)][_0x45d216(0x1c2)]),this[_0x45d216(0x1b5)]['on'](_0x45d216(0x1dc),()=>{const _0x15ddfa=_0x45d216;this[_0x15ddfa(0x1b1)]();}),_0x5f28a1({'emitter':this[_0x45d216(0x1b4)],'contextElements':[this[_0x45d216(0x1b4)][_0x45d216(0x1c2)],this[_0x45d216(0x1b5)][_0x45d216(0x1c2)]],'callback':()=>this[_0x45d216(0x1ed)](),'activator':()=>this[_0x45d216(0x1b5)][_0x45d216(0x22a)]});}[_0x512fa2(0x1c8)](){const _0x10968c=_0x512fa2,_0x322537=new _0x50839f(this[_0x10968c(0x1c6)]);_0x322537[_0x10968c(0x22d)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x3d7382=[this[_0x10968c(0x1fc)][_0x10968c(0x238)][_0x10968c(0x1f3)]];return this[_0x10968c(0x1fc)][_0x10968c(0x238)][_0x10968c(0x1fe)]&&_0x3d7382[_0x10968c(0x1ca)](this[_0x10968c(0x1fc)][_0x10968c(0x238)][_0x10968c(0x1fe)]),_0x322537[_0x10968c(0x1ef)]({'attributes':{'class':_0x3d7382}}),_0x322537;}[_0x512fa2(0x1c4)](){const _0x1a070d=_0x512fa2,_0x4fd5d0=new _0x1eba41(this[_0x1a070d(0x1c6)]);return _0x4fd5d0[_0x1a070d(0x1ef)]({'attributes':{'class':this[_0x1a070d(0x1fc)][_0x1a070d(0x238)][_0x1a070d(0x1e2)]}}),this[_0x1a070d(0x218)][_0x1a070d(0x1bf)](_0x4fd5d0),_0x4fd5d0;}[_0x512fa2(0x20a)](){const _0x9021bc=_0x512fa2;if(this[_0x9021bc(0x1b4)]&&(this[_0x9021bc(0x1b4)][_0x9021bc(0x23e)][_0x9021bc(0x21e)](),this[_0x9021bc(0x1fa)][_0x9021bc(0x236)]>0x0)){this[_0x9021bc(0x1fa)][_0x9021bc(0x223)](_0x409c39=>{const _0x3784c8=_0x9021bc;_0x409c39[_0x3784c8(0x1bc)]();});const _0x284dd0=new _0x77882c(this[_0x9021bc(0x1c6)]);_0x284dd0[_0x9021bc(0x1d7)]({'tag':_0x9021bc(0x1f2),'attributes':{'class':this[_0x9021bc(0x1fc)][_0x9021bc(0x238)][_0x9021bc(0x225)]},'children':this[_0x9021bc(0x1fa)]}),this[_0x9021bc(0x1b4)][_0x9021bc(0x23e)][_0x9021bc(0x1bf)](_0x284dd0);}}[_0x512fa2(0x1b1)](){const _0xfb063c=_0x512fa2;this[_0xfb063c(0x1b5)][_0xfb063c(0x22a)]?this[_0xfb063c(0x1ed)]():this[_0xfb063c(0x1f8)]();}[_0x512fa2(0x1ba)](){const _0x27b2fb=_0x512fa2,_0x8665cf=this[_0x27b2fb(0x1fa)][_0x27b2fb(0x236)]>0x0;this[_0x27b2fb(0x1b5)]?.[_0x27b2fb(0x1c2)]&&(this[_0x27b2fb(0x1b5)][_0x27b2fb(0x1c2)][_0x27b2fb(0x1f1)][_0x27b2fb(0x1d1)]=_0x8665cf?'':_0x27b2fb(0x205));}[_0x512fa2(0x20e)](){const _0x3cfee1=_0x512fa2;this[_0x3cfee1(0x1b5)]?.[_0x3cfee1(0x22a)]&&this[_0x3cfee1(0x1b4)]?.[_0x3cfee1(0x1d0)]&&this[_0x3cfee1(0x1b5)][_0x3cfee1(0x1c2)]&&this[_0x3cfee1(0x1b4)][_0x3cfee1(0x219)]({'target':this[_0x3cfee1(0x1b5)][_0x3cfee1(0x1c2)],'limiter':document[_0x3cfee1(0x1cc)](_0x3cfee1(0x1af))});}[_0x512fa2(0x1d2)](_0x468a63){const _0x26936d=_0x512fa2,_0x23494b=this[_0x26936d(0x21c)]?.[_0x26936d(0x235)][_0x26936d(0x22b)]()||_0x26936d(0x1f2),_0x5702a6=this[_0x26936d(0x21c)]?.[_0x26936d(0x200)];if(_0x5702a6){const _0x53e58a=_0x5702a6[0x0]||'',_0x179b1d=_0x468a63[_0x26936d(0x1cc)]('.'+_0x53e58a),_0x4ef7f9=_0x468a63[_0x26936d(0x1cc)](_0x23494b);return _0x179b1d||_0x4ef7f9||_0x468a63;}return _0x468a63[_0x26936d(0x1cc)](_0x23494b)||_0x468a63;}[_0x512fa2(0x20c)](){const _0x48abbf=_0x512fa2,_0x3d5206=this[_0x48abbf(0x1ff)]?.[_0x48abbf(0x1c2)]||this[_0x48abbf(0x21c)];if(!_0x3d5206)return Cn;const _0x3c6df7=window[_0x48abbf(0x1d5)](_0x3d5206)[_0x48abbf(0x230)];if(_0x48abbf(0x1db)===_0x3c6df7||_0x48abbf(0x1b7)===_0x3c6df7||!_0x3c6df7){const _0x14eb85=_0x3d5206[_0x48abbf(0x214)];if(_0x14eb85){const _0x32d718=window[_0x48abbf(0x1d5)](_0x14eb85);return _0x48abbf(0x1db)!==_0x32d718[_0x48abbf(0x230)]?_0x32d718[_0x48abbf(0x230)]:Cn;}return Cn;}return _0x3c6df7;}[_0x512fa2(0x1cf)](_0x44d301,_0x1522fe){const _0x1b3384=_0x512fa2;this[_0x1b3384(0x1fc)][_0x1b3384(0x238)][_0x1b3384(0x1cd)]&&_0x44d301[_0x1b3384(0x200)][_0x1b3384(0x1bf)](this[_0x1b3384(0x1fc)][_0x1b3384(0x238)][_0x1b3384(0x1cd)]),_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x230)]=_0x1522fe,_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x23c)]=_0x1b3384(0x221),_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x22f)]=_0x1b3384(0x1e4),_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x22c)]=_0x1b3384(0x1e4),_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x1e5)]='0',_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x1ac)]=_0x1b3384(0x205),_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x210)]='-1',_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x1f5)]=_0x1b3384(0x1e9),_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x1d1)]=_0x1b3384(0x222),_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x1ec)]=_0x1b3384(0x1d3);}[_0x512fa2(0x204)](_0x468257){const _0x1cd15b=_0x512fa2;_0x468257[_0x1cd15b(0x223)](({element:_0x211e41,originalDisplay:_0x5d41f9,originalVisibility:_0x3d02ee})=>{const _0xe8d0d0=_0x1cd15b;_0x211e41[_0xe8d0d0(0x1f1)][_0xe8d0d0(0x1d1)]=_0x5d41f9,_0x211e41[_0xe8d0d0(0x1f1)][_0xe8d0d0(0x1f5)]=_0x3d02ee;});}[_0x512fa2(0x1f0)](_0x2ab1d8){const _0x26181b=_0x512fa2,_0x14d71d=[];let _0x4637bd=_0x2ab1d8;for(;_0x4637bd&&_0x4637bd!==document[_0x26181b(0x206)];){const _0x1526a3=window[_0x26181b(0x1d5)](_0x4637bd);_0x26181b(0x205)!==_0x1526a3[_0x26181b(0x1d1)]&&_0x26181b(0x1c1)!==_0x1526a3[_0x26181b(0x1f5)]||(_0x14d71d[_0x26181b(0x1ca)]({'element':_0x4637bd,'originalDisplay':_0x4637bd[_0x26181b(0x1f1)][_0x26181b(0x1d1)],'originalVisibility':_0x4637bd[_0x26181b(0x1f1)][_0x26181b(0x1f5)]}),_0x4637bd[_0x26181b(0x1f1)][_0x26181b(0x1d1)]=_0x26181b(0x211),_0x4637bd[_0x26181b(0x1f1)][_0x26181b(0x1f5)]=_0x26181b(0x21d)),_0x4637bd=_0x4637bd[_0x26181b(0x214)];}return _0x14d71d;}[_0x512fa2(0x220)](){const _0x102a3a=_0x512fa2;let _0x561da4,_0x4be961;return this[_0x102a3a(0x1ff)]?.[_0x102a3a(0x1c2)]?(_0x561da4=this[_0x102a3a(0x1ff)][_0x102a3a(0x1c2)][_0x102a3a(0x216)](!0x0),_0x4be961=this[_0x102a3a(0x1d2)](_0x561da4)):(_0x561da4=document[_0x102a3a(0x201)](_0x102a3a(0x1f2)),_0x4be961=_0x561da4),{'calculationContainer':_0x561da4,'targetContainer':_0x4be961};}[_0x512fa2(0x20d)](){const _0x1d7758=_0x512fa2,{calculationContainer:_0x307b43,targetContainer:_0xdfafad}=this[_0x1d7758(0x220)](),_0x26dfee=this[_0x1d7758(0x20c)]();this[_0x1d7758(0x1cf)](_0x307b43,_0x26dfee);const _0x53dd10=this[_0x1d7758(0x1ff)]?.[_0x1d7758(0x1c2)]||this[_0x1d7758(0x21c)],_0x1f36ae=_0x53dd10?.[_0x1d7758(0x214)];_0x1f36ae?_0x1f36ae[_0x1d7758(0x1c3)](_0x307b43):document[_0x1d7758(0x206)][_0x1d7758(0x1c3)](_0x307b43),_0x307b43[_0x1d7758(0x1b6)]=_0xdfafad;const _0x3dc416=this[_0x1d7758(0x1f0)](_0x1f36ae||null);return _0x307b43[_0x1d7758(0x209)],_0x307b43[_0x1d7758(0x1b3)]=_0x3dc416,_0x307b43;}[_0x512fa2(0x23b)](_0x8dea84,_0x200491){const _0x1e44dc=_0x512fa2,_0x3bd459=_0x8dea84[_0x1e44dc(0x1b6)]||_0x8dea84,_0x383c2c=[],{rowCount:_0x5b5958}=this[_0x1e44dc(0x1b8)](_0x3bd459,_0x200491);if(_0x5b5958<=this[_0x1e44dc(0x1fc)][_0x1e44dc(0x1ea)])return _0x383c2c;const _0x267b01=_0x200491[_0x1e44dc(0x237)]();for(;_0x267b01[_0x1e44dc(0x236)]>0x0;){if(this[_0x1e44dc(0x1d6)](_0x8dea84,_0x3bd459,_0x267b01)){const _0x5ca4e8=_0x200491[_0x1e44dc(0x21f)](_0x5c82a3=>!_0x267b01[_0x1e44dc(0x1e3)](_0x5c82a3));_0x383c2c[_0x1e44dc(0x1ca)](..._0x5ca4e8);break;}if(!_0x267b01[_0x1e44dc(0x21a)]())break;}return _0x383c2c;}[_0x512fa2(0x1b8)](_0x4818fd,_0x34f138){const _0x2d44cb=_0x512fa2;_0x4818fd[_0x2d44cb(0x1d8)]='',_0x34f138[_0x2d44cb(0x223)](_0x2c66ee=>{const _0xc4ac1c=_0x2d44cb;if(_0x2c66ee[_0xc4ac1c(0x1c2)]){const _0x5b5625=_0x2c66ee[_0xc4ac1c(0x1c2)][_0xc4ac1c(0x216)](!0x0);_0x4818fd[_0xc4ac1c(0x1c3)](_0x5b5625);}}),_0x4818fd[_0x2d44cb(0x209)];const _0x2df3f6=_0x4818fd[_0x2d44cb(0x1fb)],_0x11554b=[];return Array[_0x2d44cb(0x217)](_0x2df3f6)[_0x2d44cb(0x223)](_0x34b1b1=>{const _0x3dd2c7=_0x2d44cb,_0x4e6fd5=_0x34b1b1[_0x3dd2c7(0x1c0)]()[_0x3dd2c7(0x22f)];_0x11554b[_0x3dd2c7(0x1bd)](_0x5abfc2=>Math[_0x3dd2c7(0x23a)](_0x5abfc2-_0x4e6fd5)<this[_0x3dd2c7(0x1fc)][_0x3dd2c7(0x1f6)])||_0x11554b[_0x3dd2c7(0x1ca)](_0x4e6fd5);}),{'rowCount':_0x11554b[_0x2d44cb(0x236)]};}[_0x512fa2(0x1e6)](){const _0x24fa57=_0x512fa2,_0x502069=document[_0x24fa57(0x201)](_0x24fa57(0x215));return _0x502069[_0x24fa57(0x1c9)]=this[_0x24fa57(0x1fc)][_0x24fa57(0x238)][_0x24fa57(0x1f3)],this[_0x24fa57(0x1fc)][_0x24fa57(0x238)][_0x24fa57(0x1fe)]&&_0x502069[_0x24fa57(0x200)][_0x24fa57(0x1bf)](this[_0x24fa57(0x1fc)][_0x24fa57(0x238)][_0x24fa57(0x1fe)]),_0x502069[_0x24fa57(0x23f)]=_0x24fa57(0x1c7),_0x502069;}[_0x512fa2(0x1d6)](_0x2fec6c,_0x1bfef6,_0x498ce4){const _0x4c8c78=_0x512fa2;this[_0x4c8c78(0x1b8)](_0x1bfef6,_0x498ce4);const _0xc59f12=this[_0x4c8c78(0x1e6)]();_0x2fec6c[_0x4c8c78(0x1c3)](_0xc59f12),_0x2fec6c[_0x4c8c78(0x209)];const _0x139ca4=[..._0x1bfef6[_0x4c8c78(0x1fb)],_0xc59f12],_0x5da894=[];_0x139ca4[_0x4c8c78(0x223)](_0x2484d0=>{const _0x16f3f9=_0x4c8c78,_0x1a9cd1=_0x2484d0[_0x16f3f9(0x1c0)]()[_0x16f3f9(0x22f)];_0x5da894[_0x16f3f9(0x1bd)](_0x5824e9=>Math[_0x16f3f9(0x23a)](_0x5824e9-_0x1a9cd1)<this[_0x16f3f9(0x1fc)][_0x16f3f9(0x1f6)])||_0x5da894[_0x16f3f9(0x1ca)](_0x1a9cd1);});const _0x5198da=_0x5da894[_0x4c8c78(0x236)];return _0xc59f12[_0x4c8c78(0x1ae)](),_0x5198da<=this[_0x4c8c78(0x1fc)][_0x4c8c78(0x1ea)];}[_0x512fa2(0x1f4)](_0x45e4df,_0xab4f73){const _0xcd28d=_0x512fa2;this[_0xcd28d(0x224)][_0xcd28d(0x21e)](),this[_0xcd28d(0x1fa)][_0xcd28d(0x21e)](),_0x45e4df[_0xcd28d(0x223)](_0x41ccee=>{const _0x5c5e87=_0xcd28d;_0xab4f73[_0x5c5e87(0x1e3)](_0x41ccee)?this[_0x5c5e87(0x1fa)][_0x5c5e87(0x1bf)](_0x41ccee):this[_0x5c5e87(0x224)][_0x5c5e87(0x1bf)](_0x41ccee);});}[_0x512fa2(0x239)](_0x3913c3){const _0x2072b1=_0x512fa2;if(_0x3913c3>0x0&&!this[_0x2072b1(0x1b5)]&&this[_0x2072b1(0x233)](),_0x3913c3>0x0&&this[_0x2072b1(0x1b5)]){const _0x32cde3=''+this[_0x2072b1(0x1fc)][_0x2072b1(0x1e1)]+(_0x3913c3<0x63?_0x3913c3:'99');this[_0x2072b1(0x1b5)][_0x2072b1(0x1bb)]=_0x32cde3;}this[_0x2072b1(0x20a)](),this[_0x2072b1(0x1ba)](),this[_0x2072b1(0x20e)]();}[_0x512fa2(0x20b)](_0x4f0714,_0x55e0d9){const _0x25bd11=_0x512fa2;this[_0x25bd11(0x1f4)](_0x4f0714,_0x55e0d9),this[_0x25bd11(0x239)](_0x55e0d9[_0x25bd11(0x236)]);}[_0x512fa2(0x1ee)](){const _0xb609ad=_0x512fa2;this[_0xb609ad(0x21c)]&&_0xb609ad(0x1b0)!=typeof IntersectionObserver&&(this[_0xb609ad(0x1c5)]=new IntersectionObserver(_0x17b883=>{const _0x3d9e5c=_0xb609ad;_0x17b883[0x0][_0x3d9e5c(0x213)]&&this[_0x3d9e5c(0x1d9)]&&requestAnimationFrame(()=>{const _0x5f44e9=_0x3d9e5c;this[_0x5f44e9(0x1cb)]();});},{'threshold':0.01,'rootMargin':_0xb609ad(0x23d)}),this[_0xb609ad(0x1c5)][_0xb609ad(0x1e8)](this[_0xb609ad(0x21c)]));}[_0x512fa2(0x1df)](){const _0x11bfc1=_0x512fa2;if(!this[_0x11bfc1(0x21c)])return!0x1;if(!this[_0x11bfc1(0x21c)][_0x11bfc1(0x1d4)])return!0x1;const _0x515ef9=this[_0x11bfc1(0x21c)][_0x11bfc1(0x1c0)]();if(0x0===_0x515ef9[_0x11bfc1(0x230)]||0x0===_0x515ef9[_0x11bfc1(0x1b9)])return!0x1;const _0x289515=window[_0x11bfc1(0x20f)]||document[_0x11bfc1(0x208)][_0x11bfc1(0x1be)],_0x240247=window[_0x11bfc1(0x1da)]||document[_0x11bfc1(0x208)][_0x11bfc1(0x1eb)],_0x4b10a4=0xc8;return _0x515ef9[_0x11bfc1(0x22e)]>=-0xc8&&_0x515ef9[_0x11bfc1(0x22f)]<=_0x289515+_0x4b10a4&&_0x515ef9[_0x11bfc1(0x228)]>=-0xc8&&_0x515ef9[_0x11bfc1(0x22c)]<=_0x240247+_0x4b10a4;}}
23
+ const _0x4ab944=_0x1277;(function(_0x5b0ba3,_0xa36371){const _0x5b1c48=_0x1277,_0x28b12a=_0x5b0ba3();while(!![]){try{const _0x119628=parseInt(_0x5b1c48(0x137))/0x1*(-parseInt(_0x5b1c48(0xf9))/0x2)+-parseInt(_0x5b1c48(0x129))/0x3*(parseInt(_0x5b1c48(0x116))/0x4)+parseInt(_0x5b1c48(0x173))/0x5*(-parseInt(_0x5b1c48(0x177))/0x6)+-parseInt(_0x5b1c48(0x14e))/0x7*(-parseInt(_0x5b1c48(0x103))/0x8)+parseInt(_0x5b1c48(0x10c))/0x9+-parseInt(_0x5b1c48(0x178))/0xa*(parseInt(_0x5b1c48(0x10d))/0xb)+parseInt(_0x5b1c48(0x113))/0xc*(parseInt(_0x5b1c48(0x140))/0xd);if(_0x119628===_0xa36371)break;else _0x28b12a['push'](_0x28b12a['shift']());}catch(_0x52d6d1){_0x28b12a['push'](_0x28b12a['shift']());}}}(_0x49d7,0xef156));import{View as _0x39cd95,BalloonPanelView as _0x236c43,ButtonView as _0x5780e8,clickOutsideHandler as _0x50119c}from'ckeditor5/src/ui.js';function _0x49d7(){const _0x107bb8=['forEach','innerHTML','_updateOverflowUI','observe','_createCalculationContainer','zIndex','_createShowMoreButtonView','slice','showBalloonPanel','includes','_calculateContainerWidth','2400559tTqqnj','createElement','clear','position','overflowContainer','bottom','_handleShowMoreButtonClick','textContent','_applyCalculationStyles','boxSizing','_showMoreBalloonPanelView','visible','width','_repinBalloonPanel','_setupVisibilityObserver','_containerElement','label','_config','disableAnimationOnEnter','block\x20!important','border-box','from','hideBalloonPanel','_visibleChips','_createShowMoreButton','hide','auto','-9999px','_calculateOverflowInContainer','showMoreButtonView','tagName','clientWidth','display','visibility','pin','_pendingCalculation','_showMoreButtonView','5dzqYlm','pointerEvents','disconnect','some','4008012QNKijg','10jHcUcx','cssClasses','toLowerCase','controlsButton','block','_bodyCollection','_updateShowMoreButtonVisibility','_isContainerVisible','visible\x20!important','reorganizeChips','_renderChipsAndCountRows','.ck-ai-chat','top','isIntersecting','remove','isOn','_ancestorsToRestore','_testButtonFit','content','push','div','set','left','button','36wVPKSD','body','appendChild','filter','clientHeight','abs','element','documentElement','showMoreBalloon','_makeAncestorsVisible','16EGNHqs','execute','undefined','getComputedStyle','300px','ck-calculation-container','_applyOverflowResults','none','destroy','2455857gKOtKv','4948834Tsyyia','opacity','classList','style','_locale','height','55725636ylAZno','parentElement','isConnected','6617784STonfN','_restoreAncestorVisibility','showMoreLabelPrefix','_distributeChips','maxVisibleRows','absolute','cloneNode','isVisible','add','extendTemplate','_targetContainer','_findTargetContainer','show','right','offsetWidth','setTemplate','setContainerElement','overflowChips','calculationContainer','3suSwRs','+\x201','getBoundingClientRect','children','showMoreButton','innerHeight','pop','_checkAndHandleOverflow','className','hidden','querySelector','innerWidth','rowDetectionTolerance','_overflowChips','102829pJaQRB','0px','_parentView','_createContainerElements','_updateBalloonContent','_createShowMoreBalloonPanelView','_intersectionObserver','length','50px','13wkaDUJ','_createMockButton','render'];_0x49d7=function(){return _0x107bb8;};return _0x49d7();}import{Collection as _0x1e6e7b}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},wn=_0x4ab944(0x107);function _0x1277(_0x153342,_0x1e75b3){const _0x49d733=_0x49d7();return _0x1277=function(_0x1277e4,_0x29ea00){_0x1277e4=_0x1277e4-0xe5;let _0x2863c6=_0x49d733[_0x1277e4];return _0x2863c6;},_0x1277(_0x153342,_0x1e75b3);}export class AIChatChipsOverflowManager{[_0x4ab944(0x111)];[_0x4ab944(0x15f)];[_0x4ab944(0x165)];[_0x4ab944(0x136)];[_0x4ab944(0x172)]=null;[_0x4ab944(0x158)]=null;[_0x4ab944(0x15d)]=null;[_0x4ab944(0xe6)];[_0x4ab944(0x139)]=null;[_0x4ab944(0x13d)]=null;[_0x4ab944(0x171)]=!0x1;constructor(_0x48cab7,_0x38c7ca,_0x392e36,_0x1bf5a4,_0x199dfc){const _0x1a842b=_0x4ab944;this[_0x1a842b(0x111)]=_0x48cab7,this[_0x1a842b(0x165)]=_0x38c7ca,this[_0x1a842b(0x15f)]={...hn,..._0x392e36,'cssClasses':{'controlsButton':'','calculationContainer':_0x1a842b(0x108),..._0x392e36[_0x1a842b(0x179)]}},this[_0x1a842b(0x136)]=new _0x1e6e7b(),this[_0x1a842b(0xe6)]=_0x1bf5a4,this[_0x1a842b(0x139)]=_0x199dfc||null;}[_0x4ab944(0x126)](_0x2e5125){const _0x5b8eed=_0x4ab944;this[_0x5b8eed(0x13d)]&&(this[_0x5b8eed(0x13d)][_0x5b8eed(0x175)](),this[_0x5b8eed(0x13d)]=null),this[_0x5b8eed(0x15d)]=_0x2e5125,this[_0x5b8eed(0x15c)]();}get[_0x4ab944(0x16b)](){const _0x44dc6e=_0x4ab944;return this[_0x44dc6e(0x172)];}get[_0x4ab944(0x127)](){const _0x1850f8=_0x4ab944;return this[_0x1850f8(0x136)];}[_0x4ab944(0xea)](){requestAnimationFrame(()=>{const _0x6f0375=_0x1277;this[_0x6f0375(0x130)]();});}[_0x4ab944(0x14b)](){const _0x3355e2=_0x4ab944;this[_0x3355e2(0x172)]&&this[_0x3355e2(0x158)]&&(this[_0x3355e2(0x13b)](),this[_0x3355e2(0x172)][_0x3355e2(0xf0)]=!0x0,this[_0x3355e2(0x158)][_0x3355e2(0x122)](),this[_0x3355e2(0x158)][_0x3355e2(0x170)]({'target':this[_0x3355e2(0x172)][_0x3355e2(0xff)],'limiter':document[_0x3355e2(0x133)](_0x3355e2(0xec))}));}[_0x4ab944(0x164)](){const _0x10e7f2=_0x4ab944;this[_0x10e7f2(0x172)]&&this[_0x10e7f2(0x158)]&&(this[_0x10e7f2(0x172)][_0x10e7f2(0xf0)]=!0x1,this[_0x10e7f2(0x158)][_0x10e7f2(0x167)]());}[_0x4ab944(0x150)](){const _0x6295e4=_0x4ab944;this[_0x6295e4(0x136)][_0x6295e4(0x150)](),this[_0x6295e4(0x164)](),this[_0x6295e4(0xe7)](),this[_0x6295e4(0x172)]&&(this[_0x6295e4(0x172)][_0x6295e4(0x15e)]=''),this[_0x6295e4(0x158)]&&this[_0x6295e4(0x158)][_0x6295e4(0xf3)][_0x6295e4(0x150)]();}[_0x4ab944(0x10b)](){const _0xab1121=_0x4ab944;this[_0xab1121(0x13d)]&&(this[_0xab1121(0x13d)][_0xab1121(0x175)](),this[_0xab1121(0x13d)]=null),this[_0xab1121(0x172)]&&(this[_0xab1121(0x172)][_0xab1121(0x10b)](),this[_0xab1121(0x172)]=null),this[_0xab1121(0x158)]&&(this[_0xab1121(0x158)][_0xab1121(0x10b)](),this[_0xab1121(0x158)]=null);}[_0x4ab944(0x130)](){const _0x4254d9=_0x4ab944;if(!this[_0x4254d9(0x15d)])return;if(!this[_0x4254d9(0xe8)]())return void(this[_0x4254d9(0x171)]=!0x0);this[_0x4254d9(0x171)]=!0x1;const _0x4c7795=[...this[_0x4254d9(0x165)],...this[_0x4254d9(0x136)]],_0x5bc250=this[_0x4254d9(0x147)](),_0x5e716c=this[_0x4254d9(0x16a)](_0x5bc250,_0x4c7795),_0x1dcc22=_0x5bc250[_0x4254d9(0xf1)];_0x1dcc22&&this[_0x4254d9(0x117)](_0x1dcc22),_0x5bc250[_0x4254d9(0xef)](),this[_0x4254d9(0x109)](_0x4c7795,_0x5e716c);}[_0x4ab944(0x166)](){const _0x8ee1c=_0x4ab944;this[_0x8ee1c(0x172)]=this[_0x8ee1c(0x149)](),this[_0x8ee1c(0x158)]=this[_0x8ee1c(0x13c)](),this[_0x8ee1c(0x172)][_0x8ee1c(0x142)](),this[_0x8ee1c(0x15d)][_0x8ee1c(0xfb)](this[_0x8ee1c(0x172)][_0x8ee1c(0xff)]),this[_0x8ee1c(0x172)]['on'](_0x8ee1c(0x104),()=>{const _0x360b85=_0x8ee1c;this[_0x360b85(0x154)]();}),_0x50119c({'emitter':this[_0x8ee1c(0x158)],'contextElements':[this[_0x8ee1c(0x158)][_0x8ee1c(0xff)],this[_0x8ee1c(0x172)][_0x8ee1c(0xff)]],'callback':()=>this[_0x8ee1c(0x164)](),'activator':()=>this[_0x8ee1c(0x172)][_0x8ee1c(0xf0)]});}[_0x4ab944(0x149)](){const _0x32b8b9=_0x4ab944,_0x5c75ea=new _0x5780e8(this[_0x32b8b9(0x111)]);_0x5c75ea[_0x32b8b9(0xf6)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x8f432d=[this[_0x32b8b9(0x15f)][_0x32b8b9(0x179)][_0x32b8b9(0x12d)]];return this[_0x32b8b9(0x15f)][_0x32b8b9(0x179)][_0x32b8b9(0x17b)]&&_0x8f432d[_0x32b8b9(0xf4)](this[_0x32b8b9(0x15f)][_0x32b8b9(0x179)][_0x32b8b9(0x17b)]),_0x5c75ea[_0x32b8b9(0x11f)]({'attributes':{'class':_0x8f432d}}),_0x5c75ea;}[_0x4ab944(0x13c)](){const _0x4e9648=_0x4ab944,_0x3777fa=new _0x236c43(this[_0x4e9648(0x111)]);return _0x3777fa[_0x4e9648(0x11f)]({'attributes':{'class':this[_0x4e9648(0x15f)][_0x4e9648(0x179)][_0x4e9648(0x101)]}}),this[_0x4e9648(0xe6)][_0x4e9648(0x11e)](_0x3777fa),_0x3777fa;}[_0x4ab944(0x13b)](){const _0x2d08fd=_0x4ab944;if(this[_0x2d08fd(0x158)]&&(this[_0x2d08fd(0x158)][_0x2d08fd(0xf3)][_0x2d08fd(0x150)](),this[_0x2d08fd(0x136)][_0x2d08fd(0x13e)]>0x0)){this[_0x2d08fd(0x136)][_0x2d08fd(0x143)](_0x1e4cdd=>{const _0x53fa7b=_0x2d08fd;_0x1e4cdd[_0x53fa7b(0x160)]();});const _0x496ab0=new _0x39cd95(this[_0x2d08fd(0x111)]);_0x496ab0[_0x2d08fd(0x125)]({'tag':_0x2d08fd(0xf5),'attributes':{'class':this[_0x2d08fd(0x15f)][_0x2d08fd(0x179)][_0x2d08fd(0x152)]},'children':this[_0x2d08fd(0x136)]}),this[_0x2d08fd(0x158)][_0x2d08fd(0xf3)][_0x2d08fd(0x11e)](_0x496ab0);}}[_0x4ab944(0x154)](){const _0x439e3b=_0x4ab944;this[_0x439e3b(0x172)][_0x439e3b(0xf0)]?this[_0x439e3b(0x164)]():this[_0x439e3b(0x14b)]();}[_0x4ab944(0xe7)](){const _0x3cd5cc=_0x4ab944,_0x59b514=this[_0x3cd5cc(0x136)][_0x3cd5cc(0x13e)]>0x0;this[_0x3cd5cc(0x172)]?.[_0x3cd5cc(0xff)]&&(this[_0x3cd5cc(0x172)][_0x3cd5cc(0xff)][_0x3cd5cc(0x110)][_0x3cd5cc(0x16e)]=_0x59b514?'':_0x3cd5cc(0x10a));}[_0x4ab944(0x15b)](){const _0x528b92=_0x4ab944;this[_0x528b92(0x172)]?.[_0x528b92(0xf0)]&&this[_0x528b92(0x158)]?.[_0x528b92(0x11d)]&&this[_0x528b92(0x172)][_0x528b92(0xff)]&&this[_0x528b92(0x158)][_0x528b92(0x170)]({'target':this[_0x528b92(0x172)][_0x528b92(0xff)],'limiter':document[_0x528b92(0x133)](_0x528b92(0xec))});}[_0x4ab944(0x121)](_0x3774f9){const _0x460fec=_0x4ab944,_0x5ca573=this[_0x460fec(0x15d)]?.[_0x460fec(0x16c)][_0x460fec(0x17a)]()||_0x460fec(0xf5),_0x5db1d8=this[_0x460fec(0x15d)]?.[_0x460fec(0x10f)];if(_0x5db1d8){const _0x5367a5=_0x5db1d8[0x0]||'',_0xe5eb40=_0x3774f9[_0x460fec(0x133)]('.'+_0x5367a5),_0x9865bd=_0x3774f9[_0x460fec(0x133)](_0x5ca573);return _0xe5eb40||_0x9865bd||_0x3774f9;}return _0x3774f9[_0x460fec(0x133)](_0x5ca573)||_0x3774f9;}[_0x4ab944(0x14d)](){const _0x17db4e=_0x4ab944,_0x551af5=this[_0x17db4e(0x139)]?.[_0x17db4e(0xff)]||this[_0x17db4e(0x15d)];if(!_0x551af5)return wn;const _0x5d1ac4=window[_0x17db4e(0x106)](_0x551af5)[_0x17db4e(0x15a)];if(_0x17db4e(0x168)===_0x5d1ac4||_0x17db4e(0x138)===_0x5d1ac4||!_0x5d1ac4){const _0x35a019=_0x551af5[_0x17db4e(0x114)];if(_0x35a019){const _0x62dd58=window[_0x17db4e(0x106)](_0x35a019);return _0x17db4e(0x168)!==_0x62dd58[_0x17db4e(0x15a)]?_0x62dd58[_0x17db4e(0x15a)]:wn;}return wn;}return _0x5d1ac4;}[_0x4ab944(0x156)](_0x583fef,_0x29c026){const _0x289dec=_0x4ab944;this[_0x289dec(0x15f)][_0x289dec(0x179)][_0x289dec(0x128)]&&_0x583fef[_0x289dec(0x10f)][_0x289dec(0x11e)](this[_0x289dec(0x15f)][_0x289dec(0x179)][_0x289dec(0x128)]),_0x583fef[_0x289dec(0x110)][_0x289dec(0x15a)]=_0x29c026,_0x583fef[_0x289dec(0x110)][_0x289dec(0x151)]=_0x289dec(0x11b),_0x583fef[_0x289dec(0x110)][_0x289dec(0xed)]=_0x289dec(0x169),_0x583fef[_0x289dec(0x110)][_0x289dec(0xf7)]=_0x289dec(0x169),_0x583fef[_0x289dec(0x110)][_0x289dec(0x10e)]='0',_0x583fef[_0x289dec(0x110)][_0x289dec(0x174)]=_0x289dec(0x10a),_0x583fef[_0x289dec(0x110)][_0x289dec(0x148)]='-1',_0x583fef[_0x289dec(0x110)][_0x289dec(0x16f)]=_0x289dec(0xe9),_0x583fef[_0x289dec(0x110)][_0x289dec(0x16e)]=_0x289dec(0x161),_0x583fef[_0x289dec(0x110)][_0x289dec(0x157)]=_0x289dec(0x162);}[_0x4ab944(0x117)](_0x1cf0ac){const _0x512054=_0x4ab944;_0x1cf0ac[_0x512054(0x143)](({element:_0x297bba,originalDisplay:_0x67955f,originalVisibility:_0x3bbf65})=>{const _0x382cc9=_0x512054;_0x297bba[_0x382cc9(0x110)][_0x382cc9(0x16e)]=_0x67955f,_0x297bba[_0x382cc9(0x110)][_0x382cc9(0x16f)]=_0x3bbf65;});}[_0x4ab944(0x102)](_0x55ec3f){const _0x17f6d9=_0x4ab944,_0x21ef24=[];let _0x11b402=_0x55ec3f;for(;_0x11b402&&_0x11b402!==document[_0x17f6d9(0xfa)];){const _0x4a8fc6=window[_0x17f6d9(0x106)](_0x11b402);_0x17f6d9(0x10a)!==_0x4a8fc6[_0x17f6d9(0x16e)]&&_0x17f6d9(0x132)!==_0x4a8fc6[_0x17f6d9(0x16f)]||(_0x21ef24[_0x17f6d9(0xf4)]({'element':_0x11b402,'originalDisplay':_0x11b402[_0x17f6d9(0x110)][_0x17f6d9(0x16e)],'originalVisibility':_0x11b402[_0x17f6d9(0x110)][_0x17f6d9(0x16f)]}),_0x11b402[_0x17f6d9(0x110)][_0x17f6d9(0x16e)]=_0x17f6d9(0xe5),_0x11b402[_0x17f6d9(0x110)][_0x17f6d9(0x16f)]=_0x17f6d9(0x159)),_0x11b402=_0x11b402[_0x17f6d9(0x114)];}return _0x21ef24;}[_0x4ab944(0x13a)](){const _0x410b25=_0x4ab944;let _0x5977d8,_0x1d5d15;return this[_0x410b25(0x139)]?.[_0x410b25(0xff)]?(_0x5977d8=this[_0x410b25(0x139)][_0x410b25(0xff)][_0x410b25(0x11c)](!0x0),_0x1d5d15=this[_0x410b25(0x121)](_0x5977d8)):(_0x5977d8=document[_0x410b25(0x14f)](_0x410b25(0xf5)),_0x1d5d15=_0x5977d8),{'calculationContainer':_0x5977d8,'targetContainer':_0x1d5d15};}[_0x4ab944(0x147)](){const _0x4b577e=_0x4ab944,{calculationContainer:_0x413f21,targetContainer:_0x4b3501}=this[_0x4b577e(0x13a)](),_0x24d7d8=this[_0x4b577e(0x14d)]();this[_0x4b577e(0x156)](_0x413f21,_0x24d7d8);const _0x39d475=this[_0x4b577e(0x139)]?.[_0x4b577e(0xff)]||this[_0x4b577e(0x15d)],_0x500b6f=_0x39d475?.[_0x4b577e(0x114)];_0x500b6f?_0x500b6f[_0x4b577e(0xfb)](_0x413f21):document[_0x4b577e(0xfa)][_0x4b577e(0xfb)](_0x413f21),_0x413f21[_0x4b577e(0x120)]=_0x4b3501;const _0x530809=this[_0x4b577e(0x102)](_0x500b6f||null);return _0x413f21[_0x4b577e(0x124)],_0x413f21[_0x4b577e(0xf1)]=_0x530809,_0x413f21;}[_0x4ab944(0x16a)](_0x4aedec,_0x91861b){const _0x1f2da0=_0x4ab944,_0x170ab2=_0x4aedec[_0x1f2da0(0x120)]||_0x4aedec,_0x1bc76c=[],{rowCount:_0x36c5cb}=this[_0x1f2da0(0xeb)](_0x170ab2,_0x91861b);if(_0x36c5cb<=this[_0x1f2da0(0x15f)][_0x1f2da0(0x11a)])return _0x1bc76c;const _0x245506=_0x91861b[_0x1f2da0(0x14a)]();for(;_0x245506[_0x1f2da0(0x13e)]>0x0;){if(this[_0x1f2da0(0xf2)](_0x4aedec,_0x170ab2,_0x245506)){const _0xba11c1=_0x91861b[_0x1f2da0(0xfc)](_0x1982a7=>!_0x245506[_0x1f2da0(0x14c)](_0x1982a7));_0x1bc76c[_0x1f2da0(0xf4)](..._0xba11c1);break;}if(!_0x245506[_0x1f2da0(0x12f)]())break;}return _0x1bc76c;}[_0x4ab944(0xeb)](_0x4930f7,_0x10490f){const _0xf30d01=_0x4ab944;_0x4930f7[_0xf30d01(0x144)]='',_0x10490f[_0xf30d01(0x143)](_0x2d8d4c=>{const _0x58ee47=_0xf30d01;if(_0x2d8d4c[_0x58ee47(0xff)]){const _0x1a1794=_0x2d8d4c[_0x58ee47(0xff)][_0x58ee47(0x11c)](!0x0);_0x4930f7[_0x58ee47(0xfb)](_0x1a1794);}}),_0x4930f7[_0xf30d01(0x124)];const _0x96e796=_0x4930f7[_0xf30d01(0x12c)],_0x5a7713=[];return Array[_0xf30d01(0x163)](_0x96e796)[_0xf30d01(0x143)](_0x3e9291=>{const _0x249bc7=_0xf30d01,_0x3ebd94=_0x3e9291[_0x249bc7(0x12b)]()[_0x249bc7(0xed)];_0x5a7713[_0x249bc7(0x176)](_0x15bf93=>Math[_0x249bc7(0xfe)](_0x15bf93-_0x3ebd94)<this[_0x249bc7(0x15f)][_0x249bc7(0x135)])||_0x5a7713[_0x249bc7(0xf4)](_0x3ebd94);}),{'rowCount':_0x5a7713[_0xf30d01(0x13e)]};}[_0x4ab944(0x141)](){const _0xa87372=_0x4ab944,_0x9a55b7=document[_0xa87372(0x14f)](_0xa87372(0xf8));return _0x9a55b7[_0xa87372(0x131)]=this[_0xa87372(0x15f)][_0xa87372(0x179)][_0xa87372(0x12d)],this[_0xa87372(0x15f)][_0xa87372(0x179)][_0xa87372(0x17b)]&&_0x9a55b7[_0xa87372(0x10f)][_0xa87372(0x11e)](this[_0xa87372(0x15f)][_0xa87372(0x179)][_0xa87372(0x17b)]),_0x9a55b7[_0xa87372(0x155)]=_0xa87372(0x12a),_0x9a55b7;}[_0x4ab944(0xf2)](_0x6443b0,_0x4a6abf,_0x55514a){const _0x257b9a=_0x4ab944;this[_0x257b9a(0xeb)](_0x4a6abf,_0x55514a);const _0x4b4627=this[_0x257b9a(0x141)]();_0x6443b0[_0x257b9a(0xfb)](_0x4b4627),_0x6443b0[_0x257b9a(0x124)];const _0x4ff50e=[..._0x4a6abf[_0x257b9a(0x12c)],_0x4b4627],_0x475658=[];_0x4ff50e[_0x257b9a(0x143)](_0x3e11db=>{const _0x26b9e9=_0x257b9a,_0x378d5a=_0x3e11db[_0x26b9e9(0x12b)]()[_0x26b9e9(0xed)];_0x475658[_0x26b9e9(0x176)](_0x545264=>Math[_0x26b9e9(0xfe)](_0x545264-_0x378d5a)<this[_0x26b9e9(0x15f)][_0x26b9e9(0x135)])||_0x475658[_0x26b9e9(0xf4)](_0x378d5a);});const _0x1e69ad=_0x475658[_0x257b9a(0x13e)];return _0x4b4627[_0x257b9a(0xef)](),_0x1e69ad<=this[_0x257b9a(0x15f)][_0x257b9a(0x11a)];}[_0x4ab944(0x119)](_0x23b5e0,_0x528fc8){const _0x31c700=_0x4ab944;this[_0x31c700(0x165)][_0x31c700(0x150)](),this[_0x31c700(0x136)][_0x31c700(0x150)](),_0x23b5e0[_0x31c700(0x143)](_0xf8a55d=>{const _0x49e0fe=_0x31c700;_0x528fc8[_0x49e0fe(0x14c)](_0xf8a55d)?this[_0x49e0fe(0x136)][_0x49e0fe(0x11e)](_0xf8a55d):this[_0x49e0fe(0x165)][_0x49e0fe(0x11e)](_0xf8a55d);});}[_0x4ab944(0x145)](_0xe409a0){const _0x2d77d6=_0x4ab944;if(_0xe409a0>0x0&&!this[_0x2d77d6(0x172)]&&this[_0x2d77d6(0x166)](),_0xe409a0>0x0&&this[_0x2d77d6(0x172)]){const _0x3023df=''+this[_0x2d77d6(0x15f)][_0x2d77d6(0x118)]+(_0xe409a0<0x63?_0xe409a0:'99');this[_0x2d77d6(0x172)][_0x2d77d6(0x15e)]=_0x3023df;}this[_0x2d77d6(0x13b)](),this[_0x2d77d6(0xe7)](),this[_0x2d77d6(0x15b)]();}[_0x4ab944(0x109)](_0x477dc3,_0x4a9858){const _0x3b7167=_0x4ab944;this[_0x3b7167(0x119)](_0x477dc3,_0x4a9858),this[_0x3b7167(0x145)](_0x4a9858[_0x3b7167(0x13e)]);}[_0x4ab944(0x15c)](){const _0x590308=_0x4ab944;this[_0x590308(0x15d)]&&_0x590308(0x105)!=typeof IntersectionObserver&&(this[_0x590308(0x13d)]=new IntersectionObserver(_0x4c1b22=>{const _0x2dd6eb=_0x590308;_0x4c1b22[0x0][_0x2dd6eb(0xee)]&&this[_0x2dd6eb(0x171)]&&requestAnimationFrame(()=>{const _0x40f308=_0x2dd6eb;this[_0x40f308(0x130)]();});},{'threshold':0.01,'rootMargin':_0x590308(0x13f)}),this[_0x590308(0x13d)][_0x590308(0x146)](this[_0x590308(0x15d)]));}[_0x4ab944(0xe8)](){const _0x5aa775=_0x4ab944;if(!this[_0x5aa775(0x15d)])return!0x1;if(!this[_0x5aa775(0x15d)][_0x5aa775(0x115)])return!0x1;const _0x3b30a1=this[_0x5aa775(0x15d)][_0x5aa775(0x12b)]();if(0x0===_0x3b30a1[_0x5aa775(0x15a)]||0x0===_0x3b30a1[_0x5aa775(0x112)])return!0x1;const _0x22dcc3=window[_0x5aa775(0x12e)]||document[_0x5aa775(0x100)][_0x5aa775(0xfd)],_0x408d81=window[_0x5aa775(0x134)]||document[_0x5aa775(0x100)][_0x5aa775(0x16d)],_0x3106f8=0xc8;return _0x3b30a1[_0x5aa775(0x153)]>=-0xc8&&_0x3b30a1[_0x5aa775(0xed)]<=_0x22dcc3+_0x3106f8&&_0x3b30a1[_0x5aa775(0x123)]>=-0xc8&&_0x3b30a1[_0x5aa775(0xf7)]<=_0x408d81+_0x3106f8;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x363cf5=_0x33f6;(function(_0xffecda,_0x5e0658){const _0x2ecb8d=_0x33f6,_0x579581=_0xffecda();while(!![]){try{const _0x4a979e=parseInt(_0x2ecb8d(0xcc))/0x1*(parseInt(_0x2ecb8d(0xc1))/0x2)+parseInt(_0x2ecb8d(0xdc))/0x3*(-parseInt(_0x2ecb8d(0xde))/0x4)+-parseInt(_0x2ecb8d(0xd5))/0x5+-parseInt(_0x2ecb8d(0xc3))/0x6+-parseInt(_0x2ecb8d(0xc2))/0x7+-parseInt(_0x2ecb8d(0xe7))/0x8+parseInt(_0x2ecb8d(0xd6))/0x9;if(_0x4a979e===_0x5e0658)break;else _0x579581['push'](_0x579581['shift']());}catch(_0x5c9858){_0x579581['push'](_0x579581['shift']());}}}(_0x1e4c,0x419e7));function _0x33f6(_0x30f532,_0x44a1e8){const _0x1e4cc6=_0x1e4c();return _0x33f6=function(_0x33f6c2,_0x552621){_0x33f6c2=_0x33f6c2-0xb3;let _0x266eef=_0x1e4cc6[_0x33f6c2];return _0x266eef;},_0x33f6(_0x30f532,_0x44a1e8);}import{ButtonView as _0x37faca,IconView as _0x4cd994}from'ckeditor5/src/ui.js';import{IconClose as _0x33ef76,IconDocument as _0x457b3c,IconFileUpload as _0x98d423,IconLink as _0x1b387e,IconSelection as _0x44d0e9}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x396303}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x246d12}from'../../../aicore/ui/aispinner.js';function _0x1e4c(){const _0x764d91=['document','setTemplate','ck-ai-chat-context-chip__type-icon','bind','1666544eiJLFE','length','div','removeContextItemChip','ck-ai-chat-context-chip_document','itemType','_isAnimationOnEnterEnabled','element','slice','content','_createTemplateAttributes','_handleAnimationEndOnce','readonly','fire','uiId','type','removeEventListener','ck-hidden','_initializeProperties','_createRemoveButton','selection','animationend','label','span','locale','webkitAnimationEnd','disableAnimationOnEnter','89638Onomvg','3306555SvHQcJ','1186434SeLzbp','_createTemplateChildren','_setupRemoveButtonEvent','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','ck-ai-chat-context-chip_wide','execute','bindTemplate','tooltip','small','5KEzydA','render','remove','isLoading','ck-ai-chat-context-controls__chip-tooltip','isVisible','extendTemplate','_createIconView','_createLabelElement','1722475OgwiEg','14346783Ytwuif','set','lastIndexOf','_createLoaderIcon','_setupTemplate','ck-ai-chat-context-chip','15DALGEv','classList','261192mZwxJx','addEventListener','ck-ai-chat-context-chip_new-chip','ck-ai-chat-context-chip__label','add'];_0x1e4c=function(){return _0x764d91;};return _0x1e4c();}const vn={'file':_0x98d423,'document':_0x457b3c,'web-resource':_0x1b387e,'text':_0x98d423,'selection':_0x44d0e9},yn=_0x363cf5(0xdb),Ln=_0x363cf5(0xc7),Rn=_0x363cf5(0xeb),Vn=_0x363cf5(0xe1),jn=_0x363cf5(0xe5),Bn=_0x363cf5(0xd0),Mn='n';export class AIChatContextItemButtonView extends _0x37faca{constructor(_0x1d98dd,_0x2142ff,_0x43152f,_0x393199,_0x14d0c1=!0x1){const _0x5a746f=_0x363cf5;super(_0x1d98dd),this[_0x5a746f(0xed)]=_0x393199,this[_0x5a746f(0xb8)](_0x2142ff,_0x43152f,_0x14d0c1),this[_0x5a746f(0xda)]();}[_0x363cf5(0xcd)](){const _0x35e6ff=_0x363cf5;super[_0x35e6ff(0xcd)](),this[_0x35e6ff(0xed)]&&this[_0x35e6ff(0xee)]&&(this[_0x35e6ff(0xee)][_0x35e6ff(0xdd)][_0x35e6ff(0xe2)](_0x35e6ff(0xe0)),this[_0x35e6ff(0xf2)](this[_0x35e6ff(0xee)],()=>{const _0x141958=_0x35e6ff;this[_0x141958(0xee)]&&this[_0x141958(0xee)][_0x141958(0xdd)][_0x141958(0xce)](_0x141958(0xe0));}));}[_0x363cf5(0xc0)](){const _0x3c2f9f=_0x363cf5;this[_0x3c2f9f(0xed)]=!0x1,this[_0x3c2f9f(0xee)]&&this[_0x3c2f9f(0xee)][_0x3c2f9f(0xdd)][_0x3c2f9f(0xce)](_0x3c2f9f(0xe0));}[_0x363cf5(0xb8)](_0x1a7818,_0x3bb82b,_0x3a9965){const _0x41cef6=_0x363cf5;this[_0x41cef6(0xd7)](_0x41cef6(0xbc),_0x1a7818[_0x41cef6(0xbc)]),this[_0x41cef6(0xd7)](_0x41cef6(0xca),!0x0),this[_0x41cef6(0xd7)](_0x41cef6(0xec),_0x1a7818[_0x41cef6(0xb5)]),this[_0x41cef6(0xd7)]('id',_0x1a7818[_0x41cef6(0xb4)]),this[_0x41cef6(0xd7)](_0x41cef6(0xf3),_0x3bb82b),this[_0x41cef6(0xd7)](_0x41cef6(0xcf),_0x3a9965);}[_0x363cf5(0xda)](){const _0x2e7d7b=_0x363cf5,_0x3f588f=this[_0x2e7d7b(0xd3)](),_0x452ed5=this[_0x2e7d7b(0xb9)](),_0x47d416=this[_0x2e7d7b(0xc9)];this[_0x2e7d7b(0xe4)]({'tag':_0x2e7d7b(0xe9),'attributes':this[_0x2e7d7b(0xf1)](_0x47d416),'children':this[_0x2e7d7b(0xc4)](_0x3f588f,_0x452ed5,_0x47d416)});}[_0x363cf5(0xf1)](_0x4c995e){const _0x3a2a21=_0x363cf5;return{'class':[yn,_0x4c995e['if'](_0x3a2a21(0xec),Rn,_0xad8535=>_0x3a2a21(0xe3)==_0xad8535),_0x4c995e['if'](_0x3a2a21(0xec),Ln,_0x1e2354=>_0x3a2a21(0xba)==_0x1e2354)],'data-cke-tooltip-text':_0x4c995e['to'](_0x3a2a21(0xbc),Nn),'data-cke-tooltip-position':Mn,'data-cke-tooltip-class':Bn};}[_0x363cf5(0xc4)](_0xbe1ef3,_0x1f76a4,_0x1956a7){const _0x2ae8c9=_0x363cf5,_0x57a638=this[_0x2ae8c9(0xd4)](_0x1956a7),_0x1600c7=this[_0x2ae8c9(0xd9)]();return this[_0x2ae8c9(0xf3)]?[_0xbe1ef3,_0x57a638]:[_0xbe1ef3,_0x1600c7,_0x57a638,_0x1f76a4];}[_0x363cf5(0xd4)](_0x2a13f4){const _0x4717d8=_0x363cf5;return{'tag':_0x4717d8(0xbd),'attributes':{'class':Vn},'children':[{'text':_0x2a13f4['to'](_0x4717d8(0xbc))}]};}[_0x363cf5(0xb9)](){const _0x244b42=_0x363cf5,_0x21b8dd=new _0x37faca(this[_0x244b42(0xbe)]);return _0x21b8dd[_0x244b42(0xd7)]({'label':_0x396303(this[_0x244b42(0xbe)],_0x244b42(0xc6)),'icon':_0x33ef76}),this[_0x244b42(0xc5)](_0x21b8dd),_0x21b8dd;}[_0x363cf5(0xc5)](_0x3aa98f){const _0x506462=_0x363cf5;_0x3aa98f['on'](_0x506462(0xc8),()=>{const _0x137ff9=_0x506462;this[_0x137ff9(0xb3)](_0x137ff9(0xea),this['id']);});}[_0x363cf5(0xd3)](){const _0x5d101a=_0x363cf5,_0x41878b=this[_0x5d101a(0xc9)],_0x4c5650=new _0x4cd994();return _0x4c5650[_0x5d101a(0xf0)]=vn[this[_0x5d101a(0xec)]],_0x4c5650[_0x5d101a(0xd2)]({'attributes':{'class':[jn,_0x41878b['if'](_0x5d101a(0xcf),_0x5d101a(0xb7),_0x500bef=>_0x500bef)]}}),_0x4c5650;}[_0x363cf5(0xf2)](_0xd79231,_0x3d0d52){const _0x768131=_0x363cf5;if(!_0xd79231)return;const _0x152fcd=()=>{const _0xf1da44=_0x33f6;_0x3d0d52(),_0xd79231[_0xf1da44(0xb6)](_0xf1da44(0xbb),_0x152fcd),_0xd79231[_0xf1da44(0xb6)](_0xf1da44(0xbf),_0x152fcd);};_0xd79231[_0x768131(0xdf)](_0x768131(0xbb),_0x152fcd),_0xd79231[_0x768131(0xdf)](_0x768131(0xbf),_0x152fcd);}[_0x363cf5(0xd9)](){const _0x2cfc5b=_0x363cf5,_0x83699a=new _0x246d12(_0x2cfc5b(0xcb));return _0x83699a[_0x2cfc5b(0xe6)](_0x2cfc5b(0xd1))['to'](this,_0x2cfc5b(0xcf),_0x1ee4e3=>_0x1ee4e3),_0x83699a;}}function Nn(_0x5dca3d){const _0x5ea052=_0x363cf5;if(!_0x5dca3d)return _0x5dca3d;if(_0x5dca3d[_0x5ea052(0xe8)]<=0x78)return _0x5dca3d;const _0x358f02=_0x5dca3d[_0x5ea052(0xef)](0x0,0x78),_0x3db203=_0x358f02[_0x5ea052(0xd8)]('\x20');return(_0x3db203>0x0?_0x358f02[_0x5ea052(0xef)](0x0,_0x3db203):_0x358f02)+'…';}
23
+ function _0x3680(_0x29a67b,_0x477fca){const _0x2e7532=_0x2e75();return _0x3680=function(_0x36800f,_0x432068){_0x36800f=_0x36800f-0x1a8;let _0x5355a1=_0x2e7532[_0x36800f];return _0x5355a1;},_0x3680(_0x29a67b,_0x477fca);}const _0x2a89aa=_0x3680;(function(_0x5e0d0e,_0x3ca934){const _0x4028b1=_0x3680,_0x117ede=_0x5e0d0e();while(!![]){try{const _0x3353d1=parseInt(_0x4028b1(0x1bb))/0x1*(-parseInt(_0x4028b1(0x1b5))/0x2)+parseInt(_0x4028b1(0x1c4))/0x3+-parseInt(_0x4028b1(0x1dd))/0x4*(parseInt(_0x4028b1(0x1d9))/0x5)+-parseInt(_0x4028b1(0x1b8))/0x6+parseInt(_0x4028b1(0x1ac))/0x7*(-parseInt(_0x4028b1(0x1c3))/0x8)+-parseInt(_0x4028b1(0x1d0))/0x9*(parseInt(_0x4028b1(0x1ce))/0xa)+parseInt(_0x4028b1(0x1b6))/0xb;if(_0x3353d1===_0x3ca934)break;else _0x117ede['push'](_0x117ede['shift']());}catch(_0x160d70){_0x117ede['push'](_0x117ede['shift']());}}}(_0x2e75,0x760dd));import{ButtonView as _0x2e5b44,IconView as _0x2e5402}from'ckeditor5/src/ui.js';import{IconClose as _0x36b0d0,IconDocument as _0x262dc9,IconFileUpload as _0xab1dec,IconLink as _0x677f03,IconSelection as _0x2401ed}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x354072}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x158a6f}from'../../../aicore/ui/aispinner.js';function _0x2e75(){const _0x9d03cb=['extendTemplate','ck-hidden','classList','_setupRemoveButtonEvent','_createIconView','ck-ai-chat-context-controls__chip-tooltip','_isAnimationOnEnterEnabled','element','140ccvPdH','ck-ai-chat-context-chip_document','262557RaSprt','_createRemoveButton','lastIndexOf','label','locale','_createLabelElement','_initializeProperties','set','type','5PgrJJo','tooltip','isLoading','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','1821364tuefxY','addEventListener','span','small','itemType','selection','bind','ck-ai-chat-context-chip__label','_createLoaderIcon','_setupTemplate','document','render','remove','ck-ai-chat-context-chip_wide','fire','setTemplate','ck-ai-chat-context-chip__type-icon','execute','56gbFAQM','ck-ai-chat-context-chip','add','content','div','_handleAnimationEndOnce','removeContextItemChip','isVisible','length','497450FpcdKx','30935861gZdFkz','_createTemplateAttributes','4873932tRHweJ','bindTemplate','ck-ai-chat-context-chip_new-chip','1LbNUQA','_createTemplateChildren','uiId','animationend','webkitAnimationEnd','removeEventListener','disableAnimationOnEnter','readonly','616744shuQZj','638256lcnvKw','slice'];_0x2e75=function(){return _0x9d03cb;};return _0x2e75();}const bn={'file':_0xab1dec,'document':_0x262dc9,'web-resource':_0x677f03,'text':_0xab1dec,'selection':_0x2401ed},Tn=_0x2a89aa(0x1ad),En=_0x2a89aa(0x1ea),An=_0x2a89aa(0x1cf),Cn=_0x2a89aa(0x1e4),In=_0x2a89aa(0x1aa),On=_0x2a89aa(0x1cb),gn='n';export class AIChatContextItemButtonView extends _0x2e5b44{constructor(_0x2f1379,_0x217fc9,_0x33ff7b,_0x71cb32,_0x11eca6=!0x1){const _0x46706e=_0x2a89aa;super(_0x2f1379),this[_0x46706e(0x1cc)]=_0x71cb32,this[_0x46706e(0x1d6)](_0x217fc9,_0x33ff7b,_0x11eca6),this[_0x46706e(0x1e6)]();}[_0x2a89aa(0x1e8)](){const _0x2451c9=_0x2a89aa;super[_0x2451c9(0x1e8)](),this[_0x2451c9(0x1cc)]&&this[_0x2451c9(0x1cd)]&&(this[_0x2451c9(0x1cd)][_0x2451c9(0x1c8)][_0x2451c9(0x1ae)](_0x2451c9(0x1ba)),this[_0x2451c9(0x1b1)](this[_0x2451c9(0x1cd)],()=>{const _0x2a01cb=_0x2451c9;this[_0x2a01cb(0x1cd)]&&this[_0x2a01cb(0x1cd)][_0x2a01cb(0x1c8)][_0x2a01cb(0x1e9)](_0x2a01cb(0x1ba));}));}[_0x2a89aa(0x1c1)](){const _0xec22c7=_0x2a89aa;this[_0xec22c7(0x1cc)]=!0x1,this[_0xec22c7(0x1cd)]&&this[_0xec22c7(0x1cd)][_0xec22c7(0x1c8)][_0xec22c7(0x1e9)](_0xec22c7(0x1ba));}[_0x2a89aa(0x1d6)](_0x44f909,_0x16a621,_0x5f8bdb){const _0x3ba96c=_0x2a89aa;this[_0x3ba96c(0x1d7)](_0x3ba96c(0x1d3),_0x44f909[_0x3ba96c(0x1d3)]),this[_0x3ba96c(0x1d7)](_0x3ba96c(0x1da),!0x0),this[_0x3ba96c(0x1d7)](_0x3ba96c(0x1e1),_0x44f909[_0x3ba96c(0x1d8)]),this[_0x3ba96c(0x1d7)]('id',_0x44f909[_0x3ba96c(0x1bd)]),this[_0x3ba96c(0x1d7)](_0x3ba96c(0x1c2),_0x16a621),this[_0x3ba96c(0x1d7)](_0x3ba96c(0x1db),_0x5f8bdb);}[_0x2a89aa(0x1e6)](){const _0x1f929a=_0x2a89aa,_0x4eb73e=this[_0x1f929a(0x1ca)](),_0x3e23e5=this[_0x1f929a(0x1d1)](),_0x6a005c=this[_0x1f929a(0x1b9)];this[_0x1f929a(0x1a9)]({'tag':_0x1f929a(0x1b0),'attributes':this[_0x1f929a(0x1b7)](_0x6a005c),'children':this[_0x1f929a(0x1bc)](_0x4eb73e,_0x3e23e5,_0x6a005c)});}[_0x2a89aa(0x1b7)](_0x3b248d){const _0x3bb02f=_0x2a89aa;return{'class':[Tn,_0x3b248d['if'](_0x3bb02f(0x1e1),An,_0x1b594f=>_0x3bb02f(0x1e7)==_0x1b594f),_0x3b248d['if'](_0x3bb02f(0x1e1),En,_0x13194f=>_0x3bb02f(0x1e2)==_0x13194f)],'data-cke-tooltip-text':_0x3b248d['to'](_0x3bb02f(0x1d3),vn),'data-cke-tooltip-position':gn,'data-cke-tooltip-class':On};}[_0x2a89aa(0x1bc)](_0x309496,_0x5e05cc,_0x3e551c){const _0x5802f6=_0x2a89aa,_0x256cc9=this[_0x5802f6(0x1d5)](_0x3e551c),_0x3986f3=this[_0x5802f6(0x1e5)]();return this[_0x5802f6(0x1c2)]?[_0x309496,_0x256cc9]:[_0x309496,_0x3986f3,_0x256cc9,_0x5e05cc];}[_0x2a89aa(0x1d5)](_0x226ff0){const _0xc5932a=_0x2a89aa;return{'tag':_0xc5932a(0x1df),'attributes':{'class':Cn},'children':[{'text':_0x226ff0['to'](_0xc5932a(0x1d3))}]};}[_0x2a89aa(0x1d1)](){const _0x1bb282=_0x2a89aa,_0x52c277=new _0x2e5b44(this[_0x1bb282(0x1d4)]);return _0x52c277[_0x1bb282(0x1d7)]({'label':_0x354072(this[_0x1bb282(0x1d4)],_0x1bb282(0x1dc)),'icon':_0x36b0d0}),this[_0x1bb282(0x1c9)](_0x52c277),_0x52c277;}[_0x2a89aa(0x1c9)](_0x1f02bf){const _0x74ed98=_0x2a89aa;_0x1f02bf['on'](_0x74ed98(0x1ab),()=>{const _0x1fa30f=_0x74ed98;this[_0x1fa30f(0x1a8)](_0x1fa30f(0x1b2),this['id']);});}[_0x2a89aa(0x1ca)](){const _0x6d3112=_0x2a89aa,_0x3fa37c=this[_0x6d3112(0x1b9)],_0x440aaa=new _0x2e5402();return _0x440aaa[_0x6d3112(0x1af)]=bn[this[_0x6d3112(0x1e1)]],_0x440aaa[_0x6d3112(0x1c6)]({'attributes':{'class':[In,_0x3fa37c['if'](_0x6d3112(0x1db),_0x6d3112(0x1c7),_0x564e85=>_0x564e85)]}}),_0x440aaa;}[_0x2a89aa(0x1b1)](_0xa2e576,_0x100abb){const _0x19c176=_0x2a89aa;if(!_0xa2e576)return;const _0x548a85=()=>{const _0x48c5d3=_0x3680;_0x100abb(),_0xa2e576[_0x48c5d3(0x1c0)](_0x48c5d3(0x1be),_0x548a85),_0xa2e576[_0x48c5d3(0x1c0)](_0x48c5d3(0x1bf),_0x548a85);};_0xa2e576[_0x19c176(0x1de)](_0x19c176(0x1be),_0x548a85),_0xa2e576[_0x19c176(0x1de)](_0x19c176(0x1bf),_0x548a85);}[_0x2a89aa(0x1e5)](){const _0x5bcc66=_0x2a89aa,_0x13c3f0=new _0x158a6f(_0x5bcc66(0x1e0));return _0x13c3f0[_0x5bcc66(0x1e3)](_0x5bcc66(0x1b3))['to'](this,_0x5bcc66(0x1db),_0x565e23=>_0x565e23),_0x13c3f0;}}function vn(_0xfd5ec3){const _0x5ad99b=_0x2a89aa;if(!_0xfd5ec3)return _0xfd5ec3;if(_0xfd5ec3[_0x5ad99b(0x1b4)]<=0x78)return _0xfd5ec3;const _0x2b4ae4=_0xfd5ec3[_0x5ad99b(0x1c5)](0x0,0x78),_0xb18bae=_0x2b4ae4[_0x5ad99b(0x1d2)]('\x20');return(_0xb18bae>0x0?_0x2b4ae4[_0x5ad99b(0x1c5)](0x0,_0xb18bae):_0x2b4ae4)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xce0ba9=_0x5733;(function(_0x28e529,_0x1e0c4d){const _0x32123e=_0x5733,_0x572669=_0x28e529();while(!![]){try{const _0x162022=-parseInt(_0x32123e(0x1aa))/0x1+parseInt(_0x32123e(0x1bf))/0x2+-parseInt(_0x32123e(0x1c4))/0x3*(-parseInt(_0x32123e(0x1a2))/0x4)+parseInt(_0x32123e(0x19f))/0x5*(-parseInt(_0x32123e(0x1d0))/0x6)+-parseInt(_0x32123e(0x1d8))/0x7*(-parseInt(_0x32123e(0x1cb))/0x8)+-parseInt(_0x32123e(0x199))/0x9*(-parseInt(_0x32123e(0x1a4))/0xa)+-parseInt(_0x32123e(0x1c3))/0xb;if(_0x162022===_0x1e0c4d)break;else _0x572669['push'](_0x572669['shift']());}catch(_0xb459eb){_0x572669['push'](_0x572669['shift']());}}}(_0x1ce3,0xa6877));function _0x1ce3(){const _0x1e45ce=['errorText','6513230CEyUuX','createCollection','trim','esc','_createUrlInputField','_setupKeystrokes','624858xyGgZd','shift+tab','_createBackButton','focus','div','AI_CHAT_CONTEXT_URL_LABEL','set','ck-button-icon','destroy','_isValidUrl','ck-button-icon\x20ck-button-back','setError','focusCycler','clearError','add','value','tab','ck-ai-chat-context-controls__url-form','_createConfirmButton','_focusables','submit','2108922Mtqhsp','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_handleSubmit','element','12616945XRLJce','730146ojUCZE','locale','getValue','execute','ck-ai-chat-context-controls__url-input-section','forEach','children','526696OcHeqE','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','listenTo','stop','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','6SirqjU','form','ck-labeled-field-view_empty','keystrokes','focusTracker','_updateConfirmButtonState','setTemplate','AI_CHAT_CONTEXT_URL_ADD_URL','28Ryavwi','submitUrl','backButton','cancel','render','_setupTemplate','refreshBalloon','fieldView','length','_setupEventHandlers','urlInputField','9SKEmGM','input','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','isEnabled','AI_CHAT_CONTEXT_URL_PLACEHOLDER','fire','3660430dxEfhK','clear','confirmButton','20qnnJZI'];_0x1ce3=function(){return _0x1e45ce;};return _0x1ce3();}import{FocusTracker as _0x23a4e1,KeystrokeHandler as _0x3d6dff}from'ckeditor5/src/utils.js';import{ButtonView as _0x15cc8a,FocusCycler as _0x5cc979,LabeledFieldView as _0x23efd4,View as _0x50a101,FormHeaderView as _0x134745,createLabeledInputText as _0x39d38d,submitHandler as _0x417581}from'ckeditor5/src/ui.js';import{IconCheck as _0x43a823,IconPreviousArrow as _0x228e8b}from'@ckeditor/ckeditor5-icons';function _0x5733(_0x42585c,_0x52e60a){const _0x1ce379=_0x1ce3();return _0x5733=function(_0x57334c,_0x5c2b03){_0x57334c=_0x57334c-0x196;let _0x198b49=_0x1ce379[_0x57334c];return _0x198b49;},_0x5733(_0x42585c,_0x52e60a);}import{getTranslation as _0x86b0c}from'../../../aicore/utils/common-translations.js';const rh=_0xce0ba9(0x1bb),oh=_0xce0ba9(0x1c8);export class AIChatContextPanelUrlInputView extends _0x50a101{[_0xce0ba9(0x1d4)];[_0xce0ba9(0x1d3)];[_0xce0ba9(0x1bd)];[_0xce0ba9(0x1b6)];[_0xce0ba9(0x198)];[_0xce0ba9(0x1da)];[_0xce0ba9(0x1a1)];constructor(_0x2e6fb3){const _0x2efdda=_0xce0ba9;super(_0x2e6fb3),this[_0x2efdda(0x1d4)]=new _0x23a4e1(),this[_0x2efdda(0x1d3)]=new _0x3d6dff(),this[_0x2efdda(0x1da)]=this[_0x2efdda(0x1ac)](),this[_0x2efdda(0x198)]=this[_0x2efdda(0x1a8)](),this[_0x2efdda(0x1a1)]=this[_0x2efdda(0x1bc)](),this[_0x2efdda(0x1bd)]=this[_0x2efdda(0x1a5)]([this[_0x2efdda(0x1da)],this[_0x2efdda(0x198)],this[_0x2efdda(0x1a1)]]),this[_0x2efdda(0x1b6)]=new _0x5cc979({'focusables':this[_0x2efdda(0x1bd)],'focusTracker':this[_0x2efdda(0x1d4)],'keystrokeHandler':this[_0x2efdda(0x1d3)],'actions':{'focusPrevious':_0x2efdda(0x1ab),'focusNext':_0x2efdda(0x1ba)}}),this[_0x2efdda(0x1dd)](),this[_0x2efdda(0x197)](),this[_0x2efdda(0x1a9)]();}[_0xce0ba9(0x1dc)](){const _0xbfae63=_0xce0ba9;super[_0xbfae63(0x1dc)](),this[_0xbfae63(0x1bd)][_0xbfae63(0x1c9)](_0x3ef691=>{const _0x2e89bc=_0xbfae63;this[_0x2e89bc(0x1d4)][_0x2e89bc(0x1b8)](_0x3ef691[_0x2e89bc(0x1c2)]),this[_0x2e89bc(0x1d3)][_0x2e89bc(0x1cd)](_0x3ef691[_0x2e89bc(0x1c2)]);}),_0x417581({'view':this}),this[_0xbfae63(0x1ad)]();}[_0xce0ba9(0x1b2)](){const _0x385ae3=_0xce0ba9;super[_0x385ae3(0x1b2)](),this[_0x385ae3(0x1d4)][_0x385ae3(0x1b2)](),this[_0x385ae3(0x1d3)][_0x385ae3(0x1b2)]();}[_0xce0ba9(0x1ad)](){const _0x1ea1c6=_0xce0ba9;this[_0x1ea1c6(0x198)][_0x1ea1c6(0x1ad)]();}[_0xce0ba9(0x1c6)](){const _0x501f82=_0xce0ba9;return this[_0x501f82(0x198)][_0x501f82(0x1df)][_0x501f82(0x1c2)]?.[_0x501f82(0x1b9)]?.[_0x501f82(0x1a6)]()||'';}[_0xce0ba9(0x1a0)](){const _0x5bea7e=_0xce0ba9;this[_0x5bea7e(0x198)][_0x5bea7e(0x1df)][_0x5bea7e(0x1c2)][_0x5bea7e(0x1b9)]='',this[_0x5bea7e(0x198)][_0x5bea7e(0x1a3)]=null,this[_0x5bea7e(0x1a1)][_0x5bea7e(0x19c)]=!0x1;}[_0xce0ba9(0x1b5)](_0x30d183){const _0x473520=_0xce0ba9;this[_0x473520(0x198)][_0x473520(0x1a3)]=_0x30d183,this[_0x473520(0x1d5)](),this[_0x473520(0x19e)](_0x473520(0x1de));}[_0xce0ba9(0x1b7)](){const _0x58c2b3=_0xce0ba9;this[_0x58c2b3(0x198)][_0x58c2b3(0x1a3)]=null,this[_0x58c2b3(0x1d5)]();}[_0xce0ba9(0x1ac)](){const _0x7055b1=_0xce0ba9,_0x345e60=new _0x15cc8a(this[_0x7055b1(0x1c5)]);return _0x345e60[_0x7055b1(0x1b0)]({'icon':_0x228e8b,'tooltip':_0x86b0c(this[_0x7055b1(0x1c5)],_0x7055b1(0x1cf)),'tooltipPosition':'n','class':_0x7055b1(0x1b4)}),_0x345e60;}[_0xce0ba9(0x1a8)](){const _0x50b9d3=_0xce0ba9,_0x116f93=new _0x23efd4(this[_0x50b9d3(0x1c5)],_0x39d38d);return _0x116f93[_0x50b9d3(0x1b0)]({'label':_0x86b0c(this[_0x50b9d3(0x1c5)],_0x50b9d3(0x1af)),'class':_0x50b9d3(0x1d2)}),_0x116f93[_0x50b9d3(0x1df)][_0x50b9d3(0x1b0)]({'placeholder':_0x86b0c(this[_0x50b9d3(0x1c5)],_0x50b9d3(0x19d))}),_0x116f93;}[_0xce0ba9(0x1bc)](){const _0xa4f355=_0xce0ba9,_0x3b4ab4=new _0x15cc8a(this[_0xa4f355(0x1c5)]);return _0x3b4ab4[_0xa4f355(0x1b0)]({'icon':_0x43a823,'tooltip':_0x86b0c(this[_0xa4f355(0x1c5)],_0xa4f355(0x1d7)),'tooltipPosition':'n','class':_0xa4f355(0x1b1),'type':_0xa4f355(0x1be),'isEnabled':!0x1}),_0x3b4ab4;}[_0xce0ba9(0x1dd)](){const _0x8ebf42=_0xce0ba9,_0x29cb19=new _0x134745(this[_0x8ebf42(0x1c5)],{'label':_0x86b0c(this[_0x8ebf42(0x1c5)],_0x8ebf42(0x1d7)),'class':_0x8ebf42(0x19b)});_0x29cb19[_0x8ebf42(0x1ca)][_0x8ebf42(0x1b8)](this[_0x8ebf42(0x1da)],0x0),this[_0x8ebf42(0x1d6)]({'tag':_0x8ebf42(0x1d1),'attributes':{'class':rh,'tabindex':'-1'},'children':[_0x29cb19,{'tag':_0x8ebf42(0x1ae),'attributes':{'class':oh},'children':[this[_0x8ebf42(0x198)],this[_0x8ebf42(0x1a1)]]}]});}[_0xce0ba9(0x197)](){const _0x374171=_0xce0ba9;this[_0x374171(0x1da)]['on'](_0x374171(0x1c7),()=>{const _0x118984=_0x374171;this[_0x118984(0x1a0)](),this[_0x118984(0x19e)](_0x118984(0x1db));}),this[_0x374171(0x198)][_0x374171(0x1df)]['on'](_0x374171(0x19a),()=>{const _0x29ddb5=_0x374171;this[_0x29ddb5(0x1b7)](),this[_0x29ddb5(0x1d5)](),this[_0x29ddb5(0x19e)](_0x29ddb5(0x1de));}),this['on'](_0x374171(0x1be),_0x455203=>{const _0x843d9a=_0x374171;_0x455203[_0x843d9a(0x1ce)](),this[_0x843d9a(0x1c1)]();});}[_0xce0ba9(0x1a9)](){const _0x1d97ed=_0xce0ba9;this[_0x1d97ed(0x1d3)][_0x1d97ed(0x1b0)](_0x1d97ed(0x1a7),(_0x49a915,_0x5bbeaa)=>{const _0x10c18c=_0x1d97ed;this[_0x10c18c(0x1a0)](),this[_0x10c18c(0x19e)](_0x10c18c(0x1db)),_0x5bbeaa();});}[_0xce0ba9(0x1c1)](){const _0x432f35=_0xce0ba9,_0x577073=this[_0x432f35(0x1c6)]()[_0x432f35(0x1a6)]();_0x577073?this[_0x432f35(0x1b3)](_0x577073)?(this[_0x432f35(0x1b7)](),this[_0x432f35(0x19e)](_0x432f35(0x1d9),_0x577073)):this[_0x432f35(0x1b5)](_0x86b0c(this[_0x432f35(0x1c5)],_0x432f35(0x1c0))):this[_0x432f35(0x1b5)](_0x86b0c(this[_0x432f35(0x1c5)],_0x432f35(0x1cc)));}[_0xce0ba9(0x1d5)](){const _0x4df9e6=_0xce0ba9,_0x18f476=this[_0x4df9e6(0x1c6)]()[_0x4df9e6(0x1a6)](),_0x5e9dc1=!!this[_0x4df9e6(0x198)][_0x4df9e6(0x1a3)];this[_0x4df9e6(0x1a1)][_0x4df9e6(0x19c)]=_0x18f476[_0x4df9e6(0x196)]>0x0&&!_0x5e9dc1;}[_0xce0ba9(0x1b3)](_0x50247b){try{return!!new URL(_0x50247b);}catch{return!0x1;}}}
23
+ const _0x1dc769=_0x3a22;function _0x5750(){const _0x1313b2=['urlInputField','listenTo','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','esc','input','5508vpNlvU','submit','value','_setupEventHandlers','errorText','3386024NUJmvX','destroy','clearError','render','ck-button-icon','_handleSubmit','trim','fieldView','_createBackButton','_createConfirmButton','_setupKeystrokes','locale','submitUrl','AI_CHAT_CONTEXT_URL_INVALID_ERROR','refreshBalloon','focusCycler','clear','46735ELqAfr','ck-ai-chat-context-controls__url-form','cancel','setTemplate','ck-button-icon\x20ck-button-back','focus','6WwTnui','div','2651448uUMkjo','getValue','setError','form','AI_CHAT_CONTEXT_URL_ADD_URL','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','5124dcEPDz','children','ck-ai-chat-context-controls__url-input-section','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_PLACEHOLDER','tab','_setupTemplate','forEach','346880wCyzon','ck-labeled-field-view_empty','stop','_updateConfirmButtonState','fire','isEnabled','18RFAVVV','shift+tab','AI_CHAT_CONTEXT_URL_LABEL','createCollection','focusTracker','_focusables','set','execute','backButton','_createUrlInputField','confirmButton','element','_isValidUrl','add','length','keystrokes','104068BKSaTw','1228295IiJvLH'];_0x5750=function(){return _0x1313b2;};return _0x5750();}(function(_0x1910bc,_0x54ae7d){const _0x38ff49=_0x3a22,_0x37227b=_0x1910bc();while(!![]){try{const _0xe64617=parseInt(_0x38ff49(0xd4))/0x1+parseInt(_0x38ff49(0x100))/0x2*(parseInt(_0x38ff49(0xda))/0x3)+parseInt(_0x38ff49(0xdc))/0x4+-parseInt(_0x38ff49(0x101))/0x5+parseInt(_0x38ff49(0x107))/0x6*(parseInt(_0x38ff49(0xe2))/0x7)+parseInt(_0x38ff49(0x10c))/0x8*(-parseInt(_0x38ff49(0xf0))/0x9)+parseInt(_0x38ff49(0xea))/0xa;if(_0xe64617===_0x54ae7d)break;else _0x37227b['push'](_0x37227b['shift']());}catch(_0x137e09){_0x37227b['push'](_0x37227b['shift']());}}}(_0x5750,0x68884));import{FocusTracker as _0x153891,KeystrokeHandler as _0x21448d}from'ckeditor5/src/utils.js';function _0x3a22(_0x237d04,_0x32d8a3){const _0x575043=_0x5750();return _0x3a22=function(_0x3a226d,_0x7a1c66){_0x3a226d=_0x3a226d-0xc4;let _0x2f1976=_0x575043[_0x3a226d];return _0x2f1976;},_0x3a22(_0x237d04,_0x32d8a3);}import{ButtonView as _0x4135da,FocusCycler as _0xa444b4,LabeledFieldView as _0x50bd36,View as _0x1c7116,FormHeaderView as _0x48062b,createLabeledInputText as _0x124d4c,submitHandler as _0x88b37b}from'ckeditor5/src/ui.js';import{IconCheck as _0x42c1df,IconPreviousArrow as _0x5d6ea1}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x7a3674}from'../../../aicore/utils/common-translations.js';const eh=_0x1dc769(0xd5),hh=_0x1dc769(0xe4);export class AIChatContextPanelUrlInputView extends _0x1c7116{[_0x1dc769(0xf4)];[_0x1dc769(0xff)];[_0x1dc769(0xf5)];[_0x1dc769(0xd2)];[_0x1dc769(0x102)];[_0x1dc769(0xf8)];[_0x1dc769(0xfa)];constructor(_0x53e18c){const _0x554b97=_0x1dc769;super(_0x53e18c),this[_0x554b97(0xf4)]=new _0x153891(),this[_0x554b97(0xff)]=new _0x21448d(),this[_0x554b97(0xf8)]=this[_0x554b97(0xcb)](),this[_0x554b97(0x102)]=this[_0x554b97(0xf9)](),this[_0x554b97(0xfa)]=this[_0x554b97(0xcc)](),this[_0x554b97(0xf5)]=this[_0x554b97(0xf3)]([this[_0x554b97(0xf8)],this[_0x554b97(0x102)],this[_0x554b97(0xfa)]]),this[_0x554b97(0xd2)]=new _0xa444b4({'focusables':this[_0x554b97(0xf5)],'focusTracker':this[_0x554b97(0xf4)],'keystrokeHandler':this[_0x554b97(0xff)],'actions':{'focusPrevious':_0x554b97(0xf1),'focusNext':_0x554b97(0xe7)}}),this[_0x554b97(0xe8)](),this[_0x554b97(0x10a)](),this[_0x554b97(0xcd)]();}[_0x1dc769(0xc6)](){const _0x41ea82=_0x1dc769;super[_0x41ea82(0xc6)](),this[_0x41ea82(0xf5)][_0x41ea82(0xe9)](_0x5dd97b=>{const _0x478647=_0x41ea82;this[_0x478647(0xf4)][_0x478647(0xfd)](_0x5dd97b[_0x478647(0xfb)]),this[_0x478647(0xff)][_0x478647(0x103)](_0x5dd97b[_0x478647(0xfb)]);}),_0x88b37b({'view':this}),this[_0x41ea82(0xd9)]();}[_0x1dc769(0xc4)](){const _0xd668e3=_0x1dc769;super[_0xd668e3(0xc4)](),this[_0xd668e3(0xf4)][_0xd668e3(0xc4)](),this[_0xd668e3(0xff)][_0xd668e3(0xc4)]();}[_0x1dc769(0xd9)](){const _0x3262aa=_0x1dc769;this[_0x3262aa(0x102)][_0x3262aa(0xd9)]();}[_0x1dc769(0xdd)](){const _0x142be5=_0x1dc769;return this[_0x142be5(0x102)][_0x142be5(0xca)][_0x142be5(0xfb)]?.[_0x142be5(0x109)]?.[_0x142be5(0xc9)]()||'';}[_0x1dc769(0xd3)](){const _0x145a99=_0x1dc769;this[_0x145a99(0x102)][_0x145a99(0xca)][_0x145a99(0xfb)][_0x145a99(0x109)]='',this[_0x145a99(0x102)][_0x145a99(0x10b)]=null,this[_0x145a99(0xfa)][_0x145a99(0xef)]=!0x1;}[_0x1dc769(0xde)](_0x307d00){const _0x8956b1=_0x1dc769;this[_0x8956b1(0x102)][_0x8956b1(0x10b)]=_0x307d00,this[_0x8956b1(0xed)](),this[_0x8956b1(0xee)](_0x8956b1(0xd1));}[_0x1dc769(0xc5)](){const _0x54e519=_0x1dc769;this[_0x54e519(0x102)][_0x54e519(0x10b)]=null,this[_0x54e519(0xed)]();}[_0x1dc769(0xcb)](){const _0x149fb6=_0x1dc769,_0x24c270=new _0x4135da(this[_0x149fb6(0xce)]);return _0x24c270[_0x149fb6(0xf6)]({'icon':_0x5d6ea1,'tooltip':_0x7a3674(this[_0x149fb6(0xce)],_0x149fb6(0xe1)),'tooltipPosition':'n','class':_0x149fb6(0xd8)}),_0x24c270;}[_0x1dc769(0xf9)](){const _0x5e1df=_0x1dc769,_0x4bfa11=new _0x50bd36(this[_0x5e1df(0xce)],_0x124d4c);return _0x4bfa11[_0x5e1df(0xf6)]({'label':_0x7a3674(this[_0x5e1df(0xce)],_0x5e1df(0xf2)),'class':_0x5e1df(0xeb)}),_0x4bfa11[_0x5e1df(0xca)][_0x5e1df(0xf6)]({'placeholder':_0x7a3674(this[_0x5e1df(0xce)],_0x5e1df(0xe6))}),_0x4bfa11;}[_0x1dc769(0xcc)](){const _0xafd7bd=_0x1dc769,_0x1c8812=new _0x4135da(this[_0xafd7bd(0xce)]);return _0x1c8812[_0xafd7bd(0xf6)]({'icon':_0x42c1df,'tooltip':_0x7a3674(this[_0xafd7bd(0xce)],_0xafd7bd(0xe0)),'tooltipPosition':'n','class':_0xafd7bd(0xc7),'type':_0xafd7bd(0x108),'isEnabled':!0x1}),_0x1c8812;}[_0x1dc769(0xe8)](){const _0x6d287c=_0x1dc769,_0x3e02b8=new _0x48062b(this[_0x6d287c(0xce)],{'label':_0x7a3674(this[_0x6d287c(0xce)],_0x6d287c(0xe0)),'class':_0x6d287c(0xe5)});_0x3e02b8[_0x6d287c(0xe3)][_0x6d287c(0xfd)](this[_0x6d287c(0xf8)],0x0),this[_0x6d287c(0xd7)]({'tag':_0x6d287c(0xdf),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x3e02b8,{'tag':_0x6d287c(0xdb),'attributes':{'class':hh},'children':[this[_0x6d287c(0x102)],this[_0x6d287c(0xfa)]]}]});}[_0x1dc769(0x10a)](){const _0x48ef37=_0x1dc769;this[_0x48ef37(0xf8)]['on'](_0x48ef37(0xf7),()=>{const _0x218161=_0x48ef37;this[_0x218161(0xd3)](),this[_0x218161(0xee)](_0x218161(0xd6));}),this[_0x48ef37(0x102)][_0x48ef37(0xca)]['on'](_0x48ef37(0x106),()=>{const _0x4e5c80=_0x48ef37;this[_0x4e5c80(0xc5)](),this[_0x4e5c80(0xed)](),this[_0x4e5c80(0xee)](_0x4e5c80(0xd1));}),this['on'](_0x48ef37(0x108),_0x2fe267=>{const _0x344e62=_0x48ef37;_0x2fe267[_0x344e62(0xec)](),this[_0x344e62(0xc8)]();});}[_0x1dc769(0xcd)](){const _0x24c38f=_0x1dc769;this[_0x24c38f(0xff)][_0x24c38f(0xf6)](_0x24c38f(0x105),(_0x163e14,_0xf8cafe)=>{const _0xe0cc5d=_0x24c38f;this[_0xe0cc5d(0xd3)](),this[_0xe0cc5d(0xee)](_0xe0cc5d(0xd6)),_0xf8cafe();});}[_0x1dc769(0xc8)](){const _0xacce1c=_0x1dc769,_0x912db4=this[_0xacce1c(0xdd)]()[_0xacce1c(0xc9)]();_0x912db4?this[_0xacce1c(0xfc)](_0x912db4)?(this[_0xacce1c(0xc5)](),this[_0xacce1c(0xee)](_0xacce1c(0xcf),_0x912db4)):this[_0xacce1c(0xde)](_0x7a3674(this[_0xacce1c(0xce)],_0xacce1c(0xd0))):this[_0xacce1c(0xde)](_0x7a3674(this[_0xacce1c(0xce)],_0xacce1c(0x104)));}[_0x1dc769(0xed)](){const _0x2a46cd=_0x1dc769,_0x5868b9=this[_0x2a46cd(0xdd)]()[_0x2a46cd(0xc9)](),_0x5dbefa=!!this[_0x2a46cd(0x102)][_0x2a46cd(0x10b)];this[_0x2a46cd(0xfa)][_0x2a46cd(0xef)]=_0x5868b9[_0x2a46cd(0xfe)]>0x0&&!_0x5dbefa;}[_0x1dc769(0xfc)](_0x19898b){try{return!!new URL(_0x19898b);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36c900=_0x1d44;(function(_0x468e21,_0x57f3af){const _0x56e174=_0x1d44,_0x467215=_0x468e21();while(!![]){try{const _0x2e1c58=-parseInt(_0x56e174(0x22c))/0x1*(-parseInt(_0x56e174(0x1ec))/0x2)+parseInt(_0x56e174(0x1d9))/0x3*(-parseInt(_0x56e174(0x216))/0x4)+-parseInt(_0x56e174(0x1dc))/0x5*(parseInt(_0x56e174(0x20e))/0x6)+-parseInt(_0x56e174(0x22e))/0x7+-parseInt(_0x56e174(0x1cb))/0x8+parseInt(_0x56e174(0x1d8))/0x9+parseInt(_0x56e174(0x239))/0xa*(parseInt(_0x56e174(0x1fc))/0xb);if(_0x2e1c58===_0x57f3af)break;else _0x467215['push'](_0x467215['shift']());}catch(_0x8c1909){_0x467215['push'](_0x467215['shift']());}}}(_0x353c,0x4b7ae));import{BalloonPanelView as _0x41d97f,ButtonView as _0x3d94e0,clickOutsideHandler as _0x45bcea,FileDialogButtonView as _0xeb0112,IconView as _0x20972b,View as _0x26500c}from'ckeditor5/src/ui.js';function _0x353c(){const _0x1af593=['ck-ai-chat-context-controls','extendTemplate','render','current','setConversationContext','ck-ai-chat-context-controls__add-context-button','_urlBalloonPanelView','northArrowSouthWest','hideAddContextBalloonPanel','4777344WScepG','7374YHlvpj','destroy','_overflowManager','4670SXsbPI','_createAddContextButtonView','setContainerElement','document','clear','closeSourceResourceBalloon','ck-ai-chat-context-controls__add-context-balloon-panel','div','createCollection','__arrow','southArrowNorthEast','setContextItemLoading','ck-ai-chat','arrowView','ck-reset_all-excluded','_setupTemplate','830658elXToB','balloonView','addFileToContext','body','children','enabled','buttonView','label','done','_setupAddContextBalloonClickOutsideHandler','type','hide','_setupAllBalloonClickOutsideHandlers','focus','addContextButtonView','showAddContextBalloonPanel','330803bvCjGf','ck-ai-chat-context-chips-wrapper-balloon','isAnyResourceBalloonVisible','ck-ai-chat-context-controls__balloon-button-source','isLoading','AI_CHAT_CONTEXT_FILE_LABEL','_handleAddContextButtonClick','clearConversationContextItems','_handleUrlSubmit','northArrowSouth','ck-ai-chat-context-controls__show-more-balloon-panel','_createResourcesBalloonView','_resourcesBalloonView','_urlInputView','_showSourceResourcesBalloon','set','refreshBalloon','northArrowSouthEast','258MYAuJy','southArrowNorthWest','menuitem','AI_CHAT_CONTEXT_URL_LABEL','urls','reorganizeChips','ck-ai-chat-context-controls__url-balloon-panel','showUrlBalloonPanel','232PVEXcY','bind','addResourceToContext','locale','populateSourceResourceBalloon','_addContextToCollection','_addContextBalloonConfig','ck-ai-chat-context-controls__pending-contexts','bodyCollection','_currentContextsChips','_addUrlContent','updateResourceState','conversation','addContextItem','show','ck-ai-chat-context-controls__balloon-button','find','addUrlToContext','defaultPositions','_createBalloonButton','removeContextItemChip','_createUrlBalloonPanelView','1YRMRsZ','execute','2605050zdhylq','_createBaseBalloonPanel','files','icon','sources','showSourceResourcesBalloon','pin','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_addContextBalloonPanelView','add','source','80AMkvQO','_toggleAddContextBalloon','isHidden','isReadOnly','overflowChips','remove','loadSourceResources','hideUrlBalloonPanel','_conversationContextsChips','_setupUrlBalloonClickOutsideHandler','_getLimiterElement','_removeContextFromCollection','isOn','ck-ai-chat-controls-button','AI_CHAT_CONTEXT_ADD_CONTEXT','removeContextItem','cancel','closest','_createArrowView','setAddContextOptions','tooltip','_createAddContextBalloonPanelView','fire','element','ck-ai-chat-controls_context_show-more-button','isVisible','_bindEventHandlers','clearCurrentContextItems','addDocumentToContext','southArrowNorth','content','isEnabled','setTemplate','submitUrl','2581496JfEkdf','_createContextButton','_setAddContextButtonEnabled','_setBalloonPanelContent'];_0x353c=function(){return _0x1af593;};return _0x353c();}import{IconBrowseFiles as _0x377068,IconDocument as _0x113d1e,IconDocumentOutline as _0x3f90d,IconDropdownArrow as _0x5d5851,IconLink as _0x566031,IconPaperClip as _0x36ff08}from'@ckeditor/ckeditor5-icons';function _0x1d44(_0x5f3978,_0x469145){const _0x353cf5=_0x353c();return _0x1d44=function(_0x1d4482,_0x1f2bc9){_0x1d4482=_0x1d4482-0x1b9;let _0x429807=_0x353cf5[_0x1d4482];return _0x429807;},_0x1d44(_0x5f3978,_0x469145);}import{AIChatContextItemButtonView as _0x592154}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x39d29c}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x1fe335}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1dabd2}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x33a431}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x36c900(0x1c5),_0x36c900(0x1ee),_0x36c900(0x227),_0x36c900(0x218),_0x36c900(0x248),_0x36c900(0x23f)];const vo=_0x36c900(0x1cf),go=_0x36c900(0x21d),Vo=_0x36c900(0x1e2),Io=_0x36c900(0x1d4),Po=_0x36c900(0x214),Ro=_0x36c900(0x225),So=_0x36c900(0x1ff),uo=_0x36c900(0x246),Uo=_0x36c900(0x1fd),xo=_0x36c900(0x1c1),fo=_0x36c900(0x206),Lo=_0x36c900(0x1e8),No=[_0x41d97f[_0x36c900(0x228)][_0x36c900(0x1d6)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x205)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x20d)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x20f)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x1c6)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x1e6)]];export class AIChatContextPanelView extends _0x26500c{[_0x36c900(0x1fa)];[_0x36c900(0x21f)]=this[_0x36c900(0x1e4)]();[_0x36c900(0x241)]=this[_0x36c900(0x1e4)]();[_0x36c900(0x1db)];[_0x36c900(0x236)];[_0x36c900(0x1d5)];[_0x36c900(0x209)];[_0x36c900(0x208)];[_0x36c900(0x21c)];[_0x36c900(0x21e)];constructor(_0x3bed45,_0x27d6f8){const _0x269bbe=_0x36c900;super(_0x3bed45),this[_0x269bbe(0x21e)]=_0x27d6f8,this[_0x269bbe(0x21f)]=this[_0x269bbe(0x1e4)](),this[_0x269bbe(0x241)]=this[_0x269bbe(0x1e4)](),this[_0x269bbe(0x1fa)]=this[_0x269bbe(0x1dd)](_0x3bed45),this[_0x269bbe(0x236)]=this[_0x269bbe(0x1be)](_0x3bed45),this[_0x269bbe(0x1d5)]=this[_0x269bbe(0x22b)](_0x3bed45),this[_0x269bbe(0x208)]=this[_0x269bbe(0x207)](_0x3bed45,_0x27d6f8);const _0x1f3d57={'cssClasses':{'showMoreButton':xo,'showMoreBalloon':fo,'overflowContainer':Uo,'controlsButton':uo}};this[_0x269bbe(0x1db)]=new _0x1fe335(_0x3bed45,this[_0x269bbe(0x21f)],_0x1f3d57,this[_0x269bbe(0x21e)],this),this[_0x269bbe(0x21c)]={'buttonView':this[_0x269bbe(0x1fa)],'balloonView':this[_0x269bbe(0x236)],'hideMethod':this[_0x269bbe(0x1d7)][_0x269bbe(0x217)](this),'showMethod':this[_0x269bbe(0x1fb)][_0x269bbe(0x217)](this)},this[_0x269bbe(0x1eb)](),this[_0x269bbe(0x1c3)]();}[_0x36c900(0x1d1)](){const _0x11b36f=_0x36c900;super[_0x11b36f(0x1d1)](),this[_0x11b36f(0x1f8)](),this[_0x11b36f(0x1db)][_0x11b36f(0x1de)](this[_0x11b36f(0x1c0)]),this[_0x11b36f(0x1db)][_0x11b36f(0x213)]();}[_0x36c900(0x1da)](){const _0x1cfa83=_0x36c900;super[_0x1cfa83(0x1da)](),this[_0x1cfa83(0x1db)][_0x1cfa83(0x1da)](),this[_0x1cfa83(0x208)][_0x1cfa83(0x1da)]();}[_0x36c900(0x223)](_0x3835bf,_0x58697c){const _0x42f54f=_0x36c900,_0x208439=this[_0x42f54f(0x1cc)](_0x3835bf,_0x42f54f(0x1d2),!0x0,_0x58697c);this[_0x42f54f(0x21b)](_0x208439,this[_0x42f54f(0x21f)]),this[_0x42f54f(0x1db)][_0x42f54f(0x213)]();}[_0x36c900(0x248)](_0x4f3a48){const _0x21e542=_0x36c900;this[_0x21e542(0x244)](_0x4f3a48,this[_0x21e542(0x21f)]),this[_0x21e542(0x244)](_0x4f3a48,this[_0x21e542(0x1db)][_0x21e542(0x23d)]),this[_0x21e542(0x1db)][_0x21e542(0x213)]();}[_0x36c900(0x1e7)](_0xcb3710,_0x5b9b19){const _0x44455=_0x36c900;let _0x36de8c=this[_0x44455(0x21f)][_0x44455(0x226)](_0x8b06da=>_0x8b06da['id']===_0xcb3710);_0x36de8c||(_0x36de8c=this[_0x44455(0x1db)][_0x44455(0x23d)][_0x44455(0x226)](_0x21c1cc=>_0x21c1cc['id']===_0xcb3710)),_0x36de8c&&(_0x36de8c[_0x44455(0x200)]=_0x5b9b19);}[_0x36c900(0x1d3)](_0x3a5836){const _0x5648bb=_0x36c900;this[_0x5648bb(0x241)][_0x5648bb(0x1e0)]();for(const _0x1f87d1 of _0x3a5836){const _0x3e40e8=this[_0x5648bb(0x1cc)](_0x1f87d1,_0x5648bb(0x222),!0x1,!0x1);this[_0x5648bb(0x21b)](_0x3e40e8,this[_0x5648bb(0x241)]);}}[_0x36c900(0x1c4)](){const _0x353628=_0x36c900;this[_0x353628(0x21f)][_0x353628(0x1e0)](),this[_0x353628(0x1db)][_0x353628(0x1e0)]();}[_0x36c900(0x203)](){const _0x40e192=_0x36c900;this[_0x40e192(0x241)][_0x40e192(0x1e0)]();}[_0x36c900(0x221)](_0x2084cc,_0xf7380f,_0x41adbe){const _0x8e663b=_0x36c900;this[_0x8e663b(0x208)][_0x8e663b(0x221)](_0x2084cc,_0xf7380f,_0x41adbe);}[_0x36c900(0x1d7)](){const _0x141624=_0x36c900;this[_0x141624(0x23a)](!0x1);}[_0x36c900(0x1fb)](){const _0x7f4bfc=_0x36c900;this[_0x7f4bfc(0x23a)](!0x0);}[_0x36c900(0x240)](){const _0x17284d=_0x36c900;this[_0x17284d(0x1d5)][_0x17284d(0x1f7)](),this[_0x17284d(0x1fa)][_0x17284d(0x245)]=!0x1,this[_0x17284d(0x209)]&&this[_0x17284d(0x209)][_0x17284d(0x1e0)]();}[_0x36c900(0x215)](){const _0x4491b0=_0x36c900;this[_0x4491b0(0x1d5)][_0x4491b0(0x224)](),this[_0x4491b0(0x1fa)][_0x4491b0(0x245)]=!0x0;}[_0x36c900(0x20a)](_0x5c7b1f){const _0x53befb=_0x36c900;this[_0x53befb(0x208)][_0x53befb(0x233)](_0x5c7b1f),this[_0x53befb(0x1fa)][_0x53befb(0x245)]=!0x0;}[_0x36c900(0x21a)](_0x520e27,_0x57db92,_0x3df67a,_0x573a76){const _0x1c0075=_0x36c900;this[_0x1c0075(0x208)][_0x1c0075(0x21a)](_0x520e27,_0x3df67a,_0x573a76);}[_0x36c900(0x1e1)](_0x6cc4ba){const _0x5255ce=_0x36c900;this[_0x5255ce(0x208)][_0x5255ce(0x1e1)](_0x6cc4ba),this[_0x5255ce(0x1fa)][_0x5255ce(0x245)]=!0x1;}[_0x36c900(0x1bc)](_0x370938){const _0x4c0e4e=_0x36c900;this[_0x4c0e4e(0x1ce)](this[_0x4c0e4e(0x236)],this[_0x4c0e4e(0x219)],_0x370938),this[_0x4c0e4e(0x1cd)](_0x370938);}[_0x36c900(0x1cd)](_0x38503d){const _0x132847=_0x36c900,_0x2dc6f4=!_0x38503d[_0x132847(0x1df)][_0x132847(0x23b)]&&_0x38503d[_0x132847(0x1df)][_0x132847(0x1f1)],_0x532051=_0x38503d[_0x132847(0x212)][_0x132847(0x1f1)],_0x209d21=_0x38503d[_0x132847(0x230)][_0x132847(0x1f1)];this[_0x132847(0x1fa)][_0x132847(0x1c8)]=_0x2dc6f4||_0x532051||_0x209d21;}[_0x36c900(0x1eb)](){const _0x3e1057=_0x36c900;this[_0x3e1057(0x1c9)]({'tag':_0x3e1057(0x1e3),'attributes':{'class':[vo,_0x3e1057(0x1ea)]},'children':[{'tag':_0x3e1057(0x1e3),'attributes':{'class':go},'children':this[_0x3e1057(0x21f)]}]});}[_0x36c900(0x1c3)](){const _0x37704d=_0x36c900;this[_0x37704d(0x1fa)]['on'](_0x37704d(0x22d),()=>{const _0x5f24fd=_0x37704d;this[_0x5f24fd(0x202)]();});}[_0x36c900(0x1dd)](_0x155cbf){const _0x1896a1=_0x36c900,_0x33075a=new _0x3d94e0(_0x155cbf);return _0x33075a[_0x1896a1(0x20b)]({'label':_0x1dabd2(_0x155cbf,_0x1896a1(0x247)),'class':uo+'\x20'+Io,'icon':_0x36ff08,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x33075a;}[_0x36c900(0x1be)](_0x993491){const _0x5cbd55=_0x36c900;return this[_0x5cbd55(0x22f)](_0x993491,Vo);}[_0x36c900(0x22b)](_0x57e9b2){const _0x246b1a=_0x36c900,_0x7e5be3=this[_0x246b1a(0x22f)](_0x57e9b2,Po);return this[_0x246b1a(0x220)](_0x7e5be3,_0x57e9b2),_0x7e5be3;}[_0x36c900(0x207)](_0xe84e5a,_0x543cf9){const _0x5c94c0=_0x36c900;return new _0x33a431(_0xe84e5a,_0x543cf9,{'onBackToContext':()=>{const _0x1b2221=_0x1d44;this[_0x1b2221(0x1fb)](),this[_0x1b2221(0x236)][_0x1b2221(0x234)]({'target':this[_0x1b2221(0x1fa)][_0x1b2221(0x1c0)],'limiter':this[_0x1b2221(0x243)](),'positions':No});},'onResourceSelected':(_0x175f6d,_0x396e4a)=>{const _0x3c5b9c=_0x1d44;this[_0x3c5b9c(0x1bf)](_0x3c5b9c(0x218),{'source':_0x175f6d,'resource':_0x396e4a});},'onLoadSourceResources':_0x307491=>{const _0x580698=_0x1d44;this[_0x580698(0x1bf)](_0x580698(0x23f),_0x307491);},'onBalloonClosed':()=>{const _0x1893cf=_0x1d44;this[_0x1893cf(0x1fa)][_0x1893cf(0x245)]=!0x1;},'getLimiterElement':()=>this[_0x5c94c0(0x243)](),'getTargetElement':()=>this[_0x5c94c0(0x1fa)][_0x5c94c0(0x1c0)]});}[_0x36c900(0x243)](){const _0x129f1e=_0x36c900;return this[_0x129f1e(0x1c0)]?.[_0x129f1e(0x1ba)]('.'+Lo)||document[_0x129f1e(0x1ef)];}[_0x36c900(0x22f)](_0x202cc0,_0x5c8b31){const _0x5276f1=_0x36c900,_0x479ad3=new _0x41d97f(_0x202cc0);return _0x479ad3[_0x5276f1(0x1d0)]({'attributes':{'class':_0x5c8b31}}),this[_0x5276f1(0x21e)][_0x5276f1(0x237)](_0x479ad3),_0x479ad3;}[_0x36c900(0x1ce)](_0x2a5b32,_0x28bb9e,_0x4894be){const _0x3ce011=_0x36c900;if(_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x1e0)](),!_0x4894be[_0x3ce011(0x1df)][_0x3ce011(0x23b)]&&_0x4894be[_0x3ce011(0x1df)][_0x3ce011(0x1f1)]){const _0x5ad025=this[_0x3ce011(0x229)](_0x28bb9e,{'label':_0x1dabd2(_0x28bb9e,_0x3ce011(0x235)),'icon':_0x113d1e});_0x5ad025['on'](_0x3ce011(0x22d),()=>{const _0x22c55b=_0x3ce011;this[_0x22c55b(0x1bf)](_0x22c55b(0x1c5)),this[_0x22c55b(0x1d7)]();}),_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x237)](_0x5ad025);}if(_0x4894be[_0x3ce011(0x212)][_0x3ce011(0x1f1)]){const _0x1eeda6=this[_0x3ce011(0x229)](_0x28bb9e,{'label':_0x1dabd2(_0x28bb9e,_0x3ce011(0x211)),'icon':_0x566031});_0x1eeda6['on'](_0x3ce011(0x22d),()=>{const _0x5cee07=_0x3ce011;this[_0x5cee07(0x1d7)](),this[_0x5cee07(0x215)](),this[_0x5cee07(0x1d5)][_0x5cee07(0x234)]({'target':this[_0x5cee07(0x1fa)][_0x5cee07(0x1c0)],'limiter':this[_0x5cee07(0x243)](),'positions':No}),this[_0x5cee07(0x209)][_0x5cee07(0x1f9)]();}),_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x237)](_0x1eeda6);}if(_0x4894be[_0x3ce011(0x230)][_0x3ce011(0x1f1)]){const _0x2caf5b=new _0xeb0112(_0x28bb9e);_0x2caf5b[_0x3ce011(0x20b)]({'label':_0x1dabd2(_0x28bb9e,_0x3ce011(0x201)),'icon':_0x377068,'withText':!0x0,'tooltip':!0x0,'class':Ro,'allowMultipleFiles':!0x0}),_0x2caf5b['on'](_0x3ce011(0x1f4),(_0x17340b,_0x516c3e)=>{const _0x3646a1=_0x3ce011;this[_0x3646a1(0x1bf)](_0x3646a1(0x1ee),_0x516c3e),this[_0x3646a1(0x1d7)]();}),_0x2caf5b[_0x3ce011(0x1bd)]=!0x0,_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x237)](_0x2caf5b);}for(const _0x4bba22 of _0x4894be[_0x3ce011(0x232)]){const _0x2d9587=this[_0x3ce011(0x229)](_0x28bb9e,{'label':_0x4bba22[_0x3ce011(0x1f3)],'icon':_0x4bba22[_0x3ce011(0x231)]||_0x3f90d,'type':_0x3ce011(0x238)});_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x237)](_0x2d9587),_0x2d9587['on'](_0x3ce011(0x22d),()=>{const _0x533835=_0x3ce011;this[_0x533835(0x1d7)](),this[_0x533835(0x20a)](_0x4bba22);});}}[_0x36c900(0x220)](_0x55106b,_0x145bfb){const _0x57f05e=_0x36c900;this[_0x57f05e(0x209)]=new _0x39d29c(_0x145bfb),this[_0x57f05e(0x209)]['on'](_0x57f05e(0x1ca),(_0x493041,_0x283d48)=>{const _0x983861=_0x57f05e;this[_0x983861(0x204)](_0x283d48);}),this[_0x57f05e(0x209)]['on'](_0x57f05e(0x1b9),()=>{const _0x35d98d=_0x57f05e;this[_0x35d98d(0x240)](),this[_0x35d98d(0x1fb)](),this[_0x35d98d(0x236)][_0x35d98d(0x234)]({'target':this[_0x35d98d(0x1fa)][_0x35d98d(0x1c0)],'limiter':this[_0x35d98d(0x243)](),'positions':No});}),this[_0x57f05e(0x209)]['on'](_0x57f05e(0x20c),()=>{const _0x4e0ba4=_0x57f05e;this[_0x4e0ba4(0x1d5)][_0x4e0ba4(0x1c2)]&&this[_0x4e0ba4(0x1d5)][_0x4e0ba4(0x234)]({'target':this[_0x4e0ba4(0x1fa)][_0x4e0ba4(0x1c0)],'limiter':this[_0x4e0ba4(0x243)](),'positions':No});}),_0x55106b[_0x57f05e(0x1c7)][_0x57f05e(0x237)](this[_0x57f05e(0x209)]);}[_0x36c900(0x229)](_0x2efc96,_0x2f56af){const _0x1cd004=_0x36c900,_0x2db6e5=_0x1cd004(0x238)===_0x2f56af[_0x1cd004(0x1f6)]?new SourcesBalloonButtonView(_0x2efc96):new _0x3d94e0(_0x2efc96);return _0x2db6e5[_0x1cd004(0x20b)]({'label':_0x2f56af[_0x1cd004(0x1f3)],'icon':_0x2f56af[_0x1cd004(0x231)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ro}),_0x2db6e5;}[_0x36c900(0x1f8)](){const _0x37218b=_0x36c900;this[_0x37218b(0x1f5)](),this[_0x37218b(0x242)]();}[_0x36c900(0x242)](){const _0x28a3fb=_0x36c900;_0x45bcea({'emitter':this[_0x28a3fb(0x1d5)],'contextElements':[this[_0x28a3fb(0x1d5)][_0x28a3fb(0x1c0)]],'callback':()=>{const _0x5c49fd=_0x28a3fb;this[_0x5c49fd(0x240)]();},'activator':()=>this[_0x28a3fb(0x1d5)][_0x28a3fb(0x1c2)]});}[_0x36c900(0x23a)](_0x4c15ca){const _0xf2e1fb=_0x36c900,_0x455e7d=this[_0xf2e1fb(0x21c)];_0x455e7d[_0xf2e1fb(0x1f2)][_0xf2e1fb(0x245)]=_0x4c15ca,_0x4c15ca?_0x455e7d[_0xf2e1fb(0x1ed)][_0xf2e1fb(0x224)]():_0x455e7d[_0xf2e1fb(0x1ed)][_0xf2e1fb(0x1f7)]();}[_0x36c900(0x1f5)](){const _0x13bd8d=_0x36c900,{balloonView:_0x438732,buttonView:_0xda3611,hideMethod:_0x15f614}=this[_0x13bd8d(0x21c)];_0x45bcea({'emitter':_0x438732,'contextElements':[_0x438732[_0x13bd8d(0x1c0)],_0xda3611[_0x13bd8d(0x1c0)]],'callback':()=>{_0x15f614();},'activator':()=>_0xda3611[_0x13bd8d(0x245)]&&!this[_0x13bd8d(0x1d5)][_0x13bd8d(0x1c2)]&&!this[_0x13bd8d(0x208)][_0x13bd8d(0x1fe)]()});}[_0x36c900(0x1cc)](_0x1481a3,_0x61e2b4,_0x59c4f3=!0x1,_0x42392b=!0x1){const _0x1c35ca=_0x36c900,_0x3cc34a=_0x1c35ca(0x222)===_0x61e2b4||!0x0===_0x1481a3[_0x1c35ca(0x23c)],_0x31e45e=new _0x592154(this[_0x1c35ca(0x219)],_0x1481a3,_0x3cc34a,_0x59c4f3,_0x42392b);return _0x3cc34a||_0x31e45e['on'](_0x1c35ca(0x22a),()=>{const _0x5b60f7=_0x1c35ca;this[_0x5b60f7(0x1bf)](_0x5b60f7(0x248),_0x31e45e['id']);}),_0x31e45e;}[_0x36c900(0x21b)](_0x2bad2b,_0x913b){const _0x34c24a=_0x36c900;_0x913b[_0x34c24a(0x237)](_0x2bad2b,0x0);}[_0x36c900(0x244)](_0x1c6984,_0x5c2004){const _0x5cb2ad=_0x36c900,_0x5ecb01=_0x5c2004[_0x5cb2ad(0x226)](_0xd7a104=>_0xd7a104['id']===_0x1c6984);_0x5ecb01&&_0x5c2004[_0x5cb2ad(0x23e)](_0x5ecb01);}[_0x36c900(0x202)](){const _0x1d16c8=_0x36c900;this[_0x1d16c8(0x1fa)][_0x1d16c8(0x245)]?this[_0x1d16c8(0x1d7)]():(this[_0x1d16c8(0x1fb)](),this[_0x1d16c8(0x236)][_0x1d16c8(0x234)]({'target':this[_0x1d16c8(0x1fa)][_0x1d16c8(0x1c0)],'limiter':this[_0x1d16c8(0x243)](),'positions':No}));}[_0x36c900(0x204)](_0x5d6956){const _0xbe5689=_0x36c900;this[_0xbe5689(0x209)][_0xbe5689(0x1e0)](),this[_0xbe5689(0x240)](),this[_0xbe5689(0x1bf)](_0xbe5689(0x227),_0x5d6956);}}export class SourcesBalloonButtonView extends _0x3d94e0{[_0x36c900(0x1e9)];constructor(_0x1fbdc0){const _0x3321fa=_0x36c900;super(_0x1fbdc0),this[_0x3321fa(0x20b)]({'withText':!0x0,'role':_0x3321fa(0x210)}),this[_0x3321fa(0x1e9)]=this[_0x3321fa(0x1bb)](),this[_0x3321fa(0x1d0)]({'attributes':{'class':[So]}});}[_0x36c900(0x1d1)](){const _0x39db46=_0x36c900;super[_0x39db46(0x1d1)](),this[_0x39db46(0x1f0)][_0x39db46(0x237)](this[_0x39db46(0x1e9)]);}[_0x36c900(0x1bb)](){const _0x4d0b64=_0x36c900,_0x2cbc3c=new _0x20972b();return _0x2cbc3c[_0x4d0b64(0x1c7)]=_0x5d5851,_0x2cbc3c[_0x4d0b64(0x1d0)]({'attributes':{'class':So+_0x4d0b64(0x1e5)}}),_0x2cbc3c;}}
23
+ function _0x5af7(_0x5572ce,_0x190d5d){const _0x5c018b=_0x5c01();return _0x5af7=function(_0x5af798,_0xc92ce7){_0x5af798=_0x5af798-0x1f2;let _0x236f65=_0x5c018b[_0x5af798];return _0x236f65;},_0x5af7(_0x5572ce,_0x190d5d);}const _0x5295ce=_0x5af7;(function(_0x433e86,_0x2adb5a){const _0x538d2f=_0x5af7,_0x1fc99c=_0x433e86();while(!![]){try{const _0x388719=parseInt(_0x538d2f(0x20e))/0x1+parseInt(_0x538d2f(0x23a))/0x2+-parseInt(_0x538d2f(0x26a))/0x3*(parseInt(_0x538d2f(0x259))/0x4)+-parseInt(_0x538d2f(0x222))/0x5+parseInt(_0x538d2f(0x21a))/0x6+-parseInt(_0x538d2f(0x207))/0x7+-parseInt(_0x538d2f(0x26c))/0x8*(-parseInt(_0x538d2f(0x22f))/0x9);if(_0x388719===_0x2adb5a)break;else _0x1fc99c['push'](_0x1fc99c['shift']());}catch(_0x462be5){_0x1fc99c['push'](_0x1fc99c['shift']());}}}(_0x5c01,0x69437));import{BalloonPanelView as _0xe68e74,ButtonView as _0x338a4f,clickOutsideHandler as _0x365b23,FileDialogButtonView as _0x4f054f,IconView as _0x2be7bd,View as _0x55c271}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x3337bc,IconDocument as _0x41a09f,IconDocumentOutline as _0x279a9f,IconDropdownArrow as _0x93c803,IconLink as _0x30491c,IconPaperClip as _0x2d847b}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2fc5d8}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x1611c8}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x5d1362}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x37ce30}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x370ec7}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x5295ce(0x27b),_0x5295ce(0x235),_0x5295ce(0x258),_0x5295ce(0x1f4),_0x5295ce(0x215),_0x5295ce(0x21f)];const bo=_0x5295ce(0x23e),To=_0x5295ce(0x24b),Ao=_0x5295ce(0x22c),ko=_0x5295ce(0x24c),Eo=_0x5295ce(0x21c),vo=_0x5295ce(0x263),go=_0x5295ce(0x1f5),Vo=_0x5295ce(0x265),fo=_0x5295ce(0x250),Io=_0x5295ce(0x24e),Po=_0x5295ce(0x272),Ro=_0x5295ce(0x27d),So=[_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x245)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x1f2)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x23f)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x261)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x267)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x20c)]];export class AIChatContextPanelView extends _0x55c271{[_0x5295ce(0x228)];[_0x5295ce(0x211)]=this[_0x5295ce(0x25a)]();[_0x5295ce(0x20d)]=this[_0x5295ce(0x25a)]();[_0x5295ce(0x1fd)];[_0x5295ce(0x209)];[_0x5295ce(0x210)];[_0x5295ce(0x1f9)];[_0x5295ce(0x27c)];[_0x5295ce(0x213)];[_0x5295ce(0x249)];constructor(_0x32f703,_0x2e657f){const _0x376a05=_0x5295ce;super(_0x32f703),this[_0x376a05(0x249)]=_0x2e657f,this[_0x376a05(0x211)]=this[_0x376a05(0x25a)](),this[_0x376a05(0x20d)]=this[_0x376a05(0x25a)](),this[_0x376a05(0x228)]=this[_0x376a05(0x20a)](_0x32f703),this[_0x376a05(0x209)]=this[_0x376a05(0x216)](_0x32f703),this[_0x376a05(0x210)]=this[_0x376a05(0x25b)](_0x32f703),this[_0x376a05(0x27c)]=this[_0x376a05(0x220)](_0x32f703,_0x2e657f);const _0x26d3dd={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':fo,'controlsButton':Vo}};this[_0x376a05(0x1fd)]=new _0x5d1362(_0x32f703,this[_0x376a05(0x211)],_0x26d3dd,this[_0x376a05(0x249)],this),this[_0x376a05(0x213)]={'buttonView':this[_0x376a05(0x228)],'balloonView':this[_0x376a05(0x209)],'hideMethod':this[_0x376a05(0x1f8)][_0x376a05(0x260)](this),'showMethod':this[_0x376a05(0x238)][_0x376a05(0x260)](this)},this[_0x376a05(0x224)](),this[_0x376a05(0x274)]();}[_0x5295ce(0x20f)](){const _0x52ecf5=_0x5295ce;super[_0x52ecf5(0x20f)](),this[_0x52ecf5(0x1f6)](),this[_0x52ecf5(0x1fd)][_0x52ecf5(0x278)](this[_0x52ecf5(0x254)]),this[_0x52ecf5(0x1fd)][_0x52ecf5(0x230)]();}[_0x5295ce(0x239)](){const _0x1e93a1=_0x5295ce;super[_0x1e93a1(0x239)](),this[_0x1e93a1(0x1fd)][_0x1e93a1(0x239)](),this[_0x1e93a1(0x27c)][_0x1e93a1(0x239)]();}[_0x5295ce(0x275)](_0x248aec,_0x20c157){const _0x46e363=_0x5295ce,_0x3c1376=this[_0x46e363(0x269)](_0x248aec,_0x46e363(0x257),!0x0,_0x20c157);this[_0x46e363(0x268)](_0x3c1376,this[_0x46e363(0x211)]),this[_0x46e363(0x1fd)][_0x46e363(0x230)]();}[_0x5295ce(0x215)](_0x3e4530){const _0x2d141a=_0x5295ce;this[_0x2d141a(0x27a)](_0x3e4530,this[_0x2d141a(0x211)]),this[_0x2d141a(0x27a)](_0x3e4530,this[_0x2d141a(0x1fd)][_0x2d141a(0x240)]),this[_0x2d141a(0x1fd)][_0x2d141a(0x230)]();}[_0x5295ce(0x262)](_0x3ed6f8,_0x4f9b0f){const _0x4b8e12=_0x5295ce;let _0x582df7=this[_0x4b8e12(0x211)][_0x4b8e12(0x27e)](_0x52062b=>_0x52062b['id']===_0x3ed6f8);_0x582df7||(_0x582df7=this[_0x4b8e12(0x1fd)][_0x4b8e12(0x240)][_0x4b8e12(0x27e)](_0x503487=>_0x503487['id']===_0x3ed6f8)),_0x582df7&&(_0x582df7[_0x4b8e12(0x22b)]=_0x4f9b0f);}[_0x5295ce(0x271)](_0x5940b4){const _0x3304a4=_0x5295ce;this[_0x3304a4(0x20d)][_0x3304a4(0x26b)]();for(const _0xbee25c of _0x5940b4){const _0x4e00ef=this[_0x3304a4(0x269)](_0xbee25c,_0x3304a4(0x23c),!0x1,!0x1);this[_0x3304a4(0x268)](_0x4e00ef,this[_0x3304a4(0x20d)]);}}[_0x5295ce(0x25e)](){const _0x239691=_0x5295ce;this[_0x239691(0x211)][_0x239691(0x26b)](),this[_0x239691(0x1fd)][_0x239691(0x26b)]();}[_0x5295ce(0x246)](){const _0x195f92=_0x5295ce;this[_0x195f92(0x20d)][_0x195f92(0x26b)]();}[_0x5295ce(0x255)](_0x5137ad,_0x3fd357,_0x2aa241){const _0x4887bd=_0x5295ce;this[_0x4887bd(0x27c)][_0x4887bd(0x255)](_0x5137ad,_0x3fd357,_0x2aa241);}[_0x5295ce(0x1f8)](){const _0x106749=_0x5295ce;this[_0x106749(0x24a)](!0x1);}[_0x5295ce(0x238)](){const _0x36f2be=_0x5295ce;this[_0x36f2be(0x24a)](!0x0);}[_0x5295ce(0x214)](){const _0x2078f9=_0x5295ce;this[_0x2078f9(0x210)][_0x2078f9(0x23b)](),this[_0x2078f9(0x228)][_0x2078f9(0x21e)]=!0x1,this[_0x2078f9(0x1f9)]&&this[_0x2078f9(0x1f9)][_0x2078f9(0x26b)]();}[_0x5295ce(0x1f3)](){const _0xf602cd=_0x5295ce;this[_0xf602cd(0x210)][_0xf602cd(0x227)](),this[_0xf602cd(0x228)][_0xf602cd(0x21e)]=!0x0;}[_0x5295ce(0x243)](_0x5bda21){const _0x5d0aa3=_0x5295ce;this[_0x5d0aa3(0x27c)][_0x5d0aa3(0x233)](_0x5bda21),this[_0x5d0aa3(0x228)][_0x5d0aa3(0x21e)]=!0x0;}[_0x5295ce(0x276)](_0x4a58c0,_0x52b726,_0x18d620,_0x5971c2){const _0x5293f4=_0x5295ce;this[_0x5293f4(0x27c)][_0x5293f4(0x276)](_0x4a58c0,_0x18d620,_0x5971c2);}[_0x5295ce(0x1fa)](_0x44e3a6){const _0x55b12c=_0x5295ce;this[_0x55b12c(0x27c)][_0x55b12c(0x1fa)](_0x44e3a6),this[_0x55b12c(0x228)][_0x55b12c(0x21e)]=!0x1;}[_0x5295ce(0x236)](_0x3aa2bd){const _0x2f8124=_0x5295ce;this[_0x2f8124(0x24f)](this[_0x2f8124(0x209)],this[_0x2f8124(0x205)],_0x3aa2bd),this[_0x2f8124(0x203)](_0x3aa2bd);}[_0x5295ce(0x203)](_0x27866d){const _0x53fc5a=_0x5295ce,_0x109460=!_0x27866d[_0x53fc5a(0x273)][_0x53fc5a(0x212)]&&_0x27866d[_0x53fc5a(0x273)][_0x53fc5a(0x244)],_0x3cc8f8=_0x27866d[_0x53fc5a(0x1ff)][_0x53fc5a(0x244)],_0x319965=_0x27866d[_0x53fc5a(0x277)][_0x53fc5a(0x244)];this[_0x53fc5a(0x228)][_0x53fc5a(0x26d)]=_0x109460||_0x3cc8f8||_0x319965;}[_0x5295ce(0x224)](){const _0xb483e1=_0x5295ce;this[_0xb483e1(0x231)]({'tag':_0xb483e1(0x226),'attributes':{'class':[bo,_0xb483e1(0x264)]},'children':[{'tag':_0xb483e1(0x226),'attributes':{'class':To},'children':this[_0xb483e1(0x211)]}]});}[_0x5295ce(0x274)](){const _0x55c4c0=_0x5295ce;this[_0x55c4c0(0x228)]['on'](_0x55c4c0(0x279),()=>{const _0x3f48f5=_0x55c4c0;this[_0x3f48f5(0x248)]();});}[_0x5295ce(0x20a)](_0x40095b){const _0x11fe1b=_0x5295ce,_0x112e94=new _0x338a4f(_0x40095b);return _0x112e94[_0x11fe1b(0x266)]({'label':_0x37ce30(_0x40095b,_0x11fe1b(0x229)),'class':Vo+'\x20'+ko,'icon':_0x2d847b,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x112e94;}[_0x5295ce(0x216)](_0x57f09c){const _0x60a526=_0x5295ce;return this[_0x60a526(0x23d)](_0x57f09c,Ao);}[_0x5295ce(0x25b)](_0x413e1e){const _0x383dc8=_0x5295ce,_0xe3fd02=this[_0x383dc8(0x23d)](_0x413e1e,Eo);return this[_0x383dc8(0x234)](_0xe3fd02,_0x413e1e),_0xe3fd02;}[_0x5295ce(0x220)](_0x5cc4f7,_0x3e4827){const _0x2fe1e4=_0x5295ce;return new _0x370ec7(_0x5cc4f7,_0x3e4827,{'onBackToContext':()=>{const _0x1ab4c7=_0x5af7;this[_0x1ab4c7(0x238)](),this[_0x1ab4c7(0x209)][_0x1ab4c7(0x225)]({'target':this[_0x1ab4c7(0x228)][_0x1ab4c7(0x254)],'limiter':this[_0x1ab4c7(0x20b)](),'positions':So});},'onResourceSelected':(_0x373230,_0x34a1cb)=>{const _0x164ffa=_0x5af7;this[_0x164ffa(0x26f)](_0x164ffa(0x1f4),{'source':_0x373230,'resource':_0x34a1cb});},'onLoadSourceResources':_0xe0c609=>{const _0x3a60a1=_0x5af7;this[_0x3a60a1(0x26f)](_0x3a60a1(0x21f),_0xe0c609);},'onBalloonClosed':()=>{const _0x287f4f=_0x5af7;this[_0x287f4f(0x228)][_0x287f4f(0x21e)]=!0x1;},'getLimiterElement':()=>this[_0x2fe1e4(0x20b)](),'getTargetElement':()=>this[_0x2fe1e4(0x228)][_0x2fe1e4(0x254)]});}[_0x5295ce(0x20b)](){const _0x7eb720=_0x5295ce;return this[_0x7eb720(0x254)]?.[_0x7eb720(0x208)]('.'+Ro)||document[_0x7eb720(0x22a)];}[_0x5295ce(0x23d)](_0x10b6c8,_0x2b1559){const _0x448e22=_0x5295ce,_0x2b9631=new _0xe68e74(_0x10b6c8);return _0x2b9631[_0x448e22(0x241)]({'attributes':{'class':_0x2b1559}}),this[_0x448e22(0x249)][_0x448e22(0x200)](_0x2b9631),_0x2b9631;}[_0x5295ce(0x24f)](_0x3806d,_0x139dbf,_0x1302bd){const _0x524710=_0x5295ce;if(_0x3806d[_0x524710(0x232)][_0x524710(0x26b)](),!_0x1302bd[_0x524710(0x273)][_0x524710(0x212)]&&_0x1302bd[_0x524710(0x273)][_0x524710(0x244)]){const _0x58664a=this[_0x524710(0x21b)](_0x139dbf,{'label':_0x37ce30(_0x139dbf,_0x524710(0x24d)),'icon':_0x41a09f});_0x58664a['on'](_0x524710(0x279),()=>{const _0x2f33b3=_0x524710;this[_0x2f33b3(0x26f)](_0x2f33b3(0x27b)),this[_0x2f33b3(0x1f8)]();}),_0x3806d[_0x524710(0x232)][_0x524710(0x200)](_0x58664a);}if(_0x1302bd[_0x524710(0x1ff)][_0x524710(0x244)]){const _0x5c08a2=this[_0x524710(0x21b)](_0x139dbf,{'label':_0x37ce30(_0x139dbf,_0x524710(0x1fc)),'icon':_0x30491c});_0x5c08a2['on'](_0x524710(0x279),()=>{const _0x3610cd=_0x524710;this[_0x3610cd(0x1f8)](),this[_0x3610cd(0x1f3)](),this[_0x3610cd(0x210)][_0x3610cd(0x225)]({'target':this[_0x3610cd(0x228)][_0x3610cd(0x254)],'limiter':this[_0x3610cd(0x20b)](),'positions':So}),this[_0x3610cd(0x1f9)][_0x3610cd(0x237)]();}),_0x3806d[_0x524710(0x232)][_0x524710(0x200)](_0x5c08a2);}if(_0x1302bd[_0x524710(0x277)][_0x524710(0x244)]){const _0x8ce114=new _0x4f054f(_0x139dbf);_0x8ce114[_0x524710(0x266)]({'label':_0x37ce30(_0x139dbf,_0x524710(0x202)),'icon':_0x3337bc,'withText':!0x0,'tooltip':!0x0,'class':vo,'allowMultipleFiles':!0x0}),_0x8ce114['on'](_0x524710(0x22d),(_0x3f4616,_0x30d15c)=>{const _0x232255=_0x524710;this[_0x232255(0x26f)](_0x232255(0x235),_0x30d15c),this[_0x232255(0x1f8)]();}),_0x8ce114[_0x524710(0x25f)]=!0x0,_0x3806d[_0x524710(0x232)][_0x524710(0x200)](_0x8ce114);}for(const _0x23cfee of _0x1302bd[_0x524710(0x253)]){const _0x2ece6a=this[_0x524710(0x21b)](_0x139dbf,{'label':_0x23cfee[_0x524710(0x251)],'icon':_0x23cfee[_0x524710(0x270)]||_0x279a9f,'type':_0x524710(0x252)});_0x3806d[_0x524710(0x232)][_0x524710(0x200)](_0x2ece6a),_0x2ece6a['on'](_0x524710(0x279),()=>{const _0x372a65=_0x524710;this[_0x372a65(0x1f8)](),this[_0x372a65(0x243)](_0x23cfee);});}}[_0x5295ce(0x234)](_0x34bed7,_0x120945){const _0x37dc4f=_0x5295ce;this[_0x37dc4f(0x1f9)]=new _0x1611c8(_0x120945),this[_0x37dc4f(0x1f9)]['on'](_0x37dc4f(0x223),(_0xe6677d,_0x2f27f8)=>{const _0x25f985=_0x37dc4f;this[_0x25f985(0x22e)](_0x2f27f8);}),this[_0x37dc4f(0x1f9)]['on'](_0x37dc4f(0x247),()=>{const _0x56ceb1=_0x37dc4f;this[_0x56ceb1(0x214)](),this[_0x56ceb1(0x238)](),this[_0x56ceb1(0x209)][_0x56ceb1(0x225)]({'target':this[_0x56ceb1(0x228)][_0x56ceb1(0x254)],'limiter':this[_0x56ceb1(0x20b)](),'positions':So});}),this[_0x37dc4f(0x1f9)]['on'](_0x37dc4f(0x206),()=>{const _0x1c46a7=_0x37dc4f;this[_0x1c46a7(0x210)][_0x1c46a7(0x204)]&&this[_0x1c46a7(0x210)][_0x1c46a7(0x225)]({'target':this[_0x1c46a7(0x228)][_0x1c46a7(0x254)],'limiter':this[_0x1c46a7(0x20b)](),'positions':So});}),_0x34bed7[_0x37dc4f(0x232)][_0x37dc4f(0x200)](this[_0x37dc4f(0x1f9)]);}[_0x5295ce(0x21b)](_0x1527d7,_0x3e016f){const _0x460f9b=_0x5295ce,_0x14de27=_0x460f9b(0x252)===_0x3e016f[_0x460f9b(0x221)]?new SourcesBalloonButtonView(_0x1527d7):new _0x338a4f(_0x1527d7);return _0x14de27[_0x460f9b(0x266)]({'label':_0x3e016f[_0x460f9b(0x251)],'icon':_0x3e016f[_0x460f9b(0x270)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':vo}),_0x14de27;}[_0x5295ce(0x1f6)](){const _0xab15c4=_0x5295ce;this[_0xab15c4(0x218)](),this[_0xab15c4(0x27f)]();}[_0x5295ce(0x27f)](){const _0x59bb6a=_0x5295ce;_0x365b23({'emitter':this[_0x59bb6a(0x210)],'contextElements':[this[_0x59bb6a(0x210)][_0x59bb6a(0x254)]],'callback':()=>{const _0xbe37e=_0x59bb6a;this[_0xbe37e(0x214)]();},'activator':()=>this[_0x59bb6a(0x210)][_0x59bb6a(0x204)]});}[_0x5295ce(0x24a)](_0x1eaace){const _0xa2d607=_0x5295ce,_0x61cd05=this[_0xa2d607(0x213)];_0x61cd05[_0xa2d607(0x242)][_0xa2d607(0x21e)]=_0x1eaace,_0x1eaace?_0x61cd05[_0xa2d607(0x219)][_0xa2d607(0x227)]():_0x61cd05[_0xa2d607(0x219)][_0xa2d607(0x23b)]();}[_0x5295ce(0x218)](){const _0x47f8b6=_0x5295ce,{balloonView:_0x5f37e2,buttonView:_0x24e323,hideMethod:_0x3223e1}=this[_0x47f8b6(0x213)];_0x365b23({'emitter':_0x5f37e2,'contextElements':[_0x5f37e2[_0x47f8b6(0x254)],_0x24e323[_0x47f8b6(0x254)]],'callback':()=>{_0x3223e1();},'activator':()=>_0x24e323[_0x47f8b6(0x21e)]&&!this[_0x47f8b6(0x210)][_0x47f8b6(0x204)]&&!this[_0x47f8b6(0x27c)][_0x47f8b6(0x1fe)]()});}[_0x5295ce(0x269)](_0x338e22,_0x5359a0,_0x559eb1=!0x1,_0x3bd3be=!0x1){const _0x4c3659=_0x5295ce,_0x1792ca=_0x4c3659(0x23c)===_0x5359a0||!0x0===_0x338e22[_0x4c3659(0x25c)],_0xf25d74=new _0x2fc5d8(this[_0x4c3659(0x205)],_0x338e22,_0x1792ca,_0x559eb1,_0x3bd3be);return _0x1792ca||_0xf25d74['on'](_0x4c3659(0x21d),()=>{const _0xd2413a=_0x4c3659;this[_0xd2413a(0x26f)](_0xd2413a(0x215),_0xf25d74['id']);}),_0xf25d74;}[_0x5295ce(0x268)](_0x276ca6,_0xe6cc0e){const _0x530b77=_0x5295ce;_0xe6cc0e[_0x530b77(0x200)](_0x276ca6,0x0);}[_0x5295ce(0x27a)](_0x10338c,_0x1fba37){const _0x2349d5=_0x5295ce,_0x5ed8f6=_0x1fba37[_0x2349d5(0x27e)](_0x2927d0=>_0x2927d0['id']===_0x10338c);_0x5ed8f6&&_0x1fba37[_0x2349d5(0x1fb)](_0x5ed8f6);}[_0x5295ce(0x248)](){const _0x1ce86c=_0x5295ce;this[_0x1ce86c(0x228)][_0x1ce86c(0x21e)]?this[_0x1ce86c(0x1f8)]():(this[_0x1ce86c(0x238)](),this[_0x1ce86c(0x209)][_0x1ce86c(0x225)]({'target':this[_0x1ce86c(0x228)][_0x1ce86c(0x254)],'limiter':this[_0x1ce86c(0x20b)](),'positions':So}));}[_0x5295ce(0x22e)](_0x300ab3){const _0x187b61=_0x5295ce;this[_0x187b61(0x1f9)][_0x187b61(0x26b)](),this[_0x187b61(0x214)](),this[_0x187b61(0x26f)](_0x187b61(0x258),_0x300ab3);}}export class SourcesBalloonButtonView extends _0x338a4f{[_0x5295ce(0x26e)];constructor(_0x391c0b){const _0x2dd6df=_0x5295ce;super(_0x391c0b),this[_0x2dd6df(0x266)]({'withText':!0x0,'role':_0x2dd6df(0x1f7)}),this[_0x2dd6df(0x26e)]=this[_0x2dd6df(0x217)](),this[_0x2dd6df(0x241)]({'attributes':{'class':[go]}});}[_0x5295ce(0x20f)](){const _0x2bab17=_0x5295ce;super[_0x2bab17(0x20f)](),this[_0x2bab17(0x256)][_0x2bab17(0x200)](this[_0x2bab17(0x26e)]);}[_0x5295ce(0x217)](){const _0x6df028=_0x5295ce,_0x36713b=new _0x2be7bd();return _0x36713b[_0x6df028(0x232)]=_0x93c803,_0x36713b[_0x6df028(0x241)]({'attributes':{'class':go+_0x6df028(0x25d)}}),_0x36713b;}}function _0x5c01(){const _0x3b2863=['urls','add','defaultPositions','AI_CHAT_CONTEXT_FILE_LABEL','_setAddContextButtonEnabled','isVisible','locale','refreshBalloon','802319zcOnnv','closest','_addContextBalloonPanelView','_createAddContextButtonView','_getLimiterElement','southArrowNorthEast','_conversationContextsChips','663926UxQCIO','render','_urlBalloonPanelView','_currentContextsChips','isHidden','_addContextBalloonConfig','hideUrlBalloonPanel','removeContextItem','_createAddContextBalloonPanelView','_createArrowView','_setupAddContextBalloonClickOutsideHandler','balloonView','3571116JjNyqr','_createBalloonButton','ck-ai-chat-context-controls__url-balloon-panel','removeContextItemChip','isOn','loadSourceResources','_createResourcesBalloonView','type','3830690aatwAQ','submitUrl','_setupTemplate','pin','div','show','addContextButtonView','AI_CHAT_CONTEXT_ADD_CONTEXT','body','isLoading','ck-ai-chat-context-controls__add-context-balloon-panel','done','_handleUrlSubmit','1962wpYxQV','reorganizeChips','setTemplate','content','showSourceResourcesBalloon','_addUrlContent','addFileToContext','setAddContextOptions','focus','showAddContextBalloonPanel','destroy','1200736AVFbWE','hide','conversation','_createBaseBalloonPanel','ck-ai-chat-context-controls','northArrowSouthEast','overflowChips','extendTemplate','buttonView','_showSourceResourcesBalloon','enabled','northArrowSouthWest','clearConversationContextItems','cancel','_handleAddContextButtonClick','bodyCollection','_toggleAddContextBalloon','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-context-controls__add-context-button','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','ck-ai-chat-controls_context_show-more-button','_setBalloonPanelContent','ck-ai-chat-context-chips-wrapper-balloon','label','source','sources','element','updateResourceState','children','current','addUrlToContext','2221656LajaFZ','createCollection','_createUrlBalloonPanelView','isReadOnly','__arrow','clearCurrentContextItems','tooltip','bind','southArrowNorthWest','setContextItemLoading','ck-ai-chat-context-controls__balloon-button','ck-reset_all-excluded','ck-ai-chat-controls-button','set','southArrowNorth','_addContextToCollection','_createContextButton','3lywUrI','clear','288RWsToM','isEnabled','arrowView','fire','icon','setConversationContext','ck-ai-chat-context-controls__show-more-balloon-panel','document','_bindEventHandlers','addContextItem','populateSourceResourceBalloon','files','setContainerElement','execute','_removeContextFromCollection','addDocumentToContext','_resourcesBalloonView','ck-ai-chat','find','_setupUrlBalloonClickOutsideHandler','northArrowSouth','showUrlBalloonPanel','addResourceToContext','ck-ai-chat-context-controls__balloon-button-source','_setupAllBalloonClickOutsideHandlers','menuitem','hideAddContextBalloonPanel','_urlInputView','closeSourceResourceBalloon','remove','AI_CHAT_CONTEXT_URL_LABEL','_overflowManager','isAnyResourceBalloonVisible'];_0x5c01=function(){return _0x3b2863;};return _0x5c01();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ec294=_0x2264;(function(_0x126773,_0x4e5669){const _0x44f30b=_0x2264,_0x1be251=_0x126773();while(!![]){try{const _0x397719=parseInt(_0x44f30b(0xdd))/0x1*(-parseInt(_0x44f30b(0xe0))/0x2)+parseInt(_0x44f30b(0xe5))/0x3+parseInt(_0x44f30b(0xd4))/0x4*(-parseInt(_0x44f30b(0xdc))/0x5)+-parseInt(_0x44f30b(0xeb))/0x6+parseInt(_0x44f30b(0xd8))/0x7*(parseInt(_0x44f30b(0xef))/0x8)+parseInt(_0x44f30b(0xe3))/0x9*(-parseInt(_0x44f30b(0xe2))/0xa)+parseInt(_0x44f30b(0xda))/0xb*(parseInt(_0x44f30b(0xed))/0xc);if(_0x397719===_0x4e5669)break;else _0x1be251['push'](_0x1be251['shift']());}catch(_0x257719){_0x1be251['push'](_0x1be251['shift']());}}}(_0x34cc,0xdc172));import{ButtonView as _0x3c93cf,View as _0x347fa4}from'ckeditor5/src/ui.js';import{IconStop as _0x43d6d5}from'ckeditor5/src/icons.js';function _0x2264(_0x418b28,_0x11b92a){const _0x34cca6=_0x34cc();return _0x2264=function(_0x2264f1,_0x39e0b2){_0x2264f1=_0x2264f1-0xd2;let _0x307c2b=_0x34cca6[_0x2264f1];return _0x307c2b;},_0x2264(_0x418b28,_0x11b92a);}import{getTranslation as _0xdfe5e}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x347fa4{[_0x2ec294(0xe6)];[_0x2ec294(0xe7)];constructor(_0x309f50){const _0x553612=_0x2ec294;super(_0x309f50),this[_0x553612(0xe6)]=this[_0x553612(0xd2)](),this[_0x553612(0xe7)]=this[_0x553612(0xe9)](),this[_0x553612(0xe4)]({'tag':_0x553612(0xdf),'attributes':{'class':['ck',_0x553612(0xea),_0x553612(0xd7)]},'children':[this[_0x553612(0xe7)],this[_0x553612(0xe6)]]});}[_0x2ec294(0xd2)](){const _0xa174aa=_0x2ec294,_0x5ab1bf=new _0x3c93cf(this[_0xa174aa(0xec)]);return _0x5ab1bf[_0xa174aa(0xd6)]({'label':_0xdfe5e(this[_0xa174aa(0xec)],_0xa174aa(0xd3)),'withText':!0x0,'class':_0xa174aa(0xde),'icon':_0x43d6d5}),_0x5ab1bf['on'](_0xa174aa(0xd9),()=>{const _0x1c7c85=_0xa174aa;this[_0x1c7c85(0xd5)](_0x1c7c85(0xe1));}),_0x5ab1bf;}[_0x2ec294(0xe9)](){const _0x4a1fa4=_0x2ec294,_0x3659bf=new _0x347fa4(this[_0x4a1fa4(0xec)]);return _0x3659bf[_0x4a1fa4(0xe4)]({'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xdb)]},'children':[{'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xee)]},'children':[{'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xf0)]}},{'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xf0)]}},{'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xf0)]}}]},{'text':_0xdfe5e(this[_0x4a1fa4(0xec)],_0x4a1fa4(0xe8))}]}),_0x3659bf;}}function _0x34cc(){const _0x4a757b=['1415OSVWdP','67dKcXsq','ai-chat-controls-loader__cancel-button','div','40582gdkNHU','abortPromptStream','250aKoqwc','268119RdrzwP','setTemplate','4539894pCHITD','_cancelButtonView','_loaderView','AI_CHAT_IS_WRITING','_createLoaderView','ck-ai-chat-controls-loader-wrapper','1744782UxIeJV','locale','1644mUdWJC','ck-ai-chat-controls-loader-icon','1888dgkKoQ','ck-ai-chat-controls-loader-icon-dot','_createCancelButtonView','AI_CHAT_STOP_GENERATING','9572zQNIut','fire','set','ck-reset_all','10304TRQDQb','execute','169664HziPUl','ck-ai-chat-controls-loader'];_0x34cc=function(){return _0x4a757b;};return _0x34cc();}
23
+ const _0xab7b0f=_0x31e7;(function(_0x3d70de,_0x1f897f){const _0x3f2884=_0x31e7,_0x5a32b6=_0x3d70de();while(!![]){try{const _0x34fd73=parseInt(_0x3f2884(0x175))/0x1*(-parseInt(_0x3f2884(0x17b))/0x2)+parseInt(_0x3f2884(0x165))/0x3*(-parseInt(_0x3f2884(0x177))/0x4)+parseInt(_0x3f2884(0x15f))/0x5*(-parseInt(_0x3f2884(0x15e))/0x6)+-parseInt(_0x3f2884(0x166))/0x7*(parseInt(_0x3f2884(0x160))/0x8)+-parseInt(_0x3f2884(0x16d))/0x9*(parseInt(_0x3f2884(0x171))/0xa)+parseInt(_0x3f2884(0x167))/0xb+parseInt(_0x3f2884(0x164))/0xc*(parseInt(_0x3f2884(0x16c))/0xd);if(_0x34fd73===_0x1f897f)break;else _0x5a32b6['push'](_0x5a32b6['shift']());}catch(_0x153771){_0x5a32b6['push'](_0x5a32b6['shift']());}}}(_0x1a84,0x4c9cb));function _0x31e7(_0x220fb4,_0x1a9ea0){const _0x1a849b=_0x1a84();return _0x31e7=function(_0x31e78a,_0x5ae45e){_0x31e78a=_0x31e78a-0x15d;let _0x385493=_0x1a849b[_0x31e78a];return _0x385493;},_0x31e7(_0x220fb4,_0x1a9ea0);}import{ButtonView as _0x11571d,View as _0x41b449}from'ckeditor5/src/ui.js';import{IconStop as _0x180439}from'ckeditor5/src/icons.js';import{getTranslation as _0x412048}from'../../../aicore/utils/common-translations.js';function _0x1a84(){const _0x12ca91=['ai-chat-controls-loader__cancel-button','_cancelButtonView','24ZOkSyi','set','execute','24oWWaPj','26640VHKnhL','104kEDqgs','abortPromptStream','fire','AI_CHAT_STOP_GENERATING','383772aSxZJn','449487EWFvqp','240261MVvSqE','4251522VXYmYx','setTemplate','ck-reset_all','div','ck-ai-chat-controls-loader','533LQoDTP','18WVVNkc','ck-ai-chat-controls-loader-icon-dot','_loaderView','locale','1285120ACjRIX','ck-ai-chat-controls-loader-wrapper','ck-ai-chat-controls-loader-icon','AI_CHAT_IS_WRITING','42463gDXHzB','_createLoaderView','4jBtCyN','_createCancelButtonView'];_0x1a84=function(){return _0x12ca91;};return _0x1a84();}export class AIChatControlsLoaderView extends _0x41b449{[_0xab7b0f(0x17a)];[_0xab7b0f(0x16f)];constructor(_0x40a456){const _0x2a46d9=_0xab7b0f;super(_0x40a456),this[_0x2a46d9(0x17a)]=this[_0x2a46d9(0x178)](),this[_0x2a46d9(0x16f)]=this[_0x2a46d9(0x176)](),this[_0x2a46d9(0x168)]({'tag':_0x2a46d9(0x16a),'attributes':{'class':['ck',_0x2a46d9(0x172),_0x2a46d9(0x169)]},'children':[this[_0x2a46d9(0x16f)],this[_0x2a46d9(0x17a)]]});}[_0xab7b0f(0x178)](){const _0x5459d3=_0xab7b0f,_0x365c66=new _0x11571d(this[_0x5459d3(0x170)]);return _0x365c66[_0x5459d3(0x17c)]({'label':_0x412048(this[_0x5459d3(0x170)],_0x5459d3(0x163)),'withText':!0x0,'class':_0x5459d3(0x179),'icon':_0x180439}),_0x365c66['on'](_0x5459d3(0x15d),()=>{const _0x565ede=_0x5459d3;this[_0x565ede(0x162)](_0x565ede(0x161));}),_0x365c66;}[_0xab7b0f(0x176)](){const _0x4f4743=_0xab7b0f,_0x5842b5=new _0x41b449(this[_0x4f4743(0x170)]);return _0x5842b5[_0x4f4743(0x168)]({'tag':_0x4f4743(0x16a),'attributes':{'class':[_0x4f4743(0x16b)]},'children':[{'tag':_0x4f4743(0x16a),'attributes':{'class':[_0x4f4743(0x173)]},'children':[{'tag':_0x4f4743(0x16a),'attributes':{'class':[_0x4f4743(0x16e)]}},{'tag':_0x4f4743(0x16a),'attributes':{'class':[_0x4f4743(0x16e)]}},{'tag':_0x4f4743(0x16a),'attributes':{'class':[_0x4f4743(0x16e)]}}]},{'text':_0x412048(this[_0x4f4743(0x170)],_0x4f4743(0x174))}]}),_0x5842b5;}}