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.64 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 _0x27001b=_0x7b44;(function(_0x135b8f,_0x3e7e4a){const _0x4b749f=_0x7b44,_0x40fdf4=_0x135b8f();while(!![]){try{const _0x5da410=-parseInt(_0x4b749f(0x1ae))/0x1+parseInt(_0x4b749f(0x1d0))/0x2*(-parseInt(_0x4b749f(0x1c4))/0x3)+parseInt(_0x4b749f(0x1d6))/0x4*(-parseInt(_0x4b749f(0x1d4))/0x5)+parseInt(_0x4b749f(0x1b5))/0x6*(parseInt(_0x4b749f(0x1d2))/0x7)+parseInt(_0x4b749f(0x1db))/0x8*(-parseInt(_0x4b749f(0x1ad))/0x9)+parseInt(_0x4b749f(0x1bb))/0xa*(parseInt(_0x4b749f(0x1aa))/0xb)+parseInt(_0x4b749f(0x1b9))/0xc*(parseInt(_0x4b749f(0x1ac))/0xd);if(_0x5da410===_0x3e7e4a)break;else _0x40fdf4['push'](_0x40fdf4['shift']());}catch(_0x45e1d5){_0x40fdf4['push'](_0x40fdf4['shift']());}}}(_0x3c63,0x45ada));import{IconCancel as _0x444f61,IconCheck as _0x28a0d1}from'ckeditor5/src/icons.js';import{View as _0x51b661,ButtonView as _0x5ac31d,FocusCycler as _0x3a0e94}from'ckeditor5/src/ui.js';function _0x3c63(){const _0x6b48e3=['render','esc','setTemplate','114FOSDCH','_setupKeyboardNavigation','div','element','icon','submitView','createCollection','Yes','alertdialog','submit','add','forEach','24238nwjcBk','focus','38283wiMhNV','focusTracker','225EcxKvt','focusCycler','25000HBYqsa','extendTemplate','ck-confirm-view-actions','set','keystrokes','8ZDAACJ','cancelView','11DhyhlO','execute','3029VKFjRl','2081637bzZeVv','403156QFiyFW','message','tab','label','presentation','ck-confirm-view-inner','focusables','612ziTxbw','ck-confirm-view','cancel','Are\x20you\x20sure?','52548fXcgUT','_createButtonView','834780IThOqY','fire','shift+tab','listenTo','ck-confirm-view-','bindTemplate'];_0x3c63=function(){return _0x6b48e3;};return _0x3c63();}import{FocusTracker as _0x416fbc,KeystrokeHandler as _0x240600}from'ckeditor5/src/utils.js';function _0x7b44(_0xb4d41a,_0x6b70ff){const _0x3c6395=_0x3c63();return _0x7b44=function(_0x7b44b5,_0x14d6be){_0x7b44b5=_0x7b44b5-0x1aa;let _0x25732b=_0x3c6395[_0x7b44b5];return _0x25732b;},_0x7b44(_0xb4d41a,_0x6b70ff);}import{getTranslation as _0x27f8d1}from'./common-translations.js';import'../../theme/confirm.css';export class ConfirmView extends _0x51b661{[_0x27001b(0x1c9)];[_0x27001b(0x1dc)];[_0x27001b(0x1d3)];[_0x27001b(0x1da)];[_0x27001b(0x1d5)];[_0x27001b(0x1b4)];constructor(_0x4a2cbb){const _0x44d1d=_0x27001b;super(_0x4a2cbb);const _0x28ef97=this[_0x44d1d(0x1c0)];this[_0x44d1d(0x1d9)](_0x44d1d(0x1af),_0x27f8d1(_0x4a2cbb,_0x44d1d(0x1b8))),this[_0x44d1d(0x1c9)]=this[_0x44d1d(0x1ba)](_0x4a2cbb,_0x27f8d1(_0x4a2cbb,_0x44d1d(0x1cb)),_0x28a0d1,_0x44d1d(0x1cd)),this[_0x44d1d(0x1dc)]=this[_0x44d1d(0x1ba)](_0x4a2cbb,_0x27f8d1(_0x4a2cbb,'No'),_0x444f61,_0x44d1d(0x1b7)),this[_0x44d1d(0x1b4)]=this[_0x44d1d(0x1ca)]([this[_0x44d1d(0x1c9)],this[_0x44d1d(0x1dc)]]),this[_0x44d1d(0x1d3)]=new _0x416fbc(),this[_0x44d1d(0x1da)]=new _0x240600(),this[_0x44d1d(0x1d5)]=new _0x3a0e94({'focusables':this[_0x44d1d(0x1b4)],'focusTracker':this[_0x44d1d(0x1d3)],'keystrokeHandler':this[_0x44d1d(0x1da)],'actions':{'focusPrevious':_0x44d1d(0x1bd),'focusNext':_0x44d1d(0x1b0)}}),this[_0x44d1d(0x1c3)]({'tag':_0x44d1d(0x1c6),'attributes':{'class':['ck',_0x44d1d(0x1b6)],'tabindex':-0x1,'role':_0x44d1d(0x1cc)},'children':[{'tag':_0x44d1d(0x1c6),'attributes':{'class':_0x44d1d(0x1b3),'role':_0x44d1d(0x1b2)},'children':[{'tag':'p','children':[{'text':_0x28ef97['to'](_0x44d1d(0x1af))}]},{'tag':_0x44d1d(0x1c6),'attributes':{'class':_0x44d1d(0x1d8)},'children':[this[_0x44d1d(0x1c9)],this[_0x44d1d(0x1dc)]]}]}]});}[_0x27001b(0x1c1)](){const _0x57a1f0=_0x27001b;super[_0x57a1f0(0x1c1)](),this[_0x57a1f0(0x1c5)]();}[_0x27001b(0x1d1)](){const _0x2596ed=_0x27001b;this[_0x2596ed(0x1dc)][_0x2596ed(0x1c7)][_0x2596ed(0x1d1)]({'preventScroll':!0x0});}[_0x27001b(0x1ba)](_0x2a3aa1,_0x5860ec,_0x11156a,_0x4d2be2){const _0x406e46=_0x27001b,_0x431b39=new _0x5ac31d(_0x2a3aa1);return _0x431b39[_0x406e46(0x1b1)]=_0x5860ec,_0x431b39[_0x406e46(0x1c8)]=_0x11156a,_0x431b39[_0x406e46(0x1d7)]({'attributes':{'class':_0x406e46(0x1bf)+_0x4d2be2}}),_0x431b39['on'](_0x406e46(0x1ab),()=>this[_0x406e46(0x1bc)](_0x4d2be2)),_0x431b39;}[_0x27001b(0x1c5)](){const _0x47fbb4=_0x27001b;this[_0x47fbb4(0x1b4)][_0x47fbb4(0x1cf)](_0x301ae4=>{const _0x575819=_0x47fbb4;this[_0x575819(0x1da)][_0x575819(0x1be)](_0x301ae4[_0x575819(0x1c7)]),this[_0x575819(0x1d3)][_0x575819(0x1ce)](_0x301ae4[_0x575819(0x1c7)]);}),this[_0x47fbb4(0x1da)][_0x47fbb4(0x1d9)](_0x47fbb4(0x1c2),(_0x22924a,_0x6e9b5c)=>{const _0x4f6009=_0x47fbb4;this[_0x4f6009(0x1bc)](_0x4f6009(0x1b7)),_0x6e9b5c();});}}