UNPKG

@ckeditor/ckeditor5-collaboration-core

Version:

Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.

23 lines 5.56 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 _0x24953f=_0xbeaf;function _0x499f(){const _0x369e5a=['focusTracker','extendTemplate','message','ck-thread__remove-confirm','focusables','ck-thread__remove-confirm-inner','label','Yes','add','6478840dYoUVh','cancelView','keystrokes','element','12659690ZRTOiV','ck-thread__remove-confirm-actions','submitView','shift+tab','listenTo','forEach','9GiKmsv','fire','39980evgPbH','1190434IsvKea','set','setTemplate','focus','bindTemplate','265IHlZkC','tab','execute','esc','createCollection','ck-thread__remove-confirm-','_createButtonView','div','778772ibeHFQ','4368dIkIQc','alertdialog','cancel','_setupKeyboardNavigation','691737EcIWGT','render','icon','presentation','focusCycler','submit','1044jFEIHh','Are\x20you\x20sure?'];_0x499f=function(){return _0x369e5a;};return _0x499f();}(function(_0x56eb6b,_0x157e56){const _0xf4b896=_0xbeaf,_0x5e392e=_0x56eb6b();while(!![]){try{const _0x23b2a8=parseInt(_0xf4b896(0x141))/0x1+-parseInt(_0xf4b896(0x134))/0x2+parseInt(_0xf4b896(0x146))/0x3+-parseInt(_0xf4b896(0x133))/0x4*(parseInt(_0xf4b896(0x139))/0x5)+-parseInt(_0xf4b896(0x14c))/0x6*(-parseInt(_0xf4b896(0x142))/0x7)+-parseInt(_0xf4b896(0x157))/0x8+-parseInt(_0xf4b896(0x131))/0x9*(-parseInt(_0xf4b896(0x15b))/0xa);if(_0x23b2a8===_0x157e56)break;else _0x5e392e['push'](_0x5e392e['shift']());}catch(_0x55ccc0){_0x5e392e['push'](_0x5e392e['shift']());}}}(_0x499f,0x6da41));import{IconCancel as _0x2461d1,IconCheck as _0x35ea9e}from'ckeditor5/src/icons.js';import{View as _0x75639c,ButtonView as _0x5ecff0,FocusCycler as _0x29eebc}from'ckeditor5/src/ui.js';import{FocusTracker as _0x571ecf,KeystrokeHandler as _0x40e0ae}from'ckeditor5/src/utils.js';function _0xbeaf(_0x2556ec,_0x5663a0){const _0x499f26=_0x499f();return _0xbeaf=function(_0xbeafda,_0x524b10){_0xbeafda=_0xbeafda-0x12f;let _0x5eb5d8=_0x499f26[_0xbeafda];return _0x5eb5d8;},_0xbeaf(_0x2556ec,_0x5663a0);}import{getTranslation as _0x3fb38a}from'./common-translations.js';export class ConfirmView extends _0x75639c{[_0x24953f(0x15d)];[_0x24953f(0x158)];[_0x24953f(0x14e)];[_0x24953f(0x159)];[_0x24953f(0x14a)];[_0x24953f(0x152)];constructor(_0x512976){const _0x5091b4=_0x24953f;super(_0x512976);const _0x1ff613=this[_0x5091b4(0x138)];this[_0x5091b4(0x135)](_0x5091b4(0x150),_0x3fb38a(_0x512976,_0x5091b4(0x14d))),this[_0x5091b4(0x15d)]=this[_0x5091b4(0x13f)](_0x512976,_0x3fb38a(_0x512976,_0x5091b4(0x155)),_0x35ea9e,_0x5091b4(0x14b)),this[_0x5091b4(0x158)]=this[_0x5091b4(0x13f)](_0x512976,_0x3fb38a(_0x512976,'No'),_0x2461d1,_0x5091b4(0x144)),this[_0x5091b4(0x152)]=this[_0x5091b4(0x13d)]([this[_0x5091b4(0x15d)],this[_0x5091b4(0x158)]]),this[_0x5091b4(0x14e)]=new _0x571ecf(),this[_0x5091b4(0x159)]=new _0x40e0ae(),this[_0x5091b4(0x14a)]=new _0x29eebc({'focusables':this[_0x5091b4(0x152)],'focusTracker':this[_0x5091b4(0x14e)],'keystrokeHandler':this[_0x5091b4(0x159)],'actions':{'focusPrevious':_0x5091b4(0x15e),'focusNext':_0x5091b4(0x13a)}}),this[_0x5091b4(0x136)]({'tag':_0x5091b4(0x140),'attributes':{'class':['ck',_0x5091b4(0x151)],'tabindex':-0x1,'role':_0x5091b4(0x143)},'children':[{'tag':_0x5091b4(0x140),'attributes':{'class':_0x5091b4(0x153),'role':_0x5091b4(0x149)},'children':[{'tag':'p','children':[{'text':_0x1ff613['to'](_0x5091b4(0x150))}]},{'tag':_0x5091b4(0x140),'attributes':{'class':_0x5091b4(0x15c)},'children':[this[_0x5091b4(0x15d)],this[_0x5091b4(0x158)]]}]}]});}[_0x24953f(0x147)](){const _0xf7c2b1=_0x24953f;super[_0xf7c2b1(0x147)](),this[_0xf7c2b1(0x145)]();}[_0x24953f(0x137)](){const _0x15c821=_0x24953f;this[_0x15c821(0x158)][_0x15c821(0x15a)][_0x15c821(0x137)]({'preventScroll':!0x0});}[_0x24953f(0x13f)](_0x325334,_0x1c2a75,_0x50933c,_0x5b5345){const _0x319c49=_0x24953f,_0x4819dd=new _0x5ecff0(_0x325334);return _0x4819dd[_0x319c49(0x154)]=_0x1c2a75,_0x4819dd[_0x319c49(0x148)]=_0x50933c,_0x4819dd[_0x319c49(0x14f)]({'attributes':{'class':_0x319c49(0x13e)+_0x5b5345}}),_0x4819dd['on'](_0x319c49(0x13b),()=>this[_0x319c49(0x132)](_0x5b5345)),_0x4819dd;}[_0x24953f(0x145)](){const _0x11aa3d=_0x24953f;this[_0x11aa3d(0x152)][_0x11aa3d(0x130)](_0x133a88=>{const _0x45027c=_0x11aa3d;this[_0x45027c(0x159)][_0x45027c(0x12f)](_0x133a88[_0x45027c(0x15a)]),this[_0x45027c(0x14e)][_0x45027c(0x156)](_0x133a88[_0x45027c(0x15a)]);}),this[_0x11aa3d(0x159)][_0x11aa3d(0x135)](_0x11aa3d(0x13c),(_0x19011a,_0x5a7622)=>{const _0x1a4679=_0x11aa3d;this[_0x1a4679(0x132)](_0x1a4679(0x144)),_0x5a7622();});}}