UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines 4.07 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x12df8c=_0x5574;(function(_0x17925f,_0x4a5a45){const _0x54a63f=_0x5574,_0x38fd35=_0x17925f();while(!![]){try{const _0x2a5965=parseInt(_0x54a63f(0x9f))/0x1*(parseInt(_0x54a63f(0xa1))/0x2)+parseInt(_0x54a63f(0xb0))/0x3+parseInt(_0x54a63f(0xa5))/0x4*(parseInt(_0x54a63f(0xb3))/0x5)+-parseInt(_0x54a63f(0x9c))/0x6+parseInt(_0x54a63f(0x98))/0x7*(parseInt(_0x54a63f(0xa2))/0x8)+parseInt(_0x54a63f(0xa3))/0x9+parseInt(_0x54a63f(0x9b))/0xa*(-parseInt(_0x54a63f(0x97))/0xb);if(_0x2a5965===_0x4a5a45)break;else _0x38fd35['push'](_0x38fd35['shift']());}catch(_0x50ee5e){_0x38fd35['push'](_0x38fd35['shift']());}}}(_0x28a2,0xd76de));import{AIReply as _0x10af95}from'../../aicore/model/aireply.js';function _0x5574(_0x5ab435,_0x4a5b15){const _0x28a25c=_0x28a2();return _0x5574=function(_0x55745f,_0x356c72){_0x55745f=_0x55745f-0x97;let _0x45487a=_0x28a25c[_0x55745f];return _0x45487a;},_0x5574(_0x5ab435,_0x4a5b15);}import{getAttribute as _0x36b44e}from'../../aicore/utils/htmlparser.js';import{uid as _0x4de7ab}from'ckeditor5/src/utils.js';function _0x28a2(){const _0x418fac=['pop','145050wWswPM','children','updateChangeGroups','77295uhkAqI','_getDifferentChangeGroups','parsedContent','documentContextContent','36361996MAToxZ','5784163AowZHx','node','added','10lROzbk','4731492uEfbQH','data-id','map','2073QFaVgu','parsedMergedContent','1594PgPjQo','8ITeSkU','14395779IUziWL','childNodes','220pMPQDj','new','length','cloneNode','isDone','changeGroups','value','pending','removed','modified'];_0x28a2=function(){return _0x418fac;};return _0x28a2();}import{diffArrays as _0xb2308b}from'diff';export class AIActionsReply extends _0x10af95{[_0x12df8c(0xb2)](){const _0x4ccf98=_0x12df8c;if(this[_0x4ccf98(0xa0)]=this[_0x4ccf98(0xb5)][_0x4ccf98(0xa8)](!0x0),0x0==this[_0x4ccf98(0xa0)][_0x4ccf98(0xa4)][_0x4ccf98(0xa7)])return void(this[_0x4ccf98(0xaa)]=[]);const _0x2ec9a7=this[_0x4ccf98(0xb6)][_0x4ccf98(0xb1)][_0x4ccf98(0x9e)](_0x3cfb0f=>({'node':_0x3cfb0f,'id':_0x36b44e(_0x3cfb0f,_0x4ccf98(0x9d))})),_0x6e729=this[_0x4ccf98(0xa0)][_0x4ccf98(0xb1)][_0x4ccf98(0x9e)](_0x5a09c=>({'node':_0x5a09c,'id':_0x36b44e(_0x5a09c,_0x4ccf98(0x9d))||_0x4de7ab()})),_0x3767ab=_0xb2308b(_0x2ec9a7,_0x6e729,{'comparator':(_0x4efd33,_0x54c66f)=>_0x4efd33['id']==_0x54c66f['id'],'oneChangePerToken':!0x0});if(!this[_0x4ccf98(0xa9)]){for(;_0x3767ab[_0x4ccf98(0xa7)]&&_0x3767ab[_0x3767ab[_0x4ccf98(0xa7)]-0x1][_0x4ccf98(0xad)];)_0x3767ab[_0x4ccf98(0xaf)]();}const _0x54dc2e=_0x3767ab[_0x4ccf98(0x9e)](_0x25d7e6=>{const _0x51bcae=_0x4ccf98,_0x2db012=_0x25d7e6[_0x51bcae(0x9a)]?_0x51bcae(0xa6):_0x25d7e6[_0x51bcae(0xad)]?_0x51bcae(0xad):_0x51bcae(0xae);return{'node':_0x25d7e6[_0x51bcae(0xab)][0x0][_0x51bcae(0x99)],'type':_0x2db012,'id':_0x25d7e6[_0x51bcae(0xab)][0x0]['id']};});this[_0x4ccf98(0xaa)]=[{'changes':_0x54dc2e,'state':_0x4ccf98(0xac),'index':0x0}];}[_0x12df8c(0xb4)](_0x475068,_0x993c1){return _0x993c1;}}