UNPKG

@ckeditor/ckeditor5-template

Version:

Template feature for CKEditor 5.

23 lines 4.3 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 _0xdfac5a=_0x3c8b;function _0x3c8b(_0x2bf680,_0x32f889){const _0x1a79f1=_0x1a79();return _0x3c8b=function(_0x3c8b9f,_0x4e961b){_0x3c8b9f=_0x3c8b9f-0x18a;let _0x3c2d11=_0x1a79f1[_0x3c8b9f];return _0x3c2d11;},_0x3c8b(_0x2bf680,_0x32f889);}(function(_0x1829b1,_0x1f3c98){const _0x2a3c8f=_0x3c8b,_0x212f91=_0x1829b1();while(!![]){try{const _0x31476d=parseInt(_0x2a3c8f(0x197))/0x1*(-parseInt(_0x2a3c8f(0x18b))/0x2)+-parseInt(_0x2a3c8f(0x18f))/0x3*(parseInt(_0x2a3c8f(0x1a4))/0x4)+parseInt(_0x2a3c8f(0x1a3))/0x5*(parseInt(_0x2a3c8f(0x1a1))/0x6)+parseInt(_0x2a3c8f(0x19d))/0x7+-parseInt(_0x2a3c8f(0x1a6))/0x8+parseInt(_0x2a3c8f(0x19a))/0x9+-parseInt(_0x2a3c8f(0x193))/0xa*(parseInt(_0x2a3c8f(0x1a5))/0xb);if(_0x31476d===_0x1f3c98)break;else _0x212f91['push'](_0x212f91['shift']());}catch(_0x38b99f){_0x212f91['push'](_0x212f91['shift']());}}}(_0x1a79,0x361c1));import{ListView as _0x2a2024}from'ckeditor5/src/ui.js';function _0x1a79(){const _0x42e048=['originalIndex','length','28TYUveY','isMatching','isVisible','3667977zbtdjk','size','title','384678PIPXnb','buttonView','items','sort','8286rkKjWh','map','1260EQZDzc','48GgypoC','193974MyOaGb','40704aourhs','forEach','5300ORaAGQ','addMany','highlightText','set','78906QMEKuP','get','clear','filter','110NloVEW','_resetFiltering'];_0x1a79=function(){return _0x42e048;};return _0x1a79();}export class TemplateListView extends _0x2a2024{[_0xdfac5a(0x192)](_0x287677){const _0x256ea8=_0xdfac5a;if(!_0x287677)return this[_0x256ea8(0x194)]();const _0xe3e4b2=new Map(),_0x50caa6=this[_0x256ea8(0x19f)][_0x256ea8(0x1a2)](_0x3eb024=>{const _0x4a9308=_0x256ea8,_0x1eacf2=_0x3eb024[_0x4a9308(0x19e)][_0x4a9308(0x198)](_0x287677);return _0x3eb024[_0x4a9308(0x199)]=!!_0x1eacf2,_0x3eb024[_0x4a9308(0x19e)][_0x4a9308(0x18d)](_0x1eacf2?_0x287677:null),_0x1eacf2&&_0xe3e4b2[_0x4a9308(0x18e)](_0x3eb024,_0x1eacf2),_0x3eb024;})[_0x256ea8(0x1a0)](j)[_0x256ea8(0x1a0)](function(_0xb839d6){return function(_0x1a2c3b,_0x3dc4b5){const _0x5c1b2f=_0x3c8b,_0x3192fb=_0xb839d6[_0x5c1b2f(0x190)](_0x1a2c3b),_0x54f54e=_0xb839d6[_0x5c1b2f(0x190)](_0x3dc4b5);return _0x3192fb&&!_0x54f54e?-0x1:_0x54f54e&&!_0x3192fb?0x1:_0x3192fb||_0x54f54e?_0x3192fb[_0x5c1b2f(0x19c)]&&!_0x54f54e[_0x5c1b2f(0x19c)]?-0x1:!_0x3192fb[_0x5c1b2f(0x19c)]&&_0x54f54e[_0x5c1b2f(0x19c)]?0x1:0x0:0x0;};}(_0xe3e4b2));return this[_0x256ea8(0x19f)][_0x256ea8(0x191)](),this[_0x256ea8(0x19f)][_0x256ea8(0x18c)](_0x50caa6),{'resultsCount':_0xe3e4b2[_0x256ea8(0x19b)],'totalItemsCount':this[_0x256ea8(0x19f)][_0x256ea8(0x196)]};}[_0xdfac5a(0x194)](){const _0xc83e66=_0xdfac5a,_0x3422a9=this[_0xc83e66(0x19f)][_0xc83e66(0x1a2)](_0x3f9c03=>_0x3f9c03)[_0xc83e66(0x1a0)](j);return _0x3422a9[_0xc83e66(0x18a)](_0x4df7b0=>{const _0x4ba3f7=_0xc83e66;_0x4df7b0[_0x4ba3f7(0x199)]=!0x0,_0x4df7b0[_0x4ba3f7(0x19e)][_0x4ba3f7(0x18d)](null);}),this[_0xc83e66(0x19f)][_0xc83e66(0x191)](),this[_0xc83e66(0x19f)][_0xc83e66(0x18c)](_0x3422a9),{'resultsCount':_0x3422a9[_0xc83e66(0x196)],'totalItemsCount':_0x3422a9[_0xc83e66(0x196)]};}}function j(_0x1025a7,_0x22bfce){const _0x2fca9c=_0xdfac5a;return _0x1025a7[_0x2fca9c(0x195)]-_0x22bfce[_0x2fca9c(0x195)];}