@ckeditor/ckeditor5-ai 47.2.0-alpha.7 → 47.2.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 (127) 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/model/aichatmodels.js +1 -1
  35. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  36. package/src/aichat/ui/aichatfeedview.js +1 -1
  37. package/src/aichat/ui/aichatheaderview.js +1 -1
  38. package/src/aichat/ui/aichatview.js +1 -1
  39. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  43. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  46. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  51. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  58. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  59. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  60. package/src/aichat/utils/eventnames.js +1 -1
  61. package/src/aichat/utils/promisequeue.js +1 -1
  62. package/src/aichathistory/aichathistory.js +1 -1
  63. package/src/aichathistory/aichathistorycontroller.js +1 -1
  64. package/src/aichathistory/aichathistoryui.js +1 -1
  65. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  66. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  67. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  68. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  69. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  70. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  71. package/src/aicore/aiconnector.js +1 -1
  72. package/src/aicore/aiediting.js +1 -1
  73. package/src/aicore/model/aicapabilities.js +1 -1
  74. package/src/aicore/model/aiinteraction.js +1 -1
  75. package/src/aicore/model/aimodels.js +1 -1
  76. package/src/aicore/model/aireply.js +1 -1
  77. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  78. package/src/aicore/pipeline/airesponseparser.js +2 -2
  79. package/src/aicore/ui/aidisclaimerview.js +1 -1
  80. package/src/aicore/ui/aiskeleton.js +1 -1
  81. package/src/aicore/ui/aispinner.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  86. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  87. package/src/aicore/utils/createresizebutton.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/aieditorintegration/aieditorintegration.js +1 -1
  95. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  97. package/src/aiquickactions/aiquickactions.js +1 -1
  98. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  99. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  100. package/src/aiquickactions/aiquickactionsui.js +1 -1
  101. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  104. package/src/aireviewmode/aireviewmode.js +1 -1
  105. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  106. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  107. package/src/aireviewmode/aireviewmodeui.js +1 -1
  108. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  109. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  110. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  112. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  113. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  117. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  118. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  122. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  123. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  124. package/src/aitabs/aitabs.js +1 -1
  125. package/src/aitabs/tabs/aitabsview.js +1 -1
  126. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  127. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xefb756=_0x22b5;(function(_0x52cffa,_0x174b92){const _0x452a5c=_0x22b5,_0x1f7c1b=_0x52cffa();while(!![]){try{const _0x47c9dc=parseInt(_0x452a5c(0xbb))/0x1+-parseInt(_0x452a5c(0xcc))/0x2*(-parseInt(_0x452a5c(0xeb))/0x3)+-parseInt(_0x452a5c(0xf3))/0x4+parseInt(_0x452a5c(0xfb))/0x5+parseInt(_0x452a5c(0xf1))/0x6+-parseInt(_0x452a5c(0xe5))/0x7+-parseInt(_0x452a5c(0xb9))/0x8*(parseInt(_0x452a5c(0xec))/0x9);if(_0x47c9dc===_0x174b92)break;else _0x1f7c1b['push'](_0x1f7c1b['shift']());}catch(_0x71be72){_0x1f7c1b['push'](_0x1f7c1b['shift']());}}}(_0x259e,0x614c6));import{FocusTracker as _0x1a9ac5,KeystrokeHandler as _0x428fff}from'ckeditor5/src/utils.js';import{View as _0xd4e1f6,FocusCycler as _0x2007a8,createLabeledTextarea as _0x1990cf}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x1f62dc,AIFormToolbarViewMainActionLabel as _0x46724a}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x3f56a2}from'./aiformcontentarea.js';import{AIFormErrorView as _0x4ca828}from'./aiformerrorview.js';import{AIFormPromptView as _0x507b75}from'./aiformpromptview.js';import{AIHistoryListView as _0xf6310d}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x20b015}from'./aihistorylistitemview.js';import{PromptHistory as _0x38a9cd}from'./prompthistory.js';import{getTranslation as _0x1ecb98}from'../../utils/common-translations.js';import{escape as _0x4bb73e}from'es-toolkit/compat';export class AIFormView extends _0xd4e1f6{[_0xefb756(0xde)];[_0xefb756(0xca)];[_0xefb756(0xe9)];[_0xefb756(0x103)];[_0xefb756(0x100)];[_0xefb756(0xe4)];[_0xefb756(0xdc)];[_0xefb756(0xbc)];[_0xefb756(0xb8)];constructor(_0x469bb5,_0x27f661,_0xfbac44=''){const _0x4c9b95=_0xefb756;super(_0x469bb5),this[_0x4c9b95(0xd2)](_0x4c9b95(0xb6),!0x0),this[_0x4c9b95(0xd2)](_0x4c9b95(0xc4),!0x1),this[_0x4c9b95(0xd2)](_0x4c9b95(0xb7),''),this[_0x4c9b95(0xd2)](_0x4c9b95(0xc8),''),this[_0x4c9b95(0xd2)](_0x4c9b95(0xcf),!0x1),this[_0x4c9b95(0xd2)](_0x4c9b95(0xcd),_0x46724a[_0x4c9b95(0xf0)]),this[_0x4c9b95(0xb8)]=new _0x38a9cd(),this[_0x4c9b95(0xe4)]=new _0x4ca828(_0x469bb5),this[_0x4c9b95(0xe9)]=new _0x3f56a2(_0x469bb5,_0xfbac44),this[_0x4c9b95(0xe9)][_0x4c9b95(0xc2)](_0x4c9b95(0xc4))['to'](this),this[_0x4c9b95(0xe9)][_0x4c9b95(0xc2)](_0x4c9b95(0xc8))['to'](this),this[_0x4c9b95(0x103)]=this[_0x4c9b95(0xe0)](),this[_0x4c9b95(0x103)][_0x4c9b95(0xc2)](_0x4c9b95(0xcd))['to'](this),this[_0x4c9b95(0x100)]=this[_0x4c9b95(0xf6)](),this[_0x4c9b95(0xde)]=new _0x1a9ac5(),this[_0x4c9b95(0xca)]=new _0x428fff(),this[_0x4c9b95(0xdc)]=this[_0x4c9b95(0xff)]([this[_0x4c9b95(0xe9)],this[_0x4c9b95(0xe9)][_0x4c9b95(0xc7)],this[_0x4c9b95(0x103)],this[_0x4c9b95(0x100)]]),this[_0x4c9b95(0xbc)]=new _0x2007a8({'focusables':this[_0x4c9b95(0xdc)],'focusTracker':this[_0x4c9b95(0xde)],'keystrokeHandler':this[_0x4c9b95(0xca)],'actions':{'focusPrevious':_0x4c9b95(0x105),'focusNext':_0x4c9b95(0xc9)}}),this[_0x4c9b95(0xbc)][_0x4c9b95(0xb5)](this[_0x4c9b95(0x100)][_0x4c9b95(0xbc)]),this[_0x4c9b95(0x100)][_0x4c9b95(0xc1)][_0x4c9b95(0xce)][_0x4c9b95(0xc2)](_0x4c9b95(0xc8))['to'](this,_0x4c9b95(0xb7));const _0x191af7=this[_0x4c9b95(0xf4)];this[_0x4c9b95(0xe3)]({'tag':_0x4c9b95(0xdd),'attributes':{'class':['ck',_0x4c9b95(0x108),_0x27f661],'tabindex':'-1'},'children':[{'tag':_0x4c9b95(0xdd),'attributes':{'class':['ck',_0x4c9b95(0xe1)]},'children':[{'tag':_0x4c9b95(0xdd),'attributes':{'class':[_0x191af7['if'](_0x4c9b95(0xcf),_0x4c9b95(0xe8),_0x28346c=>!_0x28346c)]},'children':[this[_0x4c9b95(0xe4)]]},this[_0x4c9b95(0xe9)],this[_0x4c9b95(0x103)],this[_0x4c9b95(0x100)]]}]});}[_0xefb756(0xf5)](){const _0x240114=_0xefb756;super[_0x240114(0xf5)](),this[_0x240114(0xde)][_0x240114(0xd7)](this[_0x240114(0xe9)][_0x240114(0xf9)]),this[_0x240114(0xde)][_0x240114(0xd7)](this[_0x240114(0xe9)][_0x240114(0xc7)][_0x240114(0xf9)]),this[_0x240114(0xde)][_0x240114(0xd7)](this[_0x240114(0x103)][_0x240114(0xf9)]),this[_0x240114(0xde)][_0x240114(0xd7)](this[_0x240114(0x100)][_0x240114(0xf9)]),this[_0x240114(0xca)][_0x240114(0xc5)](this[_0x240114(0xf9)]);}[_0xefb756(0xf2)](_0x4fe69f=0x1){const _0x5d0f2c=_0xefb756;-0x1===_0x4fe69f?this[_0x5d0f2c(0xbc)][_0x5d0f2c(0xe6)]():this[_0x5d0f2c(0xbc)][_0x5d0f2c(0xd1)]();}[_0xefb756(0xd0)](){const _0x555730=_0xefb756;this[_0x555730(0xb7)]='',this[_0x555730(0xc8)]='',this[_0x555730(0xcf)]=!0x1,this[_0x555730(0x100)][_0x555730(0xd0)](),this[_0x555730(0xe9)][_0x555730(0xdb)]=!0x1,this[_0x555730(0x103)][_0x555730(0xdb)]=!0x1;}[_0xefb756(0xf6)](){const _0x18026d=_0xefb756,_0x5548d6=this[_0x18026d(0x106)],_0x5058e3=new _0x507b75(_0x5548d6,{'queryView':{'label':_0x1ecb98(_0x5548d6,_0x18026d(0xfe)),'creator':_0x1990cf,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x1ecb98(_0x5548d6,_0x18026d(0xc0)),'secondary':_0x1ecb98(_0x5548d6,_0x18026d(0xc3))}}},'filteredView':this[_0x18026d(0xbe)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x5058e3[_0x18026d(0xc2)](_0x18026d(0xb6))['to'](this,_0x18026d(0xb6),this,_0x18026d(0xc4),(_0x211003,_0x3923b4)=>_0x211003&&!_0x3923b4),this[_0x18026d(0xc5)](_0x5058e3,_0x18026d(0xba),(_0x45a4a3,_0x29bbd9)=>{const _0x127189=_0x18026d;this[_0x127189(0xb7)]=_0x29bbd9;const _0x44ceb6=_0x4bb73e(_0x29bbd9);this[_0x127189(0xd5)](_0x127189(0xd3),_0x44ceb6),_0x29bbd9[_0x127189(0xda)]()&&this[_0x127189(0xb8)][_0x127189(0xd7)]({'prompt':_0x44ceb6},0x0);},{'priority':_0x18026d(0xef)}),_0x5058e3;}[_0xefb756(0xbe)](){const _0x8416a0=_0xefb756,_0x2cfe71=new _0xf6310d(this[_0x8416a0(0x106)]);return _0x2cfe71[_0x8416a0(0xd8)][_0x8416a0(0x101)][_0x8416a0(0xd6)](this[_0x8416a0(0xb8)])['as'](_0x20b015),_0x2cfe71['on'](_0x8416a0(0xc6),()=>{const _0x31e9a3=_0x8416a0;this[_0x31e9a3(0xb8)][_0x31e9a3(0xfd)](),this[_0x31e9a3(0x100)][_0x31e9a3(0x102)](''),this[_0x31e9a3(0x100)][_0x31e9a3(0xf2)]();}),_0x2cfe71;}[_0xefb756(0xe0)](){const _0x22f637=_0xefb756,_0x1abbc1=new _0x1f62dc(this[_0x22f637(0x106)]);return _0x1abbc1[_0x22f637(0xea)][_0x22f637(0xc2)](_0x22f637(0xb6))['to'](this,_0x22f637(0xb6),this,_0x22f637(0xc4),this,_0x22f637(0xc8),(_0x2645eb,_0x4c055e,_0x5e9f7d)=>_0x2645eb&&!_0x4c055e&&!!_0x5e9f7d),_0x1abbc1[_0x22f637(0xea)][_0x22f637(0x107)](_0x22f637(0xe2))['to'](this,_0x22f637(0xd9)),_0x1abbc1[_0x22f637(0xdf)][_0x22f637(0xc2)](_0x22f637(0xb6))['to'](this,_0x22f637(0xb6),this,_0x22f637(0xc4),this,_0x22f637(0xc8),(_0x19adb6,_0x20d572,_0x36b3f5)=>_0x19adb6&&!_0x20d572&&!!_0x36b3f5),_0x1abbc1[_0x22f637(0xdf)][_0x22f637(0x107)](_0x22f637(0xe2))['to'](this,_0x22f637(0xbd)),_0x1abbc1[_0x22f637(0x104)][_0x22f637(0xc2)](_0x22f637(0xb6))['to'](this,_0x22f637(0xb6),this,_0x22f637(0xc4),(_0x5244ad,_0x3262ea)=>_0x5244ad&&!_0x3262ea),_0x1abbc1[_0x22f637(0x104)][_0x22f637(0x107)](_0x22f637(0xe2))['to'](this,_0x22f637(0xee)),_0x1abbc1[_0x22f637(0xf7)][_0x22f637(0xc2)](_0x22f637(0xb6))['to'](this,_0x22f637(0xc4)),_0x1abbc1[_0x22f637(0xf7)][_0x22f637(0x107)](_0x22f637(0xe2))['to'](this,_0x22f637(0xd4)),_0x1abbc1;}[_0xefb756(0xed)](){const _0x4ebca6=_0xefb756;this[_0x4ebca6(0xc8)]='',this[_0x4ebca6(0xcf)]=!0x1,this[_0x4ebca6(0xc4)]=!0x0,this[_0x4ebca6(0xe9)][_0x4ebca6(0xdb)]=!0x0,this[_0x4ebca6(0x103)][_0x4ebca6(0xdb)]=!0x0,this[_0x4ebca6(0xe9)][_0x4ebca6(0xf2)]();}[_0xefb756(0xfa)](){const _0x26f710=_0xefb756,_0x436bd4=this[_0x26f710(0x106)];this[_0x26f710(0xc4)]=!0x1,this[_0x26f710(0xb7)]='',this[_0x26f710(0x100)][_0x26f710(0xd0)](),this[_0x26f710(0xc8)]&&(this[_0x26f710(0x100)][_0x26f710(0xc1)][_0x26f710(0xcb)]=_0x1ecb98(_0x436bd4,_0x26f710(0xe7)));}[_0xefb756(0xfc)](_0x55ed12){const _0x37303a=_0xefb756,_0x12c8d2=this[_0x37303a(0x106)];this[_0x37303a(0xfa)](),this[_0x37303a(0xcf)]=!0x0,this[_0x37303a(0xe4)][_0x37303a(0xf8)]=_0x55ed12||_0x1ecb98(_0x12c8d2,_0x37303a(0xbf)),this[_0x37303a(0xc8)]||(this[_0x37303a(0xe9)][_0x37303a(0xdb)]=!0x1);}}function _0x22b5(_0x120365,_0xf14957){const _0x259e1b=_0x259e();return _0x22b5=function(_0x22b547,_0x30e710){_0x22b547=_0x22b547-0xb5;let _0x3eb7d6=_0x259e1b[_0x22b547];return _0x3eb7d6;},_0x22b5(_0x120365,_0xf14957);}function _0x259e(){const _0x48294f=['clearHistory','copyButtonView','value','tab','keystrokes','label','162446WquzVz','mainAction','fieldView','isError','reset','focusFirst','set','submitPrompt','stopProcessing','fire','bindTo','add','historyGroupView','replaceContent','trim','isVisible','_focusables','div','focusTracker','insertButton','_createToolbar','ck-ai-form-content','execute','setTemplate','errorView','1233603wLStiC','focusLast','Ask\x20AI\x20to\x20improve\x20generated\x20text','ck-hidden','contentArea','replaceButton','15idKZSR','27ctqOVw','startProcessing','tryAgainEvent','high','REPLACE','3233664aCIpTd','focus','1918580nyNRMz','bindTemplate','render','_createPromptView','stopButton','text','element','finishProcessing','3402230EwRlJy','handleError','clear','Ask\x20AI\x20to\x20edit\x20or\x20generate','createCollection','promptView','items','search','toolbar','tryAgainButton','shift\x20+\x20tab','locale','delegate','ck-ai-form','chain','isEnabled','prompt','_promptHistory','2190040dUmtTV','submit','250168TbeMdI','focusCycler','insertContentBelow','_createHistoryView','AI_ERROR_FAILED','Empty\x20history','queryView','bind','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','isProcessing','listenTo'];_0x259e=function(){return _0x48294f;};return _0x259e();}
23
+ const _0xa2fded=_0x3f37;(function(_0xe44306,_0x5abec2){const _0x2dafde=_0x3f37,_0x21832f=_0xe44306();while(!![]){try{const _0x4d8db1=-parseInt(_0x2dafde(0x1dd))/0x1*(parseInt(_0x2dafde(0x1f2))/0x2)+-parseInt(_0x2dafde(0x1da))/0x3+-parseInt(_0x2dafde(0x1fb))/0x4+-parseInt(_0x2dafde(0x1cc))/0x5*(parseInt(_0x2dafde(0x1e8))/0x6)+-parseInt(_0x2dafde(0x207))/0x7+parseInt(_0x2dafde(0x1e5))/0x8+parseInt(_0x2dafde(0x1e6))/0x9;if(_0x4d8db1===_0x5abec2)break;else _0x21832f['push'](_0x21832f['shift']());}catch(_0x16c420){_0x21832f['push'](_0x21832f['shift']());}}}(_0x5517,0xc859e));function _0x5517(){const _0x2bf14c=['35YBQyqF','locale','insertContentBelow','ck-ai-form','setTemplate','promptView','listenTo','finishProcessing','stopProcessing','focus','reset','AI_ERROR_FAILED','fire','bindTemplate','524265sTdJQe','stopButton','tryAgainEvent','172507XQIvMd','focusLast','_createToolbar','tryAgainButton','isError','keystrokes','startProcessing','_createHistoryView','5873712lDSMYU','37091331ZqeyTv','set','659766VSuoAu','focusTracker','Empty\x20history','fieldView','isProcessing','Ask\x20AI\x20to\x20improve\x20generated\x20text','replaceButton','bind','prompt','submit','8gVYEiY','high','Ask\x20AI\x20to\x20edit\x20or\x20generate','add','replaceContent','items','div','trim','clear','3803260EMDSlb','isVisible','execute','submitPrompt','focusFirst','search','shift\x20+\x20tab','value','mainAction','tab','ck-hidden','_promptHistory','10146570XvleKg','_createPromptView','createCollection','bindTo','queryView','text','REPLACE','isEnabled','clearHistory','errorView','label','insertButton','focusCycler','historyGroupView','toolbar','handleError','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','chain','contentArea','render','copyButtonView','ck-ai-form-content','_focusables','delegate','element'];_0x5517=function(){return _0x2bf14c;};return _0x5517();}import{FocusTracker as _0x77668c,KeystrokeHandler as _0x33e60b}from'ckeditor5/src/utils.js';import{View as _0x6fff77,FocusCycler as _0x49bd89,createLabeledTextarea as _0x1a7fe7}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x29c646,AIFormToolbarViewMainActionLabel as _0x4040fc}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x505224}from'./aiformcontentarea.js';function _0x3f37(_0x46d745,_0x554653){const _0x551794=_0x5517();return _0x3f37=function(_0x3f37e3,_0x54db1b){_0x3f37e3=_0x3f37e3-0x1c2;let _0x2f4362=_0x551794[_0x3f37e3];return _0x2f4362;},_0x3f37(_0x46d745,_0x554653);}import{AIFormErrorView as _0x4fd977}from'./aiformerrorview.js';import{AIFormPromptView as _0x10d4a6}from'./aiformpromptview.js';import{AIHistoryListView as _0x5ac152}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x3b4451}from'./aihistorylistitemview.js';import{PromptHistory as _0x1f44ca}from'./prompthistory.js';import{getTranslation as _0x15567e}from'../../utils/common-translations.js';import{escape as _0x52c59f}from'es-toolkit/compat';export class AIFormView extends _0x6fff77{[_0xa2fded(0x1e9)];[_0xa2fded(0x1e2)];[_0xa2fded(0x1c5)];[_0xa2fded(0x215)];[_0xa2fded(0x1d1)];[_0xa2fded(0x210)];[_0xa2fded(0x1c9)];[_0xa2fded(0x213)];[_0xa2fded(0x206)];constructor(_0x384494,_0x1b20a6,_0x591e56=''){const _0x457236=_0xa2fded;super(_0x384494),this[_0x457236(0x1e7)](_0x457236(0x20e),!0x0),this[_0x457236(0x1e7)](_0x457236(0x1ec),!0x1),this[_0x457236(0x1e7)](_0x457236(0x1f0),''),this[_0x457236(0x1e7)](_0x457236(0x202),''),this[_0x457236(0x1e7)](_0x457236(0x1e1),!0x1),this[_0x457236(0x1e7)](_0x457236(0x203),_0x4040fc[_0x457236(0x20d)]),this[_0x457236(0x206)]=new _0x1f44ca(),this[_0x457236(0x210)]=new _0x4fd977(_0x384494),this[_0x457236(0x1c5)]=new _0x505224(_0x384494,_0x591e56),this[_0x457236(0x1c5)][_0x457236(0x1ef)](_0x457236(0x1ec))['to'](this),this[_0x457236(0x1c5)][_0x457236(0x1ef)](_0x457236(0x202))['to'](this),this[_0x457236(0x215)]=this[_0x457236(0x1df)](),this[_0x457236(0x215)][_0x457236(0x1ef)](_0x457236(0x203))['to'](this),this[_0x457236(0x1d1)]=this[_0x457236(0x208)](),this[_0x457236(0x1e9)]=new _0x77668c(),this[_0x457236(0x1e2)]=new _0x33e60b(),this[_0x457236(0x1c9)]=this[_0x457236(0x209)]([this[_0x457236(0x1c5)],this[_0x457236(0x1c5)][_0x457236(0x1c7)],this[_0x457236(0x215)],this[_0x457236(0x1d1)]]),this[_0x457236(0x213)]=new _0x49bd89({'focusables':this[_0x457236(0x1c9)],'focusTracker':this[_0x457236(0x1e9)],'keystrokeHandler':this[_0x457236(0x1e2)],'actions':{'focusPrevious':_0x457236(0x201),'focusNext':_0x457236(0x204)}}),this[_0x457236(0x213)][_0x457236(0x1c4)](this[_0x457236(0x1d1)][_0x457236(0x213)]),this[_0x457236(0x1d1)][_0x457236(0x20b)][_0x457236(0x1eb)][_0x457236(0x1ef)](_0x457236(0x202))['to'](this,_0x457236(0x1f0));const _0x109796=this[_0x457236(0x1d9)];this[_0x457236(0x1d0)]({'tag':_0x457236(0x1f8),'attributes':{'class':['ck',_0x457236(0x1cf),_0x1b20a6],'tabindex':'-1'},'children':[{'tag':_0x457236(0x1f8),'attributes':{'class':['ck',_0x457236(0x1c8)]},'children':[{'tag':_0x457236(0x1f8),'attributes':{'class':[_0x109796['if'](_0x457236(0x1e1),_0x457236(0x205),_0x577301=>!_0x577301)]},'children':[this[_0x457236(0x210)]]},this[_0x457236(0x1c5)],this[_0x457236(0x215)],this[_0x457236(0x1d1)]]}]});}[_0xa2fded(0x1c6)](){const _0x3b0182=_0xa2fded;super[_0x3b0182(0x1c6)](),this[_0x3b0182(0x1e9)][_0x3b0182(0x1f5)](this[_0x3b0182(0x1c5)][_0x3b0182(0x1cb)]),this[_0x3b0182(0x1e9)][_0x3b0182(0x1f5)](this[_0x3b0182(0x1c5)][_0x3b0182(0x1c7)][_0x3b0182(0x1cb)]),this[_0x3b0182(0x1e9)][_0x3b0182(0x1f5)](this[_0x3b0182(0x215)][_0x3b0182(0x1cb)]),this[_0x3b0182(0x1e9)][_0x3b0182(0x1f5)](this[_0x3b0182(0x1d1)][_0x3b0182(0x1cb)]),this[_0x3b0182(0x1e2)][_0x3b0182(0x1d2)](this[_0x3b0182(0x1cb)]);}[_0xa2fded(0x1d5)](_0x21258a=0x1){const _0x5d2b8e=_0xa2fded;-0x1===_0x21258a?this[_0x5d2b8e(0x213)][_0x5d2b8e(0x1de)]():this[_0x5d2b8e(0x213)][_0x5d2b8e(0x1ff)]();}[_0xa2fded(0x1d6)](){const _0x267d63=_0xa2fded;this[_0x267d63(0x1f0)]='',this[_0x267d63(0x202)]='',this[_0x267d63(0x1e1)]=!0x1,this[_0x267d63(0x1d1)][_0x267d63(0x1d6)](),this[_0x267d63(0x1c5)][_0x267d63(0x1fc)]=!0x1,this[_0x267d63(0x215)][_0x267d63(0x1fc)]=!0x1;}[_0xa2fded(0x208)](){const _0xccd587=_0xa2fded,_0x2f92d3=this[_0xccd587(0x1cd)],_0x163f90=new _0x10d4a6(_0x2f92d3,{'queryView':{'label':_0x15567e(_0x2f92d3,_0xccd587(0x1f4)),'creator':_0x1a7fe7,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x15567e(_0x2f92d3,_0xccd587(0x1ea)),'secondary':_0x15567e(_0x2f92d3,_0xccd587(0x1c3))}}},'filteredView':this[_0xccd587(0x1e4)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x163f90[_0xccd587(0x1ef)](_0xccd587(0x20e))['to'](this,_0xccd587(0x20e),this,_0xccd587(0x1ec),(_0x1f2976,_0x7a99d2)=>_0x1f2976&&!_0x7a99d2),this[_0xccd587(0x1d2)](_0x163f90,_0xccd587(0x1f1),(_0x424a01,_0xb0e4af)=>{const _0x1fa43b=_0xccd587;this[_0x1fa43b(0x1f0)]=_0xb0e4af;const _0x1c9966=_0x52c59f(_0xb0e4af);this[_0x1fa43b(0x1d8)](_0x1fa43b(0x1fe),_0x1c9966),_0xb0e4af[_0x1fa43b(0x1f9)]()&&this[_0x1fa43b(0x206)][_0x1fa43b(0x1f5)]({'prompt':_0x1c9966},0x0);},{'priority':_0xccd587(0x1f3)}),_0x163f90;}[_0xa2fded(0x1e4)](){const _0x41b709=_0xa2fded,_0x473427=new _0x5ac152(this[_0x41b709(0x1cd)]);return _0x473427[_0x41b709(0x214)][_0x41b709(0x1f7)][_0x41b709(0x20a)](this[_0x41b709(0x206)])['as'](_0x3b4451),_0x473427['on'](_0x41b709(0x20f),()=>{const _0x2c14d8=_0x41b709;this[_0x2c14d8(0x206)][_0x2c14d8(0x1fa)](),this[_0x2c14d8(0x1d1)][_0x2c14d8(0x200)](''),this[_0x2c14d8(0x1d1)][_0x2c14d8(0x1d5)]();}),_0x473427;}[_0xa2fded(0x1df)](){const _0x34e272=_0xa2fded,_0x48e3c8=new _0x29c646(this[_0x34e272(0x1cd)]);return _0x48e3c8[_0x34e272(0x1ee)][_0x34e272(0x1ef)](_0x34e272(0x20e))['to'](this,_0x34e272(0x20e),this,_0x34e272(0x1ec),this,_0x34e272(0x202),(_0x586eee,_0x443acf,_0x252aa6)=>_0x586eee&&!_0x443acf&&!!_0x252aa6),_0x48e3c8[_0x34e272(0x1ee)][_0x34e272(0x1ca)](_0x34e272(0x1fd))['to'](this,_0x34e272(0x1f6)),_0x48e3c8[_0x34e272(0x212)][_0x34e272(0x1ef)](_0x34e272(0x20e))['to'](this,_0x34e272(0x20e),this,_0x34e272(0x1ec),this,_0x34e272(0x202),(_0x12a66e,_0x5d16ac,_0x48b696)=>_0x12a66e&&!_0x5d16ac&&!!_0x48b696),_0x48e3c8[_0x34e272(0x212)][_0x34e272(0x1ca)](_0x34e272(0x1fd))['to'](this,_0x34e272(0x1ce)),_0x48e3c8[_0x34e272(0x1e0)][_0x34e272(0x1ef)](_0x34e272(0x20e))['to'](this,_0x34e272(0x20e),this,_0x34e272(0x1ec),(_0x234490,_0x369ff1)=>_0x234490&&!_0x369ff1),_0x48e3c8[_0x34e272(0x1e0)][_0x34e272(0x1ca)](_0x34e272(0x1fd))['to'](this,_0x34e272(0x1dc)),_0x48e3c8[_0x34e272(0x1db)][_0x34e272(0x1ef)](_0x34e272(0x20e))['to'](this,_0x34e272(0x1ec)),_0x48e3c8[_0x34e272(0x1db)][_0x34e272(0x1ca)](_0x34e272(0x1fd))['to'](this,_0x34e272(0x1d4)),_0x48e3c8;}[_0xa2fded(0x1e3)](){const _0xa64e88=_0xa2fded;this[_0xa64e88(0x202)]='',this[_0xa64e88(0x1e1)]=!0x1,this[_0xa64e88(0x1ec)]=!0x0,this[_0xa64e88(0x1c5)][_0xa64e88(0x1fc)]=!0x0,this[_0xa64e88(0x215)][_0xa64e88(0x1fc)]=!0x0,this[_0xa64e88(0x1c5)][_0xa64e88(0x1d5)]();}[_0xa2fded(0x1d3)](){const _0x4c9b96=_0xa2fded,_0xc91d24=this[_0x4c9b96(0x1cd)];this[_0x4c9b96(0x1ec)]=!0x1,this[_0x4c9b96(0x1f0)]='',this[_0x4c9b96(0x1d1)][_0x4c9b96(0x1d6)](),this[_0x4c9b96(0x202)]&&(this[_0x4c9b96(0x1d1)][_0x4c9b96(0x20b)][_0x4c9b96(0x211)]=_0x15567e(_0xc91d24,_0x4c9b96(0x1ed)));}[_0xa2fded(0x1c2)](_0x5cc6b4){const _0x420bf6=_0xa2fded,_0x52cff5=this[_0x420bf6(0x1cd)];this[_0x420bf6(0x1d3)](),this[_0x420bf6(0x1e1)]=!0x0,this[_0x420bf6(0x210)][_0x420bf6(0x20c)]=_0x5cc6b4||_0x15567e(_0x52cff5,_0x420bf6(0x1d7)),this[_0x420bf6(0x202)]||(this[_0x420bf6(0x1c5)][_0x420bf6(0x1fc)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4844(){const _0xfac0d9=['1429489SgsZuw','116340dZQaVB','5049121ifmpWS','prompt','84832RteHqU','50548743YxbSDn','children','fire','12xhZqdY','982269MWowZi','add','locale','8689528AaagOF','set','212MJHgAd','execute'];_0x4844=function(){return _0xfac0d9;};return _0x4844();}(function(_0x3e91a7,_0x4673e0){const _0x157d5b=_0x1046,_0x17a4bc=_0x3e91a7();while(!![]){try{const _0x1e9cdf=-parseInt(_0x157d5b(0x89))/0x1+parseInt(_0x157d5b(0x8d))/0x2+parseInt(_0x157d5b(0x92))/0x3+-parseInt(_0x157d5b(0x97))/0x4*(parseInt(_0x157d5b(0x8a))/0x5)+parseInt(_0x157d5b(0x91))/0x6*(-parseInt(_0x157d5b(0x8b))/0x7)+-parseInt(_0x157d5b(0x95))/0x8+parseInt(_0x157d5b(0x8e))/0x9;if(_0x1e9cdf===_0x4673e0)break;else _0x17a4bc['push'](_0x17a4bc['shift']());}catch(_0xd9a77){_0x17a4bc['push'](_0x17a4bc['shift']());}}}(_0x4844,0xc20fc));function _0x1046(_0x23ed99,_0x22ebf9){const _0x4844ed=_0x4844();return _0x1046=function(_0x104644,_0x547605){_0x104644=_0x104644-0x89;let _0x33b9df=_0x4844ed[_0x104644];return _0x33b9df;},_0x1046(_0x23ed99,_0x22ebf9);}import{ListItemView as _0x149699,ButtonView as _0x429cd5,ButtonLabelView as _0x2071e6}from'ckeditor5/src/ui.js';import{unescape as _0x38c22d}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x149699{constructor(_0x1b0e75){const _0xceb351=_0x1046;super();const _0x4d6e83=new _0x2071e6(),_0x4008d6=new _0x429cd5(this[_0xceb351(0x94)],_0x4d6e83);this[_0xceb351(0x8f)][_0xceb351(0x93)](_0x4008d6),_0x4008d6[_0xceb351(0x96)]({'label':_0x1b0e75[_0xceb351(0x8c)],'withText':!0x0}),_0x4008d6['on'](_0xceb351(0x98),()=>{const _0x1bd1f0=_0xceb351;this[_0x1bd1f0(0x90)](_0x1bd1f0(0x98),{'value':_0x38c22d(_0x1b0e75[_0x1bd1f0(0x8c)])});});}}
23
+ function _0x2843(_0x627c4e,_0x3dc110){const _0x1b223a=_0x1b22();return _0x2843=function(_0x2843e4,_0x41308b){_0x2843e4=_0x2843e4-0x157;let _0x21f3d2=_0x1b223a[_0x2843e4];return _0x21f3d2;},_0x2843(_0x627c4e,_0x3dc110);}(function(_0x2ae6e7,_0x100736){const _0x1551a1=_0x2843,_0x383c88=_0x2ae6e7();while(!![]){try{const _0x2fc6e4=-parseInt(_0x1551a1(0x163))/0x1+-parseInt(_0x1551a1(0x15a))/0x2*(parseInt(_0x1551a1(0x162))/0x3)+-parseInt(_0x1551a1(0x157))/0x4+parseInt(_0x1551a1(0x164))/0x5*(parseInt(_0x1551a1(0x15c))/0x6)+-parseInt(_0x1551a1(0x15d))/0x7*(-parseInt(_0x1551a1(0x15f))/0x8)+-parseInt(_0x1551a1(0x168))/0x9*(-parseInt(_0x1551a1(0x160))/0xa)+parseInt(_0x1551a1(0x161))/0xb*(-parseInt(_0x1551a1(0x166))/0xc);if(_0x2fc6e4===_0x100736)break;else _0x383c88['push'](_0x383c88['shift']());}catch(_0x27a087){_0x383c88['push'](_0x383c88['shift']());}}}(_0x1b22,0xc8aa8));function _0x1b22(){const _0x46d747=['add','2257456uRIFWI','prompt','children','926wOvwKR','execute','7969092BlDbzU','10703QNZMbi','locale','7160gGBmuQ','10YpUFxu','44QNUGbI','4089vhNRvN','823285iwdPcX','5OXRhet','set','3084348DyBurh','fire','10549125mVjgKS'];_0x1b22=function(){return _0x46d747;};return _0x1b22();}import{ListItemView as _0x536695,ButtonView as _0x52eb3c,ButtonLabelView as _0x6dceb0}from'ckeditor5/src/ui.js';import{unescape as _0xb9bdc4}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x536695{constructor(_0xed5504){const _0x343956=_0x2843;super();const _0x1f0d97=new _0x6dceb0(),_0x57eff0=new _0x52eb3c(this[_0x343956(0x15e)],_0x1f0d97);this[_0x343956(0x159)][_0x343956(0x169)](_0x57eff0),_0x57eff0[_0x343956(0x165)]({'label':_0xed5504[_0x343956(0x158)],'withText':!0x0}),_0x57eff0['on'](_0x343956(0x15b),()=>{const _0x1a83c6=_0x343956;this[_0x1a83c6(0x167)](_0x1a83c6(0x15b),{'value':_0xb9bdc4(_0xed5504[_0x1a83c6(0x158)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3d4d(){const _0x4fd263=['length','set','640nZxswK','filter','12075700LHsoai','clearHistoryButton','759pmxfYx','14EqiYIq','clearHistory','Prompt\x20history','_createClearHistoryButton','6958518GPbJav','5845779ngkTQx','children','historyGroupView','fire','add','locale','3922952egsrdU','items','execute','3546LfebuN','delegate','Clear','125450PYrtKY','label','17132rlQyhS'];_0x3d4d=function(){return _0x4fd263;};return _0x3d4d();}const _0x2bf652=_0x58f8;(function(_0x3fc2f8,_0x5563b2){const _0x2d1975=_0x58f8,_0x5e7179=_0x3fc2f8();while(!![]){try{const _0x3a864d=-parseInt(_0x2d1975(0x1b2))/0x1*(parseInt(_0x2d1975(0x1ba))/0x2)+-parseInt(_0x2d1975(0x1be))/0x3*(-parseInt(_0x2d1975(0x1b7))/0x4)+-parseInt(_0x2d1975(0x1b5))/0x5+parseInt(_0x2d1975(0x1c3))/0x6+-parseInt(_0x2d1975(0x1bf))/0x7*(parseInt(_0x2d1975(0x1ca))/0x8)+-parseInt(_0x2d1975(0x1c4))/0x9+parseInt(_0x2d1975(0x1bc))/0xa;if(_0x3a864d===_0x5563b2)break;else _0x5e7179['push'](_0x5e7179['shift']());}catch(_0x30d115){_0x5e7179['push'](_0x5e7179['shift']());}}}(_0x3d4d,0xa156b));import{ListView as _0x236fa3,ListItemGroupView as _0x5efd28,ButtonView as _0x6bab96}from'ckeditor5/src/ui.js';import{getTranslation as _0x5d735f}from'../../utils/common-translations.js';function _0x58f8(_0x2e2b8b,_0x2f1b62){const _0x3d4d0c=_0x3d4d();return _0x58f8=function(_0x58f852,_0x2f209d){_0x58f852=_0x58f852-0x1b1;let _0xfb4df3=_0x3d4d0c[_0x58f852];return _0xfb4df3;},_0x58f8(_0x2e2b8b,_0x2f1b62);}export class AIHistoryListView extends _0x236fa3{[_0x2bf652(0x1c6)];[_0x2bf652(0x1bd)];constructor(_0x3817c4){const _0x37c542=_0x2bf652;super(_0x3817c4),this[_0x37c542(0x1bd)]=this[_0x37c542(0x1c2)](),this[_0x37c542(0x1c6)]=new _0x5efd28(),this[_0x37c542(0x1c6)][_0x37c542(0x1c5)][_0x37c542(0x1c8)](this[_0x37c542(0x1bd)],0x1),this[_0x37c542(0x1c6)][_0x37c542(0x1b6)]=_0x5d735f(_0x3817c4,_0x37c542(0x1c1)),this[_0x37c542(0x1c6)][_0x37c542(0x1cb)][_0x37c542(0x1b3)](_0x37c542(0x1b1))['to'](this),this[_0x37c542(0x1cb)][_0x37c542(0x1c8)](this[_0x37c542(0x1c6)]);}[_0x2bf652(0x1bb)](){const _0x4c699c=_0x2bf652;let _0x1bfa86=0x0;for(const _0x32816a of this[_0x4c699c(0x1cb)])_0x1bfa86+=_0x32816a[_0x4c699c(0x1cb)][_0x4c699c(0x1b8)];return{'resultsCount':_0x1bfa86,'totalItemsCount':_0x1bfa86};}[_0x2bf652(0x1c2)](){const _0x4091e5=_0x2bf652,_0x5a813d=this[_0x4091e5(0x1c9)],_0x5cd9e5=new _0x6bab96(this[_0x4091e5(0x1c9)]);return _0x5cd9e5[_0x4091e5(0x1b9)]({'label':'('+_0x5d735f(_0x5a813d,_0x4091e5(0x1b4))+')','withText':!0x0}),_0x5cd9e5['on'](_0x4091e5(0x1b1),()=>this[_0x4091e5(0x1c7)](_0x4091e5(0x1c0))),_0x5cd9e5;}}
23
+ const _0x22a49b=_0x451a;function _0x451a(_0x385065,_0x309649){const _0x155040=_0x1550();return _0x451a=function(_0x451ac7,_0x4da79f){_0x451ac7=_0x451ac7-0xb3;let _0x49691a=_0x155040[_0x451ac7];return _0x49691a;},_0x451a(_0x385065,_0x309649);}(function(_0x333e15,_0x4aa465){const _0x8a5e62=_0x451a,_0x25cecf=_0x333e15();while(!![]){try{const _0x494eaa=-parseInt(_0x8a5e62(0xcb))/0x1*(parseInt(_0x8a5e62(0xc0))/0x2)+parseInt(_0x8a5e62(0xb7))/0x3*(parseInt(_0x8a5e62(0xc3))/0x4)+-parseInt(_0x8a5e62(0xba))/0x5+parseInt(_0x8a5e62(0xc5))/0x6+-parseInt(_0x8a5e62(0xca))/0x7*(-parseInt(_0x8a5e62(0xc4))/0x8)+parseInt(_0x8a5e62(0xc9))/0x9+-parseInt(_0x8a5e62(0xb8))/0xa*(parseInt(_0x8a5e62(0xc8))/0xb);if(_0x494eaa===_0x4aa465)break;else _0x25cecf['push'](_0x25cecf['shift']());}catch(_0x5257e9){_0x25cecf['push'](_0x25cecf['shift']());}}}(_0x1550,0x6f1fd));import{ListView as _0x2caa07,ListItemGroupView as _0xef87f8,ButtonView as _0x52500d}from'ckeditor5/src/ui.js';function _0x1550(){const _0x3aa836=['label','clearHistory','set','_createClearHistoryButton','delegate','15cpaXWh','6388450hSjphK','execute','602385AdGVGW','Clear','clearHistoryButton','fire','children','length','50354JRvlUd','filter','Prompt\x20history','672172glGIyi','40WUwcJP','2800926TMTbCx','add','items','11pzxmNd','459828GSWIKI','609602ghLCHq','23oHfjpi','historyGroupView','locale'];_0x1550=function(){return _0x3aa836;};return _0x1550();}import{getTranslation as _0x257153}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x2caa07{[_0x22a49b(0xcc)];[_0x22a49b(0xbc)];constructor(_0x18abd5){const _0x2204c0=_0x22a49b;super(_0x18abd5),this[_0x2204c0(0xbc)]=this[_0x2204c0(0xb5)](),this[_0x2204c0(0xcc)]=new _0xef87f8(),this[_0x2204c0(0xcc)][_0x2204c0(0xbe)][_0x2204c0(0xc6)](this[_0x2204c0(0xbc)],0x1),this[_0x2204c0(0xcc)][_0x2204c0(0xce)]=_0x257153(_0x18abd5,_0x2204c0(0xc2)),this[_0x2204c0(0xcc)][_0x2204c0(0xc7)][_0x2204c0(0xb6)](_0x2204c0(0xb9))['to'](this),this[_0x2204c0(0xc7)][_0x2204c0(0xc6)](this[_0x2204c0(0xcc)]);}[_0x22a49b(0xc1)](){const _0x2da544=_0x22a49b;let _0x4cff38=0x0;for(const _0x267839 of this[_0x2da544(0xc7)])_0x4cff38+=_0x267839[_0x2da544(0xc7)][_0x2da544(0xbf)];return{'resultsCount':_0x4cff38,'totalItemsCount':_0x4cff38};}[_0x22a49b(0xb5)](){const _0x2d850b=_0x22a49b,_0xc6b71a=this[_0x2d850b(0xcd)],_0x46d96d=new _0x52500d(this[_0x2d850b(0xcd)]);return _0x46d96d[_0x2d850b(0xb4)]({'label':'('+_0x257153(_0xc6b71a,_0x2d850b(0xbb))+')','withText':!0x0}),_0x46d96d['on'](_0x2d850b(0xb9),()=>this[_0x2d850b(0xbd)](_0x2d850b(0xb3))),_0x46d96d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb3f8dc=_0x502b;(function(_0x3883fd,_0xde08aa){const _0x242237=_0x502b,_0x1ce3df=_0x3883fd();while(!![]){try{const _0x46228d=-parseInt(_0x242237(0x120))/0x1+parseInt(_0x242237(0x119))/0x2+-parseInt(_0x242237(0x11d))/0x3*(parseInt(_0x242237(0x115))/0x4)+-parseInt(_0x242237(0x117))/0x5+-parseInt(_0x242237(0x116))/0x6+parseInt(_0x242237(0x121))/0x7*(-parseInt(_0x242237(0x113))/0x8)+-parseInt(_0x242237(0x122))/0x9*(-parseInt(_0x242237(0x118))/0xa);if(_0x46228d===_0xde08aa)break;else _0x1ce3df['push'](_0x1ce3df['shift']());}catch(_0x12b5aa){_0x1ce3df['push'](_0x1ce3df['shift']());}}}(_0x49cd,0x38f18));function _0x502b(_0x1ade32,_0x3c321b){const _0x49cd70=_0x49cd();return _0x502b=function(_0x502b2c,_0x552cea){_0x502b2c=_0x502b2c-0x112;let _0x310e6d=_0x49cd70[_0x502b2c];return _0x310e6d;},_0x502b(_0x1ade32,_0x3c321b);}import{Collection as _0x44dc25}from'ckeditor5/src/utils.js';const So=_0xb3f8dc(0x127);function _0x49cd(){const _0x41633f=['toLowerCase','getItem','map','760BDWFQN','addMany','27124kvaanI','2492100yuvzNi','2178170aiRCYU','10HdCQaR','327250rfVXVH','trim','remove','_saveToSessionStorage','123znSJon','setItem','length','283354aHvxOk','20545wDpysl','15847191UjxVRM','stringify','_loadFromSessionStorage','add','parse','CKEditor/AIFormView/PromptHistory','prompt','last'];_0x49cd=function(){return _0x41633f;};return _0x49cd();}export class PromptHistory extends _0x44dc25{constructor(){const _0x4ca297=_0xb3f8dc;super(),this[_0x4ca297(0x124)](),this['on'](_0x4ca297(0x125),(_0x42ad6f,_0xa942d3)=>{const _0x52b32c=_0x4ca297,_0xdf3fb7=fo(_0xa942d3[_0x52b32c(0x128)]);for(const _0x2a55f5 of this)if(_0x2a55f5!=_0xa942d3&&fo(_0x2a55f5[_0x52b32c(0x128)])===_0xdf3fb7){this[_0x52b32c(0x11b)](_0x2a55f5);break;}this[_0x52b32c(0x11f)]>0x14&&this[_0x52b32c(0x11b)](this[_0x52b32c(0x129)]),this[_0x52b32c(0x11c)]();}),this['on'](_0x4ca297(0x11b),()=>{const _0x5c3a8b=_0x4ca297;this[_0x5c3a8b(0x11c)]();});}[_0xb3f8dc(0x124)](){const _0x22b52b=_0xb3f8dc,_0x13ddba=sessionStorage[_0x22b52b(0x12b)](So)||'[]';this[_0x22b52b(0x114)](JSON[_0x22b52b(0x126)](_0x13ddba));}[_0xb3f8dc(0x11c)](){const _0x4aed64=_0xb3f8dc;sessionStorage[_0x4aed64(0x11e)](So,JSON[_0x4aed64(0x123)](this[_0x4aed64(0x112)](_0x499c62=>_0x499c62)));}}function fo(_0x484a8f){const _0x450750=_0xb3f8dc;return _0x484a8f[_0x450750(0x12a)]()[_0x450750(0x11a)]();}
23
+ function _0x1541(_0x4d210e,_0x42f5fa){const _0x3a4ca0=_0x3a4c();return _0x1541=function(_0x154147,_0x48fe42){_0x154147=_0x154147-0x1d0;let _0x4a2b15=_0x3a4ca0[_0x154147];return _0x4a2b15;},_0x1541(_0x4d210e,_0x42f5fa);}const _0x189017=_0x1541;(function(_0x475195,_0x18ab41){const _0x5cc2da=_0x1541,_0x282fd6=_0x475195();while(!![]){try{const _0x58960a=parseInt(_0x5cc2da(0x1d1))/0x1+-parseInt(_0x5cc2da(0x1df))/0x2+-parseInt(_0x5cc2da(0x1db))/0x3+-parseInt(_0x5cc2da(0x1e0))/0x4*(-parseInt(_0x5cc2da(0x1d3))/0x5)+parseInt(_0x5cc2da(0x1e3))/0x6+parseInt(_0x5cc2da(0x1d8))/0x7*(-parseInt(_0x5cc2da(0x1d5))/0x8)+parseInt(_0x5cc2da(0x1d9))/0x9;if(_0x58960a===_0x18ab41)break;else _0x282fd6['push'](_0x282fd6['shift']());}catch(_0x5c0d08){_0x282fd6['push'](_0x282fd6['shift']());}}}(_0x3a4c,0x49039));import{Collection as _0xdfaecf}from'ckeditor5/src/utils.js';const So=_0x189017(0x1e6);function _0x3a4c(){const _0x220491=['trim','prompt','14144KthiMv','getItem','119775CRckoh','remove','680728cObWrK','_loadFromSessionStorage','map','7ccwQZv','4490325OAqruQ','last','1694682gbnBZF','length','toLowerCase','addMany','907584wbdDdC','92xPaNYp','parse','_saveToSessionStorage','2032848yoYbyI','stringify','setItem','CKEditor/AIFormView/PromptHistory','add'];_0x3a4c=function(){return _0x220491;};return _0x3a4c();}export class PromptHistory extends _0xdfaecf{constructor(){const _0x21773c=_0x189017;super(),this[_0x21773c(0x1d6)](),this['on'](_0x21773c(0x1e7),(_0x3e51dc,_0xdc33a)=>{const _0x58d140=_0x21773c,_0x21bba0=fo(_0xdc33a[_0x58d140(0x1d0)]);for(const _0x4d1f8d of this)if(_0x4d1f8d!=_0xdc33a&&fo(_0x4d1f8d[_0x58d140(0x1d0)])===_0x21bba0){this[_0x58d140(0x1d4)](_0x4d1f8d);break;}this[_0x58d140(0x1dc)]>0x14&&this[_0x58d140(0x1d4)](this[_0x58d140(0x1da)]),this[_0x58d140(0x1e2)]();}),this['on'](_0x21773c(0x1d4),()=>{const _0x4e8c3e=_0x21773c;this[_0x4e8c3e(0x1e2)]();});}[_0x189017(0x1d6)](){const _0x4a0d2c=_0x189017,_0x38cd78=sessionStorage[_0x4a0d2c(0x1d2)](So)||'[]';this[_0x4a0d2c(0x1de)](JSON[_0x4a0d2c(0x1e1)](_0x38cd78));}[_0x189017(0x1e2)](){const _0x167919=_0x189017;sessionStorage[_0x167919(0x1e5)](So,JSON[_0x167919(0x1e4)](this[_0x167919(0x1d7)](_0x4d7372=>_0x4d7372)));}}function fo(_0xb29e97){const _0x1003ab=_0x189017;return _0xb29e97[_0x1003ab(0x1dd)]()[_0x1003ab(0x1e8)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x440258=_0x45ac;(function(_0x665fd5,_0x551924){const _0x38fee5=_0x45ac,_0x2f3d5d=_0x665fd5();while(!![]){try{const _0x189c3a=-parseInt(_0x38fee5(0x1e6))/0x1*(-parseInt(_0x38fee5(0x1f5))/0x2)+parseInt(_0x38fee5(0x1e8))/0x3+-parseInt(_0x38fee5(0x1f7))/0x4+-parseInt(_0x38fee5(0x1da))/0x5*(-parseInt(_0x38fee5(0x1df))/0x6)+-parseInt(_0x38fee5(0x1ea))/0x7+-parseInt(_0x38fee5(0x1e0))/0x8*(parseInt(_0x38fee5(0x1ee))/0x9)+-parseInt(_0x38fee5(0x1eb))/0xa;if(_0x189c3a===_0x551924)break;else _0x2f3d5d['push'](_0x2f3d5d['shift']());}catch(_0x4f142b){_0x2f3d5d['push'](_0x2f3d5d['shift']());}}}(_0xfa73,0x4fdec));import{Command as _0x5c2856}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x2b2ebb}from'../aiassistantui.js';function _0xfa73(){const _0x285531=['54118TUQOkO','includes','58352hSqCml','change:_hasContext','custom','execute','_hasContext','change:isEnabled','getItems','document','enabledCommandsIds','isEmpty','name','hasContent','plugins','model','get','3160160XlFlxd','isEnabled','from','isCollapsed','selection','6lYojvr','168oJUdWa','_commandDefinitions','add','editor','getFirstRange','getRanges','1CcAEus','element','1682418pImImp','showUI','1453557qpWmVH','6457090JTEqEZ','config','getSelectedBlocks','10629pvrTKx','requiresContent','refresh','ai.assistant.disabledElements','length','set','values'];_0xfa73=function(){return _0x285531;};return _0xfa73();}function _0x45ac(_0x16bfd9,_0x22b519){const _0xfa7301=_0xfa73();return _0x45ac=function(_0x45aced,_0x1f8233){_0x45aced=_0x45aced-0x1da;let _0x2e1c6c=_0xfa7301[_0x45aced];return _0x2e1c6c;},_0x45ac(_0x16bfd9,_0x22b519);}export class ShowAIAssistantCommand extends _0x5c2856{[_0x440258(0x1e1)];constructor(_0x512715,_0x5da5a8){const _0x4fead7=_0x440258;super(_0x512715),this[_0x4fead7(0x1e1)]=_0x5da5a8,this[_0x4fead7(0x1f3)](_0x4fead7(0x1ff),[]),this['on'](_0x4fead7(0x1f8),(_0x42fc7b,_0x30740f,_0x110d60)=>{const _0x43a469=_0x4fead7;this[_0x43a469(0x1db)]&&(this[_0x43a469(0x1ff)]=cs(this[_0x43a469(0x1e1)],_0x110d60));}),this[_0x4fead7(0x1f3)](_0x4fead7(0x1fb),!0x1),this['on'](_0x4fead7(0x1fc),(_0x5d8295,_0x482bd0,_0x426d94)=>{const _0x526a96=_0x4fead7;this[_0x526a96(0x1ff)]=_0x426d94?cs(this[_0x526a96(0x1e1)],this[_0x526a96(0x1fb)]):[];});}[_0x440258(0x1f0)](){const _0xfb0383=_0x440258,_0x3a0859=this[_0xfb0383(0x1e3)][_0xfb0383(0x204)];this[_0xfb0383(0x1fb)]=function(_0x574d51){const _0x50a32e=_0xfb0383,_0x20de14=_0x574d51[_0x50a32e(0x1fe)][_0x50a32e(0x1de)];return _0x20de14[_0x50a32e(0x1dd)]?0x0!==[..._0x20de14[_0x50a32e(0x1ed)]()][_0x50a32e(0x1f2)]&&![..._0x20de14[_0x50a32e(0x1ed)]()][0x0][_0x50a32e(0x200)]:!!_0x574d51[_0x50a32e(0x202)](_0x20de14[_0x50a32e(0x1e4)]());}(_0x3a0859);const _0x25b2cb=_0x3a0859[_0xfb0383(0x1fe)][_0xfb0383(0x1de)],_0x3ee10e=this[_0xfb0383(0x1e3)][_0xfb0383(0x1ec)][_0xfb0383(0x205)](_0xfb0383(0x1f1));for(const _0x2dca5f of _0x25b2cb[_0xfb0383(0x1e5)]())for(const _0x953980 of _0x2dca5f[_0xfb0383(0x1fd)]())if(_0x953980['is'](_0xfb0383(0x1e7))&&_0x3ee10e[_0xfb0383(0x1f6)](_0x953980[_0xfb0383(0x201)]))return void(this[_0xfb0383(0x1db)]=!0x1);this[_0xfb0383(0x1db)]=!0x0;}[_0x440258(0x1fa)](_0x5eba3f='',_0x358548='',_0x531f08=_0x440258(0x1f9)){const _0x1f186a=_0x440258;this[_0x1f186a(0x1e3)][_0x1f186a(0x203)][_0x1f186a(0x205)](_0x2b2ebb)[_0x1f186a(0x1e9)](_0x5eba3f,_0x358548,_0x531f08);}}function cs(_0x5d0d6f,_0x870d9a){const _0x12608e=_0x440258,_0x336555=new Set();for(const _0x5f3b66 of _0x5d0d6f[_0x12608e(0x1f4)]())(_0x870d9a||!0x1===_0x5f3b66[_0x12608e(0x1ef)])&&_0x336555[_0x12608e(0x1e2)](_0x5f3b66['id']);return Array[_0x12608e(0x1dc)](_0x336555);}
23
+ const _0x41ad37=_0x5a65;(function(_0x39ddf2,_0xff6c8){const _0x58ea32=_0x5a65,_0x261147=_0x39ddf2();while(!![]){try{const _0x561681=-parseInt(_0x58ea32(0x15e))/0x1*(-parseInt(_0x58ea32(0x151))/0x2)+-parseInt(_0x58ea32(0x153))/0x3*(parseInt(_0x58ea32(0x166))/0x4)+parseInt(_0x58ea32(0x168))/0x5+-parseInt(_0x58ea32(0x16f))/0x6+parseInt(_0x58ea32(0x15d))/0x7+-parseInt(_0x58ea32(0x174))/0x8+parseInt(_0x58ea32(0x15b))/0x9*(parseInt(_0x58ea32(0x154))/0xa);if(_0x561681===_0xff6c8)break;else _0x261147['push'](_0x261147['shift']());}catch(_0x9fd926){_0x261147['push'](_0x261147['shift']());}}}(_0x21fa,0x341aa));function _0x5a65(_0x34cb03,_0x99b365){const _0x21fa04=_0x21fa();return _0x5a65=function(_0x5a6558,_0x587f75){_0x5a6558=_0x5a6558-0x150;let _0x113e28=_0x21fa04[_0x5a6558];return _0x113e28;},_0x5a65(_0x34cb03,_0x99b365);}import{Command as _0x58b2d1}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x18c8f2}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x58b2d1{[_0x41ad37(0x178)];constructor(_0xd58930,_0x289365){const _0x39392c=_0x41ad37;super(_0xd58930),this[_0x39392c(0x178)]=_0x289365,this[_0x39392c(0x170)](_0x39392c(0x150),[]),this['on'](_0x39392c(0x176),(_0x3a1487,_0x59f5e6,_0x75e6d8)=>{const _0x2e8279=_0x39392c;this[_0x2e8279(0x173)]&&(this[_0x2e8279(0x150)]=ns(this[_0x2e8279(0x178)],_0x75e6d8));}),this[_0x39392c(0x170)](_0x39392c(0x16a),!0x1),this['on'](_0x39392c(0x161),(_0x119d5c,_0x23e66c,_0x1b8c1e)=>{const _0x50eb77=_0x39392c;this[_0x50eb77(0x150)]=_0x1b8c1e?ns(this[_0x50eb77(0x178)],this[_0x50eb77(0x16a)]):[];});}[_0x41ad37(0x164)](){const _0x36b3b8=_0x41ad37,_0x16b271=this[_0x36b3b8(0x172)][_0x36b3b8(0x162)];this[_0x36b3b8(0x16a)]=function(_0x1c0866){const _0x390627=_0x36b3b8,_0x42a232=_0x1c0866[_0x390627(0x16c)][_0x390627(0x152)];return _0x42a232[_0x390627(0x169)]?0x0!==[..._0x42a232[_0x390627(0x175)]()][_0x390627(0x16b)]&&![..._0x42a232[_0x390627(0x175)]()][0x0][_0x390627(0x165)]:!!_0x1c0866[_0x390627(0x177)](_0x42a232[_0x390627(0x15f)]());}(_0x16b271);const _0x21598c=_0x16b271[_0x36b3b8(0x16c)][_0x36b3b8(0x152)],_0x6f4aba=this[_0x36b3b8(0x172)][_0x36b3b8(0x15a)][_0x36b3b8(0x15c)](_0x36b3b8(0x17a));for(const _0x5602f9 of _0x21598c[_0x36b3b8(0x156)]())for(const _0x5f10c8 of _0x5602f9[_0x36b3b8(0x159)]())if(_0x5f10c8['is'](_0x36b3b8(0x163))&&_0x6f4aba[_0x36b3b8(0x17b)](_0x5f10c8[_0x36b3b8(0x16d)]))return void(this[_0x36b3b8(0x173)]=!0x1);this[_0x36b3b8(0x173)]=!0x0;}[_0x41ad37(0x16e)](_0x158d55='',_0xc1a720='',_0x286c9f=_0x41ad37(0x160)){const _0x3e6484=_0x41ad37;this[_0x3e6484(0x172)][_0x3e6484(0x171)][_0x3e6484(0x15c)](_0x18c8f2)[_0x3e6484(0x158)](_0x158d55,_0xc1a720,_0x286c9f);}}function ns(_0x5c70d7,_0x58fdcf){const _0x5e873e=_0x41ad37,_0x3e67b9=new Set();for(const _0x408337 of _0x5c70d7[_0x5e873e(0x157)]())(_0x58fdcf||!0x1===_0x408337[_0x5e873e(0x155)])&&_0x3e67b9[_0x5e873e(0x167)](_0x408337['id']);return Array[_0x5e873e(0x179)](_0x3e67b9);}function _0x21fa(){const _0x4089d9=['2372454jQnYJS','58549LxnJwb','getFirstRange','custom','change:isEnabled','model','element','refresh','isEmpty','1535288jGqVoG','add','1144385GofLJt','isCollapsed','_hasContext','length','document','name','execute','1639158sIDiWo','set','plugins','editor','isEnabled','393288YURORt','getSelectedBlocks','change:_hasContext','hasContent','_commandDefinitions','from','ai.assistant.disabledElements','includes','enabledCommandsIds','2GkdffQ','selection','3EzYczN','1466230XlYEAC','requiresContent','getRanges','values','showUI','getItems','config','18sBJdyb','get'];_0x21fa=function(){return _0x4089d9;};return _0x21fa();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x338301=_0x3857;(function(_0x3502c0,_0x2b1d1a){const _0x20d93b=_0x3857,_0x5c4155=_0x3502c0();while(!![]){try{const _0x2d7675=-parseInt(_0x20d93b(0x1d1))/0x1*(-parseInt(_0x20d93b(0x1aa))/0x2)+parseInt(_0x20d93b(0x1ca))/0x3*(-parseInt(_0x20d93b(0x1d8))/0x4)+parseInt(_0x20d93b(0x1d5))/0x5+parseInt(_0x20d93b(0x1d2))/0x6*(-parseInt(_0x20d93b(0x193))/0x7)+parseInt(_0x20d93b(0x1bc))/0x8+parseInt(_0x20d93b(0x1c0))/0x9+parseInt(_0x20d93b(0x1dc))/0xa*(-parseInt(_0x20d93b(0x1b6))/0xb);if(_0x2d7675===_0x2b1d1a)break;else _0x5c4155['push'](_0x5c4155['shift']());}catch(_0x284cde){_0x5c4155['push'](_0x5c4155['shift']());}}}(_0x431d,0xc6a39));function _0x3857(_0x1dcb10,_0x3cebc7){const _0x431d9c=_0x431d();return _0x3857=function(_0x3857d7,_0x194a96){_0x3857d7=_0x3857d7-0x181;let _0x44aead=_0x431d9c[_0x3857d7];return _0x44aead;},_0x3857(_0x1dcb10,_0x3cebc7);}import{ContextPlugin as _0x2c1daf}from'ckeditor5/src/core.js';import{AIConnector as _0x54f72f}from'../aicore/aiconnector.js';import{AIEditing as _0x21ccac}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x4fe881,AIBalloonView as _0x190371}from'./ui/aiballoonview.js';function _0x431d(){const _0x6fbcd2=['config','ai.availableReplyActions','_setupMarkerRemovalListener','showRotator','Dialog','ai-selection:','_calculateOptimalTopPosition','markers','hide','1232082WxnGlK','listenTo','rootName','content','length','trackChanges','getChangedMarkers','9853KKppLY','102fhmebM','value','balloonView','5941500sMYHjy','setupRotator','_config','4fYWyAQ','root','showFakeVisualSelection','_cleanupMarkerRemovalListener','1190580JVxQGV','off','label','getIntersection','width','getBoundingRect','iconView','view','start','end','isOfficialPlugin','index','bottom','hideFakeVisualSelection','AIBalloon','bind','aiBalloon','icon','updateContent','fire','$graveyard','_updateBalloon','delegate','max','\x20ai-balloon-rotator','updatePosition','filter','startsWith','ai-balloon-','plugins','AI_ACTIONS_SELECTION_REMOVED_ERROR','getMarkersGroup','mainView','dialogClosed','round','270109poZeoA','_setupVisualSelection','_getSelectionElements','headerView','editing','isEqual','AIEditing','title','isPremiumPlugin','showBlockingError','_isUpdatingMarkers','document','close','differ','_pendingRenderCallback','isTrackChangesOn','ranges','stopListening','ai-balloon-selection','requires','getVisible','left','context','6AvSzgj','pluginName','get','selectionRemoved','ai-balloon','show','model','_calculateDialogPosition','open','_showDialog','top','render','154pnCOJU','window','commands','locale','ai-selection','isOpen','10909136uYXExX','once','change','height','8690481zKwtXT'];_0x431d=function(){return _0x6fbcd2;};return _0x431d();}import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x3b711d}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x33ddfb,Rect as _0x560d9e,scrollViewportToShowTarget as _0xaedae9}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x25e598}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x82e048}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x2427b7}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x4fe881,_0x338301(0x191),_0x338301(0x1ad)];const x=0xa;export class AIBalloon extends _0x2c1daf{static get[_0x338301(0x1a6)](){return[_0x54f72f,_0x21ccac];}static get[_0x338301(0x1ab)](){const _0x407952=_0x338301;return _0x407952(0x1ea);}static get[_0x338301(0x1e6)](){return!0x0;}static get[_0x338301(0x19b)](){return!0x0;}[_0x338301(0x1bb)]=!0x1;[_0x338301(0x1d7)];[_0x338301(0x19d)]=!0x1;[_0x338301(0x1a1)]=null;[_0x338301(0x1b2)](_0x8953d4){const _0x19f017=_0x338301,_0x140dea=_0x25e598(this[_0x19f017(0x1a9)]);if(this[_0x19f017(0x1d7)]=_0x8953d4,this[_0x19f017(0x1bb)])return void this[_0x19f017(0x185)](_0x8953d4);const _0x344c8d=this[_0x19f017(0x1a9)][_0x19f017(0x1c1)][_0x19f017(0x1ac)](_0x19f017(0x1c2))||[..._0x82e048],_0x3b3a7d=_0x140dea?.[_0x19f017(0x1b8)][_0x19f017(0x1ac)](_0x19f017(0x1cf)),_0x1a8805=_0x3b3a7d?.[_0x19f017(0x1d3)];this[_0x19f017(0x1d4)]=new _0x190371(_0x140dea[_0x19f017(0x1b9)],_0x8953d4,_0x344c8d,!!_0x1a8805),this[_0x19f017(0x1d4)][_0x19f017(0x186)](..._0x4fe881)['to'](this),_0x3b3a7d&&this[_0x19f017(0x1d4)][_0x19f017(0x1eb)](_0x19f017(0x1a2))['to'](_0x3b3a7d,_0x19f017(0x1d3)),this[_0x19f017(0x1b3)](_0x8953d4);}[_0x338301(0x19f)](){const _0x274141=_0x338301;_0x25e598(this[_0x274141(0x1a9)])[_0x274141(0x18d)][_0x274141(0x1ac)](_0x274141(0x1c5))[_0x274141(0x1c9)]();}[_0x338301(0x185)](_0x2efa97){const _0x25fd57=_0x338301,_0x5d97d3=_0x25e598(this[_0x25fd57(0x1a9)]),_0x478cc3=_0x5d97d3[_0x25fd57(0x18d)][_0x25fd57(0x1ac)](_0x25fd57(0x1c5));this[_0x25fd57(0x1a1)]&&(_0x5d97d3[_0x25fd57(0x197)][_0x25fd57(0x1e3)][_0x25fd57(0x1dd)](_0x25fd57(0x1b5),this[_0x25fd57(0x1a1)]),this[_0x25fd57(0x1a1)]=null),this[_0x25fd57(0x19d)]=!0x0,_0x478cc3[_0x25fd57(0x1e3)]?.[_0x25fd57(0x196)]&&(_0x478cc3[_0x25fd57(0x1e3)][_0x25fd57(0x196)][_0x25fd57(0x1de)]=_0x2efa97[_0x25fd57(0x19a)],_0x478cc3[_0x25fd57(0x1e3)][_0x25fd57(0x196)][_0x25fd57(0x1e2)]&&_0x2efa97[_0x25fd57(0x181)]&&(_0x478cc3[_0x25fd57(0x1e3)][_0x25fd57(0x196)][_0x25fd57(0x1e2)][_0x25fd57(0x1cd)]=_0x2efa97[_0x25fd57(0x181)])),this[_0x25fd57(0x1d4)][_0x25fd57(0x182)](_0x2efa97[_0x25fd57(0x190)]),this[_0x25fd57(0x194)](_0x2efa97[_0x25fd57(0x1a3)],_0x2efa97[_0x25fd57(0x1e7)]),this[_0x25fd57(0x1a1)]=()=>{const _0xa418fe=_0x25fd57;this[_0xa418fe(0x19d)]=!0x1,this[_0xa418fe(0x1a1)]=null,_0x478cc3[_0xa418fe(0x1e3)]&&_0x478cc3[_0xa418fe(0x1e3)][_0xa418fe(0x189)]();},_0x5d97d3[_0x25fd57(0x197)][_0x25fd57(0x1e3)][_0x25fd57(0x1bd)](_0x25fd57(0x1b5),this[_0x25fd57(0x1a1)]);}[_0x338301(0x194)](_0x46fe4a,_0x5057e1){const _0x42e201=_0x338301;this[_0x42e201(0x1a9)][_0x42e201(0x18d)][_0x42e201(0x1ac)](_0x21ccac)[_0x42e201(0x1da)](_0x46fe4a,_0x42e201(0x18c)+_0x5057e1,!0x0,!0x0);}[_0x338301(0x1b3)](_0x8b49e5){const _0x27e2e0=_0x338301,_0x3362ee=_0x25e598(this[_0x27e2e0(0x1a9)]);this[_0x27e2e0(0x194)](_0x8b49e5[_0x27e2e0(0x1a3)],_0x8b49e5[_0x27e2e0(0x1e7)]);const _0x577118=this[_0x27e2e0(0x195)]();_0x577118&&_0x577118[0x0]&&_0xaedae9({'target':_0x577118[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x3362ee[_0x27e2e0(0x18d)][_0x27e2e0(0x1ac)](_0x27e2e0(0x1c5))[_0x27e2e0(0x1af)]({'title':_0x8b49e5[_0x27e2e0(0x19a)],'icon':_0x8b49e5[_0x27e2e0(0x181)],'hasCloseButton':!0x0,'id':_0x27e2e0(0x1ec),'position':this[_0x27e2e0(0x1b1)][_0x27e2e0(0x1eb)](this),'className':_0x27e2e0(0x1ae)+(_0x8b49e5[_0x27e2e0(0x1c4)]?_0x27e2e0(0x188):''),'content':this[_0x27e2e0(0x1d4)],'onShow':_0x20023d=>{const _0x9c6afe=_0x27e2e0;_0x8b49e5[_0x9c6afe(0x1c4)]&&this[_0x9c6afe(0x1d4)][_0x9c6afe(0x1d6)](_0x20023d),this[_0x9c6afe(0x1c3)](),this[_0x9c6afe(0x1bb)]=!0x0;},'onHide':()=>{const _0xf6b6cf=_0x27e2e0;this[_0xf6b6cf(0x1a9)][_0xf6b6cf(0x18d)][_0xf6b6cf(0x1ac)](_0xf6b6cf(0x199))[_0xf6b6cf(0x1e9)](_0xf6b6cf(0x18c)+this[_0xf6b6cf(0x1d7)][_0xf6b6cf(0x1e7)]),this[_0xf6b6cf(0x1db)](),this[_0xf6b6cf(0x183)](_0xf6b6cf(0x191)),this[_0xf6b6cf(0x1bb)]=!0x1;}});}[_0x338301(0x1b1)](_0x4e6242,_0x287282){const _0x27d948=_0x338301;if(!_0x287282)return null;const _0x55e216=this[_0x27d948(0x195)]();if(!_0x55e216||0x0===_0x55e216[_0x27d948(0x1ce)])return{'left':Math[_0x27d948(0x192)](_0x287282[_0x27d948(0x1a8)]+_0x287282[_0x27d948(0x1e0)]/0x2-_0x4e6242[_0x27d948(0x1e0)]/0x2),'top':Math[_0x27d948(0x192)](_0x287282[_0x27d948(0x1b4)]+_0x287282[_0x27d948(0x1bf)]/0x2-_0x4e6242[_0x27d948(0x1bf)]/0x2)};const _0x383bcd=Math[_0x27d948(0x192)](_0x287282[_0x27d948(0x1a8)]+_0x287282[_0x27d948(0x1e0)]/0x2-_0x4e6242[_0x27d948(0x1e0)]/0x2),_0x560b4c=new _0x560d9e(_0x55e216[0x0]),_0x2d3379=new _0x560d9e(_0x55e216[_0x55e216[_0x27d948(0x1ce)]-0x1]),_0x555d9e=_0x4e6242[_0x27d948(0x1bf)],_0x405db3=this[_0x27d948(0x1d7)][_0x27d948(0x1c4)]?0x8:0x0;return{'left':_0x383bcd,'top':this[_0x27d948(0x1c7)](_0x560b4c,_0x2d3379,_0x555d9e,_0x405db3,_0x287282)};}[_0x338301(0x1c7)](_0x3bfb5f,_0x285849,_0x10d16b,_0x331f77=0x0,_0x10653c){const _0x5d613a=_0x338301,_0x147545=_0x10d16b+_0x331f77,_0x58560f=new _0x560d9e(_0x33ddfb[_0x5d613a(0x1b7)]),_0x195a4f=[_0x3bfb5f[_0x5d613a(0x1a7)](),_0x285849[_0x5d613a(0x1a7)]()][_0x5d613a(0x18a)](_0xc0c419=>_0xc0c419),_0x3750b9=_0x560d9e[_0x5d613a(0x1e1)](_0x195a4f);if(!_0x3750b9)return Math[_0x5d613a(0x192)](_0x10653c[_0x5d613a(0x1b4)]+_0x10653c[_0x5d613a(0x1bf)]/0x2);const _0x11a2a9=_0x58560f[_0x5d613a(0x1df)](_0x3750b9);if(!_0x11a2a9)return Math[_0x5d613a(0x192)](_0x10653c[_0x5d613a(0x1b4)]+_0x10653c[_0x5d613a(0x1bf)]/0x2);const _0xb46a50=_0x10653c[_0x5d613a(0x1a7)](),_0x428cb4=_0xb46a50&&_0x3750b9[_0x5d613a(0x1bf)]>_0xb46a50[_0x5d613a(0x1bf)],_0x344969=_0x11a2a9[_0x5d613a(0x1b4)],_0x46e87a=_0x11a2a9[_0x5d613a(0x1e8)];if(_0x428cb4){const _0x5eff9b=(_0xb46a50||_0x58560f)[_0x5d613a(0x1bf)]/0x2-_0x147545/0x2,_0x6f303c=_0x344969-x-_0x10653c[_0x5d613a(0x1b4)],_0x2dd7b0=_0x10653c[_0x5d613a(0x1e8)]-_0x46e87a-x;return _0x6f303c>=_0x147545?Math[_0x5d613a(0x187)](x,_0x344969-_0x147545-x):_0x2dd7b0>=_0x147545?_0x46e87a+x:Math[_0x5d613a(0x187)](x,_0x5eff9b);}const _0x4c2df6=_0x344969-_0x147545,_0x158a4c=_0x10653c[_0x5d613a(0x1e8)]-_0x46e87a-x,_0x3e5b1=_0x344969-x-_0x10653c[_0x5d613a(0x1b4)];let _0x46500f;if(_0x158a4c>=_0x147545)_0x46500f=_0x46e87a+x;else{if(_0x3e5b1>=_0x147545)_0x46500f=_0x4c2df6-x;else _0x46500f=_0x344969+_0x3750b9[_0x5d613a(0x1bf)]/0x2-_0x147545/0x2;}return _0x46500f;}[_0x338301(0x1c3)](){const _0x28f3ad=_0x338301,_0x23059b=_0x25e598(this[_0x28f3ad(0x1a9)]);this[_0x28f3ad(0x1cb)](_0x23059b[_0x28f3ad(0x1b0)][_0x28f3ad(0x19e)],_0x28f3ad(0x1be),()=>{const _0x5ada7d=_0x28f3ad;if(this[_0x5ada7d(0x19d)])return;for(const {name:_0x59f4d9,data:{newRange:_0x5a71a6}}of _0x23059b[_0x5ada7d(0x1b0)][_0x5ada7d(0x19e)][_0x5ada7d(0x1a0)][_0x5ada7d(0x1d0)]())if(_0x59f4d9[_0x5ada7d(0x18b)](_0x5ada7d(0x1c6))&&(_0x5a71a6&&(_0x5a71a6[_0x5ada7d(0x1e4)][_0x5ada7d(0x198)](_0x5a71a6[_0x5ada7d(0x1e5)])||_0x5ada7d(0x184)==_0x5a71a6[_0x5ada7d(0x1d9)][_0x5ada7d(0x1cc)])||null==_0x5a71a6)){const _0x2723f9=_0x2427b7(this[_0x5ada7d(0x1a9)][_0x5ada7d(0x1b9)],_0x5ada7d(0x18e));this[_0x5ada7d(0x1d4)][_0x5ada7d(0x19c)](_0x2723f9),this[_0x5ada7d(0x183)](_0x5ada7d(0x1ad));}});}[_0x338301(0x1db)](){const _0x8a29f9=_0x338301,_0x4b7c83=_0x25e598(this[_0x8a29f9(0x1a9)]);this[_0x8a29f9(0x1a4)](_0x4b7c83[_0x8a29f9(0x1b0)][_0x8a29f9(0x19e)]);}[_0x338301(0x195)](){const _0xfa213d=_0x338301,_0x1bef7b=_0x25e598(this[_0xfa213d(0x1a9)]);return _0x3b711d(_0x1bef7b[_0xfa213d(0x197)],[..._0x1bef7b[_0xfa213d(0x1b0)][_0xfa213d(0x1c8)][_0xfa213d(0x18f)](_0xfa213d(0x1ba)),..._0x1bef7b[_0xfa213d(0x1b0)][_0xfa213d(0x1c8)][_0xfa213d(0x18f)](_0xfa213d(0x1a5))]);}}
23
+ const _0x43f95b=_0x4f3a;(function(_0x3a70ff,_0x13b9f8){const _0x36d401=_0x4f3a,_0x18de2d=_0x3a70ff();while(!![]){try{const _0x247a34=-parseInt(_0x36d401(0x109))/0x1*(-parseInt(_0x36d401(0x150))/0x2)+-parseInt(_0x36d401(0xfa))/0x3+parseInt(_0x36d401(0x141))/0x4+parseInt(_0x36d401(0x148))/0x5*(-parseInt(_0x36d401(0x121))/0x6)+-parseInt(_0x36d401(0x10f))/0x7+-parseInt(_0x36d401(0x149))/0x8*(parseInt(_0x36d401(0x145))/0x9)+-parseInt(_0x36d401(0x114))/0xa*(-parseInt(_0x36d401(0x11a))/0xb);if(_0x247a34===_0x13b9f8)break;else _0x18de2d['push'](_0x18de2d['shift']());}catch(_0x4026d0){_0x18de2d['push'](_0x18de2d['shift']());}}}(_0x2aa0,0xa7671));import{ContextPlugin as _0x48c852}from'ckeditor5/src/core.js';import{AIConnector as _0x5078c0}from'../aicore/aiconnector.js';import{AIEditing as _0x74611}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x5601a4,AIBalloonView as _0x5c6f63}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x35ca17}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0xc59e95,Rect as _0x5a492f,scrollViewportToShowTarget as _0x2cf095}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x1b82c8}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x3ef171}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x2aa0(){const _0x47a821=['ranges','length','stopListening','delegate','title','AIEditing','selectionRemoved','aiBalloon','updateContent','index','_getSelectionElements','start','$graveyard','488524XVJxOj','ai-balloon-','getBoundingRect','ai-selection','ai-balloon','max','1767045EvYCsY','getIntersection','\x20ai-balloon-rotator','startsWith','config','3931960evQUFS','ai.availableReplyActions','getMarkersGroup','balloonView','render','round','22EKMnQQ','_isUpdatingMarkers','context','_setupMarkerRemovalListener','updatePosition','AIBalloon','plugins','1146rOmwQJ','iconView','listenTo','label','isEqual','rootName','filter','markers','width','bind','icon','trackChanges','fire','isOfficialPlugin','_calculateOptimalTopPosition','AI_ACTIONS_SELECTION_REMOVED_ERROR','headerView','_setupVisualSelection','view','setupRotator','top','off','showBlockingError','get','pluginName','ai-selection:','showRotator','root','show','showFakeVisualSelection','end','once','4130724JAHVLh','getChangedMarkers','open','_calculateDialogPosition','108hiTgHC','isOpen','_showDialog','18930iVGmKz','263984RgdokM','bottom','hide','isPremiumPlugin','editing','value','_cleanupMarkerRemovalListener','4QqYBkX','commands','window','isTrackChangesOn','model','getVisible','ai-balloon-selection','requires','_updateBalloon','change','locale','Dialog','hideFakeVisualSelection','left','height','dialogClosed','content','differ','_config','_pendingRenderCallback','close','mainView','2216709zMYZNl','document'];_0x2aa0=function(){return _0x47a821;};return _0x2aa0();}function _0x4f3a(_0x2d7218,_0x4ed999){const _0x2aa041=_0x2aa0();return _0x4f3a=function(_0x4f3aa2,_0x163225){_0x4f3aa2=_0x4f3aa2-0xed;let _0x651d13=_0x2aa041[_0x4f3aa2];return _0x651d13;},_0x4f3a(_0x2d7218,_0x4ed999);}import{getTranslation as _0x4d4830}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x5601a4,_0x43f95b(0xf3),_0x43f95b(0x102)];const ut=0xa;export class AIBalloon extends _0x48c852{static get[_0x43f95b(0x157)](){return[_0x5078c0,_0x74611];}static get[_0x43f95b(0x139)](){const _0x562bc0=_0x43f95b;return _0x562bc0(0x11f);}static get[_0x43f95b(0x12e)](){return!0x0;}static get[_0x43f95b(0x14c)](){return!0x0;}[_0x43f95b(0x146)]=!0x1;[_0x43f95b(0xf6)];[_0x43f95b(0x11b)]=!0x1;[_0x43f95b(0xf7)]=null;[_0x43f95b(0x143)](_0x4e3ae9){const _0x3a5c74=_0x43f95b,_0x2ed57c=_0x1b82c8(this[_0x3a5c74(0x11c)]);if(this[_0x3a5c74(0xf6)]=_0x4e3ae9,this[_0x3a5c74(0x146)])return void this[_0x3a5c74(0x158)](_0x4e3ae9);const _0xa0ba4e=this[_0x3a5c74(0x11c)][_0x3a5c74(0x113)][_0x3a5c74(0x138)](_0x3a5c74(0x115))||[..._0x3ef171],_0x2b4abe=_0x2ed57c?.[_0x3a5c74(0x151)][_0x3a5c74(0x138)](_0x3a5c74(0x12c)),_0x4cd3f6=_0x2b4abe?.[_0x3a5c74(0x14e)];this[_0x3a5c74(0x117)]=new _0x5c6f63(_0x2ed57c[_0x3a5c74(0xee)],_0x4e3ae9,_0xa0ba4e,!!_0x4cd3f6),this[_0x3a5c74(0x117)][_0x3a5c74(0xff)](..._0x5601a4)['to'](this),_0x2b4abe&&this[_0x3a5c74(0x117)][_0x3a5c74(0x12a)](_0x3a5c74(0x153))['to'](_0x2b4abe,_0x3a5c74(0x14e)),this[_0x3a5c74(0x147)](_0x4e3ae9);}[_0x43f95b(0xf8)](){const _0x38f885=_0x43f95b;_0x1b82c8(this[_0x38f885(0x11c)])[_0x38f885(0x120)][_0x38f885(0x138)](_0x38f885(0xef))[_0x38f885(0x14b)]();}[_0x43f95b(0x158)](_0x387e50){const _0x20344d=_0x43f95b,_0x62a878=_0x1b82c8(this[_0x20344d(0x11c)]),_0x5876cf=_0x62a878[_0x20344d(0x120)][_0x20344d(0x138)](_0x20344d(0xef));this[_0x20344d(0xf7)]&&(_0x62a878[_0x20344d(0x14d)][_0x20344d(0x133)][_0x20344d(0x136)](_0x20344d(0x118),this[_0x20344d(0xf7)]),this[_0x20344d(0xf7)]=null),this[_0x20344d(0x11b)]=!0x0,_0x5876cf[_0x20344d(0x133)]?.[_0x20344d(0x131)]&&(_0x5876cf[_0x20344d(0x133)][_0x20344d(0x131)][_0x20344d(0x124)]=_0x387e50[_0x20344d(0x100)],_0x5876cf[_0x20344d(0x133)][_0x20344d(0x131)][_0x20344d(0x122)]&&_0x387e50[_0x20344d(0x12b)]&&(_0x5876cf[_0x20344d(0x133)][_0x20344d(0x131)][_0x20344d(0x122)][_0x20344d(0xf4)]=_0x387e50[_0x20344d(0x12b)])),this[_0x20344d(0x117)][_0x20344d(0x104)](_0x387e50[_0x20344d(0xf9)]),this[_0x20344d(0x132)](_0x387e50[_0x20344d(0xfc)],_0x387e50[_0x20344d(0x105)]),this[_0x20344d(0xf7)]=()=>{const _0x57a892=_0x20344d;this[_0x57a892(0x11b)]=!0x1,this[_0x57a892(0xf7)]=null,_0x5876cf[_0x57a892(0x133)]&&_0x5876cf[_0x57a892(0x133)][_0x57a892(0x11e)]();},_0x62a878[_0x20344d(0x14d)][_0x20344d(0x133)][_0x20344d(0x140)](_0x20344d(0x118),this[_0x20344d(0xf7)]);}[_0x43f95b(0x132)](_0xb71016,_0x201646){const _0x50d62c=_0x43f95b;this[_0x50d62c(0x11c)][_0x50d62c(0x120)][_0x50d62c(0x138)](_0x74611)[_0x50d62c(0x13e)](_0xb71016,_0x50d62c(0x10a)+_0x201646,!0x0,!0x0);}[_0x43f95b(0x147)](_0x48dc02){const _0x37b606=_0x43f95b,_0x4fca66=_0x1b82c8(this[_0x37b606(0x11c)]);this[_0x37b606(0x132)](_0x48dc02[_0x37b606(0xfc)],_0x48dc02[_0x37b606(0x105)]);const _0x544581=this[_0x37b606(0x106)]();_0x544581&&_0x544581[0x0]&&_0x2cf095({'target':_0x544581[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x4fca66[_0x37b606(0x120)][_0x37b606(0x138)](_0x37b606(0xef))[_0x37b606(0x13d)]({'title':_0x48dc02[_0x37b606(0x100)],'icon':_0x48dc02[_0x37b606(0x12b)],'hasCloseButton':!0x0,'id':_0x37b606(0x103),'position':this[_0x37b606(0x144)][_0x37b606(0x12a)](this),'className':_0x37b606(0x10d)+(_0x48dc02[_0x37b606(0x13b)]?_0x37b606(0x111):''),'content':this[_0x37b606(0x117)],'onShow':_0x235cbd=>{const _0x5da8e0=_0x37b606;_0x48dc02[_0x5da8e0(0x13b)]&&this[_0x5da8e0(0x117)][_0x5da8e0(0x134)](_0x235cbd),this[_0x5da8e0(0x11d)](),this[_0x5da8e0(0x146)]=!0x0;},'onHide':()=>{const _0x337b46=_0x37b606;this[_0x337b46(0x11c)][_0x337b46(0x120)][_0x337b46(0x138)](_0x337b46(0x101))[_0x337b46(0xf0)](_0x337b46(0x10a)+this[_0x337b46(0xf6)][_0x337b46(0x105)]),this[_0x337b46(0x14f)](),this[_0x337b46(0x12d)](_0x337b46(0xf3)),this[_0x337b46(0x146)]=!0x1;}});}[_0x43f95b(0x144)](_0x90e13f,_0x12ce64){const _0x291ab0=_0x43f95b;if(!_0x12ce64)return null;const _0x1d6d08=this[_0x291ab0(0x106)]();if(!_0x1d6d08||0x0===_0x1d6d08[_0x291ab0(0xfd)])return{'left':Math[_0x291ab0(0x119)](_0x12ce64[_0x291ab0(0xf1)]+_0x12ce64[_0x291ab0(0x129)]/0x2-_0x90e13f[_0x291ab0(0x129)]/0x2),'top':Math[_0x291ab0(0x119)](_0x12ce64[_0x291ab0(0x135)]+_0x12ce64[_0x291ab0(0xf2)]/0x2-_0x90e13f[_0x291ab0(0xf2)]/0x2)};const _0x11571f=Math[_0x291ab0(0x119)](_0x12ce64[_0x291ab0(0xf1)]+_0x12ce64[_0x291ab0(0x129)]/0x2-_0x90e13f[_0x291ab0(0x129)]/0x2),_0x30d10e=new _0x5a492f(_0x1d6d08[0x0]),_0x35d4a5=new _0x5a492f(_0x1d6d08[_0x1d6d08[_0x291ab0(0xfd)]-0x1]),_0x5a31bd=_0x90e13f[_0x291ab0(0xf2)],_0x5a2b17=this[_0x291ab0(0xf6)][_0x291ab0(0x13b)]?0x8:0x0;return{'left':_0x11571f,'top':this[_0x291ab0(0x12f)](_0x30d10e,_0x35d4a5,_0x5a31bd,_0x5a2b17,_0x12ce64)};}[_0x43f95b(0x12f)](_0x9430ee,_0xc2492c,_0x29349e,_0x424a96=0x0,_0x777ef0){const _0x54b88a=_0x43f95b,_0x5873f1=_0x29349e+_0x424a96,_0xb3b20a=new _0x5a492f(_0xc59e95[_0x54b88a(0x152)]),_0x273b33=[_0x9430ee[_0x54b88a(0x155)](),_0xc2492c[_0x54b88a(0x155)]()][_0x54b88a(0x127)](_0x15dc53=>_0x15dc53),_0x56e92e=_0x5a492f[_0x54b88a(0x10b)](_0x273b33);if(!_0x56e92e)return Math[_0x54b88a(0x119)](_0x777ef0[_0x54b88a(0x135)]+_0x777ef0[_0x54b88a(0xf2)]/0x2);const _0x5d47a1=_0xb3b20a[_0x54b88a(0x110)](_0x56e92e);if(!_0x5d47a1)return Math[_0x54b88a(0x119)](_0x777ef0[_0x54b88a(0x135)]+_0x777ef0[_0x54b88a(0xf2)]/0x2);const _0x470b9b=_0x777ef0[_0x54b88a(0x155)](),_0x5a6612=_0x470b9b&&_0x56e92e[_0x54b88a(0xf2)]>_0x470b9b[_0x54b88a(0xf2)],_0xf87846=_0x5d47a1[_0x54b88a(0x135)],_0x460201=_0x5d47a1[_0x54b88a(0x14a)];if(_0x5a6612){const _0x245be3=(_0x470b9b||_0xb3b20a)[_0x54b88a(0xf2)]/0x2-_0x5873f1/0x2,_0x3e82d4=_0xf87846-ut-_0x777ef0[_0x54b88a(0x135)],_0x54a7b3=_0x777ef0[_0x54b88a(0x14a)]-_0x460201-ut;return _0x3e82d4>=_0x5873f1?Math[_0x54b88a(0x10e)](ut,_0xf87846-_0x5873f1-ut):_0x54a7b3>=_0x5873f1?_0x460201+ut:Math[_0x54b88a(0x10e)](ut,_0x245be3);}const _0x1b1378=_0xf87846-_0x5873f1,_0x10cfe4=_0x777ef0[_0x54b88a(0x14a)]-_0x460201-ut,_0x5bbe8e=_0xf87846-ut-_0x777ef0[_0x54b88a(0x135)];let _0x37f99c;if(_0x10cfe4>=_0x5873f1)_0x37f99c=_0x460201+ut;else{if(_0x5bbe8e>=_0x5873f1)_0x37f99c=_0x1b1378-ut;else _0x37f99c=_0xf87846+_0x56e92e[_0x54b88a(0xf2)]/0x2-_0x5873f1/0x2;}return _0x37f99c;}[_0x43f95b(0x11d)](){const _0x4345bb=_0x43f95b,_0x19594f=_0x1b82c8(this[_0x4345bb(0x11c)]);this[_0x4345bb(0x123)](_0x19594f[_0x4345bb(0x154)][_0x4345bb(0xfb)],_0x4345bb(0xed),()=>{const _0x4163a6=_0x4345bb;if(this[_0x4163a6(0x11b)])return;for(const {name:_0x55e7a8,data:{newRange:_0x4b49cd}}of _0x19594f[_0x4163a6(0x154)][_0x4163a6(0xfb)][_0x4163a6(0xf5)][_0x4163a6(0x142)]())if(_0x55e7a8[_0x4163a6(0x112)](_0x4163a6(0x13a))&&(_0x4b49cd&&(_0x4b49cd[_0x4163a6(0x107)][_0x4163a6(0x125)](_0x4b49cd[_0x4163a6(0x13f)])||_0x4163a6(0x108)==_0x4b49cd[_0x4163a6(0x13c)][_0x4163a6(0x126)])||null==_0x4b49cd)){const _0xfcead4=_0x4d4830(this[_0x4163a6(0x11c)][_0x4163a6(0xee)],_0x4163a6(0x130));this[_0x4163a6(0x117)][_0x4163a6(0x137)](_0xfcead4),this[_0x4163a6(0x12d)](_0x4163a6(0x102));}});}[_0x43f95b(0x14f)](){const _0x2d3cc3=_0x43f95b,_0x1d3750=_0x1b82c8(this[_0x2d3cc3(0x11c)]);this[_0x2d3cc3(0xfe)](_0x1d3750[_0x2d3cc3(0x154)][_0x2d3cc3(0xfb)]);}[_0x43f95b(0x106)](){const _0x218411=_0x43f95b,_0x49679b=_0x1b82c8(this[_0x218411(0x11c)]);return _0x35ca17(_0x49679b[_0x218411(0x14d)],[..._0x49679b[_0x218411(0x154)][_0x218411(0x128)][_0x218411(0x116)](_0x218411(0x10c)),..._0x49679b[_0x218411(0x154)][_0x218411(0x128)][_0x218411(0x116)](_0x218411(0x156))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x4582c0,_0x429a8f){var _0x4e7301=_0x42bc,_0x58fb4a=_0x4582c0();while(!![]){try{var _0x20dd48=-parseInt(_0x4e7301(0x1ab))/0x1+-parseInt(_0x4e7301(0x1a4))/0x2+-parseInt(_0x4e7301(0x1a6))/0x3*(parseInt(_0x4e7301(0x1a2))/0x4)+parseInt(_0x4e7301(0x1aa))/0x5*(parseInt(_0x4e7301(0x1ad))/0x6)+parseInt(_0x4e7301(0x1a5))/0x7*(-parseInt(_0x4e7301(0x1af))/0x8)+-parseInt(_0x4e7301(0x1a1))/0x9*(parseInt(_0x4e7301(0x1a7))/0xa)+-parseInt(_0x4e7301(0x1a8))/0xb*(-parseInt(_0x4e7301(0x1ae))/0xc);if(_0x20dd48===_0x429a8f)break;else _0x58fb4a['push'](_0x58fb4a['shift']());}catch(_0x4c5d7e){_0x58fb4a['push'](_0x58fb4a['shift']());}}}(_0x3014,0xce7e9));import{View as _0x63e53c}from'ckeditor5/src/ui.js';import{getTranslation as _0x278261}from'../../aicore/utils/common-translations.js';function _0x42bc(_0x17f70a,_0x2b79dc){var _0x3014d4=_0x3014();return _0x42bc=function(_0x42bceb,_0x5e634d){_0x42bceb=_0x42bceb-0x1a1;var _0x1cdb8f=_0x3014d4[_0x42bceb];return _0x1cdb8f;},_0x42bc(_0x17f70a,_0x2b79dc);}export class AIBalloonDisclaimerView extends _0x63e53c{constructor(_0x2754be){var _0x5294e4=_0x42bc;super(_0x2754be),this[_0x5294e4(0x1a9)]({'tag':_0x5294e4(0x1a3),'attributes':{'class':['ck',_0x5294e4(0x1b1)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x5294e4(0x1b0)]},'children':[{'text':_0x278261(_0x2754be,_0x5294e4(0x1ac))}]}]});}}function _0x3014(){var _0x39f09e=['setTemplate','55865UmWuvY','111501xDTMrQ','AI_DISCLAIMER_TEXT','834FcLMEA','12GLffha','2384falzVD','ck-ai-balloon__disclaimer-content','ck-ai-balloon__disclaimer','531QJQnRg','76884lheqMR','div','1794280KMLFee','27944kKWzJf','129awvcxE','32730trGmdM','27616831tRObOV'];_0x3014=function(){return _0x39f09e;};return _0x3014();}
23
+ function _0x4d52(){var _0xbd4919=['div','AI_DISCLAIMER_TEXT','298401paCBzw','10tkjveg','ck-ai-balloon__disclaimer','230JAEcwL','13842gmfzgG','11520639ngDYhE','setTemplate','269162CZkZAq','14UafaTk','ck-ai-balloon__disclaimer-content','247086jsZUqU','2748388TjdhPR','1933296alTrCN'];_0x4d52=function(){return _0xbd4919;};return _0x4d52();}(function(_0x19d5d5,_0x2dcd6a){var _0x4a7705=_0x5364,_0x3f21e9=_0x19d5d5();while(!![]){try{var _0x38a4dd=parseInt(_0x4a7705(0x128))/0x1+parseInt(_0x4a7705(0x12f))/0x2+-parseInt(_0x4a7705(0x123))/0x3+parseInt(_0x4a7705(0x124))/0x4+-parseInt(_0x4a7705(0x12b))/0x5*(-parseInt(_0x4a7705(0x12c))/0x6)+-parseInt(_0x4a7705(0x130))/0x7*(-parseInt(_0x4a7705(0x125))/0x8)+-parseInt(_0x4a7705(0x12d))/0x9*(parseInt(_0x4a7705(0x129))/0xa);if(_0x38a4dd===_0x2dcd6a)break;else _0x3f21e9['push'](_0x3f21e9['shift']());}catch(_0xe703bc){_0x3f21e9['push'](_0x3f21e9['shift']());}}}(_0x4d52,0x54bd4));import{View as _0x2a529a}from'ckeditor5/src/ui.js';import{getTranslation as _0x59d500}from'../../aicore/utils/common-translations.js';function _0x5364(_0x5810ee,_0x393f12){var _0x4d52ae=_0x4d52();return _0x5364=function(_0x5cb12c,_0x2fa9fe){_0x5cb12c=_0x5cb12c-0x123;var _0xf808c2=_0x4d52ae[_0x5cb12c];return _0xf808c2;},_0x5364(_0x5810ee,_0x393f12);}export class AIBalloonDisclaimerView extends _0x2a529a{constructor(_0xcde848){var _0x267029=_0x5364;super(_0xcde848),this[_0x267029(0x12e)]({'tag':_0x267029(0x126),'attributes':{'class':['ck',_0x267029(0x12a)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x267029(0x131)]},'children':[{'text':_0x59d500(_0xcde848,_0x267029(0x127))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5617(_0x25c10b,_0x282e03){const _0x120442=_0x1204();return _0x5617=function(_0x5617b6,_0x550a98){_0x5617b6=_0x5617b6-0x100;let _0x3f05f1=_0x120442[_0x5617b6];return _0x3f05f1;},_0x5617(_0x25c10b,_0x282e03);}const _0x14556d=_0x5617;(function(_0x329b85,_0x12a668){const _0x41743e=_0x5617,_0x57a127=_0x329b85();while(!![]){try{const _0x1d8949=parseInt(_0x41743e(0x10a))/0x1*(parseInt(_0x41743e(0x113))/0x2)+-parseInt(_0x41743e(0x105))/0x3*(-parseInt(_0x41743e(0x117))/0x4)+parseInt(_0x41743e(0x10f))/0x5+-parseInt(_0x41743e(0x11b))/0x6*(-parseInt(_0x41743e(0x115))/0x7)+parseInt(_0x41743e(0x110))/0x8*(parseInt(_0x41743e(0x108))/0x9)+parseInt(_0x41743e(0x101))/0xa*(-parseInt(_0x41743e(0x10c))/0xb)+-parseInt(_0x41743e(0x119))/0xc;if(_0x1d8949===_0x12a668)break;else _0x57a127['push'](_0x57a127['shift']());}catch(_0x4365da){_0x57a127['push'](_0x57a127['shift']());}}}(_0x1204,0x52343));import{ToolbarView as _0x25bbbc,ButtonView as _0x68de08}from'ckeditor5/src/ui.js';function _0x1204(){const _0xbb62ed=['21PJWdwP','_createButton','AI_BALLOON_APPLY_BUTTON','4329WeWYPY','suggestButton','7oUvsdg','locale','1050071ImOqrD','ck-ai-balloon__toolbar','ck-ai-button-secondary','3303165KumtYV','7824UHPwrL','ck-ai-button-primary','applyButton','134138xblsUk','add','7357hVplBb','items','199604MJrXRS','isEnabled','24621132uJCflm','bind','3594hZChPz','AI_BALLOON_SUGGEST_BUTTON','20aBjDOM','extendTemplate','set','isLoading'];_0x1204=function(){return _0xbb62ed;};return _0x1204();}import{getTranslation as _0x43cb9e}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x25bbbc{constructor(_0x56a445,_0x4ad16d=!0x0,_0x211691=!0x0){const _0x44b7ad=_0x5617;super(_0x56a445),this[_0x44b7ad(0x103)](_0x44b7ad(0x104),!0x1),_0x4ad16d&&(this[_0x44b7ad(0x112)]=this[_0x44b7ad(0x106)](_0x43cb9e(_0x56a445,_0x44b7ad(0x107)),_0x44b7ad(0x111)),this[_0x44b7ad(0x112)][_0x44b7ad(0x11a)](_0x44b7ad(0x118))['to'](this,_0x44b7ad(0x104),_0x478d2e=>!_0x478d2e),this[_0x44b7ad(0x116)][_0x44b7ad(0x114)](this[_0x44b7ad(0x112)])),_0x211691&&(this[_0x44b7ad(0x109)]=this[_0x44b7ad(0x106)](_0x43cb9e(_0x56a445,_0x44b7ad(0x100)),_0x4ad16d?_0x44b7ad(0x10e):_0x44b7ad(0x111)),this[_0x44b7ad(0x109)][_0x44b7ad(0x11a)](_0x44b7ad(0x118))['to'](this,_0x44b7ad(0x104),_0x552a4a=>!_0x552a4a),this[_0x44b7ad(0x116)][_0x44b7ad(0x114)](this[_0x44b7ad(0x109)])),this[_0x44b7ad(0x102)]({'attributes':{'class':[_0x44b7ad(0x10d)]}});}[_0x14556d(0x106)](_0x9e2d44,_0x1ba763){const _0x2775fc=_0x14556d,_0x3788bd=new _0x68de08(this[_0x2775fc(0x10b)]);return _0x3788bd[_0x2775fc(0x103)]({'label':_0x9e2d44,'class':_0x1ba763||'','isVisible':!0x0,'withText':!0x0}),_0x3788bd;}}
23
+ function _0x24c8(){const _0x5cd11e=['set','bind','33985maADnT','isLoading','519894hqsPYs','items','ck-ai-balloon__toolbar','applyButton','_createButton','4MQUwjD','add','12316150icRsUp','ck-ai-button-secondary','ck-ai-button-primary','extendTemplate','AI_BALLOON_SUGGEST_BUTTON','AI_BALLOON_APPLY_BUTTON','isEnabled','7OTiwzk','1289787nePxwh','2157RIhGvG','346WqjnJx','suggestButton','locale','7928216mpsntB','4499952LMKsxX'];_0x24c8=function(){return _0x5cd11e;};return _0x24c8();}function _0x1c45(_0x3dd738,_0x1c0fce){const _0x24c815=_0x24c8();return _0x1c45=function(_0x1c4533,_0x40e2b5){_0x1c4533=_0x1c4533-0x1eb;let _0x23ee9c=_0x24c815[_0x1c4533];return _0x23ee9c;},_0x1c45(_0x3dd738,_0x1c0fce);}const _0x14a548=_0x1c45;(function(_0x5d02a5,_0x4c3074){const _0x4ef9a1=_0x1c45,_0xc36869=_0x5d02a5();while(!![]){try{const _0x2ed004=-parseInt(_0x4ef9a1(0x1fe))/0x1*(parseInt(_0x4ef9a1(0x1ff))/0x2)+-parseInt(_0x4ef9a1(0x1fd))/0x3*(-parseInt(_0x4ef9a1(0x1f3))/0x4)+parseInt(_0x4ef9a1(0x1ec))/0x5+parseInt(_0x4ef9a1(0x203))/0x6+parseInt(_0x4ef9a1(0x1fc))/0x7*(parseInt(_0x4ef9a1(0x202))/0x8)+-parseInt(_0x4ef9a1(0x1ee))/0x9+-parseInt(_0x4ef9a1(0x1f5))/0xa;if(_0x2ed004===_0x4c3074)break;else _0xc36869['push'](_0xc36869['shift']());}catch(_0x4fd430){_0xc36869['push'](_0xc36869['shift']());}}}(_0x24c8,0x7dc83));import{ToolbarView as _0x22db09,ButtonView as _0x8816ad}from'ckeditor5/src/ui.js';import{getTranslation as _0x26e405}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x22db09{constructor(_0x438ca6,_0x2612c4=!0x0,_0x3b3554=!0x0){const _0x2e5e82=_0x1c45;super(_0x438ca6),this[_0x2e5e82(0x204)](_0x2e5e82(0x1ed),!0x1),_0x2612c4&&(this[_0x2e5e82(0x1f1)]=this[_0x2e5e82(0x1f2)](_0x26e405(_0x438ca6,_0x2e5e82(0x1fa)),_0x2e5e82(0x1f7)),this[_0x2e5e82(0x1f1)][_0x2e5e82(0x1eb)](_0x2e5e82(0x1fb))['to'](this,_0x2e5e82(0x1ed),_0x3e282c=>!_0x3e282c),this[_0x2e5e82(0x1ef)][_0x2e5e82(0x1f4)](this[_0x2e5e82(0x1f1)])),_0x3b3554&&(this[_0x2e5e82(0x200)]=this[_0x2e5e82(0x1f2)](_0x26e405(_0x438ca6,_0x2e5e82(0x1f9)),_0x2612c4?_0x2e5e82(0x1f6):_0x2e5e82(0x1f7)),this[_0x2e5e82(0x200)][_0x2e5e82(0x1eb)](_0x2e5e82(0x1fb))['to'](this,_0x2e5e82(0x1ed),_0x52c1b2=>!_0x52c1b2),this[_0x2e5e82(0x1ef)][_0x2e5e82(0x1f4)](this[_0x2e5e82(0x200)])),this[_0x2e5e82(0x1f8)]({'attributes':{'class':[_0x2e5e82(0x1f0)]}});}[_0x14a548(0x1f2)](_0x39ba48,_0x1395a){const _0xd86a38=_0x14a548,_0x7dda94=new _0x8816ad(this[_0xd86a38(0x201)]);return _0x7dda94[_0xd86a38(0x204)]({'label':_0x39ba48,'class':_0x1395a||'','isVisible':!0x0,'withText':!0x0}),_0x7dda94;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xda34a=_0x252f;(function(_0x48b5ec,_0x5d41f7){const _0x124b81=_0x252f,_0x37c8b6=_0x48b5ec();while(!![]){try{const _0x51e0ce=parseInt(_0x124b81(0x134))/0x1+parseInt(_0x124b81(0x11c))/0x2+parseInt(_0x124b81(0x11b))/0x3*(parseInt(_0x124b81(0x10d))/0x4)+parseInt(_0x124b81(0x139))/0x5*(parseInt(_0x124b81(0x142))/0x6)+-parseInt(_0x124b81(0x156))/0x7*(parseInt(_0x124b81(0x146))/0x8)+-parseInt(_0x124b81(0x113))/0x9+parseInt(_0x124b81(0x125))/0xa*(-parseInt(_0x124b81(0x110))/0xb);if(_0x51e0ce===_0x5d41f7)break;else _0x37c8b6['push'](_0x37c8b6['shift']());}catch(_0x1dfb56){_0x37c8b6['push'](_0x37c8b6['shift']());}}}(_0x4710,0x61b81));import{ButtonView as _0xb4239f,View as _0x1613d0,ViewCollection as _0xca9f44,FocusCycler as _0x2a0ab7}from'ckeditor5/src/ui.js';import{FocusTracker as _0x518e5e,KeystrokeHandler as _0x3aeda3}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x196967,IconPreviousArrow as _0x2c047a}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x5d4dfb}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x42bd24}from'./aiballoondisclaimerview.js';import{getTranslation as _0x2fd04d}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0xda34a(0x116),_0xda34a(0x132),_0xda34a(0x117),_0xda34a(0x152)];export class AIBalloonView extends _0x1613d0{[_0xda34a(0x143)];[_0xda34a(0x13d)];[_0xda34a(0x150)];[_0xda34a(0x140)];[_0xda34a(0x13f)];[_0xda34a(0x115)];constructor(_0x425b9a,_0x5e9d4f,_0x53c1ae,_0x17da5a){const _0x5dca4c=_0xda34a;super(_0x425b9a),this[_0x5dca4c(0x140)]=_0x53c1ae,this[_0x5dca4c(0x155)](_0x5dca4c(0x13e),!0x1),this[_0x5dca4c(0x155)](_0x5dca4c(0x147),_0x17da5a),this[_0x5dca4c(0x155)](_0x5dca4c(0x12a),!0x1),this[_0x5dca4c(0x155)](_0x5dca4c(0x12e),''),this[_0x5dca4c(0x143)]=new _0x518e5e(),this[_0x5dca4c(0x13d)]=new _0x3aeda3(),this[_0x5dca4c(0x13f)]=this[_0x5dca4c(0x15d)](),this[_0x5dca4c(0x150)]=new _0x2a0ab7({'focusables':this[_0x5dca4c(0x13f)],'focusTracker':this[_0x5dca4c(0x143)],'keystrokeHandler':this[_0x5dca4c(0x13d)],'actions':{'focusPrevious':_0x5dca4c(0x159),'focusNext':_0x5dca4c(0x11a)}}),this[_0x5dca4c(0x157)]=new _0xca9f44(),this[_0x5dca4c(0x13a)](_0x5e9d4f[_0x5dca4c(0x124)]),this[_0x5dca4c(0x13c)](),this[_0x5dca4c(0x138)](_0x5e9d4f[_0x5dca4c(0x128)],_0x5e9d4f[_0x5dca4c(0x14a)]),this[_0x5dca4c(0x122)][_0x5dca4c(0x135)](_0x5dca4c(0x13e))['to'](this),this[_0x5dca4c(0x13f)][_0x5dca4c(0x15e)](),this[_0x5dca4c(0x13f)][_0x5dca4c(0x15b)]([this[_0x5dca4c(0x122)]]),this[_0x5dca4c(0x123)]({'tag':_0x5dca4c(0x120),'attributes':{'class':_0x5dca4c(0x136)},'children':this[_0x5dca4c(0x157)]}),this['on'](_0x5dca4c(0x12f),()=>{const _0x33f90a=_0x5dca4c;this[_0x33f90a(0x157)][_0x33f90a(0x11f)](this[_0x33f90a(0x122)]),this[_0x33f90a(0x138)](_0x5e9d4f[_0x33f90a(0x128)],_0x5e9d4f[_0x33f90a(0x14a)]);});}[_0xda34a(0x133)](){const _0x587384=_0xda34a;super[_0x587384(0x133)]();for(const _0x269ec2 of this[_0x587384(0x13f)])this[_0x587384(0x143)][_0x587384(0x114)](_0x269ec2[_0x587384(0x12d)]);this[_0x587384(0x13d)][_0x587384(0x10e)](this[_0x587384(0x12d)]);}[_0xda34a(0x144)](_0x52774c){const _0x2b8022=_0xda34a;-0x1===_0x52774c?this[_0x2b8022(0x150)][_0x2b8022(0x14f)]():this[_0x2b8022(0x150)][_0x2b8022(0x158)]();}[_0xda34a(0x14c)](){const _0x5e8bbb=_0xda34a;this[_0x5e8bbb(0x13e)]=!0x0;}[_0xda34a(0x121)](){const _0x493f03=_0xda34a;this[_0x493f03(0x13e)]=!0x1;}[_0xda34a(0x14d)](_0x1c33ef){const _0x240154=_0xda34a;this[_0x240154(0x115)]||(this[_0x240154(0x115)]=this[_0x240154(0x14e)](),this[_0x240154(0x157)][_0x240154(0x15b)]([this[_0x240154(0x115)]],0x0)),this[_0x240154(0x12e)]=_0x1c33ef,this[_0x240154(0x12a)]=!0x0;}[_0xda34a(0x126)](){const _0x1df201=_0xda34a;this[_0x1df201(0x12a)]=!0x1;}[_0xda34a(0x154)](_0x3e8713){const _0x3626fe=_0xda34a;this[_0x3626fe(0x14d)](_0x3e8713);}[_0xda34a(0x151)](_0x2cd18a){const _0x3dcc3a=_0xda34a;this[_0x3dcc3a(0x14d)](_0x2cd18a),this[_0x3dcc3a(0x122)]&&(this[_0x3dcc3a(0x122)][_0x3dcc3a(0x12b)]&&(this[_0x3dcc3a(0x122)][_0x3dcc3a(0x12b)][_0x3dcc3a(0x11e)]=!0x1),this[_0x3dcc3a(0x122)][_0x3dcc3a(0x13b)]&&(this[_0x3dcc3a(0x122)][_0x3dcc3a(0x13b)][_0x3dcc3a(0x11e)]=!0x1));}[_0xda34a(0x149)](_0xc31700){const _0x5f0760=_0xda34a,_0x17d20a=this[_0x5f0760(0x15a)](),_0xa7d7e0=this[_0x5f0760(0x129)]();_0xc31700[_0x5f0760(0x12c)][_0x5f0760(0x111)][_0x5f0760(0x112)][_0x5f0760(0x114)](_0x17d20a,0x2),_0xc31700[_0x5f0760(0x12c)][_0x5f0760(0x111)][_0x5f0760(0x112)][_0x5f0760(0x114)](_0xa7d7e0,0x0),this[_0x5f0760(0x13f)][_0x5f0760(0x15b)]([_0x17d20a,_0xa7d7e0]),this[_0x5f0760(0x143)][_0x5f0760(0x114)](_0x17d20a[_0x5f0760(0x12d)]),this[_0x5f0760(0x143)][_0x5f0760(0x114)](_0xa7d7e0[_0x5f0760(0x12d)]);}[_0xda34a(0x13a)](_0xf64f95){const _0x208d7e=_0xda34a;this[_0x208d7e(0x10c)]=_0xf64f95,this[_0x208d7e(0x157)][_0x208d7e(0x114)](this[_0x208d7e(0x10c)]);}[_0xda34a(0x11d)](_0xfcf00e){const _0xa1ade7=_0xda34a,_0x4916b6=this[_0xa1ade7(0x157)][_0xa1ade7(0x118)](this[_0xa1ade7(0x10c)]);this[_0xa1ade7(0x157)][_0xa1ade7(0x11f)](this[_0xa1ade7(0x10c)]),this[_0xa1ade7(0x10c)]=_0xfcf00e,this[_0xa1ade7(0x157)][_0xa1ade7(0x114)](this[_0xa1ade7(0x10c)],_0x4916b6),this[_0xa1ade7(0x126)]();}[_0xda34a(0x13c)](){const _0x2378b4=_0xda34a;this[_0x2378b4(0x153)]=new _0x42bd24(this[_0x2378b4(0x119)]),this[_0x2378b4(0x157)][_0x2378b4(0x114)](this[_0x2378b4(0x153)]);}[_0xda34a(0x138)](_0x1f1618=!0x0,_0x5ce054=!0x0){const _0x1ede41=_0xda34a;_0x1f1618=_0x1f1618&&!this[_0x1ede41(0x147)]&&this[_0x1ede41(0x140)][_0x1ede41(0x130)](_0x1ede41(0x116)),_0x5ce054=_0x5ce054&&this[_0x1ede41(0x140)][_0x1ede41(0x130)](_0x1ede41(0x132)),this[_0x1ede41(0x122)]=new _0x5d4dfb(this[_0x1ede41(0x119)],_0x1f1618,_0x5ce054),this[_0x1ede41(0x122)][_0x1ede41(0x12b)]?.['on'](_0x1ede41(0x14b),()=>{const _0x55b3cd=_0x1ede41;this[_0x55b3cd(0x10b)](_0x55b3cd(0x116));}),this[_0x1ede41(0x122)][_0x1ede41(0x13b)]?.['on'](_0x1ede41(0x14b),()=>{const _0x2b94b0=_0x1ede41;this[_0x2b94b0(0x10b)](_0x2b94b0(0x132));}),this[_0x1ede41(0x157)][_0x1ede41(0x114)](this[_0x1ede41(0x122)]);}[_0xda34a(0x15a)](){const _0xfa0c8f=_0xda34a,_0xed99b0=new _0xb4239f(this[_0xfa0c8f(0x119)]);return _0xed99b0[_0xfa0c8f(0x155)]({'icon':_0x196967,'tooltip':_0x2fd04d(this[_0xfa0c8f(0x119)],_0xfa0c8f(0x131))}),_0xed99b0['on'](_0xfa0c8f(0x14b),()=>{const _0x3d26c5=_0xfa0c8f;this[_0x3d26c5(0x10b)](_0x3d26c5(0x117));}),_0xed99b0;}[_0xda34a(0x129)](){const _0x91e5f7=_0xda34a,_0x5f3c7e=new _0xb4239f(this[_0x91e5f7(0x119)]);return _0x5f3c7e[_0x91e5f7(0x155)]({'icon':_0x2c047a,'tooltip':_0x2fd04d(this[_0x91e5f7(0x119)],_0x91e5f7(0x148))}),_0x5f3c7e['on'](_0x91e5f7(0x14b),()=>{const _0x3a8e7d=_0x91e5f7;this[_0x3a8e7d(0x10b)](_0x3a8e7d(0x152));}),_0x5f3c7e;}[_0xda34a(0x14e)](){const _0x2fc9e4=_0xda34a,_0x19f593=new _0x1613d0(this[_0x2fc9e4(0x119)]),_0x2870cd=new _0x1613d0(this[_0x2fc9e4(0x119)]);return _0x2870cd[_0x2fc9e4(0x123)]({'tag':_0x2fc9e4(0x137),'attributes':{'class':['ck',_0x2fc9e4(0x10f)]},'children':[{'text':this[_0x2fc9e4(0x145)]['to'](_0x2fc9e4(0x12e))}]}),_0x19f593[_0x2fc9e4(0x123)]({'tag':_0x2fc9e4(0x120),'attributes':{'class':['ck',_0x2fc9e4(0x127),_0x2fc9e4(0x15c),this[_0x2fc9e4(0x145)]['if'](_0x2fc9e4(0x12a),_0x2fc9e4(0x141),_0x19d310=>!_0x19d310)]},'children':[_0x2870cd]}),_0x19f593;}}function _0x252f(_0x428b1e,_0x4dfc47){const _0x471040=_0x4710();return _0x252f=function(_0x252fb2,_0xfcbedf){_0x252fb2=_0x252fb2-0x10b;let _0x277daf=_0x471040[_0x252fb2];return _0x277daf;},_0x252f(_0x428b1e,_0x4dfc47);}function _0x4710(){const _0x541e4b=['_availableActions','ck-hidden','13296RorRHv','focusTracker','focus','bindTemplate','182696BLuiEk','isTrackChangesOn','AI_BALLOON_PREVIOUS_TOOLTIP','setupRotator','showSuggestButton','execute','setLoading','showError','_createErrorView','focusLast','focusCycler','showBlockingError','showPrevious','disclaimerView','showRecoverableError','set','7cPoIPT','_dialogContent','focusFirst','shift\x20+\x20tab','_createNextButtonView','addMany','ai-balloon-error','createCollection','clear','fire','_mainView','168464nNVXzX','listenTo','ck-ai-suggestion__error-text','1187153wGaGVK','headerView','children','2208924RVArCD','add','_errorView','applySuggestion','showNext','getIndex','locale','tab','3GXoCKR','1377646YlAQVb','updateContent','isEnabled','remove','div','clearLoading','toolbar','setTemplate','mainView','110HSBbDd','hideError','ck-ai-suggestion__error','showApplyButton','_createPreviousButtonView','isErrorVisible','applyButton','view','element','errorMessage','change:isTrackChangesOn','includes','AI_BALLOON_NEXT_TOOLTIP','insertSuggestion','render','493184dxZqme','bind','ai-balloon-content','span','_addToolbar','1425TEAQZh','_addContentView','suggestButton','_addDisclaimerView','keystrokes','isLoading','_focusables'];_0x4710=function(){return _0x541e4b;};return _0x4710();}
23
+ function _0x5d82(_0x5a6c83,_0x3acb84){const _0x477aa6=_0x477a();return _0x5d82=function(_0x5d82a8,_0x44eddf){_0x5d82a8=_0x5d82a8-0x76;let _0x1adfe9=_0x477aa6[_0x5d82a8];return _0x1adfe9;},_0x5d82(_0x5a6c83,_0x3acb84);}const _0x32d8b4=_0x5d82;(function(_0x4f75fb,_0x5ebd54){const _0x1e791b=_0x5d82,_0x1481bb=_0x4f75fb();while(!![]){try{const _0x42bf7b=-parseInt(_0x1e791b(0xaa))/0x1*(-parseInt(_0x1e791b(0x8d))/0x2)+parseInt(_0x1e791b(0xa6))/0x3+-parseInt(_0x1e791b(0x9b))/0x4+-parseInt(_0x1e791b(0xb2))/0x5+-parseInt(_0x1e791b(0x80))/0x6*(parseInt(_0x1e791b(0xbb))/0x7)+-parseInt(_0x1e791b(0xb7))/0x8+parseInt(_0x1e791b(0x7b))/0x9;if(_0x42bf7b===_0x5ebd54)break;else _0x1481bb['push'](_0x1481bb['shift']());}catch(_0x2351aa){_0x1481bb['push'](_0x1481bb['shift']());}}}(_0x477a,0x2c029));function _0x477a(){const _0x3c096c=['tab','applySuggestion','4XZKAaK','setTemplate','remove','_dialogContent','ck-hidden','AI_BALLOON_PREVIOUS_TOOLTIP','isTrackChangesOn','isErrorVisible','850970toxcRs','shift\x20+\x20tab','focusTracker','div','set','2667776DZtPEr','showPrevious','span','_errorView','14yDfqTL','add','render','showSuggestButton','children','mainView','setupRotator','showRecoverableError','_createPreviousButtonView','fire','_addDisclaimerView','hideError','disclaimerView','suggestButton','ai-balloon-content','bindTemplate','isEnabled','ck-ai-suggestion__error','5981256NbpDQc','_availableActions','createCollection','_focusables','showBlockingError','803322fEBTPW','AI_BALLOON_NEXT_TOOLTIP','change:isTrackChangesOn','_addContentView','showApplyButton','isLoading','element','bind','updateContent','_addToolbar','setLoading','errorMessage','execute','179168gCajAv','keystrokes','focusCycler','showError','_createNextButtonView','showNext','_createErrorView','headerView','toolbar','_mainView','applyButton','focus','insertSuggestion','locale','394404zVPenw','focusLast','addMany','ck-ai-suggestion__error-text','focusFirst','clearLoading','listenTo','view','includes','ai-balloon-error','clear','82158AetsOG','getIndex'];_0x477a=function(){return _0x3c096c;};return _0x477a();}import{ButtonView as _0x264113,View as _0x368514,ViewCollection as _0x337d6a,FocusCycler as _0x2a3b4c}from'ckeditor5/src/ui.js';import{FocusTracker as _0x300cf5,KeystrokeHandler as _0x2144c9}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x2b563b,IconPreviousArrow as _0x229485}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x35cd18}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x41452d}from'./aiballoondisclaimerview.js';import{getTranslation as _0x4731bf}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x32d8b4(0xa9),_0x32d8b4(0x99),_0x32d8b4(0x92),_0x32d8b4(0xb8)];export class AIBalloonView extends _0x368514{[_0x32d8b4(0xb4)];[_0x32d8b4(0x8e)];[_0x32d8b4(0x8f)];[_0x32d8b4(0x7c)];[_0x32d8b4(0x7e)];[_0x32d8b4(0xba)];constructor(_0x4048b9,_0x4d9ae3,_0x1a7869,_0xf63cf9){const _0x4a153e=_0x32d8b4;super(_0x4048b9),this[_0x4a153e(0x7c)]=_0x1a7869,this[_0x4a153e(0xb6)](_0x4a153e(0x85),!0x1),this[_0x4a153e(0xb6)](_0x4a153e(0xb0),_0xf63cf9),this[_0x4a153e(0xb6)](_0x4a153e(0xb1),!0x1),this[_0x4a153e(0xb6)](_0x4a153e(0x8b),''),this[_0x4a153e(0xb4)]=new _0x300cf5(),this[_0x4a153e(0x8e)]=new _0x2144c9(),this[_0x4a153e(0x7e)]=this[_0x4a153e(0x7d)](),this[_0x4a153e(0x8f)]=new _0x2a3b4c({'focusables':this[_0x4a153e(0x7e)],'focusTracker':this[_0x4a153e(0xb4)],'keystrokeHandler':this[_0x4a153e(0x8e)],'actions':{'focusPrevious':_0x4a153e(0xb3),'focusNext':_0x4a153e(0xa8)}}),this[_0x4a153e(0xad)]=new _0x337d6a(),this[_0x4a153e(0x83)](_0x4d9ae3[_0x4a153e(0xc0)]),this[_0x4a153e(0xc5)](),this[_0x4a153e(0x89)](_0x4d9ae3[_0x4a153e(0x84)],_0x4d9ae3[_0x4a153e(0xbe)]),this[_0x4a153e(0x95)][_0x4a153e(0x87)](_0x4a153e(0x85))['to'](this),this[_0x4a153e(0x7e)][_0x4a153e(0xa5)](),this[_0x4a153e(0x7e)][_0x4a153e(0x9d)]([this[_0x4a153e(0x95)]]),this[_0x4a153e(0xab)]({'tag':_0x4a153e(0xb5),'attributes':{'class':_0x4a153e(0x77)},'children':this[_0x4a153e(0xad)]}),this['on'](_0x4a153e(0x82),()=>{const _0x1b6917=_0x4a153e;this[_0x1b6917(0xad)][_0x1b6917(0xac)](this[_0x1b6917(0x95)]),this[_0x1b6917(0x89)](_0x4d9ae3[_0x1b6917(0x84)],_0x4d9ae3[_0x1b6917(0xbe)]);});}[_0x32d8b4(0xbd)](){const _0x343240=_0x32d8b4;super[_0x343240(0xbd)]();for(const _0xef3d96 of this[_0x343240(0x7e)])this[_0x343240(0xb4)][_0x343240(0xbc)](_0xef3d96[_0x343240(0x86)]);this[_0x343240(0x8e)][_0x343240(0xa1)](this[_0x343240(0x86)]);}[_0x32d8b4(0x98)](_0x42c1ab){const _0x2ee98c=_0x32d8b4;-0x1===_0x42c1ab?this[_0x2ee98c(0x8f)][_0x2ee98c(0x9c)]():this[_0x2ee98c(0x8f)][_0x2ee98c(0x9f)]();}[_0x32d8b4(0x8a)](){const _0x1574c5=_0x32d8b4;this[_0x1574c5(0x85)]=!0x0;}[_0x32d8b4(0xa0)](){const _0x504620=_0x32d8b4;this[_0x504620(0x85)]=!0x1;}[_0x32d8b4(0x90)](_0x26e444){const _0x33c5f6=_0x32d8b4;this[_0x33c5f6(0xba)]||(this[_0x33c5f6(0xba)]=this[_0x33c5f6(0x93)](),this[_0x33c5f6(0xad)][_0x33c5f6(0x9d)]([this[_0x33c5f6(0xba)]],0x0)),this[_0x33c5f6(0x8b)]=_0x26e444,this[_0x33c5f6(0xb1)]=!0x0;}[_0x32d8b4(0xc6)](){const _0x1ef4f6=_0x32d8b4;this[_0x1ef4f6(0xb1)]=!0x1;}[_0x32d8b4(0xc2)](_0x40d060){const _0x6c809d=_0x32d8b4;this[_0x6c809d(0x90)](_0x40d060);}[_0x32d8b4(0x7f)](_0x2798af){const _0x255063=_0x32d8b4;this[_0x255063(0x90)](_0x2798af),this[_0x255063(0x95)]&&(this[_0x255063(0x95)][_0x255063(0x97)]&&(this[_0x255063(0x95)][_0x255063(0x97)][_0x255063(0x79)]=!0x1),this[_0x255063(0x95)][_0x255063(0x76)]&&(this[_0x255063(0x95)][_0x255063(0x76)][_0x255063(0x79)]=!0x1));}[_0x32d8b4(0xc1)](_0x5e7c5b){const _0x56be23=_0x32d8b4,_0x15bff7=this[_0x56be23(0x91)](),_0x7d5d29=this[_0x56be23(0xc3)]();_0x5e7c5b[_0x56be23(0xa2)][_0x56be23(0x94)][_0x56be23(0xbf)][_0x56be23(0xbc)](_0x15bff7,0x2),_0x5e7c5b[_0x56be23(0xa2)][_0x56be23(0x94)][_0x56be23(0xbf)][_0x56be23(0xbc)](_0x7d5d29,0x0),this[_0x56be23(0x7e)][_0x56be23(0x9d)]([_0x15bff7,_0x7d5d29]),this[_0x56be23(0xb4)][_0x56be23(0xbc)](_0x15bff7[_0x56be23(0x86)]),this[_0x56be23(0xb4)][_0x56be23(0xbc)](_0x7d5d29[_0x56be23(0x86)]);}[_0x32d8b4(0x83)](_0x4a6168){const _0x4fba76=_0x32d8b4;this[_0x4fba76(0x96)]=_0x4a6168,this[_0x4fba76(0xad)][_0x4fba76(0xbc)](this[_0x4fba76(0x96)]);}[_0x32d8b4(0x88)](_0xfc7eef){const _0x2e25c7=_0x32d8b4,_0x2f64c6=this[_0x2e25c7(0xad)][_0x2e25c7(0xa7)](this[_0x2e25c7(0x96)]);this[_0x2e25c7(0xad)][_0x2e25c7(0xac)](this[_0x2e25c7(0x96)]),this[_0x2e25c7(0x96)]=_0xfc7eef,this[_0x2e25c7(0xad)][_0x2e25c7(0xbc)](this[_0x2e25c7(0x96)],_0x2f64c6),this[_0x2e25c7(0xc6)]();}[_0x32d8b4(0xc5)](){const _0x29573e=_0x32d8b4;this[_0x29573e(0xc7)]=new _0x41452d(this[_0x29573e(0x9a)]),this[_0x29573e(0xad)][_0x29573e(0xbc)](this[_0x29573e(0xc7)]);}[_0x32d8b4(0x89)](_0x19e46c=!0x0,_0x5156f1=!0x0){const _0x454631=_0x32d8b4;_0x19e46c=_0x19e46c&&!this[_0x454631(0xb0)]&&this[_0x454631(0x7c)][_0x454631(0xa3)](_0x454631(0xa9)),_0x5156f1=_0x5156f1&&this[_0x454631(0x7c)][_0x454631(0xa3)](_0x454631(0x99)),this[_0x454631(0x95)]=new _0x35cd18(this[_0x454631(0x9a)],_0x19e46c,_0x5156f1),this[_0x454631(0x95)][_0x454631(0x97)]?.['on'](_0x454631(0x8c),()=>{const _0x5262a9=_0x454631;this[_0x5262a9(0xc4)](_0x5262a9(0xa9));}),this[_0x454631(0x95)][_0x454631(0x76)]?.['on'](_0x454631(0x8c),()=>{const _0x2ecfca=_0x454631;this[_0x2ecfca(0xc4)](_0x2ecfca(0x99));}),this[_0x454631(0xad)][_0x454631(0xbc)](this[_0x454631(0x95)]);}[_0x32d8b4(0x91)](){const _0x1023f7=_0x32d8b4,_0x33e682=new _0x264113(this[_0x1023f7(0x9a)]);return _0x33e682[_0x1023f7(0xb6)]({'icon':_0x2b563b,'tooltip':_0x4731bf(this[_0x1023f7(0x9a)],_0x1023f7(0x81))}),_0x33e682['on'](_0x1023f7(0x8c),()=>{const _0x5a808f=_0x1023f7;this[_0x5a808f(0xc4)](_0x5a808f(0x92));}),_0x33e682;}[_0x32d8b4(0xc3)](){const _0x49393f=_0x32d8b4,_0x1b0311=new _0x264113(this[_0x49393f(0x9a)]);return _0x1b0311[_0x49393f(0xb6)]({'icon':_0x229485,'tooltip':_0x4731bf(this[_0x49393f(0x9a)],_0x49393f(0xaf))}),_0x1b0311['on'](_0x49393f(0x8c),()=>{const _0x570bba=_0x49393f;this[_0x570bba(0xc4)](_0x570bba(0xb8));}),_0x1b0311;}[_0x32d8b4(0x93)](){const _0x1e76bb=_0x32d8b4,_0x5277c8=new _0x368514(this[_0x1e76bb(0x9a)]),_0x2ada13=new _0x368514(this[_0x1e76bb(0x9a)]);return _0x2ada13[_0x1e76bb(0xab)]({'tag':_0x1e76bb(0xb9),'attributes':{'class':['ck',_0x1e76bb(0x9e)]},'children':[{'text':this[_0x1e76bb(0x78)]['to'](_0x1e76bb(0x8b))}]}),_0x5277c8[_0x1e76bb(0xab)]({'tag':_0x1e76bb(0xb5),'attributes':{'class':['ck',_0x1e76bb(0x7a),_0x1e76bb(0xa4),this[_0x1e76bb(0x78)]['if'](_0x1e76bb(0xb1),_0x1e76bb(0xae),_0x33c3af=>!_0x33c3af)]},'children':[_0x2ada13]}),_0x5277c8;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x9bfad5=_0x59f3;(function(_0x35bae7,_0x121b13){var _0x196e29=_0x59f3,_0x58ae3d=_0x35bae7();while(!![]){try{var _0x460344=-parseInt(_0x196e29(0x7a))/0x1+parseInt(_0x196e29(0x79))/0x2*(-parseInt(_0x196e29(0x71))/0x3)+parseInt(_0x196e29(0x76))/0x4*(-parseInt(_0x196e29(0x73))/0x5)+parseInt(_0x196e29(0x8a))/0x6+-parseInt(_0x196e29(0x83))/0x7*(parseInt(_0x196e29(0x86))/0x8)+parseInt(_0x196e29(0x87))/0x9+parseInt(_0x196e29(0x74))/0xa*(parseInt(_0x196e29(0x78))/0xb);if(_0x460344===_0x121b13)break;else _0x58ae3d['push'](_0x58ae3d['shift']());}catch(_0x5212da){_0x58ae3d['push'](_0x58ae3d['shift']());}}}(_0x562d,0xd5bb5));import{ContextPlugin as _0x24b07d}from'ckeditor5/src/core.js';import{AIChatController as _0x2d93c9}from'./aichatcontroller.js';import{AIEditing as _0x4b832e}from'../aicore/aiediting.js';function _0x562d(){var _0x3f8e5f=['addSelectionToChatContext','7RwzDjt','pluginName','ai.chat.context','212368ropSxw','12315051iwWRGA','isPremiumPlugin','requires','7145940UfFYpM','ai.chat.models','context','13557Zqlagt','sendMessage','2034915XDeMdd','10OekWAy','define','12dCtKTC','AIChat','7572213paoIOB','224Eglryz','618644eyJfTZ','startConversation','isOfficialPlugin','removeSelectionFromChatContext','plugins','config','get','focusPromptInput'];_0x562d=function(){return _0x3f8e5f;};return _0x562d();}import{AIChatUI as _0x2b5dfd}from'./aichatui.js';function _0x59f3(_0xeb7adf,_0x43f427){var _0x562d9d=_0x562d();return _0x59f3=function(_0x59f32a,_0x4340ee){_0x59f32a=_0x59f32a-0x6f;var _0x2cb827=_0x562d9d[_0x59f32a];return _0x2cb827;},_0x59f3(_0xeb7adf,_0x43f427);}import{AIChatHistory as _0xe053f9}from'../aichathistory/aichathistory.js';export class AIChat extends _0x24b07d{static get[_0x9bfad5(0x89)](){return[_0x2d93c9,_0x4b832e,_0x2b5dfd,_0xe053f9];}static get[_0x9bfad5(0x84)](){var _0x48487b=_0x9bfad5;return _0x48487b(0x77);}static get[_0x9bfad5(0x7c)](){return!0x0;}static get[_0x9bfad5(0x88)](){return!0x0;}constructor(_0x564305){var _0x51d70c=_0x9bfad5;super(_0x564305),this[_0x51d70c(0x70)][_0x51d70c(0x7f)][_0x51d70c(0x75)](_0x51d70c(0x85),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x51d70c(0x70)][_0x51d70c(0x7f)][_0x51d70c(0x75)](_0x51d70c(0x6f),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x9bfad5(0x82)](){var _0x427b0c=_0x9bfad5;await this[_0x427b0c(0x70)][_0x427b0c(0x7e)][_0x427b0c(0x80)](_0x2d93c9)[_0x427b0c(0x82)]();}async[_0x9bfad5(0x7b)](){var _0x2d9f08=_0x9bfad5;await this[_0x2d9f08(0x70)][_0x2d9f08(0x7e)][_0x2d9f08(0x80)](_0x2d93c9)[_0x2d9f08(0x7b)]();}async[_0x9bfad5(0x72)]({message:_0x222050,quickActionData:_0x71b045}){var _0x14e109=_0x9bfad5;await this[_0x14e109(0x70)][_0x14e109(0x7e)][_0x14e109(0x80)](_0x2d93c9)[_0x14e109(0x72)]({'message':_0x222050,'quickActionData':_0x71b045});}[_0x9bfad5(0x7d)](){var _0x1a1645=_0x9bfad5;this[_0x1a1645(0x70)][_0x1a1645(0x7e)][_0x1a1645(0x80)](_0x2d93c9)[_0x1a1645(0x7d)]();}[_0x9bfad5(0x81)](){var _0x23e718=_0x9bfad5;this[_0x23e718(0x70)][_0x23e718(0x7e)][_0x23e718(0x80)](_0x2d93c9)[_0x23e718(0x81)]();}}
23
+ var _0x4f85a5=_0x22bd;(function(_0x1c93f1,_0x452c6b){var _0x3ab224=_0x22bd,_0x3afe6e=_0x1c93f1();while(!![]){try{var _0x1571e5=-parseInt(_0x3ab224(0x1f5))/0x1*(-parseInt(_0x3ab224(0x1fc))/0x2)+-parseInt(_0x3ab224(0x1fb))/0x3+-parseInt(_0x3ab224(0x1f7))/0x4*(-parseInt(_0x3ab224(0x205))/0x5)+-parseInt(_0x3ab224(0x1f4))/0x6+-parseInt(_0x3ab224(0x206))/0x7*(parseInt(_0x3ab224(0x1f2))/0x8)+parseInt(_0x3ab224(0x207))/0x9+parseInt(_0x3ab224(0x208))/0xa;if(_0x1571e5===_0x452c6b)break;else _0x3afe6e['push'](_0x3afe6e['shift']());}catch(_0x3f10ef){_0x3afe6e['push'](_0x3afe6e['shift']());}}}(_0x38e5,0x58dc4));import{ContextPlugin as _0x5f439d}from'ckeditor5/src/core.js';import{AIChatController as _0x4c801e}from'./aichatcontroller.js';function _0x22bd(_0x3297ea,_0x27aa7e){var _0x38e5d5=_0x38e5();return _0x22bd=function(_0x22bd07,_0x52eecc){_0x22bd07=_0x22bd07-0x1f2;var _0x514343=_0x38e5d5[_0x22bd07];return _0x514343;},_0x22bd(_0x3297ea,_0x27aa7e);}import{AIEditing as _0x55420c}from'../aicore/aiediting.js';function _0x38e5(){var _0x2f9ebf=['pluginName','676842CAOVPv','2sZJyuL','startConversation','ai.chat.context','isOfficialPlugin','AIChat','focusPromptInput','plugins','ai.chat.models','define','435khEGZb','113610HIVlIK','1948518HHWfZx','3891890NpJmvD','addSelectionToChatContext','config','sendMessage','isPremiumPlugin','344tZSdzM','get','2177994rjtNrI','551059nFHePC','context','22700UwYJbn','removeSelectionFromChatContext','requires'];_0x38e5=function(){return _0x2f9ebf;};return _0x38e5();}import{AIChatUI as _0x56fd0b}from'./aichatui.js';import{AIChatHistory as _0x73f127}from'../aichathistory/aichathistory.js';export class AIChat extends _0x5f439d{static get[_0x4f85a5(0x1f9)](){return[_0x4c801e,_0x55420c,_0x56fd0b,_0x73f127];}static get[_0x4f85a5(0x1fa)](){var _0x14eed7=_0x4f85a5;return _0x14eed7(0x200);}static get[_0x4f85a5(0x1ff)](){return!0x0;}static get[_0x4f85a5(0x20c)](){return!0x0;}constructor(_0x19f3b6){var _0x52e7e5=_0x4f85a5;super(_0x19f3b6),this[_0x52e7e5(0x1f6)][_0x52e7e5(0x20a)][_0x52e7e5(0x204)](_0x52e7e5(0x1fe),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x52e7e5(0x1f6)][_0x52e7e5(0x20a)][_0x52e7e5(0x204)](_0x52e7e5(0x203),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x4f85a5(0x209)](){var _0x1b1d44=_0x4f85a5;await this[_0x1b1d44(0x1f6)][_0x1b1d44(0x202)][_0x1b1d44(0x1f3)](_0x4c801e)[_0x1b1d44(0x209)]();}async[_0x4f85a5(0x1fd)](){var _0x5d212e=_0x4f85a5;await this[_0x5d212e(0x1f6)][_0x5d212e(0x202)][_0x5d212e(0x1f3)](_0x4c801e)[_0x5d212e(0x1fd)]();}async[_0x4f85a5(0x20b)]({message:_0x2d86ad,quickActionData:_0x3a5a7e}){var _0x3d18bb=_0x4f85a5;await this[_0x3d18bb(0x1f6)][_0x3d18bb(0x202)][_0x3d18bb(0x1f3)](_0x4c801e)[_0x3d18bb(0x20b)]({'message':_0x2d86ad,'quickActionData':_0x3a5a7e});}[_0x4f85a5(0x1f8)](){var _0x53edac=_0x4f85a5;this[_0x53edac(0x1f6)][_0x53edac(0x202)][_0x53edac(0x1f3)](_0x4c801e)[_0x53edac(0x1f8)]();}[_0x4f85a5(0x201)](){var _0x249596=_0x4f85a5;this[_0x249596(0x1f6)][_0x249596(0x202)][_0x249596(0x1f3)](_0x4c801e)[_0x249596(0x201)]();}}