@ckeditor/ckeditor5-ai 47.4.0-alpha.2 → 47.4.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) 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/model/aiactionsreply.js +1 -1
  5. package/src/aiassistant/aiassistantediting.js +1 -1
  6. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  7. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  8. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  9. package/src/aiassistant/ui/form/aiformview.js +1 -1
  10. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  11. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  12. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  13. package/src/aichat/aichat.js +1 -1
  14. package/src/aichat/aichatcontroller.js +1 -1
  15. package/src/aichat/aichatui.js +1 -1
  16. package/src/aichat/model/aichatcontext.js +1 -1
  17. package/src/aichat/model/aichatconversation.js +1 -1
  18. package/src/aichat/model/aichatinteraction.js +1 -1
  19. package/src/aichat/ui/aichatfeedview.js +1 -1
  20. package/src/aichat/ui/aichatheaderview.js +1 -1
  21. package/src/aichat/ui/aichatview.js +1 -1
  22. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  23. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  24. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  25. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  26. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  27. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  28. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  29. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  30. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  31. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  32. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  33. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  34. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  35. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  36. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  37. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  38. package/src/aichathistory/aichathistory.js +1 -1
  39. package/src/aichathistory/aichathistorycontroller.js +1 -1
  40. package/src/aichathistory/aichathistoryui.js +1 -1
  41. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  42. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  43. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  44. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  45. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  46. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  47. package/src/aicore/aiediting.js +1 -1
  48. package/src/aicore/model/aiinteraction.js +1 -1
  49. package/src/aicore/model/aimodels.js +1 -1
  50. package/src/aicore/model/aireply.js +1 -1
  51. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  52. package/src/aicore/pipeline/airesponseparser.js +2 -2
  53. package/src/aicore/ui/aispinner.js +1 -1
  54. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  55. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  56. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  57. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  58. package/src/aicore/utils/documentposition.js +1 -1
  59. package/src/aicore/utils/documentrange.js +1 -1
  60. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  61. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  62. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  63. package/src/aicore/utils/htmlparser.js +1 -1
  64. package/src/aicore/utils/htmlstreamer.js +1 -1
  65. package/src/aicore/utils/scrollmanager.js +1 -1
  66. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  67. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  68. package/src/aiquickactions/aiquickactionsui.js +1 -1
  69. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  70. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  71. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  72. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  73. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  74. package/src/aireviewmode/aireviewmodeui.js +1 -1
  75. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  76. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  77. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  78. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  79. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  80. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  81. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  82. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  83. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  84. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  85. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  86. package/src/aitabs/aitabs.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8e8867=_0x5a0a;(function(_0x226167,_0x387a19){const _0x2217f7=_0x5a0a,_0x4f18a7=_0x226167();while(!![]){try{const _0x1aa14b=-parseInt(_0x2217f7(0x1a4))/0x1+parseInt(_0x2217f7(0x198))/0x2*(-parseInt(_0x2217f7(0x176))/0x3)+-parseInt(_0x2217f7(0x19f))/0x4*(-parseInt(_0x2217f7(0x193))/0x5)+-parseInt(_0x2217f7(0x192))/0x6+parseInt(_0x2217f7(0x188))/0x7+parseInt(_0x2217f7(0x17f))/0x8+parseInt(_0x2217f7(0x1b4))/0x9;if(_0x1aa14b===_0x387a19)break;else _0x4f18a7['push'](_0x4f18a7['shift']());}catch(_0x43dc85){_0x4f18a7['push'](_0x4f18a7['shift']());}}}(_0xf038,0x6754c));function _0x5a0a(_0x4aa1d4,_0x3840f1){const _0xf038ae=_0xf038();return _0x5a0a=function(_0x5a0ae5,_0x52d48a){_0x5a0ae5=_0x5a0ae5-0x175;let _0x32cf66=_0xf038ae[_0x5a0ae5];return _0x32cf66;},_0x5a0a(_0x4aa1d4,_0x3840f1);}import{IconSubmit as _0x19b29d}from'ckeditor5/src/icons.js';import{ButtonView as _0x4e7777,AutocompleteView as _0xa95117,createLabeledTextarea as _0x4befaf}from'ckeditor5/src/ui.js';import{global as _0x27926d,isVisible as _0x2ba13f,Rect as _0x563340,ResizeObserver as _0xcc85bd}from'ckeditor5/src/utils.js';import{getTranslation as _0x443f40}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0xfcbf1a}from'./aichatpromptsuggestionslistview.js';function _0xf038(){const _0x5efb2e=['5864008dNRkks','_createSubmitButton','requestAnimationFrame','fieldView','maxRows','px\x20-\x20var(--ck-spacing-tiny))','bind','setPlaceholderText','ck-ai-chat__prompt-submit-button','4520173EdNMOX','value','set','isEnabled','update','submit','locale','rtl','excludeScrollbarsAndBorders','setIsUploadInProgress','1640760brGghJ','60zrbZMP','isUploadInProgress','uiLanguageDirection','fieldWrapperChildren','add','7896WWuZPh','MAX_ROWS','hasError','execute','width','window','render','520cOwUNb','AI_CHAT_PROMPT_EMPTY_ERROR','placeholder','element','errorText','777163nxgliX','MIN_ROWS','minRows','left','_setUpAddContextButtonPositioning','reset','queryView','extendTemplate','isEmpty','sendUserMessage','ck-ai-chat__prompt-input','trim','calc(','keystrokes','submitButtonView','destroy','913167qzIymr','target','6wVrIWN','focusableChildren','style','enter','right','_queryViewResizeObserver','AI_CHAT_LABEL_SUBMIT','fire','_addContextButtonView'];_0xf038=function(){return _0x5efb2e;};return _0xf038();}import{escape as _0x1349ac}from'es-toolkit/compat';export class AIChatPromptInputView extends _0xa95117{[_0x8e8867(0x1b2)];static [_0x8e8867(0x1a5)]=0x1;static [_0x8e8867(0x199)]=0xc;[_0x8e8867(0x17e)];[_0x8e8867(0x17b)];constructor(_0x26e2d2,_0x107b59){const _0xc42973=_0x8e8867;super(_0x26e2d2,{'queryView':{'label':'','creator':_0x4befaf,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0xfcbf1a(_0x26e2d2),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0xc42973(0x18a)](_0xc42973(0x1ac),!0x0),this[_0xc42973(0x18a)](_0xc42973(0x194),!0x1),this[_0xc42973(0x17e)]=_0x107b59,this[_0xc42973(0x17b)]=null,this[_0xc42973(0x1aa)][_0xc42973(0x182)][_0xc42973(0x1a6)]=AIChatPromptInputView[_0xc42973(0x1a5)],this[_0xc42973(0x1aa)][_0xc42973(0x182)][_0xc42973(0x183)]=AIChatPromptInputView[_0xc42973(0x199)],this[_0xc42973(0x1aa)][_0xc42973(0x196)][_0xc42973(0x197)](this[_0xc42973(0x17e)]),this[_0xc42973(0x1a8)](),this[_0xc42973(0x1ab)]({'attributes':{'class':['ck',_0xc42973(0x1ae)]}}),this[_0xc42973(0x1b2)]=this[_0xc42973(0x180)](),this[_0xc42973(0x1b2)][_0xc42973(0x185)](_0xc42973(0x18b))['to'](this,_0xc42973(0x1ac),this,_0xc42973(0x194),(_0x844f26,_0x1788b7)=>!_0x844f26&&!_0x1788b7),this[_0xc42973(0x177)][_0xc42973(0x197)](this[_0xc42973(0x1b2)]);}[_0x8e8867(0x19e)](){const _0x26aaa9=_0x8e8867;super[_0x26aaa9(0x19e)](),this[_0x26aaa9(0x1aa)][_0x26aaa9(0x196)][_0x26aaa9(0x197)](this[_0x26aaa9(0x1b2)]),this[_0x26aaa9(0x1b1)][_0x26aaa9(0x18a)](_0x26aaa9(0x179),(_0x1b7554,_0x57e905)=>{const _0x57e8b2=_0x26aaa9;this[_0x57e8b2(0x194)]||this[_0x57e8b2(0x1ac)]||_0x1b7554[_0x57e8b2(0x175)]==this[_0x57e8b2(0x1aa)][_0x57e8b2(0x182)][_0x57e8b2(0x1a2)]&&(this[_0x57e8b2(0x18d)](),_0x57e905());}),this[_0x26aaa9(0x1aa)][_0x26aaa9(0x182)]['on'](_0x26aaa9(0x18c),()=>{const _0x2d9b4e=_0x26aaa9;this[_0x2d9b4e(0x1ac)]=''===this[_0x2d9b4e(0x1aa)][_0x2d9b4e(0x182)][_0x2d9b4e(0x1a2)][_0x2d9b4e(0x189)]?.[_0x2d9b4e(0x1af)]();});}[_0x8e8867(0x1b3)](){const _0x3fd134=_0x8e8867;super[_0x3fd134(0x1b3)](),this[_0x3fd134(0x17b)]&&this[_0x3fd134(0x17b)][_0x3fd134(0x1b3)]();}[_0x8e8867(0x18d)](){const _0x5cd299=_0x8e8867,_0x1fb9b4=this[_0x5cd299(0x1aa)][_0x5cd299(0x182)][_0x5cd299(0x1a2)][_0x5cd299(0x189)]?.[_0x5cd299(0x1af)]();if(!_0x1fb9b4)return this[_0x5cd299(0x1aa)][_0x5cd299(0x1a3)]=_0x443f40(this[_0x5cd299(0x18e)],_0x5cd299(0x1a0)),void(this[_0x5cd299(0x1aa)][_0x5cd299(0x182)][_0x5cd299(0x19a)]=!0x0);this[_0x5cd299(0x1aa)][_0x5cd299(0x182)][_0x5cd299(0x19a)]=!0x1;const _0x2c34c8=_0x1349ac(_0x1fb9b4);this[_0x5cd299(0x17d)](_0x5cd299(0x1ad),_0x2c34c8),this[_0x5cd299(0x1aa)][_0x5cd299(0x182)][_0x5cd299(0x1a9)]();}[_0x8e8867(0x186)](_0x221f2b){const _0x16480f=_0x8e8867;this[_0x16480f(0x1aa)][_0x16480f(0x182)][_0x16480f(0x18a)](_0x16480f(0x1a1),_0x221f2b);}[_0x8e8867(0x180)](){const _0x55f3e3=_0x8e8867,_0x4d73ba=new _0x4e7777(this[_0x55f3e3(0x18e)]);return _0x4d73ba[_0x55f3e3(0x18a)]({'icon':_0x19b29d,'label':_0x443f40(this[_0x55f3e3(0x18e)],_0x55f3e3(0x17c)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x55f3e3(0x187),'isEnabled':!0x1}),_0x4d73ba['on'](_0x55f3e3(0x19b),()=>{const _0x483a83=_0x55f3e3;this[_0x483a83(0x18d)]();}),_0x4d73ba;}[_0x8e8867(0x191)](_0x410dba){const _0x179867=_0x8e8867;this[_0x179867(0x194)]=_0x410dba;}[_0x8e8867(0x1a8)](){const _0x5c8965=_0x8e8867,_0x12aee3=this[_0x5c8965(0x18e)],_0x4cc246=()=>{const _0x348a46=_0x5c8965;_0x27926d[_0x348a46(0x19d)][_0x348a46(0x181)](()=>{const _0x590185=_0x348a46;if(_0x2ba13f(this[_0x590185(0x1a2)])){const _0xc49d57=new _0x563340(this[_0x590185(0x1aa)][_0x590185(0x182)][_0x590185(0x1a2)]),_0xa48613=new _0x563340(this[_0x590185(0x17e)][_0x590185(0x1a2)]),_0x37aa0f=_0xc49d57[_0x590185(0x19c)],_0x4cf52d=_0x590185(0x18f)===_0x12aee3[_0x590185(0x195)]?_0x590185(0x17a):_0x590185(0x1a7);_0xc49d57[_0x590185(0x190)]();const _0x4d6274=_0x37aa0f-_0xc49d57[_0x590185(0x19c)]+0x1;this[_0x590185(0x17e)][_0x590185(0x1a2)][_0x590185(0x178)][_0x4cf52d]=_0x590185(0x1b0)+(_0x37aa0f-_0xa48613[_0x590185(0x19c)]-_0x4d6274)+_0x590185(0x184);}});};this[_0x5c8965(0x1aa)][_0x5c8965(0x182)]['on'](_0x5c8965(0x18c),_0x4cc246),this['on'](_0x5c8965(0x19e),()=>{const _0x3602f5=_0x5c8965;_0x4cc246(),this[_0x3602f5(0x17b)]=new _0xcc85bd(this[_0x3602f5(0x1aa)][_0x3602f5(0x182)][_0x3602f5(0x1a2)],()=>{_0x4cc246();});});}}
23
+ const _0x29c8a2=_0x18cd;(function(_0x29f4ea,_0x3c39bb){const _0x747b2c=_0x18cd,_0x29a8c7=_0x29f4ea();while(!![]){try{const _0x30fc8e=-parseInt(_0x747b2c(0x12c))/0x1*(-parseInt(_0x747b2c(0x139))/0x2)+parseInt(_0x747b2c(0x132))/0x3+parseInt(_0x747b2c(0x120))/0x4+parseInt(_0x747b2c(0x140))/0x5+parseInt(_0x747b2c(0x113))/0x6+parseInt(_0x747b2c(0x13a))/0x7*(parseInt(_0x747b2c(0x12b))/0x8)+parseInt(_0x747b2c(0x13d))/0x9*(-parseInt(_0x747b2c(0x123))/0xa);if(_0x30fc8e===_0x3c39bb)break;else _0x29a8c7['push'](_0x29a8c7['shift']());}catch(_0x2d20e8){_0x29a8c7['push'](_0x29a8c7['shift']());}}}(_0x4ff3,0xd286d));import{IconSubmit as _0x4dd20c}from'ckeditor5/src/icons.js';import{ButtonView as _0xac7471,AutocompleteView as _0x362bd1,createLabeledTextarea as _0x195b8b}from'ckeditor5/src/ui.js';import{global as _0x421589,isVisible as _0x71a642,Rect as _0x459d62,ResizeObserver as _0x3ca444}from'ckeditor5/src/utils.js';import{getTranslation as _0x24f55f}from'../../../aicore/utils/common-translations.js';function _0x4ff3(){const _0x140cc3=['update','isEnabled','uiLanguageDirection','_addContextButtonView','submit','2838778nseRbs','161QUQbuB','fieldView','focusableChildren','28040094fFugoJ','isEmpty','calc(','2022340LGRijh','minRows','extendTemplate','maxRows','render','AI_CHAT_LABEL_SUBMIT','keystrokes','submitButtonView','MIN_ROWS','style','AI_CHAT_PROMPT_EMPTY_ERROR','window','destroy','enter','setIsUploadInProgress','bind','setPlaceholderText','excludeScrollbarsAndBorders','_createSubmitButton','element','6844590KbvWyF','requestAnimationFrame','placeholder','set','_queryViewResizeObserver','sendUserMessage','right','trim','fire','_setUpAddContextButtonPositioning','execute','rtl','errorText','1609376owFkOX','width','ck-ai-chat__prompt-input','10eMmRyz','value','add','MAX_ROWS','queryView','left','reset','target','155952QkIvnx','1yfTjHg','px\x20-\x20var(--ck-spacing-tiny))','locale','hasError','ck-ai-chat__prompt-submit-button','fieldWrapperChildren','487665eJimnq','isUploadInProgress'];_0x4ff3=function(){return _0x140cc3;};return _0x4ff3();}function _0x18cd(_0x4616ec,_0x2dd9b9){const _0x4ff39f=_0x4ff3();return _0x18cd=function(_0x18cd6e,_0x500afe){_0x18cd6e=_0x18cd6e-0x105;let _0x1a735d=_0x4ff39f[_0x18cd6e];return _0x1a735d;},_0x18cd(_0x4616ec,_0x2dd9b9);}import{AIChatPromptSuggestionsListView as _0x333bb5}from'./aichatpromptsuggestionslistview.js';import{escape as _0x25687d}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x362bd1{[_0x29c8a2(0x106)];static [_0x29c8a2(0x107)]=0x1;static [_0x29c8a2(0x126)]=0xc;[_0x29c8a2(0x137)];[_0x29c8a2(0x117)];constructor(_0x30e488,_0xf75216){const _0x3fac03=_0x29c8a2;super(_0x30e488,{'queryView':{'label':'','creator':_0x195b8b,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x333bb5(_0x30e488),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x3fac03(0x116)](_0x3fac03(0x13e),!0x0),this[_0x3fac03(0x116)](_0x3fac03(0x133),!0x1),this[_0x3fac03(0x137)]=_0xf75216,this[_0x3fac03(0x117)]=null,this[_0x3fac03(0x127)][_0x3fac03(0x13b)][_0x3fac03(0x141)]=AIChatPromptInputView[_0x3fac03(0x107)],this[_0x3fac03(0x127)][_0x3fac03(0x13b)][_0x3fac03(0x143)]=AIChatPromptInputView[_0x3fac03(0x126)],this[_0x3fac03(0x127)][_0x3fac03(0x131)][_0x3fac03(0x125)](this[_0x3fac03(0x137)]),this[_0x3fac03(0x11c)](),this[_0x3fac03(0x142)]({'attributes':{'class':['ck',_0x3fac03(0x122)]}}),this[_0x3fac03(0x106)]=this[_0x3fac03(0x111)](),this[_0x3fac03(0x106)][_0x3fac03(0x10e)](_0x3fac03(0x135))['to'](this,_0x3fac03(0x13e),this,_0x3fac03(0x133),(_0xd1f294,_0x20746d)=>!_0xd1f294&&!_0x20746d),this[_0x3fac03(0x13c)][_0x3fac03(0x125)](this[_0x3fac03(0x106)]);}[_0x29c8a2(0x144)](){const _0x3934c5=_0x29c8a2;super[_0x3934c5(0x144)](),this[_0x3934c5(0x127)][_0x3934c5(0x131)][_0x3934c5(0x125)](this[_0x3934c5(0x106)]),this[_0x3934c5(0x105)][_0x3934c5(0x116)](_0x3934c5(0x10c),(_0x30248a,_0x58de50)=>{const _0x172bab=_0x3934c5;this[_0x172bab(0x133)]||this[_0x172bab(0x13e)]||_0x30248a[_0x172bab(0x12a)]==this[_0x172bab(0x127)][_0x172bab(0x13b)][_0x172bab(0x112)]&&(this[_0x172bab(0x138)](),_0x58de50());}),this[_0x3934c5(0x127)][_0x3934c5(0x13b)]['on'](_0x3934c5(0x134),()=>{const _0x3ec347=_0x3934c5;this[_0x3ec347(0x13e)]=''===this[_0x3ec347(0x127)][_0x3ec347(0x13b)][_0x3ec347(0x112)][_0x3ec347(0x124)]?.[_0x3ec347(0x11a)]();});}[_0x29c8a2(0x10b)](){const _0x403bb7=_0x29c8a2;super[_0x403bb7(0x10b)](),this[_0x403bb7(0x117)]&&this[_0x403bb7(0x117)][_0x403bb7(0x10b)]();}[_0x29c8a2(0x138)](){const _0x2f2ba5=_0x29c8a2,_0x3735dd=this[_0x2f2ba5(0x127)][_0x2f2ba5(0x13b)][_0x2f2ba5(0x112)][_0x2f2ba5(0x124)]?.[_0x2f2ba5(0x11a)]();if(!_0x3735dd)return this[_0x2f2ba5(0x127)][_0x2f2ba5(0x11f)]=_0x24f55f(this[_0x2f2ba5(0x12e)],_0x2f2ba5(0x109)),void(this[_0x2f2ba5(0x127)][_0x2f2ba5(0x13b)][_0x2f2ba5(0x12f)]=!0x0);this[_0x2f2ba5(0x127)][_0x2f2ba5(0x13b)][_0x2f2ba5(0x12f)]=!0x1;const _0x220d47=_0x25687d(_0x3735dd);this[_0x2f2ba5(0x11b)](_0x2f2ba5(0x118),_0x220d47),this[_0x2f2ba5(0x127)][_0x2f2ba5(0x13b)][_0x2f2ba5(0x129)]();}[_0x29c8a2(0x10f)](_0x5ae705){const _0x17511c=_0x29c8a2;this[_0x17511c(0x127)][_0x17511c(0x13b)][_0x17511c(0x116)](_0x17511c(0x115),_0x5ae705);}[_0x29c8a2(0x111)](){const _0x37a215=_0x29c8a2,_0xf6587a=new _0xac7471(this[_0x37a215(0x12e)]);return _0xf6587a[_0x37a215(0x116)]({'icon':_0x4dd20c,'label':_0x24f55f(this[_0x37a215(0x12e)],_0x37a215(0x145)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x37a215(0x130),'isEnabled':!0x1}),_0xf6587a['on'](_0x37a215(0x11d),()=>{const _0x22badf=_0x37a215;this[_0x22badf(0x138)]();}),_0xf6587a;}[_0x29c8a2(0x10d)](_0x25af99){const _0x648640=_0x29c8a2;this[_0x648640(0x133)]=_0x25af99;}[_0x29c8a2(0x11c)](){const _0x4f1ab2=_0x29c8a2,_0x5e0f8b=this[_0x4f1ab2(0x12e)],_0x52e2cb=()=>{const _0x46795=_0x4f1ab2;_0x421589[_0x46795(0x10a)][_0x46795(0x114)](()=>{const _0x2c0880=_0x46795;if(_0x71a642(this[_0x2c0880(0x112)])){const _0x4b07df=new _0x459d62(this[_0x2c0880(0x127)][_0x2c0880(0x13b)][_0x2c0880(0x112)]),_0x3a513f=new _0x459d62(this[_0x2c0880(0x137)][_0x2c0880(0x112)]),_0x20b219=_0x4b07df[_0x2c0880(0x121)],_0x5a0040=_0x2c0880(0x11e)===_0x5e0f8b[_0x2c0880(0x136)]?_0x2c0880(0x119):_0x2c0880(0x128);_0x4b07df[_0x2c0880(0x110)]();const _0x2125f4=_0x20b219-_0x4b07df[_0x2c0880(0x121)]+0x1;this[_0x2c0880(0x137)][_0x2c0880(0x112)][_0x2c0880(0x108)][_0x5a0040]=_0x2c0880(0x13f)+(_0x20b219-_0x3a513f[_0x2c0880(0x121)]-_0x2125f4)+_0x2c0880(0x12d);}});};this[_0x4f1ab2(0x127)][_0x4f1ab2(0x13b)]['on'](_0x4f1ab2(0x134),_0x52e2cb),this['on'](_0x4f1ab2(0x144),()=>{const _0x57ece6=_0x4f1ab2;_0x52e2cb(),this[_0x57ece6(0x117)]=new _0x3ca444(this[_0x57ece6(0x127)][_0x57ece6(0x13b)][_0x57ece6(0x112)],()=>{_0x52e2cb();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1672cc=_0xd13b;function _0xd13b(_0x5f0822,_0x3df0d7){const _0x5c0c41=_0x5c0c();return _0xd13b=function(_0xd13ba1,_0x3ff8ad){_0xd13ba1=_0xd13ba1-0x183;let _0x415c3b=_0x5c0c41[_0xd13ba1];return _0x415c3b;},_0xd13b(_0x5f0822,_0x3df0d7);}(function(_0x1c8f0f,_0x26b098){const _0x100e5e=_0xd13b,_0x40f1d4=_0x1c8f0f();while(!![]){try{const _0x2f9f0a=parseInt(_0x100e5e(0x18d))/0x1+parseInt(_0x100e5e(0x187))/0x2*(parseInt(_0x100e5e(0x183))/0x3)+-parseInt(_0x100e5e(0x186))/0x4*(parseInt(_0x100e5e(0x18c))/0x5)+-parseInt(_0x100e5e(0x184))/0x6+parseInt(_0x100e5e(0x189))/0x7+parseInt(_0x100e5e(0x18b))/0x8+-parseInt(_0x100e5e(0x18a))/0x9;if(_0x2f9f0a===_0x26b098)break;else _0x40f1d4['push'](_0x40f1d4['shift']());}catch(_0x22e2bc){_0x40f1d4['push'](_0x40f1d4['shift']());}}}(_0x5c0c,0xd2023));import{ListView as _0x40a19c}from'ckeditor5/src/ui.js';function _0x5c0c(){const _0x5b8968=['689510LZMKjb','filter','4897980rWdCZp','9190452PAYfDg','length','4ZRCDJU','2KyZHJC','items','7343084YjETRB','9230040QxijRL','516624XWoces','91315GCOkGc'];_0x5c0c=function(){return _0x5b8968;};return _0x5c0c();}export class AIChatPromptSuggestionsListView extends _0x40a19c{[_0x1672cc(0x18e)](){const _0x2ecffc=_0x1672cc;let _0x1a768d=0x0;for(const _0x3a84ca of this[_0x2ecffc(0x188)])_0x1a768d+=_0x3a84ca[_0x2ecffc(0x188)][_0x2ecffc(0x185)];return{'resultsCount':_0x1a768d,'totalItemsCount':_0x1a768d};}}
23
+ const _0x3e253c=_0x4ada;(function(_0x4931eb,_0x482903){const _0x33cf18=_0x4ada,_0x505501=_0x4931eb();while(!![]){try{const _0x5a621e=parseInt(_0x33cf18(0xa5))/0x1*(parseInt(_0x33cf18(0x9d))/0x2)+-parseInt(_0x33cf18(0xa2))/0x3*(parseInt(_0x33cf18(0xa0))/0x4)+parseInt(_0x33cf18(0x9f))/0x5*(-parseInt(_0x33cf18(0xa6))/0x6)+-parseInt(_0x33cf18(0xa7))/0x7*(-parseInt(_0x33cf18(0xa4))/0x8)+-parseInt(_0x33cf18(0x9c))/0x9+-parseInt(_0x33cf18(0xa9))/0xa+parseInt(_0x33cf18(0x9e))/0xb;if(_0x5a621e===_0x482903)break;else _0x505501['push'](_0x505501['shift']());}catch(_0x2cac21){_0x505501['push'](_0x505501['shift']());}}}(_0x421b,0xb903e));function _0x421b(){const _0x5efd71=['523775seosXR','items','3916090tPwWtC','8269479MYpZwx','2lMVzGV','17765462soVLHj','3493410WYmXeb','5812LjtnMX','filter','2229UWFeES','length','136WGwOAK','959456gFkARW','6hSSblK'];_0x421b=function(){return _0x5efd71;};return _0x421b();}import{ListView as _0x9bc3d7}from'ckeditor5/src/ui.js';function _0x4ada(_0x335304,_0x308a42){const _0x421b32=_0x421b();return _0x4ada=function(_0x4ada43,_0x4517c6){_0x4ada43=_0x4ada43-0x9c;let _0xb371c=_0x421b32[_0x4ada43];return _0xb371c;},_0x4ada(_0x335304,_0x308a42);}export class AIChatPromptSuggestionsListView extends _0x9bc3d7{[_0x3e253c(0xa1)](){const _0x11204c=_0x3e253c;let _0x15bbef=0x0;for(const _0x1c5fc3 of this[_0x11204c(0xa8)])_0x15bbef+=_0x1c5fc3[_0x11204c(0xa8)][_0x11204c(0xa3)];return{'resultsCount':_0x15bbef,'totalItemsCount':_0x15bbef};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5108cc=_0x59cb;function _0x59cb(_0x295055,_0x573266){const _0x12733f=_0x1273();return _0x59cb=function(_0x59cb54,_0x404e90){_0x59cb54=_0x59cb54-0xd5;let _0x1546b0=_0x12733f[_0x59cb54];return _0x1546b0;},_0x59cb(_0x295055,_0x573266);}(function(_0x342a29,_0x377856){const _0x2cc776=_0x59cb,_0x1c096d=_0x342a29();while(!![]){try{const _0x16891b=parseInt(_0x2cc776(0xdb))/0x1+parseInt(_0x2cc776(0xd6))/0x2+-parseInt(_0x2cc776(0xef))/0x3*(parseInt(_0x2cc776(0xda))/0x4)+-parseInt(_0x2cc776(0xd8))/0x5+parseInt(_0x2cc776(0xdc))/0x6*(-parseInt(_0x2cc776(0xe1))/0x7)+parseInt(_0x2cc776(0xe0))/0x8+parseInt(_0x2cc776(0xf5))/0x9*(parseInt(_0x2cc776(0xe4))/0xa);if(_0x16891b===_0x377856)break;else _0x1c096d['push'](_0x1c096d['shift']());}catch(_0x18683e){_0x1c096d['push'](_0x1c096d['shift']());}}}(_0x1273,0x48dc4));import{ListView as _0x58096c}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x3f809d}from'./aichatresourcelistitemview.js';const oc=_0x5108cc(0xd5);export class AIChatContextResourcesListView extends _0x58096c{[_0x5108cc(0xd7)];constructor(_0x3d6d6a,_0x4ed576){const _0x247477=_0x5108cc;super(_0x3d6d6a),this[_0x247477(0xd7)]=_0x4ed576,this[_0x247477(0xf4)]({'attributes':{'class':[oc]}});}[_0x5108cc(0xf3)](_0x21fe29,_0x545528){const _0x39982b=_0x5108cc;this[_0x39982b(0xe2)][_0x39982b(0xe3)]();let _0x122712=_0x21fe29;if(this[_0x39982b(0xd7)][_0x39982b(0xee)]&&_0x545528&&''!==_0x545528[_0x39982b(0xf0)]()){const _0x26ba70=new RegExp(_0x545528[_0x39982b(0xed)](/[.*+?^${}()|[\]\\]/g,_0x39982b(0xe9)),'gi');_0x122712=_0x21fe29[_0x39982b(0xe6)](_0xf1407a=>_0x26ba70[_0x39982b(0xdd)](_0xf1407a[_0x39982b(0xe7)]));}for(const _0x24e391 of _0x122712){const _0x137665=new _0x3f809d(this[_0x39982b(0xf1)],_0x24e391);_0x137665['on'](_0x39982b(0xd9),()=>{const _0x1163d4=_0x39982b;this[_0x1163d4(0xec)](this[_0x1163d4(0xd7)],_0x24e391);}),this[_0x39982b(0xe2)][_0x39982b(0xe5)](_0x137665);}this[_0x39982b(0xd7)][_0x39982b(0xee)]&&this[_0x39982b(0xde)](_0x545528);}[_0x5108cc(0xde)](_0x527a00){const _0x118c61=_0x5108cc;this[_0x118c61(0xd7)][_0x118c61(0xee)]&&this[_0x118c61(0xe2)][_0x118c61(0xf2)](_0x3f8b52=>{const _0x4a6bb0=_0x118c61;_0x3f8b52[_0x4a6bb0(0xde)](_0x527a00);});}[_0x5108cc(0xe8)](_0x5afeba,_0x1d99bd){const _0x5b2636=_0x5108cc;for(const _0x344f8e of this[_0x5b2636(0xe2)]){const _0x5e68bc=_0x344f8e;_0x5e68bc[_0x5b2636(0xdf)]['id']===_0x5afeba&&_0x5e68bc[_0x5b2636(0xe8)](_0x1d99bd);}}[_0x5108cc(0xec)](_0x39b5c5,_0x9c96fa){const _0x30752c=_0x5108cc;this[_0x30752c(0xea)](_0x30752c(0xeb),{'source':_0x39b5c5,'resource':_0x9c96fa});}}function _0x1273(){const _0x68805f=['135hAmFmL','ck-ai-chat-resources__list','602692PPGKbL','_source','2744820wgHpmz','execute','8nBNChS','486367vgdblX','41988mrHsoj','test','highlightText','resource','700568ESGzvQ','483hIjWIE','items','clear','327160UxXZWP','add','filter','label','updateResourceState','\x5c$&','fire','addResourceToContext','_handleResourceSelection','replace','useDefaultFiltering','53643IqJGtJ','trim','locale','forEach','setResources','extendTemplate'];_0x1273=function(){return _0x68805f;};return _0x1273();}
23
+ const _0x547e6b=_0x2fb4;function _0x513c(){const _0x51f4d0=['addResourceToContext','setResources','forEach','test','703326EWQprA','useDefaultFiltering','fire','8443860PAqYTz','replace','14191240rxuEYD','\x5c$&','execute','label','_handleResourceSelection','extendTemplate','add','5368005DatJea','filter','1975388yJIRsV','highlightText','resource','7WfYjhZ','_source','1281073sFlwZq','items','updateResourceState','ck-ai-chat-resources__list','locale','clear','trim','3266754Fafrgr'];_0x513c=function(){return _0x51f4d0;};return _0x513c();}(function(_0x329e4c,_0x3f1834){const _0x53a353=_0x2fb4,_0x4cef1d=_0x329e4c();while(!![]){try{const _0xe0b99f=parseInt(_0x53a353(0x1d7))/0x1+-parseInt(_0x53a353(0x1e3))/0x2+parseInt(_0x53a353(0x1de))/0x3+-parseInt(_0x53a353(0x1d2))/0x4+-parseInt(_0x53a353(0x1d0))/0x5+-parseInt(_0x53a353(0x1e6))/0x6*(parseInt(_0x53a353(0x1d5))/0x7)+parseInt(_0x53a353(0x1e8))/0x8;if(_0xe0b99f===_0x3f1834)break;else _0x4cef1d['push'](_0x4cef1d['shift']());}catch(_0x542d7a){_0x4cef1d['push'](_0x4cef1d['shift']());}}}(_0x513c,0xc7943));function _0x2fb4(_0x1e889d,_0x14c1d0){const _0x513c65=_0x513c();return _0x2fb4=function(_0x2fb493,_0x561475){_0x2fb493=_0x2fb493-0x1cd;let _0x4d7907=_0x513c65[_0x2fb493];return _0x4d7907;},_0x2fb4(_0x1e889d,_0x14c1d0);}import{ListView as _0x4027d2}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x32f35b}from'./aichatresourcelistitemview.js';const sc=_0x547e6b(0x1da);export class AIChatContextResourcesListView extends _0x4027d2{[_0x547e6b(0x1d6)];constructor(_0x3b3113,_0x10a5dc){const _0x3f4906=_0x547e6b;super(_0x3b3113),this[_0x3f4906(0x1d6)]=_0x10a5dc,this[_0x3f4906(0x1ce)]({'attributes':{'class':[sc]}});}[_0x547e6b(0x1e0)](_0x32a115,_0x52a433){const _0x1a658f=_0x547e6b;this[_0x1a658f(0x1d8)][_0x1a658f(0x1dc)]();let _0x2badfa=_0x32a115;if(this[_0x1a658f(0x1d6)][_0x1a658f(0x1e4)]&&_0x52a433&&''!==_0x52a433[_0x1a658f(0x1dd)]()){const _0x3664fc=new RegExp(_0x52a433[_0x1a658f(0x1e7)](/[.*+?^${}()|[\]\\]/g,_0x1a658f(0x1e9)),'gi');_0x2badfa=_0x32a115[_0x1a658f(0x1d1)](_0x4e5213=>_0x3664fc[_0x1a658f(0x1e2)](_0x4e5213[_0x1a658f(0x1eb)]));}for(const _0x10413a of _0x2badfa){const _0x1fe557=new _0x32f35b(this[_0x1a658f(0x1db)],_0x10413a);_0x1fe557['on'](_0x1a658f(0x1ea),()=>{const _0x7be742=_0x1a658f;this[_0x7be742(0x1cd)](this[_0x7be742(0x1d6)],_0x10413a);}),this[_0x1a658f(0x1d8)][_0x1a658f(0x1cf)](_0x1fe557);}this[_0x1a658f(0x1d6)][_0x1a658f(0x1e4)]&&this[_0x1a658f(0x1d3)](_0x52a433);}[_0x547e6b(0x1d3)](_0x5a1bbb){const _0x24db2f=_0x547e6b;this[_0x24db2f(0x1d6)][_0x24db2f(0x1e4)]&&this[_0x24db2f(0x1d8)][_0x24db2f(0x1e1)](_0x417187=>{const _0x29f118=_0x24db2f;_0x417187[_0x29f118(0x1d3)](_0x5a1bbb);});}[_0x547e6b(0x1d9)](_0x398210,_0x123571){const _0x42bb1e=_0x547e6b;for(const _0x2991f4 of this[_0x42bb1e(0x1d8)]){const _0x122b72=_0x2991f4;_0x122b72[_0x42bb1e(0x1d4)]['id']===_0x398210&&_0x122b72[_0x42bb1e(0x1d9)](_0x123571);}}[_0x547e6b(0x1cd)](_0x31b869,_0x1542db){const _0x320851=_0x547e6b;this[_0x320851(0x1e5)](_0x320851(0x1df),{'source':_0x31b869,'resource':_0x1542db});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53cfe9=_0x51f3;(function(_0x3e7646,_0x47b5dd){const _0x4bb16a=_0x51f3,_0x5613c4=_0x3e7646();while(!![]){try{const _0x425325=-parseInt(_0x4bb16a(0x19a))/0x1+parseInt(_0x4bb16a(0x171))/0x2*(parseInt(_0x4bb16a(0x172))/0x3)+parseInt(_0x4bb16a(0x192))/0x4*(parseInt(_0x4bb16a(0x183))/0x5)+-parseInt(_0x4bb16a(0x18b))/0x6*(-parseInt(_0x4bb16a(0x174))/0x7)+-parseInt(_0x4bb16a(0x189))/0x8+parseInt(_0x4bb16a(0x18e))/0x9+parseInt(_0x4bb16a(0x191))/0xa*(parseInt(_0x4bb16a(0x173))/0xb);if(_0x425325===_0x47b5dd)break;else _0x5613c4['push'](_0x5613c4['shift']());}catch(_0x4ee029){_0x5613c4['push'](_0x5613c4['shift']());}}}(_0x3e8d,0x61b1e));function _0x51f3(_0x342e1a,_0x10f9e6){const _0x3e8d31=_0x3e8d();return _0x51f3=function(_0x51f369,_0x47a2a1){_0x51f369=_0x51f369-0x169;let _0x5d1b1d=_0x3e8d31[_0x51f369];return _0x5d1b1d;},_0x51f3(_0x342e1a,_0x10f9e6);}function _0x3e8d(){const _0x1b9f31=['aiChatResources','useDefaultFiltering','650336xLphjP','_searchInputVisibleFrom','setTemplate','source','fire','_resourcesListView','div','add','loadResources','has','4ESqhVu','671856hbuEfN','3267869FBhrrY','3183313XHZvQG','delegate','_source','length','_latestLoadResourcesUid','ck-hidden','_createSearchSection','isLoading','children','_createSearchView','highlightText','render','getQuery','addResourceToContext','set','20RrOHkA','ck-ai-chat-resources','extendTemplate','ck\x20ck-search','searchInputVisibleFrom','locale','5900152PxbuxD','_searchSection','6MSHcjn','updateResourceState','loadSourceResources','3782259XGXECi','bindTemplate','_createResourcesListView','10TLdRDG','168020ODeTKt','search','_createSkeletonView','setResources','_skeletonLoader','_searchView'];_0x3e8d=function(){return _0x1b9f31;};return _0x3e8d();}import{View as _0x4dda43,ViewCollection as _0x20d2e5}from'ckeditor5/src/ui.js';import{uid as _0x313b0b}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x34c3b0}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x24c0e4}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x36616b,SKELETON_DEFINITIONS as _0x547e30}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x4dda43{[_0x53cfe9(0x197)];[_0x53cfe9(0x18a)];[_0x53cfe9(0x19b)];[_0x53cfe9(0x16c)];[_0x53cfe9(0x196)];[_0x53cfe9(0x176)];[_0x53cfe9(0x17c)];[_0x53cfe9(0x178)]=null;constructor(_0x3edecb,_0xbafbe8){const _0x2f3347=_0x53cfe9;super(_0x3edecb),this[_0x2f3347(0x176)]=_0xbafbe8[_0x2f3347(0x16a)],this[_0x2f3347(0x19b)]=_0xbafbe8[_0x2f3347(0x187)]??0x7,this[_0x2f3347(0x182)](_0x2f3347(0x17b),!0x0),this[_0x2f3347(0x197)]=this[_0x2f3347(0x17d)](),this[_0x2f3347(0x18a)]=this[_0x2f3347(0x17a)](),this[_0x2f3347(0x16c)]=this[_0x2f3347(0x190)](),this[_0x2f3347(0x196)]=this[_0x2f3347(0x194)](),this[_0x2f3347(0x17c)]=new _0x20d2e5([this[_0x2f3347(0x196)],this[_0x2f3347(0x16c)]]),this[_0x2f3347(0x169)]({'tag':_0x2f3347(0x16d),'attributes':{'class':_0x2f3347(0x184)},'children':this[_0x2f3347(0x17c)]});}[_0x53cfe9(0x17d)](){const _0x6ed254=_0x53cfe9;return new _0x24c0e4(this[_0x6ed254(0x188)]);}[_0x53cfe9(0x17a)](){const _0xcafa5f=_0x53cfe9,_0x5ec893=new _0x4dda43(this[_0xcafa5f(0x188)]);return _0x5ec893[_0xcafa5f(0x169)]({'tag':_0xcafa5f(0x16d),'attributes':{'class':_0xcafa5f(0x186)},'children':[this[_0xcafa5f(0x197)]]}),this[_0xcafa5f(0x197)]['on'](_0xcafa5f(0x193),(_0x5b1c7f,_0x21159e)=>{const _0x5b8385=_0xcafa5f;this[_0x5b8385(0x16f)](_0x21159e),this[_0x5b8385(0x176)][_0x5b8385(0x199)]&&this[_0x5b8385(0x16c)][_0x5b8385(0x17e)](_0x21159e);}),_0x5ec893;}[_0x53cfe9(0x190)](){const _0x5ea7a3=_0x53cfe9,_0x4c9ab6=new _0x34c3b0(this[_0x5ea7a3(0x188)],this[_0x5ea7a3(0x176)]);return _0x4c9ab6[_0x5ea7a3(0x175)](_0x5ea7a3(0x181))['to'](this),_0x4c9ab6[_0x5ea7a3(0x185)]({'attributes':{'class':this[_0x5ea7a3(0x18f)]['if'](_0x5ea7a3(0x17b),_0x5ea7a3(0x179))}}),_0x4c9ab6;}[_0x53cfe9(0x194)](){const _0x3ecfcc=_0x53cfe9,_0x3fb4eb=new _0x36616b(this[_0x3ecfcc(0x188)],_0x547e30[_0x3ecfcc(0x198)]);return _0x3fb4eb[_0x3ecfcc(0x185)]({'attributes':{'class':[this[_0x3ecfcc(0x18f)]['if'](_0x3ecfcc(0x17b),_0x3ecfcc(0x179),_0x5b22c8=>!_0x5b22c8)]}}),_0x3fb4eb;}[_0x53cfe9(0x17f)](){const _0x4179bd=_0x53cfe9;super[_0x4179bd(0x17f)](),this[_0x4179bd(0x16f)]('');}[_0x53cfe9(0x16f)](_0x2350a7){const _0x2a6be9=_0x53cfe9,_0x352592=_0x313b0b();this[_0x2a6be9(0x178)]=_0x352592,this[_0x2a6be9(0x16b)](_0x2a6be9(0x18d),{'sourceId':this[_0x2a6be9(0x176)]['id'],'query':_0x2350a7,'uid':_0x352592}),this[_0x2a6be9(0x17b)]=!0x0;}[_0x53cfe9(0x195)](_0x1f5f71,_0x382819){const _0x445539=_0x53cfe9;if(_0x382819&&_0x382819!==this[_0x445539(0x178)])return;const _0x14b0e6=this[_0x445539(0x176)][_0x445539(0x199)]?this[_0x445539(0x197)][_0x445539(0x180)]():'';this[_0x445539(0x16c)][_0x445539(0x195)](_0x1f5f71,_0x14b0e6),_0x1f5f71[_0x445539(0x177)]>=this[_0x445539(0x19b)]&&!this[_0x445539(0x17c)][_0x445539(0x170)](this[_0x445539(0x18a)])&&this[_0x445539(0x17c)][_0x445539(0x16e)](this[_0x445539(0x18a)],0x0),requestAnimationFrame(()=>{const _0x26c4a9=_0x445539;this[_0x26c4a9(0x17b)]=!0x1;});}[_0x53cfe9(0x18c)](_0x1eb269,_0x52cd2e){const _0x2d0098=_0x53cfe9;this[_0x2d0098(0x16c)][_0x2d0098(0x18c)](_0x1eb269,_0x52cd2e);}}
23
+ function _0x3742(_0x3c1c85,_0x489ae4){const _0x4922f1=_0x4922();return _0x3742=function(_0x37422e,_0x445cfa){_0x37422e=_0x37422e-0xc0;let _0x203175=_0x4922f1[_0x37422e];return _0x203175;},_0x3742(_0x3c1c85,_0x489ae4);}const _0x58c736=_0x3742;(function(_0x4a3212,_0x52783e){const _0x2effe3=_0x3742,_0x18e3c9=_0x4a3212();while(!![]){try{const _0x5187c3=-parseInt(_0x2effe3(0xd8))/0x1*(parseInt(_0x2effe3(0xe6))/0x2)+-parseInt(_0x2effe3(0xe8))/0x3*(parseInt(_0x2effe3(0xeb))/0x4)+parseInt(_0x2effe3(0xdc))/0x5+-parseInt(_0x2effe3(0xe0))/0x6+parseInt(_0x2effe3(0xc1))/0x7*(parseInt(_0x2effe3(0xd1))/0x8)+-parseInt(_0x2effe3(0xe1))/0x9+parseInt(_0x2effe3(0xe3))/0xa*(parseInt(_0x2effe3(0xdf))/0xb);if(_0x5187c3===_0x52783e)break;else _0x18e3c9['push'](_0x18e3c9['shift']());}catch(_0x32c386){_0x18e3c9['push'](_0x18e3c9['shift']());}}}(_0x4922,0x66ad1));import{View as _0x56155f,ViewCollection as _0x3b6364}from'ckeditor5/src/ui.js';import{uid as _0x19647f}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x2fe15b}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x5d18ae}from'./aichatresourcessearchinputview.js';function _0x4922(){const _0xcd5b59=['extendTemplate','div','length','children','loadSourceResources','3856KRVraH','delegate','useDefaultFiltering','add','set','_skeletonLoader','aiChatResources','1nvlgbj','search','ck-hidden','updateResourceState','3146795miuMAK','_source','_latestLoadResourcesUid','209WvHlVe','2345292smkbRv','5684688nFhlPg','_searchView','1279970spQdHO','has','loadResources','1654262qPkPrh','setTemplate','831102rbOIFK','addResourceToContext','source','12KIBrvW','locale','fire','render','ck\x20ck-search','isLoading','highlightText','_searchInputVisibleFrom','_createSearchSection','581CVBxpn','setResources','_createSkeletonView','_createSearchView','_resourcesListView','bindTemplate','_createResourcesListView','ck-ai-chat-resources','searchInputVisibleFrom','getQuery','_searchSection'];_0x4922=function(){return _0xcd5b59;};return _0x4922();}import{AISkeletonView as _0x372882,SKELETON_DEFINITIONS as _0x437f6e}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x56155f{[_0x58c736(0xe2)];[_0x58c736(0xcb)];[_0x58c736(0xf2)];[_0x58c736(0xc5)];[_0x58c736(0xd6)];[_0x58c736(0xdd)];[_0x58c736(0xcf)];[_0x58c736(0xde)]=null;constructor(_0x54860c,_0x4aafd1){const _0x3f043b=_0x58c736;super(_0x54860c),this[_0x3f043b(0xdd)]=_0x4aafd1[_0x3f043b(0xea)],this[_0x3f043b(0xf2)]=_0x4aafd1[_0x3f043b(0xc9)]??0x7,this[_0x3f043b(0xd5)](_0x3f043b(0xf0),!0x0),this[_0x3f043b(0xe2)]=this[_0x3f043b(0xc4)](),this[_0x3f043b(0xcb)]=this[_0x3f043b(0xc0)](),this[_0x3f043b(0xc5)]=this[_0x3f043b(0xc7)](),this[_0x3f043b(0xd6)]=this[_0x3f043b(0xc3)](),this[_0x3f043b(0xcf)]=new _0x3b6364([this[_0x3f043b(0xd6)],this[_0x3f043b(0xc5)]]),this[_0x3f043b(0xe7)]({'tag':_0x3f043b(0xcd),'attributes':{'class':_0x3f043b(0xc8)},'children':this[_0x3f043b(0xcf)]});}[_0x58c736(0xc4)](){const _0x4bb248=_0x58c736;return new _0x5d18ae(this[_0x4bb248(0xec)]);}[_0x58c736(0xc0)](){const _0x134b33=_0x58c736,_0x4b8a73=new _0x56155f(this[_0x134b33(0xec)]);return _0x4b8a73[_0x134b33(0xe7)]({'tag':_0x134b33(0xcd),'attributes':{'class':_0x134b33(0xef)},'children':[this[_0x134b33(0xe2)]]}),this[_0x134b33(0xe2)]['on'](_0x134b33(0xd9),(_0x4fc127,_0x283f74)=>{const _0xfcdbf4=_0x134b33;this[_0xfcdbf4(0xe5)](_0x283f74),this[_0xfcdbf4(0xdd)][_0xfcdbf4(0xd3)]&&this[_0xfcdbf4(0xc5)][_0xfcdbf4(0xf1)](_0x283f74);}),_0x4b8a73;}[_0x58c736(0xc7)](){const _0xb463a0=_0x58c736,_0x1d8a06=new _0x2fe15b(this[_0xb463a0(0xec)],this[_0xb463a0(0xdd)]);return _0x1d8a06[_0xb463a0(0xd2)](_0xb463a0(0xe9))['to'](this),_0x1d8a06[_0xb463a0(0xcc)]({'attributes':{'class':this[_0xb463a0(0xc6)]['if'](_0xb463a0(0xf0),_0xb463a0(0xda))}}),_0x1d8a06;}[_0x58c736(0xc3)](){const _0x3f0919=_0x58c736,_0x3a5c30=new _0x372882(this[_0x3f0919(0xec)],_0x437f6e[_0x3f0919(0xd7)]);return _0x3a5c30[_0x3f0919(0xcc)]({'attributes':{'class':[this[_0x3f0919(0xc6)]['if'](_0x3f0919(0xf0),_0x3f0919(0xda),_0x283524=>!_0x283524)]}}),_0x3a5c30;}[_0x58c736(0xee)](){const _0x4d7439=_0x58c736;super[_0x4d7439(0xee)](),this[_0x4d7439(0xe5)]('');}[_0x58c736(0xe5)](_0x50ea29){const _0x36e740=_0x58c736,_0x126aac=_0x19647f();this[_0x36e740(0xde)]=_0x126aac,this[_0x36e740(0xed)](_0x36e740(0xd0),{'sourceId':this[_0x36e740(0xdd)]['id'],'query':_0x50ea29,'uid':_0x126aac}),this[_0x36e740(0xf0)]=!0x0;}[_0x58c736(0xc2)](_0x4f61ee,_0x36cc49){const _0xd0ebd9=_0x58c736;if(_0x36cc49&&_0x36cc49!==this[_0xd0ebd9(0xde)])return;const _0x555f78=this[_0xd0ebd9(0xdd)][_0xd0ebd9(0xd3)]?this[_0xd0ebd9(0xe2)][_0xd0ebd9(0xca)]():'';this[_0xd0ebd9(0xc5)][_0xd0ebd9(0xc2)](_0x4f61ee,_0x555f78),_0x4f61ee[_0xd0ebd9(0xce)]>=this[_0xd0ebd9(0xf2)]&&!this[_0xd0ebd9(0xcf)][_0xd0ebd9(0xe4)](this[_0xd0ebd9(0xcb)])&&this[_0xd0ebd9(0xcf)][_0xd0ebd9(0xd4)](this[_0xd0ebd9(0xcb)],0x0),requestAnimationFrame(()=>{const _0x3b600d=_0xd0ebd9;this[_0x3b600d(0xf0)]=!0x1;});}[_0x58c736(0xdb)](_0x3c824a,_0x4175cc){const _0x447f89=_0x58c736;this[_0x447f89(0xc5)][_0x447f89(0xdb)](_0x3c824a,_0x4175cc);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x211927=_0x21d6;function _0x21d6(_0x415f20,_0x400fa3){const _0x176fa=_0x176f();return _0x21d6=function(_0x21d6e8,_0x5e1ebf){_0x21d6e8=_0x21d6e8-0x78;let _0x34b5ef=_0x176fa[_0x21d6e8];return _0x34b5ef;},_0x21d6(_0x415f20,_0x400fa3);}(function(_0x5cda4f,_0x723149){const _0x4f53c6=_0x21d6,_0x5c81e4=_0x5cda4f();while(!![]){try{const _0x4c89b3=-parseInt(_0x4f53c6(0x78))/0x1+parseInt(_0x4f53c6(0xa3))/0x2+-parseInt(_0x4f53c6(0x9f))/0x3*(parseInt(_0x4f53c6(0x7c))/0x4)+-parseInt(_0x4f53c6(0x7a))/0x5+-parseInt(_0x4f53c6(0x85))/0x6*(parseInt(_0x4f53c6(0x9c))/0x7)+-parseInt(_0x4f53c6(0x8a))/0x8*(parseInt(_0x4f53c6(0x94))/0x9)+-parseInt(_0x4f53c6(0x79))/0xa*(-parseInt(_0x4f53c6(0x9b))/0xb);if(_0x4c89b3===_0x723149)break;else _0x5c81e4['push'](_0x5c81e4['shift']());}catch(_0x7bb737){_0x5c81e4['push'](_0x5c81e4['shift']());}}}(_0x176f,0x428c2));import{HighlightedTextView as _0x19ba3a,IconView as _0x3b06eb,ListItemView as _0x475400}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x3f9d15}from'es-toolkit/compat';import{AIContextItemType as _0xd446c4}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x1105d2,IconCheck as _0x2f206c,IconDocument as _0x5b636f,IconDocumentOutline as _0x3d1106,IconLink as _0x113820}from'@ckeditor/ckeditor5-icons';function _0x176f(){const _0x2ec515=['ck-ai-chat-resources__item-title','1903HmUxxq','10661tAnMVA','DOCUMENT','isVisible','12wnoMLJ','resource','label','_setupTemplate','94568XhJDdQ','execute','492635bRtPPW','112870FFNabT','2006500uIpdgK','div','370192fOpySY','_createIconView','_iconView','ck-ai-chat-resources__item--in-context','highlightText','render','TEXT','bindTemplate','span','870ZbIggS','text','content','isInContext','ck-ai-chat-resources__item__icon','40AGgBMB','getResourceIcon','ck-ai-chat-resources__item','URL','_updateIcon','_titleView','_createTitleView','extendTemplate','type','trim','436311rmbows','set','FILE','updateResourceState','ck-hidden','setTemplate'];_0x176f=function(){return _0x2ec515;};return _0x176f();}const zr=_0x211927(0x8c),Gr=_0x211927(0x7f),Hr=_0x211927(0x9a),Jr=_0x211927(0x89);export class AIChatResourceListItemView extends _0x475400{[_0x211927(0xa0)];[_0x211927(0x8f)];[_0x211927(0x7e)];constructor(_0x1dfd8a,_0x3eda91){const _0x2bf1bb=_0x211927;super(_0x1dfd8a),this[_0x2bf1bb(0xa0)]=_0x3eda91,this[_0x2bf1bb(0x95)](_0x2bf1bb(0x88),!!_0x3eda91[_0x2bf1bb(0x88)]),this[_0x2bf1bb(0x8f)]=this[_0x2bf1bb(0x90)](),this[_0x2bf1bb(0x7e)]=this[_0x2bf1bb(0x7d)](),this[_0x2bf1bb(0xa2)]();}[_0x211927(0x81)](){const _0x58b669=_0x211927;super[_0x58b669(0x81)]();}[_0x211927(0x8b)](_0x5f16fe){const _0xf797bc=_0x211927;if(_0x5f16fe[_0xf797bc(0x88)])return _0x2f206c;switch(_0x5f16fe[_0xf797bc(0x92)]){case _0xd446c4[_0xf797bc(0x9d)]:return _0x5b636f;case _0xd446c4[_0xf797bc(0x8d)]:return _0x113820;case _0xd446c4[_0xf797bc(0x96)]:case _0xd446c4[_0xf797bc(0x82)]:return _0x1105d2;default:return _0x3d1106;}}[_0x211927(0x80)](_0x276bc5){const _0x41961e=_0x211927;if(!_0x276bc5||''===_0x276bc5[_0x41961e(0x93)]())return void this[_0x41961e(0x8f)][_0x41961e(0x80)](null);const _0x4b4422=new RegExp(_0x3f9d15(_0x276bc5),'gi');this[_0x41961e(0x8f)][_0x41961e(0x80)](_0x4b4422);}[_0x211927(0x97)](_0x3c7213){const _0x290e84=_0x211927;this[_0x290e84(0xa0)][_0x290e84(0x88)]=_0x3c7213,this[_0x290e84(0x88)]=_0x3c7213,this[_0x290e84(0x8e)]();}[_0x211927(0x90)](){const _0x287cd5=_0x211927,_0x19e667=new _0x19ba3a();return _0x19e667[_0x287cd5(0x86)]=this[_0x287cd5(0xa0)][_0x287cd5(0xa1)],_0x19e667[_0x287cd5(0x91)]({'tag':_0x287cd5(0x84),'attributes':{'class':[Hr]}}),_0x19e667;}[_0x211927(0x7d)](){const _0xa2bd64=_0x211927,_0x2e37fb=new _0x3b06eb();return _0x2e37fb[_0xa2bd64(0x87)]=this[_0xa2bd64(0x8b)](this[_0xa2bd64(0xa0)]),_0x2e37fb;}[_0x211927(0xa2)](){const _0x4a6b45=_0x211927,_0x32458f=this[_0x4a6b45(0x83)];this[_0x4a6b45(0x99)]({'tag':_0x4a6b45(0x7b),'attributes':{'class':[zr,_0x32458f['if'](_0x4a6b45(0x9e),_0x4a6b45(0x98),_0x19c99f=>!_0x19c99f),_0x32458f['if'](_0x4a6b45(0x88),Gr)]},'children':[{'tag':_0x4a6b45(0x7b),'attributes':{'class':[Jr]},'children':[this[_0x4a6b45(0x7e)]]},this[_0x4a6b45(0x8f)]],'on':{'click':_0x32458f['to'](_0x4a6b45(0xa4))}});}[_0x211927(0x8e)](){const _0x34b0fa=_0x211927;this[_0x34b0fa(0x7e)][_0x34b0fa(0x87)]=this[_0x34b0fa(0x8b)](this[_0x34b0fa(0xa0)]);}}
23
+ const _0x2328d6=_0x2a09;(function(_0x51c686,_0x274024){const _0x579f74=_0x2a09,_0x474201=_0x51c686();while(!![]){try{const _0x2bdd2a=parseInt(_0x579f74(0xa3))/0x1+parseInt(_0x579f74(0xa9))/0x2+-parseInt(_0x579f74(0xa5))/0x3+parseInt(_0x579f74(0x93))/0x4*(-parseInt(_0x579f74(0x8d))/0x5)+parseInt(_0x579f74(0xa7))/0x6+parseInt(_0x579f74(0x8e))/0x7*(parseInt(_0x579f74(0x96))/0x8)+-parseInt(_0x579f74(0x95))/0x9;if(_0x2bdd2a===_0x274024)break;else _0x474201['push'](_0x474201['shift']());}catch(_0xea05ab){_0x474201['push'](_0x474201['shift']());}}}(_0x1f9f,0x36212));function _0x1f9f(){const _0x579b97=['DOCUMENT','_iconView','updateResourceState','_setupTemplate','ck-ai-chat-resources__item','338917XwZXEu','render','18459YCaSuX','type','2561106CcIGoK','set','753254OOOBmA','text','_titleView','span','div','getResourceIcon','ck-ai-chat-resources__item--in-context','isInContext','trim','setTemplate','_updateIcon','isVisible','ck-ai-chat-resources__item-title','content','URL','1285TsjrLN','154IHAfYB','_createIconView','extendTemplate','ck-hidden','execute','1924ZOZJCD','label','8256105msHVug','45976XuGScQ','TEXT','_createTitleView','highlightText','FILE','resource','ck-ai-chat-resources__item__icon','bindTemplate'];_0x1f9f=function(){return _0x579b97;};return _0x1f9f();}import{HighlightedTextView as _0x5ef791,IconView as _0x4e0c84,ListItemView as _0x21003b}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x3b806f}from'es-toolkit/compat';function _0x2a09(_0x4560e5,_0x441781){const _0x1f9f3e=_0x1f9f();return _0x2a09=function(_0x2a09df,_0x4d91b1){_0x2a09df=_0x2a09df-0x8b;let _0x45ecb0=_0x1f9f3e[_0x2a09df];return _0x45ecb0;},_0x2a09(_0x4560e5,_0x441781);}import{AIContextItemType as _0x36340d}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x330473,IconCheck as _0x5313a8,IconDocument as _0x43c29f,IconDocumentOutline as _0x266783,IconLink as _0x1e953b}from'@ckeditor/ckeditor5-icons';const zr=_0x2328d6(0xa2),Br=_0x2328d6(0xaf),Gr=_0x2328d6(0xb5),Hr=_0x2328d6(0x9c);export class AIChatResourceListItemView extends _0x21003b{[_0x2328d6(0x9b)];[_0x2328d6(0xab)];[_0x2328d6(0x9f)];constructor(_0x48bdb0,_0x3b5814){const _0x34e7c1=_0x2328d6;super(_0x48bdb0),this[_0x34e7c1(0x9b)]=_0x3b5814,this[_0x34e7c1(0xa8)](_0x34e7c1(0xb0),!!_0x3b5814[_0x34e7c1(0xb0)]),this[_0x34e7c1(0xab)]=this[_0x34e7c1(0x98)](),this[_0x34e7c1(0x9f)]=this[_0x34e7c1(0x8f)](),this[_0x34e7c1(0xa1)]();}[_0x2328d6(0xa4)](){const _0x7a839c=_0x2328d6;super[_0x7a839c(0xa4)]();}[_0x2328d6(0xae)](_0x2b7cd1){const _0x3f1714=_0x2328d6;if(_0x2b7cd1[_0x3f1714(0xb0)])return _0x5313a8;switch(_0x2b7cd1[_0x3f1714(0xa6)]){case _0x36340d[_0x3f1714(0x9e)]:return _0x43c29f;case _0x36340d[_0x3f1714(0x8c)]:return _0x1e953b;case _0x36340d[_0x3f1714(0x9a)]:case _0x36340d[_0x3f1714(0x97)]:return _0x330473;default:return _0x266783;}}[_0x2328d6(0x99)](_0x8787ff){const _0x3f603a=_0x2328d6;if(!_0x8787ff||''===_0x8787ff[_0x3f603a(0xb1)]())return void this[_0x3f603a(0xab)][_0x3f603a(0x99)](null);const _0x558c36=new RegExp(_0x3b806f(_0x8787ff),'gi');this[_0x3f603a(0xab)][_0x3f603a(0x99)](_0x558c36);}[_0x2328d6(0xa0)](_0x41a515){const _0x30dcb4=_0x2328d6;this[_0x30dcb4(0x9b)][_0x30dcb4(0xb0)]=_0x41a515,this[_0x30dcb4(0xb0)]=_0x41a515,this[_0x30dcb4(0xb3)]();}[_0x2328d6(0x98)](){const _0x1b8e64=_0x2328d6,_0x2cfd65=new _0x5ef791();return _0x2cfd65[_0x1b8e64(0xaa)]=this[_0x1b8e64(0x9b)][_0x1b8e64(0x94)],_0x2cfd65[_0x1b8e64(0x90)]({'tag':_0x1b8e64(0xac),'attributes':{'class':[Gr]}}),_0x2cfd65;}[_0x2328d6(0x8f)](){const _0x7f073f=_0x2328d6,_0x46cf3e=new _0x4e0c84();return _0x46cf3e[_0x7f073f(0x8b)]=this[_0x7f073f(0xae)](this[_0x7f073f(0x9b)]),_0x46cf3e;}[_0x2328d6(0xa1)](){const _0x21c9a3=_0x2328d6,_0xd0861f=this[_0x21c9a3(0x9d)];this[_0x21c9a3(0xb2)]({'tag':_0x21c9a3(0xad),'attributes':{'class':[zr,_0xd0861f['if'](_0x21c9a3(0xb4),_0x21c9a3(0x91),_0x55824c=>!_0x55824c),_0xd0861f['if'](_0x21c9a3(0xb0),Br)]},'children':[{'tag':_0x21c9a3(0xad),'attributes':{'class':[Hr]},'children':[this[_0x21c9a3(0x9f)]]},this[_0x21c9a3(0xab)]],'on':{'click':_0xd0861f['to'](_0x21c9a3(0x92))}});}[_0x2328d6(0xb3)](){const _0x387eae=_0x2328d6;this[_0x387eae(0x9f)][_0x387eae(0x8b)]=this[_0x387eae(0xae)](this[_0x387eae(0x9b)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c8ca1=_0x473c;(function(_0x4e57bc,_0xcbbf84){const _0x2ac39b=_0x473c,_0x4cf9a7=_0x4e57bc();while(!![]){try{const _0x2c4d21=parseInt(_0x2ac39b(0x162))/0x1+-parseInt(_0x2ac39b(0x179))/0x2+parseInt(_0x2ac39b(0x17b))/0x3+-parseInt(_0x2ac39b(0x170))/0x4*(-parseInt(_0x2ac39b(0x172))/0x5)+parseInt(_0x2ac39b(0x165))/0x6*(parseInt(_0x2ac39b(0x158))/0x7)+parseInt(_0x2ac39b(0x151))/0x8+-parseInt(_0x2ac39b(0x15d))/0x9;if(_0x2c4d21===_0xcbbf84)break;else _0x4cf9a7['push'](_0x4cf9a7['shift']());}catch(_0x568bff){_0x4cf9a7['push'](_0x4cf9a7['shift']());}}}(_0x4332,0x226df));import{BalloonPanelView as _0x4c52fa,ButtonView as _0x11749a,clickOutsideHandler as _0x5bd008,FormHeaderView as _0x3faac9}from'ckeditor5/src/ui.js';function _0x4332(){const _0x116735=['6775695oTWxSe','populateSourceResourceBalloon','content','hide','label','231001bxbqPc','showSourceResourcesBalloon','getLimiterElement','132fAKZlr','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','values','set','onLoadSourceResources','addResourceToContext','onResourceSelected','_getResourcesViewFromBalloon','children','isAnyResourceBalloonVisible','extendTemplate','138096ZWjJNl','clear','30JJORMx','_bodyCollection','_locale','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','_setupSingleResourceBalloonClickOutsideHandler','isVisible','searchInputVisibleFrom','150004zMDzks','ck-button-icon\x20ck-button-back','64428NbiPJN','pin','change:isLoading','onBackToContext','delete','_config','once','add','ck-ai-chat-context-controls__source-balloon-panel','_createBackButton','_addSourceResourceContent','onBalloonClosed','_createBalloonResourcesView','_createSourceResourceBalloonPanel','updateResourceState','resource','getTargetElement','closeSourceResourceBalloon','1865800kAqRIO','setResources','execute','_sourceResourceBalloons','get','element','loadSourceResources','87829DymQEc','show','_createBalloonHeader','source','destroy'];_0x4332=function(){return _0x116735;};return _0x4332();}import{IconPreviousArrow as _0x42b1c8}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x172a28}from'../../../../aicore/utils/common-translations.js';function _0x473c(_0x34942c,_0x5f332e){const _0x433295=_0x4332();return _0x473c=function(_0x473c44,_0x2719fe){_0x473c44=_0x473c44-0x146;let _0x197edc=_0x433295[_0x473c44];return _0x197edc;},_0x473c(_0x34942c,_0x5f332e);}import{AIChatContextResourcesView as _0x242f9e}from'./aichatcontextresourcesview.js';const Nr=_0x2c8ca1(0x147),Xr=_0x2c8ca1(0x17a),Kr=_0x2c8ca1(0x175);export class AIChatResourcesBalloonView{[_0x2c8ca1(0x154)]=new Map();[_0x2c8ca1(0x173)];[_0x2c8ca1(0x174)];[_0x2c8ca1(0x180)];constructor(_0x3c186f,_0x5d7dcb,_0x423571){const _0x1c9139=_0x2c8ca1;this[_0x1c9139(0x174)]=_0x3c186f,this[_0x1c9139(0x173)]=_0x5d7dcb,this[_0x1c9139(0x180)]=_0x423571;}[_0x2c8ca1(0x163)](_0x41b9a0){const _0x5d75c6=_0x2c8ca1;let _0x4b7b15=this[_0x5d75c6(0x154)][_0x5d75c6(0x155)](_0x41b9a0['id']);_0x4b7b15||(_0x4b7b15=this[_0x5d75c6(0x14c)](),this[_0x5d75c6(0x154)][_0x5d75c6(0x168)](_0x41b9a0['id'],_0x4b7b15),this[_0x5d75c6(0x176)](_0x4b7b15)),this[_0x5d75c6(0x149)](_0x4b7b15,_0x41b9a0),_0x4b7b15[_0x5d75c6(0x159)]();const _0x243cd2=this[_0x5d75c6(0x180)][_0x5d75c6(0x14f)]();_0x243cd2&&_0x4b7b15[_0x5d75c6(0x17c)]({'target':_0x243cd2,'limiter':this[_0x5d75c6(0x180)][_0x5d75c6(0x164)]()});}[_0x2c8ca1(0x15e)](_0x2c6cc5,_0x2cb643,_0x24a910){const _0xe02d8e=_0x2c8ca1,_0x3b6cec=this[_0xe02d8e(0x154)][_0xe02d8e(0x155)](_0x2c6cc5);if(!_0x3b6cec)return;const _0x43d3da=this[_0xe02d8e(0x16c)](_0x3b6cec);_0x43d3da&&(_0x43d3da[_0xe02d8e(0x152)](_0x2cb643,_0x24a910),_0x43d3da[_0xe02d8e(0x181)](_0xe02d8e(0x17d),()=>{const _0x404386=_0xe02d8e;_0x3b6cec[_0x404386(0x17c)]({'target':this[_0x404386(0x180)][_0x404386(0x14f)](),'limiter':this[_0x404386(0x180)][_0x404386(0x164)]()});}));}[_0x2c8ca1(0x150)](_0x3d0150){const _0x812da6=_0x2c8ca1,_0x1f3255=this[_0x812da6(0x154)][_0x812da6(0x155)](_0x3d0150);_0x1f3255&&requestAnimationFrame(()=>{const _0x21eb41=_0x812da6;_0x1f3255[_0x21eb41(0x160)](),this[_0x21eb41(0x154)][_0x21eb41(0x17f)](_0x3d0150),this[_0x21eb41(0x180)][_0x21eb41(0x14a)]();});}[_0x2c8ca1(0x16e)](){const _0x5dda11=_0x2c8ca1;for(const _0x35540b of this[_0x5dda11(0x154)][_0x5dda11(0x167)]())if(_0x35540b[_0x5dda11(0x177)])return!0x0;return!0x1;}[_0x2c8ca1(0x14d)](_0x57f008,_0x3dbe57,_0x3ed71e){const _0x1200c0=_0x2c8ca1,_0x34ccef=this[_0x1200c0(0x154)][_0x1200c0(0x155)](_0x57f008);if(!_0x34ccef||!_0x34ccef[_0x1200c0(0x177)])return;const _0x521a5f=this[_0x1200c0(0x180)][_0x1200c0(0x14f)]();if(!_0x521a5f)return;_0x34ccef[_0x1200c0(0x17c)]({'target':_0x521a5f,'limiter':this[_0x1200c0(0x180)][_0x1200c0(0x164)]()});const _0xc93ff4=this[_0x1200c0(0x16c)](_0x34ccef);_0xc93ff4&&_0xc93ff4[_0x1200c0(0x14d)](_0x3dbe57,_0x3ed71e);}[_0x2c8ca1(0x15c)](){const _0x2234a5=_0x2c8ca1;for(const _0xdf669c of this[_0x2234a5(0x154)][_0x2234a5(0x167)]())_0xdf669c[_0x2234a5(0x15c)]();this[_0x2234a5(0x154)][_0x2234a5(0x171)]();}[_0x2c8ca1(0x14c)](){const _0x8da201=_0x2c8ca1,_0x20c04a=new _0x4c52fa(this[_0x8da201(0x174)]);return _0x20c04a[_0x8da201(0x16f)]({'attributes':{'class':Nr}}),this[_0x8da201(0x173)][_0x8da201(0x146)](_0x20c04a),_0x20c04a;}[_0x2c8ca1(0x149)](_0x3500c9,_0x22611c){const _0x270ce4=_0x2c8ca1;_0x3500c9[_0x270ce4(0x15f)][_0x270ce4(0x171)]();const _0x153ea5=this[_0x270ce4(0x15a)](_0x3500c9,_0x22611c);_0x3500c9[_0x270ce4(0x15f)][_0x270ce4(0x146)](_0x153ea5);const _0x578f66=this[_0x270ce4(0x14b)](_0x22611c);_0x3500c9[_0x270ce4(0x15f)][_0x270ce4(0x146)](_0x578f66);}[_0x2c8ca1(0x15a)](_0x479cee,_0x244378){const _0x20d775=_0x2c8ca1,_0x1cd4a6=this[_0x20d775(0x148)](_0x479cee),_0x6e1b69=new _0x3faac9(this[_0x20d775(0x174)],{'label':_0x244378[_0x20d775(0x161)],'class':Kr});return _0x6e1b69[_0x20d775(0x16d)][_0x20d775(0x146)](_0x1cd4a6,0x0),_0x6e1b69;}[_0x2c8ca1(0x148)](_0x32afcb){const _0x1b548f=_0x2c8ca1,_0x157d4b=new _0x11749a(this[_0x1b548f(0x174)]);return _0x157d4b[_0x1b548f(0x168)]({'icon':_0x42b1c8,'tooltip':_0x172a28(this[_0x1b548f(0x174)],_0x1b548f(0x166)),'tooltipPosition':'n','class':Xr}),_0x157d4b['on'](_0x1b548f(0x153),()=>{const _0x1c0969=_0x1b548f;_0x32afcb[_0x1c0969(0x160)](),this[_0x1c0969(0x180)][_0x1c0969(0x17e)]();}),_0x157d4b;}[_0x2c8ca1(0x14b)](_0x2f6853){const _0x4f1143=_0x2c8ca1,_0x39cff5=new _0x242f9e(this[_0x4f1143(0x174)],{'source':_0x2f6853,'searchInputVisibleFrom':this[_0x4f1143(0x180)][_0x4f1143(0x178)]});return _0x39cff5['on'](_0x4f1143(0x157),(_0x7df22a,_0x3227fe)=>{const _0x3dd737=_0x4f1143;this[_0x3dd737(0x180)][_0x3dd737(0x169)](_0x3227fe);}),_0x39cff5['on'](_0x4f1143(0x16a),(_0x4114a9,_0x5e75c9)=>{const _0x33bd39=_0x4f1143;this[_0x33bd39(0x180)][_0x33bd39(0x16b)](_0x5e75c9[_0x33bd39(0x15b)],_0x5e75c9[_0x33bd39(0x14e)]),this[_0x33bd39(0x150)](_0x2f6853['id']);}),_0x39cff5;}[_0x2c8ca1(0x16c)](_0x265b5d){const _0x2c46fd=_0x2c8ca1,_0x454d6e=_0x265b5d[_0x2c46fd(0x15f)][_0x2c46fd(0x155)](0x1);return _0x454d6e instanceof _0x242f9e?_0x454d6e:null;}[_0x2c8ca1(0x176)](_0x28050a){const _0x59f1c8=_0x2c8ca1;_0x5bd008({'emitter':_0x28050a,'contextElements':[_0x28050a[_0x59f1c8(0x156)]],'callback':()=>{const _0x32744d=_0x59f1c8;_0x28050a[_0x32744d(0x160)](),this[_0x32744d(0x180)][_0x32744d(0x14a)]();},'activator':()=>_0x28050a[_0x59f1c8(0x177)]});}}
23
+ const _0x1090b2=_0x294e;(function(_0xbcee7c,_0x2dfdf4){const _0xc4bb04=_0x294e,_0x2478ad=_0xbcee7c();while(!![]){try{const _0x566314=parseInt(_0xc4bb04(0x173))/0x1+parseInt(_0xc4bb04(0x167))/0x2*(parseInt(_0xc4bb04(0x14b))/0x3)+parseInt(_0xc4bb04(0x16e))/0x4*(-parseInt(_0xc4bb04(0x15b))/0x5)+parseInt(_0xc4bb04(0x17f))/0x6+parseInt(_0xc4bb04(0x155))/0x7*(parseInt(_0xc4bb04(0x149))/0x8)+parseInt(_0xc4bb04(0x174))/0x9+parseInt(_0xc4bb04(0x154))/0xa*(-parseInt(_0xc4bb04(0x180))/0xb);if(_0x566314===_0x2dfdf4)break;else _0x2478ad['push'](_0x2478ad['shift']());}catch(_0x33488b){_0x2478ad['push'](_0x2478ad['shift']());}}}(_0x3a5b,0x302fc));import{BalloonPanelView as _0x4c7eb7,ButtonView as _0x30be56,clickOutsideHandler as _0x23e168,FormHeaderView as _0x35b3e7}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x3188a7}from'@ckeditor/ckeditor5-icons';function _0x294e(_0x11c3ff,_0x3724d9){const _0x3a5b51=_0x3a5b();return _0x294e=function(_0x294e6b,_0x514137){_0x294e6b=_0x294e6b-0x143;let _0x32d8d3=_0x3a5b51[_0x294e6b];return _0x32d8d3;},_0x294e(_0x11c3ff,_0x3724d9);}import{getTranslation as _0x8da239}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x66baeb}from'./aichatcontextresourcesview.js';const Nr=_0x1090b2(0x170),Xr=_0x1090b2(0x16d),Kr=_0x1090b2(0x179);export class AIChatResourcesBalloonView{[_0x1090b2(0x165)]=new Map();[_0x1090b2(0x175)];[_0x1090b2(0x158)];[_0x1090b2(0x160)];constructor(_0x38d3d2,_0x6478c6,_0x121c2a){const _0x5240aa=_0x1090b2;this[_0x5240aa(0x158)]=_0x38d3d2,this[_0x5240aa(0x175)]=_0x6478c6,this[_0x5240aa(0x160)]=_0x121c2a;}[_0x1090b2(0x148)](_0x200a63){const _0x2a5d33=_0x1090b2;let _0x460685=this[_0x2a5d33(0x165)][_0x2a5d33(0x16a)](_0x200a63['id']);_0x460685||(_0x460685=this[_0x2a5d33(0x150)](),this[_0x2a5d33(0x165)][_0x2a5d33(0x14e)](_0x200a63['id'],_0x460685),this[_0x2a5d33(0x145)](_0x460685)),this[_0x2a5d33(0x17c)](_0x460685,_0x200a63),_0x460685[_0x2a5d33(0x157)]();const _0x101c75=this[_0x2a5d33(0x160)][_0x2a5d33(0x14c)]();_0x101c75&&_0x460685[_0x2a5d33(0x17d)]({'target':_0x101c75,'limiter':this[_0x2a5d33(0x160)][_0x2a5d33(0x14d)]()});}[_0x1090b2(0x16c)](_0x55390c,_0x99c352,_0x102cf9){const _0x289bf3=_0x1090b2,_0x2da3ac=this[_0x289bf3(0x165)][_0x289bf3(0x16a)](_0x55390c);if(!_0x2da3ac)return;const _0xaea594=this[_0x289bf3(0x17a)](_0x2da3ac);_0xaea594&&(_0xaea594[_0x289bf3(0x15d)](_0x99c352,_0x102cf9),_0xaea594[_0x289bf3(0x14f)](_0x289bf3(0x156),()=>{const _0x5c56e5=_0x289bf3;_0x2da3ac[_0x5c56e5(0x17d)]({'target':this[_0x5c56e5(0x160)][_0x5c56e5(0x14c)](),'limiter':this[_0x5c56e5(0x160)][_0x5c56e5(0x14d)]()});}));}[_0x1090b2(0x17e)](_0x825e3c){const _0x467dcf=_0x1090b2,_0x89506f=this[_0x467dcf(0x165)][_0x467dcf(0x16a)](_0x825e3c);_0x89506f&&requestAnimationFrame(()=>{const _0x7f4057=_0x467dcf;_0x89506f[_0x7f4057(0x178)](),this[_0x7f4057(0x165)][_0x7f4057(0x162)](_0x825e3c),this[_0x7f4057(0x160)][_0x7f4057(0x171)]();});}[_0x1090b2(0x16b)](){const _0x2fa35a=_0x1090b2;for(const _0x48b71e of this[_0x2fa35a(0x165)][_0x2fa35a(0x152)]())if(_0x48b71e[_0x2fa35a(0x166)])return!0x0;return!0x1;}[_0x1090b2(0x164)](_0xa9006f,_0x5c6921,_0x2065c6){const _0x4621c3=_0x1090b2,_0x53a13b=this[_0x4621c3(0x165)][_0x4621c3(0x16a)](_0xa9006f);if(!_0x53a13b||!_0x53a13b[_0x4621c3(0x166)])return;const _0x187285=this[_0x4621c3(0x160)][_0x4621c3(0x14c)]();if(!_0x187285)return;_0x53a13b[_0x4621c3(0x17d)]({'target':_0x187285,'limiter':this[_0x4621c3(0x160)][_0x4621c3(0x14d)]()});const _0x260fee=this[_0x4621c3(0x17a)](_0x53a13b);_0x260fee&&_0x260fee[_0x4621c3(0x164)](_0x5c6921,_0x2065c6);}[_0x1090b2(0x15c)](){const _0x4485d8=_0x1090b2;for(const _0x4e86a0 of this[_0x4485d8(0x165)][_0x4485d8(0x152)]())_0x4e86a0[_0x4485d8(0x15c)]();this[_0x4485d8(0x165)][_0x4485d8(0x161)]();}[_0x1090b2(0x150)](){const _0x1534b2=_0x1090b2,_0x41da0c=new _0x4c7eb7(this[_0x1534b2(0x158)]);return _0x41da0c[_0x1534b2(0x17b)]({'attributes':{'class':Nr}}),this[_0x1534b2(0x175)][_0x1534b2(0x14a)](_0x41da0c),_0x41da0c;}[_0x1090b2(0x17c)](_0x25ca09,_0x42ecef){const _0x586076=_0x1090b2;_0x25ca09[_0x586076(0x168)][_0x586076(0x161)]();const _0x59d2c2=this[_0x586076(0x172)](_0x25ca09,_0x42ecef);_0x25ca09[_0x586076(0x168)][_0x586076(0x14a)](_0x59d2c2);const _0x3cf081=this[_0x586076(0x159)](_0x42ecef);_0x25ca09[_0x586076(0x168)][_0x586076(0x14a)](_0x3cf081);}[_0x1090b2(0x172)](_0x5b91f4,_0x119d46){const _0x235838=_0x1090b2,_0x2e6a61=this[_0x235838(0x176)](_0x5b91f4),_0x3d4241=new _0x35b3e7(this[_0x235838(0x158)],{'label':_0x119d46[_0x235838(0x147)],'class':Kr});return _0x3d4241[_0x235838(0x177)][_0x235838(0x14a)](_0x2e6a61,0x0),_0x3d4241;}[_0x1090b2(0x176)](_0x3bc546){const _0xe86aed=_0x1090b2,_0x1c1502=new _0x30be56(this[_0xe86aed(0x158)]);return _0x1c1502[_0xe86aed(0x14e)]({'icon':_0x3188a7,'tooltip':_0x8da239(this[_0xe86aed(0x158)],_0xe86aed(0x15e)),'tooltipPosition':'n','class':Xr}),_0x1c1502['on'](_0xe86aed(0x143),()=>{const _0x39426b=_0xe86aed;_0x3bc546[_0x39426b(0x178)](),this[_0x39426b(0x160)][_0x39426b(0x15a)]();}),_0x1c1502;}[_0x1090b2(0x159)](_0x41d3ea){const _0x55bfaf=_0x1090b2,_0x10aada=new _0x66baeb(this[_0x55bfaf(0x158)],{'source':_0x41d3ea,'searchInputVisibleFrom':this[_0x55bfaf(0x160)][_0x55bfaf(0x16f)]});return _0x10aada['on'](_0x55bfaf(0x153),(_0x528826,_0x38bbe8)=>{const _0x4e0574=_0x55bfaf;this[_0x4e0574(0x160)][_0x4e0574(0x146)](_0x38bbe8);}),_0x10aada['on'](_0x55bfaf(0x15f),(_0x31f2a8,_0x43c0bf)=>{const _0x3a0c29=_0x55bfaf;this[_0x3a0c29(0x160)][_0x3a0c29(0x169)](_0x43c0bf[_0x3a0c29(0x151)],_0x43c0bf[_0x3a0c29(0x163)]),this[_0x3a0c29(0x17e)](_0x41d3ea['id']);}),_0x10aada;}[_0x1090b2(0x17a)](_0x24e3d9){const _0x47928c=_0x1090b2,_0x2fd943=_0x24e3d9[_0x47928c(0x168)][_0x47928c(0x16a)](0x1);return _0x2fd943 instanceof _0x66baeb?_0x2fd943:null;}[_0x1090b2(0x145)](_0x143005){const _0x5c8c56=_0x1090b2;_0x23e168({'emitter':_0x143005,'contextElements':[_0x143005[_0x5c8c56(0x144)]],'callback':()=>{const _0x52917e=_0x5c8c56;_0x143005[_0x52917e(0x178)](),this[_0x52917e(0x160)][_0x52917e(0x171)]();},'activator':()=>_0x143005[_0x5c8c56(0x166)]});}}function _0x3a5b(){const _0x327ab0=['change:isLoading','show','_locale','_createBalloonResourcesView','onBackToContext','155FiSeYf','destroy','setResources','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','addResourceToContext','_config','clear','delete','resource','updateResourceState','_sourceResourceBalloons','isVisible','360408zaNKcc','content','onResourceSelected','get','isAnyResourceBalloonVisible','populateSourceResourceBalloon','ck-button-icon\x20ck-button-back','1544eDppTv','searchInputVisibleFrom','ck-ai-chat-context-controls__source-balloon-panel','onBalloonClosed','_createBalloonHeader','278964JZUeiC','1421145yzUAcs','_bodyCollection','_createBackButton','children','hide','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','_getResourcesViewFromBalloon','extendTemplate','_addSourceResourceContent','pin','closeSourceResourceBalloon','158778QwPlfc','11Ustozm','execute','element','_setupSingleResourceBalloonClickOutsideHandler','onLoadSourceResources','label','showSourceResourcesBalloon','60136DDIuLv','add','6UxQPDA','getTargetElement','getLimiterElement','set','once','_createSourceResourceBalloonPanel','source','values','loadSourceResources','9150820WdwlaE','280CdoJrz'];_0x3a5b=function(){return _0x327ab0;};return _0x3a5b();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x5491f6,IconView as _0x39199b,LabeledFieldView as _0x588aa2,createLabeledInputText as _0x3d7163}from'ckeditor5/src/ui.js';import{IconLoupe as _0x181036,IconCancel as _0x4f6835}from'ckeditor5/src/icons.js';import{getTranslation as _0x237b4c}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x588aa2{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x48bbfd){const t=_0x48bbfd['t'],_0x2af1e7={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x3d7163,'label':_0x237b4c(_0x48bbfd,'AI_CHAT_SEARCH_RESOURCES')};super(_0x48bbfd,_0x2af1e7['creator']),this['label']=_0x2af1e7['label'],this['_viewConfig']=_0x2af1e7,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x48bbfd,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x3371c7){this['fire']('search',_0x3371c7);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x39199b(),this['iconView']['content']=_0x181036,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x77b46b,t){this['resetButtonView']=new _0x5491f6(_0x77b46b),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x4f6835,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x416f07=>!_0x416f07),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
23
+ import{ButtonView as _0x3bb23e,IconView as _0x5d279c,LabeledFieldView as _0x98592b,createLabeledInputText as _0x596adc}from'ckeditor5/src/ui.js';import{IconLoupe as _0x3f97e8,IconCancel as _0x3f467b}from'ckeditor5/src/icons.js';import{getTranslation as _0x247081}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x98592b{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x145051){const t=_0x145051['t'],_0x3fc48b={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x596adc,'label':_0x247081(_0x145051,'AI_CHAT_SEARCH_RESOURCES')};super(_0x145051,_0x3fc48b['creator']),this['label']=_0x3fc48b['label'],this['_viewConfig']=_0x3fc48b,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x145051,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x2ff8a5){this['fire']('search',_0x2ff8a5);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x5d279c(),this['iconView']['content']=_0x3f97e8,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x3e9e46,t){this['resetButtonView']=new _0x3bb23e(_0x3e9e46),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x3f467b,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x88536d=>!_0x88536d),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x31ea27=_0x4c2c;function _0x54ad(){const _0x3d35e8=['27610GvpSRO','133947jLGttP','ck-ai-chat__feed__interaction-header__capabilities','add','588taUirz','243114sCgsTO','392DFmLNt','children','div','content','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','101976gSVilR','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','ck-hidden','extendTemplate','22572MasvOG','push','694AqcImT','12820ZcvsDI','96jxVFCe','1232JnmWCS','setTemplate','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','capabilities','span','ck-ai-chat__feed__interaction-header__capabilities__text','ck-ai-chat__feed__interaction-header'];_0x54ad=function(){return _0x3d35e8;};return _0x54ad();}function _0x4c2c(_0x3141e9,_0x15c5bb){const _0x54ad53=_0x54ad();return _0x4c2c=function(_0x4c2c4f,_0x22394b){_0x4c2c4f=_0x4c2c4f-0x88;let _0x377764=_0x54ad53[_0x4c2c4f];return _0x377764;},_0x4c2c(_0x3141e9,_0x15c5bb);}(function(_0x2a3e5b,_0x108422){const _0x5e0aa0=_0x4c2c,_0x4f3b9e=_0x2a3e5b();while(!![]){try{const _0x112f7a=parseInt(_0x5e0aa0(0x88))/0x1*(parseInt(_0x5e0aa0(0x95))/0x2)+-parseInt(_0x5e0aa0(0xa0))/0x3+parseInt(_0x5e0aa0(0x8a))/0x4*(-parseInt(_0x5e0aa0(0x96))/0x5)+-parseInt(_0x5e0aa0(0x89))/0x6+parseInt(_0x5e0aa0(0x8f))/0x7+-parseInt(_0x5e0aa0(0x97))/0x8*(parseInt(_0x5e0aa0(0x93))/0x9)+parseInt(_0x5e0aa0(0x9f))/0xa*(parseInt(_0x5e0aa0(0x98))/0xb);if(_0x112f7a===_0x108422)break;else _0x4f3b9e['push'](_0x4f3b9e['shift']());}catch(_0x530640){_0x4f3b9e['push'](_0x4f3b9e['shift']());}}}(_0x54ad,0x27614));import{IconBulb as _0x1a6657,IconWeb as _0x4403dc}from'@ckeditor/ckeditor5-icons';import{IconView as _0x1a318d,View as _0x10ac58}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x54f4f0}from'./aichatfeeditemview.js';import{getTranslation as _0x1372ff}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x54f4f0{[_0x31ea27(0x9b)];constructor(_0x3a1e1a,_0x211c5f){const _0x272afe=_0x31ea27;super(_0x211c5f);const {isWebSearchEnabled:_0x117bed,isReasoningEnabled:_0x38b247}=_0x211c5f[_0x272afe(0x9b)],_0x59c7b4=[];let _0x4bb8a1='';_0x117bed&&_0x38b247?(_0x4bb8a1=_0x1372ff(_0x3a1e1a,_0x272afe(0x90)),_0x59c7b4[_0x272afe(0x94)](aa(_0x4403dc)),_0x59c7b4[_0x272afe(0x94)](aa(_0x1a6657))):_0x117bed?(_0x4bb8a1=_0x1372ff(_0x3a1e1a,_0x272afe(0x8e)),_0x59c7b4[_0x272afe(0x94)](aa(_0x4403dc))):_0x38b247&&(_0x4bb8a1=_0x1372ff(_0x3a1e1a,_0x272afe(0x9a)),_0x59c7b4[_0x272afe(0x94)](aa(_0x1a6657))),this[_0x272afe(0x92)]({'attributes':{'class':[_0x272afe(0x9e),_0x4bb8a1?'':_0x272afe(0x91)]}});const _0x6fff28=new _0x10ac58();_0x6fff28[_0x272afe(0x99)]({'tag':_0x272afe(0x8c),'attributes':{'class':['ck',_0x272afe(0xa1)]},'children':[..._0x59c7b4,{'tag':_0x272afe(0x9c),'attributes':{'class':[_0x272afe(0x9d)]},'children':[_0x4bb8a1]}]}),this[_0x272afe(0x8b)][_0x272afe(0xa2)](_0x6fff28),this[_0x272afe(0x9b)]=_0x211c5f[_0x272afe(0x9b)];}}function aa(_0x4bb9ea){const _0x1cc0f5=_0x31ea27,_0x48cd0e=new _0x1a318d();return _0x48cd0e[_0x1cc0f5(0x8d)]=_0x4bb9ea,_0x48cd0e;}
23
+ const _0x15a767=_0xa4e5;function _0xa4e5(_0x3157b7,_0x5a6c5b){const _0x2d07e0=_0x2d07();return _0xa4e5=function(_0xa4e598,_0x2e6b0){_0xa4e598=_0xa4e598-0x17f;let _0x14a453=_0x2d07e0[_0xa4e598];return _0x14a453;},_0xa4e5(_0x3157b7,_0x5a6c5b);}(function(_0x1e21b0,_0x58ec30){const _0x5db618=_0xa4e5,_0x3eff98=_0x1e21b0();while(!![]){try{const _0x57dc8a=-parseInt(_0x5db618(0x190))/0x1*(-parseInt(_0x5db618(0x191))/0x2)+parseInt(_0x5db618(0x183))/0x3*(parseInt(_0x5db618(0x18e))/0x4)+-parseInt(_0x5db618(0x180))/0x5+parseInt(_0x5db618(0x196))/0x6*(-parseInt(_0x5db618(0x195))/0x7)+-parseInt(_0x5db618(0x186))/0x8+-parseInt(_0x5db618(0x18b))/0x9+parseInt(_0x5db618(0x193))/0xa;if(_0x57dc8a===_0x58ec30)break;else _0x3eff98['push'](_0x3eff98['shift']());}catch(_0x3ea307){_0x3eff98['push'](_0x3eff98['shift']());}}}(_0x2d07,0xebb12));import{IconBulb as _0x2bde51,IconWeb as _0x295721}from'@ckeditor/ckeditor5-icons';import{IconView as _0x53586f,View as _0x2a1e77}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0xe691cd}from'./aichatfeeditemview.js';function _0x2d07(){const _0x271dfc=['ck-ai-chat__feed__interaction-header','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','13946850lhqZgk','children','ck-ai-chat__feed__interaction-header__capabilities__text','12LqTUvu','add','674051YCpnkV','2MnDGfs','setTemplate','68500000IsaNrH','extendTemplate','168JYdoaq','371370eaPZgx','push','ck-ai-chat__feed__interaction-header__capabilities','content','9252070OGFjWk','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','span','187974FlhPkV','capabilities','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','14888696hhQnoS','div','ck-hidden'];_0x2d07=function(){return _0x271dfc;};return _0x2d07();}import{getTranslation as _0x2ed44f}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0xe691cd{[_0x15a767(0x184)];constructor(_0xdac9ca,_0x585202){const _0x86dece=_0x15a767;super(_0x585202);const {isWebSearchEnabled:_0x32912e,isReasoningEnabled:_0x3e2f15}=_0x585202[_0x86dece(0x184)],_0x3d2923=[];let _0x18c91b='';_0x32912e&&_0x3e2f15?(_0x18c91b=_0x2ed44f(_0xdac9ca,_0x86dece(0x18a)),_0x3d2923[_0x86dece(0x197)](aa(_0x295721)),_0x3d2923[_0x86dece(0x197)](aa(_0x2bde51))):_0x32912e?(_0x18c91b=_0x2ed44f(_0xdac9ca,_0x86dece(0x185)),_0x3d2923[_0x86dece(0x197)](aa(_0x295721))):_0x3e2f15&&(_0x18c91b=_0x2ed44f(_0xdac9ca,_0x86dece(0x181)),_0x3d2923[_0x86dece(0x197)](aa(_0x2bde51))),this[_0x86dece(0x194)]({'attributes':{'class':[_0x86dece(0x189),_0x18c91b?'':_0x86dece(0x188)]}});const _0xe11510=new _0x2a1e77();_0xe11510[_0x86dece(0x192)]({'tag':_0x86dece(0x187),'attributes':{'class':['ck',_0x86dece(0x198)]},'children':[..._0x3d2923,{'tag':_0x86dece(0x182),'attributes':{'class':[_0x86dece(0x18d)]},'children':[_0x18c91b]}]}),this[_0x86dece(0x18c)][_0x86dece(0x18f)](_0xe11510),this[_0x86dece(0x184)]=_0x585202[_0x86dece(0x184)];}}function aa(_0x33d497){const _0x62a89d=_0x15a767,_0x56eeea=new _0x53586f();return _0x56eeea[_0x62a89d(0x17f)]=_0x33d497,_0x56eeea;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x342f9c=_0x2d01;(function(_0x29f872,_0x1e0fec){const _0x358b73=_0x2d01,_0x35fcda=_0x29f872();while(!![]){try{const _0x253a96=-parseInt(_0x358b73(0x1d6))/0x1+parseInt(_0x358b73(0x1c0))/0x2+-parseInt(_0x358b73(0x1d8))/0x3*(parseInt(_0x358b73(0x1d3))/0x4)+parseInt(_0x358b73(0x1d9))/0x5*(parseInt(_0x358b73(0x1d0))/0x6)+-parseInt(_0x358b73(0x1e0))/0x7+-parseInt(_0x358b73(0x1d4))/0x8*(parseInt(_0x358b73(0x1c1))/0x9)+-parseInt(_0x358b73(0x1d5))/0xa*(-parseInt(_0x358b73(0x1c2))/0xb);if(_0x253a96===_0x1e0fec)break;else _0x35fcda['push'](_0x35fcda['shift']());}catch(_0x44eabf){_0x35fcda['push'](_0x35fcda['shift']());}}}(_0x189e,0xaa002));function _0x189e(){const _0xe21e2a=['ck-reset_all-excluded','1854dAgbuQ','static','innerHTML','20BJlhYV','48uYPywD','410qSYrBB','488744ynUOBZ','initialContent','774465fhRupA','8475MurvcN','children','ck-ai-chat__feed__ai-reply','balloonPanelView','options','updateContent','extendTemplate','2759127cTanve','isVisible','replyContainer','updateSources','addMany','1175004wAcvpC','1277649TNrMRF','700381ovziJv','render','setTemplate','element','ck-ai-chat__feed__ai-reply-container','map','_bodyCollection','streaming','streamIntoElement','div','add','locale','markAsDone'];_0x189e=function(){return _0xe21e2a;};return _0x189e();}import{AIChatFeedItemView as _0x4ea9b2}from'./aichatfeeditemview.js';import{parse as _0xad4b24,render as _0x2c5e4d}from'../../../aicore/utils/htmlparser.js';function _0x2d01(_0x2d96d3,_0x309e4e){const _0x189e73=_0x189e();return _0x2d01=function(_0x2d0100,_0x3de173){_0x2d0100=_0x2d0100-0x1bd;let _0x468ba6=_0x189e73[_0x2d0100];return _0x468ba6;},_0x2d01(_0x2d96d3,_0x309e4e);}import{View as _0x434b7e}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0xe45891,AIWebSourceView as _0x1f7b40}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0x4ea9b2{[_0x342f9c(0x1bd)];[_0x342f9c(0x1c8)];constructor(_0x3b8be5,_0x17750d,_0x209bde){const _0x25c3de=_0x342f9c;super(_0x17750d),this[_0x25c3de(0x1c8)]=_0x209bde,this[_0x25c3de(0x1cd)]=_0x3b8be5,this[_0x25c3de(0x1df)]({'attributes':{'class':[_0x25c3de(0x1db)]}}),this[_0x25c3de(0x1bd)]=new _0x434b7e(),this[_0x25c3de(0x1bd)][_0x25c3de(0x1c4)]({'tag':_0x25c3de(0x1cb),'attributes':{'class':['ck',_0x25c3de(0x1cf),_0x25c3de(0x1c6)]}}),this[_0x25c3de(0x1da)][_0x25c3de(0x1cc)](this[_0x25c3de(0x1bd)]);}async[_0x342f9c(0x1c3)](){const _0x119300=_0x342f9c;super[_0x119300(0x1c3)](),this[_0x119300(0x1dd)][_0x119300(0x1d7)]&&(await this[_0x119300(0x1de)]({'parsedContent':_0xad4b24(this[_0x119300(0x1dd)][_0x119300(0x1d7)]),'renderingStrategy':_0x119300(0x1d1)}),this[_0x119300(0x1ce)]());}async[_0x342f9c(0x1de)]({parsedContent:_0x1dddb0,renderingStrategy:_0x2f2c1a,abortSignal:_0x4755c6}){const _0x372668=_0x342f9c;_0x372668(0x1c9)===_0x2f2c1a?await this[_0x372668(0x1ca)](_0x1dddb0,this[_0x372668(0x1bd)][_0x372668(0x1c5)],_0x4755c6):this[_0x372668(0x1bd)][_0x372668(0x1c5)][_0x372668(0x1d2)]=_0x2c5e4d(_0x1dddb0);}[_0x342f9c(0x1be)](_0x38078a){const _0x1350bb=_0x342f9c,_0x10e544=new _0xe45891(this[_0x1350bb(0x1cd)],this[_0x1350bb(0x1c8)]);_0x10e544[_0x1350bb(0x1da)][_0x1350bb(0x1bf)](_0x38078a[_0x1350bb(0x1c7)](_0x332d0f=>new _0x1f7b40(this[_0x1350bb(0x1cd)],_0x332d0f,_0x10e544[_0x1350bb(0x1dc)]))),_0x10e544[_0x1350bb(0x1e1)]=!0x0,this[_0x1350bb(0x1da)][_0x1350bb(0x1cc)](_0x10e544);}}
23
+ function _0x21a4(_0x25f350,_0x24d85a){const _0x56c866=_0x56c8();return _0x21a4=function(_0x21a430,_0x1b2bb8){_0x21a430=_0x21a430-0x11c;let _0xdea60d=_0x56c866[_0x21a430];return _0xdea60d;},_0x21a4(_0x25f350,_0x24d85a);}const _0x3729de=_0x21a4;(function(_0x5f2a18,_0x51118b){const _0x5d94b5=_0x21a4,_0x38f6a6=_0x5f2a18();while(!![]){try{const _0x438c29=-parseInt(_0x5d94b5(0x137))/0x1+-parseInt(_0x5d94b5(0x120))/0x2+-parseInt(_0x5d94b5(0x121))/0x3+-parseInt(_0x5d94b5(0x11d))/0x4+-parseInt(_0x5d94b5(0x130))/0x5*(-parseInt(_0x5d94b5(0x12f))/0x6)+parseInt(_0x5d94b5(0x12b))/0x7*(parseInt(_0x5d94b5(0x13c))/0x8)+-parseInt(_0x5d94b5(0x12d))/0x9*(-parseInt(_0x5d94b5(0x134))/0xa);if(_0x438c29===_0x51118b)break;else _0x38f6a6['push'](_0x38f6a6['shift']());}catch(_0x557024){_0x38f6a6['push'](_0x38f6a6['shift']());}}}(_0x56c8,0x9f4fb));function _0x56c8(){const _0x3f859c=['ck-ai-chat__feed__ai-reply','_bodyCollection','1229720KgeqoY','isVisible','children','streaming','locale','8XFnxpS','options','map','setTemplate','updateSources','854496gPOhcl','replyContainer','markAsDone','666376WRBfCH','3086340RatWSK','ck-ai-chat__feed__ai-reply-container','updateContent','addMany','streamIntoElement','balloonPanelView','add','ck-reset_all-excluded','innerHTML','element','3846962SUTvJk','static','24706557sLzBrD','div','122334ldcQZv','40JTFnpS','render','extendTemplate','initialContent','10PPJAqa'];_0x56c8=function(){return _0x3f859c;};return _0x56c8();}import{AIChatFeedItemView as _0x8163bd}from'./aichatfeeditemview.js';import{parse as _0x2bbb38,render as _0x29ba0d}from'../../../aicore/utils/htmlparser.js';import{View as _0x52cb2a}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x3a4f4f,AIWebSourceView as _0x26cb67}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0x8163bd{[_0x3729de(0x11e)];[_0x3729de(0x136)];constructor(_0x3c2a96,_0x36dd91,_0x597e5c){const _0x1bdd0b=_0x3729de;super(_0x36dd91),this[_0x1bdd0b(0x136)]=_0x597e5c,this[_0x1bdd0b(0x13b)]=_0x3c2a96,this[_0x1bdd0b(0x132)]({'attributes':{'class':[_0x1bdd0b(0x135)]}}),this[_0x1bdd0b(0x11e)]=new _0x52cb2a(),this[_0x1bdd0b(0x11e)][_0x1bdd0b(0x13f)]({'tag':_0x1bdd0b(0x12e),'attributes':{'class':['ck',_0x1bdd0b(0x128),_0x1bdd0b(0x122)]}}),this[_0x1bdd0b(0x139)][_0x1bdd0b(0x127)](this[_0x1bdd0b(0x11e)]);}async[_0x3729de(0x131)](){const _0x4496d8=_0x3729de;super[_0x4496d8(0x131)](),this[_0x4496d8(0x13d)][_0x4496d8(0x133)]&&(await this[_0x4496d8(0x123)]({'parsedContent':_0x2bbb38(this[_0x4496d8(0x13d)][_0x4496d8(0x133)]),'renderingStrategy':_0x4496d8(0x12c)}),this[_0x4496d8(0x11f)]());}async[_0x3729de(0x123)]({parsedContent:_0x2b11e4,renderingStrategy:_0x347fa2,abortSignal:_0x5f01de}){const _0x57cd1c=_0x3729de;_0x57cd1c(0x13a)===_0x347fa2?await this[_0x57cd1c(0x125)](_0x2b11e4,this[_0x57cd1c(0x11e)][_0x57cd1c(0x12a)],_0x5f01de):this[_0x57cd1c(0x11e)][_0x57cd1c(0x12a)][_0x57cd1c(0x129)]=_0x29ba0d(_0x2b11e4);}[_0x3729de(0x11c)](_0x4a3e67){const _0x2f4ac9=_0x3729de,_0x59feae=new _0x3a4f4f(this[_0x2f4ac9(0x13b)],this[_0x2f4ac9(0x136)]);_0x59feae[_0x2f4ac9(0x139)][_0x2f4ac9(0x124)](_0x4a3e67[_0x2f4ac9(0x13e)](_0x3eca0d=>new _0x26cb67(this[_0x2f4ac9(0x13b)],_0x3eca0d,_0x59feae[_0x2f4ac9(0x126)]))),_0x59feae[_0x2f4ac9(0x138)]=!0x0,this[_0x2f4ac9(0x139)][_0x2f4ac9(0x127)](_0x59feae);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fc1cb=_0x1e5e;(function(_0x2d2f9f,_0x1bbf98){const _0x28b73c=_0x1e5e,_0x485db7=_0x2d2f9f();while(!![]){try{const _0x421fd5=-parseInt(_0x28b73c(0xa2))/0x1*(-parseInt(_0x28b73c(0xf3))/0x2)+parseInt(_0x28b73c(0xb3))/0x3+parseInt(_0x28b73c(0xe7))/0x4+parseInt(_0x28b73c(0xe4))/0x5*(parseInt(_0x28b73c(0xa6))/0x6)+parseInt(_0x28b73c(0xb2))/0x7*(parseInt(_0x28b73c(0xcf))/0x8)+parseInt(_0x28b73c(0xbb))/0x9+-parseInt(_0x28b73c(0xa9))/0xa;if(_0x421fd5===_0x1bbf98)break;else _0x485db7['push'](_0x485db7['shift']());}catch(_0x4b6142){_0x485db7['push'](_0x485db7['shift']());}}}(_0x75ac,0xc54bb));import{KeystrokeHandler as _0xf9a699}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x124eed,BodyCollection as _0x24e283,ButtonView as _0xf28eb2,clickOutsideHandler as _0x32c833,ListItemButtonView as _0x112e11,ListItemView as _0x5012b0,ListView as _0x1aa4c1,SplitButtonView as _0x1e5b0b,UIModel as _0x1a6c1f,View as _0x18d1fb}from'ckeditor5/src/ui.js';import{IconCheck as _0x33fba2,IconAddComment as _0x38c76f,IconDocumentWithLoupe as _0x4a8d26}from'ckeditor5/src/icons.js';function _0x75ac(){const _0x1fa01c=['esc','updateLabels','hide','div','tooltip','destroy','isVisible','2049286QcAugJ','ck-ai-chat__feed__ai-suggestion__actions','showChangeInTextModel','source','ltr','showChangeInText','_updateDropdownActions','setTemplate','fire','_dropdownCurrentConfig','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','_createActionsDropdown','bind','focus','_firstRender','1IkkRuo','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','isTrackChangesOn','keys','2728926XNcptN','ck-ai-chat__feed__ai-suggestion__actions__balloon','actionsButton','41536310OQpmsK','balloonPanelClass','isEnabled','listView','left','actionName','locale','detachFromDom','label','14JuIKXg','744612WQrHLT','bottom','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','arrowless','_createActionsDropdownOrButton','ck-ai-chat__feed__ai-suggestion__actions\x20','_createActionsButton','execute','2362248fqTXIw','attachToDom','applySuggestionModel','items','class','keystrokeHandler','_dropdownOriginalConfig','set','unbind','button','createCollection','slice','open','_setUpKeystrokes','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','add','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','children','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','ck-hidden','5129848udBWQF','_setUpList','uiLanguageDirection','filter','listenTo','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','length','_partsCount','delegate','width','map','balloonPanelView','listItemModels','bodyCollection','ck-ai-chat__feed__ai-suggestion__actions--no-animation','ck-ai-button-primary','element','insertSuggestion','bindTemplate','change:isTrackChangesOn','content','15VEImTu','remove','applySuggestion','3118040THtWIL','arrowView','pin','has','insertSuggestionModel'];_0x75ac=function(){return _0x1fa01c;};return _0x75ac();}import{getTranslation as _0x3ef164}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x3fc1cb(0xe6),_0x3fc1cb(0xe0),_0x3fc1cb(0xf8)];export class AIChatFeedSuggestionItemActionsView extends _0x18d1fb{[_0x3fc1cb(0xa8)];[_0x3fc1cb(0xcc)];[_0x3fc1cb(0xbd)];[_0x3fc1cb(0xf5)];[_0x3fc1cb(0xeb)];[_0x3fc1cb(0xd6)]=0x1;[_0x3fc1cb(0xc1)];[_0x3fc1cb(0x9c)];[_0x3fc1cb(0xa1)]=!0x0;constructor(_0x10b3fd,_0x1555eb){const _0x47bfc8=_0x3fc1cb;super(_0x10b3fd),this[_0x47bfc8(0xc1)]=_0x1555eb||[...AI_REPLY_ACTIONS],this[_0x47bfc8(0x9c)]=[...this[_0x47bfc8(0xc1)]];const _0x223679=this[_0x47bfc8(0xe1)];this[_0x47bfc8(0xc2)](_0x47bfc8(0xab),!0x0),this[_0x47bfc8(0xc2)](_0x47bfc8(0xf2),!0x0),this[_0x47bfc8(0xc2)](_0x47bfc8(0xa4),!0x1),this[_0x47bfc8(0xbd)]=new _0x1a6c1f({'label':Pn(_0x47bfc8(0xe6),_0x10b3fd,this[_0x47bfc8(0xd6)]),'icon':_0x33fba2,'withText':!0x0,'type':_0x47bfc8(0xc4),'actionName':_0x47bfc8(0xe6)}),this[_0x47bfc8(0xf5)]=new _0x1a6c1f({'label':Pn(_0x47bfc8(0xf8),_0x10b3fd,this[_0x47bfc8(0xd6)]),'icon':_0x4a8d26,'withText':!0x0,'type':_0x47bfc8(0xc4),'actionName':_0x47bfc8(0xf8)}),this[_0x47bfc8(0xeb)]=new _0x1a6c1f({'label':Pn(_0x47bfc8(0xe0),_0x10b3fd,this[_0x47bfc8(0xd6)]),'icon':_0x38c76f,'withText':!0x0,'type':_0x47bfc8(0xc4),'actionName':_0x47bfc8(0xe0)}),this[_0x47bfc8(0xa8)]=this[_0x47bfc8(0xb7)](_0x10b3fd),this[_0x47bfc8(0xcc)]=this[_0x47bfc8(0xc5)](),this[_0x47bfc8(0xa8)]&&this[_0x47bfc8(0xcc)][_0x47bfc8(0xca)](this[_0x47bfc8(0xa8)]),this[_0x47bfc8(0x9a)]({'tag':_0x47bfc8(0xef),'attributes':{'class':['ck',_0x47bfc8(0xf4),_0x223679['if'](_0x47bfc8(0xf2),_0x47bfc8(0xce),_0xbb34b9=>!_0xbb34b9)]},'children':this[_0x47bfc8(0xcc)]}),this['on'](_0x47bfc8(0xe2),()=>{const _0x5ec32c=_0x47bfc8;this[_0x5ec32c(0x9c)]=this[_0x5ec32c(0xa4)]?this[_0x5ec32c(0xc1)][_0x5ec32c(0xd2)](_0x265448=>_0x5ec32c(0xe6)!==_0x265448):[...this[_0x5ec32c(0xc1)]],this[_0x5ec32c(0xf9)](_0x10b3fd);});}[_0x3fc1cb(0xf9)](_0x57c927){const _0x58878e=_0x3fc1cb;this[_0x58878e(0xa8)]&&this[_0x58878e(0xcc)][_0x58878e(0xea)](this[_0x58878e(0xa8)])&&(this[_0x58878e(0xcc)][_0x58878e(0xe5)](this[_0x58878e(0xa8)]),this[_0x58878e(0xa8)][_0x58878e(0xf1)]()),this[_0x58878e(0xa8)]=this[_0x58878e(0xb7)](_0x57c927),this[_0x58878e(0xa8)]&&this[_0x58878e(0xcc)][_0x58878e(0xca)](this[_0x58878e(0xa8)]);}[_0x3fc1cb(0xb7)](_0xb8686){const _0x3f038d=_0x3fc1cb;if(0x0==this[_0x3f038d(0x9c)][_0x3f038d(0xd5)])return null;const _0x5dde0f=0x1===this[_0x3f038d(0x9c)][_0x3f038d(0xd5)]?this[_0x3f038d(0xb9)](_0xb8686):this[_0x3f038d(0x9e)](_0xb8686),_0x1f3fe1=this[_0x3f038d(0xa1)]?'':_0x3f038d(0xdd);_0x5dde0f[_0x3f038d(0xc2)]({'label':Pn(this[_0x3f038d(0x9c)][0x0],_0xb8686,this[_0x3f038d(0xd6)]),'tooltip':Hn(this[_0x3f038d(0x9c)][0x0],_0xb8686,this[_0x3f038d(0xd6)]),'withText':!0x0,'class':_0x3f038d(0xb8)+_0x1f3fe1});for(const _0x3a328e of this[_0x3f038d(0x9c)])_0x5dde0f['on'](_0x3a328e,()=>{const _0x47059d=_0x3f038d;this[_0x47059d(0x9b)](_0x3a328e);});return this[_0x3f038d(0xa1)]=!0x1,_0x5dde0f;}[_0x3fc1cb(0xb9)](_0x2531c4){const _0x50ce79=_0x3fc1cb,_0x3b1cd1=new _0xf28eb2(_0x2531c4);return _0x3b1cd1[_0x50ce79(0xc2)]({'class':_0x50ce79(0xde),'withText':!0x0}),_0x3b1cd1['on'](_0x50ce79(0xba),()=>{const _0x1180a3=_0x50ce79;_0x3b1cd1[_0x1180a3(0x9b)](this[_0x1180a3(0x9c)][0x0]);}),_0x3b1cd1;}[_0x3fc1cb(0x9e)](_0x2b1a56){const _0x3ebae5=_0x3fc1cb,_0x21fb27=new Nn(_0x2b1a56,{'listItemModels':this[_0x3ebae5(0x9c)][_0x3ebae5(0xd9)](_0x33f9f6=>{const _0x2d0e74=_0x3ebae5;switch(_0x33f9f6){case _0x2d0e74(0xe6):return this[_0x2d0e74(0xbd)];case _0x2d0e74(0xf8):return this[_0x2d0e74(0xf5)];case _0x2d0e74(0xe0):return this[_0x2d0e74(0xeb)];}})});return _0x21fb27[_0x3ebae5(0xc2)]({'label':Pn(this[_0x3ebae5(0x9c)][0x0],_0x2b1a56,this[_0x3ebae5(0xd6)]),'tooltip':Hn(this[_0x3ebae5(0x9c)][0x0],_0x2b1a56,this[_0x3ebae5(0xd6)]),'withText':!0x0,'class':_0x3ebae5(0xf4),'balloonPanelClass':_0x3ebae5(0xa7)}),_0x21fb27[_0x3ebae5(0x9f)](_0x3ebae5(0xab))['to'](this),_0x21fb27;}[_0x3fc1cb(0xed)](_0x42fa1a){const _0x23b219=_0x3fc1cb,_0x609a1f=this[_0x23b219(0xaf)];this[_0x23b219(0xd6)]=_0x42fa1a||this[_0x23b219(0xd6)],this[_0x23b219(0xa8)][_0x23b219(0xc2)]({'label':Pn(this[_0x23b219(0x9c)][0x0],_0x609a1f,this[_0x23b219(0xd6)]),'tooltip':Hn(this[_0x23b219(0x9c)][0x0],_0x609a1f,this[_0x23b219(0xd6)])}),this[_0x23b219(0xbd)][_0x23b219(0xb1)]=Pn(_0x23b219(0xe6),_0x609a1f,this[_0x23b219(0xd6)]),this[_0x23b219(0xf5)][_0x23b219(0xb1)]=Pn(_0x23b219(0xf8),_0x609a1f,this[_0x23b219(0xd6)]),this[_0x23b219(0xeb)][_0x23b219(0xb1)]=Pn(_0x23b219(0xe0),_0x609a1f,this[_0x23b219(0xd6)]);}}class Nn extends _0x1e5b0b{[_0x3fc1cb(0xdc)];[_0x3fc1cb(0xda)];[_0x3fc1cb(0xac)];[_0x3fc1cb(0xc0)];constructor(_0x4c72d2,_0x4372fe){const _0x2d21a5=_0x3fc1cb;super(_0x4c72d2),this[_0x2d21a5(0xda)]=new _0x124eed(this[_0x2d21a5(0xaf)]),this[_0x2d21a5(0xdc)]=new _0x24e283(this[_0x2d21a5(0xaf)]),this[_0x2d21a5(0xdc)][_0x2d21a5(0xbc)](),this[_0x2d21a5(0xc2)](_0x2d21a5(0xaa),''),this[_0x2d21a5(0xda)][_0x2d21a5(0x9f)](_0x2d21a5(0xbf))['to'](this,_0x2d21a5(0xaa)),this[_0x2d21a5(0xac)]=this[_0x2d21a5(0xd0)](_0x4372fe[_0x2d21a5(0xdb)][_0x2d21a5(0xc6)](0x1)),this[_0x2d21a5(0xdc)][_0x2d21a5(0xca)](this[_0x2d21a5(0xda)]),this[_0x2d21a5(0xda)][_0x2d21a5(0xe3)][_0x2d21a5(0xca)](this[_0x2d21a5(0xac)]),this[_0x2d21a5(0xe8)][_0x2d21a5(0xc3)](_0x2d21a5(0xf0)),this[_0x2d21a5(0xe8)][_0x2d21a5(0xc2)](_0x2d21a5(0xf0),_0x3ef164(this[_0x2d21a5(0xaf)],_0x2d21a5(0xb5))),this[_0x2d21a5(0xc8)](),this['on'](_0x2d21a5(0xba),()=>{const _0x5ebe2f=_0x2d21a5,_0x44f1e3=_0x4372fe[_0x5ebe2f(0xdb)][0x0][_0x5ebe2f(0xae)];this[_0x5ebe2f(0x9b)](_0x44f1e3),this[_0x5ebe2f(0xda)][_0x5ebe2f(0xee)](),this[_0x5ebe2f(0xe8)][_0x5ebe2f(0xa0)]();}),this['on'](_0x2d21a5(0xc7),()=>{const _0x228669=_0x2d21a5;this[_0x228669(0xda)][_0x228669(0xf2)]?(this[_0x228669(0xda)][_0x228669(0xee)](),this[_0x228669(0xe8)][_0x228669(0xa0)]()):(this[_0x228669(0xda)][_0x228669(0xe9)]({'target':this[_0x228669(0xdf)],'positions':[_0x228669(0xf7)===this[_0x228669(0xaf)][_0x228669(0xd1)]?Gn:yn]}),this[_0x228669(0xac)][_0x228669(0xa0)]());}),_0x32c833({'emitter':this[_0x2d21a5(0xda)],'callback':()=>{const _0x14c6fc=_0x2d21a5;this[_0x14c6fc(0xda)][_0x14c6fc(0xee)]();},'activator':()=>this[_0x2d21a5(0xda)][_0x2d21a5(0xf2)],'contextElements':()=>[this[_0x2d21a5(0xdf)],this[_0x2d21a5(0xda)][_0x2d21a5(0xdf)]]});}[_0x3fc1cb(0xd0)](_0x434c35){const _0x4f3a7f=_0x3fc1cb,_0x53cfbe=this[_0x4f3a7f(0xaf)],_0x59280b=new _0x1aa4c1(_0x53cfbe);for(const _0x59af4c of _0x434c35){const _0x357b2f=new _0x5012b0(_0x53cfbe),_0x25a906=new _0x112e11(_0x53cfbe);_0x25a906[_0x4f3a7f(0x9f)](...Object[_0x4f3a7f(0xa5)](_0x59af4c))['to'](_0x59af4c),_0x25a906[_0x4f3a7f(0xd7)](_0x4f3a7f(0xba))['to'](_0x59280b),_0x357b2f[_0x4f3a7f(0xcc)][_0x4f3a7f(0xca)](_0x25a906),_0x59280b[_0x4f3a7f(0xbe)][_0x4f3a7f(0xca)](_0x357b2f);}return _0x59280b[_0x4f3a7f(0xbe)][_0x4f3a7f(0xd7)](_0x4f3a7f(0xba))['to'](this),_0x59280b['on'](_0x4f3a7f(0xba),_0x4861ec=>{const _0x37721e=_0x4f3a7f,_0x14aacc=_0x4861ec[_0x37721e(0xf6)];this[_0x37721e(0x9b)](_0x14aacc[_0x37721e(0xae)]),this[_0x37721e(0xda)][_0x37721e(0xee)](),this[_0x37721e(0xe8)][_0x37721e(0xa0)]();}),_0x59280b;}[_0x3fc1cb(0xc8)](){const _0x163258=_0x3fc1cb;this[_0x163258(0xc0)]=new _0xf9a699(),this[_0x163258(0xc0)][_0x163258(0xd3)](this[_0x163258(0xda)][_0x163258(0xdf)]),this[_0x163258(0xc0)][_0x163258(0xc2)](_0x163258(0xec),(_0x400b35,_0x5c7fb7)=>{const _0x144b28=_0x163258;this[_0x144b28(0xda)][_0x144b28(0xee)](),this[_0x144b28(0xe8)][_0x144b28(0xa0)](),_0x5c7fb7();});}[_0x3fc1cb(0xf1)](){const _0xbdfae5=_0x3fc1cb;super[_0xbdfae5(0xf1)](),this[_0xbdfae5(0xc0)][_0xbdfae5(0xf1)](),this[_0xbdfae5(0xda)][_0xbdfae5(0xf1)](),this[_0xbdfae5(0xdc)][_0xbdfae5(0xb0)]();}}function Gn(_0x40e6cf){const _0x289061=_0x3fc1cb;return{'top':_0x40e6cf[_0x289061(0xb4)],'left':_0x40e6cf[_0x289061(0xad)],'name':_0x289061(0xb6),'config':{'withArrow':!0x1}};}function _0x1e5e(_0xe28bb0,_0x13cbc6){const _0x75ace=_0x75ac();return _0x1e5e=function(_0x1e5e4b,_0x47a44d){_0x1e5e4b=_0x1e5e4b-0x9a;let _0x934148=_0x75ace[_0x1e5e4b];return _0x934148;},_0x1e5e(_0xe28bb0,_0x13cbc6);}function yn(_0x4751a6,_0x30abce){const _0x359c4e=_0x3fc1cb;return{'top':_0x4751a6[_0x359c4e(0xb4)],'left':_0x4751a6[_0x359c4e(0xad)]-(_0x30abce[_0x359c4e(0xd8)]-_0x4751a6[_0x359c4e(0xd8)]),'name':_0x359c4e(0xb6),'config':{'withArrow':!0x1}};}function Pn(_0x21abd8,_0x50bf4a,_0x1c8f3d){const _0x1a2a22=_0x3fc1cb;switch(_0x21abd8){case _0x1a2a22(0xe6):return _0x3ef164(_0x50bf4a,_0x1a2a22(0xc9),_0x1c8f3d);case _0x1a2a22(0xf8):return _0x3ef164(_0x50bf4a,_0x1a2a22(0x9d),_0x1c8f3d);case _0x1a2a22(0xe0):return _0x3ef164(_0x50bf4a,_0x1a2a22(0xcb),_0x1c8f3d);}}function Hn(_0x25441f,_0x2ce66b,_0x41b282){const _0x2fbc44=_0x3fc1cb;switch(_0x25441f){case _0x2fbc44(0xe6):return _0x3ef164(_0x2ce66b,_0x2fbc44(0xcd),_0x41b282);case _0x2fbc44(0xf8):return _0x3ef164(_0x2ce66b,_0x2fbc44(0xa3),_0x41b282);case _0x2fbc44(0xe0):return _0x3ef164(_0x2ce66b,_0x2fbc44(0xd4),_0x41b282);}}
23
+ const _0x6f3060=_0xe98c;(function(_0x33e3dd,_0x3c5823){const _0x445054=_0xe98c,_0x57ac5c=_0x33e3dd();while(!![]){try{const _0x7c585d=-parseInt(_0x445054(0x159))/0x1+-parseInt(_0x445054(0x11b))/0x2+parseInt(_0x445054(0x155))/0x3+parseInt(_0x445054(0x131))/0x4*(-parseInt(_0x445054(0x13f))/0x5)+parseInt(_0x445054(0x156))/0x6+parseInt(_0x445054(0x16a))/0x7+-parseInt(_0x445054(0x174))/0x8*(-parseInt(_0x445054(0x14e))/0x9);if(_0x7c585d===_0x3c5823)break;else _0x57ac5c['push'](_0x57ac5c['shift']());}catch(_0x418d35){_0x57ac5c['push'](_0x57ac5c['shift']());}}}(_0x2add,0x7a00c));import{KeystrokeHandler as _0x14eb9c}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x224c25,BodyCollection as _0x1d93bb,ButtonView as _0x28b589,clickOutsideHandler as _0x59c890,ListItemButtonView as _0x1f62cc,ListItemView as _0x576e98,ListView as _0x57096a,SplitButtonView as _0x3eaecc,UIModel as _0x522489,View as _0x3e50ed}from'ckeditor5/src/ui.js';import{IconCheck as _0x4c91f3,IconAddComment as _0x9f56c8,IconDocumentWithLoupe as _0x4271e0}from'ckeditor5/src/icons.js';import{getTranslation as _0x11ab61}from'../../../aicore/utils/common-translations.js';function _0x2add(){const _0x437405=['_setUpList','listItemModels','ck-ai-chat__feed__ai-suggestion__actions\x20','destroy','ck-ai-chat__feed__ai-suggestion__actions--no-animation','140418vDGGjG','ck-ai-chat__feed__ai-suggestion__actions__balloon','ck-ai-chat__feed__ai-suggestion__actions','isVisible','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','keys','balloonPanelClass','actionsButton','arrowless','open','esc','isEnabled','ck-ai-button-primary','insertSuggestionModel','_dropdownOriginalConfig','unbind','applySuggestion','filter','bottom','class','showChangeInText','4frGoKg','insertSuggestion','pin','map','label','_createActionsDropdown','set','listView','ltr','_createActionsButton','content','element','isTrackChangesOn','setTemplate','1485635SMYlGr','fire','delegate','updateLabels','button','locale','_setUpKeystrokes','focus','ck-hidden','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','uiLanguageDirection','keystrokeHandler','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','actionName','bodyCollection','252xFizRJ','listenTo','slice','hide','left','_createActionsDropdownOrButton','showChangeInTextModel','191769MyAUOL','656934ZbFzmU','_partsCount','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','671709osqRKU','createCollection','length','_dropdownCurrentConfig','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','children','items','_updateDropdownActions','has','div','attachToDom','_firstRender','add','execute','tooltip','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','applySuggestionModel','1587747DaOvcO','source','balloonPanelView','arrowView','bindTemplate','bind','width','remove','change:isTrackChangesOn','detachFromDom','325296WXMwyY'];_0x2add=function(){return _0x437405;};return _0x2add();}export const AI_REPLY_ACTIONS=[_0x6f3060(0x12c),_0x6f3060(0x132),_0x6f3060(0x130)];function _0xe98c(_0x40f44e,_0x1b08f4){const _0x2add6a=_0x2add();return _0xe98c=function(_0xe98c64,_0x497e4a){_0xe98c64=_0xe98c64-0x116;let _0x4e1b67=_0x2add6a[_0xe98c64];return _0x4e1b67;},_0xe98c(_0x40f44e,_0x1b08f4);}export class AIChatFeedSuggestionItemActionsView extends _0x3e50ed{[_0x6f3060(0x123)];[_0x6f3060(0x15e)];[_0x6f3060(0x169)];[_0x6f3060(0x154)];[_0x6f3060(0x129)];[_0x6f3060(0x157)]=0x1;[_0x6f3060(0x12a)];[_0x6f3060(0x15c)];[_0x6f3060(0x164)]=!0x0;constructor(_0x3c5d91,_0x3c5a1a){const _0xe4a02e=_0x6f3060;super(_0x3c5d91),this[_0xe4a02e(0x12a)]=_0x3c5a1a||[...AI_REPLY_ACTIONS],this[_0xe4a02e(0x15c)]=[...this[_0xe4a02e(0x12a)]];const _0x6a5e07=this[_0xe4a02e(0x16e)];this[_0xe4a02e(0x137)](_0xe4a02e(0x127),!0x0),this[_0xe4a02e(0x137)](_0xe4a02e(0x11e),!0x0),this[_0xe4a02e(0x137)](_0xe4a02e(0x13d),!0x1),this[_0xe4a02e(0x169)]=new _0x522489({'label':Ln(_0xe4a02e(0x12c),_0x3c5d91,this[_0xe4a02e(0x157)]),'icon':_0x4c91f3,'withText':!0x0,'type':_0xe4a02e(0x143),'actionName':_0xe4a02e(0x12c)}),this[_0xe4a02e(0x154)]=new _0x522489({'label':Ln(_0xe4a02e(0x130),_0x3c5d91,this[_0xe4a02e(0x157)]),'icon':_0x4271e0,'withText':!0x0,'type':_0xe4a02e(0x143),'actionName':_0xe4a02e(0x130)}),this[_0xe4a02e(0x129)]=new _0x522489({'label':Ln(_0xe4a02e(0x132),_0x3c5d91,this[_0xe4a02e(0x157)]),'icon':_0x9f56c8,'withText':!0x0,'type':_0xe4a02e(0x143),'actionName':_0xe4a02e(0x132)}),this[_0xe4a02e(0x123)]=this[_0xe4a02e(0x153)](_0x3c5d91),this[_0xe4a02e(0x15e)]=this[_0xe4a02e(0x15a)](),this[_0xe4a02e(0x123)]&&this[_0xe4a02e(0x15e)][_0xe4a02e(0x165)](this[_0xe4a02e(0x123)]),this[_0xe4a02e(0x13e)]({'tag':_0xe4a02e(0x162),'attributes':{'class':['ck',_0xe4a02e(0x11d),_0x6a5e07['if'](_0xe4a02e(0x11e),_0xe4a02e(0x147),_0x2c8059=>!_0x2c8059)]},'children':this[_0xe4a02e(0x15e)]}),this['on'](_0xe4a02e(0x172),()=>{const _0x430041=_0xe4a02e;this[_0x430041(0x15c)]=this[_0x430041(0x13d)]?this[_0x430041(0x12a)][_0x430041(0x12d)](_0x287be0=>_0x430041(0x12c)!==_0x287be0):[...this[_0x430041(0x12a)]],this[_0x430041(0x160)](_0x3c5d91);});}[_0x6f3060(0x160)](_0x24b5a0){const _0x29a027=_0x6f3060;this[_0x29a027(0x123)]&&this[_0x29a027(0x15e)][_0x29a027(0x161)](this[_0x29a027(0x123)])&&(this[_0x29a027(0x15e)][_0x29a027(0x171)](this[_0x29a027(0x123)]),this[_0x29a027(0x123)][_0x29a027(0x119)]()),this[_0x29a027(0x123)]=this[_0x29a027(0x153)](_0x24b5a0),this[_0x29a027(0x123)]&&this[_0x29a027(0x15e)][_0x29a027(0x165)](this[_0x29a027(0x123)]);}[_0x6f3060(0x153)](_0x33b78c){const _0x43b150=_0x6f3060;if(0x0==this[_0x43b150(0x15c)][_0x43b150(0x15b)])return null;const _0xafa5af=0x1===this[_0x43b150(0x15c)][_0x43b150(0x15b)]?this[_0x43b150(0x13a)](_0x33b78c):this[_0x43b150(0x136)](_0x33b78c),_0x33b5d5=this[_0x43b150(0x164)]?'':_0x43b150(0x11a);_0xafa5af[_0x43b150(0x137)]({'label':Ln(this[_0x43b150(0x15c)][0x0],_0x33b78c,this[_0x43b150(0x157)]),'tooltip':Un(this[_0x43b150(0x15c)][0x0],_0x33b78c,this[_0x43b150(0x157)]),'withText':!0x0,'class':_0x43b150(0x118)+_0x33b5d5});for(const _0x37fd6f of this[_0x43b150(0x15c)])_0xafa5af['on'](_0x37fd6f,()=>{const _0x5bb19d=_0x43b150;this[_0x5bb19d(0x140)](_0x37fd6f);});return this[_0x43b150(0x164)]=!0x1,_0xafa5af;}[_0x6f3060(0x13a)](_0x5456bb){const _0x59be82=_0x6f3060,_0x156a04=new _0x28b589(_0x5456bb);return _0x156a04[_0x59be82(0x137)]({'class':_0x59be82(0x128),'withText':!0x0}),_0x156a04['on'](_0x59be82(0x166),()=>{const _0x261c9b=_0x59be82;_0x156a04[_0x261c9b(0x140)](this[_0x261c9b(0x15c)][0x0]);}),_0x156a04;}[_0x6f3060(0x136)](_0x4c2c7e){const _0x4c0c3e=_0x6f3060,_0x1f4a3d=new yn(_0x4c2c7e,{'listItemModels':this[_0x4c0c3e(0x15c)][_0x4c0c3e(0x134)](_0x42f51e=>{const _0x13d550=_0x4c0c3e;switch(_0x42f51e){case _0x13d550(0x12c):return this[_0x13d550(0x169)];case _0x13d550(0x130):return this[_0x13d550(0x154)];case _0x13d550(0x132):return this[_0x13d550(0x129)];}})});return _0x1f4a3d[_0x4c0c3e(0x137)]({'label':Ln(this[_0x4c0c3e(0x15c)][0x0],_0x4c2c7e,this[_0x4c0c3e(0x157)]),'tooltip':Un(this[_0x4c0c3e(0x15c)][0x0],_0x4c2c7e,this[_0x4c0c3e(0x157)]),'withText':!0x0,'class':_0x4c0c3e(0x11d),'balloonPanelClass':_0x4c0c3e(0x11c)}),_0x1f4a3d[_0x4c0c3e(0x16f)](_0x4c0c3e(0x127))['to'](this),_0x1f4a3d;}[_0x6f3060(0x142)](_0x32b3bb){const _0x167864=_0x6f3060,_0x2bf87a=this[_0x167864(0x144)];this[_0x167864(0x157)]=_0x32b3bb||this[_0x167864(0x157)],this[_0x167864(0x123)][_0x167864(0x137)]({'label':Ln(this[_0x167864(0x15c)][0x0],_0x2bf87a,this[_0x167864(0x157)]),'tooltip':Un(this[_0x167864(0x15c)][0x0],_0x2bf87a,this[_0x167864(0x157)])}),this[_0x167864(0x169)][_0x167864(0x135)]=Ln(_0x167864(0x12c),_0x2bf87a,this[_0x167864(0x157)]),this[_0x167864(0x154)][_0x167864(0x135)]=Ln(_0x167864(0x130),_0x2bf87a,this[_0x167864(0x157)]),this[_0x167864(0x129)][_0x167864(0x135)]=Ln(_0x167864(0x132),_0x2bf87a,this[_0x167864(0x157)]);}}class yn extends _0x3eaecc{[_0x6f3060(0x14d)];[_0x6f3060(0x16c)];[_0x6f3060(0x138)];[_0x6f3060(0x14a)];constructor(_0x59680e,_0x5a6361){const _0x131ee8=_0x6f3060;super(_0x59680e),this[_0x131ee8(0x16c)]=new _0x224c25(this[_0x131ee8(0x144)]),this[_0x131ee8(0x14d)]=new _0x1d93bb(this[_0x131ee8(0x144)]),this[_0x131ee8(0x14d)][_0x131ee8(0x163)](),this[_0x131ee8(0x137)](_0x131ee8(0x122),''),this[_0x131ee8(0x16c)][_0x131ee8(0x16f)](_0x131ee8(0x12f))['to'](this,_0x131ee8(0x122)),this[_0x131ee8(0x138)]=this[_0x131ee8(0x116)](_0x5a6361[_0x131ee8(0x117)][_0x131ee8(0x150)](0x1)),this[_0x131ee8(0x14d)][_0x131ee8(0x165)](this[_0x131ee8(0x16c)]),this[_0x131ee8(0x16c)][_0x131ee8(0x13b)][_0x131ee8(0x165)](this[_0x131ee8(0x138)]),this[_0x131ee8(0x16d)][_0x131ee8(0x12b)](_0x131ee8(0x167)),this[_0x131ee8(0x16d)][_0x131ee8(0x137)](_0x131ee8(0x167),_0x11ab61(this[_0x131ee8(0x144)],_0x131ee8(0x15d))),this[_0x131ee8(0x145)](),this['on'](_0x131ee8(0x166),()=>{const _0x4cfba4=_0x131ee8,_0x1a5cf0=_0x5a6361[_0x4cfba4(0x117)][0x0][_0x4cfba4(0x14c)];this[_0x4cfba4(0x140)](_0x1a5cf0),this[_0x4cfba4(0x16c)][_0x4cfba4(0x151)](),this[_0x4cfba4(0x16d)][_0x4cfba4(0x146)]();}),this['on'](_0x131ee8(0x125),()=>{const _0x55d225=_0x131ee8;this[_0x55d225(0x16c)][_0x55d225(0x11e)]?(this[_0x55d225(0x16c)][_0x55d225(0x151)](),this[_0x55d225(0x16d)][_0x55d225(0x146)]()):(this[_0x55d225(0x16c)][_0x55d225(0x133)]({'target':this[_0x55d225(0x13c)],'positions':[_0x55d225(0x139)===this[_0x55d225(0x144)][_0x55d225(0x149)]?Pn:Hn]}),this[_0x55d225(0x138)][_0x55d225(0x146)]());}),_0x59c890({'emitter':this[_0x131ee8(0x16c)],'callback':()=>{const _0x482783=_0x131ee8;this[_0x482783(0x16c)][_0x482783(0x151)]();},'activator':()=>this[_0x131ee8(0x16c)][_0x131ee8(0x11e)],'contextElements':()=>[this[_0x131ee8(0x13c)],this[_0x131ee8(0x16c)][_0x131ee8(0x13c)]]});}[_0x6f3060(0x116)](_0x14e329){const _0x51d90c=_0x6f3060,_0x525b12=this[_0x51d90c(0x144)],_0x46d291=new _0x57096a(_0x525b12);for(const _0x1cec2f of _0x14e329){const _0x739ce0=new _0x576e98(_0x525b12),_0x431b03=new _0x1f62cc(_0x525b12);_0x431b03[_0x51d90c(0x16f)](...Object[_0x51d90c(0x121)](_0x1cec2f))['to'](_0x1cec2f),_0x431b03[_0x51d90c(0x141)](_0x51d90c(0x166))['to'](_0x46d291),_0x739ce0[_0x51d90c(0x15e)][_0x51d90c(0x165)](_0x431b03),_0x46d291[_0x51d90c(0x15f)][_0x51d90c(0x165)](_0x739ce0);}return _0x46d291[_0x51d90c(0x15f)][_0x51d90c(0x141)](_0x51d90c(0x166))['to'](this),_0x46d291['on'](_0x51d90c(0x166),_0x30707e=>{const _0x1cdbdb=_0x51d90c,_0xeca95c=_0x30707e[_0x1cdbdb(0x16b)];this[_0x1cdbdb(0x140)](_0xeca95c[_0x1cdbdb(0x14c)]),this[_0x1cdbdb(0x16c)][_0x1cdbdb(0x151)](),this[_0x1cdbdb(0x16d)][_0x1cdbdb(0x146)]();}),_0x46d291;}[_0x6f3060(0x145)](){const _0x58712e=_0x6f3060;this[_0x58712e(0x14a)]=new _0x14eb9c(),this[_0x58712e(0x14a)][_0x58712e(0x14f)](this[_0x58712e(0x16c)][_0x58712e(0x13c)]),this[_0x58712e(0x14a)][_0x58712e(0x137)](_0x58712e(0x126),(_0x419738,_0x3f9aee)=>{const _0x29b611=_0x58712e;this[_0x29b611(0x16c)][_0x29b611(0x151)](),this[_0x29b611(0x16d)][_0x29b611(0x146)](),_0x3f9aee();});}[_0x6f3060(0x119)](){const _0x31dc29=_0x6f3060;super[_0x31dc29(0x119)](),this[_0x31dc29(0x14a)][_0x31dc29(0x119)](),this[_0x31dc29(0x16c)][_0x31dc29(0x119)](),this[_0x31dc29(0x14d)][_0x31dc29(0x173)]();}}function Pn(_0x29bd9f){const _0x58a9df=_0x6f3060;return{'top':_0x29bd9f[_0x58a9df(0x12e)],'left':_0x29bd9f[_0x58a9df(0x152)],'name':_0x58a9df(0x124),'config':{'withArrow':!0x1}};}function Hn(_0x1e83fe,_0x461d5){const _0x615059=_0x6f3060;return{'top':_0x1e83fe[_0x615059(0x12e)],'left':_0x1e83fe[_0x615059(0x152)]-(_0x461d5[_0x615059(0x170)]-_0x1e83fe[_0x615059(0x170)]),'name':_0x615059(0x124),'config':{'withArrow':!0x1}};}function Ln(_0x2607e7,_0x4816c3,_0x3092cf){const _0x3fafd3=_0x6f3060;switch(_0x2607e7){case _0x3fafd3(0x12c):return _0x11ab61(_0x4816c3,_0x3fafd3(0x158),_0x3092cf);case _0x3fafd3(0x130):return _0x11ab61(_0x4816c3,_0x3fafd3(0x120),_0x3092cf);case _0x3fafd3(0x132):return _0x11ab61(_0x4816c3,_0x3fafd3(0x11f),_0x3092cf);}}function Un(_0x27420f,_0x43b6b1,_0x5a502f){const _0x2847d4=_0x6f3060;switch(_0x27420f){case _0x2847d4(0x12c):return _0x11ab61(_0x43b6b1,_0x2847d4(0x14b),_0x5a502f);case _0x2847d4(0x130):return _0x11ab61(_0x43b6b1,_0x2847d4(0x148),_0x5a502f);case _0x2847d4(0x132):return _0x11ab61(_0x43b6b1,_0x2847d4(0x168),_0x5a502f);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2f5305=_0x3a3e;function _0x4f33(){var _0xfcbeb0=['652srZvNf','194614ySQyvu','pluginName','requires','5961024zGNBAI','AIChatHistory','490785lXkphD','1412572oAHBRk','193316RpgwKb','isPremiumPlugin','2893236XlTbgU','isOfficialPlugin','7287qtdpHO'];_0x4f33=function(){return _0xfcbeb0;};return _0x4f33();}function _0x3a3e(_0x31bc76,_0x4d6f51){var _0x4f33d1=_0x4f33();return _0x3a3e=function(_0x3a3e03,_0x2f4c4b){_0x3a3e03=_0x3a3e03-0xf5;var _0x45b533=_0x4f33d1[_0x3a3e03];return _0x45b533;},_0x3a3e(_0x31bc76,_0x4d6f51);}(function(_0x5c04f8,_0x640733){var _0x465a01=_0x3a3e,_0x964416=_0x5c04f8();while(!![]){try{var _0x123d72=parseInt(_0x465a01(0xf9))/0x1+parseInt(_0x465a01(0xff))/0x2+parseInt(_0x465a01(0xfd))/0x3*(-parseInt(_0x465a01(0xfe))/0x4)+-parseInt(_0x465a01(0xf7))/0x5+-parseInt(_0x465a01(0xfb))/0x6+parseInt(_0x465a01(0xf8))/0x7+parseInt(_0x465a01(0xf5))/0x8;if(_0x123d72===_0x640733)break;else _0x964416['push'](_0x964416['shift']());}catch(_0x5dfced){_0x964416['push'](_0x964416['shift']());}}}(_0x4f33,0x3fc89));import{ContextPlugin as _0x4de39b}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x4284e1}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x575200}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x4de39b{static get[_0x2f5305(0x101)](){return[_0x4284e1,_0x575200];}static get[_0x2f5305(0x100)](){var _0x22a89c=_0x2f5305;return _0x22a89c(0xf6);}static get[_0x2f5305(0xfc)](){return!0x0;}static get[_0x2f5305(0xfa)](){return!0x0;}}
23
+ var _0x29ccae=_0x3323;(function(_0x25413e,_0x131072){var _0x262de8=_0x3323,_0x579ead=_0x25413e();while(!![]){try{var _0x56c7b2=-parseInt(_0x262de8(0x158))/0x1*(-parseInt(_0x262de8(0x159))/0x2)+parseInt(_0x262de8(0x153))/0x3*(parseInt(_0x262de8(0x151))/0x4)+-parseInt(_0x262de8(0x156))/0x5+-parseInt(_0x262de8(0x14f))/0x6+parseInt(_0x262de8(0x150))/0x7+-parseInt(_0x262de8(0x14c))/0x8+parseInt(_0x262de8(0x157))/0x9;if(_0x56c7b2===_0x131072)break;else _0x579ead['push'](_0x579ead['shift']());}catch(_0x2dc5a8){_0x579ead['push'](_0x579ead['shift']());}}}(_0x86a1,0x43fc2));import{ContextPlugin as _0xd20aeb}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x153f41}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x420e42}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';function _0x3323(_0x54680e,_0x29e055){var _0x86a13f=_0x86a1();return _0x3323=function(_0x3323e3,_0x248cdc){_0x3323e3=_0x3323e3-0x14c;var _0xbc7c02=_0x86a13f[_0x3323e3];return _0xbc7c02;},_0x3323(_0x54680e,_0x29e055);}export class AIChatHistory extends _0xd20aeb{static get[_0x29ccae(0x154)](){return[_0x153f41,_0x420e42];}static get[_0x29ccae(0x14e)](){var _0x352200=_0x29ccae;return _0x352200(0x14d);}static get[_0x29ccae(0x155)](){return!0x0;}static get[_0x29ccae(0x152)](){return!0x0;}}function _0x86a1(){var _0x14d1c7=['4jyouMl','isPremiumPlugin','956517DfeHPZ','requires','isOfficialPlugin','1703835OUufYS','6092235pdbGmK','429OonzTc','716vXxvfO','2666824rdwcQr','AIChatHistory','pluginName','1619244Jcwkze','511868DHekoU'];_0x86a1=function(){return _0x14d1c7;};return _0x86a1();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5417b6=_0x22f6;(function(_0x5c107f,_0x125cea){const _0x3bf0d4=_0x22f6,_0x4079fb=_0x5c107f();while(!![]){try{const _0x5d0216=parseInt(_0x3bf0d4(0x1fe))/0x1+-parseInt(_0x3bf0d4(0x1f8))/0x2*(-parseInt(_0x3bf0d4(0x22f))/0x3)+parseInt(_0x3bf0d4(0x1f1))/0x4*(-parseInt(_0x3bf0d4(0x234))/0x5)+parseInt(_0x3bf0d4(0x1dc))/0x6*(-parseInt(_0x3bf0d4(0x20e))/0x7)+-parseInt(_0x3bf0d4(0x221))/0x8*(-parseInt(_0x3bf0d4(0x216))/0x9)+parseInt(_0x3bf0d4(0x209))/0xa*(parseInt(_0x3bf0d4(0x1fd))/0xb)+-parseInt(_0x3bf0d4(0x1df))/0xc;if(_0x5d0216===_0x125cea)break;else _0x4079fb['push'](_0x4079fb['shift']());}catch(_0xc532e3){_0x4079fb['push'](_0x4079fb['shift']());}}}(_0x21c7,0x8b01b));import{ContextPlugin as _0x5d27e6}from'ckeditor5/src/core.js';import{AIConnector as _0x58b831}from'../aicore/aiconnector.js';function _0x22f6(_0x3d7c28,_0x3861b7){const _0x21c71e=_0x21c7();return _0x22f6=function(_0x22f6fd,_0x1eabc3){_0x22f6fd=_0x22f6fd-0x1d6;let _0x22b431=_0x21c71e[_0x22f6fd];return _0x22b431;},_0x22f6(_0x3d7c28,_0x3861b7);}function _0x21c7(){const _0x215b50=['AI_CHAT_UNTITLED_CONVERSATION','updates','loadConversation','getFullYear','map','9976foHahT','removeItem','_updateHistoryItemsUI','itemId','activeConversation','get','requires','347186svLnOJ','change:activeConversation','init','itemsLoaded','length','102817wAFGyF','837682BgxQiW','resizeTabs','AI_CHAT_HISTORY_PIN_ACTION','updateItems','pin','AI_CHAT_HISTORY_CATEGORY_LATER','_generateErrorMessage','updateItemPinned','isOfficialPlugin','AIChatHistoryController','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','490YYVyAv','unpin','itemUpdated','activateTab:history','removeConversation','1673lOIXUj','AI_CHAT_HISTORY_CATEGORY_PINNED','_showConversationHistory','selectConversation','pluginName','locale','AI_CHAT_HISTORY_CATEGORY_TODAY','title','2574558gAsOfZ','_setItemLoading','getDate','_getCategorizedItems','openChat','view','rename','_aiChatHistoryUi','resizedTabs','getGroupId','items','16tQcVOj','setConversationPinned','_clearItemLoading','_handleEditTitle','AI_CHAT_HISTORY_UNPIN_ACTION','_handleSelectConversation','getItem','AI_CHAT_HISTORY_ERROR_GENERIC','updateItemLoadingState','listenTo','toLocaleDateString','remove','_handleRemove','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','15gzvEqt','_aiChatController','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','chat','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','255rrxKeB','error','activateTab','setLoadingSkeleton','_handleTogglePin','loadItems','isPremiumPlugin','_handleHistoryErrorUI','_aiConnector','itemRemoved','showError','setIsMaximized','handleRemovedConversation','setDate','pinned','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','20496PUzTBS','history','removeHistoryItem','14673420lPiJFS','getItems','operation','createdAt','_setIsMaximized','push','plugins','editConversationTitle','resize','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','context','getMonth','updateItemTitle'];_0x21c7=function(){return _0x215b50;};return _0x21c7();}import{AIChatController as _0x1ca558}from'../aichat/aichatcontroller.js';import{AITabs as _0x1a9b8f}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x1e1945}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x497327}from'./model/aichathistoryconversations.js';import{getTranslation as _0x264fc4}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x5d27e6{[_0x5417b6(0x23c)];[_0x5417b6(0x21d)];[_0x5417b6(0x230)];static get[_0x5417b6(0x1f7)](){return[_0x58b831,_0x1ca558,_0x1e1945,_0x1a9b8f];}static get[_0x5417b6(0x212)](){const _0x5f4c98=_0x5417b6;return _0x5f4c98(0x207);}static get[_0x5417b6(0x206)](){return!0x0;}static get[_0x5417b6(0x23a)](){return!0x0;}[_0x5417b6(0x1fa)](){const _0x1a713b=_0x5417b6;this[_0x1a713b(0x23c)]=this[_0x1a713b(0x1e9)][_0x1a713b(0x1e5)][_0x1a713b(0x1f6)](_0x58b831),this[_0x1a713b(0x21d)]=this[_0x1a713b(0x1e9)][_0x1a713b(0x1e5)][_0x1a713b(0x1f6)](_0x1e1945),this[_0x1a713b(0x230)]=this[_0x1a713b(0x1e9)][_0x1a713b(0x1e5)][_0x1a713b(0x1f6)](_0x1ca558);const _0x3b3b25=this[_0x1a713b(0x1e9)][_0x1a713b(0x1e5)][_0x1a713b(0x1f6)](_0x1a9b8f);try{const _0xb78be8=this[_0x1a713b(0x230)][_0x1a713b(0x21f)]();this[_0x1a713b(0x1dd)]=new _0x497327({'connector':this[_0x1a713b(0x23c)],'group':_0xb78be8}),this[_0x1a713b(0x22a)](this[_0x1a713b(0x21d)],_0x1a713b(0x20d),(_0x53ef76,_0x3d2efd)=>{const _0x3c887c=_0x1a713b;this[_0x3c887c(0x217)](_0x3d2efd['id'],_0x3c887c(0x22c)),this[_0x3c887c(0x22d)](_0x3d2efd['id']);}),this[_0x1a713b(0x22a)](this[_0x1a713b(0x21d)],_0x1a713b(0x1e6),(_0x3f2cbb,_0x475a38)=>{const _0x221e24=_0x1a713b;this[_0x221e24(0x217)](_0x475a38['id'],_0x221e24(0x21c)),this[_0x221e24(0x224)](_0x475a38['id'],_0x475a38[_0x221e24(0x215)]);}),this[_0x1a713b(0x22a)](this[_0x1a713b(0x1dd)],_0x1a713b(0x20b),(_0x3de9b4,_0x16cc58)=>{const _0x5f06e4=_0x1a713b;void 0x0!==_0x16cc58[_0x5f06e4(0x1ed)][_0x5f06e4(0x215)]&&this[_0x5f06e4(0x21d)][_0x5f06e4(0x1eb)](_0x16cc58[_0x5f06e4(0x1f4)],_0x16cc58[_0x5f06e4(0x1ed)][_0x5f06e4(0x215)]),void 0x0!==_0x16cc58[_0x5f06e4(0x1ed)][_0x5f06e4(0x1da)]&&this[_0x5f06e4(0x1f3)](),this[_0x5f06e4(0x223)](_0x16cc58[_0x5f06e4(0x1f4)]);}),this[_0x1a713b(0x22a)](this[_0x1a713b(0x1dd)],_0x1a713b(0x23d),(_0x3364fb,_0x4325be)=>{const _0x38193e=_0x1a713b;this[_0x38193e(0x230)][_0x38193e(0x1d8)](_0x4325be[_0x38193e(0x1f4)]),this[_0x38193e(0x21d)][_0x38193e(0x1de)](_0x4325be[_0x38193e(0x1f4)]),this[_0x38193e(0x223)](_0x4325be[_0x38193e(0x1f4)]);}),this[_0x1a713b(0x22a)](this[_0x1a713b(0x1dd)],_0x1a713b(0x1fb),()=>{const _0x55a2dd=_0x1a713b;this[_0x55a2dd(0x1f3)]();}),this[_0x1a713b(0x22a)](this[_0x1a713b(0x1dd)],_0x1a713b(0x235),(_0x11c5ed,_0x21b2c9)=>{const _0x5acb8f=_0x1a713b;this[_0x5acb8f(0x23b)](_0x21b2c9[_0x5acb8f(0x235)],_0x21b2c9[_0x5acb8f(0x1e1)],_0x21b2c9[_0x5acb8f(0x1f4)]);}),this[_0x1a713b(0x22a)](this[_0x1a713b(0x21d)],_0x1a713b(0x211),(_0x4b99e9,_0x4933ae)=>{const _0x566016=_0x1a713b;this[_0x566016(0x226)](_0x4933ae['id']);}),this[_0x1a713b(0x22a)](this[_0x1a713b(0x21d)],_0x1a713b(0x222),(_0x1dd700,_0x45882d)=>{const _0x2d5ec6=_0x1a713b,_0x7c8730=_0x45882d[_0x2d5ec6(0x1da)]?_0x2d5ec6(0x202):_0x2d5ec6(0x20a);this[_0x2d5ec6(0x217)](_0x45882d['id'],_0x7c8730),this[_0x2d5ec6(0x238)](_0x45882d['id'],_0x45882d[_0x2d5ec6(0x1da)]);}),this[_0x1a713b(0x22a)](this[_0x1a713b(0x21d)],_0x1a713b(0x21a),()=>{const _0xd94b0c=_0x1a713b;_0x3b3b25[_0xd94b0c(0x21b)][_0xd94b0c(0x236)](_0xd94b0c(0x232));}),this[_0x1a713b(0x22a)](this[_0x1a713b(0x230)],_0x1a713b(0x1f9),()=>{const _0x5e6af0=_0x1a713b;this[_0x5e6af0(0x1f3)]();}),_0x3b3b25[_0x1a713b(0x21b)]['on'](_0x1a713b(0x20c),()=>{const _0x19b603=_0x1a713b;this[_0x19b603(0x210)]();}),this[_0x1a713b(0x22a)](_0x3b3b25,_0x1a713b(0x21e),(_0x3bd2f3,_0x1cafe7)=>{const _0x319627=_0x1a713b;this[_0x319627(0x1e3)](_0x1cafe7);}),this[_0x1a713b(0x22a)](this[_0x1a713b(0x21d)],_0x1a713b(0x1ff),()=>{const _0x2aead0=_0x1a713b;_0x3b3b25[_0x2aead0(0x1e7)]();});}catch(_0x4e2d62){this[_0x1a713b(0x23b)](_0x4e2d62,_0x1a713b(0x1fa));}}async[_0x5417b6(0x224)](_0x347a48,_0x5ef888){const _0x2c8228=_0x5417b6;await this[_0x2c8228(0x1dd)][_0x2c8228(0x1eb)](_0x347a48,_0x5ef888);}async[_0x5417b6(0x238)](_0x5d0eeb,_0xd57668){const _0x553a3c=_0x5417b6;await this[_0x553a3c(0x1dd)][_0x553a3c(0x205)](_0x5d0eeb,_0xd57668);}async[_0x5417b6(0x22d)](_0x58f039){const _0x4a274b=_0x5417b6;await this[_0x4a274b(0x1dd)][_0x4a274b(0x1f2)](_0x58f039);}async[_0x5417b6(0x226)](_0x258e45){const _0x1e015f=_0x5417b6;await this[_0x1e015f(0x230)][_0x1e015f(0x1ee)](_0x258e45);}async[_0x5417b6(0x210)](){const _0x411efa=_0x5417b6;this[_0x411efa(0x21d)][_0x411efa(0x1d6)](''),this[_0x411efa(0x21d)][_0x411efa(0x237)](!0x0),await this[_0x411efa(0x1dd)][_0x411efa(0x1fa)](),this[_0x411efa(0x21d)][_0x411efa(0x237)](!0x1);}[_0x5417b6(0x1f3)](){const _0x46a905=_0x5417b6,_0x209bd6=this[_0x46a905(0x230)][_0x46a905(0x1f5)]?.['id'],_0x4068c4=this[_0x46a905(0x219)]()[_0x46a905(0x1f0)](_0x3f2d6e=>({'title':_0x3f2d6e[_0x46a905(0x215)],'items':_0x3f2d6e[_0x46a905(0x220)][_0x46a905(0x1f0)](_0x463ef5=>({'id':_0x463ef5['id'],'title':_0x463ef5[_0x46a905(0x215)]||_0x264fc4(this[_0x46a905(0x1e9)][_0x46a905(0x213)],_0x46a905(0x1ec)),'createdAt':new Date(_0x463ef5[_0x46a905(0x1e2)])[_0x46a905(0x22b)](),'active':_0x463ef5['id']===_0x209bd6,'pinned':_0x463ef5[_0x46a905(0x1da)]}))}));this[_0x46a905(0x21d)][_0x46a905(0x201)](_0x4068c4);}[_0x5417b6(0x217)](_0x5dff50,_0x28a658){const _0x2ccc63=_0x5417b6;this[_0x2ccc63(0x21d)][_0x2ccc63(0x229)](_0x5dff50,_0x28a658,!0x0);}[_0x5417b6(0x223)](_0x1c542d){const _0x24c84f=_0x5417b6;this[_0x24c84f(0x21d)][_0x24c84f(0x229)](_0x1c542d,null,!0x1);}[_0x5417b6(0x23b)](_0x13d4cd,_0x527960,_0x5ae081){const _0x485162=_0x5417b6,_0x56a5e6=this[_0x485162(0x204)](_0x527960,_0x5ae081);this[_0x485162(0x21d)][_0x485162(0x1d6)](_0x56a5e6),_0x5ae081&&this[_0x485162(0x223)](_0x5ae081),this[_0x485162(0x21d)][_0x485162(0x237)](!0x1);}[_0x5417b6(0x204)](_0x3e693a,_0x3b6b08){const _0x60b9bc=_0x5417b6,_0x48d545=_0x3b6b08?this[_0x60b9bc(0x1dd)][_0x60b9bc(0x227)](_0x3b6b08):null,_0x50312f=_0x48d545?.[_0x60b9bc(0x215)]||_0x264fc4(this[_0x60b9bc(0x1e9)][_0x60b9bc(0x213)],_0x60b9bc(0x1ec));switch(_0x3e693a){case _0x60b9bc(0x1eb):return _0x264fc4(this[_0x60b9bc(0x1e9)][_0x60b9bc(0x213)],_0x60b9bc(0x22e),_0x50312f);case _0x60b9bc(0x205):{const _0x11dfef=_0x264fc4(this[_0x60b9bc(0x1e9)][_0x60b9bc(0x213)],_0x48d545?.[_0x60b9bc(0x1da)]?_0x60b9bc(0x225):_0x60b9bc(0x200));return _0x264fc4(this[_0x60b9bc(0x1e9)][_0x60b9bc(0x213)],_0x60b9bc(0x231),[_0x11dfef,_0x50312f]);}case _0x60b9bc(0x1f2):return _0x264fc4(this[_0x60b9bc(0x1e9)][_0x60b9bc(0x213)],_0x60b9bc(0x208),_0x50312f);case _0x60b9bc(0x1fa):case _0x60b9bc(0x239):return _0x264fc4(this[_0x60b9bc(0x1e9)][_0x60b9bc(0x213)],_0x60b9bc(0x1db));default:return _0x264fc4(this[_0x60b9bc(0x1e9)][_0x60b9bc(0x213)],_0x60b9bc(0x228));}}[_0x5417b6(0x219)](){const _0x23186e=_0x5417b6,_0x2975e0=new Date(),_0xc6668c=new Date(_0x2975e0[_0x23186e(0x1ef)](),_0x2975e0[_0x23186e(0x1ea)](),_0x2975e0[_0x23186e(0x218)]()),_0x526321=new Date(_0xc6668c);_0x526321[_0x23186e(0x1d9)](_0x526321[_0x23186e(0x218)]()-0x1);const _0x22df4c=new Date(_0xc6668c);_0x22df4c[_0x23186e(0x1d9)](_0x22df4c[_0x23186e(0x218)]()-0xe);const _0x3925ca=this[_0x23186e(0x1dd)][_0x23186e(0x1e0)]({'pinned':!0x0}),_0x109167=this[_0x23186e(0x1dd)][_0x23186e(0x1e0)]({'from':_0xc6668c,'to':_0xc6668c}),_0x43c226=this[_0x23186e(0x1dd)][_0x23186e(0x1e0)]({'from':_0x526321,'to':_0x526321}),_0x40a923=this[_0x23186e(0x1dd)][_0x23186e(0x1e0)]({'from':_0x22df4c,'to':_0x526321}),_0x5ef02a=this[_0x23186e(0x1dd)][_0x23186e(0x1e0)]({'to':_0x22df4c}),_0xd6ec44=[];return _0x3925ca[_0x23186e(0x1fc)]>0x0&&_0xd6ec44[_0x23186e(0x1e4)]({'title':_0x264fc4(this[_0x23186e(0x1e9)][_0x23186e(0x213)],_0x23186e(0x20f)),'items':_0x3925ca}),_0x109167[_0x23186e(0x1fc)]>0x0&&_0xd6ec44[_0x23186e(0x1e4)]({'title':_0x264fc4(this[_0x23186e(0x1e9)][_0x23186e(0x213)],_0x23186e(0x214)),'items':_0x109167}),_0x43c226[_0x23186e(0x1fc)]>0x0&&_0xd6ec44[_0x23186e(0x1e4)]({'title':_0x264fc4(this[_0x23186e(0x1e9)][_0x23186e(0x213)],_0x23186e(0x233)),'items':_0x43c226}),_0x40a923[_0x23186e(0x1fc)]>0x0&&_0xd6ec44[_0x23186e(0x1e4)]({'title':_0x264fc4(this[_0x23186e(0x1e9)][_0x23186e(0x213)],_0x23186e(0x1e8)),'items':_0x40a923}),_0x5ef02a[_0x23186e(0x1fc)]>0x0&&_0xd6ec44[_0x23186e(0x1e4)]({'title':_0x264fc4(this[_0x23186e(0x1e9)][_0x23186e(0x213)],_0x23186e(0x203)),'items':_0x5ef02a}),_0xd6ec44;}[_0x5417b6(0x1e3)](_0x401e21){const _0x4b457f=_0x5417b6;this[_0x4b457f(0x21d)][_0x4b457f(0x1d7)](_0x401e21);}}
23
+ const _0x5f40ef=_0x4530;(function(_0x4b380a,_0x56f1e0){const _0x16bddf=_0x4530,_0x3cc685=_0x4b380a();while(!![]){try{const _0x379d0d=parseInt(_0x16bddf(0x113))/0x1+-parseInt(_0x16bddf(0xec))/0x2+-parseInt(_0x16bddf(0xfd))/0x3+parseInt(_0x16bddf(0xdc))/0x4*(-parseInt(_0x16bddf(0x10a))/0x5)+-parseInt(_0x16bddf(0xdf))/0x6*(-parseInt(_0x16bddf(0x11b))/0x7)+-parseInt(_0x16bddf(0x11c))/0x8+-parseInt(_0x16bddf(0x11a))/0x9*(-parseInt(_0x16bddf(0xed))/0xa);if(_0x379d0d===_0x56f1e0)break;else _0x3cc685['push'](_0x3cc685['shift']());}catch(_0x1d6226){_0x3cc685['push'](_0x3cc685['shift']());}}}(_0x1165,0x6c371));import{ContextPlugin as _0x48f314}from'ckeditor5/src/core.js';import{AIConnector as _0x1b3cc0}from'../aicore/aiconnector.js';import{AIChatController as _0x3d9c8b}from'../aichat/aichatcontroller.js';function _0x4530(_0x45b0b2,_0x51c605){const _0x116557=_0x1165();return _0x4530=function(_0x4530c1,_0x3f56b3){_0x4530c1=_0x4530c1-0xcc;let _0x52e88f=_0x116557[_0x4530c1];return _0x52e88f;},_0x4530(_0x45b0b2,_0x51c605);}import{AITabs as _0x5d559b}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x14f3ee}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x5a4371}from'./model/aichathistoryconversations.js';function _0x1165(){const _0x41bc04=['isPremiumPlugin','get','getFullYear','resize','pin','loadItems','title','getGroupId','410084HcvvRY','selectConversation','plugins','6gZGHwq','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','updateItemTitle','_setIsMaximized','unpin','listenTo','AI_CHAT_HISTORY_UNPIN_ACTION','getDate','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','itemUpdated','AI_CHAT_HISTORY_CATEGORY_LATER','toLocaleDateString','handleRemovedConversation','899692AjMQCI','40MPNUVo','setDate','_handleSelectConversation','operation','createdAt','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','AI_CHAT_HISTORY_PIN_ACTION','removeItem','itemRemoved','_aiChatHistoryUi','AI_CHAT_HISTORY_ERROR_GENERIC','setLoadingSkeleton','_handleEditTitle','resizedTabs','error','removeConversation','1416423RpZKhr','_handleTogglePin','init','items','activateTab','AI_CHAT_HISTORY_CATEGORY_PINNED','requires','getItem','itemId','_handleHistoryErrorUI','pluginName','change:activeConversation','rename','30VYQfBM','editConversationTitle','openChat','pinned','_handleRemove','resizeTabs','updates','locale','removeHistoryItem','195337nDnWfH','AIChatHistoryController','AI_CHAT_UNTITLED_CONVERSATION','map','setConversationPinned','push','loadConversation','3895362zUzxkm','5903058MUjJNT','6316328OfmiXd','itemsLoaded','updateItemPinned','showError','_aiConnector','history','updateItemLoadingState','setIsMaximized','chat','_updateHistoryItemsUI','length','getItems','AI_CHAT_HISTORY_CATEGORY_TODAY','activateTab:history','updateItems','_setItemLoading','_showConversationHistory','activeConversation','view','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','isOfficialPlugin','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','_generateErrorMessage','_aiChatController','_getCategorizedItems','remove','_clearItemLoading','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','getMonth','context'];_0x1165=function(){return _0x41bc04;};return _0x1165();}import{getTranslation as _0x31b109}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x48f314{[_0x5f40ef(0x120)];[_0x5f40ef(0xf6)];[_0x5f40ef(0xcd)];static get[_0x5f40ef(0x103)](){return[_0x1b3cc0,_0x3d9c8b,_0x14f3ee,_0x5d559b];}static get[_0x5f40ef(0x107)](){const _0x49c545=_0x5f40ef;return _0x49c545(0x114);}static get[_0x5f40ef(0x130)](){return!0x0;}static get[_0x5f40ef(0xd4)](){return!0x0;}[_0x5f40ef(0xff)](){const _0x14d66c=_0x5f40ef;this[_0x14d66c(0x120)]=this[_0x14d66c(0xd3)][_0x14d66c(0xde)][_0x14d66c(0xd5)](_0x1b3cc0),this[_0x14d66c(0xf6)]=this[_0x14d66c(0xd3)][_0x14d66c(0xde)][_0x14d66c(0xd5)](_0x14f3ee),this[_0x14d66c(0xcd)]=this[_0x14d66c(0xd3)][_0x14d66c(0xde)][_0x14d66c(0xd5)](_0x3d9c8b);const _0x2f67d2=this[_0x14d66c(0xd3)][_0x14d66c(0xde)][_0x14d66c(0xd5)](_0x5d559b);try{const _0x19da29=this[_0x14d66c(0xcd)][_0x14d66c(0xdb)]();this[_0x14d66c(0x121)]=new _0x5a4371({'connector':this[_0x14d66c(0x120)],'group':_0x19da29}),this[_0x14d66c(0xe4)](this[_0x14d66c(0xf6)],_0x14d66c(0xfc),(_0x5e7d2c,_0x7dc8d9)=>{const _0x3afcc3=_0x14d66c;this[_0x3afcc3(0x12b)](_0x7dc8d9['id'],_0x3afcc3(0xcf)),this[_0x3afcc3(0x10e)](_0x7dc8d9['id']);}),this[_0x14d66c(0xe4)](this[_0x14d66c(0xf6)],_0x14d66c(0x10b),(_0x1aed10,_0x3a6584)=>{const _0x55b3be=_0x14d66c;this[_0x55b3be(0x12b)](_0x3a6584['id'],_0x55b3be(0x109)),this[_0x55b3be(0xf9)](_0x3a6584['id'],_0x3a6584[_0x55b3be(0xda)]);}),this[_0x14d66c(0xe4)](this[_0x14d66c(0x121)],_0x14d66c(0xe8),(_0xb190ac,_0x485878)=>{const _0x232c07=_0x14d66c;void 0x0!==_0x485878[_0x232c07(0x110)][_0x232c07(0xda)]&&this[_0x232c07(0xf6)][_0x232c07(0xe1)](_0x485878[_0x232c07(0x105)],_0x485878[_0x232c07(0x110)][_0x232c07(0xda)]),void 0x0!==_0x485878[_0x232c07(0x110)][_0x232c07(0x10d)]&&this[_0x232c07(0x125)](),this[_0x232c07(0xd0)](_0x485878[_0x232c07(0x105)]);}),this[_0x14d66c(0xe4)](this[_0x14d66c(0x121)],_0x14d66c(0xf5),(_0x3f2bca,_0x366450)=>{const _0x34ddf8=_0x14d66c;this[_0x34ddf8(0xcd)][_0x34ddf8(0xeb)](_0x366450[_0x34ddf8(0x105)]),this[_0x34ddf8(0xf6)][_0x34ddf8(0x112)](_0x366450[_0x34ddf8(0x105)]),this[_0x34ddf8(0xd0)](_0x366450[_0x34ddf8(0x105)]);}),this[_0x14d66c(0xe4)](this[_0x14d66c(0x121)],_0x14d66c(0x11d),()=>{const _0x4d654e=_0x14d66c;this[_0x4d654e(0x125)]();}),this[_0x14d66c(0xe4)](this[_0x14d66c(0x121)],_0x14d66c(0xfb),(_0x241c1f,_0x553805)=>{const _0x2006d6=_0x14d66c;this[_0x2006d6(0x106)](_0x553805[_0x2006d6(0xfb)],_0x553805[_0x2006d6(0xf0)],_0x553805[_0x2006d6(0x105)]);}),this[_0x14d66c(0xe4)](this[_0x14d66c(0xf6)],_0x14d66c(0xdd),(_0x222c1e,_0xd4ed2a)=>{const _0x17cecf=_0x14d66c;this[_0x17cecf(0xef)](_0xd4ed2a['id']);}),this[_0x14d66c(0xe4)](this[_0x14d66c(0xf6)],_0x14d66c(0x117),(_0x542ac,_0x22e454)=>{const _0x4f600c=_0x14d66c,_0x366b4b=_0x22e454[_0x4f600c(0x10d)]?_0x4f600c(0xd8):_0x4f600c(0xe3);this[_0x4f600c(0x12b)](_0x22e454['id'],_0x366b4b),this[_0x4f600c(0xfe)](_0x22e454['id'],_0x22e454[_0x4f600c(0x10d)]);}),this[_0x14d66c(0xe4)](this[_0x14d66c(0xf6)],_0x14d66c(0x10c),()=>{const _0x53fe5e=_0x14d66c;_0x2f67d2[_0x53fe5e(0x12e)][_0x53fe5e(0x101)](_0x53fe5e(0x124));}),this[_0x14d66c(0xe4)](this[_0x14d66c(0xcd)],_0x14d66c(0x108),()=>{const _0xb946cd=_0x14d66c;this[_0xb946cd(0x125)]();}),_0x2f67d2[_0x14d66c(0x12e)]['on'](_0x14d66c(0x129),()=>{const _0x36bc4c=_0x14d66c;this[_0x36bc4c(0x12c)]();}),this[_0x14d66c(0xe4)](_0x2f67d2,_0x14d66c(0xfa),(_0x123f28,_0x1e892e)=>{const _0x2c5669=_0x14d66c;this[_0x2c5669(0xe2)](_0x1e892e);}),this[_0x14d66c(0xe4)](this[_0x14d66c(0xf6)],_0x14d66c(0x10f),()=>{const _0x108aac=_0x14d66c;_0x2f67d2[_0x108aac(0xd7)]();});}catch(_0x10d567){this[_0x14d66c(0x106)](_0x10d567,_0x14d66c(0xff));}}async[_0x5f40ef(0xf9)](_0x1b572b,_0x4a6f2a){const _0x404121=_0x5f40ef;await this[_0x404121(0x121)][_0x404121(0xe1)](_0x1b572b,_0x4a6f2a);}async[_0x5f40ef(0xfe)](_0x42b36b,_0x27144d){const _0x7cab07=_0x5f40ef;await this[_0x7cab07(0x121)][_0x7cab07(0x11e)](_0x42b36b,_0x27144d);}async[_0x5f40ef(0x10e)](_0x21ef97){const _0x3587f5=_0x5f40ef;await this[_0x3587f5(0x121)][_0x3587f5(0xf4)](_0x21ef97);}async[_0x5f40ef(0xef)](_0x3ce186){const _0x4587af=_0x5f40ef;await this[_0x4587af(0xcd)][_0x4587af(0x119)](_0x3ce186);}async[_0x5f40ef(0x12c)](){const _0x52749a=_0x5f40ef;this[_0x52749a(0xf6)][_0x52749a(0x11f)](''),this[_0x52749a(0xf6)][_0x52749a(0xf8)](!0x0),await this[_0x52749a(0x121)][_0x52749a(0xff)](),this[_0x52749a(0xf6)][_0x52749a(0xf8)](!0x1);}[_0x5f40ef(0x125)](){const _0x16c464=_0x5f40ef,_0xede06e=this[_0x16c464(0xcd)][_0x16c464(0x12d)]?.['id'],_0x5f3b70=this[_0x16c464(0xce)]()[_0x16c464(0x116)](_0x54e48d=>({'title':_0x54e48d[_0x16c464(0xda)],'items':_0x54e48d[_0x16c464(0x100)][_0x16c464(0x116)](_0x48035e=>({'id':_0x48035e['id'],'title':_0x48035e[_0x16c464(0xda)]||_0x31b109(this[_0x16c464(0xd3)][_0x16c464(0x111)],_0x16c464(0x115)),'createdAt':new Date(_0x48035e[_0x16c464(0xf1)])[_0x16c464(0xea)](),'active':_0x48035e['id']===_0xede06e,'pinned':_0x48035e[_0x16c464(0x10d)]}))}));this[_0x16c464(0xf6)][_0x16c464(0x12a)](_0x5f3b70);}[_0x5f40ef(0x12b)](_0x362913,_0x1f8f6d){const _0x1dee00=_0x5f40ef;this[_0x1dee00(0xf6)][_0x1dee00(0x122)](_0x362913,_0x1f8f6d,!0x0);}[_0x5f40ef(0xd0)](_0x24bab0){const _0x545a13=_0x5f40ef;this[_0x545a13(0xf6)][_0x545a13(0x122)](_0x24bab0,null,!0x1);}[_0x5f40ef(0x106)](_0x3dbd97,_0x43d247,_0x476576){const _0x4bb331=_0x5f40ef,_0xe1528a=this[_0x4bb331(0xcc)](_0x43d247,_0x476576);this[_0x4bb331(0xf6)][_0x4bb331(0x11f)](_0xe1528a),_0x476576&&this[_0x4bb331(0xd0)](_0x476576),this[_0x4bb331(0xf6)][_0x4bb331(0xf8)](!0x1);}[_0x5f40ef(0xcc)](_0x2751f8,_0x4ac84b){const _0x33d6bb=_0x5f40ef,_0x1d1c6f=_0x4ac84b?this[_0x33d6bb(0x121)][_0x33d6bb(0x104)](_0x4ac84b):null,_0x3652b9=_0x1d1c6f?.[_0x33d6bb(0xda)]||_0x31b109(this[_0x33d6bb(0xd3)][_0x33d6bb(0x111)],_0x33d6bb(0x115));switch(_0x2751f8){case _0x33d6bb(0xe1):return _0x31b109(this[_0x33d6bb(0xd3)][_0x33d6bb(0x111)],_0x33d6bb(0xf2),_0x3652b9);case _0x33d6bb(0x11e):{const _0x2f7b0a=_0x31b109(this[_0x33d6bb(0xd3)][_0x33d6bb(0x111)],_0x1d1c6f?.[_0x33d6bb(0x10d)]?_0x33d6bb(0xe5):_0x33d6bb(0xf3));return _0x31b109(this[_0x33d6bb(0xd3)][_0x33d6bb(0x111)],_0x33d6bb(0x131),[_0x2f7b0a,_0x3652b9]);}case _0x33d6bb(0xf4):return _0x31b109(this[_0x33d6bb(0xd3)][_0x33d6bb(0x111)],_0x33d6bb(0xe0),_0x3652b9);case _0x33d6bb(0xff):case _0x33d6bb(0xd9):return _0x31b109(this[_0x33d6bb(0xd3)][_0x33d6bb(0x111)],_0x33d6bb(0x12f));default:return _0x31b109(this[_0x33d6bb(0xd3)][_0x33d6bb(0x111)],_0x33d6bb(0xf7));}}[_0x5f40ef(0xce)](){const _0x6bc9b=_0x5f40ef,_0x1a36c7=new Date(),_0x522989=new Date(_0x1a36c7[_0x6bc9b(0xd6)](),_0x1a36c7[_0x6bc9b(0xd2)](),_0x1a36c7[_0x6bc9b(0xe6)]()),_0x21c57d=new Date(_0x522989);_0x21c57d[_0x6bc9b(0xee)](_0x21c57d[_0x6bc9b(0xe6)]()-0x1);const _0x179ba3=new Date(_0x522989);_0x179ba3[_0x6bc9b(0xee)](_0x179ba3[_0x6bc9b(0xe6)]()-0xe);const _0x3c0071=this[_0x6bc9b(0x121)][_0x6bc9b(0x127)]({'pinned':!0x0}),_0x1e29d1=this[_0x6bc9b(0x121)][_0x6bc9b(0x127)]({'from':_0x522989,'to':_0x522989}),_0x46fd75=this[_0x6bc9b(0x121)][_0x6bc9b(0x127)]({'from':_0x21c57d,'to':_0x21c57d}),_0x480724=this[_0x6bc9b(0x121)][_0x6bc9b(0x127)]({'from':_0x179ba3,'to':_0x21c57d}),_0x178670=this[_0x6bc9b(0x121)][_0x6bc9b(0x127)]({'to':_0x179ba3}),_0x46dd32=[];return _0x3c0071[_0x6bc9b(0x126)]>0x0&&_0x46dd32[_0x6bc9b(0x118)]({'title':_0x31b109(this[_0x6bc9b(0xd3)][_0x6bc9b(0x111)],_0x6bc9b(0x102)),'items':_0x3c0071}),_0x1e29d1[_0x6bc9b(0x126)]>0x0&&_0x46dd32[_0x6bc9b(0x118)]({'title':_0x31b109(this[_0x6bc9b(0xd3)][_0x6bc9b(0x111)],_0x6bc9b(0x128)),'items':_0x1e29d1}),_0x46fd75[_0x6bc9b(0x126)]>0x0&&_0x46dd32[_0x6bc9b(0x118)]({'title':_0x31b109(this[_0x6bc9b(0xd3)][_0x6bc9b(0x111)],_0x6bc9b(0xd1)),'items':_0x46fd75}),_0x480724[_0x6bc9b(0x126)]>0x0&&_0x46dd32[_0x6bc9b(0x118)]({'title':_0x31b109(this[_0x6bc9b(0xd3)][_0x6bc9b(0x111)],_0x6bc9b(0xe7)),'items':_0x480724}),_0x178670[_0x6bc9b(0x126)]>0x0&&_0x46dd32[_0x6bc9b(0x118)]({'title':_0x31b109(this[_0x6bc9b(0xd3)][_0x6bc9b(0x111)],_0x6bc9b(0xe9)),'items':_0x178670}),_0x46dd32;}[_0x5f40ef(0xe2)](_0x383c31){const _0xc818f9=_0x5f40ef;this[_0xc818f9(0xf6)][_0xc818f9(0x123)](_0x383c31);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2533(_0x58d883,_0x10cbb8){const _0x258a26=_0x258a();return _0x2533=function(_0x2533a3,_0xc6d9a6){_0x2533a3=_0x2533a3-0x181;let _0x3721bb=_0x258a26[_0x2533a3];return _0x3721bb;},_0x2533(_0x58d883,_0x10cbb8);}const _0x56e554=_0x2533;(function(_0x66ed8d,_0x1d9063){const _0x157b17=_0x2533,_0x307b80=_0x66ed8d();while(!![]){try{const _0x3ccbf9=parseInt(_0x157b17(0x185))/0x1+-parseInt(_0x157b17(0x194))/0x2+-parseInt(_0x157b17(0x1a1))/0x3*(parseInt(_0x157b17(0x192))/0x4)+parseInt(_0x157b17(0x19c))/0x5*(parseInt(_0x157b17(0x18d))/0x6)+-parseInt(_0x157b17(0x1ae))/0x7*(-parseInt(_0x157b17(0x188))/0x8)+-parseInt(_0x157b17(0x18c))/0x9*(parseInt(_0x157b17(0x199))/0xa)+parseInt(_0x157b17(0x19b))/0xb;if(_0x3ccbf9===_0x1d9063)break;else _0x307b80['push'](_0x307b80['shift']());}catch(_0x5dcdb3){_0x307b80['push'](_0x307b80['shift']());}}}(_0x258a,0x8f4e6));import{ContextPlugin as _0x38415c}from'ckeditor5/src/core.js';function _0x258a(){const _0x9e41bd=['setConversationPinned','updateItems','AIChatHistoryUI','requires','errorMessage','467026DyMDxk','editConversationTitle','view','delegate','isPremiumPlugin','isMaximized','347374vSGiVm','pluginName','isLoading','40RyNUkv','removeConversation','showConversationHistory','AITabs','1788282uedYud','12cDiDvc','locale','get','updateItemTitle','removeHistoryItem','16ZzhnJW','history','2021636hLsWBA','showError','_historyView','isOfficialPlugin','setLoadingSkeleton','10VmjEHW','hideError','10392404oyQiNk','2740935NhQMJA','selectConversation','updateHistoryItemsWithCategories','showResizeButton','openChat','694203zuBfzz','plugins','addTab','resizeTabs','updateItemLoadingState','AI_CHAT_HISTORY_HEADING','context','setIsMaximized'];_0x258a=function(){return _0x9e41bd;};return _0x258a();}import{AITabs as _0xfab1c}from'../aitabs/aitabs.js';import{IconAIHistory as _0x3db7dc}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x24a59e}from'./ui/aichathistoryview.js';import{getTranslation as _0x28eb5a}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x56e554(0x18a),_0x56e554(0x189),_0x56e554(0x1af),_0x56e554(0x1a9),_0x56e554(0x19d),_0x56e554(0x1a0),_0x56e554(0x1a4)];export class AIChatHistoryUI extends _0x38415c{static get[_0x56e554(0x1ac)](){return[_0xfab1c];}[_0x56e554(0x196)];static get[_0x56e554(0x186)](){const _0x69a58d=_0x56e554;return _0x69a58d(0x1ab);}static get[_0x56e554(0x197)](){return!0x0;}static get[_0x56e554(0x183)](){return!0x0;}constructor(_0x3e7ecb){const _0x5f4c88=_0x56e554;super(_0x3e7ecb);const _0x4b8343=this[_0x5f4c88(0x1a7)][_0x5f4c88(0x1a2)][_0x5f4c88(0x18f)](_0x5f4c88(0x18b));this[_0x5f4c88(0x196)]=new _0x24a59e(this[_0x5f4c88(0x1a7)][_0x5f4c88(0x18e)],_0x4b8343[_0x5f4c88(0x19f)]),this[_0x5f4c88(0x196)][_0x5f4c88(0x182)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x4b8343[_0x5f4c88(0x181)][_0x5f4c88(0x1a3)]({'id':_0x5f4c88(0x193),'buttonLabel':_0x28eb5a(this[_0x5f4c88(0x1a7)][_0x5f4c88(0x18e)],_0x5f4c88(0x1a6)),'buttonIcon':_0x3db7dc,'order':0x0,'content':this[_0x5f4c88(0x196)]});}[_0x56e554(0x191)](_0x399973){const _0x590149=_0x56e554;this[_0x590149(0x196)][_0x590149(0x191)](_0x399973);}[_0x56e554(0x1aa)](_0x4e621a){const _0x1e6caa=_0x56e554;this[_0x1e6caa(0x196)][_0x1e6caa(0x19e)](_0x4e621a);}[_0x56e554(0x190)](_0x286035,_0x541d67){const _0x5357b0=_0x56e554;this[_0x5357b0(0x196)][_0x5357b0(0x190)](_0x286035,_0x541d67);}[_0x56e554(0x1a5)](_0x1ca475,_0x11c524,_0x17acfb){const _0x3ea167=_0x56e554;this[_0x3ea167(0x196)][_0x3ea167(0x1a5)](_0x1ca475,_0x11c524,_0x17acfb);}[_0x56e554(0x198)](_0xfa70a2){const _0x6ddba4=_0x56e554;this[_0x6ddba4(0x196)][_0x6ddba4(0x187)]=_0xfa70a2;}[_0x56e554(0x195)](_0x4d04b5){const _0x277870=_0x56e554;this[_0x277870(0x196)][_0x277870(0x1ad)]=_0x4d04b5;}[_0x56e554(0x19a)](){const _0x281f66=_0x56e554;this[_0x281f66(0x196)][_0x281f66(0x1ad)]='';}[_0x56e554(0x1a8)](_0x4554fa){const _0x5dcd8a=_0x56e554;this[_0x5dcd8a(0x196)][_0x5dcd8a(0x184)]=_0x4554fa;}}
23
+ const _0x104713=_0x9330;(function(_0x18e690,_0x1d0a62){const _0xab7d57=_0x9330,_0x38e130=_0x18e690();while(!![]){try{const _0x3f9aea=-parseInt(_0xab7d57(0x123))/0x1+parseInt(_0xab7d57(0x132))/0x2+parseInt(_0xab7d57(0x14a))/0x3*(parseInt(_0xab7d57(0x12a))/0x4)+parseInt(_0xab7d57(0x12b))/0x5+parseInt(_0xab7d57(0x14c))/0x6*(parseInt(_0xab7d57(0x137))/0x7)+parseInt(_0xab7d57(0x142))/0x8*(parseInt(_0xab7d57(0x138))/0x9)+-parseInt(_0xab7d57(0x127))/0xa;if(_0x3f9aea===_0x1d0a62)break;else _0x38e130['push'](_0x38e130['shift']());}catch(_0x5b65ba){_0x38e130['push'](_0x38e130['shift']());}}}(_0x4b46,0xbd12d));import{ContextPlugin as _0x5ace22}from'ckeditor5/src/core.js';import{AITabs as _0x295600}from'../aitabs/aitabs.js';import{IconAIHistory as _0x1b056d}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x152204}from'./ui/aichathistoryview.js';import{getTranslation as _0xaead4a}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';function _0x4b46(){const _0x23dbb3=['7550005WWZJtB','updateHistoryItemsWithCategories','editConversationTitle','errorMessage','updateItemTitle','locale','hideError','2546656HDksDQ','resizeTabs','AITabs','AIChatHistoryUI','view','1743882nSdxfE','2005749YPBDNB','history','isPremiumPlugin','isMaximized','pluginName','updateItemLoadingState','removeConversation','showConversationHistory','isLoading','setLoadingSkeleton','48lKPecy','setConversationPinned','selectConversation','addTab','delegate','_historyView','showError','showResizeButton','42CmCuZM','AI_CHAT_HISTORY_HEADING','24bQOYnT','updateItems','context','setIsMaximized','requires','854909tDABeB','openChat','get','removeHistoryItem','50289190fDGLEY','plugins','isOfficialPlugin','440364rzCfNv'];_0x4b46=function(){return _0x23dbb3;};return _0x4b46();}export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x104713(0x13f),_0x104713(0x13e),_0x104713(0x12d),_0x104713(0x143),_0x104713(0x144),_0x104713(0x124),_0x104713(0x133)];function _0x9330(_0x103d58,_0x2e06ec){const _0x4b46d2=_0x4b46();return _0x9330=function(_0x933060,_0x329e93){_0x933060=_0x933060-0x122;let _0x4897f7=_0x4b46d2[_0x933060];return _0x4897f7;},_0x9330(_0x103d58,_0x2e06ec);}export class AIChatHistoryUI extends _0x5ace22{static get[_0x104713(0x122)](){return[_0x295600];}[_0x104713(0x147)];static get[_0x104713(0x13c)](){const _0x4fc151=_0x104713;return _0x4fc151(0x135);}static get[_0x104713(0x129)](){return!0x0;}static get[_0x104713(0x13a)](){return!0x0;}constructor(_0x280e67){const _0x4c6dbd=_0x104713;super(_0x280e67);const _0xb277dd=this[_0x4c6dbd(0x14e)][_0x4c6dbd(0x128)][_0x4c6dbd(0x125)](_0x4c6dbd(0x134));this[_0x4c6dbd(0x147)]=new _0x152204(this[_0x4c6dbd(0x14e)][_0x4c6dbd(0x130)],_0xb277dd[_0x4c6dbd(0x149)]),this[_0x4c6dbd(0x147)][_0x4c6dbd(0x146)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0xb277dd[_0x4c6dbd(0x136)][_0x4c6dbd(0x145)]({'id':_0x4c6dbd(0x139),'buttonLabel':_0xaead4a(this[_0x4c6dbd(0x14e)][_0x4c6dbd(0x130)],_0x4c6dbd(0x14b)),'buttonIcon':_0x1b056d,'order':0x0,'content':this[_0x4c6dbd(0x147)]});}[_0x104713(0x126)](_0x4abf29){const _0x2cf509=_0x104713;this[_0x2cf509(0x147)][_0x2cf509(0x126)](_0x4abf29);}[_0x104713(0x14d)](_0xf3cc7){const _0x3874e5=_0x104713;this[_0x3874e5(0x147)][_0x3874e5(0x12c)](_0xf3cc7);}[_0x104713(0x12f)](_0x589d46,_0x4a71ea){const _0x1ca01e=_0x104713;this[_0x1ca01e(0x147)][_0x1ca01e(0x12f)](_0x589d46,_0x4a71ea);}[_0x104713(0x13d)](_0x3ca5e8,_0x170bde,_0x8a8a53){const _0x77cd3a=_0x104713;this[_0x77cd3a(0x147)][_0x77cd3a(0x13d)](_0x3ca5e8,_0x170bde,_0x8a8a53);}[_0x104713(0x141)](_0x3279b9){const _0x3d00fc=_0x104713;this[_0x3d00fc(0x147)][_0x3d00fc(0x140)]=_0x3279b9;}[_0x104713(0x148)](_0x377a44){const _0x30214e=_0x104713;this[_0x30214e(0x147)][_0x30214e(0x12e)]=_0x377a44;}[_0x104713(0x131)](){const _0x919b9=_0x104713;this[_0x919b9(0x147)][_0x919b9(0x12e)]='';}[_0x104713(0x14f)](_0x42d2a2){const _0x1d52c8=_0x104713;this[_0x1d52c8(0x147)][_0x1d52c8(0x13b)]=_0x42d2a2;}}