@ckeditor/ckeditor5-ai 47.5.0-alpha.8 → 47.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  8. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  9. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  10. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  11. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  12. package/src/aiassistant/ui/form/aiformview.js +1 -1
  13. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  14. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  15. package/src/aichat/aichat.js +1 -1
  16. package/src/aichat/aichatballoon.js +1 -1
  17. package/src/aichat/aichatcontroller.js +1 -1
  18. package/src/aichat/aichatui.js +1 -1
  19. package/src/aichat/model/aichatcontext.js +1 -1
  20. package/src/aichat/model/aichatconversation.js +1 -1
  21. package/src/aichat/model/aichatinteraction.js +1 -1
  22. package/src/aichat/ui/aichatballoonview.js +1 -1
  23. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  24. package/src/aichat/ui/aichatfeedview.js +1 -1
  25. package/src/aichat/ui/aichatheaderview.js +1 -1
  26. package/src/aichat/ui/aichatview.js +1 -1
  27. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  28. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  29. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  30. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  31. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  32. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  33. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  34. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  35. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  36. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  37. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  38. package/src/aichat/utils/eventnames.js +1 -1
  39. package/src/aichat/utils/promisequeue.js +1 -1
  40. package/src/aichathistory/aichathistorycontroller.js +1 -1
  41. package/src/aichathistory/aichathistoryui.js +1 -1
  42. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  43. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  44. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  45. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  46. package/src/aicore/aiediting.js +1 -1
  47. package/src/aicore/model/aicapabilities.js +1 -1
  48. package/src/aicore/model/aiinteraction.js +1 -1
  49. package/src/aicore/model/aimodels.js +1 -1
  50. package/src/aicore/model/aireply.js +1 -1
  51. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  52. package/src/aicore/pipeline/airesponseparser.js +2 -2
  53. package/src/aicore/ui/aispinner.js +1 -1
  54. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  55. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  56. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  57. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  58. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  59. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  60. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  61. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  62. package/src/aicore/utils/documentrange.js +1 -1
  63. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  64. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  65. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  66. package/src/aicore/utils/htmlparser.js +1 -1
  67. package/src/aicore/utils/htmlstreamer.js +1 -1
  68. package/src/aieditorintegration/aieditorintegration.js +1 -1
  69. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  70. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  71. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  72. package/src/aiquickactions/aiquickactionsui.js +1 -1
  73. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  74. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  75. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  76. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  77. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  78. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  79. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  80. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  81. package/src/aireviewcore/aireviewcoreui.js +1 -1
  82. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  83. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  84. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  85. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  86. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  87. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  88. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  89. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  90. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  91. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  92. package/src/aireviewmode/aireviewmodeui.js +1 -1
  93. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  94. package/src/aitabs/aitabs.js +1 -1
  95. package/src/aitranslate/aitranslate.js +1 -1
  96. package/src/aitranslate/aitranslatecontroller.js +1 -1
  97. package/src/aitranslate/aitranslateui.js +1 -1
  98. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  99. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53c361=_0x545a;(function(_0x2f2c9f,_0x12f188){const _0xbf29e9=_0x545a,_0x2d4148=_0x2f2c9f();while(!![]){try{const _0x142f90=parseInt(_0xbf29e9(0x1b2))/0x1*(-parseInt(_0xbf29e9(0x1b4))/0x2)+parseInt(_0xbf29e9(0x1a9))/0x3*(-parseInt(_0xbf29e9(0x1a5))/0x4)+parseInt(_0xbf29e9(0x1b1))/0x5+parseInt(_0xbf29e9(0x1b8))/0x6+parseInt(_0xbf29e9(0x1ab))/0x7*(-parseInt(_0xbf29e9(0x1ad))/0x8)+parseInt(_0xbf29e9(0x1ae))/0x9+parseInt(_0xbf29e9(0x1a0))/0xa;if(_0x142f90===_0x12f188)break;else _0x2d4148['push'](_0x2d4148['shift']());}catch(_0x414574){_0x2d4148['push'](_0x2d4148['shift']());}}}(_0x39ae,0x9cfdd));function _0x39ae(){const _0x3b6bb5=['4UGSYPz','ck-ai-chat__start-conversation','343930WBENbV','children','set','_createStartConversationButton','6403224puygTc','8298770hbYQKi','locale','AI_CHAT_HEADING','conversationStartButton','execute','1223952fzmEIG','AI_CHAT_LABEL_NEW_CHAT','fire','startConversation','6dEdtGm','isMaximized','14ahKrVz','add','1568776zSHroM','9936Cliema','resizeButton','ck-ai-header\x20ck-ai-header_chat','2184410fJwrvo'];_0x39ae=function(){return _0x3b6bb5;};return _0x39ae();}import{ButtonView as _0x1c54e8,FormHeaderView as _0x5bc3b8}from'ckeditor5/src/ui.js';import{IconPlus as _0x31efb9,IconAIChat as _0x12e365}from'ckeditor5/src/icons.js';import{getTranslation as _0xfc8223}from'../../aicore/utils/common-translations.js';function _0x545a(_0x2b84f7,_0x5b67ae){const _0x39aeac=_0x39ae();return _0x545a=function(_0x545a2a,_0x2b1851){_0x545a2a=_0x545a2a-0x1a0;let _0x14414c=_0x39aeac[_0x545a2a];return _0x14414c;},_0x545a(_0x2b84f7,_0x5b67ae);}import{createResizeButton as _0x244d64}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x5bc3b8{[_0x53c361(0x1a3)];[_0x53c361(0x1af)];constructor(_0x2f6a97,_0x5a4384){const _0x5c36b0=_0x53c361;super(_0x2f6a97,{'label':_0xfc8223(_0x2f6a97,_0x5c36b0(0x1a2)),'class':_0x5c36b0(0x1b0),'icon':_0x12e365}),this[_0x5c36b0(0x1b6)](_0x5c36b0(0x1aa),!0x1),this[_0x5c36b0(0x1a3)]=this[_0x5c36b0(0x1b7)](_0x2f6a97),this[_0x5c36b0(0x1b5)][_0x5c36b0(0x1ac)](this[_0x5c36b0(0x1a3)]),_0x5a4384&&(this[_0x5c36b0(0x1af)]=_0x244d64(_0x2f6a97,this),this[_0x5c36b0(0x1b5)][_0x5c36b0(0x1ac)](this[_0x5c36b0(0x1af)]));}[_0x53c361(0x1b7)](_0x3c77d4){const _0x5ce03b=_0x53c361,_0xa425ea=new _0x1c54e8(_0x3c77d4);return _0xa425ea[_0x5ce03b(0x1b6)]({'label':_0xfc8223(this[_0x5ce03b(0x1a1)],_0x5ce03b(0x1a6)),'withText':!0x0,'icon':_0x31efb9,'class':_0x5ce03b(0x1b3)}),_0xa425ea['on'](_0x5ce03b(0x1a4),()=>{const _0x181002=_0x5ce03b;this[_0x181002(0x1a7)](_0x181002(0x1a8));}),_0xa425ea;}}
23
+ const _0x1ff9cd=_0x44cf;(function(_0x5ac507,_0x550801){const _0x4579c1=_0x44cf,_0x4e5c80=_0x5ac507();while(!![]){try{const _0x273d6b=-parseInt(_0x4579c1(0x10e))/0x1+-parseInt(_0x4579c1(0x119))/0x2*(-parseInt(_0x4579c1(0x111))/0x3)+parseInt(_0x4579c1(0x11c))/0x4*(parseInt(_0x4579c1(0x11b))/0x5)+parseInt(_0x4579c1(0x11a))/0x6*(parseInt(_0x4579c1(0x122))/0x7)+parseInt(_0x4579c1(0x118))/0x8*(-parseInt(_0x4579c1(0x11f))/0x9)+parseInt(_0x4579c1(0x112))/0xa*(-parseInt(_0x4579c1(0x117))/0xb)+parseInt(_0x4579c1(0x126))/0xc*(-parseInt(_0x4579c1(0x115))/0xd);if(_0x273d6b===_0x550801)break;else _0x4e5c80['push'](_0x4e5c80['shift']());}catch(_0x1598c5){_0x4e5c80['push'](_0x4e5c80['shift']());}}}(_0xabf0,0xb2173));import{ButtonView as _0x4a2b09,FormHeaderView as _0x183f18}from'ckeditor5/src/ui.js';import{IconPlus as _0x14dbc6,IconAIChat as _0x5523b8}from'ckeditor5/src/icons.js';function _0xabf0(){const _0x59d8d7=['433884gzUKXF','ck-ai-header\x20ck-ai-header_chat','isMaximized','1619196poBwzp','1686950pwCMHu','startConversation','add','13183703hLVUtJ','locale','11EEuzOw','7944oUtIXy','4hxBeRF','1284RvZjhH','305OjjzFH','17840DHokwm','resizeButton','AI_CHAT_HEADING','4149YBbIcH','children','ck-ai-chat__start-conversation','47509MrLVjN','conversationStartButton','set','fire','12JZnzgq','execute','_createStartConversationButton','AI_CHAT_LABEL_NEW_CHAT'];_0xabf0=function(){return _0x59d8d7;};return _0xabf0();}import{getTranslation as _0x131f3a}from'../../aicore/utils/common-translations.js';function _0x44cf(_0x295dc7,_0x4ea371){const _0xabf004=_0xabf0();return _0x44cf=function(_0x44cf4c,_0x2eec4e){_0x44cf4c=_0x44cf4c-0x10e;let _0x22f76e=_0xabf004[_0x44cf4c];return _0x22f76e;},_0x44cf(_0x295dc7,_0x4ea371);}import{createResizeButton as _0x5cd103}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x183f18{[_0x1ff9cd(0x123)];[_0x1ff9cd(0x11d)];constructor(_0x4fc018,_0x54e9ca){const _0x366339=_0x1ff9cd;super(_0x4fc018,{'label':_0x131f3a(_0x4fc018,_0x366339(0x11e)),'class':_0x366339(0x10f),'icon':_0x5523b8}),this[_0x366339(0x124)](_0x366339(0x110),!0x1),this[_0x366339(0x123)]=this[_0x366339(0x128)](_0x4fc018),this[_0x366339(0x120)][_0x366339(0x114)](this[_0x366339(0x123)]),_0x54e9ca&&(this[_0x366339(0x11d)]=_0x5cd103(_0x4fc018,this),this[_0x366339(0x120)][_0x366339(0x114)](this[_0x366339(0x11d)]));}[_0x1ff9cd(0x128)](_0x4ec531){const _0x6e4916=_0x1ff9cd,_0x388c5b=new _0x4a2b09(_0x4ec531);return _0x388c5b[_0x6e4916(0x124)]({'label':_0x131f3a(this[_0x6e4916(0x116)],_0x6e4916(0x129)),'withText':!0x0,'icon':_0x14dbc6,'class':_0x6e4916(0x121)}),_0x388c5b['on'](_0x6e4916(0x127),()=>{const _0x115cc8=_0x6e4916;this[_0x115cc8(0x125)](_0x115cc8(0x113));}),_0x388c5b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xfc3274=_0x1bd4;(function(_0x3f90eb,_0x543c81){var _0x9c8f93=_0x1bd4,_0x490ddc=_0x3f90eb();while(!![]){try{var _0x197d70=-parseInt(_0x9c8f93(0x181))/0x1*(parseInt(_0x9c8f93(0x19a))/0x2)+parseInt(_0x9c8f93(0x187))/0x3+parseInt(_0x9c8f93(0x18f))/0x4+parseInt(_0x9c8f93(0x199))/0x5*(parseInt(_0x9c8f93(0x183))/0x6)+-parseInt(_0x9c8f93(0x196))/0x7+parseInt(_0x9c8f93(0x18a))/0x8*(parseInt(_0x9c8f93(0x19d))/0x9)+-parseInt(_0x9c8f93(0x18c))/0xa*(parseInt(_0x9c8f93(0x188))/0xb);if(_0x197d70===_0x543c81)break;else _0x490ddc['push'](_0x490ddc['shift']());}catch(_0x50fee3){_0x490ddc['push'](_0x490ddc['shift']());}}}(_0xa75e,0x3375c));import{View as _0xfd22c,BodyCollection as _0xdb5de7}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0xa3eb0f}from'../utils/eventnames.js';import{AIChatFeedView as _0x1a1698}from'./aichatfeedview.js';function _0xa75e(){var _0x513b0a=['div','uiLanguageDirection','614451VnnKxn','11lXillY','closeSourceResourceBalloon','8FpxbxD','setTemplate','3233330sYQqMF','delegate','ck-ai-chat','853344bbBsiu','chatFeed','_bodyCollection','populateSourceResourceBalloon','attachToDom','ck-rounded-corners','chatHeader','1402429ZPvPGA','chatControls','contextResourcesSearchInputVisibleFrom','836905DlRTvS','2ueceuy','ck-reset_all','showResizeButton','1485747vsovpi','destroy','16157rGfIvK','detachFromDom','6xqFpHM','chatDisclaimer'];_0xa75e=function(){return _0x513b0a;};return _0xa75e();}import{AIChatControlsView as _0x5dc19e}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x401bf7}from'./aichatheaderview.js';import{AIDisclaimerView as _0x36bc53}from'../../aicore/ui/aidisclaimerview.js';function _0x1bd4(_0x5d1d6d,_0x43c5fd){var _0xa75e86=_0xa75e();return _0x1bd4=function(_0x1bd43a,_0xbf4587){_0x1bd43a=_0x1bd43a-0x181;var _0x2535f1=_0xa75e86[_0x1bd43a];return _0x2535f1;},_0x1bd4(_0x5d1d6d,_0x43c5fd);}export class AIChatView extends _0xfd22c{[_0xfc3274(0x195)];[_0xfc3274(0x190)];[_0xfc3274(0x197)];[_0xfc3274(0x184)];[_0xfc3274(0x191)];constructor(_0xa7b128,_0xf756d1){var _0x3f55a2=_0xfc3274;super(_0xa7b128),this[_0x3f55a2(0x191)]=new _0xdb5de7(_0xa7b128),this[_0x3f55a2(0x191)][_0x3f55a2(0x193)](),this[_0x3f55a2(0x195)]=new _0x401bf7(_0xa7b128,_0xf756d1[_0x3f55a2(0x19c)]),this[_0x3f55a2(0x195)][_0x3f55a2(0x18d)](..._0xa3eb0f)['to'](this),this[_0x3f55a2(0x190)]=new _0x1a1698(_0xa7b128,this[_0x3f55a2(0x191)]),this[_0x3f55a2(0x190)][_0x3f55a2(0x18d)](..._0xa3eb0f)['to'](this),this[_0x3f55a2(0x197)]=new _0x5dc19e(_0xa7b128,{'bodyCollection':this[_0x3f55a2(0x191)],'contextResourcesSearchInputVisibleFrom':_0xf756d1[_0x3f55a2(0x198)]}),this[_0x3f55a2(0x197)][_0x3f55a2(0x18d)](..._0xa3eb0f)['to'](this),this[_0x3f55a2(0x184)]=new _0x36bc53(_0xa7b128),this[_0x3f55a2(0x18b)]({'tag':_0x3f55a2(0x185),'attributes':{'class':['ck',_0x3f55a2(0x19b),_0x3f55a2(0x18e),_0x3f55a2(0x194)],'dir':_0xa7b128[_0x3f55a2(0x186)]},'children':[this[_0x3f55a2(0x195)],this[_0x3f55a2(0x190)],this[_0x3f55a2(0x197)],this[_0x3f55a2(0x184)]]});}[_0xfc3274(0x192)](_0x183b8d,_0x2b0215,_0x2b7905,_0xc67351){var _0x5d8b20=_0xfc3274;this[_0x5d8b20(0x197)][_0x5d8b20(0x192)](_0x183b8d,_0x2b0215,_0x2b7905,_0xc67351);}[_0xfc3274(0x189)](_0x403150){var _0x504dd9=_0xfc3274;this[_0x504dd9(0x197)][_0x504dd9(0x189)](_0x403150);}[_0xfc3274(0x19e)](){var _0x3ed72f=_0xfc3274;this[_0x3ed72f(0x191)][_0x3ed72f(0x182)](),super[_0x3ed72f(0x19e)]();}}
23
+ var _0x428375=_0x7c38;(function(_0x7e34c4,_0x537c7e){var _0xa7142d=_0x7c38,_0x499c9d=_0x7e34c4();while(!![]){try{var _0x512402=-parseInt(_0xa7142d(0x15c))/0x1+parseInt(_0xa7142d(0x146))/0x2*(parseInt(_0xa7142d(0x151))/0x3)+parseInt(_0xa7142d(0x149))/0x4*(parseInt(_0xa7142d(0x141))/0x5)+parseInt(_0xa7142d(0x152))/0x6*(-parseInt(_0xa7142d(0x14c))/0x7)+parseInt(_0xa7142d(0x154))/0x8+parseInt(_0xa7142d(0x14b))/0x9+parseInt(_0xa7142d(0x157))/0xa;if(_0x512402===_0x537c7e)break;else _0x499c9d['push'](_0x499c9d['shift']());}catch(_0x2674f6){_0x499c9d['push'](_0x499c9d['shift']());}}}(_0x1c04,0x4cbe0));import{View as _0x2d624b,BodyCollection as _0x9d37f3}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2ccb2a}from'../utils/eventnames.js';function _0x7c38(_0x4bcb62,_0x37de38){var _0x1c049c=_0x1c04();return _0x7c38=function(_0x7c383f,_0x34a67e){_0x7c383f=_0x7c383f-0x141;var _0x37012a=_0x1c049c[_0x7c383f];return _0x37012a;},_0x7c38(_0x4bcb62,_0x37de38);}function _0x1c04(){var _0x2c157a=['attachToDom','394263UTplHZ','15190aZWNjr','delegate','ck-reset_all','ck-ai-chat','contextResourcesSearchInputVisibleFrom','2109eQUGcv','1236cGMtie','chatFeed','1103656rnsGsE','showResizeButton','uiLanguageDirection','8666830lITpNP','ck-rounded-corners','setTemplate','_bodyCollection','chatControls','483624qWXMzJ','destroy','5qidNDG','detachFromDom','closeSourceResourceBalloon','chatDisclaimer','populateSourceResourceBalloon','124oOMFSx','div','chatHeader','611788APwOTe'];_0x1c04=function(){return _0x2c157a;};return _0x1c04();}import{AIChatFeedView as _0x2b1221}from'./aichatfeedview.js';import{AIChatControlsView as _0x7c668}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x2a9bc5}from'./aichatheaderview.js';import{AIDisclaimerView as _0x49b70b}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x2d624b{[_0x428375(0x148)];[_0x428375(0x153)];[_0x428375(0x15b)];[_0x428375(0x144)];[_0x428375(0x15a)];constructor(_0x22f226,_0x5847b4){var _0x16a902=_0x428375;super(_0x22f226),this[_0x16a902(0x15a)]=new _0x9d37f3(_0x22f226),this[_0x16a902(0x15a)][_0x16a902(0x14a)](),this[_0x16a902(0x148)]=new _0x2a9bc5(_0x22f226,_0x5847b4[_0x16a902(0x155)]),this[_0x16a902(0x148)][_0x16a902(0x14d)](..._0x2ccb2a)['to'](this),this[_0x16a902(0x153)]=new _0x2b1221(_0x22f226,this[_0x16a902(0x15a)]),this[_0x16a902(0x153)][_0x16a902(0x14d)](..._0x2ccb2a)['to'](this),this[_0x16a902(0x15b)]=new _0x7c668(_0x22f226,{'bodyCollection':this[_0x16a902(0x15a)],'contextResourcesSearchInputVisibleFrom':_0x5847b4[_0x16a902(0x150)]}),this[_0x16a902(0x15b)][_0x16a902(0x14d)](..._0x2ccb2a)['to'](this),this[_0x16a902(0x144)]=new _0x49b70b(_0x22f226),this[_0x16a902(0x159)]({'tag':_0x16a902(0x147),'attributes':{'class':['ck',_0x16a902(0x14e),_0x16a902(0x14f),_0x16a902(0x158)],'dir':_0x22f226[_0x16a902(0x156)]},'children':[this[_0x16a902(0x148)],this[_0x16a902(0x153)],this[_0x16a902(0x15b)],this[_0x16a902(0x144)]]});}[_0x428375(0x145)](_0x13c394,_0x204cb5,_0x26b15f,_0x3293af){var _0x58e397=_0x428375;this[_0x58e397(0x15b)][_0x58e397(0x145)](_0x13c394,_0x204cb5,_0x26b15f,_0x3293af);}[_0x428375(0x143)](_0x24cb01){var _0x3e65e0=_0x428375;this[_0x3e65e0(0x15b)][_0x3e65e0(0x143)](_0x24cb01);}[_0x428375(0x15d)](){var _0x2c2b3f=_0x428375;this[_0x2c2b3f(0x15a)][_0x2c2b3f(0x142)](),super[_0x2c2b3f(0x15d)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3be74b=_0x3a95;(function(_0x2192a5,_0x4474b6){const _0x46331b=_0x3a95,_0x2aab9f=_0x2192a5();while(!![]){try{const _0x2971c2=-parseInt(_0x46331b(0x15b))/0x1*(parseInt(_0x46331b(0x162))/0x2)+parseInt(_0x46331b(0x172))/0x3+parseInt(_0x46331b(0x16c))/0x4*(-parseInt(_0x46331b(0x16e))/0x5)+-parseInt(_0x46331b(0x181))/0x6*(parseInt(_0x46331b(0x167))/0x7)+parseInt(_0x46331b(0x158))/0x8*(-parseInt(_0x46331b(0x140))/0x9)+parseInt(_0x46331b(0x153))/0xa+parseInt(_0x46331b(0x16d))/0xb;if(_0x2971c2===_0x4474b6)break;else _0x2aab9f['push'](_0x2aab9f['shift']());}catch(_0x2da77a){_0x2aab9f['push'](_0x2aab9f['shift']());}}}(_0xf82d,0x8ca1b));import{ButtonView as _0x216b1a,IconView as _0x52578f}from'ckeditor5/src/ui.js';function _0xf82d(){const _0x519395=['classList','_createTemplateChildren','7PovIeU','length','label','_setupTemplate','span','1833128qxadqe','12975127QZgeOF','10KRgZRr','_setupRemoveButtonEvent','ck-ai-chat-context-chip__type-icon','slice','1505340smhQzD','document','remove','locale','webkitAnimationEnd','execute','ck-ai-chat-context-chip_new-chip','div','_createLabelElement','render','_createIconView','isVisible','isLoading','small','_handleAnimationEndOnce','4017378jyGuaa','bindTemplate','609993mmjBoN','lastIndexOf','ck-ai-chat-context-chip_wide','ck-ai-chat-context-chip__label','type','tooltip','ck-ai-chat-context-chip_document','animationend','itemType','ck-ai-chat-context-controls__chip-tooltip','ck-ai-chat-context-chip','addEventListener','add','element','readonly','content','extendTemplate','bind','removeEventListener','9941290EVWyVr','disableAnimationOnEnter','setTemplate','_isAnimationOnEnterEnabled','_initializeProperties','40TWsVfL','set','removeContextItemChip','157MkrtDy','uiId','_createLoaderIcon','ck-hidden','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','fire','_createRemoveButton','2222QQpUkt','_createTemplateAttributes','selection'];_0xf82d=function(){return _0x519395;};return _0xf82d();}import{IconClose as _0x35459,IconDocument as _0x3dfad2,IconFileUpload as _0x5d94a2,IconLink as _0x18774f,IconSelection as _0x2c0084}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x28e5a6}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x218e28}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x5d94a2,'document':_0x3dfad2,'web-resource':_0x18774f,'text':_0x5d94a2,'selection':_0x2c0084,'mcp-tool-context':_0x3dfad2},bn=_0x3be74b(0x14a),wn=_0x3be74b(0x142),Tn=_0x3be74b(0x146),En=_0x3be74b(0x143),fn=_0x3be74b(0x170),An=_0x3be74b(0x149),Cn='n';export class AIChatContextItemButtonView extends _0x216b1a{constructor(_0x2bfa9b,_0x284b84,_0x5b0d7d,_0x2b9b37,_0xdb11ba=!0x1){const _0x49553f=_0x3be74b;super(_0x2bfa9b),this[_0x49553f(0x156)]=_0x2b9b37,this[_0x49553f(0x157)](_0x284b84,_0x5b0d7d,_0xdb11ba),this[_0x49553f(0x16a)]();}[_0x3be74b(0x17b)](){const _0x4fcdd7=_0x3be74b;super[_0x4fcdd7(0x17b)](),this[_0x4fcdd7(0x156)]&&this[_0x4fcdd7(0x14d)]&&(this[_0x4fcdd7(0x14d)][_0x4fcdd7(0x165)][_0x4fcdd7(0x14c)](_0x4fcdd7(0x178)),this[_0x4fcdd7(0x180)](this[_0x4fcdd7(0x14d)],()=>{const _0x3689c7=_0x4fcdd7;this[_0x3689c7(0x14d)]&&this[_0x3689c7(0x14d)][_0x3689c7(0x165)][_0x3689c7(0x174)](_0x3689c7(0x178));}));}[_0x3be74b(0x154)](){const _0x19a03c=_0x3be74b;this[_0x19a03c(0x156)]=!0x1,this[_0x19a03c(0x14d)]&&this[_0x19a03c(0x14d)][_0x19a03c(0x165)][_0x19a03c(0x174)](_0x19a03c(0x178));}[_0x3be74b(0x157)](_0x96947e,_0x6f4df2,_0x30727b){const _0x2c5f5d=_0x3be74b;this[_0x2c5f5d(0x159)](_0x2c5f5d(0x169),_0x96947e[_0x2c5f5d(0x169)]),this[_0x2c5f5d(0x159)](_0x2c5f5d(0x145),!0x0),this[_0x2c5f5d(0x159)](_0x2c5f5d(0x148),_0x96947e[_0x2c5f5d(0x144)]),this[_0x2c5f5d(0x159)]('id',_0x96947e[_0x2c5f5d(0x15c)]),this[_0x2c5f5d(0x159)](_0x2c5f5d(0x14e),_0x6f4df2),this[_0x2c5f5d(0x159)](_0x2c5f5d(0x17e),_0x30727b);}[_0x3be74b(0x16a)](){const _0x5b3ce8=_0x3be74b,_0x453176=this[_0x5b3ce8(0x17c)](),_0x27d198=this[_0x5b3ce8(0x161)](),_0x57e38b=this[_0x5b3ce8(0x13f)];this[_0x5b3ce8(0x155)]({'tag':_0x5b3ce8(0x179),'attributes':this[_0x5b3ce8(0x163)](_0x57e38b),'children':this[_0x5b3ce8(0x166)](_0x453176,_0x27d198,_0x57e38b)});}[_0x3be74b(0x163)](_0x134b62){const _0x4d3d7d=_0x3be74b;return{'class':[bn,_0x134b62['if'](_0x4d3d7d(0x148),Tn,_0x128680=>_0x4d3d7d(0x173)==_0x128680),_0x134b62['if'](_0x4d3d7d(0x148),wn,_0x2b75df=>_0x4d3d7d(0x164)==_0x2b75df)],'data-cke-tooltip-text':_0x134b62['to'](_0x4d3d7d(0x169),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x3be74b(0x166)](_0x359a0e,_0x6d0183,_0x23032f){const _0x2cb4ae=_0x3be74b,_0x3f9c66=this[_0x2cb4ae(0x17a)](_0x23032f),_0x44fbff=this[_0x2cb4ae(0x15d)]();return this[_0x2cb4ae(0x14e)]?[_0x359a0e,_0x3f9c66]:[_0x359a0e,_0x44fbff,_0x3f9c66,_0x6d0183];}[_0x3be74b(0x17a)](_0x59f712){const _0x4d8cd2=_0x3be74b;return{'tag':_0x4d8cd2(0x16b),'attributes':{'class':En},'children':[{'text':_0x59f712['to'](_0x4d8cd2(0x169))}]};}[_0x3be74b(0x161)](){const _0x1afa99=_0x3be74b,_0x4ab6da=new _0x216b1a(this[_0x1afa99(0x175)]);return _0x4ab6da[_0x1afa99(0x159)]({'label':_0x28e5a6(this[_0x1afa99(0x175)],_0x1afa99(0x15f)),'icon':_0x35459}),this[_0x1afa99(0x16f)](_0x4ab6da),_0x4ab6da;}[_0x3be74b(0x16f)](_0x5071b1){const _0x735801=_0x3be74b;_0x5071b1['on'](_0x735801(0x177),()=>{const _0xca2cb3=_0x735801;this[_0xca2cb3(0x160)](_0xca2cb3(0x15a),this['id']);});}[_0x3be74b(0x17c)](){const _0xf2caa5=_0x3be74b,_0x2066de=this[_0xf2caa5(0x13f)],_0x395771=new _0x52578f();return _0x395771[_0xf2caa5(0x14f)]=xn[this[_0xf2caa5(0x148)]],_0x395771[_0xf2caa5(0x150)]({'attributes':{'class':[fn,_0x2066de['if'](_0xf2caa5(0x17e),_0xf2caa5(0x15e),_0x238408=>_0x238408)]}}),_0x395771;}[_0x3be74b(0x180)](_0x4740f7,_0x1f7f69){const _0x33875c=_0x3be74b;if(!_0x4740f7)return;const _0x30428c=()=>{const _0x157708=_0x3a95;_0x1f7f69(),_0x4740f7[_0x157708(0x152)](_0x157708(0x147),_0x30428c),_0x4740f7[_0x157708(0x152)](_0x157708(0x176),_0x30428c);};_0x4740f7[_0x33875c(0x14b)](_0x33875c(0x147),_0x30428c),_0x4740f7[_0x33875c(0x14b)](_0x33875c(0x176),_0x30428c);}[_0x3be74b(0x15d)](){const _0x31cf07=_0x3be74b,_0x5568ac=new _0x218e28(_0x31cf07(0x17f));return _0x5568ac[_0x31cf07(0x151)](_0x31cf07(0x17d))['to'](this,_0x31cf07(0x17e),_0x19a53c=>_0x19a53c),_0x5568ac;}}function _0x3a95(_0x27d08e,_0x5e6603){const _0xf82d1e=_0xf82d();return _0x3a95=function(_0x3a95ac,_0xa9eacc){_0x3a95ac=_0x3a95ac-0x13f;let _0x30e43d=_0xf82d1e[_0x3a95ac];return _0x30e43d;},_0x3a95(_0x27d08e,_0x5e6603);}function In(_0x4f5a0e){const _0x3bc4cd=_0x3be74b;if(!_0x4f5a0e)return _0x4f5a0e;if(_0x4f5a0e[_0x3bc4cd(0x168)]<=0x78)return _0x4f5a0e;const _0x25f250=_0x4f5a0e[_0x3bc4cd(0x171)](0x0,0x78),_0x473461=_0x25f250[_0x3bc4cd(0x141)]('\x20');return(_0x473461>0x0?_0x25f250[_0x3bc4cd(0x171)](0x0,_0x473461):_0x25f250)+'…';}
23
+ function _0x48b8(){const _0x44994f=['tooltip','1413699GNJFOL','ck-ai-chat-context-chip_document','add','252921pKVOEC','ck-hidden','slice','isLoading','isVisible','_isAnimationOnEnterEnabled','9198808KXJqBu','lastIndexOf','webkitAnimationEnd','5dvAyEK','disableAnimationOnEnter','8sSvKLd','ck-ai-chat-context-chip_wide','addEventListener','document','div','small','render','itemType','_handleAnimationEndOnce','ck-ai-chat-context-chip','17314857QGTGaF','ck-ai-chat-context-chip__label','bindTemplate','length','element','setTemplate','classList','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','label','ck-ai-chat-context-chip__type-icon','2565940QQMzEe','type','uiId','removeEventListener','_createLoaderIcon','_setupRemoveButtonEvent','ck-ai-chat-context-chip_new-chip','removeContextItemChip','execute','2954076bSPtuc','set','selection','_createTemplateAttributes','_createTemplateChildren','3515127AyVHRQ','animationend','extendTemplate','_createRemoveButton','ck-ai-chat-context-controls__chip-tooltip','remove','bind','span','_setupTemplate','_createLabelElement','locale','_createIconView','readonly','_initializeProperties','content','fire'];_0x48b8=function(){return _0x44994f;};return _0x48b8();}const _0x246ae8=_0xc8e8;(function(_0xff3df4,_0x24730e){const _0x3d85fd=_0xc8e8,_0x2945ba=_0xff3df4();while(!![]){try{const _0x3536b2=-parseInt(_0x3d85fd(0x155))/0x1*(-parseInt(_0x3d85fd(0x160))/0x2)+-parseInt(_0x3d85fd(0x152))/0x3+parseInt(_0x3d85fd(0x133))/0x4+parseInt(_0x3d85fd(0x15e))/0x5*(-parseInt(_0x3d85fd(0x13c))/0x6)+-parseInt(_0x3d85fd(0x141))/0x7+-parseInt(_0x3d85fd(0x15b))/0x8+parseInt(_0x3d85fd(0x16a))/0x9;if(_0x3536b2===_0x24730e)break;else _0x2945ba['push'](_0x2945ba['shift']());}catch(_0x416288){_0x2945ba['push'](_0x2945ba['shift']());}}}(_0x48b8,0xeabab));import{ButtonView as _0x5d15f8,IconView as _0x48bde0}from'ckeditor5/src/ui.js';import{IconClose as _0x10fba5,IconDocument as _0x3391f8,IconFileUpload as _0x4ddcfb,IconLink as _0x4aa3c2,IconSelection as _0x234623}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x310f14}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0xc5708}from'../../../aicore/ui/aispinner.js';function _0xc8e8(_0x5a441f,_0x323771){const _0x48b898=_0x48b8();return _0xc8e8=function(_0xc8e878,_0xac5f3d){_0xc8e878=_0xc8e878-0x133;let _0x264cb8=_0x48b898[_0xc8e878];return _0x264cb8;},_0xc8e8(_0x5a441f,_0x323771);}const xn={'file':_0x4ddcfb,'document':_0x3391f8,'web-resource':_0x4aa3c2,'text':_0x4ddcfb,'selection':_0x234623,'mcp-tool-context':_0x3391f8},bn=_0x246ae8(0x169),wn=_0x246ae8(0x161),Tn=_0x246ae8(0x153),En=_0x246ae8(0x16b),fn=_0x246ae8(0x173),An=_0x246ae8(0x145),Cn='n';export class AIChatContextItemButtonView extends _0x5d15f8{constructor(_0xf3b1df,_0x1a5005,_0x2cd7fe,_0x504f46,_0x436363=!0x1){const _0xbb8668=_0x246ae8;super(_0xf3b1df),this[_0xbb8668(0x15a)]=_0x504f46,this[_0xbb8668(0x14e)](_0x1a5005,_0x2cd7fe,_0x436363),this[_0xbb8668(0x149)]();}[_0x246ae8(0x166)](){const _0x3b15d1=_0x246ae8;super[_0x3b15d1(0x166)](),this[_0x3b15d1(0x15a)]&&this[_0x3b15d1(0x16e)]&&(this[_0x3b15d1(0x16e)][_0x3b15d1(0x170)][_0x3b15d1(0x154)](_0x3b15d1(0x139)),this[_0x3b15d1(0x168)](this[_0x3b15d1(0x16e)],()=>{const _0x2fda4c=_0x3b15d1;this[_0x2fda4c(0x16e)]&&this[_0x2fda4c(0x16e)][_0x2fda4c(0x170)][_0x2fda4c(0x146)](_0x2fda4c(0x139));}));}[_0x246ae8(0x15f)](){const _0x103b3a=_0x246ae8;this[_0x103b3a(0x15a)]=!0x1,this[_0x103b3a(0x16e)]&&this[_0x103b3a(0x16e)][_0x103b3a(0x170)][_0x103b3a(0x146)](_0x103b3a(0x139));}[_0x246ae8(0x14e)](_0x5c9f1b,_0x4c3063,_0x59adba){const _0x5acf60=_0x246ae8;this[_0x5acf60(0x13d)](_0x5acf60(0x172),_0x5c9f1b[_0x5acf60(0x172)]),this[_0x5acf60(0x13d)](_0x5acf60(0x151),!0x0),this[_0x5acf60(0x13d)](_0x5acf60(0x167),_0x5c9f1b[_0x5acf60(0x134)]),this[_0x5acf60(0x13d)]('id',_0x5c9f1b[_0x5acf60(0x135)]),this[_0x5acf60(0x13d)](_0x5acf60(0x14d),_0x4c3063),this[_0x5acf60(0x13d)](_0x5acf60(0x158),_0x59adba);}[_0x246ae8(0x149)](){const _0x4fc880=_0x246ae8,_0x658425=this[_0x4fc880(0x14c)](),_0x538941=this[_0x4fc880(0x144)](),_0x566c46=this[_0x4fc880(0x16c)];this[_0x4fc880(0x16f)]({'tag':_0x4fc880(0x164),'attributes':this[_0x4fc880(0x13f)](_0x566c46),'children':this[_0x4fc880(0x140)](_0x658425,_0x538941,_0x566c46)});}[_0x246ae8(0x13f)](_0x4001ad){const _0x3fe6f0=_0x246ae8;return{'class':[bn,_0x4001ad['if'](_0x3fe6f0(0x167),Tn,_0x4d34d1=>_0x3fe6f0(0x163)==_0x4d34d1),_0x4001ad['if'](_0x3fe6f0(0x167),wn,_0xa9548e=>_0x3fe6f0(0x13e)==_0xa9548e)],'data-cke-tooltip-text':_0x4001ad['to'](_0x3fe6f0(0x172),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x246ae8(0x140)](_0x334c41,_0x1df9ff,_0x23ca25){const _0x581102=_0x246ae8,_0x39f564=this[_0x581102(0x14a)](_0x23ca25),_0x44205e=this[_0x581102(0x137)]();return this[_0x581102(0x14d)]?[_0x334c41,_0x39f564]:[_0x334c41,_0x44205e,_0x39f564,_0x1df9ff];}[_0x246ae8(0x14a)](_0x203675){const _0x20b5fc=_0x246ae8;return{'tag':_0x20b5fc(0x148),'attributes':{'class':En},'children':[{'text':_0x203675['to'](_0x20b5fc(0x172))}]};}[_0x246ae8(0x144)](){const _0x4a8348=_0x246ae8,_0x1e7ed6=new _0x5d15f8(this[_0x4a8348(0x14b)]);return _0x1e7ed6[_0x4a8348(0x13d)]({'label':_0x310f14(this[_0x4a8348(0x14b)],_0x4a8348(0x171)),'icon':_0x10fba5}),this[_0x4a8348(0x138)](_0x1e7ed6),_0x1e7ed6;}[_0x246ae8(0x138)](_0x247900){const _0xfa9fef=_0x246ae8;_0x247900['on'](_0xfa9fef(0x13b),()=>{const _0x16d65a=_0xfa9fef;this[_0x16d65a(0x150)](_0x16d65a(0x13a),this['id']);});}[_0x246ae8(0x14c)](){const _0x28202a=_0x246ae8,_0x42b671=this[_0x28202a(0x16c)],_0x1db265=new _0x48bde0();return _0x1db265[_0x28202a(0x14f)]=xn[this[_0x28202a(0x167)]],_0x1db265[_0x28202a(0x143)]({'attributes':{'class':[fn,_0x42b671['if'](_0x28202a(0x158),_0x28202a(0x156),_0x324ec1=>_0x324ec1)]}}),_0x1db265;}[_0x246ae8(0x168)](_0x5c6deb,_0x4a75fe){const _0x4f9315=_0x246ae8;if(!_0x5c6deb)return;const _0x421ebd=()=>{const _0x31b3c0=_0xc8e8;_0x4a75fe(),_0x5c6deb[_0x31b3c0(0x136)](_0x31b3c0(0x142),_0x421ebd),_0x5c6deb[_0x31b3c0(0x136)](_0x31b3c0(0x15d),_0x421ebd);};_0x5c6deb[_0x4f9315(0x162)](_0x4f9315(0x142),_0x421ebd),_0x5c6deb[_0x4f9315(0x162)](_0x4f9315(0x15d),_0x421ebd);}[_0x246ae8(0x137)](){const _0x1537bb=_0x246ae8,_0x7bdd0f=new _0xc5708(_0x1537bb(0x165));return _0x7bdd0f[_0x1537bb(0x147)](_0x1537bb(0x159))['to'](this,_0x1537bb(0x158),_0x224c31=>_0x224c31),_0x7bdd0f;}}function In(_0xd5b2cf){const _0x2a4194=_0x246ae8;if(!_0xd5b2cf)return _0xd5b2cf;if(_0xd5b2cf[_0x2a4194(0x16d)]<=0x78)return _0xd5b2cf;const _0x227ab0=_0xd5b2cf[_0x2a4194(0x157)](0x0,0x78),_0x3f812a=_0x227ab0[_0x2a4194(0x15c)]('\x20');return(_0x3f812a>0x0?_0x227ab0[_0x2a4194(0x157)](0x0,_0x3f812a):_0x227ab0)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xf7ae(_0x36dd28,_0x53aa2a){const _0x58392f=_0x5839();return _0xf7ae=function(_0xf7ae4d,_0x82f681){_0xf7ae4d=_0xf7ae4d-0xc1;let _0x31c3ad=_0x58392f[_0xf7ae4d];return _0x31c3ad;},_0xf7ae(_0x36dd28,_0x53aa2a);}const _0x434797=_0xf7ae;(function(_0x54ddaa,_0x145281){const _0x35336d=_0xf7ae,_0x4a28ee=_0x54ddaa();while(!![]){try{const _0x33f183=-parseInt(_0x35336d(0xd3))/0x1+-parseInt(_0x35336d(0xe6))/0x2*(parseInt(_0x35336d(0xe1))/0x3)+-parseInt(_0x35336d(0xc3))/0x4+-parseInt(_0x35336d(0xf0))/0x5*(parseInt(_0x35336d(0x109))/0x6)+parseInt(_0x35336d(0xe8))/0x7+-parseInt(_0x35336d(0xfe))/0x8*(parseInt(_0x35336d(0xc8))/0x9)+parseInt(_0x35336d(0xc1))/0xa*(parseInt(_0x35336d(0xea))/0xb);if(_0x33f183===_0x145281)break;else _0x4a28ee['push'](_0x4a28ee['shift']());}catch(_0x496d06){_0x4a28ee['push'](_0x4a28ee['shift']());}}}(_0x5839,0x3fad5));import{FocusTracker as _0x49ef2c,KeystrokeHandler as _0x1b3c60}from'ckeditor5/src/utils.js';function _0x5839(){const _0x11bb4e=['ck-labeled-field-view_empty','keystrokes','clearError','submitUrl','520NUSvhi','div','861544ZByGky','_handleSubmit','urlInputField','submit','_isValidUrl','25983eqtLiX','ck-button-icon','length','_createUrlInputField','_setupEventHandlers','AI_CHAT_CONTEXT_URL_LABEL','esc','setTemplate','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','locale','_setupTemplate','237435oOxqfb','set','input','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','getValue','createCollection','_updateConfirmButtonState','refreshBalloon','tab','render','ck-button-icon\x20ck-button-back','listenTo','_setupKeystrokes','change:withBackButton','6aedaDb','withBackButton','value','focusTracker','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','42008iMOPEz','_createConfirmButton','2510809KmVoGr','confirmButton','179190TZIByJ','destroy','_createBackButton','stop','add','fieldView','2149540jlaJBM','shift+tab','AI_CHAT_CONTEXT_URL_INVALID_ERROR','errorText','setError','ck-ai-chat-context-controls__url-input-section','AI_CHAT_CONTEXT_URL_ADD_URL','cancel','trim','clear','children','fire','backButton','\x20ck-hidden','56SMwgxe','focus','AI_CHAT_CONTEXT_URL_PLACEHOLDER','ck-ai-chat-context-controls__url-form','forEach','element','execute','_focusables','focusCycler','form','isEnabled','6UoYoYE'];_0x5839=function(){return _0x11bb4e;};return _0x5839();}import{ButtonView as _0x451022,FocusCycler as _0x3bd9ca,LabeledFieldView as _0x8456a8,View as _0x492c18,FormHeaderView as _0x58d753,createLabeledInputText as _0x4cc197,submitHandler as _0xe2dd4}from'ckeditor5/src/ui.js';import{IconCheck as _0x363be2,IconPreviousArrow as _0x4a1fb2}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x36bdc5}from'../../../aicore/utils/common-translations.js';const oh=_0x434797(0x101),ch=_0x434797(0xf5);export class AIChatContextPanelUrlInputView extends _0x492c18{[_0x434797(0xe4)];[_0x434797(0x10b)];[_0x434797(0x105)];[_0x434797(0x106)];[_0x434797(0xc5)];[_0x434797(0xfc)];[_0x434797(0xe9)];constructor(_0x23b5c7){const _0x3718c6=_0x434797;super(_0x23b5c7),this[_0x3718c6(0xe4)]=new _0x49ef2c(),this[_0x3718c6(0x10b)]=new _0x1b3c60(),this[_0x3718c6(0xfc)]=this[_0x3718c6(0xec)](),this[_0x3718c6(0xc5)]=this[_0x3718c6(0xcb)](),this[_0x3718c6(0xe9)]=this[_0x3718c6(0xe7)](),this[_0x3718c6(0x105)]=this[_0x3718c6(0xd8)]([this[_0x3718c6(0xfc)],this[_0x3718c6(0xc5)],this[_0x3718c6(0xe9)]]),this[_0x3718c6(0x106)]=new _0x3bd9ca({'focusables':this[_0x3718c6(0x105)],'focusTracker':this[_0x3718c6(0xe4)],'keystrokeHandler':this[_0x3718c6(0x10b)],'actions':{'focusPrevious':_0x3718c6(0xf1),'focusNext':_0x3718c6(0xdb)}}),this[_0x3718c6(0xd4)](_0x3718c6(0xe2),!0x0),this[_0x3718c6(0xd2)](),this[_0x3718c6(0xcc)](),this[_0x3718c6(0xdf)]();}[_0x434797(0xdc)](){const _0x5f56cb=_0x434797;super[_0x5f56cb(0xdc)](),this[_0x5f56cb(0x105)][_0x5f56cb(0x102)](_0x5a9df6=>{const _0x10764f=_0x5f56cb;this[_0x10764f(0xe4)][_0x10764f(0xee)](_0x5a9df6[_0x10764f(0x103)]),this[_0x10764f(0x10b)][_0x10764f(0xde)](_0x5a9df6[_0x10764f(0x103)]);}),_0xe2dd4({'view':this}),this[_0x5f56cb(0xff)]();}[_0x434797(0xeb)](){const _0x100a68=_0x434797;super[_0x100a68(0xeb)](),this[_0x100a68(0xe4)][_0x100a68(0xeb)](),this[_0x100a68(0x10b)][_0x100a68(0xeb)]();}[_0x434797(0xff)](){const _0x41adb3=_0x434797;this[_0x41adb3(0xc5)][_0x41adb3(0xff)]();}[_0x434797(0xd7)](){const _0x36da1e=_0x434797;return this[_0x36da1e(0xc5)][_0x36da1e(0xef)][_0x36da1e(0x103)]?.[_0x36da1e(0xe3)]?.[_0x36da1e(0xf8)]()||'';}[_0x434797(0xf9)](){const _0x14ff2a=_0x434797;this[_0x14ff2a(0xc5)][_0x14ff2a(0xef)][_0x14ff2a(0x103)][_0x14ff2a(0xe3)]='',this[_0x14ff2a(0xc5)][_0x14ff2a(0xf3)]=null,this[_0x14ff2a(0xe9)][_0x14ff2a(0x108)]=!0x1;}[_0x434797(0xf4)](_0x1a49dc){const _0x21a86f=_0x434797;this[_0x21a86f(0xc5)][_0x21a86f(0xf3)]=_0x1a49dc,this[_0x21a86f(0xd9)](),this[_0x21a86f(0xfb)](_0x21a86f(0xda));}[_0x434797(0x10c)](){const _0x3e78b2=_0x434797;this[_0x3e78b2(0xc5)][_0x3e78b2(0xf3)]=null,this[_0x3e78b2(0xd9)]();}[_0x434797(0xec)](){const _0x34e977=_0x434797,_0x9c01e6=new _0x451022(this[_0x34e977(0xd1)]);return _0x9c01e6[_0x34e977(0xd4)]({'icon':_0x4a1fb2,'tooltip':_0x36bdc5(this[_0x34e977(0xd1)],_0x34e977(0xd0)),'tooltipPosition':'n','class':[_0x34e977(0xdd)]}),this['on'](_0x34e977(0xe0),(_0x570a0c,_0xe9f8f6,_0x3b8cb5)=>{const _0x3e5cdb=_0x34e977;_0x9c01e6[_0x3e5cdb(0xd4)]({'class':[_0x3e5cdb(0xdd)+(_0x3b8cb5?'':_0x3e5cdb(0xfd))]});}),_0x9c01e6;}[_0x434797(0xcb)](){const _0x2388ba=_0x434797,_0x5c396b=new _0x8456a8(this[_0x2388ba(0xd1)],_0x4cc197);return _0x5c396b[_0x2388ba(0xd4)]({'label':_0x36bdc5(this[_0x2388ba(0xd1)],_0x2388ba(0xcd)),'class':_0x2388ba(0x10a)}),_0x5c396b[_0x2388ba(0xef)][_0x2388ba(0xd4)]({'placeholder':_0x36bdc5(this[_0x2388ba(0xd1)],_0x2388ba(0x100))}),_0x5c396b;}[_0x434797(0xe7)](){const _0x55d5eb=_0x434797,_0x5c7dc7=new _0x451022(this[_0x55d5eb(0xd1)]);return _0x5c7dc7[_0x55d5eb(0xd4)]({'icon':_0x363be2,'tooltip':_0x36bdc5(this[_0x55d5eb(0xd1)],_0x55d5eb(0xf6)),'tooltipPosition':'n','class':_0x55d5eb(0xc9),'type':_0x55d5eb(0xc6),'isEnabled':!0x1}),_0x5c7dc7;}[_0x434797(0xd2)](){const _0x2f7325=_0x434797,_0x70c41=new _0x58d753(this[_0x2f7325(0xd1)],{'label':_0x36bdc5(this[_0x2f7325(0xd1)],_0x2f7325(0xf6)),'class':_0x2f7325(0xd6)});_0x70c41[_0x2f7325(0xfa)][_0x2f7325(0xee)](this[_0x2f7325(0xfc)],0x0),this[_0x2f7325(0xcf)]({'tag':_0x2f7325(0x107),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x70c41,{'tag':_0x2f7325(0xc2),'attributes':{'class':ch},'children':[this[_0x2f7325(0xc5)],this[_0x2f7325(0xe9)]]}]});}[_0x434797(0xcc)](){const _0x3bfa8b=_0x434797;this[_0x3bfa8b(0xfc)]['on'](_0x3bfa8b(0x104),()=>{const _0x4d88c9=_0x3bfa8b;this[_0x4d88c9(0xf9)](),this[_0x4d88c9(0xfb)](_0x4d88c9(0xf7));}),this[_0x3bfa8b(0xc5)][_0x3bfa8b(0xef)]['on'](_0x3bfa8b(0xd5),()=>{const _0x17bbf1=_0x3bfa8b;this[_0x17bbf1(0x10c)](),this[_0x17bbf1(0xd9)](),this[_0x17bbf1(0xfb)](_0x17bbf1(0xda));}),this['on'](_0x3bfa8b(0xc6),_0x2b1249=>{const _0x7aff6f=_0x3bfa8b;_0x2b1249[_0x7aff6f(0xed)](),this[_0x7aff6f(0xc4)]();});}[_0x434797(0xdf)](){const _0x4379b6=_0x434797;this[_0x4379b6(0x10b)][_0x4379b6(0xd4)](_0x4379b6(0xce),(_0x44249d,_0x35a3bd)=>{const _0x23e645=_0x4379b6;this[_0x23e645(0xf9)](),this[_0x23e645(0xfb)](_0x23e645(0xf7)),_0x35a3bd();});}[_0x434797(0xc4)](){const _0x111b72=_0x434797,_0x489f06=this[_0x111b72(0xd7)]()[_0x111b72(0xf8)]();_0x489f06?this[_0x111b72(0xc7)](_0x489f06)?(this[_0x111b72(0x10c)](),this[_0x111b72(0xfb)](_0x111b72(0x10d),_0x489f06)):this[_0x111b72(0xf4)](_0x36bdc5(this[_0x111b72(0xd1)],_0x111b72(0xf2))):this[_0x111b72(0xf4)](_0x36bdc5(this[_0x111b72(0xd1)],_0x111b72(0xe5)));}[_0x434797(0xd9)](){const _0x4bac33=_0x434797,_0x2faba9=this[_0x4bac33(0xd7)]()[_0x4bac33(0xf8)](),_0x515b78=!!this[_0x4bac33(0xc5)][_0x4bac33(0xf3)];this[_0x4bac33(0xe9)][_0x4bac33(0x108)]=_0x2faba9[_0x4bac33(0xca)]>0x0&&!_0x515b78;}[_0x434797(0xc7)](_0x5086ad){try{return!!new URL(_0x5086ad);}catch{return!0x1;}}}
23
+ const _0x137ff1=_0x3d3c;(function(_0x45f841,_0x4c94fa){const _0x544b39=_0x3d3c,_0x1fc82c=_0x45f841();while(!![]){try{const _0x5842bd=parseInt(_0x544b39(0x12f))/0x1+-parseInt(_0x544b39(0x16a))/0x2+-parseInt(_0x544b39(0x14a))/0x3*(-parseInt(_0x544b39(0x14d))/0x4)+-parseInt(_0x544b39(0x142))/0x5*(parseInt(_0x544b39(0x138))/0x6)+parseInt(_0x544b39(0x168))/0x7+parseInt(_0x544b39(0x132))/0x8+parseInt(_0x544b39(0x124))/0x9*(-parseInt(_0x544b39(0x12a))/0xa);if(_0x5842bd===_0x4c94fa)break;else _0x1fc82c['push'](_0x1fc82c['shift']());}catch(_0x545869){_0x1fc82c['push'](_0x1fc82c['shift']());}}}(_0x4495,0x34fd2));import{FocusTracker as _0x123e03,KeystrokeHandler as _0x264255}from'ckeditor5/src/utils.js';function _0x4495(){const _0x1bdd9e=['_createUrlInputField','910dgLwMt','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','\x20ck-hidden','focusTracker','destroy','230443bqVDGe','tab','ck-button-icon\x20ck-button-back','1515664mDWyme','submit','setTemplate','_focusables','fieldView','_isValidUrl','5388DkXsmM','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_setupKeystrokes','ck-labeled-field-view_empty','trim','cancel','fire','element','change:withBackButton','_setupTemplate','1135IktxZr','refreshBalloon','errorText','esc','createCollection','_setupEventHandlers','listenTo','children','3vuYQxJ','_handleSubmit','confirmButton','1674208mAqJNt','getValue','isEnabled','render','withBackButton','locale','clearError','AI_CHAT_CONTEXT_URL_ADD_URL','set','div','stop','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','focus','submitUrl','form','AI_CHAT_CONTEXT_URL_INVALID_ERROR','forEach','ck-ai-chat-context-controls__url-form','setError','execute','length','urlInputField','add','focusCycler','input','shift+tab','ck-ai-chat-context-controls__url-input-section','578130XgChgy','_createConfirmButton','746784FdUBOh','_updateConfirmButtonState','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_LABEL','clear','keystrokes','12537UQIVYv','_createBackButton','value','ck-button-icon','backButton'];_0x4495=function(){return _0x1bdd9e;};return _0x4495();}import{ButtonView as _0x51d4d5,FocusCycler as _0x13774b,LabeledFieldView as _0x59f4ff,View as _0x3d72e2,FormHeaderView as _0x5a7446,createLabeledInputText as _0x352c94,submitHandler as _0x57887e}from'ckeditor5/src/ui.js';import{IconCheck as _0x38d41b,IconPreviousArrow as _0x58f7fe}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x110877}from'../../../aicore/utils/common-translations.js';const oh=_0x137ff1(0x15e),ch=_0x137ff1(0x167);function _0x3d3c(_0x3e7643,_0x4e1ebb){const _0x44955f=_0x4495();return _0x3d3c=function(_0x3d3c67,_0x50ca81){_0x3d3c67=_0x3d3c67-0x121;let _0x31cac6=_0x44955f[_0x3d3c67];return _0x31cac6;},_0x3d3c(_0x3e7643,_0x4e1ebb);}export class AIChatContextPanelUrlInputView extends _0x3d72e2{[_0x137ff1(0x12d)];[_0x137ff1(0x123)];[_0x137ff1(0x135)];[_0x137ff1(0x164)];[_0x137ff1(0x162)];[_0x137ff1(0x128)];[_0x137ff1(0x14c)];constructor(_0x44b369){const _0x5d30c4=_0x137ff1;super(_0x44b369),this[_0x5d30c4(0x12d)]=new _0x123e03(),this[_0x5d30c4(0x123)]=new _0x264255(),this[_0x5d30c4(0x128)]=this[_0x5d30c4(0x125)](),this[_0x5d30c4(0x162)]=this[_0x5d30c4(0x129)](),this[_0x5d30c4(0x14c)]=this[_0x5d30c4(0x169)](),this[_0x5d30c4(0x135)]=this[_0x5d30c4(0x146)]([this[_0x5d30c4(0x128)],this[_0x5d30c4(0x162)],this[_0x5d30c4(0x14c)]]),this[_0x5d30c4(0x164)]=new _0x13774b({'focusables':this[_0x5d30c4(0x135)],'focusTracker':this[_0x5d30c4(0x12d)],'keystrokeHandler':this[_0x5d30c4(0x123)],'actions':{'focusPrevious':_0x5d30c4(0x166),'focusNext':_0x5d30c4(0x130)}}),this[_0x5d30c4(0x155)](_0x5d30c4(0x151),!0x0),this[_0x5d30c4(0x141)](),this[_0x5d30c4(0x147)](),this[_0x5d30c4(0x13a)]();}[_0x137ff1(0x150)](){const _0x192df5=_0x137ff1;super[_0x192df5(0x150)](),this[_0x192df5(0x135)][_0x192df5(0x15d)](_0x257888=>{const _0x240fbd=_0x192df5;this[_0x240fbd(0x12d)][_0x240fbd(0x163)](_0x257888[_0x240fbd(0x13f)]),this[_0x240fbd(0x123)][_0x240fbd(0x148)](_0x257888[_0x240fbd(0x13f)]);}),_0x57887e({'view':this}),this[_0x192df5(0x159)]();}[_0x137ff1(0x12e)](){const _0x18355a=_0x137ff1;super[_0x18355a(0x12e)](),this[_0x18355a(0x12d)][_0x18355a(0x12e)](),this[_0x18355a(0x123)][_0x18355a(0x12e)]();}[_0x137ff1(0x159)](){const _0x44de84=_0x137ff1;this[_0x44de84(0x162)][_0x44de84(0x159)]();}[_0x137ff1(0x14e)](){const _0x1193cd=_0x137ff1;return this[_0x1193cd(0x162)][_0x1193cd(0x136)][_0x1193cd(0x13f)]?.[_0x1193cd(0x126)]?.[_0x1193cd(0x13c)]()||'';}[_0x137ff1(0x122)](){const _0x5cc96e=_0x137ff1;this[_0x5cc96e(0x162)][_0x5cc96e(0x136)][_0x5cc96e(0x13f)][_0x5cc96e(0x126)]='',this[_0x5cc96e(0x162)][_0x5cc96e(0x144)]=null,this[_0x5cc96e(0x14c)][_0x5cc96e(0x14f)]=!0x1;}[_0x137ff1(0x15f)](_0x1cacca){const _0x39d0ad=_0x137ff1;this[_0x39d0ad(0x162)][_0x39d0ad(0x144)]=_0x1cacca,this[_0x39d0ad(0x16b)](),this[_0x39d0ad(0x13e)](_0x39d0ad(0x143));}[_0x137ff1(0x153)](){const _0x1d8a52=_0x137ff1;this[_0x1d8a52(0x162)][_0x1d8a52(0x144)]=null,this[_0x1d8a52(0x16b)]();}[_0x137ff1(0x125)](){const _0x5b94a0=_0x137ff1,_0x4cf597=new _0x51d4d5(this[_0x5b94a0(0x152)]);return _0x4cf597[_0x5b94a0(0x155)]({'icon':_0x58f7fe,'tooltip':_0x110877(this[_0x5b94a0(0x152)],_0x5b94a0(0x12b)),'tooltipPosition':'n','class':[_0x5b94a0(0x131)]}),this['on'](_0x5b94a0(0x140),(_0x306d26,_0x1a0545,_0x1a2ef4)=>{const _0x287811=_0x5b94a0;_0x4cf597[_0x287811(0x155)]({'class':[_0x287811(0x131)+(_0x1a2ef4?'':_0x287811(0x12c))]});}),_0x4cf597;}[_0x137ff1(0x129)](){const _0x47f28d=_0x137ff1,_0x5bae1e=new _0x59f4ff(this[_0x47f28d(0x152)],_0x352c94);return _0x5bae1e[_0x47f28d(0x155)]({'label':_0x110877(this[_0x47f28d(0x152)],_0x47f28d(0x121)),'class':_0x47f28d(0x13b)}),_0x5bae1e[_0x47f28d(0x136)][_0x47f28d(0x155)]({'placeholder':_0x110877(this[_0x47f28d(0x152)],_0x47f28d(0x139))}),_0x5bae1e;}[_0x137ff1(0x169)](){const _0x1c5c59=_0x137ff1,_0x344d37=new _0x51d4d5(this[_0x1c5c59(0x152)]);return _0x344d37[_0x1c5c59(0x155)]({'icon':_0x38d41b,'tooltip':_0x110877(this[_0x1c5c59(0x152)],_0x1c5c59(0x154)),'tooltipPosition':'n','class':_0x1c5c59(0x127),'type':_0x1c5c59(0x133),'isEnabled':!0x1}),_0x344d37;}[_0x137ff1(0x141)](){const _0x3dc9a3=_0x137ff1,_0x1e0543=new _0x5a7446(this[_0x3dc9a3(0x152)],{'label':_0x110877(this[_0x3dc9a3(0x152)],_0x3dc9a3(0x154)),'class':_0x3dc9a3(0x16c)});_0x1e0543[_0x3dc9a3(0x149)][_0x3dc9a3(0x163)](this[_0x3dc9a3(0x128)],0x0),this[_0x3dc9a3(0x134)]({'tag':_0x3dc9a3(0x15b),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x1e0543,{'tag':_0x3dc9a3(0x156),'attributes':{'class':ch},'children':[this[_0x3dc9a3(0x162)],this[_0x3dc9a3(0x14c)]]}]});}[_0x137ff1(0x147)](){const _0x4e0c5b=_0x137ff1;this[_0x4e0c5b(0x128)]['on'](_0x4e0c5b(0x160),()=>{const _0x21ea13=_0x4e0c5b;this[_0x21ea13(0x122)](),this[_0x21ea13(0x13e)](_0x21ea13(0x13d));}),this[_0x4e0c5b(0x162)][_0x4e0c5b(0x136)]['on'](_0x4e0c5b(0x165),()=>{const _0x227fd5=_0x4e0c5b;this[_0x227fd5(0x153)](),this[_0x227fd5(0x16b)](),this[_0x227fd5(0x13e)](_0x227fd5(0x143));}),this['on'](_0x4e0c5b(0x133),_0x4ae85b=>{const _0x2aec4e=_0x4e0c5b;_0x4ae85b[_0x2aec4e(0x157)](),this[_0x2aec4e(0x14b)]();});}[_0x137ff1(0x13a)](){const _0x42b387=_0x137ff1;this[_0x42b387(0x123)][_0x42b387(0x155)](_0x42b387(0x145),(_0x2df2c8,_0x293e24)=>{const _0x20437d=_0x42b387;this[_0x20437d(0x122)](),this[_0x20437d(0x13e)](_0x20437d(0x13d)),_0x293e24();});}[_0x137ff1(0x14b)](){const _0x5969dd=_0x137ff1,_0x24851b=this[_0x5969dd(0x14e)]()[_0x5969dd(0x13c)]();_0x24851b?this[_0x5969dd(0x137)](_0x24851b)?(this[_0x5969dd(0x153)](),this[_0x5969dd(0x13e)](_0x5969dd(0x15a),_0x24851b)):this[_0x5969dd(0x15f)](_0x110877(this[_0x5969dd(0x152)],_0x5969dd(0x15c))):this[_0x5969dd(0x15f)](_0x110877(this[_0x5969dd(0x152)],_0x5969dd(0x158)));}[_0x137ff1(0x16b)](){const _0x308aeb=_0x137ff1,_0x51ae5a=this[_0x308aeb(0x14e)]()[_0x308aeb(0x13c)](),_0x2e910d=!!this[_0x308aeb(0x162)][_0x308aeb(0x144)];this[_0x308aeb(0x14c)][_0x308aeb(0x14f)]=_0x51ae5a[_0x308aeb(0x161)]>0x0&&!_0x2e910d;}[_0x137ff1(0x137)](_0x48fc3c){try{return!!new URL(_0x48fc3c);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x963c68=_0x3fa9;(function(_0x1fb5f6,_0x11d489){const _0x28cec3=_0x3fa9,_0x595582=_0x1fb5f6();while(!![]){try{const _0x49d148=-parseInt(_0x28cec3(0x14c))/0x1+parseInt(_0x28cec3(0x152))/0x2+-parseInt(_0x28cec3(0x1cf))/0x3+-parseInt(_0x28cec3(0x1b9))/0x4*(parseInt(_0x28cec3(0x19a))/0x5)+parseInt(_0x28cec3(0x15a))/0x6+-parseInt(_0x28cec3(0x183))/0x7*(parseInt(_0x28cec3(0x1d0))/0x8)+parseInt(_0x28cec3(0x1bf))/0x9*(parseInt(_0x28cec3(0x1ad))/0xa);if(_0x49d148===_0x11d489)break;else _0x595582['push'](_0x595582['shift']());}catch(_0x3d6804){_0x595582['push'](_0x595582['shift']());}}}(_0x2324,0xc01b1));import{BalloonPanelView as _0x25f420,ButtonView as _0x2b00e9,clickOutsideHandler as _0x120a92,FileDialogButtonView as _0x3c2857,IconView as _0x31ee02,View as _0x21d602}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x12b036,IconDocument as _0x4b6af2,IconDocumentOutline as _0x424f93,IconDropdownArrow as _0x5443c3,IconLink as _0x3d4f9d,IconPaperClip as _0x3e2f72}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x47368a}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x3582ec}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x46bc41}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x44c3e7}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x28ff2a}from'./resources/aichatresourcesballoonview.js';function _0x3fa9(_0x2024d3,_0x52bba1){const _0x232412=_0x2324();return _0x3fa9=function(_0x3fa9c5,_0x485a85){_0x3fa9c5=_0x3fa9c5-0x13c;let _0x357dbb=_0x232412[_0x3fa9c5];return _0x357dbb;},_0x3fa9(_0x2024d3,_0x52bba1);}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x963c68(0x1a9),_0x963c68(0x1c5),_0x963c68(0x180),_0x963c68(0x142),_0x963c68(0x1cc),_0x963c68(0x1bc),_0x963c68(0x15c)];const Ro=_0x963c68(0x194),Oo=_0x963c68(0x1a8),Uo=_0x963c68(0x1ac),Lo=_0x963c68(0x16c),No=_0x963c68(0x175),Mo=_0x963c68(0x150),Ho=_0x963c68(0x1b1),jo=_0x963c68(0x182),Fo=_0x963c68(0x185),Xo=_0x963c68(0x13d),yo=_0x963c68(0x154),Do=_0x963c68(0x146),$o=[_0x25f420[_0x963c68(0x1d1)][_0x963c68(0x13c)],_0x25f420[_0x963c68(0x1d1)][_0x963c68(0x145)],_0x25f420[_0x963c68(0x1d1)][_0x963c68(0x186)],_0x25f420[_0x963c68(0x1d1)][_0x963c68(0x1c1)],_0x25f420[_0x963c68(0x1d1)][_0x963c68(0x167)],_0x25f420[_0x963c68(0x1d1)][_0x963c68(0x16f)]];export class AIChatContextPanelView extends _0x21d602{[_0x963c68(0x199)];[_0x963c68(0x1ab)]=this[_0x963c68(0x1aa)]();[_0x963c68(0x17c)]=this[_0x963c68(0x1aa)]();[_0x963c68(0x155)];[_0x963c68(0x141)];[_0x963c68(0x1a0)];[_0x963c68(0x18a)];[_0x963c68(0x197)];[_0x963c68(0x140)];[_0x963c68(0x18c)]=!0x1;[_0x963c68(0x1b7)];constructor(_0x5af33c,_0x594baf){const _0x252901=_0x963c68;super(_0x5af33c),this[_0x252901(0x1b7)]=_0x594baf[_0x252901(0x1b7)],this[_0x252901(0x1ab)]=this[_0x252901(0x1aa)](),this[_0x252901(0x17c)]=this[_0x252901(0x1aa)](),this[_0x252901(0x199)]=this[_0x252901(0x161)](_0x5af33c),this[_0x252901(0x141)]=this[_0x252901(0x1cb)](_0x5af33c),this[_0x252901(0x1a0)]=this[_0x252901(0x178)](_0x5af33c),this[_0x252901(0x197)]=this[_0x252901(0x14a)](_0x5af33c,_0x594baf);const _0x19924b={'cssClasses':{'showMoreButton':Xo,'showMoreBalloon':yo,'overflowContainer':Fo,'controlsButton':jo}};this[_0x252901(0x155)]=new _0x46bc41(_0x5af33c,this[_0x252901(0x1ab)],_0x19924b,this[_0x252901(0x1b7)],this),this[_0x252901(0x140)]={'buttonView':this[_0x252901(0x199)],'balloonView':this[_0x252901(0x141)],'hideMethod':this[_0x252901(0x17a)][_0x252901(0x165)](this),'showMethod':this[_0x252901(0x181)][_0x252901(0x165)](this)},this[_0x252901(0x15e)](),this[_0x252901(0x196)]();}[_0x963c68(0x171)](){const _0x5ce7b0=_0x963c68;super[_0x5ce7b0(0x171)](),this[_0x5ce7b0(0x147)](),this[_0x5ce7b0(0x155)][_0x5ce7b0(0x1c7)](this[_0x5ce7b0(0x1c3)]),this[_0x5ce7b0(0x155)][_0x5ce7b0(0x170)]();}[_0x963c68(0x1ca)](){const _0x583d8e=_0x963c68;super[_0x583d8e(0x1ca)](),this[_0x583d8e(0x155)][_0x583d8e(0x1ca)](),this[_0x583d8e(0x197)][_0x583d8e(0x1ca)]();}[_0x963c68(0x163)](_0x210747,_0x5ac3d0){const _0x106303=_0x963c68,_0x393116=this[_0x106303(0x174)](_0x210747,_0x106303(0x1af),!0x0,_0x5ac3d0);this[_0x106303(0x172)](_0x393116,this[_0x106303(0x1ab)]),this[_0x106303(0x155)][_0x106303(0x170)]();}[_0x963c68(0x1cc)](_0x5be4e6){const _0x219bfb=_0x963c68;this[_0x219bfb(0x1a4)](_0x5be4e6,this[_0x219bfb(0x1ab)]),this[_0x219bfb(0x1a4)](_0x5be4e6,this[_0x219bfb(0x155)][_0x219bfb(0x19d)]),this[_0x219bfb(0x155)][_0x219bfb(0x170)]();}[_0x963c68(0x1a7)](_0x1ed4ac,_0x2eb7f0){const _0x34290d=_0x963c68;let _0x2b2f4a=this[_0x34290d(0x1ab)][_0x34290d(0x19f)](_0x35140b=>_0x35140b['id']===_0x1ed4ac);_0x2b2f4a||(_0x2b2f4a=this[_0x34290d(0x155)][_0x34290d(0x19d)][_0x34290d(0x19f)](_0x4e925b=>_0x4e925b['id']===_0x1ed4ac)),_0x2b2f4a&&(_0x2b2f4a[_0x34290d(0x177)]=_0x2eb7f0);}[_0x963c68(0x1b3)](_0x1f19d8){const _0x65644=_0x963c68;this[_0x65644(0x17c)][_0x65644(0x1a3)]();for(const _0x3e611a of _0x1f19d8){const _0x56a911=this[_0x65644(0x174)](_0x3e611a,_0x65644(0x1a6),!0x1,!0x1);this[_0x65644(0x172)](_0x56a911,this[_0x65644(0x17c)]);}}[_0x963c68(0x1c8)](){const _0x1a8719=_0x963c68;this[_0x1a8719(0x1ab)][_0x1a8719(0x1a3)](),this[_0x1a8719(0x155)][_0x1a8719(0x1a3)]();}[_0x963c68(0x1c9)](){const _0x458332=_0x963c68;this[_0x458332(0x17c)][_0x458332(0x1a3)]();}[_0x963c68(0x17e)](_0x3fbb03,_0x5c112a,_0xdbb515){const _0x595a5c=_0x963c68;this[_0x595a5c(0x197)][_0x595a5c(0x17e)](_0x3fbb03,_0x5c112a,_0xdbb515);}[_0x963c68(0x17a)](){const _0x37361e=_0x963c68;this[_0x37361e(0x176)](!0x1);}[_0x963c68(0x181)](){const _0xce4a32=_0x963c68;this[_0xce4a32(0x176)](!0x0);}[_0x963c68(0x1c6)](){const _0x23ac62=_0x963c68;this[_0x23ac62(0x1a0)][_0x23ac62(0x195)](),this[_0x23ac62(0x199)][_0x23ac62(0x156)]=!0x1,this[_0x23ac62(0x18a)]&&this[_0x23ac62(0x18a)][_0x23ac62(0x1a3)]();}[_0x963c68(0x1be)](){const _0x2e9c02=_0x963c68;this[_0x2e9c02(0x1a0)][_0x2e9c02(0x16b)](),this[_0x2e9c02(0x199)][_0x2e9c02(0x156)]=!0x0;}[_0x963c68(0x18b)]({source:_0x9a1486,withBackButton:_0x6812d7}){const _0x5a75e5=_0x963c68;this[_0x5a75e5(0x197)][_0x5a75e5(0x159)]({'source':_0x9a1486,'withBackButton':_0x6812d7}),this[_0x5a75e5(0x199)][_0x5a75e5(0x156)]=!0x0;}[_0x963c68(0x1d2)](_0x470f06,_0x4dab3c,_0x174fed,_0x57ac39){const _0x452c46=_0x963c68;this[_0x452c46(0x197)][_0x452c46(0x1d2)](_0x470f06,_0x174fed,_0x57ac39);}[_0x963c68(0x184)](_0x5a38ff){const _0x5a5c64=_0x963c68;this[_0x5a5c64(0x197)][_0x5a5c64(0x184)](_0x5a38ff),this[_0x5a5c64(0x199)][_0x5a5c64(0x156)]=!0x1;}[_0x963c68(0x143)](_0x3bb93c){const _0x553414=_0x963c68;this[_0x553414(0x157)](this[_0x553414(0x141)],this[_0x553414(0x169)],_0x3bb93c),this[_0x553414(0x19e)](_0x3bb93c);}[_0x963c68(0x19e)](_0x3a944c){const _0x23c05f=_0x963c68,_0xbf1285=!_0x3a944c[_0x23c05f(0x1b5)][_0x23c05f(0x193)]&&_0x3a944c[_0x23c05f(0x1b5)][_0x23c05f(0x18d)],_0x3aef5c=_0x3a944c[_0x23c05f(0x13f)][_0x23c05f(0x18d)],_0x5ef131=_0x3a944c[_0x23c05f(0x168)][_0x23c05f(0x18d)],_0x501ace=_0x3a944c[_0x23c05f(0x13e)][_0x23c05f(0x1ba)]>0x0,_0x57c7b7=_0x3a944c[_0x23c05f(0x17b)]&&_0x3a944c[_0x23c05f(0x17b)][_0x23c05f(0x1ba)]>0x0;this[_0x23c05f(0x199)][_0x23c05f(0x1cd)]=_0xbf1285||_0x3aef5c||_0x5ef131||_0x501ace||_0x57c7b7;}[_0x963c68(0x15e)](){const _0xf1a94c=_0x963c68;this[_0xf1a94c(0x158)]({'tag':_0xf1a94c(0x1a2),'attributes':{'class':[Ro,_0xf1a94c(0x149)]},'children':[{'tag':_0xf1a94c(0x1a2),'attributes':{'class':Oo},'children':this[_0xf1a94c(0x1ab)]}]});}[_0x963c68(0x196)](){const _0x207d1b=_0x963c68;this[_0x207d1b(0x199)]['on'](_0x207d1b(0x14f),()=>{const _0x300408=_0x207d1b;this[_0x300408(0x1c4)]();});}[_0x963c68(0x161)](_0x4d10dd){const _0x4762ed=_0x963c68,_0x38bbc5=new _0x2b00e9(_0x4d10dd);return _0x38bbc5[_0x4762ed(0x190)]({'label':_0x44c3e7(_0x4d10dd,_0x4762ed(0x16d)),'class':jo+'\x20'+Lo,'icon':_0x3e2f72,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x38bbc5;}[_0x963c68(0x1cb)](_0x233e48){const _0x1984a1=_0x963c68;return this[_0x1984a1(0x17f)](_0x233e48,Uo);}[_0x963c68(0x178)](_0x233195){const _0x3d3c12=_0x963c68,_0x60899c=this[_0x3d3c12(0x17f)](_0x233195,No);return this[_0x3d3c12(0x162)](_0x60899c,_0x233195),_0x60899c;}[_0x963c68(0x14a)](_0xb46b6a,_0x2e261e){const _0x125d06=_0x963c68,_0x5ac4b4={'searchInputVisibleFrom':_0x2e261e[_0x125d06(0x16e)],'onBackToContext':()=>{const _0x3fd87a=_0x125d06;this[_0x3fd87a(0x181)](),this[_0x3fd87a(0x141)][_0x3fd87a(0x160)]({'target':this[_0x3fd87a(0x199)][_0x3fd87a(0x1c3)],'limiter':this[_0x3fd87a(0x173)](),'positions':$o});},'onResourceSelected':(_0x322786,_0x34eb39)=>{const _0x302947=_0x125d06;this[_0x302947(0x1b4)](_0x302947(0x142),{'source':_0x322786,'resource':_0x34eb39});},'onLoadSourceResources':_0x5c8b6a=>{const _0x1d4dcf=_0x125d06;this[_0x1d4dcf(0x1b4)](_0x1d4dcf(0x1bc),_0x5c8b6a);},'onBalloonClosed':()=>{const _0x40e29f=_0x125d06;this[_0x40e29f(0x199)][_0x40e29f(0x156)]=!0x1;},'getLimiterElement':()=>this[_0x125d06(0x173)](),'getTargetElement':()=>this[_0x125d06(0x199)][_0x125d06(0x1c3)]};return new _0x28ff2a(_0xb46b6a,_0x2e261e[_0x125d06(0x1b7)],_0x5ac4b4);}[_0x963c68(0x173)](){const _0x3593be=_0x963c68;return this[_0x3593be(0x1c3)]?.[_0x3593be(0x1c2)]('.'+Do)||document[_0x3593be(0x14e)];}[_0x963c68(0x17f)](_0x1393a7,_0x4b12c6){const _0x1a13d3=_0x963c68,_0x46dfb7=new _0x25f420(_0x1393a7);return _0x46dfb7[_0x1a13d3(0x1a1)]({'attributes':{'class':_0x4b12c6}}),this[_0x1a13d3(0x1b7)][_0x1a13d3(0x15f)](_0x46dfb7),_0x46dfb7;}[_0x963c68(0x157)](_0x1445ca,_0x6f876,_0x45457a){const _0x54b0b3=_0x963c68;if(_0x1445ca[_0x54b0b3(0x187)][_0x54b0b3(0x1a3)](),!_0x45457a[_0x54b0b3(0x1b5)][_0x54b0b3(0x193)]&&_0x45457a[_0x54b0b3(0x1b5)][_0x54b0b3(0x18d)]){const _0x2962c9=this[_0x54b0b3(0x179)](_0x6f876,{'label':_0x44c3e7(_0x6f876,_0x54b0b3(0x192)),'icon':_0x4b6af2});_0x2962c9['on'](_0x54b0b3(0x14f),()=>{const _0x29b2a6=_0x54b0b3;this[_0x29b2a6(0x1b4)](_0x29b2a6(0x1a9)),this[_0x29b2a6(0x17a)]();}),_0x1445ca[_0x54b0b3(0x187)][_0x54b0b3(0x15f)](_0x2962c9);}if(_0x45457a[_0x54b0b3(0x13f)][_0x54b0b3(0x18d)]){const _0x333e42=this[_0x54b0b3(0x179)](_0x6f876,{'label':_0x44c3e7(_0x6f876,_0x54b0b3(0x1c0)),'icon':_0x3d4f9d});_0x333e42['on'](_0x54b0b3(0x14f),()=>{const _0x4b0cfb=_0x54b0b3;this[_0x4b0cfb(0x17a)](),this[_0x4b0cfb(0x1be)](),this[_0x4b0cfb(0x1a0)][_0x4b0cfb(0x160)]({'target':this[_0x4b0cfb(0x199)][_0x4b0cfb(0x1c3)],'limiter':this[_0x4b0cfb(0x173)](),'positions':$o}),this[_0x4b0cfb(0x18a)][_0x4b0cfb(0x18f)]();}),_0x1445ca[_0x54b0b3(0x187)][_0x54b0b3(0x15f)](_0x333e42);}if(_0x45457a[_0x54b0b3(0x168)][_0x54b0b3(0x18d)]){const _0x47e6a7=new _0x3c2857(_0x6f876);_0x47e6a7[_0x54b0b3(0x190)]({'label':_0x44c3e7(_0x6f876,_0x54b0b3(0x151)),'icon':_0x12b036,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x47e6a7['on'](_0x54b0b3(0x14f),()=>{const _0x59b736=_0x54b0b3;this[_0x59b736(0x17a)]();}),_0x47e6a7['on'](_0x54b0b3(0x16a),(_0x402106,_0x278cf1)=>{const _0x36a936=_0x54b0b3;this[_0x36a936(0x1b4)](_0x36a936(0x1c5),_0x278cf1);}),_0x47e6a7[_0x54b0b3(0x198)]=!0x0,_0x1445ca[_0x54b0b3(0x187)][_0x54b0b3(0x15f)](_0x47e6a7);}for(const _0x7a0142 of _0x45457a[_0x54b0b3(0x13e)]){const _0x528f6d=this[_0x54b0b3(0x179)](_0x6f876,{'label':_0x7a0142[_0x54b0b3(0x153)],'icon':_0x7a0142[_0x54b0b3(0x19b)]||_0x424f93,'type':_0x54b0b3(0x166)});_0x1445ca[_0x54b0b3(0x187)][_0x54b0b3(0x15f)](_0x528f6d),_0x528f6d['on'](_0x54b0b3(0x14f),()=>{const _0xfdcd97=_0x54b0b3;this[_0xfdcd97(0x17a)](),this[_0xfdcd97(0x18b)]({'source':_0x7a0142,'withBackButton':!this[_0xfdcd97(0x18c)]});});}for(const _0x5b0755 of _0x45457a[_0x54b0b3(0x17b)]||[]){const _0x806388=this[_0x54b0b3(0x179)](_0x6f876,{'label':_0x5b0755[_0x54b0b3(0x153)],'icon':_0x5b0755[_0x54b0b3(0x19b)]||_0x424f93,'type':_0x54b0b3(0x1b8)});_0x1445ca[_0x54b0b3(0x187)][_0x54b0b3(0x15f)](_0x806388),_0x806388['on'](_0x54b0b3(0x14f),()=>{const _0x165601=_0x54b0b3;this[_0x165601(0x17a)](),this[_0x165601(0x1b4)](_0x165601(0x15c),_0x5b0755);});}this[_0x54b0b3(0x18c)]=0x1===_0x1445ca[_0x54b0b3(0x187)][_0x54b0b3(0x1ba)],this[_0x54b0b3(0x18a)][_0x54b0b3(0x189)]=!this[_0x54b0b3(0x18c)];}[_0x963c68(0x162)](_0x5467dd,_0x3a8ebe){const _0x8dee83=_0x963c68;this[_0x8dee83(0x18a)]=new _0x3582ec(_0x3a8ebe),this[_0x8dee83(0x18a)]['on'](_0x8dee83(0x18e),(_0x2938f8,_0xbbda6e)=>{const _0x3a906c=_0x8dee83;this[_0x3a906c(0x188)](_0xbbda6e);}),this[_0x8dee83(0x18a)]['on'](_0x8dee83(0x14b),()=>{const _0x126f20=_0x8dee83;this[_0x126f20(0x1c6)](),this[_0x126f20(0x18c)]||(this[_0x126f20(0x181)](),this[_0x126f20(0x141)][_0x126f20(0x160)]({'target':this[_0x126f20(0x199)][_0x126f20(0x1c3)],'limiter':this[_0x126f20(0x173)](),'positions':$o}));}),this[_0x8dee83(0x18a)]['on'](_0x8dee83(0x191),()=>{const _0x4e7d32=_0x8dee83;this[_0x4e7d32(0x1a0)][_0x4e7d32(0x1ce)]&&this[_0x4e7d32(0x1a0)][_0x4e7d32(0x160)]({'target':this[_0x4e7d32(0x199)][_0x4e7d32(0x1c3)],'limiter':this[_0x4e7d32(0x173)](),'positions':$o});}),_0x5467dd[_0x8dee83(0x187)][_0x8dee83(0x15f)](this[_0x8dee83(0x18a)]);}[_0x963c68(0x179)](_0x284f16,_0x5dd91d){const _0xddf8d0=_0x963c68,_0x17e8a3=_0xddf8d0(0x166)===_0x5dd91d[_0xddf8d0(0x148)]?new SourcesBalloonButtonView(_0x284f16):new _0x2b00e9(_0x284f16);return _0x17e8a3[_0xddf8d0(0x190)]({'label':_0x5dd91d[_0xddf8d0(0x153)],'icon':_0x5dd91d[_0xddf8d0(0x19b)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x17e8a3;}[_0x963c68(0x147)](){const _0x4dde1e=_0x963c68;this[_0x4dde1e(0x1ae)](),this[_0x4dde1e(0x15d)]();}[_0x963c68(0x15d)](){const _0x1d1f2c=_0x963c68;_0x120a92({'emitter':this[_0x1d1f2c(0x1a0)],'contextElements':[this[_0x1d1f2c(0x1a0)][_0x1d1f2c(0x1c3)]],'callback':()=>{const _0x5ec72c=_0x1d1f2c;this[_0x5ec72c(0x1c6)]();},'activator':()=>this[_0x1d1f2c(0x1a0)][_0x1d1f2c(0x1ce)]});}[_0x963c68(0x176)](_0x56867b){const _0x2c5318=_0x963c68,_0x5e2c55=this[_0x2c5318(0x140)];_0x5e2c55[_0x2c5318(0x1b6)][_0x2c5318(0x156)]=_0x56867b,_0x56867b?_0x5e2c55[_0x2c5318(0x144)][_0x2c5318(0x16b)]():_0x5e2c55[_0x2c5318(0x144)][_0x2c5318(0x195)]();}[_0x963c68(0x1ae)](){const _0xf11261=_0x963c68,{balloonView:_0x28f976,buttonView:_0x334716,hideMethod:_0x234543}=this[_0xf11261(0x140)];_0x120a92({'emitter':_0x28f976,'contextElements':[_0x28f976[_0xf11261(0x1c3)],_0x334716[_0xf11261(0x1c3)]],'callback':()=>{_0x234543();},'activator':()=>_0x334716[_0xf11261(0x156)]&&!this[_0xf11261(0x1a0)][_0xf11261(0x1ce)]&&!this[_0xf11261(0x197)][_0xf11261(0x1bb)]()});}[_0x963c68(0x174)](_0x9da089,_0x3cfd2c,_0x3b7ff8=!0x1,_0x3874b0=!0x1){const _0x19c328=_0x963c68,_0x193645=_0x19c328(0x1a6)===_0x3cfd2c||!0x0===_0x9da089[_0x19c328(0x17d)],_0x5b2646=new _0x47368a(this[_0x19c328(0x169)],_0x9da089,_0x193645,_0x3b7ff8,_0x3874b0);return _0x193645||_0x5b2646['on'](_0x19c328(0x1bd),()=>{const _0x127972=_0x19c328;this[_0x127972(0x1b4)](_0x127972(0x1cc),_0x5b2646['id']);}),_0x5b2646;}[_0x963c68(0x172)](_0x1bfc12,_0x23fef4){const _0x24c45d=_0x963c68;_0x23fef4[_0x24c45d(0x15f)](_0x1bfc12,0x0);}[_0x963c68(0x1a4)](_0x272e10,_0x35cba6){const _0x6a8779=_0x963c68,_0x3f9c78=_0x35cba6[_0x6a8779(0x19f)](_0x153f4a=>_0x153f4a['id']===_0x272e10);_0x3f9c78&&_0x35cba6[_0x6a8779(0x19c)](_0x3f9c78);}[_0x963c68(0x1c4)](){const _0x3d2106=_0x963c68;this[_0x3d2106(0x199)][_0x3d2106(0x156)]?this[_0x3d2106(0x17a)]():(this[_0x3d2106(0x181)](),this[_0x3d2106(0x141)][_0x3d2106(0x160)]({'target':this[_0x3d2106(0x199)][_0x3d2106(0x1c3)],'limiter':this[_0x3d2106(0x173)](),'positions':$o}),this[_0x3d2106(0x18c)]&&this[_0x3d2106(0x141)][_0x3d2106(0x187)][_0x3d2106(0x1a5)](0x0)?.[_0x3d2106(0x1b4)](_0x3d2106(0x14f)));}[_0x963c68(0x188)](_0x29d424){const _0x1636c1=_0x963c68;this[_0x1636c1(0x18a)][_0x1636c1(0x1a3)](),this[_0x1636c1(0x1c6)](),this[_0x1636c1(0x1b4)](_0x1636c1(0x180),_0x29d424);}}function _0x2324(){const _0x1509cd=['_removeContextFromCollection','get','conversation','setContextItemLoading','ck-ai-chat-context-controls__pending-contexts','addDocumentToContext','createCollection','_currentContextsChips','ck-ai-chat-context-controls__add-context-balloon-panel','8336290SBUrAq','_setupAddContextBalloonClickOutsideHandler','current','__arrow','ck-ai-chat-context-controls__balloon-button-source','_createArrowView','setConversationContext','fire','document','buttonView','bodyCollection','customItem','2365204fiwGJl','length','isAnyResourceBalloonVisible','loadSourceResources','removeContextItemChip','showUrlBalloonPanel','18nfLTeJ','AI_CHAT_CONTEXT_URL_LABEL','southArrowNorthWest','closest','element','_handleAddContextButtonClick','addFileToContext','hideUrlBalloonPanel','setContainerElement','clearCurrentContextItems','clearConversationContextItems','destroy','_createAddContextBalloonPanelView','removeContextItem','isEnabled','isVisible','2385093KgXHzu','24CQzMeT','defaultPositions','populateSourceResourceBalloon','northArrowSouthWest','ck-ai-chat-controls_context_show-more-button','sources','urls','_addContextBalloonConfig','_addContextBalloonPanelView','addResourceToContext','setAddContextOptions','balloonView','northArrowSouth','ck-ai-chat','_setupAllBalloonClickOutsideHandlers','type','ck-reset_all-excluded','_createResourcesBalloonView','cancel','270225AgnLYA','children','body','execute','ck-ai-chat-context-controls__balloon-button','AI_CHAT_CONTEXT_FILE_LABEL','2574052bAlrsJ','label','ck-ai-chat-context-controls__show-more-balloon-panel','_overflowManager','isOn','_setBalloonPanelContent','setTemplate','showSourceResourcesBalloon','4330434yQrBwW','arrowView','executeCustomItemCallback','_setupUrlBalloonClickOutsideHandler','_setupTemplate','add','pin','_createAddContextButtonView','_addUrlContent','addContextItem','menuitem','bind','source','southArrowNorth','files','locale','done','show','ck-ai-chat-context-controls__add-context-button','AI_CHAT_CONTEXT_ADD_CONTEXT','searchInputVisibleFrom','southArrowNorthEast','reorganizeChips','render','_addContextToCollection','_getLimiterElement','_createContextButton','ck-ai-chat-context-controls__url-balloon-panel','_toggleAddContextBalloon','isLoading','_createUrlBalloonPanelView','_createBalloonButton','hideAddContextBalloonPanel','customItems','_conversationContextsChips','isReadOnly','updateResourceState','_createBaseBalloonPanel','addUrlToContext','showAddContextBalloonPanel','ck-ai-chat-controls-button','2876069HzJdZE','closeSourceResourceBalloon','ck-ai-chat-context-chips-wrapper-balloon','northArrowSouthEast','content','_handleUrlSubmit','withBackButton','_urlInputView','_showSourceResourcesBalloon','_hasExactlyOneSource','enabled','submitUrl','focus','set','refreshBalloon','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','isHidden','ck-ai-chat-context-controls','hide','_bindEventHandlers','_resourcesBalloonView','tooltip','addContextButtonView','5mmXRUp','icon','remove','overflowChips','_setAddContextButtonEnabled','find','_urlBalloonPanelView','extendTemplate','div','clear'];_0x2324=function(){return _0x1509cd;};return _0x2324();}export class SourcesBalloonButtonView extends _0x2b00e9{[_0x963c68(0x15b)];constructor(_0x22dda2){const _0x1f109d=_0x963c68;super(_0x22dda2),this[_0x1f109d(0x190)]({'withText':!0x0,'role':_0x1f109d(0x164)}),this[_0x1f109d(0x15b)]=this[_0x1f109d(0x1b2)](),this[_0x1f109d(0x1a1)]({'attributes':{'class':[Ho]}});}[_0x963c68(0x171)](){const _0x46b027=_0x963c68;super[_0x46b027(0x171)](),this[_0x46b027(0x14d)][_0x46b027(0x15f)](this[_0x46b027(0x15b)]);}[_0x963c68(0x1b2)](){const _0x50c020=_0x963c68,_0x597b63=new _0x31ee02();return _0x597b63[_0x50c020(0x187)]=_0x5443c3,_0x597b63[_0x50c020(0x1a1)]({'attributes':{'class':Ho+_0x50c020(0x1b0)}}),_0x597b63;}}
23
+ const _0x5b4f25=_0x3dfa;(function(_0x3b6ad0,_0x445af0){const _0x3675f5=_0x3dfa,_0x428eda=_0x3b6ad0();while(!![]){try{const _0xe2ce4d=parseInt(_0x3675f5(0x20a))/0x1+-parseInt(_0x3675f5(0x234))/0x2+-parseInt(_0x3675f5(0x1aa))/0x3*(-parseInt(_0x3675f5(0x1a6))/0x4)+-parseInt(_0x3675f5(0x1d7))/0x5+-parseInt(_0x3675f5(0x1af))/0x6*(-parseInt(_0x3675f5(0x214))/0x7)+-parseInt(_0x3675f5(0x1e1))/0x8*(-parseInt(_0x3675f5(0x1e4))/0x9)+parseInt(_0x3675f5(0x210))/0xa*(parseInt(_0x3675f5(0x1cb))/0xb);if(_0xe2ce4d===_0x445af0)break;else _0x428eda['push'](_0x428eda['shift']());}catch(_0x3a3988){_0x428eda['push'](_0x428eda['shift']());}}}(_0x468b,0x85609));function _0x3dfa(_0x14259e,_0x43b242){const _0x468b7e=_0x468b();return _0x3dfa=function(_0x3dfa34,_0x217776){_0x3dfa34=_0x3dfa34-0x1a4;let _0x389715=_0x468b7e[_0x3dfa34];return _0x389715;},_0x3dfa(_0x14259e,_0x43b242);}import{BalloonPanelView as _0x46c417,ButtonView as _0x24bcd4,clickOutsideHandler as _0x119ef5,FileDialogButtonView as _0x2ae85c,IconView as _0x41efa0,View as _0x885a4c}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x77def6,IconDocument as _0x1fda8f,IconDocumentOutline as _0x3ea621,IconDropdownArrow as _0x288f94,IconLink as _0x5ab1de,IconPaperClip as _0x19c750}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x3b7bda}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x1432e0}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x15c100}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x5ccf7c}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x61e016}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x5b4f25(0x1cf),_0x5b4f25(0x1b3),_0x5b4f25(0x1e8),_0x5b4f25(0x1cc),_0x5b4f25(0x23a),_0x5b4f25(0x1bd),_0x5b4f25(0x1fe)];const Uo=_0x5b4f25(0x238),Lo=_0x5b4f25(0x1ff),No=_0x5b4f25(0x1dd),Mo=_0x5b4f25(0x1f6),Ho=_0x5b4f25(0x1a8),jo=_0x5b4f25(0x1d8),Fo=_0x5b4f25(0x1db),Xo=_0x5b4f25(0x1e9),yo=_0x5b4f25(0x22f),Do=_0x5b4f25(0x1ea),$o=_0x5b4f25(0x1d9),Wo=_0x5b4f25(0x220),qo=[_0x46c417[_0x5b4f25(0x1c3)][_0x5b4f25(0x1b2)],_0x46c417[_0x5b4f25(0x1c3)][_0x5b4f25(0x202)],_0x46c417[_0x5b4f25(0x1c3)][_0x5b4f25(0x1d6)],_0x46c417[_0x5b4f25(0x1c3)][_0x5b4f25(0x236)],_0x46c417[_0x5b4f25(0x1c3)][_0x5b4f25(0x1f0)],_0x46c417[_0x5b4f25(0x1c3)][_0x5b4f25(0x22a)]];export class AIChatContextPanelView extends _0x885a4c{[_0x5b4f25(0x213)];[_0x5b4f25(0x223)]=this[_0x5b4f25(0x217)]();[_0x5b4f25(0x1fb)]=this[_0x5b4f25(0x217)]();[_0x5b4f25(0x22b)];[_0x5b4f25(0x1b4)];[_0x5b4f25(0x1ad)];[_0x5b4f25(0x208)];[_0x5b4f25(0x1ba)];[_0x5b4f25(0x1a7)];[_0x5b4f25(0x1a4)]=!0x1;[_0x5b4f25(0x1d2)];constructor(_0x203dab,_0x4ad9db){const _0x2bd3b1=_0x5b4f25;super(_0x203dab),this[_0x2bd3b1(0x1d2)]=_0x4ad9db[_0x2bd3b1(0x1d2)],this[_0x2bd3b1(0x223)]=this[_0x2bd3b1(0x217)](),this[_0x2bd3b1(0x1fb)]=this[_0x2bd3b1(0x217)](),this[_0x2bd3b1(0x213)]=this[_0x2bd3b1(0x1e5)](_0x203dab),this[_0x2bd3b1(0x1b4)]=this[_0x2bd3b1(0x1c6)](_0x203dab),this[_0x2bd3b1(0x1ad)]=this[_0x2bd3b1(0x1b0)](_0x203dab),this[_0x2bd3b1(0x1ba)]=this[_0x2bd3b1(0x1eb)](_0x203dab,_0x4ad9db);const _0xde91e9={'cssClasses':{'showMoreButton':Do,'showMoreBalloon':$o,'overflowContainer':yo,'controlsButton':Xo}};this[_0x2bd3b1(0x22b)]=new _0x15c100(_0x203dab,this[_0x2bd3b1(0x223)],_0xde91e9,this[_0x2bd3b1(0x1d2)],this),this[_0x2bd3b1(0x1a7)]={'buttonView':this[_0x2bd3b1(0x213)],'balloonView':this[_0x2bd3b1(0x1b4)],'hideMethod':this[_0x2bd3b1(0x1e6)][_0x2bd3b1(0x1ec)](this),'showMethod':this[_0x2bd3b1(0x215)][_0x2bd3b1(0x1ec)](this)},this[_0x2bd3b1(0x209)](),this[_0x2bd3b1(0x1bc)]();}[_0x5b4f25(0x230)](){const _0x2f5d3a=_0x5b4f25;super[_0x2f5d3a(0x230)](),this[_0x2f5d3a(0x21e)](),this[_0x2f5d3a(0x22b)][_0x2f5d3a(0x1c9)](this[_0x2f5d3a(0x211)]),this[_0x2f5d3a(0x22b)][_0x2f5d3a(0x1dc)]();}[_0x5b4f25(0x23b)](){const _0x52eba8=_0x5b4f25;super[_0x52eba8(0x23b)](),this[_0x52eba8(0x22b)][_0x52eba8(0x23b)](),this[_0x52eba8(0x1ba)][_0x52eba8(0x23b)]();}[_0x5b4f25(0x21a)](_0x1abd12,_0x4eeac9){const _0x4c25c0=_0x5b4f25,_0x5a1501=this[_0x4c25c0(0x1e2)](_0x1abd12,_0x4c25c0(0x1b7),!0x0,_0x4eeac9);this[_0x4c25c0(0x1cd)](_0x5a1501,this[_0x4c25c0(0x223)]),this[_0x4c25c0(0x22b)][_0x4c25c0(0x1dc)]();}[_0x5b4f25(0x23a)](_0x82ff55){const _0x5c5c01=_0x5b4f25;this[_0x5c5c01(0x20f)](_0x82ff55,this[_0x5c5c01(0x223)]),this[_0x5c5c01(0x20f)](_0x82ff55,this[_0x5c5c01(0x22b)][_0x5c5c01(0x224)]),this[_0x5c5c01(0x22b)][_0x5c5c01(0x1dc)]();}[_0x5b4f25(0x1f5)](_0x54db78,_0x129082){const _0x491ae8=_0x5b4f25;let _0x4b941b=this[_0x491ae8(0x223)][_0x491ae8(0x1f1)](_0x226552=>_0x226552['id']===_0x54db78);_0x4b941b||(_0x4b941b=this[_0x491ae8(0x22b)][_0x491ae8(0x224)][_0x491ae8(0x1f1)](_0x76a689=>_0x76a689['id']===_0x54db78)),_0x4b941b&&(_0x4b941b[_0x491ae8(0x22e)]=_0x129082);}[_0x5b4f25(0x1e7)](_0x3ff8c2){const _0x27365e=_0x5b4f25;this[_0x27365e(0x1fb)][_0x27365e(0x1d5)]();for(const _0x54efed of _0x3ff8c2){const _0x559a51=this[_0x27365e(0x1e2)](_0x54efed,_0x27365e(0x206),!0x1,!0x1);this[_0x27365e(0x1cd)](_0x559a51,this[_0x27365e(0x1fb)]);}}[_0x5b4f25(0x20b)](){const _0x5964c4=_0x5b4f25;this[_0x5964c4(0x223)][_0x5964c4(0x1d5)](),this[_0x5964c4(0x22b)][_0x5964c4(0x1d5)]();}[_0x5b4f25(0x1fd)](){const _0x22057a=_0x5b4f25;this[_0x22057a(0x1fb)][_0x22057a(0x1d5)]();}[_0x5b4f25(0x1d0)](_0x4eeb1a,_0x1b52be,_0x71034f){const _0x240e0d=_0x5b4f25;this[_0x240e0d(0x1ba)][_0x240e0d(0x1d0)](_0x4eeb1a,_0x1b52be,_0x71034f);}[_0x5b4f25(0x1e6)](){const _0x305ebf=_0x5b4f25;this[_0x305ebf(0x1f3)](!0x1);}[_0x5b4f25(0x215)](){const _0x78a3fa=_0x5b4f25;this[_0x78a3fa(0x1f3)](!0x0);}[_0x5b4f25(0x20e)](){const _0x4dcaf8=_0x5b4f25;this[_0x4dcaf8(0x1ad)][_0x4dcaf8(0x205)](),this[_0x4dcaf8(0x213)][_0x4dcaf8(0x1e0)]=!0x1,this[_0x4dcaf8(0x208)]&&this[_0x4dcaf8(0x208)][_0x4dcaf8(0x1d5)]();}[_0x5b4f25(0x1df)](){const _0x54cc6e=_0x5b4f25;this[_0x54cc6e(0x1ad)][_0x54cc6e(0x1be)](),this[_0x54cc6e(0x213)][_0x54cc6e(0x1e0)]=!0x0;}[_0x5b4f25(0x227)]({source:_0x29e86e,withBackButton:_0xbd068a}){const _0xa113c3=_0x5b4f25;this[_0xa113c3(0x1ba)][_0xa113c3(0x20d)]({'source':_0x29e86e,'withBackButton':_0xbd068a}),this[_0xa113c3(0x213)][_0xa113c3(0x1e0)]=!0x0;}[_0x5b4f25(0x1bb)](_0x6a513e,_0xe5e51e,_0xab957,_0x1d923b){const _0x29399b=_0x5b4f25;this[_0x29399b(0x1ba)][_0x29399b(0x1bb)](_0x6a513e,_0xab957,_0x1d923b);}[_0x5b4f25(0x207)](_0xfa124b){const _0x282e1b=_0x5b4f25;this[_0x282e1b(0x1ba)][_0x282e1b(0x207)](_0xfa124b),this[_0x282e1b(0x213)][_0x282e1b(0x1e0)]=!0x1;}[_0x5b4f25(0x1ce)](_0x3ce046){const _0x36a9d7=_0x5b4f25;this[_0x36a9d7(0x232)](this[_0x36a9d7(0x1b4)],this[_0x36a9d7(0x1b9)],_0x3ce046),this[_0x36a9d7(0x219)](_0x3ce046);}[_0x5b4f25(0x219)](_0x4f82c0){const _0x4a6e93=_0x5b4f25,_0x43e6b7=!_0x4f82c0[_0x4a6e93(0x1de)][_0x4a6e93(0x1f9)]&&_0x4f82c0[_0x4a6e93(0x1de)][_0x4a6e93(0x1a5)],_0x1ea271=_0x4f82c0[_0x4a6e93(0x1f7)][_0x4a6e93(0x1a5)],_0x4d88b6=_0x4f82c0[_0x4a6e93(0x1ef)][_0x4a6e93(0x1a5)],_0x319d82=_0x4f82c0[_0x4a6e93(0x216)][_0x4a6e93(0x1ee)]>0x0,_0x135644=_0x4f82c0[_0x4a6e93(0x233)]&&_0x4f82c0[_0x4a6e93(0x233)][_0x4a6e93(0x1ee)]>0x0;this[_0x4a6e93(0x213)][_0x4a6e93(0x1b8)]=_0x43e6b7||_0x1ea271||_0x4d88b6||_0x319d82||_0x135644;}[_0x5b4f25(0x209)](){const _0x3c390d=_0x5b4f25;this[_0x3c390d(0x203)]({'tag':_0x3c390d(0x229),'attributes':{'class':[Uo,_0x3c390d(0x1a9)]},'children':[{'tag':_0x3c390d(0x229),'attributes':{'class':Lo},'children':this[_0x3c390d(0x223)]}]});}[_0x5b4f25(0x1bc)](){const _0xa9a72c=_0x5b4f25;this[_0xa9a72c(0x213)]['on'](_0xa9a72c(0x1c5),()=>{const _0x33502c=_0xa9a72c;this[_0x33502c(0x226)]();});}[_0x5b4f25(0x1e5)](_0x24160f){const _0x257a3a=_0x5b4f25,_0x31d895=new _0x24bcd4(_0x24160f);return _0x31d895[_0x257a3a(0x1ed)]({'label':_0x5ccf7c(_0x24160f,_0x257a3a(0x231)),'class':Xo+'\x20'+Mo,'icon':_0x19c750,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x31d895;}[_0x5b4f25(0x1c6)](_0x136f62){const _0xb7ab15=_0x5b4f25;return this[_0xb7ab15(0x204)](_0x136f62,No);}[_0x5b4f25(0x1b0)](_0x35a57c){const _0x55c024=_0x5b4f25,_0x10d8c3=this[_0x55c024(0x204)](_0x35a57c,Ho);return this[_0x55c024(0x200)](_0x10d8c3,_0x35a57c),_0x10d8c3;}[_0x5b4f25(0x1eb)](_0x563356,_0x1ba404){const _0x43d6f9=_0x5b4f25,_0x425562={'searchInputVisibleFrom':_0x1ba404[_0x43d6f9(0x21b)],'onBackToContext':()=>{const _0x212d4a=_0x43d6f9;this[_0x212d4a(0x215)](),this[_0x212d4a(0x1b4)][_0x212d4a(0x239)]({'target':this[_0x212d4a(0x213)][_0x212d4a(0x211)],'limiter':this[_0x212d4a(0x1c2)](),'positions':qo});},'onResourceSelected':(_0x12cd07,_0x2f199b)=>{const _0x8c6fc7=_0x43d6f9;this[_0x8c6fc7(0x201)](_0x8c6fc7(0x1cc),{'source':_0x12cd07,'resource':_0x2f199b});},'onLoadSourceResources':_0x1f299c=>{const _0x124c00=_0x43d6f9;this[_0x124c00(0x201)](_0x124c00(0x1bd),_0x1f299c);},'onBalloonClosed':()=>{const _0x66b223=_0x43d6f9;this[_0x66b223(0x213)][_0x66b223(0x1e0)]=!0x1;},'getLimiterElement':()=>this[_0x43d6f9(0x1c2)](),'getTargetElement':()=>this[_0x43d6f9(0x213)][_0x43d6f9(0x211)]};return new _0x61e016(_0x563356,_0x1ba404[_0x43d6f9(0x1d2)],_0x425562);}[_0x5b4f25(0x1c2)](){const _0x48d2ee=_0x5b4f25;return this[_0x48d2ee(0x211)]?.[_0x48d2ee(0x1d3)]('.'+Wo)||document[_0x48d2ee(0x1f8)];}[_0x5b4f25(0x204)](_0x42c093,_0x1e864f){const _0x16dc18=_0x5b4f25,_0x4d6269=new _0x46c417(_0x42c093);return _0x4d6269[_0x16dc18(0x1b1)]({'attributes':{'class':_0x1e864f}}),this[_0x16dc18(0x1d2)][_0x16dc18(0x218)](_0x4d6269),_0x4d6269;}[_0x5b4f25(0x232)](_0x33269b,_0x160f8b,_0x5222ed){const _0x2a20de=_0x5b4f25;if(_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x1d5)](),!_0x5222ed[_0x2a20de(0x1de)][_0x2a20de(0x1f9)]&&_0x5222ed[_0x2a20de(0x1de)][_0x2a20de(0x1a5)]){const _0x22177f=this[_0x2a20de(0x1b6)](_0x160f8b,{'label':_0x5ccf7c(_0x160f8b,_0x2a20de(0x22d)),'icon':_0x1fda8f});_0x22177f['on'](_0x2a20de(0x1c5),()=>{const _0x91dca7=_0x2a20de;this[_0x91dca7(0x201)](_0x91dca7(0x1cf)),this[_0x91dca7(0x1e6)]();}),_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x218)](_0x22177f);}if(_0x5222ed[_0x2a20de(0x1f7)][_0x2a20de(0x1a5)]){const _0x4c462c=this[_0x2a20de(0x1b6)](_0x160f8b,{'label':_0x5ccf7c(_0x160f8b,_0x2a20de(0x222)),'icon':_0x5ab1de});_0x4c462c['on'](_0x2a20de(0x1c5),()=>{const _0x56787d=_0x2a20de;this[_0x56787d(0x1e6)](),this[_0x56787d(0x1df)](),this[_0x56787d(0x1ad)][_0x56787d(0x239)]({'target':this[_0x56787d(0x213)][_0x56787d(0x211)],'limiter':this[_0x56787d(0x1c2)](),'positions':qo}),this[_0x56787d(0x208)][_0x56787d(0x21c)]();}),_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x218)](_0x4c462c);}if(_0x5222ed[_0x2a20de(0x1ef)][_0x2a20de(0x1a5)]){const _0x216879=new _0x2ae85c(_0x160f8b);_0x216879[_0x2a20de(0x1ed)]({'label':_0x5ccf7c(_0x160f8b,_0x2a20de(0x228)),'icon':_0x77def6,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x216879['on'](_0x2a20de(0x1c5),()=>{const _0x120d42=_0x2a20de;this[_0x120d42(0x1e6)]();}),_0x216879['on'](_0x2a20de(0x225),(_0x28c717,_0x146a7d)=>{const _0x48da16=_0x2a20de;this[_0x48da16(0x201)](_0x48da16(0x1b3),_0x146a7d);}),_0x216879[_0x2a20de(0x1c1)]=!0x0,_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x218)](_0x216879);}for(const _0x59273c of _0x5222ed[_0x2a20de(0x216)]){const _0x49de6b=this[_0x2a20de(0x1b6)](_0x160f8b,{'label':_0x59273c[_0x2a20de(0x1c4)],'icon':_0x59273c[_0x2a20de(0x1c8)]||_0x3ea621,'type':_0x2a20de(0x212)});_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x218)](_0x49de6b),_0x49de6b['on'](_0x2a20de(0x1c5),()=>{const _0x215834=_0x2a20de;this[_0x215834(0x1e6)](),this[_0x215834(0x227)]({'source':_0x59273c,'withBackButton':!this[_0x215834(0x1a4)]});});}for(const _0xc4990f of _0x5222ed[_0x2a20de(0x233)]||[]){const _0x49da85=this[_0x2a20de(0x1b6)](_0x160f8b,{'label':_0xc4990f[_0x2a20de(0x1c4)],'icon':_0xc4990f[_0x2a20de(0x1c8)]||_0x3ea621,'type':_0x2a20de(0x1e3)});_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x218)](_0x49da85),_0x49da85['on'](_0x2a20de(0x1c5),()=>{const _0x3d751d=_0x2a20de;this[_0x3d751d(0x1e6)](),this[_0x3d751d(0x201)](_0x3d751d(0x1fe),_0xc4990f);});}this[_0x2a20de(0x1a4)]=0x1===_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x1ee)],this[_0x2a20de(0x208)][_0x2a20de(0x1ac)]=!this[_0x2a20de(0x1a4)];}[_0x5b4f25(0x200)](_0x3a4327,_0xcef65a){const _0x3a0609=_0x5b4f25;this[_0x3a0609(0x208)]=new _0x1432e0(_0xcef65a),this[_0x3a0609(0x208)]['on'](_0x3a0609(0x1b5),(_0x1840c1,_0x4170c1)=>{const _0x20a60f=_0x3a0609;this[_0x20a60f(0x1d4)](_0x4170c1);}),this[_0x3a0609(0x208)]['on'](_0x3a0609(0x235),()=>{const _0x5e9be2=_0x3a0609;this[_0x5e9be2(0x20e)](),this[_0x5e9be2(0x1a4)]||(this[_0x5e9be2(0x215)](),this[_0x5e9be2(0x1b4)][_0x5e9be2(0x239)]({'target':this[_0x5e9be2(0x213)][_0x5e9be2(0x211)],'limiter':this[_0x5e9be2(0x1c2)](),'positions':qo}));}),this[_0x3a0609(0x208)]['on'](_0x3a0609(0x1ca),()=>{const _0x25d991=_0x3a0609;this[_0x25d991(0x1ad)][_0x25d991(0x1ae)]&&this[_0x25d991(0x1ad)][_0x25d991(0x239)]({'target':this[_0x25d991(0x213)][_0x25d991(0x211)],'limiter':this[_0x25d991(0x1c2)](),'positions':qo});}),_0x3a4327[_0x3a0609(0x21d)][_0x3a0609(0x218)](this[_0x3a0609(0x208)]);}[_0x5b4f25(0x1b6)](_0x1624cb,_0x524c15){const _0x17b1af=_0x5b4f25,_0xb0a252=_0x17b1af(0x212)===_0x524c15[_0x17b1af(0x237)]?new SourcesBalloonButtonView(_0x1624cb):new _0x24bcd4(_0x1624cb);return _0xb0a252[_0x17b1af(0x1ed)]({'label':_0x524c15[_0x17b1af(0x1c4)],'icon':_0x524c15[_0x17b1af(0x1c8)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0xb0a252;}[_0x5b4f25(0x21e)](){const _0x45860d=_0x5b4f25;this[_0x45860d(0x1c7)](),this[_0x45860d(0x20c)]();}[_0x5b4f25(0x20c)](){const _0x11bf35=_0x5b4f25;_0x119ef5({'emitter':this[_0x11bf35(0x1ad)],'contextElements':[this[_0x11bf35(0x1ad)][_0x11bf35(0x211)]],'callback':()=>{const _0x53e648=_0x11bf35;this[_0x53e648(0x20e)]();},'activator':()=>this[_0x11bf35(0x1ad)][_0x11bf35(0x1ae)]});}[_0x5b4f25(0x1f3)](_0x232f55){const _0x68ed14=_0x5b4f25,_0x38fdc5=this[_0x68ed14(0x1a7)];_0x38fdc5[_0x68ed14(0x1ab)][_0x68ed14(0x1e0)]=_0x232f55,_0x232f55?_0x38fdc5[_0x68ed14(0x1da)][_0x68ed14(0x1be)]():_0x38fdc5[_0x68ed14(0x1da)][_0x68ed14(0x205)]();}[_0x5b4f25(0x1c7)](){const _0x2118e7=_0x5b4f25,{balloonView:_0x1b871e,buttonView:_0x22e585,hideMethod:_0x5a3c7f}=this[_0x2118e7(0x1a7)];_0x119ef5({'emitter':_0x1b871e,'contextElements':[_0x1b871e[_0x2118e7(0x211)],_0x22e585[_0x2118e7(0x211)]],'callback':()=>{_0x5a3c7f();},'activator':()=>_0x22e585[_0x2118e7(0x1e0)]&&!this[_0x2118e7(0x1ad)][_0x2118e7(0x1ae)]&&!this[_0x2118e7(0x1ba)][_0x2118e7(0x1d1)]()});}[_0x5b4f25(0x1e2)](_0x46cd73,_0x5666ee,_0x26c380=!0x1,_0x4a9789=!0x1){const _0x22b22f=_0x5b4f25,_0x3631a3=_0x22b22f(0x206)===_0x5666ee||!0x0===_0x46cd73[_0x22b22f(0x1bf)],_0x3df6bb=new _0x3b7bda(this[_0x22b22f(0x1b9)],_0x46cd73,_0x3631a3,_0x26c380,_0x4a9789);return _0x3631a3||_0x3df6bb['on'](_0x22b22f(0x1c0),()=>{const _0x2af1ff=_0x22b22f;this[_0x2af1ff(0x201)](_0x2af1ff(0x23a),_0x3df6bb['id']);}),_0x3df6bb;}[_0x5b4f25(0x1cd)](_0x2bbed6,_0x2ec74b){const _0xf76f2f=_0x5b4f25;_0x2ec74b[_0xf76f2f(0x218)](_0x2bbed6,0x0);}[_0x5b4f25(0x20f)](_0x212136,_0x28f141){const _0x353a4d=_0x5b4f25,_0x4616e3=_0x28f141[_0x353a4d(0x1f1)](_0x50f3d1=>_0x50f3d1['id']===_0x212136);_0x4616e3&&_0x28f141[_0x353a4d(0x1fa)](_0x4616e3);}[_0x5b4f25(0x226)](){const _0x5c3285=_0x5b4f25;this[_0x5c3285(0x213)][_0x5c3285(0x1e0)]?this[_0x5c3285(0x1e6)]():(this[_0x5c3285(0x215)](),this[_0x5c3285(0x1b4)][_0x5c3285(0x239)]({'target':this[_0x5c3285(0x213)][_0x5c3285(0x211)],'limiter':this[_0x5c3285(0x1c2)](),'positions':qo}),this[_0x5c3285(0x1a4)]&&this[_0x5c3285(0x1b4)][_0x5c3285(0x21d)][_0x5c3285(0x1f2)](0x0)?.[_0x5c3285(0x201)](_0x5c3285(0x1c5)));}[_0x5b4f25(0x1d4)](_0xe660a1){const _0x94b937=_0x5b4f25;this[_0x94b937(0x208)][_0x94b937(0x1d5)](),this[_0x94b937(0x20e)](),this[_0x94b937(0x201)](_0x94b937(0x1e8),_0xe660a1);}}function _0x468b(){const _0x417a30=['extendTemplate','northArrowSouthWest','addFileToContext','_addContextBalloonPanelView','submitUrl','_createBalloonButton','current','isEnabled','locale','_resourcesBalloonView','populateSourceResourceBalloon','_bindEventHandlers','loadSourceResources','show','isReadOnly','removeContextItemChip','tooltip','_getLimiterElement','defaultPositions','label','execute','_createAddContextBalloonPanelView','_setupAddContextBalloonClickOutsideHandler','icon','setContainerElement','refreshBalloon','905179CJZjMe','addResourceToContext','_addContextToCollection','setAddContextOptions','addDocumentToContext','updateResourceState','isAnyResourceBalloonVisible','bodyCollection','closest','_handleUrlSubmit','clear','northArrowSouthEast','1961290HTKLhT','ck-ai-chat-context-controls__balloon-button','ck-ai-chat-context-controls__show-more-balloon-panel','balloonView','ck-ai-chat-context-controls__balloon-button-source','reorganizeChips','ck-ai-chat-context-controls__add-context-balloon-panel','document','showUrlBalloonPanel','isOn','2123032JNjfnt','_createContextButton','customItem','9vTaOsq','_createAddContextButtonView','hideAddContextBalloonPanel','setConversationContext','addUrlToContext','ck-ai-chat-controls-button','ck-ai-chat-controls_context_show-more-button','_createResourcesBalloonView','bind','set','length','files','southArrowNorth','find','get','_toggleAddContextBalloon','menuitem','setContextItemLoading','ck-ai-chat-context-controls__add-context-button','urls','body','isHidden','remove','_conversationContextsChips','arrowView','clearConversationContextItems','executeCustomItemCallback','ck-ai-chat-context-controls__pending-contexts','_addUrlContent','fire','northArrowSouth','setTemplate','_createBaseBalloonPanel','hide','conversation','closeSourceResourceBalloon','_urlInputView','_setupTemplate','373716IFKCTP','clearCurrentContextItems','_setupUrlBalloonClickOutsideHandler','showSourceResourcesBalloon','hideUrlBalloonPanel','_removeContextFromCollection','50JIDfqC','element','source','addContextButtonView','7uuEUol','showAddContextBalloonPanel','sources','createCollection','add','_setAddContextButtonEnabled','addContextItem','searchInputVisibleFrom','focus','content','_setupAllBalloonClickOutsideHandlers','__arrow','ck-ai-chat','children','AI_CHAT_CONTEXT_URL_LABEL','_currentContextsChips','overflowChips','done','_handleAddContextButtonClick','_showSourceResourcesBalloon','AI_CHAT_CONTEXT_FILE_LABEL','div','southArrowNorthEast','_overflowManager','_createArrowView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','isLoading','ck-ai-chat-context-chips-wrapper-balloon','render','AI_CHAT_CONTEXT_ADD_CONTEXT','_setBalloonPanelContent','customItems','1256142UlkBTi','cancel','southArrowNorthWest','type','ck-ai-chat-context-controls','pin','removeContextItem','destroy','_hasExactlyOneSource','enabled','60692sCIkOL','_addContextBalloonConfig','ck-ai-chat-context-controls__url-balloon-panel','ck-reset_all-excluded','69NPyTSM','buttonView','withBackButton','_urlBalloonPanelView','isVisible','1002738ORVDBR','_createUrlBalloonPanelView'];_0x468b=function(){return _0x417a30;};return _0x468b();}export class SourcesBalloonButtonView extends _0x24bcd4{[_0x5b4f25(0x1fc)];constructor(_0x20cacd){const _0x7f6406=_0x5b4f25;super(_0x20cacd),this[_0x7f6406(0x1ed)]({'withText':!0x0,'role':_0x7f6406(0x1f4)}),this[_0x7f6406(0x1fc)]=this[_0x7f6406(0x22c)](),this[_0x7f6406(0x1b1)]({'attributes':{'class':[Fo]}});}[_0x5b4f25(0x230)](){const _0x469016=_0x5b4f25;super[_0x469016(0x230)](),this[_0x469016(0x221)][_0x469016(0x218)](this[_0x469016(0x1fc)]);}[_0x5b4f25(0x22c)](){const _0x4f59c4=_0x5b4f25,_0x330b26=new _0x41efa0();return _0x330b26[_0x4f59c4(0x21d)]=_0x288f94,_0x330b26[_0x4f59c4(0x1b1)]({'attributes':{'class':Fo+_0x4f59c4(0x21f)}}),_0x330b26;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d29be=_0x32d3;(function(_0x6d2a36,_0x45b31a){const _0x114809=_0x32d3,_0x398c78=_0x6d2a36();while(!![]){try{const _0x411721=-parseInt(_0x114809(0x215))/0x1+parseInt(_0x114809(0x1f0))/0x2+parseInt(_0x114809(0x1d9))/0x3*(parseInt(_0x114809(0x20a))/0x4)+-parseInt(_0x114809(0x1c5))/0x5+parseInt(_0x114809(0x1e6))/0x6*(-parseInt(_0x114809(0x206))/0x7)+parseInt(_0x114809(0x1f6))/0x8+-parseInt(_0x114809(0x1be))/0x9*(-parseInt(_0x114809(0x1bf))/0xa);if(_0x411721===_0x45b31a)break;else _0x398c78['push'](_0x398c78['shift']());}catch(_0x38d85a){_0x398c78['push'](_0x398c78['shift']());}}}(_0x4f81,0xe3fdd));import{Collection as _0x38674e}from'ckeditor5/src/utils.js';import{IconAI as _0xa7db88,IconBulb as _0x171892,IconWeb as _0x580014}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x2a3def,ButtonLabelView as _0x191ff7,ButtonView as _0x4fb8bf,createDropdown as _0xcb88df,IconView as _0x288e80,UIModel as _0x57f79f,View as _0x1d357e}from'ckeditor5/src/ui.js';import{getTranslation as _0x4bb3b9}from'../../../aicore/utils/common-translations.js';function _0x4f81(){const _0x4b0b5c=['extendTemplate','length','ck-ai-chat-controls-button','ck-hidden','webSearchActive','add','ck-ai-chat-controls-button--commands','AI_CHAT_ENABLE_WEB_SEARCH','isVisible','9MxrEMf','selector','_commandsButton','AI_CHAT_ENABLE_REASONING','setTemplate','_createModelNameView','execute','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','style','source','ck-ai-chat-controls__model-selection','modelSelectorEnabled','AI_CHAT_DISABLE_REASONING','767322uhDiXt','AI_CHAT_SEARCH_WEB','label','AI_CHAT_CAPABILITIES_NO','isOn','div','setModelList','addMany','bindTemplate','capabilities','1787710JQekda','_webSearchButton','disableModelSelector','model','setWebSearch','_createModelSelectionDropdown','7185080jZyvLE','reasoning','_createCommandsButton','text','AI_CHAT_REASONING','clear','fire','buttonView','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','modelDisplayMode','_modelNameView','content','enableModelSelector','toggleReasoning','setModel','_modelSelectionDropdown','63gECFPU','listenTo','_getCapabilityParts','ck-ai-chat-controls__model-selection__item-description','1285484vmxyKo','setReasoning','log','AI_CHAT_CAPABILITIES_YES','button','_reasoningButton','AI_CHAT_COMMANDS','_modelSelectionDropdownItems','description','set','activeModelName','362840ocnfEP','hidden','locale','_createWebSearchButton','ck-ai-chat__prompt-capabilities','name','webSearch','bind','reasoningActive','enabled','452943QuWBoQ','10rSFcIV','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_DISABLE_WEB_SEARCH','toggleWebSearch','activeModelId','span','1793770cPUCjM','_createReasoningButton','ck-ai-chat-controls__model-selection__item-capabilities','tooltip','isEnabled','menuitemradio','createCollection','selectModel','ck-ai-chat-controls__model-selection__item-name','ck-button__label','ck-ai-chat-controls__model-name'];_0x4f81=function(){return _0x4b0b5c;};return _0x4f81();}const qo=_0x3d29be(0x219),jo=_0x3d29be(0x1d2),zo=_0x3d29be(0x1d6),Jo=_0x3d29be(0x1e3),Ko=_0x3d29be(0x1cd),Qo=_0x3d29be(0x209),Zo=_0x3d29be(0x1c7),tl='n';export class AIChatPromptCapabilitiesView extends _0x1d357e{[_0x3d29be(0x1f1)];[_0x3d29be(0x20f)];[_0x3d29be(0x1db)];[_0x3d29be(0x205)];[_0x3d29be(0x211)];[_0x3d29be(0x200)];constructor(_0x11de15){const _0x2f27b8=_0x3d29be;super(_0x11de15),this[_0x2f27b8(0x213)](_0x2f27b8(0x1d4),!0x1),this[_0x2f27b8(0x213)](_0x2f27b8(0x1bc),!0x1),this[_0x2f27b8(0x213)](_0x2f27b8(0x1ff),_0x2f27b8(0x1da)),this[_0x2f27b8(0x213)](_0x2f27b8(0x1e4),!0x0),this[_0x2f27b8(0x213)](_0x2f27b8(0x1c3),null),this[_0x2f27b8(0x213)](_0x2f27b8(0x214),null),this[_0x2f27b8(0x205)]=this[_0x2f27b8(0x1f5)](),this[_0x2f27b8(0x200)]=this[_0x2f27b8(0x1de)](),this[_0x2f27b8(0x1f1)]=this[_0x2f27b8(0x218)](),this[_0x2f27b8(0x20f)]=this[_0x2f27b8(0x1c6)](),this[_0x2f27b8(0x1db)]=this[_0x2f27b8(0x1f8)](),this[_0x2f27b8(0x205)][_0x2f27b8(0x1fd)][_0x2f27b8(0x21c)](_0x2f27b8(0x1d8))['to'](this,_0x2f27b8(0x1ff),_0x27fe12=>_0x2f27b8(0x1da)===_0x27fe12),this[_0x2f27b8(0x205)][_0x2f27b8(0x1fd)][_0x2f27b8(0x21c)](_0x2f27b8(0x1c8))['to'](this,_0x2f27b8(0x1e4),_0x533701=>_0x533701?this[_0x2f27b8(0x205)][_0x2f27b8(0x1fd)][_0x2f27b8(0x1e8)]:_0x4bb3b9(this[_0x2f27b8(0x217)],_0x2f27b8(0x1fe))),this[_0x2f27b8(0x205)][_0x2f27b8(0x21c)](_0x2f27b8(0x1c9))['to'](this,_0x2f27b8(0x1e4),_0x2bb689=>_0x2bb689),this[_0x2f27b8(0x1f1)][_0x2f27b8(0x21c)](_0x2f27b8(0x1ea))['to'](this,_0x2f27b8(0x1d4),_0x4e1206=>_0x4e1206),this[_0x2f27b8(0x1f1)][_0x2f27b8(0x21c)](_0x2f27b8(0x1c8))['to'](this,_0x2f27b8(0x1d4),_0x4c86d1=>_0x4bb3b9(this[_0x2f27b8(0x217)],_0x4c86d1?_0x2f27b8(0x1c1):_0x2f27b8(0x1d7))),this[_0x2f27b8(0x20f)][_0x2f27b8(0x21c)](_0x2f27b8(0x1ea))['to'](this,_0x2f27b8(0x1bc),_0x465125=>_0x465125),this[_0x2f27b8(0x20f)][_0x2f27b8(0x21c)](_0x2f27b8(0x1c8))['to'](this,_0x2f27b8(0x1bc),_0x8ce65c=>_0x4bb3b9(this[_0x2f27b8(0x217)],_0x8ce65c?_0x2f27b8(0x1e5):_0x2f27b8(0x1dc))),this[_0x2f27b8(0x1dd)]({'tag':_0x2f27b8(0x1eb),'attributes':{'class':[qo]},'children':[this[_0x2f27b8(0x205)],this[_0x2f27b8(0x200)],this[_0x2f27b8(0x1f1)],this[_0x2f27b8(0x20f)],this[_0x2f27b8(0x1db)]]}),this[_0x2f27b8(0x211)]=new _0x38674e(),_0x2a3def(this[_0x2f27b8(0x205)],this[_0x2f27b8(0x211)]);}[_0x3d29be(0x1ec)](_0x5ce094,_0x3daac1){const _0x5eb5c8=_0x3d29be;if(_0x3daac1)this[_0x5eb5c8(0x213)](_0x5eb5c8(0x1ff),_0x5eb5c8(0x216));else{const _0x4e6778=0x1===_0x5ce094[_0x5eb5c8(0x1d1)];this[_0x5eb5c8(0x213)](_0x5eb5c8(0x1ff),_0x4e6778?_0x5eb5c8(0x21a):_0x5eb5c8(0x1da));}if(this[_0x5eb5c8(0x211)][_0x5eb5c8(0x1fb)](),_0x5ce094?.[_0x5eb5c8(0x1d1)])for(const _0x55b683 of _0x5ce094){const _0x1c20b2=new _0x57f79f({'label':_0x55b683[_0x5eb5c8(0x21a)],'withText':!0x0,'role':_0x5eb5c8(0x1ca),'id':_0x55b683['id'],'model':_0x55b683});_0x1c20b2[_0x5eb5c8(0x21c)](_0x5eb5c8(0x1ea))['to'](this,_0x5eb5c8(0x1c3),_0x4a4b62=>_0x4a4b62===_0x55b683['id']),this[_0x5eb5c8(0x211)][_0x5eb5c8(0x1d5)]({'type':_0x5eb5c8(0x20e),'model':_0x1c20b2,'labelView':new wo(this[_0x5eb5c8(0x217)],_0x55b683)});}}[_0x3d29be(0x1f4)](_0x39fe9c){const _0xdd090d=_0x3d29be;this[_0xdd090d(0x213)](_0xdd090d(0x1d4),_0x39fe9c);}[_0x3d29be(0x20b)](_0x1c35ed){const _0x44ce9c=_0x3d29be;this[_0x44ce9c(0x213)](_0x44ce9c(0x1bc),_0x1c35ed);}[_0x3d29be(0x204)](_0x4c3172){const _0x3fa6cb=_0x3d29be;if(!_0x4c3172)return;this[_0x3fa6cb(0x1c3)]=_0x4c3172['id'],this[_0x3fa6cb(0x214)]=_0x4c3172[_0x3fa6cb(0x21a)]||_0x4c3172['id'],this[_0x3fa6cb(0x205)][_0x3fa6cb(0x1fd)][_0x3fa6cb(0x213)](_0x3fa6cb(0x1e8),_0x4c3172[_0x3fa6cb(0x21a)]),this[_0x3fa6cb(0x205)][_0x3fa6cb(0x1fd)][_0x3fa6cb(0x213)](_0x3fa6cb(0x1c8),_0x4c3172[_0x3fa6cb(0x21a)]);const _0x37b040=_0x4c3172[_0x3fa6cb(0x1ef)][_0x3fa6cb(0x21b)]?.[_0x3fa6cb(0x1bd)]??!0x1;this[_0x3fa6cb(0x213)](_0x3fa6cb(0x1d4),!0x1),this[_0x3fa6cb(0x1f1)][_0x3fa6cb(0x213)](_0x3fa6cb(0x1ea),!0x1),this[_0x3fa6cb(0x1f1)][_0x3fa6cb(0x213)](_0x3fa6cb(0x1c9),_0x37b040),this[_0x3fa6cb(0x1f1)][_0x3fa6cb(0x213)](_0x3fa6cb(0x1d8),_0x37b040);const _0x57fb23=_0x4c3172[_0x3fa6cb(0x1ef)][_0x3fa6cb(0x1f7)]?.[_0x3fa6cb(0x1bd)]??!0x1;this[_0x3fa6cb(0x213)](_0x3fa6cb(0x1bc),!0x1),this[_0x3fa6cb(0x20f)][_0x3fa6cb(0x213)](_0x3fa6cb(0x1ea),!0x1),this[_0x3fa6cb(0x20f)][_0x3fa6cb(0x213)](_0x3fa6cb(0x1c9),_0x57fb23),this[_0x3fa6cb(0x20f)][_0x3fa6cb(0x213)](_0x3fa6cb(0x1d8),_0x57fb23);}[_0x3d29be(0x202)](){const _0x22e362=_0x3d29be;this[_0x22e362(0x213)](_0x22e362(0x1e4),!0x0);}[_0x3d29be(0x1f2)](_0x5ce494){const _0x2fe17d=_0x3d29be;this[_0x2fe17d(0x213)](_0x2fe17d(0x1e4),!0x1),_0x5ce494&&this[_0x2fe17d(0x213)](_0x2fe17d(0x1ff),_0x2fe17d(0x216));}[_0x3d29be(0x218)](){const _0x9beea=_0x3d29be,_0x484849=new _0x4fb8bf();return _0x484849[_0x9beea(0x213)]({'label':_0x4bb3b9(this[_0x9beea(0x217)],_0x9beea(0x1e7)),'icon':_0x580014,'class':jo,'isToggleable':!0x0,'tooltipPosition':tl}),_0x484849['on'](_0x9beea(0x1df),()=>{const _0x2b3a49=_0x9beea;this[_0x2b3a49(0x1fc)](_0x2b3a49(0x1c2));}),_0x484849;}[_0x3d29be(0x1c6)](){const _0xcb40cc=_0x3d29be,_0x95488f=new _0x4fb8bf();return _0x95488f[_0xcb40cc(0x213)]({'label':_0x4bb3b9(this[_0xcb40cc(0x217)],_0xcb40cc(0x1fa)),'icon':_0x171892,'class':jo,'isToggleable':!0x0,'tooltipPosition':tl}),_0x95488f['on'](_0xcb40cc(0x1df),()=>{const _0x21bc8e=_0xcb40cc;this[_0x21bc8e(0x1fc)](_0x21bc8e(0x203));}),_0x95488f;}[_0x3d29be(0x1f8)](){const _0x41736e=_0x3d29be,_0x34b048=new _0x4fb8bf();return _0x34b048[_0x41736e(0x213)]({'label':_0x4bb3b9(this[_0x41736e(0x217)],_0x41736e(0x210)),'icon':_0xa7db88,'withText':!0x0,'class':jo,'isToggleable':!0x0,'tooltip':_0x4bb3b9(this[_0x41736e(0x217)],_0x41736e(0x210)),'tooltipPosition':tl}),_0x34b048[_0x41736e(0x1d0)]({'attributes':{'class':[zo]}}),_0x34b048['on'](_0x41736e(0x1df),()=>{const _0x22a77c=_0x41736e;console[_0x22a77c(0x20c)](_0x22a77c(0x1c0)),alert(_0x22a77c(0x1c0));}),_0x34b048;}[_0x3d29be(0x1f5)](){const _0x517dde=_0x3d29be,_0x34eb1e=_0xcb88df(this[_0x517dde(0x217)]);return _0x34eb1e[_0x517dde(0x213)]({'panelPosition':'ne','class':[Jo]}),_0x34eb1e[_0x517dde(0x1fd)][_0x517dde(0x213)]({'label':_0x4bb3b9(this[_0x517dde(0x217)],_0x517dde(0x1e0)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':tl}),this[_0x517dde(0x207)](_0x34eb1e,_0x517dde(0x1df),_0x4adc95=>{const _0x310676=_0x517dde;this[_0x310676(0x1fc)](_0x310676(0x1cc),_0x4adc95[_0x310676(0x1e2)][_0x310676(0x1f3)]);}),_0x34eb1e;}[_0x3d29be(0x1de)](){const _0x1ae65e=_0x3d29be,_0x489ecd=new mo(this[_0x1ae65e(0x217)]);return _0x489ecd[_0x1ae65e(0x21c)](_0x1ae65e(0x1f9))['to'](this,_0x1ae65e(0x214),_0x4805ad=>_0x4805ad??''),_0x489ecd[_0x1ae65e(0x21c)](_0x1ae65e(0x1d8))['to'](this,_0x1ae65e(0x1ff),_0x54f1fe=>_0x1ae65e(0x21a)===_0x54f1fe),_0x489ecd;}}function _0x32d3(_0x3895c1,_0x127f6d){const _0x4f817b=_0x4f81();return _0x32d3=function(_0x32d383,_0x170a34){_0x32d383=_0x32d383-0x1bc;let _0x5278e1=_0x4f817b[_0x32d383];return _0x5278e1;},_0x32d3(_0x3895c1,_0x127f6d);}class wo extends _0x191ff7{constructor(_0x2109fb,_0x3cf76e){const _0x30b0a7=_0x3d29be;super();const _0xd4abfb=this[_0x30b0a7(0x1ee)],_0x3c9f98=this[_0x30b0a7(0x1cb)]();this[_0x30b0a7(0x1dd)]({'tag':_0x30b0a7(0x1eb),'attributes':{'class':['ck',_0x30b0a7(0x1ce)],'style':_0xd4abfb['to'](_0x30b0a7(0x1e1)),'id':_0xd4abfb['to']('id')},'children':[{'tag':_0x30b0a7(0x1eb),'attributes':{'class':[Ko]},'children':[{'text':_0xd4abfb['to'](_0x30b0a7(0x1f9))}]},{'tag':_0x30b0a7(0x1eb),'attributes':{'class':[Qo]},'children':[{'tag':_0x30b0a7(0x1c4),'children':[{'text':_0x3cf76e[_0x30b0a7(0x212)]}]}]},{'tag':_0x30b0a7(0x1eb),'attributes':{'class':[Zo]},'children':_0x3c9f98}]}),_0x3c9f98[_0x30b0a7(0x1ed)](this[_0x30b0a7(0x208)](_0x2109fb,_0x580014,_0x30b0a7(0x1e7),_0x3cf76e[_0x30b0a7(0x1ef)][_0x30b0a7(0x21b)]?.[_0x30b0a7(0x1bd)]??!0x1)),_0x3c9f98[_0x30b0a7(0x1ed)](this[_0x30b0a7(0x208)](_0x2109fb,_0x171892,_0x30b0a7(0x1fa),_0x3cf76e[_0x30b0a7(0x1ef)][_0x30b0a7(0x1f7)]?.[_0x30b0a7(0x1bd)]??!0x1));}[_0x3d29be(0x208)](_0x3d8e63,_0x26e83d,_0x5d99f4,_0x5b048c){const _0x133750=_0x3d29be,_0x4aaa97=new _0x288e80();_0x4aaa97[_0x133750(0x201)]=_0x26e83d;const _0x3b1f31=new _0x1d357e(_0x3d8e63);_0x3b1f31[_0x133750(0x1dd)]({'tag':_0x133750(0x1c4),'children':[{'text':_0x4bb3b9(_0x3d8e63,_0x5d99f4)+':\x20'}]});const _0x4bc4b8=new _0x1d357e(_0x3d8e63);return _0x4bc4b8[_0x133750(0x1dd)]({'tag':_0x133750(0x1c4),'children':[{'text':_0x4bb3b9(_0x3d8e63,_0x5b048c?_0x133750(0x20d):_0x133750(0x1e9))}]}),[_0x4aaa97,_0x3b1f31,_0x4bc4b8];}}class mo extends _0x1d357e{constructor(_0x1749e3){const _0x38f382=_0x3d29be;super(_0x1749e3),this[_0x38f382(0x213)](_0x38f382(0x1f9),void 0x0),this[_0x38f382(0x213)](_0x38f382(0x1d8),!0x0);const _0x456c2b=this[_0x38f382(0x1ee)];this[_0x38f382(0x1dd)]({'tag':_0x38f382(0x1c4),'attributes':{'class':['ck',_0x38f382(0x1cf),_0x456c2b['if'](_0x38f382(0x1d8),_0x38f382(0x1d3),_0x4018eb=>!_0x4018eb)]},'children':[{'text':_0x456c2b['to'](_0x38f382(0x1f9))}]});}}
23
+ function _0x360a(_0x2e1a4d,_0x2f3c73){const _0x47374d=_0x4737();return _0x360a=function(_0x360ae4,_0x20de39){_0x360ae4=_0x360ae4-0x1b9;let _0x23ca2b=_0x47374d[_0x360ae4];return _0x23ca2b;},_0x360a(_0x2e1a4d,_0x2f3c73);}const _0x4191ad=_0x360a;(function(_0x784cd8,_0x452815){const _0x5be2a6=_0x360a,_0x5d72dc=_0x784cd8();while(!![]){try{const _0x174c99=parseInt(_0x5be2a6(0x1d6))/0x1+-parseInt(_0x5be2a6(0x1d9))/0x2+-parseInt(_0x5be2a6(0x1c0))/0x3+parseInt(_0x5be2a6(0x20d))/0x4+parseInt(_0x5be2a6(0x1f6))/0x5*(-parseInt(_0x5be2a6(0x1f4))/0x6)+parseInt(_0x5be2a6(0x212))/0x7+parseInt(_0x5be2a6(0x201))/0x8;if(_0x174c99===_0x452815)break;else _0x5d72dc['push'](_0x5d72dc['shift']());}catch(_0x447f4c){_0x5d72dc['push'](_0x5d72dc['shift']());}}}(_0x4737,0x5e901));import{Collection as _0x5c9ee6}from'ckeditor5/src/utils.js';import{IconAI as _0x3fbc6c,IconBulb as _0x2f6b5,IconWeb as _0x2cd46a}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x1e094f,ButtonLabelView as _0x310d77,ButtonView as _0x9146c4,createDropdown as _0x302b0b,IconView as _0x133b18,UIModel as _0x2fbe13,View as _0x3cc023}from'ckeditor5/src/ui.js';function _0x4737(){const _0x115c2c=['_createCommandsButton','28254lcSGOE','content','enableModelSelector','selector','source','text','label','AI_CHAT_ENABLE_REASONING','button','addMany','Commands\x20are\x20not\x20implemented\x20yet.','ck-ai-chat-controls__model-selection__item-description','AI_CHAT_CAPABILITIES_NO','_commandsButton','log','listenTo','webSearch','buttonView','reasoningActive','div','ck-ai-chat-controls__model-name','isVisible','289055FuyYEW','span','setModel','1549300ToJbTh','length','_reasoningButton','add','locale','_modelSelectionDropdown','set','fire','bind','enabled','_modelNameView','execute','_createModelSelectionDropdown','modelDisplayMode','AI_CHAT_DISABLE_REASONING','activeModelName','setWebSearch','AI_CHAT_DISABLE_WEB_SEARCH','createCollection','AI_CHAT_SEARCH_WEB','_createWebSearchButton','disableModelSelector','_getCapabilityParts','toggleReasoning','capabilities','selectModel','activeModelId','98466LxWphr','AI_CHAT_REASONING','175AqqPYP','clear','ck-ai-chat-controls__model-selection__item-name','hidden','tooltip','_webSearchButton','menuitemradio','ck-button__label','name','isEnabled','ck-ai-chat-controls-button','2928752WnitqU','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','AI_CHAT_COMMANDS','setReasoning','description','ck-ai-chat-controls-button--commands','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','style','webSearchActive','setTemplate','ck-hidden','isOn','1468140nAcslu','AI_CHAT_CAPABILITIES_YES','reasoning','ck-ai-chat__prompt-capabilities','toggleWebSearch','5065186eCGufd','_modelSelectionDropdownItems','setModelList','extendTemplate','AI_CHAT_ENABLE_WEB_SEARCH','_createModelNameView','bindTemplate','ck-ai-chat-controls__model-selection','_createReasoningButton','modelSelectorEnabled','ck-ai-chat-controls__model-selection__item-capabilities','model'];_0x4737=function(){return _0x115c2c;};return _0x4737();}import{getTranslation as _0x5a79a0}from'../../../aicore/utils/common-translations.js';const Jo=_0x4191ad(0x210),Xo=_0x4191ad(0x200),Ko=_0x4191ad(0x206),Qo=_0x4191ad(0x1ba),Zo=_0x4191ad(0x1f8),tl=_0x4191ad(0x1cb),el=_0x4191ad(0x1bd),il='n';export class AIChatPromptCapabilitiesView extends _0x3cc023{[_0x4191ad(0x1fb)];[_0x4191ad(0x1db)];[_0x4191ad(0x1cd)];[_0x4191ad(0x1de)];[_0x4191ad(0x213)];[_0x4191ad(0x1e3)];constructor(_0x4d37f4){const _0x126b3e=_0x4191ad;super(_0x4d37f4),this[_0x126b3e(0x1df)](_0x126b3e(0x209),!0x1),this[_0x126b3e(0x1df)](_0x126b3e(0x1d2),!0x1),this[_0x126b3e(0x1df)](_0x126b3e(0x1e6),_0x126b3e(0x1c3)),this[_0x126b3e(0x1df)](_0x126b3e(0x1bc),!0x0),this[_0x126b3e(0x1df)](_0x126b3e(0x1f3),null),this[_0x126b3e(0x1df)](_0x126b3e(0x1e8),null),this[_0x126b3e(0x1de)]=this[_0x126b3e(0x1e5)](),this[_0x126b3e(0x1e3)]=this[_0x126b3e(0x217)](),this[_0x126b3e(0x1fb)]=this[_0x126b3e(0x1ed)](),this[_0x126b3e(0x1db)]=this[_0x126b3e(0x1bb)](),this[_0x126b3e(0x1cd)]=this[_0x126b3e(0x1bf)](),this[_0x126b3e(0x1de)][_0x126b3e(0x1d1)][_0x126b3e(0x1e1)](_0x126b3e(0x1d5))['to'](this,_0x126b3e(0x1e6),_0x57343e=>_0x126b3e(0x1c3)===_0x57343e),this[_0x126b3e(0x1de)][_0x126b3e(0x1d1)][_0x126b3e(0x1e1)](_0x126b3e(0x1fa))['to'](this,_0x126b3e(0x1bc),_0x5e5677=>_0x5e5677?this[_0x126b3e(0x1de)][_0x126b3e(0x1d1)][_0x126b3e(0x1c6)]:_0x5a79a0(this[_0x126b3e(0x1dd)],_0x126b3e(0x207))),this[_0x126b3e(0x1de)][_0x126b3e(0x1e1)](_0x126b3e(0x1ff))['to'](this,_0x126b3e(0x1bc),_0x556396=>_0x556396),this[_0x126b3e(0x1fb)][_0x126b3e(0x1e1)](_0x126b3e(0x20c))['to'](this,_0x126b3e(0x209),_0x545136=>_0x545136),this[_0x126b3e(0x1fb)][_0x126b3e(0x1e1)](_0x126b3e(0x1fa))['to'](this,_0x126b3e(0x209),_0x33546c=>_0x5a79a0(this[_0x126b3e(0x1dd)],_0x33546c?_0x126b3e(0x1ea):_0x126b3e(0x216))),this[_0x126b3e(0x1db)][_0x126b3e(0x1e1)](_0x126b3e(0x20c))['to'](this,_0x126b3e(0x1d2),_0x3ed205=>_0x3ed205),this[_0x126b3e(0x1db)][_0x126b3e(0x1e1)](_0x126b3e(0x1fa))['to'](this,_0x126b3e(0x1d2),_0x14d238=>_0x5a79a0(this[_0x126b3e(0x1dd)],_0x14d238?_0x126b3e(0x1e7):_0x126b3e(0x1c7))),this[_0x126b3e(0x20a)]({'tag':_0x126b3e(0x1d3),'attributes':{'class':[Jo]},'children':[this[_0x126b3e(0x1de)],this[_0x126b3e(0x1e3)],this[_0x126b3e(0x1fb)],this[_0x126b3e(0x1db)],this[_0x126b3e(0x1cd)]]}),this[_0x126b3e(0x213)]=new _0x5c9ee6(),_0x1e094f(this[_0x126b3e(0x1de)],this[_0x126b3e(0x213)]);}[_0x4191ad(0x214)](_0x5175b6,_0x4ffef3){const _0x48a10f=_0x4191ad;if(_0x4ffef3)this[_0x48a10f(0x1df)](_0x48a10f(0x1e6),_0x48a10f(0x1f9));else{const _0x1eaa36=0x1===_0x5175b6[_0x48a10f(0x1da)];this[_0x48a10f(0x1df)](_0x48a10f(0x1e6),_0x1eaa36?_0x48a10f(0x1fe):_0x48a10f(0x1c3));}if(this[_0x48a10f(0x213)][_0x48a10f(0x1f7)](),_0x5175b6?.[_0x48a10f(0x1da)])for(const _0x2fe462 of _0x5175b6){const _0x12b121=new _0x2fbe13({'label':_0x2fe462[_0x48a10f(0x1fe)],'withText':!0x0,'role':_0x48a10f(0x1fc),'id':_0x2fe462['id'],'model':_0x2fe462});_0x12b121[_0x48a10f(0x1e1)](_0x48a10f(0x20c))['to'](this,_0x48a10f(0x1f3),_0x28caf9=>_0x28caf9===_0x2fe462['id']),this[_0x48a10f(0x213)][_0x48a10f(0x1dc)]({'type':_0x48a10f(0x1c8),'model':_0x12b121,'labelView':new _o(this[_0x48a10f(0x1dd)],_0x2fe462)});}}[_0x4191ad(0x1e9)](_0x173e83){const _0x3f0b02=_0x4191ad;this[_0x3f0b02(0x1df)](_0x3f0b02(0x209),_0x173e83);}[_0x4191ad(0x204)](_0x5b90e9){const _0x48ea83=_0x4191ad;this[_0x48ea83(0x1df)](_0x48ea83(0x1d2),_0x5b90e9);}[_0x4191ad(0x1d8)](_0x121d36){const _0x521edd=_0x4191ad;if(!_0x121d36)return;this[_0x521edd(0x1f3)]=_0x121d36['id'],this[_0x521edd(0x1e8)]=_0x121d36[_0x521edd(0x1fe)]||_0x121d36['id'],this[_0x521edd(0x1de)][_0x521edd(0x1d1)][_0x521edd(0x1df)](_0x521edd(0x1c6),_0x121d36[_0x521edd(0x1fe)]),this[_0x521edd(0x1de)][_0x521edd(0x1d1)][_0x521edd(0x1df)](_0x521edd(0x1fa),_0x121d36[_0x521edd(0x1fe)]);const _0x25fe77=_0x121d36[_0x521edd(0x1f1)][_0x521edd(0x1d0)]?.[_0x521edd(0x1e2)]??!0x1;this[_0x521edd(0x1df)](_0x521edd(0x209),!0x1),this[_0x521edd(0x1fb)][_0x521edd(0x1df)](_0x521edd(0x20c),!0x1),this[_0x521edd(0x1fb)][_0x521edd(0x1df)](_0x521edd(0x1ff),_0x25fe77),this[_0x521edd(0x1fb)][_0x521edd(0x1df)](_0x521edd(0x1d5),_0x25fe77);const _0x4ad228=_0x121d36[_0x521edd(0x1f1)][_0x521edd(0x20f)]?.[_0x521edd(0x1e2)]??!0x1;this[_0x521edd(0x1df)](_0x521edd(0x1d2),!0x1),this[_0x521edd(0x1db)][_0x521edd(0x1df)](_0x521edd(0x20c),!0x1),this[_0x521edd(0x1db)][_0x521edd(0x1df)](_0x521edd(0x1ff),_0x4ad228),this[_0x521edd(0x1db)][_0x521edd(0x1df)](_0x521edd(0x1d5),_0x4ad228);}[_0x4191ad(0x1c2)](){const _0x2c7cd5=_0x4191ad;this[_0x2c7cd5(0x1df)](_0x2c7cd5(0x1bc),!0x0);}[_0x4191ad(0x1ee)](_0x5df866){const _0x5ac17b=_0x4191ad;this[_0x5ac17b(0x1df)](_0x5ac17b(0x1bc),!0x1),_0x5df866&&this[_0x5ac17b(0x1df)](_0x5ac17b(0x1e6),_0x5ac17b(0x1f9));}[_0x4191ad(0x1ed)](){const _0x57a0f6=_0x4191ad,_0x41f5fb=new _0x9146c4();return _0x41f5fb[_0x57a0f6(0x1df)]({'label':_0x5a79a0(this[_0x57a0f6(0x1dd)],_0x57a0f6(0x1ec)),'icon':_0x2cd46a,'class':Xo,'isToggleable':!0x0,'tooltipPosition':il}),_0x41f5fb['on'](_0x57a0f6(0x1e4),()=>{const _0x429d89=_0x57a0f6;this[_0x429d89(0x1e0)](_0x429d89(0x211));}),_0x41f5fb;}[_0x4191ad(0x1bb)](){const _0xd7c927=_0x4191ad,_0xb623bb=new _0x9146c4();return _0xb623bb[_0xd7c927(0x1df)]({'label':_0x5a79a0(this[_0xd7c927(0x1dd)],_0xd7c927(0x1f5)),'icon':_0x2f6b5,'class':Xo,'isToggleable':!0x0,'tooltipPosition':il}),_0xb623bb['on'](_0xd7c927(0x1e4),()=>{const _0x4e88c0=_0xd7c927;this[_0x4e88c0(0x1e0)](_0x4e88c0(0x1f0));}),_0xb623bb;}[_0x4191ad(0x1bf)](){const _0x1ad392=_0x4191ad,_0x116cbe=new _0x9146c4();return _0x116cbe[_0x1ad392(0x1df)]({'label':_0x5a79a0(this[_0x1ad392(0x1dd)],_0x1ad392(0x203)),'icon':_0x3fbc6c,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x5a79a0(this[_0x1ad392(0x1dd)],_0x1ad392(0x203)),'tooltipPosition':il}),_0x116cbe[_0x1ad392(0x215)]({'attributes':{'class':[Ko]}}),_0x116cbe['on'](_0x1ad392(0x1e4),()=>{const _0x48c444=_0x1ad392;console[_0x48c444(0x1ce)](_0x48c444(0x1ca)),alert(_0x48c444(0x1ca));}),_0x116cbe;}[_0x4191ad(0x1e5)](){const _0x38d3c5=_0x4191ad,_0x19ca3d=_0x302b0b(this[_0x38d3c5(0x1dd)]);return _0x19ca3d[_0x38d3c5(0x1df)]({'panelPosition':'ne','class':[Qo]}),_0x19ca3d[_0x38d3c5(0x1d1)][_0x38d3c5(0x1df)]({'label':_0x5a79a0(this[_0x38d3c5(0x1dd)],_0x38d3c5(0x202)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':il}),this[_0x38d3c5(0x1cf)](_0x19ca3d,_0x38d3c5(0x1e4),_0x47db6a=>{const _0x3acf1e=_0x38d3c5;this[_0x3acf1e(0x1e0)](_0x3acf1e(0x1f2),_0x47db6a[_0x3acf1e(0x1c4)][_0x3acf1e(0x1be)]);}),_0x19ca3d;}[_0x4191ad(0x217)](){const _0x52a291=_0x4191ad,_0x257d4b=new po(this[_0x52a291(0x1dd)]);return _0x257d4b[_0x52a291(0x1e1)](_0x52a291(0x1c5))['to'](this,_0x52a291(0x1e8),_0x848e27=>_0x848e27??''),_0x257d4b[_0x52a291(0x1e1)](_0x52a291(0x1d5))['to'](this,_0x52a291(0x1e6),_0x3926ee=>_0x52a291(0x1fe)===_0x3926ee),_0x257d4b;}}class _o extends _0x310d77{constructor(_0x287478,_0x273f80){const _0x46ef69=_0x4191ad;super();const _0x7a1e72=this[_0x46ef69(0x1b9)],_0x228739=this[_0x46ef69(0x1eb)]();this[_0x46ef69(0x20a)]({'tag':_0x46ef69(0x1d3),'attributes':{'class':['ck',_0x46ef69(0x1fd)],'style':_0x7a1e72['to'](_0x46ef69(0x208)),'id':_0x7a1e72['to']('id')},'children':[{'tag':_0x46ef69(0x1d3),'attributes':{'class':[Zo]},'children':[{'text':_0x7a1e72['to'](_0x46ef69(0x1c5))}]},{'tag':_0x46ef69(0x1d3),'attributes':{'class':[tl]},'children':[{'tag':_0x46ef69(0x1d7),'children':[{'text':_0x273f80[_0x46ef69(0x205)]}]}]},{'tag':_0x46ef69(0x1d3),'attributes':{'class':[el]},'children':_0x228739}]}),_0x228739[_0x46ef69(0x1c9)](this[_0x46ef69(0x1ef)](_0x287478,_0x2cd46a,_0x46ef69(0x1ec),_0x273f80[_0x46ef69(0x1f1)][_0x46ef69(0x1d0)]?.[_0x46ef69(0x1e2)]??!0x1)),_0x228739[_0x46ef69(0x1c9)](this[_0x46ef69(0x1ef)](_0x287478,_0x2f6b5,_0x46ef69(0x1f5),_0x273f80[_0x46ef69(0x1f1)][_0x46ef69(0x20f)]?.[_0x46ef69(0x1e2)]??!0x1));}[_0x4191ad(0x1ef)](_0x45959b,_0x346e41,_0x532ed4,_0x318c3f){const _0x56af17=_0x4191ad,_0x577947=new _0x133b18();_0x577947[_0x56af17(0x1c1)]=_0x346e41;const _0x2b8dc0=new _0x3cc023(_0x45959b);_0x2b8dc0[_0x56af17(0x20a)]({'tag':_0x56af17(0x1d7),'children':[{'text':_0x5a79a0(_0x45959b,_0x532ed4)+':\x20'}]});const _0x243b8a=new _0x3cc023(_0x45959b);return _0x243b8a[_0x56af17(0x20a)]({'tag':_0x56af17(0x1d7),'children':[{'text':_0x5a79a0(_0x45959b,_0x318c3f?_0x56af17(0x20e):_0x56af17(0x1cc))}]}),[_0x577947,_0x2b8dc0,_0x243b8a];}}class po extends _0x3cc023{constructor(_0x46f193){const _0xf8a173=_0x4191ad;super(_0x46f193),this[_0xf8a173(0x1df)](_0xf8a173(0x1c5),void 0x0),this[_0xf8a173(0x1df)](_0xf8a173(0x1d5),!0x0);const _0xf77413=this[_0xf8a173(0x1b9)];this[_0xf8a173(0x20a)]({'tag':_0xf8a173(0x1d7),'attributes':{'class':['ck',_0xf8a173(0x1d4),_0xf77413['if'](_0xf8a173(0x1d5),_0xf8a173(0x20b),_0x4ee821=>!_0x4ee821)]},'children':[{'text':_0xf77413['to'](_0xf8a173(0x1c5))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a79e6=_0x2401;(function(_0x15547b,_0xdb6fa6){const _0x30f1c=_0x2401,_0x197ef3=_0x15547b();while(!![]){try{const _0x1a3e04=parseInt(_0x30f1c(0x146))/0x1*(parseInt(_0x30f1c(0x14c))/0x2)+parseInt(_0x30f1c(0x137))/0x3*(-parseInt(_0x30f1c(0x12e))/0x4)+parseInt(_0x30f1c(0x156))/0x5*(parseInt(_0x30f1c(0x132))/0x6)+parseInt(_0x30f1c(0x130))/0x7+parseInt(_0x30f1c(0x14a))/0x8+parseInt(_0x30f1c(0x13e))/0x9+parseInt(_0x30f1c(0x131))/0xa*(-parseInt(_0x30f1c(0x12a))/0xb);if(_0x1a3e04===_0xdb6fa6)break;else _0x197ef3['push'](_0x197ef3['shift']());}catch(_0x389f2d){_0x197ef3['push'](_0x197ef3['shift']());}}}(_0x459a,0x83dc8));function _0x459a(){const _0x21358a=['ck-ai-chat__prompt-input','fieldWrapperChildren','placeholder','isEmpty','submitButtonView','20BOgudK','element','value','execute','trim','target','hasError','bind','locale','AI_CHAT_PROMPT_EMPTY_ERROR','maxRows','enter','uiLanguageDirection','isUploadInProgress','_queryViewResizeObserver','isEnabled','rtl','_setUpAddContextButtonPositioning','fieldView','MIN_ROWS','window','queryView','70158ZpoJRl','reset','setPlaceholderText','ck-ai-chat__prompt-submit-button','90476pJnILv','render','6166167ctppsh','4040lidTSd','1277796VGFjEk','destroy','px\x20-\x20var(--ck-spacing-tiny))','submit','MAX_ROWS','9ROLUMK','sendUserMessage','calc(','minRows','width','extendTemplate','_createSubmitButton','7647579TistfA','left','_addContextButtonView','excludeScrollbarsAndBorders','keystrokes','add','fire','requestAnimationFrame','1085fbEkQT','focusableChildren','update','right','3767296PnIuFp','style','242GlQyrW','AI_CHAT_LABEL_SUBMIT','errorText','setIsUploadInProgress','set'];_0x459a=function(){return _0x21358a;};return _0x459a();}import{IconSubmit as _0x32b3cd}from'ckeditor5/src/icons.js';import{ButtonView as _0x233569,AutocompleteView as _0x4af6df,createLabeledTextarea as _0x46976e}from'ckeditor5/src/ui.js';import{global as _0x36de33,isVisible as _0x2170b7,Rect as _0x56332b,ResizeObserver as _0x42d091}from'ckeditor5/src/utils.js';import{getTranslation as _0x43797a}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x402571}from'./aichatpromptsuggestionslistview.js';import{escape as _0x49f422}from'es-toolkit/compat';function _0x2401(_0x5612b0,_0xe37f40){const _0x459ad0=_0x459a();return _0x2401=function(_0x24016d,_0x526186){_0x24016d=_0x24016d-0x117;let _0x428ae0=_0x459ad0[_0x24016d];return _0x428ae0;},_0x2401(_0x5612b0,_0xe37f40);}export class AIChatPromptInputView extends _0x4af6df{[_0x2a79e6(0x155)];static [_0x2a79e6(0x127)]=0x1;static [_0x2a79e6(0x136)]=0xc;[_0x2a79e6(0x140)];[_0x2a79e6(0x122)];constructor(_0x3b95f6,_0x735f91){const _0x35e191=_0x2a79e6;super(_0x3b95f6,{'queryView':{'label':'','creator':_0x46976e,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x402571(_0x3b95f6),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x35e191(0x150)](_0x35e191(0x154),!0x0),this[_0x35e191(0x150)](_0x35e191(0x121),!0x1),this[_0x35e191(0x140)]=_0x735f91,this[_0x35e191(0x122)]=null,this[_0x35e191(0x129)][_0x35e191(0x126)][_0x35e191(0x13a)]=AIChatPromptInputView[_0x35e191(0x127)],this[_0x35e191(0x129)][_0x35e191(0x126)][_0x35e191(0x11e)]=AIChatPromptInputView[_0x35e191(0x136)],this[_0x35e191(0x129)][_0x35e191(0x152)][_0x35e191(0x143)](this[_0x35e191(0x140)]),this[_0x35e191(0x125)](),this[_0x35e191(0x13c)]({'attributes':{'class':['ck',_0x35e191(0x151)]}}),this[_0x35e191(0x155)]=this[_0x35e191(0x13d)](),this[_0x35e191(0x155)][_0x35e191(0x11b)](_0x35e191(0x123))['to'](this,_0x35e191(0x154),this,_0x35e191(0x121),(_0x13086b,_0x8ddfd2)=>!_0x13086b&&!_0x8ddfd2),this[_0x35e191(0x147)][_0x35e191(0x143)](this[_0x35e191(0x155)]);}[_0x2a79e6(0x12f)](){const _0x27be3d=_0x2a79e6;super[_0x27be3d(0x12f)](),this[_0x27be3d(0x129)][_0x27be3d(0x152)][_0x27be3d(0x143)](this[_0x27be3d(0x155)]),this[_0x27be3d(0x142)][_0x27be3d(0x150)](_0x27be3d(0x11f),(_0x1a73f9,_0x4c4c0c)=>{const _0x1c244e=_0x27be3d;this[_0x1c244e(0x121)]||this[_0x1c244e(0x154)]||_0x1a73f9[_0x1c244e(0x119)]==this[_0x1c244e(0x129)][_0x1c244e(0x126)][_0x1c244e(0x157)]&&(this[_0x1c244e(0x135)](),_0x4c4c0c());}),this[_0x27be3d(0x129)][_0x27be3d(0x126)]['on'](_0x27be3d(0x148),()=>{const _0x215155=_0x27be3d;this[_0x215155(0x154)]=''===this[_0x215155(0x129)][_0x215155(0x126)][_0x215155(0x157)][_0x215155(0x158)]?.[_0x215155(0x118)]();});}[_0x2a79e6(0x133)](){const _0x3170d2=_0x2a79e6;super[_0x3170d2(0x133)](),this[_0x3170d2(0x122)]&&this[_0x3170d2(0x122)][_0x3170d2(0x133)]();}[_0x2a79e6(0x135)](){const _0x52eebe=_0x2a79e6,_0x1d550c=this[_0x52eebe(0x129)][_0x52eebe(0x126)][_0x52eebe(0x157)][_0x52eebe(0x158)]?.[_0x52eebe(0x118)]();if(!_0x1d550c)return this[_0x52eebe(0x129)][_0x52eebe(0x14e)]=_0x43797a(this[_0x52eebe(0x11c)],_0x52eebe(0x11d)),void(this[_0x52eebe(0x129)][_0x52eebe(0x126)][_0x52eebe(0x11a)]=!0x0);this[_0x52eebe(0x129)][_0x52eebe(0x126)][_0x52eebe(0x11a)]=!0x1;const _0x8f34c7=_0x49f422(_0x1d550c);this[_0x52eebe(0x144)](_0x52eebe(0x138),_0x8f34c7),this[_0x52eebe(0x129)][_0x52eebe(0x126)][_0x52eebe(0x12b)]();}[_0x2a79e6(0x12c)](_0x1ec020){const _0x5a2558=_0x2a79e6;this[_0x5a2558(0x129)][_0x5a2558(0x126)][_0x5a2558(0x150)](_0x5a2558(0x153),_0x1ec020);}[_0x2a79e6(0x13d)](){const _0x21c003=_0x2a79e6,_0x23a9f0=new _0x233569(this[_0x21c003(0x11c)]);return _0x23a9f0[_0x21c003(0x150)]({'icon':_0x32b3cd,'label':_0x43797a(this[_0x21c003(0x11c)],_0x21c003(0x14d)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x21c003(0x12d),'isEnabled':!0x1}),_0x23a9f0['on'](_0x21c003(0x117),()=>{const _0x438d66=_0x21c003;this[_0x438d66(0x135)]();}),_0x23a9f0;}[_0x2a79e6(0x14f)](_0x3541ae){const _0x39b3cf=_0x2a79e6;this[_0x39b3cf(0x121)]=_0x3541ae;}[_0x2a79e6(0x125)](){const _0x38dd01=_0x2a79e6,_0x2a7cf6=this[_0x38dd01(0x11c)],_0x10e600=()=>{const _0x4d8fcf=_0x38dd01;_0x36de33[_0x4d8fcf(0x128)][_0x4d8fcf(0x145)](()=>{const _0x5a2ff8=_0x4d8fcf;if(_0x2170b7(this[_0x5a2ff8(0x157)])){const _0x35eda6=new _0x56332b(this[_0x5a2ff8(0x129)][_0x5a2ff8(0x126)][_0x5a2ff8(0x157)]),_0x575fce=new _0x56332b(this[_0x5a2ff8(0x140)][_0x5a2ff8(0x157)]),_0x703be7=_0x35eda6[_0x5a2ff8(0x13b)],_0x2c5932=_0x5a2ff8(0x124)===_0x2a7cf6[_0x5a2ff8(0x120)]?_0x5a2ff8(0x149):_0x5a2ff8(0x13f);_0x35eda6[_0x5a2ff8(0x141)]();const _0x39979e=_0x703be7-_0x35eda6[_0x5a2ff8(0x13b)]+0x1;this[_0x5a2ff8(0x140)][_0x5a2ff8(0x157)][_0x5a2ff8(0x14b)][_0x2c5932]=_0x5a2ff8(0x139)+(_0x703be7-_0x575fce[_0x5a2ff8(0x13b)]-_0x39979e)+_0x5a2ff8(0x134);}});};this[_0x38dd01(0x129)][_0x38dd01(0x126)]['on'](_0x38dd01(0x148),_0x10e600),this['on'](_0x38dd01(0x12f),()=>{const _0x11f980=_0x38dd01;_0x10e600(),this[_0x11f980(0x122)]=new _0x42d091(this[_0x11f980(0x129)][_0x11f980(0x126)][_0x11f980(0x157)],()=>{_0x10e600();});});}}
23
+ const _0x28e35d=_0xb6d0;(function(_0x8aea93,_0x2e8818){const _0x130805=_0xb6d0,_0x258a28=_0x8aea93();while(!![]){try{const _0x2f509e=parseInt(_0x130805(0xcc))/0x1*(parseInt(_0x130805(0xc3))/0x2)+parseInt(_0x130805(0xc6))/0x3*(-parseInt(_0x130805(0xcb))/0x4)+-parseInt(_0x130805(0xce))/0x5+-parseInt(_0x130805(0xac))/0x6+parseInt(_0x130805(0x94))/0x7*(parseInt(_0x130805(0xb7))/0x8)+parseInt(_0x130805(0xbe))/0x9+-parseInt(_0x130805(0xba))/0xa*(-parseInt(_0x130805(0xc7))/0xb);if(_0x2f509e===_0x2e8818)break;else _0x258a28['push'](_0x258a28['shift']());}catch(_0x2ecae7){_0x258a28['push'](_0x258a28['shift']());}}}(_0x1f71,0x69cd9));function _0x1f71(){const _0x3e88e4=['submitButtonView','locale','fieldWrapperChildren','isUploadInProgress','minRows','set','queryView','_setUpAddContextButtonPositioning','hasError','AI_CHAT_PROMPT_EMPTY_ERROR','fieldView','bind','calc(','style','rtl','ck-ai-chat__prompt-input','sendUserMessage','_addContextButtonView','_queryViewResizeObserver','MIN_ROWS','MAX_ROWS','execute','AI_CHAT_LABEL_SUBMIT','3024732UChUhj','update','extendTemplate','value','right','width','uiLanguageDirection','trim','setIsUploadInProgress','fire','reset','964112zPmNlf','isEnabled','maxRows','18350SZLcXD','requestAnimationFrame','px\x20-\x20var(--ck-spacing-tiny))','setPlaceholderText','7174278FPwuVT','left','destroy','enter','_createSubmitButton','6666OcSkcf','target','window','27543cRCrsK','1045LSOrUi','submit','errorText','excludeScrollbarsAndBorders','60rkqJJG','88fqECIL','element','2152965MFXoMJ','focusableChildren','add','placeholder','render','keystrokes','ck-ai-chat__prompt-submit-button','isEmpty','14rHTyAY'];_0x1f71=function(){return _0x3e88e4;};return _0x1f71();}import{IconSubmit as _0x3483b4}from'ckeditor5/src/icons.js';import{ButtonView as _0x58599e,AutocompleteView as _0xfef505,createLabeledTextarea as _0x40a17a}from'ckeditor5/src/ui.js';import{global as _0x19bc7b,isVisible as _0x3510d8,Rect as _0x159a1a,ResizeObserver as _0x20a669}from'ckeditor5/src/utils.js';import{getTranslation as _0x4b6e05}from'../../../aicore/utils/common-translations.js';function _0xb6d0(_0x507fd6,_0xe5b209){const _0x1f711d=_0x1f71();return _0xb6d0=function(_0xb6d09c,_0x38e2fa){_0xb6d09c=_0xb6d09c-0x90;let _0x497b42=_0x1f711d[_0xb6d09c];return _0x497b42;},_0xb6d0(_0x507fd6,_0xe5b209);}import{AIChatPromptSuggestionsListView as _0x481c11}from'./aichatpromptsuggestionslistview.js';import{escape as _0x602b95}from'es-toolkit/compat';export class AIChatPromptInputView extends _0xfef505{[_0x28e35d(0x95)];static [_0x28e35d(0xa8)]=0x1;static [_0x28e35d(0xa9)]=0xc;[_0x28e35d(0xa6)];[_0x28e35d(0xa7)];constructor(_0xdf5905,_0x241698){const _0x26d655=_0x28e35d;super(_0xdf5905,{'queryView':{'label':'','creator':_0x40a17a,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x481c11(_0xdf5905),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x26d655(0x9a)](_0x26d655(0x93),!0x0),this[_0x26d655(0x9a)](_0x26d655(0x98),!0x1),this[_0x26d655(0xa6)]=_0x241698,this[_0x26d655(0xa7)]=null,this[_0x26d655(0x9b)][_0x26d655(0x9f)][_0x26d655(0x99)]=AIChatPromptInputView[_0x26d655(0xa8)],this[_0x26d655(0x9b)][_0x26d655(0x9f)][_0x26d655(0xb9)]=AIChatPromptInputView[_0x26d655(0xa9)],this[_0x26d655(0x9b)][_0x26d655(0x97)][_0x26d655(0xd0)](this[_0x26d655(0xa6)]),this[_0x26d655(0x9c)](),this[_0x26d655(0xae)]({'attributes':{'class':['ck',_0x26d655(0xa4)]}}),this[_0x26d655(0x95)]=this[_0x26d655(0xc2)](),this[_0x26d655(0x95)][_0x26d655(0xa0)](_0x26d655(0xb8))['to'](this,_0x26d655(0x93),this,_0x26d655(0x98),(_0x1bb6fe,_0x3c3f90)=>!_0x1bb6fe&&!_0x3c3f90),this[_0x26d655(0xcf)][_0x26d655(0xd0)](this[_0x26d655(0x95)]);}[_0x28e35d(0x90)](){const _0x2c26d2=_0x28e35d;super[_0x2c26d2(0x90)](),this[_0x2c26d2(0x9b)][_0x2c26d2(0x97)][_0x2c26d2(0xd0)](this[_0x2c26d2(0x95)]),this[_0x2c26d2(0x91)][_0x2c26d2(0x9a)](_0x2c26d2(0xc1),(_0x2aa69d,_0x24986a)=>{const _0x759f01=_0x2c26d2;this[_0x759f01(0x98)]||this[_0x759f01(0x93)]||_0x2aa69d[_0x759f01(0xc4)]==this[_0x759f01(0x9b)][_0x759f01(0x9f)][_0x759f01(0xcd)]&&(this[_0x759f01(0xc8)](),_0x24986a());}),this[_0x2c26d2(0x9b)][_0x2c26d2(0x9f)]['on'](_0x2c26d2(0xad),()=>{const _0x1d85ef=_0x2c26d2;this[_0x1d85ef(0x93)]=''===this[_0x1d85ef(0x9b)][_0x1d85ef(0x9f)][_0x1d85ef(0xcd)][_0x1d85ef(0xaf)]?.[_0x1d85ef(0xb3)]();});}[_0x28e35d(0xc0)](){const _0x4a435a=_0x28e35d;super[_0x4a435a(0xc0)](),this[_0x4a435a(0xa7)]&&this[_0x4a435a(0xa7)][_0x4a435a(0xc0)]();}[_0x28e35d(0xc8)](){const _0x41c7e3=_0x28e35d,_0x3ee7fa=this[_0x41c7e3(0x9b)][_0x41c7e3(0x9f)][_0x41c7e3(0xcd)][_0x41c7e3(0xaf)]?.[_0x41c7e3(0xb3)]();if(!_0x3ee7fa)return this[_0x41c7e3(0x9b)][_0x41c7e3(0xc9)]=_0x4b6e05(this[_0x41c7e3(0x96)],_0x41c7e3(0x9e)),void(this[_0x41c7e3(0x9b)][_0x41c7e3(0x9f)][_0x41c7e3(0x9d)]=!0x0);this[_0x41c7e3(0x9b)][_0x41c7e3(0x9f)][_0x41c7e3(0x9d)]=!0x1;const _0xb6aa18=_0x602b95(_0x3ee7fa);this[_0x41c7e3(0xb5)](_0x41c7e3(0xa5),_0xb6aa18),this[_0x41c7e3(0x9b)][_0x41c7e3(0x9f)][_0x41c7e3(0xb6)]();}[_0x28e35d(0xbd)](_0x11ece8){const _0x115763=_0x28e35d;this[_0x115763(0x9b)][_0x115763(0x9f)][_0x115763(0x9a)](_0x115763(0xd1),_0x11ece8);}[_0x28e35d(0xc2)](){const _0x1b2555=_0x28e35d,_0x164078=new _0x58599e(this[_0x1b2555(0x96)]);return _0x164078[_0x1b2555(0x9a)]({'icon':_0x3483b4,'label':_0x4b6e05(this[_0x1b2555(0x96)],_0x1b2555(0xab)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x1b2555(0x92),'isEnabled':!0x1}),_0x164078['on'](_0x1b2555(0xaa),()=>{const _0x2a445e=_0x1b2555;this[_0x2a445e(0xc8)]();}),_0x164078;}[_0x28e35d(0xb4)](_0xe25986){const _0x107fd6=_0x28e35d;this[_0x107fd6(0x98)]=_0xe25986;}[_0x28e35d(0x9c)](){const _0xd24fd7=_0x28e35d,_0x3eb00f=this[_0xd24fd7(0x96)],_0x5eec3c=()=>{const _0xcd3d7f=_0xd24fd7;_0x19bc7b[_0xcd3d7f(0xc5)][_0xcd3d7f(0xbb)](()=>{const _0x1db74a=_0xcd3d7f;if(_0x3510d8(this[_0x1db74a(0xcd)])){const _0x1b7df3=new _0x159a1a(this[_0x1db74a(0x9b)][_0x1db74a(0x9f)][_0x1db74a(0xcd)]),_0x17dc13=new _0x159a1a(this[_0x1db74a(0xa6)][_0x1db74a(0xcd)]),_0x2e7877=_0x1b7df3[_0x1db74a(0xb1)],_0x5b5cb4=_0x1db74a(0xa3)===_0x3eb00f[_0x1db74a(0xb2)]?_0x1db74a(0xb0):_0x1db74a(0xbf);_0x1b7df3[_0x1db74a(0xca)]();const _0x3abd4f=_0x2e7877-_0x1b7df3[_0x1db74a(0xb1)]+0x1;this[_0x1db74a(0xa6)][_0x1db74a(0xcd)][_0x1db74a(0xa2)][_0x5b5cb4]=_0x1db74a(0xa1)+(_0x2e7877-_0x17dc13[_0x1db74a(0xb1)]-_0x3abd4f)+_0x1db74a(0xbc);}});};this[_0xd24fd7(0x9b)][_0xd24fd7(0x9f)]['on'](_0xd24fd7(0xad),_0x5eec3c),this['on'](_0xd24fd7(0x90),()=>{const _0x8abf81=_0xd24fd7;_0x5eec3c(),this[_0x8abf81(0xa7)]=new _0x20a669(this[_0x8abf81(0x9b)][_0x8abf81(0x9f)][_0x8abf81(0xcd)],()=>{_0x5eec3c();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f9875=_0x1b61;(function(_0x259e05,_0x571c22){const _0x19e0b3=_0x1b61,_0x265204=_0x259e05();while(!![]){try{const _0x30e53c=-parseInt(_0x19e0b3(0x15b))/0x1*(parseInt(_0x19e0b3(0x176))/0x2)+-parseInt(_0x19e0b3(0x16f))/0x3*(parseInt(_0x19e0b3(0x15e))/0x4)+-parseInt(_0x19e0b3(0x172))/0x5+-parseInt(_0x19e0b3(0x182))/0x6+-parseInt(_0x19e0b3(0x160))/0x7*(parseInt(_0x19e0b3(0x171))/0x8)+-parseInt(_0x19e0b3(0x16c))/0x9+parseInt(_0x19e0b3(0x175))/0xa*(parseInt(_0x19e0b3(0x156))/0xb);if(_0x30e53c===_0x571c22)break;else _0x265204['push'](_0x265204['shift']());}catch(_0x3a62b5){_0x265204['push'](_0x265204['shift']());}}}(_0x6a24,0x6d07e));function _0x1b61(_0x5309da,_0x43ce93){const _0x6a248=_0x6a24();return _0x1b61=function(_0x1b61c2,_0x266458){_0x1b61c2=_0x1b61c2-0x150;let _0x4d1c72=_0x6a248[_0x1b61c2];return _0x4d1c72;},_0x1b61(_0x5309da,_0x43ce93);}import{View as _0x309264,ViewCollection as _0x42775f}from'ckeditor5/src/ui.js';import{uid as _0x410da9}from'ckeditor5/src/utils.js';function _0x6a24(){const _0x3e89ad=['addResourceToContext','_skeletonLoader','extendTemplate','34030414GScsHK','_searchInputVisibleFrom','loadSourceResources','length','_source','2aUWIVf','add','search','4hFcZvl','div','1897uXEspr','ck-ai-chat-resources','_createSearchView','_createSearchSection','ck\x20ck-search','_searchSection','updateResourceState','aiChatResources','source','set','useDefaultFiltering','getQuery','5993721ezkukR','_latestLoadResourcesUid','has','486168oFcgUU','render','2792RKHbXE','2687340IbQyXI','ck-hidden','locale','10WAvVAp','674758PzIZdx','_createSkeletonView','highlightText','setTemplate','_searchView','isLoading','children','bindTemplate','loadResources','fire','searchInputVisibleFrom','delegate','3073524RyJXiD','setResources','_createResourcesListView','_resourcesListView'];_0x6a24=function(){return _0x3e89ad;};return _0x6a24();}import{AIChatContextResourcesListView as _0x4c5321}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x1528c9}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x48d52f,SKELETON_DEFINITIONS as _0x4a8f62}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x309264{[_0x3f9875(0x17a)];[_0x3f9875(0x165)];[_0x3f9875(0x157)];[_0x3f9875(0x152)];[_0x3f9875(0x154)];[_0x3f9875(0x15a)];[_0x3f9875(0x17c)];[_0x3f9875(0x16d)]=null;constructor(_0x86bf44,_0x5e8417){const _0x2b2b78=_0x3f9875;super(_0x86bf44),this[_0x2b2b78(0x15a)]=_0x5e8417[_0x2b2b78(0x168)],this[_0x2b2b78(0x157)]=_0x5e8417[_0x2b2b78(0x180)]??0x7,this[_0x2b2b78(0x169)](_0x2b2b78(0x17b),!0x0),this[_0x2b2b78(0x17a)]=this[_0x2b2b78(0x162)](),this[_0x2b2b78(0x165)]=this[_0x2b2b78(0x163)](),this[_0x2b2b78(0x152)]=this[_0x2b2b78(0x151)](),this[_0x2b2b78(0x154)]=this[_0x2b2b78(0x177)](),this[_0x2b2b78(0x17c)]=new _0x42775f([this[_0x2b2b78(0x154)],this[_0x2b2b78(0x152)]]),this[_0x2b2b78(0x179)]({'tag':_0x2b2b78(0x15f),'attributes':{'class':_0x2b2b78(0x161)},'children':this[_0x2b2b78(0x17c)]});}[_0x3f9875(0x162)](){const _0x317234=_0x3f9875;return new _0x1528c9(this[_0x317234(0x174)]);}[_0x3f9875(0x163)](){const _0x10f9c0=_0x3f9875,_0x3c8d81=new _0x309264(this[_0x10f9c0(0x174)]);return _0x3c8d81[_0x10f9c0(0x179)]({'tag':_0x10f9c0(0x15f),'attributes':{'class':_0x10f9c0(0x164)},'children':[this[_0x10f9c0(0x17a)]]}),this[_0x10f9c0(0x17a)]['on'](_0x10f9c0(0x15d),(_0x55cfed,_0x5d8b6f)=>{const _0x558e1a=_0x10f9c0;this[_0x558e1a(0x17e)](_0x5d8b6f),this[_0x558e1a(0x15a)][_0x558e1a(0x16a)]&&this[_0x558e1a(0x152)][_0x558e1a(0x178)](_0x5d8b6f);}),_0x3c8d81;}[_0x3f9875(0x151)](){const _0x544da5=_0x3f9875,_0x24d540=new _0x4c5321(this[_0x544da5(0x174)],this[_0x544da5(0x15a)]);return _0x24d540[_0x544da5(0x181)](_0x544da5(0x153))['to'](this),_0x24d540[_0x544da5(0x155)]({'attributes':{'class':this[_0x544da5(0x17d)]['if'](_0x544da5(0x17b),_0x544da5(0x173))}}),_0x24d540;}[_0x3f9875(0x177)](){const _0x59dc1d=_0x3f9875,_0x1db7be=new _0x48d52f(this[_0x59dc1d(0x174)],_0x4a8f62[_0x59dc1d(0x167)]);return _0x1db7be[_0x59dc1d(0x155)]({'attributes':{'class':[this[_0x59dc1d(0x17d)]['if'](_0x59dc1d(0x17b),_0x59dc1d(0x173),_0x4f3640=>!_0x4f3640)]}}),_0x1db7be;}[_0x3f9875(0x170)](){const _0x202269=_0x3f9875;super[_0x202269(0x170)](),this[_0x202269(0x17e)]('');}[_0x3f9875(0x17e)](_0x33ee7f){const _0x5d46c3=_0x3f9875,_0x5cc67f=_0x410da9();this[_0x5d46c3(0x16d)]=_0x5cc67f,this[_0x5d46c3(0x17f)](_0x5d46c3(0x158),{'sourceId':this[_0x5d46c3(0x15a)]['id'],'query':_0x33ee7f,'uid':_0x5cc67f}),this[_0x5d46c3(0x17b)]=!0x0;}[_0x3f9875(0x150)](_0x36f2bc,_0x1348d7){const _0x526b9b=_0x3f9875;if(_0x1348d7&&_0x1348d7!==this[_0x526b9b(0x16d)])return;const _0xbb5374=this[_0x526b9b(0x15a)][_0x526b9b(0x16a)]?this[_0x526b9b(0x17a)][_0x526b9b(0x16b)]():'';this[_0x526b9b(0x152)][_0x526b9b(0x150)](_0x36f2bc,_0xbb5374),_0x36f2bc[_0x526b9b(0x159)]>=this[_0x526b9b(0x157)]&&!this[_0x526b9b(0x17c)][_0x526b9b(0x16e)](this[_0x526b9b(0x165)])&&this[_0x526b9b(0x17c)][_0x526b9b(0x15c)](this[_0x526b9b(0x165)],0x0),requestAnimationFrame(()=>{const _0x36cce6=_0x526b9b;this[_0x36cce6(0x17b)]=!0x1;});}[_0x3f9875(0x166)](_0xaa8a32,_0x1279da){const _0x4d0da9=_0x3f9875;this[_0x4d0da9(0x152)][_0x4d0da9(0x166)](_0xaa8a32,_0x1279da);}}
23
+ function _0x4462(){const _0x22b246=['search','children','62405400fhbskW','delegate','aiChatResources','11901768fjRZFz','length','_skeletonLoader','set','useDefaultFiltering','2291496QmjvUM','_createSkeletonView','setTemplate','isLoading','extendTemplate','div','_resourcesListView','ck\x20ck-search','14nxIrNk','_searchView','_source','loadResources','_createSearchSection','render','updateResourceState','getQuery','source','add','locale','has','addResourceToContext','searchInputVisibleFrom','ck-ai-chat-resources','fire','_createSearchView','286107IxVofL','_latestLoadResourcesUid','bindTemplate','8189150dxkKxU','53EhBYFa','highlightText','_searchSection','_searchInputVisibleFrom','65598rghooz','44ohACFj','loadSourceResources','ck-hidden','6674877LJMfVw','setResources','_createResourcesListView'];_0x4462=function(){return _0x22b246;};return _0x4462();}const _0x28e33c=_0x2034;(function(_0x2c0ac2,_0x474025){const _0x15c721=_0x2034,_0xde8ef2=_0x2c0ac2();while(!![]){try{const _0x4d948d=-parseInt(_0x15c721(0x19e))/0x1*(parseInt(_0x15c721(0x1a2))/0x2)+parseInt(_0x15c721(0x19a))/0x3*(parseInt(_0x15c721(0x1a3))/0x4)+-parseInt(_0x15c721(0x19d))/0x5+parseInt(_0x15c721(0x1b3))/0x6*(-parseInt(_0x15c721(0x1bb))/0x7)+-parseInt(_0x15c721(0x1ae))/0x8+-parseInt(_0x15c721(0x1a6))/0x9+parseInt(_0x15c721(0x1ab))/0xa;if(_0x4d948d===_0x474025)break;else _0xde8ef2['push'](_0xde8ef2['shift']());}catch(_0x371f62){_0xde8ef2['push'](_0xde8ef2['shift']());}}}(_0x4462,0xe0a98));import{View as _0x50be98,ViewCollection as _0x52c0a9}from'ckeditor5/src/ui.js';import{uid as _0x1b6214}from'ckeditor5/src/utils.js';function _0x2034(_0x3a56a4,_0x455ea5){const _0x4462a0=_0x4462();return _0x2034=function(_0x20349b,_0x4c7bae){_0x20349b=_0x20349b-0x192;let _0x107587=_0x4462a0[_0x20349b];return _0x107587;},_0x2034(_0x3a56a4,_0x455ea5);}import{AIChatContextResourcesListView as _0x22f11d}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x1425a2}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x237c89,SKELETON_DEFINITIONS as _0x47fd27}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x50be98{[_0x28e33c(0x1bc)];[_0x28e33c(0x1a0)];[_0x28e33c(0x1a1)];[_0x28e33c(0x1b9)];[_0x28e33c(0x1b0)];[_0x28e33c(0x1bd)];[_0x28e33c(0x1aa)];[_0x28e33c(0x19b)]=null;constructor(_0x4ae152,_0x50649c){const _0x36dbff=_0x28e33c;super(_0x4ae152),this[_0x36dbff(0x1bd)]=_0x50649c[_0x36dbff(0x1c3)],this[_0x36dbff(0x1a1)]=_0x50649c[_0x36dbff(0x196)]??0x7,this[_0x36dbff(0x1b1)](_0x36dbff(0x1b6),!0x0),this[_0x36dbff(0x1bc)]=this[_0x36dbff(0x199)](),this[_0x36dbff(0x1a0)]=this[_0x36dbff(0x1bf)](),this[_0x36dbff(0x1b9)]=this[_0x36dbff(0x1a8)](),this[_0x36dbff(0x1b0)]=this[_0x36dbff(0x1b4)](),this[_0x36dbff(0x1aa)]=new _0x52c0a9([this[_0x36dbff(0x1b0)],this[_0x36dbff(0x1b9)]]),this[_0x36dbff(0x1b5)]({'tag':_0x36dbff(0x1b8),'attributes':{'class':_0x36dbff(0x197)},'children':this[_0x36dbff(0x1aa)]});}[_0x28e33c(0x199)](){const _0x360834=_0x28e33c;return new _0x1425a2(this[_0x360834(0x193)]);}[_0x28e33c(0x1bf)](){const _0x32c708=_0x28e33c,_0x20b808=new _0x50be98(this[_0x32c708(0x193)]);return _0x20b808[_0x32c708(0x1b5)]({'tag':_0x32c708(0x1b8),'attributes':{'class':_0x32c708(0x1ba)},'children':[this[_0x32c708(0x1bc)]]}),this[_0x32c708(0x1bc)]['on'](_0x32c708(0x1a9),(_0x515dec,_0x24021b)=>{const _0x141825=_0x32c708;this[_0x141825(0x1be)](_0x24021b),this[_0x141825(0x1bd)][_0x141825(0x1b2)]&&this[_0x141825(0x1b9)][_0x141825(0x19f)](_0x24021b);}),_0x20b808;}[_0x28e33c(0x1a8)](){const _0x265221=_0x28e33c,_0x70cb64=new _0x22f11d(this[_0x265221(0x193)],this[_0x265221(0x1bd)]);return _0x70cb64[_0x265221(0x1ac)](_0x265221(0x195))['to'](this),_0x70cb64[_0x265221(0x1b7)]({'attributes':{'class':this[_0x265221(0x19c)]['if'](_0x265221(0x1b6),_0x265221(0x1a5))}}),_0x70cb64;}[_0x28e33c(0x1b4)](){const _0x130176=_0x28e33c,_0xb5ab59=new _0x237c89(this[_0x130176(0x193)],_0x47fd27[_0x130176(0x1ad)]);return _0xb5ab59[_0x130176(0x1b7)]({'attributes':{'class':[this[_0x130176(0x19c)]['if'](_0x130176(0x1b6),_0x130176(0x1a5),_0x3b011f=>!_0x3b011f)]}}),_0xb5ab59;}[_0x28e33c(0x1c0)](){const _0x5b4118=_0x28e33c;super[_0x5b4118(0x1c0)](),this[_0x5b4118(0x1be)]('');}[_0x28e33c(0x1be)](_0x5a1865){const _0x34c27c=_0x28e33c,_0x5bdb88=_0x1b6214();this[_0x34c27c(0x19b)]=_0x5bdb88,this[_0x34c27c(0x198)](_0x34c27c(0x1a4),{'sourceId':this[_0x34c27c(0x1bd)]['id'],'query':_0x5a1865,'uid':_0x5bdb88}),this[_0x34c27c(0x1b6)]=!0x0;}[_0x28e33c(0x1a7)](_0x28a7fc,_0x320610){const _0x2d276b=_0x28e33c;if(_0x320610&&_0x320610!==this[_0x2d276b(0x19b)])return;const _0x3ceeaf=this[_0x2d276b(0x1bd)][_0x2d276b(0x1b2)]?this[_0x2d276b(0x1bc)][_0x2d276b(0x1c2)]():'';this[_0x2d276b(0x1b9)][_0x2d276b(0x1a7)](_0x28a7fc,_0x3ceeaf),_0x28a7fc[_0x2d276b(0x1af)]>=this[_0x2d276b(0x1a1)]&&!this[_0x2d276b(0x1aa)][_0x2d276b(0x194)](this[_0x2d276b(0x1a0)])&&this[_0x2d276b(0x1aa)][_0x2d276b(0x192)](this[_0x2d276b(0x1a0)],0x0),requestAnimationFrame(()=>{const _0x4ca804=_0x2d276b;this[_0x4ca804(0x1b6)]=!0x1;});}[_0x28e33c(0x1c1)](_0x5a132b,_0x1c5b3e){const _0xc06642=_0x28e33c;this[_0xc06642(0x1b9)][_0xc06642(0x1c1)](_0x5a132b,_0x1c5b3e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43375c=_0x1b23;(function(_0x347233,_0x3c93e9){const _0x2a7cee=_0x1b23,_0x27c0fc=_0x347233();while(!![]){try{const _0x55b07a=parseInt(_0x2a7cee(0x14e))/0x1+parseInt(_0x2a7cee(0x148))/0x2*(parseInt(_0x2a7cee(0x151))/0x3)+parseInt(_0x2a7cee(0x149))/0x4*(parseInt(_0x2a7cee(0x15e))/0x5)+-parseInt(_0x2a7cee(0x143))/0x6*(-parseInt(_0x2a7cee(0x146))/0x7)+-parseInt(_0x2a7cee(0x147))/0x8*(parseInt(_0x2a7cee(0x15d))/0x9)+-parseInt(_0x2a7cee(0x15c))/0xa+-parseInt(_0x2a7cee(0x145))/0xb;if(_0x55b07a===_0x3c93e9)break;else _0x27c0fc['push'](_0x27c0fc['shift']());}catch(_0x5a09ce){_0x27c0fc['push'](_0x27c0fc['shift']());}}}(_0x2fa3,0x2aa93));import{HighlightedTextView as _0x4752bf,IconView as _0x57e0e5,ListItemView as _0x2c08db}from'ckeditor5/src/ui.js';function _0x2fa3(){const _0x8011c5=['extendTemplate','type','_setupTemplate','text','ck-ai-chat-resources__item__icon','_createIconView','TEXT','highlightText','_titleView','3440930PYhlrc','9dedprr','30xafBFe','execute','FILE','ck-ai-chat-resources__item','_createTitleView','content','span','_iconView','ck-ai-chat-resources__item--in-context','ck-ai-chat-resources__item-title','DOCUMENT','set','resource','setTemplate','getResourceIcon','bindTemplate','isInContext','trim','168JJYgfg','ck-hidden','3724644ATJpUq','84847muhYSx','1124768NrgSPJ','24JJCNPg','167212stRYly','div','render','updateResourceState','isVisible','324690XRWCAQ','URL','label','20784Tzvako','_updateIcon'];_0x2fa3=function(){return _0x8011c5;};return _0x2fa3();}import{escapeRegExp as _0x3160f2}from'es-toolkit/compat';import{AIContextItemType as _0x4ef0b8}from'../../../../aicore/model/aicontext.js';function _0x1b23(_0x5ace47,_0x4cf577){const _0x2fa37f=_0x2fa3();return _0x1b23=function(_0x1b23d9,_0x437db5){_0x1b23d9=_0x1b23d9-0x139;let _0x5a4998=_0x2fa37f[_0x1b23d9];return _0x5a4998;},_0x1b23(_0x5ace47,_0x4cf577);}import{IconFileUpload as _0x2cd16b,IconCheck as _0x23881d,IconDocument as _0x3a8603,IconDocumentOutline as _0x980409,IconLink as _0x183808}from'@ckeditor/ckeditor5-icons';const Jr=_0x43375c(0x161),Kr=_0x43375c(0x139),Nr=_0x43375c(0x13a),Qr=_0x43375c(0x157);export class AIChatResourceListItemView extends _0x2c08db{[_0x43375c(0x13d)];[_0x43375c(0x15b)];[_0x43375c(0x165)];constructor(_0x2c6bad,_0x3c9a41){const _0x598129=_0x43375c;super(_0x2c6bad),this[_0x598129(0x13d)]=_0x3c9a41,this[_0x598129(0x13c)](_0x598129(0x141),!!_0x3c9a41[_0x598129(0x141)]),this[_0x598129(0x15b)]=this[_0x598129(0x162)](),this[_0x598129(0x165)]=this[_0x598129(0x158)](),this[_0x598129(0x155)]();}[_0x43375c(0x14b)](){const _0x4206e1=_0x43375c;super[_0x4206e1(0x14b)]();}[_0x43375c(0x13f)](_0x46cd62){const _0x2deb74=_0x43375c;if(_0x46cd62[_0x2deb74(0x141)])return _0x23881d;switch(_0x46cd62[_0x2deb74(0x154)]){case _0x4ef0b8[_0x2deb74(0x13b)]:return _0x3a8603;case _0x4ef0b8[_0x2deb74(0x14f)]:return _0x183808;case _0x4ef0b8[_0x2deb74(0x160)]:case _0x4ef0b8[_0x2deb74(0x159)]:return _0x2cd16b;default:return _0x980409;}}[_0x43375c(0x15a)](_0x2637b0){const _0x2dc2dd=_0x43375c;if(!_0x2637b0||''===_0x2637b0[_0x2dc2dd(0x142)]())return void this[_0x2dc2dd(0x15b)][_0x2dc2dd(0x15a)](null);const _0x5d13e7=new RegExp(_0x3160f2(_0x2637b0),'gi');this[_0x2dc2dd(0x15b)][_0x2dc2dd(0x15a)](_0x5d13e7);}[_0x43375c(0x14c)](_0x2ca48b){const _0xe28fb=_0x43375c;this[_0xe28fb(0x13d)][_0xe28fb(0x141)]=_0x2ca48b,this[_0xe28fb(0x141)]=_0x2ca48b,this[_0xe28fb(0x152)]();}[_0x43375c(0x162)](){const _0x1b1a59=_0x43375c,_0x1427f7=new _0x4752bf();return _0x1427f7[_0x1b1a59(0x156)]=this[_0x1b1a59(0x13d)][_0x1b1a59(0x150)],_0x1427f7[_0x1b1a59(0x153)]({'tag':_0x1b1a59(0x164),'attributes':{'class':[Nr]}}),_0x1427f7;}[_0x43375c(0x158)](){const _0x4d9c75=_0x43375c,_0x1e001f=new _0x57e0e5();return _0x1e001f[_0x4d9c75(0x163)]=this[_0x4d9c75(0x13f)](this[_0x4d9c75(0x13d)]),_0x1e001f;}[_0x43375c(0x155)](){const _0x113507=_0x43375c,_0x5c3c7a=this[_0x113507(0x140)];this[_0x113507(0x13e)]({'tag':_0x113507(0x14a),'attributes':{'class':[Jr,_0x5c3c7a['if'](_0x113507(0x14d),_0x113507(0x144),_0x4c2a8f=>!_0x4c2a8f),_0x5c3c7a['if'](_0x113507(0x141),Kr)]},'children':[{'tag':_0x113507(0x14a),'attributes':{'class':[Qr]},'children':[this[_0x113507(0x165)]]},this[_0x113507(0x15b)]],'on':{'click':_0x5c3c7a['to'](_0x113507(0x15f))}});}[_0x43375c(0x152)](){const _0x150bbb=_0x43375c;this[_0x150bbb(0x165)][_0x150bbb(0x163)]=this[_0x150bbb(0x13f)](this[_0x150bbb(0x13d)]);}}
23
+ const _0x41f43d=_0x5768;(function(_0x74f1d9,_0x805f69){const _0x52cb1f=_0x5768,_0x6cfc4c=_0x74f1d9();while(!![]){try{const _0x3a2112=parseInt(_0x52cb1f(0x99))/0x1+parseInt(_0x52cb1f(0xb4))/0x2+-parseInt(_0x52cb1f(0xa9))/0x3+-parseInt(_0x52cb1f(0xa1))/0x4+parseInt(_0x52cb1f(0x9b))/0x5+-parseInt(_0x52cb1f(0x94))/0x6+-parseInt(_0x52cb1f(0xa4))/0x7;if(_0x3a2112===_0x805f69)break;else _0x6cfc4c['push'](_0x6cfc4c['shift']());}catch(_0x3387f6){_0x6cfc4c['push'](_0x6cfc4c['shift']());}}}(_0x212e,0x97922));import{HighlightedTextView as _0xdfbdc4,IconView as _0x5ce64d,ListItemView as _0x3a7a9d}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x3660a1}from'es-toolkit/compat';import{AIContextItemType as _0x94f700}from'../../../../aicore/model/aicontext.js';function _0x5768(_0x20106a,_0x2c6b3a){const _0x212e27=_0x212e();return _0x5768=function(_0x576855,_0x470d24){_0x576855=_0x576855-0x90;let _0x3a04f0=_0x212e27[_0x576855];return _0x3a04f0;},_0x5768(_0x20106a,_0x2c6b3a);}import{IconFileUpload as _0x488478,IconCheck as _0x587715,IconDocument as _0x9b9c66,IconDocumentOutline as _0x380b0e,IconLink as _0x571f22}from'@ckeditor/ckeditor5-icons';const zr=_0x41f43d(0xa7),Jr=_0x41f43d(0xac),Kr=_0x41f43d(0x98),Nr=_0x41f43d(0x96);function _0x212e(){const _0x497fb9=['extendTemplate','DOCUMENT','1879020XjwIgO','isInContext','content','4123770NmWhlK','getResourceIcon','type','ck-ai-chat-resources__item','TEXT','934542BccIyq','bindTemplate','setTemplate','ck-ai-chat-resources__item--in-context','trim','set','execute','_updateIcon','_titleView','_createTitleView','resource','2356282KXkTHG','label','highlightText','text','render','_iconView','FILE','isVisible','div','898056VZtVJf','_createIconView','ck-ai-chat-resources__item__icon','span','ck-ai-chat-resources__item-title','170064RWOciv','ck-hidden','3963420kgXBcx','URL','updateResourceState','_setupTemplate'];_0x212e=function(){return _0x497fb9;};return _0x212e();}export class AIChatResourceListItemView extends _0x3a7a9d{[_0x41f43d(0xb3)];[_0x41f43d(0xb1)];[_0x41f43d(0x90)];constructor(_0x698133,_0x4c4019){const _0x19015c=_0x41f43d;super(_0x698133),this[_0x19015c(0xb3)]=_0x4c4019,this[_0x19015c(0xae)](_0x19015c(0xa2),!!_0x4c4019[_0x19015c(0xa2)]),this[_0x19015c(0xb1)]=this[_0x19015c(0xb2)](),this[_0x19015c(0x90)]=this[_0x19015c(0x95)](),this[_0x19015c(0x9e)]();}[_0x41f43d(0xb8)](){const _0x43d99e=_0x41f43d;super[_0x43d99e(0xb8)]();}[_0x41f43d(0xa5)](_0x24a18d){const _0x4cac27=_0x41f43d;if(_0x24a18d[_0x4cac27(0xa2)])return _0x587715;switch(_0x24a18d[_0x4cac27(0xa6)]){case _0x94f700[_0x4cac27(0xa0)]:return _0x9b9c66;case _0x94f700[_0x4cac27(0x9c)]:return _0x571f22;case _0x94f700[_0x4cac27(0x91)]:case _0x94f700[_0x4cac27(0xa8)]:return _0x488478;default:return _0x380b0e;}}[_0x41f43d(0xb6)](_0x5d8a70){const _0x354f36=_0x41f43d;if(!_0x5d8a70||''===_0x5d8a70[_0x354f36(0xad)]())return void this[_0x354f36(0xb1)][_0x354f36(0xb6)](null);const _0x90cdd3=new RegExp(_0x3660a1(_0x5d8a70),'gi');this[_0x354f36(0xb1)][_0x354f36(0xb6)](_0x90cdd3);}[_0x41f43d(0x9d)](_0x53c9aa){const _0x3107ea=_0x41f43d;this[_0x3107ea(0xb3)][_0x3107ea(0xa2)]=_0x53c9aa,this[_0x3107ea(0xa2)]=_0x53c9aa,this[_0x3107ea(0xb0)]();}[_0x41f43d(0xb2)](){const _0x1d927d=_0x41f43d,_0x5d1186=new _0xdfbdc4();return _0x5d1186[_0x1d927d(0xb7)]=this[_0x1d927d(0xb3)][_0x1d927d(0xb5)],_0x5d1186[_0x1d927d(0x9f)]({'tag':_0x1d927d(0x97),'attributes':{'class':[Kr]}}),_0x5d1186;}[_0x41f43d(0x95)](){const _0x25e575=_0x41f43d,_0x55ba1b=new _0x5ce64d();return _0x55ba1b[_0x25e575(0xa3)]=this[_0x25e575(0xa5)](this[_0x25e575(0xb3)]),_0x55ba1b;}[_0x41f43d(0x9e)](){const _0x287ad4=_0x41f43d,_0xe86865=this[_0x287ad4(0xaa)];this[_0x287ad4(0xab)]({'tag':_0x287ad4(0x93),'attributes':{'class':[zr,_0xe86865['if'](_0x287ad4(0x92),_0x287ad4(0x9a),_0xf839aa=>!_0xf839aa),_0xe86865['if'](_0x287ad4(0xa2),Jr)]},'children':[{'tag':_0x287ad4(0x93),'attributes':{'class':[Nr]},'children':[this[_0x287ad4(0x90)]]},this[_0x287ad4(0xb1)]],'on':{'click':_0xe86865['to'](_0x287ad4(0xaf))}});}[_0x41f43d(0xb0)](){const _0x180cb4=_0x41f43d;this[_0x180cb4(0x90)][_0x180cb4(0xa3)]=this[_0x180cb4(0xa5)](this[_0x180cb4(0xb3)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x582a2d,IconView as _0x2241f9,LabeledFieldView as _0xbc6755,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x484ea6,IconCancel as _0x35ad85}from'ckeditor5/src/icons.js';import{getTranslation as _0x4d75be}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0xbc6755{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x5161b2){const t=_0x5161b2['t'],_0x5d4292={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x4d75be(_0x5161b2,'AI_CHAT_SEARCH_RESOURCES')};super(_0x5161b2,_0x5d4292['creator']),this['label']=_0x5d4292['label'],this['_viewConfig']=_0x5d4292,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x5161b2,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0xbeed0b){this['fire']('search',_0xbeed0b);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x2241f9(),this['iconView']['content']=_0x484ea6,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x39dd,t){this['resetButtonView']=new _0x582a2d(_0x39dd),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x35ad85,'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',_0x372974=>!_0x372974),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 _0x40158f,IconView as _0x42da94,LabeledFieldView as _0x2133b8,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x52762c,IconCancel as _0x30fb0a}from'ckeditor5/src/icons.js';import{getTranslation as _0x457d5c}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x2133b8{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x55eb50){const t=_0x55eb50['t'],_0x20ce69={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x457d5c(_0x55eb50,'AI_CHAT_SEARCH_RESOURCES')};super(_0x55eb50,_0x20ce69['creator']),this['label']=_0x20ce69['label'],this['_viewConfig']=_0x20ce69,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x55eb50,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x4bf30b){this['fire']('search',_0x4bf30b);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x42da94(),this['iconView']['content']=_0x52762c,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x3b50b2,t){this['resetButtonView']=new _0x40158f(_0x3b50b2),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x30fb0a,'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',_0x4bce22=>!_0x4bce22),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);}}