UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 7.73 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 _0x5cb3c1=_0x2bb6;(function(_0x210c03,_0x24140f){const _0x4ad08c=_0x2bb6,_0x31e9bb=_0x210c03();while(!![]){try{const _0x34f7f7=parseInt(_0x4ad08c(0xad))/0x1+-parseInt(_0x4ad08c(0xa3))/0x2+parseInt(_0x4ad08c(0x88))/0x3+parseInt(_0x4ad08c(0x82))/0x4*(-parseInt(_0x4ad08c(0x99))/0x5)+parseInt(_0x4ad08c(0xbd))/0x6+parseInt(_0x4ad08c(0x83))/0x7*(-parseInt(_0x4ad08c(0x8e))/0x8)+parseInt(_0x4ad08c(0xbe))/0x9;if(_0x34f7f7===_0x24140f)break;else _0x31e9bb['push'](_0x31e9bb['shift']());}catch(_0x35c7e4){_0x31e9bb['push'](_0x31e9bb['shift']());}}}(_0x29e1,0xb41ca));import{FocusCycler as _0x9eae06,View as _0x599b3c,ViewCollection as _0xa14769}from'ckeditor5/src/ui.js';function _0x2bb6(_0x31a09f,_0x20f94d){const _0x29e1d6=_0x29e1();return _0x2bb6=function(_0x2bb62a,_0x23f60c){_0x2bb62a=_0x2bb62a-0x7a;let _0x27a9dc=_0x29e1d6[_0x2bb62a];return _0x27a9dc;},_0x2bb6(_0x31a09f,_0x20f94d);}import{FocusTracker as _0x48266c,KeystrokeHandler as _0x60c0a5}from'ckeditor5/src/utils.js';import{AriaDescriptionView as _0x202a6d,setupThreadKeyboardNavigation as _0xfebdbb}from'ckeditor5-collaboration/src/collaboration-core.js';import{getTranslation as _0x2fb37d}from'../../utils/common-translations.js';function _0x29e1(){const _0x34a52d=['target','isActive','destroy','canAccept','commentThread','removeComment','isDirty','bind','author','93336gRFfdi','disabledSubmit','textContent','setData','_createCommentThreadInputView','SUGGESTION_THREAD_ARIA_LABEL','authoredAt','name','commentInputView','hasDirtyComment','CommentView','_createCommentViews','commentsListView','formatDateTime','delegate','fire','8232828IDMhMB','19783368XcyEPz','assign','text/html','showInput','element','updateComment','cancel','body','parseFromString','content','map','locale','688teJyTD','7QYIeno','ariaLabel','descriptionParts','_config','keystrokes','2036598BUBzTY','length','focus','focusTracker','focusables','shift+tab','9840112Njeqdz','value','render','join','disableComments','tab','SUGGESTION_THREAD_DESCRIPTION','commentThreadInputView','canDiscard','isReadOnly','set','29760PIxXIi','_model','editor','addComment','focusCycler','submit','editorConfig','_localUser','isEnabled','ariaDescriptionView','2701992CUTGwK'];_0x29e1=function(){return _0x34a52d;};return _0x29e1();}import{renderDescription as _0x2cb85d}from'../../utils/utils.js';export default class us extends _0x599b3c{[_0x5cb3c1(0xb9)];[_0x5cb3c1(0x95)];[_0x5cb3c1(0xa2)];[_0x5cb3c1(0x8c)];[_0x5cb3c1(0x8b)];[_0x5cb3c1(0x87)];[_0x5cb3c1(0x9d)];[_0x5cb3c1(0x9a)];[_0x5cb3c1(0xa0)];[_0x5cb3c1(0x86)];constructor(_0x144e6f,_0x1d3ac9,_0x1fe857,_0x2e3b2c){const _0x55bd6b=_0x5cb3c1;super(_0x144e6f),this[_0x55bd6b(0xb9)]=null,this[_0x55bd6b(0x95)]=null,this[_0x55bd6b(0xa2)]=new _0x202a6d(_0x144e6f,_0x2fb37d(_0x144e6f,_0x55bd6b(0x94))),this[_0x55bd6b(0x98)](_0x55bd6b(0xa5),!0x1),this[_0x55bd6b(0x98)](_0x55bd6b(0xb3),_0x1d3ac9[_0x55bd6b(0xb3)]),this[_0x55bd6b(0xab)](_0x55bd6b(0xb3))['to'](_0x1d3ac9),this[_0x55bd6b(0x98)](_0x55bd6b(0x85),[]),this[_0x55bd6b(0x98)](_0x55bd6b(0xaa),!0x1),this[_0x55bd6b(0x98)](_0x55bd6b(0xa1),!0x1),this[_0x55bd6b(0x98)](_0x55bd6b(0xa7),!0x1),this[_0x55bd6b(0x98)](_0x55bd6b(0x96),!0x1),this[_0x55bd6b(0xab)](_0x55bd6b(0x84))['to'](this,_0x55bd6b(0x89),_0x1d3ac9,_0x55bd6b(0xb3),this,_0x55bd6b(0x85),(_0x544e6b,_0x3b16e7,_0x2c99e7)=>{const _0x4a1a55=_0x55bd6b,_0x5f16b2=_0x2c99e7[_0x4a1a55(0x80)](_0xd44612=>_0x2cb85d(_0xd44612[_0x4a1a55(0x7f)]))[_0x4a1a55(0x91)]('.\x20')+'.';return _0x2fb37d(this[_0x4a1a55(0x81)],_0x4a1a55(0xb2),[_0x544e6b-0x1,_0x1d3ac9[_0x4a1a55(0xac)][_0x4a1a55(0xb4)],_0x3b16e7?_0x2e3b2c[_0x4a1a55(0xba)](_0x3b16e7):'',new DOMParser()[_0x4a1a55(0x7e)](_0x5f16b2,_0x4a1a55(0xc0))[_0x4a1a55(0x7d)][_0x4a1a55(0xaf)]]);}),this[_0x55bd6b(0x8c)]=new _0xa14769(),this[_0x55bd6b(0x8b)]=new _0x48266c(),this[_0x55bd6b(0x87)]=new _0x60c0a5(),this[_0x55bd6b(0x9d)]=new _0x9eae06({'focusables':this[_0x55bd6b(0x8c)],'focusTracker':this[_0x55bd6b(0x8b)],'keystrokeHandler':this[_0x55bd6b(0x87)],'keystrokeHandlerOptions':{'filter':_0x55fb46=>_0x55fb46[_0x55bd6b(0xa4)]!==this[_0x55bd6b(0x7a)]},'actions':{'focusPrevious':_0x55bd6b(0x8d),'focusNext':_0x55bd6b(0x93)}}),this[_0x55bd6b(0x9a)]=_0x1d3ac9,this[_0x55bd6b(0xa0)]=_0x1fe857,this[_0x55bd6b(0x86)]=_0x2e3b2c,_0x2e3b2c[_0x55bd6b(0x92)]?this[_0x55bd6b(0x98)](_0x55bd6b(0x89),0x1):this[_0x55bd6b(0xb8)]();}[_0x5cb3c1(0x90)](){const _0x320efd=_0x5cb3c1;super[_0x320efd(0x90)](),_0xfebdbb(this,this[_0x320efd(0x8c)]);}[_0x5cb3c1(0x8a)](){const _0x596ef7=_0x5cb3c1;this[_0x596ef7(0x7a)][_0x596ef7(0x8a)]();}[_0x5cb3c1(0xa6)](){const _0x53fe95=_0x5cb3c1;this[_0x53fe95(0xb9)]&&this[_0x53fe95(0xb9)][_0x53fe95(0xa6)](),this[_0x53fe95(0x95)]&&this[_0x53fe95(0x95)][_0x53fe95(0xa6)](),super[_0x53fe95(0xa6)]();}[_0x5cb3c1(0xb8)](){const _0x2b67c8=_0x5cb3c1,{CommentsListView:_0x240036}=this[_0x2b67c8(0x86)];this[_0x2b67c8(0xb9)]=new _0x240036(this[_0x2b67c8(0x81)],this[_0x2b67c8(0x9a)][_0x2b67c8(0xa8)],Object[_0x2b67c8(0xbf)]({'CommentView':this[_0x2b67c8(0x86)][_0x2b67c8(0xb7)]},this[_0x2b67c8(0x86)])),this[_0x2b67c8(0xb9)][_0x2b67c8(0xbb)](_0x2b67c8(0xa9))['to'](this),this[_0x2b67c8(0xb9)][_0x2b67c8(0xbb)](_0x2b67c8(0x7b))['to'](this),this[_0x2b67c8(0xb9)][_0x2b67c8(0xab)](_0x2b67c8(0xa5))['to'](this),this[_0x2b67c8(0x98)](_0x2b67c8(0x89),this[_0x2b67c8(0xb9)][_0x2b67c8(0x89)]+0x1),this[_0x2b67c8(0xab)](_0x2b67c8(0x89))['to'](this[_0x2b67c8(0xb9)],_0x2b67c8(0x89),_0x44aaf9=>_0x44aaf9+0x1),this[_0x2b67c8(0x95)]=this[_0x2b67c8(0xb1)](),this['on'](_0x2b67c8(0xa9),()=>this[_0x2b67c8(0x8a)]()),this[_0x2b67c8(0xab)](_0x2b67c8(0xaa))['to'](this[_0x2b67c8(0xb9)],_0x2b67c8(0xb6),this[_0x2b67c8(0x95)][_0x2b67c8(0xb5)],_0x2b67c8(0x8f),(_0x1725a3,_0x13b8ed)=>_0x1725a3||!!_0x13b8ed);}[_0x5cb3c1(0xb1)](){const _0x2f7296=_0x5cb3c1,{CommentThreadInputView:_0x3022ab}=this[_0x2f7296(0x86)],_0x2e7e07=new _0x3022ab(this[_0x2f7296(0x81)],this[_0x2f7296(0xa0)],this[_0x2f7296(0x86)][_0x2f7296(0x9f)]),_0x2a8e6a=_0x2e7e07[_0x2f7296(0xb5)];return _0x2e7e07[_0x2f7296(0xab)](_0x2f7296(0xc1))['to'](this,_0x2f7296(0xa5),this[_0x2f7296(0x9a)][_0x2f7296(0xa8)],_0x2f7296(0x97),_0x2a8e6a,_0x2f7296(0x8f),(_0x22c5e2,_0x3970a3,_0x54d600)=>!!_0x54d600||_0x22c5e2&&!_0x3970a3),_0x2a8e6a['on'](_0x2f7296(0x9e),(_0x1fcfea,_0x5092c9)=>{const _0x31354b=_0x2f7296;this[_0x31354b(0xbc)](_0x31354b(0x9c),_0x5092c9),_0x2a8e6a[_0x31354b(0x9b)][_0x31354b(0xb0)]('');}),_0x2a8e6a['on'](_0x2f7296(0x7c),()=>this[_0x2f7296(0x8a)]()),_0x2a8e6a[_0x2f7296(0xab)](_0x2f7296(0xae))['to'](this[_0x2f7296(0x9a)][_0x2f7296(0xa8)],_0x2f7296(0x97)),_0x2e7e07;}}