@ckeditor/ckeditor5-ai 47.7.0-alpha.4 → 47.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) 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/aiadapter.js +1 -1
  7. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  8. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  9. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  10. package/src/aiassistant/aiassistant.js +1 -1
  11. package/src/aiassistant/aiassistantediting.js +1 -1
  12. package/src/aiassistant/aiassistantui.js +1 -1
  13. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  14. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  15. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  16. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformview.js +1 -1
  18. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  19. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  20. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  21. package/src/aiballoon/aiballoon.js +1 -1
  22. package/src/aichat/aichat.js +1 -1
  23. package/src/aichat/aichatballoon.js +1 -1
  24. package/src/aichat/aichatcontroller.js +1 -1
  25. package/src/aichat/aichatui.js +1 -1
  26. package/src/aichat/model/aichatcontext.js +1 -1
  27. package/src/aichat/ui/aichatballoonview.js +1 -1
  28. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  29. package/src/aichat/ui/aichatheaderview.js +1 -1
  30. package/src/aichat/ui/aichatview.js +1 -1
  31. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  32. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  33. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  34. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  35. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  36. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  37. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  38. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  39. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  40. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  41. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  42. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  43. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  44. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.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/ui/aichathistorylistitemview.js +2 -2
  49. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  50. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  51. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  52. package/src/aicore/aiconnector.js +1 -1
  53. package/src/aicore/aiediting.js +1 -1
  54. package/src/aicore/model/aiinteraction.js +1 -1
  55. package/src/aicore/model/aimodels.js +1 -1
  56. package/src/aicore/model/aireply.js +1 -1
  57. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  58. package/src/aicore/pipeline/airesponseparser.js +2 -2
  59. package/src/aicore/ui/aidisclaimerview.js +1 -1
  60. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  61. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  62. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  63. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  64. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  65. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  66. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  67. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  68. package/src/aicore/utils/createresizebutton.js +1 -1
  69. package/src/aicore/utils/documentrange.js +1 -1
  70. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  71. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  72. package/src/aicore/utils/htmlparser.js +1 -1
  73. package/src/aicore/utils/htmlstreamer.js +1 -1
  74. package/src/aieditorintegration/aieditorintegration.js +1 -1
  75. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  76. package/src/aiquickactions/aiquickactions.js +1 -1
  77. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  78. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  79. package/src/aiquickactions/aiquickactionsui.js +1 -1
  80. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  81. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  82. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  83. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  84. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  85. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  86. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  87. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  88. package/src/aireviewcore/aireviewcoreui.js +1 -1
  89. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  90. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  91. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  92. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  93. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  94. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  95. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  96. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  97. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  98. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  99. package/src/aireviewmode/aireviewmode.js +1 -1
  100. package/src/aireviewmode/aireviewmodeui.js +1 -1
  101. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  102. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  103. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  104. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  105. package/src/aitabs/aitabs.js +1 -1
  106. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  107. package/src/aitranslate/aitranslate.js +1 -1
  108. package/src/aitranslate/aitranslatecontroller.js +1 -1
  109. package/src/aitranslate/aitranslateui.js +1 -1
  110. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  111. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  112. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x55c5ff=_0x1ddb;function _0x11b6(){const _0x24ed9b=['locale','ck-ai-chat-context-chips-wrapper','_contextChips','createCollection','setContainerElement','3LLRERM','8CnJUUh','element','render','ck-ai-chat-context-chips-wrapper-balloon','setTemplate','destroy','274951NFmDNM','145KgMFLu','add','134016tRkiHY','reorganizeChips','9473520FRngnb','ck-ai-chat-controls_context_show-more-button','2424772odNWiK','ck-ai-chat-controls-button','315306LevzYc','_bodyCollection','div','querySelector','_overflowManager','15358630ypDruc','ck-ai-chat-context-controls__show-more-balloon-panel','_createContextChips','2200714BNateX','ck-reset_all','ck-ai-chat__feed__context-chips'];_0x11b6=function(){return _0x24ed9b;};return _0x11b6();}(function(_0x1332f7,_0x55e51a){const _0xc513c7=_0x1ddb,_0x4a2fc4=_0x1332f7();while(!![]){try{const _0x583ab6=parseInt(_0xc513c7(0x15f))/0x1+-parseInt(_0xc513c7(0x170))/0x2+parseInt(_0xc513c7(0x158))/0x3*(-parseInt(_0xc513c7(0x166))/0x4)+parseInt(_0xc513c7(0x160))/0x5*(-parseInt(_0xc513c7(0x162))/0x6)+parseInt(_0xc513c7(0x164))/0x7+-parseInt(_0xc513c7(0x159))/0x8*(parseInt(_0xc513c7(0x168))/0x9)+parseInt(_0xc513c7(0x16d))/0xa;if(_0x583ab6===_0x55e51a)break;else _0x4a2fc4['push'](_0x4a2fc4['shift']());}catch(_0x404ec8){_0x4a2fc4['push'](_0x4a2fc4['shift']());}}}(_0x11b6,0xbd2be));import{View as _0x3d3edd}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x1ea5ee}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x33edae}from'../controls/aichatchipsoverflowmanager.js';function _0x1ddb(_0x5b8330,_0x395093){const _0x11b606=_0x11b6();return _0x1ddb=function(_0x1ddbc1,_0x4376c8){_0x1ddbc1=_0x1ddbc1-0x155;let _0x43f6b6=_0x11b606[_0x1ddbc1];return _0x43f6b6;},_0x1ddb(_0x5b8330,_0x395093);}const oc=_0x55c5ff(0x172),rc=_0x55c5ff(0x174),nc=_0x55c5ff(0x15c),Xo=_0x55c5ff(0x167),$o=_0x55c5ff(0x165),Wo=_0x55c5ff(0x16e);export class AIChatFeedContextChipsView extends _0x3d3edd{[_0x55c5ff(0x155)]=this[_0x55c5ff(0x156)]();[_0x55c5ff(0x16c)];[_0x55c5ff(0x169)];constructor(_0x10b909,_0x1ae90b,_0x5004e2){const _0x387d25=_0x55c5ff;super(_0x10b909),this[_0x387d25(0x169)]=_0x5004e2,this[_0x387d25(0x16f)](_0x1ae90b);const _0x599925={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':nc,'controlsButton':Xo}};this[_0x387d25(0x16c)]=new _0x33edae(_0x10b909,this[_0x387d25(0x155)],_0x599925,this[_0x387d25(0x169)],this),this[_0x387d25(0x15d)]({'tag':_0x387d25(0x16a),'attributes':{'class':[oc,'ck',_0x387d25(0x171)]},'children':[{'tag':_0x387d25(0x16a),'attributes':{'class':rc},'children':this[_0x387d25(0x155)]}]});}[_0x55c5ff(0x15b)](){const _0x6f298f=_0x55c5ff;super[_0x6f298f(0x15b)]();const _0x234c47=this[_0x6f298f(0x15a)][_0x6f298f(0x16b)]('.'+rc);_0x234c47&&(this[_0x6f298f(0x16c)][_0x6f298f(0x157)](_0x234c47),this[_0x6f298f(0x16c)][_0x6f298f(0x163)]());}[_0x55c5ff(0x15e)](){const _0x443e57=_0x55c5ff;super[_0x443e57(0x15e)](),this[_0x443e57(0x16c)][_0x443e57(0x15e)]();}[_0x55c5ff(0x16f)](_0x2311ed){const _0xb1d3d7=_0x55c5ff;for(const _0x5d5806 of _0x2311ed){const _0x5d1250=new _0x1ea5ee(this[_0xb1d3d7(0x173)],_0x5d5806,!0x0,!0x1);this[_0xb1d3d7(0x155)][_0xb1d3d7(0x161)](_0x5d1250);}}}
23
+ function _0x4c99(){const _0x382538=['1431282LJKypy','ck-ai-chat-controls-button','_bodyCollection','1892LnyHuG','ck-ai-chat-controls_context_show-more-button','39736UbspQm','setTemplate','querySelector','ck-ai-chat-context-controls__show-more-balloon-panel','render','setContainerElement','ck-ai-chat-context-chips-wrapper','_contextChips','element','div','_overflowManager','add','createCollection','ck-ai-chat-context-chips-wrapper-balloon','72468NIjRNM','destroy','1015528btTVpa','108wurVWH','ck-ai-chat__feed__context-chips','ck-reset_all','locale','142FiwIEp','5QmwhTX','5919250jNaFQb','564SGkJJz','_createContextChips','1722GeUYsM','reorganizeChips','7988ejlDUq'];_0x4c99=function(){return _0x382538;};return _0x4c99();}const _0x501925=_0x1e59;(function(_0x59f6f6,_0x7f6f53){const _0x35f026=_0x1e59,_0x492ba5=_0x59f6f6();while(!![]){try{const _0x1475be=-parseInt(_0x35f026(0x126))/0x1*(parseInt(_0x35f026(0x12d))/0x2)+-parseInt(_0x35f026(0x12e))/0x3+parseInt(_0x35f026(0x143))/0x4*(-parseInt(_0x35f026(0x127))/0x5)+-parseInt(_0x35f026(0x129))/0x6*(parseInt(_0x35f026(0x12b))/0x7)+parseInt(_0x35f026(0x133))/0x8*(parseInt(_0x35f026(0x122))/0x9)+parseInt(_0x35f026(0x128))/0xa+parseInt(_0x35f026(0x131))/0xb*(parseInt(_0x35f026(0x141))/0xc);if(_0x1475be===_0x7f6f53)break;else _0x492ba5['push'](_0x492ba5['shift']());}catch(_0x2dd1c4){_0x492ba5['push'](_0x492ba5['shift']());}}}(_0x4c99,0x5a15d));import{View as _0x54764a}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x4fb16e}from'../controls/aichatcontextitembuttonview.js';function _0x1e59(_0x11779c,_0xde3988){const _0x4c995f=_0x4c99();return _0x1e59=function(_0x1e5932,_0x410655){_0x1e5932=_0x1e5932-0x122;let _0x1f505f=_0x4c995f[_0x1e5932];return _0x1f505f;},_0x1e59(_0x11779c,_0xde3988);}import{AIChatChipsOverflowManager as _0x550599}from'../controls/aichatchipsoverflowmanager.js';const oc=_0x501925(0x123),cc=_0x501925(0x139),rc=_0x501925(0x140),Xo=_0x501925(0x12f),$o=_0x501925(0x132),Wo=_0x501925(0x136);export class AIChatFeedContextChipsView extends _0x54764a{[_0x501925(0x13a)]=this[_0x501925(0x13f)]();[_0x501925(0x13d)];[_0x501925(0x130)];constructor(_0x1b133c,_0x65e8ab,_0x241be8){const _0x2042b6=_0x501925;super(_0x1b133c),this[_0x2042b6(0x130)]=_0x241be8,this[_0x2042b6(0x12a)](_0x65e8ab);const _0x4904fb={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':rc,'controlsButton':Xo}};this[_0x2042b6(0x13d)]=new _0x550599(_0x1b133c,this[_0x2042b6(0x13a)],_0x4904fb,this[_0x2042b6(0x130)],this),this[_0x2042b6(0x134)]({'tag':_0x2042b6(0x13c),'attributes':{'class':[oc,'ck',_0x2042b6(0x124)]},'children':[{'tag':_0x2042b6(0x13c),'attributes':{'class':cc},'children':this[_0x2042b6(0x13a)]}]});}[_0x501925(0x137)](){const _0x42f274=_0x501925;super[_0x42f274(0x137)]();const _0x9aeea4=this[_0x42f274(0x13b)][_0x42f274(0x135)]('.'+cc);_0x9aeea4&&(this[_0x42f274(0x13d)][_0x42f274(0x138)](_0x9aeea4),this[_0x42f274(0x13d)][_0x42f274(0x12c)]());}[_0x501925(0x142)](){const _0x43f7d5=_0x501925;super[_0x43f7d5(0x142)](),this[_0x43f7d5(0x13d)][_0x43f7d5(0x142)]();}[_0x501925(0x12a)](_0x5143a2){const _0x13c6da=_0x501925;for(const _0x134b82 of _0x5143a2){const _0x55c424=new _0x4fb16e(this[_0x13c6da(0x125)],_0x134b82,!0x0,!0x1);this[_0x13c6da(0x13a)][_0x13c6da(0x13e)](_0x55c424);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3489(){const _0x4b8893=['AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','75008KrtDEC','content','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','ck-ai-chat__feed__interaction-header__capabilities__text','151315QgAVoM','ck-hidden','65248QsVSAT','capabilities','span','ck-ai-chat__feed__interaction-header','children','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','431048ZHTwMX','extendTemplate','push','ck-ai-chat__feed__interaction-header__capabilities','add','div','1394hGToFU','1107HqiIrn','1675902xstNsU','setTemplate','431207HpoHOC'];_0x3489=function(){return _0x4b8893;};return _0x3489();}const _0x4f8fdc=_0x1121;(function(_0x14fa43,_0x203004){const _0x2f3e38=_0x1121,_0x4e885f=_0x14fa43();while(!![]){try{const _0x3b0fa5=parseInt(_0x2f3e38(0x163))/0x1+-parseInt(_0x2f3e38(0x15d))/0x2*(-parseInt(_0x2f3e38(0x15e))/0x3)+-parseInt(_0x2f3e38(0x169))/0x4+parseInt(_0x2f3e38(0x167))/0x5+-parseInt(_0x2f3e38(0x15f))/0x6+parseInt(_0x2f3e38(0x161))/0x7+parseInt(_0x2f3e38(0x157))/0x8;if(_0x3b0fa5===_0x203004)break;else _0x4e885f['push'](_0x4e885f['shift']());}catch(_0x208a33){_0x4e885f['push'](_0x4e885f['shift']());}}}(_0x3489,0x2c82d));import{IconBulb as _0x3cdb27,IconWeb as _0x420f28}from'@ckeditor/ckeditor5-icons';import{IconView as _0x3c9e74,View as _0x104ba0}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x3a865c}from'./aichatfeeditemview.js';function _0x1121(_0x409c85,_0x333ef8){const _0x34899b=_0x3489();return _0x1121=function(_0x11211f,_0x2015fe){_0x11211f=_0x11211f-0x153;let _0x39d23b=_0x34899b[_0x11211f];return _0x39d23b;},_0x1121(_0x409c85,_0x333ef8);}import{getTranslation as _0x3a56d9}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x3a865c{[_0x4f8fdc(0x16a)];constructor(_0x4121c4,_0x1e6d29){const _0x9a9f=_0x4f8fdc;super(_0x1e6d29);const {isWebSearchEnabled:_0x54d64b,isReasoningEnabled:_0x20126f}=_0x1e6d29[_0x9a9f(0x16a)],_0x4001ab=[];let _0x379319='';_0x54d64b&&_0x20126f?(_0x379319=_0x3a56d9(_0x4121c4,_0x9a9f(0x162)),_0x4001ab[_0x9a9f(0x159)](aa(_0x420f28)),_0x4001ab[_0x9a9f(0x159)](aa(_0x3cdb27))):_0x54d64b?(_0x379319=_0x3a56d9(_0x4121c4,_0x9a9f(0x156)),_0x4001ab[_0x9a9f(0x159)](aa(_0x420f28))):_0x20126f&&(_0x379319=_0x3a56d9(_0x4121c4,_0x9a9f(0x165)),_0x4001ab[_0x9a9f(0x159)](aa(_0x3cdb27))),this[_0x9a9f(0x158)]({'attributes':{'class':[_0x9a9f(0x154),_0x379319?'':_0x9a9f(0x168)]}});const _0x4e6ad8=new _0x104ba0();_0x4e6ad8[_0x9a9f(0x160)]({'tag':_0x9a9f(0x15c),'attributes':{'class':['ck',_0x9a9f(0x15a)]},'children':[..._0x4001ab,{'tag':_0x9a9f(0x153),'attributes':{'class':[_0x9a9f(0x166)]},'children':[_0x379319]}]}),this[_0x9a9f(0x155)][_0x9a9f(0x15b)](_0x4e6ad8),this[_0x9a9f(0x16a)]=_0x1e6d29[_0x9a9f(0x16a)];}}function aa(_0x3ba8bf){const _0x25b7d9=_0x4f8fdc,_0x483f94=new _0x3c9e74();return _0x483f94[_0x25b7d9(0x164)]=_0x3ba8bf,_0x483f94;}
23
+ const _0x150c9d=_0x45cc;(function(_0x2668cc,_0x221125){const _0x55db15=_0x45cc,_0x1baecd=_0x2668cc();while(!![]){try{const _0x12646b=-parseInt(_0x55db15(0xc6))/0x1+-parseInt(_0x55db15(0xb9))/0x2+parseInt(_0x55db15(0xc7))/0x3+parseInt(_0x55db15(0xbd))/0x4*(-parseInt(_0x55db15(0xc0))/0x5)+parseInt(_0x55db15(0xb4))/0x6+parseInt(_0x55db15(0xb7))/0x7+-parseInt(_0x55db15(0xbf))/0x8;if(_0x12646b===_0x221125)break;else _0x1baecd['push'](_0x1baecd['shift']());}catch(_0x4989ef){_0x1baecd['push'](_0x1baecd['shift']());}}}(_0x44d9,0x848e3));import{IconBulb as _0x595243,IconWeb as _0x579ee8}from'@ckeditor/ckeditor5-icons';function _0x45cc(_0x5ad359,_0x3ff29c){const _0x44d9c3=_0x44d9();return _0x45cc=function(_0x45cc51,_0x1bff8a){_0x45cc51=_0x45cc51-0xb1;let _0x4b71bd=_0x44d9c3[_0x45cc51];return _0x4b71bd;},_0x45cc(_0x5ad359,_0x3ff29c);}import{IconView as _0x158564,View as _0x136d80}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x15aad0}from'./aichatfeeditemview.js';import{getTranslation as _0x51cc1e}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x15aad0{[_0x150c9d(0xb5)];constructor(_0x10f16a,_0x47bb95){const _0x5022f0=_0x150c9d;super(_0x47bb95);const {isWebSearchEnabled:_0x2cafa4,isReasoningEnabled:_0xcd5be}=_0x47bb95[_0x5022f0(0xb5)],_0x91f0d0=[];let _0x58a8ee='';_0x2cafa4&&_0xcd5be?(_0x58a8ee=_0x51cc1e(_0x10f16a,_0x5022f0(0xc8)),_0x91f0d0[_0x5022f0(0xb6)](aa(_0x579ee8)),_0x91f0d0[_0x5022f0(0xb6)](aa(_0x595243))):_0x2cafa4?(_0x58a8ee=_0x51cc1e(_0x10f16a,_0x5022f0(0xb8)),_0x91f0d0[_0x5022f0(0xb6)](aa(_0x579ee8))):_0xcd5be&&(_0x58a8ee=_0x51cc1e(_0x10f16a,_0x5022f0(0xba)),_0x91f0d0[_0x5022f0(0xb6)](aa(_0x595243))),this[_0x5022f0(0xc3)]({'attributes':{'class':[_0x5022f0(0xc1),_0x58a8ee?'':_0x5022f0(0xb1)]}});const _0x21d266=new _0x136d80();_0x21d266[_0x5022f0(0xc2)]({'tag':_0x5022f0(0xbb),'attributes':{'class':['ck',_0x5022f0(0xbe)]},'children':[..._0x91f0d0,{'tag':_0x5022f0(0xbc),'attributes':{'class':[_0x5022f0(0xc5)]},'children':[_0x58a8ee]}]}),this[_0x5022f0(0xb3)][_0x5022f0(0xc4)](_0x21d266),this[_0x5022f0(0xb5)]=_0x47bb95[_0x5022f0(0xb5)];}}function _0x44d9(){const _0x46a8e1=['1489752ZTIOtZ','5cedMao','ck-ai-chat__feed__interaction-header','setTemplate','extendTemplate','add','ck-ai-chat__feed__interaction-header__capabilities__text','239496aJAsCz','1435647pYEaiR','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','ck-hidden','content','children','2744538OTADxH','capabilities','push','6899025eKXqKV','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','370108ExlobD','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','div','span','3071324ARCZgF','ck-ai-chat__feed__interaction-header__capabilities'];_0x44d9=function(){return _0x46a8e1;};return _0x44d9();}function aa(_0x5db8a4){const _0x5b453e=_0x150c9d,_0x5347b5=new _0x158564();return _0x5347b5[_0x5b453e(0xb2)]=_0x5db8a4,_0x5347b5;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x111d(){const _0x523f19=['setTemplate','5bHbgVU','locale','4440WBTiWb','streaming','590BVDylB','addMany','div','options','element','50864mfgnzu','54109HmAIdS','render','210274dLUmzc','add','map','378apuAXC','innerHTML','updateSources','ck-ai-chat__feed__ai-reply-container','children','336frLGWP','replyContainer','initialContent','ck-ai-chat__feed__ai-reply','ck-reset_all-excluded','_bodyCollection','static','balloonPanelView','markAsDone','streamIntoElement','isVisible','347958IItbaa','updateContent','416676ZQCQuU','20872zCxzKL','extendTemplate'];_0x111d=function(){return _0x523f19;};return _0x111d();}const _0x310c7b=_0x5431;(function(_0x427212,_0x3ff32b){const _0x21a9dc=_0x5431,_0x23cb1b=_0x427212();while(!![]){try{const _0x76d5b2=parseInt(_0x21a9dc(0x147))/0x1+-parseInt(_0x21a9dc(0x14a))/0x2+parseInt(_0x21a9dc(0x15d))/0x3+-parseInt(_0x21a9dc(0x15f))/0x4*(parseInt(_0x21a9dc(0x163))/0x5)+-parseInt(_0x21a9dc(0x165))/0x6*(parseInt(_0x21a9dc(0x152))/0x7)+-parseInt(_0x21a9dc(0x160))/0x8*(parseInt(_0x21a9dc(0x14d))/0x9)+-parseInt(_0x21a9dc(0x167))/0xa*(-parseInt(_0x21a9dc(0x148))/0xb);if(_0x76d5b2===_0x3ff32b)break;else _0x23cb1b['push'](_0x23cb1b['shift']());}catch(_0x5173d7){_0x23cb1b['push'](_0x23cb1b['shift']());}}}(_0x111d,0x1910b));import{AIChatFeedItemView as _0x2d9a32}from'./aichatfeeditemview.js';import{parse as _0x35eae9,render as _0x69aebc}from'../../../aicore/utils/htmlparser.js';import{View as _0x1cb42b}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x454d15,AIWebSourceView as _0x34c90e}from'../../../aicore/ui/suggestioncontainer/aiwebsourcesview.js';function _0x5431(_0x18cf0e,_0x120b20){const _0x111d8d=_0x111d();return _0x5431=function(_0x5431d9,_0x6a645b){_0x5431d9=_0x5431d9-0x146;let _0x149b59=_0x111d8d[_0x5431d9];return _0x149b59;},_0x5431(_0x18cf0e,_0x120b20);}export class AIChatFeedReplyItemView extends _0x2d9a32{[_0x310c7b(0x153)];[_0x310c7b(0x157)];constructor(_0x152e06,_0x163d2f,_0x1759e1){const _0x5b968e=_0x310c7b;super(_0x163d2f),this[_0x5b968e(0x157)]=_0x1759e1,this[_0x5b968e(0x164)]=_0x152e06,this[_0x5b968e(0x161)]({'attributes':{'class':[_0x5b968e(0x155)]}}),this[_0x5b968e(0x153)]=new _0x1cb42b(),this[_0x5b968e(0x153)][_0x5b968e(0x162)]({'tag':_0x5b968e(0x169),'attributes':{'class':['ck',_0x5b968e(0x156),_0x5b968e(0x150)]}}),this[_0x5b968e(0x151)][_0x5b968e(0x14b)](this[_0x5b968e(0x153)]);}async[_0x310c7b(0x149)](){const _0xa28051=_0x310c7b;super[_0xa28051(0x149)](),this[_0xa28051(0x16a)][_0xa28051(0x154)]&&(await this[_0xa28051(0x15e)]({'parsedContent':_0x35eae9(this[_0xa28051(0x16a)][_0xa28051(0x154)]),'renderingStrategy':_0xa28051(0x158)}),this[_0xa28051(0x15a)]());}async[_0x310c7b(0x15e)]({parsedContent:_0x3f6324,renderingStrategy:_0xb1b70c,abortSignal:_0x165439}){const _0x5def48=_0x310c7b;_0x5def48(0x166)===_0xb1b70c?await this[_0x5def48(0x15b)](_0x3f6324,this[_0x5def48(0x153)][_0x5def48(0x146)],_0x165439):this[_0x5def48(0x153)][_0x5def48(0x146)][_0x5def48(0x14e)]=_0x69aebc(_0x3f6324);}[_0x310c7b(0x14f)](_0x3c352d){const _0x29b950=_0x310c7b,_0x177c61=new _0x454d15(this[_0x29b950(0x164)],this[_0x29b950(0x157)]);_0x177c61[_0x29b950(0x151)][_0x29b950(0x168)](_0x3c352d[_0x29b950(0x14c)](_0x2955a0=>new _0x34c90e(this[_0x29b950(0x164)],_0x2955a0,_0x177c61[_0x29b950(0x159)]))),_0x177c61[_0x29b950(0x15c)]=!0x0,this[_0x29b950(0x151)][_0x29b950(0x14b)](_0x177c61);}}
23
+ const _0x2e4338=_0x3554;(function(_0x32966c,_0xcb12d7){const _0x403c74=_0x3554,_0x4f1820=_0x32966c();while(!![]){try{const _0x2522a8=-parseInt(_0x403c74(0x18b))/0x1+-parseInt(_0x403c74(0x17b))/0x2+-parseInt(_0x403c74(0x181))/0x3+-parseInt(_0x403c74(0x17a))/0x4*(-parseInt(_0x403c74(0x18a))/0x5)+parseInt(_0x403c74(0x176))/0x6+-parseInt(_0x403c74(0x18c))/0x7+parseInt(_0x403c74(0x185))/0x8;if(_0x2522a8===_0xcb12d7)break;else _0x4f1820['push'](_0x4f1820['shift']());}catch(_0x282fac){_0x4f1820['push'](_0x4f1820['shift']());}}}(_0x4784,0xaa94f));function _0x3554(_0x22865d,_0x4e5960){const _0x478473=_0x4784();return _0x3554=function(_0x35543f,_0x38c5e5){_0x35543f=_0x35543f-0x16d;let _0x19d082=_0x478473[_0x35543f];return _0x19d082;},_0x3554(_0x22865d,_0x4e5960);}import{AIChatFeedItemView as _0x20d489}from'./aichatfeeditemview.js';import{parse as _0x1ef232,render as _0x2c3c52}from'../../../aicore/utils/htmlparser.js';function _0x4784(){const _0xe263d8=['ck-reset_all-excluded','innerHTML','updateSources','render','initialContent','children','add','extendTemplate','ck-ai-chat__feed__ai-reply','streaming','563376WGfZct','map','ck-ai-chat__feed__ai-reply-container','div','184472YkhmPI','194682JqKTSF','markAsDone','addMany','_bodyCollection','replyContainer','setTemplate','2125092EhDiqQ','options','updateContent','locale','16867640IwKZGC','static','isVisible','balloonPanelView','streamIntoElement','85pEfpKr','136110CKpsAU','9420873ZNpNeQ','element'];_0x4784=function(){return _0xe263d8;};return _0x4784();}import{View as _0x31f8bc}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x256064,AIWebSourceView as _0x5e6ab7}from'../../../aicore/ui/suggestioncontainer/aiwebsourcesview.js';export class AIChatFeedReplyItemView extends _0x20d489{[_0x2e4338(0x17f)];[_0x2e4338(0x17e)];constructor(_0x54bab0,_0x1bdcf1,_0x22f3cb){const _0x2d7c62=_0x2e4338;super(_0x1bdcf1),this[_0x2d7c62(0x17e)]=_0x22f3cb,this[_0x2d7c62(0x184)]=_0x54bab0,this[_0x2d7c62(0x173)]({'attributes':{'class':[_0x2d7c62(0x174)]}}),this[_0x2d7c62(0x17f)]=new _0x31f8bc(),this[_0x2d7c62(0x17f)][_0x2d7c62(0x180)]({'tag':_0x2d7c62(0x179),'attributes':{'class':['ck',_0x2d7c62(0x18e),_0x2d7c62(0x178)]}}),this[_0x2d7c62(0x171)][_0x2d7c62(0x172)](this[_0x2d7c62(0x17f)]);}async[_0x2e4338(0x16f)](){const _0x47f701=_0x2e4338;super[_0x47f701(0x16f)](),this[_0x47f701(0x182)][_0x47f701(0x170)]&&(await this[_0x47f701(0x183)]({'parsedContent':_0x1ef232(this[_0x47f701(0x182)][_0x47f701(0x170)]),'renderingStrategy':_0x47f701(0x186)}),this[_0x47f701(0x17c)]());}async[_0x2e4338(0x183)]({parsedContent:_0x475380,renderingStrategy:_0x151a4d,abortSignal:_0x41c4a3}){const _0x3f8e00=_0x2e4338;_0x3f8e00(0x175)===_0x151a4d?await this[_0x3f8e00(0x189)](_0x475380,this[_0x3f8e00(0x17f)][_0x3f8e00(0x18d)],_0x41c4a3):this[_0x3f8e00(0x17f)][_0x3f8e00(0x18d)][_0x3f8e00(0x16d)]=_0x2c3c52(_0x475380);}[_0x2e4338(0x16e)](_0x150ebc){const _0x182aaa=_0x2e4338,_0x4dde78=new _0x256064(this[_0x182aaa(0x184)],this[_0x182aaa(0x17e)]);_0x4dde78[_0x182aaa(0x171)][_0x182aaa(0x17d)](_0x150ebc[_0x182aaa(0x177)](_0x338ec7=>new _0x5e6ab7(this[_0x182aaa(0x184)],_0x338ec7,_0x4dde78[_0x182aaa(0x188)]))),_0x4dde78[_0x182aaa(0x187)]=!0x0,this[_0x182aaa(0x171)][_0x182aaa(0x172)](_0x4dde78);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4dea21=_0x3dad;(function(_0x4d23ff,_0x149c39){const _0x5c3429=_0x3dad,_0x20d702=_0x4d23ff();while(!![]){try{const _0x66d2ad=-parseInt(_0x5c3429(0xba))/0x1+-parseInt(_0x5c3429(0xa5))/0x2*(parseInt(_0x5c3429(0xbe))/0x3)+parseInt(_0x5c3429(0xad))/0x4+parseInt(_0x5c3429(0x9a))/0x5+parseInt(_0x5c3429(0xac))/0x6*(-parseInt(_0x5c3429(0xb9))/0x7)+parseInt(_0x5c3429(0xb1))/0x8+-parseInt(_0x5c3429(0x9c))/0x9*(parseInt(_0x5c3429(0xa8))/0xa);if(_0x66d2ad===_0x149c39)break;else _0x20d702['push'](_0x20d702['shift']());}catch(_0x953b5f){_0x20d702['push'](_0x20d702['shift']());}}}(_0x51b8,0x34364));function _0x3dad(_0x1f1367,_0x4438a8){const _0x51b828=_0x51b8();return _0x3dad=function(_0x3dad12,_0x50ce1e){_0x3dad12=_0x3dad12-0x96;let _0x541fbd=_0x51b828[_0x3dad12];return _0x541fbd;},_0x3dad(_0x1f1367,_0x4438a8);}import{ButtonView as _0xb53e4,View as _0x10c252}from'ckeditor5/src/ui.js';function _0x51b8(){const _0x39de5a=['245qOluFp','43128sSHcwv','ck-ai-chat__feed__suggestion__actions__info','_switchButtonLabelsPlurality','execute','165DmViSI','fire','updateVisibility','_insertSuggestionsButton','label','bindTemplate','AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL','ck-ai-button-primary','div','applySuggestion','AI_SUGGESTION_DISABLED_FEED_MESSAGE','1008875fbRpjD','forEach','1133451vvSdAh','isEnabled','change:isTrackChangesOn','set','ck-ai-chat__feed__ai-suggestion__actions','children','bind','add','insertSuggestion','1050qCqGAu','button','AI_CHAT_SUGGESTION_ACTION_APPLY','20RCmgEI','createCollection','_applyChangesButton','AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE','38748ZBSVYj','866528ZlKtea','locale','AI_CHAT_SUGGESTION_ACTION_SUGGEST','includes','2762912tOFtzR','ck-ai-button-secondary','addMany','isVisible','isTrackChangesOn','setTemplate','ck-hidden','AI_CHAT_SUGGESTION_ACTION_APPLY_ALL'];_0x51b8=function(){return _0x39de5a;};return _0x51b8();}import{getTranslation as _0x3a6f12}from'../../../aicore/utils/common-translations.js';import{IconInfo as _0x45d97b}from'ckeditor5/src/icons.js';export const AI_REPLY_ACTIONS=[_0x4dea21(0x98),_0x4dea21(0xa4)];export class AIChatFeedSuggestionItemActionsView extends _0x10c252{[_0x4dea21(0xaa)];[_0x4dea21(0xc1)];[_0x4dea21(0xa1)];constructor(_0x45eede,_0x478cad=[...AI_REPLY_ACTIONS],_0x337e1d){const _0x45655f=_0x4dea21;super(_0x45eede);const _0x513abf=this[_0x45655f(0xc3)],_0x2d5504=Boolean(_0x337e1d);if(this[_0x45655f(0x9f)](_0x45655f(0x9d),!_0x2d5504),this[_0x45655f(0x9f)](_0x45655f(0xb4),!0x1),this[_0x45655f(0x9f)](_0x45655f(0xb5),!0x1),this[_0x45655f(0xa1)]=this[_0x45655f(0xa9)](),_0x2d5504){const _0x5b4fc2=new _0xb53e4(_0x45eede);_0x5b4fc2[_0x45655f(0x9f)]({'label':_0x3a6f12(_0x45eede,_0x45655f(0xab)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x45d97b});const _0x4787a7=new _0x10c252(_0x45eede);_0x4787a7[_0x45655f(0xb6)]({'tag':_0x45655f(0x97),'attributes':{'class':_0x45655f(0xbb)},'children':[{'tag':'p','children':[_0x3a6f12(_0x45eede,_0x45655f(0x99)),_0x5b4fc2]}]}),this[_0x45655f(0xa1)][_0x45655f(0xa3)](_0x4787a7);}else this[_0x45655f(0xaa)]=new _0xb53e4(_0x45eede),this[_0x45655f(0xaa)][_0x45655f(0x9f)]({'label':_0x3a6f12(_0x45eede,_0x45655f(0xb8)),'withText':!0x0,'type':_0x45655f(0xa6),'isVisible':_0x478cad[_0x45655f(0xb0)](_0x45655f(0x98)),'class':_0x45655f(0x96)}),this[_0x45655f(0xc1)]=new _0xb53e4(_0x45eede),this[_0x45655f(0xc1)][_0x45655f(0x9f)]({'label':_0x3a6f12(_0x45eede,_0x45655f(0xc4)),'withText':!0x0,'type':_0x45655f(0xa6),'isVisible':_0x478cad[_0x45655f(0xb0)](_0x45655f(0xa4)),'class':_0x45655f(0xb2)}),this[_0x45655f(0xc1)]['on'](_0x45655f(0xbd),()=>{const _0x1f0b29=_0x45655f;this[_0x1f0b29(0xbf)](_0x1f0b29(0xa4));}),this[_0x45655f(0xaa)]['on'](_0x45655f(0xbd),()=>{const _0x1bccda=_0x45655f;this[_0x1bccda(0xbf)](_0x1bccda(0x98));}),[this[_0x45655f(0xaa)],this[_0x45655f(0xc1)]][_0x45655f(0x9b)](_0x120437=>{const _0x5899e8=_0x45655f;_0x120437[_0x5899e8(0xa2)](_0x5899e8(0x9d))['to'](this);}),this[_0x45655f(0xa1)][_0x45655f(0xb3)]([this[_0x45655f(0xaa)],this[_0x45655f(0xc1)]]);this[_0x45655f(0xb6)]({'tag':_0x45655f(0x97),'attributes':{'class':['ck',_0x45655f(0xa0),_0x513abf['if'](_0x45655f(0xb4),_0x45655f(0xb7),_0x3dec78=>!_0x3dec78)]},'children':this[_0x45655f(0xa1)]}),this['on'](_0x45655f(0x9e),()=>{const _0x493151=_0x45655f;this[_0x493151(0xaa)]&&(this[_0x493151(0xaa)][_0x493151(0xb4)]=!this[_0x493151(0xb5)]);});}[_0x4dea21(0xc0)](_0x13bea7){const _0x46e049=_0x4dea21;this[_0x46e049(0xb4)]=_0x13bea7;}[_0x4dea21(0xbc)](_0x564457){const _0x28063a=_0x4dea21;this[_0x28063a(0xaa)]&&this[_0x28063a(0xc1)]&&(_0x564457?(this[_0x28063a(0xaa)][_0x28063a(0xc2)]=_0x3a6f12(this[_0x28063a(0xae)],_0x28063a(0xb8)),this[_0x28063a(0xc1)][_0x28063a(0xc2)]=_0x3a6f12(this[_0x28063a(0xae)],_0x28063a(0xc4))):(this[_0x28063a(0xaa)][_0x28063a(0xc2)]=_0x3a6f12(this[_0x28063a(0xae)],_0x28063a(0xa7)),this[_0x28063a(0xc1)][_0x28063a(0xc2)]=_0x3a6f12(this[_0x28063a(0xae)],_0x28063a(0xaf))));}}
23
+ const _0x249e95=_0x3acf;(function(_0x1b23ab,_0x47abdb){const _0x49fbb1=_0x3acf,_0x3d1026=_0x1b23ab();while(!![]){try{const _0x1b319c=-parseInt(_0x49fbb1(0x1f6))/0x1+-parseInt(_0x49fbb1(0x1f7))/0x2+-parseInt(_0x49fbb1(0x20b))/0x3+-parseInt(_0x49fbb1(0x1ff))/0x4+parseInt(_0x49fbb1(0x1fc))/0x5*(parseInt(_0x49fbb1(0x203))/0x6)+parseInt(_0x49fbb1(0x204))/0x7+parseInt(_0x49fbb1(0x210))/0x8*(parseInt(_0x49fbb1(0x20e))/0x9);if(_0x1b319c===_0x47abdb)break;else _0x3d1026['push'](_0x3d1026['shift']());}catch(_0x337bc9){_0x3d1026['push'](_0x3d1026['shift']());}}}(_0x20ae,0x75234));import{ButtonView as _0x2e4b6a,View as _0x42fc7c}from'ckeditor5/src/ui.js';import{getTranslation as _0x4c84b7}from'../../../aicore/utils/common-translations.js';function _0x20ae(){const _0x1367c6=['10vexkxj','isEnabled','ck-ai-chat__feed__suggestion__actions__info','2660848FUDHyS','forEach','AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL','ck-ai-button-secondary','1506312AEnqQh','5506193HUftdV','AI_CHAT_SUGGESTION_ACTION_SUGGEST','set','ck-hidden','AI_CHAT_SUGGESTION_ACTION_APPLY_ALL','_insertSuggestionsButton','setTemplate','1559433gnZVDh','updateVisibility','isVisible','575910NHuXwU','fire','128FFRrnW','_applyChangesButton','bind','add','addMany','execute','AI_CHAT_SUGGESTION_ACTION_APPLY','children','_switchButtonLabelsPlurality','AI_SUGGESTION_DISABLED_FEED_MESSAGE','ck-ai-chat__feed__ai-suggestion__actions','locale','button','ck-ai-button-primary','div','isTrackChangesOn','label','change:isTrackChangesOn','createCollection','bindTemplate','118094uyNWlO','1059260afcLZS','insertSuggestion','AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE','includes','applySuggestion'];_0x20ae=function(){return _0x1367c6;};return _0x20ae();}import{IconInfo as _0x2cd181}from'ckeditor5/src/icons.js';export const AI_REPLY_ACTIONS=[_0x249e95(0x1fb),_0x249e95(0x1f8)];function _0x3acf(_0x1e7087,_0x5904e1){const _0x20aece=_0x20ae();return _0x3acf=function(_0x3acf95,_0x447a49){_0x3acf95=_0x3acf95-0x1e9;let _0x59b7a1=_0x20aece[_0x3acf95];return _0x59b7a1;},_0x3acf(_0x1e7087,_0x5904e1);}export class AIChatFeedSuggestionItemActionsView extends _0x42fc7c{[_0x249e95(0x211)];[_0x249e95(0x209)];[_0x249e95(0x1e9)];constructor(_0xa55e0a,_0x465a12=[...AI_REPLY_ACTIONS],_0x5881d6){const _0x26a474=_0x249e95;super(_0xa55e0a);const _0x4d7993=this[_0x26a474(0x1f5)],_0x5779ab=Boolean(_0x5881d6);if(this[_0x26a474(0x206)](_0x26a474(0x1fd),!_0x5779ab),this[_0x26a474(0x206)](_0x26a474(0x20d),!0x1),this[_0x26a474(0x206)](_0x26a474(0x1f1),!0x1),this[_0x26a474(0x1e9)]=this[_0x26a474(0x1f4)](),_0x5779ab){const _0x1ece97=new _0x2e4b6a(_0xa55e0a);_0x1ece97[_0x26a474(0x206)]({'label':_0x4c84b7(_0xa55e0a,_0x26a474(0x1f9)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x2cd181});const _0x14bdb1=new _0x42fc7c(_0xa55e0a);_0x14bdb1[_0x26a474(0x20a)]({'tag':_0x26a474(0x1f0),'attributes':{'class':_0x26a474(0x1fe)},'children':[{'tag':'p','children':[_0x4c84b7(_0xa55e0a,_0x26a474(0x1eb)),_0x1ece97]}]}),this[_0x26a474(0x1e9)][_0x26a474(0x213)](_0x14bdb1);}else this[_0x26a474(0x211)]=new _0x2e4b6a(_0xa55e0a),this[_0x26a474(0x211)][_0x26a474(0x206)]({'label':_0x4c84b7(_0xa55e0a,_0x26a474(0x208)),'withText':!0x0,'type':_0x26a474(0x1ee),'isVisible':_0x465a12[_0x26a474(0x1fa)](_0x26a474(0x1fb)),'class':_0x26a474(0x1ef)}),this[_0x26a474(0x209)]=new _0x2e4b6a(_0xa55e0a),this[_0x26a474(0x209)][_0x26a474(0x206)]({'label':_0x4c84b7(_0xa55e0a,_0x26a474(0x201)),'withText':!0x0,'type':_0x26a474(0x1ee),'isVisible':_0x465a12[_0x26a474(0x1fa)](_0x26a474(0x1f8)),'class':_0x26a474(0x202)}),this[_0x26a474(0x209)]['on'](_0x26a474(0x215),()=>{const _0x285aed=_0x26a474;this[_0x285aed(0x20f)](_0x285aed(0x1f8));}),this[_0x26a474(0x211)]['on'](_0x26a474(0x215),()=>{const _0x3766cc=_0x26a474;this[_0x3766cc(0x20f)](_0x3766cc(0x1fb));}),[this[_0x26a474(0x211)],this[_0x26a474(0x209)]][_0x26a474(0x200)](_0x3b26f9=>{const _0x46a12f=_0x26a474;_0x3b26f9[_0x46a12f(0x212)](_0x46a12f(0x1fd))['to'](this);}),this[_0x26a474(0x1e9)][_0x26a474(0x214)]([this[_0x26a474(0x211)],this[_0x26a474(0x209)]]);this[_0x26a474(0x20a)]({'tag':_0x26a474(0x1f0),'attributes':{'class':['ck',_0x26a474(0x1ec),_0x4d7993['if'](_0x26a474(0x20d),_0x26a474(0x207),_0x27dcba=>!_0x27dcba)]},'children':this[_0x26a474(0x1e9)]}),this['on'](_0x26a474(0x1f3),()=>{const _0x467409=_0x26a474;this[_0x467409(0x211)]&&(this[_0x467409(0x211)][_0x467409(0x20d)]=!this[_0x467409(0x1f1)]);});}[_0x249e95(0x20c)](_0x37894b){const _0x168875=_0x249e95;this[_0x168875(0x20d)]=_0x37894b;}[_0x249e95(0x1ea)](_0x5748d0){const _0x2845a8=_0x249e95;this[_0x2845a8(0x211)]&&this[_0x2845a8(0x209)]&&(_0x5748d0?(this[_0x2845a8(0x211)][_0x2845a8(0x1f2)]=_0x4c84b7(this[_0x2845a8(0x1ed)],_0x2845a8(0x208)),this[_0x2845a8(0x209)][_0x2845a8(0x1f2)]=_0x4c84b7(this[_0x2845a8(0x1ed)],_0x2845a8(0x201))):(this[_0x2845a8(0x211)][_0x2845a8(0x1f2)]=_0x4c84b7(this[_0x2845a8(0x1ed)],_0x2845a8(0x216)),this[_0x2845a8(0x209)][_0x2845a8(0x1f2)]=_0x4c84b7(this[_0x2845a8(0x1ed)],_0x2845a8(0x205))));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x504ddc=_0x3a0b;function _0x2584(){var _0x3b971e=['76qNTSex','AIChatHistory','10635816YFsiLE','requires','isOfficialPlugin','511252zozlGi','1451675NndYlx','pluginName','7249925IfQUMg','5091032TxwBPc','215772tgBeqq','22985703aqCkuL','isPremiumPlugin','7RVPICK'];_0x2584=function(){return _0x3b971e;};return _0x2584();}(function(_0x1d39a6,_0x32cf9b){var _0x4a525c=_0x3a0b,_0x23fafa=_0x1d39a6();while(!![]){try{var _0x57509d=-parseInt(_0x4a525c(0x1be))/0x1+-parseInt(_0x4a525c(0x1bd))/0x2+parseInt(_0x4a525c(0x1b4))/0x3*(parseInt(_0x4a525c(0x1b8))/0x4)+parseInt(_0x4a525c(0x1b2))/0x5+parseInt(_0x4a525c(0x1ba))/0x6+-parseInt(_0x4a525c(0x1b7))/0x7*(-parseInt(_0x4a525c(0x1b3))/0x8)+-parseInt(_0x4a525c(0x1b5))/0x9;if(_0x57509d===_0x32cf9b)break;else _0x23fafa['push'](_0x23fafa['shift']());}catch(_0x2dbfcd){_0x23fafa['push'](_0x23fafa['shift']());}}}(_0x2584,0xeb6c0));import{ContextPlugin as _0x2d74d4}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0xb15046}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x3b1e0b}from'./aichathistoryui.js';function _0x3a0b(_0x313578,_0x4c9279){var _0x258490=_0x2584();return _0x3a0b=function(_0x3a0b4e,_0x4cf986){_0x3a0b4e=_0x3a0b4e-0x1b2;var _0x363891=_0x258490[_0x3a0b4e];return _0x363891;},_0x3a0b(_0x313578,_0x4c9279);}export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x2d74d4{static get[_0x504ddc(0x1bb)](){return[_0xb15046,_0x3b1e0b];}static get[_0x504ddc(0x1bf)](){var _0x393cd6=_0x504ddc;return _0x393cd6(0x1b9);}static get[_0x504ddc(0x1bc)](){return!0x0;}static get[_0x504ddc(0x1b6)](){return!0x0;}}
23
+ function _0x2750(_0x5e5b1d,_0x2aadec){var _0x29612d=_0x2961();return _0x2750=function(_0x2750c8,_0x1649dc){_0x2750c8=_0x2750c8-0xfb;var _0x51eb89=_0x29612d[_0x2750c8];return _0x51eb89;},_0x2750(_0x5e5b1d,_0x2aadec);}var _0x495848=_0x2750;(function(_0xdaa3ca,_0x4f8852){var _0x4dc7e1=_0x2750,_0x39b5e0=_0xdaa3ca();while(!![]){try{var _0x1becfb=-parseInt(_0x4dc7e1(0x101))/0x1*(-parseInt(_0x4dc7e1(0x103))/0x2)+parseInt(_0x4dc7e1(0x102))/0x3+-parseInt(_0x4dc7e1(0x107))/0x4*(-parseInt(_0x4dc7e1(0xfe))/0x5)+-parseInt(_0x4dc7e1(0xff))/0x6*(-parseInt(_0x4dc7e1(0x109))/0x7)+parseInt(_0x4dc7e1(0x100))/0x8+-parseInt(_0x4dc7e1(0x105))/0x9+parseInt(_0x4dc7e1(0xfb))/0xa*(-parseInt(_0x4dc7e1(0xfc))/0xb);if(_0x1becfb===_0x4f8852)break;else _0x39b5e0['push'](_0x39b5e0['shift']());}catch(_0x291413){_0x39b5e0['push'](_0x39b5e0['shift']());}}}(_0x2961,0x1f11d));import{ContextPlugin as _0x2898bc}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x357b3}from'./aichathistorycontroller.js';function _0x2961(){var _0xedea14=['4pruHTB','pluginName','50491XTeYzW','AIChatHistory','780QhzYFI','51876oXoqDx','isOfficialPlugin','568605VcDgfH','78wxAiTs','763064eHWWGq','5biXlDQ','401331hRXooH','70220hegmFA','isPremiumPlugin','1053819xkvJhh','requires'];_0x2961=function(){return _0xedea14;};return _0x2961();}import{AIChatHistoryUI as _0x58f1f8}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x2898bc{static get[_0x495848(0x106)](){return[_0x357b3,_0x58f1f8];}static get[_0x495848(0x108)](){var _0x50956a=_0x495848;return _0x50956a(0x10a);}static get[_0x495848(0xfd)](){return!0x0;}static get[_0x495848(0x104)](){return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x51a1f7=_0x3c0b;function _0x3c0b(_0x120e56,_0x2c011a){const _0x56a668=_0x56a6();return _0x3c0b=function(_0x3c0beb,_0x28a002){_0x3c0beb=_0x3c0beb-0x1b5;let _0x519a79=_0x56a668[_0x3c0beb];return _0x519a79;},_0x3c0b(_0x120e56,_0x2c011a);}function _0x56a6(){const _0x476707=['map','8729820YBUQln','AIChatHistoryController','title','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','_updateHistoryItemsUI','items','523398eQdKfP','itemsLoaded','_aiChatController','itemId','pin','AI_CHAT_HISTORY_UNPIN_ACTION','itemUpdated','setConversationPinned','getItems','_handleSelectConversation','3178436bbVDdq','updateItems','getItem','AI_CHAT_HISTORY_CATEGORY_LATER','updates','toLocaleDateString','AI_CHAT_HISTORY_CATEGORY_PINNED','activateTab:history','_setItemLoading','remove','AI_CHAT_HISTORY_CATEGORY_TODAY','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','3763506bonkun','setDate','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','_showConversationHistory','2mGrEff','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','_setIsMaximized','_generateErrorMessage','_aiConnector','push','getMonth','history','resizeTabs','change:activeConversation','length','AI_CHAT_HISTORY_ERROR_GENERIC','init','_handleTogglePin','getFullYear','_handleHistoryErrorUI','removeConversation','updateItemPinned','4568792fJvwrk','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','isOfficialPlugin','pinned','AI_CHAT_HISTORY_PIN_ACTION','removeHistoryItem','editConversationTitle','activeConversation','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','updateItemTitle','_getCategorizedItems','get','view','selectConversation','activateTab','_clearItemLoading','plugins','handleRemovedConversation','setIsMaximized','setLoadingSkeleton','5vmdJlS','rename','getDate','_handleEditTitle','isPremiumPlugin','33JNDkPh','chat','14wEfcLH','error','openChat','listenTo','showError','operation','_aiChatHistoryUi','173709njHdyV','resize','unpin','createdAt','_handleRemove','4478720GOseQM','pluginName','updateItemLoadingState','loadConversation','removeItem','loadItems','locale','resizedTabs','AI_CHAT_UNTITLED_CONVERSATION','itemRemoved','requires','context','getGroupId'];_0x56a6=function(){return _0x476707;};return _0x56a6();}(function(_0x2fad5b,_0x57bf1d){const _0x2d9475=_0x3c0b,_0x3468e3=_0x2fad5b();while(!![]){try{const _0x32f279=parseInt(_0x2d9475(0x1ee))/0x1+-parseInt(_0x2d9475(0x1ba))/0x2*(parseInt(_0x2d9475(0x1b6))/0x3)+parseInt(_0x2d9475(0x211))/0x4+parseInt(_0x2d9475(0x1e0))/0x5*(-parseInt(_0x2d9475(0x207))/0x6)+-parseInt(_0x2d9475(0x1e7))/0x7*(parseInt(_0x2d9475(0x1cc))/0x8)+parseInt(_0x2d9475(0x201))/0x9+-parseInt(_0x2d9475(0x1f3))/0xa*(-parseInt(_0x2d9475(0x1e5))/0xb);if(_0x32f279===_0x57bf1d)break;else _0x3468e3['push'](_0x3468e3['shift']());}catch(_0xf49bc8){_0x3468e3['push'](_0x3468e3['shift']());}}}(_0x56a6,0xc2d1d));import{ContextPlugin as _0x2d9838}from'ckeditor5/src/core.js';import{AIConnector as _0x489acc}from'../aicore/aiconnector.js';import{AIChatController as _0x2a0d6f}from'../aichat/aichatcontroller.js';import{AITabs as _0x2ae8e1}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x3c49f1}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x5acba3}from'./model/aichathistoryconversations.js';import{getTranslation as _0x455c22}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x2d9838{[_0x51a1f7(0x1be)];[_0x51a1f7(0x1ed)];[_0x51a1f7(0x209)];static get[_0x51a1f7(0x1fd)](){return[_0x489acc,_0x2a0d6f,_0x3c49f1,_0x2ae8e1];}static get[_0x51a1f7(0x1f4)](){const _0x4f387c=_0x51a1f7;return _0x4f387c(0x202);}static get[_0x51a1f7(0x1ce)](){return!0x0;}static get[_0x51a1f7(0x1e4)](){return!0x0;}[_0x51a1f7(0x1c6)](){const _0xfca785=_0x51a1f7;this[_0xfca785(0x1be)]=this[_0xfca785(0x1fe)][_0xfca785(0x1dc)][_0xfca785(0x1d7)](_0x489acc),this[_0xfca785(0x1ed)]=this[_0xfca785(0x1fe)][_0xfca785(0x1dc)][_0xfca785(0x1d7)](_0x3c49f1),this[_0xfca785(0x209)]=this[_0xfca785(0x1fe)][_0xfca785(0x1dc)][_0xfca785(0x1d7)](_0x2a0d6f);const _0x463308=this[_0xfca785(0x1fe)][_0xfca785(0x1dc)][_0xfca785(0x1d7)](_0x2ae8e1);try{const _0x583bda=this[_0xfca785(0x209)][_0xfca785(0x1ff)]();this[_0xfca785(0x1c1)]=new _0x5acba3({'connector':this[_0xfca785(0x1be)],'group':_0x583bda}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1ed)],_0xfca785(0x1ca),(_0x47d12d,_0x398864)=>{const _0x387c78=_0xfca785;this[_0x387c78(0x219)](_0x398864['id'],_0x387c78(0x21a)),this[_0x387c78(0x1f2)](_0x398864['id']);}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1ed)],_0xfca785(0x1d2),(_0x3ab4e5,_0x18255c)=>{const _0x33b9fd=_0xfca785;this[_0x33b9fd(0x219)](_0x18255c['id'],_0x33b9fd(0x1e1)),this[_0x33b9fd(0x1e3)](_0x18255c['id'],_0x18255c[_0x33b9fd(0x203)]);}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1c1)],_0xfca785(0x20d),(_0x2a4817,_0x446ba9)=>{const _0x8fba74=_0xfca785;void 0x0!==_0x446ba9[_0x8fba74(0x215)][_0x8fba74(0x203)]&&this[_0x8fba74(0x1ed)][_0x8fba74(0x1d5)](_0x446ba9[_0x8fba74(0x20a)],_0x446ba9[_0x8fba74(0x215)][_0x8fba74(0x203)]),void 0x0!==_0x446ba9[_0x8fba74(0x215)][_0x8fba74(0x1cf)]&&this[_0x8fba74(0x205)](),this[_0x8fba74(0x1db)](_0x446ba9[_0x8fba74(0x20a)]);}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1c1)],_0xfca785(0x1fc),(_0x440001,_0x80aeaf)=>{const _0x44610c=_0xfca785;this[_0x44610c(0x209)][_0x44610c(0x1dd)](_0x80aeaf[_0x44610c(0x20a)]),this[_0x44610c(0x1ed)][_0x44610c(0x1d1)](_0x80aeaf[_0x44610c(0x20a)]),this[_0x44610c(0x1db)](_0x80aeaf[_0x44610c(0x20a)]);}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1c1)],_0xfca785(0x208),()=>{const _0x574e0d=_0xfca785;this[_0x574e0d(0x205)]();}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1c1)],_0xfca785(0x1e8),(_0x1d927a,_0x313fa9)=>{const _0x29a1db=_0xfca785;this[_0x29a1db(0x1c9)](_0x313fa9[_0x29a1db(0x1e8)],_0x313fa9[_0x29a1db(0x1ec)],_0x313fa9[_0x29a1db(0x20a)]);}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1ed)],_0xfca785(0x1d9),(_0x217e65,_0x3b14d4)=>{const _0x13b55f=_0xfca785;this[_0x13b55f(0x210)](_0x3b14d4['id']);}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1ed)],_0xfca785(0x20e),(_0x5565b3,_0x1e99f8)=>{const _0x2ad39b=_0xfca785,_0x6e53a1=_0x1e99f8[_0x2ad39b(0x1cf)]?_0x2ad39b(0x20b):_0x2ad39b(0x1f0);this[_0x2ad39b(0x219)](_0x1e99f8['id'],_0x6e53a1),this[_0x2ad39b(0x1c7)](_0x1e99f8['id'],_0x1e99f8[_0x2ad39b(0x1cf)]);}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1ed)],_0xfca785(0x1e9),()=>{const _0x2f945d=_0xfca785;_0x463308[_0x2f945d(0x1d8)][_0x2f945d(0x1da)](_0x2f945d(0x1e6));}),this[_0xfca785(0x1ea)](this[_0xfca785(0x209)],_0xfca785(0x1c3),()=>{const _0x331119=_0xfca785;this[_0x331119(0x205)]();}),_0x463308[_0xfca785(0x1d8)]['on'](_0xfca785(0x218),()=>{const _0x18d208=_0xfca785;this[_0x18d208(0x1b9)]();}),this[_0xfca785(0x1ea)](_0x463308,_0xfca785(0x1fa),(_0xc432b3,_0x41eba2)=>{const _0x268c06=_0xfca785;this[_0x268c06(0x1bc)](_0x41eba2);}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1ed)],_0xfca785(0x1c2),()=>{const _0x1bcace=_0xfca785;_0x463308[_0x1bcace(0x1ef)]();});}catch(_0x3a041b){this[_0xfca785(0x1c9)](_0x3a041b,_0xfca785(0x1c6));}}async[_0x51a1f7(0x1e3)](_0x297775,_0xd5ae38){const _0x2f5cbe=_0x51a1f7;await this[_0x2f5cbe(0x1c1)][_0x2f5cbe(0x1d5)](_0x297775,_0xd5ae38);}async[_0x51a1f7(0x1c7)](_0x2d4c97,_0x4d4e3e){const _0x2b71ba=_0x51a1f7;await this[_0x2b71ba(0x1c1)][_0x2b71ba(0x1cb)](_0x2d4c97,_0x4d4e3e);}async[_0x51a1f7(0x1f2)](_0x29584c){const _0x23a3d7=_0x51a1f7;await this[_0x23a3d7(0x1c1)][_0x23a3d7(0x1f7)](_0x29584c);}async[_0x51a1f7(0x210)](_0x4b7535){const _0x2d09f3=_0x51a1f7;await this[_0x2d09f3(0x209)][_0x2d09f3(0x1f6)](_0x4b7535);}async[_0x51a1f7(0x1b9)](){const _0x35d21b=_0x51a1f7;this[_0x35d21b(0x1ed)][_0x35d21b(0x1eb)](''),this[_0x35d21b(0x1ed)][_0x35d21b(0x1df)](!0x0),await this[_0x35d21b(0x1c1)][_0x35d21b(0x1c6)](),this[_0x35d21b(0x1ed)][_0x35d21b(0x1df)](!0x1);}[_0x51a1f7(0x205)](){const _0x277a5a=_0x51a1f7,_0x9d0b7e=this[_0x277a5a(0x209)][_0x277a5a(0x1d3)]?.['id'],_0xa8b498=this[_0x277a5a(0x1d6)]()[_0x277a5a(0x200)](_0x1da831=>({'title':_0x1da831[_0x277a5a(0x203)],'items':_0x1da831[_0x277a5a(0x206)][_0x277a5a(0x200)](_0x51b4ac=>({'id':_0x51b4ac['id'],'title':_0x51b4ac[_0x277a5a(0x203)]||_0x455c22(this[_0x277a5a(0x1fe)][_0x277a5a(0x1f9)],_0x277a5a(0x1fb)),'createdAt':new Date(_0x51b4ac[_0x277a5a(0x1f1)])[_0x277a5a(0x216)](),'active':_0x51b4ac['id']===_0x9d0b7e,'pinned':_0x51b4ac[_0x277a5a(0x1cf)]}))}));this[_0x277a5a(0x1ed)][_0x277a5a(0x212)](_0xa8b498);}[_0x51a1f7(0x219)](_0x24a406,_0x3d66ff){const _0x333ed7=_0x51a1f7;this[_0x333ed7(0x1ed)][_0x333ed7(0x1f5)](_0x24a406,_0x3d66ff,!0x0);}[_0x51a1f7(0x1db)](_0x976352){const _0x1863df=_0x51a1f7;this[_0x1863df(0x1ed)][_0x1863df(0x1f5)](_0x976352,null,!0x1);}[_0x51a1f7(0x1c9)](_0x1d8851,_0x13cf91,_0x3a9764){const _0x1b1c78=_0x51a1f7,_0x14fe7b=this[_0x1b1c78(0x1bd)](_0x13cf91,_0x3a9764);this[_0x1b1c78(0x1ed)][_0x1b1c78(0x1eb)](_0x14fe7b),_0x3a9764&&this[_0x1b1c78(0x1db)](_0x3a9764),this[_0x1b1c78(0x1ed)][_0x1b1c78(0x1df)](!0x1);}[_0x51a1f7(0x1bd)](_0x46f415,_0x35b62d){const _0x11cefb=_0x51a1f7,_0x2549d4=_0x35b62d?this[_0x11cefb(0x1c1)][_0x11cefb(0x213)](_0x35b62d):null,_0x661c5a=_0x2549d4?.[_0x11cefb(0x203)]||_0x455c22(this[_0x11cefb(0x1fe)][_0x11cefb(0x1f9)],_0x11cefb(0x1fb));switch(_0x46f415){case _0x11cefb(0x1d5):return _0x455c22(this[_0x11cefb(0x1fe)][_0x11cefb(0x1f9)],_0x11cefb(0x1b5),_0x661c5a);case _0x11cefb(0x1cb):{const _0x35163d=_0x455c22(this[_0x11cefb(0x1fe)][_0x11cefb(0x1f9)],_0x2549d4?.[_0x11cefb(0x1cf)]?_0x11cefb(0x20c):_0x11cefb(0x1d0));return _0x455c22(this[_0x11cefb(0x1fe)][_0x11cefb(0x1f9)],_0x11cefb(0x1bb),[_0x35163d,_0x661c5a]);}case _0x11cefb(0x1f7):return _0x455c22(this[_0x11cefb(0x1fe)][_0x11cefb(0x1f9)],_0x11cefb(0x1d4),_0x661c5a);case _0x11cefb(0x1c6):case _0x11cefb(0x1f8):return _0x455c22(this[_0x11cefb(0x1fe)][_0x11cefb(0x1f9)],_0x11cefb(0x204));default:return _0x455c22(this[_0x11cefb(0x1fe)][_0x11cefb(0x1f9)],_0x11cefb(0x1c5));}}[_0x51a1f7(0x1d6)](){const _0x22395f=_0x51a1f7,_0x589090=new Date(),_0x132790=new Date(_0x589090[_0x22395f(0x1c8)](),_0x589090[_0x22395f(0x1c0)](),_0x589090[_0x22395f(0x1e2)]()),_0x14c760=new Date(_0x132790);_0x14c760[_0x22395f(0x1b7)](_0x14c760[_0x22395f(0x1e2)]()-0x1);const _0x16acdd=new Date(_0x132790);_0x16acdd[_0x22395f(0x1b7)](_0x16acdd[_0x22395f(0x1e2)]()-0xe);const _0x1aef5c=this[_0x22395f(0x1c1)][_0x22395f(0x20f)]({'pinned':!0x0}),_0x5d6efe=this[_0x22395f(0x1c1)][_0x22395f(0x20f)]({'from':_0x132790,'to':_0x132790}),_0x30d6c5=this[_0x22395f(0x1c1)][_0x22395f(0x20f)]({'from':_0x14c760,'to':_0x14c760}),_0x2fe0be=this[_0x22395f(0x1c1)][_0x22395f(0x20f)]({'from':_0x16acdd,'to':_0x14c760}),_0x447bde=this[_0x22395f(0x1c1)][_0x22395f(0x20f)]({'to':_0x16acdd}),_0x3c8dea=[];return _0x1aef5c[_0x22395f(0x1c4)]>0x0&&_0x3c8dea[_0x22395f(0x1bf)]({'title':_0x455c22(this[_0x22395f(0x1fe)][_0x22395f(0x1f9)],_0x22395f(0x217)),'items':_0x1aef5c}),_0x5d6efe[_0x22395f(0x1c4)]>0x0&&_0x3c8dea[_0x22395f(0x1bf)]({'title':_0x455c22(this[_0x22395f(0x1fe)][_0x22395f(0x1f9)],_0x22395f(0x21b)),'items':_0x5d6efe}),_0x30d6c5[_0x22395f(0x1c4)]>0x0&&_0x3c8dea[_0x22395f(0x1bf)]({'title':_0x455c22(this[_0x22395f(0x1fe)][_0x22395f(0x1f9)],_0x22395f(0x1b8)),'items':_0x30d6c5}),_0x2fe0be[_0x22395f(0x1c4)]>0x0&&_0x3c8dea[_0x22395f(0x1bf)]({'title':_0x455c22(this[_0x22395f(0x1fe)][_0x22395f(0x1f9)],_0x22395f(0x1cd)),'items':_0x2fe0be}),_0x447bde[_0x22395f(0x1c4)]>0x0&&_0x3c8dea[_0x22395f(0x1bf)]({'title':_0x455c22(this[_0x22395f(0x1fe)][_0x22395f(0x1f9)],_0x22395f(0x214)),'items':_0x447bde}),_0x3c8dea;}[_0x51a1f7(0x1bc)](_0x249676){const _0x48688c=_0x51a1f7;this[_0x48688c(0x1ed)][_0x48688c(0x1de)](_0x249676);}}
23
+ const _0x45338d=_0x3f04;(function(_0x15def8,_0x453357){const _0x43bb2e=_0x3f04,_0x1a1f20=_0x15def8();while(!![]){try{const _0x396808=-parseInt(_0x43bb2e(0x1cf))/0x1+parseInt(_0x43bb2e(0x1d9))/0x2*(-parseInt(_0x43bb2e(0x18d))/0x3)+parseInt(_0x43bb2e(0x193))/0x4*(parseInt(_0x43bb2e(0x1cb))/0x5)+-parseInt(_0x43bb2e(0x1b1))/0x6*(parseInt(_0x43bb2e(0x1b5))/0x7)+-parseInt(_0x43bb2e(0x184))/0x8*(-parseInt(_0x43bb2e(0x1bc))/0x9)+parseInt(_0x43bb2e(0x1e7))/0xa*(parseInt(_0x43bb2e(0x1b2))/0xb)+parseInt(_0x43bb2e(0x1a8))/0xc;if(_0x396808===_0x453357)break;else _0x1a1f20['push'](_0x1a1f20['shift']());}catch(_0x20d612){_0x1a1f20['push'](_0x1a1f20['shift']());}}}(_0x5458,0x61a80));import{ContextPlugin as _0x3a6838}from'ckeditor5/src/core.js';import{AIConnector as _0x8db37b}from'../aicore/aiconnector.js';function _0x3f04(_0xfd29c0,_0x4e5fab){const _0x5458a4=_0x5458();return _0x3f04=function(_0x3f0496,_0x3a13cf){_0x3f0496=_0x3f0496-0x184;let _0xa7467f=_0x5458a4[_0x3f0496];return _0xa7467f;},_0x3f04(_0xfd29c0,_0x4e5fab);}import{AIChatController as _0x51c672}from'../aichat/aichatcontroller.js';import{AITabs as _0x2330dd}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x45c46a}from'./aichathistoryui.js';function _0x5458(){const _0xeabdd5=['_showConversationHistory','getGroupId','updateItemPinned','AI_CHAT_HISTORY_ERROR_GENERIC','removeItem','itemsLoaded','removeConversation','openChat','_aiChatHistoryUi','AI_CHAT_HISTORY_CATEGORY_LATER','view','386715NVNhaY','_getCategorizedItems','loadConversation','AI_CHAT_HISTORY_UNPIN_ACTION','269246YRKbOu','itemRemoved','setIsMaximized','remove','context','operation','handleRemovedConversation','error','resizeTabs','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','52MnALNY','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','_updateHistoryItemsUI','updates','activeConversation','AI_CHAT_HISTORY_CATEGORY_TODAY','title','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','createdAt','pluginName','_handleRemove','selectConversation','toLocaleDateString','AI_CHAT_UNTITLED_CONVERSATION','10LWBkzY','init','resize','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','length','192352WbGnui','updateItemTitle','itemId','_setItemLoading','_setIsMaximized','resizedTabs','activateTab:history','setConversationPinned','editConversationTitle','17079TvCwAQ','_handleEditTitle','history','setDate','removeHistoryItem','requires','4ytvaqH','plugins','AIChatHistoryController','_clearItemLoading','isPremiumPlugin','getMonth','getFullYear','_handleSelectConversation','_handleHistoryErrorUI','items','loadItems','updateItemLoadingState','setLoadingSkeleton','chat','itemUpdated','pin','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','unpin','showError','AI_CHAT_HISTORY_CATEGORY_PINNED','pinned','4111656PWxAJK','push','getItem','locale','map','get','_aiChatController','AI_CHAT_HISTORY_PIN_ACTION','rename','722322DjknZj','7813916iWLHOr','getDate','getItems','21jXUkyq','_aiConnector','activateTab','listenTo','_handleTogglePin','_generateErrorMessage','isOfficialPlugin','18EeRkLg','change:activeConversation','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','updateItems'];_0x5458=function(){return _0xeabdd5;};return _0x5458();}import{AIChatHistoryConversations as _0x46096d}from'./model/aichathistoryconversations.js';import{getTranslation as _0x641206}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x3a6838{[_0x45338d(0x1b6)];[_0x45338d(0x1c8)];[_0x45338d(0x1ae)];static get[_0x45338d(0x192)](){return[_0x8db37b,_0x51c672,_0x45c46a,_0x2330dd];}static get[_0x45338d(0x1e2)](){const _0x51308c=_0x45338d;return _0x51308c(0x195);}static get[_0x45338d(0x1bb)](){return!0x0;}static get[_0x45338d(0x197)](){return!0x0;}[_0x45338d(0x1e8)](){const _0x4eb4b8=_0x45338d;this[_0x4eb4b8(0x1b6)]=this[_0x4eb4b8(0x1d3)][_0x4eb4b8(0x194)][_0x4eb4b8(0x1ad)](_0x8db37b),this[_0x4eb4b8(0x1c8)]=this[_0x4eb4b8(0x1d3)][_0x4eb4b8(0x194)][_0x4eb4b8(0x1ad)](_0x45c46a),this[_0x4eb4b8(0x1ae)]=this[_0x4eb4b8(0x1d3)][_0x4eb4b8(0x194)][_0x4eb4b8(0x1ad)](_0x51c672);const _0x3e6acf=this[_0x4eb4b8(0x1d3)][_0x4eb4b8(0x194)][_0x4eb4b8(0x1ad)](_0x2330dd);try{const _0x1c8ede=this[_0x4eb4b8(0x1ae)][_0x4eb4b8(0x1c1)]();this[_0x4eb4b8(0x18f)]=new _0x46096d({'connector':this[_0x4eb4b8(0x1b6)],'group':_0x1c8ede}),this[_0x4eb4b8(0x1b8)](this[_0x4eb4b8(0x1c8)],_0x4eb4b8(0x1c6),(_0x15a19f,_0xb436d)=>{const _0x4d070c=_0x4eb4b8;this[_0x4d070c(0x187)](_0xb436d['id'],_0x4d070c(0x1d2)),this[_0x4d070c(0x1e3)](_0xb436d['id']);}),this[_0x4eb4b8(0x1b8)](this[_0x4eb4b8(0x1c8)],_0x4eb4b8(0x18c),(_0xa18689,_0x1e8769)=>{const _0x1c216d=_0x4eb4b8;this[_0x1c216d(0x187)](_0x1e8769['id'],_0x1c216d(0x1b0)),this[_0x1c216d(0x18e)](_0x1e8769['id'],_0x1e8769[_0x1c216d(0x1df)]);}),this[_0x4eb4b8(0x1b8)](this[_0x4eb4b8(0x18f)],_0x4eb4b8(0x1a1),(_0x5e5d45,_0x145487)=>{const _0xa3f670=_0x4eb4b8;void 0x0!==_0x145487[_0xa3f670(0x1dc)][_0xa3f670(0x1df)]&&this[_0xa3f670(0x1c8)][_0xa3f670(0x185)](_0x145487[_0xa3f670(0x186)],_0x145487[_0xa3f670(0x1dc)][_0xa3f670(0x1df)]),void 0x0!==_0x145487[_0xa3f670(0x1dc)][_0xa3f670(0x1a7)]&&this[_0xa3f670(0x1db)](),this[_0xa3f670(0x196)](_0x145487[_0xa3f670(0x186)]);}),this[_0x4eb4b8(0x1b8)](this[_0x4eb4b8(0x18f)],_0x4eb4b8(0x1d0),(_0x45db02,_0x4b1dab)=>{const _0x5ac9c5=_0x4eb4b8;this[_0x5ac9c5(0x1ae)][_0x5ac9c5(0x1d5)](_0x4b1dab[_0x5ac9c5(0x186)]),this[_0x5ac9c5(0x1c8)][_0x5ac9c5(0x191)](_0x4b1dab[_0x5ac9c5(0x186)]),this[_0x5ac9c5(0x196)](_0x4b1dab[_0x5ac9c5(0x186)]);}),this[_0x4eb4b8(0x1b8)](this[_0x4eb4b8(0x18f)],_0x4eb4b8(0x1c5),()=>{const _0x25be8a=_0x4eb4b8;this[_0x25be8a(0x1db)]();}),this[_0x4eb4b8(0x1b8)](this[_0x4eb4b8(0x18f)],_0x4eb4b8(0x1d6),(_0x27700f,_0x42fd7b)=>{const _0x5c4690=_0x4eb4b8;this[_0x5c4690(0x19b)](_0x42fd7b[_0x5c4690(0x1d6)],_0x42fd7b[_0x5c4690(0x1d4)],_0x42fd7b[_0x5c4690(0x186)]);}),this[_0x4eb4b8(0x1b8)](this[_0x4eb4b8(0x1c8)],_0x4eb4b8(0x1e4),(_0x51d906,_0x49da86)=>{const _0x48d06e=_0x4eb4b8;this[_0x48d06e(0x19a)](_0x49da86['id']);}),this[_0x4eb4b8(0x1b8)](this[_0x4eb4b8(0x1c8)],_0x4eb4b8(0x18b),(_0x457b6c,_0x2c1950)=>{const _0x17273a=_0x4eb4b8,_0x1e0716=_0x2c1950[_0x17273a(0x1a7)]?_0x17273a(0x1a2):_0x17273a(0x1a4);this[_0x17273a(0x187)](_0x2c1950['id'],_0x1e0716),this[_0x17273a(0x1b9)](_0x2c1950['id'],_0x2c1950[_0x17273a(0x1a7)]);}),this[_0x4eb4b8(0x1b8)](this[_0x4eb4b8(0x1c8)],_0x4eb4b8(0x1c7),()=>{const _0x3a3660=_0x4eb4b8;_0x3e6acf[_0x3a3660(0x1ca)][_0x3a3660(0x1b7)](_0x3a3660(0x1a0));}),this[_0x4eb4b8(0x1b8)](this[_0x4eb4b8(0x1ae)],_0x4eb4b8(0x1bd),()=>{const _0x538b56=_0x4eb4b8;this[_0x538b56(0x1db)]();}),_0x3e6acf[_0x4eb4b8(0x1ca)]['on'](_0x4eb4b8(0x18a),()=>{const _0x13fa7e=_0x4eb4b8;this[_0x13fa7e(0x1c0)]();}),this[_0x4eb4b8(0x1b8)](_0x3e6acf,_0x4eb4b8(0x189),(_0x171a31,_0x82602)=>{const _0x13ebf0=_0x4eb4b8;this[_0x13ebf0(0x188)](_0x82602);}),this[_0x4eb4b8(0x1b8)](this[_0x4eb4b8(0x1c8)],_0x4eb4b8(0x1d7),()=>{const _0x4687b9=_0x4eb4b8;_0x3e6acf[_0x4687b9(0x1e9)]();});}catch(_0x11f0c1){this[_0x4eb4b8(0x19b)](_0x11f0c1,_0x4eb4b8(0x1e8));}}async[_0x45338d(0x18e)](_0xd0dd2d,_0x404eab){const _0xf9579b=_0x45338d;await this[_0xf9579b(0x18f)][_0xf9579b(0x185)](_0xd0dd2d,_0x404eab);}async[_0x45338d(0x1b9)](_0x5624ec,_0x418198){const _0x1d5336=_0x45338d;await this[_0x1d5336(0x18f)][_0x1d5336(0x1c2)](_0x5624ec,_0x418198);}async[_0x45338d(0x1e3)](_0x26b0e2){const _0x481a8c=_0x45338d;await this[_0x481a8c(0x18f)][_0x481a8c(0x1c4)](_0x26b0e2);}async[_0x45338d(0x19a)](_0x14693f){const _0xeccd63=_0x45338d;await this[_0xeccd63(0x1ae)][_0xeccd63(0x1cd)](_0x14693f);}async[_0x45338d(0x1c0)](){const _0x42506d=_0x45338d;this[_0x42506d(0x1c8)][_0x42506d(0x1a5)](''),this[_0x42506d(0x1c8)][_0x42506d(0x19f)](!0x0),await this[_0x42506d(0x18f)][_0x42506d(0x1e8)](),this[_0x42506d(0x1c8)][_0x42506d(0x19f)](!0x1);}[_0x45338d(0x1db)](){const _0x1e44d2=_0x45338d,_0xcc7096=this[_0x1e44d2(0x1ae)][_0x1e44d2(0x1dd)]?.['id'],_0x4574c8=this[_0x1e44d2(0x1cc)]()[_0x1e44d2(0x1ac)](_0x3ecc6e=>({'title':_0x3ecc6e[_0x1e44d2(0x1df)],'items':_0x3ecc6e[_0x1e44d2(0x19c)][_0x1e44d2(0x1ac)](_0x29cd56=>({'id':_0x29cd56['id'],'title':_0x29cd56[_0x1e44d2(0x1df)]||_0x641206(this[_0x1e44d2(0x1d3)][_0x1e44d2(0x1ab)],_0x1e44d2(0x1e6)),'createdAt':new Date(_0x29cd56[_0x1e44d2(0x1e1)])[_0x1e44d2(0x1e5)](),'active':_0x29cd56['id']===_0xcc7096,'pinned':_0x29cd56[_0x1e44d2(0x1a7)]}))}));this[_0x1e44d2(0x1c8)][_0x1e44d2(0x1bf)](_0x4574c8);}[_0x45338d(0x187)](_0x3e72bf,_0x55afa9){const _0x44c9c8=_0x45338d;this[_0x44c9c8(0x1c8)][_0x44c9c8(0x19e)](_0x3e72bf,_0x55afa9,!0x0);}[_0x45338d(0x196)](_0x127c99){const _0x288356=_0x45338d;this[_0x288356(0x1c8)][_0x288356(0x19e)](_0x127c99,null,!0x1);}[_0x45338d(0x19b)](_0x279f29,_0x5b0f49,_0x2a8472){const _0x228f6f=_0x45338d,_0x18c4f0=this[_0x228f6f(0x1ba)](_0x5b0f49,_0x2a8472);this[_0x228f6f(0x1c8)][_0x228f6f(0x1a5)](_0x18c4f0),_0x2a8472&&this[_0x228f6f(0x196)](_0x2a8472),this[_0x228f6f(0x1c8)][_0x228f6f(0x19f)](!0x1);}[_0x45338d(0x1ba)](_0x39a11e,_0x82e2ff){const _0xa07d6d=_0x45338d,_0x24a29b=_0x82e2ff?this[_0xa07d6d(0x18f)][_0xa07d6d(0x1aa)](_0x82e2ff):null,_0x16aed7=_0x24a29b?.[_0xa07d6d(0x1df)]||_0x641206(this[_0xa07d6d(0x1d3)][_0xa07d6d(0x1ab)],_0xa07d6d(0x1e6));switch(_0x39a11e){case _0xa07d6d(0x185):return _0x641206(this[_0xa07d6d(0x1d3)][_0xa07d6d(0x1ab)],_0xa07d6d(0x1da),_0x16aed7);case _0xa07d6d(0x1c2):{const _0x42d97c=_0x641206(this[_0xa07d6d(0x1d3)][_0xa07d6d(0x1ab)],_0x24a29b?.[_0xa07d6d(0x1a7)]?_0xa07d6d(0x1ce):_0xa07d6d(0x1af));return _0x641206(this[_0xa07d6d(0x1d3)][_0xa07d6d(0x1ab)],_0xa07d6d(0x1d8),[_0x42d97c,_0x16aed7]);}case _0xa07d6d(0x1c4):return _0x641206(this[_0xa07d6d(0x1d3)][_0xa07d6d(0x1ab)],_0xa07d6d(0x1e0),_0x16aed7);case _0xa07d6d(0x1e8):case _0xa07d6d(0x19d):return _0x641206(this[_0xa07d6d(0x1d3)][_0xa07d6d(0x1ab)],_0xa07d6d(0x1a3));default:return _0x641206(this[_0xa07d6d(0x1d3)][_0xa07d6d(0x1ab)],_0xa07d6d(0x1c3));}}[_0x45338d(0x1cc)](){const _0x296541=_0x45338d,_0x1c99ee=new Date(),_0x16473c=new Date(_0x1c99ee[_0x296541(0x199)](),_0x1c99ee[_0x296541(0x198)](),_0x1c99ee[_0x296541(0x1b3)]()),_0x96fa34=new Date(_0x16473c);_0x96fa34[_0x296541(0x190)](_0x96fa34[_0x296541(0x1b3)]()-0x1);const _0x577354=new Date(_0x16473c);_0x577354[_0x296541(0x190)](_0x577354[_0x296541(0x1b3)]()-0xe);const _0x8b6551=this[_0x296541(0x18f)][_0x296541(0x1b4)]({'pinned':!0x0}),_0x5befca=this[_0x296541(0x18f)][_0x296541(0x1b4)]({'from':_0x16473c,'to':_0x16473c}),_0x35914d=this[_0x296541(0x18f)][_0x296541(0x1b4)]({'from':_0x96fa34,'to':_0x96fa34}),_0x31410f=this[_0x296541(0x18f)][_0x296541(0x1b4)]({'from':_0x577354,'to':_0x96fa34}),_0x58cd8e=this[_0x296541(0x18f)][_0x296541(0x1b4)]({'to':_0x577354}),_0xc97805=[];return _0x8b6551[_0x296541(0x1eb)]>0x0&&_0xc97805[_0x296541(0x1a9)]({'title':_0x641206(this[_0x296541(0x1d3)][_0x296541(0x1ab)],_0x296541(0x1a6)),'items':_0x8b6551}),_0x5befca[_0x296541(0x1eb)]>0x0&&_0xc97805[_0x296541(0x1a9)]({'title':_0x641206(this[_0x296541(0x1d3)][_0x296541(0x1ab)],_0x296541(0x1de)),'items':_0x5befca}),_0x35914d[_0x296541(0x1eb)]>0x0&&_0xc97805[_0x296541(0x1a9)]({'title':_0x641206(this[_0x296541(0x1d3)][_0x296541(0x1ab)],_0x296541(0x1ea)),'items':_0x35914d}),_0x31410f[_0x296541(0x1eb)]>0x0&&_0xc97805[_0x296541(0x1a9)]({'title':_0x641206(this[_0x296541(0x1d3)][_0x296541(0x1ab)],_0x296541(0x1be)),'items':_0x31410f}),_0x58cd8e[_0x296541(0x1eb)]>0x0&&_0xc97805[_0x296541(0x1a9)]({'title':_0x641206(this[_0x296541(0x1d3)][_0x296541(0x1ab)],_0x296541(0x1c9)),'items':_0x58cd8e}),_0xc97805;}[_0x45338d(0x188)](_0x43bd11){const _0x1df3b6=_0x45338d;this[_0x1df3b6(0x1c8)][_0x1df3b6(0x1d1)](_0x43bd11);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xbda632=_0x29a2;(function(_0x5b3368,_0x4652fa){const _0x380784=_0x29a2,_0x1aea7f=_0x5b3368();while(!![]){try{const _0x5a032b=parseInt(_0x380784(0x1d7))/0x1+parseInt(_0x380784(0x1e0))/0x2*(parseInt(_0x380784(0x1be))/0x3)+-parseInt(_0x380784(0x1d4))/0x4*(-parseInt(_0x380784(0x1b6))/0x5)+parseInt(_0x380784(0x1d2))/0x6*(-parseInt(_0x380784(0x1e3))/0x7)+parseInt(_0x380784(0x1d1))/0x8+parseInt(_0x380784(0x1df))/0x9+-parseInt(_0x380784(0x1db))/0xa;if(_0x5a032b===_0x4652fa)break;else _0x1aea7f['push'](_0x1aea7f['shift']());}catch(_0x5b0d9c){_0x1aea7f['push'](_0x1aea7f['shift']());}}}(_0x33ed,0x9f0ee));import{ContextPlugin as _0x518672}from'ckeditor5/src/core.js';import{AITabs as _0x5ab127}from'../aitabs/aitabs.js';import{IconAIHistory as _0x4e9a13}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x38406e}from'./ui/aichathistoryview.js';function _0x33ed(){const _0x22399c=['removeConversation','showError','locale','isLoading','requires','updateItemLoadingState','AIChatHistoryUI','setConversationPinned','showResizeButton','resizeTabs','updateItemTitle','pluginName','context','isOfficialPlugin','updateHistoryItemsWithCategories','4191704PCJdfH','16746pKeodl','setIsMaximized','90344BBqToI','editConversationTitle','AI_CHAT_HISTORY_HEADING','232414RAivKk','addTab','_historyView','updateItems','25298060tLIWFz','errorMessage','isMaximized','plugins','5565600HtOIht','14nrNsVZ','showConversationHistory','setLoadingSkeleton','987aIMXsz','250EyMqAl','view','AITabs','isPremiumPlugin','openChat','history','get','removeHistoryItem','458898QajRXB','selectConversation','hideError','delegate'];_0x33ed=function(){return _0x22399c;};return _0x33ed();}import{getTranslation as _0x311d4d}from'../aicore/utils/common-translations.js';function _0x29a2(_0x235532,_0x21094e){const _0x33ed10=_0x33ed();return _0x29a2=function(_0x29a2af,_0x19a2f3){_0x29a2af=_0x29a2af-0x1b6;let _0x5ee600=_0x33ed10[_0x29a2af];return _0x5ee600;},_0x29a2(_0x235532,_0x21094e);}import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0xbda632(0x1e1),_0xbda632(0x1c2),_0xbda632(0x1d5),_0xbda632(0x1c9),_0xbda632(0x1bf),_0xbda632(0x1ba),_0xbda632(0x1cb)];export class AIChatHistoryUI extends _0x518672{static get[_0xbda632(0x1c6)](){return[_0x5ab127];}[_0xbda632(0x1d9)];static get[_0xbda632(0x1cd)](){const _0x3dcf8f=_0xbda632;return _0x3dcf8f(0x1c8);}static get[_0xbda632(0x1cf)](){return!0x0;}static get[_0xbda632(0x1b9)](){return!0x0;}constructor(_0x2a16b3){const _0x260424=_0xbda632;super(_0x2a16b3);const _0x5ce7b6=this[_0x260424(0x1ce)][_0x260424(0x1de)][_0x260424(0x1bc)](_0x260424(0x1b8));this[_0x260424(0x1d9)]=new _0x38406e(this[_0x260424(0x1ce)][_0x260424(0x1c4)],_0x5ce7b6[_0x260424(0x1ca)]),this[_0x260424(0x1d9)][_0x260424(0x1c1)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x5ce7b6[_0x260424(0x1b7)][_0x260424(0x1d8)]({'id':_0x260424(0x1bb),'buttonLabel':_0x311d4d(this[_0x260424(0x1ce)][_0x260424(0x1c4)],_0x260424(0x1d6)),'buttonIcon':_0x4e9a13,'order':0x0,'content':this[_0x260424(0x1d9)]});}[_0xbda632(0x1bd)](_0x2aaf3d){const _0x2a89d7=_0xbda632;this[_0x2a89d7(0x1d9)][_0x2a89d7(0x1bd)](_0x2aaf3d);}[_0xbda632(0x1da)](_0x386778){const _0x3ae048=_0xbda632;this[_0x3ae048(0x1d9)][_0x3ae048(0x1d0)](_0x386778);}[_0xbda632(0x1cc)](_0x560fc4,_0x59a0e6){const _0x542101=_0xbda632;this[_0x542101(0x1d9)][_0x542101(0x1cc)](_0x560fc4,_0x59a0e6);}[_0xbda632(0x1c7)](_0x4661be,_0x334d15,_0x4d8d16){const _0x2da4bd=_0xbda632;this[_0x2da4bd(0x1d9)][_0x2da4bd(0x1c7)](_0x4661be,_0x334d15,_0x4d8d16);}[_0xbda632(0x1e2)](_0x3614d5){const _0x1379f0=_0xbda632;this[_0x1379f0(0x1d9)][_0x1379f0(0x1c5)]=_0x3614d5;}[_0xbda632(0x1c3)](_0x239d14){const _0x4a8666=_0xbda632;this[_0x4a8666(0x1d9)][_0x4a8666(0x1dc)]=_0x239d14;}[_0xbda632(0x1c0)](){const _0x4fb8a3=_0xbda632;this[_0x4fb8a3(0x1d9)][_0x4fb8a3(0x1dc)]='';}[_0xbda632(0x1d3)](_0x830177){const _0x5ea8c6=_0xbda632;this[_0x5ea8c6(0x1d9)][_0x5ea8c6(0x1dd)]=_0x830177;}}
23
+ const _0x54994f=_0x221a;(function(_0x115a90,_0x2133eb){const _0x300553=_0x221a,_0x315bae=_0x115a90();while(!![]){try{const _0x1716f6=parseInt(_0x300553(0x76))/0x1+parseInt(_0x300553(0x91))/0x2+-parseInt(_0x300553(0x8e))/0x3+-parseInt(_0x300553(0x92))/0x4*(-parseInt(_0x300553(0x86))/0x5)+parseInt(_0x300553(0x79))/0x6*(parseInt(_0x300553(0x88))/0x7)+parseInt(_0x300553(0x85))/0x8*(-parseInt(_0x300553(0x70))/0x9)+-parseInt(_0x300553(0x93))/0xa*(parseInt(_0x300553(0x81))/0xb);if(_0x1716f6===_0x2133eb)break;else _0x315bae['push'](_0x315bae['shift']());}catch(_0x1dcd04){_0x315bae['push'](_0x315bae['shift']());}}}(_0x1b7e,0x8fa80));import{ContextPlugin as _0x1c222e}from'ckeditor5/src/core.js';import{AITabs as _0x507422}from'../aitabs/aitabs.js';function _0x1b7e(){const _0x7a0526=['28324HQmZwB','206520vesrXi','updateItemTitle','editConversationTitle','context','isPremiumPlugin','history','errorMessage','requires','removeConversation','openChat','isOfficialPlugin','updateHistoryItemsWithCategories','3447VoeCol','view','addTab','showError','showResizeButton','resizeTabs','713513qlHxxz','plugins','AIChatHistoryUI','6MvyFgR','pluginName','delegate','locale','setConversationPinned','updateItems','isMaximized','selectConversation','759oJRqAR','isLoading','get','_historyView','848WpLOoB','115LowPwD','setIsMaximized','3090703GLdLWf','AI_CHAT_HISTORY_HEADING','hideError','updateItemLoadingState','removeHistoryItem','setLoadingSkeleton','1302516nthVcU','showConversationHistory','AITabs','2340538kRUpgE'];_0x1b7e=function(){return _0x7a0526;};return _0x1b7e();}import{IconAIHistory as _0x525c5a}from'ckeditor5/src/icons.js';function _0x221a(_0x233608,_0x4acf03){const _0x1b7e22=_0x1b7e();return _0x221a=function(_0x221a91,_0x4f8044){_0x221a91=_0x221a91-0x6e;let _0x4349cc=_0x1b7e22[_0x221a91];return _0x4349cc;},_0x221a(_0x233608,_0x4acf03);}import{AIChatHistoryView as _0x55f4ad}from'./ui/aichathistoryview.js';import{getTranslation as _0x32c143}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x54994f(0x8f),_0x54994f(0x9b),_0x54994f(0x95),_0x54994f(0x7d),_0x54994f(0x80),_0x54994f(0x9c),_0x54994f(0x75)];export class AIChatHistoryUI extends _0x1c222e{static get[_0x54994f(0x9a)](){return[_0x507422];}[_0x54994f(0x84)];static get[_0x54994f(0x7a)](){const _0x56670f=_0x54994f;return _0x56670f(0x78);}static get[_0x54994f(0x6e)](){return!0x0;}static get[_0x54994f(0x97)](){return!0x0;}constructor(_0x3345cf){const _0x41e6af=_0x54994f;super(_0x3345cf);const _0x518e9a=this[_0x41e6af(0x96)][_0x41e6af(0x77)][_0x41e6af(0x83)](_0x41e6af(0x90));this[_0x41e6af(0x84)]=new _0x55f4ad(this[_0x41e6af(0x96)][_0x41e6af(0x7c)],_0x518e9a[_0x41e6af(0x74)]),this[_0x41e6af(0x84)][_0x41e6af(0x7b)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x518e9a[_0x41e6af(0x71)][_0x41e6af(0x72)]({'id':_0x41e6af(0x98),'buttonLabel':_0x32c143(this[_0x41e6af(0x96)][_0x41e6af(0x7c)],_0x41e6af(0x89)),'buttonIcon':_0x525c5a,'order':0x0,'content':this[_0x41e6af(0x84)]});}[_0x54994f(0x8c)](_0x474b6d){const _0x42dd5c=_0x54994f;this[_0x42dd5c(0x84)][_0x42dd5c(0x8c)](_0x474b6d);}[_0x54994f(0x7e)](_0x50f77e){const _0x58e470=_0x54994f;this[_0x58e470(0x84)][_0x58e470(0x6f)](_0x50f77e);}[_0x54994f(0x94)](_0xb07a50,_0x41cb20){const _0x1b5d23=_0x54994f;this[_0x1b5d23(0x84)][_0x1b5d23(0x94)](_0xb07a50,_0x41cb20);}[_0x54994f(0x8b)](_0x4821bc,_0x57c3b9,_0x4e07b5){const _0x3e35f7=_0x54994f;this[_0x3e35f7(0x84)][_0x3e35f7(0x8b)](_0x4821bc,_0x57c3b9,_0x4e07b5);}[_0x54994f(0x8d)](_0x1d8cb6){const _0x417a35=_0x54994f;this[_0x417a35(0x84)][_0x417a35(0x82)]=_0x1d8cb6;}[_0x54994f(0x73)](_0x6a620f){const _0x2f3812=_0x54994f;this[_0x2f3812(0x84)][_0x2f3812(0x99)]=_0x6a620f;}[_0x54994f(0x8a)](){const _0x231a27=_0x54994f;this[_0x231a27(0x84)][_0x231a27(0x99)]='';}[_0x54994f(0x87)](_0x1f93f8){const _0x5dac9a=_0x54994f;this[_0x5dac9a(0x84)][_0x5dac9a(0x7f)]=_0x1f93f8;}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1fb4bb=_0x5d1b;(function(_0x31b785,_0x348c22){const _0x1d4522=_0x5d1b,_0x4df9d0=_0x31b785();while(!![]){try{const _0x1aa3f0=-parseInt(_0x1d4522(0x208))/0x1*(-parseInt(_0x1d4522(0x1e7))/0x2)+parseInt(_0x1d4522(0x214))/0x3+-parseInt(_0x1d4522(0x230))/0x4*(parseInt(_0x1d4522(0x1e5))/0x5)+-parseInt(_0x1d4522(0x207))/0x6*(parseInt(_0x1d4522(0x202))/0x7)+-parseInt(_0x1d4522(0x1fa))/0x8*(parseInt(_0x1d4522(0x1f6))/0x9)+-parseInt(_0x1d4522(0x220))/0xa+parseInt(_0x1d4522(0x21a))/0xb;if(_0x1aa3f0===_0x348c22)break;else _0x4df9d0['push'](_0x4df9d0['shift']());}catch(_0x2db6cc){_0x4df9d0['push'](_0x4df9d0['shift']());}}}(_0x26b7,0x79bad));import{ListItemView as _0x146380,HighlightedTextView as _0x12596e,ButtonView as _0x19c72b,ListView as _0x42730c,IconView as _0x339e40,createDropdown as _0x45c0a0,InputTextView as _0x3c590d}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x25ba04,IconPin as _0x2961ad,IconCheck as _0x310959,IconCancel as _0x55b6ee}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x572f58,ConfirmMixin as _0x2d9c9c}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x335c0c}from'es-toolkit/compat';function _0x26b7(){const _0x1438e4=['107JYpXNc','ck-ai-chat-history__item-check-container','ck-ai-chat-history__item-content','editConversationTitle','label','children','key','text','highlightText','createCollection','AI_CHAT_HISTORY_LOADING_RENAMING','pinned','1757856vAByhP','extendTemplate','mainContent','ck-confirm-view-cancel','addMany','AI_CHAT_HISTORY_EDIT_NAME','22047971GOLgpJ','actions','value','_createCheckView','_createAcceptEditButtonView','ck-ai-chat-history__item-date','7135420lIAyhH','clear','isVisible','AI_CHAT_HISTORY_ACCEPT','focus','LOADING_LABELS','_createEditInputView','ck-ai-loader__text','updateLoadingState','ck-ai-chat-history__item-actions','ck-confirm-view-submit','element','set','panelView','AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_LOADING_UNPINNING','77048yxdrgx','updateTitle','ck-ai-chat-history__item-check','ck-ai-chat-history__item-title','_commitEditInputValue','click','edit:cancel','AI_CHAT_HISTORY_PIN_BUTTON','AI_CHAT_HISTORY_LOADING_PINNING','AI_CHAT_HISTORY_LOADING_REMOVING','ck-ai-chat-history__item-row','AI_CHAT_HISTORY_CANCEL','panelPosition','listitem','change:isEdit','withText','removeConversation','ck-ai-chat-history__item--active','Enter','string','setTemplate','_createMenuDropdownView','ck-ai-chat-history__item--edit','loadingState','135OGSMXG','tiny','16662IZuQDc','isOn','fire','add','div','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','_createSpinnerView','AI_CHAT_HISTORY_REMOVE_CONFIRM','isMatching','span','isEdit','_createPinButtonView','showConfirm','locale','ck-ai-chat-history__item-main-content','25209ZsGbaU','_titleView','then','setConversationPinned','2552tgMCBh','items','bind','ck-ai-chat-history__item','selectConversation','ck-ai-loader','ck-hidden','bindTemplate','630nvFfPX','match','buttonView','execute','_createCancelEditButtonView','57066qeqVDY'];_0x26b7=function(){return _0x1438e4;};return _0x26b7();}import{AISpinnerView as _0x4825bc}from'../../aicore/ui/aispinner.js';function _0x5d1b(_0x5ca28d,_0x3d3120){const _0x26b758=_0x26b7();return _0x5d1b=function(_0x5d1b23,_0x52c328){_0x5d1b23=_0x5d1b23-0x1e5;let _0x4354e7=_0x26b758[_0x5d1b23];return _0x4354e7;},_0x5d1b(_0x5ca28d,_0x3d3120);}import{getTranslation as _0xd91f3e}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x2d9c9c(_0x146380){['id'];static [_0x1fb4bb(0x225)]={'remove':_0x1fb4bb(0x239),'rename':_0x1fb4bb(0x212),'pin':_0x1fb4bb(0x238),'unpin':_0x1fb4bb(0x22f)};[_0x1fb4bb(0x21b)];[_0x1fb4bb(0x216)];[_0x1fb4bb(0x1f7)];constructor(_0x1a6621,_0x32f5fb){const _0x31d7f4=_0x1fb4bb;super(_0x1a6621);const _0x4331e6=this[_0x31d7f4(0x201)];this[_0x31d7f4(0x22c)](_0x31d7f4(0x1f1),!0x1),this[_0x31d7f4(0x22c)](_0x31d7f4(0x222),!0x0),this[_0x31d7f4(0x22c)](_0x31d7f4(0x213),!!_0x32f5fb[_0x31d7f4(0x213)]),this[_0x31d7f4(0x22c)](_0x31d7f4(0x247),null),this['id']=_0x32f5fb['id'];const {title:_0x300c7f,createdAt:_0x159644,active:_0x49c99d=!0x1}=_0x32f5fb;this[_0x31d7f4(0x1f7)]=new _0x12596e(),this[_0x31d7f4(0x1f7)][_0x31d7f4(0x20f)]=_0x300c7f,this[_0x31d7f4(0x1f7)][_0x31d7f4(0x215)]({'attributes':{'class':[_0x31d7f4(0x233)]}});const _0x3a2b97=this[_0x31d7f4(0x21d)](),_0x5e4a29=this[_0x31d7f4(0x1f2)](_0x1a6621),_0xb69af6=this[_0x31d7f4(0x245)](),_0x5b2152=this[_0x31d7f4(0x226)](_0x1a6621,_0x300c7f),_0x256660=this[_0x31d7f4(0x21e)](_0x1a6621,_0x5b2152),_0x4fefcb=this[_0x31d7f4(0x206)](_0x1a6621,_0x5b2152);this[_0x31d7f4(0x21b)]=this[_0x31d7f4(0x211)](),this[_0x31d7f4(0x216)]=this[_0x31d7f4(0x211)](),this[_0x31d7f4(0x216)][_0x31d7f4(0x1ea)](this[_0x31d7f4(0x1f7)]),this[_0x31d7f4(0x21b)][_0x31d7f4(0x1ea)](_0x5e4a29),this[_0x31d7f4(0x21b)][_0x31d7f4(0x1ea)](_0xb69af6),this['on'](_0x31d7f4(0x23e),(_0x345fc1,_0x2292c8,_0x214e56)=>{const _0x2f24a2=_0x31d7f4;this[_0x2f24a2(0x21b)][_0x2f24a2(0x221)](),this[_0x2f24a2(0x216)][_0x2f24a2(0x221)](),_0x214e56?(this[_0x2f24a2(0x21b)][_0x2f24a2(0x1ea)](_0x256660),this[_0x2f24a2(0x21b)][_0x2f24a2(0x1ea)](_0x4fefcb),this[_0x2f24a2(0x216)][_0x2f24a2(0x1ea)](_0x5b2152),_0x5b2152[_0x2f24a2(0x22b)][_0x2f24a2(0x224)]()):(this[_0x2f24a2(0x21b)][_0x2f24a2(0x1ea)](_0x5e4a29),this[_0x2f24a2(0x21b)][_0x2f24a2(0x1ea)](_0xb69af6),this[_0x2f24a2(0x216)][_0x2f24a2(0x1ea)](this[_0x2f24a2(0x1f7)]));}),this[_0x31d7f4(0x244)]({'tag':'li','attributes':{'class':[_0x31d7f4(0x1fd),_0x49c99d?_0x31d7f4(0x241):'',_0x4331e6['if'](_0x31d7f4(0x222),_0x31d7f4(0x200),_0x1f1201=>!_0x1f1201),_0x4331e6['if'](_0x31d7f4(0x1f1),_0x31d7f4(0x246))],'role':_0x31d7f4(0x23d)},'children':[{'tag':_0x31d7f4(0x1f0),'attributes':{'class':[_0x31d7f4(0x209)]},'children':[{'tag':_0x31d7f4(0x1eb),'attributes':{'class':[_0x31d7f4(0x232),_0x4331e6['if'](_0x31d7f4(0x247),_0x31d7f4(0x200),_0x39977a=>!!_0x39977a)]},'children':_0x49c99d?[_0x3a2b97]:[]},{'tag':_0x31d7f4(0x1eb),'attributes':{'class':[_0x31d7f4(0x1ff),_0x4331e6['if'](_0x31d7f4(0x247),_0x31d7f4(0x200),_0x6ec609=>!_0x6ec609)]},'children':[this[_0x31d7f4(0x1ed)]()]}]},{'tag':_0x31d7f4(0x1eb),'attributes':{'class':[_0x31d7f4(0x23a)]},'children':[{'tag':_0x31d7f4(0x1eb),'attributes':{'class':[_0x31d7f4(0x20a)]},'on':{'click':this[_0x31d7f4(0x201)]['to'](_0x31d7f4(0x235))},'children':[{'tag':_0x31d7f4(0x1eb),'attributes':{'class':[_0x31d7f4(0x1f5)]},'children':[{'tag':_0x31d7f4(0x1eb),'attributes':{'class':[_0x31d7f4(0x233),_0x4331e6['if'](_0x31d7f4(0x247),_0x31d7f4(0x200),_0x5ab6f9=>!!_0x5ab6f9)]},'children':this[_0x31d7f4(0x216)]},{'tag':_0x31d7f4(0x1eb),'attributes':{'class':[_0x31d7f4(0x227),_0x4331e6['if'](_0x31d7f4(0x247),_0x31d7f4(0x200),_0x4ccb1=>!_0x4ccb1)]},'children':[{'text':_0x4331e6['to'](_0x31d7f4(0x247),_0x1211a3=>_0x1211a3?_0xd91f3e(this[_0x31d7f4(0x1f4)],AIChatHistoryListItemView[_0x31d7f4(0x225)][_0x1211a3]):'')}]}]},{'tag':_0x31d7f4(0x1f0),'attributes':{'class':[_0x31d7f4(0x21f)]},'children':[_0x159644]}]},{'tag':_0x31d7f4(0x1eb),'attributes':{'class':[_0x31d7f4(0x229)]},'children':this[_0x31d7f4(0x21b)]}]}]}),this['on'](_0x31d7f4(0x235),()=>{const _0x416763=_0x31d7f4;this[_0x416763(0x1f1)]||this[_0x416763(0x1e9)](_0x416763(0x1fe),{'id':this['id']});});}[_0x1fb4bb(0x231)](_0x1c999b){const _0x2a93b8=_0x1fb4bb;this[_0x2a93b8(0x1f7)][_0x2a93b8(0x20f)]=_0x335c0c(_0x1c999b);}[_0x1fb4bb(0x228)](_0x51a3b5,_0x387e1c){const _0x4ef415=_0x1fb4bb;this[_0x4ef415(0x22c)](_0x4ef415(0x247),_0x387e1c?_0x51a3b5:null);}[_0x1fb4bb(0x21d)](){const _0x32f443=_0x1fb4bb,_0x49b595=new _0x339e40();return _0x49b595[_0x32f443(0x22c)]({'content':_0x310959}),_0x49b595;}[_0x1fb4bb(0x1f2)](_0x2d90ab){const _0x20c0ff=_0x1fb4bb,_0x3b4972=new _0x19c72b(_0x2d90ab);return _0x3b4972[_0x20c0ff(0x22c)]({'label':_0xd91f3e(_0x2d90ab,_0x20c0ff(0x237)),'icon':_0x2961ad,'withText':!0x1,'tooltip':!0x0}),_0x3b4972[_0x20c0ff(0x1fc)](_0x20c0ff(0x1e8))['to'](this,_0x20c0ff(0x213)),_0x3b4972['on'](_0x20c0ff(0x205),()=>{const _0x36cf7c=_0x20c0ff,_0xccd414=!this[_0x36cf7c(0x213)];this[_0x36cf7c(0x1e9)](_0x36cf7c(0x1f9),{'id':this['id'],'pinned':_0xccd414});}),_0x3b4972;}[_0x1fb4bb(0x245)](){const _0x181a3c=_0x1fb4bb,_0x2d83d6=_0x45c0a0(this[_0x181a3c(0x1f4)],_0x572f58),_0x43a4d7=_0x2d83d6[_0x181a3c(0x22d)][_0x181a3c(0x20d)];_0x2d83d6[_0x181a3c(0x204)][_0x181a3c(0x22c)]({'label':_0xd91f3e(this[_0x181a3c(0x1f4)],_0x181a3c(0x1ec)),'icon':_0x25ba04}),_0x2d83d6[_0x181a3c(0x23c)]='sw';const _0x106094=new _0x19c72b(this[_0x181a3c(0x1f4)]);_0x106094[_0x181a3c(0x20c)]=_0xd91f3e(this[_0x181a3c(0x1f4)],_0x181a3c(0x219)),_0x106094[_0x181a3c(0x23f)]=!0x0,_0x106094['on'](_0x181a3c(0x205),()=>{const _0x587c4a=_0x181a3c;this[_0x587c4a(0x1f1)]=!0x0;});const _0x3661bd=new _0x19c72b(this[_0x181a3c(0x1f4)]);_0x3661bd[_0x181a3c(0x20c)]=_0xd91f3e(this[_0x181a3c(0x1f4)],_0x181a3c(0x22e)),_0x3661bd[_0x181a3c(0x23f)]=!0x0,_0x3661bd['on'](_0x181a3c(0x205),()=>{const _0x2b1c8a=_0x181a3c;this[_0x2b1c8a(0x1f3)](_0xd91f3e(this[_0x2b1c8a(0x1f4)],_0x2b1c8a(0x1ee)),this[_0x2b1c8a(0x22b)])[_0x2b1c8a(0x1f8)](()=>{const _0x5a9e25=_0x2b1c8a;this[_0x5a9e25(0x1e9)](_0x5a9e25(0x240),{'id':this['id']});});});const _0x345724=new _0x42730c(this[_0x181a3c(0x1f4)]),_0x5b750a=new _0x146380(this[_0x181a3c(0x1f4)]);_0x5b750a[_0x181a3c(0x20d)][_0x181a3c(0x1ea)](_0x106094);const _0x12f4a4=new _0x146380(this[_0x181a3c(0x1f4)]);return _0x12f4a4[_0x181a3c(0x20d)][_0x181a3c(0x1ea)](_0x3661bd),_0x345724[_0x181a3c(0x1fb)][_0x181a3c(0x218)]([_0x5b750a,_0x12f4a4]),_0x43a4d7[_0x181a3c(0x1ea)](_0x345724),_0x2d83d6;}[_0x1fb4bb(0x226)](_0x131a17,_0xf61f81){const _0x1b543b=_0x1fb4bb,_0xcfe99b=new _0x3c590d(_0x131a17),_0xe4972f=_0xcfe99b[_0x1b543b(0x201)];return _0xcfe99b[_0x1b543b(0x21c)]=_0xf61f81,_0xcfe99b[_0x1b543b(0x215)]({'on':{'keydown':_0xe4972f['to'](_0x5820b2=>{const _0x49765e=_0x1b543b;_0x49765e(0x242)==_0x5820b2[_0x49765e(0x20e)]&&this[_0x49765e(0x234)](_0xcfe99b);})}}),_0xcfe99b;}[_0x1fb4bb(0x21e)](_0xbc0b6c,_0x1c128d){const _0x2862fa=_0x1fb4bb,_0x195aec=new _0x19c72b(_0xbc0b6c);return _0x195aec[_0x2862fa(0x22c)]({'icon':_0x310959,'withText':!0x1,'tooltip':_0xd91f3e(_0xbc0b6c,_0x2862fa(0x223))}),_0x195aec[_0x2862fa(0x215)]({'attributes':{'class':[_0x2862fa(0x22a)]}}),_0x195aec['on'](_0x2862fa(0x205),()=>{const _0x2f971e=_0x2862fa;this[_0x2f971e(0x234)](_0x1c128d);}),_0x195aec;}[_0x1fb4bb(0x234)](_0x5761d4){const _0x8737d3=_0x1fb4bb,_0x1c9adc=_0x5761d4[_0x8737d3(0x22b)][_0x8737d3(0x21c)]||'';this[_0x8737d3(0x1f7)][_0x8737d3(0x20f)]=_0x1c9adc,this[_0x8737d3(0x1f1)]=!0x1,this[_0x8737d3(0x1e9)](_0x8737d3(0x20b),{'id':this['id'],'title':_0x1c9adc});}[_0x1fb4bb(0x206)](_0xf57cc1,_0x45783e){const _0x84df9=_0x1fb4bb,_0x1b4b89=new _0x19c72b(_0xf57cc1);return _0x1b4b89[_0x84df9(0x22c)]({'icon':_0x55b6ee,'withText':!0x1,'tooltip':_0xd91f3e(_0xf57cc1,_0x84df9(0x23b))}),_0x1b4b89[_0x84df9(0x215)]({'attributes':{'class':[_0x84df9(0x217)]}}),_0x1b4b89['on'](_0x84df9(0x205),()=>{const _0x40e3ca=_0x84df9;this[_0x40e3ca(0x1f1)]=!0x1,_0x45783e[_0x40e3ca(0x21c)]=this[_0x40e3ca(0x1f7)][_0x40e3ca(0x20f)]||'',this[_0x40e3ca(0x1e9)](_0x40e3ca(0x236));}),_0x1b4b89;}[_0x1fb4bb(0x1ed)](){const _0x1841b4=_0x1fb4bb,_0x198d8f=new _0x4825bc(_0x1841b4(0x1e6));return _0x198d8f[_0x1841b4(0x222)]=!0x0,_0x198d8f;}[_0x1fb4bb(0x1ef)](_0x276dc2){const _0x9efbbe=_0x1fb4bb;return this[_0x9efbbe(0x1f7)]&&_0x9efbbe(0x243)==typeof this[_0x9efbbe(0x1f7)][_0x9efbbe(0x20f)]&&this[_0x9efbbe(0x1f7)][_0x9efbbe(0x20f)][_0x9efbbe(0x203)](_0x276dc2)?{'title':!0x0}:null;}[_0x1fb4bb(0x210)](_0x4b2d48){const _0x52cacc=_0x1fb4bb;this[_0x52cacc(0x1f7)][_0x52cacc(0x210)](_0x4b2d48);}}
23
+ const _0x5aa174=_0x2984;(function(_0x2ffb64,_0x3ad3e9){const _0x5c1cf=_0x2984,_0x59f42b=_0x2ffb64();while(!![]){try{const _0x45e2c0=parseInt(_0x5c1cf(0x21a))/0x1+-parseInt(_0x5c1cf(0x205))/0x2+-parseInt(_0x5c1cf(0x204))/0x3*(parseInt(_0x5c1cf(0x233))/0x4)+-parseInt(_0x5c1cf(0x23a))/0x5+-parseInt(_0x5c1cf(0x229))/0x6+-parseInt(_0x5c1cf(0x237))/0x7+parseInt(_0x5c1cf(0x234))/0x8*(parseInt(_0x5c1cf(0x1ee))/0x9);if(_0x45e2c0===_0x3ad3e9)break;else _0x59f42b['push'](_0x59f42b['shift']());}catch(_0x1f76c5){_0x59f42b['push'](_0x59f42b['shift']());}}}(_0x35cd,0xdb139));import{ListItemView as _0x433fa8,HighlightedTextView as _0x5699aa,ButtonView as _0x3ac72c,ListView as _0x525614,IconView as _0x1b5665,createDropdown as _0x2231f9,InputTextView as _0x39e8d4}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x36c044,IconPin as _0x5ba1d5,IconCheck as _0x2f93ad,IconCancel as _0x21f5b5}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x166128,ConfirmMixin as _0x3d0cd0}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x1fea0}from'es-toolkit/compat';function _0x35cd(){const _0x218384=['ck-ai-chat-history__item','3lzhJBf','1682200pekINv','AI_CHAT_HISTORY_REMOVE_CONFIRM','removeConversation','bindTemplate','isMatching','ck-ai-chat-history__item-main-content','ck-ai-chat-history__item-title','loadingState','isOn','setTemplate','isVisible','_createCancelEditButtonView','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','Enter','LOADING_LABELS','_createAcceptEditButtonView','createCollection','execute','set','focus','withText','1494321oESMRo','key','label','selectConversation','ck-ai-chat-history__item-row','AI_CHAT_HISTORY_LOADING_UNPINNING','_createEditInputView','add','ck-ai-chat-history__item-actions','span','AI_CHAT_HISTORY_LOADING_RENAMING','clear','text','then','element','9406608dxbvmK','setConversationPinned','click','extendTemplate','highlightText','updateLoadingState','ck-ai-chat-history__item--edit','_createPinButtonView','AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_LOADING_PINNING','239864ewrAgc','17039824oXNoiq','change:isEdit','buttonView','1082249YCOmgL','ck-hidden','items','517605tOReYZ','editConversationTitle','string','div','ck-ai-loader__text','_createMenuDropdownView','panelView','AI_CHAT_HISTORY_LOADING_REMOVING','ck-ai-chat-history__item--active','tiny','children','ck-ai-chat-history__item-check-container','pinned','updateTitle','value','match','showConfirm','_titleView','listitem','_createSpinnerView','edit:cancel','9RjvNas','addMany','isEdit','AI_CHAT_HISTORY_EDIT_NAME','AI_CHAT_HISTORY_CANCEL','actions','ck-ai-chat-history__item-content','ck-confirm-view-submit','AI_CHAT_HISTORY_PIN_BUTTON','panelPosition','fire','mainContent','_createCheckView','ck-confirm-view-cancel','ck-ai-chat-history__item-check','locale','bind','_commitEditInputValue','ck-ai-loader','ck-ai-chat-history__item-date','AI_CHAT_HISTORY_ACCEPT'];_0x35cd=function(){return _0x218384;};return _0x35cd();}import{AISpinnerView as _0x227b32}from'../../aicore/ui/aispinner.js';import{getTranslation as _0xc5e803}from'../../aicore/utils/common-translations.js';function _0x2984(_0x1f4aab,_0x637e63){const _0x35cd2b=_0x35cd();return _0x2984=function(_0x29844e,_0x3ff02f){_0x29844e=_0x29844e-0x1df;let _0x27bdca=_0x35cd2b[_0x29844e];return _0x27bdca;},_0x2984(_0x1f4aab,_0x637e63);}export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x3d0cd0(_0x433fa8){['id'];static [_0x5aa174(0x213)]={'remove':_0x5aa174(0x1e0),'rename':_0x5aa174(0x224),'pin':_0x5aa174(0x232),'unpin':_0x5aa174(0x21f)};[_0x5aa174(0x1f3)];[_0x5aa174(0x1f9)];[_0x5aa174(0x1ea)];constructor(_0x42374c,_0x3f82e3){const _0x4a7f09=_0x5aa174;super(_0x42374c);const _0x46bc6c=this[_0x4a7f09(0x208)];this[_0x4a7f09(0x217)](_0x4a7f09(0x1f0),!0x1),this[_0x4a7f09(0x217)](_0x4a7f09(0x20f),!0x0),this[_0x4a7f09(0x217)](_0x4a7f09(0x1e5),!!_0x3f82e3[_0x4a7f09(0x1e5)]),this[_0x4a7f09(0x217)](_0x4a7f09(0x20c),null),this['id']=_0x3f82e3['id'];const {title:_0x540742,createdAt:_0x5092e7,active:_0xebcf5c=!0x1}=_0x3f82e3;this[_0x4a7f09(0x1ea)]=new _0x5699aa(),this[_0x4a7f09(0x1ea)][_0x4a7f09(0x226)]=_0x540742,this[_0x4a7f09(0x1ea)][_0x4a7f09(0x22c)]({'attributes':{'class':[_0x4a7f09(0x20b)]}});const _0x3bfe10=this[_0x4a7f09(0x1fa)](),_0x3f4a48=this[_0x4a7f09(0x230)](_0x42374c),_0x2cda5e=this[_0x4a7f09(0x23f)](),_0x55fc71=this[_0x4a7f09(0x220)](_0x42374c,_0x540742),_0x68a546=this[_0x4a7f09(0x214)](_0x42374c,_0x55fc71),_0x3ae966=this[_0x4a7f09(0x210)](_0x42374c,_0x55fc71);this[_0x4a7f09(0x1f3)]=this[_0x4a7f09(0x215)](),this[_0x4a7f09(0x1f9)]=this[_0x4a7f09(0x215)](),this[_0x4a7f09(0x1f9)][_0x4a7f09(0x221)](this[_0x4a7f09(0x1ea)]),this[_0x4a7f09(0x1f3)][_0x4a7f09(0x221)](_0x3f4a48),this[_0x4a7f09(0x1f3)][_0x4a7f09(0x221)](_0x2cda5e),this['on'](_0x4a7f09(0x235),(_0x4c067a,_0x464419,_0x54241c)=>{const _0x55c3da=_0x4a7f09;this[_0x55c3da(0x1f3)][_0x55c3da(0x225)](),this[_0x55c3da(0x1f9)][_0x55c3da(0x225)](),_0x54241c?(this[_0x55c3da(0x1f3)][_0x55c3da(0x221)](_0x68a546),this[_0x55c3da(0x1f3)][_0x55c3da(0x221)](_0x3ae966),this[_0x55c3da(0x1f9)][_0x55c3da(0x221)](_0x55fc71),_0x55fc71[_0x55c3da(0x228)][_0x55c3da(0x218)]()):(this[_0x55c3da(0x1f3)][_0x55c3da(0x221)](_0x3f4a48),this[_0x55c3da(0x1f3)][_0x55c3da(0x221)](_0x2cda5e),this[_0x55c3da(0x1f9)][_0x55c3da(0x221)](this[_0x55c3da(0x1ea)]));}),this[_0x4a7f09(0x20e)]({'tag':'li','attributes':{'class':[_0x4a7f09(0x203),_0xebcf5c?_0x4a7f09(0x1e1):'',_0x46bc6c['if'](_0x4a7f09(0x20f),_0x4a7f09(0x238),_0x2dbd94=>!_0x2dbd94),_0x46bc6c['if'](_0x4a7f09(0x1f0),_0x4a7f09(0x22f))],'role':_0x4a7f09(0x1eb)},'children':[{'tag':_0x4a7f09(0x223),'attributes':{'class':[_0x4a7f09(0x1e4)]},'children':[{'tag':_0x4a7f09(0x23d),'attributes':{'class':[_0x4a7f09(0x1fc),_0x46bc6c['if'](_0x4a7f09(0x20c),_0x4a7f09(0x238),_0x319947=>!!_0x319947)]},'children':_0xebcf5c?[_0x3bfe10]:[]},{'tag':_0x4a7f09(0x23d),'attributes':{'class':[_0x4a7f09(0x200),_0x46bc6c['if'](_0x4a7f09(0x20c),_0x4a7f09(0x238),_0xca3c78=>!_0xca3c78)]},'children':[this[_0x4a7f09(0x1ec)]()]}]},{'tag':_0x4a7f09(0x23d),'attributes':{'class':[_0x4a7f09(0x21e)]},'children':[{'tag':_0x4a7f09(0x23d),'attributes':{'class':[_0x4a7f09(0x1f4)]},'on':{'click':this[_0x4a7f09(0x208)]['to'](_0x4a7f09(0x22b))},'children':[{'tag':_0x4a7f09(0x23d),'attributes':{'class':[_0x4a7f09(0x20a)]},'children':[{'tag':_0x4a7f09(0x23d),'attributes':{'class':[_0x4a7f09(0x20b),_0x46bc6c['if'](_0x4a7f09(0x20c),_0x4a7f09(0x238),_0x235873=>!!_0x235873)]},'children':this[_0x4a7f09(0x1f9)]},{'tag':_0x4a7f09(0x23d),'attributes':{'class':[_0x4a7f09(0x23e),_0x46bc6c['if'](_0x4a7f09(0x20c),_0x4a7f09(0x238),_0x4961f2=>!_0x4961f2)]},'children':[{'text':_0x46bc6c['to'](_0x4a7f09(0x20c),_0x3ee58b=>_0x3ee58b?_0xc5e803(this[_0x4a7f09(0x1fd)],AIChatHistoryListItemView[_0x4a7f09(0x213)][_0x3ee58b]):'')}]}]},{'tag':_0x4a7f09(0x223),'attributes':{'class':[_0x4a7f09(0x201)]},'children':[_0x5092e7]}]},{'tag':_0x4a7f09(0x23d),'attributes':{'class':[_0x4a7f09(0x222)]},'children':this[_0x4a7f09(0x1f3)]}]}]}),this['on'](_0x4a7f09(0x22b),()=>{const _0x58181f=_0x4a7f09;this[_0x58181f(0x1f0)]||this[_0x58181f(0x1f8)](_0x58181f(0x21d),{'id':this['id']});});}[_0x5aa174(0x1e6)](_0x5c1632){const _0x247a22=_0x5aa174;this[_0x247a22(0x1ea)][_0x247a22(0x226)]=_0x1fea0(_0x5c1632);}[_0x5aa174(0x22e)](_0x10acb3,_0x373084){const _0x5840c2=_0x5aa174;this[_0x5840c2(0x217)](_0x5840c2(0x20c),_0x373084?_0x10acb3:null);}[_0x5aa174(0x1fa)](){const _0x527612=_0x5aa174,_0x194c20=new _0x1b5665();return _0x194c20[_0x527612(0x217)]({'content':_0x2f93ad}),_0x194c20;}[_0x5aa174(0x230)](_0xffb38c){const _0x5a552a=_0x5aa174,_0x4d4d95=new _0x3ac72c(_0xffb38c);return _0x4d4d95[_0x5a552a(0x217)]({'label':_0xc5e803(_0xffb38c,_0x5a552a(0x1f6)),'icon':_0x5ba1d5,'withText':!0x1,'tooltip':!0x0}),_0x4d4d95[_0x5a552a(0x1fe)](_0x5a552a(0x20d))['to'](this,_0x5a552a(0x1e5)),_0x4d4d95['on'](_0x5a552a(0x216),()=>{const _0x3c7938=_0x5a552a,_0x5866e8=!this[_0x3c7938(0x1e5)];this[_0x3c7938(0x1f8)](_0x3c7938(0x22a),{'id':this['id'],'pinned':_0x5866e8});}),_0x4d4d95;}[_0x5aa174(0x23f)](){const _0x1b86f5=_0x5aa174,_0x46adb3=_0x2231f9(this[_0x1b86f5(0x1fd)],_0x166128),_0x30e72e=_0x46adb3[_0x1b86f5(0x1df)][_0x1b86f5(0x1e3)];_0x46adb3[_0x1b86f5(0x236)][_0x1b86f5(0x217)]({'label':_0xc5e803(this[_0x1b86f5(0x1fd)],_0x1b86f5(0x211)),'icon':_0x36c044}),_0x46adb3[_0x1b86f5(0x1f7)]='sw';const _0x486d8b=new _0x3ac72c(this[_0x1b86f5(0x1fd)]);_0x486d8b[_0x1b86f5(0x21c)]=_0xc5e803(this[_0x1b86f5(0x1fd)],_0x1b86f5(0x1f1)),_0x486d8b[_0x1b86f5(0x219)]=!0x0,_0x486d8b['on'](_0x1b86f5(0x216),()=>{const _0x132a7b=_0x1b86f5;this[_0x132a7b(0x1f0)]=!0x0;});const _0x5b1574=new _0x3ac72c(this[_0x1b86f5(0x1fd)]);_0x5b1574[_0x1b86f5(0x21c)]=_0xc5e803(this[_0x1b86f5(0x1fd)],_0x1b86f5(0x231)),_0x5b1574[_0x1b86f5(0x219)]=!0x0,_0x5b1574['on'](_0x1b86f5(0x216),()=>{const _0xcf8115=_0x1b86f5;this[_0xcf8115(0x1e9)](_0xc5e803(this[_0xcf8115(0x1fd)],_0xcf8115(0x206)),this[_0xcf8115(0x228)])[_0xcf8115(0x227)](()=>{const _0x43c657=_0xcf8115;this[_0x43c657(0x1f8)](_0x43c657(0x207),{'id':this['id']});});});const _0x3febe4=new _0x525614(this[_0x1b86f5(0x1fd)]),_0x1aa17c=new _0x433fa8(this[_0x1b86f5(0x1fd)]);_0x1aa17c[_0x1b86f5(0x1e3)][_0x1b86f5(0x221)](_0x486d8b);const _0x4dc434=new _0x433fa8(this[_0x1b86f5(0x1fd)]);return _0x4dc434[_0x1b86f5(0x1e3)][_0x1b86f5(0x221)](_0x5b1574),_0x3febe4[_0x1b86f5(0x239)][_0x1b86f5(0x1ef)]([_0x1aa17c,_0x4dc434]),_0x30e72e[_0x1b86f5(0x221)](_0x3febe4),_0x46adb3;}[_0x5aa174(0x220)](_0x4c345c,_0x2a13f8){const _0x34df21=_0x5aa174,_0x173800=new _0x39e8d4(_0x4c345c),_0x1aa9fa=_0x173800[_0x34df21(0x208)];return _0x173800[_0x34df21(0x1e7)]=_0x2a13f8,_0x173800[_0x34df21(0x22c)]({'on':{'keydown':_0x1aa9fa['to'](_0x343dd9=>{const _0x40177c=_0x34df21;_0x40177c(0x212)==_0x343dd9[_0x40177c(0x21b)]&&this[_0x40177c(0x1ff)](_0x173800);})}}),_0x173800;}[_0x5aa174(0x214)](_0x90aca3,_0x1fe587){const _0xca8b16=_0x5aa174,_0x2a89ad=new _0x3ac72c(_0x90aca3);return _0x2a89ad[_0xca8b16(0x217)]({'icon':_0x2f93ad,'withText':!0x1,'tooltip':_0xc5e803(_0x90aca3,_0xca8b16(0x202))}),_0x2a89ad[_0xca8b16(0x22c)]({'attributes':{'class':[_0xca8b16(0x1f5)]}}),_0x2a89ad['on'](_0xca8b16(0x216),()=>{const _0xf0fd30=_0xca8b16;this[_0xf0fd30(0x1ff)](_0x1fe587);}),_0x2a89ad;}[_0x5aa174(0x1ff)](_0x2d9677){const _0x6454c6=_0x5aa174,_0x2b15b3=_0x2d9677[_0x6454c6(0x228)][_0x6454c6(0x1e7)]||'';this[_0x6454c6(0x1ea)][_0x6454c6(0x226)]=_0x2b15b3,this[_0x6454c6(0x1f0)]=!0x1,this[_0x6454c6(0x1f8)](_0x6454c6(0x23b),{'id':this['id'],'title':_0x2b15b3});}[_0x5aa174(0x210)](_0x33baaa,_0x4d78b2){const _0x12f2d8=_0x5aa174,_0x31279d=new _0x3ac72c(_0x33baaa);return _0x31279d[_0x12f2d8(0x217)]({'icon':_0x21f5b5,'withText':!0x1,'tooltip':_0xc5e803(_0x33baaa,_0x12f2d8(0x1f2))}),_0x31279d[_0x12f2d8(0x22c)]({'attributes':{'class':[_0x12f2d8(0x1fb)]}}),_0x31279d['on'](_0x12f2d8(0x216),()=>{const _0x219eda=_0x12f2d8;this[_0x219eda(0x1f0)]=!0x1,_0x4d78b2[_0x219eda(0x1e7)]=this[_0x219eda(0x1ea)][_0x219eda(0x226)]||'',this[_0x219eda(0x1f8)](_0x219eda(0x1ed));}),_0x31279d;}[_0x5aa174(0x1ec)](){const _0x117aaf=_0x5aa174,_0x5b8626=new _0x227b32(_0x117aaf(0x1e2));return _0x5b8626[_0x117aaf(0x20f)]=!0x0,_0x5b8626;}[_0x5aa174(0x209)](_0x1d01a3){const _0x5a1710=_0x5aa174;return this[_0x5a1710(0x1ea)]&&_0x5a1710(0x23c)==typeof this[_0x5a1710(0x1ea)][_0x5a1710(0x226)]&&this[_0x5a1710(0x1ea)][_0x5a1710(0x226)][_0x5a1710(0x1e8)](_0x1d01a3)?{'title':!0x0}:null;}[_0x5aa174(0x22d)](_0x579b95){const _0x4f26e1=_0x5aa174;this[_0x4f26e1(0x1ea)][_0x4f26e1(0x22d)](_0x579b95);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3b2a(){const _0x55cbd6=['_createErrorView','search','190ypfSfD','ck-ai-notification_error__dismiss-button','ck-ai-notification_error','value','emptyView','sectionsView','ck-ai-chat-history','8hpaWmr','render','ck-ai-chat-history__empty-message','execute','change:hasItems','delegate','ck-hidden','title','change:isLoading','remove','308hrdizf','AI_CHAT_HISTORY_HEADING','change:errorMessage','_createSkeletonView','hasItems','sections','_refreshSearch','isVisible','updateItemTitle','updateHistoryItemsWithCategories','openChat','1524446SXnbKk','isMaximized','AI_CHAT_HISTORY_EMPTY_MESSAGE','903751rotDdf','splice','children','ltr','ck-reset_all','extendTemplate','16885yZewhN','bindTemplate','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','queryView','updateItemLoadingState','8794812hSjnqV','locale','updateLoadingState','_createListItemViews','getItem','431578LohxlC','push','errorMessage','isEmptyViewVisible','updateTitle','fire','ck-ai-chat__start-conversation','aiHistory','ck-rounded-corners','_updateViewVisibility','set','some','skeletonView','add','bind','3bmaOZA','isLoading','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','addMany','length','2689317DSUHtb','_createSearchView','indexOf','removeItem','ck-ai-header\x20ck-ai-header_history','div','5961249qlQWZo','removeHistoryItem','resizeButton','setTemplate','ck-ai-chat-history__content','isSearchViewVisible','ck-ai-chat-history__empty','AI_CHAT_LABEL_NEW_CHAT','mainErrorView','searchView','clear','_createEmptyStateView','itemsViews','items','isMainErrorViewVisible','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-notification','element','fieldView'];_0x3b2a=function(){return _0x55cbd6;};return _0x3b2a();}const _0x2b9754=_0x42e6;(function(_0x2ac6b9,_0xda5d30){const _0x5def62=_0x42e6,_0x53ab32=_0x2ac6b9();while(!![]){try{const _0x18f5a0=parseInt(_0x5def62(0x1fd))/0x1+parseInt(_0x5def62(0x20d))/0x2*(parseInt(_0x5def62(0x21c))/0x3)+-parseInt(_0x5def62(0x24d))/0x4*(-parseInt(_0x5def62(0x203))/0x5)+parseInt(_0x5def62(0x208))/0x6+-parseInt(_0x5def62(0x227))/0x7*(-parseInt(_0x5def62(0x243))/0x8)+-parseInt(_0x5def62(0x221))/0x9+-parseInt(_0x5def62(0x23c))/0xa*(parseInt(_0x5def62(0x1fa))/0xb);if(_0x18f5a0===_0xda5d30)break;else _0x53ab32['push'](_0x53ab32['shift']());}catch(_0x5332ec){_0x53ab32['push'](_0x53ab32['shift']());}}}(_0x3b2a,0xbac67));import{View as _0x2e838c,SearchTextView as _0x4d6633,FormHeaderView as _0x258471,ButtonView as _0x3d59ae}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x160469,IconCancel as _0x267611,IconPlus as _0x26665e}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x56cfd5}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x12195f}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x331156}from'./aichathistorylistitemview.js';function _0x42e6(_0x311529,_0x2e5605){const _0x3b2a32=_0x3b2a();return _0x42e6=function(_0x42e65c,_0x13172d){_0x42e65c=_0x42e65c-0x1f3;let _0x58141e=_0x3b2a32[_0x42e65c];return _0x58141e;},_0x42e6(_0x311529,_0x2e5605);}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x5eaa1a}from'../aichathistoryui.js';import{AISkeletonView as _0xfa3ec9,SKELETON_DEFINITIONS as _0x3ab144}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0xf7175d}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x5eb250}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x2e838c{[_0x2b9754(0x230)];[_0x2b9754(0x22f)];[_0x2b9754(0x219)];[_0x2b9754(0x240)];[_0x2b9754(0x241)];[_0x2b9754(0x229)];constructor(_0x3c234e,_0x1ac667){const _0x385c93=_0x2b9754;super(_0x3c234e),this[_0x385c93(0x217)](_0x385c93(0x1f3),!0x1),this[_0x385c93(0x217)](_0x385c93(0x21d),!0x0),this[_0x385c93(0x217)](_0x385c93(0x20f),''),this[_0x385c93(0x217)](_0x385c93(0x1fb),!0x1),this[_0x385c93(0x217)](_0x385c93(0x22c),!0x1),this[_0x385c93(0x217)](_0x385c93(0x210),!0x1),this[_0x385c93(0x217)](_0x385c93(0x235),!0x1);const _0x2320df=new _0x258471(_0x3c234e,{'label':_0x5eb250(_0x3c234e,_0x385c93(0x24e)),'icon':_0x160469,'class':_0x385c93(0x225)});_0x1ac667&&(this[_0x385c93(0x229)]=_0xf7175d(_0x3c234e,this),_0x2320df[_0x385c93(0x1ff)][_0x385c93(0x21a)](this[_0x385c93(0x229)])),this[_0x385c93(0x241)]=new _0x56cfd5(_0x3c234e,[]),this[_0x385c93(0x241)][_0x385c93(0x248)](..._0x5eaa1a)['to'](this),this[_0x385c93(0x22f)]=this[_0x385c93(0x23a)](),this[_0x385c93(0x219)]=this[_0x385c93(0x250)](),this[_0x385c93(0x240)]=this[_0x385c93(0x232)](),this[_0x385c93(0x230)]=this[_0x385c93(0x222)](),this[_0x385c93(0x22f)][_0x385c93(0x202)]({'attributes':{'class':[this[_0x385c93(0x204)]['if'](_0x385c93(0x235),_0x385c93(0x249),_0x3b5659=>!_0x3b5659)]}}),this['on'](_0x385c93(0x24b),()=>this[_0x385c93(0x216)]()),this['on'](_0x385c93(0x247),()=>this[_0x385c93(0x216)]()),this['on'](_0x385c93(0x24f),()=>this[_0x385c93(0x216)]()),this[_0x385c93(0x22a)]({'tag':_0x385c93(0x226),'attributes':{'class':['ck',_0x385c93(0x201),_0x385c93(0x242),_0x385c93(0x215)],'dir':_0x385c93(0x200)},'children':[_0x2320df,{'tag':_0x385c93(0x226),'attributes':{'class':[_0x385c93(0x22b)]},'children':[this[_0x385c93(0x219)],this[_0x385c93(0x22f)],this[_0x385c93(0x240)],this[_0x385c93(0x230)]]}]});}[_0x2b9754(0x216)](){const _0x2d0860=_0x2b9754;this[_0x2d0860(0x22c)]=!this[_0x2d0860(0x21d)]&&this[_0x2d0860(0x1f3)],this[_0x2d0860(0x210)]=!this[_0x2d0860(0x21d)]&&!this[_0x2d0860(0x1f3)]&&!this[_0x2d0860(0x20f)],this[_0x2d0860(0x235)]=!this[_0x2d0860(0x22c)]&&!!this[_0x2d0860(0x20f)];}[_0x2b9754(0x222)](){const _0x3026c8=_0x2b9754,_0x5e62b8=new _0x4d6633(this[_0x3026c8(0x209)],{'filteredView':this[_0x3026c8(0x241)],'queryView':{'label':_0x5eb250(this[_0x3026c8(0x209)],_0x3026c8(0x236))},'infoView':{'text':{'notFound':{'primary':_0x55860e=>_0x5eb250(this[_0x3026c8(0x209)],_0x3026c8(0x21e),_0x55860e),'secondary':_0x5eb250(this[_0x3026c8(0x209)],_0x3026c8(0x205))}}}}),_0x5320cc=this[_0x3026c8(0x23a)]();return _0x5320cc[_0x3026c8(0x202)]({'attributes':{'class':[this[_0x3026c8(0x204)]['if'](_0x3026c8(0x20f),_0x3026c8(0x249),_0xacee1e=>!_0xacee1e)]}}),_0x5e62b8['on'](_0x3026c8(0x244),()=>{const _0x124847=_0x3026c8;_0x5e62b8[_0x124847(0x1ff)][_0x124847(0x21a)](_0x5320cc,0x1);}),_0x5e62b8[_0x3026c8(0x202)]({'attributes':{'class':[this[_0x3026c8(0x204)]['if'](_0x3026c8(0x22c),_0x3026c8(0x249),_0xf2db5a=>!_0xf2db5a)]}}),_0x5e62b8;}[_0x2b9754(0x250)](){const _0x34de85=_0x2b9754,_0x2108b7=new _0xfa3ec9(this[_0x34de85(0x209)],_0x3ab144[_0x34de85(0x214)]);return _0x2108b7[_0x34de85(0x202)]({'attributes':{'class':[this[_0x34de85(0x204)]['if'](_0x34de85(0x21d),_0x34de85(0x249),_0x5eb481=>!_0x5eb481)]}}),_0x2108b7;}[_0x2b9754(0x23a)](){const _0x5660fc=_0x2b9754,_0x7a85e8=new _0x2e838c(this[_0x5660fc(0x209)]),_0x312cdd=new _0x3d59ae(this[_0x5660fc(0x209)]);_0x312cdd[_0x5660fc(0x217)]({'withText':!0x1,'icon':_0x267611,'class':_0x5660fc(0x23d)}),_0x312cdd[_0x5660fc(0x21b)](_0x5660fc(0x1f6))['to'](this,_0x5660fc(0x1f3),_0x3805dc=>!!_0x3805dc),_0x312cdd['on'](_0x5660fc(0x246),()=>{const _0x3764a9=_0x5660fc;this[_0x3764a9(0x20f)]='';});const _0x260c86=this[_0x5660fc(0x204)];return _0x7a85e8[_0x5660fc(0x22a)]({'tag':_0x5660fc(0x226),'attributes':{'class':['ck',_0x5660fc(0x237),_0x5660fc(0x23e)]},'children':[{'tag':'p','children':[{'text':_0x260c86['to'](_0x5660fc(0x20f))}]},_0x312cdd]}),_0x7a85e8;}[_0x2b9754(0x232)](){const _0x5e393f=_0x2b9754,_0x2f371f=new _0x3d59ae(this[_0x5e393f(0x209)]);_0x2f371f[_0x5e393f(0x217)]({'label':_0x5eb250(this[_0x5e393f(0x209)],_0x5e393f(0x22e)),'withText':!0x0,'icon':_0x26665e,'class':_0x5e393f(0x213)}),_0x2f371f['on'](_0x5e393f(0x246),()=>{const _0x4449c0=_0x5e393f;this[_0x4449c0(0x212)](_0x4449c0(0x1f9));});const _0x556f9a=new _0x2e838c(this[_0x5e393f(0x209)]);return _0x556f9a[_0x5e393f(0x22a)]({'tag':_0x5e393f(0x226),'attributes':{'class':[_0x5e393f(0x22d),this[_0x5e393f(0x204)]['if'](_0x5e393f(0x210),_0x5e393f(0x249),_0x98f6d5=>!_0x98f6d5)]},'children':[{'tag':'p','attributes':{'class':[_0x5e393f(0x245)]},'children':[_0x5eb250(this[_0x5e393f(0x209)],_0x5e393f(0x1fc))]},_0x2f371f]}),_0x556f9a;}[_0x2b9754(0x20b)](_0x22df2d,_0x40f95a){const _0x5dab8b=_0x2b9754,_0x22024a=[];for(const _0x4bd3f1 of _0x22df2d){const _0x156883=new _0x331156(_0x40f95a,_0x4bd3f1);_0x156883[_0x5dab8b(0x248)](..._0x5eaa1a)['to'](this),_0x22024a[_0x5dab8b(0x20e)](_0x156883);}return _0x22024a;}[_0x2b9754(0x1f8)](_0x1dc3d4){const _0x484fcc=_0x2b9754,_0x15dfe1=this[_0x484fcc(0x209)]||'en',_0x39306b=[];for(const _0x3b4171 of _0x1dc3d4){const _0x4c4038=this[_0x484fcc(0x20b)](_0x3b4171[_0x484fcc(0x234)],_0x15dfe1);_0x39306b[_0x484fcc(0x20e)](new _0x12195f(_0x15dfe1,{'title':_0x3b4171[_0x484fcc(0x24a)],'items':_0x4c4038}));}this[_0x484fcc(0x241)][_0x484fcc(0x1f4)]=_0x39306b,this[_0x484fcc(0x241)][_0x484fcc(0x234)][_0x484fcc(0x231)](),this[_0x484fcc(0x241)][_0x484fcc(0x234)][_0x484fcc(0x21f)](_0x39306b),this[_0x484fcc(0x1f3)]=_0x1dc3d4[_0x484fcc(0x218)](_0x4a036c=>_0x4a036c[_0x484fcc(0x234)][_0x484fcc(0x220)]>0x0),this[_0x484fcc(0x1f5)]();}[_0x2b9754(0x228)](_0x4c7000){const _0x2d7404=_0x2b9754;for(const _0x56874e of this[_0x2d7404(0x241)][_0x2d7404(0x1f4)]){const _0x492038=_0x56874e[_0x2d7404(0x20c)](_0x4c7000);if(_0x492038){if(_0x56874e[_0x2d7404(0x224)](_0x492038),0x0===_0x56874e[_0x2d7404(0x233)][_0x2d7404(0x220)]){const _0x47c69d=this[_0x2d7404(0x241)][_0x2d7404(0x1f4)][_0x2d7404(0x223)](_0x56874e);-0x1!==_0x47c69d&&(this[_0x2d7404(0x241)][_0x2d7404(0x1f4)][_0x2d7404(0x1fe)](_0x47c69d,0x1),this[_0x2d7404(0x241)][_0x2d7404(0x234)][_0x2d7404(0x24c)](_0x56874e));}this[_0x2d7404(0x1f3)]=this[_0x2d7404(0x241)][_0x2d7404(0x1f4)][_0x2d7404(0x220)]>0x0,this[_0x2d7404(0x1f5)]();break;}}}[_0x2b9754(0x1f7)](_0x1de9f1,_0x1e2224){const _0x19878b=_0x2b9754;for(const _0x52a4c5 of this[_0x19878b(0x241)][_0x19878b(0x1f4)]){const _0x1c5f42=_0x52a4c5[_0x19878b(0x20c)](_0x1de9f1);if(_0x1c5f42){_0x1c5f42[_0x19878b(0x211)](_0x1e2224);break;}}}[_0x2b9754(0x207)](_0x295b80,_0x4295b6,_0x4cce34){const _0x297eef=_0x2b9754;for(const _0x6f040b of this[_0x297eef(0x241)][_0x297eef(0x1f4)]){const _0x26d0ad=_0x6f040b[_0x297eef(0x20c)](_0x295b80);if(_0x26d0ad){_0x26d0ad[_0x297eef(0x20a)](_0x4295b6,_0x4cce34);break;}}}[_0x2b9754(0x1f5)](){const _0x55cde1=_0x2b9754;if(this[_0x55cde1(0x1f3)]){const _0x314900=this[_0x55cde1(0x230)][_0x55cde1(0x206)][_0x55cde1(0x239)]?.[_0x55cde1(0x238)]?.[_0x55cde1(0x23f)]||'';this[_0x55cde1(0x230)][_0x55cde1(0x23b)](_0x314900);}}}
23
+ const _0x343e08=_0x41a2;function _0x41a2(_0x4e36e1,_0x4cdd9f){const _0x1143a3=_0x1143();return _0x41a2=function(_0x41a266,_0x1e3e33){_0x41a266=_0x41a266-0x11b;let _0x5b013c=_0x1143a3[_0x41a266];return _0x5b013c;},_0x41a2(_0x4e36e1,_0x4cdd9f);}(function(_0x136c2f,_0x2b647a){const _0x2a4808=_0x41a2,_0x4f9024=_0x136c2f();while(!![]){try{const _0x53ddde=-parseInt(_0x2a4808(0x123))/0x1+-parseInt(_0x2a4808(0x163))/0x2*(parseInt(_0x2a4808(0x162))/0x3)+parseInt(_0x2a4808(0x171))/0x4*(-parseInt(_0x2a4808(0x121))/0x5)+-parseInt(_0x2a4808(0x158))/0x6*(parseInt(_0x2a4808(0x156))/0x7)+parseInt(_0x2a4808(0x173))/0x8+-parseInt(_0x2a4808(0x161))/0x9+parseInt(_0x2a4808(0x150))/0xa;if(_0x53ddde===_0x2b647a)break;else _0x4f9024['push'](_0x4f9024['shift']());}catch(_0x3b5d56){_0x4f9024['push'](_0x4f9024['shift']());}}}(_0x1143,0x5f8d5));import{View as _0x41a6af,SearchTextView as _0x536728,FormHeaderView as _0x30b9aa,ButtonView as _0x497f56}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x410466,IconCancel as _0x2cf174,IconPlus as _0x32acd9}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x4b149a}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x4f0a03}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0xac44f7}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x27607e}from'../aichathistoryui.js';function _0x1143(){const _0x22f8cc=['_createEmptyStateView','isLoading','mainErrorView','addMany','ck-ai-chat-history__empty','updateLoadingState','some','932VwwXRv','_updateViewVisibility','286088GHdfYn','bindTemplate','ltr','skeletonView','set','_createSearchView','fire','AI_CHAT_HISTORY_SEARCH_LABEL','search','hasItems','ck-ai-notification_error','3705hriHBf','ck-hidden','416183fdOugQ','push','length','ck-rounded-corners','children','locale','isSearchViewVisible','indexOf','remove','ck-ai-header\x20ck-ai-header_history','updateItemTitle','clear','updateHistoryItemsWithCategories','isMaximized','fieldView','ck-ai-chat-history__empty-message','ck-ai-chat-history','removeHistoryItem','_createSkeletonView','_createListItemViews','emptyView','itemsViews','ck-ai-chat-history__content','splice','getItem','render','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:hasItems','ck-reset_all','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','setTemplate','_refreshSearch','AI_CHAT_LABEL_NEW_CHAT','searchView','isMainErrorViewVisible','updateTitle','element','title','value','aiHistory','delegate','sectionsView','openChat','isEmptyViewVisible','updateItemLoadingState','22031510TuQVHL','div','change:isLoading','_createErrorView','resizeButton','extendTemplate','4543UdRVBn','change:errorMessage','12cWCUwi','removeItem','ck-ai-notification_error__dismiss-button','AI_CHAT_HISTORY_HEADING','items','queryView','bind','ck-ai-notification','add','5194953KWOaGA','426zVEQRn','9580vLBRre','execute','sections','AI_CHAT_HISTORY_EMPTY_MESSAGE','isVisible','ck-ai-chat__start-conversation','errorMessage'];_0x1143=function(){return _0x22f8cc;};return _0x1143();}import{AISkeletonView as _0x2088ea,SKELETON_DEFINITIONS as _0x148cd0}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x2a132f}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x2bea86}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x41a6af{[_0x343e08(0x144)];[_0x343e08(0x16c)];[_0x343e08(0x176)];[_0x343e08(0x137)];[_0x343e08(0x14c)];[_0x343e08(0x154)];constructor(_0x35c279,_0x6dcf81){const _0x3c8152=_0x343e08;super(_0x35c279),this[_0x3c8152(0x177)](_0x3c8152(0x11f),!0x1),this[_0x3c8152(0x177)](_0x3c8152(0x16b),!0x0),this[_0x3c8152(0x177)](_0x3c8152(0x169),''),this[_0x3c8152(0x177)](_0x3c8152(0x130),!0x1),this[_0x3c8152(0x177)](_0x3c8152(0x129),!0x1),this[_0x3c8152(0x177)](_0x3c8152(0x14e),!0x1),this[_0x3c8152(0x177)](_0x3c8152(0x145),!0x1);const _0x5403d4=new _0x30b9aa(_0x35c279,{'label':_0x2bea86(_0x35c279,_0x3c8152(0x15b)),'icon':_0x410466,'class':_0x3c8152(0x12c)});_0x6dcf81&&(this[_0x3c8152(0x154)]=_0x2a132f(_0x35c279,this),_0x5403d4[_0x3c8152(0x127)][_0x3c8152(0x160)](this[_0x3c8152(0x154)])),this[_0x3c8152(0x14c)]=new _0x4b149a(_0x35c279,[]),this[_0x3c8152(0x14c)][_0x3c8152(0x14b)](..._0x27607e)['to'](this),this[_0x3c8152(0x16c)]=this[_0x3c8152(0x153)](),this[_0x3c8152(0x176)]=this[_0x3c8152(0x135)](),this[_0x3c8152(0x137)]=this[_0x3c8152(0x16a)](),this[_0x3c8152(0x144)]=this[_0x3c8152(0x11b)](),this[_0x3c8152(0x16c)][_0x3c8152(0x155)]({'attributes':{'class':[this[_0x3c8152(0x174)]['if'](_0x3c8152(0x145),_0x3c8152(0x122),_0x207f95=>!_0x207f95)]}}),this['on'](_0x3c8152(0x152),()=>this[_0x3c8152(0x172)]()),this['on'](_0x3c8152(0x13e),()=>this[_0x3c8152(0x172)]()),this['on'](_0x3c8152(0x157),()=>this[_0x3c8152(0x172)]()),this[_0x3c8152(0x141)]({'tag':_0x3c8152(0x151),'attributes':{'class':['ck',_0x3c8152(0x13f),_0x3c8152(0x133),_0x3c8152(0x126)],'dir':_0x3c8152(0x175)},'children':[_0x5403d4,{'tag':_0x3c8152(0x151),'attributes':{'class':[_0x3c8152(0x139)]},'children':[this[_0x3c8152(0x176)],this[_0x3c8152(0x16c)],this[_0x3c8152(0x137)],this[_0x3c8152(0x144)]]}]});}[_0x343e08(0x172)](){const _0x49ad3b=_0x343e08;this[_0x49ad3b(0x129)]=!this[_0x49ad3b(0x16b)]&&this[_0x49ad3b(0x11f)],this[_0x49ad3b(0x14e)]=!this[_0x49ad3b(0x16b)]&&!this[_0x49ad3b(0x11f)]&&!this[_0x49ad3b(0x169)],this[_0x49ad3b(0x145)]=!this[_0x49ad3b(0x129)]&&!!this[_0x49ad3b(0x169)];}[_0x343e08(0x11b)](){const _0x36e8e1=_0x343e08,_0x4651fc=new _0x536728(this[_0x36e8e1(0x128)],{'filteredView':this[_0x36e8e1(0x14c)],'queryView':{'label':_0x2bea86(this[_0x36e8e1(0x128)],_0x36e8e1(0x11d))},'infoView':{'text':{'notFound':{'primary':_0x7bf492=>_0x2bea86(this[_0x36e8e1(0x128)],_0x36e8e1(0x13d),_0x7bf492),'secondary':_0x2bea86(this[_0x36e8e1(0x128)],_0x36e8e1(0x140))}}}}),_0x569596=this[_0x36e8e1(0x153)]();return _0x569596[_0x36e8e1(0x155)]({'attributes':{'class':[this[_0x36e8e1(0x174)]['if'](_0x36e8e1(0x169),_0x36e8e1(0x122),_0x304e94=>!_0x304e94)]}}),_0x4651fc['on'](_0x36e8e1(0x13c),()=>{const _0x530b5d=_0x36e8e1;_0x4651fc[_0x530b5d(0x127)][_0x530b5d(0x160)](_0x569596,0x1);}),_0x4651fc[_0x36e8e1(0x155)]({'attributes':{'class':[this[_0x36e8e1(0x174)]['if'](_0x36e8e1(0x129),_0x36e8e1(0x122),_0xaf33f=>!_0xaf33f)]}}),_0x4651fc;}[_0x343e08(0x135)](){const _0x157bfa=_0x343e08,_0x3d82ce=new _0x2088ea(this[_0x157bfa(0x128)],_0x148cd0[_0x157bfa(0x14a)]);return _0x3d82ce[_0x157bfa(0x155)]({'attributes':{'class':[this[_0x157bfa(0x174)]['if'](_0x157bfa(0x16b),_0x157bfa(0x122),_0x3ca72c=>!_0x3ca72c)]}}),_0x3d82ce;}[_0x343e08(0x153)](){const _0x871bd8=_0x343e08,_0x296035=new _0x41a6af(this[_0x871bd8(0x128)]),_0x1a8d7d=new _0x497f56(this[_0x871bd8(0x128)]);_0x1a8d7d[_0x871bd8(0x177)]({'withText':!0x1,'icon':_0x2cf174,'class':_0x871bd8(0x15a)}),_0x1a8d7d[_0x871bd8(0x15e)](_0x871bd8(0x167))['to'](this,_0x871bd8(0x11f),_0x158f89=>!!_0x158f89),_0x1a8d7d['on'](_0x871bd8(0x164),()=>{const _0x16d77d=_0x871bd8;this[_0x16d77d(0x169)]='';});const _0x5a2048=this[_0x871bd8(0x174)];return _0x296035[_0x871bd8(0x141)]({'tag':_0x871bd8(0x151),'attributes':{'class':['ck',_0x871bd8(0x15f),_0x871bd8(0x120)]},'children':[{'tag':'p','children':[{'text':_0x5a2048['to'](_0x871bd8(0x169))}]},_0x1a8d7d]}),_0x296035;}[_0x343e08(0x16a)](){const _0x9c14cc=_0x343e08,_0x36b7dd=new _0x497f56(this[_0x9c14cc(0x128)]);_0x36b7dd[_0x9c14cc(0x177)]({'label':_0x2bea86(this[_0x9c14cc(0x128)],_0x9c14cc(0x143)),'withText':!0x0,'icon':_0x32acd9,'class':_0x9c14cc(0x168)}),_0x36b7dd['on'](_0x9c14cc(0x164),()=>{const _0x25151c=_0x9c14cc;this[_0x25151c(0x11c)](_0x25151c(0x14d));});const _0x31c904=new _0x41a6af(this[_0x9c14cc(0x128)]);return _0x31c904[_0x9c14cc(0x141)]({'tag':_0x9c14cc(0x151),'attributes':{'class':[_0x9c14cc(0x16e),this[_0x9c14cc(0x174)]['if'](_0x9c14cc(0x14e),_0x9c14cc(0x122),_0x254557=>!_0x254557)]},'children':[{'tag':'p','attributes':{'class':[_0x9c14cc(0x132)]},'children':[_0x2bea86(this[_0x9c14cc(0x128)],_0x9c14cc(0x166))]},_0x36b7dd]}),_0x31c904;}[_0x343e08(0x136)](_0x1c5c00,_0x23892e){const _0x43432c=_0x343e08,_0x49677f=[];for(const _0x361567 of _0x1c5c00){const _0x39f545=new _0xac44f7(_0x23892e,_0x361567);_0x39f545[_0x43432c(0x14b)](..._0x27607e)['to'](this),_0x49677f[_0x43432c(0x124)](_0x39f545);}return _0x49677f;}[_0x343e08(0x12f)](_0x1cd3f5){const _0x147124=_0x343e08,_0x5889ff=this[_0x147124(0x128)]||'en',_0x120207=[];for(const _0x3177cd of _0x1cd3f5){const _0x1365e5=this[_0x147124(0x136)](_0x3177cd[_0x147124(0x15c)],_0x5889ff);_0x120207[_0x147124(0x124)](new _0x4f0a03(_0x5889ff,{'title':_0x3177cd[_0x147124(0x148)],'items':_0x1365e5}));}this[_0x147124(0x14c)][_0x147124(0x165)]=_0x120207,this[_0x147124(0x14c)][_0x147124(0x15c)][_0x147124(0x12e)](),this[_0x147124(0x14c)][_0x147124(0x15c)][_0x147124(0x16d)](_0x120207),this[_0x147124(0x11f)]=_0x1cd3f5[_0x147124(0x170)](_0x4c3f51=>_0x4c3f51[_0x147124(0x15c)][_0x147124(0x125)]>0x0),this[_0x147124(0x142)]();}[_0x343e08(0x134)](_0x5cdc10){const _0x59673f=_0x343e08;for(const _0x3aa5ce of this[_0x59673f(0x14c)][_0x59673f(0x165)]){const _0x42ce22=_0x3aa5ce[_0x59673f(0x13b)](_0x5cdc10);if(_0x42ce22){if(_0x3aa5ce[_0x59673f(0x159)](_0x42ce22),0x0===_0x3aa5ce[_0x59673f(0x138)][_0x59673f(0x125)]){const _0x274c09=this[_0x59673f(0x14c)][_0x59673f(0x165)][_0x59673f(0x12a)](_0x3aa5ce);-0x1!==_0x274c09&&(this[_0x59673f(0x14c)][_0x59673f(0x165)][_0x59673f(0x13a)](_0x274c09,0x1),this[_0x59673f(0x14c)][_0x59673f(0x15c)][_0x59673f(0x12b)](_0x3aa5ce));}this[_0x59673f(0x11f)]=this[_0x59673f(0x14c)][_0x59673f(0x165)][_0x59673f(0x125)]>0x0,this[_0x59673f(0x142)]();break;}}}[_0x343e08(0x12d)](_0x11904d,_0x465569){const _0x5d8f44=_0x343e08;for(const _0xad6625 of this[_0x5d8f44(0x14c)][_0x5d8f44(0x165)]){const _0x126f7c=_0xad6625[_0x5d8f44(0x13b)](_0x11904d);if(_0x126f7c){_0x126f7c[_0x5d8f44(0x146)](_0x465569);break;}}}[_0x343e08(0x14f)](_0x27c53c,_0xb3504,_0x2d8cc4){const _0x3b8075=_0x343e08;for(const _0x31501b of this[_0x3b8075(0x14c)][_0x3b8075(0x165)]){const _0x2bdb41=_0x31501b[_0x3b8075(0x13b)](_0x27c53c);if(_0x2bdb41){_0x2bdb41[_0x3b8075(0x16f)](_0xb3504,_0x2d8cc4);break;}}}[_0x343e08(0x142)](){const _0x2b819b=_0x343e08;if(this[_0x2b819b(0x11f)]){const _0x2442cf=this[_0x2b819b(0x144)][_0x2b819b(0x15d)][_0x2b819b(0x131)]?.[_0x2b819b(0x147)]?.[_0x2b819b(0x149)]||'';this[_0x2b819b(0x144)][_0x2b819b(0x11e)](_0x2442cf);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39467a=_0x5476;(function(_0x3eb900,_0x3578e7){const _0x5b4ab4=_0x5476,_0x1f8d25=_0x3eb900();while(!![]){try{const _0x8d59bd=parseInt(_0x5b4ab4(0x11e))/0x1+-parseInt(_0x5b4ab4(0x11d))/0x2+-parseInt(_0x5b4ab4(0x10b))/0x3+parseInt(_0x5b4ab4(0x114))/0x4*(-parseInt(_0x5b4ab4(0x14d))/0x5)+-parseInt(_0x5b4ab4(0x10c))/0x6*(-parseInt(_0x5b4ab4(0x13a))/0x7)+-parseInt(_0x5b4ab4(0x12c))/0x8*(-parseInt(_0x5b4ab4(0x13f))/0x9)+parseInt(_0x5b4ab4(0x148))/0xa;if(_0x8d59bd===_0x3578e7)break;else _0x1f8d25['push'](_0x1f8d25['shift']());}catch(_0x5e9dd6){_0x1f8d25['push'](_0x1f8d25['shift']());}}}(_0x3167,0xce65b));import{AIChatUI as _0x1e35cf}from'../aichat/aichatui.js';function _0x5476(_0x23ecaa,_0x3171b3){const _0x316744=_0x3167();return _0x5476=function(_0x547614,_0x2a34be){_0x547614=_0x547614-0xfb;let _0xbd7e36=_0x316744[_0x547614];return _0xbd7e36;},_0x5476(_0x23ecaa,_0x3171b3);}import{ContextPlugin as _0x157dd5}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x156870}from'./ui/aichatshortcutsview.js';function _0x3167(){const _0x154610=['ai-chat-shortcuts-translate-not-found','addFeedItemCustomElement','language','locale','runReviewCheck','AIReviewModeUI','custom','length','isFromHistory','element','execute','prompt','removeFeedItem','2455713DNYeEr','6nMXdlT','ai.chat.shortcuts','requires','ai-chat-shortcuts-review-mode-not-found','chat','destroy','init','activateTab','52sqGKhE','AITranslateUI','type','AITabs','sendMessage','_shortcutsView','args','hasFeedItem','check','2804758THAgsQ','252830rJnccU','includes','setReasoning','source','conversationCreated','get','_injectShortcuts','interactionStarted','getDefault','has','params','setModel','forEach','ai-chat-shortcuts-ai-tabs-not-found','892272tpyaSh','TRANSLATE','review','fire','getModel','AIChatController','_switchTab','setWebSearch','listenTo','_validateShortcuts','AIChat','setPromptInputValue','context','_runTranslateShortcut','7947380uqsPLD','render','_aiChatUI','chat-shortcuts','plugins','36MzqSLU','config','_removeShortcuts','string','reviewMode','find','_executeShortcut','label','REVIEW','15981530TJoXsk','CHAT','values','AIChatShortcuts','chatModels','140810ndsmtX','ai-chat-shortcuts-invalid-config','addCurrentDocumentToChatContext','translate','view','pluginName','_shortcuts','_runChatShortcut','_runReviewShortcut','isPremiumPlugin','focusPromptInput','isOfficialPlugin','activeConversation'];_0x3167=function(){return _0x154610;};return _0x3167();}import{CKEditorError as _0x482675}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x39467a(0x13d);export var AIChatShortcutType;!function(_0x5924bc){const _0x3a2a21=_0x39467a;_0x5924bc[_0x3a2a21(0x149)]=_0x3a2a21(0x110),_0x5924bc[_0x3a2a21(0x147)]=_0x3a2a21(0x12e),_0x5924bc[_0x3a2a21(0x12d)]=_0x3a2a21(0x150);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x157dd5{[_0x39467a(0x153)];[_0x39467a(0x119)];[_0x39467a(0x13c)];static get[_0x39467a(0x10e)](){return[_0x1e35cf];}static get[_0x39467a(0x152)](){const _0x3e7228=_0x39467a;return _0x3e7228(0x14b);}static get[_0x39467a(0xfc)](){return!0x0;}static get[_0x39467a(0x156)](){return!0x0;}[_0x39467a(0x112)](){const _0x11f816=_0x39467a;this[_0x11f816(0x13c)]=this[_0x11f816(0x138)][_0x11f816(0x13e)][_0x11f816(0x123)](_0x1e35cf),this[_0x11f816(0x153)]=this[_0x11f816(0x138)][_0x11f816(0x140)][_0x11f816(0x123)](_0x11f816(0x10d))??[];const _0x39fbf8=this[_0x11f816(0x138)][_0x11f816(0x13e)][_0x11f816(0x123)](_0x11f816(0x131));this[_0x11f816(0x153)][_0x11f816(0x105)]&&(this[_0x11f816(0x135)](),this[_0x11f816(0x13c)]['on'](_0x11f816(0x122),()=>{const _0x88a4e4=_0x11f816;_0x39fbf8[_0x88a4e4(0xfd)][_0x88a4e4(0x106)]||this[_0x88a4e4(0x124)]();}),this[_0x11f816(0x134)](_0x39fbf8,_0x11f816(0x125),()=>{const _0x2a74e3=_0x11f816;this[_0x2a74e3(0x141)]();}));}[_0x39467a(0x135)](){const _0x1ad2f8=_0x39467a,_0x47461f=Object[_0x1ad2f8(0x14a)](AIChatShortcutType);this[_0x1ad2f8(0x153)][_0x1ad2f8(0x12a)](_0x574f6f=>{const _0x47f2ac=_0x1ad2f8;let _0x1e9e81=!0x0;if(_0x574f6f['id']&&_0x574f6f[_0x47f2ac(0x146)]&&_0x47461f[_0x47f2ac(0x11f)](_0x574f6f[_0x47f2ac(0x116)])?_0x47f2ac(0x110)===_0x574f6f[_0x47f2ac(0x116)]&&(_0x1e9e81=_0x47f2ac(0x142)==typeof _0x574f6f[_0x47f2ac(0x109)]):_0x1e9e81=!0x1,!_0x1e9e81)throw new _0x482675(_0x47f2ac(0x14e),this[_0x47f2ac(0x138)],{'shortcut':_0x574f6f});});}[_0x39467a(0x124)](){const _0x2a2451=_0x39467a,_0x3370d1=this[_0x2a2451(0x138)][_0x2a2451(0x13e)][_0x2a2451(0x123)](_0x1e35cf);this[_0x2a2451(0x119)]=new _0x156870(this[_0x2a2451(0x138)][_0x2a2451(0x101)],this[_0x2a2451(0x153)]),this[_0x2a2451(0x119)][_0x2a2451(0x13b)](),_0x3370d1[_0x2a2451(0xff)](this[_0x2a2451(0x119)][_0x2a2451(0x107)],Ut),this[_0x2a2451(0x119)]['on'](_0x2a2451(0x108),_0x16cabd=>{const _0xf74a45=_0x2a2451,_0x43ed7e=_0x16cabd[_0xf74a45(0x121)]['id'];this[_0xf74a45(0x145)](_0x43ed7e);});}[_0x39467a(0x141)](){const _0x54d97f=_0x39467a,_0x1098ce=this[_0x54d97f(0x138)][_0x54d97f(0x13e)][_0x54d97f(0x123)](_0x1e35cf);_0x1098ce[_0x54d97f(0x11b)](Ut)&&_0x1098ce[_0x54d97f(0x10a)](Ut),this[_0x54d97f(0x119)]?.[_0x54d97f(0x111)]();}[_0x39467a(0x145)](_0x133e0c){const _0xe35155=_0x39467a,_0xba11b1=this[_0xe35155(0x153)][_0xe35155(0x144)](_0x3ea401=>_0x3ea401['id']===_0x133e0c),_0x318627=_0xba11b1[_0xe35155(0x116)];_0xe35155(0x110)===_0x318627?this[_0xe35155(0x154)](_0xba11b1):_0xe35155(0x12e)===_0x318627?_0xba11b1[_0xe35155(0x11c)]?this[_0xe35155(0x155)](_0xba11b1):this[_0xe35155(0x132)](_0xe35155(0x143)):_0xe35155(0x150)===_0x318627&&(_0xba11b1[_0xe35155(0x100)]?this[_0xe35155(0x139)](_0xba11b1):this[_0xe35155(0x132)](_0xe35155(0x150)));}[_0x39467a(0x132)](_0x30f27d){const _0x3fefc=_0x39467a;if(!this[_0x3fefc(0x138)][_0x3fefc(0x13e)][_0x3fefc(0x127)](_0x3fefc(0x117)))throw new _0x482675(_0x3fefc(0x12b),this[_0x3fefc(0x138)],{'tabName':_0x30f27d});this[_0x3fefc(0x138)][_0x3fefc(0x13e)][_0x3fefc(0x123)](_0x3fefc(0x117))[_0x3fefc(0x151)][_0x3fefc(0x113)](_0x30f27d);}async[_0x39467a(0x154)]({prompt:_0x3035a8,draftMode:_0x29c639,useWebSearch:_0x4213e9=!0x1,useReasoning:_0xc99517=!0x1,model:_0xe10cb6}){const _0x4a8af8=_0x39467a,_0x2933fd=this[_0x4a8af8(0x138)][_0x4a8af8(0x13e)][_0x4a8af8(0x123)](_0x4a8af8(0x136)),_0x3f6b3a=this[_0x4a8af8(0x138)][_0x4a8af8(0x13e)][_0x4a8af8(0x123)](_0x4a8af8(0x131)),_0x36df6d=_0x3f6b3a[_0x4a8af8(0xfd)];let _0x3c83c2;_0x3c83c2=_0xe10cb6?await _0x36df6d[_0x4a8af8(0x14c)][_0x4a8af8(0x130)](_0xe10cb6):await _0x36df6d[_0x4a8af8(0x14c)][_0x4a8af8(0x126)](),_0x3c83c2&&await _0x36df6d[_0x4a8af8(0x129)](_0x3c83c2),_0x36df6d[_0x4a8af8(0x133)](_0x4213e9),_0x36df6d[_0x4a8af8(0x120)](_0xc99517),_0x3f6b3a[_0x4a8af8(0x14f)](),_0x29c639?(this[_0x4a8af8(0x13c)][_0x4a8af8(0x137)](_0x3035a8),this[_0x4a8af8(0x13c)][_0x4a8af8(0xfb)](!0x0)):_0x2933fd[_0x4a8af8(0x118)]({'message':_0x3035a8});}[_0x39467a(0x155)]({check:_0x2e99b8,model:_0x5899fe,prompt:_0x4d30cb,params:_0x2a8f6c}){const _0x17823a=_0x39467a;if(!this[_0x17823a(0x138)][_0x17823a(0x13e)][_0x17823a(0x127)](_0x17823a(0x103)))throw new _0x482675(_0x17823a(0x10f),this[_0x17823a(0x138)]);this[_0x17823a(0x132)](_0x17823a(0x143));const _0x446bcf={'id':_0x2e99b8,'isCustom':_0x17823a(0x104)===_0x2e99b8};_0x5899fe&&_0x4d30cb&&(_0x446bcf[_0x17823a(0x11a)]={'model':_0x5899fe,'prompt':_0x4d30cb}),_0x2a8f6c&&(_0x446bcf[_0x17823a(0x128)]=_0x2a8f6c),this[_0x17823a(0x138)][_0x17823a(0x13e)][_0x17823a(0x123)](_0x17823a(0x103))[_0x17823a(0x12f)](_0x17823a(0x102),_0x446bcf);}[_0x39467a(0x139)]({language:_0x3c848c}){const _0x108a4c=_0x39467a;if(!this[_0x108a4c(0x138)][_0x108a4c(0x13e)][_0x108a4c(0x127)](_0x108a4c(0x115)))throw new _0x482675(_0x108a4c(0xfe),this[_0x108a4c(0x138)]);this[_0x108a4c(0x132)](_0x108a4c(0x150)),this[_0x108a4c(0x138)][_0x108a4c(0x13e)][_0x108a4c(0x123)](_0x108a4c(0x115))[_0x108a4c(0x12f)](_0x108a4c(0x102),{'id':_0x3c848c,'args':{'language':_0x3c848c}});}}
23
+ const _0x58a2ec=_0x3a10;(function(_0x2e624f,_0x65a047){const _0x54885c=_0x3a10,_0x3c2ef1=_0x2e624f();while(!![]){try{const _0x594826=-parseInt(_0x54885c(0x1f3))/0x1+parseInt(_0x54885c(0x1e3))/0x2*(parseInt(_0x54885c(0x22c))/0x3)+-parseInt(_0x54885c(0x22b))/0x4+-parseInt(_0x54885c(0x238))/0x5+parseInt(_0x54885c(0x200))/0x6*(parseInt(_0x54885c(0x20c))/0x7)+-parseInt(_0x54885c(0x226))/0x8+parseInt(_0x54885c(0x1f8))/0x9*(parseInt(_0x54885c(0x222))/0xa);if(_0x594826===_0x65a047)break;else _0x3c2ef1['push'](_0x3c2ef1['shift']());}catch(_0x531cca){_0x3c2ef1['push'](_0x3c2ef1['shift']());}}}(_0x1a37,0x53325));import{AIChatUI as _0x55fde8}from'../aichat/aichatui.js';import{ContextPlugin as _0x4c7054}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x4e6ee5}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x130388}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x58a2ec(0x220);function _0x1a37(){const _0x15e3bf=['CHAT','string','focusPromptInput','_shortcutsView','execute','args','26803fWePDi','_executeShortcut','AIChatController','interactionStarted','get','setPromptInputValue','values','setWebSearch','locale','config','_runReviewShortcut','context','AIReviewModeUI','AIChat','addFeedItemCustomElement','ai-chat-shortcuts-invalid-config','activeConversation','ai-chat-shortcuts-ai-tabs-not-found','pluginName','type','chat-shortcuts','_switchTab','237940BOHFqo','_runChatShortcut','_validateShortcuts','listenTo','2093216QNrCvH','activateTab','params','requires','isFromHistory','1108552wjUVBn','800715tORHug','view','removeFeedItem','setReasoning','ai-chat-shortcuts-translate-not-found','ai-chat-shortcuts-review-mode-not-found','getDefault','_aiChatUI','plugins','prompt','hasFeedItem','_runTranslateShortcut','667605ZbFWat','init','chat','review','AITranslateUI','setModel','destroy','4aswlTx','has','REVIEW','length','_shortcuts','runReviewCheck','fire','custom','_removeShortcuts','render','includes','source','conversationCreated','addCurrentDocumentToChatContext','check','reviewMode','354343bmyKUg','getModel','chatModels','element','sendMessage','198XDpBNr','_injectShortcuts','AITabs','translate','AIChatShortcuts','TRANSLATE','ai.chat.shortcuts','forEach','486caNVhc','find','language','isOfficialPlugin','isPremiumPlugin','label'];_0x1a37=function(){return _0x15e3bf;};return _0x1a37();}export var AIChatShortcutType;!function(_0x4b816d){const _0x5be6a0=_0x58a2ec;_0x4b816d[_0x5be6a0(0x206)]=_0x5be6a0(0x23a),_0x4b816d[_0x5be6a0(0x1e5)]=_0x5be6a0(0x23b),_0x4b816d[_0x5be6a0(0x1fd)]=_0x5be6a0(0x1fb);}(AIChatShortcutType||(AIChatShortcutType={}));function _0x3a10(_0x56a587,_0x2bea59){const _0x1a3702=_0x1a37();return _0x3a10=function(_0x3a10d9,_0x4ccf0b){_0x3a10d9=_0x3a10d9-0x1e1;let _0x4ac1a0=_0x1a3702[_0x3a10d9];return _0x4ac1a0;},_0x3a10(_0x56a587,_0x2bea59);}export class AIChatShortcuts extends _0x4c7054{[_0x58a2ec(0x1e7)];[_0x58a2ec(0x209)];[_0x58a2ec(0x233)];static get[_0x58a2ec(0x229)](){return[_0x55fde8];}static get[_0x58a2ec(0x21e)](){const _0x212c43=_0x58a2ec;return _0x212c43(0x1fc);}static get[_0x58a2ec(0x203)](){return!0x0;}static get[_0x58a2ec(0x204)](){return!0x0;}[_0x58a2ec(0x239)](){const _0x467821=_0x58a2ec;this[_0x467821(0x233)]=this[_0x467821(0x217)][_0x467821(0x234)][_0x467821(0x210)](_0x55fde8),this[_0x467821(0x1e7)]=this[_0x467821(0x217)][_0x467821(0x215)][_0x467821(0x210)](_0x467821(0x1fe))??[];const _0x568b74=this[_0x467821(0x217)][_0x467821(0x234)][_0x467821(0x210)](_0x467821(0x20e));this[_0x467821(0x1e7)][_0x467821(0x1e6)]&&(this[_0x467821(0x224)](),this[_0x467821(0x233)]['on'](_0x467821(0x1ef),()=>{const _0x7ec301=_0x467821;_0x568b74[_0x7ec301(0x21c)][_0x7ec301(0x22a)]||this[_0x7ec301(0x1f9)]();}),this[_0x467821(0x225)](_0x568b74,_0x467821(0x20f),()=>{const _0x5f29d0=_0x467821;this[_0x5f29d0(0x1eb)]();}));}[_0x58a2ec(0x224)](){const _0x24d7fb=_0x58a2ec,_0x5e93ed=Object[_0x24d7fb(0x212)](AIChatShortcutType);this[_0x24d7fb(0x1e7)][_0x24d7fb(0x1ff)](_0x2c105a=>{const _0x3748ef=_0x24d7fb;let _0x4e8b27=!0x0;if(_0x2c105a['id']&&_0x2c105a[_0x3748ef(0x205)]&&_0x5e93ed[_0x3748ef(0x1ed)](_0x2c105a[_0x3748ef(0x21f)])?_0x3748ef(0x23a)===_0x2c105a[_0x3748ef(0x21f)]&&(_0x4e8b27=_0x3748ef(0x207)==typeof _0x2c105a[_0x3748ef(0x235)]):_0x4e8b27=!0x1,!_0x4e8b27)throw new _0x130388(_0x3748ef(0x21b),this[_0x3748ef(0x217)],{'shortcut':_0x2c105a});});}[_0x58a2ec(0x1f9)](){const _0x449c16=_0x58a2ec,_0x4f09b=this[_0x449c16(0x217)][_0x449c16(0x234)][_0x449c16(0x210)](_0x55fde8);this[_0x449c16(0x209)]=new _0x4e6ee5(this[_0x449c16(0x217)][_0x449c16(0x214)],this[_0x449c16(0x1e7)]),this[_0x449c16(0x209)][_0x449c16(0x1ec)](),_0x4f09b[_0x449c16(0x21a)](this[_0x449c16(0x209)][_0x449c16(0x1f6)],Ut),this[_0x449c16(0x209)]['on'](_0x449c16(0x20a),_0x3dffab=>{const _0x38664f=_0x449c16,_0x589712=_0x3dffab[_0x38664f(0x1ee)]['id'];this[_0x38664f(0x20d)](_0x589712);});}[_0x58a2ec(0x1eb)](){const _0x185677=_0x58a2ec,_0x598695=this[_0x185677(0x217)][_0x185677(0x234)][_0x185677(0x210)](_0x55fde8);_0x598695[_0x185677(0x236)](Ut)&&_0x598695[_0x185677(0x22e)](Ut),this[_0x185677(0x209)]?.[_0x185677(0x1e2)]();}[_0x58a2ec(0x20d)](_0xc31aeb){const _0x3fc58c=_0x58a2ec,_0x2d045a=this[_0x3fc58c(0x1e7)][_0x3fc58c(0x201)](_0x3d6575=>_0x3d6575['id']===_0xc31aeb),_0x58b3c0=_0x2d045a[_0x3fc58c(0x21f)];_0x3fc58c(0x23a)===_0x58b3c0?this[_0x3fc58c(0x223)](_0x2d045a):_0x3fc58c(0x23b)===_0x58b3c0?_0x2d045a[_0x3fc58c(0x1f1)]?this[_0x3fc58c(0x216)](_0x2d045a):this[_0x3fc58c(0x221)](_0x3fc58c(0x1f2)):_0x3fc58c(0x1fb)===_0x58b3c0&&(_0x2d045a[_0x3fc58c(0x202)]?this[_0x3fc58c(0x237)](_0x2d045a):this[_0x3fc58c(0x221)](_0x3fc58c(0x1fb)));}[_0x58a2ec(0x221)](_0xacc58a){const _0x147b52=_0x58a2ec;if(!this[_0x147b52(0x217)][_0x147b52(0x234)][_0x147b52(0x1e4)](_0x147b52(0x1fa)))throw new _0x130388(_0x147b52(0x21d),this[_0x147b52(0x217)],{'tabName':_0xacc58a});this[_0x147b52(0x217)][_0x147b52(0x234)][_0x147b52(0x210)](_0x147b52(0x1fa))[_0x147b52(0x22d)][_0x147b52(0x227)](_0xacc58a);}async[_0x58a2ec(0x223)]({prompt:_0x5badda,draftMode:_0x3c1442,useWebSearch:_0x3e3559=!0x1,useReasoning:_0x128474=!0x1,model:_0x45bf0b}){const _0x46b471=_0x58a2ec,_0x914df=this[_0x46b471(0x217)][_0x46b471(0x234)][_0x46b471(0x210)](_0x46b471(0x219)),_0x57176b=this[_0x46b471(0x217)][_0x46b471(0x234)][_0x46b471(0x210)](_0x46b471(0x20e)),_0x3eaea6=_0x57176b[_0x46b471(0x21c)];let _0x49ab97;_0x49ab97=_0x45bf0b?await _0x3eaea6[_0x46b471(0x1f5)][_0x46b471(0x1f4)](_0x45bf0b):await _0x3eaea6[_0x46b471(0x1f5)][_0x46b471(0x232)](),_0x49ab97&&await _0x3eaea6[_0x46b471(0x1e1)](_0x49ab97),_0x3eaea6[_0x46b471(0x213)](_0x3e3559),_0x3eaea6[_0x46b471(0x22f)](_0x128474),_0x57176b[_0x46b471(0x1f0)](),_0x3c1442?(this[_0x46b471(0x233)][_0x46b471(0x211)](_0x5badda),this[_0x46b471(0x233)][_0x46b471(0x208)](!0x0)):_0x914df[_0x46b471(0x1f7)]({'message':_0x5badda});}[_0x58a2ec(0x216)]({check:_0x670075,model:_0x5b79d2,prompt:_0x693198,params:_0x5bc65a}){const _0x22135c=_0x58a2ec;if(!this[_0x22135c(0x217)][_0x22135c(0x234)][_0x22135c(0x1e4)](_0x22135c(0x218)))throw new _0x130388(_0x22135c(0x231),this[_0x22135c(0x217)]);this[_0x22135c(0x221)](_0x22135c(0x1f2));const _0x49fb04={'id':_0x670075,'isCustom':_0x22135c(0x1ea)===_0x670075};_0x5b79d2&&_0x693198&&(_0x49fb04[_0x22135c(0x20b)]={'model':_0x5b79d2,'prompt':_0x693198}),_0x5bc65a&&(_0x49fb04[_0x22135c(0x228)]=_0x5bc65a),this[_0x22135c(0x217)][_0x22135c(0x234)][_0x22135c(0x210)](_0x22135c(0x218))[_0x22135c(0x1e9)](_0x22135c(0x1e8),_0x49fb04);}[_0x58a2ec(0x237)]({language:_0xfe5a24}){const _0x209a12=_0x58a2ec;if(!this[_0x209a12(0x217)][_0x209a12(0x234)][_0x209a12(0x1e4)](_0x209a12(0x23c)))throw new _0x130388(_0x209a12(0x230),this[_0x209a12(0x217)]);this[_0x209a12(0x221)](_0x209a12(0x1fb)),this[_0x209a12(0x217)][_0x209a12(0x234)][_0x209a12(0x210)](_0x209a12(0x23c))[_0x209a12(0x1e9)](_0x209a12(0x1e8),{'id':_0xfe5a24,'args':{'language':_0xfe5a24}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x1818bf,_0x4412dc){const _0x45f587=_0x1854,_0x4f333b=_0x1818bf();while(!![]){try{const _0x428e51=parseInt(_0x45f587(0x165))/0x1*(parseInt(_0x45f587(0x164))/0x2)+-parseInt(_0x45f587(0x172))/0x3*(-parseInt(_0x45f587(0x16a))/0x4)+-parseInt(_0x45f587(0x163))/0x5*(parseInt(_0x45f587(0x16f))/0x6)+parseInt(_0x45f587(0x166))/0x7*(-parseInt(_0x45f587(0x16b))/0x8)+-parseInt(_0x45f587(0x16c))/0x9*(parseInt(_0x45f587(0x16d))/0xa)+parseInt(_0x45f587(0x175))/0xb+parseInt(_0x45f587(0x170))/0xc;if(_0x428e51===_0x4412dc)break;else _0x4f333b['push'](_0x4f333b['shift']());}catch(_0x332b33){_0x4f333b['push'](_0x4f333b['shift']());}}}(_0x3d5a,0xb738b));function _0x1854(_0xae9d90,_0x2564a9){const _0x3d5add=_0x3d5a();return _0x1854=function(_0x185497,_0x490e7f){_0x185497=_0x185497-0x163;let _0x2be84a=_0x3d5add[_0x185497];return _0x2be84a;},_0x1854(_0xae9d90,_0x2564a9);}import{ButtonView as _0x5e674d}from'ckeditor5/src/ui.js';import{IconAIChat as _0x142db7,IconAIReview as _0x45dbc6,IconAITranslate as _0x13405c}from'@ckeditor/ckeditor5-icons';function _0x3d5a(){const _0x3ef5e1=['716aoUAHL','896iLBida','14XSIZvw','label','chat','set','1041064bAiWhi','4288328nBaVEa','12185496NbiXCm','10giBOVR','icon','36DLNduD','37725732PioLOA','extendTemplate','9DDeLZd','ck-ai-chat-shortcut','review','2881032vdgoHz','translate','1108990fvDaca'];_0x3d5a=function(){return _0x3ef5e1;};return _0x3d5a();}export class AIChatShortcutView extends _0x5e674d{['id'];constructor(_0x2dc315,_0xeccdcb){const _0x1576c2=_0x1854;super(_0x2dc315);const {id:_0x5728c4,type:_0x1a1475,icon:_0x1896a4}=_0xeccdcb;this['id']=_0x5728c4,this[_0x1576c2(0x169)]({'label':_0xeccdcb[_0x1576c2(0x167)],'withText':!0x0,'class':_0x1576c2(0x173)}),this[_0x1576c2(0x171)]({'attributes':{'data-cke-ai-shortcut-id':_0xeccdcb['id']}}),_0x1896a4?this[_0x1576c2(0x16e)]=_0x1896a4:_0x1576c2(0x168)===_0x1a1475?this[_0x1576c2(0x16e)]=_0x142db7:_0x1576c2(0x174)===_0x1a1475?this[_0x1576c2(0x16e)]=_0x45dbc6:_0x1576c2(0x176)===_0x1a1475&&(this[_0x1576c2(0x16e)]=_0x13405c);}}
23
+ (function(_0x297b57,_0x48f64e){const _0x37cd1e=_0x1c8b,_0xe396f3=_0x297b57();while(!![]){try{const _0x27a3f6=-parseInt(_0x37cd1e(0x131))/0x1*(parseInt(_0x37cd1e(0x140))/0x2)+parseInt(_0x37cd1e(0x135))/0x3*(-parseInt(_0x37cd1e(0x133))/0x4)+-parseInt(_0x37cd1e(0x137))/0x5+-parseInt(_0x37cd1e(0x13f))/0x6*(parseInt(_0x37cd1e(0x141))/0x7)+parseInt(_0x37cd1e(0x139))/0x8*(-parseInt(_0x37cd1e(0x13e))/0x9)+parseInt(_0x37cd1e(0x142))/0xa*(parseInt(_0x37cd1e(0x132))/0xb)+-parseInt(_0x37cd1e(0x13a))/0xc*(-parseInt(_0x37cd1e(0x136))/0xd);if(_0x27a3f6===_0x48f64e)break;else _0xe396f3['push'](_0xe396f3['shift']());}catch(_0x151b6d){_0xe396f3['push'](_0xe396f3['shift']());}}}(_0x164a,0x2e72d));function _0x1c8b(_0x54c3b8,_0x468033){const _0x164aa5=_0x164a();return _0x1c8b=function(_0x1c8b7c,_0x5d2546){_0x1c8b7c=_0x1c8b7c-0x12f;let _0xb095a1=_0x164aa5[_0x1c8b7c];return _0xb095a1;},_0x1c8b(_0x54c3b8,_0x468033);}import{ButtonView as _0x274692}from'ckeditor5/src/ui.js';import{IconAIChat as _0x4b067a,IconAIReview as _0x5591ae,IconAITranslate as _0x2edc9b}from'@ckeditor/ckeditor5-icons';function _0x164a(){const _0x2122c0=['translate','589wytNoV','451dVZnRn','1146436PDpvYC','ck-ai-chat-shortcut','3sXehZo','7363109sDLqrq','980190GWOxou','set','2938664xIcDHY','24BWLrBA','review','extendTemplate','label','9vqmFAA','6NcoCnk','182KUMcGc','636881HKvUAN','12690mphtOV','chat','icon'];_0x164a=function(){return _0x2122c0;};return _0x164a();}export class AIChatShortcutView extends _0x274692{['id'];constructor(_0x3bf00d,_0x45e953){const _0x33feda=_0x1c8b;super(_0x3bf00d);const {id:_0x3d9535,type:_0x6493ab,icon:_0x1e0803}=_0x45e953;this['id']=_0x3d9535,this[_0x33feda(0x138)]({'label':_0x45e953[_0x33feda(0x13d)],'withText':!0x0,'class':_0x33feda(0x134)}),this[_0x33feda(0x13c)]({'attributes':{'data-cke-ai-shortcut-id':_0x45e953['id']}}),_0x1e0803?this[_0x33feda(0x12f)]=_0x1e0803:_0x33feda(0x143)===_0x6493ab?this[_0x33feda(0x12f)]=_0x4b067a:_0x33feda(0x13b)===_0x6493ab?this[_0x33feda(0x12f)]=_0x5591ae:_0x33feda(0x130)===_0x6493ab&&(this[_0x33feda(0x12f)]=_0x2edc9b);}}