@ckeditor/ckeditor5-ai 47.1.0-alpha.0 → 47.1.0-alpha.1

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 (122) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  15. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  16. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformview.js +1 -1
  19. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  21. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  22. package/src/aiballoon/aiballoon.js +1 -1
  23. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  24. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  25. package/src/aiballoon/ui/aiballoonview.js +1 -1
  26. package/src/aichat/aichat.js +1 -1
  27. package/src/aichat/aichatcontroller.js +1 -1
  28. package/src/aichat/aichatui.js +1 -1
  29. package/src/aichat/model/aichatcontext.js +1 -1
  30. package/src/aichat/model/aichatconversation.js +1 -1
  31. package/src/aichat/model/aichatinteraction.js +1 -1
  32. package/src/aichat/model/aichatmodels.js +1 -1
  33. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  34. package/src/aichat/ui/aichatfeedview.js +1 -1
  35. package/src/aichat/ui/aichatheaderview.js +1 -1
  36. package/src/aichat/ui/aichatview.js +1 -1
  37. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  38. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  42. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  45. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  57. package/src/aichat/utils/eventnames.js +1 -1
  58. package/src/aichat/utils/promisequeue.js +1 -1
  59. package/src/aichat/utils/scrollmanager.js +1 -1
  60. package/src/aichathistory/aichathistory.js +1 -1
  61. package/src/aichathistory/aichathistorycontroller.js +1 -1
  62. package/src/aichathistory/aichathistoryui.js +1 -1
  63. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  64. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  65. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  66. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  67. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  68. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  69. package/src/aicore/aiconnector.js +1 -1
  70. package/src/aicore/aiediting.js +1 -1
  71. package/src/aicore/model/aicapabilities.js +1 -1
  72. package/src/aicore/model/aiinteraction.js +1 -1
  73. package/src/aicore/model/aireply.js +1 -1
  74. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  75. package/src/aicore/pipeline/airesponseparser.js +2 -2
  76. package/src/aicore/ui/aidisclaimerview.js +1 -1
  77. package/src/aicore/ui/aiskeleton.js +1 -1
  78. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  79. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  80. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  83. package/src/aicore/utils/createresizebutton.js +1 -1
  84. package/src/aicore/utils/documentposition.js +1 -1
  85. package/src/aicore/utils/documentrange.js +1 -1
  86. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  87. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  88. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  89. package/src/aicore/utils/htmlparser.js +1 -1
  90. package/src/aicore/utils/htmlstreamer.js +1 -1
  91. package/src/aieditorintegration/aieditorintegration.js +1 -1
  92. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  93. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  94. package/src/aiquickactions/aiquickactions.js +1 -1
  95. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  96. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  97. package/src/aiquickactions/aiquickactionsui.js +1 -1
  98. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  99. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  100. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  101. package/src/aireviewmode/aireviewmode.js +1 -1
  102. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  103. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  104. package/src/aireviewmode/aireviewmodeui.js +1 -1
  105. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  106. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  107. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  108. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  109. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  110. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  111. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  112. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  113. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  117. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  118. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  119. package/src/aitabs/aitabs.js +1 -1
  120. package/src/aitabs/tabs/aitabsview.js +1 -1
  121. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  122. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x44d48a=_0x2ce2;(function(_0x4e72b3,_0x2a3eec){const _0x10ad07=_0x2ce2,_0x35f9e7=_0x4e72b3();while(!![]){try{const _0x322450=parseInt(_0x10ad07(0xf1))/0x1+parseInt(_0x10ad07(0x12b))/0x2+parseInt(_0x10ad07(0x120))/0x3+parseInt(_0x10ad07(0x129))/0x4*(parseInt(_0x10ad07(0x107))/0x5)+parseInt(_0x10ad07(0x126))/0x6*(parseInt(_0x10ad07(0xf6))/0x7)+-parseInt(_0x10ad07(0x113))/0x8*(parseInt(_0x10ad07(0x102))/0x9)+-parseInt(_0x10ad07(0xfc))/0xa*(parseInt(_0x10ad07(0x118))/0xb);if(_0x322450===_0x2a3eec)break;else _0x35f9e7['push'](_0x35f9e7['shift']());}catch(_0x1e25a0){_0x35f9e7['push'](_0x35f9e7['shift']());}}}(_0x1758,0xe3654));import{ButtonView as _0x2ee146,IconView as _0x223bde}from'ckeditor5/src/ui.js';import{IconClose as _0x367b69,IconDocument as _0x4d7cbb,IconFileUpload as _0x25928e,IconLink as _0x119839,IconSelection as _0x1ae556}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1fbcb6}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x5672e5}from'../../../aicore/ui/aispinner.js';function _0x2ce2(_0xa6cd6e,_0xb5a61e){const _0x1758d2=_0x1758();return _0x2ce2=function(_0x2ce2af,_0xb00806){_0x2ce2af=_0x2ce2af-0xe9;let _0x2e96a7=_0x1758d2[_0x2ce2af];return _0x2e96a7;},_0x2ce2(_0xa6cd6e,_0xb5a61e);}function _0x1758(){const _0xd1d0d5=['itemType','_isAnimationOnEnterEnabled','_createIconView','readonly','2612301LHBbeB','remove','ck-ai-chat-context-chip__label','_createLabelElement','ck-hidden','_setupRemoveButtonEvent','3210reqSUr','addEventListener','element','1354728ROcofV','isVisible','3466798dHAeAq','_setupTemplate','fire','_createTemplateChildren','tooltip','locale','_handleAnimationEndOnce','render','content','1790915SCkSGI','uiId','selection','ck-ai-chat-context-chip_document','bind','2345vYPXlk','label','ck-ai-chat-context-chip__type-icon','disableAnimationOnEnter','removeContextItemChip','classList','2836110BsRBHd','add','removeEventListener','execute','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','span','12291750lqHgHw','setTemplate','lastIndexOf','_createRemoveButton','webkitAnimationEnd','25XAGWoh','set','ck-ai-chat-context-chip','isLoading','bindTemplate','animationend','extendTemplate','small','_createLoaderIcon','_createTemplateAttributes','div','length','8HmotJx','ck-ai-chat-context-chip_new-chip','type','_initializeProperties','ck-ai-chat-context-chip_wide','154IjNarc','document','ck-ai-chat-context-controls__chip-tooltip','slice'];_0x1758=function(){return _0xd1d0d5;};return _0x1758();}const xn={'file':_0x25928e,'document':_0x4d7cbb,'web-resource':_0x119839,'text':_0x25928e,'selection':_0x1ae556},bn=_0x44d48a(0x109),wn=_0x44d48a(0x117),Tn=_0x44d48a(0xf4),En=_0x44d48a(0x122),An=_0x44d48a(0xf8),Cn=_0x44d48a(0x11a),In='n';export class AIChatContextItemButtonView extends _0x2ee146{constructor(_0xdcc781,_0x123f1a,_0x5ec396,_0x49f072,_0x40d7dc=!0x1){const _0x4e416f=_0x44d48a;super(_0xdcc781),this[_0x4e416f(0x11d)]=_0x49f072,this[_0x4e416f(0x116)](_0x123f1a,_0x5ec396,_0x40d7dc),this[_0x4e416f(0xe9)]();}[_0x44d48a(0xef)](){const _0x3ec2c0=_0x44d48a;super[_0x3ec2c0(0xef)](),this[_0x3ec2c0(0x11d)]&&this[_0x3ec2c0(0x128)]&&(this[_0x3ec2c0(0x128)][_0x3ec2c0(0xfb)][_0x3ec2c0(0xfd)](_0x3ec2c0(0x114)),this[_0x3ec2c0(0xee)](this[_0x3ec2c0(0x128)],()=>{const _0x5a64ff=_0x3ec2c0;this[_0x5a64ff(0x128)]&&this[_0x5a64ff(0x128)][_0x5a64ff(0xfb)][_0x5a64ff(0x121)](_0x5a64ff(0x114));}));}[_0x44d48a(0xf9)](){const _0x356925=_0x44d48a;this[_0x356925(0x11d)]=!0x1,this[_0x356925(0x128)]&&this[_0x356925(0x128)][_0x356925(0xfb)][_0x356925(0x121)](_0x356925(0x114));}[_0x44d48a(0x116)](_0xa49c8,_0x62d338,_0x1c775c){const _0x3194f9=_0x44d48a;this[_0x3194f9(0x108)](_0x3194f9(0xf7),_0xa49c8[_0x3194f9(0xf7)]),this[_0x3194f9(0x108)](_0x3194f9(0xec),!0x0),this[_0x3194f9(0x108)](_0x3194f9(0x11c),_0xa49c8[_0x3194f9(0x115)]),this[_0x3194f9(0x108)]('id',_0xa49c8[_0x3194f9(0xf2)]),this[_0x3194f9(0x108)](_0x3194f9(0x11f),_0x62d338),this[_0x3194f9(0x108)](_0x3194f9(0x10a),_0x1c775c);}[_0x44d48a(0xe9)](){const _0x27a573=_0x44d48a,_0x11950d=this[_0x27a573(0x11e)](),_0x59c38b=this[_0x27a573(0x105)](),_0x177c63=this[_0x27a573(0x10b)];this[_0x27a573(0x103)]({'tag':_0x27a573(0x111),'attributes':this[_0x27a573(0x110)](_0x177c63),'children':this[_0x27a573(0xeb)](_0x11950d,_0x59c38b,_0x177c63)});}[_0x44d48a(0x110)](_0x272c66){const _0x1f4b42=_0x44d48a;return{'class':[bn,_0x272c66['if'](_0x1f4b42(0x11c),Tn,_0x55d4dd=>_0x1f4b42(0x119)==_0x55d4dd),_0x272c66['if'](_0x1f4b42(0x11c),wn,_0x481585=>_0x1f4b42(0xf3)==_0x481585)],'data-cke-tooltip-text':_0x272c66['to'](_0x1f4b42(0xf7),On),'data-cke-tooltip-position':In,'data-cke-tooltip-class':Cn};}[_0x44d48a(0xeb)](_0x3dbd64,_0x426e92,_0x40f21d){const _0x112eec=_0x44d48a,_0x7158c3=this[_0x112eec(0x123)](_0x40f21d),_0x1ff097=this[_0x112eec(0x10f)]();return this[_0x112eec(0x11f)]?[_0x3dbd64,_0x7158c3]:[_0x3dbd64,_0x1ff097,_0x7158c3,_0x426e92];}[_0x44d48a(0x123)](_0x248d5f){const _0x4598a8=_0x44d48a;return{'tag':_0x4598a8(0x101),'attributes':{'class':En},'children':[{'text':_0x248d5f['to'](_0x4598a8(0xf7))}]};}[_0x44d48a(0x105)](){const _0x2d9815=_0x44d48a,_0xc48fd8=new _0x2ee146(this[_0x2d9815(0xed)]);return _0xc48fd8[_0x2d9815(0x108)]({'label':_0x1fbcb6(this[_0x2d9815(0xed)],_0x2d9815(0x100)),'icon':_0x367b69}),this[_0x2d9815(0x125)](_0xc48fd8),_0xc48fd8;}[_0x44d48a(0x125)](_0x18ae76){const _0xf7bf28=_0x44d48a;_0x18ae76['on'](_0xf7bf28(0xff),()=>{const _0x11f31a=_0xf7bf28;this[_0x11f31a(0xea)](_0x11f31a(0xfa),this['id']);});}[_0x44d48a(0x11e)](){const _0x394e54=_0x44d48a,_0x2ce4b2=this[_0x394e54(0x10b)],_0x4a61bf=new _0x223bde();return _0x4a61bf[_0x394e54(0xf0)]=xn[this[_0x394e54(0x11c)]],_0x4a61bf[_0x394e54(0x10d)]({'attributes':{'class':[An,_0x2ce4b2['if'](_0x394e54(0x10a),_0x394e54(0x124),_0x469a0e=>_0x469a0e)]}}),_0x4a61bf;}[_0x44d48a(0xee)](_0x1f90a5,_0x2d4479){const _0x25b477=_0x44d48a;if(!_0x1f90a5)return;const _0x2e7383=()=>{const _0x50104c=_0x2ce2;_0x2d4479(),_0x1f90a5[_0x50104c(0xfe)](_0x50104c(0x10c),_0x2e7383),_0x1f90a5[_0x50104c(0xfe)](_0x50104c(0x106),_0x2e7383);};_0x1f90a5[_0x25b477(0x127)](_0x25b477(0x10c),_0x2e7383),_0x1f90a5[_0x25b477(0x127)](_0x25b477(0x106),_0x2e7383);}[_0x44d48a(0x10f)](){const _0x1fb0ee=_0x44d48a,_0x2be12d=new _0x5672e5(_0x1fb0ee(0x10e));return _0x2be12d[_0x1fb0ee(0xf5)](_0x1fb0ee(0x12a))['to'](this,_0x1fb0ee(0x10a),_0x13d788=>_0x13d788),_0x2be12d;}}function On(_0x33570c){const _0x3b1dff=_0x44d48a;if(!_0x33570c)return _0x33570c;if(_0x33570c[_0x3b1dff(0x112)]<=0x78)return _0x33570c;const _0x16f532=_0x33570c[_0x3b1dff(0x11b)](0x0,0x78),_0x24fcdd=_0x16f532[_0x3b1dff(0x104)]('\x20');return(_0x24fcdd>0x0?_0x16f532[_0x3b1dff(0x11b)](0x0,_0x24fcdd):_0x16f532)+'…';}
23
+ function _0x32dc(_0x17957b,_0x8f9bb7){const _0x53edf7=_0x53ed();return _0x32dc=function(_0x32dc5f,_0x5a45d5){_0x32dc5f=_0x32dc5f-0xcb;let _0x46299b=_0x53edf7[_0x32dc5f];return _0x46299b;},_0x32dc(_0x17957b,_0x8f9bb7);}const _0x585d47=_0x32dc;(function(_0x1e5cd9,_0xeba80f){const _0x33b1fd=_0x32dc,_0x5d218f=_0x1e5cd9();while(!![]){try{const _0x288d2b=-parseInt(_0x33b1fd(0xce))/0x1+-parseInt(_0x33b1fd(0xf5))/0x2*(parseInt(_0x33b1fd(0xef))/0x3)+-parseInt(_0x33b1fd(0xfd))/0x4+-parseInt(_0x33b1fd(0xfa))/0x5+parseInt(_0x33b1fd(0xdc))/0x6*(-parseInt(_0x33b1fd(0xdb))/0x7)+-parseInt(_0x33b1fd(0xe8))/0x8+parseInt(_0x33b1fd(0xf2))/0x9*(parseInt(_0x33b1fd(0xf1))/0xa);if(_0x288d2b===_0xeba80f)break;else _0x5d218f['push'](_0x5d218f['shift']());}catch(_0xd478f4){_0x5d218f['push'](_0x5d218f['shift']());}}}(_0x53ed,0xe1271));import{ButtonView as _0x1a42f1,IconView as _0x2512ac}from'ckeditor5/src/ui.js';import{IconClose as _0x15537c,IconDocument as _0x5e5ca1,IconFileUpload as _0x3d31b7,IconLink as _0x2e5132,IconSelection as _0x2be1e0}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x38c828}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x2bdfd7}from'../../../aicore/ui/aispinner.js';function _0x53ed(){const _0x402022=['6YQzVOx','addEventListener','removeContextItemChip','small','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_createIconView','render','_createTemplateAttributes','disableAnimationOnEnter','ck-ai-chat-context-controls__chip-tooltip','slice','_setupRemoveButtonEvent','6044304GvFNuN','element','_initializeProperties','add','itemType','_createTemplateChildren','lastIndexOf','3qqdplC','div','98510XAezSF','5481ezTqqf','animationend','length','3048154KXSJss','ck-ai-chat-context-chip__label','selection','ck-ai-chat-context-chip','ck-ai-chat-context-chip_new-chip','3605805DcqLdA','readonly','type','2654876dvjDEU','_createRemoveButton','ck-hidden','_handleAnimationEndOnce','classList','tooltip','isLoading','uiId','setTemplate','_createLoaderIcon','bind','_isAnimationOnEnterEnabled','execute','locale','removeEventListener','label','content','document','ck-ai-chat-context-chip__type-icon','1086468CzRJqf','extendTemplate','bindTemplate','webkitAnimationEnd','_setupTemplate','_createLabelElement','ck-ai-chat-context-chip_document','span','remove','ck-ai-chat-context-chip_wide','set','fire','isVisible','2282497gpkIHG'];_0x53ed=function(){return _0x402022;};return _0x53ed();}const kn={'file':_0x3d31b7,'document':_0x5e5ca1,'web-resource':_0x2e5132,'text':_0x3d31b7,'selection':_0x2be1e0},xn=_0x585d47(0xf8),bn=_0x585d47(0xd7),wn=_0x585d47(0xd4),Tn=_0x585d47(0xf6),En=_0x585d47(0xcd),An=_0x585d47(0xe5),Cn='n';export class AIChatContextItemButtonView extends _0x1a42f1{constructor(_0x4b2582,_0x54a885,_0x289b90,_0x71e721,_0x8421c1=!0x1){const _0x3fb4bc=_0x585d47;super(_0x4b2582),this[_0x3fb4bc(0x108)]=_0x71e721,this[_0x3fb4bc(0xea)](_0x54a885,_0x289b90,_0x8421c1),this[_0x3fb4bc(0xd2)]();}[_0x585d47(0xe2)](){const _0x295a84=_0x585d47;super[_0x295a84(0xe2)](),this[_0x295a84(0x108)]&&this[_0x295a84(0xe9)]&&(this[_0x295a84(0xe9)][_0x295a84(0x101)][_0x295a84(0xeb)](_0x295a84(0xf9)),this[_0x295a84(0x100)](this[_0x295a84(0xe9)],()=>{const _0x300087=_0x295a84;this[_0x300087(0xe9)]&&this[_0x300087(0xe9)][_0x300087(0x101)][_0x300087(0xd6)](_0x300087(0xf9));}));}[_0x585d47(0xe4)](){const _0x2e8368=_0x585d47;this[_0x2e8368(0x108)]=!0x1,this[_0x2e8368(0xe9)]&&this[_0x2e8368(0xe9)][_0x2e8368(0x101)][_0x2e8368(0xd6)](_0x2e8368(0xf9));}[_0x585d47(0xea)](_0x33b4e8,_0x60f139,_0x3b747a){const _0x30c99f=_0x585d47;this[_0x30c99f(0xd8)](_0x30c99f(0x10c),_0x33b4e8[_0x30c99f(0x10c)]),this[_0x30c99f(0xd8)](_0x30c99f(0x102),!0x0),this[_0x30c99f(0xd8)](_0x30c99f(0xec),_0x33b4e8[_0x30c99f(0xfc)]),this[_0x30c99f(0xd8)]('id',_0x33b4e8[_0x30c99f(0x104)]),this[_0x30c99f(0xd8)](_0x30c99f(0xfb),_0x60f139),this[_0x30c99f(0xd8)](_0x30c99f(0x103),_0x3b747a);}[_0x585d47(0xd2)](){const _0xa177b4=_0x585d47,_0x2c9902=this[_0xa177b4(0xe1)](),_0x10eed1=this[_0xa177b4(0xfe)](),_0x2ccbed=this[_0xa177b4(0xd0)];this[_0xa177b4(0x105)]({'tag':_0xa177b4(0xf0),'attributes':this[_0xa177b4(0xe3)](_0x2ccbed),'children':this[_0xa177b4(0xed)](_0x2c9902,_0x10eed1,_0x2ccbed)});}[_0x585d47(0xe3)](_0x55b187){const _0xb32963=_0x585d47;return{'class':[xn,_0x55b187['if'](_0xb32963(0xec),wn,_0x5a4636=>_0xb32963(0xcc)==_0x5a4636),_0x55b187['if'](_0xb32963(0xec),bn,_0x10ce2a=>_0xb32963(0xf7)==_0x10ce2a)],'data-cke-tooltip-text':_0x55b187['to'](_0xb32963(0x10c),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x585d47(0xed)](_0x1a20fb,_0xea027,_0x43c660){const _0x3e2144=_0x585d47,_0x33d947=this[_0x3e2144(0xd3)](_0x43c660),_0x3b0e43=this[_0x3e2144(0x106)]();return this[_0x3e2144(0xfb)]?[_0x1a20fb,_0x33d947]:[_0x1a20fb,_0x3b0e43,_0x33d947,_0xea027];}[_0x585d47(0xd3)](_0x183afb){const _0x2a2966=_0x585d47;return{'tag':_0x2a2966(0xd5),'attributes':{'class':Tn},'children':[{'text':_0x183afb['to'](_0x2a2966(0x10c))}]};}[_0x585d47(0xfe)](){const _0x41f199=_0x585d47,_0x3979dc=new _0x1a42f1(this[_0x41f199(0x10a)]);return _0x3979dc[_0x41f199(0xd8)]({'label':_0x38c828(this[_0x41f199(0x10a)],_0x41f199(0xe0)),'icon':_0x15537c}),this[_0x41f199(0xe7)](_0x3979dc),_0x3979dc;}[_0x585d47(0xe7)](_0x2ddf56){const _0x4acd46=_0x585d47;_0x2ddf56['on'](_0x4acd46(0x109),()=>{const _0x2f4b3f=_0x4acd46;this[_0x2f4b3f(0xd9)](_0x2f4b3f(0xde),this['id']);});}[_0x585d47(0xe1)](){const _0x4c9490=_0x585d47,_0x593512=this[_0x4c9490(0xd0)],_0x5315f1=new _0x2512ac();return _0x5315f1[_0x4c9490(0xcb)]=kn[this[_0x4c9490(0xec)]],_0x5315f1[_0x4c9490(0xcf)]({'attributes':{'class':[En,_0x593512['if'](_0x4c9490(0x103),_0x4c9490(0xff),_0x327973=>_0x327973)]}}),_0x5315f1;}[_0x585d47(0x100)](_0x2be4e2,_0x50ed04){const _0x2e0ff1=_0x585d47;if(!_0x2be4e2)return;const _0x245048=()=>{const _0x31738c=_0x32dc;_0x50ed04(),_0x2be4e2[_0x31738c(0x10b)](_0x31738c(0xf3),_0x245048),_0x2be4e2[_0x31738c(0x10b)](_0x31738c(0xd1),_0x245048);};_0x2be4e2[_0x2e0ff1(0xdd)](_0x2e0ff1(0xf3),_0x245048),_0x2be4e2[_0x2e0ff1(0xdd)](_0x2e0ff1(0xd1),_0x245048);}[_0x585d47(0x106)](){const _0x4e9777=_0x585d47,_0x2d7209=new _0x2bdfd7(_0x4e9777(0xdf));return _0x2d7209[_0x4e9777(0x107)](_0x4e9777(0xda))['to'](this,_0x4e9777(0x103),_0x1383a8=>_0x1383a8),_0x2d7209;}}function In(_0x139778){const _0x197888=_0x585d47;if(!_0x139778)return _0x139778;if(_0x139778[_0x197888(0xf4)]<=0x78)return _0x139778;const _0x4c0a60=_0x139778[_0x197888(0xe6)](0x0,0x78),_0x3c46d1=_0x4c0a60[_0x197888(0xee)]('\x20');return(_0x3c46d1>0x0?_0x4c0a60[_0x197888(0xe6)](0x0,_0x3c46d1):_0x4c0a60)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b7310=_0x1d7b;(function(_0x972665,_0x56ef05){const _0x3f034c=_0x1d7b,_0x1341e3=_0x972665();while(!![]){try{const _0xbad744=parseInt(_0x3f034c(0x1a0))/0x1+parseInt(_0x3f034c(0x19d))/0x2+parseInt(_0x3f034c(0x19b))/0x3*(parseInt(_0x3f034c(0x197))/0x4)+parseInt(_0x3f034c(0x1d5))/0x5*(parseInt(_0x3f034c(0x1db))/0x6)+parseInt(_0x3f034c(0x1a9))/0x7+-parseInt(_0x3f034c(0x1af))/0x8*(parseInt(_0x3f034c(0x1c4))/0x9)+parseInt(_0x3f034c(0x1b2))/0xa*(-parseInt(_0x3f034c(0x1a7))/0xb);if(_0xbad744===_0x56ef05)break;else _0x1341e3['push'](_0x1341e3['shift']());}catch(_0x547d1b){_0x1341e3['push'](_0x1341e3['shift']());}}}(_0x5cf6,0x80ca7));import{FocusTracker as _0x425248,KeystrokeHandler as _0x1e2d80}from'ckeditor5/src/utils.js';import{ButtonView as _0x372f7c,FocusCycler as _0x44e758,LabeledFieldView as _0x55440b,View as _0x1a86e4,FormHeaderView as _0x7eb32c,createLabeledInputText as _0x3fa5b2,submitHandler as _0xa82849}from'ckeditor5/src/ui.js';function _0x1d7b(_0x1d9b50,_0x32a83f){const _0x5cf64d=_0x5cf6();return _0x1d7b=function(_0x1d7b20,_0x241283){_0x1d7b20=_0x1d7b20-0x192;let _0x3c6a81=_0x5cf64d[_0x1d7b20];return _0x3c6a81;},_0x1d7b(_0x1d9b50,_0x32a83f);}import{IconCheck as _0x597597,IconPreviousArrow as _0x305acf}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2e62c2}from'../../../aicore/utils/common-translations.js';const eh=_0x5b7310(0x1d9),hh=_0x5b7310(0x1cd);function _0x5cf6(){const _0x5ba17d=['_createUrlInputField','13122uBSMTx','fire','value','focusTracker','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','_setupKeystrokes','_setupTemplate','_createBackButton','_createConfirmButton','ck-ai-chat-context-controls__url-input-section','AI_CHAT_CONTEXT_URL_ADD_URL','focus','destroy','set','stop','execute','_focusables','460855lkYRMx','_setupEventHandlers','_handleSubmit','element','ck-ai-chat-context-controls__url-form','setError','18AizPpE','input','submit','clearError','keystrokes','isEnabled','140RFLHVp','listenTo','form','AI_CHAT_CONTEXT_URL_LABEL','33111vnmONa','add','600506rDwNkQ','AI_CHAT_CONTEXT_URL_PLACEHOLDER','tab','571257enVJNU','_isValidUrl','ck-button-icon\x20ck-button-back','length','urlInputField','setTemplate','fieldView','547514gcxUsx','esc','5047063bjvJBW','confirmButton','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','clear','forEach','3472kJrMYK','trim','createCollection','220iTQmhc','shift+tab','AI_CHAT_CONTEXT_URL_INVALID_ERROR','refreshBalloon','div','backButton','getValue','ck-button-icon','ck-labeled-field-view_empty','render','focusCycler','locale','_updateConfirmButtonState','submitUrl','errorText','cancel','children'];_0x5cf6=function(){return _0x5ba17d;};return _0x5cf6();}export class AIChatContextPanelUrlInputView extends _0x1a86e4{[_0x5b7310(0x1c7)];[_0x5b7310(0x195)];[_0x5b7310(0x1d4)];[_0x5b7310(0x1bc)];[_0x5b7310(0x1a4)];[_0x5b7310(0x1b7)];[_0x5b7310(0x1aa)];constructor(_0x48a441){const _0x357ad1=_0x5b7310;super(_0x48a441),this[_0x357ad1(0x1c7)]=new _0x425248(),this[_0x357ad1(0x195)]=new _0x1e2d80(),this[_0x357ad1(0x1b7)]=this[_0x357ad1(0x1cb)](),this[_0x357ad1(0x1a4)]=this[_0x357ad1(0x1c3)](),this[_0x357ad1(0x1aa)]=this[_0x357ad1(0x1cc)](),this[_0x357ad1(0x1d4)]=this[_0x357ad1(0x1b1)]([this[_0x357ad1(0x1b7)],this[_0x357ad1(0x1a4)],this[_0x357ad1(0x1aa)]]),this[_0x357ad1(0x1bc)]=new _0x44e758({'focusables':this[_0x357ad1(0x1d4)],'focusTracker':this[_0x357ad1(0x1c7)],'keystrokeHandler':this[_0x357ad1(0x195)],'actions':{'focusPrevious':_0x357ad1(0x1b3),'focusNext':_0x357ad1(0x19f)}}),this[_0x357ad1(0x1ca)](),this[_0x357ad1(0x1d6)](),this[_0x357ad1(0x1c9)]();}[_0x5b7310(0x1bb)](){const _0x363e9d=_0x5b7310;super[_0x363e9d(0x1bb)](),this[_0x363e9d(0x1d4)][_0x363e9d(0x1ae)](_0x599ff7=>{const _0x565c48=_0x363e9d;this[_0x565c48(0x1c7)][_0x565c48(0x19c)](_0x599ff7[_0x565c48(0x1d8)]),this[_0x565c48(0x195)][_0x565c48(0x198)](_0x599ff7[_0x565c48(0x1d8)]);}),_0xa82849({'view':this}),this[_0x363e9d(0x1cf)]();}[_0x5b7310(0x1d0)](){const _0x50a9ac=_0x5b7310;super[_0x50a9ac(0x1d0)](),this[_0x50a9ac(0x1c7)][_0x50a9ac(0x1d0)](),this[_0x50a9ac(0x195)][_0x50a9ac(0x1d0)]();}[_0x5b7310(0x1cf)](){const _0x22c0b2=_0x5b7310;this[_0x22c0b2(0x1a4)][_0x22c0b2(0x1cf)]();}[_0x5b7310(0x1b8)](){const _0x4a2b52=_0x5b7310;return this[_0x4a2b52(0x1a4)][_0x4a2b52(0x1a6)][_0x4a2b52(0x1d8)]?.[_0x4a2b52(0x1c6)]?.[_0x4a2b52(0x1b0)]()||'';}[_0x5b7310(0x1ad)](){const _0x46e5c2=_0x5b7310;this[_0x46e5c2(0x1a4)][_0x46e5c2(0x1a6)][_0x46e5c2(0x1d8)][_0x46e5c2(0x1c6)]='',this[_0x46e5c2(0x1a4)][_0x46e5c2(0x1c0)]=null,this[_0x46e5c2(0x1aa)][_0x46e5c2(0x196)]=!0x1;}[_0x5b7310(0x1da)](_0x470dfa){const _0x1a1aa9=_0x5b7310;this[_0x1a1aa9(0x1a4)][_0x1a1aa9(0x1c0)]=_0x470dfa,this[_0x1a1aa9(0x1be)](),this[_0x1a1aa9(0x1c5)](_0x1a1aa9(0x1b5));}[_0x5b7310(0x194)](){const _0x45ea2e=_0x5b7310;this[_0x45ea2e(0x1a4)][_0x45ea2e(0x1c0)]=null,this[_0x45ea2e(0x1be)]();}[_0x5b7310(0x1cb)](){const _0x37f7eb=_0x5b7310,_0x25a3fe=new _0x372f7c(this[_0x37f7eb(0x1bd)]);return _0x25a3fe[_0x37f7eb(0x1d1)]({'icon':_0x305acf,'tooltip':_0x2e62c2(this[_0x37f7eb(0x1bd)],_0x37f7eb(0x1ab)),'tooltipPosition':'n','class':_0x37f7eb(0x1a2)}),_0x25a3fe;}[_0x5b7310(0x1c3)](){const _0xefc900=_0x5b7310,_0xc898c2=new _0x55440b(this[_0xefc900(0x1bd)],_0x3fa5b2);return _0xc898c2[_0xefc900(0x1d1)]({'label':_0x2e62c2(this[_0xefc900(0x1bd)],_0xefc900(0x19a)),'class':_0xefc900(0x1ba)}),_0xc898c2[_0xefc900(0x1a6)][_0xefc900(0x1d1)]({'placeholder':_0x2e62c2(this[_0xefc900(0x1bd)],_0xefc900(0x19e))}),_0xc898c2;}[_0x5b7310(0x1cc)](){const _0x3d23fb=_0x5b7310,_0x5448e3=new _0x372f7c(this[_0x3d23fb(0x1bd)]);return _0x5448e3[_0x3d23fb(0x1d1)]({'icon':_0x597597,'tooltip':_0x2e62c2(this[_0x3d23fb(0x1bd)],_0x3d23fb(0x1ce)),'tooltipPosition':'n','class':_0x3d23fb(0x1b9),'type':_0x3d23fb(0x193),'isEnabled':!0x1}),_0x5448e3;}[_0x5b7310(0x1ca)](){const _0x401dd9=_0x5b7310,_0x5bfc0b=new _0x7eb32c(this[_0x401dd9(0x1bd)],{'label':_0x2e62c2(this[_0x401dd9(0x1bd)],_0x401dd9(0x1ce)),'class':_0x401dd9(0x1c8)});_0x5bfc0b[_0x401dd9(0x1c2)][_0x401dd9(0x19c)](this[_0x401dd9(0x1b7)],0x0),this[_0x401dd9(0x1a5)]({'tag':_0x401dd9(0x199),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x5bfc0b,{'tag':_0x401dd9(0x1b6),'attributes':{'class':hh},'children':[this[_0x401dd9(0x1a4)],this[_0x401dd9(0x1aa)]]}]});}[_0x5b7310(0x1d6)](){const _0x20854e=_0x5b7310;this[_0x20854e(0x1b7)]['on'](_0x20854e(0x1d3),()=>{const _0x5214dc=_0x20854e;this[_0x5214dc(0x1ad)](),this[_0x5214dc(0x1c5)](_0x5214dc(0x1c1));}),this[_0x20854e(0x1a4)][_0x20854e(0x1a6)]['on'](_0x20854e(0x192),()=>{const _0x5e799d=_0x20854e;this[_0x5e799d(0x194)](),this[_0x5e799d(0x1be)](),this[_0x5e799d(0x1c5)](_0x5e799d(0x1b5));}),this['on'](_0x20854e(0x193),_0x2b66d9=>{const _0x59e284=_0x20854e;_0x2b66d9[_0x59e284(0x1d2)](),this[_0x59e284(0x1d7)]();});}[_0x5b7310(0x1c9)](){const _0x7089a=_0x5b7310;this[_0x7089a(0x195)][_0x7089a(0x1d1)](_0x7089a(0x1a8),(_0x3fd3fc,_0x2b6624)=>{const _0x157bfc=_0x7089a;this[_0x157bfc(0x1ad)](),this[_0x157bfc(0x1c5)](_0x157bfc(0x1c1)),_0x2b6624();});}[_0x5b7310(0x1d7)](){const _0x44823c=_0x5b7310,_0x58f9e9=this[_0x44823c(0x1b8)]()[_0x44823c(0x1b0)]();_0x58f9e9?this[_0x44823c(0x1a1)](_0x58f9e9)?(this[_0x44823c(0x194)](),this[_0x44823c(0x1c5)](_0x44823c(0x1bf),_0x58f9e9)):this[_0x44823c(0x1da)](_0x2e62c2(this[_0x44823c(0x1bd)],_0x44823c(0x1b4))):this[_0x44823c(0x1da)](_0x2e62c2(this[_0x44823c(0x1bd)],_0x44823c(0x1ac)));}[_0x5b7310(0x1be)](){const _0x7c4807=_0x5b7310,_0x1520f4=this[_0x7c4807(0x1b8)]()[_0x7c4807(0x1b0)](),_0x11d650=!!this[_0x7c4807(0x1a4)][_0x7c4807(0x1c0)];this[_0x7c4807(0x1aa)][_0x7c4807(0x196)]=_0x1520f4[_0x7c4807(0x1a3)]>0x0&&!_0x11d650;}[_0x5b7310(0x1a1)](_0x2105db){try{return!!new URL(_0x2105db);}catch{return!0x1;}}}
23
+ const _0x2f203c=_0x54ad;(function(_0x4f0ee3,_0x551d2a){const _0x4a745a=_0x54ad,_0xa4f7df=_0x4f0ee3();while(!![]){try{const _0x50aa75=-parseInt(_0x4a745a(0xc2))/0x1*(parseInt(_0x4a745a(0xfd))/0x2)+parseInt(_0x4a745a(0xff))/0x3*(parseInt(_0x4a745a(0xbe))/0x4)+parseInt(_0x4a745a(0xfc))/0x5+-parseInt(_0x4a745a(0xdd))/0x6+-parseInt(_0x4a745a(0xc1))/0x7*(parseInt(_0x4a745a(0xf8))/0x8)+parseInt(_0x4a745a(0xbb))/0x9+parseInt(_0x4a745a(0xd6))/0xa*(parseInt(_0x4a745a(0xf6))/0xb);if(_0x50aa75===_0x551d2a)break;else _0xa4f7df['push'](_0xa4f7df['shift']());}catch(_0x5d1a67){_0xa4f7df['push'](_0xa4f7df['shift']());}}}(_0x481c,0x5c44c));import{FocusTracker as _0x30abcd,KeystrokeHandler as _0x351a7b}from'ckeditor5/src/utils.js';import{ButtonView as _0x2eb32c,FocusCycler as _0x52729e,LabeledFieldView as _0x30cc85,View as _0x53b846,FormHeaderView as _0x341eca,createLabeledInputText as _0x5be1bd,submitHandler as _0x1c8407}from'ckeditor5/src/ui.js';import{IconCheck as _0x3192df,IconPreviousArrow as _0x39db98}from'@ckeditor/ckeditor5-icons';function _0x54ad(_0x2c9c5f,_0x55cffc){const _0x481c85=_0x481c();return _0x54ad=function(_0x54ad62,_0x130422){_0x54ad62=_0x54ad62-0xb6;let _0x18df59=_0x481c85[_0x54ad62];return _0x18df59;},_0x54ad(_0x2c9c5f,_0x55cffc);}import{getTranslation as _0x13a761}from'../../../aicore/utils/common-translations.js';const eh=_0x2f203c(0xca),hh=_0x2f203c(0xec);function _0x481c(){const _0x521718=['focusTracker','listenTo','input','fire','refreshBalloon','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','AI_CHAT_CONTEXT_URL_INVALID_ERROR','keystrokes','_setupTemplate','confirmButton','_createConfirmButton','ck-ai-chat-context-controls__url-input-section','value','ck-button-icon','clear','focusCycler','submit','element','trim','div','_updateConfirmButtonState','11HcKCgR','AI_CHAT_CONTEXT_URL_ADD_URL','168pYeKLd','submitUrl','ck-labeled-field-view_empty','createCollection','3690545fXcUrF','3778ROOaYD','locale','69rgjemB','add','focus','_setupKeystrokes','AI_CHAT_CONTEXT_URL_LABEL','_focusables','3625245PnMqby','forEach','execute','17348kbOJlc','set','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','206059uaOoBu','31rSxFOr','fieldView','setTemplate','render','stop','isEnabled','esc','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','ck-ai-chat-context-controls__url-form','form','children','_createBackButton','backButton','length','clearError','_setupEventHandlers','setError','getValue','tab','shift+tab','444330kyRKlx','_createUrlInputField','errorText','ck-button-icon\x20ck-button-back','_isValidUrl','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_handleSubmit','1382580zXAfNR','urlInputField','cancel','destroy'];_0x481c=function(){return _0x521718;};return _0x481c();}export class AIChatContextPanelUrlInputView extends _0x53b846{[_0x2f203c(0xe1)];[_0x2f203c(0xe8)];[_0x2f203c(0xba)];[_0x2f203c(0xf0)];[_0x2f203c(0xde)];[_0x2f203c(0xce)];[_0x2f203c(0xea)];constructor(_0x45598e){const _0xfb3b8a=_0x2f203c;super(_0x45598e),this[_0xfb3b8a(0xe1)]=new _0x30abcd(),this[_0xfb3b8a(0xe8)]=new _0x351a7b(),this[_0xfb3b8a(0xce)]=this[_0xfb3b8a(0xcd)](),this[_0xfb3b8a(0xde)]=this[_0xfb3b8a(0xd7)](),this[_0xfb3b8a(0xea)]=this[_0xfb3b8a(0xeb)](),this[_0xfb3b8a(0xba)]=this[_0xfb3b8a(0xfb)]([this[_0xfb3b8a(0xce)],this[_0xfb3b8a(0xde)],this[_0xfb3b8a(0xea)]]),this[_0xfb3b8a(0xf0)]=new _0x52729e({'focusables':this[_0xfb3b8a(0xba)],'focusTracker':this[_0xfb3b8a(0xe1)],'keystrokeHandler':this[_0xfb3b8a(0xe8)],'actions':{'focusPrevious':_0xfb3b8a(0xd5),'focusNext':_0xfb3b8a(0xd4)}}),this[_0xfb3b8a(0xe9)](),this[_0xfb3b8a(0xd1)](),this[_0xfb3b8a(0xb8)]();}[_0x2f203c(0xc5)](){const _0x3a4165=_0x2f203c;super[_0x3a4165(0xc5)](),this[_0x3a4165(0xba)][_0x3a4165(0xbc)](_0x57d35d=>{const _0x481592=_0x3a4165;this[_0x481592(0xe1)][_0x481592(0xb6)](_0x57d35d[_0x481592(0xf2)]),this[_0x481592(0xe8)][_0x481592(0xe2)](_0x57d35d[_0x481592(0xf2)]);}),_0x1c8407({'view':this}),this[_0x3a4165(0xb7)]();}[_0x2f203c(0xe0)](){const _0x533880=_0x2f203c;super[_0x533880(0xe0)](),this[_0x533880(0xe1)][_0x533880(0xe0)](),this[_0x533880(0xe8)][_0x533880(0xe0)]();}[_0x2f203c(0xb7)](){const _0x518588=_0x2f203c;this[_0x518588(0xde)][_0x518588(0xb7)]();}[_0x2f203c(0xd3)](){const _0x51e93b=_0x2f203c;return this[_0x51e93b(0xde)][_0x51e93b(0xc3)][_0x51e93b(0xf2)]?.[_0x51e93b(0xed)]?.[_0x51e93b(0xf3)]()||'';}[_0x2f203c(0xef)](){const _0x157eeb=_0x2f203c;this[_0x157eeb(0xde)][_0x157eeb(0xc3)][_0x157eeb(0xf2)][_0x157eeb(0xed)]='',this[_0x157eeb(0xde)][_0x157eeb(0xd8)]=null,this[_0x157eeb(0xea)][_0x157eeb(0xc7)]=!0x1;}[_0x2f203c(0xd2)](_0x3e88ab){const _0x4bc261=_0x2f203c;this[_0x4bc261(0xde)][_0x4bc261(0xd8)]=_0x3e88ab,this[_0x4bc261(0xf5)](),this[_0x4bc261(0xe4)](_0x4bc261(0xe5));}[_0x2f203c(0xd0)](){const _0x26eb0a=_0x2f203c;this[_0x26eb0a(0xde)][_0x26eb0a(0xd8)]=null,this[_0x26eb0a(0xf5)]();}[_0x2f203c(0xcd)](){const _0x1097a4=_0x2f203c,_0x4e7d2c=new _0x2eb32c(this[_0x1097a4(0xfe)]);return _0x4e7d2c[_0x1097a4(0xbf)]({'icon':_0x39db98,'tooltip':_0x13a761(this[_0x1097a4(0xfe)],_0x1097a4(0xe6)),'tooltipPosition':'n','class':_0x1097a4(0xd9)}),_0x4e7d2c;}[_0x2f203c(0xd7)](){const _0x4dd7db=_0x2f203c,_0x24a3bd=new _0x30cc85(this[_0x4dd7db(0xfe)],_0x5be1bd);return _0x24a3bd[_0x4dd7db(0xbf)]({'label':_0x13a761(this[_0x4dd7db(0xfe)],_0x4dd7db(0xb9)),'class':_0x4dd7db(0xfa)}),_0x24a3bd[_0x4dd7db(0xc3)][_0x4dd7db(0xbf)]({'placeholder':_0x13a761(this[_0x4dd7db(0xfe)],_0x4dd7db(0xdb))}),_0x24a3bd;}[_0x2f203c(0xeb)](){const _0x273e51=_0x2f203c,_0x514e24=new _0x2eb32c(this[_0x273e51(0xfe)]);return _0x514e24[_0x273e51(0xbf)]({'icon':_0x3192df,'tooltip':_0x13a761(this[_0x273e51(0xfe)],_0x273e51(0xf7)),'tooltipPosition':'n','class':_0x273e51(0xee),'type':_0x273e51(0xf1),'isEnabled':!0x1}),_0x514e24;}[_0x2f203c(0xe9)](){const _0x2c0b5c=_0x2f203c,_0x29448a=new _0x341eca(this[_0x2c0b5c(0xfe)],{'label':_0x13a761(this[_0x2c0b5c(0xfe)],_0x2c0b5c(0xf7)),'class':_0x2c0b5c(0xc9)});_0x29448a[_0x2c0b5c(0xcc)][_0x2c0b5c(0xb6)](this[_0x2c0b5c(0xce)],0x0),this[_0x2c0b5c(0xc4)]({'tag':_0x2c0b5c(0xcb),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x29448a,{'tag':_0x2c0b5c(0xf4),'attributes':{'class':hh},'children':[this[_0x2c0b5c(0xde)],this[_0x2c0b5c(0xea)]]}]});}[_0x2f203c(0xd1)](){const _0x81c849=_0x2f203c;this[_0x81c849(0xce)]['on'](_0x81c849(0xbd),()=>{const _0x4857b7=_0x81c849;this[_0x4857b7(0xef)](),this[_0x4857b7(0xe4)](_0x4857b7(0xdf));}),this[_0x81c849(0xde)][_0x81c849(0xc3)]['on'](_0x81c849(0xe3),()=>{const _0x5625b6=_0x81c849;this[_0x5625b6(0xd0)](),this[_0x5625b6(0xf5)](),this[_0x5625b6(0xe4)](_0x5625b6(0xe5));}),this['on'](_0x81c849(0xf1),_0x2c23c8=>{const _0x44a7ff=_0x81c849;_0x2c23c8[_0x44a7ff(0xc6)](),this[_0x44a7ff(0xdc)]();});}[_0x2f203c(0xb8)](){const _0x55c685=_0x2f203c;this[_0x55c685(0xe8)][_0x55c685(0xbf)](_0x55c685(0xc8),(_0x81c6e7,_0x4c8222)=>{const _0x35e242=_0x55c685;this[_0x35e242(0xef)](),this[_0x35e242(0xe4)](_0x35e242(0xdf)),_0x4c8222();});}[_0x2f203c(0xdc)](){const _0x529f28=_0x2f203c,_0x319e9a=this[_0x529f28(0xd3)]()[_0x529f28(0xf3)]();_0x319e9a?this[_0x529f28(0xda)](_0x319e9a)?(this[_0x529f28(0xd0)](),this[_0x529f28(0xe4)](_0x529f28(0xf9),_0x319e9a)):this[_0x529f28(0xd2)](_0x13a761(this[_0x529f28(0xfe)],_0x529f28(0xe7))):this[_0x529f28(0xd2)](_0x13a761(this[_0x529f28(0xfe)],_0x529f28(0xc0)));}[_0x2f203c(0xf5)](){const _0x2ecf28=_0x2f203c,_0x46add6=this[_0x2ecf28(0xd3)]()[_0x2ecf28(0xf3)](),_0x20462a=!!this[_0x2ecf28(0xde)][_0x2ecf28(0xd8)];this[_0x2ecf28(0xea)][_0x2ecf28(0xc7)]=_0x46add6[_0x2ecf28(0xcf)]>0x0&&!_0x20462a;}[_0x2f203c(0xda)](_0x4aa11a){try{return!!new URL(_0x4aa11a);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a36b6=_0x527a;(function(_0x19620f,_0x4d324d){const _0x461063=_0x527a,_0x29fbdf=_0x19620f();while(!![]){try{const _0x2bab2d=parseInt(_0x461063(0x11f))/0x1+-parseInt(_0x461063(0xf8))/0x2+parseInt(_0x461063(0xec))/0x3+-parseInt(_0x461063(0xd4))/0x4+-parseInt(_0x461063(0x13d))/0x5+-parseInt(_0x461063(0xf2))/0x6+parseInt(_0x461063(0x112))/0x7*(parseInt(_0x461063(0xef))/0x8);if(_0x2bab2d===_0x4d324d)break;else _0x29fbdf['push'](_0x29fbdf['shift']());}catch(_0x55b76b){_0x29fbdf['push'](_0x29fbdf['shift']());}}}(_0xab40,0x1a814));import{BalloonPanelView as _0x363dc8,ButtonView as _0x258c9c,clickOutsideHandler as _0x7d2fed,FileDialogButtonView as _0x5c2dac,IconView as _0x126796,View as _0x243f19}from'ckeditor5/src/ui.js';function _0xab40(){const _0x2f279f=['setAddContextOptions','bodyCollection','reorganizeChips','388113BjOJTX','buttonView','_setupTemplate','822552uVeCPv','createCollection','addDocumentToContext','526518SqXPGH','menuitem','_showSourceResourcesBalloon','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat','_currentContextsChips','285956PiRVXi','element','ck-ai-chat-context-controls__add-context-button','isVisible','urls','isEnabled','_handleAddContextButtonClick','focus','_createResourcesBalloonView','showAddContextBalloonPanel','_addContextBalloonConfig','_addUrlContent','_overflowManager','fire','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','ck-ai-chat-context-controls__balloon-button','isHidden','ck-ai-chat-context-controls__url-balloon-panel','_createArrowView','showUrlBalloonPanel','addUrlToContext','_toggleAddContextBalloon','body','_addContextBalloonPanelView','icon','northArrowSouthEast','28PULPta','extendTemplate','_createAddContextButtonView','closest','AI_CHAT_CONTEXT_URL_LABEL','clear','addContextButtonView','ck-ai-chat-context-controls','hideAddContextBalloonPanel','add','enabled','content','ck-ai-chat-context-controls__pending-contexts','133383lItDkf','addContextItem','_createContextButton','_setupUrlBalloonClickOutsideHandler','_resourcesBalloonView','hideUrlBalloonPanel','tooltip','ck-reset_all-excluded','setTemplate','isAnyResourceBalloonVisible','ck-ai-chat-controls-button','ck-ai-chat-context-chips-wrapper-balloon','locale','clearCurrentContextItems','_bindEventHandlers','_createBaseBalloonPanel','execute','find','defaultPositions','show','type','_getLimiterElement','removeContextItem','render','ck-ai-chat-context-controls__balloon-button-source','clearConversationContextItems','addResourceToContext','pin','showSourceResourcesBalloon','submitUrl','852795xTCYqq','setConversationContext','ck-ai-chat-context-controls__add-context-balloon-panel','_urlBalloonPanelView','_conversationContextsChips','overflowChips','populateSourceResourceBalloon','setContainerElement','northArrowSouthWest','destroy','_setupAddContextBalloonClickOutsideHandler','northArrowSouth','_createUrlBalloonPanelView','refreshBalloon','AI_CHAT_CONTEXT_FILE_LABEL','_removeContextFromCollection','setContextItemLoading','__arrow','cancel','removeContextItemChip','children','files','balloonView','set','arrowView','_setupAllBalloonClickOutsideHandlers','southArrowNorthEast','_setAddContextButtonEnabled','div','isReadOnly','AI_CHAT_CONTEXT_ADD_CONTEXT','addFileToContext','hide','_setBalloonPanelContent','_createAddContextBalloonPanelView','loadSourceResources','656704vnbAjg','done','_handleUrlSubmit','_addContextToCollection','conversation','closeSourceResourceBalloon','southArrowNorthWest','updateResourceState','remove','isOn','_urlInputView','isLoading','current','document','sources','bind','source','southArrowNorth','label','ck-ai-chat-controls_context_show-more-button','_createBalloonButton'];_0xab40=function(){return _0x2f279f;};return _0xab40();}import{IconBrowseFiles as _0x3cd925,IconDocument as _0x512a46,IconDocumentOutline as _0x5bee98,IconDropdownArrow as _0x266538,IconLink as _0x213f71,IconPaperClip as _0x1849f7}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x5d6946}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x396dfb}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x31fbfc}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x5e3b2e}from'../../../aicore/utils/common-translations.js';function _0x527a(_0x17b1d4,_0x661e33){const _0xab4031=_0xab40();return _0x527a=function(_0x527a18,_0x370537){_0x527a18=_0x527a18-0xb4;let _0x2ae212=_0xab4031[_0x527a18];return _0x2ae212;},_0x527a(_0x17b1d4,_0x661e33);}import{AIChatResourcesBalloonView as _0x28cd2e}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2a36b6(0xf1),_0x2a36b6(0xcf),_0x2a36b6(0x10c),_0x2a36b6(0x139),_0x2a36b6(0x135),_0x2a36b6(0xd3)];const To=_0x2a36b6(0x119),Ao=_0x2a36b6(0x11e),ko=_0x2a36b6(0x13f),Eo=_0x2a36b6(0xfa),vo=_0x2a36b6(0x109),go=_0x2a36b6(0x107),Vo=_0x2a36b6(0x137),fo=_0x2a36b6(0x129),Io=_0x2a36b6(0x12a),Po=_0x2a36b6(0xe7),Ro=_0x2a36b6(0xf5),Uo=_0x2a36b6(0xf6),Lo=[_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xb8)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xbb)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0x111)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xda)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xe5)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xca)]];export class AIChatContextPanelView extends _0x243f19{[_0x2a36b6(0x118)];[_0x2a36b6(0xf7)]=this[_0x2a36b6(0xf0)]();[_0x2a36b6(0xb4)]=this[_0x2a36b6(0xf0)]();[_0x2a36b6(0x104)];[_0x2a36b6(0x10f)];[_0x2a36b6(0x140)];[_0x2a36b6(0xde)];[_0x2a36b6(0x123)];[_0x2a36b6(0x102)];[_0x2a36b6(0xea)];constructor(_0x4c81c0,_0x2c6b56){const _0xdc107e=_0x2a36b6;super(_0x4c81c0),this[_0xdc107e(0xea)]=_0x2c6b56,this[_0xdc107e(0xf7)]=this[_0xdc107e(0xf0)](),this[_0xdc107e(0xb4)]=this[_0xdc107e(0xf0)](),this[_0xdc107e(0x118)]=this[_0xdc107e(0x114)](_0x4c81c0),this[_0xdc107e(0x10f)]=this[_0xdc107e(0xd2)](_0x4c81c0),this[_0xdc107e(0x140)]=this[_0xdc107e(0xbc)](_0x4c81c0),this[_0xdc107e(0x123)]=this[_0xdc107e(0x100)](_0x4c81c0,_0x2c6b56);const _0x3a06cd={'cssClasses':{'showMoreButton':Po,'showMoreBalloon':Ro,'overflowContainer':Io,'controlsButton':fo}};this[_0xdc107e(0x104)]=new _0x31fbfc(_0x4c81c0,this[_0xdc107e(0xf7)],_0x3a06cd,this[_0xdc107e(0xea)],this),this[_0xdc107e(0x102)]={'buttonView':this[_0xdc107e(0x118)],'balloonView':this[_0xdc107e(0x10f)],'hideMethod':this[_0xdc107e(0x11a)][_0xdc107e(0xe3)](this),'showMethod':this[_0xdc107e(0x101)][_0xdc107e(0xe3)](this)},this[_0xdc107e(0xee)](),this[_0xdc107e(0x12d)]();}[_0x2a36b6(0x136)](){const _0x14498f=_0x2a36b6;super[_0x14498f(0x136)](),this[_0x14498f(0xc9)](),this[_0x14498f(0x104)][_0x14498f(0xb7)](this[_0x14498f(0xf9)]),this[_0x14498f(0x104)][_0x14498f(0xeb)]();}[_0x2a36b6(0xb9)](){const _0x294f05=_0x2a36b6;super[_0x294f05(0xb9)](),this[_0x294f05(0x104)][_0x294f05(0xb9)](),this[_0x294f05(0x123)][_0x294f05(0xb9)]();}[_0x2a36b6(0x120)](_0x48d525,_0x473678){const _0x4178c0=_0x2a36b6,_0x35d4f5=this[_0x4178c0(0x121)](_0x48d525,_0x4178c0(0xe0),!0x0,_0x473678);this[_0x4178c0(0xd7)](_0x35d4f5,this[_0x4178c0(0xf7)]),this[_0x4178c0(0x104)][_0x4178c0(0xeb)]();}[_0x2a36b6(0x135)](_0x375b47){const _0x37d414=_0x2a36b6;this[_0x37d414(0xbf)](_0x375b47,this[_0x37d414(0xf7)]),this[_0x37d414(0xbf)](_0x375b47,this[_0x37d414(0x104)][_0x37d414(0xb5)]),this[_0x37d414(0x104)][_0x37d414(0xeb)]();}[_0x2a36b6(0xc0)](_0x43c57d,_0xc22695){const _0x18d41a=_0x2a36b6;let _0x5e79cf=this[_0x18d41a(0xf7)][_0x18d41a(0x130)](_0x3c9758=>_0x3c9758['id']===_0x43c57d);_0x5e79cf||(_0x5e79cf=this[_0x18d41a(0x104)][_0x18d41a(0xb5)][_0x18d41a(0x130)](_0x17721d=>_0x17721d['id']===_0x43c57d)),_0x5e79cf&&(_0x5e79cf[_0x18d41a(0xdf)]=_0xc22695);}[_0x2a36b6(0x13e)](_0x5d55d8){const _0x1d0b0c=_0x2a36b6;this[_0x1d0b0c(0xb4)][_0x1d0b0c(0x117)]();for(const _0x1e4956 of _0x5d55d8){const _0x1f0eaa=this[_0x1d0b0c(0x121)](_0x1e4956,_0x1d0b0c(0xd8),!0x1,!0x1);this[_0x1d0b0c(0xd7)](_0x1f0eaa,this[_0x1d0b0c(0xb4)]);}}[_0x2a36b6(0x12c)](){const _0x1e5a7e=_0x2a36b6;this[_0x1e5a7e(0xf7)][_0x1e5a7e(0x117)](),this[_0x1e5a7e(0x104)][_0x1e5a7e(0x117)]();}[_0x2a36b6(0x138)](){const _0x1a2b34=_0x2a36b6;this[_0x1a2b34(0xb4)][_0x1a2b34(0x117)]();}[_0x2a36b6(0xdb)](_0x24de9a,_0x69df81,_0x33ca4a){const _0x4fe836=_0x2a36b6;this[_0x4fe836(0x123)][_0x4fe836(0xdb)](_0x24de9a,_0x69df81,_0x33ca4a);}[_0x2a36b6(0x11a)](){const _0x4f43bf=_0x2a36b6;this[_0x4f43bf(0x10d)](!0x1);}[_0x2a36b6(0x101)](){const _0x1d207c=_0x2a36b6;this[_0x1d207c(0x10d)](!0x0);}[_0x2a36b6(0x124)](){const _0x3c0ed3=_0x2a36b6;this[_0x3c0ed3(0x140)][_0x3c0ed3(0xd0)](),this[_0x3c0ed3(0x118)][_0x3c0ed3(0xdd)]=!0x1,this[_0x3c0ed3(0xde)]&&this[_0x3c0ed3(0xde)][_0x3c0ed3(0x117)]();}[_0x2a36b6(0x10b)](){const _0x17b028=_0x2a36b6;this[_0x17b028(0x140)][_0x17b028(0x132)](),this[_0x17b028(0x118)][_0x17b028(0xdd)]=!0x0;}[_0x2a36b6(0xf4)](_0x5066a8){const _0x3a4f68=_0x2a36b6;this[_0x3a4f68(0x123)][_0x3a4f68(0x13b)](_0x5066a8),this[_0x3a4f68(0x118)][_0x3a4f68(0xdd)]=!0x0;}[_0x2a36b6(0xb6)](_0x12d39f,_0x31912b,_0x170caf,_0x314ea3){const _0x5c7612=_0x2a36b6;this[_0x5c7612(0x123)][_0x5c7612(0xb6)](_0x12d39f,_0x170caf,_0x314ea3);}[_0x2a36b6(0xd9)](_0x1ea139){const _0xa3ee28=_0x2a36b6;this[_0xa3ee28(0x123)][_0xa3ee28(0xd9)](_0x1ea139),this[_0xa3ee28(0x118)][_0xa3ee28(0xdd)]=!0x1;}[_0x2a36b6(0xe9)](_0x2b78d5){const _0x5129e9=_0x2a36b6;this[_0x5129e9(0xd1)](this[_0x5129e9(0x10f)],this[_0x5129e9(0x12b)],_0x2b78d5),this[_0x5129e9(0xcb)](_0x2b78d5);}[_0x2a36b6(0xcb)](_0x1f60c9){const _0x126a4d=_0x2a36b6,_0x3c4228=!_0x1f60c9[_0x126a4d(0xe1)][_0x126a4d(0x108)]&&_0x1f60c9[_0x126a4d(0xe1)][_0x126a4d(0x11c)],_0x481d2e=_0x1f60c9[_0x126a4d(0xfc)][_0x126a4d(0x11c)],_0x74b6cc=_0x1f60c9[_0x126a4d(0xc5)][_0x126a4d(0x11c)];this[_0x126a4d(0x118)][_0x126a4d(0xfd)]=_0x3c4228||_0x481d2e||_0x74b6cc;}[_0x2a36b6(0xee)](){const _0x2c3ded=_0x2a36b6;this[_0x2c3ded(0x127)]({'tag':_0x2c3ded(0xcc),'attributes':{'class':[To,_0x2c3ded(0x126)]},'children':[{'tag':_0x2c3ded(0xcc),'attributes':{'class':Ao},'children':this[_0x2c3ded(0xf7)]}]});}[_0x2a36b6(0x12d)](){const _0x5f1a48=_0x2a36b6;this[_0x5f1a48(0x118)]['on'](_0x5f1a48(0x12f),()=>{const _0x2a3e51=_0x5f1a48;this[_0x2a3e51(0xfe)]();});}[_0x2a36b6(0x114)](_0x4f81f4){const _0x2e824c=_0x2a36b6,_0x390bf6=new _0x258c9c(_0x4f81f4);return _0x390bf6[_0x2e824c(0xc7)]({'label':_0x5e3b2e(_0x4f81f4,_0x2e824c(0xce)),'class':fo+'\x20'+Eo,'icon':_0x1849f7,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x390bf6;}[_0x2a36b6(0xd2)](_0x415df){const _0x5abef1=_0x2a36b6;return this[_0x5abef1(0x12e)](_0x415df,ko);}[_0x2a36b6(0xbc)](_0x4c49c0){const _0x4ae9c3=_0x2a36b6,_0x16352d=this[_0x4ae9c3(0x12e)](_0x4c49c0,vo);return this[_0x4ae9c3(0x103)](_0x16352d,_0x4c49c0),_0x16352d;}[_0x2a36b6(0x100)](_0xf93236,_0xed1125){const _0x5b929e=_0x2a36b6;return new _0x28cd2e(_0xf93236,_0xed1125,{'onBackToContext':()=>{const _0x716317=_0x527a;this[_0x716317(0x101)](),this[_0x716317(0x10f)][_0x716317(0x13a)]({'target':this[_0x716317(0x118)][_0x716317(0xf9)],'limiter':this[_0x716317(0x134)](),'positions':Lo});},'onResourceSelected':(_0x1d9499,_0x566e7)=>{const _0x2a8c5b=_0x527a;this[_0x2a8c5b(0x105)](_0x2a8c5b(0x139),{'source':_0x1d9499,'resource':_0x566e7});},'onLoadSourceResources':_0x413219=>{const _0x2ee8fd=_0x527a;this[_0x2ee8fd(0x105)](_0x2ee8fd(0xd3),_0x413219);},'onBalloonClosed':()=>{const _0x543b38=_0x527a;this[_0x543b38(0x118)][_0x543b38(0xdd)]=!0x1;},'getLimiterElement':()=>this[_0x5b929e(0x134)](),'getTargetElement':()=>this[_0x5b929e(0x118)][_0x5b929e(0xf9)]});}[_0x2a36b6(0x134)](){const _0xdbc66b=_0x2a36b6;return this[_0xdbc66b(0xf9)]?.[_0xdbc66b(0x115)]('.'+Uo)||document[_0xdbc66b(0x10e)];}[_0x2a36b6(0x12e)](_0x1d6387,_0x45805f){const _0x44c7cf=_0x2a36b6,_0x31b751=new _0x363dc8(_0x1d6387);return _0x31b751[_0x44c7cf(0x113)]({'attributes':{'class':_0x45805f}}),this[_0x44c7cf(0xea)][_0x44c7cf(0x11b)](_0x31b751),_0x31b751;}[_0x2a36b6(0xd1)](_0x39d4b0,_0x3afe1b,_0x215f7f){const _0x57f292=_0x2a36b6;if(_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x117)](),!_0x215f7f[_0x57f292(0xe1)][_0x57f292(0x108)]&&_0x215f7f[_0x57f292(0xe1)][_0x57f292(0x11c)]){const _0x4d6d22=this[_0x57f292(0xe8)](_0x3afe1b,{'label':_0x5e3b2e(_0x3afe1b,_0x57f292(0x106)),'icon':_0x512a46});_0x4d6d22['on'](_0x57f292(0x12f),()=>{const _0x3453da=_0x57f292;this[_0x3453da(0x105)](_0x3453da(0xf1)),this[_0x3453da(0x11a)]();}),_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x11b)](_0x4d6d22);}if(_0x215f7f[_0x57f292(0xfc)][_0x57f292(0x11c)]){const _0x623724=this[_0x57f292(0xe8)](_0x3afe1b,{'label':_0x5e3b2e(_0x3afe1b,_0x57f292(0x116)),'icon':_0x213f71});_0x623724['on'](_0x57f292(0x12f),()=>{const _0x57d4af=_0x57f292;this[_0x57d4af(0x11a)](),this[_0x57d4af(0x10b)](),this[_0x57d4af(0x140)][_0x57d4af(0x13a)]({'target':this[_0x57d4af(0x118)][_0x57d4af(0xf9)],'limiter':this[_0x57d4af(0x134)](),'positions':Lo}),this[_0x57d4af(0xde)][_0x57d4af(0xff)]();}),_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x11b)](_0x623724);}if(_0x215f7f[_0x57f292(0xc5)][_0x57f292(0x11c)]){const _0x4df333=new _0x5c2dac(_0x3afe1b);_0x4df333[_0x57f292(0xc7)]({'label':_0x5e3b2e(_0x3afe1b,_0x57f292(0xbe)),'icon':_0x3cd925,'withText':!0x0,'tooltip':!0x0,'class':go,'allowMultipleFiles':!0x0}),_0x4df333['on'](_0x57f292(0xd5),(_0x1887be,_0x2e32ed)=>{const _0xb3b139=_0x57f292;this[_0xb3b139(0x105)](_0xb3b139(0xcf),_0x2e32ed),this[_0xb3b139(0x11a)]();}),_0x4df333[_0x57f292(0x125)]=!0x0,_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x11b)](_0x4df333);}for(const _0x5b0eef of _0x215f7f[_0x57f292(0xe2)]){const _0x1c0b8d=this[_0x57f292(0xe8)](_0x3afe1b,{'label':_0x5b0eef[_0x57f292(0xe6)],'icon':_0x5b0eef[_0x57f292(0x110)]||_0x5bee98,'type':_0x57f292(0xe4)});_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x11b)](_0x1c0b8d),_0x1c0b8d['on'](_0x57f292(0x12f),()=>{const _0x506177=_0x57f292;this[_0x506177(0x11a)](),this[_0x506177(0xf4)](_0x5b0eef);});}}[_0x2a36b6(0x103)](_0x21d173,_0x226c4c){const _0x300119=_0x2a36b6;this[_0x300119(0xde)]=new _0x396dfb(_0x226c4c),this[_0x300119(0xde)]['on'](_0x300119(0x13c),(_0x214e79,_0x1626b1)=>{const _0x1f2da1=_0x300119;this[_0x1f2da1(0xd6)](_0x1626b1);}),this[_0x300119(0xde)]['on'](_0x300119(0xc2),()=>{const _0x486939=_0x300119;this[_0x486939(0x124)](),this[_0x486939(0x101)](),this[_0x486939(0x10f)][_0x486939(0x13a)]({'target':this[_0x486939(0x118)][_0x486939(0xf9)],'limiter':this[_0x486939(0x134)](),'positions':Lo});}),this[_0x300119(0xde)]['on'](_0x300119(0xbd),()=>{const _0x466edd=_0x300119;this[_0x466edd(0x140)][_0x466edd(0xfb)]&&this[_0x466edd(0x140)][_0x466edd(0x13a)]({'target':this[_0x466edd(0x118)][_0x466edd(0xf9)],'limiter':this[_0x466edd(0x134)](),'positions':Lo});}),_0x21d173[_0x300119(0x11d)][_0x300119(0x11b)](this[_0x300119(0xde)]);}[_0x2a36b6(0xe8)](_0x58675e,_0x4621c8){const _0x116294=_0x2a36b6,_0x406772=_0x116294(0xe4)===_0x4621c8[_0x116294(0x133)]?new SourcesBalloonButtonView(_0x58675e):new _0x258c9c(_0x58675e);return _0x406772[_0x116294(0xc7)]({'label':_0x4621c8[_0x116294(0xe6)],'icon':_0x4621c8[_0x116294(0x110)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':go}),_0x406772;}[_0x2a36b6(0xc9)](){const _0xfeedf2=_0x2a36b6;this[_0xfeedf2(0xba)](),this[_0xfeedf2(0x122)]();}[_0x2a36b6(0x122)](){const _0x12fd19=_0x2a36b6;_0x7d2fed({'emitter':this[_0x12fd19(0x140)],'contextElements':[this[_0x12fd19(0x140)][_0x12fd19(0xf9)]],'callback':()=>{const _0x4e96b6=_0x12fd19;this[_0x4e96b6(0x124)]();},'activator':()=>this[_0x12fd19(0x140)][_0x12fd19(0xfb)]});}[_0x2a36b6(0x10d)](_0x4a62d9){const _0x137412=_0x2a36b6,_0x511162=this[_0x137412(0x102)];_0x511162[_0x137412(0xed)][_0x137412(0xdd)]=_0x4a62d9,_0x4a62d9?_0x511162[_0x137412(0xc6)][_0x137412(0x132)]():_0x511162[_0x137412(0xc6)][_0x137412(0xd0)]();}[_0x2a36b6(0xba)](){const _0x8aae4=_0x2a36b6,{balloonView:_0x166457,buttonView:_0x3c6b35,hideMethod:_0x58b40e}=this[_0x8aae4(0x102)];_0x7d2fed({'emitter':_0x166457,'contextElements':[_0x166457[_0x8aae4(0xf9)],_0x3c6b35[_0x8aae4(0xf9)]],'callback':()=>{_0x58b40e();},'activator':()=>_0x3c6b35[_0x8aae4(0xdd)]&&!this[_0x8aae4(0x140)][_0x8aae4(0xfb)]&&!this[_0x8aae4(0x123)][_0x8aae4(0x128)]()});}[_0x2a36b6(0x121)](_0x588f50,_0x126c76,_0x40002b=!0x1,_0x3f7f98=!0x1){const _0x43b04d=_0x2a36b6,_0x1a6dc5=_0x43b04d(0xd8)===_0x126c76||!0x0===_0x588f50[_0x43b04d(0xcd)],_0x3ef555=new _0x5d6946(this[_0x43b04d(0x12b)],_0x588f50,_0x1a6dc5,_0x40002b,_0x3f7f98);return _0x1a6dc5||_0x3ef555['on'](_0x43b04d(0xc3),()=>{const _0x35aa79=_0x43b04d;this[_0x35aa79(0x105)](_0x35aa79(0x135),_0x3ef555['id']);}),_0x3ef555;}[_0x2a36b6(0xd7)](_0x38256a,_0xaf9bc5){const _0x238cf7=_0x2a36b6;_0xaf9bc5[_0x238cf7(0x11b)](_0x38256a,0x0);}[_0x2a36b6(0xbf)](_0x18d693,_0xd97836){const _0x2325a2=_0x2a36b6,_0x291aca=_0xd97836[_0x2325a2(0x130)](_0x23af7f=>_0x23af7f['id']===_0x18d693);_0x291aca&&_0xd97836[_0x2325a2(0xdc)](_0x291aca);}[_0x2a36b6(0xfe)](){const _0x50f5aa=_0x2a36b6;this[_0x50f5aa(0x118)][_0x50f5aa(0xdd)]?this[_0x50f5aa(0x11a)]():(this[_0x50f5aa(0x101)](),this[_0x50f5aa(0x10f)][_0x50f5aa(0x13a)]({'target':this[_0x50f5aa(0x118)][_0x50f5aa(0xf9)],'limiter':this[_0x50f5aa(0x134)](),'positions':Lo}));}[_0x2a36b6(0xd6)](_0x350c3c){const _0x532355=_0x2a36b6;this[_0x532355(0xde)][_0x532355(0x117)](),this[_0x532355(0x124)](),this[_0x532355(0x105)](_0x532355(0x10c),_0x350c3c);}}export class SourcesBalloonButtonView extends _0x258c9c{[_0x2a36b6(0xc8)];constructor(_0x533288){const _0x1c3ef4=_0x2a36b6;super(_0x533288),this[_0x1c3ef4(0xc7)]({'withText':!0x0,'role':_0x1c3ef4(0xf3)}),this[_0x1c3ef4(0xc8)]=this[_0x1c3ef4(0x10a)](),this[_0x1c3ef4(0x113)]({'attributes':{'class':[Vo]}});}[_0x2a36b6(0x136)](){const _0x6c7198=_0x2a36b6;super[_0x6c7198(0x136)](),this[_0x6c7198(0xc4)][_0x6c7198(0x11b)](this[_0x6c7198(0xc8)]);}[_0x2a36b6(0x10a)](){const _0x42b0c4=_0x2a36b6,_0x40fa50=new _0x126796();return _0x40fa50[_0x42b0c4(0x11d)]=_0x266538,_0x40fa50[_0x42b0c4(0x113)]({'attributes':{'class':Vo+_0x42b0c4(0xc1)}}),_0x40fa50;}}
23
+ const _0x318cd3=_0x3ba0;(function(_0x175e41,_0x1d6c63){const _0x495b6e=_0x3ba0,_0xcaf66f=_0x175e41();while(!![]){try{const _0x6a0711=parseInt(_0x495b6e(0x10a))/0x1+-parseInt(_0x495b6e(0x103))/0x2*(parseInt(_0x495b6e(0x14c))/0x3)+parseInt(_0x495b6e(0xc1))/0x4*(-parseInt(_0x495b6e(0x126))/0x5)+parseInt(_0x495b6e(0xe8))/0x6+-parseInt(_0x495b6e(0xcc))/0x7+parseInt(_0x495b6e(0x148))/0x8*(parseInt(_0x495b6e(0xbf))/0x9)+-parseInt(_0x495b6e(0x13a))/0xa*(-parseInt(_0x495b6e(0x13b))/0xb);if(_0x6a0711===_0x1d6c63)break;else _0xcaf66f['push'](_0xcaf66f['shift']());}catch(_0x26fb88){_0xcaf66f['push'](_0xcaf66f['shift']());}}}(_0x134a,0xac987));import{BalloonPanelView as _0x4681c8,ButtonView as _0x16ecf4,clickOutsideHandler as _0x288ed2,FileDialogButtonView as _0x2d9777,IconView as _0x38c52d,View as _0x2a63f8}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x44c458,IconDocument as _0x9c9a6a,IconDocumentOutline as _0x55fe32,IconDropdownArrow as _0x5a9a93,IconLink as _0x5b7183,IconPaperClip as _0x52accd}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x1e2d4f}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0xa963b8}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x1d50a2}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x46ba45}from'../../../aicore/utils/common-translations.js';function _0x134a(){const _0x1b5f8c=['source','_createBalloonButton','847470BBCUsA','isLoading','_setAddContextButtonEnabled','addContextButtonView','isReadOnly','northArrowSouth','_addContextToCollection','overflowChips','_createAddContextButtonView','locale','hide','children','populateSourceResourceBalloon','_setupTemplate','arrowView','addResourceToContext','southArrowNorthEast','body','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat','set','enabled','label','bind','done','_handleUrlSubmit','tooltip','12756ovuvcf','ck-ai-chat-controls_context_show-more-button','southArrowNorthWest','_currentContextsChips','isHidden','add','ck-ai-chat-controls-button','628983DCWzDa','sources','bodyCollection','_addContextBalloonConfig','showSourceResourcesBalloon','removeContextItem','balloonView','_createBaseBalloonPanel','ck-ai-chat-context-controls__balloon-button-source','reorganizeChips','element','ck-ai-chat-context-controls','clearCurrentContextItems','ck-ai-chat-context-chips-wrapper-balloon','div','submitUrl','content','updateResourceState','menuitem','type','cancel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','hideAddContextBalloonPanel','_setBalloonPanelContent','_showSourceResourcesBalloon','ck-ai-chat-context-controls__pending-contexts','setContextItemLoading','createCollection','1435HbCJrr','removeContextItemChip','extendTemplate','addFileToContext','_createArrowView','showUrlBalloonPanel','_addContextBalloonPanelView','_toggleAddContextBalloon','defaultPositions','northArrowSouthEast','conversation','_bindEventHandlers','render','clear','_urlBalloonPanelView','isOn','_overflowManager','southArrowNorth','_setupUrlBalloonClickOutsideHandler','fire','7010UccGup','29095ZvTbkr','ck-reset_all-excluded','_handleAddContextButtonClick','AI_CHAT_CONTEXT_ADD_CONTEXT','AI_CHAT_CONTEXT_URL_LABEL','setAddContextOptions','focus','remove','closeSourceResourceBalloon','_createAddContextBalloonPanelView','_setupAddContextBalloonClickOutsideHandler','_urlInputView','_createContextButton','26608qNMtxC','hideUrlBalloonPanel','files','ck-ai-chat-context-controls__url-balloon-panel','156hOsmQu','isEnabled','setTemplate','351qJMbkP','setConversationContext','10716oOvfCB','_removeContextFromCollection','ck-ai-chat-context-controls__show-more-balloon-panel','isAnyResourceBalloonVisible','addContextItem','buttonView','addDocumentToContext','current','show','document','urls','6626249RvpZCl','_createResourcesBalloonView','_conversationContextsChips','destroy','closest','icon','__arrow','_addUrlContent','ck-ai-chat-context-controls__add-context-button','showAddContextBalloonPanel','setContainerElement','_getLimiterElement','loadSourceResources','pin','ck-ai-chat-context-controls__add-context-balloon-panel','refreshBalloon','ck-ai-chat-context-controls__balloon-button','_setupAllBalloonClickOutsideHandlers','addUrlToContext','northArrowSouthWest','execute','_resourcesBalloonView','clearConversationContextItems','isVisible','find','_createUrlBalloonPanelView'];_0x134a=function(){return _0x1b5f8c;};return _0x134a();}import{AIChatResourcesBalloonView as _0x1730df}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x318cd3(0xc7),_0x318cd3(0x129),_0x318cd3(0xde),_0x318cd3(0xf7),_0x318cd3(0x10f),_0x318cd3(0xd8)];const Ao=_0x318cd3(0x115),ko=_0x318cd3(0x123),Eo=_0x318cd3(0xda),vo=_0x318cd3(0xd4),go=_0x318cd3(0x14b),Vo=_0x318cd3(0xdc),fo=_0x318cd3(0x112),Io=_0x318cd3(0x109),Po=_0x318cd3(0x117),Ro=_0x318cd3(0x104),Uo=_0x318cd3(0xc3),Lo=_0x318cd3(0xfb),No=[_0x4681c8[_0x318cd3(0x12e)][_0x318cd3(0xdf)],_0x4681c8[_0x318cd3(0x12e)][_0x318cd3(0xed)],_0x4681c8[_0x318cd3(0x12e)][_0x318cd3(0x12f)],_0x4681c8[_0x318cd3(0x12e)][_0x318cd3(0x105)],_0x4681c8[_0x318cd3(0x12e)][_0x318cd3(0x137)],_0x4681c8[_0x318cd3(0x12e)][_0x318cd3(0xf8)]];export class AIChatContextPanelView extends _0x2a63f8{[_0x318cd3(0xeb)];[_0x318cd3(0x106)]=this[_0x318cd3(0x125)]();[_0x318cd3(0xce)]=this[_0x318cd3(0x125)]();[_0x318cd3(0x136)];[_0x318cd3(0x12c)];[_0x318cd3(0x134)];[_0x318cd3(0x146)];[_0x318cd3(0xe1)];[_0x318cd3(0x10d)];[_0x318cd3(0x10c)];constructor(_0x1818ab,_0x33ed34){const _0x41d9c9=_0x318cd3;super(_0x1818ab),this[_0x41d9c9(0x10c)]=_0x33ed34,this[_0x41d9c9(0x106)]=this[_0x41d9c9(0x125)](),this[_0x41d9c9(0xce)]=this[_0x41d9c9(0x125)](),this[_0x41d9c9(0xeb)]=this[_0x41d9c9(0xf0)](_0x1818ab),this[_0x41d9c9(0x12c)]=this[_0x41d9c9(0x144)](_0x1818ab),this[_0x41d9c9(0x134)]=this[_0x41d9c9(0xe5)](_0x1818ab),this[_0x41d9c9(0xe1)]=this[_0x41d9c9(0xcd)](_0x1818ab,_0x33ed34);const _0x310557={'cssClasses':{'showMoreButton':Ro,'showMoreBalloon':Uo,'overflowContainer':Po,'controlsButton':Io}};this[_0x41d9c9(0x136)]=new _0x1d50a2(_0x1818ab,this[_0x41d9c9(0x106)],_0x310557,this[_0x41d9c9(0x10c)],this),this[_0x41d9c9(0x10d)]={'buttonView':this[_0x41d9c9(0xeb)],'balloonView':this[_0x41d9c9(0x12c)],'hideMethod':this[_0x41d9c9(0x120)][_0x41d9c9(0xff)](this),'showMethod':this[_0x41d9c9(0xd5)][_0x41d9c9(0xff)](this)},this[_0x41d9c9(0xf5)](),this[_0x41d9c9(0x131)]();}[_0x318cd3(0x132)](){const _0x1dee4c=_0x318cd3;super[_0x1dee4c(0x132)](),this[_0x1dee4c(0xdd)](),this[_0x1dee4c(0x136)][_0x1dee4c(0xd6)](this[_0x1dee4c(0x114)]),this[_0x1dee4c(0x136)][_0x1dee4c(0x113)]();}[_0x318cd3(0xcf)](){const _0x84309=_0x318cd3;super[_0x84309(0xcf)](),this[_0x84309(0x136)][_0x84309(0xcf)](),this[_0x84309(0xe1)][_0x84309(0xcf)]();}[_0x318cd3(0xc5)](_0x5c58b2,_0x1eaf2a){const _0x560874=_0x318cd3,_0x136067=this[_0x560874(0x147)](_0x5c58b2,_0x560874(0xc8),!0x0,_0x1eaf2a);this[_0x560874(0xee)](_0x136067,this[_0x560874(0x106)]),this[_0x560874(0x136)][_0x560874(0x113)]();}[_0x318cd3(0x10f)](_0x1864f7){const _0x55e449=_0x318cd3;this[_0x55e449(0xc2)](_0x1864f7,this[_0x55e449(0x106)]),this[_0x55e449(0xc2)](_0x1864f7,this[_0x55e449(0x136)][_0x55e449(0xef)]),this[_0x55e449(0x136)][_0x55e449(0x113)]();}[_0x318cd3(0x124)](_0x41da88,_0x2ea138){const _0x3c834f=_0x318cd3;let _0x18e78e=this[_0x3c834f(0x106)][_0x3c834f(0xe4)](_0x1ceccc=>_0x1ceccc['id']===_0x41da88);_0x18e78e||(_0x18e78e=this[_0x3c834f(0x136)][_0x3c834f(0xef)][_0x3c834f(0xe4)](_0x2a8181=>_0x2a8181['id']===_0x41da88)),_0x18e78e&&(_0x18e78e[_0x3c834f(0xe9)]=_0x2ea138);}[_0x318cd3(0xc0)](_0x46e49c){const _0x299bd4=_0x318cd3;this[_0x299bd4(0xce)][_0x299bd4(0x133)]();for(const _0x2622bf of _0x46e49c){const _0x3dc884=this[_0x299bd4(0x147)](_0x2622bf,_0x299bd4(0x130),!0x1,!0x1);this[_0x299bd4(0xee)](_0x3dc884,this[_0x299bd4(0xce)]);}}[_0x318cd3(0x116)](){const _0x23ce3a=_0x318cd3;this[_0x23ce3a(0x106)][_0x23ce3a(0x133)](),this[_0x23ce3a(0x136)][_0x23ce3a(0x133)]();}[_0x318cd3(0xe2)](){const _0x461bd3=_0x318cd3;this[_0x461bd3(0xce)][_0x461bd3(0x133)]();}[_0x318cd3(0x11b)](_0x497a78,_0x2df900,_0x46bae1){const _0x3ae052=_0x318cd3;this[_0x3ae052(0xe1)][_0x3ae052(0x11b)](_0x497a78,_0x2df900,_0x46bae1);}[_0x318cd3(0x120)](){const _0x1624c7=_0x318cd3;this[_0x1624c7(0x12d)](!0x1);}[_0x318cd3(0xd5)](){const _0x5ea652=_0x318cd3;this[_0x5ea652(0x12d)](!0x0);}[_0x318cd3(0x149)](){const _0x1d5c8f=_0x318cd3;this[_0x1d5c8f(0x134)][_0x1d5c8f(0xf2)](),this[_0x1d5c8f(0xeb)][_0x1d5c8f(0x135)]=!0x1,this[_0x1d5c8f(0x146)]&&this[_0x1d5c8f(0x146)][_0x1d5c8f(0x133)]();}[_0x318cd3(0x12b)](){const _0xcf9cb3=_0x318cd3;this[_0xcf9cb3(0x134)][_0xcf9cb3(0xc9)](),this[_0xcf9cb3(0xeb)][_0xcf9cb3(0x135)]=!0x0;}[_0x318cd3(0x122)](_0x194ec4){const _0x13cd30=_0x318cd3;this[_0x13cd30(0xe1)][_0x13cd30(0x10e)](_0x194ec4),this[_0x13cd30(0xeb)][_0x13cd30(0x135)]=!0x0;}[_0x318cd3(0xf4)](_0x1d26ce,_0xd729d3,_0x328b92,_0x44f529){const _0x163bb7=_0x318cd3;this[_0x163bb7(0xe1)][_0x163bb7(0xf4)](_0x1d26ce,_0x328b92,_0x44f529);}[_0x318cd3(0x143)](_0x5dc3cd){const _0x5334e2=_0x318cd3;this[_0x5334e2(0xe1)][_0x5334e2(0x143)](_0x5dc3cd),this[_0x5334e2(0xeb)][_0x5334e2(0x135)]=!0x1;}[_0x318cd3(0x140)](_0x56bb40){const _0xc08ca5=_0x318cd3;this[_0xc08ca5(0x121)](this[_0xc08ca5(0x12c)],this[_0xc08ca5(0xf1)],_0x56bb40),this[_0xc08ca5(0xea)](_0x56bb40);}[_0x318cd3(0xea)](_0xe431e4){const _0x42afcc=_0x318cd3,_0x54e421=!_0xe431e4[_0x42afcc(0xca)][_0x42afcc(0x107)]&&_0xe431e4[_0x42afcc(0xca)][_0x42afcc(0xfd)],_0x431e6f=_0xe431e4[_0x42afcc(0xcb)][_0x42afcc(0xfd)],_0x41aff7=_0xe431e4[_0x42afcc(0x14a)][_0x42afcc(0xfd)];this[_0x42afcc(0xeb)][_0x42afcc(0xbd)]=_0x54e421||_0x431e6f||_0x41aff7;}[_0x318cd3(0xf5)](){const _0x20d77b=_0x318cd3;this[_0x20d77b(0xbe)]({'tag':_0x20d77b(0x118),'attributes':{'class':[Ao,_0x20d77b(0x13c)]},'children':[{'tag':_0x20d77b(0x118),'attributes':{'class':ko},'children':this[_0x20d77b(0x106)]}]});}[_0x318cd3(0x131)](){const _0x47dd13=_0x318cd3;this[_0x47dd13(0xeb)]['on'](_0x47dd13(0xe0),()=>{const _0x5a9da7=_0x47dd13;this[_0x5a9da7(0x13d)]();});}[_0x318cd3(0xf0)](_0x284633){const _0x3efb8=_0x318cd3,_0x3244d0=new _0x16ecf4(_0x284633);return _0x3244d0[_0x3efb8(0xfc)]({'label':_0x46ba45(_0x284633,_0x3efb8(0x13e)),'class':Io+'\x20'+vo,'icon':_0x52accd,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x3244d0;}[_0x318cd3(0x144)](_0x234436){const _0x15a612=_0x318cd3;return this[_0x15a612(0x111)](_0x234436,Eo);}[_0x318cd3(0xe5)](_0xffdbda){const _0x2e87d8=_0x318cd3,_0x1d98b4=this[_0x2e87d8(0x111)](_0xffdbda,go);return this[_0x2e87d8(0xd3)](_0x1d98b4,_0xffdbda),_0x1d98b4;}[_0x318cd3(0xcd)](_0x117d9c,_0x3153fa){const _0xe913e=_0x318cd3;return new _0x1730df(_0x117d9c,_0x3153fa,{'onBackToContext':()=>{const _0x546cd5=_0x3ba0;this[_0x546cd5(0xd5)](),this[_0x546cd5(0x12c)][_0x546cd5(0xd9)]({'target':this[_0x546cd5(0xeb)][_0x546cd5(0x114)],'limiter':this[_0x546cd5(0xd7)](),'positions':No});},'onResourceSelected':(_0x5f1c92,_0x46481f)=>{const _0x344b46=_0x3ba0;this[_0x344b46(0x139)](_0x344b46(0xf7),{'source':_0x5f1c92,'resource':_0x46481f});},'onLoadSourceResources':_0x31b0a1=>{const _0x5ec2f1=_0x3ba0;this[_0x5ec2f1(0x139)](_0x5ec2f1(0xd8),_0x31b0a1);},'onBalloonClosed':()=>{const _0xfeb007=_0x3ba0;this[_0xfeb007(0xeb)][_0xfeb007(0x135)]=!0x1;},'getLimiterElement':()=>this[_0xe913e(0xd7)](),'getTargetElement':()=>this[_0xe913e(0xeb)][_0xe913e(0x114)]});}[_0x318cd3(0xd7)](){const _0x2edf0f=_0x318cd3;return this[_0x2edf0f(0x114)]?.[_0x2edf0f(0xd0)]('.'+Lo)||document[_0x2edf0f(0xf9)];}[_0x318cd3(0x111)](_0x4b2297,_0x8f418a){const _0x468f68=_0x318cd3,_0x3eb99d=new _0x4681c8(_0x4b2297);return _0x3eb99d[_0x468f68(0x128)]({'attributes':{'class':_0x8f418a}}),this[_0x468f68(0x10c)][_0x468f68(0x108)](_0x3eb99d),_0x3eb99d;}[_0x318cd3(0x121)](_0x86c5d9,_0x5e2fdf,_0x59f234){const _0x201c13=_0x318cd3;if(_0x86c5d9[_0x201c13(0x11a)][_0x201c13(0x133)](),!_0x59f234[_0x201c13(0xca)][_0x201c13(0x107)]&&_0x59f234[_0x201c13(0xca)][_0x201c13(0xfd)]){const _0x518eb1=this[_0x201c13(0xe7)](_0x5e2fdf,{'label':_0x46ba45(_0x5e2fdf,_0x201c13(0x11f)),'icon':_0x9c9a6a});_0x518eb1['on'](_0x201c13(0xe0),()=>{const _0x45577b=_0x201c13;this[_0x45577b(0x139)](_0x45577b(0xc7)),this[_0x45577b(0x120)]();}),_0x86c5d9[_0x201c13(0x11a)][_0x201c13(0x108)](_0x518eb1);}if(_0x59f234[_0x201c13(0xcb)][_0x201c13(0xfd)]){const _0x25b2c4=this[_0x201c13(0xe7)](_0x5e2fdf,{'label':_0x46ba45(_0x5e2fdf,_0x201c13(0x13f)),'icon':_0x5b7183});_0x25b2c4['on'](_0x201c13(0xe0),()=>{const _0x4853de=_0x201c13;this[_0x4853de(0x120)](),this[_0x4853de(0x12b)](),this[_0x4853de(0x134)][_0x4853de(0xd9)]({'target':this[_0x4853de(0xeb)][_0x4853de(0x114)],'limiter':this[_0x4853de(0xd7)](),'positions':No}),this[_0x4853de(0x146)][_0x4853de(0x141)]();}),_0x86c5d9[_0x201c13(0x11a)][_0x201c13(0x108)](_0x25b2c4);}if(_0x59f234[_0x201c13(0x14a)][_0x201c13(0xfd)]){const _0x12d042=new _0x2d9777(_0x5e2fdf);_0x12d042[_0x201c13(0xfc)]({'label':_0x46ba45(_0x5e2fdf,_0x201c13(0xfa)),'icon':_0x44c458,'withText':!0x0,'tooltip':!0x0,'class':Vo,'allowMultipleFiles':!0x0}),_0x12d042['on'](_0x201c13(0x100),(_0x175953,_0xe876e7)=>{const _0x2cad99=_0x201c13;this[_0x2cad99(0x139)](_0x2cad99(0x129),_0xe876e7),this[_0x2cad99(0x120)]();}),_0x12d042[_0x201c13(0x102)]=!0x0,_0x86c5d9[_0x201c13(0x11a)][_0x201c13(0x108)](_0x12d042);}for(const _0x2c705d of _0x59f234[_0x201c13(0x10b)]){const _0x486eff=this[_0x201c13(0xe7)](_0x5e2fdf,{'label':_0x2c705d[_0x201c13(0xfe)],'icon':_0x2c705d[_0x201c13(0xd1)]||_0x55fe32,'type':_0x201c13(0xe6)});_0x86c5d9[_0x201c13(0x11a)][_0x201c13(0x108)](_0x486eff),_0x486eff['on'](_0x201c13(0xe0),()=>{const _0x6e61eb=_0x201c13;this[_0x6e61eb(0x120)](),this[_0x6e61eb(0x122)](_0x2c705d);});}}[_0x318cd3(0xd3)](_0x3921f1,_0x3a26d8){const _0x43e241=_0x318cd3;this[_0x43e241(0x146)]=new _0xa963b8(_0x3a26d8),this[_0x43e241(0x146)]['on'](_0x43e241(0x119),(_0xb2279d,_0x59d09e)=>{const _0x5cc87c=_0x43e241;this[_0x5cc87c(0x101)](_0x59d09e);}),this[_0x43e241(0x146)]['on'](_0x43e241(0x11e),()=>{const _0x4804b6=_0x43e241;this[_0x4804b6(0x149)](),this[_0x4804b6(0xd5)](),this[_0x4804b6(0x12c)][_0x4804b6(0xd9)]({'target':this[_0x4804b6(0xeb)][_0x4804b6(0x114)],'limiter':this[_0x4804b6(0xd7)](),'positions':No});}),this[_0x43e241(0x146)]['on'](_0x43e241(0xdb),()=>{const _0x3fdcf3=_0x43e241;this[_0x3fdcf3(0x134)][_0x3fdcf3(0xe3)]&&this[_0x3fdcf3(0x134)][_0x3fdcf3(0xd9)]({'target':this[_0x3fdcf3(0xeb)][_0x3fdcf3(0x114)],'limiter':this[_0x3fdcf3(0xd7)](),'positions':No});}),_0x3921f1[_0x43e241(0x11a)][_0x43e241(0x108)](this[_0x43e241(0x146)]);}[_0x318cd3(0xe7)](_0x482b99,_0x32ac57){const _0x5af0e3=_0x318cd3,_0x47965b=_0x5af0e3(0xe6)===_0x32ac57[_0x5af0e3(0x11d)]?new SourcesBalloonButtonView(_0x482b99):new _0x16ecf4(_0x482b99);return _0x47965b[_0x5af0e3(0xfc)]({'label':_0x32ac57[_0x5af0e3(0xfe)],'icon':_0x32ac57[_0x5af0e3(0xd1)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Vo}),_0x47965b;}[_0x318cd3(0xdd)](){const _0x17c179=_0x318cd3;this[_0x17c179(0x145)](),this[_0x17c179(0x138)]();}[_0x318cd3(0x138)](){const _0x153793=_0x318cd3;_0x288ed2({'emitter':this[_0x153793(0x134)],'contextElements':[this[_0x153793(0x134)][_0x153793(0x114)]],'callback':()=>{const _0x326ca2=_0x153793;this[_0x326ca2(0x149)]();},'activator':()=>this[_0x153793(0x134)][_0x153793(0xe3)]});}[_0x318cd3(0x12d)](_0x578b02){const _0x10839b=_0x318cd3,_0x171351=this[_0x10839b(0x10d)];_0x171351[_0x10839b(0xc6)][_0x10839b(0x135)]=_0x578b02,_0x578b02?_0x171351[_0x10839b(0x110)][_0x10839b(0xc9)]():_0x171351[_0x10839b(0x110)][_0x10839b(0xf2)]();}[_0x318cd3(0x145)](){const _0xa5d94f=_0x318cd3,{balloonView:_0x3ed57c,buttonView:_0x57d068,hideMethod:_0x3fd866}=this[_0xa5d94f(0x10d)];_0x288ed2({'emitter':_0x3ed57c,'contextElements':[_0x3ed57c[_0xa5d94f(0x114)],_0x57d068[_0xa5d94f(0x114)]],'callback':()=>{_0x3fd866();},'activator':()=>_0x57d068[_0xa5d94f(0x135)]&&!this[_0xa5d94f(0x134)][_0xa5d94f(0xe3)]&&!this[_0xa5d94f(0xe1)][_0xa5d94f(0xc4)]()});}[_0x318cd3(0x147)](_0xad7dcf,_0x23117e,_0x40900b=!0x1,_0x3d8c42=!0x1){const _0x2b102b=_0x318cd3,_0x39b004=_0x2b102b(0x130)===_0x23117e||!0x0===_0xad7dcf[_0x2b102b(0xec)],_0x58e9b1=new _0x1e2d4f(this[_0x2b102b(0xf1)],_0xad7dcf,_0x39b004,_0x40900b,_0x3d8c42);return _0x39b004||_0x58e9b1['on'](_0x2b102b(0x127),()=>{const _0x4ba857=_0x2b102b;this[_0x4ba857(0x139)](_0x4ba857(0x10f),_0x58e9b1['id']);}),_0x58e9b1;}[_0x318cd3(0xee)](_0x305326,_0x17c246){const _0x51a2b9=_0x318cd3;_0x17c246[_0x51a2b9(0x108)](_0x305326,0x0);}[_0x318cd3(0xc2)](_0x400783,_0x23cc96){const _0x4db41b=_0x318cd3,_0x285936=_0x23cc96[_0x4db41b(0xe4)](_0x52cbbe=>_0x52cbbe['id']===_0x400783);_0x285936&&_0x23cc96[_0x4db41b(0x142)](_0x285936);}[_0x318cd3(0x13d)](){const _0x44c16c=_0x318cd3;this[_0x44c16c(0xeb)][_0x44c16c(0x135)]?this[_0x44c16c(0x120)]():(this[_0x44c16c(0xd5)](),this[_0x44c16c(0x12c)][_0x44c16c(0xd9)]({'target':this[_0x44c16c(0xeb)][_0x44c16c(0x114)],'limiter':this[_0x44c16c(0xd7)](),'positions':No}));}[_0x318cd3(0x101)](_0x54b883){const _0x11a65c=_0x318cd3;this[_0x11a65c(0x146)][_0x11a65c(0x133)](),this[_0x11a65c(0x149)](),this[_0x11a65c(0x139)](_0x11a65c(0xde),_0x54b883);}}function _0x3ba0(_0x46fe73,_0x5070f4){const _0x134ad3=_0x134a();return _0x3ba0=function(_0x3ba051,_0x58a822){_0x3ba051=_0x3ba051-0xbd;let _0x4b5a27=_0x134ad3[_0x3ba051];return _0x4b5a27;},_0x3ba0(_0x46fe73,_0x5070f4);}export class SourcesBalloonButtonView extends _0x16ecf4{[_0x318cd3(0xf6)];constructor(_0x5d5949){const _0x410ec0=_0x318cd3;super(_0x5d5949),this[_0x410ec0(0xfc)]({'withText':!0x0,'role':_0x410ec0(0x11c)}),this[_0x410ec0(0xf6)]=this[_0x410ec0(0x12a)](),this[_0x410ec0(0x128)]({'attributes':{'class':[fo]}});}[_0x318cd3(0x132)](){const _0x56c9e1=_0x318cd3;super[_0x56c9e1(0x132)](),this[_0x56c9e1(0xf3)][_0x56c9e1(0x108)](this[_0x56c9e1(0xf6)]);}[_0x318cd3(0x12a)](){const _0x2bcaf6=_0x318cd3,_0x237e66=new _0x38c52d();return _0x237e66[_0x2bcaf6(0x11a)]=_0x5a9a93,_0x237e66[_0x2bcaf6(0x128)]({'attributes':{'class':fo+_0x2bcaf6(0xd2)}}),_0x237e66;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x293c3d=_0x3037;(function(_0x10a0c5,_0x272d35){const _0x4501ff=_0x3037,_0x521ddf=_0x10a0c5();while(!![]){try{const _0x391f37=parseInt(_0x4501ff(0x71))/0x1+parseInt(_0x4501ff(0x74))/0x2*(parseInt(_0x4501ff(0x81))/0x3)+parseInt(_0x4501ff(0x68))/0x4*(-parseInt(_0x4501ff(0x69))/0x5)+parseInt(_0x4501ff(0x82))/0x6+-parseInt(_0x4501ff(0x70))/0x7*(parseInt(_0x4501ff(0x7f))/0x8)+parseInt(_0x4501ff(0x6e))/0x9+parseInt(_0x4501ff(0x6c))/0xa*(-parseInt(_0x4501ff(0x75))/0xb);if(_0x391f37===_0x272d35)break;else _0x521ddf['push'](_0x521ddf['shift']());}catch(_0x4905b6){_0x521ddf['push'](_0x521ddf['shift']());}}}(_0x3718,0x71525));function _0x3037(_0x264ba9,_0x5e3770){const _0x3718d4=_0x3718();return _0x3037=function(_0x303780,_0x43179e){_0x303780=_0x303780-0x68;let _0x522833=_0x3718d4[_0x303780];return _0x522833;},_0x3037(_0x264ba9,_0x5e3770);}function _0x3718(){const _0x3ca44f=['_loaderView','_cancelButtonView','ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader','setTemplate','AI_CHAT_STOP_GENERATING','_createCancelButtonView','88vYmpJV','set','3WDLmmt','4193232lxQZcR','ck-ai-chat-controls-loader-wrapper','ck-reset_all','_createLoaderView','339968rqLzqb','20CgXAcg','ck-ai-chat-controls-loader-icon','locale','630BefmRq','div','6257772iGItej','execute','805EmmMbr','395463vywmpG','abortPromptStream','fire','1678328hVtvNo','318373DfDinB','AI_CHAT_IS_WRITING','ai-chat-controls-loader__cancel-button'];_0x3718=function(){return _0x3ca44f;};return _0x3718();}import{ButtonView as _0x140e74,View as _0x54fa01}from'ckeditor5/src/ui.js';import{IconStop as _0x350d40}from'ckeditor5/src/icons.js';import{getTranslation as _0x3cdb22}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x54fa01{[_0x293c3d(0x79)];[_0x293c3d(0x78)];constructor(_0x73dc3b){const _0x452801=_0x293c3d;super(_0x73dc3b),this[_0x452801(0x79)]=this[_0x452801(0x7e)](),this[_0x452801(0x78)]=this[_0x452801(0x85)](),this[_0x452801(0x7c)]({'tag':_0x452801(0x6d),'attributes':{'class':['ck',_0x452801(0x83),_0x452801(0x84)]},'children':[this[_0x452801(0x78)],this[_0x452801(0x79)]]});}[_0x293c3d(0x7e)](){const _0x161748=_0x293c3d,_0x502428=new _0x140e74(this[_0x161748(0x6b)]);return _0x502428[_0x161748(0x80)]({'label':_0x3cdb22(this[_0x161748(0x6b)],_0x161748(0x7d)),'withText':!0x0,'class':_0x161748(0x77),'icon':_0x350d40}),_0x502428['on'](_0x161748(0x6f),()=>{const _0x28420e=_0x161748;this[_0x28420e(0x73)](_0x28420e(0x72));}),_0x502428;}[_0x293c3d(0x85)](){const _0x432ed1=_0x293c3d,_0x5b454c=new _0x54fa01(this[_0x432ed1(0x6b)]);return _0x5b454c[_0x432ed1(0x7c)]({'tag':_0x432ed1(0x6d),'attributes':{'class':[_0x432ed1(0x7b)]},'children':[{'tag':_0x432ed1(0x6d),'attributes':{'class':[_0x432ed1(0x6a)]},'children':[{'tag':_0x432ed1(0x6d),'attributes':{'class':[_0x432ed1(0x7a)]}},{'tag':_0x432ed1(0x6d),'attributes':{'class':[_0x432ed1(0x7a)]}},{'tag':_0x432ed1(0x6d),'attributes':{'class':[_0x432ed1(0x7a)]}}]},{'text':_0x3cdb22(this[_0x432ed1(0x6b)],_0x432ed1(0x76))}]}),_0x5b454c;}}
23
+ const _0x461730=_0x10e7;(function(_0xbe87fb,_0x6f5f74){const _0x5e2cb6=_0x10e7,_0x6c89d8=_0xbe87fb();while(!![]){try{const _0x4f5e22=-parseInt(_0x5e2cb6(0x6d))/0x1*(parseInt(_0x5e2cb6(0x69))/0x2)+-parseInt(_0x5e2cb6(0x75))/0x3*(-parseInt(_0x5e2cb6(0x7f))/0x4)+-parseInt(_0x5e2cb6(0x65))/0x5+-parseInt(_0x5e2cb6(0x79))/0x6+-parseInt(_0x5e2cb6(0x7a))/0x7*(parseInt(_0x5e2cb6(0x81))/0x8)+-parseInt(_0x5e2cb6(0x7c))/0x9+parseInt(_0x5e2cb6(0x80))/0xa;if(_0x4f5e22===_0x6f5f74)break;else _0x6c89d8['push'](_0x6c89d8['shift']());}catch(_0x193b76){_0x6c89d8['push'](_0x6c89d8['shift']());}}}(_0x35b2,0xd28f4));import{ButtonView as _0x3858fa,View as _0x516b17}from'ckeditor5/src/ui.js';function _0x10e7(_0x5a148c,_0x57b037){const _0x35b216=_0x35b2();return _0x10e7=function(_0x10e713,_0x4ec6d5){_0x10e713=_0x10e713-0x65;let _0x5cc882=_0x35b216[_0x10e713];return _0x5cc882;},_0x10e7(_0x5a148c,_0x57b037);}import{IconStop as _0x37580a}from'ckeditor5/src/icons.js';function _0x35b2(){const _0x2dbb63=['_cancelButtonView','ck-ai-chat-controls-loader-icon-dot','_createCancelButtonView','401XEJUOB','ai-chat-controls-loader__cancel-button','div','_loaderView','ck-ai-chat-controls-loader-icon','fire','_createLoaderView','execute','3hMWxhb','AI_CHAT_STOP_GENERATING','set','locale','4082916tuZefd','7gTqxJn','ck-ai-chat-controls-loader-wrapper','9520317CLfces','setTemplate','abortPromptStream','2659496DJeSxm','56365310jJeoKV','9835352nTVHrl','4129660EAyMZo','AI_CHAT_IS_WRITING','ck-ai-chat-controls-loader','ck-reset_all','8206CFmKZF'];_0x35b2=function(){return _0x2dbb63;};return _0x35b2();}import{getTranslation as _0x4bc66d}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x516b17{[_0x461730(0x6a)];[_0x461730(0x70)];constructor(_0x33fb45){const _0x526f68=_0x461730;super(_0x33fb45),this[_0x526f68(0x6a)]=this[_0x526f68(0x6c)](),this[_0x526f68(0x70)]=this[_0x526f68(0x73)](),this[_0x526f68(0x7d)]({'tag':_0x526f68(0x6f),'attributes':{'class':['ck',_0x526f68(0x7b),_0x526f68(0x68)]},'children':[this[_0x526f68(0x70)],this[_0x526f68(0x6a)]]});}[_0x461730(0x6c)](){const _0x270fcc=_0x461730,_0x3f043a=new _0x3858fa(this[_0x270fcc(0x78)]);return _0x3f043a[_0x270fcc(0x77)]({'label':_0x4bc66d(this[_0x270fcc(0x78)],_0x270fcc(0x76)),'withText':!0x0,'class':_0x270fcc(0x6e),'icon':_0x37580a}),_0x3f043a['on'](_0x270fcc(0x74),()=>{const _0x1dc2f2=_0x270fcc;this[_0x1dc2f2(0x72)](_0x1dc2f2(0x7e));}),_0x3f043a;}[_0x461730(0x73)](){const _0x43380d=_0x461730,_0x22499a=new _0x516b17(this[_0x43380d(0x78)]);return _0x22499a[_0x43380d(0x7d)]({'tag':_0x43380d(0x6f),'attributes':{'class':[_0x43380d(0x67)]},'children':[{'tag':_0x43380d(0x6f),'attributes':{'class':[_0x43380d(0x71)]},'children':[{'tag':_0x43380d(0x6f),'attributes':{'class':[_0x43380d(0x6b)]}},{'tag':_0x43380d(0x6f),'attributes':{'class':[_0x43380d(0x6b)]}},{'tag':_0x43380d(0x6f),'attributes':{'class':[_0x43380d(0x6b)]}}]},{'text':_0x4bc66d(this[_0x43380d(0x78)],_0x43380d(0x66))}]}),_0x22499a;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe7273b=_0x3a46;(function(_0x919a3a,_0x76099b){const _0x10635f=_0x3a46,_0x3ff96d=_0x919a3a();while(!![]){try{const _0x3bea01=-parseInt(_0x10635f(0x14e))/0x1*(-parseInt(_0x10635f(0x155))/0x2)+-parseInt(_0x10635f(0x104))/0x3*(parseInt(_0x10635f(0x132))/0x4)+parseInt(_0x10635f(0x11a))/0x5+-parseInt(_0x10635f(0x110))/0x6*(parseInt(_0x10635f(0x14f))/0x7)+parseInt(_0x10635f(0x143))/0x8+parseInt(_0x10635f(0x144))/0x9*(parseInt(_0x10635f(0x112))/0xa)+-parseInt(_0x10635f(0x121))/0xb;if(_0x3bea01===_0x76099b)break;else _0x3ff96d['push'](_0x3ff96d['shift']());}catch(_0x5c00d3){_0x3ff96d['push'](_0x3ff96d['shift']());}}}(_0x2a1a,0xa41b9));import{Collection as _0x537450}from'ckeditor5/src/utils.js';function _0x2a1a(){const _0x337aa5=['bindTemplate','enableModelSelector','ck-ai-chat-controls__model-selection__item-name','clear','execute','Commands\x20are\x20not\x20implemented\x20yet.','set','listenTo','ck-ai-chat-controls__model-selection','ck-button__label','ck-ai-chat-controls__model-name','3bJPUfh','webSearch','name','locale','style','description','capabilities','source','toggleReasoning','log','ck-ai-chat-controls__model-selection__item-description','button','237390iebhxd','AI_CHAT_SEARCH_WEB','10GOxRAg','toLowerCase','_commandsButton','model','AI_CHAT_CAPABILITIES_YES','isVisible','ck-ai-chat__prompt-capabilities','tooltip','4853010oJaYCm','AI_CHAT_ENABLE_REASONING','ck-ai-chat-controls-button--commands','_createReasoningButton','activeModelName','activeModelId','withText','2146782jYLwoT','ck-hidden','content','_modelSelectionDropdown','enabled','AI_CHAT_CAPABILITIES_NO','setModelList','AI_CHAT_REASONING','setModel','buttonView','_modelNameView','ck-ai-chat-controls-button','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','bind','_reasoningButton','setReasoning','createCollection','4891868MABFKZ','span','text','webSearchActive','reasoning','isOn','isEnabled','selectModel','reasoningActive','agent','AI_CHAT_DISABLE_WEB_SEARCH','menuitemradio','label','toggleWebSearch','modelSelectorEnabled','_webSearchButton','startsWith','874336briOYL','10126683zIwHtj','_getCapabilityParts','_createWebSearchButton','fire','add','setTemplate','extendTemplate','AI_CHAT_COMMANDS','modelSelectorVisible','addMany','2739yMtsbA','140MoyEaK','_createCommandsButton','div','setWebSearch','ck-ai-chat-controls__model-selection__item-capabilities','disableModelSelector','494gouCEf','AI_CHAT_ENABLE_WEB_SEARCH','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_createModelSelectionDropdown','AI_CHAT_DISABLE_REASONING','length','_modelSelectionDropdownItems','_createModelNameView'];_0x2a1a=function(){return _0x337aa5;};return _0x2a1a();}import{IconAI as _0x4f14c5,IconBulb as _0x1037e7,IconWeb as _0xc1ef40}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x476fd4,ButtonLabelView as _0x555f04,ButtonView as _0x2b26a8,createDropdown as _0x550aa3,IconView as _0x39c9d9,UIModel as _0x4c0344,View as _0x2adc93}from'ckeditor5/src/ui.js';import{getTranslation as _0x4820f3}from'../../../aicore/utils/common-translations.js';const Ho=_0xe7273b(0x118),fo=_0xe7273b(0x12c),Mo=_0xe7273b(0x11c),Do=_0xe7273b(0x165),Wo=_0xe7273b(0x15f),yo=_0xe7273b(0x10e),Go=_0xe7273b(0x153),jo='n';function _0x3a46(_0x3d059c,_0x64705c){const _0x2a1a22=_0x2a1a();return _0x3a46=function(_0x3a4688,_0x14598c){_0x3a4688=_0x3a4688-0x103;let _0x1078b4=_0x2a1a22[_0x3a4688];return _0x1078b4;},_0x3a46(_0x3d059c,_0x64705c);}export class AIChatPromptCapabilitiesView extends _0x2adc93{[_0xe7273b(0x141)];[_0xe7273b(0x12f)];[_0xe7273b(0x114)];[_0xe7273b(0x124)];[_0xe7273b(0x15b)];[_0xe7273b(0x12b)];constructor(_0x37aca4){const _0x5441bb=_0xe7273b;super(_0x37aca4),this[_0x5441bb(0x163)](_0x5441bb(0x135),!0x1),this[_0x5441bb(0x163)](_0x5441bb(0x13a),!0x1),this[_0x5441bb(0x163)](_0x5441bb(0x14c),!0x0),this[_0x5441bb(0x163)](_0x5441bb(0x140),!0x0),this[_0x5441bb(0x163)](_0x5441bb(0x11f),null),this[_0x5441bb(0x163)](_0x5441bb(0x11e),null),this[_0x5441bb(0x124)]=this[_0x5441bb(0x158)](),this[_0x5441bb(0x12b)]=this[_0x5441bb(0x15c)](),this[_0x5441bb(0x141)]=this[_0x5441bb(0x146)](),this[_0x5441bb(0x12f)]=this[_0x5441bb(0x11d)](),this[_0x5441bb(0x114)]=this[_0x5441bb(0x150)](),this[_0x5441bb(0x124)][_0x5441bb(0x12a)][_0x5441bb(0x12e)](_0x5441bb(0x117))['to'](this,_0x5441bb(0x14c),_0x5a8f5d=>_0x5a8f5d),this[_0x5441bb(0x124)][_0x5441bb(0x12a)][_0x5441bb(0x12e)](_0x5441bb(0x119))['to'](this,_0x5441bb(0x140),_0x20391a=>_0x20391a?this[_0x5441bb(0x124)][_0x5441bb(0x12a)][_0x5441bb(0x13e)]:_0x4820f3(this[_0x5441bb(0x107)],_0x5441bb(0x157))),this[_0x5441bb(0x124)][_0x5441bb(0x12e)](_0x5441bb(0x138))['to'](this,_0x5441bb(0x140),_0x4b65cc=>_0x4b65cc),this[_0x5441bb(0x141)][_0x5441bb(0x12e)](_0x5441bb(0x137))['to'](this,_0x5441bb(0x135),_0x9a4553=>_0x9a4553),this[_0x5441bb(0x141)][_0x5441bb(0x12e)](_0x5441bb(0x120))['to'](this,_0x5441bb(0x14c),_0x2d5a0d=>!_0x2d5a0d),this[_0x5441bb(0x141)][_0x5441bb(0x12e)](_0x5441bb(0x119))['to'](this,_0x5441bb(0x135),_0x5985d6=>_0x4820f3(this[_0x5441bb(0x107)],_0x5985d6?_0x5441bb(0x13c):_0x5441bb(0x156))),this[_0x5441bb(0x12f)][_0x5441bb(0x12e)](_0x5441bb(0x137))['to'](this,_0x5441bb(0x13a),_0x5db870=>_0x5db870),this[_0x5441bb(0x12f)][_0x5441bb(0x12e)](_0x5441bb(0x120))['to'](this,_0x5441bb(0x14c),_0xed0fd4=>!_0xed0fd4),this[_0x5441bb(0x12f)][_0x5441bb(0x12e)](_0x5441bb(0x119))['to'](this,_0x5441bb(0x13a),_0x6f2ec1=>_0x4820f3(this[_0x5441bb(0x107)],_0x6f2ec1?_0x5441bb(0x159):_0x5441bb(0x11b))),this[_0x5441bb(0x149)]({'tag':_0x5441bb(0x151),'attributes':{'class':[Ho]},'children':[this[_0x5441bb(0x124)],this[_0x5441bb(0x12b)],this[_0x5441bb(0x141)],this[_0x5441bb(0x12f)],this[_0x5441bb(0x114)]]}),this[_0x5441bb(0x15b)]=new _0x537450(),_0x476fd4(this[_0x5441bb(0x124)],this[_0x5441bb(0x15b)]);}[_0xe7273b(0x127)](_0x4a3597,_0x54c18b){const _0x5db215=_0xe7273b;if(this[_0x5db215(0x163)](_0x5db215(0x14c),!(_0x54c18b&&_0x4a3597[_0x5db215(0x15a)]<=0x1)),this[_0x5db215(0x15b)][_0x5db215(0x160)](),_0x4a3597?.[_0x5db215(0x15a)])for(const _0x56b62b of _0x4a3597){const _0x543d70=new _0x4c0344({'label':_0x56b62b[_0x5db215(0x106)],'withText':!0x0,'role':_0x5db215(0x13d),'id':_0x56b62b['id'],'model':_0x56b62b});_0x543d70[_0x5db215(0x12e)](_0x5db215(0x137))['to'](this,_0x5db215(0x11f),_0x43aec5=>_0x43aec5===_0x56b62b['id']),this[_0x5db215(0x15b)][_0x5db215(0x148)]({'type':_0x5db215(0x10f),'model':_0x543d70,'labelView':new Ns(this[_0x5db215(0x107)],_0x56b62b)});}}[_0xe7273b(0x152)](_0x4b1a84){const _0xe15cd=_0xe7273b;this[_0xe15cd(0x163)](_0xe15cd(0x135),_0x4b1a84);}[_0xe7273b(0x130)](_0xab1e66){const _0x3045e7=_0xe7273b;this[_0x3045e7(0x163)](_0x3045e7(0x13a),_0xab1e66);}[_0xe7273b(0x129)](_0x5724e2){const _0x50ffe7=_0xe7273b;if(!_0x5724e2)return;this[_0x50ffe7(0x11f)]=_0x5724e2['id'],this[_0x50ffe7(0x11e)]=_0x5724e2[_0x50ffe7(0x106)]||_0x5724e2['id'],this[_0x50ffe7(0x124)][_0x50ffe7(0x12a)][_0x50ffe7(0x163)](_0x50ffe7(0x13e),_0x5724e2[_0x50ffe7(0x106)]),this[_0x50ffe7(0x124)][_0x50ffe7(0x12a)][_0x50ffe7(0x163)](_0x50ffe7(0x119),_0x5724e2[_0x50ffe7(0x106)]);const _0x6a8fa7=_0x5724e2[_0x50ffe7(0x10a)][_0x50ffe7(0x105)]?.[_0x50ffe7(0x125)]??!0x1;this[_0x50ffe7(0x163)](_0x50ffe7(0x135),!0x1),this[_0x50ffe7(0x141)][_0x50ffe7(0x163)](_0x50ffe7(0x137),!0x1),this[_0x50ffe7(0x141)][_0x50ffe7(0x163)](_0x50ffe7(0x138),_0x6a8fa7),this[_0x50ffe7(0x141)][_0x50ffe7(0x163)](_0x50ffe7(0x117),_0x6a8fa7);const _0x3955a9=_0x5724e2[_0x50ffe7(0x10a)][_0x50ffe7(0x136)]?.[_0x50ffe7(0x125)]??!0x1;this[_0x50ffe7(0x163)](_0x50ffe7(0x13a),!0x1),this[_0x50ffe7(0x12f)][_0x50ffe7(0x163)](_0x50ffe7(0x137),!0x1),this[_0x50ffe7(0x12f)][_0x50ffe7(0x163)](_0x50ffe7(0x138),_0x3955a9),this[_0x50ffe7(0x12f)][_0x50ffe7(0x163)](_0x50ffe7(0x117),_0x3955a9);}[_0xe7273b(0x15e)](){const _0x311840=_0xe7273b;this[_0x311840(0x163)](_0x311840(0x140),!0x0),this[_0x311840(0x163)](_0x311840(0x14c),!0x0);}[_0xe7273b(0x154)](_0x2d2d76){const _0x225928=_0xe7273b;this[_0x225928(0x163)](_0x225928(0x140),!0x1),_0x2d2d76&&this[_0x225928(0x163)](_0x225928(0x14c),!0x1);}[_0xe7273b(0x146)](){const _0x1c88b6=_0xe7273b,_0x489781=new _0x2b26a8();return _0x489781[_0x1c88b6(0x163)]({'label':_0x4820f3(this[_0x1c88b6(0x107)],_0x1c88b6(0x111)),'icon':_0xc1ef40,'class':fo,'isToggleable':!0x0,'tooltipPosition':jo}),_0x489781['on'](_0x1c88b6(0x161),()=>{const _0x4932f9=_0x1c88b6;this[_0x4932f9(0x147)](_0x4932f9(0x13f));}),_0x489781;}[_0xe7273b(0x11d)](){const _0x1686a0=_0xe7273b,_0x4e7ed0=new _0x2b26a8();return _0x4e7ed0[_0x1686a0(0x163)]({'label':_0x4820f3(this[_0x1686a0(0x107)],_0x1686a0(0x128)),'icon':_0x1037e7,'class':fo,'isToggleable':!0x0,'tooltipPosition':jo}),_0x4e7ed0['on'](_0x1686a0(0x161),()=>{const _0x109234=_0x1686a0;this[_0x109234(0x147)](_0x109234(0x10c));}),_0x4e7ed0;}[_0xe7273b(0x150)](){const _0xce9095=_0xe7273b,_0x26edbe=new _0x2b26a8();return _0x26edbe[_0xce9095(0x163)]({'label':_0x4820f3(this[_0xce9095(0x107)],_0xce9095(0x14b)),'icon':_0x4f14c5,'withText':!0x0,'class':fo,'isToggleable':!0x0,'tooltip':_0x4820f3(this[_0xce9095(0x107)],_0xce9095(0x14b)),'tooltipPosition':jo}),_0x26edbe[_0xce9095(0x14a)]({'attributes':{'class':[Mo]}}),_0x26edbe['on'](_0xce9095(0x161),()=>{const _0x3170c7=_0xce9095;console[_0x3170c7(0x10d)](_0x3170c7(0x162)),alert(_0x3170c7(0x162));}),_0x26edbe;}[_0xe7273b(0x158)](){const _0x14ce63=_0xe7273b,_0x217970=_0x550aa3(this[_0x14ce63(0x107)]);return _0x217970[_0x14ce63(0x163)]({'panelPosition':'ne','class':[Do]}),_0x217970[_0x14ce63(0x12a)][_0x14ce63(0x163)]({'label':_0x4820f3(this[_0x14ce63(0x107)],_0x14ce63(0x12d)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':jo}),this[_0x14ce63(0x164)](_0x217970,_0x14ce63(0x161),_0x4bd074=>{const _0x1ce9be=_0x14ce63;this[_0x1ce9be(0x147)](_0x1ce9be(0x139),_0x4bd074[_0x1ce9be(0x10b)][_0x1ce9be(0x115)]);}),_0x217970;}[_0xe7273b(0x15c)](){const _0x364708=_0xe7273b,_0x28bbda=new Yo(this[_0x364708(0x107)]);return _0x28bbda[_0x364708(0x12e)](_0x364708(0x134))['to'](this,_0x364708(0x11e),_0xf502cf=>_0xf502cf??''),_0x28bbda[_0x364708(0x12e)](_0x364708(0x117))['to'](this,_0x364708(0x14c),this,_0x364708(0x11e),(_0x8c94fe,_0x2c0cde)=>!_0x8c94fe&&!_0x2c0cde?.[_0x364708(0x113)]()[_0x364708(0x142)](_0x364708(0x13b))),_0x28bbda;}}class Ns extends _0x555f04{constructor(_0x5303f1,_0x365e24){const _0x5a28f7=_0xe7273b;super();const _0x3bd1bf=this[_0x5a28f7(0x15d)],_0x5e7ca6=this[_0x5a28f7(0x131)]();this[_0x5a28f7(0x149)]({'tag':_0x5a28f7(0x151),'attributes':{'class':['ck',_0x5a28f7(0x166)],'style':_0x3bd1bf['to'](_0x5a28f7(0x108)),'id':_0x3bd1bf['to']('id')},'children':[{'tag':_0x5a28f7(0x151),'attributes':{'class':[Wo]},'children':[{'text':_0x3bd1bf['to'](_0x5a28f7(0x134))}]},{'tag':_0x5a28f7(0x151),'attributes':{'class':[yo]},'children':[{'tag':_0x5a28f7(0x133),'children':[{'text':_0x365e24[_0x5a28f7(0x109)]}]}]},{'tag':_0x5a28f7(0x151),'attributes':{'class':[Go]},'children':_0x5e7ca6}]}),_0x5e7ca6[_0x5a28f7(0x14d)](this[_0x5a28f7(0x145)](_0x5303f1,_0xc1ef40,_0x5a28f7(0x111),_0x365e24[_0x5a28f7(0x10a)][_0x5a28f7(0x105)]?.[_0x5a28f7(0x125)]??!0x1)),_0x5e7ca6[_0x5a28f7(0x14d)](this[_0x5a28f7(0x145)](_0x5303f1,_0x1037e7,_0x5a28f7(0x128),_0x365e24[_0x5a28f7(0x10a)][_0x5a28f7(0x136)]?.[_0x5a28f7(0x125)]??!0x1));}[_0xe7273b(0x145)](_0xc13973,_0xfddaf2,_0x3ea181,_0x4f2404){const _0x32e8e8=_0xe7273b,_0x47a21d=new _0x39c9d9();_0x47a21d[_0x32e8e8(0x123)]=_0xfddaf2;const _0x460fc8=new _0x2adc93(_0xc13973);_0x460fc8[_0x32e8e8(0x149)]({'tag':_0x32e8e8(0x133),'children':[{'text':_0x4820f3(_0xc13973,_0x3ea181)+':\x20'}]});const _0x2d4eb1=new _0x2adc93(_0xc13973);return _0x2d4eb1[_0x32e8e8(0x149)]({'tag':_0x32e8e8(0x133),'children':[{'text':_0x4820f3(_0xc13973,_0x4f2404?_0x32e8e8(0x116):_0x32e8e8(0x126))}]}),[_0x47a21d,_0x460fc8,_0x2d4eb1];}}class Yo extends _0x2adc93{constructor(_0x4ec00b){const _0x5d2336=_0xe7273b;super(_0x4ec00b),this[_0x5d2336(0x163)](_0x5d2336(0x134),void 0x0),this[_0x5d2336(0x163)](_0x5d2336(0x117),!0x0);const _0x2f52fa=this[_0x5d2336(0x15d)];this[_0x5d2336(0x149)]({'tag':_0x5d2336(0x133),'attributes':{'class':['ck',_0x5d2336(0x103),_0x2f52fa['if'](_0x5d2336(0x117),_0x5d2336(0x122),_0xef7190=>!_0xef7190)]},'children':[{'text':_0x2f52fa['to'](_0x5d2336(0x134))}]});}}
23
+ const _0xd5577=_0x29a9;(function(_0x2da4e0,_0x538714){const _0x48deb6=_0x29a9,_0x341d1e=_0x2da4e0();while(!![]){try{const _0x2a15dd=-parseInt(_0x48deb6(0xf7))/0x1*(parseInt(_0x48deb6(0xf2))/0x2)+parseInt(_0x48deb6(0xef))/0x3+parseInt(_0x48deb6(0x127))/0x4*(-parseInt(_0x48deb6(0x120))/0x5)+-parseInt(_0x48deb6(0xda))/0x6+-parseInt(_0x48deb6(0x11c))/0x7*(-parseInt(_0x48deb6(0xf4))/0x8)+parseInt(_0x48deb6(0xec))/0x9+parseInt(_0x48deb6(0xf5))/0xa;if(_0x2a15dd===_0x538714)break;else _0x341d1e['push'](_0x341d1e['shift']());}catch(_0x1a1593){_0x341d1e['push'](_0x341d1e['shift']());}}}(_0x45c8,0x364ab));import{Collection as _0x425cee}from'ckeditor5/src/utils.js';import{IconAI as _0x51be6d,IconBulb as _0x262f1a,IconWeb as _0x236a58}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x4951a4,ButtonLabelView as _0x5b3b73,ButtonView as _0x502880,createDropdown as _0x404c91,IconView as _0xe71593,UIModel as _0x1e7e0b,View as _0x4a59f}from'ckeditor5/src/ui.js';import{getTranslation as _0x505da2}from'../../../aicore/utils/common-translations.js';function _0x45c8(){const _0x4dd25c=['tooltip','_getCapabilityParts','activeModelName','5lWaumN','_modelSelectionDropdownItems','webSearchActive','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','toggleWebSearch','AI_CHAT_REASONING','_commandsButton','752788tAUxbI','AI_CHAT_ENABLE_REASONING','ck-button__label','setModel','reasoning','startsWith','AI_CHAT_ENABLE_WEB_SEARCH','locale','_createModelSelectionDropdown','createCollection','set','withText','AI_CHAT_COMMANDS','label','add','ck-ai-chat__prompt-capabilities','capabilities','_createReasoningButton','setTemplate','setModelList','_modelSelectionDropdown','addMany','769272YGNptO','extendTemplate','_modelNameView','ck-ai-chat-controls__model-selection','execute','div','bind','fire','setReasoning','enabled','model','description','clear','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls__model-name','enableModelSelector','ck-hidden','bindTemplate','982926clvtSp','span','ck-ai-chat-controls-button--commands','253002LfQtWM','listenTo','button','834BkfcYq','Commands\x20are\x20not\x20implemented\x20yet.','80Vxpdxv','4063490YCPoiV','menuitemradio','147oyzhiC','_webSearchButton','isOn','isVisible','log','ck-ai-chat-controls__model-selection__item-capabilities','_createCommandsButton','AI_CHAT_SEARCH_WEB','_reasoningButton','ck-ai-chat-controls__model-selection__item-description','content','reasoningActive','source','setWebSearch','_createModelNameView','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','toLowerCase','name','toggleReasoning','_createWebSearchButton','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_CAPABILITIES_YES','isEnabled','activeModelId','agent','ck-ai-chat-controls-button','AI_CHAT_DISABLE_REASONING','modelSelectorEnabled','text','style','AI_CHAT_DISABLE_WEB_SEARCH','selectModel','modelSelectorVisible','buttonView','disableModelSelector','webSearch','length','133cCLvWd'];_0x45c8=function(){return _0x4dd25c;};return _0x45c8();}const Mo=_0xd5577(0xd3),Io=_0xd5577(0x110),Do=_0xd5577(0xee),Wo=_0xd5577(0xdd),yo=_0xd5577(0x10b),Go=_0xd5577(0x100),jo=_0xd5577(0xfc),Yo='n';function _0x29a9(_0x35a663,_0x58130a){const _0x45c84d=_0x45c8();return _0x29a9=function(_0x29a96c,_0x245fed){_0x29a96c=_0x29a96c-0xca;let _0x5a9531=_0x45c84d[_0x29a96c];return _0x5a9531;},_0x29a9(_0x35a663,_0x58130a);}export class AIChatPromptCapabilitiesView extends _0x4a59f{[_0xd5577(0xf8)];[_0xd5577(0xff)];[_0xd5577(0x126)];[_0xd5577(0xd8)];[_0xd5577(0x121)];[_0xd5577(0xdc)];constructor(_0x592743){const _0x191255=_0xd5577;super(_0x592743),this[_0x191255(0xce)](_0x191255(0x122),!0x1),this[_0x191255(0xce)](_0x191255(0x102),!0x1),this[_0x191255(0xce)](_0x191255(0x117),!0x0),this[_0x191255(0xce)](_0x191255(0x112),!0x0),this[_0x191255(0xce)](_0x191255(0x10e),null),this[_0x191255(0xce)](_0x191255(0x11f),null),this[_0x191255(0xd8)]=this[_0x191255(0xcc)](),this[_0x191255(0xdc)]=this[_0x191255(0x105)](),this[_0x191255(0xf8)]=this[_0x191255(0x10a)](),this[_0x191255(0xff)]=this[_0x191255(0xd5)](),this[_0x191255(0x126)]=this[_0x191255(0xfd)](),this[_0x191255(0xd8)][_0x191255(0x118)][_0x191255(0xe0)](_0x191255(0xfa))['to'](this,_0x191255(0x117),_0x3cc58b=>_0x3cc58b),this[_0x191255(0xd8)][_0x191255(0x118)][_0x191255(0xe0)](_0x191255(0x11d))['to'](this,_0x191255(0x112),_0x10e437=>_0x10e437?this[_0x191255(0xd8)][_0x191255(0x118)][_0x191255(0xd1)]:_0x505da2(this[_0x191255(0xcb)],_0x191255(0x123))),this[_0x191255(0xd8)][_0x191255(0xe0)](_0x191255(0x10d))['to'](this,_0x191255(0x112),_0x274335=>_0x274335),this[_0x191255(0xf8)][_0x191255(0xe0)](_0x191255(0xf9))['to'](this,_0x191255(0x122),_0x18a924=>_0x18a924),this[_0x191255(0xf8)][_0x191255(0xe0)](_0x191255(0xcf))['to'](this,_0x191255(0x117),_0x1fe43e=>!_0x1fe43e),this[_0x191255(0xf8)][_0x191255(0xe0)](_0x191255(0x11d))['to'](this,_0x191255(0x122),_0x2e3b66=>_0x505da2(this[_0x191255(0xcb)],_0x2e3b66?_0x191255(0x115):_0x191255(0xca))),this[_0x191255(0xff)][_0x191255(0xe0)](_0x191255(0xf9))['to'](this,_0x191255(0x102),_0x2ce2a4=>_0x2ce2a4),this[_0x191255(0xff)][_0x191255(0xe0)](_0x191255(0xcf))['to'](this,_0x191255(0x117),_0x323b9a=>!_0x323b9a),this[_0x191255(0xff)][_0x191255(0xe0)](_0x191255(0x11d))['to'](this,_0x191255(0x102),_0x4e500b=>_0x505da2(this[_0x191255(0xcb)],_0x4e500b?_0x191255(0x111):_0x191255(0x128))),this[_0x191255(0xd6)]({'tag':_0x191255(0xdf),'attributes':{'class':[Mo]},'children':[this[_0x191255(0xd8)],this[_0x191255(0xdc)],this[_0x191255(0xf8)],this[_0x191255(0xff)],this[_0x191255(0x126)]]}),this[_0x191255(0x121)]=new _0x425cee(),_0x4951a4(this[_0x191255(0xd8)],this[_0x191255(0x121)]);}[_0xd5577(0xd7)](_0x41d903,_0x30af9f){const _0x3c8a61=_0xd5577;if(this[_0x3c8a61(0xce)](_0x3c8a61(0x117),!(_0x30af9f&&_0x41d903[_0x3c8a61(0x11b)]<=0x1)),this[_0x3c8a61(0x121)][_0x3c8a61(0xe6)](),_0x41d903?.[_0x3c8a61(0x11b)])for(const _0x3ae019 of _0x41d903){const _0x40abdd=new _0x1e7e0b({'label':_0x3ae019[_0x3c8a61(0x108)],'withText':!0x0,'role':_0x3c8a61(0xf6),'id':_0x3ae019['id'],'model':_0x3ae019});_0x40abdd[_0x3c8a61(0xe0)](_0x3c8a61(0xf9))['to'](this,_0x3c8a61(0x10e),_0x5064dc=>_0x5064dc===_0x3ae019['id']),this[_0x3c8a61(0x121)][_0x3c8a61(0xd2)]({'type':_0x3c8a61(0xf1),'model':_0x40abdd,'labelView':new Hs(this[_0x3c8a61(0xcb)],_0x3ae019)});}}[_0xd5577(0x104)](_0x3bf65e){const _0x4aaaa7=_0xd5577;this[_0x4aaaa7(0xce)](_0x4aaaa7(0x122),_0x3bf65e);}[_0xd5577(0xe2)](_0x8b0f46){const _0x5222bf=_0xd5577;this[_0x5222bf(0xce)](_0x5222bf(0x102),_0x8b0f46);}[_0xd5577(0x12a)](_0x341e6e){const _0x460009=_0xd5577;if(!_0x341e6e)return;this[_0x460009(0x10e)]=_0x341e6e['id'],this[_0x460009(0x11f)]=_0x341e6e[_0x460009(0x108)]||_0x341e6e['id'],this[_0x460009(0xd8)][_0x460009(0x118)][_0x460009(0xce)](_0x460009(0xd1),_0x341e6e[_0x460009(0x108)]),this[_0x460009(0xd8)][_0x460009(0x118)][_0x460009(0xce)](_0x460009(0x11d),_0x341e6e[_0x460009(0x108)]);const _0x1d33fb=_0x341e6e[_0x460009(0xd4)][_0x460009(0x11a)]?.[_0x460009(0xe3)]??!0x1;this[_0x460009(0xce)](_0x460009(0x122),!0x1),this[_0x460009(0xf8)][_0x460009(0xce)](_0x460009(0xf9),!0x1),this[_0x460009(0xf8)][_0x460009(0xce)](_0x460009(0x10d),_0x1d33fb),this[_0x460009(0xf8)][_0x460009(0xce)](_0x460009(0xfa),_0x1d33fb);const _0x2eed38=_0x341e6e[_0x460009(0xd4)][_0x460009(0x12b)]?.[_0x460009(0xe3)]??!0x1;this[_0x460009(0xce)](_0x460009(0x102),!0x1),this[_0x460009(0xff)][_0x460009(0xce)](_0x460009(0xf9),!0x1),this[_0x460009(0xff)][_0x460009(0xce)](_0x460009(0x10d),_0x2eed38),this[_0x460009(0xff)][_0x460009(0xce)](_0x460009(0xfa),_0x2eed38);}[_0xd5577(0xe9)](){const _0x205c60=_0xd5577;this[_0x205c60(0xce)](_0x205c60(0x112),!0x0),this[_0x205c60(0xce)](_0x205c60(0x117),!0x0);}[_0xd5577(0x119)](_0x4080de){const _0xad9da0=_0xd5577;this[_0xad9da0(0xce)](_0xad9da0(0x112),!0x1),_0x4080de&&this[_0xad9da0(0xce)](_0xad9da0(0x117),!0x1);}[_0xd5577(0x10a)](){const _0x3d0dd1=_0xd5577,_0x51cd31=new _0x502880();return _0x51cd31[_0x3d0dd1(0xce)]({'label':_0x505da2(this[_0x3d0dd1(0xcb)],_0x3d0dd1(0xfe)),'icon':_0x236a58,'class':Io,'isToggleable':!0x0,'tooltipPosition':Yo}),_0x51cd31['on'](_0x3d0dd1(0xde),()=>{const _0x35f2d0=_0x3d0dd1;this[_0x35f2d0(0xe1)](_0x35f2d0(0x124));}),_0x51cd31;}[_0xd5577(0xd5)](){const _0xded50b=_0xd5577,_0x32562a=new _0x502880();return _0x32562a[_0xded50b(0xce)]({'label':_0x505da2(this[_0xded50b(0xcb)],_0xded50b(0x125)),'icon':_0x262f1a,'class':Io,'isToggleable':!0x0,'tooltipPosition':Yo}),_0x32562a['on'](_0xded50b(0xde),()=>{const _0x89f640=_0xded50b;this[_0x89f640(0xe1)](_0x89f640(0x109));}),_0x32562a;}[_0xd5577(0xfd)](){const _0x192fe2=_0xd5577,_0x39f9ca=new _0x502880();return _0x39f9ca[_0x192fe2(0xce)]({'label':_0x505da2(this[_0x192fe2(0xcb)],_0x192fe2(0xd0)),'icon':_0x51be6d,'withText':!0x0,'class':Io,'isToggleable':!0x0,'tooltip':_0x505da2(this[_0x192fe2(0xcb)],_0x192fe2(0xd0)),'tooltipPosition':Yo}),_0x39f9ca[_0x192fe2(0xdb)]({'attributes':{'class':[Do]}}),_0x39f9ca['on'](_0x192fe2(0xde),()=>{const _0x4572aa=_0x192fe2;console[_0x4572aa(0xfb)](_0x4572aa(0xf3)),alert(_0x4572aa(0xf3));}),_0x39f9ca;}[_0xd5577(0xcc)](){const _0x315adf=_0xd5577,_0x2fdbf5=_0x404c91(this[_0x315adf(0xcb)]);return _0x2fdbf5[_0x315adf(0xce)]({'panelPosition':'ne','class':[Wo]}),_0x2fdbf5[_0x315adf(0x118)][_0x315adf(0xce)]({'label':_0x505da2(this[_0x315adf(0xcb)],_0x315adf(0x106)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Yo}),this[_0x315adf(0xf0)](_0x2fdbf5,_0x315adf(0xde),_0x5cd10b=>{const _0xbbdcb2=_0x315adf;this[_0xbbdcb2(0xe1)](_0xbbdcb2(0x116),_0x5cd10b[_0xbbdcb2(0x103)][_0xbbdcb2(0xe4)]);}),_0x2fdbf5;}[_0xd5577(0x105)](){const _0x318e55=_0xd5577,_0x59902f=new qo(this[_0x318e55(0xcb)]);return _0x59902f[_0x318e55(0xe0)](_0x318e55(0x113))['to'](this,_0x318e55(0x11f),_0x4c1eb1=>_0x4c1eb1??''),_0x59902f[_0x318e55(0xe0)](_0x318e55(0xfa))['to'](this,_0x318e55(0x117),this,_0x318e55(0x11f),(_0x4f577b,_0x59025c)=>!_0x4f577b&&!_0x59025c?.[_0x318e55(0x107)]()[_0x318e55(0x12c)](_0x318e55(0x10f))),_0x59902f;}}class Hs extends _0x5b3b73{constructor(_0xaf909e,_0x325bd7){const _0x355752=_0xd5577;super();const _0xaf4f38=this[_0x355752(0xeb)],_0x5b448b=this[_0x355752(0xcd)]();this[_0x355752(0xd6)]({'tag':_0x355752(0xdf),'attributes':{'class':['ck',_0x355752(0x129)],'style':_0xaf4f38['to'](_0x355752(0x114)),'id':_0xaf4f38['to']('id')},'children':[{'tag':_0x355752(0xdf),'attributes':{'class':[yo]},'children':[{'text':_0xaf4f38['to'](_0x355752(0x113))}]},{'tag':_0x355752(0xdf),'attributes':{'class':[Go]},'children':[{'tag':_0x355752(0xed),'children':[{'text':_0x325bd7[_0x355752(0xe5)]}]}]},{'tag':_0x355752(0xdf),'attributes':{'class':[jo]},'children':_0x5b448b}]}),_0x5b448b[_0x355752(0xd9)](this[_0x355752(0x11e)](_0xaf909e,_0x236a58,_0x355752(0xfe),_0x325bd7[_0x355752(0xd4)][_0x355752(0x11a)]?.[_0x355752(0xe3)]??!0x1)),_0x5b448b[_0x355752(0xd9)](this[_0x355752(0x11e)](_0xaf909e,_0x262f1a,_0x355752(0x125),_0x325bd7[_0x355752(0xd4)][_0x355752(0x12b)]?.[_0x355752(0xe3)]??!0x1));}[_0xd5577(0x11e)](_0x55722a,_0x4d8055,_0x3c9c0e,_0xc0054f){const _0x532eda=_0xd5577,_0x4443b6=new _0xe71593();_0x4443b6[_0x532eda(0x101)]=_0x4d8055;const _0x520f76=new _0x4a59f(_0x55722a);_0x520f76[_0x532eda(0xd6)]({'tag':_0x532eda(0xed),'children':[{'text':_0x505da2(_0x55722a,_0x3c9c0e)+':\x20'}]});const _0x3983b6=new _0x4a59f(_0x55722a);return _0x3983b6[_0x532eda(0xd6)]({'tag':_0x532eda(0xed),'children':[{'text':_0x505da2(_0x55722a,_0xc0054f?_0x532eda(0x10c):_0x532eda(0xe7))}]}),[_0x4443b6,_0x520f76,_0x3983b6];}}class qo extends _0x4a59f{constructor(_0x44d483){const _0x24871b=_0xd5577;super(_0x44d483),this[_0x24871b(0xce)](_0x24871b(0x113),void 0x0),this[_0x24871b(0xce)](_0x24871b(0xfa),!0x0);const _0x593df1=this[_0x24871b(0xeb)];this[_0x24871b(0xd6)]({'tag':_0x24871b(0xed),'attributes':{'class':['ck',_0x24871b(0xe8),_0x593df1['if'](_0x24871b(0xfa),_0x24871b(0xea),_0x4d5f26=>!_0x4d5f26)]},'children':[{'text':_0x593df1['to'](_0x24871b(0x113))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4fecb4=_0x59ef;(function(_0x40d334,_0x55ee60){const _0x17168a=_0x59ef,_0x3abfd7=_0x40d334();while(!![]){try{const _0x465a8f=-parseInt(_0x17168a(0x174))/0x1*(-parseInt(_0x17168a(0x15e))/0x2)+parseInt(_0x17168a(0x16d))/0x3+parseInt(_0x17168a(0x150))/0x4+-parseInt(_0x17168a(0x14e))/0x5*(-parseInt(_0x17168a(0x155))/0x6)+parseInt(_0x17168a(0x15f))/0x7+parseInt(_0x17168a(0x13f))/0x8*(-parseInt(_0x17168a(0x15d))/0x9)+parseInt(_0x17168a(0x154))/0xa*(-parseInt(_0x17168a(0x144))/0xb);if(_0x465a8f===_0x55ee60)break;else _0x3abfd7['push'](_0x3abfd7['shift']());}catch(_0x7aa678){_0x3abfd7['push'](_0x3abfd7['shift']());}}}(_0x24f5,0x2a240));import{IconSubmit as _0x325c77}from'ckeditor5/src/icons.js';import{ButtonView as _0x49274e,AutocompleteView as _0x2e7f45,createLabeledTextarea as _0x5a0344}from'ckeditor5/src/ui.js';import{global as _0x482dce,isVisible as _0x2c48f6,Rect as _0x9e8d90,ResizeObserver as _0x51a10a}from'ckeditor5/src/utils.js';import{getTranslation as _0x564909}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x10b3ce}from'./aichatpromptsuggestionslistview.js';import{escape as _0x7b05e5}from'es-toolkit/compat';function _0x59ef(_0x40a92e,_0x17bd14){const _0x24f5e0=_0x24f5();return _0x59ef=function(_0x59efa7,_0x465bab){_0x59efa7=_0x59efa7-0x135;let _0x207f05=_0x24f5e0[_0x59efa7];return _0x207f05;},_0x59ef(_0x40a92e,_0x17bd14);}export class AIChatPromptInputView extends _0x2e7f45{[_0x4fecb4(0x156)];static [_0x4fecb4(0x164)]=0x1;static [_0x4fecb4(0x146)]=0xc;[_0x4fecb4(0x14c)];[_0x4fecb4(0x172)];constructor(_0x1c54df,_0x4cec80){const _0x1c21b2=_0x4fecb4;super(_0x1c54df,{'queryView':{'label':'','creator':_0x5a0344,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x10b3ce(_0x1c54df),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x1c21b2(0x14b)](_0x1c21b2(0x136),!0x0),this[_0x1c21b2(0x14b)](_0x1c21b2(0x13a),!0x1),this[_0x1c21b2(0x14c)]=_0x4cec80,this[_0x1c21b2(0x172)]=null,this[_0x1c21b2(0x135)][_0x1c21b2(0x13c)][_0x1c21b2(0x173)]=AIChatPromptInputView[_0x1c21b2(0x164)],this[_0x1c21b2(0x135)][_0x1c21b2(0x13c)][_0x1c21b2(0x148)]=AIChatPromptInputView[_0x1c21b2(0x146)],this[_0x1c21b2(0x135)][_0x1c21b2(0x137)][_0x1c21b2(0x13b)](this[_0x1c21b2(0x14c)]),this[_0x1c21b2(0x138)](),this[_0x1c21b2(0x14f)]({'attributes':{'class':['ck',_0x1c21b2(0x151)]}}),this[_0x1c21b2(0x156)]=this[_0x1c21b2(0x170)](),this[_0x1c21b2(0x156)][_0x1c21b2(0x157)](_0x1c21b2(0x161))['to'](this,_0x1c21b2(0x136),this,_0x1c21b2(0x13a),(_0x41e21f,_0x41745a)=>!_0x41e21f&&!_0x41745a),this[_0x1c21b2(0x142)][_0x1c21b2(0x13b)](this[_0x1c21b2(0x156)]);}[_0x4fecb4(0x16a)](){const _0x1a93a4=_0x4fecb4;super[_0x1a93a4(0x16a)](),this[_0x1a93a4(0x135)][_0x1a93a4(0x137)][_0x1a93a4(0x13b)](this[_0x1a93a4(0x156)]),this[_0x1a93a4(0x141)][_0x1a93a4(0x14b)](_0x1a93a4(0x14a),(_0x15f1d7,_0x89c188)=>{const _0x5f087d=_0x1a93a4;this[_0x5f087d(0x13a)]||this[_0x5f087d(0x136)]||_0x15f1d7[_0x5f087d(0x163)]==this[_0x5f087d(0x135)][_0x5f087d(0x13c)][_0x5f087d(0x14d)]&&(this[_0x5f087d(0x167)](),_0x89c188());}),this[_0x1a93a4(0x135)][_0x1a93a4(0x13c)]['on'](_0x1a93a4(0x171),()=>{const _0x4f7bed=_0x1a93a4;this[_0x4f7bed(0x136)]=''===this[_0x4f7bed(0x135)][_0x4f7bed(0x13c)][_0x4f7bed(0x14d)][_0x4f7bed(0x162)]?.[_0x4f7bed(0x143)]();});}[_0x4fecb4(0x147)](){const _0x4dd8f8=_0x4fecb4;super[_0x4dd8f8(0x147)](),this[_0x4dd8f8(0x172)]&&this[_0x4dd8f8(0x172)][_0x4dd8f8(0x147)]();}[_0x4fecb4(0x167)](){const _0x514419=_0x4fecb4,_0x4f3840=this[_0x514419(0x135)][_0x514419(0x13c)][_0x514419(0x14d)][_0x514419(0x162)]?.[_0x514419(0x143)]();if(!_0x4f3840)return this[_0x514419(0x135)][_0x514419(0x15a)]=_0x564909(this[_0x514419(0x139)],_0x514419(0x140)),void(this[_0x514419(0x135)][_0x514419(0x13c)][_0x514419(0x159)]=!0x0);this[_0x514419(0x135)][_0x514419(0x13c)][_0x514419(0x159)]=!0x1;const _0x275283=_0x7b05e5(_0x4f3840);this[_0x514419(0x152)](_0x514419(0x13e),_0x275283),this[_0x514419(0x135)][_0x514419(0x13c)][_0x514419(0x168)]();}[_0x4fecb4(0x166)](_0x5d36bc){const _0x31d150=_0x4fecb4;this[_0x31d150(0x135)][_0x31d150(0x13c)][_0x31d150(0x14b)](_0x31d150(0x15b),_0x5d36bc);}[_0x4fecb4(0x170)](){const _0x88d152=_0x4fecb4,_0x1e191d=new _0x49274e(this[_0x88d152(0x139)]);return _0x1e191d[_0x88d152(0x14b)]({'icon':_0x325c77,'label':_0x564909(this[_0x88d152(0x139)],_0x88d152(0x145)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x88d152(0x13d),'isEnabled':!0x1}),_0x1e191d['on'](_0x88d152(0x169),()=>{const _0x2cd7ff=_0x88d152;this[_0x2cd7ff(0x167)]();}),_0x1e191d;}[_0x4fecb4(0x153)](_0x1d162b){const _0x5427f2=_0x4fecb4;this[_0x5427f2(0x13a)]=_0x1d162b;}[_0x4fecb4(0x138)](){const _0x5687fc=_0x4fecb4,_0x1a62c1=this[_0x5687fc(0x139)],_0x593a1f=()=>{const _0x243b5d=_0x5687fc;_0x482dce[_0x243b5d(0x175)][_0x243b5d(0x16e)](()=>{const _0x16b0ae=_0x243b5d;if(_0x2c48f6(this[_0x16b0ae(0x14d)])){const _0x309887=new _0x9e8d90(this[_0x16b0ae(0x135)][_0x16b0ae(0x13c)][_0x16b0ae(0x14d)]),_0x4818a5=new _0x9e8d90(this[_0x16b0ae(0x14c)][_0x16b0ae(0x14d)]),_0x1a0a3d=_0x309887[_0x16b0ae(0x15c)],_0x5677fc=_0x16b0ae(0x158)===_0x1a62c1[_0x16b0ae(0x160)]?_0x16b0ae(0x165):_0x16b0ae(0x149);_0x309887[_0x16b0ae(0x16b)]();const _0x279ad0=_0x1a0a3d-_0x309887[_0x16b0ae(0x15c)]+0x1;this[_0x16b0ae(0x14c)][_0x16b0ae(0x14d)][_0x16b0ae(0x16c)][_0x5677fc]=_0x16b0ae(0x176)+(_0x1a0a3d-_0x4818a5[_0x16b0ae(0x15c)]-_0x279ad0)+_0x16b0ae(0x16f);}});};this[_0x5687fc(0x135)][_0x5687fc(0x13c)]['on'](_0x5687fc(0x171),_0x593a1f),this['on'](_0x5687fc(0x16a),()=>{const _0x2fb418=_0x5687fc;_0x593a1f(),this[_0x2fb418(0x172)]=new _0x51a10a(this[_0x2fb418(0x135)][_0x2fb418(0x13c)][_0x2fb418(0x14d)],()=>{_0x593a1f();});});}}function _0x24f5(){const _0x240822=['523008dIptfN','requestAnimationFrame','px\x20-\x20var(--ck-spacing-tiny))','_createSubmitButton','update','_queryViewResizeObserver','minRows','1bnqPkU','window','calc(','queryView','isEmpty','fieldWrapperChildren','_setUpAddContextButtonPositioning','locale','isUploadInProgress','add','fieldView','ck-ai-chat__prompt-submit-button','sendUserMessage','16PjjDxd','AI_CHAT_PROMPT_EMPTY_ERROR','keystrokes','focusableChildren','trim','44tEkDFU','AI_CHAT_LABEL_SUBMIT','MAX_ROWS','destroy','maxRows','left','enter','set','_addContextButtonView','element','76955Htmgom','extendTemplate','90864OAmgCE','ck-ai-chat__prompt-input','fire','setIsUploadInProgress','1133660mBWvso','66tmpzPu','submitButtonView','bind','rtl','hasError','errorText','placeholder','width','400941IrnFrZ','186028DiZMCj','1790621pWJLMK','uiLanguageDirection','isEnabled','value','target','MIN_ROWS','right','setPlaceholderText','submit','reset','execute','render','excludeScrollbarsAndBorders','style'];_0x24f5=function(){return _0x240822;};return _0x24f5();}
23
+ const _0x2e5abf=_0x5366;function _0x5366(_0x53900c,_0x155e14){const _0x2b73bf=_0x2b73();return _0x5366=function(_0x536618,_0x3c4ac7){_0x536618=_0x536618-0x13e;let _0x36252c=_0x2b73bf[_0x536618];return _0x36252c;},_0x5366(_0x53900c,_0x155e14);}(function(_0x584207,_0x48c065){const _0x13d8d1=_0x5366,_0x3f5b72=_0x584207();while(!![]){try{const _0x3cc2fd=parseInt(_0x13d8d1(0x157))/0x1+-parseInt(_0x13d8d1(0x16d))/0x2+-parseInt(_0x13d8d1(0x175))/0x3*(-parseInt(_0x13d8d1(0x17b))/0x4)+parseInt(_0x13d8d1(0x149))/0x5*(-parseInt(_0x13d8d1(0x17f))/0x6)+-parseInt(_0x13d8d1(0x14c))/0x7*(parseInt(_0x13d8d1(0x17e))/0x8)+-parseInt(_0x13d8d1(0x156))/0x9+parseInt(_0x13d8d1(0x17d))/0xa*(parseInt(_0x13d8d1(0x174))/0xb);if(_0x3cc2fd===_0x48c065)break;else _0x3f5b72['push'](_0x3f5b72['shift']());}catch(_0x128a72){_0x3f5b72['push'](_0x3f5b72['shift']());}}}(_0x2b73,0x53eb0));import{IconSubmit as _0x16ceb0}from'ckeditor5/src/icons.js';import{ButtonView as _0x1abfbc,AutocompleteView as _0x5d0e7a,createLabeledTextarea as _0x590406}from'ckeditor5/src/ui.js';import{global as _0x4c57d2,isVisible as _0x361c9d,Rect as _0x422ef2,ResizeObserver as _0x4759ea}from'ckeditor5/src/utils.js';function _0x2b73(){const _0x53adfc=['1674231dNluIW','execute','set','maxRows','minRows','render','4gFQTZC','left','10MkdXjo','68840kbTQvs','186vexETX','sendUserMessage','window','calc(','isEmpty','destroy','rtl','fieldView','hasError','update','locale','ck-ai-chat__prompt-input','46015evbbco','_setUpAddContextButtonPositioning','MIN_ROWS','119drQntt','extendTemplate','add','ck-ai-chat__prompt-submit-button','_queryViewResizeObserver','reset','queryView','setIsUploadInProgress','trim','isUploadInProgress','5880906ATdXAy','232439FrfPIv','target','px\x20-\x20var(--ck-spacing-tiny))','uiLanguageDirection','style','keystrokes','value','errorText','_createSubmitButton','enter','fieldWrapperChildren','focusableChildren','placeholder','fire','submitButtonView','AI_CHAT_PROMPT_EMPTY_ERROR','excludeScrollbarsAndBorders','submit','right','MAX_ROWS','requestAnimationFrame','AI_CHAT_LABEL_SUBMIT','599204XrZeps','bind','width','isEnabled','element','_addContextButtonView','setPlaceholderText','10316086UlKnhb'];_0x2b73=function(){return _0x53adfc;};return _0x2b73();}import{getTranslation as _0x1c5c8e}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x44997f}from'./aichatpromptsuggestionslistview.js';import{escape as _0x531be1}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x5d0e7a{[_0x2e5abf(0x165)];static [_0x2e5abf(0x14b)]=0x1;static [_0x2e5abf(0x16a)]=0xc;[_0x2e5abf(0x172)];[_0x2e5abf(0x150)];constructor(_0x153e41,_0x304794){const _0x5b32d7=_0x2e5abf;super(_0x153e41,{'queryView':{'label':'','creator':_0x590406,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x44997f(_0x153e41),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x5b32d7(0x177)](_0x5b32d7(0x141),!0x0),this[_0x5b32d7(0x177)](_0x5b32d7(0x155),!0x1),this[_0x5b32d7(0x172)]=_0x304794,this[_0x5b32d7(0x150)]=null,this[_0x5b32d7(0x152)][_0x5b32d7(0x144)][_0x5b32d7(0x179)]=AIChatPromptInputView[_0x5b32d7(0x14b)],this[_0x5b32d7(0x152)][_0x5b32d7(0x144)][_0x5b32d7(0x178)]=AIChatPromptInputView[_0x5b32d7(0x16a)],this[_0x5b32d7(0x152)][_0x5b32d7(0x161)][_0x5b32d7(0x14e)](this[_0x5b32d7(0x172)]),this[_0x5b32d7(0x14a)](),this[_0x5b32d7(0x14d)]({'attributes':{'class':['ck',_0x5b32d7(0x148)]}}),this[_0x5b32d7(0x165)]=this[_0x5b32d7(0x15f)](),this[_0x5b32d7(0x165)][_0x5b32d7(0x16e)](_0x5b32d7(0x170))['to'](this,_0x5b32d7(0x141),this,_0x5b32d7(0x155),(_0x23958b,_0x5ea733)=>!_0x23958b&&!_0x5ea733),this[_0x5b32d7(0x162)][_0x5b32d7(0x14e)](this[_0x5b32d7(0x165)]);}[_0x2e5abf(0x17a)](){const _0x1240f0=_0x2e5abf;super[_0x1240f0(0x17a)](),this[_0x1240f0(0x152)][_0x1240f0(0x161)][_0x1240f0(0x14e)](this[_0x1240f0(0x165)]),this[_0x1240f0(0x15c)][_0x1240f0(0x177)](_0x1240f0(0x160),(_0xa558fa,_0x5ddaea)=>{const _0x31f189=_0x1240f0;this[_0x31f189(0x155)]||this[_0x31f189(0x141)]||_0xa558fa[_0x31f189(0x158)]==this[_0x31f189(0x152)][_0x31f189(0x144)][_0x31f189(0x171)]&&(this[_0x31f189(0x168)](),_0x5ddaea());}),this[_0x1240f0(0x152)][_0x1240f0(0x144)]['on'](_0x1240f0(0x146),()=>{const _0xbf93ef=_0x1240f0;this[_0xbf93ef(0x141)]=''===this[_0xbf93ef(0x152)][_0xbf93ef(0x144)][_0xbf93ef(0x171)][_0xbf93ef(0x15d)]?.[_0xbf93ef(0x154)]();});}[_0x2e5abf(0x142)](){const _0x4407a7=_0x2e5abf;super[_0x4407a7(0x142)](),this[_0x4407a7(0x150)]&&this[_0x4407a7(0x150)][_0x4407a7(0x142)]();}[_0x2e5abf(0x168)](){const _0x3ba159=_0x2e5abf,_0x5f2a42=this[_0x3ba159(0x152)][_0x3ba159(0x144)][_0x3ba159(0x171)][_0x3ba159(0x15d)]?.[_0x3ba159(0x154)]();if(!_0x5f2a42)return this[_0x3ba159(0x152)][_0x3ba159(0x15e)]=_0x1c5c8e(this[_0x3ba159(0x147)],_0x3ba159(0x166)),void(this[_0x3ba159(0x152)][_0x3ba159(0x144)][_0x3ba159(0x145)]=!0x0);this[_0x3ba159(0x152)][_0x3ba159(0x144)][_0x3ba159(0x145)]=!0x1;const _0x1dd487=_0x531be1(_0x5f2a42);this[_0x3ba159(0x164)](_0x3ba159(0x13e),_0x1dd487),this[_0x3ba159(0x152)][_0x3ba159(0x144)][_0x3ba159(0x151)]();}[_0x2e5abf(0x173)](_0x394516){const _0x4df3da=_0x2e5abf;this[_0x4df3da(0x152)][_0x4df3da(0x144)][_0x4df3da(0x177)](_0x4df3da(0x163),_0x394516);}[_0x2e5abf(0x15f)](){const _0x552384=_0x2e5abf,_0x2f507f=new _0x1abfbc(this[_0x552384(0x147)]);return _0x2f507f[_0x552384(0x177)]({'icon':_0x16ceb0,'label':_0x1c5c8e(this[_0x552384(0x147)],_0x552384(0x16c)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x552384(0x14f),'isEnabled':!0x1}),_0x2f507f['on'](_0x552384(0x176),()=>{const _0x5edcdb=_0x552384;this[_0x5edcdb(0x168)]();}),_0x2f507f;}[_0x2e5abf(0x153)](_0x2d77e3){const _0x1c9db0=_0x2e5abf;this[_0x1c9db0(0x155)]=_0x2d77e3;}[_0x2e5abf(0x14a)](){const _0x337e41=_0x2e5abf,_0x5e6a14=this[_0x337e41(0x147)],_0x4f7260=()=>{const _0x29df0e=_0x337e41;_0x4c57d2[_0x29df0e(0x13f)][_0x29df0e(0x16b)](()=>{const _0x280932=_0x29df0e;if(_0x361c9d(this[_0x280932(0x171)])){const _0x16c7df=new _0x422ef2(this[_0x280932(0x152)][_0x280932(0x144)][_0x280932(0x171)]),_0x41da66=new _0x422ef2(this[_0x280932(0x172)][_0x280932(0x171)]),_0x36f110=_0x16c7df[_0x280932(0x16f)],_0x3c5816=_0x280932(0x143)===_0x5e6a14[_0x280932(0x15a)]?_0x280932(0x169):_0x280932(0x17c);_0x16c7df[_0x280932(0x167)]();const _0x3c5c8a=_0x36f110-_0x16c7df[_0x280932(0x16f)]+0x1;this[_0x280932(0x172)][_0x280932(0x171)][_0x280932(0x15b)][_0x3c5816]=_0x280932(0x140)+(_0x36f110-_0x41da66[_0x280932(0x16f)]-_0x3c5c8a)+_0x280932(0x159);}});};this[_0x337e41(0x152)][_0x337e41(0x144)]['on'](_0x337e41(0x146),_0x4f7260),this['on'](_0x337e41(0x17a),()=>{const _0x201281=_0x337e41;_0x4f7260(),this[_0x201281(0x150)]=new _0x4759ea(this[_0x201281(0x152)][_0x201281(0x144)][_0x201281(0x171)],()=>{_0x4f7260();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2bd467=_0x4b86;(function(_0x4db324,_0xec9d02){const _0x2a11f1=_0x4b86,_0x149974=_0x4db324();while(!![]){try{const _0x24280d=parseInt(_0x2a11f1(0x9b))/0x1*(parseInt(_0x2a11f1(0xa6))/0x2)+parseInt(_0x2a11f1(0x9d))/0x3*(-parseInt(_0x2a11f1(0x9c))/0x4)+parseInt(_0x2a11f1(0xa1))/0x5+parseInt(_0x2a11f1(0xa4))/0x6*(parseInt(_0x2a11f1(0x98))/0x7)+parseInt(_0x2a11f1(0x99))/0x8*(-parseInt(_0x2a11f1(0xa5))/0x9)+parseInt(_0x2a11f1(0xa0))/0xa*(-parseInt(_0x2a11f1(0x9f))/0xb)+-parseInt(_0x2a11f1(0xa2))/0xc;if(_0x24280d===_0xec9d02)break;else _0x149974['push'](_0x149974['shift']());}catch(_0x19f473){_0x149974['push'](_0x149974['shift']());}}}(_0x5aad,0xe1cfd));function _0x5aad(){const _0x396516=['3459141OaukRJ','46976GaZlox','items','38sSDYKx','1068948cSqEJL','12bWuMVL','filter','37334YweyoK','510VMFvNl','7681025sGVzGo','5910516XDsXRx','length','6EnDwLE','558fHOHUA','52274wDBOKu'];_0x5aad=function(){return _0x396516;};return _0x5aad();}function _0x4b86(_0x27044a,_0x703e48){const _0x5aad55=_0x5aad();return _0x4b86=function(_0x4b8602,_0x347c14){_0x4b8602=_0x4b8602-0x98;let _0x1bf6ca=_0x5aad55[_0x4b8602];return _0x1bf6ca;},_0x4b86(_0x27044a,_0x703e48);}import{ListView as _0x40b81e}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x40b81e{[_0x2bd467(0x9e)](){const _0x2e4b1d=_0x2bd467;let _0x34adb9=0x0;for(const _0x57525d of this[_0x2e4b1d(0x9a)])_0x34adb9+=_0x57525d[_0x2e4b1d(0x9a)][_0x2e4b1d(0xa3)];return{'resultsCount':_0x34adb9,'totalItemsCount':_0x34adb9};}}
23
+ function _0x79c4(_0x1ff80b,_0x2d0fef){const _0x212ece=_0x212e();return _0x79c4=function(_0x79c4e2,_0x1f80ea){_0x79c4e2=_0x79c4e2-0xef;let _0x8f4fd7=_0x212ece[_0x79c4e2];return _0x8f4fd7;},_0x79c4(_0x1ff80b,_0x2d0fef);}const _0x10dd15=_0x79c4;function _0x212e(){const _0x34a492=['2549141zqapHs','length','310038sAUqRI','65GUhJuB','10XJpQTT','2399NHbSWh','8764450PNDeLG','items','4376JQNkVs','10860MWNnfT','1158fLhZBe','filter','22JpwvkL','8864aqypay','7173DxMQiz'];_0x212e=function(){return _0x34a492;};return _0x212e();}(function(_0x715709,_0x17ff1f){const _0x16a9ac=_0x79c4,_0x109007=_0x715709();while(!![]){try{const _0x48eeb7=-parseInt(_0x16a9ac(0xfd))/0x1*(-parseInt(_0x16a9ac(0xfc))/0x2)+-parseInt(_0x16a9ac(0xf3))/0x3*(parseInt(_0x16a9ac(0xf6))/0x4)+parseInt(_0x16a9ac(0xfb))/0x5*(parseInt(_0x16a9ac(0xfa))/0x6)+parseInt(_0x16a9ac(0xf8))/0x7+parseInt(_0x16a9ac(0xf1))/0x8*(-parseInt(_0x16a9ac(0xf7))/0x9)+parseInt(_0x16a9ac(0xef))/0xa+-parseInt(_0x16a9ac(0xf5))/0xb*(parseInt(_0x16a9ac(0xf2))/0xc);if(_0x48eeb7===_0x17ff1f)break;else _0x109007['push'](_0x109007['shift']());}catch(_0x24d633){_0x109007['push'](_0x109007['shift']());}}}(_0x212e,0x9a1a7));import{ListView as _0x1707ce}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x1707ce{[_0x10dd15(0xf4)](){const _0x430730=_0x10dd15;let _0x279cad=0x0;for(const _0x99b4f1 of this[_0x430730(0xf0)])_0x279cad+=_0x99b4f1[_0x430730(0xf0)][_0x430730(0xf9)];return{'resultsCount':_0x279cad,'totalItemsCount':_0x279cad};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x598bda=_0x58aa;(function(_0x691335,_0x4b6674){const _0xa329db=_0x58aa,_0x2216e4=_0x691335();while(!![]){try{const _0x4584eb=parseInt(_0xa329db(0x157))/0x1*(-parseInt(_0xa329db(0x161))/0x2)+-parseInt(_0xa329db(0x165))/0x3+parseInt(_0xa329db(0x162))/0x4*(parseInt(_0xa329db(0x150))/0x5)+parseInt(_0xa329db(0x15b))/0x6+-parseInt(_0xa329db(0x173))/0x7+parseInt(_0xa329db(0x168))/0x8+parseInt(_0xa329db(0x160))/0x9;if(_0x4584eb===_0x4b6674)break;else _0x2216e4['push'](_0x2216e4['shift']());}catch(_0x16faa5){_0x2216e4['push'](_0x2216e4['shift']());}}}(_0x5593,0xbb7b0));import{HighlightedTextView as _0x4ef482,IconView as _0x44f5ff,ListItemView as _0x2efefa}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x35b257}from'es-toolkit/compat';import{AIContextItemType as _0x338cca}from'../../../../aicore/model/aicontext.js';function _0x5593(){const _0x249da1=['render','19800819iroZfS','5332XnfOqX','13664RtlNip','isVisible','ck-ai-chat-resources__item-title','2535093rsOrMe','label','updateResourceState','1388344QCQKkT','div','_createTitleView','isInContext','setTemplate','span','ck-ai-chat-resources__item','execute','ck-ai-chat-resources__item__icon','_titleView','getResourceIcon','10421705CDwkJo','type','URL','text','resource','DOCUMENT','_iconView','highlightText','2205KwOCgk','content','set','FILE','ck-hidden','trim','bindTemplate','388UGikwH','_createIconView','_updateIcon','_setupTemplate','1536504BCWagS','extendTemplate','TEXT','ck-ai-chat-resources__item--in-context'];_0x5593=function(){return _0x249da1;};return _0x5593();}import{IconFileUpload as _0x575434,IconCheck as _0x46258a,IconDocument as _0x2311e6,IconDocumentOutline as _0x4b80fc,IconLink as _0x2fc52c}from'@ckeditor/ckeditor5-icons';const Tr=_0x598bda(0x16e),qr=_0x598bda(0x15e),zr=_0x598bda(0x164),Br=_0x598bda(0x170);function _0x58aa(_0x33babc,_0x41b2c3){const _0x55930a=_0x5593();return _0x58aa=function(_0x58aa80,_0x36e58b){_0x58aa80=_0x58aa80-0x14a;let _0x3a1cc1=_0x55930a[_0x58aa80];return _0x3a1cc1;},_0x58aa(_0x33babc,_0x41b2c3);}export class AIChatResourceListItemView extends _0x2efefa{[_0x598bda(0x14c)];[_0x598bda(0x171)];[_0x598bda(0x14e)];constructor(_0x2db7de,_0x35053c){const _0x46126d=_0x598bda;super(_0x2db7de),this[_0x46126d(0x14c)]=_0x35053c,this[_0x46126d(0x152)](_0x46126d(0x16b),!!_0x35053c[_0x46126d(0x16b)]),this[_0x46126d(0x171)]=this[_0x46126d(0x16a)](),this[_0x46126d(0x14e)]=this[_0x46126d(0x158)](),this[_0x46126d(0x15a)]();}[_0x598bda(0x15f)](){const _0x926ec4=_0x598bda;super[_0x926ec4(0x15f)]();}[_0x598bda(0x172)](_0x5843e4){const _0x15df6b=_0x598bda;if(_0x5843e4[_0x15df6b(0x16b)])return _0x46258a;switch(_0x5843e4[_0x15df6b(0x174)]){case _0x338cca[_0x15df6b(0x14d)]:return _0x2311e6;case _0x338cca[_0x15df6b(0x14a)]:return _0x2fc52c;case _0x338cca[_0x15df6b(0x153)]:case _0x338cca[_0x15df6b(0x15d)]:return _0x575434;default:return _0x4b80fc;}}[_0x598bda(0x14f)](_0x5549d0){const _0xff7e31=_0x598bda;if(!_0x5549d0||''===_0x5549d0[_0xff7e31(0x155)]())return void this[_0xff7e31(0x171)][_0xff7e31(0x14f)](null);const _0x40b786=new RegExp(_0x35b257(_0x5549d0),'gi');this[_0xff7e31(0x171)][_0xff7e31(0x14f)](_0x40b786);}[_0x598bda(0x167)](_0x219319){const _0x1db7d0=_0x598bda;this[_0x1db7d0(0x14c)][_0x1db7d0(0x16b)]=_0x219319,this[_0x1db7d0(0x16b)]=_0x219319,this[_0x1db7d0(0x159)]();}[_0x598bda(0x16a)](){const _0x361542=_0x598bda,_0x2c412a=new _0x4ef482();return _0x2c412a[_0x361542(0x14b)]=this[_0x361542(0x14c)][_0x361542(0x166)],_0x2c412a[_0x361542(0x15c)]({'tag':_0x361542(0x16d),'attributes':{'class':[zr]}}),_0x2c412a;}[_0x598bda(0x158)](){const _0xd78bb6=_0x598bda,_0x1ee533=new _0x44f5ff();return _0x1ee533[_0xd78bb6(0x151)]=this[_0xd78bb6(0x172)](this[_0xd78bb6(0x14c)]),_0x1ee533;}[_0x598bda(0x15a)](){const _0x49f281=_0x598bda,_0x3dc149=this[_0x49f281(0x156)];this[_0x49f281(0x16c)]({'tag':_0x49f281(0x169),'attributes':{'class':[Tr,_0x3dc149['if'](_0x49f281(0x163),_0x49f281(0x154),_0x148d94=>!_0x148d94),_0x3dc149['if'](_0x49f281(0x16b),qr)]},'children':[{'tag':_0x49f281(0x169),'attributes':{'class':[Br]},'children':[this[_0x49f281(0x14e)]]},this[_0x49f281(0x171)]],'on':{'click':_0x3dc149['to'](_0x49f281(0x16f))}});}[_0x598bda(0x159)](){const _0x26fe48=_0x598bda;this[_0x26fe48(0x14e)][_0x26fe48(0x151)]=this[_0x26fe48(0x172)](this[_0x26fe48(0x14c)]);}}
23
+ const _0x2ab23f=_0x26ff;(function(_0xd99a5c,_0x2031be){const _0x2c1b6f=_0x26ff,_0x250f70=_0xd99a5c();while(!![]){try{const _0x55a003=parseInt(_0x2c1b6f(0x131))/0x1+parseInt(_0x2c1b6f(0x10f))/0x2*(parseInt(_0x2c1b6f(0x12b))/0x3)+-parseInt(_0x2c1b6f(0x125))/0x4*(-parseInt(_0x2c1b6f(0x138))/0x5)+parseInt(_0x2c1b6f(0x11a))/0x6+-parseInt(_0x2c1b6f(0x137))/0x7*(parseInt(_0x2c1b6f(0x123))/0x8)+parseInt(_0x2c1b6f(0x130))/0x9+-parseInt(_0x2c1b6f(0x124))/0xa;if(_0x55a003===_0x2031be)break;else _0x250f70['push'](_0x250f70['shift']());}catch(_0x23f486){_0x250f70['push'](_0x250f70['shift']());}}}(_0x2e3b,0x897f3));function _0x2e3b(){const _0x393572=['6356394clgOwG','getResourceIcon','_iconView','type','execute','isInContext','highlightText','ck-ai-chat-resources__item--in-context','extendTemplate','64cuDEYz','9143970kasAOt','8VdVCIC','ck-ai-chat-resources__item-title','FILE','_createTitleView','_setupTemplate','div','1226937sGihQT','label','DOCUMENT','_updateIcon','trim','1578951omeYqE','343539UMTMFA','URL','resource','isVisible','updateResourceState','text','611828JxAMMT','473650pMcXgb','span','ck-ai-chat-resources__item','2iSYAQw','_createIconView','_titleView','set','bindTemplate','content','setTemplate','render','TEXT','ck-hidden','ck-ai-chat-resources__item__icon'];_0x2e3b=function(){return _0x393572;};return _0x2e3b();}import{HighlightedTextView as _0x45e3fd,IconView as _0x3c9ce0,ListItemView as _0x4d378d}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x251e83}from'es-toolkit/compat';import{AIContextItemType as _0x4a47eb}from'../../../../aicore/model/aicontext.js';function _0x26ff(_0x8c4570,_0x3db4bb){const _0x2e3b47=_0x2e3b();return _0x26ff=function(_0x26ff03,_0x1ab3a6){_0x26ff03=_0x26ff03-0x10f;let _0x40c6d1=_0x2e3b47[_0x26ff03];return _0x40c6d1;},_0x26ff(_0x8c4570,_0x3db4bb);}import{IconFileUpload as _0x98b87e,IconCheck as _0x148b7f,IconDocument as _0x41b1e6,IconDocumentOutline as _0x308c12,IconLink as _0x9217c1}from'@ckeditor/ckeditor5-icons';const Tr=_0x2ab23f(0x13a),qr=_0x2ab23f(0x121),zr=_0x2ab23f(0x126),Br=_0x2ab23f(0x119);export class AIChatResourceListItemView extends _0x4d378d{[_0x2ab23f(0x133)];[_0x2ab23f(0x111)];[_0x2ab23f(0x11c)];constructor(_0x17690f,_0x428a4e){const _0x3b8371=_0x2ab23f;super(_0x17690f),this[_0x3b8371(0x133)]=_0x428a4e,this[_0x3b8371(0x112)](_0x3b8371(0x11f),!!_0x428a4e[_0x3b8371(0x11f)]),this[_0x3b8371(0x111)]=this[_0x3b8371(0x128)](),this[_0x3b8371(0x11c)]=this[_0x3b8371(0x110)](),this[_0x3b8371(0x129)]();}[_0x2ab23f(0x116)](){const _0xc1c6f4=_0x2ab23f;super[_0xc1c6f4(0x116)]();}[_0x2ab23f(0x11b)](_0x51d664){const _0x115f12=_0x2ab23f;if(_0x51d664[_0x115f12(0x11f)])return _0x148b7f;switch(_0x51d664[_0x115f12(0x11d)]){case _0x4a47eb[_0x115f12(0x12d)]:return _0x41b1e6;case _0x4a47eb[_0x115f12(0x132)]:return _0x9217c1;case _0x4a47eb[_0x115f12(0x127)]:case _0x4a47eb[_0x115f12(0x117)]:return _0x98b87e;default:return _0x308c12;}}[_0x2ab23f(0x120)](_0xaae227){const _0x8b387d=_0x2ab23f;if(!_0xaae227||''===_0xaae227[_0x8b387d(0x12f)]())return void this[_0x8b387d(0x111)][_0x8b387d(0x120)](null);const _0x2d7057=new RegExp(_0x251e83(_0xaae227),'gi');this[_0x8b387d(0x111)][_0x8b387d(0x120)](_0x2d7057);}[_0x2ab23f(0x135)](_0xc96218){const _0x36664d=_0x2ab23f;this[_0x36664d(0x133)][_0x36664d(0x11f)]=_0xc96218,this[_0x36664d(0x11f)]=_0xc96218,this[_0x36664d(0x12e)]();}[_0x2ab23f(0x128)](){const _0x737ca7=_0x2ab23f,_0x3f8f2b=new _0x45e3fd();return _0x3f8f2b[_0x737ca7(0x136)]=this[_0x737ca7(0x133)][_0x737ca7(0x12c)],_0x3f8f2b[_0x737ca7(0x122)]({'tag':_0x737ca7(0x139),'attributes':{'class':[zr]}}),_0x3f8f2b;}[_0x2ab23f(0x110)](){const _0xc5ad1a=_0x2ab23f,_0x306740=new _0x3c9ce0();return _0x306740[_0xc5ad1a(0x114)]=this[_0xc5ad1a(0x11b)](this[_0xc5ad1a(0x133)]),_0x306740;}[_0x2ab23f(0x129)](){const _0x2e98eb=_0x2ab23f,_0x564269=this[_0x2e98eb(0x113)];this[_0x2e98eb(0x115)]({'tag':_0x2e98eb(0x12a),'attributes':{'class':[Tr,_0x564269['if'](_0x2e98eb(0x134),_0x2e98eb(0x118),_0xbf8bd1=>!_0xbf8bd1),_0x564269['if'](_0x2e98eb(0x11f),qr)]},'children':[{'tag':_0x2e98eb(0x12a),'attributes':{'class':[Br]},'children':[this[_0x2e98eb(0x11c)]]},this[_0x2e98eb(0x111)]],'on':{'click':_0x564269['to'](_0x2e98eb(0x11e))}});}[_0x2ab23f(0x12e)](){const _0x139923=_0x2ab23f;this[_0x139923(0x11c)][_0x139923(0x114)]=this[_0x139923(0x11b)](this[_0x139923(0x133)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4000ea=_0x3778;(function(_0x59a56b,_0x2e1560){const _0x5b8a75=_0x3778,_0x4f4cce=_0x59a56b();while(!![]){try{const _0x14f1f3=parseInt(_0x5b8a75(0x14b))/0x1+parseInt(_0x5b8a75(0x13b))/0x2*(parseInt(_0x5b8a75(0x150))/0x3)+-parseInt(_0x5b8a75(0x157))/0x4+-parseInt(_0x5b8a75(0x139))/0x5*(parseInt(_0x5b8a75(0x15d))/0x6)+-parseInt(_0x5b8a75(0x144))/0x7+-parseInt(_0x5b8a75(0x137))/0x8*(parseInt(_0x5b8a75(0x126))/0x9)+parseInt(_0x5b8a75(0x13d))/0xa;if(_0x14f1f3===_0x2e1560)break;else _0x4f4cce['push'](_0x4f4cce['shift']());}catch(_0x3448dc){_0x4f4cce['push'](_0x4f4cce['shift']());}}}(_0x2f61,0xc1b91));function _0x2f61(){const _0x127a0c=['source','values','show','3027488ryhNoX','onResourceSelected','setResources','ck-button-icon\x20ck-button-back','loadSourceResources','label','6kJrTqq','get','addResourceToContext','9zXJNES','_createBalloonResourcesView','onBackToContext','_locale','_sourceResourceBalloons','ck-ai-chat-context-controls__source-balloon-panel','element','updateResourceState','getTargetElement','resource','_createBalloonHeader','_createSourceResourceBalloonPanel','getLimiterElement','delete','pin','onBalloonClosed','closeSourceResourceBalloon','3287680QrHAes','showSourceResourcesBalloon','5966385NZhQqv','_getResourcesViewFromBalloon','244ZxyUdq','_setupSingleResourceBalloonClickOutsideHandler','25910630LShjYO','isVisible','_config','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','populateSourceResourceBalloon','extendTemplate','content','9123338fTvpkk','set','clear','add','hide','onLoadSourceResources','isAnyResourceBalloonVisible','559761GBmkIx','_bodyCollection','children','_addSourceResourceContent','destroy','32142rCeLIo','execute','_createBackButton','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source'];_0x2f61=function(){return _0x127a0c;};return _0x2f61();}function _0x3778(_0x1ee908,_0x4475f6){const _0x2f6183=_0x2f61();return _0x3778=function(_0x37783c,_0x54b1df){_0x37783c=_0x37783c-0x124;let _0x589eb3=_0x2f6183[_0x37783c];return _0x589eb3;},_0x3778(_0x1ee908,_0x4475f6);}import{BalloonPanelView as _0xd772c4,ButtonView as _0x379ad6,clickOutsideHandler as _0xe7f111,FormHeaderView as _0x56af5a}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x349dc9}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5a68e6}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x2f60f7}from'./aichatresourcesview.js';const Qo=_0x4000ea(0x12b),Zo=_0x4000ea(0x15a),Or=_0x4000ea(0x153);export class AIChatResourcesBalloonView{[_0x4000ea(0x12a)]=new Map();[_0x4000ea(0x14c)];[_0x4000ea(0x129)];[_0x4000ea(0x13f)];constructor(_0x538013,_0x3ed222,_0x438dab){const _0x1b893c=_0x4000ea;this[_0x1b893c(0x129)]=_0x538013,this[_0x1b893c(0x14c)]=_0x3ed222,this[_0x1b893c(0x13f)]=_0x438dab;}[_0x4000ea(0x138)](_0xf24a45){const _0x3d03c4=_0x4000ea;let _0x5e8137=this[_0x3d03c4(0x12a)][_0x3d03c4(0x124)](_0xf24a45['id']);_0x5e8137||(_0x5e8137=this[_0x3d03c4(0x131)](),this[_0x3d03c4(0x12a)][_0x3d03c4(0x145)](_0xf24a45['id'],_0x5e8137),this[_0x3d03c4(0x13c)](_0x5e8137)),this[_0x3d03c4(0x14e)](_0x5e8137,_0xf24a45),_0x5e8137[_0x3d03c4(0x156)]();const _0x57cec8=this[_0x3d03c4(0x13f)][_0x3d03c4(0x12e)]();_0x57cec8&&_0x5e8137[_0x3d03c4(0x134)]({'target':_0x57cec8,'limiter':this[_0x3d03c4(0x13f)][_0x3d03c4(0x132)]()});}[_0x4000ea(0x141)](_0x9a9599,_0x141b18,_0x6249ee){const _0x1077b4=_0x4000ea,_0x13fdcf=this[_0x1077b4(0x12a)][_0x1077b4(0x124)](_0x9a9599);if(!_0x13fdcf)return;const _0x5925ee=this[_0x1077b4(0x13a)](_0x13fdcf);_0x5925ee&&_0x5925ee[_0x1077b4(0x159)](_0x141b18,_0x6249ee);}[_0x4000ea(0x136)](_0xc13790){const _0x4d00a1=_0x4000ea,_0x364cee=this[_0x4d00a1(0x12a)][_0x4d00a1(0x124)](_0xc13790);_0x364cee&&requestAnimationFrame(()=>{const _0x123a5a=_0x4d00a1;_0x364cee[_0x123a5a(0x148)](),this[_0x123a5a(0x12a)][_0x123a5a(0x133)](_0xc13790),this[_0x123a5a(0x13f)][_0x123a5a(0x135)]();});}[_0x4000ea(0x14a)](){const _0x59f148=_0x4000ea;for(const _0xa6d917 of this[_0x59f148(0x12a)][_0x59f148(0x155)]())if(_0xa6d917[_0x59f148(0x13e)])return!0x0;return!0x1;}[_0x4000ea(0x12d)](_0x37720a,_0x1d422e,_0x12053c){const _0x428266=_0x4000ea,_0x4c41ef=this[_0x428266(0x12a)][_0x428266(0x124)](_0x37720a);if(!_0x4c41ef||!_0x4c41ef[_0x428266(0x13e)])return;const _0x445ac8=this[_0x428266(0x13f)][_0x428266(0x12e)]();if(!_0x445ac8)return;_0x4c41ef[_0x428266(0x134)]({'target':_0x445ac8,'limiter':this[_0x428266(0x13f)][_0x428266(0x132)]()});const _0x3a7cb1=this[_0x428266(0x13a)](_0x4c41ef);_0x3a7cb1&&_0x3a7cb1[_0x428266(0x12d)](_0x1d422e,_0x12053c);}[_0x4000ea(0x14f)](){const _0x598323=_0x4000ea;for(const _0x13f669 of this[_0x598323(0x12a)][_0x598323(0x155)]())_0x13f669[_0x598323(0x14f)]();this[_0x598323(0x12a)][_0x598323(0x146)]();}[_0x4000ea(0x131)](){const _0x304154=_0x4000ea,_0x53bea7=new _0xd772c4(this[_0x304154(0x129)]);return _0x53bea7[_0x304154(0x142)]({'attributes':{'class':Qo}}),this[_0x304154(0x14c)][_0x304154(0x147)](_0x53bea7),_0x53bea7;}[_0x4000ea(0x14e)](_0x19be18,_0x157a36){const _0x18728d=_0x4000ea;_0x19be18[_0x18728d(0x143)][_0x18728d(0x146)]();const _0x2ed3ea=this[_0x18728d(0x130)](_0x19be18,_0x157a36);_0x19be18[_0x18728d(0x143)][_0x18728d(0x147)](_0x2ed3ea);const _0x20f846=this[_0x18728d(0x127)](_0x157a36);_0x19be18[_0x18728d(0x143)][_0x18728d(0x147)](_0x20f846);}[_0x4000ea(0x130)](_0x5b9827,_0x4de30f){const _0x1fe981=_0x4000ea,_0x2b8eb6=this[_0x1fe981(0x152)](_0x5b9827),_0x51eea1=new _0x56af5a(this[_0x1fe981(0x129)],{'label':_0x4de30f[_0x1fe981(0x15c)],'class':Or});return _0x51eea1[_0x1fe981(0x14d)][_0x1fe981(0x147)](_0x2b8eb6,0x0),_0x51eea1;}[_0x4000ea(0x152)](_0x179c67){const _0xeadb18=_0x4000ea,_0x482465=new _0x379ad6(this[_0xeadb18(0x129)]);return _0x482465[_0xeadb18(0x145)]({'icon':_0x349dc9,'tooltip':_0x5a68e6(this[_0xeadb18(0x129)],_0xeadb18(0x140)),'tooltipPosition':'n','class':Zo}),_0x482465['on'](_0xeadb18(0x151),()=>{const _0x37178f=_0xeadb18;_0x179c67[_0x37178f(0x148)](),this[_0x37178f(0x13f)][_0x37178f(0x128)]();}),_0x482465;}[_0x4000ea(0x127)](_0x1e5ab0){const _0x348723=_0x4000ea,_0x1a2de8=new _0x2f60f7(this[_0x348723(0x129)],_0x1e5ab0);return _0x1a2de8['on'](_0x348723(0x15b),(_0x388a49,_0x2e6c75)=>{const _0x5a19f1=_0x348723;this[_0x5a19f1(0x13f)][_0x5a19f1(0x149)](_0x2e6c75);}),_0x1a2de8['on'](_0x348723(0x125),(_0x38a9a9,_0x5a577b)=>{const _0xae21db=_0x348723;this[_0xae21db(0x13f)][_0xae21db(0x158)](_0x5a577b[_0xae21db(0x154)],_0x5a577b[_0xae21db(0x12f)]),this[_0xae21db(0x136)](_0x1e5ab0['id']);}),_0x1a2de8;}[_0x4000ea(0x13a)](_0x125bd0){const _0x3d9bda=_0x4000ea,_0xe72563=_0x125bd0[_0x3d9bda(0x143)][_0x3d9bda(0x124)](0x1);return _0xe72563 instanceof _0x2f60f7?_0xe72563:null;}[_0x4000ea(0x13c)](_0x5f2471){const _0x399999=_0x4000ea;_0xe7f111({'emitter':_0x5f2471,'contextElements':[_0x5f2471[_0x399999(0x12c)]],'callback':()=>{const _0x4105a9=_0x399999;_0x5f2471[_0x4105a9(0x148)](),this[_0x4105a9(0x13f)][_0x4105a9(0x135)]();},'activator':()=>_0x5f2471[_0x399999(0x13e)]});}}
23
+ const _0x1e0080=_0x442d;(function(_0x1c1510,_0x203379){const _0x1b1c7f=_0x442d,_0x163803=_0x1c1510();while(!![]){try{const _0x551544=-parseInt(_0x1b1c7f(0x15c))/0x1*(parseInt(_0x1b1c7f(0x16a))/0x2)+parseInt(_0x1b1c7f(0x167))/0x3+parseInt(_0x1b1c7f(0x16d))/0x4+parseInt(_0x1b1c7f(0x159))/0x5*(-parseInt(_0x1b1c7f(0x17e))/0x6)+-parseInt(_0x1b1c7f(0x16f))/0x7+-parseInt(_0x1b1c7f(0x175))/0x8+parseInt(_0x1b1c7f(0x183))/0x9;if(_0x551544===_0x203379)break;else _0x163803['push'](_0x163803['shift']());}catch(_0x50765a){_0x163803['push'](_0x163803['shift']());}}}(_0x4f94,0x73271));import{BalloonPanelView as _0x441f79,ButtonView as _0x486e14,clickOutsideHandler as _0x1ea25f,FormHeaderView as _0x50603a}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x3dff87}from'@ckeditor/ckeditor5-icons';function _0x4f94(){const _0x48a5a8=['updateResourceState','_createBackButton','resource','_bodyCollection','onBalloonClosed','extendTemplate','_setupSingleResourceBalloonClickOutsideHandler','_locale','ck-ai-chat-context-controls__source-balloon-panel','execute','1912689MMdyCw','closeSourceResourceBalloon','onResourceSelected','8174fkIiBU','_createBalloonHeader','onLoadSourceResources','1036068DAPZVh','values','2676807pLXVlZ','content','populateSourceResourceBalloon','isVisible','_config','get','1404496PAfpcK','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','_createBalloonResourcesView','destroy','loadSourceResources','_createSourceResourceBalloonPanel','getLimiterElement','source','getTargetElement','186YyxAll','pin','add','hide','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','4545783ctMSnY','_addSourceResourceContent','set','element','setResources','show','delete','clear','onBackToContext','label','children','isAnyResourceBalloonVisible','_sourceResourceBalloons','showSourceResourcesBalloon','ck-button-icon\x20ck-button-back','7930ORaQNc','addResourceToContext','_getResourcesViewFromBalloon','79MYSZhK'];_0x4f94=function(){return _0x48a5a8;};return _0x4f94();}import{getTranslation as _0x20b909}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x1a7ff8}from'./aichatresourcesview.js';function _0x442d(_0x28c597,_0x585380){const _0x4f9482=_0x4f94();return _0x442d=function(_0x442d29,_0xfa634d){_0x442d29=_0x442d29-0x14b;let _0x19d264=_0x4f9482[_0x442d29];return _0x19d264;},_0x442d(_0x28c597,_0x585380);}const Zo=_0x1e0080(0x165),Or=_0x1e0080(0x158),Hr=_0x1e0080(0x176);export class AIChatResourcesBalloonView{[_0x1e0080(0x156)]=new Map();[_0x1e0080(0x160)];[_0x1e0080(0x164)];[_0x1e0080(0x173)];constructor(_0x163fa4,_0x2588e4,_0x4d3341){const _0x46dcc5=_0x1e0080;this[_0x46dcc5(0x164)]=_0x163fa4,this[_0x46dcc5(0x160)]=_0x2588e4,this[_0x46dcc5(0x173)]=_0x4d3341;}[_0x1e0080(0x157)](_0xdf9cff){const _0x21bee1=_0x1e0080;let _0x43d5b7=this[_0x21bee1(0x156)][_0x21bee1(0x174)](_0xdf9cff['id']);_0x43d5b7||(_0x43d5b7=this[_0x21bee1(0x17a)](),this[_0x21bee1(0x156)][_0x21bee1(0x14c)](_0xdf9cff['id'],_0x43d5b7),this[_0x21bee1(0x163)](_0x43d5b7)),this[_0x21bee1(0x14b)](_0x43d5b7,_0xdf9cff),_0x43d5b7[_0x21bee1(0x14f)]();const _0x12dd77=this[_0x21bee1(0x173)][_0x21bee1(0x17d)]();_0x12dd77&&_0x43d5b7[_0x21bee1(0x17f)]({'target':_0x12dd77,'limiter':this[_0x21bee1(0x173)][_0x21bee1(0x17b)]()});}[_0x1e0080(0x171)](_0x5d93a3,_0x2b1590,_0x5f2e37){const _0x4427bf=_0x1e0080,_0x5489fc=this[_0x4427bf(0x156)][_0x4427bf(0x174)](_0x5d93a3);if(!_0x5489fc)return;const _0x2d0902=this[_0x4427bf(0x15b)](_0x5489fc);_0x2d0902&&_0x2d0902[_0x4427bf(0x14e)](_0x2b1590,_0x5f2e37);}[_0x1e0080(0x168)](_0x9b60fc){const _0xe18b69=_0x1e0080,_0x44e833=this[_0xe18b69(0x156)][_0xe18b69(0x174)](_0x9b60fc);_0x44e833&&requestAnimationFrame(()=>{const _0x22403b=_0xe18b69;_0x44e833[_0x22403b(0x181)](),this[_0x22403b(0x156)][_0x22403b(0x150)](_0x9b60fc),this[_0x22403b(0x173)][_0x22403b(0x161)]();});}[_0x1e0080(0x155)](){const _0x211253=_0x1e0080;for(const _0xbb8b5d of this[_0x211253(0x156)][_0x211253(0x16e)]())if(_0xbb8b5d[_0x211253(0x172)])return!0x0;return!0x1;}[_0x1e0080(0x15d)](_0x160fb9,_0xf5b768,_0x54ccae){const _0x4dad55=_0x1e0080,_0x4bce26=this[_0x4dad55(0x156)][_0x4dad55(0x174)](_0x160fb9);if(!_0x4bce26||!_0x4bce26[_0x4dad55(0x172)])return;const _0x403a8a=this[_0x4dad55(0x173)][_0x4dad55(0x17d)]();if(!_0x403a8a)return;_0x4bce26[_0x4dad55(0x17f)]({'target':_0x403a8a,'limiter':this[_0x4dad55(0x173)][_0x4dad55(0x17b)]()});const _0x4f11f4=this[_0x4dad55(0x15b)](_0x4bce26);_0x4f11f4&&_0x4f11f4[_0x4dad55(0x15d)](_0xf5b768,_0x54ccae);}[_0x1e0080(0x178)](){const _0x257e1d=_0x1e0080;for(const _0x3ac0be of this[_0x257e1d(0x156)][_0x257e1d(0x16e)]())_0x3ac0be[_0x257e1d(0x178)]();this[_0x257e1d(0x156)][_0x257e1d(0x151)]();}[_0x1e0080(0x17a)](){const _0x1947c2=_0x1e0080,_0x2de9c7=new _0x441f79(this[_0x1947c2(0x164)]);return _0x2de9c7[_0x1947c2(0x162)]({'attributes':{'class':Zo}}),this[_0x1947c2(0x160)][_0x1947c2(0x180)](_0x2de9c7),_0x2de9c7;}[_0x1e0080(0x14b)](_0x1727f4,_0x55788b){const _0x49aec7=_0x1e0080;_0x1727f4[_0x49aec7(0x170)][_0x49aec7(0x151)]();const _0x396115=this[_0x49aec7(0x16b)](_0x1727f4,_0x55788b);_0x1727f4[_0x49aec7(0x170)][_0x49aec7(0x180)](_0x396115);const _0x4c4090=this[_0x49aec7(0x177)](_0x55788b);_0x1727f4[_0x49aec7(0x170)][_0x49aec7(0x180)](_0x4c4090);}[_0x1e0080(0x16b)](_0x173066,_0x6578ef){const _0x580cd5=_0x1e0080,_0x9ac4e2=this[_0x580cd5(0x15e)](_0x173066),_0x3a3116=new _0x50603a(this[_0x580cd5(0x164)],{'label':_0x6578ef[_0x580cd5(0x153)],'class':Hr});return _0x3a3116[_0x580cd5(0x154)][_0x580cd5(0x180)](_0x9ac4e2,0x0),_0x3a3116;}[_0x1e0080(0x15e)](_0x36a9ae){const _0x2500ae=_0x1e0080,_0x5e28e9=new _0x486e14(this[_0x2500ae(0x164)]);return _0x5e28e9[_0x2500ae(0x14c)]({'icon':_0x3dff87,'tooltip':_0x20b909(this[_0x2500ae(0x164)],_0x2500ae(0x182)),'tooltipPosition':'n','class':Or}),_0x5e28e9['on'](_0x2500ae(0x166),()=>{const _0x1c331e=_0x2500ae;_0x36a9ae[_0x1c331e(0x181)](),this[_0x1c331e(0x173)][_0x1c331e(0x152)]();}),_0x5e28e9;}[_0x1e0080(0x177)](_0xd4f6f5){const _0x4af17c=_0x1e0080,_0x427fc2=new _0x1a7ff8(this[_0x4af17c(0x164)],_0xd4f6f5);return _0x427fc2['on'](_0x4af17c(0x179),(_0x3509dc,_0x40e412)=>{const _0x2671ce=_0x4af17c;this[_0x2671ce(0x173)][_0x2671ce(0x16c)](_0x40e412);}),_0x427fc2['on'](_0x4af17c(0x15a),(_0x1cedf7,_0x1275f2)=>{const _0x59ba23=_0x4af17c;this[_0x59ba23(0x173)][_0x59ba23(0x169)](_0x1275f2[_0x59ba23(0x17c)],_0x1275f2[_0x59ba23(0x15f)]),this[_0x59ba23(0x168)](_0xd4f6f5['id']);}),_0x427fc2;}[_0x1e0080(0x15b)](_0xef8364){const _0x6a0434=_0x1e0080,_0x23bd47=_0xef8364[_0x6a0434(0x170)][_0x6a0434(0x174)](0x1);return _0x23bd47 instanceof _0x1a7ff8?_0x23bd47:null;}[_0x1e0080(0x163)](_0x4ab85a){const _0x21914a=_0x1e0080;_0x1ea25f({'emitter':_0x4ab85a,'contextElements':[_0x4ab85a[_0x21914a(0x14d)]],'callback':()=>{const _0x4bf04f=_0x21914a;_0x4ab85a[_0x4bf04f(0x181)](),this[_0x4bf04f(0x173)][_0x4bf04f(0x161)]();},'activator':()=>_0x4ab85a[_0x21914a(0x172)]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1315(_0x801d75,_0x24ee62){const _0x437879=_0x4378();return _0x1315=function(_0x1315b1,_0x499583){_0x1315b1=_0x1315b1-0x10f;let _0x52213e=_0x437879[_0x1315b1];return _0x52213e;},_0x1315(_0x801d75,_0x24ee62);}const _0x15098c=_0x1315;(function(_0x43dc15,_0x50bb07){const _0x1f9606=_0x1315,_0x4d92ef=_0x43dc15();while(!![]){try{const _0x407f2b=parseInt(_0x1f9606(0x121))/0x1+-parseInt(_0x1f9606(0x117))/0x2+parseInt(_0x1f9606(0x126))/0x3+parseInt(_0x1f9606(0x110))/0x4+parseInt(_0x1f9606(0x10f))/0x5+-parseInt(_0x1f9606(0x12b))/0x6*(-parseInt(_0x1f9606(0x11a))/0x7)+-parseInt(_0x1f9606(0x11c))/0x8;if(_0x407f2b===_0x50bb07)break;else _0x4d92ef['push'](_0x4d92ef['shift']());}catch(_0x33890c){_0x4d92ef['push'](_0x4d92ef['shift']());}}}(_0x4378,0x6e0fe));import{ListView as _0x6b9968}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x54c5c3}from'./aichatresourcelistitemview.js';const sc=_0x15098c(0x116);function _0x4378(){const _0x206acd=['extendTemplate','923671mUujlE','add','14277920wWpKvD','highlightText','locale','forEach','addResourceToContext','891999KPNESF','updateResourceState','_handleResourceSelection','clear','items','2076255awkWfD','filter','useDefaultFiltering','_source','setResources','30uvcPyY','execute','trim','1411365PXxqUt','2433804dvZeUK','label','test','resource','fire','\x5c$&','ck-ai-chat-resources__list','1798038oriwYl','replace'];_0x4378=function(){return _0x206acd;};return _0x4378();}export class AIChatContextResourcesListView extends _0x6b9968{[_0x15098c(0x129)];constructor(_0x543562,_0x3fd58c){const _0x201973=_0x15098c;super(_0x543562),this[_0x201973(0x129)]=_0x3fd58c,this[_0x201973(0x119)]({'attributes':{'class':[sc]}});}[_0x15098c(0x12a)](_0x15875c,_0x13758e){const _0x1f49ee=_0x15098c;this[_0x1f49ee(0x125)][_0x1f49ee(0x124)]();let _0x5eca55=_0x15875c;if(this[_0x1f49ee(0x129)][_0x1f49ee(0x128)]&&_0x13758e&&''!==_0x13758e[_0x1f49ee(0x12d)]()){const _0x4d4656=new RegExp(_0x13758e[_0x1f49ee(0x118)](/[.*+?^${}()|[\]\\]/g,_0x1f49ee(0x115)),'gi');_0x5eca55=_0x15875c[_0x1f49ee(0x127)](_0x3f0120=>_0x4d4656[_0x1f49ee(0x112)](_0x3f0120[_0x1f49ee(0x111)]));}for(const _0x553f1f of _0x5eca55){const _0x66a3d4=new _0x54c5c3(this[_0x1f49ee(0x11e)],_0x553f1f);_0x66a3d4['on'](_0x1f49ee(0x12c),()=>{const _0x1ac0c5=_0x1f49ee;this[_0x1ac0c5(0x123)](this[_0x1ac0c5(0x129)],_0x553f1f);}),this[_0x1f49ee(0x125)][_0x1f49ee(0x11b)](_0x66a3d4);}this[_0x1f49ee(0x129)][_0x1f49ee(0x128)]&&this[_0x1f49ee(0x11d)](_0x13758e);}[_0x15098c(0x11d)](_0x59183f){const _0x20f0df=_0x15098c;this[_0x20f0df(0x129)][_0x20f0df(0x128)]&&this[_0x20f0df(0x125)][_0x20f0df(0x11f)](_0x1603b6=>{const _0x40ebec=_0x20f0df;_0x1603b6[_0x40ebec(0x11d)](_0x59183f);});}[_0x15098c(0x122)](_0x4554c0,_0x10dec0){const _0x118d28=_0x15098c;for(const _0x14355f of this[_0x118d28(0x125)]){const _0x721bb=_0x14355f;_0x721bb[_0x118d28(0x113)]['id']===_0x4554c0&&_0x721bb[_0x118d28(0x122)](_0x10dec0);}}[_0x15098c(0x123)](_0x13f5b9,_0x14437b){const _0x59b776=_0x15098c;this[_0x59b776(0x114)](_0x59b776(0x120),{'source':_0x13f5b9,'resource':_0x14437b});}}
23
+ const _0x9f4379=_0x47d1;(function(_0x55a97a,_0xc7afa2){const _0x7dc4b8=_0x47d1,_0x430fe2=_0x55a97a();while(!![]){try{const _0x365b60=-parseInt(_0x7dc4b8(0xfc))/0x1+parseInt(_0x7dc4b8(0xfb))/0x2+-parseInt(_0x7dc4b8(0x114))/0x3+-parseInt(_0x7dc4b8(0x112))/0x4+parseInt(_0x7dc4b8(0x10e))/0x5*(-parseInt(_0x7dc4b8(0x103))/0x6)+parseInt(_0x7dc4b8(0x109))/0x7+parseInt(_0x7dc4b8(0x110))/0x8;if(_0x365b60===_0xc7afa2)break;else _0x430fe2['push'](_0x430fe2['shift']());}catch(_0x364fe5){_0x430fe2['push'](_0x430fe2['shift']());}}}(_0x195d,0x66cc1));function _0x47d1(_0x15b016,_0x36f351){const _0x195d3e=_0x195d();return _0x47d1=function(_0x47d191,_0x558aa9){_0x47d191=_0x47d191-0xf8;let _0x94c54d=_0x195d3e[_0x47d191];return _0x94c54d;},_0x47d1(_0x15b016,_0x36f351);}import{ListView as _0x32d660}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x1f118a}from'./aichatresourcelistitemview.js';const sc=_0x9f4379(0x115);export class AIChatContextResourcesListView extends _0x32d660{[_0x9f4379(0xf9)];constructor(_0x4e0c29,_0x467aad){const _0x1f78b7=_0x9f4379;super(_0x4e0c29),this[_0x1f78b7(0xf9)]=_0x467aad,this[_0x1f78b7(0x10f)]({'attributes':{'class':[sc]}});}[_0x9f4379(0x102)](_0x58cd6b,_0x1c044c){const _0x449a11=_0x9f4379;this[_0x449a11(0x106)][_0x449a11(0x116)]();let _0x37385a=_0x58cd6b;if(this[_0x449a11(0xf9)][_0x449a11(0xff)]&&_0x1c044c&&''!==_0x1c044c[_0x449a11(0xfe)]()){const _0x5cde4a=new RegExp(_0x1c044c[_0x449a11(0x101)](/[.*+?^${}()|[\]\\]/g,_0x449a11(0xfd)),'gi');_0x37385a=_0x58cd6b[_0x449a11(0x113)](_0x184924=>_0x5cde4a[_0x449a11(0x105)](_0x184924[_0x449a11(0x10b)]));}for(const _0x353755 of _0x37385a){const _0x3d443d=new _0x1f118a(this[_0x449a11(0x111)],_0x353755);_0x3d443d['on'](_0x449a11(0x104),()=>{const _0x28f709=_0x449a11;this[_0x28f709(0x100)](this[_0x28f709(0xf9)],_0x353755);}),this[_0x449a11(0x106)][_0x449a11(0x108)](_0x3d443d);}this[_0x449a11(0xf9)][_0x449a11(0xff)]&&this[_0x449a11(0x10a)](_0x1c044c);}[_0x9f4379(0x10a)](_0x380252){const _0x303768=_0x9f4379;this[_0x303768(0xf9)][_0x303768(0xff)]&&this[_0x303768(0x106)][_0x303768(0xf8)](_0xe447be=>{const _0x15e9cd=_0x303768;_0xe447be[_0x15e9cd(0x10a)](_0x380252);});}[_0x9f4379(0x107)](_0x323e9d,_0x4b680b){const _0x425204=_0x9f4379;for(const _0x170c86 of this[_0x425204(0x106)]){const _0x57fb5e=_0x170c86;_0x57fb5e[_0x425204(0xfa)]['id']===_0x323e9d&&_0x57fb5e[_0x425204(0x107)](_0x4b680b);}}[_0x9f4379(0x100)](_0x1e31d9,_0x582e2e){const _0x42e676=_0x9f4379;this[_0x42e676(0x10d)](_0x42e676(0x10c),{'source':_0x1e31d9,'resource':_0x582e2e});}}function _0x195d(){const _0x27682d=['test','items','updateResourceState','add','1710002RawrZp','highlightText','label','addResourceToContext','fire','1345SBXuVg','extendTemplate','13324960KdPApK','locale','3332248JsjSwD','filter','1207071UVdDQN','ck-ai-chat-resources__list','clear','forEach','_source','resource','1682754zWfEUj','679740EpvCVF','\x5c$&','trim','useDefaultFiltering','_handleResourceSelection','replace','setResources','9258pIVlDQ','execute'];_0x195d=function(){return _0x27682d;};return _0x195d();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x2ef2fe,IconView as _0x1c4bea,LabeledFieldView as _0x310456,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x3b8eea,IconCancel as _0x3fea8f}from'ckeditor5/src/icons.js';import{getTranslation as _0x19dd92}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x310456{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x29f3ca){const t=_0x29f3ca['t'],_0x4102c1={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x19dd92(_0x29f3ca,'AI_CHAT_SEARCH_RESOURCES')};super(_0x29f3ca,_0x4102c1['creator']),this['label']=_0x4102c1['label'],this['_viewConfig']=_0x4102c1,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x29f3ca,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x47986d){this['fire']('search',_0x47986d);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x1c4bea(),this['iconView']['content']=_0x3b8eea,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0xf69615,t){this['resetButtonView']=new _0x2ef2fe(_0xf69615),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x3fea8f,'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',_0x29bc82=>!_0x29bc82),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 _0x22bdf4,IconView as _0x356c9e,LabeledFieldView as _0x4a1768,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x1346a4,IconCancel as _0x1726e4}from'ckeditor5/src/icons.js';import{getTranslation as _0xff1320}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x4a1768{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x3f081d){const t=_0x3f081d['t'],_0xf9d135={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0xff1320(_0x3f081d,'AI_CHAT_SEARCH_RESOURCES')};super(_0x3f081d,_0xf9d135['creator']),this['label']=_0xf9d135['label'],this['_viewConfig']=_0xf9d135,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x3f081d,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x1c2f4c){this['fire']('search',_0x1c2f4c);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x356c9e(),this['iconView']['content']=_0x1346a4,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x86a8c8,t){this['resetButtonView']=new _0x22bdf4(_0x86a8c8),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x1726e4,'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',_0x37ff88=>!_0x37ff88),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);}}