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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsreply.js +1 -1
  6. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  7. package/src/aiassistant/aiassistantediting.js +1 -1
  8. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  9. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  10. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  11. package/src/aiassistant/ui/form/aiformview.js +1 -1
  12. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  13. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  14. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  15. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  16. package/src/aiballoon/aiballoon.js +1 -1
  17. package/src/aichat/aichat.js +1 -1
  18. package/src/aichat/aichatballoon.js +1 -1
  19. package/src/aichat/aichatcontroller.js +1 -1
  20. package/src/aichat/aichatui.js +1 -1
  21. package/src/aichat/model/aichatcontext.js +1 -1
  22. package/src/aichat/model/aichatconversation.js +1 -1
  23. package/src/aichat/ui/aichatballoonview.js +1 -1
  24. package/src/aichat/ui/aichatfeedview.js +1 -1
  25. package/src/aichat/ui/aichatheaderview.js +1 -1
  26. package/src/aichat/ui/aichatview.js +1 -1
  27. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  28. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  29. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  30. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  31. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  32. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  33. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  34. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  35. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  36. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  37. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  38. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  39. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  40. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  41. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  42. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  43. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  44. package/src/aichat/utils/eventnames.js +1 -1
  45. package/src/aichathistory/aichathistory.js +1 -1
  46. package/src/aichathistory/aichathistorycontroller.js +1 -1
  47. package/src/aichathistory/aichathistoryui.js +1 -1
  48. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  49. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  50. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  51. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  52. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  53. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  54. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  55. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  56. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  57. package/src/aicore/aiconnector.js +1 -1
  58. package/src/aicore/aiediting.js +1 -1
  59. package/src/aicore/model/aimodels.js +1 -1
  60. package/src/aicore/model/aireply.js +1 -1
  61. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  62. package/src/aicore/pipeline/airesponseparser.js +2 -2
  63. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  64. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  65. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  66. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  67. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  68. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  69. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  70. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  71. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  72. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  73. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  74. package/src/aicore/utils/documentrange.js +1 -1
  75. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  76. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  77. package/src/aicore/utils/htmlparser.js +1 -1
  78. package/src/aicore/utils/htmlstreamer.js +1 -1
  79. package/src/aicore/utils/scrollmanager.js +1 -1
  80. package/src/aieditorintegration/aieditorintegration.js +1 -1
  81. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  82. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  83. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  84. package/src/aiquickactions/aiquickactionsui.js +1 -1
  85. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  86. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  87. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  88. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  89. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  90. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  91. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  92. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  93. package/src/aireviewcore/aireviewcoreui.js +1 -1
  94. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  95. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  96. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  97. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  98. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  99. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  100. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  101. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  102. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  103. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  104. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  105. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  106. package/src/aireviewmode/aireviewmode.js +1 -1
  107. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  108. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  109. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  110. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  111. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  112. package/src/aitabs/aitabs.js +1 -1
  113. package/src/aitranslate/aitranslate.js +1 -1
  114. package/src/aitranslate/model/aitranslatecheck.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4eb3(){const _0x7216ae=['operation','updateItemTitle','loadItems','remove','setIsMaximized','error','updates','history','AI_CHAT_HISTORY_UNPIN_ACTION','9tzywYh','view','setDate','get','openChat','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','_aiChatController','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','_aiConnector','handleRemovedConversation','itemRemoved','_handleEditTitle','getItem','isPremiumPlugin','6907592PoYHDT','AI_CHAT_HISTORY_CATEGORY_PINNED','getItems','12439NayYAX','getMonth','pluginName','AI_CHAT_UNTITLED_CONVERSATION','isOfficialPlugin','getGroupId','2193OOIBbw','itemUpdated','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','locale','showError','length','loadConversation','AI_CHAT_HISTORY_PIN_ACTION','change:activeConversation','editConversationTitle','pin','title','_setIsMaximized','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','_updateHistoryItemsUI','init','_generateErrorMessage','getDate','unpin','updateItemLoadingState','_getCategorizedItems','toLocaleDateString','activateTab:history','rename','updateItems','6340agwZCF','1214459oApqyQ','activeConversation','plugins','resize','_handleSelectConversation','setLoadingSkeleton','removeHistoryItem','_showConversationHistory','AI_CHAT_HISTORY_CATEGORY_LATER','AI_CHAT_HISTORY_ERROR_GENERIC','getFullYear','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','itemId','items','3954mKnglW','map','selectConversation','AI_CHAT_HISTORY_CATEGORY_TODAY','activateTab','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','removeItem','resizeTabs','removeConversation','itemsLoaded','_handleHistoryErrorUI','3629118cwCIiR','_handleTogglePin','push','pinned','context','_handleRemove','requires','createdAt','setConversationPinned','AIChatHistoryController','listenTo','35972480mBBkSt','chat','_aiChatHistoryUi','_setItemLoading','updateItemPinned','resizedTabs','_clearItemLoading','3099635cecZAr'];_0x4eb3=function(){return _0x7216ae;};return _0x4eb3();}const _0x790357=_0x2006;function _0x2006(_0x5657b6,_0x20b3a5){const _0x4eb3d4=_0x4eb3();return _0x2006=function(_0x2006da,_0x2664a4){_0x2006da=_0x2006da-0x72;let _0x26a562=_0x4eb3d4[_0x2006da];return _0x26a562;},_0x2006(_0x5657b6,_0x20b3a5);}(function(_0x3d0f27,_0x158785){const _0x2902c0=_0x2006,_0x1bab88=_0x3d0f27();while(!![]){try{const _0xc801bf=parseInt(_0x2902c0(0xcf))/0x1+parseInt(_0x2902c0(0x82))/0x2+parseInt(_0x2902c0(0xb5))/0x3*(-parseInt(_0x2902c0(0xce))/0x4)+parseInt(_0x2902c0(0x94))/0x5+-parseInt(_0x2902c0(0x77))/0x6*(-parseInt(_0x2902c0(0xaf))/0x7)+parseInt(_0x2902c0(0xac))/0x8+parseInt(_0x2902c0(0x9e))/0x9*(-parseInt(_0x2902c0(0x8d))/0xa);if(_0xc801bf===_0x158785)break;else _0x1bab88['push'](_0x1bab88['shift']());}catch(_0x3b492f){_0x1bab88['push'](_0x1bab88['shift']());}}}(_0x4eb3,0xe2742));import{ContextPlugin as _0x378e0a}from'ckeditor5/src/core.js';import{AIConnector as _0x2526ce}from'../aicore/aiconnector.js';import{AIChatController as _0x2690a9}from'../aichat/aichatcontroller.js';import{AITabs as _0x37d95c}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x5678de}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x2c0586}from'./model/aichathistoryconversations.js';import{getTranslation as _0x278dbc}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x378e0a{[_0x790357(0xa6)];[_0x790357(0x8f)];[_0x790357(0xa4)];static get[_0x790357(0x88)](){return[_0x2526ce,_0x2690a9,_0x5678de,_0x37d95c];}static get[_0x790357(0xb1)](){const _0x3c6d94=_0x790357;return _0x3c6d94(0x8b);}static get[_0x790357(0xb3)](){return!0x0;}static get[_0x790357(0xab)](){return!0x0;}[_0x790357(0xc4)](){const _0x1ebbe5=_0x790357;this[_0x1ebbe5(0xa6)]=this[_0x1ebbe5(0x86)][_0x1ebbe5(0xd1)][_0x1ebbe5(0xa1)](_0x2526ce),this[_0x1ebbe5(0x8f)]=this[_0x1ebbe5(0x86)][_0x1ebbe5(0xd1)][_0x1ebbe5(0xa1)](_0x5678de),this[_0x1ebbe5(0xa4)]=this[_0x1ebbe5(0x86)][_0x1ebbe5(0xd1)][_0x1ebbe5(0xa1)](_0x2690a9);const _0xa000b0=this[_0x1ebbe5(0x86)][_0x1ebbe5(0xd1)][_0x1ebbe5(0xa1)](_0x37d95c);try{const _0x3ffbc8=this[_0x1ebbe5(0xa4)][_0x1ebbe5(0xb4)]();this[_0x1ebbe5(0x9c)]=new _0x2c0586({'connector':this[_0x1ebbe5(0xa6)],'group':_0x3ffbc8}),this[_0x1ebbe5(0x8c)](this[_0x1ebbe5(0x8f)],_0x1ebbe5(0x7f),(_0x3221ac,_0x51e2c8)=>{const _0x2624cd=_0x1ebbe5;this[_0x2624cd(0x90)](_0x51e2c8['id'],_0x2624cd(0x98)),this[_0x2624cd(0x87)](_0x51e2c8['id']);}),this[_0x1ebbe5(0x8c)](this[_0x1ebbe5(0x8f)],_0x1ebbe5(0xbe),(_0x551c3b,_0x2e47ae)=>{const _0x3d275f=_0x1ebbe5;this[_0x3d275f(0x90)](_0x2e47ae['id'],_0x3d275f(0xcc)),this[_0x3d275f(0xa9)](_0x2e47ae['id'],_0x2e47ae[_0x3d275f(0xc0)]);}),this[_0x1ebbe5(0x8c)](this[_0x1ebbe5(0x9c)],_0x1ebbe5(0xb6),(_0x166503,_0x2f8208)=>{const _0x4954e3=_0x1ebbe5;void 0x0!==_0x2f8208[_0x4954e3(0x9b)][_0x4954e3(0xc0)]&&this[_0x4954e3(0x8f)][_0x4954e3(0x96)](_0x2f8208[_0x4954e3(0x75)],_0x2f8208[_0x4954e3(0x9b)][_0x4954e3(0xc0)]),void 0x0!==_0x2f8208[_0x4954e3(0x9b)][_0x4954e3(0x85)]&&this[_0x4954e3(0xc3)](),this[_0x4954e3(0x93)](_0x2f8208[_0x4954e3(0x75)]);}),this[_0x1ebbe5(0x8c)](this[_0x1ebbe5(0x9c)],_0x1ebbe5(0xa8),(_0x32aefa,_0x4dcafd)=>{const _0x4bdd75=_0x1ebbe5;this[_0x4bdd75(0xa4)][_0x4bdd75(0xa7)](_0x4dcafd[_0x4bdd75(0x75)]),this[_0x4bdd75(0x8f)][_0x4bdd75(0xd5)](_0x4dcafd[_0x4bdd75(0x75)]),this[_0x4bdd75(0x93)](_0x4dcafd[_0x4bdd75(0x75)]);}),this[_0x1ebbe5(0x8c)](this[_0x1ebbe5(0x9c)],_0x1ebbe5(0x80),()=>{const _0x41f88a=_0x1ebbe5;this[_0x41f88a(0xc3)]();}),this[_0x1ebbe5(0x8c)](this[_0x1ebbe5(0x9c)],_0x1ebbe5(0x9a),(_0x5cc7ec,_0x54a5c4)=>{const _0xf9c33e=_0x1ebbe5;this[_0xf9c33e(0x81)](_0x54a5c4[_0xf9c33e(0x9a)],_0x54a5c4[_0xf9c33e(0x95)],_0x54a5c4[_0xf9c33e(0x75)]);}),this[_0x1ebbe5(0x8c)](this[_0x1ebbe5(0x8f)],_0x1ebbe5(0x79),(_0x3d7f45,_0x50709c)=>{const _0x28dc32=_0x1ebbe5;this[_0x28dc32(0xd3)](_0x50709c['id']);}),this[_0x1ebbe5(0x8c)](this[_0x1ebbe5(0x8f)],_0x1ebbe5(0x8a),(_0x57df8b,_0x10d65e)=>{const _0x599659=_0x1ebbe5,_0x29fce4=_0x10d65e[_0x599659(0x85)]?_0x599659(0xbf):_0x599659(0xc7);this[_0x599659(0x90)](_0x10d65e['id'],_0x29fce4),this[_0x599659(0x83)](_0x10d65e['id'],_0x10d65e[_0x599659(0x85)]);}),this[_0x1ebbe5(0x8c)](this[_0x1ebbe5(0x8f)],_0x1ebbe5(0xa2),()=>{const _0x387f2f=_0x1ebbe5;_0xa000b0[_0x387f2f(0x9f)][_0x387f2f(0x7b)](_0x387f2f(0x8e));}),this[_0x1ebbe5(0x8c)](this[_0x1ebbe5(0xa4)],_0x1ebbe5(0xbd),()=>{const _0x5caaa3=_0x1ebbe5;this[_0x5caaa3(0xc3)]();}),_0xa000b0[_0x1ebbe5(0x9f)]['on'](_0x1ebbe5(0xcb),()=>{const _0x443841=_0x1ebbe5;this[_0x443841(0xd6)]();}),this[_0x1ebbe5(0x8c)](_0xa000b0,_0x1ebbe5(0x92),(_0x3654f0,_0x2b7cf2)=>{const _0x5ae3b9=_0x1ebbe5;this[_0x5ae3b9(0xc1)](_0x2b7cf2);}),this[_0x1ebbe5(0x8c)](this[_0x1ebbe5(0x8f)],_0x1ebbe5(0x7e),()=>{const _0x2bb53a=_0x1ebbe5;_0xa000b0[_0x2bb53a(0xd2)]();});}catch(_0x378503){this[_0x1ebbe5(0x81)](_0x378503,_0x1ebbe5(0xc4));}}async[_0x790357(0xa9)](_0x2dbc25,_0x4f57a0){const _0x5d6074=_0x790357;await this[_0x5d6074(0x9c)][_0x5d6074(0x96)](_0x2dbc25,_0x4f57a0);}async[_0x790357(0x83)](_0x46fcbc,_0x1eb40b){const _0x57f89b=_0x790357;await this[_0x57f89b(0x9c)][_0x57f89b(0x91)](_0x46fcbc,_0x1eb40b);}async[_0x790357(0x87)](_0x459ce8){const _0x5df499=_0x790357;await this[_0x5df499(0x9c)][_0x5df499(0x7d)](_0x459ce8);}async[_0x790357(0xd3)](_0x3153bc){const _0x3685fe=_0x790357;await this[_0x3685fe(0xa4)][_0x3685fe(0xbb)](_0x3153bc);}async[_0x790357(0xd6)](){const _0x4ee3df=_0x790357;this[_0x4ee3df(0x8f)][_0x4ee3df(0xb9)](''),this[_0x4ee3df(0x8f)][_0x4ee3df(0xd4)](!0x0),await this[_0x4ee3df(0x9c)][_0x4ee3df(0xc4)](),this[_0x4ee3df(0x8f)][_0x4ee3df(0xd4)](!0x1);}[_0x790357(0xc3)](){const _0x5f1d13=_0x790357,_0x3d3ffd=this[_0x5f1d13(0xa4)][_0x5f1d13(0xd0)]?.['id'],_0x1d54af=this[_0x5f1d13(0xc9)]()[_0x5f1d13(0x78)](_0x385e42=>({'title':_0x385e42[_0x5f1d13(0xc0)],'items':_0x385e42[_0x5f1d13(0x76)][_0x5f1d13(0x78)](_0x36e23a=>({'id':_0x36e23a['id'],'title':_0x36e23a[_0x5f1d13(0xc0)]||_0x278dbc(this[_0x5f1d13(0x86)][_0x5f1d13(0xb8)],_0x5f1d13(0xb2)),'createdAt':new Date(_0x36e23a[_0x5f1d13(0x89)])[_0x5f1d13(0xca)](),'active':_0x36e23a['id']===_0x3d3ffd,'pinned':_0x36e23a[_0x5f1d13(0x85)]}))}));this[_0x5f1d13(0x8f)][_0x5f1d13(0xcd)](_0x1d54af);}[_0x790357(0x90)](_0xd0ace7,_0x5c2300){const _0x30d609=_0x790357;this[_0x30d609(0x8f)][_0x30d609(0xc8)](_0xd0ace7,_0x5c2300,!0x0);}[_0x790357(0x93)](_0x55d11f){const _0x1610c4=_0x790357;this[_0x1610c4(0x8f)][_0x1610c4(0xc8)](_0x55d11f,null,!0x1);}[_0x790357(0x81)](_0x469505,_0x2a1d68,_0x58c09d){const _0x2876f9=_0x790357,_0x20f735=this[_0x2876f9(0xc5)](_0x2a1d68,_0x58c09d);this[_0x2876f9(0x8f)][_0x2876f9(0xb9)](_0x20f735),_0x58c09d&&this[_0x2876f9(0x93)](_0x58c09d),this[_0x2876f9(0x8f)][_0x2876f9(0xd4)](!0x1);}[_0x790357(0xc5)](_0x19ad60,_0x338cab){const _0x127cb9=_0x790357,_0xb45c0a=_0x338cab?this[_0x127cb9(0x9c)][_0x127cb9(0xaa)](_0x338cab):null,_0x397169=_0xb45c0a?.[_0x127cb9(0xc0)]||_0x278dbc(this[_0x127cb9(0x86)][_0x127cb9(0xb8)],_0x127cb9(0xb2));switch(_0x19ad60){case _0x127cb9(0x96):return _0x278dbc(this[_0x127cb9(0x86)][_0x127cb9(0xb8)],_0x127cb9(0xc2),_0x397169);case _0x127cb9(0x91):{const _0x5d3d4d=_0x278dbc(this[_0x127cb9(0x86)][_0x127cb9(0xb8)],_0xb45c0a?.[_0x127cb9(0x85)]?_0x127cb9(0x9d):_0x127cb9(0xbc));return _0x278dbc(this[_0x127cb9(0x86)][_0x127cb9(0xb8)],_0x127cb9(0xa3),[_0x5d3d4d,_0x397169]);}case _0x127cb9(0x7d):return _0x278dbc(this[_0x127cb9(0x86)][_0x127cb9(0xb8)],_0x127cb9(0x7c),_0x397169);case _0x127cb9(0xc4):case _0x127cb9(0x97):return _0x278dbc(this[_0x127cb9(0x86)][_0x127cb9(0xb8)],_0x127cb9(0xa5));default:return _0x278dbc(this[_0x127cb9(0x86)][_0x127cb9(0xb8)],_0x127cb9(0x72));}}[_0x790357(0xc9)](){const _0x10c52b=_0x790357,_0x54bd24=new Date(),_0x175911=new Date(_0x54bd24[_0x10c52b(0x73)](),_0x54bd24[_0x10c52b(0xb0)](),_0x54bd24[_0x10c52b(0xc6)]()),_0x1ef3af=new Date(_0x175911);_0x1ef3af[_0x10c52b(0xa0)](_0x1ef3af[_0x10c52b(0xc6)]()-0x1);const _0x5e599b=new Date(_0x175911);_0x5e599b[_0x10c52b(0xa0)](_0x5e599b[_0x10c52b(0xc6)]()-0xe);const _0x5d64b9=this[_0x10c52b(0x9c)][_0x10c52b(0xae)]({'pinned':!0x0}),_0x20424e=this[_0x10c52b(0x9c)][_0x10c52b(0xae)]({'from':_0x175911,'to':_0x175911}),_0xf0566b=this[_0x10c52b(0x9c)][_0x10c52b(0xae)]({'from':_0x1ef3af,'to':_0x1ef3af}),_0x47a1fe=this[_0x10c52b(0x9c)][_0x10c52b(0xae)]({'from':_0x5e599b,'to':_0x1ef3af}),_0x30a8e6=this[_0x10c52b(0x9c)][_0x10c52b(0xae)]({'to':_0x5e599b}),_0x54fba6=[];return _0x5d64b9[_0x10c52b(0xba)]>0x0&&_0x54fba6[_0x10c52b(0x84)]({'title':_0x278dbc(this[_0x10c52b(0x86)][_0x10c52b(0xb8)],_0x10c52b(0xad)),'items':_0x5d64b9}),_0x20424e[_0x10c52b(0xba)]>0x0&&_0x54fba6[_0x10c52b(0x84)]({'title':_0x278dbc(this[_0x10c52b(0x86)][_0x10c52b(0xb8)],_0x10c52b(0x7a)),'items':_0x20424e}),_0xf0566b[_0x10c52b(0xba)]>0x0&&_0x54fba6[_0x10c52b(0x84)]({'title':_0x278dbc(this[_0x10c52b(0x86)][_0x10c52b(0xb8)],_0x10c52b(0xb7)),'items':_0xf0566b}),_0x47a1fe[_0x10c52b(0xba)]>0x0&&_0x54fba6[_0x10c52b(0x84)]({'title':_0x278dbc(this[_0x10c52b(0x86)][_0x10c52b(0xb8)],_0x10c52b(0x74)),'items':_0x47a1fe}),_0x30a8e6[_0x10c52b(0xba)]>0x0&&_0x54fba6[_0x10c52b(0x84)]({'title':_0x278dbc(this[_0x10c52b(0x86)][_0x10c52b(0xb8)],_0x10c52b(0xd7)),'items':_0x30a8e6}),_0x54fba6;}[_0x790357(0xc1)](_0x58ff28){const _0x571388=_0x790357;this[_0x571388(0x8f)][_0x571388(0x99)](_0x58ff28);}}
23
+ const _0x1a7e4a=_0x3b99;(function(_0x2a22bf,_0x304fe7){const _0x3a253d=_0x3b99,_0x3cf429=_0x2a22bf();while(!![]){try{const _0x24c685=parseInt(_0x3a253d(0x118))/0x1*(parseInt(_0x3a253d(0x108))/0x2)+parseInt(_0x3a253d(0xeb))/0x3*(parseInt(_0x3a253d(0x10d))/0x4)+parseInt(_0x3a253d(0x11c))/0x5*(parseInt(_0x3a253d(0x112))/0x6)+-parseInt(_0x3a253d(0x105))/0x7*(parseInt(_0x3a253d(0x119))/0x8)+-parseInt(_0x3a253d(0x116))/0x9+-parseInt(_0x3a253d(0x106))/0xa*(parseInt(_0x3a253d(0x10e))/0xb)+parseInt(_0x3a253d(0xdc))/0xc;if(_0x24c685===_0x304fe7)break;else _0x3cf429['push'](_0x3cf429['shift']());}catch(_0x17a80b){_0x3cf429['push'](_0x3cf429['shift']());}}}(_0x319c,0x43574));import{ContextPlugin as _0x56e2be}from'ckeditor5/src/core.js';import{AIConnector as _0xf5017c}from'../aicore/aiconnector.js';import{AIChatController as _0x30af11}from'../aichat/aichatcontroller.js';import{AITabs as _0x47abd6}from'../aitabs/aitabs.js';function _0x319c(){const _0x753586=['getItem','_setItemLoading','_setIsMaximized','setConversationPinned','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','createdAt','_handleSelectConversation','removeItem','updateItemTitle','get','setIsMaximized','getItems','chat','loadConversation','activateTab','remove','rename','35NfdnrW','36600BZGSDE','getGroupId','3862EXxFhB','itemsLoaded','_handleHistoryErrorUI','_showConversationHistory','selectConversation','8SJBpdL','110qAsWlL','itemUpdated','removeHistoryItem','AI_CHAT_HISTORY_PIN_ACTION','1223874WtDdPn','pin','length','AI_CHAT_HISTORY_CATEGORY_PINNED','3528099FfhSWz','AI_CHAT_HISTORY_CATEGORY_TODAY','99vZoXeS','326776tRhDeY','AI_CHAT_HISTORY_CATEGORY_LATER','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','10MElgof','showError','_generateErrorMessage','_clearItemLoading','activeConversation','change:activeConversation','requires','getDate','isPremiumPlugin','_handleRemove','itemId','pluginName','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','AI_CHAT_HISTORY_ERROR_GENERIC','_aiChatHistoryUi','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','pinned','view','updateItemPinned','AI_CHAT_UNTITLED_CONVERSATION','resize','push','isOfficialPlugin','init','setLoadingSkeleton','_updateHistoryItemsUI','removeConversation','openChat','locale','setDate','_handleTogglePin','context','editConversationTitle','plugins','handleRemovedConversation','unpin','_aiConnector','history','updates','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','2067612TbBlFe','AIChatHistoryController','resizeTabs','resizedTabs','listenTo','_handleEditTitle','itemRemoved','title','error','getMonth','toLocaleDateString','map','loadItems','operation','_aiChatController','205869RdYjuS','items','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','updateItems','getFullYear','_getCategorizedItems','activateTab:history','AI_CHAT_HISTORY_UNPIN_ACTION','updateItemLoadingState'];_0x319c=function(){return _0x753586;};return _0x319c();}function _0x3b99(_0x12e473,_0x47be07){const _0x319cb7=_0x319c();return _0x3b99=function(_0x3b99ef,_0x128ae0){_0x3b99ef=_0x3b99ef-0xc2;let _0x362b9f=_0x319cb7[_0x3b99ef];return _0x362b9f;},_0x3b99(_0x12e473,_0x47be07);}import{AIChatHistoryUI as _0x1e5615}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x333fb1}from'./model/aichathistoryconversations.js';import{getTranslation as _0x1d464f}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x56e2be{[_0x1a7e4a(0xd8)];[_0x1a7e4a(0xc2)];[_0x1a7e4a(0xea)];static get[_0x1a7e4a(0x122)](){return[_0xf5017c,_0x30af11,_0x1e5615,_0x47abd6];}static get[_0x1a7e4a(0x127)](){const _0x5c9f2d=_0x1a7e4a;return _0x5c9f2d(0xdd);}static get[_0x1a7e4a(0xca)](){return!0x0;}static get[_0x1a7e4a(0x124)](){return!0x0;}[_0x1a7e4a(0xcb)](){const _0x4f7310=_0x1a7e4a;this[_0x4f7310(0xd8)]=this[_0x4f7310(0xd3)][_0x4f7310(0xd5)][_0x4f7310(0xfd)](_0xf5017c),this[_0x4f7310(0xc2)]=this[_0x4f7310(0xd3)][_0x4f7310(0xd5)][_0x4f7310(0xfd)](_0x1e5615),this[_0x4f7310(0xea)]=this[_0x4f7310(0xd3)][_0x4f7310(0xd5)][_0x4f7310(0xfd)](_0x30af11);const _0x3c79e7=this[_0x4f7310(0xd3)][_0x4f7310(0xd5)][_0x4f7310(0xfd)](_0x47abd6);try{const _0x3fe4fb=this[_0x4f7310(0xea)][_0x4f7310(0x107)]();this[_0x4f7310(0xd9)]=new _0x333fb1({'connector':this[_0x4f7310(0xd8)],'group':_0x3fe4fb}),this[_0x4f7310(0xe0)](this[_0x4f7310(0xc2)],_0x4f7310(0xce),(_0x113b86,_0x2b389f)=>{const _0x321731=_0x4f7310;this[_0x321731(0xf5)](_0x2b389f['id'],_0x321731(0x103)),this[_0x321731(0x125)](_0x2b389f['id']);}),this[_0x4f7310(0xe0)](this[_0x4f7310(0xc2)],_0x4f7310(0xd4),(_0x421f04,_0x115481)=>{const _0x148a72=_0x4f7310;this[_0x148a72(0xf5)](_0x115481['id'],_0x148a72(0x104)),this[_0x148a72(0xe1)](_0x115481['id'],_0x115481[_0x148a72(0xe3)]);}),this[_0x4f7310(0xe0)](this[_0x4f7310(0xd9)],_0x4f7310(0x10f),(_0x57b6ac,_0x2c4748)=>{const _0x1ba938=_0x4f7310;void 0x0!==_0x2c4748[_0x1ba938(0xda)][_0x1ba938(0xe3)]&&this[_0x1ba938(0xc2)][_0x1ba938(0xfc)](_0x2c4748[_0x1ba938(0x126)],_0x2c4748[_0x1ba938(0xda)][_0x1ba938(0xe3)]),void 0x0!==_0x2c4748[_0x1ba938(0xda)][_0x1ba938(0xc4)]&&this[_0x1ba938(0xcd)](),this[_0x1ba938(0x11f)](_0x2c4748[_0x1ba938(0x126)]);}),this[_0x4f7310(0xe0)](this[_0x4f7310(0xd9)],_0x4f7310(0xe2),(_0x39cefe,_0x7d994e)=>{const _0x869c67=_0x4f7310;this[_0x869c67(0xea)][_0x869c67(0xd6)](_0x7d994e[_0x869c67(0x126)]),this[_0x869c67(0xc2)][_0x869c67(0x110)](_0x7d994e[_0x869c67(0x126)]),this[_0x869c67(0x11f)](_0x7d994e[_0x869c67(0x126)]);}),this[_0x4f7310(0xe0)](this[_0x4f7310(0xd9)],_0x4f7310(0x109),()=>{const _0x1bfbf4=_0x4f7310;this[_0x1bfbf4(0xcd)]();}),this[_0x4f7310(0xe0)](this[_0x4f7310(0xd9)],_0x4f7310(0xe4),(_0x5d9939,_0x565248)=>{const _0x4dc027=_0x4f7310;this[_0x4dc027(0x10a)](_0x565248[_0x4dc027(0xe4)],_0x565248[_0x4dc027(0xe9)],_0x565248[_0x4dc027(0x126)]);}),this[_0x4f7310(0xe0)](this[_0x4f7310(0xc2)],_0x4f7310(0x10c),(_0x2f2b78,_0x3fd25e)=>{const _0x611f44=_0x4f7310;this[_0x611f44(0xfa)](_0x3fd25e['id']);}),this[_0x4f7310(0xe0)](this[_0x4f7310(0xc2)],_0x4f7310(0xf7),(_0x597804,_0x202ddc)=>{const _0x42551c=_0x4f7310,_0x536e7e=_0x202ddc[_0x42551c(0xc4)]?_0x42551c(0x113):_0x42551c(0xd7);this[_0x42551c(0xf5)](_0x202ddc['id'],_0x536e7e),this[_0x42551c(0xd2)](_0x202ddc['id'],_0x202ddc[_0x42551c(0xc4)]);}),this[_0x4f7310(0xe0)](this[_0x4f7310(0xc2)],_0x4f7310(0xcf),()=>{const _0x2159c7=_0x4f7310;_0x3c79e7[_0x2159c7(0xc5)][_0x2159c7(0x102)](_0x2159c7(0x100));}),this[_0x4f7310(0xe0)](this[_0x4f7310(0xea)],_0x4f7310(0x121),()=>{const _0x196829=_0x4f7310;this[_0x196829(0xcd)]();}),_0x3c79e7[_0x4f7310(0xc5)]['on'](_0x4f7310(0xf1),()=>{const _0x1e13c0=_0x4f7310;this[_0x1e13c0(0x10b)]();}),this[_0x4f7310(0xe0)](_0x3c79e7,_0x4f7310(0xdf),(_0x4c0ffa,_0x42cb78)=>{const _0x53c5b3=_0x4f7310;this[_0x53c5b3(0xf6)](_0x42cb78);}),this[_0x4f7310(0xe0)](this[_0x4f7310(0xc2)],_0x4f7310(0xde),()=>{const _0x1f9760=_0x4f7310;_0x3c79e7[_0x1f9760(0xc8)]();});}catch(_0x3eb681){this[_0x4f7310(0x10a)](_0x3eb681,_0x4f7310(0xcb));}}async[_0x1a7e4a(0xe1)](_0x47ff71,_0x2e8869){const _0x365241=_0x1a7e4a;await this[_0x365241(0xd9)][_0x365241(0xfc)](_0x47ff71,_0x2e8869);}async[_0x1a7e4a(0xd2)](_0xc16b6,_0x21c73e){const _0x38be5f=_0x1a7e4a;await this[_0x38be5f(0xd9)][_0x38be5f(0xc6)](_0xc16b6,_0x21c73e);}async[_0x1a7e4a(0x125)](_0x2f7740){const _0x324e35=_0x1a7e4a;await this[_0x324e35(0xd9)][_0x324e35(0xfb)](_0x2f7740);}async[_0x1a7e4a(0xfa)](_0x1fa1df){const _0x365333=_0x1a7e4a;await this[_0x365333(0xea)][_0x365333(0x101)](_0x1fa1df);}async[_0x1a7e4a(0x10b)](){const _0x3fb727=_0x1a7e4a;this[_0x3fb727(0xc2)][_0x3fb727(0x11d)](''),this[_0x3fb727(0xc2)][_0x3fb727(0xcc)](!0x0),await this[_0x3fb727(0xd9)][_0x3fb727(0xcb)](),this[_0x3fb727(0xc2)][_0x3fb727(0xcc)](!0x1);}[_0x1a7e4a(0xcd)](){const _0x4cb3f9=_0x1a7e4a,_0x559169=this[_0x4cb3f9(0xea)][_0x4cb3f9(0x120)]?.['id'],_0x3dc192=this[_0x4cb3f9(0xf0)]()[_0x4cb3f9(0xe7)](_0x1905a7=>({'title':_0x1905a7[_0x4cb3f9(0xe3)],'items':_0x1905a7[_0x4cb3f9(0xec)][_0x4cb3f9(0xe7)](_0x17b5f5=>({'id':_0x17b5f5['id'],'title':_0x17b5f5[_0x4cb3f9(0xe3)]||_0x1d464f(this[_0x4cb3f9(0xd3)][_0x4cb3f9(0xd0)],_0x4cb3f9(0xc7)),'createdAt':new Date(_0x17b5f5[_0x4cb3f9(0xf9)])[_0x4cb3f9(0xe6)](),'active':_0x17b5f5['id']===_0x559169,'pinned':_0x17b5f5[_0x4cb3f9(0xc4)]}))}));this[_0x4cb3f9(0xc2)][_0x4cb3f9(0xee)](_0x3dc192);}[_0x1a7e4a(0xf5)](_0x4c37e9,_0xa6d979){const _0x159cf5=_0x1a7e4a;this[_0x159cf5(0xc2)][_0x159cf5(0xf3)](_0x4c37e9,_0xa6d979,!0x0);}[_0x1a7e4a(0x11f)](_0x185e78){const _0x490eee=_0x1a7e4a;this[_0x490eee(0xc2)][_0x490eee(0xf3)](_0x185e78,null,!0x1);}[_0x1a7e4a(0x10a)](_0x249bca,_0x2f605a,_0x3d19d8){const _0x4f304e=_0x1a7e4a,_0x203252=this[_0x4f304e(0x11e)](_0x2f605a,_0x3d19d8);this[_0x4f304e(0xc2)][_0x4f304e(0x11d)](_0x203252),_0x3d19d8&&this[_0x4f304e(0x11f)](_0x3d19d8),this[_0x4f304e(0xc2)][_0x4f304e(0xcc)](!0x1);}[_0x1a7e4a(0x11e)](_0x11c00f,_0x4cd523){const _0x574e7=_0x1a7e4a,_0x351c4d=_0x4cd523?this[_0x574e7(0xd9)][_0x574e7(0xf4)](_0x4cd523):null,_0x5d1205=_0x351c4d?.[_0x574e7(0xe3)]||_0x1d464f(this[_0x574e7(0xd3)][_0x574e7(0xd0)],_0x574e7(0xc7));switch(_0x11c00f){case _0x574e7(0xfc):return _0x1d464f(this[_0x574e7(0xd3)][_0x574e7(0xd0)],_0x574e7(0xed),_0x5d1205);case _0x574e7(0xc6):{const _0x93dd78=_0x1d464f(this[_0x574e7(0xd3)][_0x574e7(0xd0)],_0x351c4d?.[_0x574e7(0xc4)]?_0x574e7(0xf2):_0x574e7(0x111));return _0x1d464f(this[_0x574e7(0xd3)][_0x574e7(0xd0)],_0x574e7(0x11b),[_0x93dd78,_0x5d1205]);}case _0x574e7(0xfb):return _0x1d464f(this[_0x574e7(0xd3)][_0x574e7(0xd0)],_0x574e7(0xdb),_0x5d1205);case _0x574e7(0xcb):case _0x574e7(0xe8):return _0x1d464f(this[_0x574e7(0xd3)][_0x574e7(0xd0)],_0x574e7(0xf8));default:return _0x1d464f(this[_0x574e7(0xd3)][_0x574e7(0xd0)],_0x574e7(0x129));}}[_0x1a7e4a(0xf0)](){const _0x4acf3e=_0x1a7e4a,_0x2d81c9=new Date(),_0x22bf2b=new Date(_0x2d81c9[_0x4acf3e(0xef)](),_0x2d81c9[_0x4acf3e(0xe5)](),_0x2d81c9[_0x4acf3e(0x123)]()),_0x8a40bd=new Date(_0x22bf2b);_0x8a40bd[_0x4acf3e(0xd1)](_0x8a40bd[_0x4acf3e(0x123)]()-0x1);const _0x4540cd=new Date(_0x22bf2b);_0x4540cd[_0x4acf3e(0xd1)](_0x4540cd[_0x4acf3e(0x123)]()-0xe);const _0x2fc4ca=this[_0x4acf3e(0xd9)][_0x4acf3e(0xff)]({'pinned':!0x0}),_0x17f8b0=this[_0x4acf3e(0xd9)][_0x4acf3e(0xff)]({'from':_0x22bf2b,'to':_0x22bf2b}),_0x162bf9=this[_0x4acf3e(0xd9)][_0x4acf3e(0xff)]({'from':_0x8a40bd,'to':_0x8a40bd}),_0x2d9f50=this[_0x4acf3e(0xd9)][_0x4acf3e(0xff)]({'from':_0x4540cd,'to':_0x8a40bd}),_0xb1135=this[_0x4acf3e(0xd9)][_0x4acf3e(0xff)]({'to':_0x4540cd}),_0x1d0d2c=[];return _0x2fc4ca[_0x4acf3e(0x114)]>0x0&&_0x1d0d2c[_0x4acf3e(0xc9)]({'title':_0x1d464f(this[_0x4acf3e(0xd3)][_0x4acf3e(0xd0)],_0x4acf3e(0x115)),'items':_0x2fc4ca}),_0x17f8b0[_0x4acf3e(0x114)]>0x0&&_0x1d0d2c[_0x4acf3e(0xc9)]({'title':_0x1d464f(this[_0x4acf3e(0xd3)][_0x4acf3e(0xd0)],_0x4acf3e(0x117)),'items':_0x17f8b0}),_0x162bf9[_0x4acf3e(0x114)]>0x0&&_0x1d0d2c[_0x4acf3e(0xc9)]({'title':_0x1d464f(this[_0x4acf3e(0xd3)][_0x4acf3e(0xd0)],_0x4acf3e(0xc3)),'items':_0x162bf9}),_0x2d9f50[_0x4acf3e(0x114)]>0x0&&_0x1d0d2c[_0x4acf3e(0xc9)]({'title':_0x1d464f(this[_0x4acf3e(0xd3)][_0x4acf3e(0xd0)],_0x4acf3e(0x128)),'items':_0x2d9f50}),_0xb1135[_0x4acf3e(0x114)]>0x0&&_0x1d0d2c[_0x4acf3e(0xc9)]({'title':_0x1d464f(this[_0x4acf3e(0xd3)][_0x4acf3e(0xd0)],_0x4acf3e(0x11a)),'items':_0xb1135}),_0x1d0d2c;}[_0x1a7e4a(0xf6)](_0x35d3cf){const _0x4899d2=_0x1a7e4a;this[_0x4899d2(0xc2)][_0x4899d2(0xfe)](_0x35d3cf);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x444e6a=_0x53b7;function _0x4039(){const _0x3467cc=['1437420xYNKVp','setLoadingSkeleton','context','3820yKMobe','selectConversation','locale','editConversationTitle','history','requires','removeHistoryItem','AITabs','view','isOfficialPlugin','535594RqGfbx','removeConversation','updateItemLoadingState','get','25270Qyxhya','9746uHMSQA','showResizeButton','AIChatHistoryUI','setIsMaximized','delegate','updateItems','3439674cGiSXF','318zZulIs','showConversationHistory','openChat','updateHistoryItemsWithCategories','13744bTUMPf','addTab','plugins','errorMessage','isMaximized','isPremiumPlugin','resizeTabs','175kuaLSc','setConversationPinned','_historyView','AI_CHAT_HISTORY_HEADING','1XxQuPx','showError','isLoading','146571gyUEoB','pluginName','updateItemTitle','hideError'];_0x4039=function(){return _0x3467cc;};return _0x4039();}(function(_0x2c8a2c,_0x4abe3f){const _0x446f18=_0x53b7,_0x3236a9=_0x2c8a2c();while(!![]){try{const _0x4b3b66=-parseInt(_0x446f18(0x1a8))/0x1*(-parseInt(_0x446f18(0x18d))/0x2)+parseInt(_0x446f18(0x1ab))/0x3+-parseInt(_0x446f18(0x1af))/0x4+-parseInt(_0x446f18(0x191))/0x5*(-parseInt(_0x446f18(0x199))/0x6)+-parseInt(_0x446f18(0x1a4))/0x7*(-parseInt(_0x446f18(0x19d))/0x8)+-parseInt(_0x446f18(0x198))/0x9+parseInt(_0x446f18(0x183))/0xa*(parseInt(_0x446f18(0x192))/0xb);if(_0x4b3b66===_0x4abe3f)break;else _0x3236a9['push'](_0x3236a9['shift']());}catch(_0x1d2ec6){_0x3236a9['push'](_0x3236a9['shift']());}}}(_0x4039,0x36c79));function _0x53b7(_0x454eaf,_0x446f85){const _0x4039b2=_0x4039();return _0x53b7=function(_0x53b7ab,_0x16f8f0){_0x53b7ab=_0x53b7ab-0x181;let _0x50bf6b=_0x4039b2[_0x53b7ab];return _0x50bf6b;},_0x53b7(_0x454eaf,_0x446f85);}import{ContextPlugin as _0x12823e}from'ckeditor5/src/core.js';import{AITabs as _0x4c68e5}from'../aitabs/aitabs.js';import{IconAIHistory as _0x330da6}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x3902de}from'./ui/aichathistoryview.js';import{getTranslation as _0x2af1f7}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x444e6a(0x19a),_0x444e6a(0x18e),_0x444e6a(0x186),_0x444e6a(0x1a5),_0x444e6a(0x184),_0x444e6a(0x19b),_0x444e6a(0x1a3)];export class AIChatHistoryUI extends _0x12823e{static get[_0x444e6a(0x188)](){return[_0x4c68e5];}[_0x444e6a(0x1a6)];static get[_0x444e6a(0x1ac)](){const _0x1f6268=_0x444e6a;return _0x1f6268(0x194);}static get[_0x444e6a(0x18c)](){return!0x0;}static get[_0x444e6a(0x1a2)](){return!0x0;}constructor(_0xdb539e){const _0x444210=_0x444e6a;super(_0xdb539e);const _0x167c86=this[_0x444210(0x182)][_0x444210(0x19f)][_0x444210(0x190)](_0x444210(0x18a));this[_0x444210(0x1a6)]=new _0x3902de(this[_0x444210(0x182)][_0x444210(0x185)],_0x167c86[_0x444210(0x193)]),this[_0x444210(0x1a6)][_0x444210(0x196)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x167c86[_0x444210(0x18b)][_0x444210(0x19e)]({'id':_0x444210(0x187),'buttonLabel':_0x2af1f7(this[_0x444210(0x182)][_0x444210(0x185)],_0x444210(0x1a7)),'buttonIcon':_0x330da6,'order':0x0,'content':this[_0x444210(0x1a6)]});}[_0x444e6a(0x189)](_0x163c49){const _0x9c3fb4=_0x444e6a;this[_0x9c3fb4(0x1a6)][_0x9c3fb4(0x189)](_0x163c49);}[_0x444e6a(0x197)](_0x25c655){const _0x18fbd4=_0x444e6a;this[_0x18fbd4(0x1a6)][_0x18fbd4(0x19c)](_0x25c655);}[_0x444e6a(0x1ad)](_0x292c6e,_0x494244){const _0x3f2e15=_0x444e6a;this[_0x3f2e15(0x1a6)][_0x3f2e15(0x1ad)](_0x292c6e,_0x494244);}[_0x444e6a(0x18f)](_0x133b54,_0x4a47ab,_0x1bc607){const _0x4fab0d=_0x444e6a;this[_0x4fab0d(0x1a6)][_0x4fab0d(0x18f)](_0x133b54,_0x4a47ab,_0x1bc607);}[_0x444e6a(0x181)](_0x309835){const _0x2fd803=_0x444e6a;this[_0x2fd803(0x1a6)][_0x2fd803(0x1aa)]=_0x309835;}[_0x444e6a(0x1a9)](_0x50c391){const _0x236980=_0x444e6a;this[_0x236980(0x1a6)][_0x236980(0x1a0)]=_0x50c391;}[_0x444e6a(0x1ae)](){const _0x2f4c1c=_0x444e6a;this[_0x2f4c1c(0x1a6)][_0x2f4c1c(0x1a0)]='';}[_0x444e6a(0x195)](_0x5799dd){const _0x326c8a=_0x444e6a;this[_0x326c8a(0x1a6)][_0x326c8a(0x1a1)]=_0x5799dd;}}
23
+ const _0xc9042a=_0x28b7;(function(_0x5d064b,_0x45282f){const _0x3dd110=_0x28b7,_0x4214dd=_0x5d064b();while(!![]){try{const _0x36be4d=parseInt(_0x3dd110(0x125))/0x1+-parseInt(_0x3dd110(0x112))/0x2*(-parseInt(_0x3dd110(0x118))/0x3)+-parseInt(_0x3dd110(0x12c))/0x4+parseInt(_0x3dd110(0x10f))/0x5+parseInt(_0x3dd110(0x128))/0x6+-parseInt(_0x3dd110(0x130))/0x7*(parseInt(_0x3dd110(0x121))/0x8)+-parseInt(_0x3dd110(0x10c))/0x9;if(_0x36be4d===_0x45282f)break;else _0x4214dd['push'](_0x4214dd['shift']());}catch(_0x369ee5){_0x4214dd['push'](_0x4214dd['shift']());}}}(_0x5406,0x3aee4));import{ContextPlugin as _0x1f3940}from'ckeditor5/src/core.js';function _0x5406(){const _0x35d3bf=['343329WOmYJa','showResizeButton','removeConversation','129564qDgPRL','setLoadingSkeleton','pluginName','AIChatHistoryUI','1558088kzjjRQ','showConversationHistory','AI_CHAT_HISTORY_HEADING','addTab','14Ttmjoi','_historyView','delegate','openChat','updateItemTitle','selectConversation','removeHistoryItem','errorMessage','isLoading','2568690dajMKe','updateHistoryItemsWithCategories','isPremiumPlugin','1120690GmKGbc','plugins','history','24862LdvHwB','showError','hideError','get','AITabs','resizeTabs','81ZdJgCx','updateItems','isMaximized','editConversationTitle','isOfficialPlugin','context','setIsMaximized','locale','view','33544YNRGxi','requires','setConversationPinned','updateItemLoadingState'];_0x5406=function(){return _0x35d3bf;};return _0x5406();}import{AITabs as _0x116bc3}from'../aitabs/aitabs.js';import{IconAIHistory as _0x45a4be}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x10ee18}from'./ui/aichathistoryview.js';import{getTranslation as _0x2cb90d}from'../aicore/utils/common-translations.js';function _0x28b7(_0x9f00c0,_0x803e14){const _0x54062e=_0x5406();return _0x28b7=function(_0x28b708,_0x2f06b6){_0x28b708=_0x28b708-0x108;let _0x127168=_0x54062e[_0x28b708];return _0x127168;},_0x28b7(_0x9f00c0,_0x803e14);}import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0xc9042a(0x12d),_0xc9042a(0x127),_0xc9042a(0x11b),_0xc9042a(0x123),_0xc9042a(0x108),_0xc9042a(0x133),_0xc9042a(0x117)];export class AIChatHistoryUI extends _0x1f3940{static get[_0xc9042a(0x122)](){return[_0x116bc3];}[_0xc9042a(0x131)];static get[_0xc9042a(0x12a)](){const _0xb62f6d=_0xc9042a;return _0xb62f6d(0x12b);}static get[_0xc9042a(0x11c)](){return!0x0;}static get[_0xc9042a(0x10e)](){return!0x0;}constructor(_0x26f24f){const _0xf5d265=_0xc9042a;super(_0x26f24f);const _0x277638=this[_0xf5d265(0x11d)][_0xf5d265(0x110)][_0xf5d265(0x115)](_0xf5d265(0x116));this[_0xf5d265(0x131)]=new _0x10ee18(this[_0xf5d265(0x11d)][_0xf5d265(0x11f)],_0x277638[_0xf5d265(0x126)]),this[_0xf5d265(0x131)][_0xf5d265(0x132)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x277638[_0xf5d265(0x120)][_0xf5d265(0x12f)]({'id':_0xf5d265(0x111),'buttonLabel':_0x2cb90d(this[_0xf5d265(0x11d)][_0xf5d265(0x11f)],_0xf5d265(0x12e)),'buttonIcon':_0x45a4be,'order':0x0,'content':this[_0xf5d265(0x131)]});}[_0xc9042a(0x109)](_0x20eedb){const _0x39987f=_0xc9042a;this[_0x39987f(0x131)][_0x39987f(0x109)](_0x20eedb);}[_0xc9042a(0x119)](_0x1f45d9){const _0x278da6=_0xc9042a;this[_0x278da6(0x131)][_0x278da6(0x10d)](_0x1f45d9);}[_0xc9042a(0x134)](_0x439af0,_0x59ec04){const _0xc0781c=_0xc9042a;this[_0xc0781c(0x131)][_0xc0781c(0x134)](_0x439af0,_0x59ec04);}[_0xc9042a(0x124)](_0x54f637,_0x4cfd18,_0x53c85f){const _0x59ac64=_0xc9042a;this[_0x59ac64(0x131)][_0x59ac64(0x124)](_0x54f637,_0x4cfd18,_0x53c85f);}[_0xc9042a(0x129)](_0x20ac3f){const _0x23468d=_0xc9042a;this[_0x23468d(0x131)][_0x23468d(0x10b)]=_0x20ac3f;}[_0xc9042a(0x113)](_0x3c6a3d){const _0xc39cec=_0xc9042a;this[_0xc39cec(0x131)][_0xc39cec(0x10a)]=_0x3c6a3d;}[_0xc9042a(0x114)](){const _0x504805=_0xc9042a;this[_0x504805(0x131)][_0x504805(0x10a)]='';}[_0xc9042a(0x11e)](_0x3fe313){const _0x3f2a2f=_0xc9042a;this[_0x3f2a2f(0x131)][_0x3f2a2f(0x11a)]=_0x3fe313;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10d5b8=_0x4d19;function _0x4d19(_0x17ab36,_0x4d43be){const _0x5c553b=_0x5c55();return _0x4d19=function(_0x4d19a0,_0x422bb6){_0x4d19a0=_0x4d19a0-0xb5;let _0x279b2a=_0x5c553b[_0x4d19a0];return _0x279b2a;},_0x4d19(_0x17ab36,_0x4d43be);}(function(_0x4400f2,_0x16e740){const _0x5b8fb1=_0x4d19,_0x4a7b4b=_0x4400f2();while(!![]){try{const _0x159d7b=parseInt(_0x5b8fb1(0xc1))/0x1+parseInt(_0x5b8fb1(0xb6))/0x2+-parseInt(_0x5b8fb1(0xbc))/0x3*(-parseInt(_0x5b8fb1(0xe2))/0x4)+parseInt(_0x5b8fb1(0xdc))/0x5*(parseInt(_0x5b8fb1(0xc0))/0x6)+parseInt(_0x5b8fb1(0xd6))/0x7*(parseInt(_0x5b8fb1(0xe1))/0x8)+parseInt(_0x5b8fb1(0xc8))/0x9*(-parseInt(_0x5b8fb1(0xe3))/0xa)+parseInt(_0x5b8fb1(0xbe))/0xb*(-parseInt(_0x5b8fb1(0xd4))/0xc);if(_0x159d7b===_0x16e740)break;else _0x4a7b4b['push'](_0x4a7b4b['shift']());}catch(_0x3d339a){_0x4a7b4b['push'](_0x4a7b4b['shift']());}}}(_0x5c55,0x66f01));function _0x5c55(){const _0x590ede=['map','itemRemoved','updateTitle','itemUpdated','24iYHnll','updateConversation','6776xjUJxi','items','updateItemTitle','group','addItem','error','5490krNWjL','init','getConversations','getMonth','fetchConversations','3328GPnzUb','144428sUzXKP','310510xTYaeB','pinned','updatePinned','getResult','1652264ybBdUf','execute','filter','getFullYear','getDate','getTime','30ocLHdd','from','6717447nVqYcR','push','348CluLqS','51515UqulAm','fire','findIndex','removeItem','loadItems','find','deleteConversation','18eYulWJ','updateItemPinned','getItem','splice','itemsLoaded','getItems','createdAt','connector'];_0x5c55=function(){return _0x590ede;};return _0x5c55();}import{EmitterMixin as _0x3046f7}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x507d92}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x3046f7(){[_0x10d5b8(0xd7)]=[];[_0x10d5b8(0xcf)];[_0x10d5b8(0xd9)];constructor({connector:_0x35c9fb,group:_0x3796eb}){const _0x2644cd=_0x10d5b8;super(),this[_0x2644cd(0xcf)]=_0x35c9fb,this[_0x2644cd(0xd9)]=_0x3796eb;}async[_0x10d5b8(0xdd)](){const _0x8dd95f=_0x10d5b8;try{const _0xf959af=this[_0x8dd95f(0xcf)][_0x8dd95f(0xe0)](this[_0x8dd95f(0xd9)]),_0x351b05=await _0xf959af[_0x8dd95f(0xde)]();this[_0x8dd95f(0xc5)](_0x351b05);}catch(_0x5b334c){this[_0x8dd95f(0xc2)](_0x8dd95f(0xdb),{'error':_0x5b334c,'operation':_0x8dd95f(0xdd)});}}[_0x10d5b8(0xda)](_0x14d0ba){const _0xfda535=_0x10d5b8;this[_0xfda535(0xd7)][_0xfda535(0xbf)](_0x14d0ba);}async[_0x10d5b8(0xc4)](_0x19e78f){const _0x595854=_0x10d5b8,_0x4d210a=this[_0x595854(0xd7)][_0x595854(0xc3)](_0x348a76=>_0x348a76['id']===_0x19e78f);if(-0x1===_0x4d210a)return!0x1;try{return await this[_0x595854(0xcf)][_0x595854(0xc7)](_0x19e78f)[_0x595854(0xb7)](),this[_0x595854(0xd7)][_0x595854(0xcb)](_0x4d210a,0x1),this[_0x595854(0xc2)](_0x595854(0xd1),{'itemId':_0x19e78f}),!0x0;}catch(_0x7cc221){return this[_0x595854(0xc2)](_0x595854(0xdb),{'error':_0x7cc221,'operation':_0x595854(0xc4),'itemId':_0x19e78f}),!0x1;}}[_0x10d5b8(0xca)](_0x568a16){const _0x432c16=_0x10d5b8;return this[_0x432c16(0xd7)][_0x432c16(0xc6)](_0xab0274=>_0xab0274['id']===_0x568a16);}async[_0x10d5b8(0xd8)](_0x3f600a,_0x506183){const _0x5e43b4=_0x10d5b8,_0x225fe3=this[_0x5e43b4(0xca)](_0x3f600a);if(!_0x225fe3)return!0x1;try{return await this[_0x5e43b4(0xcf)][_0x5e43b4(0xd5)](_0x3f600a,{'title':_0x506183})[_0x5e43b4(0xb5)](),_0x225fe3[_0x5e43b4(0xd2)](_0x506183),this[_0x5e43b4(0xc2)](_0x5e43b4(0xd3),{'itemId':_0x3f600a,'updates':{'title':_0x506183}}),!0x0;}catch(_0x40373e){return this[_0x5e43b4(0xc2)](_0x5e43b4(0xdb),{'error':_0x40373e,'operation':_0x5e43b4(0xd8),'itemId':_0x3f600a}),!0x1;}}async[_0x10d5b8(0xc9)](_0x5def92,_0x5c1228){const _0x5a0aaa=_0x10d5b8,_0x443246=this[_0x5a0aaa(0xca)](_0x5def92);if(!_0x443246)return!0x1;try{return await this[_0x5a0aaa(0xcf)][_0x5a0aaa(0xd5)](_0x5def92,{'pinned':_0x5c1228})[_0x5a0aaa(0xb5)](),_0x443246[_0x5a0aaa(0xe5)](_0x5c1228),this[_0x5a0aaa(0xc2)](_0x5a0aaa(0xd3),{'itemId':_0x5def92,'updates':{'pinned':_0x5c1228}}),!0x0;}catch(_0x334b32){return this[_0x5a0aaa(0xc2)](_0x5a0aaa(0xdb),{'error':_0x334b32,'operation':_0x5a0aaa(0xc9),'itemId':_0x5def92}),!0x1;}}[_0x10d5b8(0xc5)](_0x3d73eb){const _0x37ed85=_0x10d5b8;try{this[_0x37ed85(0xd7)]=[],_0x3d73eb[_0x37ed85(0xd0)](_0x53487b=>{const _0x19cd4d=_0x37ed85;this[_0x19cd4d(0xda)](new _0x507d92(_0x53487b));}),this[_0x37ed85(0xc2)](_0x37ed85(0xcc),{'items':[...this[_0x37ed85(0xd7)]]});}catch(_0x4035a1){this[_0x37ed85(0xc2)](_0x37ed85(0xdb),{'error':_0x4035a1,'operation':_0x37ed85(0xc5)});}}[_0x10d5b8(0xcd)](_0x622c1b={}){const _0x5eaac2=_0x10d5b8,_0x9221e6=void 0x0!==_0x622c1b[_0x5eaac2(0xe4)]&&_0x622c1b[_0x5eaac2(0xe4)],_0x310819=_0x622c1b[_0x5eaac2(0xbd)]?new Date(_0x622c1b[_0x5eaac2(0xbd)][_0x5eaac2(0xb9)](),_0x622c1b[_0x5eaac2(0xbd)][_0x5eaac2(0xdf)](),_0x622c1b[_0x5eaac2(0xbd)][_0x5eaac2(0xba)]()):null,_0x2062b5=_0x622c1b['to']?new Date(_0x622c1b['to'][_0x5eaac2(0xb9)](),_0x622c1b['to'][_0x5eaac2(0xdf)](),_0x622c1b['to'][_0x5eaac2(0xba)]()):null;return this[_0x5eaac2(0xd7)][_0x5eaac2(0xb8)](_0x313853=>{const _0x5d464b=_0x5eaac2;if(_0x313853[_0x5d464b(0xe4)]!==_0x9221e6)return!0x1;if(_0x2062b5){const _0x48b7d=new Date(_0x313853[_0x5d464b(0xce)][_0x5d464b(0xb9)](),_0x313853[_0x5d464b(0xce)][_0x5d464b(0xdf)](),_0x313853[_0x5d464b(0xce)][_0x5d464b(0xba)]());return _0x310819?_0x310819[_0x5d464b(0xbb)]()===_0x2062b5[_0x5d464b(0xbb)]()?_0x48b7d[_0x5d464b(0xbb)]()===_0x310819[_0x5d464b(0xbb)]():_0x48b7d<_0x2062b5&&_0x48b7d>=_0x310819:_0x48b7d<_0x2062b5;}return!0x0;});}}
23
+ function _0x3816(){const _0x4d7159=['790234PgozAP','items','getResult','updateItemTitle','9058YlqbLn','itemsLoaded','updateConversation','find','getItems','removeItem','fire','map','init','pinned','addItem','getMonth','filter','getConversations','942dIcTAs','from','deleteConversation','execute','421073sIqwId','group','fetchConversations','updateTitle','getFullYear','getDate','connector','2753936hNDMPw','loadItems','itemRemoved','error','2071468tehgxI','getTime','91266eKgjhB','updateItemPinned','splice','updatePinned','push','createdAt','1826475QHFUrz','findIndex','itemUpdated','getItem'];_0x3816=function(){return _0x4d7159;};return _0x3816();}const _0x416b85=_0x592a;(function(_0x2e0979,_0x202c91){const _0x4f9abc=_0x592a,_0x370d6d=_0x2e0979();while(!![]){try{const _0x481d97=parseInt(_0x4f9abc(0x1ce))/0x1+-parseInt(_0x4f9abc(0x1b8))/0x2+-parseInt(_0x4f9abc(0x1db))/0x3+parseInt(_0x4f9abc(0x1d9))/0x4+-parseInt(_0x4f9abc(0x1e1))/0x5+-parseInt(_0x4f9abc(0x1ca))/0x6*(parseInt(_0x4f9abc(0x1bc))/0x7)+parseInt(_0x4f9abc(0x1d5))/0x8;if(_0x481d97===_0x202c91)break;else _0x370d6d['push'](_0x370d6d['shift']());}catch(_0x4300a2){_0x370d6d['push'](_0x370d6d['shift']());}}}(_0x3816,0x469a6));function _0x592a(_0x2bfb79,_0x5afa09){const _0x3816bb=_0x3816();return _0x592a=function(_0x592a18,_0xcbfbd0){_0x592a18=_0x592a18-0x1b7;let _0x535bf9=_0x3816bb[_0x592a18];return _0x535bf9;},_0x592a(_0x2bfb79,_0x5afa09);}import{EmitterMixin as _0x4a5749}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x2edb1a}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x4a5749(){[_0x416b85(0x1b9)]=[];[_0x416b85(0x1d4)];[_0x416b85(0x1cf)];constructor({connector:_0x48e9d6,group:_0x5373b2}){const _0x3a470d=_0x416b85;super(),this[_0x3a470d(0x1d4)]=_0x48e9d6,this[_0x3a470d(0x1cf)]=_0x5373b2;}async[_0x416b85(0x1c4)](){const _0x42862a=_0x416b85;try{const _0x41c78d=this[_0x42862a(0x1d4)][_0x42862a(0x1d0)](this[_0x42862a(0x1cf)]),_0x109c2b=await _0x41c78d[_0x42862a(0x1c9)]();this[_0x42862a(0x1d6)](_0x109c2b);}catch(_0x575288){this[_0x42862a(0x1c2)](_0x42862a(0x1d8),{'error':_0x575288,'operation':_0x42862a(0x1c4)});}}[_0x416b85(0x1c6)](_0x149535){const _0x5c059d=_0x416b85;this[_0x5c059d(0x1b9)][_0x5c059d(0x1df)](_0x149535);}async[_0x416b85(0x1c1)](_0x4f0597){const _0x4c57c8=_0x416b85,_0x482c20=this[_0x4c57c8(0x1b9)][_0x4c57c8(0x1e2)](_0x4e565a=>_0x4e565a['id']===_0x4f0597);if(-0x1===_0x482c20)return!0x1;try{return await this[_0x4c57c8(0x1d4)][_0x4c57c8(0x1cc)](_0x4f0597)[_0x4c57c8(0x1cd)](),this[_0x4c57c8(0x1b9)][_0x4c57c8(0x1dd)](_0x482c20,0x1),this[_0x4c57c8(0x1c2)](_0x4c57c8(0x1d7),{'itemId':_0x4f0597}),!0x0;}catch(_0x5062aa){return this[_0x4c57c8(0x1c2)](_0x4c57c8(0x1d8),{'error':_0x5062aa,'operation':_0x4c57c8(0x1c1),'itemId':_0x4f0597}),!0x1;}}[_0x416b85(0x1b7)](_0x278a2e){const _0x5ad468=_0x416b85;return this[_0x5ad468(0x1b9)][_0x5ad468(0x1bf)](_0x2d0ee1=>_0x2d0ee1['id']===_0x278a2e);}async[_0x416b85(0x1bb)](_0x4df26f,_0x5d3f1a){const _0x17cc98=_0x416b85,_0x508537=this[_0x17cc98(0x1b7)](_0x4df26f);if(!_0x508537)return!0x1;try{return await this[_0x17cc98(0x1d4)][_0x17cc98(0x1be)](_0x4df26f,{'title':_0x5d3f1a})[_0x17cc98(0x1ba)](),_0x508537[_0x17cc98(0x1d1)](_0x5d3f1a),this[_0x17cc98(0x1c2)](_0x17cc98(0x1e3),{'itemId':_0x4df26f,'updates':{'title':_0x5d3f1a}}),!0x0;}catch(_0x16241a){return this[_0x17cc98(0x1c2)](_0x17cc98(0x1d8),{'error':_0x16241a,'operation':_0x17cc98(0x1bb),'itemId':_0x4df26f}),!0x1;}}async[_0x416b85(0x1dc)](_0x46aee6,_0x22e5a9){const _0x3a1afd=_0x416b85,_0x1deb18=this[_0x3a1afd(0x1b7)](_0x46aee6);if(!_0x1deb18)return!0x1;try{return await this[_0x3a1afd(0x1d4)][_0x3a1afd(0x1be)](_0x46aee6,{'pinned':_0x22e5a9})[_0x3a1afd(0x1ba)](),_0x1deb18[_0x3a1afd(0x1de)](_0x22e5a9),this[_0x3a1afd(0x1c2)](_0x3a1afd(0x1e3),{'itemId':_0x46aee6,'updates':{'pinned':_0x22e5a9}}),!0x0;}catch(_0x2cc117){return this[_0x3a1afd(0x1c2)](_0x3a1afd(0x1d8),{'error':_0x2cc117,'operation':_0x3a1afd(0x1dc),'itemId':_0x46aee6}),!0x1;}}[_0x416b85(0x1d6)](_0x1872db){const _0x3c93fb=_0x416b85;try{this[_0x3c93fb(0x1b9)]=[],_0x1872db[_0x3c93fb(0x1c3)](_0x37c20c=>{const _0x2a0423=_0x3c93fb;this[_0x2a0423(0x1c6)](new _0x2edb1a(_0x37c20c));}),this[_0x3c93fb(0x1c2)](_0x3c93fb(0x1bd),{'items':[...this[_0x3c93fb(0x1b9)]]});}catch(_0x1ea160){this[_0x3c93fb(0x1c2)](_0x3c93fb(0x1d8),{'error':_0x1ea160,'operation':_0x3c93fb(0x1d6)});}}[_0x416b85(0x1c0)](_0x52c035={}){const _0x1b1dfc=_0x416b85,_0x197b98=void 0x0!==_0x52c035[_0x1b1dfc(0x1c5)]&&_0x52c035[_0x1b1dfc(0x1c5)],_0x34b378=_0x52c035[_0x1b1dfc(0x1cb)]?new Date(_0x52c035[_0x1b1dfc(0x1cb)][_0x1b1dfc(0x1d2)](),_0x52c035[_0x1b1dfc(0x1cb)][_0x1b1dfc(0x1c7)](),_0x52c035[_0x1b1dfc(0x1cb)][_0x1b1dfc(0x1d3)]()):null,_0x55196f=_0x52c035['to']?new Date(_0x52c035['to'][_0x1b1dfc(0x1d2)](),_0x52c035['to'][_0x1b1dfc(0x1c7)](),_0x52c035['to'][_0x1b1dfc(0x1d3)]()):null;return this[_0x1b1dfc(0x1b9)][_0x1b1dfc(0x1c8)](_0x32d4c5=>{const _0x3ab273=_0x1b1dfc;if(_0x32d4c5[_0x3ab273(0x1c5)]!==_0x197b98)return!0x1;if(_0x55196f){const _0x4ebdcc=new Date(_0x32d4c5[_0x3ab273(0x1e0)][_0x3ab273(0x1d2)](),_0x32d4c5[_0x3ab273(0x1e0)][_0x3ab273(0x1c7)](),_0x32d4c5[_0x3ab273(0x1e0)][_0x3ab273(0x1d3)]());return _0x34b378?_0x34b378[_0x3ab273(0x1da)]()===_0x55196f[_0x3ab273(0x1da)]()?_0x4ebdcc[_0x3ab273(0x1da)]()===_0x34b378[_0x3ab273(0x1da)]():_0x4ebdcc<_0x55196f&&_0x4ebdcc>=_0x34b378:_0x4ebdcc<_0x55196f;}return!0x0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2ecf(){var _0x20f006=['12FRWrDD','title','9543051wMKYDB','updateTitle','pinned','createdAt','updatePinned','952bgluTY','2545878xQpWVI','1748436hXcvJA','set','1744329BPBNnZ','6645328OLbhgt','1670485zEyczV','76797xPImdm','updatedAt'];_0x2ecf=function(){return _0x20f006;};return _0x2ecf();}var _0x669a9b=_0x4fe1;(function(_0x311901,_0x310d50){var _0x3841c2=_0x4fe1,_0x376524=_0x311901();while(!![]){try{var _0x593639=parseInt(_0x3841c2(0x1d8))/0x1+parseInt(_0x3841c2(0x1d7))/0x2+parseInt(_0x3841c2(0x1da))/0x3+-parseInt(_0x3841c2(0x1db))/0x4+-parseInt(_0x3841c2(0x1dc))/0x5*(parseInt(_0x3841c2(0x1df))/0x6)+-parseInt(_0x3841c2(0x1e1))/0x7+-parseInt(_0x3841c2(0x1d6))/0x8*(-parseInt(_0x3841c2(0x1dd))/0x9);if(_0x593639===_0x310d50)break;else _0x376524['push'](_0x376524['shift']());}catch(_0x412dfb){_0x376524['push'](_0x376524['shift']());}}}(_0x2ecf,0xe1ef2));import{ObservableMixin as _0x3f1c20}from'ckeditor5/src/utils.js';function _0x4fe1(_0x1b1835,_0x4170ac){var _0x2ecf5d=_0x2ecf();return _0x4fe1=function(_0x4fe1b6,_0x62cfa7){_0x4fe1b6=_0x4fe1b6-0x1d5;var _0x2b802a=_0x2ecf5d[_0x4fe1b6];return _0x2b802a;},_0x4fe1(_0x1b1835,_0x4170ac);}import{escape as _0xb78410}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x3f1c20(){['id'];[_0x669a9b(0x1e4)];constructor({id:_0x538d82,title:_0x40ba68,createdAt:_0x52cb81,updatedAt:_0x3fe40a,pinned:_0x448f44}){var _0x88ecdf=_0x669a9b;super(),this['id']=_0x538d82,this[_0x88ecdf(0x1e4)]=new Date(_0x52cb81),this[_0x88ecdf(0x1d9)](_0x88ecdf(0x1e0),_0x40ba68),this[_0x88ecdf(0x1d9)](_0x88ecdf(0x1de),_0x3fe40a?new Date(_0x3fe40a):null),this[_0x88ecdf(0x1d9)](_0x88ecdf(0x1e3),_0x448f44||!0x1);}[_0x669a9b(0x1e2)](_0x5b3a09){var _0x3fec4c=_0x669a9b;this[_0x3fec4c(0x1d9)](_0x3fec4c(0x1e0),_0xb78410(_0x5b3a09)),this[_0x3fec4c(0x1de)]=new Date();}[_0x669a9b(0x1d5)](_0x4f71ac){var _0x39345e=_0x669a9b;this[_0x39345e(0x1d9)](_0x39345e(0x1e3),_0x4f71ac),this[_0x39345e(0x1de)]=new Date();}}
23
+ var _0x3aae4b=_0xe95f;(function(_0xfbb57b,_0x4b851d){var _0x539b9d=_0xe95f,_0x2ccb62=_0xfbb57b();while(!![]){try{var _0x44634f=parseInt(_0x539b9d(0x152))/0x1*(parseInt(_0x539b9d(0x145))/0x2)+parseInt(_0x539b9d(0x14b))/0x3*(parseInt(_0x539b9d(0x14d))/0x4)+parseInt(_0x539b9d(0x147))/0x5*(parseInt(_0x539b9d(0x148))/0x6)+parseInt(_0x539b9d(0x14a))/0x7*(parseInt(_0x539b9d(0x14e))/0x8)+-parseInt(_0x539b9d(0x144))/0x9+parseInt(_0x539b9d(0x141))/0xa*(parseInt(_0x539b9d(0x146))/0xb)+-parseInt(_0x539b9d(0x142))/0xc*(parseInt(_0x539b9d(0x153))/0xd);if(_0x44634f===_0x4b851d)break;else _0x2ccb62['push'](_0x2ccb62['shift']());}catch(_0x4ab177){_0x2ccb62['push'](_0x2ccb62['shift']());}}}(_0x3d82,0x8ccc8));import{ObservableMixin as _0x29f428}from'ckeditor5/src/utils.js';function _0x3d82(){var _0x3e4b6b=['10034478eMrqdU','9340ABrlah','33CCkRIA','15jUIXUv','1074264hWhYzQ','updatedAt','1099616DmnoBb','1017KFzglN','title','5612pkuYCF','48WJXITC','updateTitle','pinned','updatePinned','47xwEaYD','1222DlBjhM','createdAt','2012070WXNYBS','138732svWJeZ','set'];_0x3d82=function(){return _0x3e4b6b;};return _0x3d82();}function _0xe95f(_0x3612e2,_0x54f6c0){var _0x3d82e9=_0x3d82();return _0xe95f=function(_0xe95fb3,_0x156982){_0xe95fb3=_0xe95fb3-0x140;var _0x5bea2d=_0x3d82e9[_0xe95fb3];return _0x5bea2d;},_0xe95f(_0x3612e2,_0x54f6c0);}import{escape as _0x3c15a4}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x29f428(){['id'];[_0x3aae4b(0x140)];constructor({id:_0x26f212,title:_0x2e5e45,createdAt:_0xb56460,updatedAt:_0x3b7a47,pinned:_0x439e6b}){var _0x5bf701=_0x3aae4b;super(),this['id']=_0x26f212,this[_0x5bf701(0x140)]=new Date(_0xb56460),this[_0x5bf701(0x143)](_0x5bf701(0x14c),_0x2e5e45),this[_0x5bf701(0x143)](_0x5bf701(0x149),_0x3b7a47?new Date(_0x3b7a47):null),this[_0x5bf701(0x143)](_0x5bf701(0x150),_0x439e6b||!0x1);}[_0x3aae4b(0x14f)](_0x35c26f){var _0x1e26ab=_0x3aae4b;this[_0x1e26ab(0x143)](_0x1e26ab(0x14c),_0x3c15a4(_0x35c26f)),this[_0x1e26ab(0x149)]=new Date();}[_0x3aae4b(0x151)](_0x59deb3){var _0x5ccfdb=_0x3aae4b;this[_0x5ccfdb(0x143)](_0x5ccfdb(0x150),_0x59deb3),this[_0x5ccfdb(0x149)]=new Date();}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2da127=_0x509a;(function(_0x5bc0aa,_0x307979){const _0x4e1a39=_0x509a,_0xea0281=_0x5bc0aa();while(!![]){try{const _0x503a92=parseInt(_0x4e1a39(0xdc))/0x1+parseInt(_0x4e1a39(0xb4))/0x2+-parseInt(_0x4e1a39(0xaf))/0x3+parseInt(_0x4e1a39(0xac))/0x4+parseInt(_0x4e1a39(0xe4))/0x5+parseInt(_0x4e1a39(0xb3))/0x6+-parseInt(_0x4e1a39(0x99))/0x7;if(_0x503a92===_0x307979)break;else _0xea0281['push'](_0xea0281['shift']());}catch(_0x300325){_0xea0281['push'](_0xea0281['shift']());}}}(_0x338f,0x289df));import{ListItemView as _0x2a1574,HighlightedTextView as _0x53b46a,ButtonView as _0x1f89d3,ListView as _0x384409,IconView as _0x2506a6,createDropdown as _0x5d67d1,InputTextView as _0x1173df}from'ckeditor5/src/ui.js';function _0x338f(){const _0x4bdf4c=['256464uNRgFu','updateTitle','AI_CHAT_HISTORY_LOADING_UNPINNING','setConversationPinned','tiny','ck-ai-chat-history__item-date','value','ck-ai-chat-history__item-row','AI_CHAT_HISTORY_CANCEL','ck-ai-chat-history__item-main-content','panelPosition','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','selectConversation','set','_titleView','match','edit:cancel','_createCheckView','bindTemplate','AI_CHAT_HISTORY_LOADING_RENAMING','editConversationTitle','isVisible','focus','isOn','AI_CHAT_HISTORY_PIN_BUTTON','add','actions','extendTemplate','clear','_createAcceptEditButtonView','click','ck-ai-chat-history__item--edit','bind','element','locale','AI_CHAT_HISTORY_ACCEPT','ck-ai-chat-history__item--active','execute','_createPinButtonView','AI_CHAT_HISTORY_REMOVE_CONFIRM','247713IuIidz','ck-ai-chat-history__item-actions','listitem','LOADING_LABELS','AI_CHAT_HISTORY_LOADING_REMOVING','ck-ai-chat-history__item-title','ck-ai-loader__text','AI_CHAT_HISTORY_REMOVE','237395wQLLRU','change:isEdit','span','ck-ai-chat-history__item-content','_createEditInputView','label','ck-hidden','div','isEdit','buttonView','string','loadingState','items','key','_createMenuDropdownView','_createSpinnerView','ck-ai-chat-history__item','ck-ai-chat-history__item-check-container','ck-confirm-view-cancel','highlightText','3658116YKtsDd','showConfirm','removeConversation','mainContent','ck-confirm-view-submit','AI_CHAT_HISTORY_LOADING_PINNING','AI_CHAT_HISTORY_EDIT_NAME','updateLoadingState','_createCancelEditButtonView','children','createCollection','_commitEditInputValue','ck-ai-loader','panelView','addMany','ck-ai-chat-history__item-check','withText','fire','then','649772aZzSIu','pinned','isMatching','409935StmTZs','text','setTemplate','Enter','1438398qcKygD'];_0x338f=function(){return _0x4bdf4c;};return _0x338f();}import{IconThreeHorizontalDots as _0x576ceb,IconPin as _0x439396,IconCheck as _0x35ffb7,IconCancel as _0x813f83}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1a3f23,ConfirmMixin as _0x5d8442}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x3cce10}from'es-toolkit/compat';function _0x509a(_0x6828bf,_0xe6de62){const _0x338ffd=_0x338f();return _0x509a=function(_0x509a69,_0x1423c6){_0x509a69=_0x509a69-0x92;let _0x2b43a3=_0x338ffd[_0x509a69];return _0x2b43a3;},_0x509a(_0x6828bf,_0xe6de62);}import{AISpinnerView as _0x1fc50e}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x336b93}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x5d8442(_0x2a1574){['id'];static [_0x2da127(0xdf)]={'remove':_0x2da127(0xe0),'rename':_0x2da127(0xc7),'pin':_0x2da127(0x9e),'unpin':_0x2da127(0xb6)};[_0x2da127(0xce)];[_0x2da127(0x9c)];[_0x2da127(0xc2)];constructor(_0xdb8a97,_0x2786e8){const _0x156d25=_0x2da127;super(_0xdb8a97);const _0x262bb0=this[_0x156d25(0xc6)];this[_0x156d25(0xc1)](_0x156d25(0xec),!0x1),this[_0x156d25(0xc1)](_0x156d25(0xc9),!0x0),this[_0x156d25(0xc1)](_0x156d25(0xad),!!_0x2786e8[_0x156d25(0xad)]),this[_0x156d25(0xc1)](_0x156d25(0xef),null),this['id']=_0x2786e8['id'];const {title:_0x3c7be8,createdAt:_0x251c90,active:_0x219b78=!0x1}=_0x2786e8;this[_0x156d25(0xc2)]=new _0x53b46a(),this[_0x156d25(0xc2)][_0x156d25(0xb0)]=_0x3c7be8,this[_0x156d25(0xc2)][_0x156d25(0xcf)]({'attributes':{'class':[_0x156d25(0xe1)]}});const _0x4b167c=this[_0x156d25(0xc5)](),_0x343458=this[_0x156d25(0xda)](_0xdb8a97),_0x1f0e7c=this[_0x156d25(0x93)](),_0x1fe122=this[_0x156d25(0xe8)](_0xdb8a97,_0x3c7be8),_0x24908c=this[_0x156d25(0xd1)](_0xdb8a97,_0x1fe122),_0x406425=this[_0x156d25(0xa1)](_0xdb8a97,_0x1fe122);this[_0x156d25(0xce)]=this[_0x156d25(0xa3)](),this[_0x156d25(0x9c)]=this[_0x156d25(0xa3)](),this[_0x156d25(0x9c)][_0x156d25(0xcd)](this[_0x156d25(0xc2)]),this[_0x156d25(0xce)][_0x156d25(0xcd)](_0x343458),this[_0x156d25(0xce)][_0x156d25(0xcd)](_0x1f0e7c),this['on'](_0x156d25(0xe5),(_0x4bf756,_0x235e64,_0x1db4b2)=>{const _0x1a2706=_0x156d25;this[_0x1a2706(0xce)][_0x1a2706(0xd0)](),this[_0x1a2706(0x9c)][_0x1a2706(0xd0)](),_0x1db4b2?(this[_0x1a2706(0xce)][_0x1a2706(0xcd)](_0x24908c),this[_0x1a2706(0xce)][_0x1a2706(0xcd)](_0x406425),this[_0x1a2706(0x9c)][_0x1a2706(0xcd)](_0x1fe122),_0x1fe122[_0x1a2706(0xd5)][_0x1a2706(0xca)]()):(this[_0x1a2706(0xce)][_0x1a2706(0xcd)](_0x343458),this[_0x1a2706(0xce)][_0x1a2706(0xcd)](_0x1f0e7c),this[_0x1a2706(0x9c)][_0x1a2706(0xcd)](this[_0x1a2706(0xc2)]));}),this[_0x156d25(0xb1)]({'tag':'li','attributes':{'class':[_0x156d25(0x95),_0x219b78?_0x156d25(0xd8):'',_0x262bb0['if'](_0x156d25(0xc9),_0x156d25(0xea),_0x4c9f36=>!_0x4c9f36),_0x262bb0['if'](_0x156d25(0xec),_0x156d25(0xd3))],'role':_0x156d25(0xde)},'children':[{'tag':_0x156d25(0xe6),'attributes':{'class':[_0x156d25(0x96)]},'children':[{'tag':_0x156d25(0xeb),'attributes':{'class':[_0x156d25(0xa8),_0x262bb0['if'](_0x156d25(0xef),_0x156d25(0xea),_0x4d8533=>!!_0x4d8533)]},'children':_0x219b78?[_0x4b167c]:[]},{'tag':_0x156d25(0xeb),'attributes':{'class':[_0x156d25(0xa5),_0x262bb0['if'](_0x156d25(0xef),_0x156d25(0xea),_0x3dab2f=>!_0x3dab2f)]},'children':[this[_0x156d25(0x94)]()]}]},{'tag':_0x156d25(0xeb),'attributes':{'class':[_0x156d25(0xbb)]},'children':[{'tag':_0x156d25(0xeb),'attributes':{'class':[_0x156d25(0xe7)]},'on':{'click':this[_0x156d25(0xc6)]['to'](_0x156d25(0xd2))},'children':[{'tag':_0x156d25(0xeb),'attributes':{'class':[_0x156d25(0xbd)]},'children':[{'tag':_0x156d25(0xeb),'attributes':{'class':[_0x156d25(0xe1),_0x262bb0['if'](_0x156d25(0xef),_0x156d25(0xea),_0x1180a9=>!!_0x1180a9)]},'children':this[_0x156d25(0x9c)]},{'tag':_0x156d25(0xeb),'attributes':{'class':[_0x156d25(0xe2),_0x262bb0['if'](_0x156d25(0xef),_0x156d25(0xea),_0x39c0e0=>!_0x39c0e0)]},'children':[{'text':_0x262bb0['to'](_0x156d25(0xef),_0x173d86=>_0x173d86?_0x336b93(this[_0x156d25(0xd6)],AIChatHistoryListItemView[_0x156d25(0xdf)][_0x173d86]):'')}]}]},{'tag':_0x156d25(0xe6),'attributes':{'class':[_0x156d25(0xb9)]},'children':[_0x251c90]}]},{'tag':_0x156d25(0xeb),'attributes':{'class':[_0x156d25(0xdd)]},'children':this[_0x156d25(0xce)]}]}]}),this['on'](_0x156d25(0xd2),()=>{const _0x6bcec4=_0x156d25;this[_0x6bcec4(0xec)]||this[_0x6bcec4(0xaa)](_0x6bcec4(0xc0),{'id':this['id']});});}[_0x2da127(0xb5)](_0x1bc33c){const _0x499134=_0x2da127;this[_0x499134(0xc2)][_0x499134(0xb0)]=_0x3cce10(_0x1bc33c);}[_0x2da127(0xa0)](_0x142c0a,_0x587874){const _0x447cab=_0x2da127;this[_0x447cab(0xc1)](_0x447cab(0xef),_0x587874?_0x142c0a:null);}[_0x2da127(0xc5)](){const _0x2c8bb3=_0x2da127,_0x428bf1=new _0x2506a6();return _0x428bf1[_0x2c8bb3(0xc1)]({'content':_0x35ffb7}),_0x428bf1;}[_0x2da127(0xda)](_0x13c7c3){const _0x108c88=_0x2da127,_0x1d4e44=new _0x1f89d3(_0x13c7c3);return _0x1d4e44[_0x108c88(0xc1)]({'label':_0x336b93(_0x13c7c3,_0x108c88(0xcc)),'icon':_0x439396,'withText':!0x1,'tooltip':!0x0}),_0x1d4e44[_0x108c88(0xd4)](_0x108c88(0xcb))['to'](this,_0x108c88(0xad)),_0x1d4e44['on'](_0x108c88(0xd9),()=>{const _0xde569c=_0x108c88,_0x5230d6=!this[_0xde569c(0xad)];this[_0xde569c(0xaa)](_0xde569c(0xb7),{'id':this['id'],'pinned':_0x5230d6});}),_0x1d4e44;}[_0x2da127(0x93)](){const _0x53a0df=_0x2da127,_0x4b27f2=_0x5d67d1(this[_0x53a0df(0xd6)],_0x1a3f23),_0x1886f8=_0x4b27f2[_0x53a0df(0xa6)][_0x53a0df(0xa2)];_0x4b27f2[_0x53a0df(0xed)][_0x53a0df(0xc1)]({'label':_0x336b93(this[_0x53a0df(0xd6)],_0x53a0df(0xbf)),'icon':_0x576ceb}),_0x4b27f2[_0x53a0df(0xbe)]='sw';const _0x539e86=new _0x1f89d3(this[_0x53a0df(0xd6)]);_0x539e86[_0x53a0df(0xe9)]=_0x336b93(this[_0x53a0df(0xd6)],_0x53a0df(0x9f)),_0x539e86[_0x53a0df(0xa9)]=!0x0,_0x539e86['on'](_0x53a0df(0xd9),()=>{const _0x4af8b7=_0x53a0df;this[_0x4af8b7(0xec)]=!0x0;});const _0xfa591d=new _0x1f89d3(this[_0x53a0df(0xd6)]);_0xfa591d[_0x53a0df(0xe9)]=_0x336b93(this[_0x53a0df(0xd6)],_0x53a0df(0xe3)),_0xfa591d[_0x53a0df(0xa9)]=!0x0,_0xfa591d['on'](_0x53a0df(0xd9),()=>{const _0x3b2b63=_0x53a0df;this[_0x3b2b63(0x9a)](_0x336b93(this[_0x3b2b63(0xd6)],_0x3b2b63(0xdb)),this[_0x3b2b63(0xd5)])[_0x3b2b63(0xab)](()=>{const _0x7e12c5=_0x3b2b63;this[_0x7e12c5(0xaa)](_0x7e12c5(0x9b),{'id':this['id']});});});const _0x2061fa=new _0x384409(this[_0x53a0df(0xd6)]),_0x1ead33=new _0x2a1574(this[_0x53a0df(0xd6)]);_0x1ead33[_0x53a0df(0xa2)][_0x53a0df(0xcd)](_0x539e86);const _0x1c257a=new _0x2a1574(this[_0x53a0df(0xd6)]);return _0x1c257a[_0x53a0df(0xa2)][_0x53a0df(0xcd)](_0xfa591d),_0x2061fa[_0x53a0df(0xf0)][_0x53a0df(0xa7)]([_0x1ead33,_0x1c257a]),_0x1886f8[_0x53a0df(0xcd)](_0x2061fa),_0x4b27f2;}[_0x2da127(0xe8)](_0x4cf0ff,_0x381aa7){const _0x2e06ae=_0x2da127,_0x4f3ec5=new _0x1173df(_0x4cf0ff),_0x1b1e1d=_0x4f3ec5[_0x2e06ae(0xc6)];return _0x4f3ec5[_0x2e06ae(0xba)]=_0x381aa7,_0x4f3ec5[_0x2e06ae(0xcf)]({'on':{'keydown':_0x1b1e1d['to'](_0x45666a=>{const _0x3e251a=_0x2e06ae;_0x3e251a(0xb2)==_0x45666a[_0x3e251a(0x92)]&&this[_0x3e251a(0xa4)](_0x4f3ec5);})}}),_0x4f3ec5;}[_0x2da127(0xd1)](_0x5a1a60,_0x457067){const _0x18f5f3=_0x2da127,_0x5791dd=new _0x1f89d3(_0x5a1a60);return _0x5791dd[_0x18f5f3(0xc1)]({'icon':_0x35ffb7,'withText':!0x1,'tooltip':_0x336b93(_0x5a1a60,_0x18f5f3(0xd7))}),_0x5791dd[_0x18f5f3(0xcf)]({'attributes':{'class':[_0x18f5f3(0x9d)]}}),_0x5791dd['on'](_0x18f5f3(0xd9),()=>{const _0x57e586=_0x18f5f3;this[_0x57e586(0xa4)](_0x457067);}),_0x5791dd;}[_0x2da127(0xa4)](_0x4b6488){const _0x4fc9b5=_0x2da127,_0x43ab8b=_0x4b6488[_0x4fc9b5(0xd5)][_0x4fc9b5(0xba)]||'';this[_0x4fc9b5(0xc2)][_0x4fc9b5(0xb0)]=_0x43ab8b,this[_0x4fc9b5(0xec)]=!0x1,this[_0x4fc9b5(0xaa)](_0x4fc9b5(0xc8),{'id':this['id'],'title':_0x43ab8b});}[_0x2da127(0xa1)](_0x3cc8cf,_0xf44e3e){const _0x1719ff=_0x2da127,_0x29eb73=new _0x1f89d3(_0x3cc8cf);return _0x29eb73[_0x1719ff(0xc1)]({'icon':_0x813f83,'withText':!0x1,'tooltip':_0x336b93(_0x3cc8cf,_0x1719ff(0xbc))}),_0x29eb73[_0x1719ff(0xcf)]({'attributes':{'class':[_0x1719ff(0x97)]}}),_0x29eb73['on'](_0x1719ff(0xd9),()=>{const _0x5ab4ce=_0x1719ff;this[_0x5ab4ce(0xec)]=!0x1,_0xf44e3e[_0x5ab4ce(0xba)]=this[_0x5ab4ce(0xc2)][_0x5ab4ce(0xb0)]||'',this[_0x5ab4ce(0xaa)](_0x5ab4ce(0xc4));}),_0x29eb73;}[_0x2da127(0x94)](){const _0x1b4de4=_0x2da127,_0x5a0064=new _0x1fc50e(_0x1b4de4(0xb8));return _0x5a0064[_0x1b4de4(0xc9)]=!0x0,_0x5a0064;}[_0x2da127(0xae)](_0x507c99){const _0x2c7016=_0x2da127;return this[_0x2c7016(0xc2)]&&_0x2c7016(0xee)==typeof this[_0x2c7016(0xc2)][_0x2c7016(0xb0)]&&this[_0x2c7016(0xc2)][_0x2c7016(0xb0)][_0x2c7016(0xc3)](_0x507c99)?{'title':!0x0}:null;}[_0x2da127(0x98)](_0x2818ac){const _0x3fc92d=_0x2da127;this[_0x3fc92d(0xc2)][_0x3fc92d(0x98)](_0x2818ac);}}
23
+ function _0x3cca(_0x5f0cd6,_0x484dc2){const _0x98d602=_0x98d6();return _0x3cca=function(_0x3ccaf0,_0x41b846){_0x3ccaf0=_0x3ccaf0-0xf7;let _0x321a7b=_0x98d602[_0x3ccaf0];return _0x321a7b;},_0x3cca(_0x5f0cd6,_0x484dc2);}const _0xa449d3=_0x3cca;(function(_0x4d6198,_0x26ea61){const _0x2ef69d=_0x3cca,_0x220626=_0x4d6198();while(!![]){try{const _0x38f8e6=parseInt(_0x2ef69d(0x117))/0x1+-parseInt(_0x2ef69d(0x103))/0x2+-parseInt(_0x2ef69d(0x12b))/0x3+parseInt(_0x2ef69d(0xfb))/0x4*(-parseInt(_0x2ef69d(0x136))/0x5)+-parseInt(_0x2ef69d(0x10f))/0x6*(parseInt(_0x2ef69d(0x134))/0x7)+-parseInt(_0x2ef69d(0x145))/0x8*(-parseInt(_0x2ef69d(0x14b))/0x9)+parseInt(_0x2ef69d(0x132))/0xa*(parseInt(_0x2ef69d(0x118))/0xb);if(_0x38f8e6===_0x26ea61)break;else _0x220626['push'](_0x220626['shift']());}catch(_0x4e45a3){_0x220626['push'](_0x220626['shift']());}}}(_0x98d6,0xb2472));import{ListItemView as _0x75fc1e,HighlightedTextView as _0xcacadd,ButtonView as _0x3f1a91,ListView as _0x3686d3,IconView as _0x203f6b,createDropdown as _0x4db734,InputTextView as _0x44899b}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x2dcd0b,IconPin as _0x236447,IconCheck as _0x403307,IconCancel as _0x9f5594}from'ckeditor5/src/icons.js';function _0x98d6(){const _0x53d9d7=['fire','AI_CHAT_HISTORY_EDIT_NAME','withText','string','AI_CHAT_HISTORY_LOADING_REMOVING','9rLqEEm','pinned','ck-ai-chat-history__item--active','buttonView','bindTemplate','children','ck-ai-chat-history__item-row','AI_CHAT_HISTORY_REMOVE','set','AI_CHAT_HISTORY_REMOVE_CONFIRM','click','match','change:isEdit','ck-ai-chat-history__item--edit','panelView','_createSpinnerView','locale','ck-ai-loader','span','73868ApkmmS','panelPosition','_createMenuDropdownView','ck-ai-chat-history__item-date','ck-ai-chat-history__item-actions','ck-ai-chat-history__item','AI_CHAT_HISTORY_CANCEL','items','2151054VJZdOW','then','AI_CHAT_HISTORY_LOADING_RENAMING','element','listitem','label','_createAcceptEditButtonView','tiny','editConversationTitle','_createCheckView','ck-hidden','_createPinButtonView','2360082SEEXUH','extendTemplate','AI_CHAT_HISTORY_ACCEPT','text','focus','highlightText','ck-confirm-view-submit','AI_CHAT_HISTORY_LOADING_UNPINNING','260151WISRqD','1459271FRUFca','ck-ai-chat-history__item-check','_createCancelEditButtonView','div','actions','isOn','ck-confirm-view-cancel','updateTitle','clear','Enter','mainContent','updateLoadingState','_titleView','ck-ai-loader__text','setConversationPinned','ck-ai-chat-history__item-title','isMatching','isVisible','showConfirm','3164676sNHyBW','setTemplate','edit:cancel','removeConversation','bind','AI_CHAT_HISTORY_LOADING_PINNING','execute','190pxgGTV','createCollection','7XJDwAh','key','200vAhiWo','add','ck-ai-chat-history__item-main-content','addMany','ck-ai-chat-history__item-content','loadingState','isEdit','LOADING_LABELS','_createEditInputView','selectConversation','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_PIN_BUTTON','_commitEditInputValue','value','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','9695696NCaaJZ'];_0x98d6=function(){return _0x53d9d7;};return _0x98d6();}import{LateFocusDropdownButtonView as _0x6641bf,ConfirmMixin as _0x14b505}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x45a8c7}from'es-toolkit/compat';import{AISpinnerView as _0x4a5ae8}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x452323}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x14b505(_0x75fc1e){['id'];static [_0xa449d3(0x13d)]={'remove':_0xa449d3(0x14a),'rename':_0xa449d3(0x105),'pin':_0xa449d3(0x130),'unpin':_0xa449d3(0x116)};[_0xa449d3(0x11c)];[_0xa449d3(0x122)];[_0xa449d3(0x124)];constructor(_0x26e37a,_0x5db7ea){const _0x2b5b99=_0xa449d3;super(_0x26e37a);const _0x39bc01=this[_0x2b5b99(0x14f)];this[_0x2b5b99(0x153)](_0x2b5b99(0x13c),!0x1),this[_0x2b5b99(0x153)](_0x2b5b99(0x129),!0x0),this[_0x2b5b99(0x153)](_0x2b5b99(0x14c),!!_0x5db7ea[_0x2b5b99(0x14c)]),this[_0x2b5b99(0x153)](_0x2b5b99(0x13b),null),this['id']=_0x5db7ea['id'];const {title:_0xa947bc,createdAt:_0x2428c8,active:_0x199c70=!0x1}=_0x5db7ea;this[_0x2b5b99(0x124)]=new _0xcacadd(),this[_0x2b5b99(0x124)][_0x2b5b99(0x112)]=_0xa947bc,this[_0x2b5b99(0x124)][_0x2b5b99(0x110)]({'attributes':{'class':[_0x2b5b99(0x127)]}});const _0x55269d=this[_0x2b5b99(0x10c)](),_0x39a4b2=this[_0x2b5b99(0x10e)](_0x26e37a),_0x2e61b2=this[_0x2b5b99(0xfd)](),_0x1b4b91=this[_0x2b5b99(0x13e)](_0x26e37a,_0xa947bc),_0x549d52=this[_0x2b5b99(0x109)](_0x26e37a,_0x1b4b91),_0x4cae9=this[_0x2b5b99(0x11a)](_0x26e37a,_0x1b4b91);this[_0x2b5b99(0x11c)]=this[_0x2b5b99(0x133)](),this[_0x2b5b99(0x122)]=this[_0x2b5b99(0x133)](),this[_0x2b5b99(0x122)][_0x2b5b99(0x137)](this[_0x2b5b99(0x124)]),this[_0x2b5b99(0x11c)][_0x2b5b99(0x137)](_0x39a4b2),this[_0x2b5b99(0x11c)][_0x2b5b99(0x137)](_0x2e61b2),this['on'](_0x2b5b99(0x157),(_0xc4ff41,_0x45cba0,_0x9bb954)=>{const _0x2067c7=_0x2b5b99;this[_0x2067c7(0x11c)][_0x2067c7(0x120)](),this[_0x2067c7(0x122)][_0x2067c7(0x120)](),_0x9bb954?(this[_0x2067c7(0x11c)][_0x2067c7(0x137)](_0x549d52),this[_0x2067c7(0x11c)][_0x2067c7(0x137)](_0x4cae9),this[_0x2067c7(0x122)][_0x2067c7(0x137)](_0x1b4b91),_0x1b4b91[_0x2067c7(0x106)][_0x2067c7(0x113)]()):(this[_0x2067c7(0x11c)][_0x2067c7(0x137)](_0x39a4b2),this[_0x2067c7(0x11c)][_0x2067c7(0x137)](_0x2e61b2),this[_0x2067c7(0x122)][_0x2067c7(0x137)](this[_0x2067c7(0x124)]));}),this[_0x2b5b99(0x12c)]({'tag':'li','attributes':{'class':[_0x2b5b99(0x100),_0x199c70?_0x2b5b99(0x14d):'',_0x39bc01['if'](_0x2b5b99(0x129),_0x2b5b99(0x10d),_0x5bba88=>!_0x5bba88),_0x39bc01['if'](_0x2b5b99(0x13c),_0x2b5b99(0x158))],'role':_0x2b5b99(0x107)},'children':[{'tag':_0x2b5b99(0xfa),'attributes':{'class':[_0x2b5b99(0x140)]},'children':[{'tag':_0x2b5b99(0x11b),'attributes':{'class':[_0x2b5b99(0x119),_0x39bc01['if'](_0x2b5b99(0x13b),_0x2b5b99(0x10d),_0x28ba50=>!!_0x28ba50)]},'children':_0x199c70?[_0x55269d]:[]},{'tag':_0x2b5b99(0x11b),'attributes':{'class':[_0x2b5b99(0xf9),_0x39bc01['if'](_0x2b5b99(0x13b),_0x2b5b99(0x10d),_0x1f2b31=>!_0x1f2b31)]},'children':[this[_0x2b5b99(0xf7)]()]}]},{'tag':_0x2b5b99(0x11b),'attributes':{'class':[_0x2b5b99(0x151)]},'children':[{'tag':_0x2b5b99(0x11b),'attributes':{'class':[_0x2b5b99(0x13a)]},'on':{'click':this[_0x2b5b99(0x14f)]['to'](_0x2b5b99(0x155))},'children':[{'tag':_0x2b5b99(0x11b),'attributes':{'class':[_0x2b5b99(0x138)]},'children':[{'tag':_0x2b5b99(0x11b),'attributes':{'class':[_0x2b5b99(0x127),_0x39bc01['if'](_0x2b5b99(0x13b),_0x2b5b99(0x10d),_0x16427a=>!!_0x16427a)]},'children':this[_0x2b5b99(0x122)]},{'tag':_0x2b5b99(0x11b),'attributes':{'class':[_0x2b5b99(0x125),_0x39bc01['if'](_0x2b5b99(0x13b),_0x2b5b99(0x10d),_0x28984f=>!_0x28984f)]},'children':[{'text':_0x39bc01['to'](_0x2b5b99(0x13b),_0x3e8be6=>_0x3e8be6?_0x452323(this[_0x2b5b99(0xf8)],AIChatHistoryListItemView[_0x2b5b99(0x13d)][_0x3e8be6]):'')}]}]},{'tag':_0x2b5b99(0xfa),'attributes':{'class':[_0x2b5b99(0xfe)]},'children':[_0x2428c8]}]},{'tag':_0x2b5b99(0x11b),'attributes':{'class':[_0x2b5b99(0xff)]},'children':this[_0x2b5b99(0x11c)]}]}]}),this['on'](_0x2b5b99(0x155),()=>{const _0x46dc45=_0x2b5b99;this[_0x46dc45(0x13c)]||this[_0x46dc45(0x146)](_0x46dc45(0x13f),{'id':this['id']});});}[_0xa449d3(0x11f)](_0x2919f8){const _0x88e9b=_0xa449d3;this[_0x88e9b(0x124)][_0x88e9b(0x112)]=_0x45a8c7(_0x2919f8);}[_0xa449d3(0x123)](_0xbe22d3,_0xc07f76){const _0x5e000a=_0xa449d3;this[_0x5e000a(0x153)](_0x5e000a(0x13b),_0xc07f76?_0xbe22d3:null);}[_0xa449d3(0x10c)](){const _0x5625e=_0xa449d3,_0x36febd=new _0x203f6b();return _0x36febd[_0x5625e(0x153)]({'content':_0x403307}),_0x36febd;}[_0xa449d3(0x10e)](_0x599a34){const _0x4ad873=_0xa449d3,_0x1a588e=new _0x3f1a91(_0x599a34);return _0x1a588e[_0x4ad873(0x153)]({'label':_0x452323(_0x599a34,_0x4ad873(0x141)),'icon':_0x236447,'withText':!0x1,'tooltip':!0x0}),_0x1a588e[_0x4ad873(0x12f)](_0x4ad873(0x11d))['to'](this,_0x4ad873(0x14c)),_0x1a588e['on'](_0x4ad873(0x131),()=>{const _0x144036=_0x4ad873,_0x1c295e=!this[_0x144036(0x14c)];this[_0x144036(0x146)](_0x144036(0x126),{'id':this['id'],'pinned':_0x1c295e});}),_0x1a588e;}[_0xa449d3(0xfd)](){const _0x363161=_0xa449d3,_0x402cb3=_0x4db734(this[_0x363161(0xf8)],_0x6641bf),_0xddd6f3=_0x402cb3[_0x363161(0x159)][_0x363161(0x150)];_0x402cb3[_0x363161(0x14e)][_0x363161(0x153)]({'label':_0x452323(this[_0x363161(0xf8)],_0x363161(0x144)),'icon':_0x2dcd0b}),_0x402cb3[_0x363161(0xfc)]='sw';const _0x403f6f=new _0x3f1a91(this[_0x363161(0xf8)]);_0x403f6f[_0x363161(0x108)]=_0x452323(this[_0x363161(0xf8)],_0x363161(0x147)),_0x403f6f[_0x363161(0x148)]=!0x0,_0x403f6f['on'](_0x363161(0x131),()=>{const _0x3486ec=_0x363161;this[_0x3486ec(0x13c)]=!0x0;});const _0x13319e=new _0x3f1a91(this[_0x363161(0xf8)]);_0x13319e[_0x363161(0x108)]=_0x452323(this[_0x363161(0xf8)],_0x363161(0x152)),_0x13319e[_0x363161(0x148)]=!0x0,_0x13319e['on'](_0x363161(0x131),()=>{const _0xcf5cf=_0x363161;this[_0xcf5cf(0x12a)](_0x452323(this[_0xcf5cf(0xf8)],_0xcf5cf(0x154)),this[_0xcf5cf(0x106)])[_0xcf5cf(0x104)](()=>{const _0x3db139=_0xcf5cf;this[_0x3db139(0x146)](_0x3db139(0x12e),{'id':this['id']});});});const _0x5d2440=new _0x3686d3(this[_0x363161(0xf8)]),_0x159298=new _0x75fc1e(this[_0x363161(0xf8)]);_0x159298[_0x363161(0x150)][_0x363161(0x137)](_0x403f6f);const _0x4bc19c=new _0x75fc1e(this[_0x363161(0xf8)]);return _0x4bc19c[_0x363161(0x150)][_0x363161(0x137)](_0x13319e),_0x5d2440[_0x363161(0x102)][_0x363161(0x139)]([_0x159298,_0x4bc19c]),_0xddd6f3[_0x363161(0x137)](_0x5d2440),_0x402cb3;}[_0xa449d3(0x13e)](_0x4e9519,_0x2eda08){const _0x3e8f04=_0xa449d3,_0x2fd560=new _0x44899b(_0x4e9519),_0x500b99=_0x2fd560[_0x3e8f04(0x14f)];return _0x2fd560[_0x3e8f04(0x143)]=_0x2eda08,_0x2fd560[_0x3e8f04(0x110)]({'on':{'keydown':_0x500b99['to'](_0x312138=>{const _0x539d12=_0x3e8f04;_0x539d12(0x121)==_0x312138[_0x539d12(0x135)]&&this[_0x539d12(0x142)](_0x2fd560);})}}),_0x2fd560;}[_0xa449d3(0x109)](_0x891c46,_0x3db85c){const _0x4f9929=_0xa449d3,_0x3a86b9=new _0x3f1a91(_0x891c46);return _0x3a86b9[_0x4f9929(0x153)]({'icon':_0x403307,'withText':!0x1,'tooltip':_0x452323(_0x891c46,_0x4f9929(0x111))}),_0x3a86b9[_0x4f9929(0x110)]({'attributes':{'class':[_0x4f9929(0x115)]}}),_0x3a86b9['on'](_0x4f9929(0x131),()=>{const _0x2c741d=_0x4f9929;this[_0x2c741d(0x142)](_0x3db85c);}),_0x3a86b9;}[_0xa449d3(0x142)](_0x3dcd67){const _0x1e8d18=_0xa449d3,_0x4efa9f=_0x3dcd67[_0x1e8d18(0x106)][_0x1e8d18(0x143)]||'';this[_0x1e8d18(0x124)][_0x1e8d18(0x112)]=_0x4efa9f,this[_0x1e8d18(0x13c)]=!0x1,this[_0x1e8d18(0x146)](_0x1e8d18(0x10b),{'id':this['id'],'title':_0x4efa9f});}[_0xa449d3(0x11a)](_0x4a7a49,_0x3d1776){const _0x45cc8b=_0xa449d3,_0x359c13=new _0x3f1a91(_0x4a7a49);return _0x359c13[_0x45cc8b(0x153)]({'icon':_0x9f5594,'withText':!0x1,'tooltip':_0x452323(_0x4a7a49,_0x45cc8b(0x101))}),_0x359c13[_0x45cc8b(0x110)]({'attributes':{'class':[_0x45cc8b(0x11e)]}}),_0x359c13['on'](_0x45cc8b(0x131),()=>{const _0x571365=_0x45cc8b;this[_0x571365(0x13c)]=!0x1,_0x3d1776[_0x571365(0x143)]=this[_0x571365(0x124)][_0x571365(0x112)]||'',this[_0x571365(0x146)](_0x571365(0x12d));}),_0x359c13;}[_0xa449d3(0xf7)](){const _0x3d46c9=_0xa449d3,_0x3ae6f9=new _0x4a5ae8(_0x3d46c9(0x10a));return _0x3ae6f9[_0x3d46c9(0x129)]=!0x0,_0x3ae6f9;}[_0xa449d3(0x128)](_0x587873){const _0x4a3fb2=_0xa449d3;return this[_0x4a3fb2(0x124)]&&_0x4a3fb2(0x149)==typeof this[_0x4a3fb2(0x124)][_0x4a3fb2(0x112)]&&this[_0x4a3fb2(0x124)][_0x4a3fb2(0x112)][_0x4a3fb2(0x156)](_0x587873)?{'title':!0x0}:null;}[_0xa449d3(0x114)](_0x182c4f){const _0x39002c=_0xa449d3;this[_0x39002c(0x124)][_0x39002c(0x114)](_0x182c4f);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x52d1(_0x4a144e,_0x5b3fc8){const _0x5f2d0e=_0x5f2d();return _0x52d1=function(_0x52d133,_0x5cdc51){_0x52d133=_0x52d133-0xe9;let _0x2d172b=_0x5f2d0e[_0x52d133];return _0x2d172b;},_0x52d1(_0x4a144e,_0x5b3fc8);}function _0x5f2d(){const _0x4950f2=['ck-ai-chat-history__section-title','4592536IoEKDI','removeItem','addMany','6979128SFGCwT','find','items','45HXlsXv','div','_itemsListView','ck-hidden','highlightText','5261395immvMj','10405801BJbxEE','set','2350QebQit','1388258UMFUIw','title','bindTemplate','ck-ai-chat-history__section','remove','filter','length','354QFvQFS','isVisible','setTemplate','indexOf','splice','isMatching','itemsViews','getItem','6651380vbWSmk'];_0x5f2d=function(){return _0x4950f2;};return _0x5f2d();}const _0x5c795e=_0x52d1;(function(_0x9e3c93,_0x5e1491){const _0x3c6748=_0x52d1,_0x28aee2=_0x9e3c93();while(!![]){try{const _0x3bcb35=-parseInt(_0x3c6748(0x107))/0x1+-parseInt(_0x3c6748(0x106))/0x2*(parseInt(_0x3c6748(0xee))/0x3)+parseInt(_0x3c6748(0xf6))/0x4+parseInt(_0x3c6748(0x103))/0x5+parseInt(_0x3c6748(0xfb))/0x6+parseInt(_0x3c6748(0x104))/0x7+-parseInt(_0x3c6748(0xf8))/0x8*(parseInt(_0x3c6748(0xfe))/0x9);if(_0x3bcb35===_0x5e1491)break;else _0x28aee2['push'](_0x28aee2['shift']());}catch(_0x43fc5e){_0x28aee2['push'](_0x28aee2['shift']());}}}(_0x5f2d,0xec3bc));import{ListItemView as _0x13cbd6,View as _0x5e26b5,ListView as _0x71c46f}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x13cbd6{[_0x5c795e(0x108)];[_0x5c795e(0xf4)];[_0x5c795e(0x100)];constructor(_0x1fcd21,{title:_0x54fc15,items:_0x5cfdf0}){const _0x616aa3=_0x5c795e;super(_0x1fcd21);const _0x4e1d56=this[_0x616aa3(0xe9)];this[_0x616aa3(0x105)](_0x616aa3(0xef),!0x0),this[_0x616aa3(0x108)]=_0x54fc15,this[_0x616aa3(0xf4)]=_0x5cfdf0;const _0x3c237a=new _0x5e26b5(_0x1fcd21);_0x3c237a[_0x616aa3(0xf0)]({'tag':_0x616aa3(0xff),'attributes':{'class':[_0x616aa3(0xf7)]},'children':[this[_0x616aa3(0x108)]]}),this[_0x616aa3(0x100)]=new _0x71c46f(_0x1fcd21),this[_0x616aa3(0x100)][_0x616aa3(0xfd)][_0x616aa3(0xfa)](this[_0x616aa3(0xf4)]),this[_0x616aa3(0xf0)]({'tag':'li','attributes':{'class':[_0x616aa3(0xea),_0x4e1d56['if'](_0x616aa3(0xef),_0x616aa3(0x101),_0x5f1bdf=>!_0x5f1bdf)]},'children':[_0x3c237a,this[_0x616aa3(0x100)]]});}[_0x5c795e(0xec)](_0x1df396){const _0x324a86=_0x5c795e,_0x17ffcc=this[_0x324a86(0xf4)][_0x324a86(0xed)];let _0x2cb299=0x0;for(const _0x111bea of this[_0x324a86(0xf4)]){if(_0x1df396){const _0x3e9f05=_0x111bea[_0x324a86(0xf3)](_0x1df396);_0x111bea[_0x324a86(0xef)]=!!_0x3e9f05,_0x111bea[_0x324a86(0x102)](_0x1df396);}else _0x111bea[_0x324a86(0xef)]=!0x0,_0x111bea[_0x324a86(0x102)](null);_0x111bea[_0x324a86(0xef)]&&_0x2cb299++;}return this[_0x324a86(0xef)]=_0x2cb299>0x0,{'resultsCount':_0x2cb299,'totalItemsCount':_0x17ffcc};}[_0x5c795e(0xf5)](_0x127512){const _0x4f8489=_0x5c795e;return this[_0x4f8489(0xf4)][_0x4f8489(0xfc)](_0x185868=>_0x185868['id']===_0x127512);}[_0x5c795e(0xf9)](_0xf3cb33){const _0x587eca=_0x5c795e,_0x5288a2=this[_0x587eca(0xf4)][_0x587eca(0xf1)](_0xf3cb33);-0x1!==_0x5288a2&&(this[_0x587eca(0xf4)][_0x587eca(0xf2)](_0x5288a2,0x1),this[_0x587eca(0x100)][_0x587eca(0xfd)][_0x587eca(0xeb)](_0xf3cb33));}}
23
+ function _0x3e64(_0x11d8ba,_0x1ab91f){const _0x13e16b=_0x13e1();return _0x3e64=function(_0x3e64e7,_0xd63d23){_0x3e64e7=_0x3e64e7-0xec;let _0x1a60ce=_0x13e16b[_0x3e64e7];return _0x1a60ce;},_0x3e64(_0x11d8ba,_0x1ab91f);}const _0x566c32=_0x3e64;function _0x13e1(){const _0x34964d=['remove','2847436lsjPHK','indexOf','filter','div','bindTemplate','30837978iCeHHR','isVisible','ck-ai-chat-history__section-title','ck-ai-chat-history__section','850lIvMTE','getItem','ck-hidden','set','length','32748diisOO','setTemplate','title','722966kjCHBG','items','7Wihnap','find','isMatching','7464280Wyjafj','1935366iKhjFY','highlightText','removeItem','_itemsListView','addMany','6738342EYcmAK','splice','itemsViews'];_0x13e1=function(){return _0x34964d;};return _0x13e1();}(function(_0x36d23c,_0x1ca514){const _0x1a70d6=_0x3e64,_0x41d03c=_0x36d23c();while(!![]){try{const _0x597103=-parseInt(_0x1a70d6(0xfe))/0x1+-parseInt(_0x1a70d6(0xed))/0x2+parseInt(_0x1a70d6(0x104))/0x3+-parseInt(_0x1a70d6(0xfb))/0x4*(parseInt(_0x1a70d6(0xf6))/0x5)+parseInt(_0x1a70d6(0x109))/0x6*(parseInt(_0x1a70d6(0x100))/0x7)+-parseInt(_0x1a70d6(0x103))/0x8+parseInt(_0x1a70d6(0xf2))/0x9;if(_0x597103===_0x1ca514)break;else _0x41d03c['push'](_0x41d03c['shift']());}catch(_0x3e42da){_0x41d03c['push'](_0x41d03c['shift']());}}}(_0x13e1,0xb08a8));import{ListItemView as _0x49e88,View as _0x58e625,ListView as _0x1d4b09}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x49e88{[_0x566c32(0xfd)];[_0x566c32(0x10b)];[_0x566c32(0x107)];constructor(_0x19c718,{title:_0x4815f1,items:_0x24b66f}){const _0x28acab=_0x566c32;super(_0x19c718);const _0x366169=this[_0x28acab(0xf1)];this[_0x28acab(0xf9)](_0x28acab(0xf3),!0x0),this[_0x28acab(0xfd)]=_0x4815f1,this[_0x28acab(0x10b)]=_0x24b66f;const _0x46acfa=new _0x58e625(_0x19c718);_0x46acfa[_0x28acab(0xfc)]({'tag':_0x28acab(0xf0),'attributes':{'class':[_0x28acab(0xf4)]},'children':[this[_0x28acab(0xfd)]]}),this[_0x28acab(0x107)]=new _0x1d4b09(_0x19c718),this[_0x28acab(0x107)][_0x28acab(0xff)][_0x28acab(0x108)](this[_0x28acab(0x10b)]),this[_0x28acab(0xfc)]({'tag':'li','attributes':{'class':[_0x28acab(0xf5),_0x366169['if'](_0x28acab(0xf3),_0x28acab(0xf8),_0x53ee62=>!_0x53ee62)]},'children':[_0x46acfa,this[_0x28acab(0x107)]]});}[_0x566c32(0xef)](_0x261936){const _0x40779b=_0x566c32,_0x556087=this[_0x40779b(0x10b)][_0x40779b(0xfa)];let _0x439b1a=0x0;for(const _0x59c00d of this[_0x40779b(0x10b)]){if(_0x261936){const _0x157233=_0x59c00d[_0x40779b(0x102)](_0x261936);_0x59c00d[_0x40779b(0xf3)]=!!_0x157233,_0x59c00d[_0x40779b(0x105)](_0x261936);}else _0x59c00d[_0x40779b(0xf3)]=!0x0,_0x59c00d[_0x40779b(0x105)](null);_0x59c00d[_0x40779b(0xf3)]&&_0x439b1a++;}return this[_0x40779b(0xf3)]=_0x439b1a>0x0,{'resultsCount':_0x439b1a,'totalItemsCount':_0x556087};}[_0x566c32(0xf7)](_0x2b88dc){const _0x4ef7d6=_0x566c32;return this[_0x4ef7d6(0x10b)][_0x4ef7d6(0x101)](_0x57d8fa=>_0x57d8fa['id']===_0x2b88dc);}[_0x566c32(0x106)](_0x26b9ce){const _0x30c2a2=_0x566c32,_0x40b4a3=this[_0x30c2a2(0x10b)][_0x30c2a2(0xee)](_0x26b9ce);-0x1!==_0x40b4a3&&(this[_0x30c2a2(0x10b)][_0x30c2a2(0x10a)](_0x40b4a3,0x1),this[_0x30c2a2(0x107)][_0x30c2a2(0xff)][_0x30c2a2(0xec)](_0x26b9ce));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8d2b5b=_0x5829;function _0x5829(_0x42d15e,_0x34da70){const _0x2f6bf5=_0x2f6b();return _0x5829=function(_0x582941,_0x3e879c){_0x582941=_0x582941-0x139;let _0x4c746d=_0x2f6bf5[_0x582941];return _0x4c746d;},_0x5829(_0x42d15e,_0x34da70);}(function(_0x39c72c,_0x347444){const _0xa826f0=_0x5829,_0x37bdb4=_0x39c72c();while(!![]){try{const _0xad20c8=parseInt(_0xa826f0(0x147))/0x1*(parseInt(_0xa826f0(0x14a))/0x2)+-parseInt(_0xa826f0(0x141))/0x3*(-parseInt(_0xa826f0(0x139))/0x4)+parseInt(_0xa826f0(0x146))/0x5*(-parseInt(_0xa826f0(0x13e))/0x6)+-parseInt(_0xa826f0(0x13b))/0x7*(parseInt(_0xa826f0(0x14b))/0x8)+-parseInt(_0xa826f0(0x149))/0x9*(parseInt(_0xa826f0(0x13a))/0xa)+-parseInt(_0xa826f0(0x13d))/0xb*(parseInt(_0xa826f0(0x145))/0xc)+parseInt(_0xa826f0(0x144))/0xd;if(_0xad20c8===_0x347444)break;else _0x37bdb4['push'](_0x37bdb4['shift']());}catch(_0x5abfde){_0x37bdb4['push'](_0x37bdb4['shift']());}}}(_0x2f6b,0x18bae));function _0x2f6b(){const _0x5922be=['extendTemplate','12699xXQHTO','4UFxHvE','120WMhIvO','188DOvZUd','1130oDBLlW','16562LUThtX','items','11XCtmLZ','552AcsBtS','ck-ai-chat-history__sections','filter','8328sVpuAh','addMany','sections','3323866WHRfhV','620532gNLgYX','3310budLWl','11344FFJSlS'];_0x2f6b=function(){return _0x5922be;};return _0x2f6b();}import{ListView as _0x112002}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x112002{[_0x8d2b5b(0x143)];constructor(_0x343e54,_0x3d030a){const _0x4880ed=_0x8d2b5b;super(_0x343e54),this[_0x4880ed(0x143)]=_0x3d030a,this[_0x4880ed(0x13c)][_0x4880ed(0x142)](this[_0x4880ed(0x143)]),this[_0x4880ed(0x148)]({'attributes':{'class':[_0x4880ed(0x13f)]}});}[_0x8d2b5b(0x140)](_0x79db08){const _0x4dd818=_0x8d2b5b;let _0x5d125f=0x0,_0x14e6b8=0x0;for(const _0x2900a2 of this[_0x4dd818(0x143)]){const {resultsCount:_0x5d2ce5,totalItemsCount:_0x7fe412}=_0x2900a2[_0x4dd818(0x140)](_0x79db08);_0x5d125f+=_0x5d2ce5,_0x14e6b8+=_0x7fe412;}return{'resultsCount':_0x5d125f,'totalItemsCount':_0x14e6b8};}}
23
+ function _0x1eed(_0x19563c,_0x5c44b1){const _0x159c44=_0x159c();return _0x1eed=function(_0x1eed2e,_0x10fd44){_0x1eed2e=_0x1eed2e-0xd9;let _0x41c81c=_0x159c44[_0x1eed2e];return _0x41c81c;},_0x1eed(_0x19563c,_0x5c44b1);}const _0x3a4e75=_0x1eed;(function(_0x5cef4c,_0x292ce7){const _0x761fbf=_0x1eed,_0x1f89aa=_0x5cef4c();while(!![]){try{const _0x52e123=parseInt(_0x761fbf(0xd9))/0x1*(-parseInt(_0x761fbf(0xe4))/0x2)+-parseInt(_0x761fbf(0xda))/0x3+-parseInt(_0x761fbf(0xe1))/0x4*(parseInt(_0x761fbf(0xe6))/0x5)+-parseInt(_0x761fbf(0xe5))/0x6+parseInt(_0x761fbf(0xe3))/0x7+-parseInt(_0x761fbf(0xde))/0x8+-parseInt(_0x761fbf(0xe0))/0x9*(-parseInt(_0x761fbf(0xe7))/0xa);if(_0x52e123===_0x292ce7)break;else _0x1f89aa['push'](_0x1f89aa['shift']());}catch(_0xaa9785){_0x1f89aa['push'](_0x1f89aa['shift']());}}}(_0x159c,0x5e6f5));import{ListView as _0x10139a}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x10139a{[_0x3a4e75(0xdb)];constructor(_0x21f7cc,_0x175ae4){const _0x4991f3=_0x3a4e75;super(_0x21f7cc),this[_0x4991f3(0xdb)]=_0x175ae4,this[_0x4991f3(0xdd)][_0x4991f3(0xdf)](this[_0x4991f3(0xdb)]),this[_0x4991f3(0xe8)]({'attributes':{'class':[_0x4991f3(0xdc)]}});}[_0x3a4e75(0xe2)](_0x4dc5c4){const _0x24169c=_0x3a4e75;let _0x34be8f=0x0,_0x553e06=0x0;for(const _0x58a6cd of this[_0x24169c(0xdb)]){const {resultsCount:_0x5b1b59,totalItemsCount:_0x3868b7}=_0x58a6cd[_0x24169c(0xe2)](_0x4dc5c4);_0x34be8f+=_0x5b1b59,_0x553e06+=_0x3868b7;}return{'resultsCount':_0x34be8f,'totalItemsCount':_0x553e06};}}function _0x159c(){const _0x395a65=['1900758VFkOiD','sections','ck-ai-chat-history__sections','items','870056HzKlaB','addMany','3816AGrEVa','516HoVkzv','filter','3433801pangEs','2kDPPvt','3217692uIygIa','24955lYyrbH','49970xEtQok','extendTemplate','300002VjuSwD'];_0x159c=function(){return _0x395a65;};return _0x159c();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x528728=_0x4801;(function(_0x1f0c16,_0x14b2c0){const _0x3c694b=_0x4801,_0x3be2c0=_0x1f0c16();while(!![]){try{const _0x4e5bd0=-parseInt(_0x3c694b(0xa5))/0x1*(parseInt(_0x3c694b(0xd7))/0x2)+-parseInt(_0x3c694b(0x89))/0x3*(-parseInt(_0x3c694b(0xab))/0x4)+-parseInt(_0x3c694b(0xa7))/0x5*(-parseInt(_0x3c694b(0x98))/0x6)+parseInt(_0x3c694b(0x96))/0x7*(-parseInt(_0x3c694b(0x91))/0x8)+parseInt(_0x3c694b(0xc0))/0x9*(parseInt(_0x3c694b(0x87))/0xa)+-parseInt(_0x3c694b(0xac))/0xb+parseInt(_0x3c694b(0xc5))/0xc;if(_0x4e5bd0===_0x14b2c0)break;else _0x3be2c0['push'](_0x3be2c0['shift']());}catch(_0x1ff062){_0x3be2c0['push'](_0x3be2c0['shift']());}}}(_0x5894,0xec98b));import{View as _0x516f09,SearchTextView as _0x57c897,FormHeaderView as _0x48fbc3,ButtonView as _0x3d78d6}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x106de3,IconCancel as _0x4b2d3a,IconPlus as _0x2621fd}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2fcdb5}from'./aichathistorysectionlistview.js';function _0x5894(){const _0x1c1789=['execute','errorMessage','AI_CHAT_HISTORY_SEARCH_LABEL','updateHistoryItemsWithCategories','change:isLoading','getItem','AI_CHAT_LABEL_NEW_CHAT','updateItemTitle','ck-ai-header\x20ck-ai-header_history','remove','updateLoadingState','ck-ai-chat-history__empty','searchView','itemsViews','2848617hKTUsc','ck-ai-chat-history__content','isLoading','isVisible','AI_CHAT_HISTORY_HEADING','26417700ooJXwk','_createSearchView','ck-ai-chat-history__empty-message','_createListItemViews','add','removeHistoryItem','extendTemplate','locale','splice','sectionsView','ck-ai-notification','addMany','search','AI_CHAT_HISTORY_EMPTY_MESSAGE','_createErrorView','_refreshSearch','bind','updateTitle','2284924mDQjKS','skeletonView','fire','ck-reset_all','value','ck-ai-chat-history','hasItems','ck-rounded-corners','indexOf','element','ltr','removeItem','render','updateItemLoadingState','ck-hidden','50oMHeNY','length','6fTyXIN','fieldView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','children','_createSkeletonView','ck-ai-notification_error','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:hasItems','3269512fJmkaS','sections','bindTemplate','emptyView','ck-ai-notification_error__dismiss-button','28UtDqRK','delegate','78VJNSvK','resizeButton','mainErrorView','queryView','aiHistory','set','clear','title','isEmptyViewVisible','push','items','isMainErrorViewVisible','isMaximized','1YLIvDY','_createEmptyStateView','121575PxQpRe','isSearchViewVisible','some','ck-ai-chat__start-conversation','325944TyODLW','5684690EwBBMm','setTemplate','openChat','_updateViewVisibility','change:errorMessage','div'];_0x5894=function(){return _0x1c1789;};return _0x5894();}import{AIChatHistoryListView as _0x2d731f}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x83c2fb}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x1004e8}from'../aichathistoryui.js';import{AISkeletonView as _0x4dc3c9,SKELETON_DEFINITIONS as _0x1c4b5c}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x3ca3f6}from'../../aicore/utils/createresizebutton.js';function _0x4801(_0x28eca0,_0x20408c){const _0x589418=_0x5894();return _0x4801=function(_0x480173,_0x3e3daa){_0x480173=_0x480173-0x80;let _0x42239d=_0x589418[_0x480173];return _0x42239d;},_0x4801(_0x28eca0,_0x20408c);}import{getTranslation as _0x6173b4}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x516f09{[_0x528728(0xbe)];[_0x528728(0x9a)];[_0x528728(0xd8)];[_0x528728(0x94)];[_0x528728(0xce)];[_0x528728(0x99)];constructor(_0x18bc83,_0x363ff4){const _0x960a74=_0x528728;super(_0x18bc83),this[_0x960a74(0x9d)](_0x960a74(0xdd),!0x1),this[_0x960a74(0x9d)](_0x960a74(0xc2),!0x0),this[_0x960a74(0x9d)](_0x960a74(0xb3),''),this[_0x960a74(0x9d)](_0x960a74(0xa4),!0x1),this[_0x960a74(0x9d)](_0x960a74(0xa8),!0x1),this[_0x960a74(0x9d)](_0x960a74(0xa0),!0x1),this[_0x960a74(0x9d)](_0x960a74(0xa3),!0x1);const _0x79c4a9=new _0x48fbc3(_0x18bc83,{'label':_0x6173b4(_0x18bc83,_0x960a74(0xc4)),'icon':_0x106de3,'class':_0x960a74(0xba)});_0x363ff4&&(this[_0x960a74(0x99)]=_0x3ca3f6(_0x18bc83,this),_0x79c4a9[_0x960a74(0x8c)][_0x960a74(0xc9)](this[_0x960a74(0x99)])),this[_0x960a74(0xce)]=new _0x2fcdb5(_0x18bc83,[]),this[_0x960a74(0xce)][_0x960a74(0x97)](..._0x1004e8)['to'](this),this[_0x960a74(0x9a)]=this[_0x960a74(0xd3)](),this[_0x960a74(0xd8)]=this[_0x960a74(0x8d)](),this[_0x960a74(0x94)]=this[_0x960a74(0xa6)](),this[_0x960a74(0xbe)]=this[_0x960a74(0xc6)](),this[_0x960a74(0x9a)][_0x960a74(0xcb)]({'attributes':{'class':[this[_0x960a74(0x93)]['if'](_0x960a74(0xa3),_0x960a74(0x86),_0x4a6aba=>!_0x4a6aba)]}}),this['on'](_0x960a74(0xb6),()=>this[_0x960a74(0xaf)]()),this['on'](_0x960a74(0x90),()=>this[_0x960a74(0xaf)]()),this['on'](_0x960a74(0xb0),()=>this[_0x960a74(0xaf)]()),this[_0x960a74(0xad)]({'tag':_0x960a74(0xb1),'attributes':{'class':['ck',_0x960a74(0xda),_0x960a74(0xdc),_0x960a74(0xde)],'dir':_0x960a74(0x82)},'children':[_0x79c4a9,{'tag':_0x960a74(0xb1),'attributes':{'class':[_0x960a74(0xc1)]},'children':[this[_0x960a74(0xd8)],this[_0x960a74(0x9a)],this[_0x960a74(0x94)],this[_0x960a74(0xbe)]]}]});}[_0x528728(0xaf)](){const _0x5bee97=_0x528728;this[_0x5bee97(0xa8)]=!this[_0x5bee97(0xc2)]&&this[_0x5bee97(0xdd)],this[_0x5bee97(0xa0)]=!this[_0x5bee97(0xc2)]&&!this[_0x5bee97(0xdd)]&&!this[_0x5bee97(0xb3)],this[_0x5bee97(0xa3)]=!this[_0x5bee97(0xa8)]&&!!this[_0x5bee97(0xb3)];}[_0x528728(0xc6)](){const _0xc9fe4b=_0x528728,_0x1a8224=new _0x57c897(this[_0xc9fe4b(0xcc)],{'filteredView':this[_0xc9fe4b(0xce)],'queryView':{'label':_0x6173b4(this[_0xc9fe4b(0xcc)],_0xc9fe4b(0xb4))},'infoView':{'text':{'notFound':{'primary':_0x5c9dab=>_0x6173b4(this[_0xc9fe4b(0xcc)],_0xc9fe4b(0x8f),_0x5c9dab),'secondary':_0x6173b4(this[_0xc9fe4b(0xcc)],_0xc9fe4b(0x8b))}}}}),_0x556060=this[_0xc9fe4b(0xd3)]();return _0x556060[_0xc9fe4b(0xcb)]({'attributes':{'class':[this[_0xc9fe4b(0x93)]['if'](_0xc9fe4b(0xb3),_0xc9fe4b(0x86),_0x1ddfef=>!_0x1ddfef)]}}),_0x1a8224['on'](_0xc9fe4b(0x84),()=>{const _0x14549d=_0xc9fe4b;_0x1a8224[_0x14549d(0x8c)][_0x14549d(0xc9)](_0x556060,0x1);}),_0x1a8224[_0xc9fe4b(0xcb)]({'attributes':{'class':[this[_0xc9fe4b(0x93)]['if'](_0xc9fe4b(0xa8),_0xc9fe4b(0x86),_0x32c0e2=>!_0x32c0e2)]}}),_0x1a8224;}[_0x528728(0x8d)](){const _0x52c548=_0x528728,_0x43a952=new _0x4dc3c9(this[_0x52c548(0xcc)],_0x1c4b5c[_0x52c548(0x9c)]);return _0x43a952[_0x52c548(0xcb)]({'attributes':{'class':[this[_0x52c548(0x93)]['if'](_0x52c548(0xc2),_0x52c548(0x86),_0x512277=>!_0x512277)]}}),_0x43a952;}[_0x528728(0xd3)](){const _0x318d57=_0x528728,_0x26ed3b=new _0x516f09(this[_0x318d57(0xcc)]),_0x4308c9=new _0x3d78d6(this[_0x318d57(0xcc)]);_0x4308c9[_0x318d57(0x9d)]({'withText':!0x1,'icon':_0x4b2d3a,'class':_0x318d57(0x95)}),_0x4308c9[_0x318d57(0xd5)](_0x318d57(0xc3))['to'](this,_0x318d57(0xdd),_0x29b941=>!!_0x29b941),_0x4308c9['on'](_0x318d57(0xb2),()=>{const _0x32225b=_0x318d57;this[_0x32225b(0xb3)]='';});const _0x5b7238=this[_0x318d57(0x93)];return _0x26ed3b[_0x318d57(0xad)]({'tag':_0x318d57(0xb1),'attributes':{'class':['ck',_0x318d57(0xcf),_0x318d57(0x8e)]},'children':[{'tag':'p','children':[{'text':_0x5b7238['to'](_0x318d57(0xb3))}]},_0x4308c9]}),_0x26ed3b;}[_0x528728(0xa6)](){const _0x35dc4e=_0x528728,_0x405ebf=new _0x3d78d6(this[_0x35dc4e(0xcc)]);_0x405ebf[_0x35dc4e(0x9d)]({'label':_0x6173b4(this[_0x35dc4e(0xcc)],_0x35dc4e(0xb8)),'withText':!0x0,'icon':_0x2621fd,'class':_0x35dc4e(0xaa)}),_0x405ebf['on'](_0x35dc4e(0xb2),()=>{const _0x32b96f=_0x35dc4e;this[_0x32b96f(0xd9)](_0x32b96f(0xae));});const _0x4ff364=new _0x516f09(this[_0x35dc4e(0xcc)]);return _0x4ff364[_0x35dc4e(0xad)]({'tag':_0x35dc4e(0xb1),'attributes':{'class':[_0x35dc4e(0xbd),this[_0x35dc4e(0x93)]['if'](_0x35dc4e(0xa0),_0x35dc4e(0x86),_0x3a871d=>!_0x3a871d)]},'children':[{'tag':'p','attributes':{'class':[_0x35dc4e(0xc7)]},'children':[_0x6173b4(this[_0x35dc4e(0xcc)],_0x35dc4e(0xd2))]},_0x405ebf]}),_0x4ff364;}[_0x528728(0xc8)](_0x40b71c,_0x39e592){const _0x4df3c8=_0x528728,_0x15750c=[];for(const _0x3bf5a0 of _0x40b71c){const _0x1d9410=new _0x83c2fb(_0x39e592,_0x3bf5a0);_0x1d9410[_0x4df3c8(0x97)](..._0x1004e8)['to'](this),_0x15750c[_0x4df3c8(0xa1)](_0x1d9410);}return _0x15750c;}[_0x528728(0xb5)](_0x268cef){const _0xdbafe1=_0x528728,_0x356015=this[_0xdbafe1(0xcc)]||'en',_0x278d79=[];for(const _0x353543 of _0x268cef){const _0x3ae4a7=this[_0xdbafe1(0xc8)](_0x353543[_0xdbafe1(0xa2)],_0x356015);_0x278d79[_0xdbafe1(0xa1)](new _0x2d731f(_0x356015,{'title':_0x353543[_0xdbafe1(0x9f)],'items':_0x3ae4a7}));}this[_0xdbafe1(0xce)][_0xdbafe1(0x92)]=_0x278d79,this[_0xdbafe1(0xce)][_0xdbafe1(0xa2)][_0xdbafe1(0x9e)](),this[_0xdbafe1(0xce)][_0xdbafe1(0xa2)][_0xdbafe1(0xd0)](_0x278d79),this[_0xdbafe1(0xdd)]=_0x268cef[_0xdbafe1(0xa9)](_0x35e74c=>_0x35e74c[_0xdbafe1(0xa2)][_0xdbafe1(0x88)]>0x0),this[_0xdbafe1(0xd4)]();}[_0x528728(0xca)](_0x383860){const _0x44f199=_0x528728;for(const _0x5cc183 of this[_0x44f199(0xce)][_0x44f199(0x92)]){const _0x49c37b=_0x5cc183[_0x44f199(0xb7)](_0x383860);if(_0x49c37b){if(_0x5cc183[_0x44f199(0x83)](_0x49c37b),0x0===_0x5cc183[_0x44f199(0xbf)][_0x44f199(0x88)]){const _0x2f6ad6=this[_0x44f199(0xce)][_0x44f199(0x92)][_0x44f199(0x80)](_0x5cc183);-0x1!==_0x2f6ad6&&(this[_0x44f199(0xce)][_0x44f199(0x92)][_0x44f199(0xcd)](_0x2f6ad6,0x1),this[_0x44f199(0xce)][_0x44f199(0xa2)][_0x44f199(0xbb)](_0x5cc183));}this[_0x44f199(0xdd)]=this[_0x44f199(0xce)][_0x44f199(0x92)][_0x44f199(0x88)]>0x0,this[_0x44f199(0xd4)]();break;}}}[_0x528728(0xb9)](_0x130fbc,_0xbff650){const _0x269b21=_0x528728;for(const _0x5d4c4f of this[_0x269b21(0xce)][_0x269b21(0x92)]){const _0x289014=_0x5d4c4f[_0x269b21(0xb7)](_0x130fbc);if(_0x289014){_0x289014[_0x269b21(0xd6)](_0xbff650);break;}}}[_0x528728(0x85)](_0x4864d6,_0x5b0314,_0x3236f3){const _0x599513=_0x528728;for(const _0xb78d2b of this[_0x599513(0xce)][_0x599513(0x92)]){const _0x3f8582=_0xb78d2b[_0x599513(0xb7)](_0x4864d6);if(_0x3f8582){_0x3f8582[_0x599513(0xbc)](_0x5b0314,_0x3236f3);break;}}}[_0x528728(0xd4)](){const _0x255453=_0x528728;if(this[_0x255453(0xdd)]){const _0x37e25e=this[_0x255453(0xbe)][_0x255453(0x9b)][_0x255453(0x8a)]?.[_0x255453(0x81)]?.[_0x255453(0xdb)]||'';this[_0x255453(0xbe)][_0x255453(0xd1)](_0x37e25e);}}}
23
+ const _0x4a8e86=_0x5521;(function(_0x2dc57f,_0x3bf9cd){const _0x592c62=_0x5521,_0x1abf91=_0x2dc57f();while(!![]){try{const _0x57fbef=parseInt(_0x592c62(0xa3))/0x1*(-parseInt(_0x592c62(0xb1))/0x2)+parseInt(_0x592c62(0x8c))/0x3*(parseInt(_0x592c62(0x91))/0x4)+-parseInt(_0x592c62(0xc0))/0x5*(parseInt(_0x592c62(0xa4))/0x6)+parseInt(_0x592c62(0xba))/0x7*(-parseInt(_0x592c62(0x7b))/0x8)+-parseInt(_0x592c62(0xa8))/0x9+parseInt(_0x592c62(0x93))/0xa*(-parseInt(_0x592c62(0x99))/0xb)+parseInt(_0x592c62(0x7a))/0xc;if(_0x57fbef===_0x3bf9cd)break;else _0x1abf91['push'](_0x1abf91['shift']());}catch(_0x1f4adf){_0x1abf91['push'](_0x1abf91['shift']());}}}(_0x5290,0x35e1d));import{View as _0x26a1d7,SearchTextView as _0x12e32d,FormHeaderView as _0x286335,ButtonView as _0x3c901a}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x3d7fb4,IconCancel as _0x5533,IconPlus as _0x230159}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x110518}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x1362e7}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x4fe80c}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3efdf1}from'../aichathistoryui.js';function _0x5290(){const _0x495380=['fieldView','ck-ai-notification_error__dismiss-button','_refreshSearch','8913072uHSrnB','8SLRhjx','render','ck-ai-chat-history__empty','change:isLoading','_createListItemViews','ck-rounded-corners','bindTemplate','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-notification','isSearchViewVisible','skeletonView','length','_createErrorView','AI_CHAT_LABEL_NEW_CHAT','items','sectionsView','updateHistoryItemsWithCategories','114oYzPeC','updateTitle','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','resizeButton','ltr','13036bBuMdw','AI_CHAT_HISTORY_EMPTY_MESSAGE','337580mHhzWK','_createSearchView','execute','search','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','ck-ai-header\x20ck-ai-header_history','44zJqvEp','openChat','ck-ai-chat__start-conversation','clear','isMaximized','element','mainErrorView','_updateViewVisibility','value','_createSkeletonView','1IDGFat','426aevihY','ck-hidden','set','delegate','147537nrAVDn','isMainErrorViewVisible','setTemplate','aiHistory','searchView','getItem','itemsViews','isLoading','hasItems','743490aHbwBq','updateLoadingState','addMany','isEmptyViewVisible','ck-ai-notification_error','removeHistoryItem','ck-ai-chat-history__content','children','updateItemLoadingState','435148SxSzEb','remove','div','change:errorMessage','errorMessage','some','4265ncYItT','add','title','updateItemTitle','_createEmptyStateView','isVisible','queryView','ck-ai-chat-history','extendTemplate','push','ck-reset_all','locale','AI_CHAT_HISTORY_HEADING','removeItem','ck-ai-chat-history__empty-message','emptyView','bind','sections','splice','change:hasItems','indexOf','fire'];_0x5290=function(){return _0x495380;};return _0x5290();}import{AISkeletonView as _0x2f6b72,SKELETON_DEFINITIONS as _0x9f336}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x12dfda}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x4a373c}from'../../aicore/utils/common-translations.js';function _0x5521(_0xec111b,_0x53eb3b){const _0x5290df=_0x5290();return _0x5521=function(_0x552132,_0x3c7955){_0x552132=_0x552132-0x65;let _0xedddea=_0x5290df[_0x552132];return _0xedddea;},_0x5521(_0xec111b,_0x53eb3b);}export class AIChatHistoryView extends _0x26a1d7{[_0x4a8e86(0xac)];[_0x4a8e86(0x9f)];[_0x4a8e86(0x85)];[_0x4a8e86(0x70)];[_0x4a8e86(0x8a)];[_0x4a8e86(0x8f)];constructor(_0x1ec52e,_0x222e8e){const _0x1f7bcd=_0x4a8e86;super(_0x1ec52e),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0xb0),!0x1),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0xaf),!0x0),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0xbe),''),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0x9d),!0x1),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0x84),!0x1),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0xb4),!0x1),this[_0x1f7bcd(0xa6)](_0x1f7bcd(0xa9),!0x1);const _0x5c0a20=new _0x286335(_0x1ec52e,{'label':_0x4a373c(_0x1ec52e,_0x1f7bcd(0x6d)),'icon':_0x3d7fb4,'class':_0x1f7bcd(0x98)});_0x222e8e&&(this[_0x1f7bcd(0x8f)]=_0x12dfda(_0x1ec52e,this),_0x5c0a20[_0x1f7bcd(0xb8)][_0x1f7bcd(0xc1)](this[_0x1f7bcd(0x8f)])),this[_0x1f7bcd(0x8a)]=new _0x110518(_0x1ec52e,[]),this[_0x1f7bcd(0x8a)][_0x1f7bcd(0xa7)](..._0x3efdf1)['to'](this),this[_0x1f7bcd(0x9f)]=this[_0x1f7bcd(0x87)](),this[_0x1f7bcd(0x85)]=this[_0x1f7bcd(0xa2)](),this[_0x1f7bcd(0x70)]=this[_0x1f7bcd(0x65)](),this[_0x1f7bcd(0xac)]=this[_0x1f7bcd(0x94)](),this[_0x1f7bcd(0x9f)][_0x1f7bcd(0x69)]({'attributes':{'class':[this[_0x1f7bcd(0x81)]['if'](_0x1f7bcd(0xa9),_0x1f7bcd(0xa5),_0x14e196=>!_0x14e196)]}}),this['on'](_0x1f7bcd(0x7e),()=>this[_0x1f7bcd(0xa0)]()),this['on'](_0x1f7bcd(0x74),()=>this[_0x1f7bcd(0xa0)]()),this['on'](_0x1f7bcd(0xbd),()=>this[_0x1f7bcd(0xa0)]()),this[_0x1f7bcd(0xaa)]({'tag':_0x1f7bcd(0xbc),'attributes':{'class':['ck',_0x1f7bcd(0x6b),_0x1f7bcd(0x68),_0x1f7bcd(0x80)],'dir':_0x1f7bcd(0x90)},'children':[_0x5c0a20,{'tag':_0x1f7bcd(0xbc),'attributes':{'class':[_0x1f7bcd(0xb7)]},'children':[this[_0x1f7bcd(0x85)],this[_0x1f7bcd(0x9f)],this[_0x1f7bcd(0x70)],this[_0x1f7bcd(0xac)]]}]});}[_0x4a8e86(0xa0)](){const _0x52fb22=_0x4a8e86;this[_0x52fb22(0x84)]=!this[_0x52fb22(0xaf)]&&this[_0x52fb22(0xb0)],this[_0x52fb22(0xb4)]=!this[_0x52fb22(0xaf)]&&!this[_0x52fb22(0xb0)]&&!this[_0x52fb22(0xbe)],this[_0x52fb22(0xa9)]=!this[_0x52fb22(0x84)]&&!!this[_0x52fb22(0xbe)];}[_0x4a8e86(0x94)](){const _0x2a7c94=_0x4a8e86,_0x478d51=new _0x12e32d(this[_0x2a7c94(0x6c)],{'filteredView':this[_0x2a7c94(0x8a)],'queryView':{'label':_0x4a373c(this[_0x2a7c94(0x6c)],_0x2a7c94(0x82))},'infoView':{'text':{'notFound':{'primary':_0x427e34=>_0x4a373c(this[_0x2a7c94(0x6c)],_0x2a7c94(0x97),_0x427e34),'secondary':_0x4a373c(this[_0x2a7c94(0x6c)],_0x2a7c94(0x8e))}}}}),_0x4d10a3=this[_0x2a7c94(0x87)]();return _0x4d10a3[_0x2a7c94(0x69)]({'attributes':{'class':[this[_0x2a7c94(0x81)]['if'](_0x2a7c94(0xbe),_0x2a7c94(0xa5),_0xd77ae9=>!_0xd77ae9)]}}),_0x478d51['on'](_0x2a7c94(0x7c),()=>{const _0x5afd37=_0x2a7c94;_0x478d51[_0x5afd37(0xb8)][_0x5afd37(0xc1)](_0x4d10a3,0x1);}),_0x478d51[_0x2a7c94(0x69)]({'attributes':{'class':[this[_0x2a7c94(0x81)]['if'](_0x2a7c94(0x84),_0x2a7c94(0xa5),_0x2a3259=>!_0x2a3259)]}}),_0x478d51;}[_0x4a8e86(0xa2)](){const _0x3491ae=_0x4a8e86,_0x214580=new _0x2f6b72(this[_0x3491ae(0x6c)],_0x9f336[_0x3491ae(0xab)]);return _0x214580[_0x3491ae(0x69)]({'attributes':{'class':[this[_0x3491ae(0x81)]['if'](_0x3491ae(0xaf),_0x3491ae(0xa5),_0x4a7a3a=>!_0x4a7a3a)]}}),_0x214580;}[_0x4a8e86(0x87)](){const _0x2b1370=_0x4a8e86,_0xc3b13f=new _0x26a1d7(this[_0x2b1370(0x6c)]),_0x4ff729=new _0x3c901a(this[_0x2b1370(0x6c)]);_0x4ff729[_0x2b1370(0xa6)]({'withText':!0x1,'icon':_0x5533,'class':_0x2b1370(0x78)}),_0x4ff729[_0x2b1370(0x71)](_0x2b1370(0x66))['to'](this,_0x2b1370(0xb0),_0x41a706=>!!_0x41a706),_0x4ff729['on'](_0x2b1370(0x95),()=>{const _0x5e4896=_0x2b1370;this[_0x5e4896(0xbe)]='';});const _0x1f8e8d=this[_0x2b1370(0x81)];return _0xc3b13f[_0x2b1370(0xaa)]({'tag':_0x2b1370(0xbc),'attributes':{'class':['ck',_0x2b1370(0x83),_0x2b1370(0xb5)]},'children':[{'tag':'p','children':[{'text':_0x1f8e8d['to'](_0x2b1370(0xbe))}]},_0x4ff729]}),_0xc3b13f;}[_0x4a8e86(0x65)](){const _0x163e10=_0x4a8e86,_0x9ebdff=new _0x3c901a(this[_0x163e10(0x6c)]);_0x9ebdff[_0x163e10(0xa6)]({'label':_0x4a373c(this[_0x163e10(0x6c)],_0x163e10(0x88)),'withText':!0x0,'icon':_0x230159,'class':_0x163e10(0x9b)}),_0x9ebdff['on'](_0x163e10(0x95),()=>{const _0x14055f=_0x163e10;this[_0x14055f(0x76)](_0x14055f(0x9a));});const _0x2fd61c=new _0x26a1d7(this[_0x163e10(0x6c)]);return _0x2fd61c[_0x163e10(0xaa)]({'tag':_0x163e10(0xbc),'attributes':{'class':[_0x163e10(0x7d),this[_0x163e10(0x81)]['if'](_0x163e10(0xb4),_0x163e10(0xa5),_0x287e4f=>!_0x287e4f)]},'children':[{'tag':'p','attributes':{'class':[_0x163e10(0x6f)]},'children':[_0x4a373c(this[_0x163e10(0x6c)],_0x163e10(0x92))]},_0x9ebdff]}),_0x2fd61c;}[_0x4a8e86(0x7f)](_0x55674d,_0x5b3559){const _0x1ba17d=_0x4a8e86,_0x14b4a9=[];for(const _0x5604bd of _0x55674d){const _0x4dbc72=new _0x4fe80c(_0x5b3559,_0x5604bd);_0x4dbc72[_0x1ba17d(0xa7)](..._0x3efdf1)['to'](this),_0x14b4a9[_0x1ba17d(0x6a)](_0x4dbc72);}return _0x14b4a9;}[_0x4a8e86(0x8b)](_0xc8de70){const _0x33c420=_0x4a8e86,_0x415f72=this[_0x33c420(0x6c)]||'en',_0x1c2c6b=[];for(const _0x19ad1a of _0xc8de70){const _0x2d8119=this[_0x33c420(0x7f)](_0x19ad1a[_0x33c420(0x89)],_0x415f72);_0x1c2c6b[_0x33c420(0x6a)](new _0x1362e7(_0x415f72,{'title':_0x19ad1a[_0x33c420(0xc2)],'items':_0x2d8119}));}this[_0x33c420(0x8a)][_0x33c420(0x72)]=_0x1c2c6b,this[_0x33c420(0x8a)][_0x33c420(0x89)][_0x33c420(0x9c)](),this[_0x33c420(0x8a)][_0x33c420(0x89)][_0x33c420(0xb3)](_0x1c2c6b),this[_0x33c420(0xb0)]=_0xc8de70[_0x33c420(0xbf)](_0x5b0dc2=>_0x5b0dc2[_0x33c420(0x89)][_0x33c420(0x86)]>0x0),this[_0x33c420(0x79)]();}[_0x4a8e86(0xb6)](_0x277748){const _0x23a434=_0x4a8e86;for(const _0x5e0bff of this[_0x23a434(0x8a)][_0x23a434(0x72)]){const _0xf51b13=_0x5e0bff[_0x23a434(0xad)](_0x277748);if(_0xf51b13){if(_0x5e0bff[_0x23a434(0x6e)](_0xf51b13),0x0===_0x5e0bff[_0x23a434(0xae)][_0x23a434(0x86)]){const _0xc87dba=this[_0x23a434(0x8a)][_0x23a434(0x72)][_0x23a434(0x75)](_0x5e0bff);-0x1!==_0xc87dba&&(this[_0x23a434(0x8a)][_0x23a434(0x72)][_0x23a434(0x73)](_0xc87dba,0x1),this[_0x23a434(0x8a)][_0x23a434(0x89)][_0x23a434(0xbb)](_0x5e0bff));}this[_0x23a434(0xb0)]=this[_0x23a434(0x8a)][_0x23a434(0x72)][_0x23a434(0x86)]>0x0,this[_0x23a434(0x79)]();break;}}}[_0x4a8e86(0xc3)](_0x3d3083,_0x300457){const _0x2ddd26=_0x4a8e86;for(const _0x2a7551 of this[_0x2ddd26(0x8a)][_0x2ddd26(0x72)]){const _0x44d3e9=_0x2a7551[_0x2ddd26(0xad)](_0x3d3083);if(_0x44d3e9){_0x44d3e9[_0x2ddd26(0x8d)](_0x300457);break;}}}[_0x4a8e86(0xb9)](_0x1d14ab,_0x35f2d0,_0x51ca28){const _0x496495=_0x4a8e86;for(const _0x5e8c19 of this[_0x496495(0x8a)][_0x496495(0x72)]){const _0x2370ba=_0x5e8c19[_0x496495(0xad)](_0x1d14ab);if(_0x2370ba){_0x2370ba[_0x496495(0xb2)](_0x35f2d0,_0x51ca28);break;}}}[_0x4a8e86(0x79)](){const _0x386ab7=_0x4a8e86;if(this[_0x386ab7(0xb0)]){const _0x23321f=this[_0x386ab7(0xac)][_0x386ab7(0x67)][_0x386ab7(0x77)]?.[_0x386ab7(0x9e)]?.[_0x386ab7(0xa1)]||'';this[_0x386ab7(0xac)][_0x386ab7(0x96)](_0x23321f);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ba5e5=_0x56f7;function _0x45d3(){const _0x2e2fc4=['getModel','AIChat','ai-chat-shortcuts-translate-not-found','6402HvuXkV','TRANSLATE','fire','requires','setModel','261201DVwcxm','activeConversation','custom','hasFeedItem','params','isPremiumPlugin','_runChatShortcut','reviewMode','AITabs','listenTo','translate','AITranslateUI','render','values','AIReviewModeUI','setReasoning','type','ai-chat-shortcuts-ai-tabs-not-found','isOfficialPlugin','execute','prompt','_removeShortcuts','addFeedItemCustomElement','language','source','addCurrentDocumentToChatContext','_validateShortcuts','getDefault','16NLMhYL','1375ZJPYQM','sendMessage','setWebSearch','review','pluginName','find','get','init','context','_aiChatUI','_shortcutsView','removeFeedItem','plugins','setPromptInputValue','chat','element','731829lTHHZr','chatModels','ai-chat-shortcuts-review-mode-not-found','check','655592CGUlBB','forEach','args','20804CdcMBP','destroy','chat-shortcuts','view','length','has','REVIEW','activateTab','10622xcnnLe','config','_executeShortcut','string','label','AIChatShortcuts','_injectShortcuts','ai.chat.shortcuts','_runTranslateShortcut','AIChatController','_shortcuts','locale','focusPromptInput','CHAT','_switchTab','isFromHistory','ai-chat-shortcuts-invalid-config','conversationCreated','includes','runReviewCheck','_runReviewShortcut','interactionStarted','1320426MZirMN'];_0x45d3=function(){return _0x2e2fc4;};return _0x45d3();}(function(_0xd5b560,_0x24c59e){const _0x3260b1=_0x56f7,_0x5bfd47=_0xd5b560();while(!![]){try{const _0x49100a=parseInt(_0x3260b1(0x1e5))/0x1+-parseInt(_0x3260b1(0x1ed))/0x2+parseInt(_0x3260b1(0x20c))/0x3+parseInt(_0x3260b1(0x1e2))/0x4+parseInt(_0x3260b1(0x229))/0x5*(parseInt(_0x3260b1(0x207))/0x6)+-parseInt(_0x3260b1(0x1de))/0x7+-parseInt(_0x3260b1(0x228))/0x8*(parseInt(_0x3260b1(0x203))/0x9);if(_0x49100a===_0x24c59e)break;else _0x5bfd47['push'](_0x5bfd47['shift']());}catch(_0x35a3a){_0x5bfd47['push'](_0x5bfd47['shift']());}}}(_0x45d3,0x27874));import{AIChatUI as _0xcdea64}from'../aichat/aichatui.js';import{ContextPlugin as _0xf6b950}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x443c6b}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x5dfa6b}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const wt=_0x4ba5e5(0x1e7);export var AIChatShortcutType;!function(_0x1e12fa){const _0x2f67b4=_0x4ba5e5;_0x1e12fa[_0x2f67b4(0x1fa)]=_0x2f67b4(0x1dc),_0x1e12fa[_0x2f67b4(0x1eb)]=_0x2f67b4(0x22c),_0x1e12fa[_0x2f67b4(0x208)]=_0x2f67b4(0x216);}(AIChatShortcutType||(AIChatShortcutType={}));function _0x56f7(_0x4caa38,_0x3bec1a){const _0x45d370=_0x45d3();return _0x56f7=function(_0x56f76d,_0x4e7c04){_0x56f76d=_0x56f76d-0x1da;let _0x54ec98=_0x45d370[_0x56f76d];return _0x54ec98;},_0x56f7(_0x4caa38,_0x3bec1a);}export class AIChatShortcuts extends _0xf6b950{[_0x4ba5e5(0x1f7)];[_0x4ba5e5(0x233)];[_0x4ba5e5(0x232)];static get[_0x4ba5e5(0x20a)](){return[_0xcdea64];}static get[_0x4ba5e5(0x22d)](){const _0x4c2b2a=_0x4ba5e5;return _0x4c2b2a(0x1f2);}static get[_0x4ba5e5(0x21e)](){return!0x0;}static get[_0x4ba5e5(0x211)](){return!0x0;}[_0x4ba5e5(0x230)](){const _0x52ff31=_0x4ba5e5;this[_0x52ff31(0x232)]=this[_0x52ff31(0x231)][_0x52ff31(0x1da)][_0x52ff31(0x22f)](_0xcdea64),this[_0x52ff31(0x1f7)]=this[_0x52ff31(0x231)][_0x52ff31(0x1ee)][_0x52ff31(0x22f)](_0x52ff31(0x1f4))??[];const _0x54fb18=this[_0x52ff31(0x231)][_0x52ff31(0x1da)][_0x52ff31(0x22f)](_0x52ff31(0x1f6));this[_0x52ff31(0x1f7)][_0x52ff31(0x1e9)]&&(this[_0x52ff31(0x226)](),this[_0x52ff31(0x232)]['on'](_0x52ff31(0x1fe),()=>{const _0x117a5f=_0x52ff31;_0x54fb18[_0x117a5f(0x20d)][_0x117a5f(0x1fc)]||this[_0x117a5f(0x1f3)]();}),this[_0x52ff31(0x215)](_0x54fb18,_0x52ff31(0x202),()=>{const _0xb31d88=_0x52ff31;this[_0xb31d88(0x221)]();}));}[_0x4ba5e5(0x226)](){const _0x547167=_0x4ba5e5,_0x204fe5=Object[_0x547167(0x219)](AIChatShortcutType);this[_0x547167(0x1f7)][_0x547167(0x1e3)](_0x1b711d=>{const _0x179f41=_0x547167;let _0x391dc6=!0x0;if(_0x1b711d['id']&&_0x1b711d[_0x179f41(0x1f1)]&&_0x204fe5[_0x179f41(0x1ff)](_0x1b711d[_0x179f41(0x21c)])?_0x179f41(0x1dc)===_0x1b711d[_0x179f41(0x21c)]&&(_0x391dc6=_0x179f41(0x1f0)==typeof _0x1b711d[_0x179f41(0x220)]):_0x391dc6=!0x1,!_0x391dc6)throw new _0x5dfa6b(_0x179f41(0x1fd),this[_0x179f41(0x231)],{'shortcut':_0x1b711d});});}[_0x4ba5e5(0x1f3)](){const _0x1f9f4d=_0x4ba5e5,_0x5afa36=this[_0x1f9f4d(0x231)][_0x1f9f4d(0x1da)][_0x1f9f4d(0x22f)](_0xcdea64);this[_0x1f9f4d(0x233)]=new _0x443c6b(this[_0x1f9f4d(0x231)][_0x1f9f4d(0x1f8)],this[_0x1f9f4d(0x1f7)]),this[_0x1f9f4d(0x233)][_0x1f9f4d(0x218)](),_0x5afa36[_0x1f9f4d(0x222)](this[_0x1f9f4d(0x233)][_0x1f9f4d(0x1dd)],wt),this[_0x1f9f4d(0x233)]['on'](_0x1f9f4d(0x21f),_0x135d78=>{const _0x61ce9f=_0x1f9f4d,_0x474887=_0x135d78[_0x61ce9f(0x224)]['id'];this[_0x61ce9f(0x1ef)](_0x474887);});}[_0x4ba5e5(0x221)](){const _0x1ce8e9=_0x4ba5e5,_0x2c3db2=this[_0x1ce8e9(0x231)][_0x1ce8e9(0x1da)][_0x1ce8e9(0x22f)](_0xcdea64);_0x2c3db2[_0x1ce8e9(0x20f)](wt)&&_0x2c3db2[_0x1ce8e9(0x234)](wt),this[_0x1ce8e9(0x233)]?.[_0x1ce8e9(0x1e6)]();}[_0x4ba5e5(0x1ef)](_0x2bed01){const _0x32dbbf=_0x4ba5e5,_0x11218e=this[_0x32dbbf(0x1f7)][_0x32dbbf(0x22e)](_0x1191ef=>_0x1191ef['id']===_0x2bed01),_0x418ec0=_0x11218e[_0x32dbbf(0x21c)];_0x32dbbf(0x1dc)===_0x418ec0?this[_0x32dbbf(0x212)](_0x11218e):_0x32dbbf(0x22c)===_0x418ec0?_0x11218e[_0x32dbbf(0x1e1)]?this[_0x32dbbf(0x201)](_0x11218e):this[_0x32dbbf(0x1fb)](_0x32dbbf(0x213)):_0x32dbbf(0x216)===_0x418ec0&&(_0x11218e[_0x32dbbf(0x223)]?this[_0x32dbbf(0x1f5)](_0x11218e):this[_0x32dbbf(0x1fb)](_0x32dbbf(0x216)));}[_0x4ba5e5(0x1fb)](_0x31fc0b){const _0xd78a4d=_0x4ba5e5;if(!this[_0xd78a4d(0x231)][_0xd78a4d(0x1da)][_0xd78a4d(0x1ea)](_0xd78a4d(0x214)))throw new _0x5dfa6b(_0xd78a4d(0x21d),this[_0xd78a4d(0x231)],{'tabName':_0x31fc0b});this[_0xd78a4d(0x231)][_0xd78a4d(0x1da)][_0xd78a4d(0x22f)](_0xd78a4d(0x214))[_0xd78a4d(0x1e8)][_0xd78a4d(0x1ec)](_0x31fc0b);}async[_0x4ba5e5(0x212)]({prompt:_0x3f1db2,draftMode:_0x4e0c18,useWebSearch:_0x29254e=!0x1,useReasoning:_0x34feaf=!0x1,model:_0x3a55aa}){const _0x1c6691=_0x4ba5e5,_0x59df8d=this[_0x1c6691(0x231)][_0x1c6691(0x1da)][_0x1c6691(0x22f)](_0x1c6691(0x205)),_0x4795de=this[_0x1c6691(0x231)][_0x1c6691(0x1da)][_0x1c6691(0x22f)](_0x1c6691(0x1f6)),_0x4fe5a3=_0x4795de[_0x1c6691(0x20d)];let _0x2e6ea1;_0x2e6ea1=_0x3a55aa?await _0x4fe5a3[_0x1c6691(0x1df)][_0x1c6691(0x204)](_0x3a55aa):await _0x4fe5a3[_0x1c6691(0x1df)][_0x1c6691(0x227)](),_0x2e6ea1&&await _0x4fe5a3[_0x1c6691(0x20b)](_0x2e6ea1),_0x4fe5a3[_0x1c6691(0x22b)](_0x29254e),_0x4fe5a3[_0x1c6691(0x21b)](_0x34feaf),_0x4795de[_0x1c6691(0x225)](),_0x4e0c18?(this[_0x1c6691(0x232)][_0x1c6691(0x1db)](_0x3f1db2),this[_0x1c6691(0x232)][_0x1c6691(0x1f9)](!0x0)):_0x59df8d[_0x1c6691(0x22a)]({'message':_0x3f1db2});}[_0x4ba5e5(0x201)]({check:_0x23040c,model:_0x19886f,prompt:_0x26ec15,params:_0x501c29}){const _0x18e33f=_0x4ba5e5;if(!this[_0x18e33f(0x231)][_0x18e33f(0x1da)][_0x18e33f(0x1ea)](_0x18e33f(0x21a)))throw new _0x5dfa6b(_0x18e33f(0x1e0),this[_0x18e33f(0x231)]);this[_0x18e33f(0x1fb)](_0x18e33f(0x213));const _0x48da30={'id':_0x23040c,'isCustom':_0x18e33f(0x20e)===_0x23040c};_0x19886f&&_0x26ec15&&(_0x48da30[_0x18e33f(0x1e4)]={'model':_0x19886f,'prompt':_0x26ec15}),_0x501c29&&(_0x48da30[_0x18e33f(0x210)]=_0x501c29),this[_0x18e33f(0x231)][_0x18e33f(0x1da)][_0x18e33f(0x22f)](_0x18e33f(0x21a))[_0x18e33f(0x209)](_0x18e33f(0x200),_0x48da30);}[_0x4ba5e5(0x1f5)]({language:_0x13fed8}){const _0xed861d=_0x4ba5e5;if(!this[_0xed861d(0x231)][_0xed861d(0x1da)][_0xed861d(0x1ea)](_0xed861d(0x217)))throw new _0x5dfa6b(_0xed861d(0x206),this[_0xed861d(0x231)]);this[_0xed861d(0x1fb)](_0xed861d(0x216)),this[_0xed861d(0x231)][_0xed861d(0x1da)][_0xed861d(0x22f)](_0xed861d(0x217))[_0xed861d(0x209)](_0xed861d(0x200),{'id':_0x13fed8,'args':{'language':_0x13fed8}});}}
23
+ const _0x14e0d1=_0x49d2;(function(_0x142d90,_0x88ef3b){const _0x36b6d8=_0x49d2,_0x260e44=_0x142d90();while(!![]){try{const _0x4b3d5d=parseInt(_0x36b6d8(0x184))/0x1+parseInt(_0x36b6d8(0x18e))/0x2*(parseInt(_0x36b6d8(0x176))/0x3)+parseInt(_0x36b6d8(0x1a5))/0x4*(parseInt(_0x36b6d8(0x185))/0x5)+parseInt(_0x36b6d8(0x1ba))/0x6*(-parseInt(_0x36b6d8(0x186))/0x7)+-parseInt(_0x36b6d8(0x183))/0x8*(-parseInt(_0x36b6d8(0x17e))/0x9)+-parseInt(_0x36b6d8(0x1ae))/0xa*(-parseInt(_0x36b6d8(0x16c))/0xb)+-parseInt(_0x36b6d8(0x16f))/0xc;if(_0x4b3d5d===_0x88ef3b)break;else _0x260e44['push'](_0x260e44['shift']());}catch(_0x3982f3){_0x260e44['push'](_0x260e44['shift']());}}}(_0x1107,0x44907));import{AIChatUI as _0x1deb3d}from'../aichat/aichatui.js';import{ContextPlugin as _0x5653b6}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0xe0c590}from'./ui/aichatshortcutsview.js';function _0x49d2(_0x1ae4da,_0x23b023){const _0x110768=_0x1107();return _0x49d2=function(_0x49d237,_0x3762fb){_0x49d237=_0x49d237-0x163;let _0x246070=_0x110768[_0x49d237];return _0x246070;},_0x49d2(_0x1ae4da,_0x23b023);}import{CKEditorError as _0x4573f6}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x14e0d1(0x1a6);function _0x1107(){const _0xaee410=['_executeShortcut','fire','AIReviewModeUI','runReviewCheck','618xAxyFi','_validateShortcuts','setWebSearch','context','ai.chat.shortcuts','source','get','length','requires','sendMessage','init','setPromptInputValue','addFeedItemCustomElement','plugins','getDefault','chat','11HhAcqn','ai-chat-shortcuts-translate-not-found','CHAT','17475648jkNvaH','focusPromptInput','_aiChatUI','AIChatShortcuts','hasFeedItem','ai-chat-shortcuts-invalid-config','element','6cqWjpZ','ai-chat-shortcuts-ai-tabs-not-found','activateTab','REVIEW','conversationCreated','_shortcuts','AITranslateUI','locale','81uwRBCZ','pluginName','_shortcutsView','activeConversation','listenTo','120632lKWFbk','439350jLqYOS','10cwcbPz','15659lwwIvc','check','setModel','chatModels','TRANSLATE','find','string','isPremiumPlugin','427292HlHbHU','language','params','review','AIChat','interactionStarted','view','translate','forEach','has','_runReviewShortcut','custom','isOfficialPlugin','destroy','render','reviewMode','execute','_removeShortcuts','includes','label','AIChatController','removeFeedItem','type','934564ggIaBl','chat-shortcuts','getModel','prompt','isFromHistory','_runTranslateShortcut','_injectShortcuts','config','addCurrentDocumentToChatContext','4979190kyeJyZ','values','_switchTab','AITabs','args','ai-chat-shortcuts-review-mode-not-found','setReasoning','_runChatShortcut'];_0x1107=function(){return _0xaee410;};return _0x1107();}export var AIChatShortcutType;!function(_0x35b454){const _0x10e583=_0x14e0d1;_0x35b454[_0x10e583(0x16e)]=_0x10e583(0x16b),_0x35b454[_0x10e583(0x179)]=_0x10e583(0x191),_0x35b454[_0x10e583(0x18a)]=_0x10e583(0x195);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x5653b6{[_0x14e0d1(0x17b)];[_0x14e0d1(0x180)];[_0x14e0d1(0x171)];static get[_0x14e0d1(0x164)](){return[_0x1deb3d];}static get[_0x14e0d1(0x17f)](){const _0x2e8cc7=_0x14e0d1;return _0x2e8cc7(0x172);}static get[_0x14e0d1(0x19a)](){return!0x0;}static get[_0x14e0d1(0x18d)](){return!0x0;}[_0x14e0d1(0x166)](){const _0x5545f6=_0x14e0d1;this[_0x5545f6(0x171)]=this[_0x5545f6(0x1bd)][_0x5545f6(0x169)][_0x5545f6(0x1c0)](_0x1deb3d),this[_0x5545f6(0x17b)]=this[_0x5545f6(0x1bd)][_0x5545f6(0x1ac)][_0x5545f6(0x1c0)](_0x5545f6(0x1be))??[];const _0x5d0549=this[_0x5545f6(0x1bd)][_0x5545f6(0x169)][_0x5545f6(0x1c0)](_0x5545f6(0x1a2));this[_0x5545f6(0x17b)][_0x5545f6(0x163)]&&(this[_0x5545f6(0x1bb)](),this[_0x5545f6(0x171)]['on'](_0x5545f6(0x17a),()=>{const _0x142ed7=_0x5545f6;_0x5d0549[_0x142ed7(0x181)][_0x142ed7(0x1a9)]||this[_0x142ed7(0x1ab)]();}),this[_0x5545f6(0x182)](_0x5d0549,_0x5545f6(0x193),()=>{const _0x97592f=_0x5545f6;this[_0x97592f(0x19f)]();}));}[_0x14e0d1(0x1bb)](){const _0x46eb76=_0x14e0d1,_0x372842=Object[_0x46eb76(0x1af)](AIChatShortcutType);this[_0x46eb76(0x17b)][_0x46eb76(0x196)](_0x2df318=>{const _0x53dc1e=_0x46eb76;let _0x3e809c=!0x0;if(_0x2df318['id']&&_0x2df318[_0x53dc1e(0x1a1)]&&_0x372842[_0x53dc1e(0x1a0)](_0x2df318[_0x53dc1e(0x1a4)])?_0x53dc1e(0x16b)===_0x2df318[_0x53dc1e(0x1a4)]&&(_0x3e809c=_0x53dc1e(0x18c)==typeof _0x2df318[_0x53dc1e(0x1a8)]):_0x3e809c=!0x1,!_0x3e809c)throw new _0x4573f6(_0x53dc1e(0x174),this[_0x53dc1e(0x1bd)],{'shortcut':_0x2df318});});}[_0x14e0d1(0x1ab)](){const _0xa7eefd=_0x14e0d1,_0x32b52b=this[_0xa7eefd(0x1bd)][_0xa7eefd(0x169)][_0xa7eefd(0x1c0)](_0x1deb3d);this[_0xa7eefd(0x180)]=new _0xe0c590(this[_0xa7eefd(0x1bd)][_0xa7eefd(0x17d)],this[_0xa7eefd(0x17b)]),this[_0xa7eefd(0x180)][_0xa7eefd(0x19c)](),_0x32b52b[_0xa7eefd(0x168)](this[_0xa7eefd(0x180)][_0xa7eefd(0x175)],Ut),this[_0xa7eefd(0x180)]['on'](_0xa7eefd(0x19e),_0x58190f=>{const _0x5853a9=_0xa7eefd,_0x2cd3f0=_0x58190f[_0x5853a9(0x1bf)]['id'];this[_0x5853a9(0x1b6)](_0x2cd3f0);});}[_0x14e0d1(0x19f)](){const _0x30be91=_0x14e0d1,_0x41c696=this[_0x30be91(0x1bd)][_0x30be91(0x169)][_0x30be91(0x1c0)](_0x1deb3d);_0x41c696[_0x30be91(0x173)](Ut)&&_0x41c696[_0x30be91(0x1a3)](Ut),this[_0x30be91(0x180)]?.[_0x30be91(0x19b)]();}[_0x14e0d1(0x1b6)](_0xa926bb){const _0x2ae96f=_0x14e0d1,_0x368bf4=this[_0x2ae96f(0x17b)][_0x2ae96f(0x18b)](_0x4e9583=>_0x4e9583['id']===_0xa926bb),_0x181c70=_0x368bf4[_0x2ae96f(0x1a4)];_0x2ae96f(0x16b)===_0x181c70?this[_0x2ae96f(0x1b5)](_0x368bf4):_0x2ae96f(0x191)===_0x181c70?_0x368bf4[_0x2ae96f(0x187)]?this[_0x2ae96f(0x198)](_0x368bf4):this[_0x2ae96f(0x1b0)](_0x2ae96f(0x19d)):_0x2ae96f(0x195)===_0x181c70&&(_0x368bf4[_0x2ae96f(0x18f)]?this[_0x2ae96f(0x1aa)](_0x368bf4):this[_0x2ae96f(0x1b0)](_0x2ae96f(0x195)));}[_0x14e0d1(0x1b0)](_0x21f51c){const _0x1bf868=_0x14e0d1;if(!this[_0x1bf868(0x1bd)][_0x1bf868(0x169)][_0x1bf868(0x197)](_0x1bf868(0x1b1)))throw new _0x4573f6(_0x1bf868(0x177),this[_0x1bf868(0x1bd)],{'tabName':_0x21f51c});this[_0x1bf868(0x1bd)][_0x1bf868(0x169)][_0x1bf868(0x1c0)](_0x1bf868(0x1b1))[_0x1bf868(0x194)][_0x1bf868(0x178)](_0x21f51c);}async[_0x14e0d1(0x1b5)]({prompt:_0x14aa52,draftMode:_0x323c4d,useWebSearch:_0x29631d=!0x1,useReasoning:_0x3de1a1=!0x1,model:_0xa24d5c}){const _0x170168=_0x14e0d1,_0x5ae8f2=this[_0x170168(0x1bd)][_0x170168(0x169)][_0x170168(0x1c0)](_0x170168(0x192)),_0x5b2c9e=this[_0x170168(0x1bd)][_0x170168(0x169)][_0x170168(0x1c0)](_0x170168(0x1a2)),_0x639c5b=_0x5b2c9e[_0x170168(0x181)];let _0x56325f;_0x56325f=_0xa24d5c?await _0x639c5b[_0x170168(0x189)][_0x170168(0x1a7)](_0xa24d5c):await _0x639c5b[_0x170168(0x189)][_0x170168(0x16a)](),_0x56325f&&await _0x639c5b[_0x170168(0x188)](_0x56325f),_0x639c5b[_0x170168(0x1bc)](_0x29631d),_0x639c5b[_0x170168(0x1b4)](_0x3de1a1),_0x5b2c9e[_0x170168(0x1ad)](),_0x323c4d?(this[_0x170168(0x171)][_0x170168(0x167)](_0x14aa52),this[_0x170168(0x171)][_0x170168(0x170)](!0x0)):_0x5ae8f2[_0x170168(0x165)]({'message':_0x14aa52});}[_0x14e0d1(0x198)]({check:_0x4ba12e,model:_0x473247,prompt:_0x551bfc,params:_0x19cc5f}){const _0x306319=_0x14e0d1;if(!this[_0x306319(0x1bd)][_0x306319(0x169)][_0x306319(0x197)](_0x306319(0x1b8)))throw new _0x4573f6(_0x306319(0x1b3),this[_0x306319(0x1bd)]);this[_0x306319(0x1b0)](_0x306319(0x19d));const _0x17b7e5={'id':_0x4ba12e,'isCustom':_0x306319(0x199)===_0x4ba12e};_0x473247&&_0x551bfc&&(_0x17b7e5[_0x306319(0x1b2)]={'model':_0x473247,'prompt':_0x551bfc}),_0x19cc5f&&(_0x17b7e5[_0x306319(0x190)]=_0x19cc5f),this[_0x306319(0x1bd)][_0x306319(0x169)][_0x306319(0x1c0)](_0x306319(0x1b8))[_0x306319(0x1b7)](_0x306319(0x1b9),_0x17b7e5);}[_0x14e0d1(0x1aa)]({language:_0x4fc3c2}){const _0x544573=_0x14e0d1;if(!this[_0x544573(0x1bd)][_0x544573(0x169)][_0x544573(0x197)](_0x544573(0x17c)))throw new _0x4573f6(_0x544573(0x16d),this[_0x544573(0x1bd)]);this[_0x544573(0x1b0)](_0x544573(0x195)),this[_0x544573(0x1bd)][_0x544573(0x169)][_0x544573(0x1c0)](_0x544573(0x17c))[_0x544573(0x1b7)](_0x544573(0x1b9),{'id':_0x4fc3c2,'args':{'language':_0x4fc3c2}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x57047b=_0x75d9;(function(_0x5c96e9,_0x3de6a1){const _0x249bec=_0x75d9,_0x24426a=_0x5c96e9();while(!![]){try{const _0x5b45bc=-parseInt(_0x249bec(0x1dc))/0x1*(-parseInt(_0x249bec(0x1d4))/0x2)+-parseInt(_0x249bec(0x1cf))/0x3*(parseInt(_0x249bec(0x1d8))/0x4)+parseInt(_0x249bec(0x1d3))/0x5*(-parseInt(_0x249bec(0x1e1))/0x6)+parseInt(_0x249bec(0x1de))/0x7*(parseInt(_0x249bec(0x1e2))/0x8)+-parseInt(_0x249bec(0x1d5))/0x9+parseInt(_0x249bec(0x1d0))/0xa+parseInt(_0x249bec(0x1df))/0xb*(parseInt(_0x249bec(0x1d9))/0xc);if(_0x5b45bc===_0x3de6a1)break;else _0x24426a['push'](_0x24426a['shift']());}catch(_0x2df37b){_0x24426a['push'](_0x24426a['shift']());}}}(_0x1402,0x2563f));function _0x1402(){const _0x342638=['listView','setTemplate','execute','10350etsNyf','1977680QHiIqe','addMany','add','1273945lEiibg','3016KplXOq','660177DGuoHy','delegate','ck-ai-chat-shortcuts','140LYUSnZ','275148IdVhkW','map','div','5hsxKyl','items','476OLNwZf','77EBRwAi','locale','6JQsfDD','27792cTxjjH','children'];_0x1402=function(){return _0x342638;};return _0x1402();}import{ListItemView as _0xb79191,ListView as _0x5668c4,View as _0x5ddb35}from'ckeditor5/src/ui.js';function _0x75d9(_0x703a4a,_0x1ad600){const _0x140264=_0x1402();return _0x75d9=function(_0x75d9ca,_0x1796e8){_0x75d9ca=_0x75d9ca-0x1cd;let _0x1ab52d=_0x140264[_0x75d9ca];return _0x1ab52d;},_0x75d9(_0x703a4a,_0x1ad600);}import{AIChatShortcutView as _0x1735d0}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x5ddb35{[_0x57047b(0x1e4)];constructor(_0x39b563,_0x559fc4){const _0x4b8a4d=_0x57047b;super(_0x39b563);const _0x3151c6=_0x559fc4[_0x4b8a4d(0x1da)](_0x49219c=>{const _0x3e2531=_0x4b8a4d,_0x2a3923=new _0xb79191(this[_0x3e2531(0x1e0)]),_0x407a27=new _0x1735d0(this[_0x3e2531(0x1e0)],_0x49219c);return _0x2a3923[_0x3e2531(0x1e3)][_0x3e2531(0x1d2)](_0x407a27),_0x407a27[_0x3e2531(0x1d6)](_0x3e2531(0x1ce))['to'](this),_0x2a3923;});this[_0x4b8a4d(0x1e4)]=new _0x5668c4(this[_0x4b8a4d(0x1e0)]),this[_0x4b8a4d(0x1e4)][_0x4b8a4d(0x1dd)][_0x4b8a4d(0x1d1)](_0x3151c6),this[_0x4b8a4d(0x1cd)]({'tag':_0x4b8a4d(0x1db),'attributes':{'class':['ck',_0x4b8a4d(0x1d7)]},'children':[this[_0x4b8a4d(0x1e4)]]});}}
23
+ const _0x4a0c91=_0x124d;(function(_0x182ef3,_0x3a3a49){const _0x33b1d9=_0x124d,_0x4128b5=_0x182ef3();while(!![]){try{const _0xdf0204=-parseInt(_0x33b1d9(0x1d3))/0x1*(parseInt(_0x33b1d9(0x1de))/0x2)+parseInt(_0x33b1d9(0x1d1))/0x3*(parseInt(_0x33b1d9(0x1d0))/0x4)+parseInt(_0x33b1d9(0x1cb))/0x5+-parseInt(_0x33b1d9(0x1dd))/0x6*(parseInt(_0x33b1d9(0x1d2))/0x7)+-parseInt(_0x33b1d9(0x1df))/0x8+parseInt(_0x33b1d9(0x1dc))/0x9+parseInt(_0x33b1d9(0x1cd))/0xa;if(_0xdf0204===_0x3a3a49)break;else _0x4128b5['push'](_0x4128b5['shift']());}catch(_0x3d7408){_0x4128b5['push'](_0x4128b5['shift']());}}}(_0x4594,0x1f63c));import{ListItemView as _0x401fdc,ListView as _0x45e1f4,View as _0x19da11}from'ckeditor5/src/ui.js';function _0x124d(_0x12498a,_0x599b23){const _0x459476=_0x4594();return _0x124d=function(_0x124ddf,_0xc07257){_0x124ddf=_0x124ddf-0x1ca;let _0xa18fb4=_0x459476[_0x124ddf];return _0xa18fb4;},_0x124d(_0x12498a,_0x599b23);}function _0x4594(){const _0x394c97=['2533370OtACNB','execute','locale','8bTQZAw','163275mmGYyk','24521IFYnEU','3ddXRIw','add','ck-ai-chat-shortcuts','listView','delegate','map','setTemplate','addMany','children','724005wVUQAp','378fYFYoA','130282QQwLeW','125520kcBLZD','items','588710mmPUXY','div'];_0x4594=function(){return _0x394c97;};return _0x4594();}import{AIChatShortcutView as _0x42e84d}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x19da11{[_0x4a0c91(0x1d6)];constructor(_0x47b298,_0x4b945e){const _0x1a330e=_0x4a0c91;super(_0x47b298);const _0x3b1662=_0x4b945e[_0x1a330e(0x1d8)](_0x3ec660=>{const _0x4352aa=_0x1a330e,_0xa984b7=new _0x401fdc(this[_0x4352aa(0x1cf)]),_0x4c4740=new _0x42e84d(this[_0x4352aa(0x1cf)],_0x3ec660);return _0xa984b7[_0x4352aa(0x1db)][_0x4352aa(0x1d4)](_0x4c4740),_0x4c4740[_0x4352aa(0x1d7)](_0x4352aa(0x1ce))['to'](this),_0xa984b7;});this[_0x1a330e(0x1d6)]=new _0x45e1f4(this[_0x1a330e(0x1cf)]),this[_0x1a330e(0x1d6)][_0x1a330e(0x1ca)][_0x1a330e(0x1da)](_0x3b1662),this[_0x1a330e(0x1d9)]({'tag':_0x1a330e(0x1cc),'attributes':{'class':['ck',_0x1a330e(0x1d5)]},'children':[this[_0x1a330e(0x1d6)]]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x4e6cf9,_0x52e6d9){const _0x3d3321=_0x5adc,_0x4b9ec4=_0x4e6cf9();while(!![]){try{const _0x196e84=-parseInt(_0x3d3321(0x113))/0x1*(-parseInt(_0x3d3321(0x10d))/0x2)+parseInt(_0x3d3321(0x11a))/0x3+parseInt(_0x3d3321(0x11f))/0x4*(parseInt(_0x3d3321(0x110))/0x5)+parseInt(_0x3d3321(0x112))/0x6*(parseInt(_0x3d3321(0x119))/0x7)+-parseInt(_0x3d3321(0x11b))/0x8*(parseInt(_0x3d3321(0x111))/0x9)+parseInt(_0x3d3321(0x114))/0xa*(-parseInt(_0x3d3321(0x117))/0xb)+parseInt(_0x3d3321(0x10c))/0xc*(parseInt(_0x3d3321(0x11c))/0xd);if(_0x196e84===_0x52e6d9)break;else _0x4b9ec4['push'](_0x4b9ec4['shift']());}catch(_0x3aeeb3){_0x4b9ec4['push'](_0x4b9ec4['shift']());}}}(_0x10ef,0x32191));function _0x5adc(_0x78674f,_0x5d5a1f){const _0x10ef87=_0x10ef();return _0x5adc=function(_0x5adc4d,_0x49ad99){_0x5adc4d=_0x5adc4d-0x10c;let _0x38dc7c=_0x10ef87[_0x5adc4d];return _0x38dc7c;},_0x5adc(_0x78674f,_0x5d5a1f);}import{ButtonView as _0x5b358d}from'ckeditor5/src/ui.js';import{IconAIChat as _0x5ec8c1,IconAIReview as _0x543e89,IconAITranslate as _0x3fdc8f}from'@ckeditor/ckeditor5-icons';function _0x10ef(){const _0x274b96=['set','42psgbvV','464112aBZJtF','3196504KYPFgL','13cvjfCJ','label','ck-ai-chat-shortcut','84WTCHuf','icon','2868732JLCCCy','74166ousUrt','review','translate','2850LBgsGO','9kTyZOk','60546nhOBWa','6bhmaHV','30AGjUsA','chat','extendTemplate','308055QHgJyN'];_0x10ef=function(){return _0x274b96;};return _0x10ef();}export class AIChatShortcutView extends _0x5b358d{['id'];constructor(_0x25c045,_0xc70ba3){const _0x111d3b=_0x5adc;super(_0x25c045);const {id:_0x36b74d,type:_0x5b0bc8,icon:_0x595be2}=_0xc70ba3;this['id']=_0x36b74d,this[_0x111d3b(0x118)]({'label':_0xc70ba3[_0x111d3b(0x11d)],'withText':!0x0,'class':_0x111d3b(0x11e)}),this[_0x111d3b(0x116)]({'attributes':{'data-cke-ai-shortcut-id':_0xc70ba3['id']}}),_0x595be2?this[_0x111d3b(0x120)]=_0x595be2:_0x111d3b(0x115)===_0x5b0bc8?this[_0x111d3b(0x120)]=_0x5ec8c1:_0x111d3b(0x10e)===_0x5b0bc8?this[_0x111d3b(0x120)]=_0x543e89:_0x111d3b(0x10f)===_0x5b0bc8&&(this[_0x111d3b(0x120)]=_0x3fdc8f);}}
23
+ function _0x2ec6(_0x114fc6,_0x28e182){const _0x4102c0=_0x4102();return _0x2ec6=function(_0x2ec6cd,_0x2eaf91){_0x2ec6cd=_0x2ec6cd-0xd7;let _0x5d869b=_0x4102c0[_0x2ec6cd];return _0x5d869b;},_0x2ec6(_0x114fc6,_0x28e182);}(function(_0x500faa,_0x5e7715){const _0x19dded=_0x2ec6,_0x31320d=_0x500faa();while(!![]){try{const _0x31e467=parseInt(_0x19dded(0xe4))/0x1*(parseInt(_0x19dded(0xe1))/0x2)+parseInt(_0x19dded(0xe8))/0x3*(parseInt(_0x19dded(0xe5))/0x4)+-parseInt(_0x19dded(0xdf))/0x5+-parseInt(_0x19dded(0xe9))/0x6*(parseInt(_0x19dded(0xda))/0x7)+parseInt(_0x19dded(0xdd))/0x8+parseInt(_0x19dded(0xd9))/0x9+-parseInt(_0x19dded(0xde))/0xa*(parseInt(_0x19dded(0xe7))/0xb);if(_0x31e467===_0x5e7715)break;else _0x31320d['push'](_0x31320d['shift']());}catch(_0x20d583){_0x31320d['push'](_0x31320d['shift']());}}}(_0x4102,0x7c5bd));import{ButtonView as _0x34e4e4}from'ckeditor5/src/ui.js';import{IconAIChat as _0x1744dc,IconAIReview as _0xf84336,IconAITranslate as _0x461c93}from'@ckeditor/ckeditor5-icons';function _0x4102(){const _0x4dfe38=['review','2863888dGpgyx','10NsdVmQ','1400770UngzjD','icon','249182iQJpfN','chat','extendTemplate','5gEDBTu','2023676ESUEIt','ck-ai-chat-shortcut','7519369kgAojl','6pPvgEP','6ggdKPc','set','translate','803016qVqZko','4262279qxbriO','label'];_0x4102=function(){return _0x4dfe38;};return _0x4102();}export class AIChatShortcutView extends _0x34e4e4{['id'];constructor(_0x376b5a,_0xfc9ad0){const _0x35bc0e=_0x2ec6;super(_0x376b5a);const {id:_0x3074c3,type:_0x46eb24,icon:_0x187654}=_0xfc9ad0;this['id']=_0x3074c3,this[_0x35bc0e(0xd7)]({'label':_0xfc9ad0[_0x35bc0e(0xdb)],'withText':!0x0,'class':_0x35bc0e(0xe6)}),this[_0x35bc0e(0xe3)]({'attributes':{'data-cke-ai-shortcut-id':_0xfc9ad0['id']}}),_0x187654?this[_0x35bc0e(0xe0)]=_0x187654:_0x35bc0e(0xe2)===_0x46eb24?this[_0x35bc0e(0xe0)]=_0x1744dc:_0x35bc0e(0xdc)===_0x46eb24?this[_0x35bc0e(0xe0)]=_0xf84336:_0x35bc0e(0xd8)===_0x46eb24&&(this[_0x35bc0e(0xe0)]=_0x461c93);}}