@ckeditor/ckeditor5-ai 47.4.0-alpha.6 → 47.4.0

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 (134) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  15. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  22. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  26. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  27. package/src/aiballoon/ui/aiballoonview.js +1 -1
  28. package/src/aichat/aichat.js +1 -1
  29. package/src/aichat/aichatcontroller.js +1 -1
  30. package/src/aichat/aichatui.js +1 -1
  31. package/src/aichat/model/aichatcontext.js +1 -1
  32. package/src/aichat/model/aichatconversation.js +1 -1
  33. package/src/aichat/model/aichatinteraction.js +1 -1
  34. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  35. package/src/aichat/ui/aichatfeedview.js +1 -1
  36. package/src/aichat/ui/aichatheaderview.js +1 -1
  37. package/src/aichat/ui/aichatview.js +1 -1
  38. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  58. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  59. package/src/aichat/utils/eventnames.js +1 -1
  60. package/src/aichat/utils/promisequeue.js +1 -1
  61. package/src/aichathistory/aichathistory.js +1 -1
  62. package/src/aichathistory/aichathistorycontroller.js +1 -1
  63. package/src/aichathistory/aichathistoryui.js +1 -1
  64. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  65. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  66. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  67. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  68. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  69. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  70. package/src/aicore/aiconnector.js +1 -1
  71. package/src/aicore/aiediting.js +1 -1
  72. package/src/aicore/model/aicapabilities.js +1 -1
  73. package/src/aicore/model/aiinteraction.js +1 -1
  74. package/src/aicore/model/aimodels.js +1 -1
  75. package/src/aicore/model/aireply.js +1 -1
  76. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  77. package/src/aicore/pipeline/airesponseparser.js +2 -2
  78. package/src/aicore/ui/aidisclaimerview.js +1 -1
  79. package/src/aicore/ui/aiskeleton.js +1 -1
  80. package/src/aicore/ui/aispinner.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  86. package/src/aicore/utils/createresizebutton.js +1 -1
  87. package/src/aicore/utils/documentposition.js +1 -1
  88. package/src/aicore/utils/documentrange.js +1 -1
  89. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  90. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  91. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  92. package/src/aicore/utils/htmlparser.js +1 -1
  93. package/src/aicore/utils/htmlstreamer.js +1 -1
  94. package/src/aicore/utils/scrollmanager.js +1 -1
  95. package/src/aieditorintegration/aieditorintegration.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  97. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  98. package/src/aiquickactions/aiquickactions.js +1 -1
  99. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  100. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  101. package/src/aiquickactions/aiquickactionsui.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  104. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  105. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  106. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  107. package/src/aireviewmode/aireviewmode.js +1 -1
  108. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  109. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  110. package/src/aireviewmode/aireviewmodeui.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  112. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  113. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  114. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  115. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  116. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  117. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  118. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  122. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  123. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  124. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  125. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  126. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  127. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  128. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  129. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  130. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  131. package/src/aitabs/aitabs.js +1 -1
  132. package/src/aitabs/tabs/aitabsview.js +1 -1
  133. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  134. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xbed6b6=_0x5a99;(function(_0x3c4c13,_0x14d02d){const _0x320250=_0x5a99,_0x4ff8c7=_0x3c4c13();while(!![]){try{const _0x303943=parseInt(_0x320250(0x149))/0x1+-parseInt(_0x320250(0x167))/0x2*(parseInt(_0x320250(0x12a))/0x3)+parseInt(_0x320250(0x156))/0x4*(-parseInt(_0x320250(0x15b))/0x5)+-parseInt(_0x320250(0x144))/0x6*(parseInt(_0x320250(0x130))/0x7)+-parseInt(_0x320250(0x16d))/0x8+-parseInt(_0x320250(0x136))/0x9*(parseInt(_0x320250(0x138))/0xa)+parseInt(_0x320250(0x176))/0xb;if(_0x303943===_0x14d02d)break;else _0x4ff8c7['push'](_0x4ff8c7['shift']());}catch(_0x396f69){_0x4ff8c7['push'](_0x4ff8c7['shift']());}}}(_0x3248,0x846c8));import{FocusTracker as _0x2fe29d,KeystrokeHandler as _0xc1d206}from'ckeditor5/src/utils.js';import{View as _0x20289d,FocusCycler as _0x5f3f6c,createLabeledTextarea as _0x3fe84e}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0xb31da3,AIFormToolbarViewMainActionLabel as _0x182df9}from'./aiformtoolbarview.js';function _0x5a99(_0x491142,_0x4e268c){const _0x32480b=_0x3248();return _0x5a99=function(_0x5a99a8,_0x4128c3){_0x5a99a8=_0x5a99a8-0x125;let _0x5b563d=_0x32480b[_0x5a99a8];return _0x5b563d;},_0x5a99(_0x491142,_0x4e268c);}import{AIFormContentArea as _0xbd3d8a}from'./aiformcontentarea.js';import{AIFormErrorView as _0x400438}from'./aiformerrorview.js';import{AIFormPromptView as _0x3432b9}from'./aiformpromptview.js';function _0x3248(){const _0xbafde8=['delegate','45932392dJqIyX','ck-hidden','clearHistory','set','add','_createHistoryView','high','isVisible','focus','insertContentBelow','9582imMVWt','focusFirst','execute','fire','focusCycler','copyButtonView','1519mlquRu','isEnabled','render','stopButton','_createPromptView','startProcessing','27HAWdiL','chain','2344570EzNHFe','prompt','REPLACE','search','historyGroupView','isProcessing','ck-ai-form','listenTo','bindTemplate','replaceButton','Ask\x20AI\x20to\x20edit\x20or\x20generate','_promptHistory','9732WqhFmO','insertButton','focusLast','ck-ai-form-content','toolbar','62418kZuiJA','Ask\x20AI\x20to\x20improve\x20generated\x20text','fieldView','submit','createCollection','bindTo','promptView','mainAction','element','reset','Empty\x20history','stopProcessing','clear','132jLKcyC','handleError','label','text','tryAgainEvent','158335ZoDPGD','focusTracker','submitPrompt','setTemplate','AI_ERROR_FAILED','tryAgainButton','keystrokes','contentArea','_focusables','items','locale','_createToolbar','578yjzsmc','div','replaceContent','value','shift\x20+\x20tab','tab','5378080VauCeB','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','trim','isError','bind','errorView','queryView','finishProcessing'];_0x3248=function(){return _0xbafde8;};return _0x3248();}import{AIHistoryListView as _0x1cbc8e}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x4c5e3a}from'./aihistorylistitemview.js';import{PromptHistory as _0x470ce2}from'./prompthistory.js';import{getTranslation as _0x54f9d2}from'../../utils/common-translations.js';import{escape as _0x3cfbae}from'es-toolkit/compat';export class AIFormView extends _0x20289d{[_0xbed6b6(0x15c)];[_0xbed6b6(0x161)];[_0xbed6b6(0x162)];[_0xbed6b6(0x148)];[_0xbed6b6(0x14f)];[_0xbed6b6(0x172)];[_0xbed6b6(0x163)];[_0xbed6b6(0x12e)];[_0xbed6b6(0x143)];constructor(_0x1f455,_0x3b2c49,_0x45f4b2=''){const _0x212713=_0xbed6b6;super(_0x1f455),this[_0x212713(0x179)](_0x212713(0x131),!0x0),this[_0x212713(0x179)](_0x212713(0x13d),!0x1),this[_0x212713(0x179)](_0x212713(0x139),''),this[_0x212713(0x179)](_0x212713(0x16a),''),this[_0x212713(0x179)](_0x212713(0x170),!0x1),this[_0x212713(0x179)](_0x212713(0x150),_0x182df9[_0x212713(0x13a)]),this[_0x212713(0x143)]=new _0x470ce2(),this[_0x212713(0x172)]=new _0x400438(_0x1f455),this[_0x212713(0x162)]=new _0xbd3d8a(_0x1f455,_0x45f4b2),this[_0x212713(0x162)][_0x212713(0x171)](_0x212713(0x13d))['to'](this),this[_0x212713(0x162)][_0x212713(0x171)](_0x212713(0x16a))['to'](this),this[_0x212713(0x148)]=this[_0x212713(0x166)](),this[_0x212713(0x148)][_0x212713(0x171)](_0x212713(0x150))['to'](this),this[_0x212713(0x14f)]=this[_0x212713(0x134)](),this[_0x212713(0x15c)]=new _0x2fe29d(),this[_0x212713(0x161)]=new _0xc1d206(),this[_0x212713(0x163)]=this[_0x212713(0x14d)]([this[_0x212713(0x162)],this[_0x212713(0x162)][_0x212713(0x12f)],this[_0x212713(0x148)],this[_0x212713(0x14f)]]),this[_0x212713(0x12e)]=new _0x5f3f6c({'focusables':this[_0x212713(0x163)],'focusTracker':this[_0x212713(0x15c)],'keystrokeHandler':this[_0x212713(0x161)],'actions':{'focusPrevious':_0x212713(0x16b),'focusNext':_0x212713(0x16c)}}),this[_0x212713(0x12e)][_0x212713(0x137)](this[_0x212713(0x14f)][_0x212713(0x12e)]),this[_0x212713(0x14f)][_0x212713(0x173)][_0x212713(0x14b)][_0x212713(0x171)](_0x212713(0x16a))['to'](this,_0x212713(0x139));const _0x2f6573=this[_0x212713(0x140)];this[_0x212713(0x15e)]({'tag':_0x212713(0x168),'attributes':{'class':['ck',_0x212713(0x13e),_0x3b2c49],'tabindex':'-1'},'children':[{'tag':_0x212713(0x168),'attributes':{'class':['ck',_0x212713(0x147)]},'children':[{'tag':_0x212713(0x168),'attributes':{'class':[_0x2f6573['if'](_0x212713(0x170),_0x212713(0x177),_0x1063af=>!_0x1063af)]},'children':[this[_0x212713(0x172)]]},this[_0x212713(0x162)],this[_0x212713(0x148)],this[_0x212713(0x14f)]]}]});}[_0xbed6b6(0x132)](){const _0x3ba0c9=_0xbed6b6;super[_0x3ba0c9(0x132)](),this[_0x3ba0c9(0x15c)][_0x3ba0c9(0x17a)](this[_0x3ba0c9(0x162)][_0x3ba0c9(0x151)]),this[_0x3ba0c9(0x15c)][_0x3ba0c9(0x17a)](this[_0x3ba0c9(0x162)][_0x3ba0c9(0x12f)][_0x3ba0c9(0x151)]),this[_0x3ba0c9(0x15c)][_0x3ba0c9(0x17a)](this[_0x3ba0c9(0x148)][_0x3ba0c9(0x151)]),this[_0x3ba0c9(0x15c)][_0x3ba0c9(0x17a)](this[_0x3ba0c9(0x14f)][_0x3ba0c9(0x151)]),this[_0x3ba0c9(0x161)][_0x3ba0c9(0x13f)](this[_0x3ba0c9(0x151)]);}[_0xbed6b6(0x128)](_0x4849cb=0x1){const _0x4e6f1d=_0xbed6b6;-0x1===_0x4849cb?this[_0x4e6f1d(0x12e)][_0x4e6f1d(0x146)]():this[_0x4e6f1d(0x12e)][_0x4e6f1d(0x12b)]();}[_0xbed6b6(0x152)](){const _0x27a751=_0xbed6b6;this[_0x27a751(0x139)]='',this[_0x27a751(0x16a)]='',this[_0x27a751(0x170)]=!0x1,this[_0x27a751(0x14f)][_0x27a751(0x152)](),this[_0x27a751(0x162)][_0x27a751(0x127)]=!0x1,this[_0x27a751(0x148)][_0x27a751(0x127)]=!0x1;}[_0xbed6b6(0x134)](){const _0x48f9ff=_0xbed6b6,_0x1796c0=this[_0x48f9ff(0x165)],_0x411aa6=new _0x3432b9(_0x1796c0,{'queryView':{'label':_0x54f9d2(_0x1796c0,_0x48f9ff(0x142)),'creator':_0x3fe84e,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x54f9d2(_0x1796c0,_0x48f9ff(0x153)),'secondary':_0x54f9d2(_0x1796c0,_0x48f9ff(0x16e))}}},'filteredView':this[_0x48f9ff(0x125)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x411aa6[_0x48f9ff(0x171)](_0x48f9ff(0x131))['to'](this,_0x48f9ff(0x131),this,_0x48f9ff(0x13d),(_0x25b480,_0x391911)=>_0x25b480&&!_0x391911),this[_0x48f9ff(0x13f)](_0x411aa6,_0x48f9ff(0x14c),(_0x9b37e6,_0x1acb81)=>{const _0xab386b=_0x48f9ff;this[_0xab386b(0x139)]=_0x1acb81;const _0x49a89f=_0x3cfbae(_0x1acb81);this[_0xab386b(0x12d)](_0xab386b(0x15d),_0x49a89f),_0x1acb81[_0xab386b(0x16f)]()&&this[_0xab386b(0x143)][_0xab386b(0x17a)]({'prompt':_0x49a89f},0x0);},{'priority':_0x48f9ff(0x126)}),_0x411aa6;}[_0xbed6b6(0x125)](){const _0xd77763=_0xbed6b6,_0x53ac3f=new _0x1cbc8e(this[_0xd77763(0x165)]);return _0x53ac3f[_0xd77763(0x13c)][_0xd77763(0x164)][_0xd77763(0x14e)](this[_0xd77763(0x143)])['as'](_0x4c5e3a),_0x53ac3f['on'](_0xd77763(0x178),()=>{const _0x2599ff=_0xd77763;this[_0x2599ff(0x143)][_0x2599ff(0x155)](),this[_0x2599ff(0x14f)][_0x2599ff(0x13b)](''),this[_0x2599ff(0x14f)][_0x2599ff(0x128)]();}),_0x53ac3f;}[_0xbed6b6(0x166)](){const _0x5f16c4=_0xbed6b6,_0x5c4157=new _0xb31da3(this[_0x5f16c4(0x165)]);return _0x5c4157[_0x5f16c4(0x141)][_0x5f16c4(0x171)](_0x5f16c4(0x131))['to'](this,_0x5f16c4(0x131),this,_0x5f16c4(0x13d),this,_0x5f16c4(0x16a),(_0x503811,_0x4d79c7,_0x33f08c)=>_0x503811&&!_0x4d79c7&&!!_0x33f08c),_0x5c4157[_0x5f16c4(0x141)][_0x5f16c4(0x175)](_0x5f16c4(0x12c))['to'](this,_0x5f16c4(0x169)),_0x5c4157[_0x5f16c4(0x145)][_0x5f16c4(0x171)](_0x5f16c4(0x131))['to'](this,_0x5f16c4(0x131),this,_0x5f16c4(0x13d),this,_0x5f16c4(0x16a),(_0x3a112b,_0x51b9c0,_0x358ab0)=>_0x3a112b&&!_0x51b9c0&&!!_0x358ab0),_0x5c4157[_0x5f16c4(0x145)][_0x5f16c4(0x175)](_0x5f16c4(0x12c))['to'](this,_0x5f16c4(0x129)),_0x5c4157[_0x5f16c4(0x160)][_0x5f16c4(0x171)](_0x5f16c4(0x131))['to'](this,_0x5f16c4(0x131),this,_0x5f16c4(0x13d),(_0x363fc6,_0x3dc12f)=>_0x363fc6&&!_0x3dc12f),_0x5c4157[_0x5f16c4(0x160)][_0x5f16c4(0x175)](_0x5f16c4(0x12c))['to'](this,_0x5f16c4(0x15a)),_0x5c4157[_0x5f16c4(0x133)][_0x5f16c4(0x171)](_0x5f16c4(0x131))['to'](this,_0x5f16c4(0x13d)),_0x5c4157[_0x5f16c4(0x133)][_0x5f16c4(0x175)](_0x5f16c4(0x12c))['to'](this,_0x5f16c4(0x154)),_0x5c4157;}[_0xbed6b6(0x135)](){const _0x1aa024=_0xbed6b6;this[_0x1aa024(0x16a)]='',this[_0x1aa024(0x170)]=!0x1,this[_0x1aa024(0x13d)]=!0x0,this[_0x1aa024(0x162)][_0x1aa024(0x127)]=!0x0,this[_0x1aa024(0x148)][_0x1aa024(0x127)]=!0x0,this[_0x1aa024(0x162)][_0x1aa024(0x128)]();}[_0xbed6b6(0x174)](){const _0x4e33d2=_0xbed6b6,_0x49b180=this[_0x4e33d2(0x165)];this[_0x4e33d2(0x13d)]=!0x1,this[_0x4e33d2(0x139)]='',this[_0x4e33d2(0x14f)][_0x4e33d2(0x152)](),this[_0x4e33d2(0x16a)]&&(this[_0x4e33d2(0x14f)][_0x4e33d2(0x173)][_0x4e33d2(0x158)]=_0x54f9d2(_0x49b180,_0x4e33d2(0x14a)));}[_0xbed6b6(0x157)](_0x58cd1a){const _0x57f70f=_0xbed6b6,_0x49684f=this[_0x57f70f(0x165)];this[_0x57f70f(0x174)](),this[_0x57f70f(0x170)]=!0x0,this[_0x57f70f(0x172)][_0x57f70f(0x159)]=_0x58cd1a||_0x54f9d2(_0x49684f,_0x57f70f(0x15f)),this[_0x57f70f(0x16a)]||(this[_0x57f70f(0x162)][_0x57f70f(0x127)]=!0x1);}}
23
+ const _0x55ffe4=_0x268a;(function(_0x2c2a03,_0x265bba){const _0x46b5e8=_0x268a,_0x134718=_0x2c2a03();while(!![]){try{const _0x3de440=-parseInt(_0x46b5e8(0x17d))/0x1+-parseInt(_0x46b5e8(0x169))/0x2*(parseInt(_0x46b5e8(0x196))/0x3)+-parseInt(_0x46b5e8(0x18a))/0x4+-parseInt(_0x46b5e8(0x18f))/0x5*(-parseInt(_0x46b5e8(0x19c))/0x6)+parseInt(_0x46b5e8(0x180))/0x7+-parseInt(_0x46b5e8(0x1a0))/0x8*(-parseInt(_0x46b5e8(0x162))/0x9)+parseInt(_0x46b5e8(0x167))/0xa;if(_0x3de440===_0x265bba)break;else _0x134718['push'](_0x134718['shift']());}catch(_0x2ab71d){_0x134718['push'](_0x134718['shift']());}}}(_0x2d2c,0x7b402));import{FocusTracker as _0x493edf,KeystrokeHandler as _0x926b49}from'ckeditor5/src/utils.js';import{View as _0xbc12b4,FocusCycler as _0x394a14,createLabeledTextarea as _0x140f04}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x306dd6,AIFormToolbarViewMainActionLabel as _0x493b69}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x5825c2}from'./aiformcontentarea.js';import{AIFormErrorView as _0x539398}from'./aiformerrorview.js';import{AIFormPromptView as _0xdb0114}from'./aiformpromptview.js';import{AIHistoryListView as _0x18f8c6}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x5396df}from'./aihistorylistitemview.js';function _0x2d2c(){const _0x303f5c=['shift\x20+\x20tab','focus','clearHistory','items','85ouIIpb','focusLast','chain','startProcessing','search','fire','bindTo','1221249FlbpHc','AI_ERROR_FAILED','keystrokes','mainAction','clear','label','354768SFawZl','isError','value','render','32216gLaNGX','copyButtonView','tryAgainEvent','text','replaceButton','queryView','isProcessing','prompt','bindTemplate','fieldView','historyGroupView','_createToolbar','REPLACE','isVisible','high','trim','ck-ai-form-content','element','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','locale','contentArea','Empty\x20history','execute','837GhDwqt','delegate','errorView','promptView','handleError','602160FWMfwD','createCollection','4VLcmNQ','isEnabled','Ask\x20AI\x20to\x20improve\x20generated\x20text','submit','Ask\x20AI\x20to\x20edit\x20or\x20generate','div','insertContentBelow','_createHistoryView','_createPromptView','submitPrompt','toolbar','replaceContent','focusCycler','set','_promptHistory','insertButton','tab','stopProcessing','bind','add','221673CbgeLN','stopButton','reset','5443368qGxsPe','setTemplate','focusFirst','ck-hidden','listenTo','finishProcessing','_focusables','focusTracker','tryAgainButton','ck-ai-form','2707416vycMPi'];_0x2d2c=function(){return _0x303f5c;};return _0x2d2c();}import{PromptHistory as _0x1d6555}from'./prompthistory.js';import{getTranslation as _0x4bff3b}from'../../utils/common-translations.js';import{escape as _0x5f3c21}from'es-toolkit/compat';function _0x268a(_0x2f4846,_0x3e2f70){const _0x2d2c83=_0x2d2c();return _0x268a=function(_0x268a36,_0x376763){_0x268a36=_0x268a36-0x157;let _0x5aa9de=_0x2d2c83[_0x268a36];return _0x5aa9de;},_0x268a(_0x2f4846,_0x3e2f70);}export class AIFormView extends _0xbc12b4{[_0x55ffe4(0x187)];[_0x55ffe4(0x198)];[_0x55ffe4(0x15f)];[_0x55ffe4(0x173)];[_0x55ffe4(0x165)];[_0x55ffe4(0x164)];[_0x55ffe4(0x186)];[_0x55ffe4(0x175)];[_0x55ffe4(0x177)];constructor(_0x3fb773,_0x28ea47,_0x12fe23=''){const _0x57ef20=_0x55ffe4;super(_0x3fb773),this[_0x57ef20(0x176)](_0x57ef20(0x16a),!0x0),this[_0x57ef20(0x176)](_0x57ef20(0x1a6),!0x1),this[_0x57ef20(0x176)](_0x57ef20(0x1a7),''),this[_0x57ef20(0x176)](_0x57ef20(0x19e),''),this[_0x57ef20(0x176)](_0x57ef20(0x19d),!0x1),this[_0x57ef20(0x176)](_0x57ef20(0x199),_0x493b69[_0x57ef20(0x157)]),this[_0x57ef20(0x177)]=new _0x1d6555(),this[_0x57ef20(0x164)]=new _0x539398(_0x3fb773),this[_0x57ef20(0x15f)]=new _0x5825c2(_0x3fb773,_0x12fe23),this[_0x57ef20(0x15f)][_0x57ef20(0x17b)](_0x57ef20(0x1a6))['to'](this),this[_0x57ef20(0x15f)][_0x57ef20(0x17b)](_0x57ef20(0x19e))['to'](this),this[_0x57ef20(0x173)]=this[_0x57ef20(0x1ab)](),this[_0x57ef20(0x173)][_0x57ef20(0x17b)](_0x57ef20(0x199))['to'](this),this[_0x57ef20(0x165)]=this[_0x57ef20(0x171)](),this[_0x57ef20(0x187)]=new _0x493edf(),this[_0x57ef20(0x198)]=new _0x926b49(),this[_0x57ef20(0x186)]=this[_0x57ef20(0x168)]([this[_0x57ef20(0x15f)],this[_0x57ef20(0x15f)][_0x57ef20(0x1a1)],this[_0x57ef20(0x173)],this[_0x57ef20(0x165)]]),this[_0x57ef20(0x175)]=new _0x394a14({'focusables':this[_0x57ef20(0x186)],'focusTracker':this[_0x57ef20(0x187)],'keystrokeHandler':this[_0x57ef20(0x198)],'actions':{'focusPrevious':_0x57ef20(0x18b),'focusNext':_0x57ef20(0x179)}}),this[_0x57ef20(0x175)][_0x57ef20(0x191)](this[_0x57ef20(0x165)][_0x57ef20(0x175)]),this[_0x57ef20(0x165)][_0x57ef20(0x1a5)][_0x57ef20(0x1a9)][_0x57ef20(0x17b)](_0x57ef20(0x19e))['to'](this,_0x57ef20(0x1a7));const _0x5eab37=this[_0x57ef20(0x1a8)];this[_0x57ef20(0x181)]({'tag':_0x57ef20(0x16e),'attributes':{'class':['ck',_0x57ef20(0x189),_0x28ea47],'tabindex':'-1'},'children':[{'tag':_0x57ef20(0x16e),'attributes':{'class':['ck',_0x57ef20(0x15b)]},'children':[{'tag':_0x57ef20(0x16e),'attributes':{'class':[_0x5eab37['if'](_0x57ef20(0x19d),_0x57ef20(0x183),_0x237567=>!_0x237567)]},'children':[this[_0x57ef20(0x164)]]},this[_0x57ef20(0x15f)],this[_0x57ef20(0x173)],this[_0x57ef20(0x165)]]}]});}[_0x55ffe4(0x19f)](){const _0x15d7c9=_0x55ffe4;super[_0x15d7c9(0x19f)](),this[_0x15d7c9(0x187)][_0x15d7c9(0x17c)](this[_0x15d7c9(0x15f)][_0x15d7c9(0x15c)]),this[_0x15d7c9(0x187)][_0x15d7c9(0x17c)](this[_0x15d7c9(0x15f)][_0x15d7c9(0x1a1)][_0x15d7c9(0x15c)]),this[_0x15d7c9(0x187)][_0x15d7c9(0x17c)](this[_0x15d7c9(0x173)][_0x15d7c9(0x15c)]),this[_0x15d7c9(0x187)][_0x15d7c9(0x17c)](this[_0x15d7c9(0x165)][_0x15d7c9(0x15c)]),this[_0x15d7c9(0x198)][_0x15d7c9(0x184)](this[_0x15d7c9(0x15c)]);}[_0x55ffe4(0x18c)](_0x162028=0x1){const _0x468ccf=_0x55ffe4;-0x1===_0x162028?this[_0x468ccf(0x175)][_0x468ccf(0x190)]():this[_0x468ccf(0x175)][_0x468ccf(0x182)]();}[_0x55ffe4(0x17f)](){const _0x6f64ba=_0x55ffe4;this[_0x6f64ba(0x1a7)]='',this[_0x6f64ba(0x19e)]='',this[_0x6f64ba(0x19d)]=!0x1,this[_0x6f64ba(0x165)][_0x6f64ba(0x17f)](),this[_0x6f64ba(0x15f)][_0x6f64ba(0x158)]=!0x1,this[_0x6f64ba(0x173)][_0x6f64ba(0x158)]=!0x1;}[_0x55ffe4(0x171)](){const _0x43e219=_0x55ffe4,_0x735027=this[_0x43e219(0x15e)],_0x540c95=new _0xdb0114(_0x735027,{'queryView':{'label':_0x4bff3b(_0x735027,_0x43e219(0x16d)),'creator':_0x140f04,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4bff3b(_0x735027,_0x43e219(0x160)),'secondary':_0x4bff3b(_0x735027,_0x43e219(0x15d))}}},'filteredView':this[_0x43e219(0x170)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x540c95[_0x43e219(0x17b)](_0x43e219(0x16a))['to'](this,_0x43e219(0x16a),this,_0x43e219(0x1a6),(_0x3b2460,_0x5d01e4)=>_0x3b2460&&!_0x5d01e4),this[_0x43e219(0x184)](_0x540c95,_0x43e219(0x16c),(_0x253ede,_0x3990ad)=>{const _0x506cf0=_0x43e219;this[_0x506cf0(0x1a7)]=_0x3990ad;const _0x4de449=_0x5f3c21(_0x3990ad);this[_0x506cf0(0x194)](_0x506cf0(0x172),_0x4de449),_0x3990ad[_0x506cf0(0x15a)]()&&this[_0x506cf0(0x177)][_0x506cf0(0x17c)]({'prompt':_0x4de449},0x0);},{'priority':_0x43e219(0x159)}),_0x540c95;}[_0x55ffe4(0x170)](){const _0x10f736=_0x55ffe4,_0x46e16a=new _0x18f8c6(this[_0x10f736(0x15e)]);return _0x46e16a[_0x10f736(0x1aa)][_0x10f736(0x18e)][_0x10f736(0x195)](this[_0x10f736(0x177)])['as'](_0x5396df),_0x46e16a['on'](_0x10f736(0x18d),()=>{const _0x1a61e0=_0x10f736;this[_0x1a61e0(0x177)][_0x1a61e0(0x19a)](),this[_0x1a61e0(0x165)][_0x1a61e0(0x193)](''),this[_0x1a61e0(0x165)][_0x1a61e0(0x18c)]();}),_0x46e16a;}[_0x55ffe4(0x1ab)](){const _0x57c9cb=_0x55ffe4,_0x53f430=new _0x306dd6(this[_0x57c9cb(0x15e)]);return _0x53f430[_0x57c9cb(0x1a4)][_0x57c9cb(0x17b)](_0x57c9cb(0x16a))['to'](this,_0x57c9cb(0x16a),this,_0x57c9cb(0x1a6),this,_0x57c9cb(0x19e),(_0x5c6a44,_0x5b347a,_0x54cdb2)=>_0x5c6a44&&!_0x5b347a&&!!_0x54cdb2),_0x53f430[_0x57c9cb(0x1a4)][_0x57c9cb(0x163)](_0x57c9cb(0x161))['to'](this,_0x57c9cb(0x174)),_0x53f430[_0x57c9cb(0x178)][_0x57c9cb(0x17b)](_0x57c9cb(0x16a))['to'](this,_0x57c9cb(0x16a),this,_0x57c9cb(0x1a6),this,_0x57c9cb(0x19e),(_0x403541,_0x2c7484,_0x507679)=>_0x403541&&!_0x2c7484&&!!_0x507679),_0x53f430[_0x57c9cb(0x178)][_0x57c9cb(0x163)](_0x57c9cb(0x161))['to'](this,_0x57c9cb(0x16f)),_0x53f430[_0x57c9cb(0x188)][_0x57c9cb(0x17b)](_0x57c9cb(0x16a))['to'](this,_0x57c9cb(0x16a),this,_0x57c9cb(0x1a6),(_0x5d5eff,_0x1111ab)=>_0x5d5eff&&!_0x1111ab),_0x53f430[_0x57c9cb(0x188)][_0x57c9cb(0x163)](_0x57c9cb(0x161))['to'](this,_0x57c9cb(0x1a2)),_0x53f430[_0x57c9cb(0x17e)][_0x57c9cb(0x17b)](_0x57c9cb(0x16a))['to'](this,_0x57c9cb(0x1a6)),_0x53f430[_0x57c9cb(0x17e)][_0x57c9cb(0x163)](_0x57c9cb(0x161))['to'](this,_0x57c9cb(0x17a)),_0x53f430;}[_0x55ffe4(0x192)](){const _0x211b1d=_0x55ffe4;this[_0x211b1d(0x19e)]='',this[_0x211b1d(0x19d)]=!0x1,this[_0x211b1d(0x1a6)]=!0x0,this[_0x211b1d(0x15f)][_0x211b1d(0x158)]=!0x0,this[_0x211b1d(0x173)][_0x211b1d(0x158)]=!0x0,this[_0x211b1d(0x15f)][_0x211b1d(0x18c)]();}[_0x55ffe4(0x185)](){const _0xaa42c7=_0x55ffe4,_0x3ef2cb=this[_0xaa42c7(0x15e)];this[_0xaa42c7(0x1a6)]=!0x1,this[_0xaa42c7(0x1a7)]='',this[_0xaa42c7(0x165)][_0xaa42c7(0x17f)](),this[_0xaa42c7(0x19e)]&&(this[_0xaa42c7(0x165)][_0xaa42c7(0x1a5)][_0xaa42c7(0x19b)]=_0x4bff3b(_0x3ef2cb,_0xaa42c7(0x16b)));}[_0x55ffe4(0x166)](_0x1e84fa){const _0x320ca1=_0x55ffe4,_0x368b0f=this[_0x320ca1(0x15e)];this[_0x320ca1(0x185)](),this[_0x320ca1(0x19d)]=!0x0,this[_0x320ca1(0x164)][_0x320ca1(0x1a3)]=_0x1e84fa||_0x4bff3b(_0x368b0f,_0x320ca1(0x197)),this[_0x320ca1(0x19e)]||(this[_0x320ca1(0x15f)][_0x320ca1(0x158)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x55bf(_0x3a2964,_0x38f4c3){const _0x1f45f0=_0x1f45();return _0x55bf=function(_0x55bf86,_0xe872d3){_0x55bf86=_0x55bf86-0x9c;let _0xd87662=_0x1f45f0[_0x55bf86];return _0xd87662;},_0x55bf(_0x3a2964,_0x38f4c3);}(function(_0xae524e,_0x548302){const _0x49e4c4=_0x55bf,_0x2522b0=_0xae524e();while(!![]){try{const _0x2ced07=parseInt(_0x49e4c4(0xa3))/0x1+parseInt(_0x49e4c4(0xad))/0x2+parseInt(_0x49e4c4(0xa4))/0x3*(-parseInt(_0x49e4c4(0x9e))/0x4)+parseInt(_0x49e4c4(0xa7))/0x5*(parseInt(_0x49e4c4(0x9c))/0x6)+parseInt(_0x49e4c4(0xac))/0x7*(parseInt(_0x49e4c4(0xa9))/0x8)+parseInt(_0x49e4c4(0x9f))/0x9*(parseInt(_0x49e4c4(0xab))/0xa)+-parseInt(_0x49e4c4(0xa0))/0xb;if(_0x2ced07===_0x548302)break;else _0x2522b0['push'](_0x2522b0['shift']());}catch(_0x46ea20){_0x2522b0['push'](_0x2522b0['shift']());}}}(_0x1f45,0xb2bb5));import{ListItemView as _0x59f43a,ButtonView as _0x56e580,ButtonLabelView as _0x4bd789}from'ckeditor5/src/ui.js';import{unescape as _0x2a31aa}from'es-toolkit/compat';function _0x1f45(){const _0x114c5a=['135UihToP','16394873azqemc','fire','prompt','389cnVgJC','21qSFoGX','add','set','3595btRwgP','execute','8eoiHph','children','387630KrIjER','2041655fhHBmC','1435364PekcSg','9252pTljLJ','locale','272772jSGCuh'];_0x1f45=function(){return _0x114c5a;};return _0x1f45();}export class AIHistoryListItemView extends _0x59f43a{constructor(_0x216fbf){const _0x2b8b23=_0x55bf;super();const _0x1268b9=new _0x4bd789(),_0x4b329c=new _0x56e580(this[_0x2b8b23(0x9d)],_0x1268b9);this[_0x2b8b23(0xaa)][_0x2b8b23(0xa5)](_0x4b329c),_0x4b329c[_0x2b8b23(0xa6)]({'label':_0x216fbf[_0x2b8b23(0xa2)],'withText':!0x0}),_0x4b329c['on'](_0x2b8b23(0xa8),()=>{const _0x33360f=_0x2b8b23;this[_0x33360f(0xa1)](_0x33360f(0xa8),{'value':_0x2a31aa(_0x216fbf[_0x33360f(0xa2)])});});}}
23
+ (function(_0x245dc3,_0x3d5420){const _0x2b7553=_0x2a93,_0x29b35b=_0x245dc3();while(!![]){try{const _0x2f42d4=parseInt(_0x2b7553(0x138))/0x1+parseInt(_0x2b7553(0x135))/0x2+-parseInt(_0x2b7553(0x130))/0x3+-parseInt(_0x2b7553(0x133))/0x4*(parseInt(_0x2b7553(0x136))/0x5)+parseInt(_0x2b7553(0x131))/0x6+parseInt(_0x2b7553(0x132))/0x7+-parseInt(_0x2b7553(0x139))/0x8;if(_0x2f42d4===_0x3d5420)break;else _0x29b35b['push'](_0x29b35b['shift']());}catch(_0x2a4854){_0x29b35b['push'](_0x29b35b['shift']());}}}(_0x5c81,0xed871));function _0x2a93(_0x1db71b,_0x734afb){const _0x5c81d3=_0x5c81();return _0x2a93=function(_0x2a9364,_0x1f587a){_0x2a9364=_0x2a9364-0x12f;let _0x14fdfd=_0x5c81d3[_0x2a9364];return _0x14fdfd;},_0x2a93(_0x1db71b,_0x734afb);}import{ListItemView as _0xa2a71d,ButtonView as _0x524272,ButtonLabelView as _0x45daf5}from'ckeditor5/src/ui.js';import{unescape as _0x9dc409}from'es-toolkit/compat';export class AIHistoryListItemView extends _0xa2a71d{constructor(_0xbe423f){const _0x2bdc88=_0x2a93;super();const _0x47ad44=new _0x45daf5(),_0x53b501=new _0x524272(this[_0x2bdc88(0x12f)],_0x47ad44);this[_0x2bdc88(0x13a)][_0x2bdc88(0x13b)](_0x53b501),_0x53b501[_0x2bdc88(0x134)]({'label':_0xbe423f[_0x2bdc88(0x13d)],'withText':!0x0}),_0x53b501['on'](_0x2bdc88(0x137),()=>{const _0x10fa25=_0x2bdc88;this[_0x10fa25(0x13c)](_0x10fa25(0x137),{'value':_0x9dc409(_0xbe423f[_0x10fa25(0x13d)])});});}}function _0x5c81(){const _0x168087=['children','add','fire','prompt','locale','3056592nKEmRo','11072022YNaYIH','12210849RFpkIX','128bjukXC','set','2784686IuzfuT','94725yMnsUb','execute','208814rCVzSs','20743072uizXCz'];_0x5c81=function(){return _0x168087;};return _0x5c81();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x345a46=_0x5a46;(function(_0x32a6a8,_0x5419e1){const _0x45fac9=_0x5a46,_0x19d711=_0x32a6a8();while(!![]){try{const _0x4a36e0=parseInt(_0x45fac9(0x11e))/0x1*(parseInt(_0x45fac9(0x112))/0x2)+parseInt(_0x45fac9(0x10e))/0x3*(parseInt(_0x45fac9(0x116))/0x4)+parseInt(_0x45fac9(0x118))/0x5+parseInt(_0x45fac9(0x11c))/0x6+-parseInt(_0x45fac9(0x11f))/0x7*(parseInt(_0x45fac9(0x11a))/0x8)+-parseInt(_0x45fac9(0x107))/0x9+-parseInt(_0x45fac9(0x11d))/0xa*(parseInt(_0x45fac9(0x10f))/0xb);if(_0x4a36e0===_0x5419e1)break;else _0x19d711['push'](_0x19d711['shift']());}catch(_0x48f6e5){_0x19d711['push'](_0x19d711['shift']());}}}(_0xf02a,0x67260));function _0xf02a(){const _0x8ae0ce=['95873wzZYUS','889pAqsiu','children','_createClearHistoryButton','clearHistory','7379883eiKIcU','clearHistoryButton','delegate','Clear','execute','locale','set','3yFCmRZ','29755kIaVQE','fire','label','4wiSSZN','add','items','historyGroupView','444828TKhDIF','Prompt\x20history','3323355WPCqjD','length','3376WsSSmD','filter','2490078EtADHW','320OLiCWG'];_0xf02a=function(){return _0x8ae0ce;};return _0xf02a();}function _0x5a46(_0x1b5660,_0x131fb5){const _0xf02a2f=_0xf02a();return _0x5a46=function(_0x5a46e8,_0x59377e){_0x5a46e8=_0x5a46e8-0x107;let _0x485e48=_0xf02a2f[_0x5a46e8];return _0x485e48;},_0x5a46(_0x1b5660,_0x131fb5);}import{ListView as _0x5b7779,ListItemGroupView as _0xaba4cb,ButtonView as _0x571c91}from'ckeditor5/src/ui.js';import{getTranslation as _0x5685a1}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x5b7779{[_0x345a46(0x115)];[_0x345a46(0x108)];constructor(_0x126ea9){const _0x44a2c2=_0x345a46;super(_0x126ea9),this[_0x44a2c2(0x108)]=this[_0x44a2c2(0x121)](),this[_0x44a2c2(0x115)]=new _0xaba4cb(),this[_0x44a2c2(0x115)][_0x44a2c2(0x120)][_0x44a2c2(0x113)](this[_0x44a2c2(0x108)],0x1),this[_0x44a2c2(0x115)][_0x44a2c2(0x111)]=_0x5685a1(_0x126ea9,_0x44a2c2(0x117)),this[_0x44a2c2(0x115)][_0x44a2c2(0x114)][_0x44a2c2(0x109)](_0x44a2c2(0x10b))['to'](this),this[_0x44a2c2(0x114)][_0x44a2c2(0x113)](this[_0x44a2c2(0x115)]);}[_0x345a46(0x11b)](){const _0x556bb3=_0x345a46;let _0x22ec75=0x0;for(const _0x575207 of this[_0x556bb3(0x114)])_0x22ec75+=_0x575207[_0x556bb3(0x114)][_0x556bb3(0x119)];return{'resultsCount':_0x22ec75,'totalItemsCount':_0x22ec75};}[_0x345a46(0x121)](){const _0x512137=_0x345a46,_0x43822a=this[_0x512137(0x10c)],_0x1da548=new _0x571c91(this[_0x512137(0x10c)]);return _0x1da548[_0x512137(0x10d)]({'label':'('+_0x5685a1(_0x43822a,_0x512137(0x10a))+')','withText':!0x0}),_0x1da548['on'](_0x512137(0x10b),()=>this[_0x512137(0x110)](_0x512137(0x122))),_0x1da548;}}
23
+ function _0x407d(_0x4e2c5a,_0x192933){const _0x2dfd4a=_0x2dfd();return _0x407d=function(_0x407d5e,_0x2893dd){_0x407d5e=_0x407d5e-0x1e4;let _0x2f5436=_0x2dfd4a[_0x407d5e];return _0x2f5436;},_0x407d(_0x4e2c5a,_0x192933);}const _0x3e12d8=_0x407d;(function(_0x53acda,_0x341265){const _0x322c67=_0x407d,_0x4b085c=_0x53acda();while(!![]){try{const _0x53e9d9=parseInt(_0x322c67(0x1e9))/0x1+parseInt(_0x322c67(0x1e7))/0x2*(-parseInt(_0x322c67(0x1eb))/0x3)+-parseInt(_0x322c67(0x1e6))/0x4*(-parseInt(_0x322c67(0x1fd))/0x5)+parseInt(_0x322c67(0x1fe))/0x6+parseInt(_0x322c67(0x1f8))/0x7*(-parseInt(_0x322c67(0x1ea))/0x8)+parseInt(_0x322c67(0x1f6))/0x9+parseInt(_0x322c67(0x1f4))/0xa;if(_0x53e9d9===_0x341265)break;else _0x4b085c['push'](_0x4b085c['shift']());}catch(_0x142f05){_0x4b085c['push'](_0x4b085c['shift']());}}}(_0x2dfd,0x25147));import{ListView as _0xffc045,ListItemGroupView as _0x582e8c,ButtonView as _0x2d2e8c}from'ckeditor5/src/ui.js';import{getTranslation as _0x431414}from'../../utils/common-translations.js';export class AIHistoryListView extends _0xffc045{[_0x3e12d8(0x1fc)];[_0x3e12d8(0x1e5)];constructor(_0x3fa246){const _0x56a126=_0x3e12d8;super(_0x3fa246),this[_0x56a126(0x1e5)]=this[_0x56a126(0x1fa)](),this[_0x56a126(0x1fc)]=new _0x582e8c(),this[_0x56a126(0x1fc)][_0x56a126(0x1e4)][_0x56a126(0x1f0)](this[_0x56a126(0x1e5)],0x1),this[_0x56a126(0x1fc)][_0x56a126(0x1ed)]=_0x431414(_0x3fa246,_0x56a126(0x1ee)),this[_0x56a126(0x1fc)][_0x56a126(0x1f3)][_0x56a126(0x1f9)](_0x56a126(0x1fb))['to'](this),this[_0x56a126(0x1f3)][_0x56a126(0x1f0)](this[_0x56a126(0x1fc)]);}[_0x3e12d8(0x1f1)](){const _0x337ad0=_0x3e12d8;let _0x62c7c7=0x0;for(const _0x517136 of this[_0x337ad0(0x1f3)])_0x62c7c7+=_0x517136[_0x337ad0(0x1f3)][_0x337ad0(0x1f2)];return{'resultsCount':_0x62c7c7,'totalItemsCount':_0x62c7c7};}[_0x3e12d8(0x1fa)](){const _0x4b8c0d=_0x3e12d8,_0x575c86=this[_0x4b8c0d(0x1e8)],_0x2744be=new _0x2d2e8c(this[_0x4b8c0d(0x1e8)]);return _0x2744be[_0x4b8c0d(0x1ec)]({'label':'('+_0x431414(_0x575c86,_0x4b8c0d(0x1f5))+')','withText':!0x0}),_0x2744be['on'](_0x4b8c0d(0x1fb),()=>this[_0x4b8c0d(0x1f7)](_0x4b8c0d(0x1ef))),_0x2744be;}}function _0x2dfd(){const _0x35c5e4=['509410bkagCa','Clear','676989VHgCgC','fire','1495529QZHKrH','delegate','_createClearHistoryButton','execute','historyGroupView','23890JRrbel','813258vsLZfi','children','clearHistoryButton','148KxLQfs','543682eaGNXk','locale','198876VBRNPt','8HXCIzP','3pmORZK','set','label','Prompt\x20history','clearHistory','add','filter','length','items'];_0x2dfd=function(){return _0x35c5e4;};return _0x2dfd();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20f404=_0x9310;(function(_0x49d11c,_0x5a6ac3){const _0x2314b1=_0x9310,_0x390f2a=_0x49d11c();while(!![]){try{const _0x383f1c=-parseInt(_0x2314b1(0x138))/0x1+parseInt(_0x2314b1(0x130))/0x2+-parseInt(_0x2314b1(0x12b))/0x3+parseInt(_0x2314b1(0x123))/0x4*(-parseInt(_0x2314b1(0x13a))/0x5)+-parseInt(_0x2314b1(0x12f))/0x6*(parseInt(_0x2314b1(0x12e))/0x7)+parseInt(_0x2314b1(0x136))/0x8+-parseInt(_0x2314b1(0x137))/0x9*(-parseInt(_0x2314b1(0x124))/0xa);if(_0x383f1c===_0x5a6ac3)break;else _0x390f2a['push'](_0x390f2a['shift']());}catch(_0x6c503e){_0x390f2a['push'](_0x390f2a['shift']());}}}(_0x54b2,0xe90f2));function _0x9310(_0x175355,_0x39c467){const _0x54b26d=_0x54b2();return _0x9310=function(_0x9310e8,_0xd2b093){_0x9310e8=_0x9310e8-0x121;let _0x36d0a3=_0x54b26d[_0x9310e8];return _0x36d0a3;},_0x9310(_0x175355,_0x39c467);}import{Collection as _0x188740}from'ckeditor5/src/utils.js';function _0x54b2(){const _0x3bd93a=['trim','length','_loadFromSessionStorage','11760968XPBoHh','36AUcpdG','1197126yRDUHf','prompt','5029255MOTySc','map','parse','4tTESnz','7277990KObRmA','CKEditor/AIFormView/PromptHistory','addMany','_saveToSessionStorage','setItem','last','add','827724NoHMXU','getItem','stringify','7334817QCBKrx','6NofWYg','200018pJjvVx','toLowerCase','remove'];_0x54b2=function(){return _0x3bd93a;};return _0x54b2();}const So=_0x20f404(0x125);export class PromptHistory extends _0x188740{constructor(){const _0x11155d=_0x20f404;super(),this[_0x11155d(0x135)](),this['on'](_0x11155d(0x12a),(_0x2a4c92,_0x2c3c60)=>{const _0x34e464=_0x11155d,_0x5b6eb5=go(_0x2c3c60[_0x34e464(0x139)]);for(const _0x57c8e8 of this)if(_0x57c8e8!=_0x2c3c60&&go(_0x57c8e8[_0x34e464(0x139)])===_0x5b6eb5){this[_0x34e464(0x132)](_0x57c8e8);break;}this[_0x34e464(0x134)]>0x14&&this[_0x34e464(0x132)](this[_0x34e464(0x129)]),this[_0x34e464(0x127)]();}),this['on'](_0x11155d(0x132),()=>{const _0x2bf3b3=_0x11155d;this[_0x2bf3b3(0x127)]();});}[_0x20f404(0x135)](){const _0x33175d=_0x20f404,_0x548440=sessionStorage[_0x33175d(0x12c)](So)||'[]';this[_0x33175d(0x126)](JSON[_0x33175d(0x122)](_0x548440));}[_0x20f404(0x127)](){const _0x6dd0=_0x20f404;sessionStorage[_0x6dd0(0x128)](So,JSON[_0x6dd0(0x12d)](this[_0x6dd0(0x121)](_0x175ec0=>_0x175ec0)));}}function go(_0xe39b43){const _0x47761f=_0x20f404;return _0xe39b43[_0x47761f(0x131)]()[_0x47761f(0x133)]();}
23
+ const _0x1f59fc=_0x48eb;(function(_0x1abf80,_0x24404c){const _0x219655=_0x48eb,_0x3c95f8=_0x1abf80();while(!![]){try{const _0x31672e=-parseInt(_0x219655(0xbf))/0x1+-parseInt(_0x219655(0xbe))/0x2*(-parseInt(_0x219655(0xbb))/0x3)+-parseInt(_0x219655(0xc0))/0x4*(parseInt(_0x219655(0xbd))/0x5)+-parseInt(_0x219655(0xc8))/0x6*(-parseInt(_0x219655(0xb7))/0x7)+-parseInt(_0x219655(0xc9))/0x8*(-parseInt(_0x219655(0xc7))/0x9)+-parseInt(_0x219655(0xc2))/0xa+parseInt(_0x219655(0xcc))/0xb*(parseInt(_0x219655(0xca))/0xc);if(_0x31672e===_0x24404c)break;else _0x3c95f8['push'](_0x3c95f8['shift']());}catch(_0x33ecc1){_0x3c95f8['push'](_0x3c95f8['shift']());}}}(_0x3471,0xa8bc5));import{Collection as _0x1c3314}from'ckeditor5/src/utils.js';function _0x48eb(_0x5853ad,_0x449925){const _0x347106=_0x3471();return _0x48eb=function(_0x48ebbd,_0x3c8332){_0x48ebbd=_0x48ebbd-0xb4;let _0x18fe17=_0x347106[_0x48ebbd];return _0x18fe17;},_0x48eb(_0x5853ad,_0x449925);}const Ko=_0x1f59fc(0xc1);export class PromptHistory extends _0x1c3314{constructor(){const _0x20edf5=_0x1f59fc;super(),this[_0x20edf5(0xb6)](),this['on'](_0x20edf5(0xce),(_0x4a48aa,_0x26e2a0)=>{const _0x19706d=_0x20edf5,_0x1eb6e1=Qo(_0x26e2a0[_0x19706d(0xcd)]);for(const _0x39a407 of this)if(_0x39a407!=_0x26e2a0&&Qo(_0x39a407[_0x19706d(0xcd)])===_0x1eb6e1){this[_0x19706d(0xb5)](_0x39a407);break;}this[_0x19706d(0xb9)]>0x14&&this[_0x19706d(0xb5)](this[_0x19706d(0xbc)]),this[_0x19706d(0xba)]();}),this['on'](_0x20edf5(0xb5),()=>{const _0x4795ae=_0x20edf5;this[_0x4795ae(0xba)]();});}[_0x1f59fc(0xb6)](){const _0x3116a3=_0x1f59fc,_0x28bf5e=sessionStorage[_0x3116a3(0xc4)](Ko)||'[]';this[_0x3116a3(0xcb)](JSON[_0x3116a3(0xb8)](_0x28bf5e));}[_0x1f59fc(0xba)](){const _0x62cb83=_0x1f59fc;sessionStorage[_0x62cb83(0xcf)](Ko,JSON[_0x62cb83(0xc3)](this[_0x62cb83(0xb4)](_0x78a062=>_0x78a062)));}}function _0x3471(){const _0x5ea047=['toLowerCase','9xyYWfG','7428lxLfsD','7153912nkgXhH','36mhCLCN','addMany','795333kTetbF','prompt','add','setItem','map','remove','_loadFromSessionStorage','2604gsQDjr','parse','length','_saveToSessionStorage','3eCrNHp','last','18985cNhLoq','53624pBdeGo','843297hryNrM','28smnIfR','CKEditor/AIFormView/PromptHistory','374790hdSzoB','stringify','getItem','trim'];_0x3471=function(){return _0x5ea047;};return _0x3471();}function Qo(_0x37c1d8){const _0x158ecb=_0x1f59fc;return _0x37c1d8[_0x158ecb(0xc6)]()[_0x158ecb(0xc5)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4dba28=_0x1b66;(function(_0x2e330f,_0x452e34){const _0xe152eb=_0x1b66,_0x1e2dd4=_0x2e330f();while(!![]){try{const _0x43ea67=-parseInt(_0xe152eb(0x1f7))/0x1+-parseInt(_0xe152eb(0x1ed))/0x2+-parseInt(_0xe152eb(0x207))/0x3*(parseInt(_0xe152eb(0x20a))/0x4)+parseInt(_0xe152eb(0x1fb))/0x5*(-parseInt(_0xe152eb(0x204))/0x6)+-parseInt(_0xe152eb(0x1ea))/0x7+parseInt(_0xe152eb(0x206))/0x8*(parseInt(_0xe152eb(0x1fc))/0x9)+parseInt(_0xe152eb(0x1f8))/0xa;if(_0x43ea67===_0x452e34)break;else _0x1e2dd4['push'](_0x1e2dd4['shift']());}catch(_0xf00ac5){_0x1e2dd4['push'](_0x1e2dd4['shift']());}}}(_0x9ede,0x2a481));import{Command as _0x1fa3fd}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x2309e9}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x1fa3fd{[_0x4dba28(0x1e7)];constructor(_0xaa2a57,_0x34193b){const _0x2c3e54=_0x4dba28;super(_0xaa2a57),this[_0x2c3e54(0x1e7)]=_0x34193b,this[_0x2c3e54(0x1e5)](_0x2c3e54(0x20f),[]),this['on'](_0x2c3e54(0x1f1),(_0x311eee,_0xd446a9,_0x24df3f)=>{const _0x57558c=_0x2c3e54;this[_0x57558c(0x202)]&&(this[_0x57558c(0x20f)]=ns(this[_0x57558c(0x1e7)],_0x24df3f));}),this[_0x2c3e54(0x1e5)](_0x2c3e54(0x1e9),!0x1),this['on'](_0x2c3e54(0x20e),(_0x365ab8,_0x9c3d8d,_0x232c14)=>{const _0x5502f7=_0x2c3e54;this[_0x5502f7(0x20f)]=_0x232c14?ns(this[_0x5502f7(0x1e7)],this[_0x5502f7(0x1e9)]):[];});}[_0x4dba28(0x1eb)](){const _0x1f3a62=_0x4dba28,_0xddf5a6=this[_0x1f3a62(0x1f4)][_0x1f3a62(0x1ec)];this[_0x1f3a62(0x1e9)]=function(_0x990e22){const _0x12664a=_0x1f3a62,_0x53ab08=_0x990e22[_0x12664a(0x1f6)][_0x12664a(0x1e8)];return _0x53ab08[_0x12664a(0x20c)]?0x0!==[..._0x53ab08[_0x12664a(0x200)]()][_0x12664a(0x1f9)]&&![..._0x53ab08[_0x12664a(0x200)]()][0x0][_0x12664a(0x209)]:!!_0x990e22[_0x12664a(0x210)](_0x53ab08[_0x12664a(0x201)]());}(_0xddf5a6);const _0x334b05=_0xddf5a6[_0x1f3a62(0x1f6)][_0x1f3a62(0x1e8)],_0x43faee=this[_0x1f3a62(0x1f4)][_0x1f3a62(0x1ef)][_0x1f3a62(0x1fa)](_0x1f3a62(0x1ee));for(const _0x5cbe04 of _0x334b05[_0x1f3a62(0x20d)]())for(const _0x300828 of _0x5cbe04[_0x1f3a62(0x1ff)]())if(_0x300828['is'](_0x1f3a62(0x1f5))&&_0x43faee[_0x1f3a62(0x1e6)](_0x300828[_0x1f3a62(0x1fe)]))return void(this[_0x1f3a62(0x202)]=!0x1);this[_0x1f3a62(0x202)]=!0x0;}[_0x4dba28(0x1f3)](_0xf88938='',_0x5787b7='',_0x714928=_0x4dba28(0x1f0)){const _0xcaef03=_0x4dba28;this[_0xcaef03(0x1f4)][_0xcaef03(0x208)][_0xcaef03(0x1fa)](_0x2309e9)[_0xcaef03(0x203)](_0xf88938,_0x5787b7,_0x714928);}}function ns(_0x20a224,_0x4f79b3){const _0x5d10f6=_0x4dba28,_0x48f43a=new Set();for(const _0x13aaf9 of _0x20a224[_0x5d10f6(0x20b)]())(_0x4f79b3||!0x1===_0x13aaf9[_0x5d10f6(0x205)])&&_0x48f43a[_0x5d10f6(0x1fd)](_0x13aaf9['id']);return Array[_0x5d10f6(0x1f2)](_0x48f43a);}function _0x1b66(_0x4059e3,_0x15a0a8){const _0x9edeaa=_0x9ede();return _0x1b66=function(_0x1b66fe,_0x194c88){_0x1b66fe=_0x1b66fe-0x1e5;let _0xe909a8=_0x9edeaa[_0x1b66fe];return _0xe909a8;},_0x1b66(_0x4059e3,_0x15a0a8);}function _0x9ede(){const _0x51299f=['refresh','model','107294JiyOKH','ai.assistant.disabledElements','config','custom','change:_hasContext','from','execute','editor','element','document','226023SCaCpG','8233110faxSmu','length','get','1104515ZRNZOe','9CSpVsa','add','name','getItems','getSelectedBlocks','getFirstRange','isEnabled','showUI','6HURGCJ','requiresContent','1796008GSmbXa','12213sdMrJo','plugins','isEmpty','164gifXIM','values','isCollapsed','getRanges','change:isEnabled','enabledCommandsIds','hasContent','set','includes','_commandDefinitions','selection','_hasContext','1450001RxlJlu'];_0x9ede=function(){return _0x51299f;};return _0x9ede();}
23
+ const _0x19742c=_0x1bef;(function(_0x312f9d,_0x2f1cb4){const _0x4d1ac2=_0x1bef,_0x147776=_0x312f9d();while(!![]){try{const _0x43d642=parseInt(_0x4d1ac2(0xc1))/0x1+-parseInt(_0x4d1ac2(0xdc))/0x2+-parseInt(_0x4d1ac2(0xd0))/0x3*(-parseInt(_0x4d1ac2(0xd2))/0x4)+-parseInt(_0x4d1ac2(0xd7))/0x5*(-parseInt(_0x4d1ac2(0xdd))/0x6)+parseInt(_0x4d1ac2(0xdb))/0x7+-parseInt(_0x4d1ac2(0xb3))/0x8*(parseInt(_0x4d1ac2(0xbb))/0x9)+parseInt(_0x4d1ac2(0xc8))/0xa*(parseInt(_0x4d1ac2(0xb4))/0xb);if(_0x43d642===_0x2f1cb4)break;else _0x147776['push'](_0x147776['shift']());}catch(_0xc05c1e){_0x147776['push'](_0x147776['shift']());}}}(_0x5c4a,0xc1647));function _0x5c4a(){const _0x287ec5=['790946QsOtXr','values','from','getSelectedBlocks','execute','add','ai.assistant.disabledElements','107710EpSPel','isEmpty','set','getFirstRange','plugins','config','includes','change:isEnabled','3wjqlgT','refresh','2318060rNLADi','document','hasContent','custom','element','3300470gmnCUP','change:_hasContext','isEnabled','get','400484kLbrdw','3010064jdgvXT','6IEoIXQ','selection','_hasContext','8hZfzPK','1034YnAJLX','getItems','isCollapsed','requiresContent','editor','_commandDefinitions','showUI','7227666zerZLf','getRanges','name','model','length','enabledCommandsIds'];_0x5c4a=function(){return _0x287ec5;};return _0x5c4a();}import{Command as _0x33a17f}from'ckeditor5/src/core.js';function _0x1bef(_0x2261fd,_0x14656d){const _0x5c4aff=_0x5c4a();return _0x1bef=function(_0x1bef1c,_0xc075f2){_0x1bef1c=_0x1bef1c-0xb2;let _0x17bc7e=_0x5c4aff[_0x1bef1c];return _0x17bc7e;},_0x1bef(_0x2261fd,_0x14656d);}import{AIAssistantUI as _0x18656f}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x33a17f{[_0x19742c(0xb9)];constructor(_0x2bcd28,_0x134a6a){const _0x447aba=_0x19742c;super(_0x2bcd28),this[_0x447aba(0xb9)]=_0x134a6a,this[_0x447aba(0xca)](_0x447aba(0xc0),[]),this['on'](_0x447aba(0xd8),(_0x52d243,_0x1c9046,_0x3a3397)=>{const _0x28bd0f=_0x447aba;this[_0x28bd0f(0xd9)]&&(this[_0x28bd0f(0xc0)]=xs(this[_0x28bd0f(0xb9)],_0x3a3397));}),this[_0x447aba(0xca)](_0x447aba(0xb2),!0x1),this['on'](_0x447aba(0xcf),(_0x108922,_0x101213,_0x362666)=>{const _0x54cb73=_0x447aba;this[_0x54cb73(0xc0)]=_0x362666?xs(this[_0x54cb73(0xb9)],this[_0x54cb73(0xb2)]):[];});}[_0x19742c(0xd1)](){const _0x5528b5=_0x19742c,_0x3b8337=this[_0x5528b5(0xb8)][_0x5528b5(0xbe)];this[_0x5528b5(0xb2)]=function(_0x12a4e9){const _0x59d8d8=_0x5528b5,_0x4f526f=_0x12a4e9[_0x59d8d8(0xd3)][_0x59d8d8(0xde)];return _0x4f526f[_0x59d8d8(0xb6)]?0x0!==[..._0x4f526f[_0x59d8d8(0xc4)]()][_0x59d8d8(0xbf)]&&![..._0x4f526f[_0x59d8d8(0xc4)]()][0x0][_0x59d8d8(0xc9)]:!!_0x12a4e9[_0x59d8d8(0xd4)](_0x4f526f[_0x59d8d8(0xcb)]());}(_0x3b8337);const _0x1c7d1e=_0x3b8337[_0x5528b5(0xd3)][_0x5528b5(0xde)],_0x3e0522=this[_0x5528b5(0xb8)][_0x5528b5(0xcd)][_0x5528b5(0xda)](_0x5528b5(0xc7));for(const _0x53ec73 of _0x1c7d1e[_0x5528b5(0xbc)]())for(const _0x421ca of _0x53ec73[_0x5528b5(0xb5)]())if(_0x421ca['is'](_0x5528b5(0xd6))&&_0x3e0522[_0x5528b5(0xce)](_0x421ca[_0x5528b5(0xbd)]))return void(this[_0x5528b5(0xd9)]=!0x1);this[_0x5528b5(0xd9)]=!0x0;}[_0x19742c(0xc5)](_0x4ca330='',_0x472169='',_0xb330dd=_0x19742c(0xd5)){const _0x23bd75=_0x19742c;this[_0x23bd75(0xb8)][_0x23bd75(0xcc)][_0x23bd75(0xda)](_0x18656f)[_0x23bd75(0xba)](_0x4ca330,_0x472169,_0xb330dd);}}function xs(_0x632727,_0x4255c5){const _0x18a611=_0x19742c,_0xf315ee=new Set();for(const _0x1d383f of _0x632727[_0x18a611(0xc2)]())(_0x4255c5||!0x1===_0x1d383f[_0x18a611(0xb7)])&&_0xf315ee[_0x18a611(0xc6)](_0x1d383f['id']);return Array[_0x18a611(0xc3)](_0xf315ee);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52dc59=_0x5e0d;(function(_0x5b5e4c,_0x577495){const _0x44c00e=_0x5e0d,_0x298a74=_0x5b5e4c();while(!![]){try{const _0x17c6e5=-parseInt(_0x44c00e(0xfe))/0x1*(parseInt(_0x44c00e(0xf4))/0x2)+-parseInt(_0x44c00e(0x149))/0x3+parseInt(_0x44c00e(0x108))/0x4+parseInt(_0x44c00e(0x10c))/0x5+parseInt(_0x44c00e(0x134))/0x6*(-parseInt(_0x44c00e(0x110))/0x7)+parseInt(_0x44c00e(0xe7))/0x8*(parseInt(_0x44c00e(0x13d))/0x9)+-parseInt(_0x44c00e(0x115))/0xa*(-parseInt(_0x44c00e(0x13c))/0xb);if(_0x17c6e5===_0x577495)break;else _0x298a74['push'](_0x298a74['shift']());}catch(_0x5359cf){_0x298a74['push'](_0x298a74['shift']());}}}(_0x4ca4,0x73222));import{ContextPlugin as _0x4d1f57}from'ckeditor5/src/core.js';import{AIConnector as _0x3d7b9f}from'../aicore/aiconnector.js';import{AIEditing as _0x5cb6eb}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x41e090,AIBalloonView as _0xb449f7}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x5e0d(_0x235493,_0x45fc5a){const _0x4ca433=_0x4ca4();return _0x5e0d=function(_0x5e0d31,_0x5494ee){_0x5e0d31=_0x5e0d31-0xe4;let _0x445e8e=_0x4ca433[_0x5e0d31];return _0x445e8e;},_0x5e0d(_0x235493,_0x45fc5a);}import{getAllMarkersDomElementsSorted as _0x595171}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x2eae97,Rect as _0x5537d5,scrollViewportToShowTarget as _0x45ec1e}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x20b22e}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x45b66f}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x3d8b86}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x41e090,_0x52dc59(0x132),_0x52dc59(0x10b)];function _0x4ca4(){const _0x214baa=['showFakeVisualSelection','getChangedMarkers','balloonView','round','off','context','ai-balloon','506nAxhnr','27dbLLOx','value','_setupVisualSelection','view','config','Dialog','_showDialog','show','stopAutoScroll','AIBalloon','locale','render','2441058zlEXkS','requires','fire','markers','AI_ACTIONS_SELECTION_REMOVED_ERROR','getBoundingRect','start','\x20ai-balloon-rotator','bind','iconView','get','isTrackChangesOn','28504KkwmFu','showRotator','model','length','document','rootName','_isUpdatingMarkers','isOpen','once','isPremiumPlugin','_config','root','mainView','8ukkmlU','showBlockingError','isEqual','filter','aiBalloon','getMarkersGroup','max','setupRotator','getVisible','_pendingRenderCallback','168982UWuEys','updateContent','ai-selection:','title','bottom','startsWith','content','trackChanges','ranges','commands','1028640jCmxcG','hide','editing','selectionRemoved','3471255BoYxqe','open','_setupMarkerRemovalListener','end','3097388Fpbxpp','ai.availableReplyActions','window','delegate','$graveyard','409580rtCtab','plugins','height','headerView','ai-selection','updatePosition','label','stopListening','top','change','left','ai-balloon-','_getSelectionElements','width','_updateBalloon','_calculateDialogPosition','listenTo','differ','getIntersection','icon','pluginName','index','startAutoScroll','ai-balloon-selection','close','_calculateOptimalTopPosition','isOfficialPlugin','AIEditing','hideFakeVisualSelection','dialogClosed','_cleanupMarkerRemovalListener','12TxSbpE'];_0x4ca4=function(){return _0x214baa;};return _0x4ca4();}const jt=0xa;export class AIBalloon extends _0x4d1f57{static get[_0x52dc59(0x14a)](){return[_0x3d7b9f,_0x5cb6eb];}static get[_0x52dc59(0x129)](){const _0x23f60c=_0x52dc59;return _0x23f60c(0x146);}static get[_0x52dc59(0x12f)](){return!0x0;}static get[_0x52dc59(0xf0)](){return!0x0;}[_0x52dc59(0xee)]=!0x1;[_0x52dc59(0xf1)];[_0x52dc59(0xed)]=!0x1;[_0x52dc59(0xfd)]=null;[_0x52dc59(0x10d)](_0x315012){const _0xb4b56d=_0x52dc59,_0x490810=_0x20b22e(this[_0xb4b56d(0x13a)]);if(this[_0xb4b56d(0xf1)]=_0x315012,this[_0xb4b56d(0xee)])return void this[_0xb4b56d(0x123)](_0x315012);const _0x456f09=this[_0xb4b56d(0x13a)][_0xb4b56d(0x141)][_0xb4b56d(0xe5)](_0xb4b56d(0x111))||[..._0x45b66f],_0x289f0a=_0x490810?.[_0xb4b56d(0x107)][_0xb4b56d(0xe5)](_0xb4b56d(0x105)),_0x25e4ff=_0x289f0a?.[_0xb4b56d(0x13e)];this[_0xb4b56d(0x137)]=new _0xb449f7(_0x490810[_0xb4b56d(0x147)],_0x315012,_0x456f09,!!_0x25e4ff),this[_0xb4b56d(0x137)][_0xb4b56d(0x113)](..._0x41e090)['to'](this),_0x289f0a&&this[_0xb4b56d(0x137)][_0xb4b56d(0x151)](_0xb4b56d(0xe6))['to'](_0x289f0a,_0xb4b56d(0x13e)),this[_0xb4b56d(0x143)](_0x315012);}[_0x52dc59(0x12d)](){const _0x4ef15d=_0x52dc59;_0x20b22e(this[_0x4ef15d(0x13a)])[_0x4ef15d(0x116)][_0x4ef15d(0xe5)](_0x4ef15d(0x142))[_0x4ef15d(0x109)]();}[_0x52dc59(0x12b)](){const _0x2ee20e=_0x52dc59;this[_0x2ee20e(0x137)]&&this[_0x2ee20e(0x137)][_0x2ee20e(0x12b)]();}[_0x52dc59(0x145)](){const _0x4e711a=_0x52dc59;this[_0x4e711a(0x137)]&&this[_0x4e711a(0x137)][_0x4e711a(0x145)]();}[_0x52dc59(0x123)](_0x4cbd93){const _0x50a0ee=_0x52dc59,_0x174b6c=_0x20b22e(this[_0x50a0ee(0x13a)]),_0xc571db=_0x174b6c[_0x50a0ee(0x116)][_0x50a0ee(0xe5)](_0x50a0ee(0x142));this[_0x50a0ee(0xfd)]&&(_0x174b6c[_0x50a0ee(0x10a)][_0x50a0ee(0x140)][_0x50a0ee(0x139)](_0x50a0ee(0x148),this[_0x50a0ee(0xfd)]),this[_0x50a0ee(0xfd)]=null),this[_0x50a0ee(0xed)]=!0x0,_0xc571db[_0x50a0ee(0x140)]?.[_0x50a0ee(0x118)]&&(_0xc571db[_0x50a0ee(0x140)][_0x50a0ee(0x118)][_0x50a0ee(0x11b)]=_0x4cbd93[_0x50a0ee(0x101)],_0xc571db[_0x50a0ee(0x140)][_0x50a0ee(0x118)][_0x50a0ee(0xe4)]&&_0x4cbd93[_0x50a0ee(0x128)]&&(_0xc571db[_0x50a0ee(0x140)][_0x50a0ee(0x118)][_0x50a0ee(0xe4)][_0x50a0ee(0x104)]=_0x4cbd93[_0x50a0ee(0x128)])),this[_0x50a0ee(0x137)][_0x50a0ee(0xff)](_0x4cbd93[_0x50a0ee(0xf3)]),this[_0x50a0ee(0x13f)](_0x4cbd93[_0x50a0ee(0x106)],_0x4cbd93[_0x50a0ee(0x12a)]),this[_0x50a0ee(0xfd)]=()=>{const _0x684fd6=_0x50a0ee;this[_0x684fd6(0xed)]=!0x1,this[_0x684fd6(0xfd)]=null,_0xc571db[_0x684fd6(0x140)]&&_0xc571db[_0x684fd6(0x140)][_0x684fd6(0x11a)]();},_0x174b6c[_0x50a0ee(0x10a)][_0x50a0ee(0x140)][_0x50a0ee(0xef)](_0x50a0ee(0x148),this[_0x50a0ee(0xfd)]);}[_0x52dc59(0x13f)](_0x1d16ea,_0x3ab4a9){const _0x3db628=_0x52dc59;this[_0x3db628(0x13a)][_0x3db628(0x116)][_0x3db628(0xe5)](_0x5cb6eb)[_0x3db628(0x135)](_0x1d16ea,_0x3db628(0x120)+_0x3ab4a9,!0x0,!0x0);}[_0x52dc59(0x143)](_0x547bbc){const _0x39bdcc=_0x52dc59,_0x4faf54=_0x20b22e(this[_0x39bdcc(0x13a)]);this[_0x39bdcc(0x13f)](_0x547bbc[_0x39bdcc(0x106)],_0x547bbc[_0x39bdcc(0x12a)]);const _0x5d33c7=this[_0x39bdcc(0x121)]();_0x5d33c7&&_0x5d33c7[0x0]&&_0x45ec1e({'target':_0x5d33c7[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x4faf54[_0x39bdcc(0x116)][_0x39bdcc(0xe5)](_0x39bdcc(0x142))[_0x39bdcc(0x144)]({'title':_0x547bbc[_0x39bdcc(0x101)],'icon':_0x547bbc[_0x39bdcc(0x128)],'hasCloseButton':!0x0,'id':_0x39bdcc(0xf8),'position':this[_0x39bdcc(0x124)][_0x39bdcc(0x151)](this),'className':_0x39bdcc(0x13b)+(_0x547bbc[_0x39bdcc(0xe8)]?_0x39bdcc(0x150):''),'content':this[_0x39bdcc(0x137)],'onShow':_0x14aba8=>{const _0x16da0f=_0x39bdcc;_0x547bbc[_0x16da0f(0xe8)]&&this[_0x16da0f(0x137)][_0x16da0f(0xfb)](_0x14aba8),this[_0x16da0f(0x10e)](),this[_0x16da0f(0xee)]=!0x0;},'onHide':()=>{const _0x8567a6=_0x39bdcc;this[_0x8567a6(0x13a)][_0x8567a6(0x116)][_0x8567a6(0xe5)](_0x8567a6(0x130))[_0x8567a6(0x131)](_0x8567a6(0x120)+this[_0x8567a6(0xf1)][_0x8567a6(0x12a)]),this[_0x8567a6(0x133)](),this[_0x8567a6(0x14b)](_0x8567a6(0x132)),this[_0x8567a6(0xee)]=!0x1;}});}[_0x52dc59(0x124)](_0x5426d3,_0x36bb3f){const _0x4d49fb=_0x52dc59;if(!_0x36bb3f)return null;const _0xff95bc=this[_0x4d49fb(0x121)]();if(!_0xff95bc||0x0===_0xff95bc[_0x4d49fb(0xea)])return{'left':Math[_0x4d49fb(0x138)](_0x36bb3f[_0x4d49fb(0x11f)]+_0x36bb3f[_0x4d49fb(0x122)]/0x2-_0x5426d3[_0x4d49fb(0x122)]/0x2),'top':Math[_0x4d49fb(0x138)](_0x36bb3f[_0x4d49fb(0x11d)]+_0x36bb3f[_0x4d49fb(0x117)]/0x2-_0x5426d3[_0x4d49fb(0x117)]/0x2)};const _0x15d20b=Math[_0x4d49fb(0x138)](_0x36bb3f[_0x4d49fb(0x11f)]+_0x36bb3f[_0x4d49fb(0x122)]/0x2-_0x5426d3[_0x4d49fb(0x122)]/0x2),_0x1cedea=new _0x5537d5(_0xff95bc[0x0]),_0x5487e0=new _0x5537d5(_0xff95bc[_0xff95bc[_0x4d49fb(0xea)]-0x1]),_0x1e9219=_0x5426d3[_0x4d49fb(0x117)],_0x39daee=this[_0x4d49fb(0xf1)][_0x4d49fb(0xe8)]?0x8:0x0;return{'left':_0x15d20b,'top':this[_0x4d49fb(0x12e)](_0x1cedea,_0x5487e0,_0x1e9219,_0x39daee,_0x36bb3f)};}[_0x52dc59(0x12e)](_0x3e1fb8,_0x36703f,_0x2f7c85,_0xdf07d2=0x0,_0x4ac8b3){const _0x480fb9=_0x52dc59,_0x39096b=_0x2f7c85+_0xdf07d2,_0x151f0e=new _0x5537d5(_0x2eae97[_0x480fb9(0x112)]),_0x160ffd=[_0x3e1fb8[_0x480fb9(0xfc)](),_0x36703f[_0x480fb9(0xfc)]()][_0x480fb9(0xf7)](_0x463a52=>_0x463a52),_0x1f2f99=_0x5537d5[_0x480fb9(0x14e)](_0x160ffd);if(!_0x1f2f99)return Math[_0x480fb9(0x138)](_0x4ac8b3[_0x480fb9(0x11d)]+_0x4ac8b3[_0x480fb9(0x117)]/0x2);const _0x17f64f=_0x151f0e[_0x480fb9(0x127)](_0x1f2f99);if(!_0x17f64f)return Math[_0x480fb9(0x138)](_0x4ac8b3[_0x480fb9(0x11d)]+_0x4ac8b3[_0x480fb9(0x117)]/0x2);const _0x701c1d=_0x4ac8b3[_0x480fb9(0xfc)](),_0x884bb3=_0x701c1d&&_0x1f2f99[_0x480fb9(0x117)]>_0x701c1d[_0x480fb9(0x117)],_0x4a3f63=_0x17f64f[_0x480fb9(0x11d)],_0x51de5d=_0x17f64f[_0x480fb9(0x102)];if(_0x884bb3){const _0x50fec6=(_0x701c1d||_0x151f0e)[_0x480fb9(0x117)]/0x2-_0x39096b/0x2,_0x4c9f12=_0x4a3f63-jt-_0x4ac8b3[_0x480fb9(0x11d)],_0x483de1=_0x4ac8b3[_0x480fb9(0x102)]-_0x51de5d-jt;return _0x4c9f12>=_0x39096b?Math[_0x480fb9(0xfa)](jt,_0x4a3f63-_0x39096b-jt):_0x483de1>=_0x39096b?_0x51de5d+jt:Math[_0x480fb9(0xfa)](jt,_0x50fec6);}const _0x4ac368=_0x4a3f63-_0x39096b,_0x435b63=_0x4ac8b3[_0x480fb9(0x102)]-_0x51de5d-jt,_0x20eb2c=_0x4a3f63-jt-_0x4ac8b3[_0x480fb9(0x11d)];let _0x166c08;if(_0x435b63>=_0x39096b)_0x166c08=_0x51de5d+jt;else{if(_0x20eb2c>=_0x39096b)_0x166c08=_0x4ac368-jt;else _0x166c08=_0x4a3f63+_0x1f2f99[_0x480fb9(0x117)]/0x2-_0x39096b/0x2;}return _0x166c08;}[_0x52dc59(0x10e)](){const _0x1e5a27=_0x52dc59,_0x4cd2f8=_0x20b22e(this[_0x1e5a27(0x13a)]);this[_0x1e5a27(0x125)](_0x4cd2f8[_0x1e5a27(0xe9)][_0x1e5a27(0xeb)],_0x1e5a27(0x11e),()=>{const _0x2306f4=_0x1e5a27;if(this[_0x2306f4(0xed)])return;for(const {name:_0x209898,data:{newRange:_0x1deafa}}of _0x4cd2f8[_0x2306f4(0xe9)][_0x2306f4(0xeb)][_0x2306f4(0x126)][_0x2306f4(0x136)]())if(_0x209898[_0x2306f4(0x103)](_0x2306f4(0x100))&&(_0x1deafa&&(_0x1deafa[_0x2306f4(0x14f)][_0x2306f4(0xf6)](_0x1deafa[_0x2306f4(0x10f)])||_0x2306f4(0x114)==_0x1deafa[_0x2306f4(0xf2)][_0x2306f4(0xec)])||null==_0x1deafa)){const _0x297f22=_0x3d8b86(this[_0x2306f4(0x13a)][_0x2306f4(0x147)],_0x2306f4(0x14d));this[_0x2306f4(0x137)][_0x2306f4(0xf5)](_0x297f22),this[_0x2306f4(0x14b)](_0x2306f4(0x10b));}});}[_0x52dc59(0x133)](){const _0x513ef6=_0x52dc59,_0x37c277=_0x20b22e(this[_0x513ef6(0x13a)]);this[_0x513ef6(0x11c)](_0x37c277[_0x513ef6(0xe9)][_0x513ef6(0xeb)]);}[_0x52dc59(0x121)](){const _0x375a8b=_0x52dc59,_0x5a01b3=_0x20b22e(this[_0x375a8b(0x13a)]);return _0x595171(_0x5a01b3[_0x375a8b(0x10a)],[..._0x5a01b3[_0x375a8b(0xe9)][_0x375a8b(0x14c)][_0x375a8b(0xf9)](_0x375a8b(0x119)),..._0x5a01b3[_0x375a8b(0xe9)][_0x375a8b(0x14c)][_0x375a8b(0xf9)](_0x375a8b(0x12c))]);}}
23
+ const _0x3cc4c5=_0x1692;(function(_0x45b258,_0x363f7b){const _0x20ade0=_0x1692,_0x50d412=_0x45b258();while(!![]){try{const _0x5360c0=-parseInt(_0x20ade0(0x13a))/0x1*(-parseInt(_0x20ade0(0x163))/0x2)+-parseInt(_0x20ade0(0x171))/0x3+parseInt(_0x20ade0(0x17a))/0x4*(parseInt(_0x20ade0(0x13b))/0x5)+parseInt(_0x20ade0(0x17f))/0x6*(parseInt(_0x20ade0(0x150))/0x7)+parseInt(_0x20ade0(0x170))/0x8+parseInt(_0x20ade0(0x17c))/0x9+-parseInt(_0x20ade0(0x138))/0xa*(parseInt(_0x20ade0(0x15b))/0xb);if(_0x5360c0===_0x363f7b)break;else _0x50d412['push'](_0x50d412['shift']());}catch(_0x1affbc){_0x50d412['push'](_0x50d412['shift']());}}}(_0x4a90,0xbc663));import{ContextPlugin as _0x39f6d5}from'ckeditor5/src/core.js';import{AIConnector as _0x1cf58b}from'../aicore/aiconnector.js';import{AIEditing as _0x394859}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x2a120a,AIBalloonView as _0x4e0f50}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x1692(_0x5b4406,_0xbf8038){const _0x4a90a9=_0x4a90();return _0x1692=function(_0x169286,_0x364e2f){_0x169286=_0x169286-0x114;let _0x117495=_0x4a90a9[_0x169286];return _0x117495;},_0x1692(_0x5b4406,_0xbf8038);}import{getAllMarkersDomElementsSorted as _0x874bde}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x14acce,Rect as _0x2b1993,scrollViewportToShowTarget as _0x431506}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x247934}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x3d6fda}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x369df6}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x2a120a,_0x3cc4c5(0x149),_0x3cc4c5(0x156)];const g=0xa;function _0x4a90(){const _0x15733e=['value','_isUpdatingMarkers','11YmgIRr','start','isTrackChangesOn','plugins','fire','ai-selection:','AIEditing','markers','418742delRNY','balloonView','getIntersection','left','_config','AI_ACTIONS_SELECTION_REMOVED_ERROR','requires','ai-balloon-selection','isOfficialPlugin','config','render','aiBalloon','updateContent','4486024sAdNud','2905578gAEPtE','showFakeVisualSelection','open','getBoundingRect','ai-balloon-','rootName','length','filter','_cleanupMarkerRemovalListener','24PFERoL','_setupVisualSelection','6416676EBHdUD','showRotator','document','6400050EmedVK','index','hideFakeVisualSelection','setupRotator','pluginName','trackChanges','updatePosition','$graveyard','commands','ranges','_calculateDialogPosition','max','label','height','ai-balloon','iconView','_getSelectionElements','isOpen','\x20ai-balloon-rotator','view','stopAutoScroll','change','model','window','root','locale','icon','round','editing','startsWith','isPremiumPlugin','hide','Dialog','width','getChangedMarkers','title','showBlockingError','ai.availableReplyActions','context','12899990oAOOFu','listenTo','2EapaOi','225895FlZdkf','_updateBalloon','isEqual','content','startAutoScroll','getMarkersGroup','mainView','top','bind','close','end','bottom','_showDialog','AIBalloon','dialogClosed','show','get','_pendingRenderCallback','differ','stopListening','ai-selection','7oRMMme','_calculateOptimalTopPosition','off','delegate','once','getVisible','selectionRemoved','_setupMarkerRemovalListener','headerView'];_0x4a90=function(){return _0x15733e;};return _0x4a90();}export class AIBalloon extends _0x39f6d5{static get[_0x3cc4c5(0x169)](){return[_0x1cf58b,_0x394859];}static get[_0x3cc4c5(0x115)](){const _0x3e3821=_0x3cc4c5;return _0x3e3821(0x148);}static get[_0x3cc4c5(0x16b)](){return!0x0;}static get[_0x3cc4c5(0x12f)](){return!0x0;}[_0x3cc4c5(0x122)]=!0x1;[_0x3cc4c5(0x167)];[_0x3cc4c5(0x15a)]=!0x1;[_0x3cc4c5(0x14c)]=null;[_0x3cc4c5(0x173)](_0x5b6b9d){const _0x2de4c5=_0x3cc4c5,_0x21a731=_0x247934(this[_0x2de4c5(0x137)]);if(this[_0x2de4c5(0x167)]=_0x5b6b9d,this[_0x2de4c5(0x122)])return void this[_0x2de4c5(0x13c)](_0x5b6b9d);const _0x1c7639=this[_0x2de4c5(0x137)][_0x2de4c5(0x16c)][_0x2de4c5(0x14b)](_0x2de4c5(0x136))||[..._0x3d6fda],_0x3a9235=_0x21a731?.[_0x2de4c5(0x119)][_0x2de4c5(0x14b)](_0x2de4c5(0x116)),_0x4e996e=_0x3a9235?.[_0x2de4c5(0x159)];this[_0x2de4c5(0x164)]=new _0x4e0f50(_0x21a731[_0x2de4c5(0x12a)],_0x5b6b9d,_0x1c7639,!!_0x4e996e),this[_0x2de4c5(0x164)][_0x2de4c5(0x153)](..._0x2a120a)['to'](this),_0x3a9235&&this[_0x2de4c5(0x164)][_0x2de4c5(0x143)](_0x2de4c5(0x15d))['to'](_0x3a9235,_0x2de4c5(0x159)),this[_0x2de4c5(0x147)](_0x5b6b9d);}[_0x3cc4c5(0x144)](){const _0x15bf89=_0x3cc4c5;_0x247934(this[_0x15bf89(0x137)])[_0x15bf89(0x15e)][_0x15bf89(0x14b)](_0x15bf89(0x131))[_0x15bf89(0x130)]();}[_0x3cc4c5(0x13f)](){const _0x407e80=_0x3cc4c5;this[_0x407e80(0x164)]&&this[_0x407e80(0x164)][_0x407e80(0x13f)]();}[_0x3cc4c5(0x125)](){const _0x43e1b4=_0x3cc4c5;this[_0x43e1b4(0x164)]&&this[_0x43e1b4(0x164)][_0x43e1b4(0x125)]();}[_0x3cc4c5(0x13c)](_0x34762f){const _0x27ff41=_0x3cc4c5,_0x499f61=_0x247934(this[_0x27ff41(0x137)]),_0x51bdb0=_0x499f61[_0x27ff41(0x15e)][_0x27ff41(0x14b)](_0x27ff41(0x131));this[_0x27ff41(0x14c)]&&(_0x499f61[_0x27ff41(0x12d)][_0x27ff41(0x124)][_0x27ff41(0x152)](_0x27ff41(0x16d),this[_0x27ff41(0x14c)]),this[_0x27ff41(0x14c)]=null),this[_0x27ff41(0x15a)]=!0x0,_0x51bdb0[_0x27ff41(0x124)]?.[_0x27ff41(0x158)]&&(_0x51bdb0[_0x27ff41(0x124)][_0x27ff41(0x158)][_0x27ff41(0x11d)]=_0x34762f[_0x27ff41(0x134)],_0x51bdb0[_0x27ff41(0x124)][_0x27ff41(0x158)][_0x27ff41(0x120)]&&_0x34762f[_0x27ff41(0x12b)]&&(_0x51bdb0[_0x27ff41(0x124)][_0x27ff41(0x158)][_0x27ff41(0x120)][_0x27ff41(0x13e)]=_0x34762f[_0x27ff41(0x12b)])),this[_0x27ff41(0x164)][_0x27ff41(0x16f)](_0x34762f[_0x27ff41(0x141)]),this[_0x27ff41(0x17b)](_0x34762f[_0x27ff41(0x11a)],_0x34762f[_0x27ff41(0x180)]),this[_0x27ff41(0x14c)]=()=>{const _0x165e12=_0x27ff41;this[_0x165e12(0x15a)]=!0x1,this[_0x165e12(0x14c)]=null,_0x51bdb0[_0x165e12(0x124)]&&_0x51bdb0[_0x165e12(0x124)][_0x165e12(0x117)]();},_0x499f61[_0x27ff41(0x12d)][_0x27ff41(0x124)][_0x27ff41(0x154)](_0x27ff41(0x16d),this[_0x27ff41(0x14c)]);}[_0x3cc4c5(0x17b)](_0x28c0e3,_0x49ec6a){const _0x43a60a=_0x3cc4c5;this[_0x43a60a(0x137)][_0x43a60a(0x15e)][_0x43a60a(0x14b)](_0x394859)[_0x43a60a(0x172)](_0x28c0e3,_0x43a60a(0x175)+_0x49ec6a,!0x0,!0x0);}[_0x3cc4c5(0x147)](_0xf6d5e2){const _0x1fa4d7=_0x3cc4c5,_0x5a0bf7=_0x247934(this[_0x1fa4d7(0x137)]);this[_0x1fa4d7(0x17b)](_0xf6d5e2[_0x1fa4d7(0x11a)],_0xf6d5e2[_0x1fa4d7(0x180)]);const _0x3b59d9=this[_0x1fa4d7(0x121)]();_0x3b59d9&&_0x3b59d9[0x0]&&_0x431506({'target':_0x3b59d9[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x5a0bf7[_0x1fa4d7(0x15e)][_0x1fa4d7(0x14b)](_0x1fa4d7(0x131))[_0x1fa4d7(0x14a)]({'title':_0xf6d5e2[_0x1fa4d7(0x134)],'icon':_0xf6d5e2[_0x1fa4d7(0x12b)],'hasCloseButton':!0x0,'id':_0x1fa4d7(0x16e),'position':this[_0x1fa4d7(0x11b)][_0x1fa4d7(0x143)](this),'className':_0x1fa4d7(0x11f)+(_0xf6d5e2[_0x1fa4d7(0x17d)]?_0x1fa4d7(0x123):''),'content':this[_0x1fa4d7(0x164)],'onShow':_0x4a99d4=>{const _0x5ce28a=_0x1fa4d7;_0xf6d5e2[_0x5ce28a(0x17d)]&&this[_0x5ce28a(0x164)][_0x5ce28a(0x114)](_0x4a99d4),this[_0x5ce28a(0x157)](),this[_0x5ce28a(0x122)]=!0x0;},'onHide':()=>{const _0x2d2f0b=_0x1fa4d7;this[_0x2d2f0b(0x137)][_0x2d2f0b(0x15e)][_0x2d2f0b(0x14b)](_0x2d2f0b(0x161))[_0x2d2f0b(0x181)](_0x2d2f0b(0x175)+this[_0x2d2f0b(0x167)][_0x2d2f0b(0x180)]),this[_0x2d2f0b(0x179)](),this[_0x2d2f0b(0x15f)](_0x2d2f0b(0x149)),this[_0x2d2f0b(0x122)]=!0x1;}});}[_0x3cc4c5(0x11b)](_0x21592e,_0x384e91){const _0x59bf87=_0x3cc4c5;if(!_0x384e91)return null;const _0x506896=this[_0x59bf87(0x121)]();if(!_0x506896||0x0===_0x506896[_0x59bf87(0x177)])return{'left':Math[_0x59bf87(0x12c)](_0x384e91[_0x59bf87(0x166)]+_0x384e91[_0x59bf87(0x132)]/0x2-_0x21592e[_0x59bf87(0x132)]/0x2),'top':Math[_0x59bf87(0x12c)](_0x384e91[_0x59bf87(0x142)]+_0x384e91[_0x59bf87(0x11e)]/0x2-_0x21592e[_0x59bf87(0x11e)]/0x2)};const _0x1e951c=Math[_0x59bf87(0x12c)](_0x384e91[_0x59bf87(0x166)]+_0x384e91[_0x59bf87(0x132)]/0x2-_0x21592e[_0x59bf87(0x132)]/0x2),_0x58a24e=new _0x2b1993(_0x506896[0x0]),_0x3ba12a=new _0x2b1993(_0x506896[_0x506896[_0x59bf87(0x177)]-0x1]),_0x14d6b5=_0x21592e[_0x59bf87(0x11e)],_0xe7429a=this[_0x59bf87(0x167)][_0x59bf87(0x17d)]?0x8:0x0;return{'left':_0x1e951c,'top':this[_0x59bf87(0x151)](_0x58a24e,_0x3ba12a,_0x14d6b5,_0xe7429a,_0x384e91)};}[_0x3cc4c5(0x151)](_0x253d70,_0x5e59d9,_0x31c64a,_0x51c801=0x0,_0xcc6d20){const _0x47e6b5=_0x3cc4c5,_0x5c8fbb=_0x31c64a+_0x51c801,_0x366dc0=new _0x2b1993(_0x14acce[_0x47e6b5(0x128)]),_0x13c9ff=[_0x253d70[_0x47e6b5(0x155)](),_0x5e59d9[_0x47e6b5(0x155)]()][_0x47e6b5(0x178)](_0x430c47=>_0x430c47),_0x499343=_0x2b1993[_0x47e6b5(0x174)](_0x13c9ff);if(!_0x499343)return Math[_0x47e6b5(0x12c)](_0xcc6d20[_0x47e6b5(0x142)]+_0xcc6d20[_0x47e6b5(0x11e)]/0x2);const _0x52c4c5=_0x366dc0[_0x47e6b5(0x165)](_0x499343);if(!_0x52c4c5)return Math[_0x47e6b5(0x12c)](_0xcc6d20[_0x47e6b5(0x142)]+_0xcc6d20[_0x47e6b5(0x11e)]/0x2);const _0x39232c=_0xcc6d20[_0x47e6b5(0x155)](),_0x4c83e5=_0x39232c&&_0x499343[_0x47e6b5(0x11e)]>_0x39232c[_0x47e6b5(0x11e)],_0x2dfc50=_0x52c4c5[_0x47e6b5(0x142)],_0x4cf29a=_0x52c4c5[_0x47e6b5(0x146)];if(_0x4c83e5){const _0x1147b8=(_0x39232c||_0x366dc0)[_0x47e6b5(0x11e)]/0x2-_0x5c8fbb/0x2,_0x4a49da=_0x2dfc50-g-_0xcc6d20[_0x47e6b5(0x142)],_0x197149=_0xcc6d20[_0x47e6b5(0x146)]-_0x4cf29a-g;return _0x4a49da>=_0x5c8fbb?Math[_0x47e6b5(0x11c)](g,_0x2dfc50-_0x5c8fbb-g):_0x197149>=_0x5c8fbb?_0x4cf29a+g:Math[_0x47e6b5(0x11c)](g,_0x1147b8);}const _0x3af4c5=_0x2dfc50-_0x5c8fbb,_0x4e714c=_0xcc6d20[_0x47e6b5(0x146)]-_0x4cf29a-g,_0x4e9a3d=_0x2dfc50-g-_0xcc6d20[_0x47e6b5(0x142)];let _0x5ca3ed;if(_0x4e714c>=_0x5c8fbb)_0x5ca3ed=_0x4cf29a+g;else{if(_0x4e9a3d>=_0x5c8fbb)_0x5ca3ed=_0x3af4c5-g;else _0x5ca3ed=_0x2dfc50+_0x499343[_0x47e6b5(0x11e)]/0x2-_0x5c8fbb/0x2;}return _0x5ca3ed;}[_0x3cc4c5(0x157)](){const _0x1b6d4f=_0x3cc4c5,_0x4c551e=_0x247934(this[_0x1b6d4f(0x137)]);this[_0x1b6d4f(0x139)](_0x4c551e[_0x1b6d4f(0x127)][_0x1b6d4f(0x17e)],_0x1b6d4f(0x126),()=>{const _0x454158=_0x1b6d4f;if(this[_0x454158(0x15a)])return;for(const {name:_0x33393b,data:{newRange:_0x265386}}of _0x4c551e[_0x454158(0x127)][_0x454158(0x17e)][_0x454158(0x14d)][_0x454158(0x133)]())if(_0x33393b[_0x454158(0x12e)](_0x454158(0x160))&&(_0x265386&&(_0x265386[_0x454158(0x15c)][_0x454158(0x13d)](_0x265386[_0x454158(0x145)])||_0x454158(0x118)==_0x265386[_0x454158(0x129)][_0x454158(0x176)])||null==_0x265386)){const _0x662470=_0x369df6(this[_0x454158(0x137)][_0x454158(0x12a)],_0x454158(0x168));this[_0x454158(0x164)][_0x454158(0x135)](_0x662470),this[_0x454158(0x15f)](_0x454158(0x156));}});}[_0x3cc4c5(0x179)](){const _0x164016=_0x3cc4c5,_0x5c8999=_0x247934(this[_0x164016(0x137)]);this[_0x164016(0x14e)](_0x5c8999[_0x164016(0x127)][_0x164016(0x17e)]);}[_0x3cc4c5(0x121)](){const _0x497a1f=_0x3cc4c5,_0x62d494=_0x247934(this[_0x497a1f(0x137)]);return _0x874bde(_0x62d494[_0x497a1f(0x12d)],[..._0x62d494[_0x497a1f(0x127)][_0x497a1f(0x162)][_0x497a1f(0x140)](_0x497a1f(0x14f)),..._0x62d494[_0x497a1f(0x127)][_0x497a1f(0x162)][_0x497a1f(0x140)](_0x497a1f(0x16a))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x25c70b,_0x595137){var _0x4ad24a=_0x5154,_0x49ced9=_0x25c70b();while(!![]){try{var _0x45915d=-parseInt(_0x4ad24a(0x16f))/0x1+parseInt(_0x4ad24a(0x175))/0x2+-parseInt(_0x4ad24a(0x16d))/0x3*(-parseInt(_0x4ad24a(0x16b))/0x4)+-parseInt(_0x4ad24a(0x16c))/0x5*(parseInt(_0x4ad24a(0x170))/0x6)+-parseInt(_0x4ad24a(0x172))/0x7+-parseInt(_0x4ad24a(0x169))/0x8*(parseInt(_0x4ad24a(0x16a))/0x9)+parseInt(_0x4ad24a(0x176))/0xa;if(_0x45915d===_0x595137)break;else _0x49ced9['push'](_0x49ced9['shift']());}catch(_0x36198c){_0x49ced9['push'](_0x49ced9['shift']());}}}(_0x3210,0x66ab3));import{View as _0x25f831}from'ckeditor5/src/ui.js';function _0x5154(_0x42962a,_0x380c3b){var _0x321063=_0x3210();return _0x5154=function(_0x515476,_0x4f1770){_0x515476=_0x515476-0x169;var _0x337497=_0x321063[_0x515476];return _0x337497;},_0x5154(_0x42962a,_0x380c3b);}function _0x3210(){var _0x4eb49c=['3255210pTrftu','ck-ai-balloon__disclaimer','div','1381834cQkOdv','12387190hJaiab','setTemplate','156448tvjrfK','207pwQotN','4GVyVnI','35FsmXiO','1946286ADHcmz','ck-ai-balloon__disclaimer-content','694081PrPtoe','470544jFtHLb','AI_DISCLAIMER_TEXT'];_0x3210=function(){return _0x4eb49c;};return _0x3210();}import{getTranslation as _0x3ddf3f}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x25f831{constructor(_0x5c7dfa){var _0x3f33ef=_0x5154;super(_0x5c7dfa),this[_0x3f33ef(0x177)]({'tag':_0x3f33ef(0x174),'attributes':{'class':['ck',_0x3f33ef(0x173)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x3f33ef(0x16e)]},'children':[{'text':_0x3ddf3f(_0x5c7dfa,_0x3f33ef(0x171))}]}]});}}
23
+ (function(_0x4a2a61,_0x535716){var _0x1583b7=_0x1e47,_0x4a8ba9=_0x4a2a61();while(!![]){try{var _0x2723ca=-parseInt(_0x1583b7(0x1b3))/0x1*(-parseInt(_0x1583b7(0x1b2))/0x2)+parseInt(_0x1583b7(0x1ac))/0x3+parseInt(_0x1583b7(0x1a8))/0x4+parseInt(_0x1583b7(0x1a6))/0x5+-parseInt(_0x1583b7(0x1b0))/0x6*(parseInt(_0x1583b7(0x1a9))/0x7)+parseInt(_0x1583b7(0x1af))/0x8+parseInt(_0x1583b7(0x1aa))/0x9*(-parseInt(_0x1583b7(0x1ae))/0xa);if(_0x2723ca===_0x535716)break;else _0x4a8ba9['push'](_0x4a8ba9['shift']());}catch(_0x2c1c79){_0x4a8ba9['push'](_0x4a8ba9['shift']());}}}(_0x4de1,0xc19fe));function _0x1e47(_0x28e581,_0x48c2c1){var _0x4de198=_0x4de1();return _0x1e47=function(_0x1e479c,_0x2c81b5){_0x1e479c=_0x1e479c-0x1a6;var _0x4cd0c4=_0x4de198[_0x1e479c];return _0x4cd0c4;},_0x1e47(_0x28e581,_0x48c2c1);}import{View as _0x136ea3}from'ckeditor5/src/ui.js';function _0x4de1(){var _0x3e4d3c=['4178weHoxE','613BqVshc','setTemplate','5752250ypsMMb','ck-ai-balloon__disclaimer-content','35076wZzXCh','1261729NUxSiZ','39789SlVlig','AI_DISCLAIMER_TEXT','3211404BKbKZO','ck-ai-balloon__disclaimer','6640cUkVtm','4631040dlWNYE','12ilKWot','div'];_0x4de1=function(){return _0x3e4d3c;};return _0x4de1();}import{getTranslation as _0xef904e}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x136ea3{constructor(_0x2c6233){var _0x1dbd0f=_0x1e47;super(_0x2c6233),this[_0x1dbd0f(0x1b4)]({'tag':_0x1dbd0f(0x1b1),'attributes':{'class':['ck',_0x1dbd0f(0x1ad)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x1dbd0f(0x1a7)]},'children':[{'text':_0xef904e(_0x2c6233,_0x1dbd0f(0x1ab))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4d84(_0x4c5745,_0x35f29e){const _0x3f14ae=_0x3f14();return _0x4d84=function(_0x4d8468,_0x3a8037){_0x4d8468=_0x4d8468-0x1cb;let _0x25b05e=_0x3f14ae[_0x4d8468];return _0x25b05e;},_0x4d84(_0x4c5745,_0x35f29e);}const _0x43f51f=_0x4d84;(function(_0x26508c,_0x12efe5){const _0x3d05d1=_0x4d84,_0x41dc0a=_0x26508c();while(!![]){try{const _0x13c509=parseInt(_0x3d05d1(0x1cc))/0x1*(-parseInt(_0x3d05d1(0x1cd))/0x2)+-parseInt(_0x3d05d1(0x1d3))/0x3+parseInt(_0x3d05d1(0x1d2))/0x4+-parseInt(_0x3d05d1(0x1d5))/0x5+-parseInt(_0x3d05d1(0x1d7))/0x6*(-parseInt(_0x3d05d1(0x1de))/0x7)+-parseInt(_0x3d05d1(0x1cb))/0x8+parseInt(_0x3d05d1(0x1e3))/0x9*(parseInt(_0x3d05d1(0x1d9))/0xa);if(_0x13c509===_0x12efe5)break;else _0x41dc0a['push'](_0x41dc0a['shift']());}catch(_0x40bd20){_0x41dc0a['push'](_0x41dc0a['shift']());}}}(_0x3f14,0x6d269));function _0x3f14(){const _0x20b18e=['2112120aNqOIM','2448381yledSi','suggestButton','4185880NGhRLN','items','594taGWZX','bind','7173010BXAqsq','isLoading','isEnabled','extendTemplate','ck-ai-button-primary','33747yVTlhK','AI_BALLOON_SUGGEST_BUTTON','applyButton','AI_BALLOON_APPLY_BUTTON','add','18KAWUfM','ck-ai-balloon__toolbar','164496PGjHnI','5IYJQhq','127586RvaGeu','_createButton','locale','set','ck-ai-button-secondary'];_0x3f14=function(){return _0x20b18e;};return _0x3f14();}import{ToolbarView as _0xae6667,ButtonView as _0x527ec0}from'ckeditor5/src/ui.js';import{getTranslation as _0x1095c7}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0xae6667{constructor(_0x43f263,_0x25f2c7=!0x0,_0x33ad46=!0x0){const _0x1714d0=_0x4d84;super(_0x43f263),this[_0x1714d0(0x1d0)](_0x1714d0(0x1da),!0x1),_0x25f2c7&&(this[_0x1714d0(0x1e0)]=this[_0x1714d0(0x1ce)](_0x1095c7(_0x43f263,_0x1714d0(0x1e1)),_0x1714d0(0x1dd)),this[_0x1714d0(0x1e0)][_0x1714d0(0x1d8)](_0x1714d0(0x1db))['to'](this,_0x1714d0(0x1da),_0x2b5641=>!_0x2b5641),this[_0x1714d0(0x1d6)][_0x1714d0(0x1e2)](this[_0x1714d0(0x1e0)])),_0x33ad46&&(this[_0x1714d0(0x1d4)]=this[_0x1714d0(0x1ce)](_0x1095c7(_0x43f263,_0x1714d0(0x1df)),_0x25f2c7?_0x1714d0(0x1d1):_0x1714d0(0x1dd)),this[_0x1714d0(0x1d4)][_0x1714d0(0x1d8)](_0x1714d0(0x1db))['to'](this,_0x1714d0(0x1da),_0x3e894d=>!_0x3e894d),this[_0x1714d0(0x1d6)][_0x1714d0(0x1e2)](this[_0x1714d0(0x1d4)])),this[_0x1714d0(0x1dc)]({'attributes':{'class':[_0x1714d0(0x1e4)]}});}[_0x43f51f(0x1ce)](_0x298432,_0x13e6de){const _0x28469b=_0x43f51f,_0x1c7798=new _0x527ec0(this[_0x28469b(0x1cf)]);return _0x1c7798[_0x28469b(0x1d0)]({'label':_0x298432,'class':_0x13e6de||'','isVisible':!0x0,'withText':!0x0}),_0x1c7798;}}
23
+ function _0x4ca2(_0x11a41b,_0x12a9ce){const _0x409ffc=_0x409f();return _0x4ca2=function(_0x4ca276,_0x41f852){_0x4ca276=_0x4ca276-0x92;let _0xdde756=_0x409ffc[_0x4ca276];return _0xdde756;},_0x4ca2(_0x11a41b,_0x12a9ce);}const _0x38edae=_0x4ca2;(function(_0x4a9fe1,_0x35b488){const _0x37b680=_0x4ca2,_0x468ec4=_0x4a9fe1();while(!![]){try{const _0x2f26dd=parseInt(_0x37b680(0xa3))/0x1+parseInt(_0x37b680(0xa9))/0x2*(parseInt(_0x37b680(0x93))/0x3)+-parseInt(_0x37b680(0x9d))/0x4*(-parseInt(_0x37b680(0xa1))/0x5)+-parseInt(_0x37b680(0x9a))/0x6+parseInt(_0x37b680(0xa6))/0x7+parseInt(_0x37b680(0xaa))/0x8+parseInt(_0x37b680(0xa7))/0x9*(-parseInt(_0x37b680(0x95))/0xa);if(_0x2f26dd===_0x35b488)break;else _0x468ec4['push'](_0x468ec4['shift']());}catch(_0x2b618a){_0x468ec4['push'](_0x468ec4['shift']());}}}(_0x409f,0x9540f));import{ToolbarView as _0x24981f,ButtonView as _0x55ebb6}from'ckeditor5/src/ui.js';import{getTranslation as _0x2f37a2}from'../../aicore/utils/common-translations.js';function _0x409f(){const _0x3e73df=['12IfNBtM','AI_BALLOON_SUGGEST_BUTTON','isEnabled','_createButton','983015gmEvjg','items','775190loqESv','set','ck-ai-button-secondary','1630902kHoNyD','18bVOvZL','applyButton','32462LncpmO','3457424nZdfJp','locale','ck-ai-balloon__toolbar','12MYgaZV','ck-ai-button-primary','3727690wFBAgw','extendTemplate','bind','AI_BALLOON_APPLY_BUTTON','add','4429236axTWOH','suggestButton','isLoading'];_0x409f=function(){return _0x3e73df;};return _0x409f();}export class AIBalloonToolbarView extends _0x24981f{constructor(_0x13ea86,_0x2a5854=!0x0,_0x3b6021=!0x0){const _0x4eaeab=_0x4ca2;super(_0x13ea86),this[_0x4eaeab(0xa4)](_0x4eaeab(0x9c),!0x1),_0x2a5854&&(this[_0x4eaeab(0xa8)]=this[_0x4eaeab(0xa0)](_0x2f37a2(_0x13ea86,_0x4eaeab(0x98)),_0x4eaeab(0x94)),this[_0x4eaeab(0xa8)][_0x4eaeab(0x97)](_0x4eaeab(0x9f))['to'](this,_0x4eaeab(0x9c),_0x345be4=>!_0x345be4),this[_0x4eaeab(0xa2)][_0x4eaeab(0x99)](this[_0x4eaeab(0xa8)])),_0x3b6021&&(this[_0x4eaeab(0x9b)]=this[_0x4eaeab(0xa0)](_0x2f37a2(_0x13ea86,_0x4eaeab(0x9e)),_0x2a5854?_0x4eaeab(0xa5):_0x4eaeab(0x94)),this[_0x4eaeab(0x9b)][_0x4eaeab(0x97)](_0x4eaeab(0x9f))['to'](this,_0x4eaeab(0x9c),_0x4883b2=>!_0x4883b2),this[_0x4eaeab(0xa2)][_0x4eaeab(0x99)](this[_0x4eaeab(0x9b)])),this[_0x4eaeab(0x96)]({'attributes':{'class':[_0x4eaeab(0x92)]}});}[_0x38edae(0xa0)](_0x4d3dd3,_0xcc93ed){const _0x2307b4=_0x38edae,_0x3f4701=new _0x55ebb6(this[_0x2307b4(0xab)]);return _0x3f4701[_0x2307b4(0xa4)]({'label':_0x4d3dd3,'class':_0xcc93ed||'','isVisible':!0x0,'withText':!0x0}),_0x3f4701;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1c4c(){const _0x5424eb=['locale','8183796YlWeBR','_mainView','_createPreviousButtonView','focus','_errorView','span','change:isTrackChangesOn','12iKfXRS','1660281BgkGnX','view','scrollManager','_addDisclaimerView','_dialogContent','ck-hidden','showBlockingError','AI_BALLOON_NEXT_TOOLTIP','bindTemplate','241938DxmmgP','1450YCFYMJ','clear','ai-balloon-error','showError','disclaimerView','showNext','bodyView','7932509wgViEF','fire','headerView','7MPoHYq','applySuggestion','render','isLoading','element','_addContentView','isErrorVisible','showApplyButton','children','updateContent','div','set','AI_BALLOON_PREVIOUS_TOOLTIP','insertSuggestion','stopAutoScroll','ck-ai-suggestion__error-text','setTemplate','_addToolbar','applyButton','_createErrorView','toolbar','clearLoading','start','stop','suggestButton','8sPqXfi','shift\x20+\x20tab','207joJnQm','mainView','_getScrollableElement','3mYCGNG','_createNextButtonView','focusLast','_availableActions','_initializeScrollManager','focusTracker','execute','130768ckdXUy','listenTo','errorMessage','keystrokes','createCollection','destroy','setLoading','isEnabled','showSuggestButton','2970600tejvMM','bind','add','showPrevious','isTrackChangesOn','ck-ai-suggestion__error','includes','showRecoverableError','startAutoScroll','56067QtrzVx','_focusables','hideError','tab','setupRotator','addMany','getIndex','ai-balloon-content','focusFirst','remove','focusCycler'];_0x1c4c=function(){return _0x5424eb;};return _0x1c4c();}const _0x3085f1=_0xfc4f;(function(_0x1e89c6,_0x592d14){const _0x5569fb=_0xfc4f,_0x4576a0=_0x1e89c6();while(!![]){try{const _0x482140=parseInt(_0x5569fb(0x1d7))/0x1*(parseInt(_0x5569fb(0x1ae))/0x2)+-parseInt(_0x5569fb(0x1a5))/0x3*(parseInt(_0x5569fb(0x1d2))/0x4)+parseInt(_0x5569fb(0x1e7))/0x5+-parseInt(_0x5569fb(0x1fc))/0x6*(-parseInt(_0x5569fb(0x1b9))/0x7)+parseInt(_0x5569fb(0x1de))/0x8*(-parseInt(_0x5569fb(0x1d4))/0x9)+parseInt(_0x5569fb(0x1af))/0xa*(-parseInt(_0x5569fb(0x1f0))/0xb)+parseInt(_0x5569fb(0x1a4))/0xc*(parseInt(_0x5569fb(0x1b6))/0xd);if(_0x482140===_0x592d14)break;else _0x4576a0['push'](_0x4576a0['shift']());}catch(_0x5687b3){_0x4576a0['push'](_0x4576a0['shift']());}}}(_0x1c4c,0xad2bd));import{ButtonView as _0x566cbe,View as _0x36941e,ViewCollection as _0xbda8b8,FocusCycler as _0x5385d2}from'ckeditor5/src/ui.js';import{FocusTracker as _0x5ccd80,KeystrokeHandler as _0x183f3b}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x506aa2,IconPreviousArrow as _0xde98bd}from'@ckeditor/ckeditor5-icons';function _0xfc4f(_0x1d891b,_0x5ceda4){const _0x1c4c39=_0x1c4c();return _0xfc4f=function(_0xfc4f45,_0x19c05d){_0xfc4f45=_0xfc4f45-0x19e;let _0x25a688=_0x1c4c39[_0xfc4f45];return _0x25a688;},_0xfc4f(_0x1d891b,_0x5ceda4);}import{AIBalloonToolbarView as _0x22c4f3}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x13603f}from'./aiballoondisclaimerview.js';import{getTranslation as _0x31937e}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x451e6a}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x1a191e}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x3085f1(0x1ba),_0x3085f1(0x1c6),_0x3085f1(0x1b4),_0x3085f1(0x1ea)];export class AIBalloonView extends _0x36941e{[_0x3085f1(0x1dc)];[_0x3085f1(0x1e1)];[_0x3085f1(0x1fa)];[_0x3085f1(0x1da)];[_0x3085f1(0x1f1)];[_0x3085f1(0x1a1)];[_0x3085f1(0x1a7)];constructor(_0x57979e,_0x57d856,_0x39e862,_0x27e374){const _0x55eeab=_0x3085f1;super(_0x57979e),this[_0x55eeab(0x1da)]=_0x39e862,this[_0x55eeab(0x1c4)](_0x55eeab(0x1bc),!0x1),this[_0x55eeab(0x1c4)](_0x55eeab(0x1eb),_0x27e374),this[_0x55eeab(0x1c4)](_0x55eeab(0x1bf),!0x1),this[_0x55eeab(0x1c4)](_0x55eeab(0x1e0),''),this[_0x55eeab(0x1dc)]=new _0x5ccd80(),this[_0x55eeab(0x1e1)]=new _0x183f3b(),this[_0x55eeab(0x1f1)]=this[_0x55eeab(0x1e2)](),this[_0x55eeab(0x1fa)]=new _0x5385d2({'focusables':this[_0x55eeab(0x1f1)],'focusTracker':this[_0x55eeab(0x1dc)],'keystrokeHandler':this[_0x55eeab(0x1e1)],'actions':{'focusPrevious':_0x55eeab(0x1d3),'focusNext':_0x55eeab(0x1f3)}}),this[_0x55eeab(0x1a9)]=new _0xbda8b8(),this[_0x55eeab(0x1be)](_0x57d856[_0x55eeab(0x1d5)]),this[_0x55eeab(0x1a8)](),this[_0x55eeab(0x1ca)](_0x57d856[_0x55eeab(0x1c0)],_0x57d856[_0x55eeab(0x1e6)]),this[_0x55eeab(0x1cd)][_0x55eeab(0x1e8)](_0x55eeab(0x1bc))['to'](this),this[_0x55eeab(0x1f1)][_0x55eeab(0x1b0)](),this[_0x55eeab(0x1f1)][_0x55eeab(0x1f5)]([this[_0x55eeab(0x1cd)]]),this[_0x55eeab(0x1c9)]({'tag':_0x55eeab(0x1c3),'attributes':{'class':_0x55eeab(0x1f7)},'children':this[_0x55eeab(0x1a9)]}),this['on'](_0x55eeab(0x1a3),()=>{const _0x3439ec=_0x55eeab;this[_0x3439ec(0x1a9)][_0x3439ec(0x1f9)](this[_0x3439ec(0x1cd)]),this[_0x3439ec(0x1ca)](_0x57d856[_0x3439ec(0x1c0)],_0x57d856[_0x3439ec(0x1e6)]);});}[_0x3085f1(0x1bb)](){const _0x53bc3d=_0x3085f1;super[_0x53bc3d(0x1bb)]();for(const _0x21aa83 of this[_0x53bc3d(0x1f1)])this[_0x53bc3d(0x1dc)][_0x53bc3d(0x1e9)](_0x21aa83[_0x53bc3d(0x1bd)]);this[_0x53bc3d(0x1e1)][_0x53bc3d(0x1df)](this[_0x53bc3d(0x1bd)]),this[_0x53bc3d(0x1db)]();}[_0x3085f1(0x1e3)](){const _0x4afe85=_0x3085f1;super[_0x4afe85(0x1e3)](),this[_0x4afe85(0x1a7)]&&this[_0x4afe85(0x1a7)][_0x4afe85(0x1e3)]();}[_0x3085f1(0x1a0)](_0xde4c6d){const _0x2126bc=_0x3085f1;-0x1===_0xde4c6d?this[_0x2126bc(0x1fa)][_0x2126bc(0x1d9)]():this[_0x2126bc(0x1fa)][_0x2126bc(0x1f8)]();}[_0x3085f1(0x1e4)](){const _0xb3df73=_0x3085f1;this[_0xb3df73(0x1bc)]=!0x0;}[_0x3085f1(0x1ce)](){const _0x11fa91=_0x3085f1;this[_0x11fa91(0x1bc)]=!0x1;}[_0x3085f1(0x1b2)](_0x510294){const _0x26f3aa=_0x3085f1;this[_0x26f3aa(0x1a1)]||(this[_0x26f3aa(0x1a1)]=this[_0x26f3aa(0x1cc)](),this[_0x26f3aa(0x1a9)][_0x26f3aa(0x1f5)]([this[_0x26f3aa(0x1a1)]],0x0)),this[_0x26f3aa(0x1e0)]=_0x510294,this[_0x26f3aa(0x1bf)]=!0x0;}[_0x3085f1(0x1f2)](){const _0x4c0bd0=_0x3085f1;this[_0x4c0bd0(0x1bf)]=!0x1;}[_0x3085f1(0x1ee)](_0x3dac27){const _0x26a2f7=_0x3085f1;this[_0x26a2f7(0x1b2)](_0x3dac27);}[_0x3085f1(0x1ab)](_0x1f3e73){const _0x14ade3=_0x3085f1;this[_0x14ade3(0x1b2)](_0x1f3e73),this[_0x14ade3(0x1cd)]&&(this[_0x14ade3(0x1cd)][_0x14ade3(0x1cb)]&&(this[_0x14ade3(0x1cd)][_0x14ade3(0x1cb)][_0x14ade3(0x1e5)]=!0x1),this[_0x14ade3(0x1cd)][_0x14ade3(0x1d1)]&&(this[_0x14ade3(0x1cd)][_0x14ade3(0x1d1)][_0x14ade3(0x1e5)]=!0x1));}[_0x3085f1(0x1f4)](_0x4bc8a5){const _0xb466e1=_0x3085f1,_0x2287d4=this[_0xb466e1(0x1d8)](),_0x3dd5d2=this[_0xb466e1(0x19f)]();_0x4bc8a5[_0xb466e1(0x1a6)][_0xb466e1(0x1b8)][_0xb466e1(0x1c1)][_0xb466e1(0x1e9)](_0x2287d4,0x2),_0x4bc8a5[_0xb466e1(0x1a6)][_0xb466e1(0x1b8)][_0xb466e1(0x1c1)][_0xb466e1(0x1e9)](_0x3dd5d2,0x0),this[_0xb466e1(0x1f1)][_0xb466e1(0x1f5)]([_0x2287d4,_0x3dd5d2]),this[_0xb466e1(0x1dc)][_0xb466e1(0x1e9)](_0x2287d4[_0xb466e1(0x1bd)]),this[_0xb466e1(0x1dc)][_0xb466e1(0x1e9)](_0x3dd5d2[_0xb466e1(0x1bd)]);}[_0x3085f1(0x1be)](_0x425575){const _0x6e1395=_0x3085f1;this[_0x6e1395(0x19e)]=_0x425575,this[_0x6e1395(0x1a9)][_0x6e1395(0x1e9)](this[_0x6e1395(0x19e)]);}[_0x3085f1(0x1c2)](_0x1bdcd8){const _0xf903d5=_0x3085f1,_0x50bcac=this[_0xf903d5(0x1a9)][_0xf903d5(0x1f6)](this[_0xf903d5(0x19e)]);this[_0xf903d5(0x1a9)][_0xf903d5(0x1f9)](this[_0xf903d5(0x19e)]),this[_0xf903d5(0x19e)]=_0x1bdcd8,this[_0xf903d5(0x1a9)][_0xf903d5(0x1e9)](this[_0xf903d5(0x19e)],_0x50bcac),this[_0xf903d5(0x1f2)](),this[_0xf903d5(0x1a7)]&&this[_0xf903d5(0x1a7)][_0xf903d5(0x1e3)](),this[_0xf903d5(0x1db)]();}[_0x3085f1(0x1a8)](){const _0x1259ad=_0x3085f1;this[_0x1259ad(0x1b3)]=new _0x13603f(this[_0x1259ad(0x1fb)]),this[_0x1259ad(0x1a9)][_0x1259ad(0x1e9)](this[_0x1259ad(0x1b3)]);}[_0x3085f1(0x1ca)](_0x1dc148=!0x0,_0x366c88=!0x0){const _0xc8d9df=_0x3085f1;_0x1dc148=_0x1dc148&&!this[_0xc8d9df(0x1eb)]&&this[_0xc8d9df(0x1da)][_0xc8d9df(0x1ed)](_0xc8d9df(0x1ba)),_0x366c88=_0x366c88&&this[_0xc8d9df(0x1da)][_0xc8d9df(0x1ed)](_0xc8d9df(0x1c6)),this[_0xc8d9df(0x1cd)]=new _0x22c4f3(this[_0xc8d9df(0x1fb)],_0x1dc148,_0x366c88),this[_0xc8d9df(0x1cd)][_0xc8d9df(0x1cb)]?.['on'](_0xc8d9df(0x1dd),()=>{const _0x4619c4=_0xc8d9df;this[_0x4619c4(0x1b7)](_0x4619c4(0x1ba));}),this[_0xc8d9df(0x1cd)][_0xc8d9df(0x1d1)]?.['on'](_0xc8d9df(0x1dd),()=>{const _0x3d12c9=_0xc8d9df;this[_0x3d12c9(0x1b7)](_0x3d12c9(0x1c6));}),this[_0xc8d9df(0x1a9)][_0xc8d9df(0x1e9)](this[_0xc8d9df(0x1cd)]);}[_0x3085f1(0x1d8)](){const _0x54206e=_0x3085f1,_0x3648df=new _0x566cbe(this[_0x54206e(0x1fb)]);return _0x3648df[_0x54206e(0x1c4)]({'icon':_0x506aa2,'tooltip':_0x31937e(this[_0x54206e(0x1fb)],_0x54206e(0x1ac))}),_0x3648df['on'](_0x54206e(0x1dd),()=>{const _0x2377e1=_0x54206e;this[_0x2377e1(0x1b7)](_0x2377e1(0x1b4));}),_0x3648df;}[_0x3085f1(0x19f)](){const _0x7d4943=_0x3085f1,_0x4f1fea=new _0x566cbe(this[_0x7d4943(0x1fb)]);return _0x4f1fea[_0x7d4943(0x1c4)]({'icon':_0xde98bd,'tooltip':_0x31937e(this[_0x7d4943(0x1fb)],_0x7d4943(0x1c5))}),_0x4f1fea['on'](_0x7d4943(0x1dd),()=>{const _0x1c3636=_0x7d4943;this[_0x1c3636(0x1b7)](_0x1c3636(0x1ea));}),_0x4f1fea;}[_0x3085f1(0x1cc)](){const _0x5636b0=_0x3085f1,_0x1c809f=new _0x36941e(this[_0x5636b0(0x1fb)]),_0x3cc060=new _0x36941e(this[_0x5636b0(0x1fb)]);return _0x3cc060[_0x5636b0(0x1c9)]({'tag':_0x5636b0(0x1a2),'attributes':{'class':['ck',_0x5636b0(0x1c8)]},'children':[{'text':this[_0x5636b0(0x1ad)]['to'](_0x5636b0(0x1e0))}]}),_0x1c809f[_0x5636b0(0x1c9)]({'tag':_0x5636b0(0x1c3),'attributes':{'class':['ck',_0x5636b0(0x1ec),_0x5636b0(0x1b1),this[_0x5636b0(0x1ad)]['if'](_0x5636b0(0x1bf),_0x5636b0(0x1aa),_0x218483=>!_0x218483)]},'children':[_0x3cc060]}),_0x1c809f;}[_0x3085f1(0x1ef)](){const _0x192af6=_0x3085f1;this[_0x192af6(0x1db)](),this[_0x192af6(0x1a7)]&&this[_0x192af6(0x1a7)][_0x192af6(0x1cf)]();}[_0x3085f1(0x1c7)](){const _0x27962=_0x3085f1;this[_0x27962(0x1a7)]&&this[_0x27962(0x1a7)][_0x27962(0x1d0)]();}[_0x3085f1(0x1db)](){const _0x485ab4=_0x3085f1,_0x1b3190=this[_0x485ab4(0x1d6)]();_0x1b3190&&!this[_0x485ab4(0x1a7)]&&(this[_0x485ab4(0x1a7)]=new _0x451e6a(_0x1b3190));}[_0x3085f1(0x1d6)](){const _0x597955=_0x3085f1;return this[_0x597955(0x19e)]instanceof _0x1a191e&&this[_0x597955(0x19e)][_0x597955(0x1b5)][_0x597955(0x1bd)]?this[_0x597955(0x19e)][_0x597955(0x1b5)][_0x597955(0x1bd)]:null;}}
23
+ const _0x11bf3c=_0x2337;(function(_0x4ab82d,_0x4523b5){const _0x541ae3=_0x2337,_0x2db957=_0x4ab82d();while(!![]){try{const _0x55c03b=-parseInt(_0x541ae3(0xf7))/0x1*(parseInt(_0x541ae3(0xc6))/0x2)+parseInt(_0x541ae3(0xb5))/0x3+-parseInt(_0x541ae3(0xdc))/0x4+parseInt(_0x541ae3(0xdb))/0x5+parseInt(_0x541ae3(0xb4))/0x6*(parseInt(_0x541ae3(0xd5))/0x7)+parseInt(_0x541ae3(0xcf))/0x8*(-parseInt(_0x541ae3(0xf1))/0x9)+-parseInt(_0x541ae3(0xdf))/0xa*(-parseInt(_0x541ae3(0x10c))/0xb);if(_0x55c03b===_0x4523b5)break;else _0x2db957['push'](_0x2db957['shift']());}catch(_0x23f873){_0x2db957['push'](_0x2db957['shift']());}}}(_0xce12,0x26653));import{ButtonView as _0x3b565f,View as _0x543533,ViewCollection as _0x1edae4,FocusCycler as _0x67919}from'ckeditor5/src/ui.js';function _0xce12(){const _0x429bac=['hideError','showSuggestButton','AI_BALLOON_PREVIOUS_TOOLTIP','bodyView','_availableActions','listenTo','isErrorVisible','disclaimerView','688wQwSYL','focusCycler','tab','showBlockingError','showRecoverableError','errorMessage','7VobDBk','applyButton','focusLast','setTemplate','div','showNext','1102135jjvKDo','846248Dbzxem','element','AI_BALLOON_NEXT_TOOLTIP','46700HkzwmA','setLoading','ck-ai-suggestion__error-text','isLoading','_addDisclaimerView','remove','_createPreviousButtonView','_initializeScrollManager','bindTemplate','view','_createNextButtonView','startAutoScroll','ai-balloon-error','addMany','_focusables','mainView','isEnabled','focus','31167wCfiBZ','_addContentView','isTrackChangesOn','includes','_dialogContent','keystrokes','1633WDXkRK','_errorView','applySuggestion','destroy','_mainView','render','change:isTrackChangesOn','focusFirst','stopAutoScroll','setupRotator','_getScrollableElement','stop','span','ck-ai-suggestion__error','insertSuggestion','showPrevious','showApplyButton','getIndex','focusTracker','suggestButton','shift\x20+\x20tab','1375gQmBpU','ck-hidden','fire','scrollManager','updateContent','144276WjUhbX','406890aWoXxg','showError','bind','createCollection','_addToolbar','set','clearLoading','children','toolbar','add','start','headerView','execute','clear','_createErrorView','locale','ai-balloon-content','364ysxvSm'];_0xce12=function(){return _0x429bac;};return _0xce12();}import{FocusTracker as _0x32bc76,KeystrokeHandler as _0x3c83ee}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x475f02,IconPreviousArrow as _0x1c8335}from'@ckeditor/ckeditor5-icons';function _0x2337(_0x218d96,_0xb5ec68){const _0xce12d0=_0xce12();return _0x2337=function(_0x2337c5,_0x146044){_0x2337c5=_0x2337c5-0xb3;let _0x1153d1=_0xce12d0[_0x2337c5];return _0x1153d1;},_0x2337(_0x218d96,_0xb5ec68);}import{AIBalloonToolbarView as _0x3a2ca5}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x59adc3}from'./aiballoondisclaimerview.js';import{getTranslation as _0x380c21}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x622d4d}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x16f741}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x11bf3c(0xf9),_0x11bf3c(0x105),_0x11bf3c(0xda),_0x11bf3c(0x106)];export class AIBalloonView extends _0x543533{[_0x11bf3c(0x109)];[_0x11bf3c(0xf6)];[_0x11bf3c(0xd0)];[_0x11bf3c(0xcb)];[_0x11bf3c(0xed)];[_0x11bf3c(0xf8)];[_0x11bf3c(0x10f)];constructor(_0x4f52ca,_0x71bdb7,_0x5b0f3b,_0x3a28e8){const _0x45c51e=_0x11bf3c;super(_0x4f52ca),this[_0x45c51e(0xcb)]=_0x5b0f3b,this[_0x45c51e(0xba)](_0x45c51e(0xe2),!0x1),this[_0x45c51e(0xba)](_0x45c51e(0xf3),_0x3a28e8),this[_0x45c51e(0xba)](_0x45c51e(0xcd),!0x1),this[_0x45c51e(0xba)](_0x45c51e(0xd4),''),this[_0x45c51e(0x109)]=new _0x32bc76(),this[_0x45c51e(0xf6)]=new _0x3c83ee(),this[_0x45c51e(0xed)]=this[_0x45c51e(0xb8)](),this[_0x45c51e(0xd0)]=new _0x67919({'focusables':this[_0x45c51e(0xed)],'focusTracker':this[_0x45c51e(0x109)],'keystrokeHandler':this[_0x45c51e(0xf6)],'actions':{'focusPrevious':_0x45c51e(0x10b),'focusNext':_0x45c51e(0xd1)}}),this[_0x45c51e(0xf5)]=new _0x1edae4(),this[_0x45c51e(0xf2)](_0x71bdb7[_0x45c51e(0xee)]),this[_0x45c51e(0xe3)](),this[_0x45c51e(0xb9)](_0x71bdb7[_0x45c51e(0x107)],_0x71bdb7[_0x45c51e(0xc8)]),this[_0x45c51e(0xbd)][_0x45c51e(0xb7)](_0x45c51e(0xe2))['to'](this),this[_0x45c51e(0xed)][_0x45c51e(0xc2)](),this[_0x45c51e(0xed)][_0x45c51e(0xec)]([this[_0x45c51e(0xbd)]]),this[_0x45c51e(0xd8)]({'tag':_0x45c51e(0xd9),'attributes':{'class':_0x45c51e(0xc5)},'children':this[_0x45c51e(0xf5)]}),this['on'](_0x45c51e(0xfd),()=>{const _0x262490=_0x45c51e;this[_0x262490(0xf5)][_0x262490(0xe4)](this[_0x262490(0xbd)]),this[_0x262490(0xb9)](_0x71bdb7[_0x262490(0x107)],_0x71bdb7[_0x262490(0xc8)]);});}[_0x11bf3c(0xfc)](){const _0x2b1433=_0x11bf3c;super[_0x2b1433(0xfc)]();for(const _0x400f40 of this[_0x2b1433(0xed)])this[_0x2b1433(0x109)][_0x2b1433(0xbe)](_0x400f40[_0x2b1433(0xdd)]);this[_0x2b1433(0xf6)][_0x2b1433(0xcc)](this[_0x2b1433(0xdd)]),this[_0x2b1433(0xe6)]();}[_0x11bf3c(0xfa)](){const _0x2d32d8=_0x11bf3c;super[_0x2d32d8(0xfa)](),this[_0x2d32d8(0x10f)]&&this[_0x2d32d8(0x10f)][_0x2d32d8(0xfa)]();}[_0x11bf3c(0xf0)](_0x260753){const _0x1ec330=_0x11bf3c;-0x1===_0x260753?this[_0x1ec330(0xd0)][_0x1ec330(0xd7)]():this[_0x1ec330(0xd0)][_0x1ec330(0xfe)]();}[_0x11bf3c(0xe0)](){const _0x255b99=_0x11bf3c;this[_0x255b99(0xe2)]=!0x0;}[_0x11bf3c(0xbb)](){const _0x2bb9d9=_0x11bf3c;this[_0x2bb9d9(0xe2)]=!0x1;}[_0x11bf3c(0xb6)](_0x1df148){const _0x2bd618=_0x11bf3c;this[_0x2bd618(0xf8)]||(this[_0x2bd618(0xf8)]=this[_0x2bd618(0xc3)](),this[_0x2bd618(0xf5)][_0x2bd618(0xec)]([this[_0x2bd618(0xf8)]],0x0)),this[_0x2bd618(0xd4)]=_0x1df148,this[_0x2bd618(0xcd)]=!0x0;}[_0x11bf3c(0xc7)](){const _0x3acc8f=_0x11bf3c;this[_0x3acc8f(0xcd)]=!0x1;}[_0x11bf3c(0xd3)](_0x3749d1){const _0x4c8a1f=_0x11bf3c;this[_0x4c8a1f(0xb6)](_0x3749d1);}[_0x11bf3c(0xd2)](_0x508fde){const _0x297fde=_0x11bf3c;this[_0x297fde(0xb6)](_0x508fde),this[_0x297fde(0xbd)]&&(this[_0x297fde(0xbd)][_0x297fde(0xd6)]&&(this[_0x297fde(0xbd)][_0x297fde(0xd6)][_0x297fde(0xef)]=!0x1),this[_0x297fde(0xbd)][_0x297fde(0x10a)]&&(this[_0x297fde(0xbd)][_0x297fde(0x10a)][_0x297fde(0xef)]=!0x1));}[_0x11bf3c(0x100)](_0x598e98){const _0x4cab22=_0x11bf3c,_0x34657d=this[_0x4cab22(0xe9)](),_0x1c8a2f=this[_0x4cab22(0xe5)]();_0x598e98[_0x4cab22(0xe8)][_0x4cab22(0xc0)][_0x4cab22(0xbc)][_0x4cab22(0xbe)](_0x34657d,0x2),_0x598e98[_0x4cab22(0xe8)][_0x4cab22(0xc0)][_0x4cab22(0xbc)][_0x4cab22(0xbe)](_0x1c8a2f,0x0),this[_0x4cab22(0xed)][_0x4cab22(0xec)]([_0x34657d,_0x1c8a2f]),this[_0x4cab22(0x109)][_0x4cab22(0xbe)](_0x34657d[_0x4cab22(0xdd)]),this[_0x4cab22(0x109)][_0x4cab22(0xbe)](_0x1c8a2f[_0x4cab22(0xdd)]);}[_0x11bf3c(0xf2)](_0x510714){const _0x259fbb=_0x11bf3c;this[_0x259fbb(0xfb)]=_0x510714,this[_0x259fbb(0xf5)][_0x259fbb(0xbe)](this[_0x259fbb(0xfb)]);}[_0x11bf3c(0xb3)](_0x238d95){const _0x2b59f8=_0x11bf3c,_0x206c39=this[_0x2b59f8(0xf5)][_0x2b59f8(0x108)](this[_0x2b59f8(0xfb)]);this[_0x2b59f8(0xf5)][_0x2b59f8(0xe4)](this[_0x2b59f8(0xfb)]),this[_0x2b59f8(0xfb)]=_0x238d95,this[_0x2b59f8(0xf5)][_0x2b59f8(0xbe)](this[_0x2b59f8(0xfb)],_0x206c39),this[_0x2b59f8(0xc7)](),this[_0x2b59f8(0x10f)]&&this[_0x2b59f8(0x10f)][_0x2b59f8(0xfa)](),this[_0x2b59f8(0xe6)]();}[_0x11bf3c(0xe3)](){const _0x40379d=_0x11bf3c;this[_0x40379d(0xce)]=new _0x59adc3(this[_0x40379d(0xc4)]),this[_0x40379d(0xf5)][_0x40379d(0xbe)](this[_0x40379d(0xce)]);}[_0x11bf3c(0xb9)](_0x53fbc8=!0x0,_0x5ad1a8=!0x0){const _0x346f65=_0x11bf3c;_0x53fbc8=_0x53fbc8&&!this[_0x346f65(0xf3)]&&this[_0x346f65(0xcb)][_0x346f65(0xf4)](_0x346f65(0xf9)),_0x5ad1a8=_0x5ad1a8&&this[_0x346f65(0xcb)][_0x346f65(0xf4)](_0x346f65(0x105)),this[_0x346f65(0xbd)]=new _0x3a2ca5(this[_0x346f65(0xc4)],_0x53fbc8,_0x5ad1a8),this[_0x346f65(0xbd)][_0x346f65(0xd6)]?.['on'](_0x346f65(0xc1),()=>{const _0x43ba61=_0x346f65;this[_0x43ba61(0x10e)](_0x43ba61(0xf9));}),this[_0x346f65(0xbd)][_0x346f65(0x10a)]?.['on'](_0x346f65(0xc1),()=>{const _0x2296d2=_0x346f65;this[_0x2296d2(0x10e)](_0x2296d2(0x105));}),this[_0x346f65(0xf5)][_0x346f65(0xbe)](this[_0x346f65(0xbd)]);}[_0x11bf3c(0xe9)](){const _0xcff8fc=_0x11bf3c,_0x3e3f33=new _0x3b565f(this[_0xcff8fc(0xc4)]);return _0x3e3f33[_0xcff8fc(0xba)]({'icon':_0x475f02,'tooltip':_0x380c21(this[_0xcff8fc(0xc4)],_0xcff8fc(0xde))}),_0x3e3f33['on'](_0xcff8fc(0xc1),()=>{const _0x59b9b8=_0xcff8fc;this[_0x59b9b8(0x10e)](_0x59b9b8(0xda));}),_0x3e3f33;}[_0x11bf3c(0xe5)](){const _0x4f44f9=_0x11bf3c,_0x105a97=new _0x3b565f(this[_0x4f44f9(0xc4)]);return _0x105a97[_0x4f44f9(0xba)]({'icon':_0x1c8335,'tooltip':_0x380c21(this[_0x4f44f9(0xc4)],_0x4f44f9(0xc9))}),_0x105a97['on'](_0x4f44f9(0xc1),()=>{const _0x2a2ac9=_0x4f44f9;this[_0x2a2ac9(0x10e)](_0x2a2ac9(0x106));}),_0x105a97;}[_0x11bf3c(0xc3)](){const _0x585049=_0x11bf3c,_0x477c0c=new _0x543533(this[_0x585049(0xc4)]),_0x30f397=new _0x543533(this[_0x585049(0xc4)]);return _0x30f397[_0x585049(0xd8)]({'tag':_0x585049(0x103),'attributes':{'class':['ck',_0x585049(0xe1)]},'children':[{'text':this[_0x585049(0xe7)]['to'](_0x585049(0xd4))}]}),_0x477c0c[_0x585049(0xd8)]({'tag':_0x585049(0xd9),'attributes':{'class':['ck',_0x585049(0x104),_0x585049(0xeb),this[_0x585049(0xe7)]['if'](_0x585049(0xcd),_0x585049(0x10d),_0x14f9e9=>!_0x14f9e9)]},'children':[_0x30f397]}),_0x477c0c;}[_0x11bf3c(0xea)](){const _0x443407=_0x11bf3c;this[_0x443407(0xe6)](),this[_0x443407(0x10f)]&&this[_0x443407(0x10f)][_0x443407(0xbf)]();}[_0x11bf3c(0xff)](){const _0x1032d1=_0x11bf3c;this[_0x1032d1(0x10f)]&&this[_0x1032d1(0x10f)][_0x1032d1(0x102)]();}[_0x11bf3c(0xe6)](){const _0x3f5f14=_0x11bf3c,_0x29d04e=this[_0x3f5f14(0x101)]();_0x29d04e&&!this[_0x3f5f14(0x10f)]&&(this[_0x3f5f14(0x10f)]=new _0x622d4d(_0x29d04e));}[_0x11bf3c(0x101)](){const _0x1b8395=_0x11bf3c;return this[_0x1b8395(0xfb)]instanceof _0x16f741&&this[_0x1b8395(0xfb)][_0x1b8395(0xca)][_0x1b8395(0xdd)]?this[_0x1b8395(0xfb)][_0x1b8395(0xca)][_0x1b8395(0xdd)]:null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2cb32c=_0x59e7;(function(_0x37def5,_0x247b6d){var _0x52023c=_0x59e7,_0x5e5b5a=_0x37def5();while(!![]){try{var _0x3bf7f6=-parseInt(_0x52023c(0x160))/0x1*(-parseInt(_0x52023c(0x168))/0x2)+-parseInt(_0x52023c(0x153))/0x3+parseInt(_0x52023c(0x158))/0x4+-parseInt(_0x52023c(0x151))/0x5*(parseInt(_0x52023c(0x15c))/0x6)+-parseInt(_0x52023c(0x155))/0x7+parseInt(_0x52023c(0x169))/0x8+parseInt(_0x52023c(0x163))/0x9;if(_0x3bf7f6===_0x247b6d)break;else _0x5e5b5a['push'](_0x5e5b5a['shift']());}catch(_0x152660){_0x5e5b5a['push'](_0x5e5b5a['shift']());}}}(_0x2a9f,0x4f460));function _0x59e7(_0x591fae,_0x5b7fe6){var _0x2a9fe8=_0x2a9f();return _0x59e7=function(_0x59e7e9,_0x1ce56c){_0x59e7e9=_0x59e7e9-0x150;var _0x4548fa=_0x2a9fe8[_0x59e7e9];return _0x4548fa;},_0x59e7(_0x591fae,_0x5b7fe6);}import{ContextPlugin as _0x525b69}from'ckeditor5/src/core.js';import{AIChatController as _0x524cd6}from'./aichatcontroller.js';import{AIEditing as _0x500a7c}from'../aicore/aiediting.js';import{AIChatUI as _0x2b7aff}from'./aichatui.js';import{AIChatHistory as _0x34be4e}from'../aichathistory/aichathistory.js';function _0x2a9f(){var _0x4ea7bc=['3897216MhXCye','addSelectionToChatContext','define','context','ai.chat.models','112342yMdqKK','594256yYmKnM','sendMessage','5030QOAdIu','isPremiumPlugin','1770363Xwxvge','requires','2046506JAcBow','AIChat','config','1610320RAsudz','startConversation','focusPromptInput','pluginName','1242iWfNTG','ai.chat.context','isOfficialPlugin','removeSelectionFromChatContext','9jeKiIC','get','plugins'];_0x2a9f=function(){return _0x4ea7bc;};return _0x2a9f();}export class AIChat extends _0x525b69{static get[_0x2cb32c(0x154)](){return[_0x524cd6,_0x500a7c,_0x2b7aff,_0x34be4e];}static get[_0x2cb32c(0x15b)](){var _0x4ea3e7=_0x2cb32c;return _0x4ea3e7(0x156);}static get[_0x2cb32c(0x15e)](){return!0x0;}static get[_0x2cb32c(0x152)](){return!0x0;}constructor(_0x5a7120){var _0xf3a41f=_0x2cb32c;super(_0x5a7120),this[_0xf3a41f(0x166)][_0xf3a41f(0x157)][_0xf3a41f(0x165)](_0xf3a41f(0x15d),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0xf3a41f(0x166)][_0xf3a41f(0x157)][_0xf3a41f(0x165)](_0xf3a41f(0x167),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x2cb32c(0x164)](){var _0x1560b1=_0x2cb32c;await this[_0x1560b1(0x166)][_0x1560b1(0x162)][_0x1560b1(0x161)](_0x524cd6)[_0x1560b1(0x164)]();}async[_0x2cb32c(0x159)](){var _0x4a72d7=_0x2cb32c;await this[_0x4a72d7(0x166)][_0x4a72d7(0x162)][_0x4a72d7(0x161)](_0x524cd6)[_0x4a72d7(0x159)]();}async[_0x2cb32c(0x150)]({message:_0x1aa76e,quickActionData:_0x2045da}){var _0x3cd4c4=_0x2cb32c;await this[_0x3cd4c4(0x166)][_0x3cd4c4(0x162)][_0x3cd4c4(0x161)](_0x524cd6)[_0x3cd4c4(0x150)]({'message':_0x1aa76e,'quickActionData':_0x2045da});}[_0x2cb32c(0x15f)](){var _0x49cd5f=_0x2cb32c;this[_0x49cd5f(0x166)][_0x49cd5f(0x162)][_0x49cd5f(0x161)](_0x524cd6)[_0x49cd5f(0x15f)]();}[_0x2cb32c(0x15a)](){var _0xd59b1e=_0x2cb32c;this[_0xd59b1e(0x166)][_0xd59b1e(0x162)][_0xd59b1e(0x161)](_0x524cd6)[_0xd59b1e(0x15a)]();}}
23
+ function _0xdf1d(){var _0x1ee11f=['context','7705446vqyzaU','sendMessage','requires','1309735HuazuK','isPremiumPlugin','2133858RDXmEl','7204BxVhNO','ai.chat.context','removeSelectionFromChatContext','8228066cXykYD','addSelectionToChatContext','3095bmXpHX','plugins','startConversation','37069264BDlWMw','get','focusPromptInput','pluginName','ai.chat.models','isOfficialPlugin','define','AIChat','1917218qThiIM','config'];_0xdf1d=function(){return _0x1ee11f;};return _0xdf1d();}var _0x36ded5=_0x22e2;(function(_0x1a39e0,_0x129701){var _0xb10c22=_0x22e2,_0x4e1993=_0x1a39e0();while(!![]){try{var _0x4b4638=parseInt(_0xb10c22(0x10b))/0x1+-parseInt(_0xb10c22(0x105))/0x2+-parseInt(_0xb10c22(0xf4))/0x3+-parseInt(_0xb10c22(0xf5))/0x4*(parseInt(_0xb10c22(0xfa))/0x5)+-parseInt(_0xb10c22(0x108))/0x6+-parseInt(_0xb10c22(0xf8))/0x7+parseInt(_0xb10c22(0xfd))/0x8;if(_0x4b4638===_0x129701)break;else _0x4e1993['push'](_0x4e1993['shift']());}catch(_0x2fd775){_0x4e1993['push'](_0x4e1993['shift']());}}}(_0xdf1d,0xaaa78));import{ContextPlugin as _0x31916c}from'ckeditor5/src/core.js';function _0x22e2(_0x3882e3,_0x213e42){var _0xdf1dd8=_0xdf1d();return _0x22e2=function(_0x22e205,_0x153dd4){_0x22e205=_0x22e205-0xf4;var _0x159c42=_0xdf1dd8[_0x22e205];return _0x159c42;},_0x22e2(_0x3882e3,_0x213e42);}import{AIChatController as _0x2a0adc}from'./aichatcontroller.js';import{AIEditing as _0x1238ff}from'../aicore/aiediting.js';import{AIChatUI as _0x1e8caa}from'./aichatui.js';import{AIChatHistory as _0x52a79e}from'../aichathistory/aichathistory.js';export class AIChat extends _0x31916c{static get[_0x36ded5(0x10a)](){return[_0x2a0adc,_0x1238ff,_0x1e8caa,_0x52a79e];}static get[_0x36ded5(0x100)](){var _0x513e20=_0x36ded5;return _0x513e20(0x104);}static get[_0x36ded5(0x102)](){return!0x0;}static get[_0x36ded5(0x10c)](){return!0x0;}constructor(_0x47d503){var _0x400891=_0x36ded5;super(_0x47d503),this[_0x400891(0x107)][_0x400891(0x106)][_0x400891(0x103)](_0x400891(0xf6),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x400891(0x107)][_0x400891(0x106)][_0x400891(0x103)](_0x400891(0x101),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x36ded5(0xf9)](){var _0x59f1b5=_0x36ded5;await this[_0x59f1b5(0x107)][_0x59f1b5(0xfb)][_0x59f1b5(0xfe)](_0x2a0adc)[_0x59f1b5(0xf9)]();}async[_0x36ded5(0xfc)](){var _0x488d48=_0x36ded5;await this[_0x488d48(0x107)][_0x488d48(0xfb)][_0x488d48(0xfe)](_0x2a0adc)[_0x488d48(0xfc)]();}async[_0x36ded5(0x109)]({message:_0x382664,quickActionData:_0x331724}){var _0x26b362=_0x36ded5;await this[_0x26b362(0x107)][_0x26b362(0xfb)][_0x26b362(0xfe)](_0x2a0adc)[_0x26b362(0x109)]({'message':_0x382664,'quickActionData':_0x331724});}[_0x36ded5(0xf7)](){var _0x18aa44=_0x36ded5;this[_0x18aa44(0x107)][_0x18aa44(0xfb)][_0x18aa44(0xfe)](_0x2a0adc)[_0x18aa44(0xf7)]();}[_0x36ded5(0xff)](){var _0x420867=_0x36ded5;this[_0x420867(0x107)][_0x420867(0xfb)][_0x420867(0xfe)](_0x2a0adc)[_0x420867(0xff)]();}}