@ckeditor/ckeditor5-ai 47.3.0-alpha.3 → 47.3.0-alpha.5

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 (94) 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/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.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/aiballoon/aiballoon.js +1 -1
  13. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  14. package/src/aiballoon/ui/aiballoonview.js +1 -1
  15. package/src/aichat/aichat.js +1 -1
  16. package/src/aichat/aichatcontroller.js +1 -1
  17. package/src/aichat/aichatui.js +1 -1
  18. package/src/aichat/model/aichatcontext.js +1 -1
  19. package/src/aichat/model/aichatconversation.js +1 -1
  20. package/src/aichat/model/aichatinteraction.js +1 -1
  21. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  22. package/src/aichat/ui/aichatfeedview.js +1 -1
  23. package/src/aichat/ui/aichatheaderview.js +1 -1
  24. package/src/aichat/ui/aichatview.js +1 -1
  25. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  26. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  27. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  28. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  29. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  30. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  31. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  32. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  33. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  34. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  35. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  36. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  37. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  38. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  39. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  40. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  41. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  42. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  43. package/src/aichat/utils/eventnames.js +1 -1
  44. package/src/aichathistory/aichathistory.js +1 -1
  45. package/src/aichathistory/aichathistorycontroller.js +1 -1
  46. package/src/aichathistory/aichathistoryui.js +1 -1
  47. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  48. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  49. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  50. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  51. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  52. package/src/aicore/aiconnector.js +1 -1
  53. package/src/aicore/aiediting.js +1 -1
  54. package/src/aicore/model/aiinteraction.js +1 -1
  55. package/src/aicore/model/aimodels.js +1 -1
  56. package/src/aicore/model/aireply.js +1 -1
  57. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  58. package/src/aicore/pipeline/airesponseparser.js +2 -2
  59. package/src/aicore/ui/aidisclaimerview.js +1 -1
  60. package/src/aicore/ui/aiskeleton.js +1 -1
  61. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  62. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  63. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  64. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  65. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  66. package/src/aicore/utils/documentrange.js +1 -1
  67. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  68. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  69. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  70. package/src/aicore/utils/htmlparser.js +1 -1
  71. package/src/aicore/utils/htmlstreamer.js +1 -1
  72. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  73. package/src/aiquickactions/aiquickactionsui.js +1 -1
  74. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  75. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  76. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  77. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  78. package/src/aireviewmode/aireviewmode.js +1 -1
  79. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  80. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  81. package/src/aireviewmode/aireviewmodeui.js +1 -1
  82. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  83. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  84. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  85. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  86. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  87. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  88. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  89. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  90. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  91. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  92. package/src/aitabs/aitabs.js +1 -1
  93. package/src/aitabs/tabs/aitabsview.js +1 -1
  94. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59dc3a=_0x1e95;(function(_0x51536b,_0x101a8d){const _0x1c5130=_0x1e95,_0x394af8=_0x51536b();while(!![]){try{const _0x15bf1d=-parseInt(_0x1c5130(0x199))/0x1+parseInt(_0x1c5130(0x149))/0x2*(parseInt(_0x1c5130(0x13a))/0x3)+parseInt(_0x1c5130(0x181))/0x4*(-parseInt(_0x1c5130(0x16d))/0x5)+-parseInt(_0x1c5130(0x1ab))/0x6*(-parseInt(_0x1c5130(0x132))/0x7)+parseInt(_0x1c5130(0x131))/0x8+parseInt(_0x1c5130(0x183))/0x9+parseInt(_0x1c5130(0x139))/0xa;if(_0x15bf1d===_0x101a8d)break;else _0x394af8['push'](_0x394af8['shift']());}catch(_0x34da12){_0x394af8['push'](_0x394af8['shift']());}}}(_0x39de,0xc6e6a));import{View as _0x198e47,BalloonPanelView as _0x128b57,ButtonView as _0x5f1056,clickOutsideHandler as _0xdb5c11}from'ckeditor5/src/ui.js';import{Collection as _0x19e7c6}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x59dc3a(0x12b);function _0x39de(){const _0x404c57=['.ck-ai-chat','auto','clear','300px','_pendingCalculation','showMoreBalloon','element','_restoreAncestorVisibility','_isContainerVisible','11947912AgpKwU','8309nxVXnL','observe','classList','_locale','block','toLowerCase','some','1901710PkkaPF','99rkSNwP','clientWidth','disableAnimationOnEnter','pop','destroy','body','_containerElement','visible\x20!important','display','_applyOverflowResults','innerHTML','push','add','from','height','24452kvCYYv','none','content','visible','block\x20!important','_distributeChips','innerWidth','controlsButton','border-box','_parentView','filter','getBoundingClientRect','length','ck-calculation-container','rowDetectionTolerance','querySelector','button','_showMoreBalloonPanelView','show','execute','_createShowMoreBalloonPanelView','setContainerElement','_setupVisibilityObserver','opacity','_findTargetContainer','showMoreLabelPrefix','left','_showMoreButtonView','_repinBalloonPanel','pointerEvents','calculationContainer','_updateOverflowUI','parentElement','reorganizeChips','remove','_createContainerElements','5ACYZat','_calculateContainerWidth','width','_config','hide','boxSizing','tagName','_checkAndHandleOverflow','documentElement','pin','hidden','_updateBalloonContent','_renderChipsAndCountRows','set','absolute','_targetContainer','disconnect','overflowChips','overflowContainer','setTemplate','1672072fBSMXS','cssClasses','424917rwgtry','isVisible','offsetWidth','_calculateOverflowInContainer','position','-9999px','0px','style','_applyCalculationStyles','_testButtonFit','top','includes','maxVisibleRows','showMoreButtonView','forEach','showMoreButton','innerHeight','showBalloonPanel','textContent','_overflowChips','isConnected','label','959778KvhFjD','className','_handleShowMoreButtonClick','appendChild','render','createElement','_createMockButton','children','isOn','_bodyCollection','isIntersecting','div','_updateShowMoreButtonVisibility','_visibleChips','_intersectionObserver','slice','50px','hideBalloonPanel','294IcWuFl','right','bottom','_createShowMoreButton','_ancestorsToRestore','getComputedStyle','zIndex','+\x201','abs','visibility','undefined','_createCalculationContainer','extendTemplate','clientHeight','cloneNode','_makeAncestorsVisible','_createShowMoreButtonView'];_0x39de=function(){return _0x404c57;};return _0x39de();}function _0x1e95(_0x123fb2,_0x4a78bb){const _0x39de82=_0x39de();return _0x1e95=function(_0x1e957d,_0x125631){_0x1e957d=_0x1e957d-0x124;let _0x2a2b10=_0x39de82[_0x1e957d];return _0x2a2b10;},_0x1e95(_0x123fb2,_0x4a78bb);}export class AIChatChipsOverflowManager{[_0x59dc3a(0x135)];[_0x59dc3a(0x170)];[_0x59dc3a(0x1a6)];[_0x59dc3a(0x196)];[_0x59dc3a(0x164)]=null;[_0x59dc3a(0x15a)]=null;[_0x59dc3a(0x140)]=null;[_0x59dc3a(0x1a2)];[_0x59dc3a(0x152)]=null;[_0x59dc3a(0x1a7)]=null;[_0x59dc3a(0x12c)]=!0x1;constructor(_0x2aed12,_0x1f10e4,_0x163c36,_0x122e61,_0x4b0da0){const _0x153e37=_0x59dc3a;this[_0x153e37(0x135)]=_0x2aed12,this[_0x153e37(0x1a6)]=_0x1f10e4,this[_0x153e37(0x170)]={...hn,..._0x163c36,'cssClasses':{'controlsButton':'','calculationContainer':_0x153e37(0x156),..._0x163c36[_0x153e37(0x182)]}},this[_0x153e37(0x196)]=new _0x19e7c6(),this[_0x153e37(0x1a2)]=_0x122e61,this[_0x153e37(0x152)]=_0x4b0da0||null;}[_0x59dc3a(0x15e)](_0x5002a6){const _0xbe2ae7=_0x59dc3a;this[_0xbe2ae7(0x1a7)]&&(this[_0xbe2ae7(0x1a7)][_0xbe2ae7(0x17d)](),this[_0xbe2ae7(0x1a7)]=null),this[_0xbe2ae7(0x140)]=_0x5002a6,this[_0xbe2ae7(0x15f)]();}get[_0x59dc3a(0x190)](){const _0x1ba172=_0x59dc3a;return this[_0x1ba172(0x164)];}get[_0x59dc3a(0x17e)](){const _0x1722e6=_0x59dc3a;return this[_0x1722e6(0x196)];}[_0x59dc3a(0x16a)](){requestAnimationFrame(()=>{const _0x1e0a5d=_0x1e95;this[_0x1e0a5d(0x174)]();});}[_0x59dc3a(0x194)](){const _0x3156f3=_0x59dc3a;this[_0x3156f3(0x164)]&&this[_0x3156f3(0x15a)]&&(this[_0x3156f3(0x178)](),this[_0x3156f3(0x164)][_0x3156f3(0x1a1)]=!0x0,this[_0x3156f3(0x15a)][_0x3156f3(0x15b)](),this[_0x3156f3(0x15a)][_0x3156f3(0x176)]({'target':this[_0x3156f3(0x164)][_0x3156f3(0x12e)],'limiter':document[_0x3156f3(0x158)](_0x3156f3(0x128))}));}[_0x59dc3a(0x1aa)](){const _0x7f55e1=_0x59dc3a;this[_0x7f55e1(0x164)]&&this[_0x7f55e1(0x15a)]&&(this[_0x7f55e1(0x164)][_0x7f55e1(0x1a1)]=!0x1,this[_0x7f55e1(0x15a)][_0x7f55e1(0x171)]());}[_0x59dc3a(0x12a)](){const _0x163e6d=_0x59dc3a;this[_0x163e6d(0x196)][_0x163e6d(0x12a)](),this[_0x163e6d(0x1aa)](),this[_0x163e6d(0x1a5)](),this[_0x163e6d(0x164)]&&(this[_0x163e6d(0x164)][_0x163e6d(0x198)]=''),this[_0x163e6d(0x15a)]&&this[_0x163e6d(0x15a)][_0x163e6d(0x14b)][_0x163e6d(0x12a)]();}[_0x59dc3a(0x13e)](){const _0x25ee79=_0x59dc3a;this[_0x25ee79(0x1a7)]&&(this[_0x25ee79(0x1a7)][_0x25ee79(0x17d)](),this[_0x25ee79(0x1a7)]=null),this[_0x25ee79(0x164)]&&(this[_0x25ee79(0x164)][_0x25ee79(0x13e)](),this[_0x25ee79(0x164)]=null),this[_0x25ee79(0x15a)]&&(this[_0x25ee79(0x15a)][_0x25ee79(0x13e)](),this[_0x25ee79(0x15a)]=null);}[_0x59dc3a(0x174)](){const _0x3bd7d8=_0x59dc3a;if(!this[_0x3bd7d8(0x140)])return;if(!this[_0x3bd7d8(0x130)]())return void(this[_0x3bd7d8(0x12c)]=!0x0);this[_0x3bd7d8(0x12c)]=!0x1;const _0x32f522=[...this[_0x3bd7d8(0x1a6)],...this[_0x3bd7d8(0x196)]],_0x170cfd=this[_0x3bd7d8(0x1b6)](),_0xb413d4=this[_0x3bd7d8(0x186)](_0x170cfd,_0x32f522),_0x1ce3fe=_0x170cfd[_0x3bd7d8(0x1af)];_0x1ce3fe&&this[_0x3bd7d8(0x12f)](_0x1ce3fe),_0x170cfd[_0x3bd7d8(0x16b)](),this[_0x3bd7d8(0x143)](_0x32f522,_0xb413d4);}[_0x59dc3a(0x1ae)](){const _0xa8d9cf=_0x59dc3a;this[_0xa8d9cf(0x164)]=this[_0xa8d9cf(0x127)](),this[_0xa8d9cf(0x15a)]=this[_0xa8d9cf(0x15d)](),this[_0xa8d9cf(0x164)][_0xa8d9cf(0x19d)](),this[_0xa8d9cf(0x140)][_0xa8d9cf(0x19c)](this[_0xa8d9cf(0x164)][_0xa8d9cf(0x12e)]),this[_0xa8d9cf(0x164)]['on'](_0xa8d9cf(0x15c),()=>{const _0x38a9ba=_0xa8d9cf;this[_0x38a9ba(0x19b)]();}),_0xdb5c11({'emitter':this[_0xa8d9cf(0x15a)],'contextElements':[this[_0xa8d9cf(0x15a)][_0xa8d9cf(0x12e)],this[_0xa8d9cf(0x164)][_0xa8d9cf(0x12e)]],'callback':()=>this[_0xa8d9cf(0x1aa)](),'activator':()=>this[_0xa8d9cf(0x164)][_0xa8d9cf(0x1a1)]});}[_0x59dc3a(0x127)](){const _0x2303e2=_0x59dc3a,_0x50b68a=new _0x5f1056(this[_0x2303e2(0x135)]);_0x50b68a[_0x2303e2(0x17a)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0xcf0c3b=[this[_0x2303e2(0x170)][_0x2303e2(0x182)][_0x2303e2(0x192)]];return this[_0x2303e2(0x170)][_0x2303e2(0x182)][_0x2303e2(0x150)]&&_0xcf0c3b[_0x2303e2(0x145)](this[_0x2303e2(0x170)][_0x2303e2(0x182)][_0x2303e2(0x150)]),_0x50b68a[_0x2303e2(0x1b7)]({'attributes':{'class':_0xcf0c3b}}),_0x50b68a;}[_0x59dc3a(0x15d)](){const _0x2c7bd0=_0x59dc3a,_0x457a93=new _0x128b57(this[_0x2c7bd0(0x135)]);return _0x457a93[_0x2c7bd0(0x1b7)]({'attributes':{'class':this[_0x2c7bd0(0x170)][_0x2c7bd0(0x182)][_0x2c7bd0(0x12d)]}}),this[_0x2c7bd0(0x1a2)][_0x2c7bd0(0x146)](_0x457a93),_0x457a93;}[_0x59dc3a(0x178)](){const _0x53ac2a=_0x59dc3a;if(this[_0x53ac2a(0x15a)]&&(this[_0x53ac2a(0x15a)][_0x53ac2a(0x14b)][_0x53ac2a(0x12a)](),this[_0x53ac2a(0x196)][_0x53ac2a(0x155)]>0x0)){this[_0x53ac2a(0x196)][_0x53ac2a(0x191)](_0x2d8979=>{const _0x5a329a=_0x53ac2a;_0x2d8979[_0x5a329a(0x13c)]();});const _0x2b119b=new _0x198e47(this[_0x53ac2a(0x135)]);_0x2b119b[_0x53ac2a(0x180)]({'tag':_0x53ac2a(0x1a4),'attributes':{'class':this[_0x53ac2a(0x170)][_0x53ac2a(0x182)][_0x53ac2a(0x17f)]},'children':this[_0x53ac2a(0x196)]}),this[_0x53ac2a(0x15a)][_0x53ac2a(0x14b)][_0x53ac2a(0x146)](_0x2b119b);}}[_0x59dc3a(0x19b)](){const _0x5279b8=_0x59dc3a;this[_0x5279b8(0x164)][_0x5279b8(0x1a1)]?this[_0x5279b8(0x1aa)]():this[_0x5279b8(0x194)]();}[_0x59dc3a(0x1a5)](){const _0x5388f2=_0x59dc3a,_0x57c102=this[_0x5388f2(0x196)][_0x5388f2(0x155)]>0x0;this[_0x5388f2(0x164)]?.[_0x5388f2(0x12e)]&&(this[_0x5388f2(0x164)][_0x5388f2(0x12e)][_0x5388f2(0x18a)][_0x5388f2(0x142)]=_0x57c102?'':_0x5388f2(0x14a));}[_0x59dc3a(0x165)](){const _0x7c442a=_0x59dc3a;this[_0x7c442a(0x164)]?.[_0x7c442a(0x1a1)]&&this[_0x7c442a(0x15a)]?.[_0x7c442a(0x184)]&&this[_0x7c442a(0x164)][_0x7c442a(0x12e)]&&this[_0x7c442a(0x15a)][_0x7c442a(0x176)]({'target':this[_0x7c442a(0x164)][_0x7c442a(0x12e)],'limiter':document[_0x7c442a(0x158)](_0x7c442a(0x128))});}[_0x59dc3a(0x161)](_0x56b789){const _0x1ef06d=_0x59dc3a,_0x28fac1=this[_0x1ef06d(0x140)]?.[_0x1ef06d(0x173)][_0x1ef06d(0x137)]()||_0x1ef06d(0x1a4),_0x3bd90c=this[_0x1ef06d(0x140)]?.[_0x1ef06d(0x134)];if(_0x3bd90c){const _0x1731e7=_0x3bd90c[0x0]||'',_0x2e78d1=_0x56b789[_0x1ef06d(0x158)]('.'+_0x1731e7),_0x31bc36=_0x56b789[_0x1ef06d(0x158)](_0x28fac1);return _0x2e78d1||_0x31bc36||_0x56b789;}return _0x56b789[_0x1ef06d(0x158)](_0x28fac1)||_0x56b789;}[_0x59dc3a(0x16e)](){const _0x118a00=_0x59dc3a,_0x40ba21=this[_0x118a00(0x152)]?.[_0x118a00(0x12e)]||this[_0x118a00(0x140)];if(!_0x40ba21)return an;const _0x7968b6=window[_0x118a00(0x1b0)](_0x40ba21)[_0x118a00(0x16f)];if(_0x118a00(0x129)===_0x7968b6||_0x118a00(0x189)===_0x7968b6||!_0x7968b6){const _0x3e59a6=_0x40ba21[_0x118a00(0x169)];if(_0x3e59a6){const _0x1acaa5=window[_0x118a00(0x1b0)](_0x3e59a6);return _0x118a00(0x129)!==_0x1acaa5[_0x118a00(0x16f)]?_0x1acaa5[_0x118a00(0x16f)]:an;}return an;}return _0x7968b6;}[_0x59dc3a(0x18b)](_0x1d29bd,_0x467b22){const _0x5b1688=_0x59dc3a;this[_0x5b1688(0x170)][_0x5b1688(0x182)][_0x5b1688(0x167)]&&_0x1d29bd[_0x5b1688(0x134)][_0x5b1688(0x146)](this[_0x5b1688(0x170)][_0x5b1688(0x182)][_0x5b1688(0x167)]),_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x16f)]=_0x467b22,_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x187)]=_0x5b1688(0x17b),_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x18d)]=_0x5b1688(0x188),_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x163)]=_0x5b1688(0x188),_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x160)]='0',_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x166)]=_0x5b1688(0x14a),_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x1b1)]='-1',_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x1b4)]=_0x5b1688(0x141),_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x142)]=_0x5b1688(0x14d),_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x172)]=_0x5b1688(0x151);}[_0x59dc3a(0x12f)](_0x47b0e1){const _0x5e3a77=_0x59dc3a;_0x47b0e1[_0x5e3a77(0x191)](({element:_0x145f70,originalDisplay:_0xe06b6e,originalVisibility:_0x22b052})=>{const _0x563392=_0x5e3a77;_0x145f70[_0x563392(0x18a)][_0x563392(0x142)]=_0xe06b6e,_0x145f70[_0x563392(0x18a)][_0x563392(0x1b4)]=_0x22b052;});}[_0x59dc3a(0x126)](_0x4364ca){const _0x253eb1=_0x59dc3a,_0x30911b=[];let _0x108cb9=_0x4364ca;for(;_0x108cb9&&_0x108cb9!==document[_0x253eb1(0x13f)];){const _0x4e6577=window[_0x253eb1(0x1b0)](_0x108cb9);_0x253eb1(0x14a)!==_0x4e6577[_0x253eb1(0x142)]&&_0x253eb1(0x177)!==_0x4e6577[_0x253eb1(0x1b4)]||(_0x30911b[_0x253eb1(0x145)]({'element':_0x108cb9,'originalDisplay':_0x108cb9[_0x253eb1(0x18a)][_0x253eb1(0x142)],'originalVisibility':_0x108cb9[_0x253eb1(0x18a)][_0x253eb1(0x1b4)]}),_0x108cb9[_0x253eb1(0x18a)][_0x253eb1(0x142)]=_0x253eb1(0x136),_0x108cb9[_0x253eb1(0x18a)][_0x253eb1(0x1b4)]=_0x253eb1(0x14c)),_0x108cb9=_0x108cb9[_0x253eb1(0x169)];}return _0x30911b;}[_0x59dc3a(0x16c)](){const _0x3a33e5=_0x59dc3a;let _0x150e96,_0xa1e2b6;return this[_0x3a33e5(0x152)]?.[_0x3a33e5(0x12e)]?(_0x150e96=this[_0x3a33e5(0x152)][_0x3a33e5(0x12e)][_0x3a33e5(0x125)](!0x0),_0xa1e2b6=this[_0x3a33e5(0x161)](_0x150e96)):(_0x150e96=document[_0x3a33e5(0x19e)](_0x3a33e5(0x1a4)),_0xa1e2b6=_0x150e96),{'calculationContainer':_0x150e96,'targetContainer':_0xa1e2b6};}[_0x59dc3a(0x1b6)](){const _0x1f1e92=_0x59dc3a,{calculationContainer:_0x2a1c01,targetContainer:_0x5cfac3}=this[_0x1f1e92(0x16c)](),_0x360c37=this[_0x1f1e92(0x16e)]();this[_0x1f1e92(0x18b)](_0x2a1c01,_0x360c37);const _0x58a259=this[_0x1f1e92(0x152)]?.[_0x1f1e92(0x12e)]||this[_0x1f1e92(0x140)],_0x274067=_0x58a259?.[_0x1f1e92(0x169)];_0x274067?_0x274067[_0x1f1e92(0x19c)](_0x2a1c01):document[_0x1f1e92(0x13f)][_0x1f1e92(0x19c)](_0x2a1c01),_0x2a1c01[_0x1f1e92(0x17c)]=_0x5cfac3;const _0x31f2e5=this[_0x1f1e92(0x126)](_0x274067||null);return _0x2a1c01[_0x1f1e92(0x185)],_0x2a1c01[_0x1f1e92(0x1af)]=_0x31f2e5,_0x2a1c01;}[_0x59dc3a(0x186)](_0x4a2372,_0x36d601){const _0x57f031=_0x59dc3a,_0x2eea4c=_0x4a2372[_0x57f031(0x17c)]||_0x4a2372,_0x1881a2=[],{rowCount:_0x3a9d67}=this[_0x57f031(0x179)](_0x2eea4c,_0x36d601);if(_0x3a9d67<=this[_0x57f031(0x170)][_0x57f031(0x18f)])return _0x1881a2;const _0x18b1ec=_0x36d601[_0x57f031(0x1a8)]();for(;_0x18b1ec[_0x57f031(0x155)]>0x0;){if(this[_0x57f031(0x18c)](_0x4a2372,_0x2eea4c,_0x18b1ec)){const _0x228c79=_0x36d601[_0x57f031(0x153)](_0x12d30c=>!_0x18b1ec[_0x57f031(0x18e)](_0x12d30c));_0x1881a2[_0x57f031(0x145)](..._0x228c79);break;}if(!_0x18b1ec[_0x57f031(0x13d)]())break;}return _0x1881a2;}[_0x59dc3a(0x179)](_0x3b4cb4,_0x2904a8){const _0x2f6a25=_0x59dc3a;_0x3b4cb4[_0x2f6a25(0x144)]='',_0x2904a8[_0x2f6a25(0x191)](_0x21da01=>{const _0x2a684e=_0x2f6a25;if(_0x21da01[_0x2a684e(0x12e)]){const _0x4d0631=_0x21da01[_0x2a684e(0x12e)][_0x2a684e(0x125)](!0x0);_0x3b4cb4[_0x2a684e(0x19c)](_0x4d0631);}}),_0x3b4cb4[_0x2f6a25(0x185)];const _0x1ca704=_0x3b4cb4[_0x2f6a25(0x1a0)],_0x47d3bb=[];return Array[_0x2f6a25(0x147)](_0x1ca704)[_0x2f6a25(0x191)](_0x330527=>{const _0x37b41c=_0x2f6a25,_0x38a95f=_0x330527[_0x37b41c(0x154)]()[_0x37b41c(0x18d)];_0x47d3bb[_0x37b41c(0x138)](_0x436440=>Math[_0x37b41c(0x1b3)](_0x436440-_0x38a95f)<this[_0x37b41c(0x170)][_0x37b41c(0x157)])||_0x47d3bb[_0x37b41c(0x145)](_0x38a95f);}),{'rowCount':_0x47d3bb[_0x2f6a25(0x155)]};}[_0x59dc3a(0x19f)](){const _0x3413be=_0x59dc3a,_0x1f2413=document[_0x3413be(0x19e)](_0x3413be(0x159));return _0x1f2413[_0x3413be(0x19a)]=this[_0x3413be(0x170)][_0x3413be(0x182)][_0x3413be(0x192)],this[_0x3413be(0x170)][_0x3413be(0x182)][_0x3413be(0x150)]&&_0x1f2413[_0x3413be(0x134)][_0x3413be(0x146)](this[_0x3413be(0x170)][_0x3413be(0x182)][_0x3413be(0x150)]),_0x1f2413[_0x3413be(0x195)]=_0x3413be(0x1b2),_0x1f2413;}[_0x59dc3a(0x18c)](_0xd8f4f3,_0x200ba9,_0x5c0eaa){const _0x41505d=_0x59dc3a;this[_0x41505d(0x179)](_0x200ba9,_0x5c0eaa);const _0x291f45=this[_0x41505d(0x19f)]();_0xd8f4f3[_0x41505d(0x19c)](_0x291f45),_0xd8f4f3[_0x41505d(0x185)];const _0xeb8c79=[..._0x200ba9[_0x41505d(0x1a0)],_0x291f45],_0x325ce9=[];_0xeb8c79[_0x41505d(0x191)](_0x3d7db0=>{const _0x449362=_0x41505d,_0x1c8efb=_0x3d7db0[_0x449362(0x154)]()[_0x449362(0x18d)];_0x325ce9[_0x449362(0x138)](_0xb7218=>Math[_0x449362(0x1b3)](_0xb7218-_0x1c8efb)<this[_0x449362(0x170)][_0x449362(0x157)])||_0x325ce9[_0x449362(0x145)](_0x1c8efb);});const _0x3cba7e=_0x325ce9[_0x41505d(0x155)];return _0x291f45[_0x41505d(0x16b)](),_0x3cba7e<=this[_0x41505d(0x170)][_0x41505d(0x18f)];}[_0x59dc3a(0x14e)](_0x1c458a,_0x4db0f6){const _0x481808=_0x59dc3a;this[_0x481808(0x1a6)][_0x481808(0x12a)](),this[_0x481808(0x196)][_0x481808(0x12a)](),_0x1c458a[_0x481808(0x191)](_0x2a54b2=>{const _0x97b1a7=_0x481808;_0x4db0f6[_0x97b1a7(0x18e)](_0x2a54b2)?this[_0x97b1a7(0x196)][_0x97b1a7(0x146)](_0x2a54b2):this[_0x97b1a7(0x1a6)][_0x97b1a7(0x146)](_0x2a54b2);});}[_0x59dc3a(0x168)](_0x152f56){const _0x1c63e4=_0x59dc3a;if(_0x152f56>0x0&&!this[_0x1c63e4(0x164)]&&this[_0x1c63e4(0x1ae)](),_0x152f56>0x0&&this[_0x1c63e4(0x164)]){const _0x597efc=''+this[_0x1c63e4(0x170)][_0x1c63e4(0x162)]+(_0x152f56<0x63?_0x152f56:'99');this[_0x1c63e4(0x164)][_0x1c63e4(0x198)]=_0x597efc;}this[_0x1c63e4(0x178)](),this[_0x1c63e4(0x1a5)](),this[_0x1c63e4(0x165)]();}[_0x59dc3a(0x143)](_0x3648a9,_0x5b1b24){const _0x84034c=_0x59dc3a;this[_0x84034c(0x14e)](_0x3648a9,_0x5b1b24),this[_0x84034c(0x168)](_0x5b1b24[_0x84034c(0x155)]);}[_0x59dc3a(0x15f)](){const _0x19e86c=_0x59dc3a;this[_0x19e86c(0x140)]&&_0x19e86c(0x1b5)!=typeof IntersectionObserver&&(this[_0x19e86c(0x1a7)]=new IntersectionObserver(_0x254bf9=>{const _0x12a095=_0x19e86c;_0x254bf9[0x0][_0x12a095(0x1a3)]&&this[_0x12a095(0x12c)]&&requestAnimationFrame(()=>{const _0x4c974f=_0x12a095;this[_0x4c974f(0x174)]();});},{'threshold':0.01,'rootMargin':_0x19e86c(0x1a9)}),this[_0x19e86c(0x1a7)][_0x19e86c(0x133)](this[_0x19e86c(0x140)]));}[_0x59dc3a(0x130)](){const _0x3a4755=_0x59dc3a;if(!this[_0x3a4755(0x140)])return!0x1;if(!this[_0x3a4755(0x140)][_0x3a4755(0x197)])return!0x1;const _0x135334=this[_0x3a4755(0x140)][_0x3a4755(0x154)]();if(0x0===_0x135334[_0x3a4755(0x16f)]||0x0===_0x135334[_0x3a4755(0x148)])return!0x1;const _0x3bd286=window[_0x3a4755(0x193)]||document[_0x3a4755(0x175)][_0x3a4755(0x124)],_0x24f9c0=window[_0x3a4755(0x14f)]||document[_0x3a4755(0x175)][_0x3a4755(0x13b)],_0x439d2f=0xc8;return _0x135334[_0x3a4755(0x1ad)]>=-0xc8&&_0x135334[_0x3a4755(0x18d)]<=_0x3bd286+_0x439d2f&&_0x135334[_0x3a4755(0x1ac)]>=-0xc8&&_0x135334[_0x3a4755(0x163)]<=_0x24f9c0+_0x439d2f;}}
23
+ const _0x4cf5e2=_0x4d4a;(function(_0x57e118,_0x33085d){const _0x352a2b=_0x4d4a,_0x361489=_0x57e118();while(!![]){try{const _0x40cf12=-parseInt(_0x352a2b(0x165))/0x1+-parseInt(_0x352a2b(0x195))/0x2*(-parseInt(_0x352a2b(0x138))/0x3)+-parseInt(_0x352a2b(0x198))/0x4*(-parseInt(_0x352a2b(0x143))/0x5)+-parseInt(_0x352a2b(0x11d))/0x6*(parseInt(_0x352a2b(0x178))/0x7)+-parseInt(_0x352a2b(0x137))/0x8*(parseInt(_0x352a2b(0x11b))/0x9)+parseInt(_0x352a2b(0x159))/0xa*(-parseInt(_0x352a2b(0x11f))/0xb)+-parseInt(_0x352a2b(0x173))/0xc*(parseInt(_0x352a2b(0x193))/0xd);if(_0x40cf12===_0x33085d)break;else _0x361489['push'](_0x361489['shift']());}catch(_0x1c3e02){_0x361489['push'](_0x361489['shift']());}}}(_0x2478,0x288bd));import{View as _0x86989a,BalloonPanelView as _0x23109e,ButtonView as _0x554c65,clickOutsideHandler as _0xf778b3}from'ckeditor5/src/ui.js';import{Collection as _0x1ad72d}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x4cf5e2(0x142);function _0x2478(){const _0x2c425b=['9rDaFLC','isConnected','remove','innerWidth','element','zIndex','_handleShowMoreButtonClick','innerHeight','_repinBalloonPanel','slice','300px','111540XiGXtY','_visibleChips','isVisible','calculationContainer','auto','pointerEvents','_createContainerElements','tagName','_applyCalculationStyles','innerHTML','isIntersecting','border-box','overflowContainer','left','absolute','includes','_updateBalloonContent','_showMoreBalloonPanelView','destroy','appendChild','undefined','_bodyCollection','490630ajCUAy','extendTemplate','_config','_findTargetContainer','0px','set','showMoreBalloon','_pendingCalculation','display','observe','_locale','showMoreButtonView','99684GyirMu','disconnect','visible','visible\x20!important','toLowerCase','setContainerElement','visibility','_createMockButton','pin','abs','documentElement','showMoreLabelPrefix','offsetWidth','showMoreButton','12RwMfLg','forEach','.ck-ai-chat','_parentView','_updateOverflowUI','3108qxLnmO','_createCalculationContainer','position','-9999px','cloneNode','hide','block\x20!important','getComputedStyle','showBalloonPanel','body','right','execute','render','pop','reorganizeChips','_testButtonFit','rowDetectionTolerance','height','_overflowChips','boxSizing','_checkAndHandleOverflow','ck-calculation-container','none','_containerElement','add','classList','_showMoreButtonView','400439BpAjJr','bottom','134182DNEheq','+\x201','maxVisibleRows','32JhJkQf','_createShowMoreButton','hideBalloonPanel','clear','_makeAncestorsVisible','controlsButton','some','createElement','_isContainerVisible','_calculateOverflowInContainer','50px','overflowChips','querySelector','_ancestorsToRestore','content','style','children','block','setTemplate','textContent','from','width','length','_restoreAncestorVisibility','clientHeight','_createShowMoreButtonView','54atTXGR','_applyOverflowResults','108vNYZwV','label','11OcZBkF','_createShowMoreBalloonPanelView','_setupVisibilityObserver','parentElement','_renderChipsAndCountRows','cssClasses','div','hidden','top','isOn','opacity','show','_calculateContainerWidth','getBoundingClientRect','_intersectionObserver','_updateShowMoreButtonVisibility','disableAnimationOnEnter','className','filter','push','_distributeChips','_targetContainer','clientWidth','button','34824mcqADT'];_0x2478=function(){return _0x2c425b;};return _0x2478();}function _0x4d4a(_0xbfa48,_0x4ef460){const _0x24788c=_0x2478();return _0x4d4a=function(_0x4d4a1d,_0x530bfc){_0x4d4a1d=_0x4d4a1d-0x112;let _0x277a45=_0x24788c[_0x4d4a1d];return _0x277a45;},_0x4d4a(_0xbfa48,_0x4ef460);}export class AIChatChipsOverflowManager{[_0x4cf5e2(0x163)];[_0x4cf5e2(0x15b)];[_0x4cf5e2(0x144)];[_0x4cf5e2(0x18a)];[_0x4cf5e2(0x192)]=null;[_0x4cf5e2(0x154)]=null;[_0x4cf5e2(0x18f)]=null;[_0x4cf5e2(0x158)];[_0x4cf5e2(0x176)]=null;[_0x4cf5e2(0x12d)]=null;[_0x4cf5e2(0x160)]=!0x1;constructor(_0x452dc9,_0x309f17,_0xb21776,_0x351209,_0x912da2){const _0x45e523=_0x4cf5e2;this[_0x45e523(0x163)]=_0x452dc9,this[_0x45e523(0x144)]=_0x309f17,this[_0x45e523(0x15b)]={...hn,..._0xb21776,'cssClasses':{'controlsButton':'','calculationContainer':_0x45e523(0x18d),..._0xb21776[_0x45e523(0x124)]}},this[_0x45e523(0x18a)]=new _0x1ad72d(),this[_0x45e523(0x158)]=_0x351209,this[_0x45e523(0x176)]=_0x912da2||null;}[_0x4cf5e2(0x16a)](_0x52b01a){const _0xb7aa9=_0x4cf5e2;this[_0xb7aa9(0x12d)]&&(this[_0xb7aa9(0x12d)][_0xb7aa9(0x166)](),this[_0xb7aa9(0x12d)]=null),this[_0xb7aa9(0x18f)]=_0x52b01a,this[_0xb7aa9(0x121)]();}get[_0x4cf5e2(0x164)](){const _0x2a44ef=_0x4cf5e2;return this[_0x2a44ef(0x192)];}get[_0x4cf5e2(0x1a3)](){const _0x33f297=_0x4cf5e2;return this[_0x33f297(0x18a)];}[_0x4cf5e2(0x186)](){requestAnimationFrame(()=>{const _0x3db7fe=_0x4d4a;this[_0x3db7fe(0x18c)]();});}[_0x4cf5e2(0x180)](){const _0x256a4e=_0x4cf5e2;this[_0x256a4e(0x192)]&&this[_0x256a4e(0x154)]&&(this[_0x256a4e(0x153)](),this[_0x256a4e(0x192)][_0x256a4e(0x128)]=!0x0,this[_0x256a4e(0x154)][_0x256a4e(0x12a)](),this[_0x256a4e(0x154)][_0x256a4e(0x16d)]({'target':this[_0x256a4e(0x192)][_0x256a4e(0x13c)],'limiter':document[_0x256a4e(0x1a4)](_0x256a4e(0x175))}));}[_0x4cf5e2(0x19a)](){const _0x518197=_0x4cf5e2;this[_0x518197(0x192)]&&this[_0x518197(0x154)]&&(this[_0x518197(0x192)][_0x518197(0x128)]=!0x1,this[_0x518197(0x154)][_0x518197(0x17d)]());}[_0x4cf5e2(0x19b)](){const _0x5b1b81=_0x4cf5e2;this[_0x5b1b81(0x18a)][_0x5b1b81(0x19b)](),this[_0x5b1b81(0x19a)](),this[_0x5b1b81(0x12e)](),this[_0x5b1b81(0x192)]&&(this[_0x5b1b81(0x192)][_0x5b1b81(0x11e)]=''),this[_0x5b1b81(0x154)]&&this[_0x5b1b81(0x154)][_0x5b1b81(0x1a6)][_0x5b1b81(0x19b)]();}[_0x4cf5e2(0x155)](){const _0x55f6da=_0x4cf5e2;this[_0x55f6da(0x12d)]&&(this[_0x55f6da(0x12d)][_0x55f6da(0x166)](),this[_0x55f6da(0x12d)]=null),this[_0x55f6da(0x192)]&&(this[_0x55f6da(0x192)][_0x55f6da(0x155)](),this[_0x55f6da(0x192)]=null),this[_0x55f6da(0x154)]&&(this[_0x55f6da(0x154)][_0x55f6da(0x155)](),this[_0x55f6da(0x154)]=null);}[_0x4cf5e2(0x18c)](){const _0x57cfba=_0x4cf5e2;if(!this[_0x57cfba(0x18f)])return;if(!this[_0x57cfba(0x1a0)]())return void(this[_0x57cfba(0x160)]=!0x0);this[_0x57cfba(0x160)]=!0x1;const _0x14cc12=[...this[_0x57cfba(0x144)],...this[_0x57cfba(0x18a)]],_0x5674ef=this[_0x57cfba(0x179)](),_0x4629ea=this[_0x57cfba(0x1a1)](_0x5674ef,_0x14cc12),_0x58f6fe=_0x5674ef[_0x57cfba(0x1a5)];_0x58f6fe&&this[_0x57cfba(0x118)](_0x58f6fe),_0x5674ef[_0x57cfba(0x13a)](),this[_0x57cfba(0x11c)](_0x14cc12,_0x4629ea);}[_0x4cf5e2(0x199)](){const _0x225226=_0x4cf5e2;this[_0x225226(0x192)]=this[_0x225226(0x11a)](),this[_0x225226(0x154)]=this[_0x225226(0x120)](),this[_0x225226(0x192)][_0x225226(0x184)](),this[_0x225226(0x18f)][_0x225226(0x156)](this[_0x225226(0x192)][_0x225226(0x13c)]),this[_0x225226(0x192)]['on'](_0x225226(0x183),()=>{const _0x47a306=_0x225226;this[_0x47a306(0x13e)]();}),_0xf778b3({'emitter':this[_0x225226(0x154)],'contextElements':[this[_0x225226(0x154)][_0x225226(0x13c)],this[_0x225226(0x192)][_0x225226(0x13c)]],'callback':()=>this[_0x225226(0x19a)](),'activator':()=>this[_0x225226(0x192)][_0x225226(0x128)]});}[_0x4cf5e2(0x11a)](){const _0x551359=_0x4cf5e2,_0xbb118d=new _0x554c65(this[_0x551359(0x163)]);_0xbb118d[_0x551359(0x15e)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5a40f6=[this[_0x551359(0x15b)][_0x551359(0x124)][_0x551359(0x172)]];return this[_0x551359(0x15b)][_0x551359(0x124)][_0x551359(0x19d)]&&_0x5a40f6[_0x551359(0x132)](this[_0x551359(0x15b)][_0x551359(0x124)][_0x551359(0x19d)]),_0xbb118d[_0x551359(0x15a)]({'attributes':{'class':_0x5a40f6}}),_0xbb118d;}[_0x4cf5e2(0x120)](){const _0x5d4adf=_0x4cf5e2,_0x59c6d0=new _0x23109e(this[_0x5d4adf(0x163)]);return _0x59c6d0[_0x5d4adf(0x15a)]({'attributes':{'class':this[_0x5d4adf(0x15b)][_0x5d4adf(0x124)][_0x5d4adf(0x15f)]}}),this[_0x5d4adf(0x158)][_0x5d4adf(0x190)](_0x59c6d0),_0x59c6d0;}[_0x4cf5e2(0x153)](){const _0x2488e5=_0x4cf5e2;if(this[_0x2488e5(0x154)]&&(this[_0x2488e5(0x154)][_0x2488e5(0x1a6)][_0x2488e5(0x19b)](),this[_0x2488e5(0x18a)][_0x2488e5(0x117)]>0x0)){this[_0x2488e5(0x18a)][_0x2488e5(0x174)](_0x3b036d=>{const _0x358d9d=_0x2488e5;_0x3b036d[_0x358d9d(0x12f)]();});const _0x9071b3=new _0x86989a(this[_0x2488e5(0x163)]);_0x9071b3[_0x2488e5(0x113)]({'tag':_0x2488e5(0x125),'attributes':{'class':this[_0x2488e5(0x15b)][_0x2488e5(0x124)][_0x2488e5(0x14f)]},'children':this[_0x2488e5(0x18a)]}),this[_0x2488e5(0x154)][_0x2488e5(0x1a6)][_0x2488e5(0x190)](_0x9071b3);}}[_0x4cf5e2(0x13e)](){const _0xf3c1f0=_0x4cf5e2;this[_0xf3c1f0(0x192)][_0xf3c1f0(0x128)]?this[_0xf3c1f0(0x19a)]():this[_0xf3c1f0(0x180)]();}[_0x4cf5e2(0x12e)](){const _0x5d30a2=_0x4cf5e2,_0xbeaefe=this[_0x5d30a2(0x18a)][_0x5d30a2(0x117)]>0x0;this[_0x5d30a2(0x192)]?.[_0x5d30a2(0x13c)]&&(this[_0x5d30a2(0x192)][_0x5d30a2(0x13c)][_0x5d30a2(0x1a7)][_0x5d30a2(0x161)]=_0xbeaefe?'':_0x5d30a2(0x18e));}[_0x4cf5e2(0x140)](){const _0x4a2ba4=_0x4cf5e2;this[_0x4a2ba4(0x192)]?.[_0x4a2ba4(0x128)]&&this[_0x4a2ba4(0x154)]?.[_0x4a2ba4(0x145)]&&this[_0x4a2ba4(0x192)][_0x4a2ba4(0x13c)]&&this[_0x4a2ba4(0x154)][_0x4a2ba4(0x16d)]({'target':this[_0x4a2ba4(0x192)][_0x4a2ba4(0x13c)],'limiter':document[_0x4a2ba4(0x1a4)](_0x4a2ba4(0x175))});}[_0x4cf5e2(0x15c)](_0x1a6e10){const _0x1ffb79=_0x4cf5e2,_0x50240c=this[_0x1ffb79(0x18f)]?.[_0x1ffb79(0x14a)][_0x1ffb79(0x169)]()||_0x1ffb79(0x125),_0x1f378a=this[_0x1ffb79(0x18f)]?.[_0x1ffb79(0x191)];if(_0x1f378a){const _0x2ef5b0=_0x1f378a[0x0]||'',_0x562bd8=_0x1a6e10[_0x1ffb79(0x1a4)]('.'+_0x2ef5b0),_0x46c87f=_0x1a6e10[_0x1ffb79(0x1a4)](_0x50240c);return _0x562bd8||_0x46c87f||_0x1a6e10;}return _0x1a6e10[_0x1ffb79(0x1a4)](_0x50240c)||_0x1a6e10;}[_0x4cf5e2(0x12b)](){const _0x4886cb=_0x4cf5e2,_0x30ddec=this[_0x4886cb(0x176)]?.[_0x4886cb(0x13c)]||this[_0x4886cb(0x18f)];if(!_0x30ddec)return an;const _0x3e191d=window[_0x4886cb(0x17f)](_0x30ddec)[_0x4886cb(0x116)];if(_0x4886cb(0x147)===_0x3e191d||_0x4886cb(0x15d)===_0x3e191d||!_0x3e191d){const _0x210837=_0x30ddec[_0x4886cb(0x122)];if(_0x210837){const _0x5af5be=window[_0x4886cb(0x17f)](_0x210837);return _0x4886cb(0x147)!==_0x5af5be[_0x4886cb(0x116)]?_0x5af5be[_0x4886cb(0x116)]:an;}return an;}return _0x3e191d;}[_0x4cf5e2(0x14b)](_0x1d5192,_0x211e4f){const _0x20679a=_0x4cf5e2;this[_0x20679a(0x15b)][_0x20679a(0x124)][_0x20679a(0x146)]&&_0x1d5192[_0x20679a(0x191)][_0x20679a(0x190)](this[_0x20679a(0x15b)][_0x20679a(0x124)][_0x20679a(0x146)]),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x116)]=_0x211e4f,_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x17a)]=_0x20679a(0x151),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x127)]=_0x20679a(0x17b),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x150)]=_0x20679a(0x17b),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x129)]='0',_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x148)]=_0x20679a(0x18e),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x13d)]='-1',_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x16b)]=_0x20679a(0x168),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x161)]=_0x20679a(0x17e),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x18b)]=_0x20679a(0x14e);}[_0x4cf5e2(0x118)](_0x5b4a6a){const _0x468dbb=_0x4cf5e2;_0x5b4a6a[_0x468dbb(0x174)](({element:_0x1968be,originalDisplay:_0x3ef6bc,originalVisibility:_0x37aefd})=>{const _0x9a12d9=_0x468dbb;_0x1968be[_0x9a12d9(0x1a7)][_0x9a12d9(0x161)]=_0x3ef6bc,_0x1968be[_0x9a12d9(0x1a7)][_0x9a12d9(0x16b)]=_0x37aefd;});}[_0x4cf5e2(0x19c)](_0x5d4b54){const _0xcc6058=_0x4cf5e2,_0x39a789=[];let _0x352a25=_0x5d4b54;for(;_0x352a25&&_0x352a25!==document[_0xcc6058(0x181)];){const _0x2e7fc1=window[_0xcc6058(0x17f)](_0x352a25);_0xcc6058(0x18e)!==_0x2e7fc1[_0xcc6058(0x161)]&&_0xcc6058(0x126)!==_0x2e7fc1[_0xcc6058(0x16b)]||(_0x39a789[_0xcc6058(0x132)]({'element':_0x352a25,'originalDisplay':_0x352a25[_0xcc6058(0x1a7)][_0xcc6058(0x161)],'originalVisibility':_0x352a25[_0xcc6058(0x1a7)][_0xcc6058(0x16b)]}),_0x352a25[_0xcc6058(0x1a7)][_0xcc6058(0x161)]=_0xcc6058(0x112),_0x352a25[_0xcc6058(0x1a7)][_0xcc6058(0x16b)]=_0xcc6058(0x167)),_0x352a25=_0x352a25[_0xcc6058(0x122)];}return _0x39a789;}[_0x4cf5e2(0x149)](){const _0x366cf3=_0x4cf5e2;let _0x23f42d,_0xc6dc36;return this[_0x366cf3(0x176)]?.[_0x366cf3(0x13c)]?(_0x23f42d=this[_0x366cf3(0x176)][_0x366cf3(0x13c)][_0x366cf3(0x17c)](!0x0),_0xc6dc36=this[_0x366cf3(0x15c)](_0x23f42d)):(_0x23f42d=document[_0x366cf3(0x19f)](_0x366cf3(0x125)),_0xc6dc36=_0x23f42d),{'calculationContainer':_0x23f42d,'targetContainer':_0xc6dc36};}[_0x4cf5e2(0x179)](){const _0x324aab=_0x4cf5e2,{calculationContainer:_0x41e244,targetContainer:_0x5e147b}=this[_0x324aab(0x149)](),_0x2f96b0=this[_0x324aab(0x12b)]();this[_0x324aab(0x14b)](_0x41e244,_0x2f96b0);const _0x586469=this[_0x324aab(0x176)]?.[_0x324aab(0x13c)]||this[_0x324aab(0x18f)],_0x29d114=_0x586469?.[_0x324aab(0x122)];_0x29d114?_0x29d114[_0x324aab(0x156)](_0x41e244):document[_0x324aab(0x181)][_0x324aab(0x156)](_0x41e244),_0x41e244[_0x324aab(0x134)]=_0x5e147b;const _0x4edf54=this[_0x324aab(0x19c)](_0x29d114||null);return _0x41e244[_0x324aab(0x171)],_0x41e244[_0x324aab(0x1a5)]=_0x4edf54,_0x41e244;}[_0x4cf5e2(0x1a1)](_0x9bce86,_0x44a0e9){const _0x53864b=_0x4cf5e2,_0x1690e0=_0x9bce86[_0x53864b(0x134)]||_0x9bce86,_0xedc2ba=[],{rowCount:_0x1fe8ea}=this[_0x53864b(0x123)](_0x1690e0,_0x44a0e9);if(_0x1fe8ea<=this[_0x53864b(0x15b)][_0x53864b(0x197)])return _0xedc2ba;const _0x4b2006=_0x44a0e9[_0x53864b(0x141)]();for(;_0x4b2006[_0x53864b(0x117)]>0x0;){if(this[_0x53864b(0x187)](_0x9bce86,_0x1690e0,_0x4b2006)){const _0x34cd97=_0x44a0e9[_0x53864b(0x131)](_0xc27de1=>!_0x4b2006[_0x53864b(0x152)](_0xc27de1));_0xedc2ba[_0x53864b(0x132)](..._0x34cd97);break;}if(!_0x4b2006[_0x53864b(0x185)]())break;}return _0xedc2ba;}[_0x4cf5e2(0x123)](_0xc84b64,_0x582537){const _0xa0e227=_0x4cf5e2;_0xc84b64[_0xa0e227(0x14c)]='',_0x582537[_0xa0e227(0x174)](_0x23df89=>{const _0x440dfe=_0xa0e227;if(_0x23df89[_0x440dfe(0x13c)]){const _0x4c47f9=_0x23df89[_0x440dfe(0x13c)][_0x440dfe(0x17c)](!0x0);_0xc84b64[_0x440dfe(0x156)](_0x4c47f9);}}),_0xc84b64[_0xa0e227(0x171)];const _0x7f99e=_0xc84b64[_0xa0e227(0x1a8)],_0xb298ed=[];return Array[_0xa0e227(0x115)](_0x7f99e)[_0xa0e227(0x174)](_0x1e6550=>{const _0x203354=_0xa0e227,_0x4d6b50=_0x1e6550[_0x203354(0x12c)]()[_0x203354(0x127)];_0xb298ed[_0x203354(0x19e)](_0x22ed12=>Math[_0x203354(0x16e)](_0x22ed12-_0x4d6b50)<this[_0x203354(0x15b)][_0x203354(0x188)])||_0xb298ed[_0x203354(0x132)](_0x4d6b50);}),{'rowCount':_0xb298ed[_0xa0e227(0x117)]};}[_0x4cf5e2(0x16c)](){const _0xfce3b0=_0x4cf5e2,_0x2137c1=document[_0xfce3b0(0x19f)](_0xfce3b0(0x136));return _0x2137c1[_0xfce3b0(0x130)]=this[_0xfce3b0(0x15b)][_0xfce3b0(0x124)][_0xfce3b0(0x172)],this[_0xfce3b0(0x15b)][_0xfce3b0(0x124)][_0xfce3b0(0x19d)]&&_0x2137c1[_0xfce3b0(0x191)][_0xfce3b0(0x190)](this[_0xfce3b0(0x15b)][_0xfce3b0(0x124)][_0xfce3b0(0x19d)]),_0x2137c1[_0xfce3b0(0x114)]=_0xfce3b0(0x196),_0x2137c1;}[_0x4cf5e2(0x187)](_0xce34f4,_0x30e9e5,_0x4c26e2){const _0x52f2a5=_0x4cf5e2;this[_0x52f2a5(0x123)](_0x30e9e5,_0x4c26e2);const _0x2b26ed=this[_0x52f2a5(0x16c)]();_0xce34f4[_0x52f2a5(0x156)](_0x2b26ed),_0xce34f4[_0x52f2a5(0x171)];const _0x42a9d2=[..._0x30e9e5[_0x52f2a5(0x1a8)],_0x2b26ed],_0x12ad02=[];_0x42a9d2[_0x52f2a5(0x174)](_0x927c64=>{const _0x460420=_0x52f2a5,_0x2614d2=_0x927c64[_0x460420(0x12c)]()[_0x460420(0x127)];_0x12ad02[_0x460420(0x19e)](_0x265b88=>Math[_0x460420(0x16e)](_0x265b88-_0x2614d2)<this[_0x460420(0x15b)][_0x460420(0x188)])||_0x12ad02[_0x460420(0x132)](_0x2614d2);});const _0x10e15e=_0x12ad02[_0x52f2a5(0x117)];return _0x2b26ed[_0x52f2a5(0x13a)](),_0x10e15e<=this[_0x52f2a5(0x15b)][_0x52f2a5(0x197)];}[_0x4cf5e2(0x133)](_0x43cac8,_0x4a711b){const _0x58aa10=_0x4cf5e2;this[_0x58aa10(0x144)][_0x58aa10(0x19b)](),this[_0x58aa10(0x18a)][_0x58aa10(0x19b)](),_0x43cac8[_0x58aa10(0x174)](_0x3cf4a2=>{const _0x5f5cc3=_0x58aa10;_0x4a711b[_0x5f5cc3(0x152)](_0x3cf4a2)?this[_0x5f5cc3(0x18a)][_0x5f5cc3(0x190)](_0x3cf4a2):this[_0x5f5cc3(0x144)][_0x5f5cc3(0x190)](_0x3cf4a2);});}[_0x4cf5e2(0x177)](_0x5d42a1){const _0x2f031b=_0x4cf5e2;if(_0x5d42a1>0x0&&!this[_0x2f031b(0x192)]&&this[_0x2f031b(0x199)](),_0x5d42a1>0x0&&this[_0x2f031b(0x192)]){const _0x4f1bc7=''+this[_0x2f031b(0x15b)][_0x2f031b(0x170)]+(_0x5d42a1<0x63?_0x5d42a1:'99');this[_0x2f031b(0x192)][_0x2f031b(0x11e)]=_0x4f1bc7;}this[_0x2f031b(0x153)](),this[_0x2f031b(0x12e)](),this[_0x2f031b(0x140)]();}[_0x4cf5e2(0x11c)](_0x31758b,_0x28bdfb){const _0x4d1acf=_0x4cf5e2;this[_0x4d1acf(0x133)](_0x31758b,_0x28bdfb),this[_0x4d1acf(0x177)](_0x28bdfb[_0x4d1acf(0x117)]);}[_0x4cf5e2(0x121)](){const _0x3660a0=_0x4cf5e2;this[_0x3660a0(0x18f)]&&_0x3660a0(0x157)!=typeof IntersectionObserver&&(this[_0x3660a0(0x12d)]=new IntersectionObserver(_0x4e9e18=>{const _0x138c79=_0x3660a0;_0x4e9e18[0x0][_0x138c79(0x14d)]&&this[_0x138c79(0x160)]&&requestAnimationFrame(()=>{const _0x58214d=_0x138c79;this[_0x58214d(0x18c)]();});},{'threshold':0.01,'rootMargin':_0x3660a0(0x1a2)}),this[_0x3660a0(0x12d)][_0x3660a0(0x162)](this[_0x3660a0(0x18f)]));}[_0x4cf5e2(0x1a0)](){const _0x1ae7cd=_0x4cf5e2;if(!this[_0x1ae7cd(0x18f)])return!0x1;if(!this[_0x1ae7cd(0x18f)][_0x1ae7cd(0x139)])return!0x1;const _0x291f15=this[_0x1ae7cd(0x18f)][_0x1ae7cd(0x12c)]();if(0x0===_0x291f15[_0x1ae7cd(0x116)]||0x0===_0x291f15[_0x1ae7cd(0x189)])return!0x1;const _0x4c47e0=window[_0x1ae7cd(0x13f)]||document[_0x1ae7cd(0x16f)][_0x1ae7cd(0x119)],_0x548245=window[_0x1ae7cd(0x13b)]||document[_0x1ae7cd(0x16f)][_0x1ae7cd(0x135)],_0xeb8a12=0xc8;return _0x291f15[_0x1ae7cd(0x194)]>=-0xc8&&_0x291f15[_0x1ae7cd(0x127)]<=_0x4c47e0+_0xeb8a12&&_0x291f15[_0x1ae7cd(0x182)]>=-0xc8&&_0x291f15[_0x1ae7cd(0x150)]<=_0x548245+_0xeb8a12;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15d8c5=_0x1e5a;(function(_0x31b177,_0x280514){const _0x56bac=_0x1e5a,_0x1fb9e3=_0x31b177();while(!![]){try{const _0x4e1e0d=parseInt(_0x56bac(0x13e))/0x1+-parseInt(_0x56bac(0x138))/0x2*(parseInt(_0x56bac(0x113))/0x3)+parseInt(_0x56bac(0x11e))/0x4*(-parseInt(_0x56bac(0x11a))/0x5)+parseInt(_0x56bac(0x12c))/0x6*(parseInt(_0x56bac(0x145))/0x7)+parseInt(_0x56bac(0x10e))/0x8+-parseInt(_0x56bac(0x13d))/0x9*(parseInt(_0x56bac(0x125))/0xa)+parseInt(_0x56bac(0x12f))/0xb*(parseInt(_0x56bac(0x119))/0xc);if(_0x4e1e0d===_0x280514)break;else _0x1fb9e3['push'](_0x1fb9e3['shift']());}catch(_0x4e260d){_0x1fb9e3['push'](_0x1fb9e3['shift']());}}}(_0x3bd7,0xa9908));import{ButtonView as _0x22ec28,IconView as _0x84d1dc}from'ckeditor5/src/ui.js';function _0x3bd7(){const _0x334a68=['uiId','644hioneg','remove','_createRemoveButton','_initializeProperties','ck-ai-chat-context-chip','fire','slice','_createTemplateAttributes','_createIconView','_isAnimationOnEnterEnabled','ck-ai-chat-context-chip_wide','span','_handleAnimationEndOnce','6427600lUIbRT','selection','removeEventListener','label','isLoading','3BfnnZl','_createLoaderIcon','ck-ai-chat-context-chip__type-icon','locale','length','ck-ai-chat-context-chip_document','435396YKMutJ','5MAzhiq','ck-ai-chat-context-controls__chip-tooltip','type','add','502772NQCTuU','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','div','_setupRemoveButtonEvent','disableAnimationOnEnter','classList','ck-ai-chat-context-chip__label','148950pSnYVf','_createLabelElement','render','setTemplate','lastIndexOf','content','bindTemplate','24132pmKaXu','document','animationend','253dVvtal','addEventListener','small','set','_createTemplateChildren','bind','ck-hidden','ck-ai-chat-context-chip_new-chip','tooltip','2229922CUARwQ','readonly','webkitAnimationEnd','element','_setupTemplate','189CTkgPW','240002ZMLdjW','execute','itemType','extendTemplate','removeContextItemChip','isVisible'];_0x3bd7=function(){return _0x334a68;};return _0x3bd7();}import{IconClose as _0x2ca854,IconDocument as _0x272fea,IconFileUpload as _0x250509,IconLink as _0x35d7b5,IconSelection as _0xc24de1}from'@ckeditor/ckeditor5-icons';function _0x1e5a(_0x119a34,_0x1d6ece){const _0x3bd785=_0x3bd7();return _0x1e5a=function(_0x1e5a0a,_0x158151){_0x1e5a0a=_0x1e5a0a-0x104;let _0x51a337=_0x3bd785[_0x1e5a0a];return _0x51a337;},_0x1e5a(_0x119a34,_0x1d6ece);}import{getTranslation as _0x19a700}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x34c176}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x250509,'document':_0x272fea,'web-resource':_0x35d7b5,'text':_0x250509,'selection':_0xc24de1},bn=_0x15d8c5(0x105),wn=_0x15d8c5(0x10b),Tn=_0x15d8c5(0x118),En=_0x15d8c5(0x124),fn=_0x15d8c5(0x115),An=_0x15d8c5(0x11b),Cn='n';export class AIChatContextItemButtonView extends _0x22ec28{constructor(_0x5e6023,_0x30401a,_0x1d0a2a,_0x4d134f,_0xa76df0=!0x1){const _0xa9ad8f=_0x15d8c5;super(_0x5e6023),this[_0xa9ad8f(0x10a)]=_0x4d134f,this[_0xa9ad8f(0x104)](_0x30401a,_0x1d0a2a,_0xa76df0),this[_0xa9ad8f(0x13c)]();}[_0x15d8c5(0x127)](){const _0x4b05cd=_0x15d8c5;super[_0x4b05cd(0x127)](),this[_0x4b05cd(0x10a)]&&this[_0x4b05cd(0x13b)]&&(this[_0x4b05cd(0x13b)][_0x4b05cd(0x123)][_0x4b05cd(0x11d)](_0x4b05cd(0x136)),this[_0x4b05cd(0x10d)](this[_0x4b05cd(0x13b)],()=>{const _0xbfe076=_0x4b05cd;this[_0xbfe076(0x13b)]&&this[_0xbfe076(0x13b)][_0xbfe076(0x123)][_0xbfe076(0x146)](_0xbfe076(0x136));}));}[_0x15d8c5(0x122)](){const _0x4d029f=_0x15d8c5;this[_0x4d029f(0x10a)]=!0x1,this[_0x4d029f(0x13b)]&&this[_0x4d029f(0x13b)][_0x4d029f(0x123)][_0x4d029f(0x146)](_0x4d029f(0x136));}[_0x15d8c5(0x104)](_0x4b0be2,_0x40a44a,_0x4cae74){const _0x2cf498=_0x15d8c5;this[_0x2cf498(0x132)](_0x2cf498(0x111),_0x4b0be2[_0x2cf498(0x111)]),this[_0x2cf498(0x132)](_0x2cf498(0x137),!0x0),this[_0x2cf498(0x132)](_0x2cf498(0x140),_0x4b0be2[_0x2cf498(0x11c)]),this[_0x2cf498(0x132)]('id',_0x4b0be2[_0x2cf498(0x144)]),this[_0x2cf498(0x132)](_0x2cf498(0x139),_0x40a44a),this[_0x2cf498(0x132)](_0x2cf498(0x112),_0x4cae74);}[_0x15d8c5(0x13c)](){const _0x23d559=_0x15d8c5,_0x46a72a=this[_0x23d559(0x109)](),_0x4838c2=this[_0x23d559(0x147)](),_0x2b371f=this[_0x23d559(0x12b)];this[_0x23d559(0x128)]({'tag':_0x23d559(0x120),'attributes':this[_0x23d559(0x108)](_0x2b371f),'children':this[_0x23d559(0x133)](_0x46a72a,_0x4838c2,_0x2b371f)});}[_0x15d8c5(0x108)](_0x56268d){const _0x4e757f=_0x15d8c5;return{'class':[bn,_0x56268d['if'](_0x4e757f(0x140),Tn,_0x83c042=>_0x4e757f(0x12d)==_0x83c042),_0x56268d['if'](_0x4e757f(0x140),wn,_0x3a5ecf=>_0x4e757f(0x10f)==_0x3a5ecf)],'data-cke-tooltip-text':_0x56268d['to'](_0x4e757f(0x111),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x15d8c5(0x133)](_0x1e93c8,_0x31c399,_0x236904){const _0x2abdaa=_0x15d8c5,_0x5e7a8c=this[_0x2abdaa(0x126)](_0x236904),_0x5afbe4=this[_0x2abdaa(0x114)]();return this[_0x2abdaa(0x139)]?[_0x1e93c8,_0x5e7a8c]:[_0x1e93c8,_0x5afbe4,_0x5e7a8c,_0x31c399];}[_0x15d8c5(0x126)](_0x100ba0){const _0x4c9ec3=_0x15d8c5;return{'tag':_0x4c9ec3(0x10c),'attributes':{'class':En},'children':[{'text':_0x100ba0['to'](_0x4c9ec3(0x111))}]};}[_0x15d8c5(0x147)](){const _0x5e96b2=_0x15d8c5,_0x3b0e5=new _0x22ec28(this[_0x5e96b2(0x116)]);return _0x3b0e5[_0x5e96b2(0x132)]({'label':_0x19a700(this[_0x5e96b2(0x116)],_0x5e96b2(0x11f)),'icon':_0x2ca854}),this[_0x5e96b2(0x121)](_0x3b0e5),_0x3b0e5;}[_0x15d8c5(0x121)](_0x590693){const _0x458d0c=_0x15d8c5;_0x590693['on'](_0x458d0c(0x13f),()=>{const _0x39438a=_0x458d0c;this[_0x39438a(0x106)](_0x39438a(0x142),this['id']);});}[_0x15d8c5(0x109)](){const _0x39f480=_0x15d8c5,_0x3c4f70=this[_0x39f480(0x12b)],_0x4dae93=new _0x84d1dc();return _0x4dae93[_0x39f480(0x12a)]=xn[this[_0x39f480(0x140)]],_0x4dae93[_0x39f480(0x141)]({'attributes':{'class':[fn,_0x3c4f70['if'](_0x39f480(0x112),_0x39f480(0x135),_0x4d70c0=>_0x4d70c0)]}}),_0x4dae93;}[_0x15d8c5(0x10d)](_0xfcf124,_0x103411){const _0x2f41e5=_0x15d8c5;if(!_0xfcf124)return;const _0x4cc879=()=>{const _0x33b18b=_0x1e5a;_0x103411(),_0xfcf124[_0x33b18b(0x110)](_0x33b18b(0x12e),_0x4cc879),_0xfcf124[_0x33b18b(0x110)](_0x33b18b(0x13a),_0x4cc879);};_0xfcf124[_0x2f41e5(0x130)](_0x2f41e5(0x12e),_0x4cc879),_0xfcf124[_0x2f41e5(0x130)](_0x2f41e5(0x13a),_0x4cc879);}[_0x15d8c5(0x114)](){const _0x3a90fa=_0x15d8c5,_0x244554=new _0x34c176(_0x3a90fa(0x131));return _0x244554[_0x3a90fa(0x134)](_0x3a90fa(0x143))['to'](this,_0x3a90fa(0x112),_0x17c6ee=>_0x17c6ee),_0x244554;}}function In(_0x41e80f){const _0x55ea5e=_0x15d8c5;if(!_0x41e80f)return _0x41e80f;if(_0x41e80f[_0x55ea5e(0x117)]<=0x78)return _0x41e80f;const _0x4c2a6d=_0x41e80f[_0x55ea5e(0x107)](0x0,0x78),_0x45dbde=_0x4c2a6d[_0x55ea5e(0x129)]('\x20');return(_0x45dbde>0x0?_0x4c2a6d[_0x55ea5e(0x107)](0x0,_0x45dbde):_0x4c2a6d)+'…';}
23
+ const _0x5a18cc=_0x1641;(function(_0x46cd6f,_0x4c8d58){const _0xc6b8e7=_0x1641,_0x48e627=_0x46cd6f();while(!![]){try{const _0x3cd577=parseInt(_0xc6b8e7(0x1dc))/0x1+-parseInt(_0xc6b8e7(0x1f0))/0x2+parseInt(_0xc6b8e7(0x1b1))/0x3*(-parseInt(_0xc6b8e7(0x1df))/0x4)+parseInt(_0xc6b8e7(0x1b3))/0x5+parseInt(_0xc6b8e7(0x1e1))/0x6*(-parseInt(_0xc6b8e7(0x1be))/0x7)+parseInt(_0xc6b8e7(0x1d4))/0x8+parseInt(_0xc6b8e7(0x1ca))/0x9;if(_0x3cd577===_0x4c8d58)break;else _0x48e627['push'](_0x48e627['shift']());}catch(_0xd79b16){_0x48e627['push'](_0x48e627['shift']());}}}(_0xdf39,0x4a8e2));function _0x1641(_0x492e7c,_0x1df86c){const _0xdf391a=_0xdf39();return _0x1641=function(_0x1641c1,_0x422fc5){_0x1641c1=_0x1641c1-0x1b0;let _0x4a673b=_0xdf391a[_0x1641c1];return _0x4a673b;},_0x1641(_0x492e7c,_0x1df86c);}import{ButtonView as _0x410927,IconView as _0x5a2567}from'ckeditor5/src/ui.js';function _0xdf39(){const _0x88dd0b=['_handleAnimationEndOnce','_createLoaderIcon','isLoading','ck-ai-chat-context-chip','210eJYAlz','_createTemplateChildren','span','bindTemplate','animationend','_setupTemplate','ck-ai-chat-context-chip_wide','bind','_createIconView','_createRemoveButton','removeEventListener','_createLabelElement','2376783nZfLrO','removeContextItemChip','webkitAnimationEnd','document','locale','ck-ai-chat-context-chip__type-icon','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','small','ck-hidden','_initializeProperties','3690536qTBEaa','_isAnimationOnEnterEnabled','add','ck-ai-chat-context-controls__chip-tooltip','_setupRemoveButtonEvent','selection','ck-ai-chat-context-chip__label','remove','266286KBzEeF','ck-ai-chat-context-chip_new-chip','slice','4PilTPU','type','73386PgstxX','readonly','set','tooltip','content','render','fire','uiId','disableAnimationOnEnter','classList','execute','itemType','extendTemplate','element','lastIndexOf','428648nItflJ','label','1486839fNzzIN','_createTemplateAttributes','1952775NsZeHd','isVisible','div','ck-ai-chat-context-chip_document','setTemplate','addEventListener','length'];_0xdf39=function(){return _0x88dd0b;};return _0xdf39();}import{IconClose as _0x50e94c,IconDocument as _0x4afcfb,IconFileUpload as _0xacf592,IconLink as _0x2d9dac,IconSelection as _0x1b04da}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x260549}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x3c534e}from'../../../aicore/ui/aispinner.js';const xn={'file':_0xacf592,'document':_0x4afcfb,'web-resource':_0x2d9dac,'text':_0xacf592,'selection':_0x1b04da},bn=_0x5a18cc(0x1bd),wn=_0x5a18cc(0x1c4),Tn=_0x5a18cc(0x1b6),En=_0x5a18cc(0x1da),fn=_0x5a18cc(0x1cf),An=_0x5a18cc(0x1d7),Cn='n';export class AIChatContextItemButtonView extends _0x410927{constructor(_0x1a3e25,_0x4a9c7f,_0x755c2b,_0x1c1943,_0x35c5c0=!0x1){const _0x25107e=_0x5a18cc;super(_0x1a3e25),this[_0x25107e(0x1d5)]=_0x1c1943,this[_0x25107e(0x1d3)](_0x4a9c7f,_0x755c2b,_0x35c5c0),this[_0x25107e(0x1c3)]();}[_0x5a18cc(0x1e6)](){const _0x4c0ce6=_0x5a18cc;super[_0x4c0ce6(0x1e6)](),this[_0x4c0ce6(0x1d5)]&&this[_0x4c0ce6(0x1ee)]&&(this[_0x4c0ce6(0x1ee)][_0x4c0ce6(0x1ea)][_0x4c0ce6(0x1d6)](_0x4c0ce6(0x1dd)),this[_0x4c0ce6(0x1ba)](this[_0x4c0ce6(0x1ee)],()=>{const _0x478079=_0x4c0ce6;this[_0x478079(0x1ee)]&&this[_0x478079(0x1ee)][_0x478079(0x1ea)][_0x478079(0x1db)](_0x478079(0x1dd));}));}[_0x5a18cc(0x1e9)](){const _0x44f3f3=_0x5a18cc;this[_0x44f3f3(0x1d5)]=!0x1,this[_0x44f3f3(0x1ee)]&&this[_0x44f3f3(0x1ee)][_0x44f3f3(0x1ea)][_0x44f3f3(0x1db)](_0x44f3f3(0x1dd));}[_0x5a18cc(0x1d3)](_0x5de6ea,_0xd10fcc,_0x29acc1){const _0x30abd0=_0x5a18cc;this[_0x30abd0(0x1e3)](_0x30abd0(0x1b0),_0x5de6ea[_0x30abd0(0x1b0)]),this[_0x30abd0(0x1e3)](_0x30abd0(0x1e4),!0x0),this[_0x30abd0(0x1e3)](_0x30abd0(0x1ec),_0x5de6ea[_0x30abd0(0x1e0)]),this[_0x30abd0(0x1e3)]('id',_0x5de6ea[_0x30abd0(0x1e8)]),this[_0x30abd0(0x1e3)](_0x30abd0(0x1e2),_0xd10fcc),this[_0x30abd0(0x1e3)](_0x30abd0(0x1bc),_0x29acc1);}[_0x5a18cc(0x1c3)](){const _0x3dfb5c=_0x5a18cc,_0x118bca=this[_0x3dfb5c(0x1c6)](),_0x2a6fbd=this[_0x3dfb5c(0x1c7)](),_0x3addbb=this[_0x3dfb5c(0x1c1)];this[_0x3dfb5c(0x1b7)]({'tag':_0x3dfb5c(0x1b5),'attributes':this[_0x3dfb5c(0x1b2)](_0x3addbb),'children':this[_0x3dfb5c(0x1bf)](_0x118bca,_0x2a6fbd,_0x3addbb)});}[_0x5a18cc(0x1b2)](_0x4602fc){const _0xf0302a=_0x5a18cc;return{'class':[bn,_0x4602fc['if'](_0xf0302a(0x1ec),Tn,_0x3e9e1b=>_0xf0302a(0x1cd)==_0x3e9e1b),_0x4602fc['if'](_0xf0302a(0x1ec),wn,_0x426343=>_0xf0302a(0x1d9)==_0x426343)],'data-cke-tooltip-text':_0x4602fc['to'](_0xf0302a(0x1b0),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x5a18cc(0x1bf)](_0x32a6bd,_0x5d4ac9,_0x51d699){const _0x14dbb8=_0x5a18cc,_0x31a668=this[_0x14dbb8(0x1c9)](_0x51d699),_0xcf2ff3=this[_0x14dbb8(0x1bb)]();return this[_0x14dbb8(0x1e2)]?[_0x32a6bd,_0x31a668]:[_0x32a6bd,_0xcf2ff3,_0x31a668,_0x5d4ac9];}[_0x5a18cc(0x1c9)](_0x48638a){const _0x48c53d=_0x5a18cc;return{'tag':_0x48c53d(0x1c0),'attributes':{'class':En},'children':[{'text':_0x48638a['to'](_0x48c53d(0x1b0))}]};}[_0x5a18cc(0x1c7)](){const _0x3b9ce1=_0x5a18cc,_0x4d014e=new _0x410927(this[_0x3b9ce1(0x1ce)]);return _0x4d014e[_0x3b9ce1(0x1e3)]({'label':_0x260549(this[_0x3b9ce1(0x1ce)],_0x3b9ce1(0x1d0)),'icon':_0x50e94c}),this[_0x3b9ce1(0x1d8)](_0x4d014e),_0x4d014e;}[_0x5a18cc(0x1d8)](_0x15ef7f){const _0x3453b3=_0x5a18cc;_0x15ef7f['on'](_0x3453b3(0x1eb),()=>{const _0x1a1467=_0x3453b3;this[_0x1a1467(0x1e7)](_0x1a1467(0x1cb),this['id']);});}[_0x5a18cc(0x1c6)](){const _0x249a72=_0x5a18cc,_0x104328=this[_0x249a72(0x1c1)],_0x29a741=new _0x5a2567();return _0x29a741[_0x249a72(0x1e5)]=xn[this[_0x249a72(0x1ec)]],_0x29a741[_0x249a72(0x1ed)]({'attributes':{'class':[fn,_0x104328['if'](_0x249a72(0x1bc),_0x249a72(0x1d2),_0x15cd9e=>_0x15cd9e)]}}),_0x29a741;}[_0x5a18cc(0x1ba)](_0x8cac8d,_0x10ea9c){const _0x5f4f73=_0x5a18cc;if(!_0x8cac8d)return;const _0x1e2b3f=()=>{const _0x1e9f29=_0x1641;_0x10ea9c(),_0x8cac8d[_0x1e9f29(0x1c8)](_0x1e9f29(0x1c2),_0x1e2b3f),_0x8cac8d[_0x1e9f29(0x1c8)](_0x1e9f29(0x1cc),_0x1e2b3f);};_0x8cac8d[_0x5f4f73(0x1b8)](_0x5f4f73(0x1c2),_0x1e2b3f),_0x8cac8d[_0x5f4f73(0x1b8)](_0x5f4f73(0x1cc),_0x1e2b3f);}[_0x5a18cc(0x1bb)](){const _0x3c697b=_0x5a18cc,_0x58f2df=new _0x3c534e(_0x3c697b(0x1d1));return _0x58f2df[_0x3c697b(0x1c5)](_0x3c697b(0x1b4))['to'](this,_0x3c697b(0x1bc),_0x1823ec=>_0x1823ec),_0x58f2df;}}function In(_0x1151f1){const _0x51de44=_0x5a18cc;if(!_0x1151f1)return _0x1151f1;if(_0x1151f1[_0x51de44(0x1b9)]<=0x78)return _0x1151f1;const _0x13b662=_0x1151f1[_0x51de44(0x1de)](0x0,0x78),_0x47df4e=_0x13b662[_0x51de44(0x1ef)]('\x20');return(_0x47df4e>0x0?_0x13b662[_0x51de44(0x1de)](0x0,_0x47df4e):_0x13b662)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1fea(){const _0x23b7a4=['focusCycler','forEach','5419225oZvEjz','submit','focusTracker','shift+tab','AI_CHAT_CONTEXT_URL_LABEL','backButton','destroy','AI_CHAT_CONTEXT_URL_ADD_URL','trim','children','render','_focusables','_setupKeystrokes','execute','length','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','ck-ai-chat-context-controls__url-form','div','957938fMAKwO','_handleSubmit','value','urlInputField','_setupTemplate','1123420tYEqDL','ck-ai-chat-context-controls__url-input-section','AI_CHAT_CONTEXT_URL_INVALID_ERROR','4377aPoFtZ','add','refreshBalloon','form','esc','_createUrlInputField','ck-labeled-field-view_empty','fire','stop','submitUrl','fieldView','input','_updateConfirmButtonState','ck-button-icon\x20ck-button-back','setTemplate','createCollection','isEnabled','_createBackButton','errorText','8TMGSZC','1084308WcMLmb','getValue','set','setError','3628XuTusX','listenTo','confirmButton','focus','locale','cancel','clearError','_isValidUrl','ck-button-icon','_createConfirmButton','keystrokes','tab','24563709IyapHt','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_setupEventHandlers','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','element','5768540KBMnMr','clear'];_0x1fea=function(){return _0x23b7a4;};return _0x1fea();}const _0x2b220a=_0x4b34;function _0x4b34(_0x3b9f65,_0x5df554){const _0x1fea08=_0x1fea();return _0x4b34=function(_0x4b347a,_0x18dc85){_0x4b347a=_0x4b347a-0xbd;let _0xc14f25=_0x1fea08[_0x4b347a];return _0xc14f25;},_0x4b34(_0x3b9f65,_0x5df554);}(function(_0x1f5af7,_0x3411dc){const _0x323267=_0x4b34,_0x32ce98=_0x1f5af7();while(!![]){try{const _0x27e5f2=-parseInt(_0x323267(0xcf))/0x1+-parseInt(_0x323267(0xd4))/0x2+parseInt(_0x323267(0xd7))/0x3*(parseInt(_0x323267(0xef))/0x4)+-parseInt(_0x323267(0x100))/0x5+parseInt(_0x323267(0xeb))/0x6+-parseInt(_0x323267(0x104))/0x7+parseInt(_0x323267(0xea))/0x8*(parseInt(_0x323267(0xfb))/0x9);if(_0x27e5f2===_0x3411dc)break;else _0x32ce98['push'](_0x32ce98['shift']());}catch(_0x5646d8){_0x32ce98['push'](_0x32ce98['shift']());}}}(_0x1fea,0xbfd89));import{FocusTracker as _0x2ee9d9,KeystrokeHandler as _0x4e2af9}from'ckeditor5/src/utils.js';import{ButtonView as _0x1b586c,FocusCycler as _0x351c20,LabeledFieldView as _0x97023e,View as _0x37695e,FormHeaderView as _0x24491b,createLabeledInputText as _0x48a1c9,submitHandler as _0x5af816}from'ckeditor5/src/ui.js';import{IconCheck as _0x2a4ec4,IconPreviousArrow as _0x290678}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2c84f5}from'../../../aicore/utils/common-translations.js';const ch=_0x2b220a(0xcd),nh=_0x2b220a(0xd5);export class AIChatContextPanelUrlInputView extends _0x37695e{[_0x2b220a(0xbe)];[_0x2b220a(0xf9)];[_0x2b220a(0xc7)];[_0x2b220a(0x102)];[_0x2b220a(0xd2)];[_0x2b220a(0xc1)];[_0x2b220a(0xf1)];constructor(_0xca7302){const _0x6885a0=_0x2b220a;super(_0xca7302),this[_0x6885a0(0xbe)]=new _0x2ee9d9(),this[_0x6885a0(0xf9)]=new _0x4e2af9(),this[_0x6885a0(0xc1)]=this[_0x6885a0(0xe8)](),this[_0x6885a0(0xd2)]=this[_0x6885a0(0xdc)](),this[_0x6885a0(0xf1)]=this[_0x6885a0(0xf8)](),this[_0x6885a0(0xc7)]=this[_0x6885a0(0xe6)]([this[_0x6885a0(0xc1)],this[_0x6885a0(0xd2)],this[_0x6885a0(0xf1)]]),this[_0x6885a0(0x102)]=new _0x351c20({'focusables':this[_0x6885a0(0xc7)],'focusTracker':this[_0x6885a0(0xbe)],'keystrokeHandler':this[_0x6885a0(0xf9)],'actions':{'focusPrevious':_0x6885a0(0xbf),'focusNext':_0x6885a0(0xfa)}}),this[_0x6885a0(0xd3)](),this[_0x6885a0(0xfd)](),this[_0x6885a0(0xc8)]();}[_0x2b220a(0xc6)](){const _0x3b3e83=_0x2b220a;super[_0x3b3e83(0xc6)](),this[_0x3b3e83(0xc7)][_0x3b3e83(0x103)](_0x1be6e3=>{const _0x2eaf45=_0x3b3e83;this[_0x2eaf45(0xbe)][_0x2eaf45(0xd8)](_0x1be6e3[_0x2eaf45(0xff)]),this[_0x2eaf45(0xf9)][_0x2eaf45(0xf0)](_0x1be6e3[_0x2eaf45(0xff)]);}),_0x5af816({'view':this}),this[_0x3b3e83(0xf2)]();}[_0x2b220a(0xc2)](){const _0x239378=_0x2b220a;super[_0x239378(0xc2)](),this[_0x239378(0xbe)][_0x239378(0xc2)](),this[_0x239378(0xf9)][_0x239378(0xc2)]();}[_0x2b220a(0xf2)](){const _0x592629=_0x2b220a;this[_0x592629(0xd2)][_0x592629(0xf2)]();}[_0x2b220a(0xec)](){const _0x209552=_0x2b220a;return this[_0x209552(0xd2)][_0x209552(0xe1)][_0x209552(0xff)]?.[_0x209552(0xd1)]?.[_0x209552(0xc4)]()||'';}[_0x2b220a(0x101)](){const _0x57802d=_0x2b220a;this[_0x57802d(0xd2)][_0x57802d(0xe1)][_0x57802d(0xff)][_0x57802d(0xd1)]='',this[_0x57802d(0xd2)][_0x57802d(0xe9)]=null,this[_0x57802d(0xf1)][_0x57802d(0xe7)]=!0x1;}[_0x2b220a(0xee)](_0x3b296c){const _0x31fdc7=_0x2b220a;this[_0x31fdc7(0xd2)][_0x31fdc7(0xe9)]=_0x3b296c,this[_0x31fdc7(0xe3)](),this[_0x31fdc7(0xde)](_0x31fdc7(0xd9));}[_0x2b220a(0xf5)](){const _0x24564b=_0x2b220a;this[_0x24564b(0xd2)][_0x24564b(0xe9)]=null,this[_0x24564b(0xe3)]();}[_0x2b220a(0xe8)](){const _0x13a4d7=_0x2b220a,_0x84d94c=new _0x1b586c(this[_0x13a4d7(0xf3)]);return _0x84d94c[_0x13a4d7(0xed)]({'icon':_0x290678,'tooltip':_0x2c84f5(this[_0x13a4d7(0xf3)],_0x13a4d7(0xcb)),'tooltipPosition':'n','class':_0x13a4d7(0xe4)}),_0x84d94c;}[_0x2b220a(0xdc)](){const _0x566655=_0x2b220a,_0x23b381=new _0x97023e(this[_0x566655(0xf3)],_0x48a1c9);return _0x23b381[_0x566655(0xed)]({'label':_0x2c84f5(this[_0x566655(0xf3)],_0x566655(0xc0)),'class':_0x566655(0xdd)}),_0x23b381[_0x566655(0xe1)][_0x566655(0xed)]({'placeholder':_0x2c84f5(this[_0x566655(0xf3)],_0x566655(0xfc))}),_0x23b381;}[_0x2b220a(0xf8)](){const _0x2c4257=_0x2b220a,_0x3b84d8=new _0x1b586c(this[_0x2c4257(0xf3)]);return _0x3b84d8[_0x2c4257(0xed)]({'icon':_0x2a4ec4,'tooltip':_0x2c84f5(this[_0x2c4257(0xf3)],_0x2c4257(0xc3)),'tooltipPosition':'n','class':_0x2c4257(0xf7),'type':_0x2c4257(0xbd),'isEnabled':!0x1}),_0x3b84d8;}[_0x2b220a(0xd3)](){const _0x2bd08a=_0x2b220a,_0x2e67de=new _0x24491b(this[_0x2bd08a(0xf3)],{'label':_0x2c84f5(this[_0x2bd08a(0xf3)],_0x2bd08a(0xc3)),'class':_0x2bd08a(0xcc)});_0x2e67de[_0x2bd08a(0xc5)][_0x2bd08a(0xd8)](this[_0x2bd08a(0xc1)],0x0),this[_0x2bd08a(0xe5)]({'tag':_0x2bd08a(0xda),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x2e67de,{'tag':_0x2bd08a(0xce),'attributes':{'class':nh},'children':[this[_0x2bd08a(0xd2)],this[_0x2bd08a(0xf1)]]}]});}[_0x2b220a(0xfd)](){const _0x429b03=_0x2b220a;this[_0x429b03(0xc1)]['on'](_0x429b03(0xc9),()=>{const _0x222987=_0x429b03;this[_0x222987(0x101)](),this[_0x222987(0xde)](_0x222987(0xf4));}),this[_0x429b03(0xd2)][_0x429b03(0xe1)]['on'](_0x429b03(0xe2),()=>{const _0x365672=_0x429b03;this[_0x365672(0xf5)](),this[_0x365672(0xe3)](),this[_0x365672(0xde)](_0x365672(0xd9));}),this['on'](_0x429b03(0xbd),_0x347118=>{const _0x5ef999=_0x429b03;_0x347118[_0x5ef999(0xdf)](),this[_0x5ef999(0xd0)]();});}[_0x2b220a(0xc8)](){const _0x3ebb73=_0x2b220a;this[_0x3ebb73(0xf9)][_0x3ebb73(0xed)](_0x3ebb73(0xdb),(_0x3d198b,_0x1941a6)=>{const _0x1acb3a=_0x3ebb73;this[_0x1acb3a(0x101)](),this[_0x1acb3a(0xde)](_0x1acb3a(0xf4)),_0x1941a6();});}[_0x2b220a(0xd0)](){const _0x48439a=_0x2b220a,_0x4fbbff=this[_0x48439a(0xec)]()[_0x48439a(0xc4)]();_0x4fbbff?this[_0x48439a(0xf6)](_0x4fbbff)?(this[_0x48439a(0xf5)](),this[_0x48439a(0xde)](_0x48439a(0xe0),_0x4fbbff)):this[_0x48439a(0xee)](_0x2c84f5(this[_0x48439a(0xf3)],_0x48439a(0xd6))):this[_0x48439a(0xee)](_0x2c84f5(this[_0x48439a(0xf3)],_0x48439a(0xfe)));}[_0x2b220a(0xe3)](){const _0x274a1b=_0x2b220a,_0x39e494=this[_0x274a1b(0xec)]()[_0x274a1b(0xc4)](),_0x3ccc37=!!this[_0x274a1b(0xd2)][_0x274a1b(0xe9)];this[_0x274a1b(0xf1)][_0x274a1b(0xe7)]=_0x39e494[_0x274a1b(0xca)]>0x0&&!_0x3ccc37;}[_0x2b220a(0xf6)](_0x493615){try{return!!new URL(_0x493615);}catch{return!0x1;}}}
23
+ function _0x42e4(_0x19142f,_0x4c0efd){const _0x3457ad=_0x3457();return _0x42e4=function(_0x42e49c,_0x36d4a8){_0x42e49c=_0x42e49c-0x6f;let _0x1ed170=_0x3457ad[_0x42e49c];return _0x1ed170;},_0x42e4(_0x19142f,_0x4c0efd);}const _0x39b20f=_0x42e4;(function(_0x1c3da4,_0x591fea){const _0x78a18b=_0x42e4,_0x1d3bb1=_0x1c3da4();while(!![]){try{const _0x38e89f=-parseInt(_0x78a18b(0xa6))/0x1*(-parseInt(_0x78a18b(0xb1))/0x2)+-parseInt(_0x78a18b(0xaa))/0x3*(-parseInt(_0x78a18b(0x8c))/0x4)+-parseInt(_0x78a18b(0xab))/0x5*(parseInt(_0x78a18b(0x9e))/0x6)+parseInt(_0x78a18b(0xb8))/0x7*(-parseInt(_0x78a18b(0x84))/0x8)+parseInt(_0x78a18b(0x7b))/0x9+-parseInt(_0x78a18b(0xb2))/0xa*(parseInt(_0x78a18b(0x9f))/0xb)+parseInt(_0x78a18b(0xae))/0xc;if(_0x38e89f===_0x591fea)break;else _0x1d3bb1['push'](_0x1d3bb1['shift']());}catch(_0x36d80e){_0x1d3bb1['push'](_0x1d3bb1['shift']());}}}(_0x3457,0x84ddb));import{FocusTracker as _0x242d81,KeystrokeHandler as _0x5e7a72}from'ckeditor5/src/utils.js';import{ButtonView as _0x48ef76,FocusCycler as _0x36ba4e,LabeledFieldView as _0x3ecdd4,View as _0xc06003,FormHeaderView as _0x15e9f8,createLabeledInputText as _0x2d7176,submitHandler as _0x54fb38}from'ckeditor5/src/ui.js';import{IconCheck as _0x2e4de9,IconPreviousArrow as _0x3e338d}from'@ckeditor/ckeditor5-icons';function _0x3457(){const _0x44c57a=['ck-button-icon\x20ck-button-back','value','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','21zDVYFe','20krIugS','element','locale','8876124zUYVsW','_handleSubmit','getValue','118454mdfhwM','58940WsqRJl','_updateConfirmButtonState','fire','ck-ai-chat-context-controls__url-input-section','AI_CHAT_CONTEXT_URL_INVALID_ERROR','input','343yFzFLO','add','createCollection','_createConfirmButton','_createUrlInputField','trim','children','setTemplate','_isValidUrl','clearError','set','_createBackButton','stop','esc','1934802QnJNMx','setError','ck-button-icon','focusCycler','_setupKeystrokes','_setupTemplate','ck-ai-chat-context-controls__url-form','focusTracker','execute','14408TplYiY','destroy','errorText','shift+tab','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','form','submit','length','148232SuYoSx','submitUrl','_focusables','fieldView','_setupEventHandlers','urlInputField','focus','tab','isEnabled','confirmButton','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','clear','ck-labeled-field-view_empty','render','refreshBalloon','listenTo','cancel','div','430770ydUPAr','660RVpeWa','AI_CHAT_CONTEXT_URL_ADD_URL','forEach','backButton','keystrokes','AI_CHAT_CONTEXT_URL_LABEL','AI_CHAT_CONTEXT_URL_PLACEHOLDER','1JHmrko'];_0x3457=function(){return _0x44c57a;};return _0x3457();}import{getTranslation as _0x1cb960}from'../../../aicore/utils/common-translations.js';const ch=_0x39b20f(0x81),nh=_0x39b20f(0xb5);export class AIChatContextPanelUrlInputView extends _0xc06003{[_0x39b20f(0x82)];[_0x39b20f(0xa3)];[_0x39b20f(0x8e)];[_0x39b20f(0x7e)];[_0x39b20f(0x91)];[_0x39b20f(0xa2)];[_0x39b20f(0x95)];constructor(_0x4b4a40){const _0x166f58=_0x39b20f;super(_0x4b4a40),this[_0x166f58(0x82)]=new _0x242d81(),this[_0x166f58(0xa3)]=new _0x5e7a72(),this[_0x166f58(0xa2)]=this[_0x166f58(0x78)](),this[_0x166f58(0x91)]=this[_0x166f58(0x71)](),this[_0x166f58(0x95)]=this[_0x166f58(0x70)](),this[_0x166f58(0x8e)]=this[_0x166f58(0x6f)]([this[_0x166f58(0xa2)],this[_0x166f58(0x91)],this[_0x166f58(0x95)]]),this[_0x166f58(0x7e)]=new _0x36ba4e({'focusables':this[_0x166f58(0x8e)],'focusTracker':this[_0x166f58(0x82)],'keystrokeHandler':this[_0x166f58(0xa3)],'actions':{'focusPrevious':_0x166f58(0x87),'focusNext':_0x166f58(0x93)}}),this[_0x166f58(0x80)](),this[_0x166f58(0x90)](),this[_0x166f58(0x7f)]();}[_0x39b20f(0x99)](){const _0x16a369=_0x39b20f;super[_0x16a369(0x99)](),this[_0x16a369(0x8e)][_0x16a369(0xa1)](_0x241459=>{const _0x561c94=_0x16a369;this[_0x561c94(0x82)][_0x561c94(0xb9)](_0x241459[_0x561c94(0xac)]),this[_0x561c94(0xa3)][_0x561c94(0x9b)](_0x241459[_0x561c94(0xac)]);}),_0x54fb38({'view':this}),this[_0x16a369(0x92)]();}[_0x39b20f(0x85)](){const _0x4f0290=_0x39b20f;super[_0x4f0290(0x85)](),this[_0x4f0290(0x82)][_0x4f0290(0x85)](),this[_0x4f0290(0xa3)][_0x4f0290(0x85)]();}[_0x39b20f(0x92)](){const _0x453ad6=_0x39b20f;this[_0x453ad6(0x91)][_0x453ad6(0x92)]();}[_0x39b20f(0xb0)](){const _0x4944a2=_0x39b20f;return this[_0x4944a2(0x91)][_0x4944a2(0x8f)][_0x4944a2(0xac)]?.[_0x4944a2(0xa8)]?.[_0x4944a2(0x72)]()||'';}[_0x39b20f(0x97)](){const _0x2f3ebd=_0x39b20f;this[_0x2f3ebd(0x91)][_0x2f3ebd(0x8f)][_0x2f3ebd(0xac)][_0x2f3ebd(0xa8)]='',this[_0x2f3ebd(0x91)][_0x2f3ebd(0x86)]=null,this[_0x2f3ebd(0x95)][_0x2f3ebd(0x94)]=!0x1;}[_0x39b20f(0x7c)](_0x36904c){const _0x1439fe=_0x39b20f;this[_0x1439fe(0x91)][_0x1439fe(0x86)]=_0x36904c,this[_0x1439fe(0xb3)](),this[_0x1439fe(0xb4)](_0x1439fe(0x9a));}[_0x39b20f(0x76)](){const _0x557dd1=_0x39b20f;this[_0x557dd1(0x91)][_0x557dd1(0x86)]=null,this[_0x557dd1(0xb3)]();}[_0x39b20f(0x78)](){const _0x4ec8a7=_0x39b20f,_0x2d48c3=new _0x48ef76(this[_0x4ec8a7(0xad)]);return _0x2d48c3[_0x4ec8a7(0x77)]({'icon':_0x3e338d,'tooltip':_0x1cb960(this[_0x4ec8a7(0xad)],_0x4ec8a7(0x88)),'tooltipPosition':'n','class':_0x4ec8a7(0xa7)}),_0x2d48c3;}[_0x39b20f(0x71)](){const _0x4dc8e4=_0x39b20f,_0x6adc15=new _0x3ecdd4(this[_0x4dc8e4(0xad)],_0x2d7176);return _0x6adc15[_0x4dc8e4(0x77)]({'label':_0x1cb960(this[_0x4dc8e4(0xad)],_0x4dc8e4(0xa4)),'class':_0x4dc8e4(0x98)}),_0x6adc15[_0x4dc8e4(0x8f)][_0x4dc8e4(0x77)]({'placeholder':_0x1cb960(this[_0x4dc8e4(0xad)],_0x4dc8e4(0xa5))}),_0x6adc15;}[_0x39b20f(0x70)](){const _0x505377=_0x39b20f,_0x25f6ff=new _0x48ef76(this[_0x505377(0xad)]);return _0x25f6ff[_0x505377(0x77)]({'icon':_0x2e4de9,'tooltip':_0x1cb960(this[_0x505377(0xad)],_0x505377(0xa0)),'tooltipPosition':'n','class':_0x505377(0x7d),'type':_0x505377(0x8a),'isEnabled':!0x1}),_0x25f6ff;}[_0x39b20f(0x80)](){const _0x44925a=_0x39b20f,_0x17bb02=new _0x15e9f8(this[_0x44925a(0xad)],{'label':_0x1cb960(this[_0x44925a(0xad)],_0x44925a(0xa0)),'class':_0x44925a(0x96)});_0x17bb02[_0x44925a(0x73)][_0x44925a(0xb9)](this[_0x44925a(0xa2)],0x0),this[_0x44925a(0x74)]({'tag':_0x44925a(0x89),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x17bb02,{'tag':_0x44925a(0x9d),'attributes':{'class':nh},'children':[this[_0x44925a(0x91)],this[_0x44925a(0x95)]]}]});}[_0x39b20f(0x90)](){const _0x3a1ea5=_0x39b20f;this[_0x3a1ea5(0xa2)]['on'](_0x3a1ea5(0x83),()=>{const _0x2e2bd8=_0x3a1ea5;this[_0x2e2bd8(0x97)](),this[_0x2e2bd8(0xb4)](_0x2e2bd8(0x9c));}),this[_0x3a1ea5(0x91)][_0x3a1ea5(0x8f)]['on'](_0x3a1ea5(0xb7),()=>{const _0x350c4d=_0x3a1ea5;this[_0x350c4d(0x76)](),this[_0x350c4d(0xb3)](),this[_0x350c4d(0xb4)](_0x350c4d(0x9a));}),this['on'](_0x3a1ea5(0x8a),_0x153384=>{const _0x286fac=_0x3a1ea5;_0x153384[_0x286fac(0x79)](),this[_0x286fac(0xaf)]();});}[_0x39b20f(0x7f)](){const _0x494edf=_0x39b20f;this[_0x494edf(0xa3)][_0x494edf(0x77)](_0x494edf(0x7a),(_0x458a07,_0x44d2ca)=>{const _0x594600=_0x494edf;this[_0x594600(0x97)](),this[_0x594600(0xb4)](_0x594600(0x9c)),_0x44d2ca();});}[_0x39b20f(0xaf)](){const _0x34d364=_0x39b20f,_0x2ce9e5=this[_0x34d364(0xb0)]()[_0x34d364(0x72)]();_0x2ce9e5?this[_0x34d364(0x75)](_0x2ce9e5)?(this[_0x34d364(0x76)](),this[_0x34d364(0xb4)](_0x34d364(0x8d),_0x2ce9e5)):this[_0x34d364(0x7c)](_0x1cb960(this[_0x34d364(0xad)],_0x34d364(0xb6))):this[_0x34d364(0x7c)](_0x1cb960(this[_0x34d364(0xad)],_0x34d364(0xa9)));}[_0x39b20f(0xb3)](){const _0x3016e2=_0x39b20f,_0x1ea63c=this[_0x3016e2(0xb0)]()[_0x3016e2(0x72)](),_0x49374f=!!this[_0x3016e2(0x91)][_0x3016e2(0x86)];this[_0x3016e2(0x95)][_0x3016e2(0x94)]=_0x1ea63c[_0x3016e2(0x8b)]>0x0&&!_0x49374f;}[_0x39b20f(0x75)](_0x5668e6){try{return!!new URL(_0x5668e6);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x273e72=_0x705e;(function(_0x5154c9,_0x563a25){const _0xe2f8d5=_0x705e,_0x403886=_0x5154c9();while(!![]){try{const _0x319884=parseInt(_0xe2f8d5(0x215))/0x1*(-parseInt(_0xe2f8d5(0x1ec))/0x2)+parseInt(_0xe2f8d5(0x1c1))/0x3*(parseInt(_0xe2f8d5(0x1f2))/0x4)+parseInt(_0xe2f8d5(0x21d))/0x5+parseInt(_0xe2f8d5(0x1eb))/0x6+-parseInt(_0xe2f8d5(0x20c))/0x7*(-parseInt(_0xe2f8d5(0x1fd))/0x8)+parseInt(_0xe2f8d5(0x245))/0x9*(parseInt(_0xe2f8d5(0x24a))/0xa)+-parseInt(_0xe2f8d5(0x237))/0xb;if(_0x319884===_0x563a25)break;else _0x403886['push'](_0x403886['shift']());}catch(_0x153126){_0x403886['push'](_0x403886['shift']());}}}(_0x2700,0x3edc8));import{BalloonPanelView as _0x4fc202,ButtonView as _0x4b488f,clickOutsideHandler as _0x12d48e,FileDialogButtonView as _0x3a039d,IconView as _0x5a5be4,View as _0x4214d1}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x17cbad,IconDocument as _0x410603,IconDocumentOutline as _0x23da9c,IconDropdownArrow as _0x5dc599,IconLink as _0x31fc6e,IconPaperClip as _0x5cd4dd}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2ebcfd}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x2b68ab}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x4e50bf}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x25d026}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x166059}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x273e72(0x1db),_0x273e72(0x241),_0x273e72(0x1fa),_0x273e72(0x1ea),_0x273e72(0x1d6),_0x273e72(0x234)];const ko=_0x273e72(0x1f3),Eo=_0x273e72(0x205),vo=_0x273e72(0x22b),Vo=_0x273e72(0x1c3),Io=_0x273e72(0x1f4),Po=_0x273e72(0x219),Ro=_0x273e72(0x240),Uo=_0x273e72(0x1f5),Lo=_0x273e72(0x208),No=_0x273e72(0x209),Oo=_0x273e72(0x23f),Mo=_0x273e72(0x1d8),Ho=[_0x4fc202[_0x273e72(0x218)][_0x273e72(0x22d)],_0x4fc202[_0x273e72(0x218)][_0x273e72(0x249)],_0x4fc202[_0x273e72(0x218)][_0x273e72(0x1cd)],_0x4fc202[_0x273e72(0x218)][_0x273e72(0x23b)],_0x4fc202[_0x273e72(0x218)][_0x273e72(0x1ca)],_0x4fc202[_0x273e72(0x218)][_0x273e72(0x1c8)]];function _0x705e(_0x67bcee,_0x3822a1){const _0x2700aa=_0x2700();return _0x705e=function(_0x705ed1,_0x26226f){_0x705ed1=_0x705ed1-0x1ba;let _0x231ae5=_0x2700aa[_0x705ed1];return _0x231ae5;},_0x705e(_0x67bcee,_0x3822a1);}export class AIChatContextPanelView extends _0x4214d1{[_0x273e72(0x1d1)];[_0x273e72(0x1bf)]=this[_0x273e72(0x243)]();[_0x273e72(0x1ff)]=this[_0x273e72(0x243)]();[_0x273e72(0x235)];[_0x273e72(0x210)];[_0x273e72(0x1e6)];[_0x273e72(0x202)];[_0x273e72(0x206)];[_0x273e72(0x20b)];[_0x273e72(0x22a)];constructor(_0x70d5a,_0x5f0707){const _0x261fa7=_0x273e72;super(_0x70d5a),this[_0x261fa7(0x22a)]=_0x5f0707[_0x261fa7(0x22a)],this[_0x261fa7(0x1bf)]=this[_0x261fa7(0x243)](),this[_0x261fa7(0x1ff)]=this[_0x261fa7(0x243)](),this[_0x261fa7(0x1d1)]=this[_0x261fa7(0x1bc)](_0x70d5a),this[_0x261fa7(0x210)]=this[_0x261fa7(0x1e5)](_0x70d5a),this[_0x261fa7(0x1e6)]=this[_0x261fa7(0x23e)](_0x70d5a),this[_0x261fa7(0x206)]=this[_0x261fa7(0x1d3)](_0x70d5a,_0x5f0707);const _0x3f9c13={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x261fa7(0x235)]=new _0x4e50bf(_0x70d5a,this[_0x261fa7(0x1bf)],_0x3f9c13,this[_0x261fa7(0x22a)],this),this[_0x261fa7(0x20b)]={'buttonView':this[_0x261fa7(0x1d1)],'balloonView':this[_0x261fa7(0x210)],'hideMethod':this[_0x261fa7(0x1c9)][_0x261fa7(0x1d5)](this),'showMethod':this[_0x261fa7(0x1e1)][_0x261fa7(0x1d5)](this)},this[_0x261fa7(0x1f9)](),this[_0x261fa7(0x216)]();}[_0x273e72(0x1c0)](){const _0x112dd3=_0x273e72;super[_0x112dd3(0x1c0)](),this[_0x112dd3(0x225)](),this[_0x112dd3(0x235)][_0x112dd3(0x230)](this[_0x112dd3(0x1ef)]),this[_0x112dd3(0x235)][_0x112dd3(0x1f0)]();}[_0x273e72(0x222)](){const _0x59181c=_0x273e72;super[_0x59181c(0x222)](),this[_0x59181c(0x235)][_0x59181c(0x222)](),this[_0x59181c(0x206)][_0x59181c(0x222)]();}[_0x273e72(0x200)](_0xd2fac,_0x176471){const _0xaf8592=_0x273e72,_0x447450=this[_0xaf8592(0x232)](_0xd2fac,_0xaf8592(0x1e0),!0x0,_0x176471);this[_0xaf8592(0x22e)](_0x447450,this[_0xaf8592(0x1bf)]),this[_0xaf8592(0x235)][_0xaf8592(0x1f0)]();}[_0x273e72(0x1d6)](_0x2ce57b){const _0x3a2a7d=_0x273e72;this[_0x3a2a7d(0x211)](_0x2ce57b,this[_0x3a2a7d(0x1bf)]),this[_0x3a2a7d(0x211)](_0x2ce57b,this[_0x3a2a7d(0x235)][_0x3a2a7d(0x1e2)]),this[_0x3a2a7d(0x235)][_0x3a2a7d(0x1f0)]();}[_0x273e72(0x246)](_0x384832,_0x4e426b){const _0x3472b7=_0x273e72;let _0x249688=this[_0x3472b7(0x1bf)][_0x3472b7(0x214)](_0x4efc49=>_0x4efc49['id']===_0x384832);_0x249688||(_0x249688=this[_0x3472b7(0x235)][_0x3472b7(0x1e2)][_0x3472b7(0x214)](_0x4b72e7=>_0x4b72e7['id']===_0x384832)),_0x249688&&(_0x249688[_0x3472b7(0x1da)]=_0x4e426b);}[_0x273e72(0x1be)](_0x4343c0){const _0x4e36bd=_0x273e72;this[_0x4e36bd(0x1ff)][_0x4e36bd(0x1f7)]();for(const _0xb826f of _0x4343c0){const _0x389e4f=this[_0x4e36bd(0x232)](_0xb826f,_0x4e36bd(0x221),!0x1,!0x1);this[_0x4e36bd(0x22e)](_0x389e4f,this[_0x4e36bd(0x1ff)]);}}[_0x273e72(0x228)](){const _0x192152=_0x273e72;this[_0x192152(0x1bf)][_0x192152(0x1f7)](),this[_0x192152(0x235)][_0x192152(0x1f7)]();}[_0x273e72(0x1ba)](){const _0x5a5ab8=_0x273e72;this[_0x5a5ab8(0x1ff)][_0x5a5ab8(0x1f7)]();}[_0x273e72(0x1e9)](_0x43d58d,_0x1e1e03,_0x53b124){const _0x126c20=_0x273e72;this[_0x126c20(0x206)][_0x126c20(0x1e9)](_0x43d58d,_0x1e1e03,_0x53b124);}[_0x273e72(0x1c9)](){const _0x1b82ce=_0x273e72;this[_0x1b82ce(0x239)](!0x1);}[_0x273e72(0x1e1)](){const _0x4a13c1=_0x273e72;this[_0x4a13c1(0x239)](!0x0);}[_0x273e72(0x1d7)](){const _0x2e5a73=_0x273e72;this[_0x2e5a73(0x1e6)][_0x2e5a73(0x21a)](),this[_0x2e5a73(0x1d1)][_0x2e5a73(0x1fb)]=!0x1,this[_0x2e5a73(0x202)]&&this[_0x2e5a73(0x202)][_0x2e5a73(0x1f7)]();}[_0x273e72(0x23a)](){const _0x5dc8d7=_0x273e72;this[_0x5dc8d7(0x1e6)][_0x5dc8d7(0x1cb)](),this[_0x5dc8d7(0x1d1)][_0x5dc8d7(0x1fb)]=!0x0;}[_0x273e72(0x1bd)](_0x2e505b){const _0x375a9a=_0x273e72;this[_0x375a9a(0x206)][_0x375a9a(0x22f)](_0x2e505b),this[_0x375a9a(0x1d1)][_0x375a9a(0x1fb)]=!0x0;}[_0x273e72(0x248)](_0x20049e,_0x38208e,_0x242899,_0x551559){const _0x1499e3=_0x273e72;this[_0x1499e3(0x206)][_0x1499e3(0x248)](_0x20049e,_0x242899,_0x551559);}[_0x273e72(0x212)](_0x23435d){const _0x459ee9=_0x273e72;this[_0x459ee9(0x206)][_0x459ee9(0x212)](_0x23435d),this[_0x459ee9(0x1d1)][_0x459ee9(0x1fb)]=!0x1;}[_0x273e72(0x231)](_0x1cb114){const _0x40f11f=_0x273e72;this[_0x40f11f(0x1c7)](this[_0x40f11f(0x210)],this[_0x40f11f(0x1f6)],_0x1cb114),this[_0x40f11f(0x22c)](_0x1cb114);}[_0x273e72(0x22c)](_0x2db7b5){const _0x519019=_0x273e72,_0x115d30=!_0x2db7b5[_0x519019(0x204)][_0x519019(0x1c5)]&&_0x2db7b5[_0x519019(0x204)][_0x519019(0x201)],_0x59565d=_0x2db7b5[_0x519019(0x1df)][_0x519019(0x201)],_0x335a39=_0x2db7b5[_0x519019(0x1dc)][_0x519019(0x201)];this[_0x519019(0x1d1)][_0x519019(0x1c2)]=_0x115d30||_0x59565d||_0x335a39;}[_0x273e72(0x1f9)](){const _0xbdb68b=_0x273e72;this[_0xbdb68b(0x1dd)]({'tag':_0xbdb68b(0x1d2),'attributes':{'class':[ko,_0xbdb68b(0x203)]},'children':[{'tag':_0xbdb68b(0x1d2),'attributes':{'class':Eo},'children':this[_0xbdb68b(0x1bf)]}]});}[_0x273e72(0x216)](){const _0xda8b6=_0x273e72;this[_0xda8b6(0x1d1)]['on'](_0xda8b6(0x1d0),()=>{const _0x14ee79=_0xda8b6;this[_0x14ee79(0x20f)]();});}[_0x273e72(0x1bc)](_0x533abb){const _0x40b917=_0x273e72,_0x27b199=new _0x4b488f(_0x533abb);return _0x27b199[_0x40b917(0x1d4)]({'label':_0x25d026(_0x533abb,_0x40b917(0x1f1)),'class':Uo+'\x20'+Vo,'icon':_0x5cd4dd,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x27b199;}[_0x273e72(0x1e5)](_0x156ae2){const _0x2f04c0=_0x273e72;return this[_0x2f04c0(0x1ed)](_0x156ae2,vo);}[_0x273e72(0x23e)](_0x18f92c){const _0x291056=_0x273e72,_0x3157a1=this[_0x291056(0x1ed)](_0x18f92c,Io);return this[_0x291056(0x1e7)](_0x3157a1,_0x18f92c),_0x3157a1;}[_0x273e72(0x1d3)](_0x13f1b8,_0x2f4a09){const _0x47b56c=_0x273e72,_0x816d86={'searchInputVisibleFrom':_0x2f4a09[_0x47b56c(0x220)],'onBackToContext':()=>{const _0x2e1ec2=_0x47b56c;this[_0x2e1ec2(0x1e1)](),this[_0x2e1ec2(0x210)][_0x2e1ec2(0x1e4)]({'target':this[_0x2e1ec2(0x1d1)][_0x2e1ec2(0x1ef)],'limiter':this[_0x2e1ec2(0x1e8)](),'positions':Ho});},'onResourceSelected':(_0x18705b,_0x14d2d6)=>{const _0x53bf8d=_0x47b56c;this[_0x53bf8d(0x1ee)](_0x53bf8d(0x1ea),{'source':_0x18705b,'resource':_0x14d2d6});},'onLoadSourceResources':_0x404219=>{const _0x36edb7=_0x47b56c;this[_0x36edb7(0x1ee)](_0x36edb7(0x234),_0x404219);},'onBalloonClosed':()=>{const _0x46a5e9=_0x47b56c;this[_0x46a5e9(0x1d1)][_0x46a5e9(0x1fb)]=!0x1;},'getLimiterElement':()=>this[_0x47b56c(0x1e8)](),'getTargetElement':()=>this[_0x47b56c(0x1d1)][_0x47b56c(0x1ef)]};return new _0x166059(_0x13f1b8,_0x2f4a09[_0x47b56c(0x22a)],_0x816d86);}[_0x273e72(0x1e8)](){const _0x5d8d58=_0x273e72;return this[_0x5d8d58(0x1ef)]?.[_0x5d8d58(0x1cf)]('.'+Mo)||document[_0x5d8d58(0x213)];}[_0x273e72(0x1ed)](_0x41b53a,_0xf1c7cb){const _0x27531a=_0x273e72,_0x43d763=new _0x4fc202(_0x41b53a);return _0x43d763[_0x27531a(0x229)]({'attributes':{'class':_0xf1c7cb}}),this[_0x27531a(0x22a)][_0x27531a(0x236)](_0x43d763),_0x43d763;}[_0x273e72(0x1c7)](_0x5ec02d,_0x48b48a,_0x2888a4){const _0x3dc60a=_0x273e72;if(_0x5ec02d[_0x3dc60a(0x1d9)][_0x3dc60a(0x1f7)](),!_0x2888a4[_0x3dc60a(0x204)][_0x3dc60a(0x1c5)]&&_0x2888a4[_0x3dc60a(0x204)][_0x3dc60a(0x201)]){const _0x3f40ec=this[_0x3dc60a(0x1e3)](_0x48b48a,{'label':_0x25d026(_0x48b48a,_0x3dc60a(0x1ce)),'icon':_0x410603});_0x3f40ec['on'](_0x3dc60a(0x1d0),()=>{const _0x31c289=_0x3dc60a;this[_0x31c289(0x1ee)](_0x31c289(0x1db)),this[_0x31c289(0x1c9)]();}),_0x5ec02d[_0x3dc60a(0x1d9)][_0x3dc60a(0x236)](_0x3f40ec);}if(_0x2888a4[_0x3dc60a(0x1df)][_0x3dc60a(0x201)]){const _0x250756=this[_0x3dc60a(0x1e3)](_0x48b48a,{'label':_0x25d026(_0x48b48a,_0x3dc60a(0x238)),'icon':_0x31fc6e});_0x250756['on'](_0x3dc60a(0x1d0),()=>{const _0x5022ee=_0x3dc60a;this[_0x5022ee(0x1c9)](),this[_0x5022ee(0x23a)](),this[_0x5022ee(0x1e6)][_0x5022ee(0x1e4)]({'target':this[_0x5022ee(0x1d1)][_0x5022ee(0x1ef)],'limiter':this[_0x5022ee(0x1e8)](),'positions':Ho}),this[_0x5022ee(0x202)][_0x5022ee(0x1cc)]();}),_0x5ec02d[_0x3dc60a(0x1d9)][_0x3dc60a(0x236)](_0x250756);}if(_0x2888a4[_0x3dc60a(0x1dc)][_0x3dc60a(0x201)]){const _0x327f52=new _0x3a039d(_0x48b48a);_0x327f52[_0x3dc60a(0x1d4)]({'label':_0x25d026(_0x48b48a,_0x3dc60a(0x207)),'icon':_0x17cbad,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x327f52['on'](_0x3dc60a(0x21b),(_0x24a825,_0x4a7f7b)=>{const _0x17cb3a=_0x3dc60a;this[_0x17cb3a(0x1ee)](_0x17cb3a(0x241),_0x4a7f7b),this[_0x17cb3a(0x1c9)]();}),_0x327f52[_0x3dc60a(0x233)]=!0x0,_0x5ec02d[_0x3dc60a(0x1d9)][_0x3dc60a(0x236)](_0x327f52);}for(const _0x5d0225 of _0x2888a4[_0x3dc60a(0x1de)]){const _0x5a48db=this[_0x3dc60a(0x1e3)](_0x48b48a,{'label':_0x5d0225[_0x3dc60a(0x1bb)],'icon':_0x5d0225[_0x3dc60a(0x21c)]||_0x23da9c,'type':_0x3dc60a(0x226)});_0x5ec02d[_0x3dc60a(0x1d9)][_0x3dc60a(0x236)](_0x5a48db),_0x5a48db['on'](_0x3dc60a(0x1d0),()=>{const _0x276243=_0x3dc60a;this[_0x276243(0x1c9)](),this[_0x276243(0x1bd)](_0x5d0225);});}}[_0x273e72(0x1e7)](_0x6e7b1a,_0x4faf11){const _0x21331a=_0x273e72;this[_0x21331a(0x202)]=new _0x2b68ab(_0x4faf11),this[_0x21331a(0x202)]['on'](_0x21331a(0x217),(_0x23f53a,_0x444952)=>{const _0x192266=_0x21331a;this[_0x192266(0x1fc)](_0x444952);}),this[_0x21331a(0x202)]['on'](_0x21331a(0x23d),()=>{const _0x4d0ecf=_0x21331a;this[_0x4d0ecf(0x1d7)](),this[_0x4d0ecf(0x1e1)](),this[_0x4d0ecf(0x210)][_0x4d0ecf(0x1e4)]({'target':this[_0x4d0ecf(0x1d1)][_0x4d0ecf(0x1ef)],'limiter':this[_0x4d0ecf(0x1e8)](),'positions':Ho});}),this[_0x21331a(0x202)]['on'](_0x21331a(0x21f),()=>{const _0x26edae=_0x21331a;this[_0x26edae(0x1e6)][_0x26edae(0x1fe)]&&this[_0x26edae(0x1e6)][_0x26edae(0x1e4)]({'target':this[_0x26edae(0x1d1)][_0x26edae(0x1ef)],'limiter':this[_0x26edae(0x1e8)](),'positions':Ho});}),_0x6e7b1a[_0x21331a(0x1d9)][_0x21331a(0x236)](this[_0x21331a(0x202)]);}[_0x273e72(0x1e3)](_0x54f886,_0x4f9984){const _0x164523=_0x273e72,_0x470972=_0x164523(0x226)===_0x4f9984[_0x164523(0x23c)]?new SourcesBalloonButtonView(_0x54f886):new _0x4b488f(_0x54f886);return _0x470972[_0x164523(0x1d4)]({'label':_0x4f9984[_0x164523(0x1bb)],'icon':_0x4f9984[_0x164523(0x21c)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x470972;}[_0x273e72(0x225)](){const _0xb55f2e=_0x273e72;this[_0xb55f2e(0x20d)](),this[_0xb55f2e(0x21e)]();}[_0x273e72(0x21e)](){const _0x32de50=_0x273e72;_0x12d48e({'emitter':this[_0x32de50(0x1e6)],'contextElements':[this[_0x32de50(0x1e6)][_0x32de50(0x1ef)]],'callback':()=>{const _0x4392ac=_0x32de50;this[_0x4392ac(0x1d7)]();},'activator':()=>this[_0x32de50(0x1e6)][_0x32de50(0x1fe)]});}[_0x273e72(0x239)](_0x168ef2){const _0xd84906=_0x273e72,_0x1a138d=this[_0xd84906(0x20b)];_0x1a138d[_0xd84906(0x242)][_0xd84906(0x1fb)]=_0x168ef2,_0x168ef2?_0x1a138d[_0xd84906(0x224)][_0xd84906(0x1cb)]():_0x1a138d[_0xd84906(0x224)][_0xd84906(0x21a)]();}[_0x273e72(0x20d)](){const _0x2dd19d=_0x273e72,{balloonView:_0x2e4475,buttonView:_0x521cdd,hideMethod:_0x4b9af5}=this[_0x2dd19d(0x20b)];_0x12d48e({'emitter':_0x2e4475,'contextElements':[_0x2e4475[_0x2dd19d(0x1ef)],_0x521cdd[_0x2dd19d(0x1ef)]],'callback':()=>{_0x4b9af5();},'activator':()=>_0x521cdd[_0x2dd19d(0x1fb)]&&!this[_0x2dd19d(0x1e6)][_0x2dd19d(0x1fe)]&&!this[_0x2dd19d(0x206)][_0x2dd19d(0x227)]()});}[_0x273e72(0x232)](_0x53ef8d,_0x5aa4a9,_0x2108dd=!0x1,_0x358869=!0x1){const _0x3ec8bf=_0x273e72,_0x36b3a4=_0x3ec8bf(0x221)===_0x5aa4a9||!0x0===_0x53ef8d[_0x3ec8bf(0x20e)],_0x410dba=new _0x2ebcfd(this[_0x3ec8bf(0x1f6)],_0x53ef8d,_0x36b3a4,_0x2108dd,_0x358869);return _0x36b3a4||_0x410dba['on'](_0x3ec8bf(0x244),()=>{const _0x17b481=_0x3ec8bf;this[_0x17b481(0x1ee)](_0x17b481(0x1d6),_0x410dba['id']);}),_0x410dba;}[_0x273e72(0x22e)](_0x1fc407,_0x343137){const _0x214831=_0x273e72;_0x343137[_0x214831(0x236)](_0x1fc407,0x0);}[_0x273e72(0x211)](_0x538f2a,_0x63e223){const _0x49d35d=_0x273e72,_0x1fb985=_0x63e223[_0x49d35d(0x214)](_0x3cf9ec=>_0x3cf9ec['id']===_0x538f2a);_0x1fb985&&_0x63e223[_0x49d35d(0x20a)](_0x1fb985);}[_0x273e72(0x20f)](){const _0x49b780=_0x273e72;this[_0x49b780(0x1d1)][_0x49b780(0x1fb)]?this[_0x49b780(0x1c9)]():(this[_0x49b780(0x1e1)](),this[_0x49b780(0x210)][_0x49b780(0x1e4)]({'target':this[_0x49b780(0x1d1)][_0x49b780(0x1ef)],'limiter':this[_0x49b780(0x1e8)](),'positions':Ho}));}[_0x273e72(0x1fc)](_0x2c87e7){const _0xc0286a=_0x273e72;this[_0xc0286a(0x202)][_0xc0286a(0x1f7)](),this[_0xc0286a(0x1d7)](),this[_0xc0286a(0x1ee)](_0xc0286a(0x1fa),_0x2c87e7);}}export class SourcesBalloonButtonView extends _0x4b488f{[_0x273e72(0x1c4)];constructor(_0x5ea663){const _0x463847=_0x273e72;super(_0x5ea663),this[_0x463847(0x1d4)]({'withText':!0x0,'role':_0x463847(0x1c6)}),this[_0x463847(0x1c4)]=this[_0x463847(0x223)](),this[_0x463847(0x229)]({'attributes':{'class':[Ro]}});}[_0x273e72(0x1c0)](){const _0x370d6d=_0x273e72;super[_0x370d6d(0x1c0)](),this[_0x370d6d(0x1f8)][_0x370d6d(0x236)](this[_0x370d6d(0x1c4)]);}[_0x273e72(0x223)](){const _0x2f2650=_0x273e72,_0x18b51a=new _0x5a5be4();return _0x18b51a[_0x2f2650(0x1d9)]=_0x5dc599,_0x18b51a[_0x2f2650(0x229)]({'attributes':{'class':Ro+_0x2f2650(0x247)}}),_0x18b51a;}}function _0x2700(){const _0x54ef51=['_createAddContextBalloonPanelView','_urlBalloonPanelView','_addUrlContent','_getLimiterElement','updateResourceState','addResourceToContext','2551380YwcZmC','2QMzgQH','_createBaseBalloonPanel','fire','element','reorganizeChips','AI_CHAT_CONTEXT_ADD_CONTEXT','7148mDcEtA','ck-ai-chat-context-controls','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-controls-button','locale','clear','children','_setupTemplate','addUrlToContext','isOn','_handleUrlSubmit','234536mFmErm','isVisible','_conversationContextsChips','addContextItem','enabled','_urlInputView','ck-reset_all-excluded','document','ck-ai-chat-context-controls__pending-contexts','_resourcesBalloonView','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat-controls_context_show-more-button','remove','_addContextBalloonConfig','7vWQCNf','_setupAddContextBalloonClickOutsideHandler','isReadOnly','_handleAddContextButtonClick','_addContextBalloonPanelView','_removeContextFromCollection','closeSourceResourceBalloon','body','find','90273ngxVKu','_bindEventHandlers','submitUrl','defaultPositions','ck-ai-chat-context-controls__balloon-button','hide','done','icon','284705vdmyQa','_setupUrlBalloonClickOutsideHandler','refreshBalloon','searchInputVisibleFrom','conversation','destroy','_createArrowView','balloonView','_setupAllBalloonClickOutsideHandlers','source','isAnyResourceBalloonVisible','clearCurrentContextItems','extendTemplate','bodyCollection','ck-ai-chat-context-controls__add-context-balloon-panel','_setAddContextButtonEnabled','northArrowSouthWest','_addContextToCollection','showSourceResourcesBalloon','setContainerElement','setAddContextOptions','_createContextButton','tooltip','loadSourceResources','_overflowManager','add','3652935JMsMat','AI_CHAT_CONTEXT_URL_LABEL','_toggleAddContextBalloon','showUrlBalloonPanel','southArrowNorthWest','type','cancel','_createUrlBalloonPanelView','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat-context-controls__balloon-button-source','addFileToContext','buttonView','createCollection','removeContextItemChip','9GkoMrM','setContextItemLoading','__arrow','populateSourceResourceBalloon','northArrowSouth','772130MLfLHc','clearConversationContextItems','label','_createAddContextButtonView','_showSourceResourcesBalloon','setConversationContext','_currentContextsChips','render','153eyDqeF','isEnabled','ck-ai-chat-context-controls__add-context-button','arrowView','isHidden','menuitem','_setBalloonPanelContent','southArrowNorthEast','hideAddContextBalloonPanel','southArrowNorth','show','focus','northArrowSouthEast','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','closest','execute','addContextButtonView','div','_createResourcesBalloonView','set','bind','removeContextItem','hideUrlBalloonPanel','ck-ai-chat','content','isLoading','addDocumentToContext','files','setTemplate','sources','urls','current','showAddContextBalloonPanel','overflowChips','_createBalloonButton','pin'];_0x2700=function(){return _0x54ef51;};return _0x2700();}
23
+ function _0x5cfc(){const _0x130e1c=['hideAddContextBalloonPanel','AI_CHAT_CONTEXT_FILE_LABEL','4428384JUOoMn','ck-ai-chat-context-chips-wrapper-balloon','cancel','add','find','div','ck-ai-chat-context-controls__add-context-button','sources','northArrowSouth','setContainerElement','southArrowNorth','conversation','hide','execute','_createContextButton','_handleAddContextButtonClick','_addContextBalloonPanelView','AI_CHAT_CONTEXT_ADD_CONTEXT','__arrow','_overflowManager','setTemplate','_handleUrlSubmit','populateSourceResourceBalloon','_conversationContextsChips','type','bodyCollection','pin','render','current','southArrowNorthWest','_createUrlBalloonPanelView','401116fngaEA','isLoading','done','ck-ai-chat-controls_context_show-more-button','ck-ai-chat-context-controls__add-context-balloon-panel','loadSourceResources','focus','_toggleAddContextBalloon','isOn','bind','closeSourceResourceBalloon','balloonView','386628SXWrSv','northArrowSouthEast','1206534YXQEDH','arrowView','ck-ai-chat-context-controls__url-balloon-panel','showSourceResourcesBalloon','buttonView','_getLimiterElement','_removeContextFromCollection','set','_createBaseBalloonPanel','addContextItem','_createArrowView','_setupAllBalloonClickOutsideHandlers','addFileToContext','setContextItemLoading','_resourcesBalloonView','_urlInputView','menuitem','_createBalloonButton','hideUrlBalloonPanel','ck-ai-chat-context-controls__balloon-button','enabled','isHidden','ck-reset_all-excluded','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls__pending-contexts','clear','element','files','children','updateResourceState','submitUrl','overflowChips','ck-ai-chat-context-controls__balloon-button-source','647358yCmFvH','northArrowSouthWest','icon','label','addDocumentToContext','clearConversationContextItems','removeContextItemChip','setAddContextOptions','searchInputVisibleFrom','tooltip','_setupUrlBalloonClickOutsideHandler','636935jvfDbF','isReadOnly','urls','content','827394qjgWoE','_urlBalloonPanelView','source','southArrowNorthEast','defaultPositions','_createResourcesBalloonView','_bindEventHandlers','body','addContextButtonView','isEnabled','addUrlToContext','_addUrlContent','closest','show','_addContextBalloonConfig','fire','showAddContextBalloonPanel','_setupTemplate','addResourceToContext','_showSourceResourcesBalloon','ck-ai-chat-context-controls','extendTemplate','clearCurrentContextItems','_currentContextsChips','destroy','ck-ai-chat','_addContextToCollection','locale','_createAddContextButtonView','12IoSyHs','document','remove','_setAddContextButtonEnabled','_setBalloonPanelContent','reorganizeChips','setConversationContext','showUrlBalloonPanel','removeContextItem','ck-ai-chat-context-controls__show-more-balloon-panel','createCollection','isAnyResourceBalloonVisible','ck-ai-chat-controls-button','refreshBalloon','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_createAddContextBalloonPanelView','isVisible','AI_CHAT_CONTEXT_URL_LABEL'];_0x5cfc=function(){return _0x130e1c;};return _0x5cfc();}function _0x118a(_0x41c22a,_0x4dd91b){const _0x5cfc84=_0x5cfc();return _0x118a=function(_0x118ac2,_0x3ecc5f){_0x118ac2=_0x118ac2-0x1f0;let _0x2961c5=_0x5cfc84[_0x118ac2];return _0x2961c5;},_0x118a(_0x41c22a,_0x4dd91b);}const _0x5954e3=_0x118a;(function(_0x3ea876,_0x57141c){const _0x3b86b7=_0x118a,_0x34ebd2=_0x3ea876();while(!![]){try{const _0x3c4c2e=-parseInt(_0x3b86b7(0x268))/0x1+parseInt(_0x3b86b7(0x209))/0x2+parseInt(_0x3b86b7(0x235))/0x3*(-parseInt(_0x3b86b7(0x274))/0x4)+parseInt(_0x3b86b7(0x214))/0x5+-parseInt(_0x3b86b7(0x218))/0x6+parseInt(_0x3b86b7(0x276))/0x7+parseInt(_0x3b86b7(0x249))/0x8;if(_0x3c4c2e===_0x57141c)break;else _0x34ebd2['push'](_0x34ebd2['shift']());}catch(_0x29efab){_0x34ebd2['push'](_0x34ebd2['shift']());}}}(_0x5cfc,0x3d5c5));import{BalloonPanelView as _0x2c7ae8,ButtonView as _0x40dae2,clickOutsideHandler as _0x24dd19,FileDialogButtonView as _0x42329f,IconView as _0x543a0f,View as _0x551670}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0xd6a1b0,IconDocument as _0x2396fc,IconDocumentOutline as _0x45372a,IconDropdownArrow as _0x51f472,IconLink as _0x4ff0c6,IconPaperClip as _0x53ad40}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x25e2d8}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x3919f7}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x3ccaa9}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x245725}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x257b9a}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x5954e3(0x20d),_0x5954e3(0x1f4),_0x5954e3(0x222),_0x5954e3(0x22a),_0x5954e3(0x23d),_0x5954e3(0x26d)];const ko=_0x5954e3(0x22c),Eo=_0x5954e3(0x200),vo=_0x5954e3(0x26c),Vo=_0x5954e3(0x24f),Io=_0x5954e3(0x278),Po=_0x5954e3(0x1fb),Ro=_0x5954e3(0x208),Uo=_0x5954e3(0x241),Lo=_0x5954e3(0x24a),No=_0x5954e3(0x26b),Oo=_0x5954e3(0x23e),Mo=_0x5954e3(0x231),Ho=[_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x20a)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x251)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x275)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x266)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x253)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x21b)]];export class AIChatContextPanelView extends _0x551670{[_0x5954e3(0x220)];[_0x5954e3(0x22f)]=this[_0x5954e3(0x23f)]();[_0x5954e3(0x260)]=this[_0x5954e3(0x23f)]();[_0x5954e3(0x25c)];[_0x5954e3(0x259)];[_0x5954e3(0x219)];[_0x5954e3(0x1f7)];[_0x5954e3(0x1f6)];[_0x5954e3(0x226)];[_0x5954e3(0x262)];constructor(_0x54e1bd,_0x342c93){const _0x265983=_0x5954e3;super(_0x54e1bd),this[_0x265983(0x262)]=_0x342c93[_0x265983(0x262)],this[_0x265983(0x22f)]=this[_0x265983(0x23f)](),this[_0x265983(0x260)]=this[_0x265983(0x23f)](),this[_0x265983(0x220)]=this[_0x265983(0x234)](_0x54e1bd),this[_0x265983(0x259)]=this[_0x265983(0x244)](_0x54e1bd),this[_0x265983(0x219)]=this[_0x265983(0x267)](_0x54e1bd),this[_0x265983(0x1f6)]=this[_0x265983(0x21d)](_0x54e1bd,_0x342c93);const _0x4fa8d8={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x265983(0x25c)]=new _0x3ccaa9(_0x54e1bd,this[_0x265983(0x22f)],_0x4fa8d8,this[_0x265983(0x262)],this),this[_0x265983(0x226)]={'buttonView':this[_0x265983(0x220)],'balloonView':this[_0x265983(0x259)],'hideMethod':this[_0x265983(0x247)][_0x265983(0x271)](this),'showMethod':this[_0x265983(0x228)][_0x265983(0x271)](this)},this[_0x265983(0x229)](),this[_0x265983(0x21e)]();}[_0x5954e3(0x264)](){const _0x4e3c82=_0x5954e3;super[_0x4e3c82(0x264)](),this[_0x4e3c82(0x1f3)](),this[_0x4e3c82(0x25c)][_0x4e3c82(0x252)](this[_0x4e3c82(0x202)]),this[_0x4e3c82(0x25c)][_0x4e3c82(0x23a)]();}[_0x5954e3(0x230)](){const _0xa1cabb=_0x5954e3;super[_0xa1cabb(0x230)](),this[_0xa1cabb(0x25c)][_0xa1cabb(0x230)](),this[_0xa1cabb(0x1f6)][_0xa1cabb(0x230)]();}[_0x5954e3(0x1f1)](_0xc40b61,_0x3de4e3){const _0x1a8130=_0x5954e3,_0x46a153=this[_0x1a8130(0x257)](_0xc40b61,_0x1a8130(0x265),!0x0,_0x3de4e3);this[_0x1a8130(0x232)](_0x46a153,this[_0x1a8130(0x22f)]),this[_0x1a8130(0x25c)][_0x1a8130(0x23a)]();}[_0x5954e3(0x23d)](_0x390416){const _0xa4b05c=_0x5954e3;this[_0xa4b05c(0x27c)](_0x390416,this[_0xa4b05c(0x22f)]),this[_0xa4b05c(0x27c)](_0x390416,this[_0xa4b05c(0x25c)][_0xa4b05c(0x207)]),this[_0xa4b05c(0x25c)][_0xa4b05c(0x23a)]();}[_0x5954e3(0x1f5)](_0x305d4b,_0x3ee02c){const _0x505500=_0x5954e3;let _0x2805d7=this[_0x505500(0x22f)][_0x505500(0x24d)](_0x15f993=>_0x15f993['id']===_0x305d4b);_0x2805d7||(_0x2805d7=this[_0x505500(0x25c)][_0x505500(0x207)][_0x505500(0x24d)](_0x559a60=>_0x559a60['id']===_0x305d4b)),_0x2805d7&&(_0x2805d7[_0x505500(0x269)]=_0x3ee02c);}[_0x5954e3(0x23b)](_0x51bffe){const _0x385136=_0x5954e3;this[_0x385136(0x260)][_0x385136(0x201)]();for(const _0x1fe814 of _0x51bffe){const _0x543e72=this[_0x385136(0x257)](_0x1fe814,_0x385136(0x254),!0x1,!0x1);this[_0x385136(0x232)](_0x543e72,this[_0x385136(0x260)]);}}[_0x5954e3(0x22e)](){const _0x3d09e8=_0x5954e3;this[_0x3d09e8(0x22f)][_0x3d09e8(0x201)](),this[_0x3d09e8(0x25c)][_0x3d09e8(0x201)]();}[_0x5954e3(0x20e)](){const _0x2a885a=_0x5954e3;this[_0x2a885a(0x260)][_0x2a885a(0x201)]();}[_0x5954e3(0x205)](_0x3aef0e,_0x2d05ad,_0x3efbe5){const _0x5e86dc=_0x5954e3;this[_0x5e86dc(0x1f6)][_0x5e86dc(0x205)](_0x3aef0e,_0x2d05ad,_0x3efbe5);}[_0x5954e3(0x247)](){const _0xfbd381=_0x5954e3;this[_0xfbd381(0x26f)](!0x1);}[_0x5954e3(0x228)](){const _0x12dbcc=_0x5954e3;this[_0x12dbcc(0x26f)](!0x0);}[_0x5954e3(0x1fa)](){const _0x41d111=_0x5954e3;this[_0x41d111(0x219)][_0x41d111(0x255)](),this[_0x41d111(0x220)][_0x41d111(0x270)]=!0x1,this[_0x41d111(0x1f7)]&&this[_0x41d111(0x1f7)][_0x41d111(0x201)]();}[_0x5954e3(0x23c)](){const _0xb41abe=_0x5954e3;this[_0xb41abe(0x219)][_0xb41abe(0x225)](),this[_0xb41abe(0x220)][_0xb41abe(0x270)]=!0x0;}[_0x5954e3(0x22b)](_0x41758a){const _0x45724d=_0x5954e3;this[_0x45724d(0x1f6)][_0x45724d(0x279)](_0x41758a),this[_0x45724d(0x220)][_0x45724d(0x270)]=!0x0;}[_0x5954e3(0x25f)](_0xa72282,_0x5f2ca0,_0x111afe,_0x2fdd2b){const _0x2a36e8=_0x5954e3;this[_0x2a36e8(0x1f6)][_0x2a36e8(0x25f)](_0xa72282,_0x111afe,_0x2fdd2b);}[_0x5954e3(0x272)](_0x5c9c74){const _0xbd8926=_0x5954e3;this[_0xbd8926(0x1f6)][_0xbd8926(0x272)](_0x5c9c74),this[_0xbd8926(0x220)][_0xbd8926(0x270)]=!0x1;}[_0x5954e3(0x210)](_0x255de9){const _0x1e7613=_0x5954e3;this[_0x1e7613(0x239)](this[_0x1e7613(0x259)],this[_0x1e7613(0x233)],_0x255de9),this[_0x1e7613(0x238)](_0x255de9);}[_0x5954e3(0x238)](_0x33e7d6){const _0x4be565=_0x5954e3,_0x2d68b1=!_0x33e7d6[_0x4be565(0x236)][_0x4be565(0x1fd)]&&_0x33e7d6[_0x4be565(0x236)][_0x4be565(0x1fc)],_0x517d93=_0x33e7d6[_0x4be565(0x216)][_0x4be565(0x1fc)],_0x3b6f81=_0x33e7d6[_0x4be565(0x203)][_0x4be565(0x1fc)];this[_0x4be565(0x220)][_0x4be565(0x221)]=_0x2d68b1||_0x517d93||_0x3b6f81;}[_0x5954e3(0x229)](){const _0x5d68e9=_0x5954e3;this[_0x5d68e9(0x25d)]({'tag':_0x5d68e9(0x24e),'attributes':{'class':[ko,_0x5d68e9(0x1fe)]},'children':[{'tag':_0x5d68e9(0x24e),'attributes':{'class':Eo},'children':this[_0x5d68e9(0x22f)]}]});}[_0x5954e3(0x21e)](){const _0x3c0a1b=_0x5954e3;this[_0x3c0a1b(0x220)]['on'](_0x3c0a1b(0x256),()=>{const _0x138a76=_0x3c0a1b;this[_0x138a76(0x258)]();});}[_0x5954e3(0x234)](_0x2265a3){const _0x16cfed=_0x5954e3,_0x13fc80=new _0x40dae2(_0x2265a3);return _0x13fc80[_0x16cfed(0x27d)]({'label':_0x245725(_0x2265a3,_0x16cfed(0x25a)),'class':Uo+'\x20'+Vo,'icon':_0x53ad40,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x13fc80;}[_0x5954e3(0x244)](_0x42397f){const _0x6100b5=_0x5954e3;return this[_0x6100b5(0x1f0)](_0x42397f,vo);}[_0x5954e3(0x267)](_0x1764de){const _0xad43da=_0x5954e3,_0x34ddb2=this[_0xad43da(0x1f0)](_0x1764de,Io);return this[_0xad43da(0x223)](_0x34ddb2,_0x1764de),_0x34ddb2;}[_0x5954e3(0x21d)](_0x514140,_0x47e9f2){const _0x33574d=_0x5954e3,_0x446c72={'searchInputVisibleFrom':_0x47e9f2[_0x33574d(0x211)],'onBackToContext':()=>{const _0x133a16=_0x33574d;this[_0x133a16(0x228)](),this[_0x133a16(0x259)][_0x133a16(0x263)]({'target':this[_0x133a16(0x220)][_0x133a16(0x202)],'limiter':this[_0x133a16(0x27b)](),'positions':Ho});},'onResourceSelected':(_0x5486ef,_0x258866)=>{const _0x9e79e1=_0x33574d;this[_0x9e79e1(0x227)](_0x9e79e1(0x22a),{'source':_0x5486ef,'resource':_0x258866});},'onLoadSourceResources':_0x483ba2=>{const _0x4d97a0=_0x33574d;this[_0x4d97a0(0x227)](_0x4d97a0(0x26d),_0x483ba2);},'onBalloonClosed':()=>{const _0x6c84d5=_0x33574d;this[_0x6c84d5(0x220)][_0x6c84d5(0x270)]=!0x1;},'getLimiterElement':()=>this[_0x33574d(0x27b)](),'getTargetElement':()=>this[_0x33574d(0x220)][_0x33574d(0x202)]};return new _0x257b9a(_0x514140,_0x47e9f2[_0x33574d(0x262)],_0x446c72);}[_0x5954e3(0x27b)](){const _0x2b49a5=_0x5954e3;return this[_0x2b49a5(0x202)]?.[_0x2b49a5(0x224)]('.'+Mo)||document[_0x2b49a5(0x21f)];}[_0x5954e3(0x1f0)](_0x2944d6,_0x5752f7){const _0x4a8aea=_0x5954e3,_0x10b0a8=new _0x2c7ae8(_0x2944d6);return _0x10b0a8[_0x4a8aea(0x22d)]({'attributes':{'class':_0x5752f7}}),this[_0x4a8aea(0x262)][_0x4a8aea(0x24c)](_0x10b0a8),_0x10b0a8;}[_0x5954e3(0x239)](_0x1eb030,_0x6b62a1,_0xdf5b9a){const _0x48a88c=_0x5954e3;if(_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x201)](),!_0xdf5b9a[_0x48a88c(0x236)][_0x48a88c(0x1fd)]&&_0xdf5b9a[_0x48a88c(0x236)][_0x48a88c(0x1fc)]){const _0x14e854=this[_0x48a88c(0x1f9)](_0x6b62a1,{'label':_0x245725(_0x6b62a1,_0x48a88c(0x243)),'icon':_0x2396fc});_0x14e854['on'](_0x48a88c(0x256),()=>{const _0x2d7666=_0x48a88c;this[_0x2d7666(0x227)](_0x2d7666(0x20d)),this[_0x2d7666(0x247)]();}),_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x24c)](_0x14e854);}if(_0xdf5b9a[_0x48a88c(0x216)][_0x48a88c(0x1fc)]){const _0x6cbebd=this[_0x48a88c(0x1f9)](_0x6b62a1,{'label':_0x245725(_0x6b62a1,_0x48a88c(0x246)),'icon':_0x4ff0c6});_0x6cbebd['on'](_0x48a88c(0x256),()=>{const _0x4082e4=_0x48a88c;this[_0x4082e4(0x247)](),this[_0x4082e4(0x23c)](),this[_0x4082e4(0x219)][_0x4082e4(0x263)]({'target':this[_0x4082e4(0x220)][_0x4082e4(0x202)],'limiter':this[_0x4082e4(0x27b)](),'positions':Ho}),this[_0x4082e4(0x1f7)][_0x4082e4(0x26e)]();}),_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x24c)](_0x6cbebd);}if(_0xdf5b9a[_0x48a88c(0x203)][_0x48a88c(0x1fc)]){const _0x13630d=new _0x42329f(_0x6b62a1);_0x13630d[_0x48a88c(0x27d)]({'label':_0x245725(_0x6b62a1,_0x48a88c(0x248)),'icon':_0xd6a1b0,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x13630d['on'](_0x48a88c(0x26a),(_0x340f46,_0x31d441)=>{const _0x4679f4=_0x48a88c;this[_0x4679f4(0x227)](_0x4679f4(0x1f4),_0x31d441),this[_0x4679f4(0x247)]();}),_0x13630d[_0x48a88c(0x212)]=!0x0,_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x24c)](_0x13630d);}for(const _0x44de6b of _0xdf5b9a[_0x48a88c(0x250)]){const _0x45e2a2=this[_0x48a88c(0x1f9)](_0x6b62a1,{'label':_0x44de6b[_0x48a88c(0x20c)],'icon':_0x44de6b[_0x48a88c(0x20b)]||_0x45372a,'type':_0x48a88c(0x21a)});_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x24c)](_0x45e2a2),_0x45e2a2['on'](_0x48a88c(0x256),()=>{const _0x1d7af0=_0x48a88c;this[_0x1d7af0(0x247)](),this[_0x1d7af0(0x22b)](_0x44de6b);});}}[_0x5954e3(0x223)](_0x3be987,_0x1b9eeb){const _0x17ed2c=_0x5954e3;this[_0x17ed2c(0x1f7)]=new _0x3919f7(_0x1b9eeb),this[_0x17ed2c(0x1f7)]['on'](_0x17ed2c(0x206),(_0x12d745,_0x131054)=>{const _0x3c135c=_0x17ed2c;this[_0x3c135c(0x25e)](_0x131054);}),this[_0x17ed2c(0x1f7)]['on'](_0x17ed2c(0x24b),()=>{const _0x4422ce=_0x17ed2c;this[_0x4422ce(0x1fa)](),this[_0x4422ce(0x228)](),this[_0x4422ce(0x259)][_0x4422ce(0x263)]({'target':this[_0x4422ce(0x220)][_0x4422ce(0x202)],'limiter':this[_0x4422ce(0x27b)](),'positions':Ho});}),this[_0x17ed2c(0x1f7)]['on'](_0x17ed2c(0x242),()=>{const _0x2f8ebf=_0x17ed2c;this[_0x2f8ebf(0x219)][_0x2f8ebf(0x245)]&&this[_0x2f8ebf(0x219)][_0x2f8ebf(0x263)]({'target':this[_0x2f8ebf(0x220)][_0x2f8ebf(0x202)],'limiter':this[_0x2f8ebf(0x27b)](),'positions':Ho});}),_0x3be987[_0x17ed2c(0x217)][_0x17ed2c(0x24c)](this[_0x17ed2c(0x1f7)]);}[_0x5954e3(0x1f9)](_0x5cbe0a,_0xa909b3){const _0x20ff69=_0x5954e3,_0x353809=_0x20ff69(0x21a)===_0xa909b3[_0x20ff69(0x261)]?new SourcesBalloonButtonView(_0x5cbe0a):new _0x40dae2(_0x5cbe0a);return _0x353809[_0x20ff69(0x27d)]({'label':_0xa909b3[_0x20ff69(0x20c)],'icon':_0xa909b3[_0x20ff69(0x20b)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x353809;}[_0x5954e3(0x1f3)](){const _0x20eb8c=_0x5954e3;this[_0x20eb8c(0x1ff)](),this[_0x20eb8c(0x213)]();}[_0x5954e3(0x213)](){const _0xadc78=_0x5954e3;_0x24dd19({'emitter':this[_0xadc78(0x219)],'contextElements':[this[_0xadc78(0x219)][_0xadc78(0x202)]],'callback':()=>{const _0x571936=_0xadc78;this[_0x571936(0x1fa)]();},'activator':()=>this[_0xadc78(0x219)][_0xadc78(0x245)]});}[_0x5954e3(0x26f)](_0x52a60a){const _0x5da277=_0x5954e3,_0x280ced=this[_0x5da277(0x226)];_0x280ced[_0x5da277(0x27a)][_0x5da277(0x270)]=_0x52a60a,_0x52a60a?_0x280ced[_0x5da277(0x273)][_0x5da277(0x225)]():_0x280ced[_0x5da277(0x273)][_0x5da277(0x255)]();}[_0x5954e3(0x1ff)](){const _0x4e55e0=_0x5954e3,{balloonView:_0x16e772,buttonView:_0x68b4bf,hideMethod:_0xce3754}=this[_0x4e55e0(0x226)];_0x24dd19({'emitter':_0x16e772,'contextElements':[_0x16e772[_0x4e55e0(0x202)],_0x68b4bf[_0x4e55e0(0x202)]],'callback':()=>{_0xce3754();},'activator':()=>_0x68b4bf[_0x4e55e0(0x270)]&&!this[_0x4e55e0(0x219)][_0x4e55e0(0x245)]&&!this[_0x4e55e0(0x1f6)][_0x4e55e0(0x240)]()});}[_0x5954e3(0x257)](_0x4a6591,_0x39c838,_0x53b430=!0x1,_0x582913=!0x1){const _0x15ecec=_0x5954e3,_0x3bdd1f=_0x15ecec(0x254)===_0x39c838||!0x0===_0x4a6591[_0x15ecec(0x215)],_0x32633f=new _0x25e2d8(this[_0x15ecec(0x233)],_0x4a6591,_0x3bdd1f,_0x53b430,_0x582913);return _0x3bdd1f||_0x32633f['on'](_0x15ecec(0x20f),()=>{const _0x4c3827=_0x15ecec;this[_0x4c3827(0x227)](_0x4c3827(0x23d),_0x32633f['id']);}),_0x32633f;}[_0x5954e3(0x232)](_0x3525c1,_0x20fa59){const _0x3dad29=_0x5954e3;_0x20fa59[_0x3dad29(0x24c)](_0x3525c1,0x0);}[_0x5954e3(0x27c)](_0x5b378f,_0x1cb47b){const _0x10c420=_0x5954e3,_0x32e3b6=_0x1cb47b[_0x10c420(0x24d)](_0x46ec0d=>_0x46ec0d['id']===_0x5b378f);_0x32e3b6&&_0x1cb47b[_0x10c420(0x237)](_0x32e3b6);}[_0x5954e3(0x258)](){const _0x1b0f4e=_0x5954e3;this[_0x1b0f4e(0x220)][_0x1b0f4e(0x270)]?this[_0x1b0f4e(0x247)]():(this[_0x1b0f4e(0x228)](),this[_0x1b0f4e(0x259)][_0x1b0f4e(0x263)]({'target':this[_0x1b0f4e(0x220)][_0x1b0f4e(0x202)],'limiter':this[_0x1b0f4e(0x27b)](),'positions':Ho}));}[_0x5954e3(0x25e)](_0x485473){const _0x37712a=_0x5954e3;this[_0x37712a(0x1f7)][_0x37712a(0x201)](),this[_0x37712a(0x1fa)](),this[_0x37712a(0x227)](_0x37712a(0x222),_0x485473);}}export class SourcesBalloonButtonView extends _0x40dae2{[_0x5954e3(0x277)];constructor(_0x5b9f56){const _0xf530f0=_0x5954e3;super(_0x5b9f56),this[_0xf530f0(0x27d)]({'withText':!0x0,'role':_0xf530f0(0x1f8)}),this[_0xf530f0(0x277)]=this[_0xf530f0(0x1f2)](),this[_0xf530f0(0x22d)]({'attributes':{'class':[Ro]}});}[_0x5954e3(0x264)](){const _0x5b9a7e=_0x5954e3;super[_0x5b9a7e(0x264)](),this[_0x5b9a7e(0x204)][_0x5b9a7e(0x24c)](this[_0x5b9a7e(0x277)]);}[_0x5954e3(0x1f2)](){const _0x11163f=_0x5954e3,_0x1dedd6=new _0x543a0f();return _0x1dedd6[_0x11163f(0x217)]=_0x51f472,_0x1dedd6[_0x11163f(0x22d)]({'attributes':{'class':Ro+_0x11163f(0x25b)}}),_0x1dedd6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1004(){const _0x519d1f=['_createCancelButtonView','860818MZICtW','1499949fRXVQN','779970OYHFnP','ck-reset_all','execute','div','_cancelButtonView','210080ZFzZjW','_createLoaderView','279haOwMn','ck-ai-chat-controls-loader','1306412EtXdcw','_loaderView','25BDOYED','ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader-icon','270452GBgjXc','ck-ai-button-secondary\x20ck-ai-button-stop-generating','ck-ai-chat-controls-loader-wrapper','locale','set','AI_CHAT_STOP_GENERATING','abortPromptStream','setTemplate','966952tZxNOq','fire','AI_CHAT_IS_WRITING'];_0x1004=function(){return _0x519d1f;};return _0x1004();}const _0x408677=_0xc07e;(function(_0x2355d1,_0x5ce0d6){const _0x4ad1d3=_0xc07e,_0xe8f9e=_0x2355d1();while(!![]){try{const _0xe6e4f5=-parseInt(_0x4ad1d3(0x16f))/0x1+parseInt(_0x4ad1d3(0x177))/0x2+-parseInt(_0x4ad1d3(0x17c))/0x3+parseInt(_0x4ad1d3(0x16a))/0x4+parseInt(_0x4ad1d3(0x16c))/0x5*(-parseInt(_0x4ad1d3(0x17d))/0x6)+parseInt(_0x4ad1d3(0x17b))/0x7+-parseInt(_0x4ad1d3(0x166))/0x8*(-parseInt(_0x4ad1d3(0x168))/0x9);if(_0xe6e4f5===_0x5ce0d6)break;else _0xe8f9e['push'](_0xe8f9e['shift']());}catch(_0x3e00a8){_0xe8f9e['push'](_0xe8f9e['shift']());}}}(_0x1004,0x4fc2f));import{ButtonView as _0x434870,View as _0xdff497}from'ckeditor5/src/ui.js';import{IconStop as _0x4422f5}from'ckeditor5/src/icons.js';import{getTranslation as _0x13aa20}from'../../../aicore/utils/common-translations.js';function _0xc07e(_0x28f948,_0x350079){const _0x1004fb=_0x1004();return _0xc07e=function(_0xc07e4b,_0x4b2965){_0xc07e4b=_0xc07e4b-0x162;let _0x167d1d=_0x1004fb[_0xc07e4b];return _0x167d1d;},_0xc07e(_0x28f948,_0x350079);}export class AIChatControlsLoaderView extends _0xdff497{[_0x408677(0x165)];[_0x408677(0x16b)];constructor(_0x51b7e5){const _0x3033fc=_0x408677;super(_0x51b7e5),this[_0x3033fc(0x165)]=this[_0x3033fc(0x17a)](),this[_0x3033fc(0x16b)]=this[_0x3033fc(0x167)](),this[_0x3033fc(0x176)]({'tag':_0x3033fc(0x164),'attributes':{'class':['ck',_0x3033fc(0x171),_0x3033fc(0x162)]},'children':[this[_0x3033fc(0x16b)],this[_0x3033fc(0x165)]]});}[_0x408677(0x17a)](){const _0x42b176=_0x408677,_0x25df22=new _0x434870(this[_0x42b176(0x172)]);return _0x25df22[_0x42b176(0x173)]({'label':_0x13aa20(this[_0x42b176(0x172)],_0x42b176(0x174)),'withText':!0x0,'class':_0x42b176(0x170),'icon':_0x4422f5}),_0x25df22['on'](_0x42b176(0x163),()=>{const _0x410d3e=_0x42b176;this[_0x410d3e(0x178)](_0x410d3e(0x175));}),_0x25df22;}[_0x408677(0x167)](){const _0x5871a2=_0x408677,_0x3ee78c=new _0xdff497(this[_0x5871a2(0x172)]);return _0x3ee78c[_0x5871a2(0x176)]({'tag':_0x5871a2(0x164),'attributes':{'class':[_0x5871a2(0x169)]},'children':[{'tag':_0x5871a2(0x164),'attributes':{'class':[_0x5871a2(0x16e)]},'children':[{'tag':_0x5871a2(0x164),'attributes':{'class':[_0x5871a2(0x16d)]}},{'tag':_0x5871a2(0x164),'attributes':{'class':[_0x5871a2(0x16d)]}},{'tag':_0x5871a2(0x164),'attributes':{'class':[_0x5871a2(0x16d)]}}]},{'text':_0x13aa20(this[_0x5871a2(0x172)],_0x5871a2(0x179))}]}),_0x3ee78c;}}
23
+ const _0x27bc96=_0x496c;(function(_0x4d22ec,_0x5eb8a3){const _0x95ca68=_0x496c,_0x198864=_0x4d22ec();while(!![]){try{const _0x4b4968=-parseInt(_0x95ca68(0x10c))/0x1+-parseInt(_0x95ca68(0x11f))/0x2*(-parseInt(_0x95ca68(0x10d))/0x3)+-parseInt(_0x95ca68(0x11a))/0x4+parseInt(_0x95ca68(0x10b))/0x5+parseInt(_0x95ca68(0x111))/0x6*(-parseInt(_0x95ca68(0x123))/0x7)+-parseInt(_0x95ca68(0x120))/0x8*(-parseInt(_0x95ca68(0x108))/0x9)+-parseInt(_0x95ca68(0x115))/0xa*(-parseInt(_0x95ca68(0x121))/0xb);if(_0x4b4968===_0x5eb8a3)break;else _0x198864['push'](_0x198864['shift']());}catch(_0x5039f4){_0x198864['push'](_0x198864['shift']());}}}(_0x26ea,0x4c5f5));function _0x26ea(){const _0x262053=['locale','ck-ai-chat-controls-loader-icon','72940qsJrIl','56KlxMPj','7182274tamCHM','execute','283115AQQrAy','_loaderView','ck-ai-chat-controls-loader-wrapper','616149KSphPL','_createLoaderView','AI_CHAT_STOP_GENERATING','1241225FUXIjl','452201yDDulM','3AKJmeD','ck-reset_all','fire','setTemplate','60OocEAi','ck-ai-chat-controls-loader-icon-dot','set','_cancelButtonView','10CdjYqz','AI_CHAT_IS_WRITING','div','_createCancelButtonView','ck-ai-chat-controls-loader','989616eWmfpe','abortPromptStream','ck-ai-button-secondary\x20ck-ai-button-stop-generating'];_0x26ea=function(){return _0x262053;};return _0x26ea();}function _0x496c(_0x82e6d4,_0x3d4a19){const _0x26ea86=_0x26ea();return _0x496c=function(_0x496c04,_0x1a7a93){_0x496c04=_0x496c04-0x106;let _0x2971a0=_0x26ea86[_0x496c04];return _0x2971a0;},_0x496c(_0x82e6d4,_0x3d4a19);}import{ButtonView as _0x34c446,View as _0x27902f}from'ckeditor5/src/ui.js';import{IconStop as _0x47564a}from'ckeditor5/src/icons.js';import{getTranslation as _0x1f20a1}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x27902f{[_0x27bc96(0x114)];[_0x27bc96(0x106)];constructor(_0x3170be){const _0x3fe6bc=_0x27bc96;super(_0x3170be),this[_0x3fe6bc(0x114)]=this[_0x3fe6bc(0x118)](),this[_0x3fe6bc(0x106)]=this[_0x3fe6bc(0x109)](),this[_0x3fe6bc(0x110)]({'tag':_0x3fe6bc(0x117),'attributes':{'class':['ck',_0x3fe6bc(0x107),_0x3fe6bc(0x10e)]},'children':[this[_0x3fe6bc(0x106)],this[_0x3fe6bc(0x114)]]});}[_0x27bc96(0x118)](){const _0x264d2d=_0x27bc96,_0x4bb58b=new _0x34c446(this[_0x264d2d(0x11d)]);return _0x4bb58b[_0x264d2d(0x113)]({'label':_0x1f20a1(this[_0x264d2d(0x11d)],_0x264d2d(0x10a)),'withText':!0x0,'class':_0x264d2d(0x11c),'icon':_0x47564a}),_0x4bb58b['on'](_0x264d2d(0x122),()=>{const _0x3a0adc=_0x264d2d;this[_0x3a0adc(0x10f)](_0x3a0adc(0x11b));}),_0x4bb58b;}[_0x27bc96(0x109)](){const _0x4eecbd=_0x27bc96,_0x2ed0e9=new _0x27902f(this[_0x4eecbd(0x11d)]);return _0x2ed0e9[_0x4eecbd(0x110)]({'tag':_0x4eecbd(0x117),'attributes':{'class':[_0x4eecbd(0x119)]},'children':[{'tag':_0x4eecbd(0x117),'attributes':{'class':[_0x4eecbd(0x11e)]},'children':[{'tag':_0x4eecbd(0x117),'attributes':{'class':[_0x4eecbd(0x112)]}},{'tag':_0x4eecbd(0x117),'attributes':{'class':[_0x4eecbd(0x112)]}},{'tag':_0x4eecbd(0x117),'attributes':{'class':[_0x4eecbd(0x112)]}}]},{'text':_0x1f20a1(this[_0x4eecbd(0x11d)],_0x4eecbd(0x116))}]}),_0x2ed0e9;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3bd0c4=_0x5924;(function(_0x2f29cf,_0x4b6a43){const _0x51a434=_0x5924,_0x38abfa=_0x2f29cf();while(!![]){try{const _0x1b0135=parseInt(_0x51a434(0x193))/0x1*(parseInt(_0x51a434(0x163))/0x2)+parseInt(_0x51a434(0x136))/0x3*(parseInt(_0x51a434(0x18f))/0x4)+parseInt(_0x51a434(0x173))/0x5*(parseInt(_0x51a434(0x197))/0x6)+-parseInt(_0x51a434(0x158))/0x7+-parseInt(_0x51a434(0x132))/0x8*(-parseInt(_0x51a434(0x191))/0x9)+parseInt(_0x51a434(0x187))/0xa*(parseInt(_0x51a434(0x155))/0xb)+parseInt(_0x51a434(0x169))/0xc*(-parseInt(_0x51a434(0x15f))/0xd);if(_0x1b0135===_0x4b6a43)break;else _0x38abfa['push'](_0x38abfa['shift']());}catch(_0x31d7c7){_0x38abfa['push'](_0x38abfa['shift']());}}}(_0x506f,0xe7917));import{Collection as _0x54dfdd}from'ckeditor5/src/utils.js';function _0x506f(){const _0x82e64d=['source','isVisible','AI_CHAT_CAPABILITIES_YES','bindTemplate','div','_webSearchButton','activeModelName','model','ck-ai-chat-controls-button','40qoYcHc','locale','length','webSearch','text','AI_CHAT_CAPABILITIES_NO','enabled','AI_CHAT_ENABLE_WEB_SEARCH','1144KgnmOS','ck-ai-chat-controls__model-selection__item-capabilities','5205357ULdiES','set','3982lJdhgA','isEnabled','capabilities','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','286260OmSkYP','span','16kFmNJY','bind','AI_CHAT_DISABLE_REASONING','_reasoningButton','1623bTarNu','withText','modelSelectorEnabled','content','_createReasoningButton','AI_CHAT_SEARCH_WEB','agent','AI_CHAT_COMMANDS','isOn','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','execute','label','setModel','listenTo','_modelNameView','clear','ck-button__label','addMany','ck-ai-chat-controls__model-selection__item-description','ck-ai-chat-controls__model-selection__item-name','_createModelNameView','tooltip','enableModelSelector','_modelSelectionDropdownItems','_createCommandsButton','name','disableModelSelector','ck-ai-chat-controls__model-name','toLowerCase','ck-ai-chat__prompt-capabilities','log','983081QltNAw','AI_CHAT_REASONING','setTemplate','1463252PssYNo','toggleWebSearch','getLocalized','_modelSelectionDropdown','AI_CHAT_DISABLE_WEB_SEARCH','AI_CHAT_ENABLE_REASONING','webSearchActive','1616771iymzqQ','buttonView','add','setWebSearch','906EgdbKW','activeModelId','startsWith','_createWebSearchButton','toggleReasoning','ck-ai-chat-controls__model-selection','228HpNctv','reasoningActive','selectModel','ck-ai-chat-controls-button--commands','style','menuitemradio','Commands\x20are\x20not\x20implemented\x20yet.','_createModelSelectionDropdown','setModelList','button','5eOGlNu','_getCapabilityParts','createCollection','extendTemplate','_commandsButton','description','reasoning','ck-hidden','setReasoning','fire','modelSelectorVisible'];_0x506f=function(){return _0x82e64d;};return _0x506f();}import{IconAI as _0x5194ef,IconBulb as _0xb9b225,IconWeb as _0x5c4b10}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x4fe5e3,ButtonLabelView as _0x293e37,ButtonView as _0x27b9ae,createDropdown as _0x597b5,IconView as _0xf96611,UIModel as _0xa67f3c,View as _0x2befd0}from'ckeditor5/src/ui.js';import{getTranslation as _0x9056fb}from'../../../aicore/utils/common-translations.js';import{AIModels as _0x38331d}from'../../../aicore/model/aimodels.js';function _0x5924(_0x497de7,_0x4c83c8){const _0x506f7a=_0x506f();return _0x5924=function(_0x5924e6,_0x4160ed){_0x5924e6=_0x5924e6-0x132;let _0x5b38b6=_0x506f7a[_0x5924e6];return _0x5b38b6;},_0x5924(_0x497de7,_0x4c83c8);}const yo=_0x3bd0c4(0x153),Uo=_0x3bd0c4(0x186),jo=_0x3bd0c4(0x16c),Go=_0x3bd0c4(0x168),Yo=_0x3bd0c4(0x149),qo=_0x3bd0c4(0x148),zo=_0x3bd0c4(0x190),Fo='n';export class AIChatPromptCapabilitiesView extends _0x2befd0{[_0x3bd0c4(0x183)];[_0x3bd0c4(0x135)];[_0x3bd0c4(0x177)];[_0x3bd0c4(0x15b)];[_0x3bd0c4(0x14d)];[_0x3bd0c4(0x144)];constructor(_0x3129db){const _0x54e3ed=_0x3bd0c4;super(_0x3129db),this[_0x54e3ed(0x192)](_0x54e3ed(0x15e),!0x1),this[_0x54e3ed(0x192)](_0x54e3ed(0x16a),!0x1),this[_0x54e3ed(0x192)](_0x54e3ed(0x17d),!0x0),this[_0x54e3ed(0x192)](_0x54e3ed(0x138),!0x0),this[_0x54e3ed(0x192)](_0x54e3ed(0x164),null),this[_0x54e3ed(0x192)](_0x54e3ed(0x184),null),this[_0x54e3ed(0x15b)]=this[_0x54e3ed(0x170)](),this[_0x54e3ed(0x144)]=this[_0x54e3ed(0x14a)](),this[_0x54e3ed(0x183)]=this[_0x54e3ed(0x166)](),this[_0x54e3ed(0x135)]=this[_0x54e3ed(0x13a)](),this[_0x54e3ed(0x177)]=this[_0x54e3ed(0x14e)](),this[_0x54e3ed(0x15b)][_0x54e3ed(0x160)][_0x54e3ed(0x133)](_0x54e3ed(0x17f))['to'](this,_0x54e3ed(0x17d),_0x32da89=>_0x32da89),this[_0x54e3ed(0x15b)][_0x54e3ed(0x160)][_0x54e3ed(0x133)](_0x54e3ed(0x14b))['to'](this,_0x54e3ed(0x138),_0x10f78b=>_0x10f78b?this[_0x54e3ed(0x15b)][_0x54e3ed(0x160)][_0x54e3ed(0x141)]:_0x9056fb(this[_0x54e3ed(0x188)],_0x54e3ed(0x13f))),this[_0x54e3ed(0x15b)][_0x54e3ed(0x133)](_0x54e3ed(0x194))['to'](this,_0x54e3ed(0x138),_0x4e387d=>_0x4e387d),this[_0x54e3ed(0x183)][_0x54e3ed(0x133)](_0x54e3ed(0x13e))['to'](this,_0x54e3ed(0x15e),_0x51c1fb=>_0x51c1fb),this[_0x54e3ed(0x183)][_0x54e3ed(0x133)](_0x54e3ed(0x137))['to'](this,_0x54e3ed(0x17d),_0x5a08f1=>!_0x5a08f1),this[_0x54e3ed(0x183)][_0x54e3ed(0x133)](_0x54e3ed(0x14b))['to'](this,_0x54e3ed(0x15e),_0x17ad18=>_0x9056fb(this[_0x54e3ed(0x188)],_0x17ad18?_0x54e3ed(0x15c):_0x54e3ed(0x18e))),this[_0x54e3ed(0x135)][_0x54e3ed(0x133)](_0x54e3ed(0x13e))['to'](this,_0x54e3ed(0x16a),_0x45e8b2=>_0x45e8b2),this[_0x54e3ed(0x135)][_0x54e3ed(0x133)](_0x54e3ed(0x137))['to'](this,_0x54e3ed(0x17d),_0x232504=>!_0x232504),this[_0x54e3ed(0x135)][_0x54e3ed(0x133)](_0x54e3ed(0x14b))['to'](this,_0x54e3ed(0x16a),_0x159c0c=>_0x9056fb(this[_0x54e3ed(0x188)],_0x159c0c?_0x54e3ed(0x134):_0x54e3ed(0x15d))),this[_0x54e3ed(0x157)]({'tag':_0x54e3ed(0x182),'attributes':{'class':[yo]},'children':[this[_0x54e3ed(0x15b)],this[_0x54e3ed(0x144)],this[_0x54e3ed(0x183)],this[_0x54e3ed(0x135)],this[_0x54e3ed(0x177)]]}),this[_0x54e3ed(0x14d)]=new _0x54dfdd(),_0x4fe5e3(this[_0x54e3ed(0x15b)],this[_0x54e3ed(0x14d)]);}[_0x3bd0c4(0x171)](_0xf92ce3,_0x3b0edd){const _0x39fe3a=_0x3bd0c4;if(this[_0x39fe3a(0x192)](_0x39fe3a(0x17d),!(_0x3b0edd&&_0xf92ce3[_0x39fe3a(0x189)]<=0x1)),this[_0x39fe3a(0x14d)][_0x39fe3a(0x145)](),_0xf92ce3?.[_0x39fe3a(0x189)]){const _0x2a5130=_0x38331d[_0x39fe3a(0x15a)](this[_0x39fe3a(0x188)],_0xf92ce3);for(const _0x36cee9 of _0x2a5130){const _0xff8208=new _0xa67f3c({'label':_0x36cee9[_0x39fe3a(0x14f)],'withText':!0x0,'role':_0x39fe3a(0x16e),'id':_0x36cee9['id'],'model':_0x36cee9});_0xff8208[_0x39fe3a(0x133)](_0x39fe3a(0x13e))['to'](this,_0x39fe3a(0x164),_0x57c8d0=>_0x57c8d0===_0x36cee9['id']),this[_0x39fe3a(0x14d)][_0x39fe3a(0x161)]({'type':_0x39fe3a(0x172),'model':_0xff8208,'labelView':new Xs(this[_0x39fe3a(0x188)],_0x36cee9)});}}}[_0x3bd0c4(0x162)](_0x3d75d7){const _0x26bb65=_0x3bd0c4;this[_0x26bb65(0x192)](_0x26bb65(0x15e),_0x3d75d7);}[_0x3bd0c4(0x17b)](_0x21b2ec){const _0x27df40=_0x3bd0c4;this[_0x27df40(0x192)](_0x27df40(0x16a),_0x21b2ec);}[_0x3bd0c4(0x142)](_0x305e6b){const _0x3d3a8e=_0x3bd0c4;if(!_0x305e6b)return;this[_0x3d3a8e(0x164)]=_0x305e6b['id'],this[_0x3d3a8e(0x184)]=_0x305e6b[_0x3d3a8e(0x14f)]||_0x305e6b['id'],this[_0x3d3a8e(0x15b)][_0x3d3a8e(0x160)][_0x3d3a8e(0x192)](_0x3d3a8e(0x141),_0x305e6b[_0x3d3a8e(0x14f)]),this[_0x3d3a8e(0x15b)][_0x3d3a8e(0x160)][_0x3d3a8e(0x192)](_0x3d3a8e(0x14b),_0x305e6b[_0x3d3a8e(0x14f)]);const _0x5c81c4=_0x305e6b[_0x3d3a8e(0x195)][_0x3d3a8e(0x18a)]?.[_0x3d3a8e(0x18d)]??!0x1;this[_0x3d3a8e(0x192)](_0x3d3a8e(0x15e),!0x1),this[_0x3d3a8e(0x183)][_0x3d3a8e(0x192)](_0x3d3a8e(0x13e),!0x1),this[_0x3d3a8e(0x183)][_0x3d3a8e(0x192)](_0x3d3a8e(0x194),_0x5c81c4),this[_0x3d3a8e(0x183)][_0x3d3a8e(0x192)](_0x3d3a8e(0x17f),_0x5c81c4);const _0x1f1dda=_0x305e6b[_0x3d3a8e(0x195)][_0x3d3a8e(0x179)]?.[_0x3d3a8e(0x18d)]??!0x1;this[_0x3d3a8e(0x192)](_0x3d3a8e(0x16a),!0x1),this[_0x3d3a8e(0x135)][_0x3d3a8e(0x192)](_0x3d3a8e(0x13e),!0x1),this[_0x3d3a8e(0x135)][_0x3d3a8e(0x192)](_0x3d3a8e(0x194),_0x1f1dda),this[_0x3d3a8e(0x135)][_0x3d3a8e(0x192)](_0x3d3a8e(0x17f),_0x1f1dda);}[_0x3bd0c4(0x14c)](){const _0x3acbee=_0x3bd0c4;this[_0x3acbee(0x192)](_0x3acbee(0x138),!0x0),this[_0x3acbee(0x192)](_0x3acbee(0x17d),!0x0);}[_0x3bd0c4(0x150)](_0x1f9693){const _0x527679=_0x3bd0c4;this[_0x527679(0x192)](_0x527679(0x138),!0x1),_0x1f9693&&this[_0x527679(0x192)](_0x527679(0x17d),!0x1);}[_0x3bd0c4(0x166)](){const _0x209ee=_0x3bd0c4,_0x9f3c5b=new _0x27b9ae();return _0x9f3c5b[_0x209ee(0x192)]({'label':_0x9056fb(this[_0x209ee(0x188)],_0x209ee(0x13b)),'icon':_0x5c4b10,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x9f3c5b['on'](_0x209ee(0x140),()=>{const _0x10ccbf=_0x209ee;this[_0x10ccbf(0x17c)](_0x10ccbf(0x159));}),_0x9f3c5b;}[_0x3bd0c4(0x13a)](){const _0x5525c0=_0x3bd0c4,_0x2988b0=new _0x27b9ae();return _0x2988b0[_0x5525c0(0x192)]({'label':_0x9056fb(this[_0x5525c0(0x188)],_0x5525c0(0x156)),'icon':_0xb9b225,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x2988b0['on'](_0x5525c0(0x140),()=>{const _0x218c32=_0x5525c0;this[_0x218c32(0x17c)](_0x218c32(0x167));}),_0x2988b0;}[_0x3bd0c4(0x14e)](){const _0x43d627=_0x3bd0c4,_0x41026a=new _0x27b9ae();return _0x41026a[_0x43d627(0x192)]({'label':_0x9056fb(this[_0x43d627(0x188)],_0x43d627(0x13d)),'icon':_0x5194ef,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x9056fb(this[_0x43d627(0x188)],_0x43d627(0x13d)),'tooltipPosition':Fo}),_0x41026a[_0x43d627(0x176)]({'attributes':{'class':[jo]}}),_0x41026a['on'](_0x43d627(0x140),()=>{const _0x446774=_0x43d627;console[_0x446774(0x154)](_0x446774(0x16f)),alert(_0x446774(0x16f));}),_0x41026a;}[_0x3bd0c4(0x170)](){const _0x1744f9=_0x3bd0c4,_0x2028f8=_0x597b5(this[_0x1744f9(0x188)]);return _0x2028f8[_0x1744f9(0x192)]({'panelPosition':'ne','class':[Go]}),_0x2028f8[_0x1744f9(0x160)][_0x1744f9(0x192)]({'label':_0x9056fb(this[_0x1744f9(0x188)],_0x1744f9(0x196)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x1744f9(0x143)](_0x2028f8,_0x1744f9(0x140),_0x2ce6b8=>{const _0x360543=_0x1744f9;this[_0x360543(0x17c)](_0x360543(0x16b),_0x2ce6b8[_0x360543(0x17e)][_0x360543(0x185)]);}),_0x2028f8;}[_0x3bd0c4(0x14a)](){const _0x4c8d60=_0x3bd0c4,_0x132f82=new Jo(this[_0x4c8d60(0x188)]);return _0x132f82[_0x4c8d60(0x133)](_0x4c8d60(0x18b))['to'](this,_0x4c8d60(0x184),_0x321c7a=>_0x321c7a??''),_0x132f82[_0x4c8d60(0x133)](_0x4c8d60(0x17f))['to'](this,_0x4c8d60(0x17d),this,_0x4c8d60(0x184),(_0x9e961d,_0x225c10)=>!_0x9e961d&&!_0x225c10?.[_0x4c8d60(0x152)]()[_0x4c8d60(0x165)](_0x4c8d60(0x13c))),_0x132f82;}}class Xs extends _0x293e37{constructor(_0x4b6c32,_0x7f7763){const _0x5efdc2=_0x3bd0c4;super();const _0x59f14e=this[_0x5efdc2(0x181)],_0x14cb68=this[_0x5efdc2(0x175)]();this[_0x5efdc2(0x157)]({'tag':_0x5efdc2(0x182),'attributes':{'class':['ck',_0x5efdc2(0x146)],'style':_0x59f14e['to'](_0x5efdc2(0x16d)),'id':_0x59f14e['to']('id')},'children':[{'tag':_0x5efdc2(0x182),'attributes':{'class':[Yo]},'children':[{'text':_0x59f14e['to'](_0x5efdc2(0x18b))}]},{'tag':_0x5efdc2(0x182),'attributes':{'class':[qo]},'children':[{'tag':_0x5efdc2(0x198),'children':[{'text':_0x7f7763[_0x5efdc2(0x178)]}]}]},{'tag':_0x5efdc2(0x182),'attributes':{'class':[zo]},'children':_0x14cb68}]}),_0x14cb68[_0x5efdc2(0x147)](this[_0x5efdc2(0x174)](_0x4b6c32,_0x5c4b10,_0x5efdc2(0x13b),_0x7f7763[_0x5efdc2(0x195)][_0x5efdc2(0x18a)]?.[_0x5efdc2(0x18d)]??!0x1)),_0x14cb68[_0x5efdc2(0x147)](this[_0x5efdc2(0x174)](_0x4b6c32,_0xb9b225,_0x5efdc2(0x156),_0x7f7763[_0x5efdc2(0x195)][_0x5efdc2(0x179)]?.[_0x5efdc2(0x18d)]??!0x1));}[_0x3bd0c4(0x174)](_0xf3cbd6,_0x47e3c4,_0x3448b8,_0x572d3d){const _0x4c6011=_0x3bd0c4,_0x25510d=new _0xf96611();_0x25510d[_0x4c6011(0x139)]=_0x47e3c4;const _0xba19d5=new _0x2befd0(_0xf3cbd6);_0xba19d5[_0x4c6011(0x157)]({'tag':_0x4c6011(0x198),'children':[{'text':_0x9056fb(_0xf3cbd6,_0x3448b8)+':\x20'}]});const _0x4178e6=new _0x2befd0(_0xf3cbd6);return _0x4178e6[_0x4c6011(0x157)]({'tag':_0x4c6011(0x198),'children':[{'text':_0x9056fb(_0xf3cbd6,_0x572d3d?_0x4c6011(0x180):_0x4c6011(0x18c))}]}),[_0x25510d,_0xba19d5,_0x4178e6];}}class Jo extends _0x2befd0{constructor(_0x3fad96){const _0x399dc0=_0x3bd0c4;super(_0x3fad96),this[_0x399dc0(0x192)](_0x399dc0(0x18b),void 0x0),this[_0x399dc0(0x192)](_0x399dc0(0x17f),!0x0);const _0x2d1d86=this[_0x399dc0(0x181)];this[_0x399dc0(0x157)]({'tag':_0x399dc0(0x198),'attributes':{'class':['ck',_0x399dc0(0x151),_0x2d1d86['if'](_0x399dc0(0x17f),_0x399dc0(0x17a),_0x44544e=>!_0x44544e)]},'children':[{'text':_0x2d1d86['to'](_0x399dc0(0x18b))}]});}}
23
+ const _0x2cab27=_0x3b9e;(function(_0x44a564,_0x5dcdf9){const _0x1fc587=_0x3b9e,_0x9bcea3=_0x44a564();while(!![]){try{const _0x132b78=parseInt(_0x1fc587(0x108))/0x1+-parseInt(_0x1fc587(0xf7))/0x2+-parseInt(_0x1fc587(0x12c))/0x3*(-parseInt(_0x1fc587(0x11f))/0x4)+-parseInt(_0x1fc587(0xce))/0x5+-parseInt(_0x1fc587(0x11c))/0x6+parseInt(_0x1fc587(0xf6))/0x7+parseInt(_0x1fc587(0x113))/0x8;if(_0x132b78===_0x5dcdf9)break;else _0x9bcea3['push'](_0x9bcea3['shift']());}catch(_0x1d609e){_0x9bcea3['push'](_0x9bcea3['shift']());}}}(_0x3ded,0xc307f));import{Collection as _0x86c2b5}from'ckeditor5/src/utils.js';import{IconAI as _0x563032,IconBulb as _0x374cf5,IconWeb as _0x2935b8}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x55f88a,ButtonLabelView as _0x2eb945,ButtonView as _0x5ed877,createDropdown as _0xb2153c,IconView as _0x3d2ff4,UIModel as _0x3f36be,View as _0x1812a5}from'ckeditor5/src/ui.js';import{getTranslation as _0x2adf56}from'../../../aicore/utils/common-translations.js';import{AIModels as _0x2b0384}from'../../../aicore/model/aimodels.js';const yo=_0x2cab27(0xd9),Uo=_0x2cab27(0xf4),jo=_0x2cab27(0xd1),Go=_0x2cab27(0xe0),Yo=_0x2cab27(0xec),qo=_0x2cab27(0x119),zo=_0x2cab27(0x115),Fo='n';export class AIChatPromptCapabilitiesView extends _0x1812a5{[_0x2cab27(0x11d)];[_0x2cab27(0xed)];[_0x2cab27(0xf0)];[_0x2cab27(0x106)];[_0x2cab27(0xee)];[_0x2cab27(0xf8)];constructor(_0x4920f2){const _0x2f8851=_0x2cab27;super(_0x4920f2),this[_0x2f8851(0xe6)](_0x2f8851(0x128),!0x1),this[_0x2f8851(0xe6)](_0x2f8851(0x107),!0x1),this[_0x2f8851(0xe6)](_0x2f8851(0xfc),!0x0),this[_0x2f8851(0xe6)](_0x2f8851(0x120),!0x0),this[_0x2f8851(0xe6)](_0x2f8851(0xdb),null),this[_0x2f8851(0xe6)](_0x2f8851(0xe1),null),this[_0x2f8851(0x106)]=this[_0x2f8851(0xda)](),this[_0x2f8851(0xf8)]=this[_0x2f8851(0xf9)](),this[_0x2f8851(0x11d)]=this[_0x2f8851(0x109)](),this[_0x2f8851(0xed)]=this[_0x2f8851(0xdc)](),this[_0x2f8851(0xf0)]=this[_0x2f8851(0xd3)](),this[_0x2f8851(0x106)][_0x2f8851(0xd7)][_0x2f8851(0xd5)](_0x2f8851(0xcf))['to'](this,_0x2f8851(0xfc),_0x2caaae=>_0x2caaae),this[_0x2f8851(0x106)][_0x2f8851(0xd7)][_0x2f8851(0xd5)](_0x2f8851(0xcd))['to'](this,_0x2f8851(0x120),_0x3314a4=>_0x3314a4?this[_0x2f8851(0x106)][_0x2f8851(0xd7)][_0x2f8851(0x129)]:_0x2adf56(this[_0x2f8851(0x11e)],_0x2f8851(0x12d))),this[_0x2f8851(0x106)][_0x2f8851(0xd5)](_0x2f8851(0xde))['to'](this,_0x2f8851(0x120),_0x43b9b1=>_0x43b9b1),this[_0x2f8851(0x11d)][_0x2f8851(0xd5)](_0x2f8851(0x124))['to'](this,_0x2f8851(0x128),_0x22279b=>_0x22279b),this[_0x2f8851(0x11d)][_0x2f8851(0xd5)](_0x2f8851(0x10d))['to'](this,_0x2f8851(0xfc),_0x24ecac=>!_0x24ecac),this[_0x2f8851(0x11d)][_0x2f8851(0xd5)](_0x2f8851(0xcd))['to'](this,_0x2f8851(0x128),_0x19127b=>_0x2adf56(this[_0x2f8851(0x11e)],_0x19127b?_0x2f8851(0x12b):_0x2f8851(0x117))),this[_0x2f8851(0xed)][_0x2f8851(0xd5)](_0x2f8851(0x124))['to'](this,_0x2f8851(0x107),_0x7c18b0=>_0x7c18b0),this[_0x2f8851(0xed)][_0x2f8851(0xd5)](_0x2f8851(0x10d))['to'](this,_0x2f8851(0xfc),_0x38fe6b=>!_0x38fe6b),this[_0x2f8851(0xed)][_0x2f8851(0xd5)](_0x2f8851(0xcd))['to'](this,_0x2f8851(0x107),_0x1841c2=>_0x2adf56(this[_0x2f8851(0x11e)],_0x1841c2?_0x2f8851(0xe7):_0x2f8851(0xcc))),this[_0x2f8851(0x122)]({'tag':_0x2f8851(0xe2),'attributes':{'class':[yo]},'children':[this[_0x2f8851(0x106)],this[_0x2f8851(0xf8)],this[_0x2f8851(0x11d)],this[_0x2f8851(0xed)],this[_0x2f8851(0xf0)]]}),this[_0x2f8851(0xee)]=new _0x86c2b5(),_0x55f88a(this[_0x2f8851(0x106)],this[_0x2f8851(0xee)]);}[_0x2cab27(0xf5)](_0x40ea6b,_0x3cb736){const _0x559462=_0x2cab27;if(this[_0x559462(0xe6)](_0x559462(0xfc),!(_0x3cb736&&_0x40ea6b[_0x559462(0xfa)]<=0x1)),this[_0x559462(0xee)][_0x559462(0xfd)](),_0x40ea6b?.[_0x559462(0xfa)]){const _0x16b223=_0x2b0384[_0x559462(0xeb)](this[_0x559462(0x11e)],_0x40ea6b);for(const _0x20f0aa of _0x16b223){const _0x11f97a=new _0x3f36be({'label':_0x20f0aa[_0x559462(0xef)],'withText':!0x0,'role':_0x559462(0x10f),'id':_0x20f0aa['id'],'model':_0x20f0aa});_0x11f97a[_0x559462(0xd5)](_0x559462(0x124))['to'](this,_0x559462(0xdb),_0x15dbb0=>_0x15dbb0===_0x20f0aa['id']),this[_0x559462(0xee)][_0x559462(0xd6)]({'type':_0x559462(0x126),'model':_0x11f97a,'labelView':new Xs(this[_0x559462(0x11e)],_0x20f0aa)});}}}[_0x2cab27(0xd4)](_0x483e3f){const _0x1b1bc7=_0x2cab27;this[_0x1b1bc7(0xe6)](_0x1b1bc7(0x128),_0x483e3f);}[_0x2cab27(0xea)](_0x54c4ac){const _0x58e884=_0x2cab27;this[_0x58e884(0xe6)](_0x58e884(0x107),_0x54c4ac);}[_0x2cab27(0x12a)](_0x3bb9dc){const _0x1ec460=_0x2cab27;if(!_0x3bb9dc)return;this[_0x1ec460(0xdb)]=_0x3bb9dc['id'],this[_0x1ec460(0xe1)]=_0x3bb9dc[_0x1ec460(0xef)]||_0x3bb9dc['id'],this[_0x1ec460(0x106)][_0x1ec460(0xd7)][_0x1ec460(0xe6)](_0x1ec460(0x129),_0x3bb9dc[_0x1ec460(0xef)]),this[_0x1ec460(0x106)][_0x1ec460(0xd7)][_0x1ec460(0xe6)](_0x1ec460(0xcd),_0x3bb9dc[_0x1ec460(0xef)]);const _0x135222=_0x3bb9dc[_0x1ec460(0x103)][_0x1ec460(0xe4)]?.[_0x1ec460(0x11a)]??!0x1;this[_0x1ec460(0xe6)](_0x1ec460(0x128),!0x1),this[_0x1ec460(0x11d)][_0x1ec460(0xe6)](_0x1ec460(0x124),!0x1),this[_0x1ec460(0x11d)][_0x1ec460(0xe6)](_0x1ec460(0xde),_0x135222),this[_0x1ec460(0x11d)][_0x1ec460(0xe6)](_0x1ec460(0xcf),_0x135222);const _0x6e7103=_0x3bb9dc[_0x1ec460(0x103)][_0x1ec460(0x10e)]?.[_0x1ec460(0x11a)]??!0x1;this[_0x1ec460(0xe6)](_0x1ec460(0x107),!0x1),this[_0x1ec460(0xed)][_0x1ec460(0xe6)](_0x1ec460(0x124),!0x1),this[_0x1ec460(0xed)][_0x1ec460(0xe6)](_0x1ec460(0xde),_0x6e7103),this[_0x1ec460(0xed)][_0x1ec460(0xe6)](_0x1ec460(0xcf),_0x6e7103);}[_0x2cab27(0xd8)](){const _0x2fe452=_0x2cab27;this[_0x2fe452(0xe6)](_0x2fe452(0x120),!0x0),this[_0x2fe452(0xe6)](_0x2fe452(0xfc),!0x0);}[_0x2cab27(0x10a)](_0x380ac2){const _0x311df6=_0x2cab27;this[_0x311df6(0xe6)](_0x311df6(0x120),!0x1),_0x380ac2&&this[_0x311df6(0xe6)](_0x311df6(0xfc),!0x1);}[_0x2cab27(0x109)](){const _0x490217=_0x2cab27,_0x31262e=new _0x5ed877();return _0x31262e[_0x490217(0xe6)]({'label':_0x2adf56(this[_0x490217(0x11e)],_0x490217(0x114)),'icon':_0x2935b8,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x31262e['on'](_0x490217(0xe8),()=>{const _0xa6f9e9=_0x490217;this[_0xa6f9e9(0xf3)](_0xa6f9e9(0x104));}),_0x31262e;}[_0x2cab27(0xdc)](){const _0x776e90=_0x2cab27,_0x297e26=new _0x5ed877();return _0x297e26[_0x776e90(0xe6)]({'label':_0x2adf56(this[_0x776e90(0x11e)],_0x776e90(0xfe)),'icon':_0x374cf5,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x297e26['on'](_0x776e90(0xe8),()=>{const _0xd314b0=_0x776e90;this[_0xd314b0(0xf3)](_0xd314b0(0xe3));}),_0x297e26;}[_0x2cab27(0xd3)](){const _0x1d380b=_0x2cab27,_0x2050c8=new _0x5ed877();return _0x2050c8[_0x1d380b(0xe6)]({'label':_0x2adf56(this[_0x1d380b(0x11e)],_0x1d380b(0x100)),'icon':_0x563032,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x2adf56(this[_0x1d380b(0x11e)],_0x1d380b(0x100)),'tooltipPosition':Fo}),_0x2050c8[_0x1d380b(0x11b)]({'attributes':{'class':[jo]}}),_0x2050c8['on'](_0x1d380b(0xe8),()=>{const _0x17de7d=_0x1d380b;console[_0x17de7d(0x10b)](_0x17de7d(0xff)),alert(_0x17de7d(0xff));}),_0x2050c8;}[_0x2cab27(0xda)](){const _0x5632d0=_0x2cab27,_0x2dae3e=_0xb2153c(this[_0x5632d0(0x11e)]);return _0x2dae3e[_0x5632d0(0xe6)]({'panelPosition':'ne','class':[Go]}),_0x2dae3e[_0x5632d0(0xd7)][_0x5632d0(0xe6)]({'label':_0x2adf56(this[_0x5632d0(0x11e)],_0x5632d0(0x118)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x5632d0(0xdd)](_0x2dae3e,_0x5632d0(0xe8),_0x525cc8=>{const _0x38158f=_0x5632d0;this[_0x38158f(0xf3)](_0x38158f(0xf2),_0x525cc8[_0x38158f(0x127)][_0x38158f(0x111)]);}),_0x2dae3e;}[_0x2cab27(0xf9)](){const _0x347488=_0x2cab27,_0x326926=new Jo(this[_0x347488(0x11e)]);return _0x326926[_0x347488(0xd5)](_0x347488(0x101))['to'](this,_0x347488(0xe1),_0x2139b3=>_0x2139b3??''),_0x326926[_0x347488(0xd5)](_0x347488(0xcf))['to'](this,_0x347488(0xfc),this,_0x347488(0xe1),(_0x270448,_0x58629a)=>!_0x270448&&!_0x58629a?.[_0x347488(0x112)]()[_0x347488(0x116)](_0x347488(0x102))),_0x326926;}}function _0x3ded(){const _0x9c49b0=['ck-hidden','ck-ai-chat-controls-button--commands','createCollection','_createCommandsButton','setWebSearch','bind','add','buttonView','enableModelSelector','ck-ai-chat__prompt-capabilities','_createModelSelectionDropdown','activeModelId','_createReasoningButton','listenTo','isEnabled','content','ck-ai-chat-controls__model-selection','activeModelName','div','toggleReasoning','webSearch','bindTemplate','set','AI_CHAT_DISABLE_REASONING','execute','addMany','setReasoning','getLocalized','ck-ai-chat-controls__model-selection__item-name','_reasoningButton','_modelSelectionDropdownItems','name','_commandsButton','AI_CHAT_CAPABILITIES_YES','selectModel','fire','ck-ai-chat-controls-button','setModelList','595798tLbswR','3155060iwJRKW','_modelNameView','_createModelNameView','length','description','modelSelectorVisible','clear','AI_CHAT_REASONING','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_COMMANDS','text','agent','capabilities','toggleWebSearch','span','_modelSelectionDropdown','reasoningActive','297816YMbCxi','_createWebSearchButton','disableModelSelector','log','_getCapabilityParts','withText','reasoning','menuitemradio','ck-ai-chat-controls__model-name','model','toLowerCase','31169016WDnzed','AI_CHAT_SEARCH_WEB','ck-ai-chat-controls__model-selection__item-capabilities','startsWith','AI_CHAT_ENABLE_WEB_SEARCH','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-description','enabled','extendTemplate','3550188ZeavZY','_webSearchButton','locale','9332yFRiCd','modelSelectorEnabled','ck-button__label','setTemplate','AI_CHAT_CAPABILITIES_NO','isOn','style','button','source','webSearchActive','label','setModel','AI_CHAT_DISABLE_WEB_SEARCH','96wPWohn','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_ENABLE_REASONING','tooltip','6928190UJtwHm','isVisible'];_0x3ded=function(){return _0x9c49b0;};return _0x3ded();}class Xs extends _0x2eb945{constructor(_0x580143,_0xbff553){const _0x151066=_0x2cab27;super();const _0x1b4034=this[_0x151066(0xe5)],_0xd4eaa1=this[_0x151066(0xd2)]();this[_0x151066(0x122)]({'tag':_0x151066(0xe2),'attributes':{'class':['ck',_0x151066(0x121)],'style':_0x1b4034['to'](_0x151066(0x125)),'id':_0x1b4034['to']('id')},'children':[{'tag':_0x151066(0xe2),'attributes':{'class':[Yo]},'children':[{'text':_0x1b4034['to'](_0x151066(0x101))}]},{'tag':_0x151066(0xe2),'attributes':{'class':[qo]},'children':[{'tag':_0x151066(0x105),'children':[{'text':_0xbff553[_0x151066(0xfb)]}]}]},{'tag':_0x151066(0xe2),'attributes':{'class':[zo]},'children':_0xd4eaa1}]}),_0xd4eaa1[_0x151066(0xe9)](this[_0x151066(0x10c)](_0x580143,_0x2935b8,_0x151066(0x114),_0xbff553[_0x151066(0x103)][_0x151066(0xe4)]?.[_0x151066(0x11a)]??!0x1)),_0xd4eaa1[_0x151066(0xe9)](this[_0x151066(0x10c)](_0x580143,_0x374cf5,_0x151066(0xfe),_0xbff553[_0x151066(0x103)][_0x151066(0x10e)]?.[_0x151066(0x11a)]??!0x1));}[_0x2cab27(0x10c)](_0x340a05,_0x58a849,_0x14ca5c,_0x3b6963){const _0x24bd85=_0x2cab27,_0x138457=new _0x3d2ff4();_0x138457[_0x24bd85(0xdf)]=_0x58a849;const _0xc8afae=new _0x1812a5(_0x340a05);_0xc8afae[_0x24bd85(0x122)]({'tag':_0x24bd85(0x105),'children':[{'text':_0x2adf56(_0x340a05,_0x14ca5c)+':\x20'}]});const _0x2dc543=new _0x1812a5(_0x340a05);return _0x2dc543[_0x24bd85(0x122)]({'tag':_0x24bd85(0x105),'children':[{'text':_0x2adf56(_0x340a05,_0x3b6963?_0x24bd85(0xf1):_0x24bd85(0x123))}]}),[_0x138457,_0xc8afae,_0x2dc543];}}function _0x3b9e(_0x5e42f9,_0x189fe1){const _0x3dedd2=_0x3ded();return _0x3b9e=function(_0x3b9e65,_0x5e92b9){_0x3b9e65=_0x3b9e65-0xcc;let _0x28c2b2=_0x3dedd2[_0x3b9e65];return _0x28c2b2;},_0x3b9e(_0x5e42f9,_0x189fe1);}class Jo extends _0x1812a5{constructor(_0x2a9379){const _0x1ecf45=_0x2cab27;super(_0x2a9379),this[_0x1ecf45(0xe6)](_0x1ecf45(0x101),void 0x0),this[_0x1ecf45(0xe6)](_0x1ecf45(0xcf),!0x0);const _0x52ad2b=this[_0x1ecf45(0xe5)];this[_0x1ecf45(0x122)]({'tag':_0x1ecf45(0x105),'attributes':{'class':['ck',_0x1ecf45(0x110),_0x52ad2b['if'](_0x1ecf45(0xcf),_0x1ecf45(0xd0),_0x56407b=>!_0x56407b)]},'children':[{'text':_0x52ad2b['to'](_0x1ecf45(0x101))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5564d4=_0x57d2;(function(_0x17569a,_0x11863e){const _0x49890e=_0x57d2,_0x4d7420=_0x17569a();while(!![]){try{const _0x528ed0=parseInt(_0x49890e(0xc2))/0x1*(parseInt(_0x49890e(0xb2))/0x2)+parseInt(_0x49890e(0xb6))/0x3*(-parseInt(_0x49890e(0xe4))/0x4)+parseInt(_0x49890e(0xc1))/0x5+parseInt(_0x49890e(0xb8))/0x6*(parseInt(_0x49890e(0xdd))/0x7)+-parseInt(_0x49890e(0xd9))/0x8+-parseInt(_0x49890e(0xbe))/0x9*(parseInt(_0x49890e(0xe9))/0xa)+parseInt(_0x49890e(0xab))/0xb;if(_0x528ed0===_0x11863e)break;else _0x4d7420['push'](_0x4d7420['shift']());}catch(_0x139c13){_0x4d7420['push'](_0x4d7420['shift']());}}}(_0x48ba,0xa2631));function _0x48ba(){const _0x1ef2e2=['locale','isEmpty','fieldView','MAX_ROWS','10544512PruTPJ','isEnabled','enter','fieldWrapperChildren','58597ertBkx','focusableChildren','ck-ai-chat__prompt-input','left','rtl','ck-ai-chat__prompt-submit-button','width','262712JCRLdo','sendUserMessage','maxRows','style','uiLanguageDirection','124190umKUWZ','isUploadInProgress','execute','window','10355961jKzvOM','px\x20-\x20var(--ck-spacing-tiny))','_queryViewResizeObserver','AI_CHAT_PROMPT_EMPTY_ERROR','fire','excludeScrollbarsAndBorders','update','722578JvaQzd','keystrokes','MIN_ROWS','destroy','18tdLCzI','extendTemplate','516kQGsXq','target','calc(','set','element','AI_CHAT_LABEL_SUBMIT','531nGsNKD','submitButtonView','add','1823830BBGZQP','3osODEn','trim','_addContextButtonView','bind','submit','render','requestAnimationFrame','errorText','setIsUploadInProgress','_createSubmitButton','value','queryView','minRows','right','placeholder','hasError','_setUpAddContextButtonPositioning','reset','setPlaceholderText'];_0x48ba=function(){return _0x1ef2e2;};return _0x48ba();}import{IconSubmit as _0x38b11e}from'ckeditor5/src/icons.js';import{ButtonView as _0x1e0479,AutocompleteView as _0xc14f17,createLabeledTextarea as _0x5a0f14}from'ckeditor5/src/ui.js';import{global as _0x99953e,isVisible as _0x4a9868,Rect as _0xe8cac5,ResizeObserver as _0x1e9b40}from'ckeditor5/src/utils.js';import{getTranslation as _0xcc1548}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0xd14569}from'./aichatpromptsuggestionslistview.js';import{escape as _0x42907e}from'es-toolkit/compat';function _0x57d2(_0x11a8e,_0x11aaf2){const _0x48ba4d=_0x48ba();return _0x57d2=function(_0x57d2a4,_0x1f27de){_0x57d2a4=_0x57d2a4-0xab;let _0x412146=_0x48ba4d[_0x57d2a4];return _0x412146;},_0x57d2(_0x11a8e,_0x11aaf2);}export class AIChatPromptInputView extends _0xc14f17{[_0x5564d4(0xbf)];static [_0x5564d4(0xb4)]=0x1;static [_0x5564d4(0xd8)]=0xc;[_0x5564d4(0xc4)];[_0x5564d4(0xad)];constructor(_0x45b9a1,_0x2d696c){const _0x578985=_0x5564d4;super(_0x45b9a1,{'queryView':{'label':'','creator':_0x5a0f14,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0xd14569(_0x45b9a1),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x578985(0xbb)](_0x578985(0xd6),!0x0),this[_0x578985(0xbb)](_0x578985(0xea),!0x1),this[_0x578985(0xc4)]=_0x2d696c,this[_0x578985(0xad)]=null,this[_0x578985(0xcd)][_0x578985(0xd7)][_0x578985(0xce)]=AIChatPromptInputView[_0x578985(0xb4)],this[_0x578985(0xcd)][_0x578985(0xd7)][_0x578985(0xe6)]=AIChatPromptInputView[_0x578985(0xd8)],this[_0x578985(0xcd)][_0x578985(0xdc)][_0x578985(0xc0)](this[_0x578985(0xc4)]),this[_0x578985(0xd2)](),this[_0x578985(0xb7)]({'attributes':{'class':['ck',_0x578985(0xdf)]}}),this[_0x578985(0xbf)]=this[_0x578985(0xcb)](),this[_0x578985(0xbf)][_0x578985(0xc5)](_0x578985(0xda))['to'](this,_0x578985(0xd6),this,_0x578985(0xea),(_0x3ff412,_0x4b1db7)=>!_0x3ff412&&!_0x4b1db7),this[_0x578985(0xde)][_0x578985(0xc0)](this[_0x578985(0xbf)]);}[_0x5564d4(0xc7)](){const _0x9f5d2a=_0x5564d4;super[_0x9f5d2a(0xc7)](),this[_0x9f5d2a(0xcd)][_0x9f5d2a(0xdc)][_0x9f5d2a(0xc0)](this[_0x9f5d2a(0xbf)]),this[_0x9f5d2a(0xb3)][_0x9f5d2a(0xbb)](_0x9f5d2a(0xdb),(_0xde0ce6,_0x3f2344)=>{const _0x4b6c0a=_0x9f5d2a;this[_0x4b6c0a(0xea)]||this[_0x4b6c0a(0xd6)]||_0xde0ce6[_0x4b6c0a(0xb9)]==this[_0x4b6c0a(0xcd)][_0x4b6c0a(0xd7)][_0x4b6c0a(0xbc)]&&(this[_0x4b6c0a(0xc6)](),_0x3f2344());}),this[_0x9f5d2a(0xcd)][_0x9f5d2a(0xd7)]['on'](_0x9f5d2a(0xb1),()=>{const _0x3a0ad6=_0x9f5d2a;this[_0x3a0ad6(0xd6)]=''===this[_0x3a0ad6(0xcd)][_0x3a0ad6(0xd7)][_0x3a0ad6(0xbc)][_0x3a0ad6(0xcc)]?.[_0x3a0ad6(0xc3)]();});}[_0x5564d4(0xb5)](){const _0x4a20fd=_0x5564d4;super[_0x4a20fd(0xb5)](),this[_0x4a20fd(0xad)]&&this[_0x4a20fd(0xad)][_0x4a20fd(0xb5)]();}[_0x5564d4(0xc6)](){const _0x19946c=_0x5564d4,_0x431e56=this[_0x19946c(0xcd)][_0x19946c(0xd7)][_0x19946c(0xbc)][_0x19946c(0xcc)]?.[_0x19946c(0xc3)]();if(!_0x431e56)return this[_0x19946c(0xcd)][_0x19946c(0xc9)]=_0xcc1548(this[_0x19946c(0xd5)],_0x19946c(0xae)),void(this[_0x19946c(0xcd)][_0x19946c(0xd7)][_0x19946c(0xd1)]=!0x0);this[_0x19946c(0xcd)][_0x19946c(0xd7)][_0x19946c(0xd1)]=!0x1;const _0x76d084=_0x42907e(_0x431e56);this[_0x19946c(0xaf)](_0x19946c(0xe5),_0x76d084),this[_0x19946c(0xcd)][_0x19946c(0xd7)][_0x19946c(0xd3)]();}[_0x5564d4(0xd4)](_0x47f4a4){const _0x497272=_0x5564d4;this[_0x497272(0xcd)][_0x497272(0xd7)][_0x497272(0xbb)](_0x497272(0xd0),_0x47f4a4);}[_0x5564d4(0xcb)](){const _0x5073f4=_0x5564d4,_0x597e25=new _0x1e0479(this[_0x5073f4(0xd5)]);return _0x597e25[_0x5073f4(0xbb)]({'icon':_0x38b11e,'label':_0xcc1548(this[_0x5073f4(0xd5)],_0x5073f4(0xbd)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x5073f4(0xe2),'isEnabled':!0x1}),_0x597e25['on'](_0x5073f4(0xeb),()=>{const _0x159dca=_0x5073f4;this[_0x159dca(0xc6)]();}),_0x597e25;}[_0x5564d4(0xca)](_0xb062c){const _0x2010fd=_0x5564d4;this[_0x2010fd(0xea)]=_0xb062c;}[_0x5564d4(0xd2)](){const _0x3409be=_0x5564d4,_0x5370e5=this[_0x3409be(0xd5)],_0x174c6d=()=>{const _0x1e5d7a=_0x3409be;_0x99953e[_0x1e5d7a(0xec)][_0x1e5d7a(0xc8)](()=>{const _0x35f5c0=_0x1e5d7a;if(_0x4a9868(this[_0x35f5c0(0xbc)])){const _0x149b91=new _0xe8cac5(this[_0x35f5c0(0xcd)][_0x35f5c0(0xd7)][_0x35f5c0(0xbc)]),_0x162b5a=new _0xe8cac5(this[_0x35f5c0(0xc4)][_0x35f5c0(0xbc)]),_0x50e77b=_0x149b91[_0x35f5c0(0xe3)],_0x1fbfaf=_0x35f5c0(0xe1)===_0x5370e5[_0x35f5c0(0xe8)]?_0x35f5c0(0xcf):_0x35f5c0(0xe0);_0x149b91[_0x35f5c0(0xb0)]();const _0x15b8fa=_0x50e77b-_0x149b91[_0x35f5c0(0xe3)]+0x1;this[_0x35f5c0(0xc4)][_0x35f5c0(0xbc)][_0x35f5c0(0xe7)][_0x1fbfaf]=_0x35f5c0(0xba)+(_0x50e77b-_0x162b5a[_0x35f5c0(0xe3)]-_0x15b8fa)+_0x35f5c0(0xac);}});};this[_0x3409be(0xcd)][_0x3409be(0xd7)]['on'](_0x3409be(0xb1),_0x174c6d),this['on'](_0x3409be(0xc7),()=>{const _0x1c7fd6=_0x3409be;_0x174c6d(),this[_0x1c7fd6(0xad)]=new _0x1e9b40(this[_0x1c7fd6(0xcd)][_0x1c7fd6(0xd7)][_0x1c7fd6(0xbc)],()=>{_0x174c6d();});});}}
23
+ function _0x182a(){const _0x46d3a5=['AI_CHAT_PROMPT_EMPTY_ERROR','destroy','4001396wCeSUN','sendUserMessage','target','fire','errorText','setPlaceholderText','uiLanguageDirection','setIsUploadInProgress','2427aNWLjU','value','MAX_ROWS','ck-ai-chat__prompt-input','focusableChildren','px\x20-\x20var(--ck-spacing-tiny))','enter','3472511Xrivjj','maxRows','extendTemplate','locale','_createSubmitButton','excludeScrollbarsAndBorders','_addContextButtonView','ck-ai-chat__prompt-submit-button','requestAnimationFrame','render','8YkMERl','right','keystrokes','left','_queryViewResizeObserver','isEnabled','style','2710299RIltcn','window','queryView','add','submit','execute','reset','calc(','rtl','fieldView','_setUpAddContextButtonPositioning','minRows','AI_CHAT_LABEL_SUBMIT','trim','placeholder','isUploadInProgress','submitButtonView','38595450uuiwzt','update','1878150KPBeuE','element','fieldWrapperChildren','hasError','2473545ezqSqg','bind','set','898lGErTB','isEmpty','9gsrAih','width','MIN_ROWS'];_0x182a=function(){return _0x46d3a5;};return _0x182a();}const _0x3f4f4f=_0x1bcc;(function(_0x572df0,_0x25bcbb){const _0x5be455=_0x1bcc,_0x40fca9=_0x572df0();while(!![]){try{const _0x2ac895=parseInt(_0x5be455(0x17b))/0x1*(-parseInt(_0x5be455(0x16c))/0x2)+-parseInt(_0x5be455(0x193))/0x3+-parseInt(_0x5be455(0x173))/0x4+-parseInt(_0x5be455(0x169))/0x5+-parseInt(_0x5be455(0x165))/0x6+-parseInt(_0x5be455(0x182))/0x7*(-parseInt(_0x5be455(0x18c))/0x8)+-parseInt(_0x5be455(0x16e))/0x9*(-parseInt(_0x5be455(0x163))/0xa);if(_0x2ac895===_0x25bcbb)break;else _0x40fca9['push'](_0x40fca9['shift']());}catch(_0x5a0a06){_0x40fca9['push'](_0x40fca9['shift']());}}}(_0x182a,0x8758b));import{IconSubmit as _0x2e42cf}from'ckeditor5/src/icons.js';import{ButtonView as _0x54adb0,AutocompleteView as _0x3beede,createLabeledTextarea as _0x5088c2}from'ckeditor5/src/ui.js';import{global as _0x5b54ad,isVisible as _0x23e958,Rect as _0x19a12c,ResizeObserver as _0x256c2b}from'ckeditor5/src/utils.js';import{getTranslation as _0x1d5ff3}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x293073}from'./aichatpromptsuggestionslistview.js';import{escape as _0x348722}from'es-toolkit/compat';function _0x1bcc(_0x2fe3eb,_0x3c4c66){const _0x182a50=_0x182a();return _0x1bcc=function(_0x1bccab,_0x36a37d){_0x1bccab=_0x1bccab-0x159;let _0x39b9f6=_0x182a50[_0x1bccab];return _0x39b9f6;},_0x1bcc(_0x2fe3eb,_0x3c4c66);}export class AIChatPromptInputView extends _0x3beede{[_0x3f4f4f(0x162)];static [_0x3f4f4f(0x170)]=0x1;static [_0x3f4f4f(0x17d)]=0xc;[_0x3f4f4f(0x188)];[_0x3f4f4f(0x190)];constructor(_0x469c24,_0x1edaa7){const _0x44f6d9=_0x3f4f4f;super(_0x469c24,{'queryView':{'label':'','creator':_0x5088c2,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x293073(_0x469c24),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x44f6d9(0x16b)](_0x44f6d9(0x16d),!0x0),this[_0x44f6d9(0x16b)](_0x44f6d9(0x161),!0x1),this[_0x44f6d9(0x188)]=_0x1edaa7,this[_0x44f6d9(0x190)]=null,this[_0x44f6d9(0x195)][_0x44f6d9(0x15b)][_0x44f6d9(0x15d)]=AIChatPromptInputView[_0x44f6d9(0x170)],this[_0x44f6d9(0x195)][_0x44f6d9(0x15b)][_0x44f6d9(0x183)]=AIChatPromptInputView[_0x44f6d9(0x17d)],this[_0x44f6d9(0x195)][_0x44f6d9(0x167)][_0x44f6d9(0x196)](this[_0x44f6d9(0x188)]),this[_0x44f6d9(0x15c)](),this[_0x44f6d9(0x184)]({'attributes':{'class':['ck',_0x44f6d9(0x17e)]}}),this[_0x44f6d9(0x162)]=this[_0x44f6d9(0x186)](),this[_0x44f6d9(0x162)][_0x44f6d9(0x16a)](_0x44f6d9(0x191))['to'](this,_0x44f6d9(0x16d),this,_0x44f6d9(0x161),(_0x222b8d,_0x1d2a87)=>!_0x222b8d&&!_0x1d2a87),this[_0x44f6d9(0x17f)][_0x44f6d9(0x196)](this[_0x44f6d9(0x162)]);}[_0x3f4f4f(0x18b)](){const _0xc46b49=_0x3f4f4f;super[_0xc46b49(0x18b)](),this[_0xc46b49(0x195)][_0xc46b49(0x167)][_0xc46b49(0x196)](this[_0xc46b49(0x162)]),this[_0xc46b49(0x18e)][_0xc46b49(0x16b)](_0xc46b49(0x181),(_0x24bf11,_0x4e3f51)=>{const _0x5081b3=_0xc46b49;this[_0x5081b3(0x161)]||this[_0x5081b3(0x16d)]||_0x24bf11[_0x5081b3(0x175)]==this[_0x5081b3(0x195)][_0x5081b3(0x15b)][_0x5081b3(0x166)]&&(this[_0x5081b3(0x197)](),_0x4e3f51());}),this[_0xc46b49(0x195)][_0xc46b49(0x15b)]['on'](_0xc46b49(0x164),()=>{const _0x2fd84e=_0xc46b49;this[_0x2fd84e(0x16d)]=''===this[_0x2fd84e(0x195)][_0x2fd84e(0x15b)][_0x2fd84e(0x166)][_0x2fd84e(0x17c)]?.[_0x2fd84e(0x15f)]();});}[_0x3f4f4f(0x172)](){const _0x49f59c=_0x3f4f4f;super[_0x49f59c(0x172)](),this[_0x49f59c(0x190)]&&this[_0x49f59c(0x190)][_0x49f59c(0x172)]();}[_0x3f4f4f(0x197)](){const _0x243c63=_0x3f4f4f,_0x22667c=this[_0x243c63(0x195)][_0x243c63(0x15b)][_0x243c63(0x166)][_0x243c63(0x17c)]?.[_0x243c63(0x15f)]();if(!_0x22667c)return this[_0x243c63(0x195)][_0x243c63(0x177)]=_0x1d5ff3(this[_0x243c63(0x185)],_0x243c63(0x171)),void(this[_0x243c63(0x195)][_0x243c63(0x15b)][_0x243c63(0x168)]=!0x0);this[_0x243c63(0x195)][_0x243c63(0x15b)][_0x243c63(0x168)]=!0x1;const _0x3790f4=_0x348722(_0x22667c);this[_0x243c63(0x176)](_0x243c63(0x174),_0x3790f4),this[_0x243c63(0x195)][_0x243c63(0x15b)][_0x243c63(0x199)]();}[_0x3f4f4f(0x178)](_0x15c860){const _0xc838b2=_0x3f4f4f;this[_0xc838b2(0x195)][_0xc838b2(0x15b)][_0xc838b2(0x16b)](_0xc838b2(0x160),_0x15c860);}[_0x3f4f4f(0x186)](){const _0x4d73c9=_0x3f4f4f,_0x4b7d81=new _0x54adb0(this[_0x4d73c9(0x185)]);return _0x4b7d81[_0x4d73c9(0x16b)]({'icon':_0x2e42cf,'label':_0x1d5ff3(this[_0x4d73c9(0x185)],_0x4d73c9(0x15e)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x4d73c9(0x189),'isEnabled':!0x1}),_0x4b7d81['on'](_0x4d73c9(0x198),()=>{const _0xe814a7=_0x4d73c9;this[_0xe814a7(0x197)]();}),_0x4b7d81;}[_0x3f4f4f(0x17a)](_0x1f4569){const _0xfb4694=_0x3f4f4f;this[_0xfb4694(0x161)]=_0x1f4569;}[_0x3f4f4f(0x15c)](){const _0xc9630a=_0x3f4f4f,_0x5e79a2=this[_0xc9630a(0x185)],_0x40fcc9=()=>{const _0x537091=_0xc9630a;_0x5b54ad[_0x537091(0x194)][_0x537091(0x18a)](()=>{const _0x497981=_0x537091;if(_0x23e958(this[_0x497981(0x166)])){const _0x1aeaed=new _0x19a12c(this[_0x497981(0x195)][_0x497981(0x15b)][_0x497981(0x166)]),_0x5ce901=new _0x19a12c(this[_0x497981(0x188)][_0x497981(0x166)]),_0x115212=_0x1aeaed[_0x497981(0x16f)],_0x59263c=_0x497981(0x15a)===_0x5e79a2[_0x497981(0x179)]?_0x497981(0x18d):_0x497981(0x18f);_0x1aeaed[_0x497981(0x187)]();const _0x340598=_0x115212-_0x1aeaed[_0x497981(0x16f)]+0x1;this[_0x497981(0x188)][_0x497981(0x166)][_0x497981(0x192)][_0x59263c]=_0x497981(0x159)+(_0x115212-_0x5ce901[_0x497981(0x16f)]-_0x340598)+_0x497981(0x180);}});};this[_0xc9630a(0x195)][_0xc9630a(0x15b)]['on'](_0xc9630a(0x164),_0x40fcc9),this['on'](_0xc9630a(0x18b),()=>{const _0x217b90=_0xc9630a;_0x40fcc9(),this[_0x217b90(0x190)]=new _0x256c2b(this[_0x217b90(0x195)][_0x217b90(0x15b)][_0x217b90(0x166)],()=>{_0x40fcc9();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3069d4=_0x29af;(function(_0x4cec60,_0x425cec){const _0x45c7dc=_0x29af,_0x579ec3=_0x4cec60();while(!![]){try{const _0x38fb4d=-parseInt(_0x45c7dc(0x86))/0x1+parseInt(_0x45c7dc(0x76))/0x2+parseInt(_0x45c7dc(0xa5))/0x3+-parseInt(_0x45c7dc(0x79))/0x4*(parseInt(_0x45c7dc(0xa2))/0x5)+-parseInt(_0x45c7dc(0x94))/0x6+parseInt(_0x45c7dc(0x7c))/0x7+parseInt(_0x45c7dc(0x97))/0x8*(parseInt(_0x45c7dc(0x9b))/0x9);if(_0x38fb4d===_0x425cec)break;else _0x579ec3['push'](_0x579ec3['shift']());}catch(_0x493603){_0x579ec3['push'](_0x579ec3['shift']());}}}(_0x6bfb,0xe40c4));function _0x29af(_0x12cc5d,_0x43ccb0){const _0x6bfb56=_0x6bfb();return _0x29af=function(_0x29af5b,_0x14a678){_0x29af5b=_0x29af5b-0x76;let _0x3be65c=_0x6bfb56[_0x29af5b];return _0x3be65c;},_0x29af(_0x12cc5d,_0x43ccb0);}import{View as _0x302aad,ViewCollection as _0x470d19}from'ckeditor5/src/ui.js';import{uid as _0x2ba492}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x38a32f}from'./aichatcontextresourceslistview.js';function _0x6bfb(){const _0x2648e3=['aiChatResources','2810532PwlATX','_searchSection','_createSkeletonView','976WlMwTg','ck\x20ck-search','_skeletonLoader','12626481AMYpYM','set','source','extendTemplate','searchInputVisibleFrom','render','_searchView','getQuery','add','useDefaultFiltering','944573dckYdL','setTemplate','locale','highlightText','_searchInputVisibleFrom','bindTemplate','fire','loadSourceResources','_createSearchView','length','has','setResources','updateResourceState','_source','2485206uzIbLA','loadResources','_createResourcesListView','872ePpEOp','_latestLoadResourcesUid','ck-hidden','_createSearchSection','67761buQvqk','search','children','delegate','_resourcesListView','div','ck-ai-chat-resources','36115uckixp','isLoading','addResourceToContext','76680xyjciK'];_0x6bfb=function(){return _0x2648e3;};return _0x6bfb();}import{AIChatContextResourcesSearchInputView as _0x51a8bd}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x400544,SKELETON_DEFINITIONS as _0x2fbdb7}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x302aad{[_0x3069d4(0x82)];[_0x3069d4(0x77)];[_0x3069d4(0x8a)];[_0x3069d4(0x9f)];[_0x3069d4(0x7b)];[_0x3069d4(0x93)];[_0x3069d4(0x9d)];[_0x3069d4(0x98)]=null;constructor(_0x384c2b,_0x14329e){const _0x52e0aa=_0x3069d4;super(_0x384c2b),this[_0x52e0aa(0x93)]=_0x14329e[_0x52e0aa(0x7e)],this[_0x52e0aa(0x8a)]=_0x14329e[_0x52e0aa(0x80)]??0x7,this[_0x52e0aa(0x7d)](_0x52e0aa(0xa3),!0x0),this[_0x52e0aa(0x82)]=this[_0x52e0aa(0x8e)](),this[_0x52e0aa(0x77)]=this[_0x52e0aa(0x9a)](),this[_0x52e0aa(0x9f)]=this[_0x52e0aa(0x96)](),this[_0x52e0aa(0x7b)]=this[_0x52e0aa(0x78)](),this[_0x52e0aa(0x9d)]=new _0x470d19([this[_0x52e0aa(0x7b)],this[_0x52e0aa(0x9f)]]),this[_0x52e0aa(0x87)]({'tag':_0x52e0aa(0xa0),'attributes':{'class':_0x52e0aa(0xa1)},'children':this[_0x52e0aa(0x9d)]});}[_0x3069d4(0x8e)](){const _0x12996d=_0x3069d4;return new _0x51a8bd(this[_0x12996d(0x88)]);}[_0x3069d4(0x9a)](){const _0x39ceb3=_0x3069d4,_0x9528c8=new _0x302aad(this[_0x39ceb3(0x88)]);return _0x9528c8[_0x39ceb3(0x87)]({'tag':_0x39ceb3(0xa0),'attributes':{'class':_0x39ceb3(0x7a)},'children':[this[_0x39ceb3(0x82)]]}),this[_0x39ceb3(0x82)]['on'](_0x39ceb3(0x9c),(_0x523907,_0x49e81a)=>{const _0x318ee4=_0x39ceb3;this[_0x318ee4(0x95)](_0x49e81a),this[_0x318ee4(0x93)][_0x318ee4(0x85)]&&this[_0x318ee4(0x9f)][_0x318ee4(0x89)](_0x49e81a);}),_0x9528c8;}[_0x3069d4(0x96)](){const _0x4bfcc3=_0x3069d4,_0x312f58=new _0x38a32f(this[_0x4bfcc3(0x88)],this[_0x4bfcc3(0x93)]);return _0x312f58[_0x4bfcc3(0x9e)](_0x4bfcc3(0xa4))['to'](this),_0x312f58[_0x4bfcc3(0x7f)]({'attributes':{'class':this[_0x4bfcc3(0x8b)]['if'](_0x4bfcc3(0xa3),_0x4bfcc3(0x99))}}),_0x312f58;}[_0x3069d4(0x78)](){const _0x1352b7=_0x3069d4,_0x5f164f=new _0x400544(this[_0x1352b7(0x88)],_0x2fbdb7[_0x1352b7(0xa6)]);return _0x5f164f[_0x1352b7(0x7f)]({'attributes':{'class':[this[_0x1352b7(0x8b)]['if'](_0x1352b7(0xa3),_0x1352b7(0x99),_0x2d3906=>!_0x2d3906)]}}),_0x5f164f;}[_0x3069d4(0x81)](){const _0x4e9222=_0x3069d4;super[_0x4e9222(0x81)](),this[_0x4e9222(0x95)]('');}[_0x3069d4(0x95)](_0x5f58c3){const _0x5e0233=_0x3069d4,_0x1db901=_0x2ba492();this[_0x5e0233(0x98)]=_0x1db901,this[_0x5e0233(0x8c)](_0x5e0233(0x8d),{'sourceId':this[_0x5e0233(0x93)]['id'],'query':_0x5f58c3,'uid':_0x1db901}),this[_0x5e0233(0xa3)]=!0x0;}[_0x3069d4(0x91)](_0x38afbb,_0x144091){const _0xe107f4=_0x3069d4;if(_0x144091&&_0x144091!==this[_0xe107f4(0x98)])return;const _0x18a2c6=this[_0xe107f4(0x93)][_0xe107f4(0x85)]?this[_0xe107f4(0x82)][_0xe107f4(0x83)]():'';this[_0xe107f4(0x9f)][_0xe107f4(0x91)](_0x38afbb,_0x18a2c6),_0x38afbb[_0xe107f4(0x8f)]>=this[_0xe107f4(0x8a)]&&!this[_0xe107f4(0x9d)][_0xe107f4(0x90)](this[_0xe107f4(0x77)])&&this[_0xe107f4(0x9d)][_0xe107f4(0x84)](this[_0xe107f4(0x77)],0x0),requestAnimationFrame(()=>{const _0x2d9e33=_0xe107f4;this[_0x2d9e33(0xa3)]=!0x1;});}[_0x3069d4(0x92)](_0x55b2c6,_0x1069de){const _0x3df587=_0x3069d4;this[_0x3df587(0x9f)][_0x3df587(0x92)](_0x55b2c6,_0x1069de);}}
23
+ const _0x2512bf=_0x44c8;(function(_0x1c7a3b,_0x7eb38a){const _0x52d363=_0x44c8,_0x5c92df=_0x1c7a3b();while(!![]){try{const _0x34b661=parseInt(_0x52d363(0x15f))/0x1*(parseInt(_0x52d363(0x148))/0x2)+parseInt(_0x52d363(0x15a))/0x3*(parseInt(_0x52d363(0x16e))/0x4)+-parseInt(_0x52d363(0x164))/0x5+parseInt(_0x52d363(0x152))/0x6+parseInt(_0x52d363(0x140))/0x7*(parseInt(_0x52d363(0x15e))/0x8)+-parseInt(_0x52d363(0x141))/0x9*(parseInt(_0x52d363(0x149))/0xa)+parseInt(_0x52d363(0x170))/0xb*(-parseInt(_0x52d363(0x14b))/0xc);if(_0x34b661===_0x7eb38a)break;else _0x5c92df['push'](_0x5c92df['shift']());}catch(_0x3753e4){_0x5c92df['push'](_0x5c92df['shift']());}}}(_0x4399,0x92af0));import{View as _0x382cd2,ViewCollection as _0x23bee4}from'ckeditor5/src/ui.js';import{uid as _0x2c5264}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x11bb64}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x21cd9c}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x55e18c,SKELETON_DEFINITIONS as _0x43f9f8}from'../../../../aicore/ui/aiskeleton.js';function _0x4399(){const _0x364d36=['search','_skeletonLoader','extendTemplate','loadResources','set','3xuTXBd','render','ck\x20ck-search','bindTemplate','193096jCxnXJ','184UFTggw','locale','setTemplate','aiChatResources','children','5341245vgfCVh','highlightText','setResources','_searchSection','add','_resourcesListView','searchInputVisibleFrom','fire','useDefaultFiltering','_latestLoadResourcesUid','3507136wWKteP','length','1895113RxXJIB','_createSkeletonView','ck-hidden','delegate','231Ufrsps','8064153vxUkeG','_createResourcesListView','div','source','_searchInputVisibleFrom','_source','_searchView','4786LoXnkk','10naIIsd','getQuery','24CzmODm','_createSearchView','loadSourceResources','has','isLoading','addResourceToContext','updateResourceState','4776186WGsfWh','_createSearchSection','ck-ai-chat-resources'];_0x4399=function(){return _0x364d36;};return _0x4399();}function _0x44c8(_0x1ea1d2,_0xd696f8){const _0x43991f=_0x4399();return _0x44c8=function(_0x44c88f,_0x2103b4){_0x44c88f=_0x44c88f-0x13d;let _0x186dcf=_0x43991f[_0x44c88f];return _0x186dcf;},_0x44c8(_0x1ea1d2,_0xd696f8);}export class AIChatContextResourcesView extends _0x382cd2{[_0x2512bf(0x147)];[_0x2512bf(0x167)];[_0x2512bf(0x145)];[_0x2512bf(0x169)];[_0x2512bf(0x156)];[_0x2512bf(0x146)];[_0x2512bf(0x163)];[_0x2512bf(0x16d)]=null;constructor(_0x58865a,_0x59a0ff){const _0x3a338e=_0x2512bf;super(_0x58865a),this[_0x3a338e(0x146)]=_0x59a0ff[_0x3a338e(0x144)],this[_0x3a338e(0x145)]=_0x59a0ff[_0x3a338e(0x16a)]??0x7,this[_0x3a338e(0x159)](_0x3a338e(0x14f),!0x0),this[_0x3a338e(0x147)]=this[_0x3a338e(0x14c)](),this[_0x3a338e(0x167)]=this[_0x3a338e(0x153)](),this[_0x3a338e(0x169)]=this[_0x3a338e(0x142)](),this[_0x3a338e(0x156)]=this[_0x3a338e(0x13d)](),this[_0x3a338e(0x163)]=new _0x23bee4([this[_0x3a338e(0x156)],this[_0x3a338e(0x169)]]),this[_0x3a338e(0x161)]({'tag':_0x3a338e(0x143),'attributes':{'class':_0x3a338e(0x154)},'children':this[_0x3a338e(0x163)]});}[_0x2512bf(0x14c)](){const _0x4c60e9=_0x2512bf;return new _0x21cd9c(this[_0x4c60e9(0x160)]);}[_0x2512bf(0x153)](){const _0xe620ea=_0x2512bf,_0x437946=new _0x382cd2(this[_0xe620ea(0x160)]);return _0x437946[_0xe620ea(0x161)]({'tag':_0xe620ea(0x143),'attributes':{'class':_0xe620ea(0x15c)},'children':[this[_0xe620ea(0x147)]]}),this[_0xe620ea(0x147)]['on'](_0xe620ea(0x155),(_0x2e8804,_0x2727f5)=>{const _0x5c69f7=_0xe620ea;this[_0x5c69f7(0x158)](_0x2727f5),this[_0x5c69f7(0x146)][_0x5c69f7(0x16c)]&&this[_0x5c69f7(0x169)][_0x5c69f7(0x165)](_0x2727f5);}),_0x437946;}[_0x2512bf(0x142)](){const _0xc95a91=_0x2512bf,_0x486ac1=new _0x11bb64(this[_0xc95a91(0x160)],this[_0xc95a91(0x146)]);return _0x486ac1[_0xc95a91(0x13f)](_0xc95a91(0x150))['to'](this),_0x486ac1[_0xc95a91(0x157)]({'attributes':{'class':this[_0xc95a91(0x15d)]['if'](_0xc95a91(0x14f),_0xc95a91(0x13e))}}),_0x486ac1;}[_0x2512bf(0x13d)](){const _0x83c50c=_0x2512bf,_0x65fb4c=new _0x55e18c(this[_0x83c50c(0x160)],_0x43f9f8[_0x83c50c(0x162)]);return _0x65fb4c[_0x83c50c(0x157)]({'attributes':{'class':[this[_0x83c50c(0x15d)]['if'](_0x83c50c(0x14f),_0x83c50c(0x13e),_0x4056f9=>!_0x4056f9)]}}),_0x65fb4c;}[_0x2512bf(0x15b)](){const _0x1af265=_0x2512bf;super[_0x1af265(0x15b)](),this[_0x1af265(0x158)]('');}[_0x2512bf(0x158)](_0x1fd42f){const _0x382c1c=_0x2512bf,_0x5ea68d=_0x2c5264();this[_0x382c1c(0x16d)]=_0x5ea68d,this[_0x382c1c(0x16b)](_0x382c1c(0x14d),{'sourceId':this[_0x382c1c(0x146)]['id'],'query':_0x1fd42f,'uid':_0x5ea68d}),this[_0x382c1c(0x14f)]=!0x0;}[_0x2512bf(0x166)](_0x6dced8,_0x276612){const _0x1ba271=_0x2512bf;if(_0x276612&&_0x276612!==this[_0x1ba271(0x16d)])return;const _0x4672ec=this[_0x1ba271(0x146)][_0x1ba271(0x16c)]?this[_0x1ba271(0x147)][_0x1ba271(0x14a)]():'';this[_0x1ba271(0x169)][_0x1ba271(0x166)](_0x6dced8,_0x4672ec),_0x6dced8[_0x1ba271(0x16f)]>=this[_0x1ba271(0x145)]&&!this[_0x1ba271(0x163)][_0x1ba271(0x14e)](this[_0x1ba271(0x167)])&&this[_0x1ba271(0x163)][_0x1ba271(0x168)](this[_0x1ba271(0x167)],0x0),requestAnimationFrame(()=>{const _0x2f1e08=_0x1ba271;this[_0x2f1e08(0x14f)]=!0x1;});}[_0x2512bf(0x151)](_0x4ba82a,_0x3aa8c3){const _0x3b04a7=_0x2512bf;this[_0x3b04a7(0x169)][_0x3b04a7(0x151)](_0x4ba82a,_0x3aa8c3);}}