UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 3.97 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 _0x5f47d4=_0x3dec;function _0x3dec(_0x41e9da,_0x372c8c){const _0x22c38b=_0x22c3();return _0x3dec=function(_0x3decfc,_0x58ec1d){_0x3decfc=_0x3decfc-0x71;let _0x42ddee=_0x22c38b[_0x3decfc];return _0x42ddee;},_0x3dec(_0x41e9da,_0x372c8c);}(function(_0x24a185,_0x412bfc){const _0x1755ff=_0x3dec,_0x2f8016=_0x24a185();while(!![]){try{const _0x311407=-parseInt(_0x1755ff(0x87))/0x1*(-parseInt(_0x1755ff(0x7f))/0x2)+-parseInt(_0x1755ff(0x82))/0x3+-parseInt(_0x1755ff(0x77))/0x4*(parseInt(_0x1755ff(0x93))/0x5)+parseInt(_0x1755ff(0x86))/0x6*(parseInt(_0x1755ff(0x94))/0x7)+-parseInt(_0x1755ff(0x8c))/0x8*(-parseInt(_0x1755ff(0x88))/0x9)+parseInt(_0x1755ff(0x7d))/0xa*(parseInt(_0x1755ff(0x89))/0xb)+-parseInt(_0x1755ff(0x7a))/0xc;if(_0x311407===_0x412bfc)break;else _0x2f8016['push'](_0x2f8016['shift']());}catch(_0x492233){_0x2f8016['push'](_0x2f8016['shift']());}}}(_0x22c3,0x521aa));import{View as _0x499f69}from'ckeditor5/src/ui.js';function _0x22c3(){const _0xfd2775=['classes','className','style','innerHTML','setTemplate','data-ck-root-name','2531515xdOIJl','4928hKzbPu','dialogRects','content','createElement','setPreviewData','height','render','4nhkFkx','focus','setAttribute','4347420UkNCZT','previewDataReady','width','896810TESzjo','\x20ck-track-changes-preview__root-container','38hRvgUz','div','fire','341013hBlKdp','push','ck-track-changes-preview','ck-reset','1926QAGtwr','30953oMBSRb','45lcCiNW','11rHxhJi','element','options','663656QVmKHr'];_0x22c3=function(){return _0xfd2775;};return _0x22c3();}export class TrackChangesPreviewView extends _0x499f69{[_0x5f47d4(0x8b)];constructor(_0x5dce8d,_0x147570){const _0x31fe82=_0x5f47d4;super(_0x5dce8d),this[_0x31fe82(0x8b)]=_0x147570,this[_0x31fe82(0x91)]({'tag':_0x31fe82(0x80),'attributes':{'class':['ck',_0x31fe82(0x85),_0x31fe82(0x84)],'tabindex':-0x1}});}[_0x5f47d4(0x76)](){const _0x1cddc7=_0x5f47d4;super[_0x1cddc7(0x76)](),this[_0x1cddc7(0x8a)][_0x1cddc7(0x8f)][_0x1cddc7(0x7c)]=this[_0x1cddc7(0x8b)][_0x1cddc7(0x71)][_0x1cddc7(0x7c)]+'px',this[_0x1cddc7(0x8a)][_0x1cddc7(0x8f)][_0x1cddc7(0x75)]=this[_0x1cddc7(0x8b)][_0x1cddc7(0x71)][_0x1cddc7(0x75)]+'px';}[_0x5f47d4(0x74)](_0x642d70,_0x520638){const _0x1fc3d8=_0x5f47d4;if(!this[_0x1fc3d8(0x8a)])return;const _0x1fe013=[];for(const [_0x2f40af,_0x3edcf3]of _0x642d70){const _0x39293d=document[_0x1fc3d8(0x73)](_0x1fc3d8(0x80));_0x39293d[_0x1fc3d8(0x79)](_0x1fc3d8(0x92),_0x2f40af),_0x39293d[_0x1fc3d8(0x8e)]=_0x3edcf3[_0x1fc3d8(0x8d)]+_0x1fc3d8(0x7e),_0x39293d[_0x1fc3d8(0x90)]=_0x3edcf3[_0x1fc3d8(0x72)],_0x1fe013[_0x1fc3d8(0x83)](_0x39293d);}_0x520638(this[_0x1fc3d8(0x8a)],_0x1fe013),this[_0x1fc3d8(0x8a)][_0x1fc3d8(0x8f)][_0x1fc3d8(0x75)]='',this[_0x1fc3d8(0x81)](_0x1fc3d8(0x7b));}[_0x5f47d4(0x78)](){const _0x5ac614=_0x5f47d4;this[_0x5ac614(0x8a)][_0x5ac614(0x78)]();}}