@ckeditor/ckeditor5-comments 46.0.1-alpha.12 → 46.0.1-alpha.13
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/dist/index.js +11 -11
- package/package.json +18 -18
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +2 -2
- package/src/annotations/view/sidebarview.js +2 -2
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.js +3 -3
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/integrations/showcommenthighlights.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x515aa9=_0x1310;(function(_0x8dd406,_0x9283c1){const _0x35e303=_0x1310,_0x1e1588=_0x8dd406();while(!![]){try{const _0x45cc8b=parseInt(_0x35e303(0x142))/0x1+parseInt(_0x35e303(0x165))/0x2+parseInt(_0x35e303(0x16a))/0x3+parseInt(_0x35e303(0x154))/0x4*(-parseInt(_0x35e303(0x16b))/0x5)+parseInt(_0x35e303(0x16f))/0x6*(-parseInt(_0x35e303(0x183))/0x7)+parseInt(_0x35e303(0x158))/0x8+-parseInt(_0x35e303(0x16e))/0x9*(parseInt(_0x35e303(0x194))/0xa);if(_0x45cc8b===_0x9283c1)break;else _0x1e1588['push'](_0x1e1588['shift']());}catch(_0x47f243){_0x1e1588['push'](_0x1e1588['shift']());}}}(_0x1a02,0xbce73));import{View as _0x4646d6,FocusCycler as _0x52766f,ButtonView as _0x8c6ecb}from'ckeditor5/src/ui.js';import{FocusTracker as _0x2b3bde,KeystrokeHandler as _0x4d0451}from'ckeditor5/src/utils.js';function _0x1a02(){const _0x365c05=['div','label','element','ck-comment__input-actions--active','submitButtonView','from','execute','submit','ck-comment__input-wrapper','ck-comment__input-actions','tab','set','add','_editorConfig','cancel','TOO_LONG_COMMENT_ALERT','4WvPthz','Ctrl+Enter','_createCancelButton','insertBefore','6063208uKCsQG','focusTracker','shift+tab','_editorCreationPromise','then','create','focus','createCollection','Cancel','ck-comment__input-actions--submit','showButtons','trim','destroy','1197990wDfxjG','reverse','listenTo','firstChild','Esc','2055294MaWAfP','3225565PRjMPt','view','document','1307187DDdKMe','4152zXQssN','high','_isDestroyed','Reply...','submitLabel','render','setData','value','focusFirst','forEach','isEnabled','ck-comment__input-actions--cancel','cancelButtonView','getData','focusCycler','focusables','added','fire','editorReady','_createSubmitButton','4291oofdJJ','setTemplate','initialData','bindTemplate','extendTemplate','createEditor','disabledSubmit','editor','change','bind','editorDestroyed','placeholder','_setupKeyboardNavigation','keystrokes','withText','focusLast','model','60YChPrq','stop','Reply','672520GMhjEx','length'];_0x1a02=function(){return _0x365c05;};return _0x1a02();}import{CommentEditor as _0x2dbc76}from'../commenteditor/commenteditor.js';import{getTranslation as _0x1a6004}from'../../../utils/common-translations.js';function _0x1310(_0x27d6c1,_0x3fce43){const _0x1a02c0=_0x1a02();return _0x1310=function(_0x1310cb,_0x139bc2){_0x1310cb=_0x1310cb-0x142;let _0x569a7a=_0x1a02c0[_0x1310cb];return _0x569a7a;},_0x1310(_0x27d6c1,_0x3fce43);}export class CommentInputView extends _0x4646d6{[_0x515aa9(0x190)];[_0x515aa9(0x159)];[_0x515aa9(0x17e)];[_0x515aa9(0x17d)];[_0x515aa9(0x148)];[_0x515aa9(0x17b)];[_0x515aa9(0x151)];constructor(_0x129f85,_0x57904f={}){const _0x1f00a6=_0x515aa9;super(_0x129f85),this[_0x1f00a6(0x18a)]=null,this[_0x1f00a6(0x151)]=_0x57904f,this[_0x1f00a6(0x14f)](_0x1f00a6(0x176),_0x57904f[_0x1f00a6(0x185)]||''),this[_0x1f00a6(0x14f)](_0x1f00a6(0x189),!0x1),this[_0x1f00a6(0x14f)](_0x1f00a6(0x162),!0x0),this[_0x1f00a6(0x14f)](_0x1f00a6(0x18e),_0x1a6004(_0x129f85,_0x1f00a6(0x172))),this[_0x1f00a6(0x14f)](_0x1f00a6(0x173),_0x1a6004(_0x129f85,_0x1f00a6(0x196))),this[_0x1f00a6(0x148)]=this[_0x1f00a6(0x182)](),this[_0x1f00a6(0x17b)]=this[_0x1f00a6(0x156)](),this[_0x1f00a6(0x17e)]=this[_0x1f00a6(0x15f)]([this[_0x1f00a6(0x148)],this[_0x1f00a6(0x17b)]]),this[_0x1f00a6(0x190)]=new _0x4d0451(),this[_0x1f00a6(0x159)]=new _0x2b3bde(),this[_0x1f00a6(0x17d)]=new _0x52766f({'focusables':this[_0x1f00a6(0x17e)],'focusTracker':this[_0x1f00a6(0x159)],'keystrokeHandler':this[_0x1f00a6(0x190)],'actions':{'focusPrevious':_0x1f00a6(0x15a),'focusNext':_0x1f00a6(0x14e)}}),this[_0x1f00a6(0x184)]({'tag':_0x1f00a6(0x144),'attributes':{'class':[_0x1f00a6(0x14c)]},'children':[{'tag':_0x1f00a6(0x144),'attributes':{'class':[_0x1f00a6(0x14d),this[_0x1f00a6(0x186)]['if'](_0x1f00a6(0x162),_0x1f00a6(0x147))]},'children':[this[_0x1f00a6(0x148)],this[_0x1f00a6(0x17b)]]}]}),this[_0x1f00a6(0x190)][_0x1f00a6(0x14f)](_0x1f00a6(0x169),(_0x3ddc45,_0x21db81)=>{const _0xd8393f=_0x1f00a6;this[_0xd8393f(0x17b)][_0xd8393f(0x180)](_0xd8393f(0x14a)),_0x21db81();}),this[_0x1f00a6(0x190)][_0x1f00a6(0x14f)](_0x1f00a6(0x155),(_0x23e709,_0x282f29)=>{const _0x4f3536=_0x1f00a6;this[_0x4f3536(0x148)][_0x4f3536(0x179)]&&(this[_0x4f3536(0x148)][_0x4f3536(0x180)](_0x4f3536(0x14a)),_0x282f29());}),this['on'](_0x1f00a6(0x14b),(_0x506a2a,_0x44718e)=>{const _0x573841=_0x1f00a6;_0x44718e[_0x573841(0x143)]>0xfde8?(alert(_0x1a6004(_0x129f85,_0x573841(0x153),[_0x44718e[_0x573841(0x143)],0xfde8])),_0x506a2a[_0x573841(0x195)]()):this[_0x573841(0x18a)][_0x573841(0x175)]('');},{'priority':_0x1f00a6(0x170)});}[_0x515aa9(0x174)](){const _0x2ff52f=_0x515aa9;super[_0x2ff52f(0x174)](),this[_0x2ff52f(0x18f)]();}[_0x515aa9(0x188)](){const _0x51e91c=_0x515aa9;return this[_0x51e91c(0x18a)]||(this[_0x51e91c(0x18a)]=new _0x2dbc76(this[_0x51e91c(0x151)]),this[_0x51e91c(0x15b)]=this[_0x51e91c(0x18a)][_0x51e91c(0x15d)]()[_0x51e91c(0x15c)](()=>{const _0x1d688d=_0x51e91c;if(this[_0x1d688d(0x171)])return;const _0x2869fb=this[_0x1d688d(0x18a)];this[_0x1d688d(0x146)][_0x1d688d(0x157)](_0x2869fb['ui'][_0x1d688d(0x146)],this[_0x1d688d(0x146)][_0x1d688d(0x168)]),_0x2869fb[_0x1d688d(0x193)][_0x1d688d(0x16d)]['on'](_0x1d688d(0x18b),()=>this[_0x1d688d(0x176)]=_0x2869fb[_0x1d688d(0x17c)]()),_0x2869fb[_0x1d688d(0x18c)](_0x1d688d(0x18e))['to'](this),this[_0x1d688d(0x17e)][_0x1d688d(0x150)](_0x2869fb['ui'][_0x1d688d(0x16c)],0x0),this[_0x1d688d(0x180)](_0x1d688d(0x181),this[_0x1d688d(0x18a)]);})),this[_0x51e91c(0x15b)];}[_0x515aa9(0x15e)](_0xa53234){const _0x4b10b0=_0x515aa9;-0x1===_0xa53234?(this[_0x4b10b0(0x17d)][_0x4b10b0(0x177)](),this[_0x4b10b0(0x17d)][_0x4b10b0(0x192)]()):this[_0x4b10b0(0x17d)][_0x4b10b0(0x177)]();}async[_0x515aa9(0x164)](){const _0x3d25b0=_0x515aa9;this[_0x3d25b0(0x171)]||(this[_0x3d25b0(0x171)]=!0x0,this[_0x3d25b0(0x18a)]&&(await this[_0x3d25b0(0x15b)],await this[_0x3d25b0(0x18a)][_0x3d25b0(0x164)](),this[_0x3d25b0(0x180)](_0x3d25b0(0x18d),this[_0x3d25b0(0x18a)])),await super[_0x3d25b0(0x164)]());}[_0x515aa9(0x182)](){const _0x27115c=_0x515aa9,{locale:_0x3f8079}=this,_0x337830=new _0x8c6ecb(_0x3f8079);return _0x337830[_0x27115c(0x187)]({'attributes':{'class':[_0x27115c(0x161)]}}),_0x337830[_0x27115c(0x191)]=!0x0,_0x337830[_0x27115c(0x18c)](_0x27115c(0x145))['to'](this,_0x27115c(0x173)),_0x337830['on'](_0x27115c(0x14a),()=>{const _0x365978=_0x27115c;this[_0x365978(0x180)](_0x365978(0x14b),this[_0x365978(0x176)]);}),_0x337830[_0x27115c(0x18c)](_0x27115c(0x179))['to'](this,_0x27115c(0x176),this,_0x27115c(0x189),(_0x4807fc,_0xcc7a10)=>!_0xcc7a10&&!!_0x4807fc[_0x27115c(0x163)]()),_0x337830;}[_0x515aa9(0x156)](){const _0x3c5c9f=_0x515aa9,{locale:_0x1cb336}=this,_0x3f6ac0=new _0x8c6ecb(_0x1cb336);return _0x3f6ac0[_0x3c5c9f(0x187)]({'attributes':{'class':[_0x3c5c9f(0x17a)]}}),_0x3f6ac0[_0x3c5c9f(0x145)]=_0x1a6004(_0x1cb336,_0x3c5c9f(0x160)),_0x3f6ac0[_0x3c5c9f(0x191)]=!0x0,_0x3f6ac0['on'](_0x3c5c9f(0x14a),()=>{const _0x1c69d0=_0x3c5c9f;this[_0x1c69d0(0x18a)][_0x1c69d0(0x175)](''),this[_0x1c69d0(0x180)](_0x1c69d0(0x152));}),_0x3f6ac0;}[_0x515aa9(0x18f)](){const _0x5132e1=_0x515aa9;this[_0x5132e1(0x190)][_0x5132e1(0x167)](this[_0x5132e1(0x146)]),this[_0x5132e1(0x17e)][_0x5132e1(0x178)](_0x362e12=>{const _0x41b02f=_0x5132e1;this[_0x41b02f(0x159)][_0x41b02f(0x150)](_0x362e12[_0x41b02f(0x146)]);}),this[_0x5132e1(0x17e)]['on'](_0x5132e1(0x18b),(_0x5236ae,_0xffc441)=>{const _0x6649aa=_0x5132e1;for(const _0x45d5f7 of Array[_0x6649aa(0x149)](_0xffc441[_0x6649aa(0x17f)])[_0x6649aa(0x166)]())this[_0x6649aa(0x159)][_0x6649aa(0x150)](_0x45d5f7[_0x6649aa(0x146)]);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x34f1(){const _0x1c02b1=['tab','6zZYzxQ','ck-context','add','fire','offsetWidth','Comment\x20was\x20made\x20on\x20an\x20element','focusCycler','_createReopenButton','contextView','execute','.ck-context','substring','focusables','focusFirst','querySelector','2111016hWrucR','reopenCommentThread','ck-context--quotes','1309356QplUwu','bind','contextValue','54008FVaZOH','focusTracker','isResolved','_model','reopenButtonView','label','shift+tab','icon','setTemplate','780159PKlRKt','hasContext','context','lastIndexOf','.ck-context__value','3bnFsaq','2387160qAnTxB','mouseenter','Reopen','keystrokes','26582640AyXwOx','scrollWidth','_createContextView','isVisible','bindTemplate','overlay','div','ck-annotation__actions','remove','448ASSjmg','ck-thread__header','listenTo','render','_trimContextValue','...','classList','isReadOnly','locale','element','_attachContextActions','_setupKeyboardNavigation','focus','ck-context-wrapper','isResolvable','isEnabled','length','createCollection','mouseleave','tooltip','2572725jArdhH','value'];_0x34f1=function(){return _0x1c02b1;};return _0x34f1();}const _0x1b329e=_0x4449;(function(_0x374b5a,_0x1f026c){const _0x1c14ae=_0x4449,_0x370a69=_0x374b5a();while(!![]){try{const _0x3f4364=-parseInt(_0x1c14ae(0xd7))/0x1+-parseInt(_0x1c14ae(0x113))/0x2*(parseInt(_0x1c14ae(0xdc))/0x3)+parseInt(_0x1c14ae(0x110))/0x4+-parseInt(_0x1c14ae(0xfe))/0x5*(parseInt(_0x1c14ae(0x101))/0x6)+parseInt(_0x1c14ae(0xea))/0x7*(-parseInt(_0x1c14ae(0x116))/0x8)+-parseInt(_0x1c14ae(0xdd))/0x9+parseInt(_0x1c14ae(0xe1))/0xa;if(_0x3f4364===_0x1f026c)break;else _0x370a69['push'](_0x370a69['shift']());}catch(_0x4ef6ef){_0x370a69['push'](_0x370a69['shift']());}}}(_0x34f1,0x83ac4));import{View as _0x36bc6e,ButtonView as _0x3f512f,FocusCycler as _0x2d59ec}from'ckeditor5/src/ui.js';import{FocusTracker as _0x7e0eea,KeystrokeHandler as _0xb1c7}from'ckeditor5/src/utils.js';import{IconUndo as _0x472c88}from'ckeditor5/src/icons.js';function _0x4449(_0x202ef3,_0x5f2627){const _0x34f17c=_0x34f1();return _0x4449=function(_0x4449f6,_0x3c8213){_0x4449f6=_0x4449f6-0xd2;let _0x2bf062=_0x34f17c[_0x4449f6];return _0x2bf062;},_0x4449(_0x202ef3,_0x5f2627);}import{getTranslation as _0x37fb6f}from'../../../utils/common-translations.js';import{CommentThreadHeaderContextView as _0x331dff}from'./commentthreadheadercontextview.js';export const MAX_CONTENT_LENGTH=0x96;export class CommentThreadHeaderView extends _0x36bc6e{[_0x1b329e(0x119)];[_0x1b329e(0xd2)];[_0x1b329e(0x109)];[_0x1b329e(0x10d)];[_0x1b329e(0x117)];[_0x1b329e(0xe0)];[_0x1b329e(0x107)];constructor(_0x2d0947,_0x4d0d79){const _0x4bd5e5=_0x1b329e;super(_0x2d0947);const _0x5d4c53=this[_0x4bd5e5(0xe5)];this[_0x4bd5e5(0x119)]=_0x4d0d79,this[_0x4bd5e5(0xd2)]=this[_0x4bd5e5(0x108)](),this[_0x4bd5e5(0x109)]=this[_0x4bd5e5(0xe3)](),this[_0x4bd5e5(0x10d)]=this[_0x4bd5e5(0xfb)]([this[_0x4bd5e5(0x109)],this[_0x4bd5e5(0xd2)]]),this[_0x4bd5e5(0x117)]=new _0x7e0eea(),this[_0x4bd5e5(0xe0)]=new _0xb1c7(),this[_0x4bd5e5(0x107)]=new _0x2d59ec({'focusables':this[_0x4bd5e5(0x10d)],'focusTracker':this[_0x4bd5e5(0x117)],'keystrokeHandler':this[_0x4bd5e5(0xe0)],'actions':{'focusPrevious':_0x4bd5e5(0xd4),'focusNext':_0x4bd5e5(0x100)}}),this[_0x4bd5e5(0x114)](_0x4bd5e5(0xd8))['to'](this[_0x4bd5e5(0x119)],_0x4bd5e5(0xd9),_0x4f6551=>!!_0x4f6551),this[_0x4bd5e5(0x114)](_0x4bd5e5(0x115))['to'](this[_0x4bd5e5(0x119)],_0x4bd5e5(0xd9),_0x152465=>_0x152465&&_0x152465[_0x4bd5e5(0xff)]?this[_0x4bd5e5(0xee)](_0x152465[_0x4bd5e5(0xff)]):_0x37fb6f(this[_0x4bd5e5(0xf2)],_0x4bd5e5(0x106))),this[_0x4bd5e5(0xd6)]({'tag':_0x4bd5e5(0xe7),'attributes':{'class':[_0x4bd5e5(0xeb)]},'children':[{'tag':_0x4bd5e5(0xe7),'attributes':{'class':[_0x4bd5e5(0xf7)]},'children':[{'tag':_0x4bd5e5(0xe7),'attributes':{'class':[_0x4bd5e5(0x102),_0x5d4c53['if'](_0x4bd5e5(0xd8),_0x4bd5e5(0x112))]},'children':[this[_0x4bd5e5(0x109)]]}]},{'tag':_0x4bd5e5(0xe7),'attributes':{'class':[_0x4bd5e5(0xe8)]},'children':[this[_0x4bd5e5(0xd2)]]}]});}[_0x1b329e(0xed)](){const _0x3b8668=_0x1b329e;super[_0x3b8668(0xed)](),this[_0x3b8668(0xf4)](),this[_0x3b8668(0xf5)]();}[_0x1b329e(0xf6)](){const _0xaa99fe=_0x1b329e;this[_0xaa99fe(0x107)][_0xaa99fe(0x10e)]();}[_0x1b329e(0x108)](){const _0x441db7=_0x1b329e,_0x54efb0=new _0x3f512f(this[_0x441db7(0xf2)]);return _0x54efb0[_0x441db7(0xd3)]=_0x37fb6f(this[_0x441db7(0xf2)],_0x441db7(0xdf)),_0x54efb0[_0x441db7(0xfd)]=_0x37fb6f(this[_0x441db7(0xf2)],_0x441db7(0xdf)),_0x54efb0[_0x441db7(0xd5)]=_0x472c88,_0x54efb0[_0x441db7(0x114)](_0x441db7(0xf9))['to'](this[_0x441db7(0x119)],_0x441db7(0xf1),_0x1659d7=>!_0x1659d7),_0x54efb0[_0x441db7(0x114)](_0x441db7(0xe4))['to'](this[_0x441db7(0x119)],_0x441db7(0xf8),this[_0x441db7(0x119)],_0x441db7(0x118),(_0x266112,_0xc07281)=>_0x266112&&_0xc07281),_0x54efb0['on'](_0x441db7(0x10a),()=>{const _0x4af01b=_0x441db7;this[_0x4af01b(0x104)](_0x4af01b(0x111),this[_0x4af01b(0x119)]['id']);}),_0x54efb0;}[_0x1b329e(0xee)](_0x2630ac){const _0x4b0509=_0x1b329e;if(_0x2630ac[_0x4b0509(0xfa)]<0x96)return _0x2630ac;const _0xad3f4e=_0x2630ac[_0x4b0509(0xda)]('\x20',0x93);return _0x2630ac[_0x4b0509(0x10c)](0x0,_0xad3f4e>-0x1?_0xad3f4e:0x93)+_0x4b0509(0xef);}[_0x1b329e(0xf4)](){const _0x5dec93=_0x1b329e,_0x38fcd4=this[_0x5dec93(0xf3)][_0x5dec93(0x10f)](_0x5dec93(0x10b)),_0x17d36e=_0x38fcd4[_0x5dec93(0x10f)](_0x5dec93(0xdb));this[_0x5dec93(0xec)](_0x38fcd4,_0x5dec93(0xde),()=>{const _0x24825c=_0x5dec93;_0x17d36e[_0x24825c(0x105)]<_0x17d36e[_0x24825c(0xe2)]&&_0x38fcd4[_0x24825c(0xf0)][_0x24825c(0x103)](_0x24825c(0xe6));}),this[_0x5dec93(0xec)](_0x38fcd4,_0x5dec93(0xfc),()=>{const _0x4dccb6=_0x5dec93;_0x38fcd4[_0x4dccb6(0xf0)][_0x4dccb6(0xe9)](_0x4dccb6(0xe6));});}[_0x1b329e(0xf5)](){const _0x351b37=_0x1b329e;this[_0x351b37(0xe0)][_0x351b37(0xec)](this[_0x351b37(0xf3)]);for(const _0x1461e7 of this[_0x351b37(0x10d)])this[_0x351b37(0x117)][_0x351b37(0x103)](_0x1461e7[_0x351b37(0xf3)]),this[_0x351b37(0xe0)][_0x351b37(0xec)](_0x1461e7[_0x351b37(0xf3)]);}[_0x1b329e(0xe3)](){const _0x2d1687=_0x1b329e,_0x5e7283=new _0x331dff(this[_0x2d1687(0xf2)]);return _0x5e7283[_0x2d1687(0x114)](_0x2d1687(0x115))['to'](this),_0x5e7283;}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
|
|
23
|
+
const _0x1ce9d7=_0x5395;function _0x5395(_0x531e18,_0x480db2){const _0x4af6d6=_0x4af6();return _0x5395=function(_0x53957d,_0x50a6b1){_0x53957d=_0x53957d-0x113;let _0x53d865=_0x4af6d6[_0x53957d];return _0x53d865;},_0x5395(_0x531e18,_0x480db2);}(function(_0x1469ec,_0x1d1013){const _0x1090c6=_0x5395,_0x20cb27=_0x1469ec();while(!![]){try{const _0x4b355a=parseInt(_0x1090c6(0x151))/0x1+-parseInt(_0x1090c6(0x160))/0x2+-parseInt(_0x1090c6(0x128))/0x3+parseInt(_0x1090c6(0x149))/0x4*(-parseInt(_0x1090c6(0x184))/0x5)+-parseInt(_0x1090c6(0x135))/0x6+-parseInt(_0x1090c6(0x131))/0x7*(-parseInt(_0x1090c6(0x14f))/0x8)+parseInt(_0x1090c6(0x11e))/0x9;if(_0x4b355a===_0x1d1013)break;else _0x20cb27['push'](_0x20cb27['shift']());}catch(_0x3ffb67){_0x20cb27['push'](_0x20cb27['shift']());}}}(_0x4af6,0x9a9f5));import{IconRemoveComment as _0x3f35f8,IconPencil as _0x1c2a31,IconThreeVerticalDots as _0x1701f7}from'ckeditor5/src/icons.js';function _0x4af6(){const _0x1b3942=['ck-comment__wrapper','editButton','ck-annotation__content-wrapper','ck-annotation__info','ck-comment--info','ck-comment--','then','ck-comment--remove-confirmation','from','locale','panelView','formatDateTime','focusables','panelPosition','placeholder','ck-comment__info','listenTo','1775635hjRXJp','bindTemplate','isSystemComment','Show\x20more\x20items','ariaLabel','_model','add','label','execute','set','dropdown','ck-comment__info-name','ck-annotation__actions--hidden','ck-annotation__actions','element','some','ck-comment--edit','ck-comment__actions--hidden','9690696cQKbPT','ck-annotation__user','edit','ck-annotation__info-time','mouseenter','ck-annotation','setTemplate','isConfirm','children','ck-annotation__main','192897ukHOsU','isRemovable','unbind','isExternal','buttonView','find','div','change:isRemovable','mouseleave','3500301XcMttw','isEditable','toMany','author','4988052cWNKLV','icon','Delete\x20comment?','getTemplate','_createCommentInputView','ck-comment__main','remove','createCollection','ck-hidden','name','ariaDescriptionView','removeComment','isEnabled','switchToEditMode','extendTemplate','actionIndicator','ck-comment--remove','_createEditButton','time','ck-comment__external','12stYFfk','cancelConfirm','_createRemoveButton','span','ck-comment','getUserViewNotificationText','16KrFNRI','addMany','986254aBMBdI','getExternalCommentNote','showConfirm','Edit','ck-comment__info-time','_createDropdown','isReadOnly','listitem','withText','removeButton','actionBar','focus','ck-comment__user','group','push','937458VJSXuu','_attachActions','Reply...','ck-comment__actions','isEditMode','render','authoredAt','userView','fire','_config','Remove','ck-annotation__info-name','length','resolvedAt','blur','bind','visibleView','items','isVisible'];_0x4af6=function(){return _0x1b3942;};return _0x4af6();}import{ButtonView as _0x1a5d39,createDropdown as _0x35b8e4,ListView as _0x5d94c4,ListItemView as _0x17c2dd,focusChildOnDropdownOpen as _0x20f931}from'ckeditor5/src/ui.js';import{UserView as _0x379182,ConfirmMixin as _0x45c70a,LateFocusDropdownButtonView as _0x471188}from'ckeditor5-collaboration/src/collaboration-core.js';import{BaseCommentView as _0x13deea}from'./basecommentview.js';import{getTranslation as _0x210658}from'../../../utils/common-translations.js';export class CommentView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x45c70a(_0x13deea){[_0x1ce9d7(0x15b)];[_0x1ce9d7(0x167)];constructor(_0x57f459,_0x2d8b29,_0x29bcc7){const _0x4cd6ce=_0x1ce9d7;super(_0x57f459,_0x2d8b29,_0x29bcc7),this[_0x4cd6ce(0x115)](_0x4cd6ce(0x144),null),this[_0x4cd6ce(0x115)](_0x4cd6ce(0x181),_0x210658(_0x57f459,_0x4cd6ce(0x162))),this[_0x4cd6ce(0x16f)](_0x4cd6ce(0x166))['to'](_0x2d8b29),this[_0x4cd6ce(0x16f)](_0x4cd6ce(0x16d))['to'](_0x2d8b29),this[_0x4cd6ce(0x15b)]=this[_0x4cd6ce(0x13c)](),this[_0x4cd6ce(0x186)]||(this[_0x4cd6ce(0x174)]=this[_0x4cd6ce(0x146)](),this[_0x4cd6ce(0x15a)]=this[_0x4cd6ce(0x14b)](),this[_0x4cd6ce(0x171)]=this[_0x4cd6ce(0x13c)](),this[_0x4cd6ce(0x171)][_0x4cd6ce(0x150)]([this[_0x4cd6ce(0x174)],this[_0x4cd6ce(0x15a)]]),this[_0x4cd6ce(0x116)]=this[_0x4cd6ce(0x156)](),this[_0x4cd6ce(0x15b)][_0x4cd6ce(0x18a)](this[_0x4cd6ce(0x116)]),this[_0x4cd6ce(0x17f)][_0x4cd6ce(0x18a)](this[_0x4cd6ce(0x116)])),this[_0x4cd6ce(0x167)]=new _0x379182(_0x57f459,_0x2d8b29[_0x4cd6ce(0x134)],this[_0x4cd6ce(0x14e)]()),this[_0x4cd6ce(0x167)][_0x4cd6ce(0x143)]({'attributes':{'class':[_0x4cd6ce(0x15d),_0x4cd6ce(0x11f)],'aria-hidden':!0x0}}),this[_0x4cd6ce(0x183)](_0x2d8b29,_0x4cd6ce(0x12f),()=>this[_0x4cd6ce(0x14a)]()),this[_0x4cd6ce(0x124)](this[_0x4cd6ce(0x138)]());}[_0x1ce9d7(0x138)](){const _0x536ca3=_0x1ce9d7,_0x5c38d6=this[_0x536ca3(0x185)],_0x1fd2f6=[{'tag':_0x536ca3(0x12e),'attributes':{'class':[_0x536ca3(0x182),_0x536ca3(0x176)]},'children':[{'tag':_0x536ca3(0x14c),'children':[{'text':this[_0x536ca3(0x167)][_0x536ca3(0x13e)]}],'attributes':{'class':[_0x536ca3(0x117),_0x536ca3(0x16b)],'data-cke-tooltip-text':this[_0x536ca3(0x167)][_0x536ca3(0x13e)]}},{'tag':_0x536ca3(0x147),'attributes':{'datetime':_0x5c38d6['to'](_0x536ca3(0x166)),'class':[_0x536ca3(0x155),_0x536ca3(0x121)]},'children':[{'text':_0x5c38d6['to'](_0x536ca3(0x166),_0x1a8ef4=>this[_0x536ca3(0x169)][_0x536ca3(0x17e)](_0x1a8ef4))}]}]},{'tag':_0x536ca3(0x12e),'attributes':{'class':[_0x536ca3(0x163),_0x536ca3(0x119),_0x5c38d6['if'](_0x536ca3(0x164),_0x536ca3(0x11d)),_0x5c38d6['if'](_0x536ca3(0x164),_0x536ca3(0x118))]},'children':this[_0x536ca3(0x15b)]},{'tag':_0x536ca3(0x12e),'attributes':{'class':[_0x536ca3(0x175)]},'children':this[_0x536ca3(0x170)]},this[_0x536ca3(0x13f)]];return this[_0x536ca3(0x189)][_0x536ca3(0x12b)]&&_0x1fd2f6[_0x536ca3(0x15f)]({'tag':_0x536ca3(0x12e),'attributes':{'class':[_0x536ca3(0x148)]},'children':[{'text':this[_0x536ca3(0x152)]()}]}),{'tag':'li','attributes':{'class':[_0x536ca3(0x173),_0x5c38d6['if'](_0x536ca3(0x125),_0x536ca3(0x17a))],'tabindex':-0x1,'aria-label':_0x5c38d6['to'](_0x536ca3(0x188)),'aria-describedby':this[_0x536ca3(0x13f)]['id'],'role':_0x536ca3(0x158)},'children':[{'tag':_0x536ca3(0x12e),'attributes':{'class':[_0x536ca3(0x14d),_0x536ca3(0x123),_0x5c38d6['if'](_0x536ca3(0x164),_0x536ca3(0x11c)),_0x5c38d6['if'](_0x536ca3(0x186),_0x536ca3(0x177)),_0x5c38d6['to'](_0x536ca3(0x144),_0x23610f=>_0x23610f?_0x536ca3(0x178)+_0x23610f:'')],'data-author-id':this[_0x536ca3(0x189)][_0x536ca3(0x134)]['id'],'data-comment-id':this[_0x536ca3(0x189)]['id'],'role':_0x536ca3(0x15e)},'children':[this[_0x536ca3(0x167)],{'tag':_0x536ca3(0x12e),'attributes':{'class':[_0x536ca3(0x13a),_0x536ca3(0x127)]},'children':_0x1fd2f6}]}]};}[_0x1ce9d7(0x146)](){const _0x194b57=_0x1ce9d7,_0xca6ac1=new _0x1a5d39(this[_0x194b57(0x17c)]);return _0xca6ac1[_0x194b57(0x113)]=_0x210658(this[_0x194b57(0x17c)],_0x194b57(0x154)),_0xca6ac1[_0x194b57(0x136)]=_0x1c2a31,_0xca6ac1[_0x194b57(0x159)]=!0x0,_0xca6ac1[_0x194b57(0x143)]({'attributes':{'class':_0x194b57(0x11c)}}),_0xca6ac1[_0x194b57(0x16f)](_0x194b57(0x141))['to'](this[_0x194b57(0x189)],_0x194b57(0x157),_0x34d87b=>!_0x34d87b),_0xca6ac1[_0x194b57(0x16f)](_0x194b57(0x172))['to'](this[_0x194b57(0x189)],_0x194b57(0x132)),_0xca6ac1['on'](_0x194b57(0x114),()=>this[_0x194b57(0x142)]()),_0xca6ac1;}[_0x1ce9d7(0x14b)](){const _0xae395c=_0x1ce9d7,_0x27d8d6=new _0x1a5d39(this[_0xae395c(0x17c)]);return _0x27d8d6[_0xae395c(0x113)]=_0x210658(this[_0xae395c(0x17c)],_0xae395c(0x16a)),_0x27d8d6[_0xae395c(0x136)]=_0x3f35f8,_0x27d8d6[_0xae395c(0x159)]=!0x0,_0x27d8d6[_0xae395c(0x143)]({'attributes':{'class':_0xae395c(0x145)}}),_0x27d8d6[_0xae395c(0x16f)](_0xae395c(0x141))['to'](this[_0xae395c(0x189)],_0xae395c(0x157),_0x2da914=>!_0x2da914),_0x27d8d6[_0xae395c(0x16f)](_0xae395c(0x172))['to'](this[_0xae395c(0x189)],_0xae395c(0x129)),_0x27d8d6['on'](_0xae395c(0x114),()=>{const _0x1da12f=_0xae395c;this[_0x1da12f(0x153)](_0x210658(this[_0x1da12f(0x17c)],_0x1da12f(0x137)),this[_0x1da12f(0x11a)])[_0x1da12f(0x179)](()=>{const _0x2928bd=_0x1da12f;this[_0x2928bd(0x168)](_0x2928bd(0x140),this[_0x2928bd(0x189)]['id']);});}),_0x27d8d6;}[_0x1ce9d7(0x156)](){const _0x10708a=_0x1ce9d7,_0x5c25c3=_0x35b8e4(this[_0x10708a(0x17c)],_0x471188),_0x384e5f=_0x5c25c3[_0x10708a(0x17d)][_0x10708a(0x126)],_0x37132a=new _0x5d94c4(this[_0x10708a(0x17c)]),_0x16c47c=_0x5c25c3[_0x10708a(0x185)];_0x20f931(_0x5c25c3,()=>this[_0x10708a(0x171)][_0x10708a(0x12d)](_0x58df80=>_0x58df80[_0x10708a(0x172)])),_0x5c25c3[_0x10708a(0x143)]({'attributes':{'class':[_0x16c47c['if'](_0x10708a(0x172),_0x10708a(0x13d),_0x236b1d=>!_0x236b1d)]}});const _0x30cf76=(_0x377ef6,_0x3e3b62=-0x1)=>{const _0x37436f=_0x10708a,_0x5dfcd2=new _0x17c2dd(this[_0x37436f(0x17c)]);_0x5dfcd2[_0x37436f(0x126)][_0x37436f(0x18a)](_0x377ef6);const _0x3eee53=_0x3e3b62>-0x1?_0x3e3b62:_0x37132a[_0x37436f(0x171)][_0x37436f(0x16c)];_0x37132a[_0x37436f(0x171)][_0x37436f(0x18a)](_0x5dfcd2,_0x3eee53);const _0x144f05=Array[_0x37436f(0x17b)](this[_0x37436f(0x171)]);_0x5c25c3[_0x37436f(0x12a)](_0x37436f(0x141),_0x37436f(0x172)),_0x5c25c3[_0x37436f(0x16f)](_0x37436f(0x141))[_0x37436f(0x133)](_0x144f05,_0x37436f(0x141),(..._0x3709bc)=>_0x3709bc[_0x37436f(0x11b)](_0x5ed509=>_0x5ed509)),_0x5c25c3[_0x37436f(0x16f)](_0x37436f(0x172))[_0x37436f(0x133)](_0x144f05,_0x37436f(0x172),(..._0x408c9f)=>_0x408c9f[_0x37436f(0x11b)](_0x1a22bf=>_0x1a22bf));};_0x5c25c3[_0x10708a(0x180)]='sw',_0x5c25c3[_0x10708a(0x12c)][_0x10708a(0x115)]({'label':_0x210658(this[_0x10708a(0x17c)],_0x10708a(0x187)),'icon':_0x1701f7});for(const _0xb65371 of this[_0x10708a(0x171)])_0x30cf76(_0xb65371);return _0x384e5f[_0x10708a(0x18a)](_0x37132a),_0x5c25c3[_0x10708a(0x183)](this[_0x10708a(0x171)],_0x10708a(0x18a),(_0x56809d,_0x48a523,_0x4d3e66)=>{_0x30cf76(_0x48a523,_0x4d3e66);}),_0x5c25c3[_0x10708a(0x183)](this[_0x10708a(0x171)],_0x10708a(0x13b),(_0x53cb1f,_0x400e52,_0x428d56)=>{const _0x2f6f40=_0x10708a;_0x37132a[_0x2f6f40(0x171)][_0x2f6f40(0x13b)](_0x428d56);}),_0x5c25c3;}[_0x1ce9d7(0x161)](_0x2564ea,_0x46adb0){const _0x28a794=_0x1ce9d7,_0x5756f8=_0x2564ea&&_0x2564ea[_0x28a794(0x11a)];_0x5756f8&&(this[_0x28a794(0x183)](_0x5756f8,_0x28a794(0x122),()=>this[_0x28a794(0x144)]=_0x46adb0),this[_0x28a794(0x183)](_0x5756f8,_0x28a794(0x15c),()=>this[_0x28a794(0x144)]=_0x46adb0),this[_0x28a794(0x183)](_0x5756f8,_0x28a794(0x130),()=>this[_0x28a794(0x144)]=null),this[_0x28a794(0x183)](_0x5756f8,_0x28a794(0x16e),()=>this[_0x28a794(0x144)]=null));}[_0x1ce9d7(0x139)](){const _0x4fb21f=_0x1ce9d7,_0x155982=super[_0x4fb21f(0x139)]();return _0x155982[_0x4fb21f(0x16f)](_0x4fb21f(0x181))['to'](this),_0x155982;}[_0x1ce9d7(0x165)](){const _0x56aa00=_0x1ce9d7;super[_0x56aa00(0x165)](),this[_0x56aa00(0x161)](this[_0x56aa00(0x174)],_0x56aa00(0x120)),this[_0x56aa00(0x161)](this[_0x56aa00(0x15a)],_0x56aa00(0x13b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x40d0(){const _0xd0a3b9=['type','5RInwpr','6488vwAXGe','190156aQSCYL','903642PADjFg','class','6115221gbzbWJ','attributeName','cancel','childList','4249FKAhtp','attributes','disconnect','360212BlCrmS','observe','3SiZfVO','6218694PLfcUd','20572210TeWCXM','characterData'];_0x40d0=function(){return _0xd0a3b9;};return _0x40d0();}function _0x3bbd(_0x4b25df,_0x14b0eb){const _0x40d0c7=_0x40d0();return _0x3bbd=function(_0x3bbdc0,_0x43b233){_0x3bbdc0=_0x3bbdc0-0xa3;let _0x4d49b2=_0x40d0c7[_0x3bbdc0];return _0x4d49b2;},_0x3bbd(_0x4b25df,_0x14b0eb);}(function(_0x49f31b,_0x46906a){const _0x26b411=_0x3bbd,_0x5975fd=_0x49f31b();while(!![]){try{const _0x3e7a8b=parseInt(_0x26b411(0xad))/0x1+-parseInt(_0x26b411(0xa4))/0x2*(parseInt(_0x26b411(0xaf))/0x3)+-parseInt(_0x26b411(0xa3))/0x4*(parseInt(_0x26b411(0xb4))/0x5)+-parseInt(_0x26b411(0xb0))/0x6+-parseInt(_0x26b411(0xaa))/0x7*(-parseInt(_0x26b411(0xb5))/0x8)+-parseInt(_0x26b411(0xa6))/0x9+parseInt(_0x26b411(0xb1))/0xa;if(_0x3e7a8b===_0x46906a)break;else _0x5975fd['push'](_0x5975fd['shift']());}catch(_0x3a84b3){_0x5975fd['push'](_0x5975fd['shift']());}}}(_0x40d0,0xa98a0));import{throttle as _0x3c3211}from'es-toolkit/compat';export function createMutationObserver(_0x57bb66){const _0x2e836f=_0x3c3211(_0x57bb66,0x1e),_0xf3a9a2=new MutationObserver(_0xdf2c9d=>{const _0x358b6a=_0x3bbd;for(const _0x35b649 of _0xdf2c9d)(_0x358b6a(0xab)==_0x35b649[_0x358b6a(0xb3)]&&_0x358b6a(0xa5)==_0x35b649[_0x358b6a(0xa7)]||_0x358b6a(0xa9)==_0x35b649[_0x358b6a(0xb3)]||_0x358b6a(0xb2)==_0x35b649[_0x358b6a(0xb3)])&&_0x2e836f();});return{'attach'(_0x5f2fa0){const _0x2ea8f4=_0x3bbd;_0xf3a9a2[_0x2ea8f4(0xae)](_0x5f2fa0,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){const _0xb5e12e=_0x3bbd;_0xf3a9a2[_0xb5e12e(0xac)](),_0x2e836f[_0xb5e12e(0xa8)]();}};}
|