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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsreply.js +1 -1
  6. package/src/aiassistant/aiassistantediting.js +1 -1
  7. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  8. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  9. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  10. package/src/aiassistant/ui/form/aiformview.js +1 -1
  11. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  12. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  13. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  14. package/src/aiballoon/aiballoon.js +1 -1
  15. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  16. package/src/aiballoon/ui/aiballoonview.js +1 -1
  17. package/src/aichat/aichat.js +1 -1
  18. package/src/aichat/aichatcontroller.js +1 -1
  19. package/src/aichat/aichatui.js +1 -1
  20. package/src/aichat/model/aichatcontext.js +1 -1
  21. package/src/aichat/model/aichatconversation.js +1 -1
  22. package/src/aichat/model/aichatinteraction.js +1 -1
  23. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  24. package/src/aichat/ui/aichatfeedview.js +1 -1
  25. package/src/aichat/ui/aichatheaderview.js +1 -1
  26. package/src/aichat/ui/aichatview.js +1 -1
  27. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  28. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  29. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  30. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  31. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  32. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  33. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  34. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  35. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  36. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  37. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  38. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  39. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  40. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  41. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  42. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  43. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  44. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  45. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  46. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  47. package/src/aichathistory/aichathistory.js +1 -1
  48. package/src/aichathistory/aichathistorycontroller.js +1 -1
  49. package/src/aichathistory/aichathistoryui.js +1 -1
  50. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  51. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  52. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  53. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  54. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  55. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  56. package/src/aicore/aiconnector.js +1 -1
  57. package/src/aicore/aiediting.js +1 -1
  58. package/src/aicore/model/aiinteraction.js +1 -1
  59. package/src/aicore/model/aimodels.js +1 -1
  60. package/src/aicore/model/aireply.js +1 -1
  61. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  62. package/src/aicore/pipeline/airesponseparser.js +2 -2
  63. package/src/aicore/ui/aidisclaimerview.js +1 -1
  64. package/src/aicore/ui/aiskeleton.js +1 -1
  65. package/src/aicore/ui/aispinner.js +1 -1
  66. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  67. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  68. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  69. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  70. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  71. package/src/aicore/utils/documentposition.js +1 -1
  72. package/src/aicore/utils/documentrange.js +1 -1
  73. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  74. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  75. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  76. package/src/aicore/utils/htmlparser.js +1 -1
  77. package/src/aicore/utils/htmlstreamer.js +1 -1
  78. package/src/aicore/utils/scrollmanager.js +1 -1
  79. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  80. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  81. package/src/aiquickactions/aiquickactionsui.js +1 -1
  82. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  83. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  84. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  85. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  86. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  87. package/src/aireviewmode/aireviewmode.js +1 -1
  88. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  89. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  90. package/src/aireviewmode/aireviewmodeui.js +1 -1
  91. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  92. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  93. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  94. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  95. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  96. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  97. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  98. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  99. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  100. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  101. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  102. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  103. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  104. package/src/aitabs/aitabs.js +1 -1
  105. package/src/aitabs/tabs/aitabsview.js +1 -1
  106. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x320527=_0x1613;function _0x2e25(){const _0x57f6ac=['content','0px','_handleShowMoreButtonClick','1185480svgEln','4575480fUVPcd','includes','_showMoreBalloonPanelView','classList','className','push','execute','_parentView','none','_createContainerElements','parentElement','block\x20!important','_calculateContainerWidth','children','showMoreLabelPrefix','visibility','showMoreButtonView','render','querySelector','set','add','_createShowMoreBalloonPanelView','display','5oZlpjt','length','isConnected','reorganizeChips','position','auto','clientWidth','clear','_showMoreButtonView','extendTemplate','maxVisibleRows','appendChild','_applyOverflowResults','220xLnvkg','rowDetectionTolerance','slice','18FJbiBx','50px','label','documentElement','_containerElement','innerWidth','hide','observe','_checkAndHandleOverflow','_pendingCalculation','720167EviSHn','forEach','1626344ukJPKP','undefined','style','hidden','_targetContainer','right','_updateShowMoreButtonVisibility','_overflowChips','1218753iyUmmn','button','_locale','_createMockButton','_bodyCollection','controlsButton','.ck-ai-chat','bottom','_calculateOverflowInContainer','_distributeChips','77JqZQIk','innerHeight','border-box','element','_testButtonFit','pop','_makeAncestorsVisible','remove','boxSizing','_isContainerVisible','overflowContainer','offsetWidth','pointerEvents','body','absolute','getBoundingClientRect','height','some','calculationContainer','left','visible\x20!important','showMoreButton','from','_findTargetContainer','_setupVisibilityObserver','abs','show','_applyCalculationStyles','isOn','_ancestorsToRestore','filter','hideBalloonPanel','getComputedStyle','-9999px','300px','_renderChipsAndCountRows','toLowerCase','setContainerElement','_config','_createShowMoreButton','visible','setTemplate','_updateOverflowUI','5059vDOkSs','showBalloonPanel','pin','textContent','_intersectionObserver','_updateBalloonContent','cssClasses','_restoreAncestorVisibility','showMoreBalloon','_createCalculationContainer','isIntersecting','div','clientHeight','width','tagName','top','cloneNode','innerHTML','createElement','_visibleChips','overflowChips','_repinBalloonPanel','ck-calculation-container','zIndex','isVisible','+\x201','disconnect','disableAnimationOnEnter','_createShowMoreButtonView','block','1032429TuGSVf','destroy','opacity'];_0x2e25=function(){return _0x57f6ac;};return _0x2e25();}(function(_0x1b5d2a,_0x224100){const _0x5260e3=_0x1613,_0x3a91e5=_0x1b5d2a();while(!![]){try{const _0x9af9b9=-parseInt(_0x5260e3(0xf5))/0x1*(parseInt(_0x5260e3(0xa9))/0x2)+parseInt(_0x5260e3(0x7e))/0x3+parseInt(_0x5260e3(0xb8))/0x4*(parseInt(_0x5260e3(0x9c))/0x5)+parseInt(_0x5260e3(0xac))/0x6*(parseInt(_0x5260e3(0xb6))/0x7)+parseInt(_0x5260e3(0x85))/0x8+parseInt(_0x5260e3(0xc0))/0x9+parseInt(_0x5260e3(0x84))/0xa*(-parseInt(_0x5260e3(0xca))/0xb);if(_0x9af9b9===_0x224100)break;else _0x3a91e5['push'](_0x3a91e5['shift']());}catch(_0x3831af){_0x3a91e5['push'](_0x3a91e5['shift']());}}}(_0x2e25,0x5cdee));function _0x1613(_0x5bf52a,_0x335b3b){const _0x2e2567=_0x2e25();return _0x1613=function(_0x16134c,_0x76dc5e){_0x16134c=_0x16134c-0x77;let _0x521ded=_0x2e2567[_0x16134c];return _0x521ded;},_0x1613(_0x5bf52a,_0x335b3b);}import{View as _0x3ca723,BalloonPanelView as _0x41567d,ButtonView as _0x3bd45d,clickOutsideHandler as _0x5842f2}from'ckeditor5/src/ui.js';import{Collection as _0x4f5549}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x320527(0xec);export class AIChatChipsOverflowManager{[_0x320527(0xc2)];[_0x320527(0xf0)];[_0x320527(0x108)];[_0x320527(0xbf)];[_0x320527(0xa4)]=null;[_0x320527(0x87)]=null;[_0x320527(0xb0)]=null;[_0x320527(0xc4)];[_0x320527(0x8c)]=null;[_0x320527(0xf9)]=null;[_0x320527(0xb5)]=!0x1;constructor(_0x29ed7d,_0x5155fd,_0xf242a8,_0x44f39a,_0xd0e79b){const _0x33a1c2=_0x320527;this[_0x33a1c2(0xc2)]=_0x29ed7d,this[_0x33a1c2(0x108)]=_0x5155fd,this[_0x33a1c2(0xf0)]={...hn,..._0xf242a8,'cssClasses':{'controlsButton':'','calculationContainer':_0x33a1c2(0x10b),..._0xf242a8[_0x33a1c2(0xfb)]}},this[_0x33a1c2(0xbf)]=new _0x4f5549(),this[_0x33a1c2(0xc4)]=_0x44f39a,this[_0x33a1c2(0x8c)]=_0xd0e79b||null;}[_0x320527(0xef)](_0x109de0){const _0x358316=_0x320527;this[_0x358316(0xf9)]&&(this[_0x358316(0xf9)][_0x358316(0x7a)](),this[_0x358316(0xf9)]=null),this[_0x358316(0xb0)]=_0x109de0,this[_0x358316(0xe2)]();}get[_0x320527(0x95)](){const _0x1c4412=_0x320527;return this[_0x1c4412(0xa4)];}get[_0x320527(0x109)](){const _0x1b7923=_0x320527;return this[_0x1b7923(0xbf)];}[_0x320527(0x9f)](){requestAnimationFrame(()=>{const _0x260ff2=_0x1613;this[_0x260ff2(0xb4)]();});}[_0x320527(0xf6)](){const _0x8453cf=_0x320527;this[_0x8453cf(0xa4)]&&this[_0x8453cf(0x87)]&&(this[_0x8453cf(0xfa)](),this[_0x8453cf(0xa4)][_0x8453cf(0xe6)]=!0x0,this[_0x8453cf(0x87)][_0x8453cf(0xe4)](),this[_0x8453cf(0x87)][_0x8453cf(0xf7)]({'target':this[_0x8453cf(0xa4)][_0x8453cf(0xcd)],'limiter':document[_0x8453cf(0x97)](_0x8453cf(0xc6))}));}[_0x320527(0xe9)](){const _0x2ad5b9=_0x320527;this[_0x2ad5b9(0xa4)]&&this[_0x2ad5b9(0x87)]&&(this[_0x2ad5b9(0xa4)][_0x2ad5b9(0xe6)]=!0x1,this[_0x2ad5b9(0x87)][_0x2ad5b9(0xb2)]());}[_0x320527(0xa3)](){const _0x39da2c=_0x320527;this[_0x39da2c(0xbf)][_0x39da2c(0xa3)](),this[_0x39da2c(0xe9)](),this[_0x39da2c(0xbe)](),this[_0x39da2c(0xa4)]&&(this[_0x39da2c(0xa4)][_0x39da2c(0xae)]=''),this[_0x39da2c(0x87)]&&this[_0x39da2c(0x87)][_0x39da2c(0x81)][_0x39da2c(0xa3)]();}[_0x320527(0x7f)](){const _0xb816f6=_0x320527;this[_0xb816f6(0xf9)]&&(this[_0xb816f6(0xf9)][_0xb816f6(0x7a)](),this[_0xb816f6(0xf9)]=null),this[_0xb816f6(0xa4)]&&(this[_0xb816f6(0xa4)][_0xb816f6(0x7f)](),this[_0xb816f6(0xa4)]=null),this[_0xb816f6(0x87)]&&(this[_0xb816f6(0x87)][_0xb816f6(0x7f)](),this[_0xb816f6(0x87)]=null);}[_0x320527(0xb4)](){const _0x4dd6f2=_0x320527;if(!this[_0x4dd6f2(0xb0)])return;if(!this[_0x4dd6f2(0xd3)]())return void(this[_0x4dd6f2(0xb5)]=!0x0);this[_0x4dd6f2(0xb5)]=!0x1;const _0x49e129=[...this[_0x4dd6f2(0x108)],...this[_0x4dd6f2(0xbf)]],_0x3595b5=this[_0x4dd6f2(0xfe)](),_0x1b62d2=this[_0x4dd6f2(0xc8)](_0x3595b5,_0x49e129),_0x3671a4=_0x3595b5[_0x4dd6f2(0xe7)];_0x3671a4&&this[_0x4dd6f2(0xfc)](_0x3671a4),_0x3595b5[_0x4dd6f2(0xd1)](),this[_0x4dd6f2(0xa8)](_0x49e129,_0x1b62d2);}[_0x320527(0xf1)](){const _0x5218e1=_0x320527;this[_0x5218e1(0xa4)]=this[_0x5218e1(0x7c)](),this[_0x5218e1(0x87)]=this[_0x5218e1(0x9a)](),this[_0x5218e1(0xa4)][_0x5218e1(0x96)](),this[_0x5218e1(0xb0)][_0x5218e1(0xa7)](this[_0x5218e1(0xa4)][_0x5218e1(0xcd)]),this[_0x5218e1(0xa4)]['on'](_0x5218e1(0x8b),()=>{const _0x358647=_0x5218e1;this[_0x358647(0x83)]();}),_0x5842f2({'emitter':this[_0x5218e1(0x87)],'contextElements':[this[_0x5218e1(0x87)][_0x5218e1(0xcd)],this[_0x5218e1(0xa4)][_0x5218e1(0xcd)]],'callback':()=>this[_0x5218e1(0xe9)](),'activator':()=>this[_0x5218e1(0xa4)][_0x5218e1(0xe6)]});}[_0x320527(0x7c)](){const _0x30df49=_0x320527,_0x427791=new _0x3bd45d(this[_0x30df49(0xc2)]);_0x427791[_0x30df49(0x98)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5b9396=[this[_0x30df49(0xf0)][_0x30df49(0xfb)][_0x30df49(0xdf)]];return this[_0x30df49(0xf0)][_0x30df49(0xfb)][_0x30df49(0xc5)]&&_0x5b9396[_0x30df49(0x8a)](this[_0x30df49(0xf0)][_0x30df49(0xfb)][_0x30df49(0xc5)]),_0x427791[_0x30df49(0xa5)]({'attributes':{'class':_0x5b9396}}),_0x427791;}[_0x320527(0x9a)](){const _0x38dcbd=_0x320527,_0x15be3e=new _0x41567d(this[_0x38dcbd(0xc2)]);return _0x15be3e[_0x38dcbd(0xa5)]({'attributes':{'class':this[_0x38dcbd(0xf0)][_0x38dcbd(0xfb)][_0x38dcbd(0xfd)]}}),this[_0x38dcbd(0xc4)][_0x38dcbd(0x99)](_0x15be3e),_0x15be3e;}[_0x320527(0xfa)](){const _0x49d906=_0x320527;if(this[_0x49d906(0x87)]&&(this[_0x49d906(0x87)][_0x49d906(0x81)][_0x49d906(0xa3)](),this[_0x49d906(0xbf)][_0x49d906(0x9d)]>0x0)){this[_0x49d906(0xbf)][_0x49d906(0xb7)](_0x7678f3=>{const _0x4955f2=_0x49d906;_0x7678f3[_0x4955f2(0x7b)]();});const _0x4c6894=new _0x3ca723(this[_0x49d906(0xc2)]);_0x4c6894[_0x49d906(0xf3)]({'tag':_0x49d906(0x100),'attributes':{'class':this[_0x49d906(0xf0)][_0x49d906(0xfb)][_0x49d906(0xd4)]},'children':this[_0x49d906(0xbf)]}),this[_0x49d906(0x87)][_0x49d906(0x81)][_0x49d906(0x99)](_0x4c6894);}}[_0x320527(0x83)](){const _0x3d7c7d=_0x320527;this[_0x3d7c7d(0xa4)][_0x3d7c7d(0xe6)]?this[_0x3d7c7d(0xe9)]():this[_0x3d7c7d(0xf6)]();}[_0x320527(0xbe)](){const _0x59cee7=_0x320527,_0x3277a2=this[_0x59cee7(0xbf)][_0x59cee7(0x9d)]>0x0;this[_0x59cee7(0xa4)]?.[_0x59cee7(0xcd)]&&(this[_0x59cee7(0xa4)][_0x59cee7(0xcd)][_0x59cee7(0xba)][_0x59cee7(0x9b)]=_0x3277a2?'':_0x59cee7(0x8d));}[_0x320527(0x10a)](){const _0x129663=_0x320527;this[_0x129663(0xa4)]?.[_0x129663(0xe6)]&&this[_0x129663(0x87)]?.[_0x129663(0x78)]&&this[_0x129663(0xa4)][_0x129663(0xcd)]&&this[_0x129663(0x87)][_0x129663(0xf7)]({'target':this[_0x129663(0xa4)][_0x129663(0xcd)],'limiter':document[_0x129663(0x97)](_0x129663(0xc6))});}[_0x320527(0xe1)](_0x229b46){const _0x410c=_0x320527,_0x440982=this[_0x410c(0xb0)]?.[_0x410c(0x103)][_0x410c(0xee)]()||_0x410c(0x100),_0x297f5d=this[_0x410c(0xb0)]?.[_0x410c(0x88)];if(_0x297f5d){const _0x5d2c5e=_0x297f5d[0x0]||'',_0x40b116=_0x229b46[_0x410c(0x97)]('.'+_0x5d2c5e),_0x35396d=_0x229b46[_0x410c(0x97)](_0x440982);return _0x40b116||_0x35396d||_0x229b46;}return _0x229b46[_0x410c(0x97)](_0x440982)||_0x229b46;}[_0x320527(0x91)](){const _0x48587c=_0x320527,_0x5581b7=this[_0x48587c(0x8c)]?.[_0x48587c(0xcd)]||this[_0x48587c(0xb0)];if(!_0x5581b7)return an;const _0x475c44=window[_0x48587c(0xea)](_0x5581b7)[_0x48587c(0x102)];if(_0x48587c(0xa1)===_0x475c44||_0x48587c(0x82)===_0x475c44||!_0x475c44){const _0x2867b9=_0x5581b7[_0x48587c(0x8f)];if(_0x2867b9){const _0x1c4513=window[_0x48587c(0xea)](_0x2867b9);return _0x48587c(0xa1)!==_0x1c4513[_0x48587c(0x102)]?_0x1c4513[_0x48587c(0x102)]:an;}return an;}return _0x475c44;}[_0x320527(0xe5)](_0x51e779,_0x3597bb){const _0x1a6a5a=_0x320527;this[_0x1a6a5a(0xf0)][_0x1a6a5a(0xfb)][_0x1a6a5a(0xdc)]&&_0x51e779[_0x1a6a5a(0x88)][_0x1a6a5a(0x99)](this[_0x1a6a5a(0xf0)][_0x1a6a5a(0xfb)][_0x1a6a5a(0xdc)]),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0x102)]=_0x3597bb,_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0xa0)]=_0x1a6a5a(0xd8),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0x104)]=_0x1a6a5a(0xeb),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0xdd)]=_0x1a6a5a(0xeb),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0x80)]='0',_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0xd6)]=_0x1a6a5a(0x8d),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0x77)]='-1',_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0x94)]=_0x1a6a5a(0xde),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0x9b)]=_0x1a6a5a(0x90),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0xd2)]=_0x1a6a5a(0xcc);}[_0x320527(0xfc)](_0x33e85c){const _0x3355d1=_0x320527;_0x33e85c[_0x3355d1(0xb7)](({element:_0x54b8c8,originalDisplay:_0x19a4fe,originalVisibility:_0x3e3b36})=>{const _0xde0b41=_0x3355d1;_0x54b8c8[_0xde0b41(0xba)][_0xde0b41(0x9b)]=_0x19a4fe,_0x54b8c8[_0xde0b41(0xba)][_0xde0b41(0x94)]=_0x3e3b36;});}[_0x320527(0xd0)](_0x2069fc){const _0x4dd882=_0x320527,_0x599e37=[];let _0x5115fd=_0x2069fc;for(;_0x5115fd&&_0x5115fd!==document[_0x4dd882(0xd7)];){const _0x57712e=window[_0x4dd882(0xea)](_0x5115fd);_0x4dd882(0x8d)!==_0x57712e[_0x4dd882(0x9b)]&&_0x4dd882(0xbb)!==_0x57712e[_0x4dd882(0x94)]||(_0x599e37[_0x4dd882(0x8a)]({'element':_0x5115fd,'originalDisplay':_0x5115fd[_0x4dd882(0xba)][_0x4dd882(0x9b)],'originalVisibility':_0x5115fd[_0x4dd882(0xba)][_0x4dd882(0x94)]}),_0x5115fd[_0x4dd882(0xba)][_0x4dd882(0x9b)]=_0x4dd882(0x7d),_0x5115fd[_0x4dd882(0xba)][_0x4dd882(0x94)]=_0x4dd882(0xf2)),_0x5115fd=_0x5115fd[_0x4dd882(0x8f)];}return _0x599e37;}[_0x320527(0x8e)](){const _0x32077d=_0x320527;let _0x5a7dc5,_0x197502;return this[_0x32077d(0x8c)]?.[_0x32077d(0xcd)]?(_0x5a7dc5=this[_0x32077d(0x8c)][_0x32077d(0xcd)][_0x32077d(0x105)](!0x0),_0x197502=this[_0x32077d(0xe1)](_0x5a7dc5)):(_0x5a7dc5=document[_0x32077d(0x107)](_0x32077d(0x100)),_0x197502=_0x5a7dc5),{'calculationContainer':_0x5a7dc5,'targetContainer':_0x197502};}[_0x320527(0xfe)](){const _0x362686=_0x320527,{calculationContainer:_0x3e1a7e,targetContainer:_0x30fa52}=this[_0x362686(0x8e)](),_0x1e9a2a=this[_0x362686(0x91)]();this[_0x362686(0xe5)](_0x3e1a7e,_0x1e9a2a);const _0x8ba5b7=this[_0x362686(0x8c)]?.[_0x362686(0xcd)]||this[_0x362686(0xb0)],_0x67059c=_0x8ba5b7?.[_0x362686(0x8f)];_0x67059c?_0x67059c[_0x362686(0xa7)](_0x3e1a7e):document[_0x362686(0xd7)][_0x362686(0xa7)](_0x3e1a7e),_0x3e1a7e[_0x362686(0xbc)]=_0x30fa52;const _0x49c860=this[_0x362686(0xd0)](_0x67059c||null);return _0x3e1a7e[_0x362686(0xd5)],_0x3e1a7e[_0x362686(0xe7)]=_0x49c860,_0x3e1a7e;}[_0x320527(0xc8)](_0x3ea8c4,_0x3067ba){const _0x546396=_0x320527,_0x5c1e82=_0x3ea8c4[_0x546396(0xbc)]||_0x3ea8c4,_0x40754a=[],{rowCount:_0xd2a542}=this[_0x546396(0xed)](_0x5c1e82,_0x3067ba);if(_0xd2a542<=this[_0x546396(0xf0)][_0x546396(0xa6)])return _0x40754a;const _0x4a48b6=_0x3067ba[_0x546396(0xab)]();for(;_0x4a48b6[_0x546396(0x9d)]>0x0;){if(this[_0x546396(0xce)](_0x3ea8c4,_0x5c1e82,_0x4a48b6)){const _0x2ca0fb=_0x3067ba[_0x546396(0xe8)](_0xfe8906=>!_0x4a48b6[_0x546396(0x86)](_0xfe8906));_0x40754a[_0x546396(0x8a)](..._0x2ca0fb);break;}if(!_0x4a48b6[_0x546396(0xcf)]())break;}return _0x40754a;}[_0x320527(0xed)](_0x47a01d,_0x5b2af0){const _0x55d4de=_0x320527;_0x47a01d[_0x55d4de(0x106)]='',_0x5b2af0[_0x55d4de(0xb7)](_0x2fd186=>{const _0x3f074b=_0x55d4de;if(_0x2fd186[_0x3f074b(0xcd)]){const _0x50a173=_0x2fd186[_0x3f074b(0xcd)][_0x3f074b(0x105)](!0x0);_0x47a01d[_0x3f074b(0xa7)](_0x50a173);}}),_0x47a01d[_0x55d4de(0xd5)];const _0x1ffc1c=_0x47a01d[_0x55d4de(0x92)],_0x19be39=[];return Array[_0x55d4de(0xe0)](_0x1ffc1c)[_0x55d4de(0xb7)](_0x1d7507=>{const _0x37cdf7=_0x55d4de,_0x1cb2f8=_0x1d7507[_0x37cdf7(0xd9)]()[_0x37cdf7(0x104)];_0x19be39[_0x37cdf7(0xdb)](_0x59533a=>Math[_0x37cdf7(0xe3)](_0x59533a-_0x1cb2f8)<this[_0x37cdf7(0xf0)][_0x37cdf7(0xaa)])||_0x19be39[_0x37cdf7(0x8a)](_0x1cb2f8);}),{'rowCount':_0x19be39[_0x55d4de(0x9d)]};}[_0x320527(0xc3)](){const _0x57968e=_0x320527,_0x976ec8=document[_0x57968e(0x107)](_0x57968e(0xc1));return _0x976ec8[_0x57968e(0x89)]=this[_0x57968e(0xf0)][_0x57968e(0xfb)][_0x57968e(0xdf)],this[_0x57968e(0xf0)][_0x57968e(0xfb)][_0x57968e(0xc5)]&&_0x976ec8[_0x57968e(0x88)][_0x57968e(0x99)](this[_0x57968e(0xf0)][_0x57968e(0xfb)][_0x57968e(0xc5)]),_0x976ec8[_0x57968e(0xf8)]=_0x57968e(0x79),_0x976ec8;}[_0x320527(0xce)](_0x433a09,_0x56468d,_0x577400){const _0x5e23e4=_0x320527;this[_0x5e23e4(0xed)](_0x56468d,_0x577400);const _0x2422af=this[_0x5e23e4(0xc3)]();_0x433a09[_0x5e23e4(0xa7)](_0x2422af),_0x433a09[_0x5e23e4(0xd5)];const _0x5325a4=[..._0x56468d[_0x5e23e4(0x92)],_0x2422af],_0x47a2d2=[];_0x5325a4[_0x5e23e4(0xb7)](_0x5a13fb=>{const _0x4478a2=_0x5e23e4,_0x59442b=_0x5a13fb[_0x4478a2(0xd9)]()[_0x4478a2(0x104)];_0x47a2d2[_0x4478a2(0xdb)](_0x232d45=>Math[_0x4478a2(0xe3)](_0x232d45-_0x59442b)<this[_0x4478a2(0xf0)][_0x4478a2(0xaa)])||_0x47a2d2[_0x4478a2(0x8a)](_0x59442b);});const _0x5b504c=_0x47a2d2[_0x5e23e4(0x9d)];return _0x2422af[_0x5e23e4(0xd1)](),_0x5b504c<=this[_0x5e23e4(0xf0)][_0x5e23e4(0xa6)];}[_0x320527(0xc9)](_0x4cff16,_0x434bd8){const _0x3f528b=_0x320527;this[_0x3f528b(0x108)][_0x3f528b(0xa3)](),this[_0x3f528b(0xbf)][_0x3f528b(0xa3)](),_0x4cff16[_0x3f528b(0xb7)](_0x19efc6=>{const _0x410668=_0x3f528b;_0x434bd8[_0x410668(0x86)](_0x19efc6)?this[_0x410668(0xbf)][_0x410668(0x99)](_0x19efc6):this[_0x410668(0x108)][_0x410668(0x99)](_0x19efc6);});}[_0x320527(0xf4)](_0x16b478){const _0x52c24d=_0x320527;if(_0x16b478>0x0&&!this[_0x52c24d(0xa4)]&&this[_0x52c24d(0xf1)](),_0x16b478>0x0&&this[_0x52c24d(0xa4)]){const _0x7b5f6d=''+this[_0x52c24d(0xf0)][_0x52c24d(0x93)]+(_0x16b478<0x63?_0x16b478:'99');this[_0x52c24d(0xa4)][_0x52c24d(0xae)]=_0x7b5f6d;}this[_0x52c24d(0xfa)](),this[_0x52c24d(0xbe)](),this[_0x52c24d(0x10a)]();}[_0x320527(0xa8)](_0x41ce42,_0x3b88e7){const _0xf74f44=_0x320527;this[_0xf74f44(0xc9)](_0x41ce42,_0x3b88e7),this[_0xf74f44(0xf4)](_0x3b88e7[_0xf74f44(0x9d)]);}[_0x320527(0xe2)](){const _0x15798a=_0x320527;this[_0x15798a(0xb0)]&&_0x15798a(0xb9)!=typeof IntersectionObserver&&(this[_0x15798a(0xf9)]=new IntersectionObserver(_0x3b8377=>{const _0x188e9d=_0x15798a;_0x3b8377[0x0][_0x188e9d(0xff)]&&this[_0x188e9d(0xb5)]&&requestAnimationFrame(()=>{const _0x38dc47=_0x188e9d;this[_0x38dc47(0xb4)]();});},{'threshold':0.01,'rootMargin':_0x15798a(0xad)}),this[_0x15798a(0xf9)][_0x15798a(0xb3)](this[_0x15798a(0xb0)]));}[_0x320527(0xd3)](){const _0x30f59f=_0x320527;if(!this[_0x30f59f(0xb0)])return!0x1;if(!this[_0x30f59f(0xb0)][_0x30f59f(0x9e)])return!0x1;const _0x2f9867=this[_0x30f59f(0xb0)][_0x30f59f(0xd9)]();if(0x0===_0x2f9867[_0x30f59f(0x102)]||0x0===_0x2f9867[_0x30f59f(0xda)])return!0x1;const _0x389e22=window[_0x30f59f(0xcb)]||document[_0x30f59f(0xaf)][_0x30f59f(0x101)],_0x1a01a4=window[_0x30f59f(0xb1)]||document[_0x30f59f(0xaf)][_0x30f59f(0xa2)],_0x1d2eb3=0xc8;return _0x2f9867[_0x30f59f(0xc7)]>=-0xc8&&_0x2f9867[_0x30f59f(0x104)]<=_0x389e22+_0x1d2eb3&&_0x2f9867[_0x30f59f(0xbd)]>=-0xc8&&_0x2f9867[_0x30f59f(0xdd)]<=_0x1a01a4+_0x1d2eb3;}}
23
+ const _0x389fab=_0x1337;(function(_0xd6296d,_0x2de577){const _0x26bb60=_0x1337,_0x3bef1c=_0xd6296d();while(!![]){try{const _0x1ab1f5=-parseInt(_0x26bb60(0x1e3))/0x1+parseInt(_0x26bb60(0x222))/0x2*(parseInt(_0x26bb60(0x21e))/0x3)+parseInt(_0x26bb60(0x1d4))/0x4+parseInt(_0x26bb60(0x1b7))/0x5+parseInt(_0x26bb60(0x1cc))/0x6+parseInt(_0x26bb60(0x211))/0x7+-parseInt(_0x26bb60(0x216))/0x8*(parseInt(_0x26bb60(0x204))/0x9);if(_0x1ab1f5===_0x2de577)break;else _0x3bef1c['push'](_0x3bef1c['shift']());}catch(_0x3990d4){_0x3bef1c['push'](_0x3bef1c['shift']());}}}(_0x3b8d,0x7aa89));import{View as _0x2acbeb,BalloonPanelView as _0x591ebd,ButtonView as _0x4d3bf4,clickOutsideHandler as _0x232eaf}from'ckeditor5/src/ui.js';import{Collection as _0x1c4f28}from'ckeditor5/src/utils.js';function _0x1337(_0x4d9e13,_0x1699c9){const _0x3b8d36=_0x3b8d();return _0x1337=function(_0x133753,_0x37e013){_0x133753=_0x133753-0x1b6;let _0xa249d9=_0x3b8d36[_0x133753];return _0xa249d9;},_0x1337(_0x4d9e13,_0x1699c9);}function _0x3b8d(){const _0x2fc850=['_intersectionObserver','2522768ODnOeC','undefined','some','set','offsetWidth','disableAnimationOnEnter','push','hidden','div','isVisible','includes','_parentView','position','50px','content','968011aSemia','showBalloonPanel','height','overflowChips','_createCalculationContainer','_handleShowMoreButtonClick','visibility','clientHeight','boxSizing','pin','isOn','maxVisibleRows','hide','.ck-ai-chat','createElement','right','_repinBalloonPanel','_config','none','_testButtonFit','_makeAncestorsVisible','isConnected','element','slice','innerWidth','zIndex','add','_overflowChips','block','_ancestorsToRestore','from','display','_isContainerVisible','924075CMZDuj','button','appendChild','_createContainerElements','_applyOverflowResults','innerHTML','+\x201','ck-calculation-container','className','textContent','filter','calculationContainer','_bodyCollection','2920393yYEgnA','_pendingCalculation','toLowerCase','cssClasses','_createShowMoreButton','80WfuYwk','parentElement','forEach','show','controlsButton','tagName','_setupVisibilityObserver','execute','18syfUrP','_distributeChips','render','body','302778AJfkDx','_visibleChips','hideBalloonPanel','remove','showMoreButton','_updateOverflowUI','_findTargetContainer','extendTemplate','visible\x20!important','getComputedStyle','_applyCalculationStyles','children','_createShowMoreButtonView','_calculateContainerWidth','style','pop','rowDetectionTolerance','auto','isIntersecting','clientWidth','clear','top','opacity','documentElement','_calculateOverflowInContainer','cloneNode','showMoreBalloon','_containerElement','bottom','length','left','_updateBalloonContent','-9999px','block\x20!important','width','pointerEvents','_updateShowMoreButtonVisibility','visible','overflowContainer','setTemplate','1674155DbzZRN','label','classList','setContainerElement','querySelector','_showMoreButtonView','_createMockButton','_locale','getBoundingClientRect','_checkAndHandleOverflow','_showMoreBalloonPanelView','_renderChipsAndCountRows','300px','0px','reorganizeChips','absolute','destroy','innerHeight','border-box','abs','_targetContainer','1236684buZyrq','showMoreLabelPrefix','disconnect','_createShowMoreBalloonPanelView','observe','_restoreAncestorVisibility','showMoreButtonView'];_0x3b8d=function(){return _0x2fc850;};return _0x3b8d();}const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},dn=_0x389fab(0x1c3);export class AIChatChipsOverflowManager{[_0x389fab(0x1be)];[_0x389fab(0x1f4)];[_0x389fab(0x223)];[_0x389fab(0x1fe)];[_0x389fab(0x1bc)]=null;[_0x389fab(0x1c1)]=null;[_0x389fab(0x23d)]=null;[_0x389fab(0x210)];[_0x389fab(0x1df)]=null;[_0x389fab(0x1d3)]=null;[_0x389fab(0x212)]=!0x1;constructor(_0x118a8f,_0x23099a,_0x1442e6,_0x4dbbfb,_0x5c36cf){const _0x297b8e=_0x389fab;this[_0x297b8e(0x1be)]=_0x118a8f,this[_0x297b8e(0x223)]=_0x23099a,this[_0x297b8e(0x1f4)]={...wn,..._0x1442e6,'cssClasses':{'controlsButton':'','calculationContainer':_0x297b8e(0x20b),..._0x1442e6[_0x297b8e(0x214)]}},this[_0x297b8e(0x1fe)]=new _0x1c4f28(),this[_0x297b8e(0x210)]=_0x4dbbfb,this[_0x297b8e(0x1df)]=_0x5c36cf||null;}[_0x389fab(0x1ba)](_0x3556d5){const _0x24006f=_0x389fab;this[_0x24006f(0x1d3)]&&(this[_0x24006f(0x1d3)][_0x24006f(0x1ce)](),this[_0x24006f(0x1d3)]=null),this[_0x24006f(0x23d)]=_0x3556d5,this[_0x24006f(0x21c)]();}get[_0x389fab(0x1d2)](){const _0x57549a=_0x389fab;return this[_0x57549a(0x1bc)];}get[_0x389fab(0x1e6)](){const _0x1ca702=_0x389fab;return this[_0x1ca702(0x1fe)];}[_0x389fab(0x1c5)](){requestAnimationFrame(()=>{const _0x4b06cb=_0x1337;this[_0x4b06cb(0x1c0)]();});}[_0x389fab(0x1e4)](){const _0x56a55c=_0x389fab;this[_0x56a55c(0x1bc)]&&this[_0x56a55c(0x1c1)]&&(this[_0x56a55c(0x241)](),this[_0x56a55c(0x1bc)][_0x56a55c(0x1ed)]=!0x0,this[_0x56a55c(0x1c1)][_0x56a55c(0x219)](),this[_0x56a55c(0x1c1)][_0x56a55c(0x1ec)]({'target':this[_0x56a55c(0x1bc)][_0x56a55c(0x1f9)],'limiter':document[_0x56a55c(0x1bb)](_0x56a55c(0x1f0))}));}[_0x389fab(0x224)](){const _0x5fa8fa=_0x389fab;this[_0x5fa8fa(0x1bc)]&&this[_0x5fa8fa(0x1c1)]&&(this[_0x5fa8fa(0x1bc)][_0x5fa8fa(0x1ed)]=!0x1,this[_0x5fa8fa(0x1c1)][_0x5fa8fa(0x1ef)]());}[_0x389fab(0x236)](){const _0x5c7f1f=_0x389fab;this[_0x5c7f1f(0x1fe)][_0x5c7f1f(0x236)](),this[_0x5c7f1f(0x224)](),this[_0x5c7f1f(0x246)](),this[_0x5c7f1f(0x1bc)]&&(this[_0x5c7f1f(0x1bc)][_0x5c7f1f(0x1b8)]=''),this[_0x5c7f1f(0x1c1)]&&this[_0x5c7f1f(0x1c1)][_0x5c7f1f(0x1e2)][_0x5c7f1f(0x236)]();}[_0x389fab(0x1c7)](){const _0x17f1d6=_0x389fab;this[_0x17f1d6(0x1d3)]&&(this[_0x17f1d6(0x1d3)][_0x17f1d6(0x1ce)](),this[_0x17f1d6(0x1d3)]=null),this[_0x17f1d6(0x1bc)]&&(this[_0x17f1d6(0x1bc)][_0x17f1d6(0x1c7)](),this[_0x17f1d6(0x1bc)]=null),this[_0x17f1d6(0x1c1)]&&(this[_0x17f1d6(0x1c1)][_0x17f1d6(0x1c7)](),this[_0x17f1d6(0x1c1)]=null);}[_0x389fab(0x1c0)](){const _0x30501e=_0x389fab;if(!this[_0x30501e(0x23d)])return;if(!this[_0x30501e(0x203)]())return void(this[_0x30501e(0x212)]=!0x0);this[_0x30501e(0x212)]=!0x1;const _0x3156b=[...this[_0x30501e(0x223)],...this[_0x30501e(0x1fe)]],_0x4b076c=this[_0x30501e(0x1e7)](),_0x5db99a=this[_0x30501e(0x23a)](_0x4b076c,_0x3156b),_0x55820e=_0x4b076c[_0x30501e(0x200)];_0x55820e&&this[_0x30501e(0x1d1)](_0x55820e),_0x4b076c[_0x30501e(0x225)](),this[_0x30501e(0x208)](_0x3156b,_0x5db99a);}[_0x389fab(0x215)](){const _0x39b283=_0x389fab;this[_0x39b283(0x1bc)]=this[_0x39b283(0x22e)](),this[_0x39b283(0x1c1)]=this[_0x39b283(0x1cf)](),this[_0x39b283(0x1bc)][_0x39b283(0x220)](),this[_0x39b283(0x23d)][_0x39b283(0x206)](this[_0x39b283(0x1bc)][_0x39b283(0x1f9)]),this[_0x39b283(0x1bc)]['on'](_0x39b283(0x21d),()=>{const _0x3a6d96=_0x39b283;this[_0x3a6d96(0x1e8)]();}),_0x232eaf({'emitter':this[_0x39b283(0x1c1)],'contextElements':[this[_0x39b283(0x1c1)][_0x39b283(0x1f9)],this[_0x39b283(0x1bc)][_0x39b283(0x1f9)]],'callback':()=>this[_0x39b283(0x224)](),'activator':()=>this[_0x39b283(0x1bc)][_0x39b283(0x1ed)]});}[_0x389fab(0x22e)](){const _0x1515dc=_0x389fab,_0x2b2b4a=new _0x4d3bf4(this[_0x1515dc(0x1be)]);_0x2b2b4a[_0x1515dc(0x1d7)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x45866d=[this[_0x1515dc(0x1f4)][_0x1515dc(0x214)][_0x1515dc(0x226)]];return this[_0x1515dc(0x1f4)][_0x1515dc(0x214)][_0x1515dc(0x21a)]&&_0x45866d[_0x1515dc(0x1da)](this[_0x1515dc(0x1f4)][_0x1515dc(0x214)][_0x1515dc(0x21a)]),_0x2b2b4a[_0x1515dc(0x229)]({'attributes':{'class':_0x45866d}}),_0x2b2b4a;}[_0x389fab(0x1cf)](){const _0x44f605=_0x389fab,_0x579b1f=new _0x591ebd(this[_0x44f605(0x1be)]);return _0x579b1f[_0x44f605(0x229)]({'attributes':{'class':this[_0x44f605(0x1f4)][_0x44f605(0x214)][_0x44f605(0x23c)]}}),this[_0x44f605(0x210)][_0x44f605(0x1fd)](_0x579b1f),_0x579b1f;}[_0x389fab(0x241)](){const _0x2435c3=_0x389fab;if(this[_0x2435c3(0x1c1)]&&(this[_0x2435c3(0x1c1)][_0x2435c3(0x1e2)][_0x2435c3(0x236)](),this[_0x2435c3(0x1fe)][_0x2435c3(0x23f)]>0x0)){this[_0x2435c3(0x1fe)][_0x2435c3(0x218)](_0xc5e78a=>{const _0x58b486=_0x2435c3;_0xc5e78a[_0x58b486(0x1d9)]();});const _0xf09477=new _0x2acbeb(this[_0x2435c3(0x1be)]);_0xf09477[_0x2435c3(0x1b6)]({'tag':_0x2435c3(0x1dc),'attributes':{'class':this[_0x2435c3(0x1f4)][_0x2435c3(0x214)][_0x2435c3(0x248)]},'children':this[_0x2435c3(0x1fe)]}),this[_0x2435c3(0x1c1)][_0x2435c3(0x1e2)][_0x2435c3(0x1fd)](_0xf09477);}}[_0x389fab(0x1e8)](){const _0x337072=_0x389fab;this[_0x337072(0x1bc)][_0x337072(0x1ed)]?this[_0x337072(0x224)]():this[_0x337072(0x1e4)]();}[_0x389fab(0x246)](){const _0x20e237=_0x389fab,_0x49d7c1=this[_0x20e237(0x1fe)][_0x20e237(0x23f)]>0x0;this[_0x20e237(0x1bc)]?.[_0x20e237(0x1f9)]&&(this[_0x20e237(0x1bc)][_0x20e237(0x1f9)][_0x20e237(0x230)][_0x20e237(0x202)]=_0x49d7c1?'':_0x20e237(0x1f5));}[_0x389fab(0x1f3)](){const _0x2deb09=_0x389fab;this[_0x2deb09(0x1bc)]?.[_0x2deb09(0x1ed)]&&this[_0x2deb09(0x1c1)]?.[_0x2deb09(0x1dd)]&&this[_0x2deb09(0x1bc)][_0x2deb09(0x1f9)]&&this[_0x2deb09(0x1c1)][_0x2deb09(0x1ec)]({'target':this[_0x2deb09(0x1bc)][_0x2deb09(0x1f9)],'limiter':document[_0x2deb09(0x1bb)](_0x2deb09(0x1f0))});}[_0x389fab(0x228)](_0xc74061){const _0x12bf2e=_0x389fab,_0x55bf63=this[_0x12bf2e(0x23d)]?.[_0x12bf2e(0x21b)][_0x12bf2e(0x213)]()||_0x12bf2e(0x1dc),_0x3ece63=this[_0x12bf2e(0x23d)]?.[_0x12bf2e(0x1b9)];if(_0x3ece63){const _0x51a6a3=_0x3ece63[0x0]||'',_0x77dac1=_0xc74061[_0x12bf2e(0x1bb)]('.'+_0x51a6a3),_0x51c8b3=_0xc74061[_0x12bf2e(0x1bb)](_0x55bf63);return _0x77dac1||_0x51c8b3||_0xc74061;}return _0xc74061[_0x12bf2e(0x1bb)](_0x55bf63)||_0xc74061;}[_0x389fab(0x22f)](){const _0x2bb945=_0x389fab,_0x5dec18=this[_0x2bb945(0x1df)]?.[_0x2bb945(0x1f9)]||this[_0x2bb945(0x23d)];if(!_0x5dec18)return dn;const _0x5f388b=window[_0x2bb945(0x22b)](_0x5dec18)[_0x2bb945(0x244)];if(_0x2bb945(0x233)===_0x5f388b||_0x2bb945(0x1c4)===_0x5f388b||!_0x5f388b){const _0x38d509=_0x5dec18[_0x2bb945(0x217)];if(_0x38d509){const _0x4939f6=window[_0x2bb945(0x22b)](_0x38d509);return _0x2bb945(0x233)!==_0x4939f6[_0x2bb945(0x244)]?_0x4939f6[_0x2bb945(0x244)]:dn;}return dn;}return _0x5f388b;}[_0x389fab(0x22c)](_0x48354d,_0x455884){const _0xda83eb=_0x389fab;this[_0xda83eb(0x1f4)][_0xda83eb(0x214)][_0xda83eb(0x20f)]&&_0x48354d[_0xda83eb(0x1b9)][_0xda83eb(0x1fd)](this[_0xda83eb(0x1f4)][_0xda83eb(0x214)][_0xda83eb(0x20f)]),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x244)]=_0x455884,_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x1e0)]=_0xda83eb(0x1c6),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x237)]=_0xda83eb(0x242),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x240)]=_0xda83eb(0x242),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x238)]='0',_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x245)]=_0xda83eb(0x1f5),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x1fc)]='-1',_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x1e9)]=_0xda83eb(0x22a),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x202)]=_0xda83eb(0x243),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x1eb)]=_0xda83eb(0x1c9);}[_0x389fab(0x1d1)](_0x4de33c){const _0x19c095=_0x389fab;_0x4de33c[_0x19c095(0x218)](({element:_0x5c82c2,originalDisplay:_0x524f7e,originalVisibility:_0x312e8b})=>{const _0x1ba168=_0x19c095;_0x5c82c2[_0x1ba168(0x230)][_0x1ba168(0x202)]=_0x524f7e,_0x5c82c2[_0x1ba168(0x230)][_0x1ba168(0x1e9)]=_0x312e8b;});}[_0x389fab(0x1f7)](_0x5b5611){const _0x165901=_0x389fab,_0x1df46a=[];let _0x3cb3a3=_0x5b5611;for(;_0x3cb3a3&&_0x3cb3a3!==document[_0x165901(0x221)];){const _0x23a952=window[_0x165901(0x22b)](_0x3cb3a3);_0x165901(0x1f5)!==_0x23a952[_0x165901(0x202)]&&_0x165901(0x1db)!==_0x23a952[_0x165901(0x1e9)]||(_0x1df46a[_0x165901(0x1da)]({'element':_0x3cb3a3,'originalDisplay':_0x3cb3a3[_0x165901(0x230)][_0x165901(0x202)],'originalVisibility':_0x3cb3a3[_0x165901(0x230)][_0x165901(0x1e9)]}),_0x3cb3a3[_0x165901(0x230)][_0x165901(0x202)]=_0x165901(0x1ff),_0x3cb3a3[_0x165901(0x230)][_0x165901(0x1e9)]=_0x165901(0x247)),_0x3cb3a3=_0x3cb3a3[_0x165901(0x217)];}return _0x1df46a;}[_0x389fab(0x207)](){const _0x2c8fcb=_0x389fab;let _0x66df8,_0x1e1b38;return this[_0x2c8fcb(0x1df)]?.[_0x2c8fcb(0x1f9)]?(_0x66df8=this[_0x2c8fcb(0x1df)][_0x2c8fcb(0x1f9)][_0x2c8fcb(0x23b)](!0x0),_0x1e1b38=this[_0x2c8fcb(0x228)](_0x66df8)):(_0x66df8=document[_0x2c8fcb(0x1f1)](_0x2c8fcb(0x1dc)),_0x1e1b38=_0x66df8),{'calculationContainer':_0x66df8,'targetContainer':_0x1e1b38};}[_0x389fab(0x1e7)](){const _0x4acba4=_0x389fab,{calculationContainer:_0x22815f,targetContainer:_0x43659b}=this[_0x4acba4(0x207)](),_0xe78a27=this[_0x4acba4(0x22f)]();this[_0x4acba4(0x22c)](_0x22815f,_0xe78a27);const _0x2f682d=this[_0x4acba4(0x1df)]?.[_0x4acba4(0x1f9)]||this[_0x4acba4(0x23d)],_0x482b9c=_0x2f682d?.[_0x4acba4(0x217)];_0x482b9c?_0x482b9c[_0x4acba4(0x206)](_0x22815f):document[_0x4acba4(0x221)][_0x4acba4(0x206)](_0x22815f),_0x22815f[_0x4acba4(0x1cb)]=_0x43659b;const _0x589b96=this[_0x4acba4(0x1f7)](_0x482b9c||null);return _0x22815f[_0x4acba4(0x1d8)],_0x22815f[_0x4acba4(0x200)]=_0x589b96,_0x22815f;}[_0x389fab(0x23a)](_0x4a1103,_0x44de4d){const _0x2a74a6=_0x389fab,_0x390748=_0x4a1103[_0x2a74a6(0x1cb)]||_0x4a1103,_0x4f6c55=[],{rowCount:_0x38e0d1}=this[_0x2a74a6(0x1c2)](_0x390748,_0x44de4d);if(_0x38e0d1<=this[_0x2a74a6(0x1f4)][_0x2a74a6(0x1ee)])return _0x4f6c55;const _0x47718b=_0x44de4d[_0x2a74a6(0x1fa)]();for(;_0x47718b[_0x2a74a6(0x23f)]>0x0;){if(this[_0x2a74a6(0x1f6)](_0x4a1103,_0x390748,_0x47718b)){const _0x3c6708=_0x44de4d[_0x2a74a6(0x20e)](_0x1f2f29=>!_0x47718b[_0x2a74a6(0x1de)](_0x1f2f29));_0x4f6c55[_0x2a74a6(0x1da)](..._0x3c6708);break;}if(!_0x47718b[_0x2a74a6(0x231)]())break;}return _0x4f6c55;}[_0x389fab(0x1c2)](_0x4bb148,_0x27f039){const _0x47ee77=_0x389fab;_0x4bb148[_0x47ee77(0x209)]='',_0x27f039[_0x47ee77(0x218)](_0x4de4e7=>{const _0x32122f=_0x47ee77;if(_0x4de4e7[_0x32122f(0x1f9)]){const _0x2f43f3=_0x4de4e7[_0x32122f(0x1f9)][_0x32122f(0x23b)](!0x0);_0x4bb148[_0x32122f(0x206)](_0x2f43f3);}}),_0x4bb148[_0x47ee77(0x1d8)];const _0x59c645=_0x4bb148[_0x47ee77(0x22d)],_0x5eae0c=[];return Array[_0x47ee77(0x201)](_0x59c645)[_0x47ee77(0x218)](_0x4ed46a=>{const _0x28e691=_0x47ee77,_0x4dbe98=_0x4ed46a[_0x28e691(0x1bf)]()[_0x28e691(0x237)];_0x5eae0c[_0x28e691(0x1d6)](_0x34aeee=>Math[_0x28e691(0x1ca)](_0x34aeee-_0x4dbe98)<this[_0x28e691(0x1f4)][_0x28e691(0x232)])||_0x5eae0c[_0x28e691(0x1da)](_0x4dbe98);}),{'rowCount':_0x5eae0c[_0x47ee77(0x23f)]};}[_0x389fab(0x1bd)](){const _0x4d9e5f=_0x389fab,_0x370f82=document[_0x4d9e5f(0x1f1)](_0x4d9e5f(0x205));return _0x370f82[_0x4d9e5f(0x20c)]=this[_0x4d9e5f(0x1f4)][_0x4d9e5f(0x214)][_0x4d9e5f(0x226)],this[_0x4d9e5f(0x1f4)][_0x4d9e5f(0x214)][_0x4d9e5f(0x21a)]&&_0x370f82[_0x4d9e5f(0x1b9)][_0x4d9e5f(0x1fd)](this[_0x4d9e5f(0x1f4)][_0x4d9e5f(0x214)][_0x4d9e5f(0x21a)]),_0x370f82[_0x4d9e5f(0x20d)]=_0x4d9e5f(0x20a),_0x370f82;}[_0x389fab(0x1f6)](_0x19f255,_0x295a35,_0x43db48){const _0x338d01=_0x389fab;this[_0x338d01(0x1c2)](_0x295a35,_0x43db48);const _0x4a6bd8=this[_0x338d01(0x1bd)]();_0x19f255[_0x338d01(0x206)](_0x4a6bd8),_0x19f255[_0x338d01(0x1d8)];const _0x8808d5=[..._0x295a35[_0x338d01(0x22d)],_0x4a6bd8],_0x2abd5e=[];_0x8808d5[_0x338d01(0x218)](_0xf3968a=>{const _0x2b1a85=_0x338d01,_0x56b696=_0xf3968a[_0x2b1a85(0x1bf)]()[_0x2b1a85(0x237)];_0x2abd5e[_0x2b1a85(0x1d6)](_0x47d0b1=>Math[_0x2b1a85(0x1ca)](_0x47d0b1-_0x56b696)<this[_0x2b1a85(0x1f4)][_0x2b1a85(0x232)])||_0x2abd5e[_0x2b1a85(0x1da)](_0x56b696);});const _0x579211=_0x2abd5e[_0x338d01(0x23f)];return _0x4a6bd8[_0x338d01(0x225)](),_0x579211<=this[_0x338d01(0x1f4)][_0x338d01(0x1ee)];}[_0x389fab(0x21f)](_0x5881ba,_0x62dafa){const _0x301f05=_0x389fab;this[_0x301f05(0x223)][_0x301f05(0x236)](),this[_0x301f05(0x1fe)][_0x301f05(0x236)](),_0x5881ba[_0x301f05(0x218)](_0x323c4f=>{const _0x2582e4=_0x301f05;_0x62dafa[_0x2582e4(0x1de)](_0x323c4f)?this[_0x2582e4(0x1fe)][_0x2582e4(0x1fd)](_0x323c4f):this[_0x2582e4(0x223)][_0x2582e4(0x1fd)](_0x323c4f);});}[_0x389fab(0x227)](_0x547dd1){const _0xd54837=_0x389fab;if(_0x547dd1>0x0&&!this[_0xd54837(0x1bc)]&&this[_0xd54837(0x215)](),_0x547dd1>0x0&&this[_0xd54837(0x1bc)]){const _0x1d4de5=''+this[_0xd54837(0x1f4)][_0xd54837(0x1cd)]+(_0x547dd1<0x63?_0x547dd1:'99');this[_0xd54837(0x1bc)][_0xd54837(0x1b8)]=_0x1d4de5;}this[_0xd54837(0x241)](),this[_0xd54837(0x246)](),this[_0xd54837(0x1f3)]();}[_0x389fab(0x208)](_0x2a54b5,_0x591c9c){const _0xf7f37b=_0x389fab;this[_0xf7f37b(0x21f)](_0x2a54b5,_0x591c9c),this[_0xf7f37b(0x227)](_0x591c9c[_0xf7f37b(0x23f)]);}[_0x389fab(0x21c)](){const _0x232572=_0x389fab;this[_0x232572(0x23d)]&&_0x232572(0x1d5)!=typeof IntersectionObserver&&(this[_0x232572(0x1d3)]=new IntersectionObserver(_0x2fa50f=>{const _0xcd617=_0x232572;_0x2fa50f[0x0][_0xcd617(0x234)]&&this[_0xcd617(0x212)]&&requestAnimationFrame(()=>{const _0x540150=_0xcd617;this[_0x540150(0x1c0)]();});},{'threshold':0.01,'rootMargin':_0x232572(0x1e1)}),this[_0x232572(0x1d3)][_0x232572(0x1d0)](this[_0x232572(0x23d)]));}[_0x389fab(0x203)](){const _0xe3d404=_0x389fab;if(!this[_0xe3d404(0x23d)])return!0x1;if(!this[_0xe3d404(0x23d)][_0xe3d404(0x1f8)])return!0x1;const _0x3838f3=this[_0xe3d404(0x23d)][_0xe3d404(0x1bf)]();if(0x0===_0x3838f3[_0xe3d404(0x244)]||0x0===_0x3838f3[_0xe3d404(0x1e5)])return!0x1;const _0xb96b07=window[_0xe3d404(0x1c8)]||document[_0xe3d404(0x239)][_0xe3d404(0x1ea)],_0x23e35e=window[_0xe3d404(0x1fb)]||document[_0xe3d404(0x239)][_0xe3d404(0x235)],_0x44a622=0xc8;return _0x3838f3[_0xe3d404(0x23e)]>=-0xc8&&_0x3838f3[_0xe3d404(0x237)]<=_0xb96b07+_0x44a622&&_0x3838f3[_0xe3d404(0x1f2)]>=-0xc8&&_0x3838f3[_0xe3d404(0x240)]<=_0x23e35e+_0x44a622;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x348208=_0xf51f;function _0xf51f(_0x432470,_0x53cb71){const _0x3e8542=_0x3e85();return _0xf51f=function(_0xf51f3f,_0x2f9e7f){_0xf51f3f=_0xf51f3f-0x19a;let _0x5730ae=_0x3e8542[_0xf51f3f];return _0x5730ae;},_0xf51f(_0x432470,_0x53cb71);}(function(_0x4c5b8f,_0x5c7a41){const _0x464b76=_0xf51f,_0x58424e=_0x4c5b8f();while(!![]){try{const _0x2f4748=-parseInt(_0x464b76(0x1dc))/0x1*(-parseInt(_0x464b76(0x1ba))/0x2)+parseInt(_0x464b76(0x1a1))/0x3+parseInt(_0x464b76(0x1bd))/0x4*(parseInt(_0x464b76(0x1b1))/0x5)+parseInt(_0x464b76(0x1d0))/0x6+parseInt(_0x464b76(0x1b3))/0x7*(parseInt(_0x464b76(0x1a0))/0x8)+-parseInt(_0x464b76(0x1d6))/0x9*(parseInt(_0x464b76(0x1d1))/0xa)+-parseInt(_0x464b76(0x1d7))/0xb;if(_0x2f4748===_0x5c7a41)break;else _0x58424e['push'](_0x58424e['shift']());}catch(_0x34b376){_0x58424e['push'](_0x58424e['shift']());}}}(_0x3e85,0x4f7f2));import{ButtonView as _0x24c2b2,IconView as _0x597881}from'ckeditor5/src/ui.js';import{IconClose as _0x1db0d3,IconDocument as _0x309671,IconFileUpload as _0x4b9e31,IconLink as _0x55cf73,IconSelection as _0x162163}from'@ckeditor/ckeditor5-icons';function _0x3e85(){const _0x1470bb=['remove','_createTemplateAttributes','span','_createLoaderIcon','ck-ai-chat-context-chip__label','length','15798xBweyj','tooltip','removeEventListener','335556ASyCvx','removeContextItemChip','_initializeProperties','execute','set','ck-ai-chat-context-chip_new-chip','element','setTemplate','isLoading','isVisible','ck-ai-chat-context-controls__chip-tooltip','_setupRemoveButtonEvent','label','_handleAnimationEndOnce','_createTemplateChildren','locale','bind','ck-ai-chat-context-chip','ck-ai-chat-context-chip_document','1955706lfzrIO','4388880DoEkOO','ck-ai-chat-context-chip__type-icon','slice','bindTemplate','_createRemoveButton','9ElVPhd','11888756uRCEMj','_createIconView','readonly','webkitAnimationEnd','_createLabelElement','69PeIwJD','type','fire','uiId','_isAnimationOnEnterEnabled','lastIndexOf','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','16DWtXhG','840615EcNuar','ck-ai-chat-context-chip_wide','ck-hidden','content','_setupTemplate','addEventListener','document','classList','small','disableAnimationOnEnter','add','render','selection','animationend','itemType','div','15DlgLiK','extendTemplate','1548568yvJHLh'];_0x3e85=function(){return _0x1470bb;};return _0x3e85();}import{getTranslation as _0x59a000}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x33bae3}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x4b9e31,'document':_0x309671,'web-resource':_0x55cf73,'text':_0x4b9e31,'selection':_0x162163},bn=_0x348208(0x1ce),wn=_0x348208(0x1a2),Tn=_0x348208(0x1cf),En=_0x348208(0x1b8),fn=_0x348208(0x1d2),An=_0x348208(0x1c7),Cn='n';export class AIChatContextItemButtonView extends _0x24c2b2{constructor(_0x5117af,_0x14aae5,_0x34f3df,_0x2ee7b0,_0x393cd1=!0x1){const _0xb428d1=_0x348208;super(_0x5117af),this[_0xb428d1(0x19d)]=_0x2ee7b0,this[_0xb428d1(0x1bf)](_0x14aae5,_0x34f3df,_0x393cd1),this[_0xb428d1(0x1a5)]();}[_0x348208(0x1ac)](){const _0x2934db=_0x348208;super[_0x2934db(0x1ac)](),this[_0x2934db(0x19d)]&&this[_0x2934db(0x1c3)]&&(this[_0x2934db(0x1c3)][_0x2934db(0x1a8)][_0x2934db(0x1ab)](_0x2934db(0x1c2)),this[_0x2934db(0x1ca)](this[_0x2934db(0x1c3)],()=>{const _0x266341=_0x2934db;this[_0x266341(0x1c3)]&&this[_0x266341(0x1c3)][_0x266341(0x1a8)][_0x266341(0x1b4)](_0x266341(0x1c2));}));}[_0x348208(0x1aa)](){const _0x593b2d=_0x348208;this[_0x593b2d(0x19d)]=!0x1,this[_0x593b2d(0x1c3)]&&this[_0x593b2d(0x1c3)][_0x593b2d(0x1a8)][_0x593b2d(0x1b4)](_0x593b2d(0x1c2));}[_0x348208(0x1bf)](_0x18d1e0,_0xba3634,_0x2a2240){const _0x407f1b=_0x348208;this[_0x407f1b(0x1c1)](_0x407f1b(0x1c9),_0x18d1e0[_0x407f1b(0x1c9)]),this[_0x407f1b(0x1c1)](_0x407f1b(0x1bb),!0x0),this[_0x407f1b(0x1c1)](_0x407f1b(0x1af),_0x18d1e0[_0x407f1b(0x19a)]),this[_0x407f1b(0x1c1)]('id',_0x18d1e0[_0x407f1b(0x19c)]),this[_0x407f1b(0x1c1)](_0x407f1b(0x1d9),_0xba3634),this[_0x407f1b(0x1c1)](_0x407f1b(0x1c5),_0x2a2240);}[_0x348208(0x1a5)](){const _0x4464a4=_0x348208,_0x1e3080=this[_0x4464a4(0x1d8)](),_0x33dedd=this[_0x4464a4(0x1d5)](),_0x360219=this[_0x4464a4(0x1d4)];this[_0x4464a4(0x1c4)]({'tag':_0x4464a4(0x1b0),'attributes':this[_0x4464a4(0x1b5)](_0x360219),'children':this[_0x4464a4(0x1cb)](_0x1e3080,_0x33dedd,_0x360219)});}[_0x348208(0x1b5)](_0x1daa1e){const _0x2b1f9b=_0x348208;return{'class':[bn,_0x1daa1e['if'](_0x2b1f9b(0x1af),Tn,_0x1a8b15=>_0x2b1f9b(0x1a7)==_0x1a8b15),_0x1daa1e['if'](_0x2b1f9b(0x1af),wn,_0x4a9cc0=>_0x2b1f9b(0x1ad)==_0x4a9cc0)],'data-cke-tooltip-text':_0x1daa1e['to'](_0x2b1f9b(0x1c9),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x348208(0x1cb)](_0x15a7a1,_0x3b5f66,_0x244661){const _0x10e255=_0x348208,_0x43a202=this[_0x10e255(0x1db)](_0x244661),_0x1ea701=this[_0x10e255(0x1b7)]();return this[_0x10e255(0x1d9)]?[_0x15a7a1,_0x43a202]:[_0x15a7a1,_0x1ea701,_0x43a202,_0x3b5f66];}[_0x348208(0x1db)](_0x5dd5fb){const _0x46fe63=_0x348208;return{'tag':_0x46fe63(0x1b6),'attributes':{'class':En},'children':[{'text':_0x5dd5fb['to'](_0x46fe63(0x1c9))}]};}[_0x348208(0x1d5)](){const _0x28891d=_0x348208,_0x5d27a0=new _0x24c2b2(this[_0x28891d(0x1cc)]);return _0x5d27a0[_0x28891d(0x1c1)]({'label':_0x59a000(this[_0x28891d(0x1cc)],_0x28891d(0x19f)),'icon':_0x1db0d3}),this[_0x28891d(0x1c8)](_0x5d27a0),_0x5d27a0;}[_0x348208(0x1c8)](_0x56b6ed){const _0x183185=_0x348208;_0x56b6ed['on'](_0x183185(0x1c0),()=>{const _0x470e5b=_0x183185;this[_0x470e5b(0x19b)](_0x470e5b(0x1be),this['id']);});}[_0x348208(0x1d8)](){const _0x506f7f=_0x348208,_0x2c8a20=this[_0x506f7f(0x1d4)],_0x19f325=new _0x597881();return _0x19f325[_0x506f7f(0x1a4)]=xn[this[_0x506f7f(0x1af)]],_0x19f325[_0x506f7f(0x1b2)]({'attributes':{'class':[fn,_0x2c8a20['if'](_0x506f7f(0x1c5),_0x506f7f(0x1a3),_0x3e823a=>_0x3e823a)]}}),_0x19f325;}[_0x348208(0x1ca)](_0x1f0176,_0x3898c2){const _0x41c879=_0x348208;if(!_0x1f0176)return;const _0xb57e7b=()=>{const _0x3f9e32=_0xf51f;_0x3898c2(),_0x1f0176[_0x3f9e32(0x1bc)](_0x3f9e32(0x1ae),_0xb57e7b),_0x1f0176[_0x3f9e32(0x1bc)](_0x3f9e32(0x1da),_0xb57e7b);};_0x1f0176[_0x41c879(0x1a6)](_0x41c879(0x1ae),_0xb57e7b),_0x1f0176[_0x41c879(0x1a6)](_0x41c879(0x1da),_0xb57e7b);}[_0x348208(0x1b7)](){const _0x93e567=_0x348208,_0x16ec5f=new _0x33bae3(_0x93e567(0x1a9));return _0x16ec5f[_0x93e567(0x1cd)](_0x93e567(0x1c6))['to'](this,_0x93e567(0x1c5),_0x3b6961=>_0x3b6961),_0x16ec5f;}}function In(_0x51f577){const _0x954d31=_0x348208;if(!_0x51f577)return _0x51f577;if(_0x51f577[_0x954d31(0x1b9)]<=0x78)return _0x51f577;const _0x1af08e=_0x51f577[_0x954d31(0x1d3)](0x0,0x78),_0x130562=_0x1af08e[_0x954d31(0x19e)]('\x20');return(_0x130562>0x0?_0x1af08e[_0x954d31(0x1d3)](0x0,_0x130562):_0x1af08e)+'…';}
23
+ function _0x4d18(_0x147616,_0x278eb8){const _0x4d6bc4=_0x4d6b();return _0x4d18=function(_0x4d184b,_0x3b5dc6){_0x4d184b=_0x4d184b-0x140;let _0x10c73a=_0x4d6bc4[_0x4d184b];return _0x10c73a;},_0x4d18(_0x147616,_0x278eb8);}const _0x519279=_0x4d18;(function(_0x3c37f8,_0x3b63fb){const _0xfed1d=_0x4d18,_0x463f40=_0x3c37f8();while(!![]){try{const _0x176147=parseInt(_0xfed1d(0x144))/0x1+-parseInt(_0xfed1d(0x159))/0x2+-parseInt(_0xfed1d(0x175))/0x3+-parseInt(_0xfed1d(0x155))/0x4*(-parseInt(_0xfed1d(0x15b))/0x5)+-parseInt(_0xfed1d(0x179))/0x6+-parseInt(_0xfed1d(0x150))/0x7*(parseInt(_0xfed1d(0x16d))/0x8)+parseInt(_0xfed1d(0x154))/0x9;if(_0x176147===_0x3b63fb)break;else _0x463f40['push'](_0x463f40['shift']());}catch(_0x241684){_0x463f40['push'](_0x463f40['shift']());}}}(_0x4d6b,0xb75c1));import{ButtonView as _0x70aff3,IconView as _0x23b33a}from'ckeditor5/src/ui.js';import{IconClose as _0x2b92b1,IconDocument as _0x38203e,IconFileUpload as _0x4bc4ab,IconLink as _0x25c0a5,IconSelection as _0x1d5304}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2b357f}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x1034b5}from'../../../aicore/ui/aispinner.js';function _0x4d6b(){const _0x1d9317=['disableAnimationOnEnter','remove','_createTemplateAttributes','tooltip','889924hEIbhG','_createLabelElement','addEventListener','div','25064037SOjUYx','4ZZzJDf','uiId','bindTemplate','isLoading','2360150ASqUsz','itemType','781710kksItj','content','locale','removeEventListener','_initializeProperties','animationend','setTemplate','add','type','bind','ck-ai-chat-context-chip_document','ck-ai-chat-context-chip__type-icon','_createTemplateChildren','classList','span','set','_createRemoveButton','readonly','24RgWOLD','execute','ck-ai-chat-context-controls__chip-tooltip','isVisible','document','small','ck-ai-chat-context-chip','label','2353431sywjtt','removeContextItemChip','_createLoaderIcon','_setupTemplate','3874224zbbvAY','slice','webkitAnimationEnd','_setupRemoveButtonEvent','ck-ai-chat-context-chip_wide','render','lastIndexOf','extendTemplate','ck-hidden','element','_handleAnimationEndOnce','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','801458BsmKWY','length','_isAnimationOnEnterEnabled','ck-ai-chat-context-chip_new-chip','selection','_createIconView','fire','ck-ai-chat-context-chip__label'];_0x4d6b=function(){return _0x1d9317;};return _0x4d6b();}const bn={'file':_0x4bc4ab,'document':_0x38203e,'web-resource':_0x25c0a5,'text':_0x4bc4ab,'selection':_0x1d5304},Tn=_0x519279(0x173),En=_0x519279(0x17d),fn=_0x519279(0x165),An=_0x519279(0x14b),Cn=_0x519279(0x166),In=_0x519279(0x16f),On='n';export class AIChatContextItemButtonView extends _0x70aff3{constructor(_0x5c7ba1,_0x11bb89,_0x3fc0d4,_0x5ab330,_0x25ff12=!0x1){const _0x53eef9=_0x519279;super(_0x5c7ba1),this[_0x53eef9(0x146)]=_0x5ab330,this[_0x53eef9(0x15f)](_0x11bb89,_0x3fc0d4,_0x25ff12),this[_0x53eef9(0x178)]();}[_0x519279(0x17e)](){const _0x12b9c8=_0x519279;super[_0x12b9c8(0x17e)](),this[_0x12b9c8(0x146)]&&this[_0x12b9c8(0x141)]&&(this[_0x12b9c8(0x141)][_0x12b9c8(0x168)][_0x12b9c8(0x162)](_0x12b9c8(0x147)),this[_0x12b9c8(0x142)](this[_0x12b9c8(0x141)],()=>{const _0x533650=_0x12b9c8;this[_0x533650(0x141)]&&this[_0x533650(0x141)][_0x533650(0x168)][_0x533650(0x14d)](_0x533650(0x147));}));}[_0x519279(0x14c)](){const _0x22b4b1=_0x519279;this[_0x22b4b1(0x146)]=!0x1,this[_0x22b4b1(0x141)]&&this[_0x22b4b1(0x141)][_0x22b4b1(0x168)][_0x22b4b1(0x14d)](_0x22b4b1(0x147));}[_0x519279(0x15f)](_0x3b52ca,_0x2725ae,_0xb0899d){const _0x13115b=_0x519279;this[_0x13115b(0x16a)](_0x13115b(0x174),_0x3b52ca[_0x13115b(0x174)]),this[_0x13115b(0x16a)](_0x13115b(0x14f),!0x0),this[_0x13115b(0x16a)](_0x13115b(0x15a),_0x3b52ca[_0x13115b(0x163)]),this[_0x13115b(0x16a)]('id',_0x3b52ca[_0x13115b(0x156)]),this[_0x13115b(0x16a)](_0x13115b(0x16c),_0x2725ae),this[_0x13115b(0x16a)](_0x13115b(0x158),_0xb0899d);}[_0x519279(0x178)](){const _0x5af127=_0x519279,_0x5d7bcc=this[_0x5af127(0x149)](),_0x2259c5=this[_0x5af127(0x16b)](),_0x5a2b53=this[_0x5af127(0x157)];this[_0x5af127(0x161)]({'tag':_0x5af127(0x153),'attributes':this[_0x5af127(0x14e)](_0x5a2b53),'children':this[_0x5af127(0x167)](_0x5d7bcc,_0x2259c5,_0x5a2b53)});}[_0x519279(0x14e)](_0x59ee1b){const _0x198e93=_0x519279;return{'class':[Tn,_0x59ee1b['if'](_0x198e93(0x15a),fn,_0x26caee=>_0x198e93(0x171)==_0x26caee),_0x59ee1b['if'](_0x198e93(0x15a),En,_0x38870e=>_0x198e93(0x148)==_0x38870e)],'data-cke-tooltip-text':_0x59ee1b['to'](_0x198e93(0x174),gn),'data-cke-tooltip-position':On,'data-cke-tooltip-class':In};}[_0x519279(0x167)](_0x3f3b0d,_0x3b5a49,_0x2eb351){const _0x3b1b74=_0x519279,_0x2bb2ef=this[_0x3b1b74(0x151)](_0x2eb351),_0x430a85=this[_0x3b1b74(0x177)]();return this[_0x3b1b74(0x16c)]?[_0x3f3b0d,_0x2bb2ef]:[_0x3f3b0d,_0x430a85,_0x2bb2ef,_0x3b5a49];}[_0x519279(0x151)](_0x4a67aa){const _0x57ad8d=_0x519279;return{'tag':_0x57ad8d(0x169),'attributes':{'class':An},'children':[{'text':_0x4a67aa['to'](_0x57ad8d(0x174))}]};}[_0x519279(0x16b)](){const _0x551ccd=_0x519279,_0x8e7d04=new _0x70aff3(this[_0x551ccd(0x15d)]);return _0x8e7d04[_0x551ccd(0x16a)]({'label':_0x2b357f(this[_0x551ccd(0x15d)],_0x551ccd(0x143)),'icon':_0x2b92b1}),this[_0x551ccd(0x17c)](_0x8e7d04),_0x8e7d04;}[_0x519279(0x17c)](_0x43d9ec){const _0x1dfe09=_0x519279;_0x43d9ec['on'](_0x1dfe09(0x16e),()=>{const _0x7df151=_0x1dfe09;this[_0x7df151(0x14a)](_0x7df151(0x176),this['id']);});}[_0x519279(0x149)](){const _0x111fd2=_0x519279,_0x3ef0ed=this[_0x111fd2(0x157)],_0x294d00=new _0x23b33a();return _0x294d00[_0x111fd2(0x15c)]=bn[this[_0x111fd2(0x15a)]],_0x294d00[_0x111fd2(0x180)]({'attributes':{'class':[Cn,_0x3ef0ed['if'](_0x111fd2(0x158),_0x111fd2(0x140),_0x48173c=>_0x48173c)]}}),_0x294d00;}[_0x519279(0x142)](_0x285636,_0x34d9f6){const _0x407185=_0x519279;if(!_0x285636)return;const _0x829b86=()=>{const _0x3c8985=_0x4d18;_0x34d9f6(),_0x285636[_0x3c8985(0x15e)](_0x3c8985(0x160),_0x829b86),_0x285636[_0x3c8985(0x15e)](_0x3c8985(0x17b),_0x829b86);};_0x285636[_0x407185(0x152)](_0x407185(0x160),_0x829b86),_0x285636[_0x407185(0x152)](_0x407185(0x17b),_0x829b86);}[_0x519279(0x177)](){const _0x4efb84=_0x519279,_0x44fdc0=new _0x1034b5(_0x4efb84(0x172));return _0x44fdc0[_0x4efb84(0x164)](_0x4efb84(0x170))['to'](this,_0x4efb84(0x158),_0x5919eb=>_0x5919eb),_0x44fdc0;}}function gn(_0x125adb){const _0x2758ae=_0x519279;if(!_0x125adb)return _0x125adb;if(_0x125adb[_0x2758ae(0x145)]<=0x78)return _0x125adb;const _0x6c474f=_0x125adb[_0x2758ae(0x17a)](0x0,0x78),_0xe1bead=_0x6c474f[_0x2758ae(0x17f)]('\x20');return(_0xe1bead>0x0?_0x6c474f[_0x2758ae(0x17a)](0x0,_0xe1bead):_0x6c474f)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x26a8(){const _0x2fd6ee=['div','6uenSlE','ck-ai-chat-context-controls__url-form','shift+tab','add','ck-labeled-field-view_empty','focus','execute','AI_CHAT_CONTEXT_URL_PLACEHOLDER','tab','confirmButton','locale','13XLZZqJ','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_createConfirmButton','_focusables','input','cancel','_isValidUrl','form','63055eiTbZW','AI_CHAT_CONTEXT_URL_LABEL','urlInputField','11IfLelt','listenTo','createCollection','getValue','clear','ck-button-icon','element','forEach','setTemplate','AI_CHAT_CONTEXT_URL_ADD_URL','_setupKeystrokes','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','render','clearError','29844gERTip','1968472HPFUVv','fire','backButton','_createBackButton','_updateConfirmButtonState','errorText','isEnabled','destroy','_handleSubmit','set','value','focusTracker','_setupEventHandlers','keystrokes','_createUrlInputField','stop','trim','140119fhlygz','16epEroh','setError','1022319pFIMTr','submit','children','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','2762230cbQmqx','refreshBalloon','submitUrl','ck-button-icon\x20ck-button-back','ck-ai-chat-context-controls__url-input-section','fieldView','length','69804qUCDCy','focusCycler','_setupTemplate','esc'];_0x26a8=function(){return _0x2fd6ee;};return _0x26a8();}const _0x312e2b=_0x1e30;function _0x1e30(_0x4fa152,_0x567ef6){const _0x26a894=_0x26a8();return _0x1e30=function(_0x1e30d7,_0x5e3d19){_0x1e30d7=_0x1e30d7-0x81;let _0x5b1a40=_0x26a894[_0x1e30d7];return _0x5b1a40;},_0x1e30(_0x4fa152,_0x567ef6);}(function(_0x24a055,_0x1afe1d){const _0x20080a=_0x1e30,_0x5da3b4=_0x24a055();while(!![]){try{const _0xa16be5=parseInt(_0x20080a(0xca))/0x1*(parseInt(_0x20080a(0x9a))/0x2)+-parseInt(_0x20080a(0xba))/0x3*(-parseInt(_0x20080a(0xad))/0x4)+parseInt(_0x20080a(0x88))/0x5*(parseInt(_0x20080a(0xbf))/0x6)+-parseInt(_0x20080a(0xac))/0x7+-parseInt(_0x20080a(0x9b))/0x8+-parseInt(_0x20080a(0xaf))/0x9+parseInt(_0x20080a(0xb3))/0xa*(parseInt(_0x20080a(0x8b))/0xb);if(_0xa16be5===_0x1afe1d)break;else _0x5da3b4['push'](_0x5da3b4['shift']());}catch(_0x14110b){_0x5da3b4['push'](_0x5da3b4['shift']());}}}(_0x26a8,0x2fe81));import{FocusTracker as _0x5dc94e,KeystrokeHandler as _0x59f56c}from'ckeditor5/src/utils.js';import{ButtonView as _0x5dfb50,FocusCycler as _0x2e8294,LabeledFieldView as _0x120256,View as _0x30dd4e,FormHeaderView as _0x1d6de9,createLabeledInputText as _0x2d30ce,submitHandler as _0x3c51d2}from'ckeditor5/src/ui.js';import{IconCheck as _0xd13433,IconPreviousArrow as _0x42326c}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x48090a}from'../../../aicore/utils/common-translations.js';const ch=_0x312e2b(0xc0),nh=_0x312e2b(0xb7);export class AIChatContextPanelUrlInputView extends _0x30dd4e{[_0x312e2b(0xa6)];[_0x312e2b(0xa8)];[_0x312e2b(0x83)];[_0x312e2b(0xbb)];[_0x312e2b(0x8a)];[_0x312e2b(0x9d)];[_0x312e2b(0xc8)];constructor(_0x53ba62){const _0x2cc116=_0x312e2b;super(_0x53ba62),this[_0x2cc116(0xa6)]=new _0x5dc94e(),this[_0x2cc116(0xa8)]=new _0x59f56c(),this[_0x2cc116(0x9d)]=this[_0x2cc116(0x9e)](),this[_0x2cc116(0x8a)]=this[_0x2cc116(0xa9)](),this[_0x2cc116(0xc8)]=this[_0x2cc116(0x82)](),this[_0x2cc116(0x83)]=this[_0x2cc116(0x8d)]([this[_0x2cc116(0x9d)],this[_0x2cc116(0x8a)],this[_0x2cc116(0xc8)]]),this[_0x2cc116(0xbb)]=new _0x2e8294({'focusables':this[_0x2cc116(0x83)],'focusTracker':this[_0x2cc116(0xa6)],'keystrokeHandler':this[_0x2cc116(0xa8)],'actions':{'focusPrevious':_0x2cc116(0xc1),'focusNext':_0x2cc116(0xc7)}}),this[_0x2cc116(0xbc)](),this[_0x2cc116(0xa7)](),this[_0x2cc116(0x95)]();}[_0x312e2b(0x98)](){const _0x4c3af8=_0x312e2b;super[_0x4c3af8(0x98)](),this[_0x4c3af8(0x83)][_0x4c3af8(0x92)](_0x16118b=>{const _0x54c895=_0x4c3af8;this[_0x54c895(0xa6)][_0x54c895(0xc2)](_0x16118b[_0x54c895(0x91)]),this[_0x54c895(0xa8)][_0x54c895(0x8c)](_0x16118b[_0x54c895(0x91)]);}),_0x3c51d2({'view':this}),this[_0x4c3af8(0xc4)]();}[_0x312e2b(0xa2)](){const _0x329cfa=_0x312e2b;super[_0x329cfa(0xa2)](),this[_0x329cfa(0xa6)][_0x329cfa(0xa2)](),this[_0x329cfa(0xa8)][_0x329cfa(0xa2)]();}[_0x312e2b(0xc4)](){const _0x304f0e=_0x312e2b;this[_0x304f0e(0x8a)][_0x304f0e(0xc4)]();}[_0x312e2b(0x8e)](){const _0x139b10=_0x312e2b;return this[_0x139b10(0x8a)][_0x139b10(0xb8)][_0x139b10(0x91)]?.[_0x139b10(0xa5)]?.[_0x139b10(0xab)]()||'';}[_0x312e2b(0x8f)](){const _0x5b2efc=_0x312e2b;this[_0x5b2efc(0x8a)][_0x5b2efc(0xb8)][_0x5b2efc(0x91)][_0x5b2efc(0xa5)]='',this[_0x5b2efc(0x8a)][_0x5b2efc(0xa0)]=null,this[_0x5b2efc(0xc8)][_0x5b2efc(0xa1)]=!0x1;}[_0x312e2b(0xae)](_0x3706ac){const _0x5c97f2=_0x312e2b;this[_0x5c97f2(0x8a)][_0x5c97f2(0xa0)]=_0x3706ac,this[_0x5c97f2(0x9f)](),this[_0x5c97f2(0x9c)](_0x5c97f2(0xb4));}[_0x312e2b(0x99)](){const _0x3e7c96=_0x312e2b;this[_0x3e7c96(0x8a)][_0x3e7c96(0xa0)]=null,this[_0x3e7c96(0x9f)]();}[_0x312e2b(0x9e)](){const _0x2054db=_0x312e2b,_0xec1659=new _0x5dfb50(this[_0x2054db(0xc9)]);return _0xec1659[_0x2054db(0xa4)]({'icon':_0x42326c,'tooltip':_0x48090a(this[_0x2054db(0xc9)],_0x2054db(0x97)),'tooltipPosition':'n','class':_0x2054db(0xb6)}),_0xec1659;}[_0x312e2b(0xa9)](){const _0x1e59b0=_0x312e2b,_0x140791=new _0x120256(this[_0x1e59b0(0xc9)],_0x2d30ce);return _0x140791[_0x1e59b0(0xa4)]({'label':_0x48090a(this[_0x1e59b0(0xc9)],_0x1e59b0(0x89)),'class':_0x1e59b0(0xc3)}),_0x140791[_0x1e59b0(0xb8)][_0x1e59b0(0xa4)]({'placeholder':_0x48090a(this[_0x1e59b0(0xc9)],_0x1e59b0(0xc6))}),_0x140791;}[_0x312e2b(0x82)](){const _0x205931=_0x312e2b,_0x124183=new _0x5dfb50(this[_0x205931(0xc9)]);return _0x124183[_0x205931(0xa4)]({'icon':_0xd13433,'tooltip':_0x48090a(this[_0x205931(0xc9)],_0x205931(0x94)),'tooltipPosition':'n','class':_0x205931(0x90),'type':_0x205931(0xb0),'isEnabled':!0x1}),_0x124183;}[_0x312e2b(0xbc)](){const _0x5d14f3=_0x312e2b,_0x33757c=new _0x1d6de9(this[_0x5d14f3(0xc9)],{'label':_0x48090a(this[_0x5d14f3(0xc9)],_0x5d14f3(0x94)),'class':_0x5d14f3(0x96)});_0x33757c[_0x5d14f3(0xb1)][_0x5d14f3(0xc2)](this[_0x5d14f3(0x9d)],0x0),this[_0x5d14f3(0x93)]({'tag':_0x5d14f3(0x87),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x33757c,{'tag':_0x5d14f3(0xbe),'attributes':{'class':nh},'children':[this[_0x5d14f3(0x8a)],this[_0x5d14f3(0xc8)]]}]});}[_0x312e2b(0xa7)](){const _0x4d959b=_0x312e2b;this[_0x4d959b(0x9d)]['on'](_0x4d959b(0xc5),()=>{const _0x507670=_0x4d959b;this[_0x507670(0x8f)](),this[_0x507670(0x9c)](_0x507670(0x85));}),this[_0x4d959b(0x8a)][_0x4d959b(0xb8)]['on'](_0x4d959b(0x84),()=>{const _0x5a2585=_0x4d959b;this[_0x5a2585(0x99)](),this[_0x5a2585(0x9f)](),this[_0x5a2585(0x9c)](_0x5a2585(0xb4));}),this['on'](_0x4d959b(0xb0),_0x31ae2f=>{const _0x515bd0=_0x4d959b;_0x31ae2f[_0x515bd0(0xaa)](),this[_0x515bd0(0xa3)]();});}[_0x312e2b(0x95)](){const _0xf8abd0=_0x312e2b;this[_0xf8abd0(0xa8)][_0xf8abd0(0xa4)](_0xf8abd0(0xbd),(_0x425e5f,_0x53ad63)=>{const _0x175a9a=_0xf8abd0;this[_0x175a9a(0x8f)](),this[_0x175a9a(0x9c)](_0x175a9a(0x85)),_0x53ad63();});}[_0x312e2b(0xa3)](){const _0x3327bf=_0x312e2b,_0x12171e=this[_0x3327bf(0x8e)]()[_0x3327bf(0xab)]();_0x12171e?this[_0x3327bf(0x86)](_0x12171e)?(this[_0x3327bf(0x99)](),this[_0x3327bf(0x9c)](_0x3327bf(0xb5),_0x12171e)):this[_0x3327bf(0xae)](_0x48090a(this[_0x3327bf(0xc9)],_0x3327bf(0x81))):this[_0x3327bf(0xae)](_0x48090a(this[_0x3327bf(0xc9)],_0x3327bf(0xb2)));}[_0x312e2b(0x9f)](){const _0x3f6680=_0x312e2b,_0x303889=this[_0x3f6680(0x8e)]()[_0x3f6680(0xab)](),_0x1f4f65=!!this[_0x3f6680(0x8a)][_0x3f6680(0xa0)];this[_0x3f6680(0xc8)][_0x3f6680(0xa1)]=_0x303889[_0x3f6680(0xb9)]>0x0&&!_0x1f4f65;}[_0x312e2b(0x86)](_0x3af5e3){try{return!!new URL(_0x3af5e3);}catch{return!0x1;}}}
23
+ const _0x55bc2f=_0xc7d6;(function(_0x3f51ac,_0x440673){const _0x35b1cf=_0xc7d6,_0x38d6a2=_0x3f51ac();while(!![]){try{const _0x28a39b=parseInt(_0x35b1cf(0x147))/0x1*(parseInt(_0x35b1cf(0x158))/0x2)+parseInt(_0x35b1cf(0x12e))/0x3*(parseInt(_0x35b1cf(0x121))/0x4)+-parseInt(_0x35b1cf(0x133))/0x5+parseInt(_0x35b1cf(0x168))/0x6*(parseInt(_0x35b1cf(0x15d))/0x7)+parseInt(_0x35b1cf(0x163))/0x8*(-parseInt(_0x35b1cf(0x127))/0x9)+parseInt(_0x35b1cf(0x15a))/0xa*(parseInt(_0x35b1cf(0x140))/0xb)+parseInt(_0x35b1cf(0x135))/0xc*(-parseInt(_0x35b1cf(0x159))/0xd);if(_0x28a39b===_0x440673)break;else _0x38d6a2['push'](_0x38d6a2['shift']());}catch(_0x2b83e1){_0x38d6a2['push'](_0x38d6a2['shift']());}}}(_0x1408,0x720af));import{FocusTracker as _0x2e164e,KeystrokeHandler as _0x5c4ab6}from'ckeditor5/src/utils.js';function _0x1408(){const _0x44a765=['2744esCJiO','set','ck-button-icon\x20ck-button-back','tab','focusTracker','12ABnxcb','_handleSubmit','ck-labeled-field-view_empty','fieldView','AI_CHAT_CONTEXT_URL_INVALID_ERROR','8URJrdA','stop','ck-button-icon','div','AI_CHAT_CONTEXT_URL_ADD_URL','refreshBalloon','16704WiZdLc','execute','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','form','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_setupKeystrokes','_focusables','1097859aMAvga','createCollection','submitUrl','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','input','647360REwuBX','_updateConfirmButtonState','12YgqlWW','focus','_createConfirmButton','trim','_createBackButton','setTemplate','submit','_setupEventHandlers','getValue','urlInputField','clearError','6018892FMOoLm','element','errorText','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','cancel','length','locale','2WvATIA','AI_CHAT_CONTEXT_URL_LABEL','fire','destroy','_createUrlInputField','isEnabled','listenTo','confirmButton','add','ck-ai-chat-context-controls__url-form','keystrokes','render','shift+tab','children','value','setError','ck-ai-chat-context-controls__url-input-section','681916IwzPzG','18944861rbwFFF','10QAMLxg','forEach','backButton','2553257KocJjT','focusCycler','_isValidUrl','esc','_setupTemplate','clear'];_0x1408=function(){return _0x44a765;};return _0x1408();}import{ButtonView as _0x525a96,FocusCycler as _0x209504,LabeledFieldView as _0x59f884,View as _0x59fc57,FormHeaderView as _0x379b4b,createLabeledInputText as _0x5d8fdb,submitHandler as _0x4b2d54}from'ckeditor5/src/ui.js';import{IconCheck as _0x5a71dd,IconPreviousArrow as _0x1f38d1}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x455522}from'../../../aicore/utils/common-translations.js';function _0xc7d6(_0x31977b,_0x145a20){const _0x140808=_0x1408();return _0xc7d6=function(_0xc7d649,_0x3ada0a){_0xc7d649=_0xc7d649-0x11e;let _0x5729a6=_0x140808[_0xc7d649];return _0x5729a6;},_0xc7d6(_0x31977b,_0x145a20);}const ch=_0x55bc2f(0x150),nh=_0x55bc2f(0x157);export class AIChatContextPanelUrlInputView extends _0x59fc57{[_0x55bc2f(0x167)];[_0x55bc2f(0x151)];[_0x55bc2f(0x12d)];[_0x55bc2f(0x15e)];[_0x55bc2f(0x13e)];[_0x55bc2f(0x15c)];[_0x55bc2f(0x14e)];constructor(_0x5c99a9){const _0x1f00cc=_0x55bc2f;super(_0x5c99a9),this[_0x1f00cc(0x167)]=new _0x2e164e(),this[_0x1f00cc(0x151)]=new _0x5c4ab6(),this[_0x1f00cc(0x15c)]=this[_0x1f00cc(0x139)](),this[_0x1f00cc(0x13e)]=this[_0x1f00cc(0x14b)](),this[_0x1f00cc(0x14e)]=this[_0x1f00cc(0x137)](),this[_0x1f00cc(0x12d)]=this[_0x1f00cc(0x12f)]([this[_0x1f00cc(0x15c)],this[_0x1f00cc(0x13e)],this[_0x1f00cc(0x14e)]]),this[_0x1f00cc(0x15e)]=new _0x209504({'focusables':this[_0x1f00cc(0x12d)],'focusTracker':this[_0x1f00cc(0x167)],'keystrokeHandler':this[_0x1f00cc(0x151)],'actions':{'focusPrevious':_0x1f00cc(0x153),'focusNext':_0x1f00cc(0x166)}}),this[_0x1f00cc(0x161)](),this[_0x1f00cc(0x13c)](),this[_0x1f00cc(0x12c)]();}[_0x55bc2f(0x152)](){const _0x554d34=_0x55bc2f;super[_0x554d34(0x152)](),this[_0x554d34(0x12d)][_0x554d34(0x15b)](_0x25fd26=>{const _0x1df416=_0x554d34;this[_0x1df416(0x167)][_0x1df416(0x14f)](_0x25fd26[_0x1df416(0x141)]),this[_0x1df416(0x151)][_0x1df416(0x14d)](_0x25fd26[_0x1df416(0x141)]);}),_0x4b2d54({'view':this}),this[_0x554d34(0x136)]();}[_0x55bc2f(0x14a)](){const _0x4b2010=_0x55bc2f;super[_0x4b2010(0x14a)](),this[_0x4b2010(0x167)][_0x4b2010(0x14a)](),this[_0x4b2010(0x151)][_0x4b2010(0x14a)]();}[_0x55bc2f(0x136)](){const _0x1d5396=_0x55bc2f;this[_0x1d5396(0x13e)][_0x1d5396(0x136)]();}[_0x55bc2f(0x13d)](){const _0x3ce01c=_0x55bc2f;return this[_0x3ce01c(0x13e)][_0x3ce01c(0x11f)][_0x3ce01c(0x141)]?.[_0x3ce01c(0x155)]?.[_0x3ce01c(0x138)]()||'';}[_0x55bc2f(0x162)](){const _0x2c0233=_0x55bc2f;this[_0x2c0233(0x13e)][_0x2c0233(0x11f)][_0x2c0233(0x141)][_0x2c0233(0x155)]='',this[_0x2c0233(0x13e)][_0x2c0233(0x142)]=null,this[_0x2c0233(0x14e)][_0x2c0233(0x14c)]=!0x1;}[_0x55bc2f(0x156)](_0x53a47c){const _0x20f08d=_0x55bc2f;this[_0x20f08d(0x13e)][_0x20f08d(0x142)]=_0x53a47c,this[_0x20f08d(0x134)](),this[_0x20f08d(0x149)](_0x20f08d(0x126));}[_0x55bc2f(0x13f)](){const _0x38ebd1=_0x55bc2f;this[_0x38ebd1(0x13e)][_0x38ebd1(0x142)]=null,this[_0x38ebd1(0x134)]();}[_0x55bc2f(0x139)](){const _0x1b5763=_0x55bc2f,_0x38d3f5=new _0x525a96(this[_0x1b5763(0x146)]);return _0x38d3f5[_0x1b5763(0x164)]({'icon':_0x1f38d1,'tooltip':_0x455522(this[_0x1b5763(0x146)],_0x1b5763(0x131)),'tooltipPosition':'n','class':_0x1b5763(0x165)}),_0x38d3f5;}[_0x55bc2f(0x14b)](){const _0x5f5512=_0x55bc2f,_0x4158bb=new _0x59f884(this[_0x5f5512(0x146)],_0x5d8fdb);return _0x4158bb[_0x5f5512(0x164)]({'label':_0x455522(this[_0x5f5512(0x146)],_0x5f5512(0x148)),'class':_0x5f5512(0x11e)}),_0x4158bb[_0x5f5512(0x11f)][_0x5f5512(0x164)]({'placeholder':_0x455522(this[_0x5f5512(0x146)],_0x5f5512(0x12b))}),_0x4158bb;}[_0x55bc2f(0x137)](){const _0x11988e=_0x55bc2f,_0x5538fd=new _0x525a96(this[_0x11988e(0x146)]);return _0x5538fd[_0x11988e(0x164)]({'icon':_0x5a71dd,'tooltip':_0x455522(this[_0x11988e(0x146)],_0x11988e(0x125)),'tooltipPosition':'n','class':_0x11988e(0x123),'type':_0x11988e(0x13b),'isEnabled':!0x1}),_0x5538fd;}[_0x55bc2f(0x161)](){const _0xba15d1=_0x55bc2f,_0x55dc15=new _0x379b4b(this[_0xba15d1(0x146)],{'label':_0x455522(this[_0xba15d1(0x146)],_0xba15d1(0x125)),'class':_0xba15d1(0x129)});_0x55dc15[_0xba15d1(0x154)][_0xba15d1(0x14f)](this[_0xba15d1(0x15c)],0x0),this[_0xba15d1(0x13a)]({'tag':_0xba15d1(0x12a),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x55dc15,{'tag':_0xba15d1(0x124),'attributes':{'class':nh},'children':[this[_0xba15d1(0x13e)],this[_0xba15d1(0x14e)]]}]});}[_0x55bc2f(0x13c)](){const _0x15f1ef=_0x55bc2f;this[_0x15f1ef(0x15c)]['on'](_0x15f1ef(0x128),()=>{const _0x570132=_0x15f1ef;this[_0x570132(0x162)](),this[_0x570132(0x149)](_0x570132(0x144));}),this[_0x15f1ef(0x13e)][_0x15f1ef(0x11f)]['on'](_0x15f1ef(0x132),()=>{const _0x3cc853=_0x15f1ef;this[_0x3cc853(0x13f)](),this[_0x3cc853(0x134)](),this[_0x3cc853(0x149)](_0x3cc853(0x126));}),this['on'](_0x15f1ef(0x13b),_0x25ba5d=>{const _0x599eba=_0x15f1ef;_0x25ba5d[_0x599eba(0x122)](),this[_0x599eba(0x169)]();});}[_0x55bc2f(0x12c)](){const _0x91efd2=_0x55bc2f;this[_0x91efd2(0x151)][_0x91efd2(0x164)](_0x91efd2(0x160),(_0x1031d3,_0x486ead)=>{const _0x18112b=_0x91efd2;this[_0x18112b(0x162)](),this[_0x18112b(0x149)](_0x18112b(0x144)),_0x486ead();});}[_0x55bc2f(0x169)](){const _0xb0667f=_0x55bc2f,_0x41f83a=this[_0xb0667f(0x13d)]()[_0xb0667f(0x138)]();_0x41f83a?this[_0xb0667f(0x15f)](_0x41f83a)?(this[_0xb0667f(0x13f)](),this[_0xb0667f(0x149)](_0xb0667f(0x130),_0x41f83a)):this[_0xb0667f(0x156)](_0x455522(this[_0xb0667f(0x146)],_0xb0667f(0x120))):this[_0xb0667f(0x156)](_0x455522(this[_0xb0667f(0x146)],_0xb0667f(0x143)));}[_0x55bc2f(0x134)](){const _0x5ba0b9=_0x55bc2f,_0x47436a=this[_0x5ba0b9(0x13d)]()[_0x5ba0b9(0x138)](),_0x500a37=!!this[_0x5ba0b9(0x13e)][_0x5ba0b9(0x142)];this[_0x5ba0b9(0x14e)][_0x5ba0b9(0x14c)]=_0x47436a[_0x5ba0b9(0x145)]>0x0&&!_0x500a37;}[_0x55bc2f(0x15f)](_0x28c202){try{return!!new URL(_0x28c202);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x47dd(){const _0x4c2ff8=['_conversationContextsChips','label','tooltip','_removeContextFromCollection','enabled','isHidden','addContextItem','addResourceToContext','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','find','_createAddContextBalloonPanelView','isReadOnly','clearCurrentContextItems','showAddContextBalloonPanel','ck-ai-chat-context-controls__add-context-button','15049793uHHxHm','southArrowNorth','_setAddContextButtonEnabled','done','8132649DSKmvh','pin','destroy','cancel','southArrowNorthWest','locale','render','isOn','type','body','closeSourceResourceBalloon','removeContextItem','ck-ai-chat-context-controls__url-balloon-panel','hide','arrowView','ck-ai-chat-context-controls__show-more-balloon-panel','16LYKKVY','sources','_createAddContextButtonView','_urlInputView','ck-ai-chat-context-controls','_createUrlBalloonPanelView','setConversationContext','363215DilEfS','AI_CHAT_CONTEXT_URL_LABEL','12DGJpeT','ck-ai-chat-context-controls__balloon-button','content','bodyCollection','ck-ai-chat','add','_addContextBalloonConfig','clear','extendTemplate','_resourcesBalloonView','_setBalloonPanelContent','northArrowSouthEast','files','document','_addUrlContent','_bindEventHandlers','_createBaseBalloonPanel','_currentContextsChips','AI_CHAT_CONTEXT_FILE_LABEL','6uwhjDj','isAnyResourceBalloonVisible','set','ck-ai-chat-context-controls__add-context-balloon-panel','_showSourceResourcesBalloon','defaultPositions','_overflowManager','4174556BEvEft','focus','source','_createContextButton','conversation','_addContextToCollection','ck-ai-chat-controls-button','3hKgQEY','northArrowSouth','_createBalloonButton','ck-ai-chat-context-controls__pending-contexts','updateResourceState','_createArrowView','fire','southArrowNorthEast','menuitem','isLoading','setContainerElement','_getLimiterElement','removeContextItemChip','children','AI_CHAT_CONTEXT_ADD_CONTEXT','populateSourceResourceBalloon','addDocumentToContext','_setupAllBalloonClickOutsideHandlers','_handleUrlSubmit','showSourceResourcesBalloon','remove','urls','_setupTemplate','7315731FZCvAF','reorganizeChips','submitUrl','_addContextBalloonPanelView','_toggleAddContextBalloon','ck-reset_all-excluded','_urlBalloonPanelView','hideAddContextBalloonPanel','addContextButtonView','hideUrlBalloonPanel','element','searchInputVisibleFrom','show','icon','8436170uKmKay','current','addUrlToContext','2wEZXRw','closest','_setupUrlBalloonClickOutsideHandler','bind','isVisible','ck-ai-chat-context-controls__balloon-button-source','ck-ai-chat-controls_context_show-more-button','addFileToContext','northArrowSouthWest','setTemplate','buttonView','ck-ai-chat-context-chips-wrapper-balloon','_handleAddContextButtonClick','div','clearConversationContextItems','isEnabled','createCollection','582725IjzwWZ','execute','balloonView','overflowChips','__arrow','setAddContextOptions','refreshBalloon','showUrlBalloonPanel','loadSourceResources','_setupAddContextBalloonClickOutsideHandler','setContextItemLoading','_createResourcesBalloonView'];_0x47dd=function(){return _0x4c2ff8;};return _0x47dd();}function _0x28ba(_0xc8e398,_0x5234e4){const _0x47dd1b=_0x47dd();return _0x28ba=function(_0x28ba0c,_0x132d2d){_0x28ba0c=_0x28ba0c-0x103;let _0x25102b=_0x47dd1b[_0x28ba0c];return _0x25102b;},_0x28ba(_0xc8e398,_0x5234e4);}const _0x23fc3b=_0x28ba;(function(_0x40cf71,_0x15aaf5){const _0x44b458=_0x28ba,_0x4eb2c3=_0x40cf71();while(!![]){try{const _0x1169b1=parseInt(_0x44b458(0x124))/0x1*(-parseInt(_0x44b458(0x16f))/0x2)+-parseInt(_0x44b458(0x147))/0x3*(parseInt(_0x44b458(0x140))/0x4)+parseInt(_0x44b458(0x180))/0x5+parseInt(_0x44b458(0x139))/0x6*(parseInt(_0x44b458(0x10d))/0x7)+parseInt(_0x44b458(0x11d))/0x8*(parseInt(_0x44b458(0x15e))/0x9)+parseInt(_0x44b458(0x16c))/0xa+parseInt(_0x44b458(0x109))/0xb*(-parseInt(_0x44b458(0x126))/0xc);if(_0x1169b1===_0x15aaf5)break;else _0x4eb2c3['push'](_0x4eb2c3['shift']());}catch(_0x2ee231){_0x4eb2c3['push'](_0x4eb2c3['shift']());}}}(_0x47dd,0xed77e));import{BalloonPanelView as _0x403b86,ButtonView as _0x34c5d4,clickOutsideHandler as _0x508cdc,FileDialogButtonView as _0xfca9ea,IconView as _0xb0d752,View as _0xa2a5d8}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x52bdc2,IconDocument as _0xb863f5,IconDocumentOutline as _0x4a3ac8,IconDropdownArrow as _0x2ce1a5,IconLink as _0x3ccff2,IconPaperClip as _0x2ff9b2}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x49ff92}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x5809df}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x234973}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x370ec1}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x14e4f8}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x23fc3b(0x157),_0x23fc3b(0x176),_0x23fc3b(0x16e),_0x23fc3b(0x193),_0x23fc3b(0x118),_0x23fc3b(0x188)];const ko=_0x23fc3b(0x121),Eo=_0x23fc3b(0x14a),vo=_0x23fc3b(0x13c),Vo=_0x23fc3b(0x108),Io=_0x23fc3b(0x119),Po=_0x23fc3b(0x127),Ro=_0x23fc3b(0x174),Uo=_0x23fc3b(0x146),Lo=_0x23fc3b(0x17a),No=_0x23fc3b(0x175),Oo=_0x23fc3b(0x11c),Mo=_0x23fc3b(0x12a),Ho=[_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x177)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x148)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x131)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x111)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x10a)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x14e)]];export class AIChatContextPanelView extends _0xa2a5d8{[_0x23fc3b(0x166)];[_0x23fc3b(0x137)]=this[_0x23fc3b(0x17f)]();[_0x23fc3b(0x18c)]=this[_0x23fc3b(0x17f)]();[_0x23fc3b(0x13f)];[_0x23fc3b(0x161)];[_0x23fc3b(0x164)];[_0x23fc3b(0x120)];[_0x23fc3b(0x12f)];[_0x23fc3b(0x12c)];[_0x23fc3b(0x129)];constructor(_0x55e931,_0x4561bb){const _0x25d466=_0x23fc3b;super(_0x55e931),this[_0x25d466(0x129)]=_0x4561bb[_0x25d466(0x129)],this[_0x25d466(0x137)]=this[_0x25d466(0x17f)](),this[_0x25d466(0x18c)]=this[_0x25d466(0x17f)](),this[_0x25d466(0x166)]=this[_0x25d466(0x11f)](_0x55e931),this[_0x25d466(0x161)]=this[_0x25d466(0x104)](_0x55e931),this[_0x25d466(0x164)]=this[_0x25d466(0x122)](_0x55e931),this[_0x25d466(0x12f)]=this[_0x25d466(0x18b)](_0x55e931,_0x4561bb);const _0x3a6995={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x25d466(0x13f)]=new _0x234973(_0x55e931,this[_0x25d466(0x137)],_0x3a6995,this[_0x25d466(0x129)],this),this[_0x25d466(0x12c)]={'buttonView':this[_0x25d466(0x166)],'balloonView':this[_0x25d466(0x161)],'hideMethod':this[_0x25d466(0x165)][_0x25d466(0x172)](this),'showMethod':this[_0x25d466(0x107)][_0x25d466(0x172)](this)},this[_0x25d466(0x15d)](),this[_0x25d466(0x135)]();}[_0x23fc3b(0x113)](){const _0x13ad8d=_0x23fc3b;super[_0x13ad8d(0x113)](),this[_0x13ad8d(0x158)](),this[_0x13ad8d(0x13f)][_0x13ad8d(0x151)](this[_0x13ad8d(0x168)]),this[_0x13ad8d(0x13f)][_0x13ad8d(0x15f)]();}[_0x23fc3b(0x10f)](){const _0x357946=_0x23fc3b;super[_0x357946(0x10f)](),this[_0x357946(0x13f)][_0x357946(0x10f)](),this[_0x357946(0x12f)][_0x357946(0x10f)]();}[_0x23fc3b(0x192)](_0x15c26a,_0x582bef){const _0x2b57a3=_0x23fc3b,_0xe090d9=this[_0x2b57a3(0x143)](_0x15c26a,_0x2b57a3(0x16d),!0x0,_0x582bef);this[_0x2b57a3(0x145)](_0xe090d9,this[_0x2b57a3(0x137)]),this[_0x2b57a3(0x13f)][_0x2b57a3(0x15f)]();}[_0x23fc3b(0x118)](_0x4f4dba){const _0x4b5d1e=_0x23fc3b;this[_0x4b5d1e(0x18f)](_0x4f4dba,this[_0x4b5d1e(0x137)]),this[_0x4b5d1e(0x18f)](_0x4f4dba,this[_0x4b5d1e(0x13f)][_0x4b5d1e(0x183)]),this[_0x4b5d1e(0x13f)][_0x4b5d1e(0x15f)]();}[_0x23fc3b(0x18a)](_0x3174e4,_0x1fa110){const _0xb05c2a=_0x23fc3b;let _0x4c4f7d=this[_0xb05c2a(0x137)][_0xb05c2a(0x103)](_0x596c0d=>_0x596c0d['id']===_0x3174e4);_0x4c4f7d||(_0x4c4f7d=this[_0xb05c2a(0x13f)][_0xb05c2a(0x183)][_0xb05c2a(0x103)](_0x5e02de=>_0x5e02de['id']===_0x3174e4)),_0x4c4f7d&&(_0x4c4f7d[_0xb05c2a(0x150)]=_0x1fa110);}[_0x23fc3b(0x123)](_0x2f8c4e){const _0x4380a2=_0x23fc3b;this[_0x4380a2(0x18c)][_0x4380a2(0x12d)]();for(const _0x2334d3 of _0x2f8c4e){const _0x298b13=this[_0x4380a2(0x143)](_0x2334d3,_0x4380a2(0x144),!0x1,!0x1);this[_0x4380a2(0x145)](_0x298b13,this[_0x4380a2(0x18c)]);}}[_0x23fc3b(0x106)](){const _0x60dd96=_0x23fc3b;this[_0x60dd96(0x137)][_0x60dd96(0x12d)](),this[_0x60dd96(0x13f)][_0x60dd96(0x12d)]();}[_0x23fc3b(0x17d)](){const _0x57acbc=_0x23fc3b;this[_0x57acbc(0x18c)][_0x57acbc(0x12d)]();}[_0x23fc3b(0x14b)](_0x59028e,_0x46d4a2,_0x392d83){const _0x248505=_0x23fc3b;this[_0x248505(0x12f)][_0x248505(0x14b)](_0x59028e,_0x46d4a2,_0x392d83);}[_0x23fc3b(0x165)](){const _0x1e6b1d=_0x23fc3b;this[_0x1e6b1d(0x162)](!0x1);}[_0x23fc3b(0x107)](){const _0x7312ee=_0x23fc3b;this[_0x7312ee(0x162)](!0x0);}[_0x23fc3b(0x167)](){const _0x3527fb=_0x23fc3b;this[_0x3527fb(0x164)][_0x3527fb(0x11a)](),this[_0x3527fb(0x166)][_0x3527fb(0x114)]=!0x1,this[_0x3527fb(0x120)]&&this[_0x3527fb(0x120)][_0x3527fb(0x12d)]();}[_0x23fc3b(0x187)](){const _0x1fffda=_0x23fc3b;this[_0x1fffda(0x164)][_0x1fffda(0x16a)](),this[_0x1fffda(0x166)][_0x1fffda(0x114)]=!0x0;}[_0x23fc3b(0x13d)](_0x46fd32){const _0x3358f5=_0x23fc3b;this[_0x3358f5(0x12f)][_0x3358f5(0x15a)](_0x46fd32),this[_0x3358f5(0x166)][_0x3358f5(0x114)]=!0x0;}[_0x23fc3b(0x156)](_0x595af7,_0x810d01,_0x3b865a,_0x28b958){const _0x507061=_0x23fc3b;this[_0x507061(0x12f)][_0x507061(0x156)](_0x595af7,_0x3b865a,_0x28b958);}[_0x23fc3b(0x117)](_0x4bd004){const _0x1467c6=_0x23fc3b;this[_0x1467c6(0x12f)][_0x1467c6(0x117)](_0x4bd004),this[_0x1467c6(0x166)][_0x1467c6(0x114)]=!0x1;}[_0x23fc3b(0x185)](_0x5b9ec3){const _0x218e29=_0x23fc3b;this[_0x218e29(0x130)](this[_0x218e29(0x161)],this[_0x218e29(0x112)],_0x5b9ec3),this[_0x218e29(0x10b)](_0x5b9ec3);}[_0x23fc3b(0x10b)](_0x283257){const _0x138c59=_0x23fc3b,_0x1b8b66=!_0x283257[_0x138c59(0x133)][_0x138c59(0x191)]&&_0x283257[_0x138c59(0x133)][_0x138c59(0x190)],_0x14d2cc=_0x283257[_0x138c59(0x15c)][_0x138c59(0x190)],_0x4c06f9=_0x283257[_0x138c59(0x132)][_0x138c59(0x190)];this[_0x138c59(0x166)][_0x138c59(0x17e)]=_0x1b8b66||_0x14d2cc||_0x4c06f9;}[_0x23fc3b(0x15d)](){const _0x57f040=_0x23fc3b;this[_0x57f040(0x178)]({'tag':_0x57f040(0x17c),'attributes':{'class':[ko,_0x57f040(0x163)]},'children':[{'tag':_0x57f040(0x17c),'attributes':{'class':Eo},'children':this[_0x57f040(0x137)]}]});}[_0x23fc3b(0x135)](){const _0x5b2a49=_0x23fc3b;this[_0x5b2a49(0x166)]['on'](_0x5b2a49(0x181),()=>{const _0x4232e2=_0x5b2a49;this[_0x4232e2(0x17b)]();});}[_0x23fc3b(0x11f)](_0x167791){const _0x59c2fa=_0x23fc3b,_0x2ed311=new _0x34c5d4(_0x167791);return _0x2ed311[_0x59c2fa(0x13b)]({'label':_0x370ec1(_0x167791,_0x59c2fa(0x155)),'class':Uo+'\x20'+Vo,'icon':_0x2ff9b2,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x2ed311;}[_0x23fc3b(0x104)](_0xdc2788){const _0x44292c=_0x23fc3b;return this[_0x44292c(0x136)](_0xdc2788,vo);}[_0x23fc3b(0x122)](_0x164457){const _0x2efe5d=_0x23fc3b,_0x3d054a=this[_0x2efe5d(0x136)](_0x164457,Io);return this[_0x2efe5d(0x134)](_0x3d054a,_0x164457),_0x3d054a;}[_0x23fc3b(0x18b)](_0x16a46d,_0x581cce){const _0x1f4c58=_0x23fc3b,_0x154a43={'searchInputVisibleFrom':_0x581cce[_0x1f4c58(0x169)],'onBackToContext':()=>{const _0x3e2e99=_0x1f4c58;this[_0x3e2e99(0x107)](),this[_0x3e2e99(0x161)][_0x3e2e99(0x10e)]({'target':this[_0x3e2e99(0x166)][_0x3e2e99(0x168)],'limiter':this[_0x3e2e99(0x152)](),'positions':Ho});},'onResourceSelected':(_0x510ccc,_0x5ee55c)=>{const _0x36f21e=_0x1f4c58;this[_0x36f21e(0x14d)](_0x36f21e(0x193),{'source':_0x510ccc,'resource':_0x5ee55c});},'onLoadSourceResources':_0x578540=>{const _0xe3814b=_0x1f4c58;this[_0xe3814b(0x14d)](_0xe3814b(0x188),_0x578540);},'onBalloonClosed':()=>{const _0x250a30=_0x1f4c58;this[_0x250a30(0x166)][_0x250a30(0x114)]=!0x1;},'getLimiterElement':()=>this[_0x1f4c58(0x152)](),'getTargetElement':()=>this[_0x1f4c58(0x166)][_0x1f4c58(0x168)]};return new _0x14e4f8(_0x16a46d,_0x581cce[_0x1f4c58(0x129)],_0x154a43);}[_0x23fc3b(0x152)](){const _0x2a3436=_0x23fc3b;return this[_0x2a3436(0x168)]?.[_0x2a3436(0x170)]('.'+Mo)||document[_0x2a3436(0x116)];}[_0x23fc3b(0x136)](_0x17bc8d,_0xac9cb8){const _0x2998be=_0x23fc3b,_0x330e08=new _0x403b86(_0x17bc8d);return _0x330e08[_0x2998be(0x12e)]({'attributes':{'class':_0xac9cb8}}),this[_0x2998be(0x129)][_0x2998be(0x12b)](_0x330e08),_0x330e08;}[_0x23fc3b(0x130)](_0x26d0cd,_0x582640,_0x3af163){const _0x2b31cb=_0x23fc3b;if(_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12d)](),!_0x3af163[_0x2b31cb(0x133)][_0x2b31cb(0x191)]&&_0x3af163[_0x2b31cb(0x133)][_0x2b31cb(0x190)]){const _0x33a0e1=this[_0x2b31cb(0x149)](_0x582640,{'label':_0x370ec1(_0x582640,_0x2b31cb(0x194)),'icon':_0xb863f5});_0x33a0e1['on'](_0x2b31cb(0x181),()=>{const _0x24b7fb=_0x2b31cb;this[_0x24b7fb(0x14d)](_0x24b7fb(0x157)),this[_0x24b7fb(0x165)]();}),_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x33a0e1);}if(_0x3af163[_0x2b31cb(0x15c)][_0x2b31cb(0x190)]){const _0x5c3b3b=this[_0x2b31cb(0x149)](_0x582640,{'label':_0x370ec1(_0x582640,_0x2b31cb(0x125)),'icon':_0x3ccff2});_0x5c3b3b['on'](_0x2b31cb(0x181),()=>{const _0x53addf=_0x2b31cb;this[_0x53addf(0x165)](),this[_0x53addf(0x187)](),this[_0x53addf(0x164)][_0x53addf(0x10e)]({'target':this[_0x53addf(0x166)][_0x53addf(0x168)],'limiter':this[_0x53addf(0x152)](),'positions':Ho}),this[_0x53addf(0x120)][_0x53addf(0x141)]();}),_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x5c3b3b);}if(_0x3af163[_0x2b31cb(0x132)][_0x2b31cb(0x190)]){const _0x588439=new _0xfca9ea(_0x582640);_0x588439[_0x2b31cb(0x13b)]({'label':_0x370ec1(_0x582640,_0x2b31cb(0x138)),'icon':_0x52bdc2,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x588439['on'](_0x2b31cb(0x10c),(_0x1f0f12,_0x3bed3f)=>{const _0x5a6dc3=_0x2b31cb;this[_0x5a6dc3(0x14d)](_0x5a6dc3(0x176),_0x3bed3f),this[_0x5a6dc3(0x165)]();}),_0x588439[_0x2b31cb(0x18e)]=!0x0,_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x588439);}for(const _0x278b83 of _0x3af163[_0x2b31cb(0x11e)]){const _0x1a20c8=this[_0x2b31cb(0x149)](_0x582640,{'label':_0x278b83[_0x2b31cb(0x18d)],'icon':_0x278b83[_0x2b31cb(0x16b)]||_0x4a3ac8,'type':_0x2b31cb(0x142)});_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x1a20c8),_0x1a20c8['on'](_0x2b31cb(0x181),()=>{const _0x235acf=_0x2b31cb;this[_0x235acf(0x165)](),this[_0x235acf(0x13d)](_0x278b83);});}}[_0x23fc3b(0x134)](_0x231f04,_0xd59676){const _0x1a5548=_0x23fc3b;this[_0x1a5548(0x120)]=new _0x5809df(_0xd59676),this[_0x1a5548(0x120)]['on'](_0x1a5548(0x160),(_0x464fb8,_0x37facb)=>{const _0x2b9303=_0x1a5548;this[_0x2b9303(0x159)](_0x37facb);}),this[_0x1a5548(0x120)]['on'](_0x1a5548(0x110),()=>{const _0x27ab9b=_0x1a5548;this[_0x27ab9b(0x167)](),this[_0x27ab9b(0x107)](),this[_0x27ab9b(0x161)][_0x27ab9b(0x10e)]({'target':this[_0x27ab9b(0x166)][_0x27ab9b(0x168)],'limiter':this[_0x27ab9b(0x152)](),'positions':Ho});}),this[_0x1a5548(0x120)]['on'](_0x1a5548(0x186),()=>{const _0x444008=_0x1a5548;this[_0x444008(0x164)][_0x444008(0x173)]&&this[_0x444008(0x164)][_0x444008(0x10e)]({'target':this[_0x444008(0x166)][_0x444008(0x168)],'limiter':this[_0x444008(0x152)](),'positions':Ho});}),_0x231f04[_0x1a5548(0x128)][_0x1a5548(0x12b)](this[_0x1a5548(0x120)]);}[_0x23fc3b(0x149)](_0x149b9d,_0x50fa86){const _0x1943db=_0x23fc3b,_0x8cd326=_0x1943db(0x142)===_0x50fa86[_0x1943db(0x115)]?new SourcesBalloonButtonView(_0x149b9d):new _0x34c5d4(_0x149b9d);return _0x8cd326[_0x1943db(0x13b)]({'label':_0x50fa86[_0x1943db(0x18d)],'icon':_0x50fa86[_0x1943db(0x16b)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x8cd326;}[_0x23fc3b(0x158)](){const _0x3bd9b3=_0x23fc3b;this[_0x3bd9b3(0x189)](),this[_0x3bd9b3(0x171)]();}[_0x23fc3b(0x171)](){const _0x552fb0=_0x23fc3b;_0x508cdc({'emitter':this[_0x552fb0(0x164)],'contextElements':[this[_0x552fb0(0x164)][_0x552fb0(0x168)]],'callback':()=>{const _0x339195=_0x552fb0;this[_0x339195(0x167)]();},'activator':()=>this[_0x552fb0(0x164)][_0x552fb0(0x173)]});}[_0x23fc3b(0x162)](_0x299e0f){const _0x2b9544=_0x23fc3b,_0x1dcd09=this[_0x2b9544(0x12c)];_0x1dcd09[_0x2b9544(0x179)][_0x2b9544(0x114)]=_0x299e0f,_0x299e0f?_0x1dcd09[_0x2b9544(0x182)][_0x2b9544(0x16a)]():_0x1dcd09[_0x2b9544(0x182)][_0x2b9544(0x11a)]();}[_0x23fc3b(0x189)](){const _0x248f10=_0x23fc3b,{balloonView:_0x1ce5d0,buttonView:_0x205472,hideMethod:_0x22630a}=this[_0x248f10(0x12c)];_0x508cdc({'emitter':_0x1ce5d0,'contextElements':[_0x1ce5d0[_0x248f10(0x168)],_0x205472[_0x248f10(0x168)]],'callback':()=>{_0x22630a();},'activator':()=>_0x205472[_0x248f10(0x114)]&&!this[_0x248f10(0x164)][_0x248f10(0x173)]&&!this[_0x248f10(0x12f)][_0x248f10(0x13a)]()});}[_0x23fc3b(0x143)](_0x31762e,_0xdc9f5f,_0x510faa=!0x1,_0x27892d=!0x1){const _0x308231=_0x23fc3b,_0x3be048=_0x308231(0x144)===_0xdc9f5f||!0x0===_0x31762e[_0x308231(0x105)],_0x347b2e=new _0x49ff92(this[_0x308231(0x112)],_0x31762e,_0x3be048,_0x510faa,_0x27892d);return _0x3be048||_0x347b2e['on'](_0x308231(0x153),()=>{const _0x18acdc=_0x308231;this[_0x18acdc(0x14d)](_0x18acdc(0x118),_0x347b2e['id']);}),_0x347b2e;}[_0x23fc3b(0x145)](_0x4d617c,_0x186854){const _0x2c275c=_0x23fc3b;_0x186854[_0x2c275c(0x12b)](_0x4d617c,0x0);}[_0x23fc3b(0x18f)](_0x30f366,_0x35d86e){const _0x99fde8=_0x23fc3b,_0x31581a=_0x35d86e[_0x99fde8(0x103)](_0xb2ee80=>_0xb2ee80['id']===_0x30f366);_0x31581a&&_0x35d86e[_0x99fde8(0x15b)](_0x31581a);}[_0x23fc3b(0x17b)](){const _0x27820d=_0x23fc3b;this[_0x27820d(0x166)][_0x27820d(0x114)]?this[_0x27820d(0x165)]():(this[_0x27820d(0x107)](),this[_0x27820d(0x161)][_0x27820d(0x10e)]({'target':this[_0x27820d(0x166)][_0x27820d(0x168)],'limiter':this[_0x27820d(0x152)](),'positions':Ho}));}[_0x23fc3b(0x159)](_0x53d94b){const _0x1a7b1f=_0x23fc3b;this[_0x1a7b1f(0x120)][_0x1a7b1f(0x12d)](),this[_0x1a7b1f(0x167)](),this[_0x1a7b1f(0x14d)](_0x1a7b1f(0x16e),_0x53d94b);}}export class SourcesBalloonButtonView extends _0x34c5d4{[_0x23fc3b(0x11b)];constructor(_0xda1d15){const _0x399c3f=_0x23fc3b;super(_0xda1d15),this[_0x399c3f(0x13b)]({'withText':!0x0,'role':_0x399c3f(0x14f)}),this[_0x399c3f(0x11b)]=this[_0x399c3f(0x14c)](),this[_0x399c3f(0x12e)]({'attributes':{'class':[Ro]}});}[_0x23fc3b(0x113)](){const _0x3e5f3e=_0x23fc3b;super[_0x3e5f3e(0x113)](),this[_0x3e5f3e(0x154)][_0x3e5f3e(0x12b)](this[_0x3e5f3e(0x11b)]);}[_0x23fc3b(0x14c)](){const _0x4b51e7=_0x23fc3b,_0x1b15c8=new _0xb0d752();return _0x1b15c8[_0x4b51e7(0x128)]=_0x2ce1a5,_0x1b15c8[_0x4b51e7(0x12e)]({'attributes':{'class':Ro+_0x4b51e7(0x184)}}),_0x1b15c8;}}
23
+ const _0x4adc52=_0x212e;(function(_0x4da68d,_0x43bbf0){const _0x431752=_0x212e,_0x4534f4=_0x4da68d();while(!![]){try{const _0x369c27=parseInt(_0x431752(0xba))/0x1+-parseInt(_0x431752(0xfc))/0x2+parseInt(_0x431752(0xa8))/0x3+parseInt(_0x431752(0x7e))/0x4+parseInt(_0x431752(0xaa))/0x5*(parseInt(_0x431752(0xf9))/0x6)+parseInt(_0x431752(0xc4))/0x7+parseInt(_0x431752(0xd8))/0x8*(-parseInt(_0x431752(0x105))/0x9);if(_0x369c27===_0x43bbf0)break;else _0x4534f4['push'](_0x4534f4['shift']());}catch(_0x51d6b9){_0x4534f4['push'](_0x4534f4['shift']());}}}(_0x2b38,0x29ecb));import{BalloonPanelView as _0x48f9f5,ButtonView as _0x1e96b6,clickOutsideHandler as _0xf40a8b,FileDialogButtonView as _0xf7735a,IconView as _0x5c74f8,View as _0x10363f}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x2f67bd,IconDocument as _0x366f67,IconDocumentOutline as _0x44bf07,IconDropdownArrow as _0x3f56cb,IconLink as _0x2bb478,IconPaperClip as _0x20c5fc}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2fbe32}from'./aichatcontextitembuttonview.js';function _0x2b38(){const _0x7a4dec=['locale','submitUrl','setContainerElement','_createResourcesBalloonView','children','_setupUrlBalloonClickOutsideHandler','_bindEventHandlers','addDocumentToContext','isOn','ck-ai-chat-context-controls__pending-contexts','updateResourceState','document','refreshBalloon','render','conversation','southArrowNorthEast','ck-ai-chat-context-controls__balloon-button','northArrowSouthWest','_handleUrlSubmit','content','ck-ai-chat-context-controls__add-context-balloon-panel','_toggleAddContextBalloon','reorganizeChips','ck-ai-chat-context-controls__add-context-button','AI_CHAT_CONTEXT_URL_LABEL','945105HVTXuG','_createBalloonButton','45UzPXrp','execute','current','enabled','clearCurrentContextItems','_getLimiterElement','setConversationContext','isLoading','ck-ai-chat-controls_context_show-more-button','hideAddContextBalloonPanel','type','_createContextButton','_addContextBalloonConfig','_resourcesBalloonView','hide','defaultPositions','150493QHeRcu','sources','showSourceResourcesBalloon','destroy','removeContextItemChip','southArrowNorth','_removeContextFromCollection','addFileToContext','_conversationContextsChips','_createAddContextBalloonPanelView','2253517XZqYlB','_overflowManager','ck-ai-chat-context-controls','isAnyResourceBalloonVisible','ck-ai-chat','tooltip','body','showUrlBalloonPanel','isReadOnly','overflowChips','element','source','setContextItemLoading','addUrlToContext','_setupAddContextBalloonClickOutsideHandler','_createBaseBalloonPanel','populateSourceResourceBalloon','addContextButtonView','find','files','288qPYzfu','_urlInputView','addResourceToContext','div','removeContextItem','fire','AI_CHAT_CONTEXT_ADD_CONTEXT','balloonView','pin','ck-ai-chat-context-controls__balloon-button-source','__arrow','focus','hideUrlBalloonPanel','ck-ai-chat-context-controls__url-balloon-panel','northArrowSouth','_setBalloonPanelContent','_handleAddContextButtonClick','closeSourceResourceBalloon','ck-ai-chat-controls-button','_addContextToCollection','createCollection','buttonView','menuitem','arrowView','AI_CHAT_CONTEXT_FILE_LABEL','setTemplate','label','loadSourceResources','setAddContextOptions','_setAddContextButtonEnabled','_setupTemplate','cancel','_createArrowView','223386Xijrem','add','northArrowSouthEast','403308krSupT','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','icon','ck-ai-chat-context-controls__show-more-balloon-panel','_urlBalloonPanelView','extendTemplate','addContextItem','bind','ck-ai-chat-context-chips-wrapper-balloon','205830NKXGhi','done','_createAddContextButtonView','closest','isHidden','searchInputVisibleFrom','urls','ck-reset_all-excluded','296636RhdqLN','clear','_setupAllBalloonClickOutsideHandlers','southArrowNorthWest','_addContextBalloonPanelView','_createUrlBalloonPanelView','bodyCollection','showAddContextBalloonPanel','_showSourceResourcesBalloon','_addUrlContent','set','_currentContextsChips','show','remove','clearConversationContextItems','isEnabled','isVisible'];_0x2b38=function(){return _0x7a4dec;};return _0x2b38();}import{AIChatContextPanelUrlInputView as _0x26d493}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x47e753}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x3b3cc5}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5ef869}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4adc52(0x96),_0x4adc52(0xc1),_0x4adc52(0xd1),_0x4adc52(0xda),_0x4adc52(0xdc),_0x4adc52(0xf3)];const ko=_0x4adc52(0xc6),Eo=_0x4adc52(0x98),vo=_0x4adc52(0xa3),Vo=_0x4adc52(0xa6),Io=_0x4adc52(0xe5),Po=_0x4adc52(0x9f),Ro=_0x4adc52(0xe1),Uo=_0x4adc52(0xea),Lo=_0x4adc52(0x104),No=_0x4adc52(0xb2),Oo=_0x4adc52(0xff),Mo=_0x4adc52(0xc8),Ho=[_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0xa0)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0xe6)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0xfb)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0x81)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0xbf)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0x9e)]];export class AIChatContextPanelView extends _0x10363f{[_0x4adc52(0xd5)];[_0x4adc52(0x89)]=this[_0x4adc52(0xec)]();[_0x4adc52(0xc2)]=this[_0x4adc52(0xec)]();[_0x4adc52(0xc5)];[_0x4adc52(0x82)];[_0x4adc52(0x100)];[_0x4adc52(0xd9)];[_0x4adc52(0xb7)];[_0x4adc52(0xb6)];[_0x4adc52(0x84)];constructor(_0x4c5b78,_0x2684b5){const _0x1a09d5=_0x4adc52;super(_0x4c5b78),this[_0x1a09d5(0x84)]=_0x2684b5[_0x1a09d5(0x84)],this[_0x1a09d5(0x89)]=this[_0x1a09d5(0xec)](),this[_0x1a09d5(0xc2)]=this[_0x1a09d5(0xec)](),this[_0x1a09d5(0xd5)]=this[_0x1a09d5(0x107)](_0x4c5b78),this[_0x1a09d5(0x82)]=this[_0x1a09d5(0xc3)](_0x4c5b78),this[_0x1a09d5(0x100)]=this[_0x1a09d5(0x83)](_0x4c5b78),this[_0x1a09d5(0xb7)]=this[_0x1a09d5(0x92)](_0x4c5b78,_0x2684b5);const _0x10a60b={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x1a09d5(0xc5)]=new _0x47e753(_0x4c5b78,this[_0x1a09d5(0x89)],_0x10a60b,this[_0x1a09d5(0x84)],this),this[_0x1a09d5(0xb6)]={'buttonView':this[_0x1a09d5(0xd5)],'balloonView':this[_0x1a09d5(0x82)],'hideMethod':this[_0x1a09d5(0xb3)][_0x1a09d5(0x103)](this),'showMethod':this[_0x1a09d5(0x85)][_0x1a09d5(0x103)](this)},this[_0x1a09d5(0xf6)](),this[_0x1a09d5(0x95)]();}[_0x4adc52(0x9c)](){const _0x2f8dff=_0x4adc52;super[_0x2f8dff(0x9c)](),this[_0x2f8dff(0x80)](),this[_0x2f8dff(0xc5)][_0x2f8dff(0x91)](this[_0x2f8dff(0xce)]),this[_0x2f8dff(0xc5)][_0x2f8dff(0xa5)]();}[_0x4adc52(0xbd)](){const _0x3b34a0=_0x4adc52;super[_0x3b34a0(0xbd)](),this[_0x3b34a0(0xc5)][_0x3b34a0(0xbd)](),this[_0x3b34a0(0xb7)][_0x3b34a0(0xbd)]();}[_0x4adc52(0x102)](_0x34073b,_0x4f2374){const _0x4eb496=_0x4adc52,_0x4d74c6=this[_0x4eb496(0xb5)](_0x34073b,_0x4eb496(0xac),!0x0,_0x4f2374);this[_0x4eb496(0xeb)](_0x4d74c6,this[_0x4eb496(0x89)]),this[_0x4eb496(0xc5)][_0x4eb496(0xa5)]();}[_0x4adc52(0xdc)](_0xef998b){const _0x4bdcdc=_0x4adc52;this[_0x4bdcdc(0xc0)](_0xef998b,this[_0x4bdcdc(0x89)]),this[_0x4bdcdc(0xc0)](_0xef998b,this[_0x4bdcdc(0xc5)][_0x4bdcdc(0xcd)]),this[_0x4bdcdc(0xc5)][_0x4bdcdc(0xa5)]();}[_0x4adc52(0xd0)](_0x55469e,_0x572730){const _0x3e2c2d=_0x4adc52;let _0x1a602f=this[_0x3e2c2d(0x89)][_0x3e2c2d(0xd6)](_0x574935=>_0x574935['id']===_0x55469e);_0x1a602f||(_0x1a602f=this[_0x3e2c2d(0xc5)][_0x3e2c2d(0xcd)][_0x3e2c2d(0xd6)](_0x5840f5=>_0x5840f5['id']===_0x55469e)),_0x1a602f&&(_0x1a602f[_0x3e2c2d(0xb1)]=_0x572730);}[_0x4adc52(0xb0)](_0x528c26){const _0x4de052=_0x4adc52;this[_0x4de052(0xc2)][_0x4de052(0x7f)]();for(const _0x1a17ce of _0x528c26){const _0x50fbf2=this[_0x4de052(0xb5)](_0x1a17ce,_0x4de052(0x9d),!0x1,!0x1);this[_0x4de052(0xeb)](_0x50fbf2,this[_0x4de052(0xc2)]);}}[_0x4adc52(0xae)](){const _0x4e670a=_0x4adc52;this[_0x4e670a(0x89)][_0x4e670a(0x7f)](),this[_0x4e670a(0xc5)][_0x4e670a(0x7f)]();}[_0x4adc52(0x8c)](){const _0x1c935a=_0x4adc52;this[_0x1c935a(0xc2)][_0x1c935a(0x7f)]();}[_0x4adc52(0x99)](_0x171843,_0x2e9782,_0x7ffbf7){const _0x4657f5=_0x4adc52;this[_0x4657f5(0xb7)][_0x4657f5(0x99)](_0x171843,_0x2e9782,_0x7ffbf7);}[_0x4adc52(0xb3)](){const _0x5c2677=_0x4adc52;this[_0x5c2677(0xa4)](!0x1);}[_0x4adc52(0x85)](){const _0x1e16a3=_0x4adc52;this[_0x1e16a3(0xa4)](!0x0);}[_0x4adc52(0xe4)](){const _0x27bf64=_0x4adc52;this[_0x27bf64(0x100)][_0x27bf64(0xb8)](),this[_0x27bf64(0xd5)][_0x27bf64(0x97)]=!0x1,this[_0x27bf64(0xd9)]&&this[_0x27bf64(0xd9)][_0x27bf64(0x7f)]();}[_0x4adc52(0xcb)](){const _0xc942be=_0x4adc52;this[_0xc942be(0x100)][_0xc942be(0x8a)](),this[_0xc942be(0xd5)][_0xc942be(0x97)]=!0x0;}[_0x4adc52(0x86)](_0x58617d){const _0x5e806d=_0x4adc52;this[_0x5e806d(0xb7)][_0x5e806d(0xbc)](_0x58617d),this[_0x5e806d(0xd5)][_0x5e806d(0x97)]=!0x0;}[_0x4adc52(0xd4)](_0x3e7939,_0x1e3355,_0x42af75,_0x22d2f2){const _0x563dff=_0x4adc52;this[_0x563dff(0xb7)][_0x563dff(0xd4)](_0x3e7939,_0x42af75,_0x22d2f2);}[_0x4adc52(0xe9)](_0x4c0faf){const _0x3fdc2b=_0x4adc52;this[_0x3fdc2b(0xb7)][_0x3fdc2b(0xe9)](_0x4c0faf),this[_0x3fdc2b(0xd5)][_0x3fdc2b(0x97)]=!0x1;}[_0x4adc52(0xf4)](_0x55474e){const _0x4aa1af=_0x4adc52;this[_0x4aa1af(0xe7)](this[_0x4aa1af(0x82)],this[_0x4aa1af(0x8f)],_0x55474e),this[_0x4aa1af(0xf5)](_0x55474e);}[_0x4adc52(0xf5)](_0x3c74bf){const _0x1060d7=_0x4adc52,_0x12cf9a=!_0x3c74bf[_0x1060d7(0x9a)][_0x1060d7(0x109)]&&_0x3c74bf[_0x1060d7(0x9a)][_0x1060d7(0xad)],_0x3f684e=_0x3c74bf[_0x1060d7(0x10b)][_0x1060d7(0xad)],_0x52a283=_0x3c74bf[_0x1060d7(0xd7)][_0x1060d7(0xad)];this[_0x1060d7(0xd5)][_0x1060d7(0x8d)]=_0x12cf9a||_0x3f684e||_0x52a283;}[_0x4adc52(0xf6)](){const _0x1172f6=_0x4adc52;this[_0x1172f6(0xf1)]({'tag':_0x1172f6(0xdb),'attributes':{'class':[ko,_0x1172f6(0x10c)]},'children':[{'tag':_0x1172f6(0xdb),'attributes':{'class':Eo},'children':this[_0x1172f6(0x89)]}]});}[_0x4adc52(0x95)](){const _0x52b1fd=_0x4adc52;this[_0x52b1fd(0xd5)]['on'](_0x52b1fd(0xab),()=>{const _0x1ca7d1=_0x52b1fd;this[_0x1ca7d1(0xe8)]();});}[_0x4adc52(0x107)](_0x31155e){const _0x50b62d=_0x4adc52,_0xdd8b13=new _0x1e96b6(_0x31155e);return _0xdd8b13[_0x50b62d(0x88)]({'label':_0x3b3cc5(_0x31155e,_0x50b62d(0xde)),'class':Uo+'\x20'+Vo,'icon':_0x20c5fc,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0xdd8b13;}[_0x4adc52(0xc3)](_0x49f196){const _0x56cc94=_0x4adc52;return this[_0x56cc94(0xd3)](_0x49f196,vo);}[_0x4adc52(0x83)](_0x424675){const _0x1f228c=_0x4adc52,_0x336635=this[_0x1f228c(0xd3)](_0x424675,Io);return this[_0x1f228c(0x87)](_0x336635,_0x424675),_0x336635;}[_0x4adc52(0x92)](_0x2f1ccf,_0x4ad403){const _0x90720c=_0x4adc52,_0x1e00f1={'searchInputVisibleFrom':_0x4ad403[_0x90720c(0x10a)],'onBackToContext':()=>{const _0x49e7c5=_0x90720c;this[_0x49e7c5(0x85)](),this[_0x49e7c5(0x82)][_0x49e7c5(0xe0)]({'target':this[_0x49e7c5(0xd5)][_0x49e7c5(0xce)],'limiter':this[_0x49e7c5(0xaf)](),'positions':Ho});},'onResourceSelected':(_0x45f631,_0x2866eb)=>{const _0x1a4466=_0x90720c;this[_0x1a4466(0xdd)](_0x1a4466(0xda),{'source':_0x45f631,'resource':_0x2866eb});},'onLoadSourceResources':_0x29624e=>{const _0x3b99c2=_0x90720c;this[_0x3b99c2(0xdd)](_0x3b99c2(0xf3),_0x29624e);},'onBalloonClosed':()=>{const _0x2cfd9d=_0x90720c;this[_0x2cfd9d(0xd5)][_0x2cfd9d(0x97)]=!0x1;},'getLimiterElement':()=>this[_0x90720c(0xaf)](),'getTargetElement':()=>this[_0x90720c(0xd5)][_0x90720c(0xce)]};return new _0x5ef869(_0x2f1ccf,_0x4ad403[_0x90720c(0x84)],_0x1e00f1);}[_0x4adc52(0xaf)](){const _0x4b3519=_0x4adc52;return this[_0x4b3519(0xce)]?.[_0x4b3519(0x108)]('.'+Mo)||document[_0x4b3519(0xca)];}[_0x4adc52(0xd3)](_0x43261a,_0x34b94e){const _0x296aba=_0x4adc52,_0xd69494=new _0x48f9f5(_0x43261a);return _0xd69494[_0x296aba(0x101)]({'attributes':{'class':_0x34b94e}}),this[_0x296aba(0x84)][_0x296aba(0xfa)](_0xd69494),_0xd69494;}[_0x4adc52(0xe7)](_0x367520,_0x1336a3,_0x2e2da8){const _0x36d014=_0x4adc52;if(_0x367520[_0x36d014(0xa2)][_0x36d014(0x7f)](),!_0x2e2da8[_0x36d014(0x9a)][_0x36d014(0x109)]&&_0x2e2da8[_0x36d014(0x9a)][_0x36d014(0xad)]){const _0x432ec1=this[_0x36d014(0xa9)](_0x1336a3,{'label':_0x3b3cc5(_0x1336a3,_0x36d014(0xfd)),'icon':_0x366f67});_0x432ec1['on'](_0x36d014(0xab),()=>{const _0x4e0cc8=_0x36d014;this[_0x4e0cc8(0xdd)](_0x4e0cc8(0x96)),this[_0x4e0cc8(0xb3)]();}),_0x367520[_0x36d014(0xa2)][_0x36d014(0xfa)](_0x432ec1);}if(_0x2e2da8[_0x36d014(0x10b)][_0x36d014(0xad)]){const _0x11f647=this[_0x36d014(0xa9)](_0x1336a3,{'label':_0x3b3cc5(_0x1336a3,_0x36d014(0xa7)),'icon':_0x2bb478});_0x11f647['on'](_0x36d014(0xab),()=>{const _0x874e04=_0x36d014;this[_0x874e04(0xb3)](),this[_0x874e04(0xcb)](),this[_0x874e04(0x100)][_0x874e04(0xe0)]({'target':this[_0x874e04(0xd5)][_0x874e04(0xce)],'limiter':this[_0x874e04(0xaf)](),'positions':Ho}),this[_0x874e04(0xd9)][_0x874e04(0xe3)]();}),_0x367520[_0x36d014(0xa2)][_0x36d014(0xfa)](_0x11f647);}if(_0x2e2da8[_0x36d014(0xd7)][_0x36d014(0xad)]){const _0x4199d7=new _0xf7735a(_0x1336a3);_0x4199d7[_0x36d014(0x88)]({'label':_0x3b3cc5(_0x1336a3,_0x36d014(0xf0)),'icon':_0x2f67bd,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x4199d7['on'](_0x36d014(0x106),(_0x542dcc,_0x5ea601)=>{const _0x15d996=_0x36d014;this[_0x15d996(0xdd)](_0x15d996(0xc1),_0x5ea601),this[_0x15d996(0xb3)]();}),_0x4199d7[_0x36d014(0xc9)]=!0x0,_0x367520[_0x36d014(0xa2)][_0x36d014(0xfa)](_0x4199d7);}for(const _0x861d6f of _0x2e2da8[_0x36d014(0xbb)]){const _0x5d6f83=this[_0x36d014(0xa9)](_0x1336a3,{'label':_0x861d6f[_0x36d014(0xf2)],'icon':_0x861d6f[_0x36d014(0xfe)]||_0x44bf07,'type':_0x36d014(0xcf)});_0x367520[_0x36d014(0xa2)][_0x36d014(0xfa)](_0x5d6f83),_0x5d6f83['on'](_0x36d014(0xab),()=>{const _0x2efdf1=_0x36d014;this[_0x2efdf1(0xb3)](),this[_0x2efdf1(0x86)](_0x861d6f);});}}[_0x4adc52(0x87)](_0x527f53,_0x5348ab){const _0x1f8e4f=_0x4adc52;this[_0x1f8e4f(0xd9)]=new _0x26d493(_0x5348ab),this[_0x1f8e4f(0xd9)]['on'](_0x1f8e4f(0x90),(_0x50d735,_0x1b1b4f)=>{const _0x568ec6=_0x1f8e4f;this[_0x568ec6(0xa1)](_0x1b1b4f);}),this[_0x1f8e4f(0xd9)]['on'](_0x1f8e4f(0xf7),()=>{const _0x336ea6=_0x1f8e4f;this[_0x336ea6(0xe4)](),this[_0x336ea6(0x85)](),this[_0x336ea6(0x82)][_0x336ea6(0xe0)]({'target':this[_0x336ea6(0xd5)][_0x336ea6(0xce)],'limiter':this[_0x336ea6(0xaf)](),'positions':Ho});}),this[_0x1f8e4f(0xd9)]['on'](_0x1f8e4f(0x9b),()=>{const _0x594794=_0x1f8e4f;this[_0x594794(0x100)][_0x594794(0x8e)]&&this[_0x594794(0x100)][_0x594794(0xe0)]({'target':this[_0x594794(0xd5)][_0x594794(0xce)],'limiter':this[_0x594794(0xaf)](),'positions':Ho});}),_0x527f53[_0x1f8e4f(0xa2)][_0x1f8e4f(0xfa)](this[_0x1f8e4f(0xd9)]);}[_0x4adc52(0xa9)](_0x11a0c0,_0x289a81){const _0x4301d8=_0x4adc52,_0x1088b3=_0x4301d8(0xcf)===_0x289a81[_0x4301d8(0xb4)]?new SourcesBalloonButtonView(_0x11a0c0):new _0x1e96b6(_0x11a0c0);return _0x1088b3[_0x4301d8(0x88)]({'label':_0x289a81[_0x4301d8(0xf2)],'icon':_0x289a81[_0x4301d8(0xfe)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x1088b3;}[_0x4adc52(0x80)](){const _0x67dcc=_0x4adc52;this[_0x67dcc(0xd2)](),this[_0x67dcc(0x94)]();}[_0x4adc52(0x94)](){const _0x3c4799=_0x4adc52;_0xf40a8b({'emitter':this[_0x3c4799(0x100)],'contextElements':[this[_0x3c4799(0x100)][_0x3c4799(0xce)]],'callback':()=>{const _0x509195=_0x3c4799;this[_0x509195(0xe4)]();},'activator':()=>this[_0x3c4799(0x100)][_0x3c4799(0x8e)]});}[_0x4adc52(0xa4)](_0x457374){const _0x12a027=_0x4adc52,_0xada094=this[_0x12a027(0xb6)];_0xada094[_0x12a027(0xed)][_0x12a027(0x97)]=_0x457374,_0x457374?_0xada094[_0x12a027(0xdf)][_0x12a027(0x8a)]():_0xada094[_0x12a027(0xdf)][_0x12a027(0xb8)]();}[_0x4adc52(0xd2)](){const _0x47a477=_0x4adc52,{balloonView:_0x506c9d,buttonView:_0x234e90,hideMethod:_0x4e286e}=this[_0x47a477(0xb6)];_0xf40a8b({'emitter':_0x506c9d,'contextElements':[_0x506c9d[_0x47a477(0xce)],_0x234e90[_0x47a477(0xce)]],'callback':()=>{_0x4e286e();},'activator':()=>_0x234e90[_0x47a477(0x97)]&&!this[_0x47a477(0x100)][_0x47a477(0x8e)]&&!this[_0x47a477(0xb7)][_0x47a477(0xc7)]()});}[_0x4adc52(0xb5)](_0x2e2c10,_0x442932,_0x3d7903=!0x1,_0x29654d=!0x1){const _0x24c8d5=_0x4adc52,_0x519dc2=_0x24c8d5(0x9d)===_0x442932||!0x0===_0x2e2c10[_0x24c8d5(0xcc)],_0x47841b=new _0x2fbe32(this[_0x24c8d5(0x8f)],_0x2e2c10,_0x519dc2,_0x3d7903,_0x29654d);return _0x519dc2||_0x47841b['on'](_0x24c8d5(0xbe),()=>{const _0x3b8b0b=_0x24c8d5;this[_0x3b8b0b(0xdd)](_0x3b8b0b(0xdc),_0x47841b['id']);}),_0x47841b;}[_0x4adc52(0xeb)](_0x1774a3,_0x51489f){const _0xc1e2fc=_0x4adc52;_0x51489f[_0xc1e2fc(0xfa)](_0x1774a3,0x0);}[_0x4adc52(0xc0)](_0x3a6022,_0x3d4b91){const _0x3f79d8=_0x4adc52,_0x55cab0=_0x3d4b91[_0x3f79d8(0xd6)](_0x53b284=>_0x53b284['id']===_0x3a6022);_0x55cab0&&_0x3d4b91[_0x3f79d8(0x8b)](_0x55cab0);}[_0x4adc52(0xe8)](){const _0x111663=_0x4adc52;this[_0x111663(0xd5)][_0x111663(0x97)]?this[_0x111663(0xb3)]():(this[_0x111663(0x85)](),this[_0x111663(0x82)][_0x111663(0xe0)]({'target':this[_0x111663(0xd5)][_0x111663(0xce)],'limiter':this[_0x111663(0xaf)](),'positions':Ho}));}[_0x4adc52(0xa1)](_0x8a9c5b){const _0x549946=_0x4adc52;this[_0x549946(0xd9)][_0x549946(0x7f)](),this[_0x549946(0xe4)](),this[_0x549946(0xdd)](_0x549946(0xd1),_0x8a9c5b);}}function _0x212e(_0x1ccb41,_0x32c7f1){const _0x2b38bd=_0x2b38();return _0x212e=function(_0x212e69,_0x2682c2){_0x212e69=_0x212e69-0x7e;let _0x2776c5=_0x2b38bd[_0x212e69];return _0x2776c5;},_0x212e(_0x1ccb41,_0x32c7f1);}export class SourcesBalloonButtonView extends _0x1e96b6{[_0x4adc52(0xef)];constructor(_0xfc7598){const _0x36024d=_0x4adc52;super(_0xfc7598),this[_0x36024d(0x88)]({'withText':!0x0,'role':_0x36024d(0xee)}),this[_0x36024d(0xef)]=this[_0x36024d(0xf8)](),this[_0x36024d(0x101)]({'attributes':{'class':[Ro]}});}[_0x4adc52(0x9c)](){const _0x17584e=_0x4adc52;super[_0x17584e(0x9c)](),this[_0x17584e(0x93)][_0x17584e(0xfa)](this[_0x17584e(0xef)]);}[_0x4adc52(0xf8)](){const _0x51eac2=_0x4adc52,_0x41be35=new _0x5c74f8();return _0x41be35[_0x51eac2(0xa2)]=_0x3f56cb,_0x41be35[_0x51eac2(0x101)]({'attributes':{'class':Ro+_0x51eac2(0xe2)}}),_0x41be35;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x301c77=_0x3fc5;function _0x3fc5(_0x3353f9,_0x33b2ec){const _0x4156c1=_0x4156();return _0x3fc5=function(_0x3fc50e,_0x192584){_0x3fc50e=_0x3fc50e-0x1d8;let _0x69829=_0x4156c1[_0x3fc50e];return _0x69829;},_0x3fc5(_0x3353f9,_0x33b2ec);}function _0x4156(){const _0x1c410f=['_createLoaderView','fire','AI_CHAT_IS_WRITING','35019fvGclg','ck-ai-chat-controls-loader','ck-ai-chat-controls-loader-wrapper','ck-ai-chat-controls-loader-icon-dot','execute','4089540QpxaHr','set','div','1136CIyOmb','ck-reset_all','2423232VDJBJD','setTemplate','_loaderView','ck-ai-chat-controls-loader-icon','431292vfYgpC','locale','_createCancelButtonView','5NWrWfY','451938wWRQlD','AI_CHAT_STOP_GENERATING','17160180VKNerC','1678exSCfu','265YdIjev','ck-ai-button-secondary\x20ck-ai-button-stop-generating','abortPromptStream','_cancelButtonView'];_0x4156=function(){return _0x1c410f;};return _0x4156();}(function(_0x4c933b,_0x381b47){const _0x1b27cf=_0x3fc5,_0x56d090=_0x4c933b();while(!![]){try{const _0x1bbad1=parseInt(_0x1b27cf(0x1e6))/0x1*(parseInt(_0x1b27cf(0x1e5))/0x2)+parseInt(_0x1b27cf(0x1e2))/0x3+parseInt(_0x1b27cf(0x1de))/0x4+-parseInt(_0x1b27cf(0x1e1))/0x5*(-parseInt(_0x1b27cf(0x1da))/0x6)+parseInt(_0x1b27cf(0x1f2))/0x7+parseInt(_0x1b27cf(0x1d8))/0x8*(parseInt(_0x1b27cf(0x1ed))/0x9)+-parseInt(_0x1b27cf(0x1e4))/0xa;if(_0x1bbad1===_0x381b47)break;else _0x56d090['push'](_0x56d090['shift']());}catch(_0x178517){_0x56d090['push'](_0x56d090['shift']());}}}(_0x4156,0x4a8f8));import{ButtonView as _0x2eb60d,View as _0x51cad9}from'ckeditor5/src/ui.js';import{IconStop as _0x3fc845}from'ckeditor5/src/icons.js';import{getTranslation as _0x53544a}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x51cad9{[_0x301c77(0x1e9)];[_0x301c77(0x1dc)];constructor(_0x537f13){const _0x4dde8c=_0x301c77;super(_0x537f13),this[_0x4dde8c(0x1e9)]=this[_0x4dde8c(0x1e0)](),this[_0x4dde8c(0x1dc)]=this[_0x4dde8c(0x1ea)](),this[_0x4dde8c(0x1db)]({'tag':_0x4dde8c(0x1f4),'attributes':{'class':['ck',_0x4dde8c(0x1ef),_0x4dde8c(0x1d9)]},'children':[this[_0x4dde8c(0x1dc)],this[_0x4dde8c(0x1e9)]]});}[_0x301c77(0x1e0)](){const _0x3a5e73=_0x301c77,_0x111769=new _0x2eb60d(this[_0x3a5e73(0x1df)]);return _0x111769[_0x3a5e73(0x1f3)]({'label':_0x53544a(this[_0x3a5e73(0x1df)],_0x3a5e73(0x1e3)),'withText':!0x0,'class':_0x3a5e73(0x1e7),'icon':_0x3fc845}),_0x111769['on'](_0x3a5e73(0x1f1),()=>{const _0x4eb23a=_0x3a5e73;this[_0x4eb23a(0x1eb)](_0x4eb23a(0x1e8));}),_0x111769;}[_0x301c77(0x1ea)](){const _0x8e7cb6=_0x301c77,_0x2f4db5=new _0x51cad9(this[_0x8e7cb6(0x1df)]);return _0x2f4db5[_0x8e7cb6(0x1db)]({'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1ee)]},'children':[{'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1dd)]},'children':[{'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1f0)]}},{'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1f0)]}},{'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1f0)]}}]},{'text':_0x53544a(this[_0x8e7cb6(0x1df)],_0x8e7cb6(0x1ec))}]}),_0x2f4db5;}}
23
+ const _0x39c0ad=_0x26d9;(function(_0x3c76d0,_0x36b867){const _0x58a445=_0x26d9,_0x173d0e=_0x3c76d0();while(!![]){try{const _0xbad45=parseInt(_0x58a445(0x11f))/0x1*(parseInt(_0x58a445(0x10c))/0x2)+parseInt(_0x58a445(0x117))/0x3*(parseInt(_0x58a445(0x115))/0x4)+parseInt(_0x58a445(0x103))/0x5+parseInt(_0x58a445(0x104))/0x6*(parseInt(_0x58a445(0x11e))/0x7)+-parseInt(_0x58a445(0x110))/0x8*(parseInt(_0x58a445(0x116))/0x9)+-parseInt(_0x58a445(0x114))/0xa+-parseInt(_0x58a445(0x105))/0xb;if(_0xbad45===_0x36b867)break;else _0x173d0e['push'](_0x173d0e['shift']());}catch(_0x33d31c){_0x173d0e['push'](_0x173d0e['shift']());}}}(_0x4563,0xd2cdd));import{ButtonView as _0x2eb9a8,View as _0xa776fd}from'ckeditor5/src/ui.js';import{IconStop as _0x17f73c}from'ckeditor5/src/icons.js';import{getTranslation as _0x23e169}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0xa776fd{[_0x39c0ad(0x118)];[_0x39c0ad(0x119)];constructor(_0x39c106){const _0xb8f99f=_0x39c0ad;super(_0x39c106),this[_0xb8f99f(0x118)]=this[_0xb8f99f(0x11b)](),this[_0xb8f99f(0x119)]=this[_0xb8f99f(0x11d)](),this[_0xb8f99f(0x106)]({'tag':_0xb8f99f(0x111),'attributes':{'class':['ck',_0xb8f99f(0x112),_0xb8f99f(0x10b)]},'children':[this[_0xb8f99f(0x119)],this[_0xb8f99f(0x118)]]});}[_0x39c0ad(0x11b)](){const _0x1eeb5f=_0x39c0ad,_0x17f15b=new _0x2eb9a8(this[_0x1eeb5f(0x11a)]);return _0x17f15b[_0x1eeb5f(0x113)]({'label':_0x23e169(this[_0x1eeb5f(0x11a)],_0x1eeb5f(0x10e)),'withText':!0x0,'class':_0x1eeb5f(0x107),'icon':_0x17f73c}),_0x17f15b['on'](_0x1eeb5f(0x11c),()=>{const _0x4e8316=_0x1eeb5f;this[_0x4e8316(0x10d)](_0x4e8316(0x10f));}),_0x17f15b;}[_0x39c0ad(0x11d)](){const _0x14efdd=_0x39c0ad,_0x31a39b=new _0xa776fd(this[_0x14efdd(0x11a)]);return _0x31a39b[_0x14efdd(0x106)]({'tag':_0x14efdd(0x111),'attributes':{'class':[_0x14efdd(0x10a)]},'children':[{'tag':_0x14efdd(0x111),'attributes':{'class':[_0x14efdd(0x109)]},'children':[{'tag':_0x14efdd(0x111),'attributes':{'class':[_0x14efdd(0x108)]}},{'tag':_0x14efdd(0x111),'attributes':{'class':[_0x14efdd(0x108)]}},{'tag':_0x14efdd(0x111),'attributes':{'class':[_0x14efdd(0x108)]}}]},{'text':_0x23e169(this[_0x14efdd(0x11a)],_0x14efdd(0x102))}]}),_0x31a39b;}}function _0x26d9(_0x100eaf,_0x7235d7){const _0x456328=_0x4563();return _0x26d9=function(_0x26d9e5,_0x11fe08){_0x26d9e5=_0x26d9e5-0x102;let _0x232102=_0x456328[_0x26d9e5];return _0x232102;},_0x26d9(_0x100eaf,_0x7235d7);}function _0x4563(){const _0x511f93=['AI_CHAT_IS_WRITING','5855530uwkDpM','4640334qVgPoj','13434575cWARdG','setTemplate','ck-ai-button-secondary\x20ck-ai-button-stop-generating','ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader-icon','ck-ai-chat-controls-loader','ck-reset_all','578uLSJeL','fire','AI_CHAT_STOP_GENERATING','abortPromptStream','284792upcbfm','div','ck-ai-chat-controls-loader-wrapper','set','257090juapHg','68QghYyM','270LlATHM','214647OUmyAG','_cancelButtonView','_loaderView','locale','_createCancelButtonView','execute','_createLoaderView','7cWcLbA','61JWmoNT'];_0x4563=function(){return _0x511f93;};return _0x4563();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53184d=_0x51b0;(function(_0x4576de,_0x3dc9ed){const _0x5bc16d=_0x51b0,_0x578709=_0x4576de();while(!![]){try{const _0x6291d8=-parseInt(_0x5bc16d(0xfd))/0x1*(-parseInt(_0x5bc16d(0x11d))/0x2)+parseInt(_0x5bc16d(0x157))/0x3+parseInt(_0x5bc16d(0x154))/0x4+-parseInt(_0x5bc16d(0x132))/0x5*(parseInt(_0x5bc16d(0x13c))/0x6)+-parseInt(_0x5bc16d(0x116))/0x7+-parseInt(_0x5bc16d(0x126))/0x8*(-parseInt(_0x5bc16d(0x11a))/0x9)+parseInt(_0x5bc16d(0x15f))/0xa*(-parseInt(_0x5bc16d(0x15e))/0xb);if(_0x6291d8===_0x3dc9ed)break;else _0x578709['push'](_0x578709['shift']());}catch(_0x47103a){_0x578709['push'](_0x578709['shift']());}}}(_0x18d4,0xadc6f));function _0x51b0(_0x487252,_0x3cd8d8){const _0x18d4c4=_0x18d4();return _0x51b0=function(_0x51b0cf,_0xbc6b9a){_0x51b0cf=_0x51b0cf-0xfd;let _0x11ff07=_0x18d4c4[_0x51b0cf];return _0x11ff07;},_0x51b0(_0x487252,_0x3cd8d8);}import{Collection as _0x55bae2}from'ckeditor5/src/utils.js';import{IconAI as _0x4b8959,IconBulb as _0x35b36c,IconWeb as _0x1ced6a}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x36508b,ButtonLabelView as _0x275c46,ButtonView as _0x1f5bf6,createDropdown as _0x518fc9,IconView as _0x235d38,UIModel as _0x32f870,View as _0x34d75e}from'ckeditor5/src/ui.js';import{getTranslation as _0x5e0d75}from'../../../aicore/utils/common-translations.js';const yo=_0x53184d(0x11b),Uo=_0x53184d(0x131),Go=_0x53184d(0x133),jo=_0x53184d(0x159),Yo=_0x53184d(0x149),qo=_0x53184d(0x15d),zo=_0x53184d(0x102),Fo='n';export class AIChatPromptCapabilitiesView extends _0x34d75e{[_0x53184d(0x106)];[_0x53184d(0x10d)];[_0x53184d(0x14e)];[_0x53184d(0x134)];[_0x53184d(0x142)];[_0x53184d(0x146)];constructor(_0x401d97){const _0x48867e=_0x53184d;super(_0x401d97),this[_0x48867e(0x122)](_0x48867e(0x108),!0x1),this[_0x48867e(0x122)](_0x48867e(0x145),!0x1),this[_0x48867e(0x122)](_0x48867e(0x119),!0x0),this[_0x48867e(0x122)](_0x48867e(0x117),!0x0),this[_0x48867e(0x122)](_0x48867e(0x144),null),this[_0x48867e(0x122)](_0x48867e(0x10a),null),this[_0x48867e(0x134)]=this[_0x48867e(0x105)](),this[_0x48867e(0x146)]=this[_0x48867e(0x127)](),this[_0x48867e(0x106)]=this[_0x48867e(0x110)](),this[_0x48867e(0x10d)]=this[_0x48867e(0x137)](),this[_0x48867e(0x14e)]=this[_0x48867e(0x11f)](),this[_0x48867e(0x134)][_0x48867e(0x13f)][_0x48867e(0x10f)](_0x48867e(0x13e))['to'](this,_0x48867e(0x119),_0x1576dd=>_0x1576dd),this[_0x48867e(0x134)][_0x48867e(0x13f)][_0x48867e(0x10f)](_0x48867e(0x138))['to'](this,_0x48867e(0x117),_0x4b2b8b=>_0x4b2b8b?this[_0x48867e(0x134)][_0x48867e(0x13f)][_0x48867e(0x14f)]:_0x5e0d75(this[_0x48867e(0x120)],_0x48867e(0x139))),this[_0x48867e(0x134)][_0x48867e(0x10f)](_0x48867e(0x12f))['to'](this,_0x48867e(0x117),_0x11e02e=>_0x11e02e),this[_0x48867e(0x106)][_0x48867e(0x10f)](_0x48867e(0x124))['to'](this,_0x48867e(0x108),_0x7486a4=>_0x7486a4),this[_0x48867e(0x106)][_0x48867e(0x10f)](_0x48867e(0x101))['to'](this,_0x48867e(0x119),_0x3259b5=>!_0x3259b5),this[_0x48867e(0x106)][_0x48867e(0x10f)](_0x48867e(0x138))['to'](this,_0x48867e(0x108),_0x284769=>_0x5e0d75(this[_0x48867e(0x120)],_0x284769?_0x48867e(0x155):_0x48867e(0x12e))),this[_0x48867e(0x10d)][_0x48867e(0x10f)](_0x48867e(0x124))['to'](this,_0x48867e(0x145),_0x2f188c=>_0x2f188c),this[_0x48867e(0x10d)][_0x48867e(0x10f)](_0x48867e(0x101))['to'](this,_0x48867e(0x119),_0x18ed98=>!_0x18ed98),this[_0x48867e(0x10d)][_0x48867e(0x10f)](_0x48867e(0x138))['to'](this,_0x48867e(0x145),_0x3f9125=>_0x5e0d75(this[_0x48867e(0x120)],_0x3f9125?_0x48867e(0x12d):_0x48867e(0x13a))),this[_0x48867e(0x141)]({'tag':_0x48867e(0x12a),'attributes':{'class':[yo]},'children':[this[_0x48867e(0x134)],this[_0x48867e(0x146)],this[_0x48867e(0x106)],this[_0x48867e(0x10d)],this[_0x48867e(0x14e)]]}),this[_0x48867e(0x142)]=new _0x55bae2(),_0x36508b(this[_0x48867e(0x134)],this[_0x48867e(0x142)]);}[_0x53184d(0x114)](_0x539083,_0x3af1b4){const _0x3000b0=_0x53184d;if(this[_0x3000b0(0x122)](_0x3000b0(0x119),!(_0x3af1b4&&_0x539083[_0x3000b0(0x107)]<=0x1)),this[_0x3000b0(0x142)][_0x3000b0(0x15c)](),_0x539083?.[_0x3000b0(0x107)])for(const _0x5ef192 of _0x539083){const _0x201ee9=new _0x32f870({'label':_0x5ef192[_0x3000b0(0x112)],'withText':!0x0,'role':_0x3000b0(0x130),'id':_0x5ef192['id'],'model':_0x5ef192});_0x201ee9[_0x3000b0(0x10f)](_0x3000b0(0x124))['to'](this,_0x3000b0(0x144),_0x49bb2d=>_0x49bb2d===_0x5ef192['id']),this[_0x3000b0(0x142)][_0x3000b0(0x152)]({'type':_0x3000b0(0x14d),'model':_0x201ee9,'labelView':new Us(this[_0x3000b0(0x120)],_0x5ef192)});}}[_0x53184d(0x135)](_0x395d7f){const _0x3f50b3=_0x53184d;this[_0x3f50b3(0x122)](_0x3f50b3(0x108),_0x395d7f);}[_0x53184d(0x13d)](_0x279921){const _0x1c24e0=_0x53184d;this[_0x1c24e0(0x122)](_0x1c24e0(0x145),_0x279921);}[_0x53184d(0x118)](_0x4cf860){const _0x47bf8b=_0x53184d;if(!_0x4cf860)return;this[_0x47bf8b(0x144)]=_0x4cf860['id'],this[_0x47bf8b(0x10a)]=_0x4cf860[_0x47bf8b(0x112)]||_0x4cf860['id'],this[_0x47bf8b(0x134)][_0x47bf8b(0x13f)][_0x47bf8b(0x122)](_0x47bf8b(0x14f),_0x4cf860[_0x47bf8b(0x112)]),this[_0x47bf8b(0x134)][_0x47bf8b(0x13f)][_0x47bf8b(0x122)](_0x47bf8b(0x138),_0x4cf860[_0x47bf8b(0x112)]);const _0x48ebf3=_0x4cf860[_0x47bf8b(0x136)][_0x47bf8b(0x147)]?.[_0x47bf8b(0x151)]??!0x1;this[_0x47bf8b(0x122)](_0x47bf8b(0x108),!0x1),this[_0x47bf8b(0x106)][_0x47bf8b(0x122)](_0x47bf8b(0x124),!0x1),this[_0x47bf8b(0x106)][_0x47bf8b(0x122)](_0x47bf8b(0x12f),_0x48ebf3),this[_0x47bf8b(0x106)][_0x47bf8b(0x122)](_0x47bf8b(0x13e),_0x48ebf3);const _0x35c5e8=_0x4cf860[_0x47bf8b(0x136)][_0x47bf8b(0x143)]?.[_0x47bf8b(0x151)]??!0x1;this[_0x47bf8b(0x122)](_0x47bf8b(0x145),!0x1),this[_0x47bf8b(0x10d)][_0x47bf8b(0x122)](_0x47bf8b(0x124),!0x1),this[_0x47bf8b(0x10d)][_0x47bf8b(0x122)](_0x47bf8b(0x12f),_0x35c5e8),this[_0x47bf8b(0x10d)][_0x47bf8b(0x122)](_0x47bf8b(0x13e),_0x35c5e8);}[_0x53184d(0x148)](){const _0x4cd84b=_0x53184d;this[_0x4cd84b(0x122)](_0x4cd84b(0x117),!0x0),this[_0x4cd84b(0x122)](_0x4cd84b(0x119),!0x0);}[_0x53184d(0x150)](_0x107ea4){const _0xb0b3dc=_0x53184d;this[_0xb0b3dc(0x122)](_0xb0b3dc(0x117),!0x1),_0x107ea4&&this[_0xb0b3dc(0x122)](_0xb0b3dc(0x119),!0x1);}[_0x53184d(0x110)](){const _0x15461d=_0x53184d,_0x465603=new _0x1f5bf6();return _0x465603[_0x15461d(0x122)]({'label':_0x5e0d75(this[_0x15461d(0x120)],_0x15461d(0x14a)),'icon':_0x1ced6a,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x465603['on'](_0x15461d(0x103),()=>{const _0x59352a=_0x15461d;this[_0x59352a(0x128)](_0x59352a(0x129));}),_0x465603;}[_0x53184d(0x137)](){const _0x40540d=_0x53184d,_0x169ebb=new _0x1f5bf6();return _0x169ebb[_0x40540d(0x122)]({'label':_0x5e0d75(this[_0x40540d(0x120)],_0x40540d(0x121)),'icon':_0x35b36c,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x169ebb['on'](_0x40540d(0x103),()=>{const _0x3df381=_0x40540d;this[_0x3df381(0x128)](_0x3df381(0x123));}),_0x169ebb;}[_0x53184d(0x11f)](){const _0x222bda=_0x53184d,_0x4bf74e=new _0x1f5bf6();return _0x4bf74e[_0x222bda(0x122)]({'label':_0x5e0d75(this[_0x222bda(0x120)],_0x222bda(0x10b)),'icon':_0x4b8959,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x5e0d75(this[_0x222bda(0x120)],_0x222bda(0x10b)),'tooltipPosition':Fo}),_0x4bf74e[_0x222bda(0xfe)]({'attributes':{'class':[Go]}}),_0x4bf74e['on'](_0x222bda(0x103),()=>{const _0x4c3c71=_0x222bda;console[_0x4c3c71(0x113)](_0x4c3c71(0x12c)),alert(_0x4c3c71(0x12c));}),_0x4bf74e;}[_0x53184d(0x105)](){const _0x268f07=_0x53184d,_0x115ddf=_0x518fc9(this[_0x268f07(0x120)]);return _0x115ddf[_0x268f07(0x122)]({'panelPosition':'ne','class':[jo]}),_0x115ddf[_0x268f07(0x13f)][_0x268f07(0x122)]({'label':_0x5e0d75(this[_0x268f07(0x120)],_0x268f07(0x104)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x268f07(0x12b)](_0x115ddf,_0x268f07(0x103),_0x301590=>{const _0x583de2=_0x268f07;this[_0x583de2(0x128)](_0x583de2(0x125),_0x301590[_0x583de2(0x14b)][_0x583de2(0x160)]);}),_0x115ddf;}[_0x53184d(0x127)](){const _0x26e5d5=_0x53184d,_0x3ed2fa=new Jo(this[_0x26e5d5(0x120)]);return _0x3ed2fa[_0x26e5d5(0x10f)](_0x26e5d5(0x153))['to'](this,_0x26e5d5(0x10a),_0x564a63=>_0x564a63??''),_0x3ed2fa[_0x26e5d5(0x10f)](_0x26e5d5(0x13e))['to'](this,_0x26e5d5(0x119),this,_0x26e5d5(0x10a),(_0x5d1d97,_0xed983c)=>!_0x5d1d97&&!_0xed983c?.[_0x26e5d5(0x11c)]()[_0x26e5d5(0x111)](_0x26e5d5(0x10c))),_0x3ed2fa;}}class Us extends _0x275c46{constructor(_0x5a68ea,_0xabd9c5){const _0x295e83=_0x53184d;super();const _0x4b0917=this[_0x295e83(0x14c)],_0x409509=this[_0x295e83(0x13b)]();this[_0x295e83(0x141)]({'tag':_0x295e83(0x12a),'attributes':{'class':['ck',_0x295e83(0x15a)],'style':_0x4b0917['to'](_0x295e83(0x15b)),'id':_0x4b0917['to']('id')},'children':[{'tag':_0x295e83(0x12a),'attributes':{'class':[Yo]},'children':[{'text':_0x4b0917['to'](_0x295e83(0x153))}]},{'tag':_0x295e83(0x12a),'attributes':{'class':[qo]},'children':[{'tag':_0x295e83(0x109),'children':[{'text':_0xabd9c5[_0x295e83(0x140)]}]}]},{'tag':_0x295e83(0x12a),'attributes':{'class':[zo]},'children':_0x409509}]}),_0x409509[_0x295e83(0x11e)](this[_0x295e83(0xff)](_0x5a68ea,_0x1ced6a,_0x295e83(0x14a),_0xabd9c5[_0x295e83(0x136)][_0x295e83(0x147)]?.[_0x295e83(0x151)]??!0x1)),_0x409509[_0x295e83(0x11e)](this[_0x295e83(0xff)](_0x5a68ea,_0x35b36c,_0x295e83(0x121),_0xabd9c5[_0x295e83(0x136)][_0x295e83(0x143)]?.[_0x295e83(0x151)]??!0x1));}[_0x53184d(0xff)](_0x70974a,_0x373b2e,_0xe8c32c,_0x2e08a4){const _0x7a66e4=_0x53184d,_0xb22966=new _0x235d38();_0xb22966[_0x7a66e4(0x158)]=_0x373b2e;const _0x3e3027=new _0x34d75e(_0x70974a);_0x3e3027[_0x7a66e4(0x141)]({'tag':_0x7a66e4(0x109),'children':[{'text':_0x5e0d75(_0x70974a,_0xe8c32c)+':\x20'}]});const _0x26eea7=new _0x34d75e(_0x70974a);return _0x26eea7[_0x7a66e4(0x141)]({'tag':_0x7a66e4(0x109),'children':[{'text':_0x5e0d75(_0x70974a,_0x2e08a4?_0x7a66e4(0x115):_0x7a66e4(0x100))}]}),[_0xb22966,_0x3e3027,_0x26eea7];}}class Jo extends _0x34d75e{constructor(_0x4e0ad5){const _0x267688=_0x53184d;super(_0x4e0ad5),this[_0x267688(0x122)](_0x267688(0x153),void 0x0),this[_0x267688(0x122)](_0x267688(0x13e),!0x0);const _0x5439a7=this[_0x267688(0x14c)];this[_0x267688(0x141)]({'tag':_0x267688(0x109),'attributes':{'class':['ck',_0x267688(0x156),_0x5439a7['if'](_0x267688(0x13e),_0x267688(0x10e),_0x559007=>!_0x559007)]},'children':[{'text':_0x5439a7['to'](_0x267688(0x153))}]});}}function _0x18d4(){const _0x4c5ad7=['_createModelSelectionDropdown','_webSearchButton','length','webSearchActive','span','activeModelName','AI_CHAT_COMMANDS','agent','_reasoningButton','ck-hidden','bind','_createWebSearchButton','startsWith','name','log','setModelList','AI_CHAT_CAPABILITIES_YES','5124602bgyIDv','modelSelectorEnabled','setModel','modelSelectorVisible','1016748bnaSzk','ck-ai-chat__prompt-capabilities','toLowerCase','1516fMGYzX','addMany','_createCommandsButton','locale','AI_CHAT_REASONING','set','toggleReasoning','isOn','selectModel','32UESIXg','_createModelNameView','fire','toggleWebSearch','div','listenTo','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_DISABLE_REASONING','AI_CHAT_ENABLE_WEB_SEARCH','isEnabled','menuitemradio','ck-ai-chat-controls-button','4190oitxZX','ck-ai-chat-controls-button--commands','_modelSelectionDropdown','setWebSearch','capabilities','_createReasoningButton','tooltip','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_ENABLE_REASONING','createCollection','3162gSwcle','setReasoning','isVisible','buttonView','description','setTemplate','_modelSelectionDropdownItems','reasoning','activeModelId','reasoningActive','_modelNameView','webSearch','enableModelSelector','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_SEARCH_WEB','source','bindTemplate','button','_commandsButton','label','disableModelSelector','enabled','add','text','1901760xCbEhO','AI_CHAT_DISABLE_WEB_SEARCH','ck-ai-chat-controls__model-name','750669eOjGLb','content','ck-ai-chat-controls__model-selection','ck-button__label','style','clear','ck-ai-chat-controls__model-selection__item-description','7700qZacUX','8230HvRyMK','model','1694vDzDtO','extendTemplate','_getCapabilityParts','AI_CHAT_CAPABILITIES_NO','withText','ck-ai-chat-controls__model-selection__item-capabilities','execute','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP'];_0x18d4=function(){return _0x4c5ad7;};return _0x18d4();}
23
+ const _0x23067d=_0x3f97;(function(_0x153316,_0x2ef88b){const _0xd3f95e=_0x3f97,_0x53be0f=_0x153316();while(!![]){try{const _0x2aa56f=-parseInt(_0xd3f95e(0x17a))/0x1*(parseInt(_0xd3f95e(0x11f))/0x2)+-parseInt(_0xd3f95e(0x149))/0x3+parseInt(_0xd3f95e(0x143))/0x4+-parseInt(_0xd3f95e(0x16d))/0x5*(-parseInt(_0xd3f95e(0x16b))/0x6)+-parseInt(_0xd3f95e(0x16e))/0x7+parseInt(_0xd3f95e(0x17c))/0x8+-parseInt(_0xd3f95e(0x12a))/0x9*(-parseInt(_0xd3f95e(0x144))/0xa);if(_0x2aa56f===_0x2ef88b)break;else _0x53be0f['push'](_0x53be0f['shift']());}catch(_0x2e0176){_0x53be0f['push'](_0x53be0f['shift']());}}}(_0x7d38,0x97dab));import{Collection as _0x536faf}from'ckeditor5/src/utils.js';import{IconAI as _0x54d5a5,IconBulb as _0x5e110f,IconWeb as _0x50c83b}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x276fc9,ButtonLabelView as _0x5aa600,ButtonView as _0x4e05d0,createDropdown as _0x3ba751,IconView as _0x1f8dd1,UIModel as _0x1241d6,View as _0x421a9a}from'ckeditor5/src/ui.js';import{getTranslation as _0x987e38}from'../../../aicore/utils/common-translations.js';function _0x7d38(){const _0x56dc4b=['_createReasoningButton','webSearchActive','model','isOn','AI_CHAT_DISABLE_REASONING','_modelSelectionDropdown','setReasoning','webSearch','1053612wHMwJb','10lHDujW','tooltip','_modelNameView','span','AI_CHAT_REASONING','2800803lMpXFk','AI_CHAT_ENABLE_REASONING','clear','isVisible','ck-ai-chat-controls-button','enabled','activeModelName','_createCommandsButton','selectModel','listenTo','_reasoningButton','_commandsButton','name','AI_CHAT_ENABLE_WEB_SEARCH','bind','_createWebSearchButton','ck-ai-chat-controls__model-selection__item-description','setWebSearch','toLowerCase','log','extendTemplate','set','activeModelId','setModel','setTemplate','AI_CHAT_CAPABILITIES_NO','label','AI_CHAT_COMMANDS','_createModelNameView','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_DISABLE_WEB_SEARCH','reasoningActive','button','ck-ai-chat-controls__model-selection','102lKMspB','AI_CHAT_CAPABILITIES_YES','169610gIZoBG','7333578VucBFQ','ck-button__label','_createModelSelectionDropdown','locale','buttonView','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','withText','description','fire','setModelList','ck-ai-chat-controls__model-name','_modelSelectionDropdownItems','64618bwLGHB','modelSelectorVisible','1660944vSOyiG','ck-ai-chat-controls__model-selection__item-name','execute','enableModelSelector','reasoning','startsWith','2ROkZqQ','addMany','ck-ai-chat-controls-button--commands','isEnabled','createCollection','disableModelSelector','toggleReasoning','_webSearchButton','bindTemplate','text','source','14581557CBNTLW','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','modelSelectorEnabled','ck-hidden','agent','div','ck-ai-chat-controls__model-selection__item-capabilities','content','add','menuitemradio','toggleWebSearch','style','ck-ai-chat__prompt-capabilities','capabilities','AI_CHAT_SEARCH_WEB','length','_getCapabilityParts'];_0x7d38=function(){return _0x56dc4b;};return _0x7d38();}function _0x3f97(_0xc82fba,_0x149811){const _0x7d3883=_0x7d38();return _0x3f97=function(_0x3f97d7,_0x36116b){_0x3f97d7=_0x3f97d7-0x11f;let _0x21aaef=_0x7d3883[_0x3f97d7];return _0x21aaef;},_0x3f97(_0xc82fba,_0x149811);}const yo=_0x23067d(0x136),Uo=_0x23067d(0x14d),Go=_0x23067d(0x121),jo=_0x23067d(0x16a),Yo=_0x23067d(0x17d),qo=_0x23067d(0x159),zo=_0x23067d(0x130),Fo='n';export class AIChatPromptCapabilitiesView extends _0x421a9a{[_0x23067d(0x126)];[_0x23067d(0x153)];[_0x23067d(0x154)];[_0x23067d(0x140)];[_0x23067d(0x179)];[_0x23067d(0x146)];constructor(_0x5b1c48){const _0x29f3fd=_0x23067d;super(_0x5b1c48),this[_0x29f3fd(0x15e)](_0x29f3fd(0x13c),!0x1),this[_0x29f3fd(0x15e)](_0x29f3fd(0x168),!0x1),this[_0x29f3fd(0x15e)](_0x29f3fd(0x17b),!0x0),this[_0x29f3fd(0x15e)](_0x29f3fd(0x12c),!0x0),this[_0x29f3fd(0x15e)](_0x29f3fd(0x15f),null),this[_0x29f3fd(0x15e)](_0x29f3fd(0x14f),null),this[_0x29f3fd(0x140)]=this[_0x29f3fd(0x170)](),this[_0x29f3fd(0x146)]=this[_0x29f3fd(0x165)](),this[_0x29f3fd(0x126)]=this[_0x29f3fd(0x158)](),this[_0x29f3fd(0x153)]=this[_0x29f3fd(0x13b)](),this[_0x29f3fd(0x154)]=this[_0x29f3fd(0x150)](),this[_0x29f3fd(0x140)][_0x29f3fd(0x172)][_0x29f3fd(0x157)](_0x29f3fd(0x14c))['to'](this,_0x29f3fd(0x17b),_0xe6de17=>_0xe6de17),this[_0x29f3fd(0x140)][_0x29f3fd(0x172)][_0x29f3fd(0x157)](_0x29f3fd(0x145))['to'](this,_0x29f3fd(0x12c),_0x2acaeb=>_0x2acaeb?this[_0x29f3fd(0x140)][_0x29f3fd(0x172)][_0x29f3fd(0x163)]:_0x987e38(this[_0x29f3fd(0x171)],_0x29f3fd(0x173))),this[_0x29f3fd(0x140)][_0x29f3fd(0x157)](_0x29f3fd(0x122))['to'](this,_0x29f3fd(0x12c),_0x5abafa=>_0x5abafa),this[_0x29f3fd(0x126)][_0x29f3fd(0x157)](_0x29f3fd(0x13e))['to'](this,_0x29f3fd(0x13c),_0x5c5f86=>_0x5c5f86),this[_0x29f3fd(0x126)][_0x29f3fd(0x157)](_0x29f3fd(0x174))['to'](this,_0x29f3fd(0x17b),_0x4f3cb3=>!_0x4f3cb3),this[_0x29f3fd(0x126)][_0x29f3fd(0x157)](_0x29f3fd(0x145))['to'](this,_0x29f3fd(0x13c),_0x349592=>_0x987e38(this[_0x29f3fd(0x171)],_0x349592?_0x29f3fd(0x167):_0x29f3fd(0x156))),this[_0x29f3fd(0x153)][_0x29f3fd(0x157)](_0x29f3fd(0x13e))['to'](this,_0x29f3fd(0x168),_0x4c9769=>_0x4c9769),this[_0x29f3fd(0x153)][_0x29f3fd(0x157)](_0x29f3fd(0x174))['to'](this,_0x29f3fd(0x17b),_0x297ed4=>!_0x297ed4),this[_0x29f3fd(0x153)][_0x29f3fd(0x157)](_0x29f3fd(0x145))['to'](this,_0x29f3fd(0x168),_0x204ca9=>_0x987e38(this[_0x29f3fd(0x171)],_0x204ca9?_0x29f3fd(0x13f):_0x29f3fd(0x14a))),this[_0x29f3fd(0x161)]({'tag':_0x29f3fd(0x12f),'attributes':{'class':[yo]},'children':[this[_0x29f3fd(0x140)],this[_0x29f3fd(0x146)],this[_0x29f3fd(0x126)],this[_0x29f3fd(0x153)],this[_0x29f3fd(0x154)]]}),this[_0x29f3fd(0x179)]=new _0x536faf(),_0x276fc9(this[_0x29f3fd(0x140)],this[_0x29f3fd(0x179)]);}[_0x23067d(0x177)](_0x4c190f,_0x20f00e){const _0x40501c=_0x23067d;if(this[_0x40501c(0x15e)](_0x40501c(0x17b),!(_0x20f00e&&_0x4c190f[_0x40501c(0x139)]<=0x1)),this[_0x40501c(0x179)][_0x40501c(0x14b)](),_0x4c190f?.[_0x40501c(0x139)])for(const _0xc58aff of _0x4c190f){const _0x449c58=new _0x1241d6({'label':_0xc58aff[_0x40501c(0x155)],'withText':!0x0,'role':_0x40501c(0x133),'id':_0xc58aff['id'],'model':_0xc58aff});_0x449c58[_0x40501c(0x157)](_0x40501c(0x13e))['to'](this,_0x40501c(0x15f),_0x6d64e1=>_0x6d64e1===_0xc58aff['id']),this[_0x40501c(0x179)][_0x40501c(0x132)]({'type':_0x40501c(0x169),'model':_0x449c58,'labelView':new Js(this[_0x40501c(0x171)],_0xc58aff)});}}[_0x23067d(0x15a)](_0x3a322e){const _0xcbc7ea=_0x23067d;this[_0xcbc7ea(0x15e)](_0xcbc7ea(0x13c),_0x3a322e);}[_0x23067d(0x141)](_0x56b59a){const _0x45c722=_0x23067d;this[_0x45c722(0x15e)](_0x45c722(0x168),_0x56b59a);}[_0x23067d(0x160)](_0x1a73a7){const _0x64640e=_0x23067d;if(!_0x1a73a7)return;this[_0x64640e(0x15f)]=_0x1a73a7['id'],this[_0x64640e(0x14f)]=_0x1a73a7[_0x64640e(0x155)]||_0x1a73a7['id'],this[_0x64640e(0x140)][_0x64640e(0x172)][_0x64640e(0x15e)](_0x64640e(0x163),_0x1a73a7[_0x64640e(0x155)]),this[_0x64640e(0x140)][_0x64640e(0x172)][_0x64640e(0x15e)](_0x64640e(0x145),_0x1a73a7[_0x64640e(0x155)]);const _0x4200c0=_0x1a73a7[_0x64640e(0x137)][_0x64640e(0x142)]?.[_0x64640e(0x14e)]??!0x1;this[_0x64640e(0x15e)](_0x64640e(0x13c),!0x1),this[_0x64640e(0x126)][_0x64640e(0x15e)](_0x64640e(0x13e),!0x1),this[_0x64640e(0x126)][_0x64640e(0x15e)](_0x64640e(0x122),_0x4200c0),this[_0x64640e(0x126)][_0x64640e(0x15e)](_0x64640e(0x14c),_0x4200c0);const _0x5b4561=_0x1a73a7[_0x64640e(0x137)][_0x64640e(0x180)]?.[_0x64640e(0x14e)]??!0x1;this[_0x64640e(0x15e)](_0x64640e(0x168),!0x1),this[_0x64640e(0x153)][_0x64640e(0x15e)](_0x64640e(0x13e),!0x1),this[_0x64640e(0x153)][_0x64640e(0x15e)](_0x64640e(0x122),_0x5b4561),this[_0x64640e(0x153)][_0x64640e(0x15e)](_0x64640e(0x14c),_0x5b4561);}[_0x23067d(0x17f)](){const _0x3bd0f6=_0x23067d;this[_0x3bd0f6(0x15e)](_0x3bd0f6(0x12c),!0x0),this[_0x3bd0f6(0x15e)](_0x3bd0f6(0x17b),!0x0);}[_0x23067d(0x124)](_0x1fe4b1){const _0x136264=_0x23067d;this[_0x136264(0x15e)](_0x136264(0x12c),!0x1),_0x1fe4b1&&this[_0x136264(0x15e)](_0x136264(0x17b),!0x1);}[_0x23067d(0x158)](){const _0x4f8a99=_0x23067d,_0x2ca694=new _0x4e05d0();return _0x2ca694[_0x4f8a99(0x15e)]({'label':_0x987e38(this[_0x4f8a99(0x171)],_0x4f8a99(0x138)),'icon':_0x50c83b,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x2ca694['on'](_0x4f8a99(0x17e),()=>{const _0x4870ec=_0x4f8a99;this[_0x4870ec(0x176)](_0x4870ec(0x134));}),_0x2ca694;}[_0x23067d(0x13b)](){const _0x5ad203=_0x23067d,_0x476310=new _0x4e05d0();return _0x476310[_0x5ad203(0x15e)]({'label':_0x987e38(this[_0x5ad203(0x171)],_0x5ad203(0x148)),'icon':_0x5e110f,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x476310['on'](_0x5ad203(0x17e),()=>{const _0x47d5bf=_0x5ad203;this[_0x47d5bf(0x176)](_0x47d5bf(0x125));}),_0x476310;}[_0x23067d(0x150)](){const _0x87a658=_0x23067d,_0x1ec238=new _0x4e05d0();return _0x1ec238[_0x87a658(0x15e)]({'label':_0x987e38(this[_0x87a658(0x171)],_0x87a658(0x164)),'icon':_0x54d5a5,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x987e38(this[_0x87a658(0x171)],_0x87a658(0x164)),'tooltipPosition':Fo}),_0x1ec238[_0x87a658(0x15d)]({'attributes':{'class':[Go]}}),_0x1ec238['on'](_0x87a658(0x17e),()=>{const _0x458c25=_0x87a658;console[_0x458c25(0x15c)](_0x458c25(0x166)),alert(_0x458c25(0x166));}),_0x1ec238;}[_0x23067d(0x170)](){const _0x412f81=_0x23067d,_0x28188c=_0x3ba751(this[_0x412f81(0x171)]);return _0x28188c[_0x412f81(0x15e)]({'panelPosition':'ne','class':[jo]}),_0x28188c[_0x412f81(0x172)][_0x412f81(0x15e)]({'label':_0x987e38(this[_0x412f81(0x171)],_0x412f81(0x12b)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x412f81(0x152)](_0x28188c,_0x412f81(0x17e),_0x4cd2c8=>{const _0x138a66=_0x412f81;this[_0x138a66(0x176)](_0x138a66(0x151),_0x4cd2c8[_0x138a66(0x129)][_0x138a66(0x13d)]);}),_0x28188c;}[_0x23067d(0x165)](){const _0x145082=_0x23067d,_0x136105=new Jo(this[_0x145082(0x171)]);return _0x136105[_0x145082(0x157)](_0x145082(0x128))['to'](this,_0x145082(0x14f),_0x479a94=>_0x479a94??''),_0x136105[_0x145082(0x157)](_0x145082(0x14c))['to'](this,_0x145082(0x17b),this,_0x145082(0x14f),(_0x1d8a55,_0x894ccb)=>!_0x1d8a55&&!_0x894ccb?.[_0x145082(0x15b)]()[_0x145082(0x181)](_0x145082(0x12e))),_0x136105;}}class Js extends _0x5aa600{constructor(_0x3d5f4a,_0x4b0e62){const _0x3527a0=_0x23067d;super();const _0x211c91=this[_0x3527a0(0x127)],_0x267164=this[_0x3527a0(0x123)]();this[_0x3527a0(0x161)]({'tag':_0x3527a0(0x12f),'attributes':{'class':['ck',_0x3527a0(0x16f)],'style':_0x211c91['to'](_0x3527a0(0x135)),'id':_0x211c91['to']('id')},'children':[{'tag':_0x3527a0(0x12f),'attributes':{'class':[Yo]},'children':[{'text':_0x211c91['to'](_0x3527a0(0x128))}]},{'tag':_0x3527a0(0x12f),'attributes':{'class':[qo]},'children':[{'tag':_0x3527a0(0x147),'children':[{'text':_0x4b0e62[_0x3527a0(0x175)]}]}]},{'tag':_0x3527a0(0x12f),'attributes':{'class':[zo]},'children':_0x267164}]}),_0x267164[_0x3527a0(0x120)](this[_0x3527a0(0x13a)](_0x3d5f4a,_0x50c83b,_0x3527a0(0x138),_0x4b0e62[_0x3527a0(0x137)][_0x3527a0(0x142)]?.[_0x3527a0(0x14e)]??!0x1)),_0x267164[_0x3527a0(0x120)](this[_0x3527a0(0x13a)](_0x3d5f4a,_0x5e110f,_0x3527a0(0x148),_0x4b0e62[_0x3527a0(0x137)][_0x3527a0(0x180)]?.[_0x3527a0(0x14e)]??!0x1));}[_0x23067d(0x13a)](_0x4badd6,_0xd51b6c,_0x4ad453,_0x3efd45){const _0x578c53=_0x23067d,_0x47aa48=new _0x1f8dd1();_0x47aa48[_0x578c53(0x131)]=_0xd51b6c;const _0x537001=new _0x421a9a(_0x4badd6);_0x537001[_0x578c53(0x161)]({'tag':_0x578c53(0x147),'children':[{'text':_0x987e38(_0x4badd6,_0x4ad453)+':\x20'}]});const _0x45ebfb=new _0x421a9a(_0x4badd6);return _0x45ebfb[_0x578c53(0x161)]({'tag':_0x578c53(0x147),'children':[{'text':_0x987e38(_0x4badd6,_0x3efd45?_0x578c53(0x16c):_0x578c53(0x162))}]}),[_0x47aa48,_0x537001,_0x45ebfb];}}class Jo extends _0x421a9a{constructor(_0x21a1c5){const _0x2d9735=_0x23067d;super(_0x21a1c5),this[_0x2d9735(0x15e)](_0x2d9735(0x128),void 0x0),this[_0x2d9735(0x15e)](_0x2d9735(0x14c),!0x0);const _0x4c2eba=this[_0x2d9735(0x127)];this[_0x2d9735(0x161)]({'tag':_0x2d9735(0x147),'attributes':{'class':['ck',_0x2d9735(0x178),_0x4c2eba['if'](_0x2d9735(0x14c),_0x2d9735(0x12d),_0x502f05=>!_0x502f05)]},'children':[{'text':_0x4c2eba['to'](_0x2d9735(0x128))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xef6b14=_0x436e;function _0x436e(_0x1f6e21,_0x2136e0){const _0x2bd206=_0x2bd2();return _0x436e=function(_0x436ec4,_0x2e5303){_0x436ec4=_0x436ec4-0x1ca;let _0x2cc643=_0x2bd206[_0x436ec4];return _0x2cc643;},_0x436e(_0x1f6e21,_0x2136e0);}(function(_0x10afd5,_0x1c2281){const _0x4c8fdb=_0x436e,_0x460229=_0x10afd5();while(!![]){try{const _0x4cd956=parseInt(_0x4c8fdb(0x1eb))/0x1*(parseInt(_0x4c8fdb(0x1d6))/0x2)+-parseInt(_0x4c8fdb(0x1f5))/0x3*(parseInt(_0x4c8fdb(0x1ef))/0x4)+parseInt(_0x4c8fdb(0x204))/0x5+-parseInt(_0x4c8fdb(0x1cd))/0x6*(-parseInt(_0x4c8fdb(0x1e0))/0x7)+-parseInt(_0x4c8fdb(0x1fa))/0x8+parseInt(_0x4c8fdb(0x1f4))/0x9+parseInt(_0x4c8fdb(0x1f8))/0xa*(parseInt(_0x4c8fdb(0x1fd))/0xb);if(_0x4cd956===_0x1c2281)break;else _0x460229['push'](_0x460229['shift']());}catch(_0x10d093){_0x460229['push'](_0x460229['shift']());}}}(_0x2bd2,0xe92f2));import{IconSubmit as _0x2d0e00}from'ckeditor5/src/icons.js';import{ButtonView as _0x4e7725,AutocompleteView as _0x22b7e6,createLabeledTextarea as _0x10406a}from'ckeditor5/src/ui.js';import{global as _0xcd581d,isVisible as _0x4615be,Rect as _0x93c2b6,ResizeObserver as _0x366a7b}from'ckeditor5/src/utils.js';import{getTranslation as _0x38d85c}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x10b965}from'./aichatpromptsuggestionslistview.js';import{escape as _0xf69b8c}from'es-toolkit/compat';function _0x2bd2(){const _0x203c21=['style','focusableChildren','maxRows','uiLanguageDirection','execute','37ArrPpk','fieldView','_setUpAddContextButtonPositioning','rtl','283796gSTIJk','setIsUploadInProgress','left','element','queryView','4762737bfZART','27QLpgyv','destroy','excludeScrollbarsAndBorders','470nZyriM','right','10782912DJjJfV','sendUserMessage','hasError','66044NjfDmm','trim','fieldWrapperChildren','px\x20-\x20var(--ck-spacing-tiny))','ck-ai-chat__prompt-input','submitButtonView','isUploadInProgress','2219145eoOpHq','minRows','extendTemplate','enter','placeholder','bind','AI_CHAT_PROMPT_EMPTY_ERROR','render','MAX_ROWS','MIN_ROWS','requestAnimationFrame','732ZOPEio','locale','keystrokes','ck-ai-chat__prompt-submit-button','width','target','reset','isEnabled','value','68790jMhcYB','add','setPlaceholderText','calc(','_createSubmitButton','_addContextButtonView','update','set','AI_CHAT_LABEL_SUBMIT','fire','23737liYKrI','isEmpty','window','_queryViewResizeObserver','submit','errorText'];_0x2bd2=function(){return _0x203c21;};return _0x2bd2();}export class AIChatPromptInputView extends _0x22b7e6{[_0xef6b14(0x202)];static [_0xef6b14(0x1cb)]=0x1;static [_0xef6b14(0x1ca)]=0xc;[_0xef6b14(0x1db)];[_0xef6b14(0x1e3)];constructor(_0x1a7b78,_0xaac3d2){const _0x301cc1=_0xef6b14;super(_0x1a7b78,{'queryView':{'label':'','creator':_0x10406a,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x10b965(_0x1a7b78),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x301cc1(0x1dd)](_0x301cc1(0x1e1),!0x0),this[_0x301cc1(0x1dd)](_0x301cc1(0x203),!0x1),this[_0x301cc1(0x1db)]=_0xaac3d2,this[_0x301cc1(0x1e3)]=null,this[_0x301cc1(0x1f3)][_0x301cc1(0x1ec)][_0x301cc1(0x205)]=AIChatPromptInputView[_0x301cc1(0x1cb)],this[_0x301cc1(0x1f3)][_0x301cc1(0x1ec)][_0x301cc1(0x1e8)]=AIChatPromptInputView[_0x301cc1(0x1ca)],this[_0x301cc1(0x1f3)][_0x301cc1(0x1ff)][_0x301cc1(0x1d7)](this[_0x301cc1(0x1db)]),this[_0x301cc1(0x1ed)](),this[_0x301cc1(0x206)]({'attributes':{'class':['ck',_0x301cc1(0x201)]}}),this[_0x301cc1(0x202)]=this[_0x301cc1(0x1da)](),this[_0x301cc1(0x202)][_0x301cc1(0x209)](_0x301cc1(0x1d4))['to'](this,_0x301cc1(0x1e1),this,_0x301cc1(0x203),(_0x127f11,_0x4e31d6)=>!_0x127f11&&!_0x4e31d6),this[_0x301cc1(0x1e7)][_0x301cc1(0x1d7)](this[_0x301cc1(0x202)]);}[_0xef6b14(0x20b)](){const _0xca856f=_0xef6b14;super[_0xca856f(0x20b)](),this[_0xca856f(0x1f3)][_0xca856f(0x1ff)][_0xca856f(0x1d7)](this[_0xca856f(0x202)]),this[_0xca856f(0x1cf)][_0xca856f(0x1dd)](_0xca856f(0x207),(_0x2ea0bf,_0x4403ad)=>{const _0x3efb7e=_0xca856f;this[_0x3efb7e(0x203)]||this[_0x3efb7e(0x1e1)]||_0x2ea0bf[_0x3efb7e(0x1d2)]==this[_0x3efb7e(0x1f3)][_0x3efb7e(0x1ec)][_0x3efb7e(0x1f2)]&&(this[_0x3efb7e(0x1e4)](),_0x4403ad());}),this[_0xca856f(0x1f3)][_0xca856f(0x1ec)]['on'](_0xca856f(0x1dc),()=>{const _0x11a90c=_0xca856f;this[_0x11a90c(0x1e1)]=''===this[_0x11a90c(0x1f3)][_0x11a90c(0x1ec)][_0x11a90c(0x1f2)][_0x11a90c(0x1d5)]?.[_0x11a90c(0x1fe)]();});}[_0xef6b14(0x1f6)](){const _0x564ce0=_0xef6b14;super[_0x564ce0(0x1f6)](),this[_0x564ce0(0x1e3)]&&this[_0x564ce0(0x1e3)][_0x564ce0(0x1f6)]();}[_0xef6b14(0x1e4)](){const _0x5cec03=_0xef6b14,_0x168076=this[_0x5cec03(0x1f3)][_0x5cec03(0x1ec)][_0x5cec03(0x1f2)][_0x5cec03(0x1d5)]?.[_0x5cec03(0x1fe)]();if(!_0x168076)return this[_0x5cec03(0x1f3)][_0x5cec03(0x1e5)]=_0x38d85c(this[_0x5cec03(0x1ce)],_0x5cec03(0x20a)),void(this[_0x5cec03(0x1f3)][_0x5cec03(0x1ec)][_0x5cec03(0x1fc)]=!0x0);this[_0x5cec03(0x1f3)][_0x5cec03(0x1ec)][_0x5cec03(0x1fc)]=!0x1;const _0x44828a=_0xf69b8c(_0x168076);this[_0x5cec03(0x1df)](_0x5cec03(0x1fb),_0x44828a),this[_0x5cec03(0x1f3)][_0x5cec03(0x1ec)][_0x5cec03(0x1d3)]();}[_0xef6b14(0x1d8)](_0x2528c0){const _0x462867=_0xef6b14;this[_0x462867(0x1f3)][_0x462867(0x1ec)][_0x462867(0x1dd)](_0x462867(0x208),_0x2528c0);}[_0xef6b14(0x1da)](){const _0x2eaf97=_0xef6b14,_0x14c65f=new _0x4e7725(this[_0x2eaf97(0x1ce)]);return _0x14c65f[_0x2eaf97(0x1dd)]({'icon':_0x2d0e00,'label':_0x38d85c(this[_0x2eaf97(0x1ce)],_0x2eaf97(0x1de)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2eaf97(0x1d0),'isEnabled':!0x1}),_0x14c65f['on'](_0x2eaf97(0x1ea),()=>{const _0x149a37=_0x2eaf97;this[_0x149a37(0x1e4)]();}),_0x14c65f;}[_0xef6b14(0x1f0)](_0x65f1ca){const _0x232c28=_0xef6b14;this[_0x232c28(0x203)]=_0x65f1ca;}[_0xef6b14(0x1ed)](){const _0x37a6da=_0xef6b14,_0x47d7ae=this[_0x37a6da(0x1ce)],_0x457f44=()=>{const _0x1ccaac=_0x37a6da;_0xcd581d[_0x1ccaac(0x1e2)][_0x1ccaac(0x1cc)](()=>{const _0x1e9e24=_0x1ccaac;if(_0x4615be(this[_0x1e9e24(0x1f2)])){const _0x415a7f=new _0x93c2b6(this[_0x1e9e24(0x1f3)][_0x1e9e24(0x1ec)][_0x1e9e24(0x1f2)]),_0x4c5bfb=new _0x93c2b6(this[_0x1e9e24(0x1db)][_0x1e9e24(0x1f2)]),_0x1b0549=_0x415a7f[_0x1e9e24(0x1d1)],_0x337a1a=_0x1e9e24(0x1ee)===_0x47d7ae[_0x1e9e24(0x1e9)]?_0x1e9e24(0x1f9):_0x1e9e24(0x1f1);_0x415a7f[_0x1e9e24(0x1f7)]();const _0x323043=_0x1b0549-_0x415a7f[_0x1e9e24(0x1d1)]+0x1;this[_0x1e9e24(0x1db)][_0x1e9e24(0x1f2)][_0x1e9e24(0x1e6)][_0x337a1a]=_0x1e9e24(0x1d9)+(_0x1b0549-_0x4c5bfb[_0x1e9e24(0x1d1)]-_0x323043)+_0x1e9e24(0x200);}});};this[_0x37a6da(0x1f3)][_0x37a6da(0x1ec)]['on'](_0x37a6da(0x1dc),_0x457f44),this['on'](_0x37a6da(0x20b),()=>{const _0x488f78=_0x37a6da;_0x457f44(),this[_0x488f78(0x1e3)]=new _0x366a7b(this[_0x488f78(0x1f3)][_0x488f78(0x1ec)][_0x488f78(0x1f2)],()=>{_0x457f44();});});}}
23
+ const _0x29c8a2=_0x18cd;(function(_0x29f4ea,_0x3c39bb){const _0x747b2c=_0x18cd,_0x29a8c7=_0x29f4ea();while(!![]){try{const _0x30fc8e=-parseInt(_0x747b2c(0x12c))/0x1*(-parseInt(_0x747b2c(0x139))/0x2)+parseInt(_0x747b2c(0x132))/0x3+parseInt(_0x747b2c(0x120))/0x4+parseInt(_0x747b2c(0x140))/0x5+parseInt(_0x747b2c(0x113))/0x6+parseInt(_0x747b2c(0x13a))/0x7*(parseInt(_0x747b2c(0x12b))/0x8)+parseInt(_0x747b2c(0x13d))/0x9*(-parseInt(_0x747b2c(0x123))/0xa);if(_0x30fc8e===_0x3c39bb)break;else _0x29a8c7['push'](_0x29a8c7['shift']());}catch(_0x2d20e8){_0x29a8c7['push'](_0x29a8c7['shift']());}}}(_0x4ff3,0xd286d));import{IconSubmit as _0x4dd20c}from'ckeditor5/src/icons.js';import{ButtonView as _0xac7471,AutocompleteView as _0x362bd1,createLabeledTextarea as _0x195b8b}from'ckeditor5/src/ui.js';import{global as _0x421589,isVisible as _0x71a642,Rect as _0x459d62,ResizeObserver as _0x3ca444}from'ckeditor5/src/utils.js';import{getTranslation as _0x24f55f}from'../../../aicore/utils/common-translations.js';function _0x4ff3(){const _0x140cc3=['update','isEnabled','uiLanguageDirection','_addContextButtonView','submit','2838778nseRbs','161QUQbuB','fieldView','focusableChildren','28040094fFugoJ','isEmpty','calc(','2022340LGRijh','minRows','extendTemplate','maxRows','render','AI_CHAT_LABEL_SUBMIT','keystrokes','submitButtonView','MIN_ROWS','style','AI_CHAT_PROMPT_EMPTY_ERROR','window','destroy','enter','setIsUploadInProgress','bind','setPlaceholderText','excludeScrollbarsAndBorders','_createSubmitButton','element','6844590KbvWyF','requestAnimationFrame','placeholder','set','_queryViewResizeObserver','sendUserMessage','right','trim','fire','_setUpAddContextButtonPositioning','execute','rtl','errorText','1609376owFkOX','width','ck-ai-chat__prompt-input','10eMmRyz','value','add','MAX_ROWS','queryView','left','reset','target','155952QkIvnx','1yfTjHg','px\x20-\x20var(--ck-spacing-tiny))','locale','hasError','ck-ai-chat__prompt-submit-button','fieldWrapperChildren','487665eJimnq','isUploadInProgress'];_0x4ff3=function(){return _0x140cc3;};return _0x4ff3();}function _0x18cd(_0x4616ec,_0x2dd9b9){const _0x4ff39f=_0x4ff3();return _0x18cd=function(_0x18cd6e,_0x500afe){_0x18cd6e=_0x18cd6e-0x105;let _0x1a735d=_0x4ff39f[_0x18cd6e];return _0x1a735d;},_0x18cd(_0x4616ec,_0x2dd9b9);}import{AIChatPromptSuggestionsListView as _0x333bb5}from'./aichatpromptsuggestionslistview.js';import{escape as _0x25687d}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x362bd1{[_0x29c8a2(0x106)];static [_0x29c8a2(0x107)]=0x1;static [_0x29c8a2(0x126)]=0xc;[_0x29c8a2(0x137)];[_0x29c8a2(0x117)];constructor(_0x30e488,_0xf75216){const _0x3fac03=_0x29c8a2;super(_0x30e488,{'queryView':{'label':'','creator':_0x195b8b,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x333bb5(_0x30e488),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x3fac03(0x116)](_0x3fac03(0x13e),!0x0),this[_0x3fac03(0x116)](_0x3fac03(0x133),!0x1),this[_0x3fac03(0x137)]=_0xf75216,this[_0x3fac03(0x117)]=null,this[_0x3fac03(0x127)][_0x3fac03(0x13b)][_0x3fac03(0x141)]=AIChatPromptInputView[_0x3fac03(0x107)],this[_0x3fac03(0x127)][_0x3fac03(0x13b)][_0x3fac03(0x143)]=AIChatPromptInputView[_0x3fac03(0x126)],this[_0x3fac03(0x127)][_0x3fac03(0x131)][_0x3fac03(0x125)](this[_0x3fac03(0x137)]),this[_0x3fac03(0x11c)](),this[_0x3fac03(0x142)]({'attributes':{'class':['ck',_0x3fac03(0x122)]}}),this[_0x3fac03(0x106)]=this[_0x3fac03(0x111)](),this[_0x3fac03(0x106)][_0x3fac03(0x10e)](_0x3fac03(0x135))['to'](this,_0x3fac03(0x13e),this,_0x3fac03(0x133),(_0xd1f294,_0x20746d)=>!_0xd1f294&&!_0x20746d),this[_0x3fac03(0x13c)][_0x3fac03(0x125)](this[_0x3fac03(0x106)]);}[_0x29c8a2(0x144)](){const _0x3934c5=_0x29c8a2;super[_0x3934c5(0x144)](),this[_0x3934c5(0x127)][_0x3934c5(0x131)][_0x3934c5(0x125)](this[_0x3934c5(0x106)]),this[_0x3934c5(0x105)][_0x3934c5(0x116)](_0x3934c5(0x10c),(_0x30248a,_0x58de50)=>{const _0x172bab=_0x3934c5;this[_0x172bab(0x133)]||this[_0x172bab(0x13e)]||_0x30248a[_0x172bab(0x12a)]==this[_0x172bab(0x127)][_0x172bab(0x13b)][_0x172bab(0x112)]&&(this[_0x172bab(0x138)](),_0x58de50());}),this[_0x3934c5(0x127)][_0x3934c5(0x13b)]['on'](_0x3934c5(0x134),()=>{const _0x3ec347=_0x3934c5;this[_0x3ec347(0x13e)]=''===this[_0x3ec347(0x127)][_0x3ec347(0x13b)][_0x3ec347(0x112)][_0x3ec347(0x124)]?.[_0x3ec347(0x11a)]();});}[_0x29c8a2(0x10b)](){const _0x403bb7=_0x29c8a2;super[_0x403bb7(0x10b)](),this[_0x403bb7(0x117)]&&this[_0x403bb7(0x117)][_0x403bb7(0x10b)]();}[_0x29c8a2(0x138)](){const _0x2f2ba5=_0x29c8a2,_0x3735dd=this[_0x2f2ba5(0x127)][_0x2f2ba5(0x13b)][_0x2f2ba5(0x112)][_0x2f2ba5(0x124)]?.[_0x2f2ba5(0x11a)]();if(!_0x3735dd)return this[_0x2f2ba5(0x127)][_0x2f2ba5(0x11f)]=_0x24f55f(this[_0x2f2ba5(0x12e)],_0x2f2ba5(0x109)),void(this[_0x2f2ba5(0x127)][_0x2f2ba5(0x13b)][_0x2f2ba5(0x12f)]=!0x0);this[_0x2f2ba5(0x127)][_0x2f2ba5(0x13b)][_0x2f2ba5(0x12f)]=!0x1;const _0x220d47=_0x25687d(_0x3735dd);this[_0x2f2ba5(0x11b)](_0x2f2ba5(0x118),_0x220d47),this[_0x2f2ba5(0x127)][_0x2f2ba5(0x13b)][_0x2f2ba5(0x129)]();}[_0x29c8a2(0x10f)](_0x5ae705){const _0x17511c=_0x29c8a2;this[_0x17511c(0x127)][_0x17511c(0x13b)][_0x17511c(0x116)](_0x17511c(0x115),_0x5ae705);}[_0x29c8a2(0x111)](){const _0x37a215=_0x29c8a2,_0xf6587a=new _0xac7471(this[_0x37a215(0x12e)]);return _0xf6587a[_0x37a215(0x116)]({'icon':_0x4dd20c,'label':_0x24f55f(this[_0x37a215(0x12e)],_0x37a215(0x145)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x37a215(0x130),'isEnabled':!0x1}),_0xf6587a['on'](_0x37a215(0x11d),()=>{const _0x22badf=_0x37a215;this[_0x22badf(0x138)]();}),_0xf6587a;}[_0x29c8a2(0x10d)](_0x25af99){const _0x648640=_0x29c8a2;this[_0x648640(0x133)]=_0x25af99;}[_0x29c8a2(0x11c)](){const _0x4f1ab2=_0x29c8a2,_0x5e0f8b=this[_0x4f1ab2(0x12e)],_0x52e2cb=()=>{const _0x46795=_0x4f1ab2;_0x421589[_0x46795(0x10a)][_0x46795(0x114)](()=>{const _0x2c0880=_0x46795;if(_0x71a642(this[_0x2c0880(0x112)])){const _0x4b07df=new _0x459d62(this[_0x2c0880(0x127)][_0x2c0880(0x13b)][_0x2c0880(0x112)]),_0x3a513f=new _0x459d62(this[_0x2c0880(0x137)][_0x2c0880(0x112)]),_0x20b219=_0x4b07df[_0x2c0880(0x121)],_0x5a0040=_0x2c0880(0x11e)===_0x5e0f8b[_0x2c0880(0x136)]?_0x2c0880(0x119):_0x2c0880(0x128);_0x4b07df[_0x2c0880(0x110)]();const _0x2125f4=_0x20b219-_0x4b07df[_0x2c0880(0x121)]+0x1;this[_0x2c0880(0x137)][_0x2c0880(0x112)][_0x2c0880(0x108)][_0x5a0040]=_0x2c0880(0x13f)+(_0x20b219-_0x3a513f[_0x2c0880(0x121)]-_0x2125f4)+_0x2c0880(0x12d);}});};this[_0x4f1ab2(0x127)][_0x4f1ab2(0x13b)]['on'](_0x4f1ab2(0x134),_0x52e2cb),this['on'](_0x4f1ab2(0x144),()=>{const _0x57ece6=_0x4f1ab2;_0x52e2cb(),this[_0x57ece6(0x117)]=new _0x3ca444(this[_0x57ece6(0x127)][_0x57ece6(0x13b)][_0x57ece6(0x112)],()=>{_0x52e2cb();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1672cc=_0xd13b;function _0xd13b(_0x5f0822,_0x3df0d7){const _0x5c0c41=_0x5c0c();return _0xd13b=function(_0xd13ba1,_0x3ff8ad){_0xd13ba1=_0xd13ba1-0x183;let _0x415c3b=_0x5c0c41[_0xd13ba1];return _0x415c3b;},_0xd13b(_0x5f0822,_0x3df0d7);}(function(_0x1c8f0f,_0x26b098){const _0x100e5e=_0xd13b,_0x40f1d4=_0x1c8f0f();while(!![]){try{const _0x2f9f0a=parseInt(_0x100e5e(0x18d))/0x1+parseInt(_0x100e5e(0x187))/0x2*(parseInt(_0x100e5e(0x183))/0x3)+-parseInt(_0x100e5e(0x186))/0x4*(parseInt(_0x100e5e(0x18c))/0x5)+-parseInt(_0x100e5e(0x184))/0x6+parseInt(_0x100e5e(0x189))/0x7+parseInt(_0x100e5e(0x18b))/0x8+-parseInt(_0x100e5e(0x18a))/0x9;if(_0x2f9f0a===_0x26b098)break;else _0x40f1d4['push'](_0x40f1d4['shift']());}catch(_0x22e2bc){_0x40f1d4['push'](_0x40f1d4['shift']());}}}(_0x5c0c,0xd2023));import{ListView as _0x40a19c}from'ckeditor5/src/ui.js';function _0x5c0c(){const _0x5b8968=['689510LZMKjb','filter','4897980rWdCZp','9190452PAYfDg','length','4ZRCDJU','2KyZHJC','items','7343084YjETRB','9230040QxijRL','516624XWoces','91315GCOkGc'];_0x5c0c=function(){return _0x5b8968;};return _0x5c0c();}export class AIChatPromptSuggestionsListView extends _0x40a19c{[_0x1672cc(0x18e)](){const _0x2ecffc=_0x1672cc;let _0x1a768d=0x0;for(const _0x3a84ca of this[_0x2ecffc(0x188)])_0x1a768d+=_0x3a84ca[_0x2ecffc(0x188)][_0x2ecffc(0x185)];return{'resultsCount':_0x1a768d,'totalItemsCount':_0x1a768d};}}
23
+ const _0x3e253c=_0x4ada;(function(_0x4931eb,_0x482903){const _0x33cf18=_0x4ada,_0x505501=_0x4931eb();while(!![]){try{const _0x5a621e=parseInt(_0x33cf18(0xa5))/0x1*(parseInt(_0x33cf18(0x9d))/0x2)+-parseInt(_0x33cf18(0xa2))/0x3*(parseInt(_0x33cf18(0xa0))/0x4)+parseInt(_0x33cf18(0x9f))/0x5*(-parseInt(_0x33cf18(0xa6))/0x6)+-parseInt(_0x33cf18(0xa7))/0x7*(-parseInt(_0x33cf18(0xa4))/0x8)+-parseInt(_0x33cf18(0x9c))/0x9+-parseInt(_0x33cf18(0xa9))/0xa+parseInt(_0x33cf18(0x9e))/0xb;if(_0x5a621e===_0x482903)break;else _0x505501['push'](_0x505501['shift']());}catch(_0x2cac21){_0x505501['push'](_0x505501['shift']());}}}(_0x421b,0xb903e));function _0x421b(){const _0x5efd71=['523775seosXR','items','3916090tPwWtC','8269479MYpZwx','2lMVzGV','17765462soVLHj','3493410WYmXeb','5812LjtnMX','filter','2229UWFeES','length','136WGwOAK','959456gFkARW','6hSSblK'];_0x421b=function(){return _0x5efd71;};return _0x421b();}import{ListView as _0x9bc3d7}from'ckeditor5/src/ui.js';function _0x4ada(_0x335304,_0x308a42){const _0x421b32=_0x421b();return _0x4ada=function(_0x4ada43,_0x4517c6){_0x4ada43=_0x4ada43-0x9c;let _0xb371c=_0x421b32[_0x4ada43];return _0xb371c;},_0x4ada(_0x335304,_0x308a42);}export class AIChatPromptSuggestionsListView extends _0x9bc3d7{[_0x3e253c(0xa1)](){const _0x11204c=_0x3e253c;let _0x15bbef=0x0;for(const _0x1c5fc3 of this[_0x11204c(0xa8)])_0x15bbef+=_0x1c5fc3[_0x11204c(0xa8)][_0x11204c(0xa3)];return{'resultsCount':_0x15bbef,'totalItemsCount':_0x15bbef};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5108cc=_0x59cb;function _0x59cb(_0x295055,_0x573266){const _0x12733f=_0x1273();return _0x59cb=function(_0x59cb54,_0x404e90){_0x59cb54=_0x59cb54-0xd5;let _0x1546b0=_0x12733f[_0x59cb54];return _0x1546b0;},_0x59cb(_0x295055,_0x573266);}(function(_0x342a29,_0x377856){const _0x2cc776=_0x59cb,_0x1c096d=_0x342a29();while(!![]){try{const _0x16891b=parseInt(_0x2cc776(0xdb))/0x1+parseInt(_0x2cc776(0xd6))/0x2+-parseInt(_0x2cc776(0xef))/0x3*(parseInt(_0x2cc776(0xda))/0x4)+-parseInt(_0x2cc776(0xd8))/0x5+parseInt(_0x2cc776(0xdc))/0x6*(-parseInt(_0x2cc776(0xe1))/0x7)+parseInt(_0x2cc776(0xe0))/0x8+parseInt(_0x2cc776(0xf5))/0x9*(parseInt(_0x2cc776(0xe4))/0xa);if(_0x16891b===_0x377856)break;else _0x1c096d['push'](_0x1c096d['shift']());}catch(_0x18683e){_0x1c096d['push'](_0x1c096d['shift']());}}}(_0x1273,0x48dc4));import{ListView as _0x58096c}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x3f809d}from'./aichatresourcelistitemview.js';const oc=_0x5108cc(0xd5);export class AIChatContextResourcesListView extends _0x58096c{[_0x5108cc(0xd7)];constructor(_0x3d6d6a,_0x4ed576){const _0x247477=_0x5108cc;super(_0x3d6d6a),this[_0x247477(0xd7)]=_0x4ed576,this[_0x247477(0xf4)]({'attributes':{'class':[oc]}});}[_0x5108cc(0xf3)](_0x21fe29,_0x545528){const _0x39982b=_0x5108cc;this[_0x39982b(0xe2)][_0x39982b(0xe3)]();let _0x122712=_0x21fe29;if(this[_0x39982b(0xd7)][_0x39982b(0xee)]&&_0x545528&&''!==_0x545528[_0x39982b(0xf0)]()){const _0x26ba70=new RegExp(_0x545528[_0x39982b(0xed)](/[.*+?^${}()|[\]\\]/g,_0x39982b(0xe9)),'gi');_0x122712=_0x21fe29[_0x39982b(0xe6)](_0xf1407a=>_0x26ba70[_0x39982b(0xdd)](_0xf1407a[_0x39982b(0xe7)]));}for(const _0x24e391 of _0x122712){const _0x137665=new _0x3f809d(this[_0x39982b(0xf1)],_0x24e391);_0x137665['on'](_0x39982b(0xd9),()=>{const _0x1163d4=_0x39982b;this[_0x1163d4(0xec)](this[_0x1163d4(0xd7)],_0x24e391);}),this[_0x39982b(0xe2)][_0x39982b(0xe5)](_0x137665);}this[_0x39982b(0xd7)][_0x39982b(0xee)]&&this[_0x39982b(0xde)](_0x545528);}[_0x5108cc(0xde)](_0x527a00){const _0x118c61=_0x5108cc;this[_0x118c61(0xd7)][_0x118c61(0xee)]&&this[_0x118c61(0xe2)][_0x118c61(0xf2)](_0x3f8b52=>{const _0x4a6bb0=_0x118c61;_0x3f8b52[_0x4a6bb0(0xde)](_0x527a00);});}[_0x5108cc(0xe8)](_0x5afeba,_0x1d99bd){const _0x5b2636=_0x5108cc;for(const _0x344f8e of this[_0x5b2636(0xe2)]){const _0x5e68bc=_0x344f8e;_0x5e68bc[_0x5b2636(0xdf)]['id']===_0x5afeba&&_0x5e68bc[_0x5b2636(0xe8)](_0x1d99bd);}}[_0x5108cc(0xec)](_0x39b5c5,_0x9c96fa){const _0x30752c=_0x5108cc;this[_0x30752c(0xea)](_0x30752c(0xeb),{'source':_0x39b5c5,'resource':_0x9c96fa});}}function _0x1273(){const _0x68805f=['135hAmFmL','ck-ai-chat-resources__list','602692PPGKbL','_source','2744820wgHpmz','execute','8nBNChS','486367vgdblX','41988mrHsoj','test','highlightText','resource','700568ESGzvQ','483hIjWIE','items','clear','327160UxXZWP','add','filter','label','updateResourceState','\x5c$&','fire','addResourceToContext','_handleResourceSelection','replace','useDefaultFiltering','53643IqJGtJ','trim','locale','forEach','setResources','extendTemplate'];_0x1273=function(){return _0x68805f;};return _0x1273();}
23
+ const _0x547e6b=_0x2fb4;function _0x513c(){const _0x51f4d0=['addResourceToContext','setResources','forEach','test','703326EWQprA','useDefaultFiltering','fire','8443860PAqYTz','replace','14191240rxuEYD','\x5c$&','execute','label','_handleResourceSelection','extendTemplate','add','5368005DatJea','filter','1975388yJIRsV','highlightText','resource','7WfYjhZ','_source','1281073sFlwZq','items','updateResourceState','ck-ai-chat-resources__list','locale','clear','trim','3266754Fafrgr'];_0x513c=function(){return _0x51f4d0;};return _0x513c();}(function(_0x329e4c,_0x3f1834){const _0x53a353=_0x2fb4,_0x4cef1d=_0x329e4c();while(!![]){try{const _0xe0b99f=parseInt(_0x53a353(0x1d7))/0x1+-parseInt(_0x53a353(0x1e3))/0x2+parseInt(_0x53a353(0x1de))/0x3+-parseInt(_0x53a353(0x1d2))/0x4+-parseInt(_0x53a353(0x1d0))/0x5+-parseInt(_0x53a353(0x1e6))/0x6*(parseInt(_0x53a353(0x1d5))/0x7)+parseInt(_0x53a353(0x1e8))/0x8;if(_0xe0b99f===_0x3f1834)break;else _0x4cef1d['push'](_0x4cef1d['shift']());}catch(_0x542d7a){_0x4cef1d['push'](_0x4cef1d['shift']());}}}(_0x513c,0xc7943));function _0x2fb4(_0x1e889d,_0x14c1d0){const _0x513c65=_0x513c();return _0x2fb4=function(_0x2fb493,_0x561475){_0x2fb493=_0x2fb493-0x1cd;let _0x4d7907=_0x513c65[_0x2fb493];return _0x4d7907;},_0x2fb4(_0x1e889d,_0x14c1d0);}import{ListView as _0x4027d2}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x32f35b}from'./aichatresourcelistitemview.js';const sc=_0x547e6b(0x1da);export class AIChatContextResourcesListView extends _0x4027d2{[_0x547e6b(0x1d6)];constructor(_0x3b3113,_0x10a5dc){const _0x3f4906=_0x547e6b;super(_0x3b3113),this[_0x3f4906(0x1d6)]=_0x10a5dc,this[_0x3f4906(0x1ce)]({'attributes':{'class':[sc]}});}[_0x547e6b(0x1e0)](_0x32a115,_0x52a433){const _0x1a658f=_0x547e6b;this[_0x1a658f(0x1d8)][_0x1a658f(0x1dc)]();let _0x2badfa=_0x32a115;if(this[_0x1a658f(0x1d6)][_0x1a658f(0x1e4)]&&_0x52a433&&''!==_0x52a433[_0x1a658f(0x1dd)]()){const _0x3664fc=new RegExp(_0x52a433[_0x1a658f(0x1e7)](/[.*+?^${}()|[\]\\]/g,_0x1a658f(0x1e9)),'gi');_0x2badfa=_0x32a115[_0x1a658f(0x1d1)](_0x4e5213=>_0x3664fc[_0x1a658f(0x1e2)](_0x4e5213[_0x1a658f(0x1eb)]));}for(const _0x10413a of _0x2badfa){const _0x1fe557=new _0x32f35b(this[_0x1a658f(0x1db)],_0x10413a);_0x1fe557['on'](_0x1a658f(0x1ea),()=>{const _0x7be742=_0x1a658f;this[_0x7be742(0x1cd)](this[_0x7be742(0x1d6)],_0x10413a);}),this[_0x1a658f(0x1d8)][_0x1a658f(0x1cf)](_0x1fe557);}this[_0x1a658f(0x1d6)][_0x1a658f(0x1e4)]&&this[_0x1a658f(0x1d3)](_0x52a433);}[_0x547e6b(0x1d3)](_0x5a1bbb){const _0x24db2f=_0x547e6b;this[_0x24db2f(0x1d6)][_0x24db2f(0x1e4)]&&this[_0x24db2f(0x1d8)][_0x24db2f(0x1e1)](_0x417187=>{const _0x29f118=_0x24db2f;_0x417187[_0x29f118(0x1d3)](_0x5a1bbb);});}[_0x547e6b(0x1d9)](_0x398210,_0x123571){const _0x42bb1e=_0x547e6b;for(const _0x2991f4 of this[_0x42bb1e(0x1d8)]){const _0x122b72=_0x2991f4;_0x122b72[_0x42bb1e(0x1d4)]['id']===_0x398210&&_0x122b72[_0x42bb1e(0x1d9)](_0x123571);}}[_0x547e6b(0x1cd)](_0x31b869,_0x1542db){const _0x320851=_0x547e6b;this[_0x320851(0x1e5)](_0x320851(0x1df),{'source':_0x31b869,'resource':_0x1542db});}}