@ckeditor/ckeditor5-ai 47.6.1-alpha.1 → 47.6.1

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 (149) 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/aichat/aichat.js +1 -1
  26. package/src/aichat/aichatballoon.js +1 -1
  27. package/src/aichat/aichatcontroller.js +1 -1
  28. package/src/aichat/aichatui.js +1 -1
  29. package/src/aichat/model/aichatcontext.js +1 -1
  30. package/src/aichat/model/aichatconversation.js +1 -1
  31. package/src/aichat/model/aichatinteraction.js +1 -1
  32. package/src/aichat/ui/aichatballoonview.js +1 -1
  33. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  34. package/src/aichat/ui/aichatfeedview.js +1 -1
  35. package/src/aichat/ui/aichatheaderview.js +1 -1
  36. package/src/aichat/ui/aichatview.js +1 -1
  37. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  38. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  42. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  45. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  58. package/src/aichat/utils/eventnames.js +1 -1
  59. package/src/aichat/utils/promisequeue.js +1 -1
  60. package/src/aichathistory/aichathistory.js +1 -1
  61. package/src/aichathistory/aichathistorycontroller.js +1 -1
  62. package/src/aichathistory/aichathistoryui.js +1 -1
  63. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  64. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  65. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  66. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  67. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  68. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  69. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  70. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  71. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  72. package/src/aicore/aiconnector.js +1 -1
  73. package/src/aicore/aiediting.js +1 -1
  74. package/src/aicore/model/aicapabilities.js +1 -1
  75. package/src/aicore/model/aiinteraction.js +1 -1
  76. package/src/aicore/model/aimodels.js +1 -1
  77. package/src/aicore/model/aireply.js +1 -1
  78. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  79. package/src/aicore/pipeline/airesponseparser.js +2 -2
  80. package/src/aicore/ui/aidisclaimerview.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/aisuggestioncontentpartheaderview.js +1 -1
  86. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  87. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  88. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  89. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  90. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  91. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  92. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  93. package/src/aicore/utils/createresizebutton.js +1 -1
  94. package/src/aicore/utils/documentrange.js +1 -1
  95. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  96. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  97. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  98. package/src/aicore/utils/htmlparser.js +1 -1
  99. package/src/aicore/utils/htmlstreamer.js +1 -1
  100. package/src/aieditorintegration/aieditorintegration.js +1 -1
  101. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  102. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  103. package/src/aiquickactions/aiquickactions.js +1 -1
  104. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  105. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  106. package/src/aiquickactions/aiquickactionsui.js +1 -1
  107. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  108. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  109. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  110. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  111. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  112. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  113. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  114. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  115. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  116. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  117. package/src/aireviewcore/aireviewcoreui.js +1 -1
  118. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  119. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  120. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  121. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  122. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  123. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  124. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  125. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  126. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  127. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  128. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  129. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  130. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  131. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  132. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  133. package/src/aireviewmode/aireviewmode.js +1 -1
  134. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  135. package/src/aireviewmode/aireviewmodeui.js +1 -1
  136. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  137. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  138. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  139. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  140. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  141. package/src/aitabs/aitabs.js +1 -1
  142. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  143. package/src/aitranslate/aitranslate.js +1 -1
  144. package/src/aitranslate/aitranslatecontroller.js +1 -1
  145. package/src/aitranslate/aitranslateui.js +1 -1
  146. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  147. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  148. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  149. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f3c5e=_0x246c;function _0x3cfa(){const _0x4d6509=['isDone','parsedMergedContent','data-unstable','unshift','onContentChange','new','node','withoutDiff','sources','removedNodeIds','AI_SUGGESTION_CONTENT_PART_REMOVED','21qgdyRY','aiResponseParser','removed','replyContentUpdated','nextSibling','modified','_setCachedContentParts','583561HTZLps','convertMarkdownToHTML','destroy','172151ULiVOY','push','1166952eMjHNW','replyChangeGroupStateUpdated','1xsDCXM','pending','228hkaPRs','27BhwWUl','stopListening','includes','ai-get-editor-from-context-no-editor','newNodeIds','type','previousSibling','_getCachedContentParts','186RdTyRT','appendContent','splice','set','modifiedNodeIds','_getDifferentChangeGroups','updateChangeGroups','state','5420680DJXtrR','setChangeGroupState','span','done','233296ixECSl','getContentParts','filter','editor','withDiff','areActionsDisabled','modification','cachedSuggestionContentParts','find','merge','changeGroups','color:\x20#808080;\x20font-style:\x20italic','1068618VHmJId','parseAndNormalizeHTML','fire','map','every','parsedContent','change:content','3511210KMgGgX','cloneNode','interactionId','context','index','forEach','length','data-id','documentContextContent','indexOf','ai-reply-get-content-parts-group-not-found','content','changes','locale','aiResponseApplier'];_0x3cfa=function(){return _0x4d6509;};return _0x3cfa();}(function(_0x110d4a,_0x3cb37d){const _0x26c7dc=_0x246c,_0x147297=_0x110d4a();while(!![]){try{const _0x42077b=parseInt(_0x26c7dc(0x15c))/0x1*(-parseInt(_0x26c7dc(0x17f))/0x2)+-parseInt(_0x26c7dc(0x14e))/0x3*(parseInt(_0x26c7dc(0x173))/0x4)+parseInt(_0x26c7dc(0x134))/0x5+parseInt(_0x26c7dc(0x167))/0x6*(parseInt(_0x26c7dc(0x158))/0x7)+-parseInt(_0x26c7dc(0x15a))/0x8*(-parseInt(_0x26c7dc(0x15f))/0x9)+parseInt(_0x26c7dc(0x16f))/0xa+parseInt(_0x26c7dc(0x155))/0xb*(-parseInt(_0x26c7dc(0x15e))/0xc);if(_0x42077b===_0x3cb37d)break;else _0x147297['push'](_0x147297['shift']());}catch(_0x2a15c7){_0x147297['push'](_0x147297['shift']());}}}(_0x3cfa,0x788ba));import{CKEditorError as _0x4b9070,ObservableMixin as _0x1042f,uid as _0x3dafb0}from'ckeditor5/src/utils.js';import{Element as _0x4a26ec,findAll as _0x186b09,getAttribute as _0x483d82,getParents as _0x5e6e0d,Document as _0x55b9cd,parse as _0x53569b,Text as _0x1caeaa}from'../utils/htmlparser.js';import{AIResponseParser as _0x3b60a9}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x48ccda}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x28883a}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0xc21a9e}from'../utils/common-translations.js';function _0x246c(_0x3dfa37,_0x5de6f8){const _0x3cfab7=_0x3cfa();return _0x246c=function(_0x246cf3,_0x4ba954){_0x246cf3=_0x246cf3-0x133;let _0x4f9ba1=_0x3cfab7[_0x246cf3];return _0x4f9ba1;},_0x246c(_0x3dfa37,_0x5de6f8);}import{cloneDeep as _0x3b335f}from'es-toolkit';export class AIReply extends _0x1042f(){['id'];[_0x3f3c5e(0x136)];[_0x3f3c5e(0x164)];[_0x3f3c5e(0x14b)]=[];[_0x3f3c5e(0x184)]=new _0x55b9cd([]);[_0x3f3c5e(0x144)]=new _0x55b9cd([]);[_0x3f3c5e(0x17d)]=[];[_0x3f3c5e(0x178)]=!0x1;[_0x3f3c5e(0x13c)];[_0x3f3c5e(0x14f)];[_0x3f3c5e(0x142)];[_0x3f3c5e(0x176)];[_0x3f3c5e(0x17a)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x1b1d28,content:_0x40ff8c='',isDone:_0x490daa=!0x1,interactionId:_0x43c8de,areActionsDisabled:_0x3a5e1b,documentContextContent:_0x4dc144,editor:_0x1f8f8e,id:_0x2c56b4}){const _0x3ddc67=_0x3f3c5e;super(),this['id']=_0x2c56b4||_0x3dafb0(),this[_0x3ddc67(0x136)]=_0x43c8de,this[_0x3ddc67(0x164)]=_0x1b1d28,this[_0x3ddc67(0x178)]=!!_0x3a5e1b,this[_0x3ddc67(0x176)]=_0x1f8f8e,this[_0x3ddc67(0x14f)]=new _0x3b60a9(),this[_0x3ddc67(0x142)]=new _0x48ccda(),this[_0x3ddc67(0x13c)]=_0x53569b(_0x4dc144||''),this[_0x3ddc67(0x16a)](_0x3ddc67(0x143),_0x490daa),this['on'](_0x3ddc67(0x133),()=>{const _0x2f79be=_0x3ddc67;this[_0x2f79be(0x147)]();}),this[_0x3ddc67(0x16a)](_0x3ddc67(0x13f),_0x40ff8c);}[_0x3f3c5e(0x168)](_0x45943b){const _0x5c6c62=_0x3f3c5e;this[_0x5c6c62(0x16a)](_0x5c6c62(0x13f),this[_0x5c6c62(0x13f)]+_0x45943b);}[_0x3f3c5e(0x172)](){const _0x3e8cf6=_0x3f3c5e;this[_0x3e8cf6(0x143)]||(this[_0x3e8cf6(0x16a)](_0x3e8cf6(0x143),!0x0),this[_0x3e8cf6(0x147)]());}[_0x3f3c5e(0x157)](){const _0x4d6d19=_0x3f3c5e;this[_0x4d6d19(0x160)]();}[_0x3f3c5e(0x170)](_0x2420fa,_0x247869){const _0x31bd53=_0x3f3c5e;this[_0x31bd53(0x17d)][_0x2420fa][_0x31bd53(0x16e)]=_0x247869,this[_0x31bd53(0x181)](_0x31bd53(0x15b),{'reply':this,'index':_0x2420fa,'state':_0x247869});}[_0x3f3c5e(0x174)]({showDiff:_0x4810d2,groupIndex:_0x1cf941}){const _0x33b15a=_0x3f3c5e;if(!this[_0x33b15a(0x176)])throw new _0x4b9070(_0x33b15a(0x162),null,{'aiReply':this});const _0x412f0e=this[_0x33b15a(0x166)](_0x4810d2,_0x1cf941);if(_0x412f0e)return _0x412f0e;let _0x2b2659=[];if(void 0x0===_0x1cf941)_0x2b2659=this[_0x33b15a(0x17d)];else{const _0x5763c2=this[_0x33b15a(0x17d)][_0x33b15a(0x17b)](({index:_0x45df68})=>_0x45df68===_0x1cf941);if(!_0x5763c2)throw new _0x4b9070(_0x33b15a(0x13e),null,{'aiReply':this,'groupIndex':_0x1cf941});_0x2b2659=[_0x5763c2];}const _0x458b78=_0x28883a({'editor':this[_0x33b15a(0x176)],'showDiff':_0x4810d2,'changeGroups':_0x2b2659,'documentContextContent':this[_0x33b15a(0x13c)]});return this[_0x33b15a(0x154)](_0x4810d2,_0x458b78),_0x458b78;}[_0x3f3c5e(0x166)](_0x7fe51c,_0x46e518){const _0x3df08d=_0x3f3c5e,_0x28b65=_0x7fe51c?_0x3df08d(0x177):_0x3df08d(0x14a);if(!this[_0x3df08d(0x17a)][_0x28b65][_0x3df08d(0x13a)])return null;const _0x28e6fa=this[_0x3df08d(0x17a)][_0x28b65];if(void 0x0===_0x46e518)return _0x28e6fa[_0x3df08d(0x13a)]>0x0&&_0x28e6fa[_0x3df08d(0x13a)]!==this[_0x3df08d(0x17d)][_0x3df08d(0x13a)]?(this[_0x3df08d(0x154)](_0x7fe51c,null),null):_0x3b335f(_0x28e6fa);{const _0x2dae3f=_0x28e6fa[_0x3df08d(0x17b)](({index:_0x1dc2cc})=>_0x1dc2cc===_0x46e518);if(_0x2dae3f)return[_0x3b335f(_0x2dae3f)];}return null;}[_0x3f3c5e(0x154)](_0x2e1b7d,_0x4de874){const _0x26cd5d=_0x3f3c5e,_0x5da61d=_0x2e1b7d?_0x26cd5d(0x177):_0x26cd5d(0x14a);_0x4de874?_0x4de874[_0x26cd5d(0x139)](_0xfe1e9d=>{const _0x19a953=_0x26cd5d,_0xfac68d=this[_0x19a953(0x17a)][_0x5da61d],_0x333b3e=_0xfac68d[_0x19a953(0x17b)](({index:_0x139aa6})=>_0x139aa6===_0xfe1e9d[_0x19a953(0x138)]);if(_0x333b3e){const _0x2feca0=_0xfac68d[_0x19a953(0x13d)](_0x333b3e);_0xfac68d[_0x19a953(0x169)](_0x2feca0,0x1,_0xfe1e9d);}else _0xfac68d[_0x19a953(0x159)](_0xfe1e9d);}):this[_0x26cd5d(0x17a)][_0x5da61d][_0x26cd5d(0x13a)]=0x0;}[_0x3f3c5e(0x147)](){const _0x160c85=_0x3f3c5e;if(_0x160c85(0x179)===this[_0x160c85(0x164)]){this[_0x160c85(0x184)]=this[_0x160c85(0x14f)][_0x160c85(0x180)](this[_0x160c85(0x13f)]);const _0x3e4b2d=this[_0x160c85(0x17d)];this[_0x160c85(0x16d)]();const _0x2c6630=this[_0x160c85(0x16c)](_0x3e4b2d,this[_0x160c85(0x17d)]);(_0x2c6630[_0x160c85(0x13a)]||this[_0x160c85(0x143)])&&(this[_0x160c85(0x181)](_0x160c85(0x151),this,_0x2c6630),this[_0x160c85(0x17a)][_0x160c85(0x177)][_0x160c85(0x13a)]=this[_0x160c85(0x17a)][_0x160c85(0x14a)][_0x160c85(0x13a)]=0x0);}else this[_0x160c85(0x184)]=this[_0x160c85(0x14f)][_0x160c85(0x156)](this[_0x160c85(0x13f)]),this[_0x160c85(0x181)](_0x160c85(0x151),this);}[_0x3f3c5e(0x16c)](_0x4db447,_0x353a7b){const _0x453998=_0x3f3c5e,_0x273b96=[];for(const _0x227401 of _0x353a7b){const _0x46f63d=_0x4db447[_0x227401[_0x453998(0x138)]];_0x46f63d?_0x46f63d[_0x453998(0x140)][_0x453998(0x13a)]!==_0x227401[_0x453998(0x140)][_0x453998(0x13a)]?_0x273b96[_0x453998(0x159)](_0x227401):_0x46f63d[_0x453998(0x140)][_0x453998(0x139)]((_0x7b5275,_0x4b1cbb)=>{const _0x40de04=_0x453998,_0x39144f=_0x227401[_0x40de04(0x140)][_0x4b1cbb];_0x7b5275['id']!==_0x39144f['id']&&_0x273b96[_0x40de04(0x159)](_0x227401);}):_0x273b96[_0x453998(0x159)](_0x227401);}return _0x273b96;}[_0x3f3c5e(0x16d)](){const _0x3dec09=_0x3f3c5e,_0x1b053e=new _0x4a26ec('p',{},[new _0x4a26ec(_0x3dec09(0x171),{'style':_0x3dec09(0x17e)},[new _0x1caeaa(_0xc21a9e(this[_0x3dec09(0x176)][_0x3dec09(0x141)],_0x3dec09(0x14d)))])]),_0x210aff=this[_0x3dec09(0x142)][_0x3dec09(0x17c)](this[_0x3dec09(0x184)],this[_0x3dec09(0x13c)][_0x3dec09(0x135)](!0x0),{'markUnstableElements':!this[_0x3dec09(0x143)],'replaceRemovedWith':_0x1b053e,'cutAfterLastChange':!this[_0x3dec09(0x143)]});if(!_0x210aff[_0x3dec09(0x16b)][_0x3dec09(0x13a)]&&!this[_0x3dec09(0x143)])return;this[_0x3dec09(0x144)]=_0x210aff[_0x3dec09(0x184)];let _0x1684e2=[];if(_0x186b09(_0x4136fe=>{const _0x3a024f=_0x3dec09,_0x48e098=_0x483d82(_0x4136fe,_0x3a024f(0x13b));if(!_0x48e098||!_0xc1c46(_0x48e098))return!0x1;const _0x4b67db=[_0x4136fe,..._0x5e6e0d(_0x4136fe)]['at'](-0x2);if(_0x4136fe!=_0x4b67db){const _0x412c39=_0x483d82(_0x4b67db,_0x3a024f(0x13b));_0xc1c46(_0x412c39)||(_0x1684e2[_0x3a024f(0x159)]({'node':_0x4b67db,'id':_0x412c39,'type':_0x3a024f(0x153)}),_0x210aff[_0x3a024f(0x16b)][_0x3a024f(0x159)](_0x412c39));}else _0x210aff[_0x3a024f(0x16b)][_0x3a024f(0x161)](_0x48e098)?_0x1684e2[_0x3a024f(0x159)]({'node':_0x4136fe,'type':_0x3a024f(0x153),'id':_0x48e098}):_0x210aff[_0x3a024f(0x163)][_0x3a024f(0x161)](_0x48e098)?_0x1684e2[_0x3a024f(0x159)]({'node':_0x4136fe,'type':_0x3a024f(0x148),'id':_0x48e098,'anchorId':_0x483d82(_0x4136fe[_0x3a024f(0x165)],_0x3a024f(0x13b))}):_0x1684e2[_0x3a024f(0x159)]({'node':_0x4136fe,'type':_0x3a024f(0x150),'id':_0x48e098});return!0x0;},this[_0x3dec09(0x144)]),_0x1684e2=_0x1684e2[_0x3dec09(0x175)](({node:_0x24e7ab})=>[..._0x5e6e0d(_0x24e7ab),_0x24e7ab][_0x3dec09(0x183)](_0x37aa4d=>!_0x483d82(_0x37aa4d,_0x3dec09(0x145)))),0x0==_0x1684e2[_0x3dec09(0x13a)])return;const _0x8fe940=[[_0x1684e2[0x0]]];for(let _0x6a8059=0x1;_0x6a8059<_0x1684e2[_0x3dec09(0x13a)];_0x6a8059++){const _0x5d83fb=_0x8fe940[_0x8fe940[_0x3dec09(0x13a)]-0x1],_0x285eba=_0x5d83fb[_0x5d83fb[_0x3dec09(0x13a)]-0x1];_0x1684e2[_0x6a8059][_0x3dec09(0x149)][_0x3dec09(0x165)]==_0x285eba[_0x3dec09(0x149)]&&_0x3dec09(0x153)!=_0x1684e2[_0x6a8059][_0x3dec09(0x164)]&&_0x3dec09(0x153)!=_0x285eba[_0x3dec09(0x164)]?_0x5d83fb[_0x3dec09(0x159)](_0x1684e2[_0x6a8059]):_0x8fe940[_0x3dec09(0x159)]([_0x1684e2[_0x6a8059]]);}for(const _0xe89dac of _0x8fe940){const _0x3e079e=_0xe89dac[0x0],_0x5ad157=_0xe89dac[_0xe89dac[_0x3dec09(0x13a)]-0x1],_0x5d1947=_0x2cf2b9(_0x3e079e[_0x3dec09(0x149)][_0x3dec09(0x165)]);_0x5d1947&&_0xe89dac[_0x3dec09(0x146)](_0x5d1947);const _0x25e5e1=_0x2cf2b9(_0x5ad157[_0x3dec09(0x149)][_0x3dec09(0x152)]);_0x25e5e1&&_0xe89dac[_0x3dec09(0x159)](_0x25e5e1);}function _0xc1c46(_0x444052){const _0x24a0a4=_0x3dec09;return _0x210aff[_0x24a0a4(0x16b)][_0x24a0a4(0x161)](_0x444052)||_0x210aff[_0x24a0a4(0x163)][_0x24a0a4(0x161)](_0x444052)||_0x210aff[_0x24a0a4(0x14c)][_0x24a0a4(0x161)](_0x444052);}function _0x2cf2b9(_0x459abf){const _0x4d5bd6=_0x3dec09;if(_0x459abf&&_0x483d82(_0x459abf,_0x4d5bd6(0x13b))&&!_0x483d82(_0x459abf,_0x4d5bd6(0x145))){const _0x38e06d=_0x483d82(_0x459abf,_0x4d5bd6(0x13b));if(!_0xc1c46(_0x38e06d))return{'node':_0x459abf,'type':_0x4d5bd6(0x137),'id':_0x38e06d};}return null;}this[_0x3dec09(0x17d)]=_0x8fe940[_0x3dec09(0x182)]((_0x290f95,_0x4ee8c5)=>({'changes':_0x290f95,'state':_0x3dec09(0x15d),'index':_0x4ee8c5}));}}
23
+ const _0x49d78a=_0x4dfb;function _0x4dfb(_0x2bc9e1,_0x3e46cb){const _0x3d2c9f=_0x3d2c();return _0x4dfb=function(_0x4dfb00,_0x38fc5f){_0x4dfb00=_0x4dfb00-0x1e5;let _0x16e028=_0x3d2c9f[_0x4dfb00];return _0x16e028;},_0x4dfb(_0x2bc9e1,_0x3e46cb);}(function(_0x39750a,_0x47a01e){const _0x58d2b3=_0x4dfb,_0x5a5e8d=_0x39750a();while(!![]){try{const _0x2a358e=parseInt(_0x58d2b3(0x234))/0x1*(parseInt(_0x58d2b3(0x225))/0x2)+parseInt(_0x58d2b3(0x224))/0x3+-parseInt(_0x58d2b3(0x208))/0x4+-parseInt(_0x58d2b3(0x1e6))/0x5*(-parseInt(_0x58d2b3(0x213))/0x6)+parseInt(_0x58d2b3(0x1f9))/0x7*(-parseInt(_0x58d2b3(0x1f7))/0x8)+-parseInt(_0x58d2b3(0x203))/0x9*(parseInt(_0x58d2b3(0x21e))/0xa)+parseInt(_0x58d2b3(0x1e9))/0xb;if(_0x2a358e===_0x47a01e)break;else _0x5a5e8d['push'](_0x5a5e8d['shift']());}catch(_0x252085){_0x5a5e8d['push'](_0x5a5e8d['shift']());}}}(_0x3d2c,0x72fe1));import{CKEditorError as _0x3195d3,ObservableMixin as _0x58cad9,uid as _0x36c775}from'ckeditor5/src/utils.js';import{Element as _0x395757,findAll as _0xdc7c2e,getAttribute as _0x58664d,getParents as _0x585239,Document as _0x5a2250,parse as _0x3b0df1,Text as _0x2b474c}from'../utils/htmlparser.js';import{AIResponseParser as _0x10aeea}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x4531d8}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x1fc053}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x3f3c72}from'../utils/common-translations.js';import{cloneDeep as _0x1d8426}from'es-toolkit';export class AIReply extends _0x58cad9(){['id'];[_0x49d78a(0x210)];[_0x49d78a(0x21f)];[_0x49d78a(0x1ea)]=[];[_0x49d78a(0x217)]=new _0x5a2250([]);[_0x49d78a(0x215)]=new _0x5a2250([]);[_0x49d78a(0x22b)]=[];[_0x49d78a(0x20c)]=!0x1;[_0x49d78a(0x209)];[_0x49d78a(0x235)];[_0x49d78a(0x233)];[_0x49d78a(0x219)];[_0x49d78a(0x1e7)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0xf93d4d,content:_0x110f56='',isDone:_0x4205f0=!0x1,interactionId:_0x51c314,areActionsDisabled:_0x5a69c8,documentContextContent:_0x5bd979,editor:_0x331353,id:_0x4ea223}){const _0x26325f=_0x49d78a;super(),this['id']=_0x4ea223||_0x36c775(),this[_0x26325f(0x210)]=_0x51c314,this[_0x26325f(0x21f)]=_0xf93d4d,this[_0x26325f(0x20c)]=!!_0x5a69c8,this[_0x26325f(0x219)]=_0x331353,this[_0x26325f(0x235)]=new _0x10aeea(),this[_0x26325f(0x233)]=new _0x4531d8(),this[_0x26325f(0x209)]=_0x3b0df1(_0x5bd979||''),this[_0x26325f(0x200)](_0x26325f(0x228),_0x4205f0),this['on'](_0x26325f(0x1f4),()=>{const _0x15b736=_0x26325f;this[_0x15b736(0x211)]();}),this[_0x26325f(0x200)](_0x26325f(0x1ec),_0x110f56);}[_0x49d78a(0x1ef)](_0xb9fd01){const _0x4c2d10=_0x49d78a;this[_0x4c2d10(0x200)](_0x4c2d10(0x1ec),this[_0x4c2d10(0x1ec)]+_0xb9fd01);}[_0x49d78a(0x20f)](){const _0x2fdf69=_0x49d78a;this[_0x2fdf69(0x228)]||(this[_0x2fdf69(0x200)](_0x2fdf69(0x228),!0x0),this[_0x2fdf69(0x211)]());}[_0x49d78a(0x22d)](){const _0x4c0be1=_0x49d78a;this[_0x4c0be1(0x22a)]();}[_0x49d78a(0x1e5)](_0x54724b,_0x21be95){const _0x317a2d=_0x49d78a;this[_0x317a2d(0x22b)][_0x54724b][_0x317a2d(0x1eb)]=_0x21be95,this[_0x317a2d(0x1fd)](_0x317a2d(0x1fb),{'reply':this,'index':_0x54724b,'state':_0x21be95});}[_0x49d78a(0x229)]({showDiff:_0x26f075,groupIndex:_0x5bfd63}){const _0x4f775d=_0x49d78a;if(!this[_0x4f775d(0x219)])throw new _0x3195d3(_0x4f775d(0x1fc),null,{'aiReply':this});const _0x44cb14=this[_0x4f775d(0x227)](_0x26f075,_0x5bfd63);if(_0x44cb14)return _0x44cb14;let _0x32fe02=[];if(void 0x0===_0x5bfd63)_0x32fe02=this[_0x4f775d(0x22b)];else{const _0x536347=this[_0x4f775d(0x22b)][_0x4f775d(0x1ee)](({index:_0x468591})=>_0x468591===_0x5bfd63);if(!_0x536347)throw new _0x3195d3(_0x4f775d(0x223),null,{'aiReply':this,'groupIndex':_0x5bfd63});_0x32fe02=[_0x536347];}const _0x7a9b15=_0x1fc053({'editor':this[_0x4f775d(0x219)],'showDiff':_0x26f075,'changeGroups':_0x32fe02,'documentContextContent':this[_0x4f775d(0x209)]});return this[_0x4f775d(0x20e)](_0x26f075,_0x7a9b15),_0x7a9b15;}[_0x49d78a(0x227)](_0x2bee16,_0x257f81){const _0x52d575=_0x49d78a,_0x4f752b=_0x2bee16?_0x52d575(0x21d):_0x52d575(0x222);if(!this[_0x52d575(0x1e7)][_0x4f752b][_0x52d575(0x22f)])return null;const _0x2dee5e=this[_0x52d575(0x1e7)][_0x4f752b];if(void 0x0===_0x257f81)return _0x2dee5e[_0x52d575(0x22f)]>0x0&&_0x2dee5e[_0x52d575(0x22f)]!==this[_0x52d575(0x22b)][_0x52d575(0x22f)]?(this[_0x52d575(0x20e)](_0x2bee16,null),null):_0x1d8426(_0x2dee5e);{const _0x55289e=_0x2dee5e[_0x52d575(0x1ee)](({index:_0x4aa0d0})=>_0x4aa0d0===_0x257f81);if(_0x55289e)return[_0x1d8426(_0x55289e)];}return null;}[_0x49d78a(0x20e)](_0x561a71,_0x37bd97){const _0x1b3e47=_0x49d78a,_0x581a45=_0x561a71?_0x1b3e47(0x21d):_0x1b3e47(0x222);_0x37bd97?_0x37bd97[_0x1b3e47(0x1f0)](_0x59893e=>{const _0x572a9f=_0x1b3e47,_0x2d1e5c=this[_0x572a9f(0x1e7)][_0x581a45],_0x4dfc2f=_0x2d1e5c[_0x572a9f(0x1ee)](({index:_0x360e3b})=>_0x360e3b===_0x59893e[_0x572a9f(0x218)]);if(_0x4dfc2f){const _0x21d6b3=_0x2d1e5c[_0x572a9f(0x21b)](_0x4dfc2f);_0x2d1e5c[_0x572a9f(0x1f2)](_0x21d6b3,0x1,_0x59893e);}else _0x2d1e5c[_0x572a9f(0x212)](_0x59893e);}):this[_0x1b3e47(0x1e7)][_0x581a45][_0x1b3e47(0x22f)]=0x0;}[_0x49d78a(0x211)](){const _0x19ed5d=_0x49d78a;if(_0x19ed5d(0x221)===this[_0x19ed5d(0x21f)]){this[_0x19ed5d(0x217)]=this[_0x19ed5d(0x235)][_0x19ed5d(0x1ff)](this[_0x19ed5d(0x1ec)]);const _0x3878fe=this[_0x19ed5d(0x22b)];this[_0x19ed5d(0x20d)]();const _0x473951=this[_0x19ed5d(0x204)](_0x3878fe,this[_0x19ed5d(0x22b)]);(_0x473951[_0x19ed5d(0x22f)]||this[_0x19ed5d(0x228)])&&(this[_0x19ed5d(0x1fd)](_0x19ed5d(0x220),this,_0x473951),this[_0x19ed5d(0x1e7)][_0x19ed5d(0x21d)][_0x19ed5d(0x22f)]=this[_0x19ed5d(0x1e7)][_0x19ed5d(0x222)][_0x19ed5d(0x22f)]=0x0);}else this[_0x19ed5d(0x217)]=this[_0x19ed5d(0x235)][_0x19ed5d(0x205)](this[_0x19ed5d(0x1ec)]),this[_0x19ed5d(0x1fd)](_0x19ed5d(0x220),this);}[_0x49d78a(0x204)](_0x5b4a50,_0x415311){const _0x52d323=_0x49d78a,_0x30d8a3=[];for(const _0x1b4377 of _0x415311){const _0x5536d1=_0x5b4a50[_0x1b4377[_0x52d323(0x218)]];_0x5536d1?_0x5536d1[_0x52d323(0x226)][_0x52d323(0x22f)]!==_0x1b4377[_0x52d323(0x226)][_0x52d323(0x22f)]?_0x30d8a3[_0x52d323(0x212)](_0x1b4377):_0x5536d1[_0x52d323(0x226)][_0x52d323(0x1f0)]((_0xf73e55,_0x46cdc4)=>{const _0x1e3170=_0x52d323,_0x3b1b01=_0x1b4377[_0x1e3170(0x226)][_0x46cdc4];_0xf73e55['id']!==_0x3b1b01['id']&&_0x30d8a3[_0x1e3170(0x212)](_0x1b4377);}):_0x30d8a3[_0x52d323(0x212)](_0x1b4377);}return _0x30d8a3;}[_0x49d78a(0x20d)](){const _0x3f6d62=_0x49d78a,_0x516e4c=new _0x395757('p',{},[new _0x395757(_0x3f6d62(0x21a),{'style':_0x3f6d62(0x22e)},[new _0x2b474c(_0x3f3c72(this[_0x3f6d62(0x219)][_0x3f6d62(0x1e8)],_0x3f6d62(0x1f5)))])]),_0x25db5a=this[_0x3f6d62(0x233)][_0x3f6d62(0x1f6)](this[_0x3f6d62(0x217)],this[_0x3f6d62(0x209)][_0x3f6d62(0x206)](!0x0),{'markUnstableElements':!this[_0x3f6d62(0x228)],'replaceRemovedWith':_0x516e4c,'cutAfterLastChange':!this[_0x3f6d62(0x228)]});if(!_0x25db5a[_0x3f6d62(0x216)][_0x3f6d62(0x22f)]&&!this[_0x3f6d62(0x228)])return;this[_0x3f6d62(0x215)]=_0x25db5a[_0x3f6d62(0x217)];let _0x19658c=[];if(_0xdc7c2e(_0x63b07a=>{const _0x37ba10=_0x3f6d62,_0x5e00bb=_0x58664d(_0x63b07a,_0x37ba10(0x1fe));if(!_0x5e00bb||!_0x51f5fd(_0x5e00bb))return!0x1;const _0x240410=[_0x63b07a,..._0x585239(_0x63b07a)]['at'](-0x2);if(_0x63b07a!=_0x240410){const _0x5eabc4=_0x58664d(_0x240410,_0x37ba10(0x1fe));_0x51f5fd(_0x5eabc4)||(_0x19658c[_0x37ba10(0x212)]({'node':_0x240410,'id':_0x5eabc4,'type':_0x37ba10(0x230)}),_0x25db5a[_0x37ba10(0x216)][_0x37ba10(0x212)](_0x5eabc4));}else _0x25db5a[_0x37ba10(0x216)][_0x37ba10(0x1fa)](_0x5e00bb)?_0x19658c[_0x37ba10(0x212)]({'node':_0x63b07a,'type':_0x37ba10(0x230),'id':_0x5e00bb}):_0x25db5a[_0x37ba10(0x214)][_0x37ba10(0x1fa)](_0x5e00bb)?_0x19658c[_0x37ba10(0x212)]({'node':_0x63b07a,'type':_0x37ba10(0x207),'id':_0x5e00bb,'anchorId':_0x58664d(_0x63b07a[_0x37ba10(0x1f8)],_0x37ba10(0x1fe))}):_0x19658c[_0x37ba10(0x212)]({'node':_0x63b07a,'type':_0x37ba10(0x201),'id':_0x5e00bb});return!0x0;},this[_0x3f6d62(0x215)]),_0x19658c=_0x19658c[_0x3f6d62(0x232)](({node:_0x29c9f4})=>[..._0x585239(_0x29c9f4),_0x29c9f4][_0x3f6d62(0x22c)](_0x3a7fcd=>!_0x58664d(_0x3a7fcd,_0x3f6d62(0x21c)))),0x0==_0x19658c[_0x3f6d62(0x22f)])return;const _0x32f43a=[[_0x19658c[0x0]]];for(let _0xa21acf=0x1;_0xa21acf<_0x19658c[_0x3f6d62(0x22f)];_0xa21acf++){const _0x129611=_0x32f43a[_0x32f43a[_0x3f6d62(0x22f)]-0x1],_0x32ef8a=_0x129611[_0x129611[_0x3f6d62(0x22f)]-0x1];_0x19658c[_0xa21acf][_0x3f6d62(0x231)][_0x3f6d62(0x1f8)]==_0x32ef8a[_0x3f6d62(0x231)]&&_0x3f6d62(0x230)!=_0x19658c[_0xa21acf][_0x3f6d62(0x21f)]&&_0x3f6d62(0x230)!=_0x32ef8a[_0x3f6d62(0x21f)]?_0x129611[_0x3f6d62(0x212)](_0x19658c[_0xa21acf]):_0x32f43a[_0x3f6d62(0x212)]([_0x19658c[_0xa21acf]]);}for(const _0x515fba of _0x32f43a){const _0x1203fe=_0x515fba[0x0],_0x21ef57=_0x515fba[_0x515fba[_0x3f6d62(0x22f)]-0x1],_0x3ecf96=_0x104373(_0x1203fe[_0x3f6d62(0x231)][_0x3f6d62(0x1f8)]);_0x3ecf96&&_0x515fba[_0x3f6d62(0x20b)](_0x3ecf96);const _0x3f7661=_0x104373(_0x21ef57[_0x3f6d62(0x231)][_0x3f6d62(0x1ed)]);_0x3f7661&&_0x515fba[_0x3f6d62(0x212)](_0x3f7661);}function _0x51f5fd(_0x486158){const _0x2c8c0a=_0x3f6d62;return _0x25db5a[_0x2c8c0a(0x216)][_0x2c8c0a(0x1fa)](_0x486158)||_0x25db5a[_0x2c8c0a(0x214)][_0x2c8c0a(0x1fa)](_0x486158)||_0x25db5a[_0x2c8c0a(0x1f1)][_0x2c8c0a(0x1fa)](_0x486158);}function _0x104373(_0x53ba17){const _0x2b4f4e=_0x3f6d62;if(_0x53ba17&&_0x58664d(_0x53ba17,_0x2b4f4e(0x1fe))&&!_0x58664d(_0x53ba17,_0x2b4f4e(0x21c))){const _0x423d19=_0x58664d(_0x53ba17,_0x2b4f4e(0x1fe));if(!_0x51f5fd(_0x423d19))return{'node':_0x53ba17,'type':_0x2b4f4e(0x1f3),'id':_0x423d19};}return null;}this[_0x3f6d62(0x22b)]=_0x32f43a[_0x3f6d62(0x20a)]((_0x40856d,_0xb9db14)=>({'changes':_0x40856d,'state':_0x3f6d62(0x202),'index':_0xb9db14}));}}function _0x3d2c(){const _0xdf018e=['removedNodeIds','splice','context','change:content','AI_SUGGESTION_CONTENT_PART_REMOVED','merge','7544JCtVfa','previousSibling','1925YcvhZC','includes','replyChangeGroupStateUpdated','ai-get-editor-from-context-no-editor','fire','data-id','parseAndNormalizeHTML','set','removed','pending','691299DAwtiB','_getDifferentChangeGroups','convertMarkdownToHTML','cloneNode','new','1497672YZmApR','documentContextContent','map','unshift','areActionsDisabled','updateChangeGroups','_setCachedContentParts','done','interactionId','onContentChange','push','48CPMFZF','newNodeIds','parsedMergedContent','modifiedNodeIds','parsedContent','index','editor','span','indexOf','data-unstable','withDiff','70jyipys','type','replyContentUpdated','modification','withoutDiff','ai-reply-get-content-parts-group-not-found','1267017cOBpEh','1170702KDrnAe','changes','_getCachedContentParts','isDone','getContentParts','stopListening','changeGroups','every','destroy','color:\x20#808080;\x20font-style:\x20italic','length','modified','node','filter','aiResponseApplier','1cfhsnm','aiResponseParser','setChangeGroupState','115725nXcQfE','cachedSuggestionContentParts','locale','4945369Hnrnuj','sources','state','content','nextSibling','find','appendContent','forEach'];_0x3d2c=function(){return _0xdf018e;};return _0x3d2c();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4e90(){const _0x3ea4a8=['580305BGDEWI','from','indexOf','70910REtZKX','has','afterbegin','removedIds','_existingDataIds','_findReferenceNode','nodeType','_removeSpecialComments','lastTouchedId','reverse','map','newIds','_storeDeletedElementIds','lastChild','afterend','88EYatbT','_isExistingContentComment','_insertNodes','2341768bABczZ','_isDelNode','290VgINMP','length','filter','trim','replaceRemovedWith','data-wrapped-id','data-id','data-removed','forEach','beforebegin','modifiedIds','invalidIds','previousSibling','merge','push','cloneNode','true','new-element','_markUnstableElements','_generateUid','slice','_markWrappedElements','2701965NyCjjK','markUnstableElementsDepth','_isNewNode','markUnstableElements','_isExistingNode','cutAfterLastChange','_findFallbackReferenceNode','_findNextElementWithDataId','_replaceNode','nextSibling','_getUid','205590yjORYl','6TAzNJo','childNodes','_getNodeDataId','parentNode','_touchedNodesState','_markLastTagElementUnstable','match','splice','_hasWrappedParent','includes','135xFVeTO','2772RJUJxb','583212QMxiPi','_findPrevElementWithDataId','data-unstable'];_0x4e90=function(){return _0x3ea4a8;};return _0x4e90();}const _0x16daf5=_0x3ac4;(function(_0xf7c5e2,_0x37fd3f){const _0x2c1b75=_0x3ac4,_0x458320=_0xf7c5e2();while(!![]){try{const _0x1924f7=-parseInt(_0x2c1b75(0x1a4))/0x1+parseInt(_0x2c1b75(0x176))/0x2*(parseInt(_0x2c1b75(0x1a3))/0x3)+parseInt(_0x2c1b75(0x174))/0x4+-parseInt(_0x2c1b75(0x18c))/0x5*(-parseInt(_0x2c1b75(0x198))/0x6)+-parseInt(_0x2c1b75(0x162))/0x7*(parseInt(_0x2c1b75(0x171))/0x8)+parseInt(_0x2c1b75(0x1a2))/0x9*(-parseInt(_0x2c1b75(0x197))/0xa)+parseInt(_0x2c1b75(0x1a7))/0xb;if(_0x1924f7===_0x37fd3f)break;else _0x458320['push'](_0x458320['shift']());}catch(_0x453571){_0x458320['push'](_0x458320['shift']());}}}(_0x4e90,0x4b927));function _0x3ac4(_0x1f68be,_0x5380c8){const _0x4e9064=_0x4e90();return _0x3ac4=function(_0x3ac411,_0xaba6ac){_0x3ac411=_0x3ac411-0x162;let _0x8bbb5d=_0x4e9064[_0x3ac411];return _0x8bbb5d;},_0x3ac4(_0x1f68be,_0x5380c8);}import{ObservableMixin as _0x271b49,uid as _0x5ba894}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x468233,findByAttribute as _0x2fc38a,getAttribute as _0x566cf2,isComment as _0x45031a,isTag as _0x9f611,insertElement as _0x4b8d1e,moveElement as _0x1753bb,removeElement as _0x22bddd,replaceElement as _0x1e64bd,serialize as _0x100daa,setAttribute as _0x56d77e,clone as _0x272f6e,findAllComments as _0x4fede5,getParents as _0x36ec9f,getNodeNestingLevel as _0x4fdf7d,areNodesSame as _0x462f9d,removeElementsAfter as _0x2902ae}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x271b49(){[_0x16daf5(0x189)];[_0x16daf5(0x19c)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x16daf5(0x166)]=new Set();constructor(_0x26dba6){const _0x43ae56=_0x16daf5;super(),this[_0x43ae56(0x189)]=_0x26dba6||_0x5ba894;}[_0x16daf5(0x183)](_0x1fbdc9,_0xe80f5f,_0xbb8f55){const _0x226510=_0x16daf5,_0xeea8ef=_0x272f6e(_0x1fbdc9);if(0x0===_0xe80f5f[_0x226510(0x199)][_0x226510(0x177)]){const _0x5468b8=[];return _0x468233(_0x226510(0x17c),_0x226510(0x187),_0xeea8ef)[_0x226510(0x17e)](_0x31cdc9=>{const _0x1acb5f=_0x226510,_0x407c6e=this[_0x1acb5f(0x189)]();_0x56d77e(_0x31cdc9,_0x1acb5f(0x17c),_0x407c6e),_0x5468b8[_0x1acb5f(0x184)](_0x407c6e);}),this[_0x226510(0x169)](_0xeea8ef),{'parsedContent':_0xeea8ef,'newNodeIds':_0x5468b8,'modifiedNodeIds':[],'removedNodeIds':[]};}_0xbb8f55&&_0xbb8f55[_0x226510(0x18f)]&&this[_0x226510(0x19d)](_0xeea8ef),this[_0x226510(0x19c)][_0x226510(0x16d)]=[],this[_0x226510(0x19c)][_0x226510(0x180)]=[],this[_0x226510(0x19c)][_0x226510(0x165)]=[],this[_0x226510(0x19c)][_0x226510(0x181)]=[],this[_0x226510(0x19c)][_0x226510(0x16a)]=null,this[_0x226510(0x166)]=new Set(_0x468233(_0x226510(0x17c),null,_0xe80f5f)[_0x226510(0x16c)](_0x5c047f=>_0x566cf2(_0x5c047f,_0x226510(0x17c)))[_0x226510(0x178)](_0x1559a9=>!!_0x1559a9));let _0x2193b8=-0x1,_0x2ec707=!0x1;const _0x398733=_0xeea8ef[_0x226510(0x199)],_0x3a6289=Array[_0x226510(0x1a8)](_0x398733)[_0x226510(0x178)](_0x2a918c=>!(0x3===_0x2a918c[_0x226510(0x168)]&&''===_0x100daa(_0x2a918c)[_0x226510(0x179)]())),_0x4e2f79=_0x3a6289[_0x226510(0x177)];for(let _0x100a38=0x0;_0x100a38<_0x4e2f79;_0x100a38++){const _0x45d0a3=_0x3a6289[_0x100a38],_0x5ae024=_0x3a6289[_0x100a38+0x1];if(this[_0x226510(0x18e)](_0x45d0a3)){if(-0x1===_0x2193b8&&(_0x2193b8=_0x100a38),this[_0x226510(0x18b)](_0x45d0a3),!this[_0x226510(0x18e)](_0x5ae024)){const [_0xe764f4,_0x2a9caa]=this[_0x226510(0x167)](_0x45d0a3,_0x2ec707,_0xe80f5f);if(_0xe764f4){const _0x2d38ed=Array[_0x226510(0x1a8)](_0x3a6289)[_0x226510(0x18a)](_0x2193b8,_0x100a38+0x1);this[_0x226510(0x173)](_0xe764f4,_0x2d38ed,_0x2a9caa),_0x2193b8=-0x1;}}}else{if(this[_0x226510(0x172)](_0x45d0a3))_0x2ec707=!0x0;else{if(this[_0x226510(0x190)](_0x45d0a3)){const _0x41cfcf=_0x566cf2(_0x45d0a3,_0x226510(0x17c));if(_0x41cfcf&&this[_0x226510(0x166)][_0x226510(0x163)](_0x41cfcf)){const _0x36398d=_0x2fc38a(_0x226510(0x17c),_0x41cfcf,_0xe80f5f);this[_0x226510(0x194)](_0x36398d,_0x45d0a3);}if(this[_0x226510(0x19c)][_0x226510(0x165)][_0x226510(0x1a1)](_0x41cfcf)){const _0x2e2eec=this[_0x226510(0x19c)][_0x226510(0x165)][_0x226510(0x1a9)](_0x41cfcf);this[_0x226510(0x19c)][_0x226510(0x165)][_0x226510(0x19f)](_0x2e2eec,0x1);}}else{if(this[_0x226510(0x175)](_0x45d0a3)){const _0x22cac1=_0x566cf2(_0x45d0a3,_0x226510(0x17c));this[_0x226510(0x19c)][_0x226510(0x180)][_0x226510(0x1a1)](_0x22cac1)||this[_0x226510(0x16e)](_0x45d0a3);}}}}}for(const _0x2127fd of this[_0x226510(0x19c)][_0x226510(0x165)]){const _0x51728c=_0x2fc38a(_0x226510(0x17c),_0x2127fd,_0xe80f5f);if(_0x51728c){if(_0xbb8f55&&_0xbb8f55[_0x226510(0x17a)]){this[_0x226510(0x19c)][_0x226510(0x16a)]=_0x2127fd;const _0xf1182b=_0xbb8f55[_0x226510(0x17a)][_0x226510(0x185)](!0x0);_0x56d77e(_0xf1182b,_0x226510(0x17c),_0x2127fd),_0x56d77e(_0xf1182b,_0x226510(0x17d),_0x226510(0x186)),_0x1e64bd(_0x51728c,_0xf1182b);}else _0x22bddd(_0x51728c);}}if(_0x468233(_0x226510(0x17b),null,_0xe80f5f)[_0x226510(0x17e)](_0x3e9969=>{const _0xb454c7=_0x226510,_0x48e3be=_0x566cf2(_0x3e9969,_0xb454c7(0x17b)),_0x29a315=_0x2fc38a(_0xb454c7(0x17c),_0x48e3be,_0xe80f5f);_0x29a315&&_0x1753bb(_0x29a315,_0x3e9969);}),_0x468233(_0x226510(0x17c),_0x226510(0x187),_0xe80f5f)[_0x226510(0x17e)](_0xd203fc=>{const _0x3c003d=_0x226510,_0x1b40ee=this[_0x3c003d(0x196)](_0xd203fc);_0x56d77e(_0xd203fc,_0x3c003d(0x17c),_0x1b40ee),this[_0x3c003d(0x19c)][_0x3c003d(0x16d)][_0x3c003d(0x184)](_0x1b40ee);}),this[_0x226510(0x169)](_0xe80f5f),_0xbb8f55&&_0xbb8f55[_0x226510(0x18f)]&&this[_0x226510(0x188)](_0xe80f5f,_0xbb8f55[_0x226510(0x18d)]||0x0),_0xbb8f55&&_0xbb8f55[_0x226510(0x191)]&&this[_0x226510(0x19c)][_0x226510(0x16a)]){let _0x9fc0b8=_0x2fc38a(_0x226510(0x17c),this[_0x226510(0x19c)][_0x226510(0x16a)],_0xe80f5f);for(;_0x9fc0b8;)_0x2902ae(_0x9fc0b8),_0x9fc0b8=_0x9fc0b8[_0x226510(0x19b)];}return{'parsedContent':_0xe80f5f,'newNodeIds':this[_0x226510(0x19c)][_0x226510(0x16d)],'modifiedNodeIds':this[_0x226510(0x19c)][_0x226510(0x180)],'removedNodeIds':this[_0x226510(0x19c)][_0x226510(0x165)]};}[_0x16daf5(0x173)](_0xfabf32,_0x346f26,_0x1023a1){const _0x36c53a=_0x16daf5;for(const _0x55a712 of _0x346f26){const _0x56d324=this[_0x36c53a(0x196)](_0x55a712);_0x56d77e(_0x55a712,_0x36c53a(0x17c),_0x56d324),this[_0x36c53a(0x19c)][_0x36c53a(0x16d)][_0x36c53a(0x184)](_0x56d324),this[_0x36c53a(0x19c)][_0x36c53a(0x16a)]=_0x56d324;}const _0x35d7ec=_0x36c53a(0x164)===_0x1023a1||_0x36c53a(0x170)===_0x1023a1?_0x346f26[_0x36c53a(0x16b)]():_0x346f26;for(const _0x2a19c6 of _0x35d7ec)_0x4b8d1e(_0xfabf32,_0x2a19c6,_0x1023a1);}[_0x16daf5(0x194)](_0x4f59c5,_0x4d1860){const _0x3e9e92=_0x16daf5;if(!_0x4f59c5)return;if(_0x462f9d(_0x4f59c5,_0x4d1860))return;const _0x43d52d=this[_0x3e9e92(0x196)](_0x4f59c5);_0x56d77e(_0x4d1860,_0x3e9e92(0x17c),_0x43d52d),this[_0x3e9e92(0x19c)][_0x3e9e92(0x180)][_0x3e9e92(0x184)](_0x43d52d),this[_0x3e9e92(0x19c)][_0x3e9e92(0x16a)]=_0x43d52d,_0x1e64bd(_0x4f59c5,_0x4d1860[_0x3e9e92(0x185)](!0x0));}[_0x16daf5(0x167)](_0x20541d,_0x34cf1f,_0x57a2df){const _0x37a233=_0x16daf5,_0x44f9f9=this[_0x37a233(0x1a5)](_0x20541d,!0x1);if(_0x44f9f9){const _0x372b1d=this[_0x37a233(0x19a)](_0x44f9f9),_0x1d658a=_0x2fc38a(_0x37a233(0x17c),_0x372b1d,_0x57a2df);if(_0x1d658a)return[_0x1d658a,_0x37a233(0x170)];this[_0x37a233(0x19c)][_0x37a233(0x181)][_0x37a233(0x184)](_0x372b1d);}const _0x38bb16=this[_0x37a233(0x193)](_0x20541d,!0x1);if(_0x38bb16){const _0x4bcefc=this[_0x37a233(0x19a)](_0x38bb16),_0x221995=_0x2fc38a(_0x37a233(0x17c),_0x4bcefc,_0x57a2df);if(_0x221995)return[_0x221995,_0x37a233(0x17f)];this[_0x37a233(0x19c)][_0x37a233(0x181)][_0x37a233(0x184)](_0x4bcefc);}return _0x34cf1f?_0x20541d[_0x37a233(0x195)]?this[_0x37a233(0x192)](_0x20541d,_0x57a2df):[_0x57a2df[_0x37a233(0x199)][_0x57a2df[_0x37a233(0x199)][_0x37a233(0x177)]-0x1],_0x37a233(0x170)]:[_0x57a2df[_0x37a233(0x199)][0x0],_0x37a233(0x17f)];}[_0x16daf5(0x192)](_0x2efec1,_0xfaa64b){const _0x5b377b=_0x16daf5,_0xdedb7b=[],_0x17b70d=this[_0x5b377b(0x1a5)](_0x2efec1,!0x0);if(_0x17b70d){const _0x4934d6=this[_0x5b377b(0x19a)](_0x17b70d),_0x212740=_0x2fc38a(_0x5b377b(0x17c),_0x4934d6,_0xfaa64b);_0x212740&&_0xdedb7b[_0x5b377b(0x184)]([_0x212740,_0x5b377b(0x170)]);}const _0x4460c7=this[_0x5b377b(0x193)](_0x2efec1,!0x0);if(_0x4460c7){const _0x5b79f6=this[_0x5b377b(0x19a)](_0x4460c7),_0x4dc418=_0x2fc38a(_0x5b377b(0x17c),_0x5b79f6,_0xfaa64b);_0x4dc418&&_0xdedb7b[_0x5b377b(0x184)]([_0x4dc418,_0x5b377b(0x17f)]);}if(_0xdedb7b[_0x5b377b(0x177)]>0x1)return _0x4fdf7d(_0xdedb7b[0x0][0x0])<=_0x4fdf7d(_0xdedb7b[0x1][0x0])?_0xdedb7b[0x0]:_0xdedb7b[0x1];return 0x1===_0xdedb7b[_0x5b377b(0x177)]?_0xdedb7b[0x0]:[_0xfaa64b[_0x5b377b(0x16f)],_0x5b377b(0x170)];}[_0x16daf5(0x193)](_0x3a1285,_0x543414){const _0x2a1c31=_0x16daf5;let _0x1e130b=_0x3a1285[_0x2a1c31(0x195)],_0x3fec03=null,_0x386242=!0x1;for(;_0x1e130b;){if(_0x45031a(_0x1e130b)){if(this[_0x2a1c31(0x175)](_0x1e130b)&&(_0x3fec03=_0x1e130b),this[_0x2a1c31(0x172)](_0x1e130b)&&_0x543414&&!_0x386242){_0x386242=!0x0,_0x1e130b=_0x1e130b[_0x2a1c31(0x195)];continue;}break;}const _0x3937ca=_0x566cf2(_0x1e130b,_0x2a1c31(0x17c));if(_0x3937ca&&_0x2a1c31(0x187)!==_0x3937ca&&this[_0x2a1c31(0x166)][_0x2a1c31(0x163)](_0x3937ca)){_0x3fec03=_0x1e130b;break;}_0x1e130b=_0x1e130b[_0x2a1c31(0x195)];}return _0x3fec03;}[_0x16daf5(0x1a5)](_0x1b01a0,_0x18de76){const _0x294fa1=_0x16daf5;let _0xb15b02=_0x1b01a0[_0x294fa1(0x182)],_0x89a5d1=null,_0x1939cb=!0x1;for(;_0xb15b02;){if(_0x45031a(_0xb15b02)){if(this[_0x294fa1(0x175)](_0xb15b02)&&(_0x89a5d1=_0xb15b02),this[_0x294fa1(0x172)](_0xb15b02)&&_0x18de76&&!_0x1939cb){_0x1939cb=!0x0,_0xb15b02=_0xb15b02[_0x294fa1(0x182)];continue;}break;}const _0x51f547=_0x566cf2(_0xb15b02,_0x294fa1(0x17c));if(_0x51f547&&_0x294fa1(0x187)!==_0x51f547&&this[_0x294fa1(0x166)][_0x294fa1(0x163)](_0x51f547)){_0x89a5d1=_0xb15b02;break;}_0xb15b02=_0xb15b02[_0x294fa1(0x182)];}return _0x89a5d1;}[_0x16daf5(0x18b)](_0x487658){const _0x37676e=_0x16daf5;_0x9f611(_0x487658)&&_0x468233(_0x37676e(0x17c),null,_0x487658)[_0x37676e(0x17e)](_0x175adb=>{const _0x3fde66=_0x37676e;if(this[_0x3fde66(0x190)](_0x175adb)&&!this[_0x3fde66(0x1a0)](_0x175adb)){const _0x12abd3=_0x566cf2(_0x175adb,_0x3fde66(0x17c));_0x56d77e(_0x175adb,_0x3fde66(0x17b),_0x12abd3),_0x56d77e(_0x175adb,_0x3fde66(0x17c),null);}});}[_0x16daf5(0x19a)](_0x59b37d){const _0x2ebdde=_0x16daf5;if(!_0x59b37d)return null;if(_0x9f611(_0x59b37d))return _0x566cf2(_0x59b37d,_0x2ebdde(0x17c));if(_0x45031a(_0x59b37d)){const _0x509875=_0x100daa(_0x59b37d)[_0x2ebdde(0x19e)](/removed[\s*-]data-id="([^"]+)"/);if(_0x509875&&_0x509875[0x1])return _0x509875[0x1];}return null;}[_0x16daf5(0x16e)](_0x96f80d){const _0x38bd12=_0x16daf5;if(_0x45031a(_0x96f80d)){const _0x204a4d=_0x100daa(_0x96f80d)[_0x38bd12(0x19e)](/removed[\s*-]data-id="([^"]+)"/);_0x204a4d&&_0x204a4d[0x1]&&this[_0x38bd12(0x19c)][_0x38bd12(0x165)][_0x38bd12(0x184)](_0x204a4d[0x1]);}}[_0x16daf5(0x196)](_0x36843d){const _0x1b07b8=_0x16daf5;return this[_0x1b07b8(0x190)](_0x36843d)?_0x566cf2(_0x36843d,_0x1b07b8(0x17c)):this[_0x1b07b8(0x189)]();}[_0x16daf5(0x169)](_0x3aaf1c){const _0x16049d=_0x16daf5;_0x4fede5(_0x3aaf1c)[_0x16049d(0x178)](_0x5a20f9=>this[_0x16049d(0x175)](_0x5a20f9)||this[_0x16049d(0x172)](_0x5a20f9))[_0x16049d(0x17e)](_0x587e29=>{_0x22bddd(_0x587e29);});}[_0x16daf5(0x19d)](_0x2142b9){const _0x446e2d=_0x16daf5,_0x3ea291=_0x2142b9[_0x446e2d(0x199)],_0x100952=_0x3ea291[_0x3ea291[_0x446e2d(0x177)]-0x1];_0x100952&&_0x9f611(_0x100952)&&_0x56d77e(_0x100952,_0x446e2d(0x1a6),_0x446e2d(0x186));}[_0x16daf5(0x188)](_0x43bd76,_0x550840){const _0x53d8ea=_0x16daf5,_0x1e94c7=_0x2fc38a(_0x53d8ea(0x1a6),_0x53d8ea(0x186),_0x43bd76);if(!_0x1e94c7)return;const _0x39d4e9=_0x36ec9f(_0x1e94c7)[_0x53d8ea(0x18a)](0x0,-0x1),_0x2ac50d=_0x39d4e9[_0x53d8ea(0x177)];let _0x130c73=_0x1e94c7;if(_0x2ac50d>_0x550840){let _0x598373=_0x2ac50d,_0x1f3c71=null;for(;_0x598373>_0x550840&&_0x598373>=0x0;)_0x598373--,_0x1f3c71=_0x39d4e9[_0x598373];_0x1f3c71&&(_0x130c73=_0x1f3c71,_0x56d77e(_0x1e94c7,_0x53d8ea(0x1a6),null),_0x56d77e(_0x1f3c71,_0x53d8ea(0x1a6),_0x53d8ea(0x186)));}else{if(_0x2ac50d<_0x550840){let _0x2a995b=_0x2ac50d,_0x2c876d=_0x1e94c7;for(;_0x2a995b<_0x550840;){const _0x5a3eac=_0x2c876d[_0x53d8ea(0x199)][_0x53d8ea(0x178)](_0x26ae79=>_0x9f611(_0x26ae79));if(0x0===_0x5a3eac[_0x53d8ea(0x177)])break;_0x2a995b++,_0x2c876d=_0x5a3eac[_0x5a3eac[_0x53d8ea(0x177)]-0x1];}_0x2c876d&&(_0x130c73=_0x2c876d,_0x56d77e(_0x1e94c7,_0x53d8ea(0x1a6),null),_0x56d77e(_0x2c876d,_0x53d8ea(0x1a6),_0x53d8ea(0x186)));}}let _0x3a0bb9=_0x130c73;for(;_0x3a0bb9;){for(;_0x3a0bb9[_0x53d8ea(0x195)];)_0x3a0bb9=_0x3a0bb9[_0x53d8ea(0x195)],_0x9f611(_0x3a0bb9)&&_0x56d77e(_0x3a0bb9,_0x53d8ea(0x1a6),_0x53d8ea(0x186));_0x3a0bb9=_0x3a0bb9[_0x53d8ea(0x19b)];}}[_0x16daf5(0x18e)](_0x42817a){const _0xd97ec2=_0x16daf5;return Boolean(_0xd97ec2(0x187)===_0x566cf2(_0x42817a,_0xd97ec2(0x17c)));}[_0x16daf5(0x190)](_0x2a570b){const _0x5c2a66=_0x16daf5;return Boolean((_0x566cf2(_0x2a570b,_0x5c2a66(0x17c))||'')[_0x5c2a66(0x177)]>0x0&&_0x5c2a66(0x187)!==_0x566cf2(_0x2a570b,_0x5c2a66(0x17c)));}[_0x16daf5(0x175)](_0x126b55){const _0x44234e=_0x16daf5;return!!_0x126b55&&Boolean(_0x45031a(_0x126b55)&&_0x100daa(_0x126b55)[_0x44234e(0x19e)](/removed[\s*-]data-id="[^"]+"/));}[_0x16daf5(0x1a0)](_0x5e6659){const _0x5cf905=_0x16daf5;let _0x364637=_0x5e6659[_0x5cf905(0x19b)];for(;_0x364637;){if(_0x566cf2(_0x364637,_0x5cf905(0x17b)))return!0x0;_0x364637=_0x364637[_0x5cf905(0x19b)];}return!0x1;}[_0x16daf5(0x172)](_0x212c81){const _0x5c536=_0x16daf5;return Boolean(_0x45031a(_0x212c81)&&_0x100daa(_0x212c81)[_0x5c536(0x19e)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x468679=_0x3e1a;(function(_0x3caaa6,_0x348c0e){const _0xeaf564=_0x3e1a,_0x2aa2e4=_0x3caaa6();while(!![]){try{const _0x1c0a4b=parseInt(_0xeaf564(0x18d))/0x1*(-parseInt(_0xeaf564(0x190))/0x2)+-parseInt(_0xeaf564(0x182))/0x3*(parseInt(_0xeaf564(0x16c))/0x4)+-parseInt(_0xeaf564(0x165))/0x5+-parseInt(_0xeaf564(0x198))/0x6*(parseInt(_0xeaf564(0x193))/0x7)+parseInt(_0xeaf564(0x187))/0x8*(parseInt(_0xeaf564(0x1a1))/0x9)+-parseInt(_0xeaf564(0x16d))/0xa*(-parseInt(_0xeaf564(0x174))/0xb)+parseInt(_0xeaf564(0x1a5))/0xc;if(_0x1c0a4b===_0x348c0e)break;else _0x2aa2e4['push'](_0x2aa2e4['shift']());}catch(_0x3e0bf3){_0x2aa2e4['push'](_0x2aa2e4['shift']());}}}(_0x426a,0x4ab22));import{ObservableMixin as _0x5725ae,uid as _0x271636}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x26f8a2,findByAttribute as _0x33fe5f,getAttribute as _0x243bd5,isComment as _0x233bfa,isTag as _0x3cc076,insertElement as _0x200756,moveElement as _0x1525b7,removeElement as _0x84d80,replaceElement as _0x4308eb,serialize as _0x5dfc74,setAttribute as _0x2631a3,clone as _0x8b103a,findAllComments as _0x1d41d2,getParents as _0x2aa3c5,getNodeNestingLevel as _0x10fb6f,areNodesSame as _0x46a661,removeElementsAfter as _0x369e90}from'../utils/htmlparser.js';function _0x3e1a(_0xa4152,_0x1e3a7d){const _0x426a99=_0x426a();return _0x3e1a=function(_0x3e1a0f,_0x1f8b25){_0x3e1a0f=_0x3e1a0f-0x162;let _0x4f9abc=_0x426a99[_0x3e1a0f];return _0x4f9abc;},_0x3e1a(_0xa4152,_0x1e3a7d);}function _0x426a(){const _0x168230=['83677TWfblF','data-removed','_replaceNode','nodeType','_findNextElementWithDataId','markUnstableElementsDepth','forEach','_findReferenceNode','modifiedIds','match','newIds','_isExistingContentComment','_touchedNodesState','_generateUid','3kHAQKN','_markLastTagElementUnstable','childNodes','true','merge','208WNHEEO','slice','includes','_insertNodes','afterbegin','cloneNode','1jvYTGi','push','lastTouchedId','1146094fHUhmB','previousSibling','_isExistingNode','468433oNfAmh','removedIds','map','_removeSpecialComments','nextSibling','36PYWyur','afterend','splice','_existingDataIds','_isDelNode','_markUnstableElements','_getUid','lastChild','from','74547QRcMKZ','reverse','invalidIds','_getNodeDataId','14281068GbVCLX','filter','has','_hasWrappedParent','markUnstableElements','new-element','beforebegin','_findFallbackReferenceNode','_isNewNode','2964985onvldn','_markWrappedElements','replaceRemovedWith','cutAfterLastChange','_storeDeletedElementIds','data-id','data-unstable','409840mHWXuo','750JmmThB','data-wrapped-id','parentNode','_findPrevElementWithDataId','indexOf','trim','length'];_0x426a=function(){return _0x168230;};return _0x426a();}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x5725ae(){[_0x468679(0x181)];[_0x468679(0x180)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x468679(0x19b)]=new Set();constructor(_0x431d55){const _0xe593de=_0x468679;super(),this[_0xe593de(0x181)]=_0x431d55||_0x271636;}[_0x468679(0x186)](_0x53206b,_0x2b31dd,_0x5863c5){const _0x3c8e88=_0x468679,_0x39024a=_0x8b103a(_0x53206b);if(0x0===_0x2b31dd[_0x3c8e88(0x184)][_0x3c8e88(0x173)]){const _0x1b87df=[];return _0x26f8a2(_0x3c8e88(0x16a),_0x3c8e88(0x1aa),_0x39024a)[_0x3c8e88(0x17a)](_0x1eaa0f=>{const _0x340e96=_0x3c8e88,_0x405322=this[_0x340e96(0x181)]();_0x2631a3(_0x1eaa0f,_0x340e96(0x16a),_0x405322),_0x1b87df[_0x340e96(0x18e)](_0x405322);}),this[_0x3c8e88(0x196)](_0x39024a),{'parsedContent':_0x39024a,'newNodeIds':_0x1b87df,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x5863c5&&_0x5863c5[_0x3c8e88(0x1a9)]&&this[_0x3c8e88(0x183)](_0x39024a),this[_0x3c8e88(0x180)][_0x3c8e88(0x17e)]=[],this[_0x3c8e88(0x180)][_0x3c8e88(0x17c)]=[],this[_0x3c8e88(0x180)][_0x3c8e88(0x194)]=[],this[_0x3c8e88(0x180)][_0x3c8e88(0x1a3)]=[],this[_0x3c8e88(0x180)][_0x3c8e88(0x18f)]=null,this[_0x3c8e88(0x19b)]=new Set(_0x26f8a2(_0x3c8e88(0x16a),null,_0x2b31dd)[_0x3c8e88(0x195)](_0x48e04e=>_0x243bd5(_0x48e04e,_0x3c8e88(0x16a)))[_0x3c8e88(0x1a6)](_0x4556a7=>!!_0x4556a7));let _0x516b05=-0x1,_0x2adf9e=!0x1;const _0x318afa=_0x39024a[_0x3c8e88(0x184)],_0x105836=Array[_0x3c8e88(0x1a0)](_0x318afa)[_0x3c8e88(0x1a6)](_0x1f1ab3=>!(0x3===_0x1f1ab3[_0x3c8e88(0x177)]&&''===_0x5dfc74(_0x1f1ab3)[_0x3c8e88(0x172)]())),_0x14b1e0=_0x105836[_0x3c8e88(0x173)];for(let _0x5da99b=0x0;_0x5da99b<_0x14b1e0;_0x5da99b++){const _0x12667a=_0x105836[_0x5da99b],_0x33dfc0=_0x105836[_0x5da99b+0x1];if(this[_0x3c8e88(0x164)](_0x12667a)){if(-0x1===_0x516b05&&(_0x516b05=_0x5da99b),this[_0x3c8e88(0x166)](_0x12667a),!this[_0x3c8e88(0x164)](_0x33dfc0)){const [_0x1ff2a1,_0x47be30]=this[_0x3c8e88(0x17b)](_0x12667a,_0x2adf9e,_0x2b31dd);if(_0x1ff2a1){const _0x413d6f=Array[_0x3c8e88(0x1a0)](_0x105836)[_0x3c8e88(0x188)](_0x516b05,_0x5da99b+0x1);this[_0x3c8e88(0x18a)](_0x1ff2a1,_0x413d6f,_0x47be30),_0x516b05=-0x1;}}}else{if(this[_0x3c8e88(0x17f)](_0x12667a))_0x2adf9e=!0x0;else{if(this[_0x3c8e88(0x192)](_0x12667a)){const _0x146548=_0x243bd5(_0x12667a,_0x3c8e88(0x16a));if(_0x146548&&this[_0x3c8e88(0x19b)][_0x3c8e88(0x1a7)](_0x146548)){const _0x9c5a1a=_0x33fe5f(_0x3c8e88(0x16a),_0x146548,_0x2b31dd);this[_0x3c8e88(0x176)](_0x9c5a1a,_0x12667a);}if(this[_0x3c8e88(0x180)][_0x3c8e88(0x194)][_0x3c8e88(0x189)](_0x146548)){const _0x566c8a=this[_0x3c8e88(0x180)][_0x3c8e88(0x194)][_0x3c8e88(0x171)](_0x146548);this[_0x3c8e88(0x180)][_0x3c8e88(0x194)][_0x3c8e88(0x19a)](_0x566c8a,0x1);}}else{if(this[_0x3c8e88(0x19c)](_0x12667a)){const _0x34cdb3=_0x243bd5(_0x12667a,_0x3c8e88(0x16a));this[_0x3c8e88(0x180)][_0x3c8e88(0x17c)][_0x3c8e88(0x189)](_0x34cdb3)||this[_0x3c8e88(0x169)](_0x12667a);}}}}}for(const _0x5a4846 of this[_0x3c8e88(0x180)][_0x3c8e88(0x194)]){const _0x94ad43=_0x33fe5f(_0x3c8e88(0x16a),_0x5a4846,_0x2b31dd);if(_0x94ad43){if(_0x5863c5&&_0x5863c5[_0x3c8e88(0x167)]){this[_0x3c8e88(0x180)][_0x3c8e88(0x18f)]=_0x5a4846;const _0x1a8118=_0x5863c5[_0x3c8e88(0x167)][_0x3c8e88(0x18c)](!0x0);_0x2631a3(_0x1a8118,_0x3c8e88(0x16a),_0x5a4846),_0x2631a3(_0x1a8118,_0x3c8e88(0x175),_0x3c8e88(0x185)),_0x4308eb(_0x94ad43,_0x1a8118);}else _0x84d80(_0x94ad43);}}if(_0x26f8a2(_0x3c8e88(0x16e),null,_0x2b31dd)[_0x3c8e88(0x17a)](_0x405d2e=>{const _0x5f214e=_0x3c8e88,_0x5018c0=_0x243bd5(_0x405d2e,_0x5f214e(0x16e)),_0x195437=_0x33fe5f(_0x5f214e(0x16a),_0x5018c0,_0x2b31dd);_0x195437&&_0x1525b7(_0x195437,_0x405d2e);}),_0x26f8a2(_0x3c8e88(0x16a),_0x3c8e88(0x1aa),_0x2b31dd)[_0x3c8e88(0x17a)](_0x242b4b=>{const _0x4a2cf4=_0x3c8e88,_0x5c212b=this[_0x4a2cf4(0x19e)](_0x242b4b);_0x2631a3(_0x242b4b,_0x4a2cf4(0x16a),_0x5c212b),this[_0x4a2cf4(0x180)][_0x4a2cf4(0x17e)][_0x4a2cf4(0x18e)](_0x5c212b);}),this[_0x3c8e88(0x196)](_0x2b31dd),_0x5863c5&&_0x5863c5[_0x3c8e88(0x1a9)]&&this[_0x3c8e88(0x19d)](_0x2b31dd,_0x5863c5[_0x3c8e88(0x179)]||0x0),_0x5863c5&&_0x5863c5[_0x3c8e88(0x168)]&&this[_0x3c8e88(0x180)][_0x3c8e88(0x18f)]){let _0x3a26a4=_0x33fe5f(_0x3c8e88(0x16a),this[_0x3c8e88(0x180)][_0x3c8e88(0x18f)],_0x2b31dd);for(;_0x3a26a4;)_0x369e90(_0x3a26a4),_0x3a26a4=_0x3a26a4[_0x3c8e88(0x16f)];}return{'parsedContent':_0x2b31dd,'newNodeIds':this[_0x3c8e88(0x180)][_0x3c8e88(0x17e)],'modifiedNodeIds':this[_0x3c8e88(0x180)][_0x3c8e88(0x17c)],'removedNodeIds':this[_0x3c8e88(0x180)][_0x3c8e88(0x194)]};}[_0x468679(0x18a)](_0x47daa7,_0x3dd88e,_0x5aebe8){const _0x2236e6=_0x468679;for(const _0x110cbd of _0x3dd88e){const _0x537f4c=this[_0x2236e6(0x19e)](_0x110cbd);_0x2631a3(_0x110cbd,_0x2236e6(0x16a),_0x537f4c),this[_0x2236e6(0x180)][_0x2236e6(0x17e)][_0x2236e6(0x18e)](_0x537f4c),this[_0x2236e6(0x180)][_0x2236e6(0x18f)]=_0x537f4c;}const _0x5b387c=_0x2236e6(0x18b)===_0x5aebe8||_0x2236e6(0x199)===_0x5aebe8?_0x3dd88e[_0x2236e6(0x1a2)]():_0x3dd88e;for(const _0x4d48c0 of _0x5b387c)_0x200756(_0x47daa7,_0x4d48c0,_0x5aebe8);}[_0x468679(0x176)](_0x3750be,_0x1e307e){const _0x31a6ea=_0x468679;if(!_0x3750be)return;if(_0x46a661(_0x3750be,_0x1e307e))return;const _0x19d19c=this[_0x31a6ea(0x19e)](_0x3750be);_0x2631a3(_0x1e307e,_0x31a6ea(0x16a),_0x19d19c),this[_0x31a6ea(0x180)][_0x31a6ea(0x17c)][_0x31a6ea(0x18e)](_0x19d19c),this[_0x31a6ea(0x180)][_0x31a6ea(0x18f)]=_0x19d19c,_0x4308eb(_0x3750be,_0x1e307e[_0x31a6ea(0x18c)](!0x0));}[_0x468679(0x17b)](_0xa9bcfd,_0x1516e6,_0x269efc){const _0x2863f1=_0x468679,_0x586375=this[_0x2863f1(0x170)](_0xa9bcfd,!0x1);if(_0x586375){const _0x4dba36=this[_0x2863f1(0x1a4)](_0x586375),_0x5557c2=_0x33fe5f(_0x2863f1(0x16a),_0x4dba36,_0x269efc);if(_0x5557c2)return[_0x5557c2,_0x2863f1(0x199)];this[_0x2863f1(0x180)][_0x2863f1(0x1a3)][_0x2863f1(0x18e)](_0x4dba36);}const _0x465132=this[_0x2863f1(0x178)](_0xa9bcfd,!0x1);if(_0x465132){const _0x275e76=this[_0x2863f1(0x1a4)](_0x465132),_0x22fd20=_0x33fe5f(_0x2863f1(0x16a),_0x275e76,_0x269efc);if(_0x22fd20)return[_0x22fd20,_0x2863f1(0x162)];this[_0x2863f1(0x180)][_0x2863f1(0x1a3)][_0x2863f1(0x18e)](_0x275e76);}return _0x1516e6?_0xa9bcfd[_0x2863f1(0x197)]?this[_0x2863f1(0x163)](_0xa9bcfd,_0x269efc):[_0x269efc[_0x2863f1(0x184)][_0x269efc[_0x2863f1(0x184)][_0x2863f1(0x173)]-0x1],_0x2863f1(0x199)]:[_0x269efc[_0x2863f1(0x184)][0x0],_0x2863f1(0x162)];}[_0x468679(0x163)](_0x429416,_0x542cc7){const _0x177d3b=_0x468679,_0x48ed71=[],_0x30c8fc=this[_0x177d3b(0x170)](_0x429416,!0x0);if(_0x30c8fc){const _0xb49498=this[_0x177d3b(0x1a4)](_0x30c8fc),_0x2329bc=_0x33fe5f(_0x177d3b(0x16a),_0xb49498,_0x542cc7);_0x2329bc&&_0x48ed71[_0x177d3b(0x18e)]([_0x2329bc,_0x177d3b(0x199)]);}const _0x1858c5=this[_0x177d3b(0x178)](_0x429416,!0x0);if(_0x1858c5){const _0x193e71=this[_0x177d3b(0x1a4)](_0x1858c5),_0x5b528c=_0x33fe5f(_0x177d3b(0x16a),_0x193e71,_0x542cc7);_0x5b528c&&_0x48ed71[_0x177d3b(0x18e)]([_0x5b528c,_0x177d3b(0x162)]);}if(_0x48ed71[_0x177d3b(0x173)]>0x1)return _0x10fb6f(_0x48ed71[0x0][0x0])<=_0x10fb6f(_0x48ed71[0x1][0x0])?_0x48ed71[0x0]:_0x48ed71[0x1];return 0x1===_0x48ed71[_0x177d3b(0x173)]?_0x48ed71[0x0]:[_0x542cc7[_0x177d3b(0x19f)],_0x177d3b(0x199)];}[_0x468679(0x178)](_0x235bc6,_0x4d6fb9){const _0x945a03=_0x468679;let _0x34e57c=_0x235bc6[_0x945a03(0x197)],_0x13b63d=null,_0x55c17f=!0x1;for(;_0x34e57c;){if(_0x233bfa(_0x34e57c)){if(this[_0x945a03(0x19c)](_0x34e57c)&&(_0x13b63d=_0x34e57c),this[_0x945a03(0x17f)](_0x34e57c)&&_0x4d6fb9&&!_0x55c17f){_0x55c17f=!0x0,_0x34e57c=_0x34e57c[_0x945a03(0x197)];continue;}break;}const _0x262c5c=_0x243bd5(_0x34e57c,_0x945a03(0x16a));if(_0x262c5c&&_0x945a03(0x1aa)!==_0x262c5c&&this[_0x945a03(0x19b)][_0x945a03(0x1a7)](_0x262c5c)){_0x13b63d=_0x34e57c;break;}_0x34e57c=_0x34e57c[_0x945a03(0x197)];}return _0x13b63d;}[_0x468679(0x170)](_0x143bee,_0x123308){const _0x16be05=_0x468679;let _0x57fcb0=_0x143bee[_0x16be05(0x191)],_0x3f55f6=null,_0x23d143=!0x1;for(;_0x57fcb0;){if(_0x233bfa(_0x57fcb0)){if(this[_0x16be05(0x19c)](_0x57fcb0)&&(_0x3f55f6=_0x57fcb0),this[_0x16be05(0x17f)](_0x57fcb0)&&_0x123308&&!_0x23d143){_0x23d143=!0x0,_0x57fcb0=_0x57fcb0[_0x16be05(0x191)];continue;}break;}const _0x58d65c=_0x243bd5(_0x57fcb0,_0x16be05(0x16a));if(_0x58d65c&&_0x16be05(0x1aa)!==_0x58d65c&&this[_0x16be05(0x19b)][_0x16be05(0x1a7)](_0x58d65c)){_0x3f55f6=_0x57fcb0;break;}_0x57fcb0=_0x57fcb0[_0x16be05(0x191)];}return _0x3f55f6;}[_0x468679(0x166)](_0x433fea){const _0x12c480=_0x468679;_0x3cc076(_0x433fea)&&_0x26f8a2(_0x12c480(0x16a),null,_0x433fea)[_0x12c480(0x17a)](_0x113e37=>{const _0x3d87fc=_0x12c480;if(this[_0x3d87fc(0x192)](_0x113e37)&&!this[_0x3d87fc(0x1a8)](_0x113e37)){const _0x4f9c46=_0x243bd5(_0x113e37,_0x3d87fc(0x16a));_0x2631a3(_0x113e37,_0x3d87fc(0x16e),_0x4f9c46),_0x2631a3(_0x113e37,_0x3d87fc(0x16a),null);}});}[_0x468679(0x1a4)](_0x579537){const _0x53c41=_0x468679;if(!_0x579537)return null;if(_0x3cc076(_0x579537))return _0x243bd5(_0x579537,_0x53c41(0x16a));if(_0x233bfa(_0x579537)){const _0x412d24=_0x5dfc74(_0x579537)[_0x53c41(0x17d)](/removed[\s*-]data-id="([^"]+)"/);if(_0x412d24&&_0x412d24[0x1])return _0x412d24[0x1];}return null;}[_0x468679(0x169)](_0x4a273c){const _0x3a12fe=_0x468679;if(_0x233bfa(_0x4a273c)){const _0x390ce7=_0x5dfc74(_0x4a273c)[_0x3a12fe(0x17d)](/removed[\s*-]data-id="([^"]+)"/);_0x390ce7&&_0x390ce7[0x1]&&this[_0x3a12fe(0x180)][_0x3a12fe(0x194)][_0x3a12fe(0x18e)](_0x390ce7[0x1]);}}[_0x468679(0x19e)](_0x4a7ed7){const _0xaf3e0f=_0x468679;return this[_0xaf3e0f(0x192)](_0x4a7ed7)?_0x243bd5(_0x4a7ed7,_0xaf3e0f(0x16a)):this[_0xaf3e0f(0x181)]();}[_0x468679(0x196)](_0x5cd801){const _0x594160=_0x468679;_0x1d41d2(_0x5cd801)[_0x594160(0x1a6)](_0x1ddf42=>this[_0x594160(0x19c)](_0x1ddf42)||this[_0x594160(0x17f)](_0x1ddf42))[_0x594160(0x17a)](_0x5728cc=>{_0x84d80(_0x5728cc);});}[_0x468679(0x183)](_0x181ed4){const _0x2d2cf4=_0x468679,_0x10553b=_0x181ed4[_0x2d2cf4(0x184)],_0x4984aa=_0x10553b[_0x10553b[_0x2d2cf4(0x173)]-0x1];_0x4984aa&&_0x3cc076(_0x4984aa)&&_0x2631a3(_0x4984aa,_0x2d2cf4(0x16b),_0x2d2cf4(0x185));}[_0x468679(0x19d)](_0x19d7d0,_0x5942de){const _0x46bf2a=_0x468679,_0x1fc691=_0x33fe5f(_0x46bf2a(0x16b),_0x46bf2a(0x185),_0x19d7d0);if(!_0x1fc691)return;const _0x14c95b=_0x2aa3c5(_0x1fc691)[_0x46bf2a(0x188)](0x0,-0x1),_0x8f3288=_0x14c95b[_0x46bf2a(0x173)];let _0x22082b=_0x1fc691;if(_0x8f3288>_0x5942de){let _0x46b4b8=_0x8f3288,_0x2786ef=null;for(;_0x46b4b8>_0x5942de&&_0x46b4b8>=0x0;)_0x46b4b8--,_0x2786ef=_0x14c95b[_0x46b4b8];_0x2786ef&&(_0x22082b=_0x2786ef,_0x2631a3(_0x1fc691,_0x46bf2a(0x16b),null),_0x2631a3(_0x2786ef,_0x46bf2a(0x16b),_0x46bf2a(0x185)));}else{if(_0x8f3288<_0x5942de){let _0x4dafdd=_0x8f3288,_0x121a18=_0x1fc691;for(;_0x4dafdd<_0x5942de;){const _0x384102=_0x121a18[_0x46bf2a(0x184)][_0x46bf2a(0x1a6)](_0x552d2f=>_0x3cc076(_0x552d2f));if(0x0===_0x384102[_0x46bf2a(0x173)])break;_0x4dafdd++,_0x121a18=_0x384102[_0x384102[_0x46bf2a(0x173)]-0x1];}_0x121a18&&(_0x22082b=_0x121a18,_0x2631a3(_0x1fc691,_0x46bf2a(0x16b),null),_0x2631a3(_0x121a18,_0x46bf2a(0x16b),_0x46bf2a(0x185)));}}let _0x5c0f13=_0x22082b;for(;_0x5c0f13;){for(;_0x5c0f13[_0x46bf2a(0x197)];)_0x5c0f13=_0x5c0f13[_0x46bf2a(0x197)],_0x3cc076(_0x5c0f13)&&_0x2631a3(_0x5c0f13,_0x46bf2a(0x16b),_0x46bf2a(0x185));_0x5c0f13=_0x5c0f13[_0x46bf2a(0x16f)];}}[_0x468679(0x164)](_0x2d2bb6){const _0x300d15=_0x468679;return Boolean(_0x300d15(0x1aa)===_0x243bd5(_0x2d2bb6,_0x300d15(0x16a)));}[_0x468679(0x192)](_0x197cf4){const _0xee665d=_0x468679;return Boolean((_0x243bd5(_0x197cf4,_0xee665d(0x16a))||'')[_0xee665d(0x173)]>0x0&&_0xee665d(0x1aa)!==_0x243bd5(_0x197cf4,_0xee665d(0x16a)));}[_0x468679(0x19c)](_0x1b0fac){const _0x5916ee=_0x468679;return!!_0x1b0fac&&Boolean(_0x233bfa(_0x1b0fac)&&_0x5dfc74(_0x1b0fac)[_0x5916ee(0x17d)](/removed[\s*-]data-id="[^"]+"/));}[_0x468679(0x1a8)](_0x22230f){const _0x79912f=_0x468679;let _0x142acd=_0x22230f[_0x79912f(0x16f)];for(;_0x142acd;){if(_0x243bd5(_0x142acd,_0x79912f(0x16e)))return!0x0;_0x142acd=_0x142acd[_0x79912f(0x16f)];}return!0x1;}[_0x468679(0x17f)](_0x18198){const _0x23385d=_0x468679;return Boolean(_0x233bfa(_0x18198)&&_0x5dfc74(_0x18198)[_0x23385d(0x17d)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e8044=_0x1df4;(function(_0x2335d3,_0x195d19){const _0x2d6b3c=_0x1df4,_0x5be61d=_0x2335d3();while(!![]){try{const _0x4a91c5=parseInt(_0x2d6b3c(0x7d))/0x1+parseInt(_0x2d6b3c(0x71))/0x2*(parseInt(_0x2d6b3c(0x78))/0x3)+parseInt(_0x2d6b3c(0x74))/0x4+-parseInt(_0x2d6b3c(0x7e))/0x5+-parseInt(_0x2d6b3c(0x7a))/0x6+-parseInt(_0x2d6b3c(0x70))/0x7+parseInt(_0x2d6b3c(0x75))/0x8;if(_0x4a91c5===_0x195d19)break;else _0x5be61d['push'](_0x5be61d['shift']());}catch(_0x25310b){_0x5be61d['push'](_0x5be61d['shift']());}}}(_0x4fde,0x97da9));import{ObservableMixin as _0xf53dee}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x1fb8ce}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0xe27b66}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0xf53dee(){[_0x1e8044(0x76)];constructor(){const _0x36473a=_0x1e8044;super(),this[_0x36473a(0x76)]=new _0x1fb8ce();}[_0x1e8044(0x72)](_0x21c6f4){const _0xd7d2e1=_0x1e8044,_0x55cbcc=this[_0xd7d2e1(0x76)][_0xd7d2e1(0x7c)](_0x21c6f4);return this[_0xd7d2e1(0x6f)](_0x55cbcc);}[_0x1e8044(0x6f)](_0x5eff52){const _0xf29a72=_0x1e8044;return this[_0xf29a72(0x79)](_0x5eff52);}[_0x1e8044(0x79)](_0x62f004){const _0x431bcf=_0x1e8044,_0x5abab3=_0x62f004[_0x431bcf(0x77)](/^\t+/gm,'\x20')[_0x431bcf(0x77)](/\n*/g,'')[_0x431bcf(0x77)](/\s+/g,'\x20')[_0x431bcf(0x77)](/<[^>]*?$/g,''),_0x2bcfff=_0xe27b66(_0x431bcf(0x7b)+_0x5abab3+_0x431bcf(0x73));return _0x2bcfff[_0x431bcf(0x6e)]=_0x2bcfff[_0x431bcf(0x6e)][0x0][_0x431bcf(0x6e)],_0x2bcfff;}}function _0x1df4(_0x1c0752,_0x3985c5){const _0x4fdeb3=_0x4fde();return _0x1df4=function(_0x1df4bb,_0x155533){_0x1df4bb=_0x1df4bb-0x6e;let _0x5a8811=_0x4fdeb3[_0x1df4bb];return _0x5a8811;},_0x1df4(_0x1c0752,_0x3985c5);}function _0x4fde(){const _0x5175d0=['convertMarkdownToHTML','</dummy>','3215544xFccBz','12109808tnHzGC','_m2html','replace','411918GpOBwi','_parseHTML','3793512ntgOzi','<dummy>','parse','1174025JQBFPO','6133565wawbXw','children','parseAndNormalizeHTML','8035895yqsZdz','2ezFsvR'];_0x4fde=function(){return _0x5175d0;};return _0x4fde();}
23
+ const _0x1f043c=_0x33da;(function(_0x5a1564,_0x463c35){const _0x30ad22=_0x33da,_0xee15a7=_0x5a1564();while(!![]){try{const _0x4c3694=parseInt(_0x30ad22(0x197))/0x1+parseInt(_0x30ad22(0x194))/0x2*(parseInt(_0x30ad22(0x191))/0x3)+parseInt(_0x30ad22(0x189))/0x4+parseInt(_0x30ad22(0x188))/0x5+parseInt(_0x30ad22(0x198))/0x6*(parseInt(_0x30ad22(0x196))/0x7)+parseInt(_0x30ad22(0x195))/0x8+-parseInt(_0x30ad22(0x18b))/0x9;if(_0x4c3694===_0x463c35)break;else _0xee15a7['push'](_0xee15a7['shift']());}catch(_0x57b579){_0xee15a7['push'](_0xee15a7['shift']());}}}(_0x2840,0xe052d));import{ObservableMixin as _0x491117}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x35dd7b}from'@ckeditor/ckeditor5-markdown-gfm';function _0x33da(_0x33424f,_0xade393){const _0x284035=_0x2840();return _0x33da=function(_0x33da0b,_0xb32d54){_0x33da0b=_0x33da0b-0x187;let _0x31aa1e=_0x284035[_0x33da0b];return _0x31aa1e;},_0x33da(_0x33424f,_0xade393);}function _0x2840(){const _0x2d06d7=['replace','children','_m2html','12PVLBXK','convertMarkdownToHTML','<dummy>','836392rNUxDg','543400hcUqBS','35tUqARG','334397ZTZmxT','245046qBTVMn','</dummy>','13990jexOPE','7135604WAAYXN','parse','28324629GVirbt','_parseHTML','parseAndNormalizeHTML'];_0x2840=function(){return _0x2d06d7;};return _0x2840();}import{parse as _0x18e79e}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x491117(){[_0x1f043c(0x190)];constructor(){const _0x355bae=_0x1f043c;super(),this[_0x355bae(0x190)]=new _0x35dd7b();}[_0x1f043c(0x192)](_0x2d0c54){const _0x826968=_0x1f043c,_0x277264=this[_0x826968(0x190)][_0x826968(0x18a)](_0x2d0c54);return this[_0x826968(0x18d)](_0x277264);}[_0x1f043c(0x18d)](_0x719dc6){const _0x50449d=_0x1f043c;return this[_0x50449d(0x18c)](_0x719dc6);}[_0x1f043c(0x18c)](_0x4ef7a3){const _0x50c0bb=_0x1f043c,_0x5033f8=_0x4ef7a3[_0x50c0bb(0x18e)](/^\t+/gm,'\x20')[_0x50c0bb(0x18e)](/\n*/g,'')[_0x50c0bb(0x18e)](/\s+/g,'\x20')[_0x50c0bb(0x18e)](/<[^>]*?$/g,''),_0x30b171=_0x18e79e(_0x50c0bb(0x193)+_0x5033f8+_0x50c0bb(0x187));return _0x30b171[_0x50c0bb(0x18f)]=_0x30b171[_0x50c0bb(0x18f)][0x0][_0x50c0bb(0x18f)],_0x30b171;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x44ca(_0x47f071,_0x4ca3d4){var _0x45d48c=_0x45d4();return _0x44ca=function(_0x44ca37,_0x37ba5a){_0x44ca37=_0x44ca37-0x173;var _0x13a51a=_0x45d48c[_0x44ca37];return _0x13a51a;},_0x44ca(_0x47f071,_0x4ca3d4);}(function(_0x4be96a,_0x142a68){var _0x52c40d=_0x44ca,_0x4a1f6e=_0x4be96a();while(!![]){try{var _0x5df8a9=-parseInt(_0x52c40d(0x175))/0x1*(parseInt(_0x52c40d(0x178))/0x2)+parseInt(_0x52c40d(0x17c))/0x3*(parseInt(_0x52c40d(0x177))/0x4)+-parseInt(_0x52c40d(0x174))/0x5+parseInt(_0x52c40d(0x17e))/0x6*(parseInt(_0x52c40d(0x181))/0x7)+-parseInt(_0x52c40d(0x173))/0x8+parseInt(_0x52c40d(0x17f))/0x9+parseInt(_0x52c40d(0x180))/0xa;if(_0x5df8a9===_0x142a68)break;else _0x4a1f6e['push'](_0x4a1f6e['shift']());}catch(_0x14439c){_0x4a1f6e['push'](_0x4a1f6e['shift']());}}}(_0x45d4,0x66a0b));import{View as _0x41f6df}from'ckeditor5/src/ui.js';import{getTranslation as _0x41eebe}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x41f6df{constructor(_0x4a6db3){var _0x31cf88=_0x44ca;super(_0x4a6db3),this[_0x31cf88(0x17b)]({'tag':_0x31cf88(0x17a),'attributes':{'class':['ck',_0x31cf88(0x179)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x31cf88(0x176)]},'children':[{'text':_0x41eebe(_0x4a6db3,_0x31cf88(0x17d))}]}]});}}function _0x45d4(){var _0x1767ac=['1767EXoRej','AI_DISCLAIMER_TEXT','5502WOBGbQ','4073661EwhsgP','2435490TodxiZ','2149UMCYHe','3668296gSSCcU','1984065wNWKDj','11hUdXvz','ck-ai-disclaimer__content','2980FHyhTc','25598JVTKXA','ck-ai-disclaimer','div','setTemplate'];_0x45d4=function(){return _0x1767ac;};return _0x45d4();}
23
+ (function(_0x1206b0,_0x47d1f9){var _0x5dc840=_0x34a0,_0x2c24bb=_0x1206b0();while(!![]){try{var _0xd34a41=parseInt(_0x5dc840(0x153))/0x1+parseInt(_0x5dc840(0x160))/0x2*(-parseInt(_0x5dc840(0x159))/0x3)+-parseInt(_0x5dc840(0x156))/0x4+-parseInt(_0x5dc840(0x154))/0x5+-parseInt(_0x5dc840(0x15b))/0x6*(-parseInt(_0x5dc840(0x155))/0x7)+parseInt(_0x5dc840(0x15f))/0x8*(parseInt(_0x5dc840(0x15c))/0x9)+-parseInt(_0x5dc840(0x152))/0xa*(parseInt(_0x5dc840(0x15d))/0xb);if(_0xd34a41===_0x47d1f9)break;else _0x2c24bb['push'](_0x2c24bb['shift']());}catch(_0x8baf97){_0x2c24bb['push'](_0x2c24bb['shift']());}}}(_0x4ff8,0x65e29));function _0x34a0(_0x505c90,_0x3a848f){var _0x4ff85a=_0x4ff8();return _0x34a0=function(_0x34a033,_0x3abf4a){_0x34a033=_0x34a033-0x151;var _0x2af90a=_0x4ff85a[_0x34a033];return _0x2af90a;},_0x34a0(_0x505c90,_0x3a848f);}import{View as _0x3722ca}from'ckeditor5/src/ui.js';import{getTranslation as _0x5bdd28}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x3722ca{constructor(_0x15d586){var _0xdf5d8a=_0x34a0;super(_0x15d586),this[_0xdf5d8a(0x158)]({'tag':_0xdf5d8a(0x157),'attributes':{'class':['ck',_0xdf5d8a(0x151)]},'children':[{'tag':'p','attributes':{'class':['ck',_0xdf5d8a(0x15e)]},'children':[{'text':_0x5bdd28(_0x15d586,_0xdf5d8a(0x15a))}]}]});}}function _0x4ff8(){var _0x41fb76=['22vuWgqO','ck-ai-disclaimer__content','36472HgKtvA','14QHAYFY','ck-ai-disclaimer','2184530kylIVy','795620fXKgSz','455500fhgktw','2066113ruXxbW','1479836WFuNkx','div','setTemplate','49818QRZDas','AI_DISCLAIMER_TEXT','12rrEarb','90ijkPZn'];_0x4ff8=function(){return _0x41fb76;};return _0x4ff8();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x523911,_0x4f7fd8){const _0x14c44f=_0x4bec,_0x280545=_0x523911();while(!![]){try{const _0x4e4c0e=parseInt(_0x14c44f(0x153))/0x1+parseInt(_0x14c44f(0x154))/0x2+-parseInt(_0x14c44f(0x151))/0x3+-parseInt(_0x14c44f(0x14e))/0x4*(parseInt(_0x14c44f(0x155))/0x5)+parseInt(_0x14c44f(0x15a))/0x6+-parseInt(_0x14c44f(0x150))/0x7*(-parseInt(_0x14c44f(0x158))/0x8)+-parseInt(_0x14c44f(0x159))/0x9;if(_0x4e4c0e===_0x4f7fd8)break;else _0x280545['push'](_0x280545['shift']());}catch(_0x56493b){_0x280545['push'](_0x280545['shift']());}}}(_0x2635,0xcc306));import{SpinnerView as _0x2a432b}from'ckeditor5/src/ui.js';import'../../../theme/common/aispinner.css';function _0x2635(){const _0x3cccde=['extendTemplate','ck-ai-spinner','5602216UzUclY','28016118NtJwmB','9575874ByVUSC','299692DQIHOK','ck-ai-spinner_','14fCMdxP','1882689oNSoWM','span','960724Qtnkgh','2437900FRynIe','40uKNBAL'];_0x2635=function(){return _0x3cccde;};return _0x2635();}function _0x4bec(_0x4a943b,_0xd95117){const _0x263579=_0x2635();return _0x4bec=function(_0x4bec70,_0x5385f2){_0x4bec70=_0x4bec70-0x14e;let _0x1c2600=_0x263579[_0x4bec70];return _0x1c2600;},_0x4bec(_0x4a943b,_0xd95117);}export class AISpinnerView extends _0x2a432b{constructor(_0x5de64b=void 0x0){const _0x5699f4=_0x4bec;super();const _0x3d40b3=_0x5de64b?_0x5699f4(0x14f)+_0x5de64b:'';this[_0x5699f4(0x156)]({'tag':_0x5699f4(0x152),'attributes':{'class':[_0x5699f4(0x157),_0x3d40b3]}});}}
23
+ (function(_0x342e1d,_0x5b8e26){const _0x597aa2=_0x2b7b,_0x43bb1f=_0x342e1d();while(!![]){try{const _0x466cd4=-parseInt(_0x597aa2(0xd0))/0x1+parseInt(_0x597aa2(0xd3))/0x2+-parseInt(_0x597aa2(0xcf))/0x3*(-parseInt(_0x597aa2(0xd1))/0x4)+parseInt(_0x597aa2(0xce))/0x5*(-parseInt(_0x597aa2(0xca))/0x6)+parseInt(_0x597aa2(0xd5))/0x7*(-parseInt(_0x597aa2(0xd2))/0x8)+parseInt(_0x597aa2(0xcb))/0x9+parseInt(_0x597aa2(0xd4))/0xa;if(_0x466cd4===_0x5b8e26)break;else _0x43bb1f['push'](_0x43bb1f['shift']());}catch(_0x49e386){_0x43bb1f['push'](_0x43bb1f['shift']());}}}(_0x5136,0xdd8af));function _0x5136(){const _0x3da88f=['7hSjixl','ck-ai-spinner_','ck-ai-spinner','711834ZnoxaY','14147487kHcsHp','span','extendTemplate','75EcIyls','3fEqHPz','560285EROICD','302468wIUnMu','7041848sNxOpQ','2695422NyzXUj','11322690uCLZUm'];_0x5136=function(){return _0x3da88f;};return _0x5136();}import{SpinnerView as _0x1dd0ad}from'ckeditor5/src/ui.js';import'../../../theme/common/aispinner.css';function _0x2b7b(_0x4355a5,_0x4489ea){const _0x5136b2=_0x5136();return _0x2b7b=function(_0x2b7bf0,_0x121d06){_0x2b7bf0=_0x2b7bf0-0xc8;let _0x47ffba=_0x5136b2[_0x2b7bf0];return _0x47ffba;},_0x2b7b(_0x4355a5,_0x4489ea);}export class AISpinnerView extends _0x1dd0ad{constructor(_0xe88a65=void 0x0){const _0x2b6b6d=_0x2b7b;super();const _0x51ee5f=_0xe88a65?_0x2b6b6d(0xc8)+_0xe88a65:'';this[_0x2b6b6d(0xcd)]({'tag':_0x2b6b6d(0xcc),'attributes':{'class':[_0x2b6b6d(0xc9),_0x51ee5f]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3818f4=_0x4c22;(function(_0x59676c,_0x25da6a){const _0x2cf64f=_0x4c22,_0x1529da=_0x59676c();while(!![]){try{const _0x130466=-parseInt(_0x2cf64f(0x13c))/0x1*(-parseInt(_0x2cf64f(0x15c))/0x2)+-parseInt(_0x2cf64f(0x14f))/0x3*(-parseInt(_0x2cf64f(0x14c))/0x4)+-parseInt(_0x2cf64f(0x150))/0x5+parseInt(_0x2cf64f(0x139))/0x6*(-parseInt(_0x2cf64f(0x154))/0x7)+-parseInt(_0x2cf64f(0x15d))/0x8*(parseInt(_0x2cf64f(0x163))/0x9)+parseInt(_0x2cf64f(0x13b))/0xa+-parseInt(_0x2cf64f(0x13e))/0xb;if(_0x130466===_0x25da6a)break;else _0x1529da['push'](_0x1529da['shift']());}catch(_0x1dd5e1){_0x1529da['push'](_0x1529da['shift']());}}}(_0x2f58,0x60745));import{ButtonView as _0x9cf87b,IconView as _0x35b29c,ToolbarView as _0x18dfa9}from'ckeditor5/src/ui.js';import{IconCheck as _0x26cdc5,IconCopy as _0x160814,IconShowChangesOff as _0x254117,IconShowChangesOn as _0x59c788,IconThumbDown as _0x28b0b1,IconThumbUp as _0x4a5201}from'@ckeditor/ckeditor5-icons';function _0x2f58(){const _0x4b5522=['showCopy','AI_MINI_TOOLBAR_DISLIKE','execute','AI_MINI_TOOLBAR_LIKE','toggleShowChangesEnabled','315ZVuUFp','AI_MINI_TOOLBAR_COPY','add','ck-ai-mini-toolbar-copy-button','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','addMany','fire','ck-ai-button-tertiary','bind','ck-ai-mini-toolbar-copy-button__check-mark','copyButton','_setupShowChangesButton','showLike','466494OdiRtb','isEnabled','4982310NhxiAs','19ZJQqrc','full','6762525NMTdis','like','ck-ai-mini-toolbar','_setupRatingButtons','length','set','class','customView','isShowChangesOn','showDislike','showChangesButton','_config','showChanges','locale','230060HOzCcj','icon','_setupCopyButton','21cYuQpp','1515855MIQjOQ','isOn','dislikeButton','children','7SURXKg','extendTemplate','toggleShowChanges','items','dislike','likeButton','ck-ai-mini-toolbar\x20ck-hidden','AI_SUGGESTION_BUTTON_SHOW_CHANGES','57198DmHQUH','12216NyrPoY'];_0x2f58=function(){return _0x4b5522;};return _0x2f58();}import{getTranslation as _0x582356}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';function _0x4c22(_0x138729,_0x1780fc){const _0x2f58d3=_0x2f58();return _0x4c22=function(_0x4c223d,_0x2f423b){_0x4c223d=_0x4c223d-0x12f;let _0x830972=_0x2f58d3[_0x4c223d];return _0x830972;},_0x4c22(_0x138729,_0x1780fc);}export class AIMiniToolbarView extends _0x18dfa9{[_0x3818f4(0x136)];[_0x3818f4(0x159)];[_0x3818f4(0x152)];[_0x3818f4(0x148)];[_0x3818f4(0x149)];constructor(_0x1eca2c,_0x1e0f36={}){const _0x3112e7=_0x3818f4;super(_0x1eca2c),this[_0x3112e7(0x143)](_0x3112e7(0x13a),!0x0),this[_0x3112e7(0x143)](_0x3112e7(0x146),!0x1),this[_0x3112e7(0x149)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x1e0f36};const _0x1cce69=!(this[_0x3112e7(0x149)][_0x3112e7(0x15e)]||this[_0x3112e7(0x149)][_0x3112e7(0x14a)]||this[_0x3112e7(0x149)][_0x3112e7(0x138)]||this[_0x3112e7(0x149)][_0x3112e7(0x147)]||this[_0x3112e7(0x149)][_0x3112e7(0x145)]?.[_0x3112e7(0x142)]);this[_0x3112e7(0x144)]=_0x1cce69?_0x3112e7(0x15a):_0x3112e7(0x140),this[_0x3112e7(0x149)][_0x3112e7(0x15e)]&&(this[_0x3112e7(0x14e)](),this[_0x3112e7(0x157)][_0x3112e7(0x165)](this[_0x3112e7(0x136)])),this[_0x3112e7(0x149)][_0x3112e7(0x14a)]&&(this[_0x3112e7(0x137)](),this[_0x3112e7(0x157)][_0x3112e7(0x165)](this[_0x3112e7(0x148)])),this[_0x3112e7(0x141)](),this[_0x3112e7(0x149)][_0x3112e7(0x138)]&&this[_0x3112e7(0x157)][_0x3112e7(0x165)](this[_0x3112e7(0x159)]),this[_0x3112e7(0x149)][_0x3112e7(0x147)]&&this[_0x3112e7(0x157)][_0x3112e7(0x165)](this[_0x3112e7(0x152)]),this[_0x3112e7(0x149)][_0x3112e7(0x145)]&&this[_0x3112e7(0x157)][_0x3112e7(0x131)](this[_0x3112e7(0x149)][_0x3112e7(0x145)]);}[_0x3818f4(0x162)](_0x593e3b){const _0x37ffb8=_0x3818f4;this[_0x37ffb8(0x148)][_0x37ffb8(0x13a)]=_0x593e3b;}[_0x3818f4(0x141)](){const _0x5e43fc=_0x3818f4;this[_0x5e43fc(0x159)]=new _0x9cf87b(this[_0x5e43fc(0x14b)]),this[_0x5e43fc(0x159)][_0x5e43fc(0x143)]({'icon':_0x4a5201,'label':_0x582356(this[_0x5e43fc(0x14b)],_0x5e43fc(0x161)),'tooltip':!0x0}),this[_0x5e43fc(0x159)][_0x5e43fc(0x134)](_0x5e43fc(0x13a))['to'](this),this[_0x5e43fc(0x159)]['on'](_0x5e43fc(0x160),()=>{const _0x4433fd=_0x5e43fc;this[_0x4433fd(0x132)](_0x4433fd(0x13f));}),this[_0x5e43fc(0x152)]=new _0x9cf87b(this[_0x5e43fc(0x14b)]),this[_0x5e43fc(0x152)][_0x5e43fc(0x143)]({'icon':_0x28b0b1,'label':_0x582356(this[_0x5e43fc(0x14b)],_0x5e43fc(0x15f)),'tooltip':!0x0}),this[_0x5e43fc(0x152)][_0x5e43fc(0x134)](_0x5e43fc(0x13a))['to'](this),this[_0x5e43fc(0x152)]['on'](_0x5e43fc(0x160),()=>{const _0x1b3761=_0x5e43fc;this[_0x1b3761(0x132)](_0x1b3761(0x158));});}[_0x3818f4(0x14e)](){const _0x35da48=_0x3818f4;this[_0x35da48(0x136)]=new _0x9cf87b(this[_0x35da48(0x14b)]),this[_0x35da48(0x136)][_0x35da48(0x143)]({'icon':_0x160814,'label':_0x582356(this[_0x35da48(0x14b)],_0x35da48(0x164)),'class':_0x35da48(0x12f),'tooltip':!0x0}),this[_0x35da48(0x136)][_0x35da48(0x134)](_0x35da48(0x13a))['to'](this);const _0x11b8ef=new _0x35b29c();_0x11b8ef[_0x35da48(0x143)]({'content':_0x26cdc5}),_0x11b8ef[_0x35da48(0x155)]({'attributes':{'class':[_0x35da48(0x135)]}}),this[_0x35da48(0x136)]['on'](_0x35da48(0x160),()=>{const _0x31552e=_0x35da48;this[_0x31552e(0x136)][_0x31552e(0x144)]=_0x31552e(0x130),setTimeout(()=>{const _0x48d9d5=_0x31552e;this[_0x48d9d5(0x136)][_0x48d9d5(0x144)]=_0x48d9d5(0x12f);},0x7d0);}),this[_0x35da48(0x136)][_0x35da48(0x153)][_0x35da48(0x165)](_0x11b8ef);}[_0x3818f4(0x137)](){const _0x1d0212=_0x3818f4;this[_0x1d0212(0x148)]=new _0x9cf87b(this[_0x1d0212(0x14b)]),this[_0x1d0212(0x148)][_0x1d0212(0x143)]({'icon':_0x254117,'label':_0x582356(this[_0x1d0212(0x14b)],_0x1d0212(0x15b)),'withText':_0x1d0212(0x13d)==this[_0x1d0212(0x149)][_0x1d0212(0x14a)],'tooltip':_0x1d0212(0x13d)!=this[_0x1d0212(0x149)][_0x1d0212(0x14a)],'class':_0x1d0212(0x133)}),this[_0x1d0212(0x148)][_0x1d0212(0x134)](_0x1d0212(0x151))['to'](this,_0x1d0212(0x146)),this[_0x1d0212(0x148)][_0x1d0212(0x134)](_0x1d0212(0x13a))['to'](this),this[_0x1d0212(0x148)][_0x1d0212(0x134)](_0x1d0212(0x14d))['to'](this,_0x1d0212(0x146),_0x115155=>_0x115155?_0x59c788:_0x254117),this[_0x1d0212(0x148)]['on'](_0x1d0212(0x160),()=>{const _0x470a96=_0x1d0212;this[_0x470a96(0x132)](_0x470a96(0x156));});}}
23
+ function _0x4347(){const _0x10abb8=['10376127WRhYiU','AI_MINI_TOOLBAR_LIKE','toggleShowChangesEnabled','items','_setupRatingButtons','copyButton','showCopy','dislikeButton','87041jnRKBL','add','showLike','toggleShowChanges','AI_MINI_TOOLBAR_DISLIKE','4530957qEqaad','ck-ai-mini-toolbar-copy-button__check-mark','ck-ai-mini-toolbar-copy-button','4GqBgdL','showDislike','_config','isEnabled','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','AI_MINI_TOOLBAR_COPY','26OLcojG','2059113xkYnvz','length','children','addMany','4316575GUivOT','likeButton','class','icon','_setupCopyButton','showChangesButton','customView','AI_SUGGESTION_BUTTON_SHOW_CHANGES','full','dislike','ck-ai-mini-toolbar','set','isShowChangesOn','ck-ai-mini-toolbar\x20ck-hidden','bind','9649008RjFcBP','fire','7740690bNIIta','like','showChanges','20vddpBB','locale','extendTemplate','_setupShowChangesButton','ck-ai-button-tertiary','isOn','execute'];_0x4347=function(){return _0x10abb8;};return _0x4347();}const _0x283a0=_0x4786;function _0x4786(_0x2afbbd,_0x5be94c){const _0x4347cc=_0x4347();return _0x4786=function(_0x4786be,_0x4960ea){_0x4786be=_0x4786be-0x72;let _0x279d60=_0x4347cc[_0x4786be];return _0x279d60;},_0x4786(_0x2afbbd,_0x5be94c);}(function(_0x51f73c,_0x4a274a){const _0x8335c1=_0x4786,_0x279c28=_0x51f73c();while(!![]){try{const _0x2f6b9f=-parseInt(_0x8335c1(0xa2))/0x1*(parseInt(_0x8335c1(0x7a))/0x2)+-parseInt(_0x8335c1(0xa7))/0x3*(-parseInt(_0x8335c1(0x74))/0x4)+parseInt(_0x8335c1(0x7f))/0x5+-parseInt(_0x8335c1(0x90))/0x6+-parseInt(_0x8335c1(0x7b))/0x7+-parseInt(_0x8335c1(0x8e))/0x8+parseInt(_0x8335c1(0x9a))/0x9*(parseInt(_0x8335c1(0x93))/0xa);if(_0x2f6b9f===_0x4a274a)break;else _0x279c28['push'](_0x279c28['shift']());}catch(_0x3ed70d){_0x279c28['push'](_0x279c28['shift']());}}}(_0x4347,0xb8f03));import{ButtonView as _0x43dd88,IconView as _0x2d2c97,ToolbarView as _0x2aa4e8}from'ckeditor5/src/ui.js';import{IconCheck as _0xf5c48b,IconCopy as _0x2a870d,IconShowChangesOff as _0x309b68,IconShowChangesOn as _0x166be7,IconThumbDown as _0x1bce5f,IconThumbUp as _0x502b87}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4db299}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x2aa4e8{[_0x283a0(0x9f)];[_0x283a0(0x80)];[_0x283a0(0xa1)];[_0x283a0(0x84)];[_0x283a0(0x76)];constructor(_0x56997c,_0x261213={}){const _0x25909b=_0x283a0;super(_0x56997c),this[_0x25909b(0x8a)](_0x25909b(0x77),!0x0),this[_0x25909b(0x8a)](_0x25909b(0x8b),!0x1),this[_0x25909b(0x76)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x261213};const _0x2c42c0=!(this[_0x25909b(0x76)][_0x25909b(0xa0)]||this[_0x25909b(0x76)][_0x25909b(0x92)]||this[_0x25909b(0x76)][_0x25909b(0xa4)]||this[_0x25909b(0x76)][_0x25909b(0x75)]||this[_0x25909b(0x76)][_0x25909b(0x85)]?.[_0x25909b(0x7c)]);this[_0x25909b(0x81)]=_0x2c42c0?_0x25909b(0x8c):_0x25909b(0x89),this[_0x25909b(0x76)][_0x25909b(0xa0)]&&(this[_0x25909b(0x83)](),this[_0x25909b(0x9d)][_0x25909b(0xa3)](this[_0x25909b(0x9f)])),this[_0x25909b(0x76)][_0x25909b(0x92)]&&(this[_0x25909b(0x96)](),this[_0x25909b(0x9d)][_0x25909b(0xa3)](this[_0x25909b(0x84)])),this[_0x25909b(0x9e)](),this[_0x25909b(0x76)][_0x25909b(0xa4)]&&this[_0x25909b(0x9d)][_0x25909b(0xa3)](this[_0x25909b(0x80)]),this[_0x25909b(0x76)][_0x25909b(0x75)]&&this[_0x25909b(0x9d)][_0x25909b(0xa3)](this[_0x25909b(0xa1)]),this[_0x25909b(0x76)][_0x25909b(0x85)]&&this[_0x25909b(0x9d)][_0x25909b(0x7e)](this[_0x25909b(0x76)][_0x25909b(0x85)]);}[_0x283a0(0x9c)](_0x467d15){const _0x212958=_0x283a0;this[_0x212958(0x84)][_0x212958(0x77)]=_0x467d15;}[_0x283a0(0x9e)](){const _0x5bcce0=_0x283a0;this[_0x5bcce0(0x80)]=new _0x43dd88(this[_0x5bcce0(0x94)]),this[_0x5bcce0(0x80)][_0x5bcce0(0x8a)]({'icon':_0x502b87,'label':_0x4db299(this[_0x5bcce0(0x94)],_0x5bcce0(0x9b)),'tooltip':!0x0}),this[_0x5bcce0(0x80)][_0x5bcce0(0x8d)](_0x5bcce0(0x77))['to'](this),this[_0x5bcce0(0x80)]['on'](_0x5bcce0(0x99),()=>{const _0x1c3bb6=_0x5bcce0;this[_0x1c3bb6(0x8f)](_0x1c3bb6(0x91));}),this[_0x5bcce0(0xa1)]=new _0x43dd88(this[_0x5bcce0(0x94)]),this[_0x5bcce0(0xa1)][_0x5bcce0(0x8a)]({'icon':_0x1bce5f,'label':_0x4db299(this[_0x5bcce0(0x94)],_0x5bcce0(0xa6)),'tooltip':!0x0}),this[_0x5bcce0(0xa1)][_0x5bcce0(0x8d)](_0x5bcce0(0x77))['to'](this),this[_0x5bcce0(0xa1)]['on'](_0x5bcce0(0x99),()=>{const _0x1b00f4=_0x5bcce0;this[_0x1b00f4(0x8f)](_0x1b00f4(0x88));});}[_0x283a0(0x83)](){const _0x1c6d27=_0x283a0;this[_0x1c6d27(0x9f)]=new _0x43dd88(this[_0x1c6d27(0x94)]),this[_0x1c6d27(0x9f)][_0x1c6d27(0x8a)]({'icon':_0x2a870d,'label':_0x4db299(this[_0x1c6d27(0x94)],_0x1c6d27(0x79)),'class':_0x1c6d27(0x73),'tooltip':!0x0}),this[_0x1c6d27(0x9f)][_0x1c6d27(0x8d)](_0x1c6d27(0x77))['to'](this);const _0x24f40a=new _0x2d2c97();_0x24f40a[_0x1c6d27(0x8a)]({'content':_0xf5c48b}),_0x24f40a[_0x1c6d27(0x95)]({'attributes':{'class':[_0x1c6d27(0x72)]}}),this[_0x1c6d27(0x9f)]['on'](_0x1c6d27(0x99),()=>{const _0x180120=_0x1c6d27;this[_0x180120(0x9f)][_0x180120(0x81)]=_0x180120(0x78),setTimeout(()=>{const _0x2e1311=_0x180120;this[_0x2e1311(0x9f)][_0x2e1311(0x81)]=_0x2e1311(0x73);},0x7d0);}),this[_0x1c6d27(0x9f)][_0x1c6d27(0x7d)][_0x1c6d27(0xa3)](_0x24f40a);}[_0x283a0(0x96)](){const _0x46845b=_0x283a0;this[_0x46845b(0x84)]=new _0x43dd88(this[_0x46845b(0x94)]),this[_0x46845b(0x84)][_0x46845b(0x8a)]({'icon':_0x309b68,'label':_0x4db299(this[_0x46845b(0x94)],_0x46845b(0x86)),'withText':_0x46845b(0x87)==this[_0x46845b(0x76)][_0x46845b(0x92)],'tooltip':_0x46845b(0x87)!=this[_0x46845b(0x76)][_0x46845b(0x92)],'class':_0x46845b(0x97)}),this[_0x46845b(0x84)][_0x46845b(0x8d)](_0x46845b(0x98))['to'](this,_0x46845b(0x8b)),this[_0x46845b(0x84)][_0x46845b(0x8d)](_0x46845b(0x77))['to'](this),this[_0x46845b(0x84)][_0x46845b(0x8d)](_0x46845b(0x82))['to'](this,_0x46845b(0x8b),_0x28af2c=>_0x28af2c?_0x166be7:_0x309b68),this[_0x46845b(0x84)]['on'](_0x46845b(0x99),()=>{const _0x5cc789=_0x46845b;this[_0x5cc789(0x8f)](_0x5cc789(0xa5));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c8717=_0x43c9;(function(_0x14b07f,_0x521398){const _0xd23cde=_0x43c9,_0x30b03b=_0x14b07f();while(!![]){try{const _0x7cabc=parseInt(_0xd23cde(0x20d))/0x1*(-parseInt(_0xd23cde(0x200))/0x2)+-parseInt(_0xd23cde(0x215))/0x3*(parseInt(_0xd23cde(0x1eb))/0x4)+parseInt(_0xd23cde(0x210))/0x5*(parseInt(_0xd23cde(0x1e5))/0x6)+parseInt(_0xd23cde(0x21c))/0x7+-parseInt(_0xd23cde(0x216))/0x8+parseInt(_0xd23cde(0x1e9))/0x9+parseInt(_0xd23cde(0x1ff))/0xa*(-parseInt(_0xd23cde(0x1ed))/0xb);if(_0x7cabc===_0x521398)break;else _0x30b03b['push'](_0x30b03b['shift']());}catch(_0x1d31a3){_0x30b03b['push'](_0x30b03b['shift']());}}}(_0x573e,0xe9f50));import{View as _0x12ce86}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x2fb3be}from'./aisuggestioncontentpartview.js';function _0x43c9(_0x53fb41,_0xc944ba){const _0x573e99=_0x573e();return _0x43c9=function(_0x43c9ad,_0x36db6c){_0x43c9ad=_0x43c9ad-0x1e0;let _0x3633a2=_0x573e99[_0x43c9ad];return _0x3633a2;},_0x43c9(_0x53fb41,_0xc944ba);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x49df49}from'../../utils/eventnames.js';import{PromiseQueue as _0x39c9f4}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x31eece}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x22f4e4}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x3b12f0}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x4c1124}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x12ce86{[_0x1c8717(0x21e)];[_0x1c8717(0x1e2)];[_0x1c8717(0x1f1)];[_0x1c8717(0x226)];[_0x1c8717(0x1e3)];[_0x1c8717(0x1e0)];[_0x1c8717(0x20c)];[_0x1c8717(0x1ee)];[_0x1c8717(0x223)]=[];constructor(_0xba4ea7,_0x1560f3){const _0x41ea55=_0x1c8717;super(_0xba4ea7);const {areActionsDisabled:_0x38361c,showUnchangedParts:_0x27c687,availableActions:_0x18719c}=_0x1560f3;this[_0x41ea55(0x226)]=_0x38361c,this[_0x41ea55(0x1e3)]=_0x27c687,this[_0x41ea55(0x1ee)]=_0x18719c,this[_0x41ea55(0x1ec)](_0x41ea55(0x1f2),!0x1),this[_0x41ea55(0x1ec)](_0x41ea55(0x21f),!0x1),this[_0x41ea55(0x1f1)]=this[_0x41ea55(0x20a)](),this[_0x41ea55(0x1e0)]=new _0x39c9f4(),this[_0x41ea55(0x20c)]=new _0x31eece({'id':_0x41ea55(0x204),'initialContent':_0x22f4e4(_0xba4ea7,_0x41ea55(0x21a)),'level':_0x41ea55(0x1e1)}),this[_0x41ea55(0x20c)][_0x41ea55(0x1f6)]=!0x1,this[_0x41ea55(0x21e)]=new _0x3b12f0(_0xba4ea7,_0x1560f3[_0x41ea55(0x1fd)],this[_0x41ea55(0x226)]),this[_0x41ea55(0x21e)][_0x41ea55(0x21d)](_0x41ea55(0x21f))['to'](this),this[_0x41ea55(0x1e2)]=new _0x4c1124(this[_0x41ea55(0x219)],_0x1560f3[_0x41ea55(0x1ef)]),_0x1560f3[_0x41ea55(0x1fa)]?this[_0x41ea55(0x21e)][_0x41ea55(0x208)]=!0x1:this[_0x41ea55(0x21e)][_0x41ea55(0x21d)](_0x41ea55(0x208))['to'](this,_0x41ea55(0x1f2)),this[_0x41ea55(0x21e)][_0x41ea55(0x1f4)](..._0x49df49)['to'](this),this[_0x41ea55(0x1f7)]({'tag':_0x41ea55(0x20b),'attributes':{'class':['ck',_0x41ea55(0x1f8)]},'children':[{'tag':_0x41ea55(0x20b),'attributes':{'class':['ck',_0x41ea55(0x1f5)]},'children':this[_0x41ea55(0x1f1)]},this[_0x41ea55(0x20c)],this[_0x41ea55(0x21e)],this[_0x41ea55(0x1e2)]]});}get[_0x1c8717(0x212)](){const _0xa1e673=_0x1c8717;return this[_0xa1e673(0x1f1)][_0xa1e673(0x225)];}async[_0x1c8717(0x224)]({parts:_0x4397fd,renderingStrategy:_0x3f146e,abortSignal:_0x2e35d4}){const _0x3ec9bb=_0x1c8717;this[_0x3ec9bb(0x1f1)][_0x3ec9bb(0x225)]?_0x4397fd[_0x3ec9bb(0x211)](_0xf4f898=>{const _0x5d20f6=_0x3ec9bb,_0x18922c=this[_0x5d20f6(0x223)][_0x5d20f6(0x221)](_0x428f06=>_0x428f06[_0x5d20f6(0x218)]==_0xf4f898[_0x5d20f6(0x218)]);-0x1===_0x18922c?this[_0x5d20f6(0x223)][_0x5d20f6(0x1f0)](_0xf4f898):this[_0x5d20f6(0x223)][_0x18922c]=_0xf4f898;}):this[_0x3ec9bb(0x223)]=_0x4397fd;const _0x5f3846=this[_0x3ec9bb(0x1e3)]?_0x4397fd:_0x4397fd[_0x3ec9bb(0x209)](_0x5edfc5=>_0x5edfc5[_0x3ec9bb(0x1fb)]);this[_0x3ec9bb(0x21e)][_0x3ec9bb(0x1fc)](_0x5f3846[_0x3ec9bb(0x225)]>0x1);for(const _0x1d6546 of _0x5f3846)this[_0x3ec9bb(0x1e0)][_0x3ec9bb(0x1ea)](async _0x4b8b2e=>{const _0x744fa4=_0x3ec9bb;let _0x107c13=this[_0x744fa4(0x20f)](_0x1d6546[_0x744fa4(0x218)]);_0x107c13||(_0x107c13=new _0x2fb3be(this[_0x744fa4(0x219)],{'part':_0x1d6546,'uiIndex':this[_0x744fa4(0x1f1)][_0x744fa4(0x225)]+0x1,'areActionsDisabled':this[_0x744fa4(0x226)],'availableActions':this[_0x744fa4(0x1ee)]}),_0x107c13[_0x744fa4(0x1f4)](..._0x49df49)['to'](this),this[_0x744fa4(0x1f1)][_0x744fa4(0x203)](_0x107c13),this[_0x744fa4(0x1f2)]=!0x0),await _0x107c13[_0x744fa4(0x1e7)]({'part':_0x1d6546,'renderingStrategy':_0x3f146e,'showUnchangedParts':this[_0x744fa4(0x1e3)],'abortSignal':_0x4b8b2e}),_0x107c13[_0x744fa4(0x220)]();});return _0x2e35d4?.[_0x3ec9bb(0x1fe)](_0x3ec9bb(0x214),()=>{const _0x37fe4d=_0x3ec9bb;this[_0x37fe4d(0x1e0)][_0x37fe4d(0x214)]();}),this[_0x3ec9bb(0x1e0)][_0x3ec9bb(0x1f9)];}[_0x1c8717(0x202)](_0x47b3b6,_0x5571e){const _0xb46ac5=_0x1c8717,_0x4b8259=this[_0xb46ac5(0x20f)](_0x47b3b6);_0x4b8259&&(_0x4b8259[_0xb46ac5(0x1f3)]=_0x5571e),this[_0xb46ac5(0x1f2)]=_0xb46ac5(0x20e)==_0x5571e||Array[_0xb46ac5(0x222)](this[_0xb46ac5(0x1f1)])[_0xb46ac5(0x201)](_0x4885cf=>_0xb46ac5(0x20e)==_0x4885cf[_0xb46ac5(0x1f3)]);}[_0x1c8717(0x213)](_0x43d532,_0x425460){const _0x49960e=_0x1c8717;if(!0x1===_0x43d532){for(const _0x172c6e of this[_0x49960e(0x1f1)])_0x172c6e[_0x49960e(0x1e6)]=!0x1;}else{const _0x5c02ca=this[_0x49960e(0x20f)](_0x43d532);_0x5c02ca&&(_0x5c02ca[_0x49960e(0x1e6)]=_0x425460);}}[_0x1c8717(0x217)](_0x5ed0bd){const _0x361ef7=_0x1c8717;_0x5ed0bd[_0x361ef7(0x211)](_0x5e0d11=>this[_0x361ef7(0x1e2)][_0x361ef7(0x227)](_0x5e0d11)),this[_0x361ef7(0x1e2)][_0x361ef7(0x1f6)]=!0x0;}[_0x1c8717(0x20f)](_0x39f426){const _0x3223df=_0x1c8717;return this[_0x3223df(0x1f1)][_0x3223df(0x207)](_0x161681=>_0x161681[_0x3223df(0x1e8)][_0x3223df(0x218)]==_0x39f426)??null;}[_0x1c8717(0x220)](){const _0x18e824=_0x1c8717;if(!this[_0x18e824(0x1e3)]){const _0x12736b=!this[_0x18e824(0x223)][_0x18e824(0x207)](({hasChanges:_0x374506})=>_0x374506),_0x450066=!!this[_0x18e824(0x223)][_0x18e824(0x207)](({hasChanges:_0x44a90a})=>!_0x44a90a);this[_0x18e824(0x20c)][_0x18e824(0x1f6)]=0x0==this[_0x18e824(0x1f1)][_0x18e824(0x225)]||_0x450066,_0x12736b?this[_0x18e824(0x20c)][_0x18e824(0x205)](_0x22f4e4(this[_0x18e824(0x219)],_0x18e824(0x21b))):this[_0x18e824(0x20c)][_0x18e824(0x205)](_0x22f4e4(this[_0x18e824(0x219)],_0x18e824(0x21a)));}this[_0x18e824(0x1f1)][_0x18e824(0x211)](_0x244191=>_0x244191[_0x18e824(0x220)]()),this[_0x18e824(0x21e)][_0x18e824(0x206)](this[_0x18e824(0x1e4)]);}get[_0x1c8717(0x1e4)](){const _0xfd484=_0x1c8717;return this[_0xfd484(0x1f1)][_0xfd484(0x209)](_0x3a04b5=>_0x3a04b5[_0xfd484(0x1e8)][_0xfd484(0x1fb)])[_0xfd484(0x225)]>0x0;}}function _0x573e(){const _0x181c21=['areActionsDisabled','hasChanges','_switchButtonLabelsPlurality','availableActions','addEventListener','10BfhFnO','2418gzcILb','some','updatePartState','add','empty-parts-warning','setContent','updateVisibility','find','isEnabled','filter','createCollection','div','_emptyPartsWarningView','64BiggFq','pending','getPartView','185RrCeAw','forEach','partsCount','setPartActive','abort','87UIGjMN','2223888DJxFPj','updateSources','index','locale','AI_SUGGESTION_EMPTY_PART_WARNING','AI_SUGGESTION_NO_PARTS_WARNING','12694962yAiaID','bind','_actionsView','isTrackChangesOn','markAsDone','findIndex','from','_cachedContentParts','updateContentParts','length','_areActionsDisabled','addSource','_updateContentPartsPromiseQueue','warning','_sourcesView','_showUnchangedParts','hasNonEmptyParts','219354rQyFPE','isActive','updateContent','partDefinition','4642461SJJLwk','enqueue','147484rdmXgi','set','14290859FtVrwQ','_availableActions','bodyCollection','push','_children','hasPendingParts','state','delegate','ck-ai-suggestion__body__content-parts','isVisible','setTemplate','ck-ai-suggestion__body','queueEmptyPromise'];_0x573e=function(){return _0x181c21;};return _0x573e();}
23
+ const _0x2fbc57=_0x49b7;(function(_0x2e5d22,_0x12f852){const _0x3c913b=_0x49b7,_0x3ebd37=_0x2e5d22();while(!![]){try{const _0x321eb3=-parseInt(_0x3c913b(0x152))/0x1+-parseInt(_0x3c913b(0x16a))/0x2+-parseInt(_0x3c913b(0x150))/0x3*(parseInt(_0x3c913b(0x179))/0x4)+parseInt(_0x3c913b(0x14e))/0x5+-parseInt(_0x3c913b(0x15b))/0x6*(-parseInt(_0x3c913b(0x15c))/0x7)+-parseInt(_0x3c913b(0x13c))/0x8+parseInt(_0x3c913b(0x168))/0x9;if(_0x321eb3===_0x12f852)break;else _0x3ebd37['push'](_0x3ebd37['shift']());}catch(_0x3fef1b){_0x3ebd37['push'](_0x3ebd37['shift']());}}}(_0x1210,0x501ea));import{View as _0x3bf471}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x124b17}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2d0f32}from'../../utils/eventnames.js';import{PromiseQueue as _0x14e280}from'../../../aichat/utils/promisequeue.js';function _0x49b7(_0x575f3b,_0x493835){const _0x1210b0=_0x1210();return _0x49b7=function(_0x49b752,_0x552e05){_0x49b752=_0x49b752-0x13a;let _0x3196c9=_0x1210b0[_0x49b752];return _0x3196c9;},_0x49b7(_0x575f3b,_0x493835);}import{AIChatFeedErrorItemView as _0x4c9e16}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x5bbdc4}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x462085}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x48357d}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x3bf471{[_0x2fbc57(0x169)];[_0x2fbc57(0x153)];[_0x2fbc57(0x170)];[_0x2fbc57(0x147)];[_0x2fbc57(0x17a)];[_0x2fbc57(0x14b)];[_0x2fbc57(0x176)];[_0x2fbc57(0x142)];[_0x2fbc57(0x143)]=[];constructor(_0x334ed6,_0x18b7d9){const _0x472a1e=_0x2fbc57;super(_0x334ed6);const {areActionsDisabled:_0x221fab,showUnchangedParts:_0x487d2c,availableActions:_0xf11968}=_0x18b7d9;this[_0x472a1e(0x147)]=_0x221fab,this[_0x472a1e(0x17a)]=_0x487d2c,this[_0x472a1e(0x142)]=_0xf11968,this[_0x472a1e(0x175)](_0x472a1e(0x174),!0x1),this[_0x472a1e(0x175)](_0x472a1e(0x16c),!0x1),this[_0x472a1e(0x170)]=this[_0x472a1e(0x14c)](),this[_0x472a1e(0x14b)]=new _0x14e280(),this[_0x472a1e(0x176)]=new _0x4c9e16({'id':_0x472a1e(0x162),'initialContent':_0x5bbdc4(_0x334ed6,_0x472a1e(0x154)),'level':_0x472a1e(0x16e)}),this[_0x472a1e(0x176)][_0x472a1e(0x164)]=!0x1,this[_0x472a1e(0x169)]=new _0x462085(_0x334ed6,_0x18b7d9[_0x472a1e(0x17d)],this[_0x472a1e(0x147)]),this[_0x472a1e(0x169)][_0x472a1e(0x171)](_0x472a1e(0x16c))['to'](this),this[_0x472a1e(0x153)]=new _0x48357d(this[_0x472a1e(0x16f)],_0x18b7d9[_0x472a1e(0x157)]),_0x18b7d9[_0x472a1e(0x167)]?this[_0x472a1e(0x169)][_0x472a1e(0x17b)]=!0x1:this[_0x472a1e(0x169)][_0x472a1e(0x171)](_0x472a1e(0x17b))['to'](this,_0x472a1e(0x174)),this[_0x472a1e(0x169)][_0x472a1e(0x148)](..._0x2d0f32)['to'](this),this[_0x472a1e(0x14a)]({'tag':_0x472a1e(0x15e),'attributes':{'class':['ck',_0x472a1e(0x161)]},'children':[{'tag':_0x472a1e(0x15e),'attributes':{'class':['ck',_0x472a1e(0x172)]},'children':this[_0x472a1e(0x170)]},this[_0x472a1e(0x176)],this[_0x472a1e(0x169)],this[_0x472a1e(0x153)]]});}get[_0x2fbc57(0x151)](){const _0x565838=_0x2fbc57;return this[_0x565838(0x170)][_0x565838(0x146)];}async[_0x2fbc57(0x145)]({parts:_0x1970ac,renderingStrategy:_0x4feac3,abortSignal:_0x19c1fa}){const _0x581c69=_0x2fbc57;this[_0x581c69(0x170)][_0x581c69(0x146)]?_0x1970ac[_0x581c69(0x17e)](_0x105cd7=>{const _0x2b9f54=_0x581c69,_0x3a61bf=this[_0x2b9f54(0x143)][_0x2b9f54(0x17f)](_0x3a772e=>_0x3a772e[_0x2b9f54(0x14d)]==_0x105cd7[_0x2b9f54(0x14d)]);-0x1===_0x3a61bf?this[_0x2b9f54(0x143)][_0x2b9f54(0x13b)](_0x105cd7):this[_0x2b9f54(0x143)][_0x3a61bf]=_0x105cd7;}):this[_0x581c69(0x143)]=_0x1970ac;const _0x5e6d6f=this[_0x581c69(0x17a)]?_0x1970ac:_0x1970ac[_0x581c69(0x166)](_0x350625=>_0x350625[_0x581c69(0x158)]);this[_0x581c69(0x169)][_0x581c69(0x16d)](_0x5e6d6f[_0x581c69(0x146)]>0x1);for(const _0x307b80 of _0x5e6d6f)this[_0x581c69(0x14b)][_0x581c69(0x156)](async _0x5d0eda=>{const _0x379b49=_0x581c69;let _0x2f1ba9=this[_0x379b49(0x160)](_0x307b80[_0x379b49(0x14d)]);_0x2f1ba9||(_0x2f1ba9=new _0x124b17(this[_0x379b49(0x16f)],{'part':_0x307b80,'uiIndex':this[_0x379b49(0x170)][_0x379b49(0x146)]+0x1,'areActionsDisabled':this[_0x379b49(0x147)],'availableActions':this[_0x379b49(0x142)]}),_0x2f1ba9[_0x379b49(0x148)](..._0x2d0f32)['to'](this),this[_0x379b49(0x170)][_0x379b49(0x15f)](_0x2f1ba9),this[_0x379b49(0x174)]=!0x0),await _0x2f1ba9[_0x379b49(0x149)]({'part':_0x307b80,'renderingStrategy':_0x4feac3,'showUnchangedParts':this[_0x379b49(0x17a)],'abortSignal':_0x5d0eda}),_0x2f1ba9[_0x379b49(0x13a)]();});return _0x19c1fa?.[_0x581c69(0x141)](_0x581c69(0x165),()=>{const _0x1af869=_0x581c69;this[_0x1af869(0x14b)][_0x1af869(0x165)]();}),this[_0x581c69(0x14b)][_0x581c69(0x14f)];}[_0x2fbc57(0x13e)](_0x460f9d,_0x579be7){const _0x30818e=_0x2fbc57,_0x2a423e=this[_0x30818e(0x160)](_0x460f9d);_0x2a423e&&(_0x2a423e[_0x30818e(0x140)]=_0x579be7),this[_0x30818e(0x174)]=_0x30818e(0x178)==_0x579be7||Array[_0x30818e(0x159)](this[_0x30818e(0x170)])[_0x30818e(0x144)](_0x185b38=>_0x30818e(0x178)==_0x185b38[_0x30818e(0x140)]);}[_0x2fbc57(0x13f)](_0x5ace5c,_0x54093b){const _0xef1ae=_0x2fbc57;if(!0x1===_0x5ace5c){for(const _0x4f9477 of this[_0xef1ae(0x170)])_0x4f9477[_0xef1ae(0x173)]=!0x1;}else{const _0x3db571=this[_0xef1ae(0x160)](_0x5ace5c);_0x3db571&&(_0x3db571[_0xef1ae(0x173)]=_0x54093b);}}[_0x2fbc57(0x17c)](_0x19d755){const _0x3e502b=_0x2fbc57;_0x19d755[_0x3e502b(0x17e)](_0x2110af=>this[_0x3e502b(0x153)][_0x3e502b(0x13d)](_0x2110af)),this[_0x3e502b(0x153)][_0x3e502b(0x164)]=!0x0;}[_0x2fbc57(0x160)](_0x2b2276){const _0x2c92e7=_0x2fbc57;return this[_0x2c92e7(0x170)][_0x2c92e7(0x15d)](_0x3b5a35=>_0x3b5a35[_0x2c92e7(0x16b)][_0x2c92e7(0x14d)]==_0x2b2276)??null;}[_0x2fbc57(0x13a)](){const _0x1de1fb=_0x2fbc57;if(!this[_0x1de1fb(0x17a)]){const _0x16b937=!this[_0x1de1fb(0x143)][_0x1de1fb(0x15d)](({hasChanges:_0x2b62cf})=>_0x2b62cf),_0x3b4ab8=!!this[_0x1de1fb(0x143)][_0x1de1fb(0x15d)](({hasChanges:_0x4d6af1})=>!_0x4d6af1);this[_0x1de1fb(0x176)][_0x1de1fb(0x164)]=0x0==this[_0x1de1fb(0x170)][_0x1de1fb(0x146)]||_0x3b4ab8,_0x16b937?this[_0x1de1fb(0x176)][_0x1de1fb(0x15a)](_0x5bbdc4(this[_0x1de1fb(0x16f)],_0x1de1fb(0x177))):this[_0x1de1fb(0x176)][_0x1de1fb(0x15a)](_0x5bbdc4(this[_0x1de1fb(0x16f)],_0x1de1fb(0x154)));}this[_0x1de1fb(0x170)][_0x1de1fb(0x17e)](_0x1203d0=>_0x1203d0[_0x1de1fb(0x13a)]()),this[_0x1de1fb(0x169)][_0x1de1fb(0x155)](this[_0x1de1fb(0x163)]);}get[_0x2fbc57(0x163)](){const _0x49f171=_0x2fbc57;return this[_0x49f171(0x170)][_0x49f171(0x166)](_0x4f8e42=>_0x4f8e42[_0x49f171(0x16b)][_0x49f171(0x158)])[_0x49f171(0x146)]>0x0;}}function _0x1210(){const _0x7b9cdf=['14TbjMdD','find','div','add','getPartView','ck-ai-suggestion__body','empty-parts-warning','hasNonEmptyParts','isVisible','abort','filter','areActionsDisabled','526077SSymVg','_actionsView','536006aUavzP','partDefinition','isTrackChangesOn','_switchButtonLabelsPlurality','warning','locale','_children','bind','ck-ai-suggestion__body__content-parts','isActive','hasPendingParts','set','_emptyPartsWarningView','AI_SUGGESTION_NO_PARTS_WARNING','pending','159972CqgBCP','_showUnchangedParts','isEnabled','updateSources','availableActions','forEach','findIndex','markAsDone','push','2129104vEsopE','addSource','updatePartState','setPartActive','state','addEventListener','_availableActions','_cachedContentParts','some','updateContentParts','length','_areActionsDisabled','delegate','updateContent','setTemplate','_updateContentPartsPromiseQueue','createCollection','index','2148975wiIbKK','queueEmptyPromise','9RyJQwu','partsCount','57606zIwJaK','_sourcesView','AI_SUGGESTION_EMPTY_PART_WARNING','updateVisibility','enqueue','bodyCollection','hasChanges','from','setContent','1654944MDugYq'];_0x1210=function(){return _0x7b9cdf;};return _0x1210();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54066b=_0x5ea4;(function(_0x366cb2,_0x13d8ff){const _0x2ea0ce=_0x5ea4,_0x11b3d1=_0x366cb2();while(!![]){try{const _0x5c2200=-parseInt(_0x2ea0ce(0x10d))/0x1+parseInt(_0x2ea0ce(0x104))/0x2*(-parseInt(_0x2ea0ce(0x10e))/0x3)+parseInt(_0x2ea0ce(0x10b))/0x4*(parseInt(_0x2ea0ce(0x102))/0x5)+-parseInt(_0x2ea0ce(0xfd))/0x6+parseInt(_0x2ea0ce(0x106))/0x7+-parseInt(_0x2ea0ce(0x103))/0x8*(parseInt(_0x2ea0ce(0xf9))/0x9)+parseInt(_0x2ea0ce(0xff))/0xa;if(_0x5c2200===_0x13d8ff)break;else _0x11b3d1['push'](_0x11b3d1['shift']());}catch(_0x4410ce){_0x11b3d1['push'](_0x11b3d1['shift']());}}}(_0x2611,0x6ff26));import{View as _0x4dc230}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x1dc182}from'./aisuggestionheaderview.js';function _0x5ea4(_0x27e8aa,_0x8bc55a){const _0x2611b7=_0x2611();return _0x5ea4=function(_0x5ea497,_0x36c9cd){_0x5ea497=_0x5ea497-0xf5;let _0x8e7c7f=_0x2611b7[_0x5ea497];return _0x8e7c7f;},_0x5ea4(_0x27e8aa,_0x8bc55a);}import{AISuggestionBodyView as _0x5445bf}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x1f7453}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0x4dc230{[_0x54066b(0xf7)];[_0x54066b(0x112)];[_0x54066b(0xfa)];constructor(_0x2772d4,_0x4f73db,_0x3796bf){const _0x3f59ed=_0x54066b;super(_0x2772d4);const {showDiff:_0x542464,areActionsDisabled:_0x52fe99,showUnchangedParts:_0x2e0004,availableActions:_0x286c90}=_0x4f73db;this[_0x3f59ed(0xf5)](_0x3f59ed(0x105),!0x1),this[_0x3f59ed(0xf5)](_0x3f59ed(0x101),!0x1),this[_0x3f59ed(0x112)]=this[_0x3f59ed(0xf6)](),this[_0x3f59ed(0xfa)]=new _0x1dc182(_0x2772d4,{'showDiff':_0x542464}),this[_0x3f59ed(0xfa)]['on'](_0x3f59ed(0x113),(_0xe62fc3,_0x35674f)=>{const _0x4c567b=_0x3f59ed;this[_0x4c567b(0x101)]=_0x35674f[_0x4c567b(0x108)],this[_0x4c567b(0x115)](_0x4c567b(0xfe),{'showDiff':_0x35674f[_0x4c567b(0x108)]});}),this[_0x3f59ed(0x112)][_0x3f59ed(0x100)](this[_0x3f59ed(0xfa)]),this[_0x3f59ed(0xf7)]=new _0x5445bf(_0x2772d4,{'areActionsDisabled':_0x52fe99,'showUnchangedParts':!!_0x2e0004,'availableActions':_0x286c90,'bodyCollection':_0x3796bf}),this[_0x3f59ed(0xf7)][_0x3f59ed(0xfc)](..._0x1f7453)['to'](this),this[_0x3f59ed(0xf7)][_0x3f59ed(0x107)](_0x3f59ed(0x105))['to'](this),this[_0x3f59ed(0x112)][_0x3f59ed(0x100)](this[_0x3f59ed(0xf7)]),this[_0x3f59ed(0x110)]({'tag':_0x3f59ed(0xfb),'attributes':{'class':['ck',_0x3f59ed(0x10a),_0x3f59ed(0x10c)]},'children':this[_0x3f59ed(0x112)]});}async[_0x54066b(0xf8)](_0x3cdf8f){const _0x46d79c=_0x54066b;await this[_0x46d79c(0xf7)][_0x46d79c(0x111)](_0x3cdf8f);}[_0x54066b(0x116)](_0x729414){const _0x1b20bf=_0x54066b;this[_0x1b20bf(0xf7)][_0x1b20bf(0x116)](_0x729414);}[_0x54066b(0x109)](){const _0x783329=_0x54066b;this[_0x783329(0xf7)][_0x783329(0x109)](),this[_0x783329(0xfa)]&&(this[_0x783329(0xfa)][_0x783329(0x114)]=this[_0x783329(0xf7)][_0x783329(0x10f)]);}}function _0x2611(){const _0x3c1c70=['isOn','markAsDone','ck-ai-suggestion__container','4MLNeBD','ck-rounded-corners','704676sElhjH','6xWITpU','hasNonEmptyParts','setTemplate','updateContentParts','children','toggleShowChanges','isShowChangesToggleVisible','fire','updateSources','set','createCollection','bodyView','updateContent','81cAGIWh','headerView','div','delegate','4766538ZrgVFf','toggleSuggestionDisplayMode','22578340QlJaZB','add','areChangesVisible','3531335ONCuJF','729088LpzMDm','298954FvLesM','isTrackChangesOn','788970BGhVHc','bind'];_0x2611=function(){return _0x3c1c70;};return _0x2611();}
23
+ const _0x5f4e87=_0x6bd6;(function(_0x41144d,_0x11d58e){const _0x27b5bd=_0x6bd6,_0x608bf1=_0x41144d();while(!![]){try{const _0x37b7e7=-parseInt(_0x27b5bd(0xe3))/0x1+-parseInt(_0x27b5bd(0xda))/0x2*(parseInt(_0x27b5bd(0xdc))/0x3)+-parseInt(_0x27b5bd(0xe8))/0x4*(parseInt(_0x27b5bd(0xdd))/0x5)+parseInt(_0x27b5bd(0xf1))/0x6*(parseInt(_0x27b5bd(0xe5))/0x7)+-parseInt(_0x27b5bd(0xf3))/0x8*(parseInt(_0x27b5bd(0xd7))/0x9)+-parseInt(_0x27b5bd(0xea))/0xa+parseInt(_0x27b5bd(0xd4))/0xb;if(_0x37b7e7===_0x11d58e)break;else _0x608bf1['push'](_0x608bf1['shift']());}catch(_0x4bcad4){_0x608bf1['push'](_0x608bf1['shift']());}}}(_0x12f7,0xc9a64));import{View as _0xf678b9}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x324f67}from'./aisuggestionheaderview.js';function _0x6bd6(_0x16095e,_0x5a72ce){const _0x12f70b=_0x12f7();return _0x6bd6=function(_0x6bd629,_0x3afdf8){_0x6bd629=_0x6bd629-0xd2;let _0x5efc46=_0x12f70b[_0x6bd629];return _0x5efc46;},_0x6bd6(_0x16095e,_0x5a72ce);}function _0x12f7(){const _0x62b601=['updateContent','ck-rounded-corners','updateContentParts','46894166lTPsvd','setTemplate','updateSources','162PPPgNe','areChangesVisible','div','164WDoLDH','headerView','55818ocsZKA','5zJVSka','children','bind','hasNonEmptyParts','ck-ai-suggestion__container','isShowChangesToggleVisible','1366623gaZqqF','fire','49zkAIYE','toggleSuggestionDisplayMode','bodyView','147724qGUFkt','toggleShowChanges','10640390imFeeN','isOn','set','isTrackChangesOn','delegate','markAsDone','createCollection','659994dNIdeq','add','95048AbzviH'];_0x12f7=function(){return _0x62b601;};return _0x12f7();}import{AISuggestionBodyView as _0x347841}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2afb50}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0xf678b9{[_0x5f4e87(0xe7)];[_0x5f4e87(0xde)];[_0x5f4e87(0xdb)];constructor(_0x67155d,_0x1a5e8c,_0x54da22){const _0x2b05a0=_0x5f4e87;super(_0x67155d);const {showDiff:_0x34eace,areActionsDisabled:_0x3ef4d8,showUnchangedParts:_0x217028,availableActions:_0x4ea579}=_0x1a5e8c;this[_0x2b05a0(0xec)](_0x2b05a0(0xed),!0x1),this[_0x2b05a0(0xec)](_0x2b05a0(0xd8),!0x1),this[_0x2b05a0(0xde)]=this[_0x2b05a0(0xf0)](),this[_0x2b05a0(0xdb)]=new _0x324f67(_0x67155d,{'showDiff':_0x34eace}),this[_0x2b05a0(0xdb)]['on'](_0x2b05a0(0xe9),(_0x2902cf,_0x4eb184)=>{const _0x106493=_0x2b05a0;this[_0x106493(0xd8)]=_0x4eb184[_0x106493(0xeb)],this[_0x106493(0xe4)](_0x106493(0xe6),{'showDiff':_0x4eb184[_0x106493(0xeb)]});}),this[_0x2b05a0(0xde)][_0x2b05a0(0xf2)](this[_0x2b05a0(0xdb)]),this[_0x2b05a0(0xe7)]=new _0x347841(_0x67155d,{'areActionsDisabled':_0x3ef4d8,'showUnchangedParts':!!_0x217028,'availableActions':_0x4ea579,'bodyCollection':_0x54da22}),this[_0x2b05a0(0xe7)][_0x2b05a0(0xee)](..._0x2afb50)['to'](this),this[_0x2b05a0(0xe7)][_0x2b05a0(0xdf)](_0x2b05a0(0xed))['to'](this),this[_0x2b05a0(0xde)][_0x2b05a0(0xf2)](this[_0x2b05a0(0xe7)]),this[_0x2b05a0(0xd5)]({'tag':_0x2b05a0(0xd9),'attributes':{'class':['ck',_0x2b05a0(0xe1),_0x2b05a0(0xd2)]},'children':this[_0x2b05a0(0xde)]});}async[_0x5f4e87(0xf4)](_0x30acef){const _0x2dec65=_0x5f4e87;await this[_0x2dec65(0xe7)][_0x2dec65(0xd3)](_0x30acef);}[_0x5f4e87(0xd6)](_0x3ec910){const _0x464375=_0x5f4e87;this[_0x464375(0xe7)][_0x464375(0xd6)](_0x3ec910);}[_0x5f4e87(0xef)](){const _0x3c5dda=_0x5f4e87;this[_0x3c5dda(0xe7)][_0x3c5dda(0xef)](),this[_0x3c5dda(0xdb)]&&(this[_0x3c5dda(0xdb)][_0x3c5dda(0xe2)]=this[_0x3c5dda(0xe7)][_0x3c5dda(0xe0)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3145(){var _0x5aadf6=['setTemplate','isEnabled','pending','titleLabelView','6uuSkgH','20TXLehm','index','65475gCylIh','span','rejectSuggestion','3165522CKNPzy','ck-ai-suggestion__body__content-part__title','fire','42210663iDMukR','createCollection','set','add','children','toString','516dHMGQm','AI_SUGGESTION_CONTENT_PART_TITLE','insertSuggestion','bind','toolbarView','5746384lKOmXd','change:state','setState','9iqwIXW','ck-reset_all-excluded','addMany','remove','applySuggestion','state','5385504ammyYU','ck-ai-suggestion__body__content-part__title__label','div','stateView','9108480orfzwd','95932ACccqa'];_0x3145=function(){return _0x5aadf6;};return _0x3145();}var _0x1e5735=_0xb4e4;(function(_0x3c3227,_0x14b3c0){var _0xea402d=_0xb4e4,_0xca234d=_0x3c3227();while(!![]){try{var _0x225951=-parseInt(_0xea402d(0x112))/0x1*(-parseInt(_0xea402d(0x10c))/0x2)+parseInt(_0xea402d(0x117))/0x3+-parseInt(_0xea402d(0x120))/0x4*(-parseInt(_0xea402d(0x114))/0x5)+parseInt(_0xea402d(0x111))/0x6*(parseInt(_0xea402d(0x125))/0x7)+parseInt(_0xea402d(0x107))/0x8*(-parseInt(_0xea402d(0x128))/0x9)+parseInt(_0xea402d(0x10b))/0xa+-parseInt(_0xea402d(0x11a))/0xb;if(_0x225951===_0x14b3c0)break;else _0xca234d['push'](_0xca234d['shift']());}catch(_0x54d52f){_0xca234d['push'](_0xca234d['shift']());}}}(_0x3145,0xe1d3c));import{View as _0x2a1768}from'ckeditor5/src/ui.js';import{getTranslation as _0x5a40ed}from'../../utils/common-translations.js';import{AISuggestionContentPartStateView as _0x2d9a23}from'./aisuggestioncontentpartstateview.js';import{AISuggestionContentPartToolbarView as _0xea8e0f}from'./aisuggestioncontentparttoolbarview.js';function _0xb4e4(_0x4de0eb,_0x4b19c5){var _0x314543=_0x3145();return _0xb4e4=function(_0xb4e4eb,_0x4495d1){_0xb4e4eb=_0xb4e4eb-0x106;var _0x4eb32d=_0x314543[_0xb4e4eb];return _0x4eb32d;},_0xb4e4(_0x4de0eb,_0x4b19c5);}export class AISuggestionContentPartHeaderView extends _0x2a1768{[_0x1e5735(0x124)];[_0x1e5735(0x10a)];[_0x1e5735(0x110)];[_0x1e5735(0x11e)];constructor(_0x124a17,{part:_0x82cb4b,uiIndex:_0x20db96,availableActions:_0x2e4735,areActionsDisabled:_0x5c9f22}){var _0x5cf9eb=_0x1e5735;super(_0x124a17),this[_0x5cf9eb(0x11c)](_0x5cf9eb(0x10e),!0x0),this[_0x5cf9eb(0x11c)](_0x5cf9eb(0x106),_0x5cf9eb(0x10f)),this[_0x5cf9eb(0x124)]=new _0xea8e0f(_0x124a17,_0x2e4735,_0x5c9f22),this[_0x5cf9eb(0x124)]['on'](_0x5cf9eb(0x116),()=>{var _0x91ae9f=_0x5cf9eb;this[_0x91ae9f(0x119)](_0x91ae9f(0x116),{'index':_0x82cb4b[_0x91ae9f(0x113)]});}),this[_0x5cf9eb(0x124)]['on'](_0x5cf9eb(0x122),()=>{var _0x469fe6=_0x5cf9eb;this[_0x469fe6(0x119)](_0x469fe6(0x122),{'index':_0x82cb4b[_0x469fe6(0x113)]});}),this[_0x5cf9eb(0x124)]['on'](_0x5cf9eb(0x12c),()=>{var _0x2b75b0=_0x5cf9eb;this[_0x2b75b0(0x119)](_0x2b75b0(0x12c),{'index':_0x82cb4b[_0x2b75b0(0x113)]});}),this[_0x5cf9eb(0x124)][_0x5cf9eb(0x123)](_0x5cf9eb(0x10e))['to'](this),this[_0x5cf9eb(0x10a)]=new _0x2d9a23(_0x124a17),this[_0x5cf9eb(0x110)]=new Sn(_0x124a17,_0x20db96),this[_0x5cf9eb(0x11e)]=this[_0x5cf9eb(0x11b)](),this[_0x5cf9eb(0x11e)][_0x5cf9eb(0x12a)]([this[_0x5cf9eb(0x110)],this[_0x5cf9eb(0x124)]]),this[_0x5cf9eb(0x10d)]({'tag':_0x5cf9eb(0x109),'attributes':{'class':['ck',_0x5cf9eb(0x129),_0x5cf9eb(0x118)]},'children':this[_0x5cf9eb(0x11e)]}),this['on'](_0x5cf9eb(0x126),(_0x42431f,_0xfa4b82,_0x1656e1,_0x21f16f)=>{var _0x41e000=_0x5cf9eb;_0x41e000(0x10f)===_0x21f16f?this[_0x41e000(0x11e)][_0x41e000(0x12b)](this[_0x41e000(0x124)]):this[_0x41e000(0x11e)][_0x41e000(0x12b)](this[_0x41e000(0x10a)]),_0x41e000(0x10f)===_0x1656e1?this[_0x41e000(0x11e)][_0x41e000(0x11d)](this[_0x41e000(0x124)]):(this[_0x41e000(0x10a)][_0x41e000(0x127)](_0x1656e1),this[_0x41e000(0x11e)][_0x41e000(0x11d)](this[_0x41e000(0x10a)]));});}}class Sn extends _0x2a1768{constructor(_0x323997,_0x23871c){var _0x1bf802=_0x1e5735;super(_0x323997),this[_0x1bf802(0x10d)]({'tag':_0x1bf802(0x115),'attributes':{'class':['ck',_0x1bf802(0x108)]},'children':[_0x5a40ed(_0x323997,_0x1bf802(0x121),_0x23871c[_0x1bf802(0x11f)]())]});}}
23
+ var _0x3b5431=_0x275d;(function(_0x42f1a7,_0x48581c){var _0x344ed8=_0x275d,_0x515352=_0x42f1a7();while(!![]){try{var _0x20f38d=parseInt(_0x344ed8(0xa5))/0x1+parseInt(_0x344ed8(0xb7))/0x2+-parseInt(_0x344ed8(0xa8))/0x3+-parseInt(_0x344ed8(0xbc))/0x4*(-parseInt(_0x344ed8(0xaa))/0x5)+-parseInt(_0x344ed8(0xa2))/0x6*(parseInt(_0x344ed8(0xb5))/0x7)+parseInt(_0x344ed8(0xa6))/0x8*(-parseInt(_0x344ed8(0xbd))/0x9)+-parseInt(_0x344ed8(0xa9))/0xa*(-parseInt(_0x344ed8(0xa3))/0xb);if(_0x20f38d===_0x48581c)break;else _0x515352['push'](_0x515352['shift']());}catch(_0x368561){_0x515352['push'](_0x515352['shift']());}}}(_0x472f,0x89958));import{View as _0x1fc624}from'ckeditor5/src/ui.js';import{getTranslation as _0x254192}from'../../utils/common-translations.js';import{AISuggestionContentPartStateView as _0x5039ab}from'./aisuggestioncontentpartstateview.js';function _0x472f(){var _0x5cfbce=['fire','811040RWrEQN','16BDsGwy','change:state','366075AfAcyd','10yWNwTC','1810qfUltr','ck-ai-suggestion__body__content-part__title','div','state','titleLabelView','remove','bind','ck-reset_all-excluded','pending','setState','AI_SUGGESTION_CONTENT_PART_TITLE','49YiaUBn','set','1266650smWaXb','add','index','isEnabled','setTemplate','2236bcCwkQ','701397sPLCIS','insertSuggestion','span','children','stateView','rejectSuggestion','createCollection','toolbarView','addMany','toString','applySuggestion','ck-ai-suggestion__body__content-part__title__label','813378tzxoii','1580183ecLIWO'];_0x472f=function(){return _0x5cfbce;};return _0x472f();}import{AISuggestionContentPartToolbarView as _0x36f354}from'./aisuggestioncontentparttoolbarview.js';function _0x275d(_0x1aad9a,_0x2ad1e6){var _0x472fab=_0x472f();return _0x275d=function(_0x275db9,_0xc629e3){_0x275db9=_0x275db9-0xa2;var _0x327aca=_0x472fab[_0x275db9];return _0x327aca;},_0x275d(_0x1aad9a,_0x2ad1e6);}export class AISuggestionContentPartHeaderView extends _0x1fc624{[_0x3b5431(0xc4)];[_0x3b5431(0xc1)];[_0x3b5431(0xae)];[_0x3b5431(0xc0)];constructor(_0x1211dd,{part:_0x139eb7,uiIndex:_0x30a8f1,availableActions:_0x5b9fd5,areActionsDisabled:_0x567b85}){var _0x29bd92=_0x3b5431;super(_0x1211dd),this[_0x29bd92(0xb6)](_0x29bd92(0xba),!0x0),this[_0x29bd92(0xb6)](_0x29bd92(0xad),_0x29bd92(0xb2)),this[_0x29bd92(0xc4)]=new _0x36f354(_0x1211dd,_0x5b9fd5,_0x567b85),this[_0x29bd92(0xc4)]['on'](_0x29bd92(0xc2),()=>{var _0x5a8ed5=_0x29bd92;this[_0x5a8ed5(0xa4)](_0x5a8ed5(0xc2),{'index':_0x139eb7[_0x5a8ed5(0xb9)]});}),this[_0x29bd92(0xc4)]['on'](_0x29bd92(0xbe),()=>{var _0x416125=_0x29bd92;this[_0x416125(0xa4)](_0x416125(0xbe),{'index':_0x139eb7[_0x416125(0xb9)]});}),this[_0x29bd92(0xc4)]['on'](_0x29bd92(0xc7),()=>{var _0x28c0c7=_0x29bd92;this[_0x28c0c7(0xa4)](_0x28c0c7(0xc7),{'index':_0x139eb7[_0x28c0c7(0xb9)]});}),this[_0x29bd92(0xc4)][_0x29bd92(0xb0)](_0x29bd92(0xba))['to'](this),this[_0x29bd92(0xc1)]=new _0x5039ab(_0x1211dd),this[_0x29bd92(0xae)]=new Sn(_0x1211dd,_0x30a8f1),this[_0x29bd92(0xc0)]=this[_0x29bd92(0xc3)](),this[_0x29bd92(0xc0)][_0x29bd92(0xc5)]([this[_0x29bd92(0xae)],this[_0x29bd92(0xc4)]]),this[_0x29bd92(0xbb)]({'tag':_0x29bd92(0xac),'attributes':{'class':['ck',_0x29bd92(0xb1),_0x29bd92(0xab)]},'children':this[_0x29bd92(0xc0)]}),this['on'](_0x29bd92(0xa7),(_0xd12ac4,_0x412f90,_0x2ce1f5,_0x134b2c)=>{var _0x3819f8=_0x29bd92;_0x3819f8(0xb2)===_0x134b2c?this[_0x3819f8(0xc0)][_0x3819f8(0xaf)](this[_0x3819f8(0xc4)]):this[_0x3819f8(0xc0)][_0x3819f8(0xaf)](this[_0x3819f8(0xc1)]),_0x3819f8(0xb2)===_0x2ce1f5?this[_0x3819f8(0xc0)][_0x3819f8(0xb8)](this[_0x3819f8(0xc4)]):(this[_0x3819f8(0xc1)][_0x3819f8(0xb3)](_0x2ce1f5),this[_0x3819f8(0xc0)][_0x3819f8(0xb8)](this[_0x3819f8(0xc1)]));});}}class Sn extends _0x1fc624{constructor(_0x5ea099,_0x533025){var _0x567de5=_0x3b5431;super(_0x5ea099),this[_0x567de5(0xbb)]({'tag':_0x567de5(0xbf),'attributes':{'class':['ck',_0x567de5(0xc8)]},'children':[_0x254192(_0x5ea099,_0x567de5(0xb4),_0x533025[_0x567de5(0xc6)]())]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2fc46b=_0x1734;(function(_0x16eadf,_0x5e24d1){const _0x5d3f5f=_0x1734,_0x4886d8=_0x16eadf();while(!![]){try{const _0x16e307=parseInt(_0x5d3f5f(0x159))/0x1+parseInt(_0x5d3f5f(0x167))/0x2*(-parseInt(_0x5d3f5f(0x160))/0x3)+parseInt(_0x5d3f5f(0x15a))/0x4*(-parseInt(_0x5d3f5f(0x15f))/0x5)+parseInt(_0x5d3f5f(0x163))/0x6*(-parseInt(_0x5d3f5f(0x166))/0x7)+parseInt(_0x5d3f5f(0x162))/0x8*(parseInt(_0x5d3f5f(0x157))/0x9)+-parseInt(_0x5d3f5f(0x155))/0xa+parseInt(_0x5d3f5f(0x158))/0xb;if(_0x16e307===_0x5e24d1)break;else _0x4886d8['push'](_0x4886d8['shift']());}catch(_0x983b5f){_0x4886d8['push'](_0x4886d8['shift']());}}}(_0x5970,0xbf67b));import{IconView as _0x269784,View as _0x22ebba}from'ckeditor5/src/ui.js';import{IconBoxWithCross as _0x5e2fe2,IconBoxWithCheck as _0x172de9}from'ckeditor5/src/icons.js';import{getTranslation as _0x342752}from'../../utils/common-translations.js';import'../../../../theme/common/aisuggestioncontentpartstate.css';export const ICON_STATE_MAP={'accepted':_0x172de9,'rejected':_0x5e2fe2,'outdated':_0x5e2fe2};function _0x1734(_0x18c6db,_0xb1b539){const _0x597034=_0x5970();return _0x1734=function(_0x173405,_0x51cec7){_0x173405=_0x173405-0x14f;let _0x2946e7=_0x597034[_0x173405];return _0x2946e7;},_0x1734(_0x18c6db,_0xb1b539);}export class AISuggestionContentPartStateView extends _0x22ebba{[_0x2fc46b(0x152)];constructor(_0x59828c){const _0xab5070=_0x2fc46b;super(_0x59828c);const _0x5a810c=this[_0xab5070(0x161)];this[_0xab5070(0x16c)](_0xab5070(0x15d),_0xab5070(0x16a)),this[_0xab5070(0x16c)](_0xab5070(0x154),!0x0),this[_0xab5070(0x152)]=new StateIconView(),this[_0xab5070(0x152)][_0xab5070(0x16e)](_0xab5070(0x15d))['to'](this),this[_0xab5070(0x164)]({'tag':_0xab5070(0x15b),'attributes':{'class':['ck',_0xab5070(0x16f),_0x5a810c['to'](_0xab5070(0x15d),_0x3b77ea=>_0xab5070(0x150)+_0x3b77ea),_0x5a810c['if'](_0xab5070(0x154),_0xab5070(0x151),_0xf4fdb2=>!_0xf4fdb2)]},'children':[{'tag':_0xab5070(0x15e),'attributes':{'class':[_0xab5070(0x168)]},'children':[{'text':_0x5a810c['to'](_0xab5070(0x15d),_0x3a1096=>{const _0x7b0eb9=_0xab5070;switch(_0x3a1096){case _0x7b0eb9(0x16a):return _0x342752(_0x59828c,_0x7b0eb9(0x16d));case _0x7b0eb9(0x14f):return _0x342752(_0x59828c,_0x7b0eb9(0x156));case _0x7b0eb9(0x169):return _0x342752(_0x59828c,_0x7b0eb9(0x153));}})}]},this[_0xab5070(0x152)]]});}[_0x2fc46b(0x15c)](_0xa7563){const _0x3850b5=_0x2fc46b;this[_0x3850b5(0x15d)]=_0xa7563;}}function _0x5970(){const _0x472945=['AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED','isVisible','11117580mDBVkL','AI_SUGGESTION_CONTENT_PART_STATE_REJECTED','333aDBipo','29944431tKwTMR','163770sUDyeA','124RcuVMA','div','setState','state','span','126715ExUHhA','1956tekoqe','bindTemplate','311384CJlUuv','6444KMZrqe','setTemplate','content','3976pUupPt','3174QDwMQW','ck-ai-suggestion__content-part-state__label','outdated','accepted','change:state','set','AI_SUGGESTION_CONTENT_PART_STATE_ACCEPTED','bind','ck-ai-suggestion__content-part-state','rejected','ck-ai-suggestion__content-part-state_','ck-hidden','stateIconView'];_0x5970=function(){return _0x472945;};return _0x5970();}export class StateIconView extends _0x269784{constructor(){const _0x5ade93=_0x2fc46b;super(),this[_0x5ade93(0x16c)](_0x5ade93(0x15d),_0x5ade93(0x16a)),this[_0x5ade93(0x165)]=ICON_STATE_MAP[this[_0x5ade93(0x15d)]],this['on'](_0x5ade93(0x16b),()=>{const _0x3c847d=_0x5ade93;this[_0x3c847d(0x165)]=ICON_STATE_MAP[this[_0x3c847d(0x15d)]];});}}
23
+ const _0xa19ac1=_0x4b38;(function(_0x49be5a,_0x464909){const _0xa6722b=_0x4b38,_0x16f45f=_0x49be5a();while(!![]){try{const _0x320ba2=-parseInt(_0xa6722b(0x164))/0x1*(parseInt(_0xa6722b(0x168))/0x2)+-parseInt(_0xa6722b(0x175))/0x3+parseInt(_0xa6722b(0x16e))/0x4+parseInt(_0xa6722b(0x163))/0x5*(-parseInt(_0xa6722b(0x166))/0x6)+-parseInt(_0xa6722b(0x173))/0x7*(-parseInt(_0xa6722b(0x176))/0x8)+parseInt(_0xa6722b(0x17b))/0x9+parseInt(_0xa6722b(0x16b))/0xa;if(_0x320ba2===_0x464909)break;else _0x16f45f['push'](_0x16f45f['shift']());}catch(_0x29d416){_0x16f45f['push'](_0x16f45f['shift']());}}}(_0x5bb0,0x98ac3));import{IconView as _0x32e8fd,View as _0x17a561}from'ckeditor5/src/ui.js';import{IconBoxWithCross as _0x224448,IconBoxWithCheck as _0x410904}from'ckeditor5/src/icons.js';import{getTranslation as _0x2f6497}from'../../utils/common-translations.js';import'../../../../theme/common/aisuggestioncontentpartstate.css';export const ICON_STATE_MAP={'accepted':_0x410904,'rejected':_0x224448,'outdated':_0x224448};function _0x4b38(_0x4fcb9d,_0x476e79){const _0x5bb074=_0x5bb0();return _0x4b38=function(_0x4b389b,_0x3124fa){_0x4b389b=_0x4b389b-0x163;let _0x2a724c=_0x5bb074[_0x4b389b];return _0x2a724c;},_0x4b38(_0x4fcb9d,_0x476e79);}export class AISuggestionContentPartStateView extends _0x17a561{[_0xa19ac1(0x181)];constructor(_0x1ff4a1){const _0x4ce6ab=_0xa19ac1;super(_0x1ff4a1);const _0x3603e9=this[_0x4ce6ab(0x177)];this[_0x4ce6ab(0x16f)](_0x4ce6ab(0x171),_0x4ce6ab(0x167)),this[_0x4ce6ab(0x16f)](_0x4ce6ab(0x170),!0x0),this[_0x4ce6ab(0x181)]=new StateIconView(),this[_0x4ce6ab(0x181)][_0x4ce6ab(0x16d)](_0x4ce6ab(0x171))['to'](this),this[_0x4ce6ab(0x172)]({'tag':_0x4ce6ab(0x17f),'attributes':{'class':['ck',_0x4ce6ab(0x17e),_0x3603e9['to'](_0x4ce6ab(0x171),_0x2ada29=>_0x4ce6ab(0x180)+_0x2ada29),_0x3603e9['if'](_0x4ce6ab(0x170),_0x4ce6ab(0x17a),_0x569074=>!_0x569074)]},'children':[{'tag':_0x4ce6ab(0x165),'attributes':{'class':[_0x4ce6ab(0x16a)]},'children':[{'text':_0x3603e9['to'](_0x4ce6ab(0x171),_0x273395=>{const _0x4630ed=_0x4ce6ab;switch(_0x273395){case _0x4630ed(0x167):return _0x2f6497(_0x1ff4a1,_0x4630ed(0x16c));case _0x4630ed(0x17c):return _0x2f6497(_0x1ff4a1,_0x4630ed(0x178));case _0x4630ed(0x182):return _0x2f6497(_0x1ff4a1,_0x4630ed(0x17d));}})}]},this[_0x4ce6ab(0x181)]]});}[_0xa19ac1(0x179)](_0x426904){const _0x2bd8f2=_0xa19ac1;this[_0x2bd8f2(0x171)]=_0x426904;}}function _0x5bb0(){const _0x2cff15=['bind','145928xjQlwy','set','isVisible','state','setTemplate','14JcTyib','content','2336253aZeXCE','730672XUCOXF','bindTemplate','AI_SUGGESTION_CONTENT_PART_STATE_REJECTED','setState','ck-hidden','10959534bcVbTi','rejected','AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED','ck-ai-suggestion__content-part-state','div','ck-ai-suggestion__content-part-state_','stateIconView','outdated','40SrlIaM','20489SANRwy','span','347736hCwOil','accepted','44RbiiPa','change:state','ck-ai-suggestion__content-part-state__label','8816280wazFRy','AI_SUGGESTION_CONTENT_PART_STATE_ACCEPTED'];_0x5bb0=function(){return _0x2cff15;};return _0x5bb0();}export class StateIconView extends _0x32e8fd{constructor(){const _0x5a9062=_0xa19ac1;super(),this[_0x5a9062(0x16f)](_0x5a9062(0x171),_0x5a9062(0x167)),this[_0x5a9062(0x174)]=ICON_STATE_MAP[this[_0x5a9062(0x171)]],this['on'](_0x5a9062(0x169),()=>{const _0x2263c1=_0x5a9062;this[_0x2263c1(0x174)]=ICON_STATE_MAP[this[_0x2263c1(0x171)]];});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x433885=_0x507c;(function(_0x1dd145,_0x4777d7){const _0x8b8599=_0x507c,_0x2b48ec=_0x1dd145();while(!![]){try{const _0x1456d2=-parseInt(_0x8b8599(0x16b))/0x1*(parseInt(_0x8b8599(0x166))/0x2)+-parseInt(_0x8b8599(0x153))/0x3+-parseInt(_0x8b8599(0x16e))/0x4+parseInt(_0x8b8599(0x162))/0x5*(parseInt(_0x8b8599(0x158))/0x6)+parseInt(_0x8b8599(0x154))/0x7*(-parseInt(_0x8b8599(0x173))/0x8)+parseInt(_0x8b8599(0x15c))/0x9*(-parseInt(_0x8b8599(0x15b))/0xa)+parseInt(_0x8b8599(0x15d))/0xb;if(_0x1456d2===_0x4777d7)break;else _0x2b48ec['push'](_0x2b48ec['shift']());}catch(_0x405285){_0x2b48ec['push'](_0x2b48ec['shift']());}}}(_0x45b7,0x72389));import{ButtonView as _0x28236c,ToolbarView as _0x40210e}from'ckeditor5/src/ui.js';import{getTranslation as _0x5bdeec}from'../../utils/common-translations.js';function _0x507c(_0x503add,_0x2083f9){const _0x45b7ba=_0x45b7();return _0x507c=function(_0x507c29,_0xaaaec){_0x507c29=_0x507c29-0x153;let _0x78fce6=_0x45b7ba[_0x507c29];return _0x78fce6;},_0x507c(_0x503add,_0x2083f9);}import{IconBoxWithCross as _0x39379b,IconBoxWithCheck as _0x5b31d4,IconBoxWithMarker as _0x3a6c6f,IconInfo as _0x55708f}from'ckeditor5/src/icons.js';import'../../../../theme/common/aisuggestioncontentparttoolbar.css';function _0x45b7(){const _0x363c79=['execute','fire','961388XXQCPS','includes','_suggestButton','ck-ai-suggestion-content-part-toolbar','ck-hidden','8AGYzYY','AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE','_applyButton','isEnabled','1522071YYXOgM','4790359OxQKEu','applySuggestion','class','bind','1015926JWhPlp','extendTemplate','setButtonsVisibility','70Ouyvho','39141TRZbSe','24546742DnuBPj','set','addMany','rejectSuggestion','insertSuggestion','5alVQKb','isVisible','AI_SUGGESTION_CONTENT_PART_ADD_SUGGESTION','items','10AlwRYi','AI_SUGGESTION_CONTENT_PART_REJECT','push','AI_SUGGESTION_CONTENT_PART_APPLY','bindTemplate','94102aWiPag'];_0x45b7=function(){return _0x363c79;};return _0x45b7();}export class AISuggestionContentPartToolbarView extends _0x40210e{[_0x433885(0x175)];[_0x433885(0x170)];constructor(_0x174968,_0x384c1b,_0x5c89bf){const _0xbd21c0=_0x433885;super(_0x174968);const _0x5a38ec=Boolean(_0x5c89bf);this[_0xbd21c0(0x15e)](_0xbd21c0(0x176),!_0x5a38ec),this[_0xbd21c0(0x15e)](_0xbd21c0(0x163),!0x0),this[_0xbd21c0(0x156)]=_0xbd21c0(0x171);const _0x3aebe4=[];if(_0x5a38ec){const _0x29ed68=new _0x28236c(_0x174968);_0x29ed68[_0xbd21c0(0x15e)]({'label':_0x5bdeec(_0x174968,_0xbd21c0(0x174)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x55708f}),_0x3aebe4[_0xbd21c0(0x168)](_0x29ed68);}else{_0x384c1b[_0xbd21c0(0x16f)](_0xbd21c0(0x155))&&(this[_0xbd21c0(0x175)]=new _0x28236c(_0x174968),this[_0xbd21c0(0x175)][_0xbd21c0(0x15e)]({'label':_0x5bdeec(_0x174968,_0xbd21c0(0x169)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x5b31d4}),this[_0xbd21c0(0x175)][_0xbd21c0(0x157)](_0xbd21c0(0x176))['to'](this),this[_0xbd21c0(0x175)]['on'](_0xbd21c0(0x16c),()=>{const _0x2279c6=_0xbd21c0;this[_0x2279c6(0x16d)](_0x2279c6(0x155));}),_0x3aebe4[_0xbd21c0(0x168)](this[_0xbd21c0(0x175)])),_0x384c1b[_0xbd21c0(0x16f)](_0xbd21c0(0x161))&&(this[_0xbd21c0(0x170)]=new _0x28236c(_0x174968),this[_0xbd21c0(0x170)][_0xbd21c0(0x15e)]({'label':_0x5bdeec(_0x174968,_0xbd21c0(0x164)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x3a6c6f}),this[_0xbd21c0(0x170)][_0xbd21c0(0x157)](_0xbd21c0(0x176))['to'](this),this[_0xbd21c0(0x170)]['on'](_0xbd21c0(0x16c),()=>{const _0x5ac3d4=_0xbd21c0;this[_0x5ac3d4(0x16d)](_0x5ac3d4(0x161));}),_0x3aebe4[_0xbd21c0(0x168)](this[_0xbd21c0(0x170)]));const _0x33c93d=new _0x28236c(_0x174968);_0x33c93d[_0xbd21c0(0x15e)]({'label':_0x5bdeec(_0x174968,_0xbd21c0(0x167)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x39379b}),_0x33c93d[_0xbd21c0(0x157)](_0xbd21c0(0x176))['to'](this),_0x33c93d['on'](_0xbd21c0(0x16c),()=>{const _0x5627f8=_0xbd21c0;this[_0x5627f8(0x16d)](_0x5627f8(0x160));}),_0x3aebe4[_0xbd21c0(0x168)](_0x33c93d);}this[_0xbd21c0(0x165)][_0xbd21c0(0x15f)](_0x3aebe4);const _0x5de709=this[_0xbd21c0(0x16a)];this[_0xbd21c0(0x159)]({'attributes':{'class':[_0x5de709['if'](_0xbd21c0(0x163),_0xbd21c0(0x172),_0x11dcee=>!_0x11dcee)]}});}[_0x433885(0x15a)]({showApplyButton:_0x5514da,showSuggestButton:_0x2f588c}){const _0xe7a0f0=_0x433885;this[_0xe7a0f0(0x175)]&&(this[_0xe7a0f0(0x175)][_0xe7a0f0(0x163)]=_0x5514da),this[_0xe7a0f0(0x170)]&&(this[_0xe7a0f0(0x170)][_0xe7a0f0(0x163)]=_0x2f588c);}}
23
+ function _0x4f50(_0x20cbbc,_0x2835f7){const _0x24da31=_0x24da();return _0x4f50=function(_0x4f5083,_0x30ccaf){_0x4f5083=_0x4f5083-0x1bc;let _0x3464d5=_0x24da31[_0x4f5083];return _0x3464d5;},_0x4f50(_0x20cbbc,_0x2835f7);}const _0xf70fdd=_0x4f50;(function(_0x325e45,_0x16c0b8){const _0x4266ee=_0x4f50,_0x45e315=_0x325e45();while(!![]){try{const _0x284bcf=parseInt(_0x4266ee(0x1d1))/0x1*(parseInt(_0x4266ee(0x1dd))/0x2)+-parseInt(_0x4266ee(0x1c3))/0x3+parseInt(_0x4266ee(0x1c2))/0x4*(-parseInt(_0x4266ee(0x1c5))/0x5)+parseInt(_0x4266ee(0x1d6))/0x6+-parseInt(_0x4266ee(0x1d3))/0x7+parseInt(_0x4266ee(0x1bc))/0x8+-parseInt(_0x4266ee(0x1d9))/0x9;if(_0x284bcf===_0x16c0b8)break;else _0x45e315['push'](_0x45e315['shift']());}catch(_0x474020){_0x45e315['push'](_0x45e315['shift']());}}}(_0x24da,0x47546));import{ButtonView as _0x164c22,ToolbarView as _0x57472f}from'ckeditor5/src/ui.js';import{getTranslation as _0x1e35e8}from'../../utils/common-translations.js';import{IconBoxWithCross as _0x128c7d,IconBoxWithCheck as _0x4f90e0,IconBoxWithMarker as _0x16ce46,IconInfo as _0x4e1a00}from'ckeditor5/src/icons.js';import'../../../../theme/common/aisuggestioncontentparttoolbar.css';export class AISuggestionContentPartToolbarView extends _0x57472f{[_0xf70fdd(0x1ce)];[_0xf70fdd(0x1d4)];constructor(_0x521048,_0x4400fc,_0x2ea933){const _0x435f79=_0xf70fdd;super(_0x521048);const _0x5bf217=Boolean(_0x2ea933);this[_0x435f79(0x1be)](_0x435f79(0x1dc),!_0x5bf217),this[_0x435f79(0x1be)](_0x435f79(0x1d7),!0x0),this[_0x435f79(0x1cc)]=_0x435f79(0x1d2);const _0x10d7e3=[];if(_0x5bf217){const _0xd1749d=new _0x164c22(_0x521048);_0xd1749d[_0x435f79(0x1be)]({'label':_0x1e35e8(_0x521048,_0x435f79(0x1c0)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x4e1a00}),_0x10d7e3[_0x435f79(0x1c4)](_0xd1749d);}else{_0x4400fc[_0x435f79(0x1c6)](_0x435f79(0x1cf))&&(this[_0x435f79(0x1ce)]=new _0x164c22(_0x521048),this[_0x435f79(0x1ce)][_0x435f79(0x1be)]({'label':_0x1e35e8(_0x521048,_0x435f79(0x1ca)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x4f90e0}),this[_0x435f79(0x1ce)][_0x435f79(0x1bf)](_0x435f79(0x1dc))['to'](this),this[_0x435f79(0x1ce)]['on'](_0x435f79(0x1c7),()=>{const _0x3a7617=_0x435f79;this[_0x3a7617(0x1c9)](_0x3a7617(0x1cf));}),_0x10d7e3[_0x435f79(0x1c4)](this[_0x435f79(0x1ce)])),_0x4400fc[_0x435f79(0x1c6)](_0x435f79(0x1bd))&&(this[_0x435f79(0x1d4)]=new _0x164c22(_0x521048),this[_0x435f79(0x1d4)][_0x435f79(0x1be)]({'label':_0x1e35e8(_0x521048,_0x435f79(0x1cd)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x16ce46}),this[_0x435f79(0x1d4)][_0x435f79(0x1bf)](_0x435f79(0x1dc))['to'](this),this[_0x435f79(0x1d4)]['on'](_0x435f79(0x1c7),()=>{const _0x389c1a=_0x435f79;this[_0x389c1a(0x1c9)](_0x389c1a(0x1bd));}),_0x10d7e3[_0x435f79(0x1c4)](this[_0x435f79(0x1d4)]));const _0x204378=new _0x164c22(_0x521048);_0x204378[_0x435f79(0x1be)]({'label':_0x1e35e8(_0x521048,_0x435f79(0x1d8)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x128c7d}),_0x204378[_0x435f79(0x1bf)](_0x435f79(0x1dc))['to'](this),_0x204378['on'](_0x435f79(0x1c7),()=>{const _0x494b03=_0x435f79;this[_0x494b03(0x1c9)](_0x494b03(0x1d5));}),_0x10d7e3[_0x435f79(0x1c4)](_0x204378);}this[_0x435f79(0x1c1)][_0x435f79(0x1cb)](_0x10d7e3);const _0x13ec71=this[_0x435f79(0x1da)];this[_0x435f79(0x1d0)]({'attributes':{'class':[_0x13ec71['if'](_0x435f79(0x1d7),_0x435f79(0x1c8),_0x5928b4=>!_0x5928b4)]}});}[_0xf70fdd(0x1db)]({showApplyButton:_0x3dd315,showSuggestButton:_0x16871f}){const _0x2ce307=_0xf70fdd;this[_0x2ce307(0x1ce)]&&(this[_0x2ce307(0x1ce)][_0x2ce307(0x1d7)]=_0x3dd315),this[_0x2ce307(0x1d4)]&&(this[_0x2ce307(0x1d4)][_0x2ce307(0x1d7)]=_0x16871f);}}function _0x24da(){const _0x38656e=['258355PKuCHT','ck-ai-suggestion-content-part-toolbar','288197SYbFRP','_suggestButton','rejectSuggestion','2134626vARezn','isVisible','AI_SUGGESTION_CONTENT_PART_REJECT','1720404aDiEma','bindTemplate','setButtonsVisibility','isEnabled','2uKMGny','3976328jtFZTM','insertSuggestion','set','bind','AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE','items','1672956gZbFgY','505305XKtmWt','push','5nbEvwz','includes','execute','ck-hidden','fire','AI_SUGGESTION_CONTENT_PART_APPLY','addMany','class','AI_SUGGESTION_CONTENT_PART_ADD_SUGGESTION','_applyButton','applySuggestion','extendTemplate'];_0x24da=function(){return _0x38656e;};return _0x24da();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4933(_0xc46b61,_0x51b07b){const _0x637d4=_0x637d();return _0x4933=function(_0x49335a,_0x22dc68){_0x49335a=_0x49335a-0x1d7;let _0x4e513b=_0x637d4[_0x49335a];return _0x4e513b;},_0x4933(_0xc46b61,_0x51b07b);}function _0x637d(){const _0x912690=['target','isVisible','updateContent','90502QBiCDR','change:isDone','160756dAKadh','setTemplate','element','2863208iVAoym','mouseLeaveSuggestion','ck-ai-suggestion__body__content-part_active','_streamableContentView','7502530PPvnhd','145hICDAG','ck-ai-suggestion__body__content-part_enabled','bindTemplate','showChangeInText','isDone','addMany','isActive','8183FEeUgg','partDefinition','createCollection','toolbarView','state','set','mouseOverSuggestion','_children','isEnabled','2276469AMpyrw','contains','3219885syRaWo','index','2658VGtCgr','ck-ai-suggestion__body__content-part_','delegate','hasChanges','bind','markAsDone','ck-hidden','update','div','change:state','fire','pending','_headerView','ck-ai-suggestion__body__content-part','8JQdxNO'];_0x637d=function(){return _0x912690;};return _0x637d();}const _0x4c35ae=_0x4933;(function(_0x284d1e,_0x133189){const _0x150ef6=_0x4933,_0x3e8932=_0x284d1e();while(!![]){try{const _0x447b88=-parseInt(_0x150ef6(0x1fe))/0x1*(-parseInt(_0x150ef6(0x1fa))/0x2)+parseInt(_0x150ef6(0x1ea))/0x3+parseInt(_0x150ef6(0x200))/0x4*(-parseInt(_0x150ef6(0x1d8))/0x5)+parseInt(_0x150ef6(0x1ec))/0x6*(-parseInt(_0x150ef6(0x1df))/0x7)+parseInt(_0x150ef6(0x203))/0x8+-parseInt(_0x150ef6(0x1e8))/0x9+parseInt(_0x150ef6(0x1d7))/0xa;if(_0x447b88===_0x133189)break;else _0x3e8932['push'](_0x3e8932['shift']());}catch(_0x29a308){_0x3e8932['push'](_0x3e8932['shift']());}}}(_0x637d,0x943c0));import{View as _0x3401d9}from'ckeditor5/src/ui.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x1d0784}from'../../utils/eventnames.js';import{AISuggestionContentPartHeaderView as _0x8230bb}from'./aisuggestioncontentpartheaderview.js';import{AISuggestionStreamableContentView as _0x293ade}from'./aisuggestionstreamablecontentview.js';export class AISuggestionBodyViewContentPartView extends _0x3401d9{[_0x4c35ae(0x1e6)];[_0x4c35ae(0x1f8)];[_0x4c35ae(0x206)];constructor(_0x34515a,{part:_0x195bb9,uiIndex:_0x555d30,areActionsDisabled:_0x4a47ca,availableActions:_0x4f6bdd}){const _0x1c86e1=_0x4c35ae;super(_0x34515a);const _0x4acbb6=this[_0x1c86e1(0x1da)];this[_0x1c86e1(0x1e4)](_0x1c86e1(0x1e3),_0x1c86e1(0x1f7)),this[_0x1c86e1(0x1e4)](_0x1c86e1(0x1dc),!0x1),this[_0x1c86e1(0x1e4)](_0x1c86e1(0x1fc),!0x1),this[_0x1c86e1(0x1e4)](_0x1c86e1(0x1de),!0x1),this[_0x1c86e1(0x1e4)](_0x1c86e1(0x1e7),!0x1);const _0xc34238=()=>{const _0xd8005b=_0x1c86e1;this[_0xd8005b(0x1e7)]=this[_0xd8005b(0x1dc)]&&_0xd8005b(0x1f7)==this[_0xd8005b(0x1e3)]&&!_0x4a47ca;};this['on'](_0x1c86e1(0x1f5),_0xc34238),this['on'](_0x1c86e1(0x1ff),_0xc34238),_0xc34238(),this[_0x1c86e1(0x1e6)]=this[_0x1c86e1(0x1e1)](),this[_0x1c86e1(0x1f8)]=new _0x8230bb(_0x34515a,{'part':_0x195bb9,'uiIndex':_0x555d30,'availableActions':_0x4f6bdd,'areActionsDisabled':_0x4a47ca}),this[_0x1c86e1(0x1f8)][_0x1c86e1(0x1f0)](_0x1c86e1(0x1e7),_0x1c86e1(0x1e3))['to'](this),this[_0x1c86e1(0x1f8)][_0x1c86e1(0x1ee)](..._0x1d0784)['to'](this),this[_0x1c86e1(0x206)]=new _0x293ade(_0x34515a),this[_0x1c86e1(0x1e6)][_0x1c86e1(0x1dd)]([this[_0x1c86e1(0x1f8)],this[_0x1c86e1(0x206)]]),this[_0x1c86e1(0x201)]({'tag':_0x1c86e1(0x1f4),'attributes':{'class':['ck',_0x1c86e1(0x1f9),_0x4acbb6['to'](_0x1c86e1(0x1e3),_0x52e0ad=>_0x1c86e1(0x1ed)+_0x52e0ad),_0x4acbb6['if'](_0x1c86e1(0x1e7),_0x1c86e1(0x1d9)),_0x4acbb6['if'](_0x1c86e1(0x1de),_0x1c86e1(0x205)),_0x4acbb6['if'](_0x1c86e1(0x1fc),_0x1c86e1(0x1f2),_0x2c0bd9=>!_0x2c0bd9)]},'children':this[_0x1c86e1(0x1e6)],'on':{'mouseenter':_0x4acbb6['to'](()=>{const _0x479dee=_0x1c86e1;this[_0x479dee(0x1e7)]&&this[_0x479dee(0x1f6)](_0x479dee(0x1e5),{'index':_0x195bb9[_0x479dee(0x1eb)]});}),'mouseleave':_0x4acbb6['to'](()=>{const _0x474ac4=_0x1c86e1;this[_0x474ac4(0x1e7)]&&this[_0x474ac4(0x1f6)](_0x474ac4(0x204),{'index':_0x195bb9[_0x474ac4(0x1eb)]});}),'click':_0x4acbb6['to'](_0x269393=>{const _0x2f9b06=_0x1c86e1,_0x12ed6c=_0x269393[_0x2f9b06(0x1fb)];this[_0x2f9b06(0x1e7)]&&!this[_0x2f9b06(0x1f8)][_0x2f9b06(0x1e2)][_0x2f9b06(0x202)][_0x2f9b06(0x1e9)](_0x12ed6c)&&this[_0x2f9b06(0x1f6)](_0x2f9b06(0x1db),{'index':_0x195bb9[_0x2f9b06(0x1eb)]});})}});}async[_0x4c35ae(0x1fd)]({part:_0x1bfd84,renderingStrategy:_0x263bd1,showUnchangedParts:_0x43e70c=!0x1,abortSignal:_0x446743}){const _0x29ae44=_0x4c35ae;this[_0x29ae44(0x1e0)]=_0x1bfd84,this[_0x29ae44(0x1fc)]=this[_0x29ae44(0x1e0)][_0x29ae44(0x1ef)]||_0x43e70c,this[_0x29ae44(0x1fc)]&&await this[_0x29ae44(0x206)][_0x29ae44(0x1f3)]({'part':_0x1bfd84,'renderingStrategy':_0x263bd1,'abortSignal':_0x446743});}[_0x4c35ae(0x1f1)](){const _0x19a9d0=_0x4c35ae;this[_0x19a9d0(0x1dc)]=!0x0;}}
23
+ const _0x4d2be0=_0x5c01;(function(_0x357fb1,_0x12e511){const _0x7976bf=_0x5c01,_0x48b05f=_0x357fb1();while(!![]){try{const _0x307a0e=-parseInt(_0x7976bf(0x136))/0x1+parseInt(_0x7976bf(0x14a))/0x2*(parseInt(_0x7976bf(0x162))/0x3)+-parseInt(_0x7976bf(0x141))/0x4+-parseInt(_0x7976bf(0x147))/0x5*(parseInt(_0x7976bf(0x152))/0x6)+-parseInt(_0x7976bf(0x153))/0x7+-parseInt(_0x7976bf(0x13c))/0x8+parseInt(_0x7976bf(0x161))/0x9;if(_0x307a0e===_0x12e511)break;else _0x48b05f['push'](_0x48b05f['shift']());}catch(_0x22ed1b){_0x48b05f['push'](_0x48b05f['shift']());}}}(_0x1f7d,0x76503));import{View as _0x143eed}from'ckeditor5/src/ui.js';function _0x5c01(_0x5700c4,_0x23d221){const _0x1f7d9c=_0x1f7d();return _0x5c01=function(_0x5c0142,_0xb5ccbd){_0x5c0142=_0x5c0142-0x135;let _0x376959=_0x1f7d9c[_0x5c0142];return _0x376959;},_0x5c01(_0x5700c4,_0x23d221);}function _0x1f7d(){const _0x23bbcb=['_children','target','index','hasChanges','isVisible','isActive','ck-ai-suggestion__body__content-part','contains','ck-ai-suggestion__body__content-part_active','9322254mOeFMQ','243xeHbTr','markAsDone','fire','51453rCptSH','createCollection','state','ck-ai-suggestion__body__content-part_enabled','set','toolbarView','2604888jxFJDO','change:isDone','pending','update','mouseLeaveSuggestion','1700624ocdmRn','change:state','addMany','mouseOverSuggestion','setTemplate','element','39890fMPeZS','bind','showChangeInText','19510zBHpdM','ck-ai-suggestion__body__content-part_','bindTemplate','div','isDone','updateContent','delegate','_headerView','12KyUzNm','3662218DwGFkl','isEnabled','partDefinition','ck-hidden','_streamableContentView'];_0x1f7d=function(){return _0x23bbcb;};return _0x1f7d();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4e6423}from'../../utils/eventnames.js';import{AISuggestionContentPartHeaderView as _0x515fcf}from'./aisuggestioncontentpartheaderview.js';import{AISuggestionStreamableContentView as _0x5d055f}from'./aisuggestionstreamablecontentview.js';export class AISuggestionBodyViewContentPartView extends _0x143eed{[_0x4d2be0(0x158)];[_0x4d2be0(0x151)];[_0x4d2be0(0x157)];constructor(_0x3904c9,{part:_0x3d7124,uiIndex:_0x82d30a,areActionsDisabled:_0x32d0c0,availableActions:_0x4c0d9f}){const _0xcaae9c=_0x4d2be0;super(_0x3904c9);const _0x1bfcd8=this[_0xcaae9c(0x14c)];this[_0xcaae9c(0x13a)](_0xcaae9c(0x138),_0xcaae9c(0x13e)),this[_0xcaae9c(0x13a)](_0xcaae9c(0x14e),!0x1),this[_0xcaae9c(0x13a)](_0xcaae9c(0x15c),!0x1),this[_0xcaae9c(0x13a)](_0xcaae9c(0x15d),!0x1),this[_0xcaae9c(0x13a)](_0xcaae9c(0x154),!0x1);const _0x2733e1=()=>{const _0x66dd95=_0xcaae9c;this[_0x66dd95(0x154)]=this[_0x66dd95(0x14e)]&&_0x66dd95(0x13e)==this[_0x66dd95(0x138)]&&!_0x32d0c0;};this['on'](_0xcaae9c(0x142),_0x2733e1),this['on'](_0xcaae9c(0x13d),_0x2733e1),_0x2733e1(),this[_0xcaae9c(0x158)]=this[_0xcaae9c(0x137)](),this[_0xcaae9c(0x151)]=new _0x515fcf(_0x3904c9,{'part':_0x3d7124,'uiIndex':_0x82d30a,'availableActions':_0x4c0d9f,'areActionsDisabled':_0x32d0c0}),this[_0xcaae9c(0x151)][_0xcaae9c(0x148)](_0xcaae9c(0x154),_0xcaae9c(0x138))['to'](this),this[_0xcaae9c(0x151)][_0xcaae9c(0x150)](..._0x4e6423)['to'](this),this[_0xcaae9c(0x157)]=new _0x5d055f(_0x3904c9),this[_0xcaae9c(0x158)][_0xcaae9c(0x143)]([this[_0xcaae9c(0x151)],this[_0xcaae9c(0x157)]]),this[_0xcaae9c(0x145)]({'tag':_0xcaae9c(0x14d),'attributes':{'class':['ck',_0xcaae9c(0x15e),_0x1bfcd8['to'](_0xcaae9c(0x138),_0x556e1c=>_0xcaae9c(0x14b)+_0x556e1c),_0x1bfcd8['if'](_0xcaae9c(0x154),_0xcaae9c(0x139)),_0x1bfcd8['if'](_0xcaae9c(0x15d),_0xcaae9c(0x160)),_0x1bfcd8['if'](_0xcaae9c(0x15c),_0xcaae9c(0x156),_0x1a61fe=>!_0x1a61fe)]},'children':this[_0xcaae9c(0x158)],'on':{'mouseenter':_0x1bfcd8['to'](()=>{const _0x422e12=_0xcaae9c;this[_0x422e12(0x154)]&&this[_0x422e12(0x135)](_0x422e12(0x144),{'index':_0x3d7124[_0x422e12(0x15a)]});}),'mouseleave':_0x1bfcd8['to'](()=>{const _0x452200=_0xcaae9c;this[_0x452200(0x154)]&&this[_0x452200(0x135)](_0x452200(0x140),{'index':_0x3d7124[_0x452200(0x15a)]});}),'click':_0x1bfcd8['to'](_0x53e29e=>{const _0x2215a8=_0xcaae9c,_0x38f41d=_0x53e29e[_0x2215a8(0x159)];this[_0x2215a8(0x154)]&&!this[_0x2215a8(0x151)][_0x2215a8(0x13b)][_0x2215a8(0x146)][_0x2215a8(0x15f)](_0x38f41d)&&this[_0x2215a8(0x135)](_0x2215a8(0x149),{'index':_0x3d7124[_0x2215a8(0x15a)]});})}});}async[_0x4d2be0(0x14f)]({part:_0x2eb43b,renderingStrategy:_0xc5b88d,showUnchangedParts:_0x995fdd=!0x1,abortSignal:_0x391bda}){const _0x43393c=_0x4d2be0;this[_0x43393c(0x155)]=_0x2eb43b,this[_0x43393c(0x15c)]=this[_0x43393c(0x155)][_0x43393c(0x15b)]||_0x995fdd,this[_0x43393c(0x15c)]&&await this[_0x43393c(0x157)][_0x43393c(0x13f)]({'part':_0x2eb43b,'renderingStrategy':_0xc5b88d,'abortSignal':_0x391bda});}[_0x4d2be0(0x163)](){const _0x8582fd=_0x4d2be0;this[_0x8582fd(0x14e)]=!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5d5c(_0x27ab82,_0x26d599){const _0x5d8a8a=_0x5d8a();return _0x5d5c=function(_0x5d5c95,_0x140439){_0x5d5c95=_0x5d5c95-0x1c2;let _0x4c4a5e=_0x5d8a8a[_0x5d5c95];return _0x4c4a5e;},_0x5d5c(_0x27ab82,_0x26d599);}const _0x47a51a=_0x5d5c;(function(_0x253689,_0x586061){const _0x18382f=_0x5d5c,_0x1fe1a3=_0x253689();while(!![]){try{const _0x182d80=parseInt(_0x18382f(0x1d8))/0x1*(parseInt(_0x18382f(0x1de))/0x2)+parseInt(_0x18382f(0x1ce))/0x3*(parseInt(_0x18382f(0x1d2))/0x4)+-parseInt(_0x18382f(0x1d1))/0x5+parseInt(_0x18382f(0x1cb))/0x6*(-parseInt(_0x18382f(0x1d3))/0x7)+parseInt(_0x18382f(0x1c2))/0x8+-parseInt(_0x18382f(0x1c3))/0x9+parseInt(_0x18382f(0x1e0))/0xa*(parseInt(_0x18382f(0x1cc))/0xb);if(_0x182d80===_0x586061)break;else _0x1fe1a3['push'](_0x1fe1a3['shift']());}catch(_0x3def57){_0x1fe1a3['push'](_0x1fe1a3['shift']());}}}(_0x5d8a,0x28612));function _0x5d8a(){const _0x34357e=['div','isShowChangesToggleVisible','178584ardjPJ','2013966vqzebo','showChangesToggleView','bind','iconView','AI_SUGGESTION_BUTTON_SHOW_CHANGES','add','ck-ai-suggestion__header','showDiff','248484pQWPCp','3132140fBzEsr','children','28719YVmJTM','isVisible','showHeader','344245iHKsmJ','4ALIkCE','42zjjEdf','setTemplate','set','render','fire','105125LGeiXO','icon','execute','content','AI_SUGGESTION_HEADER_TITLE','span','2pxLoxo','ck-hidden','20WmDGXo','filter','isOn','ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button','remove','toggleShowChanges'];_0x5d8a=function(){return _0x34357e;};return _0x5d8a();}import{getTranslation as _0x435058}from'../../utils/common-translations.js';import{ButtonView as _0x21a319,IconView as _0x1cff5c,View as _0x3e0f12}from'ckeditor5/src/ui.js';import{IconDocument as _0x5e53c3,IconShowChangesOff as _0xd3e1c4,IconShowChangesOn as _0xfb5de7}from'ckeditor5/src/icons.js';export class AISuggestionHeaderView extends _0x3e0f12{[_0x47a51a(0x1c4)];constructor(_0x4f4197,_0x44ce76){const _0x3c1854=_0x47a51a;super(_0x4f4197),this[_0x3c1854(0x1d5)](_0x3c1854(0x1e7),!0x0),this[_0x3c1854(0x1c4)]=new ShowChangesToggleView(_0x4f4197),this[_0x3c1854(0x1c4)][_0x3c1854(0x1d5)]({'class':_0x3c1854(0x1e3),'label':_0x435058(_0x4f4197,_0x3c1854(0x1c7)),'withText':!0x0}),this[_0x3c1854(0x1c4)][_0x3c1854(0x1e2)]=_0x44ce76[_0x3c1854(0x1ca)],this[_0x3c1854(0x1c4)][_0x3c1854(0x1c5)](_0x3c1854(0x1cf))['to'](this,_0x3c1854(0x1e7)),this[_0x3c1854(0x1c4)][_0x3c1854(0x1c5)](_0x3c1854(0x1d9))['to'](this[_0x3c1854(0x1c4)],_0x3c1854(0x1e2),_0x32aa7a=>_0x32aa7a?_0xfb5de7:_0xd3e1c4),this[_0x3c1854(0x1c4)]['on'](_0x3c1854(0x1da),()=>{const _0x1158d3=_0x3c1854;this[_0x1158d3(0x1c4)][_0x1158d3(0x1e2)]=!this[_0x1158d3(0x1c4)][_0x1158d3(0x1e2)],this[_0x1158d3(0x1d7)](_0x1158d3(0x1e5),{'isOn':this[_0x1158d3(0x1c4)][_0x1158d3(0x1e2)]});});const _0x3fda93=new _0x1cff5c();_0x3fda93[_0x3c1854(0x1db)]=_0x5e53c3,this[_0x3c1854(0x1d4)]({'tag':_0x3c1854(0x1e6),'attributes':{'class':['ck',_0x3c1854(0x1c9),!0x1===_0x44ce76[_0x3c1854(0x1d0)]?_0x3c1854(0x1df):null][_0x3c1854(0x1e1)](Boolean)},'children':[_0x3fda93,{'tag':_0x3c1854(0x1dd),'children':[_0x435058(_0x4f4197,_0x3c1854(0x1dc))]},this[_0x3c1854(0x1c4)]]});}}export class ShowChangesToggleView extends _0x21a319{[_0x47a51a(0x1d6)](){const _0x6a0054=_0x47a51a;super[_0x6a0054(0x1d6)](),this[_0x6a0054(0x1cd)][_0x6a0054(0x1e4)](this[_0x6a0054(0x1c6)]),this[_0x6a0054(0x1cd)][_0x6a0054(0x1c8)](this[_0x6a0054(0x1c6)]);}}
23
+ const _0x3cca15=_0x1908;(function(_0xe3bc3f,_0x17a76d){const _0x425904=_0x1908,_0x49844d=_0xe3bc3f();while(!![]){try{const _0x14ef79=-parseInt(_0x425904(0x1f7))/0x1*(-parseInt(_0x425904(0x1e3))/0x2)+-parseInt(_0x425904(0x1fc))/0x3*(parseInt(_0x425904(0x1e8))/0x4)+parseInt(_0x425904(0x1f1))/0x5+parseInt(_0x425904(0x1e7))/0x6+parseInt(_0x425904(0x1ef))/0x7+parseInt(_0x425904(0x200))/0x8*(parseInt(_0x425904(0x1e4))/0x9)+-parseInt(_0x425904(0x1f9))/0xa;if(_0x14ef79===_0x17a76d)break;else _0x49844d['push'](_0x49844d['shift']());}catch(_0x50d65f){_0x49844d['push'](_0x49844d['shift']());}}}(_0x30b0,0xd543c));import{getTranslation as _0x31f6da}from'../../utils/common-translations.js';import{ButtonView as _0x2ceb98,IconView as _0x138810,View as _0x3dc608}from'ckeditor5/src/ui.js';import{IconDocument as _0x5c2ee8,IconShowChangesOff as _0x4f7c4d,IconShowChangesOn as _0x54ea1d}from'ckeditor5/src/icons.js';export class AISuggestionHeaderView extends _0x3dc608{[_0x3cca15(0x201)];constructor(_0x4dfd51,_0x30a12e){const _0x3cd6b6=_0x3cca15;super(_0x4dfd51),this[_0x3cd6b6(0x1f5)](_0x3cd6b6(0x1e6),!0x0),this[_0x3cd6b6(0x201)]=new ShowChangesToggleView(_0x4dfd51),this[_0x3cd6b6(0x201)][_0x3cd6b6(0x1f5)]({'class':_0x3cd6b6(0x1ee),'label':_0x31f6da(_0x4dfd51,_0x3cd6b6(0x1fe)),'withText':!0x0}),this[_0x3cd6b6(0x201)][_0x3cd6b6(0x1e2)]=_0x30a12e[_0x3cd6b6(0x1f8)],this[_0x3cd6b6(0x201)][_0x3cd6b6(0x1f4)](_0x3cd6b6(0x1e5))['to'](this,_0x3cd6b6(0x1e6)),this[_0x3cd6b6(0x201)][_0x3cd6b6(0x1f4)](_0x3cd6b6(0x1f0))['to'](this[_0x3cd6b6(0x201)],_0x3cd6b6(0x1e2),_0xb1f0f6=>_0xb1f0f6?_0x54ea1d:_0x4f7c4d),this[_0x3cd6b6(0x201)]['on'](_0x3cd6b6(0x1fa),()=>{const _0x274d48=_0x3cd6b6;this[_0x274d48(0x201)][_0x274d48(0x1e2)]=!this[_0x274d48(0x201)][_0x274d48(0x1e2)],this[_0x274d48(0x1f2)](_0x274d48(0x202),{'isOn':this[_0x274d48(0x201)][_0x274d48(0x1e2)]});});const _0xf2dacc=new _0x138810();_0xf2dacc[_0x3cd6b6(0x1ec)]=_0x5c2ee8,this[_0x3cd6b6(0x1ed)]({'tag':_0x3cd6b6(0x1fb),'attributes':{'class':['ck',_0x3cd6b6(0x1fd),!0x1===_0x30a12e[_0x3cd6b6(0x1f6)]?_0x3cd6b6(0x1ea):null][_0x3cd6b6(0x1ff)](Boolean)},'children':[_0xf2dacc,{'tag':_0x3cd6b6(0x1f3),'children':[_0x31f6da(_0x4dfd51,_0x3cd6b6(0x1e0))]},this[_0x3cd6b6(0x201)]]});}}function _0x1908(_0x5e234d,_0x57bd0d){const _0x30b011=_0x30b0();return _0x1908=function(_0x1908ef,_0x538edc){_0x1908ef=_0x1908ef-0x1de;let _0x301c7f=_0x30b011[_0x1908ef];return _0x301c7f;},_0x1908(_0x5e234d,_0x57bd0d);}function _0x30b0(){const _0xe95e68=['showChangesToggleView','toggleShowChanges','remove','add','AI_SUGGESTION_HEADER_TITLE','render','isOn','67558pSpVec','5351166yCcVYH','isVisible','isShowChangesToggleVisible','1963848RSbaKd','1653392IgUYjN','iconView','ck-hidden','children','content','setTemplate','ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button','12185285xKEWDs','icon','7381240nKJMly','fire','span','bind','set','showHeader','27bzSLYd','showDiff','37640380InJBaW','execute','div','3jvFPnN','ck-ai-suggestion__header','AI_SUGGESTION_BUTTON_SHOW_CHANGES','filter','8YCliuy'];_0x30b0=function(){return _0xe95e68;};return _0x30b0();}export class ShowChangesToggleView extends _0x2ceb98{[_0x3cca15(0x1e1)](){const _0x2f3730=_0x3cca15;super[_0x2f3730(0x1e1)](),this[_0x2f3730(0x1eb)][_0x2f3730(0x1de)](this[_0x2f3730(0x1e9)]),this[_0x2f3730(0x1eb)][_0x2f3730(0x1df)](this[_0x2f3730(0x1e9)]);}}