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 4.14 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ function _0x45fe(){var _0x74326=['561610tVUzRU','deregisterChild','93feuVUe','ck-confirm-view-active','classList','993960lNvbxf','render','754900UBfHxh','remove','31264eULDPd','showConfirm','321303uAheqP','submit','_removeConfirm','add','element','9436ZCedna','appendChild','cancelConfirm','destroy','fire','21kjqRaZ','cancel','confirmView','once','set','focus','4279203EULWao','change:isConfirm','removeConfirm','locale','registerChild','message','isConfirm'];_0x45fe=function(){return _0x74326;};return _0x45fe();}(function(_0x78fb44,_0x2e428c){var _0x157e59=_0x5bf0,_0x5ae1b2=_0x78fb44();while(!![]){try{var _0x3f4007=parseInt(_0x157e59(0x135))/0x1+parseInt(_0x157e59(0x13a))/0x2*(-parseInt(_0x157e59(0x12c))/0x3)+-parseInt(_0x157e59(0x131))/0x4+-parseInt(_0x157e59(0x12a))/0x5+-parseInt(_0x157e59(0x12f))/0x6+parseInt(_0x157e59(0x13f))/0x7*(-parseInt(_0x157e59(0x133))/0x8)+parseInt(_0x157e59(0x145))/0x9;if(_0x3f4007===_0x2e428c)break;else _0x5ae1b2['push'](_0x5ae1b2['shift']());}catch(_0x17e260){_0x5ae1b2['push'](_0x5ae1b2['shift']());}}}(_0x45fe,0x2a031));import{ConfirmView as _0x48470c}from'./confirmview.js';function _0x5bf0(_0x4cdf3e,_0x76fbb2){var _0x45feff=_0x45fe();return _0x5bf0=function(_0x5bf06f,_0x545d16){_0x5bf06f=_0x5bf06f-0x12a;var _0x43d238=_0x45feff[_0x5bf06f];return _0x43d238;},_0x5bf0(_0x4cdf3e,_0x76fbb2);}export function ConfirmMixin(_0x36a49c){var _0x4ce513=_0x5bf0;return class extends _0x36a49c{[_0x4ce513(0x134)](_0x36fef4,_0xc062aa){var _0x18bbb0=_0x4ce513;return this[_0x18bbb0(0x141)]=new _0x48470c(this[_0x18bbb0(0x148)]),this[_0x18bbb0(0x141)][_0x18bbb0(0x130)](),this[_0x18bbb0(0x141)][_0x18bbb0(0x14a)]=_0x36fef4,this[_0x18bbb0(0x141)][_0x18bbb0(0x142)](_0x18bbb0(0x140),()=>{var _0x567dd1=_0x18bbb0;this[_0x567dd1(0x137)]();}),this[_0x18bbb0(0x141)][_0x18bbb0(0x142)](_0x18bbb0(0x136),()=>{var _0x15fd77=_0x18bbb0;this[_0x15fd77(0x137)]();}),_0xc062aa[_0x18bbb0(0x13b)](this[_0x18bbb0(0x141)][_0x18bbb0(0x139)]),_0xc062aa[_0x18bbb0(0x12e)][_0x18bbb0(0x138)](_0x18bbb0(0x12d)),this[_0x18bbb0(0x149)](this[_0x18bbb0(0x141)]),this[_0x18bbb0(0x141)][_0x18bbb0(0x144)](),this[_0x18bbb0(0x143)](_0x18bbb0(0x14b),!0x0),this['on'](_0x18bbb0(0x146),(_0x3a2eda,_0x34c5cc,_0xea7186)=>{var _0x5b39a9=_0x18bbb0;_0xea7186||_0xc062aa[_0x5b39a9(0x12e)][_0x5b39a9(0x132)](_0x5b39a9(0x12d));}),new Promise(_0x338172=>this[_0x18bbb0(0x141)]['on'](_0x18bbb0(0x136),_0x338172));}[_0x4ce513(0x13c)](){var _0x41893c=_0x4ce513;this[_0x41893c(0x14b)]&&this[_0x41893c(0x141)][_0x41893c(0x13e)](_0x41893c(0x140));}[_0x4ce513(0x137)](){var _0x5a731c=_0x4ce513;this[_0x5a731c(0x139)]&&this[_0x5a731c(0x141)]&&this[_0x5a731c(0x141)][_0x5a731c(0x139)]&&(this[_0x5a731c(0x139)][_0x5a731c(0x144)](),this[_0x5a731c(0x141)][_0x5a731c(0x139)][_0x5a731c(0x132)](),this[_0x5a731c(0x12b)](this[_0x5a731c(0x141)]),this[_0x5a731c(0x14b)]=!0x1,this[_0x5a731c(0x13e)](_0x5a731c(0x147)),this[_0x5a731c(0x141)][_0x5a731c(0x13d)](),this[_0x5a731c(0x141)]=void 0x0);}};}