@ckeditor/ckeditor5-track-changes 35.3.2 → 36.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +3 -2
- package/build/translations/ar.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/lang/contexts.json +16 -0
- package/lang/translations/ar.po +68 -4
- package/lang/translations/az.po +65 -1
- package/lang/translations/bg.po +68 -4
- package/lang/translations/bn.po +68 -4
- package/lang/translations/ca.po +68 -4
- package/lang/translations/cs.po +68 -4
- package/lang/translations/da.po +68 -4
- package/lang/translations/de.po +68 -4
- package/lang/translations/el.po +68 -4
- package/lang/translations/en-au.po +65 -1
- package/lang/translations/en.po +65 -1
- package/lang/translations/es.po +68 -4
- package/lang/translations/et.po +68 -4
- package/lang/translations/fi.po +68 -4
- package/lang/translations/fr.po +68 -4
- package/lang/translations/gl.po +65 -1
- package/lang/translations/he.po +68 -4
- package/lang/translations/hi.po +68 -4
- package/lang/translations/hr.po +65 -1
- package/lang/translations/hu.po +68 -4
- package/lang/translations/id.po +68 -4
- package/lang/translations/it.po +68 -4
- package/lang/translations/ja.po +68 -4
- package/lang/translations/ko.po +68 -4
- package/lang/translations/lt.po +68 -4
- package/lang/translations/lv.po +68 -4
- package/lang/translations/ms.po +68 -4
- package/lang/translations/nl.po +68 -4
- package/lang/translations/no.po +68 -4
- package/lang/translations/pl.po +68 -4
- package/lang/translations/pt-br.po +68 -4
- package/lang/translations/pt.po +68 -4
- package/lang/translations/ro.po +68 -4
- package/lang/translations/ru.po +68 -4
- package/lang/translations/sk.po +68 -4
- package/lang/translations/sr-latn.po +68 -4
- package/lang/translations/sr.po +69 -5
- package/lang/translations/sv.po +68 -4
- package/lang/translations/th.po +68 -4
- package/lang/translations/tk.po +65 -1
- package/lang/translations/tr.po +68 -4
- package/lang/translations/tt.po +65 -1
- package/lang/translations/uk.po +68 -4
- package/lang/translations/ur.po +65 -1
- package/lang/translations/vi.po +68 -4
- package/lang/translations/zh-cn.po +68 -4
- package/lang/translations/zh.po +68 -4
- package/package.json +4 -4
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.js +1 -1
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/documentlist.js +2 -2
- package/src/integrations/documentlistproperties.js +23 -0
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.js +23 -0
- package/src/integrations/font.js +2 -2
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.js +23 -0
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.js +23 -0
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.js +23 -0
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableproperties.js +23 -0
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.js +2 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x246e=['has','createTableWalker','$graveyard','document','_areSelectedCellsMergable','commands','find','_acceptFormatSuggestionCallbackFactory','format','_suggestionFactory','*Split\x20cell:*\x20vertically','_areMergableCells','rootName','_isForcedDefaultExecutionBlock','trackChanges','markMultiRangeBlockFormat','afterInit','filter','table','push','tableCell','enableCommand','detach','mergeTableCells','formatBlock','execute','setSelection','refresh','plugins','*Merge\x20cells*','mergeTableCellLeft','getAncestors','getSuggestions','element','author','change','splitTableCellVertically','return','mergeTableCellDown','direction','size','map','getCellLocation','editor','TrackChangesEditing','splitTableCellHorizontally','registerDescriptionCallback','getFirstPosition','TableUtils','deletion','getRanges','length','model','containsRange','_tablePostFixingSubtypes','markBlockFormat','type','createRangeOn','commandName','_descriptionFactory','TableEditing','findAncestor','*Split\x20cell:*\x20horizontally','horizontally','highest','cell','set:isEnabled','mergeTableCellRight','mergeTableCellUp','isEnabled','stop','root','getSelectionAffectedTableCells','requires','subType','insertion','from','get','locale','accept','fromRange','selection','value','add'];(function(_0x3b66ef,_0x246ec2){const _0x2fe05b=function(_0x151669){while(--_0x151669){_0x3b66ef['push'](_0x3b66ef['shift']());}};_0x2fe05b(++_0x246ec2);}(_0x246e,0x15d));const _0x2fe0=function(_0x3b66ef,_0x246ec2){_0x3b66ef=_0x3b66ef-0x0;let _0x2fe05b=_0x246e[_0x3b66ef];return _0x2fe05b;};import{Plugin as _0x169fcf}from'ckeditor5/src/core';import _0x59f489 from'./table';import{LiveRange as _0x45b102}from'ckeditor5/src/engine';import{getTranslation as _0x5e55d5}from'../utils/common-translations';export default class pt extends _0x169fcf{static get[_0x2fe0('0x3c')](){return[_0x59f489];}[_0x2fe0('0x3')](){const _0x279e69=this[_0x2fe0('0x1e')],_0x3d3e54=_0x279e69[_0x2fe0('0x27')][_0x2fe0('0x4a')][_0x2fe0('0x44')],_0x54b434=_0x279e69[_0x2fe0('0x41')];if(!_0x279e69[_0x2fe0('0xf')]['has'](_0x2fe0('0x2f')))return;const _0x5384a2=_0x279e69['plugins']['get'](_0x2fe0('0x1f')),_0x556e0d=_0x279e69[_0x2fe0('0xf')]['get'](_0x2fe0('0x23')),_0x21b99f=_0x279e69[_0x2fe0('0xf')]['get'](_0x59f489);_0x21b99f[_0x2fe0('0x29')][_0x2fe0('0x6')](_0x2fe0('0xa')),_0x5384a2[_0x2fe0('0x8')](_0x2fe0('0xa'),()=>{const _0x18e87f=_0x556e0d[_0x2fe0('0x3b')](_0x279e69['model'][_0x2fe0('0x4a')][_0x2fe0('0x44')]);_0x279e69['model'][_0x2fe0('0x16')](()=>{_0x5384a2[_0x2fe0('0x2')](_0x18e87f,{'commandName':_0x2fe0('0xa'),'commandParams':[]},[],'mergeTableCells');});}),_0x279e69[_0x2fe0('0x4c')][_0x2fe0('0x40')](_0x2fe0('0xa'))['on'](_0x2fe0('0xc'),(_0x32a233,_0x415674)=>{_0x279e69['commands'][_0x2fe0('0x40')](_0x2fe0('0x1'))[_0x2fe0('0x45')]&&(_0x415674['length']>0x0&&_0x415674[_0x415674[_0x2fe0('0x26')]-0x1]&&_0x415674[_0x415674['length']-0x1]['forceDefaultExecution']||_0x5384a2[_0x2fe0('0x0')]||this[_0x2fe0('0x4b')]()||_0x32a233['stop']());},{'priority':_0x2fe0('0x33')});for(const _0x1888ce of[_0x2fe0('0x37'),_0x2fe0('0x36'),_0x2fe0('0x19'),_0x2fe0('0x11')]){const _0x104dab=_0x279e69[_0x2fe0('0x4c')][_0x2fe0('0x40')](_0x1888ce);_0x5384a2['enableCommand'](_0x1888ce,()=>{const _0x2deb63=_0x279e69[_0x2fe0('0x27')]['document'][_0x2fe0('0x44')][_0x2fe0('0x22')]()[_0x2fe0('0x12')]()[_0x2fe0('0x4d')](_0x92a2c0=>_0x92a2c0['is'](_0x2fe0('0x14'),_0x2fe0('0x7'))),_0x48c944=_0x104dab[_0x2fe0('0x45')];_0x279e69['model']['change'](()=>{_0x5384a2[_0x2fe0('0x2')]([_0x2deb63,_0x48c944],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1a7511 of['splitTableCellVertically',_0x2fe0('0x20')]){const _0x323bd1=_0x279e69['commands'][_0x2fe0('0x40')](_0x1a7511);_0x5384a2[_0x2fe0('0x8')](_0x1a7511,()=>{const _0x50ea1b=_0x556e0d[_0x2fe0('0x3b')](_0x279e69[_0x2fe0('0x27')]['document']['selection'])[0x0],_0x17a142=_0x50ea1b[_0x2fe0('0x30')](_0x2fe0('0x5')),{column:_0x5c4b9e,row:_0x37bf37}=_0x556e0d[_0x2fe0('0x1d')](_0x50ea1b);let _0x560d1f=[];if(_0x2fe0('0x32')==_0x323bd1[_0x2fe0('0x1a')]){const _0x4a467f=_0x556e0d[_0x2fe0('0x48')](_0x17a142,{'startRow':_0x37bf37,'endRow':_0x37bf37,'includeAllSlots':!0x0});_0x560d1f=Array[_0x2fe0('0x3f')](_0x4a467f)[_0x2fe0('0x1c')](_0x160e2c=>_0x160e2c['cell']);}else{const _0x514eb0=_0x556e0d['createTableWalker'](_0x17a142,{'column':_0x5c4b9e,'includeAllSlots':!0x0});_0x560d1f=Array[_0x2fe0('0x3f')](_0x514eb0)[_0x2fe0('0x1c')](_0x4c3cf7=>_0x4c3cf7[_0x2fe0('0x34')]);}_0x279e69[_0x2fe0('0x27')][_0x2fe0('0x16')](_0x499a4d=>{_0x5384a2[_0x2fe0('0x2a')](_0x499a4d['createRangeOn'](_0x50ea1b),{'commandName':_0x1a7511,'commandParams':[]},_0x560d1f,_0x1a7511);});});}_0x5384a2[_0x2fe0('0x2e')]['registerDescriptionCallback'](_0x7f74e8=>{const {data:_0x16b11a}=_0x7f74e8;if(_0x16b11a)return _0x2fe0('0xa')==_0x16b11a['commandName']?{'type':'format','content':_0x5e55d5(_0x54b434,_0x2fe0('0x10'))}:void 0x0;}),_0x5384a2[_0x2fe0('0x2e')][_0x2fe0('0x21')](_0x1e54ac=>{const {data:_0x5e8db2}=_0x1e54ac;if(_0x5e8db2)return _0x2fe0('0x17')==_0x5e8db2['commandName']?{'type':_0x2fe0('0x4f'),'content':_0x5e55d5(_0x54b434,_0x2fe0('0x51'))}:_0x2fe0('0x20')==_0x5e8db2[_0x2fe0('0x2d')]?{'type':_0x2fe0('0x4f'),'content':_0x5e55d5(_0x54b434,_0x2fe0('0x31'))}:void 0x0;});const _0x36e10c=_0x21b99f[_0x2fe0('0x4e')]();for(const _0x5591ad of[_0x2fe0('0x37'),_0x2fe0('0x36'),_0x2fe0('0x19'),_0x2fe0('0x11')])_0x5384a2[_0x2fe0('0x50')]['registerCustomCallback'](_0x2fe0('0xb'),_0x5591ad,_0x2fe0('0x42'),_0x36e10c);for(const _0x289e35 of[_0x2fe0('0x17'),_0x2fe0('0x20')])_0x5384a2[_0x2fe0('0x50')]['registerCustomCallback'](_0x2fe0('0xb'),_0x289e35,'accept',_0x36e10c);_0x5384a2[_0x2fe0('0x50')]['registerCustomCallback']('formatBlock',_0x2fe0('0xa'),_0x2fe0('0x42'),_0x6fd5f8=>{_0x279e69[_0x2fe0('0x27')][_0x2fe0('0x16')](_0x474036=>{const _0x3dc55c=Array['from'](_0x3d3e54[_0x2fe0('0x25')]())[_0x2fe0('0x1c')](_0x2d1f17=>_0x45b102[_0x2fe0('0x43')](_0x2d1f17));_0x474036['setSelection'](_0x6fd5f8),_0x279e69['commands'][_0x2fe0('0x40')](_0x2fe0('0xa'))[_0x2fe0('0xe')](),_0x279e69[_0x2fe0('0xc')](_0x2fe0('0xa'),{'forceDefaultExecution':!0x0});const _0x29180b=_0x3dc55c[_0x2fe0('0x4')](_0x35e613=>_0x2fe0('0x49')!=_0x35e613[_0x2fe0('0x3a')][_0x2fe0('0x53')]);_0x29180b[_0x2fe0('0x26')]>0x0&&_0x474036[_0x2fe0('0xd')](_0x29180b);for(const _0x3e197e of _0x3dc55c)_0x3e197e[_0x2fe0('0x9')]();});});for(const _0x35a749 of[_0x2fe0('0x37'),_0x2fe0('0x19'),_0x2fe0('0x11'),_0x2fe0('0x36')]){const _0x5e87b6=_0x279e69[_0x2fe0('0x4c')][_0x2fe0('0x40')](_0x35a749);_0x5e87b6['on'](_0x2fe0('0x35'),(_0x158f9b,_0x574b5a,_0x5ef03f)=>{if(_0x5ef03f){const _0x4ed3ab=_0x279e69[_0x2fe0('0x27')]['document'][_0x2fe0('0x44')][_0x2fe0('0x22')]()[_0x2fe0('0x12')]()[_0x2fe0('0x4d')](_0x49234e=>_0x49234e['is']('element',_0x2fe0('0x7')));this['_areMergableCells'](_0x5e87b6[_0x2fe0('0x45')],_0x4ed3ab)||(_0x158f9b[_0x2fe0('0x18')]=!0x1,_0x158f9b[_0x2fe0('0x39')]());}},{'priority':'low'});}}[_0x2fe0('0x4b')](){const _0xa33e22=this[_0x2fe0('0x1e')]['commands'][_0x2fe0('0x40')]('mergeTableCells'),_0x1c27af=this[_0x2fe0('0x1e')][_0x2fe0('0xf')][_0x2fe0('0x40')]('TableUtils');if(!_0xa33e22[_0x2fe0('0x38')])return!0x1;const _0x3edd93=_0x1c27af[_0x2fe0('0x3b')](this[_0x2fe0('0x1e')][_0x2fe0('0x27')][_0x2fe0('0x4a')][_0x2fe0('0x44')]);for(const _0x51ecfb of _0x3edd93)for(const _0x2313b0 of _0x3edd93)if(_0x51ecfb!=_0x2313b0&&!this[_0x2fe0('0x52')](_0x51ecfb,_0x2313b0))return!0x1;return!0x0;}[_0x2fe0('0x52')](_0x252a92,_0x1f3d60){const _0x12e1c7=this[_0x2fe0('0x1e')][_0x2fe0('0xf')][_0x2fe0('0x40')](_0x2fe0('0x1f')),_0x17e77b=this['editor']['model'][_0x2fe0('0x2c')](_0x252a92),_0xbfc4a3=this[_0x2fe0('0x1e')][_0x2fe0('0x27')]['createRangeOn'](_0x1f3d60),_0x49f07e=new Set(),_0x2f076a=new Set();for(const _0x34b70c of _0x12e1c7[_0x2fe0('0x13')]())if((_0x2fe0('0x3e')==_0x34b70c[_0x2fe0('0x2b')]||_0x2fe0('0x24')==_0x34b70c['type']||'mergeTableCells'==_0x34b70c[_0x2fe0('0x3d')])&&_0x34b70c['isInContent'])for(const _0x1dac62 of _0x34b70c[_0x2fe0('0x25')]())_0x1dac62[_0x2fe0('0x28')](_0x17e77b,!0x0)&&_0x49f07e[_0x2fe0('0x46')](_0x34b70c['type']+':'+_0x34b70c[_0x2fe0('0x15')]['id']),_0x1dac62[_0x2fe0('0x28')](_0xbfc4a3,!0x0)&&_0x2f076a[_0x2fe0('0x46')](_0x34b70c[_0x2fe0('0x2b')]+':'+_0x34b70c[_0x2fe0('0x15')]['id']);if(_0x49f07e[_0x2fe0('0x1b')]!=_0x2f076a[_0x2fe0('0x1b')])return!0x1;for(const _0x2967d0 of _0x49f07e)if(!_0x2f076a[_0x2fe0('0x47')](_0x2967d0))return!0x1;return!0x0;}}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x190a=['registerDescriptionCallback','TrackChangesTableProperties','enableCommand','tableCellBorderStyle','TableUtils','afterInit','handleDiscardAction','TrackChangesEditing','TableCellPropertiesEditing','document','markBlockFormat','_handlePropertyChange','setAttribute','selection','table','getSuggestions','_descriptionFactory','enqueueChange','tableCellBorderWidth','tableCellHorizontalAlignment','_getSuggestion','tableCellVerticalAlignment','get','tableProperties','tableWidth','getFirstPosition','formatBlock','tableBorderStyle','tableCellBackgroundColor','subType','tableBorderColor','tableCellBorderColor','start','discard','editor','getContainedElement','commandParams','tableCellProperties','tableCellPadding','tableCellWidth','accept','findAncestor','getAttribute','getSuggestionCallback','tableBorderWidth','plugins','_suggestionFactory','change','handleSuggestionDescription','format','*Format:*\x20change\x20table\x20cell\x20properties','registerCustomCallback','batch','pluginName','tableCellHeight','model','nodeAfter'];(function(_0x5e5192,_0x190aac){const _0x2ca38e=function(_0x544e4a){while(--_0x544e4a){_0x5e5192['push'](_0x5e5192['shift']());}};_0x2ca38e(++_0x190aac);}(_0x190a,0x1f0));const _0x2ca3=function(_0x5e5192,_0x190aac){_0x5e5192=_0x5e5192-0x0;let _0x2ca38e=_0x190a[_0x5e5192];return _0x2ca38e;};import{Plugin as _0x14c5a8}from'ckeditor5/src/core';import{getTranslation as _0x59db7b}from'../utils/common-translations';export default class At extends _0x14c5a8{static get[_0x2ca3('0xd')](){return _0x2ca3('0x12');}[_0x2ca3('0x16')](){const _0x6bfa97=this[_0x2ca3('0x33')][_0x2ca3('0x5')]['get']('TrackChangesEditing');if(this[_0x2ca3('0x33')][_0x2ca3('0x5')]['has']('TablePropertiesEditing')){this[_0x2ca3('0x28')]=[_0x2ca3('0x2f'),_0x2ca3('0x2c'),_0x2ca3('0x4'),'tableAlignment',_0x2ca3('0x29'),'tableHeight','tableBackgroundColor'];for(const _0x391e7d of this[_0x2ca3('0x28')])_0x6bfa97[_0x2ca3('0x13')](_0x391e7d,(_0x2da5cb,_0x403094)=>{const _0xf101be=this[_0x2ca3('0x33')]['model'][_0x2ca3('0x1a')][_0x2ca3('0x1e')][_0x2ca3('0x2a')]()[_0x2ca3('0x1')](_0x2ca3('0x1f'));this['_handlePropertyChange'](_0x391e7d,[_0xf101be],this[_0x2ca3('0x28')],'tableProperties',_0x2da5cb,_0x403094);});_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x28'),_0x2ca3('0x0'),_0x6bfa97[_0x2ca3('0x6')]['getSuggestionCallback'](_0x2ca3('0x2b'),null,_0x2ca3('0x32'))),_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x28'),_0x2ca3('0x32'),(_0x1e55f1,_0x49c58d)=>this[_0x2ca3('0x17')](this[_0x2ca3('0x28')],_0x1e55f1,_0x49c58d)),_0x6bfa97['_suggestionFactory'][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x28'),'join',()=>!0x1);}if(this[_0x2ca3('0x33')]['plugins']['has'](_0x2ca3('0x19'))){this[_0x2ca3('0x36')]=[_0x2ca3('0x30'),_0x2ca3('0x14'),_0x2ca3('0x23'),_0x2ca3('0x37'),_0x2ca3('0x38'),_0x2ca3('0xe'),_0x2ca3('0x2d'),_0x2ca3('0x24'),_0x2ca3('0x26')];for(const _0x35cf29 of this['tableCellProperties'])_0x6bfa97[_0x2ca3('0x13')](_0x35cf29,(_0x5e11be,_0x376194)=>{const _0x62f47d=this[_0x2ca3('0x33')]['plugins']['get'](_0x2ca3('0x15'))['getSelectionAffectedTableCells'](this[_0x2ca3('0x33')][_0x2ca3('0xf')][_0x2ca3('0x1a')][_0x2ca3('0x1e')]);this[_0x2ca3('0x1c')](_0x35cf29,_0x62f47d,this[_0x2ca3('0x36')],_0x2ca3('0x36'),_0x5e11be,_0x376194);});_0x6bfa97['_suggestionFactory']['registerCustomCallback'](_0x2ca3('0x2b'),_0x2ca3('0x36'),'accept',_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0x3')](_0x2ca3('0x2b'),null,'discard')),_0x6bfa97['_suggestionFactory'][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x36'),_0x2ca3('0x32'),(_0x220313,_0x11f51c)=>this[_0x2ca3('0x17')](this[_0x2ca3('0x36')],_0x220313,_0x11f51c)),_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x36'),'join',()=>!0x1);}_0x6bfa97[_0x2ca3('0x21')][_0x2ca3('0x11')](_0x5478a7=>this[_0x2ca3('0x8')](_0x5478a7));}['_handlePropertyChange'](_0x4a24a5,_0x4c5638,_0x7adbde,_0xdc0776,_0x31e6d8,_0x5bef19){const _0x10d68c=this[_0x2ca3('0x33')][_0x2ca3('0x5')][_0x2ca3('0x27')](_0x2ca3('0x18'));this['editor'][_0x2ca3('0xf')][_0x2ca3('0x22')](_0x5bef19[_0x2ca3('0xc')],()=>{for(const _0x10c894 of _0x4c5638){if(this['_getSuggestion'](_0x10c894,_0xdc0776))_0x31e6d8(_0x5bef19);else{const _0xdce01e={};for(const _0x41016a of _0x7adbde){const _0x235d9c=_0x10c894[_0x2ca3('0x2')](_0x41016a);void 0x0!==_0x235d9c&&(_0xdce01e[_0x41016a]=_0x235d9c);}_0x31e6d8(_0x5bef19),_0x10d68c[_0x2ca3('0x1b')](_0x10c894,{'commandParams':[_0xdce01e]},[],_0xdc0776);}}});}[_0x2ca3('0x17')](_0xb79ed8,_0x25c89c,_0x45c60a){const _0x86de88=_0x25c89c[0x0][_0x2ca3('0x31')][_0x2ca3('0x10')],_0x556c2c=_0x45c60a[_0x2ca3('0x35')][0x0];this[_0x2ca3('0x33')][_0x2ca3('0xf')][_0x2ca3('0x7')](_0xcf3b14=>{for(const _0x5ef3c1 of _0xb79ed8)void 0x0!==_0x556c2c[_0x5ef3c1]?_0xcf3b14[_0x2ca3('0x1d')](_0x5ef3c1,_0x556c2c[_0x5ef3c1],_0x86de88):_0xcf3b14['removeAttribute'](_0x5ef3c1,_0x86de88);});}[_0x2ca3('0x8')](_0xc8afec){if(_0xc8afec['data'])switch(_0xc8afec[_0x2ca3('0x2e')]){case'tableProperties':return{'type':_0x2ca3('0x9'),'content':_0x59db7b(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case _0x2ca3('0x36'):return{'type':_0x2ca3('0x9'),'content':_0x59db7b(this[_0x2ca3('0x33')]['locale'],_0x2ca3('0xa'))};}}[_0x2ca3('0x25')](_0x53d019,_0x26e68e){const _0x3ebbad=this['editor'][_0x2ca3('0x5')]['get'](_0x2ca3('0x18'));for(const _0xdf9792 of _0x3ebbad[_0x2ca3('0x20')]({'skipNotAttached':!0x0})){const _0x44e528=_0xdf9792[_0x2ca3('0x34')]();if(_0xdf9792[_0x2ca3('0x2e')]===_0x26e68e&&_0x44e528===_0x53d019)return _0xdf9792;}return null;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1120=['TrackChangesEditing','_descriptionFactory','createRange','updateMarker','Title','get','forward','registerPostFixer','getChangedMarkers','removeMarker','model','editor','end','plugins','from','locale','getNearestSelectionRange','title-content','has','start','isTouching','registerElementLabel','document','element','afterInit','schema','suggestion','differ','isCollapsed','newRange'];(function(_0x353a0f,_0x112058){const _0x3f4cb9=function(_0xbd409d){while(--_0xbd409d){_0x353a0f['push'](_0x353a0f['shift']());}};_0x3f4cb9(++_0x112058);}(_0x1120,0x143));const _0x3f4c=function(_0x353a0f,_0x112058){_0x353a0f=_0x353a0f-0x0;let _0x3f4cb9=_0x1120[_0x353a0f];return _0x3f4cb9;};import{Plugin as _0x1123aa}from'ckeditor5/src/core';import{getTranslation as _0x3d2f7f}from'../utils/common-translations';export default class bt extends _0x1123aa{[_0x3f4c('0x1')](){const _0x113081=this[_0x3f4c('0x12')];if(!_0x113081[_0x3f4c('0x14')][_0x3f4c('0x19')](_0x3f4c('0xb')))return;const _0x596d11=_0x113081[_0x3f4c('0x14')][_0x3f4c('0xc')](_0x3f4c('0x7'));_0x596d11[_0x3f4c('0x8')][_0x3f4c('0x1c')](_0x3f4c('0x18'),()=>_0x3d2f7f(_0x113081[_0x3f4c('0x16')],'ELEMENT_TITLE')),_0x113081[_0x3f4c('0x11')][_0x3f4c('0x1d')][_0x3f4c('0xe')](_0x1d3db3=>{let _0x59c9b2=!0x1;const _0x3d94d8=Array[_0x3f4c('0x15')](_0x113081[_0x3f4c('0x11')][_0x3f4c('0x1d')][_0x3f4c('0x4')][_0x3f4c('0xf')]());for(const {name:_0x542ea0,data:_0x45d6fc}of _0x3d94d8){const {group:_0x27cf07}=_0x596d11['_splitMarkerName'](_0x542ea0);if(_0x3f4c('0x3')!==_0x27cf07||!_0x45d6fc[_0x3f4c('0x6')])continue;const _0x3c2e61=_0x45d6fc[_0x3f4c('0x6')],_0x35200b=_0x3c2e61[_0x3f4c('0x13')]['nodeBefore'];if(!_0x35200b||!_0x35200b['is'](_0x3f4c('0x0'),_0x3f4c('0x18')))continue;if(!_0x3c2e61[_0x3f4c('0x1a')][_0x3f4c('0x1b')](_0x3c2e61[_0x3f4c('0x13')]))continue;const _0x101aae=_0x113081[_0x3f4c('0x11')][_0x3f4c('0x2')][_0x3f4c('0x17')](_0x3c2e61[_0x3f4c('0x13')],_0x3f4c('0xd'));if(_0x101aae&&_0x101aae[_0x3f4c('0x5')]){const _0x88c3f=_0x1d3db3[_0x3f4c('0x9')](_0x3c2e61[_0x3f4c('0x1a')],_0x101aae[_0x3f4c('0x1a')]);_0x88c3f['isEqual'](_0x3c2e61)||(_0x1d3db3[_0x3f4c('0xa')](_0x542ea0,{'range':_0x88c3f}),_0x59c9b2=!0x0);}_0x59c9b2||(_0x1d3db3[_0x3f4c('0x10')](_0x542ea0),_0x59c9b2=!0x0);}return _0x59c9b2;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a2b=['afterInit','editor','enableCommand','plugins','UndoEditing','redo','get'];(function(_0xc4f9db,_0x5a2b96){const _0x216ac0=function(_0x2b084c){while(--_0x2b084c){_0xc4f9db['push'](_0xc4f9db['shift']());}};_0x216ac0(++_0x5a2b96);}(_0x5a2b,0x97));const _0x216a=function(_0xc4f9db,_0x5a2b96){_0xc4f9db=_0xc4f9db-0x0;let _0x216ac0=_0x5a2b[_0xc4f9db];return _0x216ac0;};import{Plugin as _0x22cb3a}from'ckeditor5/src/core';export default class St extends _0x22cb3a{[_0x216a('0x3')](){const _0x28b7cb=this[_0x216a('0x4')],_0x4b2408=_0x28b7cb[_0x216a('0x6')][_0x216a('0x2')]('TrackChangesEditing');_0x28b7cb['plugins']['has'](_0x216a('0x0'))&&(_0x4b2408[_0x216a('0x5')]('undo'),_0x4b2408[_0x216a('0x5')](_0x216a('0x1')));}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x249d=['createRangeOn','span','markerName','name','mapper','consumable','isContent','nextSibling','element','createUIElement','getItems','addClass','toViewPosition','get','push','TrackChangesEditing','toViewElement','isBlock','type','listItem','test','includes','start','getWalker','markerRange','addHighlight','previousPosition','elementEnd','writer','ck-suggestion-marker-','item','listIndent','activeMarkers','bindElementToMarker','getAttribute'];(function(_0x210e01,_0x249d30){const _0x15ebb2=function(_0x196545){while(--_0x196545){_0x210e01['push'](_0x210e01['shift']());}};_0x15ebb2(++_0x249d30);}(_0x249d,0xee));const _0x15eb=function(_0x210e01,_0x249d30){_0x210e01=_0x210e01-0x0;let _0x15ebb2=_0x249d[_0x210e01];return _0x15ebb2;};export function getRangesWithAttribute(_0x6dc7cf,_0x2a1d98,_0x5e88e2){const _0x562b2b=[];for(const _0x487368 of _0x2a1d98[_0x15eb('0x11')]())_0x487368['hasAttribute'](_0x6dc7cf)&&_0x562b2b[_0x15eb('0x15')](_0x5e88e2[_0x15eb('0x7')](_0x487368));return _0x562b2b;}export function getElementsAffectedByListItemRename(_0x5b5b56){const _0x4963ff=[];if(_0x5b5b56['is'](_0x15eb('0xf'),_0x15eb('0x1a'))){let _0x1a7577=_0x5b5b56[_0x15eb('0xe')];for(;_0x1a7577&&_0x1a7577['is'](_0x15eb('0xf'),_0x15eb('0x1a'))&&_0x1a7577[_0x15eb('0x6')](_0x15eb('0x3'))>0x0;)_0x4963ff[_0x15eb('0x15')](_0x1a7577),_0x1a7577=_0x1a7577[_0x15eb('0xe')];}return _0x4963ff;}export function downcastSplitMergeMarker(_0x55f953,_0x303bbf,{showActiveMarker:_0x1cad8f=!0x0}={}){const _0x3483c3=_0x55f953['plugins'][_0x15eb('0x14')](_0x15eb('0x16'));return(_0x3ce661,_0x154006,_0x39221a)=>{if(!_0x39221a[_0x15eb('0xc')][_0x15eb('0x1b')](_0x154006[_0x15eb('0x1f')],_0x3ce661[_0x15eb('0xa')]))return;const _0x27a0b1=_0x154006[_0x15eb('0x1f')][_0x15eb('0x1e')](),_0x135278=_0x154006[_0x15eb('0x1f')][_0x15eb('0x1d')],_0x80dada=_0x55f953['model']['schema'];let _0x3b0233=null,_0x8d5002=null,_0x12fda4=!0x1,_0x4f715d=!0x1;for(const _0x7af28d of _0x27a0b1){const _0x284369=_0x7af28d[_0x15eb('0x2')];_0x12fda4=_0x12fda4||_0x80dada[_0x15eb('0xd')](_0x284369);const _0x5ef84c=_0x39221a[_0x15eb('0xb')][_0x15eb('0x17')](_0x284369);if(_0x5ef84c&&_0x5ef84c['getCustomProperty'](_0x15eb('0x20')))return;_0x15eb('0x22')==_0x7af28d[_0x15eb('0x19')]&&(_0x80dada[_0x15eb('0x18')](_0x284369)&&!_0x80dada['isLimit'](_0x284369)&&(_0x284369[_0x15eb('0xe')]||_0x135278['isAtEnd']?_0x3b0233&&_0x3b0233['parent']==_0x284369||(_0x3b0233=_0x284369,_0x3db27d(_0x7af28d[_0x15eb('0x21')]),_0x4f715d=!0x0):_0x8d5002=_0x8d5002||_0x7af28d[_0x15eb('0x21')]));}function _0x3db27d(_0x498dcc){const _0x166bdf=_0x39221a[_0x15eb('0x0')][_0x15eb('0x10')](_0x15eb('0x8'),{'class':_0x15eb('0x1')+_0x303bbf}),_0x373473=_0x39221a[_0x15eb('0xb')][_0x15eb('0x13')](_0x498dcc);_0x1cad8f&&_0x3483c3[_0x15eb('0x4')][_0x15eb('0x1c')](_0x154006[_0x15eb('0x9')])&&_0x39221a[_0x15eb('0x0')][_0x15eb('0x12')]('ck-suggestion-marker--active',_0x166bdf),_0x39221a[_0x15eb('0x0')]['insert'](_0x373473,_0x166bdf),_0x39221a['mapper'][_0x15eb('0x5')](_0x166bdf,_0x154006['markerName']);}_0x12fda4||_0x4f715d||!_0x8d5002||_0x3db27d(_0x8d5002);};}
|
package/src/suggestion.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ca7=['start','addMarkerName','subType','addMarker','_model','data','next','hasComments','onAccept','getMarkers','attributes','_onDiscard','createdAt','getAllAdjacentSuggestions','getMarkerNames','filter','@external','_markerNames','addRange','accept','isIntersecting','nodeBefore','get','nodeAfter','getRanges','getContainedElement','markers','commentThread','end','getRange','clear','toJSON','isInContent','isIntersectingWithRange','decorate','_onAccept','removeMarkers','authoredAt','map','type','isMultiRange','getFirstMarker','head','isExternal','suggestion:','split','set','removeMarker','discard','creator','add','_onAttributesChange','author','onAttributesChange','push'];(function(_0x2c8a61,_0x4ca73d){const _0x2f55ae=function(_0x6e38e4){while(--_0x6e38e4){_0x2c8a61['push'](_0x2c8a61['shift']());}};_0x2f55ae(++_0x4ca73d);}(_0x4ca7,0x11f));const _0x2f55=function(_0x2c8a61,_0x4ca73d){_0x2c8a61=_0x2c8a61-0x0;let _0x2f55ae=_0x4ca7[_0x2c8a61];return _0x2f55ae;};import{Element as _0x3a47a1}from'ckeditor5/src/engine';import{ObservableMixin as _0x45ddf8,mix as _0x10b0bf,uid as _0x41f425}from'ckeditor5/src/utils';import{cloneDeep as _0x493417,isEqual as _0x4e7721,set as _0x1b5b7a,unset as _0x17a8d6}from'lodash-es';export default class o{constructor(_0x1a4f9a,_0x2b05f3){this['id']=_0x2b05f3['id'],this[_0x2f55('0x1b')]=_0x2b05f3[_0x2f55('0x1b')],this[_0x2f55('0x2d')]=_0x2b05f3[_0x2f55('0x2d')]||null,this[_0x2f55('0x28')]=_0x2b05f3[_0x2f55('0x28')],this['creator']=_0x2b05f3[_0x2f55('0x25')]||_0x2b05f3[_0x2f55('0x28')],this[_0x2f55('0x1f')]=Boolean(_0x2b05f3[_0x2f55('0x35')]&&_0x2b05f3[_0x2f55('0x35')][_0x2f55('0x4')]),this[_0x2f55('0x30')]=null,this[_0x2f55('0x2f')]=_0x1a4f9a,this[_0x2f55('0x17')]=_0x2b05f3[_0x2f55('0x33')],this[_0x2f55('0x36')]=_0x2b05f3['onDiscard'],this[_0x2f55('0x27')]=_0x2b05f3[_0x2f55('0x29')],this[_0x2f55('0x5')]=new Set(),this[_0x2f55('0x0')]=null,this['set'](_0x2f55('0x19'),null),this[_0x2f55('0x22')](_0x2f55('0x35'),_0x2b05f3[_0x2f55('0x35')]||{}),this['set']('previous',null),this['set']('next',null),this[_0x2f55('0x22')](_0x2f55('0xf'),null),this[_0x2f55('0x22')]('_saved',!0x1),this[_0x2f55('0x16')](_0x2f55('0x7')),this[_0x2f55('0x16')](_0x2f55('0x24'));}get[_0x2f55('0x1e')](){let _0x1ef8ff=this;for(;_0x1ef8ff['previous'];)_0x1ef8ff=_0x1ef8ff['previous'];return _0x1ef8ff;}get[_0x2f55('0x32')](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get[_0x2f55('0x1c')](){if(0x0==this[_0x2f55('0x5')]['size'])return!0x1;return 0x6==Array['from'](this[_0x2f55('0x5')])[0x0][_0x2f55('0x21')](':')['length'];}get[_0x2f55('0x14')](){return null!==this[_0x2f55('0x1d')]();}[_0x2f55('0x2c')](_0x219c05){this['_markerNames'][_0x2f55('0x26')](_0x219c05);}[_0x2f55('0x2')](){return Array['from'](this[_0x2f55('0x5')]);}[_0x2f55('0x34')](){return this[_0x2f55('0x2')]()[_0x2f55('0x1a')](_0x6847c6=>this[_0x2f55('0x2f')][_0x2f55('0xe')][_0x2f55('0xa')](_0x6847c6))[_0x2f55('0x3')](_0x43c4b5=>_0x43c4b5);}[_0x2f55('0x1d')](){return this[_0x2f55('0x34')]()[0x0]||null;}[_0x2f55('0x18')](){this[_0x2f55('0x2f')]['change'](_0x3d9f9e=>{for(const _0x32db39 of this[_0x2f55('0x34')]())_0x3d9f9e[_0x2f55('0x23')](_0x32db39);}),this[_0x2f55('0x5')][_0x2f55('0x12')]();}['removeMarker'](_0x3f44dc){this[_0x2f55('0x2f')]['change'](_0x4f8791=>{_0x4f8791['removeMarker'](_0x3f44dc);}),this[_0x2f55('0x5')]['delete'](_0x3f44dc);}[_0x2f55('0x6')](_0x32219c){const _0xf2b618=_0x2f55('0x20')+this['type']+':'+this[_0x2f55('0x2d')]+':'+this['id']+':'+this[_0x2f55('0x25')]['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0xf2b618),this[_0x2f55('0x2f')]['change'](_0x4cfd29=>{_0x4cfd29[_0x2f55('0x2e')](_0xf2b618,{'range':_0x32219c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2f55('0x15')](_0x5b978a){for(const _0x5ae994 of this[_0x2f55('0xc')]())if(_0x5ae994[_0x2f55('0x8')](_0x5b978a))return!0x0;return!0x1;}[_0x2f55('0xc')](){return this[_0x2f55('0x34')]()[_0x2f55('0x1a')](_0x32b761=>_0x32b761['getRange']());}['getItems'](){return this[_0x2f55('0xc')]()['reduce']((_0x47bd24,_0x56ab84)=>[..._0x47bd24,..._0x56ab84['getItems']()],[]);}['getFirstRange'](){return this[_0x2f55('0x1d')]()[_0x2f55('0x11')]();}[_0x2f55('0xd')](){const _0x3e80ba=this['getRanges']();if(0x1!=_0x3e80ba['length'])return null;const _0x584516=_0x3e80ba[0x0],_0x2c6b71=_0x584516[_0x2f55('0x2b')][_0x2f55('0xb')],_0x409339=_0x584516[_0x2f55('0x10')][_0x2f55('0x9')];return _0x2c6b71 instanceof _0x3a47a1?_0x2c6b71!=_0x409339?null:_0x2c6b71:null;}[_0x2f55('0x7')](){this[_0x2f55('0x17')](this['getRanges'](),this[_0x2f55('0x30')],this[_0x2f55('0x35')]),this[_0x2f55('0x18')]();}[_0x2f55('0x24')](){this['_onDiscard'](this['getRanges'](),this[_0x2f55('0x30')],this[_0x2f55('0x35')]),this[_0x2f55('0x18')]();}[_0x2f55('0x1')](){const _0x2717fa=[];let _0x578f16=this[_0x2f55('0x1e')];for(;_0x578f16;)_0x2717fa[_0x2f55('0x2a')](_0x578f16),_0x578f16=_0x578f16[_0x2f55('0x31')];return _0x2717fa;}['setAttribute'](_0x3e7d17,_0x9c110c){const _0x3561bb=_0x493417(this[_0x2f55('0x35')]);_0x1b5b7a(_0x3561bb,_0x3e7d17,_0x9c110c),_0x4e7721(_0x3561bb,this['attributes'])||(this['attributes']=_0x3561bb,this[_0x2f55('0x27')](_0x3561bb));}['removeAttribute'](_0x1cec75){const _0x1be117=_0x493417(this[_0x2f55('0x35')]);_0x17a8d6(_0x1be117,_0x1cec75),_0x4e7721(_0x1be117,this[_0x2f55('0x35')])||(this[_0x2f55('0x35')]=_0x1be117,this['_onAttributesChange'](this[_0x2f55('0x35')]));}[_0x2f55('0x13')](){return{'id':this['id'],'type':this['subType']?this[_0x2f55('0x1b')]+':'+this[_0x2f55('0x2d')]:this[_0x2f55('0x1b')],'authorId':this[_0x2f55('0x25')]['id'],'createdAt':this[_0x2f55('0x0')],'hasComments':this['hasComments'],'data':this[_0x2f55('0x30')],'attributes':this[_0x2f55('0x35')]};}static['getMultiRangeId'](){return _0x41f425()['substr'](0x1,0x5);}}_0x10b0bf(o,_0x45ddf8);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b48=['deletion','remove','_customCallbacks','*Split:*\x20%0','removeContainer','getFirstRange','normal','nextSibling','_addDescriptionItems','REPLACE_TEXT','isEmpty','*Remove:*\x20%0','matchingCallback','removeObject','*Merge:*\x20%0','softBreak','element','function','type','previousSibling','_schema','length','elementStart','add','text','label','removeEmptyContainer','getItemLabel','replace','isEqual','name','isObject','push','EmptyContainer','_itemLabelsCallbacks','addObject','_itemLabels','$1\x20$2','_resolveDescriptionItems','ELEMENT_SPACE','quantity','indexOf','skip','pop','Container','checkChild','elementEnd','match','*Insert:*\x20%0','getDescriptions','Object','registerElementLabel','get','data','addContainer','start','_locale','addEmptyContainer','insertion'];(function(_0x174c4e,_0x2b487e){const _0x473e87=function(_0x185f6b){while(--_0x185f6b){_0x174c4e['push'](_0x174c4e['shift']());}};_0x473e87(++_0x2b487e);}(_0x2b48,0xc5));const _0x473e=function(_0x174c4e,_0x2b487e){_0x174c4e=_0x174c4e-0x0;let _0x473e87=_0x2b48[_0x174c4e];return _0x473e87;};import{getTranslation as _0x2611e1}from'./utils/common-translations';import{priorities as _0x5e1d08,insertToPriorityArray as _0x13462c}from'ckeditor5/src/utils';export default class f{constructor(_0x56de77,_0x1dec71){this[_0x473e('0x29')]=[],this['_itemLabels']=new Map(),this[_0x473e('0xe')]=[],this[_0x473e('0x0')]=_0x56de77,this[_0x473e('0x24')]=_0x1dec71;}[_0x473e('0x1d')](_0xb9965c){const _0x144cc7=[];for(let _0x3cbba2=0x0;_0x3cbba2<_0xb9965c[_0x473e('0x1')];_0x3cbba2++){const _0x2c6dc3=_0xb9965c[_0x3cbba2];if(!_0x2c6dc3['isInContent'])continue;let _0x525177=!0x1;for(const _0x5dbe51 of this[_0x473e('0x29')]){const _0x3e64c3=_0x5dbe51(_0x2c6dc3);if(_0x3e64c3){_0x3e64c3['type']&&_0x144cc7[_0x473e('0xc')](_0x3e64c3),_0x525177=!0x0;break;}}if(!_0x525177){this[_0x473e('0x2f')](_0x144cc7,_0x2c6dc3);const _0xa8d758=_0xb9965c[_0x3cbba2+0x1];if(_0xa8d758&&!_0x2c6dc3['getFirstRange']()['end'][_0x473e('0x9')](_0xa8d758[_0x473e('0x2c')]()[_0x473e('0x23')])){const _0x3a7634=_0x144cc7[_0x144cc7[_0x473e('0x1')]-0x1],_0xb829d5=_0x473e('0x26')==_0x2c6dc3[_0x473e('0x39')]?_0x473e('0x3'):_0x473e('0x28');_0x3a7634&&'text'==_0x3a7634[_0x473e('0x39')]&&(_0x3a7634[_0xb829d5]+='\x0a');}}}return this[_0x473e('0x12')](_0x144cc7);}['registerDescriptionCallback'](_0x1b5fbe){this[_0x473e('0x29')][_0x473e('0xc')](_0x1b5fbe);}[_0x473e('0x1f')](_0x757c08,_0x2c14f6,_0x222c8e=_0x5e1d08[_0x473e('0x2d')]){_0x473e('0x38')==typeof _0x757c08?_0x13462c(this[_0x473e('0xe')],{'matchingCallback':_0x757c08,'label':_0x2c14f6,'priority':_0x222c8e}):this[_0x473e('0x10')]['set'](_0x757c08,_0x2c14f6);}[_0x473e('0x7')](_0x5dcdf4,_0x374eb9=0x1){let _0x22ce06;for(const _0x5f0eb7 of this[_0x473e('0xe')])if(_0x5f0eb7[_0x473e('0x33')](_0x5dcdf4)){_0x22ce06=_0x5f0eb7[_0x473e('0x5')];break;}return _0x22ce06||(_0x22ce06=this[_0x473e('0x10')][_0x473e('0x20')](_0x5dcdf4[_0x473e('0xa')])),_0x22ce06?_0x22ce06(_0x374eb9):0x1!==_0x374eb9?_0x374eb9+'\x20'+_0x5dcdf4[_0x473e('0xa')]+'s':''+_0x5dcdf4['name'];}[_0x473e('0x2f')](_0x4a955a,_0x59fc78){const _0x579d1f=_0x59fc78[_0x473e('0x2c')]()['getWalker'](),_0x324484=_0x473e('0x26')==_0x59fc78[_0x473e('0x39')]?_0x473e('0x3'):_0x473e('0x28');for(const _0x5cb0cf of _0x579d1f){const _0xea7cf1=_0x5cb0cf['item'],_0x286f80=_0x4a955a[_0x4a955a[_0x473e('0x1')]-0x1];if(_0xea7cf1['is']('textProxy'))_0x286f80&&_0x286f80[_0x473e('0x39')]['indexOf'](_0x473e('0x18'))>-0x1&&_0x4a955a[_0x473e('0x17')](),_0x286f80&&'text'==_0x286f80['type']?_0x286f80[_0x324484]+=_0xea7cf1[_0x473e('0x21')]:_0x4a955a[_0x473e('0xc')]({'type':_0x473e('0x4'),'add':_0x473e('0x3')==_0x324484?_0xea7cf1['data']:'','remove':_0x473e('0x28')==_0x324484?_0xea7cf1[_0x473e('0x21')]:''});else{if(this[_0x473e('0x0')][_0x473e('0xb')](_0xea7cf1)){if(_0x286f80&&_0x286f80[_0x473e('0x39')][_0x473e('0x15')]('Container')>-0x1&&_0x4a955a['pop'](),_0x473e('0x1a')==_0x5cb0cf[_0x473e('0x39')])continue;_0x286f80&&_0x286f80[_0x473e('0x39')]==_0x324484+_0x473e('0x1e')&&_0x286f80[_0x473e('0x37')][_0x473e('0xa')]==_0xea7cf1[_0x473e('0xa')]?_0x286f80['quantity']++:_0x4a955a[_0x473e('0xc')]({'type':_0x324484+_0x473e('0x1e'),'element':_0xea7cf1,'quantity':0x1}),_0x579d1f[_0x473e('0x16')](_0x9ea3ca=>!(_0x473e('0x1a')==_0x9ea3ca[_0x473e('0x39')]&&_0x9ea3ca['item']==_0xea7cf1));}else{if(this['_schema'][_0x473e('0x19')](_0xea7cf1,'$text')||_0xea7cf1['is'](_0x473e('0x37'),_0x473e('0x36'))){if(_0x473e('0x3')==_0x324484&&_0x473e('0x2')==_0x5cb0cf[_0x473e('0x39')]||_0x473e('0x28')==_0x324484&&_0x473e('0x1a')==_0x5cb0cf[_0x473e('0x39')])continue;if(_0x286f80&&-0x1==_0x286f80['type'][_0x473e('0x15')](_0x473e('0x18'))){_0x473e('0x4')==_0x286f80[_0x473e('0x39')]&&(_0x286f80[_0x324484]+='\x0a');continue;}let _0x11656c;if(_0x11656c=_0x473e('0x3')==_0x324484?_0xea7cf1[_0x473e('0x2e')]&&!this['_schema'][_0x473e('0xb')](_0xea7cf1[_0x473e('0x2e')])?_0xea7cf1[_0x473e('0x2e')]:null:_0xea7cf1[_0x473e('0x3a')]&&!this[_0x473e('0x0')][_0x473e('0xb')](_0xea7cf1[_0x473e('0x3a')])?_0xea7cf1[_0x473e('0x3a')]:null,_0xea7cf1[_0x473e('0x31')]||_0x11656c&&_0x11656c[_0x473e('0x31')]){const _0x53c51a=_0x11656c&&_0x11656c[_0x473e('0x31')]?_0x11656c:_0xea7cf1;_0x286f80&&_0x286f80[_0x473e('0x39')]==_0x324484+_0x473e('0xd')&&_0x286f80[_0x473e('0x37')]['name']==_0x53c51a['name']?_0x286f80[_0x473e('0x14')]++:_0x4a955a[_0x473e('0xc')]({'type':_0x324484+_0x473e('0xd'),'element':_0x53c51a,'quantity':0x1});}else _0x4a955a[_0x473e('0xc')]({'type':_0x324484+_0x473e('0x18'),'element':_0xea7cf1});}}}}}[_0x473e('0x12')](_0x32670d){const _0xea4979=this['_locale'],_0x1cc8ea=[];for(const _0x1d835c of _0x32670d){switch(_0x1d835c[_0x473e('0x39')]){case _0x473e('0x4'):if(_0x1d835c['add']=_0x1d835c[_0x473e('0x3')][_0x473e('0x8')](/(\S)\u000A+(\S)/g,_0x473e('0x11'))[_0x473e('0x8')](/\u000A/g,''),_0x1d835c[_0x473e('0x28')]=_0x1d835c[_0x473e('0x28')]['replace'](/(\S)\u000A+(\S)/g,_0x473e('0x11'))[_0x473e('0x8')](/\u000A/g,''),''!=_0x1d835c[_0x473e('0x3')]&&''!=_0x1d835c[_0x473e('0x28')]){_0x1cc8ea['push']({'type':_0x473e('0x8'),'content':_0x2611e1(_0xea4979,_0x473e('0x30'),['\x22'+_0x1d835c['remove']+'\x22','\x22'+_0x1d835c[_0x473e('0x3')]+'\x22'])});continue;}if(null!=_0x1d835c[_0x473e('0x3')]['match'](/^ +$/)){_0x1cc8ea[_0x473e('0xc')]({'type':_0x473e('0x26'),'content':_0x2611e1(_0xea4979,_0x473e('0x1c'),_0x2611e1(_0xea4979,'ELEMENT_SPACE',_0x1d835c[_0x473e('0x3')][_0x473e('0x1')]))});continue;}if(null!=_0x1d835c[_0x473e('0x28')][_0x473e('0x1b')](/^ +$/)){_0x1cc8ea['push']({'type':_0x473e('0x27'),'content':_0x2611e1(_0xea4979,_0x473e('0x32'),_0x2611e1(_0xea4979,_0x473e('0x13'),_0x1d835c[_0x473e('0x28')][_0x473e('0x1')]))});continue;}if(''!=_0x1d835c[_0x473e('0x3')]){_0x1cc8ea[_0x473e('0xc')]({'type':_0x473e('0x26'),'content':_0x2611e1(_0xea4979,_0x473e('0x1c'),'\x22'+_0x1d835c[_0x473e('0x3')]+'\x22')});continue;}_0x1cc8ea[_0x473e('0xc')]({'type':_0x473e('0x27'),'content':_0x2611e1(_0xea4979,_0x473e('0x32'),'\x22'+_0x1d835c[_0x473e('0x28')]+'\x22')});continue;case _0x473e('0x25'):case _0x473e('0xf'):_0x1cc8ea[_0x473e('0xc')]({'type':'insertion','content':_0x2611e1(_0xea4979,_0x473e('0x1c'),this[_0x473e('0x7')](_0x1d835c[_0x473e('0x37')],_0x1d835c[_0x473e('0x14')]))});continue;case _0x473e('0x6'):case _0x473e('0x34'):_0x1cc8ea['push']({'type':'deletion','content':_0x2611e1(_0xea4979,_0x473e('0x32'),this[_0x473e('0x7')](_0x1d835c[_0x473e('0x37')],_0x1d835c[_0x473e('0x14')]))});continue;case _0x473e('0x22'):_0x1cc8ea[_0x473e('0xc')]({'type':_0x473e('0x26'),'content':_0x2611e1(_0xea4979,_0x473e('0x2a'),this['getItemLabel'](_0x1d835c[_0x473e('0x37')],_0x1d835c['quantity']))});continue;case _0x473e('0x2b'):_0x1cc8ea['push']({'type':_0x473e('0x27'),'content':_0x2611e1(_0xea4979,_0x473e('0x35'),this[_0x473e('0x7')](_0x1d835c[_0x473e('0x37')],_0x1d835c[_0x473e('0x14')]))});continue;}_0x1cc8ea[_0x473e('0xc')](_0x1d835c);}return _0x1cc8ea;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2ec9=['TrackChanges','getSuggestions','pluginName','requires','editor','adapter','plugins','Comments','addSuggestionData','get'];(function(_0x5e54a3,_0x2ec938){var _0x34f74d=function(_0x151d42){while(--_0x151d42){_0x5e54a3['push'](_0x5e54a3['shift']());}};_0x34f74d(++_0x2ec938);}(_0x2ec9,0x1f0));var _0x34f7=function(_0x5e54a3,_0x2ec938){_0x5e54a3=_0x5e54a3-0x0;var _0x34f74d=_0x2ec9[_0x5e54a3];return _0x34f74d;};import{Plugin as _0x392369}from'ckeditor5/src/core';import _0x25cbda from'./trackchangesui';import _0x169b85 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x392369{static get[_0x34f7('0x7')](){return[_0x169b85,_0x25cbda,_0x34f7('0x1')];}static get[_0x34f7('0x6')](){return _0x34f7('0x4');}set[_0x34f7('0x9')](_0x371ce6){this[_0x34f7('0x8')][_0x34f7('0x0')]['get'](_0x169b85)[_0x34f7('0x9')]=_0x371ce6;}get[_0x34f7('0x9')](){return this[_0x34f7('0x8')][_0x34f7('0x0')][_0x34f7('0x3')](_0x169b85)[_0x34f7('0x9')];}['addSuggestion'](_0x4dcca9){return this[_0x34f7('0x8')][_0x34f7('0x0')]['get'](_0x169b85)[_0x34f7('0x2')](_0x4dcca9);}[_0x34f7('0x5')](_0x1ab63a){return this['editor']['plugins'][_0x34f7('0x3')](_0x169b85)[_0x34f7('0x5')](_0x1ab63a);}['getSuggestion'](_0xcdddb){return this[_0x34f7('0x8')][_0x34f7('0x0')]['get'](_0x169b85)['getSuggestion'](_0xcdddb);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37b8=['data','_adapter','find','getUser','get','init','names','editorCreator','config','plugins','TrackChangesEditing','WordCount','execute','reduce','trackChangesData','discardAllSuggestions','push','initialData','RevisionTracker','concat','create','extraPlugins','map','CommentsRepository','acceptAllSuggestions','includes','trackChangesData.editorCreator','model','TrackChangesDataGetter','getDataWithDiscardedSuggestions','Users','every','addSuggestionData','result','users','set','document','string','WebSocketGateway','getSuggestions','editor','appendChild','Pagination','destroy','pluginName','builtinPlugins','context','useAnonymousUser','requires','TrackChangesData','define','toolbar','function','getDataWithAcceptedSuggestions'];(function(_0x3c9e6c,_0x37b8e1){const _0x2ea25f=function(_0x3fc7a){while(--_0x3fc7a){_0x3c9e6c['push'](_0x3c9e6c['shift']());}};_0x2ea25f(++_0x37b8e1);}(_0x37b8,0x162));const _0x2ea2=function(_0x3c9e6c,_0x37b8e1){_0x3c9e6c=_0x3c9e6c-0x0;let _0x2ea25f=_0x37b8[_0x3c9e6c];return _0x2ea25f;};import{Plugin as _0x2eeda3}from'ckeditor5/src/core';import{CKEditorError as _0x2c1ed2}from'ckeditor5/src/utils';import _0x2023c7 from'./trackchangesediting';const D=[_0x2ea2('0x29'),_0x2ea2('0x10'),_0x2ea2('0x15')],w=[_0x2ea2('0x8'),_0x2ea2('0x2a'),'Autosave',_0x2ea2('0x23'),_0x2ea2('0xc')];export default class y extends _0x2eeda3{static get['requires'](){return[_0x2023c7];}static get['pluginName'](){return _0x2ea2('0x13');}[_0x2ea2('0x1d')](){const _0x4bf28e=this[_0x2ea2('0xa')];if(_0x4bf28e[_0x2ea2('0x20')][_0x2ea2('0x14')](_0x2ea2('0x32'),_0x572127=>_0x4bf28e['constructor'][_0x2ea2('0x2c')]('',_0x572127)),_0x2ea2('0x16')!=typeof _0x4bf28e[_0x2ea2('0x20')][_0x2ea2('0x1c')]('trackChangesData')[_0x2ea2('0x1f')])throw new _0x2c1ed2('track-changes-data-invalid-editor-creator');}[_0x2ea2('0x17')](_0x4bf57d){return T(this['editor'],!0x0,_0x4bf57d);}[_0x2ea2('0x35')](_0x4ce19a){return T(this[_0x2ea2('0xa')],!0x1,_0x4ce19a);}}class S extends _0x2eeda3{static get['pluginName'](){return _0x2ea2('0x34');}['init'](){this[_0x2ea2('0x3')]='end',this['editor'][_0x2ea2('0x21')][_0x2ea2('0x1c')](_0x2ea2('0x2f'))[_0x2ea2('0x19')]={'getCommentThread':()=>new Promise(()=>{})},this[_0x2ea2('0xa')][_0x2ea2('0x21')]['get'](_0x2ea2('0x22'))[_0x2ea2('0x19')]=null;}}async function T(_0xd9027,_0x78d933,_0x429ddc){const _0x5af8a2=function(_0x39717a){const _0x3aea50={};for(const _0x2825d8 of _0x39717a[_0x2ea2('0x20')][_0x2ea2('0x1e')]())D[_0x2ea2('0x31')](_0x2825d8)||(_0x3aea50[_0x2825d8]=_0x39717a[_0x2ea2('0x20')][_0x2ea2('0x1c')](_0x2825d8));const _0x320336=_0x39717a['constructor'][_0x2ea2('0xf')]||[],_0xf0aca4=_0x3aea50[_0x2ea2('0x2d')]||[];delete _0x3aea50['extraPlugins'];const _0x5c50b7=_0x320336[_0x2ea2('0x2b')](_0x3aea50[_0x2ea2('0x21')])[_0x2ea2('0x2b')](_0xf0aca4)[_0x2ea2('0x2e')](_0x239d6c=>_0x2ea2('0x7')==typeof _0x239d6c?_0x320336[_0x2ea2('0x1a')](_0x5d8f73=>_0x5d8f73['pluginName']==_0x239d6c):_0x239d6c),_0x46567f=Array['from'](new Set(_0x5c50b7)),_0x101e98=new Map();return _0x3aea50[_0x2ea2('0x21')]=_0x46567f['filter'](_0x3ad78a=>A(_0x3ad78a,_0x101e98)),_0x3aea50[_0x2ea2('0x21')][_0x2ea2('0x28')](S),_0x3aea50[_0x2ea2('0x21')]['push'](_0x2023c7),_0x3aea50;}(_0xd9027),_0x1c3f39=document['createDocumentFragment'](),_0x2d8b71=_0xd9027[_0x2ea2('0x20')][_0x2ea2('0x1c')](_0x2ea2('0x26'))[_0x2ea2('0x1f')],_0x27bb97=await _0x2d8b71(_0x5af8a2,()=>function(_0x4e1717){const _0x4cfcd3=document['createElement']('div');return _0x4e1717[_0x2ea2('0xb')](_0x4cfcd3),_0x4cfcd3;}(_0x1c3f39));!function(_0x307099,_0x46de50){const _0x2870ba=_0x307099[_0x2ea2('0x33')][_0x2ea2('0x6')]['getRootNames']()[_0x2ea2('0x25')]((_0x13dcde,_0x13b71d)=>(_0x13dcde[_0x13b71d]=_0x307099['data']['get']({'rootName':_0x13b71d}),_0x13dcde),{}),_0x4ac16f=_0x307099['plugins'][_0x2ea2('0x1c')](_0x2ea2('0x0'))[_0x2ea2('0x4')][_0x2ea2('0x2e')](_0x58baad=>({'id':_0x58baad['id']})),_0x3827ac=_0x307099[_0x2ea2('0x21')][_0x2ea2('0x1c')](_0x2ea2('0x22'))[_0x2ea2('0x9')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5690bc=_0x46de50['plugins'][_0x2ea2('0x1c')](_0x2ea2('0x0')),_0x3f59bd=_0x46de50[_0x2ea2('0x21')][_0x2ea2('0x1c')](_0x2ea2('0x22'));for(const _0x1ad55d of _0x4ac16f)_0x5690bc[_0x2ea2('0x1b')](_0x1ad55d['id'])||_0x5690bc['addUser'](_0x1ad55d);_0x5690bc['me']||_0x5690bc[_0x2ea2('0x11')]();for(const _0x5720ef of _0x3827ac)_0x3f59bd[_0x2ea2('0x2')](_0x5720ef);_0x46de50[_0x2ea2('0x18')][_0x2ea2('0x5')](_0x2870ba);}(_0xd9027,_0x27bb97),_0x27bb97[_0x2ea2('0x24')](_0x78d933?_0x2ea2('0x30'):_0x2ea2('0x27'));const _0x45cbd9=_0x27bb97[_0x2ea2('0x18')]['get'](_0x429ddc);return await _0x27bb97[_0x2ea2('0xd')](),_0x45cbd9;}function A(_0x23d0e5,_0x49a90b){const _0x1d5932='function'==typeof _0x23d0e5?_0x23d0e5[_0x2ea2('0xe')]||_0x23d0e5['name']:_0x23d0e5;if(_0x49a90b['has'](_0x1d5932))return _0x49a90b['get'](_0x1d5932);if(_0x49a90b['set'](_0x1d5932,!0x0),_0x1d5932&&w[_0x2ea2('0x31')](_0x1d5932))return _0x49a90b[_0x2ea2('0x5')](_0x1d5932,!0x1),!0x1;if(!_0x23d0e5[_0x2ea2('0x12')])return _0x49a90b[_0x2ea2('0x5')](_0x1d5932,!0x0),!0x0;const _0x3274d0=_0x23d0e5[_0x2ea2('0x12')][_0x2ea2('0x1')](_0xc2f404=>A(_0xc2f404,_0x49a90b));return _0x49a90b[_0x2ea2('0x5')](_0x1d5932,_0x3274d0),_0x3274d0;}
|