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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  15. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  22. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  26. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  27. package/src/aiballoon/ui/aiballoonview.js +1 -1
  28. package/src/aichat/aichat.js +1 -1
  29. package/src/aichat/aichatcontroller.js +1 -1
  30. package/src/aichat/aichatui.js +1 -1
  31. package/src/aichat/model/aichatcontext.js +1 -1
  32. package/src/aichat/model/aichatconversation.js +1 -1
  33. package/src/aichat/model/aichatinteraction.js +1 -1
  34. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  35. package/src/aichat/ui/aichatfeedview.js +1 -1
  36. package/src/aichat/ui/aichatheaderview.js +1 -1
  37. package/src/aichat/ui/aichatview.js +1 -1
  38. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  58. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  59. package/src/aichat/utils/eventnames.js +1 -1
  60. package/src/aichat/utils/promisequeue.js +1 -1
  61. package/src/aichathistory/aichathistory.js +1 -1
  62. package/src/aichathistory/aichathistorycontroller.js +1 -1
  63. package/src/aichathistory/aichathistoryui.js +1 -1
  64. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  65. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  66. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  67. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  68. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  69. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  70. package/src/aicore/aiconnector.js +1 -1
  71. package/src/aicore/aiediting.js +1 -1
  72. package/src/aicore/model/aicapabilities.js +1 -1
  73. package/src/aicore/model/aiinteraction.js +1 -1
  74. package/src/aicore/model/aimodels.js +1 -1
  75. package/src/aicore/model/aireply.js +1 -1
  76. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  77. package/src/aicore/pipeline/airesponseparser.js +2 -2
  78. package/src/aicore/ui/aidisclaimerview.js +1 -1
  79. package/src/aicore/ui/aiskeleton.js +1 -1
  80. package/src/aicore/ui/aispinner.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  86. package/src/aicore/utils/createresizebutton.js +1 -1
  87. package/src/aicore/utils/documentposition.js +1 -1
  88. package/src/aicore/utils/documentrange.js +1 -1
  89. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  90. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  91. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  92. package/src/aicore/utils/htmlparser.js +1 -1
  93. package/src/aicore/utils/htmlstreamer.js +1 -1
  94. package/src/aicore/utils/scrollmanager.js +1 -1
  95. package/src/aieditorintegration/aieditorintegration.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  97. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  98. package/src/aiquickactions/aiquickactions.js +1 -1
  99. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  100. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  101. package/src/aiquickactions/aiquickactionsui.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  104. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  105. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  106. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  107. package/src/aireviewmode/aireviewmode.js +1 -1
  108. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  109. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  110. package/src/aireviewmode/aireviewmodeui.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  112. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  113. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  114. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  115. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  116. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  117. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  118. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  122. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  123. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  124. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  125. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  126. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  127. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  128. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  129. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  130. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  131. package/src/aitabs/aitabs.js +1 -1
  132. package/src/aitabs/tabs/aitabsview.js +1 -1
  133. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  134. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x253e5a=_0x3eb2;(function(_0xfc5c27,_0x3f972c){const _0x17896d=_0x3eb2,_0x5090e7=_0xfc5c27();while(!![]){try{const _0x5eafb5=-parseInt(_0x17896d(0x1e7))/0x1*(parseInt(_0x17896d(0x1f1))/0x2)+parseInt(_0x17896d(0x1dc))/0x3*(parseInt(_0x17896d(0x1e0))/0x4)+-parseInt(_0x17896d(0x1d7))/0x5*(parseInt(_0x17896d(0x1ea))/0x6)+-parseInt(_0x17896d(0x1d9))/0x7*(-parseInt(_0x17896d(0x1ed))/0x8)+parseInt(_0x17896d(0x1d8))/0x9*(-parseInt(_0x17896d(0x1f5))/0xa)+-parseInt(_0x17896d(0x1ec))/0xb+parseInt(_0x17896d(0x1e5))/0xc*(parseInt(_0x17896d(0x1da))/0xd);if(_0x5eafb5===_0x3f972c)break;else _0x5090e7['push'](_0x5090e7['shift']());}catch(_0x386509){_0x5090e7['push'](_0x5090e7['shift']());}}}(_0x5a73,0x5bf33));import{ButtonView as _0x474b9e,View as _0x136fb6}from'ckeditor5/src/ui.js';import{IconStop as _0x1b7a9b}from'ckeditor5/src/icons.js';function _0x3eb2(_0x4a6a6f,_0x27969d){const _0x5a73e9=_0x5a73();return _0x3eb2=function(_0x3eb2b9,_0x204d37){_0x3eb2b9=_0x3eb2b9-0x1d6;let _0x1aba08=_0x5a73e9[_0x3eb2b9];return _0x1aba08;},_0x3eb2(_0x4a6a6f,_0x27969d);}import{getTranslation as _0x4ddd59}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x136fb6{[_0x253e5a(0x1e1)];[_0x253e5a(0x1e9)];constructor(_0x13b53c){const _0x18098d=_0x253e5a;super(_0x13b53c),this[_0x18098d(0x1e1)]=this[_0x18098d(0x1e8)](),this[_0x18098d(0x1e9)]=this[_0x18098d(0x1d6)](),this[_0x18098d(0x1e3)]({'tag':_0x18098d(0x1eb),'attributes':{'class':['ck',_0x18098d(0x1e2),_0x18098d(0x1f2)]},'children':[this[_0x18098d(0x1e9)],this[_0x18098d(0x1e1)]]});}[_0x253e5a(0x1e8)](){const _0x3b61d6=_0x253e5a,_0x428976=new _0x474b9e(this[_0x3b61d6(0x1de)]);return _0x428976[_0x3b61d6(0x1dd)]({'label':_0x4ddd59(this[_0x3b61d6(0x1de)],_0x3b61d6(0x1df)),'withText':!0x0,'class':_0x3b61d6(0x1ee),'icon':_0x1b7a9b}),_0x428976['on'](_0x3b61d6(0x1f0),()=>{const _0xafe744=_0x3b61d6;this[_0xafe744(0x1ef)](_0xafe744(0x1e4));}),_0x428976;}[_0x253e5a(0x1d6)](){const _0x4a9c84=_0x253e5a,_0x242c16=new _0x136fb6(this[_0x4a9c84(0x1de)]);return _0x242c16[_0x4a9c84(0x1e3)]({'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1f4)]},'children':[{'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1f3)]},'children':[{'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1e6)]}},{'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1e6)]}},{'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1e6)]}}]},{'text':_0x4ddd59(this[_0x4a9c84(0x1de)],_0x4a9c84(0x1db))}]}),_0x242c16;}}function _0x5a73(){const _0x4e70ba=['14601574EwyVHi','AI_CHAT_IS_WRITING','3ywpXxa','set','locale','AI_CHAT_STOP_GENERATING','1722976rUahew','_cancelButtonView','ck-ai-chat-controls-loader-wrapper','setTemplate','abortPromptStream','12oviFMD','ck-ai-chat-controls-loader-icon-dot','5329ghUUDN','_createCancelButtonView','_loaderView','118824GTPZze','div','4513872VWMeyA','243888NXlInZ','ck-ai-button-secondary\x20ck-ai-button-stop-generating','fire','execute','164peQsgq','ck-reset_all','ck-ai-chat-controls-loader-icon','ck-ai-chat-controls-loader','190hQeugV','_createLoaderView','160hRdTfJ','116055qRcpor','126bdlhHV'];_0x5a73=function(){return _0x4e70ba;};return _0x5a73();}
23
+ function _0xa468(_0x567610,_0x24dc53){const _0x3b6ffa=_0x3b6f();return _0xa468=function(_0xa4686e,_0x299379){_0xa4686e=_0xa4686e-0x85;let _0x45cc32=_0x3b6ffa[_0xa4686e];return _0x45cc32;},_0xa468(_0x567610,_0x24dc53);}function _0x3b6f(){const _0x562419=['locale','setTemplate','execute','ck-ai-chat-controls-loader-icon-dot','705sdynYX','ck-ai-chat-controls-loader-icon','ck-ai-chat-controls-loader','359429BFDvYD','6LwUuxE','set','275890lTeDye','AI_CHAT_IS_WRITING','ck-reset_all','_cancelButtonView','_createLoaderView','ck-ai-chat-controls-loader-wrapper','AI_CHAT_STOP_GENERATING','_createCancelButtonView','313840BEREox','439636Tnqcha','abortPromptStream','fire','_loaderView','2965680kxwyLd','13012nvpXSV','2421034hRnMUq','261nTsEWG','div','ck-ai-button-secondary\x20ck-ai-button-stop-generating','56nokmeZ'];_0x3b6f=function(){return _0x562419;};return _0x3b6f();}const _0x592b87=_0xa468;(function(_0x5dc2d7,_0x3faa70){const _0x2f4a11=_0xa468,_0x43db2f=_0x5dc2d7();while(!![]){try{const _0x5f53e0=parseInt(_0x2f4a11(0x9d))/0x1+parseInt(_0x2f4a11(0x9e))/0x2*(-parseInt(_0x2f4a11(0x93))/0x3)+parseInt(_0x2f4a11(0x85))/0x4*(parseInt(_0x2f4a11(0x8f))/0x5)+-parseInt(_0x2f4a11(0xa2))/0x6+parseInt(_0x2f4a11(0x92))/0x7*(-parseInt(_0x2f4a11(0x8a))/0x8)+-parseInt(_0x2f4a11(0x87))/0x9*(-parseInt(_0x2f4a11(0x95))/0xa)+parseInt(_0x2f4a11(0x86))/0xb;if(_0x5f53e0===_0x3faa70)break;else _0x43db2f['push'](_0x43db2f['shift']());}catch(_0x509152){_0x43db2f['push'](_0x43db2f['shift']());}}}(_0x3b6f,0x79e8f));import{ButtonView as _0x2b6518,View as _0x539eb4}from'ckeditor5/src/ui.js';import{IconStop as _0x2117f6}from'ckeditor5/src/icons.js';import{getTranslation as _0x48fce0}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x539eb4{[_0x592b87(0x98)];[_0x592b87(0xa1)];constructor(_0xbf852f){const _0x63dc02=_0x592b87;super(_0xbf852f),this[_0x63dc02(0x98)]=this[_0x63dc02(0x9c)](),this[_0x63dc02(0xa1)]=this[_0x63dc02(0x99)](),this[_0x63dc02(0x8c)]({'tag':_0x63dc02(0x88),'attributes':{'class':['ck',_0x63dc02(0x9a),_0x63dc02(0x97)]},'children':[this[_0x63dc02(0xa1)],this[_0x63dc02(0x98)]]});}[_0x592b87(0x9c)](){const _0x1596c3=_0x592b87,_0x4514cb=new _0x2b6518(this[_0x1596c3(0x8b)]);return _0x4514cb[_0x1596c3(0x94)]({'label':_0x48fce0(this[_0x1596c3(0x8b)],_0x1596c3(0x9b)),'withText':!0x0,'class':_0x1596c3(0x89),'icon':_0x2117f6}),_0x4514cb['on'](_0x1596c3(0x8d),()=>{const _0x1b32d6=_0x1596c3;this[_0x1b32d6(0xa0)](_0x1b32d6(0x9f));}),_0x4514cb;}[_0x592b87(0x99)](){const _0x4f24c1=_0x592b87,_0x18323d=new _0x539eb4(this[_0x4f24c1(0x8b)]);return _0x18323d[_0x4f24c1(0x8c)]({'tag':_0x4f24c1(0x88),'attributes':{'class':[_0x4f24c1(0x91)]},'children':[{'tag':_0x4f24c1(0x88),'attributes':{'class':[_0x4f24c1(0x90)]},'children':[{'tag':_0x4f24c1(0x88),'attributes':{'class':[_0x4f24c1(0x8e)]}},{'tag':_0x4f24c1(0x88),'attributes':{'class':[_0x4f24c1(0x8e)]}},{'tag':_0x4f24c1(0x88),'attributes':{'class':[_0x4f24c1(0x8e)]}}]},{'text':_0x48fce0(this[_0x4f24c1(0x8b)],_0x4f24c1(0x96))}]}),_0x18323d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x40fa94=_0x466d;(function(_0x49fab8,_0x2eec26){const _0x19becf=_0x466d,_0x1cebee=_0x49fab8();while(!![]){try{const _0x85838=-parseInt(_0x19becf(0x12a))/0x1+parseInt(_0x19becf(0x12c))/0x2+parseInt(_0x19becf(0xe3))/0x3*(parseInt(_0x19becf(0xd2))/0x4)+parseInt(_0x19becf(0x107))/0x5+parseInt(_0x19becf(0xd5))/0x6+parseInt(_0x19becf(0x105))/0x7*(-parseInt(_0x19becf(0xe5))/0x8)+-parseInt(_0x19becf(0xef))/0x9;if(_0x85838===_0x2eec26)break;else _0x1cebee['push'](_0x1cebee['shift']());}catch(_0x2e9d6c){_0x1cebee['push'](_0x1cebee['shift']());}}}(_0x4ed7,0xe2ad3));import{Collection as _0x20e192}from'ckeditor5/src/utils.js';import{IconAI as _0x34c174,IconBulb as _0x16fd0e,IconWeb as _0x294338}from'@ckeditor/ckeditor5-icons';function _0x4ed7(){const _0x6da2ee=['reasoning','startsWith','locale','ck-hidden','27QUGDCQ','_modelSelectionDropdown','970336nJiLgU','modelSelectorEnabled','content','_getCapabilityParts','AI_CHAT_CAPABILITIES_NO','_webSearchButton','setModel','webSearch','_createModelSelectionDropdown','setTemplate','1386783xhwVpF','_modelSelectionDropdownItems','style','length','_commandsButton','disableModelSelector','capabilities','buttonView','agent','AI_CHAT_REASONING','execute','ck-ai-chat-controls__model-selection__item-name','source','activeModelId','webSearchActive','_reasoningButton','description','selectModel','isEnabled','toggleReasoning','AI_CHAT_SEARCH_WEB','model','56IxVzTr','add','5682735IzwAmj','isVisible','ck-ai-chat-controls__model-name','bindTemplate','ck-ai-chat-controls__model-selection__item-description','_createModelNameView','setModelList','createCollection','setWebSearch','addMany','AI_CHAT_DISABLE_REASONING','bind','_createWebSearchButton','enableModelSelector','ck-ai-chat-controls-button--commands','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','text','toLowerCase','_modelNameView','name','_createReasoningButton','_createCommandsButton','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','isOn','ck-ai-chat-controls__model-selection__item-capabilities','AI_CHAT_CAPABILITIES_YES','AI_CHAT_COMMANDS','div','AI_CHAT_ENABLE_WEB_SEARCH','toggleWebSearch','button','listenTo','reasoningActive','extendTemplate','ck-ai-chat__prompt-capabilities','1747126YTQNlp','ck-ai-chat-controls__model-selection','3657384gOUjRg','withText','span','AI_CHAT_ENABLE_REASONING','Commands\x20are\x20not\x20implemented\x20yet.','setReasoning','enabled','ck-button__label','24844dJjZub','fire','clear','4673268scBUwW','set','modelSelectorVisible','activeModelName','log','tooltip','menuitemradio','ck-ai-chat-controls-button','label','AI_CHAT_DISABLE_WEB_SEARCH'];_0x4ed7=function(){return _0x6da2ee;};return _0x4ed7();}import{addListToDropdown as _0x492efe,ButtonLabelView as _0x52aa41,ButtonView as _0x3bae8a,createDropdown as _0x913079,IconView as _0x58437a,UIModel as _0x2ab8ec,View as _0x4c3299}from'ckeditor5/src/ui.js';import{getTranslation as _0x3b7772}from'../../../aicore/utils/common-translations.js';function _0x466d(_0x298772,_0x3c6045){const _0x4ed7b9=_0x4ed7();return _0x466d=function(_0x466d8f,_0x553a5c){_0x466d8f=_0x466d8f-0xcb;let _0x43206d=_0x4ed7b9[_0x466d8f];return _0x43206d;},_0x466d(_0x298772,_0x3c6045);}const yo=_0x40fa94(0x129),Uo=_0x40fa94(0xdc),Go=_0x40fa94(0x115),jo=_0x40fa94(0x12b),Yo=_0x40fa94(0xfa),qo=_0x40fa94(0x10b),zo=_0x40fa94(0x11f),Fo='n';export class AIChatPromptCapabilitiesView extends _0x4c3299{[_0x40fa94(0xea)];[_0x40fa94(0xfe)];[_0x40fa94(0xf3)];[_0x40fa94(0xe4)];[_0x40fa94(0xf0)];[_0x40fa94(0x119)];constructor(_0x5667d9){const _0x1bc049=_0x40fa94;super(_0x5667d9),this[_0x1bc049(0xd6)](_0x1bc049(0xfd),!0x1),this[_0x1bc049(0xd6)](_0x1bc049(0x127),!0x1),this[_0x1bc049(0xd6)](_0x1bc049(0xd7),!0x0),this[_0x1bc049(0xd6)](_0x1bc049(0xe6),!0x0),this[_0x1bc049(0xd6)](_0x1bc049(0xfc),null),this[_0x1bc049(0xd6)](_0x1bc049(0xd8),null),this[_0x1bc049(0xe4)]=this[_0x1bc049(0xed)](),this[_0x1bc049(0x119)]=this[_0x1bc049(0x10c)](),this[_0x1bc049(0xea)]=this[_0x1bc049(0x113)](),this[_0x1bc049(0xfe)]=this[_0x1bc049(0x11b)](),this[_0x1bc049(0xf3)]=this[_0x1bc049(0x11c)](),this[_0x1bc049(0xe4)][_0x1bc049(0xf6)][_0x1bc049(0x112)](_0x1bc049(0x108))['to'](this,_0x1bc049(0xd7),_0x28751e=>_0x28751e),this[_0x1bc049(0xe4)][_0x1bc049(0xf6)][_0x1bc049(0x112)](_0x1bc049(0xda))['to'](this,_0x1bc049(0xe6),_0xe7f657=>_0xe7f657?this[_0x1bc049(0xe4)][_0x1bc049(0xf6)][_0x1bc049(0xdd)]:_0x3b7772(this[_0x1bc049(0xe1)],_0x1bc049(0x116))),this[_0x1bc049(0xe4)][_0x1bc049(0x112)](_0x1bc049(0x101))['to'](this,_0x1bc049(0xe6),_0x304a57=>_0x304a57),this[_0x1bc049(0xea)][_0x1bc049(0x112)](_0x1bc049(0x11e))['to'](this,_0x1bc049(0xfd),_0x4ac01d=>_0x4ac01d),this[_0x1bc049(0xea)][_0x1bc049(0x112)](_0x1bc049(0xcb))['to'](this,_0x1bc049(0xd7),_0x40afd5=>!_0x40afd5),this[_0x1bc049(0xea)][_0x1bc049(0x112)](_0x1bc049(0xda))['to'](this,_0x1bc049(0xfd),_0x46f7d3=>_0x3b7772(this[_0x1bc049(0xe1)],_0x46f7d3?_0x1bc049(0xde):_0x1bc049(0x123))),this[_0x1bc049(0xfe)][_0x1bc049(0x112)](_0x1bc049(0x11e))['to'](this,_0x1bc049(0x127),_0x5842d9=>_0x5842d9),this[_0x1bc049(0xfe)][_0x1bc049(0x112)](_0x1bc049(0xcb))['to'](this,_0x1bc049(0xd7),_0x5f0939=>!_0x5f0939),this[_0x1bc049(0xfe)][_0x1bc049(0x112)](_0x1bc049(0xda))['to'](this,_0x1bc049(0x127),_0x72cc3b=>_0x3b7772(this[_0x1bc049(0xe1)],_0x72cc3b?_0x1bc049(0x111):_0x1bc049(0xcd))),this[_0x1bc049(0xee)]({'tag':_0x1bc049(0x122),'attributes':{'class':[yo]},'children':[this[_0x1bc049(0xe4)],this[_0x1bc049(0x119)],this[_0x1bc049(0xea)],this[_0x1bc049(0xfe)],this[_0x1bc049(0xf3)]]}),this[_0x1bc049(0xf0)]=new _0x20e192(),_0x492efe(this[_0x1bc049(0xe4)],this[_0x1bc049(0xf0)]);}[_0x40fa94(0x10d)](_0x21da8a,_0x44c964){const _0x5688da=_0x40fa94;if(this[_0x5688da(0xd6)](_0x5688da(0xd7),!(_0x44c964&&_0x21da8a[_0x5688da(0xf2)]<=0x1)),this[_0x5688da(0xf0)][_0x5688da(0xd4)](),_0x21da8a?.[_0x5688da(0xf2)])for(const _0x281f35 of _0x21da8a){const _0x33fda5=new _0x2ab8ec({'label':_0x281f35[_0x5688da(0x11a)],'withText':!0x0,'role':_0x5688da(0xdb),'id':_0x281f35['id'],'model':_0x281f35});_0x33fda5[_0x5688da(0x112)](_0x5688da(0x11e))['to'](this,_0x5688da(0xfc),_0x23f744=>_0x23f744===_0x281f35['id']),this[_0x5688da(0xf0)][_0x5688da(0x106)]({'type':_0x5688da(0x125),'model':_0x33fda5,'labelView':new Us(this[_0x5688da(0xe1)],_0x281f35)});}}[_0x40fa94(0x10f)](_0x2e4a18){const _0x448237=_0x40fa94;this[_0x448237(0xd6)](_0x448237(0xfd),_0x2e4a18);}[_0x40fa94(0xcf)](_0xd85c84){const _0x10952b=_0x40fa94;this[_0x10952b(0xd6)](_0x10952b(0x127),_0xd85c84);}[_0x40fa94(0xeb)](_0x20ead0){const _0x5e8ee2=_0x40fa94;if(!_0x20ead0)return;this[_0x5e8ee2(0xfc)]=_0x20ead0['id'],this[_0x5e8ee2(0xd8)]=_0x20ead0[_0x5e8ee2(0x11a)]||_0x20ead0['id'],this[_0x5e8ee2(0xe4)][_0x5e8ee2(0xf6)][_0x5e8ee2(0xd6)](_0x5e8ee2(0xdd),_0x20ead0[_0x5e8ee2(0x11a)]),this[_0x5e8ee2(0xe4)][_0x5e8ee2(0xf6)][_0x5e8ee2(0xd6)](_0x5e8ee2(0xda),_0x20ead0[_0x5e8ee2(0x11a)]);const _0x85a768=_0x20ead0[_0x5e8ee2(0xf5)][_0x5e8ee2(0xec)]?.[_0x5e8ee2(0xd0)]??!0x1;this[_0x5e8ee2(0xd6)](_0x5e8ee2(0xfd),!0x1),this[_0x5e8ee2(0xea)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x11e),!0x1),this[_0x5e8ee2(0xea)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x101),_0x85a768),this[_0x5e8ee2(0xea)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x108),_0x85a768);const _0x219608=_0x20ead0[_0x5e8ee2(0xf5)][_0x5e8ee2(0xdf)]?.[_0x5e8ee2(0xd0)]??!0x1;this[_0x5e8ee2(0xd6)](_0x5e8ee2(0x127),!0x1),this[_0x5e8ee2(0xfe)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x11e),!0x1),this[_0x5e8ee2(0xfe)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x101),_0x219608),this[_0x5e8ee2(0xfe)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x108),_0x219608);}[_0x40fa94(0x114)](){const _0xc53ab3=_0x40fa94;this[_0xc53ab3(0xd6)](_0xc53ab3(0xe6),!0x0),this[_0xc53ab3(0xd6)](_0xc53ab3(0xd7),!0x0);}[_0x40fa94(0xf4)](_0x589a3b){const _0x18f5a9=_0x40fa94;this[_0x18f5a9(0xd6)](_0x18f5a9(0xe6),!0x1),_0x589a3b&&this[_0x18f5a9(0xd6)](_0x18f5a9(0xd7),!0x1);}[_0x40fa94(0x113)](){const _0x4be035=_0x40fa94,_0xcbfc39=new _0x3bae8a();return _0xcbfc39[_0x4be035(0xd6)]({'label':_0x3b7772(this[_0x4be035(0xe1)],_0x4be035(0x103)),'icon':_0x294338,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0xcbfc39['on'](_0x4be035(0xf9),()=>{const _0x2c80a7=_0x4be035;this[_0x2c80a7(0xd3)](_0x2c80a7(0x124));}),_0xcbfc39;}[_0x40fa94(0x11b)](){const _0x5ec8a8=_0x40fa94,_0x813eed=new _0x3bae8a();return _0x813eed[_0x5ec8a8(0xd6)]({'label':_0x3b7772(this[_0x5ec8a8(0xe1)],_0x5ec8a8(0xf8)),'icon':_0x16fd0e,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x813eed['on'](_0x5ec8a8(0xf9),()=>{const _0x3bf48e=_0x5ec8a8;this[_0x3bf48e(0xd3)](_0x3bf48e(0x102));}),_0x813eed;}[_0x40fa94(0x11c)](){const _0x3480be=_0x40fa94,_0x4ff296=new _0x3bae8a();return _0x4ff296[_0x3480be(0xd6)]({'label':_0x3b7772(this[_0x3480be(0xe1)],_0x3480be(0x121)),'icon':_0x34c174,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x3b7772(this[_0x3480be(0xe1)],_0x3480be(0x121)),'tooltipPosition':Fo}),_0x4ff296[_0x3480be(0x128)]({'attributes':{'class':[Go]}}),_0x4ff296['on'](_0x3480be(0xf9),()=>{const _0x320d92=_0x3480be;console[_0x320d92(0xd9)](_0x320d92(0xce)),alert(_0x320d92(0xce));}),_0x4ff296;}[_0x40fa94(0xed)](){const _0x2c8c98=_0x40fa94,_0x391a61=_0x913079(this[_0x2c8c98(0xe1)]);return _0x391a61[_0x2c8c98(0xd6)]({'panelPosition':'ne','class':[jo]}),_0x391a61[_0x2c8c98(0xf6)][_0x2c8c98(0xd6)]({'label':_0x3b7772(this[_0x2c8c98(0xe1)],_0x2c8c98(0x11d)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x2c8c98(0x126)](_0x391a61,_0x2c8c98(0xf9),_0x2fbdbc=>{const _0x241c99=_0x2c8c98;this[_0x241c99(0xd3)](_0x241c99(0x100),_0x2fbdbc[_0x241c99(0xfb)][_0x241c99(0x104)]);}),_0x391a61;}[_0x40fa94(0x10c)](){const _0x4480fe=_0x40fa94,_0x3aa7eb=new Jo(this[_0x4480fe(0xe1)]);return _0x3aa7eb[_0x4480fe(0x112)](_0x4480fe(0x117))['to'](this,_0x4480fe(0xd8),_0x2b33d1=>_0x2b33d1??''),_0x3aa7eb[_0x4480fe(0x112)](_0x4480fe(0x108))['to'](this,_0x4480fe(0xd7),this,_0x4480fe(0xd8),(_0x87a588,_0x21f6c2)=>!_0x87a588&&!_0x21f6c2?.[_0x4480fe(0x118)]()[_0x4480fe(0xe0)](_0x4480fe(0xf7))),_0x3aa7eb;}}class Us extends _0x52aa41{constructor(_0x32ab17,_0x276cfe){const _0x28026d=_0x40fa94;super();const _0x2a3632=this[_0x28026d(0x10a)],_0x5e0fde=this[_0x28026d(0x10e)]();this[_0x28026d(0xee)]({'tag':_0x28026d(0x122),'attributes':{'class':['ck',_0x28026d(0xd1)],'style':_0x2a3632['to'](_0x28026d(0xf1)),'id':_0x2a3632['to']('id')},'children':[{'tag':_0x28026d(0x122),'attributes':{'class':[Yo]},'children':[{'text':_0x2a3632['to'](_0x28026d(0x117))}]},{'tag':_0x28026d(0x122),'attributes':{'class':[qo]},'children':[{'tag':_0x28026d(0xcc),'children':[{'text':_0x276cfe[_0x28026d(0xff)]}]}]},{'tag':_0x28026d(0x122),'attributes':{'class':[zo]},'children':_0x5e0fde}]}),_0x5e0fde[_0x28026d(0x110)](this[_0x28026d(0xe8)](_0x32ab17,_0x294338,_0x28026d(0x103),_0x276cfe[_0x28026d(0xf5)][_0x28026d(0xec)]?.[_0x28026d(0xd0)]??!0x1)),_0x5e0fde[_0x28026d(0x110)](this[_0x28026d(0xe8)](_0x32ab17,_0x16fd0e,_0x28026d(0xf8),_0x276cfe[_0x28026d(0xf5)][_0x28026d(0xdf)]?.[_0x28026d(0xd0)]??!0x1));}[_0x40fa94(0xe8)](_0x575fb7,_0x4deff5,_0x91c535,_0x12d71a){const _0x4ba3db=_0x40fa94,_0x2321cd=new _0x58437a();_0x2321cd[_0x4ba3db(0xe7)]=_0x4deff5;const _0x7d130f=new _0x4c3299(_0x575fb7);_0x7d130f[_0x4ba3db(0xee)]({'tag':_0x4ba3db(0xcc),'children':[{'text':_0x3b7772(_0x575fb7,_0x91c535)+':\x20'}]});const _0x501d5b=new _0x4c3299(_0x575fb7);return _0x501d5b[_0x4ba3db(0xee)]({'tag':_0x4ba3db(0xcc),'children':[{'text':_0x3b7772(_0x575fb7,_0x12d71a?_0x4ba3db(0x120):_0x4ba3db(0xe9))}]}),[_0x2321cd,_0x7d130f,_0x501d5b];}}class Jo extends _0x4c3299{constructor(_0x572858){const _0x591d1e=_0x40fa94;super(_0x572858),this[_0x591d1e(0xd6)](_0x591d1e(0x117),void 0x0),this[_0x591d1e(0xd6)](_0x591d1e(0x108),!0x0);const _0x1df650=this[_0x591d1e(0x10a)];this[_0x591d1e(0xee)]({'tag':_0x591d1e(0xcc),'attributes':{'class':['ck',_0x591d1e(0x109),_0x1df650['if'](_0x591d1e(0x108),_0x591d1e(0xe2),_0x34b86c=>!_0x34b86c)]},'children':[{'text':_0x1df650['to'](_0x591d1e(0x117))}]});}}
23
+ function _0x27f9(){const _0x4f7825=['ck-ai-chat__prompt-capabilities','span','createCollection','bindTemplate','style','_webSearchButton','setModelList','buttonView','5855bKqMOP','AI_CHAT_SEARCH_WEB','ck-ai-chat-controls__model-selection__item-name','enableModelSelector','length','execute','_modelNameView','listenTo','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','activeModelId','ck-ai-chat-controls__model-name','ck-hidden','addMany','extendTemplate','1070230kKaYxK','modelSelectorEnabled','868972dsfqqV','menuitemradio','AI_CHAT_DISABLE_REASONING','AI_CHAT_ENABLE_REASONING','isVisible','setTemplate','ck-ai-chat-controls__model-selection__item-description','log','enabled','Commands\x20are\x20not\x20implemented\x20yet.','isEnabled','disableModelSelector','add','AI_CHAT_ENABLE_WEB_SEARCH','activeModelName','label','agent','setReasoning','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls__model-selection__item-capabilities','ck-ai-chat-controls-button','button','AI_CHAT_CAPABILITIES_YES','bind','setWebSearch','name','modelSelectorVisible','AI_CHAT_COMMANDS','2266686yQtPNE','capabilities','AI_CHAT_DISABLE_WEB_SEARCH','ck-ai-chat-controls__model-selection','1155711ENErOD','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','model','_reasoningButton','webSearchActive','reasoning','_createModelNameView','div','description','_createModelSelectionDropdown','AI_CHAT_REASONING','tooltip','selectModel','ck-button__label','6608931FfTxRP','isOn','locale','text','fire','_createReasoningButton','ck-ai-chat-controls-button--commands','_commandsButton','_modelSelectionDropdown','startsWith','_createCommandsButton','2996fKvCqA','withText','setModel','clear','toggleReasoning','content','85880cxcGHb','set','source','webSearch','toLowerCase','_getCapabilityParts','toggleWebSearch','1116CLMOOZ','_modelSelectionDropdownItems','_createWebSearchButton','reasoningActive'];_0x27f9=function(){return _0x4f7825;};return _0x27f9();}function _0x4ab6(_0x3665a2,_0x3c1652){const _0x27f9dc=_0x27f9();return _0x4ab6=function(_0x4ab66d,_0x273366){_0x4ab66d=_0x4ab66d-0x8e;let _0x4c1447=_0x27f9dc[_0x4ab66d];return _0x4c1447;},_0x4ab6(_0x3665a2,_0x3c1652);}const _0x47725e=_0x4ab6;(function(_0x12c3b5,_0x1e9a6f){const _0x5e1937=_0x4ab6,_0x4e3b01=_0x12c3b5();while(!![]){try{const _0x380455=-parseInt(_0x5e1937(0xa1))/0x1+parseInt(_0x5e1937(0xa3))/0x2+-parseInt(_0x5e1937(0xc3))/0x3+parseInt(_0x5e1937(0xdc))/0x4*(parseInt(_0x5e1937(0x93))/0x5)+parseInt(_0x5e1937(0xbf))/0x6+-parseInt(_0x5e1937(0xd1))/0x7+parseInt(_0x5e1937(0xe2))/0x8*(parseInt(_0x5e1937(0xe9))/0x9);if(_0x380455===_0x1e9a6f)break;else _0x4e3b01['push'](_0x4e3b01['shift']());}catch(_0x221986){_0x4e3b01['push'](_0x4e3b01['shift']());}}}(_0x27f9,0x97956));import{Collection as _0x109ffe}from'ckeditor5/src/utils.js';import{IconAI as _0x580713,IconBulb as _0x8339da,IconWeb as _0x1d3e74}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x43b72f,ButtonLabelView as _0xca92b8,ButtonView as _0x221248,createDropdown as _0x1172a2,IconView as _0x3bdda0,UIModel as _0x1cb103,View as _0x2cf267}from'ckeditor5/src/ui.js';import{getTranslation as _0x379990}from'../../../aicore/utils/common-translations.js';const Ho=_0x47725e(0xed),Vo=_0x47725e(0xb7),Mo=_0x47725e(0xd7),Lo=_0x47725e(0xc2),Do=_0x47725e(0x95),Wo=_0x47725e(0xa9),yo=_0x47725e(0xb6),Go='n';export class AIChatPromptCapabilitiesView extends _0x2cf267{[_0x47725e(0x90)];[_0x47725e(0xc6)];[_0x47725e(0xd8)];[_0x47725e(0xd9)];[_0x47725e(0xea)];[_0x47725e(0x99)];constructor(_0x1989b1){const _0x15f8d3=_0x47725e;super(_0x1989b1),this[_0x15f8d3(0xe3)](_0x15f8d3(0xc7),!0x1),this[_0x15f8d3(0xe3)](_0x15f8d3(0xec),!0x1),this[_0x15f8d3(0xe3)](_0x15f8d3(0xbd),!0x0),this[_0x15f8d3(0xe3)](_0x15f8d3(0xa2),!0x0),this[_0x15f8d3(0xe3)](_0x15f8d3(0x9c),null),this[_0x15f8d3(0xe3)](_0x15f8d3(0xb1),null),this[_0x15f8d3(0xd9)]=this[_0x15f8d3(0xcc)](),this[_0x15f8d3(0x99)]=this[_0x15f8d3(0xc9)](),this[_0x15f8d3(0x90)]=this[_0x15f8d3(0xeb)](),this[_0x15f8d3(0xc6)]=this[_0x15f8d3(0xd6)](),this[_0x15f8d3(0xd8)]=this[_0x15f8d3(0xdb)](),this[_0x15f8d3(0xd9)][_0x15f8d3(0x92)][_0x15f8d3(0xba)](_0x15f8d3(0xa7))['to'](this,_0x15f8d3(0xbd),_0x1b2b96=>_0x1b2b96),this[_0x15f8d3(0xd9)][_0x15f8d3(0x92)][_0x15f8d3(0xba)](_0x15f8d3(0xce))['to'](this,_0x15f8d3(0xa2),_0x5274d3=>_0x5274d3?this[_0x15f8d3(0xd9)][_0x15f8d3(0x92)][_0x15f8d3(0xb2)]:_0x379990(this[_0x15f8d3(0xd3)],_0x15f8d3(0x9b))),this[_0x15f8d3(0xd9)][_0x15f8d3(0xba)](_0x15f8d3(0xad))['to'](this,_0x15f8d3(0xa2),_0x390bb8=>_0x390bb8),this[_0x15f8d3(0x90)][_0x15f8d3(0xba)](_0x15f8d3(0xd2))['to'](this,_0x15f8d3(0xc7),_0x4fbd41=>_0x4fbd41),this[_0x15f8d3(0x90)][_0x15f8d3(0xba)](_0x15f8d3(0xdd))['to'](this,_0x15f8d3(0xbd),_0x37dcf2=>!_0x37dcf2),this[_0x15f8d3(0x90)][_0x15f8d3(0xba)](_0x15f8d3(0xce))['to'](this,_0x15f8d3(0xc7),_0x3c9c8d=>_0x379990(this[_0x15f8d3(0xd3)],_0x3c9c8d?_0x15f8d3(0xc1):_0x15f8d3(0xb0))),this[_0x15f8d3(0xc6)][_0x15f8d3(0xba)](_0x15f8d3(0xd2))['to'](this,_0x15f8d3(0xec),_0x42ab14=>_0x42ab14),this[_0x15f8d3(0xc6)][_0x15f8d3(0xba)](_0x15f8d3(0xdd))['to'](this,_0x15f8d3(0xbd),_0xd323b0=>!_0xd323b0),this[_0x15f8d3(0xc6)][_0x15f8d3(0xba)](_0x15f8d3(0xce))['to'](this,_0x15f8d3(0xec),_0x2a4b8f=>_0x379990(this[_0x15f8d3(0xd3)],_0x2a4b8f?_0x15f8d3(0xa5):_0x15f8d3(0xa6))),this[_0x15f8d3(0xa8)]({'tag':_0x15f8d3(0xca),'attributes':{'class':[Ho]},'children':[this[_0x15f8d3(0xd9)],this[_0x15f8d3(0x99)],this[_0x15f8d3(0x90)],this[_0x15f8d3(0xc6)],this[_0x15f8d3(0xd8)]]}),this[_0x15f8d3(0xea)]=new _0x109ffe(),_0x43b72f(this[_0x15f8d3(0xd9)],this[_0x15f8d3(0xea)]);}[_0x47725e(0x91)](_0xf30b64,_0xe33176){const _0x34360d=_0x47725e;if(this[_0x34360d(0xe3)](_0x34360d(0xbd),!(_0xe33176&&_0xf30b64[_0x34360d(0x97)]<=0x1)),this[_0x34360d(0xea)][_0x34360d(0xdf)](),_0xf30b64?.[_0x34360d(0x97)])for(const _0x2e5b55 of _0xf30b64){const _0x1dcdaa=new _0x1cb103({'label':_0x2e5b55[_0x34360d(0xbc)],'withText':!0x0,'role':_0x34360d(0xa4),'id':_0x2e5b55['id'],'model':_0x2e5b55});_0x1dcdaa[_0x34360d(0xba)](_0x34360d(0xd2))['to'](this,_0x34360d(0x9c),_0x30925e=>_0x30925e===_0x2e5b55['id']),this[_0x34360d(0xea)][_0x34360d(0xaf)]({'type':_0x34360d(0xb8),'model':_0x1dcdaa,'labelView':new zs(this[_0x34360d(0xd3)],_0x2e5b55)});}}[_0x47725e(0xbb)](_0x43f41d){const _0x40b65e=_0x47725e;this[_0x40b65e(0xe3)](_0x40b65e(0xc7),_0x43f41d);}[_0x47725e(0xb4)](_0x2535b6){const _0x19e502=_0x47725e;this[_0x19e502(0xe3)](_0x19e502(0xec),_0x2535b6);}[_0x47725e(0xde)](_0x32ecd8){const _0x1ca5ca=_0x47725e;if(!_0x32ecd8)return;this[_0x1ca5ca(0x9c)]=_0x32ecd8['id'],this[_0x1ca5ca(0xb1)]=_0x32ecd8[_0x1ca5ca(0xbc)]||_0x32ecd8['id'],this[_0x1ca5ca(0xd9)][_0x1ca5ca(0x92)][_0x1ca5ca(0xe3)](_0x1ca5ca(0xb2),_0x32ecd8[_0x1ca5ca(0xbc)]),this[_0x1ca5ca(0xd9)][_0x1ca5ca(0x92)][_0x1ca5ca(0xe3)](_0x1ca5ca(0xce),_0x32ecd8[_0x1ca5ca(0xbc)]);const _0x41d646=_0x32ecd8[_0x1ca5ca(0xc0)][_0x1ca5ca(0xe5)]?.[_0x1ca5ca(0xab)]??!0x1;this[_0x1ca5ca(0xe3)](_0x1ca5ca(0xc7),!0x1),this[_0x1ca5ca(0x90)][_0x1ca5ca(0xe3)](_0x1ca5ca(0xd2),!0x1),this[_0x1ca5ca(0x90)][_0x1ca5ca(0xe3)](_0x1ca5ca(0xad),_0x41d646),this[_0x1ca5ca(0x90)][_0x1ca5ca(0xe3)](_0x1ca5ca(0xa7),_0x41d646);const _0x2ab760=_0x32ecd8[_0x1ca5ca(0xc0)][_0x1ca5ca(0xc8)]?.[_0x1ca5ca(0xab)]??!0x1;this[_0x1ca5ca(0xe3)](_0x1ca5ca(0xec),!0x1),this[_0x1ca5ca(0xc6)][_0x1ca5ca(0xe3)](_0x1ca5ca(0xd2),!0x1),this[_0x1ca5ca(0xc6)][_0x1ca5ca(0xe3)](_0x1ca5ca(0xad),_0x2ab760),this[_0x1ca5ca(0xc6)][_0x1ca5ca(0xe3)](_0x1ca5ca(0xa7),_0x2ab760);}[_0x47725e(0x96)](){const _0x4aef40=_0x47725e;this[_0x4aef40(0xe3)](_0x4aef40(0xa2),!0x0),this[_0x4aef40(0xe3)](_0x4aef40(0xbd),!0x0);}[_0x47725e(0xae)](_0x2d417b){const _0x48ea58=_0x47725e;this[_0x48ea58(0xe3)](_0x48ea58(0xa2),!0x1),_0x2d417b&&this[_0x48ea58(0xe3)](_0x48ea58(0xbd),!0x1);}[_0x47725e(0xeb)](){const _0x3b5340=_0x47725e,_0x225226=new _0x221248();return _0x225226[_0x3b5340(0xe3)]({'label':_0x379990(this[_0x3b5340(0xd3)],_0x3b5340(0x94)),'icon':_0x1d3e74,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x225226['on'](_0x3b5340(0x98),()=>{const _0x34e7bb=_0x3b5340;this[_0x34e7bb(0xd5)](_0x34e7bb(0xe8));}),_0x225226;}[_0x47725e(0xd6)](){const _0x5d9582=_0x47725e,_0x5b6773=new _0x221248();return _0x5b6773[_0x5d9582(0xe3)]({'label':_0x379990(this[_0x5d9582(0xd3)],_0x5d9582(0xcd)),'icon':_0x8339da,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x5b6773['on'](_0x5d9582(0x98),()=>{const _0x6ffba6=_0x5d9582;this[_0x6ffba6(0xd5)](_0x6ffba6(0xe0));}),_0x5b6773;}[_0x47725e(0xdb)](){const _0x14635f=_0x47725e,_0x5647e4=new _0x221248();return _0x5647e4[_0x14635f(0xe3)]({'label':_0x379990(this[_0x14635f(0xd3)],_0x14635f(0xbe)),'icon':_0x580713,'withText':!0x0,'class':Vo,'isToggleable':!0x0,'tooltip':_0x379990(this[_0x14635f(0xd3)],_0x14635f(0xbe)),'tooltipPosition':Go}),_0x5647e4[_0x14635f(0xa0)]({'attributes':{'class':[Mo]}}),_0x5647e4['on'](_0x14635f(0x98),()=>{const _0x3e1afd=_0x14635f;console[_0x3e1afd(0xaa)](_0x3e1afd(0xac)),alert(_0x3e1afd(0xac));}),_0x5647e4;}[_0x47725e(0xcc)](){const _0x32b5e1=_0x47725e,_0x283656=_0x1172a2(this[_0x32b5e1(0xd3)]);return _0x283656[_0x32b5e1(0xe3)]({'panelPosition':'ne','class':[Lo]}),_0x283656[_0x32b5e1(0x92)][_0x32b5e1(0xe3)]({'label':_0x379990(this[_0x32b5e1(0xd3)],_0x32b5e1(0xc4)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Go}),this[_0x32b5e1(0x9a)](_0x283656,_0x32b5e1(0x98),_0x1a6d55=>{const _0x1570ae=_0x32b5e1;this[_0x1570ae(0xd5)](_0x1570ae(0xcf),_0x1a6d55[_0x1570ae(0xe4)][_0x1570ae(0xc5)]);}),_0x283656;}[_0x47725e(0xc9)](){const _0x1ec085=_0x47725e,_0x4caed0=new jo(this[_0x1ec085(0xd3)]);return _0x4caed0[_0x1ec085(0xba)](_0x1ec085(0xd4))['to'](this,_0x1ec085(0xb1),_0x50a6e7=>_0x50a6e7??''),_0x4caed0[_0x1ec085(0xba)](_0x1ec085(0xa7))['to'](this,_0x1ec085(0xbd),this,_0x1ec085(0xb1),(_0x3bca74,_0x1ccdff)=>!_0x3bca74&&!_0x1ccdff?.[_0x1ec085(0xe6)]()[_0x1ec085(0xda)](_0x1ec085(0xb3))),_0x4caed0;}}class zs extends _0xca92b8{constructor(_0x40b9e1,_0x38b04d){const _0x181b40=_0x47725e;super();const _0x325ecf=this[_0x181b40(0x8e)],_0x16041d=this[_0x181b40(0xef)]();this[_0x181b40(0xa8)]({'tag':_0x181b40(0xca),'attributes':{'class':['ck',_0x181b40(0xd0)],'style':_0x325ecf['to'](_0x181b40(0x8f)),'id':_0x325ecf['to']('id')},'children':[{'tag':_0x181b40(0xca),'attributes':{'class':[Do]},'children':[{'text':_0x325ecf['to'](_0x181b40(0xd4))}]},{'tag':_0x181b40(0xca),'attributes':{'class':[Wo]},'children':[{'tag':_0x181b40(0xee),'children':[{'text':_0x38b04d[_0x181b40(0xcb)]}]}]},{'tag':_0x181b40(0xca),'attributes':{'class':[yo]},'children':_0x16041d}]}),_0x16041d[_0x181b40(0x9f)](this[_0x181b40(0xe7)](_0x40b9e1,_0x1d3e74,_0x181b40(0x94),_0x38b04d[_0x181b40(0xc0)][_0x181b40(0xe5)]?.[_0x181b40(0xab)]??!0x1)),_0x16041d[_0x181b40(0x9f)](this[_0x181b40(0xe7)](_0x40b9e1,_0x8339da,_0x181b40(0xcd),_0x38b04d[_0x181b40(0xc0)][_0x181b40(0xc8)]?.[_0x181b40(0xab)]??!0x1));}[_0x47725e(0xe7)](_0x1a30eb,_0x664ff2,_0x57bfce,_0x1db93c){const _0x2eae1a=_0x47725e,_0x5e1e3a=new _0x3bdda0();_0x5e1e3a[_0x2eae1a(0xe1)]=_0x664ff2;const _0x542af9=new _0x2cf267(_0x1a30eb);_0x542af9[_0x2eae1a(0xa8)]({'tag':_0x2eae1a(0xee),'children':[{'text':_0x379990(_0x1a30eb,_0x57bfce)+':\x20'}]});const _0x5ea458=new _0x2cf267(_0x1a30eb);return _0x5ea458[_0x2eae1a(0xa8)]({'tag':_0x2eae1a(0xee),'children':[{'text':_0x379990(_0x1a30eb,_0x1db93c?_0x2eae1a(0xb9):_0x2eae1a(0xb5))}]}),[_0x5e1e3a,_0x542af9,_0x5ea458];}}class jo extends _0x2cf267{constructor(_0x353255){const _0x50ef08=_0x47725e;super(_0x353255),this[_0x50ef08(0xe3)](_0x50ef08(0xd4),void 0x0),this[_0x50ef08(0xe3)](_0x50ef08(0xa7),!0x0);const _0xfe06b0=this[_0x50ef08(0x8e)];this[_0x50ef08(0xa8)]({'tag':_0x50ef08(0xee),'attributes':{'class':['ck',_0x50ef08(0x9d),_0xfe06b0['if'](_0x50ef08(0xa7),_0x50ef08(0x9e),_0x143bdd=>!_0x143bdd)]},'children':[{'text':_0xfe06b0['to'](_0x50ef08(0xd4))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5bf497=_0x2cbb;function _0x4ccc(){const _0x3cfc99=['374lmpTke','8dIEwNQ','isUploadInProgress','add','minRows','target','3295gVEdEi','update','destroy','submit','focusableChildren','left','rtl','uiLanguageDirection','_queryViewResizeObserver','placeholder','submitButtonView','enter','MAX_ROWS','fieldView','setIsUploadInProgress','3431043LnKqez','isEmpty','2845533puPhEN','locale','requestAnimationFrame','excludeScrollbarsAndBorders','element','ck-ai-chat__prompt-submit-button','488pdCDLL','calc(','2875974mLvrLv','fire','render','value','style','_setUpAddContextButtonPositioning','set','_addContextButtonView','3317PnyUwT','reset','sendUserMessage','isEnabled','bind','3778137vUZSlT','errorText','queryView','MIN_ROWS','trim','px\x20-\x20var(--ck-spacing-tiny))','extendTemplate','hasError','AI_CHAT_LABEL_SUBMIT','window','ck-ai-chat__prompt-input','fieldWrapperChildren','_createSubmitButton','right','width','16189360bgTXmF','execute','keystrokes','maxRows','AI_CHAT_PROMPT_EMPTY_ERROR','setPlaceholderText'];_0x4ccc=function(){return _0x3cfc99;};return _0x4ccc();}function _0x2cbb(_0x8e85f2,_0x43e484){const _0x4cccf9=_0x4ccc();return _0x2cbb=function(_0x2cbb17,_0x53995f){_0x2cbb17=_0x2cbb17-0x145;let _0x284282=_0x4cccf9[_0x2cbb17];return _0x284282;},_0x2cbb(_0x8e85f2,_0x43e484);}(function(_0x57482b,_0x22c283){const _0x4ba31d=_0x2cbb,_0x196a4f=_0x57482b();while(!![]){try{const _0x27880b=-parseInt(_0x4ba31d(0x16d))/0x1*(parseInt(_0x4ba31d(0x146))/0x2)+-parseInt(_0x4ba31d(0x15d))/0x3+parseInt(_0x4ba31d(0x163))/0x4*(-parseInt(_0x4ba31d(0x14c))/0x5)+parseInt(_0x4ba31d(0x165))/0x6+parseInt(_0x4ba31d(0x15b))/0x7+-parseInt(_0x4ba31d(0x147))/0x8*(parseInt(_0x4ba31d(0x172))/0x9)+parseInt(_0x4ba31d(0x181))/0xa;if(_0x27880b===_0x22c283)break;else _0x196a4f['push'](_0x196a4f['shift']());}catch(_0x4fc523){_0x196a4f['push'](_0x196a4f['shift']());}}}(_0x4ccc,0x7ed09));import{IconSubmit as _0x520e82}from'ckeditor5/src/icons.js';import{ButtonView as _0x382d99,AutocompleteView as _0x96fa83,createLabeledTextarea as _0x5e046a}from'ckeditor5/src/ui.js';import{global as _0x122af6,isVisible as _0x156477,Rect as _0x12727d,ResizeObserver as _0x2aaca3}from'ckeditor5/src/utils.js';import{getTranslation as _0x3de0fc}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x3ae167}from'./aichatpromptsuggestionslistview.js';import{escape as _0xd018c0}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x96fa83{[_0x5bf497(0x156)];static [_0x5bf497(0x175)]=0x1;static [_0x5bf497(0x158)]=0xc;[_0x5bf497(0x16c)];[_0x5bf497(0x154)];constructor(_0x4b0d34,_0x45d5db){const _0x1dc6b7=_0x5bf497;super(_0x4b0d34,{'queryView':{'label':'','creator':_0x5e046a,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x3ae167(_0x4b0d34),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x1dc6b7(0x16b)](_0x1dc6b7(0x15c),!0x0),this[_0x1dc6b7(0x16b)](_0x1dc6b7(0x148),!0x1),this[_0x1dc6b7(0x16c)]=_0x45d5db,this[_0x1dc6b7(0x154)]=null,this[_0x1dc6b7(0x174)][_0x1dc6b7(0x159)][_0x1dc6b7(0x14a)]=AIChatPromptInputView[_0x1dc6b7(0x175)],this[_0x1dc6b7(0x174)][_0x1dc6b7(0x159)][_0x1dc6b7(0x184)]=AIChatPromptInputView[_0x1dc6b7(0x158)],this[_0x1dc6b7(0x174)][_0x1dc6b7(0x17d)][_0x1dc6b7(0x149)](this[_0x1dc6b7(0x16c)]),this[_0x1dc6b7(0x16a)](),this[_0x1dc6b7(0x178)]({'attributes':{'class':['ck',_0x1dc6b7(0x17c)]}}),this[_0x1dc6b7(0x156)]=this[_0x1dc6b7(0x17e)](),this[_0x1dc6b7(0x156)][_0x1dc6b7(0x171)](_0x1dc6b7(0x170))['to'](this,_0x1dc6b7(0x15c),this,_0x1dc6b7(0x148),(_0x3a7104,_0x5471d8)=>!_0x3a7104&&!_0x5471d8),this[_0x1dc6b7(0x150)][_0x1dc6b7(0x149)](this[_0x1dc6b7(0x156)]);}[_0x5bf497(0x167)](){const _0x59d26f=_0x5bf497;super[_0x59d26f(0x167)](),this[_0x59d26f(0x174)][_0x59d26f(0x17d)][_0x59d26f(0x149)](this[_0x59d26f(0x156)]),this[_0x59d26f(0x183)][_0x59d26f(0x16b)](_0x59d26f(0x157),(_0x281c76,_0x53bda7)=>{const _0x577b71=_0x59d26f;this[_0x577b71(0x148)]||this[_0x577b71(0x15c)]||_0x281c76[_0x577b71(0x14b)]==this[_0x577b71(0x174)][_0x577b71(0x159)][_0x577b71(0x161)]&&(this[_0x577b71(0x14f)](),_0x53bda7());}),this[_0x59d26f(0x174)][_0x59d26f(0x159)]['on'](_0x59d26f(0x14d),()=>{const _0x4857e6=_0x59d26f;this[_0x4857e6(0x15c)]=''===this[_0x4857e6(0x174)][_0x4857e6(0x159)][_0x4857e6(0x161)][_0x4857e6(0x168)]?.[_0x4857e6(0x176)]();});}[_0x5bf497(0x14e)](){const _0x2b42dd=_0x5bf497;super[_0x2b42dd(0x14e)](),this[_0x2b42dd(0x154)]&&this[_0x2b42dd(0x154)][_0x2b42dd(0x14e)]();}[_0x5bf497(0x14f)](){const _0x2b97f3=_0x5bf497,_0x2b3c7f=this[_0x2b97f3(0x174)][_0x2b97f3(0x159)][_0x2b97f3(0x161)][_0x2b97f3(0x168)]?.[_0x2b97f3(0x176)]();if(!_0x2b3c7f)return this[_0x2b97f3(0x174)][_0x2b97f3(0x173)]=_0x3de0fc(this[_0x2b97f3(0x15e)],_0x2b97f3(0x185)),void(this[_0x2b97f3(0x174)][_0x2b97f3(0x159)][_0x2b97f3(0x179)]=!0x0);this[_0x2b97f3(0x174)][_0x2b97f3(0x159)][_0x2b97f3(0x179)]=!0x1;const _0x1154df=_0xd018c0(_0x2b3c7f);this[_0x2b97f3(0x166)](_0x2b97f3(0x16f),_0x1154df),this[_0x2b97f3(0x174)][_0x2b97f3(0x159)][_0x2b97f3(0x16e)]();}[_0x5bf497(0x145)](_0x47186b){const _0x17e933=_0x5bf497;this[_0x17e933(0x174)][_0x17e933(0x159)][_0x17e933(0x16b)](_0x17e933(0x155),_0x47186b);}[_0x5bf497(0x17e)](){const _0x2536b8=_0x5bf497,_0x14b2e6=new _0x382d99(this[_0x2536b8(0x15e)]);return _0x14b2e6[_0x2536b8(0x16b)]({'icon':_0x520e82,'label':_0x3de0fc(this[_0x2536b8(0x15e)],_0x2536b8(0x17a)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2536b8(0x162),'isEnabled':!0x1}),_0x14b2e6['on'](_0x2536b8(0x182),()=>{const _0x1a4183=_0x2536b8;this[_0x1a4183(0x14f)]();}),_0x14b2e6;}[_0x5bf497(0x15a)](_0x6efc33){const _0x208151=_0x5bf497;this[_0x208151(0x148)]=_0x6efc33;}[_0x5bf497(0x16a)](){const _0xf411fe=_0x5bf497,_0x27930b=this[_0xf411fe(0x15e)],_0x1363ea=()=>{const _0x46aedd=_0xf411fe;_0x122af6[_0x46aedd(0x17b)][_0x46aedd(0x15f)](()=>{const _0x11be10=_0x46aedd;if(_0x156477(this[_0x11be10(0x161)])){const _0x3fee49=new _0x12727d(this[_0x11be10(0x174)][_0x11be10(0x159)][_0x11be10(0x161)]),_0x5f5a7a=new _0x12727d(this[_0x11be10(0x16c)][_0x11be10(0x161)]),_0x2fcd50=_0x3fee49[_0x11be10(0x180)],_0x8bc40e=_0x11be10(0x152)===_0x27930b[_0x11be10(0x153)]?_0x11be10(0x17f):_0x11be10(0x151);_0x3fee49[_0x11be10(0x160)]();const _0x26a4b8=_0x2fcd50-_0x3fee49[_0x11be10(0x180)]+0x1;this[_0x11be10(0x16c)][_0x11be10(0x161)][_0x11be10(0x169)][_0x8bc40e]=_0x11be10(0x164)+(_0x2fcd50-_0x5f5a7a[_0x11be10(0x180)]-_0x26a4b8)+_0x11be10(0x177);}});};this[_0xf411fe(0x174)][_0xf411fe(0x159)]['on'](_0xf411fe(0x14d),_0x1363ea),this['on'](_0xf411fe(0x167),()=>{const _0x567eb2=_0xf411fe;_0x1363ea(),this[_0x567eb2(0x154)]=new _0x2aaca3(this[_0x567eb2(0x174)][_0x567eb2(0x159)][_0x567eb2(0x161)],()=>{_0x1363ea();});});}}
23
+ const _0x5df1a2=_0x5535;(function(_0x1e1f38,_0x765448){const _0x276cc0=_0x5535,_0x30e87e=_0x1e1f38();while(!![]){try{const _0x5dd268=parseInt(_0x276cc0(0xee))/0x1+-parseInt(_0x276cc0(0xd3))/0x2+parseInt(_0x276cc0(0xe8))/0x3*(-parseInt(_0x276cc0(0xd1))/0x4)+parseInt(_0x276cc0(0xc9))/0x5+parseInt(_0x276cc0(0xc1))/0x6*(-parseInt(_0x276cc0(0xc0))/0x7)+-parseInt(_0x276cc0(0xc2))/0x8+parseInt(_0x276cc0(0xe2))/0x9;if(_0x5dd268===_0x765448)break;else _0x30e87e['push'](_0x30e87e['shift']());}catch(_0x691ea3){_0x30e87e['push'](_0x30e87e['shift']());}}}(_0x3ad0,0x85524));function _0x3ad0(){const _0x783b3e=['maxRows','fire','destroy','requestAnimationFrame','target','sendUserMessage','2072xQIfLb','4620tsytlZ','4439232LmBrMF','isEmpty','execute','enter','focusableChildren','uiLanguageDirection','_addContextButtonView','88860kHTGAo','AI_CHAT_PROMPT_EMPTY_ERROR','setIsUploadInProgress','submit','submitButtonView','set','trim','bind','668068hFnMEj','fieldView','1152076nOjRYI','reset','fieldWrapperChildren','AI_CHAT_LABEL_SUBMIT','left','update','queryView','locale','rtl','_setUpAddContextButtonPositioning','setPlaceholderText','isEnabled','ck-ai-chat__prompt-submit-button','style','keystrokes','19262853IPwzYP','MAX_ROWS','value','extendTemplate','calc(','px\x20-\x20var(--ck-spacing-tiny))','6qviLKy','isUploadInProgress','window','MIN_ROWS','element','minRows','80891PSEyAT','_createSubmitButton','add','excludeScrollbarsAndBorders','placeholder','width','right','_queryViewResizeObserver','hasError','ck-ai-chat__prompt-input','errorText','render'];_0x3ad0=function(){return _0x783b3e;};return _0x3ad0();}import{IconSubmit as _0x7f8911}from'ckeditor5/src/icons.js';import{ButtonView as _0x3c87b6,AutocompleteView as _0x2d1d5c,createLabeledTextarea as _0x3f270c}from'ckeditor5/src/ui.js';import{global as _0x24d469,isVisible as _0x31bb13,Rect as _0x1a1d3a,ResizeObserver as _0x30802b}from'ckeditor5/src/utils.js';import{getTranslation as _0x486bb3}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x3e26d1}from'./aichatpromptsuggestionslistview.js';import{escape as _0x309e8d}from'es-toolkit/compat';function _0x5535(_0x412995,_0x566df2){const _0x3ad0b7=_0x3ad0();return _0x5535=function(_0x55351e,_0x6c4de6){_0x55351e=_0x55351e-0xbb;let _0x497b1e=_0x3ad0b7[_0x55351e];return _0x497b1e;},_0x5535(_0x412995,_0x566df2);}export class AIChatPromptInputView extends _0x2d1d5c{[_0x5df1a2(0xcd)];static [_0x5df1a2(0xeb)]=0x1;static [_0x5df1a2(0xe3)]=0xc;[_0x5df1a2(0xc8)];[_0x5df1a2(0xf5)];constructor(_0x14dde4,_0x15de32){const _0x279741=_0x5df1a2;super(_0x14dde4,{'queryView':{'label':'','creator':_0x3f270c,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x3e26d1(_0x14dde4),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x279741(0xce)](_0x279741(0xc3),!0x0),this[_0x279741(0xce)](_0x279741(0xe9),!0x1),this[_0x279741(0xc8)]=_0x15de32,this[_0x279741(0xf5)]=null,this[_0x279741(0xd9)][_0x279741(0xd2)][_0x279741(0xed)]=AIChatPromptInputView[_0x279741(0xeb)],this[_0x279741(0xd9)][_0x279741(0xd2)][_0x279741(0xfa)]=AIChatPromptInputView[_0x279741(0xe3)],this[_0x279741(0xd9)][_0x279741(0xd5)][_0x279741(0xf0)](this[_0x279741(0xc8)]),this[_0x279741(0xdc)](),this[_0x279741(0xe5)]({'attributes':{'class':['ck',_0x279741(0xf7)]}}),this[_0x279741(0xcd)]=this[_0x279741(0xef)](),this[_0x279741(0xcd)][_0x279741(0xd0)](_0x279741(0xde))['to'](this,_0x279741(0xc3),this,_0x279741(0xe9),(_0x11f7cd,_0x1a98c1)=>!_0x11f7cd&&!_0x1a98c1),this[_0x279741(0xc6)][_0x279741(0xf0)](this[_0x279741(0xcd)]);}[_0x5df1a2(0xf9)](){const _0x1f9110=_0x5df1a2;super[_0x1f9110(0xf9)](),this[_0x1f9110(0xd9)][_0x1f9110(0xd5)][_0x1f9110(0xf0)](this[_0x1f9110(0xcd)]),this[_0x1f9110(0xe1)][_0x1f9110(0xce)](_0x1f9110(0xc5),(_0x10a624,_0x4cbe22)=>{const _0x12d8f0=_0x1f9110;this[_0x12d8f0(0xe9)]||this[_0x12d8f0(0xc3)]||_0x10a624[_0x12d8f0(0xbe)]==this[_0x12d8f0(0xd9)][_0x12d8f0(0xd2)][_0x12d8f0(0xec)]&&(this[_0x12d8f0(0xcc)](),_0x4cbe22());}),this[_0x1f9110(0xd9)][_0x1f9110(0xd2)]['on'](_0x1f9110(0xd8),()=>{const _0x36ecb6=_0x1f9110;this[_0x36ecb6(0xc3)]=''===this[_0x36ecb6(0xd9)][_0x36ecb6(0xd2)][_0x36ecb6(0xec)][_0x36ecb6(0xe4)]?.[_0x36ecb6(0xcf)]();});}[_0x5df1a2(0xbc)](){const _0x1f03fc=_0x5df1a2;super[_0x1f03fc(0xbc)](),this[_0x1f03fc(0xf5)]&&this[_0x1f03fc(0xf5)][_0x1f03fc(0xbc)]();}[_0x5df1a2(0xcc)](){const _0x4ccb74=_0x5df1a2,_0x2586f8=this[_0x4ccb74(0xd9)][_0x4ccb74(0xd2)][_0x4ccb74(0xec)][_0x4ccb74(0xe4)]?.[_0x4ccb74(0xcf)]();if(!_0x2586f8)return this[_0x4ccb74(0xd9)][_0x4ccb74(0xf8)]=_0x486bb3(this[_0x4ccb74(0xda)],_0x4ccb74(0xca)),void(this[_0x4ccb74(0xd9)][_0x4ccb74(0xd2)][_0x4ccb74(0xf6)]=!0x0);this[_0x4ccb74(0xd9)][_0x4ccb74(0xd2)][_0x4ccb74(0xf6)]=!0x1;const _0x479632=_0x309e8d(_0x2586f8);this[_0x4ccb74(0xbb)](_0x4ccb74(0xbf),_0x479632),this[_0x4ccb74(0xd9)][_0x4ccb74(0xd2)][_0x4ccb74(0xd4)]();}[_0x5df1a2(0xdd)](_0x1462a9){const _0x1e2d1f=_0x5df1a2;this[_0x1e2d1f(0xd9)][_0x1e2d1f(0xd2)][_0x1e2d1f(0xce)](_0x1e2d1f(0xf2),_0x1462a9);}[_0x5df1a2(0xef)](){const _0x58f2da=_0x5df1a2,_0x1f5671=new _0x3c87b6(this[_0x58f2da(0xda)]);return _0x1f5671[_0x58f2da(0xce)]({'icon':_0x7f8911,'label':_0x486bb3(this[_0x58f2da(0xda)],_0x58f2da(0xd6)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x58f2da(0xdf),'isEnabled':!0x1}),_0x1f5671['on'](_0x58f2da(0xc4),()=>{const _0x30b77b=_0x58f2da;this[_0x30b77b(0xcc)]();}),_0x1f5671;}[_0x5df1a2(0xcb)](_0x554340){const _0xc6c0ba=_0x5df1a2;this[_0xc6c0ba(0xe9)]=_0x554340;}[_0x5df1a2(0xdc)](){const _0x3c538a=_0x5df1a2,_0x39c305=this[_0x3c538a(0xda)],_0x18691e=()=>{const _0x29aa63=_0x3c538a;_0x24d469[_0x29aa63(0xea)][_0x29aa63(0xbd)](()=>{const _0x5c131b=_0x29aa63;if(_0x31bb13(this[_0x5c131b(0xec)])){const _0x4de224=new _0x1a1d3a(this[_0x5c131b(0xd9)][_0x5c131b(0xd2)][_0x5c131b(0xec)]),_0x279cfa=new _0x1a1d3a(this[_0x5c131b(0xc8)][_0x5c131b(0xec)]),_0x305025=_0x4de224[_0x5c131b(0xf3)],_0xa86031=_0x5c131b(0xdb)===_0x39c305[_0x5c131b(0xc7)]?_0x5c131b(0xf4):_0x5c131b(0xd7);_0x4de224[_0x5c131b(0xf1)]();const _0xdecca9=_0x305025-_0x4de224[_0x5c131b(0xf3)]+0x1;this[_0x5c131b(0xc8)][_0x5c131b(0xec)][_0x5c131b(0xe0)][_0xa86031]=_0x5c131b(0xe6)+(_0x305025-_0x279cfa[_0x5c131b(0xf3)]-_0xdecca9)+_0x5c131b(0xe7);}});};this[_0x3c538a(0xd9)][_0x3c538a(0xd2)]['on'](_0x3c538a(0xd8),_0x18691e),this['on'](_0x3c538a(0xf9),()=>{const _0x4c266a=_0x3c538a;_0x18691e(),this[_0x4c266a(0xf5)]=new _0x30802b(this[_0x4c266a(0xd9)][_0x4c266a(0xd2)][_0x4c266a(0xec)],()=>{_0x18691e();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b5b26=_0x5950;(function(_0x394b08,_0x155538){const _0x2e6af9=_0x5950,_0x4c0046=_0x394b08();while(!![]){try{const _0x3981ac=-parseInt(_0x2e6af9(0x8a))/0x1+parseInt(_0x2e6af9(0x8e))/0x2+-parseInt(_0x2e6af9(0x89))/0x3+-parseInt(_0x2e6af9(0x85))/0x4+-parseInt(_0x2e6af9(0x8b))/0x5*(parseInt(_0x2e6af9(0x86))/0x6)+parseInt(_0x2e6af9(0x84))/0x7+parseInt(_0x2e6af9(0x88))/0x8;if(_0x3981ac===_0x155538)break;else _0x4c0046['push'](_0x4c0046['shift']());}catch(_0x4d563b){_0x4c0046['push'](_0x4c0046['shift']());}}}(_0x4d77,0xcefc1));function _0x5950(_0x5ccb47,_0x15f15f){const _0x4d779e=_0x4d77();return _0x5950=function(_0x595058,_0x52b7b1){_0x595058=_0x595058-0x84;let _0x3a1aa6=_0x4d779e[_0x595058];return _0x3a1aa6;},_0x5950(_0x5ccb47,_0x15f15f);}import{ListView as _0x579386}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x579386{[_0x4b5b26(0x87)](){const _0x36bc8b=_0x4b5b26;let _0x173845=0x0;for(const _0x36318e of this[_0x36bc8b(0x8c)])_0x173845+=_0x36318e[_0x36bc8b(0x8c)][_0x36bc8b(0x8d)];return{'resultsCount':_0x173845,'totalItemsCount':_0x173845};}}function _0x4d77(){const _0x4133ac=['11548112sbhMON','2443539UBVKMl','1163447nQmcoP','25NQKhYp','items','length','2385062ZtyoLR','6582282AknPGq','1213648YDcAgN','536628QQkCNQ','filter'];_0x4d77=function(){return _0x4133ac;};return _0x4d77();}
23
+ const _0x4c3d76=_0x5205;(function(_0x584dff,_0x2f7e5c){const _0x5b64c4=_0x5205,_0x2ac44e=_0x584dff();while(!![]){try{const _0x41f6cc=-parseInt(_0x5b64c4(0x1a8))/0x1*(-parseInt(_0x5b64c4(0x1b0))/0x2)+-parseInt(_0x5b64c4(0x1a9))/0x3*(-parseInt(_0x5b64c4(0x1ab))/0x4)+-parseInt(_0x5b64c4(0x1a7))/0x5+-parseInt(_0x5b64c4(0x1a4))/0x6*(-parseInt(_0x5b64c4(0x1ad))/0x7)+-parseInt(_0x5b64c4(0x1af))/0x8*(parseInt(_0x5b64c4(0x1ae))/0x9)+-parseInt(_0x5b64c4(0x1a5))/0xa+parseInt(_0x5b64c4(0x1aa))/0xb*(-parseInt(_0x5b64c4(0x1b1))/0xc);if(_0x41f6cc===_0x2f7e5c)break;else _0x2ac44e['push'](_0x2ac44e['shift']());}catch(_0x23bc74){_0x2ac44e['push'](_0x2ac44e['shift']());}}}(_0x5a65,0x219ac));function _0x5205(_0x38c4bc,_0x40ac27){const _0x5a6537=_0x5a65();return _0x5205=function(_0x5205df,_0x12b846){_0x5205df=_0x5205df-0x1a3;let _0x4fdf2b=_0x5a6537[_0x5205df];return _0x4fdf2b;},_0x5205(_0x38c4bc,_0x40ac27);}import{ListView as _0x1070d2}from'ckeditor5/src/ui.js';function _0x5a65(){const _0x424b24=['2KxWMZG','1704vrMaNR','filter','60xsbSun','437450ZNTdHO','length','365290mnZYVX','49846DZSrYc','33eoRwDS','20658ButDMe','95356qZivDf','items','186039JfFSIl','18CJodCW','226888AJJWql'];_0x5a65=function(){return _0x424b24;};return _0x5a65();}export class AIChatPromptSuggestionsListView extends _0x1070d2{[_0x4c3d76(0x1a3)](){const _0x3d8f38=_0x4c3d76;let _0x15b6ff=0x0;for(const _0x15c6e0 of this[_0x3d8f38(0x1ac)])_0x15b6ff+=_0x15c6e0[_0x3d8f38(0x1ac)][_0x3d8f38(0x1a6)];return{'resultsCount':_0x15b6ff,'totalItemsCount':_0x15b6ff};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b66b6=_0x35cd;(function(_0x173570,_0x5b8d99){const _0x2d8c08=_0x35cd,_0x48af9c=_0x173570();while(!![]){try{const _0x7271ba=-parseInt(_0x2d8c08(0x153))/0x1*(parseInt(_0x2d8c08(0x141))/0x2)+-parseInt(_0x2d8c08(0x157))/0x3*(parseInt(_0x2d8c08(0x15a))/0x4)+parseInt(_0x2d8c08(0x14c))/0x5*(parseInt(_0x2d8c08(0x14b))/0x6)+-parseInt(_0x2d8c08(0x15d))/0x7+parseInt(_0x2d8c08(0x149))/0x8+-parseInt(_0x2d8c08(0x15f))/0x9+parseInt(_0x2d8c08(0x150))/0xa;if(_0x7271ba===_0x5b8d99)break;else _0x48af9c['push'](_0x48af9c['shift']());}catch(_0x1845f3){_0x48af9c['push'](_0x48af9c['shift']());}}}(_0xd658,0xf12ec));function _0xd658(){const _0x771861=['setResources','113057qoqGWr','filter','resource','label','153117hpDiOK','highlightText','execute','52iljkem','useDefaultFiltering','addResourceToContext','1481200FZYBfC','trim','6069132MpSBBO','replace','test','6NzmsPv','extendTemplate','updateResourceState','items','clear','add','\x5c$&','forEach','15376416ZVhWZH','_handleResourceSelection','7062Dhjhoh','340UzLMHs','_source','ck-ai-chat-resources__list','fire','8744220QkxjQR','locale'];_0xd658=function(){return _0x771861;};return _0xd658();}function _0x35cd(_0x2ef2ae,_0x479bc3){const _0xd6587f=_0xd658();return _0x35cd=function(_0x35cd8b,_0x462d62){_0x35cd8b=_0x35cd8b-0x141;let _0xdda121=_0xd6587f[_0x35cd8b];return _0xdda121;},_0x35cd(_0x2ef2ae,_0x479bc3);}import{ListView as _0x269735}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x132204}from'./aichatresourcelistitemview.js';const oc=_0x2b66b6(0x14e);export class AIChatContextResourcesListView extends _0x269735{[_0x2b66b6(0x14d)];constructor(_0x3f031e,_0x368c5a){const _0x1b7d1a=_0x2b66b6;super(_0x3f031e),this[_0x1b7d1a(0x14d)]=_0x368c5a,this[_0x1b7d1a(0x142)]({'attributes':{'class':[oc]}});}[_0x2b66b6(0x152)](_0x14d98d,_0x1bb8b3){const _0x34febe=_0x2b66b6;this[_0x34febe(0x144)][_0x34febe(0x145)]();let _0x1bcabb=_0x14d98d;if(this[_0x34febe(0x14d)][_0x34febe(0x15b)]&&_0x1bb8b3&&''!==_0x1bb8b3[_0x34febe(0x15e)]()){const _0x3ae36d=new RegExp(_0x1bb8b3[_0x34febe(0x160)](/[.*+?^${}()|[\]\\]/g,_0x34febe(0x147)),'gi');_0x1bcabb=_0x14d98d[_0x34febe(0x154)](_0x119a7d=>_0x3ae36d[_0x34febe(0x161)](_0x119a7d[_0x34febe(0x156)]));}for(const _0x1ad5b8 of _0x1bcabb){const _0x3a8b8f=new _0x132204(this[_0x34febe(0x151)],_0x1ad5b8);_0x3a8b8f['on'](_0x34febe(0x159),()=>{const _0x46b936=_0x34febe;this[_0x46b936(0x14a)](this[_0x46b936(0x14d)],_0x1ad5b8);}),this[_0x34febe(0x144)][_0x34febe(0x146)](_0x3a8b8f);}this[_0x34febe(0x14d)][_0x34febe(0x15b)]&&this[_0x34febe(0x158)](_0x1bb8b3);}[_0x2b66b6(0x158)](_0x822f36){const _0x12d2b8=_0x2b66b6;this[_0x12d2b8(0x14d)][_0x12d2b8(0x15b)]&&this[_0x12d2b8(0x144)][_0x12d2b8(0x148)](_0x1f2427=>{const _0x350503=_0x12d2b8;_0x1f2427[_0x350503(0x158)](_0x822f36);});}[_0x2b66b6(0x143)](_0x339935,_0x1f43b6){const _0x8b15e0=_0x2b66b6;for(const _0x3c0465 of this[_0x8b15e0(0x144)]){const _0x581e93=_0x3c0465;_0x581e93[_0x8b15e0(0x155)]['id']===_0x339935&&_0x581e93[_0x8b15e0(0x143)](_0x1f43b6);}}[_0x2b66b6(0x14a)](_0x445af7,_0x39f3ac){const _0x221763=_0x2b66b6;this[_0x221763(0x14f)](_0x221763(0x15c),{'source':_0x445af7,'resource':_0x39f3ac});}}
23
+ const _0x41cec8=_0x3d62;(function(_0x3d78f3,_0x1a3ef2){const _0x58c680=_0x3d62,_0x1cb53a=_0x3d78f3();while(!![]){try{const _0x294bf3=-parseInt(_0x58c680(0x1ee))/0x1+parseInt(_0x58c680(0x1f6))/0x2*(parseInt(_0x58c680(0x1e2))/0x3)+-parseInt(_0x58c680(0x1e4))/0x4+-parseInt(_0x58c680(0x1f2))/0x5+parseInt(_0x58c680(0x1ef))/0x6+parseInt(_0x58c680(0x1fb))/0x7+parseInt(_0x58c680(0x1e8))/0x8*(parseInt(_0x58c680(0x1e3))/0x9);if(_0x294bf3===_0x1a3ef2)break;else _0x1cb53a['push'](_0x1cb53a['shift']());}catch(_0x2531cf){_0x1cb53a['push'](_0x1cb53a['shift']());}}}(_0x5235,0x58382));import{ListView as _0x3a0335}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0xc847f}from'./aichatresourcelistitemview.js';function _0x5235(){const _0x2a1888=['trim','_handleResourceSelection','fire','items','3869495HwtlUJ','add','locale','resource','clear','addResourceToContext','setResources','3MUItuj','2141109FjGpjJ','901464OpNkYn','highlightText','ck-ai-chat-resources__list','execute','8belGpq','forEach','useDefaultFiltering','filter','\x5c$&','_source','627831NuWNoA','704418WYLiDg','test','label','603035KQpUuc','updateResourceState','extendTemplate','replace','854122OIIcUb'];_0x5235=function(){return _0x2a1888;};return _0x5235();}const sc=_0x41cec8(0x1e6);function _0x3d62(_0x1c84fd,_0x4ca7fa){const _0x5235de=_0x5235();return _0x3d62=function(_0x3d625b,_0x436026){_0x3d625b=_0x3d625b-0x1df;let _0x1866a4=_0x5235de[_0x3d625b];return _0x1866a4;},_0x3d62(_0x1c84fd,_0x4ca7fa);}export class AIChatContextResourcesListView extends _0x3a0335{[_0x41cec8(0x1ed)];constructor(_0x2091c7,_0x2d8142){const _0x1eea44=_0x41cec8;super(_0x2091c7),this[_0x1eea44(0x1ed)]=_0x2d8142,this[_0x1eea44(0x1f4)]({'attributes':{'class':[sc]}});}[_0x41cec8(0x1e1)](_0x159a43,_0x1a7625){const _0x1c2292=_0x41cec8;this[_0x1c2292(0x1fa)][_0x1c2292(0x1df)]();let _0x103968=_0x159a43;if(this[_0x1c2292(0x1ed)][_0x1c2292(0x1ea)]&&_0x1a7625&&''!==_0x1a7625[_0x1c2292(0x1f7)]()){const _0x281144=new RegExp(_0x1a7625[_0x1c2292(0x1f5)](/[.*+?^${}()|[\]\\]/g,_0x1c2292(0x1ec)),'gi');_0x103968=_0x159a43[_0x1c2292(0x1eb)](_0x299892=>_0x281144[_0x1c2292(0x1f0)](_0x299892[_0x1c2292(0x1f1)]));}for(const _0x57ec8a of _0x103968){const _0x1f3d4d=new _0xc847f(this[_0x1c2292(0x1fd)],_0x57ec8a);_0x1f3d4d['on'](_0x1c2292(0x1e7),()=>{const _0x379105=_0x1c2292;this[_0x379105(0x1f8)](this[_0x379105(0x1ed)],_0x57ec8a);}),this[_0x1c2292(0x1fa)][_0x1c2292(0x1fc)](_0x1f3d4d);}this[_0x1c2292(0x1ed)][_0x1c2292(0x1ea)]&&this[_0x1c2292(0x1e5)](_0x1a7625);}[_0x41cec8(0x1e5)](_0x2ef8a7){const _0xb0e332=_0x41cec8;this[_0xb0e332(0x1ed)][_0xb0e332(0x1ea)]&&this[_0xb0e332(0x1fa)][_0xb0e332(0x1e9)](_0x275468=>{const _0x1fe720=_0xb0e332;_0x275468[_0x1fe720(0x1e5)](_0x2ef8a7);});}[_0x41cec8(0x1f3)](_0x458a5d,_0x4976b8){const _0x418004=_0x41cec8;for(const _0x21ebab of this[_0x418004(0x1fa)]){const _0xb9114f=_0x21ebab;_0xb9114f[_0x418004(0x1fe)]['id']===_0x458a5d&&_0xb9114f[_0x418004(0x1f3)](_0x4976b8);}}[_0x41cec8(0x1f8)](_0x3aafa0,_0x43872f){const _0x2f5dae=_0x41cec8;this[_0x2f5dae(0x1f9)](_0x2f5dae(0x1e0),{'source':_0x3aafa0,'resource':_0x43872f});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d1074=_0xda47;function _0xda47(_0x42208b,_0x83019b){const _0x3161aa=_0x3161();return _0xda47=function(_0xda4753,_0xaab11f){_0xda4753=_0xda4753-0x178;let _0x498e8e=_0x3161aa[_0xda4753];return _0x498e8e;},_0xda47(_0x42208b,_0x83019b);}(function(_0x36c4d5,_0x51967f){const _0x307a35=_0xda47,_0x349648=_0x36c4d5();while(!![]){try{const _0x4dba17=parseInt(_0x307a35(0x196))/0x1+-parseInt(_0x307a35(0x17c))/0x2+-parseInt(_0x307a35(0x17a))/0x3*(parseInt(_0x307a35(0x197))/0x4)+-parseInt(_0x307a35(0x193))/0x5+-parseInt(_0x307a35(0x194))/0x6+-parseInt(_0x307a35(0x1a4))/0x7+parseInt(_0x307a35(0x199))/0x8;if(_0x4dba17===_0x51967f)break;else _0x349648['push'](_0x349648['shift']());}catch(_0x260453){_0x349648['push'](_0x349648['shift']());}}}(_0x3161,0x28b5b));import{View as _0x4a0a05,ViewCollection as _0x29f2b5}from'ckeditor5/src/ui.js';function _0x3161(){const _0x597d81=['20chArQJ','length','10957016uoXOUg','search','_resourcesListView','aiChatResources','bindTemplate','_latestLoadResourcesUid','searchInputVisibleFrom','useDefaultFiltering','add','ck-hidden','delegate','2024911FNjLOX','ck-ai-chat-resources','getQuery','_createSkeletonView','_skeletonLoader','_source','166485mKZYTl','updateResourceState','658476OKggbl','_createSearchView','loadSourceResources','children','_searchInputVisibleFrom','_createSearchSection','highlightText','_searchView','ck\x20ck-search','set','locale','fire','setTemplate','addResourceToContext','isLoading','setResources','render','div','extendTemplate','source','has','loadResources','_searchSection','751775IquaRv','1464156JMKiBH','_createResourcesListView','87487KqtdyK'];_0x3161=function(){return _0x597d81;};return _0x3161();}import{uid as _0x4d6ef8}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x23eefb}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x152749}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x20eb25,SKELETON_DEFINITIONS as _0x466139}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x4a0a05{[_0x1d1074(0x183)];[_0x1d1074(0x192)];[_0x1d1074(0x180)];[_0x1d1074(0x19b)];[_0x1d1074(0x178)];[_0x1d1074(0x179)];[_0x1d1074(0x17f)];[_0x1d1074(0x19e)]=null;constructor(_0x59b4d6,_0x5888cf){const _0x2fb336=_0x1d1074;super(_0x59b4d6),this[_0x2fb336(0x179)]=_0x5888cf[_0x2fb336(0x18f)],this[_0x2fb336(0x180)]=_0x5888cf[_0x2fb336(0x19f)]??0x7,this[_0x2fb336(0x185)](_0x2fb336(0x18a),!0x0),this[_0x2fb336(0x183)]=this[_0x2fb336(0x17d)](),this[_0x2fb336(0x192)]=this[_0x2fb336(0x181)](),this[_0x2fb336(0x19b)]=this[_0x2fb336(0x195)](),this[_0x2fb336(0x178)]=this[_0x2fb336(0x1a7)](),this[_0x2fb336(0x17f)]=new _0x29f2b5([this[_0x2fb336(0x178)],this[_0x2fb336(0x19b)]]),this[_0x2fb336(0x188)]({'tag':_0x2fb336(0x18d),'attributes':{'class':_0x2fb336(0x1a5)},'children':this[_0x2fb336(0x17f)]});}[_0x1d1074(0x17d)](){const _0x54ecc1=_0x1d1074;return new _0x152749(this[_0x54ecc1(0x186)]);}[_0x1d1074(0x181)](){const _0x29acb8=_0x1d1074,_0x279a60=new _0x4a0a05(this[_0x29acb8(0x186)]);return _0x279a60[_0x29acb8(0x188)]({'tag':_0x29acb8(0x18d),'attributes':{'class':_0x29acb8(0x184)},'children':[this[_0x29acb8(0x183)]]}),this[_0x29acb8(0x183)]['on'](_0x29acb8(0x19a),(_0x37c90d,_0x350b72)=>{const _0x1777c7=_0x29acb8;this[_0x1777c7(0x191)](_0x350b72),this[_0x1777c7(0x179)][_0x1777c7(0x1a0)]&&this[_0x1777c7(0x19b)][_0x1777c7(0x182)](_0x350b72);}),_0x279a60;}[_0x1d1074(0x195)](){const _0x26d056=_0x1d1074,_0x226f62=new _0x23eefb(this[_0x26d056(0x186)],this[_0x26d056(0x179)]);return _0x226f62[_0x26d056(0x1a3)](_0x26d056(0x189))['to'](this),_0x226f62[_0x26d056(0x18e)]({'attributes':{'class':this[_0x26d056(0x19d)]['if'](_0x26d056(0x18a),_0x26d056(0x1a2))}}),_0x226f62;}[_0x1d1074(0x1a7)](){const _0x367b75=_0x1d1074,_0x23a1de=new _0x20eb25(this[_0x367b75(0x186)],_0x466139[_0x367b75(0x19c)]);return _0x23a1de[_0x367b75(0x18e)]({'attributes':{'class':[this[_0x367b75(0x19d)]['if'](_0x367b75(0x18a),_0x367b75(0x1a2),_0x1d380b=>!_0x1d380b)]}}),_0x23a1de;}[_0x1d1074(0x18c)](){const _0x30f7e8=_0x1d1074;super[_0x30f7e8(0x18c)](),this[_0x30f7e8(0x191)]('');}[_0x1d1074(0x191)](_0x38afba){const _0x2f3cc6=_0x1d1074,_0xf45474=_0x4d6ef8();this[_0x2f3cc6(0x19e)]=_0xf45474,this[_0x2f3cc6(0x187)](_0x2f3cc6(0x17e),{'sourceId':this[_0x2f3cc6(0x179)]['id'],'query':_0x38afba,'uid':_0xf45474}),this[_0x2f3cc6(0x18a)]=!0x0;}[_0x1d1074(0x18b)](_0x338775,_0x5eec1e){const _0x5994b=_0x1d1074;if(_0x5eec1e&&_0x5eec1e!==this[_0x5994b(0x19e)])return;const _0x5c4ba6=this[_0x5994b(0x179)][_0x5994b(0x1a0)]?this[_0x5994b(0x183)][_0x5994b(0x1a6)]():'';this[_0x5994b(0x19b)][_0x5994b(0x18b)](_0x338775,_0x5c4ba6),_0x338775[_0x5994b(0x198)]>=this[_0x5994b(0x180)]&&!this[_0x5994b(0x17f)][_0x5994b(0x190)](this[_0x5994b(0x192)])&&this[_0x5994b(0x17f)][_0x5994b(0x1a1)](this[_0x5994b(0x192)],0x0),requestAnimationFrame(()=>{const _0x5950a4=_0x5994b;this[_0x5950a4(0x18a)]=!0x1;});}[_0x1d1074(0x17b)](_0xaafb63,_0x24c437){const _0x1053e8=_0x1d1074;this[_0x1053e8(0x19b)][_0x1053e8(0x17b)](_0xaafb63,_0x24c437);}}
23
+ function _0x4f01(_0x328893,_0x250b60){const _0x639a49=_0x639a();return _0x4f01=function(_0x4f014a,_0x7114b4){_0x4f014a=_0x4f014a-0x68;let _0x36e14f=_0x639a49[_0x4f014a];return _0x36e14f;},_0x4f01(_0x328893,_0x250b60);}const _0x1b196c=_0x4f01;(function(_0x2f248d,_0x5eb294){const _0x2f7eba=_0x4f01,_0x255a56=_0x2f248d();while(!![]){try{const _0x7f4508=parseInt(_0x2f7eba(0x68))/0x1*(-parseInt(_0x2f7eba(0x95))/0x2)+-parseInt(_0x2f7eba(0x6b))/0x3+-parseInt(_0x2f7eba(0x91))/0x4*(-parseInt(_0x2f7eba(0x82))/0x5)+parseInt(_0x2f7eba(0x6d))/0x6+-parseInt(_0x2f7eba(0x7b))/0x7+parseInt(_0x2f7eba(0x75))/0x8+parseInt(_0x2f7eba(0x74))/0x9;if(_0x7f4508===_0x5eb294)break;else _0x255a56['push'](_0x255a56['shift']());}catch(_0x3d4b1f){_0x255a56['push'](_0x255a56['shift']());}}}(_0x639a,0xd00ed));import{View as _0x14dfb7,ViewCollection as _0x932540}from'ckeditor5/src/ui.js';import{uid as _0x2b6e30}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x9466c6}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x28f6e3}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0xd5b3f6,SKELETON_DEFINITIONS as _0x479ccb}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x14dfb7{[_0x1b196c(0x81)];[_0x1b196c(0x69)];[_0x1b196c(0x70)];[_0x1b196c(0x87)];[_0x1b196c(0x8b)];[_0x1b196c(0x73)];[_0x1b196c(0x90)];[_0x1b196c(0x7c)]=null;constructor(_0x409613,_0xe1ba75){const _0x4a4cc2=_0x1b196c;super(_0x409613),this[_0x4a4cc2(0x73)]=_0xe1ba75[_0x4a4cc2(0x6c)],this[_0x4a4cc2(0x70)]=_0xe1ba75[_0x4a4cc2(0x80)]??0x7,this[_0x4a4cc2(0x79)](_0x4a4cc2(0x89),!0x0),this[_0x4a4cc2(0x81)]=this[_0x4a4cc2(0x8f)](),this[_0x4a4cc2(0x69)]=this[_0x4a4cc2(0x7a)](),this[_0x4a4cc2(0x87)]=this[_0x4a4cc2(0x71)](),this[_0x4a4cc2(0x8b)]=this[_0x4a4cc2(0x78)](),this[_0x4a4cc2(0x90)]=new _0x932540([this[_0x4a4cc2(0x8b)],this[_0x4a4cc2(0x87)]]),this[_0x4a4cc2(0x94)]({'tag':_0x4a4cc2(0x7e),'attributes':{'class':_0x4a4cc2(0x96)},'children':this[_0x4a4cc2(0x90)]});}[_0x1b196c(0x8f)](){const _0xae0c5=_0x1b196c;return new _0x28f6e3(this[_0xae0c5(0x7f)]);}[_0x1b196c(0x7a)](){const _0x4bbaa5=_0x1b196c,_0x1022b7=new _0x14dfb7(this[_0x4bbaa5(0x7f)]);return _0x1022b7[_0x4bbaa5(0x94)]({'tag':_0x4bbaa5(0x7e),'attributes':{'class':_0x4bbaa5(0x8c)},'children':[this[_0x4bbaa5(0x81)]]}),this[_0x4bbaa5(0x81)]['on'](_0x4bbaa5(0x6f),(_0x309745,_0x714275)=>{const _0x544144=_0x4bbaa5;this[_0x544144(0x83)](_0x714275),this[_0x544144(0x73)][_0x544144(0x85)]&&this[_0x544144(0x87)][_0x544144(0x8d)](_0x714275);}),_0x1022b7;}[_0x1b196c(0x71)](){const _0x3f3c36=_0x1b196c,_0x2ffb0b=new _0x9466c6(this[_0x3f3c36(0x7f)],this[_0x3f3c36(0x73)]);return _0x2ffb0b[_0x3f3c36(0x77)](_0x3f3c36(0x98))['to'](this),_0x2ffb0b[_0x3f3c36(0x8a)]({'attributes':{'class':this[_0x3f3c36(0x8e)]['if'](_0x3f3c36(0x89),_0x3f3c36(0x6e))}}),_0x2ffb0b;}[_0x1b196c(0x78)](){const _0xc0c1c1=_0x1b196c,_0x599aeb=new _0xd5b3f6(this[_0xc0c1c1(0x7f)],_0x479ccb[_0xc0c1c1(0x86)]);return _0x599aeb[_0xc0c1c1(0x8a)]({'attributes':{'class':[this[_0xc0c1c1(0x8e)]['if'](_0xc0c1c1(0x89),_0xc0c1c1(0x6e),_0x454b9f=>!_0x454b9f)]}}),_0x599aeb;}[_0x1b196c(0x92)](){const _0x19388a=_0x1b196c;super[_0x19388a(0x92)](),this[_0x19388a(0x83)]('');}[_0x1b196c(0x83)](_0xef9012){const _0x139ac6=_0x1b196c,_0x1f3adf=_0x2b6e30();this[_0x139ac6(0x7c)]=_0x1f3adf,this[_0x139ac6(0x72)](_0x139ac6(0x88),{'sourceId':this[_0x139ac6(0x73)]['id'],'query':_0xef9012,'uid':_0x1f3adf}),this[_0x139ac6(0x89)]=!0x0;}[_0x1b196c(0x76)](_0x1e91a7,_0x965aad){const _0x471fdc=_0x1b196c;if(_0x965aad&&_0x965aad!==this[_0x471fdc(0x7c)])return;const _0x33a1bc=this[_0x471fdc(0x73)][_0x471fdc(0x85)]?this[_0x471fdc(0x81)][_0x471fdc(0x7d)]():'';this[_0x471fdc(0x87)][_0x471fdc(0x76)](_0x1e91a7,_0x33a1bc),_0x1e91a7[_0x471fdc(0x97)]>=this[_0x471fdc(0x70)]&&!this[_0x471fdc(0x90)][_0x471fdc(0x93)](this[_0x471fdc(0x69)])&&this[_0x471fdc(0x90)][_0x471fdc(0x6a)](this[_0x471fdc(0x69)],0x0),requestAnimationFrame(()=>{const _0x7f979c=_0x471fdc;this[_0x7f979c(0x89)]=!0x1;});}[_0x1b196c(0x84)](_0x3275fd,_0x1d78d1){const _0x52ed5b=_0x1b196c;this[_0x52ed5b(0x87)][_0x52ed5b(0x84)](_0x3275fd,_0x1d78d1);}}function _0x639a(){const _0x32d4a3=['delegate','_createSkeletonView','set','_createSearchSection','7188391vvpiAc','_latestLoadResourcesUid','getQuery','div','locale','searchInputVisibleFrom','_searchView','5xsRVjd','loadResources','updateResourceState','useDefaultFiltering','aiChatResources','_resourcesListView','loadSourceResources','isLoading','extendTemplate','_skeletonLoader','ck\x20ck-search','highlightText','bindTemplate','_createSearchView','children','804404alfRRr','render','has','setTemplate','18qytvQC','ck-ai-chat-resources','length','addResourceToContext','84127lmulKD','_searchSection','add','1792092xJtDDn','source','797700CJltIt','ck-hidden','search','_searchInputVisibleFrom','_createResourcesListView','fire','_source','19217169nFHYce','6114664fGDxZL','setResources'];_0x639a=function(){return _0x32d4a3;};return _0x639a();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20071b=_0x2042;(function(_0x2e626b,_0x43d5da){const _0x3bbc86=_0x2042,_0x53c02c=_0x2e626b();while(!![]){try{const _0x3d6a99=-parseInt(_0x3bbc86(0x1cc))/0x1+-parseInt(_0x3bbc86(0x1b2))/0x2*(parseInt(_0x3bbc86(0x1ac))/0x3)+parseInt(_0x3bbc86(0x1ba))/0x4+parseInt(_0x3bbc86(0x1b6))/0x5*(-parseInt(_0x3bbc86(0x1b4))/0x6)+parseInt(_0x3bbc86(0x1ab))/0x7+-parseInt(_0x3bbc86(0x1ca))/0x8*(parseInt(_0x3bbc86(0x1ce))/0x9)+parseInt(_0x3bbc86(0x1d7))/0xa*(parseInt(_0x3bbc86(0x1bb))/0xb);if(_0x3d6a99===_0x43d5da)break;else _0x53c02c['push'](_0x53c02c['shift']());}catch(_0x3ce09d){_0x53c02c['push'](_0x53c02c['shift']());}}}(_0x57b9,0xc8d1e));import{HighlightedTextView as _0xaa21b3,IconView as _0x5afdc1,ListItemView as _0x597d32}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x2848d4}from'es-toolkit/compat';import{AIContextItemType as _0x558001}from'../../../../aicore/model/aicontext.js';function _0x2042(_0x44f73c,_0x380d94){const _0x57b973=_0x57b9();return _0x2042=function(_0x20421f,_0x2fffa3){_0x20421f=_0x20421f-0x1ab;let _0x785eb4=_0x57b973[_0x20421f];return _0x785eb4;},_0x2042(_0x44f73c,_0x380d94);}function _0x57b9(){const _0x26a763=['updateResourceState','isVisible','6472664neMxjc','11BeUcgb','isInContext','getResourceIcon','_createIconView','FILE','highlightText','resource','content','URL','bindTemplate','TEXT','_iconView','span','_titleView','ck-ai-chat-resources__item','104jbXwGr','ck-hidden','844832OaIuXE','_updateIcon','822348QVpXvv','_createTitleView','extendTemplate','text','ck-ai-chat-resources__item-title','ck-ai-chat-resources__item__icon','set','_setupTemplate','label','40267880QlcaAi','289898QPBlvX','3PbvAhb','setTemplate','render','div','trim','ck-ai-chat-resources__item--in-context','3239398ecyrQy','execute','7268658LzZdcM','type','5blpbdr','DOCUMENT'];_0x57b9=function(){return _0x26a763;};return _0x57b9();}import{IconFileUpload as _0x528b53,IconCheck as _0x42ba94,IconDocument as _0x3c5ad7,IconDocumentOutline as _0x5b1342,IconLink as _0x3ebf1f}from'@ckeditor/ckeditor5-icons';const zr=_0x20071b(0x1c9),Gr=_0x20071b(0x1b1),Hr=_0x20071b(0x1d2),Jr=_0x20071b(0x1d3);export class AIChatResourceListItemView extends _0x597d32{[_0x20071b(0x1c1)];[_0x20071b(0x1c8)];[_0x20071b(0x1c6)];constructor(_0x23efc8,_0x42dc06){const _0x3e5843=_0x20071b;super(_0x23efc8),this[_0x3e5843(0x1c1)]=_0x42dc06,this[_0x3e5843(0x1d4)](_0x3e5843(0x1bc),!!_0x42dc06[_0x3e5843(0x1bc)]),this[_0x3e5843(0x1c8)]=this[_0x3e5843(0x1cf)](),this[_0x3e5843(0x1c6)]=this[_0x3e5843(0x1be)](),this[_0x3e5843(0x1d5)]();}[_0x20071b(0x1ae)](){const _0x58cf73=_0x20071b;super[_0x58cf73(0x1ae)]();}[_0x20071b(0x1bd)](_0x21dd8e){const _0x1573e1=_0x20071b;if(_0x21dd8e[_0x1573e1(0x1bc)])return _0x42ba94;switch(_0x21dd8e[_0x1573e1(0x1b5)]){case _0x558001[_0x1573e1(0x1b7)]:return _0x3c5ad7;case _0x558001[_0x1573e1(0x1c3)]:return _0x3ebf1f;case _0x558001[_0x1573e1(0x1bf)]:case _0x558001[_0x1573e1(0x1c5)]:return _0x528b53;default:return _0x5b1342;}}[_0x20071b(0x1c0)](_0x208071){const _0x4d6adc=_0x20071b;if(!_0x208071||''===_0x208071[_0x4d6adc(0x1b0)]())return void this[_0x4d6adc(0x1c8)][_0x4d6adc(0x1c0)](null);const _0x138daf=new RegExp(_0x2848d4(_0x208071),'gi');this[_0x4d6adc(0x1c8)][_0x4d6adc(0x1c0)](_0x138daf);}[_0x20071b(0x1b8)](_0x2ca34c){const _0x35cd11=_0x20071b;this[_0x35cd11(0x1c1)][_0x35cd11(0x1bc)]=_0x2ca34c,this[_0x35cd11(0x1bc)]=_0x2ca34c,this[_0x35cd11(0x1cd)]();}[_0x20071b(0x1cf)](){const _0x44f070=_0x20071b,_0x1bfcfe=new _0xaa21b3();return _0x1bfcfe[_0x44f070(0x1d1)]=this[_0x44f070(0x1c1)][_0x44f070(0x1d6)],_0x1bfcfe[_0x44f070(0x1d0)]({'tag':_0x44f070(0x1c7),'attributes':{'class':[Hr]}}),_0x1bfcfe;}[_0x20071b(0x1be)](){const _0x2f2120=_0x20071b,_0x1c39b6=new _0x5afdc1();return _0x1c39b6[_0x2f2120(0x1c2)]=this[_0x2f2120(0x1bd)](this[_0x2f2120(0x1c1)]),_0x1c39b6;}[_0x20071b(0x1d5)](){const _0x5a0f9a=_0x20071b,_0x5764cb=this[_0x5a0f9a(0x1c4)];this[_0x5a0f9a(0x1ad)]({'tag':_0x5a0f9a(0x1af),'attributes':{'class':[zr,_0x5764cb['if'](_0x5a0f9a(0x1b9),_0x5a0f9a(0x1cb),_0x227840=>!_0x227840),_0x5764cb['if'](_0x5a0f9a(0x1bc),Gr)]},'children':[{'tag':_0x5a0f9a(0x1af),'attributes':{'class':[Jr]},'children':[this[_0x5a0f9a(0x1c6)]]},this[_0x5a0f9a(0x1c8)]],'on':{'click':_0x5764cb['to'](_0x5a0f9a(0x1b3))}});}[_0x20071b(0x1cd)](){const _0x359915=_0x20071b;this[_0x359915(0x1c6)][_0x359915(0x1c2)]=this[_0x359915(0x1bd)](this[_0x359915(0x1c1)]);}}
23
+ const _0x40764b=_0x3b29;(function(_0x17ac3d,_0x5babe6){const _0x2d59e3=_0x3b29,_0x4d2b20=_0x17ac3d();while(!![]){try{const _0x4cb4be=-parseInt(_0x2d59e3(0xb7))/0x1*(parseInt(_0x2d59e3(0xda))/0x2)+parseInt(_0x2d59e3(0xb6))/0x3+-parseInt(_0x2d59e3(0xe1))/0x4+-parseInt(_0x2d59e3(0xbb))/0x5+parseInt(_0x2d59e3(0xdf))/0x6*(parseInt(_0x2d59e3(0xb5))/0x7)+parseInt(_0x2d59e3(0xdb))/0x8*(-parseInt(_0x2d59e3(0xd9))/0x9)+-parseInt(_0x2d59e3(0xc5))/0xa*(-parseInt(_0x2d59e3(0xca))/0xb);if(_0x4cb4be===_0x5babe6)break;else _0x4d2b20['push'](_0x4d2b20['shift']());}catch(_0x2f2e03){_0x4d2b20['push'](_0x4d2b20['shift']());}}}(_0x6b2e,0xb8cf7));import{HighlightedTextView as _0x1091bf,IconView as _0x1146f0,ListItemView as _0x5358d5}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x358d9c}from'es-toolkit/compat';import{AIContextItemType as _0x525b05}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x48b7ec,IconCheck as _0x53aeaf,IconDocument as _0x4f3165,IconDocumentOutline as _0x1b8d73,IconLink as _0xf0fae4}from'@ckeditor/ckeditor5-icons';function _0x3b29(_0x20fb4c,_0x492208){const _0x6b2ee0=_0x6b2e();return _0x3b29=function(_0x3b2942,_0x4c31ad){_0x3b2942=_0x3b2942-0xb5;let _0x31907a=_0x6b2ee0[_0x3b2942];return _0x31907a;},_0x3b29(_0x20fb4c,_0x492208);}function _0x6b2e(){const _0x4f8c55=['_titleView','bindTemplate','type','updateResourceState','isInContext','trim','DOCUMENT','text','render','1577130YmYcRP','FILE','label','_createIconView','resource','187yIvfsr','_createTitleView','_updateIcon','_iconView','ck-ai-chat-resources__item--in-context','ck-ai-chat-resources__item__icon','TEXT','execute','isVisible','ck-ai-chat-resources__item-title','content','_setupTemplate','URL','ck-ai-chat-resources__item','span','4957956bKXLqf','1197994OyQkEY','8GLleEb','setTemplate','ck-hidden','extendTemplate','7974CEoLyG','highlightText','3956372uFPvFo','2303kgxzEQ','3075417PCourH','1LuLxXG','getResourceIcon','set','div','6237720FRebSW'];_0x6b2e=function(){return _0x4f8c55;};return _0x6b2e();}const Dr=_0x40764b(0xd7),Jr=_0x40764b(0xce),Kr=_0x40764b(0xd3),Nr=_0x40764b(0xcf);export class AIChatResourceListItemView extends _0x5358d5{[_0x40764b(0xc9)];[_0x40764b(0xbc)];[_0x40764b(0xcd)];constructor(_0x5d4e89,_0x5ed38a){const _0x10887a=_0x40764b;super(_0x5d4e89),this[_0x10887a(0xc9)]=_0x5ed38a,this[_0x10887a(0xb9)](_0x10887a(0xc0),!!_0x5ed38a[_0x10887a(0xc0)]),this[_0x10887a(0xbc)]=this[_0x10887a(0xcb)](),this[_0x10887a(0xcd)]=this[_0x10887a(0xc8)](),this[_0x10887a(0xd5)]();}[_0x40764b(0xc4)](){const _0x40f833=_0x40764b;super[_0x40f833(0xc4)]();}[_0x40764b(0xb8)](_0x179932){const _0x122cb1=_0x40764b;if(_0x179932[_0x122cb1(0xc0)])return _0x53aeaf;switch(_0x179932[_0x122cb1(0xbe)]){case _0x525b05[_0x122cb1(0xc2)]:return _0x4f3165;case _0x525b05[_0x122cb1(0xd6)]:return _0xf0fae4;case _0x525b05[_0x122cb1(0xc6)]:case _0x525b05[_0x122cb1(0xd0)]:return _0x48b7ec;default:return _0x1b8d73;}}[_0x40764b(0xe0)](_0x35d6fb){const _0x141524=_0x40764b;if(!_0x35d6fb||''===_0x35d6fb[_0x141524(0xc1)]())return void this[_0x141524(0xbc)][_0x141524(0xe0)](null);const _0x21d2f5=new RegExp(_0x358d9c(_0x35d6fb),'gi');this[_0x141524(0xbc)][_0x141524(0xe0)](_0x21d2f5);}[_0x40764b(0xbf)](_0x122e21){const _0x7e1a63=_0x40764b;this[_0x7e1a63(0xc9)][_0x7e1a63(0xc0)]=_0x122e21,this[_0x7e1a63(0xc0)]=_0x122e21,this[_0x7e1a63(0xcc)]();}[_0x40764b(0xcb)](){const _0x5c7e93=_0x40764b,_0x303fcf=new _0x1091bf();return _0x303fcf[_0x5c7e93(0xc3)]=this[_0x5c7e93(0xc9)][_0x5c7e93(0xc7)],_0x303fcf[_0x5c7e93(0xde)]({'tag':_0x5c7e93(0xd8),'attributes':{'class':[Kr]}}),_0x303fcf;}[_0x40764b(0xc8)](){const _0x248ef9=_0x40764b,_0x283adf=new _0x1146f0();return _0x283adf[_0x248ef9(0xd4)]=this[_0x248ef9(0xb8)](this[_0x248ef9(0xc9)]),_0x283adf;}[_0x40764b(0xd5)](){const _0x21075d=_0x40764b,_0x12b678=this[_0x21075d(0xbd)];this[_0x21075d(0xdc)]({'tag':_0x21075d(0xba),'attributes':{'class':[Dr,_0x12b678['if'](_0x21075d(0xd2),_0x21075d(0xdd),_0x1a0e04=>!_0x1a0e04),_0x12b678['if'](_0x21075d(0xc0),Jr)]},'children':[{'tag':_0x21075d(0xba),'attributes':{'class':[Nr]},'children':[this[_0x21075d(0xcd)]]},this[_0x21075d(0xbc)]],'on':{'click':_0x12b678['to'](_0x21075d(0xd1))}});}[_0x40764b(0xcc)](){const _0x512926=_0x40764b;this[_0x512926(0xcd)][_0x512926(0xd4)]=this[_0x512926(0xb8)](this[_0x512926(0xc9)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x227b(_0x5a8a91,_0x494488){const _0x598bd3=_0x598b();return _0x227b=function(_0x227ba4,_0x77385){_0x227ba4=_0x227ba4-0x87;let _0x5667ee=_0x598bd3[_0x227ba4];return _0x5667ee;},_0x227b(_0x5a8a91,_0x494488);}const _0x5b7ec2=_0x227b;function _0x598b(){const _0x16742a=['onBackToContext','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','822398xNanze','label','children','isVisible','onLoadSourceResources','_sourceResourceBalloons','1629762DVKqhe','onBalloonClosed','show','557565DpaPkX','_config','4145000buarbM','onResourceSelected','getLimiterElement','_addSourceResourceContent','populateSourceResourceBalloon','ck-ai-chat-context-controls__source-balloon-panel','change:isLoading','closeSourceResourceBalloon','isAnyResourceBalloonVisible','set','setResources','addResourceToContext','add','_locale','destroy','getTargetElement','_getResourcesViewFromBalloon','searchInputVisibleFrom','delete','_createBalloonHeader','values','element','pin','7212572oVcEXB','_createSourceResourceBalloonPanel','showSourceResourcesBalloon','extendTemplate','updateResourceState','clear','_createBackButton','12HZLsVS','ck-button-icon\x20ck-button-back','loadSourceResources','source','_bodyCollection','475823sRCiyQ','execute','_createBalloonResourcesView','8007706ABHTes','hide','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','once','resource','content','_setupSingleResourceBalloonClickOutsideHandler','get'];_0x598b=function(){return _0x16742a;};return _0x598b();}(function(_0x381a18,_0xf46bcb){const _0x10c6c2=_0x227b,_0x54d4e8=_0x381a18();while(!![]){try{const _0x33e0c0=parseInt(_0x10c6c2(0x91))/0x1+-parseInt(_0x10c6c2(0x9e))/0x2+-parseInt(_0x10c6c2(0xa4))/0x3+parseInt(_0x10c6c2(0xc0))/0x4+-parseInt(_0x10c6c2(0xa7))/0x5*(-parseInt(_0x10c6c2(0x8c))/0x6)+-parseInt(_0x10c6c2(0x94))/0x7+parseInt(_0x10c6c2(0xa9))/0x8;if(_0x33e0c0===_0xf46bcb)break;else _0x54d4e8['push'](_0x54d4e8['shift']());}catch(_0x392070){_0x54d4e8['push'](_0x54d4e8['shift']());}}}(_0x598b,0xe106a));import{BalloonPanelView as _0x410fcf,ButtonView as _0x417847,clickOutsideHandler as _0x581ac9,FormHeaderView as _0x2b32b5}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x54043c}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x297102}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x17fb64}from'./aichatcontextresourcesview.js';const Nr=_0x5b7ec2(0xae),Xr=_0x5b7ec2(0x8d),Kr=_0x5b7ec2(0x96);export class AIChatResourcesBalloonView{[_0x5b7ec2(0xa3)]=new Map();[_0x5b7ec2(0x90)];[_0x5b7ec2(0xb6)];[_0x5b7ec2(0xa8)];constructor(_0x1b9dfb,_0x5f47bf,_0x2fb488){const _0x342cb3=_0x5b7ec2;this[_0x342cb3(0xb6)]=_0x1b9dfb,this[_0x342cb3(0x90)]=_0x5f47bf,this[_0x342cb3(0xa8)]=_0x2fb488;}[_0x5b7ec2(0x87)](_0x4a9054){const _0x2fe907=_0x5b7ec2;let _0x3a7af4=this[_0x2fe907(0xa3)][_0x2fe907(0x9b)](_0x4a9054['id']);_0x3a7af4||(_0x3a7af4=this[_0x2fe907(0xc1)](),this[_0x2fe907(0xa3)][_0x2fe907(0xb2)](_0x4a9054['id'],_0x3a7af4),this[_0x2fe907(0x9a)](_0x3a7af4)),this[_0x2fe907(0xac)](_0x3a7af4,_0x4a9054),_0x3a7af4[_0x2fe907(0xa6)]();const _0x2ad822=this[_0x2fe907(0xa8)][_0x2fe907(0xb8)]();_0x2ad822&&_0x3a7af4[_0x2fe907(0xbf)]({'target':_0x2ad822,'limiter':this[_0x2fe907(0xa8)][_0x2fe907(0xab)]()});}[_0x5b7ec2(0xad)](_0x20751b,_0x99a6a4,_0x58378a){const _0x37d8bb=_0x5b7ec2,_0x5b1218=this[_0x37d8bb(0xa3)][_0x37d8bb(0x9b)](_0x20751b);if(!_0x5b1218)return;const _0x1a59b5=this[_0x37d8bb(0xb9)](_0x5b1218);_0x1a59b5&&(_0x1a59b5[_0x37d8bb(0xb3)](_0x99a6a4,_0x58378a),_0x1a59b5[_0x37d8bb(0x97)](_0x37d8bb(0xaf),()=>{const _0x35e957=_0x37d8bb;_0x5b1218[_0x35e957(0xbf)]({'target':this[_0x35e957(0xa8)][_0x35e957(0xb8)](),'limiter':this[_0x35e957(0xa8)][_0x35e957(0xab)]()});}));}[_0x5b7ec2(0xb0)](_0x526257){const _0x140020=_0x5b7ec2,_0x2140bb=this[_0x140020(0xa3)][_0x140020(0x9b)](_0x526257);_0x2140bb&&requestAnimationFrame(()=>{const _0xaf4531=_0x140020;_0x2140bb[_0xaf4531(0x95)](),this[_0xaf4531(0xa3)][_0xaf4531(0xbb)](_0x526257),this[_0xaf4531(0xa8)][_0xaf4531(0xa5)]();});}[_0x5b7ec2(0xb1)](){const _0x220a30=_0x5b7ec2;for(const _0x5d7bee of this[_0x220a30(0xa3)][_0x220a30(0xbd)]())if(_0x5d7bee[_0x220a30(0xa1)])return!0x0;return!0x1;}[_0x5b7ec2(0x89)](_0x678b16,_0x2c33a0,_0x3778ea){const _0x19bf7e=_0x5b7ec2,_0x3fa257=this[_0x19bf7e(0xa3)][_0x19bf7e(0x9b)](_0x678b16);if(!_0x3fa257||!_0x3fa257[_0x19bf7e(0xa1)])return;const _0x166136=this[_0x19bf7e(0xa8)][_0x19bf7e(0xb8)]();if(!_0x166136)return;_0x3fa257[_0x19bf7e(0xbf)]({'target':_0x166136,'limiter':this[_0x19bf7e(0xa8)][_0x19bf7e(0xab)]()});const _0x12987c=this[_0x19bf7e(0xb9)](_0x3fa257);_0x12987c&&_0x12987c[_0x19bf7e(0x89)](_0x2c33a0,_0x3778ea);}[_0x5b7ec2(0xb7)](){const _0x1d8e16=_0x5b7ec2;for(const _0x2ed6b2 of this[_0x1d8e16(0xa3)][_0x1d8e16(0xbd)]())_0x2ed6b2[_0x1d8e16(0xb7)]();this[_0x1d8e16(0xa3)][_0x1d8e16(0x8a)]();}[_0x5b7ec2(0xc1)](){const _0x4128d9=_0x5b7ec2,_0x222867=new _0x410fcf(this[_0x4128d9(0xb6)]);return _0x222867[_0x4128d9(0x88)]({'attributes':{'class':Nr}}),this[_0x4128d9(0x90)][_0x4128d9(0xb5)](_0x222867),_0x222867;}[_0x5b7ec2(0xac)](_0x13ea3f,_0x4b3213){const _0x47a59a=_0x5b7ec2;_0x13ea3f[_0x47a59a(0x99)][_0x47a59a(0x8a)]();const _0x4f0c92=this[_0x47a59a(0xbc)](_0x13ea3f,_0x4b3213);_0x13ea3f[_0x47a59a(0x99)][_0x47a59a(0xb5)](_0x4f0c92);const _0x347568=this[_0x47a59a(0x93)](_0x4b3213);_0x13ea3f[_0x47a59a(0x99)][_0x47a59a(0xb5)](_0x347568);}[_0x5b7ec2(0xbc)](_0x4507a8,_0x6f2bc3){const _0x590451=_0x5b7ec2,_0x24ea5d=this[_0x590451(0x8b)](_0x4507a8),_0x275933=new _0x2b32b5(this[_0x590451(0xb6)],{'label':_0x6f2bc3[_0x590451(0x9f)],'class':Kr});return _0x275933[_0x590451(0xa0)][_0x590451(0xb5)](_0x24ea5d,0x0),_0x275933;}[_0x5b7ec2(0x8b)](_0x30c91d){const _0x2ed176=_0x5b7ec2,_0x395eef=new _0x417847(this[_0x2ed176(0xb6)]);return _0x395eef[_0x2ed176(0xb2)]({'icon':_0x54043c,'tooltip':_0x297102(this[_0x2ed176(0xb6)],_0x2ed176(0x9d)),'tooltipPosition':'n','class':Xr}),_0x395eef['on'](_0x2ed176(0x92),()=>{const _0x7fb6cb=_0x2ed176;_0x30c91d[_0x7fb6cb(0x95)](),this[_0x7fb6cb(0xa8)][_0x7fb6cb(0x9c)]();}),_0x395eef;}[_0x5b7ec2(0x93)](_0x11d8e2){const _0x50a087=_0x5b7ec2,_0x15cc53=new _0x17fb64(this[_0x50a087(0xb6)],{'source':_0x11d8e2,'searchInputVisibleFrom':this[_0x50a087(0xa8)][_0x50a087(0xba)]});return _0x15cc53['on'](_0x50a087(0x8e),(_0x5b52e3,_0x17b4c8)=>{const _0x44295d=_0x50a087;this[_0x44295d(0xa8)][_0x44295d(0xa2)](_0x17b4c8);}),_0x15cc53['on'](_0x50a087(0xb4),(_0x391a71,_0x1b4da4)=>{const _0x87075c=_0x50a087;this[_0x87075c(0xa8)][_0x87075c(0xaa)](_0x1b4da4[_0x87075c(0x8f)],_0x1b4da4[_0x87075c(0x98)]),this[_0x87075c(0xb0)](_0x11d8e2['id']);}),_0x15cc53;}[_0x5b7ec2(0xb9)](_0x2461ff){const _0x30c367=_0x5b7ec2,_0x25cd03=_0x2461ff[_0x30c367(0x99)][_0x30c367(0x9b)](0x1);return _0x25cd03 instanceof _0x17fb64?_0x25cd03:null;}[_0x5b7ec2(0x9a)](_0x477d9f){const _0x185edd=_0x5b7ec2;_0x581ac9({'emitter':_0x477d9f,'contextElements':[_0x477d9f[_0x185edd(0xbe)]],'callback':()=>{const _0x52b6d0=_0x185edd;_0x477d9f[_0x52b6d0(0x95)](),this[_0x52b6d0(0xa8)][_0x52b6d0(0xa5)]();},'activator':()=>_0x477d9f[_0x185edd(0xa1)]});}}
23
+ const _0x4ffe68=_0x4923;function _0x343d(){const _0x150cc7=['clear','show','element','resource','1276620PAbPWu','pin','_locale','getLimiterElement','onResourceSelected','values','set','7KRmrhZ','_createBackButton','loadSourceResources','once','updateResourceState','setResources','execute','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','hide','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','393172IChTXi','showSourceResourcesBalloon','addResourceToContext','ck-ai-chat-context-controls__source-balloon-panel','_createBalloonResourcesView','_createSourceResourceBalloonPanel','closeSourceResourceBalloon','getTargetElement','_bodyCollection','add','destroy','content','onLoadSourceResources','_addSourceResourceContent','1244514PWEWON','extendTemplate','651946YUbKCx','source','3cnjkBz','7888446OuLuvi','label','_getResourcesViewFromBalloon','onBalloonClosed','_config','delete','children','_setupSingleResourceBalloonClickOutsideHandler','isAnyResourceBalloonVisible','1075808TCdUgY','_sourceResourceBalloons','ck-button-icon\x20ck-button-back','_createBalloonHeader','onBackToContext','322656UDKKrw','isVisible','get','populateSourceResourceBalloon','change:isLoading','searchInputVisibleFrom'];_0x343d=function(){return _0x150cc7;};return _0x343d();}(function(_0x2a454c,_0x5cd50f){const _0x5cdef9=_0x4923,_0x1e842b=_0x2a454c();while(!![]){try{const _0x23dfad=parseInt(_0x5cdef9(0x128))/0x1+parseInt(_0x5cdef9(0x138))/0x2+-parseInt(_0x5cdef9(0x13a))/0x3*(-parseInt(_0x5cdef9(0x144))/0x4)+parseInt(_0x5cdef9(0x117))/0x5+parseInt(_0x5cdef9(0x136))/0x6*(-parseInt(_0x5cdef9(0x11e))/0x7)+parseInt(_0x5cdef9(0x10d))/0x8+-parseInt(_0x5cdef9(0x13b))/0x9;if(_0x23dfad===_0x5cd50f)break;else _0x1e842b['push'](_0x1e842b['shift']());}catch(_0x154d1c){_0x1e842b['push'](_0x1e842b['shift']());}}}(_0x343d,0x30ca0));import{BalloonPanelView as _0x49f415,ButtonView as _0x5601c9,clickOutsideHandler as _0x4e9d86,FormHeaderView as _0x18579b}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x4d6fdb}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2fed5c}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x6b3cd5}from'./aichatcontextresourcesview.js';const Qr=_0x4ffe68(0x12b),Wr=_0x4ffe68(0x10a),Yr=_0x4ffe68(0x127);function _0x4923(_0xd50905,_0x4de6c3){const _0x343d30=_0x343d();return _0x4923=function(_0x49230d,_0x41d626){_0x49230d=_0x49230d-0x109;let _0x526dee=_0x343d30[_0x49230d];return _0x526dee;},_0x4923(_0xd50905,_0x4de6c3);}export class AIChatResourcesBalloonView{[_0x4ffe68(0x109)]=new Map();[_0x4ffe68(0x130)];[_0x4ffe68(0x119)];[_0x4ffe68(0x13f)];constructor(_0x4b5afb,_0x5a40a8,_0x574c0c){const _0x46ef08=_0x4ffe68;this[_0x46ef08(0x119)]=_0x4b5afb,this[_0x46ef08(0x130)]=_0x5a40a8,this[_0x46ef08(0x13f)]=_0x574c0c;}[_0x4ffe68(0x129)](_0x43414b){const _0x1b32b3=_0x4ffe68;let _0x32e5a0=this[_0x1b32b3(0x109)][_0x1b32b3(0x10f)](_0x43414b['id']);_0x32e5a0||(_0x32e5a0=this[_0x1b32b3(0x12d)](),this[_0x1b32b3(0x109)][_0x1b32b3(0x11d)](_0x43414b['id'],_0x32e5a0),this[_0x1b32b3(0x142)](_0x32e5a0)),this[_0x1b32b3(0x135)](_0x32e5a0,_0x43414b),_0x32e5a0[_0x1b32b3(0x114)]();const _0xf5c66c=this[_0x1b32b3(0x13f)][_0x1b32b3(0x12f)]();_0xf5c66c&&_0x32e5a0[_0x1b32b3(0x118)]({'target':_0xf5c66c,'limiter':this[_0x1b32b3(0x13f)][_0x1b32b3(0x11a)]()});}[_0x4ffe68(0x110)](_0x32064b,_0x26c52,_0x1e9cdd){const _0x2a80a6=_0x4ffe68,_0xb71561=this[_0x2a80a6(0x109)][_0x2a80a6(0x10f)](_0x32064b);if(!_0xb71561)return;const _0x2f58cf=this[_0x2a80a6(0x13d)](_0xb71561);_0x2f58cf&&(_0x2f58cf[_0x2a80a6(0x123)](_0x26c52,_0x1e9cdd),_0x2f58cf[_0x2a80a6(0x121)](_0x2a80a6(0x111),()=>{const _0x5228d6=_0x2a80a6;_0xb71561[_0x5228d6(0x118)]({'target':this[_0x5228d6(0x13f)][_0x5228d6(0x12f)](),'limiter':this[_0x5228d6(0x13f)][_0x5228d6(0x11a)]()});}));}[_0x4ffe68(0x12e)](_0x3c9820){const _0x4d4285=_0x4ffe68,_0x39124f=this[_0x4d4285(0x109)][_0x4d4285(0x10f)](_0x3c9820);_0x39124f&&requestAnimationFrame(()=>{const _0x39c83e=_0x4d4285;_0x39124f[_0x39c83e(0x126)](),this[_0x39c83e(0x109)][_0x39c83e(0x140)](_0x3c9820),this[_0x39c83e(0x13f)][_0x39c83e(0x13e)]();});}[_0x4ffe68(0x143)](){const _0x37d30c=_0x4ffe68;for(const _0x1ebd9d of this[_0x37d30c(0x109)][_0x37d30c(0x11c)]())if(_0x1ebd9d[_0x37d30c(0x10e)])return!0x0;return!0x1;}[_0x4ffe68(0x122)](_0x381c99,_0x1f8197,_0x33592b){const _0x58827c=_0x4ffe68,_0x592759=this[_0x58827c(0x109)][_0x58827c(0x10f)](_0x381c99);if(!_0x592759||!_0x592759[_0x58827c(0x10e)])return;const _0x533b6c=this[_0x58827c(0x13f)][_0x58827c(0x12f)]();if(!_0x533b6c)return;_0x592759[_0x58827c(0x118)]({'target':_0x533b6c,'limiter':this[_0x58827c(0x13f)][_0x58827c(0x11a)]()});const _0x4a4edc=this[_0x58827c(0x13d)](_0x592759);_0x4a4edc&&_0x4a4edc[_0x58827c(0x122)](_0x1f8197,_0x33592b);}[_0x4ffe68(0x132)](){const _0xef3d33=_0x4ffe68;for(const _0x536bb7 of this[_0xef3d33(0x109)][_0xef3d33(0x11c)]())_0x536bb7[_0xef3d33(0x132)]();this[_0xef3d33(0x109)][_0xef3d33(0x113)]();}[_0x4ffe68(0x12d)](){const _0x300bb2=_0x4ffe68,_0x2a48f0=new _0x49f415(this[_0x300bb2(0x119)]);return _0x2a48f0[_0x300bb2(0x137)]({'attributes':{'class':Qr}}),this[_0x300bb2(0x130)][_0x300bb2(0x131)](_0x2a48f0),_0x2a48f0;}[_0x4ffe68(0x135)](_0x1b903c,_0x33cafb){const _0x41a050=_0x4ffe68;_0x1b903c[_0x41a050(0x133)][_0x41a050(0x113)]();const _0x585bb3=this[_0x41a050(0x10b)](_0x1b903c,_0x33cafb);_0x1b903c[_0x41a050(0x133)][_0x41a050(0x131)](_0x585bb3);const _0x5027c8=this[_0x41a050(0x12c)](_0x33cafb);_0x1b903c[_0x41a050(0x133)][_0x41a050(0x131)](_0x5027c8);}[_0x4ffe68(0x10b)](_0x7c2159,_0x4f8932){const _0x3b753e=_0x4ffe68,_0x47261c=this[_0x3b753e(0x11f)](_0x7c2159),_0x5b68da=new _0x18579b(this[_0x3b753e(0x119)],{'label':_0x4f8932[_0x3b753e(0x13c)],'class':Yr});return _0x5b68da[_0x3b753e(0x141)][_0x3b753e(0x131)](_0x47261c,0x0),_0x5b68da;}[_0x4ffe68(0x11f)](_0x262340){const _0x33b334=_0x4ffe68,_0x539d39=new _0x5601c9(this[_0x33b334(0x119)]);return _0x539d39[_0x33b334(0x11d)]({'icon':_0x4d6fdb,'tooltip':_0x2fed5c(this[_0x33b334(0x119)],_0x33b334(0x125)),'tooltipPosition':'n','class':Wr}),_0x539d39['on'](_0x33b334(0x124),()=>{const _0x347f7c=_0x33b334;_0x262340[_0x347f7c(0x126)](),this[_0x347f7c(0x13f)][_0x347f7c(0x10c)]();}),_0x539d39;}[_0x4ffe68(0x12c)](_0x396f04){const _0x1be7be=_0x4ffe68,_0x39a9ec=new _0x6b3cd5(this[_0x1be7be(0x119)],{'source':_0x396f04,'searchInputVisibleFrom':this[_0x1be7be(0x13f)][_0x1be7be(0x112)]});return _0x39a9ec['on'](_0x1be7be(0x120),(_0x3220eb,_0x5c2e8f)=>{const _0x18af6b=_0x1be7be;this[_0x18af6b(0x13f)][_0x18af6b(0x134)](_0x5c2e8f);}),_0x39a9ec['on'](_0x1be7be(0x12a),(_0x56a06e,_0x5c875c)=>{const _0x483ce5=_0x1be7be;this[_0x483ce5(0x13f)][_0x483ce5(0x11b)](_0x5c875c[_0x483ce5(0x139)],_0x5c875c[_0x483ce5(0x116)]),this[_0x483ce5(0x12e)](_0x396f04['id']);}),_0x39a9ec;}[_0x4ffe68(0x13d)](_0x5b7d69){const _0x37b38d=_0x4ffe68,_0x5f4823=_0x5b7d69[_0x37b38d(0x133)][_0x37b38d(0x10f)](0x1);return _0x5f4823 instanceof _0x6b3cd5?_0x5f4823:null;}[_0x4ffe68(0x142)](_0x2c4996){const _0x985e9b=_0x4ffe68;_0x4e9d86({'emitter':_0x2c4996,'contextElements':[_0x2c4996[_0x985e9b(0x115)]],'callback':()=>{const _0x4fd6a7=_0x985e9b;_0x2c4996[_0x4fd6a7(0x126)](),this[_0x4fd6a7(0x13f)][_0x4fd6a7(0x13e)]();},'activator':()=>_0x2c4996[_0x985e9b(0x10e)]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x595504,IconView as _0xd2b0ea,LabeledFieldView as _0x23d59b,createLabeledInputText as _0x1252c2}from'ckeditor5/src/ui.js';import{IconLoupe as _0x3091e0,IconCancel as _0x519b8a}from'ckeditor5/src/icons.js';import{getTranslation as _0x61e8ef}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x23d59b{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0xef949a){const t=_0xef949a['t'],_0x315d00={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x1252c2,'label':_0x61e8ef(_0xef949a,'AI_CHAT_SEARCH_RESOURCES')};super(_0xef949a,_0x315d00['creator']),this['label']=_0x315d00['label'],this['_viewConfig']=_0x315d00,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0xef949a,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x5e5a14){this['fire']('search',_0x5e5a14);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0xd2b0ea(),this['iconView']['content']=_0x3091e0,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x495a78,t){this['resetButtonView']=new _0x595504(_0x495a78),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x519b8a,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x197f22=>!_0x197f22),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
23
+ import{ButtonView as _0x5cda1f,IconView as _0x1ef2c9,LabeledFieldView as _0xd6b3ee,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x4d6cfa,IconCancel as _0x281b27}from'ckeditor5/src/icons.js';import{getTranslation as _0x417901}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0xd6b3ee{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x2d056d){const t=_0x2d056d['t'],_0x2d1696={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x417901(_0x2d056d,'AI_CHAT_SEARCH_RESOURCES')};super(_0x2d056d,_0x2d1696['creator']),this['label']=_0x2d1696['label'],this['_viewConfig']=_0x2d1696,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x2d056d,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x2f3cb4){this['fire']('search',_0x2f3cb4);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x1ef2c9(),this['iconView']['content']=_0x4d6cfa,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x4d4077,t){this['resetButtonView']=new _0x5cda1f(_0x4d4077),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x281b27,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x5ab275=>!_0x5ab275),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3332c9=_0x237e;(function(_0x27794e,_0x3f7275){const _0x30486b=_0x237e,_0x1acf01=_0x27794e();while(!![]){try{const _0x3a8ac8=parseInt(_0x30486b(0x124))/0x1+-parseInt(_0x30486b(0x114))/0x2+-parseInt(_0x30486b(0x11d))/0x3*(parseInt(_0x30486b(0x128))/0x4)+parseInt(_0x30486b(0x12b))/0x5*(-parseInt(_0x30486b(0x116))/0x6)+parseInt(_0x30486b(0x130))/0x7+parseInt(_0x30486b(0x11f))/0x8+parseInt(_0x30486b(0x126))/0x9;if(_0x3a8ac8===_0x3f7275)break;else _0x1acf01['push'](_0x1acf01['shift']());}catch(_0x1bed80){_0x1acf01['push'](_0x1acf01['shift']());}}}(_0x4d81,0x4c6e9));import{View as _0x405fc1}from'ckeditor5/src/ui.js';function _0x237e(_0xb50561,_0x5eec28){const _0x4d8130=_0x4d81();return _0x237e=function(_0x237efd,_0x412315){_0x237efd=_0x237efd-0x113;let _0x308a6d=_0x4d8130[_0x237efd];return _0x308a6d;},_0x237e(_0xb50561,_0x5eec28);}import{AIChatContextItemButtonView as _0x1cb064}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x4aef88}from'../controls/aichatchipsoverflowmanager.js';const $o=_0x3332c9(0x129),Ko=_0x3332c9(0x11c),Qo=_0x3332c9(0x117),Uo=_0x3332c9(0x11e),No=_0x3332c9(0x122),Oo=_0x3332c9(0x125);export class AIChatFeedContextChipsView extends _0x405fc1{[_0x3332c9(0x119)]=this[_0x3332c9(0x123)]();[_0x3332c9(0x127)];[_0x3332c9(0x118)];constructor(_0x1164ef,_0x4479f5,_0x256296){const _0x250895=_0x3332c9;super(_0x1164ef),this[_0x250895(0x118)]=_0x256296,this[_0x250895(0x12e)](_0x4479f5);const _0x28c0f8={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Qo,'controlsButton':Uo}};this[_0x250895(0x127)]=new _0x4aef88(_0x1164ef,this[_0x250895(0x119)],_0x28c0f8,this[_0x250895(0x118)],this),this[_0x250895(0x120)]({'tag':_0x250895(0x121),'attributes':{'class':[$o,'ck',_0x250895(0x12f)]},'children':[{'tag':_0x250895(0x121),'attributes':{'class':Ko},'children':this[_0x250895(0x119)]}]});}[_0x3332c9(0x115)](){const _0x325d3b=_0x3332c9;super[_0x325d3b(0x115)]();const _0x4d8057=this[_0x325d3b(0x12d)][_0x325d3b(0x12a)]('.'+Ko);_0x4d8057&&(this[_0x325d3b(0x127)][_0x325d3b(0x12c)](_0x4d8057),this[_0x325d3b(0x127)][_0x325d3b(0x131)]());}[_0x3332c9(0x11a)](){const _0x10de76=_0x3332c9;super[_0x10de76(0x11a)](),this[_0x10de76(0x127)][_0x10de76(0x11a)]();}[_0x3332c9(0x12e)](_0x5326bc){const _0x17d341=_0x3332c9;for(const _0x1d8ec7 of _0x5326bc){const _0x1f37e6=new _0x1cb064(this[_0x17d341(0x11b)],_0x1d8ec7,!0x0,!0x1);this[_0x17d341(0x119)][_0x17d341(0x113)](_0x1f37e6);}}}function _0x4d81(){const _0x243075=['1541351HmYCeH','reorganizeChips','add','1230130wKQAgp','render','12ZRiSGq','ck-ai-chat-context-chips-wrapper-balloon','_bodyCollection','_contextChips','destroy','locale','ck-ai-chat-context-chips-wrapper','243996SDanjn','ck-ai-chat-controls-button','1346408sBvLWM','setTemplate','div','ck-ai-chat-controls_context_show-more-button','createCollection','182679NquXsW','ck-ai-chat-context-controls__show-more-balloon-panel','6372513MgHPJu','_overflowManager','4caGnWP','ck-ai-chat__feed__context-chips','querySelector','674420ekjPSC','setContainerElement','element','_createContextChips','ck-reset_all'];_0x4d81=function(){return _0x243075;};return _0x4d81();}
23
+ const _0x5ada5b=_0x57b1;(function(_0x1d57a6,_0x21b499){const _0x248762=_0x57b1,_0x2c9647=_0x1d57a6();while(!![]){try{const _0x142fb4=parseInt(_0x248762(0x1c7))/0x1+parseInt(_0x248762(0x1cb))/0x2+parseInt(_0x248762(0x1be))/0x3*(-parseInt(_0x248762(0x1b8))/0x4)+-parseInt(_0x248762(0x1c6))/0x5+-parseInt(_0x248762(0x1b0))/0x6*(parseInt(_0x248762(0x1b6))/0x7)+parseInt(_0x248762(0x1bc))/0x8+parseInt(_0x248762(0x1b2))/0x9*(parseInt(_0x248762(0x1c1))/0xa);if(_0x142fb4===_0x21b499)break;else _0x2c9647['push'](_0x2c9647['shift']());}catch(_0x48a774){_0x2c9647['push'](_0x2c9647['shift']());}}}(_0x2605,0xed7ef));import{View as _0x14237d}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x307015}from'../controls/aichatcontextitembuttonview.js';function _0x2605(){const _0x2bd93e=['3672475noSHhA','52293yVDZGe','reorganizeChips','createCollection','_createContextChips','3444214dKJAmH','ck-ai-chat-context-chips-wrapper-balloon','render','ck-ai-chat-context-controls__show-more-balloon-panel','div','66rvSjHb','element','9zmivMC','ck-reset_all','_overflowManager','setContainerElement','347627NLkbHo','ck-ai-chat-controls-button','583448lRhPPn','_bodyCollection','querySelector','ck-ai-chat-controls_context_show-more-button','2388504bBcFCZ','destroy','33pFNkmM','_contextChips','add','17850680wjrcwS','ck-ai-chat__feed__context-chips','locale','ck-ai-chat-context-chips-wrapper','setTemplate'];_0x2605=function(){return _0x2bd93e;};return _0x2605();}import{AIChatChipsOverflowManager as _0x5db2e4}from'../controls/aichatchipsoverflowmanager.js';function _0x57b1(_0x18fde0,_0x2f55d8){const _0x260541=_0x2605();return _0x57b1=function(_0x57b156,_0x5922ad){_0x57b156=_0x57b156-0x1ac;let _0x57ff73=_0x260541[_0x57b156];return _0x57ff73;},_0x57b1(_0x18fde0,_0x2f55d8);}const Fo=_0x5ada5b(0x1c2),$o=_0x5ada5b(0x1c4),qo=_0x5ada5b(0x1ac),Vo=_0x5ada5b(0x1b7),Io=_0x5ada5b(0x1bb),Po=_0x5ada5b(0x1ae);export class AIChatFeedContextChipsView extends _0x14237d{[_0x5ada5b(0x1bf)]=this[_0x5ada5b(0x1c9)]();[_0x5ada5b(0x1b4)];[_0x5ada5b(0x1b9)];constructor(_0x185224,_0x35f060,_0x56f080){const _0x45f43d=_0x5ada5b;super(_0x185224),this[_0x45f43d(0x1b9)]=_0x56f080,this[_0x45f43d(0x1ca)](_0x35f060);const _0x4da0fb={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':qo,'controlsButton':Vo}};this[_0x45f43d(0x1b4)]=new _0x5db2e4(_0x185224,this[_0x45f43d(0x1bf)],_0x4da0fb,this[_0x45f43d(0x1b9)],this),this[_0x45f43d(0x1c5)]({'tag':_0x45f43d(0x1af),'attributes':{'class':[Fo,'ck',_0x45f43d(0x1b3)]},'children':[{'tag':_0x45f43d(0x1af),'attributes':{'class':$o},'children':this[_0x45f43d(0x1bf)]}]});}[_0x5ada5b(0x1ad)](){const _0x58c64f=_0x5ada5b;super[_0x58c64f(0x1ad)]();const _0x53c980=this[_0x58c64f(0x1b1)][_0x58c64f(0x1ba)]('.'+$o);_0x53c980&&(this[_0x58c64f(0x1b4)][_0x58c64f(0x1b5)](_0x53c980),this[_0x58c64f(0x1b4)][_0x58c64f(0x1c8)]());}[_0x5ada5b(0x1bd)](){const _0x5e27ca=_0x5ada5b;super[_0x5e27ca(0x1bd)](),this[_0x5e27ca(0x1b4)][_0x5e27ca(0x1bd)]();}[_0x5ada5b(0x1ca)](_0x26f365){const _0x58d0e8=_0x5ada5b;for(const _0x1026b0 of _0x26f365){const _0x2340c5=new _0x307015(this[_0x58d0e8(0x1c3)],_0x1026b0,!0x0,!0x1);this[_0x58d0e8(0x1bf)][_0x58d0e8(0x1c0)](_0x2340c5);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1ff2(){var _0x4856d2=['setContent','markAsDone','level','2Hoxjny','367763fLiSUC','1615450PbNzTV','915228BIurjL','ck-ai-notification','ck-ai-notification_warning','render','8eaXNHD','954912hhEcPQ','element','22fpFWlt','innerHTML','614091XpOjys','options','initialContent','warning','extendTemplate','319163xyftSV','204rODxMW','5XjkUzt','2331atheSB','834yDdHeQ','ck-ai-notification_error'];_0x1ff2=function(){return _0x4856d2;};return _0x1ff2();}var _0x5b54e8=_0x1144;function _0x1144(_0x375dab,_0x6e1e68){var _0x1ff276=_0x1ff2();return _0x1144=function(_0x11449e,_0xc807fa){_0x11449e=_0x11449e-0x65;var _0x51bd69=_0x1ff276[_0x11449e];return _0x51bd69;},_0x1144(_0x375dab,_0x6e1e68);}(function(_0x5beb96,_0x100fb0){var _0x4708fb=_0x1144,_0x4f5b37=_0x5beb96();while(!![]){try{var _0x5b2473=parseInt(_0x4708fb(0x7d))/0x1+-parseInt(_0x4708fb(0x7c))/0x2*(-parseInt(_0x4708fb(0x6e))/0x3)+parseInt(_0x4708fb(0x6a))/0x4*(-parseInt(_0x4708fb(0x75))/0x5)+-parseInt(_0x4708fb(0x77))/0x6*(-parseInt(_0x4708fb(0x76))/0x7)+-parseInt(_0x4708fb(0x69))/0x8*(parseInt(_0x4708fb(0x65))/0x9)+-parseInt(_0x4708fb(0x7e))/0xa*(-parseInt(_0x4708fb(0x6c))/0xb)+parseInt(_0x4708fb(0x74))/0xc*(-parseInt(_0x4708fb(0x73))/0xd);if(_0x5b2473===_0x100fb0)break;else _0x4f5b37['push'](_0x4f5b37['shift']());}catch(_0x3988db){_0x4f5b37['push'](_0x4f5b37['shift']());}}}(_0x1ff2,0x2cef2));import{AIChatFeedItemView as _0x36bed6}from'./aichatfeeditemview.js';export class AIChatFeedErrorItemView extends _0x36bed6{constructor(_0x4a36ca){var _0x55b007=_0x1144;super(_0x4a36ca),this[_0x55b007(0x72)]({'attributes':{'class':[_0x55b007(0x66),_0x55b007(0x71)===_0x4a36ca[_0x55b007(0x7b)]?_0x55b007(0x67):_0x55b007(0x78)]}});}[_0x5b54e8(0x68)](){var _0x39149a=_0x5b54e8;super[_0x39149a(0x68)](),this[_0x39149a(0x79)](this[_0x39149a(0x6f)][_0x39149a(0x70)]),this[_0x39149a(0x7a)]();}[_0x5b54e8(0x79)](_0xbe84c9){var _0xb50935=_0x5b54e8;this[_0xb50935(0x6b)][_0xb50935(0x6d)]=_0xbe84c9;}}
23
+ var _0x2b15c0=_0xee84;(function(_0x2a754a,_0x17db71){var _0x2f6b09=_0xee84,_0x44f070=_0x2a754a();while(!![]){try{var _0x578ecf=-parseInt(_0x2f6b09(0x162))/0x1+parseInt(_0x2f6b09(0x161))/0x2+parseInt(_0x2f6b09(0x16a))/0x3*(-parseInt(_0x2f6b09(0x166))/0x4)+parseInt(_0x2f6b09(0x168))/0x5*(parseInt(_0x2f6b09(0x164))/0x6)+-parseInt(_0x2f6b09(0x170))/0x7*(parseInt(_0x2f6b09(0x165))/0x8)+parseInt(_0x2f6b09(0x16d))/0x9+parseInt(_0x2f6b09(0x173))/0xa;if(_0x578ecf===_0x17db71)break;else _0x44f070['push'](_0x44f070['shift']());}catch(_0x2ae4ec){_0x44f070['push'](_0x44f070['shift']());}}}(_0x2ac5,0xdabac));function _0xee84(_0x54a609,_0xe7f09a){var _0x2ac55d=_0x2ac5();return _0xee84=function(_0xee8476,_0xe21fec){_0xee8476=_0xee8476-0x15e;var _0x1126b0=_0x2ac55d[_0xee8476];return _0x1126b0;},_0xee84(_0x54a609,_0xe7f09a);}function _0x2ac5(){var _0x1f5237=['98706hJMtCM','6965232qjlBzN','4344nVllxA','setContent','515BlLGoG','ck-ai-notification_warning','2448jMPXxR','extendTemplate','markAsDone','7410285viOQEc','innerHTML','warning','7WbGizD','render','ck-ai-notification_error','4894760omgomz','level','initialContent','element','ck-ai-notification','1530134xqKNOW','1119615IVvBqg','options'];_0x2ac5=function(){return _0x1f5237;};return _0x2ac5();}import{AIChatFeedItemView as _0x96dabb}from'./aichatfeeditemview.js';export class AIChatFeedErrorItemView extends _0x96dabb{constructor(_0x39a5d3){var _0x230de1=_0xee84;super(_0x39a5d3),this[_0x230de1(0x16b)]({'attributes':{'class':[_0x230de1(0x160),_0x230de1(0x16f)===_0x39a5d3[_0x230de1(0x174)]?_0x230de1(0x169):_0x230de1(0x172)]}});}[_0x2b15c0(0x171)](){var _0x238e91=_0x2b15c0;super[_0x238e91(0x171)](),this[_0x238e91(0x167)](this[_0x238e91(0x163)][_0x238e91(0x15e)]),this[_0x238e91(0x16c)]();}[_0x2b15c0(0x167)](_0x31d65b){var _0x444919=_0x2b15c0;this[_0x444919(0x15f)][_0x444919(0x16e)]=_0x31d65b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d0e93=_0x548d;(function(_0x1596b5,_0x58f09c){const _0x46463a=_0x548d,_0x329a8e=_0x1596b5();while(!![]){try{const _0x13708f=parseInt(_0x46463a(0x7a))/0x1+-parseInt(_0x46463a(0x74))/0x2*(parseInt(_0x46463a(0x7d))/0x3)+parseInt(_0x46463a(0x6a))/0x4+-parseInt(_0x46463a(0x6c))/0x5*(-parseInt(_0x46463a(0x78))/0x6)+parseInt(_0x46463a(0x76))/0x7*(-parseInt(_0x46463a(0x69))/0x8)+parseInt(_0x46463a(0x6e))/0x9+-parseInt(_0x46463a(0x7e))/0xa;if(_0x13708f===_0x58f09c)break;else _0x329a8e['push'](_0x329a8e['shift']());}catch(_0x41fb8f){_0x329a8e['push'](_0x329a8e['shift']());}}}(_0x1b42,0x7949e));import{IconBulb as _0x22a873,IconWeb as _0x559dcf}from'@ckeditor/ckeditor5-icons';function _0x548d(_0x48e97f,_0x5808a7){const _0x1b4258=_0x1b42();return _0x548d=function(_0x548dbf,_0x419c5d){_0x548dbf=_0x548dbf-0x69;let _0x26089f=_0x1b4258[_0x548dbf];return _0x26089f;},_0x548d(_0x48e97f,_0x5808a7);}import{IconView as _0x39fbf5,View as _0x2a4d62}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x3e64fc}from'./aichatfeeditemview.js';import{getTranslation as _0x485ee5}from'../../../aicore/utils/common-translations.js';function _0x1b42(){const _0x253bac=['span','children','624886uCyDXc','add','182MKxeCx','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','894ghMICV','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','979724pEYdMX','ck-hidden','setTemplate','6btshKi','1584900LgXVnd','capabilities','extendTemplate','ck-ai-chat__feed__interaction-header','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','186712IKEyWm','1116316PLmbku','push','8495rPjjkJ','ck-ai-chat__feed__interaction-header__capabilities','3375306FtyhDt','div','ck-ai-chat__feed__interaction-header__capabilities__text','content'];_0x1b42=function(){return _0x253bac;};return _0x1b42();}export class AIChatFeedInteractionHeaderView extends _0x3e64fc{[_0x1d0e93(0x7f)];constructor(_0x3f8e4e,_0x4f2ac6){const _0x1b7eb2=_0x1d0e93;super(_0x4f2ac6);const {isWebSearchEnabled:_0x1b88a4,isReasoningEnabled:_0x28302a}=_0x4f2ac6[_0x1b7eb2(0x7f)],_0x3174d0=[];let _0x5bed38='';_0x1b88a4&&_0x28302a?(_0x5bed38=_0x485ee5(_0x3f8e4e,_0x1b7eb2(0x79)),_0x3174d0[_0x1b7eb2(0x6b)](aa(_0x559dcf)),_0x3174d0[_0x1b7eb2(0x6b)](aa(_0x22a873))):_0x1b88a4?(_0x5bed38=_0x485ee5(_0x3f8e4e,_0x1b7eb2(0x77)),_0x3174d0[_0x1b7eb2(0x6b)](aa(_0x559dcf))):_0x28302a&&(_0x5bed38=_0x485ee5(_0x3f8e4e,_0x1b7eb2(0x82)),_0x3174d0[_0x1b7eb2(0x6b)](aa(_0x22a873))),this[_0x1b7eb2(0x80)]({'attributes':{'class':[_0x1b7eb2(0x81),_0x5bed38?'':_0x1b7eb2(0x7b)]}});const _0x178ddc=new _0x2a4d62();_0x178ddc[_0x1b7eb2(0x7c)]({'tag':_0x1b7eb2(0x6f),'attributes':{'class':['ck',_0x1b7eb2(0x6d)]},'children':[..._0x3174d0,{'tag':_0x1b7eb2(0x72),'attributes':{'class':[_0x1b7eb2(0x70)]},'children':[_0x5bed38]}]}),this[_0x1b7eb2(0x73)][_0x1b7eb2(0x75)](_0x178ddc),this[_0x1b7eb2(0x7f)]=_0x4f2ac6[_0x1b7eb2(0x7f)];}}function aa(_0x49897e){const _0xa13cbf=_0x1d0e93,_0x4856c3=new _0x39fbf5();return _0x4856c3[_0xa13cbf(0x71)]=_0x49897e,_0x4856c3;}
23
+ const _0x2d058b=_0x2be6;(function(_0x24e566,_0x15c521){const _0xf6330d=_0x2be6,_0x10674e=_0x24e566();while(!![]){try{const _0x3e9679=parseInt(_0xf6330d(0xc3))/0x1+-parseInt(_0xf6330d(0xc8))/0x2*(parseInt(_0xf6330d(0xca))/0x3)+parseInt(_0xf6330d(0xd3))/0x4+parseInt(_0xf6330d(0xd5))/0x5*(-parseInt(_0xf6330d(0xcb))/0x6)+parseInt(_0xf6330d(0xd6))/0x7+parseInt(_0xf6330d(0xd2))/0x8+-parseInt(_0xf6330d(0xc1))/0x9;if(_0x3e9679===_0x15c521)break;else _0x10674e['push'](_0x10674e['shift']());}catch(_0x45fd81){_0x10674e['push'](_0x10674e['shift']());}}}(_0x4061,0xa6c86));function _0x4061(){const _0x10a3b3=['93MDCehX','3216516PlzjBE','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','children','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','ck-ai-chat__feed__interaction-header','capabilities','extendTemplate','8565136UDDtWy','1332276nIOdzI','div','10BhsmwZ','7653954VgJYvx','content','push','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','6496515ewypVx','setTemplate','1139509ZBmQDC','ck-hidden','span','ck-ai-chat__feed__interaction-header__capabilities__text','add','74806DbbvNK','ck-ai-chat__feed__interaction-header__capabilities'];_0x4061=function(){return _0x10a3b3;};return _0x4061();}import{IconBulb as _0x454e1d,IconWeb as _0x3d190f}from'@ckeditor/ckeditor5-icons';import{IconView as _0x334ee0,View as _0x3ce436}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x3f2442}from'./aichatfeeditemview.js';import{getTranslation as _0x207c65}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x3f2442{[_0x2d058b(0xd0)];constructor(_0x54498a,_0xb63225){const _0x283e43=_0x2d058b;super(_0xb63225);const {isWebSearchEnabled:_0x388302,isReasoningEnabled:_0x1665ac}=_0xb63225[_0x283e43(0xd0)],_0x2e0140=[];let _0x275f5a='';_0x388302&&_0x1665ac?(_0x275f5a=_0x207c65(_0x54498a,_0x283e43(0xc0)),_0x2e0140[_0x283e43(0xd8)](ea(_0x3d190f)),_0x2e0140[_0x283e43(0xd8)](ea(_0x454e1d))):_0x388302?(_0x275f5a=_0x207c65(_0x54498a,_0x283e43(0xcc)),_0x2e0140[_0x283e43(0xd8)](ea(_0x3d190f))):_0x1665ac&&(_0x275f5a=_0x207c65(_0x54498a,_0x283e43(0xce)),_0x2e0140[_0x283e43(0xd8)](ea(_0x454e1d))),this[_0x283e43(0xd1)]({'attributes':{'class':[_0x283e43(0xcf),_0x275f5a?'':_0x283e43(0xc4)]}});const _0x35d28e=new _0x3ce436();_0x35d28e[_0x283e43(0xc2)]({'tag':_0x283e43(0xd4),'attributes':{'class':['ck',_0x283e43(0xc9)]},'children':[..._0x2e0140,{'tag':_0x283e43(0xc5),'attributes':{'class':[_0x283e43(0xc6)]},'children':[_0x275f5a]}]}),this[_0x283e43(0xcd)][_0x283e43(0xc7)](_0x35d28e),this[_0x283e43(0xd0)]=_0xb63225[_0x283e43(0xd0)];}}function _0x2be6(_0x3cd5cb,_0x116da9){const _0x4061ca=_0x4061();return _0x2be6=function(_0x2be65c,_0x1aecc4){_0x2be65c=_0x2be65c-0xc0;let _0xd0b3c=_0x4061ca[_0x2be65c];return _0xd0b3c;},_0x2be6(_0x3cd5cb,_0x116da9);}function ea(_0x747be3){const _0x3c9fde=_0x2d058b,_0x2f5faf=new _0x334ee0();return _0x2f5faf[_0x3c9fde(0xd7)]=_0x747be3,_0x2f5faf;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e56dd=_0x540e;(function(_0x2eb017,_0x260dfe){const _0x14d258=_0x540e,_0x77b4d7=_0x2eb017();while(!![]){try{const _0x1c4f69=-parseInt(_0x14d258(0x77))/0x1*(parseInt(_0x14d258(0x80))/0x2)+parseInt(_0x14d258(0x8a))/0x3*(parseInt(_0x14d258(0x87))/0x4)+-parseInt(_0x14d258(0x90))/0x5+parseInt(_0x14d258(0x86))/0x6+-parseInt(_0x14d258(0x73))/0x7*(-parseInt(_0x14d258(0x76))/0x8)+parseInt(_0x14d258(0x8c))/0x9*(parseInt(_0x14d258(0x83))/0xa)+parseInt(_0x14d258(0x88))/0xb;if(_0x1c4f69===_0x260dfe)break;else _0x77b4d7['push'](_0x77b4d7['shift']());}catch(_0x5bf3da){_0x77b4d7['push'](_0x77b4d7['shift']());}}}(_0x4877,0x8dffe));import{View as _0x3b12c5}from'ckeditor5/src/ui.js';import{HTMLStreamer as _0x2b822e}from'../../../aicore/utils/htmlstreamer.js';function _0x540e(_0x20d3d6,_0x1fb552){const _0x487748=_0x4877();return _0x540e=function(_0x540e7e,_0x56cc35){_0x540e7e=_0x540e7e-0x71;let _0x2e5990=_0x487748[_0x540e7e];return _0x2e5990;},_0x540e(_0x20d3d6,_0x1fb552);}function _0x4877(){const _0x39f7b9=['350XKwbYn','streamIntoElement','bindTemplate','581268NyZwPi','2726480avdpIw','4539480RZXFJN','htmlStreamer','3mvcNiN','content','13707esYFEt','setTemplate','ck-ai-chat__feed__item','forEach','2159580gZwrry','div','ck-ai-chat__feed__text-item','removeAttribute','cleanUpAnimations','isVisible','querySelectorAll','data-id','15176qZDSSj','element','set','3152WMWKCs','17789OCJJHG','children','options','markAsDone','createCollection','stream','animation:\x20ck-html-streamer-fade-in\x20.5s','ck-hidden','isDone','122NKMHou','ck-ai-chat__feed__item_done','[data-id]'];_0x4877=function(){return _0x39f7b9;};return _0x4877();}export class AIChatFeedItemView extends _0x3b12c5{[_0x1e56dd(0x79)];[_0x1e56dd(0x8b)]='';[_0x1e56dd(0x89)];[_0x1e56dd(0x78)];constructor(_0x12d931){const _0x32aefe=_0x1e56dd;super();const _0x89a076=this[_0x32aefe(0x85)];this[_0x32aefe(0x75)](_0x32aefe(0x7f),!0x1),this[_0x32aefe(0x75)](_0x32aefe(0x95),!0x0),this[_0x32aefe(0x89)]=new _0x2b822e({'textNodeStyle':_0x32aefe(0x7d),'delay':0x14}),this[_0x32aefe(0x79)]=_0x12d931,this[_0x32aefe(0x78)]=this[_0x32aefe(0x7b)](),this[_0x32aefe(0x8d)]({'tag':_0x32aefe(0x91),'attributes':{'class':['ck',_0x32aefe(0x8e),_0x89a076['if'](_0x32aefe(0x7f),_0x32aefe(0x81)),_0x89a076['if'](_0x32aefe(0x95),_0x32aefe(0x7e),_0x38d4a1=>!_0x38d4a1),_0x32aefe(0x92)],'data-cke-ai-id':this[_0x32aefe(0x79)]['id']},'children':this[_0x32aefe(0x78)]});}[_0x1e56dd(0x7a)](){const _0x746866=_0x1e56dd;this[_0x746866(0x89)][_0x746866(0x94)]({'targetElement':this[_0x746866(0x74)]}),this[_0x746866(0x74)][_0x746866(0x71)](_0x746866(0x82))[_0x746866(0x8f)](_0x171442=>{const _0x4c839c=_0x746866;_0x171442[_0x4c839c(0x93)](_0x4c839c(0x72));}),this[_0x746866(0x7f)]=!0x0;}async[_0x1e56dd(0x84)](_0xcdb112,_0x43044a,_0x4ea1a3){const _0x641eb5=_0x1e56dd;await this[_0x641eb5(0x89)][_0x641eb5(0x7c)]({'document':_0xcdb112,'targetElement':_0x43044a,'abortSignal':_0x4ea1a3});}}
23
+ const _0x18559c=_0x263b;(function(_0xb31a34,_0x30bf49){const _0x5a6385=_0x263b,_0x14ddaf=_0xb31a34();while(!![]){try{const _0x27138b=-parseInt(_0x5a6385(0x177))/0x1+-parseInt(_0x5a6385(0x15d))/0x2+parseInt(_0x5a6385(0x16d))/0x3+-parseInt(_0x5a6385(0x172))/0x4+parseInt(_0x5a6385(0x15e))/0x5*(parseInt(_0x5a6385(0x174))/0x6)+-parseInt(_0x5a6385(0x169))/0x7*(parseInt(_0x5a6385(0x15f))/0x8)+-parseInt(_0x5a6385(0x166))/0x9*(-parseInt(_0x5a6385(0x156))/0xa);if(_0x27138b===_0x30bf49)break;else _0x14ddaf['push'](_0x14ddaf['shift']());}catch(_0x1c2fdf){_0x14ddaf['push'](_0x14ddaf['shift']());}}}(_0x4e3f,0x4a239));import{View as _0x4aa743}from'ckeditor5/src/ui.js';function _0x4e3f(){const _0x25f9b2=['814390gqIsqI','13205IXvkqm','11928yKlPHE','ck-ai-chat__feed__item_done','options','bindTemplate','streamIntoElement','ck-ai-chat__feed__item','content','27LDYglw','createCollection','isVisible','1337EfKxuB','forEach','querySelectorAll','stream','864837fbgeGI','setTemplate','children','cleanUpAnimations','div','470892ZKJPmO','markAsDone','1368RujxFT','element','animation:\x20ck-html-streamer-fade-in\x20.5s','157122eOUIcy','ck-hidden','set','1266890NsKmUD','htmlStreamer','isDone','removeAttribute','data-id','ck-ai-chat__feed__text-item','[data-id]'];_0x4e3f=function(){return _0x25f9b2;};return _0x4e3f();}import{HTMLStreamer as _0x366747}from'../../../aicore/utils/htmlstreamer.js';function _0x263b(_0x5111df,_0x20720d){const _0x4e3f31=_0x4e3f();return _0x263b=function(_0x263b00,_0x2e6516){_0x263b00=_0x263b00-0x156;let _0xef25ec=_0x4e3f31[_0x263b00];return _0xef25ec;},_0x263b(_0x5111df,_0x20720d);}export class AIChatFeedItemView extends _0x4aa743{[_0x18559c(0x161)];[_0x18559c(0x165)]='';[_0x18559c(0x157)];[_0x18559c(0x16f)];constructor(_0x111100){const _0x2cfba6=_0x18559c;super();const _0x2e8ee2=this[_0x2cfba6(0x162)];this[_0x2cfba6(0x179)](_0x2cfba6(0x158),!0x1),this[_0x2cfba6(0x179)](_0x2cfba6(0x168),!0x0),this[_0x2cfba6(0x157)]=new _0x366747({'textNodeStyle':_0x2cfba6(0x176),'delay':0x14}),this[_0x2cfba6(0x161)]=_0x111100,this[_0x2cfba6(0x16f)]=this[_0x2cfba6(0x167)](),this[_0x2cfba6(0x16e)]({'tag':_0x2cfba6(0x171),'attributes':{'class':['ck',_0x2cfba6(0x164),_0x2e8ee2['if'](_0x2cfba6(0x158),_0x2cfba6(0x160)),_0x2e8ee2['if'](_0x2cfba6(0x168),_0x2cfba6(0x178),_0x3b8138=>!_0x3b8138),_0x2cfba6(0x15b)],'data-cke-ai-id':this[_0x2cfba6(0x161)]['id']},'children':this[_0x2cfba6(0x16f)]});}[_0x18559c(0x173)](){const _0x2bd49a=_0x18559c;this[_0x2bd49a(0x157)][_0x2bd49a(0x170)]({'targetElement':this[_0x2bd49a(0x175)]}),this[_0x2bd49a(0x175)][_0x2bd49a(0x16b)](_0x2bd49a(0x15c))[_0x2bd49a(0x16a)](_0x326bc6=>{const _0x1fcf38=_0x2bd49a;_0x326bc6[_0x1fcf38(0x159)](_0x1fcf38(0x15a));}),this[_0x2bd49a(0x158)]=!0x0;}async[_0x18559c(0x163)](_0xd826aa,_0x1c5fce,_0xf0bed8){const _0x39bf58=_0x18559c;await this[_0x39bf58(0x157)][_0x39bf58(0x16c)]({'document':_0xd826aa,'targetElement':_0x1c5fce,'abortSignal':_0xf0bed8});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x58c433=_0x47f9;(function(_0x23fb03,_0xee7486){const _0x1beb7c=_0x47f9,_0x3d9595=_0x23fb03();while(!![]){try{const _0x4be0e0=parseInt(_0x1beb7c(0x15e))/0x1*(parseInt(_0x1beb7c(0x170))/0x2)+parseInt(_0x1beb7c(0x152))/0x3+parseInt(_0x1beb7c(0x159))/0x4*(parseInt(_0x1beb7c(0x173))/0x5)+-parseInt(_0x1beb7c(0x15f))/0x6+-parseInt(_0x1beb7c(0x15b))/0x7*(parseInt(_0x1beb7c(0x166))/0x8)+-parseInt(_0x1beb7c(0x172))/0x9+-parseInt(_0x1beb7c(0x161))/0xa*(parseInt(_0x1beb7c(0x16b))/0xb);if(_0x4be0e0===_0xee7486)break;else _0x3d9595['push'](_0x3d9595['shift']());}catch(_0x340a11){_0x3d9595['push'](_0x3d9595['shift']());}}}(_0x3819,0x1925e));function _0x3819(){const _0xff18be=['locale','330645jYqUVY','add','render','ck-ai-chat__feed__ai-reply','isVisible','initialContent','options','4sZOBkx','setTemplate','2527RPEDte','streaming','map','41EPXWzv','374478PtoIxt','children','1040gPoxRi','ck-reset_all-excluded','element','streamIntoElement','addMany','1296ZJfBYv','markAsDone','innerHTML','updateContent','_bodyCollection','6908dQPXOk','updateSources','static','balloonPanelView','replyContainer','7646pDROjZ','ck-ai-chat__feed__ai-reply-container','1364094jXpmTC','869105KCmKPb','div','extendTemplate'];_0x3819=function(){return _0xff18be;};return _0x3819();}import{AIChatFeedItemView as _0x1cd362}from'./aichatfeeditemview.js';import{parse as _0x4d811d,render as _0x11a746}from'../../../aicore/utils/htmlparser.js';function _0x47f9(_0x2ba46e,_0x2266ce){const _0x381900=_0x3819();return _0x47f9=function(_0x47f9a7,_0x131471){_0x47f9a7=_0x47f9a7-0x152;let _0x309546=_0x381900[_0x47f9a7];return _0x309546;},_0x47f9(_0x2ba46e,_0x2266ce);}import{View as _0x374ae6}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x35d319,AIWebSourceView as _0x47eb89}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0x1cd362{[_0x58c433(0x16f)];[_0x58c433(0x16a)];constructor(_0x23fa8f,_0x249a38,_0x1e28d0){const _0x4c6b07=_0x58c433;super(_0x249a38),this[_0x4c6b07(0x16a)]=_0x1e28d0,this[_0x4c6b07(0x176)]=_0x23fa8f,this[_0x4c6b07(0x175)]({'attributes':{'class':[_0x4c6b07(0x155)]}}),this[_0x4c6b07(0x16f)]=new _0x374ae6(),this[_0x4c6b07(0x16f)][_0x4c6b07(0x15a)]({'tag':_0x4c6b07(0x174),'attributes':{'class':['ck',_0x4c6b07(0x162),_0x4c6b07(0x171)]}}),this[_0x4c6b07(0x160)][_0x4c6b07(0x153)](this[_0x4c6b07(0x16f)]);}async[_0x58c433(0x154)](){const _0x46ce88=_0x58c433;super[_0x46ce88(0x154)](),this[_0x46ce88(0x158)][_0x46ce88(0x157)]&&(await this[_0x46ce88(0x169)]({'parsedContent':_0x4d811d(this[_0x46ce88(0x158)][_0x46ce88(0x157)]),'renderingStrategy':_0x46ce88(0x16d)}),this[_0x46ce88(0x167)]());}async[_0x58c433(0x169)]({parsedContent:_0x451173,renderingStrategy:_0x15eb0f,abortSignal:_0x4f6305}){const _0x367653=_0x58c433;_0x367653(0x15c)===_0x15eb0f?await this[_0x367653(0x164)](_0x451173,this[_0x367653(0x16f)][_0x367653(0x163)],_0x4f6305):this[_0x367653(0x16f)][_0x367653(0x163)][_0x367653(0x168)]=_0x11a746(_0x451173);}[_0x58c433(0x16c)](_0xcac218){const _0x4b1f4a=_0x58c433,_0x1b75a0=new _0x35d319(this[_0x4b1f4a(0x176)],this[_0x4b1f4a(0x16a)]);_0x1b75a0[_0x4b1f4a(0x160)][_0x4b1f4a(0x165)](_0xcac218[_0x4b1f4a(0x15d)](_0x5d001d=>new _0x47eb89(this[_0x4b1f4a(0x176)],_0x5d001d,_0x1b75a0[_0x4b1f4a(0x16e)]))),_0x1b75a0[_0x4b1f4a(0x156)]=!0x0,this[_0x4b1f4a(0x160)][_0x4b1f4a(0x153)](_0x1b75a0);}}
23
+ const _0x5d9b0c=_0x493f;(function(_0x4325b7,_0xa3230e){const _0xefd977=_0x493f,_0x526502=_0x4325b7();while(!![]){try{const _0x12fc16=parseInt(_0xefd977(0x1d3))/0x1+-parseInt(_0xefd977(0x1bc))/0x2*(-parseInt(_0xefd977(0x1b9))/0x3)+-parseInt(_0xefd977(0x1c5))/0x4*(parseInt(_0xefd977(0x1c6))/0x5)+-parseInt(_0xefd977(0x1b1))/0x6+parseInt(_0xefd977(0x1bf))/0x7+-parseInt(_0xefd977(0x1c2))/0x8*(parseInt(_0xefd977(0x1ca))/0x9)+parseInt(_0xefd977(0x1b7))/0xa;if(_0x12fc16===_0xa3230e)break;else _0x526502['push'](_0x526502['shift']());}catch(_0x527eb8){_0x526502['push'](_0x526502['shift']());}}}(_0x57de,0x8ea1f));function _0x493f(_0x129779,_0x933148){const _0x57de20=_0x57de();return _0x493f=function(_0x493f7d,_0x48e896){_0x493f7d=_0x493f7d-0x1b1;let _0x1bef34=_0x57de20[_0x493f7d];return _0x1bef34;},_0x493f(_0x129779,_0x933148);}import{AIChatFeedItemView as _0x245679}from'./aichatfeeditemview.js';import{parse as _0x5f5663,render as _0x756812}from'../../../aicore/utils/htmlparser.js';import{View as _0x2e2989}from'ckeditor5/src/ui.js';function _0x57de(){const _0x4214ff=['initialContent','ck-reset_all-excluded','streaming','replyContainer','1284310zRMXMd','addMany','363WOuqVn','markAsDone','balloonPanelView','262mnpjDZ','render','updateContent','6897779uNuWtg','ck-ai-chat__feed__ai-reply','innerHTML','8qvqpvA','ck-ai-chat__feed__ai-reply-container','extendTemplate','652VeHKeV','32715AxvMnA','updateSources','locale','element','916200GXiZQM','static','options','children','streamIntoElement','div','map','isVisible','setTemplate','923962gvIerx','add','1806654llZTsR','_bodyCollection'];_0x57de=function(){return _0x4214ff;};return _0x57de();}import{AIWebSourcesView as _0x2c278b,AIWebSourceView as _0x2430f2}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0x245679{[_0x5d9b0c(0x1b6)];[_0x5d9b0c(0x1b2)];constructor(_0x445e56,_0x4f441c,_0x27988f){const _0x76fdb0=_0x5d9b0c;super(_0x4f441c),this[_0x76fdb0(0x1b2)]=_0x27988f,this[_0x76fdb0(0x1c8)]=_0x445e56,this[_0x76fdb0(0x1c4)]({'attributes':{'class':[_0x76fdb0(0x1c0)]}}),this[_0x76fdb0(0x1b6)]=new _0x2e2989(),this[_0x76fdb0(0x1b6)][_0x76fdb0(0x1d2)]({'tag':_0x76fdb0(0x1cf),'attributes':{'class':['ck',_0x76fdb0(0x1b4),_0x76fdb0(0x1c3)]}}),this[_0x76fdb0(0x1cd)][_0x76fdb0(0x1d4)](this[_0x76fdb0(0x1b6)]);}async[_0x5d9b0c(0x1bd)](){const _0x79c5df=_0x5d9b0c;super[_0x79c5df(0x1bd)](),this[_0x79c5df(0x1cc)][_0x79c5df(0x1b3)]&&(await this[_0x79c5df(0x1be)]({'parsedContent':_0x5f5663(this[_0x79c5df(0x1cc)][_0x79c5df(0x1b3)]),'renderingStrategy':_0x79c5df(0x1cb)}),this[_0x79c5df(0x1ba)]());}async[_0x5d9b0c(0x1be)]({parsedContent:_0xf113de,renderingStrategy:_0x189cf6,abortSignal:_0x1a47b4}){const _0x2407d0=_0x5d9b0c;_0x2407d0(0x1b5)===_0x189cf6?await this[_0x2407d0(0x1ce)](_0xf113de,this[_0x2407d0(0x1b6)][_0x2407d0(0x1c9)],_0x1a47b4):this[_0x2407d0(0x1b6)][_0x2407d0(0x1c9)][_0x2407d0(0x1c1)]=_0x756812(_0xf113de);}[_0x5d9b0c(0x1c7)](_0x129b05){const _0x15033f=_0x5d9b0c,_0x37e60e=new _0x2c278b(this[_0x15033f(0x1c8)],this[_0x15033f(0x1b2)]);_0x37e60e[_0x15033f(0x1cd)][_0x15033f(0x1b8)](_0x129b05[_0x15033f(0x1d0)](_0x22f861=>new _0x2430f2(this[_0x15033f(0x1c8)],_0x22f861,_0x37e60e[_0x15033f(0x1bb)]))),_0x37e60e[_0x15033f(0x1d1)]=!0x0,this[_0x15033f(0x1cd)][_0x15033f(0x1d4)](_0x37e60e);}}