@ckeditor/ckeditor5-ai 47.0.0-alpha.3 → 47.0.0-alpha.4

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 (107) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/legacyerrors.js +1 -1
  15. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformview.js +1 -1
  19. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  21. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  22. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  23. package/src/aiballoon/aiballoon.js +1 -1
  24. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  25. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  26. package/src/aiballoon/ui/aiballoonview.js +1 -1
  27. package/src/aichat/aichat.js +1 -1
  28. package/src/aichat/aichatcontroller.js +1 -1
  29. package/src/aichat/aichatui.js +1 -1
  30. package/src/aichat/model/aichatcontext.js +1 -1
  31. package/src/aichat/model/aichatconversation.js +1 -1
  32. package/src/aichat/model/aichatinteraction.js +1 -1
  33. package/src/aichat/model/aichatmodels.js +1 -1
  34. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  35. package/src/aichat/ui/aichatfeedview.js +1 -1
  36. package/src/aichat/ui/aichatheaderview.js +1 -1
  37. package/src/aichat/ui/aichatview.js +1 -1
  38. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  45. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  49. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  55. package/src/aichat/utils/promisequeue.js +1 -1
  56. package/src/aichathistory/aichathistory.js +1 -1
  57. package/src/aichathistory/aichathistorycontroller.js +1 -1
  58. package/src/aichathistory/aichathistoryui.js +1 -1
  59. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  60. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  61. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  62. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  63. package/src/aicore/aiconnector.js +1 -1
  64. package/src/aicore/aiediting.js +1 -1
  65. package/src/aicore/model/aicapabilities.js +1 -1
  66. package/src/aicore/model/aiinteraction.js +1 -1
  67. package/src/aicore/model/aireply.js +1 -1
  68. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  69. package/src/aicore/ui/aidisclaimerview.js +1 -1
  70. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  71. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  72. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  73. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  74. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  75. package/src/aicore/utils/createresizebutton.js +1 -1
  76. package/src/aicore/utils/documentposition.js +1 -1
  77. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  78. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  79. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  80. package/src/aiquickactions/aiquickactions.js +1 -1
  81. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  82. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  83. package/src/aiquickactions/aiquickactionsui.js +1 -1
  84. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  85. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  86. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  87. package/src/aireviewmode/aireviewmode.js +1 -1
  88. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  89. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  90. package/src/aireviewmode/aireviewmodeui.js +1 -1
  91. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  92. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  93. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  94. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  95. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  96. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  97. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  98. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  99. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  100. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  101. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  102. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  103. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  104. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  105. package/src/aitabs/aitabs.js +1 -1
  106. package/src/aitabs/tabs/aitabsview.js +1 -1
  107. package/src/aitabs/tabs/tabbuttonview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e038c=_0x40aa;(function(_0x12dd65,_0xbadf1){const _0x5bd752=_0x40aa,_0x318022=_0x12dd65();while(!![]){try{const _0x3f1c09=-parseInt(_0x5bd752(0xc5))/0x1+-parseInt(_0x5bd752(0xef))/0x2*(-parseInt(_0x5bd752(0x102))/0x3)+-parseInt(_0x5bd752(0xfc))/0x4+-parseInt(_0x5bd752(0xd9))/0x5*(parseInt(_0x5bd752(0xe6))/0x6)+-parseInt(_0x5bd752(0xed))/0x7*(parseInt(_0x5bd752(0x100))/0x8)+parseInt(_0x5bd752(0xf1))/0x9*(-parseInt(_0x5bd752(0xc7))/0xa)+parseInt(_0x5bd752(0xd6))/0xb*(parseInt(_0x5bd752(0xcd))/0xc);if(_0x3f1c09===_0xbadf1)break;else _0x318022['push'](_0x318022['shift']());}catch(_0xdf5cfd){_0x318022['push'](_0x318022['shift']());}}}(_0x12d8,0x7c74a));function _0x40aa(_0x56e591,_0x42cd44){const _0x12d851=_0x12d8();return _0x40aa=function(_0x40aab4,_0x496a59){_0x40aab4=_0x40aab4-0xc2;let _0x2dda2f=_0x12d851[_0x40aab4];return _0x2dda2f;},_0x40aa(_0x56e591,_0x42cd44);}import{ButtonView as _0x556218,IconView as _0x47f9ca}from'ckeditor5/src/ui.js';import{IconClose as _0x432abb,IconDocument as _0x2ce0d2,IconFileUpload as _0x1613bf,IconLink as _0x2c5b21,IconSelection as _0x4914d0}from'@ckeditor/ckeditor5-icons';function _0x12d8(){const _0x3de396=['bind','10TYFPjV','remove','small','_createLoaderIcon','disableAnimationOnEnter','extendTemplate','removeContextItemChip','tooltip','element','set','length','add','itemType','2425278wDoPlQ','document','execute','ck-ai-chat-context-chip__type-icon','isLoading','_createIconView','_isAnimationOnEnterEnabled','1676668xoigOr','lastIndexOf','30346HFshIo','setTemplate','2151549lZbLOB','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','selection','div','animationend','content','_createRemoveButton','label','span','webkitAnimationEnd','fire','2998644aVvrve','_setupRemoveButtonEvent','ck-ai-chat-context-chip','_handleAnimationEndOnce','8qztLTn','ck-ai-chat-context-controls__chip-tooltip','132NUmyLh','locale','ck-ai-chat-context-chip__label','render','_initializeProperties','uiId','ck-hidden','83309tnHzAw','_createTemplateAttributes','10zAsfES','bindTemplate','ck-ai-chat-context-chip_new-chip','addEventListener','removeEventListener','_createTemplateChildren','23545668gnxBUs','ck-ai-chat-context-chip_wide','_createLabelElement','classList','isVisible','readonly','slice','_setupTemplate','ck-ai-chat-context-chip_document','11krgVQA','type'];_0x12d8=function(){return _0x3de396;};return _0x12d8();}import{getTranslation as _0x57c993}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x16b3d5}from'../../../aicore/ui/aispinner.js';const kn={'file':_0x1613bf,'document':_0x2ce0d2,'web-resource':_0x2c5b21,'text':_0x1613bf,'selection':_0x4914d0},xn=_0x2e038c(0xfe),bn=_0x2e038c(0xce),wn=_0x2e038c(0xd5),Tn=_0x2e038c(0x104),En=_0x2e038c(0xe9),An=_0x2e038c(0x101),Cn='n';export class AIChatContextItemButtonView extends _0x556218{constructor(_0xa5d517,_0x4805b9,_0x5877ef,_0x23456a,_0x26f535=!0x1){const _0x9a4a6d=_0x2e038c;super(_0xa5d517),this[_0x9a4a6d(0xec)]=_0x23456a,this[_0x9a4a6d(0xc2)](_0x4805b9,_0x5877ef,_0x26f535),this[_0x9a4a6d(0xd4)]();}[_0x2e038c(0x105)](){const _0x3a6c9c=_0x2e038c;super[_0x3a6c9c(0x105)](),this[_0x3a6c9c(0xec)]&&this[_0x3a6c9c(0xe1)]&&(this[_0x3a6c9c(0xe1)][_0x3a6c9c(0xd0)][_0x3a6c9c(0xe4)](_0x3a6c9c(0xc9)),this[_0x3a6c9c(0xff)](this[_0x3a6c9c(0xe1)],()=>{const _0x68256=_0x3a6c9c;this[_0x68256(0xe1)]&&this[_0x68256(0xe1)][_0x68256(0xd0)][_0x68256(0xda)](_0x68256(0xc9));}));}[_0x2e038c(0xdd)](){const _0x4bd61d=_0x2e038c;this[_0x4bd61d(0xec)]=!0x1,this[_0x4bd61d(0xe1)]&&this[_0x4bd61d(0xe1)][_0x4bd61d(0xd0)][_0x4bd61d(0xda)](_0x4bd61d(0xc9));}[_0x2e038c(0xc2)](_0x51f215,_0x5104dc,_0x183fb8){const _0x58a28e=_0x2e038c;this[_0x58a28e(0xe2)](_0x58a28e(0xf8),_0x51f215[_0x58a28e(0xf8)]),this[_0x58a28e(0xe2)](_0x58a28e(0xe0),!0x0),this[_0x58a28e(0xe2)](_0x58a28e(0xe5),_0x51f215[_0x58a28e(0xd7)]),this[_0x58a28e(0xe2)]('id',_0x51f215[_0x58a28e(0xc3)]),this[_0x58a28e(0xe2)](_0x58a28e(0xd2),_0x5104dc),this[_0x58a28e(0xe2)](_0x58a28e(0xea),_0x183fb8);}[_0x2e038c(0xd4)](){const _0x1a6d96=_0x2e038c,_0x12ce41=this[_0x1a6d96(0xeb)](),_0x37696e=this[_0x1a6d96(0xf7)](),_0x43d0c9=this[_0x1a6d96(0xc8)];this[_0x1a6d96(0xf0)]({'tag':_0x1a6d96(0xf4),'attributes':this[_0x1a6d96(0xc6)](_0x43d0c9),'children':this[_0x1a6d96(0xcc)](_0x12ce41,_0x37696e,_0x43d0c9)});}[_0x2e038c(0xc6)](_0x3f7b4e){const _0x2301c1=_0x2e038c;return{'class':[xn,_0x3f7b4e['if'](_0x2301c1(0xe5),wn,_0x11dc5b=>_0x2301c1(0xe7)==_0x11dc5b),_0x3f7b4e['if'](_0x2301c1(0xe5),bn,_0x31bd7a=>_0x2301c1(0xf3)==_0x31bd7a)],'data-cke-tooltip-text':_0x3f7b4e['to'](_0x2301c1(0xf8),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x2e038c(0xcc)](_0x81c2d8,_0x519d5b,_0x41cbc8){const _0x4dea50=_0x2e038c,_0x170916=this[_0x4dea50(0xcf)](_0x41cbc8),_0x44a966=this[_0x4dea50(0xdc)]();return this[_0x4dea50(0xd2)]?[_0x81c2d8,_0x170916]:[_0x81c2d8,_0x44a966,_0x170916,_0x519d5b];}[_0x2e038c(0xcf)](_0xb525c7){const _0x3409bd=_0x2e038c;return{'tag':_0x3409bd(0xf9),'attributes':{'class':Tn},'children':[{'text':_0xb525c7['to'](_0x3409bd(0xf8))}]};}[_0x2e038c(0xf7)](){const _0x721e2b=_0x2e038c,_0x29f38f=new _0x556218(this[_0x721e2b(0x103)]);return _0x29f38f[_0x721e2b(0xe2)]({'label':_0x57c993(this[_0x721e2b(0x103)],_0x721e2b(0xf2)),'icon':_0x432abb}),this[_0x721e2b(0xfd)](_0x29f38f),_0x29f38f;}[_0x2e038c(0xfd)](_0x4ed892){const _0xb8d64f=_0x2e038c;_0x4ed892['on'](_0xb8d64f(0xe8),()=>{const _0xb99ddd=_0xb8d64f;this[_0xb99ddd(0xfb)](_0xb99ddd(0xdf),this['id']);});}[_0x2e038c(0xeb)](){const _0x2c3bb3=_0x2e038c,_0x3f93ee=this[_0x2c3bb3(0xc8)],_0x1ffc09=new _0x47f9ca();return _0x1ffc09[_0x2c3bb3(0xf6)]=kn[this[_0x2c3bb3(0xe5)]],_0x1ffc09[_0x2c3bb3(0xde)]({'attributes':{'class':[En,_0x3f93ee['if'](_0x2c3bb3(0xea),_0x2c3bb3(0xc4),_0x10f320=>_0x10f320)]}}),_0x1ffc09;}[_0x2e038c(0xff)](_0x237113,_0x55b8d4){const _0xd96b3c=_0x2e038c;if(!_0x237113)return;const _0x27efa0=()=>{const _0x51710a=_0x40aa;_0x55b8d4(),_0x237113[_0x51710a(0xcb)](_0x51710a(0xf5),_0x27efa0),_0x237113[_0x51710a(0xcb)](_0x51710a(0xfa),_0x27efa0);};_0x237113[_0xd96b3c(0xca)](_0xd96b3c(0xf5),_0x27efa0),_0x237113[_0xd96b3c(0xca)](_0xd96b3c(0xfa),_0x27efa0);}[_0x2e038c(0xdc)](){const _0x1ef7bf=_0x2e038c,_0x481677=new _0x16b3d5(_0x1ef7bf(0xdb));return _0x481677[_0x1ef7bf(0xd8)](_0x1ef7bf(0xd1))['to'](this,_0x1ef7bf(0xea),_0x1cd911=>_0x1cd911),_0x481677;}}function In(_0x4add06){const _0x11bc25=_0x2e038c;if(!_0x4add06)return _0x4add06;if(_0x4add06[_0x11bc25(0xe3)]<=0x78)return _0x4add06;const _0x3b6066=_0x4add06[_0x11bc25(0xd3)](0x0,0x78),_0x3a9db2=_0x3b6066[_0x11bc25(0xee)]('\x20');return(_0x3a9db2>0x0?_0x3b6066[_0x11bc25(0xd3)](0x0,_0x3a9db2):_0x3b6066)+'…';}
23
+ const _0x261683=_0x5ee8;(function(_0x524506,_0x1e4026){const _0x346fed=_0x5ee8,_0x100061=_0x524506();while(!![]){try{const _0x2bd5df=-parseInt(_0x346fed(0x14c))/0x1+parseInt(_0x346fed(0x117))/0x2+parseInt(_0x346fed(0x139))/0x3+-parseInt(_0x346fed(0x13b))/0x4*(-parseInt(_0x346fed(0x13e))/0x5)+parseInt(_0x346fed(0x137))/0x6+parseInt(_0x346fed(0x148))/0x7+-parseInt(_0x346fed(0x110))/0x8*(parseInt(_0x346fed(0x12d))/0x9);if(_0x2bd5df===_0x1e4026)break;else _0x100061['push'](_0x100061['shift']());}catch(_0x2d1a90){_0x100061['push'](_0x100061['shift']());}}}(_0x3ad9,0x9f4c8));import{ButtonView as _0x2983d6,IconView as _0x461926}from'ckeditor5/src/ui.js';import{IconClose as _0x5643c8,IconDocument as _0x5d0307,IconFileUpload as _0x32ae90,IconLink as _0x2ff5b5,IconSelection as _0x58535f}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0xcc101d}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x245f2b}from'../../../aicore/ui/aispinner.js';function _0x3ad9(){const _0x27947c=['setTemplate','7276350lshwPs','selection','1177710HDmrrc','animationend','1137124YXTjyb','div','disableAnimationOnEnter','5lwGmwn','ck-ai-chat-context-chip_document','_createRemoveButton','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','isLoading','fire','removeContextItemChip','_createLoaderIcon','_initializeProperties','extendTemplate','2617727duHzSl','webkitAnimationEnd','ck-hidden','document','408201hUXtCh','_setupTemplate','ck-ai-chat-context-chip__label','itemType','bindTemplate','4313416ZVwXbt','ck-ai-chat-context-chip_new-chip','ck-ai-chat-context-chip_wide','remove','isVisible','readonly','_isAnimationOnEnterEnabled','829366lnTfxj','removeEventListener','execute','length','_createTemplateAttributes','add','_setupRemoveButtonEvent','ck-ai-chat-context-chip','lastIndexOf','_createLabelElement','set','bind','uiId','ck-ai-chat-context-controls__chip-tooltip','type','addEventListener','ck-ai-chat-context-chip__type-icon','_createTemplateChildren','small','locale','classList','span','27zqzrpL','slice','render','tooltip','content','label','_handleAnimationEndOnce','element','_createIconView'];_0x3ad9=function(){return _0x27947c;};return _0x3ad9();}const kn={'file':_0x32ae90,'document':_0x5d0307,'web-resource':_0x2ff5b5,'text':_0x32ae90,'selection':_0x58535f},xn=_0x261683(0x11e),bn=_0x261683(0x112),wn=_0x261683(0x13f),Tn=_0x261683(0x14e),En=_0x261683(0x127),An=_0x261683(0x124),Cn='n';function _0x5ee8(_0x4d36a6,_0x5a30de){const _0x3ad9f9=_0x3ad9();return _0x5ee8=function(_0x5ee8bb,_0x59bda1){_0x5ee8bb=_0x5ee8bb-0x110;let _0x158a58=_0x3ad9f9[_0x5ee8bb];return _0x158a58;},_0x5ee8(_0x4d36a6,_0x5a30de);}export class AIChatContextItemButtonView extends _0x2983d6{constructor(_0x267a35,_0xc109eb,_0x23222d,_0x2318ad,_0x5731cd=!0x1){const _0x2c8141=_0x261683;super(_0x267a35),this[_0x2c8141(0x116)]=_0x2318ad,this[_0x2c8141(0x146)](_0xc109eb,_0x23222d,_0x5731cd),this[_0x2c8141(0x14d)]();}[_0x261683(0x12f)](){const _0x49d95f=_0x261683;super[_0x49d95f(0x12f)](),this[_0x49d95f(0x116)]&&this[_0x49d95f(0x134)]&&(this[_0x49d95f(0x134)][_0x49d95f(0x12b)][_0x49d95f(0x11c)](_0x49d95f(0x111)),this[_0x49d95f(0x133)](this[_0x49d95f(0x134)],()=>{const _0x3937e1=_0x49d95f;this[_0x3937e1(0x134)]&&this[_0x3937e1(0x134)][_0x3937e1(0x12b)][_0x3937e1(0x113)](_0x3937e1(0x111));}));}[_0x261683(0x13d)](){const _0x280142=_0x261683;this[_0x280142(0x116)]=!0x1,this[_0x280142(0x134)]&&this[_0x280142(0x134)][_0x280142(0x12b)][_0x280142(0x113)](_0x280142(0x111));}[_0x261683(0x146)](_0x5efb9a,_0x79ce17,_0x272b7e){const _0x1342f4=_0x261683;this[_0x1342f4(0x121)](_0x1342f4(0x132),_0x5efb9a[_0x1342f4(0x132)]),this[_0x1342f4(0x121)](_0x1342f4(0x130),!0x0),this[_0x1342f4(0x121)](_0x1342f4(0x14f),_0x5efb9a[_0x1342f4(0x125)]),this[_0x1342f4(0x121)]('id',_0x5efb9a[_0x1342f4(0x123)]),this[_0x1342f4(0x121)](_0x1342f4(0x115),_0x79ce17),this[_0x1342f4(0x121)](_0x1342f4(0x142),_0x272b7e);}[_0x261683(0x14d)](){const _0x5b48a8=_0x261683,_0x47019a=this[_0x5b48a8(0x135)](),_0x28d207=this[_0x5b48a8(0x140)](),_0x3deee7=this[_0x5b48a8(0x150)];this[_0x5b48a8(0x136)]({'tag':_0x5b48a8(0x13c),'attributes':this[_0x5b48a8(0x11b)](_0x3deee7),'children':this[_0x5b48a8(0x128)](_0x47019a,_0x28d207,_0x3deee7)});}[_0x261683(0x11b)](_0x1a4881){const _0x7d376e=_0x261683;return{'class':[xn,_0x1a4881['if'](_0x7d376e(0x14f),wn,_0x480491=>_0x7d376e(0x14b)==_0x480491),_0x1a4881['if'](_0x7d376e(0x14f),bn,_0x2bced4=>_0x7d376e(0x138)==_0x2bced4)],'data-cke-tooltip-text':_0x1a4881['to'](_0x7d376e(0x132),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x261683(0x128)](_0x574a6e,_0x3662f3,_0x30e884){const _0x3893ed=_0x261683,_0x4a2313=this[_0x3893ed(0x120)](_0x30e884),_0x2d8b0f=this[_0x3893ed(0x145)]();return this[_0x3893ed(0x115)]?[_0x574a6e,_0x4a2313]:[_0x574a6e,_0x2d8b0f,_0x4a2313,_0x3662f3];}[_0x261683(0x120)](_0x2b25c9){const _0x4370a5=_0x261683;return{'tag':_0x4370a5(0x12c),'attributes':{'class':Tn},'children':[{'text':_0x2b25c9['to'](_0x4370a5(0x132))}]};}[_0x261683(0x140)](){const _0xa63156=_0x261683,_0x1d754a=new _0x2983d6(this[_0xa63156(0x12a)]);return _0x1d754a[_0xa63156(0x121)]({'label':_0xcc101d(this[_0xa63156(0x12a)],_0xa63156(0x141)),'icon':_0x5643c8}),this[_0xa63156(0x11d)](_0x1d754a),_0x1d754a;}[_0x261683(0x11d)](_0x3485d6){const _0x494e9d=_0x261683;_0x3485d6['on'](_0x494e9d(0x119),()=>{const _0x66ff80=_0x494e9d;this[_0x66ff80(0x143)](_0x66ff80(0x144),this['id']);});}[_0x261683(0x135)](){const _0x3f58cd=_0x261683,_0x5b0d4c=this[_0x3f58cd(0x150)],_0x51a542=new _0x461926();return _0x51a542[_0x3f58cd(0x131)]=kn[this[_0x3f58cd(0x14f)]],_0x51a542[_0x3f58cd(0x147)]({'attributes':{'class':[En,_0x5b0d4c['if'](_0x3f58cd(0x142),_0x3f58cd(0x14a),_0x52318a=>_0x52318a)]}}),_0x51a542;}[_0x261683(0x133)](_0x27142e,_0x1dc36d){const _0x4523b5=_0x261683;if(!_0x27142e)return;const _0xcdfd86=()=>{const _0x39c8f7=_0x5ee8;_0x1dc36d(),_0x27142e[_0x39c8f7(0x118)](_0x39c8f7(0x13a),_0xcdfd86),_0x27142e[_0x39c8f7(0x118)](_0x39c8f7(0x149),_0xcdfd86);};_0x27142e[_0x4523b5(0x126)](_0x4523b5(0x13a),_0xcdfd86),_0x27142e[_0x4523b5(0x126)](_0x4523b5(0x149),_0xcdfd86);}[_0x261683(0x145)](){const _0x5ac27e=_0x261683,_0x2fc1c4=new _0x245f2b(_0x5ac27e(0x129));return _0x2fc1c4[_0x5ac27e(0x122)](_0x5ac27e(0x114))['to'](this,_0x5ac27e(0x142),_0x4b8746=>_0x4b8746),_0x2fc1c4;}}function In(_0x47035b){const _0x496484=_0x261683;if(!_0x47035b)return _0x47035b;if(_0x47035b[_0x496484(0x11a)]<=0x78)return _0x47035b;const _0x305950=_0x47035b[_0x496484(0x12e)](0x0,0x78),_0x27cba2=_0x305950[_0x496484(0x11f)]('\x20');return(_0x27cba2>0x0?_0x305950[_0x496484(0x12e)](0x0,_0x27cba2):_0x305950)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43a2fd=_0x5936;(function(_0x17d9e2,_0x181c6b){const _0x7a461=_0x5936,_0x186546=_0x17d9e2();while(!![]){try{const _0x15f297=-parseInt(_0x7a461(0xa2))/0x1*(parseInt(_0x7a461(0xd8))/0x2)+parseInt(_0x7a461(0xb0))/0x3*(-parseInt(_0x7a461(0xa7))/0x4)+-parseInt(_0x7a461(0xc2))/0x5*(parseInt(_0x7a461(0xd9))/0x6)+parseInt(_0x7a461(0xc0))/0x7*(parseInt(_0x7a461(0x93))/0x8)+-parseInt(_0x7a461(0xd7))/0x9+-parseInt(_0x7a461(0xb9))/0xa+parseInt(_0x7a461(0xa4))/0xb*(parseInt(_0x7a461(0xb1))/0xc);if(_0x15f297===_0x181c6b)break;else _0x186546['push'](_0x186546['shift']());}catch(_0x173de5){_0x186546['push'](_0x186546['shift']());}}}(_0x5490,0xb5fe8));import{FocusTracker as _0x555e08,KeystrokeHandler as _0x57ec9d}from'ckeditor5/src/utils.js';import{ButtonView as _0x2c6397,FocusCycler as _0x391480,LabeledFieldView as _0x57d818,View as _0x46ebf8,FormHeaderView as _0x2f8c4c,createLabeledInputText as _0x334fc1,submitHandler as _0x3a5821}from'ckeditor5/src/ui.js';import{IconCheck as _0x55fa44,IconPreviousArrow as _0x407faf}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x48773a}from'../../../aicore/utils/common-translations.js';const rh=_0x43a2fd(0xc9),oh=_0x43a2fd(0x94);function _0x5936(_0x1b86c1,_0x4c5de4){const _0x5490d0=_0x5490();return _0x5936=function(_0x593683,_0x4a5ae1){_0x593683=_0x593683-0x93;let _0x3c6988=_0x5490d0[_0x593683];return _0x3c6988;},_0x5936(_0x1b86c1,_0x4c5de4);}export class AIChatContextPanelUrlInputView extends _0x46ebf8{[_0x43a2fd(0xd1)];[_0x43a2fd(0xa8)];[_0x43a2fd(0x97)];[_0x43a2fd(0x9c)];[_0x43a2fd(0xda)];[_0x43a2fd(0x96)];[_0x43a2fd(0xa9)];constructor(_0x5e41d8){const _0x205d34=_0x43a2fd;super(_0x5e41d8),this[_0x205d34(0xd1)]=new _0x555e08(),this[_0x205d34(0xa8)]=new _0x57ec9d(),this[_0x205d34(0x96)]=this[_0x205d34(0xd0)](),this[_0x205d34(0xda)]=this[_0x205d34(0xc1)](),this[_0x205d34(0xa9)]=this[_0x205d34(0xdb)](),this[_0x205d34(0x97)]=this[_0x205d34(0xb2)]([this[_0x205d34(0x96)],this[_0x205d34(0xda)],this[_0x205d34(0xa9)]]),this[_0x205d34(0x9c)]=new _0x391480({'focusables':this[_0x205d34(0x97)],'focusTracker':this[_0x205d34(0xd1)],'keystrokeHandler':this[_0x205d34(0xa8)],'actions':{'focusPrevious':_0x205d34(0xa5),'focusNext':_0x205d34(0x9b)}}),this[_0x205d34(0xaa)](),this[_0x205d34(0xab)](),this[_0x205d34(0xcb)]();}[_0x43a2fd(0xd6)](){const _0x4c2c84=_0x43a2fd;super[_0x4c2c84(0xd6)](),this[_0x4c2c84(0x97)][_0x4c2c84(0xcf)](_0x45d833=>{const _0x11dec4=_0x4c2c84;this[_0x11dec4(0xd1)][_0x11dec4(0xdd)](_0x45d833[_0x11dec4(0x9a)]),this[_0x11dec4(0xa8)][_0x11dec4(0xd2)](_0x45d833[_0x11dec4(0x9a)]);}),_0x3a5821({'view':this}),this[_0x4c2c84(0xcc)]();}[_0x43a2fd(0xc7)](){const _0x2960f7=_0x43a2fd;super[_0x2960f7(0xc7)](),this[_0x2960f7(0xd1)][_0x2960f7(0xc7)](),this[_0x2960f7(0xa8)][_0x2960f7(0xc7)]();}[_0x43a2fd(0xcc)](){const _0x1195ba=_0x43a2fd;this[_0x1195ba(0xda)][_0x1195ba(0xcc)]();}[_0x43a2fd(0xaf)](){const _0x11aa6d=_0x43a2fd;return this[_0x11aa6d(0xda)][_0x11aa6d(0x9f)][_0x11aa6d(0x9a)]?.[_0x11aa6d(0xc8)]?.[_0x11aa6d(0xc3)]()||'';}[_0x43a2fd(0x98)](){const _0x1f86a3=_0x43a2fd;this[_0x1f86a3(0xda)][_0x1f86a3(0x9f)][_0x1f86a3(0x9a)][_0x1f86a3(0xc8)]='',this[_0x1f86a3(0xda)][_0x1f86a3(0x99)]=null,this[_0x1f86a3(0xa9)][_0x1f86a3(0xd4)]=!0x1;}[_0x43a2fd(0xbc)](_0xc42abd){const _0x7ca19f=_0x43a2fd;this[_0x7ca19f(0xda)][_0x7ca19f(0x99)]=_0xc42abd,this[_0x7ca19f(0xb3)](),this[_0x7ca19f(0xcd)](_0x7ca19f(0xc6));}[_0x43a2fd(0xa3)](){const _0x376e93=_0x43a2fd;this[_0x376e93(0xda)][_0x376e93(0x99)]=null,this[_0x376e93(0xb3)]();}[_0x43a2fd(0xd0)](){const _0x284e35=_0x43a2fd,_0x32e516=new _0x2c6397(this[_0x284e35(0xb7)]);return _0x32e516[_0x284e35(0xbb)]({'icon':_0x407faf,'tooltip':_0x48773a(this[_0x284e35(0xb7)],_0x284e35(0xba)),'tooltipPosition':'n','class':_0x284e35(0xbf)}),_0x32e516;}[_0x43a2fd(0xc1)](){const _0x58703c=_0x43a2fd,_0x391cc2=new _0x57d818(this[_0x58703c(0xb7)],_0x334fc1);return _0x391cc2[_0x58703c(0xbb)]({'label':_0x48773a(this[_0x58703c(0xb7)],_0x58703c(0x9e)),'class':_0x58703c(0xb6)}),_0x391cc2[_0x58703c(0x9f)][_0x58703c(0xbb)]({'placeholder':_0x48773a(this[_0x58703c(0xb7)],_0x58703c(0xd5))}),_0x391cc2;}[_0x43a2fd(0xdb)](){const _0x54a692=_0x43a2fd,_0x4da41=new _0x2c6397(this[_0x54a692(0xb7)]);return _0x4da41[_0x54a692(0xbb)]({'icon':_0x55fa44,'tooltip':_0x48773a(this[_0x54a692(0xb7)],_0x54a692(0xa1)),'tooltipPosition':'n','class':_0x54a692(0xa6),'type':_0x54a692(0xc5),'isEnabled':!0x1}),_0x4da41;}[_0x43a2fd(0xaa)](){const _0x5c0d10=_0x43a2fd,_0x43784f=new _0x2f8c4c(this[_0x5c0d10(0xb7)],{'label':_0x48773a(this[_0x5c0d10(0xb7)],_0x5c0d10(0xa1)),'class':_0x5c0d10(0x9d)});_0x43784f[_0x5c0d10(0xbe)][_0x5c0d10(0xdd)](this[_0x5c0d10(0x96)],0x0),this[_0x5c0d10(0xb8)]({'tag':_0x5c0d10(0xae),'attributes':{'class':rh,'tabindex':'-1'},'children':[_0x43784f,{'tag':_0x5c0d10(0xb4),'attributes':{'class':oh},'children':[this[_0x5c0d10(0xda)],this[_0x5c0d10(0xa9)]]}]});}[_0x43a2fd(0xab)](){const _0x14adff=_0x43a2fd;this[_0x14adff(0x96)]['on'](_0x14adff(0xa0),()=>{const _0x2ae7d8=_0x14adff;this[_0x2ae7d8(0x98)](),this[_0x2ae7d8(0xcd)](_0x2ae7d8(0xb5));}),this[_0x14adff(0xda)][_0x14adff(0x9f)]['on'](_0x14adff(0xce),()=>{const _0x496758=_0x14adff;this[_0x496758(0xa3)](),this[_0x496758(0xb3)](),this[_0x496758(0xcd)](_0x496758(0xc6));}),this['on'](_0x14adff(0xc5),_0x49dc12=>{const _0x4b58cb=_0x14adff;_0x49dc12[_0x4b58cb(0xd3)](),this[_0x4b58cb(0xdc)]();});}[_0x43a2fd(0xcb)](){const _0x56241a=_0x43a2fd;this[_0x56241a(0xa8)][_0x56241a(0xbb)](_0x56241a(0xbd),(_0x5d9dad,_0x22d1d7)=>{const _0x556083=_0x56241a;this[_0x556083(0x98)](),this[_0x556083(0xcd)](_0x556083(0xb5)),_0x22d1d7();});}[_0x43a2fd(0xdc)](){const _0x2b2411=_0x43a2fd,_0x4dcc60=this[_0x2b2411(0xaf)]()[_0x2b2411(0xc3)]();_0x4dcc60?this[_0x2b2411(0xac)](_0x4dcc60)?(this[_0x2b2411(0xa3)](),this[_0x2b2411(0xcd)](_0x2b2411(0xad),_0x4dcc60)):this[_0x2b2411(0xbc)](_0x48773a(this[_0x2b2411(0xb7)],_0x2b2411(0x95))):this[_0x2b2411(0xbc)](_0x48773a(this[_0x2b2411(0xb7)],_0x2b2411(0xca)));}[_0x43a2fd(0xb3)](){const _0x3231ab=_0x43a2fd,_0x442898=this[_0x3231ab(0xaf)]()[_0x3231ab(0xc3)](),_0x3abc29=!!this[_0x3231ab(0xda)][_0x3231ab(0x99)];this[_0x3231ab(0xa9)][_0x3231ab(0xd4)]=_0x442898[_0x3231ab(0xc4)]>0x0&&!_0x3abc29;}[_0x43a2fd(0xac)](_0x192cac){try{return!!new URL(_0x192cac);}catch{return!0x1;}}}function _0x5490(){const _0x281f2c=['319GIPMnE','shift+tab','ck-button-icon','228qcLmdH','keystrokes','confirmButton','_setupTemplate','_setupEventHandlers','_isValidUrl','submitUrl','form','getValue','71280EjMkPh','1727556QZsicJ','createCollection','_updateConfirmButtonState','div','cancel','ck-labeled-field-view_empty','locale','setTemplate','14683280ztDDeM','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','set','setError','esc','children','ck-button-icon\x20ck-button-back','7uulwLp','_createUrlInputField','3355awLBbK','trim','length','submit','refreshBalloon','destroy','value','ck-ai-chat-context-controls__url-form','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_setupKeystrokes','focus','fire','input','forEach','_createBackButton','focusTracker','listenTo','stop','isEnabled','AI_CHAT_CONTEXT_URL_PLACEHOLDER','render','2585799IMeYPb','4weSOfm','9480KBHIcT','urlInputField','_createConfirmButton','_handleSubmit','add','6982208PYoJyB','ck-ai-chat-context-controls__url-input-section','AI_CHAT_CONTEXT_URL_INVALID_ERROR','backButton','_focusables','clear','errorText','element','tab','focusCycler','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_LABEL','fieldView','execute','AI_CHAT_CONTEXT_URL_ADD_URL','66058YMWJfH','clearError'];_0x5490=function(){return _0x281f2c;};return _0x5490();}
23
+ const _0x2ab8a=_0x3aca;(function(_0x4b8cc6,_0x1908b2){const _0x14da71=_0x3aca,_0x930438=_0x4b8cc6();while(!![]){try{const _0x8e04bd=-parseInt(_0x14da71(0xc4))/0x1+parseInt(_0x14da71(0xff))/0x2*(parseInt(_0x14da71(0xf8))/0x3)+parseInt(_0x14da71(0xe7))/0x4*(-parseInt(_0x14da71(0xde))/0x5)+parseInt(_0x14da71(0xf1))/0x6*(-parseInt(_0x14da71(0x10b))/0x7)+parseInt(_0x14da71(0xe9))/0x8*(-parseInt(_0x14da71(0xc2))/0x9)+-parseInt(_0x14da71(0xe1))/0xa*(-parseInt(_0x14da71(0xe4))/0xb)+parseInt(_0x14da71(0xf4))/0xc;if(_0x8e04bd===_0x1908b2)break;else _0x930438['push'](_0x930438['shift']());}catch(_0x42c0b4){_0x930438['push'](_0x930438['shift']());}}}(_0x5b24,0x56847));import{FocusTracker as _0x5667c0,KeystrokeHandler as _0x4251d9}from'ckeditor5/src/utils.js';import{ButtonView as _0x33f9f7,FocusCycler as _0x29a261,LabeledFieldView as _0x53b9ca,View as _0x4c392a,FormHeaderView as _0x2c5b4d,createLabeledInputText as _0x547b90,submitHandler as _0x210f00}from'ckeditor5/src/ui.js';import{IconCheck as _0x3d9671,IconPreviousArrow as _0x37a4ba}from'@ckeditor/ckeditor5-icons';function _0x5b24(){const _0x27e610=['focusCycler','backButton','_isValidUrl','confirmButton','urlInputField','focusTracker','esc','children','fieldView','keystrokes','createCollection','element','render','_createUrlInputField','AI_CHAT_CONTEXT_URL_PLACEHOLDER','listenTo','isEnabled','_createConfirmButton','set','ck-ai-chat-context-controls__url-input-section','_createBackButton','value','_updateConfirmButtonState','22180lfDBvV','fire','trim','180dRIZDe','submit','ck-ai-chat-context-controls__url-form','57365xjubDR','submitUrl','setError','572OsKxtw','AI_CHAT_CONTEXT_URL_LABEL','488LAeHrA','AI_CHAT_CONTEXT_URL_ADD_URL','_setupEventHandlers','ck-button-icon','div','locale','_setupTemplate','stop','14484BgYLhL','destroy','getValue','23852448QcLalF','shift+tab','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','303594gehtKb','form','_setupKeystrokes','errorText','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','input','_focusables','2cYslBA','focus','clear','cancel','tab','execute','setTemplate','clearError','AI_CHAT_CONTEXT_URL_INVALID_ERROR','ck-button-icon\x20ck-button-back','refreshBalloon','forEach','357ucDOSJ','_handleSubmit','76761STUjVH','ck-labeled-field-view_empty','550666RWsvbo','add','length'];_0x5b24=function(){return _0x27e610;};return _0x5b24();}function _0x3aca(_0x5e8a4a,_0x911e05){const _0x5b2472=_0x5b24();return _0x3aca=function(_0x3aca9f,_0x5ada8d){_0x3aca9f=_0x3aca9f-0xc2;let _0x331aec=_0x5b2472[_0x3aca9f];return _0x331aec;},_0x3aca(_0x5e8a4a,_0x911e05);}import{getTranslation as _0x185da1}from'../../../aicore/utils/common-translations.js';const eh=_0x2ab8a(0xe3),hh=_0x2ab8a(0xda);export class AIChatContextPanelUrlInputView extends _0x4c392a{[_0x2ab8a(0xcc)];[_0x2ab8a(0xd0)];[_0x2ab8a(0xfe)];[_0x2ab8a(0xc7)];[_0x2ab8a(0xcb)];[_0x2ab8a(0xc8)];[_0x2ab8a(0xca)];constructor(_0x2df7bb){const _0xe8da0f=_0x2ab8a;super(_0x2df7bb),this[_0xe8da0f(0xcc)]=new _0x5667c0(),this[_0xe8da0f(0xd0)]=new _0x4251d9(),this[_0xe8da0f(0xc8)]=this[_0xe8da0f(0xdb)](),this[_0xe8da0f(0xcb)]=this[_0xe8da0f(0xd4)](),this[_0xe8da0f(0xca)]=this[_0xe8da0f(0xd8)](),this[_0xe8da0f(0xfe)]=this[_0xe8da0f(0xd1)]([this[_0xe8da0f(0xc8)],this[_0xe8da0f(0xcb)],this[_0xe8da0f(0xca)]]),this[_0xe8da0f(0xc7)]=new _0x29a261({'focusables':this[_0xe8da0f(0xfe)],'focusTracker':this[_0xe8da0f(0xcc)],'keystrokeHandler':this[_0xe8da0f(0xd0)],'actions':{'focusPrevious':_0xe8da0f(0xf5),'focusNext':_0xe8da0f(0x103)}}),this[_0xe8da0f(0xef)](),this[_0xe8da0f(0xeb)](),this[_0xe8da0f(0xfa)]();}[_0x2ab8a(0xd3)](){const _0x5c3c85=_0x2ab8a;super[_0x5c3c85(0xd3)](),this[_0x5c3c85(0xfe)][_0x5c3c85(0x10a)](_0x101446=>{const _0x4a0f3c=_0x5c3c85;this[_0x4a0f3c(0xcc)][_0x4a0f3c(0xc5)](_0x101446[_0x4a0f3c(0xd2)]),this[_0x4a0f3c(0xd0)][_0x4a0f3c(0xd6)](_0x101446[_0x4a0f3c(0xd2)]);}),_0x210f00({'view':this}),this[_0x5c3c85(0x100)]();}[_0x2ab8a(0xf2)](){const _0x3c4379=_0x2ab8a;super[_0x3c4379(0xf2)](),this[_0x3c4379(0xcc)][_0x3c4379(0xf2)](),this[_0x3c4379(0xd0)][_0x3c4379(0xf2)]();}[_0x2ab8a(0x100)](){const _0x58965a=_0x2ab8a;this[_0x58965a(0xcb)][_0x58965a(0x100)]();}[_0x2ab8a(0xf3)](){const _0x121687=_0x2ab8a;return this[_0x121687(0xcb)][_0x121687(0xcf)][_0x121687(0xd2)]?.[_0x121687(0xdc)]?.[_0x121687(0xe0)]()||'';}[_0x2ab8a(0x101)](){const _0x55ff88=_0x2ab8a;this[_0x55ff88(0xcb)][_0x55ff88(0xcf)][_0x55ff88(0xd2)][_0x55ff88(0xdc)]='',this[_0x55ff88(0xcb)][_0x55ff88(0xfb)]=null,this[_0x55ff88(0xca)][_0x55ff88(0xd7)]=!0x1;}[_0x2ab8a(0xe6)](_0x4a1b96){const _0x5ae07c=_0x2ab8a;this[_0x5ae07c(0xcb)][_0x5ae07c(0xfb)]=_0x4a1b96,this[_0x5ae07c(0xdd)](),this[_0x5ae07c(0xdf)](_0x5ae07c(0x109));}[_0x2ab8a(0x106)](){const _0x18d8d8=_0x2ab8a;this[_0x18d8d8(0xcb)][_0x18d8d8(0xfb)]=null,this[_0x18d8d8(0xdd)]();}[_0x2ab8a(0xdb)](){const _0x286902=_0x2ab8a,_0x4a2097=new _0x33f9f7(this[_0x286902(0xee)]);return _0x4a2097[_0x286902(0xd9)]({'icon':_0x37a4ba,'tooltip':_0x185da1(this[_0x286902(0xee)],_0x286902(0xf6)),'tooltipPosition':'n','class':_0x286902(0x108)}),_0x4a2097;}[_0x2ab8a(0xd4)](){const _0x2eb282=_0x2ab8a,_0x3e78ac=new _0x53b9ca(this[_0x2eb282(0xee)],_0x547b90);return _0x3e78ac[_0x2eb282(0xd9)]({'label':_0x185da1(this[_0x2eb282(0xee)],_0x2eb282(0xe8)),'class':_0x2eb282(0xc3)}),_0x3e78ac[_0x2eb282(0xcf)][_0x2eb282(0xd9)]({'placeholder':_0x185da1(this[_0x2eb282(0xee)],_0x2eb282(0xd5))}),_0x3e78ac;}[_0x2ab8a(0xd8)](){const _0xf63cd1=_0x2ab8a,_0x24160b=new _0x33f9f7(this[_0xf63cd1(0xee)]);return _0x24160b[_0xf63cd1(0xd9)]({'icon':_0x3d9671,'tooltip':_0x185da1(this[_0xf63cd1(0xee)],_0xf63cd1(0xea)),'tooltipPosition':'n','class':_0xf63cd1(0xec),'type':_0xf63cd1(0xe2),'isEnabled':!0x1}),_0x24160b;}[_0x2ab8a(0xef)](){const _0x34f69f=_0x2ab8a,_0x279a05=new _0x2c5b4d(this[_0x34f69f(0xee)],{'label':_0x185da1(this[_0x34f69f(0xee)],_0x34f69f(0xea)),'class':_0x34f69f(0xfc)});_0x279a05[_0x34f69f(0xce)][_0x34f69f(0xc5)](this[_0x34f69f(0xc8)],0x0),this[_0x34f69f(0x105)]({'tag':_0x34f69f(0xf9),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x279a05,{'tag':_0x34f69f(0xed),'attributes':{'class':hh},'children':[this[_0x34f69f(0xcb)],this[_0x34f69f(0xca)]]}]});}[_0x2ab8a(0xeb)](){const _0x2caee7=_0x2ab8a;this[_0x2caee7(0xc8)]['on'](_0x2caee7(0x104),()=>{const _0x4030ea=_0x2caee7;this[_0x4030ea(0x101)](),this[_0x4030ea(0xdf)](_0x4030ea(0x102));}),this[_0x2caee7(0xcb)][_0x2caee7(0xcf)]['on'](_0x2caee7(0xfd),()=>{const _0x16d0a3=_0x2caee7;this[_0x16d0a3(0x106)](),this[_0x16d0a3(0xdd)](),this[_0x16d0a3(0xdf)](_0x16d0a3(0x109));}),this['on'](_0x2caee7(0xe2),_0x1799c8=>{const _0x346123=_0x2caee7;_0x1799c8[_0x346123(0xf0)](),this[_0x346123(0x10c)]();});}[_0x2ab8a(0xfa)](){const _0x4bcaec=_0x2ab8a;this[_0x4bcaec(0xd0)][_0x4bcaec(0xd9)](_0x4bcaec(0xcd),(_0x40d200,_0x51c3c5)=>{const _0x43f6df=_0x4bcaec;this[_0x43f6df(0x101)](),this[_0x43f6df(0xdf)](_0x43f6df(0x102)),_0x51c3c5();});}[_0x2ab8a(0x10c)](){const _0x42dcf6=_0x2ab8a,_0xd0941c=this[_0x42dcf6(0xf3)]()[_0x42dcf6(0xe0)]();_0xd0941c?this[_0x42dcf6(0xc9)](_0xd0941c)?(this[_0x42dcf6(0x106)](),this[_0x42dcf6(0xdf)](_0x42dcf6(0xe5),_0xd0941c)):this[_0x42dcf6(0xe6)](_0x185da1(this[_0x42dcf6(0xee)],_0x42dcf6(0x107))):this[_0x42dcf6(0xe6)](_0x185da1(this[_0x42dcf6(0xee)],_0x42dcf6(0xf7)));}[_0x2ab8a(0xdd)](){const _0x437a2e=_0x2ab8a,_0x361fd5=this[_0x437a2e(0xf3)]()[_0x437a2e(0xe0)](),_0x1bba4b=!!this[_0x437a2e(0xcb)][_0x437a2e(0xfb)];this[_0x437a2e(0xca)][_0x437a2e(0xd7)]=_0x361fd5[_0x437a2e(0xc6)]>0x0&&!_0x1bba4b;}[_0x2ab8a(0xc9)](_0x1000f7){try{return!!new URL(_0x1000f7);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19d5cf=_0x19d7;(function(_0x481392,_0x176901){const _0x306e50=_0x19d7,_0x59cf60=_0x481392();while(!![]){try{const _0x1c15eb=-parseInt(_0x306e50(0x197))/0x1+-parseInt(_0x306e50(0x1e3))/0x2+parseInt(_0x306e50(0x1bc))/0x3+-parseInt(_0x306e50(0x194))/0x4+-parseInt(_0x306e50(0x195))/0x5*(parseInt(_0x306e50(0x1df))/0x6)+-parseInt(_0x306e50(0x1c9))/0x7*(-parseInt(_0x306e50(0x20b))/0x8)+-parseInt(_0x306e50(0x1bd))/0x9*(-parseInt(_0x306e50(0x1f3))/0xa);if(_0x1c15eb===_0x176901)break;else _0x59cf60['push'](_0x59cf60['shift']());}catch(_0x2504b8){_0x59cf60['push'](_0x59cf60['shift']());}}}(_0x5cad,0x38b96));import{BalloonPanelView as _0x5ba009,ButtonView as _0x1a69a5,clickOutsideHandler as _0x4e344e,FileDialogButtonView as _0x1aa42d,IconView as _0x1e9b06,View as _0x37febe}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1e54e6,IconDocument as _0x50884a,IconDocumentOutline as _0x82fc53,IconDropdownArrow as _0x52fdbc,IconLink as _0x4a9546,IconPaperClip as _0x5bd2ef}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2fdbd2}from'./aichatcontextitembuttonview.js';function _0x19d7(_0x545330,_0x388296){const _0x5cad40=_0x5cad();return _0x19d7=function(_0x19d7ab,_0x19570b){_0x19d7ab=_0x19d7ab-0x182;let _0x2bab91=_0x5cad40[_0x19d7ab];return _0x2bab91;},_0x19d7(_0x545330,_0x388296);}import{AIChatContextPanelUrlInputView as _0x13a8f3}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xf11c38}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x513eb1}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x446091}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x19d5cf(0x1ca),_0x19d5cf(0x18f),_0x19d5cf(0x1e2),_0x19d5cf(0x190),_0x19d5cf(0x1af),_0x19d5cf(0x1f1)];const Po=_0x19d5cf(0x192),Ro=_0x19d5cf(0x1d2),Uo=_0x19d5cf(0x1bb),Lo=_0x19d5cf(0x1ce),No=_0x19d5cf(0x1f9),Mo=_0x19d5cf(0x1d0),Ho=_0x19d5cf(0x1d5),uo=_0x19d5cf(0x209),jo=_0x19d5cf(0x1c7),xo=_0x19d5cf(0x1d7),mo=_0x19d5cf(0x1b1),Xo=_0x19d5cf(0x1c8),Do=[_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x210)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x1c1)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x201)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x1b3)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x19a)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x1fe)]];export class AIChatContextPanelView extends _0x37febe{[_0x19d5cf(0x1a8)];[_0x19d5cf(0x1f4)]=this[_0x19d5cf(0x20e)]();[_0x19d5cf(0x200)]=this[_0x19d5cf(0x20e)]();[_0x19d5cf(0x1c5)];[_0x19d5cf(0x1e8)];[_0x19d5cf(0x1dd)];[_0x19d5cf(0x1a5)];[_0x19d5cf(0x1d4)];[_0x19d5cf(0x1da)];[_0x19d5cf(0x1d6)];constructor(_0x3330d8,_0x3de151){const _0x311369=_0x19d5cf;super(_0x3330d8),this[_0x311369(0x1d6)]=_0x3de151,this[_0x311369(0x1f4)]=this[_0x311369(0x20e)](),this[_0x311369(0x200)]=this[_0x311369(0x20e)](),this[_0x311369(0x1a8)]=this[_0x311369(0x1d3)](_0x3330d8),this[_0x311369(0x1e8)]=this[_0x311369(0x187)](_0x3330d8),this[_0x311369(0x1dd)]=this[_0x311369(0x1c4)](_0x3330d8),this[_0x311369(0x1d4)]=this[_0x311369(0x1bf)](_0x3330d8,_0x3de151);const _0x18f2bb={'cssClasses':{'showMoreButton':xo,'showMoreBalloon':mo,'overflowContainer':jo,'controlsButton':uo}};this[_0x311369(0x1c5)]=new _0xf11c38(_0x3330d8,this[_0x311369(0x1f4)],_0x18f2bb,this[_0x311369(0x1d6)],this),this[_0x311369(0x1da)]={'buttonView':this[_0x311369(0x1a8)],'balloonView':this[_0x311369(0x1e8)],'hideMethod':this[_0x311369(0x1e5)][_0x311369(0x1fa)](this),'showMethod':this[_0x311369(0x20f)][_0x311369(0x1fa)](this)},this[_0x311369(0x202)](),this[_0x311369(0x1c6)]();}[_0x19d5cf(0x1e4)](){const _0x16ebf6=_0x19d5cf;super[_0x16ebf6(0x1e4)](),this[_0x16ebf6(0x193)](),this[_0x16ebf6(0x1c5)][_0x16ebf6(0x196)](this[_0x16ebf6(0x1dc)]),this[_0x16ebf6(0x1c5)][_0x16ebf6(0x1c3)]();}[_0x19d5cf(0x1a1)](){const _0x2c0270=_0x19d5cf;super[_0x2c0270(0x1a1)](),this[_0x2c0270(0x1c5)][_0x2c0270(0x1a1)](),this[_0x2c0270(0x1d4)][_0x2c0270(0x1a1)]();}[_0x19d5cf(0x191)](_0x25a0b7,_0x3cd42d){const _0x3879bd=_0x19d5cf,_0x443c2c=this[_0x3879bd(0x1e6)](_0x25a0b7,_0x3879bd(0x1fc),!0x0,_0x3cd42d);this[_0x3879bd(0x185)](_0x443c2c,this[_0x3879bd(0x1f4)]),this[_0x3879bd(0x1c5)][_0x3879bd(0x1c3)]();}[_0x19d5cf(0x1af)](_0x3ca5b2){const _0x37f186=_0x19d5cf;this[_0x37f186(0x19e)](_0x3ca5b2,this[_0x37f186(0x1f4)]),this[_0x37f186(0x19e)](_0x3ca5b2,this[_0x37f186(0x1c5)][_0x37f186(0x1a9)]),this[_0x37f186(0x1c5)][_0x37f186(0x1c3)]();}[_0x19d5cf(0x20c)](_0x48c473,_0x3fcae){const _0x5145f9=_0x19d5cf;let _0x50376f=this[_0x5145f9(0x1f4)][_0x5145f9(0x208)](_0xac9186=>_0xac9186['id']===_0x48c473);_0x50376f||(_0x50376f=this[_0x5145f9(0x1c5)][_0x5145f9(0x1a9)][_0x5145f9(0x208)](_0xeac4e=>_0xeac4e['id']===_0x48c473)),_0x50376f&&(_0x50376f[_0x5145f9(0x18a)]=_0x3fcae);}[_0x19d5cf(0x1b6)](_0x119e0b){const _0x437873=_0x19d5cf;this[_0x437873(0x200)][_0x437873(0x1f6)]();for(const _0xddc00d of _0x119e0b){const _0x4c6d4d=this[_0x437873(0x1e6)](_0xddc00d,_0x437873(0x1ff),!0x1,!0x1);this[_0x437873(0x185)](_0x4c6d4d,this[_0x437873(0x200)]);}}[_0x19d5cf(0x1db)](){const _0xea61ee=_0x19d5cf;this[_0xea61ee(0x1f4)][_0xea61ee(0x1f6)](),this[_0xea61ee(0x1c5)][_0xea61ee(0x1f6)]();}[_0x19d5cf(0x1ed)](){const _0x80966f=_0x19d5cf;this[_0x80966f(0x200)][_0x80966f(0x1f6)]();}[_0x19d5cf(0x1ec)](_0x35f55f,_0x341462,_0x5011e9){const _0x40811e=_0x19d5cf;this[_0x40811e(0x1d4)][_0x40811e(0x1ec)](_0x35f55f,_0x341462,_0x5011e9);}[_0x19d5cf(0x1e5)](){const _0x2ec9c4=_0x19d5cf;this[_0x2ec9c4(0x184)](!0x1);}[_0x19d5cf(0x20f)](){const _0x56f647=_0x19d5cf;this[_0x56f647(0x184)](!0x0);}[_0x19d5cf(0x1be)](){const _0x294b6d=_0x19d5cf;this[_0x294b6d(0x1dd)][_0x294b6d(0x1b4)](),this[_0x294b6d(0x1a8)][_0x294b6d(0x1a2)]=!0x1,this[_0x294b6d(0x1a5)]&&this[_0x294b6d(0x1a5)][_0x294b6d(0x1f6)]();}[_0x19d5cf(0x1d8)](){const _0x49a7d4=_0x19d5cf;this[_0x49a7d4(0x1dd)][_0x49a7d4(0x1a3)](),this[_0x49a7d4(0x1a8)][_0x49a7d4(0x1a2)]=!0x0;}[_0x19d5cf(0x1a7)](_0x3e5fe9){const _0x1888c7=_0x19d5cf;this[_0x1888c7(0x1d4)][_0x1888c7(0x19f)](_0x3e5fe9),this[_0x1888c7(0x1a8)][_0x1888c7(0x1a2)]=!0x0;}[_0x19d5cf(0x1cd)](_0x358b12,_0xd3544d,_0x589102,_0x182c92){const _0x530632=_0x19d5cf;this[_0x530632(0x1d4)][_0x530632(0x1cd)](_0x358b12,_0x589102,_0x182c92);}[_0x19d5cf(0x203)](_0x289027){const _0x34d3c9=_0x19d5cf;this[_0x34d3c9(0x1d4)][_0x34d3c9(0x203)](_0x289027),this[_0x34d3c9(0x1a8)][_0x34d3c9(0x1a2)]=!0x1;}[_0x19d5cf(0x188)](_0x4d7930){const _0x1e76b2=_0x19d5cf;this[_0x1e76b2(0x1ea)](this[_0x1e76b2(0x1e8)],this[_0x1e76b2(0x1ba)],_0x4d7930),this[_0x1e76b2(0x186)](_0x4d7930);}[_0x19d5cf(0x186)](_0x27819d){const _0x2d45af=_0x19d5cf,_0x4c774e=!_0x27819d[_0x2d45af(0x198)][_0x2d45af(0x1f8)]&&_0x27819d[_0x2d45af(0x198)][_0x2d45af(0x206)],_0x5a5c77=_0x27819d[_0x2d45af(0x1b8)][_0x2d45af(0x206)],_0x2fa2d6=_0x27819d[_0x2d45af(0x183)][_0x2d45af(0x206)];this[_0x2d45af(0x1a8)][_0x2d45af(0x1e9)]=_0x4c774e||_0x5a5c77||_0x2fa2d6;}[_0x19d5cf(0x202)](){const _0x255534=_0x19d5cf;this[_0x255534(0x1b0)]({'tag':_0x255534(0x1a4),'attributes':{'class':[Po,_0x255534(0x1f7)]},'children':[{'tag':_0x255534(0x1a4),'attributes':{'class':Ro},'children':this[_0x255534(0x1f4)]}]});}[_0x19d5cf(0x1c6)](){const _0x5f161c=_0x19d5cf;this[_0x5f161c(0x1a8)]['on'](_0x5f161c(0x1b7),()=>{const _0x44c1b9=_0x5f161c;this[_0x44c1b9(0x1c0)]();});}[_0x19d5cf(0x1d3)](_0x3acf99){const _0x3d5b08=_0x19d5cf,_0x1dba6f=new _0x1a69a5(_0x3acf99);return _0x1dba6f[_0x3d5b08(0x1b2)]({'label':_0x513eb1(_0x3acf99,_0x3d5b08(0x19d)),'class':uo+'\x20'+Lo,'icon':_0x5bd2ef,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x1dba6f;}[_0x19d5cf(0x187)](_0x200a17){const _0x47a211=_0x19d5cf;return this[_0x47a211(0x1c2)](_0x200a17,Uo);}[_0x19d5cf(0x1c4)](_0x5c8689){const _0x5d09f6=_0x19d5cf,_0x3af17e=this[_0x5d09f6(0x1c2)](_0x5c8689,No);return this[_0x5d09f6(0x1cc)](_0x3af17e,_0x5c8689),_0x3af17e;}[_0x19d5cf(0x1bf)](_0x160cbb,_0x243280){const _0x172359=_0x19d5cf;return new _0x446091(_0x160cbb,_0x243280,{'onBackToContext':()=>{const _0x30d5ad=_0x19d7;this[_0x30d5ad(0x20f)](),this[_0x30d5ad(0x1e8)][_0x30d5ad(0x1e1)]({'target':this[_0x30d5ad(0x1a8)][_0x30d5ad(0x1dc)],'limiter':this[_0x30d5ad(0x1eb)](),'positions':Do});},'onResourceSelected':(_0x3dba9e,_0xee21ad)=>{const _0x20b160=_0x19d7;this[_0x20b160(0x1ab)](_0x20b160(0x190),{'source':_0x3dba9e,'resource':_0xee21ad});},'onLoadSourceResources':_0x2eb2f1=>{const _0x13e0c9=_0x19d7;this[_0x13e0c9(0x1ab)](_0x13e0c9(0x1f1),_0x2eb2f1);},'onBalloonClosed':()=>{const _0x4396b4=_0x19d7;this[_0x4396b4(0x1a8)][_0x4396b4(0x1a2)]=!0x1;},'getLimiterElement':()=>this[_0x172359(0x1eb)](),'getTargetElement':()=>this[_0x172359(0x1a8)][_0x172359(0x1dc)]});}[_0x19d5cf(0x1eb)](){const _0x480bdc=_0x19d5cf;return this[_0x480bdc(0x1dc)]?.[_0x480bdc(0x205)]('.'+Xo)||document[_0x480bdc(0x189)];}[_0x19d5cf(0x1c2)](_0x15486c,_0x4e42){const _0x12b578=_0x19d5cf,_0x27cf65=new _0x5ba009(_0x15486c);return _0x27cf65[_0x12b578(0x1f0)]({'attributes':{'class':_0x4e42}}),this[_0x12b578(0x1d6)][_0x12b578(0x19c)](_0x27cf65),_0x27cf65;}[_0x19d5cf(0x1ea)](_0x96e411,_0x548689,_0x412021){const _0x4048d7=_0x19d5cf;if(_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x1f6)](),!_0x412021[_0x4048d7(0x198)][_0x4048d7(0x1f8)]&&_0x412021[_0x4048d7(0x198)][_0x4048d7(0x206)]){const _0x5a9beb=this[_0x4048d7(0x1ac)](_0x548689,{'label':_0x513eb1(_0x548689,_0x4048d7(0x18e)),'icon':_0x50884a});_0x5a9beb['on'](_0x4048d7(0x1b7),()=>{const _0x374929=_0x4048d7;this[_0x374929(0x1ab)](_0x374929(0x1ca)),this[_0x374929(0x1e5)]();}),_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x19c)](_0x5a9beb);}if(_0x412021[_0x4048d7(0x1b8)][_0x4048d7(0x206)]){const _0xd21924=this[_0x4048d7(0x1ac)](_0x548689,{'label':_0x513eb1(_0x548689,_0x4048d7(0x207)),'icon':_0x4a9546});_0xd21924['on'](_0x4048d7(0x1b7),()=>{const _0xb5316=_0x4048d7;this[_0xb5316(0x1e5)](),this[_0xb5316(0x1d8)](),this[_0xb5316(0x1dd)][_0xb5316(0x1e1)]({'target':this[_0xb5316(0x1a8)][_0xb5316(0x1dc)],'limiter':this[_0xb5316(0x1eb)](),'positions':Do}),this[_0xb5316(0x1a5)][_0xb5316(0x1e7)]();}),_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x19c)](_0xd21924);}if(_0x412021[_0x4048d7(0x183)][_0x4048d7(0x206)]){const _0x16575d=new _0x1aa42d(_0x548689);_0x16575d[_0x4048d7(0x1b2)]({'label':_0x513eb1(_0x548689,_0x4048d7(0x1cb)),'icon':_0x1e54e6,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x16575d['on'](_0x4048d7(0x1b9),(_0x199d60,_0x240d94)=>{const _0x1ff8e5=_0x4048d7;this[_0x1ff8e5(0x1ab)](_0x1ff8e5(0x18f),_0x240d94),this[_0x1ff8e5(0x1e5)]();}),_0x16575d[_0x4048d7(0x1fd)]=!0x0,_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x19c)](_0x16575d);}for(const _0x141822 of _0x412021[_0x4048d7(0x19b)]){const _0x449a76=this[_0x4048d7(0x1ac)](_0x548689,{'label':_0x141822[_0x4048d7(0x199)],'icon':_0x141822[_0x4048d7(0x1ae)]||_0x82fc53,'type':_0x4048d7(0x1f5)});_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x19c)](_0x449a76),_0x449a76['on'](_0x4048d7(0x1b7),()=>{const _0x19b15d=_0x4048d7;this[_0x19b15d(0x1e5)](),this[_0x19b15d(0x1a7)](_0x141822);});}}[_0x19d5cf(0x1cc)](_0x4d6e3a,_0x29946){const _0x3ce44e=_0x19d5cf;this[_0x3ce44e(0x1a5)]=new _0x13a8f3(_0x29946),this[_0x3ce44e(0x1a5)]['on'](_0x3ce44e(0x18b),(_0xa2c2cd,_0x111398)=>{const _0x154a06=_0x3ce44e;this[_0x154a06(0x1aa)](_0x111398);}),this[_0x3ce44e(0x1a5)]['on'](_0x3ce44e(0x1de),()=>{const _0x5bc2f2=_0x3ce44e;this[_0x5bc2f2(0x1be)](),this[_0x5bc2f2(0x20f)](),this[_0x5bc2f2(0x1e8)][_0x5bc2f2(0x1e1)]({'target':this[_0x5bc2f2(0x1a8)][_0x5bc2f2(0x1dc)],'limiter':this[_0x5bc2f2(0x1eb)](),'positions':Do});}),this[_0x3ce44e(0x1a5)]['on'](_0x3ce44e(0x1ee),()=>{const _0x1e836b=_0x3ce44e;this[_0x1e836b(0x1dd)][_0x1e836b(0x1d9)]&&this[_0x1e836b(0x1dd)][_0x1e836b(0x1e1)]({'target':this[_0x1e836b(0x1a8)][_0x1e836b(0x1dc)],'limiter':this[_0x1e836b(0x1eb)](),'positions':Do});}),_0x4d6e3a[_0x3ce44e(0x1b5)][_0x3ce44e(0x19c)](this[_0x3ce44e(0x1a5)]);}[_0x19d5cf(0x1ac)](_0x3cf052,_0x488391){const _0x5c7311=_0x19d5cf,_0x28945d=_0x5c7311(0x1f5)===_0x488391[_0x5c7311(0x1fb)]?new SourcesBalloonButtonView(_0x3cf052):new _0x1a69a5(_0x3cf052);return _0x28945d[_0x5c7311(0x1b2)]({'label':_0x488391[_0x5c7311(0x199)],'icon':_0x488391[_0x5c7311(0x1ae)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x28945d;}[_0x19d5cf(0x193)](){const _0x164c61=_0x19d5cf;this[_0x164c61(0x20d)](),this[_0x164c61(0x1e0)]();}[_0x19d5cf(0x1e0)](){const _0x52c465=_0x19d5cf;_0x4e344e({'emitter':this[_0x52c465(0x1dd)],'contextElements':[this[_0x52c465(0x1dd)][_0x52c465(0x1dc)]],'callback':()=>{const _0x161619=_0x52c465;this[_0x161619(0x1be)]();},'activator':()=>this[_0x52c465(0x1dd)][_0x52c465(0x1d9)]});}[_0x19d5cf(0x184)](_0x1a1ecd){const _0x32d0df=_0x19d5cf,_0x4c52be=this[_0x32d0df(0x1da)];_0x4c52be[_0x32d0df(0x18c)][_0x32d0df(0x1a2)]=_0x1a1ecd,_0x1a1ecd?_0x4c52be[_0x32d0df(0x204)][_0x32d0df(0x1a3)]():_0x4c52be[_0x32d0df(0x204)][_0x32d0df(0x1b4)]();}[_0x19d5cf(0x20d)](){const _0x51ab3a=_0x19d5cf,{balloonView:_0x4c8474,buttonView:_0x14da55,hideMethod:_0x530054}=this[_0x51ab3a(0x1da)];_0x4e344e({'emitter':_0x4c8474,'contextElements':[_0x4c8474[_0x51ab3a(0x1dc)],_0x14da55[_0x51ab3a(0x1dc)]],'callback':()=>{_0x530054();},'activator':()=>_0x14da55[_0x51ab3a(0x1a2)]&&!this[_0x51ab3a(0x1dd)][_0x51ab3a(0x1d9)]&&!this[_0x51ab3a(0x1d4)][_0x51ab3a(0x1d1)]()});}[_0x19d5cf(0x1e6)](_0x4cd569,_0xb2cfe6,_0x885c76=!0x1,_0x592cb2=!0x1){const _0x44d1f0=_0x19d5cf,_0x2e5b37=_0x44d1f0(0x1ff)===_0xb2cfe6||!0x0===_0x4cd569[_0x44d1f0(0x1ad)],_0x51f926=new _0x2fdbd2(this[_0x44d1f0(0x1ba)],_0x4cd569,_0x2e5b37,_0x885c76,_0x592cb2);return _0x2e5b37||_0x51f926['on'](_0x44d1f0(0x1ef),()=>{const _0x16f6e8=_0x44d1f0;this[_0x16f6e8(0x1ab)](_0x16f6e8(0x1af),_0x51f926['id']);}),_0x51f926;}[_0x19d5cf(0x185)](_0x47caf7,_0xcc820c){const _0x2d97de=_0x19d5cf;_0xcc820c[_0x2d97de(0x19c)](_0x47caf7,0x0);}[_0x19d5cf(0x19e)](_0x346e27,_0x5a8ac6){const _0x31cd09=_0x19d5cf,_0x106965=_0x5a8ac6[_0x31cd09(0x208)](_0x5de15a=>_0x5de15a['id']===_0x346e27);_0x106965&&_0x5a8ac6[_0x31cd09(0x20a)](_0x106965);}[_0x19d5cf(0x1c0)](){const _0x373856=_0x19d5cf;this[_0x373856(0x1a8)][_0x373856(0x1a2)]?this[_0x373856(0x1e5)]():(this[_0x373856(0x20f)](),this[_0x373856(0x1e8)][_0x373856(0x1e1)]({'target':this[_0x373856(0x1a8)][_0x373856(0x1dc)],'limiter':this[_0x373856(0x1eb)](),'positions':Do}));}[_0x19d5cf(0x1aa)](_0x69d33){const _0x20847c=_0x19d5cf;this[_0x20847c(0x1a5)][_0x20847c(0x1f6)](),this[_0x20847c(0x1be)](),this[_0x20847c(0x1ab)](_0x20847c(0x1e2),_0x69d33);}}function _0x5cad(){const _0x50b887=['5jVLvkR','setContainerElement','184813NNuygQ','document','label','southArrowNorth','sources','add','AI_CHAT_CONTEXT_ADD_CONTEXT','_removeContextFromCollection','showSourceResourcesBalloon','menuitem','destroy','isOn','show','div','_urlInputView','__arrow','_showSourceResourcesBalloon','addContextButtonView','overflowChips','_handleUrlSubmit','fire','_createBalloonButton','isReadOnly','icon','removeContextItem','setTemplate','ck-ai-chat-context-controls__show-more-balloon-panel','set','southArrowNorthWest','hide','content','setConversationContext','execute','urls','done','locale','ck-ai-chat-context-controls__add-context-balloon-panel','1033371ldRIOi','712737PdsUaH','hideUrlBalloonPanel','_createResourcesBalloonView','_handleAddContextButtonClick','northArrowSouth','_createBaseBalloonPanel','reorganizeChips','_createUrlBalloonPanelView','_overflowManager','_bindEventHandlers','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat','7XeXFKz','addDocumentToContext','AI_CHAT_CONTEXT_FILE_LABEL','_addUrlContent','populateSourceResourceBalloon','ck-ai-chat-context-controls__add-context-button','_createArrowView','ck-ai-chat-context-controls__balloon-button','isAnyResourceBalloonVisible','ck-ai-chat-context-controls__pending-contexts','_createAddContextButtonView','_resourcesBalloonView','ck-ai-chat-context-controls__balloon-button-source','bodyCollection','ck-ai-chat-controls_context_show-more-button','showUrlBalloonPanel','isVisible','_addContextBalloonConfig','clearCurrentContextItems','element','_urlBalloonPanelView','cancel','700332ISwnno','_setupUrlBalloonClickOutsideHandler','pin','addUrlToContext','837438rLuhOy','render','hideAddContextBalloonPanel','_createContextButton','focus','_addContextBalloonPanelView','isEnabled','_setBalloonPanelContent','_getLimiterElement','updateResourceState','clearConversationContextItems','refreshBalloon','removeContextItemChip','extendTemplate','loadSourceResources','children','130fINiaQ','_currentContextsChips','source','clear','ck-reset_all-excluded','isHidden','ck-ai-chat-context-controls__url-balloon-panel','bind','type','current','tooltip','southArrowNorthEast','conversation','_conversationContextsChips','northArrowSouthEast','_setupTemplate','closeSourceResourceBalloon','balloonView','closest','enabled','AI_CHAT_CONTEXT_URL_LABEL','find','ck-ai-chat-controls-button','remove','153368uBLsVr','setContextItemLoading','_setupAddContextBalloonClickOutsideHandler','createCollection','showAddContextBalloonPanel','northArrowSouthWest','arrowView','files','_toggleAddContextBalloon','_addContextToCollection','_setAddContextButtonEnabled','_createAddContextBalloonPanelView','setAddContextOptions','body','isLoading','submitUrl','buttonView','defaultPositions','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','addFileToContext','addResourceToContext','addContextItem','ck-ai-chat-context-controls','_setupAllBalloonClickOutsideHandlers','1762164WJkaFG'];_0x5cad=function(){return _0x50b887;};return _0x5cad();}export class SourcesBalloonButtonView extends _0x1a69a5{[_0x19d5cf(0x182)];constructor(_0x4fabfa){const _0x185824=_0x19d5cf;super(_0x4fabfa),this[_0x185824(0x1b2)]({'withText':!0x0,'role':_0x185824(0x1a0)}),this[_0x185824(0x182)]=this[_0x185824(0x1cf)](),this[_0x185824(0x1f0)]({'attributes':{'class':[Ho]}});}[_0x19d5cf(0x1e4)](){const _0x1cdc4f=_0x19d5cf;super[_0x1cdc4f(0x1e4)](),this[_0x1cdc4f(0x1f2)][_0x1cdc4f(0x19c)](this[_0x1cdc4f(0x182)]);}[_0x19d5cf(0x1cf)](){const _0x31f1c0=_0x19d5cf,_0x568f8c=new _0x1e9b06();return _0x568f8c[_0x31f1c0(0x1b5)]=_0x52fdbc,_0x568f8c[_0x31f1c0(0x1f0)]({'attributes':{'class':Ho+_0x31f1c0(0x1a6)}}),_0x568f8c;}}
23
+ const _0x2ca822=_0x22fc;(function(_0xcc8b7e,_0x4eb5f2){const _0x3de790=_0x22fc,_0x5051cf=_0xcc8b7e();while(!![]){try{const _0x20b21c=parseInt(_0x3de790(0x81))/0x1*(-parseInt(_0x3de790(0x86))/0x2)+-parseInt(_0x3de790(0xff))/0x3+-parseInt(_0x3de790(0xb7))/0x4+-parseInt(_0x3de790(0x92))/0x5+parseInt(_0x3de790(0xa8))/0x6+parseInt(_0x3de790(0xc4))/0x7+-parseInt(_0x3de790(0xf0))/0x8*(-parseInt(_0x3de790(0xdb))/0x9);if(_0x20b21c===_0x4eb5f2)break;else _0x5051cf['push'](_0x5051cf['shift']());}catch(_0x561444){_0x5051cf['push'](_0x5051cf['shift']());}}}(_0x1d5f,0x89782));import{BalloonPanelView as _0x401041,ButtonView as _0x273dfd,clickOutsideHandler as _0x251fd1,FileDialogButtonView as _0x13e297,IconView as _0xd14263,View as _0x6a0a2c}from'ckeditor5/src/ui.js';function _0x22fc(_0x146fd8,_0x536704){const _0x1d5f13=_0x1d5f();return _0x22fc=function(_0x22fc63,_0x18387c){_0x22fc63=_0x22fc63-0x80;let _0x3e2e19=_0x1d5f13[_0x22fc63];return _0x3e2e19;},_0x22fc(_0x146fd8,_0x536704);}import{IconBrowseFiles as _0x1c4317,IconDocument as _0xc8a123,IconDocumentOutline as _0x5eb0fb,IconDropdownArrow as _0x22a845,IconLink as _0xa0f7df,IconPaperClip as _0x55d586}from'@ckeditor/ckeditor5-icons';function _0x1d5f(){const _0x738113=['isReadOnly','_conversationContextsChips','populateSourceResourceBalloon','hide','_handleUrlSubmit','1ubIZOL','closest','_toggleAddContextBalloon','showSourceResourcesBalloon','_createAddContextBalloonPanelView','1330258EMOcFF','enabled','menuitem','clearConversationContextItems','updateResourceState','setContainerElement','_setupUrlBalloonClickOutsideHandler','show','_handleAddContextButtonClick','isVisible','reorganizeChips','refreshBalloon','4772265Umqgkn','createCollection','AI_CHAT_CONTEXT_FILE_LABEL','label','arrowView','addResourceToContext','buttonView','div','ck-ai-chat-context-controls__add-context-balloon-panel','source','current','render','addDocumentToContext','ck-ai-chat-context-controls__add-context-button','cancel','isAnyResourceBalloonVisible','children','northArrowSouthEast','addContextItem','_addContextBalloonConfig','_createResourcesBalloonView','addUrlToContext','3538980juzDgb','execute','setConversationContext','ck-ai-chat-controls_context_show-more-button','_createAddContextButtonView','files','_urlBalloonPanelView','_getLimiterElement','balloonView','removeContextItemChip','conversation','find','setContextItemLoading','destroy','_resourcesBalloonView','723224KnEyPI','southArrowNorthWest','icon','_setupTemplate','northArrowSouth','bind','southArrowNorthEast','_currentContextsChips','isHidden','_overflowManager','setTemplate','type','_setBalloonPanelContent','7655606gWDBUI','showUrlBalloonPanel','isEnabled','remove','hideUrlBalloonPanel','ck-ai-chat-context-controls__url-balloon-panel','set','hideAddContextBalloonPanel','_setupAllBalloonClickOutsideHandlers','AI_CHAT_CONTEXT_URL_LABEL','urls','clearCurrentContextItems','_createArrowView','__arrow','isOn','bodyCollection','focus','loadSourceResources','pin','ck-ai-chat-context-controls__balloon-button','defaultPositions','ck-ai-chat-context-controls','_urlInputView','5897403djiGXz','_bindEventHandlers','tooltip','ck-ai-chat','done','isLoading','_createBalloonButton','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-controls-button','southArrowNorth','_createContextButton','ck-ai-chat-context-chips-wrapper-balloon','_removeContextFromCollection','extendTemplate','add','addFileToContext','setAddContextOptions','northArrowSouthWest','document','element','16dJWOWc','showAddContextBalloonPanel','_showSourceResourcesBalloon','sources','content','body','AI_CHAT_CONTEXT_ADD_CONTEXT','_addContextToCollection','_createBaseBalloonPanel','ck-ai-chat-context-controls__balloon-button-source','closeSourceResourceBalloon','fire','clear','addContextButtonView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','1891680NvAcdS','submitUrl','_createUrlBalloonPanelView','overflowChips','_addContextBalloonPanelView','_setAddContextButtonEnabled','_addUrlContent','locale','ck-reset_all-excluded','_setupAddContextBalloonClickOutsideHandler','removeContextItem'];_0x1d5f=function(){return _0x738113;};return _0x1d5f();}import{AIChatContextItemButtonView as _0x1c7391}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x571f35}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x55dbab}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x22cc11}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x238d7b}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2ca822(0x9e),_0x2ca822(0xeb),_0x2ca822(0xa7),_0x2ca822(0x97),_0x2ca822(0x109),_0x2ca822(0xd5)];const Bo=_0x2ca822(0xd9),bo=_0x2ca822(0xe3),To=_0x2ca822(0x9a),Ao=_0x2ca822(0x9f),ko=_0x2ca822(0xc9),Eo=_0x2ca822(0xd7),vo=_0x2ca822(0xf9),go=_0x2ca822(0xe4),Vo=_0x2ca822(0xe7),fo=_0x2ca822(0xab),Io=_0x2ca822(0xe2),Po=_0x2ca822(0xde),Ro=[_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xed)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xbb)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xa3)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xb8)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xe5)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xbd)]];export class AIChatContextPanelView extends _0x6a0a2c{[_0x2ca822(0xfd)];[_0x2ca822(0xbe)]=this[_0x2ca822(0x93)]();[_0x2ca822(0x10b)]=this[_0x2ca822(0x93)]();[_0x2ca822(0xc0)];[_0x2ca822(0x103)];[_0x2ca822(0xae)];[_0x2ca822(0xda)];[_0x2ca822(0xb6)];[_0x2ca822(0xa5)];[_0x2ca822(0xd3)];constructor(_0x23f24b,_0x3271c1){const _0x5eafe7=_0x2ca822;super(_0x23f24b),this[_0x5eafe7(0xd3)]=_0x3271c1,this[_0x5eafe7(0xbe)]=this[_0x5eafe7(0x93)](),this[_0x5eafe7(0x10b)]=this[_0x5eafe7(0x93)](),this[_0x5eafe7(0xfd)]=this[_0x5eafe7(0xac)](_0x23f24b),this[_0x5eafe7(0x103)]=this[_0x5eafe7(0x85)](_0x23f24b),this[_0x5eafe7(0xae)]=this[_0x5eafe7(0x101)](_0x23f24b),this[_0x5eafe7(0xb6)]=this[_0x5eafe7(0xa6)](_0x23f24b,_0x3271c1);const _0x4ffb41={'cssClasses':{'showMoreButton':fo,'showMoreBalloon':Io,'overflowContainer':Vo,'controlsButton':go}};this[_0x5eafe7(0xc0)]=new _0x55dbab(_0x23f24b,this[_0x5eafe7(0xbe)],_0x4ffb41,this[_0x5eafe7(0xd3)],this),this[_0x5eafe7(0xa5)]={'buttonView':this[_0x5eafe7(0xfd)],'balloonView':this[_0x5eafe7(0x103)],'hideMethod':this[_0x5eafe7(0xcb)][_0x5eafe7(0xbc)](this),'showMethod':this[_0x5eafe7(0xf1)][_0x5eafe7(0xbc)](this)},this[_0x5eafe7(0xba)](),this[_0x5eafe7(0xdc)]();}[_0x2ca822(0x9d)](){const _0x587ba9=_0x2ca822;super[_0x587ba9(0x9d)](),this[_0x587ba9(0xcc)](),this[_0x587ba9(0xc0)][_0x587ba9(0x8b)](this[_0x587ba9(0xef)]),this[_0x587ba9(0xc0)][_0x587ba9(0x90)]();}[_0x2ca822(0xb5)](){const _0x2e4330=_0x2ca822;super[_0x2e4330(0xb5)](),this[_0x2e4330(0xc0)][_0x2e4330(0xb5)](),this[_0x2e4330(0xb6)][_0x2e4330(0xb5)]();}[_0x2ca822(0xa4)](_0x13b33a,_0x2b2391){const _0x5ccd13=_0x2ca822,_0x57c430=this[_0x5ccd13(0xe6)](_0x13b33a,_0x5ccd13(0x9c),!0x0,_0x2b2391);this[_0x5ccd13(0xf7)](_0x57c430,this[_0x5ccd13(0xbe)]),this[_0x5ccd13(0xc0)][_0x5ccd13(0x90)]();}[_0x2ca822(0x109)](_0x1ea3f5){const _0x952cee=_0x2ca822;this[_0x952cee(0xe8)](_0x1ea3f5,this[_0x952cee(0xbe)]),this[_0x952cee(0xe8)](_0x1ea3f5,this[_0x952cee(0xc0)][_0x952cee(0x102)]),this[_0x952cee(0xc0)][_0x952cee(0x90)]();}[_0x2ca822(0xb4)](_0x3e30e0,_0x413509){const _0x1f9798=_0x2ca822;let _0x178571=this[_0x1f9798(0xbe)][_0x1f9798(0xb3)](_0xcf2192=>_0xcf2192['id']===_0x3e30e0);_0x178571||(_0x178571=this[_0x1f9798(0xc0)][_0x1f9798(0x102)][_0x1f9798(0xb3)](_0x4ad5cc=>_0x4ad5cc['id']===_0x3e30e0)),_0x178571&&(_0x178571[_0x1f9798(0xe0)]=_0x413509);}[_0x2ca822(0xaa)](_0x49f786){const _0x2404ce=_0x2ca822;this[_0x2404ce(0x10b)][_0x2404ce(0xfc)]();for(const _0x22ff5c of _0x49f786){const _0x1d229e=this[_0x2404ce(0xe6)](_0x22ff5c,_0x2404ce(0xb2),!0x1,!0x1);this[_0x2404ce(0xf7)](_0x1d229e,this[_0x2404ce(0x10b)]);}}[_0x2ca822(0xcf)](){const _0x2cd87c=_0x2ca822;this[_0x2cd87c(0xbe)][_0x2cd87c(0xfc)](),this[_0x2cd87c(0xc0)][_0x2cd87c(0xfc)]();}[_0x2ca822(0x89)](){const _0x43c8fe=_0x2ca822;this[_0x43c8fe(0x10b)][_0x43c8fe(0xfc)]();}[_0x2ca822(0x8a)](_0x129710,_0x423fe5,_0x357227){const _0x23b443=_0x2ca822;this[_0x23b443(0xb6)][_0x23b443(0x8a)](_0x129710,_0x423fe5,_0x357227);}[_0x2ca822(0xcb)](){const _0x1bd0be=_0x2ca822;this[_0x1bd0be(0x83)](!0x1);}[_0x2ca822(0xf1)](){const _0xda8dc6=_0x2ca822;this[_0xda8dc6(0x83)](!0x0);}[_0x2ca822(0xc8)](){const _0xb0ce4=_0x2ca822;this[_0xb0ce4(0xae)][_0xb0ce4(0x10d)](),this[_0xb0ce4(0xfd)][_0xb0ce4(0xd2)]=!0x1,this[_0xb0ce4(0xda)]&&this[_0xb0ce4(0xda)][_0xb0ce4(0xfc)]();}[_0x2ca822(0xc5)](){const _0x238319=_0x2ca822;this[_0x238319(0xae)][_0x238319(0x8d)](),this[_0x238319(0xfd)][_0x238319(0xd2)]=!0x0;}[_0x2ca822(0xf2)](_0xe108dd){const _0x279859=_0x2ca822;this[_0x279859(0xb6)][_0x279859(0x84)](_0xe108dd),this[_0x279859(0xfd)][_0x279859(0xd2)]=!0x0;}[_0x2ca822(0x10c)](_0x1c3d1f,_0x26ad3a,_0x598892,_0x4ca988){const _0x486ef8=_0x2ca822;this[_0x486ef8(0xb6)][_0x486ef8(0x10c)](_0x1c3d1f,_0x598892,_0x4ca988);}[_0x2ca822(0xfa)](_0x5aef9e){const _0x51c477=_0x2ca822;this[_0x51c477(0xb6)][_0x51c477(0xfa)](_0x5aef9e),this[_0x51c477(0xfd)][_0x51c477(0xd2)]=!0x1;}[_0x2ca822(0xec)](_0x5c8b72){const _0x33911a=_0x2ca822;this[_0x33911a(0xc3)](this[_0x33911a(0x103)],this[_0x33911a(0x106)],_0x5c8b72),this[_0x33911a(0x104)](_0x5c8b72);}[_0x2ca822(0x104)](_0x52f9b8){const _0x2fa272=_0x2ca822,_0x2eb34c=!_0x52f9b8[_0x2fa272(0xee)][_0x2fa272(0xbf)]&&_0x52f9b8[_0x2fa272(0xee)][_0x2fa272(0x87)],_0x5585dd=_0x52f9b8[_0x2fa272(0xce)][_0x2fa272(0x87)],_0x170e78=_0x52f9b8[_0x2fa272(0xad)][_0x2fa272(0x87)];this[_0x2fa272(0xfd)][_0x2fa272(0xc6)]=_0x2eb34c||_0x5585dd||_0x170e78;}[_0x2ca822(0xba)](){const _0x3e1fa8=_0x2ca822;this[_0x3e1fa8(0xc1)]({'tag':_0x3e1fa8(0x99),'attributes':{'class':[Bo,_0x3e1fa8(0x107)]},'children':[{'tag':_0x3e1fa8(0x99),'attributes':{'class':bo},'children':this[_0x3e1fa8(0xbe)]}]});}[_0x2ca822(0xdc)](){const _0x15ba29=_0x2ca822;this[_0x15ba29(0xfd)]['on'](_0x15ba29(0xa9),()=>{const _0x5e55ae=_0x15ba29;this[_0x5e55ae(0x8e)]();});}[_0x2ca822(0xac)](_0x554753){const _0x273739=_0x2ca822,_0x3a9adc=new _0x273dfd(_0x554753);return _0x3a9adc[_0x273739(0xca)]({'label':_0x22cc11(_0x554753,_0x273739(0xf6)),'class':go+'\x20'+Ao,'icon':_0x55d586,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x3a9adc;}[_0x2ca822(0x85)](_0x59567a){const _0x449bc2=_0x2ca822;return this[_0x449bc2(0xf8)](_0x59567a,To);}[_0x2ca822(0x101)](_0x5a8d68){const _0xb5e5bf=_0x2ca822,_0x57ffd4=this[_0xb5e5bf(0xf8)](_0x5a8d68,ko);return this[_0xb5e5bf(0x105)](_0x57ffd4,_0x5a8d68),_0x57ffd4;}[_0x2ca822(0xa6)](_0x32ad5a,_0x2f4333){const _0x555780=_0x2ca822;return new _0x238d7b(_0x32ad5a,_0x2f4333,{'onBackToContext':()=>{const _0x1c4b89=_0x22fc;this[_0x1c4b89(0xf1)](),this[_0x1c4b89(0x103)][_0x1c4b89(0xd6)]({'target':this[_0x1c4b89(0xfd)][_0x1c4b89(0xef)],'limiter':this[_0x1c4b89(0xaf)](),'positions':Ro});},'onResourceSelected':(_0x91713e,_0x19e0e5)=>{const _0x1c4ce1=_0x22fc;this[_0x1c4ce1(0xfb)](_0x1c4ce1(0x97),{'source':_0x91713e,'resource':_0x19e0e5});},'onLoadSourceResources':_0x15d2d6=>{const _0x256250=_0x22fc;this[_0x256250(0xfb)](_0x256250(0xd5),_0x15d2d6);},'onBalloonClosed':()=>{const _0x2a3019=_0x22fc;this[_0x2a3019(0xfd)][_0x2a3019(0xd2)]=!0x1;},'getLimiterElement':()=>this[_0x555780(0xaf)](),'getTargetElement':()=>this[_0x555780(0xfd)][_0x555780(0xef)]});}[_0x2ca822(0xaf)](){const _0x4a5a0c=_0x2ca822;return this[_0x4a5a0c(0xef)]?.[_0x4a5a0c(0x82)]('.'+Po)||document[_0x4a5a0c(0xf5)];}[_0x2ca822(0xf8)](_0x26ba0e,_0x145230){const _0x3ee8ac=_0x2ca822,_0xf6019f=new _0x401041(_0x26ba0e);return _0xf6019f[_0x3ee8ac(0xe9)]({'attributes':{'class':_0x145230}}),this[_0x3ee8ac(0xd3)][_0x3ee8ac(0xea)](_0xf6019f),_0xf6019f;}[_0x2ca822(0xc3)](_0x553551,_0x5c48f2,_0x167832){const _0x1a0902=_0x2ca822;if(_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xfc)](),!_0x167832[_0x1a0902(0xee)][_0x1a0902(0xbf)]&&_0x167832[_0x1a0902(0xee)][_0x1a0902(0x87)]){const _0x3d006a=this[_0x1a0902(0xe1)](_0x5c48f2,{'label':_0x22cc11(_0x5c48f2,_0x1a0902(0xfe)),'icon':_0xc8a123});_0x3d006a['on'](_0x1a0902(0xa9),()=>{const _0x2d5039=_0x1a0902;this[_0x2d5039(0xfb)](_0x2d5039(0x9e)),this[_0x2d5039(0xcb)]();}),_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x3d006a);}if(_0x167832[_0x1a0902(0xce)][_0x1a0902(0x87)]){const _0x130cdc=this[_0x1a0902(0xe1)](_0x5c48f2,{'label':_0x22cc11(_0x5c48f2,_0x1a0902(0xcd)),'icon':_0xa0f7df});_0x130cdc['on'](_0x1a0902(0xa9),()=>{const _0x50955e=_0x1a0902;this[_0x50955e(0xcb)](),this[_0x50955e(0xc5)](),this[_0x50955e(0xae)][_0x50955e(0xd6)]({'target':this[_0x50955e(0xfd)][_0x50955e(0xef)],'limiter':this[_0x50955e(0xaf)](),'positions':Ro}),this[_0x50955e(0xda)][_0x50955e(0xd4)]();}),_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x130cdc);}if(_0x167832[_0x1a0902(0xad)][_0x1a0902(0x87)]){const _0x349696=new _0x13e297(_0x5c48f2);_0x349696[_0x1a0902(0xca)]({'label':_0x22cc11(_0x5c48f2,_0x1a0902(0x94)),'icon':_0x1c4317,'withText':!0x0,'tooltip':!0x0,'class':Eo,'allowMultipleFiles':!0x0}),_0x349696['on'](_0x1a0902(0xdf),(_0x52de69,_0x360823)=>{const _0x181d2c=_0x1a0902;this[_0x181d2c(0xfb)](_0x181d2c(0xeb),_0x360823),this[_0x181d2c(0xcb)]();}),_0x349696[_0x1a0902(0xdd)]=!0x0,_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x349696);}for(const _0x44d14c of _0x167832[_0x1a0902(0xf3)]){const _0x216ebb=this[_0x1a0902(0xe1)](_0x5c48f2,{'label':_0x44d14c[_0x1a0902(0x95)],'icon':_0x44d14c[_0x1a0902(0xb9)]||_0x5eb0fb,'type':_0x1a0902(0x9b)});_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x216ebb),_0x216ebb['on'](_0x1a0902(0xa9),()=>{const _0x24ceaf=_0x1a0902;this[_0x24ceaf(0xcb)](),this[_0x24ceaf(0xf2)](_0x44d14c);});}}[_0x2ca822(0x105)](_0x524494,_0x43886a){const _0x1042f0=_0x2ca822;this[_0x1042f0(0xda)]=new _0x571f35(_0x43886a),this[_0x1042f0(0xda)]['on'](_0x1042f0(0x100),(_0x39a251,_0x51785b)=>{const _0x741c28=_0x1042f0;this[_0x741c28(0x80)](_0x51785b);}),this[_0x1042f0(0xda)]['on'](_0x1042f0(0xa0),()=>{const _0x4ee6a9=_0x1042f0;this[_0x4ee6a9(0xc8)](),this[_0x4ee6a9(0xf1)](),this[_0x4ee6a9(0x103)][_0x4ee6a9(0xd6)]({'target':this[_0x4ee6a9(0xfd)][_0x4ee6a9(0xef)],'limiter':this[_0x4ee6a9(0xaf)](),'positions':Ro});}),this[_0x1042f0(0xda)]['on'](_0x1042f0(0x91),()=>{const _0x5c67c5=_0x1042f0;this[_0x5c67c5(0xae)][_0x5c67c5(0x8f)]&&this[_0x5c67c5(0xae)][_0x5c67c5(0xd6)]({'target':this[_0x5c67c5(0xfd)][_0x5c67c5(0xef)],'limiter':this[_0x5c67c5(0xaf)](),'positions':Ro});}),_0x524494[_0x1042f0(0xf4)][_0x1042f0(0xea)](this[_0x1042f0(0xda)]);}[_0x2ca822(0xe1)](_0x57e194,_0x1e7a42){const _0x409beb=_0x2ca822,_0x19a030=_0x409beb(0x9b)===_0x1e7a42[_0x409beb(0xc2)]?new SourcesBalloonButtonView(_0x57e194):new _0x273dfd(_0x57e194);return _0x19a030[_0x409beb(0xca)]({'label':_0x1e7a42[_0x409beb(0x95)],'icon':_0x1e7a42[_0x409beb(0xb9)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Eo}),_0x19a030;}[_0x2ca822(0xcc)](){const _0x55e594=_0x2ca822;this[_0x55e594(0x108)](),this[_0x55e594(0x8c)]();}[_0x2ca822(0x8c)](){const _0x2a1372=_0x2ca822;_0x251fd1({'emitter':this[_0x2a1372(0xae)],'contextElements':[this[_0x2a1372(0xae)][_0x2a1372(0xef)]],'callback':()=>{const _0x209be6=_0x2a1372;this[_0x209be6(0xc8)]();},'activator':()=>this[_0x2a1372(0xae)][_0x2a1372(0x8f)]});}[_0x2ca822(0x83)](_0x397404){const _0x3c6019=_0x2ca822,_0x45a62e=this[_0x3c6019(0xa5)];_0x45a62e[_0x3c6019(0x98)][_0x3c6019(0xd2)]=_0x397404,_0x397404?_0x45a62e[_0x3c6019(0xb0)][_0x3c6019(0x8d)]():_0x45a62e[_0x3c6019(0xb0)][_0x3c6019(0x10d)]();}[_0x2ca822(0x108)](){const _0x4f007a=_0x2ca822,{balloonView:_0x38d9bc,buttonView:_0x40cfa7,hideMethod:_0x5e3a65}=this[_0x4f007a(0xa5)];_0x251fd1({'emitter':_0x38d9bc,'contextElements':[_0x38d9bc[_0x4f007a(0xef)],_0x40cfa7[_0x4f007a(0xef)]],'callback':()=>{_0x5e3a65();},'activator':()=>_0x40cfa7[_0x4f007a(0xd2)]&&!this[_0x4f007a(0xae)][_0x4f007a(0x8f)]&&!this[_0x4f007a(0xb6)][_0x4f007a(0xa1)]()});}[_0x2ca822(0xe6)](_0x5e0cf0,_0x5d7c21,_0x1544d1=!0x1,_0xa2b390=!0x1){const _0x3fbb1f=_0x2ca822,_0x1699be=_0x3fbb1f(0xb2)===_0x5d7c21||!0x0===_0x5e0cf0[_0x3fbb1f(0x10a)],_0x3bc5a0=new _0x1c7391(this[_0x3fbb1f(0x106)],_0x5e0cf0,_0x1699be,_0x1544d1,_0xa2b390);return _0x1699be||_0x3bc5a0['on'](_0x3fbb1f(0xb1),()=>{const _0x26315c=_0x3fbb1f;this[_0x26315c(0xfb)](_0x26315c(0x109),_0x3bc5a0['id']);}),_0x3bc5a0;}[_0x2ca822(0xf7)](_0x6b2c1d,_0x5cfdc9){const _0x31be5c=_0x2ca822;_0x5cfdc9[_0x31be5c(0xea)](_0x6b2c1d,0x0);}[_0x2ca822(0xe8)](_0x2d1efb,_0x269b36){const _0x4579ce=_0x2ca822,_0x1ecb91=_0x269b36[_0x4579ce(0xb3)](_0x263585=>_0x263585['id']===_0x2d1efb);_0x1ecb91&&_0x269b36[_0x4579ce(0xc7)](_0x1ecb91);}[_0x2ca822(0x8e)](){const _0x105144=_0x2ca822;this[_0x105144(0xfd)][_0x105144(0xd2)]?this[_0x105144(0xcb)]():(this[_0x105144(0xf1)](),this[_0x105144(0x103)][_0x105144(0xd6)]({'target':this[_0x105144(0xfd)][_0x105144(0xef)],'limiter':this[_0x105144(0xaf)](),'positions':Ro}));}[_0x2ca822(0x80)](_0x5f5dce){const _0x57482b=_0x2ca822;this[_0x57482b(0xda)][_0x57482b(0xfc)](),this[_0x57482b(0xc8)](),this[_0x57482b(0xfb)](_0x57482b(0xa7),_0x5f5dce);}}export class SourcesBalloonButtonView extends _0x273dfd{[_0x2ca822(0x96)];constructor(_0xab925){const _0x3532d0=_0x2ca822;super(_0xab925),this[_0x3532d0(0xca)]({'withText':!0x0,'role':_0x3532d0(0x88)}),this[_0x3532d0(0x96)]=this[_0x3532d0(0xd0)](),this[_0x3532d0(0xe9)]({'attributes':{'class':[vo]}});}[_0x2ca822(0x9d)](){const _0x4e16ce=_0x2ca822;super[_0x4e16ce(0x9d)](),this[_0x4e16ce(0xa2)][_0x4e16ce(0xea)](this[_0x4e16ce(0x96)]);}[_0x2ca822(0xd0)](){const _0x23ccf6=_0x2ca822,_0x57142e=new _0xd14263();return _0x57142e[_0x23ccf6(0xf4)]=_0x22a845,_0x57142e[_0x23ccf6(0xe9)]({'attributes':{'class':vo+_0x23ccf6(0xd1)}}),_0x57142e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x16b2(){const _0x5b7269=['413724FOfijz','_loaderView','ai-chat-controls-loader__cancel-button','set','locale','ck-reset_all','ck-ai-chat-controls-loader-icon-dot','AI_CHAT_STOP_GENERATING','11349MaFLUv','11230mVhsrQ','ck-ai-chat-controls-loader-wrapper','4433172gEWGda','abortPromptStream','AI_CHAT_IS_WRITING','execute','520998BynXNP','_createLoaderView','_createCancelButtonView','fire','ck-ai-chat-controls-loader','12QWDUqv','63222093NXboNb','1399976lGyNrs','21nQsHwI','ck-ai-chat-controls-loader-icon','_cancelButtonView','5wYXZce','1504765Kiynzr','setTemplate','div'];_0x16b2=function(){return _0x5b7269;};return _0x16b2();}const _0x45b79c=_0x114d;function _0x114d(_0x313d71,_0x3db209){const _0x16b25d=_0x16b2();return _0x114d=function(_0x114de3,_0x1f6f67){_0x114de3=_0x114de3-0x78;let _0x4cd754=_0x16b25d[_0x114de3];return _0x4cd754;},_0x114d(_0x313d71,_0x3db209);}(function(_0x5d181e,_0x272b4a){const _0x4f94ed=_0x114d,_0x316efc=_0x5d181e();while(!![]){try{const _0xc77375=parseInt(_0x4f94ed(0x8d))/0x1*(-parseInt(_0x4f94ed(0x91))/0x2)+-parseInt(_0x4f94ed(0x7e))/0x3+-parseInt(_0x4f94ed(0x87))/0x4*(parseInt(_0x4f94ed(0x8e))/0x5)+parseInt(_0x4f94ed(0x82))/0x6*(-parseInt(_0x4f94ed(0x8a))/0x7)+parseInt(_0x4f94ed(0x89))/0x8+-parseInt(_0x4f94ed(0x7b))/0x9*(parseInt(_0x4f94ed(0x7c))/0xa)+parseInt(_0x4f94ed(0x88))/0xb;if(_0xc77375===_0x272b4a)break;else _0x316efc['push'](_0x316efc['shift']());}catch(_0x392da1){_0x316efc['push'](_0x316efc['shift']());}}}(_0x16b2,0xcadf5));import{ButtonView as _0x3f4b8e,View as _0x214bdf}from'ckeditor5/src/ui.js';import{IconStop as _0x550916}from'ckeditor5/src/icons.js';import{getTranslation as _0x536b82}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x214bdf{[_0x45b79c(0x8c)];[_0x45b79c(0x92)];constructor(_0x529ceb){const _0x497555=_0x45b79c;super(_0x529ceb),this[_0x497555(0x8c)]=this[_0x497555(0x84)](),this[_0x497555(0x92)]=this[_0x497555(0x83)](),this[_0x497555(0x8f)]({'tag':_0x497555(0x90),'attributes':{'class':['ck',_0x497555(0x7d),_0x497555(0x78)]},'children':[this[_0x497555(0x92)],this[_0x497555(0x8c)]]});}[_0x45b79c(0x84)](){const _0xfd4ded=_0x45b79c,_0x13c69e=new _0x3f4b8e(this[_0xfd4ded(0x95)]);return _0x13c69e[_0xfd4ded(0x94)]({'label':_0x536b82(this[_0xfd4ded(0x95)],_0xfd4ded(0x7a)),'withText':!0x0,'class':_0xfd4ded(0x93),'icon':_0x550916}),_0x13c69e['on'](_0xfd4ded(0x81),()=>{const _0x457c2b=_0xfd4ded;this[_0x457c2b(0x85)](_0x457c2b(0x7f));}),_0x13c69e;}[_0x45b79c(0x83)](){const _0x129c67=_0x45b79c,_0x24cfbb=new _0x214bdf(this[_0x129c67(0x95)]);return _0x24cfbb[_0x129c67(0x8f)]({'tag':_0x129c67(0x90),'attributes':{'class':[_0x129c67(0x86)]},'children':[{'tag':_0x129c67(0x90),'attributes':{'class':[_0x129c67(0x8b)]},'children':[{'tag':_0x129c67(0x90),'attributes':{'class':[_0x129c67(0x79)]}},{'tag':_0x129c67(0x90),'attributes':{'class':[_0x129c67(0x79)]}},{'tag':_0x129c67(0x90),'attributes':{'class':[_0x129c67(0x79)]}}]},{'text':_0x536b82(this[_0x129c67(0x95)],_0x129c67(0x80))}]}),_0x24cfbb;}}
23
+ function _0x5606(){const _0x316036=['abortPromptStream','3292slaVvj','ck-reset_all','609065LKKGPz','ai-chat-controls-loader__cancel-button','set','fire','ck-ai-chat-controls-loader-icon','4199922bckszR','587480HSGaKY','div','execute','ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader','AI_CHAT_IS_WRITING','33832gmBQeK','AI_CHAT_STOP_GENERATING','_loaderView','_cancelButtonView','_createLoaderView','2SizgJg','1408068oveUAe','231MIyEsm','152957KXHbzy','_createCancelButtonView','ck-ai-chat-controls-loader-wrapper','setTemplate','locale'];_0x5606=function(){return _0x316036;};return _0x5606();}const _0x5ef391=_0x6b6b;(function(_0x243840,_0x13e913){const _0x263dcc=_0x6b6b,_0x45aeac=_0x243840();while(!![]){try{const _0x47f206=parseInt(_0x263dcc(0x1fd))/0x1*(-parseInt(_0x263dcc(0x1f8))/0x2)+parseInt(_0x263dcc(0x1ff))/0x3*(-parseInt(_0x263dcc(0x1ea))/0x4)+parseInt(_0x263dcc(0x1ec))/0x5+-parseInt(_0x263dcc(0x1fe))/0x6+-parseInt(_0x263dcc(0x200))/0x7+-parseInt(_0x263dcc(0x1f2))/0x8+parseInt(_0x263dcc(0x1f1))/0x9;if(_0x47f206===_0x13e913)break;else _0x45aeac['push'](_0x45aeac['shift']());}catch(_0x31b544){_0x45aeac['push'](_0x45aeac['shift']());}}}(_0x5606,0x27618));function _0x6b6b(_0x1990dd,_0x44f77f){const _0x560652=_0x5606();return _0x6b6b=function(_0x6b6bda,_0x255e2f){_0x6b6bda=_0x6b6bda-0x1e6;let _0x324330=_0x560652[_0x6b6bda];return _0x324330;},_0x6b6b(_0x1990dd,_0x44f77f);}import{ButtonView as _0x1560e0,View as _0x1eafdb}from'ckeditor5/src/ui.js';import{IconStop as _0x15c2ee}from'ckeditor5/src/icons.js';import{getTranslation as _0x4398c9}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x1eafdb{[_0x5ef391(0x1fb)];[_0x5ef391(0x1fa)];constructor(_0x38f98e){const _0x30f0ca=_0x5ef391;super(_0x38f98e),this[_0x30f0ca(0x1fb)]=this[_0x30f0ca(0x201)](),this[_0x30f0ca(0x1fa)]=this[_0x30f0ca(0x1fc)](),this[_0x30f0ca(0x1e7)]({'tag':_0x30f0ca(0x1f3),'attributes':{'class':['ck',_0x30f0ca(0x1e6),_0x30f0ca(0x1eb)]},'children':[this[_0x30f0ca(0x1fa)],this[_0x30f0ca(0x1fb)]]});}[_0x5ef391(0x201)](){const _0x3cc278=_0x5ef391,_0x424674=new _0x1560e0(this[_0x3cc278(0x1e8)]);return _0x424674[_0x3cc278(0x1ee)]({'label':_0x4398c9(this[_0x3cc278(0x1e8)],_0x3cc278(0x1f9)),'withText':!0x0,'class':_0x3cc278(0x1ed),'icon':_0x15c2ee}),_0x424674['on'](_0x3cc278(0x1f4),()=>{const _0x48dc12=_0x3cc278;this[_0x48dc12(0x1ef)](_0x48dc12(0x1e9));}),_0x424674;}[_0x5ef391(0x1fc)](){const _0x3db077=_0x5ef391,_0x4b5c63=new _0x1eafdb(this[_0x3db077(0x1e8)]);return _0x4b5c63[_0x3db077(0x1e7)]({'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f6)]},'children':[{'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f0)]},'children':[{'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f5)]}},{'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f5)]}},{'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f5)]}}]},{'text':_0x4398c9(this[_0x3db077(0x1e8)],_0x3db077(0x1f7))}]}),_0x4b5c63;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11b99b=_0x47bf;(function(_0x57d3fc,_0x314e1b){const _0x2f5ad7=_0x47bf,_0x2d585a=_0x57d3fc();while(!![]){try{const _0x4ec9ea=parseInt(_0x2f5ad7(0x117))/0x1+-parseInt(_0x2f5ad7(0x16c))/0x2*(parseInt(_0x2f5ad7(0x156))/0x3)+parseInt(_0x2f5ad7(0x114))/0x4+-parseInt(_0x2f5ad7(0x12d))/0x5+-parseInt(_0x2f5ad7(0x13b))/0x6+-parseInt(_0x2f5ad7(0x125))/0x7*(parseInt(_0x2f5ad7(0x131))/0x8)+parseInt(_0x2f5ad7(0x164))/0x9*(parseInt(_0x2f5ad7(0x163))/0xa);if(_0x4ec9ea===_0x314e1b)break;else _0x2d585a['push'](_0x2d585a['shift']());}catch(_0x1b227b){_0x2d585a['push'](_0x2d585a['shift']());}}}(_0x70f5,0xf2f73));function _0x70f5(){const _0xf78a53=['toggleWebSearch','webSearchActive','isOn','ck-ai-chat-controls__model-selection','execute','ck-ai-chat-controls__model-name','_commandsButton','212429nQvZev','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_modelSelectionDropdown','setReasoning','enabled','bind','_webSearchButton','menuitemradio','3732415AzBUqy','button','isEnabled','content','368ukdgbH','_getCapabilityParts','name','model','_createCommandsButton','modelSelectorVisible','ck-hidden','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','disableModelSelector','_createModelNameView','9293970YauMwH','buttonView','ck-ai-chat-controls-button','startsWith','ck-button__label','description','setModel','_createReasoningButton','toggleReasoning','activeModelName','clear','Commands\x20are\x20not\x20implemented\x20yet.','log','agent','enableModelSelector','_modelSelectionDropdownItems','add','text','AI_CHAT_SEARCH_WEB','AI_CHAT_CAPABILITIES_NO','_modelNameView','modelSelectorEnabled','reasoningActive','AI_CHAT_CAPABILITIES_YES','_createModelSelectionDropdown','tooltip','ck-ai-chat-controls-button--commands','15084rqyjfD','set','setWebSearch','listenTo','ck-ai-chat-controls__model-selection__item-name','ck-ai-chat-controls__model-selection__item-description','reasoning','AI_CHAT_DISABLE_WEB_SEARCH','setTemplate','_createWebSearchButton','isVisible','_reasoningButton','ck-ai-chat__prompt-capabilities','49863500oMlEux','9RGnHmD','addMany','div','ck-ai-chat-controls__model-selection__item-capabilities','source','capabilities','selectModel','setModelList','718CDldcu','locale','activeModelId','AI_CHAT_ENABLE_REASONING','AI_CHAT_REASONING','toLowerCase','webSearch','bindTemplate','fire','style','length','2133444CZWKBl','AI_CHAT_COMMANDS','AI_CHAT_ENABLE_WEB_SEARCH','971968PSUpHa','withText','label','createCollection','extendTemplate','AI_CHAT_DISABLE_REASONING','span'];_0x70f5=function(){return _0xf78a53;};return _0x70f5();}import{Collection as _0x271bcf}from'ckeditor5/src/utils.js';import{IconAI as _0x2552f7,IconBulb as _0x2068cb,IconWeb as _0x2bd8c1}from'@ckeditor/ckeditor5-icons';function _0x47bf(_0x48d948,_0x852ff1){const _0x70f54a=_0x70f5();return _0x47bf=function(_0x47bf09,_0x36620c){_0x47bf09=_0x47bf09-0x112;let _0x2947f5=_0x70f54a[_0x47bf09];return _0x2947f5;},_0x47bf(_0x48d948,_0x852ff1);}import{addListToDropdown as _0x268d34,ButtonLabelView as _0x37fe4b,ButtonView as _0x27ebdf,createDropdown as _0x7dbab6,IconView as _0xf1d851,UIModel as _0x4ca810,View as _0x594df7}from'ckeditor5/src/ui.js';import{getTranslation as _0x3ee511}from'../../../aicore/utils/common-translations.js';const Wo=_0x11b99b(0x162),uo=_0x11b99b(0x13d),yo=_0x11b99b(0x155),Go=_0x11b99b(0x121),Yo=_0x11b99b(0x15a),qo=_0x11b99b(0x15b),zo=_0x11b99b(0x167),Fo='n';export class AIChatPromptCapabilitiesView extends _0x594df7{[_0x11b99b(0x12b)];[_0x11b99b(0x161)];[_0x11b99b(0x124)];[_0x11b99b(0x127)];[_0x11b99b(0x14a)];[_0x11b99b(0x14f)];constructor(_0x5ef80d){const _0x5d2227=_0x11b99b;super(_0x5ef80d),this[_0x5d2227(0x157)](_0x5d2227(0x11f),!0x1),this[_0x5d2227(0x157)](_0x5d2227(0x151),!0x1),this[_0x5d2227(0x157)](_0x5d2227(0x136),!0x0),this[_0x5d2227(0x157)](_0x5d2227(0x150),!0x0),this[_0x5d2227(0x157)](_0x5d2227(0x16e),''),this[_0x5d2227(0x157)](_0x5d2227(0x144),''),this[_0x5d2227(0x127)]=this[_0x5d2227(0x153)](),this[_0x5d2227(0x14f)]=this[_0x5d2227(0x13a)](),this[_0x5d2227(0x12b)]=this[_0x5d2227(0x15f)](),this[_0x5d2227(0x161)]=this[_0x5d2227(0x142)](),this[_0x5d2227(0x124)]=this[_0x5d2227(0x135)](),this[_0x5d2227(0x127)][_0x5d2227(0x13c)][_0x5d2227(0x12a)](_0x5d2227(0x160))['to'](this,_0x5d2227(0x136),_0x13cb91=>_0x13cb91),this[_0x5d2227(0x127)][_0x5d2227(0x13c)][_0x5d2227(0x12a)](_0x5d2227(0x154))['to'](this,_0x5d2227(0x150),_0x31314a=>_0x31314a?this[_0x5d2227(0x127)][_0x5d2227(0x13c)][_0x5d2227(0x119)]:_0x3ee511(this[_0x5d2227(0x16d)],_0x5d2227(0x126))),this[_0x5d2227(0x127)][_0x5d2227(0x12a)](_0x5d2227(0x12f))['to'](this,_0x5d2227(0x150),_0x2f76fc=>_0x2f76fc),this[_0x5d2227(0x12b)][_0x5d2227(0x12a)](_0x5d2227(0x120))['to'](this,_0x5d2227(0x11f),_0x29dc3b=>_0x29dc3b),this[_0x5d2227(0x12b)][_0x5d2227(0x12a)](_0x5d2227(0x118))['to'](this,_0x5d2227(0x136),_0x1dfc97=>!_0x1dfc97),this[_0x5d2227(0x12b)][_0x5d2227(0x12a)](_0x5d2227(0x154))['to'](this,_0x5d2227(0x11f),_0x2dcc8e=>_0x3ee511(this[_0x5d2227(0x16d)],_0x2dcc8e?_0x5d2227(0x15d):_0x5d2227(0x116))),this[_0x5d2227(0x161)][_0x5d2227(0x12a)](_0x5d2227(0x120))['to'](this,_0x5d2227(0x151),_0x1e6255=>_0x1e6255),this[_0x5d2227(0x161)][_0x5d2227(0x12a)](_0x5d2227(0x118))['to'](this,_0x5d2227(0x136),_0x363605=>!_0x363605),this[_0x5d2227(0x161)][_0x5d2227(0x12a)](_0x5d2227(0x154))['to'](this,_0x5d2227(0x151),_0x195e04=>_0x3ee511(this[_0x5d2227(0x16d)],_0x195e04?_0x5d2227(0x11c):_0x5d2227(0x16f))),this[_0x5d2227(0x15e)]({'tag':_0x5d2227(0x166),'attributes':{'class':[Wo]},'children':[this[_0x5d2227(0x127)],this[_0x5d2227(0x14f)],this[_0x5d2227(0x12b)],this[_0x5d2227(0x161)],this[_0x5d2227(0x124)]]}),this[_0x5d2227(0x14a)]=new _0x271bcf(),_0x268d34(this[_0x5d2227(0x127)],this[_0x5d2227(0x14a)]);}[_0x11b99b(0x16b)](_0xfe2155,_0x52cd7f){const _0x5dcf95=_0x11b99b;if(this[_0x5dcf95(0x157)](_0x5dcf95(0x136),!(_0x52cd7f&&_0xfe2155[_0x5dcf95(0x113)]<=0x1)),this[_0x5dcf95(0x14a)][_0x5dcf95(0x145)](),_0xfe2155?.[_0x5dcf95(0x113)])for(const _0x94eb13 of _0xfe2155){const _0x3b56b3=new _0x4ca810({'label':_0x94eb13[_0x5dcf95(0x133)],'withText':!0x0,'role':_0x5dcf95(0x12c),'id':_0x94eb13['id'],'model':_0x94eb13});_0x3b56b3[_0x5dcf95(0x12a)](_0x5dcf95(0x120))['to'](this,_0x5dcf95(0x16e),_0x622ce5=>_0x622ce5===_0x94eb13['id']),this[_0x5dcf95(0x14a)][_0x5dcf95(0x14b)]({'type':_0x5dcf95(0x12e),'model':_0x3b56b3,'labelView':new Ds(this[_0x5dcf95(0x16d)],_0x94eb13)});}}[_0x11b99b(0x158)](_0x1bd642){const _0x577efd=_0x11b99b;this[_0x577efd(0x157)](_0x577efd(0x11f),_0x1bd642);}[_0x11b99b(0x128)](_0x50a035){const _0x5459e6=_0x11b99b;this[_0x5459e6(0x157)](_0x5459e6(0x151),_0x50a035);}[_0x11b99b(0x141)](_0x1e49c2){const _0x48ed68=_0x11b99b;if(!_0x1e49c2)return;this[_0x48ed68(0x16e)]=_0x1e49c2['id'],this[_0x48ed68(0x144)]=_0x1e49c2[_0x48ed68(0x133)]||_0x1e49c2['id'],this[_0x48ed68(0x127)][_0x48ed68(0x13c)][_0x48ed68(0x157)](_0x48ed68(0x119),_0x1e49c2[_0x48ed68(0x133)]),this[_0x48ed68(0x127)][_0x48ed68(0x13c)][_0x48ed68(0x157)](_0x48ed68(0x154),_0x1e49c2[_0x48ed68(0x133)]);const _0x34579e=_0x1e49c2[_0x48ed68(0x169)][_0x48ed68(0x172)]?.[_0x48ed68(0x129)]??!0x1;this[_0x48ed68(0x157)](_0x48ed68(0x11f),!0x1),this[_0x48ed68(0x12b)][_0x48ed68(0x157)](_0x48ed68(0x120),!0x1),this[_0x48ed68(0x12b)][_0x48ed68(0x157)](_0x48ed68(0x12f),_0x34579e),this[_0x48ed68(0x12b)][_0x48ed68(0x157)](_0x48ed68(0x160),_0x34579e);const _0x1818e7=_0x1e49c2[_0x48ed68(0x169)][_0x48ed68(0x15c)]?.[_0x48ed68(0x129)]??!0x1;this[_0x48ed68(0x157)](_0x48ed68(0x151),!0x1),this[_0x48ed68(0x161)][_0x48ed68(0x157)](_0x48ed68(0x120),!0x1),this[_0x48ed68(0x161)][_0x48ed68(0x157)](_0x48ed68(0x12f),_0x1818e7),this[_0x48ed68(0x161)][_0x48ed68(0x157)](_0x48ed68(0x160),_0x1818e7);}[_0x11b99b(0x149)](){const _0x167ef3=_0x11b99b;this[_0x167ef3(0x157)](_0x167ef3(0x150),!0x0),this[_0x167ef3(0x157)](_0x167ef3(0x136),!0x0);}[_0x11b99b(0x139)](_0xea0a9b){const _0x3881d0=_0x11b99b;this[_0x3881d0(0x157)](_0x3881d0(0x150),!0x1),_0xea0a9b&&this[_0x3881d0(0x157)](_0x3881d0(0x136),!0x1);}[_0x11b99b(0x15f)](){const _0x3fc6de=_0x11b99b,_0x4f2f64=new _0x27ebdf();return _0x4f2f64[_0x3fc6de(0x157)]({'label':_0x3ee511(this[_0x3fc6de(0x16d)],_0x3fc6de(0x14d)),'icon':_0x2bd8c1,'class':uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x4f2f64['on'](_0x3fc6de(0x122),()=>{const _0x45cf1c=_0x3fc6de;this[_0x45cf1c(0x174)](_0x45cf1c(0x11e));}),_0x4f2f64;}[_0x11b99b(0x142)](){const _0x4326ef=_0x11b99b,_0x4a36a9=new _0x27ebdf();return _0x4a36a9[_0x4326ef(0x157)]({'label':_0x3ee511(this[_0x4326ef(0x16d)],_0x4326ef(0x170)),'icon':_0x2068cb,'class':uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x4a36a9['on'](_0x4326ef(0x122),()=>{const _0x55d814=_0x4326ef;this[_0x55d814(0x174)](_0x55d814(0x143));}),_0x4a36a9;}[_0x11b99b(0x135)](){const _0x32ccec=_0x11b99b,_0x351f5b=new _0x27ebdf();return _0x351f5b[_0x32ccec(0x157)]({'label':_0x3ee511(this[_0x32ccec(0x16d)],_0x32ccec(0x115)),'icon':_0x2552f7,'withText':!0x0,'class':uo,'isToggleable':!0x0,'tooltip':_0x3ee511(this[_0x32ccec(0x16d)],_0x32ccec(0x115)),'tooltipPosition':Fo}),_0x351f5b[_0x32ccec(0x11b)]({'attributes':{'class':[yo]}}),_0x351f5b['on'](_0x32ccec(0x122),()=>{const _0x4024c3=_0x32ccec;console[_0x4024c3(0x147)](_0x4024c3(0x146)),alert(_0x4024c3(0x146));}),_0x351f5b;}[_0x11b99b(0x153)](){const _0x52eefc=_0x11b99b,_0x5cad34=_0x7dbab6(this[_0x52eefc(0x16d)]);return _0x5cad34[_0x52eefc(0x157)]({'panelPosition':'ne','class':[Go]}),_0x5cad34[_0x52eefc(0x13c)][_0x52eefc(0x157)]({'label':_0x3ee511(this[_0x52eefc(0x16d)],_0x52eefc(0x138)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x52eefc(0x159)](_0x5cad34,_0x52eefc(0x122),_0x3ececc=>{const _0x59c38e=_0x52eefc;this[_0x59c38e(0x174)](_0x59c38e(0x16a),_0x3ececc[_0x59c38e(0x168)][_0x59c38e(0x134)]);}),_0x5cad34;}[_0x11b99b(0x13a)](){const _0x5ea003=_0x11b99b,_0xb58bc=new Jo(this[_0x5ea003(0x16d)]);return _0xb58bc[_0x5ea003(0x12a)](_0x5ea003(0x14c))['to'](this,_0x5ea003(0x144),_0x483619=>_0x483619??''),_0xb58bc[_0x5ea003(0x12a)](_0x5ea003(0x160))['to'](this,_0x5ea003(0x136),this,_0x5ea003(0x144),(_0x5ef7c4,_0xc478)=>!_0x5ef7c4&&!_0xc478?.[_0x5ea003(0x171)]()[_0x5ea003(0x13e)](_0x5ea003(0x148))),_0xb58bc;}}class Ds extends _0x37fe4b{constructor(_0x210134,_0xbab9d5){const _0x1cc7c6=_0x11b99b;super();const _0x4cd669=this[_0x1cc7c6(0x173)],_0x4d68ce=this[_0x1cc7c6(0x11a)]();this[_0x1cc7c6(0x15e)]({'tag':_0x1cc7c6(0x166),'attributes':{'class':['ck',_0x1cc7c6(0x13f)],'style':_0x4cd669['to'](_0x1cc7c6(0x112)),'id':_0x4cd669['to']('id')},'children':[{'tag':_0x1cc7c6(0x166),'attributes':{'class':[Yo]},'children':[{'text':_0x4cd669['to'](_0x1cc7c6(0x14c))}]},{'tag':_0x1cc7c6(0x166),'attributes':{'class':[qo]},'children':[{'tag':_0x1cc7c6(0x11d),'children':[{'text':_0xbab9d5[_0x1cc7c6(0x140)]}]}]},{'tag':_0x1cc7c6(0x166),'attributes':{'class':[zo]},'children':_0x4d68ce}]}),_0x4d68ce[_0x1cc7c6(0x165)](this[_0x1cc7c6(0x132)](_0x210134,_0x2bd8c1,_0x1cc7c6(0x14d),_0xbab9d5[_0x1cc7c6(0x169)][_0x1cc7c6(0x172)]?.[_0x1cc7c6(0x129)]??!0x1)),_0x4d68ce[_0x1cc7c6(0x165)](this[_0x1cc7c6(0x132)](_0x210134,_0x2068cb,_0x1cc7c6(0x170),_0xbab9d5[_0x1cc7c6(0x169)][_0x1cc7c6(0x15c)]?.[_0x1cc7c6(0x129)]??!0x1));}[_0x11b99b(0x132)](_0x49b6c2,_0x16f010,_0xa3c4bc,_0x293d22){const _0xa6237c=_0x11b99b,_0x428953=new _0xf1d851();_0x428953[_0xa6237c(0x130)]=_0x16f010;const _0x2de85e=new _0x594df7(_0x49b6c2);_0x2de85e[_0xa6237c(0x15e)]({'tag':_0xa6237c(0x11d),'children':[{'text':_0x3ee511(_0x49b6c2,_0xa3c4bc)+':\x20'}]});const _0x40db72=new _0x594df7(_0x49b6c2);return _0x40db72[_0xa6237c(0x15e)]({'tag':_0xa6237c(0x11d),'children':[{'text':_0x3ee511(_0x49b6c2,_0x293d22?_0xa6237c(0x152):_0xa6237c(0x14e))}]}),[_0x428953,_0x2de85e,_0x40db72];}}class Jo extends _0x594df7{constructor(_0x56a3fc){const _0x52061b=_0x11b99b;super(_0x56a3fc),this[_0x52061b(0x157)](_0x52061b(0x14c),void 0x0),this[_0x52061b(0x157)](_0x52061b(0x160),!0x0);const _0x4b46d4=this[_0x52061b(0x173)];this[_0x52061b(0x15e)]({'tag':_0x52061b(0x11d),'attributes':{'class':['ck',_0x52061b(0x123),_0x4b46d4['if'](_0x52061b(0x160),_0x52061b(0x137),_0x331e43=>!_0x331e43)]},'children':[{'text':_0x4b46d4['to'](_0x52061b(0x14c))}]});}}
23
+ const _0x2242ef=_0x1ff3;(function(_0x3d69b0,_0x39090d){const _0x48c78e=_0x1ff3,_0x30d515=_0x3d69b0();while(!![]){try{const _0x92d2f0=parseInt(_0x48c78e(0x1c9))/0x1*(-parseInt(_0x48c78e(0x1c0))/0x2)+parseInt(_0x48c78e(0x20a))/0x3+-parseInt(_0x48c78e(0x213))/0x4*(parseInt(_0x48c78e(0x214))/0x5)+parseInt(_0x48c78e(0x1d6))/0x6+parseInt(_0x48c78e(0x203))/0x7*(-parseInt(_0x48c78e(0x1e9))/0x8)+parseInt(_0x48c78e(0x1db))/0x9*(-parseInt(_0x48c78e(0x202))/0xa)+parseInt(_0x48c78e(0x1f8))/0xb*(parseInt(_0x48c78e(0x217))/0xc);if(_0x92d2f0===_0x39090d)break;else _0x30d515['push'](_0x30d515['shift']());}catch(_0x5887f8){_0x30d515['push'](_0x30d515['shift']());}}}(_0x4fae,0x76c43));import{Collection as _0x3e031e}from'ckeditor5/src/utils.js';import{IconAI as _0x35f4af,IconBulb as _0x29d7ee,IconWeb as _0x38e249}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x19b59e,ButtonLabelView as _0x23afc2,ButtonView as _0x55fa44,createDropdown as _0x37a2c,IconView as _0x36aa5a,UIModel as _0x125c51,View as _0x434618}from'ckeditor5/src/ui.js';import{getTranslation as _0x340a55}from'../../../aicore/utils/common-translations.js';const No=_0x2242ef(0x1eb),go=_0x2242ef(0x1fc),Ho=_0x2242ef(0x212),Mo=_0x2242ef(0x1fe),Lo=_0x2242ef(0x1c7),Do=_0x2242ef(0x210),Wo=_0x2242ef(0x1df),yo='n';function _0x4fae(){const _0x36e28e=['AI_CHAT_ENABLE_REASONING','name','27kbMwSl','AI_CHAT_DISABLE_REASONING','log','capabilities','ck-ai-chat-controls__model-selection__item-capabilities','addMany','length','clear','AI_CHAT_REASONING','set','Commands\x20are\x20not\x20implemented\x20yet.','label','ck-ai-chat-controls__model-name','execute','28568HCUhPV','_modelNameView','ck-ai-chat__prompt-capabilities','isVisible','ck-button__label','_getCapabilityParts','AI_CHAT_CAPABILITIES_YES','span','activeModelId','extendTemplate','_createModelSelectionDropdown','reasoningActive','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','fire','selectModel','22KFQeRD','_createReasoningButton','listenTo','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls-button','enableModelSelector','ck-ai-chat-controls__model-selection','ck-hidden','_createWebSearchButton','setReasoning','886220OBxsdG','259pcuOJz','tooltip','_webSearchButton','button','source','_commandsButton','AI_CHAT_COMMANDS','272859hLqium','setModelList','AI_CHAT_SEARCH_WEB','AI_CHAT_ENABLE_WEB_SEARCH','withText','toLowerCase','ck-ai-chat-controls__model-selection__item-description','modelSelectorVisible','ck-ai-chat-controls-button--commands','4gxYgzu','3683955xCbSBl','_createModelNameView','content','6875412EGOSpK','enabled','createCollection','startsWith','activeModelName','AI_CHAT_DISABLE_WEB_SEARCH','bind','modelSelectorEnabled','isOn','locale','setTemplate','text','div','toggleWebSearch','1878itQdZz','setModel','_createCommandsButton','agent','style','webSearch','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-name','add','112aNCQXg','toggleReasoning','buttonView','description','isEnabled','webSearchActive','setWebSearch','reasoning','_modelSelectionDropdown','_modelSelectionDropdownItems','disableModelSelector','_reasoningButton','menuitemradio','2937384bQehkq','model','bindTemplate'];_0x4fae=function(){return _0x36e28e;};return _0x4fae();}export class AIChatPromptCapabilitiesView extends _0x434618{[_0x2242ef(0x205)];[_0x2242ef(0x1d4)];[_0x2242ef(0x208)];[_0x2242ef(0x1d1)];[_0x2242ef(0x1d2)];[_0x2242ef(0x1ea)];constructor(_0x13f84d){const _0xdfb209=_0x2242ef;super(_0x13f84d),this[_0xdfb209(0x1e4)](_0xdfb209(0x1ce),!0x1),this[_0xdfb209(0x1e4)](_0xdfb209(0x1f4),!0x1),this[_0xdfb209(0x1e4)](_0xdfb209(0x211),!0x0),this[_0xdfb209(0x1e4)](_0xdfb209(0x21e),!0x0),this[_0xdfb209(0x1e4)](_0xdfb209(0x1f1),''),this[_0xdfb209(0x1e4)](_0xdfb209(0x21b),''),this[_0xdfb209(0x1d1)]=this[_0xdfb209(0x1f3)](),this[_0xdfb209(0x1ea)]=this[_0xdfb209(0x215)](),this[_0xdfb209(0x205)]=this[_0xdfb209(0x200)](),this[_0xdfb209(0x1d4)]=this[_0xdfb209(0x1f9)](),this[_0xdfb209(0x208)]=this[_0xdfb209(0x1c2)](),this[_0xdfb209(0x1d1)][_0xdfb209(0x1cb)][_0xdfb209(0x21d)](_0xdfb209(0x1ec))['to'](this,_0xdfb209(0x211),_0x36f61c=>_0x36f61c),this[_0xdfb209(0x1d1)][_0xdfb209(0x1cb)][_0xdfb209(0x21d)](_0xdfb209(0x204))['to'](this,_0xdfb209(0x21e),_0x29cabd=>_0x29cabd?this[_0xdfb209(0x1d1)][_0xdfb209(0x1cb)][_0xdfb209(0x1e6)]:_0x340a55(this[_0xdfb209(0x220)],_0xdfb209(0x1c6))),this[_0xdfb209(0x1d1)][_0xdfb209(0x21d)](_0xdfb209(0x1cd))['to'](this,_0xdfb209(0x21e),_0x4047c4=>_0x4047c4),this[_0xdfb209(0x205)][_0xdfb209(0x21d)](_0xdfb209(0x21f))['to'](this,_0xdfb209(0x1ce),_0xd14fb1=>_0xd14fb1),this[_0xdfb209(0x205)][_0xdfb209(0x21d)](_0xdfb209(0x20e))['to'](this,_0xdfb209(0x211),_0x2301c0=>!_0x2301c0),this[_0xdfb209(0x205)][_0xdfb209(0x21d)](_0xdfb209(0x204))['to'](this,_0xdfb209(0x1ce),_0x5ccd0e=>_0x340a55(this[_0xdfb209(0x220)],_0x5ccd0e?_0xdfb209(0x21c):_0xdfb209(0x20d))),this[_0xdfb209(0x1d4)][_0xdfb209(0x21d)](_0xdfb209(0x21f))['to'](this,_0xdfb209(0x1f4),_0x4d7676=>_0x4d7676),this[_0xdfb209(0x1d4)][_0xdfb209(0x21d)](_0xdfb209(0x20e))['to'](this,_0xdfb209(0x211),_0x582454=>!_0x582454),this[_0xdfb209(0x1d4)][_0xdfb209(0x21d)](_0xdfb209(0x204))['to'](this,_0xdfb209(0x1f4),_0x16b597=>_0x340a55(this[_0xdfb209(0x220)],_0x16b597?_0xdfb209(0x1dc):_0xdfb209(0x1d9))),this[_0xdfb209(0x221)]({'tag':_0xdfb209(0x223),'attributes':{'class':[No]},'children':[this[_0xdfb209(0x1d1)],this[_0xdfb209(0x1ea)],this[_0xdfb209(0x205)],this[_0xdfb209(0x1d4)],this[_0xdfb209(0x208)]]}),this[_0xdfb209(0x1d2)]=new _0x3e031e(),_0x19b59e(this[_0xdfb209(0x1d1)],this[_0xdfb209(0x1d2)]);}[_0x2242ef(0x20b)](_0x14ab35,_0x13ead2){const _0x492ad7=_0x2242ef;if(this[_0x492ad7(0x1e4)](_0x492ad7(0x211),!(_0x13ead2&&_0x14ab35[_0x492ad7(0x1e1)]<=0x1)),this[_0x492ad7(0x1d2)][_0x492ad7(0x1e2)](),_0x14ab35?.[_0x492ad7(0x1e1)])for(const _0x56db86 of _0x14ab35){const _0x3e0f22=new _0x125c51({'label':_0x56db86[_0x492ad7(0x1da)],'withText':!0x0,'role':_0x492ad7(0x1d5),'id':_0x56db86['id'],'model':_0x56db86});_0x3e0f22[_0x492ad7(0x21d)](_0x492ad7(0x21f))['to'](this,_0x492ad7(0x1f1),_0x59e3d8=>_0x59e3d8===_0x56db86['id']),this[_0x492ad7(0x1d2)][_0x492ad7(0x1c8)]({'type':_0x492ad7(0x206),'model':_0x3e0f22,'labelView':new Ms(this[_0x492ad7(0x220)],_0x56db86)});}}[_0x2242ef(0x1cf)](_0x572db0){const _0x85770b=_0x2242ef;this[_0x85770b(0x1e4)](_0x85770b(0x1ce),_0x572db0);}[_0x2242ef(0x201)](_0x4f7dee){const _0x2ae705=_0x2242ef;this[_0x2ae705(0x1e4)](_0x2ae705(0x1f4),_0x4f7dee);}[_0x2242ef(0x1c1)](_0x21718d){const _0x4e4385=_0x2242ef;if(!_0x21718d)return;this[_0x4e4385(0x1f1)]=_0x21718d['id'],this[_0x4e4385(0x21b)]=_0x21718d[_0x4e4385(0x1da)]||_0x21718d['id'],this[_0x4e4385(0x1d1)][_0x4e4385(0x1cb)][_0x4e4385(0x1e4)](_0x4e4385(0x1e6),_0x21718d[_0x4e4385(0x1da)]),this[_0x4e4385(0x1d1)][_0x4e4385(0x1cb)][_0x4e4385(0x1e4)](_0x4e4385(0x204),_0x21718d[_0x4e4385(0x1da)]);const _0x46d17f=_0x21718d[_0x4e4385(0x1de)][_0x4e4385(0x1c5)]?.[_0x4e4385(0x218)]??!0x1;this[_0x4e4385(0x1e4)](_0x4e4385(0x1ce),!0x1),this[_0x4e4385(0x205)][_0x4e4385(0x1e4)](_0x4e4385(0x21f),!0x1),this[_0x4e4385(0x205)][_0x4e4385(0x1e4)](_0x4e4385(0x1cd),_0x46d17f),this[_0x4e4385(0x205)][_0x4e4385(0x1e4)](_0x4e4385(0x1ec),_0x46d17f);const _0x90f404=_0x21718d[_0x4e4385(0x1de)][_0x4e4385(0x1d0)]?.[_0x4e4385(0x218)]??!0x1;this[_0x4e4385(0x1e4)](_0x4e4385(0x1f4),!0x1),this[_0x4e4385(0x1d4)][_0x4e4385(0x1e4)](_0x4e4385(0x21f),!0x1),this[_0x4e4385(0x1d4)][_0x4e4385(0x1e4)](_0x4e4385(0x1cd),_0x90f404),this[_0x4e4385(0x1d4)][_0x4e4385(0x1e4)](_0x4e4385(0x1ec),_0x90f404);}[_0x2242ef(0x1fd)](){const _0x437ea6=_0x2242ef;this[_0x437ea6(0x1e4)](_0x437ea6(0x21e),!0x0),this[_0x437ea6(0x1e4)](_0x437ea6(0x211),!0x0);}[_0x2242ef(0x1d3)](_0x43d6ea){const _0x48c0f4=_0x2242ef;this[_0x48c0f4(0x1e4)](_0x48c0f4(0x21e),!0x1),_0x43d6ea&&this[_0x48c0f4(0x1e4)](_0x48c0f4(0x211),!0x1);}[_0x2242ef(0x200)](){const _0x2c7e8a=_0x2242ef,_0x2be7f2=new _0x55fa44();return _0x2be7f2[_0x2c7e8a(0x1e4)]({'label':_0x340a55(this[_0x2c7e8a(0x220)],_0x2c7e8a(0x20c)),'icon':_0x38e249,'class':go,'isToggleable':!0x0,'tooltipPosition':yo}),_0x2be7f2['on'](_0x2c7e8a(0x1e8),()=>{const _0x3aba47=_0x2c7e8a;this[_0x3aba47(0x1f6)](_0x3aba47(0x1bf));}),_0x2be7f2;}[_0x2242ef(0x1f9)](){const _0x4008c9=_0x2242ef,_0x2d13a5=new _0x55fa44();return _0x2d13a5[_0x4008c9(0x1e4)]({'label':_0x340a55(this[_0x4008c9(0x220)],_0x4008c9(0x1e3)),'icon':_0x29d7ee,'class':go,'isToggleable':!0x0,'tooltipPosition':yo}),_0x2d13a5['on'](_0x4008c9(0x1e8),()=>{const _0x2fe8b8=_0x4008c9;this[_0x2fe8b8(0x1f6)](_0x2fe8b8(0x1ca));}),_0x2d13a5;}[_0x2242ef(0x1c2)](){const _0x5c6fd7=_0x2242ef,_0x2a70dc=new _0x55fa44();return _0x2a70dc[_0x5c6fd7(0x1e4)]({'label':_0x340a55(this[_0x5c6fd7(0x220)],_0x5c6fd7(0x209)),'icon':_0x35f4af,'withText':!0x0,'class':go,'isToggleable':!0x0,'tooltip':_0x340a55(this[_0x5c6fd7(0x220)],_0x5c6fd7(0x209)),'tooltipPosition':yo}),_0x2a70dc[_0x5c6fd7(0x1f2)]({'attributes':{'class':[Ho]}}),_0x2a70dc['on'](_0x5c6fd7(0x1e8),()=>{const _0x14b6b9=_0x5c6fd7;console[_0x14b6b9(0x1dd)](_0x14b6b9(0x1e5)),alert(_0x14b6b9(0x1e5));}),_0x2a70dc;}[_0x2242ef(0x1f3)](){const _0x5d7f17=_0x2242ef,_0x5d7673=_0x37a2c(this[_0x5d7f17(0x220)]);return _0x5d7673[_0x5d7f17(0x1e4)]({'panelPosition':'ne','class':[Mo]}),_0x5d7673[_0x5d7f17(0x1cb)][_0x5d7f17(0x1e4)]({'label':_0x340a55(this[_0x5d7f17(0x220)],_0x5d7f17(0x1f5)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':yo}),this[_0x5d7f17(0x1fa)](_0x5d7673,_0x5d7f17(0x1e8),_0x3206e2=>{const _0x4579d1=_0x5d7f17;this[_0x4579d1(0x1f6)](_0x4579d1(0x1f7),_0x3206e2[_0x4579d1(0x207)][_0x4579d1(0x1d7)]);}),_0x5d7673;}[_0x2242ef(0x215)](){const _0x362342=_0x2242ef,_0x1d427c=new Go(this[_0x362342(0x220)]);return _0x1d427c[_0x362342(0x21d)](_0x362342(0x222))['to'](this,_0x362342(0x21b),_0x53253b=>_0x53253b??''),_0x1d427c[_0x362342(0x21d)](_0x362342(0x1ec))['to'](this,_0x362342(0x211),this,_0x362342(0x21b),(_0x4b73b4,_0x1d1e6b)=>!_0x4b73b4&&!_0x1d1e6b?.[_0x362342(0x20f)]()[_0x362342(0x21a)](_0x362342(0x1c3))),_0x1d427c;}}function _0x1ff3(_0x9e5ffe,_0x558559){const _0x4fae49=_0x4fae();return _0x1ff3=function(_0x1ff363,_0x54f3d5){_0x1ff363=_0x1ff363-0x1bf;let _0x41a100=_0x4fae49[_0x1ff363];return _0x41a100;},_0x1ff3(_0x9e5ffe,_0x558559);}class Ms extends _0x23afc2{constructor(_0x2a05b8,_0x2f1647){const _0x3d9c41=_0x2242ef;super();const _0x376976=this[_0x3d9c41(0x1d8)],_0x5f3bf4=this[_0x3d9c41(0x219)]();this[_0x3d9c41(0x221)]({'tag':_0x3d9c41(0x223),'attributes':{'class':['ck',_0x3d9c41(0x1ed)],'style':_0x376976['to'](_0x3d9c41(0x1c4)),'id':_0x376976['to']('id')},'children':[{'tag':_0x3d9c41(0x223),'attributes':{'class':[Lo]},'children':[{'text':_0x376976['to'](_0x3d9c41(0x222))}]},{'tag':_0x3d9c41(0x223),'attributes':{'class':[Do]},'children':[{'tag':_0x3d9c41(0x1f0),'children':[{'text':_0x2f1647[_0x3d9c41(0x1cc)]}]}]},{'tag':_0x3d9c41(0x223),'attributes':{'class':[Wo]},'children':_0x5f3bf4}]}),_0x5f3bf4[_0x3d9c41(0x1e0)](this[_0x3d9c41(0x1ee)](_0x2a05b8,_0x38e249,_0x3d9c41(0x20c),_0x2f1647[_0x3d9c41(0x1de)][_0x3d9c41(0x1c5)]?.[_0x3d9c41(0x218)]??!0x1)),_0x5f3bf4[_0x3d9c41(0x1e0)](this[_0x3d9c41(0x1ee)](_0x2a05b8,_0x29d7ee,_0x3d9c41(0x1e3),_0x2f1647[_0x3d9c41(0x1de)][_0x3d9c41(0x1d0)]?.[_0x3d9c41(0x218)]??!0x1));}[_0x2242ef(0x1ee)](_0x57de56,_0x2aee58,_0x459592,_0x2d0080){const _0x416e44=_0x2242ef,_0x201fa5=new _0x36aa5a();_0x201fa5[_0x416e44(0x216)]=_0x2aee58;const _0x337ccf=new _0x434618(_0x57de56);_0x337ccf[_0x416e44(0x221)]({'tag':_0x416e44(0x1f0),'children':[{'text':_0x340a55(_0x57de56,_0x459592)+':\x20'}]});const _0x3c76ba=new _0x434618(_0x57de56);return _0x3c76ba[_0x416e44(0x221)]({'tag':_0x416e44(0x1f0),'children':[{'text':_0x340a55(_0x57de56,_0x2d0080?_0x416e44(0x1ef):_0x416e44(0x1fb))}]}),[_0x201fa5,_0x337ccf,_0x3c76ba];}}class Go extends _0x434618{constructor(_0x1b4323){const _0x1277ad=_0x2242ef;super(_0x1b4323),this[_0x1277ad(0x1e4)](_0x1277ad(0x222),void 0x0),this[_0x1277ad(0x1e4)](_0x1277ad(0x1ec),!0x0);const _0x4b4ac6=this[_0x1277ad(0x1d8)];this[_0x1277ad(0x221)]({'tag':_0x1277ad(0x1f0),'attributes':{'class':['ck',_0x1277ad(0x1e7),_0x4b4ac6['if'](_0x1277ad(0x1ec),_0x1277ad(0x1ff),_0xa1d8e5=>!_0xa1d8e5)]},'children':[{'text':_0x4b4ac6['to'](_0x1277ad(0x222))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ad0a1=_0x28d8;function _0x3378(){const _0x477f35=['_queryViewResizeObserver','MAX_ROWS','1519470OxqxyZ','ck-ai-chat__prompt-input','extendTemplate','setIsUploadInProgress','submitButtonView','fieldWrapperChildren','right','minRows','queryView','98WkHayP','_createSubmitButton','render','MIN_ROWS','update','bind','2UIQtrS','16472cwRWuo','899908hIcNCT','errorText','uiLanguageDirection','maxRows','AI_CHAT_PROMPT_EMPTY_ERROR','AI_CHAT_LABEL_SUBMIT','left','_addContextButtonView','isEnabled','472020zVmVrg','requestAnimationFrame','element','47269EBkrnc','3950660JQwEll','setPlaceholderText','placeholder','fire','focusableChildren','px\x20-\x20var(--ck-spacing-tiny))','target','value','calc(','submit','hasError','width','isEmpty','3QuzDtn','rtl','destroy','trim','_setUpAddContextButtonPositioning','2751678LVdzvT','add','locale','keystrokes','isUploadInProgress','fieldView','set','execute','ck-ai-chat__prompt-submit-button','enter','excludeScrollbarsAndBorders','style','reset','sendUserMessage','window'];_0x3378=function(){return _0x477f35;};return _0x3378();}(function(_0x804141,_0x5eb8f6){const _0x275d59=_0x28d8,_0xbb5bc1=_0x804141();while(!![]){try{const _0x13bfb6=parseInt(_0x275d59(0x1f2))/0x1*(parseInt(_0x275d59(0x1e4))/0x2)+parseInt(_0x275d59(0x200))/0x3*(-parseInt(_0x275d59(0x1e6))/0x4)+parseInt(_0x275d59(0x1ef))/0x5+parseInt(_0x275d59(0x1d5))/0x6+-parseInt(_0x275d59(0x1de))/0x7*(parseInt(_0x275d59(0x1e5))/0x8)+-parseInt(_0x275d59(0x1c4))/0x9+parseInt(_0x275d59(0x1f3))/0xa;if(_0x13bfb6===_0x5eb8f6)break;else _0xbb5bc1['push'](_0xbb5bc1['shift']());}catch(_0x44461d){_0xbb5bc1['push'](_0xbb5bc1['shift']());}}}(_0x3378,0x38427));import{IconSubmit as _0x3a5e83}from'ckeditor5/src/icons.js';function _0x28d8(_0x781126,_0x58abfd){const _0x337837=_0x3378();return _0x28d8=function(_0x28d8ec,_0x124741){_0x28d8ec=_0x28d8ec-0x1c2;let _0x21a2bd=_0x337837[_0x28d8ec];return _0x21a2bd;},_0x28d8(_0x781126,_0x58abfd);}import{ButtonView as _0x1e29fc,AutocompleteView as _0x37051f,createLabeledTextarea as _0x2b5c42}from'ckeditor5/src/ui.js';import{global as _0x57f72f,isVisible as _0x9ca3ec,Rect as _0x41f78d,ResizeObserver as _0x1be5d4}from'ckeditor5/src/utils.js';import{getTranslation as _0x45e46f}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x1331ef}from'./aichatpromptsuggestionslistview.js';import{escape as _0x44da4c}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x37051f{[_0x2ad0a1(0x1d9)];static [_0x2ad0a1(0x1e1)]=0x1;static [_0x2ad0a1(0x1d4)]=0xc;[_0x2ad0a1(0x1ed)];[_0x2ad0a1(0x1d3)];constructor(_0x317032,_0x5b5dab){const _0x54509c=_0x2ad0a1;super(_0x317032,{'queryView':{'label':'','creator':_0x2b5c42,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x1331ef(_0x317032),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x54509c(0x1ca)](_0x54509c(0x1ff),!0x0),this[_0x54509c(0x1ca)](_0x54509c(0x1c8),!0x1),this[_0x54509c(0x1ed)]=_0x5b5dab,this[_0x54509c(0x1d3)]=null,this[_0x54509c(0x1dd)][_0x54509c(0x1c9)][_0x54509c(0x1dc)]=AIChatPromptInputView[_0x54509c(0x1e1)],this[_0x54509c(0x1dd)][_0x54509c(0x1c9)][_0x54509c(0x1e9)]=AIChatPromptInputView[_0x54509c(0x1d4)],this[_0x54509c(0x1dd)][_0x54509c(0x1da)][_0x54509c(0x1c5)](this[_0x54509c(0x1ed)]),this[_0x54509c(0x1c3)](),this[_0x54509c(0x1d7)]({'attributes':{'class':['ck',_0x54509c(0x1d6)]}}),this[_0x54509c(0x1d9)]=this[_0x54509c(0x1df)](),this[_0x54509c(0x1d9)][_0x54509c(0x1e3)](_0x54509c(0x1ee))['to'](this,_0x54509c(0x1ff),this,_0x54509c(0x1c8),(_0x3a7396,_0x5a0ce0)=>!_0x3a7396&&!_0x5a0ce0),this[_0x54509c(0x1f7)][_0x54509c(0x1c5)](this[_0x54509c(0x1d9)]);}[_0x2ad0a1(0x1e0)](){const _0x1d83d0=_0x2ad0a1;super[_0x1d83d0(0x1e0)](),this[_0x1d83d0(0x1dd)][_0x1d83d0(0x1da)][_0x1d83d0(0x1c5)](this[_0x1d83d0(0x1d9)]),this[_0x1d83d0(0x1c7)][_0x1d83d0(0x1ca)](_0x1d83d0(0x1cd),(_0x36b889,_0x364a79)=>{const _0x136460=_0x1d83d0;this[_0x136460(0x1c8)]||this[_0x136460(0x1ff)]||_0x36b889[_0x136460(0x1f9)]==this[_0x136460(0x1dd)][_0x136460(0x1c9)][_0x136460(0x1f1)]&&(this[_0x136460(0x1fc)](),_0x364a79());}),this[_0x1d83d0(0x1dd)][_0x1d83d0(0x1c9)]['on'](_0x1d83d0(0x1e2),()=>{const _0x3786e5=_0x1d83d0;this[_0x3786e5(0x1ff)]=''===this[_0x3786e5(0x1dd)][_0x3786e5(0x1c9)][_0x3786e5(0x1f1)][_0x3786e5(0x1fa)]?.[_0x3786e5(0x1c2)]();});}[_0x2ad0a1(0x202)](){const _0x4c3218=_0x2ad0a1;super[_0x4c3218(0x202)](),this[_0x4c3218(0x1d3)]&&this[_0x4c3218(0x1d3)][_0x4c3218(0x202)]();}[_0x2ad0a1(0x1fc)](){const _0x16b2bd=_0x2ad0a1,_0x5d62e9=this[_0x16b2bd(0x1dd)][_0x16b2bd(0x1c9)][_0x16b2bd(0x1f1)][_0x16b2bd(0x1fa)]?.[_0x16b2bd(0x1c2)]();if(!_0x5d62e9)return this[_0x16b2bd(0x1dd)][_0x16b2bd(0x1e7)]=_0x45e46f(this[_0x16b2bd(0x1c6)],_0x16b2bd(0x1ea)),void(this[_0x16b2bd(0x1dd)][_0x16b2bd(0x1c9)][_0x16b2bd(0x1fd)]=!0x0);this[_0x16b2bd(0x1dd)][_0x16b2bd(0x1c9)][_0x16b2bd(0x1fd)]=!0x1;const _0x38a3ad=_0x44da4c(_0x5d62e9);this[_0x16b2bd(0x1f6)](_0x16b2bd(0x1d1),_0x38a3ad),this[_0x16b2bd(0x1dd)][_0x16b2bd(0x1c9)][_0x16b2bd(0x1d0)]();}[_0x2ad0a1(0x1f4)](_0x5dd261){const _0x1bcc44=_0x2ad0a1;this[_0x1bcc44(0x1dd)][_0x1bcc44(0x1c9)][_0x1bcc44(0x1ca)](_0x1bcc44(0x1f5),_0x5dd261);}[_0x2ad0a1(0x1df)](){const _0xb65f64=_0x2ad0a1,_0x1e625b=new _0x1e29fc(this[_0xb65f64(0x1c6)]);return _0x1e625b[_0xb65f64(0x1ca)]({'icon':_0x3a5e83,'label':_0x45e46f(this[_0xb65f64(0x1c6)],_0xb65f64(0x1eb)),'isVisible':!0x0,'tooltip':!0x0,'class':_0xb65f64(0x1cc),'isEnabled':!0x1}),_0x1e625b['on'](_0xb65f64(0x1cb),()=>{const _0x50dc3c=_0xb65f64;this[_0x50dc3c(0x1fc)]();}),_0x1e625b;}[_0x2ad0a1(0x1d8)](_0x13fafe){const _0x4802cf=_0x2ad0a1;this[_0x4802cf(0x1c8)]=_0x13fafe;}[_0x2ad0a1(0x1c3)](){const _0x2e464d=_0x2ad0a1,_0x51d59c=this[_0x2e464d(0x1c6)],_0x49cb65=()=>{const _0x33c42d=_0x2e464d;_0x57f72f[_0x33c42d(0x1d2)][_0x33c42d(0x1f0)](()=>{const _0x4ad7f7=_0x33c42d;if(_0x9ca3ec(this[_0x4ad7f7(0x1f1)])){const _0xa352a0=new _0x41f78d(this[_0x4ad7f7(0x1dd)][_0x4ad7f7(0x1c9)][_0x4ad7f7(0x1f1)]),_0x45ac85=new _0x41f78d(this[_0x4ad7f7(0x1ed)][_0x4ad7f7(0x1f1)]),_0x19c380=_0xa352a0[_0x4ad7f7(0x1fe)],_0x2b16a0=_0x4ad7f7(0x201)===_0x51d59c[_0x4ad7f7(0x1e8)]?_0x4ad7f7(0x1db):_0x4ad7f7(0x1ec);_0xa352a0[_0x4ad7f7(0x1ce)]();const _0x18a53f=_0x19c380-_0xa352a0[_0x4ad7f7(0x1fe)]+0x1;this[_0x4ad7f7(0x1ed)][_0x4ad7f7(0x1f1)][_0x4ad7f7(0x1cf)][_0x2b16a0]=_0x4ad7f7(0x1fb)+(_0x19c380-_0x45ac85[_0x4ad7f7(0x1fe)]-_0x18a53f)+_0x4ad7f7(0x1f8);}});};this[_0x2e464d(0x1dd)][_0x2e464d(0x1c9)]['on'](_0x2e464d(0x1e2),_0x49cb65),this['on'](_0x2e464d(0x1e0),()=>{const _0x5302d8=_0x2e464d;_0x49cb65(),this[_0x5302d8(0x1d3)]=new _0x1be5d4(this[_0x5302d8(0x1dd)][_0x5302d8(0x1c9)][_0x5302d8(0x1f1)],()=>{_0x49cb65();});});}}
23
+ const _0x156c48=_0x10bd;(function(_0x53212a,_0x4159c8){const _0x3dffd8=_0x10bd,_0x2dd649=_0x53212a();while(!![]){try{const _0x38613a=-parseInt(_0x3dffd8(0xe3))/0x1*(parseInt(_0x3dffd8(0x102))/0x2)+-parseInt(_0x3dffd8(0xdd))/0x3+-parseInt(_0x3dffd8(0xf9))/0x4+-parseInt(_0x3dffd8(0xf3))/0x5*(-parseInt(_0x3dffd8(0xd4))/0x6)+-parseInt(_0x3dffd8(0xff))/0x7+parseInt(_0x3dffd8(0xf6))/0x8*(parseInt(_0x3dffd8(0xdf))/0x9)+parseInt(_0x3dffd8(0xfa))/0xa*(parseInt(_0x3dffd8(0xfd))/0xb);if(_0x38613a===_0x4159c8)break;else _0x2dd649['push'](_0x2dd649['shift']());}catch(_0x2c47c0){_0x2dd649['push'](_0x2dd649['shift']());}}}(_0x4785,0xee14b));import{IconSubmit as _0x3fc4cd}from'ckeditor5/src/icons.js';function _0x4785(){const _0x161c88=['set','14602621GBvXbu','update','13510245HavcAY','errorText','bind','7298MWrNQq','MAX_ROWS','trim','maxRows','isEnabled','isEmpty','fieldWrapperChildren','submit','reset','right','keystrokes','AI_CHAT_LABEL_SUBMIT','_setUpAddContextButtonPositioning','ck-ai-chat__prompt-submit-button','_createSubmitButton','isUploadInProgress','setIsUploadInProgress','AI_CHAT_PROMPT_EMPTY_ERROR','extendTemplate','_addContextButtonView','1833702TZKdQa','requestAnimationFrame','execute','px\x20-\x20var(--ck-spacing-tiny))','fire','width','uiLanguageDirection','add','rtl','2961030TzIxkp','style','3072663NNBEve','left','enter','submitButtonView','88yeYmOw','fieldView','element','calc(','ck-ai-chat__prompt-input','destroy','sendUserMessage','setPlaceholderText','target','hasError','minRows','MIN_ROWS','locale','placeholder','value','_queryViewResizeObserver','30XMoaQA','render','queryView','32CHRpza','window','excludeScrollbarsAndBorders','1254020yxvupw','10uVgULA','focusableChildren'];_0x4785=function(){return _0x161c88;};return _0x4785();}import{ButtonView as _0x44194d,AutocompleteView as _0x597bff,createLabeledTextarea as _0x96a0b3}from'ckeditor5/src/ui.js';import{global as _0x1ae48a,isVisible as _0x511c13,Rect as _0x5c38bd,ResizeObserver as _0x22d46a}from'ckeditor5/src/utils.js';import{getTranslation as _0x398ab7}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x32f8a0}from'./aichatpromptsuggestionslistview.js';function _0x10bd(_0x2e5477,_0x3088c4){const _0x4785e1=_0x4785();return _0x10bd=function(_0x10bde1,_0x4e6540){_0x10bde1=_0x10bde1-0xc5;let _0x529abd=_0x4785e1[_0x10bde1];return _0x529abd;},_0x10bd(_0x2e5477,_0x3088c4);}import{escape as _0x1c053f}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x597bff{[_0x156c48(0xe2)];static [_0x156c48(0xee)]=0x1;static [_0x156c48(0x103)]=0xc;[_0x156c48(0xd3)];[_0x156c48(0xf2)];constructor(_0x2f9d0a,_0x25995a){const _0x4533f9=_0x156c48;super(_0x2f9d0a,{'queryView':{'label':'','creator':_0x96a0b3,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x32f8a0(_0x2f9d0a),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x4533f9(0xfc)](_0x4533f9(0xc5),!0x0),this[_0x4533f9(0xfc)](_0x4533f9(0xcf),!0x1),this[_0x4533f9(0xd3)]=_0x25995a,this[_0x4533f9(0xf2)]=null,this[_0x4533f9(0xf5)][_0x4533f9(0xe4)][_0x4533f9(0xed)]=AIChatPromptInputView[_0x4533f9(0xee)],this[_0x4533f9(0xf5)][_0x4533f9(0xe4)][_0x4533f9(0x105)]=AIChatPromptInputView[_0x4533f9(0x103)],this[_0x4533f9(0xf5)][_0x4533f9(0xc6)][_0x4533f9(0xdb)](this[_0x4533f9(0xd3)]),this[_0x4533f9(0xcc)](),this[_0x4533f9(0xd2)]({'attributes':{'class':['ck',_0x4533f9(0xe7)]}}),this[_0x4533f9(0xe2)]=this[_0x4533f9(0xce)](),this[_0x4533f9(0xe2)][_0x4533f9(0x101)](_0x4533f9(0x106))['to'](this,_0x4533f9(0xc5),this,_0x4533f9(0xcf),(_0x40cc27,_0x5c03ef)=>!_0x40cc27&&!_0x5c03ef),this[_0x4533f9(0xfb)][_0x4533f9(0xdb)](this[_0x4533f9(0xe2)]);}[_0x156c48(0xf4)](){const _0x27530f=_0x156c48;super[_0x27530f(0xf4)](),this[_0x27530f(0xf5)][_0x27530f(0xc6)][_0x27530f(0xdb)](this[_0x27530f(0xe2)]),this[_0x27530f(0xca)][_0x27530f(0xfc)](_0x27530f(0xe1),(_0x375e7c,_0x37b6a2)=>{const _0xf04eb9=_0x27530f;this[_0xf04eb9(0xcf)]||this[_0xf04eb9(0xc5)]||_0x375e7c[_0xf04eb9(0xeb)]==this[_0xf04eb9(0xf5)][_0xf04eb9(0xe4)][_0xf04eb9(0xe5)]&&(this[_0xf04eb9(0xc7)](),_0x37b6a2());}),this[_0x27530f(0xf5)][_0x27530f(0xe4)]['on'](_0x27530f(0xfe),()=>{const _0x29414a=_0x27530f;this[_0x29414a(0xc5)]=''===this[_0x29414a(0xf5)][_0x29414a(0xe4)][_0x29414a(0xe5)][_0x29414a(0xf1)]?.[_0x29414a(0x104)]();});}[_0x156c48(0xe8)](){const _0x52fe3c=_0x156c48;super[_0x52fe3c(0xe8)](),this[_0x52fe3c(0xf2)]&&this[_0x52fe3c(0xf2)][_0x52fe3c(0xe8)]();}[_0x156c48(0xc7)](){const _0xb3a437=_0x156c48,_0x11abed=this[_0xb3a437(0xf5)][_0xb3a437(0xe4)][_0xb3a437(0xe5)][_0xb3a437(0xf1)]?.[_0xb3a437(0x104)]();if(!_0x11abed)return this[_0xb3a437(0xf5)][_0xb3a437(0x100)]=_0x398ab7(this[_0xb3a437(0xef)],_0xb3a437(0xd1)),void(this[_0xb3a437(0xf5)][_0xb3a437(0xe4)][_0xb3a437(0xec)]=!0x0);this[_0xb3a437(0xf5)][_0xb3a437(0xe4)][_0xb3a437(0xec)]=!0x1;const _0x4d758e=_0x1c053f(_0x11abed);this[_0xb3a437(0xd8)](_0xb3a437(0xe9),_0x4d758e),this[_0xb3a437(0xf5)][_0xb3a437(0xe4)][_0xb3a437(0xc8)]();}[_0x156c48(0xea)](_0x4c2eb7){const _0x25a425=_0x156c48;this[_0x25a425(0xf5)][_0x25a425(0xe4)][_0x25a425(0xfc)](_0x25a425(0xf0),_0x4c2eb7);}[_0x156c48(0xce)](){const _0x223981=_0x156c48,_0x443ddd=new _0x44194d(this[_0x223981(0xef)]);return _0x443ddd[_0x223981(0xfc)]({'icon':_0x3fc4cd,'label':_0x398ab7(this[_0x223981(0xef)],_0x223981(0xcb)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x223981(0xcd),'isEnabled':!0x1}),_0x443ddd['on'](_0x223981(0xd6),()=>{const _0x5637aa=_0x223981;this[_0x5637aa(0xc7)]();}),_0x443ddd;}[_0x156c48(0xd0)](_0x28ccad){const _0x9a3112=_0x156c48;this[_0x9a3112(0xcf)]=_0x28ccad;}[_0x156c48(0xcc)](){const _0x23cb86=_0x156c48,_0x2e8ce0=this[_0x23cb86(0xef)],_0x5bc3ce=()=>{const _0x30fcc6=_0x23cb86;_0x1ae48a[_0x30fcc6(0xf7)][_0x30fcc6(0xd5)](()=>{const _0x417bef=_0x30fcc6;if(_0x511c13(this[_0x417bef(0xe5)])){const _0x388910=new _0x5c38bd(this[_0x417bef(0xf5)][_0x417bef(0xe4)][_0x417bef(0xe5)]),_0x494bd4=new _0x5c38bd(this[_0x417bef(0xd3)][_0x417bef(0xe5)]),_0x5c57bf=_0x388910[_0x417bef(0xd9)],_0x38db02=_0x417bef(0xdc)===_0x2e8ce0[_0x417bef(0xda)]?_0x417bef(0xc9):_0x417bef(0xe0);_0x388910[_0x417bef(0xf8)]();const _0x4ee558=_0x5c57bf-_0x388910[_0x417bef(0xd9)]+0x1;this[_0x417bef(0xd3)][_0x417bef(0xe5)][_0x417bef(0xde)][_0x38db02]=_0x417bef(0xe6)+(_0x5c57bf-_0x494bd4[_0x417bef(0xd9)]-_0x4ee558)+_0x417bef(0xd7);}});};this[_0x23cb86(0xf5)][_0x23cb86(0xe4)]['on'](_0x23cb86(0xfe),_0x5bc3ce),this['on'](_0x23cb86(0xf4),()=>{const _0x43a8f9=_0x23cb86;_0x5bc3ce(),this[_0x43a8f9(0xf2)]=new _0x22d46a(this[_0x43a8f9(0xf5)][_0x43a8f9(0xe4)][_0x43a8f9(0xe5)],()=>{_0x5bc3ce();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ed2f2=_0x1f07;(function(_0x334826,_0x51bf97){const _0x4f6920=_0x1f07,_0x2a1857=_0x334826();while(!![]){try{const _0x1f78ba=-parseInt(_0x4f6920(0x154))/0x1*(parseInt(_0x4f6920(0x167))/0x2)+-parseInt(_0x4f6920(0x179))/0x3+-parseInt(_0x4f6920(0x152))/0x4*(parseInt(_0x4f6920(0x175))/0x5)+-parseInt(_0x4f6920(0x160))/0x6+parseInt(_0x4f6920(0x15b))/0x7*(parseInt(_0x4f6920(0x177))/0x8)+-parseInt(_0x4f6920(0x178))/0x9*(-parseInt(_0x4f6920(0x16a))/0xa)+parseInt(_0x4f6920(0x17a))/0xb;if(_0x1f78ba===_0x51bf97)break;else _0x2a1857['push'](_0x2a1857['shift']());}catch(_0x4f59ad){_0x2a1857['push'](_0x2a1857['shift']());}}}(_0x11ad,0x5a605));import{HighlightedTextView as _0x4d31b8,IconView as _0x35d90a,ListItemView as _0xe51127}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x3ec342}from'es-toolkit/compat';function _0x11ad(){const _0x43df10=['_setupTemplate','bindTemplate','isVisible','execute','DOCUMENT','428IXBhLe','setTemplate','div','1397890WrKzdF','URL','resource','ck-ai-chat-resources__item','label','highlightText','getResourceIcon','type','_createTitleView','content','render','14655mDQGvY','FILE','4863344LAmmKw','9zqKdKW','767616PlOxrL','7043685GIJiPk','updateResourceState','_titleView','ck-ai-chat-resources__item-title','ck-hidden','356VeFYWh','_createIconView','347wLoWXz','TEXT','trim','ck-ai-chat-resources__item--in-context','_updateIcon','text','span','7nJtVVC','isInContext','_iconView','set','ck-ai-chat-resources__item__icon','2561232fFDFOb','extendTemplate'];_0x11ad=function(){return _0x43df10;};return _0x11ad();}import{AIContextItemType as _0x3610a4}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x5289ce,IconCheck as _0x213410,IconDocument as _0x14cbb5,IconDocumentOutline as _0x4b21b9,IconLink as _0x1f4907}from'@ckeditor/ckeditor5-icons';function _0x1f07(_0x4d5d8c,_0x4582b7){const _0x11adf3=_0x11ad();return _0x1f07=function(_0x1f07dc,_0x6bd1f8){_0x1f07dc=_0x1f07dc-0x152;let _0x2e75e3=_0x11adf3[_0x1f07dc];return _0x2e75e3;},_0x1f07(_0x4d5d8c,_0x4582b7);}const Tr=_0x5ed2f2(0x16d),Lr=_0x5ed2f2(0x157),qr=_0x5ed2f2(0x17d),zr=_0x5ed2f2(0x15f);export class AIChatResourceListItemView extends _0xe51127{[_0x5ed2f2(0x16c)];[_0x5ed2f2(0x17c)];[_0x5ed2f2(0x15d)];constructor(_0x23d935,_0xc6ed01){const _0x1b7e69=_0x5ed2f2;super(_0x23d935),this[_0x1b7e69(0x16c)]=_0xc6ed01,this[_0x1b7e69(0x15e)](_0x1b7e69(0x15c),!!_0xc6ed01[_0x1b7e69(0x15c)]),this[_0x1b7e69(0x17c)]=this[_0x1b7e69(0x172)](),this[_0x1b7e69(0x15d)]=this[_0x1b7e69(0x153)](),this[_0x1b7e69(0x162)]();}[_0x5ed2f2(0x174)](){const _0x13b6aa=_0x5ed2f2;super[_0x13b6aa(0x174)]();}[_0x5ed2f2(0x170)](_0x2837ac){const _0x3ba839=_0x5ed2f2;if(_0x2837ac[_0x3ba839(0x15c)])return _0x213410;switch(_0x2837ac[_0x3ba839(0x171)]){case _0x3610a4[_0x3ba839(0x166)]:return _0x14cbb5;case _0x3610a4[_0x3ba839(0x16b)]:return _0x1f4907;case _0x3610a4[_0x3ba839(0x176)]:case _0x3610a4[_0x3ba839(0x155)]:return _0x5289ce;default:return _0x4b21b9;}}[_0x5ed2f2(0x16f)](_0x3e086f){const _0x6b816f=_0x5ed2f2;if(!_0x3e086f||''===_0x3e086f[_0x6b816f(0x156)]())return void this[_0x6b816f(0x17c)][_0x6b816f(0x16f)](null);const _0x4b1a68=new RegExp(_0x3ec342(_0x3e086f),'gi');this[_0x6b816f(0x17c)][_0x6b816f(0x16f)](_0x4b1a68);}[_0x5ed2f2(0x17b)](_0x27723b){const _0x18824b=_0x5ed2f2;this[_0x18824b(0x16c)][_0x18824b(0x15c)]=_0x27723b,this[_0x18824b(0x15c)]=_0x27723b,this[_0x18824b(0x158)]();}[_0x5ed2f2(0x172)](){const _0x206705=_0x5ed2f2,_0x48cd5d=new _0x4d31b8();return _0x48cd5d[_0x206705(0x159)]=this[_0x206705(0x16c)][_0x206705(0x16e)],_0x48cd5d[_0x206705(0x161)]({'tag':_0x206705(0x15a),'attributes':{'class':[qr]}}),_0x48cd5d;}[_0x5ed2f2(0x153)](){const _0xe7ba3f=_0x5ed2f2,_0x55520b=new _0x35d90a();return _0x55520b[_0xe7ba3f(0x173)]=this[_0xe7ba3f(0x170)](this[_0xe7ba3f(0x16c)]),_0x55520b;}[_0x5ed2f2(0x162)](){const _0x449964=_0x5ed2f2,_0x12243d=this[_0x449964(0x163)];this[_0x449964(0x168)]({'tag':_0x449964(0x169),'attributes':{'class':[Tr,_0x12243d['if'](_0x449964(0x164),_0x449964(0x17e),_0x56645c=>!_0x56645c),_0x12243d['if'](_0x449964(0x15c),Lr)]},'children':[{'tag':_0x449964(0x169),'attributes':{'class':[zr]},'children':[this[_0x449964(0x15d)]]},this[_0x449964(0x17c)]],'on':{'click':_0x12243d['to'](_0x449964(0x165))}});}[_0x5ed2f2(0x158)](){const _0x4dc3bf=_0x5ed2f2;this[_0x4dc3bf(0x15d)][_0x4dc3bf(0x173)]=this[_0x4dc3bf(0x170)](this[_0x4dc3bf(0x16c)]);}}
23
+ const _0x2bcbf9=_0x1254;(function(_0x420b60,_0x4eaa19){const _0x510549=_0x1254,_0x11fbfa=_0x420b60();while(!![]){try{const _0xefc6e0=-parseInt(_0x510549(0x98))/0x1*(-parseInt(_0x510549(0xa4))/0x2)+-parseInt(_0x510549(0x95))/0x3*(-parseInt(_0x510549(0xb5))/0x4)+parseInt(_0x510549(0xb3))/0x5+-parseInt(_0x510549(0x97))/0x6*(-parseInt(_0x510549(0xae))/0x7)+-parseInt(_0x510549(0xac))/0x8+parseInt(_0x510549(0x96))/0x9+-parseInt(_0x510549(0x9d))/0xa;if(_0xefc6e0===_0x4eaa19)break;else _0x11fbfa['push'](_0x11fbfa['shift']());}catch(_0x337126){_0x11fbfa['push'](_0x11fbfa['shift']());}}}(_0x55c9,0x86596));import{HighlightedTextView as _0x29f162,IconView as _0x22ff3c,ListItemView as _0x1298e9}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x394b2d}from'es-toolkit/compat';import{AIContextItemType as _0x10a073}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x480905,IconCheck as _0x4f33ca,IconDocument as _0x11fdd7,IconDocumentOutline as _0x140786,IconLink as _0xbbf8e1}from'@ckeditor/ckeditor5-icons';function _0x55c9(){const _0x798174=['resource','FILE','_createTitleView','label','180975vmANky','ck-ai-chat-resources__item','148ZZALFt','text','set','type','setTemplate','extendTemplate','isInContext','_titleView','_setupTemplate','trim','content','execute','70365FamPQP','8657253NWpszk','49404tYAbtG','15993FfpCzN','highlightText','ck-ai-chat-resources__item--in-context','ck-ai-chat-resources__item-title','span','6308810CNwlHV','updateResourceState','bindTemplate','TEXT','DOCUMENT','_updateIcon','_iconView','4UTrtpG','getResourceIcon','render','_createIconView','URL','ck-ai-chat-resources__item__icon','ck-hidden','div','8566560EzLPjx','isVisible','301QpSEsY'];_0x55c9=function(){return _0x798174;};return _0x55c9();}const Rr=_0x2bcbf9(0xb4),Tr=_0x2bcbf9(0x9a),Lr=_0x2bcbf9(0x9b),qr=_0x2bcbf9(0xa9);function _0x1254(_0x5274bc,_0x51e9ea){const _0x55c925=_0x55c9();return _0x1254=function(_0x1254cd,_0x1a78b4){_0x1254cd=_0x1254cd-0x8d;let _0x4d511a=_0x55c925[_0x1254cd];return _0x4d511a;},_0x1254(_0x5274bc,_0x51e9ea);}export class AIChatResourceListItemView extends _0x1298e9{[_0x2bcbf9(0xaf)];[_0x2bcbf9(0x90)];[_0x2bcbf9(0xa3)];constructor(_0x5cdc00,_0x3827c2){const _0x2d08c9=_0x2bcbf9;super(_0x5cdc00),this[_0x2d08c9(0xaf)]=_0x3827c2,this[_0x2d08c9(0xb7)](_0x2d08c9(0x8f),!!_0x3827c2[_0x2d08c9(0x8f)]),this[_0x2d08c9(0x90)]=this[_0x2d08c9(0xb1)](),this[_0x2d08c9(0xa3)]=this[_0x2d08c9(0xa7)](),this[_0x2d08c9(0x91)]();}[_0x2bcbf9(0xa6)](){const _0x41cab8=_0x2bcbf9;super[_0x41cab8(0xa6)]();}[_0x2bcbf9(0xa5)](_0x1d95bf){const _0x4b55f4=_0x2bcbf9;if(_0x1d95bf[_0x4b55f4(0x8f)])return _0x4f33ca;switch(_0x1d95bf[_0x4b55f4(0xb8)]){case _0x10a073[_0x4b55f4(0xa1)]:return _0x11fdd7;case _0x10a073[_0x4b55f4(0xa8)]:return _0xbbf8e1;case _0x10a073[_0x4b55f4(0xb0)]:case _0x10a073[_0x4b55f4(0xa0)]:return _0x480905;default:return _0x140786;}}[_0x2bcbf9(0x99)](_0x16d4c0){const _0xd4b699=_0x2bcbf9;if(!_0x16d4c0||''===_0x16d4c0[_0xd4b699(0x92)]())return void this[_0xd4b699(0x90)][_0xd4b699(0x99)](null);const _0x5ca58c=new RegExp(_0x394b2d(_0x16d4c0),'gi');this[_0xd4b699(0x90)][_0xd4b699(0x99)](_0x5ca58c);}[_0x2bcbf9(0x9e)](_0x1cc93f){const _0x5e4b23=_0x2bcbf9;this[_0x5e4b23(0xaf)][_0x5e4b23(0x8f)]=_0x1cc93f,this[_0x5e4b23(0x8f)]=_0x1cc93f,this[_0x5e4b23(0xa2)]();}[_0x2bcbf9(0xb1)](){const _0x4d0d53=_0x2bcbf9,_0x284dd5=new _0x29f162();return _0x284dd5[_0x4d0d53(0xb6)]=this[_0x4d0d53(0xaf)][_0x4d0d53(0xb2)],_0x284dd5[_0x4d0d53(0x8e)]({'tag':_0x4d0d53(0x9c),'attributes':{'class':[Lr]}}),_0x284dd5;}[_0x2bcbf9(0xa7)](){const _0x2a044f=_0x2bcbf9,_0x30f388=new _0x22ff3c();return _0x30f388[_0x2a044f(0x93)]=this[_0x2a044f(0xa5)](this[_0x2a044f(0xaf)]),_0x30f388;}[_0x2bcbf9(0x91)](){const _0x190f99=_0x2bcbf9,_0x3a4844=this[_0x190f99(0x9f)];this[_0x190f99(0x8d)]({'tag':_0x190f99(0xab),'attributes':{'class':[Rr,_0x3a4844['if'](_0x190f99(0xad),_0x190f99(0xaa),_0x1ce861=>!_0x1ce861),_0x3a4844['if'](_0x190f99(0x8f),Tr)]},'children':[{'tag':_0x190f99(0xab),'attributes':{'class':[qr]},'children':[this[_0x190f99(0xa3)]]},this[_0x190f99(0x90)]],'on':{'click':_0x3a4844['to'](_0x190f99(0x94))}});}[_0x2bcbf9(0xa2)](){const _0x579458=_0x2bcbf9;this[_0x579458(0xa3)][_0x579458(0x93)]=this[_0x579458(0xa5)](this[_0x579458(0xaf)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x920647=_0x5945;(function(_0x170e23,_0x8b3c7b){const _0x2c03a3=_0x5945,_0x4beaa1=_0x170e23();while(!![]){try{const _0x1faf09=-parseInt(_0x2c03a3(0x136))/0x1+parseInt(_0x2c03a3(0x12e))/0x2*(parseInt(_0x2c03a3(0x157))/0x3)+-parseInt(_0x2c03a3(0x145))/0x4*(-parseInt(_0x2c03a3(0x14e))/0x5)+parseInt(_0x2c03a3(0x12a))/0x6+parseInt(_0x2c03a3(0x150))/0x7+-parseInt(_0x2c03a3(0x124))/0x8+-parseInt(_0x2c03a3(0x122))/0x9;if(_0x1faf09===_0x8b3c7b)break;else _0x4beaa1['push'](_0x4beaa1['shift']());}catch(_0x1ebf94){_0x4beaa1['push'](_0x4beaa1['shift']());}}}(_0x2e5e,0xaf128));function _0x2e5e(){const _0x32ac1a=['4fDeVju','_createBackButton','add','resource','_config','populateSourceResourceBalloon','updateResourceState','execute','get','5341495sWeAXJ','_setupSingleResourceBalloonClickOutsideHandler','7119168Gejkqe','showSourceResourcesBalloon','set','_locale','addResourceToContext','label','children','14757MltXru','pin','extendTemplate','getLimiterElement','1498869NSVHKt','source','6702160izqRry','onLoadSourceResources','getTargetElement','isAnyResourceBalloonVisible','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','_getResourcesViewFromBalloon','3034284oWXpKM','values','hide','_createBalloonResourcesView','18AgbDMs','_createSourceResourceBalloonPanel','clear','content','_bodyCollection','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','show','destroy','913901NtHpvU','_sourceResourceBalloons','setResources','ck-ai-chat-context-controls__source-balloon-panel','onBalloonClosed','closeSourceResourceBalloon','onResourceSelected','_createBalloonHeader','onBackToContext','delete','element','_addSourceResourceContent','isVisible','ck-button-icon\x20ck-button-back','loadSourceResources'];_0x2e5e=function(){return _0x32ac1a;};return _0x2e5e();}import{BalloonPanelView as _0x775815,ButtonView as _0x4eedf8,clickOutsideHandler as _0x4ef66e,FormHeaderView as _0x13432d}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x3ef443}from'@ckeditor/ckeditor5-icons';function _0x5945(_0x4575c8,_0x2b8d10){const _0x2e5e87=_0x2e5e();return _0x5945=function(_0x594501,_0x301d6e){_0x594501=_0x594501-0x121;let _0x3f2b46=_0x2e5e87[_0x594501];return _0x3f2b46;},_0x5945(_0x4575c8,_0x2b8d10);}import{getTranslation as _0x31602c}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x23a452}from'./aichatresourcesview.js';const Or=_0x920647(0x139),Hr=_0x920647(0x143),Fr=_0x920647(0x128);export class AIChatResourcesBalloonView{[_0x920647(0x137)]=new Map();[_0x920647(0x132)];[_0x920647(0x153)];[_0x920647(0x149)];constructor(_0x703f8e,_0x12b608,_0x28eb14){const _0x3ffc51=_0x920647;this[_0x3ffc51(0x153)]=_0x703f8e,this[_0x3ffc51(0x132)]=_0x12b608,this[_0x3ffc51(0x149)]=_0x28eb14;}[_0x920647(0x151)](_0xa82fdc){const _0x5440cf=_0x920647;let _0x143efe=this[_0x5440cf(0x137)][_0x5440cf(0x14d)](_0xa82fdc['id']);_0x143efe||(_0x143efe=this[_0x5440cf(0x12f)](),this[_0x5440cf(0x137)][_0x5440cf(0x152)](_0xa82fdc['id'],_0x143efe),this[_0x5440cf(0x14f)](_0x143efe)),this[_0x5440cf(0x141)](_0x143efe,_0xa82fdc),_0x143efe[_0x5440cf(0x134)]();const _0x26ea48=this[_0x5440cf(0x149)][_0x5440cf(0x126)]();_0x26ea48&&_0x143efe[_0x5440cf(0x158)]({'target':_0x26ea48,'limiter':this[_0x5440cf(0x149)][_0x5440cf(0x121)]()});}[_0x920647(0x14a)](_0x4431ff,_0x7cdbf8,_0x377f10){const _0x3a3114=_0x920647,_0x52a7d1=this[_0x3a3114(0x137)][_0x3a3114(0x14d)](_0x4431ff);if(!_0x52a7d1)return;const _0x5202dc=this[_0x3a3114(0x129)](_0x52a7d1);_0x5202dc&&_0x5202dc[_0x3a3114(0x138)](_0x7cdbf8,_0x377f10);}[_0x920647(0x13b)](_0x37c470){const _0x164b42=_0x920647,_0x3738b3=this[_0x164b42(0x137)][_0x164b42(0x14d)](_0x37c470);_0x3738b3&&requestAnimationFrame(()=>{const _0x2bc641=_0x164b42;_0x3738b3[_0x2bc641(0x12c)](),this[_0x2bc641(0x137)][_0x2bc641(0x13f)](_0x37c470),this[_0x2bc641(0x149)][_0x2bc641(0x13a)]();});}[_0x920647(0x127)](){const _0x2d6073=_0x920647;for(const _0x1b601f of this[_0x2d6073(0x137)][_0x2d6073(0x12b)]())if(_0x1b601f[_0x2d6073(0x142)])return!0x0;return!0x1;}[_0x920647(0x14b)](_0x5a08de,_0x2ec5f,_0x2dfa8f){const _0x2921e2=_0x920647,_0x3dec7d=this[_0x2921e2(0x137)][_0x2921e2(0x14d)](_0x5a08de);if(!_0x3dec7d||!_0x3dec7d[_0x2921e2(0x142)])return;const _0x45c343=this[_0x2921e2(0x149)][_0x2921e2(0x126)]();if(!_0x45c343)return;_0x3dec7d[_0x2921e2(0x158)]({'target':_0x45c343,'limiter':this[_0x2921e2(0x149)][_0x2921e2(0x121)]()});const _0x1b170b=this[_0x2921e2(0x129)](_0x3dec7d);_0x1b170b&&_0x1b170b[_0x2921e2(0x14b)](_0x2ec5f,_0x2dfa8f);}[_0x920647(0x135)](){const _0x2f6841=_0x920647;for(const _0x2dce3f of this[_0x2f6841(0x137)][_0x2f6841(0x12b)]())_0x2dce3f[_0x2f6841(0x135)]();this[_0x2f6841(0x137)][_0x2f6841(0x130)]();}[_0x920647(0x12f)](){const _0x2d732c=_0x920647,_0x4a1fe1=new _0x775815(this[_0x2d732c(0x153)]);return _0x4a1fe1[_0x2d732c(0x159)]({'attributes':{'class':Or}}),this[_0x2d732c(0x132)][_0x2d732c(0x147)](_0x4a1fe1),_0x4a1fe1;}[_0x920647(0x141)](_0x6aa8ae,_0x192cf3){const _0x6f8b44=_0x920647;_0x6aa8ae[_0x6f8b44(0x131)][_0x6f8b44(0x130)]();const _0x5a2d36=this[_0x6f8b44(0x13d)](_0x6aa8ae,_0x192cf3);_0x6aa8ae[_0x6f8b44(0x131)][_0x6f8b44(0x147)](_0x5a2d36);const _0x4d1988=this[_0x6f8b44(0x12d)](_0x192cf3);_0x6aa8ae[_0x6f8b44(0x131)][_0x6f8b44(0x147)](_0x4d1988);}[_0x920647(0x13d)](_0x313e56,_0x48935f){const _0xf0372=_0x920647,_0x5c7a40=this[_0xf0372(0x146)](_0x313e56),_0x432095=new _0x13432d(this[_0xf0372(0x153)],{'label':_0x48935f[_0xf0372(0x155)],'class':Fr});return _0x432095[_0xf0372(0x156)][_0xf0372(0x147)](_0x5c7a40,0x0),_0x432095;}[_0x920647(0x146)](_0x1b236e){const _0x1739d1=_0x920647,_0x4d3187=new _0x4eedf8(this[_0x1739d1(0x153)]);return _0x4d3187[_0x1739d1(0x152)]({'icon':_0x3ef443,'tooltip':_0x31602c(this[_0x1739d1(0x153)],_0x1739d1(0x133)),'tooltipPosition':'n','class':Hr}),_0x4d3187['on'](_0x1739d1(0x14c),()=>{const _0x13094e=_0x1739d1;_0x1b236e[_0x13094e(0x12c)](),this[_0x13094e(0x149)][_0x13094e(0x13e)]();}),_0x4d3187;}[_0x920647(0x12d)](_0x375cdf){const _0x2db1a1=_0x920647,_0x2f652f=new _0x23a452(this[_0x2db1a1(0x153)],_0x375cdf);return _0x2f652f['on'](_0x2db1a1(0x144),(_0x3b85dc,_0x1b1a2c)=>{const _0xf64eb6=_0x2db1a1;this[_0xf64eb6(0x149)][_0xf64eb6(0x125)](_0x1b1a2c);}),_0x2f652f['on'](_0x2db1a1(0x154),(_0x42de38,_0x279d8f)=>{const _0x45a966=_0x2db1a1;this[_0x45a966(0x149)][_0x45a966(0x13c)](_0x279d8f[_0x45a966(0x123)],_0x279d8f[_0x45a966(0x148)]),this[_0x45a966(0x13b)](_0x375cdf['id']);}),_0x2f652f;}[_0x920647(0x129)](_0x1659f0){const _0x3a3047=_0x920647,_0x13ebce=_0x1659f0[_0x3a3047(0x131)][_0x3a3047(0x14d)](0x1);return _0x13ebce instanceof _0x23a452?_0x13ebce:null;}[_0x920647(0x14f)](_0x5361ca){const _0x2e0b9c=_0x920647;_0x4ef66e({'emitter':_0x5361ca,'contextElements':[_0x5361ca[_0x2e0b9c(0x140)]],'callback':()=>{const _0x94d33c=_0x2e0b9c;_0x5361ca[_0x94d33c(0x12c)](),this[_0x94d33c(0x149)][_0x94d33c(0x13a)]();},'activator':()=>_0x5361ca[_0x2e0b9c(0x142)]});}}
23
+ const _0x5ef738=_0x14ab;(function(_0x276f41,_0x1b1587){const _0x1562ee=_0x14ab,_0x50b0fc=_0x276f41();while(!![]){try{const _0x33eb20=-parseInt(_0x1562ee(0x13f))/0x1*(-parseInt(_0x1562ee(0x156))/0x2)+parseInt(_0x1562ee(0x123))/0x3*(-parseInt(_0x1562ee(0x13b))/0x4)+-parseInt(_0x1562ee(0x154))/0x5*(parseInt(_0x1562ee(0x13c))/0x6)+parseInt(_0x1562ee(0x14a))/0x7*(-parseInt(_0x1562ee(0x155))/0x8)+parseInt(_0x1562ee(0x128))/0x9+parseInt(_0x1562ee(0x141))/0xa+parseInt(_0x1562ee(0x135))/0xb;if(_0x33eb20===_0x1b1587)break;else _0x50b0fc['push'](_0x50b0fc['shift']());}catch(_0x8a1ea3){_0x50b0fc['push'](_0x50b0fc['shift']());}}}(_0x1aa8,0xb05c0));function _0x14ab(_0x1044a6,_0x1e9bf5){const _0x1aa867=_0x1aa8();return _0x14ab=function(_0x14ab06,_0x3e7a39){_0x14ab06=_0x14ab06-0x121;let _0x376ce1=_0x1aa867[_0x14ab06];return _0x376ce1;},_0x14ab(_0x1044a6,_0x1e9bf5);}import{BalloonPanelView as _0x566c93,ButtonView as _0x4cb224,clickOutsideHandler as _0x255d9f,FormHeaderView as _0x3b4fb9}from'ckeditor5/src/ui.js';function _0x1aa8(){const _0x4aa5b1=['114DAJcyd','children','delete','2rphnxt','_bodyCollection','2147190Pqbvmh','pin','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','ck-button-icon\x20ck-button-back','element','_config','populateSourceResourceBalloon','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','onBackToContext','14TkisTU','_setupSingleResourceBalloonClickOutsideHandler','values','addResourceToContext','label','_createBalloonHeader','getTargetElement','_locale','extendTemplate','get','207185qIpUlw','5541176ffgqTC','412054NJxZhu','source','_addSourceResourceContent','show','add','isAnyResourceBalloonVisible','updateResourceState','showSourceResourcesBalloon','1859937nQRefD','_createSourceResourceBalloonPanel','onBalloonClosed','_createBalloonResourcesView','execute','2214414UNqPHW','_sourceResourceBalloons','clear','isVisible','onResourceSelected','ck-ai-chat-context-controls__source-balloon-panel','setResources','getLimiterElement','destroy','hide','_getResourcesViewFromBalloon','onLoadSourceResources','_createBackButton','29063375zquayr','content','set','closeSourceResourceBalloon','resource','loadSourceResources','4LhEwWE'];_0x1aa8=function(){return _0x4aa5b1;};return _0x1aa8();}import{IconPreviousArrow as _0x4bf1c9}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x3a65de}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x4cf05c}from'./aichatresourcesview.js';const Or=_0x5ef738(0x12d),Hr=_0x5ef738(0x144),Fr=_0x5ef738(0x143);export class AIChatResourcesBalloonView{[_0x5ef738(0x129)]=new Map();[_0x5ef738(0x140)];[_0x5ef738(0x151)];[_0x5ef738(0x146)];constructor(_0x48f02,_0x26da21,_0x583e8d){const _0x39ca8b=_0x5ef738;this[_0x39ca8b(0x151)]=_0x48f02,this[_0x39ca8b(0x140)]=_0x26da21,this[_0x39ca8b(0x146)]=_0x583e8d;}[_0x5ef738(0x122)](_0x5ddd59){const _0x993041=_0x5ef738;let _0x35afc5=this[_0x993041(0x129)][_0x993041(0x153)](_0x5ddd59['id']);_0x35afc5||(_0x35afc5=this[_0x993041(0x124)](),this[_0x993041(0x129)][_0x993041(0x137)](_0x5ddd59['id'],_0x35afc5),this[_0x993041(0x14b)](_0x35afc5)),this[_0x993041(0x158)](_0x35afc5,_0x5ddd59),_0x35afc5[_0x993041(0x159)]();const _0x443a33=this[_0x993041(0x146)][_0x993041(0x150)]();_0x443a33&&_0x35afc5[_0x993041(0x142)]({'target':_0x443a33,'limiter':this[_0x993041(0x146)][_0x993041(0x12f)]()});}[_0x5ef738(0x147)](_0x5cba20,_0x3dc0f2,_0x524fc5){const _0x236fbd=_0x5ef738,_0x49d6bd=this[_0x236fbd(0x129)][_0x236fbd(0x153)](_0x5cba20);if(!_0x49d6bd)return;const _0x1df4ee=this[_0x236fbd(0x132)](_0x49d6bd);_0x1df4ee&&_0x1df4ee[_0x236fbd(0x12e)](_0x3dc0f2,_0x524fc5);}[_0x5ef738(0x138)](_0xbae285){const _0x43606b=_0x5ef738,_0x5b8efe=this[_0x43606b(0x129)][_0x43606b(0x153)](_0xbae285);_0x5b8efe&&requestAnimationFrame(()=>{const _0x2734f1=_0x43606b;_0x5b8efe[_0x2734f1(0x131)](),this[_0x2734f1(0x129)][_0x2734f1(0x13e)](_0xbae285),this[_0x2734f1(0x146)][_0x2734f1(0x125)]();});}[_0x5ef738(0x15b)](){const _0x324a2e=_0x5ef738;for(const _0x178a1f of this[_0x324a2e(0x129)][_0x324a2e(0x14c)]())if(_0x178a1f[_0x324a2e(0x12b)])return!0x0;return!0x1;}[_0x5ef738(0x121)](_0x549842,_0x1d2bdf,_0x117cd7){const _0x19174f=_0x5ef738,_0x4af784=this[_0x19174f(0x129)][_0x19174f(0x153)](_0x549842);if(!_0x4af784||!_0x4af784[_0x19174f(0x12b)])return;const _0x1472eb=this[_0x19174f(0x146)][_0x19174f(0x150)]();if(!_0x1472eb)return;_0x4af784[_0x19174f(0x142)]({'target':_0x1472eb,'limiter':this[_0x19174f(0x146)][_0x19174f(0x12f)]()});const _0x3f2b1d=this[_0x19174f(0x132)](_0x4af784);_0x3f2b1d&&_0x3f2b1d[_0x19174f(0x121)](_0x1d2bdf,_0x117cd7);}[_0x5ef738(0x130)](){const _0x37c132=_0x5ef738;for(const _0x2686dd of this[_0x37c132(0x129)][_0x37c132(0x14c)]())_0x2686dd[_0x37c132(0x130)]();this[_0x37c132(0x129)][_0x37c132(0x12a)]();}[_0x5ef738(0x124)](){const _0x53f9cb=_0x5ef738,_0x3504a1=new _0x566c93(this[_0x53f9cb(0x151)]);return _0x3504a1[_0x53f9cb(0x152)]({'attributes':{'class':Or}}),this[_0x53f9cb(0x140)][_0x53f9cb(0x15a)](_0x3504a1),_0x3504a1;}[_0x5ef738(0x158)](_0x5da35b,_0x153495){const _0x26e167=_0x5ef738;_0x5da35b[_0x26e167(0x136)][_0x26e167(0x12a)]();const _0x4e5064=this[_0x26e167(0x14f)](_0x5da35b,_0x153495);_0x5da35b[_0x26e167(0x136)][_0x26e167(0x15a)](_0x4e5064);const _0x5087bd=this[_0x26e167(0x126)](_0x153495);_0x5da35b[_0x26e167(0x136)][_0x26e167(0x15a)](_0x5087bd);}[_0x5ef738(0x14f)](_0x1a1f62,_0x23b646){const _0xd280da=_0x5ef738,_0x95891d=this[_0xd280da(0x134)](_0x1a1f62),_0x3f733a=new _0x3b4fb9(this[_0xd280da(0x151)],{'label':_0x23b646[_0xd280da(0x14e)],'class':Fr});return _0x3f733a[_0xd280da(0x13d)][_0xd280da(0x15a)](_0x95891d,0x0),_0x3f733a;}[_0x5ef738(0x134)](_0x56f053){const _0x2e8c7e=_0x5ef738,_0x1434db=new _0x4cb224(this[_0x2e8c7e(0x151)]);return _0x1434db[_0x2e8c7e(0x137)]({'icon':_0x4bf1c9,'tooltip':_0x3a65de(this[_0x2e8c7e(0x151)],_0x2e8c7e(0x148)),'tooltipPosition':'n','class':Hr}),_0x1434db['on'](_0x2e8c7e(0x127),()=>{const _0xd3d011=_0x2e8c7e;_0x56f053[_0xd3d011(0x131)](),this[_0xd3d011(0x146)][_0xd3d011(0x149)]();}),_0x1434db;}[_0x5ef738(0x126)](_0x4b34ff){const _0x23ea45=_0x5ef738,_0xf948b5=new _0x4cf05c(this[_0x23ea45(0x151)],_0x4b34ff);return _0xf948b5['on'](_0x23ea45(0x13a),(_0x54b1b5,_0x449bf6)=>{const _0x33ed76=_0x23ea45;this[_0x33ed76(0x146)][_0x33ed76(0x133)](_0x449bf6);}),_0xf948b5['on'](_0x23ea45(0x14d),(_0x522ed,_0x1ab26a)=>{const _0x6a4cba=_0x23ea45;this[_0x6a4cba(0x146)][_0x6a4cba(0x12c)](_0x1ab26a[_0x6a4cba(0x157)],_0x1ab26a[_0x6a4cba(0x139)]),this[_0x6a4cba(0x138)](_0x4b34ff['id']);}),_0xf948b5;}[_0x5ef738(0x132)](_0x178894){const _0x3186ae=_0x5ef738,_0x4608d3=_0x178894[_0x3186ae(0x136)][_0x3186ae(0x153)](0x1);return _0x4608d3 instanceof _0x4cf05c?_0x4608d3:null;}[_0x5ef738(0x14b)](_0xbf7b11){const _0x39003a=_0x5ef738;_0x255d9f({'emitter':_0xbf7b11,'contextElements':[_0xbf7b11[_0x39003a(0x145)]],'callback':()=>{const _0x2ab3a7=_0x39003a;_0xbf7b11[_0x2ab3a7(0x131)](),this[_0x2ab3a7(0x146)][_0x2ab3a7(0x125)]();},'activator':()=>_0xbf7b11[_0x39003a(0x12b)]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x3c3833,IconView as _0x283ae5,LabeledFieldView as _0x64018a,createLabeledInputText as _0x3256ec}from'ckeditor5/src/ui.js';import{IconLoupe as _0x319de6,IconCancel as _0xd05c94}from'ckeditor5/src/icons.js';import{getTranslation as _0x40a128}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x64018a{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0xc53a03){const t=_0xc53a03['t'],_0x5909f3={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x3256ec,'label':_0x40a128(_0xc53a03,'AI_CHAT_SEARCH_RESOURCES')};super(_0xc53a03,_0x5909f3['creator']),this['label']=_0x5909f3['label'],this['_viewConfig']=_0x5909f3,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0xc53a03,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x4ab01b){this['fire']('search',_0x4ab01b);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x283ae5(),this['iconView']['content']=_0x319de6,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x3a6d4f,t){this['resetButtonView']=new _0x3c3833(_0x3a6d4f),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0xd05c94,'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',_0x3f9766=>!_0x3f9766),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 _0x3a9028,IconView as _0x4e47f1,LabeledFieldView as th,createLabeledInputText as _0x261473}from'ckeditor5/src/ui.js';import{IconLoupe as _0x57bb8d,IconCancel as _0x57539e}from'ckeditor5/src/icons.js';import{getTranslation as _0x41298a}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends th{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x556236){const t=_0x556236['t'],_0x4c9d66={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x261473,'label':_0x41298a(_0x556236,'AI_CHAT_SEARCH_RESOURCES')};super(_0x556236,_0x4c9d66['creator']),this['label']=_0x4c9d66['label'],this['_viewConfig']=_0x4c9d66,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x556236,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x439b9e){this['fire']('search',_0x439b9e);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x4e47f1(),this['iconView']['content']=_0x57bb8d,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x59d72f,t){this['resetButtonView']=new _0x3a9028(_0x59d72f),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x57539e,'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',_0x340b52=>!_0x340b52),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19ad07=_0xcde3;(function(_0x294d69,_0x241dd2){const _0x4b5bc7=_0xcde3,_0x2e640d=_0x294d69();while(!![]){try{const _0x41d058=parseInt(_0x4b5bc7(0x8b))/0x1+-parseInt(_0x4b5bc7(0x8f))/0x2+parseInt(_0x4b5bc7(0x89))/0x3*(-parseInt(_0x4b5bc7(0x98))/0x4)+-parseInt(_0x4b5bc7(0x96))/0x5*(parseInt(_0x4b5bc7(0x7b))/0x6)+parseInt(_0x4b5bc7(0x92))/0x7*(-parseInt(_0x4b5bc7(0x86))/0x8)+parseInt(_0x4b5bc7(0x9b))/0x9*(-parseInt(_0x4b5bc7(0x81))/0xa)+-parseInt(_0x4b5bc7(0x90))/0xb*(-parseInt(_0x4b5bc7(0x84))/0xc);if(_0x41d058===_0x241dd2)break;else _0x2e640d['push'](_0x2e640d['shift']());}catch(_0x380ac6){_0x2e640d['push'](_0x2e640d['shift']());}}}(_0x73a1,0xd77cd));import{View as _0x350989,ViewCollection as _0x5ec1ac}from'ckeditor5/src/ui.js';import{uid as _0x183448}from'ckeditor5/src/utils.js';function _0x73a1(){const _0x5153b3=['delegate','setResources','_searchView','children','228YyvGEv','highlightText','extendTemplate','loadSourceResources','_createSearchSection','loadResources','15190dHREEu','ck\x20ck-search','_source','1332OpurAv','setTemplate','2945872pQHfus','useDefaultFiltering','div','30897ogUvlu','_skeletonLoader','1747353SZOYki','locale','_createResourcesListView','_latestLoadResourcesUid','3251108IlqTgy','364111CjATuK','render','7TVgNYi','ck-hidden','_resourcesListView','_createSkeletonView','110815BqGTTy','_createSearchView','544dauyWa','bindTemplate','set','1791XWwhxb','updateResourceState','isLoading','fire','getQuery','addResourceToContext','aiChatResources','search','ck-ai-chat-resources'];_0x73a1=function(){return _0x5153b3;};return _0x73a1();}function _0xcde3(_0xb7f163,_0x58f70b){const _0x73a1a9=_0x73a1();return _0xcde3=function(_0xcde398,_0x361e51){_0xcde398=_0xcde398-0x7a;let _0x2384d9=_0x73a1a9[_0xcde398];return _0x2384d9;},_0xcde3(_0xb7f163,_0x58f70b);}import{AIChatContextResourcesListView as _0x3e30c5}from'./aichatresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x555b0f}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x4b4ec8,SKELETON_DEFINITIONS as _0x23b4ad}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x350989{[_0x19ad07(0xa6)];[_0x19ad07(0x94)];[_0x19ad07(0x8a)];[_0x19ad07(0x83)];[_0x19ad07(0x7a)];[_0x19ad07(0x8e)]=null;constructor(_0x4ac293,_0x2651f7){const _0x41d111=_0x19ad07;super(_0x4ac293),this[_0x41d111(0x83)]=_0x2651f7,this[_0x41d111(0x9a)](_0x41d111(0x9d),!0x0),this[_0x41d111(0xa6)]=this[_0x41d111(0x97)]();const _0x1c3aad=this[_0x41d111(0x7f)]();this[_0x41d111(0x94)]=this[_0x41d111(0x8d)](),this[_0x41d111(0x8a)]=this[_0x41d111(0x95)](),this[_0x41d111(0x7a)]=new _0x5ec1ac([_0x1c3aad,this[_0x41d111(0x8a)],this[_0x41d111(0x94)]]),this[_0x41d111(0x85)]({'tag':_0x41d111(0x88),'attributes':{'class':_0x41d111(0xa3)},'children':this[_0x41d111(0x7a)]});}[_0x19ad07(0x97)](){const _0x2c89b3=_0x19ad07;return new _0x555b0f(this[_0x2c89b3(0x8c)]);}[_0x19ad07(0x7f)](){const _0x105cbf=_0x19ad07,_0x3ac13c=new _0x350989(this[_0x105cbf(0x8c)]);return _0x3ac13c[_0x105cbf(0x85)]({'tag':_0x105cbf(0x88),'attributes':{'class':_0x105cbf(0x82)},'children':[this[_0x105cbf(0xa6)]]}),this[_0x105cbf(0xa6)]['on'](_0x105cbf(0xa2),(_0x5966cc,_0x19057f)=>{const _0x403992=_0x105cbf;this[_0x403992(0x80)](_0x19057f),this[_0x403992(0x83)][_0x403992(0x87)]&&this[_0x403992(0x94)][_0x403992(0x7c)](_0x19057f);}),_0x3ac13c;}[_0x19ad07(0x8d)](){const _0x383216=_0x19ad07,_0x28012a=new _0x3e30c5(this[_0x383216(0x8c)],this[_0x383216(0x83)]);return _0x28012a[_0x383216(0xa4)](_0x383216(0xa0))['to'](this),_0x28012a[_0x383216(0x7d)]({'attributes':{'class':this[_0x383216(0x99)]['if'](_0x383216(0x9d),_0x383216(0x93))}}),_0x28012a;}[_0x19ad07(0x95)](){const _0x1f3bfe=_0x19ad07,_0x5efe16=new _0x4b4ec8(this[_0x1f3bfe(0x8c)],_0x23b4ad[_0x1f3bfe(0xa1)]);return _0x5efe16[_0x1f3bfe(0x7d)]({'attributes':{'class':[this[_0x1f3bfe(0x99)]['if'](_0x1f3bfe(0x9d),_0x1f3bfe(0x93),_0x83256e=>!_0x83256e)]}}),_0x5efe16;}[_0x19ad07(0x91)](){const _0x119fd7=_0x19ad07;super[_0x119fd7(0x91)](),this[_0x119fd7(0x80)]('');}[_0x19ad07(0x80)](_0x12c9cb){const _0x31bdb0=_0x19ad07,_0x1beadf=_0x183448();this[_0x31bdb0(0x8e)]=_0x1beadf,this[_0x31bdb0(0x9e)](_0x31bdb0(0x7e),{'sourceId':this[_0x31bdb0(0x83)]['id'],'query':_0x12c9cb,'uid':_0x1beadf}),this[_0x31bdb0(0x9d)]=!0x0;}[_0x19ad07(0xa5)](_0x4ce962,_0x1ab2db){const _0x57a2ef=_0x19ad07;if(_0x1ab2db&&_0x1ab2db!==this[_0x57a2ef(0x8e)])return;const _0x568b00=this[_0x57a2ef(0x83)][_0x57a2ef(0x87)]?this[_0x57a2ef(0xa6)][_0x57a2ef(0x9f)]():'';this[_0x57a2ef(0x94)][_0x57a2ef(0xa5)](_0x4ce962,_0x568b00),requestAnimationFrame(()=>{const _0x2f31ee=_0x57a2ef;this[_0x2f31ee(0x9d)]=!0x1;});}[_0x19ad07(0x9c)](_0x45c79a,_0x530c13){const _0x388c6e=_0x19ad07;this[_0x388c6e(0x94)][_0x388c6e(0x9c)](_0x45c79a,_0x530c13);}}
23
+ const _0x28b1e3=_0x1045;(function(_0x4c0b56,_0x2aae38){const _0x1545dc=_0x1045,_0x327080=_0x4c0b56();while(!![]){try{const _0x4fe0c0=-parseInt(_0x1545dc(0x96))/0x1+-parseInt(_0x1545dc(0xad))/0x2*(parseInt(_0x1545dc(0x9a))/0x3)+-parseInt(_0x1545dc(0xb4))/0x4*(-parseInt(_0x1545dc(0x9c))/0x5)+-parseInt(_0x1545dc(0xa2))/0x6*(-parseInt(_0x1545dc(0xae))/0x7)+parseInt(_0x1545dc(0xb7))/0x8+parseInt(_0x1545dc(0x9f))/0x9*(parseInt(_0x1545dc(0xbb))/0xa)+parseInt(_0x1545dc(0xaa))/0xb*(-parseInt(_0x1545dc(0xbe))/0xc);if(_0x4fe0c0===_0x2aae38)break;else _0x327080['push'](_0x327080['shift']());}catch(_0x3e6e20){_0x327080['push'](_0x327080['shift']());}}}(_0x59a9,0x7dd6b));import{View as _0x1bb072,ViewCollection as _0x32264a}from'ckeditor5/src/ui.js';function _0x59a9(){const _0xf489de=['ck\x20ck-search','_skeletonLoader','setTemplate','highlightText','loadResources','14499067jBeCoA','extendTemplate','_resourcesListView','2fkrsxQ','7awpVEj','_searchView','_createSearchView','locale','_createResourcesListView','isLoading','4BHPjHB','useDefaultFiltering','fire','8046896LxKThQ','getQuery','_createSearchSection','addResourceToContext','6700cromCq','aiChatResources','children','12sgYaxb','_latestLoadResourcesUid','bindTemplate','render','search','501953AjZQPx','div','_source','updateResourceState','1134579YGXkoh','setResources','446005CEYGYN','loadSourceResources','_createSkeletonView','10089WXNWwG','ck-ai-chat-resources','set','5205270HknECn','delegate','ck-hidden'];_0x59a9=function(){return _0xf489de;};return _0x59a9();}import{uid as _0x1b908c}from'ckeditor5/src/utils.js';function _0x1045(_0x377b4b,_0x39c0d6){const _0x59a989=_0x59a9();return _0x1045=function(_0x104524,_0x22a6a5){_0x104524=_0x104524-0x92;let _0x41d00b=_0x59a989[_0x104524];return _0x41d00b;},_0x1045(_0x377b4b,_0x39c0d6);}import{AIChatContextResourcesListView as _0x4bf987}from'./aichatresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x537083}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x554251,SKELETON_DEFINITIONS as _0x4885fb}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x1bb072{[_0x28b1e3(0xaf)];[_0x28b1e3(0xac)];[_0x28b1e3(0xa6)];[_0x28b1e3(0x98)];[_0x28b1e3(0xbd)];[_0x28b1e3(0x92)]=null;constructor(_0x392afd,_0x44329a){const _0x2a954d=_0x28b1e3;super(_0x392afd),this[_0x2a954d(0x98)]=_0x44329a,this[_0x2a954d(0xa1)](_0x2a954d(0xb3),!0x0),this[_0x2a954d(0xaf)]=this[_0x2a954d(0xb0)]();const _0x5d8145=this[_0x2a954d(0xb9)]();this[_0x2a954d(0xac)]=this[_0x2a954d(0xb2)](),this[_0x2a954d(0xa6)]=this[_0x2a954d(0x9e)](),this[_0x2a954d(0xbd)]=new _0x32264a([_0x5d8145,this[_0x2a954d(0xa6)],this[_0x2a954d(0xac)]]),this[_0x2a954d(0xa7)]({'tag':_0x2a954d(0x97),'attributes':{'class':_0x2a954d(0xa0)},'children':this[_0x2a954d(0xbd)]});}[_0x28b1e3(0xb0)](){const _0x3ec0ab=_0x28b1e3;return new _0x537083(this[_0x3ec0ab(0xb1)]);}[_0x28b1e3(0xb9)](){const _0x461a8e=_0x28b1e3,_0x2a4e82=new _0x1bb072(this[_0x461a8e(0xb1)]);return _0x2a4e82[_0x461a8e(0xa7)]({'tag':_0x461a8e(0x97),'attributes':{'class':_0x461a8e(0xa5)},'children':[this[_0x461a8e(0xaf)]]}),this[_0x461a8e(0xaf)]['on'](_0x461a8e(0x95),(_0x51d85c,_0x2e3247)=>{const _0x168ca9=_0x461a8e;this[_0x168ca9(0xa9)](_0x2e3247),this[_0x168ca9(0x98)][_0x168ca9(0xb5)]&&this[_0x168ca9(0xac)][_0x168ca9(0xa8)](_0x2e3247);}),_0x2a4e82;}[_0x28b1e3(0xb2)](){const _0x161eae=_0x28b1e3,_0x3f74b7=new _0x4bf987(this[_0x161eae(0xb1)],this[_0x161eae(0x98)]);return _0x3f74b7[_0x161eae(0xa3)](_0x161eae(0xba))['to'](this),_0x3f74b7[_0x161eae(0xab)]({'attributes':{'class':this[_0x161eae(0x93)]['if'](_0x161eae(0xb3),_0x161eae(0xa4))}}),_0x3f74b7;}[_0x28b1e3(0x9e)](){const _0x2c4d74=_0x28b1e3,_0x554325=new _0x554251(this[_0x2c4d74(0xb1)],_0x4885fb[_0x2c4d74(0xbc)]);return _0x554325[_0x2c4d74(0xab)]({'attributes':{'class':[this[_0x2c4d74(0x93)]['if'](_0x2c4d74(0xb3),_0x2c4d74(0xa4),_0x1721a2=>!_0x1721a2)]}}),_0x554325;}[_0x28b1e3(0x94)](){const _0xf4b31c=_0x28b1e3;super[_0xf4b31c(0x94)](),this[_0xf4b31c(0xa9)]('');}[_0x28b1e3(0xa9)](_0x2dcb81){const _0x4d7d49=_0x28b1e3,_0x34d8ea=_0x1b908c();this[_0x4d7d49(0x92)]=_0x34d8ea,this[_0x4d7d49(0xb6)](_0x4d7d49(0x9d),{'sourceId':this[_0x4d7d49(0x98)]['id'],'query':_0x2dcb81,'uid':_0x34d8ea}),this[_0x4d7d49(0xb3)]=!0x0;}[_0x28b1e3(0x9b)](_0x2df47c,_0x25384a){const _0x34523e=_0x28b1e3;if(_0x25384a&&_0x25384a!==this[_0x34523e(0x92)])return;const _0x4bf74a=this[_0x34523e(0x98)][_0x34523e(0xb5)]?this[_0x34523e(0xaf)][_0x34523e(0xb8)]():'';this[_0x34523e(0xac)][_0x34523e(0x9b)](_0x2df47c,_0x4bf74a),requestAnimationFrame(()=>{const _0x426bd3=_0x34523e;this[_0x426bd3(0xb3)]=!0x1;});}[_0x28b1e3(0x99)](_0x1111aa,_0x424a2e){const _0x5212f9=_0x28b1e3;this[_0x5212f9(0xac)][_0x5212f9(0x99)](_0x1111aa,_0x424a2e);}}