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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiassistant/aiassistantediting.js +1 -1
  6. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  7. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  8. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  9. package/src/aiassistant/ui/form/aiformview.js +1 -1
  10. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  11. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  12. package/src/aiballoon/aiballoon.js +1 -1
  13. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  14. package/src/aiballoon/ui/aiballoonview.js +1 -1
  15. package/src/aichat/aichat.js +1 -1
  16. package/src/aichat/aichatcontroller.js +1 -1
  17. package/src/aichat/aichatui.js +1 -1
  18. package/src/aichat/model/aichatcontext.js +1 -1
  19. package/src/aichat/model/aichatconversation.js +1 -1
  20. package/src/aichat/model/aichatinteraction.js +1 -1
  21. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  22. package/src/aichat/ui/aichatfeedview.js +1 -1
  23. package/src/aichat/ui/aichatview.js +1 -1
  24. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  25. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  26. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  27. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  28. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  29. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  30. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  31. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  32. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  33. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  34. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  35. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  36. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  37. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  38. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  39. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  40. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  41. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  42. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  43. package/src/aichat/utils/eventnames.js +1 -1
  44. package/src/aichathistory/aichathistory.js +1 -1
  45. package/src/aichathistory/aichathistorycontroller.js +1 -1
  46. package/src/aichathistory/aichathistoryui.js +1 -1
  47. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  48. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  49. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  50. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  51. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  52. package/src/aicore/aiconnector.js +1 -1
  53. package/src/aicore/aiediting.js +1 -1
  54. package/src/aicore/model/aimodels.js +1 -1
  55. package/src/aicore/model/aireply.js +1 -1
  56. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  57. package/src/aicore/pipeline/airesponseparser.js +2 -2
  58. package/src/aicore/ui/aidisclaimerview.js +1 -1
  59. package/src/aicore/ui/aiskeleton.js +1 -1
  60. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  61. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  62. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  63. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  64. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  65. package/src/aicore/utils/documentrange.js +1 -1
  66. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  67. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  68. package/src/aicore/utils/htmlparser.js +1 -1
  69. package/src/aicore/utils/htmlstreamer.js +1 -1
  70. package/src/aiquickactions/aiquickactionsui.js +1 -1
  71. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  72. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  73. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  74. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  75. package/src/aireviewmode/aireviewmode.js +1 -1
  76. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  77. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  78. package/src/aireviewmode/aireviewmodeui.js +1 -1
  79. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  80. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  81. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  82. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  83. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  84. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  85. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  86. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  87. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  88. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  89. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  90. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  91. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  92. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  93. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  94. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  95. package/src/aitabs/aitabs.js +1 -1
  96. package/src/aitabs/tabs/aitabsview.js +1 -1
  97. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x336f(){const _0x285d88=['_createUrlInputField','12582900TeBpfx','tab','fieldView','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','ck-labeled-field-view_empty','AI_CHAT_CONTEXT_URL_ADD_URL','shift+tab','trim','_createConfirmButton','ck-button-icon\x20ck-button-back','_isValidUrl','AI_CHAT_CONTEXT_URL_INVALID_ERROR','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','input','children','1432632WESBDR','form','61604vyHziA','setTemplate','locale','ck-button-icon','stop','3709062ekUjsz','cancel','focusCycler','_setupKeystrokes','confirmButton','execute','div','errorText','add','destroy','AI_CHAT_CONTEXT_URL_PLACEHOLDER','ck-ai-chat-context-controls__url-input-section','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_focusables','clear','listenTo','_setupEventHandlers','129765FHxMWu','element','_updateConfirmButtonState','length','submit','forEach','keystrokes','1029NPZfEo','focusTracker','setError','render','ck-ai-chat-context-controls__url-form','AI_CHAT_CONTEXT_URL_LABEL','value','_setupTemplate','backButton','esc','410gNhvhy','refreshBalloon','fire','1294864RwMggi','focus','getValue','_createBackButton','createCollection','submitUrl','_handleSubmit','urlInputField','set','59112fojQwT','clearError','isEnabled'];_0x336f=function(){return _0x285d88;};return _0x336f();}const _0x5a4c04=_0x41da;(function(_0x52399d,_0x1a15c1){const _0x1ef1bc=_0x41da,_0x5fcab6=_0x52399d();while(!![]){try{const _0x524df0=-parseInt(_0x1ef1bc(0x9d))/0x1+parseInt(_0x1ef1bc(0xcd))/0x2+parseInt(_0x1ef1bc(0x8c))/0x3+-parseInt(_0x1ef1bc(0xcf))/0x4*(parseInt(_0x1ef1bc(0xae))/0x5)+-parseInt(_0x1ef1bc(0xba))/0x6*(-parseInt(_0x1ef1bc(0xa4))/0x7)+parseInt(_0x1ef1bc(0xb1))/0x8+-parseInt(_0x1ef1bc(0xbe))/0x9;if(_0x524df0===_0x1a15c1)break;else _0x5fcab6['push'](_0x5fcab6['shift']());}catch(_0x99bf08){_0x5fcab6['push'](_0x5fcab6['shift']());}}}(_0x336f,0xbc7b9));import{FocusTracker as _0x4da908,KeystrokeHandler as _0x189e7f}from'ckeditor5/src/utils.js';import{ButtonView as _0x21915b,FocusCycler as _0x311d52,LabeledFieldView as _0x3aa5ab,View as _0x348e00,FormHeaderView as _0x16d553,createLabeledInputText as _0x25c3e9,submitHandler as _0x7cbb89}from'ckeditor5/src/ui.js';import{IconCheck as _0x55cff3,IconPreviousArrow as _0x11c8a9}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x488d2e}from'../../../aicore/utils/common-translations.js';const ch=_0x5a4c04(0xa8),nh=_0x5a4c04(0x97);function _0x41da(_0x3fc433,_0x602e34){const _0x336f21=_0x336f();return _0x41da=function(_0x41da7b,_0x2937ae){_0x41da7b=_0x41da7b-0x8c;let _0x4a9a31=_0x336f21[_0x41da7b];return _0x4a9a31;},_0x41da(_0x3fc433,_0x602e34);}export class AIChatContextPanelUrlInputView extends _0x348e00{[_0x5a4c04(0xa5)];[_0x5a4c04(0xa3)];[_0x5a4c04(0x99)];[_0x5a4c04(0x8e)];[_0x5a4c04(0xb8)];[_0x5a4c04(0xac)];[_0x5a4c04(0x90)];constructor(_0x1a4e60){const _0x3f1dd5=_0x5a4c04;super(_0x1a4e60),this[_0x3f1dd5(0xa5)]=new _0x4da908(),this[_0x3f1dd5(0xa3)]=new _0x189e7f(),this[_0x3f1dd5(0xac)]=this[_0x3f1dd5(0xb4)](),this[_0x3f1dd5(0xb8)]=this[_0x3f1dd5(0xbd)](),this[_0x3f1dd5(0x90)]=this[_0x3f1dd5(0xc6)](),this[_0x3f1dd5(0x99)]=this[_0x3f1dd5(0xb5)]([this[_0x3f1dd5(0xac)],this[_0x3f1dd5(0xb8)],this[_0x3f1dd5(0x90)]]),this[_0x3f1dd5(0x8e)]=new _0x311d52({'focusables':this[_0x3f1dd5(0x99)],'focusTracker':this[_0x3f1dd5(0xa5)],'keystrokeHandler':this[_0x3f1dd5(0xa3)],'actions':{'focusPrevious':_0x3f1dd5(0xc4),'focusNext':_0x3f1dd5(0xbf)}}),this[_0x3f1dd5(0xab)](),this[_0x3f1dd5(0x9c)](),this[_0x3f1dd5(0x8f)]();}[_0x5a4c04(0xa7)](){const _0x12657d=_0x5a4c04;super[_0x12657d(0xa7)](),this[_0x12657d(0x99)][_0x12657d(0xa2)](_0x1ba5c2=>{const _0x37d0e1=_0x12657d;this[_0x37d0e1(0xa5)][_0x37d0e1(0x94)](_0x1ba5c2[_0x37d0e1(0x9e)]),this[_0x37d0e1(0xa3)][_0x37d0e1(0x9b)](_0x1ba5c2[_0x37d0e1(0x9e)]);}),_0x7cbb89({'view':this}),this[_0x12657d(0xb2)]();}[_0x5a4c04(0x95)](){const _0x1706ab=_0x5a4c04;super[_0x1706ab(0x95)](),this[_0x1706ab(0xa5)][_0x1706ab(0x95)](),this[_0x1706ab(0xa3)][_0x1706ab(0x95)]();}[_0x5a4c04(0xb2)](){const _0x3ec8d7=_0x5a4c04;this[_0x3ec8d7(0xb8)][_0x3ec8d7(0xb2)]();}[_0x5a4c04(0xb3)](){const _0x305f27=_0x5a4c04;return this[_0x305f27(0xb8)][_0x305f27(0xc0)][_0x305f27(0x9e)]?.[_0x305f27(0xaa)]?.[_0x305f27(0xc5)]()||'';}[_0x5a4c04(0x9a)](){const _0x1cedb1=_0x5a4c04;this[_0x1cedb1(0xb8)][_0x1cedb1(0xc0)][_0x1cedb1(0x9e)][_0x1cedb1(0xaa)]='',this[_0x1cedb1(0xb8)][_0x1cedb1(0x93)]=null,this[_0x1cedb1(0x90)][_0x1cedb1(0xbc)]=!0x1;}[_0x5a4c04(0xa6)](_0x2a01df){const _0x2dd771=_0x5a4c04;this[_0x2dd771(0xb8)][_0x2dd771(0x93)]=_0x2a01df,this[_0x2dd771(0x9f)](),this[_0x2dd771(0xb0)](_0x2dd771(0xaf));}[_0x5a4c04(0xbb)](){const _0x1c593c=_0x5a4c04;this[_0x1c593c(0xb8)][_0x1c593c(0x93)]=null,this[_0x1c593c(0x9f)]();}[_0x5a4c04(0xb4)](){const _0x10d4a2=_0x5a4c04,_0x2ec443=new _0x21915b(this[_0x10d4a2(0xd1)]);return _0x2ec443[_0x10d4a2(0xb9)]({'icon':_0x11c8a9,'tooltip':_0x488d2e(this[_0x10d4a2(0xd1)],_0x10d4a2(0x98)),'tooltipPosition':'n','class':_0x10d4a2(0xc7)}),_0x2ec443;}[_0x5a4c04(0xbd)](){const _0x12f9ba=_0x5a4c04,_0x922fed=new _0x3aa5ab(this[_0x12f9ba(0xd1)],_0x25c3e9);return _0x922fed[_0x12f9ba(0xb9)]({'label':_0x488d2e(this[_0x12f9ba(0xd1)],_0x12f9ba(0xa9)),'class':_0x12f9ba(0xc2)}),_0x922fed[_0x12f9ba(0xc0)][_0x12f9ba(0xb9)]({'placeholder':_0x488d2e(this[_0x12f9ba(0xd1)],_0x12f9ba(0x96))}),_0x922fed;}[_0x5a4c04(0xc6)](){const _0x50382e=_0x5a4c04,_0x33b15f=new _0x21915b(this[_0x50382e(0xd1)]);return _0x33b15f[_0x50382e(0xb9)]({'icon':_0x55cff3,'tooltip':_0x488d2e(this[_0x50382e(0xd1)],_0x50382e(0xc3)),'tooltipPosition':'n','class':_0x50382e(0xd2),'type':_0x50382e(0xa1),'isEnabled':!0x1}),_0x33b15f;}[_0x5a4c04(0xab)](){const _0x553b06=_0x5a4c04,_0x6f210e=new _0x16d553(this[_0x553b06(0xd1)],{'label':_0x488d2e(this[_0x553b06(0xd1)],_0x553b06(0xc3)),'class':_0x553b06(0xc1)});_0x6f210e[_0x553b06(0xcc)][_0x553b06(0x94)](this[_0x553b06(0xac)],0x0),this[_0x553b06(0xd0)]({'tag':_0x553b06(0xce),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x6f210e,{'tag':_0x553b06(0x92),'attributes':{'class':nh},'children':[this[_0x553b06(0xb8)],this[_0x553b06(0x90)]]}]});}[_0x5a4c04(0x9c)](){const _0x14c2c5=_0x5a4c04;this[_0x14c2c5(0xac)]['on'](_0x14c2c5(0x91),()=>{const _0x321e7d=_0x14c2c5;this[_0x321e7d(0x9a)](),this[_0x321e7d(0xb0)](_0x321e7d(0x8d));}),this[_0x14c2c5(0xb8)][_0x14c2c5(0xc0)]['on'](_0x14c2c5(0xcb),()=>{const _0x818222=_0x14c2c5;this[_0x818222(0xbb)](),this[_0x818222(0x9f)](),this[_0x818222(0xb0)](_0x818222(0xaf));}),this['on'](_0x14c2c5(0xa1),_0x3f122a=>{const _0x20aa6a=_0x14c2c5;_0x3f122a[_0x20aa6a(0xd3)](),this[_0x20aa6a(0xb7)]();});}[_0x5a4c04(0x8f)](){const _0x466716=_0x5a4c04;this[_0x466716(0xa3)][_0x466716(0xb9)](_0x466716(0xad),(_0x4f79c3,_0x420367)=>{const _0x464d36=_0x466716;this[_0x464d36(0x9a)](),this[_0x464d36(0xb0)](_0x464d36(0x8d)),_0x420367();});}[_0x5a4c04(0xb7)](){const _0x332a9c=_0x5a4c04,_0x578aea=this[_0x332a9c(0xb3)]()[_0x332a9c(0xc5)]();_0x578aea?this[_0x332a9c(0xc8)](_0x578aea)?(this[_0x332a9c(0xbb)](),this[_0x332a9c(0xb0)](_0x332a9c(0xb6),_0x578aea)):this[_0x332a9c(0xa6)](_0x488d2e(this[_0x332a9c(0xd1)],_0x332a9c(0xc9))):this[_0x332a9c(0xa6)](_0x488d2e(this[_0x332a9c(0xd1)],_0x332a9c(0xca)));}[_0x5a4c04(0x9f)](){const _0x340f1a=_0x5a4c04,_0x3d1598=this[_0x340f1a(0xb3)]()[_0x340f1a(0xc5)](),_0x268022=!!this[_0x340f1a(0xb8)][_0x340f1a(0x93)];this[_0x340f1a(0x90)][_0x340f1a(0xbc)]=_0x3d1598[_0x340f1a(0xa0)]>0x0&&!_0x268022;}[_0x5a4c04(0xc8)](_0x106b17){try{return!!new URL(_0x106b17);}catch{return!0x1;}}}
23
+ function _0x42e4(_0x19142f,_0x4c0efd){const _0x3457ad=_0x3457();return _0x42e4=function(_0x42e49c,_0x36d4a8){_0x42e49c=_0x42e49c-0x6f;let _0x1ed170=_0x3457ad[_0x42e49c];return _0x1ed170;},_0x42e4(_0x19142f,_0x4c0efd);}const _0x39b20f=_0x42e4;(function(_0x1c3da4,_0x591fea){const _0x78a18b=_0x42e4,_0x1d3bb1=_0x1c3da4();while(!![]){try{const _0x38e89f=-parseInt(_0x78a18b(0xa6))/0x1*(-parseInt(_0x78a18b(0xb1))/0x2)+-parseInt(_0x78a18b(0xaa))/0x3*(-parseInt(_0x78a18b(0x8c))/0x4)+-parseInt(_0x78a18b(0xab))/0x5*(parseInt(_0x78a18b(0x9e))/0x6)+parseInt(_0x78a18b(0xb8))/0x7*(-parseInt(_0x78a18b(0x84))/0x8)+parseInt(_0x78a18b(0x7b))/0x9+-parseInt(_0x78a18b(0xb2))/0xa*(parseInt(_0x78a18b(0x9f))/0xb)+parseInt(_0x78a18b(0xae))/0xc;if(_0x38e89f===_0x591fea)break;else _0x1d3bb1['push'](_0x1d3bb1['shift']());}catch(_0x36d80e){_0x1d3bb1['push'](_0x1d3bb1['shift']());}}}(_0x3457,0x84ddb));import{FocusTracker as _0x242d81,KeystrokeHandler as _0x5e7a72}from'ckeditor5/src/utils.js';import{ButtonView as _0x48ef76,FocusCycler as _0x36ba4e,LabeledFieldView as _0x3ecdd4,View as _0xc06003,FormHeaderView as _0x15e9f8,createLabeledInputText as _0x2d7176,submitHandler as _0x54fb38}from'ckeditor5/src/ui.js';import{IconCheck as _0x2e4de9,IconPreviousArrow as _0x3e338d}from'@ckeditor/ckeditor5-icons';function _0x3457(){const _0x44c57a=['ck-button-icon\x20ck-button-back','value','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','21zDVYFe','20krIugS','element','locale','8876124zUYVsW','_handleSubmit','getValue','118454mdfhwM','58940WsqRJl','_updateConfirmButtonState','fire','ck-ai-chat-context-controls__url-input-section','AI_CHAT_CONTEXT_URL_INVALID_ERROR','input','343yFzFLO','add','createCollection','_createConfirmButton','_createUrlInputField','trim','children','setTemplate','_isValidUrl','clearError','set','_createBackButton','stop','esc','1934802QnJNMx','setError','ck-button-icon','focusCycler','_setupKeystrokes','_setupTemplate','ck-ai-chat-context-controls__url-form','focusTracker','execute','14408TplYiY','destroy','errorText','shift+tab','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','form','submit','length','148232SuYoSx','submitUrl','_focusables','fieldView','_setupEventHandlers','urlInputField','focus','tab','isEnabled','confirmButton','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','clear','ck-labeled-field-view_empty','render','refreshBalloon','listenTo','cancel','div','430770ydUPAr','660RVpeWa','AI_CHAT_CONTEXT_URL_ADD_URL','forEach','backButton','keystrokes','AI_CHAT_CONTEXT_URL_LABEL','AI_CHAT_CONTEXT_URL_PLACEHOLDER','1JHmrko'];_0x3457=function(){return _0x44c57a;};return _0x3457();}import{getTranslation as _0x1cb960}from'../../../aicore/utils/common-translations.js';const ch=_0x39b20f(0x81),nh=_0x39b20f(0xb5);export class AIChatContextPanelUrlInputView extends _0xc06003{[_0x39b20f(0x82)];[_0x39b20f(0xa3)];[_0x39b20f(0x8e)];[_0x39b20f(0x7e)];[_0x39b20f(0x91)];[_0x39b20f(0xa2)];[_0x39b20f(0x95)];constructor(_0x4b4a40){const _0x166f58=_0x39b20f;super(_0x4b4a40),this[_0x166f58(0x82)]=new _0x242d81(),this[_0x166f58(0xa3)]=new _0x5e7a72(),this[_0x166f58(0xa2)]=this[_0x166f58(0x78)](),this[_0x166f58(0x91)]=this[_0x166f58(0x71)](),this[_0x166f58(0x95)]=this[_0x166f58(0x70)](),this[_0x166f58(0x8e)]=this[_0x166f58(0x6f)]([this[_0x166f58(0xa2)],this[_0x166f58(0x91)],this[_0x166f58(0x95)]]),this[_0x166f58(0x7e)]=new _0x36ba4e({'focusables':this[_0x166f58(0x8e)],'focusTracker':this[_0x166f58(0x82)],'keystrokeHandler':this[_0x166f58(0xa3)],'actions':{'focusPrevious':_0x166f58(0x87),'focusNext':_0x166f58(0x93)}}),this[_0x166f58(0x80)](),this[_0x166f58(0x90)](),this[_0x166f58(0x7f)]();}[_0x39b20f(0x99)](){const _0x16a369=_0x39b20f;super[_0x16a369(0x99)](),this[_0x16a369(0x8e)][_0x16a369(0xa1)](_0x241459=>{const _0x561c94=_0x16a369;this[_0x561c94(0x82)][_0x561c94(0xb9)](_0x241459[_0x561c94(0xac)]),this[_0x561c94(0xa3)][_0x561c94(0x9b)](_0x241459[_0x561c94(0xac)]);}),_0x54fb38({'view':this}),this[_0x16a369(0x92)]();}[_0x39b20f(0x85)](){const _0x4f0290=_0x39b20f;super[_0x4f0290(0x85)](),this[_0x4f0290(0x82)][_0x4f0290(0x85)](),this[_0x4f0290(0xa3)][_0x4f0290(0x85)]();}[_0x39b20f(0x92)](){const _0x453ad6=_0x39b20f;this[_0x453ad6(0x91)][_0x453ad6(0x92)]();}[_0x39b20f(0xb0)](){const _0x4944a2=_0x39b20f;return this[_0x4944a2(0x91)][_0x4944a2(0x8f)][_0x4944a2(0xac)]?.[_0x4944a2(0xa8)]?.[_0x4944a2(0x72)]()||'';}[_0x39b20f(0x97)](){const _0x2f3ebd=_0x39b20f;this[_0x2f3ebd(0x91)][_0x2f3ebd(0x8f)][_0x2f3ebd(0xac)][_0x2f3ebd(0xa8)]='',this[_0x2f3ebd(0x91)][_0x2f3ebd(0x86)]=null,this[_0x2f3ebd(0x95)][_0x2f3ebd(0x94)]=!0x1;}[_0x39b20f(0x7c)](_0x36904c){const _0x1439fe=_0x39b20f;this[_0x1439fe(0x91)][_0x1439fe(0x86)]=_0x36904c,this[_0x1439fe(0xb3)](),this[_0x1439fe(0xb4)](_0x1439fe(0x9a));}[_0x39b20f(0x76)](){const _0x557dd1=_0x39b20f;this[_0x557dd1(0x91)][_0x557dd1(0x86)]=null,this[_0x557dd1(0xb3)]();}[_0x39b20f(0x78)](){const _0x4ec8a7=_0x39b20f,_0x2d48c3=new _0x48ef76(this[_0x4ec8a7(0xad)]);return _0x2d48c3[_0x4ec8a7(0x77)]({'icon':_0x3e338d,'tooltip':_0x1cb960(this[_0x4ec8a7(0xad)],_0x4ec8a7(0x88)),'tooltipPosition':'n','class':_0x4ec8a7(0xa7)}),_0x2d48c3;}[_0x39b20f(0x71)](){const _0x4dc8e4=_0x39b20f,_0x6adc15=new _0x3ecdd4(this[_0x4dc8e4(0xad)],_0x2d7176);return _0x6adc15[_0x4dc8e4(0x77)]({'label':_0x1cb960(this[_0x4dc8e4(0xad)],_0x4dc8e4(0xa4)),'class':_0x4dc8e4(0x98)}),_0x6adc15[_0x4dc8e4(0x8f)][_0x4dc8e4(0x77)]({'placeholder':_0x1cb960(this[_0x4dc8e4(0xad)],_0x4dc8e4(0xa5))}),_0x6adc15;}[_0x39b20f(0x70)](){const _0x505377=_0x39b20f,_0x25f6ff=new _0x48ef76(this[_0x505377(0xad)]);return _0x25f6ff[_0x505377(0x77)]({'icon':_0x2e4de9,'tooltip':_0x1cb960(this[_0x505377(0xad)],_0x505377(0xa0)),'tooltipPosition':'n','class':_0x505377(0x7d),'type':_0x505377(0x8a),'isEnabled':!0x1}),_0x25f6ff;}[_0x39b20f(0x80)](){const _0x44925a=_0x39b20f,_0x17bb02=new _0x15e9f8(this[_0x44925a(0xad)],{'label':_0x1cb960(this[_0x44925a(0xad)],_0x44925a(0xa0)),'class':_0x44925a(0x96)});_0x17bb02[_0x44925a(0x73)][_0x44925a(0xb9)](this[_0x44925a(0xa2)],0x0),this[_0x44925a(0x74)]({'tag':_0x44925a(0x89),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x17bb02,{'tag':_0x44925a(0x9d),'attributes':{'class':nh},'children':[this[_0x44925a(0x91)],this[_0x44925a(0x95)]]}]});}[_0x39b20f(0x90)](){const _0x3a1ea5=_0x39b20f;this[_0x3a1ea5(0xa2)]['on'](_0x3a1ea5(0x83),()=>{const _0x2e2bd8=_0x3a1ea5;this[_0x2e2bd8(0x97)](),this[_0x2e2bd8(0xb4)](_0x2e2bd8(0x9c));}),this[_0x3a1ea5(0x91)][_0x3a1ea5(0x8f)]['on'](_0x3a1ea5(0xb7),()=>{const _0x350c4d=_0x3a1ea5;this[_0x350c4d(0x76)](),this[_0x350c4d(0xb3)](),this[_0x350c4d(0xb4)](_0x350c4d(0x9a));}),this['on'](_0x3a1ea5(0x8a),_0x153384=>{const _0x286fac=_0x3a1ea5;_0x153384[_0x286fac(0x79)](),this[_0x286fac(0xaf)]();});}[_0x39b20f(0x7f)](){const _0x494edf=_0x39b20f;this[_0x494edf(0xa3)][_0x494edf(0x77)](_0x494edf(0x7a),(_0x458a07,_0x44d2ca)=>{const _0x594600=_0x494edf;this[_0x594600(0x97)](),this[_0x594600(0xb4)](_0x594600(0x9c)),_0x44d2ca();});}[_0x39b20f(0xaf)](){const _0x34d364=_0x39b20f,_0x2ce9e5=this[_0x34d364(0xb0)]()[_0x34d364(0x72)]();_0x2ce9e5?this[_0x34d364(0x75)](_0x2ce9e5)?(this[_0x34d364(0x76)](),this[_0x34d364(0xb4)](_0x34d364(0x8d),_0x2ce9e5)):this[_0x34d364(0x7c)](_0x1cb960(this[_0x34d364(0xad)],_0x34d364(0xb6))):this[_0x34d364(0x7c)](_0x1cb960(this[_0x34d364(0xad)],_0x34d364(0xa9)));}[_0x39b20f(0xb3)](){const _0x3016e2=_0x39b20f,_0x1ea63c=this[_0x3016e2(0xb0)]()[_0x3016e2(0x72)](),_0x49374f=!!this[_0x3016e2(0x91)][_0x3016e2(0x86)];this[_0x3016e2(0x95)][_0x3016e2(0x94)]=_0x1ea63c[_0x3016e2(0x8b)]>0x0&&!_0x49374f;}[_0x39b20f(0x75)](_0x5668e6){try{return!!new URL(_0x5668e6);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2faca7=_0x29ac;(function(_0x3e5f87,_0x3fbd7d){const _0x136e51=_0x29ac,_0x35db88=_0x3e5f87();while(!![]){try{const _0x4c9315=parseInt(_0x136e51(0x172))/0x1*(-parseInt(_0x136e51(0x17e))/0x2)+parseInt(_0x136e51(0x15c))/0x3*(parseInt(_0x136e51(0x1b6))/0x4)+parseInt(_0x136e51(0x1a3))/0x5*(parseInt(_0x136e51(0x152))/0x6)+-parseInt(_0x136e51(0x1be))/0x7+-parseInt(_0x136e51(0x1b5))/0x8*(-parseInt(_0x136e51(0x181))/0x9)+parseInt(_0x136e51(0x175))/0xa*(parseInt(_0x136e51(0x198))/0xb)+-parseInt(_0x136e51(0x13e))/0xc;if(_0x4c9315===_0x3fbd7d)break;else _0x35db88['push'](_0x35db88['shift']());}catch(_0x308962){_0x35db88['push'](_0x35db88['shift']());}}}(_0x46c4,0xa6063));import{BalloonPanelView as _0x1af2eb,ButtonView as _0xaf4d1d,clickOutsideHandler as _0x191ba2,FileDialogButtonView as _0x47f866,IconView as _0x3de797,View as _0x39fe25}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x47a33c,IconDocument as _0x32e42e,IconDocumentOutline as _0x3302cb,IconDropdownArrow as _0x1fd93d,IconLink as _0x42f1b6,IconPaperClip as _0x4a0fa6}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x37c993}from'./aichatcontextitembuttonview.js';function _0x46c4(){const _0x12c1a4=['showAddContextBalloonPanel','_currentContextsChips','_createUrlBalloonPanelView','source','_setAddContextButtonEnabled','setContextItemLoading','isOn','1104186QcwhhR','overflowChips','addContextButtonView','isEnabled','addContextItem','searchInputVisibleFrom','done','_createBaseBalloonPanel','_overflowManager','children','129rOWdKP','_conversationContextsChips','isVisible','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__pending-contexts','icon','div','_handleAddContextButtonClick','ck-ai-chat','_handleUrlSubmit','execute','isHidden','clear','ck-ai-chat-controls_context_show-more-button','_toggleAddContextBalloon','_resourcesBalloonView','_setupAllBalloonClickOutsideHandlers','hideAddContextBalloonPanel','setConversationContext','defaultPositions','reorganizeChips','addDocumentToContext','224879qExMPt','conversation','content','9986310jdEeAW','locale','sources','_addContextBalloonPanelView','_addUrlContent','setAddContextOptions','_createContextButton','northArrowSouthWest','removeContextItem','4GklXuV','bodyCollection','refreshBalloon','9XXsPGw','pin','_setBalloonPanelContent','fire','find','addFileToContext','showSourceResourcesBalloon','urls','document','_createAddContextButtonView','loadSourceResources','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat-context-controls__add-context-button','_createAddContextBalloonPanelView','render','ck-reset_all-excluded','southArrowNorthEast','bind','updateResourceState','_addContextToCollection','_urlBalloonPanelView','southArrowNorthWest','enabled','11wEkoSN','southArrowNorth','closest','balloonView','buttonView','addUrlToContext','populateSourceResourceBalloon','add','showUrlBalloonPanel','hideUrlBalloonPanel','body','10oGeeDJ','AI_CHAT_CONTEXT_URL_LABEL','focus','_urlInputView','extendTemplate','northArrowSouth','remove','clearCurrentContextItems','cancel','destroy','show','files','ck-ai-chat-context-controls__add-context-balloon-panel','_bindEventHandlers','_createArrowView','addResourceToContext','_getLimiterElement','_setupTemplate','4438088XkVBcV','22732bXjLOf','_showSourceResourcesBalloon','setContainerElement','ck-ai-chat-context-controls__balloon-button','isAnyResourceBalloonVisible','menuitem','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-context-controls__balloon-button-source','1244243MZHwYX','closeSourceResourceBalloon','hide','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat-context-controls__show-more-balloon-panel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','current','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls','type','submitUrl','arrowView','_createResourcesBalloonView','element','removeContextItemChip','clearConversationContextItems','northArrowSouthEast','ck-ai-chat-controls-button','10299372UcAzkS','__arrow','_removeContextFromCollection','AI_CHAT_CONTEXT_ADD_CONTEXT','label','isReadOnly','isLoading','set','_addContextBalloonConfig','createCollection','tooltip','_createBalloonButton','setTemplate'];_0x46c4=function(){return _0x12c1a4;};return _0x46c4();}import{AIChatContextPanelUrlInputView as _0x356019}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x42b056}from'./aichatchipsoverflowmanager.js';function _0x29ac(_0x32f462,_0x3e22d1){const _0x46c46d=_0x46c4();return _0x29ac=function(_0x29ac74,_0x5051e1){_0x29ac74=_0x29ac74-0x132;let _0x213ccd=_0x46c46d[_0x29ac74];return _0x213ccd;},_0x29ac(_0x32f462,_0x3e22d1);}import{getTranslation as _0x2b0163}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x3559cb}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2faca7(0x171),_0x2faca7(0x186),_0x2faca7(0x19d),_0x2faca7(0x1b2),_0x2faca7(0x17d),_0x2faca7(0x18b)];const Eo=_0x2faca7(0x134),vo=_0x2faca7(0x160),Vo=_0x2faca7(0x1af),Io=_0x2faca7(0x18d),Po=_0x2faca7(0x1bc),Ro=_0x2faca7(0x1b9),Uo=_0x2faca7(0x1bd),Lo=_0x2faca7(0x13d),No=_0x2faca7(0x18c),Oo=_0x2faca7(0x169),Mo=_0x2faca7(0x1c2),Ho=_0x2faca7(0x164),jo=[_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x17c)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x1a8)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x13c)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x196)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x199)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x191)]];export class AIChatContextPanelView extends _0x39fe25{[_0x2faca7(0x154)];[_0x2faca7(0x14c)]=this[_0x2faca7(0x147)]();[_0x2faca7(0x15d)]=this[_0x2faca7(0x147)]();[_0x2faca7(0x15a)];[_0x2faca7(0x178)];[_0x2faca7(0x195)];[_0x2faca7(0x1a6)];[_0x2faca7(0x16b)];[_0x2faca7(0x146)];[_0x2faca7(0x17f)];constructor(_0x467894,_0x578270){const _0x156006=_0x2faca7;super(_0x467894),this[_0x156006(0x17f)]=_0x578270[_0x156006(0x17f)],this[_0x156006(0x14c)]=this[_0x156006(0x147)](),this[_0x156006(0x15d)]=this[_0x156006(0x147)](),this[_0x156006(0x154)]=this[_0x156006(0x18a)](_0x467894),this[_0x156006(0x178)]=this[_0x156006(0x18e)](_0x467894),this[_0x156006(0x195)]=this[_0x156006(0x14d)](_0x467894),this[_0x156006(0x16b)]=this[_0x156006(0x138)](_0x467894,_0x578270);const _0x19b973={'cssClasses':{'showMoreButton':Oo,'showMoreBalloon':Mo,'overflowContainer':No,'controlsButton':Lo}};this[_0x156006(0x15a)]=new _0x42b056(_0x467894,this[_0x156006(0x14c)],_0x19b973,this[_0x156006(0x17f)],this),this[_0x156006(0x146)]={'buttonView':this[_0x156006(0x154)],'balloonView':this[_0x156006(0x178)],'hideMethod':this[_0x156006(0x16d)][_0x156006(0x192)](this),'showMethod':this[_0x156006(0x14b)][_0x156006(0x192)](this)},this[_0x156006(0x1b4)](),this[_0x156006(0x1b0)]();}[_0x2faca7(0x18f)](){const _0x21b085=_0x2faca7;super[_0x21b085(0x18f)](),this[_0x21b085(0x16c)](),this[_0x21b085(0x15a)][_0x21b085(0x1b8)](this[_0x21b085(0x139)]),this[_0x21b085(0x15a)][_0x21b085(0x170)]();}[_0x2faca7(0x1ac)](){const _0x570003=_0x2faca7;super[_0x570003(0x1ac)](),this[_0x570003(0x15a)][_0x570003(0x1ac)](),this[_0x570003(0x16b)][_0x570003(0x1ac)]();}[_0x2faca7(0x156)](_0x32c3d6,_0x57f9ba){const _0x5603ed=_0x2faca7,_0x5129df=this[_0x5603ed(0x17b)](_0x32c3d6,_0x5603ed(0x132),!0x0,_0x57f9ba);this[_0x5603ed(0x194)](_0x5129df,this[_0x5603ed(0x14c)]),this[_0x5603ed(0x15a)][_0x5603ed(0x170)]();}[_0x2faca7(0x17d)](_0x294382){const _0x5382f4=_0x2faca7;this[_0x5382f4(0x140)](_0x294382,this[_0x5382f4(0x14c)]),this[_0x5382f4(0x140)](_0x294382,this[_0x5382f4(0x15a)][_0x5382f4(0x153)]),this[_0x5382f4(0x15a)][_0x5382f4(0x170)]();}[_0x2faca7(0x150)](_0x355bab,_0x402c0c){const _0x5b53bb=_0x2faca7;let _0xf6847a=this[_0x5b53bb(0x14c)][_0x5b53bb(0x185)](_0x93fba7=>_0x93fba7['id']===_0x355bab);_0xf6847a||(_0xf6847a=this[_0x5b53bb(0x15a)][_0x5b53bb(0x153)][_0x5b53bb(0x185)](_0x118a37=>_0x118a37['id']===_0x355bab)),_0xf6847a&&(_0xf6847a[_0x5b53bb(0x144)]=_0x402c0c);}[_0x2faca7(0x16e)](_0x29dd01){const _0x17b706=_0x2faca7;this[_0x17b706(0x15d)][_0x17b706(0x168)]();for(const _0xe55942 of _0x29dd01){const _0x851dd9=this[_0x17b706(0x17b)](_0xe55942,_0x17b706(0x173),!0x1,!0x1);this[_0x17b706(0x194)](_0x851dd9,this[_0x17b706(0x15d)]);}}[_0x2faca7(0x1aa)](){const _0x4a0ee8=_0x2faca7;this[_0x4a0ee8(0x14c)][_0x4a0ee8(0x168)](),this[_0x4a0ee8(0x15a)][_0x4a0ee8(0x168)]();}[_0x2faca7(0x13b)](){const _0x734455=_0x2faca7;this[_0x734455(0x15d)][_0x734455(0x168)]();}[_0x2faca7(0x193)](_0x36bb87,_0x4e2c34,_0x16d83e){const _0x44230b=_0x2faca7;this[_0x44230b(0x16b)][_0x44230b(0x193)](_0x36bb87,_0x4e2c34,_0x16d83e);}[_0x2faca7(0x16d)](){const _0x15dcdd=_0x2faca7;this[_0x15dcdd(0x16a)](!0x1);}[_0x2faca7(0x14b)](){const _0x32076d=_0x2faca7;this[_0x32076d(0x16a)](!0x0);}[_0x2faca7(0x1a1)](){const _0x317e1c=_0x2faca7;this[_0x317e1c(0x195)][_0x317e1c(0x1c0)](),this[_0x317e1c(0x154)][_0x317e1c(0x151)]=!0x1,this[_0x317e1c(0x1a6)]&&this[_0x317e1c(0x1a6)][_0x317e1c(0x168)]();}[_0x2faca7(0x1a0)](){const _0xeccb77=_0x2faca7;this[_0xeccb77(0x195)][_0xeccb77(0x1ad)](),this[_0xeccb77(0x154)][_0xeccb77(0x151)]=!0x0;}[_0x2faca7(0x1b7)](_0x2ced96){const _0x22e53d=_0x2faca7;this[_0x22e53d(0x16b)][_0x22e53d(0x187)](_0x2ced96),this[_0x22e53d(0x154)][_0x22e53d(0x151)]=!0x0;}[_0x2faca7(0x19e)](_0x381f33,_0x22039a,_0x494c7b,_0x3d4f71){const _0x1f9170=_0x2faca7;this[_0x1f9170(0x16b)][_0x1f9170(0x19e)](_0x381f33,_0x494c7b,_0x3d4f71);}[_0x2faca7(0x1bf)](_0x3d15d4){const _0x52f9c8=_0x2faca7;this[_0x52f9c8(0x16b)][_0x52f9c8(0x1bf)](_0x3d15d4),this[_0x52f9c8(0x154)][_0x52f9c8(0x151)]=!0x1;}[_0x2faca7(0x17a)](_0x2a55cc){const _0x409a5a=_0x2faca7;this[_0x409a5a(0x183)](this[_0x409a5a(0x178)],this[_0x409a5a(0x176)],_0x2a55cc),this[_0x409a5a(0x14f)](_0x2a55cc);}[_0x2faca7(0x14f)](_0x1e0f29){const _0x2a5e3e=_0x2faca7,_0x4fa724=!_0x1e0f29[_0x2a5e3e(0x189)][_0x2a5e3e(0x167)]&&_0x1e0f29[_0x2a5e3e(0x189)][_0x2a5e3e(0x197)],_0x4bdfba=_0x1e0f29[_0x2a5e3e(0x188)][_0x2a5e3e(0x197)],_0x4e7826=_0x1e0f29[_0x2a5e3e(0x1ae)][_0x2a5e3e(0x197)];this[_0x2a5e3e(0x154)][_0x2a5e3e(0x155)]=_0x4fa724||_0x4bdfba||_0x4e7826;}[_0x2faca7(0x1b4)](){const _0x517bdc=_0x2faca7;this[_0x517bdc(0x14a)]({'tag':_0x517bdc(0x162),'attributes':{'class':[Eo,_0x517bdc(0x190)]},'children':[{'tag':_0x517bdc(0x162),'attributes':{'class':vo},'children':this[_0x517bdc(0x14c)]}]});}[_0x2faca7(0x1b0)](){const _0x16475f=_0x2faca7;this[_0x16475f(0x154)]['on'](_0x16475f(0x166),()=>{const _0x58ad0c=_0x16475f;this[_0x58ad0c(0x163)]();});}[_0x2faca7(0x18a)](_0x140baa){const _0x3b887d=_0x2faca7,_0x4bbb61=new _0xaf4d1d(_0x140baa);return _0x4bbb61[_0x3b887d(0x145)]({'label':_0x2b0163(_0x140baa,_0x3b887d(0x141)),'class':Lo+'\x20'+Io,'icon':_0x4a0fa6,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x4bbb61;}[_0x2faca7(0x18e)](_0x45a489){const _0x50a57c=_0x2faca7;return this[_0x50a57c(0x159)](_0x45a489,Vo);}[_0x2faca7(0x14d)](_0x7fa483){const _0x59791d=_0x2faca7,_0x3133a9=this[_0x59791d(0x159)](_0x7fa483,Po);return this[_0x59791d(0x179)](_0x3133a9,_0x7fa483),_0x3133a9;}[_0x2faca7(0x138)](_0x387ab6,_0x162ac2){const _0x4df711=_0x2faca7,_0xd45ef6={'searchInputVisibleFrom':_0x162ac2[_0x4df711(0x157)],'onBackToContext':()=>{const _0x51a61b=_0x4df711;this[_0x51a61b(0x14b)](),this[_0x51a61b(0x178)][_0x51a61b(0x182)]({'target':this[_0x51a61b(0x154)][_0x51a61b(0x139)],'limiter':this[_0x51a61b(0x1b3)](),'positions':jo});},'onResourceSelected':(_0x194641,_0x1b6b92)=>{const _0x5e7a7f=_0x4df711;this[_0x5e7a7f(0x184)](_0x5e7a7f(0x1b2),{'source':_0x194641,'resource':_0x1b6b92});},'onLoadSourceResources':_0x3bf8d9=>{const _0x729c3c=_0x4df711;this[_0x729c3c(0x184)](_0x729c3c(0x18b),_0x3bf8d9);},'onBalloonClosed':()=>{const _0x4bf6fc=_0x4df711;this[_0x4bf6fc(0x154)][_0x4bf6fc(0x151)]=!0x1;},'getLimiterElement':()=>this[_0x4df711(0x1b3)](),'getTargetElement':()=>this[_0x4df711(0x154)][_0x4df711(0x139)]};return new _0x3559cb(_0x387ab6,_0x162ac2[_0x4df711(0x17f)],_0xd45ef6);}[_0x2faca7(0x1b3)](){const _0x557bf3=_0x2faca7;return this[_0x557bf3(0x139)]?.[_0x557bf3(0x19a)]('.'+Ho)||document[_0x557bf3(0x1a2)];}[_0x2faca7(0x159)](_0x2ea295,_0x4756cf){const _0x32bf28=_0x2faca7,_0x2c4e74=new _0x1af2eb(_0x2ea295);return _0x2c4e74[_0x32bf28(0x1a7)]({'attributes':{'class':_0x4756cf}}),this[_0x32bf28(0x17f)][_0x32bf28(0x19f)](_0x2c4e74),_0x2c4e74;}[_0x2faca7(0x183)](_0x47e6e1,_0x2df1e8,_0x57ec73){const _0x1f84f1=_0x2faca7;if(_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x168)](),!_0x57ec73[_0x1f84f1(0x189)][_0x1f84f1(0x167)]&&_0x57ec73[_0x1f84f1(0x189)][_0x1f84f1(0x197)]){const _0xfe81ca=this[_0x1f84f1(0x149)](_0x2df1e8,{'label':_0x2b0163(_0x2df1e8,_0x1f84f1(0x1c3)),'icon':_0x32e42e});_0xfe81ca['on'](_0x1f84f1(0x166),()=>{const _0x13c397=_0x1f84f1;this[_0x13c397(0x184)](_0x13c397(0x171)),this[_0x13c397(0x16d)]();}),_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x19f)](_0xfe81ca);}if(_0x57ec73[_0x1f84f1(0x188)][_0x1f84f1(0x197)]){const _0x16610a=this[_0x1f84f1(0x149)](_0x2df1e8,{'label':_0x2b0163(_0x2df1e8,_0x1f84f1(0x1a4)),'icon':_0x42f1b6});_0x16610a['on'](_0x1f84f1(0x166),()=>{const _0x14f326=_0x1f84f1;this[_0x14f326(0x16d)](),this[_0x14f326(0x1a0)](),this[_0x14f326(0x195)][_0x14f326(0x182)]({'target':this[_0x14f326(0x154)][_0x14f326(0x139)],'limiter':this[_0x14f326(0x1b3)](),'positions':jo}),this[_0x14f326(0x1a6)][_0x14f326(0x1a5)]();}),_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x19f)](_0x16610a);}if(_0x57ec73[_0x1f84f1(0x1ae)][_0x1f84f1(0x197)]){const _0xff2274=new _0x47f866(_0x2df1e8);_0xff2274[_0x1f84f1(0x145)]({'label':_0x2b0163(_0x2df1e8,_0x1f84f1(0x1c1)),'icon':_0x47a33c,'withText':!0x0,'tooltip':!0x0,'class':Ro,'allowMultipleFiles':!0x0}),_0xff2274['on'](_0x1f84f1(0x158),(_0x389855,_0x360e9b)=>{const _0x490792=_0x1f84f1;this[_0x490792(0x184)](_0x490792(0x186),_0x360e9b),this[_0x490792(0x16d)]();}),_0xff2274[_0x1f84f1(0x148)]=!0x0,_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x19f)](_0xff2274);}for(const _0x48e1cc of _0x57ec73[_0x1f84f1(0x177)]){const _0x5ef559=this[_0x1f84f1(0x149)](_0x2df1e8,{'label':_0x48e1cc[_0x1f84f1(0x142)],'icon':_0x48e1cc[_0x1f84f1(0x161)]||_0x3302cb,'type':_0x1f84f1(0x14e)});_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x19f)](_0x5ef559),_0x5ef559['on'](_0x1f84f1(0x166),()=>{const _0x582682=_0x1f84f1;this[_0x582682(0x16d)](),this[_0x582682(0x1b7)](_0x48e1cc);});}}[_0x2faca7(0x179)](_0x5f0fa5,_0x35fee6){const _0x341a7d=_0x2faca7;this[_0x341a7d(0x1a6)]=new _0x356019(_0x35fee6),this[_0x341a7d(0x1a6)]['on'](_0x341a7d(0x136),(_0x14fd3e,_0x18dc48)=>{const _0x470c58=_0x341a7d;this[_0x470c58(0x165)](_0x18dc48);}),this[_0x341a7d(0x1a6)]['on'](_0x341a7d(0x1ab),()=>{const _0x3c4412=_0x341a7d;this[_0x3c4412(0x1a1)](),this[_0x3c4412(0x14b)](),this[_0x3c4412(0x178)][_0x3c4412(0x182)]({'target':this[_0x3c4412(0x154)][_0x3c4412(0x139)],'limiter':this[_0x3c4412(0x1b3)](),'positions':jo});}),this[_0x341a7d(0x1a6)]['on'](_0x341a7d(0x180),()=>{const _0x1498fe=_0x341a7d;this[_0x1498fe(0x195)][_0x1498fe(0x15e)]&&this[_0x1498fe(0x195)][_0x1498fe(0x182)]({'target':this[_0x1498fe(0x154)][_0x1498fe(0x139)],'limiter':this[_0x1498fe(0x1b3)](),'positions':jo});}),_0x5f0fa5[_0x341a7d(0x174)][_0x341a7d(0x19f)](this[_0x341a7d(0x1a6)]);}[_0x2faca7(0x149)](_0x3eb40c,_0x442968){const _0x556c8e=_0x2faca7,_0x166347=_0x556c8e(0x14e)===_0x442968[_0x556c8e(0x135)]?new SourcesBalloonButtonView(_0x3eb40c):new _0xaf4d1d(_0x3eb40c);return _0x166347[_0x556c8e(0x145)]({'label':_0x442968[_0x556c8e(0x142)],'icon':_0x442968[_0x556c8e(0x161)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ro}),_0x166347;}[_0x2faca7(0x16c)](){const _0xd95bfc=_0x2faca7;this[_0xd95bfc(0x133)](),this[_0xd95bfc(0x15f)]();}[_0x2faca7(0x15f)](){const _0x36b953=_0x2faca7;_0x191ba2({'emitter':this[_0x36b953(0x195)],'contextElements':[this[_0x36b953(0x195)][_0x36b953(0x139)]],'callback':()=>{const _0x394b85=_0x36b953;this[_0x394b85(0x1a1)]();},'activator':()=>this[_0x36b953(0x195)][_0x36b953(0x15e)]});}[_0x2faca7(0x16a)](_0x20e8f8){const _0x426e81=_0x2faca7,_0x223e04=this[_0x426e81(0x146)];_0x223e04[_0x426e81(0x19c)][_0x426e81(0x151)]=_0x20e8f8,_0x20e8f8?_0x223e04[_0x426e81(0x19b)][_0x426e81(0x1ad)]():_0x223e04[_0x426e81(0x19b)][_0x426e81(0x1c0)]();}[_0x2faca7(0x133)](){const _0x3bc6d6=_0x2faca7,{balloonView:_0x1ef23c,buttonView:_0x31e98b,hideMethod:_0x5ca139}=this[_0x3bc6d6(0x146)];_0x191ba2({'emitter':_0x1ef23c,'contextElements':[_0x1ef23c[_0x3bc6d6(0x139)],_0x31e98b[_0x3bc6d6(0x139)]],'callback':()=>{_0x5ca139();},'activator':()=>_0x31e98b[_0x3bc6d6(0x151)]&&!this[_0x3bc6d6(0x195)][_0x3bc6d6(0x15e)]&&!this[_0x3bc6d6(0x16b)][_0x3bc6d6(0x1ba)]()});}[_0x2faca7(0x17b)](_0x518b67,_0x473db2,_0x347e92=!0x1,_0x33fafa=!0x1){const _0x1cff8d=_0x2faca7,_0x221ec0=_0x1cff8d(0x173)===_0x473db2||!0x0===_0x518b67[_0x1cff8d(0x143)],_0x57af04=new _0x37c993(this[_0x1cff8d(0x176)],_0x518b67,_0x221ec0,_0x347e92,_0x33fafa);return _0x221ec0||_0x57af04['on'](_0x1cff8d(0x13a),()=>{const _0x2285df=_0x1cff8d;this[_0x2285df(0x184)](_0x2285df(0x17d),_0x57af04['id']);}),_0x57af04;}[_0x2faca7(0x194)](_0xb8d998,_0x3b48a8){const _0x47dfda=_0x2faca7;_0x3b48a8[_0x47dfda(0x19f)](_0xb8d998,0x0);}[_0x2faca7(0x140)](_0x2673d0,_0x6ce48f){const _0x349cd1=_0x2faca7,_0x333672=_0x6ce48f[_0x349cd1(0x185)](_0x3f3e18=>_0x3f3e18['id']===_0x2673d0);_0x333672&&_0x6ce48f[_0x349cd1(0x1a9)](_0x333672);}[_0x2faca7(0x163)](){const _0x3fd5fd=_0x2faca7;this[_0x3fd5fd(0x154)][_0x3fd5fd(0x151)]?this[_0x3fd5fd(0x16d)]():(this[_0x3fd5fd(0x14b)](),this[_0x3fd5fd(0x178)][_0x3fd5fd(0x182)]({'target':this[_0x3fd5fd(0x154)][_0x3fd5fd(0x139)],'limiter':this[_0x3fd5fd(0x1b3)](),'positions':jo}));}[_0x2faca7(0x165)](_0x4b7d4b){const _0x1344f5=_0x2faca7;this[_0x1344f5(0x1a6)][_0x1344f5(0x168)](),this[_0x1344f5(0x1a1)](),this[_0x1344f5(0x184)](_0x1344f5(0x19d),_0x4b7d4b);}}export class SourcesBalloonButtonView extends _0xaf4d1d{[_0x2faca7(0x137)];constructor(_0x1c0783){const _0x37defc=_0x2faca7;super(_0x1c0783),this[_0x37defc(0x145)]({'withText':!0x0,'role':_0x37defc(0x1bb)}),this[_0x37defc(0x137)]=this[_0x37defc(0x1b1)](),this[_0x37defc(0x1a7)]({'attributes':{'class':[Uo]}});}[_0x2faca7(0x18f)](){const _0x361f8d=_0x2faca7;super[_0x361f8d(0x18f)](),this[_0x361f8d(0x15b)][_0x361f8d(0x19f)](this[_0x361f8d(0x137)]);}[_0x2faca7(0x1b1)](){const _0x95ffd0=_0x2faca7,_0x55902d=new _0x3de797();return _0x55902d[_0x95ffd0(0x174)]=_0x1fd93d,_0x55902d[_0x95ffd0(0x1a7)]({'attributes':{'class':Uo+_0x95ffd0(0x13f)}}),_0x55902d;}}
23
+ function _0x5cfc(){const _0x130e1c=['hideAddContextBalloonPanel','AI_CHAT_CONTEXT_FILE_LABEL','4428384JUOoMn','ck-ai-chat-context-chips-wrapper-balloon','cancel','add','find','div','ck-ai-chat-context-controls__add-context-button','sources','northArrowSouth','setContainerElement','southArrowNorth','conversation','hide','execute','_createContextButton','_handleAddContextButtonClick','_addContextBalloonPanelView','AI_CHAT_CONTEXT_ADD_CONTEXT','__arrow','_overflowManager','setTemplate','_handleUrlSubmit','populateSourceResourceBalloon','_conversationContextsChips','type','bodyCollection','pin','render','current','southArrowNorthWest','_createUrlBalloonPanelView','401116fngaEA','isLoading','done','ck-ai-chat-controls_context_show-more-button','ck-ai-chat-context-controls__add-context-balloon-panel','loadSourceResources','focus','_toggleAddContextBalloon','isOn','bind','closeSourceResourceBalloon','balloonView','386628SXWrSv','northArrowSouthEast','1206534YXQEDH','arrowView','ck-ai-chat-context-controls__url-balloon-panel','showSourceResourcesBalloon','buttonView','_getLimiterElement','_removeContextFromCollection','set','_createBaseBalloonPanel','addContextItem','_createArrowView','_setupAllBalloonClickOutsideHandlers','addFileToContext','setContextItemLoading','_resourcesBalloonView','_urlInputView','menuitem','_createBalloonButton','hideUrlBalloonPanel','ck-ai-chat-context-controls__balloon-button','enabled','isHidden','ck-reset_all-excluded','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls__pending-contexts','clear','element','files','children','updateResourceState','submitUrl','overflowChips','ck-ai-chat-context-controls__balloon-button-source','647358yCmFvH','northArrowSouthWest','icon','label','addDocumentToContext','clearConversationContextItems','removeContextItemChip','setAddContextOptions','searchInputVisibleFrom','tooltip','_setupUrlBalloonClickOutsideHandler','636935jvfDbF','isReadOnly','urls','content','827394qjgWoE','_urlBalloonPanelView','source','southArrowNorthEast','defaultPositions','_createResourcesBalloonView','_bindEventHandlers','body','addContextButtonView','isEnabled','addUrlToContext','_addUrlContent','closest','show','_addContextBalloonConfig','fire','showAddContextBalloonPanel','_setupTemplate','addResourceToContext','_showSourceResourcesBalloon','ck-ai-chat-context-controls','extendTemplate','clearCurrentContextItems','_currentContextsChips','destroy','ck-ai-chat','_addContextToCollection','locale','_createAddContextButtonView','12IoSyHs','document','remove','_setAddContextButtonEnabled','_setBalloonPanelContent','reorganizeChips','setConversationContext','showUrlBalloonPanel','removeContextItem','ck-ai-chat-context-controls__show-more-balloon-panel','createCollection','isAnyResourceBalloonVisible','ck-ai-chat-controls-button','refreshBalloon','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_createAddContextBalloonPanelView','isVisible','AI_CHAT_CONTEXT_URL_LABEL'];_0x5cfc=function(){return _0x130e1c;};return _0x5cfc();}function _0x118a(_0x41c22a,_0x4dd91b){const _0x5cfc84=_0x5cfc();return _0x118a=function(_0x118ac2,_0x3ecc5f){_0x118ac2=_0x118ac2-0x1f0;let _0x2961c5=_0x5cfc84[_0x118ac2];return _0x2961c5;},_0x118a(_0x41c22a,_0x4dd91b);}const _0x5954e3=_0x118a;(function(_0x3ea876,_0x57141c){const _0x3b86b7=_0x118a,_0x34ebd2=_0x3ea876();while(!![]){try{const _0x3c4c2e=-parseInt(_0x3b86b7(0x268))/0x1+parseInt(_0x3b86b7(0x209))/0x2+parseInt(_0x3b86b7(0x235))/0x3*(-parseInt(_0x3b86b7(0x274))/0x4)+parseInt(_0x3b86b7(0x214))/0x5+-parseInt(_0x3b86b7(0x218))/0x6+parseInt(_0x3b86b7(0x276))/0x7+parseInt(_0x3b86b7(0x249))/0x8;if(_0x3c4c2e===_0x57141c)break;else _0x34ebd2['push'](_0x34ebd2['shift']());}catch(_0x29efab){_0x34ebd2['push'](_0x34ebd2['shift']());}}}(_0x5cfc,0x3d5c5));import{BalloonPanelView as _0x2c7ae8,ButtonView as _0x40dae2,clickOutsideHandler as _0x24dd19,FileDialogButtonView as _0x42329f,IconView as _0x543a0f,View as _0x551670}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0xd6a1b0,IconDocument as _0x2396fc,IconDocumentOutline as _0x45372a,IconDropdownArrow as _0x51f472,IconLink as _0x4ff0c6,IconPaperClip as _0x53ad40}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x25e2d8}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x3919f7}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x3ccaa9}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x245725}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x257b9a}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x5954e3(0x20d),_0x5954e3(0x1f4),_0x5954e3(0x222),_0x5954e3(0x22a),_0x5954e3(0x23d),_0x5954e3(0x26d)];const ko=_0x5954e3(0x22c),Eo=_0x5954e3(0x200),vo=_0x5954e3(0x26c),Vo=_0x5954e3(0x24f),Io=_0x5954e3(0x278),Po=_0x5954e3(0x1fb),Ro=_0x5954e3(0x208),Uo=_0x5954e3(0x241),Lo=_0x5954e3(0x24a),No=_0x5954e3(0x26b),Oo=_0x5954e3(0x23e),Mo=_0x5954e3(0x231),Ho=[_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x20a)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x251)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x275)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x266)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x253)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x21b)]];export class AIChatContextPanelView extends _0x551670{[_0x5954e3(0x220)];[_0x5954e3(0x22f)]=this[_0x5954e3(0x23f)]();[_0x5954e3(0x260)]=this[_0x5954e3(0x23f)]();[_0x5954e3(0x25c)];[_0x5954e3(0x259)];[_0x5954e3(0x219)];[_0x5954e3(0x1f7)];[_0x5954e3(0x1f6)];[_0x5954e3(0x226)];[_0x5954e3(0x262)];constructor(_0x54e1bd,_0x342c93){const _0x265983=_0x5954e3;super(_0x54e1bd),this[_0x265983(0x262)]=_0x342c93[_0x265983(0x262)],this[_0x265983(0x22f)]=this[_0x265983(0x23f)](),this[_0x265983(0x260)]=this[_0x265983(0x23f)](),this[_0x265983(0x220)]=this[_0x265983(0x234)](_0x54e1bd),this[_0x265983(0x259)]=this[_0x265983(0x244)](_0x54e1bd),this[_0x265983(0x219)]=this[_0x265983(0x267)](_0x54e1bd),this[_0x265983(0x1f6)]=this[_0x265983(0x21d)](_0x54e1bd,_0x342c93);const _0x4fa8d8={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x265983(0x25c)]=new _0x3ccaa9(_0x54e1bd,this[_0x265983(0x22f)],_0x4fa8d8,this[_0x265983(0x262)],this),this[_0x265983(0x226)]={'buttonView':this[_0x265983(0x220)],'balloonView':this[_0x265983(0x259)],'hideMethod':this[_0x265983(0x247)][_0x265983(0x271)](this),'showMethod':this[_0x265983(0x228)][_0x265983(0x271)](this)},this[_0x265983(0x229)](),this[_0x265983(0x21e)]();}[_0x5954e3(0x264)](){const _0x4e3c82=_0x5954e3;super[_0x4e3c82(0x264)](),this[_0x4e3c82(0x1f3)](),this[_0x4e3c82(0x25c)][_0x4e3c82(0x252)](this[_0x4e3c82(0x202)]),this[_0x4e3c82(0x25c)][_0x4e3c82(0x23a)]();}[_0x5954e3(0x230)](){const _0xa1cabb=_0x5954e3;super[_0xa1cabb(0x230)](),this[_0xa1cabb(0x25c)][_0xa1cabb(0x230)](),this[_0xa1cabb(0x1f6)][_0xa1cabb(0x230)]();}[_0x5954e3(0x1f1)](_0xc40b61,_0x3de4e3){const _0x1a8130=_0x5954e3,_0x46a153=this[_0x1a8130(0x257)](_0xc40b61,_0x1a8130(0x265),!0x0,_0x3de4e3);this[_0x1a8130(0x232)](_0x46a153,this[_0x1a8130(0x22f)]),this[_0x1a8130(0x25c)][_0x1a8130(0x23a)]();}[_0x5954e3(0x23d)](_0x390416){const _0xa4b05c=_0x5954e3;this[_0xa4b05c(0x27c)](_0x390416,this[_0xa4b05c(0x22f)]),this[_0xa4b05c(0x27c)](_0x390416,this[_0xa4b05c(0x25c)][_0xa4b05c(0x207)]),this[_0xa4b05c(0x25c)][_0xa4b05c(0x23a)]();}[_0x5954e3(0x1f5)](_0x305d4b,_0x3ee02c){const _0x505500=_0x5954e3;let _0x2805d7=this[_0x505500(0x22f)][_0x505500(0x24d)](_0x15f993=>_0x15f993['id']===_0x305d4b);_0x2805d7||(_0x2805d7=this[_0x505500(0x25c)][_0x505500(0x207)][_0x505500(0x24d)](_0x559a60=>_0x559a60['id']===_0x305d4b)),_0x2805d7&&(_0x2805d7[_0x505500(0x269)]=_0x3ee02c);}[_0x5954e3(0x23b)](_0x51bffe){const _0x385136=_0x5954e3;this[_0x385136(0x260)][_0x385136(0x201)]();for(const _0x1fe814 of _0x51bffe){const _0x543e72=this[_0x385136(0x257)](_0x1fe814,_0x385136(0x254),!0x1,!0x1);this[_0x385136(0x232)](_0x543e72,this[_0x385136(0x260)]);}}[_0x5954e3(0x22e)](){const _0x3d09e8=_0x5954e3;this[_0x3d09e8(0x22f)][_0x3d09e8(0x201)](),this[_0x3d09e8(0x25c)][_0x3d09e8(0x201)]();}[_0x5954e3(0x20e)](){const _0x2a885a=_0x5954e3;this[_0x2a885a(0x260)][_0x2a885a(0x201)]();}[_0x5954e3(0x205)](_0x3aef0e,_0x2d05ad,_0x3efbe5){const _0x5e86dc=_0x5954e3;this[_0x5e86dc(0x1f6)][_0x5e86dc(0x205)](_0x3aef0e,_0x2d05ad,_0x3efbe5);}[_0x5954e3(0x247)](){const _0xfbd381=_0x5954e3;this[_0xfbd381(0x26f)](!0x1);}[_0x5954e3(0x228)](){const _0x12dbcc=_0x5954e3;this[_0x12dbcc(0x26f)](!0x0);}[_0x5954e3(0x1fa)](){const _0x41d111=_0x5954e3;this[_0x41d111(0x219)][_0x41d111(0x255)](),this[_0x41d111(0x220)][_0x41d111(0x270)]=!0x1,this[_0x41d111(0x1f7)]&&this[_0x41d111(0x1f7)][_0x41d111(0x201)]();}[_0x5954e3(0x23c)](){const _0xb41abe=_0x5954e3;this[_0xb41abe(0x219)][_0xb41abe(0x225)](),this[_0xb41abe(0x220)][_0xb41abe(0x270)]=!0x0;}[_0x5954e3(0x22b)](_0x41758a){const _0x45724d=_0x5954e3;this[_0x45724d(0x1f6)][_0x45724d(0x279)](_0x41758a),this[_0x45724d(0x220)][_0x45724d(0x270)]=!0x0;}[_0x5954e3(0x25f)](_0xa72282,_0x5f2ca0,_0x111afe,_0x2fdd2b){const _0x2a36e8=_0x5954e3;this[_0x2a36e8(0x1f6)][_0x2a36e8(0x25f)](_0xa72282,_0x111afe,_0x2fdd2b);}[_0x5954e3(0x272)](_0x5c9c74){const _0xbd8926=_0x5954e3;this[_0xbd8926(0x1f6)][_0xbd8926(0x272)](_0x5c9c74),this[_0xbd8926(0x220)][_0xbd8926(0x270)]=!0x1;}[_0x5954e3(0x210)](_0x255de9){const _0x1e7613=_0x5954e3;this[_0x1e7613(0x239)](this[_0x1e7613(0x259)],this[_0x1e7613(0x233)],_0x255de9),this[_0x1e7613(0x238)](_0x255de9);}[_0x5954e3(0x238)](_0x33e7d6){const _0x4be565=_0x5954e3,_0x2d68b1=!_0x33e7d6[_0x4be565(0x236)][_0x4be565(0x1fd)]&&_0x33e7d6[_0x4be565(0x236)][_0x4be565(0x1fc)],_0x517d93=_0x33e7d6[_0x4be565(0x216)][_0x4be565(0x1fc)],_0x3b6f81=_0x33e7d6[_0x4be565(0x203)][_0x4be565(0x1fc)];this[_0x4be565(0x220)][_0x4be565(0x221)]=_0x2d68b1||_0x517d93||_0x3b6f81;}[_0x5954e3(0x229)](){const _0x5d68e9=_0x5954e3;this[_0x5d68e9(0x25d)]({'tag':_0x5d68e9(0x24e),'attributes':{'class':[ko,_0x5d68e9(0x1fe)]},'children':[{'tag':_0x5d68e9(0x24e),'attributes':{'class':Eo},'children':this[_0x5d68e9(0x22f)]}]});}[_0x5954e3(0x21e)](){const _0x3c0a1b=_0x5954e3;this[_0x3c0a1b(0x220)]['on'](_0x3c0a1b(0x256),()=>{const _0x138a76=_0x3c0a1b;this[_0x138a76(0x258)]();});}[_0x5954e3(0x234)](_0x2265a3){const _0x16cfed=_0x5954e3,_0x13fc80=new _0x40dae2(_0x2265a3);return _0x13fc80[_0x16cfed(0x27d)]({'label':_0x245725(_0x2265a3,_0x16cfed(0x25a)),'class':Uo+'\x20'+Vo,'icon':_0x53ad40,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x13fc80;}[_0x5954e3(0x244)](_0x42397f){const _0x6100b5=_0x5954e3;return this[_0x6100b5(0x1f0)](_0x42397f,vo);}[_0x5954e3(0x267)](_0x1764de){const _0xad43da=_0x5954e3,_0x34ddb2=this[_0xad43da(0x1f0)](_0x1764de,Io);return this[_0xad43da(0x223)](_0x34ddb2,_0x1764de),_0x34ddb2;}[_0x5954e3(0x21d)](_0x514140,_0x47e9f2){const _0x33574d=_0x5954e3,_0x446c72={'searchInputVisibleFrom':_0x47e9f2[_0x33574d(0x211)],'onBackToContext':()=>{const _0x133a16=_0x33574d;this[_0x133a16(0x228)](),this[_0x133a16(0x259)][_0x133a16(0x263)]({'target':this[_0x133a16(0x220)][_0x133a16(0x202)],'limiter':this[_0x133a16(0x27b)](),'positions':Ho});},'onResourceSelected':(_0x5486ef,_0x258866)=>{const _0x9e79e1=_0x33574d;this[_0x9e79e1(0x227)](_0x9e79e1(0x22a),{'source':_0x5486ef,'resource':_0x258866});},'onLoadSourceResources':_0x483ba2=>{const _0x4d97a0=_0x33574d;this[_0x4d97a0(0x227)](_0x4d97a0(0x26d),_0x483ba2);},'onBalloonClosed':()=>{const _0x6c84d5=_0x33574d;this[_0x6c84d5(0x220)][_0x6c84d5(0x270)]=!0x1;},'getLimiterElement':()=>this[_0x33574d(0x27b)](),'getTargetElement':()=>this[_0x33574d(0x220)][_0x33574d(0x202)]};return new _0x257b9a(_0x514140,_0x47e9f2[_0x33574d(0x262)],_0x446c72);}[_0x5954e3(0x27b)](){const _0x2b49a5=_0x5954e3;return this[_0x2b49a5(0x202)]?.[_0x2b49a5(0x224)]('.'+Mo)||document[_0x2b49a5(0x21f)];}[_0x5954e3(0x1f0)](_0x2944d6,_0x5752f7){const _0x4a8aea=_0x5954e3,_0x10b0a8=new _0x2c7ae8(_0x2944d6);return _0x10b0a8[_0x4a8aea(0x22d)]({'attributes':{'class':_0x5752f7}}),this[_0x4a8aea(0x262)][_0x4a8aea(0x24c)](_0x10b0a8),_0x10b0a8;}[_0x5954e3(0x239)](_0x1eb030,_0x6b62a1,_0xdf5b9a){const _0x48a88c=_0x5954e3;if(_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x201)](),!_0xdf5b9a[_0x48a88c(0x236)][_0x48a88c(0x1fd)]&&_0xdf5b9a[_0x48a88c(0x236)][_0x48a88c(0x1fc)]){const _0x14e854=this[_0x48a88c(0x1f9)](_0x6b62a1,{'label':_0x245725(_0x6b62a1,_0x48a88c(0x243)),'icon':_0x2396fc});_0x14e854['on'](_0x48a88c(0x256),()=>{const _0x2d7666=_0x48a88c;this[_0x2d7666(0x227)](_0x2d7666(0x20d)),this[_0x2d7666(0x247)]();}),_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x24c)](_0x14e854);}if(_0xdf5b9a[_0x48a88c(0x216)][_0x48a88c(0x1fc)]){const _0x6cbebd=this[_0x48a88c(0x1f9)](_0x6b62a1,{'label':_0x245725(_0x6b62a1,_0x48a88c(0x246)),'icon':_0x4ff0c6});_0x6cbebd['on'](_0x48a88c(0x256),()=>{const _0x4082e4=_0x48a88c;this[_0x4082e4(0x247)](),this[_0x4082e4(0x23c)](),this[_0x4082e4(0x219)][_0x4082e4(0x263)]({'target':this[_0x4082e4(0x220)][_0x4082e4(0x202)],'limiter':this[_0x4082e4(0x27b)](),'positions':Ho}),this[_0x4082e4(0x1f7)][_0x4082e4(0x26e)]();}),_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x24c)](_0x6cbebd);}if(_0xdf5b9a[_0x48a88c(0x203)][_0x48a88c(0x1fc)]){const _0x13630d=new _0x42329f(_0x6b62a1);_0x13630d[_0x48a88c(0x27d)]({'label':_0x245725(_0x6b62a1,_0x48a88c(0x248)),'icon':_0xd6a1b0,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x13630d['on'](_0x48a88c(0x26a),(_0x340f46,_0x31d441)=>{const _0x4679f4=_0x48a88c;this[_0x4679f4(0x227)](_0x4679f4(0x1f4),_0x31d441),this[_0x4679f4(0x247)]();}),_0x13630d[_0x48a88c(0x212)]=!0x0,_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x24c)](_0x13630d);}for(const _0x44de6b of _0xdf5b9a[_0x48a88c(0x250)]){const _0x45e2a2=this[_0x48a88c(0x1f9)](_0x6b62a1,{'label':_0x44de6b[_0x48a88c(0x20c)],'icon':_0x44de6b[_0x48a88c(0x20b)]||_0x45372a,'type':_0x48a88c(0x21a)});_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x24c)](_0x45e2a2),_0x45e2a2['on'](_0x48a88c(0x256),()=>{const _0x1d7af0=_0x48a88c;this[_0x1d7af0(0x247)](),this[_0x1d7af0(0x22b)](_0x44de6b);});}}[_0x5954e3(0x223)](_0x3be987,_0x1b9eeb){const _0x17ed2c=_0x5954e3;this[_0x17ed2c(0x1f7)]=new _0x3919f7(_0x1b9eeb),this[_0x17ed2c(0x1f7)]['on'](_0x17ed2c(0x206),(_0x12d745,_0x131054)=>{const _0x3c135c=_0x17ed2c;this[_0x3c135c(0x25e)](_0x131054);}),this[_0x17ed2c(0x1f7)]['on'](_0x17ed2c(0x24b),()=>{const _0x4422ce=_0x17ed2c;this[_0x4422ce(0x1fa)](),this[_0x4422ce(0x228)](),this[_0x4422ce(0x259)][_0x4422ce(0x263)]({'target':this[_0x4422ce(0x220)][_0x4422ce(0x202)],'limiter':this[_0x4422ce(0x27b)](),'positions':Ho});}),this[_0x17ed2c(0x1f7)]['on'](_0x17ed2c(0x242),()=>{const _0x2f8ebf=_0x17ed2c;this[_0x2f8ebf(0x219)][_0x2f8ebf(0x245)]&&this[_0x2f8ebf(0x219)][_0x2f8ebf(0x263)]({'target':this[_0x2f8ebf(0x220)][_0x2f8ebf(0x202)],'limiter':this[_0x2f8ebf(0x27b)](),'positions':Ho});}),_0x3be987[_0x17ed2c(0x217)][_0x17ed2c(0x24c)](this[_0x17ed2c(0x1f7)]);}[_0x5954e3(0x1f9)](_0x5cbe0a,_0xa909b3){const _0x20ff69=_0x5954e3,_0x353809=_0x20ff69(0x21a)===_0xa909b3[_0x20ff69(0x261)]?new SourcesBalloonButtonView(_0x5cbe0a):new _0x40dae2(_0x5cbe0a);return _0x353809[_0x20ff69(0x27d)]({'label':_0xa909b3[_0x20ff69(0x20c)],'icon':_0xa909b3[_0x20ff69(0x20b)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x353809;}[_0x5954e3(0x1f3)](){const _0x20eb8c=_0x5954e3;this[_0x20eb8c(0x1ff)](),this[_0x20eb8c(0x213)]();}[_0x5954e3(0x213)](){const _0xadc78=_0x5954e3;_0x24dd19({'emitter':this[_0xadc78(0x219)],'contextElements':[this[_0xadc78(0x219)][_0xadc78(0x202)]],'callback':()=>{const _0x571936=_0xadc78;this[_0x571936(0x1fa)]();},'activator':()=>this[_0xadc78(0x219)][_0xadc78(0x245)]});}[_0x5954e3(0x26f)](_0x52a60a){const _0x5da277=_0x5954e3,_0x280ced=this[_0x5da277(0x226)];_0x280ced[_0x5da277(0x27a)][_0x5da277(0x270)]=_0x52a60a,_0x52a60a?_0x280ced[_0x5da277(0x273)][_0x5da277(0x225)]():_0x280ced[_0x5da277(0x273)][_0x5da277(0x255)]();}[_0x5954e3(0x1ff)](){const _0x4e55e0=_0x5954e3,{balloonView:_0x16e772,buttonView:_0x68b4bf,hideMethod:_0xce3754}=this[_0x4e55e0(0x226)];_0x24dd19({'emitter':_0x16e772,'contextElements':[_0x16e772[_0x4e55e0(0x202)],_0x68b4bf[_0x4e55e0(0x202)]],'callback':()=>{_0xce3754();},'activator':()=>_0x68b4bf[_0x4e55e0(0x270)]&&!this[_0x4e55e0(0x219)][_0x4e55e0(0x245)]&&!this[_0x4e55e0(0x1f6)][_0x4e55e0(0x240)]()});}[_0x5954e3(0x257)](_0x4a6591,_0x39c838,_0x53b430=!0x1,_0x582913=!0x1){const _0x15ecec=_0x5954e3,_0x3bdd1f=_0x15ecec(0x254)===_0x39c838||!0x0===_0x4a6591[_0x15ecec(0x215)],_0x32633f=new _0x25e2d8(this[_0x15ecec(0x233)],_0x4a6591,_0x3bdd1f,_0x53b430,_0x582913);return _0x3bdd1f||_0x32633f['on'](_0x15ecec(0x20f),()=>{const _0x4c3827=_0x15ecec;this[_0x4c3827(0x227)](_0x4c3827(0x23d),_0x32633f['id']);}),_0x32633f;}[_0x5954e3(0x232)](_0x3525c1,_0x20fa59){const _0x3dad29=_0x5954e3;_0x20fa59[_0x3dad29(0x24c)](_0x3525c1,0x0);}[_0x5954e3(0x27c)](_0x5b378f,_0x1cb47b){const _0x10c420=_0x5954e3,_0x32e3b6=_0x1cb47b[_0x10c420(0x24d)](_0x46ec0d=>_0x46ec0d['id']===_0x5b378f);_0x32e3b6&&_0x1cb47b[_0x10c420(0x237)](_0x32e3b6);}[_0x5954e3(0x258)](){const _0x1b0f4e=_0x5954e3;this[_0x1b0f4e(0x220)][_0x1b0f4e(0x270)]?this[_0x1b0f4e(0x247)]():(this[_0x1b0f4e(0x228)](),this[_0x1b0f4e(0x259)][_0x1b0f4e(0x263)]({'target':this[_0x1b0f4e(0x220)][_0x1b0f4e(0x202)],'limiter':this[_0x1b0f4e(0x27b)](),'positions':Ho}));}[_0x5954e3(0x25e)](_0x485473){const _0x37712a=_0x5954e3;this[_0x37712a(0x1f7)][_0x37712a(0x201)](),this[_0x37712a(0x1fa)](),this[_0x37712a(0x227)](_0x37712a(0x222),_0x485473);}}export class SourcesBalloonButtonView extends _0x40dae2{[_0x5954e3(0x277)];constructor(_0x5b9f56){const _0xf530f0=_0x5954e3;super(_0x5b9f56),this[_0xf530f0(0x27d)]({'withText':!0x0,'role':_0xf530f0(0x1f8)}),this[_0xf530f0(0x277)]=this[_0xf530f0(0x1f2)](),this[_0xf530f0(0x22d)]({'attributes':{'class':[Ro]}});}[_0x5954e3(0x264)](){const _0x5b9a7e=_0x5954e3;super[_0x5b9a7e(0x264)](),this[_0x5b9a7e(0x204)][_0x5b9a7e(0x24c)](this[_0x5b9a7e(0x277)]);}[_0x5954e3(0x1f2)](){const _0x11163f=_0x5954e3,_0x1dedd6=new _0x543a0f();return _0x1dedd6[_0x11163f(0x217)]=_0x51f472,_0x1dedd6[_0x11163f(0x22d)]({'attributes':{'class':Ro+_0x11163f(0x25b)}}),_0x1dedd6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5869(_0x491e58,_0x36ec77){const _0x293291=_0x2932();return _0x5869=function(_0x5869b1,_0x28c9eb){_0x5869b1=_0x5869b1-0x1a1;let _0x23e61d=_0x293291[_0x5869b1];return _0x23e61d;},_0x5869(_0x491e58,_0x36ec77);}const _0x24095d=_0x5869;(function(_0x1522bd,_0x542cf7){const _0xcd4432=_0x5869,_0x4bf8a1=_0x1522bd();while(!![]){try{const _0x244360=parseInt(_0xcd4432(0x1a9))/0x1*(-parseInt(_0xcd4432(0x1ab))/0x2)+-parseInt(_0xcd4432(0x1ad))/0x3*(-parseInt(_0xcd4432(0x1a2))/0x4)+parseInt(_0xcd4432(0x1bc))/0x5+-parseInt(_0xcd4432(0x1a3))/0x6*(-parseInt(_0xcd4432(0x1ba))/0x7)+parseInt(_0xcd4432(0x1af))/0x8*(-parseInt(_0xcd4432(0x1aa))/0x9)+-parseInt(_0xcd4432(0x1b9))/0xa*(parseInt(_0xcd4432(0x1b2))/0xb)+-parseInt(_0xcd4432(0x1b3))/0xc*(-parseInt(_0xcd4432(0x1b6))/0xd);if(_0x244360===_0x542cf7)break;else _0x4bf8a1['push'](_0x4bf8a1['shift']());}catch(_0x246a2a){_0x4bf8a1['push'](_0x4bf8a1['shift']());}}}(_0x2932,0x66bd6));import{ButtonView as _0x4adeae,View as _0x4d1bd5}from'ckeditor5/src/ui.js';import{IconStop as _0x24b79f}from'ckeditor5/src/icons.js';import{getTranslation as _0x22092d}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x4d1bd5{[_0x24095d(0x1b4)];[_0x24095d(0x1a6)];constructor(_0x36fb2e){const _0x22a4b0=_0x24095d;super(_0x36fb2e),this[_0x22a4b0(0x1b4)]=this[_0x22a4b0(0x1c0)](),this[_0x22a4b0(0x1a6)]=this[_0x22a4b0(0x1a4)](),this[_0x22a4b0(0x1a5)]({'tag':_0x22a4b0(0x1b5),'attributes':{'class':['ck',_0x22a4b0(0x1be),_0x22a4b0(0x1ac)]},'children':[this[_0x22a4b0(0x1a6)],this[_0x22a4b0(0x1b4)]]});}[_0x24095d(0x1c0)](){const _0xe9cacd=_0x24095d,_0x4f20dd=new _0x4adeae(this[_0xe9cacd(0x1b0)]);return _0x4f20dd[_0xe9cacd(0x1bf)]({'label':_0x22092d(this[_0xe9cacd(0x1b0)],_0xe9cacd(0x1ae)),'withText':!0x0,'class':_0xe9cacd(0x1a8),'icon':_0x24b79f}),_0x4f20dd['on'](_0xe9cacd(0x1b1),()=>{const _0x6bff07=_0xe9cacd;this[_0x6bff07(0x1a1)](_0x6bff07(0x1bb));}),_0x4f20dd;}[_0x24095d(0x1a4)](){const _0x257f4f=_0x24095d,_0x3c2c09=new _0x4d1bd5(this[_0x257f4f(0x1b0)]);return _0x3c2c09[_0x257f4f(0x1a5)]({'tag':_0x257f4f(0x1b5),'attributes':{'class':[_0x257f4f(0x1a7)]},'children':[{'tag':_0x257f4f(0x1b5),'attributes':{'class':[_0x257f4f(0x1b8)]},'children':[{'tag':_0x257f4f(0x1b5),'attributes':{'class':[_0x257f4f(0x1bd)]}},{'tag':_0x257f4f(0x1b5),'attributes':{'class':[_0x257f4f(0x1bd)]}},{'tag':_0x257f4f(0x1b5),'attributes':{'class':[_0x257f4f(0x1bd)]}}]},{'text':_0x22092d(this[_0x257f4f(0x1b0)],_0x257f4f(0x1b7))}]}),_0x3c2c09;}}function _0x2932(){const _0x5d8e96=['9632VItkNv','abortPromptStream','2279055HfcTkn','ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader-wrapper','set','_createCancelButtonView','fire','12fzhqvZ','2562nKKLfI','_createLoaderView','setTemplate','_loaderView','ck-ai-chat-controls-loader','ck-ai-button-secondary\x20ck-ai-button-stop-generating','3qOzQEy','18nCQrqv','359246jEQvaM','ck-reset_all','246369bubxUw','AI_CHAT_STOP_GENERATING','761296cCaPEq','locale','execute','191543SKZTHj','1564692VAlYjF','_cancelButtonView','div','26vMgYeQ','AI_CHAT_IS_WRITING','ck-ai-chat-controls-loader-icon','230JjdnLj'];_0x2932=function(){return _0x5d8e96;};return _0x2932();}
23
+ const _0x27bc96=_0x496c;(function(_0x4d22ec,_0x5eb8a3){const _0x95ca68=_0x496c,_0x198864=_0x4d22ec();while(!![]){try{const _0x4b4968=-parseInt(_0x95ca68(0x10c))/0x1+-parseInt(_0x95ca68(0x11f))/0x2*(-parseInt(_0x95ca68(0x10d))/0x3)+-parseInt(_0x95ca68(0x11a))/0x4+parseInt(_0x95ca68(0x10b))/0x5+parseInt(_0x95ca68(0x111))/0x6*(-parseInt(_0x95ca68(0x123))/0x7)+-parseInt(_0x95ca68(0x120))/0x8*(-parseInt(_0x95ca68(0x108))/0x9)+-parseInt(_0x95ca68(0x115))/0xa*(-parseInt(_0x95ca68(0x121))/0xb);if(_0x4b4968===_0x5eb8a3)break;else _0x198864['push'](_0x198864['shift']());}catch(_0x5039f4){_0x198864['push'](_0x198864['shift']());}}}(_0x26ea,0x4c5f5));function _0x26ea(){const _0x262053=['locale','ck-ai-chat-controls-loader-icon','72940qsJrIl','56KlxMPj','7182274tamCHM','execute','283115AQQrAy','_loaderView','ck-ai-chat-controls-loader-wrapper','616149KSphPL','_createLoaderView','AI_CHAT_STOP_GENERATING','1241225FUXIjl','452201yDDulM','3AKJmeD','ck-reset_all','fire','setTemplate','60OocEAi','ck-ai-chat-controls-loader-icon-dot','set','_cancelButtonView','10CdjYqz','AI_CHAT_IS_WRITING','div','_createCancelButtonView','ck-ai-chat-controls-loader','989616eWmfpe','abortPromptStream','ck-ai-button-secondary\x20ck-ai-button-stop-generating'];_0x26ea=function(){return _0x262053;};return _0x26ea();}function _0x496c(_0x82e6d4,_0x3d4a19){const _0x26ea86=_0x26ea();return _0x496c=function(_0x496c04,_0x1a7a93){_0x496c04=_0x496c04-0x106;let _0x2971a0=_0x26ea86[_0x496c04];return _0x2971a0;},_0x496c(_0x82e6d4,_0x3d4a19);}import{ButtonView as _0x34c446,View as _0x27902f}from'ckeditor5/src/ui.js';import{IconStop as _0x47564a}from'ckeditor5/src/icons.js';import{getTranslation as _0x1f20a1}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x27902f{[_0x27bc96(0x114)];[_0x27bc96(0x106)];constructor(_0x3170be){const _0x3fe6bc=_0x27bc96;super(_0x3170be),this[_0x3fe6bc(0x114)]=this[_0x3fe6bc(0x118)](),this[_0x3fe6bc(0x106)]=this[_0x3fe6bc(0x109)](),this[_0x3fe6bc(0x110)]({'tag':_0x3fe6bc(0x117),'attributes':{'class':['ck',_0x3fe6bc(0x107),_0x3fe6bc(0x10e)]},'children':[this[_0x3fe6bc(0x106)],this[_0x3fe6bc(0x114)]]});}[_0x27bc96(0x118)](){const _0x264d2d=_0x27bc96,_0x4bb58b=new _0x34c446(this[_0x264d2d(0x11d)]);return _0x4bb58b[_0x264d2d(0x113)]({'label':_0x1f20a1(this[_0x264d2d(0x11d)],_0x264d2d(0x10a)),'withText':!0x0,'class':_0x264d2d(0x11c),'icon':_0x47564a}),_0x4bb58b['on'](_0x264d2d(0x122),()=>{const _0x3a0adc=_0x264d2d;this[_0x3a0adc(0x10f)](_0x3a0adc(0x11b));}),_0x4bb58b;}[_0x27bc96(0x109)](){const _0x4eecbd=_0x27bc96,_0x2ed0e9=new _0x27902f(this[_0x4eecbd(0x11d)]);return _0x2ed0e9[_0x4eecbd(0x110)]({'tag':_0x4eecbd(0x117),'attributes':{'class':[_0x4eecbd(0x119)]},'children':[{'tag':_0x4eecbd(0x117),'attributes':{'class':[_0x4eecbd(0x11e)]},'children':[{'tag':_0x4eecbd(0x117),'attributes':{'class':[_0x4eecbd(0x112)]}},{'tag':_0x4eecbd(0x117),'attributes':{'class':[_0x4eecbd(0x112)]}},{'tag':_0x4eecbd(0x117),'attributes':{'class':[_0x4eecbd(0x112)]}}]},{'text':_0x1f20a1(this[_0x4eecbd(0x11d)],_0x4eecbd(0x116))}]}),_0x2ed0e9;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x40bcbd=_0x251a;(function(_0x5e2b1b,_0x435cd9){const _0x3eea7a=_0x251a,_0x1a6c59=_0x5e2b1b();while(!![]){try{const _0x12b3d7=parseInt(_0x3eea7a(0x16b))/0x1+parseInt(_0x3eea7a(0x146))/0x2*(-parseInt(_0x3eea7a(0x121))/0x3)+parseInt(_0x3eea7a(0x149))/0x4+-parseInt(_0x3eea7a(0x131))/0x5+parseInt(_0x3eea7a(0x14e))/0x6*(-parseInt(_0x3eea7a(0x173))/0x7)+-parseInt(_0x3eea7a(0x170))/0x8+parseInt(_0x3eea7a(0x14b))/0x9*(parseInt(_0x3eea7a(0x136))/0xa);if(_0x12b3d7===_0x435cd9)break;else _0x1a6c59['push'](_0x1a6c59['shift']());}catch(_0x12cd25){_0x1a6c59['push'](_0x1a6c59['shift']());}}}(_0x271c,0x53c38));import{Collection as _0x1c9a6e}from'ckeditor5/src/utils.js';import{IconAI as _0x22aa76,IconBulb as _0x56c59f,IconWeb as _0x46c587}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x45ee95,ButtonLabelView as _0x436a65,ButtonView as _0x382bbc,createDropdown as _0xbc1299,IconView as _0x417346,UIModel as _0x2d9e71,View as _0x163ac1}from'ckeditor5/src/ui.js';import{getTranslation as _0x4d7ce3}from'../../../aicore/utils/common-translations.js';import{AIModels as _0x44ad30}from'../../../aicore/model/aimodels.js';function _0x271c(){const _0x53aa1d=['add','name','AI_CHAT_DISABLE_WEB_SEARCH','text','addMany','AI_CHAT_DISABLE_REASONING','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','363741ZPMnvC','model','_createWebSearchButton','withText','ck-ai-chat-controls-button','5450384HnxIBV','locale','AI_CHAT_SEARCH_WEB','175fqBvfJ','enabled','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','length','_reasoningButton','modelSelectorVisible','setReasoning','tooltip','selectModel','ck-hidden','toLowerCase','_createReasoningButton','style','setModel','_getCapabilityParts','AI_CHAT_REASONING','extendTemplate','_createModelNameView','1871637vusbuw','agent','ck-ai-chat-controls-button--commands','reasoningActive','disableModelSelector','ck-ai-chat-controls__model-name','_modelNameView','setModelList','capabilities','activeModelName','ck-ai-chat-controls__model-selection','source','setWebSearch','setTemplate','toggleWebSearch','Commands\x20are\x20not\x20implemented\x20yet.','1753315njotzS','span','ck-ai-chat-controls__model-selection__item-name','isEnabled','content','100ySmBSq','bind','_createModelSelectionDropdown','ck-ai-chat-controls__model-selection__item-capabilities','_createCommandsButton','isVisible','label','createCollection','toggleReasoning','reasoning','_webSearchButton','listenTo','_modelSelectionDropdown','ck-button__label','AI_CHAT_CAPABILITIES_YES','set','2AYzydH','menuitemradio','div','588280RJFOvQ','AI_CHAT_CAPABILITIES_NO','1935585YsnoAr','_modelSelectionDropdownItems','buttonView','159006ZeSHWg','enableModelSelector','modelSelectorEnabled','activeModelId','webSearchActive','webSearch','AI_CHAT_COMMANDS','getLocalized','clear','bindTemplate','AI_CHAT_ENABLE_REASONING','startsWith','ck-ai-chat-controls__model-selection__item-description','AI_CHAT_ENABLE_WEB_SEARCH','fire','description','isOn','_commandsButton','execute','ck-ai-chat__prompt-capabilities','button','log'];_0x271c=function(){return _0x53aa1d;};return _0x271c();}const yo=_0x40bcbd(0x161),Lo=_0x40bcbd(0x16f),Go=_0x40bcbd(0x123),Yo=_0x40bcbd(0x12b),qo=_0x40bcbd(0x133),zo=_0x40bcbd(0x15a),Fo=_0x40bcbd(0x139),Jo='n';export class AIChatPromptCapabilitiesView extends _0x163ac1{[_0x40bcbd(0x140)];[_0x40bcbd(0x177)];[_0x40bcbd(0x15f)];[_0x40bcbd(0x142)];[_0x40bcbd(0x14c)];[_0x40bcbd(0x127)];constructor(_0x3d855a){const _0x14fac5=_0x40bcbd;super(_0x3d855a),this[_0x14fac5(0x145)](_0x14fac5(0x152),!0x1),this[_0x14fac5(0x145)](_0x14fac5(0x124),!0x1),this[_0x14fac5(0x145)](_0x14fac5(0x178),!0x0),this[_0x14fac5(0x145)](_0x14fac5(0x150),!0x0),this[_0x14fac5(0x145)](_0x14fac5(0x151),null),this[_0x14fac5(0x145)](_0x14fac5(0x12a),null),this[_0x14fac5(0x142)]=this[_0x14fac5(0x138)](),this[_0x14fac5(0x127)]=this[_0x14fac5(0x120)](),this[_0x14fac5(0x140)]=this[_0x14fac5(0x16d)](),this[_0x14fac5(0x177)]=this[_0x14fac5(0x11a)](),this[_0x14fac5(0x15f)]=this[_0x14fac5(0x13a)](),this[_0x14fac5(0x142)][_0x14fac5(0x14d)][_0x14fac5(0x137)](_0x14fac5(0x13b))['to'](this,_0x14fac5(0x178),_0x3a1a63=>_0x3a1a63),this[_0x14fac5(0x142)][_0x14fac5(0x14d)][_0x14fac5(0x137)](_0x14fac5(0x17a))['to'](this,_0x14fac5(0x150),_0x3c7be2=>_0x3c7be2?this[_0x14fac5(0x142)][_0x14fac5(0x14d)][_0x14fac5(0x13c)]:_0x4d7ce3(this[_0x14fac5(0x171)],_0x14fac5(0x175))),this[_0x14fac5(0x142)][_0x14fac5(0x137)](_0x14fac5(0x134))['to'](this,_0x14fac5(0x150),_0x421445=>_0x421445),this[_0x14fac5(0x140)][_0x14fac5(0x137)](_0x14fac5(0x15e))['to'](this,_0x14fac5(0x152),_0x90516c=>_0x90516c),this[_0x14fac5(0x140)][_0x14fac5(0x137)](_0x14fac5(0x16e))['to'](this,_0x14fac5(0x178),_0x3084a4=>!_0x3084a4),this[_0x14fac5(0x140)][_0x14fac5(0x137)](_0x14fac5(0x17a))['to'](this,_0x14fac5(0x152),_0x2b5660=>_0x4d7ce3(this[_0x14fac5(0x171)],_0x2b5660?_0x14fac5(0x166):_0x14fac5(0x15b))),this[_0x14fac5(0x177)][_0x14fac5(0x137)](_0x14fac5(0x15e))['to'](this,_0x14fac5(0x124),_0x55dd34=>_0x55dd34),this[_0x14fac5(0x177)][_0x14fac5(0x137)](_0x14fac5(0x16e))['to'](this,_0x14fac5(0x178),_0x25b416=>!_0x25b416),this[_0x14fac5(0x177)][_0x14fac5(0x137)](_0x14fac5(0x17a))['to'](this,_0x14fac5(0x124),_0x5c5b98=>_0x4d7ce3(this[_0x14fac5(0x171)],_0x5c5b98?_0x14fac5(0x169):_0x14fac5(0x158))),this[_0x14fac5(0x12e)]({'tag':_0x14fac5(0x148),'attributes':{'class':[yo]},'children':[this[_0x14fac5(0x142)],this[_0x14fac5(0x127)],this[_0x14fac5(0x140)],this[_0x14fac5(0x177)],this[_0x14fac5(0x15f)]]}),this[_0x14fac5(0x14c)]=new _0x1c9a6e(),_0x45ee95(this[_0x14fac5(0x142)],this[_0x14fac5(0x14c)]);}[_0x40bcbd(0x128)](_0x2465a5,_0x139a9b){const _0x15f7b2=_0x40bcbd;if(this[_0x15f7b2(0x145)](_0x15f7b2(0x178),!(_0x139a9b&&_0x2465a5[_0x15f7b2(0x176)]<=0x1)),this[_0x15f7b2(0x14c)][_0x15f7b2(0x156)](),_0x2465a5?.[_0x15f7b2(0x176)]){const _0x1e8c70=_0x44ad30[_0x15f7b2(0x155)](this[_0x15f7b2(0x171)],_0x2465a5);for(const _0x1f7654 of _0x1e8c70){const _0x54a13b=new _0x2d9e71({'label':_0x1f7654[_0x15f7b2(0x165)],'withText':!0x0,'role':_0x15f7b2(0x147),'id':_0x1f7654['id'],'model':_0x1f7654});_0x54a13b[_0x15f7b2(0x137)](_0x15f7b2(0x15e))['to'](this,_0x15f7b2(0x151),_0x5cb21a=>_0x5cb21a===_0x1f7654['id']),this[_0x15f7b2(0x14c)][_0x15f7b2(0x164)]({'type':_0x15f7b2(0x162),'model':_0x54a13b,'labelView':new Ys(this[_0x15f7b2(0x171)],_0x1f7654)});}}}[_0x40bcbd(0x12d)](_0x2ccd3b){const _0x38fc13=_0x40bcbd;this[_0x38fc13(0x145)](_0x38fc13(0x152),_0x2ccd3b);}[_0x40bcbd(0x179)](_0x5648be){const _0x1be78a=_0x40bcbd;this[_0x1be78a(0x145)](_0x1be78a(0x124),_0x5648be);}[_0x40bcbd(0x11c)](_0x4e8e31){const _0x1f980b=_0x40bcbd;if(!_0x4e8e31)return;this[_0x1f980b(0x151)]=_0x4e8e31['id'],this[_0x1f980b(0x12a)]=_0x4e8e31[_0x1f980b(0x165)]||_0x4e8e31['id'],this[_0x1f980b(0x142)][_0x1f980b(0x14d)][_0x1f980b(0x145)](_0x1f980b(0x13c),_0x4e8e31[_0x1f980b(0x165)]),this[_0x1f980b(0x142)][_0x1f980b(0x14d)][_0x1f980b(0x145)](_0x1f980b(0x17a),_0x4e8e31[_0x1f980b(0x165)]);const _0x117af4=_0x4e8e31[_0x1f980b(0x129)][_0x1f980b(0x153)]?.[_0x1f980b(0x174)]??!0x1;this[_0x1f980b(0x145)](_0x1f980b(0x152),!0x1),this[_0x1f980b(0x140)][_0x1f980b(0x145)](_0x1f980b(0x15e),!0x1),this[_0x1f980b(0x140)][_0x1f980b(0x145)](_0x1f980b(0x134),_0x117af4),this[_0x1f980b(0x140)][_0x1f980b(0x145)](_0x1f980b(0x13b),_0x117af4);const _0xafccae=_0x4e8e31[_0x1f980b(0x129)][_0x1f980b(0x13f)]?.[_0x1f980b(0x174)]??!0x1;this[_0x1f980b(0x145)](_0x1f980b(0x124),!0x1),this[_0x1f980b(0x177)][_0x1f980b(0x145)](_0x1f980b(0x15e),!0x1),this[_0x1f980b(0x177)][_0x1f980b(0x145)](_0x1f980b(0x134),_0xafccae),this[_0x1f980b(0x177)][_0x1f980b(0x145)](_0x1f980b(0x13b),_0xafccae);}[_0x40bcbd(0x14f)](){const _0xa8b862=_0x40bcbd;this[_0xa8b862(0x145)](_0xa8b862(0x150),!0x0),this[_0xa8b862(0x145)](_0xa8b862(0x178),!0x0);}[_0x40bcbd(0x125)](_0x308a88){const _0x2160c4=_0x40bcbd;this[_0x2160c4(0x145)](_0x2160c4(0x150),!0x1),_0x308a88&&this[_0x2160c4(0x145)](_0x2160c4(0x178),!0x1);}[_0x40bcbd(0x16d)](){const _0xcef17a=_0x40bcbd,_0x452181=new _0x382bbc();return _0x452181[_0xcef17a(0x145)]({'label':_0x4d7ce3(this[_0xcef17a(0x171)],_0xcef17a(0x172)),'icon':_0x46c587,'class':Lo,'isToggleable':!0x0,'tooltipPosition':Jo}),_0x452181['on'](_0xcef17a(0x160),()=>{const _0x4357bd=_0xcef17a;this[_0x4357bd(0x15c)](_0x4357bd(0x12f));}),_0x452181;}[_0x40bcbd(0x11a)](){const _0x56a63b=_0x40bcbd,_0x21dd03=new _0x382bbc();return _0x21dd03[_0x56a63b(0x145)]({'label':_0x4d7ce3(this[_0x56a63b(0x171)],_0x56a63b(0x11e)),'icon':_0x56c59f,'class':Lo,'isToggleable':!0x0,'tooltipPosition':Jo}),_0x21dd03['on'](_0x56a63b(0x160),()=>{const _0x3ff00d=_0x56a63b;this[_0x3ff00d(0x15c)](_0x3ff00d(0x13e));}),_0x21dd03;}[_0x40bcbd(0x13a)](){const _0x1d7809=_0x40bcbd,_0x51cd1=new _0x382bbc();return _0x51cd1[_0x1d7809(0x145)]({'label':_0x4d7ce3(this[_0x1d7809(0x171)],_0x1d7809(0x154)),'icon':_0x22aa76,'withText':!0x0,'class':Lo,'isToggleable':!0x0,'tooltip':_0x4d7ce3(this[_0x1d7809(0x171)],_0x1d7809(0x154)),'tooltipPosition':Jo}),_0x51cd1[_0x1d7809(0x11f)]({'attributes':{'class':[Go]}}),_0x51cd1['on'](_0x1d7809(0x160),()=>{const _0x724089=_0x1d7809;console[_0x724089(0x163)](_0x724089(0x130)),alert(_0x724089(0x130));}),_0x51cd1;}[_0x40bcbd(0x138)](){const _0x4197e7=_0x40bcbd,_0x30c9a9=_0xbc1299(this[_0x4197e7(0x171)]);return _0x30c9a9[_0x4197e7(0x145)]({'panelPosition':'ne','class':[Yo]}),_0x30c9a9[_0x4197e7(0x14d)][_0x4197e7(0x145)]({'label':_0x4d7ce3(this[_0x4197e7(0x171)],_0x4197e7(0x16a)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Jo}),this[_0x4197e7(0x141)](_0x30c9a9,_0x4197e7(0x160),_0x4a59e3=>{const _0x1201fc=_0x4197e7;this[_0x1201fc(0x15c)](_0x1201fc(0x117),_0x4a59e3[_0x1201fc(0x12c)][_0x1201fc(0x16c)]);}),_0x30c9a9;}[_0x40bcbd(0x120)](){const _0x48091a=_0x40bcbd,_0x3d97d4=new Ko(this[_0x48091a(0x171)]);return _0x3d97d4[_0x48091a(0x137)](_0x48091a(0x167))['to'](this,_0x48091a(0x12a),_0x580bf2=>_0x580bf2??''),_0x3d97d4[_0x48091a(0x137)](_0x48091a(0x13b))['to'](this,_0x48091a(0x178),this,_0x48091a(0x12a),(_0x1097cf,_0x4d0e2b)=>!_0x1097cf&&!_0x4d0e2b?.[_0x48091a(0x119)]()[_0x48091a(0x159)](_0x48091a(0x122))),_0x3d97d4;}}class Ys extends _0x436a65{constructor(_0x4d3ab5,_0x421178){const _0x3c9101=_0x40bcbd;super();const _0x1aba26=this[_0x3c9101(0x157)],_0x100479=this[_0x3c9101(0x13d)]();this[_0x3c9101(0x12e)]({'tag':_0x3c9101(0x148),'attributes':{'class':['ck',_0x3c9101(0x143)],'style':_0x1aba26['to'](_0x3c9101(0x11b)),'id':_0x1aba26['to']('id')},'children':[{'tag':_0x3c9101(0x148),'attributes':{'class':[qo]},'children':[{'text':_0x1aba26['to'](_0x3c9101(0x167))}]},{'tag':_0x3c9101(0x148),'attributes':{'class':[zo]},'children':[{'tag':_0x3c9101(0x132),'children':[{'text':_0x421178[_0x3c9101(0x15d)]}]}]},{'tag':_0x3c9101(0x148),'attributes':{'class':[Fo]},'children':_0x100479}]}),_0x100479[_0x3c9101(0x168)](this[_0x3c9101(0x11d)](_0x4d3ab5,_0x46c587,_0x3c9101(0x172),_0x421178[_0x3c9101(0x129)][_0x3c9101(0x153)]?.[_0x3c9101(0x174)]??!0x1)),_0x100479[_0x3c9101(0x168)](this[_0x3c9101(0x11d)](_0x4d3ab5,_0x56c59f,_0x3c9101(0x11e),_0x421178[_0x3c9101(0x129)][_0x3c9101(0x13f)]?.[_0x3c9101(0x174)]??!0x1));}[_0x40bcbd(0x11d)](_0x40addf,_0x7e37f0,_0x37cf87,_0x3ffbb6){const _0x22dd5d=_0x40bcbd,_0x1b432d=new _0x417346();_0x1b432d[_0x22dd5d(0x135)]=_0x7e37f0;const _0x4c5c6e=new _0x163ac1(_0x40addf);_0x4c5c6e[_0x22dd5d(0x12e)]({'tag':_0x22dd5d(0x132),'children':[{'text':_0x4d7ce3(_0x40addf,_0x37cf87)+':\x20'}]});const _0x472c05=new _0x163ac1(_0x40addf);return _0x472c05[_0x22dd5d(0x12e)]({'tag':_0x22dd5d(0x132),'children':[{'text':_0x4d7ce3(_0x40addf,_0x3ffbb6?_0x22dd5d(0x144):_0x22dd5d(0x14a))}]}),[_0x1b432d,_0x4c5c6e,_0x472c05];}}function _0x251a(_0x560af4,_0x5d7b5a){const _0x271cc5=_0x271c();return _0x251a=function(_0x251a72,_0x2c4855){_0x251a72=_0x251a72-0x117;let _0x1ea92f=_0x271cc5[_0x251a72];return _0x1ea92f;},_0x251a(_0x560af4,_0x5d7b5a);}class Ko extends _0x163ac1{constructor(_0x22099b){const _0x1c2bd0=_0x40bcbd;super(_0x22099b),this[_0x1c2bd0(0x145)](_0x1c2bd0(0x167),void 0x0),this[_0x1c2bd0(0x145)](_0x1c2bd0(0x13b),!0x0);const _0x84070d=this[_0x1c2bd0(0x157)];this[_0x1c2bd0(0x12e)]({'tag':_0x1c2bd0(0x132),'attributes':{'class':['ck',_0x1c2bd0(0x126),_0x84070d['if'](_0x1c2bd0(0x13b),_0x1c2bd0(0x118),_0x49288a=>!_0x49288a)]},'children':[{'text':_0x84070d['to'](_0x1c2bd0(0x167))}]});}}
23
+ const _0x2cab27=_0x3b9e;(function(_0x44a564,_0x5dcdf9){const _0x1fc587=_0x3b9e,_0x9bcea3=_0x44a564();while(!![]){try{const _0x132b78=parseInt(_0x1fc587(0x108))/0x1+-parseInt(_0x1fc587(0xf7))/0x2+-parseInt(_0x1fc587(0x12c))/0x3*(-parseInt(_0x1fc587(0x11f))/0x4)+-parseInt(_0x1fc587(0xce))/0x5+-parseInt(_0x1fc587(0x11c))/0x6+parseInt(_0x1fc587(0xf6))/0x7+parseInt(_0x1fc587(0x113))/0x8;if(_0x132b78===_0x5dcdf9)break;else _0x9bcea3['push'](_0x9bcea3['shift']());}catch(_0x1d609e){_0x9bcea3['push'](_0x9bcea3['shift']());}}}(_0x3ded,0xc307f));import{Collection as _0x86c2b5}from'ckeditor5/src/utils.js';import{IconAI as _0x563032,IconBulb as _0x374cf5,IconWeb as _0x2935b8}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x55f88a,ButtonLabelView as _0x2eb945,ButtonView as _0x5ed877,createDropdown as _0xb2153c,IconView as _0x3d2ff4,UIModel as _0x3f36be,View as _0x1812a5}from'ckeditor5/src/ui.js';import{getTranslation as _0x2adf56}from'../../../aicore/utils/common-translations.js';import{AIModels as _0x2b0384}from'../../../aicore/model/aimodels.js';const yo=_0x2cab27(0xd9),Uo=_0x2cab27(0xf4),jo=_0x2cab27(0xd1),Go=_0x2cab27(0xe0),Yo=_0x2cab27(0xec),qo=_0x2cab27(0x119),zo=_0x2cab27(0x115),Fo='n';export class AIChatPromptCapabilitiesView extends _0x1812a5{[_0x2cab27(0x11d)];[_0x2cab27(0xed)];[_0x2cab27(0xf0)];[_0x2cab27(0x106)];[_0x2cab27(0xee)];[_0x2cab27(0xf8)];constructor(_0x4920f2){const _0x2f8851=_0x2cab27;super(_0x4920f2),this[_0x2f8851(0xe6)](_0x2f8851(0x128),!0x1),this[_0x2f8851(0xe6)](_0x2f8851(0x107),!0x1),this[_0x2f8851(0xe6)](_0x2f8851(0xfc),!0x0),this[_0x2f8851(0xe6)](_0x2f8851(0x120),!0x0),this[_0x2f8851(0xe6)](_0x2f8851(0xdb),null),this[_0x2f8851(0xe6)](_0x2f8851(0xe1),null),this[_0x2f8851(0x106)]=this[_0x2f8851(0xda)](),this[_0x2f8851(0xf8)]=this[_0x2f8851(0xf9)](),this[_0x2f8851(0x11d)]=this[_0x2f8851(0x109)](),this[_0x2f8851(0xed)]=this[_0x2f8851(0xdc)](),this[_0x2f8851(0xf0)]=this[_0x2f8851(0xd3)](),this[_0x2f8851(0x106)][_0x2f8851(0xd7)][_0x2f8851(0xd5)](_0x2f8851(0xcf))['to'](this,_0x2f8851(0xfc),_0x2caaae=>_0x2caaae),this[_0x2f8851(0x106)][_0x2f8851(0xd7)][_0x2f8851(0xd5)](_0x2f8851(0xcd))['to'](this,_0x2f8851(0x120),_0x3314a4=>_0x3314a4?this[_0x2f8851(0x106)][_0x2f8851(0xd7)][_0x2f8851(0x129)]:_0x2adf56(this[_0x2f8851(0x11e)],_0x2f8851(0x12d))),this[_0x2f8851(0x106)][_0x2f8851(0xd5)](_0x2f8851(0xde))['to'](this,_0x2f8851(0x120),_0x43b9b1=>_0x43b9b1),this[_0x2f8851(0x11d)][_0x2f8851(0xd5)](_0x2f8851(0x124))['to'](this,_0x2f8851(0x128),_0x22279b=>_0x22279b),this[_0x2f8851(0x11d)][_0x2f8851(0xd5)](_0x2f8851(0x10d))['to'](this,_0x2f8851(0xfc),_0x24ecac=>!_0x24ecac),this[_0x2f8851(0x11d)][_0x2f8851(0xd5)](_0x2f8851(0xcd))['to'](this,_0x2f8851(0x128),_0x19127b=>_0x2adf56(this[_0x2f8851(0x11e)],_0x19127b?_0x2f8851(0x12b):_0x2f8851(0x117))),this[_0x2f8851(0xed)][_0x2f8851(0xd5)](_0x2f8851(0x124))['to'](this,_0x2f8851(0x107),_0x7c18b0=>_0x7c18b0),this[_0x2f8851(0xed)][_0x2f8851(0xd5)](_0x2f8851(0x10d))['to'](this,_0x2f8851(0xfc),_0x38fe6b=>!_0x38fe6b),this[_0x2f8851(0xed)][_0x2f8851(0xd5)](_0x2f8851(0xcd))['to'](this,_0x2f8851(0x107),_0x1841c2=>_0x2adf56(this[_0x2f8851(0x11e)],_0x1841c2?_0x2f8851(0xe7):_0x2f8851(0xcc))),this[_0x2f8851(0x122)]({'tag':_0x2f8851(0xe2),'attributes':{'class':[yo]},'children':[this[_0x2f8851(0x106)],this[_0x2f8851(0xf8)],this[_0x2f8851(0x11d)],this[_0x2f8851(0xed)],this[_0x2f8851(0xf0)]]}),this[_0x2f8851(0xee)]=new _0x86c2b5(),_0x55f88a(this[_0x2f8851(0x106)],this[_0x2f8851(0xee)]);}[_0x2cab27(0xf5)](_0x40ea6b,_0x3cb736){const _0x559462=_0x2cab27;if(this[_0x559462(0xe6)](_0x559462(0xfc),!(_0x3cb736&&_0x40ea6b[_0x559462(0xfa)]<=0x1)),this[_0x559462(0xee)][_0x559462(0xfd)](),_0x40ea6b?.[_0x559462(0xfa)]){const _0x16b223=_0x2b0384[_0x559462(0xeb)](this[_0x559462(0x11e)],_0x40ea6b);for(const _0x20f0aa of _0x16b223){const _0x11f97a=new _0x3f36be({'label':_0x20f0aa[_0x559462(0xef)],'withText':!0x0,'role':_0x559462(0x10f),'id':_0x20f0aa['id'],'model':_0x20f0aa});_0x11f97a[_0x559462(0xd5)](_0x559462(0x124))['to'](this,_0x559462(0xdb),_0x15dbb0=>_0x15dbb0===_0x20f0aa['id']),this[_0x559462(0xee)][_0x559462(0xd6)]({'type':_0x559462(0x126),'model':_0x11f97a,'labelView':new Xs(this[_0x559462(0x11e)],_0x20f0aa)});}}}[_0x2cab27(0xd4)](_0x483e3f){const _0x1b1bc7=_0x2cab27;this[_0x1b1bc7(0xe6)](_0x1b1bc7(0x128),_0x483e3f);}[_0x2cab27(0xea)](_0x54c4ac){const _0x58e884=_0x2cab27;this[_0x58e884(0xe6)](_0x58e884(0x107),_0x54c4ac);}[_0x2cab27(0x12a)](_0x3bb9dc){const _0x1ec460=_0x2cab27;if(!_0x3bb9dc)return;this[_0x1ec460(0xdb)]=_0x3bb9dc['id'],this[_0x1ec460(0xe1)]=_0x3bb9dc[_0x1ec460(0xef)]||_0x3bb9dc['id'],this[_0x1ec460(0x106)][_0x1ec460(0xd7)][_0x1ec460(0xe6)](_0x1ec460(0x129),_0x3bb9dc[_0x1ec460(0xef)]),this[_0x1ec460(0x106)][_0x1ec460(0xd7)][_0x1ec460(0xe6)](_0x1ec460(0xcd),_0x3bb9dc[_0x1ec460(0xef)]);const _0x135222=_0x3bb9dc[_0x1ec460(0x103)][_0x1ec460(0xe4)]?.[_0x1ec460(0x11a)]??!0x1;this[_0x1ec460(0xe6)](_0x1ec460(0x128),!0x1),this[_0x1ec460(0x11d)][_0x1ec460(0xe6)](_0x1ec460(0x124),!0x1),this[_0x1ec460(0x11d)][_0x1ec460(0xe6)](_0x1ec460(0xde),_0x135222),this[_0x1ec460(0x11d)][_0x1ec460(0xe6)](_0x1ec460(0xcf),_0x135222);const _0x6e7103=_0x3bb9dc[_0x1ec460(0x103)][_0x1ec460(0x10e)]?.[_0x1ec460(0x11a)]??!0x1;this[_0x1ec460(0xe6)](_0x1ec460(0x107),!0x1),this[_0x1ec460(0xed)][_0x1ec460(0xe6)](_0x1ec460(0x124),!0x1),this[_0x1ec460(0xed)][_0x1ec460(0xe6)](_0x1ec460(0xde),_0x6e7103),this[_0x1ec460(0xed)][_0x1ec460(0xe6)](_0x1ec460(0xcf),_0x6e7103);}[_0x2cab27(0xd8)](){const _0x2fe452=_0x2cab27;this[_0x2fe452(0xe6)](_0x2fe452(0x120),!0x0),this[_0x2fe452(0xe6)](_0x2fe452(0xfc),!0x0);}[_0x2cab27(0x10a)](_0x380ac2){const _0x311df6=_0x2cab27;this[_0x311df6(0xe6)](_0x311df6(0x120),!0x1),_0x380ac2&&this[_0x311df6(0xe6)](_0x311df6(0xfc),!0x1);}[_0x2cab27(0x109)](){const _0x490217=_0x2cab27,_0x31262e=new _0x5ed877();return _0x31262e[_0x490217(0xe6)]({'label':_0x2adf56(this[_0x490217(0x11e)],_0x490217(0x114)),'icon':_0x2935b8,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x31262e['on'](_0x490217(0xe8),()=>{const _0xa6f9e9=_0x490217;this[_0xa6f9e9(0xf3)](_0xa6f9e9(0x104));}),_0x31262e;}[_0x2cab27(0xdc)](){const _0x776e90=_0x2cab27,_0x297e26=new _0x5ed877();return _0x297e26[_0x776e90(0xe6)]({'label':_0x2adf56(this[_0x776e90(0x11e)],_0x776e90(0xfe)),'icon':_0x374cf5,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x297e26['on'](_0x776e90(0xe8),()=>{const _0xd314b0=_0x776e90;this[_0xd314b0(0xf3)](_0xd314b0(0xe3));}),_0x297e26;}[_0x2cab27(0xd3)](){const _0x1d380b=_0x2cab27,_0x2050c8=new _0x5ed877();return _0x2050c8[_0x1d380b(0xe6)]({'label':_0x2adf56(this[_0x1d380b(0x11e)],_0x1d380b(0x100)),'icon':_0x563032,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x2adf56(this[_0x1d380b(0x11e)],_0x1d380b(0x100)),'tooltipPosition':Fo}),_0x2050c8[_0x1d380b(0x11b)]({'attributes':{'class':[jo]}}),_0x2050c8['on'](_0x1d380b(0xe8),()=>{const _0x17de7d=_0x1d380b;console[_0x17de7d(0x10b)](_0x17de7d(0xff)),alert(_0x17de7d(0xff));}),_0x2050c8;}[_0x2cab27(0xda)](){const _0x5632d0=_0x2cab27,_0x2dae3e=_0xb2153c(this[_0x5632d0(0x11e)]);return _0x2dae3e[_0x5632d0(0xe6)]({'panelPosition':'ne','class':[Go]}),_0x2dae3e[_0x5632d0(0xd7)][_0x5632d0(0xe6)]({'label':_0x2adf56(this[_0x5632d0(0x11e)],_0x5632d0(0x118)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x5632d0(0xdd)](_0x2dae3e,_0x5632d0(0xe8),_0x525cc8=>{const _0x38158f=_0x5632d0;this[_0x38158f(0xf3)](_0x38158f(0xf2),_0x525cc8[_0x38158f(0x127)][_0x38158f(0x111)]);}),_0x2dae3e;}[_0x2cab27(0xf9)](){const _0x347488=_0x2cab27,_0x326926=new Jo(this[_0x347488(0x11e)]);return _0x326926[_0x347488(0xd5)](_0x347488(0x101))['to'](this,_0x347488(0xe1),_0x2139b3=>_0x2139b3??''),_0x326926[_0x347488(0xd5)](_0x347488(0xcf))['to'](this,_0x347488(0xfc),this,_0x347488(0xe1),(_0x270448,_0x58629a)=>!_0x270448&&!_0x58629a?.[_0x347488(0x112)]()[_0x347488(0x116)](_0x347488(0x102))),_0x326926;}}function _0x3ded(){const _0x9c49b0=['ck-hidden','ck-ai-chat-controls-button--commands','createCollection','_createCommandsButton','setWebSearch','bind','add','buttonView','enableModelSelector','ck-ai-chat__prompt-capabilities','_createModelSelectionDropdown','activeModelId','_createReasoningButton','listenTo','isEnabled','content','ck-ai-chat-controls__model-selection','activeModelName','div','toggleReasoning','webSearch','bindTemplate','set','AI_CHAT_DISABLE_REASONING','execute','addMany','setReasoning','getLocalized','ck-ai-chat-controls__model-selection__item-name','_reasoningButton','_modelSelectionDropdownItems','name','_commandsButton','AI_CHAT_CAPABILITIES_YES','selectModel','fire','ck-ai-chat-controls-button','setModelList','595798tLbswR','3155060iwJRKW','_modelNameView','_createModelNameView','length','description','modelSelectorVisible','clear','AI_CHAT_REASONING','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_COMMANDS','text','agent','capabilities','toggleWebSearch','span','_modelSelectionDropdown','reasoningActive','297816YMbCxi','_createWebSearchButton','disableModelSelector','log','_getCapabilityParts','withText','reasoning','menuitemradio','ck-ai-chat-controls__model-name','model','toLowerCase','31169016WDnzed','AI_CHAT_SEARCH_WEB','ck-ai-chat-controls__model-selection__item-capabilities','startsWith','AI_CHAT_ENABLE_WEB_SEARCH','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-description','enabled','extendTemplate','3550188ZeavZY','_webSearchButton','locale','9332yFRiCd','modelSelectorEnabled','ck-button__label','setTemplate','AI_CHAT_CAPABILITIES_NO','isOn','style','button','source','webSearchActive','label','setModel','AI_CHAT_DISABLE_WEB_SEARCH','96wPWohn','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_ENABLE_REASONING','tooltip','6928190UJtwHm','isVisible'];_0x3ded=function(){return _0x9c49b0;};return _0x3ded();}class Xs extends _0x2eb945{constructor(_0x580143,_0xbff553){const _0x151066=_0x2cab27;super();const _0x1b4034=this[_0x151066(0xe5)],_0xd4eaa1=this[_0x151066(0xd2)]();this[_0x151066(0x122)]({'tag':_0x151066(0xe2),'attributes':{'class':['ck',_0x151066(0x121)],'style':_0x1b4034['to'](_0x151066(0x125)),'id':_0x1b4034['to']('id')},'children':[{'tag':_0x151066(0xe2),'attributes':{'class':[Yo]},'children':[{'text':_0x1b4034['to'](_0x151066(0x101))}]},{'tag':_0x151066(0xe2),'attributes':{'class':[qo]},'children':[{'tag':_0x151066(0x105),'children':[{'text':_0xbff553[_0x151066(0xfb)]}]}]},{'tag':_0x151066(0xe2),'attributes':{'class':[zo]},'children':_0xd4eaa1}]}),_0xd4eaa1[_0x151066(0xe9)](this[_0x151066(0x10c)](_0x580143,_0x2935b8,_0x151066(0x114),_0xbff553[_0x151066(0x103)][_0x151066(0xe4)]?.[_0x151066(0x11a)]??!0x1)),_0xd4eaa1[_0x151066(0xe9)](this[_0x151066(0x10c)](_0x580143,_0x374cf5,_0x151066(0xfe),_0xbff553[_0x151066(0x103)][_0x151066(0x10e)]?.[_0x151066(0x11a)]??!0x1));}[_0x2cab27(0x10c)](_0x340a05,_0x58a849,_0x14ca5c,_0x3b6963){const _0x24bd85=_0x2cab27,_0x138457=new _0x3d2ff4();_0x138457[_0x24bd85(0xdf)]=_0x58a849;const _0xc8afae=new _0x1812a5(_0x340a05);_0xc8afae[_0x24bd85(0x122)]({'tag':_0x24bd85(0x105),'children':[{'text':_0x2adf56(_0x340a05,_0x14ca5c)+':\x20'}]});const _0x2dc543=new _0x1812a5(_0x340a05);return _0x2dc543[_0x24bd85(0x122)]({'tag':_0x24bd85(0x105),'children':[{'text':_0x2adf56(_0x340a05,_0x3b6963?_0x24bd85(0xf1):_0x24bd85(0x123))}]}),[_0x138457,_0xc8afae,_0x2dc543];}}function _0x3b9e(_0x5e42f9,_0x189fe1){const _0x3dedd2=_0x3ded();return _0x3b9e=function(_0x3b9e65,_0x5e92b9){_0x3b9e65=_0x3b9e65-0xcc;let _0x28c2b2=_0x3dedd2[_0x3b9e65];return _0x28c2b2;},_0x3b9e(_0x5e42f9,_0x189fe1);}class Jo extends _0x1812a5{constructor(_0x2a9379){const _0x1ecf45=_0x2cab27;super(_0x2a9379),this[_0x1ecf45(0xe6)](_0x1ecf45(0x101),void 0x0),this[_0x1ecf45(0xe6)](_0x1ecf45(0xcf),!0x0);const _0x52ad2b=this[_0x1ecf45(0xe5)];this[_0x1ecf45(0x122)]({'tag':_0x1ecf45(0x105),'attributes':{'class':['ck',_0x1ecf45(0x110),_0x52ad2b['if'](_0x1ecf45(0xcf),_0x1ecf45(0xd0),_0x56407b=>!_0x56407b)]},'children':[{'text':_0x52ad2b['to'](_0x1ecf45(0x101))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2c47(_0xcdfd12,_0x4b9185){const _0x2cfe9b=_0x2cfe();return _0x2c47=function(_0x2c47b6,_0x489ddb){_0x2c47b6=_0x2c47b6-0xbb;let _0x3039a8=_0x2cfe9b[_0x2c47b6];return _0x3039a8;},_0x2c47(_0xcdfd12,_0x4b9185);}const _0x598ac8=_0x2c47;(function(_0x465bdb,_0x1d60d1){const _0x43181b=_0x2c47,_0x386073=_0x465bdb();while(!![]){try{const _0x38588d=-parseInt(_0x43181b(0xdd))/0x1+parseInt(_0x43181b(0xf9))/0x2+-parseInt(_0x43181b(0xf7))/0x3+parseInt(_0x43181b(0xd4))/0x4*(-parseInt(_0x43181b(0xbc))/0x5)+-parseInt(_0x43181b(0xf4))/0x6*(parseInt(_0x43181b(0xeb))/0x7)+-parseInt(_0x43181b(0xc2))/0x8+parseInt(_0x43181b(0xe1))/0x9*(parseInt(_0x43181b(0xe0))/0xa);if(_0x38588d===_0x1d60d1)break;else _0x386073['push'](_0x386073['shift']());}catch(_0x5da38b){_0x386073['push'](_0x386073['shift']());}}}(_0x2cfe,0xa2d6c));import{IconSubmit as _0x541b48}from'ckeditor5/src/icons.js';import{ButtonView as _0x7c634b,AutocompleteView as _0x5ecb06,createLabeledTextarea as _0x1295c5}from'ckeditor5/src/ui.js';import{global as _0x2e63da,isVisible as _0x23da85,Rect as _0x54e344,ResizeObserver as _0x49c45d}from'ckeditor5/src/utils.js';import{getTranslation as _0x1c3380}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x31853d}from'./aichatpromptsuggestionslistview.js';function _0x2cfe(){const _0x1f5720=['width','217525SatBhM','fieldWrapperChildren','render','_queryViewResizeObserver','right','requestAnimationFrame','excludeScrollbarsAndBorders','bind','element','6WmOBNT','hasError','setPlaceholderText','135393uUVRHU','MAX_ROWS','2202808GGEDFJ','_setUpAddContextButtonPositioning','focusableChildren','keystrokes','2758775cDKZFi','set','value','_addContextButtonView','fieldView','queryView','3251952zjmujw','window','left','errorText','enter','isEnabled','extendTemplate','update','destroy','placeholder','fire','trim','reset','isEmpty','uiLanguageDirection','rtl','style','setIsUploadInProgress','4aLVykg','execute','locale','AI_CHAT_PROMPT_EMPTY_ERROR','_createSubmitButton','isUploadInProgress','AI_CHAT_LABEL_SUBMIT','submit','px\x20-\x20var(--ck-spacing-tiny))','546877cgTmMu','target','minRows','760CoToxU','135819zwXNAp','maxRows','add','calc(','submitButtonView','MIN_ROWS','ck-ai-chat__prompt-input','ck-ai-chat__prompt-submit-button','sendUserMessage'];_0x2cfe=function(){return _0x1f5720;};return _0x2cfe();}import{escape as _0x45c377}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x5ecb06{[_0x598ac8(0xe5)];static [_0x598ac8(0xe6)]=0x1;static [_0x598ac8(0xf8)]=0xc;[_0x598ac8(0xbf)];[_0x598ac8(0xee)];constructor(_0x1014d6,_0x540b30){const _0x115ab1=_0x598ac8;super(_0x1014d6,{'queryView':{'label':'','creator':_0x1295c5,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x31853d(_0x1014d6),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x115ab1(0xbd)](_0x115ab1(0xcf),!0x0),this[_0x115ab1(0xbd)](_0x115ab1(0xd9),!0x1),this[_0x115ab1(0xbf)]=_0x540b30,this[_0x115ab1(0xee)]=null,this[_0x115ab1(0xc1)][_0x115ab1(0xc0)][_0x115ab1(0xdf)]=AIChatPromptInputView[_0x115ab1(0xe6)],this[_0x115ab1(0xc1)][_0x115ab1(0xc0)][_0x115ab1(0xe2)]=AIChatPromptInputView[_0x115ab1(0xf8)],this[_0x115ab1(0xc1)][_0x115ab1(0xec)][_0x115ab1(0xe3)](this[_0x115ab1(0xbf)]),this[_0x115ab1(0xfa)](),this[_0x115ab1(0xc8)]({'attributes':{'class':['ck',_0x115ab1(0xe7)]}}),this[_0x115ab1(0xe5)]=this[_0x115ab1(0xd8)](),this[_0x115ab1(0xe5)][_0x115ab1(0xf2)](_0x115ab1(0xc7))['to'](this,_0x115ab1(0xcf),this,_0x115ab1(0xd9),(_0x1d107d,_0x5185d0)=>!_0x1d107d&&!_0x5185d0),this[_0x115ab1(0xfb)][_0x115ab1(0xe3)](this[_0x115ab1(0xe5)]);}[_0x598ac8(0xed)](){const _0x777831=_0x598ac8;super[_0x777831(0xed)](),this[_0x777831(0xc1)][_0x777831(0xec)][_0x777831(0xe3)](this[_0x777831(0xe5)]),this[_0x777831(0xbb)][_0x777831(0xbd)](_0x777831(0xc6),(_0xdae53c,_0x502575)=>{const _0xc2fb6=_0x777831;this[_0xc2fb6(0xd9)]||this[_0xc2fb6(0xcf)]||_0xdae53c[_0xc2fb6(0xde)]==this[_0xc2fb6(0xc1)][_0xc2fb6(0xc0)][_0xc2fb6(0xf3)]&&(this[_0xc2fb6(0xdb)](),_0x502575());}),this[_0x777831(0xc1)][_0x777831(0xc0)]['on'](_0x777831(0xc9),()=>{const _0x56d774=_0x777831;this[_0x56d774(0xcf)]=''===this[_0x56d774(0xc1)][_0x56d774(0xc0)][_0x56d774(0xf3)][_0x56d774(0xbe)]?.[_0x56d774(0xcd)]();});}[_0x598ac8(0xca)](){const _0x3ba643=_0x598ac8;super[_0x3ba643(0xca)](),this[_0x3ba643(0xee)]&&this[_0x3ba643(0xee)][_0x3ba643(0xca)]();}[_0x598ac8(0xdb)](){const _0x4c979b=_0x598ac8,_0x3d99c4=this[_0x4c979b(0xc1)][_0x4c979b(0xc0)][_0x4c979b(0xf3)][_0x4c979b(0xbe)]?.[_0x4c979b(0xcd)]();if(!_0x3d99c4)return this[_0x4c979b(0xc1)][_0x4c979b(0xc5)]=_0x1c3380(this[_0x4c979b(0xd6)],_0x4c979b(0xd7)),void(this[_0x4c979b(0xc1)][_0x4c979b(0xc0)][_0x4c979b(0xf5)]=!0x0);this[_0x4c979b(0xc1)][_0x4c979b(0xc0)][_0x4c979b(0xf5)]=!0x1;const _0x49cc2f=_0x45c377(_0x3d99c4);this[_0x4c979b(0xcc)](_0x4c979b(0xe9),_0x49cc2f),this[_0x4c979b(0xc1)][_0x4c979b(0xc0)][_0x4c979b(0xce)]();}[_0x598ac8(0xf6)](_0x507e12){const _0x2ddd16=_0x598ac8;this[_0x2ddd16(0xc1)][_0x2ddd16(0xc0)][_0x2ddd16(0xbd)](_0x2ddd16(0xcb),_0x507e12);}[_0x598ac8(0xd8)](){const _0x2a40a6=_0x598ac8,_0x474de5=new _0x7c634b(this[_0x2a40a6(0xd6)]);return _0x474de5[_0x2a40a6(0xbd)]({'icon':_0x541b48,'label':_0x1c3380(this[_0x2a40a6(0xd6)],_0x2a40a6(0xda)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2a40a6(0xe8),'isEnabled':!0x1}),_0x474de5['on'](_0x2a40a6(0xd5),()=>{const _0x4b0cc8=_0x2a40a6;this[_0x4b0cc8(0xdb)]();}),_0x474de5;}[_0x598ac8(0xd3)](_0x120532){const _0x486f2c=_0x598ac8;this[_0x486f2c(0xd9)]=_0x120532;}[_0x598ac8(0xfa)](){const _0x4c37a5=_0x598ac8,_0x72c686=this[_0x4c37a5(0xd6)],_0x125955=()=>{const _0x7965c6=_0x4c37a5;_0x2e63da[_0x7965c6(0xc3)][_0x7965c6(0xf0)](()=>{const _0x22aaec=_0x7965c6;if(_0x23da85(this[_0x22aaec(0xf3)])){const _0x37461a=new _0x54e344(this[_0x22aaec(0xc1)][_0x22aaec(0xc0)][_0x22aaec(0xf3)]),_0x1c3fba=new _0x54e344(this[_0x22aaec(0xbf)][_0x22aaec(0xf3)]),_0x73881b=_0x37461a[_0x22aaec(0xea)],_0x1bd4f7=_0x22aaec(0xd1)===_0x72c686[_0x22aaec(0xd0)]?_0x22aaec(0xef):_0x22aaec(0xc4);_0x37461a[_0x22aaec(0xf1)]();const _0x58d5aa=_0x73881b-_0x37461a[_0x22aaec(0xea)]+0x1;this[_0x22aaec(0xbf)][_0x22aaec(0xf3)][_0x22aaec(0xd2)][_0x1bd4f7]=_0x22aaec(0xe4)+(_0x73881b-_0x1c3fba[_0x22aaec(0xea)]-_0x58d5aa)+_0x22aaec(0xdc);}});};this[_0x4c37a5(0xc1)][_0x4c37a5(0xc0)]['on'](_0x4c37a5(0xc9),_0x125955),this['on'](_0x4c37a5(0xed),()=>{const _0x3d2c00=_0x4c37a5;_0x125955(),this[_0x3d2c00(0xee)]=new _0x49c45d(this[_0x3d2c00(0xc1)][_0x3d2c00(0xc0)][_0x3d2c00(0xf3)],()=>{_0x125955();});});}}
23
+ function _0x182a(){const _0x46d3a5=['AI_CHAT_PROMPT_EMPTY_ERROR','destroy','4001396wCeSUN','sendUserMessage','target','fire','errorText','setPlaceholderText','uiLanguageDirection','setIsUploadInProgress','2427aNWLjU','value','MAX_ROWS','ck-ai-chat__prompt-input','focusableChildren','px\x20-\x20var(--ck-spacing-tiny))','enter','3472511Xrivjj','maxRows','extendTemplate','locale','_createSubmitButton','excludeScrollbarsAndBorders','_addContextButtonView','ck-ai-chat__prompt-submit-button','requestAnimationFrame','render','8YkMERl','right','keystrokes','left','_queryViewResizeObserver','isEnabled','style','2710299RIltcn','window','queryView','add','submit','execute','reset','calc(','rtl','fieldView','_setUpAddContextButtonPositioning','minRows','AI_CHAT_LABEL_SUBMIT','trim','placeholder','isUploadInProgress','submitButtonView','38595450uuiwzt','update','1878150KPBeuE','element','fieldWrapperChildren','hasError','2473545ezqSqg','bind','set','898lGErTB','isEmpty','9gsrAih','width','MIN_ROWS'];_0x182a=function(){return _0x46d3a5;};return _0x182a();}const _0x3f4f4f=_0x1bcc;(function(_0x572df0,_0x25bcbb){const _0x5be455=_0x1bcc,_0x40fca9=_0x572df0();while(!![]){try{const _0x2ac895=parseInt(_0x5be455(0x17b))/0x1*(-parseInt(_0x5be455(0x16c))/0x2)+-parseInt(_0x5be455(0x193))/0x3+-parseInt(_0x5be455(0x173))/0x4+-parseInt(_0x5be455(0x169))/0x5+-parseInt(_0x5be455(0x165))/0x6+-parseInt(_0x5be455(0x182))/0x7*(-parseInt(_0x5be455(0x18c))/0x8)+-parseInt(_0x5be455(0x16e))/0x9*(-parseInt(_0x5be455(0x163))/0xa);if(_0x2ac895===_0x25bcbb)break;else _0x40fca9['push'](_0x40fca9['shift']());}catch(_0x5a0a06){_0x40fca9['push'](_0x40fca9['shift']());}}}(_0x182a,0x8758b));import{IconSubmit as _0x2e42cf}from'ckeditor5/src/icons.js';import{ButtonView as _0x54adb0,AutocompleteView as _0x3beede,createLabeledTextarea as _0x5088c2}from'ckeditor5/src/ui.js';import{global as _0x5b54ad,isVisible as _0x23e958,Rect as _0x19a12c,ResizeObserver as _0x256c2b}from'ckeditor5/src/utils.js';import{getTranslation as _0x1d5ff3}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x293073}from'./aichatpromptsuggestionslistview.js';import{escape as _0x348722}from'es-toolkit/compat';function _0x1bcc(_0x2fe3eb,_0x3c4c66){const _0x182a50=_0x182a();return _0x1bcc=function(_0x1bccab,_0x36a37d){_0x1bccab=_0x1bccab-0x159;let _0x39b9f6=_0x182a50[_0x1bccab];return _0x39b9f6;},_0x1bcc(_0x2fe3eb,_0x3c4c66);}export class AIChatPromptInputView extends _0x3beede{[_0x3f4f4f(0x162)];static [_0x3f4f4f(0x170)]=0x1;static [_0x3f4f4f(0x17d)]=0xc;[_0x3f4f4f(0x188)];[_0x3f4f4f(0x190)];constructor(_0x469c24,_0x1edaa7){const _0x44f6d9=_0x3f4f4f;super(_0x469c24,{'queryView':{'label':'','creator':_0x5088c2,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x293073(_0x469c24),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x44f6d9(0x16b)](_0x44f6d9(0x16d),!0x0),this[_0x44f6d9(0x16b)](_0x44f6d9(0x161),!0x1),this[_0x44f6d9(0x188)]=_0x1edaa7,this[_0x44f6d9(0x190)]=null,this[_0x44f6d9(0x195)][_0x44f6d9(0x15b)][_0x44f6d9(0x15d)]=AIChatPromptInputView[_0x44f6d9(0x170)],this[_0x44f6d9(0x195)][_0x44f6d9(0x15b)][_0x44f6d9(0x183)]=AIChatPromptInputView[_0x44f6d9(0x17d)],this[_0x44f6d9(0x195)][_0x44f6d9(0x167)][_0x44f6d9(0x196)](this[_0x44f6d9(0x188)]),this[_0x44f6d9(0x15c)](),this[_0x44f6d9(0x184)]({'attributes':{'class':['ck',_0x44f6d9(0x17e)]}}),this[_0x44f6d9(0x162)]=this[_0x44f6d9(0x186)](),this[_0x44f6d9(0x162)][_0x44f6d9(0x16a)](_0x44f6d9(0x191))['to'](this,_0x44f6d9(0x16d),this,_0x44f6d9(0x161),(_0x222b8d,_0x1d2a87)=>!_0x222b8d&&!_0x1d2a87),this[_0x44f6d9(0x17f)][_0x44f6d9(0x196)](this[_0x44f6d9(0x162)]);}[_0x3f4f4f(0x18b)](){const _0xc46b49=_0x3f4f4f;super[_0xc46b49(0x18b)](),this[_0xc46b49(0x195)][_0xc46b49(0x167)][_0xc46b49(0x196)](this[_0xc46b49(0x162)]),this[_0xc46b49(0x18e)][_0xc46b49(0x16b)](_0xc46b49(0x181),(_0x24bf11,_0x4e3f51)=>{const _0x5081b3=_0xc46b49;this[_0x5081b3(0x161)]||this[_0x5081b3(0x16d)]||_0x24bf11[_0x5081b3(0x175)]==this[_0x5081b3(0x195)][_0x5081b3(0x15b)][_0x5081b3(0x166)]&&(this[_0x5081b3(0x197)](),_0x4e3f51());}),this[_0xc46b49(0x195)][_0xc46b49(0x15b)]['on'](_0xc46b49(0x164),()=>{const _0x2fd84e=_0xc46b49;this[_0x2fd84e(0x16d)]=''===this[_0x2fd84e(0x195)][_0x2fd84e(0x15b)][_0x2fd84e(0x166)][_0x2fd84e(0x17c)]?.[_0x2fd84e(0x15f)]();});}[_0x3f4f4f(0x172)](){const _0x49f59c=_0x3f4f4f;super[_0x49f59c(0x172)](),this[_0x49f59c(0x190)]&&this[_0x49f59c(0x190)][_0x49f59c(0x172)]();}[_0x3f4f4f(0x197)](){const _0x243c63=_0x3f4f4f,_0x22667c=this[_0x243c63(0x195)][_0x243c63(0x15b)][_0x243c63(0x166)][_0x243c63(0x17c)]?.[_0x243c63(0x15f)]();if(!_0x22667c)return this[_0x243c63(0x195)][_0x243c63(0x177)]=_0x1d5ff3(this[_0x243c63(0x185)],_0x243c63(0x171)),void(this[_0x243c63(0x195)][_0x243c63(0x15b)][_0x243c63(0x168)]=!0x0);this[_0x243c63(0x195)][_0x243c63(0x15b)][_0x243c63(0x168)]=!0x1;const _0x3790f4=_0x348722(_0x22667c);this[_0x243c63(0x176)](_0x243c63(0x174),_0x3790f4),this[_0x243c63(0x195)][_0x243c63(0x15b)][_0x243c63(0x199)]();}[_0x3f4f4f(0x178)](_0x15c860){const _0xc838b2=_0x3f4f4f;this[_0xc838b2(0x195)][_0xc838b2(0x15b)][_0xc838b2(0x16b)](_0xc838b2(0x160),_0x15c860);}[_0x3f4f4f(0x186)](){const _0x4d73c9=_0x3f4f4f,_0x4b7d81=new _0x54adb0(this[_0x4d73c9(0x185)]);return _0x4b7d81[_0x4d73c9(0x16b)]({'icon':_0x2e42cf,'label':_0x1d5ff3(this[_0x4d73c9(0x185)],_0x4d73c9(0x15e)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x4d73c9(0x189),'isEnabled':!0x1}),_0x4b7d81['on'](_0x4d73c9(0x198),()=>{const _0xe814a7=_0x4d73c9;this[_0xe814a7(0x197)]();}),_0x4b7d81;}[_0x3f4f4f(0x17a)](_0x1f4569){const _0xfb4694=_0x3f4f4f;this[_0xfb4694(0x161)]=_0x1f4569;}[_0x3f4f4f(0x15c)](){const _0xc9630a=_0x3f4f4f,_0x5e79a2=this[_0xc9630a(0x185)],_0x40fcc9=()=>{const _0x537091=_0xc9630a;_0x5b54ad[_0x537091(0x194)][_0x537091(0x18a)](()=>{const _0x497981=_0x537091;if(_0x23e958(this[_0x497981(0x166)])){const _0x1aeaed=new _0x19a12c(this[_0x497981(0x195)][_0x497981(0x15b)][_0x497981(0x166)]),_0x5ce901=new _0x19a12c(this[_0x497981(0x188)][_0x497981(0x166)]),_0x115212=_0x1aeaed[_0x497981(0x16f)],_0x59263c=_0x497981(0x15a)===_0x5e79a2[_0x497981(0x179)]?_0x497981(0x18d):_0x497981(0x18f);_0x1aeaed[_0x497981(0x187)]();const _0x340598=_0x115212-_0x1aeaed[_0x497981(0x16f)]+0x1;this[_0x497981(0x188)][_0x497981(0x166)][_0x497981(0x192)][_0x59263c]=_0x497981(0x159)+(_0x115212-_0x5ce901[_0x497981(0x16f)]-_0x340598)+_0x497981(0x180);}});};this[_0xc9630a(0x195)][_0xc9630a(0x15b)]['on'](_0xc9630a(0x164),_0x40fcc9),this['on'](_0xc9630a(0x18b),()=>{const _0x217b90=_0xc9630a;_0x40fcc9(),this[_0x217b90(0x190)]=new _0x256c2b(this[_0x217b90(0x195)][_0x217b90(0x15b)][_0x217b90(0x166)],()=>{_0x40fcc9();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb6af96=_0x1bb8;(function(_0x24b58a,_0x14d355){const _0x2d41e3=_0x1bb8,_0x39dd6d=_0x24b58a();while(!![]){try{const _0x5d9d30=parseInt(_0x2d41e3(0x10c))/0x1*(-parseInt(_0x2d41e3(0xfc))/0x2)+-parseInt(_0x2d41e3(0x108))/0x3+-parseInt(_0x2d41e3(0xee))/0x4*(parseInt(_0x2d41e3(0x10b))/0x5)+-parseInt(_0x2d41e3(0x10e))/0x6+-parseInt(_0x2d41e3(0xf4))/0x7*(-parseInt(_0x2d41e3(0x107))/0x8)+parseInt(_0x2d41e3(0xf0))/0x9*(-parseInt(_0x2d41e3(0xff))/0xa)+-parseInt(_0x2d41e3(0xf9))/0xb*(-parseInt(_0x2d41e3(0xf7))/0xc);if(_0x5d9d30===_0x14d355)break;else _0x39dd6d['push'](_0x39dd6d['shift']());}catch(_0x3e6fd2){_0x39dd6d['push'](_0x39dd6d['shift']());}}}(_0x2bfa,0xd2c43));import{ListView as _0x3c7c9c}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x532532}from'./aichatresourcelistitemview.js';function _0x2bfa(){const _0x268bb6=['addResourceToContext','108720nZFZiI','clear','fire','extendTemplate','86891UTYPFE','resource','filter','7596RTZhRh','_source','96459jDEdpN','test','execute','1108958DtWgbh','locale','trim','940rTRUGF','replace','setResources','updateResourceState','add','_handleResourceSelection','items','forEach','888xgaTzR','714627KbUWey','highlightText','\x5c$&','5lsUZPe','3rWTRUy','ck-ai-chat-resources__list','8813388AqFLqg','useDefaultFiltering','label','6237028WCGLxu'];_0x2bfa=function(){return _0x268bb6;};return _0x2bfa();}function _0x1bb8(_0x471e15,_0x47881c){const _0x2bfa5b=_0x2bfa();return _0x1bb8=function(_0x1bb871,_0x1b9f35){_0x1bb871=_0x1bb871-0xee;let _0x20ac25=_0x2bfa5b[_0x1bb871];return _0x20ac25;},_0x1bb8(_0x471e15,_0x47881c);}const sc=_0xb6af96(0x10d);export class AIChatContextResourcesListView extends _0x3c7c9c{[_0xb6af96(0xf8)];constructor(_0x4dda50,_0x3752c2){const _0x348c31=_0xb6af96;super(_0x4dda50),this[_0x348c31(0xf8)]=_0x3752c2,this[_0x348c31(0xf3)]({'attributes':{'class':[sc]}});}[_0xb6af96(0x101)](_0x1927f4,_0x1d7fd4){const _0x524967=_0xb6af96;this[_0x524967(0x105)][_0x524967(0xf1)]();let _0x1c19b3=_0x1927f4;if(this[_0x524967(0xf8)][_0x524967(0x10f)]&&_0x1d7fd4&&''!==_0x1d7fd4[_0x524967(0xfe)]()){const _0x5e3cda=new RegExp(_0x1d7fd4[_0x524967(0x100)](/[.*+?^${}()|[\]\\]/g,_0x524967(0x10a)),'gi');_0x1c19b3=_0x1927f4[_0x524967(0xf6)](_0x5ccf5d=>_0x5e3cda[_0x524967(0xfa)](_0x5ccf5d[_0x524967(0x110)]));}for(const _0x2f00c9 of _0x1c19b3){const _0xef37f4=new _0x532532(this[_0x524967(0xfd)],_0x2f00c9);_0xef37f4['on'](_0x524967(0xfb),()=>{const _0x2442c3=_0x524967;this[_0x2442c3(0x104)](this[_0x2442c3(0xf8)],_0x2f00c9);}),this[_0x524967(0x105)][_0x524967(0x103)](_0xef37f4);}this[_0x524967(0xf8)][_0x524967(0x10f)]&&this[_0x524967(0x109)](_0x1d7fd4);}[_0xb6af96(0x109)](_0x3c4886){const _0x10f407=_0xb6af96;this[_0x10f407(0xf8)][_0x10f407(0x10f)]&&this[_0x10f407(0x105)][_0x10f407(0x106)](_0x594ecc=>{const _0x3837a9=_0x10f407;_0x594ecc[_0x3837a9(0x109)](_0x3c4886);});}[_0xb6af96(0x102)](_0x191bb6,_0x2ff9a2){const _0x3759fa=_0xb6af96;for(const _0x96f74c of this[_0x3759fa(0x105)]){const _0x1ab97a=_0x96f74c;_0x1ab97a[_0x3759fa(0xf5)]['id']===_0x191bb6&&_0x1ab97a[_0x3759fa(0x102)](_0x2ff9a2);}}[_0xb6af96(0x104)](_0x3b3d57,_0x525baa){const _0x8e9fdc=_0xb6af96;this[_0x8e9fdc(0xf2)](_0x8e9fdc(0xef),{'source':_0x3b3d57,'resource':_0x525baa});}}
23
+ function _0x1069(){const _0x337d43=['6769777gHNBEX','updateResourceState','fire','642960JijUFt','add','clear','resource','2255868IAFVaB','690895NFKKeY','285304CLqWtt','highlightText','_handleResourceSelection','addResourceToContext','useDefaultFiltering','items','label','\x5c$&','test','locale','execute','ck-ai-chat-resources__list','filter','2653070nOJgoW','extendTemplate','_source','1195766OYKwuk','trim','replace','setResources','forEach'];_0x1069=function(){return _0x337d43;};return _0x1069();}const _0x1f7b70=_0x38c5;(function(_0x1fdac5,_0x4953d3){const _0x58673b=_0x38c5,_0x1f2f71=_0x1fdac5();while(!![]){try{const _0x160446=parseInt(_0x58673b(0x17c))/0x1+parseInt(_0x58673b(0x18d))/0x2+parseInt(_0x58673b(0x195))/0x3+parseInt(_0x58673b(0x17d))/0x4+-parseInt(_0x58673b(0x18a))/0x5+parseInt(_0x58673b(0x199))/0x6+-parseInt(_0x58673b(0x192))/0x7;if(_0x160446===_0x4953d3)break;else _0x1f2f71['push'](_0x1f2f71['shift']());}catch(_0x7eee95){_0x1f2f71['push'](_0x1f2f71['shift']());}}}(_0x1069,0x6e845));import{ListView as _0x1c865b}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x1e8c89}from'./aichatresourcelistitemview.js';const oc=_0x1f7b70(0x188);function _0x38c5(_0x468f92,_0x23b669){const _0x106971=_0x1069();return _0x38c5=function(_0x38c563,_0x242753){_0x38c563=_0x38c563-0x17c;let _0x31a07c=_0x106971[_0x38c563];return _0x31a07c;},_0x38c5(_0x468f92,_0x23b669);}export class AIChatContextResourcesListView extends _0x1c865b{[_0x1f7b70(0x18c)];constructor(_0x312cfc,_0x339040){const _0x30f20d=_0x1f7b70;super(_0x312cfc),this[_0x30f20d(0x18c)]=_0x339040,this[_0x30f20d(0x18b)]({'attributes':{'class':[oc]}});}[_0x1f7b70(0x190)](_0x28cd19,_0x114202){const _0x53dd4b=_0x1f7b70;this[_0x53dd4b(0x182)][_0x53dd4b(0x197)]();let _0x400b22=_0x28cd19;if(this[_0x53dd4b(0x18c)][_0x53dd4b(0x181)]&&_0x114202&&''!==_0x114202[_0x53dd4b(0x18e)]()){const _0x4001e4=new RegExp(_0x114202[_0x53dd4b(0x18f)](/[.*+?^${}()|[\]\\]/g,_0x53dd4b(0x184)),'gi');_0x400b22=_0x28cd19[_0x53dd4b(0x189)](_0x197d01=>_0x4001e4[_0x53dd4b(0x185)](_0x197d01[_0x53dd4b(0x183)]));}for(const _0x430e0d of _0x400b22){const _0x21cd94=new _0x1e8c89(this[_0x53dd4b(0x186)],_0x430e0d);_0x21cd94['on'](_0x53dd4b(0x187),()=>{const _0x2eed78=_0x53dd4b;this[_0x2eed78(0x17f)](this[_0x2eed78(0x18c)],_0x430e0d);}),this[_0x53dd4b(0x182)][_0x53dd4b(0x196)](_0x21cd94);}this[_0x53dd4b(0x18c)][_0x53dd4b(0x181)]&&this[_0x53dd4b(0x17e)](_0x114202);}[_0x1f7b70(0x17e)](_0xbc66a1){const _0x157f98=_0x1f7b70;this[_0x157f98(0x18c)][_0x157f98(0x181)]&&this[_0x157f98(0x182)][_0x157f98(0x191)](_0x1f84a9=>{const _0x20ced0=_0x157f98;_0x1f84a9[_0x20ced0(0x17e)](_0xbc66a1);});}[_0x1f7b70(0x193)](_0x18e5ae,_0x3dc3a5){const _0x68288=_0x1f7b70;for(const _0x5462f3 of this[_0x68288(0x182)]){const _0x4b27f2=_0x5462f3;_0x4b27f2[_0x68288(0x198)]['id']===_0x18e5ae&&_0x4b27f2[_0x68288(0x193)](_0x3dc3a5);}}[_0x1f7b70(0x17f)](_0x29e8b6,_0x49974b){const _0x35642e=_0x1f7b70;this[_0x35642e(0x194)](_0x35642e(0x180),{'source':_0x29e8b6,'resource':_0x49974b});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49f0fa=_0x5391;function _0x12ff(){const _0x584888=['search','render','83615bKsKzN','ck-hidden','bindTemplate','extendTemplate','984jUhHjw','loadResources','div','12411870wiiYnQ','3096027WyHdJc','has','10rGYcED','source','4168cSKElr','1zHZLup','2571054GwoSIB','children','_createSearchSection','aiChatResources','loadSourceResources','ck-ai-chat-resources','_resourcesListView','_searchInputVisibleFrom','_searchSection','_createSearchView','setResources','locale','2616116tKYPBT','_createResourcesListView','getQuery','_source','highlightText','addResourceToContext','fire','useDefaultFiltering','delegate','_skeletonLoader','_createSkeletonView','searchInputVisibleFrom','isLoading','updateResourceState','_searchView','_latestLoadResourcesUid','setTemplate','add','set','length','25100207acOVTt','ck\x20ck-search','3858DvLbzB'];_0x12ff=function(){return _0x584888;};return _0x12ff();}(function(_0x2a631f,_0x22a956){const _0x20fd0c=_0x5391,_0x14a675=_0x2a631f();while(!![]){try{const _0x42ec1b=-parseInt(_0x20fd0c(0x183))/0x1*(-parseInt(_0x20fd0c(0x190))/0x2)+parseInt(_0x20fd0c(0x1a6))/0x3*(-parseInt(_0x20fd0c(0x182))/0x4)+-parseInt(_0x20fd0c(0x180))/0x5*(parseInt(_0x20fd0c(0x184))/0x6)+-parseInt(_0x20fd0c(0x1a9))/0x7*(parseInt(_0x20fd0c(0x17a))/0x8)+-parseInt(_0x20fd0c(0x17e))/0x9+parseInt(_0x20fd0c(0x17d))/0xa+parseInt(_0x20fd0c(0x1a4))/0xb;if(_0x42ec1b===_0x22a956)break;else _0x14a675['push'](_0x14a675['shift']());}catch(_0x2aeee5){_0x14a675['push'](_0x14a675['shift']());}}}(_0x12ff,0xc864e));import{View as _0x259779,ViewCollection as _0x1909e0}from'ckeditor5/src/ui.js';import{uid as _0x5bebe5}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x2963bd}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x357489}from'./aichatresourcessearchinputview.js';function _0x5391(_0x5df888,_0x6a1d49){const _0x12ffeb=_0x12ff();return _0x5391=function(_0x53912f,_0x374601){_0x53912f=_0x53912f-0x17a;let _0x106b0f=_0x12ffeb[_0x53912f];return _0x106b0f;},_0x5391(_0x5df888,_0x6a1d49);}import{AISkeletonView as _0x43c821,SKELETON_DEFINITIONS as _0x15937e}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x259779{[_0x49f0fa(0x19e)];[_0x49f0fa(0x18c)];[_0x49f0fa(0x18b)];[_0x49f0fa(0x18a)];[_0x49f0fa(0x199)];[_0x49f0fa(0x193)];[_0x49f0fa(0x185)];[_0x49f0fa(0x19f)]=null;constructor(_0x49c63,_0x1e4a79){const _0x26df88=_0x49f0fa;super(_0x49c63),this[_0x26df88(0x193)]=_0x1e4a79[_0x26df88(0x181)],this[_0x26df88(0x18b)]=_0x1e4a79[_0x26df88(0x19b)]??0x7,this[_0x26df88(0x1a2)](_0x26df88(0x19c),!0x0),this[_0x26df88(0x19e)]=this[_0x26df88(0x18d)](),this[_0x26df88(0x18c)]=this[_0x26df88(0x186)](),this[_0x26df88(0x18a)]=this[_0x26df88(0x191)](),this[_0x26df88(0x199)]=this[_0x26df88(0x19a)](),this[_0x26df88(0x185)]=new _0x1909e0([this[_0x26df88(0x199)],this[_0x26df88(0x18a)]]),this[_0x26df88(0x1a0)]({'tag':_0x26df88(0x17c),'attributes':{'class':_0x26df88(0x189)},'children':this[_0x26df88(0x185)]});}[_0x49f0fa(0x18d)](){const _0x7f7168=_0x49f0fa;return new _0x357489(this[_0x7f7168(0x18f)]);}[_0x49f0fa(0x186)](){const _0x1d5cf0=_0x49f0fa,_0x4a49cf=new _0x259779(this[_0x1d5cf0(0x18f)]);return _0x4a49cf[_0x1d5cf0(0x1a0)]({'tag':_0x1d5cf0(0x17c),'attributes':{'class':_0x1d5cf0(0x1a5)},'children':[this[_0x1d5cf0(0x19e)]]}),this[_0x1d5cf0(0x19e)]['on'](_0x1d5cf0(0x1a7),(_0x1b4054,_0x210fbc)=>{const _0x297f50=_0x1d5cf0;this[_0x297f50(0x17b)](_0x210fbc),this[_0x297f50(0x193)][_0x297f50(0x197)]&&this[_0x297f50(0x18a)][_0x297f50(0x194)](_0x210fbc);}),_0x4a49cf;}[_0x49f0fa(0x191)](){const _0x98bf51=_0x49f0fa,_0x34c10c=new _0x2963bd(this[_0x98bf51(0x18f)],this[_0x98bf51(0x193)]);return _0x34c10c[_0x98bf51(0x198)](_0x98bf51(0x195))['to'](this),_0x34c10c[_0x98bf51(0x1ac)]({'attributes':{'class':this[_0x98bf51(0x1ab)]['if'](_0x98bf51(0x19c),_0x98bf51(0x1aa))}}),_0x34c10c;}[_0x49f0fa(0x19a)](){const _0xda7491=_0x49f0fa,_0x520d88=new _0x43c821(this[_0xda7491(0x18f)],_0x15937e[_0xda7491(0x187)]);return _0x520d88[_0xda7491(0x1ac)]({'attributes':{'class':[this[_0xda7491(0x1ab)]['if'](_0xda7491(0x19c),_0xda7491(0x1aa),_0x3e5320=>!_0x3e5320)]}}),_0x520d88;}[_0x49f0fa(0x1a8)](){const _0x3b536e=_0x49f0fa;super[_0x3b536e(0x1a8)](),this[_0x3b536e(0x17b)]('');}[_0x49f0fa(0x17b)](_0x539166){const _0x2ae003=_0x49f0fa,_0x21871b=_0x5bebe5();this[_0x2ae003(0x19f)]=_0x21871b,this[_0x2ae003(0x196)](_0x2ae003(0x188),{'sourceId':this[_0x2ae003(0x193)]['id'],'query':_0x539166,'uid':_0x21871b}),this[_0x2ae003(0x19c)]=!0x0;}[_0x49f0fa(0x18e)](_0x2e4193,_0x12ae94){const _0x194b27=_0x49f0fa;if(_0x12ae94&&_0x12ae94!==this[_0x194b27(0x19f)])return;const _0x100297=this[_0x194b27(0x193)][_0x194b27(0x197)]?this[_0x194b27(0x19e)][_0x194b27(0x192)]():'';this[_0x194b27(0x18a)][_0x194b27(0x18e)](_0x2e4193,_0x100297),_0x2e4193[_0x194b27(0x1a3)]>=this[_0x194b27(0x18b)]&&!this[_0x194b27(0x185)][_0x194b27(0x17f)](this[_0x194b27(0x18c)])&&this[_0x194b27(0x185)][_0x194b27(0x1a1)](this[_0x194b27(0x18c)],0x0),requestAnimationFrame(()=>{const _0x10e1d4=_0x194b27;this[_0x10e1d4(0x19c)]=!0x1;});}[_0x49f0fa(0x19d)](_0x1679f0,_0x16fba3){const _0x16c92e=_0x49f0fa;this[_0x16c92e(0x18a)][_0x16c92e(0x19d)](_0x1679f0,_0x16fba3);}}
23
+ const _0x2512bf=_0x44c8;(function(_0x1c7a3b,_0x7eb38a){const _0x52d363=_0x44c8,_0x5c92df=_0x1c7a3b();while(!![]){try{const _0x34b661=parseInt(_0x52d363(0x15f))/0x1*(parseInt(_0x52d363(0x148))/0x2)+parseInt(_0x52d363(0x15a))/0x3*(parseInt(_0x52d363(0x16e))/0x4)+-parseInt(_0x52d363(0x164))/0x5+parseInt(_0x52d363(0x152))/0x6+parseInt(_0x52d363(0x140))/0x7*(parseInt(_0x52d363(0x15e))/0x8)+-parseInt(_0x52d363(0x141))/0x9*(parseInt(_0x52d363(0x149))/0xa)+parseInt(_0x52d363(0x170))/0xb*(-parseInt(_0x52d363(0x14b))/0xc);if(_0x34b661===_0x7eb38a)break;else _0x5c92df['push'](_0x5c92df['shift']());}catch(_0x3753e4){_0x5c92df['push'](_0x5c92df['shift']());}}}(_0x4399,0x92af0));import{View as _0x382cd2,ViewCollection as _0x23bee4}from'ckeditor5/src/ui.js';import{uid as _0x2c5264}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x11bb64}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x21cd9c}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x55e18c,SKELETON_DEFINITIONS as _0x43f9f8}from'../../../../aicore/ui/aiskeleton.js';function _0x4399(){const _0x364d36=['search','_skeletonLoader','extendTemplate','loadResources','set','3xuTXBd','render','ck\x20ck-search','bindTemplate','193096jCxnXJ','184UFTggw','locale','setTemplate','aiChatResources','children','5341245vgfCVh','highlightText','setResources','_searchSection','add','_resourcesListView','searchInputVisibleFrom','fire','useDefaultFiltering','_latestLoadResourcesUid','3507136wWKteP','length','1895113RxXJIB','_createSkeletonView','ck-hidden','delegate','231Ufrsps','8064153vxUkeG','_createResourcesListView','div','source','_searchInputVisibleFrom','_source','_searchView','4786LoXnkk','10naIIsd','getQuery','24CzmODm','_createSearchView','loadSourceResources','has','isLoading','addResourceToContext','updateResourceState','4776186WGsfWh','_createSearchSection','ck-ai-chat-resources'];_0x4399=function(){return _0x364d36;};return _0x4399();}function _0x44c8(_0x1ea1d2,_0xd696f8){const _0x43991f=_0x4399();return _0x44c8=function(_0x44c88f,_0x2103b4){_0x44c88f=_0x44c88f-0x13d;let _0x186dcf=_0x43991f[_0x44c88f];return _0x186dcf;},_0x44c8(_0x1ea1d2,_0xd696f8);}export class AIChatContextResourcesView extends _0x382cd2{[_0x2512bf(0x147)];[_0x2512bf(0x167)];[_0x2512bf(0x145)];[_0x2512bf(0x169)];[_0x2512bf(0x156)];[_0x2512bf(0x146)];[_0x2512bf(0x163)];[_0x2512bf(0x16d)]=null;constructor(_0x58865a,_0x59a0ff){const _0x3a338e=_0x2512bf;super(_0x58865a),this[_0x3a338e(0x146)]=_0x59a0ff[_0x3a338e(0x144)],this[_0x3a338e(0x145)]=_0x59a0ff[_0x3a338e(0x16a)]??0x7,this[_0x3a338e(0x159)](_0x3a338e(0x14f),!0x0),this[_0x3a338e(0x147)]=this[_0x3a338e(0x14c)](),this[_0x3a338e(0x167)]=this[_0x3a338e(0x153)](),this[_0x3a338e(0x169)]=this[_0x3a338e(0x142)](),this[_0x3a338e(0x156)]=this[_0x3a338e(0x13d)](),this[_0x3a338e(0x163)]=new _0x23bee4([this[_0x3a338e(0x156)],this[_0x3a338e(0x169)]]),this[_0x3a338e(0x161)]({'tag':_0x3a338e(0x143),'attributes':{'class':_0x3a338e(0x154)},'children':this[_0x3a338e(0x163)]});}[_0x2512bf(0x14c)](){const _0x4c60e9=_0x2512bf;return new _0x21cd9c(this[_0x4c60e9(0x160)]);}[_0x2512bf(0x153)](){const _0xe620ea=_0x2512bf,_0x437946=new _0x382cd2(this[_0xe620ea(0x160)]);return _0x437946[_0xe620ea(0x161)]({'tag':_0xe620ea(0x143),'attributes':{'class':_0xe620ea(0x15c)},'children':[this[_0xe620ea(0x147)]]}),this[_0xe620ea(0x147)]['on'](_0xe620ea(0x155),(_0x2e8804,_0x2727f5)=>{const _0x5c69f7=_0xe620ea;this[_0x5c69f7(0x158)](_0x2727f5),this[_0x5c69f7(0x146)][_0x5c69f7(0x16c)]&&this[_0x5c69f7(0x169)][_0x5c69f7(0x165)](_0x2727f5);}),_0x437946;}[_0x2512bf(0x142)](){const _0xc95a91=_0x2512bf,_0x486ac1=new _0x11bb64(this[_0xc95a91(0x160)],this[_0xc95a91(0x146)]);return _0x486ac1[_0xc95a91(0x13f)](_0xc95a91(0x150))['to'](this),_0x486ac1[_0xc95a91(0x157)]({'attributes':{'class':this[_0xc95a91(0x15d)]['if'](_0xc95a91(0x14f),_0xc95a91(0x13e))}}),_0x486ac1;}[_0x2512bf(0x13d)](){const _0x83c50c=_0x2512bf,_0x65fb4c=new _0x55e18c(this[_0x83c50c(0x160)],_0x43f9f8[_0x83c50c(0x162)]);return _0x65fb4c[_0x83c50c(0x157)]({'attributes':{'class':[this[_0x83c50c(0x15d)]['if'](_0x83c50c(0x14f),_0x83c50c(0x13e),_0x4056f9=>!_0x4056f9)]}}),_0x65fb4c;}[_0x2512bf(0x15b)](){const _0x1af265=_0x2512bf;super[_0x1af265(0x15b)](),this[_0x1af265(0x158)]('');}[_0x2512bf(0x158)](_0x1fd42f){const _0x382c1c=_0x2512bf,_0x5ea68d=_0x2c5264();this[_0x382c1c(0x16d)]=_0x5ea68d,this[_0x382c1c(0x16b)](_0x382c1c(0x14d),{'sourceId':this[_0x382c1c(0x146)]['id'],'query':_0x1fd42f,'uid':_0x5ea68d}),this[_0x382c1c(0x14f)]=!0x0;}[_0x2512bf(0x166)](_0x6dced8,_0x276612){const _0x1ba271=_0x2512bf;if(_0x276612&&_0x276612!==this[_0x1ba271(0x16d)])return;const _0x4672ec=this[_0x1ba271(0x146)][_0x1ba271(0x16c)]?this[_0x1ba271(0x147)][_0x1ba271(0x14a)]():'';this[_0x1ba271(0x169)][_0x1ba271(0x166)](_0x6dced8,_0x4672ec),_0x6dced8[_0x1ba271(0x16f)]>=this[_0x1ba271(0x145)]&&!this[_0x1ba271(0x163)][_0x1ba271(0x14e)](this[_0x1ba271(0x167)])&&this[_0x1ba271(0x163)][_0x1ba271(0x168)](this[_0x1ba271(0x167)],0x0),requestAnimationFrame(()=>{const _0x2f1e08=_0x1ba271;this[_0x2f1e08(0x14f)]=!0x1;});}[_0x2512bf(0x151)](_0x4ba82a,_0x3aa8c3){const _0x3b04a7=_0x2512bf;this[_0x3b04a7(0x169)][_0x3b04a7(0x151)](_0x4ba82a,_0x3aa8c3);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3636b9=_0x1eda;function _0x1eda(_0x55660f,_0x4b2c75){const _0x4211a5=_0x4211();return _0x1eda=function(_0x1eda9c,_0x419005){_0x1eda9c=_0x1eda9c-0x1e6;let _0x4a983f=_0x4211a5[_0x1eda9c];return _0x4a983f;},_0x1eda(_0x55660f,_0x4b2c75);}(function(_0x6a613b,_0x1b5d3e){const _0x33e051=_0x1eda,_0x48a81d=_0x6a613b();while(!![]){try{const _0x5b35ea=-parseInt(_0x33e051(0x1f6))/0x1+parseInt(_0x33e051(0x1ef))/0x2+-parseInt(_0x33e051(0x1f7))/0x3+-parseInt(_0x33e051(0x209))/0x4+parseInt(_0x33e051(0x1ed))/0x5*(-parseInt(_0x33e051(0x1f5))/0x6)+-parseInt(_0x33e051(0x1f2))/0x7*(-parseInt(_0x33e051(0x1f3))/0x8)+parseInt(_0x33e051(0x20c))/0x9;if(_0x5b35ea===_0x1b5d3e)break;else _0x48a81d['push'](_0x48a81d['shift']());}catch(_0x1b1e51){_0x48a81d['push'](_0x48a81d['shift']());}}}(_0x4211,0x96f12));function _0x4211(){const _0x58f05b=['resource','899844SpwQPK','text','isInContext','20950416EjGUPB','ck-hidden','_setupTemplate','type','_iconView','isVisible','URL','_createIconView','ck-ai-chat-resources__item-title','highlightText','DOCUMENT','execute','639235apEoJt','_titleView','1232074BsgxDg','FILE','div','1008721VDlpfr','8MFjgWP','getResourceIcon','54FWfyOF','52461hzCpPM','3124983CgGbTQ','extendTemplate','TEXT','set','ck-ai-chat-resources__item','trim','_createTitleView','_updateIcon','bindTemplate','content','setTemplate','render','span','updateResourceState','ck-ai-chat-resources__item__icon','label','ck-ai-chat-resources__item--in-context'];_0x4211=function(){return _0x58f05b;};return _0x4211();}import{HighlightedTextView as _0x23573c,IconView as _0x6b3f72,ListItemView as _0x4c53e5}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x1841e6}from'es-toolkit/compat';import{AIContextItemType as _0x47176c}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x2a3292,IconCheck as _0x59aede,IconDocument as _0x1cb130,IconDocumentOutline as _0x4ef506,IconLink as _0xbaeecd}from'@ckeditor/ckeditor5-icons';const Br=_0x3636b9(0x1fb),Gr=_0x3636b9(0x207),Hr=_0x3636b9(0x1e9),Jr=_0x3636b9(0x205);export class AIChatResourceListItemView extends _0x4c53e5{[_0x3636b9(0x208)];[_0x3636b9(0x1ee)];[_0x3636b9(0x210)];constructor(_0x10c674,_0x44599a){const _0x1c36d8=_0x3636b9;super(_0x10c674),this[_0x1c36d8(0x208)]=_0x44599a,this[_0x1c36d8(0x1fa)](_0x1c36d8(0x20b),!!_0x44599a[_0x1c36d8(0x20b)]),this[_0x1c36d8(0x1ee)]=this[_0x1c36d8(0x1fd)](),this[_0x1c36d8(0x210)]=this[_0x1c36d8(0x1e8)](),this[_0x1c36d8(0x20e)]();}[_0x3636b9(0x202)](){const _0x8acaa0=_0x3636b9;super[_0x8acaa0(0x202)]();}[_0x3636b9(0x1f4)](_0x327664){const _0x3cfc10=_0x3636b9;if(_0x327664[_0x3cfc10(0x20b)])return _0x59aede;switch(_0x327664[_0x3cfc10(0x20f)]){case _0x47176c[_0x3cfc10(0x1eb)]:return _0x1cb130;case _0x47176c[_0x3cfc10(0x1e7)]:return _0xbaeecd;case _0x47176c[_0x3cfc10(0x1f0)]:case _0x47176c[_0x3cfc10(0x1f9)]:return _0x2a3292;default:return _0x4ef506;}}[_0x3636b9(0x1ea)](_0x12e37f){const _0xe01266=_0x3636b9;if(!_0x12e37f||''===_0x12e37f[_0xe01266(0x1fc)]())return void this[_0xe01266(0x1ee)][_0xe01266(0x1ea)](null);const _0x11984c=new RegExp(_0x1841e6(_0x12e37f),'gi');this[_0xe01266(0x1ee)][_0xe01266(0x1ea)](_0x11984c);}[_0x3636b9(0x204)](_0x3cbda3){const _0xac26f5=_0x3636b9;this[_0xac26f5(0x208)][_0xac26f5(0x20b)]=_0x3cbda3,this[_0xac26f5(0x20b)]=_0x3cbda3,this[_0xac26f5(0x1fe)]();}[_0x3636b9(0x1fd)](){const _0x552a32=_0x3636b9,_0x20706a=new _0x23573c();return _0x20706a[_0x552a32(0x20a)]=this[_0x552a32(0x208)][_0x552a32(0x206)],_0x20706a[_0x552a32(0x1f8)]({'tag':_0x552a32(0x203),'attributes':{'class':[Hr]}}),_0x20706a;}[_0x3636b9(0x1e8)](){const _0x464b9e=_0x3636b9,_0x413373=new _0x6b3f72();return _0x413373[_0x464b9e(0x200)]=this[_0x464b9e(0x1f4)](this[_0x464b9e(0x208)]),_0x413373;}[_0x3636b9(0x20e)](){const _0x44e750=_0x3636b9,_0x27c195=this[_0x44e750(0x1ff)];this[_0x44e750(0x201)]({'tag':_0x44e750(0x1f1),'attributes':{'class':[Br,_0x27c195['if'](_0x44e750(0x1e6),_0x44e750(0x20d),_0x24b673=>!_0x24b673),_0x27c195['if'](_0x44e750(0x20b),Gr)]},'children':[{'tag':_0x44e750(0x1f1),'attributes':{'class':[Jr]},'children':[this[_0x44e750(0x210)]]},this[_0x44e750(0x1ee)]],'on':{'click':_0x27c195['to'](_0x44e750(0x1ec))}});}[_0x3636b9(0x1fe)](){const _0x3de725=_0x3636b9;this[_0x3de725(0x210)][_0x3de725(0x200)]=this[_0x3de725(0x1f4)](this[_0x3de725(0x208)]);}}
23
+ const _0x2e8678=_0x192e;(function(_0x63fd16,_0x57589b){const _0x389733=_0x192e,_0x5312ef=_0x63fd16();while(!![]){try{const _0x216e26=parseInt(_0x389733(0xac))/0x1*(-parseInt(_0x389733(0x9f))/0x2)+parseInt(_0x389733(0x9c))/0x3+parseInt(_0x389733(0xa0))/0x4*(-parseInt(_0x389733(0xa2))/0x5)+parseInt(_0x389733(0xb4))/0x6*(-parseInt(_0x389733(0x9b))/0x7)+parseInt(_0x389733(0xb5))/0x8+-parseInt(_0x389733(0xb9))/0x9*(-parseInt(_0x389733(0xbc))/0xa)+parseInt(_0x389733(0x99))/0xb;if(_0x216e26===_0x57589b)break;else _0x5312ef['push'](_0x5312ef['shift']());}catch(_0x42f0a4){_0x5312ef['push'](_0x5312ef['shift']());}}}(_0x2a6d,0xb7dd0));function _0x192e(_0x5abead,_0x30b218){const _0x2a6da6=_0x2a6d();return _0x192e=function(_0x192e58,_0x469add){_0x192e58=_0x192e58-0x98;let _0x19f974=_0x2a6da6[_0x192e58];return _0x19f974;},_0x192e(_0x5abead,_0x30b218);}import{HighlightedTextView as _0x22cd1b,IconView as _0x3bf59b,ListItemView as _0x44b6ab}from'ckeditor5/src/ui.js';function _0x2a6d(){const _0x3023f3=['updateResourceState','9RNZIrb','isInContext','_iconView','361970AxPKNF','type','ck-ai-chat-resources__item--in-context','getResourceIcon','_updateIcon','_createTitleView','DOCUMENT','_setupTemplate','isVisible','trim','12193863CVIvBv','ck-ai-chat-resources__item__icon','672lZRbvE','3287028iwZqNf','setTemplate','label','2346trfBlL','232924iXjamj','render','85teTDog','TEXT','set','_createIconView','URL','ck-hidden','_titleView','resource','content','ck-ai-chat-resources__item','395RbJsxD','span','bindTemplate','execute','FILE','div','text','highlightText','6558YxYcis','567104XNnBvu','ck-ai-chat-resources__item-title','extendTemplate'];_0x2a6d=function(){return _0x3023f3;};return _0x2a6d();}import{escapeRegExp as _0x283d24}from'es-toolkit/compat';import{AIContextItemType as _0x3e4333}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0xd94fc7,IconCheck as _0x127421,IconDocument as _0x5736c5,IconDocumentOutline as _0x12d377,IconLink as _0x464c62}from'@ckeditor/ckeditor5-icons';const Gr=_0x2e8678(0xab),Hr=_0x2e8678(0xbe),Jr=_0x2e8678(0xb6),Kr=_0x2e8678(0x9a);export class AIChatResourceListItemView extends _0x44b6ab{[_0x2e8678(0xa9)];[_0x2e8678(0xa8)];[_0x2e8678(0xbb)];constructor(_0x50047a,_0x293c5a){const _0x4db5f5=_0x2e8678;super(_0x50047a),this[_0x4db5f5(0xa9)]=_0x293c5a,this[_0x4db5f5(0xa4)](_0x4db5f5(0xba),!!_0x293c5a[_0x4db5f5(0xba)]),this[_0x4db5f5(0xa8)]=this[_0x4db5f5(0xc1)](),this[_0x4db5f5(0xbb)]=this[_0x4db5f5(0xa5)](),this[_0x4db5f5(0xc3)]();}[_0x2e8678(0xa1)](){const _0x24f3c2=_0x2e8678;super[_0x24f3c2(0xa1)]();}[_0x2e8678(0xbf)](_0x25944b){const _0x1bc3e9=_0x2e8678;if(_0x25944b[_0x1bc3e9(0xba)])return _0x127421;switch(_0x25944b[_0x1bc3e9(0xbd)]){case _0x3e4333[_0x1bc3e9(0xc2)]:return _0x5736c5;case _0x3e4333[_0x1bc3e9(0xa6)]:return _0x464c62;case _0x3e4333[_0x1bc3e9(0xb0)]:case _0x3e4333[_0x1bc3e9(0xa3)]:return _0xd94fc7;default:return _0x12d377;}}[_0x2e8678(0xb3)](_0x24541f){const _0x15a4e=_0x2e8678;if(!_0x24541f||''===_0x24541f[_0x15a4e(0x98)]())return void this[_0x15a4e(0xa8)][_0x15a4e(0xb3)](null);const _0x18b80a=new RegExp(_0x283d24(_0x24541f),'gi');this[_0x15a4e(0xa8)][_0x15a4e(0xb3)](_0x18b80a);}[_0x2e8678(0xb8)](_0x2f389c){const _0x1667ab=_0x2e8678;this[_0x1667ab(0xa9)][_0x1667ab(0xba)]=_0x2f389c,this[_0x1667ab(0xba)]=_0x2f389c,this[_0x1667ab(0xc0)]();}[_0x2e8678(0xc1)](){const _0x132811=_0x2e8678,_0xc0a0b8=new _0x22cd1b();return _0xc0a0b8[_0x132811(0xb2)]=this[_0x132811(0xa9)][_0x132811(0x9e)],_0xc0a0b8[_0x132811(0xb7)]({'tag':_0x132811(0xad),'attributes':{'class':[Jr]}}),_0xc0a0b8;}[_0x2e8678(0xa5)](){const _0x5bbb84=_0x2e8678,_0x26a5a5=new _0x3bf59b();return _0x26a5a5[_0x5bbb84(0xaa)]=this[_0x5bbb84(0xbf)](this[_0x5bbb84(0xa9)]),_0x26a5a5;}[_0x2e8678(0xc3)](){const _0x11d3d8=_0x2e8678,_0x1c7df3=this[_0x11d3d8(0xae)];this[_0x11d3d8(0x9d)]({'tag':_0x11d3d8(0xb1),'attributes':{'class':[Gr,_0x1c7df3['if'](_0x11d3d8(0xc4),_0x11d3d8(0xa7),_0x5f1d87=>!_0x5f1d87),_0x1c7df3['if'](_0x11d3d8(0xba),Hr)]},'children':[{'tag':_0x11d3d8(0xb1),'attributes':{'class':[Kr]},'children':[this[_0x11d3d8(0xbb)]]},this[_0x11d3d8(0xa8)]],'on':{'click':_0x1c7df3['to'](_0x11d3d8(0xaf))}});}[_0x2e8678(0xc0)](){const _0x58041b=_0x2e8678;this[_0x58041b(0xbb)][_0x58041b(0xaa)]=this[_0x58041b(0xbf)](this[_0x58041b(0xa9)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x502189=_0x40f6;(function(_0x5219a4,_0x170030){const _0x35beba=_0x40f6,_0x1c5062=_0x5219a4();while(!![]){try{const _0x112e4f=parseInt(_0x35beba(0x1bc))/0x1+-parseInt(_0x35beba(0x1b5))/0x2+-parseInt(_0x35beba(0x188))/0x3*(-parseInt(_0x35beba(0x1b4))/0x4)+parseInt(_0x35beba(0x189))/0x5*(parseInt(_0x35beba(0x1a0))/0x6)+parseInt(_0x35beba(0x1a9))/0x7+parseInt(_0x35beba(0x1bf))/0x8+parseInt(_0x35beba(0x186))/0x9*(-parseInt(_0x35beba(0x1af))/0xa);if(_0x112e4f===_0x170030)break;else _0x1c5062['push'](_0x1c5062['shift']());}catch(_0x16063e){_0x1c5062['push'](_0x1c5062['shift']());}}}(_0x2b83,0xb6091));function _0x2b83(){const _0x5b96b9=['populateSourceResourceBalloon','_config','onResourceSelected','onBackToContext','getTargetElement','805700sjeBiA','_locale','change:isLoading','execute','loadSourceResources','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','70bqyFdZ','_createBalloonHeader','addResourceToContext','delete','element','12232zfwmLB','1851384TSckNN','destroy','_addSourceResourceContent','_bodyCollection','_getResourcesViewFromBalloon','once','set','996601KYPJXN','children','_setupSingleResourceBalloonClickOutsideHandler','7459088xDAzvS','onBalloonClosed','getLimiterElement','isVisible','2736225OtVdXq','get','348jKKmHk','5ctAVss','searchInputVisibleFrom','hide','values','setResources','resource','extendTemplate','_sourceResourceBalloons','_createSourceResourceBalloonPanel','pin','isAnyResourceBalloonVisible','_createBackButton','ck-ai-chat-context-controls__source-balloon-panel','source','updateResourceState','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','onLoadSourceResources','showSourceResourcesBalloon','ck-button-icon\x20ck-button-back','closeSourceResourceBalloon','_createBalloonResourcesView','clear','label','8404014GFBtRd','content','add','show'];_0x2b83=function(){return _0x5b96b9;};return _0x2b83();}import{BalloonPanelView as _0x292c7b,ButtonView as _0x139a9c,clickOutsideHandler as _0x4cce64,FormHeaderView as _0x4560ee}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x4babc6}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0xcc227f}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x3d5c58}from'./aichatcontextresourcesview.js';const Nr=_0x502189(0x195),Xr=_0x502189(0x19b),Kr=_0x502189(0x1ae);function _0x40f6(_0x32309f,_0xa300c1){const _0x2b8372=_0x2b83();return _0x40f6=function(_0x40f601,_0x320d8a){_0x40f601=_0x40f601-0x183;let _0x335d98=_0x2b8372[_0x40f601];return _0x335d98;},_0x40f6(_0x32309f,_0xa300c1);}export class AIChatResourcesBalloonView{[_0x502189(0x190)]=new Map();[_0x502189(0x1b8)];[_0x502189(0x1aa)];[_0x502189(0x1a5)];constructor(_0x2ef2f7,_0x3bed02,_0x1bddcb){const _0x253396=_0x502189;this[_0x253396(0x1aa)]=_0x2ef2f7,this[_0x253396(0x1b8)]=_0x3bed02,this[_0x253396(0x1a5)]=_0x1bddcb;}[_0x502189(0x19a)](_0x18b369){const _0x20666b=_0x502189;let _0x45a0f1=this[_0x20666b(0x190)][_0x20666b(0x187)](_0x18b369['id']);_0x45a0f1||(_0x45a0f1=this[_0x20666b(0x191)](),this[_0x20666b(0x190)][_0x20666b(0x1bb)](_0x18b369['id'],_0x45a0f1),this[_0x20666b(0x1be)](_0x45a0f1)),this[_0x20666b(0x1b7)](_0x45a0f1,_0x18b369),_0x45a0f1[_0x20666b(0x1a3)]();const _0x283c91=this[_0x20666b(0x1a5)][_0x20666b(0x1a8)]();_0x283c91&&_0x45a0f1[_0x20666b(0x192)]({'target':_0x283c91,'limiter':this[_0x20666b(0x1a5)][_0x20666b(0x184)]()});}[_0x502189(0x1a4)](_0x590cbc,_0x11fdf1,_0x2d9ca0){const _0x954f85=_0x502189,_0x44156d=this[_0x954f85(0x190)][_0x954f85(0x187)](_0x590cbc);if(!_0x44156d)return;const _0x49328b=this[_0x954f85(0x1b9)](_0x44156d);_0x49328b&&(_0x49328b[_0x954f85(0x18d)](_0x11fdf1,_0x2d9ca0),_0x49328b[_0x954f85(0x1ba)](_0x954f85(0x1ab),()=>{const _0x154baa=_0x954f85;_0x44156d[_0x154baa(0x192)]({'target':this[_0x154baa(0x1a5)][_0x154baa(0x1a8)](),'limiter':this[_0x154baa(0x1a5)][_0x154baa(0x184)]()});}));}[_0x502189(0x19c)](_0x51d854){const _0x45fc67=_0x502189,_0x83bdf0=this[_0x45fc67(0x190)][_0x45fc67(0x187)](_0x51d854);_0x83bdf0&&requestAnimationFrame(()=>{const _0x58eb33=_0x45fc67;_0x83bdf0[_0x58eb33(0x18b)](),this[_0x58eb33(0x190)][_0x58eb33(0x1b2)](_0x51d854),this[_0x58eb33(0x1a5)][_0x58eb33(0x183)]();});}[_0x502189(0x193)](){const _0x477029=_0x502189;for(const _0x4c98b6 of this[_0x477029(0x190)][_0x477029(0x18c)]())if(_0x4c98b6[_0x477029(0x185)])return!0x0;return!0x1;}[_0x502189(0x197)](_0x528504,_0x47ad68,_0x11439e){const _0x5dd7ca=_0x502189,_0x174e0d=this[_0x5dd7ca(0x190)][_0x5dd7ca(0x187)](_0x528504);if(!_0x174e0d||!_0x174e0d[_0x5dd7ca(0x185)])return;const _0x11247b=this[_0x5dd7ca(0x1a5)][_0x5dd7ca(0x1a8)]();if(!_0x11247b)return;_0x174e0d[_0x5dd7ca(0x192)]({'target':_0x11247b,'limiter':this[_0x5dd7ca(0x1a5)][_0x5dd7ca(0x184)]()});const _0x5912bd=this[_0x5dd7ca(0x1b9)](_0x174e0d);_0x5912bd&&_0x5912bd[_0x5dd7ca(0x197)](_0x47ad68,_0x11439e);}[_0x502189(0x1b6)](){const _0x39f4ba=_0x502189;for(const _0x3e9504 of this[_0x39f4ba(0x190)][_0x39f4ba(0x18c)]())_0x3e9504[_0x39f4ba(0x1b6)]();this[_0x39f4ba(0x190)][_0x39f4ba(0x19e)]();}[_0x502189(0x191)](){const _0x3be636=_0x502189,_0x576331=new _0x292c7b(this[_0x3be636(0x1aa)]);return _0x576331[_0x3be636(0x18f)]({'attributes':{'class':Nr}}),this[_0x3be636(0x1b8)][_0x3be636(0x1a2)](_0x576331),_0x576331;}[_0x502189(0x1b7)](_0x1a90a7,_0x25485a){const _0x18805e=_0x502189;_0x1a90a7[_0x18805e(0x1a1)][_0x18805e(0x19e)]();const _0x377bc8=this[_0x18805e(0x1b0)](_0x1a90a7,_0x25485a);_0x1a90a7[_0x18805e(0x1a1)][_0x18805e(0x1a2)](_0x377bc8);const _0x52d445=this[_0x18805e(0x19d)](_0x25485a);_0x1a90a7[_0x18805e(0x1a1)][_0x18805e(0x1a2)](_0x52d445);}[_0x502189(0x1b0)](_0x2ecb99,_0x4d3388){const _0x25e49b=_0x502189,_0x4283b4=this[_0x25e49b(0x194)](_0x2ecb99),_0x4aa1fb=new _0x4560ee(this[_0x25e49b(0x1aa)],{'label':_0x4d3388[_0x25e49b(0x19f)],'class':Kr});return _0x4aa1fb[_0x25e49b(0x1bd)][_0x25e49b(0x1a2)](_0x4283b4,0x0),_0x4aa1fb;}[_0x502189(0x194)](_0x2bcf06){const _0xdc3882=_0x502189,_0x37c21d=new _0x139a9c(this[_0xdc3882(0x1aa)]);return _0x37c21d[_0xdc3882(0x1bb)]({'icon':_0x4babc6,'tooltip':_0xcc227f(this[_0xdc3882(0x1aa)],_0xdc3882(0x198)),'tooltipPosition':'n','class':Xr}),_0x37c21d['on'](_0xdc3882(0x1ac),()=>{const _0x25cf28=_0xdc3882;_0x2bcf06[_0x25cf28(0x18b)](),this[_0x25cf28(0x1a5)][_0x25cf28(0x1a7)]();}),_0x37c21d;}[_0x502189(0x19d)](_0x4fc19e){const _0x591492=_0x502189,_0x37bf86=new _0x3d5c58(this[_0x591492(0x1aa)],{'source':_0x4fc19e,'searchInputVisibleFrom':this[_0x591492(0x1a5)][_0x591492(0x18a)]});return _0x37bf86['on'](_0x591492(0x1ad),(_0x32271c,_0x3392ef)=>{const _0x1fc7da=_0x591492;this[_0x1fc7da(0x1a5)][_0x1fc7da(0x199)](_0x3392ef);}),_0x37bf86['on'](_0x591492(0x1b1),(_0x40d65b,_0x839539)=>{const _0x5160aa=_0x591492;this[_0x5160aa(0x1a5)][_0x5160aa(0x1a6)](_0x839539[_0x5160aa(0x196)],_0x839539[_0x5160aa(0x18e)]),this[_0x5160aa(0x19c)](_0x4fc19e['id']);}),_0x37bf86;}[_0x502189(0x1b9)](_0x12503b){const _0x5f362e=_0x502189,_0x2e50ad=_0x12503b[_0x5f362e(0x1a1)][_0x5f362e(0x187)](0x1);return _0x2e50ad instanceof _0x3d5c58?_0x2e50ad:null;}[_0x502189(0x1be)](_0x229eaa){const _0x1f8032=_0x502189;_0x4cce64({'emitter':_0x229eaa,'contextElements':[_0x229eaa[_0x1f8032(0x1b3)]],'callback':()=>{const _0x28b7da=_0x1f8032;_0x229eaa[_0x28b7da(0x18b)](),this[_0x28b7da(0x1a5)][_0x28b7da(0x183)]();},'activator':()=>_0x229eaa[_0x1f8032(0x185)]});}}
23
+ const _0x16160c=_0x36f2;(function(_0x3f3f12,_0x5c47f3){const _0x4f6179=_0x36f2,_0x14147c=_0x3f3f12();while(!![]){try{const _0x2ca3aa=parseInt(_0x4f6179(0x19c))/0x1*(parseInt(_0x4f6179(0x17b))/0x2)+parseInt(_0x4f6179(0x1a4))/0x3*(parseInt(_0x4f6179(0x1b4))/0x4)+-parseInt(_0x4f6179(0x18c))/0x5+-parseInt(_0x4f6179(0x179))/0x6*(-parseInt(_0x4f6179(0x17d))/0x7)+-parseInt(_0x4f6179(0x1a9))/0x8*(parseInt(_0x4f6179(0x1b1))/0x9)+parseInt(_0x4f6179(0x1a7))/0xa+parseInt(_0x4f6179(0x199))/0xb*(-parseInt(_0x4f6179(0x19b))/0xc);if(_0x2ca3aa===_0x5c47f3)break;else _0x14147c['push'](_0x14147c['shift']());}catch(_0x2f6920){_0x14147c['push'](_0x14147c['shift']());}}}(_0x52a1,0xd0056));import{BalloonPanelView as _0x59b842,ButtonView as _0x4e8dd6,clickOutsideHandler as _0x120f8d,FormHeaderView as _0x4c942d}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x1b453c}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1df291}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x5c2b9b}from'./aichatcontextresourcesview.js';const Nr=_0x16160c(0x17f),Xr=_0x16160c(0x18e),Qr=_0x16160c(0x18f);function _0x36f2(_0x500e22,_0x143652){const _0x52a194=_0x52a1();return _0x36f2=function(_0x36f226,_0x2470fd){_0x36f226=_0x36f226-0x179;let _0x43a328=_0x52a194[_0x36f226];return _0x43a328;},_0x36f2(_0x500e22,_0x143652);}export class AIChatResourcesBalloonView{[_0x16160c(0x1b6)]=new Map();[_0x16160c(0x180)];[_0x16160c(0x1a8)];[_0x16160c(0x18b)];constructor(_0x2c11bb,_0x1973e2,_0x20c1de){const _0x1d409d=_0x16160c;this[_0x1d409d(0x1a8)]=_0x2c11bb,this[_0x1d409d(0x180)]=_0x1973e2,this[_0x1d409d(0x18b)]=_0x20c1de;}[_0x16160c(0x191)](_0x542a56){const _0x3b888a=_0x16160c;let _0x2253ae=this[_0x3b888a(0x1b6)][_0x3b888a(0x188)](_0x542a56['id']);_0x2253ae||(_0x2253ae=this[_0x3b888a(0x185)](),this[_0x3b888a(0x1b6)][_0x3b888a(0x192)](_0x542a56['id'],_0x2253ae),this[_0x3b888a(0x1b2)](_0x2253ae)),this[_0x3b888a(0x1ad)](_0x2253ae,_0x542a56),_0x2253ae[_0x3b888a(0x1a3)]();const _0x2001e6=this[_0x3b888a(0x18b)][_0x3b888a(0x1b7)]();_0x2001e6&&_0x2253ae[_0x3b888a(0x17e)]({'target':_0x2001e6,'limiter':this[_0x3b888a(0x18b)][_0x3b888a(0x1ac)]()});}[_0x16160c(0x198)](_0x202641,_0x490bff,_0x2d1b07){const _0x27335e=_0x16160c,_0x51539c=this[_0x27335e(0x1b6)][_0x27335e(0x188)](_0x202641);if(!_0x51539c)return;const _0xbf88f3=this[_0x27335e(0x189)](_0x51539c);_0xbf88f3&&(_0xbf88f3[_0x27335e(0x195)](_0x490bff,_0x2d1b07),_0xbf88f3[_0x27335e(0x183)](_0x27335e(0x17c),()=>{const _0x24e774=_0x27335e;_0x51539c[_0x24e774(0x17e)]({'target':this[_0x24e774(0x18b)][_0x24e774(0x1b7)](),'limiter':this[_0x24e774(0x18b)][_0x24e774(0x1ac)]()});}));}[_0x16160c(0x17a)](_0x39e5e5){const _0x18cfa5=_0x16160c,_0x223a8d=this[_0x18cfa5(0x1b6)][_0x18cfa5(0x188)](_0x39e5e5);_0x223a8d&&requestAnimationFrame(()=>{const _0x3ca214=_0x18cfa5;_0x223a8d[_0x3ca214(0x19f)](),this[_0x3ca214(0x1b6)][_0x3ca214(0x182)](_0x39e5e5),this[_0x3ca214(0x18b)][_0x3ca214(0x18a)]();});}[_0x16160c(0x18d)](){const _0x46b7b7=_0x16160c;for(const _0x6a425f of this[_0x46b7b7(0x1b6)][_0x46b7b7(0x184)]())if(_0x6a425f[_0x46b7b7(0x1aa)])return!0x0;return!0x1;}[_0x16160c(0x1b5)](_0x52f17d,_0x532f8a,_0xf58b4b){const _0x39570f=_0x16160c,_0x4be910=this[_0x39570f(0x1b6)][_0x39570f(0x188)](_0x52f17d);if(!_0x4be910||!_0x4be910[_0x39570f(0x1aa)])return;const _0x3dd391=this[_0x39570f(0x18b)][_0x39570f(0x1b7)]();if(!_0x3dd391)return;_0x4be910[_0x39570f(0x17e)]({'target':_0x3dd391,'limiter':this[_0x39570f(0x18b)][_0x39570f(0x1ac)]()});const _0x35b2bb=this[_0x39570f(0x189)](_0x4be910);_0x35b2bb&&_0x35b2bb[_0x39570f(0x1b5)](_0x532f8a,_0xf58b4b);}[_0x16160c(0x19d)](){const _0x5d6f7b=_0x16160c;for(const _0x213803 of this[_0x5d6f7b(0x1b6)][_0x5d6f7b(0x184)]())_0x213803[_0x5d6f7b(0x19d)]();this[_0x5d6f7b(0x1b6)][_0x5d6f7b(0x187)]();}[_0x16160c(0x185)](){const _0x24eeec=_0x16160c,_0x3f9db2=new _0x59b842(this[_0x24eeec(0x1a8)]);return _0x3f9db2[_0x24eeec(0x1a5)]({'attributes':{'class':Nr}}),this[_0x24eeec(0x180)][_0x24eeec(0x1af)](_0x3f9db2),_0x3f9db2;}[_0x16160c(0x1ad)](_0x1ac114,_0x319713){const _0x32dc3f=_0x16160c;_0x1ac114[_0x32dc3f(0x19e)][_0x32dc3f(0x187)]();const _0x9d532d=this[_0x32dc3f(0x186)](_0x1ac114,_0x319713);_0x1ac114[_0x32dc3f(0x19e)][_0x32dc3f(0x1af)](_0x9d532d);const _0x5f40f2=this[_0x32dc3f(0x1a0)](_0x319713);_0x1ac114[_0x32dc3f(0x19e)][_0x32dc3f(0x1af)](_0x5f40f2);}[_0x16160c(0x186)](_0x1bcd4f,_0x24b941){const _0x34acc9=_0x16160c,_0x2bf4ce=this[_0x34acc9(0x190)](_0x1bcd4f),_0x2c8a0a=new _0x4c942d(this[_0x34acc9(0x1a8)],{'label':_0x24b941[_0x34acc9(0x181)],'class':Qr});return _0x2c8a0a[_0x34acc9(0x1a6)][_0x34acc9(0x1af)](_0x2bf4ce,0x0),_0x2c8a0a;}[_0x16160c(0x190)](_0x11f75e){const _0x3c1816=_0x16160c,_0x1d0075=new _0x4e8dd6(this[_0x3c1816(0x1a8)]);return _0x1d0075[_0x3c1816(0x192)]({'icon':_0x1b453c,'tooltip':_0x1df291(this[_0x3c1816(0x1a8)],_0x3c1816(0x1ab)),'tooltipPosition':'n','class':Xr}),_0x1d0075['on'](_0x3c1816(0x1b3),()=>{const _0xda7dcd=_0x3c1816;_0x11f75e[_0xda7dcd(0x19f)](),this[_0xda7dcd(0x18b)][_0xda7dcd(0x196)]();}),_0x1d0075;}[_0x16160c(0x1a0)](_0x17c013){const _0x4c62d1=_0x16160c,_0x41d4a1=new _0x5c2b9b(this[_0x4c62d1(0x1a8)],{'source':_0x17c013,'searchInputVisibleFrom':this[_0x4c62d1(0x18b)][_0x4c62d1(0x1a2)]});return _0x41d4a1['on'](_0x4c62d1(0x193),(_0x22f32b,_0x2da860)=>{const _0x1f67ce=_0x4c62d1;this[_0x1f67ce(0x18b)][_0x1f67ce(0x197)](_0x2da860);}),_0x41d4a1['on'](_0x4c62d1(0x194),(_0xa1ede3,_0x2166d1)=>{const _0x22f2c1=_0x4c62d1;this[_0x22f2c1(0x18b)][_0x22f2c1(0x1ae)](_0x2166d1[_0x22f2c1(0x1b0)],_0x2166d1[_0x22f2c1(0x1a1)]),this[_0x22f2c1(0x17a)](_0x17c013['id']);}),_0x41d4a1;}[_0x16160c(0x189)](_0x4afd71){const _0x466538=_0x16160c,_0x4b428f=_0x4afd71[_0x466538(0x19e)][_0x466538(0x188)](0x1);return _0x4b428f instanceof _0x5c2b9b?_0x4b428f:null;}[_0x16160c(0x1b2)](_0x35de77){const _0x2b6827=_0x16160c;_0x120f8d({'emitter':_0x35de77,'contextElements':[_0x35de77[_0x2b6827(0x19a)]],'callback':()=>{const _0x599fdd=_0x2b6827;_0x35de77[_0x599fdd(0x19f)](),this[_0x599fdd(0x18b)][_0x599fdd(0x18a)]();},'activator':()=>_0x35de77[_0x2b6827(0x1aa)]});}}function _0x52a1(){const _0x17dfd9=['618ItfKcr','closeSourceResourceBalloon','2QAUWTq','change:isLoading','89915RUukKP','pin','ck-ai-chat-context-controls__source-balloon-panel','_bodyCollection','label','delete','once','values','_createSourceResourceBalloonPanel','_createBalloonHeader','clear','get','_getResourcesViewFromBalloon','onBalloonClosed','_config','4469290woKEfx','isAnyResourceBalloonVisible','ck-button-icon\x20ck-button-back','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','_createBackButton','showSourceResourcesBalloon','set','loadSourceResources','addResourceToContext','setResources','onBackToContext','onLoadSourceResources','populateSourceResourceBalloon','165dcqayj','element','1368804yWSCar','1562753HFcPms','destroy','content','hide','_createBalloonResourcesView','resource','searchInputVisibleFrom','show','450966etvMbi','extendTemplate','children','12162140iMmzPP','_locale','56312FffxZf','isVisible','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','getLimiterElement','_addSourceResourceContent','onResourceSelected','add','source','1017lIXTsJ','_setupSingleResourceBalloonClickOutsideHandler','execute','4TcNFnd','updateResourceState','_sourceResourceBalloons','getTargetElement'];_0x52a1=function(){return _0x17dfd9;};return _0x52a1();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x4d8c3a,IconView as _0x10c657,LabeledFieldView as _0x1eee8,createLabeledInputText as _0x10806f}from'ckeditor5/src/ui.js';import{IconLoupe as _0x673375,IconCancel as _0x36b030}from'ckeditor5/src/icons.js';import{getTranslation as _0xe90aa7}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x1eee8{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x35f014){const t=_0x35f014['t'],_0x1da6d1={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x10806f,'label':_0xe90aa7(_0x35f014,'AI_CHAT_SEARCH_RESOURCES')};super(_0x35f014,_0x1da6d1['creator']),this['label']=_0x1da6d1['label'],this['_viewConfig']=_0x1da6d1,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x35f014,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x45333d){this['fire']('search',_0x45333d);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x10c657(),this['iconView']['content']=_0x673375,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x16078c,t){this['resetButtonView']=new _0x4d8c3a(_0x16078c),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x36b030,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x379ba4=>!_0x379ba4),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
23
+ import{ButtonView as _0x4cfcb2,IconView as _0x26c9af,LabeledFieldView as _0x10a676,createLabeledInputText as _0x9d1114}from'ckeditor5/src/ui.js';import{IconLoupe as _0x50b37d,IconCancel as _0x1dd793}from'ckeditor5/src/icons.js';import{getTranslation as _0x2d3023}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x10a676{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x329922){const t=_0x329922['t'],_0x76e9de={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x9d1114,'label':_0x2d3023(_0x329922,'AI_CHAT_SEARCH_RESOURCES')};super(_0x329922,_0x76e9de['creator']),this['label']=_0x76e9de['label'],this['_viewConfig']=_0x76e9de,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x329922,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x173174){this['fire']('search',_0x173174);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x26c9af(),this['iconView']['content']=_0x50b37d,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x19dbde,t){this['resetButtonView']=new _0x4cfcb2(_0x19dbde),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x1dd793,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0xcd5648=>!_0xcd5648),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1bbb82=_0x2aa9;(function(_0x10ecc4,_0x46a97d){const _0x33b7fb=_0x2aa9,_0x415238=_0x10ecc4();while(!![]){try{const _0x3002cb=parseInt(_0x33b7fb(0x16e))/0x1*(parseInt(_0x33b7fb(0x15d))/0x2)+parseInt(_0x33b7fb(0x161))/0x3*(-parseInt(_0x33b7fb(0x16d))/0x4)+parseInt(_0x33b7fb(0x155))/0x5*(-parseInt(_0x33b7fb(0x16f))/0x6)+-parseInt(_0x33b7fb(0x15c))/0x7*(-parseInt(_0x33b7fb(0x164))/0x8)+-parseInt(_0x33b7fb(0x174))/0x9+parseInt(_0x33b7fb(0x168))/0xa*(-parseInt(_0x33b7fb(0x176))/0xb)+parseInt(_0x33b7fb(0x160))/0xc;if(_0x3002cb===_0x46a97d)break;else _0x415238['push'](_0x415238['shift']());}catch(_0x5696c2){_0x415238['push'](_0x415238['shift']());}}}(_0x55de,0x279e9));import{View as _0x4f5a7c}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x1bbc5}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x2f4218}from'../controls/aichatchipsoverflowmanager.js';const $o=_0x1bbb82(0x167),Qo=_0x1bbb82(0x16c),Xo=_0x1bbb82(0x166),Lo=_0x1bbb82(0x170),Oo=_0x1bbb82(0x173),Mo=_0x1bbb82(0x171);function _0x55de(){const _0x2edf02=['div','locale','7WvQyTS','4106ZQKShe','_createContextChips','createCollection','5697180ayAYUm','39iVkLMs','_bodyCollection','add','897256EtkMic','_overflowManager','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat__feed__context-chips','10cpQQsc','reorganizeChips','render','setContainerElement','ck-ai-chat-context-chips-wrapper','37624YuqIcY','11BkxAxw','42TrIfzI','ck-ai-chat-controls-button','ck-ai-chat-context-controls__show-more-balloon-panel','setTemplate','ck-ai-chat-controls_context_show-more-button','1163232ikJMvm','ck-reset_all','279730yEVqre','121620arpwXn','element','querySelector','destroy','_contextChips'];_0x55de=function(){return _0x2edf02;};return _0x55de();}function _0x2aa9(_0x2f257c,_0x3912ac){const _0x55de83=_0x55de();return _0x2aa9=function(_0x2aa94c,_0x47c1e2){_0x2aa94c=_0x2aa94c-0x155;let _0x59deee=_0x55de83[_0x2aa94c];return _0x59deee;},_0x2aa9(_0x2f257c,_0x3912ac);}export class AIChatFeedContextChipsView extends _0x4f5a7c{[_0x1bbb82(0x159)]=this[_0x1bbb82(0x15f)]();[_0x1bbb82(0x165)];[_0x1bbb82(0x162)];constructor(_0x32e514,_0x41f70b,_0x14c4fe){const _0xb49b05=_0x1bbb82;super(_0x32e514),this[_0xb49b05(0x162)]=_0x14c4fe,this[_0xb49b05(0x15e)](_0x41f70b);const _0x47cb00={'cssClasses':{'showMoreButton':Oo,'showMoreBalloon':Mo,'overflowContainer':Xo,'controlsButton':Lo}};this[_0xb49b05(0x165)]=new _0x2f4218(_0x32e514,this[_0xb49b05(0x159)],_0x47cb00,this[_0xb49b05(0x162)],this),this[_0xb49b05(0x172)]({'tag':_0xb49b05(0x15a),'attributes':{'class':[$o,'ck',_0xb49b05(0x175)]},'children':[{'tag':_0xb49b05(0x15a),'attributes':{'class':Qo},'children':this[_0xb49b05(0x159)]}]});}[_0x1bbb82(0x16a)](){const _0x528fb0=_0x1bbb82;super[_0x528fb0(0x16a)]();const _0x309eaf=this[_0x528fb0(0x156)][_0x528fb0(0x157)]('.'+Qo);_0x309eaf&&(this[_0x528fb0(0x165)][_0x528fb0(0x16b)](_0x309eaf),this[_0x528fb0(0x165)][_0x528fb0(0x169)]());}[_0x1bbb82(0x158)](){const _0x3e104d=_0x1bbb82;super[_0x3e104d(0x158)](),this[_0x3e104d(0x165)][_0x3e104d(0x158)]();}[_0x1bbb82(0x15e)](_0x206da1){const _0x4e67ce=_0x1bbb82;for(const _0x300b13 of _0x206da1){const _0x18cd0a=new _0x1bbc5(this[_0x4e67ce(0x15b)],_0x300b13,!0x0,!0x1);this[_0x4e67ce(0x159)][_0x4e67ce(0x163)](_0x18cd0a);}}}
23
+ const _0xf82198=_0x5713;function _0x2acb(){const _0x17fce3=['_createContextChips','querySelector','createCollection','20FPsKey','reorganizeChips','setContainerElement','add','1368867yDLtKj','1950504sCJicA','_overflowManager','ck-ai-chat__feed__context-chips','ck-ai-chat-context-chips-wrapper-balloon','locale','div','5382894eUKnsb','ck-ai-chat-context-controls__show-more-balloon-panel','setTemplate','5emsYfj','16812000wicnMn','ck-ai-chat-controls-button','_contextChips','element','destroy','4824015AjAYlX','ck-ai-chat-context-chips-wrapper','370485sexqZG','4642032hmaSPA','ck-ai-chat-controls_context_show-more-button','_bodyCollection','ck-reset_all','render'];_0x2acb=function(){return _0x17fce3;};return _0x2acb();}(function(_0x1e0117,_0x375b79){const _0x45725e=_0x5713,_0x47e645=_0x1e0117();while(!![]){try{const _0x45978b=-parseInt(_0x45725e(0x157))/0x1+parseInt(_0x45725e(0x153))/0x2*(-parseInt(_0x45725e(0x14a))/0x3)+parseInt(_0x45725e(0x158))/0x4+-parseInt(_0x45725e(0x161))/0x5*(-parseInt(_0x45725e(0x15e))/0x6)+parseInt(_0x45725e(0x148))/0x7+-parseInt(_0x45725e(0x14b))/0x8+parseInt(_0x45725e(0x162))/0x9;if(_0x45978b===_0x375b79)break;else _0x47e645['push'](_0x47e645['shift']());}catch(_0x1e84ad){_0x47e645['push'](_0x47e645['shift']());}}}(_0x2acb,0xb9059));import{View as _0x18c81d}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x4a7d27}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x52f046}from'../controls/aichatchipsoverflowmanager.js';const $o=_0xf82198(0x15a),Ko=_0xf82198(0x149),Qo=_0xf82198(0x15b),Uo=_0xf82198(0x144),No=_0xf82198(0x14c),Oo=_0xf82198(0x15f);function _0x5713(_0xd42c8c,_0x55e556){const _0x2acb37=_0x2acb();return _0x5713=function(_0x57136c,_0x2b2674){_0x57136c=_0x57136c-0x144;let _0x285606=_0x2acb37[_0x57136c];return _0x285606;},_0x5713(_0xd42c8c,_0x55e556);}export class AIChatFeedContextChipsView extends _0x18c81d{[_0xf82198(0x145)]=this[_0xf82198(0x152)]();[_0xf82198(0x159)];[_0xf82198(0x14d)];constructor(_0x59e904,_0x1f6b86,_0xbe23f8){const _0x6c513c=_0xf82198;super(_0x59e904),this[_0x6c513c(0x14d)]=_0xbe23f8,this[_0x6c513c(0x150)](_0x1f6b86);const _0x975012={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Qo,'controlsButton':Uo}};this[_0x6c513c(0x159)]=new _0x52f046(_0x59e904,this[_0x6c513c(0x145)],_0x975012,this[_0x6c513c(0x14d)],this),this[_0x6c513c(0x160)]({'tag':_0x6c513c(0x15d),'attributes':{'class':[$o,'ck',_0x6c513c(0x14e)]},'children':[{'tag':_0x6c513c(0x15d),'attributes':{'class':Ko},'children':this[_0x6c513c(0x145)]}]});}[_0xf82198(0x14f)](){const _0x289869=_0xf82198;super[_0x289869(0x14f)]();const _0x31e619=this[_0x289869(0x146)][_0x289869(0x151)]('.'+Ko);_0x31e619&&(this[_0x289869(0x159)][_0x289869(0x155)](_0x31e619),this[_0x289869(0x159)][_0x289869(0x154)]());}[_0xf82198(0x147)](){const _0x22767=_0xf82198;super[_0x22767(0x147)](),this[_0x22767(0x159)][_0x22767(0x147)]();}[_0xf82198(0x150)](_0x622a19){const _0xaa674=_0xf82198;for(const _0x2d67ab of _0x622a19){const _0x4585d6=new _0x4a7d27(this[_0xaa674(0x15c)],_0x2d67ab,!0x0,!0x1);this[_0xaa674(0x145)][_0xaa674(0x156)](_0x4585d6);}}}