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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsreply.js +1 -1
  6. package/src/aiassistant/adapters/aiadapter.js +1 -1
  7. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  8. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  9. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  10. package/src/aiassistant/aiassistant.js +1 -1
  11. package/src/aiassistant/aiassistantediting.js +1 -1
  12. package/src/aiassistant/aiassistantui.js +1 -1
  13. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  14. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  15. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  16. package/src/aiassistant/ui/form/aiformview.js +1 -1
  17. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  18. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  19. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  20. package/src/aiballoon/aiballoon.js +1 -1
  21. package/src/aichat/aichat.js +1 -1
  22. package/src/aichat/aichatballoon.js +1 -1
  23. package/src/aichat/aichatcontroller.js +1 -1
  24. package/src/aichat/aichatui.js +1 -1
  25. package/src/aichat/model/aichatcontext.js +1 -1
  26. package/src/aichat/ui/aichatballoonview.js +1 -1
  27. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  28. package/src/aichat/ui/aichatheaderview.js +1 -1
  29. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  30. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  31. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  32. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  33. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  34. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  35. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  36. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  37. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  38. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  39. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  40. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  41. package/src/aichathistory/aichathistory.js +1 -1
  42. package/src/aichathistory/aichathistorycontroller.js +1 -1
  43. package/src/aichathistory/aichathistoryui.js +1 -1
  44. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  45. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  46. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  47. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  48. package/src/aicore/aiconnector.js +1 -1
  49. package/src/aicore/aiediting.js +1 -1
  50. package/src/aicore/model/aiinteraction.js +1 -1
  51. package/src/aicore/model/aimodels.js +1 -1
  52. package/src/aicore/model/aireply.js +1 -1
  53. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  54. package/src/aicore/ui/aidisclaimerview.js +1 -1
  55. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  56. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  57. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  58. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  59. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  60. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  61. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  62. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  63. package/src/aicore/utils/createresizebutton.js +1 -1
  64. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  65. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  66. package/src/aieditorintegration/aieditorintegration.js +1 -1
  67. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  68. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  69. package/src/aiquickactions/aiquickactions.js +1 -1
  70. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  71. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  72. package/src/aiquickactions/aiquickactionsui.js +1 -1
  73. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  74. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  75. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  76. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  77. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  78. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  79. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  80. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  81. package/src/aireviewcore/aireviewcoreui.js +1 -1
  82. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  83. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  84. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  85. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  86. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  87. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  88. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  89. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  90. package/src/aireviewmode/aireviewmode.js +1 -1
  91. package/src/aireviewmode/aireviewmodeui.js +1 -1
  92. package/src/aitabs/aitabs.js +1 -1
  93. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  94. package/src/aitranslate/aitranslate.js +1 -1
  95. package/src/aitranslate/aitranslatecontroller.js +1 -1
  96. package/src/aitranslate/aitranslateui.js +1 -1
  97. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  98. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xbf5351=_0x3891;(function(_0x1287a3,_0x535b82){const _0x57faca=_0x3891,_0x2dc009=_0x1287a3();while(!![]){try{const _0x2a6fe1=-parseInt(_0x57faca(0x1af))/0x1+-parseInt(_0x57faca(0x1d0))/0x2+parseInt(_0x57faca(0x1d6))/0x3*(parseInt(_0x57faca(0x1d3))/0x4)+parseInt(_0x57faca(0x20c))/0x5*(parseInt(_0x57faca(0x1ec))/0x6)+-parseInt(_0x57faca(0x1ae))/0x7+-parseInt(_0x57faca(0x1d7))/0x8+parseInt(_0x57faca(0x196))/0x9;if(_0x2a6fe1===_0x535b82)break;else _0x2dc009['push'](_0x2dc009['shift']());}catch(_0x266bd2){_0x2dc009['push'](_0x2dc009['shift']());}}}(_0x405a,0x79db6));import{BalloonPanelView as _0x5b2dc0,ButtonView as _0x4283c0,clickOutsideHandler as _0x17b365,FileDialogButtonView as _0x3ac457,IconView as _0x5ec608,View as _0x1a6fc5}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x5214f5,IconDocument as _0x322898,IconDocumentOutline as _0x1e86e3,IconDropdownArrow as _0x477b21,IconLink as _0x273aa6,IconPaperClip as _0x1e1e52}from'@ckeditor/ckeditor5-icons';function _0x3891(_0x5f1bd2,_0x3fee55){const _0x405ad9=_0x405a();return _0x3891=function(_0x389148,_0x2d7852){_0x389148=_0x389148-0x18c;let _0x5c367e=_0x405ad9[_0x389148];return _0x5c367e;},_0x3891(_0x5f1bd2,_0x3fee55);}import{AIChatContextItemButtonView as _0x23c3e0}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x3f1bbf}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x35e6dd}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x175761}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0xbea63}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0xbf5351(0x1fb),_0xbf5351(0x1e1),_0xbf5351(0x207),_0xbf5351(0x1e8),_0xbf5351(0x1b1),_0xbf5351(0x218),_0xbf5351(0x21c)];const Uo=_0xbf5351(0x1a6),Lo=_0xbf5351(0x1ca),No=_0xbf5351(0x1f0),Mo=_0xbf5351(0x1e7),Ho=_0xbf5351(0x1a8),jo=_0xbf5351(0x1cd),Fo=_0xbf5351(0x1c2),Xo=_0xbf5351(0x19f),Do=_0xbf5351(0x204),$o=_0xbf5351(0x1b8),Wo=_0xbf5351(0x1f3),qo=_0xbf5351(0x1ef),zo=[_0x5b2dc0[_0xbf5351(0x1c5)][_0xbf5351(0x1f8)],_0x5b2dc0[_0xbf5351(0x1c5)][_0xbf5351(0x1a5)],_0x5b2dc0[_0xbf5351(0x1c5)][_0xbf5351(0x1bc)],_0x5b2dc0[_0xbf5351(0x1c5)][_0xbf5351(0x1a4)],_0x5b2dc0[_0xbf5351(0x1c5)][_0xbf5351(0x1ad)],_0x5b2dc0[_0xbf5351(0x1c5)][_0xbf5351(0x21e)]];export class AIChatContextPanelView extends _0x1a6fc5{[_0xbf5351(0x19d)];[_0xbf5351(0x1d4)]=this[_0xbf5351(0x191)]();[_0xbf5351(0x1f4)]=this[_0xbf5351(0x191)]();[_0xbf5351(0x201)];[_0xbf5351(0x1ce)];[_0xbf5351(0x19a)];[_0xbf5351(0x1fa)];[_0xbf5351(0x200)];[_0xbf5351(0x1f6)];[_0xbf5351(0x1d1)]=!0x1;[_0xbf5351(0x1d5)];constructor(_0x3e6c7c,_0x1143cd){const _0x3da63c=_0xbf5351;super(_0x3e6c7c),this[_0x3da63c(0x1d5)]=_0x1143cd[_0x3da63c(0x1d5)],this[_0x3da63c(0x1d4)]=this[_0x3da63c(0x191)](),this[_0x3da63c(0x1f4)]=this[_0x3da63c(0x191)](),this[_0x3da63c(0x19d)]=this[_0x3da63c(0x1e3)](_0x3e6c7c),this[_0x3da63c(0x1ce)]=this[_0x3da63c(0x1c1)](_0x3e6c7c),this[_0x3da63c(0x19a)]=this[_0x3da63c(0x21f)](_0x3e6c7c),this[_0x3da63c(0x200)]=this[_0x3da63c(0x1a2)](_0x3e6c7c,_0x1143cd);const _0x6eab5b={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x3da63c(0x201)]=new _0x35e6dd(_0x3e6c7c,this[_0x3da63c(0x1d4)],_0x6eab5b,this[_0x3da63c(0x1d5)],this),this[_0x3da63c(0x1f6)]={'buttonView':this[_0x3da63c(0x19d)],'balloonView':this[_0x3da63c(0x1ce)],'hideMethod':this[_0x3da63c(0x208)][_0x3da63c(0x1c8)](this),'showMethod':this[_0x3da63c(0x1c6)][_0x3da63c(0x1c8)](this)},this[_0x3da63c(0x1de)](),this[_0x3da63c(0x1db)]();}[_0xbf5351(0x206)](){const _0x279ca0=_0xbf5351;super[_0x279ca0(0x206)](),this[_0x279ca0(0x210)](),this[_0x279ca0(0x201)][_0x279ca0(0x1b5)](this[_0x279ca0(0x205)]),this[_0x279ca0(0x201)][_0x279ca0(0x1ab)]();}[_0xbf5351(0x1ac)](){const _0x42d267=_0xbf5351;super[_0x42d267(0x1ac)](),this[_0x42d267(0x201)][_0x42d267(0x1ac)](),this[_0x42d267(0x200)][_0x42d267(0x1ac)]();}[_0xbf5351(0x1fd)](_0x4b095d,_0x28ed70){const _0x4f70f7=_0xbf5351,_0x37723c=this[_0x4f70f7(0x212)](_0x4b095d,_0x4f70f7(0x195),!0x0,_0x28ed70);this[_0x4f70f7(0x1c7)](_0x37723c,this[_0x4f70f7(0x1d4)]),this[_0x4f70f7(0x201)][_0x4f70f7(0x1ab)]();}[_0xbf5351(0x1b1)](_0x11f06e){const _0x5c58e8=_0xbf5351;this[_0x5c58e8(0x20e)](_0x11f06e,this[_0x5c58e8(0x1d4)]),this[_0x5c58e8(0x20e)](_0x11f06e,this[_0x5c58e8(0x201)][_0x5c58e8(0x1a3)]),this[_0x5c58e8(0x201)][_0x5c58e8(0x1ab)]();}[_0xbf5351(0x18d)](_0x55a474,_0x27e16f){const _0x18a87e=_0xbf5351;let _0x549f72=this[_0x18a87e(0x1d4)][_0x18a87e(0x1ff)](_0x4e9f9a=>_0x4e9f9a['id']===_0x55a474);_0x549f72||(_0x549f72=this[_0x18a87e(0x201)][_0x18a87e(0x1a3)][_0x18a87e(0x1ff)](_0x15c982=>_0x15c982['id']===_0x55a474)),_0x549f72&&(_0x549f72[_0x18a87e(0x1ea)]=_0x27e16f);}[_0xbf5351(0x1eb)](_0x181164){const _0x1147ce=_0xbf5351;this[_0x1147ce(0x1f4)][_0x1147ce(0x1cc)]();for(const _0x221213 of _0x181164){const _0x59070b=this[_0x1147ce(0x212)](_0x221213,_0x1147ce(0x199),!0x1,!0x1);this[_0x1147ce(0x1c7)](_0x59070b,this[_0x1147ce(0x1f4)]);}}[_0xbf5351(0x1e2)](){const _0x2cb532=_0xbf5351;this[_0x2cb532(0x1d4)][_0x2cb532(0x1cc)](),this[_0x2cb532(0x201)][_0x2cb532(0x1cc)]();}[_0xbf5351(0x1cf)](){const _0x4018fd=_0xbf5351;this[_0x4018fd(0x1f4)][_0x4018fd(0x1cc)]();}[_0xbf5351(0x1b2)](_0x27e060,_0x59d150,_0x29c5d8){const _0x2f2a89=_0xbf5351;this[_0x2f2a89(0x200)][_0x2f2a89(0x1b2)](_0x27e060,_0x59d150,_0x29c5d8);}[_0xbf5351(0x208)](){const _0x4a0333=_0xbf5351;this[_0x4a0333(0x1a1)](!0x1);}[_0xbf5351(0x1c6)](){const _0x1866a6=_0xbf5351;this[_0x1866a6(0x1a1)](!0x0);}[_0xbf5351(0x21a)](){const _0x2df1cc=_0xbf5351;this[_0x2df1cc(0x19a)][_0x2df1cc(0x19e)](),this[_0x2df1cc(0x19d)][_0x2df1cc(0x1d2)]=!0x1,this[_0x2df1cc(0x1fa)]&&this[_0x2df1cc(0x1fa)][_0x2df1cc(0x1cc)]();}[_0xbf5351(0x1e5)](){const _0x2b4165=_0xbf5351;this[_0x2b4165(0x19a)][_0x2b4165(0x1da)](),this[_0x2b4165(0x19d)][_0x2b4165(0x1d2)]=!0x0;}[_0xbf5351(0x21b)]({source:_0x100455,withBackButton:_0x1526cc}){const _0x2bf366=_0xbf5351;this[_0x2bf366(0x200)][_0x2bf366(0x18f)]({'source':_0x100455,'withBackButton':_0x1526cc}),this[_0x2bf366(0x19d)][_0x2bf366(0x1d2)]=!0x0;}[_0xbf5351(0x219)](_0x363b2f,_0x2239fb,_0x34a5d2,_0x2b6f7d){const _0x567cdc=_0xbf5351;this[_0x567cdc(0x200)][_0x567cdc(0x219)](_0x363b2f,_0x34a5d2,_0x2b6f7d);}[_0xbf5351(0x1f2)](_0x552b6b){const _0x190906=_0xbf5351;this[_0x190906(0x200)][_0x190906(0x1f2)](_0x552b6b),this[_0x190906(0x19d)][_0x190906(0x1d2)]=!0x1;}[_0xbf5351(0x190)](_0x4993f7){const _0x3882e2=_0xbf5351;this[_0x3882e2(0x1d8)](this[_0x3882e2(0x1ce)],this[_0x3882e2(0x1ee)],_0x4993f7),this[_0x3882e2(0x1f1)](_0x4993f7);}[_0xbf5351(0x1f1)](_0x728d2){const _0x313e03=_0xbf5351,_0x1a9ce4=!_0x728d2[_0x313e03(0x1cb)][_0x313e03(0x20b)]&&_0x728d2[_0x313e03(0x1cb)][_0x313e03(0x216)],_0x7b795a=_0x728d2[_0x313e03(0x209)][_0x313e03(0x216)],_0x5d80a1=_0x728d2[_0x313e03(0x203)][_0x313e03(0x216)],_0x31fb50=_0x728d2[_0x313e03(0x197)][_0x313e03(0x221)]>0x0,_0x25d8db=_0x728d2[_0x313e03(0x19c)]&&_0x728d2[_0x313e03(0x19c)][_0x313e03(0x221)]>0x0;this[_0x313e03(0x19d)][_0x313e03(0x1e0)]=_0x1a9ce4||_0x7b795a||_0x5d80a1||_0x31fb50||_0x25d8db;}[_0xbf5351(0x1de)](){const _0x3f0ee3=_0xbf5351;this[_0x3f0ee3(0x19b)]({'tag':_0x3f0ee3(0x1f5),'attributes':{'class':[Uo,_0x3f0ee3(0x1f7)]},'children':[{'tag':_0x3f0ee3(0x1f5),'attributes':{'class':Lo},'children':this[_0x3f0ee3(0x1d4)]}]});}[_0xbf5351(0x1db)](){const _0x561868=_0xbf5351;this[_0x561868(0x19d)]['on'](_0x561868(0x1bf),()=>{const _0x4a785a=_0x561868;this[_0x4a785a(0x1f9)]();});}[_0xbf5351(0x1e3)](_0x24b182){const _0x4cf3f8=_0xbf5351,_0x51f47e=new _0x4283c0(_0x24b182);return _0x51f47e[_0x4cf3f8(0x220)]({'label':_0x175761(_0x24b182,_0x4cf3f8(0x1b4)),'class':Xo+'\x20'+Mo,'icon':_0x1e1e52,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x51f47e;}[_0xbf5351(0x1c1)](_0x4f818b){const _0x2c97eb=_0xbf5351;return this[_0x2c97eb(0x1e4)](_0x4f818b,No);}[_0xbf5351(0x21f)](_0x38fc4f){const _0x408b95=_0xbf5351,_0x5cacb7=this[_0x408b95(0x1e4)](_0x38fc4f,Ho);return this[_0x408b95(0x1e6)](_0x5cacb7,_0x38fc4f),_0x5cacb7;}[_0xbf5351(0x1a2)](_0x5e64d2,_0x1d8dc8){const _0x514918=_0xbf5351,_0x2deac8={'searchInputVisibleFrom':_0x1d8dc8[_0x514918(0x213)],'onBackToContext':()=>{const _0x4b01cf=_0x514918;this[_0x4b01cf(0x1c6)](),this[_0x4b01cf(0x1ce)][_0x4b01cf(0x1a9)]({'target':this[_0x4b01cf(0x19d)][_0x4b01cf(0x205)],'limiter':this[_0x4b01cf(0x217)](),'positions':zo});},'onResourceSelected':(_0x18e51a,_0x4ab42e)=>{const _0x1817fc=_0x514918;this[_0x1817fc(0x18c)](_0x1817fc(0x1e8),{'source':_0x18e51a,'resource':_0x4ab42e});},'onLoadSourceResources':_0x46dae6=>{const _0x34c175=_0x514918;this[_0x34c175(0x18c)](_0x34c175(0x218),_0x46dae6);},'onBalloonClosed':()=>{const _0x1b6ce4=_0x514918;this[_0x1b6ce4(0x19d)][_0x1b6ce4(0x1d2)]=!0x1;},'getLimiterElement':()=>this[_0x514918(0x217)](),'getTargetElement':()=>this[_0x514918(0x19d)][_0x514918(0x205)]};return new _0xbea63(_0x5e64d2,_0x1d8dc8[_0x514918(0x1d5)],_0x2deac8);}[_0xbf5351(0x217)](){const _0x16ddba=_0xbf5351;return this[_0x16ddba(0x205)]?.[_0x16ddba(0x198)]('.'+qo)||document[_0x16ddba(0x1be)];}[_0xbf5351(0x1e4)](_0x564b8d,_0x4e95d6){const _0x3b0800=_0xbf5351,_0x375ae2=new _0x5b2dc0(_0x564b8d);return _0x375ae2[_0x3b0800(0x21d)]({'attributes':{'class':_0x4e95d6}}),this[_0x3b0800(0x1d5)][_0x3b0800(0x211)](_0x375ae2),_0x375ae2;}[_0xbf5351(0x1d8)](_0x2b156a,_0x4a5c1a,_0x640d47){const _0x56fe29=_0xbf5351;if(_0x2b156a[_0x56fe29(0x1b7)][_0x56fe29(0x1cc)](),!_0x640d47[_0x56fe29(0x1cb)][_0x56fe29(0x20b)]&&_0x640d47[_0x56fe29(0x1cb)][_0x56fe29(0x216)]){const _0x5672d1=this[_0x56fe29(0x1a0)](_0x4a5c1a,{'label':_0x175761(_0x4a5c1a,_0x56fe29(0x1ba)),'icon':_0x322898});_0x5672d1['on'](_0x56fe29(0x1bf),()=>{const _0x41eeb8=_0x56fe29;this[_0x41eeb8(0x18c)](_0x41eeb8(0x1fb)),this[_0x41eeb8(0x208)]();}),_0x2b156a[_0x56fe29(0x1b7)][_0x56fe29(0x211)](_0x5672d1);}if(_0x640d47[_0x56fe29(0x209)][_0x56fe29(0x216)]){const _0x3304e8=this[_0x56fe29(0x1a0)](_0x4a5c1a,{'label':_0x175761(_0x4a5c1a,_0x56fe29(0x215)),'icon':_0x273aa6});_0x3304e8['on'](_0x56fe29(0x1bf),()=>{const _0x1c0a5b=_0x56fe29;this[_0x1c0a5b(0x208)](),this[_0x1c0a5b(0x1e5)](),this[_0x1c0a5b(0x19a)][_0x1c0a5b(0x1a9)]({'target':this[_0x1c0a5b(0x19d)][_0x1c0a5b(0x205)],'limiter':this[_0x1c0a5b(0x217)](),'positions':zo}),this[_0x1c0a5b(0x1fa)][_0x1c0a5b(0x1fe)]();}),_0x2b156a[_0x56fe29(0x1b7)][_0x56fe29(0x211)](_0x3304e8);}if(_0x640d47[_0x56fe29(0x203)][_0x56fe29(0x216)]){const _0x37eec5=new _0x3ac457(_0x4a5c1a);_0x37eec5[_0x56fe29(0x220)]({'label':_0x175761(_0x4a5c1a,_0x56fe29(0x1fc)),'icon':_0x5214f5,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x37eec5['on'](_0x56fe29(0x1bf),()=>{const _0x220afb=_0x56fe29;this[_0x220afb(0x208)]();}),_0x37eec5['on'](_0x56fe29(0x192),(_0x4f6272,_0x5a3374)=>{const _0x10568a=_0x56fe29;this[_0x10568a(0x18c)](_0x10568a(0x1e1),_0x5a3374);}),_0x37eec5[_0x56fe29(0x1c0)]=!0x0,_0x2b156a[_0x56fe29(0x1b7)][_0x56fe29(0x211)](_0x37eec5);}for(const _0x387497 of _0x640d47[_0x56fe29(0x197)]){const _0x314316=this[_0x56fe29(0x1a0)](_0x4a5c1a,{'label':_0x387497[_0x56fe29(0x1bb)],'icon':_0x387497[_0x56fe29(0x1e9)]||_0x1e86e3,'type':_0x56fe29(0x1b0)});_0x2b156a[_0x56fe29(0x1b7)][_0x56fe29(0x211)](_0x314316),_0x314316['on'](_0x56fe29(0x1bf),()=>{const _0xc35647=_0x56fe29;this[_0xc35647(0x208)](),this[_0xc35647(0x21b)]({'source':_0x387497,'withBackButton':!this[_0xc35647(0x1d1)]});});}for(const _0x81ac of _0x640d47[_0x56fe29(0x19c)]||[]){const _0x40dc1d=this[_0x56fe29(0x1a0)](_0x4a5c1a,{'label':_0x81ac[_0x56fe29(0x1bb)],'icon':_0x81ac[_0x56fe29(0x1e9)]||_0x1e86e3,'type':_0x56fe29(0x1a7)});_0x2b156a[_0x56fe29(0x1b7)][_0x56fe29(0x211)](_0x40dc1d),_0x40dc1d['on'](_0x56fe29(0x1bf),()=>{const _0x2c31aa=_0x56fe29;this[_0x2c31aa(0x208)](),this[_0x2c31aa(0x18c)](_0x2c31aa(0x21c),_0x81ac);});}this[_0x56fe29(0x1d1)]=0x1===_0x2b156a[_0x56fe29(0x1b7)][_0x56fe29(0x221)],this[_0x56fe29(0x1fa)][_0x56fe29(0x18e)]=!this[_0x56fe29(0x1d1)];}[_0xbf5351(0x1e6)](_0x190130,_0x13f553){const _0x4382db=_0xbf5351;this[_0x4382db(0x1fa)]=new _0x3f1bbf(_0x13f553),this[_0x4382db(0x1fa)]['on'](_0x4382db(0x1aa),(_0x24e95d,_0x2c228c)=>{const _0x57db2f=_0x4382db;this[_0x57db2f(0x1b3)](_0x2c228c);}),this[_0x4382db(0x1fa)]['on'](_0x4382db(0x193),()=>{const _0x40489a=_0x4382db;this[_0x40489a(0x21a)](),this[_0x40489a(0x1d1)]||(this[_0x40489a(0x1c6)](),this[_0x40489a(0x1ce)][_0x40489a(0x1a9)]({'target':this[_0x40489a(0x19d)][_0x40489a(0x205)],'limiter':this[_0x40489a(0x217)](),'positions':zo}));}),this[_0x4382db(0x1fa)]['on'](_0x4382db(0x1c9),()=>{const _0x8e3daf=_0x4382db;this[_0x8e3daf(0x19a)][_0x8e3daf(0x20a)]&&this[_0x8e3daf(0x19a)][_0x8e3daf(0x1a9)]({'target':this[_0x8e3daf(0x19d)][_0x8e3daf(0x205)],'limiter':this[_0x8e3daf(0x217)](),'positions':zo});}),_0x190130[_0x4382db(0x1b7)][_0x4382db(0x211)](this[_0x4382db(0x1fa)]);}[_0xbf5351(0x1a0)](_0x3950a2,_0x94ea8){const _0x3b3a22=_0xbf5351,_0x55fb37=_0x3b3a22(0x1b0)===_0x94ea8[_0x3b3a22(0x194)]?new SourcesBalloonButtonView(_0x3950a2):new _0x4283c0(_0x3950a2);return _0x55fb37[_0x3b3a22(0x220)]({'label':_0x94ea8[_0x3b3a22(0x1bb)],'icon':_0x94ea8[_0x3b3a22(0x1e9)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x55fb37;}[_0xbf5351(0x210)](){const _0x156238=_0xbf5351;this[_0x156238(0x20d)](),this[_0x156238(0x1bd)]();}[_0xbf5351(0x1bd)](){const _0x1d762b=_0xbf5351;_0x17b365({'emitter':this[_0x1d762b(0x19a)],'contextElements':[this[_0x1d762b(0x19a)][_0x1d762b(0x205)]],'callback':()=>{const _0x382a10=_0x1d762b;this[_0x382a10(0x21a)]();},'activator':()=>this[_0x1d762b(0x19a)][_0x1d762b(0x20a)]});}[_0xbf5351(0x1a1)](_0x159c56){const _0x38a49b=_0xbf5351,_0xaf0e3c=this[_0x38a49b(0x1f6)];_0xaf0e3c[_0x38a49b(0x1dd)][_0x38a49b(0x1d2)]=_0x159c56,_0x159c56?_0xaf0e3c[_0x38a49b(0x1ed)][_0x38a49b(0x1da)]():_0xaf0e3c[_0x38a49b(0x1ed)][_0x38a49b(0x19e)]();}[_0xbf5351(0x20d)](){const _0x1cb0cc=_0xbf5351,{balloonView:_0x59b2cc,buttonView:_0x3e69c6,hideMethod:_0x38ec43}=this[_0x1cb0cc(0x1f6)];_0x17b365({'emitter':_0x59b2cc,'contextElements':[_0x59b2cc[_0x1cb0cc(0x205)],_0x3e69c6[_0x1cb0cc(0x205)]],'callback':()=>{_0x38ec43();},'activator':()=>_0x3e69c6[_0x1cb0cc(0x1d2)]&&!this[_0x1cb0cc(0x19a)][_0x1cb0cc(0x20a)]&&!this[_0x1cb0cc(0x200)][_0x1cb0cc(0x1dc)]()});}[_0xbf5351(0x212)](_0x5e5b26,_0x514ba5,_0x371fea=!0x1,_0x35dfa2=!0x1){const _0xf3d6ff=_0xbf5351,_0x132888=_0xf3d6ff(0x199)===_0x514ba5||!0x0===_0x5e5b26[_0xf3d6ff(0x1d9)],_0x5ab4f1=new _0x23c3e0(this[_0xf3d6ff(0x1ee)],_0x5e5b26,_0x132888,_0x371fea,_0x35dfa2);return _0x132888||_0x5ab4f1['on'](_0xf3d6ff(0x1c3),()=>{const _0x56eef9=_0xf3d6ff;this[_0x56eef9(0x18c)](_0x56eef9(0x1b1),_0x5ab4f1['id']);}),_0x5ab4f1;}[_0xbf5351(0x1c7)](_0xe16f8b,_0x5872d4){const _0x3cb488=_0xbf5351;_0x5872d4[_0x3cb488(0x211)](_0xe16f8b,0x0);}[_0xbf5351(0x20e)](_0x55141c,_0x3e1bc4){const _0x2f87c5=_0xbf5351,_0x58534d=_0x3e1bc4[_0x2f87c5(0x1ff)](_0x5b50c0=>_0x5b50c0['id']===_0x55141c);_0x58534d&&_0x3e1bc4[_0x2f87c5(0x20f)](_0x58534d);}[_0xbf5351(0x1f9)](){const _0x1ca898=_0xbf5351;this[_0x1ca898(0x19d)][_0x1ca898(0x1d2)]?this[_0x1ca898(0x208)]():(this[_0x1ca898(0x1c6)](),this[_0x1ca898(0x1ce)][_0x1ca898(0x1a9)]({'target':this[_0x1ca898(0x19d)][_0x1ca898(0x205)],'limiter':this[_0x1ca898(0x217)](),'positions':zo}),this[_0x1ca898(0x1d1)]&&this[_0x1ca898(0x1ce)][_0x1ca898(0x1b7)][_0x1ca898(0x1c4)](0x0)?.[_0x1ca898(0x18c)](_0x1ca898(0x1bf)));}[_0xbf5351(0x1b3)](_0x1c1533){const _0x2ef69c=_0xbf5351;this[_0x2ef69c(0x1fa)][_0x2ef69c(0x1cc)](),this[_0x2ef69c(0x21a)](),this[_0x2ef69c(0x18c)](_0x2ef69c(0x207),_0x1c1533);}}function _0x405a(){const _0x37eb9f=['ck-ai-chat-context-controls__balloon-button','_addContextBalloonPanelView','clearConversationContextItems','1183702VZTlsG','_hasExactlyOneSource','isOn','1308DLGuDX','_currentContextsChips','bodyCollection','7533dZjveQ','7409672nXMZRM','_setBalloonPanelContent','isReadOnly','show','_bindEventHandlers','isAnyResourceBalloonVisible','buttonView','_setupTemplate','__arrow','isEnabled','addFileToContext','clearCurrentContextItems','_createAddContextButtonView','_createBaseBalloonPanel','showUrlBalloonPanel','_addUrlContent','ck-ai-chat-context-controls__add-context-button','addResourceToContext','icon','isLoading','setConversationContext','8148BotpkL','balloonView','locale','ck-ai-chat','ck-ai-chat-context-controls__add-context-balloon-panel','_setAddContextButtonEnabled','closeSourceResourceBalloon','ck-ai-chat-context-controls__show-more-balloon-panel','_conversationContextsChips','div','_addContextBalloonConfig','ck-reset_all-excluded','northArrowSouthWest','_handleAddContextButtonClick','_urlInputView','addDocumentToContext','AI_CHAT_CONTEXT_FILE_LABEL','addContextItem','focus','find','_resourcesBalloonView','_overflowManager','menuitem','files','ck-ai-chat-context-chips-wrapper-balloon','element','render','addUrlToContext','hideAddContextBalloonPanel','urls','isVisible','isHidden','905qgFtVH','_setupAddContextBalloonClickOutsideHandler','_removeContextFromCollection','remove','_setupAllBalloonClickOutsideHandlers','add','_createContextButton','searchInputVisibleFrom','_createArrowView','AI_CHAT_CONTEXT_URL_LABEL','enabled','_getLimiterElement','loadSourceResources','populateSourceResourceBalloon','hideUrlBalloonPanel','_showSourceResourcesBalloon','executeCustomItemCallback','extendTemplate','southArrowNorthEast','_createUrlBalloonPanelView','set','length','fire','setContextItemLoading','withBackButton','showSourceResourcesBalloon','setAddContextOptions','createCollection','done','cancel','type','current','24618258apFNBY','sources','closest','conversation','_urlBalloonPanelView','setTemplate','customItems','addContextButtonView','hide','ck-ai-chat-controls-button','_createBalloonButton','_toggleAddContextBalloon','_createResourcesBalloonView','overflowChips','southArrowNorthWest','northArrowSouth','ck-ai-chat-context-controls','customItem','ck-ai-chat-context-controls__url-balloon-panel','pin','submitUrl','reorganizeChips','destroy','southArrowNorth','5585258oRlzDF','987177bBjqPT','source','removeContextItem','updateResourceState','_handleUrlSubmit','AI_CHAT_CONTEXT_ADD_CONTEXT','setContainerElement','children','content','ck-ai-chat-controls_context_show-more-button','arrowView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','label','northArrowSouthEast','_setupUrlBalloonClickOutsideHandler','body','execute','tooltip','_createAddContextBalloonPanelView','ck-ai-chat-context-controls__balloon-button-source','removeContextItemChip','get','defaultPositions','showAddContextBalloonPanel','_addContextToCollection','bind','refreshBalloon','ck-ai-chat-context-controls__pending-contexts','document','clear'];_0x405a=function(){return _0x37eb9f;};return _0x405a();}export class SourcesBalloonButtonView extends _0x4283c0{[_0xbf5351(0x1b9)];constructor(_0x1e4079){const _0x5e547a=_0xbf5351;super(_0x1e4079),this[_0x5e547a(0x220)]({'withText':!0x0,'role':_0x5e547a(0x202)}),this[_0x5e547a(0x1b9)]=this[_0x5e547a(0x214)](),this[_0x5e547a(0x21d)]({'attributes':{'class':[Fo]}});}[_0xbf5351(0x206)](){const _0x5baa51=_0xbf5351;super[_0x5baa51(0x206)](),this[_0x5baa51(0x1b6)][_0x5baa51(0x211)](this[_0x5baa51(0x1b9)]);}[_0xbf5351(0x214)](){const _0x31cf5e=_0xbf5351,_0x31c8a9=new _0x5ec608();return _0x31c8a9[_0x31cf5e(0x1b7)]=_0x477b21,_0x31c8a9[_0x31cf5e(0x21d)]({'attributes':{'class':Fo+_0x31cf5e(0x1df)}}),_0x31c8a9;}}
23
+ const _0x4b0ad8=_0x3c06;function _0x3c06(_0x51782e,_0x8c60b2){const _0x50a448=_0x50a4();return _0x3c06=function(_0x3c068a,_0x455e74){_0x3c068a=_0x3c068a-0xe2;let _0x40611a=_0x50a448[_0x3c068a];return _0x40611a;},_0x3c06(_0x51782e,_0x8c60b2);}(function(_0x339fea,_0x40898a){const _0x5a403c=_0x3c06,_0x20856d=_0x339fea();while(!![]){try{const _0x11368d=parseInt(_0x5a403c(0x170))/0x1*(parseInt(_0x5a403c(0x106))/0x2)+parseInt(_0x5a403c(0xf1))/0x3+parseInt(_0x5a403c(0xee))/0x4*(parseInt(_0x5a403c(0x16b))/0x5)+parseInt(_0x5a403c(0x10b))/0x6+-parseInt(_0x5a403c(0x15c))/0x7+-parseInt(_0x5a403c(0xf2))/0x8*(-parseInt(_0x5a403c(0x121))/0x9)+-parseInt(_0x5a403c(0x116))/0xa;if(_0x11368d===_0x40898a)break;else _0x20856d['push'](_0x20856d['shift']());}catch(_0x207f4d){_0x20856d['push'](_0x20856d['shift']());}}}(_0x50a4,0x483b4));import{BalloonPanelView as _0x41d54b,ButtonView as _0x4a900c,clickOutsideHandler as _0x89e7d6,FileDialogButtonView as _0x9d2f34,IconView as _0x398130,View as _0x2692ea}from'ckeditor5/src/ui.js';function _0x50a4(){const _0x392199=['_resourcesBalloonView','_createAddContextButtonView','addFileToContext','clearConversationContextItems','isVisible','showAddContextBalloonPanel','_overflowManager','setAddContextOptions','isOn','_setAddContextButtonEnabled','get','ck-ai-chat','showUrlBalloonPanel','ck-ai-chat-context-controls__balloon-button','_showSourceResourcesBalloon','ck-ai-chat-context-chips-wrapper-balloon','searchInputVisibleFrom','_createArrowView','_setBalloonPanelContent','_createAddContextBalloonPanelView','_handleUrlSubmit','populateSourceResourceBalloon','closest','menuitem','__arrow','ck-ai-chat-context-controls__add-context-button','showSourceResourcesBalloon','southArrowNorthWest','find','urls','render','_addContextBalloonPanelView','northArrowSouth','_setupUrlBalloonClickOutsideHandler','setTemplate','_currentContextsChips','_addContextBalloonConfig','ck-ai-chat-controls-button','addDocumentToContext','_createUrlBalloonPanelView','_removeContextFromCollection','focus','AI_CHAT_CONTEXT_FILE_LABEL','ck-reset_all-excluded','div','isAnyResourceBalloonVisible','ck-ai-chat-context-controls','hideUrlBalloonPanel','3443902iYbkxq','ck-ai-chat-controls_context_show-more-button','reorganizeChips','add','_addContextToCollection','_urlBalloonPanelView','_urlInputView','_createBalloonButton','southArrowNorth','ck-ai-chat-context-controls__add-context-balloon-panel','loadSourceResources','closeSourceResourceBalloon','current','removeContextItemChip','execute','920VbPqnm','updateResourceState','refreshBalloon','createCollection','AI_CHAT_CONTEXT_ADD_CONTEXT','10cqbTdz','executeCustomItemCallback','tooltip','children','submitUrl','buttonView','length','defaultPositions','customItem','addResourceToContext','arrowView','_toggleAddContextBalloon','ck-ai-chat-context-controls__balloon-button-source','fire','AI_CHAT_CONTEXT_URL_LABEL','_hasExactlyOneSource','bodyCollection','body','isReadOnly','icon','customItems','6788zxdiRR','pin','addContextButtonView','1202520rulHjJ','3220984WganAe','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','isEnabled','locale','content','element','withBackButton','_handleAddContextButtonClick','_setupAllBalloonClickOutsideHandlers','cancel','destroy','clearCurrentContextItems','_bindEventHandlers','show','northArrowSouthWest','_createContextButton','southArrowNorthEast','bind','balloonView','setConversationContext','26066SxbdMf','isHidden','_conversationContextsChips','extendTemplate','type','10098SLUFjS','overflowChips','removeContextItem','hide','_addUrlContent','setContainerElement','_createResourcesBalloonView','remove','sources','ck-ai-chat-context-controls__pending-contexts','conversation','4598780xqvEde','ck-ai-chat-context-controls__show-more-balloon-panel','document','_setupTemplate','_createBaseBalloonPanel','_getLimiterElement','setContextItemLoading','isLoading','_setupAddContextBalloonClickOutsideHandler','set','enabled','9EJDSDu','hideAddContextBalloonPanel','label','northArrowSouthEast','clear','files','addContextItem','done','ck-ai-chat-context-controls__url-balloon-panel','source','addUrlToContext'];_0x50a4=function(){return _0x392199;};return _0x50a4();}import{IconBrowseFiles as _0x910cbb,IconDocument as _0x3150ef,IconDocumentOutline as _0x1daadd,IconDropdownArrow as _0x5525c4,IconLink as _0x5d88b2,IconPaperClip as _0x38366d}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x39703c}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x4fb14e}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x2417ef}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x770acc}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x22cb4f}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4b0ad8(0x152),_0x4b0ad8(0x12e),_0x4b0ad8(0x12b),_0x4b0ad8(0xe2),_0x4b0ad8(0x10d),_0x4b0ad8(0x166),_0x4b0ad8(0x171)];const Uo=_0x4b0ad8(0x15a),Lo=_0x4b0ad8(0x114),No=_0x4b0ad8(0x165),Mo=_0x4b0ad8(0x145),Ho=_0x4b0ad8(0x129),jo=_0x4b0ad8(0x139),Fo=_0x4b0ad8(0xe5),Xo=_0x4b0ad8(0x151),Do=_0x4b0ad8(0x13b),$o=_0x4b0ad8(0x15d),Wo=_0x4b0ad8(0x117),qo=_0x4b0ad8(0x137),zo=[_0x41d54b[_0x4b0ad8(0x177)][_0x4b0ad8(0x100)],_0x41d54b[_0x4b0ad8(0x177)][_0x4b0ad8(0x14c)],_0x41d54b[_0x4b0ad8(0x177)][_0x4b0ad8(0x124)],_0x41d54b[_0x4b0ad8(0x177)][_0x4b0ad8(0x147)],_0x41d54b[_0x4b0ad8(0x177)][_0x4b0ad8(0x164)],_0x41d54b[_0x4b0ad8(0x177)][_0x4b0ad8(0x102)]];export class AIChatContextPanelView extends _0x2692ea{[_0x4b0ad8(0xf0)];[_0x4b0ad8(0x14f)]=this[_0x4b0ad8(0x16e)]();[_0x4b0ad8(0x108)]=this[_0x4b0ad8(0x16e)]();[_0x4b0ad8(0x132)];[_0x4b0ad8(0x14b)];[_0x4b0ad8(0x161)];[_0x4b0ad8(0x162)];[_0x4b0ad8(0x12c)];[_0x4b0ad8(0x150)];[_0x4b0ad8(0xe8)]=!0x1;[_0x4b0ad8(0xe9)];constructor(_0x2840dd,_0x13ee10){const _0x52c372=_0x4b0ad8;super(_0x2840dd),this[_0x52c372(0xe9)]=_0x13ee10[_0x52c372(0xe9)],this[_0x52c372(0x14f)]=this[_0x52c372(0x16e)](),this[_0x52c372(0x108)]=this[_0x52c372(0x16e)](),this[_0x52c372(0xf0)]=this[_0x52c372(0x12d)](_0x2840dd),this[_0x52c372(0x14b)]=this[_0x52c372(0x13f)](_0x2840dd),this[_0x52c372(0x161)]=this[_0x52c372(0x153)](_0x2840dd),this[_0x52c372(0x12c)]=this[_0x52c372(0x111)](_0x2840dd,_0x13ee10);const _0x5938ba={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x52c372(0x132)]=new _0x2417ef(_0x2840dd,this[_0x52c372(0x14f)],_0x5938ba,this[_0x52c372(0xe9)],this),this[_0x52c372(0x150)]={'buttonView':this[_0x52c372(0xf0)],'balloonView':this[_0x52c372(0x14b)],'hideMethod':this[_0x52c372(0x122)][_0x52c372(0x103)](this),'showMethod':this[_0x52c372(0x131)][_0x52c372(0x103)](this)},this[_0x52c372(0x119)](),this[_0x52c372(0xfe)]();}[_0x4b0ad8(0x14a)](){const _0x57bece=_0x4b0ad8;super[_0x57bece(0x14a)](),this[_0x57bece(0xfa)](),this[_0x57bece(0x132)][_0x57bece(0x110)](this[_0x57bece(0xf7)]),this[_0x57bece(0x132)][_0x57bece(0x15e)]();}[_0x4b0ad8(0xfc)](){const _0x595d2b=_0x4b0ad8;super[_0x595d2b(0xfc)](),this[_0x595d2b(0x132)][_0x595d2b(0xfc)](),this[_0x595d2b(0x12c)][_0x595d2b(0xfc)]();}[_0x4b0ad8(0x127)](_0x53c1b1,_0xa6d55d){const _0x51482f=_0x4b0ad8,_0x46d471=this[_0x51482f(0x101)](_0x53c1b1,_0x51482f(0x168),!0x0,_0xa6d55d);this[_0x51482f(0x160)](_0x46d471,this[_0x51482f(0x14f)]),this[_0x51482f(0x132)][_0x51482f(0x15e)]();}[_0x4b0ad8(0x10d)](_0x551215){const _0x24fdb0=_0x4b0ad8;this[_0x24fdb0(0x154)](_0x551215,this[_0x24fdb0(0x14f)]),this[_0x24fdb0(0x154)](_0x551215,this[_0x24fdb0(0x132)][_0x24fdb0(0x10c)]),this[_0x24fdb0(0x132)][_0x24fdb0(0x15e)]();}[_0x4b0ad8(0x11c)](_0x402c35,_0x3cb943){const _0x26a0c0=_0x4b0ad8;let _0x3536e5=this[_0x26a0c0(0x14f)][_0x26a0c0(0x148)](_0x4c1dca=>_0x4c1dca['id']===_0x402c35);_0x3536e5||(_0x3536e5=this[_0x26a0c0(0x132)][_0x26a0c0(0x10c)][_0x26a0c0(0x148)](_0x1793f3=>_0x1793f3['id']===_0x402c35)),_0x3536e5&&(_0x3536e5[_0x26a0c0(0x11d)]=_0x3cb943);}[_0x4b0ad8(0x105)](_0x5a717a){const _0x51af21=_0x4b0ad8;this[_0x51af21(0x108)][_0x51af21(0x125)]();for(const _0x1d189b of _0x5a717a){const _0x23a883=this[_0x51af21(0x101)](_0x1d189b,_0x51af21(0x115),!0x1,!0x1);this[_0x51af21(0x160)](_0x23a883,this[_0x51af21(0x108)]);}}[_0x4b0ad8(0xfd)](){const _0x7498d4=_0x4b0ad8;this[_0x7498d4(0x14f)][_0x7498d4(0x125)](),this[_0x7498d4(0x132)][_0x7498d4(0x125)]();}[_0x4b0ad8(0x12f)](){const _0x37aa04=_0x4b0ad8;this[_0x37aa04(0x108)][_0x37aa04(0x125)]();}[_0x4b0ad8(0x16c)](_0x21cfd2,_0x421ab6,_0x362f70){const _0x1b9e9d=_0x4b0ad8;this[_0x1b9e9d(0x12c)][_0x1b9e9d(0x16c)](_0x21cfd2,_0x421ab6,_0x362f70);}[_0x4b0ad8(0x122)](){const _0x355b0e=_0x4b0ad8;this[_0x355b0e(0xe4)](!0x1);}[_0x4b0ad8(0x131)](){const _0x165584=_0x4b0ad8;this[_0x165584(0xe4)](!0x0);}[_0x4b0ad8(0x15b)](){const _0x2f9a28=_0x4b0ad8;this[_0x2f9a28(0x161)][_0x2f9a28(0x10e)](),this[_0x2f9a28(0xf0)][_0x2f9a28(0x134)]=!0x1,this[_0x2f9a28(0x162)]&&this[_0x2f9a28(0x162)][_0x2f9a28(0x125)]();}[_0x4b0ad8(0x138)](){const _0xa97ec8=_0x4b0ad8;this[_0xa97ec8(0x161)][_0xa97ec8(0xff)](),this[_0xa97ec8(0xf0)][_0xa97ec8(0x134)]=!0x0;}[_0x4b0ad8(0x13a)]({source:_0x1791ab,withBackButton:_0x55cc49}){const _0xd27b71=_0x4b0ad8;this[_0xd27b71(0x12c)][_0xd27b71(0x146)]({'source':_0x1791ab,'withBackButton':_0x55cc49}),this[_0xd27b71(0xf0)][_0xd27b71(0x134)]=!0x0;}[_0x4b0ad8(0x141)](_0x545127,_0x48ca8f,_0x2e3038,_0x1bd6f6){const _0xefcc1c=_0x4b0ad8;this[_0xefcc1c(0x12c)][_0xefcc1c(0x141)](_0x545127,_0x2e3038,_0x1bd6f6);}[_0x4b0ad8(0x167)](_0x5a41a4){const _0xd139e1=_0x4b0ad8;this[_0xd139e1(0x12c)][_0xd139e1(0x167)](_0x5a41a4),this[_0xd139e1(0xf0)][_0xd139e1(0x134)]=!0x1;}[_0x4b0ad8(0x133)](_0x50d962){const _0x285934=_0x4b0ad8;this[_0x285934(0x13e)](this[_0x285934(0x14b)],this[_0x285934(0xf5)],_0x50d962),this[_0x285934(0x135)](_0x50d962);}[_0x4b0ad8(0x135)](_0x4cdd25){const _0x9a444a=_0x4b0ad8,_0x21a6ec=!_0x4cdd25[_0x9a444a(0x118)][_0x9a444a(0x107)]&&_0x4cdd25[_0x9a444a(0x118)][_0x9a444a(0x120)],_0x266020=_0x4cdd25[_0x9a444a(0x149)][_0x9a444a(0x120)],_0x2487b8=_0x4cdd25[_0x9a444a(0x126)][_0x9a444a(0x120)],_0x19b808=_0x4cdd25[_0x9a444a(0x113)][_0x9a444a(0x176)]>0x0,_0x466efb=_0x4cdd25[_0x9a444a(0xed)]&&_0x4cdd25[_0x9a444a(0xed)][_0x9a444a(0x176)]>0x0;this[_0x9a444a(0xf0)][_0x9a444a(0xf4)]=_0x21a6ec||_0x266020||_0x2487b8||_0x19b808||_0x466efb;}[_0x4b0ad8(0x119)](){const _0x1d4ff2=_0x4b0ad8;this[_0x1d4ff2(0x14e)]({'tag':_0x1d4ff2(0x158),'attributes':{'class':[Uo,_0x1d4ff2(0x157)]},'children':[{'tag':_0x1d4ff2(0x158),'attributes':{'class':Lo},'children':this[_0x1d4ff2(0x14f)]}]});}[_0x4b0ad8(0xfe)](){const _0x4f0349=_0x4b0ad8;this[_0x4f0349(0xf0)]['on'](_0x4f0349(0x16a),()=>{const _0x2f2ade=_0x4f0349;this[_0x2f2ade(0xf9)]();});}[_0x4b0ad8(0x12d)](_0x25272e){const _0x3ebcfe=_0x4b0ad8,_0xceda3=new _0x4a900c(_0x25272e);return _0xceda3[_0x3ebcfe(0x11f)]({'label':_0x770acc(_0x25272e,_0x3ebcfe(0x16f)),'class':Xo+'\x20'+Mo,'icon':_0x38366d,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0xceda3;}[_0x4b0ad8(0x13f)](_0x19e09d){const _0x3a788d=_0x4b0ad8;return this[_0x3a788d(0x11a)](_0x19e09d,No);}[_0x4b0ad8(0x153)](_0x48ef3d){const _0x1ccccc=_0x4b0ad8,_0x44a886=this[_0x1ccccc(0x11a)](_0x48ef3d,Ho);return this[_0x1ccccc(0x10f)](_0x44a886,_0x48ef3d),_0x44a886;}[_0x4b0ad8(0x111)](_0x4a71db,_0x860684){const _0x2f4fc1=_0x4b0ad8,_0x34a86a={'searchInputVisibleFrom':_0x860684[_0x2f4fc1(0x13c)],'onBackToContext':()=>{const _0x238cf4=_0x2f4fc1;this[_0x238cf4(0x131)](),this[_0x238cf4(0x14b)][_0x238cf4(0xef)]({'target':this[_0x238cf4(0xf0)][_0x238cf4(0xf7)],'limiter':this[_0x238cf4(0x11b)](),'positions':zo});},'onResourceSelected':(_0x296dff,_0x28907a)=>{const _0x31971e=_0x2f4fc1;this[_0x31971e(0xe6)](_0x31971e(0xe2),{'source':_0x296dff,'resource':_0x28907a});},'onLoadSourceResources':_0x2614dc=>{const _0x5e1afe=_0x2f4fc1;this[_0x5e1afe(0xe6)](_0x5e1afe(0x166),_0x2614dc);},'onBalloonClosed':()=>{const _0x3fe6f8=_0x2f4fc1;this[_0x3fe6f8(0xf0)][_0x3fe6f8(0x134)]=!0x1;},'getLimiterElement':()=>this[_0x2f4fc1(0x11b)](),'getTargetElement':()=>this[_0x2f4fc1(0xf0)][_0x2f4fc1(0xf7)]};return new _0x22cb4f(_0x4a71db,_0x860684[_0x2f4fc1(0xe9)],_0x34a86a);}[_0x4b0ad8(0x11b)](){const _0x1dfe83=_0x4b0ad8;return this[_0x1dfe83(0xf7)]?.[_0x1dfe83(0x142)]('.'+qo)||document[_0x1dfe83(0xea)];}[_0x4b0ad8(0x11a)](_0x3766fe,_0x2254d5){const _0xfbc26b=_0x4b0ad8,_0x3cde9f=new _0x41d54b(_0x3766fe);return _0x3cde9f[_0xfbc26b(0x109)]({'attributes':{'class':_0x2254d5}}),this[_0xfbc26b(0xe9)][_0xfbc26b(0x15f)](_0x3cde9f),_0x3cde9f;}[_0x4b0ad8(0x13e)](_0x1d0ad5,_0x1584b2,_0x493258){const _0x510ced=_0x4b0ad8;if(_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x125)](),!_0x493258[_0x510ced(0x118)][_0x510ced(0x107)]&&_0x493258[_0x510ced(0x118)][_0x510ced(0x120)]){const _0x1233ea=this[_0x510ced(0x163)](_0x1584b2,{'label':_0x770acc(_0x1584b2,_0x510ced(0xf3)),'icon':_0x3150ef});_0x1233ea['on'](_0x510ced(0x16a),()=>{const _0x292ec4=_0x510ced;this[_0x292ec4(0xe6)](_0x292ec4(0x152)),this[_0x292ec4(0x122)]();}),_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x15f)](_0x1233ea);}if(_0x493258[_0x510ced(0x149)][_0x510ced(0x120)]){const _0x2541f6=this[_0x510ced(0x163)](_0x1584b2,{'label':_0x770acc(_0x1584b2,_0x510ced(0xe7)),'icon':_0x5d88b2});_0x2541f6['on'](_0x510ced(0x16a),()=>{const _0xf466d8=_0x510ced;this[_0xf466d8(0x122)](),this[_0xf466d8(0x138)](),this[_0xf466d8(0x161)][_0xf466d8(0xef)]({'target':this[_0xf466d8(0xf0)][_0xf466d8(0xf7)],'limiter':this[_0xf466d8(0x11b)](),'positions':zo}),this[_0xf466d8(0x162)][_0xf466d8(0x155)]();}),_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x15f)](_0x2541f6);}if(_0x493258[_0x510ced(0x126)][_0x510ced(0x120)]){const _0x40dac1=new _0x9d2f34(_0x1584b2);_0x40dac1[_0x510ced(0x11f)]({'label':_0x770acc(_0x1584b2,_0x510ced(0x156)),'icon':_0x910cbb,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x40dac1['on'](_0x510ced(0x16a),()=>{const _0x1822c9=_0x510ced;this[_0x1822c9(0x122)]();}),_0x40dac1['on'](_0x510ced(0x128),(_0x37a816,_0x4b4a2e)=>{const _0x10fd5d=_0x510ced;this[_0x10fd5d(0xe6)](_0x10fd5d(0x12e),_0x4b4a2e);}),_0x40dac1[_0x510ced(0x172)]=!0x0,_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x15f)](_0x40dac1);}for(const _0x427fd8 of _0x493258[_0x510ced(0x113)]){const _0xda7e02=this[_0x510ced(0x163)](_0x1584b2,{'label':_0x427fd8[_0x510ced(0x123)],'icon':_0x427fd8[_0x510ced(0xec)]||_0x1daadd,'type':_0x510ced(0x12a)});_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x15f)](_0xda7e02),_0xda7e02['on'](_0x510ced(0x16a),()=>{const _0x37313e=_0x510ced;this[_0x37313e(0x122)](),this[_0x37313e(0x13a)]({'source':_0x427fd8,'withBackButton':!this[_0x37313e(0xe8)]});});}for(const _0x42286f of _0x493258[_0x510ced(0xed)]||[]){const _0x4e6811=this[_0x510ced(0x163)](_0x1584b2,{'label':_0x42286f[_0x510ced(0x123)],'icon':_0x42286f[_0x510ced(0xec)]||_0x1daadd,'type':_0x510ced(0x178)});_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x15f)](_0x4e6811),_0x4e6811['on'](_0x510ced(0x16a),()=>{const _0x1f3505=_0x510ced;this[_0x1f3505(0x122)](),this[_0x1f3505(0xe6)](_0x1f3505(0x171),_0x42286f);});}this[_0x510ced(0xe8)]=0x1===_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x176)],this[_0x510ced(0x162)][_0x510ced(0xf8)]=!this[_0x510ced(0xe8)];}[_0x4b0ad8(0x10f)](_0x55f8cf,_0x19ca17){const _0x3a6398=_0x4b0ad8;this[_0x3a6398(0x162)]=new _0x4fb14e(_0x19ca17),this[_0x3a6398(0x162)]['on'](_0x3a6398(0x174),(_0x4b0cf0,_0x3718a6)=>{const _0x4d0c95=_0x3a6398;this[_0x4d0c95(0x140)](_0x3718a6);}),this[_0x3a6398(0x162)]['on'](_0x3a6398(0xfb),()=>{const _0x12336e=_0x3a6398;this[_0x12336e(0x15b)](),this[_0x12336e(0xe8)]||(this[_0x12336e(0x131)](),this[_0x12336e(0x14b)][_0x12336e(0xef)]({'target':this[_0x12336e(0xf0)][_0x12336e(0xf7)],'limiter':this[_0x12336e(0x11b)](),'positions':zo}));}),this[_0x3a6398(0x162)]['on'](_0x3a6398(0x16d),()=>{const _0x457c41=_0x3a6398;this[_0x457c41(0x161)][_0x457c41(0x130)]&&this[_0x457c41(0x161)][_0x457c41(0xef)]({'target':this[_0x457c41(0xf0)][_0x457c41(0xf7)],'limiter':this[_0x457c41(0x11b)](),'positions':zo});}),_0x55f8cf[_0x3a6398(0xf6)][_0x3a6398(0x15f)](this[_0x3a6398(0x162)]);}[_0x4b0ad8(0x163)](_0x5437a8,_0x2ffb1d){const _0x3ea300=_0x4b0ad8,_0x173122=_0x3ea300(0x12a)===_0x2ffb1d[_0x3ea300(0x10a)]?new SourcesBalloonButtonView(_0x5437a8):new _0x4a900c(_0x5437a8);return _0x173122[_0x3ea300(0x11f)]({'label':_0x2ffb1d[_0x3ea300(0x123)],'icon':_0x2ffb1d[_0x3ea300(0xec)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x173122;}[_0x4b0ad8(0xfa)](){const _0x19c367=_0x4b0ad8;this[_0x19c367(0x11e)](),this[_0x19c367(0x14d)]();}[_0x4b0ad8(0x14d)](){const _0x5dfc6a=_0x4b0ad8;_0x89e7d6({'emitter':this[_0x5dfc6a(0x161)],'contextElements':[this[_0x5dfc6a(0x161)][_0x5dfc6a(0xf7)]],'callback':()=>{const _0xf85533=_0x5dfc6a;this[_0xf85533(0x15b)]();},'activator':()=>this[_0x5dfc6a(0x161)][_0x5dfc6a(0x130)]});}[_0x4b0ad8(0xe4)](_0x348b1b){const _0x5d3f83=_0x4b0ad8,_0x32c8e6=this[_0x5d3f83(0x150)];_0x32c8e6[_0x5d3f83(0x175)][_0x5d3f83(0x134)]=_0x348b1b,_0x348b1b?_0x32c8e6[_0x5d3f83(0x104)][_0x5d3f83(0xff)]():_0x32c8e6[_0x5d3f83(0x104)][_0x5d3f83(0x10e)]();}[_0x4b0ad8(0x11e)](){const _0x2d276e=_0x4b0ad8,{balloonView:_0x1df6d2,buttonView:_0x578ea9,hideMethod:_0x20e6ad}=this[_0x2d276e(0x150)];_0x89e7d6({'emitter':_0x1df6d2,'contextElements':[_0x1df6d2[_0x2d276e(0xf7)],_0x578ea9[_0x2d276e(0xf7)]],'callback':()=>{_0x20e6ad();},'activator':()=>_0x578ea9[_0x2d276e(0x134)]&&!this[_0x2d276e(0x161)][_0x2d276e(0x130)]&&!this[_0x2d276e(0x12c)][_0x2d276e(0x159)]()});}[_0x4b0ad8(0x101)](_0x2baec8,_0x552294,_0x137e8c=!0x1,_0x17e1c5=!0x1){const _0x3d237f=_0x4b0ad8,_0x19040e=_0x3d237f(0x115)===_0x552294||!0x0===_0x2baec8[_0x3d237f(0xeb)],_0x10ab21=new _0x39703c(this[_0x3d237f(0xf5)],_0x2baec8,_0x19040e,_0x137e8c,_0x17e1c5);return _0x19040e||_0x10ab21['on'](_0x3d237f(0x169),()=>{const _0x548828=_0x3d237f;this[_0x548828(0xe6)](_0x548828(0x10d),_0x10ab21['id']);}),_0x10ab21;}[_0x4b0ad8(0x160)](_0x10ba01,_0x4a5c51){const _0x395b44=_0x4b0ad8;_0x4a5c51[_0x395b44(0x15f)](_0x10ba01,0x0);}[_0x4b0ad8(0x154)](_0x3214f4,_0x230e97){const _0x2c19de=_0x4b0ad8,_0x24b0f9=_0x230e97[_0x2c19de(0x148)](_0x488b17=>_0x488b17['id']===_0x3214f4);_0x24b0f9&&_0x230e97[_0x2c19de(0x112)](_0x24b0f9);}[_0x4b0ad8(0xf9)](){const _0x521170=_0x4b0ad8;this[_0x521170(0xf0)][_0x521170(0x134)]?this[_0x521170(0x122)]():(this[_0x521170(0x131)](),this[_0x521170(0x14b)][_0x521170(0xef)]({'target':this[_0x521170(0xf0)][_0x521170(0xf7)],'limiter':this[_0x521170(0x11b)](),'positions':zo}),this[_0x521170(0xe8)]&&this[_0x521170(0x14b)][_0x521170(0xf6)][_0x521170(0x136)](0x0)?.[_0x521170(0xe6)](_0x521170(0x16a)));}[_0x4b0ad8(0x140)](_0x17a0af){const _0x5ac5d6=_0x4b0ad8;this[_0x5ac5d6(0x162)][_0x5ac5d6(0x125)](),this[_0x5ac5d6(0x15b)](),this[_0x5ac5d6(0xe6)](_0x5ac5d6(0x12b),_0x17a0af);}}export class SourcesBalloonButtonView extends _0x4a900c{[_0x4b0ad8(0xe3)];constructor(_0x26c9df){const _0x5ab184=_0x4b0ad8;super(_0x26c9df),this[_0x5ab184(0x11f)]({'withText':!0x0,'role':_0x5ab184(0x143)}),this[_0x5ab184(0xe3)]=this[_0x5ab184(0x13d)](),this[_0x5ab184(0x109)]({'attributes':{'class':[Fo]}});}[_0x4b0ad8(0x14a)](){const _0x5a6e45=_0x4b0ad8;super[_0x5a6e45(0x14a)](),this[_0x5a6e45(0x173)][_0x5a6e45(0x15f)](this[_0x5a6e45(0xe3)]);}[_0x4b0ad8(0x13d)](){const _0x47a470=_0x4b0ad8,_0x628ecf=new _0x398130();return _0x628ecf[_0x47a470(0xf6)]=_0x5525c4,_0x628ecf[_0x47a470(0x109)]({'attributes':{'class':Fo+_0x47a470(0x144)}}),_0x628ecf;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b850a=_0x5de2;function _0x1a57(){const _0x53f0e0=['ck-reset_all','abortPromptStream','ck-ai-chat-controls-loader-icon-dot','_createCancelButtonView','setTemplate','div','fire','AI_CHAT_IS_WRITING','59902okGwNA','AI_CHAT_STOP_GENERATING','4038rruNDW','locale','433480rLGytS','1656828ieRjJi','404krixvq','ck-ai-chat-controls-loader-icon','28ucQpnd','_cancelButtonView','3515057OYYDQa','ck-ai-chat-controls-loader-wrapper','ck-ai-chat-controls-loader','_loaderView','_createLoaderView','set','201200QDvHms','execute','18154701KNonuH','ck-ai-button-secondary\x20ck-ai-button-stop-generating'];_0x1a57=function(){return _0x53f0e0;};return _0x1a57();}function _0x5de2(_0x26f55f,_0x2f4841){const _0x1a57ad=_0x1a57();return _0x5de2=function(_0x5de248,_0x422b42){_0x5de248=_0x5de248-0x15a;let _0x4c8d8c=_0x1a57ad[_0x5de248];return _0x4c8d8c;},_0x5de2(_0x26f55f,_0x2f4841);}(function(_0x422d19,_0x423c2f){const _0x464319=_0x5de2,_0x2a6bd8=_0x422d19();while(!![]){try{const _0x4f2f30=-parseInt(_0x464319(0x169))/0x1*(parseInt(_0x464319(0x171))/0x2)+-parseInt(_0x464319(0x16b))/0x3*(-parseInt(_0x464319(0x16f))/0x4)+-parseInt(_0x464319(0x15d))/0x5+-parseInt(_0x464319(0x16e))/0x6+-parseInt(_0x464319(0x173))/0x7+parseInt(_0x464319(0x16d))/0x8+parseInt(_0x464319(0x15f))/0x9;if(_0x4f2f30===_0x423c2f)break;else _0x2a6bd8['push'](_0x2a6bd8['shift']());}catch(_0x31eeb1){_0x2a6bd8['push'](_0x2a6bd8['shift']());}}}(_0x1a57,0x86513));import{ButtonView as _0x5c9f4a,View as _0x5efa70}from'ckeditor5/src/ui.js';import{IconStop as _0x13fa0b}from'ckeditor5/src/icons.js';import{getTranslation as _0x55c5}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x5efa70{[_0x1b850a(0x172)];[_0x1b850a(0x15a)];constructor(_0x20d48a){const _0x24c776=_0x1b850a;super(_0x20d48a),this[_0x24c776(0x172)]=this[_0x24c776(0x164)](),this[_0x24c776(0x15a)]=this[_0x24c776(0x15b)](),this[_0x24c776(0x165)]({'tag':_0x24c776(0x166),'attributes':{'class':['ck',_0x24c776(0x174),_0x24c776(0x161)]},'children':[this[_0x24c776(0x15a)],this[_0x24c776(0x172)]]});}[_0x1b850a(0x164)](){const _0x1def9a=_0x1b850a,_0x5bba8e=new _0x5c9f4a(this[_0x1def9a(0x16c)]);return _0x5bba8e[_0x1def9a(0x15c)]({'label':_0x55c5(this[_0x1def9a(0x16c)],_0x1def9a(0x16a)),'withText':!0x0,'class':_0x1def9a(0x160),'icon':_0x13fa0b}),_0x5bba8e['on'](_0x1def9a(0x15e),()=>{const _0x3399eb=_0x1def9a;this[_0x3399eb(0x167)](_0x3399eb(0x162));}),_0x5bba8e;}[_0x1b850a(0x15b)](){const _0x4fcaa9=_0x1b850a,_0x162e04=new _0x5efa70(this[_0x4fcaa9(0x16c)]);return _0x162e04[_0x4fcaa9(0x165)]({'tag':_0x4fcaa9(0x166),'attributes':{'class':[_0x4fcaa9(0x175)]},'children':[{'tag':_0x4fcaa9(0x166),'attributes':{'class':[_0x4fcaa9(0x170)]},'children':[{'tag':_0x4fcaa9(0x166),'attributes':{'class':[_0x4fcaa9(0x163)]}},{'tag':_0x4fcaa9(0x166),'attributes':{'class':[_0x4fcaa9(0x163)]}},{'tag':_0x4fcaa9(0x166),'attributes':{'class':[_0x4fcaa9(0x163)]}}]},{'text':_0x55c5(this[_0x4fcaa9(0x16c)],_0x4fcaa9(0x168))}]}),_0x162e04;}}
23
+ function _0x3499(_0x5ede14,_0x5838c1){const _0x40a6f4=_0x40a6();return _0x3499=function(_0x3499bc,_0x30a96e){_0x3499bc=_0x3499bc-0xc7;let _0x28e57d=_0x40a6f4[_0x3499bc];return _0x28e57d;},_0x3499(_0x5ede14,_0x5838c1);}const _0x5e687e=_0x3499;(function(_0x46c3e6,_0x5afbb7){const _0x594bca=_0x3499,_0xd3fc0d=_0x46c3e6();while(!![]){try{const _0x47df53=-parseInt(_0x594bca(0xc7))/0x1+-parseInt(_0x594bca(0xd1))/0x2+-parseInt(_0x594bca(0xd5))/0x3*(-parseInt(_0x594bca(0xce))/0x4)+parseInt(_0x594bca(0xcf))/0x5+-parseInt(_0x594bca(0xe2))/0x6*(-parseInt(_0x594bca(0xc9))/0x7)+-parseInt(_0x594bca(0xcc))/0x8+-parseInt(_0x594bca(0xdb))/0x9*(parseInt(_0x594bca(0xd3))/0xa);if(_0x47df53===_0x5afbb7)break;else _0xd3fc0d['push'](_0xd3fc0d['shift']());}catch(_0x5e09b7){_0xd3fc0d['push'](_0xd3fc0d['shift']());}}}(_0x40a6,0x35b75));import{ButtonView as _0x13309d,View as _0x5844ab}from'ckeditor5/src/ui.js';import{IconStop as _0x10bfb6}from'ckeditor5/src/icons.js';function _0x40a6(){const _0x2899d8=['AI_CHAT_STOP_GENERATING','ck-ai-button-secondary\x20ck-ai-button-stop-generating','2031093hEBsdv','execute','_loaderView','_createCancelButtonView','abortPromptStream','div','ck-ai-chat-controls-loader-wrapper','107922whfIsK','locale','137630HKEpVN','ck-ai-chat-controls-loader','154XQPIGn','set','ck-ai-chat-controls-loader-icon-dot','2733000DdaJlI','setTemplate','1668804mKeeME','785770hsyUvf','fire','90232bARErz','_createLoaderView','10lCgVjs','ck-reset_all','3NnhTON','AI_CHAT_IS_WRITING','_cancelButtonView','ck-ai-chat-controls-loader-icon'];_0x40a6=function(){return _0x2899d8;};return _0x40a6();}import{getTranslation as _0x212dcc}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x5844ab{[_0x5e687e(0xd7)];[_0x5e687e(0xdd)];constructor(_0x58d692){const _0x5670f4=_0x5e687e;super(_0x58d692),this[_0x5670f4(0xd7)]=this[_0x5670f4(0xde)](),this[_0x5670f4(0xdd)]=this[_0x5670f4(0xd2)](),this[_0x5670f4(0xcd)]({'tag':_0x5670f4(0xe0),'attributes':{'class':['ck',_0x5670f4(0xe1),_0x5670f4(0xd4)]},'children':[this[_0x5670f4(0xdd)],this[_0x5670f4(0xd7)]]});}[_0x5e687e(0xde)](){const _0xd453b4=_0x5e687e,_0x4eb44e=new _0x13309d(this[_0xd453b4(0xe3)]);return _0x4eb44e[_0xd453b4(0xca)]({'label':_0x212dcc(this[_0xd453b4(0xe3)],_0xd453b4(0xd9)),'withText':!0x0,'class':_0xd453b4(0xda),'icon':_0x10bfb6}),_0x4eb44e['on'](_0xd453b4(0xdc),()=>{const _0x2ebd2e=_0xd453b4;this[_0x2ebd2e(0xd0)](_0x2ebd2e(0xdf));}),_0x4eb44e;}[_0x5e687e(0xd2)](){const _0x2789ec=_0x5e687e,_0x3e0ee4=new _0x5844ab(this[_0x2789ec(0xe3)]);return _0x3e0ee4[_0x2789ec(0xcd)]({'tag':_0x2789ec(0xe0),'attributes':{'class':[_0x2789ec(0xc8)]},'children':[{'tag':_0x2789ec(0xe0),'attributes':{'class':[_0x2789ec(0xd8)]},'children':[{'tag':_0x2789ec(0xe0),'attributes':{'class':[_0x2789ec(0xcb)]}},{'tag':_0x2789ec(0xe0),'attributes':{'class':[_0x2789ec(0xcb)]}},{'tag':_0x2789ec(0xe0),'attributes':{'class':[_0x2789ec(0xcb)]}}]},{'text':_0x212dcc(this[_0x2789ec(0xe3)],_0x2789ec(0xd6))}]}),_0x3e0ee4;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ccc57=_0x539e;(function(_0x73588,_0x2b0162){const _0x3d7ed5=_0x539e,_0x4f2f97=_0x73588();while(!![]){try{const _0xf92d15=-parseInt(_0x3d7ed5(0x1e2))/0x1+-parseInt(_0x3d7ed5(0x1cf))/0x2*(parseInt(_0x3d7ed5(0x1d4))/0x3)+parseInt(_0x3d7ed5(0x19a))/0x4*(-parseInt(_0x3d7ed5(0x1b0))/0x5)+-parseInt(_0x3d7ed5(0x1c9))/0x6+-parseInt(_0x3d7ed5(0x1cb))/0x7+parseInt(_0x3d7ed5(0x1a9))/0x8*(-parseInt(_0x3d7ed5(0x1d3))/0x9)+parseInt(_0x3d7ed5(0x18d))/0xa*(parseInt(_0x3d7ed5(0x1e0))/0xb);if(_0xf92d15===_0x2b0162)break;else _0x4f2f97['push'](_0x4f2f97['shift']());}catch(_0x449464){_0x4f2f97['push'](_0x4f2f97['shift']());}}}(_0x5a69,0x59e51));function _0x539e(_0x517ccc,_0x168c11){const _0x5a693b=_0x5a69();return _0x539e=function(_0x539ef7,_0x266c47){_0x539ef7=_0x539ef7-0x188;let _0x2e9c5c=_0x5a693b[_0x539ef7];return _0x2e9c5c;},_0x539e(_0x517ccc,_0x168c11);}import{Collection as _0x1d3515}from'ckeditor5/src/utils.js';function _0x5a69(){const _0x489688=['hidden','style','_modelSelectionDropdown','AI_CHAT_COMMANDS','AI_CHAT_DISABLE_REASONING','extendTemplate','_modelNameView','model','_createModelNameView','toggleReasoning','setTemplate','_webSearchButton','activeModelName','reasoningActive','Commands\x20are\x20not\x20implemented\x20yet.','_createWebSearchButton','AI_CHAT_ENABLE_REASONING','reasoning','ck-button__label','3685032KpJuvf','webSearchActive','1566348tCRgLR','enabled','_createModelSelectionDropdown','name','86CyXePT','ck-ai-chat-controls__model-name','source','execute','2177811uJqpvn','46599mOSQeQ','setModel','ck-ai-chat-controls__model-selection__item-capabilities','disableModelSelector','setReasoning','span','modelDisplayMode','enableModelSelector','activeModelId','capabilities','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','1067dPMoZI','addMany','672725GJhphs','isOn','listenTo','_createCommandsButton','set','content','ck-ai-chat-controls__model-selection__item-name','clear','ck-ai-chat-controls__model-selection','_commandsButton','fire','ck-ai-chat__prompt-capabilities','length','button','347030yozkDr','log','AI_CHAT_SEARCH_WEB','description','_createReasoningButton','setWebSearch','createCollection','AI_CHAT_CAPABILITIES_YES','add','toggleWebSearch','label','AI_CHAT_CAPABILITIES_NO','_reasoningButton','19732gVPQNl','ck-ai-chat-controls-button--commands','ck-ai-chat-controls-button','tooltip','ck-ai-button-tertiary','locale','ck-hidden','AI_CHAT_DISABLE_WEB_SEARCH','bind','buttonView','menuitemradio','AI_CHAT_ENABLE_WEB_SEARCH','selectModel','selector','ck-ai-chat-controls__model-selection__item-description','16pWKnKk','_getCapabilityParts','_modelSelectionDropdownItems','modelSelectorEnabled','AI_CHAT_REASONING','div','setModelList','340iAPvqt','isVisible','bindTemplate','webSearch','text','isEnabled'];_0x5a69=function(){return _0x489688;};return _0x5a69();}import{IconAI as _0x39c708,IconBulb as _0x548c52,IconWeb as _0x4f6734}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x1c2eb7,ButtonLabelView as _0x55d83f,ButtonView as _0x2fd470,createDropdown as _0x1a3307,IconView as _0xed5d24,UIModel as _0x4b159e,View as _0x24dcd4}from'ckeditor5/src/ui.js';import{getTranslation as _0x272df6}from'../../../aicore/utils/common-translations.js';const Ko=_0x5ccc57(0x18a),Xo=_0x5ccc57(0x19c),Qo=_0x5ccc57(0x19b),Zo=_0x5ccc57(0x19e),tl=_0x5ccc57(0x1ea),el=_0x5ccc57(0x1e8),il=_0x5ccc57(0x1a8),sl=_0x5ccc57(0x1d6),ol='n';export class AIChatPromptCapabilitiesView extends _0x24dcd4{[_0x5ccc57(0x1c1)];[_0x5ccc57(0x199)];[_0x5ccc57(0x188)];[_0x5ccc57(0x1b8)];[_0x5ccc57(0x1ab)];[_0x5ccc57(0x1bc)];constructor(_0x130f2b){const _0x3891a5=_0x5ccc57;super(_0x130f2b),this[_0x3891a5(0x1e6)](_0x3891a5(0x1ca),!0x1),this[_0x3891a5(0x1e6)](_0x3891a5(0x1c3),!0x1),this[_0x3891a5(0x1e6)](_0x3891a5(0x1da),_0x3891a5(0x1a7)),this[_0x3891a5(0x1e6)](_0x3891a5(0x1ac),!0x0),this[_0x3891a5(0x1e6)](_0x3891a5(0x1dc),null),this[_0x3891a5(0x1e6)](_0x3891a5(0x1c2),null),this[_0x3891a5(0x1b8)]=this[_0x3891a5(0x1cd)](),this[_0x3891a5(0x1bc)]=this[_0x3891a5(0x1be)](),this[_0x3891a5(0x1c1)]=this[_0x3891a5(0x1c5)](),this[_0x3891a5(0x199)]=this[_0x3891a5(0x191)](),this[_0x3891a5(0x188)]=this[_0x3891a5(0x1e5)](),this[_0x3891a5(0x1b8)][_0x3891a5(0x1a3)][_0x3891a5(0x1a2)](_0x3891a5(0x1b1))['to'](this,_0x3891a5(0x1da),_0x410d27=>_0x3891a5(0x1a7)===_0x410d27),this[_0x3891a5(0x1b8)][_0x3891a5(0x1a3)][_0x3891a5(0x1a2)](_0x3891a5(0x19d))['to'](this,_0x3891a5(0x1ac),_0x11592a=>_0x11592a?this[_0x3891a5(0x1b8)][_0x3891a5(0x1a3)][_0x3891a5(0x197)]:_0x272df6(this[_0x3891a5(0x19f)],_0x3891a5(0x1de))),this[_0x3891a5(0x1b8)][_0x3891a5(0x1a2)](_0x3891a5(0x1b5))['to'](this,_0x3891a5(0x1ac),_0x536092=>_0x536092),this[_0x3891a5(0x1c1)][_0x3891a5(0x1a2)](_0x3891a5(0x1e3))['to'](this,_0x3891a5(0x1ca),_0x1fd137=>_0x1fd137),this[_0x3891a5(0x1c1)][_0x3891a5(0x1a2)](_0x3891a5(0x19d))['to'](this,_0x3891a5(0x1ca),_0x32e4f4=>_0x272df6(this[_0x3891a5(0x19f)],_0x32e4f4?_0x3891a5(0x1a1):_0x3891a5(0x1a5))),this[_0x3891a5(0x199)][_0x3891a5(0x1a2)](_0x3891a5(0x1e3))['to'](this,_0x3891a5(0x1c3),_0x340027=>_0x340027),this[_0x3891a5(0x199)][_0x3891a5(0x1a2)](_0x3891a5(0x19d))['to'](this,_0x3891a5(0x1c3),_0x3c366a=>_0x272df6(this[_0x3891a5(0x19f)],_0x3c366a?_0x3891a5(0x1ba):_0x3891a5(0x1c6))),this[_0x3891a5(0x1c0)]({'tag':_0x3891a5(0x1ae),'attributes':{'class':[Ko]},'children':[this[_0x3891a5(0x1b8)],this[_0x3891a5(0x1bc)],this[_0x3891a5(0x1c1)],this[_0x3891a5(0x199)],this[_0x3891a5(0x188)]]}),this[_0x3891a5(0x1ab)]=new _0x1d3515(),_0x1c2eb7(this[_0x3891a5(0x1b8)],this[_0x3891a5(0x1ab)]);}[_0x5ccc57(0x1af)](_0x13ce9c,_0x47e31a){const _0xa2052d=_0x5ccc57;if(_0x47e31a)this[_0xa2052d(0x1e6)](_0xa2052d(0x1da),_0xa2052d(0x1b6));else{const _0x45363e=0x1===_0x13ce9c[_0xa2052d(0x18b)];this[_0xa2052d(0x1e6)](_0xa2052d(0x1da),_0x45363e?_0xa2052d(0x1ce):_0xa2052d(0x1a7));}if(this[_0xa2052d(0x1ab)][_0xa2052d(0x1e9)](),_0x13ce9c?.[_0xa2052d(0x18b)])for(const _0x205f08 of _0x13ce9c){const _0x1e9128=new _0x4b159e({'label':_0x205f08[_0xa2052d(0x1ce)],'withText':!0x0,'role':_0xa2052d(0x1a4),'id':_0x205f08['id'],'model':_0x205f08});_0x1e9128[_0xa2052d(0x1a2)](_0xa2052d(0x1e3))['to'](this,_0xa2052d(0x1dc),_0x2e56c8=>_0x2e56c8===_0x205f08['id']),this[_0xa2052d(0x1ab)][_0xa2052d(0x195)]({'type':_0xa2052d(0x18c),'model':_0x1e9128,'labelView':new ko(this[_0xa2052d(0x19f)],_0x205f08)});}}[_0x5ccc57(0x192)](_0x2de13d){const _0x538cbd=_0x5ccc57;this[_0x538cbd(0x1e6)](_0x538cbd(0x1ca),_0x2de13d);}[_0x5ccc57(0x1d8)](_0x5d365a){const _0x417024=_0x5ccc57;this[_0x417024(0x1e6)](_0x417024(0x1c3),_0x5d365a);}[_0x5ccc57(0x1d5)](_0x311f76){const _0x48d2a7=_0x5ccc57;if(!_0x311f76)return;this[_0x48d2a7(0x1dc)]=_0x311f76['id'],this[_0x48d2a7(0x1c2)]=_0x311f76[_0x48d2a7(0x1ce)]||_0x311f76['id'],this[_0x48d2a7(0x1b8)][_0x48d2a7(0x1a3)][_0x48d2a7(0x1e6)](_0x48d2a7(0x197),_0x311f76[_0x48d2a7(0x1ce)]),this[_0x48d2a7(0x1b8)][_0x48d2a7(0x1a3)][_0x48d2a7(0x1e6)](_0x48d2a7(0x19d),_0x311f76[_0x48d2a7(0x1ce)]);const _0x4075fc=_0x311f76[_0x48d2a7(0x1dd)][_0x48d2a7(0x1b3)]?.[_0x48d2a7(0x1cc)]??!0x1;this[_0x48d2a7(0x1e6)](_0x48d2a7(0x1ca),!0x1),this[_0x48d2a7(0x1c1)][_0x48d2a7(0x1e6)](_0x48d2a7(0x1e3),!0x1),this[_0x48d2a7(0x1c1)][_0x48d2a7(0x1e6)](_0x48d2a7(0x1b5),_0x4075fc),this[_0x48d2a7(0x1c1)][_0x48d2a7(0x1e6)](_0x48d2a7(0x1b1),_0x4075fc);const _0x3b025a=_0x311f76[_0x48d2a7(0x1dd)][_0x48d2a7(0x1c7)]?.[_0x48d2a7(0x1cc)]??!0x1;this[_0x48d2a7(0x1e6)](_0x48d2a7(0x1c3),!0x1),this[_0x48d2a7(0x199)][_0x48d2a7(0x1e6)](_0x48d2a7(0x1e3),!0x1),this[_0x48d2a7(0x199)][_0x48d2a7(0x1e6)](_0x48d2a7(0x1b5),_0x3b025a),this[_0x48d2a7(0x199)][_0x48d2a7(0x1e6)](_0x48d2a7(0x1b1),_0x3b025a);}[_0x5ccc57(0x1db)](){const _0x1d2f0f=_0x5ccc57;this[_0x1d2f0f(0x1e6)](_0x1d2f0f(0x1ac),!0x0);}[_0x5ccc57(0x1d7)](_0x59c496){const _0x52d853=_0x5ccc57;this[_0x52d853(0x1e6)](_0x52d853(0x1ac),!0x1),_0x59c496&&this[_0x52d853(0x1e6)](_0x52d853(0x1da),_0x52d853(0x1b6));}[_0x5ccc57(0x1c5)](){const _0x3d945d=_0x5ccc57,_0x2bdc26=new _0x2fd470();return _0x2bdc26[_0x3d945d(0x1e6)]({'label':_0x272df6(this[_0x3d945d(0x19f)],_0x3d945d(0x18f)),'icon':_0x4f6734,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x2bdc26['on'](_0x3d945d(0x1d2),()=>{const _0x3747cb=_0x3d945d;this[_0x3747cb(0x189)](_0x3747cb(0x196));}),_0x2bdc26;}[_0x5ccc57(0x191)](){const _0x4859f6=_0x5ccc57,_0x2fc860=new _0x2fd470();return _0x2fc860[_0x4859f6(0x1e6)]({'label':_0x272df6(this[_0x4859f6(0x19f)],_0x4859f6(0x1ad)),'icon':_0x548c52,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x2fc860['on'](_0x4859f6(0x1d2),()=>{const _0x20f17c=_0x4859f6;this[_0x20f17c(0x189)](_0x20f17c(0x1bf));}),_0x2fc860;}[_0x5ccc57(0x1e5)](){const _0x58d3e5=_0x5ccc57,_0x526e09=new _0x2fd470();return _0x526e09[_0x58d3e5(0x1e6)]({'label':_0x272df6(this[_0x58d3e5(0x19f)],_0x58d3e5(0x1b9)),'icon':_0x39c708,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x272df6(this[_0x58d3e5(0x19f)],_0x58d3e5(0x1b9)),'tooltipPosition':ol}),_0x526e09[_0x58d3e5(0x1bb)]({'attributes':{'class':[Qo]}}),_0x526e09['on'](_0x58d3e5(0x1d2),()=>{const _0x377f08=_0x58d3e5;console[_0x377f08(0x18e)](_0x377f08(0x1c4)),alert(_0x377f08(0x1c4));}),_0x526e09;}[_0x5ccc57(0x1cd)](){const _0x5025d4=_0x5ccc57,_0x46d436=_0x1a3307(this[_0x5025d4(0x19f)]);return _0x46d436[_0x5025d4(0x1e6)]({'panelPosition':'ne','class':[tl]}),_0x46d436[_0x5025d4(0x1a3)][_0x5025d4(0x1e6)]({'label':_0x272df6(this[_0x5025d4(0x19f)],_0x5025d4(0x1df)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x5025d4(0x1e4)](_0x46d436,_0x5025d4(0x1d2),_0x2bae26=>{const _0x208c0d=_0x5025d4;this[_0x208c0d(0x189)](_0x208c0d(0x1a6),_0x2bae26[_0x208c0d(0x1d1)][_0x208c0d(0x1bd)]);}),_0x46d436;}[_0x5ccc57(0x1be)](){const _0x28b616=_0x5ccc57,_0x31af18=new _o(this[_0x28b616(0x19f)]);return _0x31af18[_0x28b616(0x1a2)](_0x28b616(0x1b4))['to'](this,_0x28b616(0x1c2),_0x30b9eb=>_0x30b9eb??''),_0x31af18[_0x28b616(0x1a2)](_0x28b616(0x1b1))['to'](this,_0x28b616(0x1da),_0x4592f5=>_0x28b616(0x1ce)===_0x4592f5),_0x31af18;}}class ko extends _0x55d83f{constructor(_0x40066b,_0x1026ff){const _0x3df552=_0x5ccc57;super();const _0x95388e=this[_0x3df552(0x1b2)],_0x3e8a81=this[_0x3df552(0x193)]();this[_0x3df552(0x1c0)]({'tag':_0x3df552(0x1ae),'attributes':{'class':['ck',_0x3df552(0x1c8)],'style':_0x95388e['to'](_0x3df552(0x1b7)),'id':_0x95388e['to']('id')},'children':[{'tag':_0x3df552(0x1ae),'attributes':{'class':[el]},'children':[{'text':_0x95388e['to'](_0x3df552(0x1b4))}]},{'tag':_0x3df552(0x1ae),'attributes':{'class':[il]},'children':[{'tag':_0x3df552(0x1d9),'children':[{'text':_0x1026ff[_0x3df552(0x190)]}]}]},{'tag':_0x3df552(0x1ae),'attributes':{'class':[sl]},'children':_0x3e8a81}]}),_0x3e8a81[_0x3df552(0x1e1)](this[_0x3df552(0x1aa)](_0x40066b,_0x4f6734,_0x3df552(0x18f),_0x1026ff[_0x3df552(0x1dd)][_0x3df552(0x1b3)]?.[_0x3df552(0x1cc)]??!0x1)),_0x3e8a81[_0x3df552(0x1e1)](this[_0x3df552(0x1aa)](_0x40066b,_0x548c52,_0x3df552(0x1ad),_0x1026ff[_0x3df552(0x1dd)][_0x3df552(0x1c7)]?.[_0x3df552(0x1cc)]??!0x1));}[_0x5ccc57(0x1aa)](_0x25d18d,_0x5f4c71,_0x3572ec,_0x431279){const _0x2608aa=_0x5ccc57,_0x3e4cf6=new _0xed5d24();_0x3e4cf6[_0x2608aa(0x1e7)]=_0x5f4c71;const _0x59debf=new _0x24dcd4(_0x25d18d);_0x59debf[_0x2608aa(0x1c0)]({'tag':_0x2608aa(0x1d9),'children':[{'text':_0x272df6(_0x25d18d,_0x3572ec)+':\x20'}]});const _0x25f30b=new _0x24dcd4(_0x25d18d);return _0x25f30b[_0x2608aa(0x1c0)]({'tag':_0x2608aa(0x1d9),'children':[{'text':_0x272df6(_0x25d18d,_0x431279?_0x2608aa(0x194):_0x2608aa(0x198))}]}),[_0x3e4cf6,_0x59debf,_0x25f30b];}}class _o extends _0x24dcd4{constructor(_0x2aefdd){const _0x2f25c4=_0x5ccc57;super(_0x2aefdd),this[_0x2f25c4(0x1e6)](_0x2f25c4(0x1b4),void 0x0),this[_0x2f25c4(0x1e6)](_0x2f25c4(0x1b1),!0x0);const _0x5bda37=this[_0x2f25c4(0x1b2)];this[_0x2f25c4(0x1c0)]({'tag':_0x2f25c4(0x1d9),'attributes':{'class':['ck',_0x2f25c4(0x1d0),_0x5bda37['if'](_0x2f25c4(0x1b1),_0x2f25c4(0x1a0),_0xfeabd0=>!_0xfeabd0)]},'children':[{'text':_0x5bda37['to'](_0x2f25c4(0x1b4))}]});}}
23
+ const _0x4464bd=_0x1dcf;(function(_0x5138af,_0x424833){const _0x257ac6=_0x1dcf,_0x584a55=_0x5138af();while(!![]){try{const _0xf25cd=parseInt(_0x257ac6(0xff))/0x1+parseInt(_0x257ac6(0x107))/0x2*(parseInt(_0x257ac6(0xe0))/0x3)+-parseInt(_0x257ac6(0x115))/0x4+-parseInt(_0x257ac6(0xe2))/0x5+-parseInt(_0x257ac6(0x11d))/0x6*(-parseInt(_0x257ac6(0xf0))/0x7)+-parseInt(_0x257ac6(0x124))/0x8*(-parseInt(_0x257ac6(0xfd))/0x9)+parseInt(_0x257ac6(0x126))/0xa;if(_0xf25cd===_0x424833)break;else _0x584a55['push'](_0x584a55['shift']());}catch(_0x4b4133){_0x584a55['push'](_0x584a55['shift']());}}}(_0x4656,0x4d378));import{Collection as _0x4dab53}from'ckeditor5/src/utils.js';import{IconAI as _0x588186,IconBulb as _0x51537a,IconWeb as _0x5c0f8e}from'@ckeditor/ckeditor5-icons';function _0x1dcf(_0x56d27d,_0x4ab966){const _0x4656c6=_0x4656();return _0x1dcf=function(_0x1dcf85,_0x50aa4a){_0x1dcf85=_0x1dcf85-0xcc;let _0x502667=_0x4656c6[_0x1dcf85];return _0x502667;},_0x1dcf(_0x56d27d,_0x4ab966);}import{addListToDropdown as _0x694c25,ButtonLabelView as _0x47b3f4,ButtonView as _0x5309cf,createDropdown as _0x87c76a,IconView as _0x2fe1d5,UIModel as _0x220e91,View as _0x567add}from'ckeditor5/src/ui.js';import{getTranslation as _0x5660a0}from'../../../aicore/utils/common-translations.js';const Ko=_0x4464bd(0xe3),Xo=_0x4464bd(0x113),Qo=_0x4464bd(0x105),Zo=_0x4464bd(0xeb),tl=_0x4464bd(0x118),el=_0x4464bd(0x12c),il=_0x4464bd(0x121),sl=_0x4464bd(0xf5),ol='n';export class AIChatPromptCapabilitiesView extends _0x567add{[_0x4464bd(0x11f)];[_0x4464bd(0x12b)];[_0x4464bd(0x122)];[_0x4464bd(0xf2)];[_0x4464bd(0x114)];[_0x4464bd(0xdb)];constructor(_0x44eb04){const _0x1dde01=_0x4464bd;super(_0x44eb04),this[_0x1dde01(0xd0)](_0x1dde01(0xf1),!0x1),this[_0x1dde01(0xd0)](_0x1dde01(0x10c),!0x1),this[_0x1dde01(0xd0)](_0x1dde01(0x108),_0x1dde01(0x119)),this[_0x1dde01(0xd0)](_0x1dde01(0x12d),!0x0),this[_0x1dde01(0xd0)](_0x1dde01(0xd5),null),this[_0x1dde01(0xd0)](_0x1dde01(0xdc),null),this[_0x1dde01(0xf2)]=this[_0x1dde01(0x11e)](),this[_0x1dde01(0xdb)]=this[_0x1dde01(0xe8)](),this[_0x1dde01(0x11f)]=this[_0x1dde01(0x120)](),this[_0x1dde01(0x12b)]=this[_0x1dde01(0xd2)](),this[_0x1dde01(0x122)]=this[_0x1dde01(0xee)](),this[_0x1dde01(0xf2)][_0x1dde01(0xd4)][_0x1dde01(0xce)](_0x1dde01(0xd8))['to'](this,_0x1dde01(0x108),_0x43c609=>_0x1dde01(0x119)===_0x43c609),this[_0x1dde01(0xf2)][_0x1dde01(0xd4)][_0x1dde01(0xce)](_0x1dde01(0x111))['to'](this,_0x1dde01(0x12d),_0x1861d4=>_0x1861d4?this[_0x1dde01(0xf2)][_0x1dde01(0xd4)][_0x1dde01(0xe7)]:_0x5660a0(this[_0x1dde01(0x125)],_0x1dde01(0x112))),this[_0x1dde01(0xf2)][_0x1dde01(0xce)](_0x1dde01(0x11b))['to'](this,_0x1dde01(0x12d),_0x500048=>_0x500048),this[_0x1dde01(0x11f)][_0x1dde01(0xce)](_0x1dde01(0xfc))['to'](this,_0x1dde01(0xf1),_0x41b870=>_0x41b870),this[_0x1dde01(0x11f)][_0x1dde01(0xce)](_0x1dde01(0x111))['to'](this,_0x1dde01(0xf1),_0x2504b1=>_0x5660a0(this[_0x1dde01(0x125)],_0x2504b1?_0x1dde01(0x123):_0x1dde01(0x12a))),this[_0x1dde01(0x12b)][_0x1dde01(0xce)](_0x1dde01(0xfc))['to'](this,_0x1dde01(0x10c),_0xc9b639=>_0xc9b639),this[_0x1dde01(0x12b)][_0x1dde01(0xce)](_0x1dde01(0x111))['to'](this,_0x1dde01(0x10c),_0x315b0e=>_0x5660a0(this[_0x1dde01(0x125)],_0x315b0e?_0x1dde01(0x10d):_0x1dde01(0xea))),this[_0x1dde01(0xe6)]({'tag':_0x1dde01(0xf9),'attributes':{'class':[Ko]},'children':[this[_0x1dde01(0xf2)],this[_0x1dde01(0xdb)],this[_0x1dde01(0x11f)],this[_0x1dde01(0x12b)],this[_0x1dde01(0x122)]]}),this[_0x1dde01(0x114)]=new _0x4dab53(),_0x694c25(this[_0x1dde01(0xf2)],this[_0x1dde01(0x114)]);}[_0x4464bd(0x11a)](_0x119be0,_0x50c7e7){const _0x2e338a=_0x4464bd;if(_0x50c7e7)this[_0x2e338a(0xd0)](_0x2e338a(0x108),_0x2e338a(0x128));else{const _0x1e132d=0x1===_0x119be0[_0x2e338a(0xfa)];this[_0x2e338a(0xd0)](_0x2e338a(0x108),_0x1e132d?_0x2e338a(0xe4):_0x2e338a(0x119));}if(this[_0x2e338a(0x114)][_0x2e338a(0xcf)](),_0x119be0?.[_0x2e338a(0xfa)])for(const _0x6baef9 of _0x119be0){const _0x4f0fea=new _0x220e91({'label':_0x6baef9[_0x2e338a(0xe4)],'withText':!0x0,'role':_0x2e338a(0x10e),'id':_0x6baef9['id'],'model':_0x6baef9});_0x4f0fea[_0x2e338a(0xce)](_0x2e338a(0xfc))['to'](this,_0x2e338a(0xd5),_0x2a94cd=>_0x2a94cd===_0x6baef9['id']),this[_0x2e338a(0x114)][_0x2e338a(0xec)]({'type':_0x2e338a(0x103),'model':_0x4f0fea,'labelView':new ko(this[_0x2e338a(0x125)],_0x6baef9)});}}[_0x4464bd(0xfb)](_0x46fc25){const _0x5b7253=_0x4464bd;this[_0x5b7253(0xd0)](_0x5b7253(0xf1),_0x46fc25);}[_0x4464bd(0x10a)](_0x5b6608){const _0x7fda16=_0x4464bd;this[_0x7fda16(0xd0)](_0x7fda16(0x10c),_0x5b6608);}[_0x4464bd(0x101)](_0x489811){const _0x22771e=_0x4464bd;if(!_0x489811)return;this[_0x22771e(0xd5)]=_0x489811['id'],this[_0x22771e(0xdc)]=_0x489811[_0x22771e(0xe4)]||_0x489811['id'],this[_0x22771e(0xf2)][_0x22771e(0xd4)][_0x22771e(0xd0)](_0x22771e(0xe7),_0x489811[_0x22771e(0xe4)]),this[_0x22771e(0xf2)][_0x22771e(0xd4)][_0x22771e(0xd0)](_0x22771e(0x111),_0x489811[_0x22771e(0xe4)]);const _0x19e462=_0x489811[_0x22771e(0x10b)][_0x22771e(0xd3)]?.[_0x22771e(0xed)]??!0x1;this[_0x22771e(0xd0)](_0x22771e(0xf1),!0x1),this[_0x22771e(0x11f)][_0x22771e(0xd0)](_0x22771e(0xfc),!0x1),this[_0x22771e(0x11f)][_0x22771e(0xd0)](_0x22771e(0x11b),_0x19e462),this[_0x22771e(0x11f)][_0x22771e(0xd0)](_0x22771e(0xd8),_0x19e462);const _0x29592c=_0x489811[_0x22771e(0x10b)][_0x22771e(0xd7)]?.[_0x22771e(0xed)]??!0x1;this[_0x22771e(0xd0)](_0x22771e(0x10c),!0x1),this[_0x22771e(0x12b)][_0x22771e(0xd0)](_0x22771e(0xfc),!0x1),this[_0x22771e(0x12b)][_0x22771e(0xd0)](_0x22771e(0x11b),_0x29592c),this[_0x22771e(0x12b)][_0x22771e(0xd0)](_0x22771e(0xd8),_0x29592c);}[_0x4464bd(0xf8)](){const _0x1670d7=_0x4464bd;this[_0x1670d7(0xd0)](_0x1670d7(0x12d),!0x0);}[_0x4464bd(0xf6)](_0x8e67a6){const _0x1219ba=_0x4464bd;this[_0x1219ba(0xd0)](_0x1219ba(0x12d),!0x1),_0x8e67a6&&this[_0x1219ba(0xd0)](_0x1219ba(0x108),_0x1219ba(0x128));}[_0x4464bd(0x120)](){const _0x26cf80=_0x4464bd,_0x1aaa44=new _0x5309cf();return _0x1aaa44[_0x26cf80(0xd0)]({'label':_0x5660a0(this[_0x26cf80(0x125)],_0x26cf80(0xf7)),'icon':_0x5c0f8e,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x1aaa44['on'](_0x26cf80(0xdd),()=>{const _0x4dfa52=_0x26cf80;this[_0x4dfa52(0x104)](_0x4dfa52(0xe1));}),_0x1aaa44;}[_0x4464bd(0xd2)](){const _0x565736=_0x4464bd,_0x3adfeb=new _0x5309cf();return _0x3adfeb[_0x565736(0xd0)]({'label':_0x5660a0(this[_0x565736(0x125)],_0x565736(0x100)),'icon':_0x51537a,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x3adfeb['on'](_0x565736(0xdd),()=>{const _0x27f5d0=_0x565736;this[_0x27f5d0(0x104)](_0x27f5d0(0x109));}),_0x3adfeb;}[_0x4464bd(0xee)](){const _0x2560c7=_0x4464bd,_0x138ab6=new _0x5309cf();return _0x138ab6[_0x2560c7(0xd0)]({'label':_0x5660a0(this[_0x2560c7(0x125)],_0x2560c7(0xda)),'icon':_0x588186,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x5660a0(this[_0x2560c7(0x125)],_0x2560c7(0xda)),'tooltipPosition':ol}),_0x138ab6[_0x2560c7(0xf4)]({'attributes':{'class':[Qo]}}),_0x138ab6['on'](_0x2560c7(0xdd),()=>{const _0x177087=_0x2560c7;console[_0x177087(0x102)](_0x177087(0x110)),alert(_0x177087(0x110));}),_0x138ab6;}[_0x4464bd(0x11e)](){const _0x3b2754=_0x4464bd,_0x4f9ce3=_0x87c76a(this[_0x3b2754(0x125)]);return _0x4f9ce3[_0x3b2754(0xd0)]({'panelPosition':'ne','class':[tl]}),_0x4f9ce3[_0x3b2754(0xd4)][_0x3b2754(0xd0)]({'label':_0x5660a0(this[_0x3b2754(0x125)],_0x3b2754(0x10f)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x3b2754(0xde)](_0x4f9ce3,_0x3b2754(0xdd),_0x204650=>{const _0x5cead2=_0x3b2754;this[_0x5cead2(0x104)](_0x5cead2(0xd6),_0x204650[_0x5cead2(0x116)][_0x5cead2(0x106)]);}),_0x4f9ce3;}[_0x4464bd(0xe8)](){const _0x57c75=_0x4464bd,_0x2f13e4=new _o(this[_0x57c75(0x125)]);return _0x2f13e4[_0x57c75(0xce)](_0x57c75(0xcc))['to'](this,_0x57c75(0xdc),_0x3da4fd=>_0x3da4fd??''),_0x2f13e4[_0x57c75(0xce)](_0x57c75(0xd8))['to'](this,_0x57c75(0x108),_0x330b68=>_0x57c75(0xe4)===_0x330b68),_0x2f13e4;}}class ko extends _0x47b3f4{constructor(_0x388817,_0x568cf6){const _0x1d8408=_0x4464bd;super();const _0x341535=this[_0x1d8408(0xe5)],_0x1c6528=this[_0x1d8408(0xef)]();this[_0x1d8408(0xe6)]({'tag':_0x1d8408(0xf9),'attributes':{'class':['ck',_0x1d8408(0xcd)],'style':_0x341535['to'](_0x1d8408(0xfe)),'id':_0x341535['to']('id')},'children':[{'tag':_0x1d8408(0xf9),'attributes':{'class':[el]},'children':[{'text':_0x341535['to'](_0x1d8408(0xcc))}]},{'tag':_0x1d8408(0xf9),'attributes':{'class':[il]},'children':[{'tag':_0x1d8408(0xd1),'children':[{'text':_0x568cf6[_0x1d8408(0xf3)]}]}]},{'tag':_0x1d8408(0xf9),'attributes':{'class':[sl]},'children':_0x1c6528}]}),_0x1c6528[_0x1d8408(0x129)](this[_0x1d8408(0xe9)](_0x388817,_0x5c0f8e,_0x1d8408(0xf7),_0x568cf6[_0x1d8408(0x10b)][_0x1d8408(0xd3)]?.[_0x1d8408(0xed)]??!0x1)),_0x1c6528[_0x1d8408(0x129)](this[_0x1d8408(0xe9)](_0x388817,_0x51537a,_0x1d8408(0x100),_0x568cf6[_0x1d8408(0x10b)][_0x1d8408(0xd7)]?.[_0x1d8408(0xed)]??!0x1));}[_0x4464bd(0xe9)](_0x1b48fe,_0x80f105,_0x38b556,_0x2b0a5d){const _0x15c9b0=_0x4464bd,_0x249f1b=new _0x2fe1d5();_0x249f1b[_0x15c9b0(0xdf)]=_0x80f105;const _0x4111c6=new _0x567add(_0x1b48fe);_0x4111c6[_0x15c9b0(0xe6)]({'tag':_0x15c9b0(0xd1),'children':[{'text':_0x5660a0(_0x1b48fe,_0x38b556)+':\x20'}]});const _0x1914ab=new _0x567add(_0x1b48fe);return _0x1914ab[_0x15c9b0(0xe6)]({'tag':_0x15c9b0(0xd1),'children':[{'text':_0x5660a0(_0x1b48fe,_0x2b0a5d?_0x15c9b0(0x11c):_0x15c9b0(0x117))}]}),[_0x249f1b,_0x4111c6,_0x1914ab];}}class _o extends _0x567add{constructor(_0x11e438){const _0x2e7b45=_0x4464bd;super(_0x11e438),this[_0x2e7b45(0xd0)](_0x2e7b45(0xcc),void 0x0),this[_0x2e7b45(0xd0)](_0x2e7b45(0xd8),!0x0);const _0x42330b=this[_0x2e7b45(0xe5)];this[_0x2e7b45(0xe6)]({'tag':_0x2e7b45(0xd1),'attributes':{'class':['ck',_0x2e7b45(0x127),_0x42330b['if'](_0x2e7b45(0xd8),_0x2e7b45(0xd9),_0x1425a6=>!_0x1425a6)]},'children':[{'text':_0x42330b['to'](_0x2e7b45(0xcc))}]});}}function _0x4656(){const _0x17dd8c=['setModel','log','button','fire','ck-ai-chat-controls-button--commands','model','254SPUgDF','modelDisplayMode','toggleReasoning','setReasoning','capabilities','reasoningActive','AI_CHAT_DISABLE_REASONING','menuitemradio','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','Commands\x20are\x20not\x20implemented\x20yet.','tooltip','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-ai-chat-controls-button','_modelSelectionDropdownItems','939748tcwQUc','source','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls__model-selection','selector','setModelList','isEnabled','AI_CHAT_CAPABILITIES_YES','60dooNxk','_createModelSelectionDropdown','_webSearchButton','_createWebSearchButton','ck-ai-chat-controls__model-selection__item-description','_commandsButton','AI_CHAT_DISABLE_WEB_SEARCH','32hSSrSG','locale','420570iJaSGb','ck-ai-chat-controls__model-name','hidden','addMany','AI_CHAT_ENABLE_WEB_SEARCH','_reasoningButton','ck-ai-chat-controls__model-selection__item-name','modelSelectorEnabled','text','ck-button__label','bind','clear','set','span','_createReasoningButton','webSearch','buttonView','activeModelId','selectModel','reasoning','isVisible','ck-hidden','AI_CHAT_COMMANDS','_modelNameView','activeModelName','execute','listenTo','content','8331cfUreU','toggleWebSearch','2639465VEQdmr','ck-ai-chat__prompt-capabilities','name','bindTemplate','setTemplate','label','_createModelNameView','_getCapabilityParts','AI_CHAT_ENABLE_REASONING','ck-ai-button-tertiary','add','enabled','_createCommandsButton','createCollection','137627DbkoNk','webSearchActive','_modelSelectionDropdown','description','extendTemplate','ck-ai-chat-controls__model-selection__item-capabilities','disableModelSelector','AI_CHAT_SEARCH_WEB','enableModelSelector','div','length','setWebSearch','isOn','119106qMMfsQ','style','434828snLDuc','AI_CHAT_REASONING'];_0x4656=function(){return _0x17dd8c;};return _0x4656();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x385a15=_0x3ff0;(function(_0xaa06ee,_0x3ec961){const _0x2cb4c1=_0x3ff0,_0x5a7cf7=_0xaa06ee();while(!![]){try{const _0x4e2000=parseInt(_0x2cb4c1(0x1eb))/0x1+-parseInt(_0x2cb4c1(0x1c6))/0x2*(-parseInt(_0x2cb4c1(0x1e6))/0x3)+-parseInt(_0x2cb4c1(0x1dc))/0x4*(parseInt(_0x2cb4c1(0x1dd))/0x5)+parseInt(_0x2cb4c1(0x1e7))/0x6*(parseInt(_0x2cb4c1(0x1c2))/0x7)+-parseInt(_0x2cb4c1(0x1b5))/0x8*(-parseInt(_0x2cb4c1(0x1de))/0x9)+parseInt(_0x2cb4c1(0x1da))/0xa+-parseInt(_0x2cb4c1(0x1d9))/0xb;if(_0x4e2000===_0x3ec961)break;else _0x5a7cf7['push'](_0x5a7cf7['shift']());}catch(_0x46f3a9){_0x5a7cf7['push'](_0x5a7cf7['shift']());}}}(_0x4ac8,0x8f54e));import{IconSubmit as _0x21aeda}from'ckeditor5/src/icons.js';import{ButtonView as _0x8248b3,AutocompleteView as _0x3bb134,createLabeledTextarea as _0x2f92b5}from'ckeditor5/src/ui.js';import{global as _0x21f504,isVisible as _0x1fa430,Rect as _0x5086a2,ResizeObserver as _0x3f440f}from'ckeditor5/src/utils.js';import{getTranslation as _0x445382}from'../../../aicore/utils/common-translations.js';function _0x4ac8(){const _0x274418=['contains','trim','rtl','submit','MIN_ROWS','26552bAwtqV','fieldWrapperChildren','remove','element','fire','focus','enter','AI_CHAT_LABEL_SUBMIT','isEmpty','left','minRows','update','px\x20-\x20var(--ck-spacing-tiny))','2241799DqRUai','isUploadInProgress','AI_CHAT_PROMPT_EMPTY_ERROR','target','382BGGpoT','setIsUploadInProgress','excludeScrollbarsAndBorders','calc(','sendUserMessage','placeholder','style','queryView','ck-ai-chat__prompt-input_highlighted','requestAnimationFrame','_queryViewResizeObserver','locale','_setUpAddContextButtonPositioning','destroy','hasError','extendTemplate','width','window','keystrokes','24980604zbCUwe','11312850oEYJea','ck-ai-chat__prompt-submit-button','1108gKndtc','1445RUHwMr','297ckXLtz','reset','fieldView','_createSubmitButton','setPlaceholderText','execute','MAX_ROWS','right','4941CpTTxG','12JkwOpp','ck-ai-chat__prompt-input','maxRows','isEnabled','742200tMBgwM','value','submitButtonView','bind','_addContextButtonView','set','focusableChildren','uiLanguageDirection','render','add','classList','errorText'];_0x4ac8=function(){return _0x274418;};return _0x4ac8();}import{AIChatPromptSuggestionsListView as _0x2bb3f1}from'./aichatpromptsuggestionslistview.js';import{escape as _0xecb14e}from'es-toolkit/compat';function _0x3ff0(_0x34bd83,_0x4bc9ca){const _0x4ac857=_0x4ac8();return _0x3ff0=function(_0x3ff0c9,_0x335c2e){_0x3ff0c9=_0x3ff0c9-0x1b3;let _0x464091=_0x4ac857[_0x3ff0c9];return _0x464091;},_0x3ff0(_0x34bd83,_0x4bc9ca);}const uh=_0x385a15(0x1ce);export class AIChatPromptInputView extends _0x3bb134{[_0x385a15(0x1ed)];static [_0x385a15(0x1b4)]=0x1;static [_0x385a15(0x1e4)]=0xc;[_0x385a15(0x1ef)];[_0x385a15(0x1d0)];constructor(_0x3d9502,_0x371825){const _0x4a819e=_0x385a15;super(_0x3d9502,{'queryView':{'label':'','creator':_0x2f92b5,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x2bb3f1(_0x3d9502),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x4a819e(0x1f0)](_0x4a819e(0x1bd),!0x0),this[_0x4a819e(0x1f0)](_0x4a819e(0x1c3),!0x1),this[_0x4a819e(0x1ef)]=_0x371825,this[_0x4a819e(0x1d0)]=null,this[_0x4a819e(0x1cd)][_0x4a819e(0x1e0)][_0x4a819e(0x1bf)]=AIChatPromptInputView[_0x4a819e(0x1b4)],this[_0x4a819e(0x1cd)][_0x4a819e(0x1e0)][_0x4a819e(0x1e9)]=AIChatPromptInputView[_0x4a819e(0x1e4)],this[_0x4a819e(0x1cd)][_0x4a819e(0x1b6)][_0x4a819e(0x1f4)](this[_0x4a819e(0x1ef)]),this[_0x4a819e(0x1d2)](),this[_0x4a819e(0x1d5)]({'attributes':{'class':['ck',_0x4a819e(0x1e8)]}}),this[_0x4a819e(0x1ed)]=this[_0x4a819e(0x1e1)](),this[_0x4a819e(0x1ed)][_0x4a819e(0x1ee)](_0x4a819e(0x1ea))['to'](this,_0x4a819e(0x1bd),this,_0x4a819e(0x1c3),(_0x57cb5b,_0x55d432)=>!_0x57cb5b&&!_0x55d432),this[_0x4a819e(0x1f1)][_0x4a819e(0x1f4)](this[_0x4a819e(0x1ed)]);}[_0x385a15(0x1f3)](){const _0x2e1159=_0x385a15;super[_0x2e1159(0x1f3)](),this[_0x2e1159(0x1cd)][_0x2e1159(0x1b6)][_0x2e1159(0x1f4)](this[_0x2e1159(0x1ed)]),this[_0x2e1159(0x1d8)][_0x2e1159(0x1f0)](_0x2e1159(0x1bb),(_0x3a9b4c,_0x5c84e7)=>{const _0x3d994d=_0x2e1159;this[_0x3d994d(0x1c3)]||this[_0x3d994d(0x1bd)]||_0x3a9b4c[_0x3d994d(0x1c5)]==this[_0x3d994d(0x1cd)][_0x3d994d(0x1e0)][_0x3d994d(0x1b8)]&&(this[_0x3d994d(0x1b3)](),_0x5c84e7());}),this[_0x2e1159(0x1cd)][_0x2e1159(0x1e0)]['on'](_0x2e1159(0x1c0),()=>{const _0x4973ce=_0x2e1159;this[_0x4973ce(0x1bd)]=''===this[_0x4973ce(0x1cd)][_0x4973ce(0x1e0)][_0x4973ce(0x1b8)][_0x4973ce(0x1ec)]?.[_0x4973ce(0x1f8)]();});}[_0x385a15(0x1d3)](){const _0x5d5ae9=_0x385a15;super[_0x5d5ae9(0x1d3)](),this[_0x5d5ae9(0x1d0)]&&this[_0x5d5ae9(0x1d0)][_0x5d5ae9(0x1d3)]();}[_0x385a15(0x1b3)](){const _0x3f9e2c=_0x385a15,_0xf9ff03=this[_0x3f9e2c(0x1cd)][_0x3f9e2c(0x1e0)][_0x3f9e2c(0x1b8)][_0x3f9e2c(0x1ec)]?.[_0x3f9e2c(0x1f8)]();if(!_0xf9ff03)return this[_0x3f9e2c(0x1cd)][_0x3f9e2c(0x1f6)]=_0x445382(this[_0x3f9e2c(0x1d1)],_0x3f9e2c(0x1c4)),void(this[_0x3f9e2c(0x1cd)][_0x3f9e2c(0x1e0)][_0x3f9e2c(0x1d4)]=!0x0);this[_0x3f9e2c(0x1cd)][_0x3f9e2c(0x1e0)][_0x3f9e2c(0x1d4)]=!0x1;const _0x359fb0=_0xecb14e(_0xf9ff03);this[_0x3f9e2c(0x1b9)](_0x3f9e2c(0x1ca),_0x359fb0),this[_0x3f9e2c(0x1cd)][_0x3f9e2c(0x1e0)][_0x3f9e2c(0x1df)]();}[_0x385a15(0x1e2)](_0x474d3e){const _0x2c7300=_0x385a15;this[_0x2c7300(0x1cd)][_0x2c7300(0x1e0)][_0x2c7300(0x1f0)](_0x2c7300(0x1cb),_0x474d3e);}[_0x385a15(0x1ba)](_0x2c246c=!0x1){const _0xa95686=_0x385a15;super[_0xa95686(0x1ba)](),_0x2c246c&&(this[_0xa95686(0x1b8)][_0xa95686(0x1f5)][_0xa95686(0x1f7)](uh)||(this[_0xa95686(0x1b8)][_0xa95686(0x1f5)][_0xa95686(0x1f4)](uh),setTimeout(()=>{const _0x763512=_0xa95686;this[_0x763512(0x1b8)][_0x763512(0x1f5)][_0x763512(0x1b7)](uh);},0x320)));}[_0x385a15(0x1e1)](){const _0x4f22f5=_0x385a15,_0x200cca=new _0x8248b3(this[_0x4f22f5(0x1d1)]);return _0x200cca[_0x4f22f5(0x1f0)]({'icon':_0x21aeda,'label':_0x445382(this[_0x4f22f5(0x1d1)],_0x4f22f5(0x1bc)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x4f22f5(0x1db),'isEnabled':!0x1}),_0x200cca['on'](_0x4f22f5(0x1e3),()=>{const _0x4c70d0=_0x4f22f5;this[_0x4c70d0(0x1b3)]();}),_0x200cca;}[_0x385a15(0x1c7)](_0x3b394a){const _0x22d3df=_0x385a15;this[_0x22d3df(0x1c3)]=_0x3b394a;}[_0x385a15(0x1d2)](){const _0x12abcc=_0x385a15,_0x1e3440=this[_0x12abcc(0x1d1)],_0x2e149d=()=>{const _0x200099=_0x12abcc;_0x21f504[_0x200099(0x1d7)][_0x200099(0x1cf)](()=>{const _0x45ed7d=_0x200099;if(_0x1fa430(this[_0x45ed7d(0x1b8)])){const _0x5dc591=new _0x5086a2(this[_0x45ed7d(0x1cd)][_0x45ed7d(0x1e0)][_0x45ed7d(0x1b8)]),_0x4f69d0=new _0x5086a2(this[_0x45ed7d(0x1ef)][_0x45ed7d(0x1b8)]),_0xabe49=_0x5dc591[_0x45ed7d(0x1d6)],_0xe37248=_0x45ed7d(0x1f9)===_0x1e3440[_0x45ed7d(0x1f2)]?_0x45ed7d(0x1e5):_0x45ed7d(0x1be);_0x5dc591[_0x45ed7d(0x1c8)]();const _0x4f17e0=_0xabe49-_0x5dc591[_0x45ed7d(0x1d6)]+0x1;this[_0x45ed7d(0x1ef)][_0x45ed7d(0x1b8)][_0x45ed7d(0x1cc)][_0xe37248]=_0x45ed7d(0x1c9)+(_0xabe49-_0x4f69d0[_0x45ed7d(0x1d6)]-_0x4f17e0)+_0x45ed7d(0x1c1);}});};this[_0x12abcc(0x1cd)][_0x12abcc(0x1e0)]['on'](_0x12abcc(0x1c0),_0x2e149d),this['on'](_0x12abcc(0x1f3),()=>{const _0x2d0632=_0x12abcc;_0x2e149d(),this[_0x2d0632(0x1d0)]=new _0x3f440f(this[_0x2d0632(0x1cd)][_0x2d0632(0x1e0)][_0x2d0632(0x1b8)],()=>{_0x2e149d();});});}}
23
+ const _0x3fd96a=_0x2482;function _0x2482(_0x278092,_0xbd6fc9){const _0x3c465f=_0x3c46();return _0x2482=function(_0x2482a9,_0x1f41e8){_0x2482a9=_0x2482a9-0x8b;let _0xad4ab1=_0x3c465f[_0x2482a9];return _0xad4ab1;},_0x2482(_0x278092,_0xbd6fc9);}(function(_0x2c0799,_0x506909){const _0x167428=_0x2482,_0x1a39f0=_0x2c0799();while(!![]){try{const _0xff6f3e=parseInt(_0x167428(0x97))/0x1+-parseInt(_0x167428(0x8b))/0x2*(parseInt(_0x167428(0xb6))/0x3)+-parseInt(_0x167428(0x96))/0x4*(parseInt(_0x167428(0x91))/0x5)+parseInt(_0x167428(0xad))/0x6+parseInt(_0x167428(0xc8))/0x7+parseInt(_0x167428(0xb5))/0x8*(-parseInt(_0x167428(0xcb))/0x9)+parseInt(_0x167428(0xc5))/0xa*(-parseInt(_0x167428(0x8c))/0xb);if(_0xff6f3e===_0x506909)break;else _0x1a39f0['push'](_0x1a39f0['shift']());}catch(_0x49a581){_0x1a39f0['push'](_0x1a39f0['shift']());}}}(_0x3c46,0xdf32f));import{IconSubmit as _0x6f0778}from'ckeditor5/src/icons.js';import{ButtonView as _0x1a99ab,AutocompleteView as _0x15cb2a,createLabeledTextarea as _0x2b5e9c}from'ckeditor5/src/ui.js';import{global as _0x50d0a4,isVisible as _0x39ceb0,Rect as _0x1e53b,ResizeObserver as _0x259296}from'ckeditor5/src/utils.js';import{getTranslation as _0xf5a833}from'../../../aicore/utils/common-translations.js';function _0x3c46(){const _0x67deef=['ck-ai-chat__prompt-input_highlighted','_queryViewResizeObserver','reset','locale','queryView','classList','uiLanguageDirection','calc(','fire','keystrokes','submit','bind','isEnabled','fieldWrapperChildren','minRows','style','5273844VSZRHx','render','isUploadInProgress','execute','hasError','focusableChildren','placeholder','_addContextButtonView','48saUevf','39XEcPPE','element','width','maxRows','value','set','sendUserMessage','enter','setPlaceholderText','target','window','AI_CHAT_PROMPT_EMPTY_ERROR','rtl','submitButtonView','ck-ai-chat__prompt-input','90CYMVKd','extendTemplate','update','9094981NJtjCB','_setUpAddContextButtonPositioning','focus','214767XrQiAX','requestAnimationFrame','trim','MAX_ROWS','contains','_createSubmitButton','errorText','65218WYJxdB','702053uIxaPm','destroy','remove','left','right','34675EkEYxL','isEmpty','excludeScrollbarsAndBorders','setIsUploadInProgress','add','648HyqvKX','1000938IBHwXJ','MIN_ROWS','fieldView','ck-ai-chat__prompt-submit-button','px\x20-\x20var(--ck-spacing-tiny))','AI_CHAT_LABEL_SUBMIT'];_0x3c46=function(){return _0x67deef;};return _0x3c46();}import{AIChatPromptSuggestionsListView as _0x3d380c}from'./aichatpromptsuggestionslistview.js';import{escape as _0x111349}from'es-toolkit/compat';const uh=_0x3fd96a(0x9d);export class AIChatPromptInputView extends _0x15cb2a{[_0x3fd96a(0xc3)];static [_0x3fd96a(0x98)]=0x1;static [_0x3fd96a(0xce)]=0xc;[_0x3fd96a(0xb4)];[_0x3fd96a(0x9e)];constructor(_0x46f89c,_0xebfd07){const _0x2b8159=_0x3fd96a;super(_0x46f89c,{'queryView':{'label':'','creator':_0x2b5e9c,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x3d380c(_0x46f89c),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x2b8159(0xbb)](_0x2b8159(0x92),!0x0),this[_0x2b8159(0xbb)](_0x2b8159(0xaf),!0x1),this[_0x2b8159(0xb4)]=_0xebfd07,this[_0x2b8159(0x9e)]=null,this[_0x2b8159(0xa1)][_0x2b8159(0x99)][_0x2b8159(0xab)]=AIChatPromptInputView[_0x2b8159(0x98)],this[_0x2b8159(0xa1)][_0x2b8159(0x99)][_0x2b8159(0xb9)]=AIChatPromptInputView[_0x2b8159(0xce)],this[_0x2b8159(0xa1)][_0x2b8159(0xaa)][_0x2b8159(0x95)](this[_0x2b8159(0xb4)]),this[_0x2b8159(0xc9)](),this[_0x2b8159(0xc6)]({'attributes':{'class':['ck',_0x2b8159(0xc4)]}}),this[_0x2b8159(0xc3)]=this[_0x2b8159(0xd0)](),this[_0x2b8159(0xc3)][_0x2b8159(0xa8)](_0x2b8159(0xa9))['to'](this,_0x2b8159(0x92),this,_0x2b8159(0xaf),(_0xc6d123,_0x36ec11)=>!_0xc6d123&&!_0x36ec11),this[_0x2b8159(0xb2)][_0x2b8159(0x95)](this[_0x2b8159(0xc3)]);}[_0x3fd96a(0xae)](){const _0xeb4de7=_0x3fd96a;super[_0xeb4de7(0xae)](),this[_0xeb4de7(0xa1)][_0xeb4de7(0xaa)][_0xeb4de7(0x95)](this[_0xeb4de7(0xc3)]),this[_0xeb4de7(0xa6)][_0xeb4de7(0xbb)](_0xeb4de7(0xbd),(_0x4fee6f,_0x64a60f)=>{const _0x4bbb6a=_0xeb4de7;this[_0x4bbb6a(0xaf)]||this[_0x4bbb6a(0x92)]||_0x4fee6f[_0x4bbb6a(0xbf)]==this[_0x4bbb6a(0xa1)][_0x4bbb6a(0x99)][_0x4bbb6a(0xb7)]&&(this[_0x4bbb6a(0xa7)](),_0x64a60f());}),this[_0xeb4de7(0xa1)][_0xeb4de7(0x99)]['on'](_0xeb4de7(0xc7),()=>{const _0x501949=_0xeb4de7;this[_0x501949(0x92)]=''===this[_0x501949(0xa1)][_0x501949(0x99)][_0x501949(0xb7)][_0x501949(0xba)]?.[_0x501949(0xcd)]();});}[_0x3fd96a(0x8d)](){const _0x1c856a=_0x3fd96a;super[_0x1c856a(0x8d)](),this[_0x1c856a(0x9e)]&&this[_0x1c856a(0x9e)][_0x1c856a(0x8d)]();}[_0x3fd96a(0xa7)](){const _0x2c07fe=_0x3fd96a,_0x3c1b0d=this[_0x2c07fe(0xa1)][_0x2c07fe(0x99)][_0x2c07fe(0xb7)][_0x2c07fe(0xba)]?.[_0x2c07fe(0xcd)]();if(!_0x3c1b0d)return this[_0x2c07fe(0xa1)][_0x2c07fe(0xd1)]=_0xf5a833(this[_0x2c07fe(0xa0)],_0x2c07fe(0xc1)),void(this[_0x2c07fe(0xa1)][_0x2c07fe(0x99)][_0x2c07fe(0xb1)]=!0x0);this[_0x2c07fe(0xa1)][_0x2c07fe(0x99)][_0x2c07fe(0xb1)]=!0x1;const _0x1ee4ca=_0x111349(_0x3c1b0d);this[_0x2c07fe(0xa5)](_0x2c07fe(0xbc),_0x1ee4ca),this[_0x2c07fe(0xa1)][_0x2c07fe(0x99)][_0x2c07fe(0x9f)]();}[_0x3fd96a(0xbe)](_0x57829f){const _0x514885=_0x3fd96a;this[_0x514885(0xa1)][_0x514885(0x99)][_0x514885(0xbb)](_0x514885(0xb3),_0x57829f);}[_0x3fd96a(0xca)](_0x21973b=!0x1){const _0x15de2d=_0x3fd96a;super[_0x15de2d(0xca)](),_0x21973b&&(this[_0x15de2d(0xb7)][_0x15de2d(0xa2)][_0x15de2d(0xcf)](uh)||(this[_0x15de2d(0xb7)][_0x15de2d(0xa2)][_0x15de2d(0x95)](uh),setTimeout(()=>{const _0x1b67e9=_0x15de2d;this[_0x1b67e9(0xb7)][_0x1b67e9(0xa2)][_0x1b67e9(0x8e)](uh);},0x320)));}[_0x3fd96a(0xd0)](){const _0x3d2e9a=_0x3fd96a,_0x281d3b=new _0x1a99ab(this[_0x3d2e9a(0xa0)]);return _0x281d3b[_0x3d2e9a(0xbb)]({'icon':_0x6f0778,'label':_0xf5a833(this[_0x3d2e9a(0xa0)],_0x3d2e9a(0x9c)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x3d2e9a(0x9a),'isEnabled':!0x1}),_0x281d3b['on'](_0x3d2e9a(0xb0),()=>{const _0x56c093=_0x3d2e9a;this[_0x56c093(0xa7)]();}),_0x281d3b;}[_0x3fd96a(0x94)](_0x50bc51){const _0x4ad1a2=_0x3fd96a;this[_0x4ad1a2(0xaf)]=_0x50bc51;}[_0x3fd96a(0xc9)](){const _0x4eecd9=_0x3fd96a,_0x52a4a0=this[_0x4eecd9(0xa0)],_0x10e1a0=()=>{const _0x2436cf=_0x4eecd9;_0x50d0a4[_0x2436cf(0xc0)][_0x2436cf(0xcc)](()=>{const _0x175094=_0x2436cf;if(_0x39ceb0(this[_0x175094(0xb7)])){const _0x2e908f=new _0x1e53b(this[_0x175094(0xa1)][_0x175094(0x99)][_0x175094(0xb7)]),_0x5418af=new _0x1e53b(this[_0x175094(0xb4)][_0x175094(0xb7)]),_0x592289=_0x2e908f[_0x175094(0xb8)],_0x294960=_0x175094(0xc2)===_0x52a4a0[_0x175094(0xa3)]?_0x175094(0x90):_0x175094(0x8f);_0x2e908f[_0x175094(0x93)]();const _0x598f09=_0x592289-_0x2e908f[_0x175094(0xb8)]+0x1;this[_0x175094(0xb4)][_0x175094(0xb7)][_0x175094(0xac)][_0x294960]=_0x175094(0xa4)+(_0x592289-_0x5418af[_0x175094(0xb8)]-_0x598f09)+_0x175094(0x9b);}});};this[_0x4eecd9(0xa1)][_0x4eecd9(0x99)]['on'](_0x4eecd9(0xc7),_0x10e1a0),this['on'](_0x4eecd9(0xae),()=>{const _0x4e0c94=_0x4eecd9;_0x10e1a0(),this[_0x4e0c94(0x9e)]=new _0x259296(this[_0x4e0c94(0xa1)][_0x4e0c94(0x99)][_0x4e0c94(0xb7)],()=>{_0x10e1a0();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17323f=_0x47e0;function _0x47e0(_0x1e8cd1,_0x18d1a2){const _0x27f119=_0x27f1();return _0x47e0=function(_0x47e028,_0x1e4b3e){_0x47e028=_0x47e028-0x165;let _0x202dc2=_0x27f119[_0x47e028];return _0x202dc2;},_0x47e0(_0x1e8cd1,_0x18d1a2);}(function(_0x1bd894,_0x490f02){const _0x2b8900=_0x47e0,_0x2405b2=_0x1bd894();while(!![]){try{const _0x470251=parseInt(_0x2b8900(0x194))/0x1*(parseInt(_0x2b8900(0x180))/0x2)+-parseInt(_0x2b8900(0x178))/0x3+parseInt(_0x2b8900(0x190))/0x4*(-parseInt(_0x2b8900(0x189))/0x5)+-parseInt(_0x2b8900(0x16e))/0x6*(-parseInt(_0x2b8900(0x176))/0x7)+-parseInt(_0x2b8900(0x172))/0x8+-parseInt(_0x2b8900(0x16d))/0x9*(-parseInt(_0x2b8900(0x192))/0xa)+parseInt(_0x2b8900(0x18a))/0xb;if(_0x470251===_0x490f02)break;else _0x2405b2['push'](_0x2405b2['shift']());}catch(_0x5afd52){_0x2405b2['push'](_0x2405b2['shift']());}}}(_0x27f1,0x5c30b));import{View as _0x58e30e,ViewCollection as _0x556083}from'ckeditor5/src/ui.js';import{uid as _0x11dc97}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x1ec848}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x84ff9a}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x156ac7,SKELETON_DEFINITIONS as _0x32d8a2}from'../../../../aicore/ui/aiskeleton.js';function _0x27f1(){const _0x398f99=['fire','2230383YPswio','aiChatResources','addResourceToContext','source','extendTemplate','_skeletonLoader','searchInputVisibleFrom','_createSearchView','25838YwhrGe','getQuery','_latestLoadResourcesUid','setTemplate','_resourcesListView','_searchView','isLoading','_createSearchSection','locale','793655EQmYVH','12576322pWJjCS','_createSkeletonView','_source','children','render','set','16QSiJxm','highlightText','10CeGCjm','add','29CVkswl','ck-ai-chat-resources','bindTemplate','updateResourceState','loadSourceResources','_searchInputVisibleFrom','_searchSection','ck-hidden','search','setResources','loadResources','has','2901474gmquYF','104844wsSQoU','div','delegate','_createResourcesListView','3750168ATfJbS','ck\x20ck-search','length','useDefaultFiltering','154fvazOB'];_0x27f1=function(){return _0x398f99;};return _0x27f1();}export class AIChatContextResourcesView extends _0x58e30e{[_0x17323f(0x185)];[_0x17323f(0x167)];[_0x17323f(0x166)];[_0x17323f(0x184)];[_0x17323f(0x17d)];[_0x17323f(0x18c)];[_0x17323f(0x18d)];[_0x17323f(0x182)]=null;constructor(_0x3fc5ea,_0x237b60){const _0x487456=_0x17323f;super(_0x3fc5ea),this[_0x487456(0x18c)]=_0x237b60[_0x487456(0x17b)],this[_0x487456(0x166)]=_0x237b60[_0x487456(0x17e)]??0x7,this[_0x487456(0x18f)](_0x487456(0x186),!0x0),this[_0x487456(0x185)]=this[_0x487456(0x17f)](),this[_0x487456(0x167)]=this[_0x487456(0x187)](),this[_0x487456(0x184)]=this[_0x487456(0x171)](),this[_0x487456(0x17d)]=this[_0x487456(0x18b)](),this[_0x487456(0x18d)]=new _0x556083([this[_0x487456(0x17d)],this[_0x487456(0x184)]]),this[_0x487456(0x183)]({'tag':_0x487456(0x16f),'attributes':{'class':_0x487456(0x195)},'children':this[_0x487456(0x18d)]});}[_0x17323f(0x17f)](){const _0x539c03=_0x17323f;return new _0x84ff9a(this[_0x539c03(0x188)]);}[_0x17323f(0x187)](){const _0x454d43=_0x17323f,_0x25e73e=new _0x58e30e(this[_0x454d43(0x188)]);return _0x25e73e[_0x454d43(0x183)]({'tag':_0x454d43(0x16f),'attributes':{'class':_0x454d43(0x173)},'children':[this[_0x454d43(0x185)]]}),this[_0x454d43(0x185)]['on'](_0x454d43(0x169),(_0x3d7872,_0x130835)=>{const _0x2e32a0=_0x454d43;this[_0x2e32a0(0x16b)](_0x130835),this[_0x2e32a0(0x18c)][_0x2e32a0(0x175)]&&this[_0x2e32a0(0x184)][_0x2e32a0(0x191)](_0x130835);}),_0x25e73e;}[_0x17323f(0x171)](){const _0x82bd22=_0x17323f,_0x16bbc4=new _0x1ec848(this[_0x82bd22(0x188)],this[_0x82bd22(0x18c)]);return _0x16bbc4[_0x82bd22(0x170)](_0x82bd22(0x17a))['to'](this),_0x16bbc4[_0x82bd22(0x17c)]({'attributes':{'class':this[_0x82bd22(0x196)]['if'](_0x82bd22(0x186),_0x82bd22(0x168))}}),_0x16bbc4;}[_0x17323f(0x18b)](){const _0x24730e=_0x17323f,_0x36ff17=new _0x156ac7(this[_0x24730e(0x188)],_0x32d8a2[_0x24730e(0x179)]);return _0x36ff17[_0x24730e(0x17c)]({'attributes':{'class':[this[_0x24730e(0x196)]['if'](_0x24730e(0x186),_0x24730e(0x168),_0x181dc4=>!_0x181dc4)]}}),_0x36ff17;}[_0x17323f(0x18e)](){const _0x535d33=_0x17323f;super[_0x535d33(0x18e)](),this[_0x535d33(0x16b)]('');}[_0x17323f(0x16b)](_0x17e3ca){const _0x2e97e0=_0x17323f,_0x4a3562=_0x11dc97();this[_0x2e97e0(0x182)]=_0x4a3562,this[_0x2e97e0(0x177)](_0x2e97e0(0x165),{'sourceId':this[_0x2e97e0(0x18c)]['id'],'query':_0x17e3ca,'uid':_0x4a3562}),this[_0x2e97e0(0x186)]=!0x0;}[_0x17323f(0x16a)](_0xb6062,_0x1025ec){const _0xaff998=_0x17323f;if(_0x1025ec&&_0x1025ec!==this[_0xaff998(0x182)])return;const _0x33124e=this[_0xaff998(0x18c)][_0xaff998(0x175)]?this[_0xaff998(0x185)][_0xaff998(0x181)]():'';this[_0xaff998(0x184)][_0xaff998(0x16a)](_0xb6062,_0x33124e),_0xb6062[_0xaff998(0x174)]>=this[_0xaff998(0x166)]&&!this[_0xaff998(0x18d)][_0xaff998(0x16c)](this[_0xaff998(0x167)])&&this[_0xaff998(0x18d)][_0xaff998(0x193)](this[_0xaff998(0x167)],0x0),requestAnimationFrame(()=>{const _0x3fec2a=_0xaff998;this[_0x3fec2a(0x186)]=!0x1;});}[_0x17323f(0x197)](_0x2c781b,_0x4958e6){const _0x5a9ad6=_0x17323f;this[_0x5a9ad6(0x184)][_0x5a9ad6(0x197)](_0x2c781b,_0x4958e6);}}
23
+ function _0x18d8(_0x184e75,_0x14990f){const _0x146874=_0x1468();return _0x18d8=function(_0x18d8e2,_0x4e4e89){_0x18d8e2=_0x18d8e2-0x10a;let _0xadb07a=_0x146874[_0x18d8e2];return _0xadb07a;},_0x18d8(_0x184e75,_0x14990f);}const _0x2b89cb=_0x18d8;(function(_0x15e571,_0x309be9){const _0x12bcad=_0x18d8,_0x2f0996=_0x15e571();while(!![]){try{const _0x3e836e=-parseInt(_0x12bcad(0x11b))/0x1+parseInt(_0x12bcad(0x11c))/0x2*(-parseInt(_0x12bcad(0x11e))/0x3)+parseInt(_0x12bcad(0x129))/0x4+-parseInt(_0x12bcad(0x10a))/0x5+-parseInt(_0x12bcad(0x132))/0x6*(-parseInt(_0x12bcad(0x135))/0x7)+-parseInt(_0x12bcad(0x133))/0x8+-parseInt(_0x12bcad(0x11f))/0x9*(-parseInt(_0x12bcad(0x10d))/0xa);if(_0x3e836e===_0x309be9)break;else _0x2f0996['push'](_0x2f0996['shift']());}catch(_0x56ff6b){_0x2f0996['push'](_0x2f0996['shift']());}}}(_0x1468,0x29f81));import{View as _0x1117f4,ViewCollection as _0x36325a}from'ckeditor5/src/ui.js';import{uid as _0x4091ef}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x3b1ad8}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x34d2b4}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x20ef22,SKELETON_DEFINITIONS as _0x2ceea2}from'../../../../aicore/ui/aiskeleton.js';function _0x1468(){const _0x2eb01e=['6Dguoms','9jumWnA','loadSourceResources','aiChatResources','render','getQuery','length','_createSearchView','add','updateResourceState','addResourceToContext','643228VsWnny','setTemplate','_searchSection','highlightText','delegate','extendTemplate','useDefaultFiltering','_latestLoadResourcesUid','div','710604LRJbEj','1236736SvKhFR','_createSkeletonView','7RsQWer','has','_source','search','children','ck\x20ck-search','_resourcesListView','383435aaKiOI','_createSearchSection','source','6413230gbhIxg','set','isLoading','ck-ai-chat-resources','_searchView','_createResourcesListView','_skeletonLoader','bindTemplate','setResources','loadResources','ck-hidden','fire','searchInputVisibleFrom','_searchInputVisibleFrom','303094cCHwIk','214286Jvbduy','locale'];_0x1468=function(){return _0x2eb01e;};return _0x1468();}export class AIChatContextResourcesView extends _0x1117f4{[_0x2b89cb(0x111)];[_0x2b89cb(0x12b)];[_0x2b89cb(0x11a)];[_0x2b89cb(0x13b)];[_0x2b89cb(0x113)];[_0x2b89cb(0x137)];[_0x2b89cb(0x139)];[_0x2b89cb(0x130)]=null;constructor(_0x206551,_0x180be0){const _0x312fab=_0x2b89cb;super(_0x206551),this[_0x312fab(0x137)]=_0x180be0[_0x312fab(0x10c)],this[_0x312fab(0x11a)]=_0x180be0[_0x312fab(0x119)]??0x7,this[_0x312fab(0x10e)](_0x312fab(0x10f),!0x0),this[_0x312fab(0x111)]=this[_0x312fab(0x125)](),this[_0x312fab(0x12b)]=this[_0x312fab(0x10b)](),this[_0x312fab(0x13b)]=this[_0x312fab(0x112)](),this[_0x312fab(0x113)]=this[_0x312fab(0x134)](),this[_0x312fab(0x139)]=new _0x36325a([this[_0x312fab(0x113)],this[_0x312fab(0x13b)]]),this[_0x312fab(0x12a)]({'tag':_0x312fab(0x131),'attributes':{'class':_0x312fab(0x110)},'children':this[_0x312fab(0x139)]});}[_0x2b89cb(0x125)](){const _0x2193a4=_0x2b89cb;return new _0x34d2b4(this[_0x2193a4(0x11d)]);}[_0x2b89cb(0x10b)](){const _0x3fae5c=_0x2b89cb,_0x2adb86=new _0x1117f4(this[_0x3fae5c(0x11d)]);return _0x2adb86[_0x3fae5c(0x12a)]({'tag':_0x3fae5c(0x131),'attributes':{'class':_0x3fae5c(0x13a)},'children':[this[_0x3fae5c(0x111)]]}),this[_0x3fae5c(0x111)]['on'](_0x3fae5c(0x138),(_0x196cb6,_0x42653d)=>{const _0x136851=_0x3fae5c;this[_0x136851(0x116)](_0x42653d),this[_0x136851(0x137)][_0x136851(0x12f)]&&this[_0x136851(0x13b)][_0x136851(0x12c)](_0x42653d);}),_0x2adb86;}[_0x2b89cb(0x112)](){const _0xf2f3e0=_0x2b89cb,_0x2baf21=new _0x3b1ad8(this[_0xf2f3e0(0x11d)],this[_0xf2f3e0(0x137)]);return _0x2baf21[_0xf2f3e0(0x12d)](_0xf2f3e0(0x128))['to'](this),_0x2baf21[_0xf2f3e0(0x12e)]({'attributes':{'class':this[_0xf2f3e0(0x114)]['if'](_0xf2f3e0(0x10f),_0xf2f3e0(0x117))}}),_0x2baf21;}[_0x2b89cb(0x134)](){const _0x38c9d4=_0x2b89cb,_0x53188a=new _0x20ef22(this[_0x38c9d4(0x11d)],_0x2ceea2[_0x38c9d4(0x121)]);return _0x53188a[_0x38c9d4(0x12e)]({'attributes':{'class':[this[_0x38c9d4(0x114)]['if'](_0x38c9d4(0x10f),_0x38c9d4(0x117),_0x1b8e3a=>!_0x1b8e3a)]}}),_0x53188a;}[_0x2b89cb(0x122)](){const _0x4db8a0=_0x2b89cb;super[_0x4db8a0(0x122)](),this[_0x4db8a0(0x116)]('');}[_0x2b89cb(0x116)](_0x1e9646){const _0x305ad6=_0x2b89cb,_0x10a785=_0x4091ef();this[_0x305ad6(0x130)]=_0x10a785,this[_0x305ad6(0x118)](_0x305ad6(0x120),{'sourceId':this[_0x305ad6(0x137)]['id'],'query':_0x1e9646,'uid':_0x10a785}),this[_0x305ad6(0x10f)]=!0x0;}[_0x2b89cb(0x115)](_0x3433b8,_0x2d4360){const _0x54bfcd=_0x2b89cb;if(_0x2d4360&&_0x2d4360!==this[_0x54bfcd(0x130)])return;const _0xae9a52=this[_0x54bfcd(0x137)][_0x54bfcd(0x12f)]?this[_0x54bfcd(0x111)][_0x54bfcd(0x123)]():'';this[_0x54bfcd(0x13b)][_0x54bfcd(0x115)](_0x3433b8,_0xae9a52),_0x3433b8[_0x54bfcd(0x124)]>=this[_0x54bfcd(0x11a)]&&!this[_0x54bfcd(0x139)][_0x54bfcd(0x136)](this[_0x54bfcd(0x12b)])&&this[_0x54bfcd(0x139)][_0x54bfcd(0x126)](this[_0x54bfcd(0x12b)],0x0),requestAnimationFrame(()=>{const _0x4fa236=_0x54bfcd;this[_0x4fa236(0x10f)]=!0x1;});}[_0x2b89cb(0x127)](_0x4cf133,_0x3c4eed){const _0x551e08=_0x2b89cb;this[_0x551e08(0x13b)][_0x551e08(0x127)](_0x4cf133,_0x3c4eed);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x53e6(){const _0x4ac089=['_createBalloonResourcesView','2971264reJjeP','extendTemplate','_addSourceResourceContent','getTargetElement','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','_createBalloonHeader','_bodyCollection','592260QLcsPt','values','_config','getLimiterElement','_locale','onResourceSelected','searchInputVisibleFrom','445tfkZgg','updateResourceState','onBackToContext','execute','isAnyResourceBalloonVisible','ck-button-icon\x20ck-button-back','resource','show','content','element','add','onBalloonClosed','_sourceResourceBalloons','set','get','_getResourcesViewFromBalloon','label','once','1035052NptXqv','_setupSingleResourceBalloonClickOutsideHandler','populateSourceResourceBalloon','_createSourceResourceBalloonPanel','clear','hide','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','4531240LGFAyN','onLoadSourceResources','setResources','1eriEeJ','isVisible','loadSourceResources','1653009Wtclda','change:isLoading','addResourceToContext','pin','destroy','closeSourceResourceBalloon','23802CUEnVf','ck-ai-chat-context-controls__source-balloon-panel','showSourceResourcesBalloon','delete','source','_createBackButton','children','4468230lQmQkt'];_0x53e6=function(){return _0x4ac089;};return _0x53e6();}const _0x11ee60=_0x24da;function _0x24da(_0x5229a1,_0x24df79){const _0x53e606=_0x53e6();return _0x24da=function(_0x24da1d,_0x32ee64){_0x24da1d=_0x24da1d-0x1f0;let _0x5db740=_0x53e606[_0x24da1d];return _0x5db740;},_0x24da(_0x5229a1,_0x24df79);}(function(_0x46da6c,_0x3be9ed){const _0x26869f=_0x24da,_0x17161f=_0x46da6c();while(!![]){try{const _0x1395eb=parseInt(_0x26869f(0x21a))/0x1*(parseInt(_0x26869f(0x210))/0x2)+parseInt(_0x26869f(0x21d))/0x3+parseInt(_0x26869f(0x1f7))/0x4+parseInt(_0x26869f(0x1fe))/0x5*(-parseInt(_0x26869f(0x223))/0x6)+-parseInt(_0x26869f(0x217))/0x7+-parseInt(_0x26869f(0x1f0))/0x8+parseInt(_0x26869f(0x22a))/0x9;if(_0x1395eb===_0x3be9ed)break;else _0x17161f['push'](_0x17161f['shift']());}catch(_0x48a409){_0x17161f['push'](_0x17161f['shift']());}}}(_0x53e6,0x53519));import{BalloonPanelView as _0x158aa2,ButtonView as _0x4a2412,clickOutsideHandler as _0x39c6e0,FormHeaderView as _0x2c442f}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x54d4ff}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2f9232}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x1e318f}from'./aichatcontextresourcesview.js';const Bc=_0x11ee60(0x224),mc=_0x11ee60(0x203),dc=_0x11ee60(0x1f4);export class AIChatResourcesBalloonView{[_0x11ee60(0x20a)]=new Map();[_0x11ee60(0x1f6)];[_0x11ee60(0x1fb)];[_0x11ee60(0x1f9)];constructor(_0x574490,_0x1adcb3,_0x4e81bd){const _0x465831=_0x11ee60;this[_0x465831(0x1fb)]=_0x574490,this[_0x465831(0x1f6)]=_0x1adcb3,this[_0x465831(0x1f9)]=_0x4e81bd;}[_0x11ee60(0x225)]({source:_0x441ff2,withBackButton:_0x11b58f}){const _0x480e92=_0x11ee60;let _0xd7f12d=this[_0x480e92(0x20a)][_0x480e92(0x20c)](_0x441ff2['id']);_0xd7f12d||(_0xd7f12d=this[_0x480e92(0x213)](),this[_0x480e92(0x20a)][_0x480e92(0x20b)](_0x441ff2['id'],_0xd7f12d),this[_0x480e92(0x211)](_0xd7f12d)),this[_0x480e92(0x1f2)]({'balloonPanel':_0xd7f12d,'source':_0x441ff2,'withBackButton':_0x11b58f}),_0xd7f12d[_0x480e92(0x205)]();const _0x136c5b=this[_0x480e92(0x1f9)][_0x480e92(0x1f3)]();_0x136c5b&&_0xd7f12d[_0x480e92(0x220)]({'target':_0x136c5b,'limiter':this[_0x480e92(0x1f9)][_0x480e92(0x1fa)]()});}[_0x11ee60(0x212)](_0x88ffa7,_0x4dff2c,_0x44a8d2){const _0x14a3c6=_0x11ee60,_0x4de119=this[_0x14a3c6(0x20a)][_0x14a3c6(0x20c)](_0x88ffa7);if(!_0x4de119)return;const _0x18047f=this[_0x14a3c6(0x20d)](_0x4de119);_0x18047f&&(_0x18047f[_0x14a3c6(0x219)](_0x4dff2c,_0x44a8d2),_0x18047f[_0x14a3c6(0x20f)](_0x14a3c6(0x21e),()=>{const _0x4cabad=_0x14a3c6;_0x4de119[_0x4cabad(0x220)]({'target':this[_0x4cabad(0x1f9)][_0x4cabad(0x1f3)](),'limiter':this[_0x4cabad(0x1f9)][_0x4cabad(0x1fa)]()});}));}[_0x11ee60(0x222)](_0x4322d3){const _0x10ea65=_0x11ee60,_0x530df1=this[_0x10ea65(0x20a)][_0x10ea65(0x20c)](_0x4322d3);_0x530df1&&requestAnimationFrame(()=>{const _0x83aee8=_0x10ea65;_0x530df1[_0x83aee8(0x215)](),this[_0x83aee8(0x20a)][_0x83aee8(0x226)](_0x4322d3),this[_0x83aee8(0x1f9)][_0x83aee8(0x209)]();});}[_0x11ee60(0x202)](){const _0x4b15fd=_0x11ee60;for(const _0x3d6d4e of this[_0x4b15fd(0x20a)][_0x4b15fd(0x1f8)]())if(_0x3d6d4e[_0x4b15fd(0x21b)])return!0x0;return!0x1;}[_0x11ee60(0x1ff)](_0x1f89a6,_0x33b181,_0x11a587){const _0x1d04e8=_0x11ee60,_0x119862=this[_0x1d04e8(0x20a)][_0x1d04e8(0x20c)](_0x1f89a6);if(!_0x119862||!_0x119862[_0x1d04e8(0x21b)])return;const _0x19e7e8=this[_0x1d04e8(0x1f9)][_0x1d04e8(0x1f3)]();if(!_0x19e7e8)return;_0x119862[_0x1d04e8(0x220)]({'target':_0x19e7e8,'limiter':this[_0x1d04e8(0x1f9)][_0x1d04e8(0x1fa)]()});const _0xed0d18=this[_0x1d04e8(0x20d)](_0x119862);_0xed0d18&&_0xed0d18[_0x1d04e8(0x1ff)](_0x33b181,_0x11a587);}[_0x11ee60(0x221)](){const _0x2530e7=_0x11ee60;for(const _0x199142 of this[_0x2530e7(0x20a)][_0x2530e7(0x1f8)]())_0x199142[_0x2530e7(0x221)]();this[_0x2530e7(0x20a)][_0x2530e7(0x214)]();}[_0x11ee60(0x213)](){const _0x1b2b4d=_0x11ee60,_0x3d6b98=new _0x158aa2(this[_0x1b2b4d(0x1fb)]);return _0x3d6b98[_0x1b2b4d(0x1f1)]({'attributes':{'class':Bc}}),this[_0x1b2b4d(0x1f6)][_0x1b2b4d(0x208)](_0x3d6b98),_0x3d6b98;}[_0x11ee60(0x1f2)]({balloonPanel:_0x111e9d,source:_0x375730,withBackButton:_0x1b6d64}){const _0x1e0b06=_0x11ee60;_0x111e9d[_0x1e0b06(0x206)][_0x1e0b06(0x214)]();const _0x5a5990=this[_0x1e0b06(0x1f5)]({'balloonPanel':_0x111e9d,'source':_0x375730,'withBackButton':_0x1b6d64});_0x111e9d[_0x1e0b06(0x206)][_0x1e0b06(0x208)](_0x5a5990);const _0x1df1b8=this[_0x1e0b06(0x22b)](_0x375730);_0x111e9d[_0x1e0b06(0x206)][_0x1e0b06(0x208)](_0x1df1b8);}[_0x11ee60(0x1f5)]({balloonPanel:_0x56c577,source:_0x1e9a84,withBackButton:_0x31079e}){const _0x5e5295=_0x11ee60,_0x3e615c=new _0x2c442f(this[_0x5e5295(0x1fb)],{'label':_0x1e9a84[_0x5e5295(0x20e)],'class':dc});return _0x31079e&&_0x3e615c[_0x5e5295(0x229)][_0x5e5295(0x208)](this[_0x5e5295(0x228)](_0x56c577),0x0),_0x3e615c;}[_0x11ee60(0x228)](_0x44fda8){const _0x299bd2=_0x11ee60,_0x6cbc90=new _0x4a2412(this[_0x299bd2(0x1fb)]);return _0x6cbc90[_0x299bd2(0x20b)]({'icon':_0x54d4ff,'tooltip':_0x2f9232(this[_0x299bd2(0x1fb)],_0x299bd2(0x216)),'tooltipPosition':'n','class':mc}),_0x6cbc90['on'](_0x299bd2(0x201),()=>{const _0x22389d=_0x299bd2;_0x44fda8[_0x22389d(0x215)](),this[_0x22389d(0x1f9)][_0x22389d(0x200)]();}),_0x6cbc90;}[_0x11ee60(0x22b)](_0x39fd65){const _0x31faeb=_0x11ee60,_0x5ca29f=new _0x1e318f(this[_0x31faeb(0x1fb)],{'source':_0x39fd65,'searchInputVisibleFrom':this[_0x31faeb(0x1f9)][_0x31faeb(0x1fd)]});return _0x5ca29f['on'](_0x31faeb(0x21c),(_0x386d10,_0x109fa6)=>{const _0x497989=_0x31faeb;this[_0x497989(0x1f9)][_0x497989(0x218)](_0x109fa6);}),_0x5ca29f['on'](_0x31faeb(0x21f),(_0x2934e8,_0x1197b2)=>{const _0x5e2a00=_0x31faeb;this[_0x5e2a00(0x1f9)][_0x5e2a00(0x1fc)](_0x1197b2[_0x5e2a00(0x227)],_0x1197b2[_0x5e2a00(0x204)]),this[_0x5e2a00(0x222)](_0x39fd65['id']);}),_0x5ca29f;}[_0x11ee60(0x20d)](_0x3c44cf){const _0x44595b=_0x11ee60,_0x500e8b=_0x3c44cf[_0x44595b(0x206)][_0x44595b(0x20c)](0x1);return _0x500e8b instanceof _0x1e318f?_0x500e8b:null;}[_0x11ee60(0x211)](_0x5c629f){const _0x47a8d7=_0x11ee60;_0x39c6e0({'emitter':_0x5c629f,'contextElements':[_0x5c629f[_0x47a8d7(0x207)]],'callback':()=>{const _0x43212d=_0x47a8d7;_0x5c629f[_0x43212d(0x215)](),this[_0x43212d(0x1f9)][_0x43212d(0x209)]();},'activator':()=>_0x5c629f[_0x47a8d7(0x21b)]});}}
23
+ const _0x2a3eb3=_0x5d05;(function(_0x4403f0,_0x5bb7dc){const _0xac701f=_0x5d05,_0x4805ed=_0x4403f0();while(!![]){try{const _0x7c7773=parseInt(_0xac701f(0x75))/0x1+parseInt(_0xac701f(0x9a))/0x2+parseInt(_0xac701f(0x8f))/0x3+-parseInt(_0xac701f(0x73))/0x4*(-parseInt(_0xac701f(0x91))/0x5)+-parseInt(_0xac701f(0x9d))/0x6+-parseInt(_0xac701f(0x90))/0x7*(parseInt(_0xac701f(0x7c))/0x8)+parseInt(_0xac701f(0x85))/0x9*(-parseInt(_0xac701f(0x71))/0xa);if(_0x7c7773===_0x5bb7dc)break;else _0x4805ed['push'](_0x4805ed['shift']());}catch(_0x200227){_0x4805ed['push'](_0x4805ed['shift']());}}}(_0x5d6b,0x89d28));import{BalloonPanelView as _0x44bc21,ButtonView as _0x12dcef,clickOutsideHandler as _0x246a4b,FormHeaderView as _0x3ba5a7}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x148259}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x19168d}from'../../../../aicore/utils/common-translations.js';function _0x5d05(_0xb4c332,_0x491c5b){const _0x5d6bc8=_0x5d6b();return _0x5d05=function(_0x5d059d,_0x2cad9e){_0x5d059d=_0x5d059d-0x64;let _0x385964=_0x5d6bc8[_0x5d059d];return _0x385964;},_0x5d05(_0xb4c332,_0x491c5b);}import{AIChatContextResourcesView as _0x27b082}from'./aichatcontextresourcesview.js';function _0x5d6b(){const _0x47d7d8=['content','_sourceResourceBalloons','8OfsPUv','set','searchInputVisibleFrom','change:isLoading','destroy','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','hide','_locale','get','27909FZAWaQ','loadSourceResources','_createBalloonHeader','label','execute','once','updateResourceState','_createSourceResourceBalloonPanel','getTargetElement','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','2275080wlKjBV','1716309gAqELK','3886255foAZpZ','populateSourceResourceBalloon','ck-button-icon\x20ck-button-back','getLimiterElement','children','_createBalloonResourcesView','ck-ai-chat-context-controls__source-balloon-panel','_createBackButton','_addSourceResourceContent','85464xRZncv','onLoadSourceResources','onBackToContext','3765288FKSMSG','show','source','extendTemplate','add','_config','showSourceResourcesBalloon','isVisible','setResources','closeSourceResourceBalloon','resource','addResourceToContext','isAnyResourceBalloonVisible','_getResourcesViewFromBalloon','_bodyCollection','onBalloonClosed','onResourceSelected','3660Tqzayi','element','4jPRdLP','values','993878GXstSE','delete','clear','pin','_setupSingleResourceBalloonClickOutsideHandler'];_0x5d6b=function(){return _0x47d7d8;};return _0x5d6b();}const Bc=_0x2a3eb3(0x97),mc=_0x2a3eb3(0x93),dc=_0x2a3eb3(0x81);export class AIChatResourcesBalloonView{[_0x2a3eb3(0x7b)]=new Map();[_0x2a3eb3(0x6e)];[_0x2a3eb3(0x83)];[_0x2a3eb3(0x65)];constructor(_0x5c6847,_0x37768b,_0x41ccd3){const _0x3d568e=_0x2a3eb3;this[_0x3d568e(0x83)]=_0x5c6847,this[_0x3d568e(0x6e)]=_0x37768b,this[_0x3d568e(0x65)]=_0x41ccd3;}[_0x2a3eb3(0x66)]({source:_0x18a390,withBackButton:_0xeb1926}){const _0x216554=_0x2a3eb3;let _0xf471d0=this[_0x216554(0x7b)][_0x216554(0x84)](_0x18a390['id']);_0xf471d0||(_0xf471d0=this[_0x216554(0x8c)](),this[_0x216554(0x7b)][_0x216554(0x7d)](_0x18a390['id'],_0xf471d0),this[_0x216554(0x79)](_0xf471d0)),this[_0x216554(0x99)]({'balloonPanel':_0xf471d0,'source':_0x18a390,'withBackButton':_0xeb1926}),_0xf471d0[_0x216554(0x9e)]();const _0x3d6297=this[_0x216554(0x65)][_0x216554(0x8d)]();_0x3d6297&&_0xf471d0[_0x216554(0x78)]({'target':_0x3d6297,'limiter':this[_0x216554(0x65)][_0x216554(0x94)]()});}[_0x2a3eb3(0x92)](_0x3ef270,_0x38b9e5,_0x11f851){const _0x29939e=_0x2a3eb3,_0x28561e=this[_0x29939e(0x7b)][_0x29939e(0x84)](_0x3ef270);if(!_0x28561e)return;const _0x291a99=this[_0x29939e(0x6d)](_0x28561e);_0x291a99&&(_0x291a99[_0x29939e(0x68)](_0x38b9e5,_0x11f851),_0x291a99[_0x29939e(0x8a)](_0x29939e(0x7f),()=>{const _0x3f2b8c=_0x29939e;_0x28561e[_0x3f2b8c(0x78)]({'target':this[_0x3f2b8c(0x65)][_0x3f2b8c(0x8d)](),'limiter':this[_0x3f2b8c(0x65)][_0x3f2b8c(0x94)]()});}));}[_0x2a3eb3(0x69)](_0x10a5df){const _0x31d6be=_0x2a3eb3,_0x4d1bfe=this[_0x31d6be(0x7b)][_0x31d6be(0x84)](_0x10a5df);_0x4d1bfe&&requestAnimationFrame(()=>{const _0x10c8e5=_0x31d6be;_0x4d1bfe[_0x10c8e5(0x82)](),this[_0x10c8e5(0x7b)][_0x10c8e5(0x76)](_0x10a5df),this[_0x10c8e5(0x65)][_0x10c8e5(0x6f)]();});}[_0x2a3eb3(0x6c)](){const _0x66f43=_0x2a3eb3;for(const _0x3a56f2 of this[_0x66f43(0x7b)][_0x66f43(0x74)]())if(_0x3a56f2[_0x66f43(0x67)])return!0x0;return!0x1;}[_0x2a3eb3(0x8b)](_0xb05a88,_0x41ba94,_0x372e9f){const _0x20f63d=_0x2a3eb3,_0x284ae5=this[_0x20f63d(0x7b)][_0x20f63d(0x84)](_0xb05a88);if(!_0x284ae5||!_0x284ae5[_0x20f63d(0x67)])return;const _0x7d19d2=this[_0x20f63d(0x65)][_0x20f63d(0x8d)]();if(!_0x7d19d2)return;_0x284ae5[_0x20f63d(0x78)]({'target':_0x7d19d2,'limiter':this[_0x20f63d(0x65)][_0x20f63d(0x94)]()});const _0x550f24=this[_0x20f63d(0x6d)](_0x284ae5);_0x550f24&&_0x550f24[_0x20f63d(0x8b)](_0x41ba94,_0x372e9f);}[_0x2a3eb3(0x80)](){const _0x16de4a=_0x2a3eb3;for(const _0x27fdc6 of this[_0x16de4a(0x7b)][_0x16de4a(0x74)]())_0x27fdc6[_0x16de4a(0x80)]();this[_0x16de4a(0x7b)][_0x16de4a(0x77)]();}[_0x2a3eb3(0x8c)](){const _0x3ddbfd=_0x2a3eb3,_0x3150f4=new _0x44bc21(this[_0x3ddbfd(0x83)]);return _0x3150f4[_0x3ddbfd(0xa0)]({'attributes':{'class':Bc}}),this[_0x3ddbfd(0x6e)][_0x3ddbfd(0x64)](_0x3150f4),_0x3150f4;}[_0x2a3eb3(0x99)]({balloonPanel:_0x4e3709,source:_0x8669ba,withBackButton:_0x5b99f8}){const _0x11478b=_0x2a3eb3;_0x4e3709[_0x11478b(0x7a)][_0x11478b(0x77)]();const _0x5b7bfb=this[_0x11478b(0x87)]({'balloonPanel':_0x4e3709,'source':_0x8669ba,'withBackButton':_0x5b99f8});_0x4e3709[_0x11478b(0x7a)][_0x11478b(0x64)](_0x5b7bfb);const _0x45d8db=this[_0x11478b(0x96)](_0x8669ba);_0x4e3709[_0x11478b(0x7a)][_0x11478b(0x64)](_0x45d8db);}[_0x2a3eb3(0x87)]({balloonPanel:_0x3b4321,source:_0x33ed67,withBackButton:_0x13c033}){const _0x4cfde6=_0x2a3eb3,_0x1b57df=new _0x3ba5a7(this[_0x4cfde6(0x83)],{'label':_0x33ed67[_0x4cfde6(0x88)],'class':dc});return _0x13c033&&_0x1b57df[_0x4cfde6(0x95)][_0x4cfde6(0x64)](this[_0x4cfde6(0x98)](_0x3b4321),0x0),_0x1b57df;}[_0x2a3eb3(0x98)](_0x5d6cd7){const _0x4afcdc=_0x2a3eb3,_0x77a5df=new _0x12dcef(this[_0x4afcdc(0x83)]);return _0x77a5df[_0x4afcdc(0x7d)]({'icon':_0x148259,'tooltip':_0x19168d(this[_0x4afcdc(0x83)],_0x4afcdc(0x8e)),'tooltipPosition':'n','class':mc}),_0x77a5df['on'](_0x4afcdc(0x89),()=>{const _0x18fa11=_0x4afcdc;_0x5d6cd7[_0x18fa11(0x82)](),this[_0x18fa11(0x65)][_0x18fa11(0x9c)]();}),_0x77a5df;}[_0x2a3eb3(0x96)](_0x3364df){const _0xf523d6=_0x2a3eb3,_0x27d36b=new _0x27b082(this[_0xf523d6(0x83)],{'source':_0x3364df,'searchInputVisibleFrom':this[_0xf523d6(0x65)][_0xf523d6(0x7e)]});return _0x27d36b['on'](_0xf523d6(0x86),(_0x376d08,_0x3a103b)=>{const _0x26c38e=_0xf523d6;this[_0x26c38e(0x65)][_0x26c38e(0x9b)](_0x3a103b);}),_0x27d36b['on'](_0xf523d6(0x6b),(_0x3e00b1,_0x392ace)=>{const _0x18f9c2=_0xf523d6;this[_0x18f9c2(0x65)][_0x18f9c2(0x70)](_0x392ace[_0x18f9c2(0x9f)],_0x392ace[_0x18f9c2(0x6a)]),this[_0x18f9c2(0x69)](_0x3364df['id']);}),_0x27d36b;}[_0x2a3eb3(0x6d)](_0x518508){const _0x572540=_0x2a3eb3,_0x13c5d1=_0x518508[_0x572540(0x7a)][_0x572540(0x84)](0x1);return _0x13c5d1 instanceof _0x27b082?_0x13c5d1:null;}[_0x2a3eb3(0x79)](_0x26b993){const _0x14d75a=_0x2a3eb3;_0x246a4b({'emitter':_0x26b993,'contextElements':[_0x26b993[_0x14d75a(0x72)]],'callback':()=>{const _0xbbcd2b=_0x14d75a;_0x26b993[_0xbbcd2b(0x82)](),this[_0xbbcd2b(0x65)][_0xbbcd2b(0x6f)]();},'activator':()=>_0x26b993[_0x14d75a(0x67)]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x506b4f,IconView as _0x13063c,LabeledFieldView as _0x5705e6,createLabeledInputText as _0x49ded0}from'ckeditor5/src/ui.js';import{IconLoupe as _0x3bb016,IconCancel as _0x1a9056}from'ckeditor5/src/icons.js';import{getTranslation as _0x36e68a}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x5705e6{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x275947){const t=_0x275947['t'],_0x341547={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x49ded0,'label':_0x36e68a(_0x275947,'AI_CHAT_SEARCH_RESOURCES')};super(_0x275947,_0x341547['creator']),this['label']=_0x341547['label'],this['_viewConfig']=_0x341547,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x275947,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x56d39e){this['fire']('search',_0x56d39e);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x13063c(),this['iconView']['content']=_0x3bb016,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x4e5c8c,t){this['resetButtonView']=new _0x506b4f(_0x4e5c8c),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x1a9056,'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',_0x3027d6=>!_0x3027d6),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 _0x1fdb95,IconView as _0x5b35cb,LabeledFieldView as _0x43aeab,createLabeledInputText as _0x14262d}from'ckeditor5/src/ui.js';import{IconLoupe as _0x452073,IconCancel as _0x4b0ec6}from'ckeditor5/src/icons.js';import{getTranslation as _0x24b39b}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x43aeab{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x5a3f4a){const t=_0x5a3f4a['t'],_0x1fd832={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x14262d,'label':_0x24b39b(_0x5a3f4a,'AI_CHAT_SEARCH_RESOURCES')};super(_0x5a3f4a,_0x1fd832['creator']),this['label']=_0x1fd832['label'],this['_viewConfig']=_0x1fd832,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x5a3f4a,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x2a9cc7){this['fire']('search',_0x2a9cc7);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x5b35cb(),this['iconView']['content']=_0x452073,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x5f3dea,t){this['resetButtonView']=new _0x1fdb95(_0x5f3dea),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x4b0ec6,'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',_0x4eba3e=>!_0x4eba3e),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
- function _0x562a(_0x5429d0,_0x1f3e49){const _0x549bbc=_0x549b();return _0x562a=function(_0x562a23,_0x5d3541){_0x562a23=_0x562a23-0x1da;let _0x3ba43d=_0x549bbc[_0x562a23];return _0x3ba43d;},_0x562a(_0x5429d0,_0x1f3e49);}const _0x44b73f=_0x562a;(function(_0x1724c3,_0x160e24){const _0x32fd52=_0x562a,_0x418747=_0x1724c3();while(!![]){try{const _0xd92246=-parseInt(_0x32fd52(0x1eb))/0x1*(-parseInt(_0x32fd52(0x1f2))/0x2)+-parseInt(_0x32fd52(0x1ec))/0x3+parseInt(_0x32fd52(0x1e3))/0x4+parseInt(_0x32fd52(0x1de))/0x5*(parseInt(_0x32fd52(0x1ea))/0x6)+parseInt(_0x32fd52(0x1e5))/0x7+parseInt(_0x32fd52(0x1e4))/0x8+-parseInt(_0x32fd52(0x1e6))/0x9;if(_0xd92246===_0x160e24)break;else _0x418747['push'](_0x418747['shift']());}catch(_0x321bac){_0x418747['push'](_0x418747['shift']());}}}(_0x549b,0x755c6));import{IconBulb as _0x2a59af,IconWeb as _0x8c98b4}from'@ckeditor/ckeditor5-icons';import{IconView as _0xe710a2,View as _0x14c4bc}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x4b586c}from'./aichatfeeditemview.js';import{getTranslation as _0x4e1487}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x4b586c{[_0x44b73f(0x1dd)];constructor(_0x352c90,_0x40379c){const _0x49159d=_0x44b73f;super(_0x40379c);const {isWebSearchEnabled:_0x49e71c,isReasoningEnabled:_0x2bebf6}=_0x40379c[_0x49159d(0x1dd)],_0x2afa34=[];let _0x30e305='';_0x49e71c&&_0x2bebf6?(_0x30e305=_0x4e1487(_0x352c90,_0x49159d(0x1ed)),_0x2afa34[_0x49159d(0x1f0)](aa(_0x8c98b4)),_0x2afa34[_0x49159d(0x1f0)](aa(_0x2a59af))):_0x49e71c?(_0x30e305=_0x4e1487(_0x352c90,_0x49159d(0x1ee)),_0x2afa34[_0x49159d(0x1f0)](aa(_0x8c98b4))):_0x2bebf6&&(_0x30e305=_0x4e1487(_0x352c90,_0x49159d(0x1ef)),_0x2afa34[_0x49159d(0x1f0)](aa(_0x2a59af))),this[_0x49159d(0x1e7)]({'attributes':{'class':[_0x49159d(0x1e9),_0x30e305?'':_0x49159d(0x1e1)]}});const _0x24cad0=new _0x14c4bc();_0x24cad0[_0x49159d(0x1dc)]({'tag':_0x49159d(0x1f1),'attributes':{'class':['ck',_0x49159d(0x1e8)]},'children':[..._0x2afa34,{'tag':_0x49159d(0x1da),'attributes':{'class':[_0x49159d(0x1e0)]},'children':[_0x30e305]}]}),this[_0x49159d(0x1e2)][_0x49159d(0x1df)](_0x24cad0),this[_0x49159d(0x1dd)]=_0x40379c[_0x49159d(0x1dd)];}}function aa(_0x11d06a){const _0x18990b=_0x44b73f,_0x472814=new _0xe710a2();return _0x472814[_0x18990b(0x1db)]=_0x11d06a,_0x472814;}function _0x549b(){const _0x2fafad=['499584FOWLiu','1431913fKmfQA','6824520kufcyw','extendTemplate','ck-ai-chat__feed__interaction-header__capabilities','ck-ai-chat__feed__interaction-header','12RKzsUt','2Omzguz','1734813muZJjg','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','push','div','648784VlQcXJ','span','content','setTemplate','capabilities','1377445NkbIuZ','add','ck-ai-chat__feed__interaction-header__capabilities__text','ck-hidden','children','1401968RWnNpk'];_0x549b=function(){return _0x2fafad;};return _0x549b();}
23
+ function _0x205e(){const _0x1ce480=['extendTemplate','789325ujRKCo','ck-ai-chat__feed__interaction-header__capabilities__text','span','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','ck-ai-chat__feed__interaction-header__capabilities','ck-hidden','198522dIjmPa','add','202923PFSEKV','583377hlKMCG','136vnJFgI','425770YqCPnz','ck-ai-chat__feed__interaction-header','setTemplate','capabilities','content','60IxTVYP','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','div','children','2zBbZVC','1156592zukcWn','push','246525IZRHvS','44FvQmsw'];_0x205e=function(){return _0x1ce480;};return _0x205e();}const _0x3b9130=_0x5509;(function(_0x10428f,_0x2894e9){const _0x3e522d=_0x5509,_0x167007=_0x10428f();while(!![]){try{const _0x18085d=parseInt(_0x3e522d(0x12f))/0x1+parseInt(_0x3e522d(0x147))/0x2*(-parseInt(_0x3e522d(0x13c))/0x3)+parseInt(_0x3e522d(0x148))/0x4+-parseInt(_0x3e522d(0x132))/0x5+-parseInt(_0x3e522d(0x143))/0x6*(-parseInt(_0x3e522d(0x13b))/0x7)+-parseInt(_0x3e522d(0x13d))/0x8*(parseInt(_0x3e522d(0x139))/0x9)+parseInt(_0x3e522d(0x13e))/0xa*(parseInt(_0x3e522d(0x130))/0xb);if(_0x18085d===_0x2894e9)break;else _0x167007['push'](_0x167007['shift']());}catch(_0x3f22d0){_0x167007['push'](_0x167007['shift']());}}}(_0x205e,0x41911));import{IconBulb as _0x458d57,IconWeb as _0x3321c9}from'@ckeditor/ckeditor5-icons';import{IconView as _0x5d5dde,View as _0x488391}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x1d7407}from'./aichatfeeditemview.js';function _0x5509(_0x106ea8,_0x3ccbcf){const _0x205eea=_0x205e();return _0x5509=function(_0x5509a3,_0x5c27ae){_0x5509a3=_0x5509a3-0x12e;let _0x68c060=_0x205eea[_0x5509a3];return _0x68c060;},_0x5509(_0x106ea8,_0x3ccbcf);}import{getTranslation as _0x3eb433}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x1d7407{[_0x3b9130(0x141)];constructor(_0x42398b,_0x3b8903){const _0xe29a9a=_0x3b9130;super(_0x3b8903);const {isWebSearchEnabled:_0x3f7637,isReasoningEnabled:_0x1fed32}=_0x3b8903[_0xe29a9a(0x141)],_0x4a62c1=[];let _0x552c5c='';_0x3f7637&&_0x1fed32?(_0x552c5c=_0x3eb433(_0x42398b,_0xe29a9a(0x135)),_0x4a62c1[_0xe29a9a(0x12e)](aa(_0x3321c9)),_0x4a62c1[_0xe29a9a(0x12e)](aa(_0x458d57))):_0x3f7637?(_0x552c5c=_0x3eb433(_0x42398b,_0xe29a9a(0x136)),_0x4a62c1[_0xe29a9a(0x12e)](aa(_0x3321c9))):_0x1fed32&&(_0x552c5c=_0x3eb433(_0x42398b,_0xe29a9a(0x144)),_0x4a62c1[_0xe29a9a(0x12e)](aa(_0x458d57))),this[_0xe29a9a(0x131)]({'attributes':{'class':[_0xe29a9a(0x13f),_0x552c5c?'':_0xe29a9a(0x138)]}});const _0x494bfb=new _0x488391();_0x494bfb[_0xe29a9a(0x140)]({'tag':_0xe29a9a(0x145),'attributes':{'class':['ck',_0xe29a9a(0x137)]},'children':[..._0x4a62c1,{'tag':_0xe29a9a(0x134),'attributes':{'class':[_0xe29a9a(0x133)]},'children':[_0x552c5c]}]}),this[_0xe29a9a(0x146)][_0xe29a9a(0x13a)](_0x494bfb),this[_0xe29a9a(0x141)]=_0x3b8903[_0xe29a9a(0x141)];}}function aa(_0x1929ae){const _0x56fdbd=_0x3b9130,_0x4ece65=new _0x5d5dde();return _0x4ece65[_0x56fdbd(0x142)]=_0x1929ae,_0x4ece65;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2140(){const _0x54d4de=['add','17368qgLHYw','isVisible','fire','execute','_applyChangesButton','2041192MwmuNj','label','ck-ai-button-primary','bindTemplate','includes','18KljbhD','AI_SUGGESTION_DISABLED_FEED_MESSAGE','AI_CHAT_SUGGESTION_ACTION_APPLY','ck-ai-chat__feed__ai-suggestion__actions','AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL','div','updateVisibility','button','createCollection','AI_CHAT_SUGGESTION_ACTION_APPLY_ALL','ck-ai-chat__feed__suggestion__actions__info','ck-ai-button-secondary','310660rzPRrj','6fzoRqC','419343CdgEmc','ck-hidden','applySuggestion','locale','children','set','isTrackChangesOn','_insertSuggestionsButton','1029415lUFNZx','AI_CHAT_SUGGESTION_ACTION_SUGGEST','change:isTrackChangesOn','insertSuggestion','AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE','forEach','addMany','_switchButtonLabelsPlurality','307560LhHxPO','isEnabled','bind','389782zFbPoq','setTemplate'];_0x2140=function(){return _0x54d4de;};return _0x2140();}const _0x1f8556=_0x28e3;(function(_0x1c5ec2,_0x4af30c){const _0x4637d7=_0x28e3,_0x44ef8d=_0x1c5ec2();while(!![]){try{const _0x15610c=parseInt(_0x4637d7(0x91))/0x1+-parseInt(_0x4637d7(0x8e))/0x2+-parseInt(_0x4637d7(0xa9))/0x3+parseInt(_0x4637d7(0x8b))/0x4+-parseInt(_0x4637d7(0x83))/0x5+parseInt(_0x4637d7(0xa8))/0x6*(parseInt(_0x4637d7(0xa7))/0x7)+-parseInt(_0x4637d7(0x96))/0x8*(-parseInt(_0x4637d7(0x9b))/0x9);if(_0x15610c===_0x4af30c)break;else _0x44ef8d['push'](_0x44ef8d['shift']());}catch(_0x30cb67){_0x44ef8d['push'](_0x44ef8d['shift']());}}}(_0x2140,0x1a75d));import{ButtonView as _0x2a1bbc,View as _0x1edd54}from'ckeditor5/src/ui.js';import{getTranslation as _0x35ead6}from'../../../aicore/utils/common-translations.js';import{IconInfo as _0x483270}from'ckeditor5/src/icons.js';export const AI_REPLY_ACTIONS=[_0x1f8556(0xab),_0x1f8556(0x86)];function _0x28e3(_0x230b09,_0x24c1d1){const _0x214052=_0x2140();return _0x28e3=function(_0x28e335,_0x4f0fff){_0x28e335=_0x28e335-0x7f;let _0x3439dd=_0x214052[_0x28e335];return _0x3439dd;},_0x28e3(_0x230b09,_0x24c1d1);}export class AIChatFeedSuggestionItemActionsView extends _0x1edd54{[_0x1f8556(0x95)];[_0x1f8556(0x82)];[_0x1f8556(0x7f)];constructor(_0x276949,_0x8a98ec=[...AI_REPLY_ACTIONS],_0x7b0726){const _0xbec244=_0x1f8556;super(_0x276949);const _0x247a0c=this[_0xbec244(0x99)],_0x24be10=Boolean(_0x7b0726);if(this[_0xbec244(0x80)](_0xbec244(0x8c),!_0x24be10),this[_0xbec244(0x80)](_0xbec244(0x92),!0x1),this[_0xbec244(0x80)](_0xbec244(0x81),!0x1),this[_0xbec244(0x7f)]=this[_0xbec244(0xa3)](),_0x24be10){const _0x364f0e=new _0x2a1bbc(_0x276949);_0x364f0e[_0xbec244(0x80)]({'label':_0x35ead6(_0x276949,_0xbec244(0x87)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x483270});const _0x474990=new _0x1edd54(_0x276949);_0x474990[_0xbec244(0x8f)]({'tag':_0xbec244(0xa0),'attributes':{'class':_0xbec244(0xa5)},'children':[{'tag':'p','children':[_0x35ead6(_0x276949,_0xbec244(0x9c)),_0x364f0e]}]}),this[_0xbec244(0x7f)][_0xbec244(0x90)](_0x474990);}else this[_0xbec244(0x95)]=new _0x2a1bbc(_0x276949),this[_0xbec244(0x95)][_0xbec244(0x80)]({'label':_0x35ead6(_0x276949,_0xbec244(0xa4)),'withText':!0x0,'type':_0xbec244(0xa2),'isVisible':_0x8a98ec[_0xbec244(0x9a)](_0xbec244(0xab)),'class':_0xbec244(0x98)}),this[_0xbec244(0x82)]=new _0x2a1bbc(_0x276949),this[_0xbec244(0x82)][_0xbec244(0x80)]({'label':_0x35ead6(_0x276949,_0xbec244(0x9f)),'withText':!0x0,'type':_0xbec244(0xa2),'isVisible':_0x8a98ec[_0xbec244(0x9a)](_0xbec244(0x86)),'class':_0xbec244(0xa6)}),this[_0xbec244(0x82)]['on'](_0xbec244(0x94),()=>{const _0x22ebe3=_0xbec244;this[_0x22ebe3(0x93)](_0x22ebe3(0x86));}),this[_0xbec244(0x95)]['on'](_0xbec244(0x94),()=>{const _0x43e943=_0xbec244;this[_0x43e943(0x93)](_0x43e943(0xab));}),[this[_0xbec244(0x95)],this[_0xbec244(0x82)]][_0xbec244(0x88)](_0x1b014c=>{const _0x49eff9=_0xbec244;_0x1b014c[_0x49eff9(0x8d)](_0x49eff9(0x8c))['to'](this);}),this[_0xbec244(0x7f)][_0xbec244(0x89)]([this[_0xbec244(0x95)],this[_0xbec244(0x82)]]);this[_0xbec244(0x8f)]({'tag':_0xbec244(0xa0),'attributes':{'class':['ck',_0xbec244(0x9e),_0x247a0c['if'](_0xbec244(0x92),_0xbec244(0xaa),_0x19841c=>!_0x19841c)]},'children':this[_0xbec244(0x7f)]}),this['on'](_0xbec244(0x85),()=>{const _0x102c39=_0xbec244;this[_0x102c39(0x95)]&&(this[_0x102c39(0x95)][_0x102c39(0x92)]=!this[_0x102c39(0x81)]);});}[_0x1f8556(0xa1)](_0x1c4714){const _0x569621=_0x1f8556;this[_0x569621(0x92)]=_0x1c4714;}[_0x1f8556(0x8a)](_0x1ade2e){const _0x28abaa=_0x1f8556;this[_0x28abaa(0x95)]&&this[_0x28abaa(0x82)]&&(_0x1ade2e?(this[_0x28abaa(0x95)][_0x28abaa(0x97)]=_0x35ead6(this[_0x28abaa(0xac)],_0x28abaa(0xa4)),this[_0x28abaa(0x82)][_0x28abaa(0x97)]=_0x35ead6(this[_0x28abaa(0xac)],_0x28abaa(0x9f))):(this[_0x28abaa(0x95)][_0x28abaa(0x97)]=_0x35ead6(this[_0x28abaa(0xac)],_0x28abaa(0x9d)),this[_0x28abaa(0x82)][_0x28abaa(0x97)]=_0x35ead6(this[_0x28abaa(0xac)],_0x28abaa(0x84))));}}
23
+ const _0x4c30c9=_0x342a;(function(_0x2d8768,_0x5906c3){const _0x333d6e=_0x342a,_0x1ddaa1=_0x2d8768();while(!![]){try{const _0x2b3861=parseInt(_0x333d6e(0x9a))/0x1+parseInt(_0x333d6e(0x9e))/0x2+-parseInt(_0x333d6e(0x7f))/0x3*(parseInt(_0x333d6e(0x8f))/0x4)+-parseInt(_0x333d6e(0xa6))/0x5+parseInt(_0x333d6e(0x81))/0x6+parseInt(_0x333d6e(0xa3))/0x7+-parseInt(_0x333d6e(0x89))/0x8*(parseInt(_0x333d6e(0x85))/0x9);if(_0x2b3861===_0x5906c3)break;else _0x1ddaa1['push'](_0x1ddaa1['shift']());}catch(_0x1becfb){_0x1ddaa1['push'](_0x1ddaa1['shift']());}}}(_0x1ac1,0xdd4b8));function _0x1ac1(){const _0x29cf04=['isTrackChangesOn','set','8bEaosO','_switchButtonLabelsPlurality','AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL','AI_CHAT_SUGGESTION_ACTION_SUGGEST','fire','AI_SUGGESTION_DISABLED_FEED_MESSAGE','159604LjzZeY','updateVisibility','ck-ai-chat__feed__suggestion__actions__info','AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE','ck-ai-chat__feed__ai-suggestion__actions','AI_CHAT_SUGGESTION_ACTION_APPLY_ALL','div','_applyChangesButton','forEach','button','label','803975yzDMma','ck-ai-button-secondary','ck-hidden','execute','512184LMcfRU','addMany','change:isTrackChangesOn','AI_CHAT_SUGGESTION_ACTION_APPLY','bindTemplate','9002378LlVFMT','createCollection','add','2005355YbmDob','insertSuggestion','locale','includes','isEnabled','isVisible','_insertSuggestionsButton','33XUeziw','children','5220132KvNjxN','applySuggestion','ck-ai-button-primary','bind','13227633liFfRP','setTemplate'];_0x1ac1=function(){return _0x29cf04;};return _0x1ac1();}function _0x342a(_0x564f34,_0x5e9c95){const _0x1ac1c0=_0x1ac1();return _0x342a=function(_0x342ae6,_0x1f04be){_0x342ae6=_0x342ae6-0x7d;let _0x592d39=_0x1ac1c0[_0x342ae6];return _0x592d39;},_0x342a(_0x564f34,_0x5e9c95);}import{ButtonView as _0x3f9f52,View as _0x162433}from'ckeditor5/src/ui.js';import{getTranslation as _0x322f65}from'../../../aicore/utils/common-translations.js';import{IconInfo as _0x4d42b7}from'ckeditor5/src/icons.js';export const AI_REPLY_ACTIONS=[_0x4c30c9(0x82),_0x4c30c9(0xa7)];export class AIChatFeedSuggestionItemActionsView extends _0x162433{[_0x4c30c9(0x96)];[_0x4c30c9(0x7e)];[_0x4c30c9(0x80)];constructor(_0x2b36eb,_0xccb96a=[...AI_REPLY_ACTIONS],_0x5151f7){const _0x23ca5b=_0x4c30c9;super(_0x2b36eb);const _0x37073b=this[_0x23ca5b(0xa2)],_0x31e60c=Boolean(_0x5151f7);if(this[_0x23ca5b(0x88)](_0x23ca5b(0xaa),!_0x31e60c),this[_0x23ca5b(0x88)](_0x23ca5b(0x7d),!0x1),this[_0x23ca5b(0x88)](_0x23ca5b(0x87),!0x1),this[_0x23ca5b(0x80)]=this[_0x23ca5b(0xa4)](),_0x31e60c){const _0x12959d=new _0x3f9f52(_0x2b36eb);_0x12959d[_0x23ca5b(0x88)]({'label':_0x322f65(_0x2b36eb,_0x23ca5b(0x92)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x4d42b7});const _0x4a35c4=new _0x162433(_0x2b36eb);_0x4a35c4[_0x23ca5b(0x86)]({'tag':_0x23ca5b(0x95),'attributes':{'class':_0x23ca5b(0x91)},'children':[{'tag':'p','children':[_0x322f65(_0x2b36eb,_0x23ca5b(0x8e)),_0x12959d]}]}),this[_0x23ca5b(0x80)][_0x23ca5b(0xa5)](_0x4a35c4);}else this[_0x23ca5b(0x96)]=new _0x3f9f52(_0x2b36eb),this[_0x23ca5b(0x96)][_0x23ca5b(0x88)]({'label':_0x322f65(_0x2b36eb,_0x23ca5b(0x94)),'withText':!0x0,'type':_0x23ca5b(0x98),'isVisible':_0xccb96a[_0x23ca5b(0xa9)](_0x23ca5b(0x82)),'class':_0x23ca5b(0x83)}),this[_0x23ca5b(0x7e)]=new _0x3f9f52(_0x2b36eb),this[_0x23ca5b(0x7e)][_0x23ca5b(0x88)]({'label':_0x322f65(_0x2b36eb,_0x23ca5b(0x8b)),'withText':!0x0,'type':_0x23ca5b(0x98),'isVisible':_0xccb96a[_0x23ca5b(0xa9)](_0x23ca5b(0xa7)),'class':_0x23ca5b(0x9b)}),this[_0x23ca5b(0x7e)]['on'](_0x23ca5b(0x9d),()=>{const _0x55f89e=_0x23ca5b;this[_0x55f89e(0x8d)](_0x55f89e(0xa7));}),this[_0x23ca5b(0x96)]['on'](_0x23ca5b(0x9d),()=>{const _0xb9fd47=_0x23ca5b;this[_0xb9fd47(0x8d)](_0xb9fd47(0x82));}),[this[_0x23ca5b(0x96)],this[_0x23ca5b(0x7e)]][_0x23ca5b(0x97)](_0x21a861=>{const _0x8b9c7d=_0x23ca5b;_0x21a861[_0x8b9c7d(0x84)](_0x8b9c7d(0xaa))['to'](this);}),this[_0x23ca5b(0x80)][_0x23ca5b(0x9f)]([this[_0x23ca5b(0x96)],this[_0x23ca5b(0x7e)]]);this[_0x23ca5b(0x86)]({'tag':_0x23ca5b(0x95),'attributes':{'class':['ck',_0x23ca5b(0x93),_0x37073b['if'](_0x23ca5b(0x7d),_0x23ca5b(0x9c),_0x1437e0=>!_0x1437e0)]},'children':this[_0x23ca5b(0x80)]}),this['on'](_0x23ca5b(0xa0),()=>{const _0x96db80=_0x23ca5b;this[_0x96db80(0x96)]&&(this[_0x96db80(0x96)][_0x96db80(0x7d)]=!this[_0x96db80(0x87)]);});}[_0x4c30c9(0x90)](_0x316012){const _0x623466=_0x4c30c9;this[_0x623466(0x7d)]=_0x316012;}[_0x4c30c9(0x8a)](_0x4ae9fc){const _0x183b6d=_0x4c30c9;this[_0x183b6d(0x96)]&&this[_0x183b6d(0x7e)]&&(_0x4ae9fc?(this[_0x183b6d(0x96)][_0x183b6d(0x99)]=_0x322f65(this[_0x183b6d(0xa8)],_0x183b6d(0x94)),this[_0x183b6d(0x7e)][_0x183b6d(0x99)]=_0x322f65(this[_0x183b6d(0xa8)],_0x183b6d(0x8b))):(this[_0x183b6d(0x96)][_0x183b6d(0x99)]=_0x322f65(this[_0x183b6d(0xa8)],_0x183b6d(0xa1)),this[_0x183b6d(0x7e)][_0x183b6d(0x99)]=_0x322f65(this[_0x183b6d(0xa8)],_0x183b6d(0x8c))));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x275f90=_0x56c5;(function(_0x4b5f13,_0x41c282){var _0xd05cb3=_0x56c5,_0x30158f=_0x4b5f13();while(!![]){try{var _0x51f9ae=-parseInt(_0xd05cb3(0x1fe))/0x1+parseInt(_0xd05cb3(0x1fa))/0x2*(parseInt(_0xd05cb3(0x1fd))/0x3)+parseInt(_0xd05cb3(0x1f5))/0x4*(-parseInt(_0xd05cb3(0x1f7))/0x5)+-parseInt(_0xd05cb3(0x1f8))/0x6+parseInt(_0xd05cb3(0x200))/0x7+-parseInt(_0xd05cb3(0x1fb))/0x8*(parseInt(_0xd05cb3(0x1f6))/0x9)+-parseInt(_0xd05cb3(0x1fc))/0xa*(-parseInt(_0xd05cb3(0x1f9))/0xb);if(_0x51f9ae===_0x41c282)break;else _0x30158f['push'](_0x30158f['shift']());}catch(_0x451951){_0x30158f['push'](_0x30158f['shift']());}}}(_0x31ad,0x389cf));import{ContextPlugin as _0x3d3458}from'ckeditor5/src/core.js';function _0x31ad(){var _0x1023d7=['47760XpUSts','67342ECRrsO','6aKWJjH','113752KALXQM','590HGGnea','405378mlsCgL','262756QgMecN','AIChatHistory','2463419zEMHTX','pluginName','requires','isPremiumPlugin','isOfficialPlugin','4scTMHn','171xLNVoW','1728645RQfsFe'];_0x31ad=function(){return _0x1023d7;};return _0x31ad();}import{AIChatHistoryController as _0x3ac73d}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x5f5417}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';function _0x56c5(_0x112351,_0x515364){var _0x31ad03=_0x31ad();return _0x56c5=function(_0x56c598,_0x2f32c5){_0x56c598=_0x56c598-0x1f2;var _0x4f9c6b=_0x31ad03[_0x56c598];return _0x4f9c6b;},_0x56c5(_0x112351,_0x515364);}export class AIChatHistory extends _0x3d3458{static get[_0x275f90(0x1f2)](){return[_0x3ac73d,_0x5f5417];}static get[_0x275f90(0x201)](){var _0x5ea6a4=_0x275f90;return _0x5ea6a4(0x1ff);}static get[_0x275f90(0x1f4)](){return!0x0;}static get[_0x275f90(0x1f3)](){return!0x0;}}
23
+ var _0x281e4b=_0x20d0;(function(_0x1dcbe5,_0x3d4331){var _0x3163b7=_0x20d0,_0x292a87=_0x1dcbe5();while(!![]){try{var _0x5b204e=parseInt(_0x3163b7(0xac))/0x1+parseInt(_0x3163b7(0xb3))/0x2+-parseInt(_0x3163b7(0xaa))/0x3+parseInt(_0x3163b7(0xb5))/0x4*(-parseInt(_0x3163b7(0xb1))/0x5)+parseInt(_0x3163b7(0xa9))/0x6*(parseInt(_0x3163b7(0xab))/0x7)+parseInt(_0x3163b7(0xae))/0x8+parseInt(_0x3163b7(0xad))/0x9;if(_0x5b204e===_0x3d4331)break;else _0x292a87['push'](_0x292a87['shift']());}catch(_0xf31505){_0x292a87['push'](_0x292a87['shift']());}}}(_0xf6b9,0x816a5));import{ContextPlugin as _0x2ef457}from'ckeditor5/src/core.js';function _0xf6b9(){var _0x55ff3e=['70kJbdxM','AIChatHistory','799050KscTlA','pluginName','259780GnnpLH','isPremiumPlugin','15666idoJLS','1668558YaFhcv','406qxVdbV','516581eQYVTK','761904eMHMRK','6746408TjySsa','isOfficialPlugin','requires'];_0xf6b9=function(){return _0x55ff3e;};return _0xf6b9();}import{AIChatHistoryController as _0x58154c}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x5f3501}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';function _0x20d0(_0x31e81b,_0x27db8a){var _0xf6b974=_0xf6b9();return _0x20d0=function(_0x20d086,_0x319d53){_0x20d086=_0x20d086-0xa8;var _0x4ae51b=_0xf6b974[_0x20d086];return _0x4ae51b;},_0x20d0(_0x31e81b,_0x27db8a);}export class AIChatHistory extends _0x2ef457{static get[_0x281e4b(0xb0)](){return[_0x58154c,_0x5f3501];}static get[_0x281e4b(0xb4)](){var _0x3c6a83=_0x281e4b;return _0x3c6a83(0xb2);}static get[_0x281e4b(0xaf)](){return!0x0;}static get[_0x281e4b(0xa8)](){return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x578da4=_0x4d33;(function(_0x2d33a6,_0x94619){const _0x14b83f=_0x4d33,_0x27caa6=_0x2d33a6();while(!![]){try{const _0x3ef191=-parseInt(_0x14b83f(0x117))/0x1*(parseInt(_0x14b83f(0x13c))/0x2)+parseInt(_0x14b83f(0x14c))/0x3+parseInt(_0x14b83f(0x139))/0x4*(-parseInt(_0x14b83f(0x13b))/0x5)+parseInt(_0x14b83f(0x15d))/0x6+-parseInt(_0x14b83f(0x135))/0x7+-parseInt(_0x14b83f(0x150))/0x8*(-parseInt(_0x14b83f(0x11e))/0x9)+parseInt(_0x14b83f(0x12e))/0xa;if(_0x3ef191===_0x94619)break;else _0x27caa6['push'](_0x27caa6['shift']());}catch(_0x24d5d0){_0x27caa6['push'](_0x27caa6['shift']());}}}(_0x7d0c,0x5d9d6));import{ContextPlugin as _0x37e0ad}from'ckeditor5/src/core.js';import{AIConnector as _0xb5195}from'../aicore/aiconnector.js';import{AIChatController as _0x35cf0d}from'../aichat/aichatcontroller.js';function _0x7d0c(){const _0x345275=['AI_CHAT_HISTORY_ERROR_GENERIC','map','2498466CPKcUl','loadConversation','AI_CHAT_UNTITLED_CONVERSATION','itemId','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_HISTORY_CATEGORY_TODAY','itemsLoaded','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','_showConversationHistory','loadItems','openChat','_handleEditTitle','pluginName','updateItems','listenTo','setDate','removeHistoryItem','_getCategorizedItems','pinned','createdAt','selectConversation','remove','setConversationPinned','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','title','removeItem','getDate','get','editConversationTitle','getGroupId','updateItemLoadingState','_aiChatHistoryUi','15308TdWHvJ','requires','_setItemLoading','AIChatHistoryController','getFullYear','locale','AI_CHAT_HISTORY_CATEGORY_LATER','5130711VSDzUH','activateTab:history','plugins','init','view','_aiChatController','_handleTogglePin','isPremiumPlugin','_updateHistoryItemsUI','change:activeConversation','updateItemPinned','_handleRemove','items','context','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','push','2996990emkJGw','setLoadingSkeleton','history','_clearItemLoading','itemUpdated','error','_generateErrorMessage','2914324UmrcfF','resizeTabs','_setIsMaximized','unpin','1736mBUOAp','showError','3505fTiNuI','36uHycNQ','isOfficialPlugin','pin','updateItemTitle','toLocaleDateString','getItems','removeConversation','length','rename','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','getItem','activeConversation','activateTab','_handleHistoryErrorUI','280101ASZosP','chat','operation','resize','8yRajdh','_handleSelectConversation','resizedTabs','AI_CHAT_HISTORY_UNPIN_ACTION','itemRemoved','getMonth','updates','setIsMaximized','_aiConnector','AI_CHAT_HISTORY_CATEGORY_PINNED','handleRemovedConversation'];_0x7d0c=function(){return _0x345275;};return _0x7d0c();}import{AITabs as _0x376ee0}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x536f15}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x2daedf}from'./model/aichathistoryconversations.js';function _0x4d33(_0x208e42,_0x234cd8){const _0x7d0c3f=_0x7d0c();return _0x4d33=function(_0x4d3339,_0x973578){_0x4d3339=_0x4d3339-0x10d;let _0x4fd697=_0x7d0c3f[_0x4d3339];return _0x4fd697;},_0x4d33(_0x208e42,_0x234cd8);}import{getTranslation as _0x899638}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x37e0ad{[_0x578da4(0x158)];[_0x578da4(0x116)];[_0x578da4(0x123)];static get[_0x578da4(0x118)](){return[_0xb5195,_0x35cf0d,_0x536f15,_0x376ee0];}static get[_0x578da4(0x169)](){const _0x42553b=_0x578da4;return _0x42553b(0x11a);}static get[_0x578da4(0x13d)](){return!0x0;}static get[_0x578da4(0x125)](){return!0x0;}[_0x578da4(0x121)](){const _0x22abb8=_0x578da4;this[_0x22abb8(0x158)]=this[_0x22abb8(0x12b)][_0x22abb8(0x120)][_0x22abb8(0x112)](_0xb5195),this[_0x22abb8(0x116)]=this[_0x22abb8(0x12b)][_0x22abb8(0x120)][_0x22abb8(0x112)](_0x536f15),this[_0x22abb8(0x123)]=this[_0x22abb8(0x12b)][_0x22abb8(0x120)][_0x22abb8(0x112)](_0x35cf0d);const _0x404e3b=this[_0x22abb8(0x12b)][_0x22abb8(0x120)][_0x22abb8(0x112)](_0x376ee0);try{const _0x4fe3b5=this[_0x22abb8(0x123)][_0x22abb8(0x114)]();this[_0x22abb8(0x130)]=new _0x2daedf({'connector':this[_0x22abb8(0x158)],'group':_0x4fe3b5}),this[_0x22abb8(0x16b)](this[_0x22abb8(0x116)],_0x22abb8(0x142),(_0xafa749,_0x3cb423)=>{const _0x49f8cf=_0x22abb8;this[_0x49f8cf(0x119)](_0x3cb423['id'],_0x49f8cf(0x172)),this[_0x49f8cf(0x129)](_0x3cb423['id']);}),this[_0x22abb8(0x16b)](this[_0x22abb8(0x116)],_0x22abb8(0x113),(_0x25bff5,_0x490bdb)=>{const _0x35dbaf=_0x22abb8;this[_0x35dbaf(0x119)](_0x490bdb['id'],_0x35dbaf(0x144)),this[_0x35dbaf(0x168)](_0x490bdb['id'],_0x490bdb[_0x35dbaf(0x10f)]);}),this[_0x22abb8(0x16b)](this[_0x22abb8(0x130)],_0x22abb8(0x132),(_0x329785,_0x506265)=>{const _0x59b8f9=_0x22abb8;void 0x0!==_0x506265[_0x59b8f9(0x156)][_0x59b8f9(0x10f)]&&this[_0x59b8f9(0x116)][_0x59b8f9(0x13f)](_0x506265[_0x59b8f9(0x160)],_0x506265[_0x59b8f9(0x156)][_0x59b8f9(0x10f)]),void 0x0!==_0x506265[_0x59b8f9(0x156)][_0x59b8f9(0x16f)]&&this[_0x59b8f9(0x126)](),this[_0x59b8f9(0x131)](_0x506265[_0x59b8f9(0x160)]);}),this[_0x22abb8(0x16b)](this[_0x22abb8(0x130)],_0x22abb8(0x154),(_0x31f0ce,_0x68ee3)=>{const _0x1a6c27=_0x22abb8;this[_0x1a6c27(0x123)][_0x1a6c27(0x15a)](_0x68ee3[_0x1a6c27(0x160)]),this[_0x1a6c27(0x116)][_0x1a6c27(0x16d)](_0x68ee3[_0x1a6c27(0x160)]),this[_0x1a6c27(0x131)](_0x68ee3[_0x1a6c27(0x160)]);}),this[_0x22abb8(0x16b)](this[_0x22abb8(0x130)],_0x22abb8(0x163),()=>{const _0x45d782=_0x22abb8;this[_0x45d782(0x126)]();}),this[_0x22abb8(0x16b)](this[_0x22abb8(0x130)],_0x22abb8(0x133),(_0x416511,_0x585955)=>{const _0x4f2bcc=_0x22abb8;this[_0x4f2bcc(0x14b)](_0x585955[_0x4f2bcc(0x133)],_0x585955[_0x4f2bcc(0x14e)],_0x585955[_0x4f2bcc(0x160)]);}),this[_0x22abb8(0x16b)](this[_0x22abb8(0x116)],_0x22abb8(0x171),(_0x4a51b6,_0x1f5fe2)=>{const _0x27e62f=_0x22abb8;this[_0x27e62f(0x151)](_0x1f5fe2['id']);}),this[_0x22abb8(0x16b)](this[_0x22abb8(0x116)],_0x22abb8(0x10d),(_0x2c6f9f,_0x188540)=>{const _0x496e43=_0x22abb8,_0x227f20=_0x188540[_0x496e43(0x16f)]?_0x496e43(0x13e):_0x496e43(0x138);this[_0x496e43(0x119)](_0x188540['id'],_0x227f20),this[_0x496e43(0x124)](_0x188540['id'],_0x188540[_0x496e43(0x16f)]);}),this[_0x22abb8(0x16b)](this[_0x22abb8(0x116)],_0x22abb8(0x167),()=>{const _0xd6b564=_0x22abb8;_0x404e3b[_0xd6b564(0x122)][_0xd6b564(0x14a)](_0xd6b564(0x14d));}),this[_0x22abb8(0x16b)](this[_0x22abb8(0x123)],_0x22abb8(0x127),()=>{const _0x3a61fc=_0x22abb8;this[_0x3a61fc(0x126)]();}),_0x404e3b[_0x22abb8(0x122)]['on'](_0x22abb8(0x11f),()=>{const _0xd291c2=_0x22abb8;this[_0xd291c2(0x165)]();}),this[_0x22abb8(0x16b)](_0x404e3b,_0x22abb8(0x152),(_0x5e1c02,_0x110955)=>{const _0x565253=_0x22abb8;this[_0x565253(0x137)](_0x110955);}),this[_0x22abb8(0x16b)](this[_0x22abb8(0x116)],_0x22abb8(0x136),()=>{const _0x127497=_0x22abb8;_0x404e3b[_0x127497(0x14f)]();});}catch(_0x8b451b){this[_0x22abb8(0x14b)](_0x8b451b,_0x22abb8(0x121));}}async[_0x578da4(0x168)](_0x2c3574,_0x25f6b5){const _0x1d822f=_0x578da4;await this[_0x1d822f(0x130)][_0x1d822f(0x13f)](_0x2c3574,_0x25f6b5);}async[_0x578da4(0x124)](_0xe38fd2,_0x3250b2){const _0x1edc61=_0x578da4;await this[_0x1edc61(0x130)][_0x1edc61(0x128)](_0xe38fd2,_0x3250b2);}async[_0x578da4(0x129)](_0xcf47cb){const _0x3087e4=_0x578da4;await this[_0x3087e4(0x130)][_0x3087e4(0x110)](_0xcf47cb);}async[_0x578da4(0x151)](_0x21d4f1){const _0x38f521=_0x578da4;await this[_0x38f521(0x123)][_0x38f521(0x15e)](_0x21d4f1);}async[_0x578da4(0x165)](){const _0x8446d=_0x578da4;this[_0x8446d(0x116)][_0x8446d(0x13a)](''),this[_0x8446d(0x116)][_0x8446d(0x12f)](!0x0),await this[_0x8446d(0x130)][_0x8446d(0x121)](),this[_0x8446d(0x116)][_0x8446d(0x12f)](!0x1);}[_0x578da4(0x126)](){const _0x223b98=_0x578da4,_0xb4d374=this[_0x223b98(0x123)][_0x223b98(0x149)]?.['id'],_0x5e56c5=this[_0x223b98(0x16e)]()[_0x223b98(0x15c)](_0x46ce6d=>({'title':_0x46ce6d[_0x223b98(0x10f)],'items':_0x46ce6d[_0x223b98(0x12a)][_0x223b98(0x15c)](_0x49b1c9=>({'id':_0x49b1c9['id'],'title':_0x49b1c9[_0x223b98(0x10f)]||_0x899638(this[_0x223b98(0x12b)][_0x223b98(0x11c)],_0x223b98(0x15f)),'createdAt':new Date(_0x49b1c9[_0x223b98(0x170)])[_0x223b98(0x140)](),'active':_0x49b1c9['id']===_0xb4d374,'pinned':_0x49b1c9[_0x223b98(0x16f)]}))}));this[_0x223b98(0x116)][_0x223b98(0x16a)](_0x5e56c5);}[_0x578da4(0x119)](_0x4d51c,_0x2414bc){const _0x214fd8=_0x578da4;this[_0x214fd8(0x116)][_0x214fd8(0x115)](_0x4d51c,_0x2414bc,!0x0);}[_0x578da4(0x131)](_0x2b4bc1){const _0x18aaf7=_0x578da4;this[_0x18aaf7(0x116)][_0x18aaf7(0x115)](_0x2b4bc1,null,!0x1);}[_0x578da4(0x14b)](_0x472c8d,_0x5ba41f,_0x42406c){const _0x42f92c=_0x578da4,_0x2cf9bf=this[_0x42f92c(0x134)](_0x5ba41f,_0x42406c);this[_0x42f92c(0x116)][_0x42f92c(0x13a)](_0x2cf9bf),_0x42406c&&this[_0x42f92c(0x131)](_0x42406c),this[_0x42f92c(0x116)][_0x42f92c(0x12f)](!0x1);}[_0x578da4(0x134)](_0x49a7c9,_0x249755){const _0x418a81=_0x578da4,_0x232def=_0x249755?this[_0x418a81(0x130)][_0x418a81(0x148)](_0x249755):null,_0x27370f=_0x232def?.[_0x418a81(0x10f)]||_0x899638(this[_0x418a81(0x12b)][_0x418a81(0x11c)],_0x418a81(0x15f));switch(_0x49a7c9){case _0x418a81(0x13f):return _0x899638(this[_0x418a81(0x12b)][_0x418a81(0x11c)],_0x418a81(0x145),_0x27370f);case _0x418a81(0x128):{const _0x3d9e48=_0x899638(this[_0x418a81(0x12b)][_0x418a81(0x11c)],_0x232def?.[_0x418a81(0x16f)]?_0x418a81(0x153):_0x418a81(0x161));return _0x899638(this[_0x418a81(0x12b)][_0x418a81(0x11c)],_0x418a81(0x10e),[_0x3d9e48,_0x27370f]);}case _0x418a81(0x110):return _0x899638(this[_0x418a81(0x12b)][_0x418a81(0x11c)],_0x418a81(0x146),_0x27370f);case _0x418a81(0x121):case _0x418a81(0x166):return _0x899638(this[_0x418a81(0x12b)][_0x418a81(0x11c)],_0x418a81(0x12c));default:return _0x899638(this[_0x418a81(0x12b)][_0x418a81(0x11c)],_0x418a81(0x15b));}}[_0x578da4(0x16e)](){const _0x5e6cc2=_0x578da4,_0xd6a478=new Date(),_0x5afe38=new Date(_0xd6a478[_0x5e6cc2(0x11b)](),_0xd6a478[_0x5e6cc2(0x155)](),_0xd6a478[_0x5e6cc2(0x111)]()),_0x30c6c0=new Date(_0x5afe38);_0x30c6c0[_0x5e6cc2(0x16c)](_0x30c6c0[_0x5e6cc2(0x111)]()-0x1);const _0x53640c=new Date(_0x5afe38);_0x53640c[_0x5e6cc2(0x16c)](_0x53640c[_0x5e6cc2(0x111)]()-0xe);const _0x2472c5=this[_0x5e6cc2(0x130)][_0x5e6cc2(0x141)]({'pinned':!0x0}),_0x54f72a=this[_0x5e6cc2(0x130)][_0x5e6cc2(0x141)]({'from':_0x5afe38,'to':_0x5afe38}),_0x6f1ede=this[_0x5e6cc2(0x130)][_0x5e6cc2(0x141)]({'from':_0x30c6c0,'to':_0x30c6c0}),_0x2f6c64=this[_0x5e6cc2(0x130)][_0x5e6cc2(0x141)]({'from':_0x53640c,'to':_0x30c6c0}),_0x2c858a=this[_0x5e6cc2(0x130)][_0x5e6cc2(0x141)]({'to':_0x53640c}),_0x44ede2=[];return _0x2472c5[_0x5e6cc2(0x143)]>0x0&&_0x44ede2[_0x5e6cc2(0x12d)]({'title':_0x899638(this[_0x5e6cc2(0x12b)][_0x5e6cc2(0x11c)],_0x5e6cc2(0x159)),'items':_0x2472c5}),_0x54f72a[_0x5e6cc2(0x143)]>0x0&&_0x44ede2[_0x5e6cc2(0x12d)]({'title':_0x899638(this[_0x5e6cc2(0x12b)][_0x5e6cc2(0x11c)],_0x5e6cc2(0x162)),'items':_0x54f72a}),_0x6f1ede[_0x5e6cc2(0x143)]>0x0&&_0x44ede2[_0x5e6cc2(0x12d)]({'title':_0x899638(this[_0x5e6cc2(0x12b)][_0x5e6cc2(0x11c)],_0x5e6cc2(0x164)),'items':_0x6f1ede}),_0x2f6c64[_0x5e6cc2(0x143)]>0x0&&_0x44ede2[_0x5e6cc2(0x12d)]({'title':_0x899638(this[_0x5e6cc2(0x12b)][_0x5e6cc2(0x11c)],_0x5e6cc2(0x147)),'items':_0x2f6c64}),_0x2c858a[_0x5e6cc2(0x143)]>0x0&&_0x44ede2[_0x5e6cc2(0x12d)]({'title':_0x899638(this[_0x5e6cc2(0x12b)][_0x5e6cc2(0x11c)],_0x5e6cc2(0x11d)),'items':_0x2c858a}),_0x44ede2;}[_0x578da4(0x137)](_0x4430ae){const _0x2c8c5b=_0x578da4;this[_0x2c8c5b(0x116)][_0x2c8c5b(0x157)](_0x4430ae);}}
23
+ const _0x18c346=_0x1c09;(function(_0x34f6a9,_0x4e70c9){const _0x21410f=_0x1c09,_0x2f0554=_0x34f6a9();while(!![]){try{const _0x590f05=parseInt(_0x21410f(0x1c7))/0x1*(parseInt(_0x21410f(0x1e1))/0x2)+-parseInt(_0x21410f(0x1c0))/0x3+parseInt(_0x21410f(0x1e5))/0x4*(-parseInt(_0x21410f(0x1f3))/0x5)+-parseInt(_0x21410f(0x212))/0x6*(-parseInt(_0x21410f(0x1f4))/0x7)+-parseInt(_0x21410f(0x20b))/0x8*(-parseInt(_0x21410f(0x1c8))/0x9)+-parseInt(_0x21410f(0x208))/0xa+parseInt(_0x21410f(0x1cd))/0xb;if(_0x590f05===_0x4e70c9)break;else _0x2f0554['push'](_0x2f0554['shift']());}catch(_0x4c3747){_0x2f0554['push'](_0x2f0554['shift']());}}}(_0x5356,0xa0668));import{ContextPlugin as _0x235366}from'ckeditor5/src/core.js';function _0x5356(){const _0x23e55e=['updateItemLoadingState','history','change:activeConversation','push','get','_handleTogglePin','removeConversation','AI_CHAT_HISTORY_CATEGORY_LATER','2YmaFAl','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','createdAt','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','12gqaxSm','unpin','_clearItemLoading','remove','_getCategorizedItems','pluginName','toLocaleDateString','resizeTabs','_updateHistoryItemsUI','requires','getItem','setConversationPinned','rename','_handleEditTitle','1311020xFVxvq','600054alOFlM','loadItems','AI_CHAT_HISTORY_ERROR_GENERIC','locale','itemRemoved','itemId','getMonth','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','openChat','itemUpdated','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','updates','_aiChatHistoryUi','AI_CHAT_HISTORY_UNPIN_ACTION','isPremiumPlugin','chat','context','AIChatHistoryController','removeHistoryItem','_generateErrorMessage','3161260ltmrFg','init','items','144152HcNNlZ','_showConversationHistory','error','updateItemPinned','selectConversation','itemsLoaded','pinned','72VNPTeG','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','setIsMaximized','activeConversation','plugins','setDate','getGroupId','_setIsMaximized','operation','resize','handleRemovedConversation','_handleHistoryErrorUI','activateTab','map','editConversationTitle','AI_CHAT_UNTITLED_CONVERSATION','showError','AI_CHAT_HISTORY_CATEGORY_TODAY','length','setLoadingSkeleton','AI_CHAT_HISTORY_CATEGORY_PINNED','691056qDHHNV','_aiConnector','_handleSelectConversation','_aiChatController','removeItem','isOfficialPlugin','AI_CHAT_HISTORY_PIN_ACTION','372630XhOeco','153dzUDXD','_setItemLoading','view','title','getFullYear','3107203fDHJsn','getDate','updateItemTitle','pin','listenTo','getItems','activateTab:history','updateItems','resizedTabs','loadConversation','_handleRemove','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM'];_0x5356=function(){return _0x23e55e;};return _0x5356();}import{AIConnector as _0x1e7b1e}from'../aicore/aiconnector.js';import{AIChatController as _0x3656fc}from'../aichat/aichatcontroller.js';import{AITabs as _0xec624}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x4d5cd5}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x592a4f}from'./model/aichathistoryconversations.js';import{getTranslation as _0x32515e}from'../aicore/utils/common-translations.js';function _0x1c09(_0x10d5c5,_0x2fce83){const _0x5356de=_0x5356();return _0x1c09=function(_0x1c092a,_0x2d2654){_0x1c092a=_0x1c092a-0x1b7;let _0x57f8e0=_0x5356de[_0x1c092a];return _0x57f8e0;},_0x1c09(_0x10d5c5,_0x2fce83);}export class AIChatHistoryController extends _0x235366{[_0x18c346(0x1c1)];[_0x18c346(0x200)];[_0x18c346(0x1c3)];static get[_0x18c346(0x1ee)](){return[_0x1e7b1e,_0x3656fc,_0x4d5cd5,_0xec624];}static get[_0x18c346(0x1ea)](){const _0x2254cf=_0x18c346;return _0x2254cf(0x205);}static get[_0x18c346(0x1c5)](){return!0x0;}static get[_0x18c346(0x202)](){return!0x0;}[_0x18c346(0x209)](){const _0x43147c=_0x18c346;this[_0x43147c(0x1c1)]=this[_0x43147c(0x204)][_0x43147c(0x216)][_0x43147c(0x1dd)](_0x1e7b1e),this[_0x43147c(0x200)]=this[_0x43147c(0x204)][_0x43147c(0x216)][_0x43147c(0x1dd)](_0x4d5cd5),this[_0x43147c(0x1c3)]=this[_0x43147c(0x204)][_0x43147c(0x216)][_0x43147c(0x1dd)](_0x3656fc);const _0x33f4c4=this[_0x43147c(0x204)][_0x43147c(0x216)][_0x43147c(0x1dd)](_0xec624);try{const _0x213c6b=this[_0x43147c(0x1c3)][_0x43147c(0x218)]();this[_0x43147c(0x1da)]=new _0x592a4f({'connector':this[_0x43147c(0x1c1)],'group':_0x213c6b}),this[_0x43147c(0x1d1)](this[_0x43147c(0x200)],_0x43147c(0x1df),(_0x2a86d9,_0x20ef7d)=>{const _0x22116a=_0x43147c;this[_0x22116a(0x1c9)](_0x20ef7d['id'],_0x22116a(0x1e8)),this[_0x22116a(0x1d7)](_0x20ef7d['id']);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x200)],_0x43147c(0x1b9),(_0xfc4837,_0x504e5a)=>{const _0x24f759=_0x43147c;this[_0x24f759(0x1c9)](_0x504e5a['id'],_0x24f759(0x1f1)),this[_0x24f759(0x1f2)](_0x504e5a['id'],_0x504e5a[_0x24f759(0x1cb)]);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x1da)],_0x43147c(0x1fd),(_0xd096fa,_0x2a03d9)=>{const _0x55c9f2=_0x43147c;void 0x0!==_0x2a03d9[_0x55c9f2(0x1ff)][_0x55c9f2(0x1cb)]&&this[_0x55c9f2(0x200)][_0x55c9f2(0x1cf)](_0x2a03d9[_0x55c9f2(0x1f9)],_0x2a03d9[_0x55c9f2(0x1ff)][_0x55c9f2(0x1cb)]),void 0x0!==_0x2a03d9[_0x55c9f2(0x1ff)][_0x55c9f2(0x211)]&&this[_0x55c9f2(0x1ed)](),this[_0x55c9f2(0x1e7)](_0x2a03d9[_0x55c9f2(0x1f9)]);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x1da)],_0x43147c(0x1f8),(_0x28fc24,_0x5edcea)=>{const _0x2e26d9=_0x43147c;this[_0x2e26d9(0x1c3)][_0x2e26d9(0x21c)](_0x5edcea[_0x2e26d9(0x1f9)]),this[_0x2e26d9(0x200)][_0x2e26d9(0x206)](_0x5edcea[_0x2e26d9(0x1f9)]),this[_0x2e26d9(0x1e7)](_0x5edcea[_0x2e26d9(0x1f9)]);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x1da)],_0x43147c(0x210),()=>{const _0x25cc06=_0x43147c;this[_0x25cc06(0x1ed)]();}),this[_0x43147c(0x1d1)](this[_0x43147c(0x1da)],_0x43147c(0x20d),(_0x69bbf1,_0x19c0c3)=>{const _0x17b28c=_0x43147c;this[_0x17b28c(0x21d)](_0x19c0c3[_0x17b28c(0x20d)],_0x19c0c3[_0x17b28c(0x21a)],_0x19c0c3[_0x17b28c(0x1f9)]);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x200)],_0x43147c(0x20f),(_0x531b48,_0x539768)=>{const _0x4e6704=_0x43147c;this[_0x4e6704(0x1c2)](_0x539768['id']);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x200)],_0x43147c(0x1f0),(_0x3ffc65,_0x547107)=>{const _0x411a74=_0x43147c,_0x495ac0=_0x547107[_0x411a74(0x211)]?_0x411a74(0x1d0):_0x411a74(0x1e6);this[_0x411a74(0x1c9)](_0x547107['id'],_0x495ac0),this[_0x411a74(0x1de)](_0x547107['id'],_0x547107[_0x411a74(0x211)]);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x200)],_0x43147c(0x1fc),()=>{const _0x11c652=_0x43147c;_0x33f4c4[_0x11c652(0x1ca)][_0x11c652(0x1b7)](_0x11c652(0x203));}),this[_0x43147c(0x1d1)](this[_0x43147c(0x1c3)],_0x43147c(0x1db),()=>{const _0x4b1b61=_0x43147c;this[_0x4b1b61(0x1ed)]();}),_0x33f4c4[_0x43147c(0x1ca)]['on'](_0x43147c(0x1d3),()=>{const _0x10cb33=_0x43147c;this[_0x10cb33(0x20c)]();}),this[_0x43147c(0x1d1)](_0x33f4c4,_0x43147c(0x1d5),(_0x31370e,_0x1ae298)=>{const _0x5ecfd5=_0x43147c;this[_0x5ecfd5(0x219)](_0x1ae298);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x200)],_0x43147c(0x1ec),()=>{const _0x39d16f=_0x43147c;_0x33f4c4[_0x39d16f(0x21b)]();});}catch(_0x1ced35){this[_0x43147c(0x21d)](_0x1ced35,_0x43147c(0x209));}}async[_0x18c346(0x1f2)](_0x285e57,_0x281ff6){const _0x2ff382=_0x18c346;await this[_0x2ff382(0x1da)][_0x2ff382(0x1cf)](_0x285e57,_0x281ff6);}async[_0x18c346(0x1de)](_0x3680e0,_0x5a427b){const _0x1fe6ab=_0x18c346;await this[_0x1fe6ab(0x1da)][_0x1fe6ab(0x20e)](_0x3680e0,_0x5a427b);}async[_0x18c346(0x1d7)](_0x8de623){const _0x34240b=_0x18c346;await this[_0x34240b(0x1da)][_0x34240b(0x1c4)](_0x8de623);}async[_0x18c346(0x1c2)](_0x2fc4c9){const _0x1ff312=_0x18c346;await this[_0x1ff312(0x1c3)][_0x1ff312(0x1d6)](_0x2fc4c9);}async[_0x18c346(0x20c)](){const _0x44366f=_0x18c346;this[_0x44366f(0x200)][_0x44366f(0x1bb)](''),this[_0x44366f(0x200)][_0x44366f(0x1be)](!0x0),await this[_0x44366f(0x1da)][_0x44366f(0x209)](),this[_0x44366f(0x200)][_0x44366f(0x1be)](!0x1);}[_0x18c346(0x1ed)](){const _0x57f826=_0x18c346,_0x58ac64=this[_0x57f826(0x1c3)][_0x57f826(0x215)]?.['id'],_0xcb5254=this[_0x57f826(0x1e9)]()[_0x57f826(0x1b8)](_0x81999c=>({'title':_0x81999c[_0x57f826(0x1cb)],'items':_0x81999c[_0x57f826(0x20a)][_0x57f826(0x1b8)](_0x5b8534=>({'id':_0x5b8534['id'],'title':_0x5b8534[_0x57f826(0x1cb)]||_0x32515e(this[_0x57f826(0x204)][_0x57f826(0x1f7)],_0x57f826(0x1ba)),'createdAt':new Date(_0x5b8534[_0x57f826(0x1e3)])[_0x57f826(0x1eb)](),'active':_0x5b8534['id']===_0x58ac64,'pinned':_0x5b8534[_0x57f826(0x211)]}))}));this[_0x57f826(0x200)][_0x57f826(0x1d4)](_0xcb5254);}[_0x18c346(0x1c9)](_0x497dfd,_0x2c4bb9){const _0x404900=_0x18c346;this[_0x404900(0x200)][_0x404900(0x1d9)](_0x497dfd,_0x2c4bb9,!0x0);}[_0x18c346(0x1e7)](_0xa0f48f){const _0x99e02c=_0x18c346;this[_0x99e02c(0x200)][_0x99e02c(0x1d9)](_0xa0f48f,null,!0x1);}[_0x18c346(0x21d)](_0x32cf56,_0x5b0355,_0x52fde9){const _0x77e84f=_0x18c346,_0x5efecb=this[_0x77e84f(0x207)](_0x5b0355,_0x52fde9);this[_0x77e84f(0x200)][_0x77e84f(0x1bb)](_0x5efecb),_0x52fde9&&this[_0x77e84f(0x1e7)](_0x52fde9),this[_0x77e84f(0x200)][_0x77e84f(0x1be)](!0x1);}[_0x18c346(0x207)](_0x50ebdb,_0x8567f0){const _0x387cd4=_0x18c346,_0x39dd71=_0x8567f0?this[_0x387cd4(0x1da)][_0x387cd4(0x1ef)](_0x8567f0):null,_0x28e15a=_0x39dd71?.[_0x387cd4(0x1cb)]||_0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x387cd4(0x1ba));switch(_0x50ebdb){case _0x387cd4(0x1cf):return _0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x387cd4(0x1fb),_0x28e15a);case _0x387cd4(0x20e):{const _0x566b4d=_0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x39dd71?.[_0x387cd4(0x211)]?_0x387cd4(0x201):_0x387cd4(0x1c6));return _0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x387cd4(0x1e4),[_0x566b4d,_0x28e15a]);}case _0x387cd4(0x1c4):return _0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x387cd4(0x1d8),_0x28e15a);case _0x387cd4(0x209):case _0x387cd4(0x1f5):return _0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x387cd4(0x213));default:return _0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x387cd4(0x1f6));}}[_0x18c346(0x1e9)](){const _0xe26a5e=_0x18c346,_0x3daa26=new Date(),_0x58e5db=new Date(_0x3daa26[_0xe26a5e(0x1cc)](),_0x3daa26[_0xe26a5e(0x1fa)](),_0x3daa26[_0xe26a5e(0x1ce)]()),_0x9d0baa=new Date(_0x58e5db);_0x9d0baa[_0xe26a5e(0x217)](_0x9d0baa[_0xe26a5e(0x1ce)]()-0x1);const _0x4edbd9=new Date(_0x58e5db);_0x4edbd9[_0xe26a5e(0x217)](_0x4edbd9[_0xe26a5e(0x1ce)]()-0xe);const _0x4a2280=this[_0xe26a5e(0x1da)][_0xe26a5e(0x1d2)]({'pinned':!0x0}),_0x3b33fe=this[_0xe26a5e(0x1da)][_0xe26a5e(0x1d2)]({'from':_0x58e5db,'to':_0x58e5db}),_0x45226e=this[_0xe26a5e(0x1da)][_0xe26a5e(0x1d2)]({'from':_0x9d0baa,'to':_0x9d0baa}),_0x31b6ef=this[_0xe26a5e(0x1da)][_0xe26a5e(0x1d2)]({'from':_0x4edbd9,'to':_0x9d0baa}),_0x553c76=this[_0xe26a5e(0x1da)][_0xe26a5e(0x1d2)]({'to':_0x4edbd9}),_0x477dfa=[];return _0x4a2280[_0xe26a5e(0x1bd)]>0x0&&_0x477dfa[_0xe26a5e(0x1dc)]({'title':_0x32515e(this[_0xe26a5e(0x204)][_0xe26a5e(0x1f7)],_0xe26a5e(0x1bf)),'items':_0x4a2280}),_0x3b33fe[_0xe26a5e(0x1bd)]>0x0&&_0x477dfa[_0xe26a5e(0x1dc)]({'title':_0x32515e(this[_0xe26a5e(0x204)][_0xe26a5e(0x1f7)],_0xe26a5e(0x1bc)),'items':_0x3b33fe}),_0x45226e[_0xe26a5e(0x1bd)]>0x0&&_0x477dfa[_0xe26a5e(0x1dc)]({'title':_0x32515e(this[_0xe26a5e(0x204)][_0xe26a5e(0x1f7)],_0xe26a5e(0x1e2)),'items':_0x45226e}),_0x31b6ef[_0xe26a5e(0x1bd)]>0x0&&_0x477dfa[_0xe26a5e(0x1dc)]({'title':_0x32515e(this[_0xe26a5e(0x204)][_0xe26a5e(0x1f7)],_0xe26a5e(0x1fe)),'items':_0x31b6ef}),_0x553c76[_0xe26a5e(0x1bd)]>0x0&&_0x477dfa[_0xe26a5e(0x1dc)]({'title':_0x32515e(this[_0xe26a5e(0x204)][_0xe26a5e(0x1f7)],_0xe26a5e(0x1e0)),'items':_0x553c76}),_0x477dfa;}[_0x18c346(0x219)](_0x21992d){const _0x34be62=_0x18c346;this[_0x34be62(0x200)][_0x34be62(0x214)](_0x21992d);}}