@ckeditor/ckeditor5-ai 47.0.0-alpha.9 → 47.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/legacyerrors.js +1 -1
  15. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  16. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  17. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  20. package/src/aiassistant/ui/form/aiformview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  22. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  26. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  27. package/src/aiballoon/ui/aiballoonview.js +1 -1
  28. package/src/aichat/aichat.js +1 -1
  29. package/src/aichat/aichatcontroller.js +1 -1
  30. package/src/aichat/aichatui.js +1 -1
  31. package/src/aichat/model/aichatcontext.js +1 -1
  32. package/src/aichat/model/aichatconversation.js +1 -1
  33. package/src/aichat/model/aichatinteraction.js +1 -1
  34. package/src/aichat/model/aichatmodels.js +1 -1
  35. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  36. package/src/aichat/ui/aichatfeedview.js +1 -1
  37. package/src/aichat/ui/aichatheaderview.js +1 -1
  38. package/src/aichat/ui/aichatview.js +1 -1
  39. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  43. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  58. package/src/aichat/utils/eventnames.js +1 -1
  59. package/src/aichat/utils/promisequeue.js +1 -1
  60. package/src/aichat/utils/scrollmanager.js +1 -1
  61. package/src/aichathistory/aichathistory.js +1 -1
  62. package/src/aichathistory/aichathistorycontroller.js +1 -1
  63. package/src/aichathistory/aichathistoryui.js +1 -1
  64. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  65. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  66. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  67. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  68. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  69. package/src/aicore/aiconnector.js +1 -1
  70. package/src/aicore/aiediting.js +1 -1
  71. package/src/aicore/model/aicapabilities.js +1 -1
  72. package/src/aicore/model/aiinteraction.js +1 -1
  73. package/src/aicore/model/aireply.js +1 -1
  74. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  75. package/src/aicore/pipeline/airesponseparser.js +2 -2
  76. package/src/aicore/ui/aidisclaimerview.js +1 -1
  77. package/src/aicore/ui/aiskeleton.js +1 -1
  78. package/src/aicore/ui/aispinner.js +1 -1
  79. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  80. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  84. package/src/aicore/utils/createresizebutton.js +1 -1
  85. package/src/aicore/utils/documentposition.js +1 -1
  86. package/src/aicore/utils/documentrange.js +1 -1
  87. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  88. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  89. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  90. package/src/aicore/utils/htmlparser.js +1 -1
  91. package/src/aicore/utils/htmlstreamer.js +1 -1
  92. package/src/aieditorintegration/aieditorintegration.js +1 -1
  93. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  94. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  95. package/src/aiquickactions/aiquickactions.js +1 -1
  96. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  97. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  98. package/src/aiquickactions/aiquickactionsui.js +1 -1
  99. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  100. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  101. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  102. package/src/aireviewmode/aireviewmode.js +1 -1
  103. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  104. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  105. package/src/aireviewmode/aireviewmodeui.js +1 -1
  106. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  107. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  108. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  109. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  110. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  111. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  112. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  113. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  117. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  118. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  119. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  120. package/src/aitabs/aitabs.js +1 -1
  121. package/src/aitabs/tabs/aitabsview.js +1 -1
  122. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  123. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x264ee1=_0x4436;(function(_0x41dbfc,_0x41766c){var _0x3ec906=_0x4436,_0x1f0d96=_0x41dbfc();while(!![]){try{var _0x1c19a7=-parseInt(_0x3ec906(0x97))/0x1+-parseInt(_0x3ec906(0x98))/0x2*(-parseInt(_0x3ec906(0x9d))/0x3)+-parseInt(_0x3ec906(0x9b))/0x4+-parseInt(_0x3ec906(0xb1))/0x5*(parseInt(_0x3ec906(0xc2))/0x6)+-parseInt(_0x3ec906(0xa4))/0x7*(-parseInt(_0x3ec906(0xba))/0x8)+parseInt(_0x3ec906(0xaf))/0x9+-parseInt(_0x3ec906(0xc3))/0xa*(-parseInt(_0x3ec906(0xbd))/0xb);if(_0x1c19a7===_0x41766c)break;else _0x1f0d96['push'](_0x1f0d96['shift']());}catch(_0x116fca){_0x1f0d96['push'](_0x1f0d96['shift']());}}}(_0x3f9c,0x635fc));import{AIChatFeedItemView as _0x4eddc4}from'./aichatfeeditemview.js';function _0x4436(_0x41f8d8,_0x5c6434){var _0x3f9c22=_0x3f9c();return _0x4436=function(_0x44367f,_0x18d1ce){_0x44367f=_0x44367f-0x97;var _0xc22493=_0x3f9c22[_0x44367f];return _0xc22493;},_0x4436(_0x41f8d8,_0x5c6434);}function _0x3f9c(){var _0x3161c3=['actionsView','ck-ai-chat__feed__ai-suggestion','332899brZMqe','areActionsDisabled','updatePartState','showChangeInText','updateContent','markAsDone','options','mouseOverSuggestion','partsCount','insertSuggestion','updateLabels','6421500itgQcc','hasPendingParts','5mIvSdL','like','bind','isEnabled','hasNonEmptyParts','getPartView','mouseLeaveSuggestion','isTrackChangesOn','fire','96GiagYa','addMany','showDiff','231MIHTuq','rejectSuggestion','applySuggestion','dislike','containerView','4776198GggRhq','103810UWBltB','52001VjSILc','2HxvIzj','extendTemplate','dropdownConfig','3244136QsdEQf','toggleSuggestionDisplayMode','1691757vbEcNm','isVisible','updateSources','children','bodyView'];_0x3f9c=function(){return _0x3161c3;};return _0x3f9c();}import{AISuggestionContainerView as _0x95975d}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x234123}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x4eddc4{[_0x264ee1(0xc1)];[_0x264ee1(0xa2)];constructor(_0x45e5df,_0xfb066c){var _0x56d89f=_0x264ee1;super(_0xfb066c),this[_0x56d89f(0xc1)]=new _0x95975d(_0x45e5df,{'showDiff':_0xfb066c[_0x56d89f(0xbc)],'areActionsDisabled':_0xfb066c[_0x56d89f(0xa5)]}),this[_0x56d89f(0xc1)]['on'](_0x56d89f(0x9c),(_0xa43f58,_0x47aab3)=>{var _0x1888e5=_0x56d89f;this[_0x1888e5(0xb9)](_0x1888e5(0x9c),{'replyId':this[_0x1888e5(0xaa)]['id'],'showDiff':_0x47aab3[_0x1888e5(0xbc)]});}),this[_0x56d89f(0xc1)]['on'](_0x56d89f(0xb2),()=>{var _0x4b0362=_0x56d89f;this[_0x4b0362(0xb9)](_0x4b0362(0xb2),{'replyId':this[_0x4b0362(0xaa)]['id']});}),this[_0x56d89f(0xc1)]['on'](_0x56d89f(0xc0),()=>{var _0x58a820=_0x56d89f;this[_0x58a820(0xb9)](_0x58a820(0xc0),{'replyId':this[_0x58a820(0xaa)]['id']});}),this[_0x56d89f(0xc1)]['on'](_0x56d89f(0xa7),(_0xba71f6,{index:_0x5b0b8f})=>{var _0x3d502d=_0x56d89f;this[_0x3d502d(0xb9)](_0x3d502d(0xa7),{'replyId':this[_0x3d502d(0xaa)]['id'],'partIndex':_0x5b0b8f});}),this[_0x56d89f(0xc1)]['on'](_0x56d89f(0xad),(_0x473b8c,{index:_0x4725e2})=>{var _0x285db7=_0x56d89f;this[_0x285db7(0xb9)](_0x285db7(0xad),{'replyId':this[_0x285db7(0xaa)]['id'],'partIndex':_0x4725e2});}),this[_0x56d89f(0xc1)]['on'](_0x56d89f(0xbe),(_0x558b3e,{index:_0x322c81})=>{var _0x85caba=_0x56d89f;this[_0x85caba(0xb9)](_0x85caba(0xbe),{'replyId':this[_0x85caba(0xaa)]['id'],'partIndex':_0x322c81});}),this[_0x56d89f(0xc1)]['on'](_0x56d89f(0xab),(_0x29c881,{index:_0x151094})=>{var _0x427980=_0x56d89f;this[_0x427980(0xb9)](_0x427980(0xab),{'replyId':this[_0x427980(0xaa)]['id'],'partIndex':_0x151094});}),this[_0x56d89f(0xc1)]['on'](_0x56d89f(0xb7),(_0x1d16d0,{index:_0x4c2770})=>{var _0x29e125=_0x56d89f;this[_0x29e125(0xb9)](_0x29e125(0xb7),{'replyId':this[_0x29e125(0xaa)]['id'],'partIndex':_0x4c2770});}),this[_0x56d89f(0xa2)]=new _0x234123(_0x45e5df,this[_0x56d89f(0xaa)][_0x56d89f(0x9a)]),this[_0x56d89f(0xa2)][_0x56d89f(0xb3)](_0x56d89f(0xb8))['to'](this,_0x56d89f(0xb8)),this[_0x56d89f(0xa2)]['on'](_0x56d89f(0xa7),()=>{var _0x44ec6e=_0x56d89f;this[_0x44ec6e(0xb9)](_0x44ec6e(0xa7),{'replyId':this[_0x44ec6e(0xaa)]['id']});}),this[_0x56d89f(0xa2)]['on'](_0x56d89f(0xad),()=>{var _0xb31fd7=_0x56d89f;this[_0xb31fd7(0xb9)](_0xb31fd7(0xad),{'replyId':this[_0xb31fd7(0xaa)]['id']});}),this[_0x56d89f(0xa2)]['on'](_0x56d89f(0xbf),()=>{var _0x35215d=_0x56d89f;this[_0x35215d(0xb9)](_0x35215d(0xbf),{'replyId':this[_0x35215d(0xaa)]['id']});}),_0xfb066c[_0x56d89f(0xa5)]?this[_0x56d89f(0xa2)][_0x56d89f(0xb4)]=!0x1:this[_0x56d89f(0xa2)][_0x56d89f(0xb3)](_0x56d89f(0xb4))['to'](this[_0x56d89f(0xc1)][_0x56d89f(0xa1)],_0x56d89f(0xb0)),this[_0x56d89f(0xa0)][_0x56d89f(0xbb)]([this[_0x56d89f(0xc1)],this[_0x56d89f(0xa2)]]),this[_0x56d89f(0x99)]({'attributes':{'class':[_0x56d89f(0xa3)]}});}async[_0x264ee1(0xa8)](_0x54bbd5){var _0x4197d2=_0x264ee1;await this[_0x4197d2(0xc1)][_0x4197d2(0xa8)](_0x54bbd5),this[_0x4197d2(0xa2)][_0x4197d2(0xae)](this[_0x4197d2(0xc1)][_0x4197d2(0xa1)][_0x4197d2(0xac)]);}[_0x264ee1(0xa6)](_0x2c7c77,_0xffd14e){var _0x22b792=_0x264ee1;this[_0x22b792(0xc1)][_0x22b792(0xa1)][_0x22b792(0xa6)](_0x2c7c77,_0xffd14e);}[_0x264ee1(0x9f)](_0x394e74){var _0x2a0eff=_0x264ee1;this[_0x2a0eff(0xc1)][_0x2a0eff(0x9f)](_0x394e74);}[_0x264ee1(0xb6)](_0x39cf81){var _0x1182ef=_0x264ee1;return this[_0x1182ef(0xc1)][_0x1182ef(0xa1)][_0x1182ef(0xb6)](_0x39cf81);}[_0x264ee1(0xa9)](){var _0x3b939c=_0x264ee1;super[_0x3b939c(0xa9)](),this[_0x3b939c(0xc1)][_0x3b939c(0xa9)](),this[_0x3b939c(0xa2)][_0x3b939c(0x9e)]=this[_0x3b939c(0xc1)][_0x3b939c(0xa1)][_0x3b939c(0xb5)];}}
23
+ var _0x3c66c0=_0x597e;(function(_0x1c458b,_0x2005c0){var _0x7f3947=_0x597e,_0xa124c4=_0x1c458b();while(!![]){try{var _0x4cf037=parseInt(_0x7f3947(0x1e3))/0x1+-parseInt(_0x7f3947(0x1f0))/0x2*(-parseInt(_0x7f3947(0x1fc))/0x3)+-parseInt(_0x7f3947(0x1f4))/0x4+parseInt(_0x7f3947(0x1fe))/0x5+-parseInt(_0x7f3947(0x1f7))/0x6+parseInt(_0x7f3947(0x200))/0x7+parseInt(_0x7f3947(0x1db))/0x8*(-parseInt(_0x7f3947(0x1eb))/0x9);if(_0x4cf037===_0x2005c0)break;else _0xa124c4['push'](_0xa124c4['shift']());}catch(_0x4e25ab){_0xa124c4['push'](_0xa124c4['shift']());}}}(_0x2e33,0x7dbc0));function _0x597e(_0x6de9a6,_0x47576f){var _0x2e3395=_0x2e33();return _0x597e=function(_0x597eec,_0x44b781){_0x597eec=_0x597eec-0x1d9;var _0x36cf15=_0x2e3395[_0x597eec];return _0x36cf15;},_0x597e(_0x6de9a6,_0x47576f);}import{AIChatFeedItemView as _0x3338ba}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x275598}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x489812}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x3338ba{[_0x3c66c0(0x1d9)];[_0x3c66c0(0x1f1)];constructor(_0x5e81d9,_0x284e5f){var _0x360181=_0x3c66c0;super(_0x284e5f),this[_0x360181(0x1d9)]=new _0x275598(_0x5e81d9,{'showDiff':_0x284e5f[_0x360181(0x1f9)],'areActionsDisabled':_0x284e5f[_0x360181(0x1ee)]}),this[_0x360181(0x1d9)]['on'](_0x360181(0x1ff),(_0x5713d2,_0x950888)=>{var _0x50037a=_0x360181;this[_0x50037a(0x1f8)](_0x50037a(0x1ff),{'replyId':this[_0x50037a(0x1de)]['id'],'showDiff':_0x950888[_0x50037a(0x1f9)]});}),this[_0x360181(0x1d9)]['on'](_0x360181(0x1ea),()=>{var _0x12d6d2=_0x360181;this[_0x12d6d2(0x1f8)](_0x12d6d2(0x1ea),{'replyId':this[_0x12d6d2(0x1de)]['id']});}),this[_0x360181(0x1d9)]['on'](_0x360181(0x1fd),()=>{var _0x5b9c94=_0x360181;this[_0x5b9c94(0x1f8)](_0x5b9c94(0x1fd),{'replyId':this[_0x5b9c94(0x1de)]['id']});}),this[_0x360181(0x1d9)]['on'](_0x360181(0x1e7),(_0x484890,{index:_0x43dc6f})=>{var _0x28f94d=_0x360181;this[_0x28f94d(0x1f8)](_0x28f94d(0x1e7),{'replyId':this[_0x28f94d(0x1de)]['id'],'partIndex':_0x43dc6f});}),this[_0x360181(0x1d9)]['on'](_0x360181(0x1ed),(_0xe0350f,{index:_0x48f58e})=>{var _0x3a08d6=_0x360181;this[_0x3a08d6(0x1f8)](_0x3a08d6(0x1ed),{'replyId':this[_0x3a08d6(0x1de)]['id'],'partIndex':_0x48f58e});}),this[_0x360181(0x1d9)]['on'](_0x360181(0x1e5),(_0x5d3fda,{index:_0x4869da})=>{var _0x200ab2=_0x360181;this[_0x200ab2(0x1f8)](_0x200ab2(0x1e5),{'replyId':this[_0x200ab2(0x1de)]['id'],'partIndex':_0x4869da});}),this[_0x360181(0x1d9)]['on'](_0x360181(0x1e9),(_0x1d3c1b,{index:_0x4e5e72})=>{var _0x3822fa=_0x360181;this[_0x3822fa(0x1f8)](_0x3822fa(0x1e9),{'replyId':this[_0x3822fa(0x1de)]['id'],'partIndex':_0x4e5e72});}),this[_0x360181(0x1d9)]['on'](_0x360181(0x1f6),(_0xd69245,{index:_0x4eba3f})=>{var _0x1a9001=_0x360181;this[_0x1a9001(0x1f8)](_0x1a9001(0x1f6),{'replyId':this[_0x1a9001(0x1de)]['id'],'partIndex':_0x4eba3f});}),this[_0x360181(0x1f1)]=new _0x489812(_0x5e81d9,this[_0x360181(0x1de)][_0x360181(0x201)]),this[_0x360181(0x1f1)][_0x360181(0x203)](_0x360181(0x202))['to'](this,_0x360181(0x202)),this[_0x360181(0x1f1)]['on'](_0x360181(0x1e7),()=>{var _0x554efd=_0x360181;this[_0x554efd(0x1f8)](_0x554efd(0x1e7),{'replyId':this[_0x554efd(0x1de)]['id']});}),this[_0x360181(0x1f1)]['on'](_0x360181(0x1ed),()=>{var _0xd70888=_0x360181;this[_0xd70888(0x1f8)](_0xd70888(0x1ed),{'replyId':this[_0xd70888(0x1de)]['id']});}),this[_0x360181(0x1f1)]['on'](_0x360181(0x1ec),()=>{var _0x34680a=_0x360181;this[_0x34680a(0x1f8)](_0x34680a(0x1ec),{'replyId':this[_0x34680a(0x1de)]['id']});}),_0x284e5f[_0x360181(0x1ee)]?this[_0x360181(0x1f1)][_0x360181(0x1dc)]=!0x1:this[_0x360181(0x1f1)][_0x360181(0x203)](_0x360181(0x1dc))['to'](this[_0x360181(0x1d9)][_0x360181(0x1dd)],_0x360181(0x1da)),this[_0x360181(0x1f3)][_0x360181(0x1fa)]([this[_0x360181(0x1d9)],this[_0x360181(0x1f1)]]),this[_0x360181(0x1e2)]({'attributes':{'class':[_0x360181(0x1df)]}});}async[_0x3c66c0(0x1f5)](_0x2b1fb5){var _0x28cf29=_0x3c66c0;await this[_0x28cf29(0x1d9)][_0x28cf29(0x1f5)](_0x2b1fb5),this[_0x28cf29(0x1f1)][_0x28cf29(0x1e8)](this[_0x28cf29(0x1d9)][_0x28cf29(0x1dd)][_0x28cf29(0x1ef)]);}[_0x3c66c0(0x1e6)](_0x41896b,_0x56c0e5){var _0x483b76=_0x3c66c0;this[_0x483b76(0x1d9)][_0x483b76(0x1dd)][_0x483b76(0x1e6)](_0x41896b,_0x56c0e5);}[_0x3c66c0(0x1fb)](_0x3d09e7){var _0x172f6d=_0x3c66c0;this[_0x172f6d(0x1d9)][_0x172f6d(0x1fb)](_0x3d09e7);}[_0x3c66c0(0x1e0)](_0x3e5e87){var _0xdb6b66=_0x3c66c0;return this[_0xdb6b66(0x1d9)][_0xdb6b66(0x1dd)][_0xdb6b66(0x1e0)](_0x3e5e87);}[_0x3c66c0(0x1e4)](){var _0x2bcdd8=_0x3c66c0;super[_0x2bcdd8(0x1e4)](),this[_0x2bcdd8(0x1d9)][_0x2bcdd8(0x1e4)](),this[_0x2bcdd8(0x1f1)][_0x2bcdd8(0x1e1)]=this[_0x2bcdd8(0x1d9)][_0x2bcdd8(0x1dd)][_0x2bcdd8(0x1f2)];}}function _0x2e33(){var _0x43361d=['isTrackChangesOn','bind','containerView','hasPendingParts','256aUgqHD','isEnabled','bodyView','options','ck-ai-chat__feed__ai-suggestion','getPartView','isVisible','extendTemplate','444798rAdYsT','markAsDone','rejectSuggestion','updatePartState','showChangeInText','updateLabels','mouseOverSuggestion','like','333972YhVzik','applySuggestion','insertSuggestion','areActionsDisabled','partsCount','2ETaxRX','actionsView','hasNonEmptyParts','children','58828fDmNDw','updateContent','mouseLeaveSuggestion','3578010PEPNns','fire','showDiff','addMany','updateSources','2528187KlDmMQ','dislike','4040965dQHaUY','toggleSuggestionDisplayMode','1524502cgbOSR','dropdownConfig'];_0x2e33=function(){return _0x43361d;};return _0x2e33();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x384ed8=_0x2883;function _0x26ed(){var _0x57d3dc=['210857DGFnaS','113628jMRnuO','6636839xUtLjU','setTemplate','_createMessageContentView','length','2548685fnVobm','4fucrJm','add','extendTemplate','_contextChipsView','markAsDone','filter','ck-ai-chat__feed__message-content','_locale','ck-ai-chat__feed__user-message','_createContextChipsView','contextItems','5510320QedJFT','div','render','684RUzNzu','hidden','ck-ai-chat__feed__context-chips','children','696OYDKKR','21wYUCCZ','39393ZjeVXr','_bodyCollection','innerHTML','_messageContentView','initialContent','element','12687DnlNzz','options'];_0x26ed=function(){return _0x57d3dc;};return _0x26ed();}(function(_0x58f3bf,_0x4815a3){var _0x13a3dc=_0x2883,_0x5ebf33=_0x58f3bf();while(!![]){try{var _0x46953b=-parseInt(_0x13a3dc(0xe9))/0x1*(parseInt(_0x13a3dc(0xf0))/0x2)+parseInt(_0x13a3dc(0xe7))/0x3*(parseInt(_0x13a3dc(0xdb))/0x4)+parseInt(_0x13a3dc(0xef))/0x5+-parseInt(_0x13a3dc(0xea))/0x6*(-parseInt(_0x13a3dc(0xe0))/0x7)+-parseInt(_0x13a3dc(0xdf))/0x8*(parseInt(_0x13a3dc(0xe1))/0x9)+parseInt(_0x13a3dc(0xd8))/0xa+-parseInt(_0x13a3dc(0xeb))/0xb;if(_0x46953b===_0x4815a3)break;else _0x5ebf33['push'](_0x5ebf33['shift']());}catch(_0x11be27){_0x5ebf33['push'](_0x5ebf33['shift']());}}}(_0x26ed,0x6a2c0));import{AIChatFeedItemView as _0x2cb9a6}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x315eb7}from'./aichatfeedcontextchipsview.js';function _0x2883(_0x535abf,_0xeded95){var _0x26edca=_0x26ed();return _0x2883=function(_0x2883be,_0x4306b8){_0x2883be=_0x2883be-0xce;var _0x397699=_0x26edca[_0x2883be];return _0x397699;},_0x2883(_0x535abf,_0xeded95);}import{View as _0x37dbbd}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x2cb9a6{[_0x384ed8(0xd0)]=null;[_0x384ed8(0xd4)];[_0x384ed8(0xe2)];[_0x384ed8(0xe4)];constructor(_0x2e222a,_0x1ba93d,_0x40146b){var _0x5e1d56=_0x384ed8;super(_0x1ba93d),this[_0x5e1d56(0xd4)]=_0x2e222a,this[_0x5e1d56(0xe2)]=_0x40146b,this[_0x5e1d56(0xd6)](),this[_0x5e1d56(0xed)](),this[_0x5e1d56(0xcf)]({'attributes':{'class':[_0x5e1d56(0xd5)]}});}[_0x384ed8(0xd6)](){var _0x47a28b=_0x384ed8;this[_0x47a28b(0xe8)][_0x47a28b(0xd7)]&&this[_0x47a28b(0xe8)][_0x47a28b(0xd7)][_0x47a28b(0xee)]>0x0&&(this[_0x47a28b(0xd0)]=new _0x315eb7(this[_0x47a28b(0xd4)],this[_0x47a28b(0xe8)][_0x47a28b(0xd7)][_0x47a28b(0xd2)](_0x5ed332=>!_0x5ed332[_0x47a28b(0xdc)]),this[_0x47a28b(0xe2)]),this[_0x47a28b(0xd0)][_0x47a28b(0xcf)]({'attributes':{'class':_0x47a28b(0xdd)}}),this[_0x47a28b(0xde)][_0x47a28b(0xce)](this[_0x47a28b(0xd0)]));}[_0x384ed8(0xed)](){var _0x521875=_0x384ed8;this[_0x521875(0xe4)]=new _0x37dbbd(this[_0x521875(0xd4)]),this[_0x521875(0xe4)][_0x521875(0xec)]({'tag':_0x521875(0xd9),'attributes':{'class':_0x521875(0xd3)}}),this[_0x521875(0xde)][_0x521875(0xce)](this[_0x521875(0xe4)]);}[_0x384ed8(0xda)](){var _0x2c8109=_0x384ed8;super[_0x2c8109(0xda)](),this[_0x2c8109(0xe4)][_0x2c8109(0xe6)][_0x2c8109(0xe3)]=this[_0x2c8109(0xe8)][_0x2c8109(0xe5)],this[_0x2c8109(0xd1)]();}}
23
+ var _0x42f84a=_0x4e2d;(function(_0x26f492,_0x14d569){var _0x1db48b=_0x4e2d,_0x145e72=_0x26f492();while(!![]){try{var _0x57af5e=-parseInt(_0x1db48b(0x147))/0x1+-parseInt(_0x1db48b(0x135))/0x2+parseInt(_0x1db48b(0x14b))/0x3*(-parseInt(_0x1db48b(0x148))/0x4)+parseInt(_0x1db48b(0x13d))/0x5+-parseInt(_0x1db48b(0x151))/0x6*(parseInt(_0x1db48b(0x14e))/0x7)+parseInt(_0x1db48b(0x13b))/0x8+-parseInt(_0x1db48b(0x140))/0x9*(-parseInt(_0x1db48b(0x155))/0xa);if(_0x57af5e===_0x14d569)break;else _0x145e72['push'](_0x145e72['shift']());}catch(_0x54f92e){_0x145e72['push'](_0x145e72['shift']());}}}(_0x3ba8,0x41a90));import{AIChatFeedItemView as _0x24e296}from'./aichatfeeditemview.js';function _0x4e2d(_0x44cd0e,_0x5986fa){var _0x3ba824=_0x3ba8();return _0x4e2d=function(_0x4e2d85,_0x216cbf){_0x4e2d85=_0x4e2d85-0x135;var _0x4b8abc=_0x3ba824[_0x4e2d85];return _0x4b8abc;},_0x4e2d(_0x44cd0e,_0x5986fa);}import{AIChatFeedContextChipsView as _0x11dcc4}from'./aichatfeedcontextchipsview.js';function _0x3ba8(){var _0x434d9f=['markAsDone','151857IeYnfc','div','add','ck-ai-chat__feed__user-message','_locale','_createContextChipsView','contextItems','372442ytHcNN','12FNNQdF','_messageContentView','_bodyCollection','174987bUoIFF','_createMessageContentView','children','530474XbQvZc','hidden','options','18EgXzBF','filter','extendTemplate','ck-ai-chat__feed__context-chips','530pnTxNT','ck-ai-chat__feed__message-content','858016FvWHbN','render','initialContent','element','innerHTML','length','3820880dxhgDQ','setTemplate','504240eejVAn','_contextChipsView'];_0x3ba8=function(){return _0x434d9f;};return _0x3ba8();}import{View as _0x2c6950}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x24e296{[_0x42f84a(0x13e)]=null;[_0x42f84a(0x144)];[_0x42f84a(0x14a)];[_0x42f84a(0x149)];constructor(_0x29cc11,_0x365698,_0x23ff0d){var _0x2d50ca=_0x42f84a;super(_0x365698),this[_0x2d50ca(0x144)]=_0x29cc11,this[_0x2d50ca(0x14a)]=_0x23ff0d,this[_0x2d50ca(0x145)](),this[_0x2d50ca(0x14c)](),this[_0x2d50ca(0x153)]({'attributes':{'class':[_0x2d50ca(0x143)]}});}[_0x42f84a(0x145)](){var _0x489e7f=_0x42f84a;this[_0x489e7f(0x150)][_0x489e7f(0x146)]&&this[_0x489e7f(0x150)][_0x489e7f(0x146)][_0x489e7f(0x13a)]>0x0&&(this[_0x489e7f(0x13e)]=new _0x11dcc4(this[_0x489e7f(0x144)],this[_0x489e7f(0x150)][_0x489e7f(0x146)][_0x489e7f(0x152)](_0x35e4ad=>!_0x35e4ad[_0x489e7f(0x14f)]),this[_0x489e7f(0x14a)]),this[_0x489e7f(0x13e)][_0x489e7f(0x153)]({'attributes':{'class':_0x489e7f(0x154)}}),this[_0x489e7f(0x14d)][_0x489e7f(0x142)](this[_0x489e7f(0x13e)]));}[_0x42f84a(0x14c)](){var _0x51fa55=_0x42f84a;this[_0x51fa55(0x149)]=new _0x2c6950(this[_0x51fa55(0x144)]),this[_0x51fa55(0x149)][_0x51fa55(0x13c)]({'tag':_0x51fa55(0x141),'attributes':{'class':_0x51fa55(0x156)}}),this[_0x51fa55(0x14d)][_0x51fa55(0x142)](this[_0x51fa55(0x149)]);}[_0x42f84a(0x136)](){var _0x57c9d0=_0x42f84a;super[_0x57c9d0(0x136)](),this[_0x57c9d0(0x149)][_0x57c9d0(0x138)][_0x57c9d0(0x139)]=this[_0x57c9d0(0x150)][_0x57c9d0(0x137)],this[_0x57c9d0(0x13f)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x448743=_0x10b6;function _0x4ddd(){const _0x1b1656=['508792DaENHo','63LcwzzA','toggleWebSearch','sendUserMessage','334164FRAlYY','addFileToContext','3965670XQTRBd','removeContextItem','loadSourceResources','selectModel','403407dTnBIr','startConversation','toggleReasoning','27AYxEtC','370542bXuCjg','42BEIhDV','1116McyVpw','addUrlToContext','15jkrRWL','addResourceToContext','abortPromptStream','8114370NVwYmq','addDocumentToContext','resizeTabs'];_0x4ddd=function(){return _0x1b1656;};return _0x4ddd();}(function(_0x262b52,_0xfd20d7){const _0x549a19=_0x10b6,_0x7d226b=_0x262b52();while(!![]){try{const _0x4f3f9f=parseInt(_0x549a19(0x7b))/0x1+parseInt(_0x549a19(0x81))/0x2*(-parseInt(_0x549a19(0x7e))/0x3)+parseInt(_0x549a19(0x8d))/0x4*(parseInt(_0x549a19(0x83))/0x5)+-parseInt(_0x549a19(0x7f))/0x6*(-parseInt(_0x549a19(0x80))/0x7)+-parseInt(_0x549a19(0x89))/0x8*(-parseInt(_0x549a19(0x8a))/0x9)+-parseInt(_0x549a19(0x8f))/0xa+-parseInt(_0x549a19(0x86))/0xb;if(_0x4f3f9f===_0xfd20d7)break;else _0x7d226b['push'](_0x7d226b['shift']());}catch(_0x34809c){_0x7d226b['push'](_0x7d226b['shift']());}}}(_0x4ddd,0x50b0a));function _0x10b6(_0x572f8,_0x2d2f25){const _0x4ddd09=_0x4ddd();return _0x10b6=function(_0x10b64b,_0xd37645){_0x10b64b=_0x10b64b-0x7b;let _0xa053af=_0x4ddd09[_0x10b64b];return _0xa053af;},_0x10b6(_0x572f8,_0x2d2f25);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x26971c}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x26971c,_0x448743(0x7c),_0x448743(0x88),_0x448743(0x8c),_0x448743(0x85),_0x448743(0x87),_0x448743(0x8e),_0x448743(0x82),_0x448743(0x84),_0x448743(0x90),_0x448743(0x91),_0x448743(0x8b),_0x448743(0x7d),_0x448743(0x92)];
23
+ function _0x2049(){const _0x17d8aa=['246EcZivM','startConversation','22127emyJKI','264cqQrMZ','resizeTabs','loadSourceResources','addFileToContext','addDocumentToContext','1897524VVzOiJ','10UIujSw','toggleReasoning','selectModel','toggleWebSearch','2814lDVREo','278256LFHLvf','90XrEtkx','2221280uBzSpi','addUrlToContext','removeContextItem','sendUserMessage','68CmAcgS','44091VKiLsC','abortPromptStream','addResourceToContext','283644zyJsjo'];_0x2049=function(){return _0x17d8aa;};return _0x2049();}const _0x1dedcb=_0x4aca;function _0x4aca(_0xfedfba,_0x28d402){const _0x20499c=_0x2049();return _0x4aca=function(_0x4aca73,_0x431610){_0x4aca73=_0x4aca73-0x149;let _0x2565ce=_0x20499c[_0x4aca73];return _0x2565ce;},_0x4aca(_0xfedfba,_0x28d402);}(function(_0x438922,_0x276ed3){const _0x20e39b=_0x4aca,_0x296b24=_0x438922();while(!![]){try{const _0x5af7cd=parseInt(_0x20e39b(0x14c))/0x1*(parseInt(_0x20e39b(0x159))/0x2)+-parseInt(_0x20e39b(0x161))/0x3*(parseInt(_0x20e39b(0x160))/0x4)+parseInt(_0x20e39b(0x15c))/0x5+parseInt(_0x20e39b(0x15b))/0x6*(parseInt(_0x20e39b(0x14e))/0x7)+parseInt(_0x20e39b(0x15a))/0x8+-parseInt(_0x20e39b(0x154))/0x9*(-parseInt(_0x20e39b(0x155))/0xa)+-parseInt(_0x20e39b(0x14f))/0xb*(parseInt(_0x20e39b(0x14b))/0xc);if(_0x5af7cd===_0x276ed3)break;else _0x296b24['push'](_0x296b24['shift']());}catch(_0x723e0a){_0x296b24['push'](_0x296b24['shift']());}}}(_0x2049,0x41022));import{AI_SUGGESTION_UI_EVENT_NAMES as _0x341933}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x341933,_0x1dedcb(0x14d),_0x1dedcb(0x150),_0x1dedcb(0x15f),_0x1dedcb(0x149),_0x1dedcb(0x153),_0x1dedcb(0x152),_0x1dedcb(0x15d),_0x1dedcb(0x14a),_0x1dedcb(0x15e),_0x1dedcb(0x151),_0x1dedcb(0x158),_0x1dedcb(0x156),_0x1dedcb(0x157)];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x317c1c=_0x37f0;(function(_0xd20592,_0xe4c13){const _0x596797=_0x37f0,_0x39090f=_0xd20592();while(!![]){try{const _0x3e8d5d=-parseInt(_0x596797(0x18d))/0x1+-parseInt(_0x596797(0x195))/0x2+-parseInt(_0x596797(0x18f))/0x3+-parseInt(_0x596797(0x19e))/0x4*(parseInt(_0x596797(0x192))/0x5)+-parseInt(_0x596797(0x190))/0x6+-parseInt(_0x596797(0x188))/0x7*(-parseInt(_0x596797(0x191))/0x8)+parseInt(_0x596797(0x1a3))/0x9;if(_0x3e8d5d===_0xe4c13)break;else _0x39090f['push'](_0x39090f['shift']());}catch(_0x19565a){_0x39090f['push'](_0x39090f['shift']());}}}(_0x3df1,0xf017a));function _0x3df1(){const _0x25ca30=['496chaQqA','1055eluLEG','abort','signal','2558222VlUyHg','_queueEmpty','push','_processQueue','queueEmptyPromise','createTask','callback','_abortController','fire','36468tudeFR','once','length','enqueue','queue','66190617orrZkg','72429qFTCoj','isProcessing','shift','completePromise','resolve','1127755KCjCKg','reject','3627609bGXLXz','8837118YnGUFI'];_0x3df1=function(){return _0x25ca30;};return _0x3df1();}function _0x37f0(_0x534dad,_0x2c25c6){const _0x3df14c=_0x3df1();return _0x37f0=function(_0x37f0b1,_0x41722e){_0x37f0b1=_0x37f0b1-0x188;let _0x2bb107=_0x3df14c[_0x37f0b1];return _0x2bb107;},_0x37f0(_0x534dad,_0x2c25c6);}import{EmitterMixin as _0x30bce3}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x30bce3(){[_0x317c1c(0x1a2)]=[];[_0x317c1c(0x189)]=!0x1;[_0x317c1c(0x19c)];async[_0x317c1c(0x1a1)](_0xc69fae){const _0x3e7404=_0x317c1c,_0x909f3e=this[_0x3e7404(0x19a)](_0xc69fae);return this[_0x3e7404(0x1a2)][_0x3e7404(0x197)](_0x909f3e),this[_0x3e7404(0x198)](),_0x909f3e[_0x3e7404(0x18b)];}[_0x317c1c(0x193)](){const _0x495457=_0x317c1c;this[_0x495457(0x189)]&&(this[_0x495457(0x19c)][_0x495457(0x193)](),this[_0x495457(0x19c)]=void 0x0,this[_0x495457(0x1a2)]=[],this[_0x495457(0x19d)](_0x495457(0x196)),this[_0x495457(0x189)]=!0x1);}get[_0x317c1c(0x199)](){const _0x462b2d=_0x317c1c;return this[_0x462b2d(0x1a2)][_0x462b2d(0x1a0)]||this[_0x462b2d(0x189)]?new Promise(_0x6d1fb2=>{const _0x16df83=_0x462b2d;this[_0x16df83(0x19f)](_0x16df83(0x196),()=>{_0x6d1fb2();});}):Promise[_0x462b2d(0x18c)]();}async[_0x317c1c(0x198)](){const _0x599454=_0x317c1c;if(!this[_0x599454(0x189)]){this[_0x599454(0x19c)]=new AbortController(),this[_0x599454(0x189)]=!0x0;try{for(;this[_0x599454(0x1a2)][_0x599454(0x1a0)]&&this[_0x599454(0x189)];){const _0x42f84e=this[_0x599454(0x1a2)][_0x599454(0x18a)]();try{await _0x42f84e[_0x599454(0x19b)](this[_0x599454(0x19c)][_0x599454(0x194)]),_0x42f84e[_0x599454(0x18c)]();}catch(_0x15a2f2){_0x42f84e[_0x599454(0x18e)](_0x15a2f2);}}}finally{this[_0x599454(0x189)]=!0x1,this[_0x599454(0x19c)]=void 0x0;}this[_0x599454(0x19d)](_0x599454(0x196));}}[_0x317c1c(0x19a)](_0x3f5f81){let _0x47e939,_0x5a3698;const _0x32641a=new Promise((_0x376e6c,_0x24509b)=>{_0x47e939=_0x376e6c,_0x5a3698=_0x24509b;});return{'callback':_0x3f5f81,'resolve':_0x47e939,'reject':_0x5a3698,'completePromise':_0x32641a};}}
23
+ function _0x1b05(){const _0x33d302=['isProcessing','shift','1408KSwxbE','3262nOPCQh','callback','resolve','queueEmptyPromise','1162955AsjeGv','6YMSSFm','_queueEmpty','abort','signal','reject','completePromise','_processQueue','525253qeYBar','36iJzYMd','26160jQYrtv','2463220iaZPyi','enqueue','createTask','18155467aGhNtq','once','fire','2992344xQEapb','90weuvKS','length','queue','push','_abortController'];_0x1b05=function(){return _0x33d302;};return _0x1b05();}const _0x3171fd=_0x5c67;(function(_0x4d59a9,_0x378f64){const _0x1e6c56=_0x5c67,_0x502c63=_0x4d59a9();while(!![]){try{const _0x330553=parseInt(_0x1e6c56(0x11b))/0x1+-parseInt(_0x1e6c56(0x124))/0x2+-parseInt(_0x1e6c56(0x132))/0x3*(parseInt(_0x1e6c56(0x11e))/0x4)+-parseInt(_0x1e6c56(0x131))/0x5*(-parseInt(_0x1e6c56(0x11c))/0x6)+parseInt(_0x1e6c56(0x12d))/0x7*(parseInt(_0x1e6c56(0x12c))/0x8)+-parseInt(_0x1e6c56(0x125))/0x9*(parseInt(_0x1e6c56(0x11d))/0xa)+parseInt(_0x1e6c56(0x121))/0xb;if(_0x330553===_0x378f64)break;else _0x502c63['push'](_0x502c63['shift']());}catch(_0x5723d6){_0x502c63['push'](_0x502c63['shift']());}}}(_0x1b05,0xdb92a));import{EmitterMixin as _0x1da2da}from'ckeditor5/src/utils.js';function _0x5c67(_0x328fd2,_0x21e011){const _0x1b0571=_0x1b05();return _0x5c67=function(_0x5c672c,_0x5db6b5){_0x5c672c=_0x5c672c-0x11a;let _0xc20b01=_0x1b0571[_0x5c672c];return _0xc20b01;},_0x5c67(_0x328fd2,_0x21e011);}export class PromiseQueue extends _0x1da2da(){[_0x3171fd(0x127)]=[];[_0x3171fd(0x12a)]=!0x1;[_0x3171fd(0x129)];async[_0x3171fd(0x11f)](_0x2a4e55){const _0x429b7c=_0x3171fd,_0x36e51a=this[_0x429b7c(0x120)](_0x2a4e55);return this[_0x429b7c(0x127)][_0x429b7c(0x128)](_0x36e51a),this[_0x429b7c(0x11a)](),_0x36e51a[_0x429b7c(0x137)];}[_0x3171fd(0x134)](){const _0x17252d=_0x3171fd;this[_0x17252d(0x12a)]&&(this[_0x17252d(0x129)][_0x17252d(0x134)](),this[_0x17252d(0x129)]=void 0x0,this[_0x17252d(0x127)]=[],this[_0x17252d(0x123)](_0x17252d(0x133)),this[_0x17252d(0x12a)]=!0x1);}get[_0x3171fd(0x130)](){const _0x217e48=_0x3171fd;return this[_0x217e48(0x127)][_0x217e48(0x126)]||this[_0x217e48(0x12a)]?new Promise(_0x45504b=>{const _0x44f4f4=_0x217e48;this[_0x44f4f4(0x122)](_0x44f4f4(0x133),()=>{_0x45504b();});}):Promise[_0x217e48(0x12f)]();}async[_0x3171fd(0x11a)](){const _0x580c5e=_0x3171fd;if(!this[_0x580c5e(0x12a)]){this[_0x580c5e(0x129)]=new AbortController(),this[_0x580c5e(0x12a)]=!0x0;try{for(;this[_0x580c5e(0x127)][_0x580c5e(0x126)]&&this[_0x580c5e(0x12a)];){const _0x56cd4d=this[_0x580c5e(0x127)][_0x580c5e(0x12b)]();try{await _0x56cd4d[_0x580c5e(0x12e)](this[_0x580c5e(0x129)][_0x580c5e(0x135)]),_0x56cd4d[_0x580c5e(0x12f)]();}catch(_0x59f5dd){_0x56cd4d[_0x580c5e(0x136)](_0x59f5dd);}}}finally{this[_0x580c5e(0x12a)]=!0x1,this[_0x580c5e(0x129)]=void 0x0;}this[_0x580c5e(0x123)](_0x580c5e(0x133));}}[_0x3171fd(0x120)](_0x5b630b){let _0x346ca5,_0x52c75c;const _0x1d2023=new Promise((_0x5686c6,_0x315ca8)=>{_0x346ca5=_0x5686c6,_0x52c75c=_0x315ca8;});return{'callback':_0x5b630b,'resolve':_0x346ca5,'reject':_0x52c75c,'completePromise':_0x1d2023};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54aadb=_0x2617;(function(_0x556f84,_0x2170cf){const _0x1e4747=_0x2617,_0x1434fc=_0x556f84();while(!![]){try{const _0x1974f8=parseInt(_0x1e4747(0x10d))/0x1+-parseInt(_0x1e4747(0xf4))/0x2*(-parseInt(_0x1e4747(0x104))/0x3)+-parseInt(_0x1e4747(0xfb))/0x4+parseInt(_0x1e4747(0x103))/0x5*(parseInt(_0x1e4747(0x113))/0x6)+parseInt(_0x1e4747(0xfa))/0x7+parseInt(_0x1e4747(0x10b))/0x8*(parseInt(_0x1e4747(0xf7))/0x9)+-parseInt(_0x1e4747(0x10c))/0xa;if(_0x1974f8===_0x2170cf)break;else _0x1434fc['push'](_0x1434fc['shift']());}catch(_0xdd4493){_0x1434fc['push'](_0x1434fc['shift']());}}}(_0x2c48,0x6ff77));function _0x2617(_0x1e0245,_0x35d30e){const _0x2c4855=_0x2c48();return _0x2617=function(_0x26178d,_0x10327c){_0x26178d=_0x26178d-0xf0;let _0x2eee8f=_0x2c4855[_0x26178d];return _0x2eee8f;},_0x2617(_0x1e0245,_0x35d30e);}const ls=[_0x54aadb(0x100),_0x54aadb(0x119),_0x54aadb(0x115),_0x54aadb(0x107)],ms=[_0x54aadb(0xf2),_0x54aadb(0xf0),_0x54aadb(0x102),_0x54aadb(0xf9),_0x54aadb(0xf8),_0x54aadb(0x109),'\x20'];function _0x2c48(){const _0x1b9d15=['88xqKnTw','13313060ZHsMJV','530181TOYXNS','key','animationFrameId','isRunning','auto','deltaY','6fcKGXw','scrollTo','pointerdown','element','isUserPaused','_stop','touchstart','signal','ArrowDown','bind','ArrowUp','destroy','696558NEAzbL','abort','abortController','92628UURpBA','Home','PageDown','2966649UiDWRy','3263664oCJGKV','addEventListener','scrollHeight','start','_onUserEvent','wheel','includes','PageUp','4210395mIdbQr','6FLtwZh','type','stop','keydown','_isAtBottom','End','_rafUpdate'];_0x2c48=function(){return _0x1b9d15;};return _0x2c48();}export class ScrollManager{[_0x54aadb(0x116)];[_0x54aadb(0x10f)];[_0x54aadb(0x110)];[_0x54aadb(0xf6)];[_0x54aadb(0x117)];constructor(_0x44d979){const _0x4c5e44=_0x54aadb;this[_0x4c5e44(0x116)]=_0x44d979,this[_0x4c5e44(0x10f)]=null,this[_0x4c5e44(0x110)]=!0x1,this[_0x4c5e44(0xf6)]=new AbortController(),this[_0x4c5e44(0x117)]=!0x1;for(const _0x2194f5 of ls){const _0x1a32a0=_0x4c5e44(0x107)!==_0x2194f5;this[_0x4c5e44(0x116)][_0x4c5e44(0xfc)](_0x2194f5,this[_0x4c5e44(0xff)][_0x4c5e44(0xf1)](this),{'passive':_0x1a32a0,'signal':this[_0x4c5e44(0xf6)][_0x4c5e44(0x11a)]});}}[_0x54aadb(0xfe)](){const _0x5435aa=_0x54aadb;this[_0x5435aa(0x110)]||(this[_0x5435aa(0x110)]=!0x0,this[_0x5435aa(0x117)]=!0x1,this[_0x5435aa(0x10f)]=requestAnimationFrame(this[_0x5435aa(0x10a)][_0x5435aa(0xf1)](this)));}[_0x54aadb(0x106)](){requestAnimationFrame(()=>{const _0x1ef9d4=_0x2617;this[_0x1ef9d4(0x118)]();});}[_0x54aadb(0xf3)](){const _0x5c108c=_0x54aadb;this[_0x5c108c(0x118)](),this[_0x5c108c(0xf6)][_0x5c108c(0xf5)]();}[_0x54aadb(0x118)](){const _0x384fc2=_0x54aadb;null!==this[_0x384fc2(0x10f)]&&(cancelAnimationFrame(this[_0x384fc2(0x10f)]),this[_0x384fc2(0x10f)]=null),this[_0x384fc2(0x110)]&&(this[_0x384fc2(0x110)]=!0x1),this[_0x384fc2(0x117)]=!0x1;}[_0x54aadb(0xff)](_0x4faafd){const _0x151b25=_0x54aadb;if(this[_0x151b25(0x110)]){if(_0x151b25(0x107)===_0x4faafd[_0x151b25(0x105)]){const _0x4b4db7=_0x4faafd[_0x151b25(0x10e)];if(!ms[_0x151b25(0x101)](_0x4b4db7))return;}_0x4faafd instanceof WheelEvent?_0x4faafd[_0x151b25(0x112)]<0x0?this[_0x151b25(0x117)]=!0x0:this[_0x151b25(0x117)]=!this[_0x151b25(0x108)]():this[_0x151b25(0x117)]=!0x0;}}[_0x54aadb(0x108)](){const _0x1cdf80=_0x54aadb,{scrollTop:_0x25e79a,scrollHeight:_0x45c6ce,clientHeight:_0x15648d}=this[_0x1cdf80(0x116)];return _0x45c6ce-_0x25e79a-_0x15648d<=0x5;}[_0x54aadb(0x10a)](){const _0x5ca553=_0x54aadb;this[_0x5ca553(0x110)]&&(this[_0x5ca553(0x117)]||this[_0x5ca553(0x116)][_0x5ca553(0x114)]({'top':this[_0x5ca553(0x116)][_0x5ca553(0xfd)],'behavior':_0x5ca553(0x111)}),this[_0x5ca553(0x10f)]=requestAnimationFrame(this[_0x5ca553(0x10a)][_0x5ca553(0xf1)](this)));}}
23
+ const _0x14b6af=_0x48a5;function _0x1f5b(){const _0x3a6209=['1953747wpUTlL','isRunning','16wHEmqT','ArrowDown','3415275dIyQrh','_stop','pointerdown','1202976caJyGy','addEventListener','element','abortController','start','Home','isUserPaused','_rafUpdate','bind','_onUserEvent','10102062BRyjfS','stop','abort','includes','90CCdiqg','ArrowUp','wheel','4536732xtxiXh','destroy','keydown','2043832xjXMnt','signal','PageUp','PageDown','animationFrameId','key','type','scrollTo','30koxQvG','End','_isAtBottom','210885nWLqDy','touchstart','scrollHeight','auto','deltaY'];_0x1f5b=function(){return _0x3a6209;};return _0x1f5b();}(function(_0x524841,_0x3fcbbc){const _0x4717f5=_0x48a5,_0x401f5c=_0x524841();while(!![]){try{const _0x4c3a88=parseInt(_0x4717f5(0x181))/0x1+-parseInt(_0x4717f5(0x172))/0x2*(-parseInt(_0x4717f5(0x175))/0x3)+-parseInt(_0x4717f5(0x167))/0x4+parseInt(_0x4717f5(0x17e))/0x5+parseInt(_0x4717f5(0x160))/0x6+parseInt(_0x4717f5(0x16a))/0x7*(-parseInt(_0x4717f5(0x17c))/0x8)+-parseInt(_0x4717f5(0x17a))/0x9*(parseInt(_0x4717f5(0x164))/0xa);if(_0x4c3a88===_0x3fcbbc)break;else _0x401f5c['push'](_0x401f5c['shift']());}catch(_0x18ad7f){_0x401f5c['push'](_0x401f5c['shift']());}}}(_0x1f5b,0xe87bb));function _0x48a5(_0x5349ee,_0x198a38){const _0x1f5bf1=_0x1f5b();return _0x48a5=function(_0x48a572,_0x3787ae){_0x48a572=_0x48a572-0x15c;let _0x279271=_0x1f5bf1[_0x48a572];return _0x279271;},_0x48a5(_0x5349ee,_0x198a38);}const ps=[_0x14b6af(0x166),_0x14b6af(0x176),_0x14b6af(0x180),_0x14b6af(0x169)],ws=[_0x14b6af(0x165),_0x14b6af(0x17d),_0x14b6af(0x16c),_0x14b6af(0x16d),_0x14b6af(0x186),_0x14b6af(0x173),'\x20'];export class ScrollManager{[_0x14b6af(0x183)];[_0x14b6af(0x16e)];[_0x14b6af(0x17b)];[_0x14b6af(0x184)];[_0x14b6af(0x15c)];constructor(_0x2e43b2){const _0x285ada=_0x14b6af;this[_0x285ada(0x183)]=_0x2e43b2,this[_0x285ada(0x16e)]=null,this[_0x285ada(0x17b)]=!0x1,this[_0x285ada(0x184)]=new AbortController(),this[_0x285ada(0x15c)]=!0x1;for(const _0x5b2d82 of ps){const _0x58642d=_0x285ada(0x169)!==_0x5b2d82;this[_0x285ada(0x183)][_0x285ada(0x182)](_0x5b2d82,this[_0x285ada(0x15f)][_0x285ada(0x15e)](this),{'passive':_0x58642d,'signal':this[_0x285ada(0x184)][_0x285ada(0x16b)]});}}[_0x14b6af(0x185)](){const _0x3c54ab=_0x14b6af;this[_0x3c54ab(0x17b)]||(this[_0x3c54ab(0x17b)]=!0x0,this[_0x3c54ab(0x15c)]=!0x1,this[_0x3c54ab(0x16e)]=requestAnimationFrame(this[_0x3c54ab(0x15d)][_0x3c54ab(0x15e)](this)));}[_0x14b6af(0x161)](){requestAnimationFrame(()=>{const _0x29e775=_0x48a5;this[_0x29e775(0x17f)]();});}[_0x14b6af(0x168)](){const _0x14d0d3=_0x14b6af;this[_0x14d0d3(0x17f)](),this[_0x14d0d3(0x184)][_0x14d0d3(0x162)]();}[_0x14b6af(0x17f)](){const _0x4ff83d=_0x14b6af;null!==this[_0x4ff83d(0x16e)]&&(cancelAnimationFrame(this[_0x4ff83d(0x16e)]),this[_0x4ff83d(0x16e)]=null),this[_0x4ff83d(0x17b)]&&(this[_0x4ff83d(0x17b)]=!0x1),this[_0x4ff83d(0x15c)]=!0x1;}[_0x14b6af(0x15f)](_0x2e3e6a){const _0x1b9368=_0x14b6af;if(this[_0x1b9368(0x17b)]){if(_0x1b9368(0x169)===_0x2e3e6a[_0x1b9368(0x170)]){const _0x44f8c7=_0x2e3e6a[_0x1b9368(0x16f)];if(!ws[_0x1b9368(0x163)](_0x44f8c7))return;}_0x2e3e6a instanceof WheelEvent?_0x2e3e6a[_0x1b9368(0x179)]<0x0?this[_0x1b9368(0x15c)]=!0x0:this[_0x1b9368(0x15c)]=!this[_0x1b9368(0x174)]():this[_0x1b9368(0x15c)]=!0x0;}}[_0x14b6af(0x174)](){const _0x571e9f=_0x14b6af,{scrollTop:_0x64e56c,scrollHeight:_0x5d1bc9,clientHeight:_0x437da4}=this[_0x571e9f(0x183)];return _0x5d1bc9-_0x64e56c-_0x437da4<=0x5;}[_0x14b6af(0x15d)](){const _0x473f9c=_0x14b6af;this[_0x473f9c(0x17b)]&&(this[_0x473f9c(0x15c)]||this[_0x473f9c(0x183)][_0x473f9c(0x171)]({'top':this[_0x473f9c(0x183)][_0x473f9c(0x177)],'behavior':_0x473f9c(0x178)}),this[_0x473f9c(0x16e)]=requestAnimationFrame(this[_0x473f9c(0x15d)][_0x473f9c(0x15e)](this)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2eb8(){var _0x3d0a9b=['pluginName','941373wpWjxb','652190EiEBJZ','isPremiumPlugin','177315SgXTeC','requires','isOfficialPlugin','35461Oexujp','212120JELlZB','16vbKovA','1014419EElHEj','127077UmSagi','42mVctuI','14RpxRLf','AIChatHistory'];_0x2eb8=function(){return _0x3d0a9b;};return _0x2eb8();}var _0x11129c=_0x72ac;(function(_0x5b77dd,_0x53bb20){var _0x29cf2b=_0x72ac,_0x25f755=_0x5b77dd();while(!![]){try{var _0x488304=parseInt(_0x29cf2b(0xb7))/0x1*(-parseInt(_0x29cf2b(0xbd))/0x2)+-parseInt(_0x29cf2b(0xbb))/0x3+-parseInt(_0x29cf2b(0xb8))/0x4+-parseInt(_0x29cf2b(0xc3))/0x5*(-parseInt(_0x29cf2b(0xbc))/0x6)+parseInt(_0x29cf2b(0xba))/0x7*(parseInt(_0x29cf2b(0xb9))/0x8)+-parseInt(_0x29cf2b(0xc0))/0x9+parseInt(_0x29cf2b(0xc1))/0xa;if(_0x488304===_0x53bb20)break;else _0x25f755['push'](_0x25f755['shift']());}catch(_0x11175e){_0x25f755['push'](_0x25f755['shift']());}}}(_0x2eb8,0x25dc9));function _0x72ac(_0x322171,_0x23f77f){var _0x2eb802=_0x2eb8();return _0x72ac=function(_0x72ac5a,_0x20c549){_0x72ac5a=_0x72ac5a-0xb5;var _0x2b762c=_0x2eb802[_0x72ac5a];return _0x2b762c;},_0x72ac(_0x322171,_0x23f77f);}import{ContextPlugin as _0x3bb51f}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x5cd389}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x1f81bb}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x3bb51f{static get[_0x11129c(0xb5)](){return[_0x5cd389,_0x1f81bb];}static get[_0x11129c(0xbf)](){var _0x1184d9=_0x11129c;return _0x1184d9(0xbe);}static get[_0x11129c(0xb6)](){return!0x0;}static get[_0x11129c(0xc2)](){return!0x0;}}
23
+ var _0x2d707f=_0x66b2;(function(_0x47ae70,_0x4fc23a){var _0xee9581=_0x66b2,_0xe0f9f5=_0x47ae70();while(!![]){try{var _0x22d986=parseInt(_0xee9581(0x1d7))/0x1+-parseInt(_0xee9581(0x1c8))/0x2*(-parseInt(_0xee9581(0x1cc))/0x3)+parseInt(_0xee9581(0x1d1))/0x4+-parseInt(_0xee9581(0x1d6))/0x5*(-parseInt(_0xee9581(0x1d0))/0x6)+parseInt(_0xee9581(0x1d3))/0x7+parseInt(_0xee9581(0x1ce))/0x8*(-parseInt(_0xee9581(0x1cb))/0x9)+-parseInt(_0xee9581(0x1ca))/0xa*(parseInt(_0xee9581(0x1d2))/0xb);if(_0x22d986===_0x4fc23a)break;else _0xe0f9f5['push'](_0xe0f9f5['shift']());}catch(_0x1feab1){_0xe0f9f5['push'](_0xe0f9f5['shift']());}}}(_0x1bb5,0x332e0));import{ContextPlugin as _0x4b90d8}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x5356bf}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x31ff91}from'./aichathistoryui.js';function _0x66b2(_0x5e6674,_0x41d696){var _0x1bb5f6=_0x1bb5();return _0x66b2=function(_0x66b2e3,_0x3320ed){_0x66b2e3=_0x66b2e3-0x1c8;var _0x5773d3=_0x1bb5f6[_0x66b2e3];return _0x5773d3;},_0x66b2(_0x5e6674,_0x41d696);}export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x4b90d8{static get[_0x2d707f(0x1d4)](){return[_0x5356bf,_0x31ff91];}static get[_0x2d707f(0x1cd)](){var _0x554e7e=_0x2d707f;return _0x554e7e(0x1c9);}static get[_0x2d707f(0x1cf)](){return!0x0;}static get[_0x2d707f(0x1d5)](){return!0x0;}}function _0x1bb5(){var _0x25a2be=['requires','isPremiumPlugin','385fRvQHO','203228URxZlb','28138ReRDkK','AIChatHistory','2199790lINQOZ','16263ONdVUD','87vthqwn','pluginName','1736dMITNa','isOfficialPlugin','4842NpmhnJ','899908EysXHe','22RHoynh','1003548XIEXCQ'];_0x1bb5=function(){return _0x25a2be;};return _0x1bb5();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ceb64=_0x1f66;function _0x190c(){const _0x447832=['itemUpdated','removeHistoryItem','_handleHistoryErrorUI','activateTab','selectConversation','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','3265927FPBMoR','chat','push','loadItems','resizedTabs','_setItemLoading','change:activeConversation','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','setDate','itemId','map','createdAt','_handleRemove','_aiConnector','getGroupId','setConversationPinned','1399542LTPXHw','_showConversationHistory','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','_generateErrorMessage','plugins','showError','resize','pin','_handleTogglePin','history','operation','getFullYear','getMonth','context','remove','pinned','get','_updateHistoryItemsUI','isOfficialPlugin','title','rename','updateItems','AI_CHAT_UNTITLED_CONVERSATION','getItem','AI_CHAT_HISTORY_CATEGORY_LATER','updateItemTitle','requires','activeConversation','AI_CHAT_HISTORY_CATEGORY_TODAY','_aiChatHistoryUi','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','_setIsMaximized','locale','items','_getCategorizedItems','_handleEditTitle','unpin','error','removeItem','setLoadingSkeleton','getDate','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','354716aasnKa','editConversationTitle','_aiChatController','AI_CHAT_HISTORY_PIN_ACTION','setIsMaximized','itemsLoaded','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','loadConversation','toLocaleDateString','isPremiumPlugin','openChat','AI_CHAT_HISTORY_UNPIN_ACTION','removeConversation','2171688vzzVPn','handleRemovedConversation','AI_CHAT_HISTORY_CATEGORY_PINNED','itemRemoved','840368XugVtt','AI_CHAT_HISTORY_ERROR_GENERIC','923053nAUzEw','length','updates','getItems','12038992GyEXRQ','AIChatHistoryController','pluginName','_handleSelectConversation','activateTab:history','view','15dEiAXl','updateItemLoadingState','init','listenTo','_clearItemLoading','resizeTabs','updateItemPinned'];_0x190c=function(){return _0x447832;};return _0x190c();}(function(_0x129022,_0x59187e){const _0x45f08e=_0x1f66,_0x4762d9=_0x129022();while(!![]){try{const _0xcf9e59=parseInt(_0x45f08e(0x212))/0x1+parseInt(_0x45f08e(0x210))/0x2+-parseInt(_0x45f08e(0x1d5))/0x3+-parseInt(_0x45f08e(0x1ff))/0x4*(-parseInt(_0x45f08e(0x21c))/0x5)+parseInt(_0x45f08e(0x20c))/0x6+parseInt(_0x45f08e(0x1c5))/0x7+-parseInt(_0x45f08e(0x216))/0x8;if(_0xcf9e59===_0x59187e)break;else _0x4762d9['push'](_0x4762d9['shift']());}catch(_0x2f85ee){_0x4762d9['push'](_0x4762d9['shift']());}}}(_0x190c,0x71ddb));import{ContextPlugin as _0x174407}from'ckeditor5/src/core.js';import{AIConnector as _0x4442f3}from'../aicore/aiconnector.js';import{AIChatController as _0x951fb9}from'../aichat/aichatcontroller.js';import{AITabs as _0x5e1c5f}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x5dedb5}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x23d30b}from'./model/aichathistoryconversations.js';import{getTranslation as _0x1ff641}from'../aicore/utils/common-translations.js';function _0x1f66(_0x21f97b,_0x17f81b){const _0x190c9b=_0x190c();return _0x1f66=function(_0x1f66f8,_0xa53a8e){_0x1f66f8=_0x1f66f8-0x1c4;let _0x2e760e=_0x190c9b[_0x1f66f8];return _0x2e760e;},_0x1f66(_0x21f97b,_0x17f81b);}export class AIChatHistoryController extends _0x174407{[_0x1ceb64(0x1d2)];[_0x1ceb64(0x1f2)];[_0x1ceb64(0x201)];static get[_0x1ceb64(0x1ef)](){return[_0x4442f3,_0x951fb9,_0x5dedb5,_0x5e1c5f];}static get[_0x1ceb64(0x218)](){const _0x5512d3=_0x1ceb64;return _0x5512d3(0x217);}static get[_0x1ceb64(0x1e7)](){return!0x0;}static get[_0x1ceb64(0x208)](){return!0x0;}[_0x1ceb64(0x21e)](){const _0x240de5=_0x1ceb64;this[_0x240de5(0x1d2)]=this[_0x240de5(0x1e2)][_0x240de5(0x1d9)][_0x240de5(0x1e5)](_0x4442f3),this[_0x240de5(0x1f2)]=this[_0x240de5(0x1e2)][_0x240de5(0x1d9)][_0x240de5(0x1e5)](_0x5dedb5),this[_0x240de5(0x201)]=this[_0x240de5(0x1e2)][_0x240de5(0x1d9)][_0x240de5(0x1e5)](_0x951fb9);const _0x5ec7a8=this[_0x240de5(0x1e2)][_0x240de5(0x1d9)][_0x240de5(0x1e5)](_0x5e1c5f),_0x41e847=this[_0x240de5(0x201)][_0x240de5(0x1d3)]();this[_0x240de5(0x1de)]=new _0x23d30b({'connector':this[_0x240de5(0x1d2)],'group':_0x41e847}),this[_0x240de5(0x21f)](this[_0x240de5(0x1f2)],_0x240de5(0x20b),(_0x3453fc,_0x4fc2fc)=>{const _0x5485e8=_0x240de5;this[_0x5485e8(0x1ca)](_0x4fc2fc['id'],_0x5485e8(0x1e3)),this[_0x5485e8(0x1d1)](_0x4fc2fc['id']);}),this[_0x240de5(0x21f)](this[_0x240de5(0x1f2)],_0x240de5(0x200),(_0x402fca,_0x19734c)=>{const _0xe06501=_0x240de5;this[_0xe06501(0x1ca)](_0x19734c['id'],_0xe06501(0x1e9)),this[_0xe06501(0x1f8)](_0x19734c['id'],_0x19734c[_0xe06501(0x1e8)]);}),this[_0x240de5(0x21f)](this[_0x240de5(0x1de)],_0x240de5(0x223),(_0x76877e,_0x5b731f)=>{const _0x21a039=_0x240de5;void 0x0!==_0x5b731f[_0x21a039(0x214)][_0x21a039(0x1e8)]&&this[_0x21a039(0x1f2)][_0x21a039(0x1ee)](_0x5b731f[_0x21a039(0x1ce)],_0x5b731f[_0x21a039(0x214)][_0x21a039(0x1e8)]),void 0x0!==_0x5b731f[_0x21a039(0x214)][_0x21a039(0x1e4)]&&this[_0x21a039(0x1e6)](),this[_0x21a039(0x220)](_0x5b731f[_0x21a039(0x1ce)]);}),this[_0x240de5(0x21f)](this[_0x240de5(0x1de)],_0x240de5(0x20f),(_0x4349f1,_0x504364)=>{const _0x57fe2a=_0x240de5;this[_0x57fe2a(0x201)][_0x57fe2a(0x20d)](_0x504364[_0x57fe2a(0x1ce)]),this[_0x57fe2a(0x1f2)][_0x57fe2a(0x224)](_0x504364[_0x57fe2a(0x1ce)]),this[_0x57fe2a(0x220)](_0x504364[_0x57fe2a(0x1ce)]);}),this[_0x240de5(0x21f)](this[_0x240de5(0x1de)],_0x240de5(0x204),()=>{const _0x1c8288=_0x240de5;this[_0x1c8288(0x1e6)]();}),this[_0x240de5(0x21f)](this[_0x240de5(0x1de)],_0x240de5(0x1fa),(_0x345736,_0xea8302)=>{const _0x39ad6e=_0x240de5;this[_0x39ad6e(0x225)](_0xea8302[_0x39ad6e(0x1fa)],_0xea8302[_0x39ad6e(0x1df)],_0xea8302[_0x39ad6e(0x1ce)]);}),this[_0x240de5(0x21f)](this[_0x240de5(0x1f2)],_0x240de5(0x227),(_0x48dfd6,_0x29925f)=>{const _0x2c14de=_0x240de5;this[_0x2c14de(0x219)](_0x29925f['id']);}),this[_0x240de5(0x21f)](this[_0x240de5(0x1f2)],_0x240de5(0x1d4),(_0x40ed87,_0x2004cc)=>{const _0x1d7caa=_0x240de5,_0x3704ec=_0x2004cc[_0x1d7caa(0x1e4)]?_0x1d7caa(0x1dc):_0x1d7caa(0x1f9);this[_0x1d7caa(0x1ca)](_0x2004cc['id'],_0x3704ec),this[_0x1d7caa(0x1dd)](_0x2004cc['id'],_0x2004cc[_0x1d7caa(0x1e4)]);}),this[_0x240de5(0x21f)](this[_0x240de5(0x1f2)],_0x240de5(0x209),()=>{const _0x249852=_0x240de5;_0x5ec7a8[_0x249852(0x21b)][_0x249852(0x226)](_0x249852(0x1c6));}),this[_0x240de5(0x21f)](this[_0x240de5(0x201)],_0x240de5(0x1cb),()=>{const _0x30b0d4=_0x240de5;this[_0x30b0d4(0x1e6)]();}),_0x5ec7a8[_0x240de5(0x21b)]['on'](_0x240de5(0x21a),()=>{const _0x302ee9=_0x240de5;this[_0x302ee9(0x1d6)]();}),this[_0x240de5(0x21f)](_0x5ec7a8,_0x240de5(0x1c9),(_0x378e63,_0x338d6f)=>{const _0x5306ac=_0x240de5;this[_0x5306ac(0x1f4)](_0x338d6f);}),this[_0x240de5(0x21f)](this[_0x240de5(0x1f2)],_0x240de5(0x221),()=>{const _0x57acc6=_0x240de5;_0x5ec7a8[_0x57acc6(0x1db)]();});}async[_0x1ceb64(0x1f8)](_0x56ded7,_0x446356){const _0x117980=_0x1ceb64;await this[_0x117980(0x1de)][_0x117980(0x1ee)](_0x56ded7,_0x446356);}async[_0x1ceb64(0x1dd)](_0x3750ac,_0x50dfc0){const _0x10905d=_0x1ceb64;await this[_0x10905d(0x1de)][_0x10905d(0x222)](_0x3750ac,_0x50dfc0);}async[_0x1ceb64(0x1d1)](_0x18b829){const _0x46190a=_0x1ceb64;await this[_0x46190a(0x1de)][_0x46190a(0x1fb)](_0x18b829);}async[_0x1ceb64(0x219)](_0x1a3ddc){const _0xf3143e=_0x1ceb64;await this[_0xf3143e(0x201)][_0xf3143e(0x206)](_0x1a3ddc);}async[_0x1ceb64(0x1d6)](){const _0x405d80=_0x1ceb64;this[_0x405d80(0x1f2)][_0x405d80(0x1da)](''),this[_0x405d80(0x1f2)][_0x405d80(0x1fc)](!0x0),await this[_0x405d80(0x1de)][_0x405d80(0x21e)](),this[_0x405d80(0x1f2)][_0x405d80(0x1fc)](!0x1);}[_0x1ceb64(0x1e6)](){const _0x5a1628=_0x1ceb64,_0x80708c=this[_0x5a1628(0x201)][_0x5a1628(0x1f0)]?.['id'],_0x1d2acf=this[_0x5a1628(0x1f7)]()[_0x5a1628(0x1cf)](_0x136de9=>({'title':_0x136de9[_0x5a1628(0x1e8)],'items':_0x136de9[_0x5a1628(0x1f6)][_0x5a1628(0x1cf)](_0x3b6cae=>({'id':_0x3b6cae['id'],'title':_0x3b6cae[_0x5a1628(0x1e8)]||_0x1ff641(this[_0x5a1628(0x1e2)][_0x5a1628(0x1f5)],_0x5a1628(0x1eb)),'createdAt':new Date(_0x3b6cae[_0x5a1628(0x1d0)])[_0x5a1628(0x207)](),'active':_0x3b6cae['id']===_0x80708c,'pinned':_0x3b6cae[_0x5a1628(0x1e4)]}))}));this[_0x5a1628(0x1f2)][_0x5a1628(0x1ea)](_0x1d2acf);}[_0x1ceb64(0x1ca)](_0x5511db,_0x23e567){const _0x588408=_0x1ceb64;this[_0x588408(0x1f2)][_0x588408(0x21d)](_0x5511db,_0x23e567,!0x0);}[_0x1ceb64(0x220)](_0x5b7d6f){const _0x27fbdb=_0x1ceb64;this[_0x27fbdb(0x1f2)][_0x27fbdb(0x21d)](_0x5b7d6f,null,!0x1);}[_0x1ceb64(0x225)](_0x35867c,_0xa65146,_0x4f7feb){const _0x6f2fd7=_0x1ceb64,_0xab1d06=this[_0x6f2fd7(0x1d8)](_0xa65146,_0x4f7feb);this[_0x6f2fd7(0x1f2)][_0x6f2fd7(0x1da)](_0xab1d06),_0x4f7feb&&this[_0x6f2fd7(0x220)](_0x4f7feb),this[_0x6f2fd7(0x1f2)][_0x6f2fd7(0x1fc)](!0x1);}[_0x1ceb64(0x1d8)](_0x35269c,_0x169bf7){const _0x1ff5ce=_0x1ceb64,_0x4eae2f=_0x169bf7?this[_0x1ff5ce(0x1de)][_0x1ff5ce(0x1ec)](_0x169bf7):null,_0x103dce=_0x4eae2f?.[_0x1ff5ce(0x1e8)]||_0x1ff641(this[_0x1ff5ce(0x1e2)][_0x1ff5ce(0x1f5)],_0x1ff5ce(0x1eb));switch(_0x35269c){case _0x1ff5ce(0x1ee):return _0x1ff641(this[_0x1ff5ce(0x1e2)][_0x1ff5ce(0x1f5)],_0x1ff5ce(0x205),_0x103dce);case _0x1ff5ce(0x222):{const _0x58f657=_0x1ff641(this[_0x1ff5ce(0x1e2)][_0x1ff5ce(0x1f5)],_0x4eae2f?.[_0x1ff5ce(0x1e4)]?_0x1ff5ce(0x20a):_0x1ff5ce(0x202));return _0x1ff641(this[_0x1ff5ce(0x1e2)][_0x1ff5ce(0x1f5)],_0x1ff5ce(0x1f3),[_0x58f657,_0x103dce]);}case _0x1ff5ce(0x1fb):return _0x1ff641(this[_0x1ff5ce(0x1e2)][_0x1ff5ce(0x1f5)],_0x1ff5ce(0x1fe),_0x103dce);case _0x1ff5ce(0x21e):case _0x1ff5ce(0x1c8):return _0x1ff641(this[_0x1ff5ce(0x1e2)][_0x1ff5ce(0x1f5)],_0x1ff5ce(0x1cc));default:return _0x1ff641(this[_0x1ff5ce(0x1e2)][_0x1ff5ce(0x1f5)],_0x1ff5ce(0x211));}}[_0x1ceb64(0x1f7)](){const _0x5ed77f=_0x1ceb64,_0x5bf362=new Date(),_0x15a075=new Date(_0x5bf362[_0x5ed77f(0x1e0)](),_0x5bf362[_0x5ed77f(0x1e1)](),_0x5bf362[_0x5ed77f(0x1fd)]()),_0x1f0695=new Date(_0x15a075);_0x1f0695[_0x5ed77f(0x1cd)](_0x1f0695[_0x5ed77f(0x1fd)]()-0x1);const _0x11ec98=new Date(_0x15a075);_0x11ec98[_0x5ed77f(0x1cd)](_0x11ec98[_0x5ed77f(0x1fd)]()-0xe);const _0x31419a=this[_0x5ed77f(0x1de)][_0x5ed77f(0x215)]({'pinned':!0x0}),_0x391c22=this[_0x5ed77f(0x1de)][_0x5ed77f(0x215)]({'from':_0x15a075,'to':_0x15a075}),_0x404f94=this[_0x5ed77f(0x1de)][_0x5ed77f(0x215)]({'from':_0x1f0695,'to':_0x1f0695}),_0x48a89b=this[_0x5ed77f(0x1de)][_0x5ed77f(0x215)]({'from':_0x11ec98,'to':_0x1f0695}),_0x33372e=this[_0x5ed77f(0x1de)][_0x5ed77f(0x215)]({'to':_0x11ec98}),_0x4cda6c=[];return _0x31419a[_0x5ed77f(0x213)]>0x0&&_0x4cda6c[_0x5ed77f(0x1c7)]({'title':_0x1ff641(this[_0x5ed77f(0x1e2)][_0x5ed77f(0x1f5)],_0x5ed77f(0x20e)),'items':_0x31419a}),_0x391c22[_0x5ed77f(0x213)]>0x0&&_0x4cda6c[_0x5ed77f(0x1c7)]({'title':_0x1ff641(this[_0x5ed77f(0x1e2)][_0x5ed77f(0x1f5)],_0x5ed77f(0x1f1)),'items':_0x391c22}),_0x404f94[_0x5ed77f(0x213)]>0x0&&_0x4cda6c[_0x5ed77f(0x1c7)]({'title':_0x1ff641(this[_0x5ed77f(0x1e2)][_0x5ed77f(0x1f5)],_0x5ed77f(0x1d7)),'items':_0x404f94}),_0x48a89b[_0x5ed77f(0x213)]>0x0&&_0x4cda6c[_0x5ed77f(0x1c7)]({'title':_0x1ff641(this[_0x5ed77f(0x1e2)][_0x5ed77f(0x1f5)],_0x5ed77f(0x1c4)),'items':_0x48a89b}),_0x33372e[_0x5ed77f(0x213)]>0x0&&_0x4cda6c[_0x5ed77f(0x1c7)]({'title':_0x1ff641(this[_0x5ed77f(0x1e2)][_0x5ed77f(0x1f5)],_0x5ed77f(0x1ed)),'items':_0x33372e}),_0x4cda6c;}[_0x1ceb64(0x1f4)](_0x555067){const _0x28b286=_0x1ceb64;this[_0x28b286(0x1f2)][_0x28b286(0x203)](_0x555067);}}
23
+ const _0x55af39=_0x20b2;(function(_0x1e2e4a,_0x5a0a45){const _0x263f25=_0x20b2,_0x5e14b4=_0x1e2e4a();while(!![]){try{const _0x18bdd3=parseInt(_0x263f25(0x1af))/0x1+parseInt(_0x263f25(0x176))/0x2+-parseInt(_0x263f25(0x195))/0x3*(parseInt(_0x263f25(0x18f))/0x4)+-parseInt(_0x263f25(0x17c))/0x5*(parseInt(_0x263f25(0x1b7))/0x6)+parseInt(_0x263f25(0x1b8))/0x7+-parseInt(_0x263f25(0x1b2))/0x8+-parseInt(_0x263f25(0x186))/0x9;if(_0x18bdd3===_0x5a0a45)break;else _0x5e14b4['push'](_0x5e14b4['shift']());}catch(_0x8f286e){_0x5e14b4['push'](_0x5e14b4['shift']());}}}(_0x3507,0x56383));function _0x3507(){const _0xf1d08d=['_showConversationHistory','locale','AIChatHistoryController','1735COeWWn','updateItems','setIsMaximized','loadConversation','isPremiumPlugin','setDate','handleRemovedConversation','openChat','_setItemLoading','remove','685890vvSQRg','context','AI_CHAT_HISTORY_ERROR_GENERIC','createdAt','showError','_handleTogglePin','_aiConnector','selectConversation','itemRemoved','4eAflyk','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','init','AI_CHAT_HISTORY_UNPIN_ACTION','getDate','getGroupId','1397793PNDOqj','AI_CHAT_UNTITLED_CONVERSATION','AI_CHAT_HISTORY_CATEGORY_PINNED','getItem','getMonth','_handleEditTitle','updateItemTitle','updates','getFullYear','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','error','plugins','_aiChatHistoryUi','history','removeHistoryItem','_setIsMaximized','_clearItemLoading','setConversationPinned','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','activeConversation','change:activeConversation','map','activateTab:history','rename','push','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','440833cEmzwE','title','_handleRemove','1937224pQKjiw','resizedTabs','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','_handleHistoryErrorUI','_handleSelectConversation','11226OAKKnJ','4903626uwOnoa','updateItemPinned','operation','chat','length','itemsLoaded','requires','pluginName','_generateErrorMessage','editConversationTitle','pinned','AI_CHAT_HISTORY_CATEGORY_TODAY','activateTab','AI_CHAT_HISTORY_PIN_ACTION','itemId','updateItemLoadingState','view','getItems','_aiChatController','listenTo','get','removeConversation','setLoadingSkeleton','AI_CHAT_HISTORY_CATEGORY_LATER','removeItem','toLocaleDateString','itemUpdated','resize','loadItems','isOfficialPlugin','_updateHistoryItemsUI','pin','resizeTabs','_getCategorizedItems','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','1290670tZUEzP','items','unpin'];_0x3507=function(){return _0xf1d08d;};return _0x3507();}import{ContextPlugin as _0x4b19aa}from'ckeditor5/src/core.js';import{AIConnector as _0x520eef}from'../aicore/aiconnector.js';function _0x20b2(_0x47f18f,_0x40dfdf){const _0x3507c4=_0x3507();return _0x20b2=function(_0x20b294,_0x4c89e5){_0x20b294=_0x20b294-0x172;let _0x505ee9=_0x3507c4[_0x20b294];return _0x505ee9;},_0x20b2(_0x47f18f,_0x40dfdf);}import{AIChatController as _0x54d777}from'../aichat/aichatcontroller.js';import{AITabs as _0x395059}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x4bbe15}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x2c82d1}from'./model/aichathistoryconversations.js';import{getTranslation as _0x3c438e}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x4b19aa{[_0x55af39(0x18c)];[_0x55af39(0x1a1)];[_0x55af39(0x1ca)];static get[_0x55af39(0x1be)](){return[_0x520eef,_0x54d777,_0x4bbe15,_0x395059];}static get[_0x55af39(0x1bf)](){const _0x5cf960=_0x55af39;return _0x5cf960(0x17b);}static get[_0x55af39(0x1d5)](){return!0x0;}static get[_0x55af39(0x180)](){return!0x0;}[_0x55af39(0x191)](){const _0x2cd2ce=_0x55af39;this[_0x2cd2ce(0x18c)]=this[_0x2cd2ce(0x187)][_0x2cd2ce(0x1a0)][_0x2cd2ce(0x1cc)](_0x520eef),this[_0x2cd2ce(0x1a1)]=this[_0x2cd2ce(0x187)][_0x2cd2ce(0x1a0)][_0x2cd2ce(0x1cc)](_0x4bbe15),this[_0x2cd2ce(0x1ca)]=this[_0x2cd2ce(0x187)][_0x2cd2ce(0x1a0)][_0x2cd2ce(0x1cc)](_0x54d777);const _0x2c081f=this[_0x2cd2ce(0x187)][_0x2cd2ce(0x1a0)][_0x2cd2ce(0x1cc)](_0x395059),_0xdb6f27=this[_0x2cd2ce(0x1ca)][_0x2cd2ce(0x194)]();this[_0x2cd2ce(0x1a2)]=new _0x2c82d1({'connector':this[_0x2cd2ce(0x18c)],'group':_0xdb6f27}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a1)],_0x2cd2ce(0x1cd),(_0x5a49c0,_0xc4593b)=>{const _0x508dd3=_0x2cd2ce;this[_0x508dd3(0x184)](_0xc4593b['id'],_0x508dd3(0x185)),this[_0x508dd3(0x1b1)](_0xc4593b['id']);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a1)],_0x2cd2ce(0x1c1),(_0x1f2d7d,_0x181f57)=>{const _0x117d87=_0x2cd2ce;this[_0x117d87(0x184)](_0x181f57['id'],_0x117d87(0x1ac)),this[_0x117d87(0x19a)](_0x181f57['id'],_0x181f57[_0x117d87(0x1b0)]);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a2)],_0x2cd2ce(0x1d2),(_0x3626f3,_0x2e5f92)=>{const _0x1babc3=_0x2cd2ce;void 0x0!==_0x2e5f92[_0x1babc3(0x19c)][_0x1babc3(0x1b0)]&&this[_0x1babc3(0x1a1)][_0x1babc3(0x19b)](_0x2e5f92[_0x1babc3(0x1c6)],_0x2e5f92[_0x1babc3(0x19c)][_0x1babc3(0x1b0)]),void 0x0!==_0x2e5f92[_0x1babc3(0x19c)][_0x1babc3(0x1c2)]&&this[_0x1babc3(0x1d6)](),this[_0x1babc3(0x1a5)](_0x2e5f92[_0x1babc3(0x1c6)]);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a2)],_0x2cd2ce(0x18e),(_0x2b122f,_0x40f6e5)=>{const _0x15701d=_0x2cd2ce;this[_0x15701d(0x1ca)][_0x15701d(0x182)](_0x40f6e5[_0x15701d(0x1c6)]),this[_0x15701d(0x1a1)][_0x15701d(0x1a3)](_0x40f6e5[_0x15701d(0x1c6)]),this[_0x15701d(0x1a5)](_0x40f6e5[_0x15701d(0x1c6)]);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a2)],_0x2cd2ce(0x1bd),()=>{const _0x583e06=_0x2cd2ce;this[_0x583e06(0x1d6)]();}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a2)],_0x2cd2ce(0x19f),(_0x46b751,_0x69c75b)=>{const _0x37765c=_0x2cd2ce;this[_0x37765c(0x1b5)](_0x69c75b[_0x37765c(0x19f)],_0x69c75b[_0x37765c(0x1ba)],_0x69c75b[_0x37765c(0x1c6)]);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a1)],_0x2cd2ce(0x18d),(_0x14fc85,_0x1991e0)=>{const _0x433905=_0x2cd2ce;this[_0x433905(0x1b6)](_0x1991e0['id']);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a1)],_0x2cd2ce(0x1a6),(_0xb1bd02,_0x1fc81d)=>{const _0x36d11a=_0x2cd2ce,_0x512780=_0x1fc81d[_0x36d11a(0x1c2)]?_0x36d11a(0x172):_0x36d11a(0x178);this[_0x36d11a(0x184)](_0x1fc81d['id'],_0x512780),this[_0x36d11a(0x18b)](_0x1fc81d['id'],_0x1fc81d[_0x36d11a(0x1c2)]);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a1)],_0x2cd2ce(0x183),()=>{const _0x6248bd=_0x2cd2ce;_0x2c081f[_0x6248bd(0x1c8)][_0x6248bd(0x1c4)](_0x6248bd(0x1bb));}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1ca)],_0x2cd2ce(0x1a9),()=>{const _0x3b0f5f=_0x2cd2ce;this[_0x3b0f5f(0x1d6)]();}),_0x2c081f[_0x2cd2ce(0x1c8)]['on'](_0x2cd2ce(0x1ab),()=>{const _0x4bb598=_0x2cd2ce;this[_0x4bb598(0x179)]();}),this[_0x2cd2ce(0x1cb)](_0x2c081f,_0x2cd2ce(0x1b3),(_0x3fa33b,_0x4a3270)=>{const _0x4b848e=_0x2cd2ce;this[_0x4b848e(0x1a4)](_0x4a3270);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a1)],_0x2cd2ce(0x173),()=>{const _0x58cb25=_0x2cd2ce;_0x2c081f[_0x58cb25(0x1d3)]();});}async[_0x55af39(0x19a)](_0x3f6890,_0x577b69){const _0x284477=_0x55af39;await this[_0x284477(0x1a2)][_0x284477(0x19b)](_0x3f6890,_0x577b69);}async[_0x55af39(0x18b)](_0x1b6b6b,_0x4bbda3){const _0x50d415=_0x55af39;await this[_0x50d415(0x1a2)][_0x50d415(0x1b9)](_0x1b6b6b,_0x4bbda3);}async[_0x55af39(0x1b1)](_0x468467){const _0x585135=_0x55af39;await this[_0x585135(0x1a2)][_0x585135(0x1d0)](_0x468467);}async[_0x55af39(0x1b6)](_0x57a566){const _0x95bc12=_0x55af39;await this[_0x95bc12(0x1ca)][_0x95bc12(0x17f)](_0x57a566);}async[_0x55af39(0x179)](){const _0x578053=_0x55af39;this[_0x578053(0x1a1)][_0x578053(0x18a)](''),this[_0x578053(0x1a1)][_0x578053(0x1ce)](!0x0),await this[_0x578053(0x1a2)][_0x578053(0x191)](),this[_0x578053(0x1a1)][_0x578053(0x1ce)](!0x1);}[_0x55af39(0x1d6)](){const _0xcd54a=_0x55af39,_0x5864f8=this[_0xcd54a(0x1ca)][_0xcd54a(0x1a8)]?.['id'],_0x41d575=this[_0xcd54a(0x174)]()[_0xcd54a(0x1aa)](_0x277ddf=>({'title':_0x277ddf[_0xcd54a(0x1b0)],'items':_0x277ddf[_0xcd54a(0x177)][_0xcd54a(0x1aa)](_0x100961=>({'id':_0x100961['id'],'title':_0x100961[_0xcd54a(0x1b0)]||_0x3c438e(this[_0xcd54a(0x187)][_0xcd54a(0x17a)],_0xcd54a(0x196)),'createdAt':new Date(_0x100961[_0xcd54a(0x189)])[_0xcd54a(0x1d1)](),'active':_0x100961['id']===_0x5864f8,'pinned':_0x100961[_0xcd54a(0x1c2)]}))}));this[_0xcd54a(0x1a1)][_0xcd54a(0x17d)](_0x41d575);}[_0x55af39(0x184)](_0x210395,_0x355e27){const _0x1fd298=_0x55af39;this[_0x1fd298(0x1a1)][_0x1fd298(0x1c7)](_0x210395,_0x355e27,!0x0);}[_0x55af39(0x1a5)](_0x5ce857){const _0x4f04df=_0x55af39;this[_0x4f04df(0x1a1)][_0x4f04df(0x1c7)](_0x5ce857,null,!0x1);}[_0x55af39(0x1b5)](_0x235d19,_0x5b7f5b,_0x181323){const _0x461c74=_0x55af39,_0x1de15d=this[_0x461c74(0x1c0)](_0x5b7f5b,_0x181323);this[_0x461c74(0x1a1)][_0x461c74(0x18a)](_0x1de15d),_0x181323&&this[_0x461c74(0x1a5)](_0x181323),this[_0x461c74(0x1a1)][_0x461c74(0x1ce)](!0x1);}[_0x55af39(0x1c0)](_0xa472f1,_0x2d89bb){const _0xdc61d9=_0x55af39,_0x454797=_0x2d89bb?this[_0xdc61d9(0x1a2)][_0xdc61d9(0x198)](_0x2d89bb):null,_0x169200=_0x454797?.[_0xdc61d9(0x1b0)]||_0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0xdc61d9(0x196));switch(_0xa472f1){case _0xdc61d9(0x19b):return _0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0xdc61d9(0x1ae),_0x169200);case _0xdc61d9(0x1b9):{const _0x1a03ad=_0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0x454797?.[_0xdc61d9(0x1c2)]?_0xdc61d9(0x192):_0xdc61d9(0x1c5));return _0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0xdc61d9(0x19e),[_0x1a03ad,_0x169200]);}case _0xdc61d9(0x1d0):return _0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0xdc61d9(0x1b4),_0x169200);case _0xdc61d9(0x191):case _0xdc61d9(0x1d4):return _0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0xdc61d9(0x175));default:return _0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0xdc61d9(0x188));}}[_0x55af39(0x174)](){const _0x12bfcb=_0x55af39,_0x5e7dc4=new Date(),_0x320759=new Date(_0x5e7dc4[_0x12bfcb(0x19d)](),_0x5e7dc4[_0x12bfcb(0x199)](),_0x5e7dc4[_0x12bfcb(0x193)]()),_0x26fa23=new Date(_0x320759);_0x26fa23[_0x12bfcb(0x181)](_0x26fa23[_0x12bfcb(0x193)]()-0x1);const _0x330458=new Date(_0x320759);_0x330458[_0x12bfcb(0x181)](_0x330458[_0x12bfcb(0x193)]()-0xe);const _0x15565d=this[_0x12bfcb(0x1a2)][_0x12bfcb(0x1c9)]({'pinned':!0x0}),_0x68ce4d=this[_0x12bfcb(0x1a2)][_0x12bfcb(0x1c9)]({'from':_0x320759,'to':_0x320759}),_0xccce0a=this[_0x12bfcb(0x1a2)][_0x12bfcb(0x1c9)]({'from':_0x26fa23,'to':_0x26fa23}),_0x41fbb0=this[_0x12bfcb(0x1a2)][_0x12bfcb(0x1c9)]({'from':_0x330458,'to':_0x26fa23}),_0x2dcfbd=this[_0x12bfcb(0x1a2)][_0x12bfcb(0x1c9)]({'to':_0x330458}),_0x11d326=[];return _0x15565d[_0x12bfcb(0x1bc)]>0x0&&_0x11d326[_0x12bfcb(0x1ad)]({'title':_0x3c438e(this[_0x12bfcb(0x187)][_0x12bfcb(0x17a)],_0x12bfcb(0x197)),'items':_0x15565d}),_0x68ce4d[_0x12bfcb(0x1bc)]>0x0&&_0x11d326[_0x12bfcb(0x1ad)]({'title':_0x3c438e(this[_0x12bfcb(0x187)][_0x12bfcb(0x17a)],_0x12bfcb(0x1c3)),'items':_0x68ce4d}),_0xccce0a[_0x12bfcb(0x1bc)]>0x0&&_0x11d326[_0x12bfcb(0x1ad)]({'title':_0x3c438e(this[_0x12bfcb(0x187)][_0x12bfcb(0x17a)],_0x12bfcb(0x190)),'items':_0xccce0a}),_0x41fbb0[_0x12bfcb(0x1bc)]>0x0&&_0x11d326[_0x12bfcb(0x1ad)]({'title':_0x3c438e(this[_0x12bfcb(0x187)][_0x12bfcb(0x17a)],_0x12bfcb(0x1a7)),'items':_0x41fbb0}),_0x2dcfbd[_0x12bfcb(0x1bc)]>0x0&&_0x11d326[_0x12bfcb(0x1ad)]({'title':_0x3c438e(this[_0x12bfcb(0x187)][_0x12bfcb(0x17a)],_0x12bfcb(0x1cf)),'items':_0x2dcfbd}),_0x11d326;}[_0x55af39(0x1a4)](_0x252442){const _0x2e7c6f=_0x55af39;this[_0x2e7c6f(0x1a1)][_0x2e7c6f(0x17e)](_0x252442);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47d2ce=_0x386e;function _0x386e(_0x1175fa,_0x15c920){const _0x39999e=_0x3999();return _0x386e=function(_0x386eff,_0x4ee0ab){_0x386eff=_0x386eff-0x8a;let _0x5c2f6b=_0x39999e[_0x386eff];return _0x5c2f6b;},_0x386e(_0x1175fa,_0x15c920);}(function(_0x4e7ce3,_0x415c29){const _0xa096f4=_0x386e,_0x60ac9a=_0x4e7ce3();while(!![]){try{const _0x16de16=-parseInt(_0xa096f4(0xb3))/0x1+parseInt(_0xa096f4(0xb0))/0x2+-parseInt(_0xa096f4(0x8b))/0x3*(parseInt(_0xa096f4(0x9f))/0x4)+-parseInt(_0xa096f4(0xad))/0x5*(-parseInt(_0xa096f4(0x8e))/0x6)+parseInt(_0xa096f4(0xa4))/0x7*(-parseInt(_0xa096f4(0xb6))/0x8)+-parseInt(_0xa096f4(0x97))/0x9*(-parseInt(_0xa096f4(0xb2))/0xa)+parseInt(_0xa096f4(0xa0))/0xb*(parseInt(_0xa096f4(0xa5))/0xc);if(_0x16de16===_0x415c29)break;else _0x60ac9a['push'](_0x60ac9a['shift']());}catch(_0x5d1ee2){_0x60ac9a['push'](_0x60ac9a['shift']());}}}(_0x3999,0xdb6b7));import{ContextPlugin as _0x224153}from'ckeditor5/src/core.js';import{AITabs as _0x340210}from'../aitabs/aitabs.js';import{IconAIHistory as _0x2078c6}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x28670d}from'./ui/aichathistoryview.js';import{getTranslation as _0x2220e5}from'../aicore/utils/common-translations.js';function _0x3999(){const _0x2ed3a5=['hideError','openChat','addTab','editConversationTitle','pluginName','AIChatHistoryUI','6130924psBHvz','143PrTyWm','AITabs','AI_CHAT_HISTORY_HEADING','history','1790649AEBSSA','2472324inblYg','removeConversation','showConversationHistory','errorMessage','isPremiumPlugin','showResizeButton','showError','isOfficialPlugin','53780mBXVqU','plugins','setConversationPinned','2568776xajIDk','resizeTabs','941560rGHDrl','1281864ZDYWpO','locale','setIsMaximized','56swUBOq','get','isMaximized','updateHistoryItemsWithCategories','updateItemTitle','3IGNQXl','_historyView','updateItems','282BDpJOX','isLoading','delegate','context','view','selectConversation','updateItemLoadingState','removeHistoryItem','requires','99wVsPHz','setLoadingSkeleton'];_0x3999=function(){return _0x2ed3a5;};return _0x3999();}import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x47d2ce(0xa7),_0x47d2ce(0xa6),_0x47d2ce(0x9c),_0x47d2ce(0xaf),_0x47d2ce(0x93),_0x47d2ce(0x9a),_0x47d2ce(0xb1)];export class AIChatHistoryUI extends _0x224153{static get[_0x47d2ce(0x96)](){return[_0x340210];}[_0x47d2ce(0x8c)];static get[_0x47d2ce(0x9d)](){const _0x570a47=_0x47d2ce;return _0x570a47(0x9e);}static get[_0x47d2ce(0xac)](){return!0x0;}static get[_0x47d2ce(0xa9)](){return!0x0;}constructor(_0x41436f){const _0x4749b6=_0x47d2ce;super(_0x41436f);const _0x362041=this[_0x4749b6(0x91)][_0x4749b6(0xae)][_0x4749b6(0xb7)](_0x4749b6(0xa1));this[_0x4749b6(0x8c)]=new _0x28670d(this[_0x4749b6(0x91)][_0x4749b6(0xb4)],_0x362041[_0x4749b6(0xaa)]),this[_0x4749b6(0x8c)][_0x4749b6(0x90)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x362041[_0x4749b6(0x92)][_0x4749b6(0x9b)]({'id':_0x4749b6(0xa3),'buttonLabel':_0x2220e5(this[_0x4749b6(0x91)][_0x4749b6(0xb4)],_0x4749b6(0xa2)),'buttonIcon':_0x2078c6,'order':0x0,'content':this[_0x4749b6(0x8c)]});}[_0x47d2ce(0x95)](_0x369ad6){const _0xb8fdd0=_0x47d2ce;this[_0xb8fdd0(0x8c)][_0xb8fdd0(0x95)](_0x369ad6);}[_0x47d2ce(0x8d)](_0x21814d){const _0x8477c2=_0x47d2ce;this[_0x8477c2(0x8c)][_0x8477c2(0xb9)](_0x21814d);}[_0x47d2ce(0x8a)](_0x1189a3,_0x1fdcd6){const _0x3aac61=_0x47d2ce;this[_0x3aac61(0x8c)][_0x3aac61(0x8a)](_0x1189a3,_0x1fdcd6);}[_0x47d2ce(0x94)](_0xedb3da,_0x42b4d2,_0x1bce5c){const _0x87d64f=_0x47d2ce;this[_0x87d64f(0x8c)][_0x87d64f(0x94)](_0xedb3da,_0x42b4d2,_0x1bce5c);}[_0x47d2ce(0x98)](_0x5605ca){const _0x123278=_0x47d2ce;this[_0x123278(0x8c)][_0x123278(0x8f)]=_0x5605ca;}[_0x47d2ce(0xab)](_0x1c4ce4){const _0x17472e=_0x47d2ce;this[_0x17472e(0x8c)][_0x17472e(0xa8)]=_0x1c4ce4;}[_0x47d2ce(0x99)](){const _0x437a25=_0x47d2ce;this[_0x437a25(0x8c)][_0x437a25(0xa8)]='';}[_0x47d2ce(0xb5)](_0x24bb37){const _0xf1c95f=_0x47d2ce;this[_0xf1c95f(0x8c)][_0xf1c95f(0xb8)]=_0x24bb37;}}
23
+ const _0x5ad23e=_0x3fc5;function _0x3fc5(_0x6f3f6,_0x3337b3){const _0x46486a=_0x4648();return _0x3fc5=function(_0x3fc556,_0x4b52f4){_0x3fc556=_0x3fc556-0x18f;let _0x5b8609=_0x46486a[_0x3fc556];return _0x5b8609;},_0x3fc5(_0x6f3f6,_0x3337b3);}function _0x4648(){const _0x3689c9=['isMaximized','isPremiumPlugin','isLoading','updateHistoryItemsWithCategories','updateItemLoadingState','1351920DljCWd','setIsMaximized','1703598yOFwYx','get','AIChatHistoryUI','updateItemTitle','removeConversation','locale','AITabs','isOfficialPlugin','AI_CHAT_HISTORY_HEADING','requires','220EmHBvc','removeHistoryItem','hideError','1759obrmVX','showResizeButton','view','3304drIrRK','addTab','updateItems','context','resizeTabs','7wQpoQc','delegate','pluginName','setLoadingSkeleton','openChat','7557qYKNnb','1170433MshCNZ','plugins','showConversationHistory','_historyView','757350aguKPP','4473fbVfBM','setConversationPinned','errorMessage','214LQXgvZ','editConversationTitle','selectConversation','history','showError'];_0x4648=function(){return _0x3689c9;};return _0x4648();}(function(_0x30dcfd,_0x3a5f8c){const _0xda6490=_0x3fc5,_0x12dbcd=_0x30dcfd();while(!![]){try{const _0x2947c9=parseInt(_0xda6490(0x192))/0x1*(parseInt(_0xda6490(0x1a8))/0x2)+-parseInt(_0xda6490(0x19f))/0x3*(-parseInt(_0xda6490(0x18f))/0x4)+-parseInt(_0xda6490(0x1b2))/0x5+parseInt(_0xda6490(0x1b4))/0x6*(-parseInt(_0xda6490(0x19a))/0x7)+parseInt(_0xda6490(0x195))/0x8*(parseInt(_0xda6490(0x1a5))/0x9)+parseInt(_0xda6490(0x1a4))/0xa+parseInt(_0xda6490(0x1a0))/0xb;if(_0x2947c9===_0x3a5f8c)break;else _0x12dbcd['push'](_0x12dbcd['shift']());}catch(_0x41c5d9){_0x12dbcd['push'](_0x12dbcd['shift']());}}}(_0x4648,0x27060));import{ContextPlugin as _0x1e9b30}from'ckeditor5/src/core.js';import{AITabs as _0x3891e2}from'../aitabs/aitabs.js';import{IconAIHistory as _0x2ee7c4}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x3fcccd}from'./ui/aichathistoryview.js';import{getTranslation as _0x496a06}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x5ad23e(0x1a2),_0x5ad23e(0x1b8),_0x5ad23e(0x1a9),_0x5ad23e(0x1a6),_0x5ad23e(0x1aa),_0x5ad23e(0x19e),_0x5ad23e(0x199)];export class AIChatHistoryUI extends _0x1e9b30{static get[_0x5ad23e(0x1bd)](){return[_0x3891e2];}[_0x5ad23e(0x1a3)];static get[_0x5ad23e(0x19c)](){const _0x2586b1=_0x5ad23e;return _0x2586b1(0x1b6);}static get[_0x5ad23e(0x1bb)](){return!0x0;}static get[_0x5ad23e(0x1ae)](){return!0x0;}constructor(_0x225aff){const _0x107d8b=_0x5ad23e;super(_0x225aff);const _0x1103fe=this[_0x107d8b(0x198)][_0x107d8b(0x1a1)][_0x107d8b(0x1b5)](_0x107d8b(0x1ba));this[_0x107d8b(0x1a3)]=new _0x3fcccd(this[_0x107d8b(0x198)][_0x107d8b(0x1b9)],_0x1103fe[_0x107d8b(0x193)]),this[_0x107d8b(0x1a3)][_0x107d8b(0x19b)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x1103fe[_0x107d8b(0x194)][_0x107d8b(0x196)]({'id':_0x107d8b(0x1ab),'buttonLabel':_0x496a06(this[_0x107d8b(0x198)][_0x107d8b(0x1b9)],_0x107d8b(0x1bc)),'buttonIcon':_0x2ee7c4,'order':0x0,'content':this[_0x107d8b(0x1a3)]});}[_0x5ad23e(0x190)](_0x4d3c2f){const _0x3b360c=_0x5ad23e;this[_0x3b360c(0x1a3)][_0x3b360c(0x190)](_0x4d3c2f);}[_0x5ad23e(0x197)](_0x56a181){const _0x326ce9=_0x5ad23e;this[_0x326ce9(0x1a3)][_0x326ce9(0x1b0)](_0x56a181);}[_0x5ad23e(0x1b7)](_0x96ac0e,_0x35cdc3){const _0x5e4d1a=_0x5ad23e;this[_0x5e4d1a(0x1a3)][_0x5e4d1a(0x1b7)](_0x96ac0e,_0x35cdc3);}[_0x5ad23e(0x1b1)](_0x220d08,_0x3bbc06,_0x51b251){const _0x2555e1=_0x5ad23e;this[_0x2555e1(0x1a3)][_0x2555e1(0x1b1)](_0x220d08,_0x3bbc06,_0x51b251);}[_0x5ad23e(0x19d)](_0xc1eae7){const _0x1d13ba=_0x5ad23e;this[_0x1d13ba(0x1a3)][_0x1d13ba(0x1af)]=_0xc1eae7;}[_0x5ad23e(0x1ac)](_0x5ac706){const _0xb19c2d=_0x5ad23e;this[_0xb19c2d(0x1a3)][_0xb19c2d(0x1a7)]=_0x5ac706;}[_0x5ad23e(0x191)](){const _0x36f10d=_0x5ad23e;this[_0x36f10d(0x1a3)][_0x36f10d(0x1a7)]='';}[_0x5ad23e(0x1b3)](_0x2af26c){const _0x5a8692=_0x5ad23e;this[_0x5a8692(0x1a3)][_0x5a8692(0x1ad)]=_0x2af26c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x154cb7=_0x3ed1;(function(_0x584b98,_0x105537){const _0x60d44e=_0x3ed1,_0x4f0113=_0x584b98();while(!![]){try{const _0x51ffeb=parseInt(_0x60d44e(0x184))/0x1+parseInt(_0x60d44e(0x172))/0x2+-parseInt(_0x60d44e(0x17e))/0x3+-parseInt(_0x60d44e(0x16c))/0x4+-parseInt(_0x60d44e(0x16b))/0x5+-parseInt(_0x60d44e(0x18c))/0x6+-parseInt(_0x60d44e(0x160))/0x7*(-parseInt(_0x60d44e(0x17c))/0x8);if(_0x51ffeb===_0x105537)break;else _0x4f0113['push'](_0x4f0113['shift']());}catch(_0x436df4){_0x4f0113['push'](_0x4f0113['shift']());}}}(_0xda46,0x4245c));import{EmitterMixin as _0x46ba6f}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x329cfd}from'./aichathistoryitem.js';function _0xda46(){const _0x252bd3=['8YdnSfP','getDate','328245idFcVL','splice','push','find','createdAt','init','246570dRcyDB','addItem','loadItems','updateTitle','fire','from','getTime','error','3234594hKIqyL','7608013gArUll','updateItemPinned','getMonth','fetchConversations','getItems','deleteConversation','itemRemoved','group','getItem','itemUpdated','updateItemTitle','926445lSSKNz','1461876oRnbdl','getConversations','items','getResult','pinned','removeItem','274590cndaMQ','itemsLoaded','updateConversation','map','findIndex','updatePinned','filter','execute','getFullYear','connector'];_0xda46=function(){return _0x252bd3;};return _0xda46();}function _0x3ed1(_0x3c8fba,_0x32275e){const _0xda4641=_0xda46();return _0x3ed1=function(_0x3ed145,_0x2e93ba){_0x3ed145=_0x3ed145-0x160;let _0x105100=_0xda4641[_0x3ed145];return _0x105100;},_0x3ed1(_0x3c8fba,_0x32275e);}export class AIChatHistoryConversations extends _0x46ba6f(){[_0x154cb7(0x16e)]=[];[_0x154cb7(0x17b)];[_0x154cb7(0x167)];constructor({connector:_0x59a57f,group:_0x2d51b6}){const _0x5b22d9=_0x154cb7;super(),this[_0x5b22d9(0x17b)]=_0x59a57f,this[_0x5b22d9(0x167)]=_0x2d51b6;}async[_0x154cb7(0x183)](){const _0xde0eff=_0x154cb7;try{const _0x55f561=this[_0xde0eff(0x17b)][_0xde0eff(0x163)](this[_0xde0eff(0x167)]),_0x4b1421=await _0x55f561[_0xde0eff(0x16d)]();this[_0xde0eff(0x186)](_0x4b1421);}catch(_0x1c0844){this[_0xde0eff(0x188)](_0xde0eff(0x18b),{'error':_0x1c0844,'operation':_0xde0eff(0x183)});}}[_0x154cb7(0x185)](_0x5dbb8e){const _0x292ccc=_0x154cb7;this[_0x292ccc(0x16e)][_0x292ccc(0x180)](_0x5dbb8e);}async[_0x154cb7(0x171)](_0x4720b8){const _0x44f98d=_0x154cb7,_0x2b18b7=this[_0x44f98d(0x16e)][_0x44f98d(0x176)](_0x2e1b45=>_0x2e1b45['id']===_0x4720b8);if(-0x1===_0x2b18b7)return!0x1;try{return await this[_0x44f98d(0x17b)][_0x44f98d(0x165)](_0x4720b8)[_0x44f98d(0x179)](),this[_0x44f98d(0x16e)][_0x44f98d(0x17f)](_0x2b18b7,0x1),this[_0x44f98d(0x188)](_0x44f98d(0x166),{'itemId':_0x4720b8}),!0x0;}catch(_0x110560){return this[_0x44f98d(0x188)](_0x44f98d(0x18b),{'error':_0x110560,'operation':_0x44f98d(0x171),'itemId':_0x4720b8}),!0x1;}}[_0x154cb7(0x168)](_0x421b03){const _0x3adf78=_0x154cb7;return this[_0x3adf78(0x16e)][_0x3adf78(0x181)](_0x57a14f=>_0x57a14f['id']===_0x421b03);}async[_0x154cb7(0x16a)](_0x4364ae,_0x21c286){const _0x406707=_0x154cb7,_0xe307c8=this[_0x406707(0x168)](_0x4364ae);if(!_0xe307c8)return!0x1;try{return await this[_0x406707(0x17b)][_0x406707(0x174)](_0x4364ae,{'title':_0x21c286})[_0x406707(0x16f)](),_0xe307c8[_0x406707(0x187)](_0x21c286),this[_0x406707(0x188)](_0x406707(0x169),{'itemId':_0x4364ae,'updates':{'title':_0x21c286}}),!0x0;}catch(_0x1bfe6a){return this[_0x406707(0x188)](_0x406707(0x18b),{'error':_0x1bfe6a,'operation':_0x406707(0x16a),'itemId':_0x4364ae}),!0x1;}}async[_0x154cb7(0x161)](_0x62bf52,_0x378cfb){const _0x4bf0fc=_0x154cb7,_0x797c8e=this[_0x4bf0fc(0x168)](_0x62bf52);if(!_0x797c8e)return!0x1;try{return await this[_0x4bf0fc(0x17b)][_0x4bf0fc(0x174)](_0x62bf52,{'pinned':_0x378cfb})[_0x4bf0fc(0x16f)](),_0x797c8e[_0x4bf0fc(0x177)](_0x378cfb),this[_0x4bf0fc(0x188)](_0x4bf0fc(0x169),{'itemId':_0x62bf52,'updates':{'pinned':_0x378cfb}}),!0x0;}catch(_0x367d56){return this[_0x4bf0fc(0x188)](_0x4bf0fc(0x18b),{'error':_0x367d56,'operation':_0x4bf0fc(0x161),'itemId':_0x62bf52}),!0x1;}}[_0x154cb7(0x186)](_0x4da46d){const _0x43ffe4=_0x154cb7;try{this[_0x43ffe4(0x16e)]=[],_0x4da46d[_0x43ffe4(0x175)](_0x80a5c1=>{const _0x5c1b06=_0x43ffe4;this[_0x5c1b06(0x185)](new _0x329cfd(_0x80a5c1));}),this[_0x43ffe4(0x188)](_0x43ffe4(0x173),{'items':[...this[_0x43ffe4(0x16e)]]});}catch(_0x307be1){this[_0x43ffe4(0x188)](_0x43ffe4(0x18b),{'error':_0x307be1,'operation':_0x43ffe4(0x186)});}}[_0x154cb7(0x164)](_0x28c0e4={}){const _0xcd2744=_0x154cb7,_0x27a698=void 0x0!==_0x28c0e4[_0xcd2744(0x170)]&&_0x28c0e4[_0xcd2744(0x170)],_0x50532c=_0x28c0e4[_0xcd2744(0x189)]?new Date(_0x28c0e4[_0xcd2744(0x189)][_0xcd2744(0x17a)](),_0x28c0e4[_0xcd2744(0x189)][_0xcd2744(0x162)](),_0x28c0e4[_0xcd2744(0x189)][_0xcd2744(0x17d)]()):null,_0x3e0627=_0x28c0e4['to']?new Date(_0x28c0e4['to'][_0xcd2744(0x17a)](),_0x28c0e4['to'][_0xcd2744(0x162)](),_0x28c0e4['to'][_0xcd2744(0x17d)]()):null;return this[_0xcd2744(0x16e)][_0xcd2744(0x178)](_0x1073b6=>{const _0x5451b5=_0xcd2744;if(_0x1073b6[_0x5451b5(0x170)]!==_0x27a698)return!0x1;if(_0x3e0627){const _0x2cb8c7=new Date(_0x1073b6[_0x5451b5(0x182)][_0x5451b5(0x17a)](),_0x1073b6[_0x5451b5(0x182)][_0x5451b5(0x162)](),_0x1073b6[_0x5451b5(0x182)][_0x5451b5(0x17d)]());return _0x50532c?_0x50532c[_0x5451b5(0x18a)]()===_0x3e0627[_0x5451b5(0x18a)]()?_0x2cb8c7[_0x5451b5(0x18a)]()===_0x50532c[_0x5451b5(0x18a)]():_0x2cb8c7<_0x3e0627&&_0x2cb8c7>=_0x50532c:_0x2cb8c7<_0x3e0627;}return!0x0;});}}
23
+ const _0x224426=_0x4eae;(function(_0x31cfe7,_0x1e5d48){const _0x17f7e4=_0x4eae,_0x36885a=_0x31cfe7();while(!![]){try{const _0x14deb6=parseInt(_0x17f7e4(0x18a))/0x1+-parseInt(_0x17f7e4(0x180))/0x2+parseInt(_0x17f7e4(0x187))/0x3*(-parseInt(_0x17f7e4(0x199))/0x4)+-parseInt(_0x17f7e4(0x17b))/0x5+parseInt(_0x17f7e4(0x190))/0x6+parseInt(_0x17f7e4(0x173))/0x7*(parseInt(_0x17f7e4(0x176))/0x8)+parseInt(_0x17f7e4(0x18f))/0x9*(-parseInt(_0x17f7e4(0x184))/0xa);if(_0x14deb6===_0x1e5d48)break;else _0x36885a['push'](_0x36885a['shift']());}catch(_0x4b425f){_0x36885a['push'](_0x36885a['shift']());}}}(_0x2de1,0x3ada5));import{EmitterMixin as _0x33d0e6}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x432898}from'./aichathistoryitem.js';function _0x2de1(){const _0x1a5c3e=['error','getConversations','updateTitle','from','fetchConversations','105NungBY','items','fire','191568adgCJt','map','getTime','getResult','itemsLoaded','950555jGytzy','updatePinned','getMonth','removeItem','deleteConversation','223994LPDAjH','splice','pinned','push','110CYbcDC','connector','updateItemTitle','17787JOMDiU','createdAt','getDate','370469dFAEBn','getItem','getFullYear','itemUpdated','execute','160245sHNLQf','1941612EPBKHB','group','loadItems','find','getItems','updateConversation','addItem','filter','updateItemPinned','212nsHfIl','init','itemRemoved','findIndex'];_0x2de1=function(){return _0x1a5c3e;};return _0x2de1();}function _0x4eae(_0xc2763f,_0x3defd0){const _0x2de1d5=_0x2de1();return _0x4eae=function(_0x4eae2d,_0x22ff2b){_0x4eae2d=_0x4eae2d-0x171;let _0x578489=_0x2de1d5[_0x4eae2d];return _0x578489;},_0x4eae(_0xc2763f,_0x3defd0);}export class AIChatHistoryConversations extends _0x33d0e6(){[_0x224426(0x174)]=[];[_0x224426(0x185)];[_0x224426(0x191)];constructor({connector:_0x24230f,group:_0x3fbc3b}){const _0x1dbda9=_0x224426;super(),this[_0x1dbda9(0x185)]=_0x24230f,this[_0x1dbda9(0x191)]=_0x3fbc3b;}async[_0x224426(0x19a)](){const _0x1bf55d=_0x224426;try{const _0x43cfae=this[_0x1bf55d(0x185)][_0x1bf55d(0x172)](this[_0x1bf55d(0x191)]),_0x2dd650=await _0x43cfae[_0x1bf55d(0x19e)]();this[_0x1bf55d(0x192)](_0x2dd650);}catch(_0x30d52a){this[_0x1bf55d(0x175)](_0x1bf55d(0x19d),{'error':_0x30d52a,'operation':_0x1bf55d(0x19a)});}}[_0x224426(0x196)](_0x2f8948){const _0xf44fca=_0x224426;this[_0xf44fca(0x174)][_0xf44fca(0x183)](_0x2f8948);}async[_0x224426(0x17e)](_0x2df599){const _0x1caf5e=_0x224426,_0x3320b6=this[_0x1caf5e(0x174)][_0x1caf5e(0x19c)](_0x591a32=>_0x591a32['id']===_0x2df599);if(-0x1===_0x3320b6)return!0x1;try{return await this[_0x1caf5e(0x185)][_0x1caf5e(0x17f)](_0x2df599)[_0x1caf5e(0x18e)](),this[_0x1caf5e(0x174)][_0x1caf5e(0x181)](_0x3320b6,0x1),this[_0x1caf5e(0x175)](_0x1caf5e(0x19b),{'itemId':_0x2df599}),!0x0;}catch(_0x5bc846){return this[_0x1caf5e(0x175)](_0x1caf5e(0x19d),{'error':_0x5bc846,'operation':_0x1caf5e(0x17e),'itemId':_0x2df599}),!0x1;}}[_0x224426(0x18b)](_0x200450){const _0x424e77=_0x224426;return this[_0x424e77(0x174)][_0x424e77(0x193)](_0x59f036=>_0x59f036['id']===_0x200450);}async[_0x224426(0x186)](_0x29f021,_0x49c03d){const _0x478b30=_0x224426,_0x31fbc4=this[_0x478b30(0x18b)](_0x29f021);if(!_0x31fbc4)return!0x1;try{return await this[_0x478b30(0x185)][_0x478b30(0x195)](_0x29f021,{'title':_0x49c03d})[_0x478b30(0x179)](),_0x31fbc4[_0x478b30(0x19f)](_0x49c03d),this[_0x478b30(0x175)](_0x478b30(0x18d),{'itemId':_0x29f021,'updates':{'title':_0x49c03d}}),!0x0;}catch(_0x5f4bfc){return this[_0x478b30(0x175)](_0x478b30(0x19d),{'error':_0x5f4bfc,'operation':_0x478b30(0x186),'itemId':_0x29f021}),!0x1;}}async[_0x224426(0x198)](_0x190be6,_0x2e1375){const _0x6e7db1=_0x224426,_0x562dab=this[_0x6e7db1(0x18b)](_0x190be6);if(!_0x562dab)return!0x1;try{return await this[_0x6e7db1(0x185)][_0x6e7db1(0x195)](_0x190be6,{'pinned':_0x2e1375})[_0x6e7db1(0x179)](),_0x562dab[_0x6e7db1(0x17c)](_0x2e1375),this[_0x6e7db1(0x175)](_0x6e7db1(0x18d),{'itemId':_0x190be6,'updates':{'pinned':_0x2e1375}}),!0x0;}catch(_0xc3661f){return this[_0x6e7db1(0x175)](_0x6e7db1(0x19d),{'error':_0xc3661f,'operation':_0x6e7db1(0x198),'itemId':_0x190be6}),!0x1;}}[_0x224426(0x192)](_0xd8c9ee){const _0x53ba2f=_0x224426;try{this[_0x53ba2f(0x174)]=[],_0xd8c9ee[_0x53ba2f(0x177)](_0x2f2cbc=>{const _0x5b1596=_0x53ba2f;this[_0x5b1596(0x196)](new _0x432898(_0x2f2cbc));}),this[_0x53ba2f(0x175)](_0x53ba2f(0x17a),{'items':[...this[_0x53ba2f(0x174)]]});}catch(_0x1c4432){this[_0x53ba2f(0x175)](_0x53ba2f(0x19d),{'error':_0x1c4432,'operation':_0x53ba2f(0x192)});}}[_0x224426(0x194)](_0x527b17={}){const _0x1525d1=_0x224426,_0xd16a6c=void 0x0!==_0x527b17[_0x1525d1(0x182)]&&_0x527b17[_0x1525d1(0x182)],_0x58af0a=_0x527b17[_0x1525d1(0x171)]?new Date(_0x527b17[_0x1525d1(0x171)][_0x1525d1(0x18c)](),_0x527b17[_0x1525d1(0x171)][_0x1525d1(0x17d)](),_0x527b17[_0x1525d1(0x171)][_0x1525d1(0x189)]()):null,_0x49d79a=_0x527b17['to']?new Date(_0x527b17['to'][_0x1525d1(0x18c)](),_0x527b17['to'][_0x1525d1(0x17d)](),_0x527b17['to'][_0x1525d1(0x189)]()):null;return this[_0x1525d1(0x174)][_0x1525d1(0x197)](_0x407ee2=>{const _0xaa739a=_0x1525d1;if(_0x407ee2[_0xaa739a(0x182)]!==_0xd16a6c)return!0x1;if(_0x49d79a){const _0x57bdda=new Date(_0x407ee2[_0xaa739a(0x188)][_0xaa739a(0x18c)](),_0x407ee2[_0xaa739a(0x188)][_0xaa739a(0x17d)](),_0x407ee2[_0xaa739a(0x188)][_0xaa739a(0x189)]());return _0x58af0a?_0x58af0a[_0xaa739a(0x178)]()===_0x49d79a[_0xaa739a(0x178)]()?_0x57bdda[_0xaa739a(0x178)]()===_0x58af0a[_0xaa739a(0x178)]():_0x57bdda<_0x49d79a&&_0x57bdda>=_0x58af0a:_0x57bdda<_0x49d79a;}return!0x0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3207d8=_0x46c7;(function(_0x2528af,_0x1c686a){var _0x45ed9a=_0x46c7,_0x100e6f=_0x2528af();while(!![]){try{var _0x1fce99=parseInt(_0x45ed9a(0xfd))/0x1*(-parseInt(_0x45ed9a(0x102))/0x2)+-parseInt(_0x45ed9a(0x101))/0x3*(-parseInt(_0x45ed9a(0x100))/0x4)+-parseInt(_0x45ed9a(0xf4))/0x5+-parseInt(_0x45ed9a(0xfa))/0x6*(parseInt(_0x45ed9a(0xf6))/0x7)+-parseInt(_0x45ed9a(0xff))/0x8*(-parseInt(_0x45ed9a(0xf9))/0x9)+-parseInt(_0x45ed9a(0x104))/0xa+parseInt(_0x45ed9a(0xfb))/0xb;if(_0x1fce99===_0x1c686a)break;else _0x100e6f['push'](_0x100e6f['shift']());}catch(_0x173d31){_0x100e6f['push'](_0x100e6f['shift']());}}}(_0x2d94,0xd2389));function _0x46c7(_0x2fdf42,_0x2d049e){var _0x2d9402=_0x2d94();return _0x46c7=function(_0x46c742,_0x388f0a){_0x46c742=_0x46c742-0xf3;var _0x169fbb=_0x2d9402[_0x46c742];return _0x169fbb;},_0x46c7(_0x2fdf42,_0x2d049e);}import{ObservableMixin as _0x152dca}from'ckeditor5/src/utils.js';import{escape as _0x154c5b}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x152dca(){['id'];[_0x3207d8(0x103)];constructor({id:_0xef613f,title:_0x1254f5,createdAt:_0x18b0a2,updatedAt:_0x9466b0,pinned:_0x241855}){var _0x20eeec=_0x3207d8;super(),this['id']=_0xef613f,this[_0x20eeec(0x103)]=new Date(_0x18b0a2),this[_0x20eeec(0xfc)](_0x20eeec(0xf5),_0x1254f5),this[_0x20eeec(0xfc)](_0x20eeec(0xfe),_0x9466b0?new Date(_0x9466b0):null),this[_0x20eeec(0xfc)](_0x20eeec(0xf8),_0x241855||!0x1);}[_0x3207d8(0xf3)](_0x4c61ee){var _0x530ec3=_0x3207d8;this[_0x530ec3(0xfc)](_0x530ec3(0xf5),_0x154c5b(_0x4c61ee)),this[_0x530ec3(0xfe)]=new Date();}[_0x3207d8(0xf7)](_0x13f5e7){var _0x11070f=_0x3207d8;this[_0x11070f(0xfc)](_0x11070f(0xf8),_0x13f5e7),this[_0x11070f(0xfe)]=new Date();}}function _0x2d94(){var _0x2ea253=['updatedAt','5080ajFeWW','4575728ofOuRQ','3jqjEBg','250PUvefO','createdAt','3647290UoMlPV','updateTitle','556250zlbcdj','title','22309dxtxAd','updatePinned','pinned','24147HTQDDW','942kRBVal','3705801zVREro','set','10777BhXavC'];_0x2d94=function(){return _0x2ea253;};return _0x2d94();}
23
+ var _0x337608=_0x5a8a;(function(_0x4006e0,_0x40fa6f){var _0x221893=_0x5a8a,_0x555de8=_0x4006e0();while(!![]){try{var _0xccc116=parseInt(_0x221893(0x99))/0x1*(parseInt(_0x221893(0x9b))/0x2)+-parseInt(_0x221893(0x9d))/0x3+parseInt(_0x221893(0x9f))/0x4+-parseInt(_0x221893(0xa3))/0x5+-parseInt(_0x221893(0x9c))/0x6*(-parseInt(_0x221893(0x95))/0x7)+-parseInt(_0x221893(0xa5))/0x8*(parseInt(_0x221893(0x98))/0x9)+parseInt(_0x221893(0x9a))/0xa*(-parseInt(_0x221893(0xa0))/0xb);if(_0xccc116===_0x40fa6f)break;else _0x555de8['push'](_0x555de8['shift']());}catch(_0x134ba3){_0x555de8['push'](_0x555de8['shift']());}}}(_0x5c3e,0x207d3));import{ObservableMixin as _0x59bc02}from'ckeditor5/src/utils.js';import{escape as _0x3adc90}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x59bc02(){['id'];[_0x337608(0xa4)];constructor({id:_0x5cc6c5,title:_0x3b2d05,createdAt:_0x30d24f,updatedAt:_0x3f175b,pinned:_0x1a5c53}){var _0x3dd9b4=_0x337608;super(),this['id']=_0x5cc6c5,this[_0x3dd9b4(0xa4)]=new Date(_0x30d24f),this[_0x3dd9b4(0xa2)](_0x3dd9b4(0x94),_0x3b2d05),this[_0x3dd9b4(0xa2)](_0x3dd9b4(0xa1),_0x3f175b?new Date(_0x3f175b):null),this[_0x3dd9b4(0xa2)](_0x3dd9b4(0x97),_0x1a5c53||!0x1);}[_0x337608(0x9e)](_0x4aab54){var _0x10e47b=_0x337608;this[_0x10e47b(0xa2)](_0x10e47b(0x94),_0x3adc90(_0x4aab54)),this[_0x10e47b(0xa1)]=new Date();}[_0x337608(0x96)](_0x27c67b){var _0x54474d=_0x337608;this[_0x54474d(0xa2)](_0x54474d(0x97),_0x27c67b),this[_0x54474d(0xa1)]=new Date();}}function _0x5a8a(_0x3151af,_0xeb80c5){var _0x5c3ed3=_0x5c3e();return _0x5a8a=function(_0x5a8a02,_0x3a13b2){_0x5a8a02=_0x5a8a02-0x94;var _0x356296=_0x5c3ed3[_0x5a8a02];return _0x356296;},_0x5a8a(_0x3151af,_0xeb80c5);}function _0x5c3e(){var _0x3a4d9b=['170217ZIpUjt','239087wCHwEX','320610MyXfSN','2QHvUZB','6gdRCPi','594720qONTJF','updateTitle','470992NJZQPK','11rOuerj','updatedAt','set','727875NtWNID','createdAt','8FXDQSd','title','1197203YAmycw','updatePinned','pinned'];_0x5c3e=function(){return _0x3a4d9b;};return _0x5c3e();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x392f(){const _0x445e4c=['ck-ai-loader__text','panelPosition','5864xsnBRK','_titleView','withText','ck-ai-chat-history__item-date','string','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','edit:cancel','updateTitle','12SGAtHw','1399509tWrEoQ','AI_CHAT_HISTORY_EDIT_NAME','_commitEditInputValue','ck-ai-chat-history__item-check','pinned','click','clear','2624495aANYLj','fire','items','isVisible','ck-hidden','buttonView','actions','1318828TlUBeR','createCollection','ck-ai-loader','element','match','updateLoadingState','Enter','_createEditInputView','_createAcceptEditButtonView','AI_CHAT_HISTORY_CANCEL','set','extendTemplate','bind','ck-ai-chat-history__item','AI_CHAT_HISTORY_LOADING_UNPINNING','then','mainContent','ck-ai-chat-history__item-main-content','isEdit','3918423rvfxGx','value','49VXDRpo','isMatching','ck-confirm-view-cancel','span','ck-ai-chat-history__item--edit','ck-ai-chat-history__item-content','add','panelView','addMany','11925OUgABc','AI_CHAT_HISTORY_ACCEPT','setTemplate','key','editConversationTitle','label','removeConversation','ck-ai-chat-history__item-title','ck-confirm-view-submit','loadingState','text','AI_CHAT_HISTORY_REMOVE','ck-ai-chat-history__item--active','isOn','_createCancelEditButtonView','focus','listitem','execute','ck-ai-chat-history__item-actions','change:isEdit','_createCheckView','children','AI_CHAT_HISTORY_LOADING_RENAMING','div','showConfirm','highlightText','ck-ai-chat-history__item-row','setConversationPinned','_createSpinnerView','AI_CHAT_HISTORY_LOADING_PINNING','37902630ujZvRF','956166QxvMsB','_createMenuDropdownView','locale','bindTemplate','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_LOADING_REMOVING','_createPinButtonView','AI_CHAT_HISTORY_REMOVE_CONFIRM','LOADING_LABELS','selectConversation','AI_CHAT_HISTORY_PIN_BUTTON','tiny'];_0x392f=function(){return _0x445e4c;};return _0x392f();}const _0x4ebbb7=_0x51d8;(function(_0x4934cd,_0x44ba64){const _0x534615=_0x51d8,_0x13f913=_0x4934cd();while(!![]){try{const _0x200eb4=-parseInt(_0x534615(0xc5))/0x1+-parseInt(_0x534615(0xd3))/0x2+-parseInt(_0x534615(0x84))/0x3+-parseInt(_0x534615(0xc4))/0x4*(parseInt(_0x534615(0xcc))/0x5)+parseInt(_0x534615(0xae))/0x6*(parseInt(_0x534615(0x86))/0x7)+-parseInt(_0x534615(0xbc))/0x8*(-parseInt(_0x534615(0x8f))/0x9)+parseInt(_0x534615(0xad))/0xa;if(_0x200eb4===_0x44ba64)break;else _0x13f913['push'](_0x13f913['shift']());}catch(_0x355e91){_0x13f913['push'](_0x13f913['shift']());}}}(_0x392f,0xe4d26));import{ListItemView as _0x5e329e,HighlightedTextView as _0x154660,ButtonView as _0x9f086d,ListView as _0x3d276e,IconView as _0x487cef,createDropdown as _0x5b8a3f,InputTextView as _0xbb904c}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x1dcbdf,IconPin as _0x4a985f,IconCheck as _0x38eda7,IconCancel as _0x32397d}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x2c84b3,ConfirmMixin as _0x1fd42c}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x51d8(_0x90383d,_0x4955d0){const _0x392f74=_0x392f();return _0x51d8=function(_0x51d86c,_0x1f130b){_0x51d86c=_0x51d86c-0x78;let _0x3ff18e=_0x392f74[_0x51d86c];return _0x3ff18e;},_0x51d8(_0x90383d,_0x4955d0);}import{escape as _0x20d564}from'es-toolkit/compat';import{AISpinnerView as _0x2f1f43}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x5a18a5}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0x1fd42c(_0x5e329e){['id'];static [_0x4ebbb7(0xb6)]={'remove':_0x4ebbb7(0xb3),'rename':_0x4ebbb7(0xa5),'pin':_0x4ebbb7(0xac),'unpin':_0x4ebbb7(0x7f)};[_0x4ebbb7(0xd2)];[_0x4ebbb7(0x81)];[_0x4ebbb7(0xbd)];constructor(_0x15a0b7,_0xc21294){const _0x2f64c7=_0x4ebbb7;super(_0x15a0b7);const _0x55ab7d=this[_0x2f64c7(0xb1)];this[_0x2f64c7(0x7b)](_0x2f64c7(0x83),!0x1),this[_0x2f64c7(0x7b)](_0x2f64c7(0xcf),!0x0),this[_0x2f64c7(0x7b)](_0x2f64c7(0xc9),!!_0xc21294[_0x2f64c7(0xc9)]),this[_0x2f64c7(0x7b)](_0x2f64c7(0x98),null),this['id']=_0xc21294['id'];const {title:_0x292724,createdAt:_0x3a581e,active:_0x74f34d=!0x1}=_0xc21294;this[_0x2f64c7(0xbd)]=new _0x154660(),this[_0x2f64c7(0xbd)][_0x2f64c7(0x99)]=_0x292724,this[_0x2f64c7(0xbd)][_0x2f64c7(0x7c)]({'attributes':{'class':[_0x2f64c7(0x96)]}});const _0x3e24df=this[_0x2f64c7(0xa3)](),_0x17bca2=this[_0x2f64c7(0xb4)](_0x15a0b7),_0x2bc7f7=this[_0x2f64c7(0xaf)](),_0x203ad5=this[_0x2f64c7(0x78)](_0x15a0b7,_0x292724),_0x5be0bc=this[_0x2f64c7(0x79)](_0x15a0b7,_0x203ad5),_0x4270c3=this[_0x2f64c7(0x9d)](_0x15a0b7,_0x203ad5);this[_0x2f64c7(0xd2)]=this[_0x2f64c7(0xd4)](),this[_0x2f64c7(0x81)]=this[_0x2f64c7(0xd4)](),this[_0x2f64c7(0x81)][_0x2f64c7(0x8c)](this[_0x2f64c7(0xbd)]),this[_0x2f64c7(0xd2)][_0x2f64c7(0x8c)](_0x17bca2),this[_0x2f64c7(0xd2)][_0x2f64c7(0x8c)](_0x2bc7f7),this['on'](_0x2f64c7(0xa2),(_0x31554a,_0x31a91b,_0x4d441a)=>{const _0x31d72e=_0x2f64c7;this[_0x31d72e(0xd2)][_0x31d72e(0xcb)](),this[_0x31d72e(0x81)][_0x31d72e(0xcb)](),_0x4d441a?(this[_0x31d72e(0xd2)][_0x31d72e(0x8c)](_0x5be0bc),this[_0x31d72e(0xd2)][_0x31d72e(0x8c)](_0x4270c3),this[_0x31d72e(0x81)][_0x31d72e(0x8c)](_0x203ad5),_0x203ad5[_0x31d72e(0xd6)][_0x31d72e(0x9e)]()):(this[_0x31d72e(0xd2)][_0x31d72e(0x8c)](_0x17bca2),this[_0x31d72e(0xd2)][_0x31d72e(0x8c)](_0x2bc7f7),this[_0x31d72e(0x81)][_0x31d72e(0x8c)](this[_0x31d72e(0xbd)]));}),this[_0x2f64c7(0x91)]({'tag':'li','attributes':{'class':[_0x2f64c7(0x7e),_0x74f34d?_0x2f64c7(0x9b):'',_0x55ab7d['if'](_0x2f64c7(0xcf),_0x2f64c7(0xd0),_0x1a3280=>!_0x1a3280),_0x55ab7d['if'](_0x2f64c7(0x83),_0x2f64c7(0x8a))],'role':_0x2f64c7(0x9f)},'children':[{'tag':_0x2f64c7(0x89),'attributes':{'class':[_0x2f64c7(0xb2)]},'children':[{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0xc8),_0x55ab7d['if'](_0x2f64c7(0x98),_0x2f64c7(0xd0),_0x129afe=>!!_0x129afe)]},'children':_0x74f34d?[_0x3e24df]:[]},{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0xd5),_0x55ab7d['if'](_0x2f64c7(0x98),_0x2f64c7(0xd0),_0x5cff1d=>!_0x5cff1d)]},'children':[this[_0x2f64c7(0xab)]()]}]},{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0xa9)]},'children':[{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0x8b)]},'on':{'click':this[_0x2f64c7(0xb1)]['to'](_0x2f64c7(0xca))},'children':[{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0x82)]},'children':[{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0x96),_0x55ab7d['if'](_0x2f64c7(0x98),_0x2f64c7(0xd0),_0x3a45b2=>!!_0x3a45b2)]},'children':this[_0x2f64c7(0x81)]},{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0xba),_0x55ab7d['if'](_0x2f64c7(0x98),_0x2f64c7(0xd0),_0x77b5f9=>!_0x77b5f9)]},'children':[{'text':_0x55ab7d['to'](_0x2f64c7(0x98),_0x8c4c0d=>_0x8c4c0d?_0x5a18a5(this[_0x2f64c7(0xb0)],AIChatHistoryListItemView[_0x2f64c7(0xb6)][_0x8c4c0d]):'')}]}]},{'tag':_0x2f64c7(0x89),'attributes':{'class':[_0x2f64c7(0xbf)]},'children':[_0x3a581e]}]},{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0xa1)]},'children':this[_0x2f64c7(0xd2)]}]}]}),this['on'](_0x2f64c7(0xca),()=>{const _0x9cc78d=_0x2f64c7;this[_0x9cc78d(0x83)]||this[_0x9cc78d(0xcd)](_0x9cc78d(0xb7),{'id':this['id']});});}[_0x4ebbb7(0xc3)](_0x38d765){const _0x1ba251=_0x4ebbb7;this[_0x1ba251(0xbd)][_0x1ba251(0x99)]=_0x20d564(_0x38d765);}[_0x4ebbb7(0xd8)](_0x20c86a,_0x1e98be){const _0x1ed000=_0x4ebbb7;this[_0x1ed000(0x7b)](_0x1ed000(0x98),_0x1e98be?_0x20c86a:null);}[_0x4ebbb7(0xa3)](){const _0x255fb5=_0x4ebbb7,_0x21caf8=new _0x487cef();return _0x21caf8[_0x255fb5(0x7b)]({'content':_0x38eda7}),_0x21caf8;}[_0x4ebbb7(0xb4)](_0x4a1853){const _0x416746=_0x4ebbb7,_0x44fa68=new _0x9f086d(_0x4a1853);return _0x44fa68[_0x416746(0x7b)]({'label':_0x5a18a5(_0x4a1853,_0x416746(0xb8)),'icon':_0x4a985f,'withText':!0x1,'tooltip':!0x0}),_0x44fa68[_0x416746(0x7d)](_0x416746(0x9c))['to'](this,_0x416746(0xc9)),_0x44fa68['on'](_0x416746(0xa0),()=>{const _0x551a50=_0x416746,_0x168614=!this[_0x551a50(0xc9)];this[_0x551a50(0xcd)](_0x551a50(0xaa),{'id':this['id'],'pinned':_0x168614});}),_0x44fa68;}[_0x4ebbb7(0xaf)](){const _0x57ddc5=_0x4ebbb7,_0x1d87d7=_0x5b8a3f(this[_0x57ddc5(0xb0)],_0x2c84b3),_0x35968c=_0x1d87d7[_0x57ddc5(0x8d)][_0x57ddc5(0xa4)];_0x1d87d7[_0x57ddc5(0xd1)][_0x57ddc5(0x7b)]({'label':_0x5a18a5(this[_0x57ddc5(0xb0)],_0x57ddc5(0xc1)),'icon':_0x1dcbdf}),_0x1d87d7[_0x57ddc5(0xbb)]='sw';const _0x5af028=new _0x9f086d(this[_0x57ddc5(0xb0)]);_0x5af028[_0x57ddc5(0x94)]=_0x5a18a5(this[_0x57ddc5(0xb0)],_0x57ddc5(0xc6)),_0x5af028[_0x57ddc5(0xbe)]=!0x0,_0x5af028['on'](_0x57ddc5(0xa0),()=>{const _0x25df89=_0x57ddc5;this[_0x25df89(0x83)]=!0x0;});const _0x4c910d=new _0x9f086d(this[_0x57ddc5(0xb0)]);_0x4c910d[_0x57ddc5(0x94)]=_0x5a18a5(this[_0x57ddc5(0xb0)],_0x57ddc5(0x9a)),_0x4c910d[_0x57ddc5(0xbe)]=!0x0,_0x4c910d['on'](_0x57ddc5(0xa0),()=>{const _0x49a855=_0x57ddc5;this[_0x49a855(0xa7)](_0x5a18a5(this[_0x49a855(0xb0)],_0x49a855(0xb5)),this[_0x49a855(0xd6)])[_0x49a855(0x80)](()=>{const _0x3758f6=_0x49a855;this[_0x3758f6(0xcd)](_0x3758f6(0x95),{'id':this['id']});});});const _0x4f7a48=new _0x3d276e(this[_0x57ddc5(0xb0)]),_0x1d4539=new _0x5e329e(this[_0x57ddc5(0xb0)]);_0x1d4539[_0x57ddc5(0xa4)][_0x57ddc5(0x8c)](_0x5af028);const _0x25b2b7=new _0x5e329e(this[_0x57ddc5(0xb0)]);return _0x25b2b7[_0x57ddc5(0xa4)][_0x57ddc5(0x8c)](_0x4c910d),_0x4f7a48[_0x57ddc5(0xce)][_0x57ddc5(0x8e)]([_0x1d4539,_0x25b2b7]),_0x35968c[_0x57ddc5(0x8c)](_0x4f7a48),_0x1d87d7;}[_0x4ebbb7(0x78)](_0x575c7f,_0x310c72){const _0x4ab2fb=_0x4ebbb7,_0x26479d=new _0xbb904c(_0x575c7f),_0x5f135e=_0x26479d[_0x4ab2fb(0xb1)];return _0x26479d[_0x4ab2fb(0x85)]=_0x310c72,_0x26479d[_0x4ab2fb(0x7c)]({'on':{'keydown':_0x5f135e['to'](_0x2165ab=>{const _0x3ab74c=_0x4ab2fb;_0x3ab74c(0xd9)==_0x2165ab[_0x3ab74c(0x92)]&&this[_0x3ab74c(0xc7)](_0x26479d);})}}),_0x26479d;}[_0x4ebbb7(0x79)](_0x1ded98,_0x9a5531){const _0x17aac3=_0x4ebbb7,_0x37d7cf=new _0x9f086d(_0x1ded98);return _0x37d7cf[_0x17aac3(0x7b)]({'icon':_0x38eda7,'withText':!0x1,'tooltip':_0x5a18a5(_0x1ded98,_0x17aac3(0x90))}),_0x37d7cf[_0x17aac3(0x7c)]({'attributes':{'class':[_0x17aac3(0x97)]}}),_0x37d7cf['on'](_0x17aac3(0xa0),()=>{const _0x746aa9=_0x17aac3;this[_0x746aa9(0xc7)](_0x9a5531);}),_0x37d7cf;}[_0x4ebbb7(0xc7)](_0x5c7bc3){const _0x386407=_0x4ebbb7,_0x548580=_0x5c7bc3[_0x386407(0xd6)][_0x386407(0x85)]||'';this[_0x386407(0xbd)][_0x386407(0x99)]=_0x548580,this[_0x386407(0x83)]=!0x1,this[_0x386407(0xcd)](_0x386407(0x93),{'id':this['id'],'title':_0x548580});}[_0x4ebbb7(0x9d)](_0x495113,_0x337da3){const _0x19a6de=_0x4ebbb7,_0x14e0c4=new _0x9f086d(_0x495113);return _0x14e0c4[_0x19a6de(0x7b)]({'icon':_0x32397d,'withText':!0x1,'tooltip':_0x5a18a5(_0x495113,_0x19a6de(0x7a))}),_0x14e0c4[_0x19a6de(0x7c)]({'attributes':{'class':[_0x19a6de(0x88)]}}),_0x14e0c4['on'](_0x19a6de(0xa0),()=>{const _0x47abb3=_0x19a6de;this[_0x47abb3(0x83)]=!0x1,_0x337da3[_0x47abb3(0x85)]=this[_0x47abb3(0xbd)][_0x47abb3(0x99)]||'',this[_0x47abb3(0xcd)](_0x47abb3(0xc2));}),_0x14e0c4;}[_0x4ebbb7(0xab)](){const _0x19b92e=_0x4ebbb7,_0x45e22f=new _0x2f1f43(_0x19b92e(0xb9));return _0x45e22f[_0x19b92e(0xcf)]=!0x0,_0x45e22f;}[_0x4ebbb7(0x87)](_0xa539d0){const _0x47dcd0=_0x4ebbb7;return this[_0x47dcd0(0xbd)]&&_0x47dcd0(0xc0)==typeof this[_0x47dcd0(0xbd)][_0x47dcd0(0x99)]&&this[_0x47dcd0(0xbd)][_0x47dcd0(0x99)][_0x47dcd0(0xd7)](_0xa539d0)?{'title':!0x0}:null;}[_0x4ebbb7(0xa8)](_0x3eed54){const _0x3567cd=_0x4ebbb7;this[_0x3567cd(0xbd)][_0x3567cd(0xa8)](_0x3eed54);}}
23
+ function _0x40ce(_0x3aef7f,_0x2408a4){const _0x205a35=_0x205a();return _0x40ce=function(_0x40ce7a,_0x241c59){_0x40ce7a=_0x40ce7a-0x1a9;let _0x252a9d=_0x205a35[_0x40ce7a];return _0x252a9d;},_0x40ce(_0x3aef7f,_0x2408a4);}const _0x1aa884=_0x40ce;(function(_0x44353a,_0x24a0f3){const _0x439368=_0x40ce,_0x2610d3=_0x44353a();while(!![]){try{const _0x27aebd=parseInt(_0x439368(0x1b7))/0x1*(parseInt(_0x439368(0x1cf))/0x2)+parseInt(_0x439368(0x1fa))/0x3+-parseInt(_0x439368(0x1e4))/0x4*(-parseInt(_0x439368(0x1dc))/0x5)+-parseInt(_0x439368(0x200))/0x6+parseInt(_0x439368(0x1ec))/0x7+-parseInt(_0x439368(0x1ca))/0x8*(-parseInt(_0x439368(0x204))/0x9)+parseInt(_0x439368(0x1e5))/0xa*(-parseInt(_0x439368(0x1f8))/0xb);if(_0x27aebd===_0x24a0f3)break;else _0x2610d3['push'](_0x2610d3['shift']());}catch(_0x5486b5){_0x2610d3['push'](_0x2610d3['shift']());}}}(_0x205a,0x51f9f));import{ListItemView as _0x24c960,HighlightedTextView as _0x50ec94,ButtonView as _0x33fd9f,ListView as _0x390921,IconView as _0x5433a7,createDropdown as _0x4cfbe7,InputTextView as _0xb0c0f2}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x48dbc8,IconPin as _0x350140,IconCheck as _0x17814b,IconCancel as _0x44a0de}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x2754f0,ConfirmMixin as _0x197093}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x52731b}from'es-toolkit/compat';import{AISpinnerView as _0x3a3a7d}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x404df8}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0x197093(_0x24c960){['id'];static [_0x1aa884(0x1b6)]={'remove':_0x1aa884(0x1d2),'rename':_0x1aa884(0x1de),'pin':_0x1aa884(0x1be),'unpin':_0x1aa884(0x1fb)};[_0x1aa884(0x1ff)];[_0x1aa884(0x1a9)];[_0x1aa884(0x1d0)];constructor(_0x11bda4,_0x38faa5){const _0x26c7ea=_0x1aa884;super(_0x11bda4);const _0x571163=this[_0x26c7ea(0x206)];this[_0x26c7ea(0x1c5)](_0x26c7ea(0x1f6),!0x1),this[_0x26c7ea(0x1c5)](_0x26c7ea(0x1ab),!0x0),this[_0x26c7ea(0x1c5)](_0x26c7ea(0x1d7),!!_0x38faa5[_0x26c7ea(0x1d7)]),this[_0x26c7ea(0x1c5)](_0x26c7ea(0x1c0),null),this['id']=_0x38faa5['id'];const {title:_0x1f4d22,createdAt:_0x3b61ed,active:_0x37fd08=!0x1}=_0x38faa5;this[_0x26c7ea(0x1d0)]=new _0x50ec94(),this[_0x26c7ea(0x1d0)][_0x26c7ea(0x1c2)]=_0x1f4d22,this[_0x26c7ea(0x1d0)][_0x26c7ea(0x1c1)]({'attributes':{'class':[_0x26c7ea(0x1d8)]}});const _0x5463b0=this[_0x26c7ea(0x1fd)](),_0x51c2c0=this[_0x26c7ea(0x1f4)](_0x11bda4),_0x1bed2a=this[_0x26c7ea(0x208)](),_0x5d0c4b=this[_0x26c7ea(0x1aa)](_0x11bda4,_0x1f4d22),_0x3c7c08=this[_0x26c7ea(0x1e7)](_0x11bda4,_0x5d0c4b),_0x57f840=this[_0x26c7ea(0x1b9)](_0x11bda4,_0x5d0c4b);this[_0x26c7ea(0x1ff)]=this[_0x26c7ea(0x1bd)](),this[_0x26c7ea(0x1a9)]=this[_0x26c7ea(0x1bd)](),this[_0x26c7ea(0x1a9)][_0x26c7ea(0x207)](this[_0x26c7ea(0x1d0)]),this[_0x26c7ea(0x1ff)][_0x26c7ea(0x207)](_0x51c2c0),this[_0x26c7ea(0x1ff)][_0x26c7ea(0x207)](_0x1bed2a),this['on'](_0x26c7ea(0x1b3),(_0x5b0993,_0x59e67f,_0x373f5d)=>{const _0x84c227=_0x26c7ea;this[_0x84c227(0x1ff)][_0x84c227(0x1cb)](),this[_0x84c227(0x1a9)][_0x84c227(0x1cb)](),_0x373f5d?(this[_0x84c227(0x1ff)][_0x84c227(0x207)](_0x3c7c08),this[_0x84c227(0x1ff)][_0x84c227(0x207)](_0x57f840),this[_0x84c227(0x1a9)][_0x84c227(0x207)](_0x5d0c4b),_0x5d0c4b[_0x84c227(0x1e3)][_0x84c227(0x1f3)]()):(this[_0x84c227(0x1ff)][_0x84c227(0x207)](_0x51c2c0),this[_0x84c227(0x1ff)][_0x84c227(0x207)](_0x1bed2a),this[_0x84c227(0x1a9)][_0x84c227(0x207)](this[_0x84c227(0x1d0)]));}),this[_0x26c7ea(0x1dd)]({'tag':'li','attributes':{'class':[_0x26c7ea(0x1f7),_0x37fd08?_0x26c7ea(0x202):'',_0x571163['if'](_0x26c7ea(0x1ab),_0x26c7ea(0x1ad),_0x559ca9=>!_0x559ca9),_0x571163['if'](_0x26c7ea(0x1f6),_0x26c7ea(0x1d9))],'role':_0x26c7ea(0x1df)},'children':[{'tag':_0x26c7ea(0x1f5),'attributes':{'class':[_0x26c7ea(0x1b1)]},'children':[{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1ed),_0x571163['if'](_0x26c7ea(0x1c0),_0x26c7ea(0x1ad),_0x57c75a=>!!_0x57c75a)]},'children':_0x37fd08?[_0x5463b0]:[]},{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1fe),_0x571163['if'](_0x26c7ea(0x1c0),_0x26c7ea(0x1ad),_0x3bc532=>!_0x3bc532)]},'children':[this[_0x26c7ea(0x1ee)]()]}]},{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1bc)]},'children':[{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1d6)]},'on':{'click':this[_0x26c7ea(0x206)]['to'](_0x26c7ea(0x1ac))},'children':[{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1db)]},'children':[{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1d8),_0x571163['if'](_0x26c7ea(0x1c0),_0x26c7ea(0x1ad),_0x192bce=>!!_0x192bce)]},'children':this[_0x26c7ea(0x1a9)]},{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1eb),_0x571163['if'](_0x26c7ea(0x1c0),_0x26c7ea(0x1ad),_0xe40de4=>!_0xe40de4)]},'children':[{'text':_0x571163['to'](_0x26c7ea(0x1c0),_0x46de6a=>_0x46de6a?_0x404df8(this[_0x26c7ea(0x1f0)],AIChatHistoryListItemView[_0x26c7ea(0x1b6)][_0x46de6a]):'')}]}]},{'tag':_0x26c7ea(0x1f5),'attributes':{'class':[_0x26c7ea(0x1f9)]},'children':[_0x3b61ed]}]},{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1d5)]},'children':this[_0x26c7ea(0x1ff)]}]}]}),this['on'](_0x26c7ea(0x1ac),()=>{const _0x2943bd=_0x26c7ea;this[_0x2943bd(0x1f6)]||this[_0x2943bd(0x205)](_0x2943bd(0x1e8),{'id':this['id']});});}[_0x1aa884(0x20a)](_0x4bb7aa){const _0x5cba8e=_0x1aa884;this[_0x5cba8e(0x1d0)][_0x5cba8e(0x1c2)]=_0x52731b(_0x4bb7aa);}[_0x1aa884(0x1c7)](_0x2df4e8,_0xf61899){const _0x47abc3=_0x1aa884;this[_0x47abc3(0x1c5)](_0x47abc3(0x1c0),_0xf61899?_0x2df4e8:null);}[_0x1aa884(0x1fd)](){const _0x1418b4=_0x1aa884,_0x9f816c=new _0x5433a7();return _0x9f816c[_0x1418b4(0x1c5)]({'content':_0x17814b}),_0x9f816c;}[_0x1aa884(0x1f4)](_0x2cd519){const _0x170a9a=_0x1aa884,_0x436e7e=new _0x33fd9f(_0x2cd519);return _0x436e7e[_0x170a9a(0x1c5)]({'label':_0x404df8(_0x2cd519,_0x170a9a(0x1b8)),'icon':_0x350140,'withText':!0x1,'tooltip':!0x0}),_0x436e7e[_0x170a9a(0x1cd)](_0x170a9a(0x1d3))['to'](this,_0x170a9a(0x1d7)),_0x436e7e['on'](_0x170a9a(0x1b2),()=>{const _0xf27f24=_0x170a9a,_0x22565f=!this[_0xf27f24(0x1d7)];this[_0xf27f24(0x205)](_0xf27f24(0x1da),{'id':this['id'],'pinned':_0x22565f});}),_0x436e7e;}[_0x1aa884(0x208)](){const _0x1cd5e9=_0x1aa884,_0x514b90=_0x4cfbe7(this[_0x1cd5e9(0x1f0)],_0x2754f0),_0xcee5cd=_0x514b90[_0x1cd5e9(0x1bb)][_0x1cd5e9(0x1ba)];_0x514b90[_0x1cd5e9(0x1b5)][_0x1cd5e9(0x1c5)]({'label':_0x404df8(this[_0x1cd5e9(0x1f0)],_0x1cd5e9(0x1e1)),'icon':_0x48dbc8}),_0x514b90[_0x1cd5e9(0x1bf)]='sw';const _0x1bce7b=new _0x33fd9f(this[_0x1cd5e9(0x1f0)]);_0x1bce7b[_0x1cd5e9(0x1c9)]=_0x404df8(this[_0x1cd5e9(0x1f0)],_0x1cd5e9(0x1e0)),_0x1bce7b[_0x1cd5e9(0x20b)]=!0x0,_0x1bce7b['on'](_0x1cd5e9(0x1b2),()=>{const _0x57cee2=_0x1cd5e9;this[_0x57cee2(0x1f6)]=!0x0;});const _0x156d3d=new _0x33fd9f(this[_0x1cd5e9(0x1f0)]);_0x156d3d[_0x1cd5e9(0x1c9)]=_0x404df8(this[_0x1cd5e9(0x1f0)],_0x1cd5e9(0x1c3)),_0x156d3d[_0x1cd5e9(0x20b)]=!0x0,_0x156d3d['on'](_0x1cd5e9(0x1b2),()=>{const _0x20239b=_0x1cd5e9;this[_0x20239b(0x1d4)](_0x404df8(this[_0x20239b(0x1f0)],_0x20239b(0x1b0)),this[_0x20239b(0x1e3)])[_0x20239b(0x1e2)](()=>{const _0x356269=_0x20239b;this[_0x356269(0x205)](_0x356269(0x1ce),{'id':this['id']});});});const _0xc87a74=new _0x390921(this[_0x1cd5e9(0x1f0)]),_0x5cd91c=new _0x24c960(this[_0x1cd5e9(0x1f0)]);_0x5cd91c[_0x1cd5e9(0x1ba)][_0x1cd5e9(0x207)](_0x1bce7b);const _0x255076=new _0x24c960(this[_0x1cd5e9(0x1f0)]);return _0x255076[_0x1cd5e9(0x1ba)][_0x1cd5e9(0x207)](_0x156d3d),_0xc87a74[_0x1cd5e9(0x1ea)][_0x1cd5e9(0x1f1)]([_0x5cd91c,_0x255076]),_0xcee5cd[_0x1cd5e9(0x207)](_0xc87a74),_0x514b90;}[_0x1aa884(0x1aa)](_0x2dc809,_0x4166cd){const _0x43cc5d=_0x1aa884,_0x5741ac=new _0xb0c0f2(_0x2dc809),_0xe6d5e7=_0x5741ac[_0x43cc5d(0x206)];return _0x5741ac[_0x43cc5d(0x201)]=_0x4166cd,_0x5741ac[_0x43cc5d(0x1c1)]({'on':{'keydown':_0xe6d5e7['to'](_0x32be4a=>{const _0x41f727=_0x43cc5d;_0x41f727(0x1c8)==_0x32be4a[_0x41f727(0x1d1)]&&this[_0x41f727(0x1af)](_0x5741ac);})}}),_0x5741ac;}[_0x1aa884(0x1e7)](_0x4a37d8,_0x5f40a0){const _0x5dc659=_0x1aa884,_0x42a933=new _0x33fd9f(_0x4a37d8);return _0x42a933[_0x5dc659(0x1c5)]({'icon':_0x17814b,'withText':!0x1,'tooltip':_0x404df8(_0x4a37d8,_0x5dc659(0x1c4))}),_0x42a933[_0x5dc659(0x1c1)]({'attributes':{'class':[_0x5dc659(0x1f2)]}}),_0x42a933['on'](_0x5dc659(0x1b2),()=>{const _0x52ba00=_0x5dc659;this[_0x52ba00(0x1af)](_0x5f40a0);}),_0x42a933;}[_0x1aa884(0x1af)](_0xc291fd){const _0x2f44ca=_0x1aa884,_0x25ba40=_0xc291fd[_0x2f44ca(0x1e3)][_0x2f44ca(0x201)]||'';this[_0x2f44ca(0x1d0)][_0x2f44ca(0x1c2)]=_0x25ba40,this[_0x2f44ca(0x1f6)]=!0x1,this[_0x2f44ca(0x205)](_0x2f44ca(0x1e9),{'id':this['id'],'title':_0x25ba40});}[_0x1aa884(0x1b9)](_0x483454,_0x39110b){const _0x3825d4=_0x1aa884,_0xd71df2=new _0x33fd9f(_0x483454);return _0xd71df2[_0x3825d4(0x1c5)]({'icon':_0x44a0de,'withText':!0x1,'tooltip':_0x404df8(_0x483454,_0x3825d4(0x1fc))}),_0xd71df2[_0x3825d4(0x1c1)]({'attributes':{'class':[_0x3825d4(0x1cc)]}}),_0xd71df2['on'](_0x3825d4(0x1b2),()=>{const _0x576d53=_0x3825d4;this[_0x576d53(0x1f6)]=!0x1,_0x39110b[_0x576d53(0x201)]=this[_0x576d53(0x1d0)][_0x576d53(0x1c2)]||'',this[_0x576d53(0x205)](_0x576d53(0x1ae));}),_0xd71df2;}[_0x1aa884(0x1ee)](){const _0x53a979=_0x1aa884,_0x308e05=new _0x3a3a7d(_0x53a979(0x1b4));return _0x308e05[_0x53a979(0x1ab)]=!0x0,_0x308e05;}[_0x1aa884(0x1e6)](_0x443e94){const _0x522fee=_0x1aa884;return this[_0x522fee(0x1d0)]&&_0x522fee(0x1ef)==typeof this[_0x522fee(0x1d0)][_0x522fee(0x1c2)]&&this[_0x522fee(0x1d0)][_0x522fee(0x1c2)][_0x522fee(0x209)](_0x443e94)?{'title':!0x0}:null;}[_0x1aa884(0x203)](_0x12e40e){const _0x2ab86c=_0x1aa884;this[_0x2ab86c(0x1d0)][_0x2ab86c(0x203)](_0x12e40e);}}function _0x205a(){const _0x5ae45a=['ck-ai-chat-history__item-actions','ck-ai-chat-history__item-content','pinned','ck-ai-chat-history__item-title','ck-ai-chat-history__item--edit','setConversationPinned','ck-ai-chat-history__item-main-content','1987985GLSmwz','setTemplate','AI_CHAT_HISTORY_LOADING_RENAMING','listitem','AI_CHAT_HISTORY_EDIT_NAME','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','then','element','4WZzlhA','13882980obVBml','isMatching','_createAcceptEditButtonView','selectConversation','editConversationTitle','items','ck-ai-loader__text','1313802lqILSR','ck-ai-chat-history__item-check','_createSpinnerView','string','locale','addMany','ck-confirm-view-submit','focus','_createPinButtonView','span','isEdit','ck-ai-chat-history__item','11lxXKMu','ck-ai-chat-history__item-date','1966911yxnwsk','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_CANCEL','_createCheckView','ck-ai-loader','actions','1530648lBmVMc','value','ck-ai-chat-history__item--active','highlightText','18rdBmht','fire','bindTemplate','add','_createMenuDropdownView','match','updateTitle','withText','mainContent','_createEditInputView','isVisible','click','ck-hidden','edit:cancel','_commitEditInputValue','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-chat-history__item-check-container','execute','change:isEdit','tiny','buttonView','LOADING_LABELS','121ilugfb','AI_CHAT_HISTORY_PIN_BUTTON','_createCancelEditButtonView','children','panelView','ck-ai-chat-history__item-row','createCollection','AI_CHAT_HISTORY_LOADING_PINNING','panelPosition','loadingState','extendTemplate','text','AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_ACCEPT','set','div','updateLoadingState','Enter','label','1695128qclqaV','clear','ck-confirm-view-cancel','bind','removeConversation','5198DyEjkR','_titleView','key','AI_CHAT_HISTORY_LOADING_REMOVING','isOn','showConfirm'];_0x205a=function(){return _0x5ae45a;};return _0x205a();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5a8e(_0x1228a1,_0x551aa8){const _0x47372f=_0x4737();return _0x5a8e=function(_0x5a8e0f,_0x4a88dc){_0x5a8e0f=_0x5a8e0f-0xc5;let _0x12ae7c=_0x47372f[_0x5a8e0f];return _0x12ae7c;},_0x5a8e(_0x1228a1,_0x551aa8);}const _0x1d2108=_0x5a8e;(function(_0x388fd3,_0x376cdc){const _0x282162=_0x5a8e,_0x313edc=_0x388fd3();while(!![]){try{const _0x27ddcf=-parseInt(_0x282162(0xe2))/0x1+parseInt(_0x282162(0xc7))/0x2*(-parseInt(_0x282162(0xc8))/0x3)+parseInt(_0x282162(0xc9))/0x4*(parseInt(_0x282162(0xd9))/0x5)+parseInt(_0x282162(0xd3))/0x6+-parseInt(_0x282162(0xe3))/0x7+parseInt(_0x282162(0xc6))/0x8+-parseInt(_0x282162(0xd0))/0x9*(-parseInt(_0x282162(0xcc))/0xa);if(_0x27ddcf===_0x376cdc)break;else _0x313edc['push'](_0x313edc['shift']());}catch(_0x317e7f){_0x313edc['push'](_0x313edc['shift']());}}}(_0x4737,0x2928d));function _0x4737(){const _0x38f7a5=['ck-ai-chat-history__section','indexOf','isVisible','length','remove','40BtqttO','isMatching','div','_itemsListView','bindTemplate','itemsViews','set','find','filter','230207rNQWjQ','1655150kJIgbX','splice','removeItem','getItem','432376HiiTlX','1168mgRaJN','741ZWPTZA','105544qTONuE','items','ck-ai-chat-history__section-title','600NcuZXi','setTemplate','addMany','title','72666SEpHHM','highlightText','ck-hidden','179514faEong'];_0x4737=function(){return _0x38f7a5;};return _0x4737();}import{ListItemView as _0x83ee6b,View as _0x2faed6,ListView as _0x4e1daa}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x83ee6b{[_0x1d2108(0xcf)];[_0x1d2108(0xde)];[_0x1d2108(0xdc)];constructor(_0x250662,{title:_0x3e080f,items:_0x3f2745}){const _0x5a1d25=_0x1d2108;super(_0x250662);const _0x1881a9=this[_0x5a1d25(0xdd)];this[_0x5a1d25(0xdf)](_0x5a1d25(0xd6),!0x0),this[_0x5a1d25(0xcf)]=_0x3e080f,this[_0x5a1d25(0xde)]=_0x3f2745;const _0x4cdf5f=new _0x2faed6(_0x250662);_0x4cdf5f[_0x5a1d25(0xcd)]({'tag':_0x5a1d25(0xdb),'attributes':{'class':[_0x5a1d25(0xcb)]},'children':[this[_0x5a1d25(0xcf)]]}),this[_0x5a1d25(0xdc)]=new _0x4e1daa(_0x250662),this[_0x5a1d25(0xdc)][_0x5a1d25(0xca)][_0x5a1d25(0xce)](this[_0x5a1d25(0xde)]),this[_0x5a1d25(0xcd)]({'tag':'li','attributes':{'class':[_0x5a1d25(0xd4),_0x1881a9['if'](_0x5a1d25(0xd6),_0x5a1d25(0xd2),_0x3cecd1=>!_0x3cecd1)]},'children':[_0x4cdf5f,this[_0x5a1d25(0xdc)]]});}[_0x1d2108(0xe1)](_0x3d0ec5){const _0x36bdb5=_0x1d2108,_0x192918=this[_0x36bdb5(0xde)][_0x36bdb5(0xd7)];let _0x37c59d=0x0;for(const _0x166948 of this[_0x36bdb5(0xde)]){if(_0x3d0ec5){const _0x3a7b22=_0x166948[_0x36bdb5(0xda)](_0x3d0ec5);_0x166948[_0x36bdb5(0xd6)]=!!_0x3a7b22,_0x166948[_0x36bdb5(0xd1)](_0x3d0ec5);}else _0x166948[_0x36bdb5(0xd6)]=!0x0,_0x166948[_0x36bdb5(0xd1)](null);_0x166948[_0x36bdb5(0xd6)]&&_0x37c59d++;}return this[_0x36bdb5(0xd6)]=_0x37c59d>0x0,{'resultsCount':_0x37c59d,'totalItemsCount':_0x192918};}[_0x1d2108(0xc5)](_0x3db355){const _0x4502d1=_0x1d2108;return this[_0x4502d1(0xde)][_0x4502d1(0xe0)](_0x121916=>_0x121916['id']===_0x3db355);}[_0x1d2108(0xe5)](_0x3e2f42){const _0x17e3fd=_0x1d2108,_0x5f3514=this[_0x17e3fd(0xde)][_0x17e3fd(0xd5)](_0x3e2f42);-0x1!==_0x5f3514&&(this[_0x17e3fd(0xde)][_0x17e3fd(0xe4)](_0x5f3514,0x1),this[_0x17e3fd(0xdc)][_0x17e3fd(0xca)][_0x17e3fd(0xd8)](_0x3e2f42));}}
23
+ function _0x4e52(_0x31c820,_0x3221c4){const _0x2cf295=_0x2cf2();return _0x4e52=function(_0x4e522e,_0x11b506){_0x4e522e=_0x4e522e-0xa6;let _0x37ad95=_0x2cf295[_0x4e522e];return _0x37ad95;},_0x4e52(_0x31c820,_0x3221c4);}const _0x464f54=_0x4e52;(function(_0x15f77c,_0x1f4b2d){const _0x23ef07=_0x4e52,_0x5b4e70=_0x15f77c();while(!![]){try{const _0x4e2969=-parseInt(_0x23ef07(0xc4))/0x1+-parseInt(_0x23ef07(0xbe))/0x2*(-parseInt(_0x23ef07(0xbf))/0x3)+parseInt(_0x23ef07(0xc8))/0x4*(-parseInt(_0x23ef07(0xaf))/0x5)+parseInt(_0x23ef07(0xb8))/0x6*(-parseInt(_0x23ef07(0xc5))/0x7)+-parseInt(_0x23ef07(0xbd))/0x8*(-parseInt(_0x23ef07(0xaa))/0x9)+-parseInt(_0x23ef07(0xb9))/0xa*(-parseInt(_0x23ef07(0xb4))/0xb)+parseInt(_0x23ef07(0xb2))/0xc;if(_0x4e2969===_0x1f4b2d)break;else _0x5b4e70['push'](_0x5b4e70['shift']());}catch(_0x406e44){_0x5b4e70['push'](_0x5b4e70['shift']());}}}(_0x2cf2,0xb58b2));import{ListItemView as _0xf39877,View as _0x53e44a,ListView as _0x7480b7}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0xf39877{[_0x464f54(0xb0)];[_0x464f54(0xad)];[_0x464f54(0xba)];constructor(_0x2418b2,{title:_0x3fc7be,items:_0x23fcc5}){const _0x1b324d=_0x464f54;super(_0x2418b2);const _0x138796=this[_0x1b324d(0xbc)];this[_0x1b324d(0xc6)](_0x1b324d(0xa6),!0x0),this[_0x1b324d(0xb0)]=_0x3fc7be,this[_0x1b324d(0xad)]=_0x23fcc5;const _0x4c9f0f=new _0x53e44a(_0x2418b2);_0x4c9f0f[_0x1b324d(0xae)]({'tag':_0x1b324d(0xb6),'attributes':{'class':[_0x1b324d(0xc3)]},'children':[this[_0x1b324d(0xb0)]]}),this[_0x1b324d(0xba)]=new _0x7480b7(_0x2418b2),this[_0x1b324d(0xba)][_0x1b324d(0xc1)][_0x1b324d(0xbb)](this[_0x1b324d(0xad)]),this[_0x1b324d(0xae)]({'tag':'li','attributes':{'class':[_0x1b324d(0xa9),_0x138796['if'](_0x1b324d(0xa6),_0x1b324d(0xb1),_0x443e1f=>!_0x443e1f)]},'children':[_0x4c9f0f,this[_0x1b324d(0xba)]]});}[_0x464f54(0xab)](_0x48e787){const _0x52a1c4=_0x464f54,_0x4c8141=this[_0x52a1c4(0xad)][_0x52a1c4(0xa7)];let _0x2ad279=0x0;for(const _0x2e7935 of this[_0x52a1c4(0xad)]){if(_0x48e787){const _0x36698a=_0x2e7935[_0x52a1c4(0xac)](_0x48e787);_0x2e7935[_0x52a1c4(0xa6)]=!!_0x36698a,_0x2e7935[_0x52a1c4(0xb7)](_0x48e787);}else _0x2e7935[_0x52a1c4(0xa6)]=!0x0,_0x2e7935[_0x52a1c4(0xb7)](null);_0x2e7935[_0x52a1c4(0xa6)]&&_0x2ad279++;}return this[_0x52a1c4(0xa6)]=_0x2ad279>0x0,{'resultsCount':_0x2ad279,'totalItemsCount':_0x4c8141};}[_0x464f54(0xc7)](_0x267ed1){const _0x47c1b1=_0x464f54;return this[_0x47c1b1(0xad)][_0x47c1b1(0xc0)](_0x19f2ee=>_0x19f2ee['id']===_0x267ed1);}[_0x464f54(0xc2)](_0x565553){const _0x421a2f=_0x464f54,_0x13cf9f=this[_0x421a2f(0xad)][_0x421a2f(0xb3)](_0x565553);-0x1!==_0x13cf9f&&(this[_0x421a2f(0xad)][_0x421a2f(0xa8)](_0x13cf9f,0x1),this[_0x421a2f(0xba)][_0x421a2f(0xc1)][_0x421a2f(0xb5)](_0x565553));}}function _0x2cf2(){const _0x5367bb=['4zaHmKo','isVisible','length','splice','ck-ai-chat-history__section','12201831WfgFeH','filter','isMatching','itemsViews','setTemplate','4485815GXBOeP','title','ck-hidden','2345724DarIIy','indexOf','1625921JpOctP','remove','div','highlightText','541722bhnsJs','10VCcIAA','_itemsListView','addMany','bindTemplate','8cvJOgM','1943042fXZlOQ','3GKQyIK','find','items','removeItem','ck-ai-chat-history__section-title','126933mxhWhD','70HJtWDy','set','getItem'];_0x2cf2=function(){return _0x5367bb;};return _0x2cf2();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe171a1=_0x31c1;(function(_0x59387f,_0x142e94){const _0x54bced=_0x31c1,_0xe653aa=_0x59387f();while(!![]){try{const _0x4e9c75=-parseInt(_0x54bced(0xc2))/0x1*(parseInt(_0x54bced(0xe2))/0x2)+-parseInt(_0x54bced(0x11a))/0x3+-parseInt(_0x54bced(0xcd))/0x4*(-parseInt(_0x54bced(0xf0))/0x5)+-parseInt(_0x54bced(0x10e))/0x6*(parseInt(_0x54bced(0xdd))/0x7)+-parseInt(_0x54bced(0xfd))/0x8+-parseInt(_0x54bced(0x114))/0x9*(-parseInt(_0x54bced(0x108))/0xa)+parseInt(_0x54bced(0xf2))/0xb;if(_0x4e9c75===_0x142e94)break;else _0xe653aa['push'](_0xe653aa['shift']());}catch(_0x38000c){_0xe653aa['push'](_0xe653aa['shift']());}}}(_0x17fc,0xa9e49));function _0x17fc(){const _0x29f665=['errorView','_refreshSearch','change:hasItems','change:errorMessage','ltr','245WnGlfa','delegate','20172757bNtRUm','push','fieldView','addMany','updateLoadingState','element','updateHistoryItemsWithCategories','updateItemLoadingState','extendTemplate','AI_CHAT_HISTORY_SEARCH_LABEL','openChat','10623368PVojUv','_createSearchView','ck-ai-chat-history__empty-message','indexOf','bindTemplate','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:isLoading','itemsViews','isLoading','ck-rounded-corners','execute','300iNyizS','length','getItem','title','_updateViewVisibility','render','6qXzTgL','skeletonView','ck-reset_all','remove','clear','ck-ai-chat-history','78660ZMUfVk','errorMessage','ck-ai-header\x20ck-ai-header_history','isSearchViewVisible','some','add','8943UpSLvj','bind','_createListItemViews','removeItem','9gWPhpV','aiHistory','resizeButton','isEmptyViewVisible','ck-ai-chat-error','fire','updateTitle','div','ck-ai-chat__start-conversation','sections','AI_CHAT_LABEL_NEW_CHAT','19816eZPXuc','splice','searchView','setTemplate','value','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','sectionsView','updateItemTitle','removeHistoryItem','children','isVisible','locale','_createErrorView','ck-hidden','search','ck-ai-chat-history__content','829661qmsPdF','_createSkeletonView','set','ck-ai-chat-error__dismiss-button','emptyView','43006KiRfjD','ck-ai-chat-history__empty','isMaximized','items','AI_CHAT_HISTORY_HEADING','hasItems','queryView','AI_CHAT_HISTORY_EMPTY_MESSAGE','_createEmptyStateView'];_0x17fc=function(){return _0x29f665;};return _0x17fc();}import{View as _0x3700fa,SearchTextView as _0x497a96,FormHeaderView as _0x3cb696,ButtonView as _0x1dbc2f}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x92aa4b,IconCancel as _0x1930d2,IconPlus as _0x2dcceb}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x790187}from'./aichathistorysectionlistview.js';function _0x31c1(_0x563ecc,_0x47bcbe){const _0x17fcc4=_0x17fc();return _0x31c1=function(_0x31c149,_0x3b6ae8){_0x31c149=_0x31c149-0xc2;let _0xa154e3=_0x17fcc4[_0x31c149];return _0xa154e3;},_0x31c1(_0x563ecc,_0x47bcbe);}import{AIChatHistoryListView as _0x3ba45f}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x1e3c53}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x4e08e0}from'../aichathistoryui.js';import{AISkeletonView as _0x4a2421,SKELETON_DEFINITIONS as _0xee8781}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x59e1dc}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x49f1ca}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x3700fa{[_0xe171a1(0xcf)];[_0xe171a1(0xeb)];[_0xe171a1(0x10f)];[_0xe171a1(0xe1)];[_0xe171a1(0xd3)];[_0xe171a1(0xc4)];constructor(_0x131f73,_0x38fc54){const _0x1be863=_0xe171a1;super(_0x131f73),this[_0x1be863(0xdf)](_0x1be863(0xe7),!0x1),this[_0x1be863(0xdf)](_0x1be863(0x105),!0x0),this[_0x1be863(0xdf)](_0x1be863(0x115),''),this[_0x1be863(0xdf)](_0x1be863(0xe4),!0x1),this[_0x1be863(0xdf)](_0x1be863(0x117),!0x1),this[_0x1be863(0xdf)](_0x1be863(0xc5),!0x1);const _0x46427=new _0x3cb696(_0x131f73,{'label':_0x49f1ca(_0x131f73,_0x1be863(0xe6)),'icon':_0x92aa4b,'class':_0x1be863(0x116)});_0x38fc54&&(this[_0x1be863(0xc4)]=_0x59e1dc(_0x131f73,this),_0x46427[_0x1be863(0xd6)][_0x1be863(0x119)](this[_0x1be863(0xc4)])),this[_0x1be863(0xd3)]=new _0x790187(_0x131f73,[]),this[_0x1be863(0xd3)][_0x1be863(0xf1)](..._0x4e08e0)['to'](this),this[_0x1be863(0xeb)]=this[_0x1be863(0xd9)](),this[_0x1be863(0x10f)]=this[_0x1be863(0xde)](),this[_0x1be863(0xe1)]=this[_0x1be863(0xea)](),this[_0x1be863(0xcf)]=this[_0x1be863(0xfe)](),this['on'](_0x1be863(0x103),()=>this[_0x1be863(0x10c)]()),this['on'](_0x1be863(0xed),()=>this[_0x1be863(0x10c)]()),this['on'](_0x1be863(0xee),()=>this[_0x1be863(0x10c)]()),this[_0x1be863(0xd0)]({'tag':_0x1be863(0xc9),'attributes':{'class':['ck',_0x1be863(0x110),_0x1be863(0x113),_0x1be863(0x106)],'dir':_0x1be863(0xef)},'children':[_0x46427,{'tag':_0x1be863(0xc9),'attributes':{'class':[_0x1be863(0xdc)]},'children':[this[_0x1be863(0x10f)],this[_0x1be863(0xeb)],this[_0x1be863(0xe1)],this[_0x1be863(0xcf)]]}]});}[_0xe171a1(0x10c)](){const _0x4184a1=_0xe171a1;this[_0x4184a1(0x117)]=!this[_0x4184a1(0x105)]&&this[_0x4184a1(0xe7)]&&!this[_0x4184a1(0x115)],this[_0x4184a1(0xc5)]=!this[_0x4184a1(0x105)]&&!this[_0x4184a1(0xe7)]&&!this[_0x4184a1(0x115)];}[_0xe171a1(0xfe)](){const _0x4f9b6b=_0xe171a1,_0x29e309=new _0x497a96(this[_0x4f9b6b(0xd8)],{'filteredView':this[_0x4f9b6b(0xd3)],'queryView':{'label':_0x49f1ca(this[_0x4f9b6b(0xd8)],_0x4f9b6b(0xfb))},'infoView':{'text':{'notFound':{'primary':_0xacb6e1=>_0x49f1ca(this[_0x4f9b6b(0xd8)],_0x4f9b6b(0x102),_0xacb6e1),'secondary':_0x49f1ca(this[_0x4f9b6b(0xd8)],_0x4f9b6b(0xd2))}}}});return _0x29e309['on'](_0x4f9b6b(0x10d),()=>{const _0x59ce9d=_0x4f9b6b;this[_0x59ce9d(0xcf)][_0x59ce9d(0xd6)][_0x59ce9d(0x119)](this[_0x59ce9d(0xeb)],0x1);}),_0x29e309[_0x4f9b6b(0xfa)]({'attributes':{'class':[this[_0x4f9b6b(0x101)]['if'](_0x4f9b6b(0x117),_0x4f9b6b(0xda),_0x3417d0=>!_0x3417d0)]}}),_0x29e309;}[_0xe171a1(0xde)](){const _0x2c28e9=_0xe171a1,_0x1ea721=new _0x4a2421(this[_0x2c28e9(0xd8)],_0xee8781[_0x2c28e9(0xc3)]);return _0x1ea721[_0x2c28e9(0xfa)]({'attributes':{'class':[this[_0x2c28e9(0x101)]['if'](_0x2c28e9(0x105),_0x2c28e9(0xda),_0x5bbcff=>!_0x5bbcff)]}}),_0x1ea721;}[_0xe171a1(0xd9)](){const _0x1fbd40=_0xe171a1,_0x1246f=new _0x3700fa(this[_0x1fbd40(0xd8)]),_0x369456=new _0x1dbc2f(this[_0x1fbd40(0xd8)]);return _0x369456[_0x1fbd40(0xdf)]({'withText':!0x1,'icon':_0x1930d2,'class':_0x1fbd40(0xe0)}),_0x369456[_0x1fbd40(0x11b)](_0x1fbd40(0xd7))['to'](this,_0x1fbd40(0xe7),_0x43ee92=>!!_0x43ee92),_0x369456['on'](_0x1fbd40(0x107),()=>{const _0x1679ad=_0x1fbd40;this[_0x1679ad(0x115)]='';}),_0x1246f[_0x1fbd40(0xd0)]({'tag':_0x1fbd40(0xc9),'attributes':{'class':['ck',_0x1fbd40(0xc6),this[_0x1fbd40(0x101)]['if'](_0x1fbd40(0x115),_0x1fbd40(0xda),_0x1fd21f=>!_0x1fd21f)]},'children':[{'tag':'p','children':[{'text':this[_0x1fbd40(0x101)]['to'](_0x1fbd40(0x115))}]},_0x369456]}),_0x1246f;}[_0xe171a1(0xea)](){const _0x37a22d=_0xe171a1,_0x5b608d=new _0x1dbc2f(this[_0x37a22d(0xd8)]);_0x5b608d[_0x37a22d(0xdf)]({'label':_0x49f1ca(this[_0x37a22d(0xd8)],_0x37a22d(0xcc)),'withText':!0x0,'icon':_0x2dcceb,'class':_0x37a22d(0xca)}),_0x5b608d['on'](_0x37a22d(0x107),()=>{const _0x5c5601=_0x37a22d;this[_0x5c5601(0xc7)](_0x5c5601(0xfc));});const _0x3aecc1=new _0x3700fa(this[_0x37a22d(0xd8)]);return _0x3aecc1[_0x37a22d(0xd0)]({'tag':_0x37a22d(0xc9),'attributes':{'class':[_0x37a22d(0xe3),this[_0x37a22d(0x101)]['if'](_0x37a22d(0xc5),_0x37a22d(0xda),_0x2ba0fb=>!_0x2ba0fb)]},'children':[{'tag':'p','attributes':{'class':[_0x37a22d(0xff)]},'children':[_0x49f1ca(this[_0x37a22d(0xd8)],_0x37a22d(0xe9))]},_0x5b608d]}),_0x3aecc1;}[_0xe171a1(0x11c)](_0x18b4da,_0x1e24a4){const _0x1f39b6=_0xe171a1,_0x57c2b0=[];for(const _0x1838b9 of _0x18b4da){const _0xdb7545=new _0x1e3c53(_0x1e24a4,_0x1838b9);_0xdb7545[_0x1f39b6(0xf1)](..._0x4e08e0)['to'](this),_0x57c2b0[_0x1f39b6(0xf3)](_0xdb7545);}return _0x57c2b0;}[_0xe171a1(0xf8)](_0x1e78ef){const _0x54bf5e=_0xe171a1,_0x550e27=this[_0x54bf5e(0xd8)]||'en',_0x1c0d76=[];for(const _0x4e39e6 of _0x1e78ef){const _0x4ee345=this[_0x54bf5e(0x11c)](_0x4e39e6[_0x54bf5e(0xe5)],_0x550e27);_0x1c0d76[_0x54bf5e(0xf3)](new _0x3ba45f(_0x550e27,{'title':_0x4e39e6[_0x54bf5e(0x10b)],'items':_0x4ee345}));}this[_0x54bf5e(0xd3)][_0x54bf5e(0xcb)]=_0x1c0d76,this[_0x54bf5e(0xd3)][_0x54bf5e(0xe5)][_0x54bf5e(0x112)](),this[_0x54bf5e(0xd3)][_0x54bf5e(0xe5)][_0x54bf5e(0xf5)](_0x1c0d76),this[_0x54bf5e(0xe7)]=_0x1e78ef[_0x54bf5e(0x118)](_0x1ff9d3=>_0x1ff9d3[_0x54bf5e(0xe5)][_0x54bf5e(0x109)]>0x0),this[_0x54bf5e(0xec)]();}[_0xe171a1(0xd5)](_0x55d4dd){const _0x1fd596=_0xe171a1;for(const _0x37fd4d of this[_0x1fd596(0xd3)][_0x1fd596(0xcb)]){const _0x557815=_0x37fd4d[_0x1fd596(0x10a)](_0x55d4dd);if(_0x557815){if(_0x37fd4d[_0x1fd596(0x11d)](_0x557815),0x0===_0x37fd4d[_0x1fd596(0x104)][_0x1fd596(0x109)]){const _0x1d580c=this[_0x1fd596(0xd3)][_0x1fd596(0xcb)][_0x1fd596(0x100)](_0x37fd4d);-0x1!==_0x1d580c&&(this[_0x1fd596(0xd3)][_0x1fd596(0xcb)][_0x1fd596(0xce)](_0x1d580c,0x1),this[_0x1fd596(0xd3)][_0x1fd596(0xe5)][_0x1fd596(0x111)](_0x37fd4d));}this[_0x1fd596(0xe7)]=this[_0x1fd596(0xd3)][_0x1fd596(0xcb)][_0x1fd596(0x109)]>0x0,this[_0x1fd596(0xec)]();break;}}}[_0xe171a1(0xd4)](_0x5e7566,_0x32d94a){const _0x409ebb=_0xe171a1;for(const _0x138c76 of this[_0x409ebb(0xd3)][_0x409ebb(0xcb)]){const _0x2db4b8=_0x138c76[_0x409ebb(0x10a)](_0x5e7566);if(_0x2db4b8){_0x2db4b8[_0x409ebb(0xc8)](_0x32d94a);break;}}}[_0xe171a1(0xf9)](_0x36527d,_0x263117,_0x1409ce){const _0x1ce8b4=_0xe171a1;for(const _0x2b807a of this[_0x1ce8b4(0xd3)][_0x1ce8b4(0xcb)]){const _0x413204=_0x2b807a[_0x1ce8b4(0x10a)](_0x36527d);if(_0x413204){_0x413204[_0x1ce8b4(0xf6)](_0x263117,_0x1409ce);break;}}}[_0xe171a1(0xec)](){const _0x1a7105=_0xe171a1;if(this[_0x1a7105(0xe7)]){const _0x5a7317=this[_0x1a7105(0xcf)][_0x1a7105(0xe8)][_0x1a7105(0xf4)]?.[_0x1a7105(0xf7)]?.[_0x1a7105(0xd1)]||'';this[_0x1a7105(0xcf)][_0x1a7105(0xdb)](_0x5a7317);}}}
23
+ const _0x449955=_0x3790;(function(_0x3cc9fc,_0x5d6bdd){const _0x1b30ee=_0x3790,_0x26143d=_0x3cc9fc();while(!![]){try{const _0x2994cd=parseInt(_0x1b30ee(0x1b2))/0x1*(parseInt(_0x1b30ee(0x19e))/0x2)+-parseInt(_0x1b30ee(0x19c))/0x3*(-parseInt(_0x1b30ee(0x1c6))/0x4)+parseInt(_0x1b30ee(0x1b9))/0x5+parseInt(_0x1b30ee(0x1bb))/0x6*(parseInt(_0x1b30ee(0x178))/0x7)+-parseInt(_0x1b30ee(0x17f))/0x8*(parseInt(_0x1b30ee(0x184))/0x9)+-parseInt(_0x1b30ee(0x1bf))/0xa+parseInt(_0x1b30ee(0x19b))/0xb*(parseInt(_0x1b30ee(0x1a9))/0xc);if(_0x2994cd===_0x5d6bdd)break;else _0x26143d['push'](_0x26143d['shift']());}catch(_0x15b1ac){_0x26143d['push'](_0x26143d['shift']());}}}(_0x47ee,0xa50a5));function _0x3790(_0x464cf1,_0x5c5ad5){const _0x47ee88=_0x47ee();return _0x3790=function(_0x379000,_0x1856b6){_0x379000=_0x379000-0x178;let _0x1d7a19=_0x47ee88[_0x379000];return _0x1d7a19;},_0x3790(_0x464cf1,_0x5c5ad5);}import{View as _0x2b3381,SearchTextView as _0xd73dad,FormHeaderView as _0x1eaaf5,ButtonView as _0x486c4a}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x4a6f62,IconCancel as _0x3590b1,IconPlus as _0x3eba57}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2609a4}from'./aichathistorysectionlistview.js';function _0x47ee(){const _0x54d2e9=['isMaximized','fieldView','change:errorMessage','div','AI_CHAT_HISTORY_SEARCH_LABEL','4bMXEJL','ck-rounded-corners','_createSearchView','errorView','hasItems','remove','openChat','bind','ltr','updateLoadingState','search','addMany','AI_CHAT_HISTORY_EMPTY_MESSAGE','change:hasItems','isVisible','8761781JSYXiM','bindTemplate','locale','removeHistoryItem','ck-ai-chat-history__empty','add','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','288pYZekI','_createErrorView','errorMessage','itemsViews','aiHistory','278811JZCKDT','delegate','updateItemLoadingState','ck-ai-header\x20ck-ai-header_history','ck-hidden','ck-ai-chat__start-conversation','children','ck-ai-chat-error','isEmptyViewVisible','render','AI_CHAT_LABEL_NEW_CHAT','execute','value','ck-ai-chat-history','updateItemTitle','items','clear','ck-ai-chat-error__dismiss-button','fire','ck-reset_all','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','updateTitle','length','2442737IxjDtH','684837ZAEzjt','queryView','14gSvYBf','isSearchViewVisible','indexOf','set','ck-ai-chat-history__empty-message','_createListItemViews','_refreshSearch','element','updateHistoryItemsWithCategories','change:isLoading','skeletonView','24DIowEQ','_createSkeletonView','removeItem','splice','some','extendTemplate','_updateViewVisibility','ck-ai-chat-history__content','sections','122427qwbdYI','resizeButton','searchView','getItem','emptyView','_createEmptyStateView','isLoading','119550WrLRKo','setTemplate','6QMvlHF','AI_CHAT_HISTORY_HEADING','title','push','10137460YoIDSZ','sectionsView'];_0x47ee=function(){return _0x54d2e9;};return _0x47ee();}import{AIChatHistoryListView as _0x16cbcb}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x348538}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x458124}from'../aichathistoryui.js';import{AISkeletonView as _0x41e7b5,SKELETON_DEFINITIONS as _0x2ca309}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x44ff7f}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x269980}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x2b3381{[_0x449955(0x1b4)];[_0x449955(0x1c9)];[_0x449955(0x1a8)];[_0x449955(0x1b6)];[_0x449955(0x1c0)];[_0x449955(0x1b3)];constructor(_0x173123,_0x29d179){const _0x12a377=_0x449955;super(_0x173123),this[_0x12a377(0x1a1)](_0x12a377(0x1ca),!0x1),this[_0x12a377(0x1a1)](_0x12a377(0x1b8),!0x0),this[_0x12a377(0x1a1)](_0x12a377(0x181),''),this[_0x12a377(0x1a1)](_0x12a377(0x1c1),!0x1),this[_0x12a377(0x1a1)](_0x12a377(0x19f),!0x1),this[_0x12a377(0x1a1)](_0x12a377(0x18c),!0x1);const _0x5d7888=new _0x1eaaf5(_0x173123,{'label':_0x269980(_0x173123,_0x12a377(0x1bc)),'icon':_0x4a6f62,'class':_0x12a377(0x187)});_0x29d179&&(this[_0x12a377(0x1b3)]=_0x44ff7f(_0x173123,this),_0x5d7888[_0x12a377(0x18a)][_0x12a377(0x17d)](this[_0x12a377(0x1b3)])),this[_0x12a377(0x1c0)]=new _0x2609a4(_0x173123,[]),this[_0x12a377(0x1c0)][_0x12a377(0x185)](..._0x458124)['to'](this),this[_0x12a377(0x1c9)]=this[_0x12a377(0x180)](),this[_0x12a377(0x1a8)]=this[_0x12a377(0x1aa)](),this[_0x12a377(0x1b6)]=this[_0x12a377(0x1b7)](),this[_0x12a377(0x1b4)]=this[_0x12a377(0x1c8)](),this['on'](_0x12a377(0x1a7),()=>this[_0x12a377(0x1af)]()),this['on'](_0x12a377(0x1d3),()=>this[_0x12a377(0x1af)]()),this['on'](_0x12a377(0x1c3),()=>this[_0x12a377(0x1af)]()),this[_0x12a377(0x1ba)]({'tag':_0x12a377(0x1c4),'attributes':{'class':['ck',_0x12a377(0x197),_0x12a377(0x191),_0x12a377(0x1c7)],'dir':_0x12a377(0x1ce)},'children':[_0x5d7888,{'tag':_0x12a377(0x1c4),'attributes':{'class':[_0x12a377(0x1b0)]},'children':[this[_0x12a377(0x1a8)],this[_0x12a377(0x1c9)],this[_0x12a377(0x1b6)],this[_0x12a377(0x1b4)]]}]});}[_0x449955(0x1af)](){const _0x25decc=_0x449955;this[_0x25decc(0x19f)]=!this[_0x25decc(0x1b8)]&&this[_0x25decc(0x1ca)]&&!this[_0x25decc(0x181)],this[_0x25decc(0x18c)]=!this[_0x25decc(0x1b8)]&&!this[_0x25decc(0x1ca)]&&!this[_0x25decc(0x181)];}[_0x449955(0x1c8)](){const _0x478069=_0x449955,_0x2538c3=new _0xd73dad(this[_0x478069(0x17a)],{'filteredView':this[_0x478069(0x1c0)],'queryView':{'label':_0x269980(this[_0x478069(0x17a)],_0x478069(0x1c5))},'infoView':{'text':{'notFound':{'primary':_0x35075f=>_0x269980(this[_0x478069(0x17a)],_0x478069(0x17e),_0x35075f),'secondary':_0x269980(this[_0x478069(0x17a)],_0x478069(0x198))}}}});return _0x2538c3['on'](_0x478069(0x18d),()=>{const _0x53c016=_0x478069;this[_0x53c016(0x1b4)][_0x53c016(0x18a)][_0x53c016(0x17d)](this[_0x53c016(0x1c9)],0x1);}),_0x2538c3[_0x478069(0x1ae)]({'attributes':{'class':[this[_0x478069(0x179)]['if'](_0x478069(0x19f),_0x478069(0x188),_0x84a322=>!_0x84a322)]}}),_0x2538c3;}[_0x449955(0x1aa)](){const _0x18da1d=_0x449955,_0x189526=new _0x41e7b5(this[_0x18da1d(0x17a)],_0x2ca309[_0x18da1d(0x183)]);return _0x189526[_0x18da1d(0x1ae)]({'attributes':{'class':[this[_0x18da1d(0x179)]['if'](_0x18da1d(0x1b8),_0x18da1d(0x188),_0x337480=>!_0x337480)]}}),_0x189526;}[_0x449955(0x180)](){const _0x1fc9f5=_0x449955,_0x1891b4=new _0x2b3381(this[_0x1fc9f5(0x17a)]),_0x24e396=new _0x486c4a(this[_0x1fc9f5(0x17a)]);return _0x24e396[_0x1fc9f5(0x1a1)]({'withText':!0x1,'icon':_0x3590b1,'class':_0x1fc9f5(0x195)}),_0x24e396[_0x1fc9f5(0x1cd)](_0x1fc9f5(0x1d4))['to'](this,_0x1fc9f5(0x1ca),_0x6c361e=>!!_0x6c361e),_0x24e396['on'](_0x1fc9f5(0x18f),()=>{const _0x4c9f55=_0x1fc9f5;this[_0x4c9f55(0x181)]='';}),_0x1891b4[_0x1fc9f5(0x1ba)]({'tag':_0x1fc9f5(0x1c4),'attributes':{'class':['ck',_0x1fc9f5(0x18b),this[_0x1fc9f5(0x179)]['if'](_0x1fc9f5(0x181),_0x1fc9f5(0x188),_0x1d9cf5=>!_0x1d9cf5)]},'children':[{'tag':'p','children':[{'text':this[_0x1fc9f5(0x179)]['to'](_0x1fc9f5(0x181))}]},_0x24e396]}),_0x1891b4;}[_0x449955(0x1b7)](){const _0x56d7b6=_0x449955,_0x152594=new _0x486c4a(this[_0x56d7b6(0x17a)]);_0x152594[_0x56d7b6(0x1a1)]({'label':_0x269980(this[_0x56d7b6(0x17a)],_0x56d7b6(0x18e)),'withText':!0x0,'icon':_0x3eba57,'class':_0x56d7b6(0x189)}),_0x152594['on'](_0x56d7b6(0x18f),()=>{const _0x4c6ac2=_0x56d7b6;this[_0x4c6ac2(0x196)](_0x4c6ac2(0x1cc));});const _0x579ef7=new _0x2b3381(this[_0x56d7b6(0x17a)]);return _0x579ef7[_0x56d7b6(0x1ba)]({'tag':_0x56d7b6(0x1c4),'attributes':{'class':[_0x56d7b6(0x17c),this[_0x56d7b6(0x179)]['if'](_0x56d7b6(0x18c),_0x56d7b6(0x188),_0x8ffa0c=>!_0x8ffa0c)]},'children':[{'tag':'p','attributes':{'class':[_0x56d7b6(0x1a2)]},'children':[_0x269980(this[_0x56d7b6(0x17a)],_0x56d7b6(0x1d2))]},_0x152594]}),_0x579ef7;}[_0x449955(0x1a3)](_0x565010,_0x1f7012){const _0x96a1f1=_0x449955,_0x346bbd=[];for(const _0xb7df26 of _0x565010){const _0x5ca329=new _0x348538(_0x1f7012,_0xb7df26);_0x5ca329[_0x96a1f1(0x185)](..._0x458124)['to'](this),_0x346bbd[_0x96a1f1(0x1be)](_0x5ca329);}return _0x346bbd;}[_0x449955(0x1a6)](_0xf62f3c){const _0x4f65a7=_0x449955,_0x107ef4=this[_0x4f65a7(0x17a)]||'en',_0x497027=[];for(const _0x13a738 of _0xf62f3c){const _0x4b1fd1=this[_0x4f65a7(0x1a3)](_0x13a738[_0x4f65a7(0x193)],_0x107ef4);_0x497027[_0x4f65a7(0x1be)](new _0x16cbcb(_0x107ef4,{'title':_0x13a738[_0x4f65a7(0x1bd)],'items':_0x4b1fd1}));}this[_0x4f65a7(0x1c0)][_0x4f65a7(0x1b1)]=_0x497027,this[_0x4f65a7(0x1c0)][_0x4f65a7(0x193)][_0x4f65a7(0x194)](),this[_0x4f65a7(0x1c0)][_0x4f65a7(0x193)][_0x4f65a7(0x1d1)](_0x497027),this[_0x4f65a7(0x1ca)]=_0xf62f3c[_0x4f65a7(0x1ad)](_0x1a2390=>_0x1a2390[_0x4f65a7(0x193)][_0x4f65a7(0x19a)]>0x0),this[_0x4f65a7(0x1a4)]();}[_0x449955(0x17b)](_0x29e9d2){const _0x4747fb=_0x449955;for(const _0x375993 of this[_0x4747fb(0x1c0)][_0x4747fb(0x1b1)]){const _0x5b2576=_0x375993[_0x4747fb(0x1b5)](_0x29e9d2);if(_0x5b2576){if(_0x375993[_0x4747fb(0x1ab)](_0x5b2576),0x0===_0x375993[_0x4747fb(0x182)][_0x4747fb(0x19a)]){const _0x53ab7c=this[_0x4747fb(0x1c0)][_0x4747fb(0x1b1)][_0x4747fb(0x1a0)](_0x375993);-0x1!==_0x53ab7c&&(this[_0x4747fb(0x1c0)][_0x4747fb(0x1b1)][_0x4747fb(0x1ac)](_0x53ab7c,0x1),this[_0x4747fb(0x1c0)][_0x4747fb(0x193)][_0x4747fb(0x1cb)](_0x375993));}this[_0x4747fb(0x1ca)]=this[_0x4747fb(0x1c0)][_0x4747fb(0x1b1)][_0x4747fb(0x19a)]>0x0,this[_0x4747fb(0x1a4)]();break;}}}[_0x449955(0x192)](_0x33ad6d,_0x10c454){const _0x48e591=_0x449955;for(const _0x3a306b of this[_0x48e591(0x1c0)][_0x48e591(0x1b1)]){const _0x3fd4b1=_0x3a306b[_0x48e591(0x1b5)](_0x33ad6d);if(_0x3fd4b1){_0x3fd4b1[_0x48e591(0x199)](_0x10c454);break;}}}[_0x449955(0x186)](_0x9b8ade,_0x2bb20f,_0x35473e){const _0x21481e=_0x449955;for(const _0x11d278 of this[_0x21481e(0x1c0)][_0x21481e(0x1b1)]){const _0x545f8d=_0x11d278[_0x21481e(0x1b5)](_0x9b8ade);if(_0x545f8d){_0x545f8d[_0x21481e(0x1cf)](_0x2bb20f,_0x35473e);break;}}}[_0x449955(0x1a4)](){const _0x5f4c7c=_0x449955;if(this[_0x5f4c7c(0x1ca)]){const _0x2a60e4=this[_0x5f4c7c(0x1b4)][_0x5f4c7c(0x19d)][_0x5f4c7c(0x1c2)]?.[_0x5f4c7c(0x1a5)]?.[_0x5f4c7c(0x190)]||'';this[_0x5f4c7c(0x1b4)][_0x5f4c7c(0x1d0)](_0x2a60e4);}}}