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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsreply.js +1 -1
  6. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  7. package/src/aiassistant/aiassistantediting.js +1 -1
  8. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  9. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  10. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  11. package/src/aiassistant/ui/form/aiformview.js +1 -1
  12. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  13. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  14. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  15. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  16. package/src/aiballoon/aiballoon.js +1 -1
  17. package/src/aichat/aichat.js +1 -1
  18. package/src/aichat/aichatballoon.js +1 -1
  19. package/src/aichat/aichatcontroller.js +1 -1
  20. package/src/aichat/aichatui.js +1 -1
  21. package/src/aichat/model/aichatcontext.js +1 -1
  22. package/src/aichat/model/aichatconversation.js +1 -1
  23. package/src/aichat/ui/aichatballoonview.js +1 -1
  24. package/src/aichat/ui/aichatfeedview.js +1 -1
  25. package/src/aichat/ui/aichatheaderview.js +1 -1
  26. package/src/aichat/ui/aichatview.js +1 -1
  27. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  28. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  29. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  30. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  31. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  32. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  33. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  34. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  35. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  36. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  37. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  38. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  39. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  40. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  41. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  42. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  43. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  44. package/src/aichat/utils/eventnames.js +1 -1
  45. package/src/aichathistory/aichathistory.js +1 -1
  46. package/src/aichathistory/aichathistorycontroller.js +1 -1
  47. package/src/aichathistory/aichathistoryui.js +1 -1
  48. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  49. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  50. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  51. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  52. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  53. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  54. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  55. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  56. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  57. package/src/aicore/aiconnector.js +1 -1
  58. package/src/aicore/aiediting.js +1 -1
  59. package/src/aicore/model/aimodels.js +1 -1
  60. package/src/aicore/model/aireply.js +1 -1
  61. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  62. package/src/aicore/pipeline/airesponseparser.js +2 -2
  63. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  64. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  65. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  66. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  67. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  68. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  69. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  70. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  71. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  72. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  73. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  74. package/src/aicore/utils/documentrange.js +1 -1
  75. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  76. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  77. package/src/aicore/utils/htmlparser.js +1 -1
  78. package/src/aicore/utils/htmlstreamer.js +1 -1
  79. package/src/aicore/utils/scrollmanager.js +1 -1
  80. package/src/aieditorintegration/aieditorintegration.js +1 -1
  81. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  82. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  83. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  84. package/src/aiquickactions/aiquickactionsui.js +1 -1
  85. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  86. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  87. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  88. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  89. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  90. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  91. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  92. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  93. package/src/aireviewcore/aireviewcoreui.js +1 -1
  94. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  95. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  96. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  97. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  98. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  99. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  100. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  101. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  102. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  103. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  104. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  105. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  106. package/src/aireviewmode/aireviewmode.js +1 -1
  107. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  108. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  109. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  110. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  111. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  112. package/src/aitabs/aitabs.js +1 -1
  113. package/src/aitranslate/aitranslate.js +1 -1
  114. package/src/aitranslate/model/aitranslatecheck.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47e56f=_0x21bf;(function(_0x4ad032,_0x5d1dd0){const _0x5b6b5a=_0x21bf,_0xcf1664=_0x4ad032();while(!![]){try{const _0x3e33c8=parseInt(_0x5b6b5a(0x14f))/0x1*(parseInt(_0x5b6b5a(0x163))/0x2)+parseInt(_0x5b6b5a(0x173))/0x3+-parseInt(_0x5b6b5a(0x16f))/0x4*(parseInt(_0x5b6b5a(0x18c))/0x5)+-parseInt(_0x5b6b5a(0x17d))/0x6*(parseInt(_0x5b6b5a(0x146))/0x7)+-parseInt(_0x5b6b5a(0x14b))/0x8*(-parseInt(_0x5b6b5a(0x153))/0x9)+parseInt(_0x5b6b5a(0x13b))/0xa+parseInt(_0x5b6b5a(0x138))/0xb*(-parseInt(_0x5b6b5a(0x145))/0xc);if(_0x3e33c8===_0x5d1dd0)break;else _0xcf1664['push'](_0xcf1664['shift']());}catch(_0x5ab2c6){_0xcf1664['push'](_0xcf1664['shift']());}}}(_0x1c81,0x6a0a7));import{FocusTracker as _0x30dd0d,KeystrokeHandler as _0x382819}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x366dfb}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x3ec9d0}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x1e5163}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x49c613}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x3edd7d,FocusCycler as _0x374a8d,View as _0x2538f5}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x12e2a2}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x5c1650,IconChevronUp as _0x5bb0d9}from'ckeditor5/src/icons.js';function _0x1c81(){const _0x162335=['addMany','full','_focusables','setState','_stateView','listenTo','div','showNext','change:isTrackChangesOn','applySuggestion','rejectSuggestion','AI_BALLOON_NEXT_LABEL','4162mNrQtq','ck-ai-chat-balloon-main_state_','bind','includes','updateContent','showError','_state','hideError','isTrackChangesOn','ck-ai-chat-balloon-main','_partToolbarView','execute','24YKssOM','delegate','isShowChangesOn','previousButtonView','2208681BElJUM','locale','focusCycler','fire','_createPreviousButtonView','focusFirst','_config','_isErrorVisible','update','showDiff','65922MnQdAf','focus','_errorView','_keystrokes','togglePartToolbarEnabled','_togglePartToolbarButtonsVisibility','render','isVisible','focusLast','_streamableContentView','element','tab','children','change:_state','availableActions','436675XbPtJi','pending','6039HDsJnl','toggleRotatorButtonsVisibility','_miniToolbarView','3722540zEjYls','_createNextButtonView','destroy','shift\x20+\x20tab','ck-ai-chat-balloon__toolbar-container','keepErrors','nextButtonView','set','toggleShowChanges','insertSuggestion','8628UwlcEZ','217IaPSFB','_focusTracker','_toolbarContainerView','bindTemplate','showBlockingError','56nObzpc','AI_BALLOON_PREVIOUS_LABEL','add','has','35faxsrw','isEnabled','toggleSuggestionDisplayMode','setButtonsVisibility','658755kFsInJ','showPrevious','createCollection','setTemplate'];_0x1c81=function(){return _0x162335;};return _0x1c81();}import{getTranslation as _0x5eca2f}from'../../aicore/utils/common-translations.js';function _0x21bf(_0x5ef6ee,_0x5da163){const _0x1c8149=_0x1c81();return _0x21bf=function(_0x21bf60,_0x350451){_0x21bf60=_0x21bf60-0x137;let _0x3f91e4=_0x1c8149[_0x21bf60];return _0x3f91e4;},_0x21bf(_0x5ef6ee,_0x5da163);}import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x49c613{[_0x47e56f(0x189)];[_0x47e56f(0x141)];[_0x47e56f(0x172)];[_0x47e56f(0x175)];[_0x47e56f(0x159)];[_0x47e56f(0x147)];[_0x47e56f(0x180)];[_0x47e56f(0x179)];[_0x47e56f(0x186)];[_0x47e56f(0x148)];[_0x47e56f(0x16d)];[_0x47e56f(0x15b)];[_0x47e56f(0x13a)];constructor(_0x574dfc,_0x2e37fb){const _0x1e3636=_0x47e56f;super(_0x574dfc);const _0x366546=this[_0x1e3636(0x149)];this[_0x1e3636(0x142)](_0x1e3636(0x17c),!0x1),this[_0x1e3636(0x142)](_0x1e3636(0x169),_0x1e3636(0x137)),this[_0x1e3636(0x147)]=new _0x30dd0d(),this[_0x1e3636(0x180)]=new _0x382819(),this[_0x1e3636(0x159)]=this[_0x1e3636(0x155)](),this[_0x1e3636(0x175)]=new _0x374a8d({'focusables':this[_0x1e3636(0x159)],'focusTracker':this[_0x1e3636(0x147)],'keystrokeHandler':this[_0x1e3636(0x180)],'actions':{'focusPrevious':_0x1e3636(0x13e),'focusNext':_0x1e3636(0x188)}}),this[_0x1e3636(0x179)]=_0x2e37fb,this[_0x1e3636(0x141)]=this[_0x1e3636(0x13c)](),this[_0x1e3636(0x172)]=this[_0x1e3636(0x177)](),this[_0x1e3636(0x186)]=new _0x366dfb(_0x574dfc),this[_0x1e3636(0x16d)]=new _0x3ec9d0(_0x574dfc,_0x2e37fb[_0x1e3636(0x18b)]),this[_0x1e3636(0x16d)][_0x1e3636(0x170)](_0x1e3636(0x160),_0x1e3636(0x144),_0x1e3636(0x161))['to'](this),this[_0x1e3636(0x182)](_0x2e37fb),this[_0x1e3636(0x15b)]=new _0x12e2a2(_0x574dfc),this[_0x1e3636(0x15b)][_0x1e3636(0x184)]=!0x1,this[_0x1e3636(0x13a)]=new _0x1e5163(_0x574dfc,{'showChanges':_0x1e3636(0x158)}),this[_0x1e3636(0x13a)][_0x1e3636(0x165)](_0x1e3636(0x171))['to'](this,_0x1e3636(0x17c)),this[_0x1e3636(0x13a)]['on'](_0x1e3636(0x143),()=>{const _0x215366=_0x1e3636;this[_0x215366(0x176)](_0x215366(0x151));}),this[_0x1e3636(0x148)]=new fs(_0x574dfc,[this[_0x1e3636(0x16d)],this[_0x1e3636(0x15b)],this[_0x1e3636(0x13a)]]),this[_0x1e3636(0x189)]=this[_0x1e3636(0x155)]([this[_0x1e3636(0x186)],this[_0x1e3636(0x148)]]),this['on'](_0x1e3636(0x18a),(_0xeaed20,_0x2a473c,_0x26e4a9,_0x5d5491)=>{const _0x24b12f=_0x1e3636;let _0x2548b8,_0x1dc631;_0x24b12f(0x137)===_0x5d5491?(_0x2548b8=this[_0x24b12f(0x16d)],_0x1dc631=this[_0x24b12f(0x15b)]):(_0x2548b8=this[_0x24b12f(0x15b)],_0x1dc631=this[_0x24b12f(0x16d)]),this[_0x24b12f(0x15b)][_0x24b12f(0x15a)](_0x26e4a9),_0x2548b8[_0x24b12f(0x184)]=!0x1,_0x1dc631[_0x24b12f(0x184)]=!0x0;}),this[_0x1e3636(0x156)]({'tag':_0x1e3636(0x15d),'attributes':{'class':['ck',_0x1e3636(0x16c),_0x366546['to'](_0x1e3636(0x169),_0x1e7594=>_0x1e3636(0x164)+_0x1e7594)]},'children':this[_0x1e3636(0x189)]}),this['on'](_0x1e3636(0x15f),()=>{const _0xf5765c=_0x1e3636;this[_0xf5765c(0x182)](_0x2e37fb);});}[_0x47e56f(0x183)](){const _0x4319ad=_0x47e56f;super[_0x4319ad(0x183)](),this[_0x4319ad(0x141)][_0x4319ad(0x183)](),this[_0x4319ad(0x172)][_0x4319ad(0x183)](),this[_0x4319ad(0x147)][_0x4319ad(0x14d)](this[_0x4319ad(0x187)]),this[_0x4319ad(0x147)][_0x4319ad(0x14d)](this[_0x4319ad(0x141)]),this[_0x4319ad(0x147)][_0x4319ad(0x14d)](this[_0x4319ad(0x172)]),this[_0x4319ad(0x147)][_0x4319ad(0x14d)](this[_0x4319ad(0x13a)]),this[_0x4319ad(0x147)][_0x4319ad(0x14d)](this[_0x4319ad(0x16d)]),this[_0x4319ad(0x180)][_0x4319ad(0x15c)](this[_0x4319ad(0x187)]),this[_0x4319ad(0x180)][_0x4319ad(0x15c)](this[_0x4319ad(0x141)][_0x4319ad(0x187)]),this[_0x4319ad(0x180)][_0x4319ad(0x15c)](this[_0x4319ad(0x172)][_0x4319ad(0x187)]),this[_0x4319ad(0x159)][_0x4319ad(0x157)]([this[_0x4319ad(0x141)],this[_0x4319ad(0x172)],this[_0x4319ad(0x16d)],this[_0x4319ad(0x13a)]]);}[_0x47e56f(0x13d)](){const _0x175f1b=_0x47e56f;super[_0x175f1b(0x13d)](),this[_0x175f1b(0x172)][_0x175f1b(0x13d)](),this[_0x175f1b(0x141)][_0x175f1b(0x13d)]();}[_0x47e56f(0x17e)](){const _0x27f4b5=_0x47e56f;this[_0x27f4b5(0x175)][_0x27f4b5(0x178)]();}[_0x47e56f(0x185)](){const _0x169ca9=_0x47e56f;this[_0x169ca9(0x175)][_0x169ca9(0x185)]();}async[_0x47e56f(0x167)](_0x5e93c4){const _0x2a3cac=_0x47e56f;_0x5e93c4?.[_0x2a3cac(0x140)]||this[_0x2a3cac(0x16a)](),await this[_0x2a3cac(0x186)][_0x2a3cac(0x17b)](_0x5e93c4);}[_0x47e56f(0x15a)](_0x4d209d){const _0x2796b1=_0x47e56f;this[_0x2796b1(0x169)]=_0x4d209d;}[_0x47e56f(0x168)](_0x5bf2bd){const _0x4afc7a=_0x47e56f;super[_0x4afc7a(0x168)](_0x5bf2bd),this[_0x4afc7a(0x189)][_0x4afc7a(0x14e)](this[_0x4afc7a(0x17f)])||this[_0x4afc7a(0x189)][_0x4afc7a(0x14d)](this[_0x4afc7a(0x17f)],0x0);}[_0x47e56f(0x16a)](){const _0x3920e5=_0x47e56f;this[_0x3920e5(0x17a)]&&(super[_0x3920e5(0x16a)](),this[_0x3920e5(0x181)](!0x0));}[_0x47e56f(0x14a)](_0x28fcef){const _0x3ec811=_0x47e56f;super[_0x3ec811(0x14a)](_0x28fcef),this[_0x3ec811(0x181)](!0x1);}[_0x47e56f(0x139)](_0x5cdd03){const _0xefc3e2=_0x47e56f;this[_0xefc3e2(0x141)][_0xefc3e2(0x184)]=this[_0xefc3e2(0x172)][_0xefc3e2(0x184)]=_0x5cdd03;}[_0x47e56f(0x181)](_0x33babe){const _0x9738bf=_0x47e56f;this[_0x9738bf(0x16d)][_0x9738bf(0x150)]=_0x33babe;}[_0x47e56f(0x182)]({showApplyButton:_0x284d05,showSuggestButton:_0x1e67e9}){const _0x30db55=_0x47e56f;_0x284d05=_0x284d05&&!this[_0x30db55(0x16b)]&&this[_0x30db55(0x179)][_0x30db55(0x18b)][_0x30db55(0x166)](_0x30db55(0x160)),_0x1e67e9=_0x1e67e9&&this[_0x30db55(0x179)][_0x30db55(0x18b)][_0x30db55(0x166)](_0x30db55(0x144)),this[_0x30db55(0x16d)][_0x30db55(0x152)]({'showApplyButton':_0x284d05,'showSuggestButton':_0x1e67e9});}[_0x47e56f(0x13c)](){const _0x4d3ff4=_0x47e56f,_0x415e77=new _0x3edd7d(this[_0x4d3ff4(0x174)]);return _0x415e77[_0x4d3ff4(0x142)]({'icon':_0x5c1650,'label':_0x5eca2f(this[_0x4d3ff4(0x174)],_0x4d3ff4(0x162)),'isVisible':!0x0}),_0x415e77['on'](_0x4d3ff4(0x16e),()=>{const _0x19fdbf=_0x4d3ff4;this[_0x19fdbf(0x176)](_0x19fdbf(0x15e));}),_0x415e77;}[_0x47e56f(0x177)](){const _0x4c1842=_0x47e56f,_0x352af2=new _0x3edd7d(this[_0x4c1842(0x174)]);return _0x352af2[_0x4c1842(0x142)]({'icon':_0x5bb0d9,'label':_0x5eca2f(this[_0x4c1842(0x174)],_0x4c1842(0x14c)),'isVisible':!0x0}),_0x352af2['on'](_0x4c1842(0x16e),()=>{const _0x3b739c=_0x4c1842;this[_0x3b739c(0x176)](_0x3b739c(0x154));}),_0x352af2;}}class fs extends _0x2538f5{constructor(_0x283eb4,_0x22524e){const _0x579a2c=_0x47e56f;super(_0x283eb4),this[_0x579a2c(0x156)]({'tag':_0x579a2c(0x15d),'attributes':{'class':[_0x579a2c(0x13f)]},'children':_0x22524e});}}
23
+ function _0x8d52(_0x588f96,_0x206b84){const _0x287968=_0x2879();return _0x8d52=function(_0x8d52c1,_0x3734a5){_0x8d52c1=_0x8d52c1-0x10c;let _0x947e69=_0x287968[_0x8d52c1];return _0x947e69;},_0x8d52(_0x588f96,_0x206b84);}const _0x23854e=_0x8d52;(function(_0x6707a8,_0x261799){const _0x3baffa=_0x8d52,_0x3bf195=_0x6707a8();while(!![]){try{const _0x34a744=-parseInt(_0x3baffa(0x13e))/0x1*(parseInt(_0x3baffa(0x157))/0x2)+-parseInt(_0x3baffa(0x151))/0x3*(parseInt(_0x3baffa(0x120))/0x4)+-parseInt(_0x3baffa(0x111))/0x5*(-parseInt(_0x3baffa(0x10f))/0x6)+-parseInt(_0x3baffa(0x150))/0x7+-parseInt(_0x3baffa(0x117))/0x8+-parseInt(_0x3baffa(0x12c))/0x9*(parseInt(_0x3baffa(0x14a))/0xa)+parseInt(_0x3baffa(0x12b))/0xb;if(_0x34a744===_0x261799)break;else _0x3bf195['push'](_0x3bf195['shift']());}catch(_0x3b2bda){_0x3bf195['push'](_0x3bf195['shift']());}}}(_0x2879,0x9ab88));import{FocusTracker as _0x4c1ac6,KeystrokeHandler as _0x40b79e}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x410176}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x366ea5}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0xae8593}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x2e4db0}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x83f20,FocusCycler as _0x3dd98e,View as _0x2c8582}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x5e3629}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';function _0x2879(){const _0x55584b=['listenTo','shift\x20+\x20tab','div','pending','locale','7613728wsURwi','full','add','ck-ai-chat-balloon-main_state_','nextButtonView','_state','applySuggestion','element','isVisible','44236RGHjfX','updateContent','update','toggleSuggestionDisplayMode','set','isShowChangesOn','change:_state','_focusTracker','_toolbarContainerView','addMany','_createPreviousButtonView','26781810oLQtRX','13698SdKliS','ck-ai-chat-balloon-main','isEnabled','hideError','AI_BALLOON_NEXT_LABEL','bindTemplate','showPrevious','_partToolbarView','insertSuggestion','_errorView','fire','_createNextButtonView','previousButtonView','bind','has','showError','focusFirst','keepErrors','413225NXaGpi','showBlockingError','children','change:isTrackChangesOn','showDiff','AI_BALLOON_PREVIOUS_LABEL','toggleRotatorButtonsVisibility','focusCycler','render','_stateView','createCollection','ck-ai-chat-balloon__toolbar-container','860WCNIkg','focus','execute','showNext','isTrackChangesOn','includes','3143210CSqZDp','183ZBcEgF','_togglePartToolbarButtonsVisibility','tab','focusLast','setTemplate','availableActions','2BIWzBm','_config','toggleShowChanges','togglePartToolbarEnabled','setButtonsVisibility','_miniToolbarView','_focusables','setState','_streamableContentView','_keystrokes','_isErrorVisible','delegate','rejectSuggestion','613866sxVwLq','destroy','40wFnSVq'];_0x2879=function(){return _0x55584b;};return _0x2879();}import{IconChevronDown as _0x485121,IconChevronUp as _0x56eaf8}from'ckeditor5/src/icons.js';import{getTranslation as _0x34f29d}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x2e4db0{[_0x23854e(0x140)];[_0x23854e(0x11b)];[_0x23854e(0x138)];[_0x23854e(0x145)];[_0x23854e(0x15d)];[_0x23854e(0x127)];[_0x23854e(0x160)];[_0x23854e(0x158)];[_0x23854e(0x15f)];[_0x23854e(0x128)];[_0x23854e(0x133)];[_0x23854e(0x147)];[_0x23854e(0x15c)];constructor(_0x3cf976,_0x5f4bb7){const _0xc524b0=_0x23854e;super(_0x3cf976);const _0x16aba0=this[_0xc524b0(0x131)];this[_0xc524b0(0x124)](_0xc524b0(0x142),!0x1),this[_0xc524b0(0x124)](_0xc524b0(0x11c),_0xc524b0(0x115)),this[_0xc524b0(0x127)]=new _0x4c1ac6(),this[_0xc524b0(0x160)]=new _0x40b79e(),this[_0xc524b0(0x15d)]=this[_0xc524b0(0x148)](),this[_0xc524b0(0x145)]=new _0x3dd98e({'focusables':this[_0xc524b0(0x15d)],'focusTracker':this[_0xc524b0(0x127)],'keystrokeHandler':this[_0xc524b0(0x160)],'actions':{'focusPrevious':_0xc524b0(0x113),'focusNext':_0xc524b0(0x153)}}),this[_0xc524b0(0x158)]=_0x5f4bb7,this[_0xc524b0(0x11b)]=this[_0xc524b0(0x137)](),this[_0xc524b0(0x138)]=this[_0xc524b0(0x12a)](),this[_0xc524b0(0x15f)]=new _0x410176(_0x3cf976),this[_0xc524b0(0x133)]=new _0x366ea5(_0x3cf976,_0x5f4bb7[_0xc524b0(0x156)]),this[_0xc524b0(0x133)][_0xc524b0(0x10d)](_0xc524b0(0x11d),_0xc524b0(0x134),_0xc524b0(0x10e))['to'](this),this[_0xc524b0(0x152)](_0x5f4bb7),this[_0xc524b0(0x147)]=new _0x5e3629(_0x3cf976),this[_0xc524b0(0x147)][_0xc524b0(0x11f)]=!0x1,this[_0xc524b0(0x15c)]=new _0xae8593(_0x3cf976,{'showChanges':_0xc524b0(0x118)}),this[_0xc524b0(0x15c)][_0xc524b0(0x139)](_0xc524b0(0x125))['to'](this,_0xc524b0(0x142)),this[_0xc524b0(0x15c)]['on'](_0xc524b0(0x159),()=>{const _0x295c8a=_0xc524b0;this[_0x295c8a(0x136)](_0x295c8a(0x123));}),this[_0xc524b0(0x128)]=new ms(_0x3cf976,[this[_0xc524b0(0x133)],this[_0xc524b0(0x147)],this[_0xc524b0(0x15c)]]),this[_0xc524b0(0x140)]=this[_0xc524b0(0x148)]([this[_0xc524b0(0x15f)],this[_0xc524b0(0x128)]]),this['on'](_0xc524b0(0x126),(_0x1cb315,_0x5b9c4e,_0xaec8f8,_0x50b8e1)=>{const _0x415d41=_0xc524b0;let _0x1d0dd3,_0x3be4b9;_0x415d41(0x115)===_0x50b8e1?(_0x1d0dd3=this[_0x415d41(0x133)],_0x3be4b9=this[_0x415d41(0x147)]):(_0x1d0dd3=this[_0x415d41(0x147)],_0x3be4b9=this[_0x415d41(0x133)]),this[_0x415d41(0x147)][_0x415d41(0x15e)](_0xaec8f8),_0x1d0dd3[_0x415d41(0x11f)]=!0x1,_0x3be4b9[_0x415d41(0x11f)]=!0x0;}),this[_0xc524b0(0x155)]({'tag':_0xc524b0(0x114),'attributes':{'class':['ck',_0xc524b0(0x12d),_0x16aba0['to'](_0xc524b0(0x11c),_0x4c831f=>_0xc524b0(0x11a)+_0x4c831f)]},'children':this[_0xc524b0(0x140)]}),this['on'](_0xc524b0(0x141),()=>{const _0x4eea32=_0xc524b0;this[_0x4eea32(0x152)](_0x5f4bb7);});}[_0x23854e(0x146)](){const _0x2669fb=_0x23854e;super[_0x2669fb(0x146)](),this[_0x2669fb(0x11b)][_0x2669fb(0x146)](),this[_0x2669fb(0x138)][_0x2669fb(0x146)](),this[_0x2669fb(0x127)][_0x2669fb(0x119)](this[_0x2669fb(0x11e)]),this[_0x2669fb(0x127)][_0x2669fb(0x119)](this[_0x2669fb(0x11b)]),this[_0x2669fb(0x127)][_0x2669fb(0x119)](this[_0x2669fb(0x138)]),this[_0x2669fb(0x127)][_0x2669fb(0x119)](this[_0x2669fb(0x15c)]),this[_0x2669fb(0x127)][_0x2669fb(0x119)](this[_0x2669fb(0x133)]),this[_0x2669fb(0x160)][_0x2669fb(0x112)](this[_0x2669fb(0x11e)]),this[_0x2669fb(0x160)][_0x2669fb(0x112)](this[_0x2669fb(0x11b)][_0x2669fb(0x11e)]),this[_0x2669fb(0x160)][_0x2669fb(0x112)](this[_0x2669fb(0x138)][_0x2669fb(0x11e)]),this[_0x2669fb(0x15d)][_0x2669fb(0x129)]([this[_0x2669fb(0x11b)],this[_0x2669fb(0x138)],this[_0x2669fb(0x133)],this[_0x2669fb(0x15c)]]);}[_0x23854e(0x110)](){const _0x53eab3=_0x23854e;super[_0x53eab3(0x110)](),this[_0x53eab3(0x138)][_0x53eab3(0x110)](),this[_0x53eab3(0x11b)][_0x53eab3(0x110)]();}[_0x23854e(0x14b)](){const _0x3d1504=_0x23854e;this[_0x3d1504(0x145)][_0x3d1504(0x13c)]();}[_0x23854e(0x154)](){const _0x4cbdc0=_0x23854e;this[_0x4cbdc0(0x145)][_0x4cbdc0(0x154)]();}async[_0x23854e(0x121)](_0x3e0f79){const _0x29b3e5=_0x23854e;_0x3e0f79?.[_0x29b3e5(0x13d)]||this[_0x29b3e5(0x12f)](),await this[_0x29b3e5(0x15f)][_0x29b3e5(0x122)](_0x3e0f79);}[_0x23854e(0x15e)](_0x2803a7){const _0x2e55aa=_0x23854e;this[_0x2e55aa(0x11c)]=_0x2803a7;}[_0x23854e(0x13b)](_0x506add){const _0x44cf01=_0x23854e;super[_0x44cf01(0x13b)](_0x506add),this[_0x44cf01(0x140)][_0x44cf01(0x13a)](this[_0x44cf01(0x135)])||this[_0x44cf01(0x140)][_0x44cf01(0x119)](this[_0x44cf01(0x135)],0x0);}[_0x23854e(0x12f)](){const _0x485f0d=_0x23854e;this[_0x485f0d(0x10c)]&&(super[_0x485f0d(0x12f)](),this[_0x485f0d(0x15a)](!0x0));}[_0x23854e(0x13f)](_0x589d05){const _0x49479a=_0x23854e;super[_0x49479a(0x13f)](_0x589d05),this[_0x49479a(0x15a)](!0x1);}[_0x23854e(0x144)](_0x4d56dc){const _0x17d2ac=_0x23854e;this[_0x17d2ac(0x11b)][_0x17d2ac(0x11f)]=this[_0x17d2ac(0x138)][_0x17d2ac(0x11f)]=_0x4d56dc;}[_0x23854e(0x15a)](_0x241eac){const _0x408de0=_0x23854e;this[_0x408de0(0x133)][_0x408de0(0x12e)]=_0x241eac;}[_0x23854e(0x152)]({showApplyButton:_0x325827,showSuggestButton:_0x567f88}){const _0x8a7334=_0x23854e;_0x325827=_0x325827&&!this[_0x8a7334(0x14e)]&&this[_0x8a7334(0x158)][_0x8a7334(0x156)][_0x8a7334(0x14f)](_0x8a7334(0x11d)),_0x567f88=_0x567f88&&this[_0x8a7334(0x158)][_0x8a7334(0x156)][_0x8a7334(0x14f)](_0x8a7334(0x134)),this[_0x8a7334(0x133)][_0x8a7334(0x15b)]({'showApplyButton':_0x325827,'showSuggestButton':_0x567f88});}[_0x23854e(0x137)](){const _0x93133e=_0x23854e,_0x108f8c=new _0x83f20(this[_0x93133e(0x116)]);return _0x108f8c[_0x93133e(0x124)]({'icon':_0x485121,'label':_0x34f29d(this[_0x93133e(0x116)],_0x93133e(0x130)),'isVisible':!0x0}),_0x108f8c['on'](_0x93133e(0x14c),()=>{const _0x1a4ae6=_0x93133e;this[_0x1a4ae6(0x136)](_0x1a4ae6(0x14d));}),_0x108f8c;}[_0x23854e(0x12a)](){const _0x56c309=_0x23854e,_0x5bf026=new _0x83f20(this[_0x56c309(0x116)]);return _0x5bf026[_0x56c309(0x124)]({'icon':_0x56eaf8,'label':_0x34f29d(this[_0x56c309(0x116)],_0x56c309(0x143)),'isVisible':!0x0}),_0x5bf026['on'](_0x56c309(0x14c),()=>{const _0xe9042c=_0x56c309;this[_0xe9042c(0x136)](_0xe9042c(0x132));}),_0x5bf026;}}class ms extends _0x2c8582{constructor(_0x586431,_0x140e45){const _0x5736cb=_0x23854e;super(_0x586431),this[_0x5736cb(0x155)]({'tag':_0x5736cb(0x114),'attributes':{'class':[_0x5736cb(0x149)]},'children':_0x140e45});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x293ee3=_0x57fe;(function(_0x3f5b90,_0x2e28b8){const _0xf2b1c4=_0x57fe,_0xcabff5=_0x3f5b90();while(!![]){try{const _0xd9ef58=-parseInt(_0xf2b1c4(0xf8))/0x1+parseInt(_0xf2b1c4(0x128))/0x2*(parseInt(_0xf2b1c4(0xf7))/0x3)+parseInt(_0xf2b1c4(0xfb))/0x4*(parseInt(_0xf2b1c4(0x133))/0x5)+-parseInt(_0xf2b1c4(0x136))/0x6*(-parseInt(_0xf2b1c4(0x10e))/0x7)+-parseInt(_0xf2b1c4(0x13d))/0x8*(parseInt(_0xf2b1c4(0xfc))/0x9)+-parseInt(_0xf2b1c4(0x131))/0xa*(parseInt(_0xf2b1c4(0x14d))/0xb)+parseInt(_0xf2b1c4(0x141))/0xc;if(_0xd9ef58===_0x2e28b8)break;else _0xcabff5['push'](_0xcabff5['shift']());}catch(_0x508d4a){_0xcabff5['push'](_0xcabff5['shift']());}}}(_0x2ef4,0x59f7d));import{CKEditorError as _0x2d6a28,logWarning as _0x2884e0,scrollAncestorsToShowTarget as _0xd0c89f}from'ckeditor5/src/utils.js';import{View as _0x2d48ed}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x13f727}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x456023}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x10f27a}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x332742}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x9b26e8}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x31dd66}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x7b023a}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x4780c8,SKELETON_DEFINITIONS as _0x4a71cc}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0xe007e8}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0xf7269f}from'./feed/aichatfeedcustomelementview.js';function _0x2ef4(){const _0x4c07a9=['isTrackChangesOn','filter','ck-hidden','getItemById','stopAutoScroll','_createSkeletonLoader','find','4413031iRqEuo','custom-element','getItemIds','_bodyCollection','children','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','_setupTemplate','setSuggestionPartActive','stop','isVisible','set','remove','ck-ai-chat__feed__items','aiFeed','updateSources','_createFeedLoader','interaction-header','map','ck-ai-chat__feed','forEach','ai-chat-feed-view-item-not-a-suggestion-item','parentElement','isLoadingSkeletonVisible','ai-chat-feed-view-item-not-a-reply-item','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','updateSuggestionPartState','2710cFxYGq','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','bind','options','scrollToSuggestion','_createLoaderChildren','addItem','clear','element','2537580ttRLtt','hasItem','20UmVGrS','render','div','6oKLbgn','extendTemplate','add','startAutoScroll','setPartActive','destroy','setLoadingMessage','8aLqtXa','createCollection','updateContent','ck-ai-chat__loader','5984640rBeyIs','ai-suggestion-reply','updatePartState','start','locale','updateWebSources','getPartView','ai-chat-feed-view-item-not-found','includes','ck-ai-chat__loader-text','scrollManager','user-message','22AYDrEs','_createFeedItems','ai-reply','bindTemplate','321nEieeb','662040VtTapU','markItemAsDone','delegate','701788cmHgTC','3940749lLytzT','setTemplate','toggleLoadingSkeleton','updateReplyItem','isPending','_createTemplateChildren','loadingMessage','updateSuggestionItem','span','markAsDone','removeItem'];_0x2ef4=function(){return _0x4c07a9;};return _0x2ef4();}function _0x57fe(_0x1fe13a,_0x4c6b69){const _0x2ef403=_0x2ef4();return _0x57fe=function(_0x57fe38,_0x4b9dae){_0x57fe38=_0x57fe38-0xf6;let _0x35a418=_0x2ef403[_0x57fe38];return _0x35a418;},_0x57fe(_0x1fe13a,_0x4c6b69);}import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x2d48ed{[_0x293ee3(0x112)];[_0x293ee3(0x14b)];[_0x293ee3(0x111)];constructor(_0x5522fb,_0x5888ef){const _0x10d1f9=_0x293ee3;super(_0x5522fb),this[_0x10d1f9(0x111)]=_0x5888ef,this[_0x10d1f9(0x118)](_0x10d1f9(0x100),!0x1),this[_0x10d1f9(0x118)](_0x10d1f9(0x102),''),this[_0x10d1f9(0x118)](_0x10d1f9(0x124),!0x1),this[_0x10d1f9(0x118)](_0x10d1f9(0x107),!0x1),this[_0x10d1f9(0x112)]=this[_0x10d1f9(0x13e)](),this[_0x10d1f9(0x112)][_0x10d1f9(0xfa)](..._0x13f727)['to'](this),this[_0x10d1f9(0x114)]();}[_0x293ee3(0x134)](){const _0x5c5656=_0x293ee3;super[_0x5c5656(0x134)](),this[_0x5c5656(0x14b)]=new _0x7b023a(this[_0x5c5656(0x130)]);}[_0x293ee3(0x13b)](){const _0x29faaf=_0x293ee3;super[_0x29faaf(0x13b)](),this[_0x29faaf(0x14b)][_0x29faaf(0x13b)]();}[_0x293ee3(0x12f)](){const _0x2c60c9=_0x293ee3;this[_0x2c60c9(0x112)][_0x2c60c9(0x12f)]();}[_0x293ee3(0x12e)](_0xf8f13a,_0x3b9c6a){const _0x2e6a6f=_0x293ee3;let _0x2a72e6;return _0x2e6a6f(0x14f)===_0xf8f13a?_0x2a72e6=new _0x10f27a(this[_0x2e6a6f(0x145)],_0x3b9c6a,this[_0x2e6a6f(0x111)]):_0x2e6a6f(0x142)===_0xf8f13a?(_0x2a72e6=new _0x456023(this[_0x2e6a6f(0x145)],_0x3b9c6a,this[_0x2e6a6f(0x111)]),_0x2a72e6[_0x2e6a6f(0x12a)](_0x2e6a6f(0x107))['to'](this)):_0x2a72e6=_0x2e6a6f(0x14c)===_0xf8f13a?new _0x332742(this[_0x2e6a6f(0x145)],_0x3b9c6a,this[_0x2e6a6f(0x111)]):_0x2e6a6f(0x11e)===_0xf8f13a?new _0x31dd66(this[_0x2e6a6f(0x145)],_0x3b9c6a):_0x2e6a6f(0x10f)===_0xf8f13a?new _0xf7269f(_0x3b9c6a):new _0x9b26e8(_0x3b9c6a),this[_0x2e6a6f(0x112)][_0x2e6a6f(0x138)](_0x2a72e6),_0x2a72e6;}async[_0x293ee3(0xff)]({id:_0x505517,parsedContent:_0x3172d6,renderingStrategy:_0x36ccdb,abortSignal:_0x51943d}){const _0x438955=_0x293ee3,_0x1c48cb=this[_0x438955(0x10a)](_0x505517);if(!(_0x1c48cb instanceof _0x10f27a))throw new _0x2d6a28(_0x438955(0x125),null,{'itemView':_0x1c48cb,'id':_0x505517,'parsedContent':_0x3172d6});await _0x1c48cb[_0x438955(0x13f)]({'parsedContent':_0x3172d6,'renderingStrategy':_0x36ccdb,'abortSignal':_0x51943d});}async[_0x293ee3(0x146)](_0x2a7016,_0x50deed){const _0x241bd1=_0x293ee3,_0x4328af=this[_0x241bd1(0x10a)](_0x2a7016);if(_0x4328af instanceof _0x456023)_0x4328af[_0x241bd1(0x11c)](_0x50deed);else{if(!(_0x4328af instanceof _0x10f27a))throw new _0x2d6a28(_0x241bd1(0x129),null,{'itemView':_0x4328af,'id':_0x2a7016,'sources':_0x50deed});_0x4328af[_0x241bd1(0x11c)](_0x50deed);}}async[_0x293ee3(0x103)]({id:_0x2b4831,parts:_0x389ea0,renderingStrategy:_0x401dc5,abortSignal:_0x1b454c}){const _0x2321fc=_0x293ee3,_0x2eab2c=this[_0x2321fc(0x10a)](_0x2b4831);if(!(_0x2eab2c instanceof _0x456023))throw new _0x2d6a28(_0x2321fc(0x122),null,{'itemView':_0x2eab2c,'id':_0x2b4831,'parts':_0x389ea0});await _0x2eab2c[_0x2321fc(0x13f)]({'parts':_0x389ea0,'renderingStrategy':_0x401dc5,'abortSignal':_0x1b454c});}[_0x293ee3(0x127)]({id:_0x311bbe,index:_0x510ebd,state:_0x5f42a7}){const _0x3f7362=_0x293ee3,_0x224d06=this[_0x3f7362(0x10a)](_0x311bbe);if(!(_0x224d06 instanceof _0x456023))throw new _0x2d6a28(_0x3f7362(0x122),this,{'id':_0x311bbe});_0x224d06[_0x3f7362(0x143)](_0x510ebd,_0x5f42a7);}[_0x293ee3(0x115)]({id:_0x6c11b,index:_0x178dee,isActive:_0x46fd89}){const _0xa26c11=_0x293ee3,_0x5aad7b=this[_0xa26c11(0x10a)](_0x6c11b);if(!(_0x5aad7b instanceof _0x456023))throw new _0x2d6a28(_0xa26c11(0x122),this,{'id':_0x6c11b});this[_0xa26c11(0x112)][_0xa26c11(0x108)](_0xcf29aa=>_0xcf29aa instanceof _0x456023)[_0xa26c11(0x121)](_0x2a2044=>{const _0x47cd7b=_0xa26c11;_0x2a2044[_0x47cd7b(0x13a)](!0x1);}),_0x5aad7b[_0xa26c11(0x13a)](_0x178dee,_0x46fd89);}[_0x293ee3(0xf9)](_0x4bc5cd){const _0x428000=_0x293ee3;this[_0x428000(0x10a)](_0x4bc5cd)[_0x428000(0x105)]();}[_0x293ee3(0x110)](){const _0x4100f1=_0x293ee3;return this[_0x4100f1(0x112)][_0x4100f1(0x11f)](_0x4c78ec=>_0x4c78ec[_0x4100f1(0x12b)]['id']);}[_0x293ee3(0x106)](_0x2563fe){const _0x18869d=_0x293ee3;this[_0x18869d(0x112)][_0x18869d(0x119)](this[_0x18869d(0x10a)](_0x2563fe));}[_0x293ee3(0x132)](_0x120bb4){const _0x22b493=_0x293ee3;return!!this[_0x22b493(0x112)][_0x22b493(0x10d)](_0x59703c=>_0x59703c[_0x22b493(0x12b)]['id'][_0x22b493(0x149)](_0x120bb4));}[_0x293ee3(0x12c)](_0x499fe6,_0x4bd138){const _0x2c895b=_0x293ee3,_0x4c1ea4=this[_0x2c895b(0x10a)](_0x499fe6);if(!(_0x4c1ea4 instanceof _0x456023))return void _0x2884e0(_0x2c895b(0x113),{'replyId':_0x499fe6,'partIndex':_0x4bd138});const _0x24be84=_0x4c1ea4[_0x2c895b(0x147)](_0x4bd138);_0x24be84?_0xd0c89f(_0x24be84[_0x2c895b(0x130)],0x14,this[_0x2c895b(0x130)][_0x2c895b(0x123)],!0x0,!0x0):_0x2884e0(_0x2c895b(0x126),{'replyId':_0x499fe6,'partIndex':_0x4bd138});}[_0x293ee3(0x114)](){const _0x7dcdc2=_0x293ee3;this[_0x7dcdc2(0xfd)]({'tag':_0x7dcdc2(0x135),'attributes':{'class':['ck',_0x7dcdc2(0x120)]},'children':this[_0x7dcdc2(0x101)]()});}[_0x293ee3(0x101)](){const _0x30b8f0=_0x293ee3,_0x413a06=this[_0x30b8f0(0x10c)]();return[this[_0x30b8f0(0x14e)](),_0x413a06,this[_0x30b8f0(0x11d)]()];}[_0x293ee3(0x10c)](){const _0x33c4b1=_0x293ee3,_0x2cb2f8=new _0x4780c8(this[_0x33c4b1(0x145)],_0x4a71cc[_0x33c4b1(0x11b)]);return _0x2cb2f8[_0x33c4b1(0x137)]({'attributes':{'class':[this[_0x33c4b1(0xf6)]['if'](_0x33c4b1(0x124),_0x33c4b1(0x109),_0x5d7eb0=>!_0x5d7eb0)]}}),_0x2cb2f8;}[_0x293ee3(0x14e)](){const _0x8c145=_0x293ee3,_0x243448=new _0x2d48ed(this[_0x8c145(0x145)]);return _0x243448[_0x8c145(0xfd)]({'tag':_0x8c145(0x135),'attributes':{'class':['ck',_0x8c145(0x11a),this[_0x8c145(0xf6)]['if'](_0x8c145(0x124),_0x8c145(0x109))]},'children':this[_0x8c145(0x112)]}),_0x243448;}[_0x293ee3(0x11d)](){const _0x5ef008=_0x293ee3,_0x344ff3=new _0x2d48ed(this[_0x5ef008(0x145)]);return _0x344ff3[_0x5ef008(0xfd)]({'tag':_0x5ef008(0x135),'attributes':{'class':['ck',_0x5ef008(0x140),this[_0x5ef008(0xf6)]['if'](_0x5ef008(0x100),_0x5ef008(0x109),_0x80a95d=>!_0x80a95d)]},'children':this[_0x5ef008(0x12d)]()}),_0x344ff3;}[_0x293ee3(0x12d)](){const _0x4aaef3=_0x293ee3,_0x355e2f=new _0xe007e8();return _0x355e2f[_0x4aaef3(0x117)]=!0x0,[_0x355e2f,{'tag':_0x4aaef3(0x104),'attributes':{'class':['ck',_0x4aaef3(0x14a)]},'children':[{'text':this[_0x4aaef3(0xf6)]['to'](_0x4aaef3(0x102))}]}];}[_0x293ee3(0x10a)](_0x55945e){const _0x5d66be=_0x293ee3,_0x4214a8=this[_0x5d66be(0x112)][_0x5d66be(0x10d)](_0x3a1fa3=>_0x3a1fa3[_0x5d66be(0x12b)]['id'][_0x5d66be(0x149)](_0x55945e));if(!_0x4214a8)throw new _0x2d6a28(_0x5d66be(0x148),this,{'id':_0x55945e});return _0x4214a8;}[_0x293ee3(0x13c)](_0x55fc1c){const _0x21e3de=_0x293ee3;this[_0x21e3de(0x118)](_0x21e3de(0x102),_0x55fc1c);}[_0x293ee3(0xfe)](_0x3e1716){const _0x196fe4=_0x293ee3;this[_0x196fe4(0x118)](_0x196fe4(0x124),_0x3e1716);}[_0x293ee3(0x139)](){const _0x1d815b=_0x293ee3;this[_0x1d815b(0x14b)][_0x1d815b(0x144)]();}[_0x293ee3(0x10b)](){const _0x5349a6=_0x293ee3;this[_0x5349a6(0x14b)][_0x5349a6(0x116)]();}}
23
+ const _0xeb7e9a=_0x9550;(function(_0x4e6d77,_0x558649){const _0xeaa08f=_0x9550,_0x3510a6=_0x4e6d77();while(!![]){try{const _0x5a13fc=parseInt(_0xeaa08f(0xf0))/0x1+parseInt(_0xeaa08f(0xf4))/0x2*(-parseInt(_0xeaa08f(0x100))/0x3)+-parseInt(_0xeaa08f(0x135))/0x4+parseInt(_0xeaa08f(0xef))/0x5*(-parseInt(_0xeaa08f(0x111))/0x6)+-parseInt(_0xeaa08f(0x113))/0x7*(-parseInt(_0xeaa08f(0xf1))/0x8)+-parseInt(_0xeaa08f(0x102))/0x9*(-parseInt(_0xeaa08f(0xf8))/0xa)+-parseInt(_0xeaa08f(0x12d))/0xb;if(_0x5a13fc===_0x558649)break;else _0x3510a6['push'](_0x3510a6['shift']());}catch(_0x4072d0){_0x3510a6['push'](_0x3510a6['shift']());}}}(_0x5333,0x753ab));import{CKEditorError as _0x5a5487,logWarning as _0x3d4c8c,scrollAncestorsToShowTarget as _0x4f2585}from'ckeditor5/src/utils.js';import{View as _0x2e96e0}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5d7451}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x11a9ca}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x1e4ec3}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x3cf0a4}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x157382}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0xadd285}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4197f9}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x527628,SKELETON_DEFINITIONS as _0x3340d5}from'../../aicore/ui/aiskeleton.js';function _0x5333(){const _0x4cd24d=['ck-ai-chat__feed','updateSuggestionItem','children','removeItem','loadingMessage','forEach','updateReplyItem','updatePartState','ai-chat-feed-view-item-not-found','extendTemplate','toggleLoadingSkeleton','_createFeedLoader','createCollection','options','startAutoScroll','remove','markAsDone','ck-hidden','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','811690xFyXXm','updateSources','stopAutoScroll','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','stop','parentElement','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','isLoadingSkeletonVisible','242804CysKVR','_bodyCollection','user-message','custom-element','bind','isPending','markItemAsDone','setPartActive','updateWebSources','div','setTemplate','interaction-header','_createFeedItems','span','ck-ai-chat__loader','setSuggestionPartActive','start','destroy','updateSuggestionPartState','20WcJVHe','301818fnWHNc','80qmVBvJ','scrollManager','_createLoaderChildren','1034SCzSbw','scrollToSuggestion','setLoadingMessage','ai-chat-feed-view-item-not-a-reply-item','6576490EzhvOM','_setupTemplate','getPartView','ai-suggestion-reply','ai-chat-feed-view-item-not-a-suggestion-item','addItem','ck-ai-chat__feed__items','locale','2991luFmUo','getItemById','9znXgYo','delegate','updateContent','find','aiFeed','isTrackChangesOn','ck-ai-chat__loader-text','hasItem','render','_createTemplateChildren','set','isVisible','filter','includes','clear','725184GeiMKz','_createSkeletonLoader','457870tuPQgR','map','element','add','bindTemplate','getItemIds','ai-reply'];_0x5333=function(){return _0x4cd24d;};return _0x5333();}import{AISpinnerView as _0x1d9d82}from'../../aicore/ui/aispinner.js';function _0x9550(_0x1ca727,_0x5ee96c){const _0x53334a=_0x5333();return _0x9550=function(_0x955069,_0x14b251){_0x955069=_0x955069-0xeb;let _0x12a80f=_0x53334a[_0x955069];return _0x12a80f;},_0x9550(_0x1ca727,_0x5ee96c);}import{AIChatFeedCustomElementView as _0x193995}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x2e96e0{[_0xeb7e9a(0x11c)];[_0xeb7e9a(0xf2)];[_0xeb7e9a(0x136)];constructor(_0x3c0a8b,_0x3a25d6){const _0x2f196a=_0xeb7e9a;super(_0x3c0a8b),this[_0x2f196a(0x136)]=_0x3a25d6,this[_0x2f196a(0x10c)](_0x2f196a(0x13a),!0x1),this[_0x2f196a(0x10c)](_0x2f196a(0x11e),''),this[_0x2f196a(0x10c)](_0x2f196a(0x134),!0x1),this[_0x2f196a(0x10c)](_0x2f196a(0x107),!0x1),this[_0x2f196a(0x11c)]=this[_0x2f196a(0x126)](),this[_0x2f196a(0x11c)][_0x2f196a(0x103)](..._0x5d7451)['to'](this),this[_0x2f196a(0xf9)]();}[_0xeb7e9a(0x10a)](){const _0x5ec36d=_0xeb7e9a;super[_0x5ec36d(0x10a)](),this[_0x5ec36d(0xf2)]=new _0x4197f9(this[_0x5ec36d(0x115)]);}[_0xeb7e9a(0xed)](){const _0x5bb3ae=_0xeb7e9a;super[_0x5bb3ae(0xed)](),this[_0x5bb3ae(0xf2)][_0x5bb3ae(0xed)]();}[_0xeb7e9a(0x110)](){const _0x2f232f=_0xeb7e9a;this[_0x2f232f(0x11c)][_0x2f232f(0x110)]();}[_0xeb7e9a(0xfd)](_0x365c24,_0x535f3b){const _0x1695ed=_0xeb7e9a;let _0x3bcfaa;return _0x1695ed(0x119)===_0x365c24?_0x3bcfaa=new _0x1e4ec3(this[_0x1695ed(0xff)],_0x535f3b,this[_0x1695ed(0x136)]):_0x1695ed(0xfb)===_0x365c24?(_0x3bcfaa=new _0x11a9ca(this[_0x1695ed(0xff)],_0x535f3b,this[_0x1695ed(0x136)]),_0x3bcfaa[_0x1695ed(0x139)](_0x1695ed(0x107))['to'](this)):_0x3bcfaa=_0x1695ed(0x137)===_0x365c24?new _0x3cf0a4(this[_0x1695ed(0xff)],_0x535f3b,this[_0x1695ed(0x136)]):_0x1695ed(0x140)===_0x365c24?new _0xadd285(this[_0x1695ed(0xff)],_0x535f3b):_0x1695ed(0x138)===_0x365c24?new _0x193995(_0x535f3b):new _0x157382(_0x535f3b),this[_0x1695ed(0x11c)][_0x1695ed(0x116)](_0x3bcfaa),_0x3bcfaa;}async[_0xeb7e9a(0x120)]({id:_0x548313,parsedContent:_0x84967,renderingStrategy:_0x541269,abortSignal:_0x1a3725}){const _0x332444=_0xeb7e9a,_0x24379f=this[_0x332444(0x101)](_0x548313);if(!(_0x24379f instanceof _0x1e4ec3))throw new _0x5a5487(_0x332444(0xf7),null,{'itemView':_0x24379f,'id':_0x548313,'parsedContent':_0x84967});await _0x24379f[_0x332444(0x104)]({'parsedContent':_0x84967,'renderingStrategy':_0x541269,'abortSignal':_0x1a3725});}async[_0xeb7e9a(0x13d)](_0x3b0d0d,_0x21aec7){const _0x5cd623=_0xeb7e9a,_0x4737c0=this[_0x5cd623(0x101)](_0x3b0d0d);if(_0x4737c0 instanceof _0x11a9ca)_0x4737c0[_0x5cd623(0x12e)](_0x21aec7);else{if(!(_0x4737c0 instanceof _0x1e4ec3))throw new _0x5a5487(_0x5cd623(0x130),null,{'itemView':_0x4737c0,'id':_0x3b0d0d,'sources':_0x21aec7});_0x4737c0[_0x5cd623(0x12e)](_0x21aec7);}}async[_0xeb7e9a(0x11b)]({id:_0x337c53,parts:_0x3fa884,renderingStrategy:_0x22654d,abortSignal:_0x5d7931}){const _0x3cec04=_0xeb7e9a,_0xa37983=this[_0x3cec04(0x101)](_0x337c53);if(!(_0xa37983 instanceof _0x11a9ca))throw new _0x5a5487(_0x3cec04(0xfc),null,{'itemView':_0xa37983,'id':_0x337c53,'parts':_0x3fa884});await _0xa37983[_0x3cec04(0x104)]({'parts':_0x3fa884,'renderingStrategy':_0x22654d,'abortSignal':_0x5d7931});}[_0xeb7e9a(0xee)]({id:_0x1275c4,index:_0x5687ed,state:_0x3dcbf4}){const _0x3bb591=_0xeb7e9a,_0x1ea752=this[_0x3bb591(0x101)](_0x1275c4);if(!(_0x1ea752 instanceof _0x11a9ca))throw new _0x5a5487(_0x3bb591(0xfc),this,{'id':_0x1275c4});_0x1ea752[_0x3bb591(0x121)](_0x5687ed,_0x3dcbf4);}[_0xeb7e9a(0xeb)]({id:_0x5b8507,index:_0x140b5d,isActive:_0x341633}){const _0x585d19=_0xeb7e9a,_0x253c15=this[_0x585d19(0x101)](_0x5b8507);if(!(_0x253c15 instanceof _0x11a9ca))throw new _0x5a5487(_0x585d19(0xfc),this,{'id':_0x5b8507});this[_0x585d19(0x11c)][_0x585d19(0x10e)](_0x4ab29d=>_0x4ab29d instanceof _0x11a9ca)[_0x585d19(0x11f)](_0x43bc18=>{const _0x27d5f3=_0x585d19;_0x43bc18[_0x27d5f3(0x13c)](!0x1);}),_0x253c15[_0x585d19(0x13c)](_0x140b5d,_0x341633);}[_0xeb7e9a(0x13b)](_0x55b554){const _0xdc9c4e=_0xeb7e9a;this[_0xdc9c4e(0x101)](_0x55b554)[_0xdc9c4e(0x12a)]();}[_0xeb7e9a(0x118)](){const _0x2a602b=_0xeb7e9a;return this[_0x2a602b(0x11c)][_0x2a602b(0x114)](_0x4510aa=>_0x4510aa[_0x2a602b(0x127)]['id']);}[_0xeb7e9a(0x11d)](_0x37641b){const _0x295369=_0xeb7e9a;this[_0x295369(0x11c)][_0x295369(0x129)](this[_0x295369(0x101)](_0x37641b));}[_0xeb7e9a(0x109)](_0x73e74d){const _0x51b95f=_0xeb7e9a;return!!this[_0x51b95f(0x11c)][_0x51b95f(0x105)](_0x4e3a7e=>_0x4e3a7e[_0x51b95f(0x127)]['id'][_0x51b95f(0x10f)](_0x73e74d));}[_0xeb7e9a(0xf5)](_0x3354b4,_0x2fec23){const _0x2616be=_0xeb7e9a,_0x51bef3=this[_0x2616be(0x101)](_0x3354b4);if(!(_0x51bef3 instanceof _0x11a9ca))return void _0x3d4c8c(_0x2616be(0x133),{'replyId':_0x3354b4,'partIndex':_0x2fec23});const _0x10b6f2=_0x51bef3[_0x2616be(0xfa)](_0x2fec23);_0x10b6f2?_0x4f2585(_0x10b6f2[_0x2616be(0x115)],0x14,this[_0x2616be(0x115)][_0x2616be(0x132)],!0x0,!0x0):_0x3d4c8c(_0x2616be(0x12c),{'replyId':_0x3354b4,'partIndex':_0x2fec23});}[_0xeb7e9a(0xf9)](){const _0x268c82=_0xeb7e9a;this[_0x268c82(0x13f)]({'tag':_0x268c82(0x13e),'attributes':{'class':['ck',_0x268c82(0x11a)]},'children':this[_0x268c82(0x10b)]()});}[_0xeb7e9a(0x10b)](){const _0x36b9d8=_0xeb7e9a,_0x58e8d8=this[_0x36b9d8(0x112)]();return[this[_0x36b9d8(0x141)](),_0x58e8d8,this[_0x36b9d8(0x125)]()];}[_0xeb7e9a(0x112)](){const _0x5d5c58=_0xeb7e9a,_0x3f1277=new _0x527628(this[_0x5d5c58(0xff)],_0x3340d5[_0x5d5c58(0x106)]);return _0x3f1277[_0x5d5c58(0x123)]({'attributes':{'class':[this[_0x5d5c58(0x117)]['if'](_0x5d5c58(0x134),_0x5d5c58(0x12b),_0x2d4014=>!_0x2d4014)]}}),_0x3f1277;}[_0xeb7e9a(0x141)](){const _0x50193c=_0xeb7e9a,_0x578cd9=new _0x2e96e0(this[_0x50193c(0xff)]);return _0x578cd9[_0x50193c(0x13f)]({'tag':_0x50193c(0x13e),'attributes':{'class':['ck',_0x50193c(0xfe),this[_0x50193c(0x117)]['if'](_0x50193c(0x134),_0x50193c(0x12b))]},'children':this[_0x50193c(0x11c)]}),_0x578cd9;}[_0xeb7e9a(0x125)](){const _0x1bfec7=_0xeb7e9a,_0x16e29f=new _0x2e96e0(this[_0x1bfec7(0xff)]);return _0x16e29f[_0x1bfec7(0x13f)]({'tag':_0x1bfec7(0x13e),'attributes':{'class':['ck',_0x1bfec7(0x143),this[_0x1bfec7(0x117)]['if'](_0x1bfec7(0x13a),_0x1bfec7(0x12b),_0x2bbbcd=>!_0x2bbbcd)]},'children':this[_0x1bfec7(0xf3)]()}),_0x16e29f;}[_0xeb7e9a(0xf3)](){const _0x4c8ffb=_0xeb7e9a,_0x35b8a3=new _0x1d9d82();return _0x35b8a3[_0x4c8ffb(0x10d)]=!0x0,[_0x35b8a3,{'tag':_0x4c8ffb(0x142),'attributes':{'class':['ck',_0x4c8ffb(0x108)]},'children':[{'text':this[_0x4c8ffb(0x117)]['to'](_0x4c8ffb(0x11e))}]}];}[_0xeb7e9a(0x101)](_0x3e3054){const _0x1291f8=_0xeb7e9a,_0x27cd31=this[_0x1291f8(0x11c)][_0x1291f8(0x105)](_0x566b89=>_0x566b89[_0x1291f8(0x127)]['id'][_0x1291f8(0x10f)](_0x3e3054));if(!_0x27cd31)throw new _0x5a5487(_0x1291f8(0x122),this,{'id':_0x3e3054});return _0x27cd31;}[_0xeb7e9a(0xf6)](_0x8172ea){const _0x3e6134=_0xeb7e9a;this[_0x3e6134(0x10c)](_0x3e6134(0x11e),_0x8172ea);}[_0xeb7e9a(0x124)](_0x3819bf){const _0x26f100=_0xeb7e9a;this[_0x26f100(0x10c)](_0x26f100(0x134),_0x3819bf);}[_0xeb7e9a(0x128)](){const _0x3ae67f=_0xeb7e9a;this[_0x3ae67f(0xf2)][_0x3ae67f(0xec)]();}[_0xeb7e9a(0x12f)](){const _0x2e9b5c=_0xeb7e9a;this[_0x2e9b5c(0xf2)][_0x2e9b5c(0x131)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x163fa5=_0x30f3;function _0x4136(){const _0x342ab5=['73735REeBoi','27FHVvTG','ck-ai-chat__start-conversation','execute','ck-ai-header\x20ck-ai-header_chat','141346zqrzuR','AI_CHAT_LABEL_NEW_CHAT','conversationStartButton','children','fire','1103931vPoxmm','add','startConversation','AI_CHAT_HEADING','_createStartConversationButton','resizeButton','40094aVhGUm','102PgpLqf','215537HovrGK','394156gdGewr','32flZJzT','218130sJdxmm','set','locale','isMaximized'];_0x4136=function(){return _0x342ab5;};return _0x4136();}(function(_0x3cfbe4,_0x4e5d46){const _0x5036a5=_0x30f3,_0x5dd978=_0x3cfbe4();while(!![]){try{const _0x9a17d0=parseInt(_0x5036a5(0xb1))/0x1+parseInt(_0x5036a5(0xa3))/0x2*(-parseInt(_0x5036a5(0xad))/0x3)+-parseInt(_0x5036a5(0xa6))/0x4+-parseInt(_0x5036a5(0xac))/0x5*(-parseInt(_0x5036a5(0xa4))/0x6)+parseInt(_0x5036a5(0xa5))/0x7*(-parseInt(_0x5036a5(0xa7))/0x8)+parseInt(_0x5036a5(0xb6))/0x9+parseInt(_0x5036a5(0xa8))/0xa;if(_0x9a17d0===_0x4e5d46)break;else _0x5dd978['push'](_0x5dd978['shift']());}catch(_0x3ee5ce){_0x5dd978['push'](_0x5dd978['shift']());}}}(_0x4136,0x20cf7));import{ButtonView as _0xc34c58,FormHeaderView as _0x80e259}from'ckeditor5/src/ui.js';import{IconPlus as _0x46cba0,IconAIChat as _0x3a917c}from'ckeditor5/src/icons.js';import{getTranslation as _0x4c9548}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x1b0ee4}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';function _0x30f3(_0x2799d8,_0x52f258){const _0x4136b3=_0x4136();return _0x30f3=function(_0x30f345,_0x1afb59){_0x30f345=_0x30f345-0xa1;let _0x5ccd5e=_0x4136b3[_0x30f345];return _0x5ccd5e;},_0x30f3(_0x2799d8,_0x52f258);}export class AIChatHeaderView extends _0x80e259{[_0x163fa5(0xb3)];[_0x163fa5(0xa2)];constructor(_0x3de4f8,_0x4a23c){const _0x1972fb=_0x163fa5;super(_0x3de4f8,{'label':_0x4c9548(_0x3de4f8,_0x1972fb(0xb9)),'class':_0x1972fb(0xb0),'icon':_0x3a917c}),this[_0x1972fb(0xa9)](_0x1972fb(0xab),!0x1),this[_0x1972fb(0xb3)]=this[_0x1972fb(0xa1)](_0x3de4f8),this[_0x1972fb(0xb4)][_0x1972fb(0xb7)](this[_0x1972fb(0xb3)]),_0x4a23c&&(this[_0x1972fb(0xa2)]=_0x1b0ee4(_0x3de4f8,this),this[_0x1972fb(0xb4)][_0x1972fb(0xb7)](this[_0x1972fb(0xa2)]));}[_0x163fa5(0xa1)](_0xd4e16d){const _0x417af3=_0x163fa5,_0x58d8e6=new _0xc34c58(_0xd4e16d);return _0x58d8e6[_0x417af3(0xa9)]({'label':_0x4c9548(this[_0x417af3(0xaa)],_0x417af3(0xb2)),'withText':!0x0,'icon':_0x46cba0,'class':_0x417af3(0xae)}),_0x58d8e6['on'](_0x417af3(0xaf),()=>{const _0x30df72=_0x417af3;this[_0x30df72(0xb5)](_0x30df72(0xb8));}),_0x58d8e6;}}
23
+ const _0x1f1c20=_0xe690;(function(_0x4da015,_0x2bcf0e){const _0x3d709d=_0xe690,_0x1fc28d=_0x4da015();while(!![]){try{const _0x3efc82=-parseInt(_0x3d709d(0xf9))/0x1*(parseInt(_0x3d709d(0xfc))/0x2)+-parseInt(_0x3d709d(0xe5))/0x3+parseInt(_0x3d709d(0xf3))/0x4+parseInt(_0x3d709d(0xe6))/0x5*(-parseInt(_0x3d709d(0xf5))/0x6)+-parseInt(_0x3d709d(0xf8))/0x7+parseInt(_0x3d709d(0xe7))/0x8*(-parseInt(_0x3d709d(0xf6))/0x9)+parseInt(_0x3d709d(0xea))/0xa;if(_0x3efc82===_0x2bcf0e)break;else _0x1fc28d['push'](_0x1fc28d['shift']());}catch(_0x2f88b2){_0x1fc28d['push'](_0x1fc28d['shift']());}}}(_0x11d2,0x47f05));import{ButtonView as _0x353b8e,FormHeaderView as _0x36e688}from'ckeditor5/src/ui.js';import{IconPlus as _0x24aad0,IconAIChat as _0x13dcef}from'ckeditor5/src/icons.js';import{getTranslation as _0x984488}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x2c1615}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x36e688{[_0x1f1c20(0xe9)];[_0x1f1c20(0xfb)];constructor(_0x2c2d02,_0x5ae96d){const _0x58f4b4=_0x1f1c20;super(_0x2c2d02,{'label':_0x984488(_0x2c2d02,_0x58f4b4(0xf2)),'class':_0x58f4b4(0xf1),'icon':_0x13dcef}),this[_0x58f4b4(0xf4)](_0x58f4b4(0xf7),!0x1),this[_0x58f4b4(0xe9)]=this[_0x58f4b4(0xe4)](_0x2c2d02),this[_0x58f4b4(0xf0)][_0x58f4b4(0xef)](this[_0x58f4b4(0xe9)]),_0x5ae96d&&(this[_0x58f4b4(0xfb)]=_0x2c1615(_0x2c2d02,this),this[_0x58f4b4(0xf0)][_0x58f4b4(0xef)](this[_0x58f4b4(0xfb)]));}[_0x1f1c20(0xe4)](_0x35f424){const _0x54718f=_0x1f1c20,_0x371f00=new _0x353b8e(_0x35f424);return _0x371f00[_0x54718f(0xf4)]({'label':_0x984488(this[_0x54718f(0xeb)],_0x54718f(0xee)),'withText':!0x0,'icon':_0x24aad0,'class':_0x54718f(0xfa)}),_0x371f00['on'](_0x54718f(0xec),()=>{const _0x33ce95=_0x54718f;this[_0x33ce95(0xe8)](_0x33ce95(0xed));}),_0x371f00;}}function _0xe690(_0x3934c4,_0x554180){const _0x11d282=_0x11d2();return _0xe690=function(_0xe69022,_0x4cea8d){_0xe69022=_0xe69022-0xe4;let _0x155451=_0x11d282[_0xe69022];return _0x155451;},_0xe690(_0x3934c4,_0x554180);}function _0x11d2(){const _0x15b35f=['ck-ai-chat__start-conversation','resizeButton','20698IeSkcw','_createStartConversationButton','807378rTOeBU','1420BAxJun','8ZTnPao','fire','conversationStartButton','17031550aXygkY','locale','execute','startConversation','AI_CHAT_LABEL_NEW_CHAT','add','children','ck-ai-header\x20ck-ai-header_chat','AI_CHAT_HEADING','398296jyUopZ','set','7164CfYLFb','110016tidEZz','isMaximized','2808533kJTSqB','47CfPUAZ'];_0x11d2=function(){return _0x15b35f;};return _0x11d2();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x27c277=_0x3c0f;(function(_0x5a0675,_0x2373c1){var _0x136112=_0x3c0f,_0x1cefe6=_0x5a0675();while(!![]){try{var _0x523a43=-parseInt(_0x136112(0x101))/0x1+-parseInt(_0x136112(0x102))/0x2+parseInt(_0x136112(0x105))/0x3+parseInt(_0x136112(0x107))/0x4+-parseInt(_0x136112(0xf6))/0x5+parseInt(_0x136112(0x100))/0x6*(parseInt(_0x136112(0xf8))/0x7)+-parseInt(_0x136112(0xf7))/0x8*(-parseInt(_0x136112(0xf9))/0x9);if(_0x523a43===_0x2373c1)break;else _0x1cefe6['push'](_0x1cefe6['shift']());}catch(_0x2a27c9){_0x1cefe6['push'](_0x1cefe6['shift']());}}}(_0x490b,0x2c6ae));import{View as _0x303157,BodyCollection as _0x2a7285}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3b154d}from'../utils/eventnames.js';function _0x490b(){var _0x39a722=['_bodyCollection','ck-reset_all','347829HMsotO','div','326000wnoXZH','populateSourceResourceBalloon','chatDisclaimer','setTemplate','delegate','ck-rounded-corners','chatFeed','showResizeButton','destroy','ck-ai-chat','chatControls','220335vanrMR','184xyDzXr','7ylIFEO','84447hJKagw','contextResourcesSearchInputVisibleFrom','chatHeader','attachToDom','closeSourceResourceBalloon','detachFromDom','uiLanguageDirection','1005846PNDBUB','182996hOZULc','343792HoQaRJ'];_0x490b=function(){return _0x39a722;};return _0x490b();}import{AIChatFeedView as _0x1fae71}from'./aichatfeedview.js';function _0x3c0f(_0x1ce941,_0x515a0c){var _0x490bf0=_0x490b();return _0x3c0f=function(_0x3c0f4d,_0x4d1f41){_0x3c0f4d=_0x3c0f4d-0xf6;var _0x3b00db=_0x490bf0[_0x3c0f4d];return _0x3b00db;},_0x3c0f(_0x1ce941,_0x515a0c);}import{AIChatControlsView as _0x5db48e}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x2a61ac}from'./aichatheaderview.js';import{AIDisclaimerView as _0x40938d}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x303157{[_0x27c277(0xfb)];[_0x27c277(0x10d)];[_0x27c277(0x111)];[_0x27c277(0x109)];[_0x27c277(0x103)];constructor(_0x3b95cd,_0x299089){var _0x1ac62b=_0x27c277;super(_0x3b95cd),this[_0x1ac62b(0x103)]=new _0x2a7285(_0x3b95cd),this[_0x1ac62b(0x103)][_0x1ac62b(0xfc)](),this[_0x1ac62b(0xfb)]=new _0x2a61ac(_0x3b95cd,_0x299089[_0x1ac62b(0x10e)]),this[_0x1ac62b(0xfb)][_0x1ac62b(0x10b)](..._0x3b154d)['to'](this),this[_0x1ac62b(0x10d)]=new _0x1fae71(_0x3b95cd,this[_0x1ac62b(0x103)]),this[_0x1ac62b(0x10d)][_0x1ac62b(0x10b)](..._0x3b154d)['to'](this),this[_0x1ac62b(0x111)]=new _0x5db48e(_0x3b95cd,{'bodyCollection':this[_0x1ac62b(0x103)],'contextResourcesSearchInputVisibleFrom':_0x299089[_0x1ac62b(0xfa)]}),this[_0x1ac62b(0x111)][_0x1ac62b(0x10b)](..._0x3b154d)['to'](this),this[_0x1ac62b(0x109)]=new _0x40938d(_0x3b95cd),this[_0x1ac62b(0x10a)]({'tag':_0x1ac62b(0x106),'attributes':{'class':['ck',_0x1ac62b(0x104),_0x1ac62b(0x110),_0x1ac62b(0x10c)],'dir':_0x3b95cd[_0x1ac62b(0xff)]},'children':[this[_0x1ac62b(0xfb)],this[_0x1ac62b(0x10d)],this[_0x1ac62b(0x111)],this[_0x1ac62b(0x109)]]});}[_0x27c277(0x108)](_0x492d47,_0x4cfe64,_0x5e94f4,_0x4b4400){var _0x537eae=_0x27c277;this[_0x537eae(0x111)][_0x537eae(0x108)](_0x492d47,_0x4cfe64,_0x5e94f4,_0x4b4400);}[_0x27c277(0xfd)](_0xb07dc3){var _0x3d78d5=_0x27c277;this[_0x3d78d5(0x111)][_0x3d78d5(0xfd)](_0xb07dc3);}[_0x27c277(0x10f)](){var _0x3b3cac=_0x27c277;this[_0x3b3cac(0x103)][_0x3b3cac(0xfe)](),super[_0x3b3cac(0x10f)]();}}
23
+ var _0x203d50=_0x2a4b;(function(_0x37cad2,_0x2394bb){var _0x2b575b=_0x2a4b,_0x3f3db5=_0x37cad2();while(!![]){try{var _0x351bce=-parseInt(_0x2b575b(0x170))/0x1*(parseInt(_0x2b575b(0x160))/0x2)+-parseInt(_0x2b575b(0x16f))/0x3*(parseInt(_0x2b575b(0x176))/0x4)+-parseInt(_0x2b575b(0x165))/0x5*(-parseInt(_0x2b575b(0x175))/0x6)+-parseInt(_0x2b575b(0x15a))/0x7*(-parseInt(_0x2b575b(0x166))/0x8)+parseInt(_0x2b575b(0x15f))/0x9*(-parseInt(_0x2b575b(0x178))/0xa)+parseInt(_0x2b575b(0x15b))/0xb*(-parseInt(_0x2b575b(0x16c))/0xc)+-parseInt(_0x2b575b(0x16a))/0xd*(-parseInt(_0x2b575b(0x16e))/0xe);if(_0x351bce===_0x2394bb)break;else _0x3f3db5['push'](_0x3f3db5['shift']());}catch(_0x1fb6b9){_0x3f3db5['push'](_0x3f3db5['shift']());}}}(_0x43dd,0xe5733));function _0x2a4b(_0xcf1f0a,_0x80b9b8){var _0x43ddbf=_0x43dd();return _0x2a4b=function(_0x2a4b8b,_0x1800ac){_0x2a4b8b=_0x2a4b8b-0x158;var _0x213bbe=_0x43ddbf[_0x2a4b8b];return _0x213bbe;},_0x2a4b(_0xcf1f0a,_0x80b9b8);}import{View as _0x11f77b,BodyCollection as _0x56f048}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x29787f}from'../utils/eventnames.js';import{AIChatFeedView as _0x5c98ac}from'./aichatfeedview.js';import{AIChatControlsView as _0x4f5bd5}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x31aef5}from'./aichatheaderview.js';import{AIDisclaimerView as _0x3bbce6}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';function _0x43dd(){var _0x5ba94d=['div','uiLanguageDirection','contextResourcesSearchInputVisibleFrom','78JurOmn','attachToDom','9448224EEmEMt','chatDisclaimer','10359888HAvMwb','1254735KiIkVq','10448LIRYsX','ck-reset_all','chatHeader','showResizeButton','populateSourceResourceBalloon','1194DmCIhG','4JOTPWO','chatFeed','10177710VWaoCB','_bodyCollection','ck-rounded-corners','1687dEofEa','22AtPEZu','setTemplate','delegate','chatControls','9uqKTDa','348xTDlMP','closeSourceResourceBalloon','destroy','detachFromDom','ck-ai-chat','19405qJKREP','18464TVvJGu'];_0x43dd=function(){return _0x5ba94d;};return _0x43dd();}import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x11f77b{[_0x203d50(0x172)];[_0x203d50(0x177)];[_0x203d50(0x15e)];[_0x203d50(0x16d)];[_0x203d50(0x158)];constructor(_0x5da854,_0x654fd0){var _0xaf39b2=_0x203d50;super(_0x5da854),this[_0xaf39b2(0x158)]=new _0x56f048(_0x5da854),this[_0xaf39b2(0x158)][_0xaf39b2(0x16b)](),this[_0xaf39b2(0x172)]=new _0x31aef5(_0x5da854,_0x654fd0[_0xaf39b2(0x173)]),this[_0xaf39b2(0x172)][_0xaf39b2(0x15d)](..._0x29787f)['to'](this),this[_0xaf39b2(0x177)]=new _0x5c98ac(_0x5da854,this[_0xaf39b2(0x158)]),this[_0xaf39b2(0x177)][_0xaf39b2(0x15d)](..._0x29787f)['to'](this),this[_0xaf39b2(0x15e)]=new _0x4f5bd5(_0x5da854,{'bodyCollection':this[_0xaf39b2(0x158)],'contextResourcesSearchInputVisibleFrom':_0x654fd0[_0xaf39b2(0x169)]}),this[_0xaf39b2(0x15e)][_0xaf39b2(0x15d)](..._0x29787f)['to'](this),this[_0xaf39b2(0x16d)]=new _0x3bbce6(_0x5da854),this[_0xaf39b2(0x15c)]({'tag':_0xaf39b2(0x167),'attributes':{'class':['ck',_0xaf39b2(0x171),_0xaf39b2(0x164),_0xaf39b2(0x159)],'dir':_0x5da854[_0xaf39b2(0x168)]},'children':[this[_0xaf39b2(0x172)],this[_0xaf39b2(0x177)],this[_0xaf39b2(0x15e)],this[_0xaf39b2(0x16d)]]});}[_0x203d50(0x174)](_0x2fa4e9,_0x4ede91,_0x1856f4,_0x510162){var _0xc8e201=_0x203d50;this[_0xc8e201(0x15e)][_0xc8e201(0x174)](_0x2fa4e9,_0x4ede91,_0x1856f4,_0x510162);}[_0x203d50(0x161)](_0x3f4be8){var _0x3382e5=_0x203d50;this[_0x3382e5(0x15e)][_0x3382e5(0x161)](_0x3f4be8);}[_0x203d50(0x162)](){var _0xb8f0b8=_0x203d50;this[_0xb8f0b8(0x158)][_0xb8f0b8(0x163)](),super[_0xb8f0b8(0x162)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x42d560=_0x21c6;(function(_0x2358f8,_0xe7d416){const _0x132f68=_0x21c6,_0x406603=_0x2358f8();while(!![]){try{const _0x4b6b53=parseInt(_0x132f68(0x1cd))/0x1*(-parseInt(_0x132f68(0x1ce))/0x2)+-parseInt(_0x132f68(0x1f1))/0x3+parseInt(_0x132f68(0x1b0))/0x4+-parseInt(_0x132f68(0x1ae))/0x5*(-parseInt(_0x132f68(0x1f8))/0x6)+-parseInt(_0x132f68(0x1d4))/0x7*(-parseInt(_0x132f68(0x1e7))/0x8)+-parseInt(_0x132f68(0x1d6))/0x9*(-parseInt(_0x132f68(0x1ec))/0xa)+parseInt(_0x132f68(0x1f3))/0xb*(-parseInt(_0x132f68(0x1eb))/0xc);if(_0x4b6b53===_0xe7d416)break;else _0x406603['push'](_0x406603['shift']());}catch(_0x9fcb2c){_0x406603['push'](_0x406603['shift']());}}}(_0x203c,0x7d134));function _0x203c(){const _0x2382ab=['className','_calculateContainerWidth','_intersectionObserver','button','cssClasses','createElement','_createContainerElements','+\x201','some','includes','_config','_visibleChips','innerWidth','from','documentElement','77267AZDbRL','2FjEfKj','parentElement','body','_isContainerVisible','hideBalloonPanel','_createCalculationContainer','375277lGmThE','_parentView','794628NqjwzD','appendChild','undefined','hidden','tagName','_createShowMoreButton','remove','overflowContainer','pin','right','textContent','reorganizeChips','display','getBoundingClientRect','0px','toLowerCase','isConnected','24fPWvgl','element','clear','pointerEvents','8124KZOrfF','20IiSZWs','_createShowMoreBalloonPanelView','_createMockButton','_restoreAncestorVisibility','block','83142WrpGGf','destroy','5973imnReP','visible\x20!important','slice','isOn','execute','78AIYkeb','_updateBalloonContent','showBalloonPanel','overflowChips','classList','push','-9999px','_updateOverflowUI','_distributeChips','pop','isVisible','setContainerElement','_calculateOverflowInContainer','_handleShowMoreButtonClick','opacity','absolute','render','rowDetectionTolerance','_showMoreButtonView','none','forEach','_setupVisibilityObserver','visible','_targetContainer','_repinBalloonPanel','width','_testButtonFit','getComputedStyle','extendTemplate','controlsButton','disconnect','height','length','innerHeight','children','showMoreLabelPrefix','hide','innerHTML','cloneNode','_locale','300px','_applyCalculationStyles','position','ck-calculation-container','top','50px','_applyOverflowResults','div','boxSizing','visibility','show','_overflowChips','_containerElement','_showMoreBalloonPanelView','abs','clientHeight','label','calculationContainer','_checkAndHandleOverflow','set','_ancestorsToRestore','showMoreButtonView','_bodyCollection','isIntersecting','block\x20!important','add','_pendingCalculation','querySelector','left','auto','clientWidth','offsetWidth','bottom','_makeAncestorsVisible','border-box','maxVisibleRows','140515HWxEpw','disableAnimationOnEnter','1128576IHXPlK','observe','showMoreButton','showMoreBalloon','style','.ck-ai-chat','_renderChipsAndCountRows','filter','content','_findTargetContainer','_updateShowMoreButtonVisibility','setTemplate','zIndex','_createShowMoreButtonView'];_0x203c=function(){return _0x2382ab;};return _0x203c();}function _0x21c6(_0x328dd3,_0x57c022){const _0x203c01=_0x203c();return _0x21c6=function(_0x21c63d,_0x21e186){_0x21c63d=_0x21c63d-0x199;let _0x4a090b=_0x203c01[_0x21c63d];return _0x4a090b;},_0x21c6(_0x328dd3,_0x57c022);}import{View as _0x53f370,BalloonPanelView as _0x7c1411,ButtonView as _0x183d49,clickOutsideHandler as _0x3351fc}from'ckeditor5/src/ui.js';import{Collection as _0x4ad47c}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x42d560(0x220);export class AIChatChipsOverflowManager{[_0x42d560(0x21f)];[_0x42d560(0x1c8)];[_0x42d560(0x1c9)];[_0x42d560(0x22b)];[_0x42d560(0x20a)]=null;[_0x42d560(0x22d)]=null;[_0x42d560(0x22c)]=null;[_0x42d560(0x1a0)];[_0x42d560(0x1d5)]=null;[_0x42d560(0x1c0)]=null;[_0x42d560(0x1a4)]=!0x1;constructor(_0x193bdc,_0x2a70c1,_0x5d0681,_0x16d8cf,_0x3f4261){const _0x1bcc5f=_0x42d560;this[_0x1bcc5f(0x21f)]=_0x193bdc,this[_0x1bcc5f(0x1c9)]=_0x2a70c1,this[_0x1bcc5f(0x1c8)]={...hn,..._0x5d0681,'cssClasses':{'controlsButton':'','calculationContainer':_0x1bcc5f(0x223),..._0x5d0681[_0x1bcc5f(0x1c2)]}},this[_0x1bcc5f(0x22b)]=new _0x4ad47c(),this[_0x1bcc5f(0x1a0)]=_0x16d8cf,this[_0x1bcc5f(0x1d5)]=_0x3f4261||null;}[_0x42d560(0x203)](_0x12927f){const _0x24c972=_0x42d560;this[_0x24c972(0x1c0)]&&(this[_0x24c972(0x1c0)][_0x24c972(0x216)](),this[_0x24c972(0x1c0)]=null),this[_0x24c972(0x22c)]=_0x12927f,this[_0x24c972(0x20d)]();}get[_0x42d560(0x19f)](){const _0x5d4c29=_0x42d560;return this[_0x5d4c29(0x20a)];}get[_0x42d560(0x1fb)](){const _0x37d70d=_0x42d560;return this[_0x37d70d(0x22b)];}[_0x42d560(0x1e1)](){requestAnimationFrame(()=>{const _0x22ecea=_0x21c6;this[_0x22ecea(0x19c)]();});}[_0x42d560(0x1fa)](){const _0x2a0d87=_0x42d560;this[_0x2a0d87(0x20a)]&&this[_0x2a0d87(0x22d)]&&(this[_0x2a0d87(0x1f9)](),this[_0x2a0d87(0x20a)][_0x2a0d87(0x1f6)]=!0x0,this[_0x2a0d87(0x22d)][_0x2a0d87(0x22a)](),this[_0x2a0d87(0x22d)][_0x2a0d87(0x1de)]({'target':this[_0x2a0d87(0x20a)][_0x2a0d87(0x1e8)],'limiter':document[_0x2a0d87(0x1a5)](_0x2a0d87(0x1b5))}));}[_0x42d560(0x1d2)](){const _0xd39e1a=_0x42d560;this[_0xd39e1a(0x20a)]&&this[_0xd39e1a(0x22d)]&&(this[_0xd39e1a(0x20a)][_0xd39e1a(0x1f6)]=!0x1,this[_0xd39e1a(0x22d)][_0xd39e1a(0x21c)]());}[_0x42d560(0x1e9)](){const _0x76cc2a=_0x42d560;this[_0x76cc2a(0x22b)][_0x76cc2a(0x1e9)](),this[_0x76cc2a(0x1d2)](),this[_0x76cc2a(0x1ba)](),this[_0x76cc2a(0x20a)]&&(this[_0x76cc2a(0x20a)][_0x76cc2a(0x19a)]=''),this[_0x76cc2a(0x22d)]&&this[_0x76cc2a(0x22d)][_0x76cc2a(0x1b8)][_0x76cc2a(0x1e9)]();}[_0x42d560(0x1f2)](){const _0x3adfaa=_0x42d560;this[_0x3adfaa(0x1c0)]&&(this[_0x3adfaa(0x1c0)][_0x3adfaa(0x216)](),this[_0x3adfaa(0x1c0)]=null),this[_0x3adfaa(0x20a)]&&(this[_0x3adfaa(0x20a)][_0x3adfaa(0x1f2)](),this[_0x3adfaa(0x20a)]=null),this[_0x3adfaa(0x22d)]&&(this[_0x3adfaa(0x22d)][_0x3adfaa(0x1f2)](),this[_0x3adfaa(0x22d)]=null);}[_0x42d560(0x19c)](){const _0x38b244=_0x42d560;if(!this[_0x38b244(0x22c)])return;if(!this[_0x38b244(0x1d1)]())return void(this[_0x38b244(0x1a4)]=!0x0);this[_0x38b244(0x1a4)]=!0x1;const _0x55aff2=[...this[_0x38b244(0x1c9)],...this[_0x38b244(0x22b)]],_0x3fe7af=this[_0x38b244(0x1d3)](),_0x3f500e=this[_0x38b244(0x204)](_0x3fe7af,_0x55aff2),_0x3b2e86=_0x3fe7af[_0x38b244(0x19e)];_0x3b2e86&&this[_0x38b244(0x1ef)](_0x3b2e86),_0x3fe7af[_0x38b244(0x1dc)](),this[_0x38b244(0x226)](_0x55aff2,_0x3f500e);}[_0x42d560(0x1db)](){const _0x17c724=_0x42d560;this[_0x17c724(0x20a)]=this[_0x17c724(0x1bd)](),this[_0x17c724(0x22d)]=this[_0x17c724(0x1ed)](),this[_0x17c724(0x20a)][_0x17c724(0x208)](),this[_0x17c724(0x22c)][_0x17c724(0x1d7)](this[_0x17c724(0x20a)][_0x17c724(0x1e8)]),this[_0x17c724(0x20a)]['on'](_0x17c724(0x1f7),()=>{const _0x49fd14=_0x17c724;this[_0x49fd14(0x205)]();}),_0x3351fc({'emitter':this[_0x17c724(0x22d)],'contextElements':[this[_0x17c724(0x22d)][_0x17c724(0x1e8)],this[_0x17c724(0x20a)][_0x17c724(0x1e8)]],'callback':()=>this[_0x17c724(0x1d2)](),'activator':()=>this[_0x17c724(0x20a)][_0x17c724(0x1f6)]});}[_0x42d560(0x1bd)](){const _0x368ac8=_0x42d560,_0x314a6c=new _0x183d49(this[_0x368ac8(0x21f)]);_0x314a6c[_0x368ac8(0x19d)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x418d58=[this[_0x368ac8(0x1c8)][_0x368ac8(0x1c2)][_0x368ac8(0x1b2)]];return this[_0x368ac8(0x1c8)][_0x368ac8(0x1c2)][_0x368ac8(0x215)]&&_0x418d58[_0x368ac8(0x1fd)](this[_0x368ac8(0x1c8)][_0x368ac8(0x1c2)][_0x368ac8(0x215)]),_0x314a6c[_0x368ac8(0x214)]({'attributes':{'class':_0x418d58}}),_0x314a6c;}[_0x42d560(0x1ed)](){const _0x45e2e7=_0x42d560,_0x4e65e1=new _0x7c1411(this[_0x45e2e7(0x21f)]);return _0x4e65e1[_0x45e2e7(0x214)]({'attributes':{'class':this[_0x45e2e7(0x1c8)][_0x45e2e7(0x1c2)][_0x45e2e7(0x1b3)]}}),this[_0x45e2e7(0x1a0)][_0x45e2e7(0x1a3)](_0x4e65e1),_0x4e65e1;}[_0x42d560(0x1f9)](){const _0x3b0f51=_0x42d560;if(this[_0x3b0f51(0x22d)]&&(this[_0x3b0f51(0x22d)][_0x3b0f51(0x1b8)][_0x3b0f51(0x1e9)](),this[_0x3b0f51(0x22b)][_0x3b0f51(0x218)]>0x0)){this[_0x3b0f51(0x22b)][_0x3b0f51(0x20c)](_0x2530b8=>{const _0x4b2bba=_0x3b0f51;_0x2530b8[_0x4b2bba(0x1af)]();});const _0x22b968=new _0x53f370(this[_0x3b0f51(0x21f)]);_0x22b968[_0x3b0f51(0x1bb)]({'tag':_0x3b0f51(0x227),'attributes':{'class':this[_0x3b0f51(0x1c8)][_0x3b0f51(0x1c2)][_0x3b0f51(0x1dd)]},'children':this[_0x3b0f51(0x22b)]}),this[_0x3b0f51(0x22d)][_0x3b0f51(0x1b8)][_0x3b0f51(0x1a3)](_0x22b968);}}[_0x42d560(0x205)](){const _0x2bd791=_0x42d560;this[_0x2bd791(0x20a)][_0x2bd791(0x1f6)]?this[_0x2bd791(0x1d2)]():this[_0x2bd791(0x1fa)]();}[_0x42d560(0x1ba)](){const _0x2accb9=_0x42d560,_0xace7b5=this[_0x2accb9(0x22b)][_0x2accb9(0x218)]>0x0;this[_0x2accb9(0x20a)]?.[_0x2accb9(0x1e8)]&&(this[_0x2accb9(0x20a)][_0x2accb9(0x1e8)][_0x2accb9(0x1b4)][_0x2accb9(0x1e2)]=_0xace7b5?'':_0x2accb9(0x20b));}[_0x42d560(0x210)](){const _0xa50baf=_0x42d560;this[_0xa50baf(0x20a)]?.[_0xa50baf(0x1f6)]&&this[_0xa50baf(0x22d)]?.[_0xa50baf(0x202)]&&this[_0xa50baf(0x20a)][_0xa50baf(0x1e8)]&&this[_0xa50baf(0x22d)][_0xa50baf(0x1de)]({'target':this[_0xa50baf(0x20a)][_0xa50baf(0x1e8)],'limiter':document[_0xa50baf(0x1a5)](_0xa50baf(0x1b5))});}[_0x42d560(0x1b9)](_0x2a0fdc){const _0x139544=_0x42d560,_0x303bcd=this[_0x139544(0x22c)]?.[_0x139544(0x1da)][_0x139544(0x1e5)]()||_0x139544(0x227),_0x463fd5=this[_0x139544(0x22c)]?.[_0x139544(0x1fc)];if(_0x463fd5){const _0x19347b=_0x463fd5[0x0]||'',_0x3096f3=_0x2a0fdc[_0x139544(0x1a5)]('.'+_0x19347b),_0x2a2ed7=_0x2a0fdc[_0x139544(0x1a5)](_0x303bcd);return _0x3096f3||_0x2a2ed7||_0x2a0fdc;}return _0x2a0fdc[_0x139544(0x1a5)](_0x303bcd)||_0x2a0fdc;}[_0x42d560(0x1bf)](){const _0x5535fc=_0x42d560,_0x4c1a3a=this[_0x5535fc(0x1d5)]?.[_0x5535fc(0x1e8)]||this[_0x5535fc(0x22c)];if(!_0x4c1a3a)return an;const _0x3d3596=window[_0x5535fc(0x213)](_0x4c1a3a)[_0x5535fc(0x211)];if(_0x5535fc(0x1a7)===_0x3d3596||_0x5535fc(0x1e4)===_0x3d3596||!_0x3d3596){const _0x4e4a95=_0x4c1a3a[_0x5535fc(0x1cf)];if(_0x4e4a95){const _0x47e472=window[_0x5535fc(0x213)](_0x4e4a95);return _0x5535fc(0x1a7)!==_0x47e472[_0x5535fc(0x211)]?_0x47e472[_0x5535fc(0x211)]:an;}return an;}return _0x3d3596;}[_0x42d560(0x221)](_0x1af5bd,_0xadff38){const _0x191159=_0x42d560;this[_0x191159(0x1c8)][_0x191159(0x1c2)][_0x191159(0x19b)]&&_0x1af5bd[_0x191159(0x1fc)][_0x191159(0x1a3)](this[_0x191159(0x1c8)][_0x191159(0x1c2)][_0x191159(0x19b)]),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x211)]=_0xadff38,_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x222)]=_0x191159(0x207),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x224)]=_0x191159(0x1fe),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x1a6)]=_0x191159(0x1fe),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x206)]='0',_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x1ea)]=_0x191159(0x20b),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x1bc)]='-1',_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x229)]=_0x191159(0x1f4),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x1e2)]=_0x191159(0x1a2),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x228)]=_0x191159(0x1ac);}[_0x42d560(0x1ef)](_0x1ff2ad){const _0x2cd56f=_0x42d560;_0x1ff2ad[_0x2cd56f(0x20c)](({element:_0x7367c0,originalDisplay:_0x458d83,originalVisibility:_0x1b2eba})=>{const _0x1edeed=_0x2cd56f;_0x7367c0[_0x1edeed(0x1b4)][_0x1edeed(0x1e2)]=_0x458d83,_0x7367c0[_0x1edeed(0x1b4)][_0x1edeed(0x229)]=_0x1b2eba;});}[_0x42d560(0x1ab)](_0x2640e7){const _0x370d0c=_0x42d560,_0x23b719=[];let _0x3d21a7=_0x2640e7;for(;_0x3d21a7&&_0x3d21a7!==document[_0x370d0c(0x1d0)];){const _0x339f19=window[_0x370d0c(0x213)](_0x3d21a7);_0x370d0c(0x20b)!==_0x339f19[_0x370d0c(0x1e2)]&&_0x370d0c(0x1d9)!==_0x339f19[_0x370d0c(0x229)]||(_0x23b719[_0x370d0c(0x1fd)]({'element':_0x3d21a7,'originalDisplay':_0x3d21a7[_0x370d0c(0x1b4)][_0x370d0c(0x1e2)],'originalVisibility':_0x3d21a7[_0x370d0c(0x1b4)][_0x370d0c(0x229)]}),_0x3d21a7[_0x370d0c(0x1b4)][_0x370d0c(0x1e2)]=_0x370d0c(0x1f0),_0x3d21a7[_0x370d0c(0x1b4)][_0x370d0c(0x229)]=_0x370d0c(0x20e)),_0x3d21a7=_0x3d21a7[_0x370d0c(0x1cf)];}return _0x23b719;}[_0x42d560(0x1c4)](){const _0x9176cb=_0x42d560;let _0x20940f,_0x10d934;return this[_0x9176cb(0x1d5)]?.[_0x9176cb(0x1e8)]?(_0x20940f=this[_0x9176cb(0x1d5)][_0x9176cb(0x1e8)][_0x9176cb(0x21e)](!0x0),_0x10d934=this[_0x9176cb(0x1b9)](_0x20940f)):(_0x20940f=document[_0x9176cb(0x1c3)](_0x9176cb(0x227)),_0x10d934=_0x20940f),{'calculationContainer':_0x20940f,'targetContainer':_0x10d934};}[_0x42d560(0x1d3)](){const _0x2d25e4=_0x42d560,{calculationContainer:_0x4bc6c3,targetContainer:_0x4a864c}=this[_0x2d25e4(0x1c4)](),_0x537341=this[_0x2d25e4(0x1bf)]();this[_0x2d25e4(0x221)](_0x4bc6c3,_0x537341);const _0x44427d=this[_0x2d25e4(0x1d5)]?.[_0x2d25e4(0x1e8)]||this[_0x2d25e4(0x22c)],_0x13c7b3=_0x44427d?.[_0x2d25e4(0x1cf)];_0x13c7b3?_0x13c7b3[_0x2d25e4(0x1d7)](_0x4bc6c3):document[_0x2d25e4(0x1d0)][_0x2d25e4(0x1d7)](_0x4bc6c3),_0x4bc6c3[_0x2d25e4(0x20f)]=_0x4a864c;const _0x571242=this[_0x2d25e4(0x1ab)](_0x13c7b3||null);return _0x4bc6c3[_0x2d25e4(0x1a9)],_0x4bc6c3[_0x2d25e4(0x19e)]=_0x571242,_0x4bc6c3;}[_0x42d560(0x204)](_0x184692,_0x5addde){const _0x3385dc=_0x42d560,_0x2d702b=_0x184692[_0x3385dc(0x20f)]||_0x184692,_0x4fbd44=[],{rowCount:_0x254980}=this[_0x3385dc(0x1b6)](_0x2d702b,_0x5addde);if(_0x254980<=this[_0x3385dc(0x1c8)][_0x3385dc(0x1ad)])return _0x4fbd44;const _0x2de62e=_0x5addde[_0x3385dc(0x1f5)]();for(;_0x2de62e[_0x3385dc(0x218)]>0x0;){if(this[_0x3385dc(0x212)](_0x184692,_0x2d702b,_0x2de62e)){const _0xf91938=_0x5addde[_0x3385dc(0x1b7)](_0xb7fb4f=>!_0x2de62e[_0x3385dc(0x1c7)](_0xb7fb4f));_0x4fbd44[_0x3385dc(0x1fd)](..._0xf91938);break;}if(!_0x2de62e[_0x3385dc(0x201)]())break;}return _0x4fbd44;}[_0x42d560(0x1b6)](_0x3dcd00,_0x38d01c){const _0x522669=_0x42d560;_0x3dcd00[_0x522669(0x21d)]='',_0x38d01c[_0x522669(0x20c)](_0x6fafa3=>{const _0x4c442c=_0x522669;if(_0x6fafa3[_0x4c442c(0x1e8)]){const _0x444dee=_0x6fafa3[_0x4c442c(0x1e8)][_0x4c442c(0x21e)](!0x0);_0x3dcd00[_0x4c442c(0x1d7)](_0x444dee);}}),_0x3dcd00[_0x522669(0x1a9)];const _0x369573=_0x3dcd00[_0x522669(0x21a)],_0xac025d=[];return Array[_0x522669(0x1cb)](_0x369573)[_0x522669(0x20c)](_0x11da22=>{const _0x554a20=_0x522669,_0x549cc=_0x11da22[_0x554a20(0x1e3)]()[_0x554a20(0x224)];_0xac025d[_0x554a20(0x1c6)](_0x24cb87=>Math[_0x554a20(0x22e)](_0x24cb87-_0x549cc)<this[_0x554a20(0x1c8)][_0x554a20(0x209)])||_0xac025d[_0x554a20(0x1fd)](_0x549cc);}),{'rowCount':_0xac025d[_0x522669(0x218)]};}[_0x42d560(0x1ee)](){const _0x1ceceb=_0x42d560,_0x846bc6=document[_0x1ceceb(0x1c3)](_0x1ceceb(0x1c1));return _0x846bc6[_0x1ceceb(0x1be)]=this[_0x1ceceb(0x1c8)][_0x1ceceb(0x1c2)][_0x1ceceb(0x1b2)],this[_0x1ceceb(0x1c8)][_0x1ceceb(0x1c2)][_0x1ceceb(0x215)]&&_0x846bc6[_0x1ceceb(0x1fc)][_0x1ceceb(0x1a3)](this[_0x1ceceb(0x1c8)][_0x1ceceb(0x1c2)][_0x1ceceb(0x215)]),_0x846bc6[_0x1ceceb(0x1e0)]=_0x1ceceb(0x1c5),_0x846bc6;}[_0x42d560(0x212)](_0x31e441,_0x529fe4,_0x2ea0c0){const _0x38b71c=_0x42d560;this[_0x38b71c(0x1b6)](_0x529fe4,_0x2ea0c0);const _0x22c275=this[_0x38b71c(0x1ee)]();_0x31e441[_0x38b71c(0x1d7)](_0x22c275),_0x31e441[_0x38b71c(0x1a9)];const _0x29c469=[..._0x529fe4[_0x38b71c(0x21a)],_0x22c275],_0x4f71a7=[];_0x29c469[_0x38b71c(0x20c)](_0x28effd=>{const _0x245006=_0x38b71c,_0x3d2a2e=_0x28effd[_0x245006(0x1e3)]()[_0x245006(0x224)];_0x4f71a7[_0x245006(0x1c6)](_0x4ad0c2=>Math[_0x245006(0x22e)](_0x4ad0c2-_0x3d2a2e)<this[_0x245006(0x1c8)][_0x245006(0x209)])||_0x4f71a7[_0x245006(0x1fd)](_0x3d2a2e);});const _0x157070=_0x4f71a7[_0x38b71c(0x218)];return _0x22c275[_0x38b71c(0x1dc)](),_0x157070<=this[_0x38b71c(0x1c8)][_0x38b71c(0x1ad)];}[_0x42d560(0x200)](_0x167050,_0x3117e0){const _0x24dda0=_0x42d560;this[_0x24dda0(0x1c9)][_0x24dda0(0x1e9)](),this[_0x24dda0(0x22b)][_0x24dda0(0x1e9)](),_0x167050[_0x24dda0(0x20c)](_0x6e1ec7=>{const _0x141bcc=_0x24dda0;_0x3117e0[_0x141bcc(0x1c7)](_0x6e1ec7)?this[_0x141bcc(0x22b)][_0x141bcc(0x1a3)](_0x6e1ec7):this[_0x141bcc(0x1c9)][_0x141bcc(0x1a3)](_0x6e1ec7);});}[_0x42d560(0x1ff)](_0x1f0cd6){const _0x223688=_0x42d560;if(_0x1f0cd6>0x0&&!this[_0x223688(0x20a)]&&this[_0x223688(0x1db)](),_0x1f0cd6>0x0&&this[_0x223688(0x20a)]){const _0x1bedce=''+this[_0x223688(0x1c8)][_0x223688(0x21b)]+(_0x1f0cd6<0x63?_0x1f0cd6:'99');this[_0x223688(0x20a)][_0x223688(0x19a)]=_0x1bedce;}this[_0x223688(0x1f9)](),this[_0x223688(0x1ba)](),this[_0x223688(0x210)]();}[_0x42d560(0x226)](_0x275015,_0x2b772d){const _0x166aab=_0x42d560;this[_0x166aab(0x200)](_0x275015,_0x2b772d),this[_0x166aab(0x1ff)](_0x2b772d[_0x166aab(0x218)]);}[_0x42d560(0x20d)](){const _0x59391e=_0x42d560;this[_0x59391e(0x22c)]&&_0x59391e(0x1d8)!=typeof IntersectionObserver&&(this[_0x59391e(0x1c0)]=new IntersectionObserver(_0x115b28=>{const _0x265075=_0x59391e;_0x115b28[0x0][_0x265075(0x1a1)]&&this[_0x265075(0x1a4)]&&requestAnimationFrame(()=>{const _0x45ea6d=_0x265075;this[_0x45ea6d(0x19c)]();});},{'threshold':0.01,'rootMargin':_0x59391e(0x225)}),this[_0x59391e(0x1c0)][_0x59391e(0x1b1)](this[_0x59391e(0x22c)]));}[_0x42d560(0x1d1)](){const _0x31b7ef=_0x42d560;if(!this[_0x31b7ef(0x22c)])return!0x1;if(!this[_0x31b7ef(0x22c)][_0x31b7ef(0x1e6)])return!0x1;const _0x37e4a8=this[_0x31b7ef(0x22c)][_0x31b7ef(0x1e3)]();if(0x0===_0x37e4a8[_0x31b7ef(0x211)]||0x0===_0x37e4a8[_0x31b7ef(0x217)])return!0x1;const _0x6cf4f8=window[_0x31b7ef(0x219)]||document[_0x31b7ef(0x1cc)][_0x31b7ef(0x199)],_0x430406=window[_0x31b7ef(0x1ca)]||document[_0x31b7ef(0x1cc)][_0x31b7ef(0x1a8)],_0x21d21f=0xc8;return _0x37e4a8[_0x31b7ef(0x1aa)]>=-0xc8&&_0x37e4a8[_0x31b7ef(0x224)]<=_0x6cf4f8+_0x21d21f&&_0x37e4a8[_0x31b7ef(0x1df)]>=-0xc8&&_0x37e4a8[_0x31b7ef(0x1a6)]<=_0x430406+_0x21d21f;}}
23
+ const _0x453c3a=_0x5291;(function(_0x49fd3f,_0x28fec9){const _0x31ac17=_0x5291,_0x52100b=_0x49fd3f();while(!![]){try{const _0x1edcdf=-parseInt(_0x31ac17(0x91))/0x1+parseInt(_0x31ac17(0xbf))/0x2*(-parseInt(_0x31ac17(0x11c))/0x3)+parseInt(_0x31ac17(0x92))/0x4+-parseInt(_0x31ac17(0xf4))/0x5+-parseInt(_0x31ac17(0x98))/0x6+parseInt(_0x31ac17(0xc2))/0x7*(-parseInt(_0x31ac17(0xdb))/0x8)+parseInt(_0x31ac17(0xc3))/0x9*(parseInt(_0x31ac17(0xf3))/0xa);if(_0x1edcdf===_0x28fec9)break;else _0x52100b['push'](_0x52100b['shift']());}catch(_0x4443e5){_0x52100b['push'](_0x52100b['shift']());}}}(_0x49d4,0xa73e3));import{View as _0x5baf8c,BalloonPanelView as _0x27f859,ButtonView as _0x5a93d3,clickOutsideHandler as _0x2457dc}from'ckeditor5/src/ui.js';function _0x5291(_0x8f7b53,_0x23260d){const _0x49d4c3=_0x49d4();return _0x5291=function(_0x529154,_0x50f386){_0x529154=_0x529154-0x91;let _0x237be3=_0x49d4c3[_0x529154];return _0x237be3;},_0x5291(_0x8f7b53,_0x23260d);}import{Collection as _0x1bdd6e}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x453c3a(0x10b);function _0x49d4(){const _0x4c2497=['visible\x20!important','_createContainerElements','205354KXZuiq','3088772dcgNrl','showMoreLabelPrefix','absolute','parentElement','controlsButton','clear','6625632IhViTw','_testButtonFit','_ancestorsToRestore','clientHeight','_checkAndHandleOverflow','isVisible','maxVisibleRows','from','cssClasses','disconnect','some','_renderChipsAndCountRows','_distributeChips','children','documentElement','showBalloonPanel','_restoreAncestorVisibility','_calculateOverflowInContainer','pin','execute','toLowerCase','cloneNode','_config','button','_createMockButton','_repinBalloonPanel','_findTargetContainer','block','_updateBalloonContent','_setupVisibilityObserver','reorganizeChips','_pendingCalculation','className','getComputedStyle','overflowChips','undefined','hideBalloonPanel','abs','_visibleChips','611410HgmfuR','innerWidth','_applyCalculationStyles','161eIuXzs','9SPDqrZ','render','push','overflowContainer','innerHeight','visibility','label','style','pop','show','_bodyCollection','clientWidth','position','showMoreButtonView','-9999px','pointerEvents','_parentView','observe','length','showMoreBalloon','set','_overflowChips','isIntersecting','_makeAncestorsVisible','391400wcWPUc','destroy','_targetContainer','height','_intersectionObserver','body','extendTemplate','includes','_showMoreButtonView','_updateShowMoreButtonVisibility','_createShowMoreButton','+\x201','boxSizing','calculationContainer','offsetWidth','_calculateContainerWidth','left','appendChild','setTemplate','display','rowDetectionTolerance','querySelector','border-box','_containerElement','38466970QBAive','5966285PtvLAk','tagName','visible','none','hidden','classList','auto','50px','isOn','createElement','opacity','_updateOverflowUI','right','innerHTML','add','_showMoreBalloonPanelView','forEach','_isContainerVisible','top','zIndex','isConnected','slice','_createShowMoreBalloonPanelView','300px','_createShowMoreButtonView','_applyOverflowResults','width','remove','0px','block\x20!important','.ck-ai-chat','showMoreButton','_locale','_createCalculationContainer','textContent','ck-calculation-container','element','setContainerElement','disableAnimationOnEnter','_handleShowMoreButtonClick','3KGmqRV','bottom','hide','getBoundingClientRect','content','filter','div'];_0x49d4=function(){return _0x4c2497;};return _0x49d4();}export class AIChatChipsOverflowManager{[_0x453c3a(0x114)];[_0x453c3a(0xae)];[_0x453c3a(0xbe)];[_0x453c3a(0xd8)];[_0x453c3a(0xe3)]=null;[_0x453c3a(0x103)]=null;[_0x453c3a(0xf2)]=null;[_0x453c3a(0xcd)];[_0x453c3a(0xd3)]=null;[_0x453c3a(0xdf)]=null;[_0x453c3a(0xb7)]=!0x1;constructor(_0x1b2ad7,_0x197388,_0x3d9bb9,_0x23c5f9,_0x4d8a3f){const _0x126690=_0x453c3a;this[_0x126690(0x114)]=_0x1b2ad7,this[_0x126690(0xbe)]=_0x197388,this[_0x126690(0xae)]={...hn,..._0x3d9bb9,'cssClasses':{'controlsButton':'','calculationContainer':_0x126690(0x117),..._0x3d9bb9[_0x126690(0xa0)]}},this[_0x126690(0xd8)]=new _0x1bdd6e(),this[_0x126690(0xcd)]=_0x23c5f9,this[_0x126690(0xd3)]=_0x4d8a3f||null;}[_0x453c3a(0x119)](_0x1d9b6e){const _0x4aac1e=_0x453c3a;this[_0x4aac1e(0xdf)]&&(this[_0x4aac1e(0xdf)][_0x4aac1e(0xa1)](),this[_0x4aac1e(0xdf)]=null),this[_0x4aac1e(0xf2)]=_0x1d9b6e,this[_0x4aac1e(0xb5)]();}get[_0x453c3a(0xd0)](){const _0x244b41=_0x453c3a;return this[_0x244b41(0xe3)];}get[_0x453c3a(0xba)](){const _0x7b3b93=_0x453c3a;return this[_0x7b3b93(0xd8)];}[_0x453c3a(0xb6)](){requestAnimationFrame(()=>{const _0x26047e=_0x5291;this[_0x26047e(0x9c)]();});}[_0x453c3a(0xa7)](){const _0x415b5e=_0x453c3a;this[_0x415b5e(0xe3)]&&this[_0x415b5e(0x103)]&&(this[_0x415b5e(0xb4)](),this[_0x415b5e(0xe3)][_0x415b5e(0xfc)]=!0x0,this[_0x415b5e(0x103)][_0x415b5e(0xcc)](),this[_0x415b5e(0x103)][_0x415b5e(0xaa)]({'target':this[_0x415b5e(0xe3)][_0x415b5e(0x118)],'limiter':document[_0x415b5e(0xf0)](_0x415b5e(0x112))}));}[_0x453c3a(0xbc)](){const _0x42b8e9=_0x453c3a;this[_0x42b8e9(0xe3)]&&this[_0x42b8e9(0x103)]&&(this[_0x42b8e9(0xe3)][_0x42b8e9(0xfc)]=!0x1,this[_0x42b8e9(0x103)][_0x42b8e9(0x11e)]());}[_0x453c3a(0x97)](){const _0x306611=_0x453c3a;this[_0x306611(0xd8)][_0x306611(0x97)](),this[_0x306611(0xbc)](),this[_0x306611(0xe4)](),this[_0x306611(0xe3)]&&(this[_0x306611(0xe3)][_0x306611(0xc9)]=''),this[_0x306611(0x103)]&&this[_0x306611(0x103)][_0x306611(0x120)][_0x306611(0x97)]();}[_0x453c3a(0xdc)](){const _0x56876b=_0x453c3a;this[_0x56876b(0xdf)]&&(this[_0x56876b(0xdf)][_0x56876b(0xa1)](),this[_0x56876b(0xdf)]=null),this[_0x56876b(0xe3)]&&(this[_0x56876b(0xe3)][_0x56876b(0xdc)](),this[_0x56876b(0xe3)]=null),this[_0x56876b(0x103)]&&(this[_0x56876b(0x103)][_0x56876b(0xdc)](),this[_0x56876b(0x103)]=null);}[_0x453c3a(0x9c)](){const _0x117b49=_0x453c3a;if(!this[_0x117b49(0xf2)])return;if(!this[_0x117b49(0x105)]())return void(this[_0x117b49(0xb7)]=!0x0);this[_0x117b49(0xb7)]=!0x1;const _0x282b21=[...this[_0x117b49(0xbe)],...this[_0x117b49(0xd8)]],_0x342eeb=this[_0x117b49(0x115)](),_0x204771=this[_0x117b49(0xa9)](_0x342eeb,_0x282b21),_0x5bb122=_0x342eeb[_0x117b49(0x9a)];_0x5bb122&&this[_0x117b49(0xa8)](_0x5bb122),_0x342eeb[_0x117b49(0x10f)](),this[_0x117b49(0x10d)](_0x282b21,_0x204771);}[_0x453c3a(0xe5)](){const _0x42dfde=_0x453c3a;this[_0x42dfde(0xe3)]=this[_0x42dfde(0x10c)](),this[_0x42dfde(0x103)]=this[_0x42dfde(0x10a)](),this[_0x42dfde(0xe3)][_0x42dfde(0xc4)](),this[_0x42dfde(0xf2)][_0x42dfde(0xec)](this[_0x42dfde(0xe3)][_0x42dfde(0x118)]),this[_0x42dfde(0xe3)]['on'](_0x42dfde(0xab),()=>{const _0x5d5836=_0x42dfde;this[_0x5d5836(0x11b)]();}),_0x2457dc({'emitter':this[_0x42dfde(0x103)],'contextElements':[this[_0x42dfde(0x103)][_0x42dfde(0x118)],this[_0x42dfde(0xe3)][_0x42dfde(0x118)]],'callback':()=>this[_0x42dfde(0xbc)](),'activator':()=>this[_0x42dfde(0xe3)][_0x42dfde(0xfc)]});}[_0x453c3a(0x10c)](){const _0x3731f2=_0x453c3a,_0x97f4f5=new _0x5a93d3(this[_0x3731f2(0x114)]);_0x97f4f5[_0x3731f2(0xd7)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x2020d2=[this[_0x3731f2(0xae)][_0x3731f2(0xa0)][_0x3731f2(0x113)]];return this[_0x3731f2(0xae)][_0x3731f2(0xa0)][_0x3731f2(0x96)]&&_0x2020d2[_0x3731f2(0xc5)](this[_0x3731f2(0xae)][_0x3731f2(0xa0)][_0x3731f2(0x96)]),_0x97f4f5[_0x3731f2(0xe1)]({'attributes':{'class':_0x2020d2}}),_0x97f4f5;}[_0x453c3a(0x10a)](){const _0x51036b=_0x453c3a,_0x1ed04a=new _0x27f859(this[_0x51036b(0x114)]);return _0x1ed04a[_0x51036b(0xe1)]({'attributes':{'class':this[_0x51036b(0xae)][_0x51036b(0xa0)][_0x51036b(0xd6)]}}),this[_0x51036b(0xcd)][_0x51036b(0x102)](_0x1ed04a),_0x1ed04a;}[_0x453c3a(0xb4)](){const _0x3f6d40=_0x453c3a;if(this[_0x3f6d40(0x103)]&&(this[_0x3f6d40(0x103)][_0x3f6d40(0x120)][_0x3f6d40(0x97)](),this[_0x3f6d40(0xd8)][_0x3f6d40(0xd5)]>0x0)){this[_0x3f6d40(0xd8)][_0x3f6d40(0x104)](_0x237349=>{const _0x2c9ab1=_0x3f6d40;_0x237349[_0x2c9ab1(0x11a)]();});const _0x162505=new _0x5baf8c(this[_0x3f6d40(0x114)]);_0x162505[_0x3f6d40(0xed)]({'tag':_0x3f6d40(0x122),'attributes':{'class':this[_0x3f6d40(0xae)][_0x3f6d40(0xa0)][_0x3f6d40(0xc6)]},'children':this[_0x3f6d40(0xd8)]}),this[_0x3f6d40(0x103)][_0x3f6d40(0x120)][_0x3f6d40(0x102)](_0x162505);}}[_0x453c3a(0x11b)](){const _0x2b7112=_0x453c3a;this[_0x2b7112(0xe3)][_0x2b7112(0xfc)]?this[_0x2b7112(0xbc)]():this[_0x2b7112(0xa7)]();}[_0x453c3a(0xe4)](){const _0x50d43d=_0x453c3a,_0xa34590=this[_0x50d43d(0xd8)][_0x50d43d(0xd5)]>0x0;this[_0x50d43d(0xe3)]?.[_0x50d43d(0x118)]&&(this[_0x50d43d(0xe3)][_0x50d43d(0x118)][_0x50d43d(0xca)][_0x50d43d(0xee)]=_0xa34590?'':_0x50d43d(0xf7));}[_0x453c3a(0xb1)](){const _0x58c405=_0x453c3a;this[_0x58c405(0xe3)]?.[_0x58c405(0xfc)]&&this[_0x58c405(0x103)]?.[_0x58c405(0x9d)]&&this[_0x58c405(0xe3)][_0x58c405(0x118)]&&this[_0x58c405(0x103)][_0x58c405(0xaa)]({'target':this[_0x58c405(0xe3)][_0x58c405(0x118)],'limiter':document[_0x58c405(0xf0)](_0x58c405(0x112))});}[_0x453c3a(0xb2)](_0x566487){const _0x58010c=_0x453c3a,_0x568861=this[_0x58010c(0xf2)]?.[_0x58010c(0xf5)][_0x58010c(0xac)]()||_0x58010c(0x122),_0x54f23b=this[_0x58010c(0xf2)]?.[_0x58010c(0xf9)];if(_0x54f23b){const _0x57f60c=_0x54f23b[0x0]||'',_0x55df58=_0x566487[_0x58010c(0xf0)]('.'+_0x57f60c),_0x5d5e10=_0x566487[_0x58010c(0xf0)](_0x568861);return _0x55df58||_0x5d5e10||_0x566487;}return _0x566487[_0x58010c(0xf0)](_0x568861)||_0x566487;}[_0x453c3a(0xea)](){const _0x4217d8=_0x453c3a,_0x3a622a=this[_0x4217d8(0xd3)]?.[_0x4217d8(0x118)]||this[_0x4217d8(0xf2)];if(!_0x3a622a)return an;const _0x50efb6=window[_0x4217d8(0xb9)](_0x3a622a)[_0x4217d8(0x10e)];if(_0x4217d8(0xfa)===_0x50efb6||_0x4217d8(0x110)===_0x50efb6||!_0x50efb6){const _0x27f0e1=_0x3a622a[_0x4217d8(0x95)];if(_0x27f0e1){const _0x3a6074=window[_0x4217d8(0xb9)](_0x27f0e1);return _0x4217d8(0xfa)!==_0x3a6074[_0x4217d8(0x10e)]?_0x3a6074[_0x4217d8(0x10e)]:an;}return an;}return _0x50efb6;}[_0x453c3a(0xc1)](_0x59ce5f,_0x4f73c5){const _0x302db5=_0x453c3a;this[_0x302db5(0xae)][_0x302db5(0xa0)][_0x302db5(0xe8)]&&_0x59ce5f[_0x302db5(0xf9)][_0x302db5(0x102)](this[_0x302db5(0xae)][_0x302db5(0xa0)][_0x302db5(0xe8)]),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0x10e)]=_0x4f73c5,_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xcf)]=_0x302db5(0x94),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0x106)]=_0x302db5(0xd1),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xeb)]=_0x302db5(0xd1),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xfe)]='0',_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xd2)]=_0x302db5(0xf7),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0x107)]='-1',_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xc8)]=_0x302db5(0x123),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xee)]=_0x302db5(0x111),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xe7)]=_0x302db5(0xf1);}[_0x453c3a(0xa8)](_0x475213){const _0x3b6b53=_0x453c3a;_0x475213[_0x3b6b53(0x104)](({element:_0x322cb7,originalDisplay:_0xc29813,originalVisibility:_0x5d8e12})=>{const _0x176f27=_0x3b6b53;_0x322cb7[_0x176f27(0xca)][_0x176f27(0xee)]=_0xc29813,_0x322cb7[_0x176f27(0xca)][_0x176f27(0xc8)]=_0x5d8e12;});}[_0x453c3a(0xda)](_0x1529f9){const _0x2a69cf=_0x453c3a,_0x5ba0e4=[];let _0x1dafee=_0x1529f9;for(;_0x1dafee&&_0x1dafee!==document[_0x2a69cf(0xe0)];){const _0x36efff=window[_0x2a69cf(0xb9)](_0x1dafee);_0x2a69cf(0xf7)!==_0x36efff[_0x2a69cf(0xee)]&&_0x2a69cf(0xf8)!==_0x36efff[_0x2a69cf(0xc8)]||(_0x5ba0e4[_0x2a69cf(0xc5)]({'element':_0x1dafee,'originalDisplay':_0x1dafee[_0x2a69cf(0xca)][_0x2a69cf(0xee)],'originalVisibility':_0x1dafee[_0x2a69cf(0xca)][_0x2a69cf(0xc8)]}),_0x1dafee[_0x2a69cf(0xca)][_0x2a69cf(0xee)]=_0x2a69cf(0xb3),_0x1dafee[_0x2a69cf(0xca)][_0x2a69cf(0xc8)]=_0x2a69cf(0xf6)),_0x1dafee=_0x1dafee[_0x2a69cf(0x95)];}return _0x5ba0e4;}[_0x453c3a(0x124)](){const _0x579cd5=_0x453c3a;let _0x1d304f,_0x356444;return this[_0x579cd5(0xd3)]?.[_0x579cd5(0x118)]?(_0x1d304f=this[_0x579cd5(0xd3)][_0x579cd5(0x118)][_0x579cd5(0xad)](!0x0),_0x356444=this[_0x579cd5(0xb2)](_0x1d304f)):(_0x1d304f=document[_0x579cd5(0xfd)](_0x579cd5(0x122)),_0x356444=_0x1d304f),{'calculationContainer':_0x1d304f,'targetContainer':_0x356444};}[_0x453c3a(0x115)](){const _0x5eafe4=_0x453c3a,{calculationContainer:_0x237c47,targetContainer:_0x595046}=this[_0x5eafe4(0x124)](),_0x3c42e4=this[_0x5eafe4(0xea)]();this[_0x5eafe4(0xc1)](_0x237c47,_0x3c42e4);const _0x384fc3=this[_0x5eafe4(0xd3)]?.[_0x5eafe4(0x118)]||this[_0x5eafe4(0xf2)],_0x2db055=_0x384fc3?.[_0x5eafe4(0x95)];_0x2db055?_0x2db055[_0x5eafe4(0xec)](_0x237c47):document[_0x5eafe4(0xe0)][_0x5eafe4(0xec)](_0x237c47),_0x237c47[_0x5eafe4(0xdd)]=_0x595046;const _0x33dfe2=this[_0x5eafe4(0xda)](_0x2db055||null);return _0x237c47[_0x5eafe4(0xe9)],_0x237c47[_0x5eafe4(0x9a)]=_0x33dfe2,_0x237c47;}[_0x453c3a(0xa9)](_0x47b533,_0xe26ac){const _0x2ad241=_0x453c3a,_0x4ecdcf=_0x47b533[_0x2ad241(0xdd)]||_0x47b533,_0x5d5875=[],{rowCount:_0x2925aa}=this[_0x2ad241(0xa3)](_0x4ecdcf,_0xe26ac);if(_0x2925aa<=this[_0x2ad241(0xae)][_0x2ad241(0x9e)])return _0x5d5875;const _0x5df2f4=_0xe26ac[_0x2ad241(0x109)]();for(;_0x5df2f4[_0x2ad241(0xd5)]>0x0;){if(this[_0x2ad241(0x99)](_0x47b533,_0x4ecdcf,_0x5df2f4)){const _0x582b35=_0xe26ac[_0x2ad241(0x121)](_0x1a1bfb=>!_0x5df2f4[_0x2ad241(0xe2)](_0x1a1bfb));_0x5d5875[_0x2ad241(0xc5)](..._0x582b35);break;}if(!_0x5df2f4[_0x2ad241(0xcb)]())break;}return _0x5d5875;}[_0x453c3a(0xa3)](_0x405c01,_0x32ef99){const _0x1e4ea2=_0x453c3a;_0x405c01[_0x1e4ea2(0x101)]='',_0x32ef99[_0x1e4ea2(0x104)](_0x1b833e=>{const _0xa5013=_0x1e4ea2;if(_0x1b833e[_0xa5013(0x118)]){const _0x27bf6f=_0x1b833e[_0xa5013(0x118)][_0xa5013(0xad)](!0x0);_0x405c01[_0xa5013(0xec)](_0x27bf6f);}}),_0x405c01[_0x1e4ea2(0xe9)];const _0x215eec=_0x405c01[_0x1e4ea2(0xa5)],_0x5ce0a7=[];return Array[_0x1e4ea2(0x9f)](_0x215eec)[_0x1e4ea2(0x104)](_0x926cfd=>{const _0x3cb87d=_0x1e4ea2,_0x52c87b=_0x926cfd[_0x3cb87d(0x11f)]()[_0x3cb87d(0x106)];_0x5ce0a7[_0x3cb87d(0xa2)](_0x3e1f1e=>Math[_0x3cb87d(0xbd)](_0x3e1f1e-_0x52c87b)<this[_0x3cb87d(0xae)][_0x3cb87d(0xef)])||_0x5ce0a7[_0x3cb87d(0xc5)](_0x52c87b);}),{'rowCount':_0x5ce0a7[_0x1e4ea2(0xd5)]};}[_0x453c3a(0xb0)](){const _0x431cec=_0x453c3a,_0x5afc96=document[_0x431cec(0xfd)](_0x431cec(0xaf));return _0x5afc96[_0x431cec(0xb8)]=this[_0x431cec(0xae)][_0x431cec(0xa0)][_0x431cec(0x113)],this[_0x431cec(0xae)][_0x431cec(0xa0)][_0x431cec(0x96)]&&_0x5afc96[_0x431cec(0xf9)][_0x431cec(0x102)](this[_0x431cec(0xae)][_0x431cec(0xa0)][_0x431cec(0x96)]),_0x5afc96[_0x431cec(0x116)]=_0x431cec(0xe6),_0x5afc96;}[_0x453c3a(0x99)](_0x407d33,_0x47a81a,_0x34fa36){const _0x2257fa=_0x453c3a;this[_0x2257fa(0xa3)](_0x47a81a,_0x34fa36);const _0x2d0b00=this[_0x2257fa(0xb0)]();_0x407d33[_0x2257fa(0xec)](_0x2d0b00),_0x407d33[_0x2257fa(0xe9)];const _0x495419=[..._0x47a81a[_0x2257fa(0xa5)],_0x2d0b00],_0x4f73c8=[];_0x495419[_0x2257fa(0x104)](_0x38e5aa=>{const _0x3340bb=_0x2257fa,_0x4d161d=_0x38e5aa[_0x3340bb(0x11f)]()[_0x3340bb(0x106)];_0x4f73c8[_0x3340bb(0xa2)](_0x5bf957=>Math[_0x3340bb(0xbd)](_0x5bf957-_0x4d161d)<this[_0x3340bb(0xae)][_0x3340bb(0xef)])||_0x4f73c8[_0x3340bb(0xc5)](_0x4d161d);});const _0x1f5434=_0x4f73c8[_0x2257fa(0xd5)];return _0x2d0b00[_0x2257fa(0x10f)](),_0x1f5434<=this[_0x2257fa(0xae)][_0x2257fa(0x9e)];}[_0x453c3a(0xa4)](_0xf2fbd4,_0x48c5f3){const _0x5749bd=_0x453c3a;this[_0x5749bd(0xbe)][_0x5749bd(0x97)](),this[_0x5749bd(0xd8)][_0x5749bd(0x97)](),_0xf2fbd4[_0x5749bd(0x104)](_0x2259e8=>{const _0x31d2d3=_0x5749bd;_0x48c5f3[_0x31d2d3(0xe2)](_0x2259e8)?this[_0x31d2d3(0xd8)][_0x31d2d3(0x102)](_0x2259e8):this[_0x31d2d3(0xbe)][_0x31d2d3(0x102)](_0x2259e8);});}[_0x453c3a(0xff)](_0x51c59e){const _0x1acdfc=_0x453c3a;if(_0x51c59e>0x0&&!this[_0x1acdfc(0xe3)]&&this[_0x1acdfc(0xe5)](),_0x51c59e>0x0&&this[_0x1acdfc(0xe3)]){const _0x3fe000=''+this[_0x1acdfc(0xae)][_0x1acdfc(0x93)]+(_0x51c59e<0x63?_0x51c59e:'99');this[_0x1acdfc(0xe3)][_0x1acdfc(0xc9)]=_0x3fe000;}this[_0x1acdfc(0xb4)](),this[_0x1acdfc(0xe4)](),this[_0x1acdfc(0xb1)]();}[_0x453c3a(0x10d)](_0x5c1bbe,_0x2e800b){const _0x3b974a=_0x453c3a;this[_0x3b974a(0xa4)](_0x5c1bbe,_0x2e800b),this[_0x3b974a(0xff)](_0x2e800b[_0x3b974a(0xd5)]);}[_0x453c3a(0xb5)](){const _0x3131da=_0x453c3a;this[_0x3131da(0xf2)]&&_0x3131da(0xbb)!=typeof IntersectionObserver&&(this[_0x3131da(0xdf)]=new IntersectionObserver(_0x36609a=>{const _0x49ae9f=_0x3131da;_0x36609a[0x0][_0x49ae9f(0xd9)]&&this[_0x49ae9f(0xb7)]&&requestAnimationFrame(()=>{const _0x960f8a=_0x49ae9f;this[_0x960f8a(0x9c)]();});},{'threshold':0.01,'rootMargin':_0x3131da(0xfb)}),this[_0x3131da(0xdf)][_0x3131da(0xd4)](this[_0x3131da(0xf2)]));}[_0x453c3a(0x105)](){const _0x102e0e=_0x453c3a;if(!this[_0x102e0e(0xf2)])return!0x1;if(!this[_0x102e0e(0xf2)][_0x102e0e(0x108)])return!0x1;const _0xe8884c=this[_0x102e0e(0xf2)][_0x102e0e(0x11f)]();if(0x0===_0xe8884c[_0x102e0e(0x10e)]||0x0===_0xe8884c[_0x102e0e(0xde)])return!0x1;const _0x120359=window[_0x102e0e(0xc7)]||document[_0x102e0e(0xa6)][_0x102e0e(0x9b)],_0x52fd64=window[_0x102e0e(0xc0)]||document[_0x102e0e(0xa6)][_0x102e0e(0xce)],_0x840ba8=0xc8;return _0xe8884c[_0x102e0e(0x11d)]>=-0xc8&&_0xe8884c[_0x102e0e(0x106)]<=_0x120359+_0x840ba8&&_0xe8884c[_0x102e0e(0x100)]>=-0xc8&&_0xe8884c[_0x102e0e(0xeb)]<=_0x52fd64+_0x840ba8;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5328(){const _0xd7fbe5=['lastIndexOf','ck-ai-chat-context-chip__type-icon','ck-ai-chat-context-chip__label','classList','bindTemplate','readonly','4907010aqMSlk','_handleAnimationEndOnce','type','16368770QwyhzB','execute','132VEGldp','19687icoESO','document','small','slice','animationend','addEventListener','_createTemplateAttributes','element','length','_createLoaderIcon','uiId','div','locale','ck-hidden','set','ck-ai-chat-context-chip','_isAnimationOnEnterEnabled','5aFJVjV','setTemplate','_createRemoveButton','_initializeProperties','_createTemplateChildren','webkitAnimationEnd','removeContextItemChip','itemType','bind','removeEventListener','_createIconView','fire','892384vsggXy','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','render','_setupTemplate','4trlidK','5336961IvUihQ','2320329CFFeLC','22HMDwpz','ck-ai-chat-context-chip_new-chip','disableAnimationOnEnter','isVisible','_setupRemoveButtonEvent','label','content','ck-ai-chat-context-chip_document','span','selection','tooltip','isLoading','ck-ai-chat-context-chip_wide','_createLabelElement','5619111jrAwvM','99HDTyJw','extendTemplate','remove','add','ck-ai-chat-context-controls__chip-tooltip'];_0x5328=function(){return _0xd7fbe5;};return _0x5328();}const _0x3e968b=_0x1b20;(function(_0x1f19b6,_0x8d9e0){const _0x35346f=_0x1b20,_0x49912d=_0x1f19b6();while(!![]){try{const _0x58af24=-parseInt(_0x35346f(0x137))/0x1*(-parseInt(_0x35346f(0x117))/0x2)+parseInt(_0x35346f(0x125))/0x3*(parseInt(_0x35346f(0x114))/0x4)+parseInt(_0x35346f(0x104))/0x5*(parseInt(_0x35346f(0x131))/0x6)+parseInt(_0x35346f(0x115))/0x7+parseInt(_0x35346f(0x110))/0x8*(parseInt(_0x35346f(0x126))/0x9)+-parseInt(_0x35346f(0x134))/0xa+-parseInt(_0x35346f(0x116))/0xb*(parseInt(_0x35346f(0x136))/0xc);if(_0x58af24===_0x8d9e0)break;else _0x49912d['push'](_0x49912d['shift']());}catch(_0x408e78){_0x49912d['push'](_0x49912d['shift']());}}}(_0x5328,0xe569a));function _0x1b20(_0x5ee692,_0x13ebf4){const _0x5328be=_0x5328();return _0x1b20=function(_0x1b20ef,_0x5c7e81){_0x1b20ef=_0x1b20ef-0x100;let _0x17e4cb=_0x5328be[_0x1b20ef];return _0x17e4cb;},_0x1b20(_0x5ee692,_0x13ebf4);}import{ButtonView as _0x6e205c,IconView as _0x240e98}from'ckeditor5/src/ui.js';import{IconClose as _0x1999b5,IconDocument as _0x148973,IconFileUpload as _0x5e47fe,IconLink as _0x3b20fc,IconSelection as _0x390745}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x187be4}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x5f294b}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x5e47fe,'document':_0x148973,'web-resource':_0x3b20fc,'text':_0x5e47fe,'selection':_0x390745,'mcp-tool-context':_0x148973},bn=_0x3e968b(0x102),wn=_0x3e968b(0x123),Tn=_0x3e968b(0x11e),En=_0x3e968b(0x12d),fn=_0x3e968b(0x12c),An=_0x3e968b(0x12a),Cn='n';export class AIChatContextItemButtonView extends _0x6e205c{constructor(_0x7bb2c4,_0x1a1397,_0x3dcc77,_0xce9ee5,_0x39ecc7=!0x1){const _0x527030=_0x3e968b;super(_0x7bb2c4),this[_0x527030(0x103)]=_0xce9ee5,this[_0x527030(0x107)](_0x1a1397,_0x3dcc77,_0x39ecc7),this[_0x527030(0x113)]();}[_0x3e968b(0x112)](){const _0x11b2ed=_0x3e968b;super[_0x11b2ed(0x112)](),this[_0x11b2ed(0x103)]&&this[_0x11b2ed(0x13e)]&&(this[_0x11b2ed(0x13e)][_0x11b2ed(0x12e)][_0x11b2ed(0x129)](_0x11b2ed(0x118)),this[_0x11b2ed(0x132)](this[_0x11b2ed(0x13e)],()=>{const _0x4660a6=_0x11b2ed;this[_0x4660a6(0x13e)]&&this[_0x4660a6(0x13e)][_0x4660a6(0x12e)][_0x4660a6(0x128)](_0x4660a6(0x118));}));}[_0x3e968b(0x119)](){const _0x22a033=_0x3e968b;this[_0x22a033(0x103)]=!0x1,this[_0x22a033(0x13e)]&&this[_0x22a033(0x13e)][_0x22a033(0x12e)][_0x22a033(0x128)](_0x22a033(0x118));}[_0x3e968b(0x107)](_0x39d1d4,_0x439f38,_0x5c3ff4){const _0x1a0007=_0x3e968b;this[_0x1a0007(0x101)](_0x1a0007(0x11c),_0x39d1d4[_0x1a0007(0x11c)]),this[_0x1a0007(0x101)](_0x1a0007(0x121),!0x0),this[_0x1a0007(0x101)](_0x1a0007(0x10b),_0x39d1d4[_0x1a0007(0x133)]),this[_0x1a0007(0x101)]('id',_0x39d1d4[_0x1a0007(0x141)]),this[_0x1a0007(0x101)](_0x1a0007(0x130),_0x439f38),this[_0x1a0007(0x101)](_0x1a0007(0x122),_0x5c3ff4);}[_0x3e968b(0x113)](){const _0x21d877=_0x3e968b,_0x569ad9=this[_0x21d877(0x10e)](),_0x166d1e=this[_0x21d877(0x106)](),_0x1c189e=this[_0x21d877(0x12f)];this[_0x21d877(0x105)]({'tag':_0x21d877(0x142),'attributes':this[_0x21d877(0x13d)](_0x1c189e),'children':this[_0x21d877(0x108)](_0x569ad9,_0x166d1e,_0x1c189e)});}[_0x3e968b(0x13d)](_0x310ca0){const _0x338081=_0x3e968b;return{'class':[bn,_0x310ca0['if'](_0x338081(0x10b),Tn,_0x70698d=>_0x338081(0x138)==_0x70698d),_0x310ca0['if'](_0x338081(0x10b),wn,_0x2d15f1=>_0x338081(0x120)==_0x2d15f1)],'data-cke-tooltip-text':_0x310ca0['to'](_0x338081(0x11c),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x3e968b(0x108)](_0x3fe04a,_0x2f2118,_0x321ee6){const _0x307bcb=_0x3e968b,_0x45c7b4=this[_0x307bcb(0x124)](_0x321ee6),_0x5737ec=this[_0x307bcb(0x140)]();return this[_0x307bcb(0x130)]?[_0x3fe04a,_0x45c7b4]:[_0x3fe04a,_0x5737ec,_0x45c7b4,_0x2f2118];}[_0x3e968b(0x124)](_0x210883){const _0x4ce5b1=_0x3e968b;return{'tag':_0x4ce5b1(0x11f),'attributes':{'class':En},'children':[{'text':_0x210883['to'](_0x4ce5b1(0x11c))}]};}[_0x3e968b(0x106)](){const _0x2a5b23=_0x3e968b,_0x2b0dd7=new _0x6e205c(this[_0x2a5b23(0x143)]);return _0x2b0dd7[_0x2a5b23(0x101)]({'label':_0x187be4(this[_0x2a5b23(0x143)],_0x2a5b23(0x111)),'icon':_0x1999b5}),this[_0x2a5b23(0x11b)](_0x2b0dd7),_0x2b0dd7;}[_0x3e968b(0x11b)](_0x4b3899){const _0x1ffe42=_0x3e968b;_0x4b3899['on'](_0x1ffe42(0x135),()=>{const _0x5f2623=_0x1ffe42;this[_0x5f2623(0x10f)](_0x5f2623(0x10a),this['id']);});}[_0x3e968b(0x10e)](){const _0x5e219c=_0x3e968b,_0x4556c5=this[_0x5e219c(0x12f)],_0x465a2a=new _0x240e98();return _0x465a2a[_0x5e219c(0x11d)]=xn[this[_0x5e219c(0x10b)]],_0x465a2a[_0x5e219c(0x127)]({'attributes':{'class':[fn,_0x4556c5['if'](_0x5e219c(0x122),_0x5e219c(0x100),_0x4170e=>_0x4170e)]}}),_0x465a2a;}[_0x3e968b(0x132)](_0x5053fd,_0x4e3667){const _0x362c37=_0x3e968b;if(!_0x5053fd)return;const _0x1430d3=()=>{const _0x30d247=_0x1b20;_0x4e3667(),_0x5053fd[_0x30d247(0x10d)](_0x30d247(0x13b),_0x1430d3),_0x5053fd[_0x30d247(0x10d)](_0x30d247(0x109),_0x1430d3);};_0x5053fd[_0x362c37(0x13c)](_0x362c37(0x13b),_0x1430d3),_0x5053fd[_0x362c37(0x13c)](_0x362c37(0x109),_0x1430d3);}[_0x3e968b(0x140)](){const _0x1c9764=_0x3e968b,_0x5e460e=new _0x5f294b(_0x1c9764(0x139));return _0x5e460e[_0x1c9764(0x10c)](_0x1c9764(0x11a))['to'](this,_0x1c9764(0x122),_0x40ab4b=>_0x40ab4b),_0x5e460e;}}function In(_0x55a828){const _0x16865b=_0x3e968b;if(!_0x55a828)return _0x55a828;if(_0x55a828[_0x16865b(0x13f)]<=0x78)return _0x55a828;const _0x2c7c8c=_0x55a828[_0x16865b(0x13a)](0x0,0x78),_0x215f9a=_0x2c7c8c[_0x16865b(0x12b)]('\x20');return(_0x215f9a>0x0?_0x2c7c8c[_0x16865b(0x13a)](0x0,_0x215f9a):_0x2c7c8c)+'…';}
23
+ const _0x193c88=_0x5ac8;(function(_0x3b47a3,_0x5e6c7c){const _0x10e1ff=_0x5ac8,_0x21bbe3=_0x3b47a3();while(!![]){try{const _0x32cd67=parseInt(_0x10e1ff(0x155))/0x1+parseInt(_0x10e1ff(0x14c))/0x2+parseInt(_0x10e1ff(0x151))/0x3+-parseInt(_0x10e1ff(0x129))/0x4+-parseInt(_0x10e1ff(0x12c))/0x5*(-parseInt(_0x10e1ff(0x12f))/0x6)+parseInt(_0x10e1ff(0x128))/0x7*(parseInt(_0x10e1ff(0x139))/0x8)+-parseInt(_0x10e1ff(0x11d))/0x9*(parseInt(_0x10e1ff(0x135))/0xa);if(_0x32cd67===_0x5e6c7c)break;else _0x21bbe3['push'](_0x21bbe3['shift']());}catch(_0x4a10f5){_0x21bbe3['push'](_0x21bbe3['shift']());}}}(_0x4653,0x812a1));import{ButtonView as _0x24d968,IconView as _0x21aee0}from'ckeditor5/src/ui.js';import{IconClose as _0x5f22bd,IconDocument as _0x12a13c,IconFileUpload as _0x66d428,IconLink as _0x8a77f0,IconSelection as _0xb4d165}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x3b8944}from'../../../aicore/utils/common-translations.js';function _0x5ac8(_0x35cbbb,_0x1add5d){const _0x46531f=_0x4653();return _0x5ac8=function(_0x5ac80f,_0x465dde){_0x5ac80f=_0x5ac80f-0x11d;let _0x2be7b4=_0x46531f[_0x5ac80f];return _0x2be7b4;},_0x5ac8(_0x35cbbb,_0x1add5d);}import{AISpinnerView as _0x20075e}from'../../../aicore/ui/aispinner.js';function _0x4653(){const _0x2965ee=['ck-ai-chat-context-chip_document','removeEventListener','ck-ai-chat-context-chip__type-icon','_isAnimationOnEnterEnabled','small','element','itemType','isLoading','fire','render','removeContextItemChip','ck-ai-chat-context-chip_wide','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','ck-ai-chat-context-chip__label','_createLabelElement','1789674plJTzf','div','label','ck-ai-chat-context-controls__chip-tooltip','_handleAnimationEndOnce','1049361vhQxXr','locale','selection','_createTemplateChildren','600920aGPzZY','add','type','_initializeProperties','webkitAnimationEnd','ck-hidden','lastIndexOf','tooltip','disableAnimationOnEnter','setTemplate','225gDmOEI','ck-ai-chat-context-chip','isVisible','content','set','readonly','_createIconView','addEventListener','bindTemplate','ck-ai-chat-context-chip_new-chip','length','420lpxAJP','1003900LbkUHx','span','_createRemoveButton','4704715PHSWYk','document','_createLoaderIcon','6MCuRFB','_setupRemoveButtonEvent','uiId','_createTemplateAttributes','animationend','remove','927670WwYCnD','_setupTemplate','execute','bind','41696zHUWIm','extendTemplate','classList','slice'];_0x4653=function(){return _0x2965ee;};return _0x4653();}const xn={'file':_0x66d428,'document':_0x12a13c,'web-resource':_0x8a77f0,'text':_0x66d428,'selection':_0xb4d165,'mcp-tool-context':_0x12a13c},bn=_0x193c88(0x11e),wn=_0x193c88(0x148),Tn=_0x193c88(0x13d),En=_0x193c88(0x14a),fn=_0x193c88(0x13f),An=_0x193c88(0x14f),Cn='n';export class AIChatContextItemButtonView extends _0x24d968{constructor(_0x52fe73,_0x5945fe,_0x5a7294,_0x257f1c,_0x539874=!0x1){const _0x35e358=_0x193c88;super(_0x52fe73),this[_0x35e358(0x140)]=_0x257f1c,this[_0x35e358(0x158)](_0x5945fe,_0x5a7294,_0x539874),this[_0x35e358(0x136)]();}[_0x193c88(0x146)](){const _0x5d58c6=_0x193c88;super[_0x5d58c6(0x146)](),this[_0x5d58c6(0x140)]&&this[_0x5d58c6(0x142)]&&(this[_0x5d58c6(0x142)][_0x5d58c6(0x13b)][_0x5d58c6(0x156)](_0x5d58c6(0x126)),this[_0x5d58c6(0x150)](this[_0x5d58c6(0x142)],()=>{const _0x19da10=_0x5d58c6;this[_0x19da10(0x142)]&&this[_0x19da10(0x142)][_0x19da10(0x13b)][_0x19da10(0x134)](_0x19da10(0x126));}));}[_0x193c88(0x15d)](){const _0x5916cf=_0x193c88;this[_0x5916cf(0x140)]=!0x1,this[_0x5916cf(0x142)]&&this[_0x5916cf(0x142)][_0x5916cf(0x13b)][_0x5916cf(0x134)](_0x5916cf(0x126));}[_0x193c88(0x158)](_0x336f21,_0x25ba16,_0x2a65ee){const _0x4d8d73=_0x193c88;this[_0x4d8d73(0x121)](_0x4d8d73(0x14e),_0x336f21[_0x4d8d73(0x14e)]),this[_0x4d8d73(0x121)](_0x4d8d73(0x15c),!0x0),this[_0x4d8d73(0x121)](_0x4d8d73(0x143),_0x336f21[_0x4d8d73(0x157)]),this[_0x4d8d73(0x121)]('id',_0x336f21[_0x4d8d73(0x131)]),this[_0x4d8d73(0x121)](_0x4d8d73(0x122),_0x25ba16),this[_0x4d8d73(0x121)](_0x4d8d73(0x144),_0x2a65ee);}[_0x193c88(0x136)](){const _0x31c3d0=_0x193c88,_0x458d69=this[_0x31c3d0(0x123)](),_0x5cf357=this[_0x31c3d0(0x12b)](),_0x105625=this[_0x31c3d0(0x125)];this[_0x31c3d0(0x15e)]({'tag':_0x31c3d0(0x14d),'attributes':this[_0x31c3d0(0x132)](_0x105625),'children':this[_0x31c3d0(0x154)](_0x458d69,_0x5cf357,_0x105625)});}[_0x193c88(0x132)](_0x5c9e00){const _0x52d76a=_0x193c88;return{'class':[bn,_0x5c9e00['if'](_0x52d76a(0x143),Tn,_0x1360b0=>_0x52d76a(0x12d)==_0x1360b0),_0x5c9e00['if'](_0x52d76a(0x143),wn,_0x2a7c55=>_0x52d76a(0x153)==_0x2a7c55)],'data-cke-tooltip-text':_0x5c9e00['to'](_0x52d76a(0x14e),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x193c88(0x154)](_0xda4441,_0x40a835,_0x332c49){const _0x1c12ab=_0x193c88,_0x5ed837=this[_0x1c12ab(0x14b)](_0x332c49),_0x5ef95d=this[_0x1c12ab(0x12e)]();return this[_0x1c12ab(0x122)]?[_0xda4441,_0x5ed837]:[_0xda4441,_0x5ef95d,_0x5ed837,_0x40a835];}[_0x193c88(0x14b)](_0x5d5a66){const _0x7fe2df=_0x193c88;return{'tag':_0x7fe2df(0x12a),'attributes':{'class':En},'children':[{'text':_0x5d5a66['to'](_0x7fe2df(0x14e))}]};}[_0x193c88(0x12b)](){const _0x306c78=_0x193c88,_0x116592=new _0x24d968(this[_0x306c78(0x152)]);return _0x116592[_0x306c78(0x121)]({'label':_0x3b8944(this[_0x306c78(0x152)],_0x306c78(0x149)),'icon':_0x5f22bd}),this[_0x306c78(0x130)](_0x116592),_0x116592;}[_0x193c88(0x130)](_0x34faac){const _0x25deb8=_0x193c88;_0x34faac['on'](_0x25deb8(0x137),()=>{const _0xf22235=_0x25deb8;this[_0xf22235(0x145)](_0xf22235(0x147),this['id']);});}[_0x193c88(0x123)](){const _0x5c7ae3=_0x193c88,_0x2ca24c=this[_0x5c7ae3(0x125)],_0x476652=new _0x21aee0();return _0x476652[_0x5c7ae3(0x120)]=xn[this[_0x5c7ae3(0x143)]],_0x476652[_0x5c7ae3(0x13a)]({'attributes':{'class':[fn,_0x2ca24c['if'](_0x5c7ae3(0x144),_0x5c7ae3(0x15a),_0x3ce73f=>_0x3ce73f)]}}),_0x476652;}[_0x193c88(0x150)](_0x5aee2e,_0x355145){const _0x637cab=_0x193c88;if(!_0x5aee2e)return;const _0x2eafce=()=>{const _0x2adbaf=_0x5ac8;_0x355145(),_0x5aee2e[_0x2adbaf(0x13e)](_0x2adbaf(0x133),_0x2eafce),_0x5aee2e[_0x2adbaf(0x13e)](_0x2adbaf(0x159),_0x2eafce);};_0x5aee2e[_0x637cab(0x124)](_0x637cab(0x133),_0x2eafce),_0x5aee2e[_0x637cab(0x124)](_0x637cab(0x159),_0x2eafce);}[_0x193c88(0x12e)](){const _0x3ec3af=_0x193c88,_0x57cd31=new _0x20075e(_0x3ec3af(0x141));return _0x57cd31[_0x3ec3af(0x138)](_0x3ec3af(0x11f))['to'](this,_0x3ec3af(0x144),_0x3a3ae5=>_0x3a3ae5),_0x57cd31;}}function In(_0x415237){const _0x32407e=_0x193c88;if(!_0x415237)return _0x415237;if(_0x415237[_0x32407e(0x127)]<=0x78)return _0x415237;const _0x1a7133=_0x415237[_0x32407e(0x13c)](0x0,0x78),_0x41b355=_0x1a7133[_0x32407e(0x15b)]('\x20');return(_0x41b355>0x0?_0x1a7133[_0x32407e(0x13c)](0x0,_0x41b355):_0x1a7133)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x342e99=_0x1014;function _0x10df(){const _0x6ae062=['AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_setupEventHandlers','3647184OzOORM','children','backButton','680WzQKNy','ck-ai-chat-context-controls__url-input-section','1796ppsBAd','ck-labeled-field-view_empty','clear','forEach','div','AI_CHAT_CONTEXT_URL_PLACEHOLDER','urlInputField','focusTracker','1022LFtaVc','6066yPqBiv','stop','_setupKeystrokes','_isValidUrl','refreshBalloon','add','ck-ai-chat-context-controls__url-form','destroy','tab','submit','getValue','setTemplate','AI_CHAT_CONTEXT_URL_ADD_URL','focusCycler','focus','17117221folbiF','AI_CHAT_CONTEXT_URL_INVALID_ERROR','confirmButton','shift+tab','_createConfirmButton','trim','_createBackButton','isEnabled','_createUrlInputField','fieldView','createCollection','submitUrl','ck-button-icon\x20ck-button-back','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','95710QWEwso','element','4836rmDQJk','\x20ck-hidden','keystrokes','AI_CHAT_CONTEXT_URL_LABEL','_updateConfirmButtonState','execute','123990rgAvud','set','listenTo','change:withBackButton','value','ck-button-icon','length','_handleSubmit','render','form','_setupTemplate','26706kHxgHZ','cancel','locale','setError','fire','errorText','4rMlJwj','withBackButton','clearError','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','input','esc','_focusables'];_0x10df=function(){return _0x6ae062;};return _0x10df();}(function(_0x2d3229,_0x5444a2){const _0x579fa6=_0x1014,_0x524945=_0x2d3229();while(!![]){try{const _0x31ac41=-parseInt(_0x579fa6(0x202))/0x1*(parseInt(_0x579fa6(0x21b))/0x2)+parseInt(_0x579fa6(0x204))/0x3*(-parseInt(_0x579fa6(0x229))/0x4)+-parseInt(_0x579fa6(0x20a))/0x5+parseInt(_0x579fa6(0x215))/0x6*(-parseInt(_0x579fa6(0x231))/0x7)+parseInt(_0x579fa6(0x224))/0x8+parseInt(_0x579fa6(0x232))/0x9*(parseInt(_0x579fa6(0x227))/0xa)+parseInt(_0x579fa6(0x1f4))/0xb;if(_0x31ac41===_0x5444a2)break;else _0x524945['push'](_0x524945['shift']());}catch(_0x59745e){_0x524945['push'](_0x524945['shift']());}}}(_0x10df,0x72415));import{FocusTracker as _0x8d8e0b,KeystrokeHandler as _0x293448}from'ckeditor5/src/utils.js';import{ButtonView as _0x137736,FocusCycler as _0xf7895f,LabeledFieldView as _0x21bbd4,View as _0x47fda4,FormHeaderView as _0x481195,createLabeledInputText as _0x3c2218,submitHandler as _0x5d0e9a}from'ckeditor5/src/ui.js';import{IconCheck as _0x20558c,IconPreviousArrow as _0x3fee1e}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5d957c}from'../../../aicore/utils/common-translations.js';const oh=_0x342e99(0x238),ch=_0x342e99(0x228);function _0x1014(_0x3022a,_0x143001){const _0x10df38=_0x10df();return _0x1014=function(_0x101423,_0x5ece5b){_0x101423=_0x101423-0x1f1;let _0x1b3ad6=_0x10df38[_0x101423];return _0x1b3ad6;},_0x1014(_0x3022a,_0x143001);}export class AIChatContextPanelUrlInputView extends _0x47fda4{[_0x342e99(0x230)];[_0x342e99(0x206)];[_0x342e99(0x221)];[_0x342e99(0x1f2)];[_0x342e99(0x22f)];[_0x342e99(0x226)];[_0x342e99(0x1f6)];constructor(_0x178697){const _0xdc165b=_0x342e99;super(_0x178697),this[_0xdc165b(0x230)]=new _0x8d8e0b(),this[_0xdc165b(0x206)]=new _0x293448(),this[_0xdc165b(0x226)]=this[_0xdc165b(0x1fa)](),this[_0xdc165b(0x22f)]=this[_0xdc165b(0x1fc)](),this[_0xdc165b(0x1f6)]=this[_0xdc165b(0x1f8)](),this[_0xdc165b(0x221)]=this[_0xdc165b(0x1fe)]([this[_0xdc165b(0x226)],this[_0xdc165b(0x22f)],this[_0xdc165b(0x1f6)]]),this[_0xdc165b(0x1f2)]=new _0xf7895f({'focusables':this[_0xdc165b(0x221)],'focusTracker':this[_0xdc165b(0x230)],'keystrokeHandler':this[_0xdc165b(0x206)],'actions':{'focusPrevious':_0xdc165b(0x1f7),'focusNext':_0xdc165b(0x23a)}}),this[_0xdc165b(0x20b)](_0xdc165b(0x21c),!0x0),this[_0xdc165b(0x214)](),this[_0xdc165b(0x223)](),this[_0xdc165b(0x234)]();}[_0x342e99(0x212)](){const _0x2347e9=_0x342e99;super[_0x2347e9(0x212)](),this[_0x2347e9(0x221)][_0x2347e9(0x22c)](_0x16a750=>{const _0x389339=_0x2347e9;this[_0x389339(0x230)][_0x389339(0x237)](_0x16a750[_0x389339(0x203)]),this[_0x389339(0x206)][_0x389339(0x20c)](_0x16a750[_0x389339(0x203)]);}),_0x5d0e9a({'view':this}),this[_0x2347e9(0x1f3)]();}[_0x342e99(0x239)](){const _0x514917=_0x342e99;super[_0x514917(0x239)](),this[_0x514917(0x230)][_0x514917(0x239)](),this[_0x514917(0x206)][_0x514917(0x239)]();}[_0x342e99(0x1f3)](){const _0x538677=_0x342e99;this[_0x538677(0x22f)][_0x538677(0x1f3)]();}[_0x342e99(0x23c)](){const _0x1194ef=_0x342e99;return this[_0x1194ef(0x22f)][_0x1194ef(0x1fd)][_0x1194ef(0x203)]?.[_0x1194ef(0x20e)]?.[_0x1194ef(0x1f9)]()||'';}[_0x342e99(0x22b)](){const _0x552c4a=_0x342e99;this[_0x552c4a(0x22f)][_0x552c4a(0x1fd)][_0x552c4a(0x203)][_0x552c4a(0x20e)]='',this[_0x552c4a(0x22f)][_0x552c4a(0x21a)]=null,this[_0x552c4a(0x1f6)][_0x552c4a(0x1fb)]=!0x1;}[_0x342e99(0x218)](_0x3f88f5){const _0x3ec999=_0x342e99;this[_0x3ec999(0x22f)][_0x3ec999(0x21a)]=_0x3f88f5,this[_0x3ec999(0x208)](),this[_0x3ec999(0x219)](_0x3ec999(0x236));}[_0x342e99(0x21d)](){const _0x140f71=_0x342e99;this[_0x140f71(0x22f)][_0x140f71(0x21a)]=null,this[_0x140f71(0x208)]();}[_0x342e99(0x1fa)](){const _0x1e91a8=_0x342e99,_0x50d0cf=new _0x137736(this[_0x1e91a8(0x217)]);return _0x50d0cf[_0x1e91a8(0x20b)]({'icon':_0x3fee1e,'tooltip':_0x5d957c(this[_0x1e91a8(0x217)],_0x1e91a8(0x222)),'tooltipPosition':'n','class':[_0x1e91a8(0x200)]}),this['on'](_0x1e91a8(0x20d),(_0x21e351,_0x627cbe,_0x5ec71b)=>{const _0x42cc6e=_0x1e91a8;_0x50d0cf[_0x42cc6e(0x20b)]({'class':[_0x42cc6e(0x200)+(_0x5ec71b?'':_0x42cc6e(0x205))]});}),_0x50d0cf;}[_0x342e99(0x1fc)](){const _0x5c9ab2=_0x342e99,_0x343b75=new _0x21bbd4(this[_0x5c9ab2(0x217)],_0x3c2218);return _0x343b75[_0x5c9ab2(0x20b)]({'label':_0x5d957c(this[_0x5c9ab2(0x217)],_0x5c9ab2(0x207)),'class':_0x5c9ab2(0x22a)}),_0x343b75[_0x5c9ab2(0x1fd)][_0x5c9ab2(0x20b)]({'placeholder':_0x5d957c(this[_0x5c9ab2(0x217)],_0x5c9ab2(0x22e))}),_0x343b75;}[_0x342e99(0x1f8)](){const _0xf078e2=_0x342e99,_0x1e935f=new _0x137736(this[_0xf078e2(0x217)]);return _0x1e935f[_0xf078e2(0x20b)]({'icon':_0x20558c,'tooltip':_0x5d957c(this[_0xf078e2(0x217)],_0xf078e2(0x1f1)),'tooltipPosition':'n','class':_0xf078e2(0x20f),'type':_0xf078e2(0x23b),'isEnabled':!0x1}),_0x1e935f;}[_0x342e99(0x214)](){const _0x33b702=_0x342e99,_0x421798=new _0x481195(this[_0x33b702(0x217)],{'label':_0x5d957c(this[_0x33b702(0x217)],_0x33b702(0x1f1)),'class':_0x33b702(0x21e)});_0x421798[_0x33b702(0x225)][_0x33b702(0x237)](this[_0x33b702(0x226)],0x0),this[_0x33b702(0x23d)]({'tag':_0x33b702(0x213),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x421798,{'tag':_0x33b702(0x22d),'attributes':{'class':ch},'children':[this[_0x33b702(0x22f)],this[_0x33b702(0x1f6)]]}]});}[_0x342e99(0x223)](){const _0x3e0884=_0x342e99;this[_0x3e0884(0x226)]['on'](_0x3e0884(0x209),()=>{const _0x4bbed9=_0x3e0884;this[_0x4bbed9(0x22b)](),this[_0x4bbed9(0x219)](_0x4bbed9(0x216));}),this[_0x3e0884(0x22f)][_0x3e0884(0x1fd)]['on'](_0x3e0884(0x21f),()=>{const _0x299892=_0x3e0884;this[_0x299892(0x21d)](),this[_0x299892(0x208)](),this[_0x299892(0x219)](_0x299892(0x236));}),this['on'](_0x3e0884(0x23b),_0x480c75=>{const _0x48d568=_0x3e0884;_0x480c75[_0x48d568(0x233)](),this[_0x48d568(0x211)]();});}[_0x342e99(0x234)](){const _0x51af54=_0x342e99;this[_0x51af54(0x206)][_0x51af54(0x20b)](_0x51af54(0x220),(_0x6c8378,_0x4f18fe)=>{const _0x2ea5de=_0x51af54;this[_0x2ea5de(0x22b)](),this[_0x2ea5de(0x219)](_0x2ea5de(0x216)),_0x4f18fe();});}[_0x342e99(0x211)](){const _0x2d9087=_0x342e99,_0x15d58e=this[_0x2d9087(0x23c)]()[_0x2d9087(0x1f9)]();_0x15d58e?this[_0x2d9087(0x235)](_0x15d58e)?(this[_0x2d9087(0x21d)](),this[_0x2d9087(0x219)](_0x2d9087(0x1ff),_0x15d58e)):this[_0x2d9087(0x218)](_0x5d957c(this[_0x2d9087(0x217)],_0x2d9087(0x1f5))):this[_0x2d9087(0x218)](_0x5d957c(this[_0x2d9087(0x217)],_0x2d9087(0x201)));}[_0x342e99(0x208)](){const _0x1ab8c2=_0x342e99,_0x1c9204=this[_0x1ab8c2(0x23c)]()[_0x1ab8c2(0x1f9)](),_0x595cb6=!!this[_0x1ab8c2(0x22f)][_0x1ab8c2(0x21a)];this[_0x1ab8c2(0x1f6)][_0x1ab8c2(0x1fb)]=_0x1c9204[_0x1ab8c2(0x210)]>0x0&&!_0x595cb6;}[_0x342e99(0x235)](_0x72fbb4){try{return!!new URL(_0x72fbb4);}catch{return!0x1;}}}
23
+ function _0x4e40(){const _0x2e5005=['ck-button-icon\x20ck-button-back','element','esc','urlInputField','ck-labeled-field-view_empty','errorText','_createConfirmButton','AI_CHAT_CONTEXT_URL_PLACEHOLDER','submit','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','278vYNuSa','confirmButton','render','1473tzzTzY','fire','focus','add','destroy','_isValidUrl','12wTXqJu','refreshBalloon','trim','length','4xrNYhH','locale','_createUrlInputField','getValue','_updateConfirmButtonState','div','AI_CHAT_CONTEXT_URL_LABEL','73820auJCHg','focusCycler','isEnabled','18Fvrdee','set','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','549lemgRv','tab','494005GWonzf','AI_CHAT_CONTEXT_URL_INVALID_ERROR','setError','_focusables','shift+tab','_handleSubmit','ck-button-icon','submitUrl','ck-ai-chat-context-controls__url-input-section','\x20ck-hidden','_setupEventHandlers','createCollection','listenTo','fieldView','stop','forEach','keystrokes','setTemplate','_setupTemplate','_createBackButton','change:withBackButton','14577035lGSUwK','189251yggxTf','1391551ERGVtZ','ck-ai-chat-context-controls__url-form','backButton','clear','focusTracker','form','AI_CHAT_CONTEXT_URL_ADD_URL','1449208kYSjBk','input','_setupKeystrokes','children','withBackButton','clearError','execute','value','cancel'];_0x4e40=function(){return _0x2e5005;};return _0x4e40();}const _0x1f260b=_0x9b8c;(function(_0x47c561,_0x3af42b){const _0x415378=_0x9b8c,_0x37a183=_0x47c561();while(!![]){try{const _0x1cb941=parseInt(_0x415378(0x10f))/0x1+-parseInt(_0x415378(0x12b))/0x2*(parseInt(_0x415378(0x12e))/0x3)+parseInt(_0x415378(0xea))/0x4*(parseInt(_0x415378(0xf9))/0x5)+-parseInt(_0x415378(0xf4))/0x6*(parseInt(_0x415378(0x110))/0x7)+-parseInt(_0x415378(0x117))/0x8+parseInt(_0x415378(0xf7))/0x9*(-parseInt(_0x415378(0xf1))/0xa)+parseInt(_0x415378(0x10e))/0xb*(parseInt(_0x415378(0xe6))/0xc);if(_0x1cb941===_0x3af42b)break;else _0x37a183['push'](_0x37a183['shift']());}catch(_0x4891f1){_0x37a183['push'](_0x37a183['shift']());}}}(_0x4e40,0x4d6e4));import{FocusTracker as _0x52c050,KeystrokeHandler as _0x3b2c42}from'ckeditor5/src/utils.js';import{ButtonView as _0x3be205,FocusCycler as _0x4efe2e,LabeledFieldView as _0x37812a,View as _0x3dc6d0,FormHeaderView as _0x40d74f,createLabeledInputText as _0x33214d,submitHandler as _0x138961}from'ckeditor5/src/ui.js';import{IconCheck as _0x550a6a,IconPreviousArrow as _0x19f249}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5cb506}from'../../../aicore/utils/common-translations.js';function _0x9b8c(_0x588a67,_0x485cff){const _0x4e40b1=_0x4e40();return _0x9b8c=function(_0x9b8cd0,_0x2c3cf7){_0x9b8cd0=_0x9b8cd0-0xe5;let _0x337f70=_0x4e40b1[_0x9b8cd0];return _0x337f70;},_0x9b8c(_0x588a67,_0x485cff);}const oh=_0x1f260b(0x111),ch=_0x1f260b(0x101);export class AIChatContextPanelUrlInputView extends _0x3dc6d0{[_0x1f260b(0x114)];[_0x1f260b(0x109)];[_0x1f260b(0xfc)];[_0x1f260b(0xf2)];[_0x1f260b(0x123)];[_0x1f260b(0x112)];[_0x1f260b(0x12c)];constructor(_0x1c3c43){const _0x2a1b9e=_0x1f260b;super(_0x1c3c43),this[_0x2a1b9e(0x114)]=new _0x52c050(),this[_0x2a1b9e(0x109)]=new _0x3b2c42(),this[_0x2a1b9e(0x112)]=this[_0x2a1b9e(0x10c)](),this[_0x2a1b9e(0x123)]=this[_0x2a1b9e(0xec)](),this[_0x2a1b9e(0x12c)]=this[_0x2a1b9e(0x126)](),this[_0x2a1b9e(0xfc)]=this[_0x2a1b9e(0x104)]([this[_0x2a1b9e(0x112)],this[_0x2a1b9e(0x123)],this[_0x2a1b9e(0x12c)]]),this[_0x2a1b9e(0xf2)]=new _0x4efe2e({'focusables':this[_0x2a1b9e(0xfc)],'focusTracker':this[_0x2a1b9e(0x114)],'keystrokeHandler':this[_0x2a1b9e(0x109)],'actions':{'focusPrevious':_0x2a1b9e(0xfd),'focusNext':_0x2a1b9e(0xf8)}}),this[_0x2a1b9e(0xf5)](_0x2a1b9e(0x11b),!0x0),this[_0x2a1b9e(0x10b)](),this[_0x2a1b9e(0x103)](),this[_0x2a1b9e(0x119)]();}[_0x1f260b(0x12d)](){const _0x3e480b=_0x1f260b;super[_0x3e480b(0x12d)](),this[_0x3e480b(0xfc)][_0x3e480b(0x108)](_0x4a997a=>{const _0x25a9f5=_0x3e480b;this[_0x25a9f5(0x114)][_0x25a9f5(0x131)](_0x4a997a[_0x25a9f5(0x121)]),this[_0x25a9f5(0x109)][_0x25a9f5(0x105)](_0x4a997a[_0x25a9f5(0x121)]);}),_0x138961({'view':this}),this[_0x3e480b(0x130)]();}[_0x1f260b(0x132)](){const _0x3fd147=_0x1f260b;super[_0x3fd147(0x132)](),this[_0x3fd147(0x114)][_0x3fd147(0x132)](),this[_0x3fd147(0x109)][_0x3fd147(0x132)]();}[_0x1f260b(0x130)](){const _0x3a6483=_0x1f260b;this[_0x3a6483(0x123)][_0x3a6483(0x130)]();}[_0x1f260b(0xed)](){const _0x506f87=_0x1f260b;return this[_0x506f87(0x123)][_0x506f87(0x106)][_0x506f87(0x121)]?.[_0x506f87(0x11e)]?.[_0x506f87(0xe8)]()||'';}[_0x1f260b(0x113)](){const _0x4b62a0=_0x1f260b;this[_0x4b62a0(0x123)][_0x4b62a0(0x106)][_0x4b62a0(0x121)][_0x4b62a0(0x11e)]='',this[_0x4b62a0(0x123)][_0x4b62a0(0x125)]=null,this[_0x4b62a0(0x12c)][_0x4b62a0(0xf3)]=!0x1;}[_0x1f260b(0xfb)](_0x5eebce){const _0x114080=_0x1f260b;this[_0x114080(0x123)][_0x114080(0x125)]=_0x5eebce,this[_0x114080(0xee)](),this[_0x114080(0x12f)](_0x114080(0xe7));}[_0x1f260b(0x11c)](){const _0x3aa5ab=_0x1f260b;this[_0x3aa5ab(0x123)][_0x3aa5ab(0x125)]=null,this[_0x3aa5ab(0xee)]();}[_0x1f260b(0x10c)](){const _0xa824bb=_0x1f260b,_0x4e696d=new _0x3be205(this[_0xa824bb(0xeb)]);return _0x4e696d[_0xa824bb(0xf5)]({'icon':_0x19f249,'tooltip':_0x5cb506(this[_0xa824bb(0xeb)],_0xa824bb(0x129)),'tooltipPosition':'n','class':[_0xa824bb(0x120)]}),this['on'](_0xa824bb(0x10d),(_0x49a4ef,_0x3a8b00,_0x372bb9)=>{const _0x9466be=_0xa824bb;_0x4e696d[_0x9466be(0xf5)]({'class':[_0x9466be(0x120)+(_0x372bb9?'':_0x9466be(0x102))]});}),_0x4e696d;}[_0x1f260b(0xec)](){const _0x63991a=_0x1f260b,_0x2a25c6=new _0x37812a(this[_0x63991a(0xeb)],_0x33214d);return _0x2a25c6[_0x63991a(0xf5)]({'label':_0x5cb506(this[_0x63991a(0xeb)],_0x63991a(0xf0)),'class':_0x63991a(0x124)}),_0x2a25c6[_0x63991a(0x106)][_0x63991a(0xf5)]({'placeholder':_0x5cb506(this[_0x63991a(0xeb)],_0x63991a(0x127))}),_0x2a25c6;}[_0x1f260b(0x126)](){const _0x2b2f74=_0x1f260b,_0x25e744=new _0x3be205(this[_0x2b2f74(0xeb)]);return _0x25e744[_0x2b2f74(0xf5)]({'icon':_0x550a6a,'tooltip':_0x5cb506(this[_0x2b2f74(0xeb)],_0x2b2f74(0x116)),'tooltipPosition':'n','class':_0x2b2f74(0xff),'type':_0x2b2f74(0x128),'isEnabled':!0x1}),_0x25e744;}[_0x1f260b(0x10b)](){const _0x7aeda=_0x1f260b,_0xc4a71=new _0x40d74f(this[_0x7aeda(0xeb)],{'label':_0x5cb506(this[_0x7aeda(0xeb)],_0x7aeda(0x116)),'class':_0x7aeda(0x12a)});_0xc4a71[_0x7aeda(0x11a)][_0x7aeda(0x131)](this[_0x7aeda(0x112)],0x0),this[_0x7aeda(0x10a)]({'tag':_0x7aeda(0x115),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0xc4a71,{'tag':_0x7aeda(0xef),'attributes':{'class':ch},'children':[this[_0x7aeda(0x123)],this[_0x7aeda(0x12c)]]}]});}[_0x1f260b(0x103)](){const _0x49cb0a=_0x1f260b;this[_0x49cb0a(0x112)]['on'](_0x49cb0a(0x11d),()=>{const _0x19fee3=_0x49cb0a;this[_0x19fee3(0x113)](),this[_0x19fee3(0x12f)](_0x19fee3(0x11f));}),this[_0x49cb0a(0x123)][_0x49cb0a(0x106)]['on'](_0x49cb0a(0x118),()=>{const _0x442348=_0x49cb0a;this[_0x442348(0x11c)](),this[_0x442348(0xee)](),this[_0x442348(0x12f)](_0x442348(0xe7));}),this['on'](_0x49cb0a(0x128),_0x35147a=>{const _0x3cac13=_0x49cb0a;_0x35147a[_0x3cac13(0x107)](),this[_0x3cac13(0xfe)]();});}[_0x1f260b(0x119)](){const _0x5a8f0b=_0x1f260b;this[_0x5a8f0b(0x109)][_0x5a8f0b(0xf5)](_0x5a8f0b(0x122),(_0x23286d,_0x1731e4)=>{const _0x373d0d=_0x5a8f0b;this[_0x373d0d(0x113)](),this[_0x373d0d(0x12f)](_0x373d0d(0x11f)),_0x1731e4();});}[_0x1f260b(0xfe)](){const _0x140c78=_0x1f260b,_0x16f07c=this[_0x140c78(0xed)]()[_0x140c78(0xe8)]();_0x16f07c?this[_0x140c78(0xe5)](_0x16f07c)?(this[_0x140c78(0x11c)](),this[_0x140c78(0x12f)](_0x140c78(0x100),_0x16f07c)):this[_0x140c78(0xfb)](_0x5cb506(this[_0x140c78(0xeb)],_0x140c78(0xfa))):this[_0x140c78(0xfb)](_0x5cb506(this[_0x140c78(0xeb)],_0x140c78(0xf6)));}[_0x1f260b(0xee)](){const _0x215856=_0x1f260b,_0x23ccbf=this[_0x215856(0xed)]()[_0x215856(0xe8)](),_0x1cc19d=!!this[_0x215856(0x123)][_0x215856(0x125)];this[_0x215856(0x12c)][_0x215856(0xf3)]=_0x23ccbf[_0x215856(0xe9)]>0x0&&!_0x1cc19d;}[_0x1f260b(0xe5)](_0x20da34){try{return!!new URL(_0x20da34);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xbf973f=_0x1172;(function(_0x445a29,_0x37550d){const _0x546b27=_0x1172,_0x518403=_0x445a29();while(!![]){try{const _0x410698=parseInt(_0x546b27(0x18f))/0x1*(-parseInt(_0x546b27(0x15c))/0x2)+parseInt(_0x546b27(0x16f))/0x3+parseInt(_0x546b27(0x156))/0x4+-parseInt(_0x546b27(0x126))/0x5+-parseInt(_0x546b27(0x165))/0x6+-parseInt(_0x546b27(0x182))/0x7+parseInt(_0x546b27(0x17d))/0x8*(parseInt(_0x546b27(0x164))/0x9);if(_0x410698===_0x37550d)break;else _0x518403['push'](_0x518403['shift']());}catch(_0x4d60c2){_0x518403['push'](_0x518403['shift']());}}}(_0x1162,0x2de18));import{BalloonPanelView as _0xd6fb1,ButtonView as _0x313448,clickOutsideHandler as _0x5eafb9,FileDialogButtonView as _0x56b083,IconView as _0xf0094a,View as _0x479a28}from'ckeditor5/src/ui.js';function _0x1172(_0x4a7584,_0x24e44e){const _0x116258=_0x1162();return _0x1172=function(_0x11728d,_0x5e0d6f){_0x11728d=_0x11728d-0x101;let _0x4543bc=_0x116258[_0x11728d];return _0x4543bc;},_0x1172(_0x4a7584,_0x24e44e);}import{IconBrowseFiles as _0x3add85,IconDocument as _0x130b22,IconDocumentOutline as _0x23bc0b,IconDropdownArrow as _0x45d14b,IconLink as _0x111e77,IconPaperClip as _0xf96175}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x5ef325}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x18e307}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x836b1d}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x2f7e19}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5397b1}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0xbf973f(0x162),_0xbf973f(0x163),_0xbf973f(0x106),_0xbf973f(0x187),_0xbf973f(0x167),_0xbf973f(0x190),_0xbf973f(0x193)];const Oo=_0xbf973f(0x109),Uo=_0xbf973f(0x118),Lo=_0xbf973f(0x195),No=_0xbf973f(0x14a),Mo=_0xbf973f(0x110),Ho=_0xbf973f(0x178),jo=_0xbf973f(0x157),Fo=_0xbf973f(0x125),Xo=_0xbf973f(0x11b),yo=_0xbf973f(0x16b),Do=_0xbf973f(0x14b),$o=_0xbf973f(0x16e),Wo=[_0xd6fb1[_0xbf973f(0x144)][_0xbf973f(0x102)],_0xd6fb1[_0xbf973f(0x144)][_0xbf973f(0x15e)],_0xd6fb1[_0xbf973f(0x144)][_0xbf973f(0x10c)],_0xd6fb1[_0xbf973f(0x144)][_0xbf973f(0x17f)],_0xd6fb1[_0xbf973f(0x144)][_0xbf973f(0x15d)],_0xd6fb1[_0xbf973f(0x144)][_0xbf973f(0x130)]];export class AIChatContextPanelView extends _0x479a28{[_0xbf973f(0x120)];[_0xbf973f(0x189)]=this[_0xbf973f(0x128)]();[_0xbf973f(0x114)]=this[_0xbf973f(0x128)]();[_0xbf973f(0x104)];[_0xbf973f(0x112)];[_0xbf973f(0x121)];[_0xbf973f(0x119)];[_0xbf973f(0x160)];[_0xbf973f(0x105)];[_0xbf973f(0x122)]=!0x1;[_0xbf973f(0x147)];constructor(_0x493e30,_0xecc855){const _0x2bc56e=_0xbf973f;super(_0x493e30),this[_0x2bc56e(0x147)]=_0xecc855[_0x2bc56e(0x147)],this[_0x2bc56e(0x189)]=this[_0x2bc56e(0x128)](),this[_0x2bc56e(0x114)]=this[_0x2bc56e(0x128)](),this[_0x2bc56e(0x120)]=this[_0x2bc56e(0x15a)](_0x493e30),this[_0x2bc56e(0x112)]=this[_0x2bc56e(0x17e)](_0x493e30),this[_0x2bc56e(0x121)]=this[_0x2bc56e(0x17c)](_0x493e30),this[_0x2bc56e(0x160)]=this[_0x2bc56e(0x155)](_0x493e30,_0xecc855);const _0x502d9e={'cssClasses':{'showMoreButton':yo,'showMoreBalloon':Do,'overflowContainer':Xo,'controlsButton':Fo}};this[_0x2bc56e(0x104)]=new _0x836b1d(_0x493e30,this[_0x2bc56e(0x189)],_0x502d9e,this[_0x2bc56e(0x147)],this),this[_0x2bc56e(0x105)]={'buttonView':this[_0x2bc56e(0x120)],'balloonView':this[_0x2bc56e(0x112)],'hideMethod':this[_0x2bc56e(0x13c)][_0x2bc56e(0x196)](this),'showMethod':this[_0x2bc56e(0x177)][_0x2bc56e(0x196)](this)},this[_0x2bc56e(0x175)](),this[_0x2bc56e(0x173)]();}[_0xbf973f(0x150)](){const _0x48b7db=_0xbf973f;super[_0x48b7db(0x150)](),this[_0x48b7db(0x134)](),this[_0x48b7db(0x104)][_0x48b7db(0x18c)](this[_0x48b7db(0x117)]),this[_0x48b7db(0x104)][_0x48b7db(0x14f)]();}[_0xbf973f(0x135)](){const _0x53cce9=_0xbf973f;super[_0x53cce9(0x135)](),this[_0x53cce9(0x104)][_0x53cce9(0x135)](),this[_0x53cce9(0x160)][_0x53cce9(0x135)]();}[_0xbf973f(0x16d)](_0x45b776,_0x29532a){const _0x28a800=_0xbf973f,_0x3ea906=this[_0x28a800(0x140)](_0x45b776,_0x28a800(0x153),!0x0,_0x29532a);this[_0x28a800(0x180)](_0x3ea906,this[_0x28a800(0x189)]),this[_0x28a800(0x104)][_0x28a800(0x14f)]();}[_0xbf973f(0x167)](_0x48b0c7){const _0x1f609d=_0xbf973f;this[_0x1f609d(0x127)](_0x48b0c7,this[_0x1f609d(0x189)]),this[_0x1f609d(0x127)](_0x48b0c7,this[_0x1f609d(0x104)][_0x1f609d(0x15f)]),this[_0x1f609d(0x104)][_0x1f609d(0x14f)]();}[_0xbf973f(0x16a)](_0x569f45,_0x293e73){const _0x52d640=_0xbf973f;let _0x4df9e5=this[_0x52d640(0x189)][_0x52d640(0x192)](_0x38df82=>_0x38df82['id']===_0x569f45);_0x4df9e5||(_0x4df9e5=this[_0x52d640(0x104)][_0x52d640(0x15f)][_0x52d640(0x192)](_0x448167=>_0x448167['id']===_0x569f45)),_0x4df9e5&&(_0x4df9e5[_0x52d640(0x181)]=_0x293e73);}[_0xbf973f(0x188)](_0x1baffc){const _0x568165=_0xbf973f;this[_0x568165(0x114)][_0x568165(0x14c)]();for(const _0x2d0b05 of _0x1baffc){const _0x35991d=this[_0x568165(0x140)](_0x2d0b05,_0x568165(0x11f),!0x1,!0x1);this[_0x568165(0x180)](_0x35991d,this[_0x568165(0x114)]);}}[_0xbf973f(0x132)](){const _0x5de1ba=_0xbf973f;this[_0x5de1ba(0x189)][_0x5de1ba(0x14c)](),this[_0x5de1ba(0x104)][_0x5de1ba(0x14c)]();}[_0xbf973f(0x101)](){const _0x17e558=_0xbf973f;this[_0x17e558(0x114)][_0x17e558(0x14c)]();}[_0xbf973f(0x18d)](_0xe0665c,_0x41d971,_0x543fcd){const _0x2b5878=_0xbf973f;this[_0x2b5878(0x160)][_0x2b5878(0x18d)](_0xe0665c,_0x41d971,_0x543fcd);}[_0xbf973f(0x13c)](){const _0x426333=_0xbf973f;this[_0x426333(0x151)](!0x1);}[_0xbf973f(0x177)](){const _0x212acd=_0xbf973f;this[_0x212acd(0x151)](!0x0);}[_0xbf973f(0x12b)](){const _0x379105=_0xbf973f;this[_0x379105(0x121)][_0x379105(0x115)](),this[_0x379105(0x120)][_0x379105(0x143)]=!0x1,this[_0x379105(0x119)]&&this[_0x379105(0x119)][_0x379105(0x14c)]();}[_0xbf973f(0x124)](){const _0x14a800=_0xbf973f;this[_0x14a800(0x121)][_0x14a800(0x11d)](),this[_0x14a800(0x120)][_0x14a800(0x143)]=!0x0;}[_0xbf973f(0x185)]({source:_0x46dfc2,withBackButton:_0x214066}){const _0x1f9f4e=_0xbf973f;this[_0x1f9f4e(0x160)][_0x1f9f4e(0x138)]({'source':_0x46dfc2,'withBackButton':_0x214066}),this[_0x1f9f4e(0x120)][_0x1f9f4e(0x143)]=!0x0;}[_0xbf973f(0x17b)](_0x2848c0,_0x17bac6,_0x22a863,_0x21a7dd){const _0x445dee=_0xbf973f;this[_0x445dee(0x160)][_0x445dee(0x17b)](_0x2848c0,_0x22a863,_0x21a7dd);}[_0xbf973f(0x142)](_0x12d800){const _0x32ce1e=_0xbf973f;this[_0x32ce1e(0x160)][_0x32ce1e(0x142)](_0x12d800),this[_0x32ce1e(0x120)][_0x32ce1e(0x143)]=!0x1;}[_0xbf973f(0x116)](_0x6c8f41){const _0x27dae5=_0xbf973f;this[_0x27dae5(0x183)](this[_0x27dae5(0x112)],this[_0x27dae5(0x10e)],_0x6c8f41),this[_0x27dae5(0x159)](_0x6c8f41);}[_0xbf973f(0x159)](_0x2fbab0){const _0x50aa0e=_0xbf973f,_0x1daa00=!_0x2fbab0[_0x50aa0e(0x129)][_0x50aa0e(0x137)]&&_0x2fbab0[_0x50aa0e(0x129)][_0x50aa0e(0x10d)],_0x3af18c=_0x2fbab0[_0x50aa0e(0x18b)][_0x50aa0e(0x10d)],_0x288843=_0x2fbab0[_0x50aa0e(0x14e)][_0x50aa0e(0x10d)],_0x3d3d6d=_0x2fbab0[_0x50aa0e(0x166)][_0x50aa0e(0x179)]>0x0,_0x48604d=_0x2fbab0[_0x50aa0e(0x158)]&&_0x2fbab0[_0x50aa0e(0x158)][_0x50aa0e(0x179)]>0x0;this[_0x50aa0e(0x120)][_0x50aa0e(0x108)]=_0x1daa00||_0x3af18c||_0x288843||_0x3d3d6d||_0x48604d;}[_0xbf973f(0x175)](){const _0x48155e=_0xbf973f;this[_0x48155e(0x13f)]({'tag':_0x48155e(0x12e),'attributes':{'class':[Oo,_0x48155e(0x12c)]},'children':[{'tag':_0x48155e(0x12e),'attributes':{'class':Uo},'children':this[_0x48155e(0x189)]}]});}[_0xbf973f(0x173)](){const _0x33ee0e=_0xbf973f;this[_0x33ee0e(0x120)]['on'](_0x33ee0e(0x161),()=>{const _0x3a9e38=_0x33ee0e;this[_0x3a9e38(0x146)]();});}[_0xbf973f(0x15a)](_0x4980bf){const _0x3f1aa0=_0xbf973f,_0x8d16e4=new _0x313448(_0x4980bf);return _0x8d16e4[_0x3f1aa0(0x194)]({'label':_0x2f7e19(_0x4980bf,_0x3f1aa0(0x111)),'class':Fo+'\x20'+No,'icon':_0xf96175,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x8d16e4;}[_0xbf973f(0x17e)](_0x5db828){const _0x28c95e=_0xbf973f;return this[_0x28c95e(0x136)](_0x5db828,Lo);}[_0xbf973f(0x17c)](_0x4959d7){const _0x1edfcf=_0xbf973f,_0xc679c6=this[_0x1edfcf(0x136)](_0x4959d7,Mo);return this[_0x1edfcf(0x10a)](_0xc679c6,_0x4959d7),_0xc679c6;}[_0xbf973f(0x155)](_0x1f84a4,_0x5f4c79){const _0x46fbe4=_0xbf973f,_0x3b4781={'searchInputVisibleFrom':_0x5f4c79[_0x46fbe4(0x145)],'onBackToContext':()=>{const _0x4e18da=_0x46fbe4;this[_0x4e18da(0x177)](),this[_0x4e18da(0x112)][_0x4e18da(0x172)]({'target':this[_0x4e18da(0x120)][_0x4e18da(0x117)],'limiter':this[_0x4e18da(0x103)](),'positions':Wo});},'onResourceSelected':(_0x6840a6,_0x5d5ddf)=>{const _0x3e91a1=_0x46fbe4;this[_0x3e91a1(0x11c)](_0x3e91a1(0x187),{'source':_0x6840a6,'resource':_0x5d5ddf});},'onLoadSourceResources':_0x1f8a44=>{const _0x5eaa15=_0x46fbe4;this[_0x5eaa15(0x11c)](_0x5eaa15(0x190),_0x1f8a44);},'onBalloonClosed':()=>{const _0x16214b=_0x46fbe4;this[_0x16214b(0x120)][_0x16214b(0x143)]=!0x1;},'getLimiterElement':()=>this[_0x46fbe4(0x103)](),'getTargetElement':()=>this[_0x46fbe4(0x120)][_0x46fbe4(0x117)]};return new _0x5397b1(_0x1f84a4,_0x5f4c79[_0x46fbe4(0x147)],_0x3b4781);}[_0xbf973f(0x103)](){const _0x392270=_0xbf973f;return this[_0x392270(0x117)]?.[_0x392270(0x12a)]('.'+$o)||document[_0x392270(0x16c)];}[_0xbf973f(0x136)](_0x1fa191,_0x3377cc){const _0x459d4d=_0xbf973f,_0x37e979=new _0xd6fb1(_0x1fa191);return _0x37e979[_0x459d4d(0x191)]({'attributes':{'class':_0x3377cc}}),this[_0x459d4d(0x147)][_0x459d4d(0x11e)](_0x37e979),_0x37e979;}[_0xbf973f(0x183)](_0x24924a,_0x1b8ab4,_0x458011){const _0x49a9ec=_0xbf973f;if(_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x14c)](),!_0x458011[_0x49a9ec(0x129)][_0x49a9ec(0x137)]&&_0x458011[_0x49a9ec(0x129)][_0x49a9ec(0x10d)]){const _0x52d1a4=this[_0x49a9ec(0x171)](_0x1b8ab4,{'label':_0x2f7e19(_0x1b8ab4,_0x49a9ec(0x15b)),'icon':_0x130b22});_0x52d1a4['on'](_0x49a9ec(0x161),()=>{const _0x247faa=_0x49a9ec;this[_0x247faa(0x11c)](_0x247faa(0x162)),this[_0x247faa(0x13c)]();}),_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x11e)](_0x52d1a4);}if(_0x458011[_0x49a9ec(0x18b)][_0x49a9ec(0x10d)]){const _0x3f9517=this[_0x49a9ec(0x171)](_0x1b8ab4,{'label':_0x2f7e19(_0x1b8ab4,_0x49a9ec(0x18e)),'icon':_0x111e77});_0x3f9517['on'](_0x49a9ec(0x161),()=>{const _0x8ab772=_0x49a9ec;this[_0x8ab772(0x13c)](),this[_0x8ab772(0x124)](),this[_0x8ab772(0x121)][_0x8ab772(0x172)]({'target':this[_0x8ab772(0x120)][_0x8ab772(0x117)],'limiter':this[_0x8ab772(0x103)](),'positions':Wo}),this[_0x8ab772(0x119)][_0x8ab772(0x113)]();}),_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x11e)](_0x3f9517);}if(_0x458011[_0x49a9ec(0x14e)][_0x49a9ec(0x10d)]){const _0x21e0b0=new _0x56b083(_0x1b8ab4);_0x21e0b0[_0x49a9ec(0x194)]({'label':_0x2f7e19(_0x1b8ab4,_0x49a9ec(0x131)),'icon':_0x3add85,'withText':!0x0,'tooltip':!0x0,'class':Ho,'allowMultipleFiles':!0x0}),_0x21e0b0['on'](_0x49a9ec(0x161),()=>{const _0xe6244c=_0x49a9ec;this[_0xe6244c(0x13c)]();}),_0x21e0b0['on'](_0x49a9ec(0x11a),(_0x38b87d,_0x4c60d2)=>{const _0x58c7cb=_0x49a9ec;this[_0x58c7cb(0x11c)](_0x58c7cb(0x163),_0x4c60d2);}),_0x21e0b0[_0x49a9ec(0x139)]=!0x0,_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x11e)](_0x21e0b0);}for(const _0x57c0a9 of _0x458011[_0x49a9ec(0x166)]){const _0x341f13=this[_0x49a9ec(0x171)](_0x1b8ab4,{'label':_0x57c0a9[_0x49a9ec(0x10b)],'icon':_0x57c0a9[_0x49a9ec(0x12f)]||_0x23bc0b,'type':_0x49a9ec(0x13a)});_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x11e)](_0x341f13),_0x341f13['on'](_0x49a9ec(0x161),()=>{const _0x2f3fe2=_0x49a9ec;this[_0x2f3fe2(0x13c)](),this[_0x2f3fe2(0x185)]({'source':_0x57c0a9,'withBackButton':!this[_0x2f3fe2(0x122)]});});}for(const _0x2785f4 of _0x458011[_0x49a9ec(0x158)]||[]){const _0x17d812=this[_0x49a9ec(0x171)](_0x1b8ab4,{'label':_0x2785f4[_0x49a9ec(0x10b)],'icon':_0x2785f4[_0x49a9ec(0x12f)]||_0x23bc0b,'type':_0x49a9ec(0x133)});_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x11e)](_0x17d812),_0x17d812['on'](_0x49a9ec(0x161),()=>{const _0x35c1f5=_0x49a9ec;this[_0x35c1f5(0x13c)](),this[_0x35c1f5(0x11c)](_0x35c1f5(0x193),_0x2785f4);});}this[_0x49a9ec(0x122)]=0x1===_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x179)],this[_0x49a9ec(0x119)][_0x49a9ec(0x12d)]=!this[_0x49a9ec(0x122)];}[_0xbf973f(0x10a)](_0x26afa6,_0x21ae1b){const _0xccaf84=_0xbf973f;this[_0xccaf84(0x119)]=new _0x18e307(_0x21ae1b),this[_0xccaf84(0x119)]['on'](_0xccaf84(0x168),(_0x481cfd,_0x872378)=>{const _0x46c3ec=_0xccaf84;this[_0x46c3ec(0x174)](_0x872378);}),this[_0xccaf84(0x119)]['on'](_0xccaf84(0x186),()=>{const _0x170a41=_0xccaf84;this[_0x170a41(0x12b)](),this[_0x170a41(0x122)]||(this[_0x170a41(0x177)](),this[_0x170a41(0x112)][_0x170a41(0x172)]({'target':this[_0x170a41(0x120)][_0x170a41(0x117)],'limiter':this[_0x170a41(0x103)](),'positions':Wo}));}),this[_0xccaf84(0x119)]['on'](_0xccaf84(0x13e),()=>{const _0x46ddc3=_0xccaf84;this[_0x46ddc3(0x121)][_0x46ddc3(0x149)]&&this[_0x46ddc3(0x121)][_0x46ddc3(0x172)]({'target':this[_0x46ddc3(0x120)][_0x46ddc3(0x117)],'limiter':this[_0x46ddc3(0x103)](),'positions':Wo});}),_0x26afa6[_0xccaf84(0x10f)][_0xccaf84(0x11e)](this[_0xccaf84(0x119)]);}[_0xbf973f(0x171)](_0x1674e6,_0x3d3d5b){const _0x13af9b=_0xbf973f,_0x49107c=_0x13af9b(0x13a)===_0x3d3d5b[_0x13af9b(0x148)]?new SourcesBalloonButtonView(_0x1674e6):new _0x313448(_0x1674e6);return _0x49107c[_0x13af9b(0x194)]({'label':_0x3d3d5b[_0x13af9b(0x10b)],'icon':_0x3d3d5b[_0x13af9b(0x12f)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ho}),_0x49107c;}[_0xbf973f(0x134)](){const _0x3972ba=_0xbf973f;this[_0x3972ba(0x14d)](),this[_0x3972ba(0x13b)]();}[_0xbf973f(0x13b)](){const _0x51a6b0=_0xbf973f;_0x5eafb9({'emitter':this[_0x51a6b0(0x121)],'contextElements':[this[_0x51a6b0(0x121)][_0x51a6b0(0x117)]],'callback':()=>{const _0x49843b=_0x51a6b0;this[_0x49843b(0x12b)]();},'activator':()=>this[_0x51a6b0(0x121)][_0x51a6b0(0x149)]});}[_0xbf973f(0x151)](_0x43a299){const _0xaeaa06=_0xbf973f,_0x53e495=this[_0xaeaa06(0x105)];_0x53e495[_0xaeaa06(0x169)][_0xaeaa06(0x143)]=_0x43a299,_0x43a299?_0x53e495[_0xaeaa06(0x123)][_0xaeaa06(0x11d)]():_0x53e495[_0xaeaa06(0x123)][_0xaeaa06(0x115)]();}[_0xbf973f(0x14d)](){const _0x555fa9=_0xbf973f,{balloonView:_0x22fd38,buttonView:_0x534de2,hideMethod:_0xf350ea}=this[_0x555fa9(0x105)];_0x5eafb9({'emitter':_0x22fd38,'contextElements':[_0x22fd38[_0x555fa9(0x117)],_0x534de2[_0x555fa9(0x117)]],'callback':()=>{_0xf350ea();},'activator':()=>_0x534de2[_0x555fa9(0x143)]&&!this[_0x555fa9(0x121)][_0x555fa9(0x149)]&&!this[_0x555fa9(0x160)][_0x555fa9(0x18a)]()});}[_0xbf973f(0x140)](_0x8da7f3,_0x2a5639,_0xa4cbf5=!0x1,_0x4fc944=!0x1){const _0x31be8c=_0xbf973f,_0x542e74=_0x31be8c(0x11f)===_0x2a5639||!0x0===_0x8da7f3[_0x31be8c(0x176)],_0x30b9f9=new _0x5ef325(this[_0x31be8c(0x10e)],_0x8da7f3,_0x542e74,_0xa4cbf5,_0x4fc944);return _0x542e74||_0x30b9f9['on'](_0x31be8c(0x152),()=>{const _0x5b0707=_0x31be8c;this[_0x5b0707(0x11c)](_0x5b0707(0x167),_0x30b9f9['id']);}),_0x30b9f9;}[_0xbf973f(0x180)](_0x396ffb,_0x15da96){const _0x4cee97=_0xbf973f;_0x15da96[_0x4cee97(0x11e)](_0x396ffb,0x0);}[_0xbf973f(0x127)](_0x99a9b1,_0x3530fc){const _0x273707=_0xbf973f,_0x59b209=_0x3530fc[_0x273707(0x192)](_0x4ecbbf=>_0x4ecbbf['id']===_0x99a9b1);_0x59b209&&_0x3530fc[_0x273707(0x17a)](_0x59b209);}[_0xbf973f(0x146)](){const _0xcf5c17=_0xbf973f;this[_0xcf5c17(0x120)][_0xcf5c17(0x143)]?this[_0xcf5c17(0x13c)]():(this[_0xcf5c17(0x177)](),this[_0xcf5c17(0x112)][_0xcf5c17(0x172)]({'target':this[_0xcf5c17(0x120)][_0xcf5c17(0x117)],'limiter':this[_0xcf5c17(0x103)](),'positions':Wo}),this[_0xcf5c17(0x122)]&&this[_0xcf5c17(0x112)][_0xcf5c17(0x10f)][_0xcf5c17(0x13d)](0x0)?.[_0xcf5c17(0x11c)](_0xcf5c17(0x161)));}[_0xbf973f(0x174)](_0x46ed26){const _0x38032c=_0xbf973f;this[_0x38032c(0x119)][_0x38032c(0x14c)](),this[_0x38032c(0x12b)](),this[_0x38032c(0x11c)](_0x38032c(0x106),_0x46ed26);}}export class SourcesBalloonButtonView extends _0x313448{[_0xbf973f(0x184)];constructor(_0x595315){const _0x136356=_0xbf973f;super(_0x595315),this[_0x136356(0x194)]({'withText':!0x0,'role':_0x136356(0x141)}),this[_0x136356(0x184)]=this[_0x136356(0x170)](),this[_0x136356(0x191)]({'attributes':{'class':[jo]}});}[_0xbf973f(0x150)](){const _0x343d19=_0xbf973f;super[_0x343d19(0x150)](),this[_0x343d19(0x107)][_0x343d19(0x11e)](this[_0x343d19(0x184)]);}[_0xbf973f(0x170)](){const _0x46f164=_0xbf973f,_0x333ab2=new _0xf0094a();return _0x333ab2[_0x46f164(0x10f)]=_0x45d14b,_0x333ab2[_0x46f164(0x191)]({'attributes':{'class':jo+_0x46f164(0x154)}}),_0x333ab2;}}function _0x1162(){const _0x2dd2fd=['ck-ai-chat-context-controls__add-context-balloon-panel','bind','clearConversationContextItems','northArrowSouthWest','_getLimiterElement','_overflowManager','_addContextBalloonConfig','addUrlToContext','children','isEnabled','ck-ai-chat-context-controls','_addUrlContent','label','northArrowSouthEast','enabled','locale','content','ck-ai-chat-context-controls__url-balloon-panel','AI_CHAT_CONTEXT_ADD_CONTEXT','_addContextBalloonPanelView','focus','_conversationContextsChips','hide','setAddContextOptions','element','ck-ai-chat-context-controls__pending-contexts','_urlInputView','done','ck-ai-chat-context-chips-wrapper-balloon','fire','show','add','conversation','addContextButtonView','_urlBalloonPanelView','_hasExactlyOneSource','balloonView','showUrlBalloonPanel','ck-ai-chat-controls-button','261150dUsZlf','_removeContextFromCollection','createCollection','document','closest','hideUrlBalloonPanel','ck-reset_all-excluded','withBackButton','div','icon','southArrowNorthEast','AI_CHAT_CONTEXT_FILE_LABEL','clearCurrentContextItems','customItem','_setupAllBalloonClickOutsideHandlers','destroy','_createBaseBalloonPanel','isHidden','showSourceResourcesBalloon','tooltip','source','_setupUrlBalloonClickOutsideHandler','hideAddContextBalloonPanel','get','refreshBalloon','setTemplate','_createContextButton','menuitem','closeSourceResourceBalloon','isOn','defaultPositions','searchInputVisibleFrom','_handleAddContextButtonClick','bodyCollection','type','isVisible','ck-ai-chat-context-controls__add-context-button','ck-ai-chat-context-controls__show-more-balloon-panel','clear','_setupAddContextBalloonClickOutsideHandler','files','reorganizeChips','render','_toggleAddContextBalloon','removeContextItemChip','current','__arrow','_createResourcesBalloonView','109528zmnjUv','ck-ai-chat-context-controls__balloon-button-source','customItems','_setAddContextButtonEnabled','_createAddContextButtonView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','4CXJYUt','southArrowNorth','northArrowSouth','overflowChips','_resourcesBalloonView','execute','addDocumentToContext','addFileToContext','18qbdICq','840678vQCbiD','sources','removeContextItem','submitUrl','buttonView','setContextItemLoading','ck-ai-chat-controls_context_show-more-button','body','addContextItem','ck-ai-chat','861657YFVVFi','_createArrowView','_createBalloonButton','pin','_bindEventHandlers','_handleUrlSubmit','_setupTemplate','isReadOnly','showAddContextBalloonPanel','ck-ai-chat-context-controls__balloon-button','length','remove','populateSourceResourceBalloon','_createUrlBalloonPanelView','1054728LJjsRs','_createAddContextBalloonPanelView','southArrowNorthWest','_addContextToCollection','isLoading','353570bxjrXI','_setBalloonPanelContent','arrowView','_showSourceResourcesBalloon','cancel','addResourceToContext','setConversationContext','_currentContextsChips','isAnyResourceBalloonVisible','urls','setContainerElement','updateResourceState','AI_CHAT_CONTEXT_URL_LABEL','73751FRBRnC','loadSourceResources','extendTemplate','find','executeCustomItemCallback','set'];_0x1162=function(){return _0x2dd2fd;};return _0x1162();}
23
+ const _0x4a93c1=_0x1a92;(function(_0x3c07e2,_0x5ecde6){const _0x5cf571=_0x1a92,_0xa3dd78=_0x3c07e2();while(!![]){try{const _0x5c1933=parseInt(_0x5cf571(0x104))/0x1+-parseInt(_0x5cf571(0x118))/0x2+-parseInt(_0x5cf571(0x132))/0x3+-parseInt(_0x5cf571(0xfb))/0x4+-parseInt(_0x5cf571(0x143))/0x5+parseInt(_0x5cf571(0xe6))/0x6*(-parseInt(_0x5cf571(0x175))/0x7)+parseInt(_0x5cf571(0x121))/0x8;if(_0x5c1933===_0x5ecde6)break;else _0xa3dd78['push'](_0xa3dd78['shift']());}catch(_0x14e92b){_0xa3dd78['push'](_0xa3dd78['shift']());}}}(_0xf2ee,0x48a9d));import{BalloonPanelView as _0x2559bf,ButtonView as _0x2a06ac,clickOutsideHandler as _0x3fdfab,FileDialogButtonView as _0x2423c9,IconView as _0x4b6a74,View as _0x20e510}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x4814d4,IconDocument as _0x17165e,IconDocumentOutline as _0x261a54,IconDropdownArrow as _0x3b63e0,IconLink as _0x138361,IconPaperClip as _0x3a2a65}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x548ab2}from'./aichatcontextitembuttonview.js';function _0x1a92(_0x44a033,_0x38e409){const _0xf2ee8e=_0xf2ee();return _0x1a92=function(_0x1a920a,_0x6d9351){_0x1a920a=_0x1a920a-0xe5;let _0x7b3435=_0xf2ee8e[_0x1a920a];return _0x7b3435;},_0x1a92(_0x44a033,_0x38e409);}import{AIChatContextPanelUrlInputView as _0xe7a58a}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x125372}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x35f9ea}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2519e8}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4a93c1(0x177),_0x4a93c1(0xf2),_0x4a93c1(0x12c),_0x4a93c1(0x165),_0x4a93c1(0x10d),_0x4a93c1(0x154),_0x4a93c1(0x136)];function _0xf2ee(){const _0x2e19b6=['isHidden','ck-ai-chat-context-chips-wrapper-balloon','addUrlToContext','bind','setConversationContext','_createBalloonButton','setAddContextOptions','show','807090HQdqSH','add','clearCurrentContextItems','defaultPositions','executeCustomItemCallback','destroy','_handleUrlSubmit','_setAddContextButtonEnabled','setContainerElement','pin','setContextItemLoading','AI_CHAT_CONTEXT_FILE_LABEL','_setBalloonPanelContent','_removeContextFromCollection','length','northArrowSouthEast','enabled','2866020LXhiTc','ck-ai-chat','_createAddContextButtonView','label','_createArrowView','_toggleAddContextBalloon','menuitem','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','body','isEnabled','children','_currentContextsChips','ck-ai-chat-context-controls__add-context-balloon-panel','addContextButtonView','_createResourcesBalloonView','clear','conversation','loadSourceResources','removeContextItemChip','bodyCollection','_conversationContextsChips','customItems','ck-ai-chat-context-controls__balloon-button-source','set','urls','isReadOnly','refreshBalloon','arrowView','customItem','_createAddContextBalloonPanelView','northArrowSouth','_bindEventHandlers','southArrowNorth','type','addResourceToContext','ck-ai-chat-controls-button','hideAddContextBalloonPanel','isVisible','_resourcesBalloonView','southArrowNorthWest','_urlBalloonPanelView','_addContextToCollection','ck-ai-chat-context-controls','fire','hideUrlBalloonPanel','_handleAddContextButtonClick','icon','_showSourceResourcesBalloon','closeSourceResourceBalloon','addContextItem','7WobQwF','cancel','addDocumentToContext','showUrlBalloonPanel','ck-ai-chat-context-controls__pending-contexts','_addContextBalloonPanelView','868314IxEXsA','AI_CHAT_CONTEXT_ADD_CONTEXT','element','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__url-balloon-panel','createCollection','buttonView','render','ck-reset_all-excluded','_createContextButton','focus','sources','addFileToContext','_setupTemplate','_createUrlBalloonPanelView','__arrow','isAnyResourceBalloonVisible','balloonView','updateResourceState','_setupAllBalloonClickOutsideHandlers','showSourceResourcesBalloon','1605048lKuUwO','_createBaseBalloonPanel','ck-ai-chat-context-controls__add-context-button','_addContextBalloonConfig','_addUrlContent','files','overflowChips','div','setTemplate','551266rLRHcc','remove','document','ck-ai-chat-context-controls__balloon-button','isOn','ck-ai-chat-controls_context_show-more-button','ck-ai-chat-context-controls__show-more-balloon-panel','tooltip','hide','removeContextItem','_overflowManager','submitUrl','extendTemplate','northArrowSouthWest','closest','isLoading','reorganizeChips','_urlInputView','done','content','64864GYfcNF','_getLimiterElement','searchInputVisibleFrom','find','get','execute','AI_CHAT_CONTEXT_URL_LABEL','populateSourceResourceBalloon','clearConversationContextItems','9336080GfYpwU','showAddContextBalloonPanel','source','locale','withBackButton','southArrowNorthEast','_setupAddContextBalloonClickOutsideHandler','current','_hasExactlyOneSource'];_0xf2ee=function(){return _0x2e19b6;};return _0xf2ee();}const Uo=_0x4a93c1(0x16d),Lo=_0x4a93c1(0x179),No=_0x4a93c1(0x14f),Mo=_0x4a93c1(0xfd),Ho=_0x4a93c1(0xea),jo=_0x4a93c1(0x107),Fo=_0x4a93c1(0x159),Xo=_0x4a93c1(0x166),Do=_0x4a93c1(0x12b),$o=_0x4a93c1(0x109),Wo=_0x4a93c1(0x10a),qo=_0x4a93c1(0x144),zo=[_0x2559bf[_0x4a93c1(0x135)][_0x4a93c1(0x111)],_0x2559bf[_0x4a93c1(0x135)][_0x4a93c1(0x161)],_0x2559bf[_0x4a93c1(0x135)][_0x4a93c1(0x141)],_0x2559bf[_0x4a93c1(0x135)][_0x4a93c1(0x16a)],_0x2559bf[_0x4a93c1(0x135)][_0x4a93c1(0x163)],_0x2559bf[_0x4a93c1(0x135)][_0x4a93c1(0x126)]];export class AIChatContextPanelView extends _0x20e510{[_0x4a93c1(0x150)];[_0x4a93c1(0x14e)]=this[_0x4a93c1(0xeb)]();[_0x4a93c1(0x157)]=this[_0x4a93c1(0xeb)]();[_0x4a93c1(0x10e)];[_0x4a93c1(0xe5)];[_0x4a93c1(0x16b)];[_0x4a93c1(0x115)];[_0x4a93c1(0x169)];[_0x4a93c1(0xfe)];[_0x4a93c1(0x129)]=!0x1;[_0x4a93c1(0x156)];constructor(_0x2e09c6,_0x4e57d2){const _0x3d74dc=_0x4a93c1;super(_0x2e09c6),this[_0x3d74dc(0x156)]=_0x4e57d2[_0x3d74dc(0x156)],this[_0x3d74dc(0x14e)]=this[_0x3d74dc(0xeb)](),this[_0x3d74dc(0x157)]=this[_0x3d74dc(0xeb)](),this[_0x3d74dc(0x150)]=this[_0x3d74dc(0x145)](_0x2e09c6),this[_0x3d74dc(0xe5)]=this[_0x3d74dc(0x160)](_0x2e09c6),this[_0x3d74dc(0x16b)]=this[_0x3d74dc(0xf4)](_0x2e09c6),this[_0x3d74dc(0x169)]=this[_0x3d74dc(0x151)](_0x2e09c6,_0x4e57d2);const _0x4adf84={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x3d74dc(0x10e)]=new _0x125372(_0x2e09c6,this[_0x3d74dc(0x14e)],_0x4adf84,this[_0x3d74dc(0x156)],this),this[_0x3d74dc(0xfe)]={'buttonView':this[_0x3d74dc(0x150)],'balloonView':this[_0x3d74dc(0xe5)],'hideMethod':this[_0x3d74dc(0x167)][_0x3d74dc(0x12d)](this),'showMethod':this[_0x3d74dc(0x122)][_0x3d74dc(0x12d)](this)},this[_0x3d74dc(0xf3)](),this[_0x3d74dc(0x162)]();}[_0x4a93c1(0xed)](){const _0x4a15e0=_0x4a93c1;super[_0x4a15e0(0xed)](),this[_0x4a15e0(0xf9)](),this[_0x4a15e0(0x10e)][_0x4a15e0(0x13a)](this[_0x4a15e0(0xe8)]),this[_0x4a15e0(0x10e)][_0x4a15e0(0x114)]();}[_0x4a93c1(0x137)](){const _0x140435=_0x4a93c1;super[_0x140435(0x137)](),this[_0x140435(0x10e)][_0x140435(0x137)](),this[_0x140435(0x169)][_0x140435(0x137)]();}[_0x4a93c1(0x174)](_0x41830d,_0x6e455d){const _0x2f8211=_0x4a93c1,_0x8eac6=this[_0x2f8211(0xef)](_0x41830d,_0x2f8211(0x128),!0x0,_0x6e455d);this[_0x2f8211(0x16c)](_0x8eac6,this[_0x2f8211(0x14e)]),this[_0x2f8211(0x10e)][_0x2f8211(0x114)]();}[_0x4a93c1(0x10d)](_0x1c2369){const _0x396aad=_0x4a93c1;this[_0x396aad(0x13f)](_0x1c2369,this[_0x396aad(0x14e)]),this[_0x396aad(0x13f)](_0x1c2369,this[_0x396aad(0x10e)][_0x396aad(0x101)]),this[_0x396aad(0x10e)][_0x396aad(0x114)]();}[_0x4a93c1(0x13c)](_0x5db16b,_0x1b0485){const _0xa9dc56=_0x4a93c1;let _0xe18b2=this[_0xa9dc56(0x14e)][_0xa9dc56(0x11b)](_0x59be=>_0x59be['id']===_0x5db16b);_0xe18b2||(_0xe18b2=this[_0xa9dc56(0x10e)][_0xa9dc56(0x101)][_0xa9dc56(0x11b)](_0x3aaeb7=>_0x3aaeb7['id']===_0x5db16b)),_0xe18b2&&(_0xe18b2[_0xa9dc56(0x113)]=_0x1b0485);}[_0x4a93c1(0x12e)](_0x571049){const _0x32ebbc=_0x4a93c1;this[_0x32ebbc(0x157)][_0x32ebbc(0x152)]();for(const _0x4ad5a9 of _0x571049){const _0x1e9fb9=this[_0x32ebbc(0xef)](_0x4ad5a9,_0x32ebbc(0x153),!0x1,!0x1);this[_0x32ebbc(0x16c)](_0x1e9fb9,this[_0x32ebbc(0x157)]);}}[_0x4a93c1(0x134)](){const _0x5b9520=_0x4a93c1;this[_0x5b9520(0x14e)][_0x5b9520(0x152)](),this[_0x5b9520(0x10e)][_0x5b9520(0x152)]();}[_0x4a93c1(0x120)](){const _0x53a32b=_0x4a93c1;this[_0x53a32b(0x157)][_0x53a32b(0x152)]();}[_0x4a93c1(0xf8)](_0x4150bc,_0x145b8d,_0x350004){const _0x1b5bfd=_0x4a93c1;this[_0x1b5bfd(0x169)][_0x1b5bfd(0xf8)](_0x4150bc,_0x145b8d,_0x350004);}[_0x4a93c1(0x167)](){const _0x31d035=_0x4a93c1;this[_0x31d035(0x148)](!0x1);}[_0x4a93c1(0x122)](){const _0x541cef=_0x4a93c1;this[_0x541cef(0x148)](!0x0);}[_0x4a93c1(0x16f)](){const _0x29652f=_0x4a93c1;this[_0x29652f(0x16b)][_0x29652f(0x10c)](),this[_0x29652f(0x150)][_0x29652f(0x108)]=!0x1,this[_0x29652f(0x115)]&&this[_0x29652f(0x115)][_0x29652f(0x152)]();}[_0x4a93c1(0x178)](){const _0x1efa7b=_0x4a93c1;this[_0x1efa7b(0x16b)][_0x1efa7b(0x131)](),this[_0x1efa7b(0x150)][_0x1efa7b(0x108)]=!0x0;}[_0x4a93c1(0x172)]({source:_0x55ee76,withBackButton:_0x5f2a34}){const _0x10b8f7=_0x4a93c1;this[_0x10b8f7(0x169)][_0x10b8f7(0xfa)]({'source':_0x55ee76,'withBackButton':_0x5f2a34}),this[_0x10b8f7(0x150)][_0x10b8f7(0x108)]=!0x0;}[_0x4a93c1(0x11f)](_0x3bd84d,_0x2fd149,_0x307b76,_0xf091d6){const _0x3129c0=_0x4a93c1;this[_0x3129c0(0x169)][_0x3129c0(0x11f)](_0x3bd84d,_0x307b76,_0xf091d6);}[_0x4a93c1(0x173)](_0xe764be){const _0x4f63c7=_0x4a93c1;this[_0x4f63c7(0x169)][_0x4f63c7(0x173)](_0xe764be),this[_0x4f63c7(0x150)][_0x4f63c7(0x108)]=!0x1;}[_0x4a93c1(0x130)](_0x50f23d){const _0x24de34=_0x4a93c1;this[_0x24de34(0x13e)](this[_0x24de34(0xe5)],this[_0x24de34(0x124)],_0x50f23d),this[_0x24de34(0x139)](_0x50f23d);}[_0x4a93c1(0x139)](_0xca69df){const _0x1c112e=_0x4a93c1,_0x1be27d=!_0xca69df[_0x1c112e(0x106)][_0x1c112e(0x12a)]&&_0xca69df[_0x1c112e(0x106)][_0x1c112e(0x142)],_0x560662=_0xca69df[_0x1c112e(0x15b)][_0x1c112e(0x142)],_0x50198c=_0xca69df[_0x1c112e(0x100)][_0x1c112e(0x142)],_0x522195=_0xca69df[_0x1c112e(0xf1)][_0x1c112e(0x140)]>0x0,_0x3dec94=_0xca69df[_0x1c112e(0x158)]&&_0xca69df[_0x1c112e(0x158)][_0x1c112e(0x140)]>0x0;this[_0x1c112e(0x150)][_0x1c112e(0x14c)]=_0x1be27d||_0x560662||_0x50198c||_0x522195||_0x3dec94;}[_0x4a93c1(0xf3)](){const _0x3c1fdd=_0x4a93c1;this[_0x3c1fdd(0x103)]({'tag':_0x3c1fdd(0x102),'attributes':{'class':[Uo,_0x3c1fdd(0xee)]},'children':[{'tag':_0x3c1fdd(0x102),'attributes':{'class':Lo},'children':this[_0x3c1fdd(0x14e)]}]});}[_0x4a93c1(0x162)](){const _0x2691fb=_0x4a93c1;this[_0x2691fb(0x150)]['on'](_0x2691fb(0x11d),()=>{const _0x294eb8=_0x2691fb;this[_0x294eb8(0x170)]();});}[_0x4a93c1(0x145)](_0x537e2d){const _0x250940=_0x4a93c1,_0x351147=new _0x2a06ac(_0x537e2d);return _0x351147[_0x250940(0x15a)]({'label':_0x35f9ea(_0x537e2d,_0x250940(0xe7)),'class':Xo+'\x20'+Mo,'icon':_0x3a2a65,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x351147;}[_0x4a93c1(0x160)](_0x143ec9){const _0x5f0905=_0x4a93c1;return this[_0x5f0905(0xfc)](_0x143ec9,No);}[_0x4a93c1(0xf4)](_0x1cc705){const _0x36236b=_0x4a93c1,_0x3a93cf=this[_0x36236b(0xfc)](_0x1cc705,Ho);return this[_0x36236b(0xff)](_0x3a93cf,_0x1cc705),_0x3a93cf;}[_0x4a93c1(0x151)](_0x5ab105,_0x146d14){const _0x2b2af7=_0x4a93c1,_0x5d52d7={'searchInputVisibleFrom':_0x146d14[_0x2b2af7(0x11a)],'onBackToContext':()=>{const _0x55e43d=_0x2b2af7;this[_0x55e43d(0x122)](),this[_0x55e43d(0xe5)][_0x55e43d(0x13b)]({'target':this[_0x55e43d(0x150)][_0x55e43d(0xe8)],'limiter':this[_0x55e43d(0x119)](),'positions':zo});},'onResourceSelected':(_0x3f50ca,_0x4bca1b)=>{const _0x40674b=_0x2b2af7;this[_0x40674b(0x16e)](_0x40674b(0x165),{'source':_0x3f50ca,'resource':_0x4bca1b});},'onLoadSourceResources':_0x1bc083=>{const _0x484934=_0x2b2af7;this[_0x484934(0x16e)](_0x484934(0x154),_0x1bc083);},'onBalloonClosed':()=>{const _0x4e777a=_0x2b2af7;this[_0x4e777a(0x150)][_0x4e777a(0x108)]=!0x1;},'getLimiterElement':()=>this[_0x2b2af7(0x119)](),'getTargetElement':()=>this[_0x2b2af7(0x150)][_0x2b2af7(0xe8)]};return new _0x2519e8(_0x5ab105,_0x146d14[_0x2b2af7(0x156)],_0x5d52d7);}[_0x4a93c1(0x119)](){const _0x1fcf12=_0x4a93c1;return this[_0x1fcf12(0xe8)]?.[_0x1fcf12(0x112)]('.'+qo)||document[_0x1fcf12(0x14b)];}[_0x4a93c1(0xfc)](_0x59d591,_0x34a007){const _0x42ee70=_0x4a93c1,_0x4df33b=new _0x2559bf(_0x59d591);return _0x4df33b[_0x42ee70(0x110)]({'attributes':{'class':_0x34a007}}),this[_0x42ee70(0x156)][_0x42ee70(0x133)](_0x4df33b),_0x4df33b;}[_0x4a93c1(0x13e)](_0x4a8c11,_0x292eed,_0x49d89b){const _0x43ff0e=_0x4a93c1;if(_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x152)](),!_0x49d89b[_0x43ff0e(0x106)][_0x43ff0e(0x12a)]&&_0x49d89b[_0x43ff0e(0x106)][_0x43ff0e(0x142)]){const _0x3157e0=this[_0x43ff0e(0x12f)](_0x292eed,{'label':_0x35f9ea(_0x292eed,_0x43ff0e(0x14a)),'icon':_0x17165e});_0x3157e0['on'](_0x43ff0e(0x11d),()=>{const _0x52953e=_0x43ff0e;this[_0x52953e(0x16e)](_0x52953e(0x177)),this[_0x52953e(0x167)]();}),_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x133)](_0x3157e0);}if(_0x49d89b[_0x43ff0e(0x15b)][_0x43ff0e(0x142)]){const _0x2a9905=this[_0x43ff0e(0x12f)](_0x292eed,{'label':_0x35f9ea(_0x292eed,_0x43ff0e(0x11e)),'icon':_0x138361});_0x2a9905['on'](_0x43ff0e(0x11d),()=>{const _0x38a8e5=_0x43ff0e;this[_0x38a8e5(0x167)](),this[_0x38a8e5(0x178)](),this[_0x38a8e5(0x16b)][_0x38a8e5(0x13b)]({'target':this[_0x38a8e5(0x150)][_0x38a8e5(0xe8)],'limiter':this[_0x38a8e5(0x119)](),'positions':zo}),this[_0x38a8e5(0x115)][_0x38a8e5(0xf0)]();}),_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x133)](_0x2a9905);}if(_0x49d89b[_0x43ff0e(0x100)][_0x43ff0e(0x142)]){const _0x3a0d5c=new _0x2423c9(_0x292eed);_0x3a0d5c[_0x43ff0e(0x15a)]({'label':_0x35f9ea(_0x292eed,_0x43ff0e(0x13d)),'icon':_0x4814d4,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x3a0d5c['on'](_0x43ff0e(0x11d),()=>{const _0x109cce=_0x43ff0e;this[_0x109cce(0x167)]();}),_0x3a0d5c['on'](_0x43ff0e(0x116),(_0x1360f1,_0x2514b6)=>{const _0x15bf96=_0x43ff0e;this[_0x15bf96(0x16e)](_0x15bf96(0xf2),_0x2514b6);}),_0x3a0d5c[_0x43ff0e(0x10b)]=!0x0,_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x133)](_0x3a0d5c);}for(const _0x1adffb of _0x49d89b[_0x43ff0e(0xf1)]){const _0x48eb11=this[_0x43ff0e(0x12f)](_0x292eed,{'label':_0x1adffb[_0x43ff0e(0x146)],'icon':_0x1adffb[_0x43ff0e(0x171)]||_0x261a54,'type':_0x43ff0e(0x123)});_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x133)](_0x48eb11),_0x48eb11['on'](_0x43ff0e(0x11d),()=>{const _0x1448f8=_0x43ff0e;this[_0x1448f8(0x167)](),this[_0x1448f8(0x172)]({'source':_0x1adffb,'withBackButton':!this[_0x1448f8(0x129)]});});}for(const _0x29983c of _0x49d89b[_0x43ff0e(0x158)]||[]){const _0x557053=this[_0x43ff0e(0x12f)](_0x292eed,{'label':_0x29983c[_0x43ff0e(0x146)],'icon':_0x29983c[_0x43ff0e(0x171)]||_0x261a54,'type':_0x43ff0e(0x15f)});_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x133)](_0x557053),_0x557053['on'](_0x43ff0e(0x11d),()=>{const _0x1c8944=_0x43ff0e;this[_0x1c8944(0x167)](),this[_0x1c8944(0x16e)](_0x1c8944(0x136),_0x29983c);});}this[_0x43ff0e(0x129)]=0x1===_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x140)],this[_0x43ff0e(0x115)][_0x43ff0e(0x125)]=!this[_0x43ff0e(0x129)];}[_0x4a93c1(0xff)](_0x10a50f,_0x46c272){const _0x3d2e7b=_0x4a93c1;this[_0x3d2e7b(0x115)]=new _0xe7a58a(_0x46c272),this[_0x3d2e7b(0x115)]['on'](_0x3d2e7b(0x10f),(_0x33c760,_0x149f96)=>{const _0x4a3d84=_0x3d2e7b;this[_0x4a3d84(0x138)](_0x149f96);}),this[_0x3d2e7b(0x115)]['on'](_0x3d2e7b(0x176),()=>{const _0x381c93=_0x3d2e7b;this[_0x381c93(0x16f)](),this[_0x381c93(0x129)]||(this[_0x381c93(0x122)](),this[_0x381c93(0xe5)][_0x381c93(0x13b)]({'target':this[_0x381c93(0x150)][_0x381c93(0xe8)],'limiter':this[_0x381c93(0x119)](),'positions':zo}));}),this[_0x3d2e7b(0x115)]['on'](_0x3d2e7b(0x15d),()=>{const _0x5d4bf4=_0x3d2e7b;this[_0x5d4bf4(0x16b)][_0x5d4bf4(0x168)]&&this[_0x5d4bf4(0x16b)][_0x5d4bf4(0x13b)]({'target':this[_0x5d4bf4(0x150)][_0x5d4bf4(0xe8)],'limiter':this[_0x5d4bf4(0x119)](),'positions':zo});}),_0x10a50f[_0x3d2e7b(0x117)][_0x3d2e7b(0x133)](this[_0x3d2e7b(0x115)]);}[_0x4a93c1(0x12f)](_0x442ca3,_0x98df5d){const _0x201b45=_0x4a93c1,_0x45733d=_0x201b45(0x123)===_0x98df5d[_0x201b45(0x164)]?new SourcesBalloonButtonView(_0x442ca3):new _0x2a06ac(_0x442ca3);return _0x45733d[_0x201b45(0x15a)]({'label':_0x98df5d[_0x201b45(0x146)],'icon':_0x98df5d[_0x201b45(0x171)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x45733d;}[_0x4a93c1(0xf9)](){const _0x56ea11=_0x4a93c1;this[_0x56ea11(0x127)](),this[_0x56ea11(0xe9)]();}[_0x4a93c1(0xe9)](){const _0x25350a=_0x4a93c1;_0x3fdfab({'emitter':this[_0x25350a(0x16b)],'contextElements':[this[_0x25350a(0x16b)][_0x25350a(0xe8)]],'callback':()=>{const _0x3ebde1=_0x25350a;this[_0x3ebde1(0x16f)]();},'activator':()=>this[_0x25350a(0x16b)][_0x25350a(0x168)]});}[_0x4a93c1(0x148)](_0x4427cc){const _0x2f3ef9=_0x4a93c1,_0x3ec034=this[_0x2f3ef9(0xfe)];_0x3ec034[_0x2f3ef9(0xec)][_0x2f3ef9(0x108)]=_0x4427cc,_0x4427cc?_0x3ec034[_0x2f3ef9(0xf7)][_0x2f3ef9(0x131)]():_0x3ec034[_0x2f3ef9(0xf7)][_0x2f3ef9(0x10c)]();}[_0x4a93c1(0x127)](){const _0x6f05d5=_0x4a93c1,{balloonView:_0x266af8,buttonView:_0x3c5ad3,hideMethod:_0x1412e9}=this[_0x6f05d5(0xfe)];_0x3fdfab({'emitter':_0x266af8,'contextElements':[_0x266af8[_0x6f05d5(0xe8)],_0x3c5ad3[_0x6f05d5(0xe8)]],'callback':()=>{_0x1412e9();},'activator':()=>_0x3c5ad3[_0x6f05d5(0x108)]&&!this[_0x6f05d5(0x16b)][_0x6f05d5(0x168)]&&!this[_0x6f05d5(0x169)][_0x6f05d5(0xf6)]()});}[_0x4a93c1(0xef)](_0x1d6275,_0x912d76,_0x42594b=!0x1,_0x4461a3=!0x1){const _0x14ad67=_0x4a93c1,_0x175601=_0x14ad67(0x153)===_0x912d76||!0x0===_0x1d6275[_0x14ad67(0x15c)],_0x16f299=new _0x548ab2(this[_0x14ad67(0x124)],_0x1d6275,_0x175601,_0x42594b,_0x4461a3);return _0x175601||_0x16f299['on'](_0x14ad67(0x155),()=>{const _0x9e9fc7=_0x14ad67;this[_0x9e9fc7(0x16e)](_0x9e9fc7(0x10d),_0x16f299['id']);}),_0x16f299;}[_0x4a93c1(0x16c)](_0x34dcd3,_0x29b1b6){const _0x3bb47c=_0x4a93c1;_0x29b1b6[_0x3bb47c(0x133)](_0x34dcd3,0x0);}[_0x4a93c1(0x13f)](_0x1b9cc4,_0x41ad2c){const _0x27afe0=_0x4a93c1,_0x394ad8=_0x41ad2c[_0x27afe0(0x11b)](_0x1af29f=>_0x1af29f['id']===_0x1b9cc4);_0x394ad8&&_0x41ad2c[_0x27afe0(0x105)](_0x394ad8);}[_0x4a93c1(0x170)](){const _0x145517=_0x4a93c1;this[_0x145517(0x150)][_0x145517(0x108)]?this[_0x145517(0x167)]():(this[_0x145517(0x122)](),this[_0x145517(0xe5)][_0x145517(0x13b)]({'target':this[_0x145517(0x150)][_0x145517(0xe8)],'limiter':this[_0x145517(0x119)](),'positions':zo}),this[_0x145517(0x129)]&&this[_0x145517(0xe5)][_0x145517(0x117)][_0x145517(0x11c)](0x0)?.[_0x145517(0x16e)](_0x145517(0x11d)));}[_0x4a93c1(0x138)](_0x47782e){const _0x5eaaa4=_0x4a93c1;this[_0x5eaaa4(0x115)][_0x5eaaa4(0x152)](),this[_0x5eaaa4(0x16f)](),this[_0x5eaaa4(0x16e)](_0x5eaaa4(0x12c),_0x47782e);}}export class SourcesBalloonButtonView extends _0x2a06ac{[_0x4a93c1(0x15e)];constructor(_0xabe8c2){const _0x1b2ae8=_0x4a93c1;super(_0xabe8c2),this[_0x1b2ae8(0x15a)]({'withText':!0x0,'role':_0x1b2ae8(0x149)}),this[_0x1b2ae8(0x15e)]=this[_0x1b2ae8(0x147)](),this[_0x1b2ae8(0x110)]({'attributes':{'class':[Fo]}});}[_0x4a93c1(0xed)](){const _0x2248ac=_0x4a93c1;super[_0x2248ac(0xed)](),this[_0x2248ac(0x14d)][_0x2248ac(0x133)](this[_0x2248ac(0x15e)]);}[_0x4a93c1(0x147)](){const _0x27bc3d=_0x4a93c1,_0x5d0f45=new _0x4b6a74();return _0x5d0f45[_0x27bc3d(0x117)]=_0x3b63e0,_0x5d0f45[_0x27bc3d(0x110)]({'attributes':{'class':Fo+_0x27bc3d(0xf5)}}),_0x5d0f45;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x41f9bf=_0x9a19;(function(_0x29d70c,_0x20ab8f){const _0x1a05ae=_0x9a19,_0x243895=_0x29d70c();while(!![]){try{const _0xaa2c59=-parseInt(_0x1a05ae(0xf3))/0x1*(parseInt(_0x1a05ae(0xf0))/0x2)+parseInt(_0x1a05ae(0xde))/0x3*(-parseInt(_0x1a05ae(0xf4))/0x4)+parseInt(_0x1a05ae(0xf9))/0x5*(-parseInt(_0x1a05ae(0xf2))/0x6)+parseInt(_0x1a05ae(0xea))/0x7*(parseInt(_0x1a05ae(0xdc))/0x8)+parseInt(_0x1a05ae(0xee))/0x9*(-parseInt(_0x1a05ae(0xe2))/0xa)+parseInt(_0x1a05ae(0xf5))/0xb*(-parseInt(_0x1a05ae(0xe4))/0xc)+parseInt(_0x1a05ae(0xe5))/0xd;if(_0xaa2c59===_0x20ab8f)break;else _0x243895['push'](_0x243895['shift']());}catch(_0x24430c){_0x243895['push'](_0x243895['shift']());}}}(_0x1b72,0xdb558));import{ButtonView as _0x5e0bf5,View as _0x4a1af4}from'ckeditor5/src/ui.js';import{IconStop as _0x574dd6}from'ckeditor5/src/icons.js';function _0x9a19(_0x2654cd,_0x5c0a02){const _0x1b7252=_0x1b72();return _0x9a19=function(_0x9a19a1,_0x4dd395){_0x9a19a1=_0x9a19a1-0xdc;let _0x2dd413=_0x1b7252[_0x9a19a1];return _0x2dd413;},_0x9a19(_0x2654cd,_0x5c0a02);}import{getTranslation as _0x139e3f}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x4a1af4{[_0x41f9bf(0xf8)];[_0x41f9bf(0xec)];constructor(_0x3d8dcf){const _0x3f121e=_0x41f9bf;super(_0x3d8dcf),this[_0x3f121e(0xf8)]=this[_0x3f121e(0xfb)](),this[_0x3f121e(0xec)]=this[_0x3f121e(0xdf)](),this[_0x3f121e(0xe9)]({'tag':_0x3f121e(0xf6),'attributes':{'class':['ck',_0x3f121e(0xed),_0x3f121e(0xf7)]},'children':[this[_0x3f121e(0xec)],this[_0x3f121e(0xf8)]]});}[_0x41f9bf(0xfb)](){const _0x519fcd=_0x41f9bf,_0x13f63d=new _0x5e0bf5(this[_0x519fcd(0xe1)]);return _0x13f63d[_0x519fcd(0xe3)]({'label':_0x139e3f(this[_0x519fcd(0xe1)],_0x519fcd(0xf1)),'withText':!0x0,'class':_0x519fcd(0xfa),'icon':_0x574dd6}),_0x13f63d['on'](_0x519fcd(0xef),()=>{const _0x2de342=_0x519fcd;this[_0x2de342(0xeb)](_0x2de342(0xe8));}),_0x13f63d;}[_0x41f9bf(0xdf)](){const _0x38d8e3=_0x41f9bf,_0x4a6662=new _0x4a1af4(this[_0x38d8e3(0xe1)]);return _0x4a6662[_0x38d8e3(0xe9)]({'tag':_0x38d8e3(0xf6),'attributes':{'class':[_0x38d8e3(0xe0)]},'children':[{'tag':_0x38d8e3(0xf6),'attributes':{'class':[_0x38d8e3(0xe6)]},'children':[{'tag':_0x38d8e3(0xf6),'attributes':{'class':[_0x38d8e3(0xe7)]}},{'tag':_0x38d8e3(0xf6),'attributes':{'class':[_0x38d8e3(0xe7)]}},{'tag':_0x38d8e3(0xf6),'attributes':{'class':[_0x38d8e3(0xe7)]}}]},{'text':_0x139e3f(this[_0x38d8e3(0xe1)],_0x38d8e3(0xdd))}]}),_0x4a6662;}}function _0x1b72(){const _0x33ce14=['15LojZMy','ck-ai-button-secondary\x20ck-ai-button-stop-generating','_createCancelButtonView','192lHNZFp','AI_CHAT_IS_WRITING','6123SIIqvR','_createLoaderView','ck-ai-chat-controls-loader','locale','801700Tnvvxj','set','11390676hzJVZi','50153376wQjLns','ck-ai-chat-controls-loader-icon','ck-ai-chat-controls-loader-icon-dot','abortPromptStream','setTemplate','306376XHMZLi','fire','_loaderView','ck-ai-chat-controls-loader-wrapper','198zVNcCn','execute','39486rPsrGR','AI_CHAT_STOP_GENERATING','636246hHQlck','44DSGCNY','216HZgsiA','11vKgyhh','div','ck-reset_all','_cancelButtonView'];_0x1b72=function(){return _0x33ce14;};return _0x1b72();}
23
+ function _0x1628(_0x590218,_0x183946){const _0x1b1f38=_0x1b1f();return _0x1628=function(_0x162860,_0x4bf10f){_0x162860=_0x162860-0xc5;let _0x141e61=_0x1b1f38[_0x162860];return _0x141e61;},_0x1628(_0x590218,_0x183946);}const _0xd0be38=_0x1628;(function(_0x2821d9,_0x5c8ab6){const _0x394c5a=_0x1628,_0x30a5b6=_0x2821d9();while(!![]){try{const _0x3d1867=parseInt(_0x394c5a(0xd9))/0x1+parseInt(_0x394c5a(0xd0))/0x2+parseInt(_0x394c5a(0xdd))/0x3*(-parseInt(_0x394c5a(0xca))/0x4)+-parseInt(_0x394c5a(0xdf))/0x5+parseInt(_0x394c5a(0xdb))/0x6*(parseInt(_0x394c5a(0xc6))/0x7)+parseInt(_0x394c5a(0xe2))/0x8*(-parseInt(_0x394c5a(0xd1))/0x9)+parseInt(_0x394c5a(0xc5))/0xa*(parseInt(_0x394c5a(0xd8))/0xb);if(_0x3d1867===_0x5c8ab6)break;else _0x30a5b6['push'](_0x30a5b6['shift']());}catch(_0x3d65d1){_0x30a5b6['push'](_0x30a5b6['shift']());}}}(_0x1b1f,0x43a7d));function _0x1b1f(){const _0x2ea76d=['AI_CHAT_IS_WRITING','ck-ai-chat-controls-loader','setTemplate','_cancelButtonView','545872hOFTYP','9hyOAZQ','ck-ai-button-secondary\x20ck-ai-button-stop-generating','locale','ck-ai-chat-controls-loader-wrapper','set','ck-ai-chat-controls-loader-icon-dot','abortPromptStream','3839gAtocg','269308zyaznY','_createLoaderView','6XwUPzW','ck-reset_all','30ghSCGa','fire','1287025rZjrxk','div','execute','1891816UfpTND','8860MGcXSg','2513217cbFwTv','_loaderView','_createCancelButtonView','AI_CHAT_STOP_GENERATING','175796VLWtKM','ck-ai-chat-controls-loader-icon'];_0x1b1f=function(){return _0x2ea76d;};return _0x1b1f();}import{ButtonView as _0x48656e,View as _0x3d99b3}from'ckeditor5/src/ui.js';import{IconStop as _0x48477b}from'ckeditor5/src/icons.js';import{getTranslation as _0x272719}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x3d99b3{[_0xd0be38(0xcf)];[_0xd0be38(0xc7)];constructor(_0x385bf0){const _0x347962=_0xd0be38;super(_0x385bf0),this[_0x347962(0xcf)]=this[_0x347962(0xc8)](),this[_0x347962(0xc7)]=this[_0x347962(0xda)](),this[_0x347962(0xce)]({'tag':_0x347962(0xe0),'attributes':{'class':['ck',_0x347962(0xd4),_0x347962(0xdc)]},'children':[this[_0x347962(0xc7)],this[_0x347962(0xcf)]]});}[_0xd0be38(0xc8)](){const _0x15787d=_0xd0be38,_0x2b5bf5=new _0x48656e(this[_0x15787d(0xd3)]);return _0x2b5bf5[_0x15787d(0xd5)]({'label':_0x272719(this[_0x15787d(0xd3)],_0x15787d(0xc9)),'withText':!0x0,'class':_0x15787d(0xd2),'icon':_0x48477b}),_0x2b5bf5['on'](_0x15787d(0xe1),()=>{const _0x9ad444=_0x15787d;this[_0x9ad444(0xde)](_0x9ad444(0xd7));}),_0x2b5bf5;}[_0xd0be38(0xda)](){const _0x48df25=_0xd0be38,_0x5e93b3=new _0x3d99b3(this[_0x48df25(0xd3)]);return _0x5e93b3[_0x48df25(0xce)]({'tag':_0x48df25(0xe0),'attributes':{'class':[_0x48df25(0xcd)]},'children':[{'tag':_0x48df25(0xe0),'attributes':{'class':[_0x48df25(0xcb)]},'children':[{'tag':_0x48df25(0xe0),'attributes':{'class':[_0x48df25(0xd6)]}},{'tag':_0x48df25(0xe0),'attributes':{'class':[_0x48df25(0xd6)]}},{'tag':_0x48df25(0xe0),'attributes':{'class':[_0x48df25(0xd6)]}}]},{'text':_0x272719(this[_0x48df25(0xd3)],_0x48df25(0xcc))}]}),_0x5e93b3;}}