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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) 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/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  13. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  14. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  15. package/src/aiballoon/ui/aiballoonview.js +1 -1
  16. package/src/aichat/aichat.js +1 -1
  17. package/src/aichat/aichatcontroller.js +1 -1
  18. package/src/aichat/aichatui.js +1 -1
  19. package/src/aichat/model/aichatcontext.js +1 -1
  20. package/src/aichat/model/aichatconversation.js +1 -1
  21. package/src/aichat/model/aichatinteraction.js +1 -1
  22. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  23. package/src/aichat/ui/aichatfeedview.js +1 -1
  24. package/src/aichat/ui/aichatheaderview.js +1 -1
  25. package/src/aichat/ui/aichatview.js +1 -1
  26. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  27. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  28. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  29. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  30. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  31. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  32. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  33. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  34. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  35. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  36. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  37. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  38. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  39. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  40. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  41. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  42. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  43. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  44. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  45. package/src/aichathistory/aichathistory.js +1 -1
  46. package/src/aichathistory/aichathistorycontroller.js +1 -1
  47. package/src/aichathistory/aichathistoryui.js +1 -1
  48. package/src/aichathistory/model/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/aiediting.js +1 -1
  53. package/src/aicore/model/aiinteraction.js +1 -1
  54. package/src/aicore/model/aimodels.js +1 -1
  55. package/src/aicore/model/aireply.js +1 -1
  56. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  57. package/src/aicore/pipeline/airesponseparser.js +2 -2
  58. package/src/aicore/ui/aidisclaimerview.js +1 -1
  59. package/src/aicore/ui/aiskeleton.js +1 -1
  60. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  61. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  62. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  63. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  64. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  65. package/src/aicore/utils/documentrange.js +1 -1
  66. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  67. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  68. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  69. package/src/aicore/utils/htmlparser.js +1 -1
  70. package/src/aicore/utils/htmlstreamer.js +1 -1
  71. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  72. package/src/aiquickactions/aiquickactionsui.js +1 -1
  73. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  74. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  75. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  76. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  77. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  78. package/src/aireviewmode/aireviewmodeui.js +1 -1
  79. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  80. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  81. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  82. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  83. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  84. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  85. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  86. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  87. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  88. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  89. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  90. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  91. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  92. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  93. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  94. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  95. package/src/aitabs/aitabs.js +1 -1
  96. package/src/aitabs/tabs/aitabsview.js +1 -1
  97. 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 _0x331c88=_0x3bf2;(function(_0xfb714c,_0x384375){const _0x2678bd=_0x3bf2,_0x2c1064=_0xfb714c();while(!![]){try{const _0x5a3be3=-parseInt(_0x2678bd(0xc7))/0x1*(-parseInt(_0x2678bd(0xe6))/0x2)+-parseInt(_0x2678bd(0xc1))/0x3*(parseInt(_0x2678bd(0xed))/0x4)+-parseInt(_0x2678bd(0xf2))/0x5*(-parseInt(_0x2678bd(0xa2))/0x6)+parseInt(_0x2678bd(0x8d))/0x7*(-parseInt(_0x2678bd(0xc3))/0x8)+-parseInt(_0x2678bd(0x6f))/0x9+-parseInt(_0x2678bd(0xa6))/0xa*(parseInt(_0x2678bd(0x87))/0xb)+parseInt(_0x2678bd(0x7b))/0xc*(parseInt(_0x2678bd(0xf9))/0xd);if(_0x5a3be3===_0x384375)break;else _0x2c1064['push'](_0x2c1064['shift']());}catch(_0x452f4b){_0x2c1064['push'](_0x2c1064['shift']());}}}(_0x3099,0x308e9));function _0x3bf2(_0x7971e1,_0x4bc379){const _0x30990a=_0x3099();return _0x3bf2=function(_0x3bf2f0,_0x521258){_0x3bf2f0=_0x3bf2f0-0x6f;let _0x2ea22a=_0x30990a[_0x3bf2f0];return _0x2ea22a;},_0x3bf2(_0x7971e1,_0x4bc379);}function _0x3099(){const _0x4998f9=['height','0px','_handleShowMoreButtonClick','cssClasses','1390446PEgJCf','querySelector','controlsButton','execute','10ybFehv','ck-calculation-container','children','tagName','forEach','some','_distributeChips','hideBalloonPanel','_restoreAncestorVisibility','pointerEvents','_createShowMoreButtonView','visible','getBoundingClientRect','includes','reorganizeChips','body','disableAnimationOnEnter','zIndex','clear','_isContainerVisible','destroy','_containerElement','-9999px','_bodyCollection','setContainerElement','toLowerCase','bottom','3Uvznjw','position','24120yFhUZy','_createShowMoreButton','50px','none','16iyUKWr','innerHTML','style','push','pin','left','show','from','width','_setupVisibilityObserver','div','button','disconnect','element','abs','_overflowChips','top','pop','parentElement','filter','_pendingCalculation','calculationContainer','_checkAndHandleOverflow','offsetWidth','maxVisibleRows','_config','opacity','visibility','remove','_ancestorsToRestore','overflowChips','17594HAgHcM','content','_renderChipsAndCountRows','label','observe','+\x201','300px','1299636GORNbA','render','_locale','showMoreButton','length','5fIupzv','clientWidth','boxSizing','rowDetectionTolerance','isIntersecting','display','_calculateContainerWidth','525668PFIXFE','_showMoreButtonView','isVisible','setTemplate','_applyOverflowResults','createElement','isConnected','_calculateOverflowInContainer','_createShowMoreBalloonPanelView','isOn','_findTargetContainer','add','hidden','750321EEliZW','border-box','block','.ck-ai-chat','cloneNode','overflowContainer','getComputedStyle','appendChild','_createMockButton','_updateShowMoreButtonVisibility','_createCalculationContainer','innerHeight','240SgYSVC','classList','right','_parentView','slice','absolute','_repinBalloonPanel','_createContainerElements','_makeAncestorsVisible','set','_targetContainer','_applyCalculationStyles','2235211sGVSRu','showMoreBalloon','_visibleChips','textContent','showBalloonPanel','documentElement','861rGPcfA','_showMoreBalloonPanelView','showMoreLabelPrefix','innerWidth','block\x20!important','extendTemplate','className','undefined','hide','clientHeight','_intersectionObserver','visible\x20!important','_testButtonFit','_updateOverflowUI','auto','showMoreButtonView','_updateBalloonContent'];_0x3099=function(){return _0x4998f9;};return _0x3099();}import{View as _0x27c4c3,BalloonPanelView as _0x1e4904,ButtonView as _0x18472b,clickOutsideHandler as _0x1f79a0}from'ckeditor5/src/ui.js';import{Collection as _0x392554}from'ckeditor5/src/utils.js';const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},dn=_0x331c88(0xec);export class AIChatChipsOverflowManager{[_0x331c88(0xef)];[_0x331c88(0xe0)];[_0x331c88(0x89)];[_0x331c88(0xd6)];[_0x331c88(0xfa)]=null;[_0x331c88(0x8e)]=null;[_0x331c88(0xbb)]=null;[_0x331c88(0xbd)];[_0x331c88(0x7e)]=null;[_0x331c88(0x97)]=null;[_0x331c88(0xdb)]=!0x1;constructor(_0x5d093b,_0x26b5c6,_0x598684,_0x2fe18b,_0x5e6fe0){const _0x54505f=_0x331c88;this[_0x54505f(0xef)]=_0x5d093b,this[_0x54505f(0x89)]=_0x26b5c6,this[_0x54505f(0xe0)]={...wn,..._0x598684,'cssClasses':{'controlsButton':'','calculationContainer':_0x54505f(0xa7),..._0x598684[_0x54505f(0xa1)]}},this[_0x54505f(0xd6)]=new _0x392554(),this[_0x54505f(0xbd)]=_0x2fe18b,this[_0x54505f(0x7e)]=_0x5e6fe0||null;}[_0x331c88(0xbe)](_0x2c7eb2){const _0x5af7de=_0x331c88;this[_0x5af7de(0x97)]&&(this[_0x5af7de(0x97)][_0x5af7de(0xd3)](),this[_0x5af7de(0x97)]=null),this[_0x5af7de(0xbb)]=_0x2c7eb2,this[_0x5af7de(0xd0)]();}get[_0x331c88(0x9c)](){const _0x201c1d=_0x331c88;return this[_0x201c1d(0xfa)];}get[_0x331c88(0xe5)](){const _0x47ab6c=_0x331c88;return this[_0x47ab6c(0xd6)];}[_0x331c88(0xb4)](){requestAnimationFrame(()=>{const _0x51abef=_0x3bf2;this[_0x51abef(0xdd)]();});}[_0x331c88(0x8b)](){const _0x4aec00=_0x331c88;this[_0x4aec00(0xfa)]&&this[_0x4aec00(0x8e)]&&(this[_0x4aec00(0x9d)](),this[_0x4aec00(0xfa)][_0x4aec00(0x102)]=!0x0,this[_0x4aec00(0x8e)][_0x4aec00(0xcd)](),this[_0x4aec00(0x8e)][_0x4aec00(0xcb)]({'target':this[_0x4aec00(0xfa)][_0x4aec00(0xd4)],'limiter':document[_0x4aec00(0xa3)](_0x4aec00(0x72))}));}[_0x331c88(0xad)](){const _0x30eb7e=_0x331c88;this[_0x30eb7e(0xfa)]&&this[_0x30eb7e(0x8e)]&&(this[_0x30eb7e(0xfa)][_0x30eb7e(0x102)]=!0x1,this[_0x30eb7e(0x8e)][_0x30eb7e(0x95)]());}[_0x331c88(0xb8)](){const _0x5d5a31=_0x331c88;this[_0x5d5a31(0xd6)][_0x5d5a31(0xb8)](),this[_0x5d5a31(0xad)](),this[_0x5d5a31(0x78)](),this[_0x5d5a31(0xfa)]&&(this[_0x5d5a31(0xfa)][_0x5d5a31(0xe9)]=''),this[_0x5d5a31(0x8e)]&&this[_0x5d5a31(0x8e)][_0x5d5a31(0xe7)][_0x5d5a31(0xb8)]();}[_0x331c88(0xba)](){const _0x22ad60=_0x331c88;this[_0x22ad60(0x97)]&&(this[_0x22ad60(0x97)][_0x22ad60(0xd3)](),this[_0x22ad60(0x97)]=null),this[_0x22ad60(0xfa)]&&(this[_0x22ad60(0xfa)][_0x22ad60(0xba)](),this[_0x22ad60(0xfa)]=null),this[_0x22ad60(0x8e)]&&(this[_0x22ad60(0x8e)][_0x22ad60(0xba)](),this[_0x22ad60(0x8e)]=null);}[_0x331c88(0xdd)](){const _0x5e2b9d=_0x331c88;if(!this[_0x5e2b9d(0xbb)])return;if(!this[_0x5e2b9d(0xb9)]())return void(this[_0x5e2b9d(0xdb)]=!0x0);this[_0x5e2b9d(0xdb)]=!0x1;const _0xbc7b72=[...this[_0x5e2b9d(0x89)],...this[_0x5e2b9d(0xd6)]],_0x1eb479=this[_0x5e2b9d(0x79)](),_0x568ade=this[_0x5e2b9d(0x100)](_0x1eb479,_0xbc7b72),_0x160f54=_0x1eb479[_0x5e2b9d(0xe4)];_0x160f54&&this[_0x5e2b9d(0xae)](_0x160f54),_0x1eb479[_0x5e2b9d(0xe3)](),this[_0x5e2b9d(0xfd)](_0xbc7b72,_0x568ade);}[_0x331c88(0xc4)](){const _0x2edb21=_0x331c88;this[_0x2edb21(0xfa)]=this[_0x2edb21(0xb0)](),this[_0x2edb21(0x8e)]=this[_0x2edb21(0x101)](),this[_0x2edb21(0xfa)][_0x2edb21(0xee)](),this[_0x2edb21(0xbb)][_0x2edb21(0x76)](this[_0x2edb21(0xfa)][_0x2edb21(0xd4)]),this[_0x2edb21(0xfa)]['on'](_0x2edb21(0xa5),()=>{const _0x23138d=_0x2edb21;this[_0x23138d(0xa0)]();}),_0x1f79a0({'emitter':this[_0x2edb21(0x8e)],'contextElements':[this[_0x2edb21(0x8e)][_0x2edb21(0xd4)],this[_0x2edb21(0xfa)][_0x2edb21(0xd4)]],'callback':()=>this[_0x2edb21(0xad)](),'activator':()=>this[_0x2edb21(0xfa)][_0x2edb21(0x102)]});}[_0x331c88(0xb0)](){const _0x29e494=_0x331c88,_0x2d0a78=new _0x18472b(this[_0x29e494(0xef)]);_0x2d0a78[_0x29e494(0x84)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x113bd4=[this[_0x29e494(0xe0)][_0x29e494(0xa1)][_0x29e494(0xf0)]];return this[_0x29e494(0xe0)][_0x29e494(0xa1)][_0x29e494(0xa4)]&&_0x113bd4[_0x29e494(0xca)](this[_0x29e494(0xe0)][_0x29e494(0xa1)][_0x29e494(0xa4)]),_0x2d0a78[_0x29e494(0x92)]({'attributes':{'class':_0x113bd4}}),_0x2d0a78;}[_0x331c88(0x101)](){const _0x16b52b=_0x331c88,_0x5a27b5=new _0x1e4904(this[_0x16b52b(0xef)]);return _0x5a27b5[_0x16b52b(0x92)]({'attributes':{'class':this[_0x16b52b(0xe0)][_0x16b52b(0xa1)][_0x16b52b(0x88)]}}),this[_0x16b52b(0xbd)][_0x16b52b(0x104)](_0x5a27b5),_0x5a27b5;}[_0x331c88(0x9d)](){const _0x18d0cb=_0x331c88;if(this[_0x18d0cb(0x8e)]&&(this[_0x18d0cb(0x8e)][_0x18d0cb(0xe7)][_0x18d0cb(0xb8)](),this[_0x18d0cb(0xd6)][_0x18d0cb(0xf1)]>0x0)){this[_0x18d0cb(0xd6)][_0x18d0cb(0xaa)](_0xfc7e71=>{const _0x52026f=_0x18d0cb;_0xfc7e71[_0x52026f(0xb6)]();});const _0x146c81=new _0x27c4c3(this[_0x18d0cb(0xef)]);_0x146c81[_0x18d0cb(0xfc)]({'tag':_0x18d0cb(0xd1),'attributes':{'class':this[_0x18d0cb(0xe0)][_0x18d0cb(0xa1)][_0x18d0cb(0x74)]},'children':this[_0x18d0cb(0xd6)]}),this[_0x18d0cb(0x8e)][_0x18d0cb(0xe7)][_0x18d0cb(0x104)](_0x146c81);}}[_0x331c88(0xa0)](){const _0x1378aa=_0x331c88;this[_0x1378aa(0xfa)][_0x1378aa(0x102)]?this[_0x1378aa(0xad)]():this[_0x1378aa(0x8b)]();}[_0x331c88(0x78)](){const _0x43138d=_0x331c88,_0x4dfd70=this[_0x43138d(0xd6)][_0x43138d(0xf1)]>0x0;this[_0x43138d(0xfa)]?.[_0x43138d(0xd4)]&&(this[_0x43138d(0xfa)][_0x43138d(0xd4)][_0x43138d(0xc9)][_0x43138d(0xf7)]=_0x4dfd70?'':_0x43138d(0xc6));}[_0x331c88(0x81)](){const _0x188452=_0x331c88;this[_0x188452(0xfa)]?.[_0x188452(0x102)]&&this[_0x188452(0x8e)]?.[_0x188452(0xfb)]&&this[_0x188452(0xfa)][_0x188452(0xd4)]&&this[_0x188452(0x8e)][_0x188452(0xcb)]({'target':this[_0x188452(0xfa)][_0x188452(0xd4)],'limiter':document[_0x188452(0xa3)](_0x188452(0x72))});}[_0x331c88(0x103)](_0x1deb40){const _0x565ce6=_0x331c88,_0x4f723e=this[_0x565ce6(0xbb)]?.[_0x565ce6(0xa9)][_0x565ce6(0xbf)]()||_0x565ce6(0xd1),_0x41c705=this[_0x565ce6(0xbb)]?.[_0x565ce6(0x7c)];if(_0x41c705){const _0x40a073=_0x41c705[0x0]||'',_0x4a6f66=_0x1deb40[_0x565ce6(0xa3)]('.'+_0x40a073),_0x595be8=_0x1deb40[_0x565ce6(0xa3)](_0x4f723e);return _0x4a6f66||_0x595be8||_0x1deb40;}return _0x1deb40[_0x565ce6(0xa3)](_0x4f723e)||_0x1deb40;}[_0x331c88(0xf8)](){const _0x452567=_0x331c88,_0x341fe2=this[_0x452567(0x7e)]?.[_0x452567(0xd4)]||this[_0x452567(0xbb)];if(!_0x341fe2)return dn;const _0x5cd5e7=window[_0x452567(0x75)](_0x341fe2)[_0x452567(0xcf)];if(_0x452567(0x9b)===_0x5cd5e7||_0x452567(0x9f)===_0x5cd5e7||!_0x5cd5e7){const _0x312ac0=_0x341fe2[_0x452567(0xd9)];if(_0x312ac0){const _0x3852ec=window[_0x452567(0x75)](_0x312ac0);return _0x452567(0x9b)!==_0x3852ec[_0x452567(0xcf)]?_0x3852ec[_0x452567(0xcf)]:dn;}return dn;}return _0x5cd5e7;}[_0x331c88(0x86)](_0x18eca1,_0x4d5228){const _0x222d97=_0x331c88;this[_0x222d97(0xe0)][_0x222d97(0xa1)][_0x222d97(0xdc)]&&_0x18eca1[_0x222d97(0x7c)][_0x222d97(0x104)](this[_0x222d97(0xe0)][_0x222d97(0xa1)][_0x222d97(0xdc)]),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xcf)]=_0x4d5228,_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xc2)]=_0x222d97(0x80),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xd7)]=_0x222d97(0xbc),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xcc)]=_0x222d97(0xbc),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xe1)]='0',_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xaf)]=_0x222d97(0xc6),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xb7)]='-1',_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xe2)]=_0x222d97(0x98),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xf7)]=_0x222d97(0x91),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xf4)]=_0x222d97(0x70);}[_0x331c88(0xae)](_0x2cdf23){const _0x2dcf11=_0x331c88;_0x2cdf23[_0x2dcf11(0xaa)](({element:_0x43b79f,originalDisplay:_0x312e7c,originalVisibility:_0x5b5e46})=>{const _0x1699cf=_0x2dcf11;_0x43b79f[_0x1699cf(0xc9)][_0x1699cf(0xf7)]=_0x312e7c,_0x43b79f[_0x1699cf(0xc9)][_0x1699cf(0xe2)]=_0x5b5e46;});}[_0x331c88(0x83)](_0x58fa24){const _0x23cf0a=_0x331c88,_0x1d78b1=[];let _0x2404cf=_0x58fa24;for(;_0x2404cf&&_0x2404cf!==document[_0x23cf0a(0xb5)];){const _0x2ce972=window[_0x23cf0a(0x75)](_0x2404cf);_0x23cf0a(0xc6)!==_0x2ce972[_0x23cf0a(0xf7)]&&_0x23cf0a(0x105)!==_0x2ce972[_0x23cf0a(0xe2)]||(_0x1d78b1[_0x23cf0a(0xca)]({'element':_0x2404cf,'originalDisplay':_0x2404cf[_0x23cf0a(0xc9)][_0x23cf0a(0xf7)],'originalVisibility':_0x2404cf[_0x23cf0a(0xc9)][_0x23cf0a(0xe2)]}),_0x2404cf[_0x23cf0a(0xc9)][_0x23cf0a(0xf7)]=_0x23cf0a(0x71),_0x2404cf[_0x23cf0a(0xc9)][_0x23cf0a(0xe2)]=_0x23cf0a(0xb1)),_0x2404cf=_0x2404cf[_0x23cf0a(0xd9)];}return _0x1d78b1;}[_0x331c88(0x82)](){const _0x15d5ed=_0x331c88;let _0x2cc2d2,_0x17008d;return this[_0x15d5ed(0x7e)]?.[_0x15d5ed(0xd4)]?(_0x2cc2d2=this[_0x15d5ed(0x7e)][_0x15d5ed(0xd4)][_0x15d5ed(0x73)](!0x0),_0x17008d=this[_0x15d5ed(0x103)](_0x2cc2d2)):(_0x2cc2d2=document[_0x15d5ed(0xfe)](_0x15d5ed(0xd1)),_0x17008d=_0x2cc2d2),{'calculationContainer':_0x2cc2d2,'targetContainer':_0x17008d};}[_0x331c88(0x79)](){const _0x2e7f97=_0x331c88,{calculationContainer:_0x5509f8,targetContainer:_0x363e48}=this[_0x2e7f97(0x82)](),_0xc11d72=this[_0x2e7f97(0xf8)]();this[_0x2e7f97(0x86)](_0x5509f8,_0xc11d72);const _0x49338d=this[_0x2e7f97(0x7e)]?.[_0x2e7f97(0xd4)]||this[_0x2e7f97(0xbb)],_0x5d8bb7=_0x49338d?.[_0x2e7f97(0xd9)];_0x5d8bb7?_0x5d8bb7[_0x2e7f97(0x76)](_0x5509f8):document[_0x2e7f97(0xb5)][_0x2e7f97(0x76)](_0x5509f8),_0x5509f8[_0x2e7f97(0x85)]=_0x363e48;const _0x59f00b=this[_0x2e7f97(0x83)](_0x5d8bb7||null);return _0x5509f8[_0x2e7f97(0xde)],_0x5509f8[_0x2e7f97(0xe4)]=_0x59f00b,_0x5509f8;}[_0x331c88(0x100)](_0x208282,_0x25a548){const _0x112c8d=_0x331c88,_0x2f55a4=_0x208282[_0x112c8d(0x85)]||_0x208282,_0x5307a1=[],{rowCount:_0x2be262}=this[_0x112c8d(0xe8)](_0x2f55a4,_0x25a548);if(_0x2be262<=this[_0x112c8d(0xe0)][_0x112c8d(0xdf)])return _0x5307a1;const _0x4c81fd=_0x25a548[_0x112c8d(0x7f)]();for(;_0x4c81fd[_0x112c8d(0xf1)]>0x0;){if(this[_0x112c8d(0x99)](_0x208282,_0x2f55a4,_0x4c81fd)){const _0xee5eb5=_0x25a548[_0x112c8d(0xda)](_0x450760=>!_0x4c81fd[_0x112c8d(0xb3)](_0x450760));_0x5307a1[_0x112c8d(0xca)](..._0xee5eb5);break;}if(!_0x4c81fd[_0x112c8d(0xd8)]())break;}return _0x5307a1;}[_0x331c88(0xe8)](_0x77f2d,_0x1d4779){const _0x303b83=_0x331c88;_0x77f2d[_0x303b83(0xc8)]='',_0x1d4779[_0x303b83(0xaa)](_0x29d119=>{const _0x19952d=_0x303b83;if(_0x29d119[_0x19952d(0xd4)]){const _0x42b658=_0x29d119[_0x19952d(0xd4)][_0x19952d(0x73)](!0x0);_0x77f2d[_0x19952d(0x76)](_0x42b658);}}),_0x77f2d[_0x303b83(0xde)];const _0x30ef77=_0x77f2d[_0x303b83(0xa8)],_0x370817=[];return Array[_0x303b83(0xce)](_0x30ef77)[_0x303b83(0xaa)](_0x43ffc3=>{const _0x4da1ab=_0x303b83,_0x438ec1=_0x43ffc3[_0x4da1ab(0xb2)]()[_0x4da1ab(0xd7)];_0x370817[_0x4da1ab(0xab)](_0x980efa=>Math[_0x4da1ab(0xd5)](_0x980efa-_0x438ec1)<this[_0x4da1ab(0xe0)][_0x4da1ab(0xf5)])||_0x370817[_0x4da1ab(0xca)](_0x438ec1);}),{'rowCount':_0x370817[_0x303b83(0xf1)]};}[_0x331c88(0x77)](){const _0x57355f=_0x331c88,_0x4fba00=document[_0x57355f(0xfe)](_0x57355f(0xd2));return _0x4fba00[_0x57355f(0x93)]=this[_0x57355f(0xe0)][_0x57355f(0xa1)][_0x57355f(0xf0)],this[_0x57355f(0xe0)][_0x57355f(0xa1)][_0x57355f(0xa4)]&&_0x4fba00[_0x57355f(0x7c)][_0x57355f(0x104)](this[_0x57355f(0xe0)][_0x57355f(0xa1)][_0x57355f(0xa4)]),_0x4fba00[_0x57355f(0x8a)]=_0x57355f(0xeb),_0x4fba00;}[_0x331c88(0x99)](_0x267a05,_0x1542bb,_0x25ec65){const _0x145ca6=_0x331c88;this[_0x145ca6(0xe8)](_0x1542bb,_0x25ec65);const _0x1f439c=this[_0x145ca6(0x77)]();_0x267a05[_0x145ca6(0x76)](_0x1f439c),_0x267a05[_0x145ca6(0xde)];const _0xed7d8e=[..._0x1542bb[_0x145ca6(0xa8)],_0x1f439c],_0xb96c9b=[];_0xed7d8e[_0x145ca6(0xaa)](_0x1464e6=>{const _0x4d5f35=_0x145ca6,_0x34a33a=_0x1464e6[_0x4d5f35(0xb2)]()[_0x4d5f35(0xd7)];_0xb96c9b[_0x4d5f35(0xab)](_0x1a9fc3=>Math[_0x4d5f35(0xd5)](_0x1a9fc3-_0x34a33a)<this[_0x4d5f35(0xe0)][_0x4d5f35(0xf5)])||_0xb96c9b[_0x4d5f35(0xca)](_0x34a33a);});const _0x1b034c=_0xb96c9b[_0x145ca6(0xf1)];return _0x1f439c[_0x145ca6(0xe3)](),_0x1b034c<=this[_0x145ca6(0xe0)][_0x145ca6(0xdf)];}[_0x331c88(0xac)](_0x2d2f8a,_0x4d6747){const _0x4be67b=_0x331c88;this[_0x4be67b(0x89)][_0x4be67b(0xb8)](),this[_0x4be67b(0xd6)][_0x4be67b(0xb8)](),_0x2d2f8a[_0x4be67b(0xaa)](_0x2275f0=>{const _0x36716d=_0x4be67b;_0x4d6747[_0x36716d(0xb3)](_0x2275f0)?this[_0x36716d(0xd6)][_0x36716d(0x104)](_0x2275f0):this[_0x36716d(0x89)][_0x36716d(0x104)](_0x2275f0);});}[_0x331c88(0x9a)](_0x1cc441){const _0x34a834=_0x331c88;if(_0x1cc441>0x0&&!this[_0x34a834(0xfa)]&&this[_0x34a834(0xc4)](),_0x1cc441>0x0&&this[_0x34a834(0xfa)]){const _0x3369cc=''+this[_0x34a834(0xe0)][_0x34a834(0x8f)]+(_0x1cc441<0x63?_0x1cc441:'99');this[_0x34a834(0xfa)][_0x34a834(0xe9)]=_0x3369cc;}this[_0x34a834(0x9d)](),this[_0x34a834(0x78)](),this[_0x34a834(0x81)]();}[_0x331c88(0xfd)](_0x51f016,_0x3d63c5){const _0x210109=_0x331c88;this[_0x210109(0xac)](_0x51f016,_0x3d63c5),this[_0x210109(0x9a)](_0x3d63c5[_0x210109(0xf1)]);}[_0x331c88(0xd0)](){const _0xa0331e=_0x331c88;this[_0xa0331e(0xbb)]&&_0xa0331e(0x94)!=typeof IntersectionObserver&&(this[_0xa0331e(0x97)]=new IntersectionObserver(_0x158fec=>{const _0x3aae12=_0xa0331e;_0x158fec[0x0][_0x3aae12(0xf6)]&&this[_0x3aae12(0xdb)]&&requestAnimationFrame(()=>{const _0x1806bc=_0x3aae12;this[_0x1806bc(0xdd)]();});},{'threshold':0.01,'rootMargin':_0xa0331e(0xc5)}),this[_0xa0331e(0x97)][_0xa0331e(0xea)](this[_0xa0331e(0xbb)]));}[_0x331c88(0xb9)](){const _0x1a40b3=_0x331c88;if(!this[_0x1a40b3(0xbb)])return!0x1;if(!this[_0x1a40b3(0xbb)][_0x1a40b3(0xff)])return!0x1;const _0x467466=this[_0x1a40b3(0xbb)][_0x1a40b3(0xb2)]();if(0x0===_0x467466[_0x1a40b3(0xcf)]||0x0===_0x467466[_0x1a40b3(0x9e)])return!0x1;const _0x1326b3=window[_0x1a40b3(0x7a)]||document[_0x1a40b3(0x8c)][_0x1a40b3(0x96)],_0x307c34=window[_0x1a40b3(0x90)]||document[_0x1a40b3(0x8c)][_0x1a40b3(0xf3)],_0x371d68=0xc8;return _0x467466[_0x1a40b3(0xc0)]>=-0xc8&&_0x467466[_0x1a40b3(0xd7)]<=_0x1326b3+_0x371d68&&_0x467466[_0x1a40b3(0x7d)]>=-0xc8&&_0x467466[_0x1a40b3(0xcc)]<=_0x307c34+_0x371d68;}}
@@ -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 _0x3bf021=_0x8c7c;(function(_0x3e03fa,_0x4c3d97){const _0x507721=_0x8c7c,_0xf483cd=_0x3e03fa();while(!![]){try{const _0x12c918=parseInt(_0x507721(0x194))/0x1+-parseInt(_0x507721(0x198))/0x2+parseInt(_0x507721(0x17e))/0x3*(parseInt(_0x507721(0x183))/0x4)+parseInt(_0x507721(0x1b6))/0x5*(parseInt(_0x507721(0x1ac))/0x6)+parseInt(_0x507721(0x199))/0x7+parseInt(_0x507721(0x1ad))/0x8+-parseInt(_0x507721(0x1b5))/0x9;if(_0x12c918===_0x4c3d97)break;else _0xf483cd['push'](_0xf483cd['shift']());}catch(_0x4cd0af){_0xf483cd['push'](_0xf483cd['shift']());}}}(_0x41b5,0x230d6));import{ButtonView as _0x476231,IconView as _0x3ec978}from'ckeditor5/src/ui.js';function _0x41b5(){const _0x290895=['length','_createTemplateAttributes','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','1220466XgUghX','1683760ktFVZz','ck-ai-chat-context-chip_wide','addEventListener','document','readonly','_createIconView','isVisible','execute','5580459qiPDjk','5ILEiMu','selection','ck-ai-chat-context-chip_new-chip','extendTemplate','ck-hidden','slice','ck-ai-chat-context-chip','div','_createTemplateChildren','63435JAhKtr','type','ck-ai-chat-context-chip_document','_setupTemplate','disableAnimationOnEnter','28QVxbVc','setTemplate','_isAnimationOnEnterEnabled','locale','add','element','remove','classList','_initializeProperties','itemType','render','isLoading','webkitAnimationEnd','ck-ai-chat-context-chip__label','_createLabelElement','tooltip','_createLoaderIcon','222952WRWBEq','label','_setupRemoveButtonEvent','lastIndexOf','77596houSAh','123025ClNhaU','small','removeEventListener','ck-ai-chat-context-controls__chip-tooltip','span','uiId','_handleAnimationEndOnce','_createRemoveButton','animationend','removeContextItemChip','ck-ai-chat-context-chip__type-icon','bindTemplate','content','bind','set','fire'];_0x41b5=function(){return _0x290895;};return _0x41b5();}import{IconClose as _0x54b4cd,IconDocument as _0x19e414,IconFileUpload as _0x5d04e3,IconLink as _0x4120f7,IconSelection as _0x448e43}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x46cccd}from'../../../aicore/utils/common-translations.js';function _0x8c7c(_0x1bf45f,_0x1735e1){const _0x41b50c=_0x41b5();return _0x8c7c=function(_0x8c7cb6,_0x1b37f5){_0x8c7cb6=_0x8c7cb6-0x17a;let _0x54b0c1=_0x41b50c[_0x8c7cb6];return _0x54b0c1;},_0x8c7c(_0x1bf45f,_0x1735e1);}import{AISpinnerView as _0x1b1c51}from'../../../aicore/ui/aispinner.js';const bn={'file':_0x5d04e3,'document':_0x19e414,'web-resource':_0x4120f7,'text':_0x5d04e3,'selection':_0x448e43},Tn=_0x3bf021(0x17b),En=_0x3bf021(0x1ae),fn=_0x3bf021(0x180),An=_0x3bf021(0x190),Cn=_0x3bf021(0x1a3),In=_0x3bf021(0x19c),On='n';export class AIChatContextItemButtonView extends _0x476231{constructor(_0x285e62,_0x5db53b,_0x163c67,_0x1855a5,_0x952568=!0x1){const _0x4d01f5=_0x3bf021;super(_0x285e62),this[_0x4d01f5(0x185)]=_0x1855a5,this[_0x4d01f5(0x18b)](_0x5db53b,_0x163c67,_0x952568),this[_0x4d01f5(0x181)]();}[_0x3bf021(0x18d)](){const _0x546d85=_0x3bf021;super[_0x546d85(0x18d)](),this[_0x546d85(0x185)]&&this[_0x546d85(0x188)]&&(this[_0x546d85(0x188)][_0x546d85(0x18a)][_0x546d85(0x187)](_0x546d85(0x1b8)),this[_0x546d85(0x19f)](this[_0x546d85(0x188)],()=>{const _0x41bde6=_0x546d85;this[_0x41bde6(0x188)]&&this[_0x41bde6(0x188)][_0x41bde6(0x18a)][_0x41bde6(0x189)](_0x41bde6(0x1b8));}));}[_0x3bf021(0x182)](){const _0x205580=_0x3bf021;this[_0x205580(0x185)]=!0x1,this[_0x205580(0x188)]&&this[_0x205580(0x188)][_0x205580(0x18a)][_0x205580(0x189)](_0x205580(0x1b8));}[_0x3bf021(0x18b)](_0x2590eb,_0x1ae251,_0x5d57b5){const _0x3f48a3=_0x3bf021;this[_0x3f48a3(0x1a7)](_0x3f48a3(0x195),_0x2590eb[_0x3f48a3(0x195)]),this[_0x3f48a3(0x1a7)](_0x3f48a3(0x192),!0x0),this[_0x3f48a3(0x1a7)](_0x3f48a3(0x18c),_0x2590eb[_0x3f48a3(0x17f)]),this[_0x3f48a3(0x1a7)]('id',_0x2590eb[_0x3f48a3(0x19e)]),this[_0x3f48a3(0x1a7)](_0x3f48a3(0x1b1),_0x1ae251),this[_0x3f48a3(0x1a7)](_0x3f48a3(0x18e),_0x5d57b5);}[_0x3bf021(0x181)](){const _0x40bef9=_0x3bf021,_0x40ef8b=this[_0x40bef9(0x1b2)](),_0x4cc636=this[_0x40bef9(0x1a0)](),_0x21dec6=this[_0x40bef9(0x1a4)];this[_0x40bef9(0x184)]({'tag':_0x40bef9(0x17c),'attributes':this[_0x40bef9(0x1aa)](_0x21dec6),'children':this[_0x40bef9(0x17d)](_0x40ef8b,_0x4cc636,_0x21dec6)});}[_0x3bf021(0x1aa)](_0x446109){const _0xa134b9=_0x3bf021;return{'class':[Tn,_0x446109['if'](_0xa134b9(0x18c),fn,_0x3a05af=>_0xa134b9(0x1b0)==_0x3a05af),_0x446109['if'](_0xa134b9(0x18c),En,_0x55c67a=>_0xa134b9(0x1b7)==_0x55c67a)],'data-cke-tooltip-text':_0x446109['to'](_0xa134b9(0x195),gn),'data-cke-tooltip-position':On,'data-cke-tooltip-class':In};}[_0x3bf021(0x17d)](_0x3031e0,_0x334ef1,_0x484f5a){const _0x38963c=_0x3bf021,_0x380ddf=this[_0x38963c(0x191)](_0x484f5a),_0x28fe00=this[_0x38963c(0x193)]();return this[_0x38963c(0x1b1)]?[_0x3031e0,_0x380ddf]:[_0x3031e0,_0x28fe00,_0x380ddf,_0x334ef1];}[_0x3bf021(0x191)](_0x528faf){const _0x5d7d25=_0x3bf021;return{'tag':_0x5d7d25(0x19d),'attributes':{'class':An},'children':[{'text':_0x528faf['to'](_0x5d7d25(0x195))}]};}[_0x3bf021(0x1a0)](){const _0x40dac0=_0x3bf021,_0x31df5b=new _0x476231(this[_0x40dac0(0x186)]);return _0x31df5b[_0x40dac0(0x1a7)]({'label':_0x46cccd(this[_0x40dac0(0x186)],_0x40dac0(0x1ab)),'icon':_0x54b4cd}),this[_0x40dac0(0x196)](_0x31df5b),_0x31df5b;}[_0x3bf021(0x196)](_0x391035){const _0x40c175=_0x3bf021;_0x391035['on'](_0x40c175(0x1b4),()=>{const _0x5601f2=_0x40c175;this[_0x5601f2(0x1a8)](_0x5601f2(0x1a2),this['id']);});}[_0x3bf021(0x1b2)](){const _0x1411cb=_0x3bf021,_0x48c054=this[_0x1411cb(0x1a4)],_0x5aea0a=new _0x3ec978();return _0x5aea0a[_0x1411cb(0x1a5)]=bn[this[_0x1411cb(0x18c)]],_0x5aea0a[_0x1411cb(0x1b9)]({'attributes':{'class':[Cn,_0x48c054['if'](_0x1411cb(0x18e),_0x1411cb(0x1ba),_0x8d08dc=>_0x8d08dc)]}}),_0x5aea0a;}[_0x3bf021(0x19f)](_0x54efb3,_0x52bb45){const _0x8a5d65=_0x3bf021;if(!_0x54efb3)return;const _0x337f3b=()=>{const _0x4e9612=_0x8c7c;_0x52bb45(),_0x54efb3[_0x4e9612(0x19b)](_0x4e9612(0x1a1),_0x337f3b),_0x54efb3[_0x4e9612(0x19b)](_0x4e9612(0x18f),_0x337f3b);};_0x54efb3[_0x8a5d65(0x1af)](_0x8a5d65(0x1a1),_0x337f3b),_0x54efb3[_0x8a5d65(0x1af)](_0x8a5d65(0x18f),_0x337f3b);}[_0x3bf021(0x193)](){const _0x53c1e4=_0x3bf021,_0x3cdfb3=new _0x1b1c51(_0x53c1e4(0x19a));return _0x3cdfb3[_0x53c1e4(0x1a6)](_0x53c1e4(0x1b3))['to'](this,_0x53c1e4(0x18e),_0x289461=>_0x289461),_0x3cdfb3;}}function gn(_0x48c3fc){const _0x34a994=_0x3bf021;if(!_0x48c3fc)return _0x48c3fc;if(_0x48c3fc[_0x34a994(0x1a9)]<=0x78)return _0x48c3fc;const _0x2bd835=_0x48c3fc[_0x34a994(0x17a)](0x0,0x78),_0x3c2cda=_0x2bd835[_0x34a994(0x197)]('\x20');return(_0x3c2cda>0x0?_0x2bd835[_0x34a994(0x17a)](0x0,_0x3c2cda):_0x2bd835)+'…';}
@@ -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 _0x336f(){const _0x285d88=['_createUrlInputField','12582900TeBpfx','tab','fieldView','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','ck-labeled-field-view_empty','AI_CHAT_CONTEXT_URL_ADD_URL','shift+tab','trim','_createConfirmButton','ck-button-icon\x20ck-button-back','_isValidUrl','AI_CHAT_CONTEXT_URL_INVALID_ERROR','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','input','children','1432632WESBDR','form','61604vyHziA','setTemplate','locale','ck-button-icon','stop','3709062ekUjsz','cancel','focusCycler','_setupKeystrokes','confirmButton','execute','div','errorText','add','destroy','AI_CHAT_CONTEXT_URL_PLACEHOLDER','ck-ai-chat-context-controls__url-input-section','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_focusables','clear','listenTo','_setupEventHandlers','129765FHxMWu','element','_updateConfirmButtonState','length','submit','forEach','keystrokes','1029NPZfEo','focusTracker','setError','render','ck-ai-chat-context-controls__url-form','AI_CHAT_CONTEXT_URL_LABEL','value','_setupTemplate','backButton','esc','410gNhvhy','refreshBalloon','fire','1294864RwMggi','focus','getValue','_createBackButton','createCollection','submitUrl','_handleSubmit','urlInputField','set','59112fojQwT','clearError','isEnabled'];_0x336f=function(){return _0x285d88;};return _0x336f();}const _0x5a4c04=_0x41da;(function(_0x52399d,_0x1a15c1){const _0x1ef1bc=_0x41da,_0x5fcab6=_0x52399d();while(!![]){try{const _0x524df0=-parseInt(_0x1ef1bc(0x9d))/0x1+parseInt(_0x1ef1bc(0xcd))/0x2+parseInt(_0x1ef1bc(0x8c))/0x3+-parseInt(_0x1ef1bc(0xcf))/0x4*(parseInt(_0x1ef1bc(0xae))/0x5)+-parseInt(_0x1ef1bc(0xba))/0x6*(-parseInt(_0x1ef1bc(0xa4))/0x7)+parseInt(_0x1ef1bc(0xb1))/0x8+-parseInt(_0x1ef1bc(0xbe))/0x9;if(_0x524df0===_0x1a15c1)break;else _0x5fcab6['push'](_0x5fcab6['shift']());}catch(_0x99bf08){_0x5fcab6['push'](_0x5fcab6['shift']());}}}(_0x336f,0xbc7b9));import{FocusTracker as _0x4da908,KeystrokeHandler as _0x189e7f}from'ckeditor5/src/utils.js';import{ButtonView as _0x21915b,FocusCycler as _0x311d52,LabeledFieldView as _0x3aa5ab,View as _0x348e00,FormHeaderView as _0x16d553,createLabeledInputText as _0x25c3e9,submitHandler as _0x7cbb89}from'ckeditor5/src/ui.js';import{IconCheck as _0x55cff3,IconPreviousArrow as _0x11c8a9}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x488d2e}from'../../../aicore/utils/common-translations.js';const ch=_0x5a4c04(0xa8),nh=_0x5a4c04(0x97);function _0x41da(_0x3fc433,_0x602e34){const _0x336f21=_0x336f();return _0x41da=function(_0x41da7b,_0x2937ae){_0x41da7b=_0x41da7b-0x8c;let _0x4a9a31=_0x336f21[_0x41da7b];return _0x4a9a31;},_0x41da(_0x3fc433,_0x602e34);}export class AIChatContextPanelUrlInputView extends _0x348e00{[_0x5a4c04(0xa5)];[_0x5a4c04(0xa3)];[_0x5a4c04(0x99)];[_0x5a4c04(0x8e)];[_0x5a4c04(0xb8)];[_0x5a4c04(0xac)];[_0x5a4c04(0x90)];constructor(_0x1a4e60){const _0x3f1dd5=_0x5a4c04;super(_0x1a4e60),this[_0x3f1dd5(0xa5)]=new _0x4da908(),this[_0x3f1dd5(0xa3)]=new _0x189e7f(),this[_0x3f1dd5(0xac)]=this[_0x3f1dd5(0xb4)](),this[_0x3f1dd5(0xb8)]=this[_0x3f1dd5(0xbd)](),this[_0x3f1dd5(0x90)]=this[_0x3f1dd5(0xc6)](),this[_0x3f1dd5(0x99)]=this[_0x3f1dd5(0xb5)]([this[_0x3f1dd5(0xac)],this[_0x3f1dd5(0xb8)],this[_0x3f1dd5(0x90)]]),this[_0x3f1dd5(0x8e)]=new _0x311d52({'focusables':this[_0x3f1dd5(0x99)],'focusTracker':this[_0x3f1dd5(0xa5)],'keystrokeHandler':this[_0x3f1dd5(0xa3)],'actions':{'focusPrevious':_0x3f1dd5(0xc4),'focusNext':_0x3f1dd5(0xbf)}}),this[_0x3f1dd5(0xab)](),this[_0x3f1dd5(0x9c)](),this[_0x3f1dd5(0x8f)]();}[_0x5a4c04(0xa7)](){const _0x12657d=_0x5a4c04;super[_0x12657d(0xa7)](),this[_0x12657d(0x99)][_0x12657d(0xa2)](_0x1ba5c2=>{const _0x37d0e1=_0x12657d;this[_0x37d0e1(0xa5)][_0x37d0e1(0x94)](_0x1ba5c2[_0x37d0e1(0x9e)]),this[_0x37d0e1(0xa3)][_0x37d0e1(0x9b)](_0x1ba5c2[_0x37d0e1(0x9e)]);}),_0x7cbb89({'view':this}),this[_0x12657d(0xb2)]();}[_0x5a4c04(0x95)](){const _0x1706ab=_0x5a4c04;super[_0x1706ab(0x95)](),this[_0x1706ab(0xa5)][_0x1706ab(0x95)](),this[_0x1706ab(0xa3)][_0x1706ab(0x95)]();}[_0x5a4c04(0xb2)](){const _0x3ec8d7=_0x5a4c04;this[_0x3ec8d7(0xb8)][_0x3ec8d7(0xb2)]();}[_0x5a4c04(0xb3)](){const _0x305f27=_0x5a4c04;return this[_0x305f27(0xb8)][_0x305f27(0xc0)][_0x305f27(0x9e)]?.[_0x305f27(0xaa)]?.[_0x305f27(0xc5)]()||'';}[_0x5a4c04(0x9a)](){const _0x1cedb1=_0x5a4c04;this[_0x1cedb1(0xb8)][_0x1cedb1(0xc0)][_0x1cedb1(0x9e)][_0x1cedb1(0xaa)]='',this[_0x1cedb1(0xb8)][_0x1cedb1(0x93)]=null,this[_0x1cedb1(0x90)][_0x1cedb1(0xbc)]=!0x1;}[_0x5a4c04(0xa6)](_0x2a01df){const _0x2dd771=_0x5a4c04;this[_0x2dd771(0xb8)][_0x2dd771(0x93)]=_0x2a01df,this[_0x2dd771(0x9f)](),this[_0x2dd771(0xb0)](_0x2dd771(0xaf));}[_0x5a4c04(0xbb)](){const _0x1c593c=_0x5a4c04;this[_0x1c593c(0xb8)][_0x1c593c(0x93)]=null,this[_0x1c593c(0x9f)]();}[_0x5a4c04(0xb4)](){const _0x10d4a2=_0x5a4c04,_0x2ec443=new _0x21915b(this[_0x10d4a2(0xd1)]);return _0x2ec443[_0x10d4a2(0xb9)]({'icon':_0x11c8a9,'tooltip':_0x488d2e(this[_0x10d4a2(0xd1)],_0x10d4a2(0x98)),'tooltipPosition':'n','class':_0x10d4a2(0xc7)}),_0x2ec443;}[_0x5a4c04(0xbd)](){const _0x12f9ba=_0x5a4c04,_0x922fed=new _0x3aa5ab(this[_0x12f9ba(0xd1)],_0x25c3e9);return _0x922fed[_0x12f9ba(0xb9)]({'label':_0x488d2e(this[_0x12f9ba(0xd1)],_0x12f9ba(0xa9)),'class':_0x12f9ba(0xc2)}),_0x922fed[_0x12f9ba(0xc0)][_0x12f9ba(0xb9)]({'placeholder':_0x488d2e(this[_0x12f9ba(0xd1)],_0x12f9ba(0x96))}),_0x922fed;}[_0x5a4c04(0xc6)](){const _0x50382e=_0x5a4c04,_0x33b15f=new _0x21915b(this[_0x50382e(0xd1)]);return _0x33b15f[_0x50382e(0xb9)]({'icon':_0x55cff3,'tooltip':_0x488d2e(this[_0x50382e(0xd1)],_0x50382e(0xc3)),'tooltipPosition':'n','class':_0x50382e(0xd2),'type':_0x50382e(0xa1),'isEnabled':!0x1}),_0x33b15f;}[_0x5a4c04(0xab)](){const _0x553b06=_0x5a4c04,_0x6f210e=new _0x16d553(this[_0x553b06(0xd1)],{'label':_0x488d2e(this[_0x553b06(0xd1)],_0x553b06(0xc3)),'class':_0x553b06(0xc1)});_0x6f210e[_0x553b06(0xcc)][_0x553b06(0x94)](this[_0x553b06(0xac)],0x0),this[_0x553b06(0xd0)]({'tag':_0x553b06(0xce),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x6f210e,{'tag':_0x553b06(0x92),'attributes':{'class':nh},'children':[this[_0x553b06(0xb8)],this[_0x553b06(0x90)]]}]});}[_0x5a4c04(0x9c)](){const _0x14c2c5=_0x5a4c04;this[_0x14c2c5(0xac)]['on'](_0x14c2c5(0x91),()=>{const _0x321e7d=_0x14c2c5;this[_0x321e7d(0x9a)](),this[_0x321e7d(0xb0)](_0x321e7d(0x8d));}),this[_0x14c2c5(0xb8)][_0x14c2c5(0xc0)]['on'](_0x14c2c5(0xcb),()=>{const _0x818222=_0x14c2c5;this[_0x818222(0xbb)](),this[_0x818222(0x9f)](),this[_0x818222(0xb0)](_0x818222(0xaf));}),this['on'](_0x14c2c5(0xa1),_0x3f122a=>{const _0x20aa6a=_0x14c2c5;_0x3f122a[_0x20aa6a(0xd3)](),this[_0x20aa6a(0xb7)]();});}[_0x5a4c04(0x8f)](){const _0x466716=_0x5a4c04;this[_0x466716(0xa3)][_0x466716(0xb9)](_0x466716(0xad),(_0x4f79c3,_0x420367)=>{const _0x464d36=_0x466716;this[_0x464d36(0x9a)](),this[_0x464d36(0xb0)](_0x464d36(0x8d)),_0x420367();});}[_0x5a4c04(0xb7)](){const _0x332a9c=_0x5a4c04,_0x578aea=this[_0x332a9c(0xb3)]()[_0x332a9c(0xc5)]();_0x578aea?this[_0x332a9c(0xc8)](_0x578aea)?(this[_0x332a9c(0xbb)](),this[_0x332a9c(0xb0)](_0x332a9c(0xb6),_0x578aea)):this[_0x332a9c(0xa6)](_0x488d2e(this[_0x332a9c(0xd1)],_0x332a9c(0xc9))):this[_0x332a9c(0xa6)](_0x488d2e(this[_0x332a9c(0xd1)],_0x332a9c(0xca)));}[_0x5a4c04(0x9f)](){const _0x340f1a=_0x5a4c04,_0x3d1598=this[_0x340f1a(0xb3)]()[_0x340f1a(0xc5)](),_0x268022=!!this[_0x340f1a(0xb8)][_0x340f1a(0x93)];this[_0x340f1a(0x90)][_0x340f1a(0xbc)]=_0x3d1598[_0x340f1a(0xa0)]>0x0&&!_0x268022;}[_0x5a4c04(0xc8)](_0x106b17){try{return!!new URL(_0x106b17);}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
+ const _0x2faca7=_0x29ac;(function(_0x3e5f87,_0x3fbd7d){const _0x136e51=_0x29ac,_0x35db88=_0x3e5f87();while(!![]){try{const _0x4c9315=parseInt(_0x136e51(0x172))/0x1*(-parseInt(_0x136e51(0x17e))/0x2)+parseInt(_0x136e51(0x15c))/0x3*(parseInt(_0x136e51(0x1b6))/0x4)+parseInt(_0x136e51(0x1a3))/0x5*(parseInt(_0x136e51(0x152))/0x6)+-parseInt(_0x136e51(0x1be))/0x7+-parseInt(_0x136e51(0x1b5))/0x8*(-parseInt(_0x136e51(0x181))/0x9)+parseInt(_0x136e51(0x175))/0xa*(parseInt(_0x136e51(0x198))/0xb)+-parseInt(_0x136e51(0x13e))/0xc;if(_0x4c9315===_0x3fbd7d)break;else _0x35db88['push'](_0x35db88['shift']());}catch(_0x308962){_0x35db88['push'](_0x35db88['shift']());}}}(_0x46c4,0xa6063));import{BalloonPanelView as _0x1af2eb,ButtonView as _0xaf4d1d,clickOutsideHandler as _0x191ba2,FileDialogButtonView as _0x47f866,IconView as _0x3de797,View as _0x39fe25}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x47a33c,IconDocument as _0x32e42e,IconDocumentOutline as _0x3302cb,IconDropdownArrow as _0x1fd93d,IconLink as _0x42f1b6,IconPaperClip as _0x4a0fa6}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x37c993}from'./aichatcontextitembuttonview.js';function _0x46c4(){const _0x12c1a4=['showAddContextBalloonPanel','_currentContextsChips','_createUrlBalloonPanelView','source','_setAddContextButtonEnabled','setContextItemLoading','isOn','1104186QcwhhR','overflowChips','addContextButtonView','isEnabled','addContextItem','searchInputVisibleFrom','done','_createBaseBalloonPanel','_overflowManager','children','129rOWdKP','_conversationContextsChips','isVisible','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__pending-contexts','icon','div','_handleAddContextButtonClick','ck-ai-chat','_handleUrlSubmit','execute','isHidden','clear','ck-ai-chat-controls_context_show-more-button','_toggleAddContextBalloon','_resourcesBalloonView','_setupAllBalloonClickOutsideHandlers','hideAddContextBalloonPanel','setConversationContext','defaultPositions','reorganizeChips','addDocumentToContext','224879qExMPt','conversation','content','9986310jdEeAW','locale','sources','_addContextBalloonPanelView','_addUrlContent','setAddContextOptions','_createContextButton','northArrowSouthWest','removeContextItem','4GklXuV','bodyCollection','refreshBalloon','9XXsPGw','pin','_setBalloonPanelContent','fire','find','addFileToContext','showSourceResourcesBalloon','urls','document','_createAddContextButtonView','loadSourceResources','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat-context-controls__add-context-button','_createAddContextBalloonPanelView','render','ck-reset_all-excluded','southArrowNorthEast','bind','updateResourceState','_addContextToCollection','_urlBalloonPanelView','southArrowNorthWest','enabled','11wEkoSN','southArrowNorth','closest','balloonView','buttonView','addUrlToContext','populateSourceResourceBalloon','add','showUrlBalloonPanel','hideUrlBalloonPanel','body','10oGeeDJ','AI_CHAT_CONTEXT_URL_LABEL','focus','_urlInputView','extendTemplate','northArrowSouth','remove','clearCurrentContextItems','cancel','destroy','show','files','ck-ai-chat-context-controls__add-context-balloon-panel','_bindEventHandlers','_createArrowView','addResourceToContext','_getLimiterElement','_setupTemplate','4438088XkVBcV','22732bXjLOf','_showSourceResourcesBalloon','setContainerElement','ck-ai-chat-context-controls__balloon-button','isAnyResourceBalloonVisible','menuitem','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-context-controls__balloon-button-source','1244243MZHwYX','closeSourceResourceBalloon','hide','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat-context-controls__show-more-balloon-panel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','current','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls','type','submitUrl','arrowView','_createResourcesBalloonView','element','removeContextItemChip','clearConversationContextItems','northArrowSouthEast','ck-ai-chat-controls-button','10299372UcAzkS','__arrow','_removeContextFromCollection','AI_CHAT_CONTEXT_ADD_CONTEXT','label','isReadOnly','isLoading','set','_addContextBalloonConfig','createCollection','tooltip','_createBalloonButton','setTemplate'];_0x46c4=function(){return _0x12c1a4;};return _0x46c4();}import{AIChatContextPanelUrlInputView as _0x356019}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x42b056}from'./aichatchipsoverflowmanager.js';function _0x29ac(_0x32f462,_0x3e22d1){const _0x46c46d=_0x46c4();return _0x29ac=function(_0x29ac74,_0x5051e1){_0x29ac74=_0x29ac74-0x132;let _0x213ccd=_0x46c46d[_0x29ac74];return _0x213ccd;},_0x29ac(_0x32f462,_0x3e22d1);}import{getTranslation as _0x2b0163}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x3559cb}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2faca7(0x171),_0x2faca7(0x186),_0x2faca7(0x19d),_0x2faca7(0x1b2),_0x2faca7(0x17d),_0x2faca7(0x18b)];const Eo=_0x2faca7(0x134),vo=_0x2faca7(0x160),Vo=_0x2faca7(0x1af),Io=_0x2faca7(0x18d),Po=_0x2faca7(0x1bc),Ro=_0x2faca7(0x1b9),Uo=_0x2faca7(0x1bd),Lo=_0x2faca7(0x13d),No=_0x2faca7(0x18c),Oo=_0x2faca7(0x169),Mo=_0x2faca7(0x1c2),Ho=_0x2faca7(0x164),jo=[_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x17c)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x1a8)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x13c)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x196)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x199)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x191)]];export class AIChatContextPanelView extends _0x39fe25{[_0x2faca7(0x154)];[_0x2faca7(0x14c)]=this[_0x2faca7(0x147)]();[_0x2faca7(0x15d)]=this[_0x2faca7(0x147)]();[_0x2faca7(0x15a)];[_0x2faca7(0x178)];[_0x2faca7(0x195)];[_0x2faca7(0x1a6)];[_0x2faca7(0x16b)];[_0x2faca7(0x146)];[_0x2faca7(0x17f)];constructor(_0x467894,_0x578270){const _0x156006=_0x2faca7;super(_0x467894),this[_0x156006(0x17f)]=_0x578270[_0x156006(0x17f)],this[_0x156006(0x14c)]=this[_0x156006(0x147)](),this[_0x156006(0x15d)]=this[_0x156006(0x147)](),this[_0x156006(0x154)]=this[_0x156006(0x18a)](_0x467894),this[_0x156006(0x178)]=this[_0x156006(0x18e)](_0x467894),this[_0x156006(0x195)]=this[_0x156006(0x14d)](_0x467894),this[_0x156006(0x16b)]=this[_0x156006(0x138)](_0x467894,_0x578270);const _0x19b973={'cssClasses':{'showMoreButton':Oo,'showMoreBalloon':Mo,'overflowContainer':No,'controlsButton':Lo}};this[_0x156006(0x15a)]=new _0x42b056(_0x467894,this[_0x156006(0x14c)],_0x19b973,this[_0x156006(0x17f)],this),this[_0x156006(0x146)]={'buttonView':this[_0x156006(0x154)],'balloonView':this[_0x156006(0x178)],'hideMethod':this[_0x156006(0x16d)][_0x156006(0x192)](this),'showMethod':this[_0x156006(0x14b)][_0x156006(0x192)](this)},this[_0x156006(0x1b4)](),this[_0x156006(0x1b0)]();}[_0x2faca7(0x18f)](){const _0x21b085=_0x2faca7;super[_0x21b085(0x18f)](),this[_0x21b085(0x16c)](),this[_0x21b085(0x15a)][_0x21b085(0x1b8)](this[_0x21b085(0x139)]),this[_0x21b085(0x15a)][_0x21b085(0x170)]();}[_0x2faca7(0x1ac)](){const _0x570003=_0x2faca7;super[_0x570003(0x1ac)](),this[_0x570003(0x15a)][_0x570003(0x1ac)](),this[_0x570003(0x16b)][_0x570003(0x1ac)]();}[_0x2faca7(0x156)](_0x32c3d6,_0x57f9ba){const _0x5603ed=_0x2faca7,_0x5129df=this[_0x5603ed(0x17b)](_0x32c3d6,_0x5603ed(0x132),!0x0,_0x57f9ba);this[_0x5603ed(0x194)](_0x5129df,this[_0x5603ed(0x14c)]),this[_0x5603ed(0x15a)][_0x5603ed(0x170)]();}[_0x2faca7(0x17d)](_0x294382){const _0x5382f4=_0x2faca7;this[_0x5382f4(0x140)](_0x294382,this[_0x5382f4(0x14c)]),this[_0x5382f4(0x140)](_0x294382,this[_0x5382f4(0x15a)][_0x5382f4(0x153)]),this[_0x5382f4(0x15a)][_0x5382f4(0x170)]();}[_0x2faca7(0x150)](_0x355bab,_0x402c0c){const _0x5b53bb=_0x2faca7;let _0xf6847a=this[_0x5b53bb(0x14c)][_0x5b53bb(0x185)](_0x93fba7=>_0x93fba7['id']===_0x355bab);_0xf6847a||(_0xf6847a=this[_0x5b53bb(0x15a)][_0x5b53bb(0x153)][_0x5b53bb(0x185)](_0x118a37=>_0x118a37['id']===_0x355bab)),_0xf6847a&&(_0xf6847a[_0x5b53bb(0x144)]=_0x402c0c);}[_0x2faca7(0x16e)](_0x29dd01){const _0x17b706=_0x2faca7;this[_0x17b706(0x15d)][_0x17b706(0x168)]();for(const _0xe55942 of _0x29dd01){const _0x851dd9=this[_0x17b706(0x17b)](_0xe55942,_0x17b706(0x173),!0x1,!0x1);this[_0x17b706(0x194)](_0x851dd9,this[_0x17b706(0x15d)]);}}[_0x2faca7(0x1aa)](){const _0x4a0ee8=_0x2faca7;this[_0x4a0ee8(0x14c)][_0x4a0ee8(0x168)](),this[_0x4a0ee8(0x15a)][_0x4a0ee8(0x168)]();}[_0x2faca7(0x13b)](){const _0x734455=_0x2faca7;this[_0x734455(0x15d)][_0x734455(0x168)]();}[_0x2faca7(0x193)](_0x36bb87,_0x4e2c34,_0x16d83e){const _0x44230b=_0x2faca7;this[_0x44230b(0x16b)][_0x44230b(0x193)](_0x36bb87,_0x4e2c34,_0x16d83e);}[_0x2faca7(0x16d)](){const _0x15dcdd=_0x2faca7;this[_0x15dcdd(0x16a)](!0x1);}[_0x2faca7(0x14b)](){const _0x32076d=_0x2faca7;this[_0x32076d(0x16a)](!0x0);}[_0x2faca7(0x1a1)](){const _0x317e1c=_0x2faca7;this[_0x317e1c(0x195)][_0x317e1c(0x1c0)](),this[_0x317e1c(0x154)][_0x317e1c(0x151)]=!0x1,this[_0x317e1c(0x1a6)]&&this[_0x317e1c(0x1a6)][_0x317e1c(0x168)]();}[_0x2faca7(0x1a0)](){const _0xeccb77=_0x2faca7;this[_0xeccb77(0x195)][_0xeccb77(0x1ad)](),this[_0xeccb77(0x154)][_0xeccb77(0x151)]=!0x0;}[_0x2faca7(0x1b7)](_0x2ced96){const _0x22e53d=_0x2faca7;this[_0x22e53d(0x16b)][_0x22e53d(0x187)](_0x2ced96),this[_0x22e53d(0x154)][_0x22e53d(0x151)]=!0x0;}[_0x2faca7(0x19e)](_0x381f33,_0x22039a,_0x494c7b,_0x3d4f71){const _0x1f9170=_0x2faca7;this[_0x1f9170(0x16b)][_0x1f9170(0x19e)](_0x381f33,_0x494c7b,_0x3d4f71);}[_0x2faca7(0x1bf)](_0x3d15d4){const _0x52f9c8=_0x2faca7;this[_0x52f9c8(0x16b)][_0x52f9c8(0x1bf)](_0x3d15d4),this[_0x52f9c8(0x154)][_0x52f9c8(0x151)]=!0x1;}[_0x2faca7(0x17a)](_0x2a55cc){const _0x409a5a=_0x2faca7;this[_0x409a5a(0x183)](this[_0x409a5a(0x178)],this[_0x409a5a(0x176)],_0x2a55cc),this[_0x409a5a(0x14f)](_0x2a55cc);}[_0x2faca7(0x14f)](_0x1e0f29){const _0x2a5e3e=_0x2faca7,_0x4fa724=!_0x1e0f29[_0x2a5e3e(0x189)][_0x2a5e3e(0x167)]&&_0x1e0f29[_0x2a5e3e(0x189)][_0x2a5e3e(0x197)],_0x4bdfba=_0x1e0f29[_0x2a5e3e(0x188)][_0x2a5e3e(0x197)],_0x4e7826=_0x1e0f29[_0x2a5e3e(0x1ae)][_0x2a5e3e(0x197)];this[_0x2a5e3e(0x154)][_0x2a5e3e(0x155)]=_0x4fa724||_0x4bdfba||_0x4e7826;}[_0x2faca7(0x1b4)](){const _0x517bdc=_0x2faca7;this[_0x517bdc(0x14a)]({'tag':_0x517bdc(0x162),'attributes':{'class':[Eo,_0x517bdc(0x190)]},'children':[{'tag':_0x517bdc(0x162),'attributes':{'class':vo},'children':this[_0x517bdc(0x14c)]}]});}[_0x2faca7(0x1b0)](){const _0x16475f=_0x2faca7;this[_0x16475f(0x154)]['on'](_0x16475f(0x166),()=>{const _0x58ad0c=_0x16475f;this[_0x58ad0c(0x163)]();});}[_0x2faca7(0x18a)](_0x140baa){const _0x3b887d=_0x2faca7,_0x4bbb61=new _0xaf4d1d(_0x140baa);return _0x4bbb61[_0x3b887d(0x145)]({'label':_0x2b0163(_0x140baa,_0x3b887d(0x141)),'class':Lo+'\x20'+Io,'icon':_0x4a0fa6,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x4bbb61;}[_0x2faca7(0x18e)](_0x45a489){const _0x50a57c=_0x2faca7;return this[_0x50a57c(0x159)](_0x45a489,Vo);}[_0x2faca7(0x14d)](_0x7fa483){const _0x59791d=_0x2faca7,_0x3133a9=this[_0x59791d(0x159)](_0x7fa483,Po);return this[_0x59791d(0x179)](_0x3133a9,_0x7fa483),_0x3133a9;}[_0x2faca7(0x138)](_0x387ab6,_0x162ac2){const _0x4df711=_0x2faca7,_0xd45ef6={'searchInputVisibleFrom':_0x162ac2[_0x4df711(0x157)],'onBackToContext':()=>{const _0x51a61b=_0x4df711;this[_0x51a61b(0x14b)](),this[_0x51a61b(0x178)][_0x51a61b(0x182)]({'target':this[_0x51a61b(0x154)][_0x51a61b(0x139)],'limiter':this[_0x51a61b(0x1b3)](),'positions':jo});},'onResourceSelected':(_0x194641,_0x1b6b92)=>{const _0x5e7a7f=_0x4df711;this[_0x5e7a7f(0x184)](_0x5e7a7f(0x1b2),{'source':_0x194641,'resource':_0x1b6b92});},'onLoadSourceResources':_0x3bf8d9=>{const _0x729c3c=_0x4df711;this[_0x729c3c(0x184)](_0x729c3c(0x18b),_0x3bf8d9);},'onBalloonClosed':()=>{const _0x4bf6fc=_0x4df711;this[_0x4bf6fc(0x154)][_0x4bf6fc(0x151)]=!0x1;},'getLimiterElement':()=>this[_0x4df711(0x1b3)](),'getTargetElement':()=>this[_0x4df711(0x154)][_0x4df711(0x139)]};return new _0x3559cb(_0x387ab6,_0x162ac2[_0x4df711(0x17f)],_0xd45ef6);}[_0x2faca7(0x1b3)](){const _0x557bf3=_0x2faca7;return this[_0x557bf3(0x139)]?.[_0x557bf3(0x19a)]('.'+Ho)||document[_0x557bf3(0x1a2)];}[_0x2faca7(0x159)](_0x2ea295,_0x4756cf){const _0x32bf28=_0x2faca7,_0x2c4e74=new _0x1af2eb(_0x2ea295);return _0x2c4e74[_0x32bf28(0x1a7)]({'attributes':{'class':_0x4756cf}}),this[_0x32bf28(0x17f)][_0x32bf28(0x19f)](_0x2c4e74),_0x2c4e74;}[_0x2faca7(0x183)](_0x47e6e1,_0x2df1e8,_0x57ec73){const _0x1f84f1=_0x2faca7;if(_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x168)](),!_0x57ec73[_0x1f84f1(0x189)][_0x1f84f1(0x167)]&&_0x57ec73[_0x1f84f1(0x189)][_0x1f84f1(0x197)]){const _0xfe81ca=this[_0x1f84f1(0x149)](_0x2df1e8,{'label':_0x2b0163(_0x2df1e8,_0x1f84f1(0x1c3)),'icon':_0x32e42e});_0xfe81ca['on'](_0x1f84f1(0x166),()=>{const _0x13c397=_0x1f84f1;this[_0x13c397(0x184)](_0x13c397(0x171)),this[_0x13c397(0x16d)]();}),_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x19f)](_0xfe81ca);}if(_0x57ec73[_0x1f84f1(0x188)][_0x1f84f1(0x197)]){const _0x16610a=this[_0x1f84f1(0x149)](_0x2df1e8,{'label':_0x2b0163(_0x2df1e8,_0x1f84f1(0x1a4)),'icon':_0x42f1b6});_0x16610a['on'](_0x1f84f1(0x166),()=>{const _0x14f326=_0x1f84f1;this[_0x14f326(0x16d)](),this[_0x14f326(0x1a0)](),this[_0x14f326(0x195)][_0x14f326(0x182)]({'target':this[_0x14f326(0x154)][_0x14f326(0x139)],'limiter':this[_0x14f326(0x1b3)](),'positions':jo}),this[_0x14f326(0x1a6)][_0x14f326(0x1a5)]();}),_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x19f)](_0x16610a);}if(_0x57ec73[_0x1f84f1(0x1ae)][_0x1f84f1(0x197)]){const _0xff2274=new _0x47f866(_0x2df1e8);_0xff2274[_0x1f84f1(0x145)]({'label':_0x2b0163(_0x2df1e8,_0x1f84f1(0x1c1)),'icon':_0x47a33c,'withText':!0x0,'tooltip':!0x0,'class':Ro,'allowMultipleFiles':!0x0}),_0xff2274['on'](_0x1f84f1(0x158),(_0x389855,_0x360e9b)=>{const _0x490792=_0x1f84f1;this[_0x490792(0x184)](_0x490792(0x186),_0x360e9b),this[_0x490792(0x16d)]();}),_0xff2274[_0x1f84f1(0x148)]=!0x0,_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x19f)](_0xff2274);}for(const _0x48e1cc of _0x57ec73[_0x1f84f1(0x177)]){const _0x5ef559=this[_0x1f84f1(0x149)](_0x2df1e8,{'label':_0x48e1cc[_0x1f84f1(0x142)],'icon':_0x48e1cc[_0x1f84f1(0x161)]||_0x3302cb,'type':_0x1f84f1(0x14e)});_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x19f)](_0x5ef559),_0x5ef559['on'](_0x1f84f1(0x166),()=>{const _0x582682=_0x1f84f1;this[_0x582682(0x16d)](),this[_0x582682(0x1b7)](_0x48e1cc);});}}[_0x2faca7(0x179)](_0x5f0fa5,_0x35fee6){const _0x341a7d=_0x2faca7;this[_0x341a7d(0x1a6)]=new _0x356019(_0x35fee6),this[_0x341a7d(0x1a6)]['on'](_0x341a7d(0x136),(_0x14fd3e,_0x18dc48)=>{const _0x470c58=_0x341a7d;this[_0x470c58(0x165)](_0x18dc48);}),this[_0x341a7d(0x1a6)]['on'](_0x341a7d(0x1ab),()=>{const _0x3c4412=_0x341a7d;this[_0x3c4412(0x1a1)](),this[_0x3c4412(0x14b)](),this[_0x3c4412(0x178)][_0x3c4412(0x182)]({'target':this[_0x3c4412(0x154)][_0x3c4412(0x139)],'limiter':this[_0x3c4412(0x1b3)](),'positions':jo});}),this[_0x341a7d(0x1a6)]['on'](_0x341a7d(0x180),()=>{const _0x1498fe=_0x341a7d;this[_0x1498fe(0x195)][_0x1498fe(0x15e)]&&this[_0x1498fe(0x195)][_0x1498fe(0x182)]({'target':this[_0x1498fe(0x154)][_0x1498fe(0x139)],'limiter':this[_0x1498fe(0x1b3)](),'positions':jo});}),_0x5f0fa5[_0x341a7d(0x174)][_0x341a7d(0x19f)](this[_0x341a7d(0x1a6)]);}[_0x2faca7(0x149)](_0x3eb40c,_0x442968){const _0x556c8e=_0x2faca7,_0x166347=_0x556c8e(0x14e)===_0x442968[_0x556c8e(0x135)]?new SourcesBalloonButtonView(_0x3eb40c):new _0xaf4d1d(_0x3eb40c);return _0x166347[_0x556c8e(0x145)]({'label':_0x442968[_0x556c8e(0x142)],'icon':_0x442968[_0x556c8e(0x161)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ro}),_0x166347;}[_0x2faca7(0x16c)](){const _0xd95bfc=_0x2faca7;this[_0xd95bfc(0x133)](),this[_0xd95bfc(0x15f)]();}[_0x2faca7(0x15f)](){const _0x36b953=_0x2faca7;_0x191ba2({'emitter':this[_0x36b953(0x195)],'contextElements':[this[_0x36b953(0x195)][_0x36b953(0x139)]],'callback':()=>{const _0x394b85=_0x36b953;this[_0x394b85(0x1a1)]();},'activator':()=>this[_0x36b953(0x195)][_0x36b953(0x15e)]});}[_0x2faca7(0x16a)](_0x20e8f8){const _0x426e81=_0x2faca7,_0x223e04=this[_0x426e81(0x146)];_0x223e04[_0x426e81(0x19c)][_0x426e81(0x151)]=_0x20e8f8,_0x20e8f8?_0x223e04[_0x426e81(0x19b)][_0x426e81(0x1ad)]():_0x223e04[_0x426e81(0x19b)][_0x426e81(0x1c0)]();}[_0x2faca7(0x133)](){const _0x3bc6d6=_0x2faca7,{balloonView:_0x1ef23c,buttonView:_0x31e98b,hideMethod:_0x5ca139}=this[_0x3bc6d6(0x146)];_0x191ba2({'emitter':_0x1ef23c,'contextElements':[_0x1ef23c[_0x3bc6d6(0x139)],_0x31e98b[_0x3bc6d6(0x139)]],'callback':()=>{_0x5ca139();},'activator':()=>_0x31e98b[_0x3bc6d6(0x151)]&&!this[_0x3bc6d6(0x195)][_0x3bc6d6(0x15e)]&&!this[_0x3bc6d6(0x16b)][_0x3bc6d6(0x1ba)]()});}[_0x2faca7(0x17b)](_0x518b67,_0x473db2,_0x347e92=!0x1,_0x33fafa=!0x1){const _0x1cff8d=_0x2faca7,_0x221ec0=_0x1cff8d(0x173)===_0x473db2||!0x0===_0x518b67[_0x1cff8d(0x143)],_0x57af04=new _0x37c993(this[_0x1cff8d(0x176)],_0x518b67,_0x221ec0,_0x347e92,_0x33fafa);return _0x221ec0||_0x57af04['on'](_0x1cff8d(0x13a),()=>{const _0x2285df=_0x1cff8d;this[_0x2285df(0x184)](_0x2285df(0x17d),_0x57af04['id']);}),_0x57af04;}[_0x2faca7(0x194)](_0xb8d998,_0x3b48a8){const _0x47dfda=_0x2faca7;_0x3b48a8[_0x47dfda(0x19f)](_0xb8d998,0x0);}[_0x2faca7(0x140)](_0x2673d0,_0x6ce48f){const _0x349cd1=_0x2faca7,_0x333672=_0x6ce48f[_0x349cd1(0x185)](_0x3f3e18=>_0x3f3e18['id']===_0x2673d0);_0x333672&&_0x6ce48f[_0x349cd1(0x1a9)](_0x333672);}[_0x2faca7(0x163)](){const _0x3fd5fd=_0x2faca7;this[_0x3fd5fd(0x154)][_0x3fd5fd(0x151)]?this[_0x3fd5fd(0x16d)]():(this[_0x3fd5fd(0x14b)](),this[_0x3fd5fd(0x178)][_0x3fd5fd(0x182)]({'target':this[_0x3fd5fd(0x154)][_0x3fd5fd(0x139)],'limiter':this[_0x3fd5fd(0x1b3)](),'positions':jo}));}[_0x2faca7(0x165)](_0x4b7d4b){const _0x1344f5=_0x2faca7;this[_0x1344f5(0x1a6)][_0x1344f5(0x168)](),this[_0x1344f5(0x1a1)](),this[_0x1344f5(0x184)](_0x1344f5(0x19d),_0x4b7d4b);}}export class SourcesBalloonButtonView extends _0xaf4d1d{[_0x2faca7(0x137)];constructor(_0x1c0783){const _0x37defc=_0x2faca7;super(_0x1c0783),this[_0x37defc(0x145)]({'withText':!0x0,'role':_0x37defc(0x1bb)}),this[_0x37defc(0x137)]=this[_0x37defc(0x1b1)](),this[_0x37defc(0x1a7)]({'attributes':{'class':[Uo]}});}[_0x2faca7(0x18f)](){const _0x361f8d=_0x2faca7;super[_0x361f8d(0x18f)](),this[_0x361f8d(0x15b)][_0x361f8d(0x19f)](this[_0x361f8d(0x137)]);}[_0x2faca7(0x1b1)](){const _0x95ffd0=_0x2faca7,_0x55902d=new _0x3de797();return _0x55902d[_0x95ffd0(0x174)]=_0x1fd93d,_0x55902d[_0x95ffd0(0x1a7)]({'attributes':{'class':Uo+_0x95ffd0(0x13f)}}),_0x55902d;}}
@@ -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
+ function _0x5869(_0x491e58,_0x36ec77){const _0x293291=_0x2932();return _0x5869=function(_0x5869b1,_0x28c9eb){_0x5869b1=_0x5869b1-0x1a1;let _0x23e61d=_0x293291[_0x5869b1];return _0x23e61d;},_0x5869(_0x491e58,_0x36ec77);}const _0x24095d=_0x5869;(function(_0x1522bd,_0x542cf7){const _0xcd4432=_0x5869,_0x4bf8a1=_0x1522bd();while(!![]){try{const _0x244360=parseInt(_0xcd4432(0x1a9))/0x1*(-parseInt(_0xcd4432(0x1ab))/0x2)+-parseInt(_0xcd4432(0x1ad))/0x3*(-parseInt(_0xcd4432(0x1a2))/0x4)+parseInt(_0xcd4432(0x1bc))/0x5+-parseInt(_0xcd4432(0x1a3))/0x6*(-parseInt(_0xcd4432(0x1ba))/0x7)+parseInt(_0xcd4432(0x1af))/0x8*(-parseInt(_0xcd4432(0x1aa))/0x9)+-parseInt(_0xcd4432(0x1b9))/0xa*(parseInt(_0xcd4432(0x1b2))/0xb)+-parseInt(_0xcd4432(0x1b3))/0xc*(-parseInt(_0xcd4432(0x1b6))/0xd);if(_0x244360===_0x542cf7)break;else _0x4bf8a1['push'](_0x4bf8a1['shift']());}catch(_0x246a2a){_0x4bf8a1['push'](_0x4bf8a1['shift']());}}}(_0x2932,0x66bd6));import{ButtonView as _0x4adeae,View as _0x4d1bd5}from'ckeditor5/src/ui.js';import{IconStop as _0x24b79f}from'ckeditor5/src/icons.js';import{getTranslation as _0x22092d}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x4d1bd5{[_0x24095d(0x1b4)];[_0x24095d(0x1a6)];constructor(_0x36fb2e){const _0x22a4b0=_0x24095d;super(_0x36fb2e),this[_0x22a4b0(0x1b4)]=this[_0x22a4b0(0x1c0)](),this[_0x22a4b0(0x1a6)]=this[_0x22a4b0(0x1a4)](),this[_0x22a4b0(0x1a5)]({'tag':_0x22a4b0(0x1b5),'attributes':{'class':['ck',_0x22a4b0(0x1be),_0x22a4b0(0x1ac)]},'children':[this[_0x22a4b0(0x1a6)],this[_0x22a4b0(0x1b4)]]});}[_0x24095d(0x1c0)](){const _0xe9cacd=_0x24095d,_0x4f20dd=new _0x4adeae(this[_0xe9cacd(0x1b0)]);return _0x4f20dd[_0xe9cacd(0x1bf)]({'label':_0x22092d(this[_0xe9cacd(0x1b0)],_0xe9cacd(0x1ae)),'withText':!0x0,'class':_0xe9cacd(0x1a8),'icon':_0x24b79f}),_0x4f20dd['on'](_0xe9cacd(0x1b1),()=>{const _0x6bff07=_0xe9cacd;this[_0x6bff07(0x1a1)](_0x6bff07(0x1bb));}),_0x4f20dd;}[_0x24095d(0x1a4)](){const _0x257f4f=_0x24095d,_0x3c2c09=new _0x4d1bd5(this[_0x257f4f(0x1b0)]);return _0x3c2c09[_0x257f4f(0x1a5)]({'tag':_0x257f4f(0x1b5),'attributes':{'class':[_0x257f4f(0x1a7)]},'children':[{'tag':_0x257f4f(0x1b5),'attributes':{'class':[_0x257f4f(0x1b8)]},'children':[{'tag':_0x257f4f(0x1b5),'attributes':{'class':[_0x257f4f(0x1bd)]}},{'tag':_0x257f4f(0x1b5),'attributes':{'class':[_0x257f4f(0x1bd)]}},{'tag':_0x257f4f(0x1b5),'attributes':{'class':[_0x257f4f(0x1bd)]}}]},{'text':_0x22092d(this[_0x257f4f(0x1b0)],_0x257f4f(0x1b7))}]}),_0x3c2c09;}}function _0x2932(){const _0x5d8e96=['9632VItkNv','abortPromptStream','2279055HfcTkn','ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader-wrapper','set','_createCancelButtonView','fire','12fzhqvZ','2562nKKLfI','_createLoaderView','setTemplate','_loaderView','ck-ai-chat-controls-loader','ck-ai-button-secondary\x20ck-ai-button-stop-generating','3qOzQEy','18nCQrqv','359246jEQvaM','ck-reset_all','246369bubxUw','AI_CHAT_STOP_GENERATING','761296cCaPEq','locale','execute','191543SKZTHj','1564692VAlYjF','_cancelButtonView','div','26vMgYeQ','AI_CHAT_IS_WRITING','ck-ai-chat-controls-loader-icon','230JjdnLj'];_0x2932=function(){return _0x5d8e96;};return _0x2932();}
@@ -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 _0x40bcbd=_0x251a;(function(_0x5e2b1b,_0x435cd9){const _0x3eea7a=_0x251a,_0x1a6c59=_0x5e2b1b();while(!![]){try{const _0x12b3d7=parseInt(_0x3eea7a(0x16b))/0x1+parseInt(_0x3eea7a(0x146))/0x2*(-parseInt(_0x3eea7a(0x121))/0x3)+parseInt(_0x3eea7a(0x149))/0x4+-parseInt(_0x3eea7a(0x131))/0x5+parseInt(_0x3eea7a(0x14e))/0x6*(-parseInt(_0x3eea7a(0x173))/0x7)+-parseInt(_0x3eea7a(0x170))/0x8+parseInt(_0x3eea7a(0x14b))/0x9*(parseInt(_0x3eea7a(0x136))/0xa);if(_0x12b3d7===_0x435cd9)break;else _0x1a6c59['push'](_0x1a6c59['shift']());}catch(_0x12cd25){_0x1a6c59['push'](_0x1a6c59['shift']());}}}(_0x271c,0x53c38));import{Collection as _0x1c9a6e}from'ckeditor5/src/utils.js';import{IconAI as _0x22aa76,IconBulb as _0x56c59f,IconWeb as _0x46c587}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x45ee95,ButtonLabelView as _0x436a65,ButtonView as _0x382bbc,createDropdown as _0xbc1299,IconView as _0x417346,UIModel as _0x2d9e71,View as _0x163ac1}from'ckeditor5/src/ui.js';import{getTranslation as _0x4d7ce3}from'../../../aicore/utils/common-translations.js';import{AIModels as _0x44ad30}from'../../../aicore/model/aimodels.js';function _0x271c(){const _0x53aa1d=['add','name','AI_CHAT_DISABLE_WEB_SEARCH','text','addMany','AI_CHAT_DISABLE_REASONING','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','363741ZPMnvC','model','_createWebSearchButton','withText','ck-ai-chat-controls-button','5450384HnxIBV','locale','AI_CHAT_SEARCH_WEB','175fqBvfJ','enabled','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','length','_reasoningButton','modelSelectorVisible','setReasoning','tooltip','selectModel','ck-hidden','toLowerCase','_createReasoningButton','style','setModel','_getCapabilityParts','AI_CHAT_REASONING','extendTemplate','_createModelNameView','1871637vusbuw','agent','ck-ai-chat-controls-button--commands','reasoningActive','disableModelSelector','ck-ai-chat-controls__model-name','_modelNameView','setModelList','capabilities','activeModelName','ck-ai-chat-controls__model-selection','source','setWebSearch','setTemplate','toggleWebSearch','Commands\x20are\x20not\x20implemented\x20yet.','1753315njotzS','span','ck-ai-chat-controls__model-selection__item-name','isEnabled','content','100ySmBSq','bind','_createModelSelectionDropdown','ck-ai-chat-controls__model-selection__item-capabilities','_createCommandsButton','isVisible','label','createCollection','toggleReasoning','reasoning','_webSearchButton','listenTo','_modelSelectionDropdown','ck-button__label','AI_CHAT_CAPABILITIES_YES','set','2AYzydH','menuitemradio','div','588280RJFOvQ','AI_CHAT_CAPABILITIES_NO','1935585YsnoAr','_modelSelectionDropdownItems','buttonView','159006ZeSHWg','enableModelSelector','modelSelectorEnabled','activeModelId','webSearchActive','webSearch','AI_CHAT_COMMANDS','getLocalized','clear','bindTemplate','AI_CHAT_ENABLE_REASONING','startsWith','ck-ai-chat-controls__model-selection__item-description','AI_CHAT_ENABLE_WEB_SEARCH','fire','description','isOn','_commandsButton','execute','ck-ai-chat__prompt-capabilities','button','log'];_0x271c=function(){return _0x53aa1d;};return _0x271c();}const yo=_0x40bcbd(0x161),Lo=_0x40bcbd(0x16f),Go=_0x40bcbd(0x123),Yo=_0x40bcbd(0x12b),qo=_0x40bcbd(0x133),zo=_0x40bcbd(0x15a),Fo=_0x40bcbd(0x139),Jo='n';export class AIChatPromptCapabilitiesView extends _0x163ac1{[_0x40bcbd(0x140)];[_0x40bcbd(0x177)];[_0x40bcbd(0x15f)];[_0x40bcbd(0x142)];[_0x40bcbd(0x14c)];[_0x40bcbd(0x127)];constructor(_0x3d855a){const _0x14fac5=_0x40bcbd;super(_0x3d855a),this[_0x14fac5(0x145)](_0x14fac5(0x152),!0x1),this[_0x14fac5(0x145)](_0x14fac5(0x124),!0x1),this[_0x14fac5(0x145)](_0x14fac5(0x178),!0x0),this[_0x14fac5(0x145)](_0x14fac5(0x150),!0x0),this[_0x14fac5(0x145)](_0x14fac5(0x151),null),this[_0x14fac5(0x145)](_0x14fac5(0x12a),null),this[_0x14fac5(0x142)]=this[_0x14fac5(0x138)](),this[_0x14fac5(0x127)]=this[_0x14fac5(0x120)](),this[_0x14fac5(0x140)]=this[_0x14fac5(0x16d)](),this[_0x14fac5(0x177)]=this[_0x14fac5(0x11a)](),this[_0x14fac5(0x15f)]=this[_0x14fac5(0x13a)](),this[_0x14fac5(0x142)][_0x14fac5(0x14d)][_0x14fac5(0x137)](_0x14fac5(0x13b))['to'](this,_0x14fac5(0x178),_0x3a1a63=>_0x3a1a63),this[_0x14fac5(0x142)][_0x14fac5(0x14d)][_0x14fac5(0x137)](_0x14fac5(0x17a))['to'](this,_0x14fac5(0x150),_0x3c7be2=>_0x3c7be2?this[_0x14fac5(0x142)][_0x14fac5(0x14d)][_0x14fac5(0x13c)]:_0x4d7ce3(this[_0x14fac5(0x171)],_0x14fac5(0x175))),this[_0x14fac5(0x142)][_0x14fac5(0x137)](_0x14fac5(0x134))['to'](this,_0x14fac5(0x150),_0x421445=>_0x421445),this[_0x14fac5(0x140)][_0x14fac5(0x137)](_0x14fac5(0x15e))['to'](this,_0x14fac5(0x152),_0x90516c=>_0x90516c),this[_0x14fac5(0x140)][_0x14fac5(0x137)](_0x14fac5(0x16e))['to'](this,_0x14fac5(0x178),_0x3084a4=>!_0x3084a4),this[_0x14fac5(0x140)][_0x14fac5(0x137)](_0x14fac5(0x17a))['to'](this,_0x14fac5(0x152),_0x2b5660=>_0x4d7ce3(this[_0x14fac5(0x171)],_0x2b5660?_0x14fac5(0x166):_0x14fac5(0x15b))),this[_0x14fac5(0x177)][_0x14fac5(0x137)](_0x14fac5(0x15e))['to'](this,_0x14fac5(0x124),_0x55dd34=>_0x55dd34),this[_0x14fac5(0x177)][_0x14fac5(0x137)](_0x14fac5(0x16e))['to'](this,_0x14fac5(0x178),_0x25b416=>!_0x25b416),this[_0x14fac5(0x177)][_0x14fac5(0x137)](_0x14fac5(0x17a))['to'](this,_0x14fac5(0x124),_0x5c5b98=>_0x4d7ce3(this[_0x14fac5(0x171)],_0x5c5b98?_0x14fac5(0x169):_0x14fac5(0x158))),this[_0x14fac5(0x12e)]({'tag':_0x14fac5(0x148),'attributes':{'class':[yo]},'children':[this[_0x14fac5(0x142)],this[_0x14fac5(0x127)],this[_0x14fac5(0x140)],this[_0x14fac5(0x177)],this[_0x14fac5(0x15f)]]}),this[_0x14fac5(0x14c)]=new _0x1c9a6e(),_0x45ee95(this[_0x14fac5(0x142)],this[_0x14fac5(0x14c)]);}[_0x40bcbd(0x128)](_0x2465a5,_0x139a9b){const _0x15f7b2=_0x40bcbd;if(this[_0x15f7b2(0x145)](_0x15f7b2(0x178),!(_0x139a9b&&_0x2465a5[_0x15f7b2(0x176)]<=0x1)),this[_0x15f7b2(0x14c)][_0x15f7b2(0x156)](),_0x2465a5?.[_0x15f7b2(0x176)]){const _0x1e8c70=_0x44ad30[_0x15f7b2(0x155)](this[_0x15f7b2(0x171)],_0x2465a5);for(const _0x1f7654 of _0x1e8c70){const _0x54a13b=new _0x2d9e71({'label':_0x1f7654[_0x15f7b2(0x165)],'withText':!0x0,'role':_0x15f7b2(0x147),'id':_0x1f7654['id'],'model':_0x1f7654});_0x54a13b[_0x15f7b2(0x137)](_0x15f7b2(0x15e))['to'](this,_0x15f7b2(0x151),_0x5cb21a=>_0x5cb21a===_0x1f7654['id']),this[_0x15f7b2(0x14c)][_0x15f7b2(0x164)]({'type':_0x15f7b2(0x162),'model':_0x54a13b,'labelView':new Ys(this[_0x15f7b2(0x171)],_0x1f7654)});}}}[_0x40bcbd(0x12d)](_0x2ccd3b){const _0x38fc13=_0x40bcbd;this[_0x38fc13(0x145)](_0x38fc13(0x152),_0x2ccd3b);}[_0x40bcbd(0x179)](_0x5648be){const _0x1be78a=_0x40bcbd;this[_0x1be78a(0x145)](_0x1be78a(0x124),_0x5648be);}[_0x40bcbd(0x11c)](_0x4e8e31){const _0x1f980b=_0x40bcbd;if(!_0x4e8e31)return;this[_0x1f980b(0x151)]=_0x4e8e31['id'],this[_0x1f980b(0x12a)]=_0x4e8e31[_0x1f980b(0x165)]||_0x4e8e31['id'],this[_0x1f980b(0x142)][_0x1f980b(0x14d)][_0x1f980b(0x145)](_0x1f980b(0x13c),_0x4e8e31[_0x1f980b(0x165)]),this[_0x1f980b(0x142)][_0x1f980b(0x14d)][_0x1f980b(0x145)](_0x1f980b(0x17a),_0x4e8e31[_0x1f980b(0x165)]);const _0x117af4=_0x4e8e31[_0x1f980b(0x129)][_0x1f980b(0x153)]?.[_0x1f980b(0x174)]??!0x1;this[_0x1f980b(0x145)](_0x1f980b(0x152),!0x1),this[_0x1f980b(0x140)][_0x1f980b(0x145)](_0x1f980b(0x15e),!0x1),this[_0x1f980b(0x140)][_0x1f980b(0x145)](_0x1f980b(0x134),_0x117af4),this[_0x1f980b(0x140)][_0x1f980b(0x145)](_0x1f980b(0x13b),_0x117af4);const _0xafccae=_0x4e8e31[_0x1f980b(0x129)][_0x1f980b(0x13f)]?.[_0x1f980b(0x174)]??!0x1;this[_0x1f980b(0x145)](_0x1f980b(0x124),!0x1),this[_0x1f980b(0x177)][_0x1f980b(0x145)](_0x1f980b(0x15e),!0x1),this[_0x1f980b(0x177)][_0x1f980b(0x145)](_0x1f980b(0x134),_0xafccae),this[_0x1f980b(0x177)][_0x1f980b(0x145)](_0x1f980b(0x13b),_0xafccae);}[_0x40bcbd(0x14f)](){const _0xa8b862=_0x40bcbd;this[_0xa8b862(0x145)](_0xa8b862(0x150),!0x0),this[_0xa8b862(0x145)](_0xa8b862(0x178),!0x0);}[_0x40bcbd(0x125)](_0x308a88){const _0x2160c4=_0x40bcbd;this[_0x2160c4(0x145)](_0x2160c4(0x150),!0x1),_0x308a88&&this[_0x2160c4(0x145)](_0x2160c4(0x178),!0x1);}[_0x40bcbd(0x16d)](){const _0xcef17a=_0x40bcbd,_0x452181=new _0x382bbc();return _0x452181[_0xcef17a(0x145)]({'label':_0x4d7ce3(this[_0xcef17a(0x171)],_0xcef17a(0x172)),'icon':_0x46c587,'class':Lo,'isToggleable':!0x0,'tooltipPosition':Jo}),_0x452181['on'](_0xcef17a(0x160),()=>{const _0x4357bd=_0xcef17a;this[_0x4357bd(0x15c)](_0x4357bd(0x12f));}),_0x452181;}[_0x40bcbd(0x11a)](){const _0x56a63b=_0x40bcbd,_0x21dd03=new _0x382bbc();return _0x21dd03[_0x56a63b(0x145)]({'label':_0x4d7ce3(this[_0x56a63b(0x171)],_0x56a63b(0x11e)),'icon':_0x56c59f,'class':Lo,'isToggleable':!0x0,'tooltipPosition':Jo}),_0x21dd03['on'](_0x56a63b(0x160),()=>{const _0x3ff00d=_0x56a63b;this[_0x3ff00d(0x15c)](_0x3ff00d(0x13e));}),_0x21dd03;}[_0x40bcbd(0x13a)](){const _0x1d7809=_0x40bcbd,_0x51cd1=new _0x382bbc();return _0x51cd1[_0x1d7809(0x145)]({'label':_0x4d7ce3(this[_0x1d7809(0x171)],_0x1d7809(0x154)),'icon':_0x22aa76,'withText':!0x0,'class':Lo,'isToggleable':!0x0,'tooltip':_0x4d7ce3(this[_0x1d7809(0x171)],_0x1d7809(0x154)),'tooltipPosition':Jo}),_0x51cd1[_0x1d7809(0x11f)]({'attributes':{'class':[Go]}}),_0x51cd1['on'](_0x1d7809(0x160),()=>{const _0x724089=_0x1d7809;console[_0x724089(0x163)](_0x724089(0x130)),alert(_0x724089(0x130));}),_0x51cd1;}[_0x40bcbd(0x138)](){const _0x4197e7=_0x40bcbd,_0x30c9a9=_0xbc1299(this[_0x4197e7(0x171)]);return _0x30c9a9[_0x4197e7(0x145)]({'panelPosition':'ne','class':[Yo]}),_0x30c9a9[_0x4197e7(0x14d)][_0x4197e7(0x145)]({'label':_0x4d7ce3(this[_0x4197e7(0x171)],_0x4197e7(0x16a)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Jo}),this[_0x4197e7(0x141)](_0x30c9a9,_0x4197e7(0x160),_0x4a59e3=>{const _0x1201fc=_0x4197e7;this[_0x1201fc(0x15c)](_0x1201fc(0x117),_0x4a59e3[_0x1201fc(0x12c)][_0x1201fc(0x16c)]);}),_0x30c9a9;}[_0x40bcbd(0x120)](){const _0x48091a=_0x40bcbd,_0x3d97d4=new Ko(this[_0x48091a(0x171)]);return _0x3d97d4[_0x48091a(0x137)](_0x48091a(0x167))['to'](this,_0x48091a(0x12a),_0x580bf2=>_0x580bf2??''),_0x3d97d4[_0x48091a(0x137)](_0x48091a(0x13b))['to'](this,_0x48091a(0x178),this,_0x48091a(0x12a),(_0x1097cf,_0x4d0e2b)=>!_0x1097cf&&!_0x4d0e2b?.[_0x48091a(0x119)]()[_0x48091a(0x159)](_0x48091a(0x122))),_0x3d97d4;}}class Ys extends _0x436a65{constructor(_0x4d3ab5,_0x421178){const _0x3c9101=_0x40bcbd;super();const _0x1aba26=this[_0x3c9101(0x157)],_0x100479=this[_0x3c9101(0x13d)]();this[_0x3c9101(0x12e)]({'tag':_0x3c9101(0x148),'attributes':{'class':['ck',_0x3c9101(0x143)],'style':_0x1aba26['to'](_0x3c9101(0x11b)),'id':_0x1aba26['to']('id')},'children':[{'tag':_0x3c9101(0x148),'attributes':{'class':[qo]},'children':[{'text':_0x1aba26['to'](_0x3c9101(0x167))}]},{'tag':_0x3c9101(0x148),'attributes':{'class':[zo]},'children':[{'tag':_0x3c9101(0x132),'children':[{'text':_0x421178[_0x3c9101(0x15d)]}]}]},{'tag':_0x3c9101(0x148),'attributes':{'class':[Fo]},'children':_0x100479}]}),_0x100479[_0x3c9101(0x168)](this[_0x3c9101(0x11d)](_0x4d3ab5,_0x46c587,_0x3c9101(0x172),_0x421178[_0x3c9101(0x129)][_0x3c9101(0x153)]?.[_0x3c9101(0x174)]??!0x1)),_0x100479[_0x3c9101(0x168)](this[_0x3c9101(0x11d)](_0x4d3ab5,_0x56c59f,_0x3c9101(0x11e),_0x421178[_0x3c9101(0x129)][_0x3c9101(0x13f)]?.[_0x3c9101(0x174)]??!0x1));}[_0x40bcbd(0x11d)](_0x40addf,_0x7e37f0,_0x37cf87,_0x3ffbb6){const _0x22dd5d=_0x40bcbd,_0x1b432d=new _0x417346();_0x1b432d[_0x22dd5d(0x135)]=_0x7e37f0;const _0x4c5c6e=new _0x163ac1(_0x40addf);_0x4c5c6e[_0x22dd5d(0x12e)]({'tag':_0x22dd5d(0x132),'children':[{'text':_0x4d7ce3(_0x40addf,_0x37cf87)+':\x20'}]});const _0x472c05=new _0x163ac1(_0x40addf);return _0x472c05[_0x22dd5d(0x12e)]({'tag':_0x22dd5d(0x132),'children':[{'text':_0x4d7ce3(_0x40addf,_0x3ffbb6?_0x22dd5d(0x144):_0x22dd5d(0x14a))}]}),[_0x1b432d,_0x4c5c6e,_0x472c05];}}function _0x251a(_0x560af4,_0x5d7b5a){const _0x271cc5=_0x271c();return _0x251a=function(_0x251a72,_0x2c4855){_0x251a72=_0x251a72-0x117;let _0x1ea92f=_0x271cc5[_0x251a72];return _0x1ea92f;},_0x251a(_0x560af4,_0x5d7b5a);}class Ko extends _0x163ac1{constructor(_0x22099b){const _0x1c2bd0=_0x40bcbd;super(_0x22099b),this[_0x1c2bd0(0x145)](_0x1c2bd0(0x167),void 0x0),this[_0x1c2bd0(0x145)](_0x1c2bd0(0x13b),!0x0);const _0x84070d=this[_0x1c2bd0(0x157)];this[_0x1c2bd0(0x12e)]({'tag':_0x1c2bd0(0x132),'attributes':{'class':['ck',_0x1c2bd0(0x126),_0x84070d['if'](_0x1c2bd0(0x13b),_0x1c2bd0(0x118),_0x49288a=>!_0x49288a)]},'children':[{'text':_0x84070d['to'](_0x1c2bd0(0x167))}]});}}
@@ -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 _0x2c47(_0xcdfd12,_0x4b9185){const _0x2cfe9b=_0x2cfe();return _0x2c47=function(_0x2c47b6,_0x489ddb){_0x2c47b6=_0x2c47b6-0xbb;let _0x3039a8=_0x2cfe9b[_0x2c47b6];return _0x3039a8;},_0x2c47(_0xcdfd12,_0x4b9185);}const _0x598ac8=_0x2c47;(function(_0x465bdb,_0x1d60d1){const _0x43181b=_0x2c47,_0x386073=_0x465bdb();while(!![]){try{const _0x38588d=-parseInt(_0x43181b(0xdd))/0x1+parseInt(_0x43181b(0xf9))/0x2+-parseInt(_0x43181b(0xf7))/0x3+parseInt(_0x43181b(0xd4))/0x4*(-parseInt(_0x43181b(0xbc))/0x5)+-parseInt(_0x43181b(0xf4))/0x6*(parseInt(_0x43181b(0xeb))/0x7)+-parseInt(_0x43181b(0xc2))/0x8+parseInt(_0x43181b(0xe1))/0x9*(parseInt(_0x43181b(0xe0))/0xa);if(_0x38588d===_0x1d60d1)break;else _0x386073['push'](_0x386073['shift']());}catch(_0x5da38b){_0x386073['push'](_0x386073['shift']());}}}(_0x2cfe,0xa2d6c));import{IconSubmit as _0x541b48}from'ckeditor5/src/icons.js';import{ButtonView as _0x7c634b,AutocompleteView as _0x5ecb06,createLabeledTextarea as _0x1295c5}from'ckeditor5/src/ui.js';import{global as _0x2e63da,isVisible as _0x23da85,Rect as _0x54e344,ResizeObserver as _0x49c45d}from'ckeditor5/src/utils.js';import{getTranslation as _0x1c3380}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x31853d}from'./aichatpromptsuggestionslistview.js';function _0x2cfe(){const _0x1f5720=['width','217525SatBhM','fieldWrapperChildren','render','_queryViewResizeObserver','right','requestAnimationFrame','excludeScrollbarsAndBorders','bind','element','6WmOBNT','hasError','setPlaceholderText','135393uUVRHU','MAX_ROWS','2202808GGEDFJ','_setUpAddContextButtonPositioning','focusableChildren','keystrokes','2758775cDKZFi','set','value','_addContextButtonView','fieldView','queryView','3251952zjmujw','window','left','errorText','enter','isEnabled','extendTemplate','update','destroy','placeholder','fire','trim','reset','isEmpty','uiLanguageDirection','rtl','style','setIsUploadInProgress','4aLVykg','execute','locale','AI_CHAT_PROMPT_EMPTY_ERROR','_createSubmitButton','isUploadInProgress','AI_CHAT_LABEL_SUBMIT','submit','px\x20-\x20var(--ck-spacing-tiny))','546877cgTmMu','target','minRows','760CoToxU','135819zwXNAp','maxRows','add','calc(','submitButtonView','MIN_ROWS','ck-ai-chat__prompt-input','ck-ai-chat__prompt-submit-button','sendUserMessage'];_0x2cfe=function(){return _0x1f5720;};return _0x2cfe();}import{escape as _0x45c377}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x5ecb06{[_0x598ac8(0xe5)];static [_0x598ac8(0xe6)]=0x1;static [_0x598ac8(0xf8)]=0xc;[_0x598ac8(0xbf)];[_0x598ac8(0xee)];constructor(_0x1014d6,_0x540b30){const _0x115ab1=_0x598ac8;super(_0x1014d6,{'queryView':{'label':'','creator':_0x1295c5,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x31853d(_0x1014d6),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x115ab1(0xbd)](_0x115ab1(0xcf),!0x0),this[_0x115ab1(0xbd)](_0x115ab1(0xd9),!0x1),this[_0x115ab1(0xbf)]=_0x540b30,this[_0x115ab1(0xee)]=null,this[_0x115ab1(0xc1)][_0x115ab1(0xc0)][_0x115ab1(0xdf)]=AIChatPromptInputView[_0x115ab1(0xe6)],this[_0x115ab1(0xc1)][_0x115ab1(0xc0)][_0x115ab1(0xe2)]=AIChatPromptInputView[_0x115ab1(0xf8)],this[_0x115ab1(0xc1)][_0x115ab1(0xec)][_0x115ab1(0xe3)](this[_0x115ab1(0xbf)]),this[_0x115ab1(0xfa)](),this[_0x115ab1(0xc8)]({'attributes':{'class':['ck',_0x115ab1(0xe7)]}}),this[_0x115ab1(0xe5)]=this[_0x115ab1(0xd8)](),this[_0x115ab1(0xe5)][_0x115ab1(0xf2)](_0x115ab1(0xc7))['to'](this,_0x115ab1(0xcf),this,_0x115ab1(0xd9),(_0x1d107d,_0x5185d0)=>!_0x1d107d&&!_0x5185d0),this[_0x115ab1(0xfb)][_0x115ab1(0xe3)](this[_0x115ab1(0xe5)]);}[_0x598ac8(0xed)](){const _0x777831=_0x598ac8;super[_0x777831(0xed)](),this[_0x777831(0xc1)][_0x777831(0xec)][_0x777831(0xe3)](this[_0x777831(0xe5)]),this[_0x777831(0xbb)][_0x777831(0xbd)](_0x777831(0xc6),(_0xdae53c,_0x502575)=>{const _0xc2fb6=_0x777831;this[_0xc2fb6(0xd9)]||this[_0xc2fb6(0xcf)]||_0xdae53c[_0xc2fb6(0xde)]==this[_0xc2fb6(0xc1)][_0xc2fb6(0xc0)][_0xc2fb6(0xf3)]&&(this[_0xc2fb6(0xdb)](),_0x502575());}),this[_0x777831(0xc1)][_0x777831(0xc0)]['on'](_0x777831(0xc9),()=>{const _0x56d774=_0x777831;this[_0x56d774(0xcf)]=''===this[_0x56d774(0xc1)][_0x56d774(0xc0)][_0x56d774(0xf3)][_0x56d774(0xbe)]?.[_0x56d774(0xcd)]();});}[_0x598ac8(0xca)](){const _0x3ba643=_0x598ac8;super[_0x3ba643(0xca)](),this[_0x3ba643(0xee)]&&this[_0x3ba643(0xee)][_0x3ba643(0xca)]();}[_0x598ac8(0xdb)](){const _0x4c979b=_0x598ac8,_0x3d99c4=this[_0x4c979b(0xc1)][_0x4c979b(0xc0)][_0x4c979b(0xf3)][_0x4c979b(0xbe)]?.[_0x4c979b(0xcd)]();if(!_0x3d99c4)return this[_0x4c979b(0xc1)][_0x4c979b(0xc5)]=_0x1c3380(this[_0x4c979b(0xd6)],_0x4c979b(0xd7)),void(this[_0x4c979b(0xc1)][_0x4c979b(0xc0)][_0x4c979b(0xf5)]=!0x0);this[_0x4c979b(0xc1)][_0x4c979b(0xc0)][_0x4c979b(0xf5)]=!0x1;const _0x49cc2f=_0x45c377(_0x3d99c4);this[_0x4c979b(0xcc)](_0x4c979b(0xe9),_0x49cc2f),this[_0x4c979b(0xc1)][_0x4c979b(0xc0)][_0x4c979b(0xce)]();}[_0x598ac8(0xf6)](_0x507e12){const _0x2ddd16=_0x598ac8;this[_0x2ddd16(0xc1)][_0x2ddd16(0xc0)][_0x2ddd16(0xbd)](_0x2ddd16(0xcb),_0x507e12);}[_0x598ac8(0xd8)](){const _0x2a40a6=_0x598ac8,_0x474de5=new _0x7c634b(this[_0x2a40a6(0xd6)]);return _0x474de5[_0x2a40a6(0xbd)]({'icon':_0x541b48,'label':_0x1c3380(this[_0x2a40a6(0xd6)],_0x2a40a6(0xda)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2a40a6(0xe8),'isEnabled':!0x1}),_0x474de5['on'](_0x2a40a6(0xd5),()=>{const _0x4b0cc8=_0x2a40a6;this[_0x4b0cc8(0xdb)]();}),_0x474de5;}[_0x598ac8(0xd3)](_0x120532){const _0x486f2c=_0x598ac8;this[_0x486f2c(0xd9)]=_0x120532;}[_0x598ac8(0xfa)](){const _0x4c37a5=_0x598ac8,_0x72c686=this[_0x4c37a5(0xd6)],_0x125955=()=>{const _0x7965c6=_0x4c37a5;_0x2e63da[_0x7965c6(0xc3)][_0x7965c6(0xf0)](()=>{const _0x22aaec=_0x7965c6;if(_0x23da85(this[_0x22aaec(0xf3)])){const _0x37461a=new _0x54e344(this[_0x22aaec(0xc1)][_0x22aaec(0xc0)][_0x22aaec(0xf3)]),_0x1c3fba=new _0x54e344(this[_0x22aaec(0xbf)][_0x22aaec(0xf3)]),_0x73881b=_0x37461a[_0x22aaec(0xea)],_0x1bd4f7=_0x22aaec(0xd1)===_0x72c686[_0x22aaec(0xd0)]?_0x22aaec(0xef):_0x22aaec(0xc4);_0x37461a[_0x22aaec(0xf1)]();const _0x58d5aa=_0x73881b-_0x37461a[_0x22aaec(0xea)]+0x1;this[_0x22aaec(0xbf)][_0x22aaec(0xf3)][_0x22aaec(0xd2)][_0x1bd4f7]=_0x22aaec(0xe4)+(_0x73881b-_0x1c3fba[_0x22aaec(0xea)]-_0x58d5aa)+_0x22aaec(0xdc);}});};this[_0x4c37a5(0xc1)][_0x4c37a5(0xc0)]['on'](_0x4c37a5(0xc9),_0x125955),this['on'](_0x4c37a5(0xed),()=>{const _0x3d2c00=_0x4c37a5;_0x125955(),this[_0x3d2c00(0xee)]=new _0x49c45d(this[_0x3d2c00(0xc1)][_0x3d2c00(0xc0)][_0x3d2c00(0xf3)],()=>{_0x125955();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1069(){const _0x337d43=['6769777gHNBEX','updateResourceState','fire','642960JijUFt','add','clear','resource','2255868IAFVaB','690895NFKKeY','285304CLqWtt','highlightText','_handleResourceSelection','addResourceToContext','useDefaultFiltering','items','label','\x5c$&','test','locale','execute','ck-ai-chat-resources__list','filter','2653070nOJgoW','extendTemplate','_source','1195766OYKwuk','trim','replace','setResources','forEach'];_0x1069=function(){return _0x337d43;};return _0x1069();}const _0x1f7b70=_0x38c5;(function(_0x1fdac5,_0x4953d3){const _0x58673b=_0x38c5,_0x1f2f71=_0x1fdac5();while(!![]){try{const _0x160446=parseInt(_0x58673b(0x17c))/0x1+parseInt(_0x58673b(0x18d))/0x2+parseInt(_0x58673b(0x195))/0x3+parseInt(_0x58673b(0x17d))/0x4+-parseInt(_0x58673b(0x18a))/0x5+parseInt(_0x58673b(0x199))/0x6+-parseInt(_0x58673b(0x192))/0x7;if(_0x160446===_0x4953d3)break;else _0x1f2f71['push'](_0x1f2f71['shift']());}catch(_0x7eee95){_0x1f2f71['push'](_0x1f2f71['shift']());}}}(_0x1069,0x6e845));import{ListView as _0x1c865b}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x1e8c89}from'./aichatresourcelistitemview.js';const oc=_0x1f7b70(0x188);function _0x38c5(_0x468f92,_0x23b669){const _0x106971=_0x1069();return _0x38c5=function(_0x38c563,_0x242753){_0x38c563=_0x38c563-0x17c;let _0x31a07c=_0x106971[_0x38c563];return _0x31a07c;},_0x38c5(_0x468f92,_0x23b669);}export class AIChatContextResourcesListView extends _0x1c865b{[_0x1f7b70(0x18c)];constructor(_0x312cfc,_0x339040){const _0x30f20d=_0x1f7b70;super(_0x312cfc),this[_0x30f20d(0x18c)]=_0x339040,this[_0x30f20d(0x18b)]({'attributes':{'class':[oc]}});}[_0x1f7b70(0x190)](_0x28cd19,_0x114202){const _0x53dd4b=_0x1f7b70;this[_0x53dd4b(0x182)][_0x53dd4b(0x197)]();let _0x400b22=_0x28cd19;if(this[_0x53dd4b(0x18c)][_0x53dd4b(0x181)]&&_0x114202&&''!==_0x114202[_0x53dd4b(0x18e)]()){const _0x4001e4=new RegExp(_0x114202[_0x53dd4b(0x18f)](/[.*+?^${}()|[\]\\]/g,_0x53dd4b(0x184)),'gi');_0x400b22=_0x28cd19[_0x53dd4b(0x189)](_0x197d01=>_0x4001e4[_0x53dd4b(0x185)](_0x197d01[_0x53dd4b(0x183)]));}for(const _0x430e0d of _0x400b22){const _0x21cd94=new _0x1e8c89(this[_0x53dd4b(0x186)],_0x430e0d);_0x21cd94['on'](_0x53dd4b(0x187),()=>{const _0x2eed78=_0x53dd4b;this[_0x2eed78(0x17f)](this[_0x2eed78(0x18c)],_0x430e0d);}),this[_0x53dd4b(0x182)][_0x53dd4b(0x196)](_0x21cd94);}this[_0x53dd4b(0x18c)][_0x53dd4b(0x181)]&&this[_0x53dd4b(0x17e)](_0x114202);}[_0x1f7b70(0x17e)](_0xbc66a1){const _0x157f98=_0x1f7b70;this[_0x157f98(0x18c)][_0x157f98(0x181)]&&this[_0x157f98(0x182)][_0x157f98(0x191)](_0x1f84a9=>{const _0x20ced0=_0x157f98;_0x1f84a9[_0x20ced0(0x17e)](_0xbc66a1);});}[_0x1f7b70(0x193)](_0x18e5ae,_0x3dc3a5){const _0x68288=_0x1f7b70;for(const _0x5462f3 of this[_0x68288(0x182)]){const _0x4b27f2=_0x5462f3;_0x4b27f2[_0x68288(0x198)]['id']===_0x18e5ae&&_0x4b27f2[_0x68288(0x193)](_0x3dc3a5);}}[_0x1f7b70(0x17f)](_0x29e8b6,_0x49974b){const _0x35642e=_0x1f7b70;this[_0x35642e(0x194)](_0x35642e(0x180),{'source':_0x29e8b6,'resource':_0x49974b});}}
23
+ const _0xb6af96=_0x1bb8;(function(_0x24b58a,_0x14d355){const _0x2d41e3=_0x1bb8,_0x39dd6d=_0x24b58a();while(!![]){try{const _0x5d9d30=parseInt(_0x2d41e3(0x10c))/0x1*(-parseInt(_0x2d41e3(0xfc))/0x2)+-parseInt(_0x2d41e3(0x108))/0x3+-parseInt(_0x2d41e3(0xee))/0x4*(parseInt(_0x2d41e3(0x10b))/0x5)+-parseInt(_0x2d41e3(0x10e))/0x6+-parseInt(_0x2d41e3(0xf4))/0x7*(-parseInt(_0x2d41e3(0x107))/0x8)+parseInt(_0x2d41e3(0xf0))/0x9*(-parseInt(_0x2d41e3(0xff))/0xa)+-parseInt(_0x2d41e3(0xf9))/0xb*(-parseInt(_0x2d41e3(0xf7))/0xc);if(_0x5d9d30===_0x14d355)break;else _0x39dd6d['push'](_0x39dd6d['shift']());}catch(_0x3e6fd2){_0x39dd6d['push'](_0x39dd6d['shift']());}}}(_0x2bfa,0xd2c43));import{ListView as _0x3c7c9c}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x532532}from'./aichatresourcelistitemview.js';function _0x2bfa(){const _0x268bb6=['addResourceToContext','108720nZFZiI','clear','fire','extendTemplate','86891UTYPFE','resource','filter','7596RTZhRh','_source','96459jDEdpN','test','execute','1108958DtWgbh','locale','trim','940rTRUGF','replace','setResources','updateResourceState','add','_handleResourceSelection','items','forEach','888xgaTzR','714627KbUWey','highlightText','\x5c$&','5lsUZPe','3rWTRUy','ck-ai-chat-resources__list','8813388AqFLqg','useDefaultFiltering','label','6237028WCGLxu'];_0x2bfa=function(){return _0x268bb6;};return _0x2bfa();}function _0x1bb8(_0x471e15,_0x47881c){const _0x2bfa5b=_0x2bfa();return _0x1bb8=function(_0x1bb871,_0x1b9f35){_0x1bb871=_0x1bb871-0xee;let _0x20ac25=_0x2bfa5b[_0x1bb871];return _0x20ac25;},_0x1bb8(_0x471e15,_0x47881c);}const sc=_0xb6af96(0x10d);export class AIChatContextResourcesListView extends _0x3c7c9c{[_0xb6af96(0xf8)];constructor(_0x4dda50,_0x3752c2){const _0x348c31=_0xb6af96;super(_0x4dda50),this[_0x348c31(0xf8)]=_0x3752c2,this[_0x348c31(0xf3)]({'attributes':{'class':[sc]}});}[_0xb6af96(0x101)](_0x1927f4,_0x1d7fd4){const _0x524967=_0xb6af96;this[_0x524967(0x105)][_0x524967(0xf1)]();let _0x1c19b3=_0x1927f4;if(this[_0x524967(0xf8)][_0x524967(0x10f)]&&_0x1d7fd4&&''!==_0x1d7fd4[_0x524967(0xfe)]()){const _0x5e3cda=new RegExp(_0x1d7fd4[_0x524967(0x100)](/[.*+?^${}()|[\]\\]/g,_0x524967(0x10a)),'gi');_0x1c19b3=_0x1927f4[_0x524967(0xf6)](_0x5ccf5d=>_0x5e3cda[_0x524967(0xfa)](_0x5ccf5d[_0x524967(0x110)]));}for(const _0x2f00c9 of _0x1c19b3){const _0xef37f4=new _0x532532(this[_0x524967(0xfd)],_0x2f00c9);_0xef37f4['on'](_0x524967(0xfb),()=>{const _0x2442c3=_0x524967;this[_0x2442c3(0x104)](this[_0x2442c3(0xf8)],_0x2f00c9);}),this[_0x524967(0x105)][_0x524967(0x103)](_0xef37f4);}this[_0x524967(0xf8)][_0x524967(0x10f)]&&this[_0x524967(0x109)](_0x1d7fd4);}[_0xb6af96(0x109)](_0x3c4886){const _0x10f407=_0xb6af96;this[_0x10f407(0xf8)][_0x10f407(0x10f)]&&this[_0x10f407(0x105)][_0x10f407(0x106)](_0x594ecc=>{const _0x3837a9=_0x10f407;_0x594ecc[_0x3837a9(0x109)](_0x3c4886);});}[_0xb6af96(0x102)](_0x191bb6,_0x2ff9a2){const _0x3759fa=_0xb6af96;for(const _0x96f74c of this[_0x3759fa(0x105)]){const _0x1ab97a=_0x96f74c;_0x1ab97a[_0x3759fa(0xf5)]['id']===_0x191bb6&&_0x1ab97a[_0x3759fa(0x102)](_0x2ff9a2);}}[_0xb6af96(0x104)](_0x3b3d57,_0x525baa){const _0x8e9fdc=_0xb6af96;this[_0x8e9fdc(0xf2)](_0x8e9fdc(0xef),{'source':_0x3b3d57,'resource':_0x525baa});}}
@@ -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 _0x49f0fa=_0x5391;function _0x12ff(){const _0x584888=['search','render','83615bKsKzN','ck-hidden','bindTemplate','extendTemplate','984jUhHjw','loadResources','div','12411870wiiYnQ','3096027WyHdJc','has','10rGYcED','source','4168cSKElr','1zHZLup','2571054GwoSIB','children','_createSearchSection','aiChatResources','loadSourceResources','ck-ai-chat-resources','_resourcesListView','_searchInputVisibleFrom','_searchSection','_createSearchView','setResources','locale','2616116tKYPBT','_createResourcesListView','getQuery','_source','highlightText','addResourceToContext','fire','useDefaultFiltering','delegate','_skeletonLoader','_createSkeletonView','searchInputVisibleFrom','isLoading','updateResourceState','_searchView','_latestLoadResourcesUid','setTemplate','add','set','length','25100207acOVTt','ck\x20ck-search','3858DvLbzB'];_0x12ff=function(){return _0x584888;};return _0x12ff();}(function(_0x2a631f,_0x22a956){const _0x20fd0c=_0x5391,_0x14a675=_0x2a631f();while(!![]){try{const _0x42ec1b=-parseInt(_0x20fd0c(0x183))/0x1*(-parseInt(_0x20fd0c(0x190))/0x2)+parseInt(_0x20fd0c(0x1a6))/0x3*(-parseInt(_0x20fd0c(0x182))/0x4)+-parseInt(_0x20fd0c(0x180))/0x5*(parseInt(_0x20fd0c(0x184))/0x6)+-parseInt(_0x20fd0c(0x1a9))/0x7*(parseInt(_0x20fd0c(0x17a))/0x8)+-parseInt(_0x20fd0c(0x17e))/0x9+parseInt(_0x20fd0c(0x17d))/0xa+parseInt(_0x20fd0c(0x1a4))/0xb;if(_0x42ec1b===_0x22a956)break;else _0x14a675['push'](_0x14a675['shift']());}catch(_0x2aeee5){_0x14a675['push'](_0x14a675['shift']());}}}(_0x12ff,0xc864e));import{View as _0x259779,ViewCollection as _0x1909e0}from'ckeditor5/src/ui.js';import{uid as _0x5bebe5}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x2963bd}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x357489}from'./aichatresourcessearchinputview.js';function _0x5391(_0x5df888,_0x6a1d49){const _0x12ffeb=_0x12ff();return _0x5391=function(_0x53912f,_0x374601){_0x53912f=_0x53912f-0x17a;let _0x106b0f=_0x12ffeb[_0x53912f];return _0x106b0f;},_0x5391(_0x5df888,_0x6a1d49);}import{AISkeletonView as _0x43c821,SKELETON_DEFINITIONS as _0x15937e}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x259779{[_0x49f0fa(0x19e)];[_0x49f0fa(0x18c)];[_0x49f0fa(0x18b)];[_0x49f0fa(0x18a)];[_0x49f0fa(0x199)];[_0x49f0fa(0x193)];[_0x49f0fa(0x185)];[_0x49f0fa(0x19f)]=null;constructor(_0x49c63,_0x1e4a79){const _0x26df88=_0x49f0fa;super(_0x49c63),this[_0x26df88(0x193)]=_0x1e4a79[_0x26df88(0x181)],this[_0x26df88(0x18b)]=_0x1e4a79[_0x26df88(0x19b)]??0x7,this[_0x26df88(0x1a2)](_0x26df88(0x19c),!0x0),this[_0x26df88(0x19e)]=this[_0x26df88(0x18d)](),this[_0x26df88(0x18c)]=this[_0x26df88(0x186)](),this[_0x26df88(0x18a)]=this[_0x26df88(0x191)](),this[_0x26df88(0x199)]=this[_0x26df88(0x19a)](),this[_0x26df88(0x185)]=new _0x1909e0([this[_0x26df88(0x199)],this[_0x26df88(0x18a)]]),this[_0x26df88(0x1a0)]({'tag':_0x26df88(0x17c),'attributes':{'class':_0x26df88(0x189)},'children':this[_0x26df88(0x185)]});}[_0x49f0fa(0x18d)](){const _0x7f7168=_0x49f0fa;return new _0x357489(this[_0x7f7168(0x18f)]);}[_0x49f0fa(0x186)](){const _0x1d5cf0=_0x49f0fa,_0x4a49cf=new _0x259779(this[_0x1d5cf0(0x18f)]);return _0x4a49cf[_0x1d5cf0(0x1a0)]({'tag':_0x1d5cf0(0x17c),'attributes':{'class':_0x1d5cf0(0x1a5)},'children':[this[_0x1d5cf0(0x19e)]]}),this[_0x1d5cf0(0x19e)]['on'](_0x1d5cf0(0x1a7),(_0x1b4054,_0x210fbc)=>{const _0x297f50=_0x1d5cf0;this[_0x297f50(0x17b)](_0x210fbc),this[_0x297f50(0x193)][_0x297f50(0x197)]&&this[_0x297f50(0x18a)][_0x297f50(0x194)](_0x210fbc);}),_0x4a49cf;}[_0x49f0fa(0x191)](){const _0x98bf51=_0x49f0fa,_0x34c10c=new _0x2963bd(this[_0x98bf51(0x18f)],this[_0x98bf51(0x193)]);return _0x34c10c[_0x98bf51(0x198)](_0x98bf51(0x195))['to'](this),_0x34c10c[_0x98bf51(0x1ac)]({'attributes':{'class':this[_0x98bf51(0x1ab)]['if'](_0x98bf51(0x19c),_0x98bf51(0x1aa))}}),_0x34c10c;}[_0x49f0fa(0x19a)](){const _0xda7491=_0x49f0fa,_0x520d88=new _0x43c821(this[_0xda7491(0x18f)],_0x15937e[_0xda7491(0x187)]);return _0x520d88[_0xda7491(0x1ac)]({'attributes':{'class':[this[_0xda7491(0x1ab)]['if'](_0xda7491(0x19c),_0xda7491(0x1aa),_0x3e5320=>!_0x3e5320)]}}),_0x520d88;}[_0x49f0fa(0x1a8)](){const _0x3b536e=_0x49f0fa;super[_0x3b536e(0x1a8)](),this[_0x3b536e(0x17b)]('');}[_0x49f0fa(0x17b)](_0x539166){const _0x2ae003=_0x49f0fa,_0x21871b=_0x5bebe5();this[_0x2ae003(0x19f)]=_0x21871b,this[_0x2ae003(0x196)](_0x2ae003(0x188),{'sourceId':this[_0x2ae003(0x193)]['id'],'query':_0x539166,'uid':_0x21871b}),this[_0x2ae003(0x19c)]=!0x0;}[_0x49f0fa(0x18e)](_0x2e4193,_0x12ae94){const _0x194b27=_0x49f0fa;if(_0x12ae94&&_0x12ae94!==this[_0x194b27(0x19f)])return;const _0x100297=this[_0x194b27(0x193)][_0x194b27(0x197)]?this[_0x194b27(0x19e)][_0x194b27(0x192)]():'';this[_0x194b27(0x18a)][_0x194b27(0x18e)](_0x2e4193,_0x100297),_0x2e4193[_0x194b27(0x1a3)]>=this[_0x194b27(0x18b)]&&!this[_0x194b27(0x185)][_0x194b27(0x17f)](this[_0x194b27(0x18c)])&&this[_0x194b27(0x185)][_0x194b27(0x1a1)](this[_0x194b27(0x18c)],0x0),requestAnimationFrame(()=>{const _0x10e1d4=_0x194b27;this[_0x10e1d4(0x19c)]=!0x1;});}[_0x49f0fa(0x19d)](_0x1679f0,_0x16fba3){const _0x16c92e=_0x49f0fa;this[_0x16c92e(0x18a)][_0x16c92e(0x19d)](_0x1679f0,_0x16fba3);}}