@ckeditor/ckeditor5-ai 47.7.3-alpha.0 → 47.7.3

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 (78) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  8. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  9. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  10. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  11. package/src/aiassistant/ui/form/aiformview.js +1 -1
  12. package/src/aichat/aichat.js +1 -1
  13. package/src/aichat/aichatballoon.js +1 -1
  14. package/src/aichat/aichatcontroller.js +1 -1
  15. package/src/aichat/aichatui.js +1 -1
  16. package/src/aichat/model/aichatcontext.js +1 -1
  17. package/src/aichat/model/aichatconversation.js +1 -1
  18. package/src/aichat/model/aichatinteraction.js +1 -1
  19. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  20. package/src/aichat/ui/aichatfeedview.js +1 -1
  21. package/src/aichat/ui/aichatheaderview.js +1 -1
  22. package/src/aichat/ui/aichatview.js +1 -1
  23. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  24. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  25. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  26. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  27. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  28. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  29. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  30. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  31. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  32. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  33. package/src/aichat/utils/eventnames.js +1 -1
  34. package/src/aichathistory/aichathistory.js +1 -1
  35. package/src/aichathistory/aichathistorycontroller.js +1 -1
  36. package/src/aichathistory/aichathistoryui.js +1 -1
  37. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  38. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  39. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  40. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  41. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  42. package/src/aicore/aiediting.js +1 -1
  43. package/src/aicore/model/aiinteraction.js +1 -1
  44. package/src/aicore/model/aimodels.js +1 -1
  45. package/src/aicore/model/aireply.js +1 -1
  46. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  47. package/src/aicore/pipeline/airesponseparser.js +2 -2
  48. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  49. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  50. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  51. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  52. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  53. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  54. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  55. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  56. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  57. package/src/aicore/utils/documentrange.js +1 -1
  58. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  59. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  60. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  61. package/src/aicore/utils/htmlparser.js +1 -1
  62. package/src/aicore/utils/htmlstreamer.js +1 -1
  63. package/src/aieditorintegration/aieditorintegration.js +1 -1
  64. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  65. package/src/aiquickactions/aiquickactionsui.js +1 -1
  66. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  67. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  68. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  69. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  70. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  71. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  72. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  73. package/src/aireviewcore/aireviewcoreui.js +1 -1
  74. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  75. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  76. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  77. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  78. package/src/aitabs/aitabs.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14a65e=_0x14af;function _0x570a(){const _0x24d90c=['AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','model','ck-ai-chat-controls__model-name','source','menuitemradio','setModel','enabled','capabilities','isVisible','_getCapabilityParts','buttonView','_createCommandsButton','_createReasoningButton','Commands\x20are\x20not\x20implemented\x20yet.','_modelNameView','name','_createModelSelectionDropdown','AI_CHAT_DISABLE_WEB_SEARCH','selectModel','40lQiHPJ','set','webSearch','setTemplate','webSearchActive','614824BuzFFX','bindTemplate','ck-ai-chat-controls__model-selection','1688100nTCugP','reasoningActive','selector','ck-ai-button-tertiary','createCollection','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','_reasoningButton','AI_CHAT_CAPABILITIES_YES','span','52232eUmoFM','modelSelectorEnabled','_createWebSearchButton','hidden','ck-button__label','activeModelId','_modelSelectionDropdownItems','add','3XDvfgq','fire','ck-hidden','1273278eVPktQ','AI_CHAT_CAPABILITIES_NO','locale','length','reasoning','_modelSelectionDropdown','AI_CHAT_ENABLE_WEB_SEARCH','238XhWTFJ','addMany','listenTo','ck-ai-chat__prompt-capabilities','toggleWebSearch','log','144qisNRh','modelDisplayMode','453385VtTgDN','text','style','_createModelNameView','disableModelSelector','button','AI_CHAT_SEARCH_WEB','tooltip','toggleReasoning','div','AI_CHAT_DISABLE_REASONING','clear','isOn','AI_CHAT_ENABLE_REASONING','ck-ai-chat-controls-button','label','enableModelSelector','activeModelName','ck-ai-chat-controls__model-selection__item-name','setModelList','bind','30020100aFoHRQ','execute','description','_webSearchButton','isEnabled','ck-ai-chat-controls-button--commands','extendTemplate','ck-ai-chat-controls__model-selection__item-capabilities','setReasoning','AI_CHAT_REASONING','82320tfkmvy','content','ck-ai-chat-controls__model-selection__item-description','AI_CHAT_COMMANDS','_commandsButton','setWebSearch'];_0x570a=function(){return _0x24d90c;};return _0x570a();}(function(_0x18cbe2,_0x4588be){const _0x1506a0=_0x14af,_0x217fc1=_0x18cbe2();while(!![]){try{const _0x3fef73=parseInt(_0x1506a0(0x1f5))/0x1*(-parseInt(_0x1506a0(0x1e1))/0x2)+-parseInt(_0x1506a0(0x1e4))/0x3+parseInt(_0x1506a0(0x1dc))/0x4*(-parseInt(_0x1506a0(0x207))/0x5)+parseInt(_0x1506a0(0x1f8))/0x6+parseInt(_0x1506a0(0x1ff))/0x7*(parseInt(_0x1506a0(0x1ed))/0x8)+-parseInt(_0x1506a0(0x205))/0x9*(-parseInt(_0x1506a0(0x226))/0xa)+parseInt(_0x1506a0(0x21c))/0xb;if(_0x3fef73===_0x4588be)break;else _0x217fc1['push'](_0x217fc1['shift']());}catch(_0x32ef30){_0x217fc1['push'](_0x217fc1['shift']());}}}(_0x570a,0xdc889));import{Collection as _0x2084ba}from'ckeditor5/src/utils.js';import{IconAI as _0x1564ad,IconBulb as _0x4a4509,IconWeb as _0x48a73d}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x5baf88,ButtonLabelView as _0x5996a3,ButtonView as _0x4efb13,createDropdown as _0x4ad28c,IconView as _0x4af447,UIModel as _0x5d200a,View as _0x4f488f}from'ckeditor5/src/ui.js';import{getTranslation as _0x3ae15e}from'../../../aicore/utils/common-translations.js';const qo=_0x14a65e(0x202),jo=_0x14a65e(0x215),zo=_0x14a65e(0x221),Jo=_0x14a65e(0x1e7),Ko=_0x14a65e(0x1e3),Qo=_0x14a65e(0x219),Zo=_0x14a65e(0x228),tl=_0x14a65e(0x223),el='n';export class AIChatPromptCapabilitiesView extends _0x4f488f{[_0x14a65e(0x21f)];[_0x14a65e(0x1ea)];[_0x14a65e(0x22a)];[_0x14a65e(0x1fd)];[_0x14a65e(0x1f3)];[_0x14a65e(0x1d7)];constructor(_0x344626){const _0x4b99b7=_0x14a65e;super(_0x344626),this[_0x4b99b7(0x1dd)](_0x4b99b7(0x1e0),!0x1),this[_0x4b99b7(0x1dd)](_0x4b99b7(0x1e5),!0x1),this[_0x4b99b7(0x1dd)](_0x4b99b7(0x206),_0x4b99b7(0x1e6)),this[_0x4b99b7(0x1dd)](_0x4b99b7(0x1ee),!0x0),this[_0x4b99b7(0x1dd)](_0x4b99b7(0x1f2),null),this[_0x4b99b7(0x1dd)](_0x4b99b7(0x218),null),this[_0x4b99b7(0x1fd)]=this[_0x4b99b7(0x1d9)](),this[_0x4b99b7(0x1d7)]=this[_0x4b99b7(0x20a)](),this[_0x4b99b7(0x21f)]=this[_0x4b99b7(0x1ef)](),this[_0x4b99b7(0x1ea)]=this[_0x4b99b7(0x1d5)](),this[_0x4b99b7(0x22a)]=this[_0x4b99b7(0x1d4)](),this[_0x4b99b7(0x1fd)][_0x4b99b7(0x1d3)][_0x4b99b7(0x21b)](_0x4b99b7(0x1d1))['to'](this,_0x4b99b7(0x206),_0x358829=>_0x4b99b7(0x1e6)===_0x358829),this[_0x4b99b7(0x1fd)][_0x4b99b7(0x1d3)][_0x4b99b7(0x21b)](_0x4b99b7(0x20e))['to'](this,_0x4b99b7(0x1ee),_0xde3178=>_0xde3178?this[_0x4b99b7(0x1fd)][_0x4b99b7(0x1d3)][_0x4b99b7(0x216)]:_0x3ae15e(this[_0x4b99b7(0x1fa)],_0x4b99b7(0x22c))),this[_0x4b99b7(0x1fd)][_0x4b99b7(0x21b)](_0x4b99b7(0x220))['to'](this,_0x4b99b7(0x1ee),_0x2d2a9d=>_0x2d2a9d),this[_0x4b99b7(0x21f)][_0x4b99b7(0x21b)](_0x4b99b7(0x213))['to'](this,_0x4b99b7(0x1e0),_0x16d4ef=>_0x16d4ef),this[_0x4b99b7(0x21f)][_0x4b99b7(0x21b)](_0x4b99b7(0x20e))['to'](this,_0x4b99b7(0x1e0),_0x1f6b28=>_0x3ae15e(this[_0x4b99b7(0x1fa)],_0x1f6b28?_0x4b99b7(0x1da):_0x4b99b7(0x1fe))),this[_0x4b99b7(0x1ea)][_0x4b99b7(0x21b)](_0x4b99b7(0x213))['to'](this,_0x4b99b7(0x1e5),_0x4dbdc8=>_0x4dbdc8),this[_0x4b99b7(0x1ea)][_0x4b99b7(0x21b)](_0x4b99b7(0x20e))['to'](this,_0x4b99b7(0x1e5),_0x1cd257=>_0x3ae15e(this[_0x4b99b7(0x1fa)],_0x1cd257?_0x4b99b7(0x211):_0x4b99b7(0x214))),this[_0x4b99b7(0x1df)]({'tag':_0x4b99b7(0x210),'attributes':{'class':[qo]},'children':[this[_0x4b99b7(0x1fd)],this[_0x4b99b7(0x1d7)],this[_0x4b99b7(0x21f)],this[_0x4b99b7(0x1ea)],this[_0x4b99b7(0x22a)]]}),this[_0x4b99b7(0x1f3)]=new _0x2084ba(),_0x5baf88(this[_0x4b99b7(0x1fd)],this[_0x4b99b7(0x1f3)]);}[_0x14a65e(0x21a)](_0x543f16,_0x1dc678){const _0x97b784=_0x14a65e;if(_0x1dc678)this[_0x97b784(0x1dd)](_0x97b784(0x206),_0x97b784(0x1f0));else{const _0x267461=0x1===_0x543f16[_0x97b784(0x1fb)];this[_0x97b784(0x1dd)](_0x97b784(0x206),_0x267461?_0x97b784(0x1d8):_0x97b784(0x1e6));}if(this[_0x97b784(0x1f3)][_0x97b784(0x212)](),_0x543f16?.[_0x97b784(0x1fb)])for(const _0x44987e of _0x543f16){const _0x32dd0b=new _0x5d200a({'label':_0x44987e[_0x97b784(0x1d8)],'withText':!0x0,'role':_0x97b784(0x230),'id':_0x44987e['id'],'model':_0x44987e});_0x32dd0b[_0x97b784(0x21b)](_0x97b784(0x213))['to'](this,_0x97b784(0x1f2),_0x1359f4=>_0x1359f4===_0x44987e['id']),this[_0x97b784(0x1f3)][_0x97b784(0x1f4)]({'type':_0x97b784(0x20c),'model':_0x32dd0b,'labelView':new ModelButtonLabelView(this[_0x97b784(0x1fa)],_0x44987e)});}}[_0x14a65e(0x22b)](_0xbbdd20){const _0x99dd5f=_0x14a65e;this[_0x99dd5f(0x1dd)](_0x99dd5f(0x1e0),_0xbbdd20);}[_0x14a65e(0x224)](_0x3de710){const _0x46e5d4=_0x14a65e;this[_0x46e5d4(0x1dd)](_0x46e5d4(0x1e5),_0x3de710);}[_0x14a65e(0x231)](_0x235199){const _0x2794cd=_0x14a65e;if(!_0x235199)return;this[_0x2794cd(0x1f2)]=_0x235199['id'],this[_0x2794cd(0x218)]=_0x235199[_0x2794cd(0x1d8)]||_0x235199['id'],this[_0x2794cd(0x1fd)][_0x2794cd(0x1d3)][_0x2794cd(0x1dd)](_0x2794cd(0x216),_0x235199[_0x2794cd(0x1d8)]),this[_0x2794cd(0x1fd)][_0x2794cd(0x1d3)][_0x2794cd(0x1dd)](_0x2794cd(0x20e),_0x235199[_0x2794cd(0x1d8)]);const _0x1484a6=_0x235199[_0x2794cd(0x1d0)][_0x2794cd(0x1de)]?.[_0x2794cd(0x232)]??!0x1;this[_0x2794cd(0x1dd)](_0x2794cd(0x1e0),!0x1),this[_0x2794cd(0x21f)][_0x2794cd(0x1dd)](_0x2794cd(0x213),!0x1),this[_0x2794cd(0x21f)][_0x2794cd(0x1dd)](_0x2794cd(0x220),_0x1484a6),this[_0x2794cd(0x21f)][_0x2794cd(0x1dd)](_0x2794cd(0x1d1),_0x1484a6);const _0x4f612c=_0x235199[_0x2794cd(0x1d0)][_0x2794cd(0x1fc)]?.[_0x2794cd(0x232)]??!0x1;this[_0x2794cd(0x1dd)](_0x2794cd(0x1e5),!0x1),this[_0x2794cd(0x1ea)][_0x2794cd(0x1dd)](_0x2794cd(0x213),!0x1),this[_0x2794cd(0x1ea)][_0x2794cd(0x1dd)](_0x2794cd(0x220),_0x4f612c),this[_0x2794cd(0x1ea)][_0x2794cd(0x1dd)](_0x2794cd(0x1d1),_0x4f612c);}[_0x14a65e(0x217)](){const _0x971d12=_0x14a65e;this[_0x971d12(0x1dd)](_0x971d12(0x1ee),!0x0);}[_0x14a65e(0x20b)](_0xeef22b){const _0x541b71=_0x14a65e;this[_0x541b71(0x1dd)](_0x541b71(0x1ee),!0x1),_0xeef22b&&this[_0x541b71(0x1dd)](_0x541b71(0x206),_0x541b71(0x1f0));}[_0x14a65e(0x1ef)](){const _0x189491=_0x14a65e,_0x2f9c7a=new _0x4efb13();return _0x2f9c7a[_0x189491(0x1dd)]({'label':_0x3ae15e(this[_0x189491(0x1fa)],_0x189491(0x20d)),'icon':_0x48a73d,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x2f9c7a['on'](_0x189491(0x21d),()=>{const _0x288d55=_0x189491;this[_0x288d55(0x1f6)](_0x288d55(0x203));}),_0x2f9c7a;}[_0x14a65e(0x1d5)](){const _0x2aafb2=_0x14a65e,_0x320eef=new _0x4efb13();return _0x320eef[_0x2aafb2(0x1dd)]({'label':_0x3ae15e(this[_0x2aafb2(0x1fa)],_0x2aafb2(0x225)),'icon':_0x4a4509,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x320eef['on'](_0x2aafb2(0x21d),()=>{const _0x253fad=_0x2aafb2;this[_0x253fad(0x1f6)](_0x253fad(0x20f));}),_0x320eef;}[_0x14a65e(0x1d4)](){const _0xbb3c37=_0x14a65e,_0xd33c1e=new _0x4efb13();return _0xd33c1e[_0xbb3c37(0x1dd)]({'label':_0x3ae15e(this[_0xbb3c37(0x1fa)],_0xbb3c37(0x229)),'icon':_0x1564ad,'withText':!0x0,'class':jo,'isToggleable':!0x0,'tooltip':_0x3ae15e(this[_0xbb3c37(0x1fa)],_0xbb3c37(0x229)),'tooltipPosition':el}),_0xd33c1e[_0xbb3c37(0x222)]({'attributes':{'class':[zo]}}),_0xd33c1e['on'](_0xbb3c37(0x21d),()=>{const _0x33d6c7=_0xbb3c37;console[_0x33d6c7(0x204)](_0x33d6c7(0x1d6)),alert(_0x33d6c7(0x1d6));}),_0xd33c1e;}[_0x14a65e(0x1d9)](){const _0x482cd1=_0x14a65e,_0x4798a6=_0x4ad28c(this[_0x482cd1(0x1fa)]);return _0x4798a6[_0x482cd1(0x1dd)]({'panelPosition':'ne','class':[Ko]}),_0x4798a6[_0x482cd1(0x1d3)][_0x482cd1(0x1dd)]({'label':_0x3ae15e(this[_0x482cd1(0x1fa)],_0x482cd1(0x1e9)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':el,'class':Jo}),this[_0x482cd1(0x201)](_0x4798a6,_0x482cd1(0x21d),_0x507070=>{const _0x1b1027=_0x482cd1;this[_0x1b1027(0x1f6)](_0x1b1027(0x1db),_0x507070[_0x1b1027(0x22f)][_0x1b1027(0x22d)]);}),_0x4798a6;}[_0x14a65e(0x20a)](){const _0x48d793=_0x14a65e,_0x513c5a=new ModelNameView(this[_0x48d793(0x1fa)]);return _0x513c5a[_0x48d793(0x21b)](_0x48d793(0x208))['to'](this,_0x48d793(0x218),_0x2b1b46=>_0x2b1b46??''),_0x513c5a[_0x48d793(0x21b)](_0x48d793(0x1d1))['to'](this,_0x48d793(0x206),_0x28185a=>_0x48d793(0x1d8)===_0x28185a),_0x513c5a;}}function _0x14af(_0x53103b,_0x34d86f){const _0x570aca=_0x570a();return _0x14af=function(_0x14af6e,_0x35cfc9){_0x14af6e=_0x14af6e-0x1d0;let _0x5f368d=_0x570aca[_0x14af6e];return _0x5f368d;},_0x14af(_0x53103b,_0x34d86f);}class ModelButtonLabelView extends _0x5996a3{constructor(_0x489018,_0xfdec32){const _0x4f08e4=_0x14a65e;super();const _0x23ae55=this[_0x4f08e4(0x1e2)],_0x5f21cd=this[_0x4f08e4(0x1e8)]();this[_0x4f08e4(0x1df)]({'tag':_0x4f08e4(0x210),'attributes':{'class':['ck',_0x4f08e4(0x1f1)],'style':_0x23ae55['to'](_0x4f08e4(0x209)),'id':_0x23ae55['to']('id')},'children':[{'tag':_0x4f08e4(0x210),'attributes':{'class':[Qo]},'children':[{'text':_0x23ae55['to'](_0x4f08e4(0x208))}]},{'tag':_0x4f08e4(0x210),'attributes':{'class':[Zo]},'children':[{'tag':_0x4f08e4(0x1ec),'children':[{'text':_0xfdec32[_0x4f08e4(0x21e)]}]}]},{'tag':_0x4f08e4(0x210),'attributes':{'class':[tl]},'children':_0x5f21cd}]}),_0x5f21cd[_0x4f08e4(0x200)](this[_0x4f08e4(0x1d2)](_0x489018,_0x48a73d,_0x4f08e4(0x20d),_0xfdec32[_0x4f08e4(0x1d0)][_0x4f08e4(0x1de)]?.[_0x4f08e4(0x232)]??!0x1)),_0x5f21cd[_0x4f08e4(0x200)](this[_0x4f08e4(0x1d2)](_0x489018,_0x4a4509,_0x4f08e4(0x225),_0xfdec32[_0x4f08e4(0x1d0)][_0x4f08e4(0x1fc)]?.[_0x4f08e4(0x232)]??!0x1));}[_0x14a65e(0x1d2)](_0x269cef,_0x5268ee,_0x3c1ef2,_0x3e4e46){const _0x1f696e=_0x14a65e,_0x278fb2=new _0x4af447();_0x278fb2[_0x1f696e(0x227)]=_0x5268ee;const _0x1ba78c=new _0x4f488f(_0x269cef);_0x1ba78c[_0x1f696e(0x1df)]({'tag':_0x1f696e(0x1ec),'children':[{'text':_0x3ae15e(_0x269cef,_0x3c1ef2)+':\x20'}]});const _0x15a152=new _0x4f488f(_0x269cef);return _0x15a152[_0x1f696e(0x1df)]({'tag':_0x1f696e(0x1ec),'children':[{'text':_0x3ae15e(_0x269cef,_0x3e4e46?_0x1f696e(0x1eb):_0x1f696e(0x1f9))}]}),[_0x278fb2,_0x1ba78c,_0x15a152];}}class ModelNameView extends _0x4f488f{constructor(_0x4c6de8){const _0x1ddc33=_0x14a65e;super(_0x4c6de8),this[_0x1ddc33(0x1dd)](_0x1ddc33(0x208),void 0x0),this[_0x1ddc33(0x1dd)](_0x1ddc33(0x1d1),!0x0);const _0x423e29=this[_0x1ddc33(0x1e2)];this[_0x1ddc33(0x1df)]({'tag':_0x1ddc33(0x1ec),'attributes':{'class':['ck',_0x1ddc33(0x22e),_0x423e29['if'](_0x1ddc33(0x1d1),_0x1ddc33(0x1f7),_0x44f547=>!_0x44f547)]},'children':[{'text':_0x423e29['to'](_0x1ddc33(0x208))}]});}}
23
+ const _0x43e6d1=_0x37dd;(function(_0x21a139,_0x23bd7f){const _0x2a150d=_0x37dd,_0x5103ca=_0x21a139();while(!![]){try{const _0x59c671=-parseInt(_0x2a150d(0x11b))/0x1*(parseInt(_0x2a150d(0x11c))/0x2)+-parseInt(_0x2a150d(0x101))/0x3+parseInt(_0x2a150d(0xde))/0x4*(parseInt(_0x2a150d(0xe8))/0x5)+-parseInt(_0x2a150d(0x130))/0x6*(parseInt(_0x2a150d(0xeb))/0x7)+parseInt(_0x2a150d(0x134))/0x8+-parseInt(_0x2a150d(0xe2))/0x9*(parseInt(_0x2a150d(0x13d))/0xa)+parseInt(_0x2a150d(0x106))/0xb;if(_0x59c671===_0x23bd7f)break;else _0x5103ca['push'](_0x5103ca['shift']());}catch(_0x545bb2){_0x5103ca['push'](_0x5103ca['shift']());}}}(_0x196e,0x3599a));function _0x37dd(_0x8bd8d5,_0x52578a){const _0x196e99=_0x196e();return _0x37dd=function(_0x37dd10,_0x800ae4){_0x37dd10=_0x37dd10-0xdd;let _0x3f5b80=_0x196e99[_0x37dd10];return _0x3f5b80;},_0x37dd(_0x8bd8d5,_0x52578a);}import{Collection as _0x24ba4d}from'ckeditor5/src/utils.js';import{IconAI as _0x3b4cd4,IconBulb as _0x5bc1cf,IconWeb as _0x32f066}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0xe56551,ButtonLabelView as _0x212071,ButtonView as _0x373c7e,createDropdown as _0x23540d,IconView as _0x2022a2,UIModel as _0x2cd69c,View as _0x3ad462}from'ckeditor5/src/ui.js';import{getTranslation as _0xd0eb6}from'../../../aicore/utils/common-translations.js';const qo=_0x43e6d1(0x128),jo=_0x43e6d1(0x13e),zo=_0x43e6d1(0xdd),Jo=_0x43e6d1(0xe7),Ko=_0x43e6d1(0x11f),Qo=_0x43e6d1(0xea),Zo=_0x43e6d1(0xfe),tl=_0x43e6d1(0xff),el='n';export class AIChatPromptCapabilitiesView extends _0x3ad462{[_0x43e6d1(0x114)];[_0x43e6d1(0xe3)];[_0x43e6d1(0x137)];[_0x43e6d1(0x136)];[_0x43e6d1(0x10b)];[_0x43e6d1(0x107)];constructor(_0x2464b9){const _0x15c4ca=_0x43e6d1;super(_0x2464b9),this[_0x15c4ca(0x12c)](_0x15c4ca(0x135),!0x1),this[_0x15c4ca(0x12c)](_0x15c4ca(0x110),!0x1),this[_0x15c4ca(0x12c)](_0x15c4ca(0x129),_0x15c4ca(0x13a)),this[_0x15c4ca(0x12c)](_0x15c4ca(0x117),!0x0),this[_0x15c4ca(0x12c)](_0x15c4ca(0xf1),null),this[_0x15c4ca(0x12c)](_0x15c4ca(0xf0),null),this[_0x15c4ca(0x136)]=this[_0x15c4ca(0x11e)](),this[_0x15c4ca(0x107)]=this[_0x15c4ca(0xef)](),this[_0x15c4ca(0x114)]=this[_0x15c4ca(0xf7)](),this[_0x15c4ca(0xe3)]=this[_0x15c4ca(0xfd)](),this[_0x15c4ca(0x137)]=this[_0x15c4ca(0x12e)](),this[_0x15c4ca(0x136)][_0x15c4ca(0xfc)][_0x15c4ca(0x113)](_0x15c4ca(0x120))['to'](this,_0x15c4ca(0x129),_0x3fcaf3=>_0x15c4ca(0x13a)===_0x3fcaf3),this[_0x15c4ca(0x136)][_0x15c4ca(0xfc)][_0x15c4ca(0x113)](_0x15c4ca(0x121))['to'](this,_0x15c4ca(0x117),_0x1e3eaa=>_0x1e3eaa?this[_0x15c4ca(0x136)][_0x15c4ca(0xfc)][_0x15c4ca(0xe6)]:_0xd0eb6(this[_0x15c4ca(0xf9)],_0x15c4ca(0xe4))),this[_0x15c4ca(0x136)][_0x15c4ca(0x113)](_0x15c4ca(0x12f))['to'](this,_0x15c4ca(0x117),_0x5d4e29=>_0x5d4e29),this[_0x15c4ca(0x114)][_0x15c4ca(0x113)](_0x15c4ca(0x131))['to'](this,_0x15c4ca(0x135),_0x1c27bc=>_0x1c27bc),this[_0x15c4ca(0x114)][_0x15c4ca(0x113)](_0x15c4ca(0x121))['to'](this,_0x15c4ca(0x135),_0x2d91cb=>_0xd0eb6(this[_0x15c4ca(0xf9)],_0x2d91cb?_0x15c4ca(0x102):_0x15c4ca(0x118))),this[_0x15c4ca(0xe3)][_0x15c4ca(0x113)](_0x15c4ca(0x131))['to'](this,_0x15c4ca(0x110),_0x3ee524=>_0x3ee524),this[_0x15c4ca(0xe3)][_0x15c4ca(0x113)](_0x15c4ca(0x121))['to'](this,_0x15c4ca(0x110),_0x5eaa5d=>_0xd0eb6(this[_0x15c4ca(0xf9)],_0x5eaa5d?_0x15c4ca(0x13b):_0x15c4ca(0xfa))),this[_0x15c4ca(0xed)]({'tag':_0x15c4ca(0x11d),'attributes':{'class':[qo]},'children':[this[_0x15c4ca(0x136)],this[_0x15c4ca(0x107)],this[_0x15c4ca(0x114)],this[_0x15c4ca(0xe3)],this[_0x15c4ca(0x137)]]}),this[_0x15c4ca(0x10b)]=new _0x24ba4d(),_0xe56551(this[_0x15c4ca(0x136)],this[_0x15c4ca(0x10b)]);}[_0x43e6d1(0x100)](_0xa25dfa,_0x11e201){const _0x335f59=_0x43e6d1;if(_0x11e201)this[_0x335f59(0x12c)](_0x335f59(0x129),_0x335f59(0x126));else{const _0x395aed=0x1===_0xa25dfa[_0x335f59(0xf5)];this[_0x335f59(0x12c)](_0x335f59(0x129),_0x395aed?_0x335f59(0x104):_0x335f59(0x13a));}if(this[_0x335f59(0x10b)][_0x335f59(0x12b)](),_0xa25dfa?.[_0x335f59(0xf5)])for(const _0x10e687 of _0xa25dfa){const _0x33f090=new _0x2cd69c({'label':_0x10e687[_0x335f59(0x104)],'withText':!0x0,'role':_0x335f59(0x11a),'id':_0x10e687['id'],'model':_0x10e687});_0x33f090[_0x335f59(0x113)](_0x335f59(0x131))['to'](this,_0x335f59(0xf1),_0x4ba39b=>_0x4ba39b===_0x10e687['id']),this[_0x335f59(0x10b)][_0x335f59(0x124)]({'type':_0x335f59(0x139),'model':_0x33f090,'labelView':new ModelButtonLabelView(this[_0x335f59(0xf9)],_0x10e687)});}}[_0x43e6d1(0x12d)](_0x6943e3){const _0x1ef890=_0x43e6d1;this[_0x1ef890(0x12c)](_0x1ef890(0x135),_0x6943e3);}[_0x43e6d1(0x132)](_0x5310ca){const _0x2c45a7=_0x43e6d1;this[_0x2c45a7(0x12c)](_0x2c45a7(0x110),_0x5310ca);}[_0x43e6d1(0x108)](_0x52823d){const _0x26b36e=_0x43e6d1;if(!_0x52823d)return;this[_0x26b36e(0xf1)]=_0x52823d['id'],this[_0x26b36e(0xf0)]=_0x52823d[_0x26b36e(0x104)]||_0x52823d['id'],this[_0x26b36e(0x136)][_0x26b36e(0xfc)][_0x26b36e(0x12c)](_0x26b36e(0xe6),_0x52823d[_0x26b36e(0x104)]),this[_0x26b36e(0x136)][_0x26b36e(0xfc)][_0x26b36e(0x12c)](_0x26b36e(0x121),_0x52823d[_0x26b36e(0x104)]);const _0x4d50f4=_0x52823d[_0x26b36e(0x10c)][_0x26b36e(0xe9)]?.[_0x26b36e(0xe0)]??!0x1;this[_0x26b36e(0x12c)](_0x26b36e(0x135),!0x1),this[_0x26b36e(0x114)][_0x26b36e(0x12c)](_0x26b36e(0x131),!0x1),this[_0x26b36e(0x114)][_0x26b36e(0x12c)](_0x26b36e(0x12f),_0x4d50f4),this[_0x26b36e(0x114)][_0x26b36e(0x12c)](_0x26b36e(0x120),_0x4d50f4);const _0x45fdf7=_0x52823d[_0x26b36e(0x10c)][_0x26b36e(0xf3)]?.[_0x26b36e(0xe0)]??!0x1;this[_0x26b36e(0x12c)](_0x26b36e(0x110),!0x1),this[_0x26b36e(0xe3)][_0x26b36e(0x12c)](_0x26b36e(0x131),!0x1),this[_0x26b36e(0xe3)][_0x26b36e(0x12c)](_0x26b36e(0x12f),_0x45fdf7),this[_0x26b36e(0xe3)][_0x26b36e(0x12c)](_0x26b36e(0x120),_0x45fdf7);}[_0x43e6d1(0x111)](){const _0x81a38=_0x43e6d1;this[_0x81a38(0x12c)](_0x81a38(0x117),!0x0);}[_0x43e6d1(0xee)](_0x26a607){const _0x58d364=_0x43e6d1;this[_0x58d364(0x12c)](_0x58d364(0x117),!0x1),_0x26a607&&this[_0x58d364(0x12c)](_0x58d364(0x129),_0x58d364(0x126));}[_0x43e6d1(0xf7)](){const _0xc7238f=_0x43e6d1,_0x34beeb=new _0x373c7e();return _0x34beeb[_0xc7238f(0x12c)]({'label':_0xd0eb6(this[_0xc7238f(0xf9)],_0xc7238f(0xfb)),'icon':_0x32f066,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x34beeb['on'](_0xc7238f(0x123),()=>{const _0x8d7e4e=_0xc7238f;this[_0x8d7e4e(0x10e)](_0x8d7e4e(0x133));}),_0x34beeb;}[_0x43e6d1(0xfd)](){const _0x5608d3=_0x43e6d1,_0x8203ea=new _0x373c7e();return _0x8203ea[_0x5608d3(0x12c)]({'label':_0xd0eb6(this[_0x5608d3(0xf9)],_0x5608d3(0x127)),'icon':_0x5bc1cf,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x8203ea['on'](_0x5608d3(0x123),()=>{const _0x456240=_0x5608d3;this[_0x456240(0x10e)](_0x456240(0x13c));}),_0x8203ea;}[_0x43e6d1(0x12e)](){const _0x412ec3=_0x43e6d1,_0x2066a0=new _0x373c7e();return _0x2066a0[_0x412ec3(0x12c)]({'label':_0xd0eb6(this[_0x412ec3(0xf9)],_0x412ec3(0xe5)),'icon':_0x3b4cd4,'withText':!0x0,'class':jo,'isToggleable':!0x0,'tooltip':_0xd0eb6(this[_0x412ec3(0xf9)],_0x412ec3(0xe5)),'tooltipPosition':el}),_0x2066a0[_0x412ec3(0xf6)]({'attributes':{'class':[zo]}}),_0x2066a0['on'](_0x412ec3(0x123),()=>{const _0x5eefda=_0x412ec3;console[_0x5eefda(0x109)](_0x5eefda(0x116)),alert(_0x5eefda(0x116));}),_0x2066a0;}[_0x43e6d1(0x11e)](){const _0x1e5a6f=_0x43e6d1,_0x3815fc=_0x23540d(this[_0x1e5a6f(0xf9)]);return _0x3815fc[_0x1e5a6f(0x12c)]({'panelPosition':'ne','class':[Ko]}),_0x3815fc[_0x1e5a6f(0xfc)][_0x1e5a6f(0x12c)]({'label':_0xd0eb6(this[_0x1e5a6f(0xf9)],_0x1e5a6f(0x105)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':el,'class':Jo}),this[_0x1e5a6f(0x10a)](_0x3815fc,_0x1e5a6f(0x123),_0x51495d=>{const _0x3b3b1e=_0x1e5a6f;this[_0x3b3b1e(0x10e)](_0x3b3b1e(0x122),_0x51495d[_0x3b3b1e(0x138)][_0x3b3b1e(0xdf)]);}),_0x3815fc;}[_0x43e6d1(0xef)](){const _0x435681=_0x43e6d1,_0x2b9771=new ModelNameView(this[_0x435681(0xf9)]);return _0x2b9771[_0x435681(0x113)](_0x435681(0xf2))['to'](this,_0x435681(0xf0),_0x51d2b8=>_0x51d2b8??''),_0x2b9771[_0x435681(0x113)](_0x435681(0x120))['to'](this,_0x435681(0x129),_0x5670fc=>_0x435681(0x104)===_0x5670fc),_0x2b9771;}}function _0x196e(){const _0x14d4a6=['174vBVjUi','isOn','setReasoning','toggleWebSearch','2059760GhiKnu','webSearchActive','_modelSelectionDropdown','_commandsButton','source','button','selector','AI_CHAT_DISABLE_REASONING','toggleReasoning','3730QGcLPy','ck-ai-chat-controls-button','ck-hidden','ck-ai-chat-controls-button--commands','240280CsOjHP','model','enabled','style','8955VphtTl','_reasoningButton','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_COMMANDS','label','ck-ai-button-tertiary','15rVxFeS','webSearch','ck-ai-chat-controls__model-selection__item-name','34510emOjSa','description','setTemplate','disableModelSelector','_createModelNameView','activeModelName','activeModelId','text','reasoning','createCollection','length','extendTemplate','_createWebSearchButton','_getCapabilityParts','locale','AI_CHAT_ENABLE_REASONING','AI_CHAT_SEARCH_WEB','buttonView','_createReasoningButton','ck-ai-chat-controls__model-selection__item-description','ck-ai-chat-controls__model-selection__item-capabilities','setModelList','65370wEYnvc','AI_CHAT_DISABLE_WEB_SEARCH','span','name','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','5925876BcrJic','_modelNameView','setModel','log','listenTo','_modelSelectionDropdownItems','capabilities','content','fire','bindTemplate','reasoningActive','enableModelSelector','ck-button__label','bind','_webSearchButton','AI_CHAT_CAPABILITIES_NO','Commands\x20are\x20not\x20implemented\x20yet.','modelSelectorEnabled','AI_CHAT_ENABLE_WEB_SEARCH','addMany','menuitemradio','31565CbOAPH','14mPzZMt','div','_createModelSelectionDropdown','ck-ai-chat-controls__model-selection','isVisible','tooltip','selectModel','execute','add','ck-ai-chat-controls__model-name','hidden','AI_CHAT_REASONING','ck-ai-chat__prompt-capabilities','modelDisplayMode','AI_CHAT_CAPABILITIES_YES','clear','set','setWebSearch','_createCommandsButton','isEnabled'];_0x196e=function(){return _0x14d4a6;};return _0x196e();}class ModelButtonLabelView extends _0x212071{constructor(_0x1a8d91,_0xac1bb4){const _0x2ae4aa=_0x43e6d1;super();const _0x51ed57=this[_0x2ae4aa(0x10f)],_0x1ab3b8=this[_0x2ae4aa(0xf4)]();this[_0x2ae4aa(0xed)]({'tag':_0x2ae4aa(0x11d),'attributes':{'class':['ck',_0x2ae4aa(0x112)],'style':_0x51ed57['to'](_0x2ae4aa(0xe1)),'id':_0x51ed57['to']('id')},'children':[{'tag':_0x2ae4aa(0x11d),'attributes':{'class':[Qo]},'children':[{'text':_0x51ed57['to'](_0x2ae4aa(0xf2))}]},{'tag':_0x2ae4aa(0x11d),'attributes':{'class':[Zo]},'children':[{'tag':_0x2ae4aa(0x103),'children':[{'text':_0xac1bb4[_0x2ae4aa(0xec)]}]}]},{'tag':_0x2ae4aa(0x11d),'attributes':{'class':[tl]},'children':_0x1ab3b8}]}),_0x1ab3b8[_0x2ae4aa(0x119)](this[_0x2ae4aa(0xf8)](_0x1a8d91,_0x32f066,_0x2ae4aa(0xfb),_0xac1bb4[_0x2ae4aa(0x10c)][_0x2ae4aa(0xe9)]?.[_0x2ae4aa(0xe0)]??!0x1)),_0x1ab3b8[_0x2ae4aa(0x119)](this[_0x2ae4aa(0xf8)](_0x1a8d91,_0x5bc1cf,_0x2ae4aa(0x127),_0xac1bb4[_0x2ae4aa(0x10c)][_0x2ae4aa(0xf3)]?.[_0x2ae4aa(0xe0)]??!0x1));}[_0x43e6d1(0xf8)](_0x4c8af1,_0x55a70d,_0x146c71,_0x4b77fc){const _0x5108ce=_0x43e6d1,_0x3af212=new _0x2022a2();_0x3af212[_0x5108ce(0x10d)]=_0x55a70d;const _0x2fe8e1=new _0x3ad462(_0x4c8af1);_0x2fe8e1[_0x5108ce(0xed)]({'tag':_0x5108ce(0x103),'children':[{'text':_0xd0eb6(_0x4c8af1,_0x146c71)+':\x20'}]});const _0x24d70d=new _0x3ad462(_0x4c8af1);return _0x24d70d[_0x5108ce(0xed)]({'tag':_0x5108ce(0x103),'children':[{'text':_0xd0eb6(_0x4c8af1,_0x4b77fc?_0x5108ce(0x12a):_0x5108ce(0x115))}]}),[_0x3af212,_0x2fe8e1,_0x24d70d];}}class ModelNameView extends _0x3ad462{constructor(_0x55bdc8){const _0x4c3a24=_0x43e6d1;super(_0x55bdc8),this[_0x4c3a24(0x12c)](_0x4c3a24(0xf2),void 0x0),this[_0x4c3a24(0x12c)](_0x4c3a24(0x120),!0x0);const _0x1b6b4c=this[_0x4c3a24(0x10f)];this[_0x4c3a24(0xed)]({'tag':_0x4c3a24(0x103),'attributes':{'class':['ck',_0x4c3a24(0x125),_0x1b6b4c['if'](_0x4c3a24(0x120),_0x4c3a24(0x13f),_0x2635ff=>!_0x2635ff)]},'children':[{'text':_0x1b6b4c['to'](_0x4c3a24(0xf2))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x109b35=_0x36cc;(function(_0x34d222,_0x151544){const _0xa192ff=_0x36cc,_0x57c762=_0x34d222();while(!![]){try{const _0x4a2e5f=parseInt(_0xa192ff(0x1ab))/0x1+parseInt(_0xa192ff(0x19a))/0x2*(-parseInt(_0xa192ff(0x185))/0x3)+parseInt(_0xa192ff(0x186))/0x4*(-parseInt(_0xa192ff(0x183))/0x5)+parseInt(_0xa192ff(0x17c))/0x6*(parseInt(_0xa192ff(0x1a5))/0x7)+-parseInt(_0xa192ff(0x189))/0x8+-parseInt(_0xa192ff(0x1a8))/0x9+parseInt(_0xa192ff(0x197))/0xa;if(_0x4a2e5f===_0x151544)break;else _0x57c762['push'](_0x57c762['shift']());}catch(_0x53e962){_0x57c762['push'](_0x57c762['shift']());}}}(_0x1b69,0x5ac35));import{IconSubmit as _0x3a3f91}from'ckeditor5/src/icons.js';function _0x36cc(_0x241875,_0x2cd119){const _0x1b6928=_0x1b69();return _0x36cc=function(_0x36ccde,_0x1152f9){_0x36ccde=_0x36ccde-0x17a;let _0x569825=_0x1b6928[_0x36ccde];return _0x569825;},_0x36cc(_0x241875,_0x2cd119);}import{ButtonView as _0xcb6ad2,AutocompleteView as _0x209c88,createLabeledTextarea as _0x265a3f}from'ckeditor5/src/ui.js';function _0x1b69(){const _0xbe74a2=['setPlaceholderText','destroy','MIN_ROWS','bind','fire','extendTemplate','AI_CHAT_PROMPT_EMPTY_ERROR','element','set','add','305578VabycD','focus','render','998163EizZyr','queryView','isEmpty','665909eBpqTH','left','placeholder','hasError','fieldView','ck-ai-chat__prompt-input_highlighted','fieldWrapperChildren','sendUserMessage','maxRows','excludeScrollbarsAndBorders','keystrokes','errorText','focusableChildren','ck-ai-chat__prompt-submit-button','submit','AI_CHAT_LABEL_SUBMIT','ck-ai-chat__prompt-input','_setUpAddContextButtonPositioning','_addContextButtonView','trim','uiLanguageDirection','enter','requestAnimationFrame','66QfxiRL','submitButtonView','window','rtl','style','isUploadInProgress','reset','5525wWCBss','remove','84969lithrG','2132jbSmPJ','contains','minRows','4050784MvRtuQ','value','px\x20-\x20var(--ck-spacing-tiny))','classList','_queryViewResizeObserver','update','setIsUploadInProgress','execute','right','width','MAX_ROWS','locale','calc(','_createSubmitButton','8567270HELWtW','target','isEnabled','30qCXorX'];_0x1b69=function(){return _0xbe74a2;};return _0x1b69();}import{global as _0x4cf6c9,isVisible as _0x1192fe,Rect as _0x31cb2a,ResizeObserver as _0x2630a2}from'ckeditor5/src/utils.js';import{getTranslation as _0x39a33e}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x404ba0}from'./aichatpromptsuggestionslistview.js';import{escape as _0x34a033}from'es-toolkit/compat';const ah=_0x109b35(0x1b0);export class AIChatPromptInputView extends _0x209c88{[_0x109b35(0x17d)];static [_0x109b35(0x19d)]=0x1;static [_0x109b35(0x193)]=0xc;[_0x109b35(0x1bd)];[_0x109b35(0x18d)];constructor(_0xd557c7,_0x2fc845){const _0x218e48=_0x109b35;super(_0xd557c7,{'queryView':{'label':'','creator':_0x265a3f,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x404ba0(_0xd557c7),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x218e48(0x1a3)](_0x218e48(0x1aa),!0x0),this[_0x218e48(0x1a3)](_0x218e48(0x181),!0x1),this[_0x218e48(0x1bd)]=_0x2fc845,this[_0x218e48(0x18d)]=null,this[_0x218e48(0x1a9)][_0x218e48(0x1af)][_0x218e48(0x188)]=AIChatPromptInputView[_0x218e48(0x19d)],this[_0x218e48(0x1a9)][_0x218e48(0x1af)][_0x218e48(0x1b3)]=AIChatPromptInputView[_0x218e48(0x193)],this[_0x218e48(0x1a9)][_0x218e48(0x1b1)][_0x218e48(0x1a4)](this[_0x218e48(0x1bd)]),this[_0x218e48(0x1bc)](),this[_0x218e48(0x1a0)]({'attributes':{'class':['ck',_0x218e48(0x1bb)]}}),this[_0x218e48(0x17d)]=this[_0x218e48(0x196)](),this[_0x218e48(0x17d)][_0x218e48(0x19e)](_0x218e48(0x199))['to'](this,_0x218e48(0x1aa),this,_0x218e48(0x181),(_0x199a18,_0x473e98)=>!_0x199a18&&!_0x473e98),this[_0x218e48(0x1b7)][_0x218e48(0x1a4)](this[_0x218e48(0x17d)]);}[_0x109b35(0x1a7)](){const _0x16bdd5=_0x109b35;super[_0x16bdd5(0x1a7)](),this[_0x16bdd5(0x1a9)][_0x16bdd5(0x1b1)][_0x16bdd5(0x1a4)](this[_0x16bdd5(0x17d)]),this[_0x16bdd5(0x1b5)][_0x16bdd5(0x1a3)](_0x16bdd5(0x17a),(_0x4a6c50,_0x3c66d0)=>{const _0x1242fc=_0x16bdd5;this[_0x1242fc(0x181)]||this[_0x1242fc(0x1aa)]||_0x4a6c50[_0x1242fc(0x198)]==this[_0x1242fc(0x1a9)][_0x1242fc(0x1af)][_0x1242fc(0x1a2)]&&(this[_0x1242fc(0x1b9)](),_0x3c66d0());}),this[_0x16bdd5(0x1a9)][_0x16bdd5(0x1af)]['on'](_0x16bdd5(0x18e),()=>{const _0x5f008f=_0x16bdd5;this[_0x5f008f(0x1aa)]=''===this[_0x5f008f(0x1a9)][_0x5f008f(0x1af)][_0x5f008f(0x1a2)][_0x5f008f(0x18a)]?.[_0x5f008f(0x1be)]();});}[_0x109b35(0x19c)](){const _0xdfe2b8=_0x109b35;super[_0xdfe2b8(0x19c)](),this[_0xdfe2b8(0x18d)]&&this[_0xdfe2b8(0x18d)][_0xdfe2b8(0x19c)]();}[_0x109b35(0x1b9)](){const _0x2fc6fc=_0x109b35,_0x57919a=this[_0x2fc6fc(0x1a9)][_0x2fc6fc(0x1af)][_0x2fc6fc(0x1a2)][_0x2fc6fc(0x18a)]?.[_0x2fc6fc(0x1be)]();if(!_0x57919a)return this[_0x2fc6fc(0x1a9)][_0x2fc6fc(0x1b6)]=_0x39a33e(this[_0x2fc6fc(0x194)],_0x2fc6fc(0x1a1)),void(this[_0x2fc6fc(0x1a9)][_0x2fc6fc(0x1af)][_0x2fc6fc(0x1ae)]=!0x0);this[_0x2fc6fc(0x1a9)][_0x2fc6fc(0x1af)][_0x2fc6fc(0x1ae)]=!0x1;const _0x47b1d9=_0x34a033(_0x57919a);this[_0x2fc6fc(0x19f)](_0x2fc6fc(0x1b2),_0x47b1d9),this[_0x2fc6fc(0x1a9)][_0x2fc6fc(0x1af)][_0x2fc6fc(0x182)]();}[_0x109b35(0x19b)](_0x32a3ba){const _0x184384=_0x109b35;this[_0x184384(0x1a9)][_0x184384(0x1af)][_0x184384(0x1a3)](_0x184384(0x1ad),_0x32a3ba);}[_0x109b35(0x1a6)](_0x34ea7c=!0x1){const _0x4fcaab=_0x109b35;super[_0x4fcaab(0x1a6)](),_0x34ea7c&&(this[_0x4fcaab(0x1a2)][_0x4fcaab(0x18c)][_0x4fcaab(0x187)](ah)||(this[_0x4fcaab(0x1a2)][_0x4fcaab(0x18c)][_0x4fcaab(0x1a4)](ah),setTimeout(()=>{const _0x151389=_0x4fcaab;this[_0x151389(0x1a2)][_0x151389(0x18c)][_0x151389(0x184)](ah);},0x320)));}[_0x109b35(0x196)](){const _0x2f8463=_0x109b35,_0x544f42=new _0xcb6ad2(this[_0x2f8463(0x194)]);return _0x544f42[_0x2f8463(0x1a3)]({'icon':_0x3a3f91,'label':_0x39a33e(this[_0x2f8463(0x194)],_0x2f8463(0x1ba)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2f8463(0x1b8),'isEnabled':!0x1}),_0x544f42['on'](_0x2f8463(0x190),()=>{const _0x47279d=_0x2f8463;this[_0x47279d(0x1b9)]();}),_0x544f42;}[_0x109b35(0x18f)](_0x34639a){const _0x424c4c=_0x109b35;this[_0x424c4c(0x181)]=_0x34639a;}[_0x109b35(0x1bc)](){const _0x391541=_0x109b35,_0x4d349b=this[_0x391541(0x194)],_0x10f70b=()=>{const _0x57276c=_0x391541;_0x4cf6c9[_0x57276c(0x17e)][_0x57276c(0x17b)](()=>{const _0x1712ec=_0x57276c;if(_0x1192fe(this[_0x1712ec(0x1a2)])){const _0x27ebe5=new _0x31cb2a(this[_0x1712ec(0x1a9)][_0x1712ec(0x1af)][_0x1712ec(0x1a2)]),_0x359bfa=new _0x31cb2a(this[_0x1712ec(0x1bd)][_0x1712ec(0x1a2)]),_0x47280e=_0x27ebe5[_0x1712ec(0x192)],_0x122a48=_0x1712ec(0x17f)===_0x4d349b[_0x1712ec(0x1bf)]?_0x1712ec(0x191):_0x1712ec(0x1ac);_0x27ebe5[_0x1712ec(0x1b4)]();const _0x5e9b72=_0x47280e-_0x27ebe5[_0x1712ec(0x192)]+0x1;this[_0x1712ec(0x1bd)][_0x1712ec(0x1a2)][_0x1712ec(0x180)][_0x122a48]=_0x1712ec(0x195)+(_0x47280e-_0x359bfa[_0x1712ec(0x192)]-_0x5e9b72)+_0x1712ec(0x18b);}});};this[_0x391541(0x1a9)][_0x391541(0x1af)]['on'](_0x391541(0x18e),_0x10f70b),this['on'](_0x391541(0x1a7),()=>{const _0x43118e=_0x391541;_0x10f70b(),this[_0x43118e(0x18d)]=new _0x2630a2(this[_0x43118e(0x1a9)][_0x43118e(0x1af)][_0x43118e(0x1a2)],()=>{_0x10f70b();});});}}
23
+ function _0x5920(_0x21672b,_0x52c471){const _0x5a1840=_0x5a18();return _0x5920=function(_0x5920cd,_0xcdfe8d){_0x5920cd=_0x5920cd-0x11b;let _0x28d231=_0x5a1840[_0x5920cd];return _0x28d231;},_0x5920(_0x21672b,_0x52c471);}const _0x1deb21=_0x5920;(function(_0x970783,_0x2f6252){const _0x247832=_0x5920,_0x1b3a5f=_0x970783();while(!![]){try{const _0x6848bd=parseInt(_0x247832(0x153))/0x1*(-parseInt(_0x247832(0x15a))/0x2)+-parseInt(_0x247832(0x158))/0x3+-parseInt(_0x247832(0x11b))/0x4*(parseInt(_0x247832(0x12c))/0x5)+parseInt(_0x247832(0x127))/0x6+parseInt(_0x247832(0x12e))/0x7+-parseInt(_0x247832(0x15d))/0x8+parseInt(_0x247832(0x146))/0x9;if(_0x6848bd===_0x2f6252)break;else _0x1b3a5f['push'](_0x1b3a5f['shift']());}catch(_0x30a5ca){_0x1b3a5f['push'](_0x1b3a5f['shift']());}}}(_0x5a18,0xd60e4));import{IconSubmit as _0x3f3a59}from'ckeditor5/src/icons.js';import{ButtonView as _0xa4fe18,AutocompleteView as _0x46584d,createLabeledTextarea as _0x3024cc}from'ckeditor5/src/ui.js';function _0x5a18(){const _0x1034cd=['maxRows','uiLanguageDirection','_createSubmitButton','keystrokes','add','style','classList','fire','8949627MgdxRp','execute','rtl','bind','hasError','focusableChildren','errorText','AI_CHAT_LABEL_SUBMIT','reset','isEnabled','trim','placeholder','_queryViewResizeObserver','85rEZawi','setPlaceholderText','update','_addContextButtonView','isUploadInProgress','278694DjNXlW','requestAnimationFrame','23338SbudBN','AI_CHAT_PROMPT_EMPTY_ERROR','calc(','5639296CWTLqb','focus','extendTemplate','4052VGNqXh','enter','fieldWrapperChildren','MIN_ROWS','render','left','excludeScrollbarsAndBorders','ck-ai-chat__prompt-input_highlighted','window','destroy','width','ck-ai-chat__prompt-input','6708306tKqiGm','minRows','sendUserMessage','px\x20-\x20var(--ck-spacing-tiny))','submitButtonView','2605QqcKRM','value','7572362QrNWux','contains','element','_setUpAddContextButtonPositioning','locale','submit','target','ck-ai-chat__prompt-submit-button','set','fieldView','right','MAX_ROWS','remove','isEmpty','queryView','setIsUploadInProgress'];_0x5a18=function(){return _0x1034cd;};return _0x5a18();}import{global as _0x4de255,isVisible as _0x3f1e4e,Rect as _0x2e2d4e,ResizeObserver as _0x2e83f3}from'ckeditor5/src/utils.js';import{getTranslation as _0xa731e1}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x339370}from'./aichatpromptsuggestionslistview.js';import{escape as _0x1a79fc}from'es-toolkit/compat';const ah=_0x1deb21(0x122);export class AIChatPromptInputView extends _0x46584d{[_0x1deb21(0x12b)];static [_0x1deb21(0x11e)]=0x1;static [_0x1deb21(0x139)]=0xc;[_0x1deb21(0x156)];[_0x1deb21(0x152)];constructor(_0xcbd8b4,_0x2498e1){const _0x2d113c=_0x1deb21;super(_0xcbd8b4,{'queryView':{'label':'','creator':_0x3024cc,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x339370(_0xcbd8b4),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x2d113c(0x136)](_0x2d113c(0x13b),!0x0),this[_0x2d113c(0x136)](_0x2d113c(0x157),!0x1),this[_0x2d113c(0x156)]=_0x2498e1,this[_0x2d113c(0x152)]=null,this[_0x2d113c(0x13c)][_0x2d113c(0x137)][_0x2d113c(0x128)]=AIChatPromptInputView[_0x2d113c(0x11e)],this[_0x2d113c(0x13c)][_0x2d113c(0x137)][_0x2d113c(0x13e)]=AIChatPromptInputView[_0x2d113c(0x139)],this[_0x2d113c(0x13c)][_0x2d113c(0x11d)][_0x2d113c(0x142)](this[_0x2d113c(0x156)]),this[_0x2d113c(0x131)](),this[_0x2d113c(0x15f)]({'attributes':{'class':['ck',_0x2d113c(0x126)]}}),this[_0x2d113c(0x12b)]=this[_0x2d113c(0x140)](),this[_0x2d113c(0x12b)][_0x2d113c(0x149)](_0x2d113c(0x14f))['to'](this,_0x2d113c(0x13b),this,_0x2d113c(0x157),(_0xb2afb8,_0x52b100)=>!_0xb2afb8&&!_0x52b100),this[_0x2d113c(0x14b)][_0x2d113c(0x142)](this[_0x2d113c(0x12b)]);}[_0x1deb21(0x11f)](){const _0xc81a98=_0x1deb21;super[_0xc81a98(0x11f)](),this[_0xc81a98(0x13c)][_0xc81a98(0x11d)][_0xc81a98(0x142)](this[_0xc81a98(0x12b)]),this[_0xc81a98(0x141)][_0xc81a98(0x136)](_0xc81a98(0x11c),(_0x5cae93,_0x55e215)=>{const _0x50ca75=_0xc81a98;this[_0x50ca75(0x157)]||this[_0x50ca75(0x13b)]||_0x5cae93[_0x50ca75(0x134)]==this[_0x50ca75(0x13c)][_0x50ca75(0x137)][_0x50ca75(0x130)]&&(this[_0x50ca75(0x133)](),_0x55e215());}),this[_0xc81a98(0x13c)][_0xc81a98(0x137)]['on'](_0xc81a98(0x155),()=>{const _0x208910=_0xc81a98;this[_0x208910(0x13b)]=''===this[_0x208910(0x13c)][_0x208910(0x137)][_0x208910(0x130)][_0x208910(0x12d)]?.[_0x208910(0x150)]();});}[_0x1deb21(0x124)](){const _0x945a5c=_0x1deb21;super[_0x945a5c(0x124)](),this[_0x945a5c(0x152)]&&this[_0x945a5c(0x152)][_0x945a5c(0x124)]();}[_0x1deb21(0x133)](){const _0x3fcd5d=_0x1deb21,_0x5ee9ab=this[_0x3fcd5d(0x13c)][_0x3fcd5d(0x137)][_0x3fcd5d(0x130)][_0x3fcd5d(0x12d)]?.[_0x3fcd5d(0x150)]();if(!_0x5ee9ab)return this[_0x3fcd5d(0x13c)][_0x3fcd5d(0x14c)]=_0xa731e1(this[_0x3fcd5d(0x132)],_0x3fcd5d(0x15b)),void(this[_0x3fcd5d(0x13c)][_0x3fcd5d(0x137)][_0x3fcd5d(0x14a)]=!0x0);this[_0x3fcd5d(0x13c)][_0x3fcd5d(0x137)][_0x3fcd5d(0x14a)]=!0x1;const _0xac9f9c=_0x1a79fc(_0x5ee9ab);this[_0x3fcd5d(0x145)](_0x3fcd5d(0x129),_0xac9f9c),this[_0x3fcd5d(0x13c)][_0x3fcd5d(0x137)][_0x3fcd5d(0x14e)]();}[_0x1deb21(0x154)](_0x325ce8){const _0x15b03e=_0x1deb21;this[_0x15b03e(0x13c)][_0x15b03e(0x137)][_0x15b03e(0x136)](_0x15b03e(0x151),_0x325ce8);}[_0x1deb21(0x15e)](_0x37a172=!0x1){const _0x507019=_0x1deb21;super[_0x507019(0x15e)](),_0x37a172&&(this[_0x507019(0x130)][_0x507019(0x144)][_0x507019(0x12f)](ah)||(this[_0x507019(0x130)][_0x507019(0x144)][_0x507019(0x142)](ah),setTimeout(()=>{const _0x3adbc1=_0x507019;this[_0x3adbc1(0x130)][_0x3adbc1(0x144)][_0x3adbc1(0x13a)](ah);},0x320)));}[_0x1deb21(0x140)](){const _0x35cd3d=_0x1deb21,_0x44438a=new _0xa4fe18(this[_0x35cd3d(0x132)]);return _0x44438a[_0x35cd3d(0x136)]({'icon':_0x3f3a59,'label':_0xa731e1(this[_0x35cd3d(0x132)],_0x35cd3d(0x14d)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x35cd3d(0x135),'isEnabled':!0x1}),_0x44438a['on'](_0x35cd3d(0x147),()=>{const _0x58bbf7=_0x35cd3d;this[_0x58bbf7(0x133)]();}),_0x44438a;}[_0x1deb21(0x13d)](_0x1a2411){const _0x357758=_0x1deb21;this[_0x357758(0x157)]=_0x1a2411;}[_0x1deb21(0x131)](){const _0x401ac1=_0x1deb21,_0x36e6d9=this[_0x401ac1(0x132)],_0x43afd8=()=>{const _0x472c91=_0x401ac1;_0x4de255[_0x472c91(0x123)][_0x472c91(0x159)](()=>{const _0xbc72f5=_0x472c91;if(_0x3f1e4e(this[_0xbc72f5(0x130)])){const _0x23b556=new _0x2e2d4e(this[_0xbc72f5(0x13c)][_0xbc72f5(0x137)][_0xbc72f5(0x130)]),_0x2c81a4=new _0x2e2d4e(this[_0xbc72f5(0x156)][_0xbc72f5(0x130)]),_0x4843d5=_0x23b556[_0xbc72f5(0x125)],_0x55e29e=_0xbc72f5(0x148)===_0x36e6d9[_0xbc72f5(0x13f)]?_0xbc72f5(0x138):_0xbc72f5(0x120);_0x23b556[_0xbc72f5(0x121)]();const _0x2e6bdf=_0x4843d5-_0x23b556[_0xbc72f5(0x125)]+0x1;this[_0xbc72f5(0x156)][_0xbc72f5(0x130)][_0xbc72f5(0x143)][_0x55e29e]=_0xbc72f5(0x15c)+(_0x4843d5-_0x2c81a4[_0xbc72f5(0x125)]-_0x2e6bdf)+_0xbc72f5(0x12a);}});};this[_0x401ac1(0x13c)][_0x401ac1(0x137)]['on'](_0x401ac1(0x155),_0x43afd8),this['on'](_0x401ac1(0x11f),()=>{const _0x23746a=_0x401ac1;_0x43afd8(),this[_0x23746a(0x152)]=new _0x2e83f3(this[_0x23746a(0x13c)][_0x23746a(0x137)][_0x23746a(0x130)],()=>{_0x43afd8();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4980c0=_0x1289;function _0x1289(_0xbf492,_0x202e8e){const _0x2479c7=_0x2479();return _0x1289=function(_0x12894e,_0x1a93f7){_0x12894e=_0x12894e-0x16a;let _0x1867cf=_0x2479c7[_0x12894e];return _0x1867cf;},_0x1289(_0xbf492,_0x202e8e);}(function(_0x10d5b4,_0x3f087b){const _0x397e36=_0x1289,_0x1348b0=_0x10d5b4();while(!![]){try{const _0x5db703=-parseInt(_0x397e36(0x175))/0x1+parseInt(_0x397e36(0x173))/0x2+parseInt(_0x397e36(0x171))/0x3+-parseInt(_0x397e36(0x17c))/0x4*(parseInt(_0x397e36(0x172))/0x5)+-parseInt(_0x397e36(0x187))/0x6+-parseInt(_0x397e36(0x18c))/0x7*(parseInt(_0x397e36(0x184))/0x8)+parseInt(_0x397e36(0x170))/0x9;if(_0x5db703===_0x3f087b)break;else _0x1348b0['push'](_0x1348b0['shift']());}catch(_0x595d40){_0x1348b0['push'](_0x1348b0['shift']());}}}(_0x2479,0xd2ef0));import{View as _0x826f91,ViewCollection as _0x8f67a0}from'ckeditor5/src/ui.js';import{uid as _0x2ee9b8}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x11f0f9}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x34ff94}from'./aichatresourcessearchinputview.js';function _0x2479(){const _0x330da9=['_skeletonLoader','loadResources','updateResourceState','21574386TSwLiX','3055086yQZuec','1875455SBepoE','1713334DfEKjw','addResourceToContext','1009466GamjRV','useDefaultFiltering','search','getQuery','isLoading','highlightText','_createResourcesListView','12yQvcbG','children','fire','bindTemplate','extendTemplate','ck-ai-chat-resources','length','_resourcesListView','776hQDnpn','_createSearchSection','add','5686986UijsRe','set','setResources','ck-hidden','_searchSection','23499RnGnmV','_createSkeletonView','ck\x20ck-search','loadSourceResources','locale','render','_searchView','delegate','has','_searchInputVisibleFrom','setTemplate','searchInputVisibleFrom','source','aiChatResources','_createSearchView','_latestLoadResourcesUid','_source','div'];_0x2479=function(){return _0x330da9;};return _0x2479();}import{AISkeletonView as _0xc00efc,SKELETON_DEFINITIONS as _0x100f25}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x826f91{[_0x4980c0(0x192)];[_0x4980c0(0x18b)];[_0x4980c0(0x195)];[_0x4980c0(0x183)];[_0x4980c0(0x16d)];[_0x4980c0(0x16b)];[_0x4980c0(0x17d)];[_0x4980c0(0x16a)]=null;constructor(_0x3f1149,_0x1fb22b){const _0x55373b=_0x4980c0;super(_0x3f1149),this[_0x55373b(0x16b)]=_0x1fb22b[_0x55373b(0x198)],this[_0x55373b(0x195)]=_0x1fb22b[_0x55373b(0x197)]??0x7,this[_0x55373b(0x188)](_0x55373b(0x179),!0x0),this[_0x55373b(0x192)]=this[_0x55373b(0x19a)](),this[_0x55373b(0x18b)]=this[_0x55373b(0x185)](),this[_0x55373b(0x183)]=this[_0x55373b(0x17b)](),this[_0x55373b(0x16d)]=this[_0x55373b(0x18d)](),this[_0x55373b(0x17d)]=new _0x8f67a0([this[_0x55373b(0x16d)],this[_0x55373b(0x183)]]),this[_0x55373b(0x196)]({'tag':_0x55373b(0x16c),'attributes':{'class':_0x55373b(0x181)},'children':this[_0x55373b(0x17d)]});}[_0x4980c0(0x19a)](){const _0x5cb51a=_0x4980c0;return new _0x34ff94(this[_0x5cb51a(0x190)]);}[_0x4980c0(0x185)](){const _0x30b7e1=_0x4980c0,_0x2baa03=new _0x826f91(this[_0x30b7e1(0x190)]);return _0x2baa03[_0x30b7e1(0x196)]({'tag':_0x30b7e1(0x16c),'attributes':{'class':_0x30b7e1(0x18e)},'children':[this[_0x30b7e1(0x192)]]}),this[_0x30b7e1(0x192)]['on'](_0x30b7e1(0x177),(_0x3f68e4,_0x238179)=>{const _0x2c0555=_0x30b7e1;this[_0x2c0555(0x16e)](_0x238179),this[_0x2c0555(0x16b)][_0x2c0555(0x176)]&&this[_0x2c0555(0x183)][_0x2c0555(0x17a)](_0x238179);}),_0x2baa03;}[_0x4980c0(0x17b)](){const _0x34c358=_0x4980c0,_0x400df9=new _0x11f0f9(this[_0x34c358(0x190)],this[_0x34c358(0x16b)]);return _0x400df9[_0x34c358(0x193)](_0x34c358(0x174))['to'](this),_0x400df9[_0x34c358(0x180)]({'attributes':{'class':this[_0x34c358(0x17f)]['if'](_0x34c358(0x179),_0x34c358(0x18a))}}),_0x400df9;}[_0x4980c0(0x18d)](){const _0x225838=_0x4980c0,_0x53aae1=new _0xc00efc(this[_0x225838(0x190)],_0x100f25[_0x225838(0x199)]);return _0x53aae1[_0x225838(0x180)]({'attributes':{'class':[this[_0x225838(0x17f)]['if'](_0x225838(0x179),_0x225838(0x18a),_0x35aa44=>!_0x35aa44)]}}),_0x53aae1;}[_0x4980c0(0x191)](){const _0x921770=_0x4980c0;super[_0x921770(0x191)](),this[_0x921770(0x16e)]('');}[_0x4980c0(0x16e)](_0x33782e){const _0x158b2b=_0x4980c0,_0x58cd72=_0x2ee9b8();this[_0x158b2b(0x16a)]=_0x58cd72,this[_0x158b2b(0x17e)](_0x158b2b(0x18f),{'sourceId':this[_0x158b2b(0x16b)]['id'],'query':_0x33782e,'uid':_0x58cd72}),this[_0x158b2b(0x179)]=!0x0;}[_0x4980c0(0x189)](_0x36a7dd,_0xa1e330){const _0x1f791a=_0x4980c0;if(_0xa1e330&&_0xa1e330!==this[_0x1f791a(0x16a)])return;const _0x37c1ac=this[_0x1f791a(0x16b)][_0x1f791a(0x176)]?this[_0x1f791a(0x192)][_0x1f791a(0x178)]():'';this[_0x1f791a(0x183)][_0x1f791a(0x189)](_0x36a7dd,_0x37c1ac),_0x36a7dd[_0x1f791a(0x182)]>=this[_0x1f791a(0x195)]&&!this[_0x1f791a(0x17d)][_0x1f791a(0x194)](this[_0x1f791a(0x18b)])&&this[_0x1f791a(0x17d)][_0x1f791a(0x186)](this[_0x1f791a(0x18b)],0x0),requestAnimationFrame(()=>{const _0xe4cee0=_0x1f791a;this[_0xe4cee0(0x179)]=!0x1;});}[_0x4980c0(0x16f)](_0x553b86,_0x57a8b0){const _0x49034c=_0x4980c0;this[_0x49034c(0x183)][_0x49034c(0x16f)](_0x553b86,_0x57a8b0);}}
23
+ const _0x3e221b=_0x5d2f;function _0x246f(){const _0x36987a=['add','children','locale','_createSearchSection','addResourceToContext','_resourcesListView','aiChatResources','div','ck-hidden','source','296EAKiFP','_createResourcesListView','92080yzVund','_skeletonLoader','highlightText','bindTemplate','search','1968UjwCir','_searchSection','15795fjEoiv','985327goibzA','839140ZTVpWY','loadResources','_latestLoadResourcesUid','_createSearchView','setTemplate','render','2098764pRSoyh','setResources','length','536bKpDpt','useDefaultFiltering','set','getQuery','_searchInputVisibleFrom','_source','_createSkeletonView','_searchView','36xUHOPc','46039frsNhp','extendTemplate','searchInputVisibleFrom','loadSourceResources','isLoading','4227JBtQGs','updateResourceState','delegate','ck-ai-chat-resources','has','165sALqzs','fire','ck\x20ck-search'];_0x246f=function(){return _0x36987a;};return _0x246f();}function _0x5d2f(_0x2e0b66,_0x2f5fc7){const _0x246fd9=_0x246f();return _0x5d2f=function(_0x5d2fa3,_0x4e0e13){_0x5d2fa3=_0x5d2fa3-0x110;let _0x1ada62=_0x246fd9[_0x5d2fa3];return _0x1ada62;},_0x5d2f(_0x2e0b66,_0x2f5fc7);}(function(_0x2cee98,_0x3cb8b4){const _0x440516=_0x5d2f,_0x452b95=_0x2cee98();while(!![]){try{const _0x41be74=-parseInt(_0x440516(0x11c))/0x1+parseInt(_0x440516(0x113))/0x2*(-parseInt(_0x440516(0x121))/0x3)+parseInt(_0x440516(0x133))/0x4*(parseInt(_0x440516(0x135))/0x5)+-parseInt(_0x440516(0x11b))/0x6*(parseInt(_0x440516(0x13d))/0x7)+parseInt(_0x440516(0x13a))/0x8*(-parseInt(_0x440516(0x13c))/0x9)+parseInt(_0x440516(0x13e))/0xa*(parseInt(_0x440516(0x126))/0xb)+-parseInt(_0x440516(0x110))/0xc;if(_0x41be74===_0x3cb8b4)break;else _0x452b95['push'](_0x452b95['shift']());}catch(_0x4a1e58){_0x452b95['push'](_0x452b95['shift']());}}}(_0x246f,0xb649a));import{View as _0x58c9d9,ViewCollection as _0x3e4a01}from'ckeditor5/src/ui.js';import{uid as _0x5b946d}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x54064e}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x34bb85}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x3526ee,SKELETON_DEFINITIONS as _0x584623}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x58c9d9{[_0x3e221b(0x11a)];[_0x3e221b(0x13b)];[_0x3e221b(0x117)];[_0x3e221b(0x12e)];[_0x3e221b(0x136)];[_0x3e221b(0x118)];[_0x3e221b(0x12a)];[_0x3e221b(0x140)]=null;constructor(_0x4593a5,_0x44a5a1){const _0x11dfd3=_0x3e221b;super(_0x4593a5),this[_0x11dfd3(0x118)]=_0x44a5a1[_0x11dfd3(0x132)],this[_0x11dfd3(0x117)]=_0x44a5a1[_0x11dfd3(0x11e)]??0x7,this[_0x11dfd3(0x115)](_0x11dfd3(0x120),!0x0),this[_0x11dfd3(0x11a)]=this[_0x11dfd3(0x141)](),this[_0x11dfd3(0x13b)]=this[_0x11dfd3(0x12c)](),this[_0x11dfd3(0x12e)]=this[_0x11dfd3(0x134)](),this[_0x11dfd3(0x136)]=this[_0x11dfd3(0x119)](),this[_0x11dfd3(0x12a)]=new _0x3e4a01([this[_0x11dfd3(0x136)],this[_0x11dfd3(0x12e)]]),this[_0x11dfd3(0x142)]({'tag':_0x11dfd3(0x130),'attributes':{'class':_0x11dfd3(0x124)},'children':this[_0x11dfd3(0x12a)]});}[_0x3e221b(0x141)](){const _0x53f07b=_0x3e221b;return new _0x34bb85(this[_0x53f07b(0x12b)]);}[_0x3e221b(0x12c)](){const _0x26df0d=_0x3e221b,_0x1a955d=new _0x58c9d9(this[_0x26df0d(0x12b)]);return _0x1a955d[_0x26df0d(0x142)]({'tag':_0x26df0d(0x130),'attributes':{'class':_0x26df0d(0x128)},'children':[this[_0x26df0d(0x11a)]]}),this[_0x26df0d(0x11a)]['on'](_0x26df0d(0x139),(_0xbd6e87,_0x1ba8f2)=>{const _0x1b0542=_0x26df0d;this[_0x1b0542(0x13f)](_0x1ba8f2),this[_0x1b0542(0x118)][_0x1b0542(0x114)]&&this[_0x1b0542(0x12e)][_0x1b0542(0x137)](_0x1ba8f2);}),_0x1a955d;}[_0x3e221b(0x134)](){const _0x59cd11=_0x3e221b,_0x4cce03=new _0x54064e(this[_0x59cd11(0x12b)],this[_0x59cd11(0x118)]);return _0x4cce03[_0x59cd11(0x123)](_0x59cd11(0x12d))['to'](this),_0x4cce03[_0x59cd11(0x11d)]({'attributes':{'class':this[_0x59cd11(0x138)]['if'](_0x59cd11(0x120),_0x59cd11(0x131))}}),_0x4cce03;}[_0x3e221b(0x119)](){const _0x10cbec=_0x3e221b,_0x9693ae=new _0x3526ee(this[_0x10cbec(0x12b)],_0x584623[_0x10cbec(0x12f)]);return _0x9693ae[_0x10cbec(0x11d)]({'attributes':{'class':[this[_0x10cbec(0x138)]['if'](_0x10cbec(0x120),_0x10cbec(0x131),_0x3e425b=>!_0x3e425b)]}}),_0x9693ae;}[_0x3e221b(0x143)](){const _0x40f50d=_0x3e221b;super[_0x40f50d(0x143)](),this[_0x40f50d(0x13f)]('');}[_0x3e221b(0x13f)](_0x1273c7){const _0x4b54d6=_0x3e221b,_0x287a89=_0x5b946d();this[_0x4b54d6(0x140)]=_0x287a89,this[_0x4b54d6(0x127)](_0x4b54d6(0x11f),{'sourceId':this[_0x4b54d6(0x118)]['id'],'query':_0x1273c7,'uid':_0x287a89}),this[_0x4b54d6(0x120)]=!0x0;}[_0x3e221b(0x111)](_0x254154,_0x594c68){const _0x4d8c8d=_0x3e221b;if(_0x594c68&&_0x594c68!==this[_0x4d8c8d(0x140)])return;const _0x8d9768=this[_0x4d8c8d(0x118)][_0x4d8c8d(0x114)]?this[_0x4d8c8d(0x11a)][_0x4d8c8d(0x116)]():'';this[_0x4d8c8d(0x12e)][_0x4d8c8d(0x111)](_0x254154,_0x8d9768),_0x254154[_0x4d8c8d(0x112)]>=this[_0x4d8c8d(0x117)]&&!this[_0x4d8c8d(0x12a)][_0x4d8c8d(0x125)](this[_0x4d8c8d(0x13b)])&&this[_0x4d8c8d(0x12a)][_0x4d8c8d(0x129)](this[_0x4d8c8d(0x13b)],0x0),requestAnimationFrame(()=>{const _0x256daa=_0x4d8c8d;this[_0x256daa(0x120)]=!0x1;});}[_0x3e221b(0x122)](_0x53d125,_0x38c6b2){const _0x15823a=_0x3e221b;this[_0x15823a(0x12e)][_0x15823a(0x122)](_0x53d125,_0x38c6b2);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x368b(){const _0x2c920a=['ck-ai-chat-resources__item','text','execute','span','487109lgDCib','updateResourceState','_titleView','ck-ai-chat-resources__item__icon','13976BXassl','ck-ai-chat-resources__item--in-context','215081YbyvnP','20PbXnOz','543952BfFCwX','highlightText','_iconView','render','931671ZAufeO','_setupTemplate','set','label','ck-hidden','bindTemplate','_createIconView','div','type','_updateIcon','_createTitleView','5575270irjNok','getResourceIcon','trim','content','isInContext','URL','32vRekCc','DOCUMENT','231rjRwAw','extendTemplate','FILE','isVisible','TEXT','ck-ai-chat-resources__item-title','setTemplate','3253290Eplajg','resource'];_0x368b=function(){return _0x2c920a;};return _0x368b();}const _0x17516d=_0x5e0d;(function(_0x17e6f2,_0x170e60){const _0x201a2a=_0x5e0d,_0x5ae33d=_0x17e6f2();while(!![]){try{const _0x5cffdb=-parseInt(_0x201a2a(0x1d2))/0x1+-parseInt(_0x201a2a(0x1d0))/0x2*(parseInt(_0x201a2a(0x1eb))/0x3)+-parseInt(_0x201a2a(0x1d4))/0x4*(parseInt(_0x201a2a(0x1d3))/0x5)+parseInt(_0x201a2a(0x1c6))/0x6+parseInt(_0x201a2a(0x1cc))/0x7+-parseInt(_0x201a2a(0x1e9))/0x8*(-parseInt(_0x201a2a(0x1d8))/0x9)+parseInt(_0x201a2a(0x1e3))/0xa;if(_0x5cffdb===_0x170e60)break;else _0x5ae33d['push'](_0x5ae33d['shift']());}catch(_0x3db633){_0x5ae33d['push'](_0x5ae33d['shift']());}}}(_0x368b,0x45e58));import{HighlightedTextView as _0x3f7067,IconView as _0xd8ddda,ListItemView as _0x371271}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x104852}from'es-toolkit/compat';import{AIContextItemType as _0x3055c5}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x299abf,IconCheck as _0x1dde88,IconDocument as _0x448cbc,IconDocumentOutline as _0x46a736,IconLink as _0x5ec31b}from'@ckeditor/ckeditor5-icons';const zr=_0x17516d(0x1c8),Jr=_0x17516d(0x1d1),Kr=_0x17516d(0x1c4),Mr=_0x17516d(0x1cf);function _0x5e0d(_0x27ae19,_0x3d771e){const _0x368be8=_0x368b();return _0x5e0d=function(_0x5e0d10,_0x54222d){_0x5e0d10=_0x5e0d10-0x1c4;let _0x4dec83=_0x368be8[_0x5e0d10];return _0x4dec83;},_0x5e0d(_0x27ae19,_0x3d771e);}export class AIChatResourceListItemView extends _0x371271{[_0x17516d(0x1c7)];[_0x17516d(0x1ce)];[_0x17516d(0x1d6)];constructor(_0x1c5b55,_0x21479c){const _0x4843b9=_0x17516d;super(_0x1c5b55),this[_0x4843b9(0x1c7)]=_0x21479c,this[_0x4843b9(0x1da)](_0x4843b9(0x1e7),!!_0x21479c[_0x4843b9(0x1e7)]),this[_0x4843b9(0x1ce)]=this[_0x4843b9(0x1e2)](),this[_0x4843b9(0x1d6)]=this[_0x4843b9(0x1de)](),this[_0x4843b9(0x1d9)]();}[_0x17516d(0x1d7)](){const _0x4950e3=_0x17516d;super[_0x4950e3(0x1d7)]();}[_0x17516d(0x1e4)](_0x1a9fd4){const _0x2b5d86=_0x17516d;if(_0x1a9fd4[_0x2b5d86(0x1e7)])return _0x1dde88;switch(_0x1a9fd4[_0x2b5d86(0x1e0)]){case _0x3055c5[_0x2b5d86(0x1ea)]:return _0x448cbc;case _0x3055c5[_0x2b5d86(0x1e8)]:return _0x5ec31b;case _0x3055c5[_0x2b5d86(0x1ed)]:case _0x3055c5[_0x2b5d86(0x1ef)]:return _0x299abf;default:return _0x46a736;}}[_0x17516d(0x1d5)](_0x58eb01){const _0x4a9ec9=_0x17516d;if(!_0x58eb01||''===_0x58eb01[_0x4a9ec9(0x1e5)]())return void this[_0x4a9ec9(0x1ce)][_0x4a9ec9(0x1d5)](null);const _0x409e43=new RegExp(_0x104852(_0x58eb01),'gi');this[_0x4a9ec9(0x1ce)][_0x4a9ec9(0x1d5)](_0x409e43);}[_0x17516d(0x1cd)](_0x1ca117){const _0x4c8eee=_0x17516d;this[_0x4c8eee(0x1c7)][_0x4c8eee(0x1e7)]=_0x1ca117,this[_0x4c8eee(0x1e7)]=_0x1ca117,this[_0x4c8eee(0x1e1)]();}[_0x17516d(0x1e2)](){const _0xae93c=_0x17516d,_0x2b57d2=new _0x3f7067();return _0x2b57d2[_0xae93c(0x1c9)]=this[_0xae93c(0x1c7)][_0xae93c(0x1db)],_0x2b57d2[_0xae93c(0x1ec)]({'tag':_0xae93c(0x1cb),'attributes':{'class':[Kr]}}),_0x2b57d2;}[_0x17516d(0x1de)](){const _0x4cace8=_0x17516d,_0x1f0450=new _0xd8ddda();return _0x1f0450[_0x4cace8(0x1e6)]=this[_0x4cace8(0x1e4)](this[_0x4cace8(0x1c7)]),_0x1f0450;}[_0x17516d(0x1d9)](){const _0x3c3b85=_0x17516d,_0xdabc56=this[_0x3c3b85(0x1dd)];this[_0x3c3b85(0x1c5)]({'tag':_0x3c3b85(0x1df),'attributes':{'class':[zr,_0xdabc56['if'](_0x3c3b85(0x1ee),_0x3c3b85(0x1dc),_0x1720e6=>!_0x1720e6),_0xdabc56['if'](_0x3c3b85(0x1e7),Jr)]},'children':[{'tag':_0x3c3b85(0x1df),'attributes':{'class':[Mr]},'children':[this[_0x3c3b85(0x1d6)]]},this[_0x3c3b85(0x1ce)]],'on':{'click':_0xdabc56['to'](_0x3c3b85(0x1ca))}});}[_0x17516d(0x1e1)](){const _0x5e5c30=_0x17516d;this[_0x5e5c30(0x1d6)][_0x5e5c30(0x1e6)]=this[_0x5e5c30(0x1e4)](this[_0x5e5c30(0x1c7)]);}}
23
+ const _0x11855a=_0x1f78;(function(_0x4251ba,_0x15eec9){const _0x5a505f=_0x1f78,_0x3050ab=_0x4251ba();while(!![]){try{const _0x2474c0=parseInt(_0x5a505f(0x18a))/0x1*(parseInt(_0x5a505f(0x1b4))/0x2)+-parseInt(_0x5a505f(0x1a7))/0x3*(parseInt(_0x5a505f(0x198))/0x4)+parseInt(_0x5a505f(0x18b))/0x5*(-parseInt(_0x5a505f(0x19f))/0x6)+parseInt(_0x5a505f(0x18e))/0x7*(parseInt(_0x5a505f(0x189))/0x8)+parseInt(_0x5a505f(0x18d))/0x9+parseInt(_0x5a505f(0x1af))/0xa*(parseInt(_0x5a505f(0x1ac))/0xb)+-parseInt(_0x5a505f(0x1a0))/0xc;if(_0x2474c0===_0x15eec9)break;else _0x3050ab['push'](_0x3050ab['shift']());}catch(_0x53641e){_0x3050ab['push'](_0x3050ab['shift']());}}}(_0x4b0a,0x50f62));import{HighlightedTextView as _0xf23f28,IconView as _0x49330c,ListItemView as _0x4363fc}from'ckeditor5/src/ui.js';function _0x4b0a(){const _0x19528d=['_createIconView','ck-ai-chat-resources__item','isInContext','div','highlightText','ck-hidden','341832jtTQsF','3425028uDsrZx','content','getResourceIcon','bindTemplate','_iconView','_setupTemplate','span','859461Zhtmik','resource','_createTitleView','execute','FILE','25135ZFQMkr','type','render','310PLVzqQ','trim','text','updateResourceState','label','302478kmnoLW','ck-ai-chat-resources__item--in-context','URL','16olyhVw','3JKGfwm','15DuYECZ','TEXT','3657141rjPnGb','1505091CnZOqo','setTemplate','_titleView','extendTemplate','DOCUMENT','set','ck-ai-chat-resources__item-title','isVisible','_updateIcon','ck-ai-chat-resources__item__icon','8wRCqBM'];_0x4b0a=function(){return _0x19528d;};return _0x4b0a();}import{escapeRegExp as _0x3a44ff}from'es-toolkit/compat';import{AIContextItemType as _0x5e5566}from'../../../../aicore/model/aicontext.js';function _0x1f78(_0x51b18d,_0x1ac4f2){const _0x4b0aa2=_0x4b0a();return _0x1f78=function(_0x1f7831,_0x108feb){_0x1f7831=_0x1f7831-0x188;let _0x48d9a0=_0x4b0aa2[_0x1f7831];return _0x48d9a0;},_0x1f78(_0x51b18d,_0x1ac4f2);}import{IconFileUpload as _0x39dc13,IconCheck as _0x17120f,IconDocument as _0x3fa851,IconDocumentOutline as _0x48335b,IconLink as _0x3f1e0e}from'@ckeditor/ckeditor5-icons';const zr=_0x11855a(0x19a),Jr=_0x11855a(0x1b5),Kr=_0x11855a(0x194),Mr=_0x11855a(0x197);export class AIChatResourceListItemView extends _0x4363fc{[_0x11855a(0x1a8)];[_0x11855a(0x190)];[_0x11855a(0x1a4)];constructor(_0x242d56,_0x25842){const _0x554915=_0x11855a;super(_0x242d56),this[_0x554915(0x1a8)]=_0x25842,this[_0x554915(0x193)](_0x554915(0x19b),!!_0x25842[_0x554915(0x19b)]),this[_0x554915(0x190)]=this[_0x554915(0x1a9)](),this[_0x554915(0x1a4)]=this[_0x554915(0x199)](),this[_0x554915(0x1a5)]();}[_0x11855a(0x1ae)](){const _0x466fb7=_0x11855a;super[_0x466fb7(0x1ae)]();}[_0x11855a(0x1a2)](_0x15adbb){const _0xb6bb5=_0x11855a;if(_0x15adbb[_0xb6bb5(0x19b)])return _0x17120f;switch(_0x15adbb[_0xb6bb5(0x1ad)]){case _0x5e5566[_0xb6bb5(0x192)]:return _0x3fa851;case _0x5e5566[_0xb6bb5(0x188)]:return _0x3f1e0e;case _0x5e5566[_0xb6bb5(0x1ab)]:case _0x5e5566[_0xb6bb5(0x18c)]:return _0x39dc13;default:return _0x48335b;}}[_0x11855a(0x19d)](_0x2d9f13){const _0x2143ec=_0x11855a;if(!_0x2d9f13||''===_0x2d9f13[_0x2143ec(0x1b0)]())return void this[_0x2143ec(0x190)][_0x2143ec(0x19d)](null);const _0x556b84=new RegExp(_0x3a44ff(_0x2d9f13),'gi');this[_0x2143ec(0x190)][_0x2143ec(0x19d)](_0x556b84);}[_0x11855a(0x1b2)](_0x1be113){const _0xd62d2a=_0x11855a;this[_0xd62d2a(0x1a8)][_0xd62d2a(0x19b)]=_0x1be113,this[_0xd62d2a(0x19b)]=_0x1be113,this[_0xd62d2a(0x196)]();}[_0x11855a(0x1a9)](){const _0x218ba1=_0x11855a,_0x4c254a=new _0xf23f28();return _0x4c254a[_0x218ba1(0x1b1)]=this[_0x218ba1(0x1a8)][_0x218ba1(0x1b3)],_0x4c254a[_0x218ba1(0x191)]({'tag':_0x218ba1(0x1a6),'attributes':{'class':[Kr]}}),_0x4c254a;}[_0x11855a(0x199)](){const _0x381116=_0x11855a,_0x43f884=new _0x49330c();return _0x43f884[_0x381116(0x1a1)]=this[_0x381116(0x1a2)](this[_0x381116(0x1a8)]),_0x43f884;}[_0x11855a(0x1a5)](){const _0x1c82f0=_0x11855a,_0x1fbf56=this[_0x1c82f0(0x1a3)];this[_0x1c82f0(0x18f)]({'tag':_0x1c82f0(0x19c),'attributes':{'class':[zr,_0x1fbf56['if'](_0x1c82f0(0x195),_0x1c82f0(0x19e),_0x3bade4=>!_0x3bade4),_0x1fbf56['if'](_0x1c82f0(0x19b),Jr)]},'children':[{'tag':_0x1c82f0(0x19c),'attributes':{'class':[Mr]},'children':[this[_0x1c82f0(0x1a4)]]},this[_0x1c82f0(0x190)]],'on':{'click':_0x1fbf56['to'](_0x1c82f0(0x1aa))}});}[_0x11855a(0x196)](){const _0x135344=_0x11855a;this[_0x135344(0x1a4)][_0x135344(0x1a1)]=this[_0x135344(0x1a2)](this[_0x135344(0x1a8)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x10cb88,IconView as _0x35936e,LabeledFieldView as _0x47b944,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x18f62b,IconCancel as _0x5cb406}from'ckeditor5/src/icons.js';import{getTranslation as _0x138f49}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x47b944{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x28d829){const t=_0x28d829['t'],_0x125a63={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x138f49(_0x28d829,'AI_CHAT_SEARCH_RESOURCES')};super(_0x28d829,_0x125a63['creator']),this['label']=_0x125a63['label'],this['_viewConfig']=_0x125a63,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x28d829,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x35cfdd){this['fire']('search',_0x35cfdd);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x35936e(),this['iconView']['content']=_0x18f62b,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x272ada,t){this['resetButtonView']=new _0x10cb88(_0x272ada),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x5cb406,'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',_0xe5bd46=>!_0xe5bd46),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 _0x1e5330,IconView as _0x12b84a,LabeledFieldView as _0x282335,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x18ec0e,IconCancel as _0x413977}from'ckeditor5/src/icons.js';import{getTranslation as _0x328cf9}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x282335{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x5dee5e){const t=_0x5dee5e['t'],_0x43f362={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x328cf9(_0x5dee5e,'AI_CHAT_SEARCH_RESOURCES')};super(_0x5dee5e,_0x43f362['creator']),this['label']=_0x43f362['label'],this['_viewConfig']=_0x43f362,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x5dee5e,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x40a6dc){this['fire']('search',_0x40a6dc);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x12b84a(),this['iconView']['content']=_0x18ec0e,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x4de887,t){this['resetButtonView']=new _0x1e5330(_0x4de887),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x413977,'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',_0x549dd1=>!_0x549dd1),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 _0x430b39=_0x42de;(function(_0x109748,_0x22c4f7){const _0x19a424=_0x42de,_0x401b5b=_0x109748();while(!![]){try{const _0x428376=-parseInt(_0x19a424(0x1f4))/0x1*(parseInt(_0x19a424(0x1f6))/0x2)+-parseInt(_0x19a424(0x207))/0x3+parseInt(_0x19a424(0x1ed))/0x4*(-parseInt(_0x19a424(0x204))/0x5)+parseInt(_0x19a424(0x1f0))/0x6+parseInt(_0x19a424(0x1ef))/0x7*(-parseInt(_0x19a424(0x1f5))/0x8)+-parseInt(_0x19a424(0x206))/0x9+parseInt(_0x19a424(0x1ff))/0xa*(parseInt(_0x19a424(0x1fc))/0xb);if(_0x428376===_0x22c4f7)break;else _0x401b5b['push'](_0x401b5b['shift']());}catch(_0x5a37f7){_0x401b5b['push'](_0x401b5b['shift']());}}}(_0xf614,0xa9bf4));import{IconBulb as _0x2be55a,IconWeb as _0x4431bd}from'@ckeditor/ckeditor5-icons';import{IconView as _0x487eb9,View as _0x18de27}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x530f69}from'./aichatfeeditemview.js';function _0x42de(_0x4aeac2,_0x1d35fd){const _0xf61498=_0xf614();return _0x42de=function(_0x42deac,_0x450e1b){_0x42deac=_0x42deac-0x1ed;let _0x2d7347=_0xf61498[_0x42deac];return _0x2d7347;},_0x42de(_0x4aeac2,_0x1d35fd);}import{getTranslation as _0x30495e}from'../../../aicore/utils/common-translations.js';function _0xf614(){const _0x11c3da=['AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','155950eNBaaD','ck-hidden','9345384LRkAdr','4112517eiIBwz','100deTKBl','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','112AtvlxN','7745484gRIDbR','extendTemplate','ck-ai-chat__feed__interaction-header__capabilities__text','add','1JAgEiT','217960gkNjfI','70692tDtEXE','div','ck-ai-chat__feed__interaction-header__capabilities','span','capabilities','content','33710611zegGLQ','ck-ai-chat__feed__interaction-header','push','10RQtozx','setTemplate','children'];_0xf614=function(){return _0x11c3da;};return _0xf614();}export class AIChatFeedInteractionHeaderView extends _0x530f69{[_0x430b39(0x1fa)];constructor(_0x817a75,_0x1deec0){const _0x20b9d0=_0x430b39;super(_0x1deec0);const {isWebSearchEnabled:_0x1dbf33,isReasoningEnabled:_0x1af8bc}=_0x1deec0[_0x20b9d0(0x1fa)],_0xd9cf30=[];let _0x285c42='';_0x1dbf33&&_0x1af8bc?(_0x285c42=_0x30495e(_0x817a75,_0x20b9d0(0x1ee)),_0xd9cf30[_0x20b9d0(0x1fe)](aa(_0x4431bd)),_0xd9cf30[_0x20b9d0(0x1fe)](aa(_0x2be55a))):_0x1dbf33?(_0x285c42=_0x30495e(_0x817a75,_0x20b9d0(0x203)),_0xd9cf30[_0x20b9d0(0x1fe)](aa(_0x4431bd))):_0x1af8bc&&(_0x285c42=_0x30495e(_0x817a75,_0x20b9d0(0x202)),_0xd9cf30[_0x20b9d0(0x1fe)](aa(_0x2be55a))),this[_0x20b9d0(0x1f1)]({'attributes':{'class':[_0x20b9d0(0x1fd),_0x285c42?'':_0x20b9d0(0x205)]}});const _0x3d04bb=new _0x18de27();_0x3d04bb[_0x20b9d0(0x200)]({'tag':_0x20b9d0(0x1f7),'attributes':{'class':['ck',_0x20b9d0(0x1f8)]},'children':[..._0xd9cf30,{'tag':_0x20b9d0(0x1f9),'attributes':{'class':[_0x20b9d0(0x1f2)]},'children':[_0x285c42]}]}),this[_0x20b9d0(0x201)][_0x20b9d0(0x1f3)](_0x3d04bb),this[_0x20b9d0(0x1fa)]=_0x1deec0[_0x20b9d0(0x1fa)];}}function aa(_0x3db01a){const _0x5a981f=_0x430b39,_0x2acc01=new _0x487eb9();return _0x2acc01[_0x5a981f(0x1fb)]=_0x3db01a,_0x2acc01;}
23
+ const _0x234f35=_0x35e1;function _0xf336(){const _0x4b7121=['666395ksUFca','push','add','children','ck-ai-chat__feed__interaction-header','extendTemplate','ck-ai-chat__feed__interaction-header__capabilities__text','div','1569632xuMIox','189cQxozg','658780cYQmTt','ck-hidden','capabilities','5080JucwWv','span','setTemplate','2716NYeBTr','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','ck-ai-chat__feed__interaction-header__capabilities','2784620wailLo','content','548635jmvTLf','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','431427XoeLvf','6BJYUrl'];_0xf336=function(){return _0x4b7121;};return _0xf336();}(function(_0x5e3475,_0x5dc3ab){const _0x2b0d20=_0x35e1,_0x42bec1=_0x5e3475();while(!![]){try{const _0x2fddfc=parseInt(_0x2b0d20(0x14a))/0x1+parseInt(_0x2b0d20(0x157))/0x2+parseInt(_0x2b0d20(0x14d))/0x3+parseInt(_0x2b0d20(0x148))/0x4+-parseInt(_0x2b0d20(0x14f))/0x5*(parseInt(_0x2b0d20(0x14e))/0x6)+parseInt(_0x2b0d20(0x145))/0x7*(-parseInt(_0x2b0d20(0x15c))/0x8)+-parseInt(_0x2b0d20(0x158))/0x9*(parseInt(_0x2b0d20(0x159))/0xa);if(_0x2fddfc===_0x5dc3ab)break;else _0x42bec1['push'](_0x42bec1['shift']());}catch(_0x396953){_0x42bec1['push'](_0x42bec1['shift']());}}}(_0xf336,0x642ce));import{IconBulb as _0x320d2e,IconWeb as _0x405a7d}from'@ckeditor/ckeditor5-icons';import{IconView as _0x380a26,View as _0x5af906}from'ckeditor5/src/ui.js';function _0x35e1(_0x2d2d49,_0xa61f60){const _0xf33675=_0xf336();return _0x35e1=function(_0x35e11f,_0x47f2ff){_0x35e11f=_0x35e11f-0x145;let _0x14dbf6=_0xf33675[_0x35e11f];return _0x14dbf6;},_0x35e1(_0x2d2d49,_0xa61f60);}import{AIChatFeedItemView as _0x36801a}from'./aichatfeeditemview.js';import{getTranslation as _0x1ac9f5}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x36801a{[_0x234f35(0x15b)];constructor(_0x18ab4f,_0x54ac3e){const _0x570345=_0x234f35;super(_0x54ac3e);const {isWebSearchEnabled:_0x5e1ead,isReasoningEnabled:_0x12b5b5}=_0x54ac3e[_0x570345(0x15b)],_0x170ba1=[];let _0x40bc75='';_0x5e1ead&&_0x12b5b5?(_0x40bc75=_0x1ac9f5(_0x18ab4f,_0x570345(0x14b)),_0x170ba1[_0x570345(0x150)](aa(_0x405a7d)),_0x170ba1[_0x570345(0x150)](aa(_0x320d2e))):_0x5e1ead?(_0x40bc75=_0x1ac9f5(_0x18ab4f,_0x570345(0x14c)),_0x170ba1[_0x570345(0x150)](aa(_0x405a7d))):_0x12b5b5&&(_0x40bc75=_0x1ac9f5(_0x18ab4f,_0x570345(0x146)),_0x170ba1[_0x570345(0x150)](aa(_0x320d2e))),this[_0x570345(0x154)]({'attributes':{'class':[_0x570345(0x153),_0x40bc75?'':_0x570345(0x15a)]}});const _0x4ff502=new _0x5af906();_0x4ff502[_0x570345(0x15e)]({'tag':_0x570345(0x156),'attributes':{'class':['ck',_0x570345(0x147)]},'children':[..._0x170ba1,{'tag':_0x570345(0x15d),'attributes':{'class':[_0x570345(0x155)]},'children':[_0x40bc75]}]}),this[_0x570345(0x152)][_0x570345(0x151)](_0x4ff502),this[_0x570345(0x15b)]=_0x54ac3e[_0x570345(0x15b)];}}function aa(_0x496b8e){const _0x4e5ace=_0x234f35,_0x365392=new _0x380a26();return _0x365392[_0x4e5ace(0x149)]=_0x496b8e,_0x365392;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ef4ac=_0x456d;(function(_0x553875,_0x1c3cec){const _0x4fc267=_0x456d,_0x21b071=_0x553875();while(!![]){try{const _0x4cfa1e=-parseInt(_0x4fc267(0xc3))/0x1*(-parseInt(_0x4fc267(0xaa))/0x2)+parseInt(_0x4fc267(0xb6))/0x3*(parseInt(_0x4fc267(0xae))/0x4)+parseInt(_0x4fc267(0xc2))/0x5+-parseInt(_0x4fc267(0xc9))/0x6+-parseInt(_0x4fc267(0xbd))/0x7+parseInt(_0x4fc267(0xb7))/0x8+-parseInt(_0x4fc267(0xba))/0x9;if(_0x4cfa1e===_0x1c3cec)break;else _0x21b071['push'](_0x21b071['shift']());}catch(_0x47d343){_0x21b071['push'](_0x21b071['shift']());}}}(_0x7f07,0x4e649));import{AIChatFeedItemView as _0x250ee2}from'./aichatfeeditemview.js';import{parse as _0x1b1c24,render as _0x4269d6}from'../../../aicore/utils/htmlparser.js';function _0x456d(_0xadb9a8,_0x3e137b){const _0x7f072=_0x7f07();return _0x456d=function(_0x456df3,_0x206ef3){_0x456df3=_0x456df3-0xa7;let _0x2b8e9e=_0x7f072[_0x456df3];return _0x2b8e9e;},_0x456d(_0xadb9a8,_0x3e137b);}import{View as _0x821227}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x408d91,AIWebSourceView as _0x3a4f02}from'../../../aicore/ui/suggestioncontainer/aiwebsourcesview.js';function _0x7f07(){const _0xda28b=['135946aFUoRI','balloonPanelView','setTemplate','initialContent','390604KPjmrG','add','locale','addMany','streamIntoElement','markAsDone','updateSources','element','3nmcSdw','4944480pyqjUr','render','static','10111032gsdkWU','isVisible','ck-ai-chat__feed__ai-reply','132475CKuddO','innerHTML','options','children','updateContent','2218525SGlRiE','7jyYfHW','map','streaming','replyContainer','ck-ai-chat__feed__ai-reply-container','div','1030542OKYros','extendTemplate','ck-reset_all-excluded','_bodyCollection'];_0x7f07=function(){return _0xda28b;};return _0x7f07();}export class AIChatFeedReplyItemView extends _0x250ee2{[_0x2ef4ac(0xc6)];[_0x2ef4ac(0xa9)];constructor(_0x1b9539,_0x4cde17,_0x502781){const _0x26617f=_0x2ef4ac;super(_0x4cde17),this[_0x26617f(0xa9)]=_0x502781,this[_0x26617f(0xb0)]=_0x1b9539,this[_0x26617f(0xa7)]({'attributes':{'class':[_0x26617f(0xbc)]}}),this[_0x26617f(0xc6)]=new _0x821227(),this[_0x26617f(0xc6)][_0x26617f(0xac)]({'tag':_0x26617f(0xc8),'attributes':{'class':['ck',_0x26617f(0xa8),_0x26617f(0xc7)]}}),this[_0x26617f(0xc0)][_0x26617f(0xaf)](this[_0x26617f(0xc6)]);}async[_0x2ef4ac(0xb8)](){const _0x4a4fb3=_0x2ef4ac;super[_0x4a4fb3(0xb8)](),this[_0x4a4fb3(0xbf)][_0x4a4fb3(0xad)]&&(await this[_0x4a4fb3(0xc1)]({'parsedContent':_0x1b1c24(this[_0x4a4fb3(0xbf)][_0x4a4fb3(0xad)]),'renderingStrategy':_0x4a4fb3(0xb9)}),this[_0x4a4fb3(0xb3)]());}async[_0x2ef4ac(0xc1)]({parsedContent:_0x233bea,renderingStrategy:_0x58ff55,abortSignal:_0x5c0665}){const _0x22d323=_0x2ef4ac;_0x22d323(0xc5)===_0x58ff55?await this[_0x22d323(0xb2)](_0x233bea,this[_0x22d323(0xc6)][_0x22d323(0xb5)],_0x5c0665):this[_0x22d323(0xc6)][_0x22d323(0xb5)][_0x22d323(0xbe)]=_0x4269d6(_0x233bea);}[_0x2ef4ac(0xb4)](_0x1ba4b8){const _0x28d9d8=_0x2ef4ac,_0x361693=new _0x408d91(this[_0x28d9d8(0xb0)],this[_0x28d9d8(0xa9)]);_0x361693[_0x28d9d8(0xc0)][_0x28d9d8(0xb1)](_0x1ba4b8[_0x28d9d8(0xc4)](_0x473fcc=>new _0x3a4f02(this[_0x28d9d8(0xb0)],_0x473fcc,_0x361693[_0x28d9d8(0xab)]))),_0x361693[_0x28d9d8(0xbb)]=!0x0,this[_0x28d9d8(0xc0)][_0x28d9d8(0xaf)](_0x361693);}}
23
+ const _0x38681d=_0x52d1;(function(_0x696f70,_0x2b51b2){const _0x1246be=_0x52d1,_0x326d63=_0x696f70();while(!![]){try{const _0x538f8=-parseInt(_0x1246be(0x1eb))/0x1*(-parseInt(_0x1246be(0x1e7))/0x2)+parseInt(_0x1246be(0x1e1))/0x3+parseInt(_0x1246be(0x1f6))/0x4+-parseInt(_0x1246be(0x1ed))/0x5*(-parseInt(_0x1246be(0x1ef))/0x6)+parseInt(_0x1246be(0x1ee))/0x7+parseInt(_0x1246be(0x1e4))/0x8*(parseInt(_0x1246be(0x1ec))/0x9)+-parseInt(_0x1246be(0x1f4))/0xa*(parseInt(_0x1246be(0x203))/0xb);if(_0x538f8===_0x2b51b2)break;else _0x326d63['push'](_0x326d63['shift']());}catch(_0xc6f0e3){_0x326d63['push'](_0x326d63['shift']());}}}(_0xe6d6,0xe0d2e));function _0xe6d6(){const _0x1290fe=['add','setTemplate','markAsDone','addMany','6538450PfFhXu','div','5884540IvRCle','streamIntoElement','extendTemplate','static','render','updateContent','initialContent','ck-ai-chat__feed__ai-reply-container','options','isVisible','_bodyCollection','children','locale','110dHYWUw','map','balloonPanelView','5492541zAlseQ','element','replyContainer','16dVWhxQ','streaming','ck-ai-chat__feed__ai-reply','14ESHPHQ','innerHTML','ck-reset_all-excluded','updateSources','145678dkQdFu','2501703vBQvur','664410okDauJ','7839748bWeaMu','66TQRRlu'];_0xe6d6=function(){return _0x1290fe;};return _0xe6d6();}import{AIChatFeedItemView as _0x440c10}from'./aichatfeeditemview.js';import{parse as _0x2ff28b,render as _0x216d2c}from'../../../aicore/utils/htmlparser.js';function _0x52d1(_0x3a02e4,_0x44d1bd){const _0xe6d6a9=_0xe6d6();return _0x52d1=function(_0x52d149,_0x565101){_0x52d149=_0x52d149-0x1e1;let _0x5a7b0a=_0xe6d6a9[_0x52d149];return _0x5a7b0a;},_0x52d1(_0x3a02e4,_0x44d1bd);}import{View as _0x20db54}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x333a57,AIWebSourceView as _0x550881}from'../../../aicore/ui/suggestioncontainer/aiwebsourcesview.js';export class AIChatFeedReplyItemView extends _0x440c10{[_0x38681d(0x1e3)];[_0x38681d(0x200)];constructor(_0xd65595,_0x2668a0,_0x4c0d5e){const _0x574096=_0x38681d;super(_0x2668a0),this[_0x574096(0x200)]=_0x4c0d5e,this[_0x574096(0x202)]=_0xd65595,this[_0x574096(0x1f8)]({'attributes':{'class':[_0x574096(0x1e6)]}}),this[_0x574096(0x1e3)]=new _0x20db54(),this[_0x574096(0x1e3)][_0x574096(0x1f1)]({'tag':_0x574096(0x1f5),'attributes':{'class':['ck',_0x574096(0x1e9),_0x574096(0x1fd)]}}),this[_0x574096(0x201)][_0x574096(0x1f0)](this[_0x574096(0x1e3)]);}async[_0x38681d(0x1fa)](){const _0x2ba42d=_0x38681d;super[_0x2ba42d(0x1fa)](),this[_0x2ba42d(0x1fe)][_0x2ba42d(0x1fc)]&&(await this[_0x2ba42d(0x1fb)]({'parsedContent':_0x2ff28b(this[_0x2ba42d(0x1fe)][_0x2ba42d(0x1fc)]),'renderingStrategy':_0x2ba42d(0x1f9)}),this[_0x2ba42d(0x1f2)]());}async[_0x38681d(0x1fb)]({parsedContent:_0x28b1a8,renderingStrategy:_0x252fbb,abortSignal:_0x5d12f3}){const _0x404b07=_0x38681d;_0x404b07(0x1e5)===_0x252fbb?await this[_0x404b07(0x1f7)](_0x28b1a8,this[_0x404b07(0x1e3)][_0x404b07(0x1e2)],_0x5d12f3):this[_0x404b07(0x1e3)][_0x404b07(0x1e2)][_0x404b07(0x1e8)]=_0x216d2c(_0x28b1a8);}[_0x38681d(0x1ea)](_0x2b2176){const _0x554561=_0x38681d,_0x56e69b=new _0x333a57(this[_0x554561(0x202)],this[_0x554561(0x200)]);_0x56e69b[_0x554561(0x201)][_0x554561(0x1f3)](_0x2b2176[_0x554561(0x204)](_0x291b73=>new _0x550881(this[_0x554561(0x202)],_0x291b73,_0x56e69b[_0x554561(0x205)]))),_0x56e69b[_0x554561(0x1ff)]=!0x0,this[_0x554561(0x201)][_0x554561(0x1f0)](_0x56e69b);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14cc91=_0x3cc0;(function(_0x2f5e3f,_0x32a344){const _0x5472ce=_0x3cc0,_0x19902a=_0x2f5e3f();while(!![]){try{const _0x22ec37=-parseInt(_0x5472ce(0x98))/0x1+parseInt(_0x5472ce(0x88))/0x2+-parseInt(_0x5472ce(0x8d))/0x3+parseInt(_0x5472ce(0x94))/0x4*(parseInt(_0x5472ce(0x89))/0x5)+-parseInt(_0x5472ce(0x9c))/0x6+parseInt(_0x5472ce(0x93))/0x7*(-parseInt(_0x5472ce(0x8b))/0x8)+parseInt(_0x5472ce(0x87))/0x9*(parseInt(_0x5472ce(0x8e))/0xa);if(_0x22ec37===_0x32a344)break;else _0x19902a['push'](_0x19902a['shift']());}catch(_0x574eb0){_0x19902a['push'](_0x19902a['shift']());}}}(_0x58b0,0x736ce));import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3163e1}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x3163e1,_0x14cc91(0x8a),_0x14cc91(0x96),_0x14cc91(0x9e),_0x14cc91(0x99),_0x14cc91(0x9a),_0x14cc91(0x95),_0x14cc91(0x92),_0x14cc91(0x90),_0x14cc91(0x91),_0x14cc91(0x8f),_0x14cc91(0x8c),_0x14cc91(0x9d),_0x14cc91(0x9b),_0x14cc91(0x97)];function _0x3cc0(_0x420fba,_0x3bc8b6){const _0x58b0a9=_0x58b0();return _0x3cc0=function(_0x3cc0dd,_0x45278c){_0x3cc0dd=_0x3cc0dd-0x87;let _0xca25e1=_0x58b0a9[_0x3cc0dd];return _0xca25e1;},_0x3cc0(_0x420fba,_0x3bc8b6);}function _0x58b0(){const _0x3b457c=['addResourceToContext','addUrlToContext','478891NuLTIR','880468zFleuF','addFileToContext','resizeTabs','selectModel','144314NfHLnG','abortPromptStream','addDocumentToContext','toggleReasoning','4320150SMSnAv','toggleWebSearch','sendUserMessage','117UNdKeM','691608fLeLXm','5OvehkM','startConversation','8CVHUdE','loadSourceResources','1358346ccyMdh','994150UNEyGd','removeContextItem','executeCustomItemCallback'];_0x58b0=function(){return _0x3b457c;};return _0x58b0();}
23
+ const _0xede662=_0x524c;(function(_0x2ae33f,_0x458342){const _0x5ccbae=_0x524c,_0x45cc85=_0x2ae33f();while(!![]){try{const _0x188234=parseInt(_0x5ccbae(0x15a))/0x1+-parseInt(_0x5ccbae(0x152))/0x2+parseInt(_0x5ccbae(0x158))/0x3+parseInt(_0x5ccbae(0x14f))/0x4*(-parseInt(_0x5ccbae(0x156))/0x5)+-parseInt(_0x5ccbae(0x165))/0x6*(parseInt(_0x5ccbae(0x15f))/0x7)+-parseInt(_0x5ccbae(0x155))/0x8+parseInt(_0x5ccbae(0x157))/0x9*(parseInt(_0x5ccbae(0x154))/0xa);if(_0x188234===_0x458342)break;else _0x45cc85['push'](_0x45cc85['shift']());}catch(_0x404714){_0x45cc85['push'](_0x45cc85['shift']());}}}(_0x2795,0x304f0));function _0x2795(){const _0x383d06=['477186zFCOPQ','addResourceToContext','8ZiGwER','abortPromptStream','resizeTabs','308434RgUDGl','addDocumentToContext','30zOvRKJ','3143400oqRUPx','339070AkVnMZ','1939716pjkYNU','876669MQZWaq','executeCustomItemCallback','21378CKDrhB','startConversation','toggleReasoning','loadSourceResources','toggleWebSearch','7mmNBAi','sendUserMessage','removeContextItem','addUrlToContext','selectModel','addFileToContext'];_0x2795=function(){return _0x383d06;};return _0x2795();}function _0x524c(_0x20e2ef,_0xff8403){const _0x27955e=_0x2795();return _0x524c=function(_0x524c0c,_0x813856){_0x524c0c=_0x524c0c-0x14f;let _0x59d03c=_0x27955e[_0x524c0c];return _0x59d03c;},_0x524c(_0x20e2ef,_0xff8403);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x593c74}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x593c74,_0xede662(0x15b),_0xede662(0x151),_0xede662(0x160),_0xede662(0x150),_0xede662(0x153),_0xede662(0x164),_0xede662(0x162),_0xede662(0x159),_0xede662(0x166),_0xede662(0x161),_0xede662(0x15d),_0xede662(0x15e),_0xede662(0x15c),_0xede662(0x163)];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xa71f38=_0x2603;(function(_0x206ea1,_0x1686b8){var _0x57c7f0=_0x2603,_0x474039=_0x206ea1();while(!![]){try{var _0x5860fd=parseInt(_0x57c7f0(0x187))/0x1*(-parseInt(_0x57c7f0(0x185))/0x2)+parseInt(_0x57c7f0(0x18c))/0x3+parseInt(_0x57c7f0(0x17f))/0x4*(parseInt(_0x57c7f0(0x180))/0x5)+-parseInt(_0x57c7f0(0x18d))/0x6+-parseInt(_0x57c7f0(0x18b))/0x7+parseInt(_0x57c7f0(0x183))/0x8*(parseInt(_0x57c7f0(0x186))/0x9)+parseInt(_0x57c7f0(0x184))/0xa;if(_0x5860fd===_0x1686b8)break;else _0x474039['push'](_0x474039['shift']());}catch(_0x35f3bb){_0x474039['push'](_0x474039['shift']());}}}(_0x2f67,0x9d2ee));import{ContextPlugin as _0x96d504}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x25b1d6}from'./aichathistorycontroller.js';function _0x2f67(){var _0x282fca=['712HfBVqN','10135VEoWBA','requires','pluginName','5033416NxviQn','13042150adYKdj','14162jRwsrU','18ZtMoDM','155wbTBsE','AIChatHistory','isOfficialPlugin','isPremiumPlugin','3306457nzbgZY','82575uXKkcr','4423032hLjHUC'];_0x2f67=function(){return _0x282fca;};return _0x2f67();}import{AIChatHistoryUI as _0x45d65d}from'./aichathistoryui.js';function _0x2603(_0x4a5b9f,_0x56a281){var _0x2f67c2=_0x2f67();return _0x2603=function(_0x2603a6,_0x5502d0){_0x2603a6=_0x2603a6-0x17f;var _0xb56ef7=_0x2f67c2[_0x2603a6];return _0xb56ef7;},_0x2603(_0x4a5b9f,_0x56a281);}export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x96d504{static get[_0xa71f38(0x181)](){return[_0x25b1d6,_0x45d65d];}static get[_0xa71f38(0x182)](){var _0x54f2a6=_0xa71f38;return _0x54f2a6(0x188);}static get[_0xa71f38(0x189)](){return!0x0;}static get[_0xa71f38(0x18a)](){return!0x0;}}
23
+ var _0x5a7d46=_0x5f26;(function(_0x40ab76,_0x44cde6){var _0x1f2b0a=_0x5f26,_0x422a9b=_0x40ab76();while(!![]){try{var _0x36b98c=parseInt(_0x1f2b0a(0x165))/0x1*(-parseInt(_0x1f2b0a(0x164))/0x2)+parseInt(_0x1f2b0a(0x163))/0x3*(parseInt(_0x1f2b0a(0x15c))/0x4)+-parseInt(_0x1f2b0a(0x153))/0x5*(-parseInt(_0x1f2b0a(0x160))/0x6)+-parseInt(_0x1f2b0a(0x15b))/0x7*(-parseInt(_0x1f2b0a(0x158))/0x8)+parseInt(_0x1f2b0a(0x15a))/0x9*(parseInt(_0x1f2b0a(0x159))/0xa)+parseInt(_0x1f2b0a(0x15f))/0xb*(parseInt(_0x1f2b0a(0x157))/0xc)+-parseInt(_0x1f2b0a(0x15e))/0xd*(parseInt(_0x1f2b0a(0x15d))/0xe);if(_0x36b98c===_0x44cde6)break;else _0x422a9b['push'](_0x422a9b['shift']());}catch(_0x1282eb){_0x422a9b['push'](_0x422a9b['shift']());}}}(_0x13f3,0xce1cc));import{ContextPlugin as _0x4f2637}from'ckeditor5/src/core.js';function _0x13f3(){var _0x38c67c=['isPremiumPlugin','isOfficialPlugin','206979HMHlPW','56120hvyCGU','35iiJiId','5spdxwX','pluginName','AIChatHistory','requires','16688208mAGPrf','1552sBPVZF','1518850QQBItd','9eLCiFO','20965PJRtqQ','52VzHmrL','14BERmoR','28872441pdHCKD','11QgvfqJ','6160710MqHaVm'];_0x13f3=function(){return _0x38c67c;};return _0x13f3();}import{AIChatHistoryController as _0x530653}from'./aichathistorycontroller.js';function _0x5f26(_0x23c87c,_0x172a2a){var _0x13f36e=_0x13f3();return _0x5f26=function(_0x5f26bb,_0x786245){_0x5f26bb=_0x5f26bb-0x153;var _0x28a472=_0x13f36e[_0x5f26bb];return _0x28a472;},_0x5f26(_0x23c87c,_0x172a2a);}import{AIChatHistoryUI as _0x33d93a}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x4f2637{static get[_0x5a7d46(0x156)](){return[_0x530653,_0x33d93a];}static get[_0x5a7d46(0x154)](){var _0xf10f4a=_0x5a7d46;return _0xf10f4a(0x155);}static get[_0x5a7d46(0x162)](){return!0x0;}static get[_0x5a7d46(0x161)](){return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c40a2=_0x2322;function _0x463b(){const _0x5b28db=['get','_aiChatController','setConversationPinned','selectConversation','getItem','AI_CHAT_HISTORY_CATEGORY_LATER','getItems','updateItemLoadingState','_showConversationHistory','updateItemPinned','_handleHistoryErrorUI','createdAt','push','isOfficialPlugin','3240904PRxfWW','removeItem','history','requires','plugins','activateTab:history','pinned','removeConversation','resize','activateTab','_handleRemove','operation','locale','_handleEditTitle','init','remove','488344rLbRVa','editConversationTitle','380930gohwUx','_aiChatHistoryUi','AI_CHAT_HISTORY_ERROR_GENERIC','getGroupId','pluginName','view','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','updates','getDate','_setIsMaximized','activeConversation','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','_getCategorizedItems','isPremiumPlugin','length','AI_CHAT_HISTORY_CATEGORY_TODAY','itemRemoved','removeHistoryItem','updateItems','error','_updateHistoryItemsUI','_generateErrorMessage','AIChatHistoryController','setLoadingSkeleton','loadItems','getMonth','resizeTabs','updateItemTitle','AI_CHAT_UNTITLED_CONVERSATION','setIsMaximized','7ZXNAtm','setDate','toLocaleDateString','title','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','AI_CHAT_HISTORY_PIN_ACTION','items','48399MlvKkT','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','AI_CHAT_HISTORY_CATEGORY_PINNED','195509FVLrON','rename','resizedTabs','_setItemLoading','itemUpdated','listenTo','AI_CHAT_HISTORY_UNPIN_ACTION','itemId','change:activeConversation','itemsLoaded','getFullYear','loadConversation','25mSETkM','_handleTogglePin','460PpPKMN','654198pakXQH','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','_aiConnector','openChat','_clearItemLoading','76pGFItT','68967cXarzJ','chat','unpin','map','showError','handleRemovedConversation','_handleSelectConversation','pin','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','context'];_0x463b=function(){return _0x5b28db;};return _0x463b();}(function(_0x4cc8ee,_0x1e253d){const _0xeb95d6=_0x2322,_0x2b279b=_0x4cc8ee();while(!![]){try{const _0x1b7f45=-parseInt(_0xeb95d6(0xc6))/0x1+parseInt(_0xeb95d6(0xda))/0x2*(parseInt(_0xeb95d6(0xc3))/0x3)+-parseInt(_0xeb95d6(0x103))/0x4*(-parseInt(_0xeb95d6(0xd2))/0x5)+parseInt(_0xeb95d6(0xd5))/0x6+-parseInt(_0xeb95d6(0xbc))/0x7*(parseInt(_0xeb95d6(0xf3))/0x8)+-parseInt(_0xeb95d6(0xdb))/0x9*(parseInt(_0xeb95d6(0xd4))/0xa)+-parseInt(_0xeb95d6(0x105))/0xb;if(_0x1b7f45===_0x1e253d)break;else _0x2b279b['push'](_0x2b279b['shift']());}catch(_0x564a9d){_0x2b279b['push'](_0x2b279b['shift']());}}}(_0x463b,0x542bf));import{ContextPlugin as _0xfaaf63}from'ckeditor5/src/core.js';import{AIConnector as _0x584354}from'../aicore/aiconnector.js';import{AIChatController as _0x4197ee}from'../aichat/aichatcontroller.js';import{AITabs as _0x129c5d}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x423a9b}from'./aichathistoryui.js';function _0x2322(_0x32c420,_0x4cf989){const _0x463b4a=_0x463b();return _0x2322=function(_0x2322ee,_0x4e1e4f){_0x2322ee=_0x2322ee-0xbb;let _0x580023=_0x463b4a[_0x2322ee];return _0x580023;},_0x2322(_0x32c420,_0x4cf989);}import{AIChatHistoryConversations as _0x2279c0}from'./model/aichathistoryconversations.js';import{getTranslation as _0x9bb15c}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0xfaaf63{[_0x3c40a2(0xd7)];[_0x3c40a2(0x106)];[_0x3c40a2(0xe6)];static get[_0x3c40a2(0xf6)](){return[_0x584354,_0x4197ee,_0x423a9b,_0x129c5d];}static get[_0x3c40a2(0x109)](){const _0x2dd5dd=_0x3c40a2;return _0x2dd5dd(0x11b);}static get[_0x3c40a2(0xf2)](){return!0x0;}static get[_0x3c40a2(0x112)](){return!0x0;}[_0x3c40a2(0x101)](){const _0x381f6c=_0x3c40a2;this[_0x381f6c(0xd7)]=this[_0x381f6c(0xe4)][_0x381f6c(0xf7)][_0x381f6c(0xe5)](_0x584354),this[_0x381f6c(0x106)]=this[_0x381f6c(0xe4)][_0x381f6c(0xf7)][_0x381f6c(0xe5)](_0x423a9b),this[_0x381f6c(0xe6)]=this[_0x381f6c(0xe4)][_0x381f6c(0xf7)][_0x381f6c(0xe5)](_0x4197ee);const _0x32d8fa=this[_0x381f6c(0xe4)][_0x381f6c(0xf7)][_0x381f6c(0xe5)](_0x129c5d);try{const _0x94ed19=this[_0x381f6c(0xe6)][_0x381f6c(0x108)]();this[_0x381f6c(0xf5)]=new _0x2279c0({'connector':this[_0x381f6c(0xd7)],'group':_0x94ed19}),this[_0x381f6c(0xcb)](this[_0x381f6c(0x106)],_0x381f6c(0xfa),(_0x1fcb1e,_0x3be1c2)=>{const _0x188977=_0x381f6c;this[_0x188977(0xc9)](_0x3be1c2['id'],_0x188977(0x102)),this[_0x188977(0xfd)](_0x3be1c2['id']);}),this[_0x381f6c(0xcb)](this[_0x381f6c(0x106)],_0x381f6c(0x104),(_0x36afff,_0x5a273f)=>{const _0x3797c9=_0x381f6c;this[_0x3797c9(0xc9)](_0x5a273f['id'],_0x3797c9(0xc7)),this[_0x3797c9(0x100)](_0x5a273f['id'],_0x5a273f[_0x3797c9(0xbf)]);}),this[_0x381f6c(0xcb)](this[_0x381f6c(0xf5)],_0x381f6c(0xca),(_0x4a5524,_0x5448b0)=>{const _0x5c76c9=_0x381f6c;void 0x0!==_0x5448b0[_0x5c76c9(0x10c)][_0x5c76c9(0xbf)]&&this[_0x5c76c9(0x106)][_0x5c76c9(0x120)](_0x5448b0[_0x5c76c9(0xcd)],_0x5448b0[_0x5c76c9(0x10c)][_0x5c76c9(0xbf)]),void 0x0!==_0x5448b0[_0x5c76c9(0x10c)][_0x5c76c9(0xf9)]&&this[_0x5c76c9(0x119)](),this[_0x5c76c9(0xd9)](_0x5448b0[_0x5c76c9(0xcd)]);}),this[_0x381f6c(0xcb)](this[_0x381f6c(0xf5)],_0x381f6c(0x115),(_0x317f13,_0x2da4f5)=>{const _0x33fb10=_0x381f6c;this[_0x33fb10(0xe6)][_0x33fb10(0xe0)](_0x2da4f5[_0x33fb10(0xcd)]),this[_0x33fb10(0x106)][_0x33fb10(0x116)](_0x2da4f5[_0x33fb10(0xcd)]),this[_0x33fb10(0xd9)](_0x2da4f5[_0x33fb10(0xcd)]);}),this[_0x381f6c(0xcb)](this[_0x381f6c(0xf5)],_0x381f6c(0xcf),()=>{const _0x2bd46f=_0x381f6c;this[_0x2bd46f(0x119)]();}),this[_0x381f6c(0xcb)](this[_0x381f6c(0xf5)],_0x381f6c(0x118),(_0x49330a,_0x1de0ae)=>{const _0x309913=_0x381f6c;this[_0x309913(0xef)](_0x1de0ae[_0x309913(0x118)],_0x1de0ae[_0x309913(0xfe)],_0x1de0ae[_0x309913(0xcd)]);}),this[_0x381f6c(0xcb)](this[_0x381f6c(0x106)],_0x381f6c(0xe8),(_0x58c3d3,_0x367fc9)=>{const _0x53078e=_0x381f6c;this[_0x53078e(0xe1)](_0x367fc9['id']);}),this[_0x381f6c(0xcb)](this[_0x381f6c(0x106)],_0x381f6c(0xe7),(_0x5b8b08,_0x188cdb)=>{const _0x186f4e=_0x381f6c,_0x797d7c=_0x188cdb[_0x186f4e(0xf9)]?_0x186f4e(0xe2):_0x186f4e(0xdd);this[_0x186f4e(0xc9)](_0x188cdb['id'],_0x797d7c),this[_0x186f4e(0xd3)](_0x188cdb['id'],_0x188cdb[_0x186f4e(0xf9)]);}),this[_0x381f6c(0xcb)](this[_0x381f6c(0x106)],_0x381f6c(0xd8),()=>{const _0x3ba40f=_0x381f6c;_0x32d8fa[_0x3ba40f(0x10a)][_0x3ba40f(0xfc)](_0x3ba40f(0xdc));}),this[_0x381f6c(0xcb)](this[_0x381f6c(0xe6)],_0x381f6c(0xce),()=>{const _0x4d2095=_0x381f6c;this[_0x4d2095(0x119)]();}),_0x32d8fa[_0x381f6c(0x10a)]['on'](_0x381f6c(0xf8),()=>{const _0x2560c8=_0x381f6c;this[_0x2560c8(0xed)]();}),this[_0x381f6c(0xcb)](_0x32d8fa,_0x381f6c(0xc8),(_0x573715,_0x5dc8bf)=>{const _0x5dc41d=_0x381f6c;this[_0x5dc41d(0x10e)](_0x5dc8bf);}),this[_0x381f6c(0xcb)](this[_0x381f6c(0x106)],_0x381f6c(0x11f),()=>{const _0x1d7a26=_0x381f6c;_0x32d8fa[_0x1d7a26(0xfb)]();});}catch(_0x5423df){this[_0x381f6c(0xef)](_0x5423df,_0x381f6c(0x101));}}async[_0x3c40a2(0x100)](_0x36e0df,_0x16ae23){const _0x32319e=_0x3c40a2;await this[_0x32319e(0xf5)][_0x32319e(0x120)](_0x36e0df,_0x16ae23);}async[_0x3c40a2(0xd3)](_0x17760f,_0x17d5eb){const _0x2d71a2=_0x3c40a2;await this[_0x2d71a2(0xf5)][_0x2d71a2(0xee)](_0x17760f,_0x17d5eb);}async[_0x3c40a2(0xfd)](_0x32f23b){const _0x36e27d=_0x3c40a2;await this[_0x36e27d(0xf5)][_0x36e27d(0xf4)](_0x32f23b);}async[_0x3c40a2(0xe1)](_0x41ddb6){const _0x16ddce=_0x3c40a2;await this[_0x16ddce(0xe6)][_0x16ddce(0xd1)](_0x41ddb6);}async[_0x3c40a2(0xed)](){const _0x4fc1ca=_0x3c40a2;this[_0x4fc1ca(0x106)][_0x4fc1ca(0xdf)](''),this[_0x4fc1ca(0x106)][_0x4fc1ca(0x11c)](!0x0),await this[_0x4fc1ca(0xf5)][_0x4fc1ca(0x101)](),this[_0x4fc1ca(0x106)][_0x4fc1ca(0x11c)](!0x1);}[_0x3c40a2(0x119)](){const _0x4db3d6=_0x3c40a2,_0x5037f6=this[_0x4db3d6(0xe6)][_0x4db3d6(0x10f)]?.['id'],_0x3bed37=this[_0x4db3d6(0x111)]()[_0x4db3d6(0xde)](_0x404576=>({'title':_0x404576[_0x4db3d6(0xbf)],'items':_0x404576[_0x4db3d6(0xc2)][_0x4db3d6(0xde)](_0x12d311=>({'id':_0x12d311['id'],'title':_0x12d311[_0x4db3d6(0xbf)]||_0x9bb15c(this[_0x4db3d6(0xe4)][_0x4db3d6(0xff)],_0x4db3d6(0x121)),'createdAt':new Date(_0x12d311[_0x4db3d6(0xf0)])[_0x4db3d6(0xbe)](),'active':_0x12d311['id']===_0x5037f6,'pinned':_0x12d311[_0x4db3d6(0xf9)]}))}));this[_0x4db3d6(0x106)][_0x4db3d6(0x117)](_0x3bed37);}[_0x3c40a2(0xc9)](_0x392548,_0x278470){const _0x1ebfc5=_0x3c40a2;this[_0x1ebfc5(0x106)][_0x1ebfc5(0xec)](_0x392548,_0x278470,!0x0);}[_0x3c40a2(0xd9)](_0x1ffab8){const _0x1f7a26=_0x3c40a2;this[_0x1f7a26(0x106)][_0x1f7a26(0xec)](_0x1ffab8,null,!0x1);}[_0x3c40a2(0xef)](_0x149c69,_0x2ce697,_0x19dc3f){const _0x22a4da=_0x3c40a2,_0x11b561=this[_0x22a4da(0x11a)](_0x2ce697,_0x19dc3f);this[_0x22a4da(0x106)][_0x22a4da(0xdf)](_0x11b561),_0x19dc3f&&this[_0x22a4da(0xd9)](_0x19dc3f),this[_0x22a4da(0x106)][_0x22a4da(0x11c)](!0x1);}[_0x3c40a2(0x11a)](_0x1fd1fc,_0x2159cf){const _0x3ce356=_0x3c40a2,_0x433590=_0x2159cf?this[_0x3ce356(0xf5)][_0x3ce356(0xe9)](_0x2159cf):null,_0x3cc06f=_0x433590?.[_0x3ce356(0xbf)]||_0x9bb15c(this[_0x3ce356(0xe4)][_0x3ce356(0xff)],_0x3ce356(0x121));switch(_0x1fd1fc){case _0x3ce356(0x120):return _0x9bb15c(this[_0x3ce356(0xe4)][_0x3ce356(0xff)],_0x3ce356(0xc4),_0x3cc06f);case _0x3ce356(0xee):{const _0xaaff8b=_0x9bb15c(this[_0x3ce356(0xe4)][_0x3ce356(0xff)],_0x433590?.[_0x3ce356(0xf9)]?_0x3ce356(0xcc):_0x3ce356(0xc1));return _0x9bb15c(this[_0x3ce356(0xe4)][_0x3ce356(0xff)],_0x3ce356(0x110),[_0xaaff8b,_0x3cc06f]);}case _0x3ce356(0xf4):return _0x9bb15c(this[_0x3ce356(0xe4)][_0x3ce356(0xff)],_0x3ce356(0x10b),_0x3cc06f);case _0x3ce356(0x101):case _0x3ce356(0x11d):return _0x9bb15c(this[_0x3ce356(0xe4)][_0x3ce356(0xff)],_0x3ce356(0xe3));default:return _0x9bb15c(this[_0x3ce356(0xe4)][_0x3ce356(0xff)],_0x3ce356(0x107));}}[_0x3c40a2(0x111)](){const _0x4e8431=_0x3c40a2,_0x345e40=new Date(),_0x476854=new Date(_0x345e40[_0x4e8431(0xd0)](),_0x345e40[_0x4e8431(0x11e)](),_0x345e40[_0x4e8431(0x10d)]()),_0x3d7dac=new Date(_0x476854);_0x3d7dac[_0x4e8431(0xbd)](_0x3d7dac[_0x4e8431(0x10d)]()-0x1);const _0x31f445=new Date(_0x476854);_0x31f445[_0x4e8431(0xbd)](_0x31f445[_0x4e8431(0x10d)]()-0xe);const _0x153bec=this[_0x4e8431(0xf5)][_0x4e8431(0xeb)]({'pinned':!0x0}),_0x17b7f0=this[_0x4e8431(0xf5)][_0x4e8431(0xeb)]({'from':_0x476854,'to':_0x476854}),_0x48fe82=this[_0x4e8431(0xf5)][_0x4e8431(0xeb)]({'from':_0x3d7dac,'to':_0x3d7dac}),_0x2b130e=this[_0x4e8431(0xf5)][_0x4e8431(0xeb)]({'from':_0x31f445,'to':_0x3d7dac}),_0x45ff56=this[_0x4e8431(0xf5)][_0x4e8431(0xeb)]({'to':_0x31f445}),_0x2ae189=[];return _0x153bec[_0x4e8431(0x113)]>0x0&&_0x2ae189[_0x4e8431(0xf1)]({'title':_0x9bb15c(this[_0x4e8431(0xe4)][_0x4e8431(0xff)],_0x4e8431(0xc5)),'items':_0x153bec}),_0x17b7f0[_0x4e8431(0x113)]>0x0&&_0x2ae189[_0x4e8431(0xf1)]({'title':_0x9bb15c(this[_0x4e8431(0xe4)][_0x4e8431(0xff)],_0x4e8431(0x114)),'items':_0x17b7f0}),_0x48fe82[_0x4e8431(0x113)]>0x0&&_0x2ae189[_0x4e8431(0xf1)]({'title':_0x9bb15c(this[_0x4e8431(0xe4)][_0x4e8431(0xff)],_0x4e8431(0xc0)),'items':_0x48fe82}),_0x2b130e[_0x4e8431(0x113)]>0x0&&_0x2ae189[_0x4e8431(0xf1)]({'title':_0x9bb15c(this[_0x4e8431(0xe4)][_0x4e8431(0xff)],_0x4e8431(0xd6)),'items':_0x2b130e}),_0x45ff56[_0x4e8431(0x113)]>0x0&&_0x2ae189[_0x4e8431(0xf1)]({'title':_0x9bb15c(this[_0x4e8431(0xe4)][_0x4e8431(0xff)],_0x4e8431(0xea)),'items':_0x45ff56}),_0x2ae189;}[_0x3c40a2(0x10e)](_0x34129b){const _0x9a792d=_0x3c40a2;this[_0x9a792d(0x106)][_0x9a792d(0xbb)](_0x34129b);}}
23
+ const _0x4c7ff8=_0x38fa;function _0x11bf(){const _0x8ec6d8=['_handleEditTitle','_aiChatHistoryUi','1032140urMHxv','getItem','_showConversationHistory','plugins','change:activeConversation','itemUpdated','AI_CHAT_UNTITLED_CONVERSATION','activateTab','activeConversation','_setIsMaximized','setConversationPinned','remove','resizedTabs','init','AI_CHAT_HISTORY_ERROR_GENERIC','map','AI_CHAT_HISTORY_CATEGORY_PINNED','updateItems','resizeTabs','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','context','_handleRemove','_handleSelectConversation','rename','handleRemovedConversation','updateItemLoadingState','_generateErrorMessage','_updateHistoryItemsUI','isOfficialPlugin','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','getFullYear','items','operation','1666896ZyERDP','createdAt','_handleHistoryErrorUI','511308CTsorc','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','_setItemLoading','setDate','listenTo','12639WLwvDW','locale','title','isPremiumPlugin','setLoadingSkeleton','updateItemTitle','_aiChatController','removeItem','loadConversation','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','867644lDfdZE','chat','40ipaidk','pinned','error','getDate','218986EaBBMs','itemRemoved','push','resize','openChat','5zdVsnB','pin','_getCategorizedItems','AI_CHAT_HISTORY_CATEGORY_TODAY','unpin','getGroupId','requires','2279942sYsawU','removeHistoryItem','updateItemPinned','showError','history','length','itemId','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AIChatHistoryController','_aiConnector','getMonth','toLocaleDateString','updates','22slowEH','getItems','pluginName','AI_CHAT_HISTORY_CATEGORY_LATER','loadItems','view','editConversationTitle','_clearItemLoading','itemsLoaded','selectConversation','activateTab:history','get','_handleTogglePin','setIsMaximized','removeConversation','AI_CHAT_HISTORY_UNPIN_ACTION'];_0x11bf=function(){return _0x8ec6d8;};return _0x11bf();}(function(_0x21b399,_0x322cfd){const _0x43811d=_0x38fa,_0x23f3fe=_0x21b399();while(!![]){try{const _0x54c435=-parseInt(_0x43811d(0x1f7))/0x1+-parseInt(_0x43811d(0x1aa))/0x2*(parseInt(_0x43811d(0x1e7))/0x3)+parseInt(_0x43811d(0x1f1))/0x4*(parseInt(_0x43811d(0x1fc))/0x5)+-parseInt(_0x43811d(0x1df))/0x6+parseInt(_0x43811d(0x19d))/0x7+parseInt(_0x43811d(0x1f3))/0x8*(parseInt(_0x43811d(0x1e2))/0x9)+-parseInt(_0x43811d(0x1bc))/0xa;if(_0x54c435===_0x322cfd)break;else _0x23f3fe['push'](_0x23f3fe['shift']());}catch(_0x11e01f){_0x23f3fe['push'](_0x23f3fe['shift']());}}}(_0x11bf,0x2c05e));import{ContextPlugin as _0x16067f}from'ckeditor5/src/core.js';import{AIConnector as _0x42f7b1}from'../aicore/aiconnector.js';import{AIChatController as _0x24f538}from'../aichat/aichatcontroller.js';import{AITabs as _0x1cf6f5}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0xa0d749}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x3a1b60}from'./model/aichathistoryconversations.js';import{getTranslation as _0x78c028}from'../aicore/utils/common-translations.js';function _0x38fa(_0x54c180,_0x3af350){const _0x11bfdf=_0x11bf();return _0x38fa=function(_0x38facf,_0x1d5a25){_0x38facf=_0x38facf-0x198;let _0x11e0c7=_0x11bfdf[_0x38facf];return _0x11e0c7;},_0x38fa(_0x54c180,_0x3af350);}export class AIChatHistoryController extends _0x16067f{[_0x4c7ff8(0x1a6)];[_0x4c7ff8(0x1bb)];[_0x4c7ff8(0x1ed)];static get[_0x4c7ff8(0x19c)](){return[_0x42f7b1,_0x24f538,_0xa0d749,_0x1cf6f5];}static get[_0x4c7ff8(0x1ac)](){const _0x5a2fcb=_0x4c7ff8;return _0x5a2fcb(0x1a5);}static get[_0x4c7ff8(0x1d8)](){return!0x0;}static get[_0x4c7ff8(0x1ea)](){return!0x0;}[_0x4c7ff8(0x1c9)](){const _0x37114d=_0x4c7ff8;this[_0x37114d(0x1a6)]=this[_0x37114d(0x1d0)][_0x37114d(0x1bf)][_0x37114d(0x1b5)](_0x42f7b1),this[_0x37114d(0x1bb)]=this[_0x37114d(0x1d0)][_0x37114d(0x1bf)][_0x37114d(0x1b5)](_0xa0d749),this[_0x37114d(0x1ed)]=this[_0x37114d(0x1d0)][_0x37114d(0x1bf)][_0x37114d(0x1b5)](_0x24f538);const _0x175464=this[_0x37114d(0x1d0)][_0x37114d(0x1bf)][_0x37114d(0x1b5)](_0x1cf6f5);try{const _0x2621aa=this[_0x37114d(0x1ed)][_0x37114d(0x19b)]();this[_0x37114d(0x1a1)]=new _0x3a1b60({'connector':this[_0x37114d(0x1a6)],'group':_0x2621aa}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1bb)],_0x37114d(0x1b8),(_0x5a06fd,_0x542cbc)=>{const _0x5da827=_0x37114d;this[_0x5da827(0x1e4)](_0x542cbc['id'],_0x5da827(0x1c7)),this[_0x5da827(0x1d1)](_0x542cbc['id']);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1bb)],_0x37114d(0x1b0),(_0x3ee70b,_0x1555b2)=>{const _0x2b5775=_0x37114d;this[_0x2b5775(0x1e4)](_0x1555b2['id'],_0x2b5775(0x1d3)),this[_0x2b5775(0x1ba)](_0x1555b2['id'],_0x1555b2[_0x2b5775(0x1e9)]);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1a1)],_0x37114d(0x1c1),(_0x4638f0,_0x1568b5)=>{const _0x3aea9f=_0x37114d;void 0x0!==_0x1568b5[_0x3aea9f(0x1a9)][_0x3aea9f(0x1e9)]&&this[_0x3aea9f(0x1bb)][_0x3aea9f(0x1ec)](_0x1568b5[_0x3aea9f(0x1a3)],_0x1568b5[_0x3aea9f(0x1a9)][_0x3aea9f(0x1e9)]),void 0x0!==_0x1568b5[_0x3aea9f(0x1a9)][_0x3aea9f(0x1f4)]&&this[_0x3aea9f(0x1d7)](),this[_0x3aea9f(0x1b1)](_0x1568b5[_0x3aea9f(0x1a3)]);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1a1)],_0x37114d(0x1f8),(_0x4a7d3a,_0xa96515)=>{const _0x1893de=_0x37114d;this[_0x1893de(0x1ed)][_0x1893de(0x1d4)](_0xa96515[_0x1893de(0x1a3)]),this[_0x1893de(0x1bb)][_0x1893de(0x19e)](_0xa96515[_0x1893de(0x1a3)]),this[_0x1893de(0x1b1)](_0xa96515[_0x1893de(0x1a3)]);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1a1)],_0x37114d(0x1b2),()=>{const _0x34e2c8=_0x37114d;this[_0x34e2c8(0x1d7)]();}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1a1)],_0x37114d(0x1f5),(_0x31a64c,_0x12a853)=>{const _0x18cf6b=_0x37114d;this[_0x18cf6b(0x1e1)](_0x12a853[_0x18cf6b(0x1f5)],_0x12a853[_0x18cf6b(0x1de)],_0x12a853[_0x18cf6b(0x1a3)]);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1bb)],_0x37114d(0x1b3),(_0x3666a6,_0x2e02b2)=>{const _0x3f71d1=_0x37114d;this[_0x3f71d1(0x1d2)](_0x2e02b2['id']);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1bb)],_0x37114d(0x1c6),(_0x277fb2,_0x116e26)=>{const _0x269c55=_0x37114d,_0x34aa85=_0x116e26[_0x269c55(0x1f4)]?_0x269c55(0x1fd):_0x269c55(0x19a);this[_0x269c55(0x1e4)](_0x116e26['id'],_0x34aa85),this[_0x269c55(0x1b6)](_0x116e26['id'],_0x116e26[_0x269c55(0x1f4)]);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1bb)],_0x37114d(0x1fb),()=>{const _0x317a93=_0x37114d;_0x175464[_0x317a93(0x1af)][_0x317a93(0x1c3)](_0x317a93(0x1f2));}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1ed)],_0x37114d(0x1c0),()=>{const _0x566953=_0x37114d;this[_0x566953(0x1d7)]();}),_0x175464[_0x37114d(0x1af)]['on'](_0x37114d(0x1b4),()=>{const _0x5ef2dc=_0x37114d;this[_0x5ef2dc(0x1be)]();}),this[_0x37114d(0x1e6)](_0x175464,_0x37114d(0x1c8),(_0x1cf0d,_0x4d6b37)=>{const _0x4fec6c=_0x37114d;this[_0x4fec6c(0x1c5)](_0x4d6b37);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1bb)],_0x37114d(0x1ce),()=>{const _0x20a442=_0x37114d;_0x175464[_0x20a442(0x1fa)]();});}catch(_0x31436b){this[_0x37114d(0x1e1)](_0x31436b,_0x37114d(0x1c9));}}async[_0x4c7ff8(0x1ba)](_0x11e30c,_0x1aca74){const _0x3c93bb=_0x4c7ff8;await this[_0x3c93bb(0x1a1)][_0x3c93bb(0x1ec)](_0x11e30c,_0x1aca74);}async[_0x4c7ff8(0x1b6)](_0x192083,_0x4d4f5f){const _0x48d07d=_0x4c7ff8;await this[_0x48d07d(0x1a1)][_0x48d07d(0x19f)](_0x192083,_0x4d4f5f);}async[_0x4c7ff8(0x1d1)](_0x19799c){const _0x3400fc=_0x4c7ff8;await this[_0x3400fc(0x1a1)][_0x3400fc(0x1ee)](_0x19799c);}async[_0x4c7ff8(0x1d2)](_0x32e247){const _0x4fd4a5=_0x4c7ff8;await this[_0x4fd4a5(0x1ed)][_0x4fd4a5(0x1ef)](_0x32e247);}async[_0x4c7ff8(0x1be)](){const _0x1058c5=_0x4c7ff8;this[_0x1058c5(0x1bb)][_0x1058c5(0x1a0)](''),this[_0x1058c5(0x1bb)][_0x1058c5(0x1eb)](!0x0),await this[_0x1058c5(0x1a1)][_0x1058c5(0x1c9)](),this[_0x1058c5(0x1bb)][_0x1058c5(0x1eb)](!0x1);}[_0x4c7ff8(0x1d7)](){const _0x5cc8dc=_0x4c7ff8,_0x904062=this[_0x5cc8dc(0x1ed)][_0x5cc8dc(0x1c4)]?.['id'],_0x35d85d=this[_0x5cc8dc(0x198)]()[_0x5cc8dc(0x1cb)](_0x29b083=>({'title':_0x29b083[_0x5cc8dc(0x1e9)],'items':_0x29b083[_0x5cc8dc(0x1dd)][_0x5cc8dc(0x1cb)](_0x4595e3=>({'id':_0x4595e3['id'],'title':_0x4595e3[_0x5cc8dc(0x1e9)]||_0x78c028(this[_0x5cc8dc(0x1d0)][_0x5cc8dc(0x1e8)],_0x5cc8dc(0x1c2)),'createdAt':new Date(_0x4595e3[_0x5cc8dc(0x1e0)])[_0x5cc8dc(0x1a8)](),'active':_0x4595e3['id']===_0x904062,'pinned':_0x4595e3[_0x5cc8dc(0x1f4)]}))}));this[_0x5cc8dc(0x1bb)][_0x5cc8dc(0x1cd)](_0x35d85d);}[_0x4c7ff8(0x1e4)](_0x244d0f,_0x3f3be0){const _0x180a5e=_0x4c7ff8;this[_0x180a5e(0x1bb)][_0x180a5e(0x1d5)](_0x244d0f,_0x3f3be0,!0x0);}[_0x4c7ff8(0x1b1)](_0xfdda60){const _0x16051a=_0x4c7ff8;this[_0x16051a(0x1bb)][_0x16051a(0x1d5)](_0xfdda60,null,!0x1);}[_0x4c7ff8(0x1e1)](_0x15a645,_0x5c4e3f,_0x216968){const _0x4c8d90=_0x4c7ff8,_0x2d7599=this[_0x4c8d90(0x1d6)](_0x5c4e3f,_0x216968);this[_0x4c8d90(0x1bb)][_0x4c8d90(0x1a0)](_0x2d7599),_0x216968&&this[_0x4c8d90(0x1b1)](_0x216968),this[_0x4c8d90(0x1bb)][_0x4c8d90(0x1eb)](!0x1);}[_0x4c7ff8(0x1d6)](_0x6bcd0e,_0x32de4f){const _0x4e7101=_0x4c7ff8,_0x138291=_0x32de4f?this[_0x4e7101(0x1a1)][_0x4e7101(0x1bd)](_0x32de4f):null,_0x18af12=_0x138291?.[_0x4e7101(0x1e9)]||_0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x4e7101(0x1c2));switch(_0x6bcd0e){case _0x4e7101(0x1ec):return _0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x4e7101(0x1d9),_0x18af12);case _0x4e7101(0x19f):{const _0xfef68b=_0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x138291?.[_0x4e7101(0x1f4)]?_0x4e7101(0x1b9):_0x4e7101(0x1da));return _0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x4e7101(0x1a4),[_0xfef68b,_0x18af12]);}case _0x4e7101(0x1ee):return _0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x4e7101(0x1db),_0x18af12);case _0x4e7101(0x1c9):case _0x4e7101(0x1ae):return _0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x4e7101(0x1cf));default:return _0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x4e7101(0x1ca));}}[_0x4c7ff8(0x198)](){const _0x8814c3=_0x4c7ff8,_0x280b2f=new Date(),_0x535028=new Date(_0x280b2f[_0x8814c3(0x1dc)](),_0x280b2f[_0x8814c3(0x1a7)](),_0x280b2f[_0x8814c3(0x1f6)]()),_0x57ec02=new Date(_0x535028);_0x57ec02[_0x8814c3(0x1e5)](_0x57ec02[_0x8814c3(0x1f6)]()-0x1);const _0x3f82ba=new Date(_0x535028);_0x3f82ba[_0x8814c3(0x1e5)](_0x3f82ba[_0x8814c3(0x1f6)]()-0xe);const _0x11ee5b=this[_0x8814c3(0x1a1)][_0x8814c3(0x1ab)]({'pinned':!0x0}),_0x85d9d3=this[_0x8814c3(0x1a1)][_0x8814c3(0x1ab)]({'from':_0x535028,'to':_0x535028}),_0x46bebd=this[_0x8814c3(0x1a1)][_0x8814c3(0x1ab)]({'from':_0x57ec02,'to':_0x57ec02}),_0x192005=this[_0x8814c3(0x1a1)][_0x8814c3(0x1ab)]({'from':_0x3f82ba,'to':_0x57ec02}),_0x491b4f=this[_0x8814c3(0x1a1)][_0x8814c3(0x1ab)]({'to':_0x3f82ba}),_0x1390fc=[];return _0x11ee5b[_0x8814c3(0x1a2)]>0x0&&_0x1390fc[_0x8814c3(0x1f9)]({'title':_0x78c028(this[_0x8814c3(0x1d0)][_0x8814c3(0x1e8)],_0x8814c3(0x1cc)),'items':_0x11ee5b}),_0x85d9d3[_0x8814c3(0x1a2)]>0x0&&_0x1390fc[_0x8814c3(0x1f9)]({'title':_0x78c028(this[_0x8814c3(0x1d0)][_0x8814c3(0x1e8)],_0x8814c3(0x199)),'items':_0x85d9d3}),_0x46bebd[_0x8814c3(0x1a2)]>0x0&&_0x1390fc[_0x8814c3(0x1f9)]({'title':_0x78c028(this[_0x8814c3(0x1d0)][_0x8814c3(0x1e8)],_0x8814c3(0x1f0)),'items':_0x46bebd}),_0x192005[_0x8814c3(0x1a2)]>0x0&&_0x1390fc[_0x8814c3(0x1f9)]({'title':_0x78c028(this[_0x8814c3(0x1d0)][_0x8814c3(0x1e8)],_0x8814c3(0x1e3)),'items':_0x192005}),_0x491b4f[_0x8814c3(0x1a2)]>0x0&&_0x1390fc[_0x8814c3(0x1f9)]({'title':_0x78c028(this[_0x8814c3(0x1d0)][_0x8814c3(0x1e8)],_0x8814c3(0x1ad)),'items':_0x491b4f}),_0x1390fc;}[_0x4c7ff8(0x1c5)](_0x580706){const _0x3f78cb=_0x4c7ff8;this[_0x3f78cb(0x1bb)][_0x3f78cb(0x1b7)](_0x580706);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x26f236=_0x3029;(function(_0x5ae62d,_0x1cfbde){const _0x5a944b=_0x3029,_0x57d105=_0x5ae62d();while(!![]){try{const _0x29b2d5=parseInt(_0x5a944b(0x204))/0x1*(-parseInt(_0x5a944b(0x1f3))/0x2)+-parseInt(_0x5a944b(0x20a))/0x3+parseInt(_0x5a944b(0x1e7))/0x4*(parseInt(_0x5a944b(0x1ff))/0x5)+-parseInt(_0x5a944b(0x1e6))/0x6*(-parseInt(_0x5a944b(0x1f7))/0x7)+-parseInt(_0x5a944b(0x1e8))/0x8+parseInt(_0x5a944b(0x202))/0x9*(-parseInt(_0x5a944b(0x20e))/0xa)+parseInt(_0x5a944b(0x207))/0xb*(parseInt(_0x5a944b(0x1e0))/0xc);if(_0x29b2d5===_0x1cfbde)break;else _0x57d105['push'](_0x57d105['shift']());}catch(_0x37c6bd){_0x57d105['push'](_0x57d105['shift']());}}}(_0x461a,0x76093));import{ContextPlugin as _0x158657}from'ckeditor5/src/core.js';import{AITabs as _0x49f3b6}from'../aitabs/aitabs.js';import{IconAIHistory as _0x2acf51}from'ckeditor5/src/icons.js';function _0x461a(){const _0xca35ab=['_historyView','hideError','addTab','isMaximized','6UEjnHl','selectConversation','resizeTabs','AIChatHistoryUI','1793351yWBYvm','removeConversation','get','view','setIsMaximized','delegate','showResizeButton','locale','2893145oRilLB','isLoading','requires','568818KNdKlQ','updateHistoryItemsWithCategories','59308ULIudB','removeHistoryItem','editConversationTitle','22wqVgLb','isOfficialPlugin','setLoadingSkeleton','1660734BsWdQC','AITabs','errorMessage','setConversationPinned','90bHVwCm','showError','6145116ypjkQI','AI_CHAT_HISTORY_HEADING','isPremiumPlugin','pluginName','context','showConversationHistory','6rcurcw','4VtdIrV','601704BwfQPf','history','updateItemTitle','updateItems','openChat','plugins','updateItemLoadingState'];_0x461a=function(){return _0xca35ab;};return _0x461a();}import{AIChatHistoryView as _0x20c488}from'./ui/aichathistoryview.js';function _0x3029(_0x2f0f04,_0x5b5f82){const _0x461a8f=_0x461a();return _0x3029=function(_0x30292b,_0x1d72b4){_0x30292b=_0x30292b-0x1df;let _0x3adfd1=_0x461a8f[_0x30292b];return _0x3adfd1;},_0x3029(_0x2f0f04,_0x5b5f82);}import{getTranslation as _0x4f08a8}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x26f236(0x1e5),_0x26f236(0x1f8),_0x26f236(0x206),_0x26f236(0x20d),_0x26f236(0x1f4),_0x26f236(0x1ec),_0x26f236(0x1f5)];export class AIChatHistoryUI extends _0x158657{static get[_0x26f236(0x201)](){return[_0x49f3b6];}[_0x26f236(0x1ef)];static get[_0x26f236(0x1e3)](){const _0x2fed39=_0x26f236;return _0x2fed39(0x1f6);}static get[_0x26f236(0x208)](){return!0x0;}static get[_0x26f236(0x1e2)](){return!0x0;}constructor(_0x170583){const _0x4f4b5b=_0x26f236;super(_0x170583);const _0x2d63f=this[_0x4f4b5b(0x1e4)][_0x4f4b5b(0x1ed)][_0x4f4b5b(0x1f9)](_0x4f4b5b(0x20b));this[_0x4f4b5b(0x1ef)]=new _0x20c488(this[_0x4f4b5b(0x1e4)][_0x4f4b5b(0x1fe)],_0x2d63f[_0x4f4b5b(0x1fd)]),this[_0x4f4b5b(0x1ef)][_0x4f4b5b(0x1fc)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x2d63f[_0x4f4b5b(0x1fa)][_0x4f4b5b(0x1f1)]({'id':_0x4f4b5b(0x1e9),'buttonLabel':_0x4f08a8(this[_0x4f4b5b(0x1e4)][_0x4f4b5b(0x1fe)],_0x4f4b5b(0x1e1)),'buttonIcon':_0x2acf51,'order':0x0,'content':this[_0x4f4b5b(0x1ef)]});}[_0x26f236(0x205)](_0x53862a){const _0x2c454a=_0x26f236;this[_0x2c454a(0x1ef)][_0x2c454a(0x205)](_0x53862a);}[_0x26f236(0x1eb)](_0xa8837){const _0x1e132f=_0x26f236;this[_0x1e132f(0x1ef)][_0x1e132f(0x203)](_0xa8837);}[_0x26f236(0x1ea)](_0x5c173e,_0x90599a){const _0x325c07=_0x26f236;this[_0x325c07(0x1ef)][_0x325c07(0x1ea)](_0x5c173e,_0x90599a);}[_0x26f236(0x1ee)](_0x21c34a,_0x14db8f,_0x14568c){const _0x1c3cd6=_0x26f236;this[_0x1c3cd6(0x1ef)][_0x1c3cd6(0x1ee)](_0x21c34a,_0x14db8f,_0x14568c);}[_0x26f236(0x209)](_0x189eec){const _0x4e8a08=_0x26f236;this[_0x4e8a08(0x1ef)][_0x4e8a08(0x200)]=_0x189eec;}[_0x26f236(0x1df)](_0x41b7b9){const _0x350666=_0x26f236;this[_0x350666(0x1ef)][_0x350666(0x20c)]=_0x41b7b9;}[_0x26f236(0x1f0)](){const _0x5704e2=_0x26f236;this[_0x5704e2(0x1ef)][_0x5704e2(0x20c)]='';}[_0x26f236(0x1fb)](_0x4eb99e){const _0x178bd9=_0x26f236;this[_0x178bd9(0x1ef)][_0x178bd9(0x1f2)]=_0x4eb99e;}}
23
+ const _0x3f2435=_0x36ea;(function(_0x12b1b0,_0x5aaf2c){const _0x3b88e1=_0x36ea,_0x284d8c=_0x12b1b0();while(!![]){try{const _0x35f28a=parseInt(_0x3b88e1(0x142))/0x1*(-parseInt(_0x3b88e1(0x13c))/0x2)+-parseInt(_0x3b88e1(0x12e))/0x3*(parseInt(_0x3b88e1(0x154))/0x4)+parseInt(_0x3b88e1(0x152))/0x5*(-parseInt(_0x3b88e1(0x143))/0x6)+-parseInt(_0x3b88e1(0x156))/0x7+parseInt(_0x3b88e1(0x13e))/0x8+-parseInt(_0x3b88e1(0x136))/0x9*(-parseInt(_0x3b88e1(0x155))/0xa)+parseInt(_0x3b88e1(0x14f))/0xb*(parseInt(_0x3b88e1(0x139))/0xc);if(_0x35f28a===_0x5aaf2c)break;else _0x284d8c['push'](_0x284d8c['shift']());}catch(_0x1a328c){_0x284d8c['push'](_0x284d8c['shift']());}}}(_0x17c8,0x9e6b9));import{ContextPlugin as _0x23693c}from'ckeditor5/src/core.js';import{AITabs as _0x5eeb29}from'../aitabs/aitabs.js';function _0x36ea(_0x53eda2,_0x1d8409){const _0x17c89b=_0x17c8();return _0x36ea=function(_0x36ea04,_0x490470){_0x36ea04=_0x36ea04-0x127;let _0x626d85=_0x17c89b[_0x36ea04];return _0x626d85;},_0x36ea(_0x53eda2,_0x1d8409);}import{IconAIHistory as _0x3556e8}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x201cba}from'./ui/aichathistoryview.js';function _0x17c8(){const _0x2ad4c6=['1869224vwGlWe','_historyView','editConversationTitle','plugins','updateItems','isLoading','isMaximized','isPremiumPlugin','91656zfGpgy','showResizeButton','AITabs','openChat','removeHistoryItem','showError','pluginName','updateItemTitle','18bmhxqW','addTab','selectConversation','798468BkWDOs','setLoadingSkeleton','AIChatHistoryUI','6OQTwWl','get','4404064oceeAS','setConversationPinned','delegate','updateItemLoadingState','72273ouQWbt','1434vHGTPq','locale','setIsMaximized','isOfficialPlugin','updateHistoryItemsWithCategories','requires','AI_CHAT_HISTORY_HEADING','context','history','resizeTabs','removeConversation','errorMessage','11LnvYYQ','view','hideError','95zejFIz','showConversationHistory','8bQwCwE','2906690edImNX'];_0x17c8=function(){return _0x2ad4c6;};return _0x17c8();}import{getTranslation as _0x17a017}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x3f2435(0x153),_0x3f2435(0x14d),_0x3f2435(0x128),_0x3f2435(0x13f),_0x3f2435(0x138),_0x3f2435(0x131),_0x3f2435(0x14c)];export class AIChatHistoryUI extends _0x23693c{static get[_0x3f2435(0x148)](){return[_0x5eeb29];}[_0x3f2435(0x127)];static get[_0x3f2435(0x134)](){const _0x2724ca=_0x3f2435;return _0x2724ca(0x13b);}static get[_0x3f2435(0x146)](){return!0x0;}static get[_0x3f2435(0x12d)](){return!0x0;}constructor(_0x205f2f){const _0x61c065=_0x3f2435;super(_0x205f2f);const _0x3fb4f2=this[_0x61c065(0x14a)][_0x61c065(0x129)][_0x61c065(0x13d)](_0x61c065(0x130));this[_0x61c065(0x127)]=new _0x201cba(this[_0x61c065(0x14a)][_0x61c065(0x144)],_0x3fb4f2[_0x61c065(0x12f)]),this[_0x61c065(0x127)][_0x61c065(0x140)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x3fb4f2[_0x61c065(0x150)][_0x61c065(0x137)]({'id':_0x61c065(0x14b),'buttonLabel':_0x17a017(this[_0x61c065(0x14a)][_0x61c065(0x144)],_0x61c065(0x149)),'buttonIcon':_0x3556e8,'order':0x0,'content':this[_0x61c065(0x127)]});}[_0x3f2435(0x132)](_0x4587ec){const _0x555a9e=_0x3f2435;this[_0x555a9e(0x127)][_0x555a9e(0x132)](_0x4587ec);}[_0x3f2435(0x12a)](_0x253e7c){const _0x4174c6=_0x3f2435;this[_0x4174c6(0x127)][_0x4174c6(0x147)](_0x253e7c);}[_0x3f2435(0x135)](_0x392552,_0x584422){const _0x4f4772=_0x3f2435;this[_0x4f4772(0x127)][_0x4f4772(0x135)](_0x392552,_0x584422);}[_0x3f2435(0x141)](_0x37a5d5,_0x47bc42,_0x4bbff6){const _0x505235=_0x3f2435;this[_0x505235(0x127)][_0x505235(0x141)](_0x37a5d5,_0x47bc42,_0x4bbff6);}[_0x3f2435(0x13a)](_0x3bf77a){const _0x2665a6=_0x3f2435;this[_0x2665a6(0x127)][_0x2665a6(0x12b)]=_0x3bf77a;}[_0x3f2435(0x133)](_0x1634eb){const _0x313b8b=_0x3f2435;this[_0x313b8b(0x127)][_0x313b8b(0x14e)]=_0x1634eb;}[_0x3f2435(0x151)](){const _0xb025d5=_0x3f2435;this[_0xb025d5(0x127)][_0xb025d5(0x14e)]='';}[_0x3f2435(0x145)](_0x188a9b){const _0x95e33d=_0x3f2435;this[_0x95e33d(0x127)][_0x95e33d(0x12c)]=_0x188a9b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1ecd3f=_0x58aa;(function(_0x2e005d,_0xd02961){var _0x282feb=_0x58aa,_0x17f8ce=_0x2e005d();while(!![]){try{var _0x401237=parseInt(_0x282feb(0x9d))/0x1+parseInt(_0x282feb(0x8e))/0x2+-parseInt(_0x282feb(0x92))/0x3+-parseInt(_0x282feb(0x90))/0x4+-parseInt(_0x282feb(0x97))/0x5*(parseInt(_0x282feb(0x9b))/0x6)+-parseInt(_0x282feb(0x99))/0x7+parseInt(_0x282feb(0x9a))/0x8*(parseInt(_0x282feb(0x91))/0x9);if(_0x401237===_0xd02961)break;else _0x17f8ce['push'](_0x17f8ce['shift']());}catch(_0x18f0bf){_0x17f8ce['push'](_0x17f8ce['shift']());}}}(_0x2e2a,0xbe542));import{ObservableMixin as _0x5bc269}from'ckeditor5/src/utils.js';function _0x2e2a(){var _0x3bfa06=['3182776QdNDwT','170226PZBOVX','946116GvSxXO','pinned','createdAt','title','set','4115785ldKPtq','updatedAt','2042887PJHmbg','584hzstIF','6FbPhIV','updatePinned','515191wRlvnJ','2219474hzJMEf','updateTitle'];_0x2e2a=function(){return _0x3bfa06;};return _0x2e2a();}import{escape as _0xedacee}from'es-toolkit/compat';function _0x58aa(_0x55820,_0x1e1e34){var _0x2e2a4c=_0x2e2a();return _0x58aa=function(_0x58aafd,_0x45753b){_0x58aafd=_0x58aafd-0x8e;var _0x106ab8=_0x2e2a4c[_0x58aafd];return _0x106ab8;},_0x58aa(_0x55820,_0x1e1e34);}export class AIChatHistoryItem extends _0x5bc269(){['id'];[_0x1ecd3f(0x94)];constructor({id:_0x3e84c4,title:_0x31e90c,createdAt:_0x104311,updatedAt:_0x5e2968,pinned:_0x3bfdb5}){var _0x59f049=_0x1ecd3f;super(),this['id']=_0x3e84c4,this[_0x59f049(0x94)]=new Date(_0x104311),this[_0x59f049(0x96)](_0x59f049(0x95),_0x31e90c),this[_0x59f049(0x96)](_0x59f049(0x98),_0x5e2968?new Date(_0x5e2968):null),this[_0x59f049(0x96)](_0x59f049(0x93),_0x3bfdb5||!0x1);}[_0x1ecd3f(0x8f)](_0x55fdfb){var _0x3aab8c=_0x1ecd3f;this[_0x3aab8c(0x96)](_0x3aab8c(0x95),_0xedacee(_0x55fdfb)),this[_0x3aab8c(0x98)]=new Date();}[_0x1ecd3f(0x9c)](_0x59f92f){var _0x13d4b3=_0x1ecd3f;this[_0x13d4b3(0x96)](_0x13d4b3(0x93),_0x59f92f),this[_0x13d4b3(0x98)]=new Date();}}
23
+ var _0x31f3d8=_0x1ae9;(function(_0x2c67c1,_0x13694e){var _0x2ff3e4=_0x1ae9,_0x1e4b9d=_0x2c67c1();while(!![]){try{var _0x110ee9=parseInt(_0x2ff3e4(0x156))/0x1*(parseInt(_0x2ff3e4(0x14c))/0x2)+-parseInt(_0x2ff3e4(0x153))/0x3*(-parseInt(_0x2ff3e4(0x155))/0x4)+-parseInt(_0x2ff3e4(0x14f))/0x5*(parseInt(_0x2ff3e4(0x144))/0x6)+-parseInt(_0x2ff3e4(0x152))/0x7*(-parseInt(_0x2ff3e4(0x151))/0x8)+parseInt(_0x2ff3e4(0x145))/0x9*(-parseInt(_0x2ff3e4(0x157))/0xa)+parseInt(_0x2ff3e4(0x146))/0xb+parseInt(_0x2ff3e4(0x14b))/0xc*(parseInt(_0x2ff3e4(0x148))/0xd);if(_0x110ee9===_0x13694e)break;else _0x1e4b9d['push'](_0x1e4b9d['shift']());}catch(_0x47b461){_0x1e4b9d['push'](_0x1e4b9d['shift']());}}}(_0x2834,0x35060));import{ObservableMixin as _0x2fb439}from'ckeditor5/src/utils.js';function _0x2834(){var _0xe4b574=['4qEZglS','updatedAt','updatePinned','195GqtsvL','pinned','296DszIVX','33789xVCgSM','3AINmMR','createdAt','410876bgBIJB','15394WBwHsm','30zqDPOD','19506pMdqfa','1139913XAqOsB','3641517YKFxWa','set','13ZCjGOY','title','updateTitle','969492PQNZLY'];_0x2834=function(){return _0xe4b574;};return _0x2834();}function _0x1ae9(_0x30ccb1,_0x107b8d){var _0x283491=_0x2834();return _0x1ae9=function(_0x1ae978,_0x32025e){_0x1ae978=_0x1ae978-0x144;var _0x421337=_0x283491[_0x1ae978];return _0x421337;},_0x1ae9(_0x30ccb1,_0x107b8d);}import{escape as _0x3ce63a}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x2fb439(){['id'];[_0x31f3d8(0x154)];constructor({id:_0x448b7c,title:_0xc2f61f,createdAt:_0x11cc9d,updatedAt:_0x36d30d,pinned:_0x194851}){var _0x16db88=_0x31f3d8;super(),this['id']=_0x448b7c,this[_0x16db88(0x154)]=new Date(_0x11cc9d),this[_0x16db88(0x147)](_0x16db88(0x149),_0xc2f61f),this[_0x16db88(0x147)](_0x16db88(0x14d),_0x36d30d?new Date(_0x36d30d):null),this[_0x16db88(0x147)](_0x16db88(0x150),_0x194851||!0x1);}[_0x31f3d8(0x14a)](_0xc37853){var _0x484d09=_0x31f3d8;this[_0x484d09(0x147)](_0x484d09(0x149),_0x3ce63a(_0xc37853)),this[_0x484d09(0x14d)]=new Date();}[_0x31f3d8(0x14e)](_0x360e57){var _0x543855=_0x31f3d8;this[_0x543855(0x147)](_0x543855(0x150),_0x360e57),this[_0x543855(0x14d)]=new Date();}}