@ckeditor/ckeditor5-comments 0.0.0-nightly-20230818.1 → 0.0.0-nightly-20230820.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/comments.js +1 -1
- package/package.json +3 -3
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c40=['execute','edit','isConfirm','actionIndicator','ck-annotation','userView','getUserViewNotificationText','ck-comment__info-name','authoredAt','isSystemComment','element','Edit','listenTo','_createRemoveButton','change:isRemovable','cancelConfirm','EXTERNAL_AVATAR','mouseleave','creator','isEnabled','getTemplate','ck-annotation__content-wrapper','importWord','panelView','author','EXTERNAL_IMPORT_WORD_AVATAR','blur','div','editButton','isReadOnly','EXTERNAL_COMMENT','set','ck-annotation__actions--hidden','ck-annotation__info-name','addMany','EXTERNAL_IMPORT_WORD_COMMENT','ck-comment__info','name','resolvedAt','visibleView','dropdown','ck-comment__actions--hidden','buttonView','ck-comment__wrapper','change:isVisible','_model','then','some','_createCommentInputView','time','Show\x20more\x20items','locale','attributes','length','fire','createCollection','extendTemplate','showConfirm','label','ck-comment__user','icon','_createEditButton','ck-comment--remove-confirmation','isEditMode','remove','ck-comment--','ck-annotation__actions','@external','span','isEditable','threeVerticalDots','withText','source','_config','isVisible','_attachActions','actionBar','getExternalCommentNote','isExternal','setTemplate','ck-comment--remove','items','switchToEditMode','ck-annotation__info','bind','ck-annotation__main','Remove','add','bindTemplate','ck-comment','removeButton','mouseenter','_createDropdown','pencil','removeComment','ck-annotation__info-time','render','ck-comment--edit','panelPosition','ck-comment__info-time','ck-annotation__user','placeholder'];(function(_0x2211fb,_0x4c4079){const _0x19f896=function(_0x27ade8){while(--_0x27ade8){_0x2211fb['push'](_0x2211fb['shift']());}};_0x19f896(++_0x4c4079);}(_0x4c40,0xf3));const _0x19f8=function(_0x2211fb,_0x4c4079){_0x2211fb=_0x2211fb-0x0;let _0x19f896=_0x4c40[_0x2211fb];return _0x19f896;};import{ButtonView as _0x270bd9,createDropdown as _0x1a7d3c,ListView as _0x452d6d,ListItemView as _0x378b41}from'ckeditor5/src/ui';import{icons as _0x20bdf9}from'ckeditor5/src/core';import{UserView as _0x4e0e56,ConfirmMixin as _0x380185}from'ckeditor5-collaboration/src/collaboration-core';import _0x6daadd from'./basecommentview';import _0x471cdf from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x317437}from'../../../utils/common-translations';export default class ut extends _0x380185(_0x6daadd){constructor(_0x326065,_0x4ee8f4,_0x5e3781){super(_0x326065,_0x4ee8f4,_0x5e3781),this['set'](_0x19f8('0x42'),null),this[_0x19f8('0x5e')](_0x19f8('0x3e'),_0x317437(_0x326065,'Reply...')),this[_0x19f8('0x2d')](_0x19f8('0x47'))['to'](_0x4ee8f4),this[_0x19f8('0x2d')](_0x19f8('0x65'))['to'](_0x4ee8f4),this[_0x19f8('0x25')]=this[_0x19f8('0x10')](),this[_0x19f8('0x48')]||(this[_0x19f8('0x5b')]=this['_createEditButton'](),this[_0x19f8('0x33')]=this[_0x19f8('0x4c')](),this[_0x19f8('0x2a')]=this[_0x19f8('0x10')](),this[_0x19f8('0x2a')][_0x19f8('0x61')]([this[_0x19f8('0x5b')],this[_0x19f8('0x33')]]),this[_0x19f8('0x1')]=this[_0x19f8('0x35')](),this[_0x19f8('0x25')]['add'](this['dropdown'])),this[_0x19f8('0x44')]=new _0x4e0e56(_0x326065,_0x4ee8f4[_0x19f8('0x57')],this[_0x19f8('0x45')]()),this[_0x19f8('0x44')][_0x19f8('0x11')]({'attributes':{'class':[_0x19f8('0x14'),_0x19f8('0x3d')]}}),this[_0x19f8('0x4b')](_0x4ee8f4,_0x19f8('0x4d'),()=>this[_0x19f8('0x4e')]()),this[_0x19f8('0x28')](this[_0x19f8('0x53')]());}[_0x19f8('0x53')](){const _0x4ce37a=this[_0x19f8('0x31')],_0x4b56ab=[{'tag':_0x19f8('0x5a'),'attributes':{'class':[_0x19f8('0x63'),_0x19f8('0x2c')]},'children':[{'tag':_0x19f8('0x1d'),'children':[{'text':this[_0x19f8('0x44')][_0x19f8('0x64')]}],'attributes':{'class':[_0x19f8('0x46'),_0x19f8('0x60')]}},{'tag':_0x19f8('0xa'),'attributes':{'datetime':_0x4ce37a['to'](_0x19f8('0x47')),'class':[_0x19f8('0x3c'),_0x19f8('0x38')]},'children':[{'text':_0x4ce37a['to'](_0x19f8('0x47'),_0x48772f=>this[_0x19f8('0x22')]['formatDateTime'](_0x48772f))}]}]},{'tag':_0x19f8('0x5a'),'attributes':{'class':['ck-comment__actions',_0x19f8('0x1b'),_0x4ce37a['if']('isEditMode',_0x19f8('0x2')),_0x4ce37a['if']('isEditMode',_0x19f8('0x5f'))]},'children':this['actionBar']},{'tag':_0x19f8('0x5a'),'attributes':{'class':[_0x19f8('0x54')]},'children':this[_0x19f8('0x0')]}];return this[_0x19f8('0x6')][_0x19f8('0x27')]&&_0x4b56ab['push']({'tag':_0x19f8('0x5a'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x19f8('0x26')]()}]}),{'tag':'li','attributes':{'class':[_0x19f8('0x4'),_0x4ce37a['if'](_0x19f8('0x41'),_0x19f8('0x17'))],'tabindex':-0x1},'children':[{'tag':_0x19f8('0x5a'),'attributes':{'class':[_0x19f8('0x32'),_0x19f8('0x43'),_0x4ce37a['if'](_0x19f8('0x18'),_0x19f8('0x3a')),_0x4ce37a['if'](_0x19f8('0x48'),'ck-comment--info'),_0x4ce37a['to']('actionIndicator',_0x3c23e4=>_0x3c23e4?_0x19f8('0x1a')+_0x3c23e4:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this[_0x19f8('0x6')]['id']},'children':[this['userView'],{'tag':_0x19f8('0x5a'),'attributes':{'class':['ck-comment__main',_0x19f8('0x2e')]},'children':_0x4b56ab}]}]};}[_0x19f8('0x16')](){const _0x12ff4f=new _0x270bd9(this['locale']);return _0x12ff4f[_0x19f8('0x13')]=_0x317437(this['locale'],_0x19f8('0x4a')),_0x12ff4f[_0x19f8('0x15')]=_0x20bdf9[_0x19f8('0x36')],_0x12ff4f[_0x19f8('0x20')]=!0x0,_0x12ff4f[_0x19f8('0x11')]({'attributes':{'class':_0x19f8('0x3a')}}),_0x12ff4f[_0x19f8('0x2d')](_0x19f8('0x52'))['to'](this['_model'],_0x19f8('0x5c'),_0x56a9be=>!_0x56a9be),_0x12ff4f[_0x19f8('0x2d')](_0x19f8('0x23'))['to'](this[_0x19f8('0x6')],_0x19f8('0x1e')),_0x12ff4f['on']('execute',()=>this[_0x19f8('0x2b')]()),_0x12ff4f;}[_0x19f8('0x4c')](){const _0x502340=new _0x270bd9(this['locale']);return _0x502340[_0x19f8('0x13')]=_0x317437(this[_0x19f8('0xc')],_0x19f8('0x2f')),_0x502340['icon']=_0x471cdf,_0x502340[_0x19f8('0x20')]=!0x0,_0x502340['extendTemplate']({'attributes':{'class':_0x19f8('0x29')}}),_0x502340['bind']('isEnabled')['to'](this[_0x19f8('0x6')],_0x19f8('0x5c'),_0x23e131=>!_0x23e131),_0x502340['bind'](_0x19f8('0x23'))['to'](this[_0x19f8('0x6')],'isRemovable'),_0x502340['on'](_0x19f8('0x3f'),()=>{this[_0x19f8('0x12')](_0x317437(this[_0x19f8('0xc')],'Delete\x20comment?'),this[_0x19f8('0x49')])[_0x19f8('0x7')](()=>{this[_0x19f8('0xf')](_0x19f8('0x37'),this['_model']['id']);});}),_0x502340;}[_0x19f8('0x35')](){const _0x3b1dbd=_0x1a7d3c(this[_0x19f8('0xc')]),_0xe6ee5e=_0x3b1dbd[_0x19f8('0x56')]['children'],_0x242d48=new _0x452d6d(this['locale']),_0x205cca=(_0x48780d,_0x114b4d=-0x1)=>{const _0x1dee6f=new _0x378b41(this[_0x19f8('0xc')]);_0x1dee6f['children'][_0x19f8('0x30')](_0x48780d);const _0x48d5b0=_0x114b4d>-0x1?_0x114b4d:_0x242d48['items'][_0x19f8('0xe')];_0x242d48[_0x19f8('0x2a')][_0x19f8('0x30')](_0x1dee6f,_0x48d5b0),_0x3b1dbd['listenTo'](_0x48780d,'change:isEnabled',()=>{_0x3b1dbd[_0x19f8('0x52')]=[...this[_0x19f8('0x2a')]][_0x19f8('0x8')](_0x4da1b2=>_0x4da1b2['isEnabled']);}),_0x3b1dbd[_0x19f8('0x4b')](_0x48780d,_0x19f8('0x5'),()=>{_0x3b1dbd[_0x19f8('0x3')][_0x19f8('0x23')]=[...this['items']]['some'](_0x536696=>_0x536696[_0x19f8('0x23')]);});};_0x3b1dbd[_0x19f8('0x3b')]='sw',_0x3b1dbd[_0x19f8('0x3')][_0x19f8('0x5e')]({'label':_0x317437(this[_0x19f8('0xc')],_0x19f8('0xb')),'icon':_0x20bdf9[_0x19f8('0x1f')]}),_0x3b1dbd[_0x19f8('0x52')]=[...this['items']][_0x19f8('0x8')](_0x91d475=>_0x91d475[_0x19f8('0x52')]),_0x3b1dbd[_0x19f8('0x3')][_0x19f8('0x23')]=[...this['items']][_0x19f8('0x8')](_0x52010f=>_0x52010f['isVisible']);for(const _0x25818b of this[_0x19f8('0x2a')])_0x205cca(_0x25818b);return _0xe6ee5e['add'](_0x242d48),_0x3b1dbd[_0x19f8('0x4b')](this['items'],_0x19f8('0x30'),(_0x3b6a65,_0x30c3e6,_0x579ed1)=>{_0x205cca(_0x30c3e6,_0x579ed1);}),_0x3b1dbd['listenTo'](this[_0x19f8('0x2a')],_0x19f8('0x19'),(_0x59d1fc,_0x11b20a,_0x5b88a2)=>{_0x242d48[_0x19f8('0x2a')][_0x19f8('0x19')](_0x5b88a2);}),_0x3b1dbd;}[_0x19f8('0x24')](_0x219ea9,_0x3b6f73){const _0x163426=_0x219ea9&&_0x219ea9['element'];_0x163426&&(this[_0x19f8('0x4b')](_0x163426,_0x19f8('0x34'),()=>this[_0x19f8('0x42')]=_0x3b6f73),this[_0x19f8('0x4b')](_0x163426,'focus',()=>this[_0x19f8('0x42')]=_0x3b6f73),this['listenTo'](_0x163426,_0x19f8('0x50'),()=>this[_0x19f8('0x42')]=null),this[_0x19f8('0x4b')](_0x163426,_0x19f8('0x59'),()=>this[_0x19f8('0x42')]=null));}['_createCommentInputView'](){const _0x2a6543=super[_0x19f8('0x9')]();return _0x2a6543[_0x19f8('0x2d')](_0x19f8('0x3e'))['to'](this),_0x2a6543;}['getExternalCommentNote'](){return _0x19f8('0x55')===this[_0x19f8('0x6')][_0x19f8('0xd')][_0x19f8('0x1c')][_0x19f8('0x21')]?_0x317437(this[_0x19f8('0xc')],_0x19f8('0x62')):_0x317437(this['locale'],_0x19f8('0x5d'));}[_0x19f8('0x45')](){return this[_0x19f8('0x6')][_0x19f8('0x27')]?_0x19f8('0x55')===this[_0x19f8('0x6')][_0x19f8('0xd')][_0x19f8('0x1c')][_0x19f8('0x21')]?_0x317437(this['locale'],_0x19f8('0x58'),this['_model'][_0x19f8('0x51')][_0x19f8('0x64')]):_0x317437(this['locale'],_0x19f8('0x4f'),this[_0x19f8('0x6')][_0x19f8('0x51')][_0x19f8('0x64')]):null;}[_0x19f8('0x39')](){super[_0x19f8('0x39')](),this[_0x19f8('0x24')](this[_0x19f8('0x5b')],_0x19f8('0x40')),this['_attachActions'](this[_0x19f8('0x33')],_0x19f8('0x19'));}}
|
package/src/comments.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x425e=['pluginName','requires'];(function(_0x401cbe,_0x425ea8){var _0x248d47=function(_0x294807){while(--_0x294807){_0x401cbe['push'](_0x401cbe['shift']());}};_0x248d47(++_0x425ea8);}(_0x425e,0x171));var _0x248d=function(_0x401cbe,_0x425ea8){_0x401cbe=_0x401cbe-0x0;var _0x248d47=_0x425e[_0x401cbe];return _0x248d47;};import{Plugin as _0x5ae094}from'ckeditor5/src/core';import _0x868d1b from'./comments/commentsrepository';import _0x14f7d9 from'./comments/commentsediting';import _0x292605 from'./comments/commentsui';import _0x139c86 from'./commentsonly';import _0x337370 from'./annotations/widesidebar';import _0x20c84b from'./annotations/narrowsidebar';import _0x380af2 from'./annotations/inlineannotations';import _0x1ba9b7 from'./comments/commentsarchiveui';import _0xa8bbee from'./comments/commentsarchive';export default class f extends _0x5ae094{static get[_0x248d('0x0')](){return[_0x868d1b,_0x14f7d9,_0x292605,_0xa8bbee,_0x1ba9b7,_0x139c86,_0x337370,_0x20c84b,_0x380af2];}static get[_0x248d('0x1')](){return'Comments';}}
|
package/src/commentsonly.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5eae=['document','addCommentThread','plugins','requires','afterInit','clearForceDisabled','affectsData','CommentsOnly','clipboardInput','forceDisabled','highest','stopListening','DragDrop','commentsOnlyMode','_disableCommentsOnlyMode','editor','get','_enableCommentsOnlyMode','commentsOnly','view','listenTo','cut','isEnabled','stop','set','editing','delete'];(function(_0x4a4568,_0x5eaea7){const _0x44f260=function(_0x1a2d23){while(--_0x1a2d23){_0x4a4568['push'](_0x4a4568['shift']());}};_0x44f260(++_0x5eaea7);}(_0x5eae,0x19c));const _0x44f2=function(_0x4a4568,_0x5eaea7){_0x4a4568=_0x4a4568-0x0;let _0x44f260=_0x5eae[_0x4a4568];return _0x44f260;};import{Plugin as _0x557494}from'ckeditor5/src/core';import _0x5c170c from'./comments/commentsediting';export default class n extends _0x557494{static get['pluginName'](){return _0x44f2('0x0');}static get[_0x44f2('0x17')](){return[_0x5c170c];}constructor(_0x3ec8c0){super(_0x3ec8c0),this[_0x44f2('0x11')](_0x44f2('0xf'),!0x1),this['on']('change:isEnabled',(_0x185cc7,_0x4f3a46,_0x163eaf)=>{_0x163eaf?this[_0x44f2('0xa')]():this['_disableCommentsOnlyMode']();});}[_0x44f2('0x18')](){!this['isEnabled']&&this[_0x44f2('0x8')]['config'][_0x44f2('0x9')](_0x44f2('0xb'))&&(this[_0x44f2('0xf')]=!0x0);}[_0x44f2('0xa')](){for(const [_0x15b72b,_0x19527e]of this[_0x44f2('0x8')]['commands'])_0x19527e[_0x44f2('0x1a')]&&_0x44f2('0x15')!==_0x15b72b&&_0x19527e[_0x44f2('0x2')]('commentsOnlyMode');this[_0x44f2('0x8')]['plugins']['has'](_0x44f2('0x5'))&&this[_0x44f2('0x8')][_0x44f2('0x16')]['get'](_0x44f2('0x5'))[_0x44f2('0x2')](_0x44f2('0x6'));const _0x474c16=this[_0x44f2('0x8')][_0x44f2('0x12')][_0x44f2('0xc')][_0x44f2('0x14')];this[_0x44f2('0xd')](_0x474c16,_0x44f2('0xe'),_0x3cc85c=>_0x3cc85c[_0x44f2('0x10')](),{'priority':_0x44f2('0x3')}),this['listenTo'](_0x474c16,_0x44f2('0x1'),_0xfacb9a=>_0xfacb9a[_0x44f2('0x10')](),{'priority':_0x44f2('0x3')}),this[_0x44f2('0xd')](_0x474c16,_0x44f2('0x13'),_0x570200=>_0x570200[_0x44f2('0x10')](),{'priority':_0x44f2('0x3')});}[_0x44f2('0x7')](){for(const [_0x22fd31,_0x363153]of this['editor']['commands'])_0x363153['affectsData']&&_0x44f2('0x15')!==_0x22fd31&&_0x363153[_0x44f2('0x19')](_0x44f2('0x6'));this[_0x44f2('0x4')](this['editor'][_0x44f2('0x12')][_0x44f2('0xc')][_0x44f2('0x14')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x4b81e3,_0x311826,_0x51758f){const t=_0x4b81e3['t'];switch(_0x311826){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x51758f);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x51758f);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x51758f);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x51758f);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});default:return'';}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2546=['observe','cancel','type','attributeName','characterData','childList'];(function(_0x9f10c,_0x254637){const _0x3cb636=function(_0xf744ad){while(--_0xf744ad){_0x9f10c['push'](_0x9f10c['shift']());}};_0x3cb636(++_0x254637);}(_0x2546,0x66));const _0x3cb6=function(_0x9f10c,_0x254637){_0x9f10c=_0x9f10c-0x0;let _0x3cb636=_0x2546[_0x9f10c];return _0x3cb636;};import{throttle as _0x5731ed}from'lodash-es';export default function Dt(_0x5a4509){const _0x274704=_0x5731ed(_0x5a4509,0x1e),_0x5c3d0b=new MutationObserver(_0x19bb51=>{for(const _0x556cf4 of _0x19bb51)('attributes'==_0x556cf4['type']&&'class'==_0x556cf4[_0x3cb6('0x3')]||_0x3cb6('0x5')==_0x556cf4[_0x3cb6('0x2')]||_0x3cb6('0x4')==_0x556cf4[_0x3cb6('0x2')])&&_0x274704();});return{'attach'(_0x56a23b){_0x5c3d0b[_0x3cb6('0x0')](_0x56a23b,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x5c3d0b['disconnect'](),_0x274704[_0x3cb6('0x1')]();}};}
|