@ckeditor/ckeditor5-comments 45.2.1 → 46.0.0-alpha.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/dist/index-editor.css +69 -67
- package/dist/index.css +80 -78
- package/dist/index.js +11 -9
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +19 -19
- package/src/annotations/annotation.d.ts +4 -4
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.d.ts +2 -2
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +4 -4
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +4 -4
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +4 -4
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +5 -5
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +5 -5
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +14 -13
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +1 -1
- package/src/annotations/view/sidebaritemview.js +2 -1
- package/src/annotations/view/sidebarview.d.ts +4 -4
- package/src/annotations/view/sidebarview.js +2 -1
- package/src/annotations/widesidebar.d.ts +5 -5
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +2 -2
- package/src/comments/addcommentthreadcommand.d.ts +48 -9
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +3 -3
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +4 -4
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +7 -7
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +14 -6
- package/src/comments/commentsrepository.js +3 -3
- package/src/comments/commentsui.d.ts +5 -5
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/clipboard.d.ts +1 -1
- package/src/comments/integrations/clipboard.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/integrations/showcommenthighlights.d.ts +1 -1
- package/src/comments/integrations/showcommenthighlights.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +4 -4
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.d.ts +2 -2
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.d.ts +4 -4
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +4 -4
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +2 -2
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +2 -2
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheadercontextview.d.ts +1 -1
- package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +2 -2
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +2 -2
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +2 -2
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.d.ts +3 -3
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.d.ts +10 -10
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +2 -2
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +3 -3
- package/src/index.d.ts +29 -25
- package/src/index.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.d.ts +1 -1
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/comment.css +2 -1
- package/theme/commentinput.css +2 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x285a5b=_0x2560;(function(_0xf0a840,_0x59339e){const _0x2b5989=_0x2560,_0x394d73=_0xf0a840();while(!![]){try{const _0x11a2d7=-parseInt(_0x2b5989(0x1cd))/0x1+parseInt(_0x2b5989(0x1d5))/0x2+parseInt(_0x2b5989(0x1d7))/0x3+-parseInt(_0x2b5989(0x1d2))/0x4+parseInt(_0x2b5989(0x1ee))/0x5+-parseInt(_0x2b5989(0x1cf))/0x6+parseInt(_0x2b5989(0x1f7))/0x7;if(_0x11a2d7===_0x59339e)break;else _0x394d73['push'](_0x394d73['shift']());}catch(_0x853989){_0x394d73['push'](_0x394d73['shift']());}}}(_0x2741,0xc22f7));function _0x2560(_0x40bb36,_0x1c3919){const _0x2741cb=_0x2741();return _0x2560=function(_0x256080,_0x4dae5b){_0x256080=_0x256080-0x1be;let _0x2ba151=_0x2741cb[_0x256080];return _0x2ba151;},_0x2560(_0x40bb36,_0x1c3919);}import{Plugin as _0x403c8d}from'ckeditor5/src/core.js';import _0x51c682 from'./annotationsuis.js';import _0x569f8b from'./editorannotations.js';import{ContextualBalloon as _0x3f73d2}from'ckeditor5/src/ui.js';import{MouseObserver as _0x30256c}from'ckeditor5/src/engine.js';import{CKEditorError as _0x532867,Rect as _0x8474c2}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x403c8d{[_0x285a5b(0x1bf)];[_0x285a5b(0x216)];[_0x285a5b(0x1c4)];[_0x285a5b(0x1e5)];[_0x285a5b(0x21c)];[_0x285a5b(0x206)];[_0x285a5b(0x200)];static get[_0x285a5b(0x1c6)](){return[_0x569f8b,_0x3f73d2,_0x51c682];}static get[_0x285a5b(0x1ef)](){const _0x2b41e4=_0x285a5b;return _0x2b41e4(0x1ca);}static get[_0x285a5b(0x215)](){return!0x0;}static get[_0x285a5b(0x1c7)](){return!0x0;}constructor(_0x7f032c){const _0x3e5972=_0x285a5b;super(_0x7f032c),_0x7f032c[_0x3e5972(0x1ea)][_0x3e5972(0x20c)][_0x3e5972(0x21b)](_0x30256c),this[_0x3e5972(0x1bf)]=!0x1,this[_0x3e5972(0x1d4)](_0x3e5972(0x1f4),null),this[_0x3e5972(0x216)]=null,this[_0x3e5972(0x1c4)]=new Set(),this[_0x3e5972(0x1e5)]=_0x7f032c[_0x3e5972(0x20f)][_0x3e5972(0x1f6)](_0x3f73d2),this[_0x3e5972(0x21c)]=new Set(),this[_0x3e5972(0x206)]=[],this[_0x3e5972(0x200)]=!0x1;}[_0x285a5b(0x1fa)](){const _0x35826d=_0x285a5b,_0x192fdf=this[_0x35826d(0x1fb)][_0x35826d(0x20f)][_0x35826d(0x1f6)](_0x51c682);_0x192fdf[_0x35826d(0x1cb)]===this[_0x35826d(0x1fb)]&&(_0x192fdf[_0x35826d(0x1df)](_0x35826d(0x1c9),this),this[_0x35826d(0x1fb)][_0x35826d(0x1c8)][_0x35826d(0x1d4)](_0x35826d(0x1e2),(_0x3fc817,_0x210921)=>{const _0x330e3e=_0x35826d,_0x2eded=this[_0x330e3e(0x1e5)];if(this[_0x330e3e(0x1bf)]&&_0x2eded[_0x330e3e(0x1c1)]){const _0x594da4=this[_0x330e3e(0x216)][_0x330e3e(0x1be)](_0x2eded[_0x330e3e(0x1c1)]);_0x594da4&&this[_0x330e3e(0x1fc)](_0x594da4),_0x210921();}}));}[_0x285a5b(0x1c5)](){const _0x57cb8b=_0x285a5b,_0xcf57a0=this[_0x57cb8b(0x1fb)][_0x57cb8b(0x20f)][_0x57cb8b(0x1f6)](_0x51c682);_0xcf57a0[_0x57cb8b(0x1cb)]===this[_0x57cb8b(0x1fb)]&&(_0xcf57a0[_0x57cb8b(0x1fd)]()||_0xcf57a0[_0x57cb8b(0x218)](_0x57cb8b(0x1c9)));}[_0x285a5b(0x1d8)](_0x9f449){const _0x2df32c=_0x285a5b;_0x9f449!==this[_0x2df32c(0x1f4)]&&(this[_0x2df32c(0x1f4)]&&(this[_0x2df32c(0x1f4)][_0x2df32c(0x1de)]=!0x1),_0x9f449&&this[_0x2df32c(0x1fb)]['ui'][_0x2df32c(0x211)][_0x2df32c(0x210)]&&(this[_0x2df32c(0x216)][_0x2df32c(0x205)](_0x9f449)&&this[_0x2df32c(0x1d3)](_0x9f449,!0x0),_0x9f449[_0x2df32c(0x1de)]=!0x0),_0x9f449||this[_0x2df32c(0x213)]([]),this[_0x2df32c(0x1f4)]=_0x9f449);}[_0x285a5b(0x20b)](_0x232180){const _0x483c83=_0x285a5b;this[_0x483c83(0x216)]=_0x232180;const _0x5826e1=this[_0x483c83(0x1fb)][_0x483c83(0x20f)][_0x483c83(0x1f6)](_0x51c682),_0x573ce8=this[_0x483c83(0x1e5)];if(this[_0x483c83(0x1bf)])throw new _0x532867(_0x483c83(0x1e6),this);if(_0x5826e1[_0x483c83(0x1cb)]!==this[_0x483c83(0x1fb)])throw new _0x532867(_0x483c83(0x212),this);const _0x3d588b=this[_0x483c83(0x1fb)][_0x483c83(0x20f)][_0x483c83(0x1f6)](_0x569f8b);this[_0x483c83(0x1f9)](_0x3d588b,_0x483c83(0x204),()=>{const _0x34d1b7=_0x483c83,_0x15b085=_0x3d588b[_0x34d1b7(0x21d)]({'annotations':this[_0x34d1b7(0x216)],'activeAnnotation':this[_0x34d1b7(0x1f4)]});var _0x5868e1,_0x54ecd8;!this[_0x34d1b7(0x200)]&&(_0x5868e1=_0x15b085,_0x54ecd8=this[_0x34d1b7(0x206)],_0x5868e1[_0x34d1b7(0x203)]===_0x54ecd8[_0x34d1b7(0x203)]&&_0x5868e1[_0x34d1b7(0x209)](_0x5cd820=>_0x54ecd8[_0x34d1b7(0x1dd)](_0x5cd820)))||(this[_0x34d1b7(0x200)]=!0x1,this[_0x34d1b7(0x213)](_0x15b085),this[_0x34d1b7(0x1d8)](_0x15b085[0x0]||null));}),this[_0x483c83(0x1f9)](_0x3d588b,_0x483c83(0x20e),(_0x500616,{isAnnotationTracked:_0x4a6066})=>{const _0x14bf64=_0x483c83;this[_0x14bf64(0x1f4)]&&_0x4a6066(this[_0x14bf64(0x1f4)])&&(this[_0x14bf64(0x213)]([]),this[_0x14bf64(0x1d8)](null));}),this[_0x483c83(0x1f9)](this[_0x483c83(0x1fb)]['ui'][_0x483c83(0x211)],_0x483c83(0x1f3),(_0x27295a,_0x316c41,_0x38e300)=>{const _0x471a6b=_0x483c83;_0x38e300||this[_0x471a6b(0x1d8)](null);}),this[_0x483c83(0x1f9)](_0x232180,_0x483c83(0x1e3),(_0x760b82,_0x2f8196)=>{const _0x1ce36e=_0x483c83;this[_0x1ce36e(0x1da)](_0x2f8196),_0x2f8196===this[_0x1ce36e(0x1f4)]&&this[_0x1ce36e(0x1d8)](null);}),this[_0x483c83(0x1f9)](_0x573ce8,_0x483c83(0x1c0),(_0x56becd,_0x5705b1,_0x4e80d3,_0x56f51a)=>{const _0x52f3db=_0x483c83;_0x56f51a&&this[_0x52f3db(0x1ff)](_0x56f51a);const _0x472c2d=_0x232180[_0x52f3db(0x1be)](_0x4e80d3);_0x4e80d3&&_0x472c2d&&(this[_0x52f3db(0x1f9)](_0x4e80d3,_0x52f3db(0x1ec),()=>{const _0x310cb5=_0x52f3db;_0x573ce8[_0x310cb5(0x1d1)]();}),this[_0x52f3db(0x1f9)](_0x4e80d3,_0x52f3db(0x1e2),()=>{const _0x510440=_0x52f3db;this[_0x510440(0x1fc)](_0x472c2d),this[_0x510440(0x1fb)][_0x510440(0x1ea)][_0x510440(0x20c)][_0x510440(0x1eb)]();}),this[_0x52f3db(0x1f4)]!==_0x472c2d&&this[_0x52f3db(0x1d8)](_0x472c2d));}),this[_0x483c83(0x1f9)](this[_0x483c83(0x1fb)]['ui'],_0x483c83(0x21a),()=>{const _0x58153f=_0x483c83;_0x573ce8[_0x58153f(0x1c1)]&&(_0x232180[_0x58153f(0x1be)](_0x573ce8[_0x58153f(0x1c1)])&&_0x573ce8[_0x58153f(0x1d1)]());}),this[_0x483c83(0x1f9)](this[_0x483c83(0x1fb)][_0x483c83(0x1ea)][_0x483c83(0x20c)][_0x483c83(0x1ce)],_0x483c83(0x1db),()=>{const _0x198ba0=_0x483c83;this[_0x198ba0(0x200)]=!0x0,this[_0x198ba0(0x1c4)][_0x198ba0(0x1dc)]();}),this[_0x483c83(0x1fb)][_0x483c83(0x1ea)][_0x483c83(0x20c)][_0x483c83(0x1ce)][_0x483c83(0x20d)][_0x483c83(0x1c2)]&&this[_0x483c83(0x1fb)][_0x483c83(0x1ea)][_0x483c83(0x20c)][_0x483c83(0x1eb)](),this[_0x483c83(0x1bf)]=!0x0;}[_0x285a5b(0x207)](){const _0xb5b740=_0x285a5b;if(!this[_0xb5b740(0x1bf)])throw new _0x532867(_0xb5b740(0x219),this);this[_0xb5b740(0x1d8)](null);for(const _0x12fb73 of this[_0xb5b740(0x21c)])this[_0xb5b740(0x1da)](_0x12fb73);this[_0xb5b740(0x1ff)](),this[_0xb5b740(0x1bf)]=!0x1,this[_0xb5b740(0x216)]=null;}[_0x285a5b(0x1fe)](){const _0x14eb3b=_0x285a5b;this[_0x14eb3b(0x1bf)]&&this[_0x14eb3b(0x207)]();}[_0x285a5b(0x213)](_0x7b74a0){const _0xf3f7f9=_0x285a5b;for(const _0x42d6ad of this[_0xf3f7f9(0x206)])_0x7b74a0[_0xf3f7f9(0x1dd)](_0x42d6ad)||this[_0xf3f7f9(0x1c4)][_0xf3f7f9(0x1f5)](_0x42d6ad);for(const _0x3fcbb2 of this[_0xf3f7f9(0x216)])_0x7b74a0[_0xf3f7f9(0x1dd)](_0x3fcbb2)||this[_0xf3f7f9(0x1da)](_0x3fcbb2);if(this[_0xf3f7f9(0x1fb)]['ui'][_0xf3f7f9(0x211)][_0xf3f7f9(0x210)]){for(const _0x106803 of _0x7b74a0)this[_0xf3f7f9(0x1d3)](_0x106803);}this[_0xf3f7f9(0x206)]=_0x7b74a0;}[_0x285a5b(0x1d3)](_0x1ab462,_0x371992=!0x1){const _0x255db1=_0x285a5b;this[_0x255db1(0x1c4)][_0x255db1(0x205)](_0x1ab462)||(this[_0x255db1(0x21c)][_0x255db1(0x205)](_0x1ab462)||this[_0x255db1(0x1e5)][_0x255db1(0x1c3)](_0x1ab462[_0x255db1(0x20c)])||(this[_0x255db1(0x21c)][_0x255db1(0x1ed)](_0x1ab462),this[_0x255db1(0x1e5)][_0x255db1(0x1ed)]({'stackId':_0x1ab462[_0x255db1(0x20c)]['id'],'view':_0x1ab462[_0x255db1(0x20c)],'position':{'target':()=>this[_0x255db1(0x202)](_0x1ab462)}})),_0x371992&&this[_0x255db1(0x1e5)][_0x255db1(0x1e7)](_0x1ab462[_0x255db1(0x20c)]['id']));}[_0x285a5b(0x202)](_0x56fffc){const _0x1ea9f1=_0x285a5b,_0x7d9b48=_0x56fffc[_0x1ea9f1(0x1f0)],_0x5c3619=this[_0x1ea9f1(0x1fb)][_0x1ea9f1(0x1ea)][_0x1ea9f1(0x20c)],_0x2713b4=_0x5c3619[_0x1ea9f1(0x1ce)][_0x1ea9f1(0x20d)][_0x1ea9f1(0x1d9)](),_0x504b61=_0x5c3619[_0x1ea9f1(0x1e0)][_0x1ea9f1(0x1d0)](_0x2713b4);if(_0x504b61[_0x1ea9f1(0x1e1)](!0x0),_0x7d9b48){if(_0x7d9b48 instanceof _0x8474c2)return _0x7d9b48;let _0x385923=[];for(const _0x4d5569 of _0x7d9b48)_0x385923[_0x1ea9f1(0x201)](...B(_0x4d5569[_0x1ea9f1(0x1e9)]()));_0x385923=function(_0x5e25cb){const _0x46940a=_0x1ea9f1,_0x38b948=[];let _0x339eac=_0x5e25cb[0x0];for(let _0x51b7c0=0x1;_0x51b7c0<_0x5e25cb[_0x46940a(0x203)];_0x51b7c0++)F(_0x339eac,_0x5e25cb[_0x51b7c0])?_0x339eac[_0x46940a(0x1e8)]+=_0x5e25cb[_0x51b7c0][_0x46940a(0x1e8)]:(_0x38b948[_0x46940a(0x201)](_0x339eac),_0x339eac=_0x5e25cb[_0x51b7c0]);return _0x38b948[_0x46940a(0x201)](_0x339eac),_0x38b948;}(_0x385923);const _0x144b41=_0x504b61[_0x1ea9f1(0x214)]();return _0x385923[_0x1ea9f1(0x1e4)](_0x253c40=>_0x253c40[_0x1ea9f1(0x1cc)]<=_0x144b41[_0x1ea9f1(0x1cc)]&&_0x253c40[_0x1ea9f1(0x1d6)]>=_0x144b41[_0x1ea9f1(0x1d6)]&&_0x253c40[_0x1ea9f1(0x1f2)]<=_0x144b41[_0x1ea9f1(0x1f2)]&&_0x253c40[_0x1ea9f1(0x208)]>=_0x144b41[_0x1ea9f1(0x208)])||_0x385923[0x0];}return _0x56fffc[_0x1ea9f1(0x1f1)]||_0x504b61;}[_0x285a5b(0x1da)](_0x259b71){const _0x441ba7=_0x285a5b;this[_0x441ba7(0x21c)][_0x441ba7(0x205)](_0x259b71)&&this[_0x441ba7(0x1e5)][_0x441ba7(0x1c3)](_0x259b71[_0x441ba7(0x20c)])&&(this[_0x441ba7(0x21c)][_0x441ba7(0x1f5)](_0x259b71),this[_0x441ba7(0x1e5)][_0x441ba7(0x1e3)](_0x259b71[_0x441ba7(0x20c)]));}[_0x285a5b(0x1fc)](_0x588536){const _0x2bfe1a=_0x285a5b;this[_0x2bfe1a(0x1c4)][_0x2bfe1a(0x1ed)](_0x588536),this[_0x2bfe1a(0x1da)](_0x588536);}}function B(_0x10b410){const _0x3ea053=_0x285a5b;return Array[_0x3ea053(0x20a)](_0x10b410)[_0x3ea053(0x217)](DOMRect[_0x3ea053(0x1f8)]);}function F(_0x13c267,_0x52620a){const _0x59f1a5=_0x285a5b;return _0x13c267[_0x59f1a5(0x1cc)]===_0x52620a[_0x59f1a5(0x1cc)]&&_0x13c267[_0x59f1a5(0x1d6)]===_0x52620a[_0x59f1a5(0x1d6)]&&_0x13c267[_0x59f1a5(0x208)]===_0x52620a[_0x59f1a5(0x1f2)];}function _0x2741(){const _0x242f26=['right','every','from','attach','view','selection','blur','plugins','isFocused','focusTracker','inlineannotations-not-allowed-with-context','_setSelectedAnnotations','getBoundingClientRect','isOfficialPlugin','annotations','map','switchTo','inlineannotations-detach-not-attached','update','addObserver','_addedAnnotations','getOrderedSelectedAnnotations','getByView','isAttached','change:visibleView','visibleView','editableElement','hasView','_manuallyClosed','afterInit','requires','isPremiumPlugin','keystrokes','inline','InlineAnnotations','context','top','1330238QordHC','document','688752ukLHOX','viewRangeToDom','updatePosition','4663908UfzWyY','_addAnnotationToBalloon','set','341810RpgRvl','bottom','1346625Agvite','setActiveAnnotation','getFirstRange','_removeAnnotationFromBalloon','mousedown','clear','includes','isActive','register','domConverter','collapse','Esc','remove','find','_balloon','inlineannotations-attach-already-attached','showStack','width','getClientRects','editing','focus','change:height','add','4953930QJZhZY','pluginName','target','targetRect','left','change:isFocused','activeAnnotation','delete','get','12570768xAiFzs','fromRect','listenTo','init','editor','_closeAnnotation','hasActive','destroy','stopListening','_forceRefresh','push','_getBalloonTargetForAnnotation','length','refresh','has','_selectedAnnotations','detach'];_0x2741=function(){return _0x242f26;};return _0x2741();}
|
|
23
|
+
const _0x53c9c3=_0xd4de;(function(_0x2b84da,_0x44d997){const _0x1367c1=_0xd4de,_0x2fffaf=_0x2b84da();while(!![]){try{const _0x392367=-parseInt(_0x1367c1(0x1de))/0x1+parseInt(_0x1367c1(0x1b3))/0x2+-parseInt(_0x1367c1(0x1ed))/0x3+parseInt(_0x1367c1(0x1e3))/0x4+-parseInt(_0x1367c1(0x1ce))/0x5+-parseInt(_0x1367c1(0x1cc))/0x6*(-parseInt(_0x1367c1(0x1f0))/0x7)+parseInt(_0x1367c1(0x1ad))/0x8*(parseInt(_0x1367c1(0x1f6))/0x9);if(_0x392367===_0x44d997)break;else _0x2fffaf['push'](_0x2fffaf['shift']());}catch(_0x1194bc){_0x2fffaf['push'](_0x2fffaf['shift']());}}}(_0x87c2,0x72ff4));import{Plugin as _0x300447}from'ckeditor5/src/core.js';function _0x87c2(){const _0xef0d6b=['inlineannotations-attach-already-attached','annotations','destroy','keystrokes','switchTo','isOfficialPlugin','_addedAnnotations','change:height','every','focusTracker','remove','context','_addAnnotationToBalloon','clear','1208QKaONG','length','mousedown','map','hasActive','_manuallyClosed','758482UIIiDr','isAttached','bottom','Esc','fromRect','getOrderedSelectedAnnotations','delete','push','focus','_setSelectedAnnotations','get','showStack','getBoundingClientRect','inline','inlineannotations-not-allowed-with-context','init','hasView','stopListening','target','targetRect','width','getClientRects','update','addObserver','viewRangeToDom','15348trKIWw','isActive','1987210nKZjaC','find','_closeAnnotation','_getBalloonTargetForAnnotation','visibleView','isFocused','_removeAnnotationFromBalloon','left','has','getFirstRange','attach','requires','from','document','editableElement','change:isFocused','907106gkuciR','plugins','_selectedAnnotations','selection','set','2419252OUXquh','add','_balloon','isPremiumPlugin','domConverter','pluginName','afterInit','getByView','updatePosition','setActiveAnnotation','1642170giueZN','InlineAnnotations','blur','1883QdoZKQ','editor','includes','activeAnnotation','listenTo','right','38790wLWMxb','change:visibleView','inlineannotations-detach-not-attached','top','refresh','editing','_forceRefresh','register','detach','view','collapse'];_0x87c2=function(){return _0xef0d6b;};return _0x87c2();}import{AnnotationsUIs as _0x24369f}from'./annotationsuis.js';import{EditorAnnotations as _0x5bd6d3}from'./editorannotations.js';import{ContextualBalloon as _0x7719d8}from'ckeditor5/src/ui.js';import{MouseObserver as _0xd388db}from'ckeditor5/src/engine.js';import{CKEditorError as _0x534f17,Rect as _0x125f48}from'ckeditor5/src/utils.js';function _0xd4de(_0x3dad83,_0x53f2b4){const _0x87c26f=_0x87c2();return _0xd4de=function(_0xd4de5b,_0x45e936){_0xd4de5b=_0xd4de5b-0x19c;let _0x35e274=_0x87c26f[_0xd4de5b];return _0x35e274;},_0xd4de(_0x3dad83,_0x53f2b4);}import'./../../theme/annotation-inline.css';export class InlineAnnotations extends _0x300447{[_0x53c9c3(0x1b4)];[_0x53c9c3(0x1a0)];[_0x53c9c3(0x1b2)];[_0x53c9c3(0x1e5)];[_0x53c9c3(0x1a5)];[_0x53c9c3(0x1e0)];[_0x53c9c3(0x1fc)];static get[_0x53c9c3(0x1d9)](){return[_0x5bd6d3,_0x7719d8,_0x24369f];}static get[_0x53c9c3(0x1e8)](){const _0x357f05=_0x53c9c3;return _0x357f05(0x1ee);}static get[_0x53c9c3(0x1a4)](){return!0x0;}static get[_0x53c9c3(0x1e6)](){return!0x0;}constructor(_0xb907c7){const _0x55f7c7=_0x53c9c3;super(_0xb907c7),_0xb907c7[_0x55f7c7(0x1fb)][_0x55f7c7(0x19d)][_0x55f7c7(0x1ca)](_0xd388db),this[_0x55f7c7(0x1b4)]=!0x1,this[_0x55f7c7(0x1e2)](_0x55f7c7(0x1f3),null),this[_0x55f7c7(0x1a0)]=null,this[_0x55f7c7(0x1b2)]=new Set(),this[_0x55f7c7(0x1e5)]=_0xb907c7[_0x55f7c7(0x1df)][_0x55f7c7(0x1bd)](_0x7719d8),this[_0x55f7c7(0x1a5)]=new Set(),this[_0x55f7c7(0x1e0)]=[],this[_0x55f7c7(0x1fc)]=!0x1;}[_0x53c9c3(0x1c2)](){const _0x59f4a2=_0x53c9c3,_0x51f90c=this[_0x59f4a2(0x1f1)][_0x59f4a2(0x1df)][_0x59f4a2(0x1bd)](_0x24369f);_0x51f90c[_0x59f4a2(0x1aa)]===this[_0x59f4a2(0x1f1)]&&(_0x51f90c[_0x59f4a2(0x1fd)](_0x59f4a2(0x1c0),this),this[_0x59f4a2(0x1f1)][_0x59f4a2(0x1a2)][_0x59f4a2(0x1e2)](_0x59f4a2(0x1b6),(_0x4feed6,_0x385432)=>{const _0x5baf52=_0x59f4a2,_0x263c1d=this[_0x5baf52(0x1e5)];if(this[_0x5baf52(0x1b4)]&&_0x263c1d[_0x5baf52(0x1d2)]){const _0x658b1c=this[_0x5baf52(0x1a0)][_0x5baf52(0x1ea)](_0x263c1d[_0x5baf52(0x1d2)]);_0x658b1c&&this[_0x5baf52(0x1d0)](_0x658b1c),_0x385432();}}));}[_0x53c9c3(0x1e9)](){const _0x3e64ae=_0x53c9c3,_0x43bdf7=this[_0x3e64ae(0x1f1)][_0x3e64ae(0x1df)][_0x3e64ae(0x1bd)](_0x24369f);_0x43bdf7[_0x3e64ae(0x1aa)]===this[_0x3e64ae(0x1f1)]&&(_0x43bdf7[_0x3e64ae(0x1b1)]()||_0x43bdf7[_0x3e64ae(0x1a3)](_0x3e64ae(0x1c0)));}[_0x53c9c3(0x1ec)](_0x3a77e3){const _0x6cf309=_0x53c9c3;_0x3a77e3!==this[_0x6cf309(0x1f3)]&&(this[_0x6cf309(0x1f3)]&&(this[_0x6cf309(0x1f3)][_0x6cf309(0x1cd)]=!0x1),_0x3a77e3&&this[_0x6cf309(0x1f1)]['ui'][_0x6cf309(0x1a8)][_0x6cf309(0x1d3)]&&(this[_0x6cf309(0x1a0)][_0x6cf309(0x1d6)](_0x3a77e3)&&this[_0x6cf309(0x1ab)](_0x3a77e3,!0x0),_0x3a77e3[_0x6cf309(0x1cd)]=!0x0),_0x3a77e3||this[_0x6cf309(0x1bc)]([]),this[_0x6cf309(0x1f3)]=_0x3a77e3);}[_0x53c9c3(0x1d8)](_0x237397){const _0x1d770d=_0x53c9c3;this[_0x1d770d(0x1a0)]=_0x237397;const _0x4cdf8a=this[_0x1d770d(0x1f1)][_0x1d770d(0x1df)][_0x1d770d(0x1bd)](_0x24369f),_0x416a88=this[_0x1d770d(0x1e5)];if(this[_0x1d770d(0x1b4)])throw new _0x534f17(_0x1d770d(0x19f),this);if(_0x4cdf8a[_0x1d770d(0x1aa)]!==this[_0x1d770d(0x1f1)])throw new _0x534f17(_0x1d770d(0x1c1),this);const _0x362bea=this[_0x1d770d(0x1f1)][_0x1d770d(0x1df)][_0x1d770d(0x1bd)](_0x5bd6d3);this[_0x1d770d(0x1f4)](_0x362bea,_0x1d770d(0x1fa),()=>{const _0x4aa486=_0x1d770d,_0x3d8859=_0x362bea[_0x4aa486(0x1b8)]({'annotations':this[_0x4aa486(0x1a0)],'activeAnnotation':this[_0x4aa486(0x1f3)]});var _0x3950fd,_0x2f4d2e;!this[_0x4aa486(0x1fc)]&&(_0x3950fd=_0x3d8859,_0x2f4d2e=this[_0x4aa486(0x1e0)],_0x3950fd[_0x4aa486(0x1ae)]===_0x2f4d2e[_0x4aa486(0x1ae)]&&_0x3950fd[_0x4aa486(0x1a7)](_0x228075=>_0x2f4d2e[_0x4aa486(0x1f2)](_0x228075)))||(this[_0x4aa486(0x1fc)]=!0x1,this[_0x4aa486(0x1bc)](_0x3d8859),this[_0x4aa486(0x1ec)](_0x3d8859[0x0]||null));}),this[_0x1d770d(0x1f4)](_0x362bea,_0x1d770d(0x1ef),(_0x3aa7ce,{isAnnotationTracked:_0x3affc3})=>{const _0x177c7a=_0x1d770d;this[_0x177c7a(0x1f3)]&&_0x3affc3(this[_0x177c7a(0x1f3)])&&(this[_0x177c7a(0x1bc)]([]),this[_0x177c7a(0x1ec)](null));}),this[_0x1d770d(0x1f4)](this[_0x1d770d(0x1f1)]['ui'][_0x1d770d(0x1a8)],_0x1d770d(0x1dd),(_0x7a26a0,_0x59f0fc,_0x534371)=>{const _0x36fcc4=_0x1d770d;_0x534371||this[_0x36fcc4(0x1ec)](null);}),this[_0x1d770d(0x1f4)](_0x237397,_0x1d770d(0x1a9),(_0xe4fdc5,_0x59f849)=>{const _0x12d987=_0x1d770d;this[_0x12d987(0x1d4)](_0x59f849),_0x59f849===this[_0x12d987(0x1f3)]&&this[_0x12d987(0x1ec)](null);}),this[_0x1d770d(0x1f4)](_0x416a88,_0x1d770d(0x1f7),(_0x27d78a,_0x137642,_0x125f6f,_0x4e13d1)=>{const _0x4f2c25=_0x1d770d;_0x4e13d1&&this[_0x4f2c25(0x1c4)](_0x4e13d1);const _0x2b6dfd=_0x237397[_0x4f2c25(0x1ea)](_0x125f6f);_0x125f6f&&_0x2b6dfd&&(this[_0x4f2c25(0x1f4)](_0x125f6f,_0x4f2c25(0x1a6),()=>{const _0x50dc3b=_0x4f2c25;_0x416a88[_0x50dc3b(0x1eb)]();}),this[_0x4f2c25(0x1f4)](_0x125f6f,_0x4f2c25(0x1b6),()=>{const _0x3e4614=_0x4f2c25;this[_0x3e4614(0x1d0)](_0x2b6dfd),this[_0x3e4614(0x1f1)][_0x3e4614(0x1fb)][_0x3e4614(0x19d)][_0x3e4614(0x1bb)]();}),this[_0x4f2c25(0x1f3)]!==_0x2b6dfd&&this[_0x4f2c25(0x1ec)](_0x2b6dfd));}),this[_0x1d770d(0x1f4)](this[_0x1d770d(0x1f1)]['ui'],_0x1d770d(0x1c9),()=>{const _0x285e2c=_0x1d770d;_0x416a88[_0x285e2c(0x1d2)]&&(_0x237397[_0x285e2c(0x1ea)](_0x416a88[_0x285e2c(0x1d2)])&&_0x416a88[_0x285e2c(0x1eb)]());}),this[_0x1d770d(0x1f4)](this[_0x1d770d(0x1f1)][_0x1d770d(0x1fb)][_0x1d770d(0x19d)][_0x1d770d(0x1db)],_0x1d770d(0x1af),()=>{const _0x416dde=_0x1d770d;this[_0x416dde(0x1fc)]=!0x0,this[_0x416dde(0x1b2)][_0x416dde(0x1ac)]();}),this[_0x1d770d(0x1f1)][_0x1d770d(0x1fb)][_0x1d770d(0x19d)][_0x1d770d(0x1db)][_0x1d770d(0x1e1)][_0x1d770d(0x1dc)]&&this[_0x1d770d(0x1f1)][_0x1d770d(0x1fb)][_0x1d770d(0x19d)][_0x1d770d(0x1bb)](),this[_0x1d770d(0x1b4)]=!0x0;}[_0x53c9c3(0x19c)](){const _0x427d1a=_0x53c9c3;if(!this[_0x427d1a(0x1b4)])throw new _0x534f17(_0x427d1a(0x1f8),this);this[_0x427d1a(0x1ec)](null);for(const _0x1c7b59 of this[_0x427d1a(0x1a5)])this[_0x427d1a(0x1d4)](_0x1c7b59);this[_0x427d1a(0x1c4)](),this[_0x427d1a(0x1b4)]=!0x1,this[_0x427d1a(0x1a0)]=null;}[_0x53c9c3(0x1a1)](){const _0x30439a=_0x53c9c3;this[_0x30439a(0x1b4)]&&this[_0x30439a(0x19c)]();}[_0x53c9c3(0x1bc)](_0x50c180){const _0x3c964c=_0x53c9c3;for(const _0x4d877d of this[_0x3c964c(0x1e0)])_0x50c180[_0x3c964c(0x1f2)](_0x4d877d)||this[_0x3c964c(0x1b2)][_0x3c964c(0x1b9)](_0x4d877d);for(const _0x241e9b of this[_0x3c964c(0x1a0)])_0x50c180[_0x3c964c(0x1f2)](_0x241e9b)||this[_0x3c964c(0x1d4)](_0x241e9b);if(this[_0x3c964c(0x1f1)]['ui'][_0x3c964c(0x1a8)][_0x3c964c(0x1d3)]){for(const _0x7a1329 of _0x50c180)this[_0x3c964c(0x1ab)](_0x7a1329);}this[_0x3c964c(0x1e0)]=_0x50c180;}[_0x53c9c3(0x1ab)](_0x1d419a,_0x53032f=!0x1){const _0x378f04=_0x53c9c3;this[_0x378f04(0x1b2)][_0x378f04(0x1d6)](_0x1d419a)||(this[_0x378f04(0x1a5)][_0x378f04(0x1d6)](_0x1d419a)||this[_0x378f04(0x1e5)][_0x378f04(0x1c3)](_0x1d419a[_0x378f04(0x19d)])||(this[_0x378f04(0x1a5)][_0x378f04(0x1e4)](_0x1d419a),this[_0x378f04(0x1e5)][_0x378f04(0x1e4)]({'stackId':_0x1d419a[_0x378f04(0x19d)]['id'],'view':_0x1d419a[_0x378f04(0x19d)],'position':{'target':()=>this[_0x378f04(0x1d1)](_0x1d419a)}})),_0x53032f&&this[_0x378f04(0x1e5)][_0x378f04(0x1be)](_0x1d419a[_0x378f04(0x19d)]['id']));}[_0x53c9c3(0x1d1)](_0x536212){const _0x5ede04=_0x53c9c3,_0x1d814d=_0x536212[_0x5ede04(0x1c5)],_0x483c9a=this[_0x5ede04(0x1f1)][_0x5ede04(0x1fb)][_0x5ede04(0x19d)],_0x1a7387=_0x483c9a[_0x5ede04(0x1db)][_0x5ede04(0x1e1)][_0x5ede04(0x1d7)](),_0x412543=_0x483c9a[_0x5ede04(0x1e7)][_0x5ede04(0x1cb)](_0x1a7387);if(_0x412543[_0x5ede04(0x19e)](!0x0),_0x1d814d){if(_0x1d814d instanceof _0x125f48)return _0x1d814d;let _0x57a5dc=[];for(const _0x24e566 of _0x1d814d)_0x57a5dc[_0x5ede04(0x1ba)](...F(_0x24e566[_0x5ede04(0x1c8)]()));_0x57a5dc=function(_0x101571){const _0x91b8c9=_0x5ede04,_0x325a98=[];let _0x19d721=_0x101571[0x0];for(let _0x468cc4=0x1;_0x468cc4<_0x101571[_0x91b8c9(0x1ae)];_0x468cc4++)P(_0x19d721,_0x101571[_0x468cc4])?_0x19d721[_0x91b8c9(0x1c7)]+=_0x101571[_0x468cc4][_0x91b8c9(0x1c7)]:(_0x325a98[_0x91b8c9(0x1ba)](_0x19d721),_0x19d721=_0x101571[_0x468cc4]);return _0x325a98[_0x91b8c9(0x1ba)](_0x19d721),_0x325a98;}(_0x57a5dc);const _0x19be7b=_0x412543[_0x5ede04(0x1bf)]();return _0x57a5dc[_0x5ede04(0x1cf)](_0x12356d=>_0x12356d[_0x5ede04(0x1f9)]<=_0x19be7b[_0x5ede04(0x1f9)]&&_0x12356d[_0x5ede04(0x1b5)]>=_0x19be7b[_0x5ede04(0x1b5)]&&_0x12356d[_0x5ede04(0x1d5)]<=_0x19be7b[_0x5ede04(0x1d5)]&&_0x12356d[_0x5ede04(0x1f5)]>=_0x19be7b[_0x5ede04(0x1f5)])||_0x57a5dc[0x0];}return _0x536212[_0x5ede04(0x1c6)]||_0x412543;}[_0x53c9c3(0x1d4)](_0x451788){const _0x5164f2=_0x53c9c3;this[_0x5164f2(0x1a5)][_0x5164f2(0x1d6)](_0x451788)&&this[_0x5164f2(0x1e5)][_0x5164f2(0x1c3)](_0x451788[_0x5164f2(0x19d)])&&(this[_0x5164f2(0x1a5)][_0x5164f2(0x1b9)](_0x451788),this[_0x5164f2(0x1e5)][_0x5164f2(0x1a9)](_0x451788[_0x5164f2(0x19d)]));}[_0x53c9c3(0x1d0)](_0x8edf2e){const _0x3bb4d7=_0x53c9c3;this[_0x3bb4d7(0x1b2)][_0x3bb4d7(0x1e4)](_0x8edf2e),this[_0x3bb4d7(0x1d4)](_0x8edf2e);}}function F(_0x5b2543){const _0x1e9c9b=_0x53c9c3;return Array[_0x1e9c9b(0x1da)](_0x5b2543)[_0x1e9c9b(0x1b0)](DOMRect[_0x1e9c9b(0x1b7)]);}function P(_0x4c3248,_0x4dcae5){const _0x2d552d=_0x53c9c3;return _0x4c3248[_0x2d552d(0x1f9)]===_0x4dcae5[_0x2d552d(0x1f9)]&&_0x4c3248[_0x2d552d(0x1b5)]===_0x4dcae5[_0x2d552d(0x1b5)]&&_0x4c3248[_0x2d552d(0x1f5)]===_0x4dcae5[_0x2d552d(0x1d5)];}
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
-
import AnnotationsUIs,
|
|
11
|
-
import Sidebar from './sidebar.js';
|
|
10
|
+
import { AnnotationsUIs, type AnnotationsUI } from './annotationsuis.js';
|
|
11
|
+
import { Sidebar } from './sidebar.js';
|
|
12
12
|
import { BalloonPanelView, BodyCollection } from 'ckeditor5/src/ui.js';
|
|
13
13
|
import '../../theme/sidebar-narrow.css';
|
|
14
|
-
import type Annotation from './annotation.js';
|
|
15
|
-
import type {
|
|
14
|
+
import { type Annotation } from './annotation.js';
|
|
15
|
+
import type { AnnotationCollection } from './annotationcollection.js';
|
|
16
16
|
/**
|
|
17
17
|
* The narrow sidebar UI for displaying annotations.
|
|
18
18
|
*
|
|
@@ -34,7 +34,7 @@ import type { default as AnnotationCollection } from './annotationcollection.js'
|
|
|
34
34
|
*
|
|
35
35
|
* See {@link module:comments/annotations/annotationsuis~AnnotationsUIs}.
|
|
36
36
|
*/
|
|
37
|
-
export
|
|
37
|
+
export declare class NarrowSidebar extends ContextPlugin implements AnnotationsUI<ContextPlugin> {
|
|
38
38
|
/**
|
|
39
39
|
* An active annotation tracked by this UI.
|
|
40
40
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x2417(){const _0x4dbb0c=['esc','northArrowSouthEast','context','hasDomSelection','focus','_domEmitter','unpin','_annotations','uiUpdate','first','blur','5760864zORluU','setActiveAnnotation','_destroyEditorAnnotationsIntegration','bind','_detachListeners','removeEventListener','narrowSidebar','off','view','get','activeAnnotation','6zsKHBS','stopListening','EditorAnnotations','keyCode','getSidebarItemView','southArrowNorthWest','_hideBalloon','addEventListener','balloonPanelView','Esc','annotationType','isAttached','narrowsidebar-attach-already-attached','detach','detachFromDom','element','delete','contains','3519656UHQypW','bodyCollection','attachToDom','target','isOfficialPlugin','_attachToContainer','pin','resize','locale','NarrowSidebar','values','attach','getOrderedSelectedAnnotations','high','pluginName','clear','1695hvSMUR','_setSelectedAnnotations','_updateBalloonPosition','keydown','focusableElements','preventClosingBalloon','_integrateWithEditorAnnotations','create','rearrange','_manuallyClosedAnnotationViews','type','refreshPositioning','_selectedAnnotations','preventDefault','change:container','getByView','has','5832968ZPliMJ','destroy','add','1362djcpSx','_attachListeners','_editorAnnotations','_annotationToNarrowView','set:container','southArrowNorthEast','listenTo','from','_refreshPositioningDebounced','remove','southArrowNorth','1134813uryRWd','ck-sidebar--narrow','defaultPositions','init','_detachFromContainer','content','includes','isVisible','northArrowSouth','low','isPremiumPlugin','_refreshPositioning','cancel','number','annotations','mousedown','stop','4572KbFUbQ','plugins','northArrowSouthWest','refresh','narrowsidebar-detach-not-attached','5510nOyldV','editors','addAnnotation','set','requires','find','register','execute','isDirty','length','stopPropagation','_showBalloon','change:height','ready','4606195AbaPaJ'];_0x2417=function(){return _0x4dbb0c;};return _0x2417();}function _0x16e9(_0xbba525,_0x55a896){const _0x24178d=_0x2417();return _0x16e9=function(_0x16e966,_0xb5fa98){_0x16e966=_0x16e966-0x195;let _0x256689=_0x24178d[_0x16e966];return _0x256689;},_0x16e9(_0xbba525,_0x55a896);}const _0x1f11cd=_0x16e9;(function(_0x55cf81,_0x310b6c){const _0x5b0d5a=_0x16e9,_0x570f73=_0x55cf81();while(!![]){try{const _0x1fc4b2=parseInt(_0x5b0d5a(0x1ff))/0x1+-parseInt(_0x5b0d5a(0x1f4))/0x2*(parseInt(_0x5b0d5a(0x1e0))/0x3)+parseInt(_0x5b0d5a(0x1b3))/0x4+-parseInt(_0x5b0d5a(0x1a7))/0x5+parseInt(_0x5b0d5a(0x1be))/0x6*(parseInt(_0x5b0d5a(0x1d0))/0x7)+-parseInt(_0x5b0d5a(0x1f1))/0x8+-parseInt(_0x5b0d5a(0x210))/0x9*(parseInt(_0x5b0d5a(0x199))/0xa);if(_0x1fc4b2===_0x310b6c)break;else _0x570f73['push'](_0x570f73['shift']());}catch(_0x5abb12){_0x570f73['push'](_0x570f73['shift']());}}}(_0x2417,0xba3b4));import{ContextPlugin as _0x2391a6,Context as _0x246129}from'ckeditor5/src/core.js';import _0x4dd6bf from'./annotationsuis.js';import _0x598419 from'./sidebar.js';import _0x14dc88 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x4a6434,BodyCollection as _0x4a443a}from'ckeditor5/src/ui.js';import{CKEditorError as _0x561a17,DomEmitterMixin as _0x43fcd7,keyCodes as _0x4d275a,Collection as _0x45afad}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0xc76e50}from'es-toolkit/compat';export default class n extends _0x2391a6{[_0x1f11cd(0x1c9)];[_0x1f11cd(0x20d)];[_0x1f11cd(0x1e9)];[_0x1f11cd(0x1ad)];[_0x1f11cd(0x1f7)];[_0x1f11cd(0x1ec)];[_0x1f11cd(0x1f6)];[_0x1f11cd(0x1fc)];static get[_0x1f11cd(0x19d)](){return[_0x598419,_0x4dd6bf];}static get[_0x1f11cd(0x1de)](){const _0x529357=_0x1f11cd;return _0x529357(0x1d9);}static get[_0x1f11cd(0x1d4)](){return!0x0;}static get[_0x1f11cd(0x209)](){return!0x0;}constructor(_0x1c8895){const _0x13255f=_0x1f11cd;super(_0x1c8895),this[_0x13255f(0x1c9)]=!0x1,this[_0x13255f(0x1e9)]=new Set(),this[_0x13255f(0x1ad)]=Object[_0x13255f(0x1e7)](_0x43fcd7),this[_0x13255f(0x1f7)]=new Map(),this[_0x13255f(0x19c)](_0x13255f(0x1bd),null),this[_0x13255f(0x20d)]=null,this[_0x13255f(0x1ec)]=[],this[_0x13255f(0x1f6)]=new _0x45afad(),this[_0x13255f(0x1fc)]=_0xc76e50(()=>{const _0x2ca940=_0x13255f;this[_0x2ca940(0x20a)]();},0xfa,{'leading':!0x1});}[_0x1f11cd(0x202)](){const _0x27b670=_0x1f11cd;this[_0x27b670(0x1aa)][_0x27b670(0x195)][_0x27b670(0x1bc)](_0x4dd6bf)[_0x27b670(0x19f)](_0x27b670(0x1b9),this),this[_0x27b670(0x1d1)]=new _0x4a443a(this[_0x27b670(0x1aa)][_0x27b670(0x1d8)]),this[_0x27b670(0x1c6)]=new _0x4a6434(this[_0x27b670(0x1aa)][_0x27b670(0x1d8)]),this[_0x27b670(0x1d1)][_0x27b670(0x1d2)](),this[_0x27b670(0x1d1)][_0x27b670(0x1f3)](this[_0x27b670(0x1c6)]);}[_0x1f11cd(0x1db)](_0x4ed656){const _0x1dff83=_0x1f11cd;this[_0x1dff83(0x20d)]=_0x4ed656;const _0x48f8af=this[_0x1dff83(0x1aa)][_0x1dff83(0x195)][_0x1dff83(0x1bc)](_0x598419),_0x25f7cf=this[_0x1dff83(0x1c6)];if(_0x48f8af[_0x1dff83(0x1af)]=_0x4ed656,this[_0x1dff83(0x1c9)])throw new _0x561a17(_0x1dff83(0x1ca),this);this[_0x1dff83(0x1c9)]=!0x0,this[_0x1dff83(0x1fa)](_0x48f8af,_0x1dff83(0x1f8),()=>{const _0x3d599a=_0x1dff83;this[_0x3d599a(0x1cb)](),this[_0x3d599a(0x1fa)](_0x48f8af,_0x3d599a(0x1ee),_0x3aefae=>{const _0x2a353d=_0x3d599a;_0x3aefae[_0x2a353d(0x1ba)](),this[_0x2a353d(0x1db)](_0x4ed656);});}),_0x48f8af[_0x1dff83(0x1d5)]({'viewClass':_0x1dff83(0x200),'spaceBetweenItems':0x5});const _0x3093d6=_0x55d7ad=>{const _0x58aba2=_0x1dff83,_0x26985a=new _0x14dc88(this[_0x58aba2(0x1aa)][_0x58aba2(0x1d8)]);_0x48f8af[_0x58aba2(0x19b)](_0x55d7ad,_0x26985a),this[_0x58aba2(0x1f7)][_0x58aba2(0x19c)](_0x55d7ad,_0x26985a),_0x26985a[_0x58aba2(0x1b6)](_0x58aba2(0x1a1),_0x58aba2(0x1c8),_0x58aba2(0x20c))['to'](_0x55d7ad[_0x58aba2(0x1bb)],_0x58aba2(0x1a1),_0x58aba2(0x1ea),_0x58aba2(0x1a2)),_0x26985a['on'](_0x58aba2(0x1a0),()=>{const _0x4a0959=_0x58aba2;this[_0x4a0959(0x1e9)][_0x4a0959(0x1df)](),_0x25f7cf[_0x4a0959(0x204)][_0x4a0959(0x1b1)]!==_0x55d7ad[_0x4a0959(0x1bb)]?(this[_0x4a0959(0x1a4)](_0x55d7ad),_0x55d7ad[_0x4a0959(0x1bb)][_0x4a0959(0x1cd)][_0x4a0959(0x1ac)](),this[_0x4a0959(0x1b4)](_0x55d7ad)):this[_0x4a0959(0x1b4)](null);});};for(const _0x5b88a1 of _0x4ed656)_0x3093d6(_0x5b88a1);this[_0x1dff83(0x1fa)](_0x4ed656,_0x1dff83(0x1f3),(_0x5c30a9,_0x3e002a)=>{_0x3093d6(_0x3e002a);}),this[_0x1dff83(0x1fa)](_0x4ed656,_0x1dff83(0x1fd),(_0xcd1c15,_0x30b043,_0x439c75)=>{const _0x213550=_0x1dff83;this[_0x213550(0x1f7)][_0x213550(0x1bc)](_0x30b043)[_0x213550(0x1f2)](),this[_0x213550(0x1f7)][_0x213550(0x1ce)](_0x30b043),_0x48f8af[_0x213550(0x1e8)]({'removedAnnotation':_0x30b043,'previousAnnotation':_0x4ed656[_0x213550(0x1bc)](_0x439c75-0x1),'nextAnnotation':_0x4ed656[_0x213550(0x1bc)](_0x439c75+0x1)}),_0x30b043===this[_0x213550(0x1bd)]&&this[_0x213550(0x1b4)](null);},{'priority':_0x1dff83(0x208)}),this[_0x1dff83(0x1fa)](_0x4ed656,_0x1dff83(0x1ac),(_0x39cade,_0x2f0476)=>{const _0x3704ff=_0x1dff83;this[_0x3704ff(0x1b4)](_0x2f0476);}),this[_0x1dff83(0x1fa)](_0x4ed656,_0x1dff83(0x1b2),()=>{const _0xc555a4=_0x1dff83;this[_0xc555a4(0x1b4)](null);}),this[_0x1dff83(0x1ad)][_0x1dff83(0x1fa)](document,_0x1dff83(0x1e3),(_0x2951eb,_0x5e00fe)=>{const _0x11f8d5=_0x1dff83;_0x5e00fe[_0x11f8d5(0x1c1)]===_0x4d275a[_0x11f8d5(0x1a8)]&&_0x25f7cf[_0x11f8d5(0x206)]&&(this[_0x11f8d5(0x1e9)][_0x11f8d5(0x1f3)](_0x25f7cf[_0x11f8d5(0x204)][_0x11f8d5(0x1b1)]),this[_0x11f8d5(0x1c4)](),_0x5e00fe[_0x11f8d5(0x1a3)](),_0x5e00fe[_0x11f8d5(0x1ed)]());}),this[_0x1dff83(0x1ad)][_0x1dff83(0x1fa)](document,_0x1dff83(0x20e),(_0x5f6e3b,_0x33d855)=>{const _0x59f1b8=_0x1dff83,_0x23c81a=_0x33d855[_0x59f1b8(0x1d3)];_0x25f7cf[_0x59f1b8(0x206)]&&_0x25f7cf[_0x59f1b8(0x1cd)][_0x59f1b8(0x1cf)](_0x23c81a)||_0x48f8af[_0x59f1b8(0x1bb)][_0x59f1b8(0x1cd)][_0x59f1b8(0x1cf)](_0x23c81a)||_0x5f6e3b[_0x59f1b8(0x1e5)]||this[_0x59f1b8(0x1bd)]&&this[_0x59f1b8(0x1bd)][_0x59f1b8(0x1e4)][_0x59f1b8(0x19e)](_0x5880d7=>_0x5880d7[_0x59f1b8(0x1cf)](_0x23c81a))||(this[_0x59f1b8(0x1e9)][_0x59f1b8(0x1df)](),this[_0x59f1b8(0x1c4)](),this[_0x59f1b8(0x1b4)](null));});const _0x1d2c7c=this[_0x1dff83(0x1aa)]instanceof _0x246129?this[_0x1dff83(0x1aa)][_0x1dff83(0x19a)]:new _0x45afad([this[_0x1dff83(0x1aa)]]);for(const _0x323b0a of _0x1d2c7c)this[_0x1dff83(0x1e6)](_0x323b0a);this[_0x1dff83(0x1fa)](_0x1d2c7c,_0x1dff83(0x1f3),(_0x4c1c29,_0x331572)=>{const _0x2dd01a=_0x1dff83;this[_0x2dd01a(0x1fa)](_0x331572,_0x2dd01a(0x1a6),()=>{const _0x5db2c6=_0x2dd01a;this[_0x5db2c6(0x1e6)](_0x331572);});}),this[_0x1dff83(0x1fa)](_0x1d2c7c,_0x1dff83(0x1fd),(_0x47bc46,_0x3cdcc9)=>{const _0x23a177=_0x1dff83;_0x3cdcc9[_0x23a177(0x195)][_0x23a177(0x1f0)](_0x23a177(0x1c0))&&this[_0x23a177(0x1b5)](_0x3cdcc9[_0x23a177(0x195)][_0x23a177(0x1bc)](_0x23a177(0x1c0)));}),window[_0x1dff83(0x1c5)](_0x1dff83(0x1d7),this[_0x1dff83(0x1fc)]),this[_0x1dff83(0x20a)]();}[_0x1f11cd(0x1b4)](_0x303ab2){const _0x4fabfd=_0x1f11cd;if(_0x303ab2===this[_0x4fabfd(0x1bd)])return;const _0x6b2f51=this[_0x4fabfd(0x1aa)][_0x4fabfd(0x195)][_0x4fabfd(0x1bc)](_0x598419);if(_0x6b2f51[_0x4fabfd(0x197)]({'blurredAnnotation':this[_0x4fabfd(0x1bd)],'activatedAnnotation':_0x303ab2,'disableAnimationOnActivatedAnnotation':!0x0}),_0x303ab2)_0x6b2f51[_0x4fabfd(0x1c2)](_0x303ab2)?this[_0x4fabfd(0x1a4)](_0x303ab2):this[_0x4fabfd(0x1c4)]();else this[_0x4fabfd(0x1c4)]();this[_0x4fabfd(0x1bd)]=_0x303ab2;}[_0x1f11cd(0x1cb)](){const _0x13f106=_0x1f11cd;if(!this[_0x13f106(0x1c9)])throw new _0x561a17(_0x13f106(0x198),this);this[_0x13f106(0x1b4)](null);const _0x502513=this[_0x13f106(0x1aa)][_0x13f106(0x195)][_0x13f106(0x1bc)](_0x598419);this[_0x13f106(0x1c4)](),Array[_0x13f106(0x1fb)](this[_0x13f106(0x1f7)][_0x13f106(0x1da)](),_0x2acca0=>_0x2acca0[_0x13f106(0x1f2)]()),this[_0x13f106(0x1f7)][_0x13f106(0x1df)](),_0x502513[_0x13f106(0x203)](this[_0x13f106(0x20d)]),this[_0x13f106(0x1bf)](),this[_0x13f106(0x1ad)][_0x13f106(0x1bf)](),this[_0x13f106(0x1aa)]instanceof _0x246129&&this[_0x13f106(0x1bf)](this[_0x13f106(0x1aa)][_0x13f106(0x19a)]);for(const _0x3d6859 of Array[_0x13f106(0x1fb)](this[_0x13f106(0x1f6)]))this[_0x13f106(0x1b5)](_0x3d6859);window[_0x13f106(0x1b8)](_0x13f106(0x1d7),this[_0x13f106(0x1fc)]),this[_0x13f106(0x1fc)][_0x13f106(0x20b)](),this[_0x13f106(0x1ec)]=[],this[_0x13f106(0x1c9)]=!0x1,this[_0x13f106(0x20d)]=null;}[_0x1f11cd(0x1f2)](){const _0x4e577b=_0x1f11cd;this[_0x4e577b(0x1c9)]&&this[_0x4e577b(0x1cb)](),this[_0x4e577b(0x1d1)][_0x4e577b(0x1cc)]();}[_0x1f11cd(0x1e6)](_0x32ba27){const _0x4a670b=_0x1f11cd;if(!_0x32ba27[_0x4a670b(0x195)][_0x4a670b(0x1f0)](_0x4a670b(0x1c0)))return;const _0xd21516=_0x32ba27[_0x4a670b(0x195)][_0x4a670b(0x1bc)](_0x4a670b(0x1c0)),_0x4495ce=this[_0x4a670b(0x1aa)][_0x4a670b(0x195)][_0x4a670b(0x1bc)](_0x598419),_0x470d24=this[_0x4a670b(0x20d)],_0x143b3a=this[_0x4a670b(0x1c6)],_0xa47982=()=>{const _0x35a6e5=_0x4a670b,_0x2b984a=_0xd21516[_0x35a6e5(0x1dc)]({'annotations':this[_0x35a6e5(0x20d)],'activeAnnotation':this[_0x35a6e5(0x1bd)]});this[_0x35a6e5(0x1e1)](_0x2b984a),this[_0x35a6e5(0x1b4)](_0x2b984a[0x0]||null);};this[_0x4a670b(0x1fa)](_0xd21516,_0x4a670b(0x197),_0xa47982),this[_0x4a670b(0x1fa)](_0xd21516,_0x4a670b(0x1b2),(_0x46d8eb,{isAnnotationTracked:_0x24f8b7})=>{const _0x5f1480=_0x4a670b;this[_0x5f1480(0x1bd)]&&_0x24f8b7(this[_0x5f1480(0x1bd)])&&(this[_0x5f1480(0x1e1)]([]),this[_0x5f1480(0x1b4)](null));}),this[_0x4a670b(0x1fa)](_0xd21516,_0x4a670b(0x1b0),()=>{const _0x20ca21=_0x4a670b;this[_0x20ca21(0x1fc)]();}),this[_0x4a670b(0x1fa)](_0x470d24,_0x4a670b(0x1b2),_0x4a3ade=>{const _0x257046=_0x4a670b;_0xd21516[_0x257046(0x1ab)]()&&_0x4a3ade[_0x257046(0x20f)]();},{'priority':_0x4a670b(0x1dd)}),this[_0x4a670b(0x1fa)](this[_0x4a670b(0x1ad)],_0x4a670b(0x20e),(_0x2cfe97,_0x11467b)=>{const _0x4b3c3b=_0x4a670b,_0xed5376=_0x11467b[_0x4b3c3b(0x1d3)];_0x143b3a[_0x4b3c3b(0x206)]&&_0x143b3a[_0x4b3c3b(0x1cd)][_0x4b3c3b(0x1cf)](_0xed5376)||_0x4495ce[_0x4b3c3b(0x1bb)][_0x4b3c3b(0x1cd)][_0x4b3c3b(0x1cf)](_0xed5376)||this[_0x4b3c3b(0x1bd)]&&_0xd21516[_0x4b3c3b(0x1ab)]()&&(_0xa47982(),_0x2cfe97[_0x4b3c3b(0x1e5)]=!0x0);},{'priority':_0x4a670b(0x1dd)}),this[_0x4a670b(0x1f6)][_0x4a670b(0x1f3)](_0xd21516);}[_0x1f11cd(0x1b5)](_0x4fb583){const _0x30d148=_0x1f11cd;_0x4fb583&&(this[_0x30d148(0x1bf)](_0x4fb583),this[_0x30d148(0x1f6)][_0x30d148(0x1fd)](_0x4fb583));}[_0x1f11cd(0x1e1)](_0x2891b4){const _0x4373ce=_0x1f11cd;for(const _0x5aebd1 of this[_0x4373ce(0x1ec)])_0x2891b4[_0x4373ce(0x205)](_0x5aebd1)||this[_0x4373ce(0x1e9)][_0x4373ce(0x1ce)](_0x5aebd1[_0x4373ce(0x1bb)]);this[_0x4373ce(0x1ec)]=_0x2891b4;}[_0x1f11cd(0x20a)](){const _0x11b4f2=_0x1f11cd,_0x25ae88=this[_0x11b4f2(0x1c6)];this[_0x11b4f2(0x20d)][_0x11b4f2(0x1eb)](),_0x25ae88[_0x11b4f2(0x206)]&&this[_0x11b4f2(0x1e2)]();}[_0x1f11cd(0x1a4)](_0x207f93){const _0x960bac=_0x1f11cd;if(this[_0x960bac(0x1e9)][_0x960bac(0x1f0)](_0x207f93[_0x960bac(0x1bb)]))return;const _0x2c0996=this[_0x960bac(0x1c6)][_0x960bac(0x204)][_0x960bac(0x1b1)];_0x2c0996!==_0x207f93[_0x960bac(0x1bb)]?(_0x2c0996&&this[_0x960bac(0x1b7)](_0x2c0996),this[_0x960bac(0x1f5)](_0x207f93[_0x960bac(0x1bb)]),this[_0x960bac(0x1c6)][_0x960bac(0x204)][_0x960bac(0x1df)](),this[_0x960bac(0x1c6)][_0x960bac(0x204)][_0x960bac(0x1f3)](_0x207f93[_0x960bac(0x1bb)]),this[_0x960bac(0x1e2)]()):this[_0x960bac(0x1e2)]();}[_0x1f11cd(0x1e2)](){const _0x526dbf=_0x1f11cd,_0x2b84f2=this[_0x526dbf(0x1c6)][_0x526dbf(0x204)][_0x526dbf(0x1b1)],_0x523016=_0x2b84f2&&this[_0x526dbf(0x20d)][_0x526dbf(0x1ef)](_0x2b84f2);if(!_0x523016||!this[_0x526dbf(0x1f7)][_0x526dbf(0x1f0)](_0x523016))return;const _0x1c4a54=this[_0x526dbf(0x1f7)][_0x526dbf(0x1bc)](_0x523016)[_0x526dbf(0x1cd)],_0x28203e=(function(){const _0x3bffce=_0x526dbf,_0x143225=_0x4a6434[_0x3bffce(0x201)];return[_0x143225[_0x3bffce(0x1f9)],_0x143225[_0x3bffce(0x1a9)],_0x143225[_0x3bffce(0x1fe)],_0x143225[_0x3bffce(0x207)],_0x143225[_0x3bffce(0x1c3)],_0x143225[_0x3bffce(0x196)]];}());this[_0x526dbf(0x1c6)][_0x526dbf(0x1d6)]({'target':_0x1c4a54,'positions':_0x28203e});}[_0x1f11cd(0x1c4)](){const _0x80438a=_0x1f11cd,_0x34ec20=this[_0x80438a(0x1c6)],_0x46601d=_0x34ec20[_0x80438a(0x204)][_0x80438a(0x1b1)];_0x46601d&&(this[_0x80438a(0x1b7)](_0x46601d),_0x34ec20[_0x80438a(0x1ae)](),_0x34ec20[_0x80438a(0x204)][_0x80438a(0x1df)]());}[_0x1f11cd(0x1f5)](_0x283897){const _0x4327bc=_0x1f11cd;this[_0x4327bc(0x1fa)](_0x283897,_0x4327bc(0x1a5),()=>this[_0x4327bc(0x1e2)]()),this[_0x4327bc(0x1fa)](_0x283897,_0x4327bc(0x1c7),(_0x50f316,_0x216a30)=>{const _0x2deff2=_0x4327bc;this[_0x2deff2(0x1e9)][_0x2deff2(0x1f3)](_0x283897),this[_0x2deff2(0x1c4)](),_0x216a30();});}[_0x1f11cd(0x1b7)](_0x269ab1){const _0x563775=_0x1f11cd;this[_0x563775(0x1bf)](_0x269ab1);}}
|
|
23
|
+
const _0x575e69=_0x308b;(function(_0x3c5d47,_0x5957a1){const _0x5c7369=_0x308b,_0x5bd3d9=_0x3c5d47();while(!![]){try{const _0x494d74=parseInt(_0x5c7369(0x192))/0x1*(parseInt(_0x5c7369(0x1c5))/0x2)+-parseInt(_0x5c7369(0x1b9))/0x3*(parseInt(_0x5c7369(0x164))/0x4)+-parseInt(_0x5c7369(0x1ac))/0x5+-parseInt(_0x5c7369(0x190))/0x6+parseInt(_0x5c7369(0x1bb))/0x7*(-parseInt(_0x5c7369(0x176))/0x8)+-parseInt(_0x5c7369(0x16a))/0x9+parseInt(_0x5c7369(0x1a8))/0xa;if(_0x494d74===_0x5957a1)break;else _0x5bd3d9['push'](_0x5bd3d9['shift']());}catch(_0x32cf98){_0x5bd3d9['push'](_0x5bd3d9['shift']());}}}(_0x3600,0x44ee4));function _0x308b(_0x2dcfae,_0x27f272){const _0x360098=_0x3600();return _0x308b=function(_0x308bb9,_0x21279a){_0x308bb9=_0x308bb9-0x155;let _0x2cd495=_0x360098[_0x308bb9];return _0x2cd495;},_0x308b(_0x2dcfae,_0x27f272);}import{ContextPlugin as _0x3020e4,Context as _0x323eae}from'ckeditor5/src/core.js';function _0x3600(){const _0xda246f=['locale','annotationType','_attachToContainer','element','attach','_destroyEditorAnnotationsIntegration','1498708udRisz','_detachListeners','removeEventListener','clear','northArrowSouthEast','NarrowSidebar','4623192dkGkqT','first','bodyCollection','_integrateWithEditorAnnotations','narrowsidebar-attach-already-attached','isDirty','cancel','balloonPanelView','rearrange','hasDomSelection','contains','_editorAnnotations','22552QYaNEe','annotations','addEventListener','getOrderedSelectedAnnotations','execute','remove','EditorAnnotations','mousedown','find','isOfficialPlugin','resize','_refreshPositioning','pluginName','has','refresh','blur','off','isVisible','detach','requires','length','_manuallyClosedAnnotationViews','editors','_domEmitter','_annotations','keydown','786600wqloww','narrowSidebar','383143MQQTqH','low','narrowsidebar-detach-not-attached','high','ck-sidebar--narrow','register','focusableElements','keyCode','stopListening','esc','context','bind','preventDefault','uiUpdate','listenTo','content','from','_detachFromContainer','unpin','getSidebarItemView','stop','addAnnotation','11632820QLFTku','Esc','southArrowNorthWest','detachFromDom','1124435rkbMDd','change:height','_updateBalloonPosition','focus','plugins','_hideBalloon','pin','isPremiumPlugin','getByView','_selectedAnnotations','northArrowSouthWest','stopPropagation','isAttached','3JgsNyA','type','49NqXGNW','_setSelectedAnnotations','delete','_annotationToNarrowView','attachToDom','activeAnnotation','values','set','includes','destroy','2tyZANz','defaultPositions','setActiveAnnotation','preventClosingBalloon','change:container','_showBalloon','number','get','southArrowNorth','init','ready','refreshPositioning','_attachListeners','set:container','_refreshPositioningDebounced','northArrowSouth','target','view','southArrowNorthEast','add'];_0x3600=function(){return _0xda246f;};return _0x3600();}import{AnnotationsUIs as _0x1b83f5}from'./annotationsuis.js';import{Sidebar as _0x107757}from'./sidebar.js';import{AnnotationCounterButtonView as _0x2aea77}from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x35090c,BodyCollection as _0x50d2c1}from'ckeditor5/src/ui.js';import{CKEditorError as _0x592166,DomEmitterMixin as _0x147028,keyCodes as _0x45410d,Collection as _0xb89038}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x12ffe6}from'es-toolkit/compat';export class NarrowSidebar extends _0x3020e4{[_0x575e69(0x1b8)];[_0x575e69(0x177)];[_0x575e69(0x18b)];[_0x575e69(0x18d)];[_0x575e69(0x1be)];[_0x575e69(0x1b5)];[_0x575e69(0x175)];[_0x575e69(0x158)];static get[_0x575e69(0x189)](){return[_0x107757,_0x1b83f5];}static get[_0x575e69(0x182)](){const _0x4a8637=_0x575e69;return _0x4a8637(0x169);}static get[_0x575e69(0x17f)](){return!0x0;}static get[_0x575e69(0x1b3)](){return!0x0;}constructor(_0x4abded){const _0x233975=_0x575e69;super(_0x4abded),this[_0x233975(0x1b8)]=!0x1,this[_0x233975(0x18b)]=new Set(),this[_0x233975(0x18d)]=new(_0x147028())(),this[_0x233975(0x1be)]=new Map(),this[_0x233975(0x1c2)](_0x233975(0x1c0),null),this[_0x233975(0x177)]=null,this[_0x233975(0x1b5)]=[],this[_0x233975(0x175)]=new _0xb89038(),this[_0x233975(0x158)]=_0x12ffe6(()=>{const _0x41473d=_0x233975;this[_0x41473d(0x181)]();},0xfa,{'leading':!0x1});}[_0x575e69(0x1ce)](){const _0x115adb=_0x575e69;this[_0x115adb(0x19c)][_0x115adb(0x1b0)][_0x115adb(0x1cc)](_0x1b83f5)[_0x115adb(0x197)](_0x115adb(0x191),this),this[_0x115adb(0x16c)]=new _0x50d2c1(this[_0x115adb(0x19c)][_0x115adb(0x15e)]),this[_0x115adb(0x171)]=new _0x35090c(this[_0x115adb(0x19c)][_0x115adb(0x15e)]),this[_0x115adb(0x16c)][_0x115adb(0x1bf)](),this[_0x115adb(0x16c)][_0x115adb(0x15d)](this[_0x115adb(0x171)]);}[_0x575e69(0x162)](_0x551c42){const _0x425477=_0x575e69;this[_0x425477(0x177)]=_0x551c42;const _0x310c32=this[_0x425477(0x19c)][_0x425477(0x1b0)][_0x425477(0x1cc)](_0x107757),_0x1ff0c7=this[_0x425477(0x171)];if(_0x310c32[_0x425477(0x18e)]=_0x551c42,this[_0x425477(0x1b8)])throw new _0x592166(_0x425477(0x16e),this);this[_0x425477(0x1b8)]=!0x0,this[_0x425477(0x1a0)](_0x310c32,_0x425477(0x157),()=>{const _0x48e437=_0x425477;this[_0x48e437(0x188)](),this[_0x48e437(0x1a0)](_0x310c32,_0x48e437(0x1c9),_0x4bda62=>{const _0x48c17f=_0x48e437;_0x4bda62[_0x48c17f(0x186)](),this[_0x48c17f(0x162)](_0x551c42);});}),_0x310c32[_0x425477(0x160)]({'viewClass':_0x425477(0x196),'spaceBetweenItems':0x5});const _0x34e58d=_0x1828a2=>{const _0x470a70=_0x425477,_0x177f7e=new _0x2aea77(this[_0x470a70(0x19c)][_0x470a70(0x15e)]);_0x310c32[_0x470a70(0x1a7)](_0x1828a2,_0x177f7e),this[_0x470a70(0x1be)][_0x470a70(0x1c2)](_0x1828a2,_0x177f7e),_0x177f7e[_0x470a70(0x19d)](_0x470a70(0x16f),_0x470a70(0x15f),_0x470a70(0x1cb))['to'](_0x1828a2[_0x470a70(0x15b)],_0x470a70(0x16f),_0x470a70(0x1ba),_0x470a70(0x18a)),_0x177f7e['on'](_0x470a70(0x17a),()=>{const _0x219197=_0x470a70;this[_0x219197(0x18b)][_0x219197(0x167)](),_0x1ff0c7[_0x219197(0x1a1)][_0x219197(0x16b)]!==_0x1828a2[_0x219197(0x15b)]?(this[_0x219197(0x1ca)](_0x1828a2),_0x1828a2[_0x219197(0x15b)][_0x219197(0x161)][_0x219197(0x1af)](),this[_0x219197(0x1c7)](_0x1828a2)):this[_0x219197(0x1c7)](null);});};for(const _0x7f110d of _0x551c42)_0x34e58d(_0x7f110d);this[_0x425477(0x1a0)](_0x551c42,_0x425477(0x15d),(_0x212156,_0x316be1)=>{_0x34e58d(_0x316be1);}),this[_0x425477(0x1a0)](_0x551c42,_0x425477(0x17b),(_0x26f3fc,_0x5e4eaa,_0x57ee84)=>{const _0x13187a=_0x425477;this[_0x13187a(0x1be)][_0x13187a(0x1cc)](_0x5e4eaa)[_0x13187a(0x1c4)](),this[_0x13187a(0x1be)][_0x13187a(0x1bd)](_0x5e4eaa),_0x310c32[_0x13187a(0x172)]({'removedAnnotation':_0x5e4eaa,'previousAnnotation':_0x551c42[_0x13187a(0x1cc)](_0x57ee84-0x1),'nextAnnotation':_0x551c42[_0x13187a(0x1cc)](_0x57ee84+0x1)}),_0x5e4eaa===this[_0x13187a(0x1c0)]&&this[_0x13187a(0x1c7)](null);},{'priority':_0x425477(0x193)}),this[_0x425477(0x1a0)](_0x551c42,_0x425477(0x1af),(_0xfc55ac,_0x3dadea)=>{const _0x7f5ba3=_0x425477;this[_0x7f5ba3(0x1c7)](_0x3dadea);}),this[_0x425477(0x1a0)](_0x551c42,_0x425477(0x185),()=>{const _0x10bc24=_0x425477;this[_0x10bc24(0x1c7)](null);}),this[_0x425477(0x18d)][_0x425477(0x1a0)](document,_0x425477(0x18f),(_0x5df5f2,_0x2ffa89)=>{const _0xa6532e=_0x425477;_0x2ffa89[_0xa6532e(0x199)]===_0x45410d[_0xa6532e(0x19b)]&&_0x1ff0c7[_0xa6532e(0x187)]&&(this[_0xa6532e(0x18b)][_0xa6532e(0x15d)](_0x1ff0c7[_0xa6532e(0x1a1)][_0xa6532e(0x16b)]),this[_0xa6532e(0x1b1)](),_0x2ffa89[_0xa6532e(0x1b7)](),_0x2ffa89[_0xa6532e(0x19e)]());}),this[_0x425477(0x18d)][_0x425477(0x1a0)](document,_0x425477(0x17d),(_0x2ae2e1,_0x1611b9)=>{const _0x192787=_0x425477,_0x381a62=_0x1611b9[_0x192787(0x15a)];_0x1ff0c7[_0x192787(0x187)]&&_0x1ff0c7[_0x192787(0x161)][_0x192787(0x174)](_0x381a62)||_0x310c32[_0x192787(0x15b)][_0x192787(0x161)][_0x192787(0x174)](_0x381a62)||_0x2ae2e1[_0x192787(0x1c8)]||this[_0x192787(0x1c0)]&&this[_0x192787(0x1c0)][_0x192787(0x198)][_0x192787(0x17e)](_0x392779=>_0x392779[_0x192787(0x174)](_0x381a62))||(this[_0x192787(0x18b)][_0x192787(0x167)](),this[_0x192787(0x1b1)](),this[_0x192787(0x1c7)](null));});const _0x53e29f=this[_0x425477(0x19c)]instanceof _0x323eae?this[_0x425477(0x19c)][_0x425477(0x18c)]:new _0xb89038([this[_0x425477(0x19c)]]);for(const _0x3297a4 of _0x53e29f)this[_0x425477(0x16d)](_0x3297a4);this[_0x425477(0x1a0)](_0x53e29f,_0x425477(0x15d),(_0x555a90,_0x14607a)=>{const _0x4e7708=_0x425477;this[_0x4e7708(0x1a0)](_0x14607a,_0x4e7708(0x1cf),()=>{const _0x1354f2=_0x4e7708;this[_0x1354f2(0x16d)](_0x14607a);});}),this[_0x425477(0x1a0)](_0x53e29f,_0x425477(0x17b),(_0x52e044,_0x521b27)=>{const _0x25e167=_0x425477;_0x521b27[_0x25e167(0x1b0)][_0x25e167(0x183)](_0x25e167(0x17c))&&this[_0x25e167(0x163)](_0x521b27[_0x25e167(0x1b0)][_0x25e167(0x1cc)](_0x25e167(0x17c)));}),window[_0x425477(0x178)](_0x425477(0x180),this[_0x425477(0x158)]),this[_0x425477(0x181)]();}[_0x575e69(0x1c7)](_0x14b077){const _0x1cbf08=_0x575e69;if(_0x14b077===this[_0x1cbf08(0x1c0)])return;const _0x25500f=this[_0x1cbf08(0x19c)][_0x1cbf08(0x1b0)][_0x1cbf08(0x1cc)](_0x107757);if(_0x25500f[_0x1cbf08(0x184)]({'blurredAnnotation':this[_0x1cbf08(0x1c0)],'activatedAnnotation':_0x14b077,'disableAnimationOnActivatedAnnotation':!0x0}),_0x14b077)_0x25500f[_0x1cbf08(0x1a5)](_0x14b077)?this[_0x1cbf08(0x1ca)](_0x14b077):this[_0x1cbf08(0x1b1)]();else this[_0x1cbf08(0x1b1)]();this[_0x1cbf08(0x1c0)]=_0x14b077;}[_0x575e69(0x188)](){const _0x3266b6=_0x575e69;if(!this[_0x3266b6(0x1b8)])throw new _0x592166(_0x3266b6(0x194),this);this[_0x3266b6(0x1c7)](null);const _0x310026=this[_0x3266b6(0x19c)][_0x3266b6(0x1b0)][_0x3266b6(0x1cc)](_0x107757);this[_0x3266b6(0x1b1)](),Array[_0x3266b6(0x1a2)](this[_0x3266b6(0x1be)][_0x3266b6(0x1c1)](),_0x516d00=>_0x516d00[_0x3266b6(0x1c4)]()),this[_0x3266b6(0x1be)][_0x3266b6(0x167)](),_0x310026[_0x3266b6(0x1a3)](this[_0x3266b6(0x177)]),this[_0x3266b6(0x19a)](),this[_0x3266b6(0x18d)][_0x3266b6(0x19a)](),this[_0x3266b6(0x19c)]instanceof _0x323eae&&this[_0x3266b6(0x19a)](this[_0x3266b6(0x19c)][_0x3266b6(0x18c)]);for(const _0x27b96d of Array[_0x3266b6(0x1a2)](this[_0x3266b6(0x175)]))this[_0x3266b6(0x163)](_0x27b96d);window[_0x3266b6(0x166)](_0x3266b6(0x180),this[_0x3266b6(0x158)]),this[_0x3266b6(0x158)][_0x3266b6(0x170)](),this[_0x3266b6(0x1b5)]=[],this[_0x3266b6(0x1b8)]=!0x1,this[_0x3266b6(0x177)]=null;}[_0x575e69(0x1c4)](){const _0x2b9d06=_0x575e69;this[_0x2b9d06(0x1b8)]&&this[_0x2b9d06(0x188)](),this[_0x2b9d06(0x16c)][_0x2b9d06(0x1ab)]();}[_0x575e69(0x16d)](_0x81058b){const _0x1a145c=_0x575e69;if(!_0x81058b[_0x1a145c(0x1b0)][_0x1a145c(0x183)](_0x1a145c(0x17c)))return;const _0x46ed74=_0x81058b[_0x1a145c(0x1b0)][_0x1a145c(0x1cc)](_0x1a145c(0x17c)),_0x397b77=this[_0x1a145c(0x19c)][_0x1a145c(0x1b0)][_0x1a145c(0x1cc)](_0x107757),_0x41f3be=this[_0x1a145c(0x177)],_0x44bb39=this[_0x1a145c(0x171)],_0x5c513f=()=>{const _0x55eaf5=_0x1a145c,_0x5cea71=_0x46ed74[_0x55eaf5(0x179)]({'annotations':this[_0x55eaf5(0x177)],'activeAnnotation':this[_0x55eaf5(0x1c0)]});this[_0x55eaf5(0x1bc)](_0x5cea71),this[_0x55eaf5(0x1c7)](_0x5cea71[0x0]||null);};this[_0x1a145c(0x1a0)](_0x46ed74,_0x1a145c(0x184),_0x5c513f),this[_0x1a145c(0x1a0)](_0x46ed74,_0x1a145c(0x185),(_0x195b50,{isAnnotationTracked:_0x24cc8a})=>{const _0x2d641b=_0x1a145c;this[_0x2d641b(0x1c0)]&&_0x24cc8a(this[_0x2d641b(0x1c0)])&&(this[_0x2d641b(0x1bc)]([]),this[_0x2d641b(0x1c7)](null));}),this[_0x1a145c(0x1a0)](_0x46ed74,_0x1a145c(0x19f),()=>{const _0x5b2e2a=_0x1a145c;this[_0x5b2e2a(0x158)]();}),this[_0x1a145c(0x1a0)](_0x41f3be,_0x1a145c(0x185),_0x567a13=>{const _0x26d51a=_0x1a145c;_0x46ed74[_0x26d51a(0x173)]()&&_0x567a13[_0x26d51a(0x1a6)]();},{'priority':_0x1a145c(0x195)}),this[_0x1a145c(0x1a0)](this[_0x1a145c(0x18d)],_0x1a145c(0x17d),(_0x36a310,_0x28d907)=>{const _0x597f3d=_0x1a145c,_0x41d139=_0x28d907[_0x597f3d(0x15a)];_0x44bb39[_0x597f3d(0x187)]&&_0x44bb39[_0x597f3d(0x161)][_0x597f3d(0x174)](_0x41d139)||_0x397b77[_0x597f3d(0x15b)][_0x597f3d(0x161)][_0x597f3d(0x174)](_0x41d139)||this[_0x597f3d(0x1c0)]&&_0x46ed74[_0x597f3d(0x173)]()&&(_0x5c513f(),_0x36a310[_0x597f3d(0x1c8)]=!0x0);},{'priority':_0x1a145c(0x195)}),this[_0x1a145c(0x175)][_0x1a145c(0x15d)](_0x46ed74);}[_0x575e69(0x163)](_0x31f4e8){const _0x3ca55b=_0x575e69;_0x31f4e8&&(this[_0x3ca55b(0x19a)](_0x31f4e8),this[_0x3ca55b(0x175)][_0x3ca55b(0x17b)](_0x31f4e8));}[_0x575e69(0x1bc)](_0x2a979){const _0x3400a8=_0x575e69;for(const _0x225a6b of this[_0x3400a8(0x1b5)])_0x2a979[_0x3400a8(0x1c3)](_0x225a6b)||this[_0x3400a8(0x18b)][_0x3400a8(0x1bd)](_0x225a6b[_0x3400a8(0x15b)]);this[_0x3400a8(0x1b5)]=_0x2a979;}[_0x575e69(0x181)](){const _0x4461b6=_0x575e69,_0x27e26a=this[_0x4461b6(0x171)];this[_0x4461b6(0x177)][_0x4461b6(0x155)](),_0x27e26a[_0x4461b6(0x187)]&&this[_0x4461b6(0x1ae)]();}[_0x575e69(0x1ca)](_0x4a94ec){const _0xcf909d=_0x575e69;if(this[_0xcf909d(0x18b)][_0xcf909d(0x183)](_0x4a94ec[_0xcf909d(0x15b)]))return;const _0x48219a=this[_0xcf909d(0x171)][_0xcf909d(0x1a1)][_0xcf909d(0x16b)];_0x48219a!==_0x4a94ec[_0xcf909d(0x15b)]?(_0x48219a&&this[_0xcf909d(0x165)](_0x48219a),this[_0xcf909d(0x156)](_0x4a94ec[_0xcf909d(0x15b)]),this[_0xcf909d(0x171)][_0xcf909d(0x1a1)][_0xcf909d(0x167)](),this[_0xcf909d(0x171)][_0xcf909d(0x1a1)][_0xcf909d(0x15d)](_0x4a94ec[_0xcf909d(0x15b)]),this[_0xcf909d(0x1ae)]()):this[_0xcf909d(0x1ae)]();}[_0x575e69(0x1ae)](){const _0x53d9a1=_0x575e69,_0x5effcb=this[_0x53d9a1(0x171)][_0x53d9a1(0x1a1)][_0x53d9a1(0x16b)],_0x5451d7=_0x5effcb&&this[_0x53d9a1(0x177)][_0x53d9a1(0x1b4)](_0x5effcb);if(!_0x5451d7||!this[_0x53d9a1(0x1be)][_0x53d9a1(0x183)](_0x5451d7))return;const _0x181390=this[_0x53d9a1(0x1be)][_0x53d9a1(0x1cc)](_0x5451d7)[_0x53d9a1(0x161)],_0x10655f=(function(){const _0x40d28f=_0x53d9a1,_0x46c921=_0x35090c[_0x40d28f(0x1c6)];return[_0x46c921[_0x40d28f(0x15c)],_0x46c921[_0x40d28f(0x168)],_0x46c921[_0x40d28f(0x1cd)],_0x46c921[_0x40d28f(0x159)],_0x46c921[_0x40d28f(0x1aa)],_0x46c921[_0x40d28f(0x1b6)]];}());this[_0x53d9a1(0x171)][_0x53d9a1(0x1b2)]({'target':_0x181390,'positions':_0x10655f});}[_0x575e69(0x1b1)](){const _0x1795b7=_0x575e69,_0x1f137d=this[_0x1795b7(0x171)],_0x470dd4=_0x1f137d[_0x1795b7(0x1a1)][_0x1795b7(0x16b)];_0x470dd4&&(this[_0x1795b7(0x165)](_0x470dd4),_0x1f137d[_0x1795b7(0x1a4)](),_0x1f137d[_0x1795b7(0x1a1)][_0x1795b7(0x167)]());}[_0x575e69(0x156)](_0x290b45){const _0xe505af=_0x575e69;this[_0xe505af(0x1a0)](_0x290b45,_0xe505af(0x1ad),()=>this[_0xe505af(0x1ae)]()),this[_0xe505af(0x1a0)](_0x290b45,_0xe505af(0x1a9),(_0x46f11c,_0x262a64)=>{const _0x5e328b=_0xe505af;this[_0x5e328b(0x18b)][_0x5e328b(0x15d)](_0x290b45),this[_0x5e328b(0x1b1)](),_0x262a64();});}[_0x575e69(0x165)](_0x32fb4c){const _0x126e22=_0x575e69;this[_0x126e22(0x19a)](_0x32fb4c);}}
|
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
import type { FocusableView } from 'ckeditor5/src/ui.js';
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import type Annotation from './annotation.js';
|
|
11
|
+
import { AnnotationsSidebarView } from './view/sidebarview.js';
|
|
12
|
+
import { AnnotationsSidebarItemView } from './view/sidebaritemview.js';
|
|
13
|
+
import { type Annotation } from './annotation.js';
|
|
14
14
|
/**
|
|
15
15
|
* Displays {@link module:comments/annotations/annotationcollection~AnnotationCollection annotations} inside a sidebar.
|
|
16
16
|
*
|
|
17
|
-
* `Sidebar` provides a {@link module:comments/annotations/view/sidebarview~
|
|
17
|
+
* `Sidebar` provides a {@link module:comments/annotations/view/sidebarview~AnnotationsSidebarView} which can be injected at any place on
|
|
18
|
+
* a website.
|
|
18
19
|
*
|
|
19
20
|
* It's main role is to display and correctly position annotation views added to the sidebar, accordingly to their target elements
|
|
20
21
|
* or `Rect`s.
|
|
@@ -24,17 +25,17 @@ import type Annotation from './annotation.js';
|
|
|
24
25
|
* * {@link module:comments/annotations/widesidebar~WideSidebar}
|
|
25
26
|
* * {@link module:comments/annotations/narrowsidebar~NarrowSidebar}
|
|
26
27
|
*
|
|
27
|
-
* The sidebar plugin introduces {@link module:comments/annotations/view/sidebaritemview~
|
|
28
|
-
* {@link module:comments/annotations/view/annotationview~AnnotationView}. It adds an interface needed for positioning views inside
|
|
28
|
+
* The sidebar plugin introduces {@link module:comments/annotations/view/sidebaritemview~AnnotationsSidebarItemView} which is a wrapper view
|
|
29
|
+
* for {@link module:comments/annotations/view/annotationview~AnnotationView}. It adds an interface needed for positioning views inside
|
|
29
30
|
* the sidebar.
|
|
30
31
|
*
|
|
31
32
|
* Structure of items:
|
|
32
33
|
*
|
|
33
|
-
* |->
|
|
34
|
-
* Sidebar#view#list -|->
|
|
34
|
+
* |-> AnnotationsSidebarItemView -> AnnotationView -> added View
|
|
35
|
+
* Sidebar#view#list -|-> AnnotationsSidebarItemView -> AnnotationView -> added View
|
|
35
36
|
* |-> ...
|
|
36
37
|
*/
|
|
37
|
-
export
|
|
38
|
+
export declare class Sidebar extends ContextPlugin {
|
|
38
39
|
/**
|
|
39
40
|
* Container element into which sidebar is injected (in the DOM).
|
|
40
41
|
*
|
|
@@ -44,7 +45,7 @@ export default class Sidebar extends ContextPlugin {
|
|
|
44
45
|
/**
|
|
45
46
|
* Sidebar view.
|
|
46
47
|
*/
|
|
47
|
-
view:
|
|
48
|
+
view: AnnotationsSidebarView;
|
|
48
49
|
/**
|
|
49
50
|
* @inheritDoc
|
|
50
51
|
*/
|
|
@@ -91,17 +92,17 @@ export default class Sidebar extends ContextPlugin {
|
|
|
91
92
|
disableAnimationOnActivatedAnnotation?: boolean;
|
|
92
93
|
}): void;
|
|
93
94
|
/**
|
|
94
|
-
* Creates new {@link module:comments/annotations/view/sidebaritemview~
|
|
95
|
+
* Creates new {@link module:comments/annotations/view/sidebaritemview~AnnotationsSidebarItemView} and binds its
|
|
95
96
|
* position with {@link module:comments/annotations/view/annotationview~AnnotationView} target position.
|
|
96
97
|
*
|
|
97
98
|
* By default, annotation's view will be displayed in the sidebar. However, you can provide any other view
|
|
98
99
|
* to be displayed instead using `annotationToDisplay`. `annotation` will be then used only to gather data needed by `Sidebar`.
|
|
99
100
|
*/
|
|
100
|
-
addAnnotation(annotation: Annotation, viewToDisplay?: FocusableView):
|
|
101
|
+
addAnnotation(annotation: Annotation, viewToDisplay?: FocusableView): AnnotationsSidebarItemView;
|
|
101
102
|
/**
|
|
102
103
|
* Returns sidebar item view that wraps given annotation view.
|
|
103
104
|
*/
|
|
104
|
-
getSidebarItemView(annotation: Annotation):
|
|
105
|
+
getSidebarItemView(annotation: Annotation): AnnotationsSidebarItemView | undefined;
|
|
105
106
|
/**
|
|
106
107
|
* @inheritDoc
|
|
107
108
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1e9db4=_0x4f60;(function(_0xf647f2,_0x4b7ae0){const _0x52081e=_0x4f60,_0x52f5e8=_0xf647f2();while(!![]){try{const _0x375197=parseInt(_0x52081e(0x194))/0x1*(parseInt(_0x52081e(0x14a))/0x2)+-parseInt(_0x52081e(0x151))/0x3*(-parseInt(_0x52081e(0x145))/0x4)+parseInt(_0x52081e(0x175))/0x5+parseInt(_0x52081e(0x173))/0x6*(-parseInt(_0x52081e(0x155))/0x7)+parseInt(_0x52081e(0x180))/0x8+parseInt(_0x52081e(0x14b))/0x9+-parseInt(_0x52081e(0x15b))/0xa;if(_0x375197===_0x4b7ae0)break;else _0x52f5e8['push'](_0x52f5e8['shift']());}catch(_0x5bef15){_0x52f5e8['push'](_0x52f5e8['shift']());}}}(_0x245a,0xe2d4a));function _0x245a(){const _0xff4534=['get','change:top','change:targetRect','rearrange','container','view','1305JxhxMH','_createSidebarView','set','getSidebarItemView','target','destroy','config','top','_spaceBetweenItems','object','_annotations','_annotationToSidebarItemView','4052EhpjQk','isPremiumPlugin','_activeAnnotation','length','_sidebarItemViewToAnnotation','1126ekbXoh','3960000EuNyqO','delete','listenTo','setContainer','_alignAfterItem','sidebar-attachtocontainer-missing-container','171FTGDhZ','appendChild','_recalculateBuffer','element','35jZrHUt','change:bottom','class','height','addAnnotation','define','12574350wjUKWe','clear','_updateLastItem','context','isAnimationDisabled','_alignForBottomChange','_detachFromContainer','_alignBeforeItem','_attachToContainer','updateHeight','list','_getItemBefore','sidebar-setcontainer-invalid-element','bind','_getTargetTop','render','unbind','targetRect','_lastItem','_recalculate','last','_alignToTargetRect','max','minHeight','1095042pYhtgM','isOfficialPlugin','6024975VnXNKN','push','change:_lastItem','nodeType','stopListening','_destroySidebarItemView','_targetTop','_getMaxAvailableTop','locale','isActive','Sidebar','5292936IckPOH','content','bottom','sidebar.preventScrollOutOfView','init','_getItemAfter','remove','pluginName','_alignForTopChange','getIndex','sidebar.container','refresh','_setItemTop','add'];_0x245a=function(){return _0xff4534;};return _0x245a();}import{ContextPlugin as _0x2309c2}from'ckeditor5/src/core.js';import{Rect as _0x4f923c,CKEditorError as _0x39c858}from'ckeditor5/src/utils.js';import _0x45d874 from'./view/sidebarview.js';import _0x506c77 from'./view/sidebaritemview.js';export default class z extends _0x2309c2{[_0x1e9db4(0x193)];[_0x1e9db4(0x147)];[_0x1e9db4(0x143)];[_0x1e9db4(0x141)];[_0x1e9db4(0x149)];[_0x1e9db4(0x144)];[_0x1e9db4(0x153)];static get[_0x1e9db4(0x187)](){const _0x33cd9e=_0x1e9db4;return _0x33cd9e(0x17f);}static get[_0x1e9db4(0x174)](){return!0x0;}static get[_0x1e9db4(0x146)](){return!0x0;}constructor(_0x42bc64){const _0x5204df=_0x1e9db4;super(_0x42bc64),this[_0x5204df(0x196)](_0x5204df(0x16d),void 0x0),this[_0x5204df(0x193)]=this[_0x5204df(0x195)](),this[_0x5204df(0x196)](_0x5204df(0x192),null),this[_0x5204df(0x141)]=0x19,this[_0x5204df(0x149)]=new Map(),this[_0x5204df(0x144)]=new Map(),this[_0x5204df(0x15e)][_0x5204df(0x13f)][_0x5204df(0x15a)](_0x5204df(0x183),!0x1),this[_0x5204df(0x143)]=null,this[_0x5204df(0x147)]=null,this[_0x5204df(0x153)]=[];}[_0x1e9db4(0x184)](){const _0x409e25=_0x1e9db4,_0x5b3f0c=this[_0x409e25(0x15e)][_0x409e25(0x13f)][_0x409e25(0x18e)](_0x409e25(0x18a));_0x5b3f0c&&this[_0x409e25(0x14e)](_0x5b3f0c);}[_0x1e9db4(0x14e)](_0x391b67){const _0x4f9309=_0x1e9db4;if(!y(_0x391b67))throw new _0x39c858(_0x4f9309(0x167));this[_0x4f9309(0x192)]=_0x391b67;}[_0x1e9db4(0x163)]({viewClass:_0x305cf4='',spaceBetweenItems:_0x4a41f5=0x19}={}){const _0x4ad346=_0x1e9db4;if(!y(this[_0x4ad346(0x192)]))throw new _0x39c858(_0x4ad346(0x150),this);this[_0x4ad346(0x192)][_0x4ad346(0x152)](this[_0x4ad346(0x193)][_0x4ad346(0x154)]),this[_0x4ad346(0x193)][_0x4ad346(0x157)]=_0x305cf4,this[_0x4ad346(0x141)]=_0x4a41f5;}[_0x1e9db4(0x191)]({removedAnnotation:_0x3da9c3,previousAnnotation:_0x478595,nextAnnotation:_0x2e4f59}){const _0x3f6bb0=_0x1e9db4,_0x114dd3=this[_0x3f6bb0(0x197)](_0x3da9c3);this[_0x3f6bb0(0x193)][_0x3f6bb0(0x165)][_0x3f6bb0(0x186)](_0x114dd3),this[_0x3f6bb0(0x17a)](_0x3da9c3),_0x478595&&this[_0x3f6bb0(0x170)](this[_0x3f6bb0(0x197)](_0x478595)),_0x2e4f59&&this[_0x3f6bb0(0x170)](this[_0x3f6bb0(0x197)](_0x2e4f59)),this[_0x3f6bb0(0x15d)]();}[_0x1e9db4(0x18b)]({blurredAnnotation:_0x386a7a,activatedAnnotation:_0x14eb52,disableAnimationOnActivatedAnnotation:_0x588178}){const _0x53e61e=_0x1e9db4;if(this[_0x53e61e(0x147)]=_0x14eb52,_0x386a7a){_0x386a7a[_0x53e61e(0x17e)]=!0x1;const _0x24c0df=this[_0x53e61e(0x197)](_0x386a7a);_0x24c0df&&_0x588178&&(_0x24c0df[_0x53e61e(0x15f)]=!0x1);}if(_0x14eb52){const _0x17ba19=this[_0x53e61e(0x197)](_0x14eb52);_0x17ba19&&(_0x14eb52[_0x53e61e(0x17e)]=!0x0,_0x588178&&(_0x17ba19[_0x53e61e(0x15f)]=!0x0,_0x17ba19[_0x53e61e(0x140)]+=0x1),this[_0x53e61e(0x170)](_0x17ba19));}}[_0x1e9db4(0x161)](_0x13847b){const _0x28c5f0=_0x1e9db4;if(this[_0x28c5f0(0x193)][_0x28c5f0(0x154)][_0x28c5f0(0x186)](),_0x13847b){for(const _0x3d1df7 of _0x13847b)this[_0x28c5f0(0x17a)](_0x3d1df7);}this[_0x28c5f0(0x193)][_0x28c5f0(0x165)][_0x28c5f0(0x15c)](),this[_0x28c5f0(0x193)][_0x28c5f0(0x157)]='',this[_0x28c5f0(0x16d)]=null;}[_0x1e9db4(0x159)](_0x4bf26f,_0x7bb5f7){const _0x505163=_0x1e9db4;_0x7bb5f7||(_0x7bb5f7=_0x4bf26f[_0x505163(0x193)]);const _0x41bd93=new _0x506c77(this[_0x505163(0x15e)][_0x505163(0x17d)]);this[_0x505163(0x149)][_0x505163(0x196)](_0x41bd93,_0x4bf26f),this[_0x505163(0x144)][_0x505163(0x196)](_0x4bf26f,_0x41bd93),_0x41bd93[_0x505163(0x181)][_0x505163(0x18d)](_0x7bb5f7),this[_0x505163(0x14d)](_0x4bf26f[_0x505163(0x193)],_0x505163(0x190),(_0x5f3dff,_0x59b8f7,_0x2c98c2)=>{const _0x209432=_0x505163,_0x2aa19c=this[_0x209432(0x169)](_0x4bf26f,_0x2c98c2);_0x41bd93[_0x209432(0x17b)]!=_0x2aa19c&&(_0x41bd93[_0x209432(0x17b)]=_0x2aa19c,this[_0x209432(0x18c)](_0x41bd93,_0x2aa19c));}),this[_0x505163(0x14d)](_0x41bd93,_0x505163(0x18f),()=>{const _0x559739=_0x505163;this[_0x559739(0x16e)](_0x41bd93,_0x559739(0x140));}),this[_0x505163(0x14d)](_0x41bd93,_0x505163(0x156),()=>{const _0x361a31=_0x505163;this[_0x361a31(0x16e)](_0x41bd93,_0x361a31(0x182));}),this[_0x505163(0x170)](_0x41bd93);const _0x4bda70=this[_0x505163(0x166)](_0x41bd93);if(_0x4bda70)this[_0x505163(0x14f)](_0x4bda70,_0x41bd93)||this[_0x505163(0x170)](_0x41bd93);else this[_0x505163(0x170)](_0x41bd93);return this[_0x505163(0x15d)](),this[_0x505163(0x193)][_0x505163(0x165)][_0x505163(0x18d)](_0x41bd93),_0x41bd93;}[_0x1e9db4(0x188)](_0x492d53){const _0x5a3e01=_0x1e9db4;if(!_0x492d53[_0x5a3e01(0x181)][_0x5a3e01(0x148)])return;const _0x5d6ed3=this[_0x5a3e01(0x166)](_0x492d53);if(!_0x5d6ed3)return;const _0x5b8f21=this[_0x5a3e01(0x149)][_0x5a3e01(0x18e)](_0x5d6ed3),_0x4c450c=this[_0x5a3e01(0x147)];_0x4c450c&&_0x4c450c===_0x5b8f21?this[_0x5a3e01(0x14f)](_0x5d6ed3,_0x492d53):this[_0x5a3e01(0x162)](_0x492d53,_0x5d6ed3);}[_0x1e9db4(0x160)](_0x2035a0){const _0x1afb83=_0x1e9db4;if(!_0x2035a0[_0x1afb83(0x181)][_0x1afb83(0x148)])return;const _0x31daa4=this[_0x1afb83(0x185)](_0x2035a0);if(!_0x31daa4)return;const _0x4abb41=this[_0x1afb83(0x149)][_0x1afb83(0x18e)](_0x31daa4),_0x2519e5=this[_0x1afb83(0x15e)][_0x1afb83(0x13f)][_0x1afb83(0x18e)](_0x1afb83(0x183)),_0x348dfe=this[_0x1afb83(0x147)];_0x348dfe&&_0x348dfe===_0x4abb41&&_0x2519e5?(this[_0x1afb83(0x162)](_0x31daa4,_0x2035a0),this[_0x1afb83(0x14f)](_0x2035a0,_0x31daa4)):_0x348dfe&&_0x348dfe===_0x4abb41?this[_0x1afb83(0x162)](_0x31daa4,_0x2035a0):this[_0x1afb83(0x14f)](_0x2035a0,_0x31daa4);}[_0x1e9db4(0x16e)](_0x3c821c,_0xff38b4){const _0x3e1dff=_0x1e9db4;0x0===this[_0x3e1dff(0x153)][_0x3e1dff(0x148)]&&setTimeout(()=>{const _0x2b6277=_0x3e1dff;for(const {sidebarItemView:_0xaba8cd,changedProp:_0x17d6cf}of this[_0x2b6277(0x153)])_0x2b6277(0x140)===_0x17d6cf?this[_0x2b6277(0x188)](_0xaba8cd):this[_0x2b6277(0x160)](_0xaba8cd);this[_0x2b6277(0x153)]=[];},0xa),this[_0x3e1dff(0x153)][_0x3e1dff(0x176)]({'sidebarItemView':_0x3c821c,'changedProp':_0xff38b4});}[_0x1e9db4(0x197)](_0x15f108){const _0x3016bb=_0x1e9db4;return this[_0x3016bb(0x144)][_0x3016bb(0x18e)](_0x15f108);}[_0x1e9db4(0x13e)](){const _0x4f5dd6=_0x1e9db4;this[_0x4f5dd6(0x179)](),this[_0x4f5dd6(0x193)][_0x4f5dd6(0x13e)]();}[_0x1e9db4(0x17a)](_0x49d6f3){const _0x17fad7=_0x1e9db4,_0x15fe7a=this[_0x17fad7(0x197)](_0x49d6f3);this[_0x17fad7(0x179)](_0x15fe7a),this[_0x17fad7(0x179)](_0x49d6f3[_0x17fad7(0x193)]),_0x15fe7a[_0x17fad7(0x13e)](),this[_0x17fad7(0x144)][_0x17fad7(0x14c)](_0x49d6f3),this[_0x17fad7(0x149)][_0x17fad7(0x14c)](_0x15fe7a);}[_0x1e9db4(0x195)](){const _0x4da144=_0x1e9db4,_0x58fcfa=new _0x45d874(this[_0x4da144(0x15e)][_0x4da144(0x17d)]);return _0x58fcfa[_0x4da144(0x16a)](),this['on'](_0x4da144(0x177),(_0x500f7b,_0x343e0a,_0x196697,_0x21b230)=>{const _0x2df3e2=_0x4da144;_0x21b230&&_0x58fcfa[_0x2df3e2(0x16b)](_0x2df3e2(0x172)),_0x196697?_0x58fcfa[_0x2df3e2(0x168)](_0x2df3e2(0x172))['to'](_0x196697,_0x2df3e2(0x182)):_0x58fcfa[_0x2df3e2(0x172)]=null;}),_0x58fcfa;}[_0x1e9db4(0x15d)](){const _0x4a9b9a=_0x1e9db4;this[_0x4a9b9a(0x16d)]=this[_0x4a9b9a(0x143)]?.[_0x4a9b9a(0x16f)]?this[_0x4a9b9a(0x197)](this[_0x4a9b9a(0x143)][_0x4a9b9a(0x16f)]):null;}[_0x1e9db4(0x166)](_0x4830d6){const _0x552cd7=_0x1e9db4,_0x4e1838=this[_0x552cd7(0x149)][_0x552cd7(0x18e)](_0x4830d6),_0x187bb3=_0x4e1838&&this[_0x552cd7(0x143)]?.[_0x552cd7(0x18e)](this[_0x552cd7(0x143)][_0x552cd7(0x189)](_0x4e1838)-0x1);return _0x187bb3&&this[_0x552cd7(0x197)](_0x187bb3)||null;}[_0x1e9db4(0x185)](_0x3c0acc){const _0xd053a2=_0x1e9db4,_0x429ab2=this[_0xd053a2(0x149)][_0xd053a2(0x18e)](_0x3c0acc),_0x2ceb21=_0x429ab2&&this[_0xd053a2(0x143)]?.[_0xd053a2(0x18e)](this[_0xd053a2(0x143)][_0xd053a2(0x189)](_0x429ab2)+0x1);return _0x2ceb21&&this[_0xd053a2(0x197)](_0x2ceb21)||null;}[_0x1e9db4(0x162)](_0x35d83a,_0x3ba881){const _0x3586c5=_0x1e9db4;_0x35d83a[_0x3586c5(0x164)]();const _0x45cc7f=G(_0x3ba881[_0x3586c5(0x182)]+this[_0x3586c5(0x141)],_0x35d83a[_0x3586c5(0x140)]);return!!_0x45cc7f&&(this[_0x3586c5(0x18c)](_0x3ba881,_0x3ba881[_0x3586c5(0x140)]-_0x45cc7f),!0x0);}[_0x1e9db4(0x14f)](_0xfa3447,_0x3f1ce5){const _0x23d3d6=_0x1e9db4;_0xfa3447[_0x23d3d6(0x164)]();const _0x295fe1=G(_0xfa3447[_0x23d3d6(0x182)]+this[_0x23d3d6(0x141)],_0x3f1ce5[_0x23d3d6(0x140)]);return!!_0x295fe1&&(this[_0x23d3d6(0x18c)](_0x3f1ce5,_0x3f1ce5[_0x23d3d6(0x140)]+_0x295fe1,!0x1),!0x0);}[_0x1e9db4(0x170)](_0x87538c){const _0x3fabb6=_0x1e9db4,_0x2d3bd3=this[_0x3fabb6(0x149)][_0x3fabb6(0x18e)](_0x87538c);if(!_0x2d3bd3||!_0x2d3bd3[_0x3fabb6(0x198)]||!_0x2d3bd3[_0x3fabb6(0x16c)])return;const _0x1ea25d=this[_0x3fabb6(0x169)](_0x2d3bd3,_0x2d3bd3[_0x3fabb6(0x16c)]);this[_0x3fabb6(0x18c)](_0x87538c,_0x1ea25d);}[_0x1e9db4(0x169)](_0x2faac5,_0xca6e0a){const _0x1e37b1=_0x1e9db4;if(null===_0xca6e0a)return 0x0;if(_0x2faac5[_0x1e37b1(0x198)]instanceof _0x4f923c)return _0xca6e0a[_0x1e37b1(0x140)];{const _0x330c82=new _0x4f923c(this[_0x1e37b1(0x193)][_0x1e37b1(0x154)])[_0x1e37b1(0x140)];return _0xca6e0a[_0x1e37b1(0x140)]-_0x330c82;}}[_0x1e9db4(0x18c)](_0x513a3c,_0x879aaf,_0x4a5a41=this[_0x1e9db4(0x15e)][_0x1e9db4(0x13f)][_0x1e9db4(0x18e)](_0x1e9db4(0x183))){const _0x356172=_0x1e9db4;_0x4a5a41&&(_0x879aaf=Math[_0x356172(0x171)](_0x879aaf,this[_0x356172(0x17c)](_0x513a3c))),_0x513a3c[_0x356172(0x140)]=_0x879aaf;}[_0x1e9db4(0x17c)](_0x58d38b){const _0x409989=_0x1e9db4;let _0x6ef9f0=this[_0x409989(0x166)](_0x58d38b),_0x2608f1=0x0;for(;_0x6ef9f0;)_0x6ef9f0[_0x409989(0x164)](),_0x2608f1+=this[_0x409989(0x141)]+_0x6ef9f0[_0x409989(0x158)],_0x6ef9f0=this[_0x409989(0x166)](_0x6ef9f0);return _0x2608f1;}}function G(_0x1e75ec,_0x80997a){const _0x463d62=_0x1e9db4;return Math[_0x463d62(0x171)](_0x1e75ec-_0x80997a,0x0);}function _0x4f60(_0x232d76,_0x59c7e8){const _0x245a1d=_0x245a();return _0x4f60=function(_0x4f60c0,_0x491072){_0x4f60c0=_0x4f60c0-0x13e;let _0x3c76cd=_0x245a1d[_0x4f60c0];return _0x3c76cd;},_0x4f60(_0x232d76,_0x59c7e8);}function y(_0x25e024){const _0x2ddc78=_0x1e9db4;return null!==_0x25e024&&_0x2ddc78(0x142)==typeof _0x25e024&&0x1===_0x25e024[_0x2ddc78(0x178)];}
|
|
23
|
+
const _0x3ec6c9=_0x3c66;(function(_0x346e69,_0x574ba6){const _0xa7613a=_0x3c66,_0x120268=_0x346e69();while(!![]){try{const _0x3a158a=parseInt(_0xa7613a(0xae))/0x1*(-parseInt(_0xa7613a(0xcc))/0x2)+-parseInt(_0xa7613a(0xb9))/0x3*(-parseInt(_0xa7613a(0xba))/0x4)+-parseInt(_0xa7613a(0xa4))/0x5+parseInt(_0xa7613a(0xeb))/0x6*(parseInt(_0xa7613a(0xd3))/0x7)+parseInt(_0xa7613a(0x9f))/0x8*(parseInt(_0xa7613a(0xce))/0x9)+parseInt(_0xa7613a(0xb2))/0xa*(-parseInt(_0xa7613a(0xa7))/0xb)+parseInt(_0xa7613a(0xc2))/0xc;if(_0x3a158a===_0x574ba6)break;else _0x120268['push'](_0x120268['shift']());}catch(_0xf2e736){_0x120268['push'](_0x120268['shift']());}}}(_0xd85c,0x3ed48));function _0xd85c(){const _0x1b6aff=['get','delete','max','refresh','getSidebarItemView','6NklsRw','container','last','addAnnotation','_recalculateBuffer','nodeType','view','listenTo','bind','change:_lastItem','sidebar-setcontainer-invalid-element','minHeight','length','define','updateHeight','isOfficialPlugin','push','8zNJmHu','_recalculate','clear','bottom','_alignAfterItem','1275110FyhbdC','object','_annotationToSidebarItemView','1478785HZEdJk','init','_alignForTopChange','destroy','unbind','isPremiumPlugin','list','3425BBZUlO','_alignForBottomChange','_targetTop','_activeAnnotation','10abWdgv','remove','targetRect','context','element','rearrange','Sidebar','36357asgfzg','8MgNFeW','appendChild','top','locale','config','set','isAnimationDisabled','_lastItem','2955180rPubdY','sidebar-attachtocontainer-missing-container','_sidebarItemViewToAnnotation','_updateLastItem','class','render','sidebar.container','setContainer','_alignBeforeItem','add','116LZEYyc','_getItemAfter','2756385fkijhz','isActive','_destroySidebarItemView','height','sidebar.preventScrollOutOfView','1880837ToRyjs','getIndex','_annotations','_getTargetTop','_attachToContainer','_alignToTargetRect','stopListening','_createSidebarView','change:targetRect','pluginName','_setItemTop','change:bottom','_spaceBetweenItems','content','_getMaxAvailableTop','change:top','_detachFromContainer','_getItemBefore','target'];_0xd85c=function(){return _0x1b6aff;};return _0xd85c();}import{ContextPlugin as _0x2b3846}from'ckeditor5/src/core.js';function _0x3c66(_0x1759cf,_0x44b124){const _0xd85c84=_0xd85c();return _0x3c66=function(_0x3c66e9,_0x1aaac4){_0x3c66e9=_0x3c66e9-0x9b;let _0x2a0dc0=_0xd85c84[_0x3c66e9];return _0x2a0dc0;},_0x3c66(_0x1759cf,_0x44b124);}import{Rect as _0x446616,CKEditorError as _0x149a57}from'ckeditor5/src/utils.js';import{AnnotationsSidebarView as _0x314b3d}from'./view/sidebarview.js';import{AnnotationsSidebarItemView as _0x275fff}from'./view/sidebaritemview.js';export class Sidebar extends _0x2b3846{[_0x3ec6c9(0xf1)];[_0x3ec6c9(0xb1)];[_0x3ec6c9(0xd5)];[_0x3ec6c9(0xdf)];[_0x3ec6c9(0xc4)];[_0x3ec6c9(0xa6)];[_0x3ec6c9(0xef)];static get[_0x3ec6c9(0xdc)](){const _0x3f4b79=_0x3ec6c9;return _0x3f4b79(0xb8);}static get[_0x3ec6c9(0x9d)](){return!0x0;}static get[_0x3ec6c9(0xac)](){return!0x0;}constructor(_0x13b9d4){const _0x2e83fb=_0x3ec6c9;super(_0x13b9d4),this[_0x2e83fb(0xbf)](_0x2e83fb(0xc1),void 0x0),this[_0x2e83fb(0xf1)]=this[_0x2e83fb(0xda)](),this[_0x2e83fb(0xbf)](_0x2e83fb(0xec),null),this[_0x2e83fb(0xdf)]=0x19,this[_0x2e83fb(0xc4)]=new Map(),this[_0x2e83fb(0xa6)]=new Map(),this[_0x2e83fb(0xb5)][_0x2e83fb(0xbe)][_0x2e83fb(0x9b)](_0x2e83fb(0xd2),!0x1),this[_0x2e83fb(0xd5)]=null,this[_0x2e83fb(0xb1)]=null,this[_0x2e83fb(0xef)]=[];}[_0x3ec6c9(0xa8)](){const _0x1e4d0c=_0x3ec6c9,_0x3f6373=this[_0x1e4d0c(0xb5)][_0x1e4d0c(0xbe)][_0x1e4d0c(0xe6)](_0x1e4d0c(0xc8));_0x3f6373&&this[_0x1e4d0c(0xc9)](_0x3f6373);}[_0x3ec6c9(0xc9)](_0x378369){const _0x19b0d8=_0x3ec6c9;if(!g(_0x378369))throw new _0x149a57(_0x19b0d8(0xf5));this[_0x19b0d8(0xec)]=_0x378369;}[_0x3ec6c9(0xd7)]({viewClass:_0x4ea03a='',spaceBetweenItems:_0x122fad=0x19}={}){const _0x57e217=_0x3ec6c9;if(!g(this[_0x57e217(0xec)]))throw new _0x149a57(_0x57e217(0xc3),this);this[_0x57e217(0xec)][_0x57e217(0xbb)](this[_0x57e217(0xf1)][_0x57e217(0xb6)]),this[_0x57e217(0xf1)][_0x57e217(0xc6)]=_0x4ea03a,this[_0x57e217(0xdf)]=_0x122fad;}[_0x3ec6c9(0xb7)]({removedAnnotation:_0xd307d4,previousAnnotation:_0xc7a52b,nextAnnotation:_0x1a6c8f}){const _0x4d2ce3=_0x3ec6c9,_0x4ab14f=this[_0x4d2ce3(0xea)](_0xd307d4);this[_0x4d2ce3(0xf1)][_0x4d2ce3(0xad)][_0x4d2ce3(0xb3)](_0x4ab14f),this[_0x4d2ce3(0xd0)](_0xd307d4),_0xc7a52b&&this[_0x4d2ce3(0xd8)](this[_0x4d2ce3(0xea)](_0xc7a52b)),_0x1a6c8f&&this[_0x4d2ce3(0xd8)](this[_0x4d2ce3(0xea)](_0x1a6c8f)),this[_0x4d2ce3(0xc5)]();}[_0x3ec6c9(0xe9)]({blurredAnnotation:_0x395685,activatedAnnotation:_0x285f5d,disableAnimationOnActivatedAnnotation:_0x5a444b}){const _0x40db50=_0x3ec6c9;if(this[_0x40db50(0xb1)]=_0x285f5d,_0x395685){_0x395685[_0x40db50(0xcf)]=!0x1;const _0x359c48=this[_0x40db50(0xea)](_0x395685);_0x359c48&&_0x5a444b&&(_0x359c48[_0x40db50(0xc0)]=!0x1);}if(_0x285f5d){const _0x13ab75=this[_0x40db50(0xea)](_0x285f5d);_0x13ab75&&(_0x285f5d[_0x40db50(0xcf)]=!0x0,_0x5a444b&&(_0x13ab75[_0x40db50(0xc0)]=!0x0,_0x13ab75[_0x40db50(0xbc)]+=0x1),this[_0x40db50(0xd8)](_0x13ab75));}}[_0x3ec6c9(0xe3)](_0x469312){const _0x47461d=_0x3ec6c9;if(this[_0x47461d(0xf1)][_0x47461d(0xb6)][_0x47461d(0xb3)](),_0x469312){for(const _0x136245 of _0x469312)this[_0x47461d(0xd0)](_0x136245);}this[_0x47461d(0xf1)][_0x47461d(0xad)][_0x47461d(0xa1)](),this[_0x47461d(0xf1)][_0x47461d(0xc6)]='',this[_0x47461d(0xc1)]=null;}[_0x3ec6c9(0xee)](_0xe70560,_0x40fccb){const _0x7a560f=_0x3ec6c9;_0x40fccb||(_0x40fccb=_0xe70560[_0x7a560f(0xf1)]);const _0x9a3e53=new _0x275fff(this[_0x7a560f(0xb5)][_0x7a560f(0xbd)]);this[_0x7a560f(0xc4)][_0x7a560f(0xbf)](_0x9a3e53,_0xe70560),this[_0x7a560f(0xa6)][_0x7a560f(0xbf)](_0xe70560,_0x9a3e53),_0x9a3e53[_0x7a560f(0xe0)][_0x7a560f(0xcb)](_0x40fccb),this[_0x7a560f(0xf2)](_0xe70560[_0x7a560f(0xf1)],_0x7a560f(0xdb),(_0x1bca59,_0x39f8d7,_0x396fa1)=>{const _0x189113=_0x7a560f,_0x5d0165=this[_0x189113(0xd6)](_0xe70560,_0x396fa1);_0x9a3e53[_0x189113(0xb0)]!=_0x5d0165&&(_0x9a3e53[_0x189113(0xb0)]=_0x5d0165,this[_0x189113(0xdd)](_0x9a3e53,_0x5d0165));}),this[_0x7a560f(0xf2)](_0x9a3e53,_0x7a560f(0xe2),()=>{const _0x2da2fe=_0x7a560f;this[_0x2da2fe(0xa0)](_0x9a3e53,_0x2da2fe(0xbc));}),this[_0x7a560f(0xf2)](_0x9a3e53,_0x7a560f(0xde),()=>{const _0x56d789=_0x7a560f;this[_0x56d789(0xa0)](_0x9a3e53,_0x56d789(0xa2));}),this[_0x7a560f(0xd8)](_0x9a3e53);const _0x1bf6f6=this[_0x7a560f(0xe4)](_0x9a3e53);if(_0x1bf6f6)this[_0x7a560f(0xa3)](_0x1bf6f6,_0x9a3e53)||this[_0x7a560f(0xd8)](_0x9a3e53);else this[_0x7a560f(0xd8)](_0x9a3e53);return this[_0x7a560f(0xc5)](),this[_0x7a560f(0xf1)][_0x7a560f(0xad)][_0x7a560f(0xcb)](_0x9a3e53),_0x9a3e53;}[_0x3ec6c9(0xa9)](_0x33225a){const _0x417852=_0x3ec6c9;if(!_0x33225a[_0x417852(0xe0)][_0x417852(0xf7)])return;const _0x370ed4=this[_0x417852(0xe4)](_0x33225a);if(!_0x370ed4)return;const _0x3244e4=this[_0x417852(0xc4)][_0x417852(0xe6)](_0x370ed4),_0x4d4b03=this[_0x417852(0xb1)];_0x4d4b03&&_0x4d4b03===_0x3244e4?this[_0x417852(0xa3)](_0x370ed4,_0x33225a):this[_0x417852(0xca)](_0x33225a,_0x370ed4);}[_0x3ec6c9(0xaf)](_0x3fdfd6){const _0x425e87=_0x3ec6c9;if(!_0x3fdfd6[_0x425e87(0xe0)][_0x425e87(0xf7)])return;const _0x4a4c57=this[_0x425e87(0xcd)](_0x3fdfd6);if(!_0x4a4c57)return;const _0x1c63ec=this[_0x425e87(0xc4)][_0x425e87(0xe6)](_0x4a4c57),_0xa92eb8=this[_0x425e87(0xb5)][_0x425e87(0xbe)][_0x425e87(0xe6)](_0x425e87(0xd2)),_0x516d14=this[_0x425e87(0xb1)];_0x516d14&&_0x516d14===_0x1c63ec&&_0xa92eb8?(this[_0x425e87(0xca)](_0x4a4c57,_0x3fdfd6),this[_0x425e87(0xa3)](_0x3fdfd6,_0x4a4c57)):_0x516d14&&_0x516d14===_0x1c63ec?this[_0x425e87(0xca)](_0x4a4c57,_0x3fdfd6):this[_0x425e87(0xa3)](_0x3fdfd6,_0x4a4c57);}[_0x3ec6c9(0xa0)](_0x2197bf,_0x2c7b3d){const _0x2f8e91=_0x3ec6c9;0x0===this[_0x2f8e91(0xef)][_0x2f8e91(0xf7)]&&setTimeout(()=>{const _0x2f473d=_0x2f8e91;for(const {sidebarItemView:_0x4b5432,changedProp:_0x4c6b1a}of this[_0x2f473d(0xef)])_0x2f473d(0xbc)===_0x4c6b1a?this[_0x2f473d(0xa9)](_0x4b5432):this[_0x2f473d(0xaf)](_0x4b5432);this[_0x2f473d(0xef)]=[];},0xa),this[_0x2f8e91(0xef)][_0x2f8e91(0x9e)]({'sidebarItemView':_0x2197bf,'changedProp':_0x2c7b3d});}[_0x3ec6c9(0xea)](_0x20727a){const _0x4005f2=_0x3ec6c9;return this[_0x4005f2(0xa6)][_0x4005f2(0xe6)](_0x20727a);}[_0x3ec6c9(0xaa)](){const _0x310fb2=_0x3ec6c9;this[_0x310fb2(0xd9)](),this[_0x310fb2(0xf1)][_0x310fb2(0xaa)]();}[_0x3ec6c9(0xd0)](_0x180ff4){const _0x1eb7b5=_0x3ec6c9,_0x24f172=this[_0x1eb7b5(0xea)](_0x180ff4);this[_0x1eb7b5(0xd9)](_0x24f172),this[_0x1eb7b5(0xd9)](_0x180ff4[_0x1eb7b5(0xf1)]),_0x24f172[_0x1eb7b5(0xaa)](),this[_0x1eb7b5(0xa6)][_0x1eb7b5(0xe7)](_0x180ff4),this[_0x1eb7b5(0xc4)][_0x1eb7b5(0xe7)](_0x24f172);}[_0x3ec6c9(0xda)](){const _0x5b002b=_0x3ec6c9,_0x2ebce4=new _0x314b3d(this[_0x5b002b(0xb5)][_0x5b002b(0xbd)]);return _0x2ebce4[_0x5b002b(0xc7)](),this['on'](_0x5b002b(0xf4),(_0x481aac,_0x1dbee7,_0x17d407,_0xe9aa7f)=>{const _0x1d707c=_0x5b002b;_0xe9aa7f&&_0x2ebce4[_0x1d707c(0xab)](_0x1d707c(0xf6)),_0x17d407?_0x2ebce4[_0x1d707c(0xf3)](_0x1d707c(0xf6))['to'](_0x17d407,_0x1d707c(0xa2)):_0x2ebce4[_0x1d707c(0xf6)]=null;}),_0x2ebce4;}[_0x3ec6c9(0xc5)](){const _0x2e9428=_0x3ec6c9;this[_0x2e9428(0xc1)]=this[_0x2e9428(0xd5)]?.[_0x2e9428(0xed)]?this[_0x2e9428(0xea)](this[_0x2e9428(0xd5)][_0x2e9428(0xed)]):null;}[_0x3ec6c9(0xe4)](_0x41c7a0){const _0xff22fe=_0x3ec6c9,_0xda9927=this[_0xff22fe(0xc4)][_0xff22fe(0xe6)](_0x41c7a0),_0x4364d1=_0xda9927&&this[_0xff22fe(0xd5)]?.[_0xff22fe(0xe6)](this[_0xff22fe(0xd5)][_0xff22fe(0xd4)](_0xda9927)-0x1);return _0x4364d1&&this[_0xff22fe(0xea)](_0x4364d1)||null;}[_0x3ec6c9(0xcd)](_0x5e18b3){const _0x13e93d=_0x3ec6c9,_0x2160dc=this[_0x13e93d(0xc4)][_0x13e93d(0xe6)](_0x5e18b3),_0x3f0a43=_0x2160dc&&this[_0x13e93d(0xd5)]?.[_0x13e93d(0xe6)](this[_0x13e93d(0xd5)][_0x13e93d(0xd4)](_0x2160dc)+0x1);return _0x3f0a43&&this[_0x13e93d(0xea)](_0x3f0a43)||null;}[_0x3ec6c9(0xca)](_0x11cabf,_0x6f611){const _0xce31ec=_0x3ec6c9;_0x11cabf[_0xce31ec(0x9c)]();const _0x402e64=G(_0x6f611[_0xce31ec(0xa2)]+this[_0xce31ec(0xdf)],_0x11cabf[_0xce31ec(0xbc)]);return!!_0x402e64&&(this[_0xce31ec(0xdd)](_0x6f611,_0x6f611[_0xce31ec(0xbc)]-_0x402e64),!0x0);}[_0x3ec6c9(0xa3)](_0x49de11,_0x50a557){const _0xe7919=_0x3ec6c9;_0x49de11[_0xe7919(0x9c)]();const _0x57c35f=G(_0x49de11[_0xe7919(0xa2)]+this[_0xe7919(0xdf)],_0x50a557[_0xe7919(0xbc)]);return!!_0x57c35f&&(this[_0xe7919(0xdd)](_0x50a557,_0x50a557[_0xe7919(0xbc)]+_0x57c35f,!0x1),!0x0);}[_0x3ec6c9(0xd8)](_0x4deecb){const _0x4723ce=_0x3ec6c9,_0x3ccee7=this[_0x4723ce(0xc4)][_0x4723ce(0xe6)](_0x4deecb);if(!_0x3ccee7||!_0x3ccee7[_0x4723ce(0xe5)]||!_0x3ccee7[_0x4723ce(0xb4)])return;const _0x4c412f=this[_0x4723ce(0xd6)](_0x3ccee7,_0x3ccee7[_0x4723ce(0xb4)]);this[_0x4723ce(0xdd)](_0x4deecb,_0x4c412f);}[_0x3ec6c9(0xd6)](_0x5b7023,_0x197130){const _0x3967de=_0x3ec6c9;if(null===_0x197130)return 0x0;if(_0x5b7023[_0x3967de(0xe5)]instanceof _0x446616)return _0x197130[_0x3967de(0xbc)];{const _0x4f3709=new _0x446616(this[_0x3967de(0xf1)][_0x3967de(0xb6)])[_0x3967de(0xbc)];return _0x197130[_0x3967de(0xbc)]-_0x4f3709;}}[_0x3ec6c9(0xdd)](_0x2c1dd2,_0x2d1246,_0x1733e4=this[_0x3ec6c9(0xb5)][_0x3ec6c9(0xbe)][_0x3ec6c9(0xe6)](_0x3ec6c9(0xd2))){const _0xa8667c=_0x3ec6c9;_0x1733e4&&(_0x2d1246=Math[_0xa8667c(0xe8)](_0x2d1246,this[_0xa8667c(0xe1)](_0x2c1dd2))),_0x2c1dd2[_0xa8667c(0xbc)]=_0x2d1246;}[_0x3ec6c9(0xe1)](_0x5a4b27){const _0x3c4c58=_0x3ec6c9;let _0x444ba8=this[_0x3c4c58(0xe4)](_0x5a4b27),_0x577e2f=0x0;for(;_0x444ba8;)_0x444ba8[_0x3c4c58(0x9c)](),_0x577e2f+=this[_0x3c4c58(0xdf)]+_0x444ba8[_0x3c4c58(0xd1)],_0x444ba8=this[_0x3c4c58(0xe4)](_0x444ba8);return _0x577e2f;}}function G(_0x49c525,_0x3138b5){const _0x4eca2e=_0x3ec6c9;return Math[_0x4eca2e(0xe8)](_0x49c525-_0x3138b5,0x0);}function g(_0xdf98e2){const _0x177ff0=_0x3ec6c9;return null!==_0xdf98e2&&_0x177ff0(0xa5)==typeof _0xdf98e2&&0x1===_0xdf98e2[_0x177ff0(0xf0)];}
|
|
@@ -11,7 +11,7 @@ import type { Locale } from 'ckeditor5/src/utils.js';
|
|
|
11
11
|
/**
|
|
12
12
|
* A view used in the sidebar by {@link module:comments/annotations/narrowsidebar~NarrowSidebar}.
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export declare class AnnotationCounterButtonView extends ButtonView {
|
|
15
15
|
/**
|
|
16
16
|
* @observable
|
|
17
17
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a0dcd=_0x4a13;(function(_0x5615bd,_0x97ca16){const _0x4032de=_0x4a13,_0x4436ed=_0x5615bd();while(!![]){try{const _0x345135=-parseInt(_0x4032de(0xcf))/0x1+parseInt(_0x4032de(0xdd))/0x2+-parseInt(_0x4032de(0xd3))/0x3+parseInt(_0x4032de(0xdc))/0x4*(parseInt(_0x4032de(0xe4))/0x5)+parseInt(_0x4032de(0xdf))/0x6*(parseInt(_0x4032de(0xda))/0x7)+-parseInt(_0x4032de(0xd8))/0x8*(-parseInt(_0x4032de(0xd4))/0x9)+-parseInt(_0x4032de(0xe9))/0xa;if(_0x345135===_0x97ca16)break;else _0x4436ed['push'](_0x4436ed['shift']());}catch(_0x34f588){_0x4436ed['push'](_0x4436ed['shift']());}}}(_0x3090,0x60c04));import{ButtonView as _0x14dc2a,View as _0x5223c6}from'ckeditor5/src/ui.js';import{IconAddComment as _0x49ad21}from'ckeditor5/src/icons.js';function _0x4a13(_0x4946cb,_0x59d97f){const _0x3090e7=_0x3090();return _0x4a13=function(_0x4a1318,_0x5969f2){_0x4a1318=_0x4a1318-0xcc;let _0x378786=_0x3090e7[_0x4a1318];return _0x378786;},_0x4a13(_0x4946cb,_0x59d97f);}export class AnnotationCounterButtonView extends _0x14dc2a{[_0x2a0dcd(0xde)];constructor(_0x38760b){const _0x24ac72=_0x2a0dcd;super(_0x38760b);const _0x3a2e1f=this[_0x24ac72(0xd0)];this[_0x24ac72(0xd6)](_0x24ac72(0xd9),!0x1),this[_0x24ac72(0xd6)](_0x24ac72(0xe3),0x0),this[_0x24ac72(0xdb)](_0x24ac72(0xe2))['to'](this,_0x24ac72(0xd9),this,_0x24ac72(0xe3),(_0x1187ef,_0x370c1b)=>_0x1187ef?_0x24ac72(0xd7):_0x370c1b[_0x24ac72(0xe5)]()),this[_0x24ac72(0xd6)](_0x24ac72(0xe6),''),this[_0x24ac72(0xe1)]=_0x49ad21,this[_0x24ac72(0xe0)]({'attributes':{'class':[_0x24ac72(0xcd)]}}),this[_0x24ac72(0xde)]=new _0x5223c6(),this[_0x24ac72(0xde)][_0x24ac72(0xd1)]({'tag':_0x24ac72(0xce),'attributes':{'class':[_0x24ac72(0xe7),_0x3a2e1f['to'](_0x24ac72(0xe6),_0x48ea9e=>_0x24ac72(0xcc)+_0x48ea9e),_0x3a2e1f['if'](_0x24ac72(0xd9),_0x24ac72(0xe8))]},'children':[{'text':_0x3a2e1f['to'](_0x24ac72(0xe2))}]}),this[_0x24ac72(0xd2)][_0x24ac72(0xd5)](this[_0x24ac72(0xde)]);}}function _0x3090(){const _0x455031=['toString','annotationType','ck-annotation-counter__badge','ck-annotation-counter__badge--edit-mode','7602470ebUhLi','ck-annotation-counter__badge--','ck-annotation-counter','span','201797SpPYMK','bindTemplate','setTemplate','children','2299590zxeiLD','9uAfZPb','add','set','...','3831192RSdQcr','isDirty','1351vXRnXk','bind','4yEgxPO','856978sbdbZf','counterView','23910XQDpfm','extendTemplate','icon','_badge','number','2241865TAvytr'];_0x3090=function(){return _0x455031;};return _0x3090();}
|
|
@@ -15,7 +15,7 @@ import '../../../theme/annotation.css';
|
|
|
15
15
|
* It introduces functionalities that make the given view ready to be used as an annotation, such as focus tracking, height resizing,
|
|
16
16
|
* and other observable properties that help share current annotation state across different UIs.
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export declare class AnnotationView extends View implements FocusableView {
|
|
19
19
|
/**
|
|
20
20
|
* Tracks focus on the annotation view.
|
|
21
21
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x532431=_0xb386;(function(_0x35695b,_0x28ead1){const _0x562c95=_0xb386,_0x4fbe0a=_0x35695b();while(!![]){try{const _0x521532=parseInt(_0x562c95(0x18c))/0x1+-parseInt(_0x562c95(0x178))/0x2*(-parseInt(_0x562c95(0x197))/0x3)+-parseInt(_0x562c95(0x184))/0x4*(-parseInt(_0x562c95(0x191))/0x5)+parseInt(_0x562c95(0x183))/0x6+parseInt(_0x562c95(0x186))/0x7*(-parseInt(_0x562c95(0x192))/0x8)+parseInt(_0x562c95(0x172))/0x9+-parseInt(_0x562c95(0x17e))/0xa;if(_0x521532===_0x28ead1)break;else _0x4fbe0a['push'](_0x4fbe0a['shift']());}catch(_0x2a046a){_0x4fbe0a['push'](_0x4fbe0a['shift']());}}}(_0x3261,0xe8776));import{View as _0x42f8e6}from'ckeditor5/src/ui.js';import{FocusTracker as _0x374425,KeystrokeHandler as _0x5d1cfc,uid as _0x70b943}from'ckeditor5/src/utils.js';function _0xb386(_0x4f684b,_0x12925e){const _0x326147=_0x3261();return _0xb386=function(_0xb386f0,_0x331d54){_0xb386f0=_0xb386f0-0x16f;let _0x352ecc=_0x326147[_0xb386f0];return _0x352ecc;},_0xb386(_0x4f684b,_0x12925e);}function _0x3261(){const _0x4bd2e7=['8463528DntEGO','attach','focusTracker','detach','element','mainView','5102mHGEUJ','delegate','add','length','destroy','fire','35487670TDwLCM','focus','keystrokes','first','listenTo','5095356LAEaxY','101904aHOpKk','arrowdown','7UIYSBA','set','ck-rounded-corners','_updateHeight','height','div','1374485PGMIkx','Esc','targetRect','clear','clientHeight','45TJctWL','4465928kKDfKY','bindTemplate','content','isActive','type','1959EWGslm','ck-annotation-wrapper--active','createCollection','arrowup','isDirty','presentation','ck-annotation-wrapper','render','_mutationObserver','setTemplate'];_0x3261=function(){return _0x4bd2e7;};return _0x3261();}import{createMutationObserver as _0xc693b0}from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export class AnnotationView extends _0x42f8e6{[_0x532431(0x174)];['id'];[_0x532431(0x180)];[_0x532431(0x194)];[_0x532431(0x177)];[_0x532431(0x170)];constructor(_0xbace4,_0x15bb01){const _0x19c8aa=_0x532431;super(_0xbace4),this['id']=_0x70b943(),this[_0x19c8aa(0x174)]=new _0x374425(),this[_0x19c8aa(0x180)]=new _0x5d1cfc(),this[_0x19c8aa(0x180)][_0x19c8aa(0x187)](_0x19c8aa(0x18d),(_0x1ee972,_0x18ac88)=>this[_0x19c8aa(0x17d)](_0x19c8aa(0x18d),_0x18ac88)),this[_0x19c8aa(0x187)](_0x19c8aa(0x18e),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x19c8aa(0x187)](_0x19c8aa(0x18a),0x0),this[_0x19c8aa(0x187)](_0x19c8aa(0x195),!0x1),this[_0x19c8aa(0x187)](_0x19c8aa(0x19b),!0x1),this[_0x19c8aa(0x187)](_0x19c8aa(0x17b),0x0),this[_0x19c8aa(0x187)](_0x19c8aa(0x196),''),this[_0x19c8aa(0x170)]=_0xc693b0(()=>this[_0x19c8aa(0x189)]()),this[_0x19c8aa(0x194)]=this[_0x19c8aa(0x199)](),this[_0x19c8aa(0x194)][_0x19c8aa(0x179)](_0x19c8aa(0x19a),_0x19c8aa(0x185))['to'](this),this[_0x19c8aa(0x194)][_0x19c8aa(0x17a)](_0x15bb01),this[_0x19c8aa(0x177)]=_0x15bb01;const _0x3016df=this[_0x19c8aa(0x193)];this[_0x19c8aa(0x171)]({'tag':_0x19c8aa(0x18b),'attributes':{'class':['ck',_0x19c8aa(0x19d),_0x19c8aa(0x188),_0x3016df['if'](_0x19c8aa(0x195),_0x19c8aa(0x198))],'role':_0x19c8aa(0x19c)},'children':this[_0x19c8aa(0x194)]});}[_0x532431(0x16f)](){const _0x35ff57=_0x532431;super[_0x35ff57(0x16f)](),this[_0x35ff57(0x174)][_0x35ff57(0x17a)](this[_0x35ff57(0x176)]),this[_0x35ff57(0x180)][_0x35ff57(0x182)](this[_0x35ff57(0x176)]),this[_0x35ff57(0x170)][_0x35ff57(0x173)](this[_0x35ff57(0x176)]);}[_0x532431(0x17c)](){const _0x5af696=_0x532431;this[_0x5af696(0x194)][_0x5af696(0x18f)](),this[_0x5af696(0x180)][_0x5af696(0x17c)](),this[_0x5af696(0x174)][_0x5af696(0x17c)](),this[_0x5af696(0x170)][_0x5af696(0x175)](),super[_0x5af696(0x17c)]();}[_0x532431(0x17f)](){const _0x3b19b1=_0x532431;this[_0x3b19b1(0x194)][_0x3b19b1(0x181)]&&this[_0x3b19b1(0x194)][_0x3b19b1(0x181)][_0x3b19b1(0x17f)]();}[_0x532431(0x189)](){const _0xc57b2=_0x532431,_0x676b99=this[_0xc57b2(0x176)][_0xc57b2(0x190)];_0x676b99&&(this[_0xc57b2(0x18a)]=_0x676b99);}}
|
|
@@ -11,7 +11,7 @@ import { type Locale } from 'ckeditor5/src/utils.js';
|
|
|
11
11
|
/**
|
|
12
12
|
* A wrapper view that wraps given {@link module:ui/view~View} to display it as a {@link module:comments/annotations/sidebar~Sidebar} item.
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export declare class AnnotationsSidebarItemView extends View implements FocusableView {
|
|
15
15
|
element: HTMLElement;
|
|
16
16
|
/**
|
|
17
17
|
* The item top offset.
|
|
@@ -20,4 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bbe32=_0x4cec;function _0x33fe(){const _0x339962=['bindTemplate','top','bind','set','arrowdown','destroy','ck-sidebar-item--no-animation','render','focus','180ehFvWv','delegate','element','first','presentation','updateHeight','3966108WtagXd','setTemplate','153966YblGHm','120rMswDw','562915yZmiwA','div','content','ck-sidebar-item','564028piTuvO','330165ftoCxg','bottom','detach','_mutationObserver','attach','isAnimationDisabled','725730fUafnW','clientHeight','height','_targetTop','2581808tTTEXk','createCollection','clear','7wlifjR','arrowup'];_0x33fe=function(){return _0x339962;};return _0x33fe();}(function(_0xfa92e2,_0x73ca50){const _0x2d7b86=_0x4cec,_0x1ef4b1=_0xfa92e2();while(!![]){try{const _0x187bc3=-parseInt(_0x2d7b86(0x202))/0x1+parseInt(_0x2d7b86(0x1df))/0x2+parseInt(_0x2d7b86(0x1e6))/0x3+-parseInt(_0x2d7b86(0x1fe))/0x4+parseInt(_0x2d7b86(0x201))/0x5*(parseInt(_0x2d7b86(0x200))/0x6)+parseInt(_0x2d7b86(0x1ed))/0x7*(parseInt(_0x2d7b86(0x1ea))/0x8)+parseInt(_0x2d7b86(0x1e0))/0x9*(parseInt(_0x2d7b86(0x1f8))/0xa);if(_0x187bc3===_0x73ca50)break;else _0x1ef4b1['push'](_0x1ef4b1['shift']());}catch(_0x3ba890){_0x1ef4b1['push'](_0x1ef4b1['shift']());}}}(_0x33fe,0x8ac52));import{View as _0x4bbf77}from'ckeditor5/src/ui.js';function _0x4cec(_0x196343,_0x25754d){const _0x33fe1f=_0x33fe();return _0x4cec=function(_0x4cec62,_0x1370be){_0x4cec62=_0x4cec62-0x1de;let _0x480514=_0x33fe1f[_0x4cec62];return _0x480514;},_0x4cec(_0x196343,_0x25754d);}import{toUnit as _0x200dac}from'ckeditor5/src/utils.js';import{createMutationObserver as _0x883808}from'../../utils/createmutationobserver.js';const Ot=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x200dac('px');export class AnnotationsSidebarItemView extends _0x4bbf77{[_0x4bbe32(0x204)];[_0x4bbe32(0x1e9)];[_0x4bbe32(0x1e3)];constructor(_0x3d0146){const _0x7ebcd0=_0x4bbe32;super(_0x3d0146),this[_0x7ebcd0(0x1f2)](_0x7ebcd0(0x1f0),0x0),this[_0x7ebcd0(0x1f2)](_0x7ebcd0(0x1e8),0x0),this[_0x7ebcd0(0x1f1)](_0x7ebcd0(0x1e1))['to'](this,_0x7ebcd0(0x1f0),this,_0x7ebcd0(0x1e8),(_0x176a38,_0x13fdf1)=>_0x176a38+_0x13fdf1),this[_0x7ebcd0(0x1f2)](_0x7ebcd0(0x1e5),!0x1),this[_0x7ebcd0(0x1e3)]=_0x883808(()=>this[_0x7ebcd0(0x1fd)]()),this[_0x7ebcd0(0x1e9)]=null,this[_0x7ebcd0(0x204)]=this[_0x7ebcd0(0x1eb)](),this[_0x7ebcd0(0x204)][_0x7ebcd0(0x1f9)](_0x7ebcd0(0x1ee),_0x7ebcd0(0x1f3))['to'](this);const _0x3f4585=this[_0x7ebcd0(0x1ef)];this[_0x7ebcd0(0x1ff)]({'tag':_0x7ebcd0(0x203),'attributes':{'class':[_0x7ebcd0(0x1de),_0x3f4585['to'](_0x7ebcd0(0x1e5),_0x26da3e=>_0x26da3e?_0x7ebcd0(0x1f5):'')],'style':{'top':_0x3f4585['to'](_0x7ebcd0(0x1f0),_0x294243=>Ot(_0x294243))},'role':_0x7ebcd0(0x1fc)},'children':this[_0x7ebcd0(0x204)]});}[_0x4bbe32(0x1f6)](){const _0x2894cc=_0x4bbe32;super[_0x2894cc(0x1f6)](),this[_0x2894cc(0x1e3)][_0x2894cc(0x1e4)](this[_0x2894cc(0x1fa)]);}[_0x4bbe32(0x1f7)](){const _0x15a541=_0x4bbe32;this[_0x15a541(0x204)][_0x15a541(0x1fb)]&&this[_0x15a541(0x204)][_0x15a541(0x1fb)][_0x15a541(0x1f7)]();}[_0x4bbe32(0x1fd)](){const _0x57a6d7=_0x4bbe32,_0xce8dce=this[_0x57a6d7(0x1fa)][_0x57a6d7(0x1e7)];_0xce8dce&&(this[_0x57a6d7(0x1e8)]=_0xce8dce);}[_0x4bbe32(0x1f4)](){const _0x24a7d4=_0x4bbe32;this[_0x24a7d4(0x204)][_0x24a7d4(0x1ec)](),this[_0x24a7d4(0x1e3)][_0x24a7d4(0x1e2)](),super[_0x24a7d4(0x1f4)]();}}
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { View, FocusCycler, type ViewCollection, type ViewWithFocusCycler } from 'ckeditor5/src/ui.js';
|
|
10
10
|
import { FocusTracker, type Locale } from 'ckeditor5/src/utils.js';
|
|
11
|
-
import type
|
|
11
|
+
import { type AnnotationsSidebarItemView } from './sidebaritemview.js';
|
|
12
12
|
import '../../../theme/sidebar.css';
|
|
13
13
|
/**
|
|
14
14
|
* The sidebar view class that displays the collection of sidebar item views.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export declare class AnnotationsSidebarView extends View implements ViewWithFocusCycler {
|
|
17
17
|
/**
|
|
18
18
|
* @observable
|
|
19
19
|
*/
|
|
@@ -25,11 +25,11 @@ export default class SidebarView extends View implements ViewWithFocusCycler {
|
|
|
25
25
|
/**
|
|
26
26
|
* A collection of sidebar item views.
|
|
27
27
|
*/
|
|
28
|
-
list: ViewCollection<
|
|
28
|
+
list: ViewCollection<AnnotationsSidebarItemView>;
|
|
29
29
|
/**
|
|
30
30
|
* A collection of focusable views in the sidebar.
|
|
31
31
|
*/
|
|
32
|
-
focusables: ViewCollection<
|
|
32
|
+
focusables: ViewCollection<AnnotationsSidebarItemView>;
|
|
33
33
|
/**
|
|
34
34
|
* Tracks information about DOM focus among sidebar item views.
|
|
35
35
|
*/
|
|
@@ -20,4 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e0d1f=_0x501f;(function(_0x2714a8,_0x2b340b){const _0x24bd9b=_0x501f,_0x18ebd0=_0x2714a8();while(!![]){try{const _0x29a80c=parseInt(_0x24bd9b(0x123))/0x1*(-parseInt(_0x24bd9b(0x132))/0x2)+parseInt(_0x24bd9b(0x11b))/0x3*(-parseInt(_0x24bd9b(0x11e))/0x4)+-parseInt(_0x24bd9b(0x10d))/0x5+parseInt(_0x24bd9b(0x124))/0x6*(-parseInt(_0x24bd9b(0x114))/0x7)+-parseInt(_0x24bd9b(0x12c))/0x8*(-parseInt(_0x24bd9b(0x119))/0x9)+-parseInt(_0x24bd9b(0x108))/0xa*(parseInt(_0x24bd9b(0x113))/0xb)+parseInt(_0x24bd9b(0x10f))/0xc;if(_0x29a80c===_0x2b340b)break;else _0x18ebd0['push'](_0x18ebd0['shift']());}catch(_0x3baf94){_0x18ebd0['push'](_0x18ebd0['shift']());}}}(_0x2081,0x231c5));import{View as _0x362e51,FocusCycler as _0x5d0071}from'ckeditor5/src/ui.js';import{FocusTracker as _0x408cd3,toUnit as _0x801e0f}from'ckeditor5/src/utils.js';import{getTranslation as _0x54d69c}from'../../utils/common-translations.js';import'../../../theme/sidebar.css';function _0x501f(_0x49fd86,_0x34ef88){const _0x208116=_0x2081();return _0x501f=function(_0x501f5e,_0x4d0e4d){_0x501f5e=_0x501f5e-0x108;let _0x5d6ed0=_0x208116[_0x501f5e];return _0x5d6ed0;},_0x501f(_0x49fd86,_0x34ef88);}function _0x2081(){const _0xeb04=['focusCycler','3860OybzZp','focus','Annotations\x20list','focusFirst','setTemplate','146295iUtMzI','change','8462220IywsxG','listenTo','ck-sidebar','minHeight','2266CRPKbI','1872136pSeLHp','forEach','_setupKeyboardNavigation','uiLanguageDirection','_updateItemPositionInFocusables','23967fpIVsO','focusables','3bJzyFe','focusPrevious','getIndex','883444LkNyjj','Annotations\x20sidebar','createCollection','removed','change:top','217273Jbyvpc','6RQgPOH','class','number','remove','top','length','application','add','760QrUmQE','arrowup','added','focusTracker','source','arrowdown','2noHqXu','bindTemplate','element','render','list','focusNext','delegate','div','set','ck-reset'];_0x2081=function(){return _0xeb04;};return _0x2081();}const Ot=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x801e0f('px');export class AnnotationsSidebarView extends _0x362e51{[_0x1e0d1f(0x136)];[_0x1e0d1f(0x11a)];[_0x1e0d1f(0x12f)];[_0x1e0d1f(0x13c)];constructor(_0x5928ff){const _0x4c8118=_0x1e0d1f;super(_0x5928ff);const _0x17a65a=this[_0x4c8118(0x133)];this[_0x4c8118(0x13a)](_0x4c8118(0x112),0x0),this[_0x4c8118(0x13a)](_0x4c8118(0x125),''),this[_0x4c8118(0x136)]=this[_0x4c8118(0x120)](),this[_0x4c8118(0x11a)]=this[_0x4c8118(0x120)](),this[_0x4c8118(0x136)][_0x4c8118(0x138)](_0x4c8118(0x12d),_0x4c8118(0x131))['to'](this),this[_0x4c8118(0x12f)]=new _0x408cd3(),this[_0x4c8118(0x13c)]=new _0x5d0071({'focusables':this[_0x4c8118(0x11a)],'focusTracker':this[_0x4c8118(0x12f)]}),this[_0x4c8118(0x10c)]({'tag':_0x4c8118(0x139),'attributes':{'class':['ck',_0x4c8118(0x111),_0x4c8118(0x13b),_0x17a65a['to'](_0x4c8118(0x125))],'style':{'minHeight':_0x17a65a['to'](_0x4c8118(0x112),_0xc87e33=>_0x4c8118(0x126)==typeof _0xc87e33?Ot(_0xc87e33+0xa):null)},'dir':_0x5928ff[_0x4c8118(0x117)],'role':_0x4c8118(0x12a),'aria-label':_0x54d69c(_0x5928ff,_0x4c8118(0x11f)),'tabindex':0x0},'children':[{'tag':_0x4c8118(0x139),'attributes':{'role':_0x4c8118(0x136),'aria-label':_0x54d69c(_0x5928ff,_0x4c8118(0x10a))},'children':this[_0x4c8118(0x136)]}]});}[_0x1e0d1f(0x135)](){const _0x5b510f=_0x1e0d1f;super[_0x5b510f(0x135)](),this[_0x5b510f(0x116)]();}[_0x1e0d1f(0x109)](){const _0x2a759f=_0x1e0d1f;this[_0x2a759f(0x13c)][_0x2a759f(0x10b)]();}[_0x1e0d1f(0x116)](){const _0x29db35=_0x1e0d1f;this[_0x29db35(0x136)][_0x29db35(0x138)](_0x29db35(0x122))['to'](this),this['on'](_0x29db35(0x122),_0x597906=>{const _0x2a494e=_0x29db35;this[_0x2a494e(0x118)](_0x597906[_0x2a494e(0x130)]);}),this[_0x29db35(0x136)][_0x29db35(0x115)](_0x502ed1=>{const _0x47d0f5=_0x29db35;this[_0x47d0f5(0x12f)][_0x47d0f5(0x12b)](_0x502ed1[_0x47d0f5(0x134)]),this[_0x47d0f5(0x118)](_0x502ed1);}),this[_0x29db35(0x136)]['on'](_0x29db35(0x10e),(_0x5e2f8d,_0x23ede1)=>{const _0x319cae=_0x29db35;for(const _0x29e844 of _0x23ede1[_0x319cae(0x121)])this[_0x319cae(0x12f)][_0x319cae(0x127)](_0x29e844[_0x319cae(0x134)]),this[_0x319cae(0x11a)][_0x319cae(0x127)](_0x29e844);for(const _0x40de4f of _0x23ede1[_0x319cae(0x12e)])this[_0x319cae(0x12f)][_0x319cae(0x12b)](_0x40de4f[_0x319cae(0x134)]),this[_0x319cae(0x118)](_0x40de4f);}),this['on'](_0x29db35(0x12d),()=>{const _0x4d7545=_0x29db35;this[_0x4d7545(0x13c)][_0x4d7545(0x11c)]();}),this['on'](_0x29db35(0x131),()=>{const _0x4e8966=_0x29db35;this[_0x4e8966(0x13c)][_0x4e8966(0x137)]();}),this[_0x29db35(0x110)](this[_0x29db35(0x134)],_0x29db35(0x109),()=>{const _0x4b287c=_0x29db35;this[_0x4b287c(0x109)]();});}[_0x1e0d1f(0x118)](_0x2b8871){const _0x23d9f3=_0x1e0d1f,_0x5e6be3=this[_0x23d9f3(0x11a)][_0x23d9f3(0x11d)](_0x2b8871);let _0x16c331,_0x5a31b2;for(const _0x4a203d of this[_0x23d9f3(0x11a)])if(_0x2b8871[_0x23d9f3(0x128)]<_0x4a203d[_0x23d9f3(0x128)]){_0x16c331=_0x4a203d;break;}if(_0x5a31b2=_0x16c331?this[_0x23d9f3(0x11a)][_0x23d9f3(0x11d)](_0x16c331):this[_0x23d9f3(0x11a)][_0x23d9f3(0x129)],-0x1!==_0x5e6be3){if(_0x5e6be3===_0x5a31b2-0x1)return;this[_0x23d9f3(0x11a)][_0x23d9f3(0x127)](_0x2b8871),_0x5a31b2=_0x16c331?this[_0x23d9f3(0x11a)][_0x23d9f3(0x11d)](_0x16c331):this[_0x23d9f3(0x11a)][_0x23d9f3(0x129)];}this[_0x23d9f3(0x11a)][_0x23d9f3(0x12b)](_0x2b8871,_0x5a31b2);}}
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
-
import AnnotationsUIs,
|
|
11
|
-
import Sidebar from './sidebar.js';
|
|
12
|
-
import type Annotation from './annotation.js';
|
|
13
|
-
import type {
|
|
10
|
+
import { AnnotationsUIs, type AnnotationsUI } from './annotationsuis.js';
|
|
11
|
+
import { Sidebar } from './sidebar.js';
|
|
12
|
+
import { type Annotation } from './annotation.js';
|
|
13
|
+
import type { AnnotationCollection } from './annotationcollection.js';
|
|
14
14
|
/**
|
|
15
15
|
* The wide sidebar UI for displaying annotations.
|
|
16
16
|
*
|
|
@@ -26,7 +26,7 @@ import type { default as AnnotationCollection } from './annotationcollection.js'
|
|
|
26
26
|
*
|
|
27
27
|
* See {@link module:comments/annotations/annotationsuis~AnnotationsUIs}.
|
|
28
28
|
*/
|
|
29
|
-
export
|
|
29
|
+
export declare class WideSidebar extends ContextPlugin implements AnnotationsUI<ContextPlugin> {
|
|
30
30
|
/**
|
|
31
31
|
* An active annotation tracked by this UI.
|
|
32
32
|
*
|