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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  15. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  22. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  26. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  27. package/src/aiballoon/ui/aiballoonview.js +1 -1
  28. package/src/aichat/aichat.js +1 -1
  29. package/src/aichat/aichatcontroller.js +1 -1
  30. package/src/aichat/aichatui.js +1 -1
  31. package/src/aichat/model/aichatcontext.js +1 -1
  32. package/src/aichat/model/aichatconversation.js +1 -1
  33. package/src/aichat/model/aichatinteraction.js +1 -1
  34. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  35. package/src/aichat/ui/aichatfeedview.js +1 -1
  36. package/src/aichat/ui/aichatheaderview.js +1 -1
  37. package/src/aichat/ui/aichatview.js +1 -1
  38. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  58. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  59. package/src/aichat/utils/eventnames.js +1 -1
  60. package/src/aichat/utils/promisequeue.js +1 -1
  61. package/src/aichathistory/aichathistory.js +1 -1
  62. package/src/aichathistory/aichathistorycontroller.js +1 -1
  63. package/src/aichathistory/aichathistoryui.js +1 -1
  64. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  65. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  66. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  67. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  68. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  69. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  70. package/src/aicore/aiconnector.js +1 -1
  71. package/src/aicore/aiediting.js +1 -1
  72. package/src/aicore/model/aicapabilities.js +1 -1
  73. package/src/aicore/model/aiinteraction.js +1 -1
  74. package/src/aicore/model/aimodels.js +1 -1
  75. package/src/aicore/model/aireply.js +1 -1
  76. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  77. package/src/aicore/pipeline/airesponseparser.js +2 -2
  78. package/src/aicore/ui/aidisclaimerview.js +1 -1
  79. package/src/aicore/ui/aiskeleton.js +1 -1
  80. package/src/aicore/ui/aispinner.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  86. package/src/aicore/utils/createresizebutton.js +1 -1
  87. package/src/aicore/utils/documentposition.js +1 -1
  88. package/src/aicore/utils/documentrange.js +1 -1
  89. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  90. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  91. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  92. package/src/aicore/utils/htmlparser.js +1 -1
  93. package/src/aicore/utils/htmlstreamer.js +1 -1
  94. package/src/aicore/utils/scrollmanager.js +1 -1
  95. package/src/aieditorintegration/aieditorintegration.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  97. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  98. package/src/aiquickactions/aiquickactions.js +1 -1
  99. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  100. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  101. package/src/aiquickactions/aiquickactionsui.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  104. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  105. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  106. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  107. package/src/aireviewmode/aireviewmode.js +1 -1
  108. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  109. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  110. package/src/aireviewmode/aireviewmodeui.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  112. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  113. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  114. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  115. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  116. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  117. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  118. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  122. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  123. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  124. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  125. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  126. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  127. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  128. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  129. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  130. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  131. package/src/aitabs/aitabs.js +1 -1
  132. package/src/aitabs/tabs/aitabsview.js +1 -1
  133. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  134. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1428(){const _0x31019a=['AI_CHAT_STOP_GENERATING','759478nivhXL','fire','ck-ai-chat-controls-loader-icon','10545sXolsj','ck-ai-chat-controls-loader-icon-dot','ck-reset_all','setTemplate','842139PtEWcQ','_createLoaderView','ck-ai-chat-controls-loader','84FHOhpT','_loaderView','execute','1600328VVXHaH','_createCancelButtonView','set','60UVYJlO','6176177gGbeDg','locale','285364FHADvd','ck-ai-button-secondary\x20ck-ai-button-stop-generating','AI_CHAT_IS_WRITING','abortPromptStream','ck-ai-chat-controls-loader-wrapper','div','_cancelButtonView','12186cWFNzn'];_0x1428=function(){return _0x31019a;};return _0x1428();}const _0x1ca029=_0x1108;(function(_0x182e44,_0x3c9b66){const _0xc30099=_0x1108,_0x533174=_0x182e44();while(!![]){try{const _0x29c095=-parseInt(_0xc30099(0xad))/0x1+-parseInt(_0xc30099(0xab))/0x2*(-parseInt(_0xc30099(0xbd))/0x3)+-parseInt(_0xc30099(0xc0))/0x4+parseInt(_0xc30099(0xb0))/0x5*(parseInt(_0xc30099(0xb7))/0x6)+parseInt(_0xc30099(0xbe))/0x7+parseInt(_0xc30099(0xba))/0x8+parseInt(_0xc30099(0xb4))/0x9;if(_0x29c095===_0x3c9b66)break;else _0x533174['push'](_0x533174['shift']());}catch(_0x35c8be){_0x533174['push'](_0x533174['shift']());}}}(_0x1428,0x7936a));import{ButtonView as _0x4ab602,View as _0xbcd2cb}from'ckeditor5/src/ui.js';function _0x1108(_0x5496f7,_0x34de4f){const _0x14281e=_0x1428();return _0x1108=function(_0x1108c8,_0x38363f){_0x1108c8=_0x1108c8-0xa7;let _0x6c485=_0x14281e[_0x1108c8];return _0x6c485;},_0x1108(_0x5496f7,_0x34de4f);}import{IconStop as _0x33d041}from'ckeditor5/src/icons.js';import{getTranslation as _0x375da6}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0xbcd2cb{[_0x1ca029(0xaa)];[_0x1ca029(0xb8)];constructor(_0x30732e){const _0xd416f3=_0x1ca029;super(_0x30732e),this[_0xd416f3(0xaa)]=this[_0xd416f3(0xbb)](),this[_0xd416f3(0xb8)]=this[_0xd416f3(0xb5)](),this[_0xd416f3(0xb3)]({'tag':_0xd416f3(0xa9),'attributes':{'class':['ck',_0xd416f3(0xa8),_0xd416f3(0xb2)]},'children':[this[_0xd416f3(0xb8)],this[_0xd416f3(0xaa)]]});}[_0x1ca029(0xbb)](){const _0x2d48d4=_0x1ca029,_0x539580=new _0x4ab602(this[_0x2d48d4(0xbf)]);return _0x539580[_0x2d48d4(0xbc)]({'label':_0x375da6(this[_0x2d48d4(0xbf)],_0x2d48d4(0xac)),'withText':!0x0,'class':_0x2d48d4(0xc1),'icon':_0x33d041}),_0x539580['on'](_0x2d48d4(0xb9),()=>{const _0x535833=_0x2d48d4;this[_0x535833(0xae)](_0x535833(0xa7));}),_0x539580;}[_0x1ca029(0xb5)](){const _0x412651=_0x1ca029,_0x443318=new _0xbcd2cb(this[_0x412651(0xbf)]);return _0x443318[_0x412651(0xb3)]({'tag':_0x412651(0xa9),'attributes':{'class':[_0x412651(0xb6)]},'children':[{'tag':_0x412651(0xa9),'attributes':{'class':[_0x412651(0xaf)]},'children':[{'tag':_0x412651(0xa9),'attributes':{'class':[_0x412651(0xb1)]}},{'tag':_0x412651(0xa9),'attributes':{'class':[_0x412651(0xb1)]}},{'tag':_0x412651(0xa9),'attributes':{'class':[_0x412651(0xb1)]}}]},{'text':_0x375da6(this[_0x412651(0xbf)],_0x412651(0xc2))}]}),_0x443318;}}
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 _0x4a611a=_0x6dc5;(function(_0x56c2eb,_0x1221ad){const _0x5c6410=_0x6dc5,_0x481d70=_0x56c2eb();while(!![]){try{const _0x430c2c=-parseInt(_0x5c6410(0x185))/0x1*(parseInt(_0x5c6410(0x183))/0x2)+-parseInt(_0x5c6410(0x159))/0x3*(-parseInt(_0x5c6410(0x168))/0x4)+-parseInt(_0x5c6410(0x163))/0x5+parseInt(_0x5c6410(0x178))/0x6+parseInt(_0x5c6410(0x16e))/0x7+parseInt(_0x5c6410(0x1ae))/0x8*(-parseInt(_0x5c6410(0x189))/0x9)+parseInt(_0x5c6410(0x151))/0xa*(parseInt(_0x5c6410(0x16a))/0xb);if(_0x430c2c===_0x1221ad)break;else _0x481d70['push'](_0x481d70['shift']());}catch(_0x39800d){_0x481d70['push'](_0x481d70['shift']());}}}(_0x49eb,0xe03d6));import{Collection as _0x2482c9}from'ckeditor5/src/utils.js';import{IconAI as _0x4915b9,IconBulb as _0x2b7d2d,IconWeb as _0x30bc9f}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0xd3867,ButtonLabelView as _0x129e58,ButtonView as _0x168408,createDropdown as _0x3d1b97,IconView as _0x14bfe1,UIModel as _0x5659cd,View as _0x155b5a}from'ckeditor5/src/ui.js';import{getTranslation as _0x394b9a}from'../../../aicore/utils/common-translations.js';function _0x49eb(){const _0x3a69d3=['ck-button__label','addMany','ck-hidden','AI_CHAT_ENABLE_REASONING','isVisible','content','ck-ai-chat-controls__model-selection__item-name','reasoning','ck-ai-chat__prompt-capabilities','startsWith','webSearch','isEnabled','log','setReasoning','model','_getCapabilityParts','ck-ai-chat-controls__model-selection__item-capabilities','_modelSelectionDropdown','AI_CHAT_COMMANDS','buttonView','setWebSearch','ck-ai-chat-controls__model-selection','ck-ai-chat-controls__model-name','name','locale','8060792KShOLO','AI_CHAT_CAPABILITIES_NO','setTemplate','style','modelSelectorEnabled','clear','AI_CHAT_SEARCH_WEB','1150OANQSs','disableModelSelector','_createModelSelectionDropdown','bindTemplate','button','reasoningActive','AI_CHAT_ENABLE_WEB_SEARCH','set','724395uGuEhP','AI_CHAT_CAPABILITIES_YES','ck-ai-chat-controls-button','activeModelName','execute','_createReasoningButton','listenTo','createCollection','agent','ck-ai-chat-controls__model-selection__item-description','7779610utcCMy','enableModelSelector','_createWebSearchButton','bind','extendTemplate','28tElBBG','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','169587RsASVJ','capabilities','menuitemradio','add','3431008FNDQbD','toLowerCase','tooltip','setModelList','_modelSelectionDropdownItems','div','selectModel','withText','_createCommandsButton','toggleWebSearch','3261216yezSif','source','fire','AI_CHAT_DISABLE_REASONING','toggleReasoning','AI_CHAT_DISABLE_WEB_SEARCH','length','description','text','webSearchActive','ck-ai-chat-controls-button--commands','2029766RoXCMm','activeModelId','1WbVURb','_commandsButton','enabled','_webSearchButton','9hUTxDy','AI_CHAT_REASONING','_modelNameView','_reasoningButton','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','span','Commands\x20are\x20not\x20implemented\x20yet.','setModel','modelSelectorVisible','label','_createModelNameView','isOn'];_0x49eb=function(){return _0x3a69d3;};return _0x49eb();}const yo=_0x4a611a(0x19d),Oo=_0x4a611a(0x15b),Go=_0x4a611a(0x182),Yo=_0x4a611a(0x1aa),qo=_0x4a611a(0x19b),zo=_0x4a611a(0x162),Jo=_0x4a611a(0x1a5),Ko='n';export class AIChatPromptCapabilitiesView extends _0x155b5a{[_0x4a611a(0x188)];[_0x4a611a(0x18c)];[_0x4a611a(0x186)];[_0x4a611a(0x1a6)];[_0x4a611a(0x172)];[_0x4a611a(0x18b)];constructor(_0x4157e0){const _0x2991eb=_0x4a611a;super(_0x4157e0),this[_0x2991eb(0x158)](_0x2991eb(0x181),!0x1),this[_0x2991eb(0x158)](_0x2991eb(0x156),!0x1),this[_0x2991eb(0x158)](_0x2991eb(0x191),!0x0),this[_0x2991eb(0x158)](_0x2991eb(0x14e),!0x0),this[_0x2991eb(0x158)](_0x2991eb(0x184),null),this[_0x2991eb(0x158)](_0x2991eb(0x15c),null),this[_0x2991eb(0x1a6)]=this[_0x2991eb(0x153)](),this[_0x2991eb(0x18b)]=this[_0x2991eb(0x193)](),this[_0x2991eb(0x188)]=this[_0x2991eb(0x165)](),this[_0x2991eb(0x18c)]=this[_0x2991eb(0x15e)](),this[_0x2991eb(0x186)]=this[_0x2991eb(0x176)](),this[_0x2991eb(0x1a6)][_0x2991eb(0x1a8)][_0x2991eb(0x166)](_0x2991eb(0x199))['to'](this,_0x2991eb(0x191),_0x14999f=>_0x14999f),this[_0x2991eb(0x1a6)][_0x2991eb(0x1a8)][_0x2991eb(0x166)](_0x2991eb(0x170))['to'](this,_0x2991eb(0x14e),_0x2ddeb8=>_0x2ddeb8?this[_0x2991eb(0x1a6)][_0x2991eb(0x1a8)][_0x2991eb(0x192)]:_0x394b9a(this[_0x2991eb(0x1ad)],_0x2991eb(0x18d))),this[_0x2991eb(0x1a6)][_0x2991eb(0x166)](_0x2991eb(0x1a0))['to'](this,_0x2991eb(0x14e),_0x5903ac=>_0x5903ac),this[_0x2991eb(0x188)][_0x2991eb(0x166)](_0x2991eb(0x194))['to'](this,_0x2991eb(0x181),_0x55aa28=>_0x55aa28),this[_0x2991eb(0x188)][_0x2991eb(0x166)](_0x2991eb(0x175))['to'](this,_0x2991eb(0x191),_0x2c9923=>!_0x2c9923),this[_0x2991eb(0x188)][_0x2991eb(0x166)](_0x2991eb(0x170))['to'](this,_0x2991eb(0x181),_0x4ffeed=>_0x394b9a(this[_0x2991eb(0x1ad)],_0x4ffeed?_0x2991eb(0x17d):_0x2991eb(0x157))),this[_0x2991eb(0x18c)][_0x2991eb(0x166)](_0x2991eb(0x194))['to'](this,_0x2991eb(0x156),_0x11d074=>_0x11d074),this[_0x2991eb(0x18c)][_0x2991eb(0x166)](_0x2991eb(0x175))['to'](this,_0x2991eb(0x191),_0x3cbe75=>!_0x3cbe75),this[_0x2991eb(0x18c)][_0x2991eb(0x166)](_0x2991eb(0x170))['to'](this,_0x2991eb(0x156),_0x2c34b8=>_0x394b9a(this[_0x2991eb(0x1ad)],_0x2c34b8?_0x2991eb(0x17b):_0x2991eb(0x198))),this[_0x2991eb(0x14c)]({'tag':_0x2991eb(0x173),'attributes':{'class':[yo]},'children':[this[_0x2991eb(0x1a6)],this[_0x2991eb(0x18b)],this[_0x2991eb(0x188)],this[_0x2991eb(0x18c)],this[_0x2991eb(0x186)]]}),this[_0x2991eb(0x172)]=new _0x2482c9(),_0xd3867(this[_0x2991eb(0x1a6)],this[_0x2991eb(0x172)]);}[_0x4a611a(0x171)](_0x1482b9,_0x37547c){const _0x31aae2=_0x4a611a;if(this[_0x31aae2(0x158)](_0x31aae2(0x191),!(_0x37547c&&_0x1482b9[_0x31aae2(0x17e)]<=0x1)),this[_0x31aae2(0x172)][_0x31aae2(0x14f)](),_0x1482b9?.[_0x31aae2(0x17e)])for(const _0x23b03b of _0x1482b9){const _0x41a25a=new _0x5659cd({'label':_0x23b03b[_0x31aae2(0x1ac)],'withText':!0x0,'role':_0x31aae2(0x16c),'id':_0x23b03b['id'],'model':_0x23b03b});_0x41a25a[_0x31aae2(0x166)](_0x31aae2(0x194))['to'](this,_0x31aae2(0x184),_0x11cb06=>_0x11cb06===_0x23b03b['id']),this[_0x31aae2(0x172)][_0x31aae2(0x16d)]({'type':_0x31aae2(0x155),'model':_0x41a25a,'labelView':new mo(this[_0x31aae2(0x1ad)],_0x23b03b)});}}[_0x4a611a(0x1a9)](_0x1dbf52){const _0x19ff8c=_0x4a611a;this[_0x19ff8c(0x158)](_0x19ff8c(0x181),_0x1dbf52);}[_0x4a611a(0x1a2)](_0x30c7a1){const _0xec151d=_0x4a611a;this[_0xec151d(0x158)](_0xec151d(0x156),_0x30c7a1);}[_0x4a611a(0x190)](_0x210209){const _0x4c0763=_0x4a611a;if(!_0x210209)return;this[_0x4c0763(0x184)]=_0x210209['id'],this[_0x4c0763(0x15c)]=_0x210209[_0x4c0763(0x1ac)]||_0x210209['id'],this[_0x4c0763(0x1a6)][_0x4c0763(0x1a8)][_0x4c0763(0x158)](_0x4c0763(0x192),_0x210209[_0x4c0763(0x1ac)]),this[_0x4c0763(0x1a6)][_0x4c0763(0x1a8)][_0x4c0763(0x158)](_0x4c0763(0x170),_0x210209[_0x4c0763(0x1ac)]);const _0x3e94d0=_0x210209[_0x4c0763(0x16b)][_0x4c0763(0x19f)]?.[_0x4c0763(0x187)]??!0x1;this[_0x4c0763(0x158)](_0x4c0763(0x181),!0x1),this[_0x4c0763(0x188)][_0x4c0763(0x158)](_0x4c0763(0x194),!0x1),this[_0x4c0763(0x188)][_0x4c0763(0x158)](_0x4c0763(0x1a0),_0x3e94d0),this[_0x4c0763(0x188)][_0x4c0763(0x158)](_0x4c0763(0x199),_0x3e94d0);const _0x256f5e=_0x210209[_0x4c0763(0x16b)][_0x4c0763(0x19c)]?.[_0x4c0763(0x187)]??!0x1;this[_0x4c0763(0x158)](_0x4c0763(0x156),!0x1),this[_0x4c0763(0x18c)][_0x4c0763(0x158)](_0x4c0763(0x194),!0x1),this[_0x4c0763(0x18c)][_0x4c0763(0x158)](_0x4c0763(0x1a0),_0x256f5e),this[_0x4c0763(0x18c)][_0x4c0763(0x158)](_0x4c0763(0x199),_0x256f5e);}[_0x4a611a(0x164)](){const _0x405677=_0x4a611a;this[_0x405677(0x158)](_0x405677(0x14e),!0x0),this[_0x405677(0x158)](_0x405677(0x191),!0x0);}[_0x4a611a(0x152)](_0x486cf7){const _0x2f0e0c=_0x4a611a;this[_0x2f0e0c(0x158)](_0x2f0e0c(0x14e),!0x1),_0x486cf7&&this[_0x2f0e0c(0x158)](_0x2f0e0c(0x191),!0x1);}[_0x4a611a(0x165)](){const _0xa8bcb8=_0x4a611a,_0x51742f=new _0x168408();return _0x51742f[_0xa8bcb8(0x158)]({'label':_0x394b9a(this[_0xa8bcb8(0x1ad)],_0xa8bcb8(0x150)),'icon':_0x30bc9f,'class':Oo,'isToggleable':!0x0,'tooltipPosition':Ko}),_0x51742f['on'](_0xa8bcb8(0x15d),()=>{const _0x327e90=_0xa8bcb8;this[_0x327e90(0x17a)](_0x327e90(0x177));}),_0x51742f;}[_0x4a611a(0x15e)](){const _0x325419=_0x4a611a,_0x13b9da=new _0x168408();return _0x13b9da[_0x325419(0x158)]({'label':_0x394b9a(this[_0x325419(0x1ad)],_0x325419(0x18a)),'icon':_0x2b7d2d,'class':Oo,'isToggleable':!0x0,'tooltipPosition':Ko}),_0x13b9da['on'](_0x325419(0x15d),()=>{const _0x21467e=_0x325419;this[_0x21467e(0x17a)](_0x21467e(0x17c));}),_0x13b9da;}[_0x4a611a(0x176)](){const _0x6d86cd=_0x4a611a,_0x32b891=new _0x168408();return _0x32b891[_0x6d86cd(0x158)]({'label':_0x394b9a(this[_0x6d86cd(0x1ad)],_0x6d86cd(0x1a7)),'icon':_0x4915b9,'withText':!0x0,'class':Oo,'isToggleable':!0x0,'tooltip':_0x394b9a(this[_0x6d86cd(0x1ad)],_0x6d86cd(0x1a7)),'tooltipPosition':Ko}),_0x32b891[_0x6d86cd(0x167)]({'attributes':{'class':[Go]}}),_0x32b891['on'](_0x6d86cd(0x15d),()=>{const _0x241528=_0x6d86cd;console[_0x241528(0x1a1)](_0x241528(0x18f)),alert(_0x241528(0x18f));}),_0x32b891;}[_0x4a611a(0x153)](){const _0x1f39ae=_0x4a611a,_0x4cada9=_0x3d1b97(this[_0x1f39ae(0x1ad)]);return _0x4cada9[_0x1f39ae(0x158)]({'panelPosition':'ne','class':[Yo]}),_0x4cada9[_0x1f39ae(0x1a8)][_0x1f39ae(0x158)]({'label':_0x394b9a(this[_0x1f39ae(0x1ad)],_0x1f39ae(0x169)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Ko}),this[_0x1f39ae(0x15f)](_0x4cada9,_0x1f39ae(0x15d),_0x4d3d12=>{const _0x58c1e6=_0x1f39ae;this[_0x58c1e6(0x17a)](_0x58c1e6(0x174),_0x4d3d12[_0x58c1e6(0x179)][_0x58c1e6(0x1a3)]);}),_0x4cada9;}[_0x4a611a(0x193)](){const _0x337fdd=_0x4a611a,_0x224383=new Qo(this[_0x337fdd(0x1ad)]);return _0x224383[_0x337fdd(0x166)](_0x337fdd(0x180))['to'](this,_0x337fdd(0x15c),_0x1c02b0=>_0x1c02b0??''),_0x224383[_0x337fdd(0x166)](_0x337fdd(0x199))['to'](this,_0x337fdd(0x191),this,_0x337fdd(0x15c),(_0x2a553f,_0x47613d)=>!_0x2a553f&&!_0x47613d?.[_0x337fdd(0x16f)]()[_0x337fdd(0x19e)](_0x337fdd(0x161))),_0x224383;}}function _0x6dc5(_0x49d251,_0x92c378){const _0x49ebfa=_0x49eb();return _0x6dc5=function(_0x6dc5c7,_0x358021){_0x6dc5c7=_0x6dc5c7-0x14b;let _0x129c28=_0x49ebfa[_0x6dc5c7];return _0x129c28;},_0x6dc5(_0x49d251,_0x92c378);}class mo extends _0x129e58{constructor(_0x281647,_0x541748){const _0x1b6f44=_0x4a611a;super();const _0x4725df=this[_0x1b6f44(0x154)],_0xc5e191=this[_0x1b6f44(0x160)]();this[_0x1b6f44(0x14c)]({'tag':_0x1b6f44(0x173),'attributes':{'class':['ck',_0x1b6f44(0x195)],'style':_0x4725df['to'](_0x1b6f44(0x14d)),'id':_0x4725df['to']('id')},'children':[{'tag':_0x1b6f44(0x173),'attributes':{'class':[qo]},'children':[{'text':_0x4725df['to'](_0x1b6f44(0x180))}]},{'tag':_0x1b6f44(0x173),'attributes':{'class':[zo]},'children':[{'tag':_0x1b6f44(0x18e),'children':[{'text':_0x541748[_0x1b6f44(0x17f)]}]}]},{'tag':_0x1b6f44(0x173),'attributes':{'class':[Jo]},'children':_0xc5e191}]}),_0xc5e191[_0x1b6f44(0x196)](this[_0x1b6f44(0x1a4)](_0x281647,_0x30bc9f,_0x1b6f44(0x150),_0x541748[_0x1b6f44(0x16b)][_0x1b6f44(0x19f)]?.[_0x1b6f44(0x187)]??!0x1)),_0xc5e191[_0x1b6f44(0x196)](this[_0x1b6f44(0x1a4)](_0x281647,_0x2b7d2d,_0x1b6f44(0x18a),_0x541748[_0x1b6f44(0x16b)][_0x1b6f44(0x19c)]?.[_0x1b6f44(0x187)]??!0x1));}[_0x4a611a(0x1a4)](_0x263426,_0x5e16e2,_0x251e0d,_0x445f7e){const _0x5cec20=_0x4a611a,_0xa2dc1f=new _0x14bfe1();_0xa2dc1f[_0x5cec20(0x19a)]=_0x5e16e2;const _0x538e58=new _0x155b5a(_0x263426);_0x538e58[_0x5cec20(0x14c)]({'tag':_0x5cec20(0x18e),'children':[{'text':_0x394b9a(_0x263426,_0x251e0d)+':\x20'}]});const _0x51e16e=new _0x155b5a(_0x263426);return _0x51e16e[_0x5cec20(0x14c)]({'tag':_0x5cec20(0x18e),'children':[{'text':_0x394b9a(_0x263426,_0x445f7e?_0x5cec20(0x15a):_0x5cec20(0x14b))}]}),[_0xa2dc1f,_0x538e58,_0x51e16e];}}class Qo extends _0x155b5a{constructor(_0x365b48){const _0x313c13=_0x4a611a;super(_0x365b48),this[_0x313c13(0x158)](_0x313c13(0x180),void 0x0),this[_0x313c13(0x158)](_0x313c13(0x199),!0x0);const _0x311c53=this[_0x313c13(0x154)];this[_0x313c13(0x14c)]({'tag':_0x313c13(0x18e),'attributes':{'class':['ck',_0x313c13(0x1ab),_0x311c53['if'](_0x313c13(0x199),_0x313c13(0x197),_0x579500=>!_0x579500)]},'children':[{'text':_0x311c53['to'](_0x313c13(0x180))}]});}}
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 _0x53db5e=_0x954a;(function(_0xbd7ead,_0x24d600){const _0x45a621=_0x954a,_0x53225e=_0xbd7ead();while(!![]){try{const _0x356de6=-parseInt(_0x45a621(0x187))/0x1+parseInt(_0x45a621(0x17d))/0x2+-parseInt(_0x45a621(0x1a8))/0x3+parseInt(_0x45a621(0x1a9))/0x4*(parseInt(_0x45a621(0x1a5))/0x5)+parseInt(_0x45a621(0x182))/0x6*(parseInt(_0x45a621(0x183))/0x7)+parseInt(_0x45a621(0x1af))/0x8+parseInt(_0x45a621(0x18b))/0x9;if(_0x356de6===_0x24d600)break;else _0x53225e['push'](_0x53225e['shift']());}catch(_0x5ad5c7){_0x53225e['push'](_0x53225e['shift']());}}}(_0x1590,0x3f2cd));function _0x1590(){const _0x42a3f7=['render','13460yYVIoH','AI_CHAT_LABEL_SUBMIT','element','1215633gVRmDM','12fBvyNJ','placeholder','_setUpAddContextButtonPositioning','style','execute','isEmpty','508616ZyOZPF','isEnabled','AI_CHAT_PROMPT_EMPTY_ERROR','submit','errorText','rtl','_createSubmitButton','ck-ai-chat__prompt-submit-button','set','add','width','fieldWrapperChildren','fieldView','value','140894oCAswB','MIN_ROWS','sendUserMessage','bind','maxRows','2052354fqELsx','7LHnKYv','calc(','_queryViewResizeObserver','update','16468sQFffB','setPlaceholderText','MAX_ROWS','right','1766565QpfKks','ck-ai-chat__prompt-input','queryView','uiLanguageDirection','setIsUploadInProgress','locale','_addContextButtonView','requestAnimationFrame','window','isUploadInProgress','hasError','focusableChildren','enter','keystrokes','px\x20-\x20var(--ck-spacing-tiny))','target','left','extendTemplate','reset','fire','trim','submitButtonView','destroy','excludeScrollbarsAndBorders','minRows'];_0x1590=function(){return _0x42a3f7;};return _0x1590();}import{IconSubmit as _0x1008fc}from'ckeditor5/src/icons.js';function _0x954a(_0x48fcc9,_0x54254e){const _0x15908a=_0x1590();return _0x954a=function(_0x954ad3,_0x400e89){_0x954ad3=_0x954ad3-0x171;let _0x23647b=_0x15908a[_0x954ad3];return _0x23647b;},_0x954a(_0x48fcc9,_0x54254e);}import{ButtonView as _0x1a8624,AutocompleteView as _0x4558a4,createLabeledTextarea as _0x487286}from'ckeditor5/src/ui.js';import{global as _0x4d4e53,isVisible as _0x31c5ca,Rect as _0x1f79ef,ResizeObserver as _0x356381}from'ckeditor5/src/utils.js';import{getTranslation as _0x4da6f4}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x19ba2c}from'./aichatpromptsuggestionslistview.js';import{escape as _0x30d83f}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x4558a4{[_0x53db5e(0x1a0)];static [_0x53db5e(0x17e)]=0x1;static [_0x53db5e(0x189)]=0xc;[_0x53db5e(0x191)];[_0x53db5e(0x185)];constructor(_0x54becd,_0x180a49){const _0xe80507=_0x53db5e;super(_0x54becd,{'queryView':{'label':'','creator':_0x487286,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x19ba2c(_0x54becd),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0xe80507(0x177)](_0xe80507(0x1ae),!0x0),this[_0xe80507(0x177)](_0xe80507(0x194),!0x1),this[_0xe80507(0x191)]=_0x180a49,this[_0xe80507(0x185)]=null,this[_0xe80507(0x18d)][_0xe80507(0x17b)][_0xe80507(0x1a3)]=AIChatPromptInputView[_0xe80507(0x17e)],this[_0xe80507(0x18d)][_0xe80507(0x17b)][_0xe80507(0x181)]=AIChatPromptInputView[_0xe80507(0x189)],this[_0xe80507(0x18d)][_0xe80507(0x17a)][_0xe80507(0x178)](this[_0xe80507(0x191)]),this[_0xe80507(0x1ab)](),this[_0xe80507(0x19c)]({'attributes':{'class':['ck',_0xe80507(0x18c)]}}),this[_0xe80507(0x1a0)]=this[_0xe80507(0x175)](),this[_0xe80507(0x1a0)][_0xe80507(0x180)](_0xe80507(0x1b0))['to'](this,_0xe80507(0x1ae),this,_0xe80507(0x194),(_0x521c64,_0x13d1b4)=>!_0x521c64&&!_0x13d1b4),this[_0xe80507(0x196)][_0xe80507(0x178)](this[_0xe80507(0x1a0)]);}[_0x53db5e(0x1a4)](){const _0x58bd5c=_0x53db5e;super[_0x58bd5c(0x1a4)](),this[_0x58bd5c(0x18d)][_0x58bd5c(0x17a)][_0x58bd5c(0x178)](this[_0x58bd5c(0x1a0)]),this[_0x58bd5c(0x198)][_0x58bd5c(0x177)](_0x58bd5c(0x197),(_0x466d4d,_0x351738)=>{const _0x588722=_0x58bd5c;this[_0x588722(0x194)]||this[_0x588722(0x1ae)]||_0x466d4d[_0x588722(0x19a)]==this[_0x588722(0x18d)][_0x588722(0x17b)][_0x588722(0x1a7)]&&(this[_0x588722(0x172)](),_0x351738());}),this[_0x58bd5c(0x18d)][_0x58bd5c(0x17b)]['on'](_0x58bd5c(0x186),()=>{const _0x215ebf=_0x58bd5c;this[_0x215ebf(0x1ae)]=''===this[_0x215ebf(0x18d)][_0x215ebf(0x17b)][_0x215ebf(0x1a7)][_0x215ebf(0x17c)]?.[_0x215ebf(0x19f)]();});}[_0x53db5e(0x1a1)](){const _0x5e6b70=_0x53db5e;super[_0x5e6b70(0x1a1)](),this[_0x5e6b70(0x185)]&&this[_0x5e6b70(0x185)][_0x5e6b70(0x1a1)]();}[_0x53db5e(0x172)](){const _0x49c258=_0x53db5e,_0x951ff8=this[_0x49c258(0x18d)][_0x49c258(0x17b)][_0x49c258(0x1a7)][_0x49c258(0x17c)]?.[_0x49c258(0x19f)]();if(!_0x951ff8)return this[_0x49c258(0x18d)][_0x49c258(0x173)]=_0x4da6f4(this[_0x49c258(0x190)],_0x49c258(0x171)),void(this[_0x49c258(0x18d)][_0x49c258(0x17b)][_0x49c258(0x195)]=!0x0);this[_0x49c258(0x18d)][_0x49c258(0x17b)][_0x49c258(0x195)]=!0x1;const _0x3b24bd=_0x30d83f(_0x951ff8);this[_0x49c258(0x19e)](_0x49c258(0x17f),_0x3b24bd),this[_0x49c258(0x18d)][_0x49c258(0x17b)][_0x49c258(0x19d)]();}[_0x53db5e(0x188)](_0x23417a){const _0x274239=_0x53db5e;this[_0x274239(0x18d)][_0x274239(0x17b)][_0x274239(0x177)](_0x274239(0x1aa),_0x23417a);}[_0x53db5e(0x175)](){const _0x50941c=_0x53db5e,_0x4614c2=new _0x1a8624(this[_0x50941c(0x190)]);return _0x4614c2[_0x50941c(0x177)]({'icon':_0x1008fc,'label':_0x4da6f4(this[_0x50941c(0x190)],_0x50941c(0x1a6)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x50941c(0x176),'isEnabled':!0x1}),_0x4614c2['on'](_0x50941c(0x1ad),()=>{const _0x667ac7=_0x50941c;this[_0x667ac7(0x172)]();}),_0x4614c2;}[_0x53db5e(0x18f)](_0xae254){const _0x1ec351=_0x53db5e;this[_0x1ec351(0x194)]=_0xae254;}[_0x53db5e(0x1ab)](){const _0x384e3b=_0x53db5e,_0x473696=this[_0x384e3b(0x190)],_0x14ddd5=()=>{const _0x4cea6a=_0x384e3b;_0x4d4e53[_0x4cea6a(0x193)][_0x4cea6a(0x192)](()=>{const _0x1d881b=_0x4cea6a;if(_0x31c5ca(this[_0x1d881b(0x1a7)])){const _0x36d06a=new _0x1f79ef(this[_0x1d881b(0x18d)][_0x1d881b(0x17b)][_0x1d881b(0x1a7)]),_0x50e83e=new _0x1f79ef(this[_0x1d881b(0x191)][_0x1d881b(0x1a7)]),_0xd3b89f=_0x36d06a[_0x1d881b(0x179)],_0x49fccc=_0x1d881b(0x174)===_0x473696[_0x1d881b(0x18e)]?_0x1d881b(0x18a):_0x1d881b(0x19b);_0x36d06a[_0x1d881b(0x1a2)]();const _0x5b90f4=_0xd3b89f-_0x36d06a[_0x1d881b(0x179)]+0x1;this[_0x1d881b(0x191)][_0x1d881b(0x1a7)][_0x1d881b(0x1ac)][_0x49fccc]=_0x1d881b(0x184)+(_0xd3b89f-_0x50e83e[_0x1d881b(0x179)]-_0x5b90f4)+_0x1d881b(0x199);}});};this[_0x384e3b(0x18d)][_0x384e3b(0x17b)]['on'](_0x384e3b(0x186),_0x14ddd5),this['on'](_0x384e3b(0x1a4),()=>{const _0x3095e9=_0x384e3b;_0x14ddd5(),this[_0x3095e9(0x185)]=new _0x356381(this[_0x3095e9(0x18d)][_0x3095e9(0x17b)][_0x3095e9(0x1a7)],()=>{_0x14ddd5();});});}}
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 _0x4c72fc=_0x59ed;function _0x59ed(_0x21739f,_0x1c0b26){const _0x359a7b=_0x359a();return _0x59ed=function(_0x59edaf,_0x58cfc9){_0x59edaf=_0x59edaf-0x127;let _0xea5a1a=_0x359a7b[_0x59edaf];return _0xea5a1a;},_0x59ed(_0x21739f,_0x1c0b26);}(function(_0x252b7d,_0x3c1671){const _0x2efac4=_0x59ed,_0x5effdf=_0x252b7d();while(!![]){try{const _0x2d14d5=-parseInt(_0x2efac4(0x129))/0x1+-parseInt(_0x2efac4(0x133))/0x2*(parseInt(_0x2efac4(0x130))/0x3)+parseInt(_0x2efac4(0x12e))/0x4+-parseInt(_0x2efac4(0x12f))/0x5*(-parseInt(_0x2efac4(0x131))/0x6)+-parseInt(_0x2efac4(0x128))/0x7*(parseInt(_0x2efac4(0x12b))/0x8)+parseInt(_0x2efac4(0x12c))/0x9+parseInt(_0x2efac4(0x12a))/0xa;if(_0x2d14d5===_0x3c1671)break;else _0x5effdf['push'](_0x5effdf['shift']());}catch(_0x215f95){_0x5effdf['push'](_0x5effdf['shift']());}}}(_0x359a,0x86c4a));import{ListView as _0x1a2558}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x1a2558{[_0x4c72fc(0x127)](){const _0xaf9d79=_0x4c72fc;let _0x441cf3=0x0;for(const _0x4183ed of this[_0xaf9d79(0x12d)])_0x441cf3+=_0x4183ed[_0xaf9d79(0x12d)][_0xaf9d79(0x132)];return{'resultsCount':_0x441cf3,'totalItemsCount':_0x441cf3};}}function _0x359a(){const _0x2477ab=['12FHzzGv','length','4sotVLz','filter','1037582NTETYZ','470726cNgewI','1884720vxUuNM','8IAsrDp','2869029FReSBK','items','3622452tMNuJA','419295bjhgMX','614433Xvszhp'];_0x359a=function(){return _0x2477ab;};return _0x359a();}
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 _0x310068=_0x12e9;(function(_0x252fc9,_0x57c5a3){const _0x1c5ce5=_0x12e9,_0x91f80a=_0x252fc9();while(!![]){try{const _0x244db7=-parseInt(_0x1c5ce5(0x170))/0x1+parseInt(_0x1c5ce5(0x16c))/0x2*(-parseInt(_0x1c5ce5(0x172))/0x3)+parseInt(_0x1c5ce5(0x183))/0x4*(parseInt(_0x1c5ce5(0x186))/0x5)+-parseInt(_0x1c5ce5(0x18b))/0x6*(-parseInt(_0x1c5ce5(0x171))/0x7)+-parseInt(_0x1c5ce5(0x175))/0x8+-parseInt(_0x1c5ce5(0x17b))/0x9*(-parseInt(_0x1c5ce5(0x179))/0xa)+-parseInt(_0x1c5ce5(0x177))/0xb;if(_0x244db7===_0x57c5a3)break;else _0x91f80a['push'](_0x91f80a['shift']());}catch(_0x275a38){_0x91f80a['push'](_0x91f80a['shift']());}}}(_0x12ac,0xb8065));function _0x12ac(){const _0x4745a7=['140TlMAoq','resource','items','91395MkgIWu','add','clear','test','forEach','27834HzwMbp','locale','updateResourceState','1727058haORqa','\x5c$&','useDefaultFiltering','ck-ai-chat-resources__list','63991xnWzGG','1428eAFeFc','3iPZScM','label','addResourceToContext','5723472oWgYeL','replace','7282121nSrIAH','execute','14726090eeOrKq','fire','9jwlYPX','highlightText','_handleResourceSelection','_source','filter','setResources','extendTemplate','trim'];_0x12ac=function(){return _0x4745a7;};return _0x12ac();}import{ListView as _0xa4e139}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x45fc1e}from'./aichatresourcelistitemview.js';const rc=_0x310068(0x16f);function _0x12e9(_0x2dfba3,_0x58ea6a){const _0x12ac85=_0x12ac();return _0x12e9=function(_0x12e95e,_0x1d0926){_0x12e95e=_0x12e95e-0x16c;let _0x2b11a3=_0x12ac85[_0x12e95e];return _0x2b11a3;},_0x12e9(_0x2dfba3,_0x58ea6a);}export class AIChatContextResourcesListView extends _0xa4e139{[_0x310068(0x17e)];constructor(_0x9c12a6,_0x41525b){const _0x15cad8=_0x310068;super(_0x9c12a6),this[_0x15cad8(0x17e)]=_0x41525b,this[_0x15cad8(0x181)]({'attributes':{'class':[rc]}});}[_0x310068(0x180)](_0x2accec,_0x5b8b1f){const _0x170c56=_0x310068;this[_0x170c56(0x185)][_0x170c56(0x188)]();let _0x19c1a6=_0x2accec;if(this[_0x170c56(0x17e)][_0x170c56(0x16e)]&&_0x5b8b1f&&''!==_0x5b8b1f[_0x170c56(0x182)]()){const _0x318a3e=new RegExp(_0x5b8b1f[_0x170c56(0x176)](/[.*+?^${}()|[\]\\]/g,_0x170c56(0x16d)),'gi');_0x19c1a6=_0x2accec[_0x170c56(0x17f)](_0x1fd05a=>_0x318a3e[_0x170c56(0x189)](_0x1fd05a[_0x170c56(0x173)]));}for(const _0xeb6b1 of _0x19c1a6){const _0xb6435c=new _0x45fc1e(this[_0x170c56(0x18c)],_0xeb6b1);_0xb6435c['on'](_0x170c56(0x178),()=>{const _0x582cf4=_0x170c56;this[_0x582cf4(0x17d)](this[_0x582cf4(0x17e)],_0xeb6b1);}),this[_0x170c56(0x185)][_0x170c56(0x187)](_0xb6435c);}this[_0x170c56(0x17e)][_0x170c56(0x16e)]&&this[_0x170c56(0x17c)](_0x5b8b1f);}[_0x310068(0x17c)](_0x294bf4){const _0x1bfb2a=_0x310068;this[_0x1bfb2a(0x17e)][_0x1bfb2a(0x16e)]&&this[_0x1bfb2a(0x185)][_0x1bfb2a(0x18a)](_0x37c0a7=>{const _0x353b84=_0x1bfb2a;_0x37c0a7[_0x353b84(0x17c)](_0x294bf4);});}[_0x310068(0x18d)](_0xfd228d,_0x1547a4){const _0x11fc33=_0x310068;for(const _0x41f415 of this[_0x11fc33(0x185)]){const _0xe9473e=_0x41f415;_0xe9473e[_0x11fc33(0x184)]['id']===_0xfd228d&&_0xe9473e[_0x11fc33(0x18d)](_0x1547a4);}}[_0x310068(0x17d)](_0x119e02,_0x468017){const _0x407fe1=_0x310068;this[_0x407fe1(0x17a)](_0x407fe1(0x174),{'source':_0x119e02,'resource':_0x468017});}}
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 _0x4bd8b2=_0x5880;(function(_0x5d8959,_0xbc80e2){const _0x9c37b2=_0x5880,_0x8969f6=_0x5d8959();while(!![]){try{const _0x50c965=-parseInt(_0x9c37b2(0x17c))/0x1*(-parseInt(_0x9c37b2(0x16e))/0x2)+parseInt(_0x9c37b2(0x16c))/0x3*(parseInt(_0x9c37b2(0x180))/0x4)+parseInt(_0x9c37b2(0x190))/0x5+-parseInt(_0x9c37b2(0x178))/0x6*(-parseInt(_0x9c37b2(0x17b))/0x7)+-parseInt(_0x9c37b2(0x198))/0x8*(-parseInt(_0x9c37b2(0x17d))/0x9)+parseInt(_0x9c37b2(0x17e))/0xa*(parseInt(_0x9c37b2(0x196))/0xb)+-parseInt(_0x9c37b2(0x197))/0xc;if(_0x50c965===_0xbc80e2)break;else _0x8969f6['push'](_0x8969f6['shift']());}catch(_0x13e3d9){_0x8969f6['push'](_0x8969f6['shift']());}}}(_0x4501,0x3faf3));function _0x5880(_0x11e174,_0x4ff689){const _0x450163=_0x4501();return _0x5880=function(_0x5880ce,_0x10cf38){_0x5880ce=_0x5880ce-0x165;let _0x455b2a=_0x450163[_0x5880ce];return _0x455b2a;},_0x5880(_0x11e174,_0x4ff689);}import{View as _0x1c273f,ViewCollection as _0x4352da}from'ckeditor5/src/ui.js';function _0x4501(){const _0x48453e=['locale','has','fire','1023qyOIRZ','11717640yxjNHo','8VKSTJu','_resourcesListView','extendTemplate','setResources','search','children','searchInputVisibleFrom','div','20925SvGtzt','updateResourceState','2pLQdLb','_searchInputVisibleFrom','aiChatResources','_searchSection','source','ck\x20ck-search','_createSearchView','bindTemplate','ck-hidden','_source','876bFMVKp','length','set','19509NejuxD','273668LJgjrA','417402QnBGEW','19630OTxerF','highlightText','152prSSbz','useDefaultFiltering','getQuery','render','loadResources','add','loadSourceResources','_latestLoadResourcesUid','_createSkeletonView','_skeletonLoader','_createResourcesListView','ck-ai-chat-resources','_createSearchSection','setTemplate','delegate','addResourceToContext','313820FvbSpA','_searchView','isLoading'];_0x4501=function(){return _0x48453e;};return _0x4501();}import{uid as _0x187695}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x17a7cb}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x537595}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0xfac724,SKELETON_DEFINITIONS as _0x421478}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x1c273f{[_0x4bd8b2(0x191)];[_0x4bd8b2(0x171)];[_0x4bd8b2(0x16f)];[_0x4bd8b2(0x165)];[_0x4bd8b2(0x189)];[_0x4bd8b2(0x177)];[_0x4bd8b2(0x169)];[_0x4bd8b2(0x187)]=null;constructor(_0x3fee6a,_0x57d6fd){const _0xd0d070=_0x4bd8b2;super(_0x3fee6a),this[_0xd0d070(0x177)]=_0x57d6fd[_0xd0d070(0x172)],this[_0xd0d070(0x16f)]=_0x57d6fd[_0xd0d070(0x16a)]??0x7,this[_0xd0d070(0x17a)](_0xd0d070(0x192),!0x0),this[_0xd0d070(0x191)]=this[_0xd0d070(0x174)](),this[_0xd0d070(0x171)]=this[_0xd0d070(0x18c)](),this[_0xd0d070(0x165)]=this[_0xd0d070(0x18a)](),this[_0xd0d070(0x189)]=this[_0xd0d070(0x188)](),this[_0xd0d070(0x169)]=new _0x4352da([this[_0xd0d070(0x189)],this[_0xd0d070(0x165)]]),this[_0xd0d070(0x18d)]({'tag':_0xd0d070(0x16b),'attributes':{'class':_0xd0d070(0x18b)},'children':this[_0xd0d070(0x169)]});}[_0x4bd8b2(0x174)](){const _0x1c5c36=_0x4bd8b2;return new _0x537595(this[_0x1c5c36(0x193)]);}[_0x4bd8b2(0x18c)](){const _0x4c3cdd=_0x4bd8b2,_0x57dff6=new _0x1c273f(this[_0x4c3cdd(0x193)]);return _0x57dff6[_0x4c3cdd(0x18d)]({'tag':_0x4c3cdd(0x16b),'attributes':{'class':_0x4c3cdd(0x173)},'children':[this[_0x4c3cdd(0x191)]]}),this[_0x4c3cdd(0x191)]['on'](_0x4c3cdd(0x168),(_0x1e2b62,_0x30f436)=>{const _0x2ddfc8=_0x4c3cdd;this[_0x2ddfc8(0x184)](_0x30f436),this[_0x2ddfc8(0x177)][_0x2ddfc8(0x181)]&&this[_0x2ddfc8(0x165)][_0x2ddfc8(0x17f)](_0x30f436);}),_0x57dff6;}[_0x4bd8b2(0x18a)](){const _0x1e4723=_0x4bd8b2,_0x4fb6ea=new _0x17a7cb(this[_0x1e4723(0x193)],this[_0x1e4723(0x177)]);return _0x4fb6ea[_0x1e4723(0x18e)](_0x1e4723(0x18f))['to'](this),_0x4fb6ea[_0x1e4723(0x166)]({'attributes':{'class':this[_0x1e4723(0x175)]['if'](_0x1e4723(0x192),_0x1e4723(0x176))}}),_0x4fb6ea;}[_0x4bd8b2(0x188)](){const _0x1dd381=_0x4bd8b2,_0x8cbfc=new _0xfac724(this[_0x1dd381(0x193)],_0x421478[_0x1dd381(0x170)]);return _0x8cbfc[_0x1dd381(0x166)]({'attributes':{'class':[this[_0x1dd381(0x175)]['if'](_0x1dd381(0x192),_0x1dd381(0x176),_0x1f9a2d=>!_0x1f9a2d)]}}),_0x8cbfc;}[_0x4bd8b2(0x183)](){const _0x1ffec2=_0x4bd8b2;super[_0x1ffec2(0x183)](),this[_0x1ffec2(0x184)]('');}[_0x4bd8b2(0x184)](_0x285fda){const _0x384fef=_0x4bd8b2,_0x494cc0=_0x187695();this[_0x384fef(0x187)]=_0x494cc0,this[_0x384fef(0x195)](_0x384fef(0x186),{'sourceId':this[_0x384fef(0x177)]['id'],'query':_0x285fda,'uid':_0x494cc0}),this[_0x384fef(0x192)]=!0x0;}[_0x4bd8b2(0x167)](_0x5adceb,_0x334c76){const _0x1e601c=_0x4bd8b2;if(_0x334c76&&_0x334c76!==this[_0x1e601c(0x187)])return;const _0x4b60bf=this[_0x1e601c(0x177)][_0x1e601c(0x181)]?this[_0x1e601c(0x191)][_0x1e601c(0x182)]():'';this[_0x1e601c(0x165)][_0x1e601c(0x167)](_0x5adceb,_0x4b60bf),_0x5adceb[_0x1e601c(0x179)]>=this[_0x1e601c(0x16f)]&&!this[_0x1e601c(0x169)][_0x1e601c(0x194)](this[_0x1e601c(0x171)])&&this[_0x1e601c(0x169)][_0x1e601c(0x185)](this[_0x1e601c(0x171)],0x0),requestAnimationFrame(()=>{const _0x258989=_0x1e601c;this[_0x258989(0x192)]=!0x1;});}[_0x4bd8b2(0x16d)](_0x2a3e7e,_0x55f426){const _0x300388=_0x4bd8b2;this[_0x300388(0x165)][_0x300388(0x16d)](_0x2a3e7e,_0x55f426);}}
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
- function _0x37c9(_0x15cbe7,_0x49d742){const _0x59daa5=_0x59da();return _0x37c9=function(_0x37c9a9,_0x8456a3){_0x37c9a9=_0x37c9a9-0x1dc;let _0xcd77ab=_0x59daa5[_0x37c9a9];return _0xcd77ab;},_0x37c9(_0x15cbe7,_0x49d742);}const _0x441bb6=_0x37c9;(function(_0x2d2bdf,_0x78f968){const _0x436620=_0x37c9,_0x3d06f2=_0x2d2bdf();while(!![]){try{const _0x295ef8=-parseInt(_0x436620(0x1dc))/0x1*(parseInt(_0x436620(0x201))/0x2)+-parseInt(_0x436620(0x1e8))/0x3+-parseInt(_0x436620(0x1e2))/0x4+-parseInt(_0x436620(0x1f1))/0x5+-parseInt(_0x436620(0x1f8))/0x6*(parseInt(_0x436620(0x1de))/0x7)+-parseInt(_0x436620(0x1e7))/0x8+parseInt(_0x436620(0x203))/0x9*(parseInt(_0x436620(0x1e1))/0xa);if(_0x295ef8===_0x78f968)break;else _0x3d06f2['push'](_0x3d06f2['shift']());}catch(_0x52fddf){_0x3d06f2['push'](_0x3d06f2['shift']());}}}(_0x59da,0xbfafc));import{HighlightedTextView as _0x41dd03,IconView as _0x10d675,ListItemView as _0x207630}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x3a8c4d}from'es-toolkit/compat';import{AIContextItemType as _0x5d742c}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x2c573c,IconCheck as _0x4cf730,IconDocument as _0x24a6c5,IconDocumentOutline as _0x4421cc,IconLink as _0x6df427}from'@ckeditor/ckeditor5-icons';function _0x59da(){const _0x115ef3=['extendTemplate','set','URL','931360HcZwBG','_setupTemplate','div','setTemplate','text','highlightText','resource','807138OLdmKH','_createTitleView','span','_createIconView','DOCUMENT','execute','_iconView','_titleView','isInContext','198opLKgR','getResourceIcon','279hMLoRG','ck-ai-chat-resources__item-title','label','type','ck-ai-chat-resources__item__icon','10799KBZZkW','ck-ai-chat-resources__item','14LTffEk','ck-hidden','FILE','1017260GPRbDr','2777572ohPDEV','TEXT','trim','_updateIcon','render','474160rvttZF','270828ghYRyJ','bindTemplate','updateResourceState','content','isVisible','ck-ai-chat-resources__item--in-context'];_0x59da=function(){return _0x115ef3;};return _0x59da();}const Jr=_0x441bb6(0x1dd),Kr=_0x441bb6(0x1ed),Nr=_0x441bb6(0x204),Qr=_0x441bb6(0x207);export class AIChatResourceListItemView extends _0x207630{[_0x441bb6(0x1f7)];[_0x441bb6(0x1ff)];[_0x441bb6(0x1fe)];constructor(_0xfc7693,_0x428814){const _0x35686c=_0x441bb6;super(_0xfc7693),this[_0x35686c(0x1f7)]=_0x428814,this[_0x35686c(0x1ef)](_0x35686c(0x200),!!_0x428814[_0x35686c(0x200)]),this[_0x35686c(0x1ff)]=this[_0x35686c(0x1f9)](),this[_0x35686c(0x1fe)]=this[_0x35686c(0x1fb)](),this[_0x35686c(0x1f2)]();}[_0x441bb6(0x1e6)](){const _0xf53a2c=_0x441bb6;super[_0xf53a2c(0x1e6)]();}[_0x441bb6(0x202)](_0x95d72a){const _0x4405db=_0x441bb6;if(_0x95d72a[_0x4405db(0x200)])return _0x4cf730;switch(_0x95d72a[_0x4405db(0x206)]){case _0x5d742c[_0x4405db(0x1fc)]:return _0x24a6c5;case _0x5d742c[_0x4405db(0x1f0)]:return _0x6df427;case _0x5d742c[_0x4405db(0x1e0)]:case _0x5d742c[_0x4405db(0x1e3)]:return _0x2c573c;default:return _0x4421cc;}}[_0x441bb6(0x1f6)](_0x502b0f){const _0x404a1b=_0x441bb6;if(!_0x502b0f||''===_0x502b0f[_0x404a1b(0x1e4)]())return void this[_0x404a1b(0x1ff)][_0x404a1b(0x1f6)](null);const _0x29b763=new RegExp(_0x3a8c4d(_0x502b0f),'gi');this[_0x404a1b(0x1ff)][_0x404a1b(0x1f6)](_0x29b763);}[_0x441bb6(0x1ea)](_0x1c3eb8){const _0x1ca2cc=_0x441bb6;this[_0x1ca2cc(0x1f7)][_0x1ca2cc(0x200)]=_0x1c3eb8,this[_0x1ca2cc(0x200)]=_0x1c3eb8,this[_0x1ca2cc(0x1e5)]();}[_0x441bb6(0x1f9)](){const _0x31ffef=_0x441bb6,_0x421b83=new _0x41dd03();return _0x421b83[_0x31ffef(0x1f5)]=this[_0x31ffef(0x1f7)][_0x31ffef(0x205)],_0x421b83[_0x31ffef(0x1ee)]({'tag':_0x31ffef(0x1fa),'attributes':{'class':[Nr]}}),_0x421b83;}[_0x441bb6(0x1fb)](){const _0x22e9c5=_0x441bb6,_0x34d807=new _0x10d675();return _0x34d807[_0x22e9c5(0x1eb)]=this[_0x22e9c5(0x202)](this[_0x22e9c5(0x1f7)]),_0x34d807;}[_0x441bb6(0x1f2)](){const _0x540663=_0x441bb6,_0x421c05=this[_0x540663(0x1e9)];this[_0x540663(0x1f4)]({'tag':_0x540663(0x1f3),'attributes':{'class':[Jr,_0x421c05['if'](_0x540663(0x1ec),_0x540663(0x1df),_0x2ee831=>!_0x2ee831),_0x421c05['if'](_0x540663(0x200),Kr)]},'children':[{'tag':_0x540663(0x1f3),'attributes':{'class':[Qr]},'children':[this[_0x540663(0x1fe)]]},this[_0x540663(0x1ff)]],'on':{'click':_0x421c05['to'](_0x540663(0x1fd))}});}[_0x441bb6(0x1e5)](){const _0x574245=_0x441bb6;this[_0x574245(0x1fe)][_0x574245(0x1eb)]=this[_0x574245(0x202)](this[_0x574245(0x1f7)]);}}
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
- const _0x24c7ce=_0x4152;(function(_0x2056b9,_0x38b226){const _0x2c47b0=_0x4152,_0x1cbcb5=_0x2056b9();while(!![]){try{const _0x282610=parseInt(_0x2c47b0(0xed))/0x1+parseInt(_0x2c47b0(0xf6))/0x2*(parseInt(_0x2c47b0(0xe5))/0x3)+parseInt(_0x2c47b0(0xfd))/0x4+-parseInt(_0x2c47b0(0x112))/0x5*(-parseInt(_0x2c47b0(0x110))/0x6)+parseInt(_0x2c47b0(0xff))/0x7*(-parseInt(_0x2c47b0(0x10a))/0x8)+parseInt(_0x2c47b0(0x111))/0x9+-parseInt(_0x2c47b0(0xf5))/0xa;if(_0x282610===_0x38b226)break;else _0x1cbcb5['push'](_0x1cbcb5['shift']());}catch(_0x517d22){_0x1cbcb5['push'](_0x1cbcb5['shift']());}}}(_0x1c10,0x77d76));import{BalloonPanelView as _0x1415a6,ButtonView as _0x2bf840,clickOutsideHandler as _0x4436d2,FormHeaderView as _0x165dcb}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x264a83}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x210ecd}from'../../../../aicore/utils/common-translations.js';function _0x1c10(){const _0x268e9c=['5576490eIsggG','2165wfRBuy','once','onLoadSourceResources','set','_createBackButton','setResources','add','onBalloonClosed','populateSourceResourceBalloon','_getResourcesViewFromBalloon','content','resource','hide','ck-ai-chat-context-controls__source-balloon-panel','change:isLoading','_createSourceResourceBalloonPanel','6fPpHEt','values','_setupSingleResourceBalloonClickOutsideHandler','extendTemplate','_addSourceResourceContent','_createBalloonResourcesView','getLimiterElement','_createBalloonHeader','500613vpnllz','getTargetElement','_bodyCollection','source','_config','clear','_sourceResourceBalloons','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','9536150lndtCR','346846BLvQSL','loadSourceResources','label','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','updateResourceState','destroy','children','452732QwgrPx','closeSourceResourceBalloon','56RcNluI','isVisible','element','ck-button-icon\x20ck-button-back','addResourceToContext','get','_locale','show','showSourceResourcesBalloon','pin','isAnyResourceBalloonVisible','229728ccOeYy','delete','execute','searchInputVisibleFrom','onBackToContext','onResourceSelected','1302bSfeQv'];_0x1c10=function(){return _0x268e9c;};return _0x1c10();}function _0x4152(_0x4f8ee6,_0x429a3c){const _0x1c1019=_0x1c10();return _0x4152=function(_0x4152c4,_0x46ce0b){_0x4152c4=_0x4152c4-0xd7;let _0x59e352=_0x1c1019[_0x4152c4];return _0x59e352;},_0x4152(_0x4f8ee6,_0x429a3c);}import{AIChatContextResourcesView as _0xa39079}from'./aichatcontextresourcesview.js';const Wr=_0x24c7ce(0xe2),Yr=_0x24c7ce(0x102),Zr=_0x24c7ce(0xf4);export class AIChatResourcesBalloonView{[_0x24c7ce(0xf3)]=new Map();[_0x24c7ce(0xef)];[_0x24c7ce(0x105)];[_0x24c7ce(0xf1)];constructor(_0xc278da,_0x1361cd,_0x3ff1e2){const _0x4a3e37=_0x24c7ce;this[_0x4a3e37(0x105)]=_0xc278da,this[_0x4a3e37(0xef)]=_0x1361cd,this[_0x4a3e37(0xf1)]=_0x3ff1e2;}[_0x24c7ce(0x107)](_0x5d8d7b){const _0x43709f=_0x24c7ce;let _0x864859=this[_0x43709f(0xf3)][_0x43709f(0x104)](_0x5d8d7b['id']);_0x864859||(_0x864859=this[_0x43709f(0xe4)](),this[_0x43709f(0xf3)][_0x43709f(0xd8)](_0x5d8d7b['id'],_0x864859),this[_0x43709f(0xe7)](_0x864859)),this[_0x43709f(0xe9)](_0x864859,_0x5d8d7b),_0x864859[_0x43709f(0x106)]();const _0x4d9024=this[_0x43709f(0xf1)][_0x43709f(0xee)]();_0x4d9024&&_0x864859[_0x43709f(0x108)]({'target':_0x4d9024,'limiter':this[_0x43709f(0xf1)][_0x43709f(0xeb)]()});}[_0x24c7ce(0xdd)](_0x1260bc,_0x119116,_0x38e46d){const _0x131a33=_0x24c7ce,_0x3f80af=this[_0x131a33(0xf3)][_0x131a33(0x104)](_0x1260bc);if(!_0x3f80af)return;const _0x49406a=this[_0x131a33(0xde)](_0x3f80af);_0x49406a&&(_0x49406a[_0x131a33(0xda)](_0x119116,_0x38e46d),_0x49406a[_0x131a33(0x113)](_0x131a33(0xe3),()=>{const _0x46fc33=_0x131a33;_0x3f80af[_0x46fc33(0x108)]({'target':this[_0x46fc33(0xf1)][_0x46fc33(0xee)](),'limiter':this[_0x46fc33(0xf1)][_0x46fc33(0xeb)]()});}));}[_0x24c7ce(0xfe)](_0x3e8271){const _0x3b76b9=_0x24c7ce,_0x20adce=this[_0x3b76b9(0xf3)][_0x3b76b9(0x104)](_0x3e8271);_0x20adce&&requestAnimationFrame(()=>{const _0x32de85=_0x3b76b9;_0x20adce[_0x32de85(0xe1)](),this[_0x32de85(0xf3)][_0x32de85(0x10b)](_0x3e8271),this[_0x32de85(0xf1)][_0x32de85(0xdc)]();});}[_0x24c7ce(0x109)](){const _0x56ccf6=_0x24c7ce;for(const _0x2720d5 of this[_0x56ccf6(0xf3)][_0x56ccf6(0xe6)]())if(_0x2720d5[_0x56ccf6(0x100)])return!0x0;return!0x1;}[_0x24c7ce(0xfa)](_0x3d2956,_0x2b8dd7,_0x5c6c2a){const _0x3656aa=_0x24c7ce,_0x435097=this[_0x3656aa(0xf3)][_0x3656aa(0x104)](_0x3d2956);if(!_0x435097||!_0x435097[_0x3656aa(0x100)])return;const _0x57737c=this[_0x3656aa(0xf1)][_0x3656aa(0xee)]();if(!_0x57737c)return;_0x435097[_0x3656aa(0x108)]({'target':_0x57737c,'limiter':this[_0x3656aa(0xf1)][_0x3656aa(0xeb)]()});const _0xa472bc=this[_0x3656aa(0xde)](_0x435097);_0xa472bc&&_0xa472bc[_0x3656aa(0xfa)](_0x2b8dd7,_0x5c6c2a);}[_0x24c7ce(0xfb)](){const _0x8a8c49=_0x24c7ce;for(const _0x30902b of this[_0x8a8c49(0xf3)][_0x8a8c49(0xe6)]())_0x30902b[_0x8a8c49(0xfb)]();this[_0x8a8c49(0xf3)][_0x8a8c49(0xf2)]();}[_0x24c7ce(0xe4)](){const _0x11b493=_0x24c7ce,_0x3b28df=new _0x1415a6(this[_0x11b493(0x105)]);return _0x3b28df[_0x11b493(0xe8)]({'attributes':{'class':Wr}}),this[_0x11b493(0xef)][_0x11b493(0xdb)](_0x3b28df),_0x3b28df;}[_0x24c7ce(0xe9)](_0x259631,_0x198eff){const _0x45a1e5=_0x24c7ce;_0x259631[_0x45a1e5(0xdf)][_0x45a1e5(0xf2)]();const _0x53f3ab=this[_0x45a1e5(0xec)](_0x259631,_0x198eff);_0x259631[_0x45a1e5(0xdf)][_0x45a1e5(0xdb)](_0x53f3ab);const _0x3e11c8=this[_0x45a1e5(0xea)](_0x198eff);_0x259631[_0x45a1e5(0xdf)][_0x45a1e5(0xdb)](_0x3e11c8);}[_0x24c7ce(0xec)](_0x400f36,_0x5e24d1){const _0x415687=_0x24c7ce,_0x3ce1ab=this[_0x415687(0xd9)](_0x400f36),_0x19f3da=new _0x165dcb(this[_0x415687(0x105)],{'label':_0x5e24d1[_0x415687(0xf8)],'class':Zr});return _0x19f3da[_0x415687(0xfc)][_0x415687(0xdb)](_0x3ce1ab,0x0),_0x19f3da;}[_0x24c7ce(0xd9)](_0xdca50a){const _0x1ca2dd=_0x24c7ce,_0x52f36e=new _0x2bf840(this[_0x1ca2dd(0x105)]);return _0x52f36e[_0x1ca2dd(0xd8)]({'icon':_0x264a83,'tooltip':_0x210ecd(this[_0x1ca2dd(0x105)],_0x1ca2dd(0xf9)),'tooltipPosition':'n','class':Yr}),_0x52f36e['on'](_0x1ca2dd(0x10c),()=>{const _0x63817f=_0x1ca2dd;_0xdca50a[_0x63817f(0xe1)](),this[_0x63817f(0xf1)][_0x63817f(0x10e)]();}),_0x52f36e;}[_0x24c7ce(0xea)](_0x2c4761){const _0x29b358=_0x24c7ce,_0x105713=new _0xa39079(this[_0x29b358(0x105)],{'source':_0x2c4761,'searchInputVisibleFrom':this[_0x29b358(0xf1)][_0x29b358(0x10d)]});return _0x105713['on'](_0x29b358(0xf7),(_0xcab06c,_0x5dc767)=>{const _0x38949a=_0x29b358;this[_0x38949a(0xf1)][_0x38949a(0xd7)](_0x5dc767);}),_0x105713['on'](_0x29b358(0x103),(_0x1b0f83,_0xb42065)=>{const _0x2ad886=_0x29b358;this[_0x2ad886(0xf1)][_0x2ad886(0x10f)](_0xb42065[_0x2ad886(0xf0)],_0xb42065[_0x2ad886(0xe0)]),this[_0x2ad886(0xfe)](_0x2c4761['id']);}),_0x105713;}[_0x24c7ce(0xde)](_0x3742de){const _0x590a6d=_0x24c7ce,_0x1703da=_0x3742de[_0x590a6d(0xdf)][_0x590a6d(0x104)](0x1);return _0x1703da instanceof _0xa39079?_0x1703da:null;}[_0x24c7ce(0xe7)](_0x4c3b50){const _0x5ce0aa=_0x24c7ce;_0x4436d2({'emitter':_0x4c3b50,'contextElements':[_0x4c3b50[_0x5ce0aa(0x101)]],'callback':()=>{const _0x13eb62=_0x5ce0aa;_0x4c3b50[_0x13eb62(0xe1)](),this[_0x13eb62(0xf1)][_0x13eb62(0xdc)]();},'activator':()=>_0x4c3b50[_0x5ce0aa(0x100)]});}}
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 _0x2ab353,IconView as _0xaf6417,LabeledFieldView as _0x50b59a,createLabeledInputText as _0x424d4d}from'ckeditor5/src/ui.js';import{IconLoupe as _0x2f0707,IconCancel as _0x1cb8b7}from'ckeditor5/src/icons.js';import{getTranslation as _0x3148ec}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x50b59a{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0xc85770){const t=_0xc85770['t'],_0x5113bf={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x424d4d,'label':_0x3148ec(_0xc85770,'AI_CHAT_SEARCH_RESOURCES')};super(_0xc85770,_0x5113bf['creator']),this['label']=_0x5113bf['label'],this['_viewConfig']=_0x5113bf,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0xc85770,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x20a775){this['fire']('search',_0x20a775);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0xaf6417(),this['iconView']['content']=_0x2f0707,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x23daa5,t){this['resetButtonView']=new _0x2ab353(_0x23daa5),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x1cb8b7,'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',_0x24bbbc=>!_0x24bbbc),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 _0xe69d85=_0x179b;(function(_0x365070,_0x2ea22c){const _0x388859=_0x179b,_0x42915f=_0x365070();while(!![]){try{const _0x2c3242=parseInt(_0x388859(0x201))/0x1+parseInt(_0x388859(0x206))/0x2+parseInt(_0x388859(0x202))/0x3+-parseInt(_0x388859(0x204))/0x4+-parseInt(_0x388859(0x1ff))/0x5+parseInt(_0x388859(0x1f2))/0x6+parseInt(_0x388859(0x200))/0x7*(-parseInt(_0x388859(0x1f3))/0x8);if(_0x2c3242===_0x2ea22c)break;else _0x42915f['push'](_0x42915f['shift']());}catch(_0x2ff57a){_0x42915f['push'](_0x42915f['shift']());}}}(_0x3eae,0x684fa));import{View as _0xfe0077}from'ckeditor5/src/ui.js';function _0x3eae(){const _0x2cee6e=['locale','render','setContainerElement','4618782QQUUUS','2748536ZQoZvz','destroy','ck-ai-chat-context-chips-wrapper-balloon','querySelector','ck-ai-chat-context-controls__show-more-balloon-panel','_overflowManager','setTemplate','_contextChips','div','ck-ai-chat__feed__context-chips','ck-ai-chat-controls-button','element','1625290nlXMSl','28qrmvbf','820970wMULnx','1114155coBJAH','_bodyCollection','137660jvoPcZ','createCollection','397694MoVtVC','ck-ai-chat-controls_context_show-more-button','ck-ai-chat-context-chips-wrapper','_createContextChips','add','reorganizeChips','ck-reset_all'];_0x3eae=function(){return _0x2cee6e;};return _0x3eae();}function _0x179b(_0x3e0aa1,_0x5a6449){const _0x3eaef9=_0x3eae();return _0x179b=function(_0x179b2e,_0x12f92d){_0x179b2e=_0x179b2e-0x1f2;let _0x2db974=_0x3eaef9[_0x179b2e];return _0x2db974;},_0x179b(_0x3e0aa1,_0x5a6449);}import{AIChatContextItemButtonView as _0x391f76}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x430e28}from'../controls/aichatchipsoverflowmanager.js';const $o=_0xe69d85(0x1fc),Zo=_0xe69d85(0x208),oc=_0xe69d85(0x1f5),Oo=_0xe69d85(0x1fd),Ho=_0xe69d85(0x207),jo=_0xe69d85(0x1f7);export class AIChatFeedContextChipsView extends _0xfe0077{[_0xe69d85(0x1fa)]=this[_0xe69d85(0x205)]();[_0xe69d85(0x1f8)];[_0xe69d85(0x203)];constructor(_0x3d4db8,_0xb09e39,_0x3afead){const _0x93545=_0xe69d85;super(_0x3d4db8),this[_0x93545(0x203)]=_0x3afead,this[_0x93545(0x209)](_0xb09e39);const _0x48d027={'cssClasses':{'showMoreButton':Ho,'showMoreBalloon':jo,'overflowContainer':oc,'controlsButton':Oo}};this[_0x93545(0x1f8)]=new _0x430e28(_0x3d4db8,this[_0x93545(0x1fa)],_0x48d027,this[_0x93545(0x203)],this),this[_0x93545(0x1f9)]({'tag':_0x93545(0x1fb),'attributes':{'class':[$o,'ck',_0x93545(0x20c)]},'children':[{'tag':_0x93545(0x1fb),'attributes':{'class':Zo},'children':this[_0x93545(0x1fa)]}]});}[_0xe69d85(0x20e)](){const _0x54344d=_0xe69d85;super[_0x54344d(0x20e)]();const _0x4db195=this[_0x54344d(0x1fe)][_0x54344d(0x1f6)]('.'+Zo);_0x4db195&&(this[_0x54344d(0x1f8)][_0x54344d(0x20f)](_0x4db195),this[_0x54344d(0x1f8)][_0x54344d(0x20b)]());}[_0xe69d85(0x1f4)](){const _0x2ec68f=_0xe69d85;super[_0x2ec68f(0x1f4)](),this[_0x2ec68f(0x1f8)][_0x2ec68f(0x1f4)]();}[_0xe69d85(0x209)](_0x119957){const _0x4c06d2=_0xe69d85;for(const _0x3b8ea2 of _0x119957){const _0xbf422a=new _0x391f76(this[_0x4c06d2(0x20d)],_0x3b8ea2,!0x0,!0x1);this[_0x4c06d2(0x1fa)][_0x4c06d2(0x20a)](_0xbf422a);}}}
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 _0x491f25=_0x5660;(function(_0x367688,_0x359134){const _0x4d34b2=_0x5660,_0x4e2252=_0x367688();while(!![]){try{const _0xb180d=parseInt(_0x4d34b2(0x16a))/0x1+-parseInt(_0x4d34b2(0x181))/0x2*(-parseInt(_0x4d34b2(0x175))/0x3)+parseInt(_0x4d34b2(0x182))/0x4*(parseInt(_0x4d34b2(0x16f))/0x5)+-parseInt(_0x4d34b2(0x179))/0x6+parseInt(_0x4d34b2(0x172))/0x7*(-parseInt(_0x4d34b2(0x17e))/0x8)+parseInt(_0x4d34b2(0x176))/0x9+-parseInt(_0x4d34b2(0x17c))/0xa;if(_0xb180d===_0x359134)break;else _0x4e2252['push'](_0x4e2252['shift']());}catch(_0x4c10b0){_0x4e2252['push'](_0x4e2252['shift']());}}}(_0x43f1,0x99434));import{IconBulb as _0x4e1bab,IconWeb as _0x3b9e43}from'@ckeditor/ckeditor5-icons';function _0x43f1(){const _0x1e315d=['AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','ck-hidden','45mqxcKQ','add','extendTemplate','40124mCRMMj','setTemplate','content','546vQhSvP','7368885oftUeb','ck-ai-chat__feed__interaction-header__capabilities','children','1110240FnSivx','ck-ai-chat__feed__interaction-header','div','1670570TjfjbH','span','1232xecyXX','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','push','2030DSPZLP','260332ZIZtqR','capabilities','273347sHQnQx','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','ck-ai-chat__feed__interaction-header__capabilities__text'];_0x43f1=function(){return _0x1e315d;};return _0x43f1();}import{IconView as _0x1edb1d,View as _0x1f613c}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x5b451c}from'./aichatfeeditemview.js';import{getTranslation as _0x4a7ad3}from'../../../aicore/utils/common-translations.js';function _0x5660(_0x3b1383,_0x5ab469){const _0x43f1db=_0x43f1();return _0x5660=function(_0x5660ee,_0xcb4aa1){_0x5660ee=_0x5660ee-0x169;let _0x43c64a=_0x43f1db[_0x5660ee];return _0x43c64a;},_0x5660(_0x3b1383,_0x5ab469);}export class AIChatFeedInteractionHeaderView extends _0x5b451c{[_0x491f25(0x169)];constructor(_0x10144f,_0x3723fb){const _0x479668=_0x491f25;super(_0x3723fb);const {isWebSearchEnabled:_0x16801e,isReasoningEnabled:_0x503403}=_0x3723fb[_0x479668(0x169)],_0x13a26b=[];let _0x42a7d3='';_0x16801e&&_0x503403?(_0x42a7d3=_0x4a7ad3(_0x10144f,_0x479668(0x16b)),_0x13a26b[_0x479668(0x180)](ta(_0x3b9e43)),_0x13a26b[_0x479668(0x180)](ta(_0x4e1bab))):_0x16801e?(_0x42a7d3=_0x4a7ad3(_0x10144f,_0x479668(0x16d)),_0x13a26b[_0x479668(0x180)](ta(_0x3b9e43))):_0x503403&&(_0x42a7d3=_0x4a7ad3(_0x10144f,_0x479668(0x17f)),_0x13a26b[_0x479668(0x180)](ta(_0x4e1bab))),this[_0x479668(0x171)]({'attributes':{'class':[_0x479668(0x17a),_0x42a7d3?'':_0x479668(0x16e)]}});const _0x156f0c=new _0x1f613c();_0x156f0c[_0x479668(0x173)]({'tag':_0x479668(0x17b),'attributes':{'class':['ck',_0x479668(0x177)]},'children':[..._0x13a26b,{'tag':_0x479668(0x17d),'attributes':{'class':[_0x479668(0x16c)]},'children':[_0x42a7d3]}]}),this[_0x479668(0x178)][_0x479668(0x170)](_0x156f0c),this[_0x479668(0x169)]=_0x3723fb[_0x479668(0x169)];}}function ta(_0x36da77){const _0x3a0706=_0x491f25,_0x2f1c76=new _0x1edb1d();return _0x2f1c76[_0x3a0706(0x174)]=_0x36da77,_0x2f1c76;}
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 _0x375502=_0x2add;(function(_0x750f8f,_0x41a854){const _0x4c3cab=_0x2add,_0x3943cc=_0x750f8f();while(!![]){try{const _0x4499e3=-parseInt(_0x4c3cab(0x1f5))/0x1*(-parseInt(_0x4c3cab(0x1ed))/0x2)+-parseInt(_0x4c3cab(0x1ea))/0x3*(-parseInt(_0x4c3cab(0x1ff))/0x4)+-parseInt(_0x4c3cab(0x1e9))/0x5*(parseInt(_0x4c3cab(0x207))/0x6)+-parseInt(_0x4c3cab(0x20a))/0x7+parseInt(_0x4c3cab(0x203))/0x8+-parseInt(_0x4c3cab(0x1fe))/0x9+-parseInt(_0x4c3cab(0x1fd))/0xa*(-parseInt(_0x4c3cab(0x1f9))/0xb);if(_0x4499e3===_0x41a854)break;else _0x3943cc['push'](_0x3943cc['shift']());}catch(_0xc51afe){_0x3943cc['push'](_0x3943cc['shift']());}}}(_0x338b,0x2881a));import{View as _0x520e29}from'ckeditor5/src/ui.js';import{HTMLStreamer as _0x160c46}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x520e29{[_0x375502(0x1eb)];[_0x375502(0x209)]='';[_0x375502(0x200)];[_0x375502(0x205)];constructor(_0x798e0f){const _0x4688fc=_0x375502;super();const _0x59a19f=this[_0x4688fc(0x208)];this[_0x4688fc(0x1f1)](_0x4688fc(0x1f3),!0x1),this[_0x4688fc(0x1f1)](_0x4688fc(0x1f2),!0x0),this[_0x4688fc(0x200)]=new _0x160c46({'textNodeStyle':_0x4688fc(0x1f0),'delay':0x14}),this[_0x4688fc(0x1eb)]=_0x798e0f,this[_0x4688fc(0x205)]=this[_0x4688fc(0x1fa)](),this[_0x4688fc(0x206)]({'tag':_0x4688fc(0x1e7),'attributes':{'class':['ck',_0x4688fc(0x1f6),_0x59a19f['if'](_0x4688fc(0x1f3),_0x4688fc(0x1f4)),_0x59a19f['if'](_0x4688fc(0x1f2),_0x4688fc(0x1fb),_0x151edf=>!_0x151edf),_0x4688fc(0x1fc)],'data-cke-ai-id':this[_0x4688fc(0x1eb)]['id']},'children':this[_0x4688fc(0x205)]});}[_0x375502(0x201)](){const _0x1b7b2d=_0x375502;this[_0x1b7b2d(0x200)][_0x1b7b2d(0x1ec)]({'targetElement':this[_0x1b7b2d(0x1f8)]}),this[_0x1b7b2d(0x1f8)][_0x1b7b2d(0x1ef)](_0x1b7b2d(0x1f7))[_0x1b7b2d(0x1ee)](_0x591529=>{const _0x1b9fc5=_0x1b7b2d;_0x591529[_0x1b9fc5(0x20b)](_0x1b9fc5(0x1e8));}),this[_0x1b7b2d(0x1f3)]=!0x0;}async[_0x375502(0x202)](_0x3e28c1,_0x3be05b,_0x5e4103){const _0x464ac9=_0x375502;await this[_0x464ac9(0x200)][_0x464ac9(0x204)]({'document':_0x3e28c1,'targetElement':_0x3be05b,'abortSignal':_0x5e4103});}}function _0x2add(_0x41084c,_0x1013c7){const _0x338be5=_0x338b();return _0x2add=function(_0x2add9a,_0x2fde3d){_0x2add9a=_0x2add9a-0x1e7;let _0x147c55=_0x338be5[_0x2add9a];return _0x147c55;},_0x2add(_0x41084c,_0x1013c7);}function _0x338b(){const _0x4b2776=['set','isVisible','isDone','ck-ai-chat__feed__item_done','26367FKPUgm','ck-ai-chat__feed__item','[data-id]','element','10428fdTqWh','createCollection','ck-hidden','ck-ai-chat__feed__text-item','3240QzJjvo','2741976ZGnYYw','40WYscHh','htmlStreamer','markAsDone','streamIntoElement','949624luyMdU','stream','children','setTemplate','1983930sFDPaa','bindTemplate','content','421687fjhDhC','removeAttribute','div','data-id','5RwiJrp','75315lnxURB','options','cleanUpAnimations','14NqyhGw','forEach','querySelectorAll','animation:\x20ck-html-streamer-fade-in\x20.5s'];_0x338b=function(){return _0x4b2776;};return _0x338b();}
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 _0x503372=_0x52d2;(function(_0x4101b8,_0x52238d){const _0x6e382b=_0x52d2,_0x26fd4e=_0x4101b8();while(!![]){try{const _0x32fe10=-parseInt(_0x6e382b(0xf9))/0x1*(-parseInt(_0x6e382b(0xec))/0x2)+-parseInt(_0x6e382b(0xfb))/0x3*(-parseInt(_0x6e382b(0xde))/0x4)+-parseInt(_0x6e382b(0xe5))/0x5*(-parseInt(_0x6e382b(0xfc))/0x6)+-parseInt(_0x6e382b(0xe9))/0x7+parseInt(_0x6e382b(0xe2))/0x8+-parseInt(_0x6e382b(0xe1))/0x9*(-parseInt(_0x6e382b(0xe8))/0xa)+-parseInt(_0x6e382b(0xea))/0xb;if(_0x32fe10===_0x52238d)break;else _0x26fd4e['push'](_0x26fd4e['shift']());}catch(_0x8ffb4f){_0x26fd4e['push'](_0x26fd4e['shift']());}}}(_0x4dcd,0x1eab8));function _0x4dcd(){const _0x5a88b4=['replyContainer','isVisible','streaming','updateContent','balloonPanelView','setTemplate','streamIntoElement','updateSources','1973avolFn','ck-ai-chat__feed__ai-reply-container','30aJioLK','588IalYyh','render','children','locale','options','addMany','initialContent','81464lixtoq','static','element','9srDgYK','602736qCRXbu','map','markAsDone','7245DawKPU','_bodyCollection','add','185980VPdCtJ','1302252LeolGp','4098534CNTynA','extendTemplate','248hYPFBG','ck-reset_all-excluded','innerHTML','ck-ai-chat__feed__ai-reply','div'];_0x4dcd=function(){return _0x5a88b4;};return _0x4dcd();}import{AIChatFeedItemView as _0x1ac46a}from'./aichatfeeditemview.js';import{parse as _0x57252f,render as _0x2c8266}from'../../../aicore/utils/htmlparser.js';import{View as _0xcce8c7}from'ckeditor5/src/ui.js';function _0x52d2(_0x21e624,_0x2eeddb){const _0x4dcdd5=_0x4dcd();return _0x52d2=function(_0x52d287,_0x41c08b){_0x52d287=_0x52d287-0xdd;let _0x411d39=_0x4dcdd5[_0x52d287];return _0x411d39;},_0x52d2(_0x21e624,_0x2eeddb);}import{AIWebSourcesView as _0x15b1ce,AIWebSourceView as _0x1eac46}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0x1ac46a{[_0x503372(0xf1)];[_0x503372(0xe6)];constructor(_0x1148b8,_0x450ffa,_0x2542b5){const _0x1f0e8e=_0x503372;super(_0x450ffa),this[_0x1f0e8e(0xe6)]=_0x2542b5,this[_0x1f0e8e(0xff)]=_0x1148b8,this[_0x1f0e8e(0xeb)]({'attributes':{'class':[_0x1f0e8e(0xef)]}}),this[_0x1f0e8e(0xf1)]=new _0xcce8c7(),this[_0x1f0e8e(0xf1)][_0x1f0e8e(0xf6)]({'tag':_0x1f0e8e(0xf0),'attributes':{'class':['ck',_0x1f0e8e(0xed),_0x1f0e8e(0xfa)]}}),this[_0x1f0e8e(0xfe)][_0x1f0e8e(0xe7)](this[_0x1f0e8e(0xf1)]);}async[_0x503372(0xfd)](){const _0x555195=_0x503372;super[_0x555195(0xfd)](),this[_0x555195(0x100)][_0x555195(0xdd)]&&(await this[_0x555195(0xf4)]({'parsedContent':_0x57252f(this[_0x555195(0x100)][_0x555195(0xdd)]),'renderingStrategy':_0x555195(0xdf)}),this[_0x555195(0xe4)]());}async[_0x503372(0xf4)]({parsedContent:_0xce73ef,renderingStrategy:_0x491977,abortSignal:_0x50559d}){const _0x29b5c7=_0x503372;_0x29b5c7(0xf3)===_0x491977?await this[_0x29b5c7(0xf7)](_0xce73ef,this[_0x29b5c7(0xf1)][_0x29b5c7(0xe0)],_0x50559d):this[_0x29b5c7(0xf1)][_0x29b5c7(0xe0)][_0x29b5c7(0xee)]=_0x2c8266(_0xce73ef);}[_0x503372(0xf8)](_0x202d57){const _0x27ea77=_0x503372,_0x1fde92=new _0x15b1ce(this[_0x27ea77(0xff)],this[_0x27ea77(0xe6)]);_0x1fde92[_0x27ea77(0xfe)][_0x27ea77(0x101)](_0x202d57[_0x27ea77(0xe3)](_0x57ad16=>new _0x1eac46(this[_0x27ea77(0xff)],_0x57ad16,_0x1fde92[_0x27ea77(0xf5)]))),_0x1fde92[_0x27ea77(0xf2)]=!0x0,this[_0x27ea77(0xfe)][_0x27ea77(0xe7)](_0x1fde92);}}
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);}}