@ckeditor/ckeditor5-ai 47.3.0-alpha.3 → 47.3.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x93ae(_0x13436e,_0xc1f768){const _0xaff2ca=_0xaff2();return _0x93ae=function(_0x93ae74,_0x4b9b37){_0x93ae74=_0x93ae74-0xc0;let _0x2b643b=_0xaff2ca[_0x93ae74];return _0x2b643b;},_0x93ae(_0x13436e,_0xc1f768);}const _0x5e7551=_0x93ae;(function(_0x44e1a0,_0xc868bc){const _0x2ef8e6=_0x93ae,_0x1d8bbc=_0x44e1a0();while(!![]){try{const _0x2b0414=parseInt(_0x2ef8e6(0xef))/0x1+parseInt(_0x2ef8e6(0x108))/0x2*(parseInt(_0x2ef8e6(0xc2))/0x3)+-parseInt(_0x2ef8e6(0xdb))/0x4*(parseInt(_0x2ef8e6(0xc7))/0x5)+-parseInt(_0x2ef8e6(0xf7))/0x6*(-parseInt(_0x2ef8e6(0xeb))/0x7)+-parseInt(_0x2ef8e6(0x10b))/0x8*(-parseInt(_0x2ef8e6(0xff))/0x9)+parseInt(_0x2ef8e6(0xd4))/0xa+-parseInt(_0x2ef8e6(0x115))/0xb*(parseInt(_0x2ef8e6(0xda))/0xc);if(_0x2b0414===_0xc868bc)break;else _0x1d8bbc['push'](_0x1d8bbc['shift']());}catch(_0x5de64c){_0x1d8bbc['push'](_0x1d8bbc['shift']());}}}(_0xaff2,0xe1036));import{CKEditorError as _0x289899,ObservableMixin as _0x279071,uid as _0x356e3f}from'ckeditor5/src/utils.js';import{Element as _0x3ebb89,findAll as _0x4844cf,getAttribute as _0x36a9d9,getParents as _0xcbfd56,Document as _0x28f557,parse as _0x4327d0,Text as _0x2b5435}from'../utils/htmlparser.js';import{AIResponseParser as _0x2867d7}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x56c59b}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x1fbec7}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x450fcc}from'../utils/common-translations.js';import{cloneDeep as _0x42f3dd}from'es-toolkit';function _0xaff2(){const _0x20b469=['parsedContent','pending','content','cachedSuggestionContentParts','removed','cloneNode','find','push','_getDifferentChangeGroups','ai-get-editor-from-context-no-editor','length','modifiedNodeIds','new','823921NnQSul','done','fire','updateChangeGroups','1701482ohvuMl','text-delta','state','data-id','locale','appendContent','removedNodeIds','filter','66EQsdHD','type','data-unstable','modification-delta','convertMarkdownToHTML','getContentParts','merge','reasoning','1188225kMUqTt','parseAndNormalizeHTML','set','every','changes','documentContextContent','unshift','_getCachedContentParts','destroy','233222ShbGvt','setChangeGroupState','withoutDiff','8PfRkVx','replyContentUpdated','aiResponseParser','isDone','areActionsDisabled','aiResponseApplier','index','parsedMergedContent','ai-reply-get-content-parts-group-not-found','map','66nUEkJG','conversation-title','newNodeIds','span','AI_SUGGESTION_CONTENT_PART_REMOVED','42HFNtey','changeGroups','withDiff','replyChangeGroupStateUpdated','sources','836345VRsNPA','node','nextSibling','forEach','previousSibling','indexOf','includes','interactionId','onContentChange','splice','stopListening','values','editor','2709460YOBBQx','_setCachedContentParts','change:content','modified','source','context','5543868JqGFXx','32upczfV','color:\x20#808080;\x20font-style:\x20italic','web-search'];_0xaff2=function(){return _0x20b469;};return _0xaff2();}export const AI_REPLY_TYPES=[_0x5e7551(0xfa),_0x5e7551(0xf0),_0x5e7551(0xdd),_0x5e7551(0xfe)];export const AI_REPLY_TYPES_IGNORED=[_0x5e7551(0x116)];export const AI_REPLY_TITLE_TYPE=_0x5e7551(0x116);export class AIReply extends _0x279071(){['id'];[_0x5e7551(0xce)];[_0x5e7551(0xf8)];[_0x5e7551(0xc6)]=[];[_0x5e7551(0xde)]=new _0x28f557([]);[_0x5e7551(0x112)]=new _0x28f557([]);[_0x5e7551(0xc3)]=[];[_0x5e7551(0x10f)]=!0x1;[_0x5e7551(0x104)];[_0x5e7551(0x10d)];[_0x5e7551(0x110)];[_0x5e7551(0xd3)];[_0x5e7551(0xe1)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x342e1d,content:_0x57534d='',isDone:_0x5717fb=!0x1,interactionId:_0x35e3d4,areActionsDisabled:_0x56aa09,documentContextContent:_0xdab3ca,editor:_0x210c50,id:_0x101229}){const _0x15ca21=_0x5e7551;super(),this['id']=_0x101229||_0x356e3f(),this[_0x15ca21(0xce)]=_0x35e3d4,this[_0x15ca21(0xf8)]=_0x342e1d,this[_0x15ca21(0x10f)]=!!_0x56aa09,this[_0x15ca21(0xd3)]=_0x210c50,this[_0x15ca21(0x10d)]=new _0x2867d7(),this[_0x15ca21(0x110)]=new _0x56c59b(),this[_0x15ca21(0x104)]=_0x4327d0(_0xdab3ca||''),this[_0x15ca21(0x101)](_0x15ca21(0x10e),_0x5717fb),this['on'](_0x15ca21(0xd6),()=>{const _0x47fae3=_0x15ca21;this[_0x47fae3(0xcf)]();}),this[_0x15ca21(0x101)](_0x15ca21(0xe0),_0x57534d);}[_0x5e7551(0xf4)](_0x1416a3){const _0x523a17=_0x5e7551;this[_0x523a17(0x101)](_0x523a17(0xe0),this[_0x523a17(0xe0)]+_0x1416a3);}[_0x5e7551(0xec)](){const _0x5af217=_0x5e7551;this[_0x5af217(0x10e)]||(this[_0x5af217(0x101)](_0x5af217(0x10e),!0x0),this[_0x5af217(0xcf)]());}[_0x5e7551(0x107)](){const _0xfb4a53=_0x5e7551;this[_0xfb4a53(0xd1)]();}[_0x5e7551(0x109)](_0x34359b,_0x499e30){const _0x5a798b=_0x5e7551;this[_0x5a798b(0xc3)][_0x34359b][_0x5a798b(0xf1)]=_0x499e30,this[_0x5a798b(0xed)](_0x5a798b(0xc5),{'reply':this,'index':_0x34359b,'state':_0x499e30});}[_0x5e7551(0xfc)]({showDiff:_0x235107,groupIndex:_0x1a381f}){const _0x1494ea=_0x5e7551;if(!this[_0x1494ea(0xd3)])throw new _0x289899(_0x1494ea(0xe7),null,{'aiReply':this});const _0x174231=this[_0x1494ea(0x106)](_0x235107,_0x1a381f);if(_0x174231)return _0x174231;let _0x5acebb=[];if(void 0x0===_0x1a381f)_0x5acebb=this[_0x1494ea(0xc3)];else{const _0x4e1743=this[_0x1494ea(0xc3)][_0x1494ea(0xe4)](({index:_0x63d43a})=>_0x63d43a===_0x1a381f);if(!_0x4e1743)throw new _0x289899(_0x1494ea(0x113),null,{'aiReply':this,'groupIndex':_0x1a381f});_0x5acebb=[_0x4e1743];}const _0x4d57d5=_0x1fbec7({'editor':this[_0x1494ea(0xd3)],'showDiff':_0x235107,'changeGroups':_0x5acebb,'documentContextContent':this[_0x1494ea(0x104)]});return this[_0x1494ea(0xd5)](_0x235107,_0x4d57d5),_0x4d57d5;}[_0x5e7551(0x106)](_0x5e2c4e,_0x3f18fb){const _0x4979e9=_0x5e7551,_0x4e2dad=_0x5e2c4e?_0x4979e9(0xc4):_0x4979e9(0x10a);if(!this[_0x4979e9(0xe1)][_0x4e2dad][_0x4979e9(0xe8)])return null;const _0x23392f=this[_0x4979e9(0xe1)][_0x4e2dad];if(void 0x0===_0x3f18fb)return _0x42f3dd(_0x23392f);{const _0x13d085=_0x23392f[_0x4979e9(0xe4)](({index:_0x3224b3})=>_0x3224b3===_0x3f18fb);if(_0x13d085)return[_0x42f3dd(_0x13d085)];}return null;}[_0x5e7551(0xd5)](_0x30342b,_0xbaf8fd){const _0x1b6d49=_0x5e7551,_0x3700dc=_0x30342b?_0x1b6d49(0xc4):_0x1b6d49(0x10a);_0xbaf8fd[_0x1b6d49(0xca)](_0x14c11d=>{const _0x18ffcb=_0x1b6d49,_0x172753=this[_0x18ffcb(0xe1)][_0x3700dc],_0x472d66=_0x172753[_0x18ffcb(0xe4)](({index:_0x36ffd5})=>_0x36ffd5===_0x14c11d[_0x18ffcb(0x111)]);if(_0x472d66){const _0x202cb7=_0x172753[_0x18ffcb(0xcc)](_0x472d66);_0x172753[_0x18ffcb(0xd0)](_0x202cb7,0x1,_0x14c11d);}else _0x172753[_0x18ffcb(0xe5)](_0x14c11d);});}[_0x5e7551(0xcf)](){const _0x160d8b=_0x5e7551;if(_0x160d8b(0xfa)===this[_0x160d8b(0xf8)]){this[_0x160d8b(0xde)]=this[_0x160d8b(0x10d)][_0x160d8b(0x100)](this[_0x160d8b(0xe0)]);const _0x52860b=this[_0x160d8b(0xc3)];this[_0x160d8b(0xee)]();const _0xbfe301=this[_0x160d8b(0xe6)](_0x52860b,this[_0x160d8b(0xc3)]);(_0xbfe301[_0x160d8b(0xe8)]||this[_0x160d8b(0x10e)])&&(this[_0x160d8b(0xed)](_0x160d8b(0x10c),this,_0xbfe301),this[_0x160d8b(0xe1)][_0x160d8b(0xc4)][_0x160d8b(0xe8)]=this[_0x160d8b(0xe1)][_0x160d8b(0x10a)][_0x160d8b(0xe8)]=0x0);}else this[_0x160d8b(0xde)]=this[_0x160d8b(0x10d)][_0x160d8b(0xfb)](this[_0x160d8b(0xe0)]),this[_0x160d8b(0xed)](_0x160d8b(0x10c),this);}[_0x5e7551(0xe6)](_0x7bd7fc,_0x346ce5){const _0xda15e3=_0x5e7551,_0xe7d597=[];for(const _0x528a39 of _0x346ce5){const _0x4206ee=_0x7bd7fc[_0x528a39[_0xda15e3(0x111)]];_0x4206ee?_0x4206ee[_0xda15e3(0x103)][_0xda15e3(0xe8)]!==_0x528a39[_0xda15e3(0x103)][_0xda15e3(0xe8)]?_0xe7d597[_0xda15e3(0xe5)](_0x528a39):_0x4206ee[_0xda15e3(0x103)][_0xda15e3(0xca)]((_0x4a12e3,_0xc5d55b)=>{const _0x4bd378=_0xda15e3,_0x2159f5=_0x528a39[_0x4bd378(0x103)][_0xc5d55b];_0x4a12e3['id']!==_0x2159f5['id']&&_0xe7d597[_0x4bd378(0xe5)](_0x528a39);}):_0xe7d597[_0xda15e3(0xe5)](_0x528a39);}return _0xe7d597;}[_0x5e7551(0xee)](){const _0x5be3e6=_0x5e7551,_0x17390d=new _0x3ebb89('p',{},[new _0x3ebb89(_0x5be3e6(0xc0),{'style':_0x5be3e6(0xdc)},[new _0x2b5435(_0x450fcc(this[_0x5be3e6(0xd3)][_0x5be3e6(0xf3)],_0x5be3e6(0xc1)))])]),_0x1aadf1=this[_0x5be3e6(0x110)][_0x5be3e6(0xfd)](this[_0x5be3e6(0xde)],this[_0x5be3e6(0x104)][_0x5be3e6(0xe3)](!0x0),{'markUnstableElements':!this[_0x5be3e6(0x10e)],'replaceRemovedWith':_0x17390d,'cutAfterLastChange':!this[_0x5be3e6(0x10e)]});if(!_0x1aadf1[_0x5be3e6(0xe9)][_0x5be3e6(0xe8)]&&!this[_0x5be3e6(0x10e)])return;this[_0x5be3e6(0x112)]=_0x1aadf1[_0x5be3e6(0xde)];let _0x3dee4b=[];if(_0x4844cf(_0x5d7f4b=>{const _0x423dea=_0x5be3e6,_0x427045=_0x36a9d9(_0x5d7f4b,_0x423dea(0xf2));if(!_0x427045||!_0x36821d(_0x427045))return!0x1;const _0x2a7ee2=[_0x5d7f4b,..._0xcbfd56(_0x5d7f4b)]['at'](-0x2);if(_0x5d7f4b!=_0x2a7ee2){const _0x5bc9e7=_0x36a9d9(_0x2a7ee2,_0x423dea(0xf2));_0x36821d(_0x5bc9e7)||(_0x3dee4b[_0x423dea(0xe5)]({'node':_0x2a7ee2,'id':_0x5bc9e7,'type':_0x423dea(0xd7)}),_0x1aadf1[_0x423dea(0xe9)][_0x423dea(0xe5)](_0x5bc9e7));}else _0x1aadf1[_0x423dea(0xe9)][_0x423dea(0xcd)](_0x427045)?_0x3dee4b[_0x423dea(0xe5)]({'node':_0x5d7f4b,'type':_0x423dea(0xd7),'id':_0x427045}):_0x1aadf1[_0x423dea(0x117)][_0x423dea(0xcd)](_0x427045)?_0x3dee4b[_0x423dea(0xe5)]({'node':_0x5d7f4b,'type':_0x423dea(0xea),'id':_0x427045,'anchorId':_0x36a9d9(_0x5d7f4b[_0x423dea(0xcb)],_0x423dea(0xf2))}):_0x3dee4b[_0x423dea(0xe5)]({'node':_0x5d7f4b,'type':_0x423dea(0xe2),'id':_0x427045});return!0x0;},this[_0x5be3e6(0x112)]),_0x3dee4b=_0x3dee4b[_0x5be3e6(0xf6)](({node:_0xadaf25})=>[..._0xcbfd56(_0xadaf25),_0xadaf25][_0x5be3e6(0x102)](_0x2e0045=>!_0x36a9d9(_0x2e0045,_0x5be3e6(0xf9)))),0x0==_0x3dee4b[_0x5be3e6(0xe8)])return;const _0x9de8ee=[[_0x3dee4b[0x0]]];for(let _0xf4ed83=0x1;_0xf4ed83<_0x3dee4b[_0x5be3e6(0xe8)];_0xf4ed83++){const _0x47fd35=_0x9de8ee[_0x9de8ee[_0x5be3e6(0xe8)]-0x1],_0x374f1c=_0x47fd35[_0x47fd35[_0x5be3e6(0xe8)]-0x1];_0x3dee4b[_0xf4ed83][_0x5be3e6(0xc8)][_0x5be3e6(0xcb)]==_0x374f1c[_0x5be3e6(0xc8)]&&_0x5be3e6(0xd7)!=_0x3dee4b[_0xf4ed83][_0x5be3e6(0xf8)]&&_0x5be3e6(0xd7)!=_0x374f1c[_0x5be3e6(0xf8)]?_0x47fd35[_0x5be3e6(0xe5)](_0x3dee4b[_0xf4ed83]):_0x9de8ee[_0x5be3e6(0xe5)]([_0x3dee4b[_0xf4ed83]]);}for(const _0xcb5ea5 of _0x9de8ee){const _0x233ca4=_0xcb5ea5[0x0],_0x10eed5=_0xcb5ea5[_0xcb5ea5[_0x5be3e6(0xe8)]-0x1],_0x33c8d1=_0x149927(_0x233ca4[_0x5be3e6(0xc8)][_0x5be3e6(0xcb)]);_0x33c8d1&&_0xcb5ea5[_0x5be3e6(0x105)](_0x33c8d1);const _0x13b32c=_0x149927(_0x10eed5[_0x5be3e6(0xc8)][_0x5be3e6(0xc9)]);_0x13b32c&&_0xcb5ea5[_0x5be3e6(0xe5)](_0x13b32c);}function _0x36821d(_0x59f6e3){const _0x223088=_0x5be3e6;return _0x1aadf1[_0x223088(0xe9)][_0x223088(0xcd)](_0x59f6e3)||_0x1aadf1[_0x223088(0x117)][_0x223088(0xcd)](_0x59f6e3)||_0x1aadf1[_0x223088(0xf5)][_0x223088(0xcd)](_0x59f6e3);}function _0x149927(_0x31d548){const _0x2847d1=_0x5be3e6;if(_0x31d548&&_0x36a9d9(_0x31d548,_0x2847d1(0xf2))&&!_0x36a9d9(_0x31d548,_0x2847d1(0xf9))){const _0x5569bf=_0x36a9d9(_0x31d548,_0x2847d1(0xf2));if(!_0x36821d(_0x5569bf))return{'node':_0x31d548,'type':_0x2847d1(0xd9),'id':_0x5569bf};}return null;}this[_0x5be3e6(0xc3)]=_0x9de8ee[_0x5be3e6(0x114)]((_0x3a7ed3,_0x50af4a)=>({'changes':_0x3a7ed3,'state':_0x5be3e6(0xdf),'index':_0x50af4a}));}}export function isValidReplyType(_0x41995){const _0x70ec6d=_0x5e7551;return Object[_0x70ec6d(0xd2)](AI_REPLY_TYPES)[_0x70ec6d(0xcd)](_0x41995);}export function isIgnoredReplyType(_0x36802f){const _0x4d542c=_0x5e7551;return AI_REPLY_TYPES_IGNORED[_0x4d542c(0xcd)](_0x36802f);}export function isReplyTitleType(_0x55bcfc){return _0x55bcfc===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x2148c9){const _0x4bc581=_0x5e7551;return _0x4bc581(0xd8)===_0x2148c9;}
|
|
23
|
+
const _0x4af744=_0x5559;(function(_0x28b2b3,_0x2c071e){const _0x3da143=_0x5559,_0x3eed76=_0x28b2b3();while(!![]){try{const _0x4deee3=parseInt(_0x3da143(0x166))/0x1+-parseInt(_0x3da143(0x184))/0x2*(-parseInt(_0x3da143(0x167))/0x3)+-parseInt(_0x3da143(0x160))/0x4+parseInt(_0x3da143(0x179))/0x5*(-parseInt(_0x3da143(0x15c))/0x6)+-parseInt(_0x3da143(0x15b))/0x7*(-parseInt(_0x3da143(0x153))/0x8)+-parseInt(_0x3da143(0x183))/0x9*(parseInt(_0x3da143(0x14e))/0xa)+parseInt(_0x3da143(0x177))/0xb;if(_0x4deee3===_0x2c071e)break;else _0x3eed76['push'](_0x3eed76['shift']());}catch(_0x560cee){_0x3eed76['push'](_0x3eed76['shift']());}}}(_0x1219,0x49907));import{CKEditorError as _0x2e909d,ObservableMixin as _0x2c8a4a,uid as _0x3a54c1}from'ckeditor5/src/utils.js';import{Element as _0x3e473c,findAll as _0x545dd0,getAttribute as _0x296da2,getParents as _0x4c1619,Document as _0xb3d6b4,parse as _0x38e2a8,Text as _0x467001}from'../utils/htmlparser.js';import{AIResponseParser as _0xf7a3a}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x5d2d17}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x18beec}from'../utils/getsuggestionpartsfromreply.js';function _0x5559(_0x10da92,_0x491e1e){const _0x12195c=_0x1219();return _0x5559=function(_0x5559d7,_0x33e04f){_0x5559d7=_0x5559d7-0x137;let _0xade62a=_0x12195c[_0x5559d7];return _0xade62a;},_0x5559(_0x10da92,_0x491e1e);}import{getTranslation as _0x56ad69}from'../utils/common-translations.js';import{cloneDeep as _0xb660dc}from'es-toolkit';function _0x1219(){const _0x1abd10=['span','pending','previousSibling','index','length','change:content','parsedMergedContent','state','modified','type','aiResponseParser','splice','documentContextContent','fire','indexOf','6543119ZpJlDD','set','1155445nmokFX','withDiff','web-search','push','merge','reasoning','parsedContent','areActionsDisabled','setChangeGroupState','updateChangeGroups','29277nuQATg','5918vADDeR','aiResponseApplier','filter','every','color:\x20#808080;\x20font-style:\x20italic','find','conversation-title','ai-reply-get-content-parts-group-not-found','forEach','done','getContentParts','replyChangeGroupStateUpdated','_setCachedContentParts','modifiedNodeIds','replyContentUpdated','AI_SUGGESTION_CONTENT_PART_REMOVED','parseAndNormalizeHTML','_getCachedContentParts','destroy','text-delta','changeGroups','editor','new','nextSibling','context','modification-delta','removedNodeIds','locale','cachedSuggestionContentParts','newNodeIds','unshift','isDone','sources','210QXIpPH','removed','data-id','values','stopListening','2920eufrAc','withoutDiff','_getDifferentChangeGroups','map','data-unstable','cloneNode','appendContent','convertMarkdownToHTML','56zspRTD','12FbGRHb','changes','content','node','1285024BOmGOt','source','includes','ai-get-editor-from-context-no-editor','onContentChange','interactionId','422162qcWwys','135jisIss'];_0x1219=function(){return _0x1abd10;};return _0x1219();}export const AI_REPLY_TYPES=[_0x4af744(0x146),_0x4af744(0x140),_0x4af744(0x17b),_0x4af744(0x17e)];export const AI_REPLY_TYPES_IGNORED=[_0x4af744(0x18a)];export const AI_REPLY_TITLE_TYPE=_0x4af744(0x18a);export class AIReply extends _0x2c8a4a(){['id'];[_0x4af744(0x165)];[_0x4af744(0x171)];[_0x4af744(0x14d)]=[];[_0x4af744(0x17f)]=new _0xb3d6b4([]);[_0x4af744(0x16e)]=new _0xb3d6b4([]);[_0x4af744(0x141)]=[];[_0x4af744(0x180)]=!0x1;[_0x4af744(0x174)];[_0x4af744(0x172)];[_0x4af744(0x185)];[_0x4af744(0x142)];[_0x4af744(0x149)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x53f5c6,content:_0x43a3ef='',isDone:_0x34b7e4=!0x1,interactionId:_0x38fdd0,areActionsDisabled:_0x3a3cb4,documentContextContent:_0x332439,editor:_0x409618,id:_0x28d79f}){const _0x8c0f57=_0x4af744;super(),this['id']=_0x28d79f||_0x3a54c1(),this[_0x8c0f57(0x165)]=_0x38fdd0,this[_0x8c0f57(0x171)]=_0x53f5c6,this[_0x8c0f57(0x180)]=!!_0x3a3cb4,this[_0x8c0f57(0x142)]=_0x409618,this[_0x8c0f57(0x172)]=new _0xf7a3a(),this[_0x8c0f57(0x185)]=new _0x5d2d17(),this[_0x8c0f57(0x174)]=_0x38e2a8(_0x332439||''),this[_0x8c0f57(0x178)](_0x8c0f57(0x14c),_0x34b7e4),this['on'](_0x8c0f57(0x16d),()=>{const _0x2f231c=_0x8c0f57;this[_0x2f231c(0x164)]();}),this[_0x8c0f57(0x178)](_0x8c0f57(0x15e),_0x43a3ef);}[_0x4af744(0x159)](_0x36f21d){const _0x4c51e6=_0x4af744;this[_0x4c51e6(0x178)](_0x4c51e6(0x15e),this[_0x4c51e6(0x15e)]+_0x36f21d);}[_0x4af744(0x18d)](){const _0x468c56=_0x4af744;this[_0x468c56(0x14c)]||(this[_0x468c56(0x178)](_0x468c56(0x14c),!0x0),this[_0x468c56(0x164)]());}[_0x4af744(0x13f)](){const _0x30ad5a=_0x4af744;this[_0x30ad5a(0x152)]();}[_0x4af744(0x181)](_0x3fdd32,_0x3e2b68){const _0xaf2ec4=_0x4af744;this[_0xaf2ec4(0x141)][_0x3fdd32][_0xaf2ec4(0x16f)]=_0x3e2b68,this[_0xaf2ec4(0x175)](_0xaf2ec4(0x138),{'reply':this,'index':_0x3fdd32,'state':_0x3e2b68});}[_0x4af744(0x137)]({showDiff:_0x298da3,groupIndex:_0x1af748}){const _0x2fe399=_0x4af744;if(!this[_0x2fe399(0x142)])throw new _0x2e909d(_0x2fe399(0x163),null,{'aiReply':this});const _0x176395=this[_0x2fe399(0x13e)](_0x298da3,_0x1af748);if(_0x176395)return _0x176395;let _0x3adc2b=[];if(void 0x0===_0x1af748)_0x3adc2b=this[_0x2fe399(0x141)];else{const _0x168593=this[_0x2fe399(0x141)][_0x2fe399(0x189)](({index:_0x4268d9})=>_0x4268d9===_0x1af748);if(!_0x168593)throw new _0x2e909d(_0x2fe399(0x18b),null,{'aiReply':this,'groupIndex':_0x1af748});_0x3adc2b=[_0x168593];}const _0x29c2c9=_0x18beec({'editor':this[_0x2fe399(0x142)],'showDiff':_0x298da3,'changeGroups':_0x3adc2b,'documentContextContent':this[_0x2fe399(0x174)]});return this[_0x2fe399(0x139)](_0x298da3,_0x29c2c9),_0x29c2c9;}[_0x4af744(0x13e)](_0x4d54aa,_0x30a8e6){const _0x8df6b7=_0x4af744,_0x18b49d=_0x4d54aa?_0x8df6b7(0x17a):_0x8df6b7(0x154);if(!this[_0x8df6b7(0x149)][_0x18b49d][_0x8df6b7(0x16c)])return null;const _0x12c307=this[_0x8df6b7(0x149)][_0x18b49d];if(void 0x0===_0x30a8e6)return _0xb660dc(_0x12c307);{const _0x4c9d17=_0x12c307[_0x8df6b7(0x189)](({index:_0x539c69})=>_0x539c69===_0x30a8e6);if(_0x4c9d17)return[_0xb660dc(_0x4c9d17)];}return null;}[_0x4af744(0x139)](_0x26e7eb,_0x16722b){const _0x590b5a=_0x4af744,_0x10d771=_0x26e7eb?_0x590b5a(0x17a):_0x590b5a(0x154);_0x16722b[_0x590b5a(0x18c)](_0x5a3589=>{const _0x203110=_0x590b5a,_0x398144=this[_0x203110(0x149)][_0x10d771],_0x438bd6=_0x398144[_0x203110(0x189)](({index:_0x455c2d})=>_0x455c2d===_0x5a3589[_0x203110(0x16b)]);if(_0x438bd6){const _0x243230=_0x398144[_0x203110(0x176)](_0x438bd6);_0x398144[_0x203110(0x173)](_0x243230,0x1,_0x5a3589);}else _0x398144[_0x203110(0x17c)](_0x5a3589);});}[_0x4af744(0x164)](){const _0x30d2c3=_0x4af744;if(_0x30d2c3(0x146)===this[_0x30d2c3(0x171)]){this[_0x30d2c3(0x17f)]=this[_0x30d2c3(0x172)][_0x30d2c3(0x13d)](this[_0x30d2c3(0x15e)]);const _0x53bde2=this[_0x30d2c3(0x141)];this[_0x30d2c3(0x182)]();const _0x2dff5f=this[_0x30d2c3(0x155)](_0x53bde2,this[_0x30d2c3(0x141)]);(_0x2dff5f[_0x30d2c3(0x16c)]||this[_0x30d2c3(0x14c)])&&(this[_0x30d2c3(0x175)](_0x30d2c3(0x13b),this,_0x2dff5f),this[_0x30d2c3(0x149)][_0x30d2c3(0x17a)][_0x30d2c3(0x16c)]=this[_0x30d2c3(0x149)][_0x30d2c3(0x154)][_0x30d2c3(0x16c)]=0x0);}else this[_0x30d2c3(0x17f)]=this[_0x30d2c3(0x172)][_0x30d2c3(0x15a)](this[_0x30d2c3(0x15e)]),this[_0x30d2c3(0x175)](_0x30d2c3(0x13b),this);}[_0x4af744(0x155)](_0x294cf9,_0x5c4e86){const _0x262436=_0x4af744,_0x13a697=[];for(const _0x563420 of _0x5c4e86){const _0x2df30e=_0x294cf9[_0x563420[_0x262436(0x16b)]];_0x2df30e?_0x2df30e[_0x262436(0x15d)][_0x262436(0x16c)]!==_0x563420[_0x262436(0x15d)][_0x262436(0x16c)]?_0x13a697[_0x262436(0x17c)](_0x563420):_0x2df30e[_0x262436(0x15d)][_0x262436(0x18c)]((_0x6a422c,_0xb3c194)=>{const _0xbfc8cd=_0x262436,_0xe67d67=_0x563420[_0xbfc8cd(0x15d)][_0xb3c194];_0x6a422c['id']!==_0xe67d67['id']&&_0x13a697[_0xbfc8cd(0x17c)](_0x563420);}):_0x13a697[_0x262436(0x17c)](_0x563420);}return _0x13a697;}[_0x4af744(0x182)](){const _0x183a79=_0x4af744,_0x40a142=new _0x3e473c('p',{},[new _0x3e473c(_0x183a79(0x168),{'style':_0x183a79(0x188)},[new _0x467001(_0x56ad69(this[_0x183a79(0x142)][_0x183a79(0x148)],_0x183a79(0x13c)))])]),_0xe15535=this[_0x183a79(0x185)][_0x183a79(0x17d)](this[_0x183a79(0x17f)],this[_0x183a79(0x174)][_0x183a79(0x158)](!0x0),{'markUnstableElements':!this[_0x183a79(0x14c)],'replaceRemovedWith':_0x40a142,'cutAfterLastChange':!this[_0x183a79(0x14c)]});if(!_0xe15535[_0x183a79(0x13a)][_0x183a79(0x16c)]&&!this[_0x183a79(0x14c)])return;this[_0x183a79(0x16e)]=_0xe15535[_0x183a79(0x17f)];let _0x419855=[];if(_0x545dd0(_0x45ce72=>{const _0x293928=_0x183a79,_0x429ea3=_0x296da2(_0x45ce72,_0x293928(0x150));if(!_0x429ea3||!_0x221295(_0x429ea3))return!0x1;const _0x4a09fe=[_0x45ce72,..._0x4c1619(_0x45ce72)]['at'](-0x2);if(_0x45ce72!=_0x4a09fe){const _0xe8cf39=_0x296da2(_0x4a09fe,_0x293928(0x150));_0x221295(_0xe8cf39)||(_0x419855[_0x293928(0x17c)]({'node':_0x4a09fe,'id':_0xe8cf39,'type':_0x293928(0x170)}),_0xe15535[_0x293928(0x13a)][_0x293928(0x17c)](_0xe8cf39));}else _0xe15535[_0x293928(0x13a)][_0x293928(0x162)](_0x429ea3)?_0x419855[_0x293928(0x17c)]({'node':_0x45ce72,'type':_0x293928(0x170),'id':_0x429ea3}):_0xe15535[_0x293928(0x14a)][_0x293928(0x162)](_0x429ea3)?_0x419855[_0x293928(0x17c)]({'node':_0x45ce72,'type':_0x293928(0x143),'id':_0x429ea3,'anchorId':_0x296da2(_0x45ce72[_0x293928(0x16a)],_0x293928(0x150))}):_0x419855[_0x293928(0x17c)]({'node':_0x45ce72,'type':_0x293928(0x14f),'id':_0x429ea3});return!0x0;},this[_0x183a79(0x16e)]),_0x419855=_0x419855[_0x183a79(0x186)](({node:_0x50a643})=>[..._0x4c1619(_0x50a643),_0x50a643][_0x183a79(0x187)](_0xf6ae80=>!_0x296da2(_0xf6ae80,_0x183a79(0x157)))),0x0==_0x419855[_0x183a79(0x16c)])return;const _0x5a5dce=[[_0x419855[0x0]]];for(let _0x1c0563=0x1;_0x1c0563<_0x419855[_0x183a79(0x16c)];_0x1c0563++){const _0x33b98e=_0x5a5dce[_0x5a5dce[_0x183a79(0x16c)]-0x1],_0x5e6492=_0x33b98e[_0x33b98e[_0x183a79(0x16c)]-0x1];_0x419855[_0x1c0563][_0x183a79(0x15f)][_0x183a79(0x16a)]==_0x5e6492[_0x183a79(0x15f)]&&_0x183a79(0x170)!=_0x419855[_0x1c0563][_0x183a79(0x171)]&&_0x183a79(0x170)!=_0x5e6492[_0x183a79(0x171)]?_0x33b98e[_0x183a79(0x17c)](_0x419855[_0x1c0563]):_0x5a5dce[_0x183a79(0x17c)]([_0x419855[_0x1c0563]]);}for(const _0x4ec39c of _0x5a5dce){const _0x4a3a23=_0x4ec39c[0x0],_0x1e1a3f=_0x4ec39c[_0x4ec39c[_0x183a79(0x16c)]-0x1],_0x57359d=_0xaa942(_0x4a3a23[_0x183a79(0x15f)][_0x183a79(0x16a)]);_0x57359d&&_0x4ec39c[_0x183a79(0x14b)](_0x57359d);const _0x54ed4d=_0xaa942(_0x1e1a3f[_0x183a79(0x15f)][_0x183a79(0x144)]);_0x54ed4d&&_0x4ec39c[_0x183a79(0x17c)](_0x54ed4d);}function _0x221295(_0x5902e4){const _0x312bfa=_0x183a79;return _0xe15535[_0x312bfa(0x13a)][_0x312bfa(0x162)](_0x5902e4)||_0xe15535[_0x312bfa(0x14a)][_0x312bfa(0x162)](_0x5902e4)||_0xe15535[_0x312bfa(0x147)][_0x312bfa(0x162)](_0x5902e4);}function _0xaa942(_0x1cdf57){const _0x5f793f=_0x183a79;if(_0x1cdf57&&_0x296da2(_0x1cdf57,_0x5f793f(0x150))&&!_0x296da2(_0x1cdf57,_0x5f793f(0x157))){const _0x3e11c8=_0x296da2(_0x1cdf57,_0x5f793f(0x150));if(!_0x221295(_0x3e11c8))return{'node':_0x1cdf57,'type':_0x5f793f(0x145),'id':_0x3e11c8};}return null;}this[_0x183a79(0x141)]=_0x5a5dce[_0x183a79(0x156)]((_0x12394b,_0xae3e6a)=>({'changes':_0x12394b,'state':_0x183a79(0x169),'index':_0xae3e6a}));}}export function isValidReplyType(_0x4bcd57){const _0x53a632=_0x4af744;return Object[_0x53a632(0x151)](AI_REPLY_TYPES)[_0x53a632(0x162)](_0x4bcd57);}export function isIgnoredReplyType(_0x50aee6){const _0x487170=_0x4af744;return AI_REPLY_TYPES_IGNORED[_0x487170(0x162)](_0x50aee6);}export function isReplyTitleType(_0x249886){return _0x249886===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x45a184){const _0x4ff691=_0x4af744;return _0x4ff691(0x161)===_0x45a184;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x2848d3(){[_0x25d577(0x184)];[_0x25d577(0x1ac)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x25d577(0x1a7)]=new Set();constructor(_0x5f1d22){const _0x1a0686=_0x25d577;super(),this[_0x1a0686(0x184)]=_0x5f1d22||_0x58c476;}[_0x25d577(0x16e)](_0x40e140,_0x515053,_0x197efa){const _0x2a5eea=_0x25d577,_0xe4796a=_0x3c9757(_0x40e140);if(0x0===_0x515053[_0x2a5eea(0x199)][_0x2a5eea(0x18a)]){const _0x41dd58=[];return _0x28ba00(_0x2a5eea(0x194),_0x2a5eea(0x173),_0xe4796a)[_0x2a5eea(0x19e)](_0x10ae9c=>{const _0x2cca50=_0x2a5eea,_0x57f62a=this[_0x2cca50(0x184)]();_0xd7441b(_0x10ae9c,_0x2cca50(0x194),_0x57f62a),_0x41dd58[_0x2cca50(0x18d)](_0x57f62a);}),this[_0x2a5eea(0x186)](_0xe4796a),{'parsedContent':_0xe4796a,'newNodeIds':_0x41dd58,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x197efa&&_0x197efa[_0x2a5eea(0x1a0)]&&this[_0x2a5eea(0x1a3)](_0xe4796a),this[_0x2a5eea(0x1ac)][_0x2a5eea(0x167)]=[],this[_0x2a5eea(0x1ac)][_0x2a5eea(0x1a8)]=[],this[_0x2a5eea(0x1ac)][_0x2a5eea(0x172)]=[],this[_0x2a5eea(0x1ac)][_0x2a5eea(0x181)]=[],this[_0x2a5eea(0x1ac)][_0x2a5eea(0x17c)]=null,this[_0x2a5eea(0x1a7)]=new Set(_0x28ba00(_0x2a5eea(0x194),null,_0x515053)[_0x2a5eea(0x174)](_0x47865c=>_0x3ab8e2(_0x47865c,_0x2a5eea(0x194)))[_0x2a5eea(0x180)](_0x4dc8d9=>!!_0x4dc8d9));let _0x4261bb=-0x1,_0x1287cf=!0x1;const _0x3894ca=_0xe4796a[_0x2a5eea(0x199)],_0x3f9d2b=Array[_0x2a5eea(0x179)](_0x3894ca)[_0x2a5eea(0x180)](_0x1607e3=>!(0x3===_0x1607e3[_0x2a5eea(0x16a)]&&''===_0x2aa58a(_0x1607e3)[_0x2a5eea(0x188)]())),_0x45487c=_0x3f9d2b[_0x2a5eea(0x18a)];for(let _0x5f19b1=0x0;_0x5f19b1<_0x45487c;_0x5f19b1++){const _0x3c3e52=_0x3f9d2b[_0x5f19b1],_0x17bf18=_0x3f9d2b[_0x5f19b1+0x1];if(this[_0x2a5eea(0x177)](_0x3c3e52)){if(-0x1===_0x4261bb&&(_0x4261bb=_0x5f19b1),this[_0x2a5eea(0x18b)](_0x3c3e52),!this[_0x2a5eea(0x177)](_0x17bf18)){const [_0x5fbbc0,_0x4fb4a3]=this[_0x2a5eea(0x192)](_0x3c3e52,_0x1287cf,_0x515053);if(_0x5fbbc0){const _0x24d6d9=Array[_0x2a5eea(0x179)](_0x3f9d2b)[_0x2a5eea(0x19b)](_0x4261bb,_0x5f19b1+0x1);this[_0x2a5eea(0x17d)](_0x5fbbc0,_0x24d6d9,_0x4fb4a3),_0x4261bb=-0x1;}}}else{if(this[_0x2a5eea(0x1a9)](_0x3c3e52))_0x1287cf=!0x0;else{if(this[_0x2a5eea(0x175)](_0x3c3e52)){const _0x231fa5=_0x3ab8e2(_0x3c3e52,_0x2a5eea(0x194));if(_0x231fa5&&this[_0x2a5eea(0x1a7)][_0x2a5eea(0x183)](_0x231fa5)){const _0x1b0198=_0x131e57(_0x2a5eea(0x194),_0x231fa5,_0x515053);this[_0x2a5eea(0x1a4)](_0x1b0198,_0x3c3e52);}if(this[_0x2a5eea(0x1ac)][_0x2a5eea(0x172)][_0x2a5eea(0x18e)](_0x231fa5)){const _0x2c5aa0=this[_0x2a5eea(0x1ac)][_0x2a5eea(0x172)][_0x2a5eea(0x1a5)](_0x231fa5);this[_0x2a5eea(0x1ac)][_0x2a5eea(0x172)][_0x2a5eea(0x17f)](_0x2c5aa0,0x1);}}else{if(this[_0x2a5eea(0x187)](_0x3c3e52)){const _0x3d502e=_0x3ab8e2(_0x3c3e52,_0x2a5eea(0x194));this[_0x2a5eea(0x1ac)][_0x2a5eea(0x1a8)][_0x2a5eea(0x18e)](_0x3d502e)||this[_0x2a5eea(0x171)](_0x3c3e52);}}}}}for(const _0x2d2ad2 of this[_0x2a5eea(0x1ac)][_0x2a5eea(0x172)]){const _0x4f50e8=_0x131e57(_0x2a5eea(0x194),_0x2d2ad2,_0x515053);if(_0x4f50e8){if(_0x197efa&&_0x197efa[_0x2a5eea(0x1a6)]){this[_0x2a5eea(0x1ac)][_0x2a5eea(0x17c)]=_0x2d2ad2;const _0x182847=_0x197efa[_0x2a5eea(0x1a6)][_0x2a5eea(0x169)](!0x0);_0xd7441b(_0x182847,_0x2a5eea(0x194),_0x2d2ad2),_0xd7441b(_0x182847,_0x2a5eea(0x189),_0x2a5eea(0x19d)),_0x188caf(_0x4f50e8,_0x182847);}else _0x300672(_0x4f50e8);}}if(_0x28ba00(_0x2a5eea(0x1a1),null,_0x515053)[_0x2a5eea(0x19e)](_0x30a92e=>{const _0x2b4c0c=_0x2a5eea,_0x4f56ab=_0x3ab8e2(_0x30a92e,_0x2b4c0c(0x1a1)),_0x57610e=_0x131e57(_0x2b4c0c(0x194),_0x4f56ab,_0x515053);_0x57610e&&_0x2e2f26(_0x57610e,_0x30a92e);}),_0x28ba00(_0x2a5eea(0x194),_0x2a5eea(0x173),_0x515053)[_0x2a5eea(0x19e)](_0x215ca6=>{const _0xb2f08e=_0x2a5eea,_0x4781bb=this[_0xb2f08e(0x190)](_0x215ca6);_0xd7441b(_0x215ca6,_0xb2f08e(0x194),_0x4781bb),this[_0xb2f08e(0x1ac)][_0xb2f08e(0x167)][_0xb2f08e(0x18d)](_0x4781bb);}),this[_0x2a5eea(0x186)](_0x515053),_0x197efa&&_0x197efa[_0x2a5eea(0x1a0)]&&this[_0x2a5eea(0x196)](_0x515053,_0x197efa[_0x2a5eea(0x1aa)]||0x0),_0x197efa&&_0x197efa[_0x2a5eea(0x17b)]&&this[_0x2a5eea(0x1ac)][_0x2a5eea(0x17c)]){let _0x28e744=_0x131e57(_0x2a5eea(0x194),this[_0x2a5eea(0x1ac)][_0x2a5eea(0x17c)],_0x515053);for(;_0x28e744;)_0x5ecd77(_0x28e744),_0x28e744=_0x28e744[_0x2a5eea(0x18c)];}return{'parsedContent':_0x515053,'newNodeIds':this[_0x2a5eea(0x1ac)][_0x2a5eea(0x167)],'modifiedNodeIds':this[_0x2a5eea(0x1ac)][_0x2a5eea(0x1a8)],'removedNodeIds':this[_0x2a5eea(0x1ac)][_0x2a5eea(0x172)]};}[_0x25d577(0x17d)](_0xc9da7f,_0x4b2771,_0x4021a1){const _0x5c1d46=_0x25d577;for(const _0x1a0743 of _0x4b2771){const _0xbed29b=this[_0x5c1d46(0x190)](_0x1a0743);_0xd7441b(_0x1a0743,_0x5c1d46(0x194),_0xbed29b),this[_0x5c1d46(0x1ac)][_0x5c1d46(0x167)][_0x5c1d46(0x18d)](_0xbed29b),this[_0x5c1d46(0x1ac)][_0x5c1d46(0x17c)]=_0xbed29b;}const _0x3b68da=_0x5c1d46(0x193)===_0x4021a1||_0x5c1d46(0x191)===_0x4021a1?_0x4b2771[_0x5c1d46(0x18f)]():_0x4b2771;for(const _0x1514cc of _0x3b68da)_0x26809c(_0xc9da7f,_0x1514cc,_0x4021a1);}[_0x25d577(0x1a4)](_0x4d5c46,_0x30c573){const _0x11774e=_0x25d577;if(!_0x4d5c46)return;if(_0x12af87(_0x4d5c46,_0x30c573))return;const _0x239d68=this[_0x11774e(0x190)](_0x4d5c46);_0xd7441b(_0x30c573,_0x11774e(0x194),_0x239d68),this[_0x11774e(0x1ac)][_0x11774e(0x1a8)][_0x11774e(0x18d)](_0x239d68),this[_0x11774e(0x1ac)][_0x11774e(0x17c)]=_0x239d68,_0x188caf(_0x4d5c46,_0x30c573[_0x11774e(0x169)](!0x0));}[_0x25d577(0x192)](_0x3adac4,_0x404f3b,_0x462124){const _0x27fca7=_0x25d577,_0x4da100=this[_0x27fca7(0x1a2)](_0x3adac4,!0x1);if(_0x4da100){const _0x434af3=this[_0x27fca7(0x17a)](_0x4da100),_0x1fa0b3=_0x131e57(_0x27fca7(0x194),_0x434af3,_0x462124);if(_0x1fa0b3)return[_0x1fa0b3,_0x27fca7(0x191)];this[_0x27fca7(0x1ac)][_0x27fca7(0x181)][_0x27fca7(0x18d)](_0x434af3);}const _0x5ed11b=this[_0x27fca7(0x16f)](_0x3adac4,!0x1);if(_0x5ed11b){const _0xfbae7d=this[_0x27fca7(0x17a)](_0x5ed11b),_0x12a708=_0x131e57(_0x27fca7(0x194),_0xfbae7d,_0x462124);if(_0x12a708)return[_0x12a708,_0x27fca7(0x1ad)];this[_0x27fca7(0x1ac)][_0x27fca7(0x181)][_0x27fca7(0x18d)](_0xfbae7d);}return _0x404f3b?_0x3adac4[_0x27fca7(0x17e)]?this[_0x27fca7(0x197)](_0x3adac4,_0x462124):[_0x462124[_0x27fca7(0x199)][_0x462124[_0x27fca7(0x199)][_0x27fca7(0x18a)]-0x1],_0x27fca7(0x191)]:[_0x462124[_0x27fca7(0x199)][0x0],_0x27fca7(0x1ad)];}[_0x25d577(0x197)](_0x227d96,_0x4e710f){const _0x599c9d=_0x25d577,_0x4ea07a=[],_0x1cbabf=this[_0x599c9d(0x1a2)](_0x227d96,!0x0);if(_0x1cbabf){const _0x306c10=this[_0x599c9d(0x17a)](_0x1cbabf),_0x4ea925=_0x131e57(_0x599c9d(0x194),_0x306c10,_0x4e710f);_0x4ea925&&_0x4ea07a[_0x599c9d(0x18d)]([_0x4ea925,_0x599c9d(0x191)]);}const _0x326255=this[_0x599c9d(0x16f)](_0x227d96,!0x0);if(_0x326255){const _0x136850=this[_0x599c9d(0x17a)](_0x326255),_0x3b02b1=_0x131e57(_0x599c9d(0x194),_0x136850,_0x4e710f);_0x3b02b1&&_0x4ea07a[_0x599c9d(0x18d)]([_0x3b02b1,_0x599c9d(0x1ad)]);}if(_0x4ea07a[_0x599c9d(0x18a)]>0x1)return _0x350728(_0x4ea07a[0x0][0x0])<=_0x350728(_0x4ea07a[0x1][0x0])?_0x4ea07a[0x0]:_0x4ea07a[0x1];return 0x1===_0x4ea07a[_0x599c9d(0x18a)]?_0x4ea07a[0x0]:[_0x4e710f[_0x599c9d(0x19a)],_0x599c9d(0x191)];}[_0x25d577(0x16f)](_0x31299c,_0x157f19){const _0x360397=_0x25d577;let _0x408340=_0x31299c[_0x360397(0x17e)],_0x5d91d1=null,_0x59035a=!0x1;for(;_0x408340;){if(_0x5d5995(_0x408340)){if(this[_0x360397(0x187)](_0x408340)&&(_0x5d91d1=_0x408340),this[_0x360397(0x1a9)](_0x408340)&&_0x157f19&&!_0x59035a){_0x59035a=!0x0,_0x408340=_0x408340[_0x360397(0x17e)];continue;}break;}const _0x1a8b5a=_0x3ab8e2(_0x408340,_0x360397(0x194));if(_0x1a8b5a&&_0x360397(0x173)!==_0x1a8b5a&&this[_0x360397(0x1a7)][_0x360397(0x183)](_0x1a8b5a)){_0x5d91d1=_0x408340;break;}_0x408340=_0x408340[_0x360397(0x17e)];}return _0x5d91d1;}[_0x25d577(0x1a2)](_0x223afc,_0x706229){const _0xadb78c=_0x25d577;let _0x4dba38=_0x223afc[_0xadb78c(0x198)],_0x369f1b=null,_0x5d4edd=!0x1;for(;_0x4dba38;){if(_0x5d5995(_0x4dba38)){if(this[_0xadb78c(0x187)](_0x4dba38)&&(_0x369f1b=_0x4dba38),this[_0xadb78c(0x1a9)](_0x4dba38)&&_0x706229&&!_0x5d4edd){_0x5d4edd=!0x0,_0x4dba38=_0x4dba38[_0xadb78c(0x198)];continue;}break;}const _0x3ed9d9=_0x3ab8e2(_0x4dba38,_0xadb78c(0x194));if(_0x3ed9d9&&_0xadb78c(0x173)!==_0x3ed9d9&&this[_0xadb78c(0x1a7)][_0xadb78c(0x183)](_0x3ed9d9)){_0x369f1b=_0x4dba38;break;}_0x4dba38=_0x4dba38[_0xadb78c(0x198)];}return _0x369f1b;}[_0x25d577(0x18b)](_0x10dd7e){const _0xa402ae=_0x25d577;_0x3a37b2(_0x10dd7e)&&_0x28ba00(_0xa402ae(0x194),null,_0x10dd7e)[_0xa402ae(0x19e)](_0x4856ae=>{const _0x6678e6=_0xa402ae;if(this[_0x6678e6(0x175)](_0x4856ae)&&!this[_0x6678e6(0x170)](_0x4856ae)){const _0x2ef549=_0x3ab8e2(_0x4856ae,_0x6678e6(0x194));_0xd7441b(_0x4856ae,_0x6678e6(0x1a1),_0x2ef549),_0xd7441b(_0x4856ae,_0x6678e6(0x194),null);}});}[_0x25d577(0x17a)](_0x3388cc){const _0x3d4e90=_0x25d577;if(!_0x3388cc)return null;if(_0x3a37b2(_0x3388cc))return _0x3ab8e2(_0x3388cc,_0x3d4e90(0x194));if(_0x5d5995(_0x3388cc)){const _0x3fff7e=_0x2aa58a(_0x3388cc)[_0x3d4e90(0x182)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3fff7e&&_0x3fff7e[0x1])return _0x3fff7e[0x1];}return null;}[_0x25d577(0x171)](_0x3acbd0){const _0x40d45b=_0x25d577;if(_0x5d5995(_0x3acbd0)){const _0x292215=_0x2aa58a(_0x3acbd0)[_0x40d45b(0x182)](/removed[\s*-]data-id="([^"]+)"/);_0x292215&&_0x292215[0x1]&&this[_0x40d45b(0x1ac)][_0x40d45b(0x172)][_0x40d45b(0x18d)](_0x292215[0x1]);}}[_0x25d577(0x190)](_0x503d69){const _0x3af5db=_0x25d577;return this[_0x3af5db(0x175)](_0x503d69)?_0x3ab8e2(_0x503d69,_0x3af5db(0x194)):this[_0x3af5db(0x184)]();}[_0x25d577(0x186)](_0x2e3448){const _0x3fd6f8=_0x25d577;_0x33b714(_0x2e3448)[_0x3fd6f8(0x180)](_0x475a24=>this[_0x3fd6f8(0x187)](_0x475a24)||this[_0x3fd6f8(0x1a9)](_0x475a24))[_0x3fd6f8(0x19e)](_0x1e70a4=>{_0x300672(_0x1e70a4);});}[_0x25d577(0x1a3)](_0x15a09c){const _0xcc20ab=_0x25d577,_0x2a6bd8=_0x15a09c[_0xcc20ab(0x199)],_0x4923c1=_0x2a6bd8[_0x2a6bd8[_0xcc20ab(0x18a)]-0x1];_0x4923c1&&_0x3a37b2(_0x4923c1)&&_0xd7441b(_0x4923c1,_0xcc20ab(0x168),_0xcc20ab(0x19d));}[_0x25d577(0x196)](_0x197164,_0x13a0ca){const _0x436aa8=_0x25d577,_0x3776bf=_0x131e57(_0x436aa8(0x168),_0x436aa8(0x19d),_0x197164);if(!_0x3776bf)return;const _0x5445cf=_0x5b927a(_0x3776bf)[_0x436aa8(0x19b)](0x0,-0x1),_0xd3fffb=_0x5445cf[_0x436aa8(0x18a)];let _0x182f23=_0x3776bf;if(_0xd3fffb>_0x13a0ca){let _0x56e485=_0xd3fffb,_0x386ad8=null;for(;_0x56e485>_0x13a0ca&&_0x56e485>=0x0;)_0x56e485--,_0x386ad8=_0x5445cf[_0x56e485];_0x386ad8&&(_0x182f23=_0x386ad8,_0xd7441b(_0x3776bf,_0x436aa8(0x168),null),_0xd7441b(_0x386ad8,_0x436aa8(0x168),_0x436aa8(0x19d)));}else{if(_0xd3fffb<_0x13a0ca){let _0x4b60b4=_0xd3fffb,_0xfe47cb=_0x3776bf;for(;_0x4b60b4<_0x13a0ca;){const _0x4253ea=_0xfe47cb[_0x436aa8(0x199)][_0x436aa8(0x180)](_0x453e6b=>_0x3a37b2(_0x453e6b));if(0x0===_0x4253ea[_0x436aa8(0x18a)])break;_0x4b60b4++,_0xfe47cb=_0x4253ea[_0x4253ea[_0x436aa8(0x18a)]-0x1];}_0xfe47cb&&(_0x182f23=_0xfe47cb,_0xd7441b(_0x3776bf,_0x436aa8(0x168),null),_0xd7441b(_0xfe47cb,_0x436aa8(0x168),_0x436aa8(0x19d)));}}let _0x1c6a2c=_0x182f23;for(;_0x1c6a2c;){for(;_0x1c6a2c[_0x436aa8(0x17e)];)_0x1c6a2c=_0x1c6a2c[_0x436aa8(0x17e)],_0x3a37b2(_0x1c6a2c)&&_0xd7441b(_0x1c6a2c,_0x436aa8(0x168),_0x436aa8(0x19d));_0x1c6a2c=_0x1c6a2c[_0x436aa8(0x18c)];}}[_0x25d577(0x177)](_0x1692f8){const _0x4d443e=_0x25d577;return Boolean(_0x4d443e(0x173)===_0x3ab8e2(_0x1692f8,_0x4d443e(0x194)));}[_0x25d577(0x175)](_0x54100f){const _0x18d0a8=_0x25d577;return Boolean((_0x3ab8e2(_0x54100f,_0x18d0a8(0x194))||'')[_0x18d0a8(0x18a)]>0x0&&_0x18d0a8(0x173)!==_0x3ab8e2(_0x54100f,_0x18d0a8(0x194)));}[_0x25d577(0x187)](_0x24daf8){const _0x5eefe8=_0x25d577;return!!_0x24daf8&&Boolean(_0x5d5995(_0x24daf8)&&_0x2aa58a(_0x24daf8)[_0x5eefe8(0x182)](/removed[\s*-]data-id="[^"]+"/));}[_0x25d577(0x170)](_0x3007b8){const _0x2298cb=_0x25d577;let _0x30575f=_0x3007b8[_0x2298cb(0x18c)];for(;_0x30575f;){if(_0x3ab8e2(_0x30575f,_0x2298cb(0x1a1)))return!0x0;_0x30575f=_0x30575f[_0x2298cb(0x18c)];}return!0x1;}[_0x25d577(0x1a9)](_0x4feb7d){const _0x29c4ef=_0x25d577;return Boolean(_0x5d5995(_0x4feb7d)&&_0x2aa58a(_0x4feb7d)[_0x29c4ef(0x182)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x5836(){const _0x5801bc=['_isExistingContentComment','markUnstableElementsDepth','9020270UTLLyT','_touchedNodesState','beforebegin','newIds','data-unstable','cloneNode','nodeType','4VKAiYP','514634uDMaYe','877170CIIhGs','merge','_findNextElementWithDataId','_hasWrappedParent','_storeDeletedElementIds','removedIds','new-element','map','_isExistingNode','450oyrFxe','_isNewNode','5528ADmWLj','from','_getNodeDataId','cutAfterLastChange','lastTouchedId','_insertNodes','nextSibling','splice','filter','invalidIds','match','has','_generateUid','539680JhqRiS','_removeSpecialComments','_isDelNode','trim','data-removed','length','_markWrappedElements','parentNode','push','includes','reverse','_getUid','afterend','_findReferenceNode','afterbegin','data-id','15738rvcfzl','_markUnstableElements','_findFallbackReferenceNode','previousSibling','childNodes','lastChild','slice','4554SATSaw','true','forEach','1226139ombPNn','markUnstableElements','data-wrapped-id','_findPrevElementWithDataId','_markLastTagElementUnstable','_replaceNode','indexOf','replaceRemovedWith','_existingDataIds','modifiedIds'];_0x5836=function(){return _0x5801bc;};return _0x5836();}
|
|
23
|
+
const _0x5100d4=_0x19c3;function _0x19c3(_0x28ab79,_0x115053){const _0x379983=_0x3799();return _0x19c3=function(_0x19c33e,_0x833b5){_0x19c33e=_0x19c33e-0x1c4;let _0x3af534=_0x379983[_0x19c33e];return _0x3af534;},_0x19c3(_0x28ab79,_0x115053);}(function(_0x3b7d1c,_0x4cee4a){const _0x526b22=_0x19c3,_0x2840f8=_0x3b7d1c();while(!![]){try{const _0x427500=parseInt(_0x526b22(0x1fa))/0x1+-parseInt(_0x526b22(0x1d5))/0x2+-parseInt(_0x526b22(0x205))/0x3+parseInt(_0x526b22(0x1dc))/0x4*(parseInt(_0x526b22(0x1f0))/0x5)+parseInt(_0x526b22(0x1d0))/0x6+parseInt(_0x526b22(0x1ce))/0x7*(-parseInt(_0x526b22(0x1db))/0x8)+parseInt(_0x526b22(0x1f5))/0x9;if(_0x427500===_0x4cee4a)break;else _0x2840f8['push'](_0x2840f8['shift']());}catch(_0x4d3374){_0x2840f8['push'](_0x2840f8['shift']());}}}(_0x3799,0x7b630));import{ObservableMixin as _0x2e16ab,uid as _0x184f00}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x45ebbc,findByAttribute as _0x410325,getAttribute as _0x4a5f16,isComment as _0x42c8c7,isTag as _0x1c973b,insertElement as _0x23fff3,moveElement as _0x21956f,removeElement as _0xff1fac,replaceElement as _0x5a4ec4,serialize as _0x4d4df9,setAttribute as _0x5d1ea5,clone as _0x54d697,findAllComments as _0x2565ca,getParents as _0x5078ad,getNodeNestingLevel as _0x183505,areNodesSame as _0x2ec878,removeElementsAfter as _0x3ef760}from'../utils/htmlparser.js';function _0x3799(){const _0x20791d=['4060505ePnPri','_existingDataIds','_markUnstableElements','_removeSpecialComments','lastTouchedId','9159183vlIYSV','reverse','_markWrappedElements','_findPrevElementWithDataId','nextSibling','816762GtNKYv','afterbegin','lastChild','indexOf','replaceRemovedWith','cloneNode','beforebegin','_findReferenceNode','match','_hasWrappedParent','has','2928021qOmiKp','_storeDeletedElementIds','_isDelNode','childNodes','_getUid','nodeType','removedIds','_isExistingContentComment','map','data-unstable','cutAfterLastChange','push','parentNode','_generateUid','slice','28mAcwpO','_isNewNode','2055822UtmRcg','_markLastTagElementUnstable','trim','_insertNodes','filter','1408312fuExvy','newIds','from','length','new-element','_findNextElementWithDataId','1607264zYSWxb','4dVlMNG','_getNodeDataId','forEach','_findFallbackReferenceNode','data-wrapped-id','modifiedIds','previousSibling','data-id','merge','splice','true','markUnstableElementsDepth','_touchedNodesState','invalidIds','afterend','markUnstableElements','_replaceNode','includes','_isExistingNode','data-removed'];_0x3799=function(){return _0x20791d;};return _0x3799();}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2e16ab(){[_0x5100d4(0x1cc)];[_0x5100d4(0x1e8)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x5100d4(0x1f1)]=new Set();constructor(_0x39f3ee){const _0x8d32c2=_0x5100d4;super(),this[_0x8d32c2(0x1cc)]=_0x39f3ee||_0x184f00;}[_0x5100d4(0x1e4)](_0x6f8bc4,_0x5b8d97,_0xe4c39d){const _0x5ec2cb=_0x5100d4,_0x1801f0=_0x54d697(_0x6f8bc4);if(0x0===_0x5b8d97[_0x5ec2cb(0x208)][_0x5ec2cb(0x1d8)]){const _0x496061=[];return _0x45ebbc(_0x5ec2cb(0x1e3),_0x5ec2cb(0x1d9),_0x1801f0)[_0x5ec2cb(0x1de)](_0x395929=>{const _0x355db1=_0x5ec2cb,_0x2e9f8d=this[_0x355db1(0x1cc)]();_0x5d1ea5(_0x395929,_0x355db1(0x1e3),_0x2e9f8d),_0x496061[_0x355db1(0x1ca)](_0x2e9f8d);}),this[_0x5ec2cb(0x1f3)](_0x1801f0),{'parsedContent':_0x1801f0,'newNodeIds':_0x496061,'modifiedNodeIds':[],'removedNodeIds':[]};}_0xe4c39d&&_0xe4c39d[_0x5ec2cb(0x1eb)]&&this[_0x5ec2cb(0x1d1)](_0x1801f0),this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1d6)]=[],this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1e1)]=[],this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1c5)]=[],this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1e9)]=[],this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1f4)]=null,this[_0x5ec2cb(0x1f1)]=new Set(_0x45ebbc(_0x5ec2cb(0x1e3),null,_0x5b8d97)[_0x5ec2cb(0x1c7)](_0x2474b4=>_0x4a5f16(_0x2474b4,_0x5ec2cb(0x1e3)))[_0x5ec2cb(0x1d4)](_0x21fccc=>!!_0x21fccc));let _0x142798=-0x1,_0x35beb=!0x1;const _0x89219d=_0x1801f0[_0x5ec2cb(0x208)],_0x49a189=Array[_0x5ec2cb(0x1d7)](_0x89219d)[_0x5ec2cb(0x1d4)](_0x538d00=>!(0x3===_0x538d00[_0x5ec2cb(0x1c4)]&&''===_0x4d4df9(_0x538d00)[_0x5ec2cb(0x1d2)]())),_0x72850a=_0x49a189[_0x5ec2cb(0x1d8)];for(let _0x1fc6b3=0x0;_0x1fc6b3<_0x72850a;_0x1fc6b3++){const _0x826d10=_0x49a189[_0x1fc6b3],_0x308755=_0x49a189[_0x1fc6b3+0x1];if(this[_0x5ec2cb(0x1cf)](_0x826d10)){if(-0x1===_0x142798&&(_0x142798=_0x1fc6b3),this[_0x5ec2cb(0x1f7)](_0x826d10),!this[_0x5ec2cb(0x1cf)](_0x308755)){const [_0x9a1c6a,_0x3d49f9]=this[_0x5ec2cb(0x201)](_0x826d10,_0x35beb,_0x5b8d97);if(_0x9a1c6a){const _0x403591=Array[_0x5ec2cb(0x1d7)](_0x49a189)[_0x5ec2cb(0x1cd)](_0x142798,_0x1fc6b3+0x1);this[_0x5ec2cb(0x1d3)](_0x9a1c6a,_0x403591,_0x3d49f9),_0x142798=-0x1;}}}else{if(this[_0x5ec2cb(0x1c6)](_0x826d10))_0x35beb=!0x0;else{if(this[_0x5ec2cb(0x1ee)](_0x826d10)){const _0x25d5f5=_0x4a5f16(_0x826d10,_0x5ec2cb(0x1e3));if(_0x25d5f5&&this[_0x5ec2cb(0x1f1)][_0x5ec2cb(0x204)](_0x25d5f5)){const _0x264416=_0x410325(_0x5ec2cb(0x1e3),_0x25d5f5,_0x5b8d97);this[_0x5ec2cb(0x1ec)](_0x264416,_0x826d10);}if(this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1c5)][_0x5ec2cb(0x1ed)](_0x25d5f5)){const _0x4a9703=this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1c5)][_0x5ec2cb(0x1fd)](_0x25d5f5);this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1c5)][_0x5ec2cb(0x1e5)](_0x4a9703,0x1);}}else{if(this[_0x5ec2cb(0x207)](_0x826d10)){const _0x2114d2=_0x4a5f16(_0x826d10,_0x5ec2cb(0x1e3));this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1e1)][_0x5ec2cb(0x1ed)](_0x2114d2)||this[_0x5ec2cb(0x206)](_0x826d10);}}}}}for(const _0x16fced of this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1c5)]){const _0x213925=_0x410325(_0x5ec2cb(0x1e3),_0x16fced,_0x5b8d97);if(_0x213925){if(_0xe4c39d&&_0xe4c39d[_0x5ec2cb(0x1fe)]){this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1f4)]=_0x16fced;const _0x6ced63=_0xe4c39d[_0x5ec2cb(0x1fe)][_0x5ec2cb(0x1ff)](!0x0);_0x5d1ea5(_0x6ced63,_0x5ec2cb(0x1e3),_0x16fced),_0x5d1ea5(_0x6ced63,_0x5ec2cb(0x1ef),_0x5ec2cb(0x1e6)),_0x5a4ec4(_0x213925,_0x6ced63);}else _0xff1fac(_0x213925);}}if(_0x45ebbc(_0x5ec2cb(0x1e0),null,_0x5b8d97)[_0x5ec2cb(0x1de)](_0x5d229c=>{const _0x2ba879=_0x5ec2cb,_0x3c6443=_0x4a5f16(_0x5d229c,_0x2ba879(0x1e0)),_0x16e6c5=_0x410325(_0x2ba879(0x1e3),_0x3c6443,_0x5b8d97);_0x16e6c5&&_0x21956f(_0x16e6c5,_0x5d229c);}),_0x45ebbc(_0x5ec2cb(0x1e3),_0x5ec2cb(0x1d9),_0x5b8d97)[_0x5ec2cb(0x1de)](_0x2dd689=>{const _0xe71a49=_0x5ec2cb,_0x2aceec=this[_0xe71a49(0x209)](_0x2dd689);_0x5d1ea5(_0x2dd689,_0xe71a49(0x1e3),_0x2aceec),this[_0xe71a49(0x1e8)][_0xe71a49(0x1d6)][_0xe71a49(0x1ca)](_0x2aceec);}),this[_0x5ec2cb(0x1f3)](_0x5b8d97),_0xe4c39d&&_0xe4c39d[_0x5ec2cb(0x1eb)]&&this[_0x5ec2cb(0x1f2)](_0x5b8d97,_0xe4c39d[_0x5ec2cb(0x1e7)]||0x0),_0xe4c39d&&_0xe4c39d[_0x5ec2cb(0x1c9)]&&this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1f4)]){let _0x290a41=_0x410325(_0x5ec2cb(0x1e3),this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1f4)],_0x5b8d97);for(;_0x290a41;)_0x3ef760(_0x290a41),_0x290a41=_0x290a41[_0x5ec2cb(0x1cb)];}return{'parsedContent':_0x5b8d97,'newNodeIds':this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1d6)],'modifiedNodeIds':this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1e1)],'removedNodeIds':this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1c5)]};}[_0x5100d4(0x1d3)](_0x4cc98c,_0x40c94f,_0x25db3e){const _0x53738a=_0x5100d4;for(const _0x2afa47 of _0x40c94f){const _0x1c56fa=this[_0x53738a(0x209)](_0x2afa47);_0x5d1ea5(_0x2afa47,_0x53738a(0x1e3),_0x1c56fa),this[_0x53738a(0x1e8)][_0x53738a(0x1d6)][_0x53738a(0x1ca)](_0x1c56fa),this[_0x53738a(0x1e8)][_0x53738a(0x1f4)]=_0x1c56fa;}const _0x5eedde=_0x53738a(0x1fb)===_0x25db3e||_0x53738a(0x1ea)===_0x25db3e?_0x40c94f[_0x53738a(0x1f6)]():_0x40c94f;for(const _0x392829 of _0x5eedde)_0x23fff3(_0x4cc98c,_0x392829,_0x25db3e);}[_0x5100d4(0x1ec)](_0x20a64e,_0x3ce548){const _0xdd917f=_0x5100d4;if(!_0x20a64e)return;if(_0x2ec878(_0x20a64e,_0x3ce548))return;const _0x40e1e1=this[_0xdd917f(0x209)](_0x20a64e);_0x5d1ea5(_0x3ce548,_0xdd917f(0x1e3),_0x40e1e1),this[_0xdd917f(0x1e8)][_0xdd917f(0x1e1)][_0xdd917f(0x1ca)](_0x40e1e1),this[_0xdd917f(0x1e8)][_0xdd917f(0x1f4)]=_0x40e1e1,_0x5a4ec4(_0x20a64e,_0x3ce548[_0xdd917f(0x1ff)](!0x0));}[_0x5100d4(0x201)](_0x4704af,_0x203903,_0x522b7b){const _0x2d4cd5=_0x5100d4,_0x2ee47f=this[_0x2d4cd5(0x1f8)](_0x4704af,!0x1);if(_0x2ee47f){const _0x105c23=this[_0x2d4cd5(0x1dd)](_0x2ee47f),_0xc0e387=_0x410325(_0x2d4cd5(0x1e3),_0x105c23,_0x522b7b);if(_0xc0e387)return[_0xc0e387,_0x2d4cd5(0x1ea)];this[_0x2d4cd5(0x1e8)][_0x2d4cd5(0x1e9)][_0x2d4cd5(0x1ca)](_0x105c23);}const _0xe220d3=this[_0x2d4cd5(0x1da)](_0x4704af,!0x1);if(_0xe220d3){const _0x1604de=this[_0x2d4cd5(0x1dd)](_0xe220d3),_0x44673a=_0x410325(_0x2d4cd5(0x1e3),_0x1604de,_0x522b7b);if(_0x44673a)return[_0x44673a,_0x2d4cd5(0x200)];this[_0x2d4cd5(0x1e8)][_0x2d4cd5(0x1e9)][_0x2d4cd5(0x1ca)](_0x1604de);}return _0x203903?_0x4704af[_0x2d4cd5(0x1f9)]?this[_0x2d4cd5(0x1df)](_0x4704af,_0x522b7b):[_0x522b7b[_0x2d4cd5(0x208)][_0x522b7b[_0x2d4cd5(0x208)][_0x2d4cd5(0x1d8)]-0x1],_0x2d4cd5(0x1ea)]:[_0x522b7b[_0x2d4cd5(0x208)][0x0],_0x2d4cd5(0x200)];}[_0x5100d4(0x1df)](_0x557caf,_0x501297){const _0x4c45f9=_0x5100d4,_0x43ccf3=[],_0x443745=this[_0x4c45f9(0x1f8)](_0x557caf,!0x0);if(_0x443745){const _0x382f9a=this[_0x4c45f9(0x1dd)](_0x443745),_0x361c43=_0x410325(_0x4c45f9(0x1e3),_0x382f9a,_0x501297);_0x361c43&&_0x43ccf3[_0x4c45f9(0x1ca)]([_0x361c43,_0x4c45f9(0x1ea)]);}const _0x5cc12a=this[_0x4c45f9(0x1da)](_0x557caf,!0x0);if(_0x5cc12a){const _0x250ade=this[_0x4c45f9(0x1dd)](_0x5cc12a),_0x2b36ea=_0x410325(_0x4c45f9(0x1e3),_0x250ade,_0x501297);_0x2b36ea&&_0x43ccf3[_0x4c45f9(0x1ca)]([_0x2b36ea,_0x4c45f9(0x200)]);}if(_0x43ccf3[_0x4c45f9(0x1d8)]>0x1)return _0x183505(_0x43ccf3[0x0][0x0])<=_0x183505(_0x43ccf3[0x1][0x0])?_0x43ccf3[0x0]:_0x43ccf3[0x1];return 0x1===_0x43ccf3[_0x4c45f9(0x1d8)]?_0x43ccf3[0x0]:[_0x501297[_0x4c45f9(0x1fc)],_0x4c45f9(0x1ea)];}[_0x5100d4(0x1da)](_0x2d2f5c,_0x448714){const _0x2a7da0=_0x5100d4;let _0xf74fa1=_0x2d2f5c[_0x2a7da0(0x1f9)],_0x41d1c3=null,_0x2122da=!0x1;for(;_0xf74fa1;){if(_0x42c8c7(_0xf74fa1)){if(this[_0x2a7da0(0x207)](_0xf74fa1)&&(_0x41d1c3=_0xf74fa1),this[_0x2a7da0(0x1c6)](_0xf74fa1)&&_0x448714&&!_0x2122da){_0x2122da=!0x0,_0xf74fa1=_0xf74fa1[_0x2a7da0(0x1f9)];continue;}break;}const _0x587c09=_0x4a5f16(_0xf74fa1,_0x2a7da0(0x1e3));if(_0x587c09&&_0x2a7da0(0x1d9)!==_0x587c09&&this[_0x2a7da0(0x1f1)][_0x2a7da0(0x204)](_0x587c09)){_0x41d1c3=_0xf74fa1;break;}_0xf74fa1=_0xf74fa1[_0x2a7da0(0x1f9)];}return _0x41d1c3;}[_0x5100d4(0x1f8)](_0x6268d1,_0x11409e){const _0x74f22d=_0x5100d4;let _0x15c117=_0x6268d1[_0x74f22d(0x1e2)],_0x59f182=null,_0x16a19a=!0x1;for(;_0x15c117;){if(_0x42c8c7(_0x15c117)){if(this[_0x74f22d(0x207)](_0x15c117)&&(_0x59f182=_0x15c117),this[_0x74f22d(0x1c6)](_0x15c117)&&_0x11409e&&!_0x16a19a){_0x16a19a=!0x0,_0x15c117=_0x15c117[_0x74f22d(0x1e2)];continue;}break;}const _0x25711c=_0x4a5f16(_0x15c117,_0x74f22d(0x1e3));if(_0x25711c&&_0x74f22d(0x1d9)!==_0x25711c&&this[_0x74f22d(0x1f1)][_0x74f22d(0x204)](_0x25711c)){_0x59f182=_0x15c117;break;}_0x15c117=_0x15c117[_0x74f22d(0x1e2)];}return _0x59f182;}[_0x5100d4(0x1f7)](_0x2dfe35){const _0x16de65=_0x5100d4;_0x1c973b(_0x2dfe35)&&_0x45ebbc(_0x16de65(0x1e3),null,_0x2dfe35)[_0x16de65(0x1de)](_0xd2bf9f=>{const _0x2be85d=_0x16de65;if(this[_0x2be85d(0x1ee)](_0xd2bf9f)&&!this[_0x2be85d(0x203)](_0xd2bf9f)){const _0x950a2e=_0x4a5f16(_0xd2bf9f,_0x2be85d(0x1e3));_0x5d1ea5(_0xd2bf9f,_0x2be85d(0x1e0),_0x950a2e),_0x5d1ea5(_0xd2bf9f,_0x2be85d(0x1e3),null);}});}[_0x5100d4(0x1dd)](_0x9f6a69){const _0x453bfa=_0x5100d4;if(!_0x9f6a69)return null;if(_0x1c973b(_0x9f6a69))return _0x4a5f16(_0x9f6a69,_0x453bfa(0x1e3));if(_0x42c8c7(_0x9f6a69)){const _0x5884c9=_0x4d4df9(_0x9f6a69)[_0x453bfa(0x202)](/removed[\s*-]data-id="([^"]+)"/);if(_0x5884c9&&_0x5884c9[0x1])return _0x5884c9[0x1];}return null;}[_0x5100d4(0x206)](_0x2c5bce){const _0x301e12=_0x5100d4;if(_0x42c8c7(_0x2c5bce)){const _0x4aa2c3=_0x4d4df9(_0x2c5bce)[_0x301e12(0x202)](/removed[\s*-]data-id="([^"]+)"/);_0x4aa2c3&&_0x4aa2c3[0x1]&&this[_0x301e12(0x1e8)][_0x301e12(0x1c5)][_0x301e12(0x1ca)](_0x4aa2c3[0x1]);}}[_0x5100d4(0x209)](_0x2b4f42){const _0x281683=_0x5100d4;return this[_0x281683(0x1ee)](_0x2b4f42)?_0x4a5f16(_0x2b4f42,_0x281683(0x1e3)):this[_0x281683(0x1cc)]();}[_0x5100d4(0x1f3)](_0x55ff65){const _0x5bdc56=_0x5100d4;_0x2565ca(_0x55ff65)[_0x5bdc56(0x1d4)](_0x149fa4=>this[_0x5bdc56(0x207)](_0x149fa4)||this[_0x5bdc56(0x1c6)](_0x149fa4))[_0x5bdc56(0x1de)](_0x364bb7=>{_0xff1fac(_0x364bb7);});}[_0x5100d4(0x1d1)](_0xd9b43d){const _0x515477=_0x5100d4,_0x305981=_0xd9b43d[_0x515477(0x208)],_0x4a0ae2=_0x305981[_0x305981[_0x515477(0x1d8)]-0x1];_0x4a0ae2&&_0x1c973b(_0x4a0ae2)&&_0x5d1ea5(_0x4a0ae2,_0x515477(0x1c8),_0x515477(0x1e6));}[_0x5100d4(0x1f2)](_0x5b0a19,_0x4a0bbe){const _0x4fee56=_0x5100d4,_0x4ce541=_0x410325(_0x4fee56(0x1c8),_0x4fee56(0x1e6),_0x5b0a19);if(!_0x4ce541)return;const _0x53ad8f=_0x5078ad(_0x4ce541)[_0x4fee56(0x1cd)](0x0,-0x1),_0x405005=_0x53ad8f[_0x4fee56(0x1d8)];let _0x4ced9c=_0x4ce541;if(_0x405005>_0x4a0bbe){let _0x3963af=_0x405005,_0x8d117e=null;for(;_0x3963af>_0x4a0bbe&&_0x3963af>=0x0;)_0x3963af--,_0x8d117e=_0x53ad8f[_0x3963af];_0x8d117e&&(_0x4ced9c=_0x8d117e,_0x5d1ea5(_0x4ce541,_0x4fee56(0x1c8),null),_0x5d1ea5(_0x8d117e,_0x4fee56(0x1c8),_0x4fee56(0x1e6)));}else{if(_0x405005<_0x4a0bbe){let _0x315fc4=_0x405005,_0x2a012e=_0x4ce541;for(;_0x315fc4<_0x4a0bbe;){const _0x321d10=_0x2a012e[_0x4fee56(0x208)][_0x4fee56(0x1d4)](_0x4fb19f=>_0x1c973b(_0x4fb19f));if(0x0===_0x321d10[_0x4fee56(0x1d8)])break;_0x315fc4++,_0x2a012e=_0x321d10[_0x321d10[_0x4fee56(0x1d8)]-0x1];}_0x2a012e&&(_0x4ced9c=_0x2a012e,_0x5d1ea5(_0x4ce541,_0x4fee56(0x1c8),null),_0x5d1ea5(_0x2a012e,_0x4fee56(0x1c8),_0x4fee56(0x1e6)));}}let _0x2564b4=_0x4ced9c;for(;_0x2564b4;){for(;_0x2564b4[_0x4fee56(0x1f9)];)_0x2564b4=_0x2564b4[_0x4fee56(0x1f9)],_0x1c973b(_0x2564b4)&&_0x5d1ea5(_0x2564b4,_0x4fee56(0x1c8),_0x4fee56(0x1e6));_0x2564b4=_0x2564b4[_0x4fee56(0x1cb)];}}[_0x5100d4(0x1cf)](_0x5456b6){const _0x5df42e=_0x5100d4;return Boolean(_0x5df42e(0x1d9)===_0x4a5f16(_0x5456b6,_0x5df42e(0x1e3)));}[_0x5100d4(0x1ee)](_0x5607cf){const _0x29e18b=_0x5100d4;return Boolean((_0x4a5f16(_0x5607cf,_0x29e18b(0x1e3))||'')[_0x29e18b(0x1d8)]>0x0&&_0x29e18b(0x1d9)!==_0x4a5f16(_0x5607cf,_0x29e18b(0x1e3)));}[_0x5100d4(0x207)](_0xbe4e44){const _0xa9db89=_0x5100d4;return!!_0xbe4e44&&Boolean(_0x42c8c7(_0xbe4e44)&&_0x4d4df9(_0xbe4e44)[_0xa9db89(0x202)](/removed[\s*-]data-id="[^"]+"/));}[_0x5100d4(0x203)](_0x9100d2){const _0x2ba37b=_0x5100d4;let _0x25af83=_0x9100d2[_0x2ba37b(0x1cb)];for(;_0x25af83;){if(_0x4a5f16(_0x25af83,_0x2ba37b(0x1e0)))return!0x0;_0x25af83=_0x25af83[_0x2ba37b(0x1cb)];}return!0x1;}[_0x5100d4(0x1c6)](_0x35c094){const _0x44fce5=_0x5100d4;return Boolean(_0x42c8c7(_0x35c094)&&_0x4d4df9(_0x35c094)[_0x44fce5(0x202)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x270438=_0x5551;(function(_0x16a82b,_0x3f5d87){const _0x350151=_0x5551,_0xb753d9=_0x16a82b();while(!![]){try{const _0x214f21=parseInt(_0x350151(0x193))/0x1*(parseInt(_0x350151(0x19b))/0x2)+parseInt(_0x350151(0x192))/0x3*(-parseInt(_0x350151(0x190))/0x4)+parseInt(_0x350151(0x194))/0x5*(parseInt(_0x350151(0x19e))/0x6)+parseInt(_0x350151(0x198))/0x7+parseInt(_0x350151(0x196))/0x8*(parseInt(_0x350151(0x195))/0x9)+parseInt(_0x350151(0x19a))/0xa+-parseInt(_0x350151(0x197))/0xb;if(_0x214f21===_0x3f5d87)break;else _0xb753d9['push'](_0xb753d9['shift']());}catch(_0x3adf3f){_0xb753d9['push'](_0xb753d9['shift']());}}}(_0x6d03,0xadb49));import{ObservableMixin as _0x892bd1}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x43b302}from'@ckeditor/ckeditor5-markdown-gfm';function _0x6d03(){const _0x58031d=['5104071JibAlV','8eeGQEq','25447389uAnJrv','9322222VyWeER','_parseHTML','2391190rhprLq','22808WiAFSu','parseAndNormalizeHTML','<dummy>','6DWePxn','convertMarkdownToHTML','</dummy>','children','replace','_m2html','436oVcFdn','parse','3495jQAklP','60tQiZfC','1648285gryTZI'];_0x6d03=function(){return _0x58031d;};return _0x6d03();}function _0x5551(_0x2df270,_0x26c8e7){const _0x6d03fa=_0x6d03();return _0x5551=function(_0x555110,_0x5d1a21){_0x555110=_0x555110-0x18d;let _0xd73016=_0x6d03fa[_0x555110];return _0xd73016;},_0x5551(_0x2df270,_0x26c8e7);}import{parse as _0x51e5aa}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x892bd1(){[_0x270438(0x18f)];constructor(){const _0x347838=_0x270438;super(),this[_0x347838(0x18f)]=new _0x43b302();}[_0x270438(0x19f)](_0x471054){const _0x189a9c=_0x270438,_0x1e63fb=this[_0x189a9c(0x18f)][_0x189a9c(0x191)](_0x471054);return this[_0x189a9c(0x19c)](_0x1e63fb);}[_0x270438(0x19c)](_0x7bc05f){const _0x4c546c=_0x270438;return this[_0x4c546c(0x199)](_0x7bc05f);}[_0x270438(0x199)](_0x4d30ce){const _0x2f0b5c=_0x270438,_0x3a0e89=_0x4d30ce[_0x2f0b5c(0x18e)](/^\t+/gm,'\x20')[_0x2f0b5c(0x18e)](/\n*/g,'')[_0x2f0b5c(0x18e)](/\s+/g,'\x20')[_0x2f0b5c(0x18e)](/<[^>]*?$/g,''),_0x175449=_0x51e5aa(_0x2f0b5c(0x19d)+_0x3a0e89+_0x2f0b5c(0x1a0));return _0x175449[_0x2f0b5c(0x18d)]=_0x175449[_0x2f0b5c(0x18d)][0x0][_0x2f0b5c(0x18d)],_0x175449;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4f5348,_0x3cbd65){var _0x5f1797=_0x2947,_0x2111c4=_0x4f5348();while(!![]){try{var _0x4babee=-parseInt(_0x5f1797(0x1d9))/0x1+-parseInt(_0x5f1797(0x1db))/0x2*(parseInt(_0x5f1797(0x1dd))/0x3)+-parseInt(_0x5f1797(0x1da))/0x4*(parseInt(_0x5f1797(0x1de))/0x5)+parseInt(_0x5f1797(0x1d4))/0x6*(parseInt(_0x5f1797(0x1d5))/0x7)+-parseInt(_0x5f1797(0x1d3))/0x8+parseInt(_0x5f1797(0x1dc))/0x9*(parseInt(_0x5f1797(0x1d6))/0xa)+parseInt(_0x5f1797(0x1d2))/0xb;if(_0x4babee===_0x3cbd65)break;else _0x2111c4['push'](_0x2111c4['shift']());}catch(_0x54fab4){_0x2111c4['push'](_0x2111c4['shift']());}}}(_0x1340,0xbb423));function _0x2947(_0x52ff5f,_0x411dc6){var _0x13400a=_0x1340();return _0x2947=function(_0x294713,_0x35db0b){_0x294713=_0x294713-0x1cf;var _0x346d35=_0x13400a[_0x294713];return _0x346d35;},_0x2947(_0x52ff5f,_0x411dc6);}import{View as _0xa2fa1a}from'ckeditor5/src/ui.js';import{getTranslation as _0xa501c9}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0xa2fa1a{constructor(_0x2645ce){var _0x5ef175=_0x2947;super(_0x2645ce),this[_0x5ef175(0x1d8)]({'tag':_0x5ef175(0x1d1),'attributes':{'class':['ck',_0x5ef175(0x1d7)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x5ef175(0x1d0)]},'children':[{'text':_0xa501c9(_0x2645ce,_0x5ef175(0x1cf))}]}]});}}function _0x1340(){var _0x3faa94=['AI_DISCLAIMER_TEXT','ck-ai-disclaimer__content','div','38658037MXdCcA','2249584UDnrKy','6jZXEQU','990031aCrGXf','70UbCOGc','ck-ai-disclaimer','setTemplate','1181116HSNfxl','12124OECtEO','2647486SUaNsp','1391643mzguUC','3zxjzGb','1955TYoFoJ'];_0x1340=function(){return _0x3faa94;};return _0x1340();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x291c26=_0x3760;(function(_0x3d88b1,_0x46770b){const _0x46cd49=_0x3760,_0x30daf8=_0x3d88b1();while(!![]){try{const _0x360c36=-parseInt(_0x46cd49(0x205))/0x1+-parseInt(_0x46cd49(0x202))/0x2+-parseInt(_0x46cd49(0x1e5))/0x3+-parseInt(_0x46cd49(0x206))/0x4+parseInt(_0x46cd49(0x1f3))/0x5+parseInt(_0x46cd49(0x1f0))/0x6+-parseInt(_0x46cd49(0x1f8))/0x7*(-parseInt(_0x46cd49(0x1f9))/0x8);if(_0x360c36===_0x46770b)break;else _0x30daf8['push'](_0x30daf8['shift']());}catch(_0x41ad4a){_0x30daf8['push'](_0x30daf8['shift']());}}}(_0x50f5,0xf2d1a));function _0x50f5(){const _0x14944c=['width:\x20','40px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','140px','24px','height','class','ck-ai-skeleton','div','72px','11213802SZTTGs','150px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','7485505pbgPWE','tag','left','100%','ck-ai-skeleton__item','1420811QRTGZE','48LOyqKt','fill','88px','map','250px','attributes','setTemplate','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','44px','452960qlsbkA','align','right','1033992gEXiKk','6716728bvOSkK','center',';\x20height:\x20','128px','width','_createSkeletonItems','1948998isEplH'];_0x50f5=function(){return _0x14944c;};return _0x50f5();}import{View as _0x237424}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x237424{constructor(_0x4ec9fe,_0x5df083){const _0x19a251=_0x3760;super(_0x4ec9fe),this[_0x19a251(0x1ff)]({'tag':_0x19a251(0x1ee),'attributes':{'class':['ck',_0x19a251(0x1ed)]},'children':this[_0x19a251(0x1e4)](_0x5df083)});}[_0x291c26(0x1e4)](_0xbe6b27){const _0x29d957=_0x291c26,_0x313e02=['ck',_0x29d957(0x1f7)];return _0xbe6b27[_0x29d957(0x1fc)](_0x3c7e76=>{const _0x5a68c2=_0x29d957;let _0x57478c='';switch(_0x3c7e76[_0x5a68c2(0x1fe)][_0x5a68c2(0x203)]){case _0x5a68c2(0x204):_0x57478c=_0x5a68c2(0x200);break;case _0x5a68c2(0x207):_0x57478c=_0x5a68c2(0x1f2);break;case _0x5a68c2(0x1f5):_0x57478c=_0x5a68c2(0x1e8);}return{'tag':_0x3c7e76[_0x5a68c2(0x1f4)],'attributes':{'class':[..._0x313e02,_0x3c7e76[_0x5a68c2(0x1fe)][_0x5a68c2(0x1ec)]?_0x3c7e76[_0x5a68c2(0x1fe)][_0x5a68c2(0x1ec)]:''],'style':_0x5a68c2(0x1e6)+_0x3c7e76[_0x5a68c2(0x1fe)][_0x5a68c2(0x1e3)]+_0x5a68c2(0x1e1)+_0x3c7e76[_0x5a68c2(0x1fe)][_0x5a68c2(0x1eb)]+';'+_0x57478c}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1f6),'height':_0x291c26(0x1ef),'align':_0x291c26(0x204)}},{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1fd),'height':_0x291c26(0x1e7),'align':_0x291c26(0x204)}},{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1f6),'height':_0x291c26(0x1fb),'align':_0x291c26(0x204)}},{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1f1),'height':_0x291c26(0x1e7),'align':_0x291c26(0x204)}},{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1f6),'height':_0x291c26(0x1e9),'align':_0x291c26(0x204)}},{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1fd),'height':_0x291c26(0x1e7),'align':_0x291c26(0x204)}},{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1f6),'height':_0x291c26(0x1fb),'align':_0x291c26(0x204)}}],'aiHistory':ta(0x5,_0x291c26(0x1f6),_0x291c26(0x201),_0x291c26(0x204)),'aiChatResources':ta(0x8,_0x291c26(0x1f6),_0x291c26(0x1ea),_0x291c26(0x204)),'aiReviewChecks':[{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1e2),'height':_0x291c26(0x1ea),'align':_0x291c26(0x1f5)}},{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1f6),'height':_0x291c26(0x1ea),'align':_0x291c26(0x1f5)}},{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1e2),'height':_0x291c26(0x1ea),'align':_0x291c26(0x1f5)}}]};function _0x3760(_0x270834,_0x40d91e){const _0x50f53b=_0x50f5();return _0x3760=function(_0x376092,_0x4b9c42){_0x376092=_0x376092-0x1e1;let _0x506436=_0x50f53b[_0x376092];return _0x506436;},_0x3760(_0x270834,_0x40d91e);}function ta(_0x43f8e3,_0x8e428c,_0x4ef4b7,_0x217129){const _0x32400f=_0x291c26;return new Array(_0x43f8e3)[_0x32400f(0x1fa)](null)[_0x32400f(0x1fc)](()=>({'tag':_0x32400f(0x1ee),'attributes':{'width':_0x8e428c,'height':_0x4ef4b7,'align':_0x217129}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x497f1b=_0x5a0c;(function(_0x3e4dfd,_0x477c64){const _0x1cb33b=_0x5a0c,_0x54742b=_0x3e4dfd();while(!![]){try{const _0x1b4bed=parseInt(_0x1cb33b(0x1c2))/0x1*(-parseInt(_0x1cb33b(0x1a2))/0x2)+parseInt(_0x1cb33b(0x1b2))/0x3+parseInt(_0x1cb33b(0x1ae))/0x4*(parseInt(_0x1cb33b(0x19f))/0x5)+-parseInt(_0x1cb33b(0x1a8))/0x6*(parseInt(_0x1cb33b(0x19e))/0x7)+-parseInt(_0x1cb33b(0x1c8))/0x8+-parseInt(_0x1cb33b(0x1bb))/0x9+-parseInt(_0x1cb33b(0x1b0))/0xa*(-parseInt(_0x1cb33b(0x1af))/0xb);if(_0x1b4bed===_0x477c64)break;else _0x54742b['push'](_0x54742b['shift']());}catch(_0x556752){_0x54742b['push'](_0x54742b['shift']());}}}(_0x32d9,0x3f1b3));function _0x32d9(){const _0x2af038=['ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','add','isOn','942882BzTXks','locale','customView','_config','bind','full','10896zjzTiG','1182907pvxIvK','60WkaHsL','ck-ai-mini-toolbar-copy-button__check-mark','1442310QYdDhK','dislike','isLoading','AI_SUGGESTION_BUTTON_SHOW_CHANGES','AI_MINI_TOOLBAR_LIKE','length','addMany','showDislike','children','1458783bgOvxo','set','likeButton','showCopy','items','isEnabled','ck-ai-mini-toolbar\x20ck-hidden','49qmrUJY','execute','extendTemplate','_setupRatingButtons','toggleShowChanges','_setupCopyButton','2870232wLbJHp','AI_MINI_TOOLBAR_DISLIKE','showChangesButton','copyButton','showChanges','AI_MINI_TOOLBAR_COPY','ck-ai-mini-toolbar','showLike','fire','ck-ai-mini-toolbar-copy-button','21gJzBcs','920dWCKme','dislikeButton','like','15364XvuJDF','_setupShowChangesButton','class'];_0x32d9=function(){return _0x2af038;};return _0x32d9();}import{ButtonView as _0x5607d1,IconView as _0x504fef,ToolbarView as _0x31c8a1}from'ckeditor5/src/ui.js';import{IconCheck as _0x540777,IconCopy as _0x19e506,IconShowChangesOff as _0x39c249,IconShowChangesOn as _0x59fec4,IconThumbDown as _0x5e9b57,IconThumbUp as _0x1a0ae7}from'@ckeditor/ckeditor5-icons';function _0x5a0c(_0x472ec3,_0x25b35f){const _0x32d9e3=_0x32d9();return _0x5a0c=function(_0x5a0c63,_0x2ba9f8){_0x5a0c63=_0x5a0c63-0x19b;let _0x10fd06=_0x32d9e3[_0x5a0c63];return _0x10fd06;},_0x5a0c(_0x472ec3,_0x25b35f);}import{getTranslation as _0x1de9af}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x31c8a1{[_0x497f1b(0x1cb)];[_0x497f1b(0x1bd)];[_0x497f1b(0x1a0)];[_0x497f1b(0x1ca)];[_0x497f1b(0x1ab)];constructor(_0x293fc3,_0x5831e2={},_0x2882c8){const _0x49794e=_0x497f1b;super(_0x293fc3),this[_0x49794e(0x1bc)](_0x49794e(0x1b4),!0x1),this[_0x49794e(0x1ab)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x5831e2};const _0x4712d1=!(this[_0x49794e(0x1ab)][_0x49794e(0x1be)]||this[_0x49794e(0x1ab)][_0x49794e(0x1cc)]||this[_0x49794e(0x1ab)][_0x49794e(0x19b)]||this[_0x49794e(0x1ab)][_0x49794e(0x1b9)]||this[_0x49794e(0x1ab)][_0x49794e(0x1aa)]?.[_0x49794e(0x1b7)]);this[_0x49794e(0x1a4)]=_0x4712d1?_0x49794e(0x1c1):_0x49794e(0x1ce),this[_0x49794e(0x1ab)][_0x49794e(0x1be)]&&(this[_0x49794e(0x1c7)](),this[_0x49794e(0x1bf)][_0x49794e(0x1a6)](this[_0x49794e(0x1cb)])),this[_0x49794e(0x1ab)][_0x49794e(0x1cc)]&&(this[_0x49794e(0x1a3)](_0x2882c8),this[_0x49794e(0x1bf)][_0x49794e(0x1a6)](this[_0x49794e(0x1ca)])),this[_0x49794e(0x1c5)](),this[_0x49794e(0x1ab)][_0x49794e(0x19b)]&&this[_0x49794e(0x1bf)][_0x49794e(0x1a6)](this[_0x49794e(0x1bd)]),this[_0x49794e(0x1ab)][_0x49794e(0x1b9)]&&this[_0x49794e(0x1bf)][_0x49794e(0x1a6)](this[_0x49794e(0x1a0)]),this[_0x49794e(0x1ab)][_0x49794e(0x1aa)]&&this[_0x49794e(0x1bf)][_0x49794e(0x1b8)](this[_0x49794e(0x1ab)][_0x49794e(0x1aa)]);}[_0x497f1b(0x1c5)](){const _0x4339ac=_0x497f1b;this[_0x4339ac(0x1bd)]=new _0x5607d1(this[_0x4339ac(0x1a9)]),this[_0x4339ac(0x1bd)][_0x4339ac(0x1bc)]({'icon':_0x1a0ae7,'label':_0x1de9af(this[_0x4339ac(0x1a9)],_0x4339ac(0x1b6)),'tooltip':!0x0}),this[_0x4339ac(0x1bd)][_0x4339ac(0x1ac)](_0x4339ac(0x1c0))['to'](this,_0x4339ac(0x1b4),_0x4c0353=>!_0x4c0353),this[_0x4339ac(0x1bd)]['on'](_0x4339ac(0x1c3),()=>{const _0x210a88=_0x4339ac;this[_0x210a88(0x19c)](_0x210a88(0x1a1));}),this[_0x4339ac(0x1a0)]=new _0x5607d1(this[_0x4339ac(0x1a9)]),this[_0x4339ac(0x1a0)][_0x4339ac(0x1bc)]({'icon':_0x5e9b57,'label':_0x1de9af(this[_0x4339ac(0x1a9)],_0x4339ac(0x1c9)),'tooltip':!0x0}),this[_0x4339ac(0x1a0)][_0x4339ac(0x1ac)](_0x4339ac(0x1c0))['to'](this,_0x4339ac(0x1b4),_0x249c70=>!_0x249c70),this[_0x4339ac(0x1a0)]['on'](_0x4339ac(0x1c3),()=>{const _0x139269=_0x4339ac;this[_0x139269(0x19c)](_0x139269(0x1b3));});}[_0x497f1b(0x1c7)](){const _0x4d00e0=_0x497f1b;this[_0x4d00e0(0x1cb)]=new _0x5607d1(this[_0x4d00e0(0x1a9)]),this[_0x4d00e0(0x1cb)][_0x4d00e0(0x1bc)]({'icon':_0x19e506,'label':_0x1de9af(this[_0x4d00e0(0x1a9)],_0x4d00e0(0x1cd)),'class':_0x4d00e0(0x19d),'tooltip':!0x0}),this[_0x4d00e0(0x1cb)][_0x4d00e0(0x1ac)](_0x4d00e0(0x1c0))['to'](this,_0x4d00e0(0x1b4),_0x68f114=>!_0x68f114);const _0x30a012=new _0x504fef();_0x30a012[_0x4d00e0(0x1bc)]({'content':_0x540777}),_0x30a012[_0x4d00e0(0x1c4)]({'attributes':{'class':[_0x4d00e0(0x1b1)]}}),this[_0x4d00e0(0x1cb)]['on'](_0x4d00e0(0x1c3),()=>{const _0x14ec1c=_0x4d00e0;this[_0x14ec1c(0x1cb)][_0x14ec1c(0x1a4)]=_0x14ec1c(0x1a5),setTimeout(()=>{const _0x20ca41=_0x14ec1c;this[_0x20ca41(0x1cb)][_0x20ca41(0x1a4)]=_0x20ca41(0x19d);},0x7d0);}),this[_0x4d00e0(0x1cb)][_0x4d00e0(0x1ba)][_0x4d00e0(0x1a6)](_0x30a012);}[_0x497f1b(0x1a3)](_0x432172){const _0x1c9419=_0x497f1b;this[_0x1c9419(0x1ca)]=new _0x5607d1(this[_0x1c9419(0x1a9)]),this[_0x1c9419(0x1ca)][_0x1c9419(0x1bc)]({'icon':_0x39c249,'label':_0x1de9af(this[_0x1c9419(0x1a9)],_0x1c9419(0x1b5)),'withText':_0x1c9419(0x1ad)==this[_0x1c9419(0x1ab)][_0x1c9419(0x1cc)],'tooltip':_0x1c9419(0x1ad)!=this[_0x1c9419(0x1ab)][_0x1c9419(0x1cc)],'isOn':_0x432172}),this[_0x1c9419(0x1ca)][_0x1c9419(0x1ac)](_0x1c9419(0x1c0))['to'](this,_0x1c9419(0x1b4),_0x1532b0=>!_0x1532b0),this[_0x1c9419(0x1ca)]['on'](_0x1c9419(0x1c3),()=>{const _0x42ddbb=_0x1c9419,_0x244011=!this[_0x42ddbb(0x1ca)][_0x42ddbb(0x1a7)];this[_0x42ddbb(0x1ca)][_0x42ddbb(0x1bc)]({'isOn':_0x244011,'icon':_0x244011?_0x59fec4:_0x39c249}),this[_0x42ddbb(0x19c)](_0x42ddbb(0x1c6),_0x244011);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1950b3=_0x1936;(function(_0x2f5c9e,_0x34a88c){const _0x53d4dd=_0x1936,_0x7a3c12=_0x2f5c9e();while(!![]){try{const _0x99c9d0=-parseInt(_0x53d4dd(0xdc))/0x1*(parseInt(_0x53d4dd(0xe4))/0x2)+-parseInt(_0x53d4dd(0xcc))/0x3+-parseInt(_0x53d4dd(0xd0))/0x4*(parseInt(_0x53d4dd(0x104))/0x5)+-parseInt(_0x53d4dd(0xdb))/0x6+-parseInt(_0x53d4dd(0xcb))/0x7+-parseInt(_0x53d4dd(0xe0))/0x8+parseInt(_0x53d4dd(0xd8))/0x9*(parseInt(_0x53d4dd(0xde))/0xa);if(_0x99c9d0===_0x34a88c)break;else _0x7a3c12['push'](_0x7a3c12['shift']());}catch(_0x4e4fed){_0x7a3c12['push'](_0x7a3c12['shift']());}}}(_0x16e1,0x73ff8));import{View as _0x57d1c3}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x10a1e7}from'./aisuggestioncontentpartview.js';function _0x16e1(){const _0x32dec1=['33633430zPqZFP','pending','4011320kUTCfn','hasNonEmptyParts','_cachedContentParts','push','961326hNclWH','add','AI_SUGGESTION_NO_PARTS_WARNING','setContent','isVisible','_emptyPartsWarningView','_children','warning','find','partsCount','hasPendingParts','createCollection','partDefinition','toggleHeader','updateContentParts','set','getPartView','ck-ai-suggestion__body__content-parts','ck-ai-suggestion__body','first','_updateContentPartsPromiseQueue','addEventListener','_availableActions','from','setTemplate','delegate','hasChanges','index','locale','AI_SUGGESTION_EMPTY_PART_WARNING','queueEmptyPromise','enqueue','345JGnmIN','div','3914666LgbZZx','2162970kxKlzs','findIndex','state','updateContent','32496WffqzC','_areActionsDisabled','updatePartState','length','filter','_showUnchangedParts','some','empty-parts-warning','9AbWJDs','abort','markAsDone','392118ZIDuBj','1PsEBVM','forEach'];_0x16e1=function(){return _0x32dec1;};return _0x16e1();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x7dabd4}from'../../utils/eventnames.js';import{PromiseQueue as _0x1308e7}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0xe7f91f}from'../../../aichat/ui/feed/aichatfeederroritemview.js';function _0x1936(_0x3cbe03,_0x2b24cf){const _0x16e17c=_0x16e1();return _0x1936=function(_0x193677,_0x27d40c){_0x193677=_0x193677-0xca;let _0x26535b=_0x16e17c[_0x193677];return _0x26535b;},_0x1936(_0x3cbe03,_0x2b24cf);}import{getTranslation as _0x26a937}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x57d1c3{[_0x1950b3(0xea)];[_0x1950b3(0xd1)];[_0x1950b3(0xd5)];[_0x1950b3(0xf8)];[_0x1950b3(0xe9)];[_0x1950b3(0xfa)];[_0x1950b3(0xe2)]=[];constructor(_0x9333fe,_0x11969b){const _0x4668af=_0x1950b3;super(_0x9333fe);const {areActionsDisabled:_0x4fc59e,showUnchangedParts:_0x472111,availableActions:_0xbc96ec}=_0x11969b;this[_0x4668af(0xd1)]=_0x4fc59e,this[_0x4668af(0xd5)]=_0x472111,this[_0x4668af(0xfa)]=_0xbc96ec,this[_0x4668af(0xf3)](_0x4668af(0xee),!0x1),this[_0x4668af(0xea)]=this[_0x4668af(0xef)](),this[_0x4668af(0xf8)]=new _0x1308e7(),this[_0x4668af(0xe9)]=new _0xe7f91f({'id':_0x4668af(0xd7),'initialContent':_0x26a937(_0x9333fe,_0x4668af(0x101)),'level':_0x4668af(0xeb)}),this[_0x4668af(0xe9)][_0x4668af(0xe8)]=!0x1,this[_0x4668af(0xfc)]({'tag':_0x4668af(0xca),'attributes':{'class':['ck',_0x4668af(0xf6)]},'children':[{'tag':_0x4668af(0xca),'attributes':{'class':['ck',_0x4668af(0xf5)]},'children':this[_0x4668af(0xea)]},this[_0x4668af(0xe9)]]});}get[_0x1950b3(0xed)](){const _0x39f4ac=_0x1950b3;return this[_0x39f4ac(0xea)][_0x39f4ac(0xd3)];}async[_0x1950b3(0xf2)]({parts:_0x10f604,renderingStrategy:_0x263c8a,abortSignal:_0x2ddc09}){const _0x16cb4c=_0x1950b3;this[_0x16cb4c(0xea)][_0x16cb4c(0xd3)]?_0x10f604[_0x16cb4c(0xdd)](_0x36e499=>{const _0x38aff8=_0x16cb4c,_0x766d5c=this[_0x38aff8(0xe2)][_0x38aff8(0xcd)](_0x19e0b1=>_0x19e0b1[_0x38aff8(0xff)]==_0x36e499[_0x38aff8(0xff)]);-0x1===_0x766d5c?this[_0x38aff8(0xe2)][_0x38aff8(0xe3)](_0x36e499):this[_0x38aff8(0xe2)][_0x766d5c]=_0x36e499;}):this[_0x16cb4c(0xe2)]=_0x10f604;for(const _0x26f1c2 of _0x10f604[_0x16cb4c(0xd4)](_0x120cbc=>_0x120cbc[_0x16cb4c(0xfe)]))this[_0x16cb4c(0xf8)][_0x16cb4c(0x103)](async _0x41304a=>{const _0x361aa3=_0x16cb4c;let _0xaa5200=this[_0x361aa3(0xf4)](_0x26f1c2[_0x361aa3(0xff)]);_0xaa5200||(_0xaa5200=new _0x10a1e7(this[_0x361aa3(0x100)],{'part':_0x26f1c2,'uiIndex':this[_0x361aa3(0xea)][_0x361aa3(0xd3)]+0x1,'areActionsDisabled':this[_0x361aa3(0xd1)],'availableActions':this[_0x361aa3(0xfa)]}),_0xaa5200[_0x361aa3(0xfd)](..._0x7dabd4)['to'](this),this[_0x361aa3(0xea)][_0x361aa3(0xe5)](_0xaa5200),this[_0x361aa3(0xee)]=!0x0),0x2===this[_0x361aa3(0xea)][_0x361aa3(0xd3)]&&this[_0x361aa3(0xea)][_0x361aa3(0xf7)][_0x361aa3(0xf1)](!0x0),_0xaa5200[_0x361aa3(0xf1)](this[_0x361aa3(0xea)][_0x361aa3(0xd3)]>0x1),await _0xaa5200[_0x361aa3(0xcf)]({'part':_0x26f1c2,'renderingStrategy':_0x263c8a,'showUnchangedParts':this[_0x361aa3(0xd5)],'abortSignal':_0x41304a});});return _0x2ddc09?.[_0x16cb4c(0xf9)](_0x16cb4c(0xd9),()=>{const _0x30535e=_0x16cb4c;this[_0x30535e(0xf8)][_0x30535e(0xd9)]();}),this[_0x16cb4c(0xf8)][_0x16cb4c(0x102)];}[_0x1950b3(0xd2)](_0x2ce17f,_0x5ed718){const _0x5b7d03=_0x1950b3,_0x3262b8=this[_0x5b7d03(0xf4)](_0x2ce17f);_0x3262b8&&(_0x3262b8[_0x5b7d03(0xce)]=_0x5ed718),this[_0x5b7d03(0xee)]=_0x5b7d03(0xdf)==_0x5ed718||Array[_0x5b7d03(0xfb)](this[_0x5b7d03(0xea)])[_0x5b7d03(0xd6)](_0x21e7a1=>_0x5b7d03(0xdf)==_0x21e7a1[_0x5b7d03(0xce)]);}[_0x1950b3(0xf4)](_0x2ef020){const _0x138f42=_0x1950b3;return this[_0x138f42(0xea)][_0x138f42(0xec)](_0x35b826=>_0x35b826[_0x138f42(0xf0)][_0x138f42(0xff)]==_0x2ef020)??null;}[_0x1950b3(0xda)](){const _0x5f0756=_0x1950b3;if(!this[_0x5f0756(0xd5)]){const _0x192813=!this[_0x5f0756(0xe2)][_0x5f0756(0xec)](({hasChanges:_0x406230})=>_0x406230),_0x2ce6a4=!!this[_0x5f0756(0xe2)][_0x5f0756(0xec)](({hasChanges:_0x41c82c})=>!_0x41c82c);this[_0x5f0756(0xe9)][_0x5f0756(0xe8)]=0x0==this[_0x5f0756(0xea)][_0x5f0756(0xd3)]||_0x2ce6a4,_0x192813?this[_0x5f0756(0xe9)][_0x5f0756(0xe7)](_0x26a937(this[_0x5f0756(0x100)],_0x5f0756(0xe6))):this[_0x5f0756(0xe9)][_0x5f0756(0xe7)](_0x26a937(this[_0x5f0756(0x100)],_0x5f0756(0x101)));}}get[_0x1950b3(0xe1)](){const _0x8b44c1=_0x1950b3;return!!this[_0x8b44c1(0xea)][_0x8b44c1(0xec)](_0x13ecd0=>_0x13ecd0[_0x8b44c1(0xf0)][_0x8b44c1(0xfe)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4071f9=_0x4839;(function(_0x11386d,_0x214170){const _0x47c260=_0x4839,_0x2db73a=_0x11386d();while(!![]){try{const _0x521be1=-parseInt(_0x47c260(0x157))/0x1+parseInt(_0x47c260(0x148))/0x2+-parseInt(_0x47c260(0x131))/0x3*(-parseInt(_0x47c260(0x11a))/0x4)+parseInt(_0x47c260(0x166))/0x5*(parseInt(_0x47c260(0x15e))/0x6)+-parseInt(_0x47c260(0x14d))/0x7*(-parseInt(_0x47c260(0x152))/0x8)+-parseInt(_0x47c260(0x16a))/0x9*(parseInt(_0x47c260(0x12b))/0xa)+-parseInt(_0x47c260(0x153))/0xb*(parseInt(_0x47c260(0x12e))/0xc);if(_0x521be1===_0x214170)break;else _0x2db73a['push'](_0x2db73a['shift']());}catch(_0x26c58f){_0x2db73a['push'](_0x2db73a['shift']());}}}(_0x4862,0x68a57));import{IconWeb as _0xb5a263}from'@ckeditor/ckeditor5-icons';import{View as _0x3498cc,ButtonView as _0x219da6,IconView as _0x42f31c}from'ckeditor5/src/ui.js';function _0x4862(){const _0x22c3fa=['headerView','remove','ck-ai-web-sources','updateContent','showChangesToggleView','ck-ai-suggestion__error-text','extendTemplate','createCollection','_blank','removeNavigationItem','ck-rounded-corners','ck-hidden','1165122YXpFDu','children','isOn','_createErrorView','clearLoading','469DKAsyB','open','ck-ai-web-sources__header','toggleShowChanges','ck\x20ck-ai-web-source','22640hoizoD','145387xVWOZC','updateContentParts','isLoaderVisible','bodyView','743499XGMbbB','title','clearErrorState','ck-ai-web-source__image','updateSources','ck-ai-suggestion__loader','markAsDone','6TAnrjJ','bindTemplate','isVisible','querySelector','set','small','addNavigationItem','AI_CHAT_IS_WRITING','2919690VSLAON','content','favicon','showLoader','801SCbmjt','element','setTemplate','isShowChangesToggleVisible','errorView','map','isErrorVisible','setErrorState','areChangesVisible','div','4GMfvsr','icon','url','ck-ai-suggestion__loader-text','ck-ai-suggestion__error','isEnabled','hasNonEmptyParts','AI_CHAT_GENERIC_ERROR','loaderView','_createLoaderView','AI_CHAT_SOURCES_HEADER','bind','ck-ai-suggestion__container','img','add','fire','hideError','36430srLSnZ','miniToolbarView','isLoading','132FuOqZB','setLoading','delegate','856905sDmola','hideLoader','textContent','addMany','.ck-ai-suggestion__error-text','sourcesView','showError','toggleSuggestionDisplayMode','items','locale','span'];_0x4862=function(){return _0x22c3fa;};return _0x4862();}import{AIMiniToolbarView as _0x9cbb60}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x547703}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x5b4f26}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x587088}from'../../utils/eventnames.js';import{AISpinnerView as _0x24088d}from'../aispinner.js';import{getTranslation as _0x435a2f}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x3498cc{[_0x4071f9(0x156)];[_0x4071f9(0x12c)];[_0x4071f9(0x149)];[_0x4071f9(0x13c)];[_0x4071f9(0x122)];[_0x4071f9(0x16e)];[_0x4071f9(0x136)];constructor(_0xbd9c11,_0x2f120b){const _0x185f0c=_0x4071f9;super(_0xbd9c11);const {showDiff:_0x301573,areActionsDisabled:_0x176bf8,miniToolbarConfig:_0x40ee7b,hideHeader:_0x479d9b,showLoader:_0x169749,showUnchangedParts:_0x2701e8,availableActions:_0x188740}=_0x2f120b;this[_0x185f0c(0x162)](_0x185f0c(0x118),!0x1),this[_0x185f0c(0x162)](_0x185f0c(0x155),!!_0x169749),this[_0x185f0c(0x162)](_0x185f0c(0x170),!0x1),this[_0x185f0c(0x162)](_0x185f0c(0x12d),!0x1),this[_0x185f0c(0x149)]=this[_0x185f0c(0x143)](),_0x479d9b||(this[_0x185f0c(0x13c)]=new _0x547703(_0xbd9c11,{'showDiff':_0x301573}),this[_0x185f0c(0x13c)]['on'](_0x185f0c(0x150),(_0x36b872,_0x45dcb8)=>{const _0x48580d=_0x185f0c;this[_0x48580d(0x118)]=_0x45dcb8[_0x48580d(0x14a)],this[_0x48580d(0x129)](_0x48580d(0x138),{'showDiff':_0x45dcb8[_0x48580d(0x14a)]});}),this[_0x185f0c(0x149)][_0x185f0c(0x128)](this[_0x185f0c(0x13c)])),this[_0x185f0c(0x156)]=new _0x5b4f26(_0xbd9c11,{'areActionsDisabled':_0x176bf8,'showUnchangedParts':!!_0x2701e8,'availableActions':_0x188740}),this[_0x185f0c(0x156)][_0x185f0c(0x130)](..._0x587088)['to'](this),this[_0x185f0c(0x156)][_0x185f0c(0x142)]({'attributes':{'class':[this[_0x185f0c(0x15f)]['if'](_0x185f0c(0x155),_0x185f0c(0x147)),this[_0x185f0c(0x15f)]['if'](_0x185f0c(0x170),_0x185f0c(0x147))]}}),this[_0x185f0c(0x12c)]=new _0x9cbb60(_0xbd9c11,_0x40ee7b,_0x301573),this[_0x185f0c(0x12c)][_0x185f0c(0x130)](..._0x587088)['to'](this),this[_0x185f0c(0x12c)]['on'](_0x185f0c(0x150),(_0x1dfe92,_0x49258e)=>{const _0x29f310=_0x185f0c;this[_0x29f310(0x118)]=_0x49258e,this[_0x29f310(0x129)](_0x29f310(0x138),{'showDiff':_0x49258e});}),this[_0x185f0c(0x12c)][_0x185f0c(0x125)](_0x185f0c(0x12d))['to'](this),this[_0x185f0c(0x149)][_0x185f0c(0x128)](this[_0x185f0c(0x156)]),this[_0x185f0c(0x149)][_0x185f0c(0x128)](this[_0x185f0c(0x12c)]),this[_0x185f0c(0x136)]=new AIWebSourcesView(this[_0x185f0c(0x13a)]),this[_0x185f0c(0x149)][_0x185f0c(0x128)](this[_0x185f0c(0x136)]),_0x169749&&(this[_0x185f0c(0x122)]=this[_0x185f0c(0x123)](),this[_0x185f0c(0x149)][_0x185f0c(0x128)](this[_0x185f0c(0x122)])),this[_0x185f0c(0x16e)]=this[_0x185f0c(0x14b)](),this[_0x185f0c(0x149)][_0x185f0c(0x128)](this[_0x185f0c(0x16e)]),this[_0x185f0c(0x16c)]({'tag':_0x185f0c(0x119),'attributes':{'class':['ck',_0x185f0c(0x126),_0x185f0c(0x146)]},'children':this[_0x185f0c(0x149)]});}async[_0x4071f9(0x13f)](_0x5c981f){const _0x36bbda=_0x4071f9;await this[_0x36bbda(0x156)][_0x36bbda(0x154)](_0x5c981f);}[_0x4071f9(0x15b)](_0x1e0e88){const _0x5a80c9=_0x4071f9;this[_0x5a80c9(0x136)][_0x5a80c9(0x149)][_0x5a80c9(0x134)](_0x1e0e88[_0x5a80c9(0x16f)](_0x29d9f7=>new AIWebSourceView(this[_0x5a80c9(0x13a)],_0x29d9f7))),this[_0x5a80c9(0x136)][_0x5a80c9(0x160)]=!0x0;}[_0x4071f9(0x169)](){const _0x2af136=_0x4071f9;this[_0x2af136(0x122)]&&(this[_0x2af136(0x155)]=!0x0);}[_0x4071f9(0x132)](){const _0x5cefeb=_0x4071f9;this[_0x5cefeb(0x122)]&&(this[_0x5cefeb(0x155)]=!0x1);}[_0x4071f9(0x137)](_0x17934a){const _0x2540ff=_0x4071f9;if(this[_0x2540ff(0x16e)]){const _0x407118=this[_0x2540ff(0x16e)][_0x2540ff(0x16b)]?.[_0x2540ff(0x161)](_0x2540ff(0x135));_0x407118&&(_0x407118[_0x2540ff(0x133)]=_0x17934a),this[_0x2540ff(0x170)]=!0x0;}}[_0x4071f9(0x12a)](){const _0x2aa42c=_0x4071f9;this[_0x2aa42c(0x16e)]&&(this[_0x2aa42c(0x170)]=!0x1);}[_0x4071f9(0x15d)](){const _0x2e4af5=_0x4071f9;this[_0x2e4af5(0x156)][_0x2e4af5(0x15d)](),this[_0x2e4af5(0x13c)]&&(this[_0x2e4af5(0x13c)][_0x2e4af5(0x16d)]=this[_0x2e4af5(0x156)][_0x2e4af5(0x120)]);}[_0x4071f9(0x12f)](){const _0x206251=_0x4071f9;this[_0x206251(0x12d)]=!0x0;}[_0x4071f9(0x14c)](){const _0x240375=_0x4071f9;this[_0x240375(0x12d)]=!0x1;}[_0x4071f9(0x171)](){const _0x57402c=_0x4071f9;this[_0x57402c(0x12c)]&&(this[_0x57402c(0x12c)][_0x57402c(0x12d)]=!0x0),this[_0x57402c(0x13c)]?.[_0x57402c(0x140)]&&(this[_0x57402c(0x13c)][_0x57402c(0x140)][_0x57402c(0x11f)]=!0x1);}[_0x4071f9(0x159)](){const _0x185948=_0x4071f9;this[_0x185948(0x12c)]&&(this[_0x185948(0x12c)][_0x185948(0x12d)]=!0x1),this[_0x185948(0x13c)]?.[_0x185948(0x140)]&&(this[_0x185948(0x13c)][_0x185948(0x140)][_0x185948(0x11f)]=!0x0);}[_0x4071f9(0x164)](_0x5e12c9){const _0x901d04=_0x4071f9;this[_0x901d04(0x12c)][_0x901d04(0x139)][_0x901d04(0x128)](_0x5e12c9);}[_0x4071f9(0x145)](_0x11142f){const _0x4feb8f=_0x4071f9;this[_0x4feb8f(0x12c)][_0x4feb8f(0x139)][_0x4feb8f(0x13d)](_0x11142f);}[_0x4071f9(0x123)](){const _0x21bd12=_0x4071f9,_0x3310b8=new _0x3498cc(this[_0x21bd12(0x13a)]),_0x385bcb=new _0x24088d(_0x21bd12(0x163));_0x385bcb[_0x21bd12(0x160)]=!0x0;const _0x593f50=new _0x3498cc(this[_0x21bd12(0x13a)]);return _0x593f50[_0x21bd12(0x16c)]({'tag':_0x21bd12(0x13b),'attributes':{'class':['ck',_0x21bd12(0x11d)]},'children':[_0x435a2f(this[_0x21bd12(0x13a)],_0x21bd12(0x165))]}),_0x3310b8[_0x21bd12(0x16c)]({'tag':_0x21bd12(0x119),'attributes':{'class':['ck',_0x21bd12(0x15c),this[_0x21bd12(0x15f)]['if'](_0x21bd12(0x155),_0x21bd12(0x147),_0x1d4652=>!_0x1d4652)]},'children':[_0x385bcb,_0x593f50]}),_0x3310b8;}[_0x4071f9(0x14b)](){const _0x4eee88=_0x4071f9,_0x1ff441=new _0x3498cc(this[_0x4eee88(0x13a)]),_0x2f1c86=new _0x3498cc(this[_0x4eee88(0x13a)]);return _0x2f1c86[_0x4eee88(0x16c)]({'tag':_0x4eee88(0x13b),'attributes':{'class':['ck',_0x4eee88(0x141)]},'children':[_0x435a2f(this[_0x4eee88(0x13a)],_0x4eee88(0x121))]}),_0x1ff441[_0x4eee88(0x16c)]({'tag':_0x4eee88(0x119),'attributes':{'class':['ck',_0x4eee88(0x11e),this[_0x4eee88(0x15f)]['if'](_0x4eee88(0x170),_0x4eee88(0x147),_0x174ae6=>!_0x174ae6)]},'children':[_0x2f1c86]}),_0x1ff441;}}function _0x4839(_0x5e973a,_0x1b63c7){const _0x486206=_0x4862();return _0x4839=function(_0x4839e7,_0x426cb6){_0x4839e7=_0x4839e7-0x118;let _0x244ca0=_0x486206[_0x4839e7];return _0x244ca0;},_0x4839(_0x5e973a,_0x1b63c7);}export class AIWebSourcesView extends _0x3498cc{[_0x4071f9(0x149)];constructor(_0x43938c){const _0x353087=_0x4071f9;super(_0x43938c),this[_0x353087(0x149)]=this[_0x353087(0x143)](),this[_0x353087(0x162)](_0x353087(0x160),!0x1),this[_0x353087(0x16c)]({'tag':_0x353087(0x119),'attributes':{'class':['ck',_0x353087(0x13e),this[_0x353087(0x15f)]['if'](_0x353087(0x160),_0x353087(0x147),_0x59239e=>!_0x59239e)]},'children':this[_0x353087(0x149)]});const _0xf67208=new _0x3498cc(this[_0x353087(0x13a)]),_0x324516=new _0x42f31c();_0x324516[_0x353087(0x167)]=_0xb5a263,_0xf67208[_0x353087(0x16c)]({'tag':_0x353087(0x119),'attributes':{'class':['ck',_0x353087(0x14f)]},'children':[_0x324516,{'tag':_0x353087(0x13b),'children':[{'text':_0x435a2f(this[_0x353087(0x13a)],_0x353087(0x124))}]}]}),this[_0x353087(0x149)][_0x353087(0x128)](_0xf67208);}}export class AIWebSourceView extends _0x219da6{constructor(_0x3b5d43,_0x18c5a9){const _0x2b515b=_0x4071f9;super(_0x3b5d43),this[_0x2b515b(0x162)]({'label':_0x18c5a9[_0x2b515b(0x158)],'tooltip':_0x18c5a9[_0x2b515b(0x158)],'class':[_0x2b515b(0x151)],'withText':!0x0});const _0x54094b=this[_0x2b515b(0x15f)];if(this[_0x2b515b(0x142)]({'on':{'click':_0x54094b['to'](()=>{const _0x131700=_0x2b515b;window[_0x131700(0x14e)](_0x18c5a9[_0x131700(0x11c)],_0x131700(0x144));})}}),_0x18c5a9[_0x2b515b(0x168)]){const _0x256350=new _0x3498cc(_0x3b5d43);_0x256350[_0x2b515b(0x16c)]({'tag':_0x2b515b(0x127),'attributes':{'src':_0x18c5a9[_0x2b515b(0x168)]||_0xb5a263,'alt':_0x18c5a9[_0x2b515b(0x158)],'class':[_0x2b515b(0x15a)]}}),this[_0x2b515b(0x149)][_0x2b515b(0x128)](_0x256350);}else this[_0x2b515b(0x162)](_0x2b515b(0x11b),_0xb5a263);}}
|
|
23
|
+
function _0x3246(){const _0xf6ea7c=['bodyView','markAsDone','hasNonEmptyParts','content','isLoaderVisible','querySelector','ck-ai-web-source__image','img','loaderView','1874302SRVuMZ','ck-hidden','favicon','clearLoading','ck-ai-suggestion__loader-text','remove','isEnabled','isVisible','hideError','201862jIfEnE','set','toggleSuggestionDisplayMode','_createLoaderView','small','ck-ai-suggestion__loader','1120035PFLrSE','delegate','clearErrorState','191156zpjLfi','AI_CHAT_GENERIC_ERROR','ck-ai-suggestion__container','ck-ai-web-sources','999030bTdPTt','span','element','setTemplate','isOn','textContent','extendTemplate','createCollection','isLoading','url','showLoader','AI_CHAT_SOURCES_HEADER','isErrorVisible','bind','fire','areChangesVisible','35TzurAu','232YiVvUO','children','addMany','map','setErrorState','.ck-ai-suggestion__error-text','updateSources','locale','hideLoader','136144FfJyqC','ck-ai-suggestion__error','AI_CHAT_IS_WRITING','_createErrorView','_blank','icon','div','1053540HITiIr','updateContentParts','ck-rounded-corners','setLoading','toggleShowChanges','headerView','showError','removeNavigationItem','items','sourcesView','miniToolbarView','addNavigationItem','isShowChangesToggleVisible','ck\x20ck-ai-web-source','title','updateContent','open','showChangesToggleView','bindTemplate','ck-ai-suggestion__error-text','errorView','ck-ai-web-sources__header','add'];_0x3246=function(){return _0xf6ea7c;};return _0x3246();}const _0x2f1639=_0x9716;(function(_0x47c540,_0x435fbb){const _0x13dcbf=_0x9716,_0xabbe5a=_0x47c540();while(!![]){try{const _0x325b78=-parseInt(_0x13dcbf(0x1af))/0x1+parseInt(_0x13dcbf(0x1fd))/0x2+-parseInt(_0x13dcbf(0x1b5))/0x3+-parseInt(_0x13dcbf(0x1d6))/0x4+parseInt(_0x13dcbf(0x1cc))/0x5*(parseInt(_0x13dcbf(0x1bc))/0x6)+parseInt(_0x13dcbf(0x1b8))/0x7*(-parseInt(_0x13dcbf(0x1cd))/0x8)+-parseInt(_0x13dcbf(0x1dd))/0x9;if(_0x325b78===_0x435fbb)break;else _0xabbe5a['push'](_0xabbe5a['shift']());}catch(_0x2ad99c){_0xabbe5a['push'](_0xabbe5a['shift']());}}}(_0x3246,0x8eb03));function _0x9716(_0x1e5aed,_0x21ae4f){const _0x32469a=_0x3246();return _0x9716=function(_0x9716de,_0x53f7e4){_0x9716de=_0x9716de-0x1ad;let _0x47f07c=_0x32469a[_0x9716de];return _0x47f07c;},_0x9716(_0x1e5aed,_0x21ae4f);}import{IconWeb as _0x6e63c3}from'@ckeditor/ckeditor5-icons';import{View as _0x14337a,ButtonView as _0x11c48b,IconView as _0x19cc7e}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x496718}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x877bb9}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x5e456c}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x33a484}from'../../utils/eventnames.js';import{AISpinnerView as _0x41183f}from'../aispinner.js';import{getTranslation as _0x4469c5}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x14337a{[_0x2f1639(0x1f4)];[_0x2f1639(0x1e7)];[_0x2f1639(0x1ce)];[_0x2f1639(0x1e2)];[_0x2f1639(0x1fc)];[_0x2f1639(0x1f1)];[_0x2f1639(0x1e6)];constructor(_0x311e3e,_0xcf66c9){const _0x5b4405=_0x2f1639;super(_0x311e3e);const {showDiff:_0x2a73db,areActionsDisabled:_0x2cba0f,miniToolbarConfig:_0x48d56c,hideHeader:_0x2cfaf3,showLoader:_0x4cbe43,showUnchangedParts:_0x5e518f,availableActions:_0x450b79}=_0xcf66c9;this[_0x5b4405(0x1b0)](_0x5b4405(0x1cb),!0x1),this[_0x5b4405(0x1b0)](_0x5b4405(0x1f8),!!_0x4cbe43),this[_0x5b4405(0x1b0)](_0x5b4405(0x1c8),!0x1),this[_0x5b4405(0x1b0)](_0x5b4405(0x1c4),!0x1),this[_0x5b4405(0x1ce)]=this[_0x5b4405(0x1c3)](),_0x2cfaf3||(this[_0x5b4405(0x1e2)]=new _0x877bb9(_0x311e3e,{'showDiff':_0x2a73db}),this[_0x5b4405(0x1e2)]['on'](_0x5b4405(0x1e1),(_0x329b65,_0x66ea08)=>{const _0x33593c=_0x5b4405;this[_0x33593c(0x1cb)]=_0x66ea08[_0x33593c(0x1c0)],this[_0x33593c(0x1ca)](_0x33593c(0x1b1),{'showDiff':_0x66ea08[_0x33593c(0x1c0)]});}),this[_0x5b4405(0x1ce)][_0x5b4405(0x1f3)](this[_0x5b4405(0x1e2)])),this[_0x5b4405(0x1f4)]=new _0x5e456c(_0x311e3e,{'areActionsDisabled':_0x2cba0f,'showUnchangedParts':!!_0x5e518f,'availableActions':_0x450b79}),this[_0x5b4405(0x1f4)][_0x5b4405(0x1b6)](..._0x33a484)['to'](this),this[_0x5b4405(0x1f4)][_0x5b4405(0x1c2)]({'attributes':{'class':[this[_0x5b4405(0x1ef)]['if'](_0x5b4405(0x1f8),_0x5b4405(0x1fe)),this[_0x5b4405(0x1ef)]['if'](_0x5b4405(0x1c8),_0x5b4405(0x1fe))]}}),this[_0x5b4405(0x1e7)]=new _0x496718(_0x311e3e,_0x48d56c,_0x2a73db),this[_0x5b4405(0x1e7)][_0x5b4405(0x1b6)](..._0x33a484)['to'](this),this[_0x5b4405(0x1e7)]['on'](_0x5b4405(0x1e1),(_0x2612f1,_0x514ea8)=>{const _0x102cee=_0x5b4405;this[_0x102cee(0x1cb)]=_0x514ea8,this[_0x102cee(0x1ca)](_0x102cee(0x1b1),{'showDiff':_0x514ea8});}),this[_0x5b4405(0x1e7)][_0x5b4405(0x1c9)](_0x5b4405(0x1c4))['to'](this),this[_0x5b4405(0x1ce)][_0x5b4405(0x1f3)](this[_0x5b4405(0x1f4)]),this[_0x5b4405(0x1ce)][_0x5b4405(0x1f3)](this[_0x5b4405(0x1e7)]),this[_0x5b4405(0x1e6)]=new AIWebSourcesView(this[_0x5b4405(0x1d4)]),this[_0x5b4405(0x1ce)][_0x5b4405(0x1f3)](this[_0x5b4405(0x1e6)]),_0x4cbe43&&(this[_0x5b4405(0x1fc)]=this[_0x5b4405(0x1b2)](),this[_0x5b4405(0x1ce)][_0x5b4405(0x1f3)](this[_0x5b4405(0x1fc)])),this[_0x5b4405(0x1f1)]=this[_0x5b4405(0x1d9)](),this[_0x5b4405(0x1ce)][_0x5b4405(0x1f3)](this[_0x5b4405(0x1f1)]),this[_0x5b4405(0x1bf)]({'tag':_0x5b4405(0x1dc),'attributes':{'class':['ck',_0x5b4405(0x1ba),_0x5b4405(0x1df)]},'children':this[_0x5b4405(0x1ce)]});}async[_0x2f1639(0x1ec)](_0x5048b2){const _0x5d59e5=_0x2f1639;await this[_0x5d59e5(0x1f4)][_0x5d59e5(0x1de)](_0x5048b2);}[_0x2f1639(0x1d3)](_0x55b91d){const _0x3ce44d=_0x2f1639;this[_0x3ce44d(0x1e6)][_0x3ce44d(0x1ce)][_0x3ce44d(0x1cf)](_0x55b91d[_0x3ce44d(0x1d0)](_0x5c0e75=>new AIWebSourceView(this[_0x3ce44d(0x1d4)],_0x5c0e75))),this[_0x3ce44d(0x1e6)][_0x3ce44d(0x1ad)]=!0x0;}[_0x2f1639(0x1c6)](){const _0x3ae0a6=_0x2f1639;this[_0x3ae0a6(0x1fc)]&&(this[_0x3ae0a6(0x1f8)]=!0x0);}[_0x2f1639(0x1d5)](){const _0x44a194=_0x2f1639;this[_0x44a194(0x1fc)]&&(this[_0x44a194(0x1f8)]=!0x1);}[_0x2f1639(0x1e3)](_0x522565){const _0x3352b8=_0x2f1639;if(this[_0x3352b8(0x1f1)]){const _0x4495b6=this[_0x3352b8(0x1f1)][_0x3352b8(0x1be)]?.[_0x3352b8(0x1f9)](_0x3352b8(0x1d2));_0x4495b6&&(_0x4495b6[_0x3352b8(0x1c1)]=_0x522565),this[_0x3352b8(0x1c8)]=!0x0;}}[_0x2f1639(0x1ae)](){const _0x54a66f=_0x2f1639;this[_0x54a66f(0x1f1)]&&(this[_0x54a66f(0x1c8)]=!0x1);}[_0x2f1639(0x1f5)](){const _0x48aa8d=_0x2f1639;this[_0x48aa8d(0x1f4)][_0x48aa8d(0x1f5)](),this[_0x48aa8d(0x1e2)]&&(this[_0x48aa8d(0x1e2)][_0x48aa8d(0x1e9)]=this[_0x48aa8d(0x1f4)][_0x48aa8d(0x1f6)]);}[_0x2f1639(0x1e0)](){const _0x5e9482=_0x2f1639;this[_0x5e9482(0x1c4)]=!0x0;}[_0x2f1639(0x200)](){const _0x3c47f3=_0x2f1639;this[_0x3c47f3(0x1c4)]=!0x1;}[_0x2f1639(0x1d1)](){const _0x1eb76e=_0x2f1639;this[_0x1eb76e(0x1e7)]&&(this[_0x1eb76e(0x1e7)][_0x1eb76e(0x1c4)]=!0x0),this[_0x1eb76e(0x1e2)]?.[_0x1eb76e(0x1ee)]&&(this[_0x1eb76e(0x1e2)][_0x1eb76e(0x1ee)][_0x1eb76e(0x203)]=!0x1);}[_0x2f1639(0x1b7)](){const _0x5ac08e=_0x2f1639;this[_0x5ac08e(0x1e7)]&&(this[_0x5ac08e(0x1e7)][_0x5ac08e(0x1c4)]=!0x1),this[_0x5ac08e(0x1e2)]?.[_0x5ac08e(0x1ee)]&&(this[_0x5ac08e(0x1e2)][_0x5ac08e(0x1ee)][_0x5ac08e(0x203)]=!0x0);}[_0x2f1639(0x1e8)](_0x2421a8){const _0x37aef6=_0x2f1639;this[_0x37aef6(0x1e7)][_0x37aef6(0x1e5)][_0x37aef6(0x1f3)](_0x2421a8);}[_0x2f1639(0x1e4)](_0x15781){const _0x330eaf=_0x2f1639;this[_0x330eaf(0x1e7)][_0x330eaf(0x1e5)][_0x330eaf(0x202)](_0x15781);}[_0x2f1639(0x1b2)](){const _0x2741db=_0x2f1639,_0x20c51f=new _0x14337a(this[_0x2741db(0x1d4)]),_0x26cf0a=new _0x41183f(_0x2741db(0x1b3));_0x26cf0a[_0x2741db(0x1ad)]=!0x0;const _0xedd5ca=new _0x14337a(this[_0x2741db(0x1d4)]);return _0xedd5ca[_0x2741db(0x1bf)]({'tag':_0x2741db(0x1bd),'attributes':{'class':['ck',_0x2741db(0x201)]},'children':[_0x4469c5(this[_0x2741db(0x1d4)],_0x2741db(0x1d8))]}),_0x20c51f[_0x2741db(0x1bf)]({'tag':_0x2741db(0x1dc),'attributes':{'class':['ck',_0x2741db(0x1b4),this[_0x2741db(0x1ef)]['if'](_0x2741db(0x1f8),_0x2741db(0x1fe),_0x320eb2=>!_0x320eb2)]},'children':[_0x26cf0a,_0xedd5ca]}),_0x20c51f;}[_0x2f1639(0x1d9)](){const _0x50ee22=_0x2f1639,_0x39c467=new _0x14337a(this[_0x50ee22(0x1d4)]),_0x73db87=new _0x14337a(this[_0x50ee22(0x1d4)]);return _0x73db87[_0x50ee22(0x1bf)]({'tag':_0x50ee22(0x1bd),'attributes':{'class':['ck',_0x50ee22(0x1f0)]},'children':[_0x4469c5(this[_0x50ee22(0x1d4)],_0x50ee22(0x1b9))]}),_0x39c467[_0x50ee22(0x1bf)]({'tag':_0x50ee22(0x1dc),'attributes':{'class':['ck',_0x50ee22(0x1d7),this[_0x50ee22(0x1ef)]['if'](_0x50ee22(0x1c8),_0x50ee22(0x1fe),_0x2d5f32=>!_0x2d5f32)]},'children':[_0x73db87]}),_0x39c467;}}export class AIWebSourcesView extends _0x14337a{[_0x2f1639(0x1ce)];constructor(_0xe84acd){const _0x53d278=_0x2f1639;super(_0xe84acd),this[_0x53d278(0x1ce)]=this[_0x53d278(0x1c3)](),this[_0x53d278(0x1b0)](_0x53d278(0x1ad),!0x1),this[_0x53d278(0x1bf)]({'tag':_0x53d278(0x1dc),'attributes':{'class':['ck',_0x53d278(0x1bb),this[_0x53d278(0x1ef)]['if'](_0x53d278(0x1ad),_0x53d278(0x1fe),_0x22b906=>!_0x22b906)]},'children':this[_0x53d278(0x1ce)]});const _0x934bb0=new _0x14337a(this[_0x53d278(0x1d4)]),_0x1f21ef=new _0x19cc7e();_0x1f21ef[_0x53d278(0x1f7)]=_0x6e63c3,_0x934bb0[_0x53d278(0x1bf)]({'tag':_0x53d278(0x1dc),'attributes':{'class':['ck',_0x53d278(0x1f2)]},'children':[_0x1f21ef,{'tag':_0x53d278(0x1bd),'children':[{'text':_0x4469c5(this[_0x53d278(0x1d4)],_0x53d278(0x1c7))}]}]}),this[_0x53d278(0x1ce)][_0x53d278(0x1f3)](_0x934bb0);}}export class AIWebSourceView extends _0x11c48b{constructor(_0x545354,_0xea0a52){const _0x535b7e=_0x2f1639;super(_0x545354),this[_0x535b7e(0x1b0)]({'label':_0xea0a52[_0x535b7e(0x1eb)],'tooltip':_0xea0a52[_0x535b7e(0x1eb)],'class':[_0x535b7e(0x1ea)],'withText':!0x0});const _0x597166=this[_0x535b7e(0x1ef)];if(this[_0x535b7e(0x1c2)]({'on':{'click':_0x597166['to'](()=>{const _0x5c1be7=_0x535b7e;window[_0x5c1be7(0x1ed)](_0xea0a52[_0x5c1be7(0x1c5)],_0x5c1be7(0x1da));})}}),_0xea0a52[_0x535b7e(0x1ff)]){const _0x176644=new _0x14337a(_0x545354);_0x176644[_0x535b7e(0x1bf)]({'tag':_0x535b7e(0x1fb),'attributes':{'src':_0xea0a52[_0x535b7e(0x1ff)]||_0x6e63c3,'alt':_0xea0a52[_0x535b7e(0x1eb)],'class':[_0x535b7e(0x1fa)]}}),this[_0x535b7e(0x1ce)][_0x535b7e(0x1f3)](_0x176644);}else this[_0x535b7e(0x1b0)](_0x535b7e(0x1db),_0x6e63c3);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x532247=_0x609e;(function(_0x1e918e,_0x1ea3bd){const _0x312e46=_0x609e,_0x15f12e=_0x1e918e();while(!![]){try{const _0x564233=-parseInt(_0x312e46(0xa5))/0x1*(parseInt(_0x312e46(0x85))/0x2)+-parseInt(_0x312e46(0xd2))/0x3*(parseInt(_0x312e46(0x83))/0x4)+parseInt(_0x312e46(0xae))/0x5+-parseInt(_0x312e46(0x9a))/0x6*(-parseInt(_0x312e46(0xb6))/0x7)+-parseInt(_0x312e46(0xcc))/0x8+-parseInt(_0x312e46(0x8d))/0x9*(parseInt(_0x312e46(0x8f))/0xa)+parseInt(_0x312e46(0x91))/0xb;if(_0x564233===_0x1ea3bd)break;else _0x15f12e['push'](_0x15f12e['shift']());}catch(_0x39e7f4){_0x15f12e['push'](_0x15f12e['shift']());}}}(_0x5d95,0x1c234));import{View as _0x16e8a3,IconView as _0x14bdc4,ToolbarView as _0xabb058,ButtonView as _0x152df8}from'ckeditor5/src/ui.js';import{IconAddComment as _0x292784,IconDocumentWithLoupe as _0x10b5cf,IconDocumentWithCheckmark as _0x42a932,IconDocumentWithCross as _0x104d55,IconRemove as _0x599cee,IconThreeStars as _0x371835}from'ckeditor5/src/icons.js';function _0x609e(_0x3aba58,_0x20e0dd){const _0x5d95d9=_0x5d95();return _0x609e=function(_0x609eb8,_0x315ccb){_0x609eb8=_0x609eb8-0x81;let _0x15b15f=_0x5d95d9[_0x609eb8];return _0x15b15f;},_0x609e(_0x3aba58,_0x20e0dd);}function _0x5d95(){const _0x59faeb=['updateContent','ck-ai-suggestion__body__content-part__content','283508AqilHd','ck-ai-suggestion__body__content-part_active','42740pvmvIb','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','_iconStateRejected','rejected','state','AI_SUGGESTION_CONTENT_PART_REJECTED','createCollection','ck-ai-suggestion__body__content-part__icon-title','6867eSrmlP','setTemplate','1010vzcGdu','stream','1673837EGmjsG','toString','streaming','AI_SUGGESTION_CONTENT_PART_DELETE','_iconStateOutdated','children','ck-ai-suggestion__body__content-part_','accepted','animation:\x20ck-html-streamer-fade-in\x20.5s','1578EnndRq','pending','remove','innerHTML','AI_SUGGESTION_CONTENT_PART_TITLE','ck-hidden','includes','insertSuggestion','fire','rejectSuggestion','change:state','5QtescS','extendTemplate','headerView','ck-reset_all-excluded','ck-ai-suggestion__body__content-part','div','outdated','showChangeInText','isVisible','867135svILxE','hasChanges','push','element','ck-ai-suggestion__body__content-part__icon-accepted','_iconStateAccepted','_toolbarView','isEnabled','4501FyqxTF','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','execute','htmlStreamer','AI_SUGGESTION_CONTENT_PART_OUTDATED','toggleHeader','contentView','ck-content','delegate','bind','ck-ai-suggestion__body__content-part__icon-outdated','mouseLeaveSuggestion','content','items','mouseOverSuggestion','span','ck-ai-suggestion__body__content-part__title','ck-ai-suggestion__body__content-part__icon-rejected','partDefinition','bindTemplate','index','set','997288feotQP','add','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','ck-ai-suggestion__body__content-part__title__label','has','addMany','3grquJe'];_0x5d95=function(){return _0x59faeb;};return _0x5d95();}import{HTMLStreamer as _0x14229e}from'../../utils/htmlstreamer.js';import{getTranslation as _0x44310e}from'../../utils/common-translations.js';import{serialize as _0x465646}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x35e375}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0x16e8a3{[_0x532247(0xb9)];[_0x532247(0x96)];[_0x532247(0xa7)];[_0x532247(0xbc)];constructor(_0x50fc1e,{part:_0x3a7d98,uiIndex:_0x2b0ecb,areActionsDisabled:_0x333631,availableActions:_0x43bd31}){const _0x3c315f=_0x532247;super(_0x50fc1e),this[_0x3c315f(0xcb)](_0x3c315f(0xc8),_0x3a7d98),this[_0x3c315f(0xcb)](_0x3c315f(0x89),_0x3c315f(0x9b)),this[_0x3c315f(0xcb)](_0x3c315f(0xad),!0x1),this[_0x3c315f(0xbf)](_0x3c315f(0xb5))['to'](this,_0x3c315f(0x89),_0x52debf=>_0x3c315f(0x9b)==_0x52debf&&!_0x333631),this[_0x3c315f(0x96)]=this[_0x3c315f(0x8b)](),this[_0x3c315f(0xb9)]=new _0x14229e({'textNodeStyle':_0x3c315f(0x99),'delay':0x14}),this[_0x3c315f(0xa7)]=new Un(_0x50fc1e,{'part':_0x3a7d98,'uiIndex':_0x2b0ecb,'availableActions':_0x43bd31}),this[_0x3c315f(0xa7)][_0x3c315f(0xbf)](_0x3c315f(0xc8))['to'](this),this[_0x3c315f(0xa7)][_0x3c315f(0xbf)](_0x3c315f(0xb5))['to'](this),this[_0x3c315f(0xa7)][_0x3c315f(0xbf)](_0x3c315f(0x89))['to'](this),this[_0x3c315f(0xa7)][_0x3c315f(0xbe)](..._0x35e375)['to'](this);const _0x4f17b9=this[_0x3c315f(0xc9)];this[_0x3c315f(0xbc)]=new _0x16e8a3(),this[_0x3c315f(0xbc)][_0x3c315f(0x8e)]({'tag':_0x3c315f(0xaa),'attributes':{'class':['ck',_0x3c315f(0xbd),_0x3c315f(0xa8),_0x3c315f(0x82)]}}),this[_0x3c315f(0x96)][_0x3c315f(0xd1)]([this[_0x3c315f(0xbc)]]),this[_0x3c315f(0x8e)]({'tag':_0x3c315f(0xaa),'attributes':{'class':['ck',_0x3c315f(0xa9),_0x4f17b9['to'](_0x3c315f(0x89),_0x327a96=>_0x3c315f(0x97)+_0x327a96),_0x4f17b9['to'](_0x3c315f(0xb5),_0x8b61b4=>_0x8b61b4?_0x3c315f(0x84):void 0x0),_0x4f17b9['if'](_0x3c315f(0xad),_0x3c315f(0x9f),_0x5928ca=>!_0x5928ca)]},'children':this[_0x3c315f(0x96)],'on':{'mouseenter':_0x4f17b9['to'](()=>{const _0xfdb93b=_0x3c315f;this[_0xfdb93b(0xb5)]&&this[_0xfdb93b(0xa2)](_0xfdb93b(0xc4),{'index':_0x3a7d98[_0xfdb93b(0xca)]});}),'mouseleave':_0x4f17b9['to'](()=>{const _0x5828d4=_0x3c315f;this[_0x5828d4(0xb5)]&&this[_0x5828d4(0xa2)](_0x5828d4(0xc1),{'index':_0x3a7d98[_0x5828d4(0xca)]});})}});}async[_0x532247(0x81)]({part:_0x533779,renderingStrategy:_0x29930f,showUnchangedParts:_0x4c93bf=!0x1,abortSignal:_0x7545f1}){const _0x1d4b44=_0x532247;this[_0x1d4b44(0xc8)]=_0x533779,this[_0x1d4b44(0xad)]=this[_0x1d4b44(0xc8)][_0x1d4b44(0xaf)]||_0x4c93bf,this[_0x1d4b44(0xad)]&&(_0x1d4b44(0x93)===_0x29930f?await this[_0x1d4b44(0xb9)][_0x1d4b44(0x90)]({'document':this[_0x1d4b44(0xc8)][_0x1d4b44(0xc2)],'targetElement':this[_0x1d4b44(0xbc)][_0x1d4b44(0xb1)],'abortSignal':_0x7545f1}):this[_0x1d4b44(0xbc)][_0x1d4b44(0xb1)][_0x1d4b44(0x9d)]=_0x465646(this[_0x1d4b44(0xc8)][_0x1d4b44(0xc2)]));}[_0x532247(0xbb)](_0x21ac7c){const _0x452aa7=_0x532247;_0x21ac7c?this[_0x452aa7(0x96)][_0x452aa7(0xd0)](this[_0x452aa7(0xa7)])||this[_0x452aa7(0x96)][_0x452aa7(0xcd)](this[_0x452aa7(0xa7)],0x0):this[_0x452aa7(0x96)][_0x452aa7(0xd0)](this[_0x452aa7(0xa7)])&&this[_0x452aa7(0x96)][_0x452aa7(0x9c)](this[_0x452aa7(0xa7)]);}}class Un extends _0x16e8a3{[_0x532247(0x96)];[_0x532247(0xb4)];[_0x532247(0xb3)];[_0x532247(0x87)];[_0x532247(0x95)];constructor(_0x853343,{part:_0x39204a,uiIndex:_0x37de63,availableActions:_0x1fcd37}){const _0x4e47f9=_0x532247;super(_0x853343),this[_0x4e47f9(0xcb)](_0x4e47f9(0xc8),_0x39204a),this[_0x4e47f9(0xcb)](_0x4e47f9(0xb5),!0x0),this[_0x4e47f9(0xcb)](_0x4e47f9(0x89),_0x4e47f9(0x9b));const _0x1f2413=new _0x14bdc4();_0x1f2413[_0x4e47f9(0xc2)]=_0x371835,_0x1f2413[_0x4e47f9(0xa6)]({'attributes':{'class':[_0x4e47f9(0x8c)]}});const _0x311d6d=[];if(_0x1fcd37[_0x4e47f9(0xa0)](_0x4e47f9(0xac))){const _0x2efe95=new _0x152df8(_0x853343);_0x2efe95[_0x4e47f9(0xcb)]({'label':_0x44310e(_0x853343,_0x4e47f9(0xce)),'tooltip':!0x0,'withText':!0x1,'icon':_0x10b5cf}),_0x2efe95[_0x4e47f9(0xbf)](_0x4e47f9(0xb5))['to'](this),_0x2efe95['on'](_0x4e47f9(0xb8),()=>{const _0x4f5b52=_0x4e47f9;this[_0x4f5b52(0xa2)](_0x4f5b52(0xac),{'index':_0x39204a[_0x4f5b52(0xca)]});}),_0x311d6d[_0x4e47f9(0xb0)](_0x2efe95);}if(_0x1fcd37[_0x4e47f9(0xa0)](_0x4e47f9(0xa1))){const _0x107056=new _0x152df8(_0x853343);_0x107056[_0x4e47f9(0xcb)]({'label':_0x44310e(_0x853343,_0x4e47f9(0xb7)),'tooltip':!0x0,'withText':!0x1,'icon':_0x292784}),_0x107056[_0x4e47f9(0xbf)](_0x4e47f9(0xb5))['to'](this),_0x107056['on'](_0x4e47f9(0xb8),()=>{const _0x23d225=_0x4e47f9;this[_0x23d225(0xa2)](_0x23d225(0xa1),{'index':_0x39204a[_0x23d225(0xca)]});}),_0x311d6d[_0x4e47f9(0xb0)](_0x107056);}const _0x1267bf=new _0x152df8(_0x853343);_0x1267bf[_0x4e47f9(0xcb)]({'label':_0x44310e(_0x853343,_0x4e47f9(0x94)),'tooltip':!0x0,'withText':!0x1,'icon':_0x599cee}),_0x1267bf[_0x4e47f9(0xbf)](_0x4e47f9(0xb5))['to'](this),_0x1267bf['on'](_0x4e47f9(0xb8),()=>{const _0x4e9649=_0x4e47f9;this[_0x4e9649(0xa2)](_0x4e9649(0xa3),{'index':_0x39204a[_0x4e9649(0xca)]});}),_0x311d6d[_0x4e47f9(0xb0)](_0x1267bf),this[_0x4e47f9(0xb4)]=new _0xabb058(_0x853343),this[_0x4e47f9(0xb4)][_0x4e47f9(0xc3)][_0x4e47f9(0xd1)](_0x311d6d),this[_0x4e47f9(0xb3)]=new _0x14bdc4(),this[_0x4e47f9(0xb3)][_0x4e47f9(0xc2)]=_0x42a932,this[_0x4e47f9(0xb3)][_0x4e47f9(0xa6)]({'attributes':{'class':[_0x4e47f9(0xb2)],'data-cke-tooltip-text':_0x44310e(_0x853343,_0x4e47f9(0x86)),'data-cke-tooltip-position':'n'}}),this[_0x4e47f9(0x87)]=new _0x14bdc4(),this[_0x4e47f9(0x87)][_0x4e47f9(0xc2)]=_0x104d55,this[_0x4e47f9(0x87)][_0x4e47f9(0xa6)]({'attributes':{'class':[_0x4e47f9(0xc7)],'data-cke-tooltip-text':_0x44310e(_0x853343,_0x4e47f9(0x8a)),'data-cke-tooltip-position':'n'}}),this[_0x4e47f9(0x95)]=new _0x14bdc4(),this[_0x4e47f9(0x95)][_0x4e47f9(0xc2)]=_0x104d55,this[_0x4e47f9(0x95)][_0x4e47f9(0xa6)]({'attributes':{'class':[_0x4e47f9(0xc0)],'data-cke-tooltip-text':_0x44310e(_0x853343,_0x4e47f9(0xba)),'data-cke-tooltip-position':'n'}});const _0x38bf82=new _0x16e8a3(_0x853343);_0x38bf82[_0x4e47f9(0x8e)]({'tag':_0x4e47f9(0xc5),'attributes':{'class':['ck',_0x4e47f9(0xcf)]},'children':[_0x44310e(_0x853343,_0x4e47f9(0x9e),_0x37de63[_0x4e47f9(0x92)]())]}),this[_0x4e47f9(0x96)]=this[_0x4e47f9(0x8b)](),this[_0x4e47f9(0x96)][_0x4e47f9(0xd1)]([_0x1f2413,_0x38bf82,this[_0x4e47f9(0xb4)]]),this[_0x4e47f9(0x8e)]({'tag':_0x4e47f9(0xaa),'attributes':{'class':['ck',_0x4e47f9(0xa8),_0x4e47f9(0xc6)]},'children':this[_0x4e47f9(0x96)]}),this['on'](_0x4e47f9(0xa4),(_0x196f38,_0x19754a,_0x2373ad,_0x34e6b8)=>{const _0x3031db=_0x4e47f9;switch(_0x34e6b8){case _0x3031db(0x9b):this[_0x3031db(0x96)][_0x3031db(0x9c)](this[_0x3031db(0xb4)]);break;case _0x3031db(0x98):this[_0x3031db(0x96)][_0x3031db(0x9c)](this[_0x3031db(0xb3)]);break;case _0x3031db(0x88):this[_0x3031db(0x96)][_0x3031db(0x9c)](this[_0x3031db(0x87)]);break;case _0x3031db(0xab):this[_0x3031db(0x96)][_0x3031db(0x9c)](this[_0x3031db(0x95)]);}switch(_0x2373ad){case _0x3031db(0x9b):this[_0x3031db(0x96)][_0x3031db(0xcd)](this[_0x3031db(0xb4)]);break;case _0x3031db(0x98):this[_0x3031db(0x96)][_0x3031db(0xcd)](this[_0x3031db(0xb3)]);break;case _0x3031db(0x88):this[_0x3031db(0x96)][_0x3031db(0xcd)](this[_0x3031db(0x87)]);break;case _0x3031db(0xab):this[_0x3031db(0x96)][_0x3031db(0xcd)](this[_0x3031db(0x95)]);}});}}
|
|
23
|
+
function _0x6bc4(_0x8099d0,_0x209258){const _0x346a33=_0x346a();return _0x6bc4=function(_0x6bc4b4,_0x554422){_0x6bc4b4=_0x6bc4b4-0xcd;let _0x56e964=_0x346a33[_0x6bc4b4];return _0x56e964;},_0x6bc4(_0x8099d0,_0x209258);}const _0x156108=_0x6bc4;(function(_0x52b7cc,_0xdd4d8f){const _0x5e2d01=_0x6bc4,_0x18daf4=_0x52b7cc();while(!![]){try{const _0x11a7a3=parseInt(_0x5e2d01(0x107))/0x1+parseInt(_0x5e2d01(0x113))/0x2+parseInt(_0x5e2d01(0x11a))/0x3*(parseInt(_0x5e2d01(0xd8))/0x4)+-parseInt(_0x5e2d01(0x109))/0x5*(parseInt(_0x5e2d01(0xcf))/0x6)+-parseInt(_0x5e2d01(0xda))/0x7*(parseInt(_0x5e2d01(0xcd))/0x8)+parseInt(_0x5e2d01(0x101))/0x9+-parseInt(_0x5e2d01(0x105))/0xa;if(_0x11a7a3===_0xdd4d8f)break;else _0x18daf4['push'](_0x18daf4['shift']());}catch(_0x12300a){_0x18daf4['push'](_0x18daf4['shift']());}}}(_0x346a,0xc3be7));import{View as _0x5343f6,IconView as _0x5a9b5c,ToolbarView as _0xa03e44,ButtonView as _0x1328f9}from'ckeditor5/src/ui.js';import{IconAddComment as _0x485ca3,IconDocumentWithLoupe as _0x37a4a7,IconDocumentWithCheckmark as _0x1795e6,IconDocumentWithCross as _0x447a9f,IconRemove as _0x3a2abb,IconThreeStars as _0x39905a}from'ckeditor5/src/icons.js';import{HTMLStreamer as _0x530a9f}from'../../utils/htmlstreamer.js';import{getTranslation as _0x1f3326}from'../../utils/common-translations.js';import{serialize as _0x30aab2}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x1db1ad}from'../../utils/eventnames.js';function _0x346a(){const _0x55e2ba=['_iconStateAccepted','insertSuggestion','_iconStateRejected','ck-ai-suggestion__body__content-part__icon-title','333ldHwOe','ck-ai-suggestion__body__content-part_active','mouseLeaveSuggestion','extendTemplate','27248Mjxtxi','element','12lgqvdx','push','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','items','ck-ai-suggestion__body__content-part__content','ck-ai-suggestion__body__content-part__icon-rejected','has','AI_SUGGESTION_CONTENT_PART_DELETE','toString','9788lHuCcV','execute','1246eQOIuf','createCollection','ck-content','headerView','ck-ai-suggestion__body__content-part','addMany','state','showChangeInText','ck-ai-suggestion__body__content-part__icon-accepted','includes','updateContent','_iconStateOutdated','index','ck-ai-suggestion__body__content-part__title__label','delegate','bind','streaming','accepted','pending','toggleHeader','div','htmlStreamer','contentView','AI_SUGGESTION_CONTENT_PART_TITLE','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','rejected','stream','ck-ai-suggestion__body__content-part__title','span','ck-ai-suggestion__body__content-part_','add','bindTemplate','innerHTML','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','set','ck-hidden','change:state','mouseOverSuggestion','remove','713016lRhQxZ','ck-ai-suggestion__body__content-part__icon-outdated','content','AI_SUGGESTION_CONTENT_PART_REJECTED','264020SPwthV','AI_SUGGESTION_CONTENT_PART_OUTDATED','1143633vVlGNv','partDefinition','471895SOlMUy','hasChanges','outdated','ck-reset_all-excluded','children','fire','isVisible','_toolbarView','animation:\x20ck-html-streamer-fade-in\x20.5s','rejectSuggestion','257442OmSpwT','isEnabled','setTemplate'];_0x346a=function(){return _0x55e2ba;};return _0x346a();}export class AISuggestionBodyViewContentPartView extends _0x5343f6{[_0x156108(0xef)];[_0x156108(0x10d)];[_0x156108(0xdd)];[_0x156108(0xf0)];constructor(_0x4e8278,{part:_0x18e4e6,uiIndex:_0x6479a8,areActionsDisabled:_0x7f135e,availableActions:_0x15fd47}){const _0x1ba3aa=_0x156108;super(_0x4e8278),this[_0x1ba3aa(0xfc)](_0x1ba3aa(0x108),_0x18e4e6),this[_0x1ba3aa(0xfc)](_0x1ba3aa(0xe0),_0x1ba3aa(0xec)),this[_0x1ba3aa(0xfc)](_0x1ba3aa(0x10f),!0x1),this[_0x1ba3aa(0xe9)](_0x1ba3aa(0x114))['to'](this,_0x1ba3aa(0xe0),_0x4e36c2=>_0x1ba3aa(0xec)==_0x4e36c2&&!_0x7f135e),this[_0x1ba3aa(0x10d)]=this[_0x1ba3aa(0xdb)](),this[_0x1ba3aa(0xef)]=new _0x530a9f({'textNodeStyle':_0x1ba3aa(0x111),'delay':0x14}),this[_0x1ba3aa(0xdd)]=new Un(_0x4e8278,{'part':_0x18e4e6,'uiIndex':_0x6479a8,'availableActions':_0x15fd47}),this[_0x1ba3aa(0xdd)][_0x1ba3aa(0xe9)](_0x1ba3aa(0x108))['to'](this),this[_0x1ba3aa(0xdd)][_0x1ba3aa(0xe9)](_0x1ba3aa(0x114))['to'](this),this[_0x1ba3aa(0xdd)][_0x1ba3aa(0xe9)](_0x1ba3aa(0xe0))['to'](this),this[_0x1ba3aa(0xdd)][_0x1ba3aa(0xe8)](..._0x1db1ad)['to'](this);const _0x458798=this[_0x1ba3aa(0xf9)];this[_0x1ba3aa(0xf0)]=new _0x5343f6(),this[_0x1ba3aa(0xf0)][_0x1ba3aa(0x115)]({'tag':_0x1ba3aa(0xee),'attributes':{'class':['ck',_0x1ba3aa(0xdc),_0x1ba3aa(0x10c),_0x1ba3aa(0xd3)]}}),this[_0x1ba3aa(0x10d)][_0x1ba3aa(0xdf)]([this[_0x1ba3aa(0xf0)]]),this[_0x1ba3aa(0x115)]({'tag':_0x1ba3aa(0xee),'attributes':{'class':['ck',_0x1ba3aa(0xde),_0x458798['to'](_0x1ba3aa(0xe0),_0x474033=>_0x1ba3aa(0xf7)+_0x474033),_0x458798['to'](_0x1ba3aa(0x114),_0x1d459d=>_0x1d459d?_0x1ba3aa(0x11b):void 0x0),_0x458798['if'](_0x1ba3aa(0x10f),_0x1ba3aa(0xfd),_0x2a7176=>!_0x2a7176)]},'children':this[_0x1ba3aa(0x10d)],'on':{'mouseenter':_0x458798['to'](()=>{const _0x5338ed=_0x1ba3aa;this[_0x5338ed(0x114)]&&this[_0x5338ed(0x10e)](_0x5338ed(0xff),{'index':_0x18e4e6[_0x5338ed(0xe6)]});}),'mouseleave':_0x458798['to'](()=>{const _0x24582e=_0x1ba3aa;this[_0x24582e(0x114)]&&this[_0x24582e(0x10e)](_0x24582e(0x11c),{'index':_0x18e4e6[_0x24582e(0xe6)]});})}});}async[_0x156108(0xe4)]({part:_0x4d6da7,renderingStrategy:_0x4b1141,showUnchangedParts:_0x4c5ca6=!0x1,abortSignal:_0x2163f5}){const _0x5e2e59=_0x156108;this[_0x5e2e59(0x108)]=_0x4d6da7,this[_0x5e2e59(0x10f)]=this[_0x5e2e59(0x108)][_0x5e2e59(0x10a)]||_0x4c5ca6,this[_0x5e2e59(0x10f)]&&(_0x5e2e59(0xea)===_0x4b1141?await this[_0x5e2e59(0xef)][_0x5e2e59(0xf4)]({'document':this[_0x5e2e59(0x108)][_0x5e2e59(0x103)],'targetElement':this[_0x5e2e59(0xf0)][_0x5e2e59(0xce)],'abortSignal':_0x2163f5}):this[_0x5e2e59(0xf0)][_0x5e2e59(0xce)][_0x5e2e59(0xfa)]=_0x30aab2(this[_0x5e2e59(0x108)][_0x5e2e59(0x103)]));}[_0x156108(0xed)](_0x3d832d){const _0x417646=_0x156108;_0x3d832d?this[_0x417646(0x10d)][_0x417646(0xd5)](this[_0x417646(0xdd)])||this[_0x417646(0x10d)][_0x417646(0xf8)](this[_0x417646(0xdd)],0x0):this[_0x417646(0x10d)][_0x417646(0xd5)](this[_0x417646(0xdd)])&&this[_0x417646(0x10d)][_0x417646(0x100)](this[_0x417646(0xdd)]);}}class Un extends _0x5343f6{[_0x156108(0x10d)];[_0x156108(0x110)];[_0x156108(0x116)];[_0x156108(0x118)];[_0x156108(0xe5)];constructor(_0x209083,{part:_0x3caddb,uiIndex:_0x20d57d,availableActions:_0x1cbeea}){const _0x1f51df=_0x156108;super(_0x209083),this[_0x1f51df(0xfc)](_0x1f51df(0x108),_0x3caddb),this[_0x1f51df(0xfc)](_0x1f51df(0x114),!0x0),this[_0x1f51df(0xfc)](_0x1f51df(0xe0),_0x1f51df(0xec));const _0x8c508c=new _0x5a9b5c();_0x8c508c[_0x1f51df(0x103)]=_0x39905a,_0x8c508c[_0x1f51df(0x11d)]({'attributes':{'class':[_0x1f51df(0x119)]}});const _0x19140c=[];if(_0x1cbeea[_0x1f51df(0xe3)](_0x1f51df(0xe1))){const _0x3d242d=new _0x1328f9(_0x209083);_0x3d242d[_0x1f51df(0xfc)]({'label':_0x1f3326(_0x209083,_0x1f51df(0xfb)),'tooltip':!0x0,'withText':!0x1,'icon':_0x37a4a7}),_0x3d242d[_0x1f51df(0xe9)](_0x1f51df(0x114))['to'](this),_0x3d242d['on'](_0x1f51df(0xd9),()=>{const _0x3f3b59=_0x1f51df;this[_0x3f3b59(0x10e)](_0x3f3b59(0xe1),{'index':_0x3caddb[_0x3f3b59(0xe6)]});}),_0x19140c[_0x1f51df(0xd0)](_0x3d242d);}if(_0x1cbeea[_0x1f51df(0xe3)](_0x1f51df(0x117))){const _0x25e7c4=new _0x1328f9(_0x209083);_0x25e7c4[_0x1f51df(0xfc)]({'label':_0x1f3326(_0x209083,_0x1f51df(0xf2)),'tooltip':!0x0,'withText':!0x1,'icon':_0x485ca3}),_0x25e7c4[_0x1f51df(0xe9)](_0x1f51df(0x114))['to'](this),_0x25e7c4['on'](_0x1f51df(0xd9),()=>{const _0x4aa7db=_0x1f51df;this[_0x4aa7db(0x10e)](_0x4aa7db(0x117),{'index':_0x3caddb[_0x4aa7db(0xe6)]});}),_0x19140c[_0x1f51df(0xd0)](_0x25e7c4);}const _0x2cffbc=new _0x1328f9(_0x209083);_0x2cffbc[_0x1f51df(0xfc)]({'label':_0x1f3326(_0x209083,_0x1f51df(0xd6)),'tooltip':!0x0,'withText':!0x1,'icon':_0x3a2abb}),_0x2cffbc[_0x1f51df(0xe9)](_0x1f51df(0x114))['to'](this),_0x2cffbc['on'](_0x1f51df(0xd9),()=>{const _0x3536e2=_0x1f51df;this[_0x3536e2(0x10e)](_0x3536e2(0x112),{'index':_0x3caddb[_0x3536e2(0xe6)]});}),_0x19140c[_0x1f51df(0xd0)](_0x2cffbc),this[_0x1f51df(0x110)]=new _0xa03e44(_0x209083),this[_0x1f51df(0x110)][_0x1f51df(0xd2)][_0x1f51df(0xdf)](_0x19140c),this[_0x1f51df(0x116)]=new _0x5a9b5c(),this[_0x1f51df(0x116)][_0x1f51df(0x103)]=_0x1795e6,this[_0x1f51df(0x116)][_0x1f51df(0x11d)]({'attributes':{'class':[_0x1f51df(0xe2)],'data-cke-tooltip-text':_0x1f3326(_0x209083,_0x1f51df(0xd1)),'data-cke-tooltip-position':'n'}}),this[_0x1f51df(0x118)]=new _0x5a9b5c(),this[_0x1f51df(0x118)][_0x1f51df(0x103)]=_0x447a9f,this[_0x1f51df(0x118)][_0x1f51df(0x11d)]({'attributes':{'class':[_0x1f51df(0xd4)],'data-cke-tooltip-text':_0x1f3326(_0x209083,_0x1f51df(0x104)),'data-cke-tooltip-position':'n'}}),this[_0x1f51df(0xe5)]=new _0x5a9b5c(),this[_0x1f51df(0xe5)][_0x1f51df(0x103)]=_0x447a9f,this[_0x1f51df(0xe5)][_0x1f51df(0x11d)]({'attributes':{'class':[_0x1f51df(0x102)],'data-cke-tooltip-text':_0x1f3326(_0x209083,_0x1f51df(0x106)),'data-cke-tooltip-position':'n'}});const _0x11b94b=new _0x5343f6(_0x209083);_0x11b94b[_0x1f51df(0x115)]({'tag':_0x1f51df(0xf6),'attributes':{'class':['ck',_0x1f51df(0xe7)]},'children':[_0x1f3326(_0x209083,_0x1f51df(0xf1),_0x20d57d[_0x1f51df(0xd7)]())]}),this[_0x1f51df(0x10d)]=this[_0x1f51df(0xdb)](),this[_0x1f51df(0x10d)][_0x1f51df(0xdf)]([_0x8c508c,_0x11b94b,this[_0x1f51df(0x110)]]),this[_0x1f51df(0x115)]({'tag':_0x1f51df(0xee),'attributes':{'class':['ck',_0x1f51df(0x10c),_0x1f51df(0xf5)]},'children':this[_0x1f51df(0x10d)]}),this['on'](_0x1f51df(0xfe),(_0x3a2bb4,_0x5e7947,_0x320a0d,_0x5d3fd4)=>{const _0x4348c6=_0x1f51df;switch(_0x5d3fd4){case _0x4348c6(0xec):this[_0x4348c6(0x10d)][_0x4348c6(0x100)](this[_0x4348c6(0x110)]);break;case _0x4348c6(0xeb):this[_0x4348c6(0x10d)][_0x4348c6(0x100)](this[_0x4348c6(0x116)]);break;case _0x4348c6(0xf3):this[_0x4348c6(0x10d)][_0x4348c6(0x100)](this[_0x4348c6(0x118)]);break;case _0x4348c6(0x10b):this[_0x4348c6(0x10d)][_0x4348c6(0x100)](this[_0x4348c6(0xe5)]);}switch(_0x320a0d){case _0x4348c6(0xec):this[_0x4348c6(0x10d)][_0x4348c6(0xf8)](this[_0x4348c6(0x110)]);break;case _0x4348c6(0xeb):this[_0x4348c6(0x10d)][_0x4348c6(0xf8)](this[_0x4348c6(0x116)]);break;case _0x4348c6(0xf3):this[_0x4348c6(0x10d)][_0x4348c6(0xf8)](this[_0x4348c6(0x118)]);break;case _0x4348c6(0x10b):this[_0x4348c6(0x10d)][_0x4348c6(0xf8)](this[_0x4348c6(0xe5)]);}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0xac84(_0xee1e47,_0x2f4178){const _0x502143=_0x5021();return _0xac84=function(_0xac84e6,_0x5f066e){_0xac84e6=_0xac84e6-0x15c;let _0x3375e1=_0x502143[_0xac84e6];return _0x3375e1;},_0xac84(_0xee1e47,_0x2f4178);}const _0x1f0597=_0xac84;(function(_0x265e65,_0x246208){const _0x267ff8=_0xac84,_0x193f36=_0x265e65();while(!![]){try{const _0x2c9599=-parseInt(_0x267ff8(0x16b))/0x1*(parseInt(_0x267ff8(0x170))/0x2)+-parseInt(_0x267ff8(0x162))/0x3*(-parseInt(_0x267ff8(0x173))/0x4)+-parseInt(_0x267ff8(0x16d))/0x5*(parseInt(_0x267ff8(0x175))/0x6)+-parseInt(_0x267ff8(0x171))/0x7*(-parseInt(_0x267ff8(0x16f))/0x8)+parseInt(_0x267ff8(0x182))/0x9*(-parseInt(_0x267ff8(0x167))/0xa)+parseInt(_0x267ff8(0x17e))/0xb*(parseInt(_0x267ff8(0x15f))/0xc)+-parseInt(_0x267ff8(0x178))/0xd*(-parseInt(_0x267ff8(0x17a))/0xe);if(_0x2c9599===_0x246208)break;else _0x193f36['push'](_0x193f36['shift']());}catch(_0x15a598){_0x193f36['push'](_0x193f36['shift']());}}}(_0x5021,0xa654b));import{getTranslation as _0x253017}from'../../utils/common-translations.js';import{ButtonView as _0x3e6a92,IconView as _0x47886f,View as _0xdceaee}from'ckeditor5/src/ui.js';import{IconDocument as _0xd9a1ac,IconShowChangesOff as _0x5e88c7,IconShowChangesOn as _0x31ec15}from'ckeditor5/src/icons.js';export class AISuggestionHeaderView extends _0xdceaee{[_0x1f0597(0x15e)];constructor(_0x37d9b2,_0x188a84){const _0x3fc7ef=_0x1f0597;super(_0x37d9b2),this[_0x3fc7ef(0x184)](_0x3fc7ef(0x172),!0x0),this[_0x3fc7ef(0x15e)]=new ShowChangesToggleView(_0x37d9b2),this[_0x3fc7ef(0x15e)][_0x3fc7ef(0x184)]({'class':_0x3fc7ef(0x165),'label':_0x253017(_0x37d9b2,_0x3fc7ef(0x160)),'withText':!0x0}),this[_0x3fc7ef(0x15e)][_0x3fc7ef(0x183)]=_0x188a84[_0x3fc7ef(0x16c)],this[_0x3fc7ef(0x15e)][_0x3fc7ef(0x17f)](_0x3fc7ef(0x16a))['to'](this,_0x3fc7ef(0x172)),this[_0x3fc7ef(0x15e)][_0x3fc7ef(0x17f)](_0x3fc7ef(0x17b))['to'](this[_0x3fc7ef(0x15e)],_0x3fc7ef(0x183),_0x373998=>_0x373998?_0x31ec15:_0x5e88c7),this[_0x3fc7ef(0x15e)]['on'](_0x3fc7ef(0x179),()=>{const _0xab7694=_0x3fc7ef;this[_0xab7694(0x15e)][_0xab7694(0x183)]=!this[_0xab7694(0x15e)][_0xab7694(0x183)],this[_0xab7694(0x177)](_0xab7694(0x15c),{'isOn':this[_0xab7694(0x15e)][_0xab7694(0x183)]});});const _0xc8f94f=new _0x47886f();_0xc8f94f[_0x3fc7ef(0x16e)]=_0xd9a1ac,this[_0x3fc7ef(0x181)]({'tag':_0x3fc7ef(0x17c),'attributes':{'class':['ck',_0x3fc7ef(0x17d),!0x1===_0x188a84[_0x3fc7ef(0x166)]?_0x3fc7ef(0x163):null][_0x3fc7ef(0x180)](Boolean)},'children':[_0xc8f94f,{'tag':_0x3fc7ef(0x176),'children':[_0x253017(_0x37d9b2,_0x3fc7ef(0x15d))]},this[_0x3fc7ef(0x15e)]]});}}export class ShowChangesToggleView extends _0x3e6a92{[_0x1f0597(0x174)](){const _0x596284=_0x1f0597;super[_0x596284(0x174)](),this[_0x596284(0x169)][_0x596284(0x168)](this[_0x596284(0x164)]),this[_0x596284(0x169)][_0x596284(0x161)](this[_0x596284(0x164)]);}}function _0x5021(){const _0xe865ef=['705951DiyawW','isOn','set','toggleShowChanges','AI_SUGGESTION_HEADER_TITLE','showChangesToggleView','93336JEgpVJ','AI_SUGGESTION_BUTTON_SHOW_CHANGES','add','3849xKlQlH','ck-hidden','iconView','ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button','showHeader','70JADLAL','remove','children','isVisible','1FTVKeD','showDiff','42410feioNO','content','24GKYQkM','2663806dwuvQg','967057RZdPDm','isShowChangesToggleVisible','2184nqMYyG','render','6exPgGs','span','fire','1392417xcksyH','execute','112SoKwrt','icon','div','ck-ai-suggestion__header','847HErTVZ','bind','filter','setTemplate'];_0x5021=function(){return _0xe865ef;};return _0x5021();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49ce54=_0x4a16;function _0x20a2(){const _0x5af584=['102152zIajhJ','forEach','19076120kgOBEY','236hPTCey','4585470cyFqUt','6941949aoSmsC','data','includes','isEqual','288SwFSzU','createAt','nextNode','2608608yqRRrv','start','path','27UxzNKf','parent','lastChild','getNudgedToWordBoundary','length','document','createAfter','createFromPath','108608liwhQp','createBefore','end','reverse','slice','previousNode','5386nBBLuJ','firstChild','getContent','push'];_0x20a2=function(){return _0x5af584;};return _0x20a2();}(function(_0x628604,_0x14599c){const _0x1b6ce4=_0x4a16,_0x10f8eb=_0x628604();while(!![]){try{const _0x2ddd93=parseInt(_0x1b6ce4(0x198))/0x1*(-parseInt(_0x1b6ce4(0x19f))/0x2)+-parseInt(_0x1b6ce4(0x1ab))/0x3*(-parseInt(_0x1b6ce4(0x19c))/0x4)+parseInt(_0x1b6ce4(0x1a0))/0x5+-parseInt(_0x1b6ce4(0x1a8))/0x6+-parseInt(_0x1b6ce4(0x1a1))/0x7+-parseInt(_0x1b6ce4(0x1b3))/0x8*(parseInt(_0x1b6ce4(0x1a5))/0x9)+parseInt(_0x1b6ce4(0x19e))/0xa;if(_0x2ddd93===_0x14599c)break;else _0x10f8eb['push'](_0x10f8eb['shift']());}catch(_0x1ac1bc){_0x10f8eb['push'](_0x10f8eb['shift']());}}}(_0x20a2,0x8840d));import{DocumentPosition as _0x39b0ca}from'./documentposition.js';import{clone as _0x345a7e,getParents as _0xfe1e47,Document as _0x84013e,Text as _0x4e1667,isTag as _0x918168,isText as _0x2510b4,replaceElement as _0x5f44f1,removeElement as _0x34bc2c}from'./htmlparser.js';function _0x4a16(_0x54dda5,_0x2facc0){const _0x20a235=_0x20a2();return _0x4a16=function(_0x4a163f,_0x15905e){_0x4a163f=_0x4a163f-0x193;let _0x3e7bfc=_0x20a235[_0x4a163f];return _0x3e7bfc;},_0x4a16(_0x54dda5,_0x2facc0);}export class DocumentRange{[_0x49ce54(0x1a9)];[_0x49ce54(0x194)];constructor(_0x1d6d02,_0x76bdfa){const _0x2bbecb=_0x49ce54;this[_0x2bbecb(0x1a9)]=_0x1d6d02,this[_0x2bbecb(0x194)]=_0x76bdfa;}[_0x49ce54(0x1a4)](_0x459006){const _0x436109=_0x49ce54;return this==_0x459006||this[_0x436109(0x1a9)][_0x436109(0x1a4)](_0x459006[_0x436109(0x1a9)])&&this[_0x436109(0x194)][_0x436109(0x1a4)](_0x459006[_0x436109(0x194)]);}[_0x49ce54(0x1ae)](){const _0x3f0644=_0x49ce54;return new DocumentRange(this[_0x3f0644(0x1a9)][_0x3f0644(0x1ae)](_0x3f0644(0x1a9)),this[_0x3f0644(0x194)][_0x3f0644(0x1ae)](_0x3f0644(0x194)));}[_0x49ce54(0x19a)](){const _0xa0f46e=_0x49ce54,_0x183fc2=_0x345a7e(this[_0xa0f46e(0x1a9)][_0xa0f46e(0x1b0)]),_0x1389d9=_0x39b0ca[_0xa0f46e(0x1b2)](_0x183fc2,this[_0xa0f46e(0x1a9)][_0xa0f46e(0x1aa)]),_0x51e1a1=_0x39b0ca[_0xa0f46e(0x1b2)](_0x183fc2,this[_0xa0f46e(0x194)][_0xa0f46e(0x1aa)]);let _0xc87dcd,_0x4f4abd;if(_0x2510b4(_0x1389d9[_0xa0f46e(0x1ac)])){const _0x1ef74a=_0x1389d9[_0xa0f46e(0x1aa)][_0x1389d9[_0xa0f46e(0x1aa)][_0xa0f46e(0x1af)]-0x1],_0x368169=new _0x4e1667(_0x1389d9[_0xa0f46e(0x1ac)][_0xa0f46e(0x1a2)][_0xa0f46e(0x196)](_0x1ef74a));_0x5f44f1(_0x1389d9[_0xa0f46e(0x1ac)],_0x368169),_0xc87dcd=_0x368169;}else _0xc87dcd=_0x1389d9[_0xa0f46e(0x1a7)];if(_0x2510b4(_0x51e1a1[_0xa0f46e(0x1ac)])){const _0x3c6b29=_0x51e1a1[_0xa0f46e(0x1aa)][_0x51e1a1[_0xa0f46e(0x1aa)][_0xa0f46e(0x1af)]-0x1],_0x6680e3=new _0x4e1667(_0x51e1a1[_0xa0f46e(0x1ac)][_0xa0f46e(0x1a2)][_0xa0f46e(0x196)](0x0,_0x3c6b29));_0x5f44f1(_0x51e1a1[_0xa0f46e(0x1ac)],_0x6680e3),_0x4f4abd=_0x6680e3;}else _0x4f4abd=_0x51e1a1[_0xa0f46e(0x197)];if(!(_0xc87dcd&&_0x4f4abd&&_0x183fc2[_0xa0f46e(0x199)]&&_0x183fc2[_0xa0f46e(0x1ad)]))return new _0x84013e([]);const _0x3844ac=_0xfe1e47(_0xc87dcd),_0x1461bd=_0xfe1e47(_0x4f4abd),_0x451d9e=[],_0x166969=[];let _0x4dc2f9=_0x183fc2[_0xa0f46e(0x199)];for(;_0x4dc2f9&&_0x4dc2f9!==_0xc87dcd;){let _0x5071c7;_0x3844ac[_0xa0f46e(0x1a3)](_0x4dc2f9)||_0x451d9e[_0xa0f46e(0x19b)](_0x4dc2f9),_0x5071c7=_0x918168(_0x4dc2f9)?_0x39b0ca[_0xa0f46e(0x1a6)](_0x183fc2,_0x4dc2f9,_0xa0f46e(0x1a9)):_0x39b0ca[_0xa0f46e(0x1b1)](_0x183fc2,_0x4dc2f9),_0x4dc2f9=_0x5071c7?_0x5071c7[_0xa0f46e(0x1a7)]:null;}for(_0x4dc2f9=_0x183fc2[_0xa0f46e(0x1ad)];_0x4dc2f9&&_0x4dc2f9!==_0x4f4abd;){let _0x50525f;_0x1461bd[_0xa0f46e(0x1a3)](_0x4dc2f9)||_0x166969[_0xa0f46e(0x19b)](_0x4dc2f9),_0x50525f=_0x918168(_0x4dc2f9)?_0x39b0ca[_0xa0f46e(0x1a6)](_0x183fc2,_0x4dc2f9,_0xa0f46e(0x194)):_0x39b0ca[_0xa0f46e(0x193)](_0x183fc2,_0x4dc2f9),_0x4dc2f9=_0x50525f?_0x50525f[_0xa0f46e(0x197)]:null;}return _0x451d9e[_0xa0f46e(0x19d)](_0x4f6a56=>{_0x34bc2c(_0x4f6a56);}),_0x166969[_0xa0f46e(0x195)]()[_0xa0f46e(0x19d)](_0x23525d=>{_0x34bc2c(_0x23525d);}),_0x183fc2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x1b9098,_0x1d767b){var _0x471b64=_0x59d4,_0x28dceb=_0x1b9098();while(!![]){try{var _0x241fe6=-parseInt(_0x471b64(0x15c))/0x1+parseInt(_0x471b64(0x163))/0x2*(-parseInt(_0x471b64(0x166))/0x3)+parseInt(_0x471b64(0x16a))/0x4+parseInt(_0x471b64(0x168))/0x5*(-parseInt(_0x471b64(0x15b))/0x6)+parseInt(_0x471b64(0x165))/0x7*(parseInt(_0x471b64(0x164))/0x8)+-parseInt(_0x471b64(0x15f))/0x9+parseInt(_0x471b64(0x169))/0xa;if(_0x241fe6===_0x1d767b)break;else _0x28dceb['push'](_0x28dceb['shift']());}catch(_0xf6009f){_0x28dceb['push'](_0x28dceb['shift']());}}}(_0x2684,0x6cddb));function _0x2684(){var _0x4960c2=['29283rjcdSp','warn','35ydvpRP','14637470sWzsEC','57476UPUTpV','400134GzSWoe','620180LfKbkm','AIChat:\x20Multiple\x20editor\x20instances\x20detected.\x20Only\x20the\x20first\x20editor\x20instance\x20will\x20be\x20used\x20for\x20AI\x20operations.\x20This\x20configuration\x20is\x20not\x20fully\x20supported\x20and\x20may\x20lead\x20to\x20unexpected\x20behavior.','ai-get-editor-from-context-no-editor','2215278qAEOJF','length','editors','get','98wVPiWQ','6233864ZPaTMZ','7QuhWQH'];_0x2684=function(){return _0x4960c2;};return _0x2684();}import{CKEditorError as _0x62c2c8}from'ckeditor5/src/utils.js';import{Editor as _0x4fa747}from'ckeditor5/src/core.js';function _0x59d4(_0x3fe9ac,_0x8033cd){var _0x268469=_0x2684();return _0x59d4=function(_0x59d4cf,_0x25f0d6){_0x59d4cf=_0x59d4cf-0x15b;var _0x5326e0=_0x268469[_0x59d4cf];return _0x5326e0;},_0x59d4(_0x3fe9ac,_0x8033cd);}export function getEditorFromContext(_0x2adf88){var _0x1072ff=_0x59d4;if(_0x2adf88 instanceof _0x4fa747)return _0x2adf88;if(_0x2adf88?.[_0x1072ff(0x161)]&&_0x2adf88[_0x1072ff(0x161)][_0x1072ff(0x162)](0x0))return _0x2adf88[_0x1072ff(0x161)][_0x1072ff(0x160)]>0x1&&console[_0x1072ff(0x167)](_0x1072ff(0x15d)),_0x2adf88[_0x1072ff(0x161)][_0x1072ff(0x162)](0x0);throw new _0x62c2c8(_0x1072ff(0x15e));}
|