diff --git a/frontend/webpack-stats.pro.json b/frontend/webpack-stats.pro.json index a5b46a0e99e..8bbd93cd765 100644 --- a/frontend/webpack-stats.pro.json +++ b/frontend/webpack-stats.pro.json @@ -1,807 +1,551 @@ { "status": "done", "assets": { - "static/css/app.ce867cc5.css": { - "name": "static/css/app.ce867cc5.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/app.ce867cc5.css" + "static/css/app.bb42fc17.css": { + "name": "static/css/app.bb42fc17.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/app.bb42fc17.css" }, - "static/css/app.ce867cc5.css.map": { - "name": "static/css/app.ce867cc5.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/app.ce867cc5.css.map" + "static/css/commons.1cf5fb5e.css": { + "name": "static/css/commons.1cf5fb5e.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/commons.1cf5fb5e.css" }, - "static/css/commons.2c40b537.css": { - "name": "static/css/commons.2c40b537.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/commons.2c40b537.css" + "static/css/draft.22c06bac.css": { + "name": "static/css/draft.22c06bac.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/draft.22c06bac.css" }, - "static/css/commons.2c40b537.css.map": { - "name": "static/css/commons.2c40b537.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/commons.2c40b537.css.map" + "static/css/fileHistory.12927620.css": { + "name": "static/css/fileHistory.12927620.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/fileHistory.12927620.css" }, - "static/css/draft.dfd8ec8b.css": { - "name": "static/css/draft.dfd8ec8b.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/draft.dfd8ec8b.css" + "static/css/fileHistoryOld.6d426e0b.css": { + "name": "static/css/fileHistoryOld.6d426e0b.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/fileHistoryOld.6d426e0b.css" }, - "static/css/draft.dfd8ec8b.css.map": { - "name": "static/css/draft.dfd8ec8b.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/draft.dfd8ec8b.css.map" + "static/css/historyTrashFileView.14c233ee.css": { + "name": "static/css/historyTrashFileView.14c233ee.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/historyTrashFileView.14c233ee.css" }, - "static/css/fileHistory.c207f9b1.css": { - "name": "static/css/fileHistory.c207f9b1.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/fileHistory.c207f9b1.css" + "static/css/markdownEditor.3110eb73.css": { + "name": "static/css/markdownEditor.3110eb73.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/markdownEditor.3110eb73.css" }, - "static/css/fileHistory.c207f9b1.css.map": { - "name": "static/css/fileHistory.c207f9b1.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/fileHistory.c207f9b1.css.map" + "static/css/orgAdmin.1ccd26d7.css": { + "name": "static/css/orgAdmin.1ccd26d7.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/orgAdmin.1ccd26d7.css" }, - "static/css/fileHistoryOld.34922be6.css": { - "name": "static/css/fileHistoryOld.34922be6.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/fileHistoryOld.34922be6.css" + "static/css/repoFolderTrash.69b56f7c.css": { + "name": "static/css/repoFolderTrash.69b56f7c.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/repoFolderTrash.69b56f7c.css" }, - "static/css/fileHistoryOld.34922be6.css.map": { - "name": "static/css/fileHistoryOld.34922be6.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/fileHistoryOld.34922be6.css.map" + "static/css/repoHistory.d2c893af.css": { + "name": "static/css/repoHistory.d2c893af.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/repoHistory.d2c893af.css" }, - "static/css/historyTrashFileView.d2070387.css": { - "name": "static/css/historyTrashFileView.d2070387.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/historyTrashFileView.d2070387.css" + "static/css/repoSnapshot.0ee3fb82.css": { + "name": "static/css/repoSnapshot.0ee3fb82.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/repoSnapshot.0ee3fb82.css" }, - "static/css/historyTrashFileView.d2070387.css.map": { - "name": "static/css/historyTrashFileView.d2070387.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/historyTrashFileView.d2070387.css.map" + "static/css/sdocFileHistory.e22b354f.css": { + "name": "static/css/sdocFileHistory.e22b354f.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/sdocFileHistory.e22b354f.css" }, - "static/css/markdownEditor.c66eb93d.css": { - "name": "static/css/markdownEditor.c66eb93d.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/markdownEditor.c66eb93d.css" + "static/css/settings.4e24d65d.css": { + "name": "static/css/settings.4e24d65d.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/settings.4e24d65d.css" }, - "static/css/markdownEditor.c66eb93d.css.map": { - "name": "static/css/markdownEditor.c66eb93d.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/markdownEditor.c66eb93d.css.map" + "static/css/sharedDirView.0167fb72.css": { + "name": "static/css/sharedDirView.0167fb72.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/sharedDirView.0167fb72.css" }, - "static/css/orgAdmin.bb6a05c5.css": { - "name": "static/css/orgAdmin.bb6a05c5.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/orgAdmin.bb6a05c5.css" + "static/css/sharedFileViewSpreadsheet.aea7959b.css": { + "name": "static/css/sharedFileViewSpreadsheet.aea7959b.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/sharedFileViewSpreadsheet.aea7959b.css" }, - "static/css/orgAdmin.bb6a05c5.css.map": { - "name": "static/css/orgAdmin.bb6a05c5.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/orgAdmin.bb6a05c5.css.map" + "static/css/sysAdmin.defb2342.css": { + "name": "static/css/sysAdmin.defb2342.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/sysAdmin.defb2342.css" }, - "static/css/repoFolderTrash.d4170c41.css": { - "name": "static/css/repoFolderTrash.d4170c41.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/repoFolderTrash.d4170c41.css" + "static/css/TCAccept.0abfc181.css": { + "name": "static/css/TCAccept.0abfc181.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/TCAccept.0abfc181.css" }, - "static/css/repoFolderTrash.d4170c41.css.map": { - "name": "static/css/repoFolderTrash.d4170c41.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/repoFolderTrash.d4170c41.css.map" + "static/css/TCView.0abfc181.css": { + "name": "static/css/TCView.0abfc181.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/TCView.0abfc181.css" }, - "static/css/repoHistory.f0ad8622.css": { - "name": "static/css/repoHistory.f0ad8622.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/repoHistory.f0ad8622.css" + "static/css/uploadLink.e703d3dd.css": { + "name": "static/css/uploadLink.e703d3dd.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/uploadLink.e703d3dd.css" }, - "static/css/repoHistory.f0ad8622.css.map": { - "name": "static/css/repoHistory.f0ad8622.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/repoHistory.f0ad8622.css.map" + "static/css/viewFileSpreadsheet.aea7959b.css": { + "name": "static/css/viewFileSpreadsheet.aea7959b.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/viewFileSpreadsheet.aea7959b.css" }, - "static/css/repoSnapshot.c6bbee77.css": { - "name": "static/css/repoSnapshot.c6bbee77.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/repoSnapshot.c6bbee77.css" + "static/css/wiki.0ae434f3.css": { + "name": "static/css/wiki.0ae434f3.css", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/css/wiki.0ae434f3.css" }, - "static/css/repoSnapshot.c6bbee77.css.map": { - "name": "static/css/repoSnapshot.c6bbee77.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/repoSnapshot.c6bbee77.css.map" + "static/js/334.414e1376.chunk.js": { + "name": "static/js/334.414e1376.chunk.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/334.414e1376.chunk.js" }, - "static/css/sdocFileHistory.f936c666.css": { - "name": "static/css/sdocFileHistory.f936c666.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/sdocFileHistory.f936c666.css" + "static/js/347.5f2fe80e.chunk.js": { + "name": "static/js/347.5f2fe80e.chunk.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/347.5f2fe80e.chunk.js" }, - "static/css/sdocFileHistory.f936c666.css.map": { - "name": "static/css/sdocFileHistory.f936c666.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/sdocFileHistory.f936c666.css.map" + "static/js/349.df816323.chunk.js": { + "name": "static/js/349.df816323.chunk.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/349.df816323.chunk.js" }, - "static/css/settings.391717d2.css": { - "name": "static/css/settings.391717d2.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/settings.391717d2.css" + "static/js/685.7291a8cc.chunk.js": { + "name": "static/js/685.7291a8cc.chunk.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/685.7291a8cc.chunk.js" }, - "static/css/settings.391717d2.css.map": { - "name": "static/css/settings.391717d2.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/settings.391717d2.css.map" + "static/js/695.4f440918.chunk.js": { + "name": "static/js/695.4f440918.chunk.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/695.4f440918.chunk.js" }, - "static/css/sharedDirView.945789e9.css": { - "name": "static/css/sharedDirView.945789e9.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/sharedDirView.945789e9.css" + "static/js/75.a877b6a8.chunk.js": { + "name": "static/js/75.a877b6a8.chunk.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/75.a877b6a8.chunk.js" }, - "static/css/sharedDirView.945789e9.css.map": { - "name": "static/css/sharedDirView.945789e9.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/sharedDirView.945789e9.css.map" + "static/js/834.cf890565.chunk.js": { + "name": "static/js/834.cf890565.chunk.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/834.cf890565.chunk.js" }, - "static/css/sharedFileViewSpreadsheet.ff1ddac7.css": { - "name": "static/css/sharedFileViewSpreadsheet.ff1ddac7.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/sharedFileViewSpreadsheet.ff1ddac7.css" + "static/js/862.0ff9f3ae.chunk.js": { + "name": "static/js/862.0ff9f3ae.chunk.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/862.0ff9f3ae.chunk.js" }, - "static/css/sharedFileViewSpreadsheet.ff1ddac7.css.map": { - "name": "static/css/sharedFileViewSpreadsheet.ff1ddac7.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/sharedFileViewSpreadsheet.ff1ddac7.css.map" + "static/js/965.306351b3.chunk.js": { + "name": "static/js/965.306351b3.chunk.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/965.306351b3.chunk.js" }, - "static/css/sysAdmin.feb7b73d.css": { - "name": "static/css/sysAdmin.feb7b73d.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/sysAdmin.feb7b73d.css" + "static/js/app.c29a42f3.js": { + "name": "static/js/app.c29a42f3.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/app.c29a42f3.js" }, - "static/css/sysAdmin.feb7b73d.css.map": { - "name": "static/css/sysAdmin.feb7b73d.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/sysAdmin.feb7b73d.css.map" + "static/js/app.c29a42f3.js.LICENSE.txt": { + "name": "static/js/app.c29a42f3.js.LICENSE.txt", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/app.c29a42f3.js.LICENSE.txt" }, - "static/css/TCAccept.05d88392.css": { - "name": "static/css/TCAccept.05d88392.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/TCAccept.05d88392.css" + "static/js/commons.2fec6858.js": { + "name": "static/js/commons.2fec6858.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/commons.2fec6858.js" }, - "static/css/TCAccept.05d88392.css.map": { - "name": "static/css/TCAccept.05d88392.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/TCAccept.05d88392.css.map" + "static/js/commons.2fec6858.js.LICENSE.txt": { + "name": "static/js/commons.2fec6858.js.LICENSE.txt", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/commons.2fec6858.js.LICENSE.txt" }, - "static/css/TCView.05d88392.css": { - "name": "static/css/TCView.05d88392.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/TCView.05d88392.css" + "static/js/draft.4beb7a44.js": { + "name": "static/js/draft.4beb7a44.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/draft.4beb7a44.js" }, - "static/css/TCView.05d88392.css.map": { - "name": "static/css/TCView.05d88392.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/TCView.05d88392.css.map" + "static/js/fileHistory.1247980e.js": { + "name": "static/js/fileHistory.1247980e.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/fileHistory.1247980e.js" }, - "static/css/uploadLink.01103a58.css": { - "name": "static/css/uploadLink.01103a58.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/uploadLink.01103a58.css" + "static/js/fileHistoryOld.5e257b77.js": { + "name": "static/js/fileHistoryOld.5e257b77.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/fileHistoryOld.5e257b77.js" }, - "static/css/uploadLink.01103a58.css.map": { - "name": "static/css/uploadLink.01103a58.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/uploadLink.01103a58.css.map" + "static/js/fileView.701a6851.js": { + "name": "static/js/fileView.701a6851.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/fileView.701a6851.js" }, - "static/css/viewFileSpreadsheet.ff1ddac7.css": { - "name": "static/css/viewFileSpreadsheet.ff1ddac7.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/viewFileSpreadsheet.ff1ddac7.css" + "static/js/historyTrashFileView.00b6979f.js": { + "name": "static/js/historyTrashFileView.00b6979f.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/historyTrashFileView.00b6979f.js" }, - "static/css/viewFileSpreadsheet.ff1ddac7.css.map": { - "name": "static/css/viewFileSpreadsheet.ff1ddac7.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/viewFileSpreadsheet.ff1ddac7.css.map" + "static/js/markdownEditor.833c2a38.js": { + "name": "static/js/markdownEditor.833c2a38.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/markdownEditor.833c2a38.js" }, - "static/css/wiki.2d406fab.css": { - "name": "static/css/wiki.2d406fab.css", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/wiki.2d406fab.css" + "static/js/markdownEditor.833c2a38.js.LICENSE.txt": { + "name": "static/js/markdownEditor.833c2a38.js.LICENSE.txt", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/markdownEditor.833c2a38.js.LICENSE.txt" }, - "static/css/wiki.2d406fab.css.map": { - "name": "static/css/wiki.2d406fab.css.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/css/wiki.2d406fab.css.map" + "static/js/orgAdmin.aa24ddb3.js": { + "name": "static/js/orgAdmin.aa24ddb3.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/orgAdmin.aa24ddb3.js" }, - "static/js/305.d8dbbbbc.chunk.js": { - "name": "static/js/305.d8dbbbbc.chunk.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/305.d8dbbbbc.chunk.js" + "static/js/orgAdmin.aa24ddb3.js.LICENSE.txt": { + "name": "static/js/orgAdmin.aa24ddb3.js.LICENSE.txt", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/orgAdmin.aa24ddb3.js.LICENSE.txt" }, - "static/js/305.d8dbbbbc.chunk.js.map": { - "name": "static/js/305.d8dbbbbc.chunk.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/305.d8dbbbbc.chunk.js.map" + "static/js/repoFolderTrash.5ffaf574.js": { + "name": "static/js/repoFolderTrash.5ffaf574.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/repoFolderTrash.5ffaf574.js" }, - "static/js/311.e7e04ffb.chunk.js": { - "name": "static/js/311.e7e04ffb.chunk.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/311.e7e04ffb.chunk.js" + "static/js/repoHistory.10b3f218.js": { + "name": "static/js/repoHistory.10b3f218.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/repoHistory.10b3f218.js" }, - "static/js/311.e7e04ffb.chunk.js.map": { - "name": "static/js/311.e7e04ffb.chunk.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/311.e7e04ffb.chunk.js.map" + "static/js/repoSnapshot.226860eb.js": { + "name": "static/js/repoSnapshot.226860eb.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/repoSnapshot.226860eb.js" }, - "static/js/379.e48ee7a7.chunk.js": { - "name": "static/js/379.e48ee7a7.chunk.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/379.e48ee7a7.chunk.js" + "static/js/runtime.86db51cf.js": { + "name": "static/js/runtime.86db51cf.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/runtime.86db51cf.js" }, - "static/js/379.e48ee7a7.chunk.js.map": { - "name": "static/js/379.e48ee7a7.chunk.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/379.e48ee7a7.chunk.js.map" + "static/js/sdocFileHistory.d822bdda.js": { + "name": "static/js/sdocFileHistory.d822bdda.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/sdocFileHistory.d822bdda.js" }, - "static/js/482.40023cf1.chunk.js": { - "name": "static/js/482.40023cf1.chunk.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/482.40023cf1.chunk.js" + "static/js/sdocPublishedRevision.968030fc.js": { + "name": "static/js/sdocPublishedRevision.968030fc.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/sdocPublishedRevision.968030fc.js" }, - "static/js/482.40023cf1.chunk.js.map": { - "name": "static/js/482.40023cf1.chunk.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/482.40023cf1.chunk.js.map" + "static/js/search.202e11d3.js": { + "name": "static/js/search.202e11d3.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/search.202e11d3.js" }, - "static/js/54.f8d765ee.chunk.js": { - "name": "static/js/54.f8d765ee.chunk.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/54.f8d765ee.chunk.js" + "static/js/settings.64c844e3.js": { + "name": "static/js/settings.64c844e3.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/settings.64c844e3.js" }, - "static/js/54.f8d765ee.chunk.js.map": { - "name": "static/js/54.f8d765ee.chunk.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/54.f8d765ee.chunk.js.map" + "static/js/sharedDirView.97b2e01e.js": { + "name": "static/js/sharedDirView.97b2e01e.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/sharedDirView.97b2e01e.js" }, - "static/js/545.2cc3d80f.chunk.js": { - "name": "static/js/545.2cc3d80f.chunk.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/545.2cc3d80f.chunk.js" + "static/js/sharedFileViewAudio.2ec74d76.js": { + "name": "static/js/sharedFileViewAudio.2ec74d76.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/sharedFileViewAudio.2ec74d76.js" }, - "static/js/545.2cc3d80f.chunk.js.map": { - "name": "static/js/545.2cc3d80f.chunk.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/545.2cc3d80f.chunk.js.map" + "static/js/sharedFileViewDocument.35bac6cf.js": { + "name": "static/js/sharedFileViewDocument.35bac6cf.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/sharedFileViewDocument.35bac6cf.js" }, - "static/js/921.ba8481b9.chunk.js": { - "name": "static/js/921.ba8481b9.chunk.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/921.ba8481b9.chunk.js" + "static/js/sharedFileViewImage.bd650551.js": { + "name": "static/js/sharedFileViewImage.bd650551.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/sharedFileViewImage.bd650551.js" }, - "static/js/921.ba8481b9.chunk.js.map": { - "name": "static/js/921.ba8481b9.chunk.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/921.ba8481b9.chunk.js.map" + "static/js/sharedFileViewMarkdown.40aedf21.js": { + "name": "static/js/sharedFileViewMarkdown.40aedf21.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/sharedFileViewMarkdown.40aedf21.js" }, - "static/js/975.7f1d8705.chunk.js": { - "name": "static/js/975.7f1d8705.chunk.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/975.7f1d8705.chunk.js" + "static/js/sharedFileViewPDF.76b58320.js": { + "name": "static/js/sharedFileViewPDF.76b58320.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/sharedFileViewPDF.76b58320.js" }, - "static/js/975.7f1d8705.chunk.js.map": { - "name": "static/js/975.7f1d8705.chunk.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/975.7f1d8705.chunk.js.map" + "static/js/sharedFileViewSdoc.0bda18ae.js": { + "name": "static/js/sharedFileViewSdoc.0bda18ae.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/sharedFileViewSdoc.0bda18ae.js" }, - "static/js/997.4e7b85c4.chunk.js": { - "name": "static/js/997.4e7b85c4.chunk.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/997.4e7b85c4.chunk.js" + "static/js/sharedFileViewSpreadsheet.753ec6c4.js": { + "name": "static/js/sharedFileViewSpreadsheet.753ec6c4.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/sharedFileViewSpreadsheet.753ec6c4.js" }, - "static/js/997.4e7b85c4.chunk.js.map": { - "name": "static/js/997.4e7b85c4.chunk.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/997.4e7b85c4.chunk.js.map" + "static/js/sharedFileViewSVG.d8614899.js": { + "name": "static/js/sharedFileViewSVG.d8614899.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/sharedFileViewSVG.d8614899.js" }, - "static/js/app.800f919a.js": { - "name": "static/js/app.800f919a.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/app.800f919a.js" + "static/js/sharedFileViewText.6c7f6d25.js": { + "name": "static/js/sharedFileViewText.6c7f6d25.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/sharedFileViewText.6c7f6d25.js" }, - "static/js/app.800f919a.js.LICENSE.txt": { - "name": "static/js/app.800f919a.js.LICENSE.txt", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/app.800f919a.js.LICENSE.txt" + "static/js/sharedFileViewUnknown.67d00bc7.js": { + "name": "static/js/sharedFileViewUnknown.67d00bc7.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/sharedFileViewUnknown.67d00bc7.js" }, - "static/js/app.800f919a.js.map": { - "name": "static/js/app.800f919a.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/app.800f919a.js.map" + "static/js/sharedFileViewVideo.63110405.js": { + "name": "static/js/sharedFileViewVideo.63110405.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/sharedFileViewVideo.63110405.js" }, - "static/js/commons.84df398e.js": { - "name": "static/js/commons.84df398e.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/commons.84df398e.js" + "static/js/sysAdmin.45ed20be.js": { + "name": "static/js/sysAdmin.45ed20be.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/sysAdmin.45ed20be.js" }, - "static/js/commons.84df398e.js.LICENSE.txt": { - "name": "static/js/commons.84df398e.js.LICENSE.txt", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/commons.84df398e.js.LICENSE.txt" + "static/js/sysAdmin.45ed20be.js.LICENSE.txt": { + "name": "static/js/sysAdmin.45ed20be.js.LICENSE.txt", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/sysAdmin.45ed20be.js.LICENSE.txt" }, - "static/js/commons.84df398e.js.map": { - "name": "static/js/commons.84df398e.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/commons.84df398e.js.map" + "static/js/TCAccept.e482fe30.js": { + "name": "static/js/TCAccept.e482fe30.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/TCAccept.e482fe30.js" }, - "static/js/draft.b5d27191.js": { - "name": "static/js/draft.b5d27191.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/draft.b5d27191.js" + "static/js/TCView.581dc96f.js": { + "name": "static/js/TCView.581dc96f.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/TCView.581dc96f.js" }, - "static/js/draft.b5d27191.js.map": { - "name": "static/js/draft.b5d27191.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/draft.b5d27191.js.map" + "static/js/uploadLink.b156bd0f.js": { + "name": "static/js/uploadLink.b156bd0f.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/uploadLink.b156bd0f.js" }, - "static/js/fileHistory.88bff865.js": { - "name": "static/js/fileHistory.88bff865.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/fileHistory.88bff865.js" + "static/js/viewFileDocument.f0f2abc4.js": { + "name": "static/js/viewFileDocument.f0f2abc4.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/viewFileDocument.f0f2abc4.js" }, - "static/js/fileHistory.88bff865.js.map": { - "name": "static/js/fileHistory.88bff865.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/fileHistory.88bff865.js.map" + "static/js/viewFileSdoc.08f35082.js": { + "name": "static/js/viewFileSdoc.08f35082.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/viewFileSdoc.08f35082.js" }, - "static/js/fileHistoryOld.3f18f9ad.js": { - "name": "static/js/fileHistoryOld.3f18f9ad.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/fileHistoryOld.3f18f9ad.js" + "static/js/viewFileSpreadsheet.994ecffe.js": { + "name": "static/js/viewFileSpreadsheet.994ecffe.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/viewFileSpreadsheet.994ecffe.js" }, - "static/js/fileHistoryOld.3f18f9ad.js.map": { - "name": "static/js/fileHistoryOld.3f18f9ad.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/fileHistoryOld.3f18f9ad.js.map" + "static/js/viewFileText.f595ef66.js": { + "name": "static/js/viewFileText.f595ef66.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/viewFileText.f595ef66.js" }, - "static/js/fileView.f3d13498.js": { - "name": "static/js/fileView.f3d13498.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/fileView.f3d13498.js" + "static/js/wiki.4ff7a830.js": { + "name": "static/js/wiki.4ff7a830.js", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/js/wiki.4ff7a830.js" }, - "static/js/fileView.f3d13498.js.map": { - "name": "static/js/fileView.f3d13498.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/fileView.f3d13498.js.map" + "static/media/index.04c888f3ae98c3417374.cjs": { + "name": "static/media/index.04c888f3ae98c3417374.cjs", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/media/index.04c888f3ae98c3417374.cjs" }, - "static/js/historyTrashFileView.11fe180d.js": { - "name": "static/js/historyTrashFileView.11fe180d.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/historyTrashFileView.11fe180d.js" + "static/media/index.2fec119c7549533914a8.cjs": { + "name": "static/media/index.2fec119c7549533914a8.cjs", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/media/index.2fec119c7549533914a8.cjs" }, - "static/js/historyTrashFileView.11fe180d.js.map": { - "name": "static/js/historyTrashFileView.11fe180d.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/historyTrashFileView.11fe180d.js.map" + "static/media/index.4cfc7b22ad0fc8e42e1c.cjs": { + "name": "static/media/index.4cfc7b22ad0fc8e42e1c.cjs", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/media/index.4cfc7b22ad0fc8e42e1c.cjs" }, - "static/js/markdownEditor.3ee490c8.js": { - "name": "static/js/markdownEditor.3ee490c8.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/markdownEditor.3ee490c8.js" - }, - "static/js/markdownEditor.3ee490c8.js.LICENSE.txt": { - "name": "static/js/markdownEditor.3ee490c8.js.LICENSE.txt", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/markdownEditor.3ee490c8.js.LICENSE.txt" - }, - "static/js/markdownEditor.3ee490c8.js.map": { - "name": "static/js/markdownEditor.3ee490c8.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/markdownEditor.3ee490c8.js.map" - }, - "static/js/orgAdmin.c982a7fd.js": { - "name": "static/js/orgAdmin.c982a7fd.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/orgAdmin.c982a7fd.js" - }, - "static/js/orgAdmin.c982a7fd.js.LICENSE.txt": { - "name": "static/js/orgAdmin.c982a7fd.js.LICENSE.txt", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/orgAdmin.c982a7fd.js.LICENSE.txt" - }, - "static/js/orgAdmin.c982a7fd.js.map": { - "name": "static/js/orgAdmin.c982a7fd.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/orgAdmin.c982a7fd.js.map" - }, - "static/js/repoFolderTrash.28b24f80.js": { - "name": "static/js/repoFolderTrash.28b24f80.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/repoFolderTrash.28b24f80.js" - }, - "static/js/repoFolderTrash.28b24f80.js.map": { - "name": "static/js/repoFolderTrash.28b24f80.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/repoFolderTrash.28b24f80.js.map" - }, - "static/js/repoHistory.576546cc.js": { - "name": "static/js/repoHistory.576546cc.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/repoHistory.576546cc.js" - }, - "static/js/repoHistory.576546cc.js.map": { - "name": "static/js/repoHistory.576546cc.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/repoHistory.576546cc.js.map" - }, - "static/js/repoSnapshot.8c570ae6.js": { - "name": "static/js/repoSnapshot.8c570ae6.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/repoSnapshot.8c570ae6.js" - }, - "static/js/repoSnapshot.8c570ae6.js.map": { - "name": "static/js/repoSnapshot.8c570ae6.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/repoSnapshot.8c570ae6.js.map" - }, - "static/js/runtime.028fa1ae.js": { - "name": "static/js/runtime.028fa1ae.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/runtime.028fa1ae.js" - }, - "static/js/runtime.028fa1ae.js.map": { - "name": "static/js/runtime.028fa1ae.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/runtime.028fa1ae.js.map" - }, - "static/js/sdocFileHistory.5d6a8c34.js": { - "name": "static/js/sdocFileHistory.5d6a8c34.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sdocFileHistory.5d6a8c34.js" - }, - "static/js/sdocFileHistory.5d6a8c34.js.map": { - "name": "static/js/sdocFileHistory.5d6a8c34.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sdocFileHistory.5d6a8c34.js.map" - }, - "static/js/sdocPublishedRevision.aeef61c9.js": { - "name": "static/js/sdocPublishedRevision.aeef61c9.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sdocPublishedRevision.aeef61c9.js" - }, - "static/js/sdocPublishedRevision.aeef61c9.js.map": { - "name": "static/js/sdocPublishedRevision.aeef61c9.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sdocPublishedRevision.aeef61c9.js.map" - }, - "static/js/search.60173edb.js": { - "name": "static/js/search.60173edb.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/search.60173edb.js" - }, - "static/js/search.60173edb.js.map": { - "name": "static/js/search.60173edb.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/search.60173edb.js.map" - }, - "static/js/settings.4f5512b2.js": { - "name": "static/js/settings.4f5512b2.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/settings.4f5512b2.js" - }, - "static/js/settings.4f5512b2.js.map": { - "name": "static/js/settings.4f5512b2.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/settings.4f5512b2.js.map" - }, - "static/js/sharedDirView.859e8ccc.js": { - "name": "static/js/sharedDirView.859e8ccc.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedDirView.859e8ccc.js" - }, - "static/js/sharedDirView.859e8ccc.js.map": { - "name": "static/js/sharedDirView.859e8ccc.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedDirView.859e8ccc.js.map" - }, - "static/js/sharedFileViewAudio.cedd033e.js": { - "name": "static/js/sharedFileViewAudio.cedd033e.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewAudio.cedd033e.js" - }, - "static/js/sharedFileViewAudio.cedd033e.js.map": { - "name": "static/js/sharedFileViewAudio.cedd033e.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewAudio.cedd033e.js.map" - }, - "static/js/sharedFileViewDocument.180f58d8.js": { - "name": "static/js/sharedFileViewDocument.180f58d8.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewDocument.180f58d8.js" - }, - "static/js/sharedFileViewDocument.180f58d8.js.map": { - "name": "static/js/sharedFileViewDocument.180f58d8.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewDocument.180f58d8.js.map" - }, - "static/js/sharedFileViewImage.9d0dda04.js": { - "name": "static/js/sharedFileViewImage.9d0dda04.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewImage.9d0dda04.js" - }, - "static/js/sharedFileViewImage.9d0dda04.js.map": { - "name": "static/js/sharedFileViewImage.9d0dda04.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewImage.9d0dda04.js.map" - }, - "static/js/sharedFileViewMarkdown.7dbe56ed.js": { - "name": "static/js/sharedFileViewMarkdown.7dbe56ed.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewMarkdown.7dbe56ed.js" - }, - "static/js/sharedFileViewMarkdown.7dbe56ed.js.map": { - "name": "static/js/sharedFileViewMarkdown.7dbe56ed.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewMarkdown.7dbe56ed.js.map" - }, - "static/js/sharedFileViewPDF.a00415f0.js": { - "name": "static/js/sharedFileViewPDF.a00415f0.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewPDF.a00415f0.js" - }, - "static/js/sharedFileViewPDF.a00415f0.js.map": { - "name": "static/js/sharedFileViewPDF.a00415f0.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewPDF.a00415f0.js.map" - }, - "static/js/sharedFileViewSdoc.4a7b0355.js": { - "name": "static/js/sharedFileViewSdoc.4a7b0355.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewSdoc.4a7b0355.js" - }, - "static/js/sharedFileViewSdoc.4a7b0355.js.map": { - "name": "static/js/sharedFileViewSdoc.4a7b0355.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewSdoc.4a7b0355.js.map" - }, - "static/js/sharedFileViewSpreadsheet.0ffb4373.js": { - "name": "static/js/sharedFileViewSpreadsheet.0ffb4373.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewSpreadsheet.0ffb4373.js" - }, - "static/js/sharedFileViewSpreadsheet.0ffb4373.js.map": { - "name": "static/js/sharedFileViewSpreadsheet.0ffb4373.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewSpreadsheet.0ffb4373.js.map" - }, - "static/js/sharedFileViewSVG.5fd43385.js": { - "name": "static/js/sharedFileViewSVG.5fd43385.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewSVG.5fd43385.js" - }, - "static/js/sharedFileViewSVG.5fd43385.js.map": { - "name": "static/js/sharedFileViewSVG.5fd43385.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewSVG.5fd43385.js.map" - }, - "static/js/sharedFileViewText.2fe6341c.js": { - "name": "static/js/sharedFileViewText.2fe6341c.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewText.2fe6341c.js" - }, - "static/js/sharedFileViewText.2fe6341c.js.map": { - "name": "static/js/sharedFileViewText.2fe6341c.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewText.2fe6341c.js.map" - }, - "static/js/sharedFileViewUnknown.a0e468e0.js": { - "name": "static/js/sharedFileViewUnknown.a0e468e0.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewUnknown.a0e468e0.js" - }, - "static/js/sharedFileViewUnknown.a0e468e0.js.map": { - "name": "static/js/sharedFileViewUnknown.a0e468e0.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewUnknown.a0e468e0.js.map" - }, - "static/js/sharedFileViewVideo.6af2fa31.js": { - "name": "static/js/sharedFileViewVideo.6af2fa31.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewVideo.6af2fa31.js" - }, - "static/js/sharedFileViewVideo.6af2fa31.js.map": { - "name": "static/js/sharedFileViewVideo.6af2fa31.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sharedFileViewVideo.6af2fa31.js.map" - }, - "static/js/sysAdmin.6fc63bb6.js": { - "name": "static/js/sysAdmin.6fc63bb6.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sysAdmin.6fc63bb6.js" - }, - "static/js/sysAdmin.6fc63bb6.js.LICENSE.txt": { - "name": "static/js/sysAdmin.6fc63bb6.js.LICENSE.txt", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sysAdmin.6fc63bb6.js.LICENSE.txt" - }, - "static/js/sysAdmin.6fc63bb6.js.map": { - "name": "static/js/sysAdmin.6fc63bb6.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/sysAdmin.6fc63bb6.js.map" - }, - "static/js/TCAccept.c1a15517.js": { - "name": "static/js/TCAccept.c1a15517.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/TCAccept.c1a15517.js" - }, - "static/js/TCAccept.c1a15517.js.map": { - "name": "static/js/TCAccept.c1a15517.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/TCAccept.c1a15517.js.map" - }, - "static/js/TCView.d87affdd.js": { - "name": "static/js/TCView.d87affdd.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/TCView.d87affdd.js" - }, - "static/js/TCView.d87affdd.js.map": { - "name": "static/js/TCView.d87affdd.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/TCView.d87affdd.js.map" - }, - "static/js/uploadLink.d3bf7687.js": { - "name": "static/js/uploadLink.d3bf7687.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/uploadLink.d3bf7687.js" - }, - "static/js/uploadLink.d3bf7687.js.map": { - "name": "static/js/uploadLink.d3bf7687.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/uploadLink.d3bf7687.js.map" - }, - "static/js/viewFileDocument.8a503cff.js": { - "name": "static/js/viewFileDocument.8a503cff.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/viewFileDocument.8a503cff.js" - }, - "static/js/viewFileDocument.8a503cff.js.map": { - "name": "static/js/viewFileDocument.8a503cff.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/viewFileDocument.8a503cff.js.map" - }, - "static/js/viewFileSdoc.c9c556b9.js": { - "name": "static/js/viewFileSdoc.c9c556b9.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/viewFileSdoc.c9c556b9.js" - }, - "static/js/viewFileSdoc.c9c556b9.js.map": { - "name": "static/js/viewFileSdoc.c9c556b9.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/viewFileSdoc.c9c556b9.js.map" - }, - "static/js/viewFileSpreadsheet.77d500a4.js": { - "name": "static/js/viewFileSpreadsheet.77d500a4.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/viewFileSpreadsheet.77d500a4.js" - }, - "static/js/viewFileSpreadsheet.77d500a4.js.map": { - "name": "static/js/viewFileSpreadsheet.77d500a4.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/viewFileSpreadsheet.77d500a4.js.map" - }, - "static/js/viewFileText.7b29a2fb.js": { - "name": "static/js/viewFileText.7b29a2fb.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/viewFileText.7b29a2fb.js" - }, - "static/js/viewFileText.7b29a2fb.js.map": { - "name": "static/js/viewFileText.7b29a2fb.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/viewFileText.7b29a2fb.js.map" - }, - "static/js/wiki.fd7804d0.js": { - "name": "static/js/wiki.fd7804d0.js", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/wiki.fd7804d0.js" - }, - "static/js/wiki.fd7804d0.js.map": { - "name": "static/js/wiki.fd7804d0.js.map", - "path": "/Users/lidongze/seafile/seafile-10.0/data/dev/seahub/frontend/build/frontend/static/js/wiki.fd7804d0.js.map" + "static/media/index.510f135b80c56a1c3dcf.cjs": { + "name": "static/media/index.510f135b80c56a1c3dcf.cjs", + "path": "/home/runner/work/seahub/seahub/frontend/build/frontend/static/media/index.510f135b80c56a1c3dcf.cjs" } }, "chunks": { "app": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/app.ce867cc5.css", - "static/js/app.800f919a.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/app.bb42fc17.css", + "static/js/app.c29a42f3.js" ], "draft": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/draft.dfd8ec8b.css", - "static/js/draft.b5d27191.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/draft.22c06bac.css", + "static/js/draft.4beb7a44.js" ], "fileHistory": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/fileHistory.c207f9b1.css", - "static/js/fileHistory.88bff865.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/fileHistory.12927620.css", + "static/js/fileHistory.1247980e.js" ], "fileHistoryOld": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/fileHistoryOld.34922be6.css", - "static/js/fileHistoryOld.3f18f9ad.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/fileHistoryOld.6d426e0b.css", + "static/js/fileHistoryOld.5e257b77.js" ], "fileView": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/js/fileView.f3d13498.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/js/fileView.701a6851.js" ], "historyTrashFileView": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/historyTrashFileView.d2070387.css", - "static/js/historyTrashFileView.11fe180d.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/historyTrashFileView.14c233ee.css", + "static/js/historyTrashFileView.00b6979f.js" ], "markdownEditor": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/markdownEditor.c66eb93d.css", - "static/js/markdownEditor.3ee490c8.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/markdownEditor.3110eb73.css", + "static/js/markdownEditor.833c2a38.js" ], "orgAdmin": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/orgAdmin.bb6a05c5.css", - "static/js/orgAdmin.c982a7fd.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/orgAdmin.1ccd26d7.css", + "static/js/orgAdmin.aa24ddb3.js" ], "repoFolderTrash": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/repoFolderTrash.d4170c41.css", - "static/js/repoFolderTrash.28b24f80.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/repoFolderTrash.69b56f7c.css", + "static/js/repoFolderTrash.5ffaf574.js" ], "repoHistory": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/repoHistory.f0ad8622.css", - "static/js/repoHistory.576546cc.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/repoHistory.d2c893af.css", + "static/js/repoHistory.10b3f218.js" ], "repoSnapshot": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/repoSnapshot.c6bbee77.css", - "static/js/repoSnapshot.8c570ae6.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/repoSnapshot.0ee3fb82.css", + "static/js/repoSnapshot.226860eb.js" ], "sdocFileHistory": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/sdocFileHistory.f936c666.css", - "static/js/sdocFileHistory.5d6a8c34.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/sdocFileHistory.e22b354f.css", + "static/js/sdocFileHistory.d822bdda.js" ], "sdocPublishedRevision": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/js/sdocPublishedRevision.aeef61c9.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/js/sdocPublishedRevision.968030fc.js" ], "search": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/js/search.60173edb.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/js/search.202e11d3.js" ], "settings": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/settings.391717d2.css", - "static/js/settings.4f5512b2.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/settings.4e24d65d.css", + "static/js/settings.64c844e3.js" ], "sharedDirView": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/sharedDirView.945789e9.css", - "static/js/sharedDirView.859e8ccc.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/sharedDirView.0167fb72.css", + "static/js/sharedDirView.97b2e01e.js" ], "sharedFileViewAudio": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/js/sharedFileViewAudio.cedd033e.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/js/sharedFileViewAudio.2ec74d76.js" ], "sharedFileViewDocument": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/js/sharedFileViewDocument.180f58d8.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/js/sharedFileViewDocument.35bac6cf.js" ], "sharedFileViewImage": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/js/sharedFileViewImage.9d0dda04.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/js/sharedFileViewImage.bd650551.js" ], "sharedFileViewMarkdown": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/js/sharedFileViewMarkdown.7dbe56ed.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/js/sharedFileViewMarkdown.40aedf21.js" ], "sharedFileViewPDF": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/js/sharedFileViewPDF.a00415f0.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/js/sharedFileViewPDF.76b58320.js" ], "sharedFileViewSdoc": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/js/sharedFileViewSdoc.4a7b0355.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/js/sharedFileViewSdoc.0bda18ae.js" ], "sharedFileViewSpreadsheet": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/sharedFileViewSpreadsheet.ff1ddac7.css", - "static/js/sharedFileViewSpreadsheet.0ffb4373.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/sharedFileViewSpreadsheet.aea7959b.css", + "static/js/sharedFileViewSpreadsheet.753ec6c4.js" ], "sharedFileViewSVG": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/js/sharedFileViewSVG.5fd43385.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/js/sharedFileViewSVG.d8614899.js" ], "sharedFileViewText": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/js/sharedFileViewText.2fe6341c.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/js/sharedFileViewText.6c7f6d25.js" ], "sharedFileViewUnknown": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/js/sharedFileViewUnknown.a0e468e0.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/js/sharedFileViewUnknown.67d00bc7.js" ], "sharedFileViewVideo": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/js/sharedFileViewVideo.6af2fa31.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/js/sharedFileViewVideo.63110405.js" ], "sysAdmin": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/sysAdmin.feb7b73d.css", - "static/js/sysAdmin.6fc63bb6.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/sysAdmin.defb2342.css", + "static/js/sysAdmin.45ed20be.js" ], "TCAccept": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/TCAccept.05d88392.css", - "static/js/TCAccept.c1a15517.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/TCAccept.0abfc181.css", + "static/js/TCAccept.e482fe30.js" ], "TCView": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/TCView.05d88392.css", - "static/js/TCView.d87affdd.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/TCView.0abfc181.css", + "static/js/TCView.581dc96f.js" ], "uploadLink": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/uploadLink.01103a58.css", - "static/js/uploadLink.d3bf7687.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/uploadLink.e703d3dd.css", + "static/js/uploadLink.b156bd0f.js" ], "viewFileDocument": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/js/viewFileDocument.8a503cff.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/js/viewFileDocument.f0f2abc4.js" ], "viewFileSdoc": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/js/viewFileSdoc.c9c556b9.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/js/viewFileSdoc.08f35082.js" ], "viewFileSpreadsheet": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/viewFileSpreadsheet.ff1ddac7.css", - "static/js/viewFileSpreadsheet.77d500a4.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/viewFileSpreadsheet.aea7959b.css", + "static/js/viewFileSpreadsheet.994ecffe.js" ], "viewFileText": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/js/viewFileText.7b29a2fb.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/js/viewFileText.f595ef66.js" ], "wiki": [ - "static/js/runtime.028fa1ae.js", - "static/css/commons.2c40b537.css", - "static/js/commons.84df398e.js", - "static/css/wiki.2d406fab.css", - "static/js/wiki.fd7804d0.js" + "static/js/runtime.86db51cf.js", + "static/css/commons.1cf5fb5e.css", + "static/js/commons.2fec6858.js", + "static/css/wiki.0ae434f3.css", + "static/js/wiki.4ff7a830.js" ] } } \ No newline at end of file diff --git a/locale/ar/LC_MESSAGES/django.mo b/locale/ar/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..6e0c917766f Binary files /dev/null and b/locale/ar/LC_MESSAGES/django.mo differ diff --git a/locale/ar/LC_MESSAGES/djangojs.mo b/locale/ar/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..80db913d014 Binary files /dev/null and b/locale/ar/LC_MESSAGES/djangojs.mo differ diff --git a/locale/bg/LC_MESSAGES/django.mo b/locale/bg/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..420dcb06480 Binary files /dev/null and b/locale/bg/LC_MESSAGES/django.mo differ diff --git a/locale/bg/LC_MESSAGES/djangojs.mo b/locale/bg/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..a3e838f736d Binary files /dev/null and b/locale/bg/LC_MESSAGES/djangojs.mo differ diff --git a/locale/bg_BG/LC_MESSAGES/djangojs.mo b/locale/bg_BG/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..a6f138aec0a Binary files /dev/null and b/locale/bg_BG/LC_MESSAGES/djangojs.mo differ diff --git a/locale/ca/LC_MESSAGES/django.mo b/locale/ca/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..83de7d523f3 Binary files /dev/null and b/locale/ca/LC_MESSAGES/django.mo differ diff --git a/locale/ca/LC_MESSAGES/djangojs.mo b/locale/ca/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..5e06915b273 Binary files /dev/null and b/locale/ca/LC_MESSAGES/djangojs.mo differ diff --git a/locale/cs/LC_MESSAGES/django.mo b/locale/cs/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..3d6aad5189a Binary files /dev/null and b/locale/cs/LC_MESSAGES/django.mo differ diff --git a/locale/cs/LC_MESSAGES/djangojs.mo b/locale/cs/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..c33fb1366b1 Binary files /dev/null and b/locale/cs/LC_MESSAGES/djangojs.mo differ diff --git a/locale/cs_CZ/LC_MESSAGES/djangojs.mo b/locale/cs_CZ/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..74b1c6e3b4b Binary files /dev/null and b/locale/cs_CZ/LC_MESSAGES/djangojs.mo differ diff --git a/locale/da_DK/LC_MESSAGES/djangojs.mo b/locale/da_DK/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..1799fd30104 Binary files /dev/null and b/locale/da_DK/LC_MESSAGES/djangojs.mo differ diff --git a/locale/de/LC_MESSAGES/django.mo b/locale/de/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..e6cdc49bcbe Binary files /dev/null and b/locale/de/LC_MESSAGES/django.mo differ diff --git a/locale/de/LC_MESSAGES/djangojs.mo b/locale/de/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..bda269824c3 Binary files /dev/null and b/locale/de/LC_MESSAGES/djangojs.mo differ diff --git a/locale/el/LC_MESSAGES/django.mo b/locale/el/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..3c9e3a613f7 Binary files /dev/null and b/locale/el/LC_MESSAGES/django.mo differ diff --git a/locale/el/LC_MESSAGES/djangojs.mo b/locale/el/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..78744ebdfd9 Binary files /dev/null and b/locale/el/LC_MESSAGES/djangojs.mo differ diff --git a/locale/el_GR/LC_MESSAGES/djangojs.mo b/locale/el_GR/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..7b7a22f9bd0 Binary files /dev/null and b/locale/el_GR/LC_MESSAGES/djangojs.mo differ diff --git a/locale/en/LC_MESSAGES/django.mo b/locale/en/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..6c5906d1cd0 Binary files /dev/null and b/locale/en/LC_MESSAGES/django.mo differ diff --git a/locale/en/LC_MESSAGES/djangojs.mo b/locale/en/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..6c5906d1cd0 Binary files /dev/null and b/locale/en/LC_MESSAGES/djangojs.mo differ diff --git a/locale/en_US/LC_MESSAGES/djangojs.mo b/locale/en_US/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..05b1d06271d Binary files /dev/null and b/locale/en_US/LC_MESSAGES/djangojs.mo differ diff --git a/locale/es/LC_MESSAGES/django.mo b/locale/es/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..b4f186ac674 Binary files /dev/null and b/locale/es/LC_MESSAGES/django.mo differ diff --git a/locale/es/LC_MESSAGES/djangojs.mo b/locale/es/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..5ed1f7d061b Binary files /dev/null and b/locale/es/LC_MESSAGES/djangojs.mo differ diff --git a/locale/es_AR/LC_MESSAGES/django.mo b/locale/es_AR/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..346c066a7ed Binary files /dev/null and b/locale/es_AR/LC_MESSAGES/django.mo differ diff --git a/locale/es_AR/LC_MESSAGES/djangojs.mo b/locale/es_AR/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..76cec9d03d4 Binary files /dev/null and b/locale/es_AR/LC_MESSAGES/djangojs.mo differ diff --git a/locale/es_MX/LC_MESSAGES/django.mo b/locale/es_MX/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..a7452b6bd21 Binary files /dev/null and b/locale/es_MX/LC_MESSAGES/django.mo differ diff --git a/locale/es_MX/LC_MESSAGES/djangojs.mo b/locale/es_MX/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..a2184c18ca3 Binary files /dev/null and b/locale/es_MX/LC_MESSAGES/djangojs.mo differ diff --git a/locale/fi/LC_MESSAGES/django.mo b/locale/fi/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..c8bfc7aefba Binary files /dev/null and b/locale/fi/LC_MESSAGES/django.mo differ diff --git a/locale/fi/LC_MESSAGES/djangojs.mo b/locale/fi/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..5ce0d0e976d Binary files /dev/null and b/locale/fi/LC_MESSAGES/djangojs.mo differ diff --git a/locale/fr/LC_MESSAGES/django.mo b/locale/fr/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..27f2a502b0f Binary files /dev/null and b/locale/fr/LC_MESSAGES/django.mo differ diff --git a/locale/fr/LC_MESSAGES/djangojs.mo b/locale/fr/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..13382646207 Binary files /dev/null and b/locale/fr/LC_MESSAGES/djangojs.mo differ diff --git a/locale/he/LC_MESSAGES/django.mo b/locale/he/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..17861b780db Binary files /dev/null and b/locale/he/LC_MESSAGES/django.mo differ diff --git a/locale/he/LC_MESSAGES/djangojs.mo b/locale/he/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..97155d0dce9 Binary files /dev/null and b/locale/he/LC_MESSAGES/djangojs.mo differ diff --git a/locale/hr/LC_MESSAGES/djangojs.mo b/locale/hr/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..343e4d6d0f6 Binary files /dev/null and b/locale/hr/LC_MESSAGES/djangojs.mo differ diff --git a/locale/hr_HR/LC_MESSAGES/djangojs.mo b/locale/hr_HR/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..1266e0273f0 Binary files /dev/null and b/locale/hr_HR/LC_MESSAGES/djangojs.mo differ diff --git a/locale/hu/LC_MESSAGES/django.mo b/locale/hu/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..baf92641843 Binary files /dev/null and b/locale/hu/LC_MESSAGES/django.mo differ diff --git a/locale/hu/LC_MESSAGES/djangojs.mo b/locale/hu/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..21a10af3cef Binary files /dev/null and b/locale/hu/LC_MESSAGES/djangojs.mo differ diff --git a/locale/is/LC_MESSAGES/django.mo b/locale/is/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..ad64415bff7 Binary files /dev/null and b/locale/is/LC_MESSAGES/django.mo differ diff --git a/locale/is/LC_MESSAGES/djangojs.mo b/locale/is/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..535c6387e8a Binary files /dev/null and b/locale/is/LC_MESSAGES/djangojs.mo differ diff --git a/locale/it/LC_MESSAGES/django.mo b/locale/it/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..f41104ffea8 Binary files /dev/null and b/locale/it/LC_MESSAGES/django.mo differ diff --git a/locale/it/LC_MESSAGES/djangojs.mo b/locale/it/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..a590f975aab Binary files /dev/null and b/locale/it/LC_MESSAGES/djangojs.mo differ diff --git a/locale/ja/LC_MESSAGES/django.mo b/locale/ja/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..9c16c2e1dfd Binary files /dev/null and b/locale/ja/LC_MESSAGES/django.mo differ diff --git a/locale/ja/LC_MESSAGES/djangojs.mo b/locale/ja/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..9aefacc73fa Binary files /dev/null and b/locale/ja/LC_MESSAGES/djangojs.mo differ diff --git a/locale/ko/LC_MESSAGES/django.mo b/locale/ko/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..ac44928a7fa Binary files /dev/null and b/locale/ko/LC_MESSAGES/django.mo differ diff --git a/locale/ko/LC_MESSAGES/djangojs.mo b/locale/ko/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..826a811e2aa Binary files /dev/null and b/locale/ko/LC_MESSAGES/djangojs.mo differ diff --git a/locale/lt/LC_MESSAGES/django.mo b/locale/lt/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..4054ccbbe35 Binary files /dev/null and b/locale/lt/LC_MESSAGES/django.mo differ diff --git a/locale/lt/LC_MESSAGES/djangojs.mo b/locale/lt/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..169973a0674 Binary files /dev/null and b/locale/lt/LC_MESSAGES/djangojs.mo differ diff --git a/locale/lv/LC_MESSAGES/django.mo b/locale/lv/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..a28e62f4b14 Binary files /dev/null and b/locale/lv/LC_MESSAGES/django.mo differ diff --git a/locale/lv/LC_MESSAGES/djangojs.mo b/locale/lv/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..1d669d11b9a Binary files /dev/null and b/locale/lv/LC_MESSAGES/djangojs.mo differ diff --git a/locale/lv_LV/LC_MESSAGES/djangojs.mo b/locale/lv_LV/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..48f5bb916ff Binary files /dev/null and b/locale/lv_LV/LC_MESSAGES/djangojs.mo differ diff --git a/locale/mk/LC_MESSAGES/django.mo b/locale/mk/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..4be4a0637d2 Binary files /dev/null and b/locale/mk/LC_MESSAGES/django.mo differ diff --git a/locale/mk/LC_MESSAGES/djangojs.mo b/locale/mk/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..3259ca6f00e Binary files /dev/null and b/locale/mk/LC_MESSAGES/djangojs.mo differ diff --git a/locale/nb/LC_MESSAGES/djangojs.mo b/locale/nb/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..c32ac1cf3a7 Binary files /dev/null and b/locale/nb/LC_MESSAGES/djangojs.mo differ diff --git a/locale/nb_NO/LC_MESSAGES/djangojs.mo b/locale/nb_NO/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..05a807689de Binary files /dev/null and b/locale/nb_NO/LC_MESSAGES/djangojs.mo differ diff --git a/locale/nl/LC_MESSAGES/django.mo b/locale/nl/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..e35ebe953a8 Binary files /dev/null and b/locale/nl/LC_MESSAGES/django.mo differ diff --git a/locale/nl/LC_MESSAGES/djangojs.mo b/locale/nl/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..7f7d1a0809a Binary files /dev/null and b/locale/nl/LC_MESSAGES/djangojs.mo differ diff --git a/locale/nl_NL/LC_MESSAGES/djangojs.mo b/locale/nl_NL/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..a2a6ce5ecd0 Binary files /dev/null and b/locale/nl_NL/LC_MESSAGES/djangojs.mo differ diff --git a/locale/pl/LC_MESSAGES/django.mo b/locale/pl/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..04675035c79 Binary files /dev/null and b/locale/pl/LC_MESSAGES/django.mo differ diff --git a/locale/pl/LC_MESSAGES/djangojs.mo b/locale/pl/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..60b12d590c5 Binary files /dev/null and b/locale/pl/LC_MESSAGES/djangojs.mo differ diff --git a/locale/pt_BR/LC_MESSAGES/django.mo b/locale/pt_BR/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..c38beff8ed9 Binary files /dev/null and b/locale/pt_BR/LC_MESSAGES/django.mo differ diff --git a/locale/pt_BR/LC_MESSAGES/djangojs.mo b/locale/pt_BR/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..68c1663ea9d Binary files /dev/null and b/locale/pt_BR/LC_MESSAGES/djangojs.mo differ diff --git a/locale/pt_PT/LC_MESSAGES/djangojs.mo b/locale/pt_PT/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..b1823f642d9 Binary files /dev/null and b/locale/pt_PT/LC_MESSAGES/djangojs.mo differ diff --git a/locale/ru/LC_MESSAGES/django.mo b/locale/ru/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..971c3d4cd8e Binary files /dev/null and b/locale/ru/LC_MESSAGES/django.mo differ diff --git a/locale/ru/LC_MESSAGES/djangojs.mo b/locale/ru/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..c017938eaea Binary files /dev/null and b/locale/ru/LC_MESSAGES/djangojs.mo differ diff --git a/locale/sk/LC_MESSAGES/django.mo b/locale/sk/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..e2130fdb5e8 Binary files /dev/null and b/locale/sk/LC_MESSAGES/django.mo differ diff --git a/locale/sk_SK/LC_MESSAGES/djangojs.mo b/locale/sk_SK/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..620f5dcdf78 Binary files /dev/null and b/locale/sk_SK/LC_MESSAGES/djangojs.mo differ diff --git a/locale/sl/LC_MESSAGES/django.mo b/locale/sl/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..5e29a5f8cb7 Binary files /dev/null and b/locale/sl/LC_MESSAGES/django.mo differ diff --git a/locale/sl_SI/LC_MESSAGES/djangojs.mo b/locale/sl_SI/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..e646c20be81 Binary files /dev/null and b/locale/sl_SI/LC_MESSAGES/djangojs.mo differ diff --git a/locale/sv/LC_MESSAGES/django.mo b/locale/sv/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..0c5ac01620f Binary files /dev/null and b/locale/sv/LC_MESSAGES/django.mo differ diff --git a/locale/sv/LC_MESSAGES/djangojs.mo b/locale/sv/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..eb07c1e9187 Binary files /dev/null and b/locale/sv/LC_MESSAGES/djangojs.mo differ diff --git a/locale/th/LC_MESSAGES/django.mo b/locale/th/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..59d1b9c269c Binary files /dev/null and b/locale/th/LC_MESSAGES/django.mo differ diff --git a/locale/th_TH/LC_MESSAGES/djangojs.mo b/locale/th_TH/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..f4b112ebb90 Binary files /dev/null and b/locale/th_TH/LC_MESSAGES/djangojs.mo differ diff --git a/locale/tr/LC_MESSAGES/django.mo b/locale/tr/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..42ef75ee0cb Binary files /dev/null and b/locale/tr/LC_MESSAGES/django.mo differ diff --git a/locale/tr/LC_MESSAGES/djangojs.mo b/locale/tr/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..5832b1f5d24 Binary files /dev/null and b/locale/tr/LC_MESSAGES/djangojs.mo differ diff --git a/locale/uk/LC_MESSAGES/django.mo b/locale/uk/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..6f621156173 Binary files /dev/null and b/locale/uk/LC_MESSAGES/django.mo differ diff --git a/locale/uk/LC_MESSAGES/djangojs.mo b/locale/uk/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..3b68d0b4bd0 Binary files /dev/null and b/locale/uk/LC_MESSAGES/djangojs.mo differ diff --git a/locale/vi/LC_MESSAGES/django.mo b/locale/vi/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..66a18303282 Binary files /dev/null and b/locale/vi/LC_MESSAGES/django.mo differ diff --git a/locale/vi/LC_MESSAGES/djangojs.mo b/locale/vi/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..53c260b2294 Binary files /dev/null and b/locale/vi/LC_MESSAGES/djangojs.mo differ diff --git a/locale/zh_CN/LC_MESSAGES/django.mo b/locale/zh_CN/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..98d023e7272 Binary files /dev/null and b/locale/zh_CN/LC_MESSAGES/django.mo differ diff --git a/locale/zh_CN/LC_MESSAGES/djangojs.mo b/locale/zh_CN/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..df0b9f9e8ef Binary files /dev/null and b/locale/zh_CN/LC_MESSAGES/djangojs.mo differ diff --git a/locale/zh_TW/LC_MESSAGES/django.mo b/locale/zh_TW/LC_MESSAGES/django.mo new file mode 100644 index 00000000000..401cdc89eb3 Binary files /dev/null and b/locale/zh_TW/LC_MESSAGES/django.mo differ diff --git a/locale/zh_TW/LC_MESSAGES/djangojs.mo b/locale/zh_TW/LC_MESSAGES/djangojs.mo new file mode 100644 index 00000000000..1564d38dc90 Binary files /dev/null and b/locale/zh_TW/LC_MESSAGES/djangojs.mo differ diff --git a/media/assets/css/bootstrap.min.css b/media/assets/css/bootstrap.min.css new file mode 100644 index 00000000000..13176351c2c --- /dev/null +++ b/media/assets/css/bootstrap.min.css @@ -0,0 +1,6 @@ +/*! + * Bootstrap v4.0.0-alpha.2 (http://getbootstrap.com) + * Copyright 2011-2015 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active{outline:0}a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}@media print{*,::after,::before{text-shadow:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}abbr[title]::after{content:" (" attr(title) ")"}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}html{-webkit-box-sizing:border-box;box-sizing:border-box}*,::after,::before{-webkit-box-sizing:inherit;box-sizing:inherit}@-ms-viewport{width:device-width}@viewport{width:device-width}html{font-size:16px;-webkit-tap-highlight-color:transparent}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:1rem;line-height:1.5;color:#373a3c;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #818a91}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}a{color:#0275d8;text-decoration:none}a:focus,a:hover{color:#014c8c;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}pre{margin-top:0;margin-bottom:1rem}figure{margin:0 0 1rem}img{vertical-align:middle}[role=button]{cursor:pointer}[role=button],a,area,button,input,label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{background-color:transparent}caption{padding-top:.75rem;padding-bottom:.75rem;color:#818a91;text-align:left;caption-side:bottom}th{text-align:left}label{display:inline-block;margin-bottom:.5rem}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,select,textarea{margin:0;line-height:inherit;border-radius:0}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit}input[type=search]{-webkit-box-sizing:inherit;box-sizing:inherit;-webkit-appearance:none}output{display:inline-block}[hidden]{display:none!important}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;font-family:inherit;font-weight:500;line-height:1.1;color:inherit}h1{font-size:2.5rem}h2{font-size:2rem}h3{font-size:1.75rem}h4{font-size:1.5rem}h5{font-size:1.25rem}h6{font-size:1rem}.h1{font-size:2.5rem}.h2{font-size:2rem}.h3{font-size:1.75rem}.h4{font-size:1.5rem}.h5{font-size:1.25rem}.h6{font-size:1rem}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:6rem;font-weight:300}.display-2{font-size:5.5rem;font-weight:300}.display-3{font-size:4.5rem;font-weight:300}.display-4{font-size:3.5rem;font-weight:300}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,.1)}.small,small{font-size:80%;font-weight:400}.mark,mark{padding:.2em;background-color:#fcf8e3}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:5px}.dl-horizontal{margin-right:-1.875rem;margin-left:-1.875rem}.dl-horizontal::after{display:table;clear:both;content:""}.initialism{font-size:90%;text-transform:uppercase}.blockquote{padding:.5rem 1rem;margin-bottom:1rem;font-size:1.25rem;border-left:.25rem solid #eceeef}.blockquote-footer{display:block;font-size:80%;line-height:1.5;color:#818a91}.blockquote-footer::before{content:"\2014 \00A0"}.blockquote-reverse{padding-right:1rem;padding-left:0;text-align:right;border-right:.25rem solid #eceeef;border-left:0}.blockquote-reverse .blockquote-footer::before{content:""}.blockquote-reverse .blockquote-footer::after{content:"\00A0 \2014"}.carousel-inner>.carousel-item>a>img,.carousel-inner>.carousel-item>img,.img-fluid{display:block;max-width:100%;height:auto}.img-rounded{border-radius:.3rem}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:.25rem;line-height:1.5;background-color:#fff;border:1px solid #ddd;border-radius:.25rem;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:90%;color:#818a91}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:.2rem .4rem;font-size:90%;color:#bd4147;background-color:#f7f7f9;border-radius:.25rem}kbd{padding:.2rem .4rem;font-size:90%;color:#fff;background-color:#333;border-radius:.2rem}kbd kbd{padding:0;font-size:100%;font-weight:700}pre{display:block;margin-top:0;margin-bottom:1rem;font-size:90%;line-height:1.5;color:#373a3c}pre code{padding:0;font-size:inherit;color:inherit;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:.9375rem;padding-left:.9375rem;margin-right:auto;margin-left:auto}.container::after{display:table;clear:both;content:""}@media (min-width:544px){.container{max-width:576px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:940px}}@media (min-width:1200px){.container{max-width:1140px}}.container-fluid{padding-right:.9375rem;padding-left:.9375rem;margin-right:auto;margin-left:auto}.container-fluid::after{display:table;clear:both;content:""}.row{margin-right:-.9375rem;margin-left:-.9375rem}.row::after{display:table;clear:both;content:""}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:.9375rem;padding-left:.9375rem}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-1{width:8.333333%}.col-xs-2{width:16.666667%}.col-xs-3{width:25%}.col-xs-4{width:33.333333%}.col-xs-5{width:41.666667%}.col-xs-6{width:50%}.col-xs-7{width:58.333333%}.col-xs-8{width:66.666667%}.col-xs-9{width:75%}.col-xs-10{width:83.333333%}.col-xs-11{width:91.666667%}.col-xs-12{width:100%}.col-xs-pull-0{right:auto}.col-xs-pull-1{right:8.333333%}.col-xs-pull-2{right:16.666667%}.col-xs-pull-3{right:25%}.col-xs-pull-4{right:33.333333%}.col-xs-pull-5{right:41.666667%}.col-xs-pull-6{right:50%}.col-xs-pull-7{right:58.333333%}.col-xs-pull-8{right:66.666667%}.col-xs-pull-9{right:75%}.col-xs-pull-10{right:83.333333%}.col-xs-pull-11{right:91.666667%}.col-xs-pull-12{right:100%}.col-xs-push-0{left:auto}.col-xs-push-1{left:8.333333%}.col-xs-push-2{left:16.666667%}.col-xs-push-3{left:25%}.col-xs-push-4{left:33.333333%}.col-xs-push-5{left:41.666667%}.col-xs-push-6{left:50%}.col-xs-push-7{left:58.333333%}.col-xs-push-8{left:66.666667%}.col-xs-push-9{left:75%}.col-xs-push-10{left:83.333333%}.col-xs-push-11{left:91.666667%}.col-xs-push-12{left:100%}.col-xs-offset-0{margin-left:0}.col-xs-offset-1{margin-left:8.333333%}.col-xs-offset-2{margin-left:16.666667%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-4{margin-left:33.333333%}.col-xs-offset-5{margin-left:41.666667%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-7{margin-left:58.333333%}.col-xs-offset-8{margin-left:66.666667%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-10{margin-left:83.333333%}.col-xs-offset-11{margin-left:91.666667%}.col-xs-offset-12{margin-left:100%}@media (min-width:544px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-1{width:8.333333%}.col-sm-2{width:16.666667%}.col-sm-3{width:25%}.col-sm-4{width:33.333333%}.col-sm-5{width:41.666667%}.col-sm-6{width:50%}.col-sm-7{width:58.333333%}.col-sm-8{width:66.666667%}.col-sm-9{width:75%}.col-sm-10{width:83.333333%}.col-sm-11{width:91.666667%}.col-sm-12{width:100%}.col-sm-pull-0{right:auto}.col-sm-pull-1{right:8.333333%}.col-sm-pull-2{right:16.666667%}.col-sm-pull-3{right:25%}.col-sm-pull-4{right:33.333333%}.col-sm-pull-5{right:41.666667%}.col-sm-pull-6{right:50%}.col-sm-pull-7{right:58.333333%}.col-sm-pull-8{right:66.666667%}.col-sm-pull-9{right:75%}.col-sm-pull-10{right:83.333333%}.col-sm-pull-11{right:91.666667%}.col-sm-pull-12{right:100%}.col-sm-push-0{left:auto}.col-sm-push-1{left:8.333333%}.col-sm-push-2{left:16.666667%}.col-sm-push-3{left:25%}.col-sm-push-4{left:33.333333%}.col-sm-push-5{left:41.666667%}.col-sm-push-6{left:50%}.col-sm-push-7{left:58.333333%}.col-sm-push-8{left:66.666667%}.col-sm-push-9{left:75%}.col-sm-push-10{left:83.333333%}.col-sm-push-11{left:91.666667%}.col-sm-push-12{left:100%}.col-sm-offset-0{margin-left:0}.col-sm-offset-1{margin-left:8.333333%}.col-sm-offset-2{margin-left:16.666667%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-4{margin-left:33.333333%}.col-sm-offset-5{margin-left:41.666667%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-7{margin-left:58.333333%}.col-sm-offset-8{margin-left:66.666667%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-10{margin-left:83.333333%}.col-sm-offset-11{margin-left:91.666667%}.col-sm-offset-12{margin-left:100%}}@media (min-width:768px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-1{width:8.333333%}.col-md-2{width:16.666667%}.col-md-3{width:25%}.col-md-4{width:33.333333%}.col-md-5{width:41.666667%}.col-md-6{width:50%}.col-md-7{width:58.333333%}.col-md-8{width:66.666667%}.col-md-9{width:75%}.col-md-10{width:83.333333%}.col-md-11{width:91.666667%}.col-md-12{width:100%}.col-md-pull-0{right:auto}.col-md-pull-1{right:8.333333%}.col-md-pull-2{right:16.666667%}.col-md-pull-3{right:25%}.col-md-pull-4{right:33.333333%}.col-md-pull-5{right:41.666667%}.col-md-pull-6{right:50%}.col-md-pull-7{right:58.333333%}.col-md-pull-8{right:66.666667%}.col-md-pull-9{right:75%}.col-md-pull-10{right:83.333333%}.col-md-pull-11{right:91.666667%}.col-md-pull-12{right:100%}.col-md-push-0{left:auto}.col-md-push-1{left:8.333333%}.col-md-push-2{left:16.666667%}.col-md-push-3{left:25%}.col-md-push-4{left:33.333333%}.col-md-push-5{left:41.666667%}.col-md-push-6{left:50%}.col-md-push-7{left:58.333333%}.col-md-push-8{left:66.666667%}.col-md-push-9{left:75%}.col-md-push-10{left:83.333333%}.col-md-push-11{left:91.666667%}.col-md-push-12{left:100%}.col-md-offset-0{margin-left:0}.col-md-offset-1{margin-left:8.333333%}.col-md-offset-2{margin-left:16.666667%}.col-md-offset-3{margin-left:25%}.col-md-offset-4{margin-left:33.333333%}.col-md-offset-5{margin-left:41.666667%}.col-md-offset-6{margin-left:50%}.col-md-offset-7{margin-left:58.333333%}.col-md-offset-8{margin-left:66.666667%}.col-md-offset-9{margin-left:75%}.col-md-offset-10{margin-left:83.333333%}.col-md-offset-11{margin-left:91.666667%}.col-md-offset-12{margin-left:100%}}@media (min-width:992px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-1{width:8.333333%}.col-lg-2{width:16.666667%}.col-lg-3{width:25%}.col-lg-4{width:33.333333%}.col-lg-5{width:41.666667%}.col-lg-6{width:50%}.col-lg-7{width:58.333333%}.col-lg-8{width:66.666667%}.col-lg-9{width:75%}.col-lg-10{width:83.333333%}.col-lg-11{width:91.666667%}.col-lg-12{width:100%}.col-lg-pull-0{right:auto}.col-lg-pull-1{right:8.333333%}.col-lg-pull-2{right:16.666667%}.col-lg-pull-3{right:25%}.col-lg-pull-4{right:33.333333%}.col-lg-pull-5{right:41.666667%}.col-lg-pull-6{right:50%}.col-lg-pull-7{right:58.333333%}.col-lg-pull-8{right:66.666667%}.col-lg-pull-9{right:75%}.col-lg-pull-10{right:83.333333%}.col-lg-pull-11{right:91.666667%}.col-lg-pull-12{right:100%}.col-lg-push-0{left:auto}.col-lg-push-1{left:8.333333%}.col-lg-push-2{left:16.666667%}.col-lg-push-3{left:25%}.col-lg-push-4{left:33.333333%}.col-lg-push-5{left:41.666667%}.col-lg-push-6{left:50%}.col-lg-push-7{left:58.333333%}.col-lg-push-8{left:66.666667%}.col-lg-push-9{left:75%}.col-lg-push-10{left:83.333333%}.col-lg-push-11{left:91.666667%}.col-lg-push-12{left:100%}.col-lg-offset-0{margin-left:0}.col-lg-offset-1{margin-left:8.333333%}.col-lg-offset-2{margin-left:16.666667%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-4{margin-left:33.333333%}.col-lg-offset-5{margin-left:41.666667%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-7{margin-left:58.333333%}.col-lg-offset-8{margin-left:66.666667%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-10{margin-left:83.333333%}.col-lg-offset-11{margin-left:91.666667%}.col-lg-offset-12{margin-left:100%}}@media (min-width:1200px){.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9{float:left}.col-xl-1{width:8.333333%}.col-xl-2{width:16.666667%}.col-xl-3{width:25%}.col-xl-4{width:33.333333%}.col-xl-5{width:41.666667%}.col-xl-6{width:50%}.col-xl-7{width:58.333333%}.col-xl-8{width:66.666667%}.col-xl-9{width:75%}.col-xl-10{width:83.333333%}.col-xl-11{width:91.666667%}.col-xl-12{width:100%}.col-xl-pull-0{right:auto}.col-xl-pull-1{right:8.333333%}.col-xl-pull-2{right:16.666667%}.col-xl-pull-3{right:25%}.col-xl-pull-4{right:33.333333%}.col-xl-pull-5{right:41.666667%}.col-xl-pull-6{right:50%}.col-xl-pull-7{right:58.333333%}.col-xl-pull-8{right:66.666667%}.col-xl-pull-9{right:75%}.col-xl-pull-10{right:83.333333%}.col-xl-pull-11{right:91.666667%}.col-xl-pull-12{right:100%}.col-xl-push-0{left:auto}.col-xl-push-1{left:8.333333%}.col-xl-push-2{left:16.666667%}.col-xl-push-3{left:25%}.col-xl-push-4{left:33.333333%}.col-xl-push-5{left:41.666667%}.col-xl-push-6{left:50%}.col-xl-push-7{left:58.333333%}.col-xl-push-8{left:66.666667%}.col-xl-push-9{left:75%}.col-xl-push-10{left:83.333333%}.col-xl-push-11{left:91.666667%}.col-xl-push-12{left:100%}.col-xl-offset-0{margin-left:0}.col-xl-offset-1{margin-left:8.333333%}.col-xl-offset-2{margin-left:16.666667%}.col-xl-offset-3{margin-left:25%}.col-xl-offset-4{margin-left:33.333333%}.col-xl-offset-5{margin-left:41.666667%}.col-xl-offset-6{margin-left:50%}.col-xl-offset-7{margin-left:58.333333%}.col-xl-offset-8{margin-left:66.666667%}.col-xl-offset-9{margin-left:75%}.col-xl-offset-10{margin-left:83.333333%}.col-xl-offset-11{margin-left:91.666667%}.col-xl-offset-12{margin-left:100%}}.table{width:100%;max-width:100%;margin-bottom:1rem}.table td,.table th{padding:.75rem;line-height:1.5;vertical-align:top;border-top:1px solid #eceeef}.table thead th{vertical-align:bottom;border-bottom:2px solid #eceeef}.table tbody+tbody{border-top:2px solid #eceeef}.table .table{background-color:#fff}.table-sm td,.table-sm th{padding:.3rem}.table-bordered{border:1px solid #eceeef}.table-bordered td,.table-bordered th{border:1px solid #eceeef}.table-bordered thead td,.table-bordered thead th{border-bottom-width:2px}.table-striped tbody tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover tbody tr:hover{background-color:#f5f5f5}.table-active,.table-active>td,.table-active>th{background-color:#f5f5f5}.table-hover .table-active:hover{background-color:#e8e8e8}.table-hover .table-active:hover>td,.table-hover .table-active:hover>th{background-color:#e8e8e8}.table-success,.table-success>td,.table-success>th{background-color:#dff0d8}.table-hover .table-success:hover{background-color:#d0e9c6}.table-hover .table-success:hover>td,.table-hover .table-success:hover>th{background-color:#d0e9c6}.table-info,.table-info>td,.table-info>th{background-color:#d9edf7}.table-hover .table-info:hover{background-color:#c4e3f3}.table-hover .table-info:hover>td,.table-hover .table-info:hover>th{background-color:#c4e3f3}.table-warning,.table-warning>td,.table-warning>th{background-color:#fcf8e3}.table-hover .table-warning:hover{background-color:#faf2cc}.table-hover .table-warning:hover>td,.table-hover .table-warning:hover>th{background-color:#faf2cc}.table-danger,.table-danger>td,.table-danger>th{background-color:#f2dede}.table-hover .table-danger:hover{background-color:#ebcccc}.table-hover .table-danger:hover>td,.table-hover .table-danger:hover>th{background-color:#ebcccc}.table-responsive{display:block;width:100%;min-height:.01%;overflow-x:auto}.thead-inverse th{color:#fff;background-color:#373a3c}.thead-default th{color:#55595c;background-color:#eceeef}.table-inverse{color:#eceeef;background-color:#373a3c}.table-inverse.table-bordered{border:0}.table-inverse td,.table-inverse th,.table-inverse thead th{border-color:#55595c}.table-reflow thead{float:left}.table-reflow tbody{display:block;white-space:nowrap}.table-reflow td,.table-reflow th{border-top:1px solid #eceeef;border-left:1px solid #eceeef}.table-reflow td:last-child,.table-reflow th:last-child{border-right:1px solid #eceeef}.table-reflow tbody:last-child tr:last-child td,.table-reflow tbody:last-child tr:last-child th,.table-reflow tfoot:last-child tr:last-child td,.table-reflow tfoot:last-child tr:last-child th,.table-reflow thead:last-child tr:last-child td,.table-reflow thead:last-child tr:last-child th{border-bottom:1px solid #eceeef}.table-reflow tr{float:left}.table-reflow tr td,.table-reflow tr th{display:block!important;border:1px solid #eceeef}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;line-height:1.5;color:#55595c;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:.25rem}.form-control::-ms-expand{background-color:transparent;border:0}.form-control:focus{border-color:#66afe9;outline:0}.form-control::-webkit-input-placeholder{color:#999;opacity:1}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999;opacity:1}.form-control::placeholder{color:#999;opacity:1}.form-control:disabled,.form-control[readonly]{background-color:#eceeef;opacity:1}.form-control:disabled{cursor:not-allowed}.form-control-file,.form-control-range{display:block}.form-control-label{padding:.375rem .75rem;margin-bottom:0}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=time].form-control,input[type=datetime-local].form-control,input[type=month].form-control{line-height:2.25rem}.input-group-sm input[type=date].form-control,.input-group-sm input[type=time].form-control,.input-group-sm input[type=datetime-local].form-control,.input-group-sm input[type=month].form-control,input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:1.8625rem}.input-group-lg input[type=date].form-control,.input-group-lg input[type=time].form-control,.input-group-lg input[type=datetime-local].form-control,.input-group-lg input[type=month].form-control,input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:3.166667rem}}.form-control-static{min-height:2.25rem;padding-top:.375rem;padding-bottom:.375rem;margin-bottom:0}.form-control-static.form-control-lg,.form-control-static.form-control-sm,.input-group-lg>.form-control-static.form-control,.input-group-lg>.form-control-static.input-group-addon,.input-group-lg>.input-group-btn>.form-control-static.btn,.input-group-sm>.form-control-static.form-control,.input-group-sm>.form-control-static.input-group-addon,.input-group-sm>.input-group-btn>.form-control-static.btn{padding-right:0;padding-left:0}.form-control-sm,.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{padding:.275rem .75rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.form-control-lg,.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{padding:.75rem 1.25rem;font-size:1.25rem;line-height:1.333333;border-radius:.3rem}.form-group{margin-bottom:1rem}.checkbox,.radio{position:relative;display:block;margin-bottom:.75rem}.checkbox label,.radio label{padding-left:1.25rem;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox label input:only-child,.radio label input:only-child{position:static}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:.25rem;margin-left:-1.25rem}.checkbox+.checkbox,.radio+.radio{margin-top:-.25rem}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:1.25rem;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:.75rem}input[type=checkbox].disabled,input[type=checkbox]:disabled,input[type=radio].disabled,input[type=radio]:disabled{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label{cursor:not-allowed}.form-control-danger,.form-control-success,.form-control-warning{padding-right:2.25rem;background-repeat:no-repeat;background-position:center right .5625rem;-webkit-background-size:1.4625rem 1.4625rem;background-size:1.4625rem 1.4625rem}.has-success .checkbox,.has-success .checkbox-inline,.has-success .form-control-label,.has-success .radio,.has-success .radio-inline,.has-success .text-help,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#5cb85c}.has-success .form-control{border-color:#5cb85c}.has-success .input-group-addon{color:#5cb85c;background-color:#eaf6ea;border-color:#5cb85c}.has-success .form-control-feedback{color:#5cb85c}.has-success .form-control-success{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MTIgNzkyIj48cGF0aCBmaWxsPSIjNWNiODVjIiBkPSJNMjMzLjggNjEwYy0xMy4zIDAtMjYtNi0zNC0xNi44TDkwLjUgNDQ4LjhDNzYuMyA0MzAgODAgNDAzLjMgOTguOCAzODljMTguOC0xNC4yIDQ1LjUtMTAuNCA1OS44IDguNGw3MiA5NUw0NTEuMyAyNDJjMTIuNS0yMCAzOC44LTI2LjIgNTguOC0xMy43IDIwIDEyLjQgMjYgMzguNyAxMy43IDU4LjhMMjcwIDU5MGMtNy40IDEyLTIwLjIgMTkuNC0zNC4zIDIwaC0yeiIvPjwvc3ZnPg==)}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .form-control-label,.has-warning .radio,.has-warning .radio-inline,.has-warning .text-help,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#f0ad4e}.has-warning .form-control{border-color:#f0ad4e}.has-warning .input-group-addon{color:#f0ad4e;background-color:#fff;border-color:#f0ad4e}.has-warning .form-control-feedback{color:#f0ad4e}.has-warning .form-control-warning{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MTIgNzkyIj48cGF0aCBmaWxsPSIjZjBhZDRlIiBkPSJNNjAzIDY0MC4ybC0yNzguNS01MDljLTMuOC02LjYtMTAuOC0xMC42LTE4LjUtMTAuNnMtMTQuNyA0LTE4LjUgMTAuNkw5IDY0MC4yYy0zLjcgNi41LTMuNiAxNC40LjIgMjAuOCAzLjggNi41IDEwLjggMTAuNCAxOC4zIDEwLjRoNTU3YzcuNiAwIDE0LjYtNCAxOC40LTEwLjQgMy41LTYuNCAzLjYtMTQuNCAwLTIwLjh6bS0yNjYuNC0zMGgtNjEuMlY1NDloNjEuMnY2MS4yem0wLTEwN2gtNjEuMlYzMDRoNjEuMnYxOTl6Ii8+PC9zdmc+)}.has-danger .checkbox,.has-danger .checkbox-inline,.has-danger .form-control-label,.has-danger .radio,.has-danger .radio-inline,.has-danger .text-help,.has-danger.checkbox label,.has-danger.checkbox-inline label,.has-danger.radio label,.has-danger.radio-inline label{color:#d9534f}.has-danger .form-control{border-color:#d9534f}.has-danger .input-group-addon{color:#d9534f;background-color:#fdf7f7;border-color:#d9534f}.has-danger .form-control-feedback{color:#d9534f}.has-danger .form-control-danger{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MTIgNzkyIj48cGF0aCBmaWxsPSIjZDk1MzRmIiBkPSJNNDQ3IDU0NC40Yy0xNC40IDE0LjQtMzcuNiAxNC40LTUyIDBsLTg5LTkyLjctODkgOTIuN2MtMTQuNSAxNC40LTM3LjcgMTQuNC01MiAwLTE0LjQtMTQuNC0xNC40LTM3LjYgMC01Mmw5Mi40LTk2LjMtOTIuNC05Ni4zYy0xNC40LTE0LjQtMTQuNC0zNy42IDAtNTJzMzcuNi0xNC4zIDUyIDBsODkgOTIuOCA4OS4yLTkyLjdjMTQuNC0xNC40IDM3LjYtMTQuNCA1MiAwIDE0LjMgMTQuNCAxNC4zIDM3LjYgMCA1MkwzNTQuNiAzOTZsOTIuNCA5Ni40YzE0LjQgMTQuNCAxNC40IDM3LjYgMCA1MnoiLz48L3N2Zz4=)}@media (min-width:544px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .form-control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.btn{display:inline-block;padding:.375rem 1rem;font-size:1rem;font-weight:400;line-height:1.5;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;border-radius:.25rem}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:focus,.btn:hover{text-decoration:none}.btn.focus{text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0}.btn.disabled,.btn:disabled{cursor:not-allowed;opacity:.65}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-primary{color:#fff;background-color:#0275d8;border-color:#0275d8}.btn-primary:hover{color:#fff;background-color:#025aa5;border-color:#01549b}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#025aa5;border-color:#01549b}.btn-primary.active,.btn-primary:active,.open>.btn-primary.dropdown-toggle{color:#fff;background-color:#025aa5;background-image:none;border-color:#01549b}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.btn-primary.dropdown-toggle.focus,.open>.btn-primary.dropdown-toggle:focus,.open>.btn-primary.dropdown-toggle:hover{color:#fff;background-color:#014682;border-color:#01315a}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary:disabled.focus,.btn-primary:disabled:focus{background-color:#0275d8;border-color:#0275d8}.btn-primary.disabled:hover,.btn-primary:disabled:hover{background-color:#0275d8;border-color:#0275d8}.btn-secondary{color:#373a3c;background-color:#fff;border-color:#ccc}.btn-secondary:hover{color:#373a3c;background-color:#e6e6e6;border-color:#adadad}.btn-secondary.focus,.btn-secondary:focus{color:#373a3c;background-color:#e6e6e6;border-color:#adadad}.btn-secondary.active,.btn-secondary:active,.open>.btn-secondary.dropdown-toggle{color:#373a3c;background-color:#e6e6e6;background-image:none;border-color:#adadad}.btn-secondary.active.focus,.btn-secondary.active:focus,.btn-secondary.active:hover,.btn-secondary:active.focus,.btn-secondary:active:focus,.btn-secondary:active:hover,.open>.btn-secondary.dropdown-toggle.focus,.open>.btn-secondary.dropdown-toggle:focus,.open>.btn-secondary.dropdown-toggle:hover{color:#373a3c;background-color:#d4d4d4;border-color:#8c8c8c}.btn-secondary.disabled.focus,.btn-secondary.disabled:focus,.btn-secondary:disabled.focus,.btn-secondary:disabled:focus{background-color:#fff;border-color:#ccc}.btn-secondary.disabled:hover,.btn-secondary:disabled:hover{background-color:#fff;border-color:#ccc}.btn-info{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#2aabd2}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#2aabd2}.btn-info.active,.btn-info:active,.open>.btn-info.dropdown-toggle{color:#fff;background-color:#31b0d5;background-image:none;border-color:#2aabd2}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.btn-info.dropdown-toggle.focus,.open>.btn-info.dropdown-toggle:focus,.open>.btn-info.dropdown-toggle:hover{color:#fff;background-color:#269abc;border-color:#1f7e9a}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info:disabled.focus,.btn-info:disabled:focus{background-color:#5bc0de;border-color:#5bc0de}.btn-info.disabled:hover,.btn-info:disabled:hover{background-color:#5bc0de;border-color:#5bc0de}.btn-success{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#419641}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#419641}.btn-success.active,.btn-success:active,.open>.btn-success.dropdown-toggle{color:#fff;background-color:#449d44;background-image:none;border-color:#419641}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.btn-success.dropdown-toggle.focus,.open>.btn-success.dropdown-toggle:focus,.open>.btn-success.dropdown-toggle:hover{color:#fff;background-color:#398439;border-color:#2d672d}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success:disabled.focus,.btn-success:disabled:focus{background-color:#5cb85c;border-color:#5cb85c}.btn-success.disabled:hover,.btn-success:disabled:hover{background-color:#5cb85c;border-color:#5cb85c}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#eb9316}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#eb9316}.btn-warning.active,.btn-warning:active,.open>.btn-warning.dropdown-toggle{color:#fff;background-color:#ec971f;background-image:none;border-color:#eb9316}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.btn-warning.dropdown-toggle.focus,.open>.btn-warning.dropdown-toggle:focus,.open>.btn-warning.dropdown-toggle:hover{color:#fff;background-color:#d58512;border-color:#b06d0f}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning:disabled.focus,.btn-warning:disabled:focus{background-color:#f0ad4e;border-color:#f0ad4e}.btn-warning.disabled:hover,.btn-warning:disabled:hover{background-color:#f0ad4e;border-color:#f0ad4e}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d9534f}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#c12e2a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#c12e2a}.btn-danger.active,.btn-danger:active,.open>.btn-danger.dropdown-toggle{color:#fff;background-color:#c9302c;background-image:none;border-color:#c12e2a}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.btn-danger.dropdown-toggle.focus,.open>.btn-danger.dropdown-toggle:focus,.open>.btn-danger.dropdown-toggle:hover{color:#fff;background-color:#ac2925;border-color:#8b211e}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger:disabled.focus,.btn-danger:disabled:focus{background-color:#d9534f;border-color:#d9534f}.btn-danger.disabled:hover,.btn-danger:disabled:hover{background-color:#d9534f;border-color:#d9534f}.btn-primary-outline{color:#0275d8;background-color:transparent;background-image:none;border-color:#0275d8}.btn-primary-outline.active,.btn-primary-outline.focus,.btn-primary-outline:active,.btn-primary-outline:focus,.open>.btn-primary-outline.dropdown-toggle{color:#fff;background-color:#0275d8;border-color:#0275d8}.btn-primary-outline:hover{color:#fff;background-color:#0275d8;border-color:#0275d8}.btn-primary-outline.disabled.focus,.btn-primary-outline.disabled:focus,.btn-primary-outline:disabled.focus,.btn-primary-outline:disabled:focus{border-color:#43a7fd}.btn-primary-outline.disabled:hover,.btn-primary-outline:disabled:hover{border-color:#43a7fd}.btn-secondary-outline{color:#ccc;background-color:transparent;background-image:none;border-color:#ccc}.btn-secondary-outline.active,.btn-secondary-outline.focus,.btn-secondary-outline:active,.btn-secondary-outline:focus,.open>.btn-secondary-outline.dropdown-toggle{color:#fff;background-color:#ccc;border-color:#ccc}.btn-secondary-outline:hover{color:#fff;background-color:#ccc;border-color:#ccc}.btn-secondary-outline.disabled.focus,.btn-secondary-outline.disabled:focus,.btn-secondary-outline:disabled.focus,.btn-secondary-outline:disabled:focus{border-color:#fff}.btn-secondary-outline.disabled:hover,.btn-secondary-outline:disabled:hover{border-color:#fff}.btn-info-outline{color:#5bc0de;background-color:transparent;background-image:none;border-color:#5bc0de}.btn-info-outline.active,.btn-info-outline.focus,.btn-info-outline:active,.btn-info-outline:focus,.open>.btn-info-outline.dropdown-toggle{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.btn-info-outline:hover{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.btn-info-outline.disabled.focus,.btn-info-outline.disabled:focus,.btn-info-outline:disabled.focus,.btn-info-outline:disabled:focus{border-color:#b0e1ef}.btn-info-outline.disabled:hover,.btn-info-outline:disabled:hover{border-color:#b0e1ef}.btn-success-outline{color:#5cb85c;background-color:transparent;background-image:none;border-color:#5cb85c}.btn-success-outline.active,.btn-success-outline.focus,.btn-success-outline:active,.btn-success-outline:focus,.open>.btn-success-outline.dropdown-toggle{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.btn-success-outline:hover{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.btn-success-outline.disabled.focus,.btn-success-outline.disabled:focus,.btn-success-outline:disabled.focus,.btn-success-outline:disabled:focus{border-color:#a3d7a3}.btn-success-outline.disabled:hover,.btn-success-outline:disabled:hover{border-color:#a3d7a3}.btn-warning-outline{color:#f0ad4e;background-color:transparent;background-image:none;border-color:#f0ad4e}.btn-warning-outline.active,.btn-warning-outline.focus,.btn-warning-outline:active,.btn-warning-outline:focus,.open>.btn-warning-outline.dropdown-toggle{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.btn-warning-outline:hover{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.btn-warning-outline.disabled.focus,.btn-warning-outline.disabled:focus,.btn-warning-outline:disabled.focus,.btn-warning-outline:disabled:focus{border-color:#f8d9ac}.btn-warning-outline.disabled:hover,.btn-warning-outline:disabled:hover{border-color:#f8d9ac}.btn-danger-outline{color:#d9534f;background-color:transparent;background-image:none;border-color:#d9534f}.btn-danger-outline.active,.btn-danger-outline.focus,.btn-danger-outline:active,.btn-danger-outline:focus,.open>.btn-danger-outline.dropdown-toggle{color:#fff;background-color:#d9534f;border-color:#d9534f}.btn-danger-outline:hover{color:#fff;background-color:#d9534f;border-color:#d9534f}.btn-danger-outline.disabled.focus,.btn-danger-outline.disabled:focus,.btn-danger-outline:disabled.focus,.btn-danger-outline:disabled:focus{border-color:#eba5a3}.btn-danger-outline.disabled:hover,.btn-danger-outline:disabled:hover{border-color:#eba5a3}.btn-link{font-weight:400;color:#0275d8;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link:disabled{background-color:transparent}.btn-link,.btn-link:active,.btn-link:focus{border-color:transparent}.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#014c8c;text-decoration:underline;background-color:transparent}.btn-link:disabled:focus,.btn-link:disabled:hover{color:#818a91;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:.75rem 1.25rem;font-size:1.25rem;line-height:1.333333;border-radius:.3rem}.btn-group-sm>.btn,.btn-sm{padding:.25rem .75rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height;-o-transition-property:height;transition-property:height}.dropdown,.dropup{position:relative}.dropdown-toggle::after{display:inline-block;width:0;height:0;margin-right:.25rem;margin-left:.25rem;vertical-align:middle;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-left:.3em solid transparent}.dropdown-toggle:focus{outline:0}.dropup .dropdown-toggle::after{border-top:0;border-bottom:.3em solid}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:1rem;color:#373a3c;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid rgba(0,0,0,.15);border-radius:.25rem}.dropdown-divider{height:1px;margin:.5rem 0;overflow:hidden;background-color:#e5e5e5}.dropdown-item{display:block;width:100%;padding:3px 20px;clear:both;font-weight:400;line-height:1.5;color:#373a3c;text-align:inherit;white-space:nowrap;background:0 0;border:0}.dropdown-item:focus,.dropdown-item:hover{color:#2b2d2f;text-decoration:none;background-color:#f5f5f5}.dropdown-item.active,.dropdown-item.active:focus,.dropdown-item.active:hover{color:#fff;text-decoration:none;background-color:#0275d8;outline:0}.dropdown-item.disabled,.dropdown-item.disabled:focus,.dropdown-item.disabled:hover{color:#818a91}.dropdown-item.disabled:focus,.dropdown-item.disabled:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:"progid:DXImageTransform.Microsoft.gradient(enabled = false)"}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:.875rem;line-height:1.5;color:#818a91;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:.3em solid}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus{z-index:2}.btn-group-vertical>.btn:hover,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar::after{display:table;clear:both;content:""}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group-lg.btn-group>.btn+.dropdown-toggle,.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn .caret{margin-left:0}.btn-group-lg>.btn .caret,.btn-lg .caret{border-width:.3em .3em 0;border-bottom-width:0}.dropup .btn-group-lg>.btn .caret,.dropup .btn-lg .caret{border-width:0 .3em .3em}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group::after{display:table;clear:both;content:""}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:.25rem;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:.25rem}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:active,.input-group .form-control:focus,.input-group .form-control:hover{z-index:3}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1;color:#55595c;text-align:center;background-color:#eceeef;border:1px solid #ccc;border-radius:.25rem}.input-group-addon.form-control-sm,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.input-group-addon.btn{padding:.275rem .75rem;font-size:.875rem;border-radius:.2rem}.input-group-addon.form-control-lg,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.input-group-addon.btn{padding:.75rem 1.25rem;font-size:1.25rem;border-radius:.3rem}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:3}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.input-group-btn:last-child>.btn-group:active,.input-group-btn:last-child>.btn-group:focus,.input-group-btn:last-child>.btn-group:hover,.input-group-btn:last-child>.btn:active,.input-group-btn:last-child>.btn:focus,.input-group-btn:last-child>.btn:hover{z-index:3}.c-input{position:relative;display:inline;padding-left:1.5rem;color:#555;cursor:pointer}.c-input>input{position:absolute;z-index:-1;opacity:0}.c-input>input:checked~.c-indicator{color:#fff;background-color:#0074d9}.c-input>input:focus~.c-indicator{-webkit-box-shadow:0 0 0 .075rem #fff,0 0 0 .2rem #0074d9;box-shadow:0 0 0 .075rem #fff,0 0 0 .2rem #0074d9}.c-input>input:active~.c-indicator{color:#fff;background-color:#84c6ff}.c-input+.c-input{margin-left:1rem}.c-indicator{position:absolute;top:0;left:0;display:block;width:1rem;height:1rem;font-size:65%;line-height:1rem;color:#eee;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#eee;background-repeat:no-repeat;background-position:center center;-webkit-background-size:50% 50%;background-size:50% 50%}.c-checkbox .c-indicator{border-radius:.25rem}.c-checkbox input:checked~.c-indicator{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNy4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgOCA4IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA4IDgiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHBhdGggZmlsbD0iI0ZGRkZGRiIgZD0iTTYuNCwxTDUuNywxLjdMMi45LDQuNUwyLjEsMy43TDEuNCwzTDAsNC40bDAuNywwLjdsMS41LDEuNWwwLjcsMC43bDAuNy0wLjdsMy41LTMuNWwwLjctMC43TDYuNCwxTDYuNCwxeiINCgkvPg0KPC9zdmc+DQo=)}.c-checkbox input:indeterminate~.c-indicator{background-color:#0074d9;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNy4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB3aWR0aD0iOHB4IiBoZWlnaHQ9IjhweCIgdmlld0JveD0iMCAwIDggOCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgOCA4IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwYXRoIGZpbGw9IiNGRkZGRkYiIGQ9Ik0wLDN2Mmg4VjNIMHoiLz4NCjwvc3ZnPg0K)}.c-radio .c-indicator{border-radius:50%}.c-radio input:checked~.c-indicator{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNy4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgOCA4IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA4IDgiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHBhdGggZmlsbD0iI0ZGRkZGRiIgZD0iTTQsMUMyLjMsMSwxLDIuMywxLDRzMS4zLDMsMywzczMtMS4zLDMtM1M1LjcsMSw0LDF6Ii8+DQo8L3N2Zz4NCg==)}.c-inputs-stacked .c-input{display:inline}.c-inputs-stacked .c-input::after{display:block;margin-bottom:.25rem;content:""}.c-inputs-stacked .c-input+.c-input{margin-left:0}.c-select{display:inline-block;max-width:100%;-webkit-appearance:none;padding:.375rem 1.75rem .375rem .75rem;padding-right:.75rem\9;color:#55595c;vertical-align:middle;background:#fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAUCAMAAACzvE1FAAAADFBMVEUzMzMzMzMzMzMzMzMKAG/3AAAAA3RSTlMAf4C/aSLHAAAAPElEQVR42q3NMQ4AIAgEQTn//2cLdRKppSGzBYwzVXvznNWs8C58CiussPJj8h6NwgorrKRdTvuV9v16Afn0AYFOB7aYAAAAAElFTkSuQmCC) no-repeat right .75rem center;background-image:none\9;-webkit-background-size:8px 10px;background-size:8px 10px;border:1px solid #ccc;-moz-appearance:none}.c-select:focus{border-color:#51a7e8;outline:0}.c-select::-ms-expand{opacity:0}.c-select-sm{padding-top:3px;padding-bottom:3px;font-size:12px}.c-select-sm:not([multiple]){height:26px;min-height:26px}.file{position:relative;display:inline-block;height:2.5rem;cursor:pointer}.file input{min-width:14rem;margin:0;filter:alpha(opacity=0);opacity:0}.file-custom{position:absolute;top:0;right:0;left:0;z-index:5;height:2.5rem;padding:.5rem 1rem;line-height:1.5;color:#555;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff;border:1px solid #ddd;border-radius:.25rem}.file-custom::after{content:"Choose file..."}.file-custom::before{position:absolute;top:-.075rem;right:-.075rem;bottom:-.075rem;z-index:6;display:block;height:2.5rem;padding:.5rem 1rem;line-height:1.5;color:#555;content:"Browse";background-color:#eee;border:1px solid #ddd;border-radius:0 .25rem .25rem 0}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:inline-block}.nav-link:focus,.nav-link:hover{text-decoration:none}.nav-link.disabled{color:#818a91}.nav-link.disabled,.nav-link.disabled:focus,.nav-link.disabled:hover{color:#818a91;cursor:not-allowed;background-color:transparent}.nav-inline .nav-item{display:inline-block}.nav-inline .nav-item+.nav-item,.nav-inline .nav-link+.nav-link{margin-left:1rem}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs::after{display:table;clear:both;content:""}.nav-tabs .nav-item{float:left;margin-bottom:-1px}.nav-tabs .nav-item+.nav-item{margin-left:.2rem}.nav-tabs .nav-link{display:block;padding:.5em 1em;border:1px solid transparent;border-radius:.25rem .25rem 0 0}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{border-color:#eceeef #eceeef #ddd}.nav-tabs .nav-link.disabled,.nav-tabs .nav-link.disabled:focus,.nav-tabs .nav-link.disabled:hover{color:#818a91;background-color:transparent;border-color:transparent}.nav-tabs .nav-item.open .nav-link,.nav-tabs .nav-item.open .nav-link:focus,.nav-tabs .nav-item.open .nav-link:hover,.nav-tabs .nav-link.active,.nav-tabs .nav-link.active:focus,.nav-tabs .nav-link.active:hover{color:#55595c;background-color:#fff;border-color:#ddd #ddd transparent}.nav-pills::after{display:table;clear:both;content:""}.nav-pills .nav-item{float:left}.nav-pills .nav-item+.nav-item{margin-left:.2rem}.nav-pills .nav-link{display:block;padding:.5em 1em;border-radius:.25rem}.nav-pills .nav-item.open .nav-link,.nav-pills .nav-item.open .nav-link:focus,.nav-pills .nav-item.open .nav-link:hover,.nav-pills .nav-link.active,.nav-pills .nav-link.active:focus,.nav-pills .nav-link.active:hover{color:#fff;cursor:default;background-color:#0275d8}.nav-stacked .nav-item{display:block;float:none}.nav-stacked .nav-item+.nav-item{margin-top:.2rem;margin-left:0}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;padding:.5rem 1rem}.navbar::after{display:table;clear:both;content:""}@media (min-width:544px){.navbar{border-radius:.25rem}}.navbar-full{z-index:1000}@media (min-width:544px){.navbar-full{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:544px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0}.navbar-fixed-bottom{bottom:0}.navbar-sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1030;width:100%}@media (min-width:544px){.navbar-sticky-top{border-radius:0}}.navbar-brand{float:left;padding-top:.25rem;padding-bottom:.25rem;margin-right:1rem;font-size:1.25rem}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}.navbar-divider{float:left;width:1px;padding-top:.425rem;padding-bottom:.425rem;margin-right:1rem;margin-left:1rem;overflow:hidden}.navbar-divider::before{content:"\00a0"}.navbar-toggler{padding:.5rem .75rem;font-size:1.25rem;line-height:1;background:0 0;border:1px solid transparent;border-radius:.25rem}.navbar-toggler:focus,.navbar-toggler:hover{text-decoration:none}@media (min-width:544px){.navbar-toggleable-xs{display:block!important}}@media (min-width:768px){.navbar-toggleable-sm{display:block!important}}@media (min-width:992px){.navbar-toggleable-md{display:block!important}}.navbar-nav .nav-item{float:left}.navbar-nav .nav-link{display:block;padding-top:.425rem;padding-bottom:.425rem}.navbar-nav .nav-link+.nav-link{margin-left:1rem}.navbar-nav .nav-item+.nav-item{margin-left:1rem}.navbar-light .navbar-brand{color:rgba(0,0,0,.8)}.navbar-light .navbar-brand:focus,.navbar-light .navbar-brand:hover{color:rgba(0,0,0,.8)}.navbar-light .navbar-nav .nav-link{color:rgba(0,0,0,.3)}.navbar-light .navbar-nav .nav-link:focus,.navbar-light .navbar-nav .nav-link:hover{color:rgba(0,0,0,.6)}.navbar-light .navbar-nav .active>.nav-link,.navbar-light .navbar-nav .active>.nav-link:focus,.navbar-light .navbar-nav .active>.nav-link:hover,.navbar-light .navbar-nav .nav-link.active,.navbar-light .navbar-nav .nav-link.active:focus,.navbar-light .navbar-nav .nav-link.active:hover,.navbar-light .navbar-nav .nav-link.open,.navbar-light .navbar-nav .nav-link.open:focus,.navbar-light .navbar-nav .nav-link.open:hover,.navbar-light .navbar-nav .open>.nav-link,.navbar-light .navbar-nav .open>.nav-link:focus,.navbar-light .navbar-nav .open>.nav-link:hover{color:rgba(0,0,0,.8)}.navbar-light .navbar-divider{background-color:rgba(0,0,0,.075)}.navbar-dark .navbar-brand{color:#fff}.navbar-dark .navbar-brand:focus,.navbar-dark .navbar-brand:hover{color:#fff}.navbar-dark .navbar-nav .nav-link{color:rgba(255,255,255,.5)}.navbar-dark .navbar-nav .nav-link:focus,.navbar-dark .navbar-nav .nav-link:hover{color:rgba(255,255,255,.75)}.navbar-dark .navbar-nav .active>.nav-link,.navbar-dark .navbar-nav .active>.nav-link:focus,.navbar-dark .navbar-nav .active>.nav-link:hover,.navbar-dark .navbar-nav .nav-link.active,.navbar-dark .navbar-nav .nav-link.active:focus,.navbar-dark .navbar-nav .nav-link.active:hover,.navbar-dark .navbar-nav .nav-link.open,.navbar-dark .navbar-nav .nav-link.open:focus,.navbar-dark .navbar-nav .nav-link.open:hover,.navbar-dark .navbar-nav .open>.nav-link,.navbar-dark .navbar-nav .open>.nav-link:focus,.navbar-dark .navbar-nav .open>.nav-link:hover{color:#fff}.navbar-dark .navbar-divider{background-color:rgba(255,255,255,.075)}.card{position:relative;display:block;margin-bottom:.75rem;background-color:#fff;border:1px solid #e5e5e5;border-radius:.25rem}.card-block{padding:1.25rem}.card-title{margin-bottom:.75rem}.card-subtitle{margin-top:-.375rem;margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:1.25rem}.card>.list-group:first-child .list-group-item:first-child{border-radius:.25rem .25rem 0 0}.card>.list-group:last-child .list-group-item:last-child{border-radius:0 0 .25rem .25rem}.card-header{padding:.75rem 1.25rem;background-color:#f5f5f5;border-bottom:1px solid #e5e5e5}.card-header:first-child{border-radius:.25rem .25rem 0 0}.card-footer{padding:.75rem 1.25rem;background-color:#f5f5f5;border-top:1px solid #e5e5e5}.card-footer:last-child{border-radius:0 0 .25rem .25rem}.card-primary{background-color:#0275d8;border-color:#0275d8}.card-success{background-color:#5cb85c;border-color:#5cb85c}.card-info{background-color:#5bc0de;border-color:#5bc0de}.card-warning{background-color:#f0ad4e;border-color:#f0ad4e}.card-danger{background-color:#d9534f;border-color:#d9534f}.card-primary-outline{background-color:transparent;border-color:#0275d8}.card-secondary-outline{background-color:transparent;border-color:#ccc}.card-info-outline{background-color:transparent;border-color:#5bc0de}.card-success-outline{background-color:transparent;border-color:#5cb85c}.card-warning-outline{background-color:transparent;border-color:#f0ad4e}.card-danger-outline{background-color:transparent;border-color:#d9534f}.card-inverse .card-footer,.card-inverse .card-header{border-bottom:1px solid rgba(255,255,255,.2)}.card-inverse .card-blockquote,.card-inverse .card-footer,.card-inverse .card-header,.card-inverse .card-title{color:#fff}.card-inverse .card-blockquote>footer,.card-inverse .card-link,.card-inverse .card-text{color:rgba(255,255,255,.65)}.card-inverse .card-link:focus,.card-inverse .card-link:hover{color:#fff}.card-blockquote{padding:0;margin-bottom:0;border-left:0}.card-img{border-radius:.25rem}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:1.25rem}.card-img-top{border-radius:.25rem .25rem 0 0}.card-img-bottom{border-radius:0 0 .25rem .25rem}@media (min-width:544px){.card-deck{display:table;table-layout:fixed;border-spacing:1.25rem 0}.card-deck .card{display:table-cell;width:1%;vertical-align:top}.card-deck-wrapper{margin-right:-1.25rem;margin-left:-1.25rem}}@media (min-width:544px){.card-group{display:table;width:100%;table-layout:fixed}.card-group .card{display:table-cell;vertical-align:top}.card-group .card+.card{margin-left:0;border-left:0}.card-group .card:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.card-group .card:first-child .card-img-top{border-top-right-radius:0}.card-group .card:first-child .card-img-bottom{border-bottom-right-radius:0}.card-group .card:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.card-group .card:last-child .card-img-top{border-top-left-radius:0}.card-group .card:last-child .card-img-bottom{border-bottom-left-radius:0}.card-group .card:not(:first-child):not(:last-child){border-radius:0}.card-group .card:not(:first-child):not(:last-child) .card-img-bottom,.card-group .card:not(:first-child):not(:last-child) .card-img-top{border-radius:0}}@media (min-width:544px){.card-columns{-webkit-column-count:3;-moz-column-count:3;column-count:3;-webkit-column-gap:1.25rem;-moz-column-gap:1.25rem;column-gap:1.25rem}.card-columns .card{display:inline-block;width:100%}}.breadcrumb{padding:.75rem 1rem;margin-bottom:1rem;list-style:none;background-color:#eceeef;border-radius:.25rem}.breadcrumb::after{display:table;clear:both;content:""}.breadcrumb>li{float:left}.breadcrumb>li+li::before{padding-right:.5rem;padding-left:.5rem;color:#818a91;content:"/"}.breadcrumb>.active{color:#818a91}.pagination{display:inline-block;padding-left:0;margin-top:1rem;margin-bottom:1rem;border-radius:.25rem}.page-item{display:inline}.page-item:first-child .page-link{margin-left:0;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.page-item:last-child .page-link{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.page-item.active .page-link,.page-item.active .page-link:focus,.page-item.active .page-link:hover{z-index:2;color:#fff;cursor:default;background-color:#0275d8;border-color:#0275d8}.page-item.disabled .page-link,.page-item.disabled .page-link:focus,.page-item.disabled .page-link:hover{color:#818a91;cursor:not-allowed;background-color:#fff;border-color:#ddd}.page-link{position:relative;float:left;padding:.5rem .75rem;margin-left:-1px;line-height:1.5;color:#0275d8;text-decoration:none;background-color:#fff;border:1px solid #ddd}.page-link:focus,.page-link:hover{color:#014c8c;background-color:#eceeef;border-color:#ddd}.pagination-lg .page-link{padding:.75rem 1.5rem;font-size:1.25rem;line-height:1.333333}.pagination-lg .page-item:first-child .page-link{border-top-left-radius:.3rem;border-bottom-left-radius:.3rem}.pagination-lg .page-item:last-child .page-link{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.pagination-sm .page-link{padding:.275rem .75rem;font-size:.875rem;line-height:1.5}.pagination-sm .page-item:first-child .page-link{border-top-left-radius:.2rem;border-bottom-left-radius:.2rem}.pagination-sm .page-item:last-child .page-link{border-top-right-radius:.2rem;border-bottom-right-radius:.2rem}.pager{padding-left:0;margin-top:1rem;margin-bottom:1rem;text-align:center;list-style:none}.pager::after{display:table;clear:both;content:""}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eceeef}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover{color:#818a91;cursor:not-allowed;background-color:#fff}.pager .disabled>span{color:#818a91;cursor:not-allowed;background-color:#fff}.pager-next>a,.pager-next>span{float:right}.pager-prev>a,.pager-prev>span{float:left}.label{display:inline-block;padding:.25em .4em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem}.label:empty{display:none}.btn .label{position:relative;top:-1px}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label-pill{padding-right:.6em;padding-left:.6em;border-radius:10rem}.label-default{background-color:#818a91}.label-default[href]:focus,.label-default[href]:hover{background-color:#687077}.label-primary{background-color:#0275d8}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#025aa5}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.jumbotron{padding:2rem 1rem;margin-bottom:2rem;background-color:#eceeef;border-radius:.3rem}@media (min-width:544px){.jumbotron{padding:4rem 2rem}}.jumbotron-hr{border-top-color:#d0d5d8}.jumbotron-fluid{padding-right:0;padding-left:0;border-radius:0}.alert{padding:15px;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:35px}.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d0e9c6}.alert-success hr{border-top-color:#c1e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bcdff1}.alert-info hr{border-top-color:#a6d5ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faf2cc}.alert-warning hr{border-top-color:#f7ecb5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebcccc}.alert-danger hr{border-top-color:#e4b9b9}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:1rem 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:1rem 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:1rem 0}to{background-position:0 0}}.progress{display:block;width:100%;height:1rem;margin-bottom:1rem}.progress[value]{-webkit-appearance:none;color:#0074d9;border:0;-moz-appearance:none;appearance:none}.progress[value]::-webkit-progress-bar{background-color:#eee;border-radius:.25rem}.progress[value]::-webkit-progress-value::before{content:attr(value)}.progress[value]::-webkit-progress-value{background-color:#0074d9;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.progress[value="100"]::-webkit-progress-value{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}@media screen and (min-width:0\0){.progress{background-color:#eee;border-radius:.25rem}.progress-bar{display:inline-block;height:1rem;text-indent:-999rem;background-color:#0074d9;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.progress[width^="0"]{min-width:2rem;color:#818a91;background-color:transparent;background-image:none}.progress[width="100%"]{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}}.progress-striped[value]::-webkit-progress-value{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:1rem 1rem;background-size:1rem 1rem}.progress-striped[value]::-moz-progress-bar{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:1rem 1rem}@media screen and (min-width:0\0){.progress-bar-striped{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:1rem 1rem;background-size:1rem 1rem}}.progress-animated[value]::-webkit-progress-value{-webkit-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-animated[value]::-moz-progress-bar{animation:progress-bar-stripes 2s linear infinite}@media screen and (min-width:0\0){.progress-animated .progress-bar-striped{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}}.progress-success[value]::-webkit-progress-value{background-color:#5cb85c}.progress-success[value]::-moz-progress-bar{background-color:#5cb85c}@media screen and (min-width:0\0){.progress-success .progress-bar{background-color:#5cb85c}}.progress-info[value]::-webkit-progress-value{background-color:#5bc0de}.progress-info[value]::-moz-progress-bar{background-color:#5bc0de}@media screen and (min-width:0\0){.progress-info .progress-bar{background-color:#5bc0de}}.progress-warning[value]::-webkit-progress-value{background-color:#f0ad4e}.progress-warning[value]::-moz-progress-bar{background-color:#f0ad4e}@media screen and (min-width:0\0){.progress-warning .progress-bar{background-color:#f0ad4e}}.progress-danger[value]::-webkit-progress-value{background-color:#d9534f}.progress-danger[value]::-moz-progress-bar{background-color:#d9534f}@media screen and (min-width:0\0){.progress-danger .progress-bar{background-color:#d9534f}}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right{padding-left:10px}.media-left{padding-right:10px}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:0}.list-group-item{position:relative;display:block;padding:.75rem 1.25rem;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.list-group-flush .list-group-item{border-width:1px 0;border-radius:0}.list-group-flush:first-child .list-group-item:first-child{border-top:0}.list-group-flush:last-child .list-group-item:last-child{border-bottom:0}a.list-group-item,button.list-group-item{width:100%;color:#555;text-align:inherit}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#818a91;cursor:not-allowed;background-color:#eceeef}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#818a91}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#0275d8;border-color:#0275d8}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#a8d6fe}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-21by9{padding-bottom:42.857143%}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.embed-responsive-1by1{padding-bottom:100%}.close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:transform .3s ease-out,-o-transform .3s ease-out;transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out,-o-transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.in{opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header::after{display:table;clear:both;content:""}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.5}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer::after{display:table;clear:both;content:""}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:544px){.modal-dialog{width:600px;margin:30px auto}.modal-sm{width:300px}}@media (min-width:768px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:.875rem;font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;opacity:0;line-break:auto}.tooltip.in{opacity:.9}.tooltip.bs-tether-element-attached-bottom,.tooltip.tooltip-top{padding:5px 0;margin-top:-3px}.tooltip.bs-tether-element-attached-bottom .tooltip-arrow,.tooltip.tooltip-top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.bs-tether-element-attached-left,.tooltip.tooltip-right{padding:0 5px;margin-left:3px}.tooltip.bs-tether-element-attached-left .tooltip-arrow,.tooltip.tooltip-right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.bs-tether-element-attached-top,.tooltip.tooltip-bottom{padding:5px 0;margin-top:3px}.tooltip.bs-tether-element-attached-top .tooltip-arrow,.tooltip.tooltip-bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bs-tether-element-attached-right,.tooltip.tooltip-left{padding:0 5px;margin-left:-3px}.tooltip.bs-tether-element-attached-right .tooltip-arrow,.tooltip.tooltip-left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:.25rem}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.popover{position:absolute;top:0;left:0;z-index:1060;display:block;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:.875rem;font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem;line-break:auto}.popover.bs-tether-element-attached-bottom,.popover.popover-top{margin-top:-10px}.popover.bs-tether-element-attached-bottom .popover-arrow,.popover.popover-top .popover-arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.bs-tether-element-attached-bottom .popover-arrow::after,.popover.popover-top .popover-arrow::after{bottom:1px;margin-left:-10px;content:"";border-top-color:#fff;border-bottom-width:0}.popover.bs-tether-element-attached-left,.popover.popover-right{margin-left:10px}.popover.bs-tether-element-attached-left .popover-arrow,.popover.popover-right .popover-arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.bs-tether-element-attached-left .popover-arrow::after,.popover.popover-right .popover-arrow::after{bottom:-10px;left:1px;content:"";border-right-color:#fff;border-left-width:0}.popover.bs-tether-element-attached-top,.popover.popover-bottom{margin-top:10px}.popover.bs-tether-element-attached-top .popover-arrow,.popover.popover-bottom .popover-arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:rgba(0,0,0,.25)}.popover.bs-tether-element-attached-top .popover-arrow::after,.popover.popover-bottom .popover-arrow::after{top:1px;margin-left:-10px;content:"";border-top-width:0;border-bottom-color:#fff}.popover.bs-tether-element-attached-right,.popover.popover-left{margin-left:-10px}.popover.bs-tether-element-attached-right .popover-arrow,.popover.popover-left .popover-arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:rgba(0,0,0,.25)}.popover.bs-tether-element-attached-right .popover-arrow::after,.popover.popover-left .popover-arrow::after{right:1px;bottom:-10px;content:"";border-right-width:0;border-left-color:#fff}.popover-title{padding:8px 14px;margin:0;font-size:1rem;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:-.7rem -.7rem 0 0}.popover-content{padding:9px 14px}.popover-arrow,.popover-arrow::after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover-arrow{border-width:11px}.popover-arrow::after{content:"";border-width:10px}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.carousel-item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.carousel-item>a>img,.carousel-inner>.carousel-item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.carousel-item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:transform .6s ease-in-out,-o-transform .6s ease-in-out;transition:-webkit-transform .6s ease-in-out;transition:transform .6s ease-in-out;transition:transform .6s ease-in-out,-webkit-transform .6s ease-in-out,-o-transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-inner>.carousel-item.active.right,.carousel-inner>.carousel-item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.carousel-item.active.left,.carousel-inner>.carousel-item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.carousel-item.active,.carousel-inner>.carousel-item.next.left,.carousel-inner>.carousel-item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);opacity:.5}.carousel-control.left{background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;width:20px;height:20px;margin-top:-10px;font-family:serif;line-height:1}.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-prev::before{content:"\2039"}.carousel-control .icon-next::before{content:"\203a"}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:transparent;border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media (min-width:544px){.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-15px;font-size:30px}.carousel-control .icon-prev{margin-left:-15px}.carousel-control .icon-next{margin-right:-15px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.clearfix::after{display:table;clear:both;content:""}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-xs-left{float:left!important}.pull-xs-right{float:right!important}.pull-xs-none{float:none!important}@media (min-width:544px){.pull-sm-left{float:left!important}.pull-sm-right{float:right!important}.pull-sm-none{float:none!important}}@media (min-width:768px){.pull-md-left{float:left!important}.pull-md-right{float:right!important}.pull-md-none{float:none!important}}@media (min-width:992px){.pull-lg-left{float:left!important}.pull-lg-right{float:right!important}.pull-lg-none{float:none!important}}@media (min-width:1200px){.pull-xl-left{float:left!important}.pull-xl-right{float:right!important}.pull-xl-none{float:none!important}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}.invisible{visibility:hidden!important}.text-hide{font:"0/0" a;color:transparent;text-shadow:none;background-color:transparent;border:0}.text-justify{text-align:justify!important}.text-nowrap{white-space:nowrap!important}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-xs-left{text-align:left!important}.text-xs-right{text-align:right!important}.text-xs-center{text-align:center!important}@media (min-width:544px){.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.font-weight-normal{font-weight:400}.font-weight-bold{font-weight:700}.font-italic{font-style:italic}.text-muted{color:#818a91}.text-primary{color:#0275d8!important}a.text-primary:focus,a.text-primary:hover{color:#025aa5}.text-success{color:#5cb85c!important}a.text-success:focus,a.text-success:hover{color:#449d44}.text-info{color:#5bc0de!important}a.text-info:focus,a.text-info:hover{color:#31b0d5}.text-warning{color:#f0ad4e!important}a.text-warning:focus,a.text-warning:hover{color:#ec971f}.text-danger{color:#d9534f!important}a.text-danger:focus,a.text-danger:hover{color:#c9302c}.bg-inverse{color:#eceeef;background-color:#373a3c}.bg-faded{background-color:#f7f7f9}.bg-primary{color:#fff!important;background-color:#0275d8!important}a.bg-primary:focus,a.bg-primary:hover{background-color:#025aa5}.bg-success{color:#fff!important;background-color:#5cb85c!important}a.bg-success:focus,a.bg-success:hover{background-color:#449d44}.bg-info{color:#fff!important;background-color:#5bc0de!important}a.bg-info:focus,a.bg-info:hover{background-color:#31b0d5}.bg-warning{color:#fff!important;background-color:#f0ad4e!important}a.bg-warning:focus,a.bg-warning:hover{background-color:#ec971f}.bg-danger{color:#fff!important;background-color:#d9534f!important}a.bg-danger:focus,a.bg-danger:hover{background-color:#c9302c}.m-x-auto{margin-right:auto!important;margin-left:auto!important}.m-a-0{margin:0 0!important}.m-t-0{margin-top:0!important}.m-r-0{margin-right:0!important}.m-b-0{margin-bottom:0!important}.m-l-0{margin-left:0!important}.m-x-0{margin-right:0!important;margin-left:0!important}.m-y-0{margin-top:0!important;margin-bottom:0!important}.m-a-1{margin:1rem 1rem!important}.m-t-1{margin-top:1rem!important}.m-r-1{margin-right:1rem!important}.m-b-1{margin-bottom:1rem!important}.m-l-1{margin-left:1rem!important}.m-x-1{margin-right:1rem!important;margin-left:1rem!important}.m-y-1{margin-top:1rem!important;margin-bottom:1rem!important}.m-a-2{margin:1.5rem 1.5rem!important}.m-t-2{margin-top:1.5rem!important}.m-r-2{margin-right:1.5rem!important}.m-b-2{margin-bottom:1.5rem!important}.m-l-2{margin-left:1.5rem!important}.m-x-2{margin-right:1.5rem!important;margin-left:1.5rem!important}.m-y-2{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.m-a-3{margin:3rem 3rem!important}.m-t-3{margin-top:3rem!important}.m-r-3{margin-right:3rem!important}.m-b-3{margin-bottom:3rem!important}.m-l-3{margin-left:3rem!important}.m-x-3{margin-right:3rem!important;margin-left:3rem!important}.m-y-3{margin-top:3rem!important;margin-bottom:3rem!important}.p-a-0{padding:0 0!important}.p-t-0{padding-top:0!important}.p-r-0{padding-right:0!important}.p-b-0{padding-bottom:0!important}.p-l-0{padding-left:0!important}.p-x-0{padding-right:0!important;padding-left:0!important}.p-y-0{padding-top:0!important;padding-bottom:0!important}.p-a-1{padding:1rem 1rem!important}.p-t-1{padding-top:1rem!important}.p-r-1{padding-right:1rem!important}.p-b-1{padding-bottom:1rem!important}.p-l-1{padding-left:1rem!important}.p-x-1{padding-right:1rem!important;padding-left:1rem!important}.p-y-1{padding-top:1rem!important;padding-bottom:1rem!important}.p-a-2{padding:1.5rem 1.5rem!important}.p-t-2{padding-top:1.5rem!important}.p-r-2{padding-right:1.5rem!important}.p-b-2{padding-bottom:1.5rem!important}.p-l-2{padding-left:1.5rem!important}.p-x-2{padding-right:1.5rem!important;padding-left:1.5rem!important}.p-y-2{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.p-a-3{padding:3rem 3rem!important}.p-t-3{padding-top:3rem!important}.p-r-3{padding-right:3rem!important}.p-b-3{padding-bottom:3rem!important}.p-l-3{padding-left:3rem!important}.p-x-3{padding-right:3rem!important;padding-left:3rem!important}.p-y-3{padding-top:3rem!important;padding-bottom:3rem!important}.pos-f-t{position:fixed;top:0;right:0;left:0;z-index:1030}.hidden-xs-up{display:none!important}@media (max-width:543px){.hidden-xs-down{display:none!important}}@media (min-width:544px){.hidden-sm-up{display:none!important}}@media (max-width:767px){.hidden-sm-down{display:none!important}}@media (min-width:768px){.hidden-md-up{display:none!important}}@media (max-width:991px){.hidden-md-down{display:none!important}}@media (min-width:992px){.hidden-lg-up{display:none!important}}@media (max-width:1199px){.hidden-lg-down{display:none!important}}@media (min-width:1200px){.hidden-xl-up{display:none!important}}.hidden-xl-down{display:none!important}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}} +/*# sourceMappingURL=bootstrap.min.css.map */ \ No newline at end of file diff --git a/media/assets/frontend/static/css/TCAccept.0abfc181.css b/media/assets/frontend/static/css/TCAccept.0abfc181.css new file mode 100644 index 00000000000..3527d52d0c7 --- /dev/null +++ b/media/assets/frontend/static/css/TCAccept.0abfc181.css @@ -0,0 +1 @@ +body{overflow:hidden}#wrapper{height:100%}.top-header{background:#f4f4f7;border-bottom:1px solid #e8e8e8;flex-shrink:0;padding:.5rem 1rem}.content{max-width:950px} \ No newline at end of file diff --git a/media/assets/frontend/static/css/TCView.0abfc181.css b/media/assets/frontend/static/css/TCView.0abfc181.css new file mode 100644 index 00000000000..3527d52d0c7 --- /dev/null +++ b/media/assets/frontend/static/css/TCView.0abfc181.css @@ -0,0 +1 @@ +body{overflow:hidden}#wrapper{height:100%}.top-header{background:#f4f4f7;border-bottom:1px solid #e8e8e8;flex-shrink:0;padding:.5rem 1rem}.content{max-width:950px} \ No newline at end of file diff --git a/media/assets/frontend/static/css/app.bb42fc17.css b/media/assets/frontend/static/css/app.bb42fc17.css new file mode 100644 index 00000000000..7dd49c0f9da --- /dev/null +++ b/media/assets/frontend/static/css/app.bb42fc17.css @@ -0,0 +1 @@ +#info-bar{background:#fddaa4;color:#1f0600;padding:4px 10px}#info-bar .close{color:#888;cursor:pointer;font-size:16px;line-height:1}#info-bar-info a{color:#a68558;text-decoration:underline}.activity-details{cursor:pointer;text-decoration:underline}.activity-details:hover{color:#333}.mobile-activity-time{display:inline-block;margin-bottom:.2em}.cur-activity-modifiers{margin-left:-.5rem}.cur-activity-modifiers:hover{background:#f5f5f5;cursor:pointer}.cur-activity-modifiers .toggle-icon{color:#999}.activity-modifier-selector-container{background:#fff;border:1px solid #e8e8e8;margin-top:2px;width:320px;z-index:2}.activity-selected-modifiers{background:#f6f6f6;border-bottom:1px solid #dde2ea;line-height:1;min-height:2rem}.activity-selected-modifier{align-items:center;background:#eaeaea;border-radius:10px;display:inline-flex;margin-right:10px;padding:0 8px 0 2px}.unselect-activity-user{color:#909090;cursor:pointer}.unselect-activity-user:hover{color:#5a5a5a}.activity-user-list{max-height:200px;min-height:4rem}.activity-user-item{cursor:pointer}.activity-user-item:hover{background:#f5f5f5}.activity-user-name{font-size:14px}.share-dialog .share-dialog-content{min-height:28rem}.account-dialog .nav .nav-item{padding:0}.account-dialog .nav .nav-item .nav-link{color:#8a948f;font-weight:400;padding:.5rem 0;transition:none;width:100%}.account-dialog .nav .nav-item .nav-link.active{border-bottom:.125rem solid #ff8000;color:#ff8000;text-decoration:none}.account-dialog .nav-pills .nav-item .nav-link{color:#333;padding:.3125rem 1rem .3125rem 8px}.account-dialog .nav-pills .nav-item .nav-link:hover{background-color:#f5f5f5}.account-dialog .nav-pills .nav-item .nav-link.active{background-color:#ff8000;border:none;color:#fff}.account-dialog table{table-layout:fixed;width:100%}.account-dialog .accounts-list{max-height:400px;overflow:auto}.account-dialog .accounts-list table thead tr{border-bottom:1px solid #efefef;height:2.1875rem}.account-dialog .accounts-list table tbody tr{border-bottom:1px solid #efefef;height:2.5625rem}.account-dialog table th{font-weight:500;padding:.3125rem .1875rem}.account-dialog table td{color:#333;font-size:14px;padding:3px .1875rem;word-break:break-all}.account-dialog table td a{color:inherit;text-decoration:none}.account-dialog .ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-dialog .select-module{font-size:16px}.account-dialog .select-module.select-module-icon{height:1.5rem;width:1.5rem}.account-dialog .select-module.select-module-name{margin-left:.5rem}.account-dialog .op-target{word-wrap:break-word;color:#ea7500}.account-dialog{height:calc(100% - 56px);max-width:600px}.account-dialog .account-dialog-content{display:flex;flex-direction:row;min-height:27rem;overflow:hidden;padding:0}.account-dialog-content .account-dialog-side{border-right:1px solid #eee;display:flex;flex:0 0 25%;padding:12px 8px}.account-dialog-content .account-dialog-main{flex:1 1;padding:.5rem 1.5rem 2rem}.account-dialog-content .account-dialog-main .tab-content{flex:1 1}.account-dialog-content .account-dialog-main .tab-pane{height:100%}.account-dialog .wechat-input-content{height:250px}.accounts-manage .accounts-manage-header{border-bottom:1px solid #efefef;padding:.375rem 0}.accounts-manage .accounts-manage-header button{font-weight:400}.accounts-manage .no-accounts{height:400px}.accounts-manage .no-accounts img{width:120px}.accounts-manage .no-accounts p{color:#afafaf;margin-top:1rem}.accounts-manage .accounts-list-body{cursor:pointer;max-height:400px;overflow-y:auto}.accounts-manage td,.accounts-manage th{border-color:#efefef;padding:.5rem .1875rem}.accounts-manage th{color:#999}.accounts-manage .accounts-list-body tr:hover{background-color:#f9f9f9}.accounts-manage .accounts-list-body .account-operation-btn{display:none;margin-right:.2rem}.accounts-manage .accounts-list-body tr:hover .account-operation-btn{align-items:center;cursor:pointer;display:inline-flex;height:24px;justify-content:center;width:24px}.accounts-manage .account-operation-btn .dtable-font{color:#999;font-size:14px}.accounts-manage .account-operation-btn:hover .dtable-font{color:#5a5a5a}.add-account,.edit-account{height:100%}.add-account .add-account-header,.edit-account .edit-account-header{border-bottom:1px solid #efefef;padding:.375rem 0}.add-account .back-btn,.edit-account .back-btn{cursor:pointer;height:18px;width:18px}.add-account .back-btn .dtable-icon-return,.edit-account .back-btn .dtable-icon-return{color:#999;font-size:14px}.add-account .back-btn:hover .dtable-icon-return,.edit-account .back-btn:hover .dtable-icon-return{color:#5a5a5a}.add-account .add-account-header-text,.edit-account .edit-account-header-text{margin-left:.25rem}.add-account .add-account-btn,.edit-account .edit-account-btn{border-color:#ff8000;color:#ff8000;font-weight:400;margin:0;padding-bottom:0;padding-top:0}.add-account .account-loading-tip{margin-top:1rem}.add-account .add-account-btn:hover,.edit-account .edit-account-btn:hover{background-color:transparent}.base-account{height:calc(100% - 38px)}.base-account input[type=checkbox]{margin-top:-2px;vertical-align:middle}.base-account .account-name-desc{margin-top:.375rem}.base-account .base-account-password .input-group .form-control{border-right:none;height:38px}.base-account .base-account-password .input-group .input-group-text{border-radius:0 3px 3px 0;height:38px}.lib-decrypt-form .intro{color:#464646;font-size:1.3em}.lib-decrypt-form .password-input{margin:0 auto;width:50%}.lib-decrypt-form .submit{margin:1.5em auto 1em;width:50%}.tag-list-container{list-style:none;max-height:15rem;overflow:auto}.add-tag-link{color:#666}.add-tag-link:hover{background:#f5f5f5;color:#444;text-decoration:none}.tag-list-item{height:2.5rem}.tag-list-item.hl{background:#f5f5f5}.tag-selected-icon{color:#999}.tag-delete-icon{color:#999;font-size:18px}.tag-delete-icon:hover{color:#444}.tag-dialog-back{color:#888;cursor:pointer;margin-right:10px}.tag-dialog-back:focus,.tag-dialog-back:hover{color:#444}.tag-color-option .colorinput-color:before{display:none}.tag-color-option .color-selected{opacity:0}.tag-color-option .colorinput-input:checked~.colorinput-color .color-selected{opacity:1}.tag-color-popover .popover{max-width:360px}.tag-color-popover .colorinput-color,.tag-color-popover .tag-color{height:20px;width:20px}.tag-color-popover .tag-color-option .colorinput-input:checked~.colorinput-color .color-selected{font-size:12px}.dirents-more-menu{border:1px solid #ccc;border-bottom-left-radius:0;border-bottom-right-radius:2px!important;border-top-left-radius:0;border-top-right-radius:2px!important;height:30px;margin-left:0;padding:4px 15px;width:46px}.dirents-more-menu:hover{background-color:#fff;border:1px solid #ccc}.list-tag-popover .popover{max-width:500px;width:500px}.list-tag-popover .add-tag-link{cursor:pointer}.list-tag-popover .tag-list-footer{align-items:center;border-top:1px solid #dedede;display:flex;flex-wrap:wrap;justify-content:flex-end;padding:1rem}.list-tag-popover .tag-list-footer .item-text{color:#ff8000;cursor:pointer}.list-tag-popover .tag-list-footer a:hover{text-decoration:none}.list-tag-popover .tag-color{height:20px;width:20px}.add-item-btn{align-items:center;background:#fff;border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top:1px solid #dedede;cursor:pointer;display:flex;font-size:14px;font-weight:500;height:30px;overflow:hidden;padding:0 10px;position:relative}.add-item-btn:hover{background-color:#f5f5f5}.add-item-btn .dtable-icon-add-table{font-size:12px;font-weight:600;margin-right:10px;-webkit-transform:none;transform:none}.add-item-btn .add-new-option{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-filetag-popover .edit-filetag-popover-input{color:#212529;font-size:14px;height:30px;max-height:30px}.edit-filetag-popover .popover{padding:10px 10px 0;width:200px}.edit-filetag-popover .tag-list-container{padding:10px 0}.edit-filetag-popover .tag-not-found{opacity:.5}.edit-filetag-popover .tag-list-item{height:30px}.edit-filetag-popover .tag-item{align-items:center;border-radius:10px;display:flex;margin:.25rem 0;max-width:130px;padding:0 .5rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.edit-filetag-popover .tag-item .tag-name{color:#fff;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-filetag-popover .add-item-btn{margin:0 -10px}.extra-attributes-dialog .selected-single-select-container{-webkit-appearance:none;appearance:none;background:#fff;border:1px solid rgba(0,40,100,.12);border-radius:3px;height:38px;padding:0 10px;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%}.extra-attributes-dialog .selected-single-select-container.disable{background-color:#f8f9fa}.extra-attributes-dialog .selected-single-select-container.focus{border-color:#1991eb!important;box-shadow:0 0 0 2px rgba(70,127,207,.25)}.extra-attributes-dialog .selected-single-select-container:not(.disable):hover{cursor:pointer}.extra-attributes-dialog .selected-single-select-container .fa-caret-down{color:#949494;font-size:16px}.extra-attributes-dialog .selected-single-select-container .single-select-option{border-radius:10px;font-size:13px;line-height:20px;max-width:250px;overflow:hidden;padding:0 10px;text-align:center;text-overflow:ellipsis;white-space:nowrap;width:-webkit-min-content;width:min-content}.single-select-editor-popover .popover,.single-select-editor-popover .popover-inner{max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.single-select-editor-container{background-color:#fff;min-height:160px;overflow:hidden;width:320px}.single-select-editor-container .search-single-selects{padding:10px 10px 0}.single-select-editor-container .search-single-selects input{font-size:14px;max-height:30px}.single-select-editor-container .single-select-editor-content{max-height:200px;min-height:100px;overflow-x:hidden;overflow-y:scroll;padding:10px}.single-select-editor-container .single-select-editor-content .single-select-option-container{align-items:center;border-radius:2px;color:#212529;display:flex;font-size:13px;height:30px;justify-content:space-between;padding-left:12px;width:100%}.single-select-editor-container .single-select-editor-content .single-select-option-container:hover{background-color:#f5f5f5;cursor:pointer}.single-select-editor-container .single-select-editor-content .single-select-option{border-radius:10px;height:20px;line-height:20px;margin-right:10px;overflow:hidden;padding:0 10px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.single-select-editor-container .single-select-editor-content .single-select-option-selected{text-align:center;width:20px}.extra-attributes-dialog .column-name{padding-top:9px}.extra-attributes-dialog .column-item{min-height:56px}.extra-attributes-dialog{margin:28px 0 0}.extra-attributes-dialog .extra-attributes-content-container{height:100%;overflow:hidden}.extra-attributes-dialog .modal-body{overflow-y:scroll;padding:30px}.extra-attributes-dialog .modal-body .form-control.disabled{background-color:#f8f9fa}.apply-properties-dialog .apply-properties{align-items:center;display:flex;height:38px;justify-content:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.apply-properties-dialog .apply-properties .loading-tip{display:inline-block;height:16px;margin:0;width:16px}.tip-for-new-file{align-self:flex-start;margin:0 auto;padding:2em 1em}@media (min-width:768px){.tip-for-new-file{padding:5em 8em}}.big-new-file-button{background:#fff;border:1px solid #d1d1d1;border-radius:8px;cursor:pointer;margin:0 .75em 1.5em;padding:.9em 2em 1em;width:160px}.big-new-file-button:focus,.big-new-file-button:hover{border-color:#eb9205;color:#eb8205}.repo-info-bar{border:1px solid #e6e6dd;border-radius:5px;margin:10px 16px 0;padding:10px}.used-tag-list{list-style:none}.used-tag-item{display:inline-block;margin:auto 15px}.used-tag{border-radius:50%;cursor:pointer;display:inline-block;height:12px;width:12px}.used-tag-name{margin:0 .25rem}.used-tag-files{color:#888;font-size:14px}.used-tag-files:hover{cursor:pointer;text-decoration:underline}.file-info{cursor:pointer;display:inline-block;margin:0 15px}.file-info a{color:#333}.info-icon{color:#888;vertical-align:-3px}.readme-dialog-edit{position:absolute;right:16px}.readme-dialog .modal-body{padding:0 30px}@-webkit-keyframes closeWindow{0%{opacity:1}to{opacity:0}}@keyframes closeWindow{0%{opacity:1}to{opacity:0}}.ril__outer{-ms-content-zooming:none;-ms-touch-select:none;background-color:rgba(0,0,0,.85);bottom:0;height:100%;left:0;outline:none;right:0;top:0;-ms-touch-action:none;touch-action:none;-ms-user-select:none;width:100%;z-index:1000}.ril__outerClosing{opacity:0}.ril__image,.ril__imageNext,.ril__imagePrev,.ril__inner{bottom:0;left:0;position:absolute;right:0;top:0}.ril__image,.ril__imageNext,.ril__imagePrev{-ms-content-zooming:none;-ms-touch-select:none;margin:auto;max-width:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none}.ril__imageDiscourager{background-position:50%;background-repeat:no-repeat;background-size:contain}.ril__navButtons{border:none;bottom:0;cursor:pointer;height:34px;margin:auto;opacity:.7;padding:40px 30px;position:absolute;top:0;width:20px}.ril__navButtons:hover{opacity:1}.ril__navButtons:active{opacity:.7}.ril__outer .ril__navButtonPrev{background:url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Im00MTIgNTE1LjIgMzYxLjYtMzYxLjZjMjIuNC0xOS4yIDIyLjQtNTQuNCAwLTc2LjhzLTU3LjYtMjIuNC03Ni44IDBsLTQwNi40IDQwMGMtMjIuNCAyMi40LTIyLjQgNTcuNiAwIDc2LjhsNDA2LjQgNDAzLjJjMjIuNCAyMi40IDU3LjYgMjIuNCA3Ni44IDBzMjIuNC01Ny42IDAtNzYuOEw0MTIgNTE1LjJ6IiBmaWxsPSIjZmZmIi8+PC9zdmc+) no-repeat 50%;left:0}.ril__outer .ril__navButtonNext{background:url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik02NDAgNTE1LjIgMjc4LjQgMTUzLjZjLTIyLjQtMTkuMi0yMi40LTU0LjQgMC03Ni44czU3LjYtMjIuNCA3Ni44IDBsNDA2LjQgNDAwYzIyLjQgMjIuNCAyMi40IDU3LjYgMCA3Ni44TDM1NS4yIDk1Ni44Yy0yMi40IDIyLjQtNTcuNiAyMi40LTc2LjggMHMtMjIuNC01Ny42IDAtNzYuOEw2NDAgNTE1LjJ6IiBmaWxsPSIjZmZmIi8+PC9zdmc+) no-repeat 50%;right:0}.ril__downloadBlocker{background-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);background-size:cover;bottom:0;left:0;position:absolute;right:0;top:0}.ril__caption,.ril__toolbar{-ms-flex-pack:justify;background-color:rgba(0,0,0,.5);display:-ms-flexbox;display:flex;justify-content:space-between;left:0;position:absolute;right:0}.ril__caption{-ms-flex-pack:center;bottom:0;justify-content:center;max-height:150px;overflow:auto}.ril__captionContent{color:#fff;margin:0 auto;padding:10px 20px}.ril__toolbar{height:50px;top:0}.ril__toolbarSide{height:50px;margin:0}.ril__toolbarLeftSide{-ms-flex:0 1 auto;flex:0 1 auto;overflow:hidden;padding-left:20px;padding-right:0;text-overflow:ellipsis}.ril__toolbarRightSide{-ms-flex:0 0 auto;flex:0 0 auto;padding-left:0;padding-right:20px}.ril__toolbarItem{color:#fff;display:inline-block;font-size:120%;line-height:50px;max-width:100%;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap}.ril__toolbarItemChild{vertical-align:middle}.ril__builtinButton{border:none;cursor:pointer;height:35px;opacity:.7;width:40px}.ril__builtinButton:hover{opacity:1}.ril__builtinButton:active{outline:none}.ril__builtinButtonDisabled{cursor:default;opacity:.5}.ril__builtinButtonDisabled:hover{opacity:.5}.ril__closeButton{background:url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik02MTEuMiA1MTIgOTEyIDIxMS4yYzI4LjgtMjguOCAyOC44LTczLjYgMC05OS4ycy03My42LTI4LjgtOTkuMiAwTDUxMiA0MTIuOCAyMTEuMiAxMTJjLTI4LjgtMjguOC03My42LTI4LjgtOTkuMiAwcy0yOC44IDczLjYgMCA5OS4yTDQxMi44IDUxMiAxMTIgODEyLjhjLTI4LjggMjguOC0yOC44IDczLjYgMCA5OS4yIDI4LjggMjUuNiA3My42IDI4LjggOTkuMiAwTDUxMiA2MTEuMiA4MTIuOCA5MTJjMjguOCAyOC44IDczLjYgMjguOCA5OS4yIDAgMjguOC0yOC44IDI4LjgtNzMuNiAwLTk5LjJMNjExLjIgNTEyeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==) no-repeat 50%}.ril__zoomInButton{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0ibTEgMTkgNi02TTkgOGg2TTEyIDV2NiIvPjwvZz48Y2lyY2xlIGN4PSIxMiIgY3k9IjgiIHI9IjciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+) no-repeat 50%}.ril__zoomOutButton{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0ibTEgMTkgNi02TTkgOGg2Ii8+PC9nPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=) no-repeat 50%}.ril__rotateButton{background:url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiPjxwYXRoIGQ9Im0xMjQuOCAxNjAgNTQuNCA1MS4yQzM0NS42IDI4LjggNjMwLjQgMTYgODEyLjggMTgyLjRTMTAwOCA2MzMuNiA4NDEuNiA4MTYgMzkwLjQgMTAxMS4yIDIwOCA4NDQuOGMtMzguNC0zNS4yLTczLjYtNzYuOC05Ni0xMjQuOC02LjQtOS42LTkuNi0xNi05LjYtMjguOCAwLTMyIDI1LjYtNTQuNCA1NC40LTU0LjQgMTkuMiAwIDM4LjQgOS42IDU0LjQgMzIgODMuMiAxNjYuNCAyODggMjMwLjQgNDU0LjQgMTQ0czIzMC40LTI5MS4yIDE0NC00NTcuNi0yODgtMjMwLjQtNDU0LjQtMTQ0Yy0zNS4yIDE5LjItNjcuMiA0MS42LTk2IDczLjZsNTEuMiA0NC44YzEyLjggMTIuOCAxNiAzOC40IDMuMiA1MS4yLTYuNCA2LjQtMTYgOS42LTI1LjYgOS42TDEwNS42IDQwMGMtMTkuMiAwLTM1LjItMTIuOC0zOC40LTMyTDY0IDE4OC44Yy0zLjItMTkuMiAxMi44LTM1LjIgMzItMzguNCAxMi44LTMuMiAyMi40IDMuMiAyOC44IDkuNnoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=) no-repeat 50%}.ril__outerAnimating{-webkit-animation-name:closeWindow;animation-name:closeWindow}@-webkit-keyframes pointFade{0%,19.999%,to{opacity:0}20%{opacity:1}}@keyframes pointFade{0%,19.999%,to{opacity:0}20%{opacity:1}}.ril__loadingCircle{height:60px;position:relative;width:60px}.ril__loadingCirclePoint{height:100%;left:0;position:absolute;top:0;width:100%}.ril__loadingCirclePoint:before{-webkit-animation:pointFade .8s ease-in-out infinite both;animation:pointFade .8s ease-in-out infinite both;background-color:#fff;border-radius:30%;content:"";display:block;height:30%;margin:0 auto;width:11%}.ril__loadingCirclePoint:first-of-type{-webkit-transform:rotate(0deg);transform:rotate(0deg)}.ril__loadingCirclePoint:first-of-type:before,.ril__loadingCirclePoint:nth-of-type(7):before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.ril__loadingCirclePoint:nth-of-type(2){-webkit-transform:rotate(30deg);transform:rotate(30deg)}.ril__loadingCirclePoint:nth-of-type(8){-webkit-transform:rotate(210deg);transform:rotate(210deg)}.ril__loadingCirclePoint:nth-of-type(2):before,.ril__loadingCirclePoint:nth-of-type(8):before{-webkit-animation-delay:-666ms;animation-delay:-666ms}.ril__loadingCirclePoint:nth-of-type(3){-webkit-transform:rotate(60deg);transform:rotate(60deg)}.ril__loadingCirclePoint:nth-of-type(9){-webkit-transform:rotate(240deg);transform:rotate(240deg)}.ril__loadingCirclePoint:nth-of-type(3):before,.ril__loadingCirclePoint:nth-of-type(9):before{-webkit-animation-delay:-533ms;animation-delay:-533ms}.ril__loadingCirclePoint:nth-of-type(4){-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ril__loadingCirclePoint:nth-of-type(10){-webkit-transform:rotate(270deg);transform:rotate(270deg)}.ril__loadingCirclePoint:nth-of-type(10):before,.ril__loadingCirclePoint:nth-of-type(4):before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.ril__loadingCirclePoint:nth-of-type(5){-webkit-transform:rotate(120deg);transform:rotate(120deg)}.ril__loadingCirclePoint:nth-of-type(11){-webkit-transform:rotate(300deg);transform:rotate(300deg)}.ril__loadingCirclePoint:nth-of-type(11):before,.ril__loadingCirclePoint:nth-of-type(5):before{-webkit-animation-delay:-266ms;animation-delay:-266ms}.ril__loadingCirclePoint:nth-of-type(6){-webkit-transform:rotate(150deg);transform:rotate(150deg)}.ril__loadingCirclePoint:nth-of-type(12){-webkit-transform:rotate(330deg);transform:rotate(330deg)}.ril__loadingCirclePoint:nth-of-type(12):before,.ril__loadingCirclePoint:nth-of-type(6):before{-webkit-animation-delay:-133ms;animation-delay:-133ms}.ril__loadingCirclePoint:nth-of-type(7){-webkit-transform:rotate(180deg);transform:rotate(180deg)}.ril__loadingCirclePoint:nth-of-type(13){-webkit-transform:rotate(1turn);transform:rotate(1turn)}.ril__loadingCirclePoint:nth-of-type(13):before,.ril__loadingCirclePoint:nth-of-type(7):before{-webkit-animation-delay:0ms;animation-delay:0ms}.ril__loadingContainer{bottom:0;left:0;position:absolute;right:0;top:0}.ril__imageNext .ril__loadingContainer,.ril__imagePrev .ril__loadingContainer{display:none}.ril__errorContainer{-ms-flex-align:center;-ms-flex-pack:center;align-items:center;bottom:0;color:#fff;display:-ms-flexbox;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.ril__imageNext .ril__errorContainer,.ril__imagePrev .ril__errorContainer{display:none}.ril__loadingContainer__icon{color:#fff;left:50%;position:absolute;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.tr-drop-effect{background-color:#f8f8f8}.star-empty{color:#d0d0d0}.dir-icon{max-width:24px;position:relative;text-align:center}.dir-icon .locked{height:1rem;left:50%;position:absolute;top:50%;width:1rem}.tag-list-title{overflow:hidden}.dirent-sdoc-draft-identifier{background:#eee;border-radius:10px;color:#888;display:inline-block;font-size:14px;height:20px;line-height:20px;margin-left:6px;padding:0 8px}.grid-view{align-content:flex-start;display:flex;flex:1 1;flex-wrap:wrap;list-style:none;padding:.625rem 1rem 10rem}.grid-item{line-height:0;padding:10px 4px;position:relative;text-align:center;width:134px}.grid-item:hover .grid-file-img-link{background:#f8f8f8}.grid-item:hover a{color:#eb8205}.grid-file-img-link{border-radius:3px;font-size:0;height:96px;line-height:0;margin:0 auto 6px;position:relative;text-align:center;width:96px}.grid-file-img-link .thumbnail{background:#fff;border:1px solid #ddd;border-radius:1px;max-height:88px;max-width:88px;padding:1px}.grid-file-img-link:before{content:"";display:inline-block;height:100%;vertical-align:middle}.grid-file-name{display:inline-block;font-size:14px;line-height:17px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:keep-all}.grid-file-name-link{color:#333;font-size:.875rem}.grid-file-locked-icon{bottom:0;position:absolute;right:10px;width:16px}.grid-selected-active{background-color:#f8f8f8}.grid-link-selected-active{color:#eb8205}.grid-drop-show{background:#f8f8f8}.wiki-page-container .article{border:none;margin:0;max-width:none;padding:0 10px}.wiki-page-container .article span[data-url]{cursor:pointer}.wiki-page-container .article .ml-2{text-decoration:underline}.wiki-page-container .article .ml-2:hover{color:#eb8205;text-decoration:underline}#wiki-page-last-modified{color:#666;font-size:12px;padding:40px 10px}.main-panel{overflow:hidden}.cur-view-content.lib-content-container{padding:0}.view-mode-container{display:flex;flex-direction:row!important;min-height:0;overflow:hidden!important;padding-left:0!important}.dir-colunm-view{display:flex;width:100%}.dir-content-nav{background-color:#fff;border-right:1px solid #eee;display:flex;flex:0 0 25%;flex-direction:column;overflow:hidden}.dir-content-nav:hover{overflow:auto}.dir-content-main{display:flex;flex:1 0 74.5%;flex-direction:column;overflow:auto}.tree-view{border:1px solid rgba(69,170,242,0);flex:1 1;line-height:1.5;margin-left:-9px;padding:12px 12px 12px 0}.tree-view-drop{border:1px solid #45aaf2}.tree-view-drop:before{border-left:1px solid #45aaf2;content:"";display:block;float:left;height:calc(100% + 24px);margin-left:8px;margin-top:-12px}.tree-node-inner{cursor:pointer;height:24px;line-height:1.625;position:relative}.tree-node-inner-hover{background-color:#f5f5f5;border-radius:.25rem}.tree-node-inner .tree-node-text{font-size:14px;line-height:24px;overflow:hidden;padding-left:2.8rem;text-overflow:ellipsis;white-space:nowrap;width:calc(100% - 1.5rem)}.tree-node-inner .left-icon{align-items:center;display:flex;left:0;padding-left:1.5rem;position:absolute;top:0}.folder-toggle-icon{align-content:center;color:silver;display:flex;justify-content:center;left:0;line-height:1.625;position:absolute;width:1.5rem}.tree-node-drop{background-color:#ffefb2}.tree-node-icon{color:#b0b0b0;display:inline-block;text-align:center;width:1rem}.tree-node-inner .right-icon{bottom:0;color:#888;font-size:.8125rem;position:absolute;right:.5rem;text-align:center;top:0;width:1rem;z-index:2}.tree-node-inner .right-icon i{font-size:.8125rem;height:100%;line-height:1.625rem!important;vertical-align:middle;width:100%}.tree-node-hight-light{background-color:#ff9800!important;border-radius:4px;color:#fff}.tree-node-hight-light i{color:#fff}.dropdown-menu{min-width:8rem}.parent-path{position:relative}.parent-path .form-text{font-size:.9375rem;margin-left:.25rem;margin-top:0;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.dir-content-main .wiki-page-container{display:flex;flex:1 1;padding:0 1rem 1.25rem}.dir-content-main .wiki-page-content{flex:1 1;width:100%}.dir-content-main .wiki-open-file{background-color:#fff;border:none;border-radius:50%;bottom:10px;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);color:#999;cursor:pointer;font-size:16px;height:40px;right:10px;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:40px;z-index:1050}.dir-content-main .wiki-open-file i{left:12px;position:absolute;top:12px}.dir-content-main .wiki-open-file:hover{background-color:#f6f6f6}.dir-content-main .sf-slate-viewer-scroll-container{background-color:#fff;border:none;overflow:inherit;padding:0}.dir-content-main .sf-slate-viewer-article-container{display:block;width:100%}.dir-content-resize{cursor:ew-resize;flex:0 0 .5%}.readonly-tip-message{align-items:center;background-color:#fefbdc;display:flex;justify-content:center;padding:.25rem 0}.transfer-group-name{line-height:2rem;margin-left:10px}.group-transfer-select .true__dropdown-indicator,.reviewer-select .true__indicator-separator{display:none}.manage-members{max-height:300px;min-height:200px;overflow-y:auto;padding:.5rem 0}.manage-members-table td,.manage-members-table th{text-align:left;vertical-align:middle}.add-members-select .true__indicator-separator{display:none}.add-members{display:flex;justify-content:space-between}.add-members .add-members-select{width:385px}.add-members .btn{width:75px}.group-error{margin-top:10px}.group-manage-members-dialog .search-group-members{background:#f1f1f1;border:1px solid transparent;color:#999;font-size:14px;font-weight:400;margin:12px 0 0}.group-manage-members-dialog .search-group-members.active{background:#fff;border-color:#ccc}.group-manage-members-dialog .search-group-members .input-group-input,.group-manage-members-dialog .search-group-members .input-group-text{background:transparent;border:none;color:inherit}.group-manage-members-dialog .search-group-members.active .input-group-input{color:#495057}.group-manage-members-dialog .search-group-members .input-group-input:focus{box-shadow:none}#group-members-popover,#group-setting-popover{right:0;top:42px}.group-member-list-header{border-bottom:1px solid #e3e3e5;margin-bottom:0;padding-bottom:10px}.group-member-list{border-top:0;margin-top:0;max-height:400px;padding-top:0}.group-member-list .user-item{line-height:2rem}.group-member-list .user-item:hover{background-color:#f8f8f8}.group-member-list .user-item .group-member-name{margin:0 5px;max-width:70%}.group-member-list .user-item .group-member-admin{color:#888;font-size:12px}.department-group-icon{color:#888;margin-left:.25rem}.group-top-op-icon{display:inline-block;font-size:22px;margin:3px 0 0 10px}.cur-view-content-groups .group-list-panel{padding-bottom:1rem}.group-list-panel .group-item-heading{border-bottom:1px solid #e6e6e6;font-size:1rem;font-weight:400;margin:.75rem 0 0;padding:.25rem}.group-list-panel .group-item-empty-tip{border-bottom:1px solid #e5e5e5;color:#a4a4a4;padding:4px 0;text-align:center} \ No newline at end of file diff --git a/media/assets/frontend/static/css/commons.1cf5fb5e.css b/media/assets/frontend/static/css/commons.1cf5fb5e.css new file mode 100644 index 00000000000..0372ec2cab3 --- /dev/null +++ b/media/assets/frontend/static/css/commons.1cf5fb5e.css @@ -0,0 +1,14 @@ +@charset "UTF-8";.paginator .btn{min-width:2.375rem}body{overflow:hidden}.file-view-header{background:#fff;border-bottom:1px solid #c9c9c9;flex-shrink:0;padding:4px 10px}.file-title{font-size:1.2rem;font-weight:700;line-height:1.5;margin-bottom:0}.file-star{color:#999;font-size:.875rem;margin-left:.5rem}.file-star:focus,.file-star:hover{color:#999;text-decoration:none}.file-locked-icon{margin-left:.5rem}.meta-info{font-size:.8125rem}.file-view-content{background:#f4f4f4;border-right:4px solid transparent;padding:30px 0}.file-details-container{-webkit-animation:move .5s ease-in-out 1;animation:move .5s ease-in-out 1;background-color:#fff;box-shadow:-1px 0 3px 0 #ccc;height:100%;position:absolute;right:0;width:300px;z-index:50}.file-view-body .seafile-comment{width:100%}@media (min-width:768px){.file-view-body .seafile-comment{border-left:1px solid #e6e6dd;width:300px}}.sf-code-mirror .cm-editor{font-size:13px;height:100vh}.sf-code-mirror .cm-editor .cm-scroller{overflow-x:visible;overflow-x:initial}.sf-plain-editor{display:flex;flex:1 1;min-height:0;min-width:0;position:relative}.sf-plain-editor-main{inset:0;position:absolute}.sf-plain-editor-left-panel{background-color:#fff;border-right:1px solid #e6e6dd}.sf-plain-editor-left-panel,.sf-plain-editor-right-panel{height:100%;overflow-x:hidden;overflow-y:scroll;width:50%}.sf-plain-editor-right-panel{background-color:#fafaf9}.rendered-markdown.article{padding:0 20px 20px}.rendered-markdown tbody tr:first-child{font-weight:400}.sf-tooltip .tooltip-inner{background-color:#303133;font-weight:lighter;text-align:start}.sf-tooltip.bs-tooltip-auto[x-placement^=bottom] .arrow:before{border-bottom-color:#303133}.sf-tooltip.bs-tooltip-auto[x-placement^=top] .arrow:before{border-top-color:#303133}.sf-tooltip.bs-tooltip-auto[x-placement^=right] .arrow:before{border-right-color:#303133}.sf-tooltip.bs-tooltip-auto[x-placement^=left] .arrow:before{border-left-color:#303133}.sf-header-menu{align-items:center;display:flex;height:100%;padding:6px 8px;position:relative;width:140px}.sf-header-menu.header-toggle-disabled:after{border-top:6px solid #e5e6e8;content:"";position:absolute;right:12px;top:12px}.sf-header-menu.sf-header-popover-showed:after{border-bottom-color:#222428;border-top-color:transparent;content:"";position:absolute;right:12px;top:7px}.sf-header-menu .sf-header-toggle{align-items:center;cursor:pointer;display:flex;flex:1 1;height:24px;justify-content:space-between;padding-left:5px}.sf-header-menu .sf-header-toggle .active{font-size:14px}.sf-header-menu .header-toggle-disabled{color:#bdbdbd;cursor:inherit}.sf-header-menu .sf-header-toggle.sf-header-popover-showed,.sf-header-menu .sf-header-toggle:not(.header-toggle-disabled):hover{background-color:#f2f2f2;border-radius:2px}.sf-header-menu .sf-header-toggle .iconfont{align-items:center;color:#555;cursor:pointer;display:inline-flex;font-size:12px;height:24px;justify-content:center;margin-left:8px;width:12px}.sf-header-menu .sf-header-popover{align-items:flex-start;background-color:#fff;border:1px solid #e5e6e8;border-radius:2px;box-shadow:0 0 10px #ccc;display:flex;flex-direction:column;left:8px;padding:8px 0;position:absolute;top:32px;width:100%;z-index:101}.sf-header-menu .sf-header-popover .sf-dropdown-menu-item{font-size:14px;height:auto;line-height:1;padding:9px 16px 9px 28px;width:100%}.sf-header-menu .sf-header-popover .sf-dropdown-menu-item:hover{background-color:#f2f2f2}.sf-header-menu .sf-header-popover .sf-dropdown-menu-item .sf-check-mark{color:#798d99;left:8px;position:absolute;-webkit-transform:scale(.8);transform:scale(.8)}.sf-menu-group{align-items:center;border-right:1px solid #e5e6e8;color:#555;display:flex;font-size:.75rem;height:100%;justify-content:center;padding:6px 0 6px 8px}.sf-menu-group .sf-menu-group-item{background-color:#fcfcfc;border:none!important;color:#555;height:24px;line-height:24px;margin-right:8px;width:24px}.sf-menu-group .sf-menu-group-item:disabled{color:#bdbdbd}.sf-menu-group .sf-menu-group-item:hover{background-color:#f2f2f2;border-radius:2px}.sf-menu-group .sf-menu-group-item[data-active=true]{color:#eb8205}.sf-menu-group .sf-menu-group-item .iconfont{font-size:13px}.sf-menu-group .sf-menu-group-item.sf-menu-with-dropdown{align-items:center;border:0!important;display:flex;height:24px;justify-content:center;margin-right:10px;overflow:hidden;padding:0!important;width:36px}.sf-menu-group .sf-menu-group-item.sf-menu-with-dropdown.disabled{color:#999;width:24px!important}.sf-menu-with-dropdown:not(.disabled):hover{background:#f2f2f2;border-radius:2px}.sf-menu-with-dropdown .sf-menu-with-dropdown-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.sf-menu-with-dropdown .sf-menu-with-dropdown-triangle{align-items:center;display:flex;height:24px;justify-content:center;width:12px}.sf-menu-with-dropdown .sf-menu-with-dropdown-triangle .sf-menu-with-dropdown-triangle-icon{color:#999;font-size:12px}.sf-dropdown-list{align-items:flex-start;align-items:center;background-color:#fff;border:1px solid #e5e6e8;border-radius:2px;box-shadow:0 0 10px #ccc;display:flex;flex-direction:column;left:5px;padding:8px 0;position:absolute;top:30px;z-index:1000}.sf-dropdown-list .sf-dropdown-menu-item-icon{margin-right:8px}.sf-dropdown-list .sf-dropdown-menu-item-text{white-space:nowrap}.sf-dropdown-list .sf-dropdown-list-item{display:flex;font-size:14px;height:auto;line-height:1;padding:9px 16px 9px 28px;width:100%}.sf-dropdown-list .sf-dropdown-list-item:hover{background-color:#f2f2f2}.sf-menu-container{background:#fff;border:1px solid #e5e5e5;border-radius:4px;box-shadow:0 4px 10px #eee;color:#333;display:flex;flex-direction:column;min-width:80px;overflow-x:hidden;overflow-y:auto;padding:8px 0;position:absolute;width:150px;z-index:1080}.sf-menu-container .sf-menu-item{cursor:pointer;display:flex;height:32px;line-height:32px;padding:0 10px;position:relative}.sf-menu-container .sf-menu-item:hover{background-color:#f5f5f5}.sf-menu-container .sf-menu-item .menu-item-icon{color:#aaa;margin-right:5px}.sf-menu-container .sf-menu-item .icon-check-mark{color:#aaa;font-size:13px;height:32px;line-height:32px;position:absolute;right:10px}.select-container{display:inline-block;font-weight:400;margin:0 5px;position:relative}.select-container .control-container{align-items:center;border:1px solid #ccc;border-radius:4px;cursor:pointer;display:inline-flex;font-size:13px;height:24px;justify-content:center;line-height:1.5;padding:0 10px;-webkit-user-select:none;user-select:none}.select-container .control-container.active,.select-container .control-container:hover{border:1px solid #3c88fd;box-shadow:0 0 0 2px rgba(70,127,207,.25)}.select-container .control-container .placeholder{color:#bfbfbf}.select-container .control-container .control-icon{color:#aaa;cursor:default;font-size:13px;margin-right:5px}.select-container .control-container .operation{align-items:center;display:inline-flex;justify-content:center;margin-left:8px}.select-container .control-container .arrow{color:#949494;display:inline-block;font-size:12px;-webkit-transform:scale(.8);transform:scale(.8);transition:all .1s}.select-container .control-container .arrow:hover{color:#666}.select-container .select-popover{background:#fff;border:1px solid #e5e5e5;border-radius:4px;box-shadow:0 4px 10px #eee;display:flex;flex-direction:column;left:0;margin-top:4px;max-height:265px;min-width:80px;padding:8px 0;position:absolute;z-index:10}.select-popover .option-item-divider{border-top:1px solid #efefef;margin-top:8px}.select-popover .sf-field-setting{align-items:center;display:flex;position:relative}.select-popover .sf-field-setting .icon-container{align-items:center;display:flex;justify-content:center;position:absolute;right:10px}.select-popover .sf-field-setting .icon-text-style{color:#aaa;font-size:14px}.select-popover .sf-field-setting .op-icon{color:#aaa;font-size:12px;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.select-popover .option-item-wrapper{flex:1 1;min-height:0;min-width:0;overflow:auto}.select-popover .option-item{align-items:center;cursor:pointer;display:flex;flex-shrink:0;height:32px;min-width:80px;overflow-wrap:normal;padding:0 12px;white-space:nowrap}.select-popover .option-item:hover{background-color:#f5f5f5}.select-popover .option-item.active{background-color:#39a0ff;color:#fff}.select-popover .option-item.disable{color:#aaa;cursor:default}.select-popover .option-item .item-icon{color:#aaa;cursor:default;font-size:14px}.select-popover .option-item.active .item-icon{color:#fff}.select-popover .option-item .label{margin:0 5px}.image-toggle-disabled{color:#bdbdbd;cursor:inherit}.image-popover{align-items:flex-start;background-color:#fff;border:1px solid #e5e6e8;border-radius:2px;box-shadow:0 0 10px #ccc;display:flex;flex-direction:column;left:8px;padding:8px 0;position:absolute;top:42px;z-index:101}.image-popover .image-popover-item{cursor:pointer;font-size:14px;height:auto;line-height:1;margin:0;padding:9px 16px;white-space:nowrap;width:100%}.image-popover .image-popover-item:hover{background-color:#4d9ef8;color:#fff}.image-popover .image-uploader{display:none}.sf-image-wrapper{display:inline-block;max-width:100%;padding:1px;position:relative}.sf-image-wrapper .sf-image.selected{box-shadow:0 0 0 2px #007bff}.sf-image-wrapper .resizer{background-color:#007bff;border:1px solid #fff;bottom:-5px;cursor:se-resize;height:10px;position:absolute;right:-5px;width:10px}.sf-image-wrapper .full-screen{background-color:#fff;border:1px solid #0028641f;border-radius:3px;box-shadow:0 2px 5px 0 #0003;cursor:pointer;display:inline-block;height:26px;line-height:20px;padding:2px;position:absolute;right:-32px;text-align:center;top:0;-webkit-user-select:none!important;user-select:none!important;width:26px;z-index:1000}.sf-image-wrapper .full-screen:hover{background-color:#efefef;display:block}.sf-image-wrapper .image-size-info-tooltip{background-color:#4c4c4c;border-radius:3px;bottom:-25px;color:#fff;display:inline-block;font-size:12px;height:22px;left:100%;line-height:12px;padding:5px;position:absolute;-webkit-transform:translateX(5px);transform:translateX(5px);white-space:nowrap;z-index:1}.sf-virtual-link{color:#eb8205}.sf-virtual-link:hover{text-decoration:underline;text-underline-position:under}.sf-virtual-link.selected{background-color:#e5e5e5}.sf-link-op-menu{background-color:#fff;border:1px solid #e5e5e5;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,.08);display:flex;height:36px;padding:7px 8px;position:absolute;z-index:1999}.sf-link-op-menu-link{border-right:1p solid #f1f1f1;color:#212529;font-size:12px;line-height:20px;padding:0 5px}.sf-link-op-menu-link:hover{background:#f1f1f1;color:#212529;cursor:pointer;text-decoration:none}.sf-link-op-icons{border-left:1px solid #e5e5e5;margin-left:8px}.sf-link-op-icon{align-items:center;border-radius:2px;color:#555;display:flex;margin-left:8px;padding:4px}.sf-link-op-icon .iconfont{cursor:pointer;font-size:12px}.sf-link-op-icon:hover{background:#f2f2f2}.sf-code-block-container{background:#f5f7fa;border-radius:4px;margin:0 0 20px;overflow:hidden;padding:0;position:relative}.sf-lang-selector{align-items:center;-webkit-appearance:none;appearance:none;background:#eee;border:none;border-radius:3px;cursor:pointer;display:flex;font-size:12px;line-height:1;outline:none;padding:2px 5px;position:absolute;right:0;top:0;transition:all .3s;width:-webkit-max-content;width:max-content}.sf-code-block-container .tag{padding:0!important}.sf-check-list-item input{vertical-align:-2px}.sf-list-line{-webkit-padding-start:24px;display:flex;flex-direction:column;margin:0!important;padding-inline-start:24px}.sf-table-menu-item{position:relative}.sf-table-size-selector-card{background-color:#fff;border:1px solid #0028641f;padding:5px 12px;position:absolute;top:30px;z-index:1}.sf-table-size-selector-card .sf-table-grid-info{margin-bottom:5px;text-align:center;width:100%}.sf-table-size-selector-card .sf-table-selector-cell{border:1px solid #ccc;height:15px;width:20px}.sf-table-size-selector-card .sf-table-row{display:flex}.sf-table-size-selector-card .sf-table-selector-cell.selected{background-color:#ffa94d}.sf-table-container td{position:relative}.sf-table-container .selected-cell{background-color:#fff4e6;caret-color:transparent}.sf-table-container .selected-cell-top:before{border-top:1px double #ffa94d;bottom:0;content:"";left:0;margin:-1px;position:absolute;right:0;top:0;z-index:2}.sf-table-container .selected-cell-bottom:before{border-bottom:1px double #ffa94d;bottom:0;content:"";left:0;margin:-1px;position:absolute;right:0;top:0;z-index:2}.sf-table-container .selected-cell-left:before{border-left:1px double #ffa94d;bottom:0;content:"";left:0;margin:-1px;position:absolute;right:0;top:0;z-index:2}.sf-table-container .selected-cell-right:before{border-right:1px double #ffa94d;bottom:0;content:"";left:0;margin:-1px;position:absolute;right:0;top:0;z-index:2}.sf-context-menu{background-color:#fff;border:1px solid rgba(0,40,100,.12);border-radius:3px;display:flex;flex-direction:column;left:0;position:absolute;top:0;z-index:1000}.sf-context-menu .sf-context-menu-item{background-color:#fff;border:none;clear:both;color:#212529;display:flex;padding:.25rem 1.5rem;white-space:nowrap}.sf-context-menu .sf-context-menu-item:focus,.sf-context-menu .sf-context-menu-item:hover{background-color:#f8f9fa;color:#16181b;text-decoration:none}.sf-context-menu .sf-divider{color:#eee;cursor:default;height:1px;margin:5px 0;width:100%}.sf-selected-formula{cursor:pointer;display:block;outline:2px solid #007bff;-webkit-user-select:none;user-select:none}.sf-selected-formula .MathJax{margin:0}.formula-dialog-wrapper .form-check-label{margin-bottom:4px}.formula-dialog-wrapper .formula-preview{border:2px dashed #ebebeb;min-height:40px;overflow-x:auto;padding:10px}.keyboard-shortcut-dialog{max-width:500px}.keyboard-shortcut-dialog .modal-body{max-height:390px;overflow:auto}.keyboard-shortcut-container{align-items:center;background-color:#f8f8f8;border-radius:3px;box-sizing:border-box;display:flex;line-height:1.5;margin-top:3px;padding-bottom:.5rem;padding-top:.5rem}.keyboard-shortcut-title{font-size:.9rem}.keyboard-shortcut-container>div:first-child{text-align:right}.keyboard-shortcut-container>div:last-child{padding-left:1rem;padding-right:1rem}.keyboard-shortcut{display:inline-block}.keyboard-shortcut kbd{background-color:hsla(0,0%,100%,.25);border:solid rgba(0,0,0,.1);border-radius:3px;border-width:1px 1px 2px;box-sizing:border-box;color:#333;display:inline-block;font:inherit;font-size:12px;margin-bottom:0;margin-left:1px;margin-right:1px;min-width:12px;padding:1px 3px;text-align:center;text-transform:uppercase}.sf-slate-editor-toolbar{background-color:#fcfcfc!important}.sf-slate-editor-toolbar .sf-slate-article-info-control{color:#555;cursor:pointer;display:flex;height:30px;justify-content:center;line-height:30px;position:absolute;right:20px;width:30px}.sf-slate-editor-toolbar .sf-slate-article-info-control:hover{background-color:#e5e5e5}.sf-slate-editor-toolbar .sf-slate-help-info-control{color:#555;cursor:pointer;display:flex;height:30px;justify-content:center;line-height:30px;position:absolute;right:20px;width:30px}.sf-slate-editor-toolbar .sf-slate-help-info-control>span:hover{color:#333;cursor:pointer}.sf-slate-editor-toolbar .sf-slate-article-info-control .iconfont{font-size:13px}.sf-editor-helper{background-color:#fff;border-left:1px solid #eee;flex:1 0 350px;height:100%;overflow-x:hidden;overflow-y:auto}.sf-editor-helper__header{background-color:#fafaf9;border-bottom:1px solid #eee;box-sizing:border-box;display:flex;font-size:1rem;height:50px;justify-content:space-between;line-height:50px;padding:0 10px}.sf-editor-helper__header .title{font-weight:bolder;margin-bottom:0}.sf-editor-helper__header .help-close{cursor:pointer}.sf-editor-helper__content{box-sizing:border-box;font-size:.8rem;height:calc(100% - 50px);overflow-y:auto;padding:0 15px}.sf-editor-helper .sf-editor-classify-hotkeys{color:#2c2d30;display:flex;flex-direction:column;justify-content:space-between}.sf-editor-helper .sf-editor-classify-hotkeys .hotkey-type{border-bottom:1px solid #eee;font-weight:bolder;line-height:2;margin:10px 0 0}.sf-editor-helper .sf-editor-classify-hotkeys .hotkey-list{list-style:none;padding:0}.sf-editor-helper .sf-editor-classify-hotkeys .hotkey-shortcuts{border-bottom:1px solid #eee;color:#2c2d30;display:flex;justify-content:space-between;padding:10px 0}.sf-editor-helper .sf-editor-classify-hotkeys .hotkey-shortcuts-left{line-height:30px;word-break:break-all}.sf-editor-helper .sf-editor-classify-hotkeys .hotkey-shortcuts-right{min-width:-webkit-max-content;min-width:max-content}.sf-editor-helper .sf-editor-classify-hotkeys .hotkey-shortcuts-right .key{background-color:#e8e8e8;border:1px solid #919191;border-radius:3px;box-shadow:0 1px 0 #919193;display:inline-block;height:30px;line-height:20px;margin-left:5px;padding:3px 5px}.sf-editor-outline{border-left:1px solid #ddd;padding:.5rem 1rem .5rem 0}.sf-editor-outline .outline-h2,.sf-editor-outline .outline-h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sf-editor-outline .outline-h2{color:#364149;cursor:pointer;line-height:2.5;margin-left:20px;white-space:nowrap}.sf-editor-outline .outline-h2:hover{color:#eb8205}.sf-editor-outline .outline-h3{color:#364149;cursor:pointer;line-height:2.5;margin-left:40px;white-space:nowrap}.sf-editor-outline .outline-h3:hover{color:#eb8205}.sf-editor-outline .empty-container{margin-top:10px;text-align:center}.sf-editor-outline .outline-h2.active,.sf-editor-outline .outline-h3.active{color:#eb8205}.sf-article-info-container{background-color:#f5f5f5;display:flex;flex:1 1;flex-direction:column;min-height:0;-webkit-user-select:none;user-select:none}.sf-article-info-container .nav{background-color:#fff;border-bottom:1px solid #eee;flex-shrink:0;flex-wrap:nowrap;height:36px;justify-content:space-around;min-width:125px;padding:10px 0}.sf-article-info-container .nav .nav-item{padding:0 .75rem}.sf-article-info-container .nav .nav-link{margin-right:0;padding:0 .75rem;transition:color .3s}.sf-article-info-container .nav-link{color:#888}.sf-article-info-container .nav .nav-link.active{border-bottom:0;color:#ff9800}.sf-article-info-container .nav .iconfont{font-size:.875rem;font-weight:700}.sf-article-info-container .sf-article-info-content{flex:1 1;font-size:.937rem;min-height:0;overflow:auto}.sf-article-info-container .sf-article-info-content:hover{overflow:auto}.sf-markdown-help-wrapper{background-color:#fff;border-left:1px solid #eee;display:none;flex:0 0 300px;height:100%;overflow-x:hidden;overflow-y:auto;width:300px}.sf-markdown-help-wrapper.active{display:flex;flex-direction:column}.sf-slate-editor-container{display:flex;flex:1 1;flex-direction:column;min-height:0;min-width:0}.sf-slate-editor-container .sf-slate-editor-toolbar{align-items:center;background-color:#fff;border-bottom:1px solid #e5e6e8;display:flex;height:44px;justify-content:center;padding:0 10px;position:relative;-webkit-user-select:none;user-select:none;z-index:102}.sf-slate-editor-container .sf-slate-editor-content{background:#f5f5f5;display:flex;height:calc(100% - 44px);min-height:0;position:relative;width:100%}.sf-slate-editor-container .sf-slate-scroll-container{background-color:#fafaf9;height:100%;overflow:auto;width:100%}.sf-slate-editor-container .sf-slate-scroll-container.isWin::-webkit-scrollbar{height:8px;width:8px}.sf-slate-editor-container .sf-slate-scroll-container.isWin::-webkit-scrollbar-button{display:none}.sf-slate-editor-container .sf-slate-scroll-container.isWin::-webkit-scrollbar-thumb{background-color:#ceced4;border-radius:10px}.sf-slate-editor-container .sf-slate-article-container{flex:1 1;margin:0 auto;max-width:950px;min-width:400px;padding-bottom:20px;padding-top:20px;position:relative}.sf-slate-editor-container .sf-slate-editor-content .article{background-color:#fff;border:1px solid #e5e6e8;box-shadow:0 0 15px rgba(0,0,0,.06);max-width:950px;min-height:1200px;padding:40px 60px}.sf-slate-editor-container .sf-slate-editor-content .article div:first-child{outline:none}@media (max-width:991.8px){.sf-slate-editor-toolbar{justify-content:flex-start!important;overflow-x:auto;padding-right:40px!important}.sf-slate-editor-toolbar::-webkit-scrollbar{display:none}.sf-slate-editor-toolbar .sf-slate-article-info-control,.sf-slate-editor-toolbar .sf-slate-help-info-control{align-items:center;background-color:#fcfcfc;height:43px;padding:0 20px;position:fixed;right:0}.sf-slate-article-container{width:100%}.sf-slate-article-container .article{margin:20px!important;padding:20px 30px}.sf-markdown-help-wrapper{flex:0 0 250px;width:250px!important}}@media (max-width:768px){.sf-slate-editor-container .sf-slate-article-container{flex:1 1;margin:0 auto;max-width:950px;min-width:auto;padding-bottom:0;padding-top:0;position:relative}.sf-slate-article-container .article{border:0!important;margin:0!important;padding:10px 15px!important}}.sf-slate-viewer-scroll-container{background:#f4f4f4;display:flex;flex:1 1;min-height:0;min-width:0;overflow:auto;padding:30px 0 15px}.sf-slate-viewer-scroll-container.isWin::-webkit-scrollbar{height:8px;width:8px}.sf-slate-viewer-scroll-container.isWin::-webkit-scrollbar-button{display:none}.sf-slate-viewer-scroll-container.isWin::-webkit-scrollbar-thumb{background-color:#ceced4;border-radius:10px}.sf-slate-viewer-scroll-container .sf-slate-viewer-article-container{flex:1 1;margin:0 auto 15px}.sf-slate-viewer-scroll-container.outline .sf-slate-viewer-article-container{margin:0 340px 15px 40px}.sf-slate-viewer-scroll-container .sf-slate-viewer-outline{height:80%;overflow-y:hidden;padding-right:1rem;position:fixed;right:0;top:97px;width:300px}.sf-slate-viewer-scroll-container .sf-slate-viewer-outline:hover{overflow-y:auto}.sf-slate-viewer-scroll-container .article{background:#fff;border:1px solid #e6e6dd;margin:0 auto;max-width:950px;min-height:calc(100% - 15px);padding:40px 60px}@media (max-width:991.98px){.sf-slate-viewer-article-container{margin:0!important;padding:0 10px;width:100%}.sf-slate-viewer-outline{display:none!important}}@media (max-width:768px){.sf-slate-viewer-article-container .article{margin:0!important;padding:20px!important}}.sf-simple-slate-editor-container{display:flex;flex:1 1;flex-direction:column;min-height:0;min-width:0}.sf-simple-slate-editor-container .sf-slate-editor-toolbar{align-items:center;background-color:#fff;border-bottom:1px solid #e5e6e8;display:flex;height:44px;justify-content:flex-start;padding:0 10px;position:relative;-webkit-user-select:none;user-select:none;z-index:102}.sf-simple-slate-editor-container .sf-slate-editor-content{background:#f5f5f5;display:flex;height:calc(100% - 44px);min-height:0;position:relative;width:100%}.sf-simple-slate-editor-container .sf-slate-scroll-container{height:100%;overflow:auto;width:100%}.sf-simple-slate-editor-container .sf-slate-scroll-container.isWin::-webkit-scrollbar{height:8px;width:8px}.sf-simple-slate-editor-container .sf-slate-scroll-container.isWin::-webkit-scrollbar-button{display:none}.sf-simple-slate-editor-container .sf-slate-scroll-container.isWin::-webkit-scrollbar-thumb{background-color:#ceced4;border-radius:10px}.sf-simple-slate-editor-container .sf-slate-article-container{height:100%;overflow:auto;width:100%}.sf-simple-slate-editor-container .sf-slate-editor-content .article{background-color:#fff;border:none;margin:0;min-height:100%;padding:10px}.sf-simple-slate-editor-container .sf-slate-editor-content .article div:first-child{outline:none}.longtext-modal-wrapper{background-color:rgba(0,0,0,.5);bottom:0;left:0;position:fixed;right:0;top:0;z-index:1070}.longtext-dialog-container{background-clip:padding-box;background-color:#fff;border:1px solid rgba(0,0,0,.2);border-radius:3px;bottom:20px;display:flex;flex-direction:column;margin-left:50%;overflow:hidden;position:absolute;top:20px;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:800px}.longtext-header-container{box-sizing:border-box;padding:0 8px 0 16px}.longtext-header-container.longtext-header-container-border{border-bottom:1px solid #e9ecef}.longtext-header-container .longtext-header{display:flex;height:36px;justify-content:space-between;line-height:36px}.longtext-header-container .longtext-header-name{font-weight:700}.longtext-header-container .longtext-header-tool{align-items:center;display:flex;flex-direction:row}.longtext-header-container .longtext-header-tool-item{border-radius:3px;color:#000;cursor:pointer;display:block;font-size:16px;font-weight:700;height:24px;line-height:24px;opacity:.5;text-align:center;width:24px}.longtext-header-container .longtext-header-tool-item.long-text-full-screen{background-color:#e0e0e0}.longtext-header-container .longtext-header-tool-item:not(.long-text-full-screen):hover{opacity:1}.longtext-header-container .browser-tip{color:#f25041;display:flex;font-size:13px;height:12px;margin-bottom:8px}.longtext-header-container .browser-tip__icon{display:inline-block;line-height:12px;margin-right:4px;-webkit-transform:scale(.8);transform:scale(.8)}.longtext-header-container .browser-tip__message{line-height:12px}.longtext-content-container{flex:1 1 auto;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;overflow:hidden}.longtext-content-container.longtext-content-container-scroll{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;overflow-y:auto}.longtext-content-container .sf-slate-editor-toolbar{border-bottom:1px solid #e9ecef;border-top:1px solid #e9ecef;box-shadow:none;height:34px}.longtext-content-container .sf-slate-editor-content{height:calc(100% - 34px)}.longtext-content-container .sf-slate-editor-toolbar .sf-menu-group{padding:4px 0 4px 8px}.longtext-content-container .sf-slate-editor-toolbar .sf-menu-group:first-child{padding-left:0}.longtext-content-container .sf-slate-editor-toolbar .sf-menu-group .sf-menu-group-item .iconfont{font-size:12px}.longtext-content-container .sf-slate-editor-toolbar .sf-header-menu{padding:4px 6px 4px 0}.longtext-content-container .sf-slate-editor-toolbar .sf-header-menu .sf-header-toggle{padding:0 3px 0 6px}.longtext-content-container .sf-slate-editor-toolbar .sf-slate-help-info-control{right:6px}.longtext-content-container .sf-slate-editor-toolbar .sf-slate-help-info-control .iconfont{font-size:14px}.longtext-content-container .sf-simple-slate-editor-container{border:none;height:100%;width:100%}.longtext-content-container .sf-simple-slate-editor-container .article{height:auto;margin:0!important;min-height:100%!important;padding:16px}.longtext-content-container .sf-simple-slate-editor-container .article>div[role=textbox]>:first-child{margin-top:0}.longtext-content-container .article h2{border-bottom:none}.longtext-content-container .article pre{margin:0}.longtext-content-container .sf-slate-editor-toolbar button:focus{outline:none}.longtext-content-container .sf-image-wrapper .full-screen{align-items:center;background-color:rgba(0,0,0,.5);border:none;border-radius:3px;box-shadow:none;display:flex;height:28px;justify-content:center;line-height:28px;padding:0;position:absolute;right:10px;top:10px;-webkit-user-select:none!important;user-select:none!important;width:28px;z-index:1000}.longtext-content-container .sf-image-wrapper .full-screen .iconfont{color:#fff}.longtext-content-container .sf-image-wrapper .full-screen:hover{background-color:rgba(0,0,0,.5);display:flex}@-webkit-keyframes commonLoading{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes commonLoading{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.common-loading-icon{-webkit-animation:commonLoading .9s linear infinite;animation:commonLoading .9s linear infinite;border:2px solid #eee;border-left-color:#aaa;border-radius:50%;display:inline-block;height:20px;width:20px}.common-loading-tip{display:block;margin:0 auto}.sdoc-dropdown-item-with-left-icon .sdoc-dropdown-item-content .sdoc-dropdown-item-content-icon{color:#444}.sdoc-tooltip{pointer-events:none}.sdoc-tooltip .tooltip-inner{background-color:#303133;font-weight:lighter;text-align:start}.sdoc-tooltip.bs-tooltip-auto[x-placement^=bottom] .arrow:before{border-bottom-color:#303133}.sdoc-tooltip.bs-tooltip-auto[x-placement^=top]{margin-bottom:-2px}.sdoc-tooltip.bs-tooltip-auto[x-placement^=top] .arrow:before{border-top-color:#303133}.sdoc-tooltip.bs-tooltip-auto[x-placement^=right] .arrow:before{border-right-color:#303133}.sdoc-tooltip.bs-tooltip-auto[x-placement^=left] .arrow:before{border-left-color:#303133}.menu-group .sdoc-color-menu.menu-show{background:#e5e5e5;border-radius:2px}.menu-group .sdoc-color-menu .last-used-color-container{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center}.menu-group .sdoc-color-menu .last-used-color-container.disabled{padding-right:0}.menu-group .sdoc-color-menu .sdoc-color-toggle{align-items:center;display:flex;height:100%;justify-content:center}.menu-group .sdoc-color-menu .last-used-color-container:not(.disabled):hover,.menu-group .sdoc-color-menu .sdoc-color-toggle:hover{background-color:#e5e5e5}.menu-group .sdoc-color-menu.disabled .sdoc-color-toggle{display:none}.sdoc-color-menu .sdoc-color-icon{height:12px;line-height:12px;-webkit-transform:scale(.85);transform:scale(.85);width:12px}.sdoc-color-menu .last-used-color{border:1px solid rgba(0,0,0,.08);border-radius:1px;height:3px;margin-top:1px;width:14px}.sdoc-color-menu-popover .popover{left:-24px!important}.sdoc-color-menu-popover .sdoc-color-dropdown-menu{padding:0 0 12px;width:251px}.sdoc-color-menu-popover .sdoc-color-no-color-container{height:24px;margin-bottom:5px;width:100%}.sdoc-color-menu-popover .sdoc-color-no-color-content{border:1px solid rgba(0,0,0,.12);border-radius:2px;cursor:pointer;font-size:12px;height:100%;line-height:22px;text-align:center;width:100%}.sdoc-color-menu-popover .sdoc-color-default-colors-container{display:flex;flex-wrap:wrap}.sdoc-color-menu-popover .sdoc-color-item{border:.5px solid rgba(0,0,0,.08);height:20px;margin-bottom:3px;margin-right:3px;position:relative;width:20px}.sdoc-color-menu-popover .sdoc-color-item:not(.selected):hover:before{border:1px solid rgba(0,0,0,.24);content:"";height:calc(100% + 5px);left:-2.5px;pointer-events:none;position:absolute;top:-2.5px;width:calc(100% + 5px)}.sdoc-color-menu-popover .sdoc-color-item.selected:after{border:1px solid rgba(0,0,0,.88);content:"";height:calc(100% + 5px);left:-2.5px;pointer-events:none;position:absolute;top:-2.5px;width:calc(100% + 5px)}.sdoc-color-menu-popover .sdoc-color-item:hover{cursor:pointer}.sdoc-color-menu-popover .sdoc-color-item:nth-child(10n){margin-right:0}.sdoc-color-menu-popover .sdoc-color-sub-title{color:rgba(0,0,0,.4);font-size:11px;line-height:16px;margin:7px 0}.sdoc-color-menu-popover .sdoc-colors-divider{border-bottom:1px solid rgba(0,0,0,.08);height:1px;margin:0 0 8px;width:100%}.sdoc-color-menu-popover .sdoc-more-colors{align-items:center;display:flex;font-size:12px;height:30px;justify-content:space-between;padding:0 12px}.sdoc-color-menu-popover .sdoc-more-colors .sdocfont{color:#888;font-size:12px;-webkit-transform:scale(.6);transform:scale(.6)}.sdoc-color-menu-popover .sdoc-more-colors.show-pick{background-color:rgba(51,77,102,.06);cursor:pointer}.sdoc-more-colors-popover .popover{left:10px!important}.menu-group #button-sdoc-highlight-color .sdoc-color-icon{left:1px;position:relative}.menu-group{align-items:center;border-right:1px solid #e5e6e8;color:#444;display:flex;font-size:.75rem;height:100%;justify-content:center;padding:6px 0 6px 8px}.menu-group .menu-group-item{background-color:transparent;border:none!important;color:#444;height:24px;line-height:24px;margin-right:8px;width:24px}.menu-group .menu-group-item:disabled{color:#bdbdbd}.menu-group .menu-group-item:hover{background-color:#f2f2f2;border-radius:2px}.menu-group .menu-group-item[data-active=true]{color:#eb8205}.menu-group .menu-group-item .sdocfont,.sdoc-menu-with-dropdown .sdoc-menu-with-dropdown-icon .sdocfont{font-size:12px}.menu-group .menu-group-item.sdoc-menu-with-dropdown{align-items:center;border:0!important;display:flex;height:24px;justify-content:center;margin-right:10px;overflow:hidden;padding:0!important;width:36px}.menu-group .menu-group-item.sdoc-menu-with-dropdown.disabled{color:#999;width:24px!important}.sdoc-menu-with-dropdown:not(.disabled):hover{background:#f2f2f2;border-radius:2px}.sdoc-menu-with-dropdown .sdoc-menu-with-dropdown-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.sdoc-menu-with-dropdown .sdoc-menu-with-dropdown-triangle{align-items:center;display:flex;height:24px;justify-content:center;width:12px}.sdoc-menu-with-dropdown .sdoc-menu-with-dropdown-triangle .sdoc-menu-with-dropdown-triangle-icon{color:#999;font-size:12px}.link-op-menu{background-color:#fff;border:1px solid #e5e5e5;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,.08);display:flex;height:36px;padding:7px 8px;position:absolute;z-index:1000}.link-op-menu .link-op-menu-triangle{background:#fff;border-bottom:1px solid rgba(0,40,100,.12);border-right:1px solid rgba(0,40,100,.12);height:8px;position:absolute;right:50%;top:31px;-webkit-transform:rotate(45deg);transform:rotate(45deg);width:8px;z-index:1001}.link-op-menu-link{border-radius:2px;color:#212529;cursor:pointer;font-size:12px;line-height:20px;padding:0 5px}.link-op-menu-link:hover{background:#f1f1f1;color:#212529;text-decoration:none}.link-op-icons{border-left:1px solid #e5e5e5;margin-left:8px}.link-op-icon{align-items:center;border-radius:2px;color:#999;display:flex;margin-left:8px;padding:4px}.link-op-icon .sdocfont{color:#444;font-size:12px}.link-op-icon:hover{background:#f2f2f2}.seafile-ed-hovermenu-mouseclick{background-color:#e5e5e5}code[class*=language-],pre[class*=language-]{word-wrap:normal;background:none;color:#000;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;-webkit-hyphens:none;hyphens:none;line-height:1.5;tab-size:4;text-align:left;text-shadow:0 1px #fff;white-space:pre;word-break:normal;word-spacing:normal}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{background:#b3d4fc;text-shadow:none}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{margin:.5em 0;overflow:auto;padding:1em}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{border-radius:.3em;padding:.1em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{background:hsla(0,0%,100%,.5);color:#9a6e3a}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.sdoc-code-block-hover-menu-container{height:42px;max-width:250px;position:absolute;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;z-index:101}.sdoc-code-block-hover-menu-container .hover-menu-container{align-items:center;background-color:#fff;border:1px solid #e8e8e8;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,.08);display:flex;height:36px;justify-content:space-around;padding:7px 8px;width:100%}.sdoc-code-block-hover-menu-container .hover-menu-container .active{background:#f2f2f2;color:#212529;text-decoration:none}.sdoc-code-block-hover-menu-container .hover-menu-container .op-item{border-radius:2px;color:#212529;font-size:12px;height:100%;line-height:20px;position:relative;text-align:center;width:100%}.sdoc-code-block-hover-menu-container .sdoc-code-block-hover-operation-item.sdoc-code-block-hover-operation-lang .op-item{padding:0 5px}.sdoc-code-block-hover-menu-container .hover-menu-container .sdoc-code-block-hover-operation-lang .icon-font{align-items:center;display:inline-flex;justify-content:center;margin-left:8px}.sdoc-code-block-hover-menu-container .sdoc-code-block-hover-operation-item{height:20px;justify-content:center;text-align:center;width:20px}.sdoc-code-block-hover-menu-container .sdoc-code-block-hover-operation-item.sdoc-code-block-hover-operation-lang{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.sdoc-code-block-hover-menu-container .sdoc-code-block-hover-operation-lang .icon-font{color:#999}.sdoc-code-block-hover-menu-container .sdoc-code-block-hover-operation-divider{background-color:#e5e5e5;height:20px;margin:0 8px;width:1px}.sdoc-code-block-hover-menu-container .hover-menu-container .op-item:hover{background:#f2f2f2;color:#212529;text-decoration:none}.sdoc-code-block-hover-menu-container .icon-font{color:#444;font-size:12px}.sdoc-langs-list-container{background-color:#fff;border:1px solid #dedede;border-radius:4px;box-shadow:0 0 5px #ccc;left:0;overflow-y:hidden;position:absolute;top:38px;width:200px}.sdoc-langs-list-container .sdoc-search-langs{padding:10px 10px 0}.sdoc-langs-list-container .sdoc-search-langs input{font-size:14px;max-height:30px}.sdoc-langs-list-container .langs-list-ul{list-style:none;max-height:280px;min-height:100px;overflow-y:auto;padding:10px}.sdoc-langs-list-container .langs-list-ul .langs-list-li{cursor:pointer;display:flex;font-size:13px;height:30px;justify-content:space-between;line-height:30px;padding-left:12px;position:relative;white-space:nowrap}.sdoc-langs-list-container .langs-list-ul .langs-list-li .active,.sdoc-langs-list-container .langs-list-ul .langs-list-li:hover{background-color:#f5f5f5}.sdoc-langs-list-container .langs-list-ul .langs-list-li .li-check-mark{opacity:0;padding:0 10px}.sdoc-langs-list-container .langs-list-ul .langs-list-li .li-checked{opacity:1}.sdoc-code-block-container{position:relative}.sdoc-code-block-pre{background:#fafafa;border:1px solid #f0f0f0}.sdoc-code-block-pre .sdoc-code-no-wrap{white-space:nowrap}.sdoc-code-block-pre .sdoc-code-no-wrap .sdoc-code-line>span{white-space:pre}.sdoc-code-block-code .sdoc-code-line{counter-increment:number;margin-left:32px;position:relative}.sdoc-code-block-code .sdoc-code-line:before{color:#ccc;content:counter(number);left:-50px;position:absolute;text-align:end;width:40px}.sdoc-code-line +.token.comment,.token.cdata,.token.doctype,.token.prolog{color:#708090}.sdoc-code-line +.token.punctuation{color:#999}.sdoc-code-line +.token.namespace{opacity:.7}.sdoc-code-line +.token.property,.token.boolean,.token.constant,.token.deleted,.token.number,.token.symbol,.token.tag{color:#905;padding:0}.sdoc-code-line +.token.selector,.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.string{color:#690}.language-css .token.string,.sdoc-code-line +.token.operator,.style .token.string,.token.entity,.token.url{color:#9a6e3a}.sdoc-code-line +.token.atrule,.token.attr-value,.token.keyword{color:#07a}.sdoc-code-line +.token.function,.token.class-name{color:#dd4a68}.sdoc-code-line +.token.regex,.token.important,.token.variable{color:#e90}.sdoc-code-line +.sdoc-code-line +.token.important,.token.bold{font-weight:700}.sdoc-code-line +.token.italic{font-style:italic}.sdoc-code-line +.token.entity{cursor:help}@-webkit-keyframes closeWindow{0%{opacity:1}to{opacity:0}}@keyframes closeWindow{0%{opacity:1}to{opacity:0}}.ril__outer{-ms-content-zooming:none;-ms-touch-select:none;background-color:rgba(0,0,0,.85);bottom:0;height:100%;left:0;outline:none;right:0;top:0;-ms-touch-action:none;touch-action:none;-ms-user-select:none;width:100%;z-index:1000}.ril__outerClosing{opacity:0}.ril__image,.ril__imageNext,.ril__imagePrev,.ril__inner{bottom:0;left:0;position:absolute;right:0;top:0}.ril__image,.ril__imageNext,.ril__imagePrev{-ms-content-zooming:none;-ms-touch-select:none;margin:auto;max-width:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none}.ril__imageDiscourager{background-position:50%;background-repeat:no-repeat;background-size:contain}.ril__navButtons{border:none;bottom:0;cursor:pointer;height:34px;margin:auto;opacity:.7;padding:40px 30px;position:absolute;top:0;width:20px}.ril__navButtons:hover{opacity:1}.ril__navButtons:active{opacity:.7}.ril__outer .ril__navButtonPrev{background:url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Im00MTIgNTE1LjIgMzYxLjYtMzYxLjZjMjIuNC0xOS4yIDIyLjQtNTQuNCAwLTc2LjhzLTU3LjYtMjIuNC03Ni44IDBsLTQwNi40IDQwMGMtMjIuNCAyMi40LTIyLjQgNTcuNiAwIDc2LjhsNDA2LjQgNDAzLjJjMjIuNCAyMi40IDU3LjYgMjIuNCA3Ni44IDBzMjIuNC01Ny42IDAtNzYuOEw0MTIgNTE1LjJ6IiBmaWxsPSIjZmZmIi8+PC9zdmc+) no-repeat 50%;left:0}.ril__outer .ril__navButtonNext{background:url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik02NDAgNTE1LjIgMjc4LjQgMTUzLjZjLTIyLjQtMTkuMi0yMi40LTU0LjQgMC03Ni44czU3LjYtMjIuNCA3Ni44IDBsNDA2LjQgNDAwYzIyLjQgMjIuNCAyMi40IDU3LjYgMCA3Ni44TDM1NS4yIDk1Ni44Yy0yMi40IDIyLjQtNTcuNiAyMi40LTc2LjggMHMtMjIuNC01Ny42IDAtNzYuOEw2NDAgNTE1LjJ6IiBmaWxsPSIjZmZmIi8+PC9zdmc+) no-repeat 50%;right:0}.ril__downloadBlocker{background-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);background-size:cover;bottom:0;left:0;position:absolute;right:0;top:0}.ril__caption,.ril__toolbar{-ms-flex-pack:justify;background-color:rgba(0,0,0,.5);display:-ms-flexbox;display:flex;justify-content:space-between;left:0;position:absolute;right:0}.ril__caption{-ms-flex-pack:center;bottom:0;justify-content:center;max-height:150px;overflow:auto}.ril__captionContent{color:#fff;margin:0 auto;padding:10px 20px}.ril__toolbar{height:50px;top:0}.ril__toolbarSide{height:50px;margin:0}.ril__toolbarLeftSide{-ms-flex:0 1 auto;flex:0 1 auto;overflow:hidden;padding-left:20px;padding-right:0;text-overflow:ellipsis}.ril__toolbarRightSide{-ms-flex:0 0 auto;flex:0 0 auto;padding-left:0;padding-right:20px}.ril__toolbarItem{color:#fff;display:inline-block;font-size:120%;line-height:50px;max-width:100%;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap}.ril__toolbarItemChild{vertical-align:middle}.ril__builtinButton{border:none;cursor:pointer;height:35px;opacity:.7;width:40px}.mobile-image-footer-choice .ril__builtinButton,.ril__builtinButton:hover{opacity:1}.ril__builtinButton:active{outline:none}.ril-toolbar .ril__builtinButton{width:30px}.ril__builtinButtonDisabled{cursor:default;opacity:.5}.ril__builtinButtonDisabled:hover{opacity:.5}.ril__deleteButton{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSJweCIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBzdHlsZT0ic3Ryb2tlOm5vbmU7ZmlsbC1ydWxlOm5vbnplcm87ZmlsbDojZmZmO2ZpbGwtb3BhY2l0eToxIiBkPSJNMTAuMi41Yy40MDIgMCAuOC4zNTIuODUuNzVsLjIgMS4zNTJoMy42MDJjLjM0NyAwIC42NDguMjk2LjY0OC41OTdzLS4zLjYwMi0uNjQ4LjYwMmgtMS4yNXYxMGMwIC4zOTgtLjIwNC44NDctLjUgMS4xOTktLjM1Mi4zNTItLjc1LjQ1LTEuMjA0LjQ1aC03Ljc1Yy0uNDQ5IDAtLjg5OC0uMi0xLjE5OS0uNDUtLjM0Ny0uMzUyLS41LS43NS0uNS0xLjJ2LTEwaC0xLjNBLjU4MS41ODEgMCAwIDEgLjUgMy4yNWMwLS4zLjMtLjYwMi42NDgtLjYwMkg0Ljd2LS4wOTdsLjItMS4zNTJDNC45NDguODUyIDUuMy41IDUuNzUuNVptLS41NTIgNS42MDJjLS4zOTggMC0uNjk5LjI5Ni0uNjk5LjY5OVYxMmMwIC4zOTguMzAxLjcuNy43LjQwMiAwIC43MDMtLjMwMi43MDMtLjdWNi44NTJjMC0uNDAzLS4zMDEtLjc1LS43MDQtLjc1Wm0tMy4yOTYgMGEuNjgzLjY4MyAwIDAgMC0uNzA0LjY5OVYxMmMwIC4zOTguMzAxLjcuNzA0LjcuMzk4IDAgLjY5OS0uMzAyLjY5OS0uN1Y2Ljg1MmMwLS40MDMtLjMwMS0uNzUtLjctLjc1Wm0wIDAiLz48L3N2Zz4=) no-repeat 50%}.ril__downloadButton{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSJweCIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBzdHlsZT0ic3Ryb2tlOm5vbmU7ZmlsbC1ydWxlOm5vbnplcm87ZmlsbDojZmZmO2ZpbGwtb3BhY2l0eToxIiBkPSJNOS4xMDIgOC44OThWMS42MDJDOS4xMDIuOTQ5IDguNjAyLjUgOCAuNWMtLjYwMiAwLTEuMTAyLjQ1LTEuMTAyIDEuMTAydjcuMjk2TDQuMiA2LjJhMS4wNDUgMS4wNDUgMCAwIDAtMS41LjA1MWMtLjM5OC4zOTgtLjM5OCAxLjEwMiAwIDEuNUw3LjI1IDEyLjNjLjM5OC40IDEuMTAyLjQgMS41IDBsNC41NS00LjU1Yy40LS4zOTguNC0xLjEwMi4wNTItMS41LS40MDMtLjM5OC0xLjEwMi0uMzk4LTEuNS0uMDVsLS4wNTEuMDVabS03LjUgNC40NTRoMTIuODQ3Yy42MDIgMCAxLjEwMi40NDkgMS4xMDIgMS4wOTcgMCAuNjUzLS41IDEuMDUxLTEuMTUzIDEuMDUxSDEuNjAyQy45NDkgMTUuNS41IDE1LjA1LjUgMTQuMzk4YzAtLjU0Ni40NS0xLjA0NiAxLjEwMi0xLjA0NlptMCAwIi8+PC9zdmc+) no-repeat 50%}.ril__downMoveButton{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSJweCIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBzdHlsZT0ic3Ryb2tlOm5vbmU7ZmlsbC1ydWxlOm5vbnplcm87ZmlsbDojZmZmO2ZpbGwtb3BhY2l0eToxIiBkPSJNOCAxNS41QTcuNDkyIDcuNDkyIDAgMCAxIC41IDhDLjUgMy44NTIgMy44NTIuNSA4IC41czcuNSAzLjM1MiA3LjUgNy41LTMuMzUyIDcuNS03LjUgNy41Wk04IDIuMTQ4QzQuOCAyLjE0OCAyLjE0OCA0LjgwMSAyLjE0OCA4YzAgMy4yIDIuNjUzIDUuODUyIDUuODUyIDUuODUyIDMuMiAwIDUuODUyLTIuNjUzIDUuODUyLTUuODUyIDAtMy4yLTIuNjUzLTUuODUyLTUuODUyLTUuODUyWm0wIDAiLz48cGF0aCBzdHlsZT0ic3Ryb2tlOm5vbmU7ZmlsbC1ydWxlOm5vbnplcm87ZmlsbDojZmZmO2ZpbGwtb3BhY2l0eToxIiBkPSJNOC41NSAxMGEuOTEuOTEgMCAwIDEtMS4xOTggMEw0LjQ0OSA3LjEwMkM0LjIgNi43NSA0LjIgNi4yNSA0LjUgNS45NDljLjMtLjMuOC0uMzQ3IDEuMTQ4LS4wNWwyLjMwMSAyLjMgMi4zMDEtMi4zYy4yLS4yNS41NS0uMzQ4Ljg1Mi0uMjk3LjI5Ni4wNDYuNTQ2LjI5Ni42NDguNjQ4LjA1LjMtLjA1LjY0OC0uMy44NTJabTAgMCIvPjwvc3ZnPg==) no-repeat 50%}.ril__upMoveButton{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSJweCIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBzdHlsZT0ic3Ryb2tlOm5vbmU7ZmlsbC1ydWxlOm5vbnplcm87ZmlsbDojZmZmO2ZpbGwtb3BhY2l0eToxIiBkPSJNOCAuNUE3LjQ5MiA3LjQ5MiAwIDAgMCAuNSA4YzAgNC4xNDggMy4zNTIgNy41IDcuNSA3LjVzNy41LTMuMzUyIDcuNS03LjVTMTIuMTQ4LjUgOCAuNVptMCAxMy4zNTJjLTMuMiAwLTUuODUyLTIuNjUzLTUuODUyLTUuODUyIDAtMy4yIDIuNjUzLTUuODUyIDUuODUyLTUuODUyIDMuMiAwIDUuODUyIDIuNjUzIDUuODUyIDUuODUyIDAgMy4yLTIuNjUzIDUuODUyLTUuODUyIDUuODUyWm0wIDAiLz48cGF0aCBzdHlsZT0ic3Ryb2tlOm5vbmU7ZmlsbC1ydWxlOm5vbnplcm87ZmlsbDojZmZmO2ZpbGwtb3BhY2l0eToxIiBkPSJNOC41NSA2YS45MS45MSAwIDAgMC0xLjE5OCAwTDQuNDQ5IDguODk4Yy0uMjUuMzUyLS4yNS44NTIuMDUxIDEuMTUzLjMuMy44LjM0NyAxLjE0OC4wNWwyLjMwMS0yLjMgMi4zMDEgMi4zYy4yLjI1LjU1LjM0OC44NTIuMjk3LjI5Ni0uMDQ2LjU0Ni0uMjk2LjY0OC0uNjQ4LjA1LS4zLS4wNS0uNjQ4LS4zLS44NTJabTAgMCIvPjwvc3ZnPg==) no-repeat 50%}.ril__closeButton{background:url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik02MTEuMiA1MTIgOTEyIDIxMS4yYzI4LjgtMjguOCAyOC44LTczLjYgMC05OS4ycy03My42LTI4LjgtOTkuMiAwTDUxMiA0MTIuOCAyMTEuMiAxMTJjLTI4LjgtMjguOC03My42LTI4LjgtOTkuMiAwcy0yOC44IDczLjYgMCA5OS4yTDQxMi44IDUxMiAxMTIgODEyLjhjLTI4LjggMjguOC0yOC44IDczLjYgMCA5OS4yIDI4LjggMjUuNiA3My42IDI4LjggOTkuMiAwTDUxMiA2MTEuMiA4MTIuOCA5MTJjMjguOCAyOC44IDczLjYgMjguOCA5OS4yIDAgMjguOC0yOC44IDI4LjgtNzMuNiAwLTk5LjJMNjExLjIgNTEyeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==) no-repeat 50%}.ril__zoomInButton{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0ibTEgMTkgNi02TTkgOGg2TTEyIDV2NiIvPjwvZz48Y2lyY2xlIGN4PSIxMiIgY3k9IjgiIHI9IjciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+) no-repeat 50%}.ril__zoomOutButton{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0ibTEgMTkgNi02TTkgOGg2Ii8+PC9nPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=) no-repeat 50%}.ril__rotateButton{background:url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiPjxwYXRoIGQ9Im0xMjQuOCAxNjAgNTQuNCA1MS4yQzM0NS42IDI4LjggNjMwLjQgMTYgODEyLjggMTgyLjRTMTAwOCA2MzMuNiA4NDEuNiA4MTYgMzkwLjQgMTAxMS4yIDIwOCA4NDQuOGMtMzguNC0zNS4yLTczLjYtNzYuOC05Ni0xMjQuOC02LjQtOS42LTkuNi0xNi05LjYtMjguOCAwLTMyIDI1LjYtNTQuNCA1NC40LTU0LjQgMTkuMiAwIDM4LjQgOS42IDU0LjQgMzIgODMuMiAxNjYuNCAyODggMjMwLjQgNDU0LjQgMTQ0czIzMC40LTI5MS4yIDE0NC00NTcuNi0yODgtMjMwLjQtNDU0LjQtMTQ0Yy0zNS4yIDE5LjItNjcuMiA0MS42LTk2IDczLjZsNTEuMiA0NC44YzEyLjggMTIuOCAxNiAzOC40IDMuMiA1MS4yLTYuNCA2LjQtMTYgOS42LTI1LjYgOS42TDEwNS42IDQwMGMtMTkuMiAwLTM1LjItMTIuOC0zOC40LTMyTDY0IDE4OC44Yy0zLjItMTkuMiAxMi44LTM1LjIgMzItMzguNCAxMi44LTMuMiAyMi40IDMuMiAyOC44IDkuNnoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=) no-repeat 50%}.ril__outerAnimating{-webkit-animation-name:closeWindow;animation-name:closeWindow}@-webkit-keyframes pointFade{0%,19.999%,to{opacity:0}20%{opacity:1}}@keyframes pointFade{0%,19.999%,to{opacity:0}20%{opacity:1}}.ril__loadingCircle{height:60px;position:relative;width:60px}.ril__loadingCirclePoint{height:100%;left:0;position:absolute;top:0;width:100%}.ril__loadingCirclePoint:before{-webkit-animation:pointFade .8s ease-in-out infinite both;animation:pointFade .8s ease-in-out infinite both;background-color:#fff;border-radius:30%;content:"";display:block;height:30%;margin:0 auto;width:11%}.ril__loadingCirclePoint:first-of-type{-webkit-transform:rotate(0deg);transform:rotate(0deg)}.ril__loadingCirclePoint:first-of-type:before,.ril__loadingCirclePoint:nth-of-type(7):before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.ril__loadingCirclePoint:nth-of-type(2){-webkit-transform:rotate(30deg);transform:rotate(30deg)}.ril__loadingCirclePoint:nth-of-type(8){-webkit-transform:rotate(210deg);transform:rotate(210deg)}.ril__loadingCirclePoint:nth-of-type(2):before,.ril__loadingCirclePoint:nth-of-type(8):before{-webkit-animation-delay:-666ms;animation-delay:-666ms}.ril__loadingCirclePoint:nth-of-type(3){-webkit-transform:rotate(60deg);transform:rotate(60deg)}.ril__loadingCirclePoint:nth-of-type(9){-webkit-transform:rotate(240deg);transform:rotate(240deg)}.ril__loadingCirclePoint:nth-of-type(3):before,.ril__loadingCirclePoint:nth-of-type(9):before{-webkit-animation-delay:-533ms;animation-delay:-533ms}.ril__loadingCirclePoint:nth-of-type(4){-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ril__loadingCirclePoint:nth-of-type(10){-webkit-transform:rotate(270deg);transform:rotate(270deg)}.ril__loadingCirclePoint:nth-of-type(10):before,.ril__loadingCirclePoint:nth-of-type(4):before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.ril__loadingCirclePoint:nth-of-type(5){-webkit-transform:rotate(120deg);transform:rotate(120deg)}.ril__loadingCirclePoint:nth-of-type(11){-webkit-transform:rotate(300deg);transform:rotate(300deg)}.ril__loadingCirclePoint:nth-of-type(11):before,.ril__loadingCirclePoint:nth-of-type(5):before{-webkit-animation-delay:-266ms;animation-delay:-266ms}.ril__loadingCirclePoint:nth-of-type(6){-webkit-transform:rotate(150deg);transform:rotate(150deg)}.ril__loadingCirclePoint:nth-of-type(12){-webkit-transform:rotate(330deg);transform:rotate(330deg)}.ril__loadingCirclePoint:nth-of-type(12):before,.ril__loadingCirclePoint:nth-of-type(6):before{-webkit-animation-delay:-133ms;animation-delay:-133ms}.ril__loadingCirclePoint:nth-of-type(7){-webkit-transform:rotate(180deg);transform:rotate(180deg)}.ril__loadingCirclePoint:nth-of-type(13){-webkit-transform:rotate(1turn);transform:rotate(1turn)}.ril__loadingCirclePoint:nth-of-type(13):before,.ril__loadingCirclePoint:nth-of-type(7):before{-webkit-animation-delay:0ms;animation-delay:0ms}.ril__loadingContainer{bottom:0;left:0;position:absolute;right:0;top:0}.ril__imageNext .ril__loadingContainer,.ril__imagePrev .ril__loadingContainer{display:none}.ril__errorContainer{-ms-flex-align:center;-ms-flex-pack:center;align-items:center;bottom:0;color:#fff;display:-ms-flexbox;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.ril__imageNext .ril__errorContainer,.ril__imagePrev .ril__errorContainer{display:none}.ril__loadingContainer__icon{color:#fff;left:50%;position:absolute;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.mobile-image-previewer .ril-toolbar .ril__toolbarRightSide{padding-right:14px}.image-footer-choice.mobile-image-footer-choice{background-color:#000;height:100px;padding:0;z-index:1052}.mobile-image-footer-choice{-ms-flex-pack:justify;-ms-flex-align:center;align-items:center;background:rgba(0,0,0,.6);border-radius:2px;border-top-left-radius:0;border-top-right-radius:0;bottom:0;color:#fff;display:-ms-flexbox;display:flex;height:30px;justify-content:space-between;padding:0 3px;position:absolute;width:100%}.mobile-image-footer-choice .image-footer-icon,.mobile-image-footer-choice .image-footer-icon span{-ms-flex-pack:center;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;justify-content:center}.mobile-image-footer-choice .image-footer-icon span{color:#dbdbdb;cursor:pointer;height:24px;width:24px}.image-footer-choice.mobile-image-footer-choice .image-footer-icon{-ms-flex-pack:justify;-ms-flex-direction:row-reverse;flex-direction:row-reverse;justify-content:space-between;margin:0 20px;width:100%}.mobile-image-footer-choice .image-footer-icon .image-footer-choice-item{background-color:#333;border-radius:5px;height:40px;width:40px}.ril__outer .ril-toolbar .ril-close{height:53px;width:30px}.ril__outer .ril__toolbarItem{height:50px}.ril__outer .ril__toolbarItem button{opacity:.7}.ril__outer .ril__toolbarItem button:hover{opacity:1}.sdoc-image-hover-menu-container{height:42px;position:absolute;width:auto;z-index:101}.sdoc-image-hover-menu-container .hover-menu-container{align-items:center;background-color:#fff;border:1px solid #e8e8e8;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,.08);display:flex;height:36px;justify-content:flex-start}.sdoc-image-hover-menu-container .hover-menu-container>span:not(:last-of-type){border-right:1px solid #e5e5e5;padding:0 8px}.sdoc-image-hover-menu-container .hover-menu-container .op-item{align-items:center;border-radius:2px;color:#212529;display:inline-flex;font-size:12px;height:24px;justify-content:center;min-width:24px;padding:0 5px;position:relative}.sdoc-image-hover-menu-container .hover-menu-container .op-item:hover{background:#f1f1f1;color:#212529;text-decoration:none}.sdoc-image-hover-menu-container .op-group-item:last-child .op-item{margin-left:8px}.sdoc-image-hover-menu-container .hover-menu-container .active{background:#f1f1f1}.sdoc-image-hover-menu-container .hover-menu-container .icon-font{color:#999;font-size:12px}.sdoc-image-hover-menu-container .sdoc-image-popover{align-items:flex-start;background-color:#fff;border:1px solid #e5e6e8;border-radius:2px;box-shadow:0 0 10px #ccc;display:flex;flex-direction:column;position:absolute;top:37px;white-space:nowrap;z-index:101}.sdoc-image-hover-menu-container .align-popover{left:80px;min-width:6rem}.sdoc-image-hover-menu-container .border-popover{align-items:center;flex-direction:row;height:80px;left:115px;padding:0 8px}.sdoc-image-hover-menu-container .border-popover .sdoc-dropdown-menu-item .sdoc-dropdown-item-content .sdoc-check-mark{-webkit-transform:translateX(-24px);transform:translateX(-24px)}.sdoc-image-hover-menu-container .border-popover .sdoc-dropdown-menu-item:hover{background-color:transparent}.sdoc-table-template-inner-popover{background-color:#fff;display:flex;flex-wrap:wrap;height:100%;padding:10px;width:310px}.sdoc-table-template-view-table{border:1px solid #e2e3e6;cursor:pointer;margin:10px 5px;padding:10px}.sdoc-table-template-view-table:hover{box-shadow:0 0 3px 2px #e2e3e6}.sdoc-table-template-view-table .sdoc-table-template-row .sdoc-table-template-cell{border-left:1px solid #e2e3e6;border-right:1px solid #e2e3e6;height:15px;width:28px}.sdoc-table-template-view-table .sdoc-table-template-row{display:flex}.sdoc-table-template-view-table .sdoc-table-template-row:first-child .sdoc-table-template-cell{border:none;border-top:1px solid #e2e3e6}.sdoc-table-template-view-table .sdoc-table-template-row:last-child .sdoc-table-template-cell{border-bottom:1px solid #e2e3e6}.sdoc-table-body-3f495d{background-color:#f1f3f6}.sdoc-table-header-3f495d{background-color:#3f495d;color:#fff}.sdoc-table-body-2367f2{background-color:#e1edff}.sdoc-table-header-2367f2{background-color:#2367f2;color:#fff}.sdoc-table-body-f77d21{background-color:#fff1e8}.sdoc-table-header-f77d21{background-color:#f77d21}.sdoc-table-body-0099f4{background-color:#e1f5ff}.sdoc-table-header-0099f4{background-color:#0099f4}.sdoc-selected-table-size-popover .popover{background-color:#fff;border-radius:2px;max-width:222px;min-height:100px;min-width:100px}.sdoc-selected-table-size-popover .sdoc-selected-table-size-tip{font-size:14px;height:35px;padding:5px 10px 10px;text-align:center}.sdoc-selected-table-size-popover .sdoc-table-size-select{padding:0 10px}.sdoc-selected-table-size-popover .sdoc-table-size-row{border-bottom:1px solid #ccc;flex-direction:row;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.sdoc-selected-table-size-popover .sdoc-table-size-row:first-child{border-top:1px solid #ccc}.sdoc-selected-table-size-popover .sdoc-table-size-cell{border-right:1px solid #ccc;height:15px;width:20px}.sdoc-selected-table-size-popover .sdoc-table-size-row .sdoc-table-size-cell:first-child{border-left:1px solid #ccc}.sdoc-selected-table-size-popover .sdoc-table-size-cell.active{background-color:#ffa94d}.sdoc-selected-table-size-popover .sdoc-table-size-select{margin-top:5px}.sdoc-selected-table-size-container .sdoc-selected-table-tools-container{border-bottom:1px solid #dedede;margin-bottom:10px;padding:10px 0}.sdoc-selected-table-size-popover .sdoc-selected-table-size-custom{align-items:center;display:flex;justify-content:space-between;min-height:32px;padding:0 10px}.sdoc-selected-table-size-popover .sdoc-selected-table-size-custom:hover{background:#f5f5f5;cursor:pointer}.sdoc-table-menu-group .sdoc-menu-with-dropdown .sdoc-menu-with-dropdown-icon{width:24px}.sdoc-table-menu-group .sdoc-menu-with-dropdown .sdoc-menu-with-dropdown-triangle{width:12px}.sdoc-table-menu-group .sdoc-color-menu .last-used-color-container{height:100%}.sdoc-table-menu-popover .sdoc-dropdown-menu-item{font-size:14px}.sdoc-context-menu .sdoc-table-context-menu{display:block;font-size:.875rem}.sdoc-table-context-menu .insert-number{margin-left:50px}.sdoc-table-context-menu .insert-number-input{height:20px;margin-right:.25rem;padding-left:4px;padding-right:4px;text-align:center;transition:none;width:36px}.sdoc-table-context-menu .dropdown-item:hover .insert-number-input{background-color:transparent;border:1px solid #fff;color:#fff}.sdoc-table-context-menu .dropdown-item:disabled .insert-number-input{color:#adb5bd}.sdoc-table-wrapper .sdoc-table-columns-header{height:12px;overflow:hidden;top:-12px;width:100%}.sdoc-table-wrapper .sdoc-table-columns-header .sdoc-table-column-header{background-color:#f3f5f7;border-right:1px solid rgba(0,0,0,.08);cursor:pointer;flex-shrink:0}.sdoc-table-wrapper .sdoc-table-columns-header .sdoc-table-column-header.drag{cursor:move}.sdoc-table-wrapper .sdoc-table-rows-header{height:100%;left:-12px;position:absolute;width:12px}.sdoc-table-wrapper .sdoc-table-rows-header .sdoc-table-row-header:first-child{border-top:1px solid rgba(0,0,0,.08)}.sdoc-table-wrapper .sdoc-table-row-header{background-color:#f3f5f7;border-bottom:1px solid rgba(0,0,0,.08);cursor:pointer;width:100%}.sdoc-table-wrapper .sdoc-table-rows-header .sdoc-table-row-header.drag{cursor:move}.sdoc-table-wrapper .sdoc-table-rows-columns-header{background-color:#f3f5f7;border-bottom:1px solid rgba(0,0,0,.08);border-right:1px solid rgba(0,0,0,.08);border-top-left-radius:3px;height:13px;left:-12px;position:absolute;top:-12px;width:13px}.sdoc-table-wrapper .sdoc-table-column-header.range-selected,.sdoc-table-wrapper .sdoc-table-row-header.range-selected,.sdoc-table-wrapper .sdoc-table-rows-columns-header.range-selected{background-color:#81868f!important}.sdoc-table-wrapper .sdoc-table-column-header.range-selected-tip,.sdoc-table-wrapper .sdoc-table-row-header.range-selected-tip,.sdoc-table-wrapper .sdoc-table-rows-columns-header.range-selected-tip{background-color:#e9ebed}.sdoc-table-wrapper .sdoc-table-add-element-icon-content{background-color:#ccc;border-radius:50%;color:#fff;cursor:default;height:12px;line-height:10px;text-align:center;width:12px;z-index:1}.sdoc-table-wrapper .sdoc-table-add-element-icon-content:hover{cursor:pointer}.sdoc-table-wrapper{margin:16px 0;width:100%}.sdoc-table-wrapper+.sdoc-table-wrapper{margin-top:32px}.sdoc-table-wrapper .sdoc-table-scroll-wrapper{cursor:default;max-width:100%;overflow-x:auto;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.sdoc-table-wrapper.scroll .sdoc-table-scroll-wrapper.scroll-at-center:before,.sdoc-table-wrapper.scroll .sdoc-table-scroll-wrapper.scroll-at-right:before{background:linear-gradient(270deg,transparent,rgba(0,0,0,.1));content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:8px}.sdoc-table-wrapper.scroll .sdoc-table-scroll-wrapper.scroll-at-center:after,.sdoc-table-wrapper.scroll .sdoc-table-scroll-wrapper.scroll-at-left:after{background:linear-gradient(90deg,transparent,rgba(0,0,0,.1));content:"";height:100%;pointer-events:none;position:absolute;right:0;top:0;width:8px}.sdoc-table-wrapper .sdoc-table-container{cursor:text;display:grid;overflow:hidden;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.sdoc-table-wrapper .table-row{height:auto}.sdoc-table-wrapper .table-cell{align-items:flex-start;border-bottom:1px solid #ccc;border-right:1px solid #ccc;display:flex;line-height:1.5;padding:10px}.sdoc-cell-container{width:100%}.table-cell>span{min-width:1px}.sdoc-table-wrapper .cell-selected{caret-color:transparent;position:relative}.sdoc-table-wrapper .table-row-height-just{bottom:-2.5px;height:5px;left:0;pointer-events:none;width:100%;z-index:1}.sdoc-table-wrapper .table-row-height-just:hover{cursor:row-resize;z-index:2}.sdoc-table-wrapper .table-row-height-just.resizing .table-row-height-just-color-tip{background-color:#2d7ff9;border-radius:1px;height:2px;margin-top:1.5;width:100%}.sdoc-table-wrapper .table-cell-width-just{height:100%;pointer-events:none;top:0;width:5px;z-index:1}.sdoc-table-wrapper .table-cell-width-just:hover{cursor:col-resize;z-index:2}.sdoc-table-wrapper .table-cell-width-just.resizing .table-cell-width-just-color-tip{background-color:#2d7ff9;border-radius:1px;height:100%;margin-left:1.5px;width:2px}.sdoc-table-wrapper .background-color-tip-blue{background-color:#2d7ff9!important}.sdoc-table-wrapper .sdoc-table-selected-range .table-cell ::selection{background-color:transparent;background-color:initial}.sdoc-table-resize-mask{left:0;opacity:0;pointer-events:none;position:absolute;top:0;-webkit-user-select:none;user-select:none;z-index:2}.sdoc-table-resize-mask .sdoc-table-resize-top{cursor:row-resize;height:1px;position:absolute;top:1px;width:100%}.sdoc-table-resize-mask>div{pointer-events:auto;position:absolute}.sdoc-table-resize-mask .sdoc-table-resize-bottom{bottom:1px;cursor:row-resize;height:1px;width:100%}.sdoc-table-resize-mask .sdoc-table-resize-right{cursor:col-resize;height:100%;right:-1px;width:1px}.sdoc-table-resize-mask .sdoc-table-resize-left{cursor:col-resize;height:100%;left:-1px;width:1px}.sdoc-link-hover-menu-container{height:42px;position:absolute;width:auto;z-index:101}.sdoc-link-hover-menu-container .hover-menu-container{align-items:center;background-color:#fff;border:1px solid #e8e8e8;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,.08);display:flex;height:36px;justify-content:flex-start;padding:7px 8px}.sdoc-link-hover-menu-container .hover-menu-container>span:not(:last-of-type){border-right:1px solid #e5e5e5;padding-right:8px}.sdoc-link-hover-menu-container .hover-menu-container .op-item{align-items:center;border-radius:2px;color:#212529;display:inline-flex;font-size:12px;height:24px;justify-content:center;min-width:24px;padding:0 5px;position:relative}.sdoc-link-hover-menu-container .hover-menu-container .op-item:hover{background:#f1f1f1;color:#212529;text-decoration:none}.sdoc-link-hover-menu-container .op-group-item:last-child .op-item{margin-left:8px}.sdoc-link-hover-menu-container .hover-menu-container .link-style-icon-active{background:#f1f1f1}.sdoc-link-hover-menu-container .hover-menu-container .op-tooltip:hover:after{align-items:center;background-color:#fff;border:1px solid #e8e8e8;border-radius:3px;box-shadow:0 0 5px #ccc;color:#212529;content:attr(op-item-tooltip);display:flex;font-size:12px;height:30px;justify-content:center;left:-20px;position:absolute;top:-40px;width:70px}.sdoc-link-hover-menu-container .hover-menu-container .icon-font{color:#999;font-size:12px}.sdoc-link-hover-menu-container .sdoc-file-display-style-popover{align-items:flex-start;background-color:#fff;border:1px solid #e5e6e8;border-radius:2px;box-shadow:0 0 10px #ccc;display:flex;flex-direction:column;padding:8px 0;position:absolute;right:-80px;top:37px;white-space:nowrap;z-index:101}.sdoc-file-render:hover{background-color:#e5e5e5}.sdoc-file-render .sdoc-file-link-icon{color:#ff9800;padding-right:5px}.sdoc-file-link-hover-menu-container{height:42px;position:absolute;width:auto;z-index:101}.sdoc-file-link-hover-menu-container .hover-menu-container{align-items:center;background-color:#fff;border:1px solid #e8e8e8;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,.08);display:flex;height:36px;justify-content:flex-start;padding:7px 8px}.sdoc-file-link-hover-menu-container .hover-menu-container>span:not(:last-of-type){border-right:1px solid #e5e5e5;padding-right:8px}.sdoc-file-link-hover-menu-container .hover-menu-container .op-item{align-items:center;border-radius:2px;color:#212529;display:inline-flex;font-size:12px;height:24px;justify-content:center;min-width:24px;padding:0 5px;position:relative}.sdoc-file-link-hover-menu-container .hover-menu-container .op-item:hover{background:#f1f1f1;color:#212529;text-decoration:none}.sdoc-file-link-hover-menu-container .op-group-item:last-child .op-item{margin-left:8px}.sdoc-file-link-hover-menu-container .hover-menu-container .link-style-icon-active{background:#f1f1f1}.sdoc-file-link-hover-menu-container .hover-menu-container .op-tooltip:hover:after{align-items:center;background-color:#fff;border:1px solid #e8e8e8;border-radius:3px;box-shadow:0 0 5px #ccc;color:#212529;content:attr(op-item-tooltip);display:flex;font-size:12px;height:30px;justify-content:center;left:-20px;position:absolute;top:-40px;width:70px}.sdoc-file-link-hover-menu-container .hover-menu-container .icon-font{color:#999;font-size:12px}.sdoc-file-link-hover-menu-container .sdoc-file-display-style-popover{align-items:flex-start;background-color:#fff;border:1px solid #e5e6e8;border-radius:2px;box-shadow:0 0 10px #ccc;display:flex;flex-direction:column;padding:8px 0;position:absolute;right:-80px;top:37px;white-space:nowrap;z-index:101}.sdoc-file-link-render:hover{background-color:#e5e5e5}.sdoc-file-card-link{background-color:#f3f3f3;border:1px solid transparent;border-radius:4px;cursor:pointer;display:inline-block;height:50px;margin-bottom:-3px;position:relative;width:420px}.sdoc-file-link-render .sdoc-file-link-icon{color:#ff9800;padding-right:5px}.sdoc-file-card-link .sdoc-file-link-icon :first-child{font-size:24px}.sdoc-file-card-link .sdoc-file-link-icon{left:12px;position:absolute;top:6px}.sdoc-file-card-link .sdoc-file-text-link{left:42px;overflow:hidden;position:absolute;text-overflow:ellipsis;top:16px;white-space:nowrap;width:330px}.sdoc-file-card-link .sdoc-file-text-link a{color:#333;text-decoration:none}.sdoc-callout-color-selector-container{background-color:#fff;border:1px solid #eee;border-radius:3px;left:0;padding:10px;position:absolute;top:36.5px;z-index:100}.sdoc-callout-color-selector-container .sdoc-color-selector-list{display:flex;margin:0;padding:0}.sdoc-callout-color-selector-container .sdoc-color-selector-list .sdoc-callout-color-item{border-radius:3px;border-style:solid;border-width:1px;cursor:pointer;height:20px;list-style:none;margin-right:10px;position:relative;width:20px}.sdoc-callout-color-selector-container .sdoc-color-selector-list .sdoc-callout-color-item:last-child{margin-right:0}.sdoc-callout-color-selector-container .sdoc-color-selector-list .sdoc-callout-color-item .sdoc-callout-color-checked-icon{font-size:12px;left:3px;position:absolute;top:1px}.sdoc-callout-icon-selector-container{background-color:#fff;border:1px solid #eee;border-radius:3px;display:flex;left:40px;min-width:100px;padding:4px;position:absolute;top:36.5px;z-index:100}.sdoc-callout-icon-selector-container .icon-item{align-items:center;cursor:pointer;display:flex;height:32px;justify-content:center;margin:0 4px;width:32px}.sdoc-callout-icon-selector-container .icon-item:hover{background-color:#f2f2f2}.sdoc-callout-icon-selector-container .icon-item img{cursor:pointer;display:inline-block;height:24px;width:24px}.sdoc-callout-hover-menu{background-color:#fff;border:1px solid #eee;border-radius:3px;display:flex;height:36px;padding:7px;position:absolute;z-index:100}.sdoc-callout-hover-menu .callout-menu-item{align-items:center;color:#aaa;cursor:pointer;display:flex;justify-content:center;padding:0 4px}.sdoc-callout-hover-menu .callout-menu-item:hover{color:#444}.sdoc-callout-hover-menu .callout-menu-item .sdocfont{color:#444;font-size:12px}.sdoc-callout-hover-menu .callout-menu-item .sdoc-drop-down{color:#999}.sdoc-callout-hover-menu .callout-menu-item.color-active,.sdoc-callout-hover-menu .callout-menu-item.icon-active{background-color:#f2f2f2;border-radius:2px}.sdoc-callout-hover-menu .callout-menu-divider{border-left:1px solid #ccc;margin:4px 8px}.sdoc-callout-white-wrapper{padding:5px 0}.sdoc-callout-container{border-radius:5px;border-style:solid;border-width:1px;display:flex;padding:10px;position:relative}.sdoc-callout-container .callout-content{flex:1 1;overflow:auto;position:relative}.sdoc-callout-container .sdoc-callout-placeholder{color:#b8b6b6;pointer-events:none;position:absolute;top:5px}.sdoc-emoji{align-items:center;display:flex;font-family:Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Noto Color Emoji,Segoe UI Symbol,Android Emoji,EmojiSymbols;font-size:21px;height:24px;justify-content:center;line-height:24px;white-space:nowrap;width:24px}.sdoc-emoji.wraning{color:block}.sdoc-callout-container .callout-icon{margin-right:8px;margin-top:2px;width:18px}.sdoc-callout-container .callout-icon .sdoc-emoji{font-size:16px}.sdoc-search-replace-popover-container{background:#fff;border:1px solid #ebebeb;height:280px;position:absolute;width:400px;z-index:103}.sdoc-search-replace-popover-container .sdoc-search-replace-popover-title{border-bottom:1px solid #ebebeb;display:flex;justify-content:space-between;padding:10px 15px;pointer-events:none;-webkit-user-select:none;user-select:none}.sdoc-search-replace-popover-container .sdoc-search-replace-popover-title .sdoc-search-replace-title-text{color:#333;font-weight:600}.sdoc-search-replace-popover-container .sdoc-search-replace-popover-title .sdoc-search-replace-title-close{cursor:pointer;pointer-events:all}.sdoc-search-replace-popover-container .sdoc-search-replace-popover-body{padding:10px 15px;pointer-events:visibleFill;pointer-events:none}.sdoc-search-replace-popover-body button,.sdoc-search-replace-popover-body input,.sdoc-search-replace-popover-body label{pointer-events:auto}.sdoc-search-replace-popover-body label{-webkit-user-select:none;user-select:none}.sdoc-search-replace-popover-body .sdoc-replace-ipt-label{margin-top:10px}.sdoc-search-replace-popover-body .sdoc-search-replace-popover-btn-group{display:flex;justify-content:space-between;margin-top:20px}.sdoc-search-replace-popover-body .sdoc-search-replace-popover-btn-group .btn{border-radius:5px;min-height:35px;padding:0;width:23%}.sdoc-replace-all-confirm-modal{background:rgba(0,0,0,.5);height:100%;left:0;position:absolute;top:0;width:100%;z-index:104}.sdoc-replace-ipt-container{display:flex;position:relative}.sdoc-replace-ipt-container input{padding-right:85px}.sdoc-replace-ipt-container .sdoc-replace-ipt-tip{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:15px;top:0}.sdoc-search-highlight-container{left:0;mix-blend-mode:multiply;overflow:hidden;pointer-events:none;position:absolute;top:0;width:100%;z-index:1000}.sdoc-find-search-highlight-canvas{position:absolute}.sdoc-comment-caret-list{background:#fff;border:1px solid #ededed;border-radius:5px;max-height:200px;max-width:200px;min-width:150px;overflow:auto;padding:10px 0;position:absolute;z-index:1049}.sdoc-comment-caret-list .comment-participant-item{padding:5px 0}.sdoc-comment-caret-list .comment-participant-item.active,.sdoc-comment-caret-list .comment-participant-item:hover{background:#f5f5f5;cursor:pointer}.sdoc-comment-caret-list .comment-participant-item .comment-participant-container{align-items:center;display:flex;padding:0 8px}.sdoc-comment-caret-list .comment-participant-item .comment-participant-avatar{border-radius:50%;height:16px;vertical-align:middle;width:16px}.sdoc-comment-caret-list .comment-participant-item .comment-participant-name{flex:1 1;font-size:14px;margin-left:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sdoc-mention-temp-ipt{border-radius:5px;display:inline-block;margin:0 1px;padding:0 5px}.sdoc-mention{background-color:transparent;border:none;border-radius:5px;color:#1677ff;cursor:pointer;display:inline-block;margin:0 2px;padding:0 2px}.sdoc-mention:hover{background-color:#ddecfd}.sdoc-rebase-btn-group{color:#aaa;display:flex;margin-bottom:3px;width:100%}.sdoc-rebase-btn-group .sdoc-rebase-btn{cursor:pointer}.sdoc-rebase-other-changes-title{background-color:#cae8fe;border-radius:3px 3px 0 0;padding-left:4px;width:100%}.sdoc-rebase-other-changes{background-color:rgba(202,232,254,.8);border-radius:0 0 3px 3px;margin-bottom:3px}.sdoc-rebase-my-changes-title{background-color:#d4d4fe;border-radius:3px 3px 0 0;padding-left:4px;width:100%}.sdoc-rebase-my-changes{background-color:#dee8fe;border-radius:0 0 3px 3px}.sdoc-rebase-my-changes.empty,.sdoc-rebase-other-changes.empty{height:3px}.sdoc-rebase-my-changes>:first-child,.sdoc-rebase-other-changes>:first-child{margin:0;padding:.8em 0 .8em .2em}.header-menu{align-items:center;border-right:1px solid #e5e6e8;display:flex;height:100%;padding:6px 8px;position:relative;width:140px}.header-menu .header-toggle{align-items:center;cursor:pointer;display:flex;flex:1 1;height:24px;justify-content:space-between;padding-left:5px}.header-menu .header-toggle .active{font-size:14px}.header-menu .header-toggle-disabled{color:#bdbdbd;cursor:inherit}.header-menu .header-toggle:not(.header-toggle-disabled):hover{background:#f2f2f2;border-radius:2px}.header-menu .header-toggle .sdocfont{align-items:center;color:#999;cursor:pointer;display:inline-flex;font-size:12px;height:24px;justify-content:center;margin-left:8px;width:12px}.header-menu .header-popover{align-items:flex-start;background-color:#fff;border:1px solid #e5e6e8;border-radius:2px;box-shadow:0 0 10px #ccc;display:flex;flex-direction:column;left:8px;padding:8px 0;position:absolute;top:42px;width:180px;z-index:101}.header-menu .header-popover .sdoc-dropdown-menu-item{font-size:14px;height:auto;line-height:1;padding:9px 16px 9px 28px}.header-menu .header-popover .sdoc-dropdown-menu-item .sdoc-check-mark{color:#798d99;left:8px;position:absolute;-webkit-transform:scale(.8);transform:scale(.8)}.menu-group .menu-group-item.sdoc-menu-with-dropdown.sdoc-font-family-menu{max-width:76px;width:76px}.menu-group .menu-group-item.sdoc-menu-with-dropdown.sdoc-font-family-menu.disabled{width:70px!important}.sdoc-font-family-menu .sdoc-menu-with-dropdown-icon,.sdoc-font-family-menu .sdoc-menu-with-dropdown-icon div{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:64px}.sdoc-font-family-menu .sdoc-menu-with-dropdown-icon div{color:#212529;padding-left:5px}.menu-group .menu-group-item.sdoc-menu-with-dropdown.sdoc-font-family-menu.disabled .sdoc-menu-with-dropdown-icon{width:70px!important}.menu-group .menu-group-item.sdoc-menu-with-dropdown.sdoc-font-family-menu.disabled .sdoc-menu-with-dropdown-icon div{color:#bdbdbd;padding-right:5px;width:70px}.sdoc-font-family-menu-popover .sdoc-dropdown-menu-title-name{color:gray;cursor:default;font-size:14px;padding:8px 10px}.menu-group .sdoc-menu-with-dropdown.sdoc-font-size-menu{width:46px}.menu-group .sdoc-menu-with-dropdown.sdoc-font-size-menu.disabled{width:34px!important}.menu-group .sdoc-font-size-menu .sdoc-menu-with-dropdown-icon,.menu-group .sdoc-font-size-menu .sdoc-menu-with-dropdown-icon div{font-size:14px;width:34px}.menu-group .sdoc-font-size-menu .sdoc-menu-with-dropdown-icon div{color:#212529;padding-left:5px}.menu-group .sdoc-menu-with-dropdown.sdoc-font-size-menu.disabled .sdoc-menu-with-dropdown-icon div{color:#bdbdbd;padding-right:5px}.sdoc-font-size-menu-popover .sdoc-dropdown-menu-item .sdoc-check-mark{color:#798d99;left:8px;position:absolute;-webkit-transform:scale(.8);transform:scale(.8)}.sdoc-font-size-menu-popover .sdoc-font-size-menu-container{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;overflow-x:hidden;overflow-y:scroll;padding:8px 0}.sdoc-font-size-menu-popover .sdoc-dropdown-menu-item{font-size:14px}.menu-group .menu-group-item.sdoc-insert-toolbar-btn{align-items:center;display:flex;justify-content:space-between;width:76px}.menu-group .menu-group-item.sdoc-insert-toolbar-btn.disabled{color:#bdbdbd;width:64px!important}.menu-group .sdoc-insert-toolbar-btn .sdoc-menu-with-dropdown-icon{flex:1 1;font-size:14px;justify-content:flex-start;padding-left:6px;padding-right:2px}.sdoc-insert-menu-popover .popover{min-width:200px}.sdoc-context-toolbar{background-color:#fff;border:1px solid #e8e8e8;border-radius:3px;box-shadow:0 0 0 0 hsla(0,0%,6%,.05),0 3px 6px hsla(0,0%,6%,.1),0 9px 24px hsla(0,0%,6%,.2);display:none;height:42px;position:absolute;width:auto;z-index:101}.sdoc-side-menu,.sdoc-side-menu-popover{position:absolute}.sdoc-side-menu{background-color:#fff;border:1px solid rgba(0,0,0,.12);border-radius:4px;box-shadow:0 2px 12px 2px rgba(68,73,77,.16);padding:8px 0;-webkit-transform:translateX(-200px);transform:translateX(-200px);width:200px;z-index:999}.sdoc-side-menu-insert-below-popover .popover{background-color:#fff;border-radius:2px;cursor:pointer;left:-6px!important;min-height:120px;min-width:150px}.sdoc-side-toolbar-container{left:0;position:absolute;top:0}.sdoc-side-toolbar-container .sdoc-side-op-icon{border-radius:3px;color:#bdbdbd;cursor:pointer;height:24px;margin-right:1px;padding:0 3px;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.sdoc-side-toolbar-container .sdoc-side-op-icon :first-child{font-size:14px}.sdoc-side-toolbar-container .side-op-icon-active{background-color:#f2f2f2;border-radius:2px}.sdoc-custom-table-size-dialog .sdoc-custom-table-size-container{width:100%}.sdoc-custom-table-size-dialog .sdoc-custom-table-size-item{width:calc(50% - 16px)}.sdoc-files-tree{display:flex;flex:1 1;flex-direction:column;height:400px;overflow-y:auto;padding:8px 16px;width:100%}.sdoc-files-tree .sdoc-file-info{border-radius:2px;height:32px;line-height:32px;overflow:hidden;padding-left:2.8rem;position:relative;text-overflow:ellipsis;white-space:nowrap}.sdoc-files-tree .sdoc-file-info:hover{background-color:#f5f5f5;cursor:pointer}.sdoc-files-tree .sdoc-file-info .sdoc-file-icon-container{align-items:center;display:flex;height:100%;left:0;padding-left:1.5rem;position:absolute;width:2.8rem}.sdoc-files-tree .sdoc-file-info .sdoc-file-icon{color:#9aa0ac}.sdoc-files-tree .sdoc-file-info.active{background-color:#f5f5f5}.sdoc-files-tree .sdoc-file-icon-toggle{font-size:12px!important;height:1.5rem;left:0;line-height:1.5rem!important;position:absolute;text-align:center;-webkit-transform:scale(.8);transform:scale(.8);width:1.5rem}.sdoc-files-tree .sdoc-file-info.expanded .sdoc-file-icon-toggle{-webkit-transform:rotate(90deg) scale(.8);transform:rotate(90deg) scale(.8)}.sdoc-files-tree .sdoc-file-info .sdoc-file-name{font-size:14px}.sdoc-files-tree .sdoc-folder-children{padding-left:20px}.sdoc-files-tree .sdoc-folder-children-empty{color:#999;padding:4px 20px}.sdoc-file-select-dialog{max-width:520px}.sdoc-file-select-dialog .sdoc-file-select-modal{width:520px}.sdoc-file-select-dialog .sdoc-file-select-footer{align-items:center;border-top:1px solid #e9ecef;display:flex;justify-content:flex-end;padding:1rem}.sdoc-file-select-dialog .highlight-bg-color{background-color:#ff8000;border-color:#ff8000}.sdoc-history-files-wrapper{cursor:pointer;position:absolute;width:400px;z-index:101}.sdoc-history-files-wrapper .sdoc-history-files-search-input{background-color:transparent;border:0;color:#212529;font-size:14px;margin-top:-21px;outline:none;padding:0;position:absolute;text-decoration:underline}.sdoc-history-files-wrapper .sdoc-history-files-content .sdoc-history-files-header{align-items:center;color:#999;display:flex;font-size:14px;height:32px;margin-top:8px;padding:0 16px}.sdoc-history-files-wrapper .sdoc-history-files-content .sdoc-history-files{max-height:306px;overflow-y:scroll}.sdoc-history-files-wrapper .sdoc-history-files-content .no-header{margin-top:8px}.sdoc-history-files-wrapper .sdoc-history-files-content .sdoc-history-files .sdoc-history-files-item{font-size:14px;height:32px;line-height:32px;overflow:hidden;padding:0 16px;text-overflow:ellipsis;white-space:nowrap}.sdoc-history-files-wrapper .sdoc-history-files-content .sdoc-history-files .sdoc-history-files-item :first-child{font-size:12px;margin-right:5px}.sdoc-history-files-wrapper .sdoc-history-files-content .sdoc-history-files .sdoc-history-files-item:hover{background-color:#f5f5f5}.sdoc-history-files-wrapper .sdoc-history-files-content .sdoc-history-files-add{align-items:center;border-top:1px solid #e9ecef;display:flex;font-size:14px;height:32px;padding:0 16px}.sdoc-history-files-wrapper .sdoc-history-files-content .sdoc-history-files-add :first-child{color:#444;margin-right:10px}.sdoc-outline-wrapper{bottom:0;display:flex;margin:20px 30px 20px 16px;min-height:0;position:absolute;top:0;z-index:101}.sdoc-outline{display:flex;flex:1 1;flex-direction:column;font-size:14px;min-height:0;position:relative;width:220px}.sdoc-outline-header{align-items:center;border-bottom:1px solid #dbdbdb;color:#999;display:flex;justify-content:space-between;padding:.25rem 0}.sdoc-outline-header__title{font-size:14px;line-height:1.1;margin:0!important}.sdoc-outline-header__close{cursor:pointer;font-size:14px}.sdoc-outline-header__close:hover{color:#555}.sdoc-outline-list-container{display:flex;flex:1 1;flex-direction:column;list-style:none;overflow-x:hidden;overflow-y:hidden;padding:.5rem 0}.sdoc-outline-list-container:hover{overflow-y:auto}.sdoc-outline-item{cursor:pointer;padding:4px 0}.sdoc-outline-item.active{color:#ff8000}.sdoc-outline-menu{align-items:center;background:#fff;border-radius:0 50% 50% 0;box-shadow:0 0 6px rgba(0,0,0,.12);color:#888;cursor:pointer;display:flex;font-size:14px;height:28px;justify-content:center;left:-16px;line-height:1;position:absolute;top:20px;width:28px}.sdoc-outline-menu.disabled{opacity:.65}.sdoc-outline-menu:not(.disabled):hover{color:#333}.sdoc-editor-container .article{font-size:11pt}.sdoc-editor-container .sdoc-code-block-pre{font-size:10pt}.sdoc-editor-container .article p{margin:0;padding:5px 0}.element-icon{color:#444!important}.sdoc-icon-btn{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.sdoc-icon-btn:hover{cursor:pointer}.sdoc-icon-btn .sdocfont{color:#999;font-size:16px}.sdoc-icon-btn:hover .sdocfont{color:#5a5a5a}.sdoc-editor-container{flex-direction:column}.sdoc-editor-container .sdoc-editor-toolbar{align-items:center;background-color:#fff;border-bottom:1px solid #e5e6e8;display:flex;flex:1 1;height:44px;justify-content:center;padding:0 10px;position:relative;-webkit-user-select:none;user-select:none;z-index:102}.sdoc-editor-container .sdoc-editor-toolbar .sdoc-editor-toolbar-right-menu{border-right:none;display:flex;flex-direction:row-reverse;position:absolute;right:8px}.sdoc-editor-container .sdoc-editor-content{background:#f5f5f5;display:flex;height:calc(100% - 44px);position:relative;width:100%}.sdoc-editor-container .sdoc-absolute-wrapper{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.sdoc-editor-container .sdoc-scroll-container{bottom:0;left:0;overflow:auto;position:absolute;right:0;top:0;z-index:100}.sdoc-editor-container .sdoc-article-container{margin:0 auto;padding-bottom:20px;padding-top:20px;position:relative;top:0;width:794px}.sdoc-editor-container .sdoc-editor-content .article{background-color:#fff;border:1px solid #e5e6e8;box-shadow:0 0 15px rgba(0,0,0,.06);min-height:800px;padding:40px 60px;width:794px}.sdoc-editor-container .sdoc-editor-content .article>div{caret-color:blue}.sdoc-editor-container .sdoc-editor-content .article .sdoc-drag-cover:before{content:" ";display:inline-block;left:-60px;position:absolute;width:59px}.sdoc-editor-container .sdoc-editor-content .article .sdoc-draging{border-bottom:2px solid #2383e2}.sdoc-editor-container .seafile-block-container{position:relative}.sdoc-editor-container .seafile-block-container .comment-count{align-items:center;background:rgba(0,0,0,.3);border-radius:4px;color:#fff;display:flex;height:15px;justify-content:center;line-height:18px;pointer-events:none;position:absolute;right:-55px;top:0;width:15px}.sdoc-editor-container .seafile-block-container .comment-count__btn{font-size:12px;-webkit-transform:scale(.75);transform:scale(.75)}.sdoc-comment-editor-toolbar{align-items:center;border-top:1px solid #e5e6e8;display:flex;height:32px;justify-content:space-between;margin:0 8px;-webkit-user-select:none;user-select:none;z-index:102}.sdoc-comment-editor-menu-group{border-right:none;padding-left:0!important}.sdoc-editor-container .article .sdoc-header-1,.sdoc-editor-container .article .sdoc-header-2,.sdoc-editor-container .article .sdoc-header-3,.sdoc-editor-container .article .sdoc-header-4,.sdoc-editor-container .article .sdoc-header-5,.sdoc-editor-container .article .sdoc-header-6,.sdoc-editor-container .article .sdoc-header-subtitle,.sdoc-editor-container .article .sdoc-header-title{font-weight:700;line-height:1.1;margin:1.2em 0 .4em}.sdoc-editor-container .article .sdoc-header-2,.sdoc-editor-container .article .sdoc-header-3{line-height:1.5}.sdoc-editor-container .article .sdoc-header-4{line-height:1.125}.sdoc-editor-container .article .list-container{margin:0;padding-left:1.2em!important}.sdoc-editor-container .article .list-container .sdoc-li-blod::marker{font-weight:700}.sdoc-editor-container .article .sdoc-checkbox-container{padding:0 2px}.sdoc-editor-container .article .sdoc-checkbox-container .sdoc-checkbox-input-wrapper{align-items:baseline;display:flex}.sdoc-editor-container .article .sdoc-checkbox-container .sdoc-checkbox-input-wrapper .sdoc-checkbox-input{margin-right:5px;vertical-align:middle}.sdoc-editor-container .article .sdoc-checkbox-container .sdoc-checkbox-input-wrapper .sdoc-checkbox-content-container{width:calc(100% - 1em);word-break:normal}.sdoc-editor-container .article .sdoc-image-wrapper{display:inline-block;padding:6px 6px 6px 0;position:relative}.sdoc-editor-container .article .sdoc-image-inner{display:inline-block;position:relative}.sdoc-editor-container .article .sdoc-image-content{align-items:flex-start;display:flex;flex-direction:column}.sdoc-editor-container .article .sdoc-image-content :first-child{position:relative}.sdoc-editor-container .article .sdoc-image-content .sdoc-image-caption-input-wrapper{background-color:transparent;border:0;color:#8a8f8d;margin-top:8px;outline:none;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.sdoc-editor-container .article .sdoc-image-content .sdoc-image-caption-input-wrapper::-webkit-input-placeholder{color:#bec0bf}.sdoc-editor-container .article .sdoc-image-content .sdoc-image-caption-input-wrapper::placeholder{color:#bec0bf}.sdoc-editor-container .article .image-selected{box-shadow:0 0 0 2px #007bff}.sdoc-editor-container .article .image-resizer{background-color:#007bff;border:1px solid #fff;bottom:-5px;cursor:se-resize;height:10px;position:absolute;right:-5px;width:10px}.sdoc-editor-container .article .image-full-screen{background-color:#fff;border:1px solid rgba(0,40,100,.12);border-radius:3px;box-shadow:0 2px 5px 0 rgba(0,0,0,.2);display:inline-block;height:26px;line-height:20px;padding:2px;position:absolute;right:-32px;text-align:center;top:0;-webkit-user-select:none!important;user-select:none!important;width:26px;z-index:1000}.sdoc-editor-container .article .image-full-screen:hover{background-color:#efefef;display:block}.sdoc-editor-container .article .image-size{background-color:#4c4c4c;border-radius:3px;bottom:-25px;color:#fff;display:inline-block;font-size:12px;height:22px;left:100%;line-height:12px;padding:5px;position:absolute;-webkit-transform:translateX(5px);transform:translateX(5px);white-space:nowrap;z-index:1}.sdoc-editor-container .article .caret-item .caret-name:before{content:attr(name)}.sdoc-editor-container .article .caret-item .caret-name{display:none}.sdoc-editor-container .article .caret-item:hover .caret-name{display:block}.sdoc-editor-container .article .virtual-link{color:#eb8205}.sdoc-editor-container .article .virtual-link:hover{text-decoration:underline;text-underline-position:under}.sdoc-editor-container .sdoc-comment-editor .list-container{padding-left:2em!important}.sdoc-comment-editor .list-container li p{margin:0!important}.sdoc-comment-editor .sdoc-comment-editor-paragraph{margin:.8em 0!important;padding:0!important}.sdoc-comment-editor .sdoc-image-wrapper{padding:1px!important}.sdoc-dropdown-menu,.sdoc-dropdown-menu .sdoc-dropdown-menu-container{min-width:12rem;padding:8px 0}.sdoc-dropdown-menu .sdoc-dropdown-menu-divider{border-top:1px solid #e9ecef;height:0;margin:.5rem 0;overflow:hidden;width:100%}.sdoc-dropdown-menu .sdoc-dropdown-menu-item{align-items:center;display:flex;height:30px;padding:4px 24px;-webkit-user-select:none;user-select:none;width:100%}.sdoc-dropdown-menu .sdoc-dropdown-menu-item.disabled,.sdoc-dropdown-menu .sdoc-dropdown-menu-item.disabled .sdoc-dropdown-item-content-icon{color:#c2c2c2!important}.sdoc-dropdown-menu .sdoc-dropdown-menu-item:hover{background-color:#f5f5f5;cursor:pointer}.sdoc-dropdown-menu .sdoc-dropdown-menu-item.disabled:hover{background-color:transparent;background-color:initial;color:#c2c2c2;cursor:default}.sdoc-dropdown-menu .sdoc-dropdown-menu-item .sdocfont{font-size:12px;line-height:12px}.sdoc-dropdown-menu .sdoc-dropdown-menu-item .sdoc-dropdown-item-content{align-items:center;display:flex;flex:1 1;font-size:14px;justify-content:flex-start}.sdoc-dropdown-menu .sdoc-dropdown-item-content .sdoc-dropdown-item-content-icon{margin-right:10px}.sdoc-dropdown-menu .sdoc-dropdown-item-right-icon{color:#999;-webkit-transform:scale(.6);transform:scale(.6)}.sdoc-dropdown-menu .sdoc-dropdown-item-with-left-icon{min-height:32px;padding:3px 12px}.sdoc-dropdown-menu .sdoc-check-mark{color:#798d99;-webkit-transform:scale(.8);transform:scale(.8)}.sdoc-sub-dropdown-menu .popover{left:-8px!important}.sdoc-sub-dropdown-menu .bs-popover-auto[x-placement^=left]{left:8px!important}.sdoc-comment-btn{color:#ff8e03}.sdoc-comment-btn:hover{color:#d47604}.sdoc-comment-list-container{position:absolute}.sdoc-comment-list-container .comment-ui-container{background-color:#edf2fa;border-radius:8px;box-shadow:0 0 2px rgba(0,0,0,.04);cursor:pointer;margin-bottom:10px;max-width:400px;min-width:330px;padding:16px}.sdoc-comment-list-container .comment-ui-container.active{background:hsla(0,0%,100%,.92);box-shadow:0 1px 3px rgba(0,0,0,.3),0 4px 8px 3px rgba(0,0,0,.15);left:-24px;position:relative}.sdoc-comment-list-container .comment-item-selected-text-container{align-items:center;border-radius:8px 8px 0 0;display:flex;height:32px;overflow:hidden;padding:6px 16px;width:100%}.sdoc-comment-list-container .comment-item-selected-text-container .sdoc-comment-quote{flex-shrink:0;font-size:12px}.sdoc-comment-list-container .comment-item-selected-text-container .comment-item-selected-text{flex:1 1;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sdoc-comment-list-container .comment-item-list{list-style:none;margin:0;min-width:280px;overflow-x:hidden;overflow-y:auto;padding:0}.sdoc-comment-list-container .comment-item{cursor:pointer;padding:16px 10px 0;position:relative}.comment-delete-popover .comment-delete-popover-container{padding:16px}.comment-delete-popover-container .delete-control{display:flex;justify-content:end;width:100%}.sdoc-comment-list-container .comment-ui-container.active .comment-item:hover{background:#fafafa}.sdoc-comment-list-container .comment-item .comment-author,.sdoc-comment-list-container .comment-item .comment-header{align-items:center;display:flex;justify-content:space-between}.sdoc-comment-list-container .comment-item .comment-content{word-wrap:break-word;margin-left:41px;margin-top:10px;padding-bottom:10px;word-break:keep-all}.comment-item .comment-content{font-size:11pt}.comment-item .comment-content ol,.comment-item .comment-content ul{padding-left:2em}.comment-item .comment-content ol li p,.comment-item .comment-content ul li p{margin:0}.comment-item .comment-content p{margin:.8em 0}.sdoc-comment-list-container .comment-header .comment-author__avatar{align-items:center;display:flex}.sdoc-comment-list-container .comment-header .comment-author__avatar img{border-radius:50%;height:32px;width:32px}.sdoc-comment-list-container .comment-header .comment-author__info{align-items:flex-start;cursor:pointer;display:flex;flex-direction:column;justify-content:center;overflow:hidden;padding-left:10px;text-overflow:ellipsis;white-space:nowrap}.sdoc-comment-list-container .comment-header .comment-author__info .name{color:#1f1f1f;font-size:14px;font-weight:500;line-height:20px}.sdoc-comment-list-container .comment-header .comment-author__info .time{align-items:center;color:#444746;display:inline-flex;font-size:12px;line-height:16px}.sdoc-comment-list-container .comment-header .sdoc-unread-message-tip{background-color:#fc6440;border-radius:50%;display:inline-block;height:6px;margin-left:6px;width:6px}.sdoc-comment-list-container .comment-header .sdoc-unread-message-text-tip{background-color:#fc6440;border-radius:8px;color:#fff;display:none;height:16px;margin-left:6px;padding:0 5px}.sdoc-comment-list-container .comment-ui-container:hover .comment-header .sdoc-unread-message-tip{display:none}.sdoc-comment-list-container .comment-ui-container:hover .comment-header .sdoc-unread-message-text-tip{display:inline-block}.sdoc-comment-list-container .comment-ui-container .comment-operation{align-items:center;background-color:#fff;border-radius:50%;color:#464d5a;display:flex;height:32px;justify-content:center;overflow:hidden;padding:0!important;width:32px}.sdoc-comment-list-container .comment-ui-container.active .comment-operation:hover{background-color:#f0f0f0;cursor:pointer}.sdoc-comment-list-container .comment-ui-container .comment-operation .sdoc-confirm{color:#20a0ff;font-weight:800}.sdoc-comment-menu{border-radius:2px;padding:0}.sdoc-popover-menu{background:#fff;height:auto;padding:8px 0;width:140px}.sdoc-popover-menu__item{background-color:transparent;background-color:#fff;color:#202428;cursor:default;font-size:14px;height:28px;padding:4px 24px;vertical-align:middle}.sdoc-popover-menu__item:hover{background-color:#20a0ff;color:#fff}.sdoc-comment-editor-wrapper{border:1px solid #ececec;border-top-left-radius:3px;border-top-right-radius:3px;border-radius:3px}.comment-editor-wrapper .sdoc-comment-editor-wrapper .article.sdoc-comment-editor{background-color:transparent;border:none;box-shadow:none;max-height:130px;min-height:130px;overflow-x:hidden;overflow-y:auto;padding:8px 8px 0;width:365px}.article.sdoc-comment-editor :first-child{margin-top:0!important}.sdoc-comment-list-container .comment-editor-wrapper{cursor:text;display:flex;flex-direction:column;justify-content:center}.sdoc-comment-list-container .comment-editor-wrapper .comment-editor:empty:before{content:attr(placeholder);opacity:.6}.sdoc-comment-list-container .comment-editor-wrapper .comment-editor:focus-visible{outline:none}.sdoc-comment-list-container .comment-editor-wrapper .comment-editor:focus{border:1px solid rgba(0,0,0,.12)}.sdoc-comment-list-container .comment-editor-wrapper .comment-editor-user-info{align-items:center;display:flex;margin-bottom:10px}.sdoc-comment-list-container .comment-editor-wrapper .comment-editor-user-info .comment-editor-user-img{border-radius:50%;height:30px;margin-right:8px;overflow:hidden;width:30px}.sdoc-comment-list-container .comment-editor-wrapper .comment-editor-user-info .comment-editor-user-name{flex:1 1;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;white-space:nowrap}.sdoc-comment-list-container .comment-editor-wrapper .comment-operations{display:flex;justify-content:flex-end}.sdoc-comment-container .comment-container-right .element-comments-count{align-items:center;color:#999;display:flex;height:16px;justify-content:center;left:-22px;position:absolute;width:16px}.sdoc-comment-container .comment-container-right .element-comments-count:hover{color:#333;cursor:pointer}.sdoc-comment-container .comment-container-right .element-comments-count-value{color:#fff;cursor:pointer;font-size:12px;height:14px;left:0;line-height:13px;pointer-events:none;position:absolute;text-align:center;top:0;width:16px}.sdoc-comments-participants-popover .popover{margin-top:0;max-width:282px}.sdoc-comments-participants-popover .sdoc-comments-participants-editor-container{min-height:160px;width:280px}.sdoc-comments-participants-popover .sdoc-selected-participants{background-color:#f6f6f6;border-bottom:1px solid #dde2ea;border-radius:3px 3px 0 0;min-height:34px;padding:5px}.sdoc-comments-participants-popover .sdoc-selected-participant{align-items:center;background:#eaeaea;border-radius:10px;display:inline-flex;font-size:13px;height:20px;margin-right:10px;padding:0 8px 0 2px}.sdoc-comments-participants-popover .sdoc-selected-participant img{border-radius:50%;height:16px;vertical-align:middle;width:16px}.sdoc-comments-participants-popover .sdoc-selected-participant .sdoc-selected-participant-name{color:#16181b;flex:1 1;margin-left:4px}.sdoc-comments-participants-popover .sdoc-selected-participant .sdoc-selected-participant-delete{align-items:center;cursor:pointer;display:flex;height:20px;justify-content:flex-end;padding-top:1px;width:20px}.sdoc-comments-participants-popover .sdoc-selected-participant .sdoc-selected-participant-delete .sdocfont{color:#909090;display:inline-block;font-size:12px}.sdoc-comments-participants-popover .sdoc-selected-participant .sdoc-selected-participant-delete:hover .sdocfont{color:#5a5a5a}.sdoc-comments-participants-popover .sdoc-search-collaborators{padding:10px}.sdoc-comments-participants-popover .sdoc-search-collaborators input{height:28px}.sdoc-comments-participants-popover .sdoc-searched-collaborators{align-items:center;display:flex;flex-direction:column;max-height:200px;overflow:auto;padding:10px}.sdoc-comments-participants-popover .sdoc-searched-collaborators.sdoc-searched-collaborators-empty-tip{align-items:flex-start;font-size:14px;opacity:.5}.sdoc-comments-participants-popover .sdoc-searched-collaborator{align-items:center;border-radius:2px;clear:both;color:#212529;display:flex;font-size:14px;font-weight:400;height:30px;padding:.25rem 0;width:100%}.sdoc-comments-participants-popover .sdoc-searched-collaborator:hover{background-color:#f8f9fa;cursor:pointer}.sdoc-comments-participants-popover .sdoc-searched-collaborator img{border-radius:50%;height:16px;margin-left:10px;vertical-align:middle;width:16px}.sdoc-comments-participants-popover .sdoc-searched-collaborator .sdoc-selected-participant-name{color:#16181b;flex:1 1;margin-left:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sdoc-comments-participants-popover .sdoc-searched-collaborator .sdoc-searched-collaborator-operation{align-items:center;display:flex;height:20px;justify-content:center;width:20px}.sdoc-comments-participants-popover .sdoc-searched-collaborator .sdoc-searched-collaborator-operation .sdocfont{color:#798d99;font-size:12px}.global-comments-popover .comments-panel-body__header .comments-participants-container{align-items:center;display:flex;height:42px;max-width:100%;padding-top:6px;position:relative;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.global-comments-popover .comments-panel-body__header .comments-participants-editor-target{background-color:transparent;height:100%;left:-1px;position:absolute;top:0;width:1px;z-index:-1}.global-comments-popover .comments-panel-body__header .comment-participant-avatar{border-radius:50%;margin-right:-.5rem;vertical-align:middle}.global-comments-popover .comments-panel-body__header .comment-participant-avatar img{background:#ced4da no-repeat 50%/cover;border:2px solid #fff;border-radius:50%;color:#868e96;display:inline-block;font-size:.875rem;font-weight:600;height:28px;line-height:2rem;position:relative;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:bottom;width:28px}.global-comments-popover .comments-panel-body__header .add-comments-participants{align-items:center;background-color:#fff;border:1px solid #fff;border-radius:50%;bottom:-3px;cursor:pointer;display:flex;height:20px;justify-content:center;margin-right:-.5rem;position:relative;width:20px}.global-comments-popover .add-comments-participants .sdocfont{border-radius:50%;color:#ff8000;font-size:16px}.global-comments-popover .comment-participants-more{align-items:center;background-color:rgba(0,0,0,.6);border:2px solid #fff;border-radius:50%;display:flex;height:28px;justify-content:center;left:0;overflow:hidden;position:absolute;top:0;width:28px}.global-comments-popover .comment-participants-more .sdocfont{color:#fff;font-size:12px}.global-comments-popover{height:540px;position:absolute;right:10px;top:50px;width:432px;z-index:103}.global-comments-popover .comments-panel-wrapper{background:#fff;border:1px solid #eaecef;border-radius:4px;box-shadow:0 2px 10px rgba(0,0,0,.12);display:flex;flex-direction:column;height:100%}.global-comments-popover .comments-panel-header{align-items:center;border-bottom:1px solid #eaecef;display:flex;height:46px;justify-content:space-between;padding:0 16px}.global-comments-popover .comments-panel-header .title{color:#212529;font-size:16px;font-weight:500}.global-comments-popover .comments-panel-header .comments-panel-header-right{display:flex}.global-comments-popover .comments-panel-header-right .sdoc-icon-btn:not(:last-child){margin-right:4px}.global-comments-popover .comments-panel-header .sdoc-icon-btn .sdocfont{font-weight:700}.global-comments-popover .comments-panel-body{background-color:#f5f5f5;display:flex;flex:1 1;flex-direction:column;min-height:0;position:relative}.global-comments-popover .comments-panel-body__header{display:flex;flex-direction:column;height:80px;padding:0 16px}.global-comments-popover .comments-panel-body__header .comments-types-count{align-items:center;display:flex;height:38px;justify-content:space-between;padding:16px 0}.global-comments-popover .comments-panel-body__header .comment-type{color:#212529;font-size:12px}.global-comments-popover .comments-panel-body__header .comment-count-tip{color:#999;font-size:12px}.global-comments-popover .comments-panel-body__content{display:flex;flex:1 1;flex-direction:column;overflow:auto;padding:0 16px 16px}.global-comments-popover .comments-panel-body__content .sdoc-comment-list-container{position:relative}.global-comments-popover .comments-panel-body__content .comment-ui-container.active{left:0}.global-comments-popover .comments-panel-body__content .comment-ui-container.active.sdoc-resolved,.global-comments-popover .comments-panel-body__content .comment-ui-container.sdoc-resolved{background:#f5f5f5}.sdoc-dropdown-menu .dropdown-item{color:#212529;font-size:14px}.global-comments-popover .comments-panel-body .sdoc-doc-comment-editor-container{background-color:#fff;left:16px;position:absolute;top:78px;width:calc(100% - 32px)}.global-comments-popover .sdoc-doc-comment-editor-container .comment-ui-container.active{left:0;margin-bottom:0}.global-comments-popover .sdoc-comment-list-container .comment-ui-container{background-color:#fff;border:1px solid #c7c7c7}.global-comments-popover .sdoc-comment-list-container .comment-item-selected-text-container{background-color:#f5f5f5;border-bottom:1px solid #c7c7c7}.sdoc-comment-container{left:0}.sdoc-comment-container,.sdoc-comment-container .comment-container-main{position:absolute;top:0;width:794px}.sdoc-comment-container .comment-container-right{left:100%;position:absolute}.sdoc-comment-container .comment-container-right .comment-add-wrapper{left:-22px;position:absolute;width:20px}.sdoc-comment-container .comment-container-right .comment-add-wrapper .sdocfont{background-color:#fff;color:#999}.sdoc-comment-container .comment-container-right .comment-add-wrapper .sdocfont:hover{color:#333;cursor:pointer}.sdoc-comment-container .comment-container-right .comment-list-wrapper{left:14px;position:absolute;width:280px}.sdoc-editor-container .sdoc-editor-content.readonly{height:100%}.sdoc-editor-container .sdoc-editor-content.no-outline .sdoc-absolute-wrapper{display:flex;min-height:0;position:relative}.sdoc-editor-container .sdoc-editor-content.no-outline .sdoc-article-container{margin-left:0!important}.sdoc-editor-container.mobile .sdoc-editor-content.readonly .sdoc-article-container{padding:0;width:auto}.sdoc-editor-container.mobile .sdoc-editor-content.readonly .article{padding:1rem;width:100%!important}.sdoc-diff{margin:0 -5px;overflow:hidden;padding:0 5px}.empty-loading-page{height:100%;position:fixed;width:100%}.page-centered{left:50%;position:fixed;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.lds-ripple{display:inline-block;height:64px;position:relative;width:64px}.lds-ripple div{-webkit-animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border:4px solid #eb8205;border-radius:50%;opacity:1;position:absolute}.lds-ripple div:nth-child(2){-webkit-animation-delay:-.5s;animation-delay:-.5s}@-webkit-keyframes lds-ripple{0%{height:0;left:28px;opacity:1;top:28px;width:0}to{height:58px;left:-1px;opacity:0;top:-1px;width:58px}}@keyframes lds-ripple{0%{height:0;left:28px;opacity:1;top:28px;width:0}to{height:58px;left:-1px;opacity:0;top:-1px;width:58px}}.sdoc-wiki-viewer-outline{border-left:1px solid #ddd;padding:.5rem 1rem .5rem 0}.sdoc-wiki-viewer-outline .outline-h2,.sdoc-wiki-viewer-outline .outline-h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sdoc-wiki-viewer-outline .outline-h2{color:#364149;cursor:pointer;line-height:2.5;margin-left:20px;white-space:nowrap}.sdoc-wiki-viewer-outline .outline-h2:hover{color:#eb8205}.sdoc-wiki-viewer-outline .outline-h3{color:#364149;cursor:pointer;line-height:2.5;margin-left:40px;white-space:nowrap}.sdoc-wiki-viewer-outline .outline-h3:hover{color:#eb8205}.sdoc-wiki-viewer-outline .empty-container{margin-top:10px;text-align:center}.sdoc-wiki-viewer-outline .outline-h2.active,.sdoc-wiki-viewer-outline .outline-h3.active{color:#eb8205}.sdoc-editor-container{display:flex;flex:1 1;min-height:0}.sdoc-wiki-scroll-container{display:flex;overflow:auto}.sdoc-wiki-scroll-container .sdoc-article-container{margin:0 340px 0 40px!important;width:100%}.sdoc-wiki-scroll-container .sdoc-article-container .article .sdoc-header-2{border-bottom:1px solid #ccc}.sdoc-wiki-outline-container{height:80%;overflow-y:auto;padding-right:1rem;position:fixed;right:0;top:97px;width:300px}.sdoc-editor-page-wrapper .tip-message{color:#999;display:inline-flex;font-size:12px;height:27px;line-height:27px;margin-left:12px;opacity:.75;width:-webkit-max-content;width:max-content}.sdoc-editor-page-wrapper .tip-message .sdocfont{font-size:14px;padding-top:1px}.sdoc-draft-menu{margin-left:.5rem;position:relative}.sdoc-draft-identifier{background:#eee;border-radius:10px;color:#888;cursor:pointer;display:inline-block;font-size:14px;height:20px;line-height:20px;padding:0 8px}.sdoc-draft-identifier:hover{background:#dbdbdb}.sdoc-draft-menu .draft-popover{background-color:#fff;border:1px solid #e5e6e8;border-radius:2px;box-shadow:0 0 10px #e5e6e8;left:0;padding:8px 0;position:absolute;top:25px;width:178px;z-index:10}.sdoc-draft-menu .draft-popover .draft-menu-item{cursor:pointer;padding:4px 12px;width:100%}.sdoc-draft-menu .draft-popover .draft-menu-item:hover{background-color:#f5f5f5}.sdoc-file-tag-quick-review-container{display:flex;margin-left:.5rem}.sdoc-file-tag-quick-review-container .sdoc-review-circle{border:.125rem solid #fff;border-radius:50%;cursor:pointer;display:inline-block;height:1rem;margin-right:-.5rem;width:1rem}.sdoc-editor-page-header .doc-info{align-items:center;display:flex}.sdoc-editor-page-header .doc-info .doc-name{color:#212529;font-size:18px;font-weight:700}.sdoc-editor-page-header .doc-info .doc-icon{color:#999;cursor:pointer;font-size:14px;line-height:1;margin-left:.5rem}.sdoc-editor-page-header .doc-info .doc-icon:hover{color:#333;margin-left:.5rem}.sdoc-editor-page-header .doc-info .sdoc-link{font-size:14px}.sdoc-editor-page-header .doc-info .sdoc-freezed{color:red}.sdoc-editor-page-header .doc-state{font-size:.8125rem}.sdoc-editor-page-header .doc-info .sdoc-revision-avatar{margin-right:6px;width:44px}.sdoc-editor-page-header .sdoc-revision-info .sdoc-revision-avatar{height:44px;margin-right:6px;overflow:hidden;width:44px}.sdoc-editor-page-header .sdoc-revision-avatar img{height:100%;width:100%}.sdoc-editor-page-header .sdoc-revision-info .sdoc-revision-detail{display:flex;flex-direction:column}.sdoc-editor-page-header .sdoc-revision-info .sdoc-revision-order{background:#eee;border-radius:10px;color:#888;cursor:default;display:inline-block;font-size:14px;height:20px;line-height:20px;margin-left:.5rem;padding:0 8px}.sdoc-editor-page-header .sdoc-revision-info .sdoc-revision-published-tip{background:#5eba00;border-radius:10px;color:#fff;cursor:default;display:inline-block;font-size:14px;height:20px;line-height:20px;margin-left:.5rem;padding:0 8px}.sdoc-editor-page-header .sdoc-revision-info .sdoc-revision-source-doc{align-items:center;cursor:pointer;display:inline-flex;height:20px;justify-content:center;margin-left:.5rem;width:20px}.sdoc-editor-page-header .sdoc-revision-info .sdoc-revision-source-doc .sdoc-jump-to{color:#999;font-size:14px}.sdoc-editor-page-header .sdoc-revision-info .sdoc-revision-source-doc:hover .sdoc-jump-to{color:#333}.sdoc-tip-dialog .highlight-bg-color{background-color:#ff8000;border-color:#ff8000}.sdoc-tip-dialog .sdoc-tip-dialog-custom-container{align-items:center;display:flex;flex-direction:column;padding-bottom:40px;padding-top:46px}.sdoc-tip-dialog .sdoc-tip-dialog-custom-container .sdoc-tip-img-container{align-items:center;display:flex;height:140px;justify-content:center;overflow:hidden;width:140px}.sdoc-tip-dialog .sdoc-tip-dialog-custom-container .sdoc-tip-content{padding:10px 16px 64px;text-align:center;width:100%}.sdoc-tip-dialog .sdoc-tip-dialog-custom-container .sdoc-tip-operation-btn{min-width:140px}.sdoc-tip-dialog .sdoc-tip-dialog-custom-container.publishing{height:180px;justify-content:center;padding:2rem}.sdoc-tip-dialog .sdoc-tip-dialog-custom-container.publishing .common-loading-tip{border-width:4px;height:30px;width:30px}.sdoc-tip-dialog .sdoc-tip-dialog-custom-container.publishing .sdoc-tip-content{margin-top:8px;padding:0}.seadoc-switch.small .custom-switch-indicator{border-radius:6px;height:12px;width:22px}.seadoc-switch.small .custom-switch-indicator:before{height:8px;width:8px}.seadoc-switch.small .custom-switch-input:checked~.custom-switch-indicator:before{left:12px}.sdoc-toggle-revision-changes .custom-switch{padding-left:0}.sdoc-more-revision-operations-dropdown .sdoc-more-revision-operations-toggle{align-items:center;background-color:#f0f0f0;border-radius:15px;color:#666;display:flex;height:30px;justify-content:center;width:66px}.sdoc-more-revision-operations-dropdown .sdoc-more-revision-operations-toggle:hover{color:#333;cursor:pointer}.sdoc-more-revision-operations-dropdown .sdoc-more-revision-operations-toggle .sdoc-revise{margin-right:10px}.sdoc-more-revision-operations-dropdown .sdoc-more-revision-operations-toggle .sdocfont{font-size:14px}.sdoc-more-revision-operations-dropdown .dropdown-item{height:64px;padding:12px}.sdoc-more-revision-operations-dropdown .sdoc-more-revision-operation{align-items:flex-start;display:flex;flex-direction:column;width:373px}.sdoc-more-revision-operations-dropdown .sdoc-more-revision-operation-title .sdocfont{font-size:14px;margin-right:6px}.sdoc-more-revision-operations-dropdown .sdoc-more-revision-operation-title-name{color:#212529;font-size:14px}.sdoc-more-revision-operations-dropdown .sdoc-more-revision-operation-describe{color:#999;font-size:13px;padding-left:20px;white-space:break-spaces;width:100%}.sdoc-revision-operation-toggle{color:#999;display:none;font-size:16px}.revisions-body .sdoc-revision:hover .sdoc-revision-operation-toggle,.revisions-dialog .revisions-body .sdoc-revision.operating .sdoc-revision-operation-toggle{display:inline-block}.sdoc-revision-operation-toggle:hover{color:#333;cursor:pointer}.sdoc-revision-menu-popover .popover{margin-top:0}.revisions-dialog{height:calc(100% - 56px);max-width:700px;width:700px}.revisions-dialog .modal-content{height:100%;overflow:hidden}.revisions-dialog .revisions-body{height:calc(100% - 50px);overflow:hidden;padding:0}.revisions-dialog .sdoc-revisions-container{display:flex;flex-direction:column;height:100%;width:100%}.revisions-dialog .sdoc-revisions-container .sdoc-revisions-header{align-items:center;border-bottom:1px solid rgba(0,40,100,.12);display:flex;height:41px;justify-content:center;margin:0 16px;width:calc(100% - 32px)}.revisions-dialog .sdoc-revisions-container .sdoc-revisions-content{flex:1 1;overflow-x:hidden;overflow-y:scroll;padding:0 16px 16px}.revisions-dialog .sdoc-revisions-container .sdoc-revisions-list{align-items:center;display:flex;flex-direction:column;justify-content:center}.revisions-dialog .sdoc-revisions-container.loading{align-items:center;justify-content:center}.revisions-dialog .revisions-body .sdoc-revision{align-items:flex-start;border-bottom:1px solid rgba(0,40,100,.12);display:flex;height:41px;justify-content:center;width:100%}.revisions-dialog .revisions-body .sdoc-revision.operating{background-color:#f5f5f5}.revisions-dialog .revisions-body .sdoc-revision:hover{background-color:#f5f5f5;cursor:pointer}.revisions-dialog .sdoc-revision-name-header,.revisions-dialog .sdoc-revision-time-header,.revisions-dialog .sdoc-revision-user-header{color:#999;padding-left:9px}.revisions-dialog .sdoc-revision .sdoc-revision-name,.revisions-dialog .sdoc-revision .sdoc-revision-user{align-items:center;display:flex;height:100%;overflow:hidden;padding-left:9px}.revisions-dialog .sdoc-revision .sdoc-revision-name-content{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.revisions-dialog .sdoc-revision .sdoc-revision-time{align-items:center;display:flex;height:100%;overflow:hidden;padding-left:9px}.revisions-dialog .revisions-body .sdoc-revision.loading{align-items:center;border-bottom:none;height:40px}.revisions-dialog .sdoc-revision.loading:hover{background-color:transparent;background-color:initial}.revisions-dialog .sdoc-revision-operations{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.sdoc-revisions-count{border:1px solid #e5e5e5;border-radius:3px;color:#666;height:30px;line-height:28px;margin-left:1rem;padding:0 16px;text-align:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.sdoc-revisions-count:hover{color:#333;cursor:pointer}.sdoc-revision-changes-container{border:1px solid #e5e5e5;border-radius:3px;height:32px}.sdoc-revision-changes-container .sdoc-revision-changes-divider{border-right:1px solid #e5e5e5;height:100%;width:1px}.sdoc-revision-changes-container .sdoc-revision-changes-last,.sdoc-revision-changes-container .sdoc-revision-changes-next{height:100%;padding:0 8px}.sdoc-revision-changes-container .sdoc-revision-changes-last .sdocfont,.sdoc-revision-changes-container .sdoc-revision-changes-next .sdocfont{color:#000;opacity:.5}.sdoc-revision-changes-container .sdoc-revision-changes-last:hover,.sdoc-revision-changes-container .sdoc-revision-changes-next:hover{background-color:#f5f5f5;cursor:pointer}.sdoc-revision-changes-container .sdoc-revision-changes-last:hover .sdocfont,.sdoc-revision-changes-container .sdoc-revision-changes-next:hover .sdocfont{opacity:.75}.collaborators-popover.popover{max-width:300px;width:300px}.collaborators-popover .popover-container{display:flex;flex-direction:column;justify-content:center;margin:0;max-height:360px;padding:0}.collaborators-popover .popover-header{align-items:center;background:#fff;border-bottom:1px solid #ededed;color:#212529;display:flex;font-size:16px;font-weight:600;height:50px;justify-content:center;min-height:50px}.collaborators-popover .popover-container .content-list{display:flex;flex:1 1;flex-direction:column;min-height:0;overflow:auto;padding:5px 0}.content-list .collaborator-details{align-items:center;display:flex;height:32px;line-height:32px;padding:3px 12px;width:100%}.content-list .collaborator-details:hover{background-color:#f8f8f8}.content-list .collaborator-details .collaborator-tag{background-color:#08db6b;border-radius:50%;height:5px;margin-right:8px;overflow:hidden;width:5px}.content-list .collaborator-details .collaborator-avatar{border-radius:50%;height:20px;margin-right:8px;overflow:hidden;width:20px}.content-list .collaborator-details .collaborator-name{color:#212529;max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sdoc-notification-container .sdoc-notification-count{background:#fc6440;border-radius:50%;color:#fff;font-size:12px;min-height:20px;min-width:20px;padding:2px;position:absolute;right:-10px;text-align:center;top:-7px;-webkit-transform:scale(.7);transform:scale(.7)}.sdoc-tag-popover{padding-bottom:0;width:230px}.sdoc-popover-container .sdoc-tag-search-input{margin-bottom:10px}.sdoc-popover-container .sdoc-tag-list-container{max-height:180px;overflow-y:auto}.sdoc-tag-item{align-items:center;cursor:pointer;display:flex;height:30px;justify-content:space-between;padding:3px 10px;width:100%}.sdoc-tag-item:hover{background-color:#eee}.sdoc-tag-item .sdoc-tag-badge-container{align-items:center;display:flex;height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.sdoc-tag-item .sdoc-tag-badge{font-size:13px;font-weight:400;margin-right:10px;overflow:hidden;text-overflow:ellipsis}.sdoc-tag-item .sdoc-tag-added-mark{width:18px}.sdoc-create-tag{background-color:#fff;border-bottom:none;border-top:1px solid #eee;cursor:pointer;font-size:14px;font-weight:400;overflow:hidden;padding:8px 10px;text-overflow:ellipsis;white-space:nowrap}.sdoc-create-tag:hover{background-color:#f5f5f5}.sdoc-create-tag .add-icon{font-size:13px;font-weight:600;margin-right:6px}.doc-ops,.doc-ops .op-item{align-items:center;display:flex}.doc-ops .op-item{cursor:pointer;margin-left:1rem;position:relative}.doc-ops .op-item .sdocfont{color:#666;cursor:pointer;font-size:18px}.doc-ops .op-item .sdocfont:hover{color:#333;cursor:pointer}.doc-ops .popover-wrapper{width:300px}#root,#wrapper,body,html{height:100%;width:100%}#root,#wrapper{display:flex}.sdoc-editor-page-wrapper{display:flex;flex:1 1;flex-direction:column;min-height:0}.sdoc-editor-page-wrapper .sdoc-editor-page-header{background-color:#fff;border-bottom:1px solid #e5e6e8;flex-shrink:0;height:56px;position:relative;z-index:103}.sdoc-editor-page-wrapper .sdoc-editor-page-content{display:flex;flex:1 1;min-height:0}.permission-editor-explanation{word-wrap:break-word;color:#9c9c9c;font-size:12px;padding-left:10px;-webkit-user-select:none;-ms-user-select:none;user-select:none;white-space:pre-wrap;word-break:keep-all}.permission-editor .permission-editor__option{padding-bottom:2px;padding-top:2px}.permission-editor .permission-editor__control .permission-editor-explanation{display:none}.cur-view-content .permission-editor-select .permission-editor__control,.cur-view-content .permission-editor-select .permission-editor__control .permission-editor__input,.cur-view-content .permission-editor-select .permission-editor__control div,.cur-view-content .permission-editor-select .permission-editor__indicators{height:1.5rem;min-height:1.5rem}.cur-view-content .permission-editor-select .permission-editor__value-container div:nth-child(2){margin:0;padding:0}.cur-view-content .permission-editor-select .permission-editor__indicators .permission-editor__indicator{padding:0 .5rem}.permission-editor__menu .permission-editor__option--is-disabled{border-top:1px solid #dedede;color:#9c9c9c}.permission-editor__menu .permission-editor__option--is-disabled:hover{background-color:#f0f0f0!important;color:#9c9c9c!important}.permission-editor-btn-add-custom-permission{align-items:center;display:flex;font-size:12px;line-height:13px;padding:.5rem 0}.permission-editor-btn-add-custom-permission .fa{font-size:12px;line-height:13px;margin-right:.25rem}.permission-editor .btn-add-custom-permission span,.share-dialog-main .permission-editor .permission-editor__placeholder,.share-dialog-main .true__menu,.share-dialog-main .true__placeholder{word-break:keep-all}.longtext-preview-container{height:100%;overflow:auto;padding:16px;width:100%}.longtext-preview-container .sf-slate-viewer-scroll-container{background:#fff;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;overflow-y:auto;padding:0}.longtext-preview-container .sf-slate-viewer-article-container{height:100%;margin:0;width:100%}.longtext-preview-container .sf-slate-viewer-article-container .article{border:0;height:auto;min-height:100%!important;padding:0}.longtext-preview-container .article :first-child{margin-top:0}.notification-wrapper .popover{max-width:300px}.notification-container{background:#fff;border-radius:3px;box-shadow:0 0 5px #ccc;position:absolute;right:-10px;top:-1px;width:320px}.notification-container .notification-header{align-items:center;border-bottom:1px solid #ededed;display:flex;font-size:16px;font-weight:600;height:50px;justify-content:center;position:relative}.notification-container .notification-header .notification-close-icon{color:#000;cursor:pointer;font-weight:700;height:24px;opacity:.5;position:absolute;right:14px;text-align:center;width:24px}.notification-container .notification-header .notification-close-icon:hover{opacity:.75}.notification-container .notification-body{padding:0}.notification-container .notification-body .show-weixin-qrcode{align-items:center;border-bottom:1px solid #ededed;cursor:pointer;display:flex;height:40px;justify-content:flex-start;padding-left:10px}.show-weixin-qrcode .weixin-icon{color:#999;font-size:20px;margin-left:20px}.notification-container .notification-body .mark-notifications{align-items:center;border-bottom:1px solid #ededed;color:#b4b4b4;cursor:pointer;display:flex;height:36px;justify-content:flex-end;padding-right:1rem}.notification-container .notification-body .mark-notifications:hover{text-decoration:underline}.notification-body .notification-list-container{max-height:260px;overflow:auto}.notification-list-container .notification-item{border-bottom:1px solid #ededed;cursor:pointer;padding:14px 16px 14px 10px;position:relative}.notification-list-container .notification-item:last-child{border-bottom:none}.notification-list-container .notification-item:hover{background:#f5f5f5}.notification-list-container .notification-item .notification-item-header{align-items:center;display:flex}.notification-list-container .notification-item .notification-point{background:red;border-radius:50%;display:inline-block;height:8px;margin-right:12px;position:absolute;width:8px}.notification-list-container .notification-item .notification-header-info{display:flex;flex:1 1;justify-content:space-between;margin-left:20px;width:calc(100% - 20px)}.notification-user-detail{display:flex;width:65%}.notification-user-detail img{margin-top:3px}.notification-user-name{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notification-item .notification-header-info .notification-time{color:#b4b4b4;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notification-list-container .notification-item .notification-content-wrapper{font-size:13px}.notification-item .notification-content-quotes{width:8px}.notification-list-container .notification-item .notification-comment-content{max-width:calc(100% - 16px)}.notification-list-container .notification-item .notification-comment-content p{display:inline-block;letter-spacing:1px;margin-bottom:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notification-list-container .notification-item .notification-comment-content p img{height:auto;max-height:60px;max-width:70%}.notification-body .notification-footer{align-items:center;background:#f9f9f9;border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top:1px solid #ededed;cursor:pointer;display:flex;height:40px;justify-content:center}.notification-body .notification-footer:hover{text-decoration:underline}.error-page{align-items:center;display:flex;flex:1 1;flex-direction:column;justify-content:center;overflow:hidden}.error-page .error-tip{color:red}.error-page .error-button{margin-top:20px}.sdoc-context-menu .dropdown-item:not(:disabled),.sdoc-editor-page-wrapper .dropdown-item{color:#212529}.sdoc-context-menu .dropdown-item:hover{color:#fff}a[title^=__sdoc_mention__username]{background-color:transparent;border:none;border-radius:5px;color:#1677ff!important;cursor:pointer;display:inline-block;padding:0 2px}a[title^=__sdoc_mention__username]:hover{background-color:#ddecfd}.sdoc-share-permission{border:1px solid rgba(0,0,0,.12);border-radius:4px;font-size:12px;padding:2px 6px}.seahub-switch.small .custom-switch-indicator{border-radius:6px;cursor:pointer;height:12px;width:22px}.seahub-switch.small .custom-switch-indicator.disabled{cursor:default}.seahub-switch.small .custom-switch-indicator:before{height:8px;width:8px}.seahub-switch.small .custom-switch-input:checked~.custom-switch-indicator:before{left:12px}.cur-view-toolbar{align-items:center;display:flex;flex:1 1;height:32px;position:relative}.border-left-show:before{background-color:#ddd;content:"";height:30px;left:-1px;position:absolute;top:10px;width:1px}.operation-item{background-color:#fff;border:1px solid #ccc;border-radius:2px;font-weight:400;height:30px;line-height:29px;min-width:55px;padding:0 .5rem}.group-operations,.operation-item{margin-right:.25rem}.group-operations .group-op-item{font-size:1.125rem;font-weight:400;min-width:46px;padding:0 .5rem}.detail-btn button,.group-operations .group-op-item,.sf-view-mode-btn{background-color:#fff;border:1px solid #ccc;border-radius:2px;height:30px;line-height:29px}.detail-btn button,.sf-view-mode-btn{color:#aaa;font-size:18px;min-width:2rem;padding:0}.detail-btn button{font-size:15px;padding-top:1px}.sf-view-mode-btn.current-mode{background-color:#ccc!important;color:#fff!important}.common-toolbar{align-items:center;display:flex;margin-left:auto}.common-toolbar>div{margin-left:.5rem}.common-toolbar .logout-icon{align-items:center;color:#ccc;display:flex;height:32px;justify-content:center;margin-left:8px;text-decoration:none;width:32px}.path-toolbar{list-style:none}.path-toolbar .toolbar-item{display:inline-block;margin-left:.75rem;text-align:center}.path-toolbar .toolbar-item a{color:#8a8a8a;font-size:22px}.path-toolbar .toolbar-item a:hover{color:#eb8205;text-decoration:none}@media (max-width:767px){.border-left-show:before{width:0}}.search-mask{background-color:rgba(0,0,0,.2);height:100%;left:0;position:fixed;top:0;width:100%;z-index:1}.search-container{position:relative;z-index:2}.search-container.show{background-color:#fff;border-radius:3px;box-shadow:0 3px 8px 0 rgba(116,129,141,.1);cursor:default;display:flex;flex-direction:column;min-height:200px;overflow:hidden;padding:1rem 0 0 1rem;position:absolute;right:110px;top:10px;width:600px}.search-container .input-icon svg.input-icon-addon{height:100%;padding:7px}.search-container.show .input-icon svg.input-icon-addon{padding:12px}.search-icon-left{display:flex}.search-icon-right{color:#999;cursor:pointer;display:flex;font-style:normal;min-width:25px;pointer-events:all}.search-icon-right:hover{color:#333;text-decoration:none}.search-icon-right.sf3-font-set-up{left:auto;right:25px}.search-container .search-settings{left:1rem;right:14px;top:54px;z-index:100}.search-container .search-settings .custom-switch{padding-left:0}.search-icon-arrow{left:auto;right:40px}.search-input{font-size:.875rem;height:1.875rem;width:15rem}.search-container.show .search-input{height:38px}.search-result-container{background-color:#fff;border-radius:0 0 3px 3px;box-shadow:0 3px 8px 0 rgba(116,129,141,.1);left:0;position:absolute;top:2rem;top:60px;width:100%}.dropdown-search-result-container{box-shadow:none;display:flex;flex-direction:column;max-height:300px;overflow:auto;position:relative;top:0}.search-result-container .search-result-none{line-height:4rem;text-align:center}.search-result-container .search-result-list{list-style:none;margin:4px 0;padding:0}.search-result-container .search-result-list-container{flex:1 1;overflow:auto}.search-result-container .search-result-item{border-radius:4px;cursor:pointer;display:flex;font-size:.8125rem;margin-right:1rem;padding:10px 0 10px 8px}.search-result-container .search-result-item.search-result-item-highlight,.search-result-container .search-result-item:hover{background-color:#f0f0f0}.search-result-item .item-img{height:36px;width:36px}.search-result-item .lib-item-img{height:36px;padding:4px;width:36px}.search-result-item .item-content{flex:1 1;margin-left:.25rem;overflow-x:hidden}.item-content .item-name a{color:#ea8102!important}.item-content .item-link{color:#7d7d7d;margin:0}.item-content .item-text{margin:0}.item-content .item-text b{font-weight:700}.search-result-container .item-content .item-text{font-size:.8125rem;line-height:1.5;padding:0}.main-panel-south{flex:auto;height:calc(100% - 50px);overflow:auto}.search-page{margin:30px auto;width:65%}.search-page .search-result-container{border-radius:0;box-shadow:none;padding:1.25rem 1rem}.search-page .search-page-container{background:#f7f7f8;padding:1.25rem 1rem}.search-page .search-page-container .search-input{padding-left:.5rem;width:30rem}.search-page .search-page-container .fa-angle-double-down,.search-page .search-page-container .fa-angle-double-up{font-size:1rem}.search-page .advanced-search .search-file-types .search-input{max-width:100%;padding-left:.5rem;width:30rem}.search-page .search-page-container .search-icon-right{left:28rem}.search-page .paginator{margin:1rem 0;text-align:center}.search-page .advanced-search,.search-page .search-filters{color:#747474}.search-page .search-filters{padding-top:10px}.search-page .advanced-search .search-file-types,.search-page .advanced-search .search-repo{padding:5px 0}.search-file-types .search-file-types-form{top:10px}.search-page .advanced-search .search-catalog{border-top:1px dashed #e2e2e2;padding:10px 0}.search-page .advanced-search .search-catalog:first-child{border:none}.search-page .custom-checkbox .custom-control-input:checked~.custom-control-label:before{background-color:#3b88fd}.search-date .ant-input{border:1px solid rgba(0,40,100,.12);border-radius:3px;height:2.375rem;line-height:1.6;padding:.375rem .75rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.search-date .select-data-icon{color:#b2b2b2;position:absolute;right:1.5rem;top:.5rem}.search-page .search-result-container .search-result-item{margin-bottom:1rem;padding:0}.search-page .search-result-container .search-result-item:hover{background-color:inherit}.search-page .search-result-item .item-content{margin-left:.8rem}.search-page .search-result-item .item-content .item-link a{color:#8b8b8b!important}.search-page .search-result-container .search-result-item{cursor:default}.rc-calendar tbody tr{height:1.75rem}@media (max-width:767px){.common-toolbar .search{margin:0}.search-icon-container{align-items:center;display:flex;height:100%;justify-content:center;position:relative;width:2rem}.search-icon-container .input-icon-addon{height:100%;padding:7px}.search-container .input-icon svg.input-icon-addon{padding:12px}.search-icon{color:#999;font-size:1.25rem;line-height:1}.search-container{display:flex;justify-content:center;left:0;position:fixed;right:0;top:5rem;z-index:2}.search-input{box-shadow:5px 5px 5px #888;height:2.5rem;width:20rem!important}.search-result-container{left:auto;position:absolute;top:2.5rem;width:20rem}.search-page{height:100%;margin:0;width:100%}.search-page .search-page-container .search-input{box-shadow:none;width:95%!important}.search-page .search-page-container .search-icon-right{left:85%}.search-page .search-result-container{left:0;top:0;width:100%}}.search-result-container .search-mode-container{align-items:center;border-bottom:1px solid #ddd;display:flex;height:40px;margin-right:16px;padding:0 12px}.search-result-container .search-mode-item{align-items:center;border-bottom:2px solid transparent;cursor:pointer;display:flex;font-size:14px;height:40px;line-height:40px;margin-right:30px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.search-result-container .search-mode-item.search-mode-active{border-bottom-color:#ff8001;color:#ff8001}.search-result-container .search-mode-similarity-index-status{align-items:center;display:flex;flex-direction:column;height:64px;justify-content:center}.search-result-container .search-mode-similarity-index-status.index-status-uncreated{cursor:pointer}.visited-search-results-title{color:#999;font-size:.875rem;font-weight:400;margin:7px 0 10px}.notification-list-dialog{height:calc(100% - 56px);max-width:720px;width:720px}.notification-list-dialog .notification-list-content{height:100%}.notification-header-close{display:flex}.notification-header-close .notification-dropdown-toggle{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.notification-header-close .item-dropdown-icon,.notification-header-close .notification-close-icon{color:#000;cursor:pointer;height:24px;opacity:.5;width:24px}.notification-header-close .item-dropdown-icon:hover,.notification-header-close .notification-close-icon:hover{color:#000;opacity:.75}.notification-header-close .item-dropdown-icon{font-weight:400}.notification-header-close .notification-close-icon{font-weight:700}.notification-header-close .dropdown-menu{box-shadow:0 1px 2px 0 rgba(0,0,0,.05);min-width:8rem}.notification-header-close .dtable-dropdown-menu.large.dropdown-menu .dropdown-item{min-height:0;min-height:auto;padding:.25rem 1.5rem}.notification-list-content .notification-modal-body{height:100%;overflow:hidden;padding:0}.notification-modal-body .notification-dialog-body{height:100%;overflow:auto;padding:2rem 1rem}.notification-dialog-body table{overflow-y:auto;table-layout:fixed;width:100%}.notification-modal-body .notification-dialog-body .paginator{height:38px}.notification-dialog-body table thead tr{height:2.1875rem}.notification-dialog-body table th{border-bottom:1px solid #eee;color:#9c9c9c;font-weight:400;line-height:1.6;padding:.3125rem .1875rem;text-align:left}.notification-dialog-body table tbody tr:hover{background:#f5f5f5;cursor:pointer}.notification-dialog-body table td{border-bottom:1px solid #eee;color:#333;font-size:14px;padding:.5rem .1875rem;word-break:break-all}.wechat-dialog-body{padding:3rem}.wechat-dialog-body,.wechat-dialog-message{align-items:center;display:flex;flex-direction:column;justify-content:center}.wechat-dialog-message{color:#666;font-size:14px;margin-top:1rem;width:100%}.notification-dialog-body .empty-tip{background-color:#fff;border-radius:3px;margin:5.5em 1em;padding:30px;text-align:center}.notification-dialog-body .empty-tip .no-items-img-tip{height:100px;width:100px}@media (min-width:768px){.notification-dialog-body .empty-tip{padding:30px 80px}}#notifications{position:relative;width:32px}#notice-icon{display:block;position:relative}@media (max-width:390px){#notifications{margin-left:8px}}#notifications .title{color:#322;font-size:1rem;font-weight:400;line-height:1.5}#notifications .sf2-icon-bell{color:#999;font-size:24px;line-height:1;vertical-align:middle}#notifications .num{background:#fc6440;border-radius:100%;color:#fff;font-size:9px;height:16px;left:12px;line-height:16px;min-width:16px;padding:0 2px;position:absolute;text-align:center;top:-3px}#notice-popover{right:-12px;top:38px}#notice-popover .outer-caret{right:18px}#notice-popover a{font-weight:400}#notice-popover li{border-bottom:1px solid #dfdfe1;padding:9px 0 3px}#notice-popover li.unread{border-left:2px solid #feac74;padding-left:10px;padding-right:10px}#notice-popover li.read{border-left:2px solid transparent;padding-left:10px;padding-right:10px}#notice-popover li:hover{background:#f5f5f7}#notice-popover li.read:hover{background:#f5f5f7;border-left:2px solid #dfdfe1}#notice-popover .avatar{border-radius:1000px;float:left}#notice-popover .brief{font-size:.8125rem;line-height:1.5rem;margin-bottom:1rem;margin-left:40px}#notice-popover .time{clear:both;color:#999;font-size:.8125rem;line-height:1.5rem;margin:0;text-align:right}#notice-popover .view-all{color:#a4a4a4;display:block;padding:7px 0;text-align:center}#notice-popover .sf-popover-close{position:absolute;right:10px;top:17px}#notice-popover .sf-popover-hd{border-bottom:1px solid #dfdfe1;margin:0 10px}#notice-popover .sf-popover-con{max-height:25rem}.sf-single-selector .cur-option{cursor:pointer}.sf-single-selector .cur-option .toggle-icon{color:#999}.sf-single-selector .options-container{background:#fff;border:1px solid #e8e8e8;min-width:165px;z-index:2}.sf-single-selector .option-list{max-height:200px;min-height:4rem}.sf-single-selector .option-item{cursor:pointer}.sf-single-selector .option-item:hover{background:#f5f5f5}.sf-single-selector .option-item-text{font-size:14px}.btn-qr-code-icon{font-size:1.5rem;font-weight:400;line-height:1;padding:.375rem}.rc-calendar,.rc-calendar *{box-sizing:border-box}.rc-calendar-hidden{display:none}.rc-calendar-input-wrap{border-bottom:1px solid #e9e9e9;padding:6px;position:relative}.rc-calendar-input-wrap:after{clear:both;content:""}.rc-calendar-date-input-wrap{overflow:hidden}.rc-calendar-time-picker{background-color:#fff;height:217px;position:absolute;top:34px;width:100%}.rc-calendar-time-picker-panel{position:relative;width:100%}.rc-calendar-time-picker-panel .rc-time-picker-panel-input-wrap{display:none}.rc-calendar-time-picker-panel .rc-time-picker-panel-inner{border:none;box-shadow:none}.rc-calendar-time-picker-panel .rc-time-picker-panel-select{max-height:217px;width:84px}.rc-calendar-time-picker-panel .rc-time-picker-panel-select li{padding:0;text-align:center}.rc-calendar-time-picker-wrap{float:left;width:100%}.rc-calendar-time-picker-wrap .rc-time-picker{width:100%}.rc-calendar-time-picker-wrap .rc-time-picker-input{border:1px solid transparent;height:22px;outline:0;padding:0}.rc-calendar-time-picker-wrap .rc-time-picker-icon{display:none}.rc-calendar-input{border:1px solid transparent;color:#666;cursor:text;height:22px;line-height:1.5;outline:0;width:100%}.rc-calendar-input-invalid{border-color:red}.rc-calendar-clear-btn{cursor:pointer;height:20px;line-height:20px;margin:0;overflow:hidden;position:absolute;right:6px;text-align:center;top:6px;width:20px;z-index:9999}.rc-calendar-clear-btn:after{color:#aaa;content:"x";display:inline-block;font-size:12px;line-height:1;transition:color .3s ease;width:20px}.rc-calendar-clear-btn:hover:after{color:#666}.rc-calendar-picker{left:-9999px;position:absolute;top:-9999px;z-index:1000}.rc-calendar-picker-hidden{display:none}.rc-calendar-picker-slide-up-appear,.rc-calendar-picker-slide-up-enter{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(.08,.82,.17,1);animation-timing-function:cubic-bezier(.08,.82,.17,1);display:block!important;opacity:0;-webkit-transform-origin:0 0;transform-origin:0 0}.rc-calendar-picker-slide-up-leave{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(.6,.04,.98,.34);animation-timing-function:cubic-bezier(.6,.04,.98,.34);display:block!important;opacity:1;-webkit-transform-origin:0 0;transform-origin:0 0}.rc-calendar-picker-slide-up-appear.rc-calendar-picker-slide-up-appear-active.rc-calendar-picker-placement-bottomLeft,.rc-calendar-picker-slide-up-appear.rc-calendar-picker-slide-up-appear-active.rc-calendar-picker-placement-bottomRight,.rc-calendar-picker-slide-up-enter.rc-calendar-picker-slide-up-enter-active.rc-calendar-picker-placement-bottomLeft,.rc-calendar-picker-slide-up-enter.rc-calendar-picker-slide-up-enter-active.rc-calendar-picker-placement-bottomRight{-webkit-animation-name:rcDropdownSlideUpIn;animation-name:rcDropdownSlideUpIn;-webkit-animation-play-state:running;animation-play-state:running}.rc-calendar-picker-slide-up-appear.rc-calendar-picker-slide-up-appear-active.rc-calendar-picker-placement-topLeft,.rc-calendar-picker-slide-up-appear.rc-calendar-picker-slide-up-appear-active.rc-calendar-picker-placement-topRight,.rc-calendar-picker-slide-up-enter.rc-calendar-picker-slide-up-enter-active.rc-calendar-picker-placement-topLeft,.rc-calendar-picker-slide-up-enter.rc-calendar-picker-slide-up-enter-active.rc-calendar-picker-placement-topRight{-webkit-animation-name:rcDropdownSlideDownIn;animation-name:rcDropdownSlideDownIn;-webkit-animation-play-state:running;animation-play-state:running}.rc-calendar-picker-slide-up-leave.rc-calendar-picker-slide-up-leave-active.rc-calendar-picker-placement-bottomLeft,.rc-calendar-picker-slide-up-leave.rc-calendar-picker-slide-up-leave-active.rc-calendar-picker-placement-bottomRight{-webkit-animation-name:rcDropdownSlideUpOut;animation-name:rcDropdownSlideUpOut;-webkit-animation-play-state:running;animation-play-state:running}.rc-calendar-picker-slide-up-leave.rc-calendar-picker-slide-up-leave-active.rc-calendar-picker-placement-topLeft,.rc-calendar-picker-slide-up-leave.rc-calendar-picker-slide-up-leave-active.rc-calendar-picker-placement-topRight{-webkit-animation-name:rcDropdownSlideDownOut;animation-name:rcDropdownSlideDownOut;-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes rcDropdownSlideUpIn{0%{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-transform-origin:0 0;transform-origin:0 0}to{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transform-origin:0 0;transform-origin:0 0}}@keyframes rcDropdownSlideUpIn{0%{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-transform-origin:0 0;transform-origin:0 0}to{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transform-origin:0 0;transform-origin:0 0}}@-webkit-keyframes rcDropdownSlideUpOut{0%{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transform-origin:0 0;transform-origin:0 0}to{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-transform-origin:0 0;transform-origin:0 0}}@keyframes rcDropdownSlideUpOut{0%{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transform-origin:0 0;transform-origin:0 0}to{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-transform-origin:0 0;transform-origin:0 0}}@-webkit-keyframes rcDropdownSlideDownIn{0%{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-transform-origin:100% 100%;transform-origin:100% 100%}to{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transform-origin:100% 100%;transform-origin:100% 100%}}@keyframes rcDropdownSlideDownIn{0%{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-transform-origin:100% 100%;transform-origin:100% 100%}to{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transform-origin:100% 100%;transform-origin:100% 100%}}@-webkit-keyframes rcDropdownSlideDownOut{0%{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transform-origin:100% 100%;transform-origin:100% 100%}to{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-transform-origin:100% 100%;transform-origin:100% 100%}}@keyframes rcDropdownSlideDownOut{0%{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transform-origin:100% 100%;transform-origin:100% 100%}to{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-transform-origin:100% 100%;transform-origin:100% 100%}}.rc-calendar{background-clip:padding-box;background-color:#fff;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 5px #ccc;font-family:Arial,Hiragino Sans GB,Microsoft Yahei,"Microsoft Sans Serif",WenQuanYi Micro Hei,sans-serif;font-size:12px;line-height:1.5;list-style:none;outline:none;position:relative;text-align:left;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.rc-calendar-date-panel,.rc-calendar-date-panel-container{display:flex}.rc-calendar-date-panel,.rc-calendar-panel{display:block;outline:none;position:relative}.rc-calendar-week-number{width:286px}.rc-calendar-week-number-cell{text-align:center}.rc-calendar-header{border-bottom:1px solid #ccc;height:34px;line-height:30px;padding:0 10px;text-align:center;-ms-user-select:none;user-select:none;-webkit-user-select:none}.rc-calendar-header>a{display:inline-block;font-weight:700;line-height:34px;padding:0 5px;text-align:center;width:30px}.rc-calendar-header>a:hover{color:#f09f4g;cursor:pointer}.rc-calendar-header .rc-calendar-prev-month-btn{left:25px;position:absolute}.rc-calendar-header .rc-calendar-prev-month-btn:after{content:"‹"}.rc-calendar-header .rc-calendar-next-month-btn{position:absolute;right:25px}.rc-calendar-header .rc-calendar-next-month-btn:after{content:"›"}.rc-calendar-day-select,.rc-calendar-month-select,.rc-calendar-year-select{color:#666;display:inline-block;font-size:12px;font-weight:700;line-height:34px;padding:0 8px}.rc-calendar-day-select:hover,.rc-calendar-month-select:hover,.rc-calendar-year-select:hover{color:#f09f4g;cursor:pointer}.rc-calendar-day-select.rc-calendar-time-status:hover,.rc-calendar-month-select.rc-calendar-time-status:hover,.rc-calendar-year-select.rc-calendar-time-status:hover{color:#666;cursor:pointer}.rc-calendar-next-month-btn,.rc-calendar-next-year-btn,.rc-calendar-prev-month-btn,.rc-calendar-prev-year-btn{color:#999;cursor:pointer;display:inline-block;font-family:Arial,Hiragino Sans GB,Microsoft Yahei,"Microsoft Sans Serif",sans-serif;font-size:16px;line-height:34px;padding:0 5px;position:absolute;top:0}.rc-calendar-next-month-btn:hover,.rc-calendar-next-year-btn:hover,.rc-calendar-prev-month-btn:hover,.rc-calendar-prev-year-btn:hover{color:#f09f4g}.rc-calendar-next-year-btn{right:0}.rc-calendar-next-year-btn:after{content:"»"}.rc-calendar-prev-year-btn{left:0}.rc-calendar-prev-year-btn:after{content:"«"}.rc-calendar-body{height:217px;padding:9px 10px 10px}.rc-calendar-right-panel{height:inherit;width:68px}.rc-calendar-right-panel-header{height:34px;line-height:34px}.rc-calendar-right-panel-header span{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.rc-calendar-right-panel-body{border-left:1px solid #ccc;height:217px;overflow-y:scroll}.rc-calendar-right-panel-body ul{box-sizing:border-box;list-style:none;margin:0;padding:0;width:100%}.rc-calendar-right-panel-body ul li{cursor:pointer;padding:8px 0;text-align:center}.rc-calendar-right-panel-body ul li:hover{color:#e8bf6a}.rc-calendar-right-panel-body .rc-calendar-selected-time{color:#f09f3f}.rc-calendar-right-panel-body::-webkit-scrollbar{width:0}.rc-calendar-right-panel-footer{border-left:1px solid #ccc;height:39px;line-height:34px}.rc-calendar-right-panel-footer span{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.rc-calendar-right-panel-footer,.rc-calendar-right-panel-header{color:#999;cursor:pointer;display:flex;font-size:16px;justify-content:center}.rc-calendar-right-panel-footer span:after,.rc-calendar-right-panel-header span:after{content:"›"}.rc-calendar table{background-color:transparent;border-collapse:collapse;max-width:100%;width:100%}.rc-calendar table,.rc-calendar td,.rc-calendar th{border:none}.rc-calendar-table{border-spacing:0;margin-bottom:0}.rc-calendar-column-header{line-height:18px;padding:6px 0;text-align:center;width:33px}.rc-calendar-column-header .rc-calendar-column-header-inner{display:block;font-weight:400}.rc-calendar-week-number-header .rc-calendar-column-header-inner{display:none}.rc-calendar-cell{padding:1px 0}.rc-calendar-date{background:transparent;border-radius:4px 4px;color:#666;display:block;height:26px;line-height:26px;margin:0 auto;padding:0;text-align:center;width:26px}.rc-calendar-date:hover{background:#fcecd9;cursor:pointer}.rc-calendar-selected-day .rc-calendar-date{background:#fcecd9}.rc-calendar-selected-date .rc-calendar-date{background:#f09f3f;color:#fff}.rc-calendar-selected-date .rc-calendar-date:hover{background:#f09f3f}.rc-calendar-today .rc-calendar-date{border:1px solid #f09f3f}.rc-calendar-disabled-cell .rc-calendar-date{background:#f3f3f3;border-radius:0;color:#bcbcbc;cursor:not-allowed;width:auto}.rc-calendar-disabled-cell .rc-calendar-date:hover{background:#f3f3f3}.rc-calendar-disabled-cell-first-of-row .rc-calendar-date{border-bottom-left-radius:4px;border-top-left-radius:4px}.rc-calendar-disabled-cell-last-of-row .rc-calendar-date{border-bottom-right-radius:4px;border-top-right-radius:4px}.rc-calendar-last-month-cell .rc-calendar-date,.rc-calendar-next-month-btn-day .rc-calendar-date{color:#bbb}.rc-calendar-footer{border-top:1px solid #ccc;padding:10px 0;position:relative;text-align:center}.rc-calendar-footer .rc-time-picker{width:90px}.rc-calendar-footer .rc-time-picker-input{height:24px}.rc-calendar-footer-show-ok{text-align:right}.rc-calendar-footer-show-ok .rc-calendar-footer-btn{padding-right:12px}.rc-calendar-footer-show-ok .rc-calendar-time-picker-btn{margin-left:0;padding:0 12px}.rc-calendar-footer-show-ok .rc-calendar-today-btn{float:left;padding-left:12px}.rc-calendar-footer-btn{margin-top:2px}.rc-calendar-footer-btn:after{clear:both;content:"x";font-size:0;height:0;overflow:hidden}.rc-calendar-time-picker-btn{margin-left:10px}.rc-calendar-ok-btn,.rc-calendar-time-picker-btn,.rc-calendar-today-btn{color:#f46830;display:inline-block;text-align:center}.rc-calendar-ok-btn:hover,.rc-calendar-time-picker-btn:hover,.rc-calendar-today-btn:hover{color:#f09f4g;cursor:pointer}.rc-calendar-ok-btn-disabled,.rc-calendar-ok-btn-disabled:hover,.rc-calendar-time-picker-btn-disabled,.rc-calendar-time-picker-btn-disabled:hover,.rc-calendar-today-btn-disabled,.rc-calendar-today-btn-disabled:hover{color:#bbb}.rc-calendar-today-btn{padding-left:10px}.rc-calendar-time-input{background-color:#fff;border:1px solid #d9d9d9;border-radius:6px 6px;color:#666;display:inline-block;height:25px;line-height:1.5;margin:0;padding:4px 10px;position:relative;-webkit-transform:border .3s cubic-bezier(.35,0,.25,1),background .3s cubic-bezier(.35,0,.25,1),box-shadow .3s cubic-bezier(.35,0,.25,1);transform:border .3s cubic-bezier(.35,0,.25,1),background .3s cubic-bezier(.35,0,.25,1),box-shadow .3s cubic-bezier(.35,0,.25,1);width:40px}.rc-calendar-time-input:hover{border-color:#f09f4g}.rc-calendar-time-input:focus{border-color:#f09f4g;box-shadow:0 0 3px #f09f4g}.rc-calendar-time-panel{background:#fff;bottom:0;left:0;outline:none;position:absolute;right:0;top:0;z-index:10}.rc-calendar-time-panel-header{border-bottom:1px solid #ccc;height:34px;line-height:34px;padding:0 10px;position:relative;text-align:center;-ms-user-select:none;user-select:none;-webkit-user-select:none}.rc-calendar-time-panel-body{padding:9px 10px 10px}.rc-calendar-time-panel-title{border-radius:4px;display:inline-block;font-weight:700;height:30px;line-height:22px;padding:4px 5px;text-align:center;width:180px}.rc-calendar-time-panel-table{border-collapse:separate;height:255px;table-layout:fixed;width:100%}.rc-calendar-time-panel-cell{height:42px;text-align:center;vertical-align:middle}.rc-calendar-time-panel-time{border-radius:4px;display:block;line-height:26px;margin:0 auto;width:26px}.rc-calendar-time-panel-time:hover{background:#fcecd9;cursor:pointer}.rc-calendar-time-panel-selected-cell .rc-calendar-time-panel-time,.rc-calendar-time-panel-selected-cell .rc-calendar-time-panel-time:hover{background:#f09f3f;color:#fff}.rc-calendar-month-panel{background:#fff;bottom:0;left:0;outline:none;position:absolute;right:0;top:0;z-index:10}.rc-calendar-month-panel>div{display:flex;flex-direction:column;height:100%}.rc-calendar-month-panel-hidden{display:none}.rc-calendar-month-panel-header{border-bottom:1px solid #ccc;height:34px;line-height:30px;padding:0 10px;position:relative;text-align:center;-ms-user-select:none;user-select:none;-webkit-user-select:none}.rc-calendar-month-panel-header>a{display:inline-block;font-weight:700;padding:4px 5px;text-align:center;width:30px}.rc-calendar-month-panel-header>a:hover{color:#f09f4g;cursor:pointer}.rc-calendar-month-panel-next-year-btn,.rc-calendar-month-panel-prev-year-btn{position:absolute;top:0}.rc-calendar-month-panel-next-year-btn:after{content:"»"}.rc-calendar-month-panel-prev-year-btn{left:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.rc-calendar-month-panel-prev-year-btn:after{content:"«"}.rc-calendar-month-panel .rc-calendar-month-panel-year-select{width:180px}.rc-calendar-month-panel-year-select-arrow{display:none}.rc-calendar-month-panel-next-year-btn{right:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.rc-calendar-month-panel-body{flex:1 1;padding:9px 10px 10px}.rc-calendar-month-panel-footer{border-top:1px solid #ccc;line-height:38px}.rc-calendar-month-panel-table{border-collapse:separate;height:100%;table-layout:fixed;width:100%}.rc-calendar-month-panel-cell{text-align:center}.rc-calendar-month-panel-cell .rc-calendar-month-panel-month{background:transparent;border-radius:4px 4px;color:#666;display:block;height:36px;line-height:36px;margin:0 auto;padding:0;text-align:center;width:46px}.rc-calendar-month-panel-cell .rc-calendar-month-panel-month:hover{background:#fcecd9;cursor:pointer}.rc-calendar-month-panel-cell-disabled .rc-calendar-month-panel-month{color:#bfbfbf}.rc-calendar-month-panel-cell-disabled .rc-calendar-month-panel-month:hover{background:#fff;cursor:not-allowed}.rc-calendar-month-panel-selected-cell .rc-calendar-month-panel-month,.rc-calendar-month-panel-selected-cell .rc-calendar-month-panel-month:hover{background:#f09f3f;color:#fff}.rc-calendar-month-header-wrap{height:308px;position:relative}.rc-calendar-year-panel{background:#fff;bottom:0;left:0;outline:none;position:absolute;right:0;top:0;z-index:10}.rc-calendar-year-panel>div{display:flex;flex-direction:column;height:100%}.rc-calendar-year-panel-hidden{display:none}.rc-calendar-year-panel-header{border-bottom:1px solid #ccc;height:34px;line-height:30px;padding:0 10px;position:relative;text-align:center;-ms-user-select:none;user-select:none;-webkit-user-select:none}.rc-calendar-year-panel-header>a{display:inline-block;font-weight:700;padding:4px 5px;text-align:center;width:30px}.rc-calendar-year-panel-header>a:hover{color:#f09f4g;cursor:pointer}.rc-calendar-year-panel-next-decade-btn,.rc-calendar-year-panel-prev-decade-btn{position:absolute;top:0}.rc-calendar-year-panel-next-decade-btn:after{content:"»"}.rc-calendar-year-panel-prev-decade-btn{left:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.rc-calendar-year-panel-prev-decade-btn:after{content:"«"}.rc-calendar-year-panel .rc-calendar-year-panel-decade-select{width:180px}.rc-calendar-year-panel-decade-select-arrow{display:none}.rc-calendar-year-panel-next-decade-btn{right:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.rc-calendar-year-panel-body{flex:1 1;padding:9px 10px 10px}.rc-calendar-year-panel-footer{border-top:1px solid #ccc;line-height:38px}.rc-calendar-year-panel-table{border-collapse:separate;height:100%;table-layout:fixed;width:100%}.rc-calendar-year-panel-cell{text-align:center}.rc-calendar-year-panel-year{background:transparent;border-radius:4px 4px;color:#666;display:block;height:36px;line-height:36px;margin:0 auto;padding:0;text-align:center;width:46px}.rc-calendar-year-panel-year:hover{background:#fcecd9;cursor:pointer}.rc-calendar-year-panel-selected-cell .rc-calendar-year-panel-year,.rc-calendar-year-panel-selected-cell .rc-calendar-year-panel-year:hover{background:#f09f3f;color:#fff}.rc-calendar-year-panel-last-decade-cell .rc-calendar-year-panel-year,.rc-calendar-year-panel-next-decade-cell .rc-calendar-year-panel-year{color:rgba(0,0,0,.25);-ms-user-select:none;user-select:none;-webkit-user-select:none}.rc-calendar-decade-panel{background:#fff;bottom:0;display:flex;flex-direction:column;left:0;outline:none;position:absolute;right:0;top:0;z-index:10}.rc-calendar-decade-panel-hidden{display:none}.rc-calendar-decade-panel-header{border-bottom:1px solid #ccc;height:34px;line-height:34px;padding:0 10px;position:relative;text-align:center;-ms-user-select:none;user-select:none;-webkit-user-select:none}.rc-calendar-decade-panel-header>a{display:inline-block;font-weight:700;padding:1px 5px;text-align:center;width:30px}.rc-calendar-decade-panel-header>a:hover{color:#f09f4g;cursor:pointer}.rc-calendar-decade-panel-next-century-btn,.rc-calendar-decade-panel-prev-century-btn{position:absolute;top:0}.rc-calendar-decade-panel-next-century-btn:after{content:"»"}.rc-calendar-decade-panel-prev-century-btn{left:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.rc-calendar-decade-panel-prev-century-btn:after{content:"«"}.rc-calendar-decade-panel-next-century-btn{right:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.rc-calendar-decade-panel-body{flex:1 1;padding:9px 10px 10px}.rc-calendar-decade-panel-footer{border-top:1px solid #ccc;line-height:38px}.rc-calendar-decade-panel-table{border-collapse:separate;height:100%;table-layout:fixed;width:100%}.rc-calendar-decade-panel-cell{text-align:center}.rc-calendar-decade-panel-decade{background:transparent;border-radius:4px 4px;color:#666;display:block;height:36px;line-height:36px;margin:0 auto;padding:0;text-align:center}.rc-calendar-decade-panel-decade:hover{background:#fcecd9;cursor:pointer}.rc-calendar-decade-panel-selected-cell .rc-calendar-decade-panel-decade,.rc-calendar-decade-panel-selected-cell .rc-calendar-decade-panel-decade:hover{background:#f09f3f;color:#fff}.rc-calendar-decade-panel-last-century-cell .rc-calendar-decade-panel-decade,.rc-calendar-decade-panel-next-century-cell .rc-calendar-decade-panel-decade{color:rgba(0,0,0,.25);-ms-user-select:none;user-select:none;-webkit-user-select:none}.rc-calendar-range{overflow:hidden;width:502px}.rc-calendar-range-part{position:relative;width:250px}.rc-calendar-range-part .rc-calendar-time-picker{top:69px}.rc-calendar-range-part .rc-calendar-time-picker-panel-select{width:77px}.rc-calendar-range-left{float:left}.rc-calendar-range-left .rc-calendar-time-picker-panel-select:last-child{border-right:1px solid #e9e9e9}.rc-calendar-range-right{float:right}.rc-calendar-range-right .rc-calendar-time-picker-panel{left:21px}.rc-calendar-range-right .rc-calendar-time-picker-panel-select:first-child{border-left:1px solid #e9e9e9}.rc-calendar-range-middle{height:35px;line-height:35px;margin-left:-10px;position:absolute;text-align:center}.rc-calendar-range .rc-calendar-date-panel:after{clear:both;content:".";display:block;height:0;visibility:hidden}.rc-calendar-range .rc-calendar-input-wrap{height:35px}.rc-calendar-range .rc-calendar-input,.rc-calendar-range .rc-time-picker-input{height:22px;padding:1px 7px}.rc-calendar-range .rc-calendar-body,.rc-calendar-range .rc-calendar-decade-panel-body,.rc-calendar-range .rc-calendar-month-panel-body,.rc-calendar-range .rc-calendar-year-panel-body{border-bottom:1px solid #e9e9e9}.rc-calendar-range.rc-calendar-week-number{width:574px}.rc-calendar-range.rc-calendar-week-number .rc-calendar-range-part{width:286px}.rc-calendar-range.rc-calendar-week-number .rc-calendar-range-part .rc-calendar-time-picker{top:69px}.rc-calendar-range.rc-calendar-week-number .rc-calendar-range-part .rc-calendar-time-picker-panel-select{width:89px}.rc-calendar-range.rc-calendar-week-number .rc-calendar-range-right .rc-calendar-time-picker-panel{left:36px}.rc-calendar-range .rc-calendar-decade-panel,.rc-calendar-range .rc-calendar-month-panel,.rc-calendar-range .rc-calendar-year-panel{top:35px}.rc-calendar-range .rc-calendar-month-panel .rc-calendar-year-panel{top:0}.rc-calendar-range .rc-calendar-decade-panel-table,.rc-calendar-range .rc-calendar-month-panel-table,.rc-calendar-range .rc-calendar-year-panel-table{height:198px}.rc-calendar-range .rc-calendar-in-range-cell{background:#ebf4f8;border-radius:0}.rc-calendar-range-bottom{text-align:right}.rc-calendar-range .rc-calendar-footer{border-top:none;padding:0}.rc-calendar-range .rc-calendar-footer-btn{padding:10px 12px 10px 0}.rc-calendar-range .rc-calendar-ok-btn{position:static}.rc-calendar-range .rc-calendar-today-btn{float:left}.rc-calendar-full{width:275px}.rc-calendar-full-header{border-bottom:1px solid #ccc;overflow:hidden;padding:5px 10px;text-align:center;-ms-user-select:none;user-select:none;-webkit-user-select:none}.rc-calendar-full-header-month-select,.rc-calendar-full-header-year-select{float:right;margin-right:5px;width:70px}.rc-calendar-full-header-switcher{display:inline-block;float:right}.rc-calendar-full-header-switcher-normal:hover{border-color:#f09f4g;box-shadow:0 0 2px rgba(45,183,245,.8);cursor:pointer}.rc-calendar-full-header-switcher-focus{background-color:#f09f3f;border-color:#f09f3f;color:#fff}.rc-calendar-full-header-switcher>span{border:1px solid #d9d9d9;color:#666;float:left;height:28px;line-height:24px;padding:0 10px}.rc-calendar-full-header-switcher>span:first-child{border-bottom-left-radius:4px;border-right:none;border-top-left-radius:4px}.rc-calendar-full-header-switcher>span:last-child{border-bottom-right-radius:4px;border-left:none;border-top-right-radius:4px}.rc-calendar-fullscreen{width:auto}.rc-calendar-fullscreen .rc-calendar-full-header{border-bottom:none}.rc-calendar-fullscreen .rc-calendar-column-header{padding-right:12px;text-align:right}.rc-calendar-fullscreen .rc-calendar-cell{padding:0}.rc-calendar-fullscreen .rc-calendar-cell .rc-calendar-date,.rc-calendar-fullscreen .rc-calendar-month-panel-cell .rc-calendar-month-panel-month{border:none;border-radius:0;border-top:2px solid #eee;display:block;height:116px;margin:0 4px;padding-right:8px;text-align:right;width:auto}.rc-calendar-fullscreen .rc-calendar-month-panel-selected-cell .rc-calendar-month-panel-month,.rc-calendar-fullscreen .rc-calendar-selected-day .rc-calendar-date{background-color:#fcecd9;color:#666}.rc-calendar-fullscreen .rc-calendar-month-panel-selected-cell .rc-calendar-month-panel-month,.rc-calendar-fullscreen .rc-calendar-today .rc-calendar-date{border-top-color:#f09f3f;color:#f09f3f}.rc-calendar-table{table-layout:auto}.rc-calendar-table tbody tr{height:auto}.rc-calendar-input:focus{border-color:transparent}.user-option-name{font-size:14px;font-weight:500}.user-option-email{font-size:12px}.invite-accept-icon{color:green;font-size:1.25rem;font-style:normal;line-height:1;margin-left:.5rem;vertical-align:middle}.invite-link-in-popup,.invite-link-in-popup:hover{text-decoration:none}.invite-link-icon-in-popup{color:#f89a68;cursor:pointer;font-size:.875rem;font-style:normal;line-height:1;margin-left:.5rem;vertical-align:middle}.submit-btn .loading-icon{height:21px;margin:1px auto;width:21px}.seafile-multicolor-icon{fill:currentColor;height:1em;overflow:hidden;width:1em}.seafile-multicolor-icon-monitor{fill:#444;color:#bdbdbd;font-size:14px}.ai-search-refrences{border-top:1px solid rgba(0,40,100,.12);padding-top:10px}.ai-search-refrences .ai-search-refrences-title{margin-bottom:6px}.ai-search-refrences .ai-search-refrences-container{display:flex}.ai-search-refrences .ai-search-refrences-container .ai-search-refrences-detail{border:1px solid #ccc;border-radius:3px;margin-right:8px;max-width:200px;padding:4px 8px}.ai-search-refrences .ai-search-refrences-detail:hover{background-color:#f5f5f5;cursor:pointer}.search-container.show.ai-search-ask{width:800px}.ai-search-ask .ai-search-ask-header{align-items:center;border-bottom:1px solid rgba(0,40,100,.12);display:flex;padding:1rem}.ai-search-ask .ai-search-ask-header .ai-search-ask-return{cursor:pointer;line-height:10px;padding:0 4px;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.ai-search-ask .ai-search-ask-header .ai-search-ask-return .seafile-multicolor-icon-arrow{opacity:.6}.ai-search-ask .ai-search-ask-header .ai-search-ask-return:hover .seafile-multicolor-icon-arrow{opacity:.8}.ai-search-ask .ai-search-ask-body{display:flex;max-height:400px;overflow-y:auto}.ai-search-ask .ai-search-ask-body .ai-search-ask-body-left{flex-shrink:0;margin-right:1rem}.ai-search-ask .ai-search-ask-body .ai-search-ask-body-right{font-size:14px;line-height:1.8;width:100%}.ai-search-ask .ai-search-ask-body .ai-search-ask-body-markdown .sf-slate-viewer-scroll-container{background:none;padding:0}.ai-search-ask .ai-search-ask-body .ai-search-ask-body-markdown .sf-slate-viewer-article-container{margin:0}.ai-search-ask .ai-search-ask-body .ai-search-ask-body-markdown .article{border:none;padding:0}.ai-search-ask .ai-search-ask-body .ai-search-ask-body-markdown .article p{margin-bottom:1rem;margin-top:0}.ai-search-ask .ai-search-ask-footer{border-top:1px solid rgba(0,40,100,.12);margin:0 1rem;padding:1rem 0}.ai-search-ask .ai-search-ask-footer .ai-search-ask-footer-btn{background-color:#fff;cursor:pointer;height:16px;position:absolute;right:8px;top:8px;width:16px}.ai-search-ask .ai-search-ask-footer .ai-search-ask-footer-btn .seafile-multicolor-icon-send{color:#ff8000}.ai-search-ask .ai-search-ask-footer .ai-search-ask-footer-btn:hover .seafile-multicolor-icon-send{color:#d96d00}@media (max-width:768px){.search-container.show.ai-search-ask{width:100%}.ai-search-ask .search-input{box-shadow:none;width:100%!important}}.top-search-file-icon{align-self:center;color:#999;cursor:pointer;font-size:20px;font-weight:800}.user-details-popover{background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 0 14px rgba(0,0,0,.14);left:2px;z-index:1000}.user-details-main{border-bottom:1px solid #eee}.user-details-name{font-size:1rem;font-weight:500}.share-dialog .share-dialog-content{display:flex;flex-direction:column;min-height:27rem;padding:0}@media (min-width:768px){.share-dialog .share-dialog-content{flex-direction:row}}.share-dialog-content .share-dialog-side{border-bottom:1px solid #eee;flex-basis:22%;padding:1rem}.share-dialog .nav .nav-item .nav-link{padding:.3125rem .25rem}@media (min-width:768px){.share-dialog-content .share-dialog-side{border:0;border-right:1px solid #eee;padding:12px 8px}.share-dialog-side .nav{flex-direction:column}.share-dialog-side .nav-pills .nav-item .nav-link{margin:0;padding:.3125rem .5rem;width:100%}}.share-dialog-content .share-dialog-main{display:flex;flex-basis:78%;padding:1rem}.share-dialog-content .share-dialog-main .tab-content{flex:1 1}.share-dialog-content .share-dialog-main .tab-pane{height:100%}.share-list-container{max-height:20rem;min-height:10rem;overflow:auto}#share-link-panel .share-list-container{max-height:23rem;overflow:hidden}#share-link-panel .table-real-container{height:20rem;overflow:auto}.share-dialog-content label{padding:.5rem 0 .25rem}.share-dialog-content label.form-check-label{padding:.25rem 0}.link-operation-content{margin-left:1.25rem}.link-operation-icon{color:#9aa0ac}.tip{color:grey;margin-bottom:1rem}.generate-share-link .passwd,.generate-upload-link .passwd{width:60%}.generate-share-link .permission{margin-left:2.5rem}.generate-link-btn{margin-top:1.125rem}input.expire-input{display:inline-block;height:1.5rem;margin:0 .25rem 0 1.25rem;padding:.25rem;width:4rem}.expire-input-border{border-bottom-right-radius:0;border-top-right-radius:0;height:2.375rem!important;padding:.375rem .75rem!important}.share-dialog-main .permission-editor .permission-editor__menu{width:240px}.expir-span{border:1px solid rgba(0,40,100,.12);border-bottom-right-radius:3px;border-left:none;border-top-right-radius:3px;display:inline-block;font-size:.9375rem;height:2.375rem;line-height:2.25;margin-left:-5px;min-width:2.375rem;padding:0 8px;position:absolute;text-align:center;top:4px}.custom-permission .permission-header{align-items:center;border-bottom:1px solid #efefef;display:flex;justify-content:space-between;padding:.375rem 0}.custom-permission .permission-header .back-icon{color:#999;cursor:pointer;margin-right:10px}.custom-permission .permission-name-desc{margin-top:.375rem}.custom-permission .permission-name-desc label{color:#999;font-size:14px}.custom-permission .permission-name-desc .permission-desc,.custom-permission .permission-name-desc .permission-name{flex:1 1}.custom-permission .permission-name-desc .permission-desc{margin-left:.4rem}.custom-permission .permissions-list-body{max-height:350px;overflow-y:scroll}.file-chooser-container{border:1px solid rgba(0,40,100,.12);border-radius:3px;font-size:1rem;height:20rem;overflow:auto;padding:.5rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.item-toggle{color:silver;cursor:pointer;height:1.5rem;left:0;line-height:1.5rem!important;position:absolute;text-align:center;top:0;width:1.5rem}.file-chooser-container .list-view{margin-top:.25rem}.list-view-header{padding-left:1.5rem;position:relative}.list-view-header:hover{background-color:#fdefb9}.list-view-header .name{color:#eb8205}.list-view-content{list-style:none;margin:0;padding:0}.file-chooser-item{padding-left:22px;position:relative}.file-chooser-item .item-info{cursor:pointer;height:1.5rem;line-height:1.625;position:relative}.file-chooser-item .item-active{background:#f3af7d!important;border-radius:2px;box-shadow:inset 0 0 1px #999;color:#fff}.file-chooser-item .item-info:hover{background:#fdefb9;border-radius:2px;box-shadow:inset 0 0 1px #999}.file-chooser-item .item-info .name{flex:1 1}.file-chooser-item .item-active .icon{color:#fff!important}.file-chooser-search-input{position:relative}.file-chooser-search-input .search-control{position:absolute;right:.7rem;top:.5rem}.file-chooser-search-input .search-input{width:100%}.file-chooser-search-container{border:1px solid #eee;height:20rem;overflow:auto;padding:10px;position:relative}.file-chooser-search-close{position:absolute;right:-.5rem;top:-.5rem}.searched-active{background:#f3af7d!important;border-radius:2px;box-shadow:inset 0 0 1px #999}.searched-active td{color:#fff}.searched-active .icon{color:#fff!important}.select-open-repo{background:#fdefb9}.file-chooser-table td{border-bottom:1px solid transparent}.file-chooser-item .item-info .item-text{font-size:15px;line-height:24px;overflow:hidden;padding-left:2.8rem;text-overflow:ellipsis;white-space:nowrap}.file-chooser-item .item-info .item-left-icon{align-items:center;display:flex;left:0;padding-left:1.5rem;position:absolute;top:0}#wrapper{height:100%}.shared-file-view-md{height:100%;overflow-y:hidden}.shared-file-view-md-header{background:#f4f4f7;border-bottom:1px solid #e8e8e8;height:53px;justify-content:space-between;padding:8px 16px 4px}.shared-file-view-md-main{height:calc(100% - 53px)}.shared-file-view-head{align-items:center;background:#fff;display:flex;height:60px;justify-content:space-between;margin:0 auto;width:950px}.shared-file-view-head h2{color:#222;font-size:1.4em;font-weight:400;margin-bottom:0}.shared-file-view-head .share-by{margin:0}.shared-file-view-body{background:#f4f4f4;border:1px solid #ededed;height:calc(100% - 60px);overflow:auto;padding:30px 0 15px}.shared-file-view-body.md-view{display:flex;min-height:0;padding:0}.shared-file-view-body .sf-slate-viewer-outline{top:145px!important}@media (max-width:991.98px){.shared-file-view-head{padding:10px 20px;width:100%}}.dialog-operation{align-items:center;display:flex}.dialog-operation .file-internal-link{color:#999;cursor:pointer;font-size:12px;font-weight:700;margin-left:.5rem;margin-top:2px}.dialog-operation .file-internal-link:hover{color:#333}.file-tag-list .file-tag-item{align-items:center;border-radius:10px;display:flex;margin:.25rem 0;max-width:180px;padding:0 .5rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.file-tag-list .file-tag-item .tag-name{color:#fff;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.detail-container{border-left:1px solid #e8e8e8;display:flex;flex:1 1;flex-direction:column}.detail-header{align-items:center;background-color:#f9f9f9;border-bottom:1px solid #e8e8e8;display:flex;height:40px;justify-content:center;line-height:2.5rem;position:relative}.detail-header .detail-control{color:#b9b9b9;font-size:16px;padding-left:.5rem}.detail-header .detail-control:hover{color:#888}.detail-header .detail-title{align-items:center;display:flex;flex:1 1;justify-content:center;margin-left:.25rem;width:0}.detail-header .detail-title .name{color:#322;font-size:1rem;line-height:1.5rem;margin:0 .5rem 0 .25rem;vertical-align:middle}.detail-body{display:flex;flex:1 1;flex-direction:column;overflow-x:hidden;overflow-y:auto}.dirent-info .img{align-items:center;display:flex;height:10rem;justify-content:center;padding:.5rem 0}.dirent-info .img .thumbnail{display:inline-block;max-height:100%;max-width:calc(100% - 4px)}.dirent-table-container{display:flex;padding:10px 20px 20px}.dirent-table-container tr{border:none}.dirent-table-container table{flex:1 1}.dirent-table-container td,.dirent-table-container th{border:none;padding:5px 3px}.dirent-table-container th{color:#9c9c9c;font-size:13px;font-weight:400;text-align:left}.dirent-table-container td{color:#333;font-size:14px;word-break:break-all}.dirent-table-container .file-tag-container th{list-style:none;padding-top:8px;vertical-align:top}.dirent-table-container .file-tag-container .tag-list{list-style:none}.dirent-table-container .seafile-multicolor-icon.seafile-multicolor-icon-tag{cursor:pointer;height:20px;width:20px}.file-related-files th{vertical-align:top}.file-related-files td i{padding:0}.file-related-files td ul{list-style:none;max-height:100px;overflow-y:scroll;white-space:nowrap}.file-related-files td ul li{margin-bottom:5px;overflow-x:hidden;text-overflow:ellipsis}.file-related-files ul li a,.list-related-file-table tr td a{color:#333}.list-related-file-body{max-height:500px;min-height:200px;overflow-y:scroll}.no-related-file{text-align:center}.sf-add-related-file .alert{margin:.5rem}.sf-add-related-file .related-file-subtitle{display:inline-block;margin-bottom:.5rem}.detail-container .nav-item .nav-link,.detail-container .nav-item .nav-link i{margin:0 auto}.detail-container .edit-file-extra-attributes-btn{background-color:#f0f0f0;border-radius:3px;color:#929292;cursor:pointer;font-size:14px;height:28px;line-height:28px;max-width:100%;min-width:80px;padding:0 10px;text-align:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.detail-container .edit-file-extra-attributes-btn:hover{background-color:#dbdbdb;color:#666;cursor:pointer}.file-uploader-container{display:flex}.file-uploader{bottom:99999px;position:fixed}.uploader-list-view{background-color:#fff;border:1px solid #ddd;border-radius:3px;bottom:1px;box-shadow:0 0 6px #ddd;display:flex;flex-direction:column;height:20rem;position:fixed;right:1px;width:35rem;z-index:1050}.uploader-list-header{background-color:#f0f0f0;color:#322;display:flex;font-size:1rem;justify-content:space-between;line-height:1.5;min-height:2.25rem;padding:.375rem .625rem}.uploader-list-header .uploader-options span{color:#b8b8b8;cursor:pointer;display:inline-block;font-size:18px;margin-left:.25rem}.uploader-list-content{background-color:#fff;overflow:auto;padding:0 1rem 1.25rem}.file-upload-item{height:44px}.upload-progress .progress-container{height:24px;padding:4px 0}.upload-progress .progress{height:5px;width:80%}.upload-progress .progress .progress-bar{color:#e83}.upload-progress .progress-text{color:#666;font-size:12px;line-height:12px;margin-top:2px}.upload-operation .saving{word-wrap:break-word;color:#ee8204}.disabled-link{color:#999}#wrapper,.wrapper{display:flex;flex-direction:column;height:100%;width:100%}#header{display:flex}#main{flex:1 1;min-height:0}#main,.side-panel{display:flex;overflow:hidden}.side-panel{flex:0 0 22%;flex-direction:column}.main-panel{display:flex;flex:1 0 78%;flex-direction:column}@media (max-width:767px){.side-panel{background:#f8f8f8;height:100%;left:-300px;max-width:calc(100% - 40px);position:fixed;transition:all .3s ease;width:300px;z-index:1031}}.main-panel-north,.side-panel-north{background:#f4f4f7;border-bottom:1px solid #e8e8e8;display:flex;flex-shrink:0;padding:.5rem 1rem;position:relative;z-index:100}@media (max-width:767px){.side-panel-north{border-right:1px solid #eee}.main-panel-north{padding-bottom:.25rem}}.main-panel-center,.side-panel-center{display:flex;flex:1 1;flex-direction:column;min-height:0;position:relative}.side-panel-center,.side-panel-footer{border-right:1px solid #eee;min-height:0}.cur-view-container{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden}.cur-view-path{align-items:center;background:#f9f9f9;display:flex;flex-shrink:0;justify-content:space-between;max-height:40px;padding:8px 16px;position:relative}.cur-view-path:after{border-bottom:1px solid #e8e8e8;bottom:0;content:"";left:16px;position:absolute;right:16px}.cur-view-content{display:flex;flex:1 1;flex-direction:column;min-height:0;overflow:auto;padding:0 1rem}.table-container{flex:1 1;padding:0 1rem 10rem;position:relative}.table-drop-active:before{border:1px solid #45aaf2;content:"";display:block;height:100%;left:0;position:absolute;width:100%;z-index:-1}.cur-view-content .hd{background:#f2f2f2;border-radius:2px;height:48px;margin-bottom:.5em;padding:9px 10px}.cur-view-content .tip{font-size:14px}.cur-view-detail{-webkit-animation:move .5s ease-in-out 1;animation:move .5s ease-in-out 1;background-color:#fff;box-shadow:-1px 0 3px 0 #ccc;display:block;height:100%;position:absolute;right:0;width:300px;z-index:50}@-webkit-keyframes move{0%{opacity:.5;right:-500px}to{opacity:1;right:0}}@keyframes move{0%{opacity:.5;right:-500px}to{opacity:1;right:0}}.cur-view-detail .detail-container{height:100%}.reach-router,div[tabindex="-1"][role=group]{display:flex;flex:1 1;flex-direction:column;min-height:0}.header{align-items:center;background-color:#fff;border-bottom:1px solid #e5e5e5;box-shadow:0 3px 2px -2px hsla(0,0%,78%,.15);display:flex;flex-shrink:0;justify-content:space-between;padding:.625rem}.header .cur-file-info{display:flex;margin-left:.5rem}.header .info-item{align-items:center;display:flex;font-size:1.2rem;font-weight:700;justify-content:center;margin-right:.5rem}.header .file-copywriting{color:#999;font-size:1rem;font-weight:400;margin-left:.5rem}.header .file-feature{background-color:#fbcb09;color:#fff;font-size:1.8rem;height:2.9375rem;width:2.9375rem}.header .file-operation-btn{margin-right:.25rem}.review{padding:0}.review .cur-file-info{margin:0}.review .file-feature{font-size:3rem;height:4.1875rem;width:4.1875rem}.review-state{border:1px solid transparent;border-radius:3px;margin:auto .5rem;position:relative}.review-state-finished{background-color:#dff1cc;border-color:#d2ecb8;color:#316100}.review-state-closed{background-color:#f5d2d2;border-color:#f1c1c0;color:#6b1110}.review-state-closed:focus,.review-state-finished:focus{box-shadow:0 0 0 0}img:not([src]),img[src=""]{opacity:0}.cur-view-path.draft-review-nav,.cur-view-path.share-upload-nav{padding:0 1rem}.cur-view-container .fa-star.fas{color:#999}.path-container{align-items:center;display:flex;max-width:80%;word-break:keep-all}.path-container a,.path-container span{flex-shrink:1;max-height:50px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.path-container span:first-child,.path-container span:last-child{flex-shrink:0}.path-container span.path-file-name,.path-container span.path-repo-name{flex-shrink:1}.image-file-view{position:relative;text-align:center}.image-file-view:before{content:" ";display:inline-block;font-size:0;height:100%;line-height:0;vertical-align:middle}#image-view{background:#fff;border:1px solid #eee;font-size:0;height:auto;line-height:0;max-height:calc(100% - 4px);max-width:calc(100% - 4px);padding:1px;width:auto}#img-next,#img-prev{background:#fff;border-radius:100%;color:#888;height:50px;line-height:50px;position:absolute;text-decoration:none;top:48%;width:50px}#img-prev{left:15px}#img-next{right:15px}#img-next:hover,#img-prev:hover{color:#333}.svg-file-view{position:relative;text-align:center}.svg-file-view:before{content:" ";display:inline-block;font-size:0;height:100%;line-height:0;vertical-align:middle}#svg-view{max-height:100%;max-width:100%}.pdf-file-view{overflow:hidden;position:relative}.pdf-file-view.file-view-content{border:0}.sf-hide{height:0;overflow:hidden}#mainContainer,#outerContainer,#viewerContainer{bottom:0;left:0;position:absolute;right:0;top:0}#viewerContainer{margin-bottom:33px;overflow:auto;padding:10px 0 0}#viewerContainer:focus{outline:none}.pdfViewer .page{background:#fff;border:none;box-shadow:0 0 6px #ccc;margin:0 auto 10px;position:relative}.page .loading-icon{left:50%;position:absolute;top:50%}#toolbarViewerMiddle{left:auto;right:0;-webkit-transform:none;transform:none}select#scaleSelect{background:#fff;font-size:12px;height:24px}#scaleSelectContainer:after{top:4px}#errorWrapper{background:#ff6e6e;color:#0c0c0d;padding:3px 6px}#errorWrapper,.toolbar{left:0;position:absolute;right:0;z-index:998}.toolbar{bottom:0}#toolbarContainer{border-top:1px solid #c9c9c9;box-shadow:none;height:auto}#loadingBar{background:transparent;border:0;height:auto;position:fixed;top:50%;width:auto}input#pageNumber{font-size:12px;height:20px;margin:0 0 0 9px;padding:0 5px}#numPages.toolbarLabel{margin:0;padding:0 7px}#sidebarContainer{background:#fff;border-top:none;bottom:0;position:absolute;top:0}#toolbarSidebar{background:#fff;height:auto}#thumbnailView{padding:0;width:100%}#thumbnails-header .title{font-size:1rem}#thumbnails-header .sf2-icon-x3{font-family:seafile-font2}#thumbnails-header .close-thumbnail-panel{color:#999;font-size:1rem}#thumbnails-header .close-thumbnail-panel:hover{color:#555}#thumbnailView .thumbnail{border:none;border-radius:0;border-radius:initial;float:none;height:auto;margin:0 1px 0 0;max-height:none;max-width:none;padding:10px 0;text-align:center;width:auto}#thumbnailView .thumbnail.selected{background:#f0f0f0}#thumbnailView .thumbnail .thumbnail-page-number{bottom:0;color:#999;font-size:.875rem;position:absolute;right:100%}#thumbnailView .thumbnail .thumbnailImage{border:1px solid #ddd;border-radius:3px}#thumbnailView .thumbnail.selected .thumbnailImage{border:2px solid #ff9800}#sidebarContent{inset-block:51.5px 0}.splitToolbarButton>.toolbarButton{float:none}#overlayContainer{background-color:rgba(0,0,0,.2);display:table;height:100%;position:absolute;width:100%;z-index:999}.dirent-info .img .thumbnail{border:0;border-radius:0;float:none;height:auto;margin:0;padding:0;width:auto}@media print{#wrapper{display:none}}.text-file-view .cm-editor{border:1px solid #ccc;box-shadow:0 0 6px #ccc;height:auto;margin:0 auto;max-width:950px;min-height:300px;width:calc(100% - 40px)}.text-file-view .cm-editor.cm-focused{outline:none}.text-file-view .cm-gutter,.text-file-view .cm-scroll{min-height:300px}.text-file-view{overflow:auto}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{height:100%;left:0;position:absolute;top:0;width:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;font-style:normal;font-weight:400;src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABDkAAsAAAAAG6gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV3hY21hcAAAAYQAAADaAAADPv749/pnbHlmAAACYAAAC3AAABHQZg6OcWhlYWQAAA3QAAAAKwAAADYZw251aGhlYQAADfwAAAAdAAAAJA+RCLFobXR4AAAOHAAAABMAAACM744AAGxvY2EAAA4wAAAASAAAAEhF6kqubWF4cAAADngAAAAfAAAAIAE0AIFuYW1lAAAOmAAAASUAAAIK1cf1oHBvc3QAAA/AAAABJAAAAdPExYuNeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS7wTiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGJHcRdyA4RZgQRADK3CxEAAHic7dFZbsMgAEXRS0ycyZnnOeG7y+qC8pU1dHusIOXxuoxaOlwZYWQB0Aea4quIEN4E9LzKbKjzDeM6H/mua6Lmc/p8yhg0lvdYx15ZG8uOLQOGjMp3EzqmzJizYMmKNRu27Nhz4MiJMxeu3Ljz4Ekqm7T8P52G8PP3lnTOVk++Z6iN6QZzNN1F7ptuN7eGOjDUoaGODHVsuvU8MdTO9Hd5aqgzQ50b6sJQl4a6MtS1oW4MdWuoO0PdG+rBUI+GejLUs6FeDPVqqDdDvRvqw1CfhpqM9At0iFLaAAB4nJ1YDXBTVRZ+5/22TUlJ8we0pHlJm7RJf5O8F2j6EymlSPkpxaL8U2xpa3DKj0CBhc2IW4eWKSokIoLsuMqssM64f+jA4HSdWXXXscBq67IOs3FXZ1ZYWVyRFdo899yXtIBQZ90k7717zz3v3HPPOfd854YCCj9cL9dL0RQFOqCbGJnrHb5EayiKIWN8iA/hWBblo6hUWm8TtCDwE80WMJus/irwyxOdxeB0MDb14VNJHnXYoLLSl6FfCUYO9nYPTA8Epg9090LprfbBbZ2hY0UlJUXHQp3/vtWkS6EBv8+rPMq5u9692f/dNxJNiqwC1xPE9TCUgCsSdQWgE3XQD25lkG4CN2xmTcOXWBOyser6RN6KnGbKSbmQ3+d0OI1m2W8QzLLkI2sykrWAgJJEtA8vGGW/2Q+CmT3n8zS9wZwu2DCvtuZKZN3xkrLh36yCZuUomQSqGpY8t/25VfHVhw8z4ebGBtfLb0ya9PCaDc+8dGTvk2dsh6z7WzvowlXKUSWo9MJ15a3KrEP2loOr2Ojhw6iW6hf2BDdEccQvZGpaAy7YovSwq8kr7HGllxpd71rkS6G0Sf11sl9OvMK1+jwPPODxjUwkOim9CU3ix1wNjXDfmJSEn618Bs6lpWwUpU+8PCqLMY650zjq8VhCIP17NEKTx3eaLL+s5Pi6yJWaWjTHLR1jYzPSV9VF/6Ojdb/1kO3Mk3uhHC0x6gc1BjlKQ+nQFxTYdaJkZ7ySVxLBbhR1dsboNXp1tCYKW2LRaEzpYcIx2BKNxaL0ZaUnSqfFoiNhHKR/GkX6PWUSAaJelQaqZL1EpoHNsajSEyPSoJ9IjhIxTdjHLmwZvhRDOiFTY/YeQnvrVZmiTQtGncECXtFTBZLOVwwMRgoXHAkXzMzPn1nAJJ8jYSbMDaqN2waGLzNhih/bZynUBMpIWSg7VYi7DRx2m8ALkIdRCJwI6ArJx2EI8kaDWeTQKeAFk9fjl/1AvwktjQ1P7NjyMGQyfd4vjipX6M/i52D7Cq80kqlcxEcGXRr/FEcgs0u5uGgB4VWuMFfpdn2Re6Hi3PqzmxWKsz6+ae2Pn9hXXw/fqM859UiGC0oKYYILJBqJrsn1Z1E5qOs9rQCiUQRREjm8yJcbHF5cUJufX1vAHlefw0XgUoboS3ETfQlTxBC4SOtuE8VPRJTBSCQSjZCpk7Gqzu+masaZ2y7Zjehho4F3g82BNDkAHpORG4+OCS+f6JTPmtRn/PH1kch6d04sp7AQb25aQ/pqUyXeQ8vrebG8OYQdXOQ+585u0sdW9rqalzRURiJ+9F4MweRFrKUjl1GUYhH1A27WOHw5cTFSFPMo9EeUIGnQTZHIaJ7AHLaOKsOODaNF9jkBjYG2QEsQ2xjMUAx2bBEbeTBWMHwskBjngq56S/yfgkBnWBa4K9sqKtq2t1UI8S9He5XuBRbawAdatrQEAi30Aks2+LM8WeCbalVZkWNylvJ+dqJnzVb+OHlSoKW8nPCP7Rd+CcZ2DdWAGqJ2CBFOphgywFFCFBNtfAbGtNPBCwxvygHeYMZMY9ZboBqwq/pVrsbgN5tkv152ODlbMfiqwGMBgxa4Exz3QhovRIUp6acqZmQzRq0ypDXS2TPLT02YIkQETnOE445oOGxOmXAqUJNNG7XgupMjPq2ua9asrj5yY/yuKteO1Kx0YNJTufrirLe1mZnat7OL6rnUdCWenpW6I8mAnbsY8KWs1PuSovCW9A/Z25PQ24a7cNOqgmTkLmBMgh4THgc4b9k2IVv1/g/F5nGljwPLfOgHAzJzh45V/4+WenTzmMtR5Z7us2Tys909UHqrPY7KbckoxRvRHhmVc3cJGE97uml0R1S0jdULVl7EvZtDFVBF35N9cEdjpgmAiOlFZ+Dtoh93+D3zzHr8RRNZQhnCNMNbcegOvpEwZoL+06cJQ07h+th3fZ/7PVbVC6ngTAV/KoLFuO6+2KFcU651gEb5ugPSIb1D+Xp8V4+k3sEIGnw5mYe4If4k1lFYr6SCzmM2EQ8iWtmwjnBI9kTwe1TlfAmXh7H02by9fW2gsjKwtv0aaURKil4OdV7rDL1MXIFNrhdxohcZXYTnq47WisrKitaObbf5+yvkLi5J6lCNZZ+B6GC38VNBZBDidSS/+mSvh6s+srgC8pyKMvDtt+de3c9fU76ZPfuM8ud4Kv0fyP/LqfepMT/3oZxSqpZaTa1DaQYLY8TFsHYbWYsPoRhRWfL5eSSQbhUGgGC3YLbVMk6PitTFNGpAsNrC6D1VNBKgBHMejaiuRWEWGgsSDBTJjqWIl8kJLlsaLJ2tXDr6xGfT85bM2Q06a46x2HTgvdnV8z5YDy/27J4zt6x2VtkzjoYpkq36kaBr4eQSg7tyiVweWubXZugtadl58ydapfbORfKsDTuZ0OBgx4cfdjCf5tbWNITnL120fdOi1RV1C3uKGzNdwYLcMvZ3BxoPyTOCD1XvXTp7U10gWCVmTV9b3r2z0SkGWovb2hp9I89O8a2smlyaO8muMU+dRmtzp60IzAoFpjLr1n388boLyf0dRvxhsHZ0qbWqDkwqvvpkj4l0fY6EIXRi5sQSrAvsVYwXRy4qJ2EVtD1AN7a0HWth9ymvL1xc3WTUKK/TAHA/bXDVtVWfOMfuGxGZv4Ln/jVr9jc3j1yMv0tndmyt9Vq88Y9gH1wtLX3KWjot5++jWHgAoZZkQ14wGQ20Fli71UmKJAy4xKMSTGbVdybW7FDDAut9XpD5AzWrYO7zQ8qffqF8+Ynd/clrHcdyxGy3a/3+mfNnzC/cBsveTjnTvXf1o6vzOlZw7WtqtdmPK/Errz/6NNtD72zmNOZfbmYdTGHfoofqI79Oc+R2n1lrnL6pOm0Up7kwxhTW12Amm7WYkXR2qYrF2AmgmbAsxZjwy1xpg/m1Je2vrp8v/nz2xpmlBg4E9hrMU341wVpTOh/OfmGvAnra8q6uctr60ZQHV3Q+WMQJykMj8ZsWn2QBOmmHMB+m5pDIpTFonYigiaKAhGEiAHF7EliVnQkjoLVIMPtJpBKHYd3A8GYH9jJzrWwmHx5Qjp7vDAX0suGRym1vtm/9W1/HyR8vczfMs6Sk8DSv855/5dlX9oQq52hT8syyp2rx5Id17IAyAM3wIjQPMOHzytEB64q6D5zT91yNbnx3V/nqnd017S9Y0605k3izoXLpsxde2n38yoOV9s1LcjwzNjbdX6asnBVaBj/6/DwKwPkpcqbDG7BnsXoSqWnUAmottYF6jMSdVyYZh3zVXCjwTiwwHH6sGuRiEHQGzuRX6whZkp123oy1BWE2mEfJ/tvIRtM4ZM5bDXiMsPMaAKOTyc5uL57rqyyc5y5JE5pm1i2S2iUX0CcaQ6lC6Zog7JqSqZmYlosl2K6pwNA84zRnQW6SaALYZQGW5lhCtU/W34N6o+bKfZ8cf3/Cl/+iTX3wBzpOY4mRkeNf3rptycGSshQWgGbYt5jFc2e0+DglIrwl6DVWQ7BuwaJ3Xk1J4VL5urnLl/Wf+gHU/hZoZdKNym6lG+I34FaNeZKcSpJIo2IeCVvpdsDGfKvzJnAwmeD37Ow65ZWwSowpgwX5T69s/rB55dP5BcpgDKFV8p7q2sn/1uc93bVzT/w6UrCqDTWvfCq/oCD/qZXNoUj8BL5Kp6GU017frfNXkAtiiyf/SOCEeLqnd8R/Ql9GlCRfctS6k5chvIBuQ1zCCjoCHL2DHNHIXxMJ3kQeO8lbsUXONeSfA5EjcG6/E+KdhN4bP04vBhdi883+BFBzQbxFbvZzQeY9LNBZc0FNfn5NwfDn6rCTnTw6R8o+gfpf5hCom33cRuiTlss3KHmZjD+BPN+5gXuA2ziS/Q73mLxUkpbKN/eqwz5uK0X9F3h2d1V4nGNgZGBgAOJd776+iue3+crAzc4AAje5Bfcg0xz9YHEOBiYQBQA8FQlFAHicY2BkYGBnAAGOPgaG//85+hkYGVCBMgBGGwNYAAAAeJxjYGBgYB8EmKOPgQEAQ04BfgAAAAAAAA4AaAB+AMwA4AECAUIBbAGYAcICGAJYArQC4AMwA7AD3gQwBJYE3AUkBWYFigYgBmYGtAbqB1gIEghYCG4IhAi2COh4nGNgZGBgUGYoZWBnAAEmIOYCQgaG/2A+AwAYCQG2AHicXZBNaoNAGIZfE5PQCKFQ2lUps2oXBfOzzAESyDKBQJdGR2NQR3QSSE/QE/QEPUUPUHqsvsrXjTMw83zPvPMNCuAWP3DQDAejdm1GjzwS7pMmwi75XngAD4/CQ/oX4TFe4Qt7uMMbOzjuDc0EmXCP/C7cJ38Iu+RP4QEe8CU8pP8WHmOPX2EPz87TPo202ey2OjlnQSXV/6arOjWFmvszMWtd6CqwOlKHq6ovycLaWMWVydXKFFZnmVFlZU46tP7R2nI5ncbi/dDkfDtFBA2DDXbYkhKc+V0Bqs5Zt9JM1HQGBRTm/EezTmZNKtpcAMs9Yu6AK9caF76zoLWIWcfMGOSkVduvSWechqZsz040Ib2PY3urxBJTzriT95lipz+TN1fmAAAAeJxtkMl2wjAMRfOAhABlKm2h80C3+ajgCKKDY6cegP59TYBzukAL+z1Zsq8ctaJTTKPrsUQLbXQQI0EXKXroY4AbDDHCGBNMcYsZ7nCPB8yxwCOe8IwXvOIN7/jAJ76wxHfUqWX+OzgumWAjJMV17i0Ndlr6irLKO+qftdT7i6y4uFSUvCknay+lFYZIZaQcmfH/xIFdYn98bqhra1aKTM/6lWMnyaYirx1rFUQZFBkb2zJUtoXeJCeg0WnLtHeSFc3OtrnozNwqi0TkSpBMDB1nSde5oJXW23hTS2/T0LilglXX7dmFVxLnq5U0vYATHFk3zX3BOisoQHNDFDeZnqKDy9hRNawN7Vh727hFzcJ5c8TILrKZfH7tIPxAFP0BpLeJPA==) format("woff")}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:"\f101"}.vjs-icon-play-circle{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-play-circle:before{content:"\f102"}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:"\f103"}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:"\f104"}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:"\f105"}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:"\f106"}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:"\f107"}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:"\f108"}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-style:normal;font-weight:400}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:"\f109"}.vjs-icon-square{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-square:before{content:"\f10a"}.vjs-icon-spinner{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-spinner:before{content:"\f10b"}.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:"\f10c"}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:"\f10d"}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:"\f10e"}.vjs-icon-share{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-share:before{content:"\f10f"}.vjs-icon-cog{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-cog:before{content:"\f110"}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle,.vjs-seek-to-live-control .vjs-icon-placeholder{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before,.vjs-seek-to-live-control .vjs-icon-placeholder:before{content:"\f111"}.vjs-icon-circle-outline{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-circle-outline:before{content:"\f112"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-circle-inner-circle:before{content:"\f113"}.vjs-icon-hd{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-hd:before{content:"\f114"}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:"\f115"}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:"\f116"}.vjs-icon-facebook{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-facebook:before{content:"\f117"}.vjs-icon-gplus{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-gplus:before{content:"\f118"}.vjs-icon-linkedin{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-linkedin:before{content:"\f119"}.vjs-icon-twitter{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-twitter:before{content:"\f11a"}.vjs-icon-tumblr{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-tumblr:before{content:"\f11b"}.vjs-icon-pinterest{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-pinterest:before{content:"\f11c"}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:"\f11d"}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:"\f11e"}.vjs-icon-next-item{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-next-item:before{content:"\f11f"}.vjs-icon-previous-item{font-family:VideoJS;font-style:normal;font-weight:400}.vjs-icon-previous-item:before{content:"\f120"}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-enter{font-family:VideoJS;font-style:normal;font-weight:400}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-enter:before{content:"\f121"}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-exit{font-family:VideoJS;font-style:normal;font-weight:400}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-exit:before{content:"\f122"}.video-js{background-color:#000;box-sizing:border-box;color:#fff;display:block;font-family:Arial,Helvetica,sans-serif;font-size:10px;font-style:normal;font-weight:400;line-height:1;padding:0;position:relative;vertical-align:top;word-break:normal}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{height:100%!important;width:100%!important}.video-js[tabindex="-1"]{outline:none}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin:0}.video-js.vjs-1-1,.video-js.vjs-16-9,.video-js.vjs-4-3,.video-js.vjs-9-16,.video-js.vjs-fluid{max-width:100%;width:100%}.video-js.vjs-1-1:not(.vjs-audio-only-mode),.video-js.vjs-16-9:not(.vjs-audio-only-mode),.video-js.vjs-4-3:not(.vjs-audio-only-mode),.video-js.vjs-9-16:not(.vjs-audio-only-mode),.video-js.vjs-fluid:not(.vjs-audio-only-mode){height:0}.video-js.vjs-16-9:not(.vjs-audio-only-mode){padding-top:56.25%}.video-js.vjs-4-3:not(.vjs-audio-only-mode){padding-top:75%}.video-js.vjs-9-16:not(.vjs-audio-only-mode){padding-top:177.7777777778%}.video-js.vjs-1-1:not(.vjs-audio-only-mode){padding-top:100%}.video-js .vjs-tech,.video-js.vjs-fill:not(.vjs-audio-only-mode){height:100%;width:100%}.video-js .vjs-tech{left:0;position:absolute;top:0}.video-js.vjs-audio-only-mode .vjs-tech{display:none}body.vjs-full-window{height:100%;margin:0;padding:0}.vjs-full-window .video-js.vjs-fullscreen{bottom:0;left:0;overflow:hidden;position:fixed;right:0;top:0;z-index:1000}.video-js.vjs-fullscreen:not(.vjs-ios-native-fs){height:100%!important;padding-top:0!important;width:100%!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{cursor:default;opacity:.5}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1!important;visibility:visible!important}.vjs-no-js{background-color:#000;color:#fff;font-family:Arial,Helvetica,sans-serif;font-size:18px;height:150px;margin:0 auto;padding:20px;text-align:center;width:300px}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{background-color:#2b333f;background-color:rgba(43,51,63,.7);border:.06666em solid #fff;border-radius:.3em;cursor:pointer;display:block;font-size:3em;height:1.63332em;left:10px;line-height:1.5em;opacity:1;padding:0;position:absolute;top:10px;transition:all .4s;width:3em}.vjs-big-play-centered .vjs-big-play-button{left:50%;margin-left:-1.5em;margin-top:-.81666em;top:50%}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{background-color:#73859f;background-color:rgba(115,133,159,.5);border-color:#fff;transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button{display:block}.video-js button{-webkit-appearance:none;appearance:none;background:none;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;text-decoration:none;text-transform:none;transition:none}.vjs-control .vjs-button{height:100%;width:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:linear-gradient(180deg,rgba(0,0,0,.8),hsla(0,0%,100%,0));overflow:auto}.video-js .vjs-modal-dialog>*{box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;font-family:Arial,Helvetica,sans-serif;margin:0;overflow:auto;padding:0}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{font-size:1.2em;line-height:1.4em;list-style:none;margin:0;padding:.2em 0;text-align:center;text-transform:lowercase}.js-focus-visible .vjs-menu li.vjs-menu-item:hover,.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:rgba(115,133,159,.5)}.js-focus-visible .vjs-menu li.vjs-selected:hover,.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.js-focus-visible .vjs-menu :not(.vjs-selected):focus:not(.focus-visible),.video-js .vjs-menu :not(.vjs-selected):focus:not(:focus-visible){background:none}.vjs-menu li.vjs-menu-title{cursor:default;font-size:1em;font-weight:700;line-height:2em;margin:0 0 .3em;padding:0;text-align:center;text-transform:uppercase}.vjs-menu-button-popup .vjs-menu{border-top-color:rgba(43,51,63,.7);bottom:0;display:none;height:0;left:-3em;margin-bottom:1.5em;position:absolute;width:10em}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);bottom:1.5em;max-height:15em;position:absolute;width:100%}.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:5em}.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:10em}.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:14em}.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{overflow:hidden;transition:all .4s}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.vjs-menu-button-inline .vjs-menu{height:100%;left:4em;margin:0;opacity:0;padding:0;position:absolute;top:0;transition:all .4s;width:auto}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{height:100%;margin:0;overflow:hidden;width:auto}.video-js .vjs-control-bar{background-color:#2b333f;background-color:rgba(43,51,63,.7);bottom:0;display:none;height:3em;left:0;position:absolute;right:0;width:100%}.vjs-audio-only-mode .vjs-control-bar,.vjs-has-started .vjs-control-bar{display:flex;opacity:1;transition:visibility .1s,opacity .1s;visibility:visible}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:0;pointer-events:none;transition:visibility 1s,opacity 1s;visibility:visible}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio-only-mode.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar,.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;pointer-events:auto;visibility:visible}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{flex:none;height:100%;margin:0;padding:0;position:relative;text-align:center;width:4em}.video-js .vjs-control.vjs-visible-text{padding-left:1em;padding-right:1em;width:auto}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.vjs-button>.vjs-icon-placeholder{display:block}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js :not(.vjs-visible-text)>.vjs-control-text{clip:rect(0 0 0 0);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{align-items:center;cursor:pointer;display:flex;flex:auto;min-width:4em;touch-action:none}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-liveui .vjs-progress-control{align-items:center;display:flex}.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-holder{flex:auto;height:.3em;transition:all .2s}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.6666666667em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{display:block;height:100%;margin:0;padding:0;position:absolute;width:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;top:-.3333333333em;z-index:1}.video-js .vjs-load-progress{background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:hsla(0,0%,100%,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{background-color:#000;display:none;height:100%;position:absolute;width:1px;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{opacity:0;transition:visibility 1s,opacity 1s;visibility:hidden}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-time-tooltip{background-color:#000;background-color:rgba(0,0,0,.8);color:#fff}.video-js .vjs-slider{-webkit-touch-callout:none;background-color:#73859f;background-color:rgba(115,133,159,.5);cursor:pointer;margin:0 .45em;padding:0;position:relative;-webkit-user-select:none;-ms-user-select:none;user-select:none}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{box-shadow:0 0 1em #fff;text-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;flex:none}.video-js .vjs-volume-control{cursor:pointer;display:flex;margin-right:1em}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{height:1px;margin-left:-1px;opacity:0;visibility:visible;width:1px}.video-js .vjs-volume-panel{transition:width 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control{opacity:1;position:relative;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s;visibility:visible}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal{height:3em;margin-right:0;width:5em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical{left:-3.5em;transition:left 0s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active{transition:width .1s;width:10em}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only{width:4em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;left:-3000em;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s;width:3em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{height:3em;opacity:1;position:relative;transition:none;visibility:visible;width:5em}.video-js.vjs-no-flex .vjs-volume-control.vjs-volume-vertical,.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{bottom:3em;left:.5em;position:absolute}.video-js .vjs-volume-panel{display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{height:.3em;width:5em}.vjs-volume-bar.vjs-slider-vertical{height:5em;margin:1.35em auto;width:.3em}.video-js .vjs-volume-level{background-color:#fff;bottom:0;left:0;position:absolute}.video-js .vjs-volume-level:before{font-size:.9em;position:absolute;z-index:1}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{left:-.3em;top:-.5em;z-index:1}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{right:-.5em;top:-.3em}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{background-color:#2b333f;background-color:rgba(43,51,63,.7);bottom:8em;height:8em;width:3em}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.video-js .vjs-volume-tooltip{background-color:#fff;background-color:hsla(0,0%,100%,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-volume-control:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-control:hover .vjs-volume-tooltip{display:block;font-size:1em;visibility:visible}.video-js .vjs-volume-vertical:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-vertical:hover .vjs-volume-tooltip{left:1em;top:-12px}.video-js .vjs-volume-control.disabled:hover .vjs-volume-tooltip{font-size:1em}.video-js .vjs-volume-control .vjs-mouse-display{background-color:#000;display:none;height:1px;position:absolute;width:100%;z-index:1}.video-js .vjs-volume-horizontal .vjs-mouse-display{height:100%;width:1px}.vjs-no-flex .vjs-volume-control .vjs-mouse-display{z-index:0}.video-js .vjs-volume-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-volume-control .vjs-mouse-display{opacity:0;transition:visibility 1s,opacity 1s;visibility:hidden}.video-js.vjs-user-inactive.vjs-no-flex .vjs-volume-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-volume-tooltip{background-color:#000;background-color:rgba(0,0,0,.8);color:#fff}.vjs-poster{background-color:#000;background-position:50% 50%;background-repeat:no-repeat;background-size:contain;bottom:0;cursor:pointer;display:inline-block;height:100%;left:0;margin:0;padding:0;position:absolute;right:0;top:0;vertical-align:middle}.vjs-has-started .vjs-poster,.vjs-using-native-controls .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster,.vjs-has-started.vjs-audio-poster-mode .vjs-poster{display:block}.video-js .vjs-live-control{align-items:flex-start;display:flex;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;text-align:left;width:auto}.video-js.vjs-liveui .vjs-live-control,.video-js:not(.vjs-live) .vjs-live-control{display:none}.video-js .vjs-seek-to-live-control{align-items:center;cursor:pointer;display:inline-flex;flex:none;font-size:1em;height:100%;line-height:3em;min-width:4em;padding-left:.5em;padding-right:.5em;width:auto}.vjs-no-flex .vjs-seek-to-live-control{display:table-cell;text-align:left;width:auto}.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control,.video-js:not(.vjs-live) .vjs-seek-to-live-control{display:none}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{cursor:auto}.vjs-seek-to-live-control .vjs-icon-placeholder{color:#888;margin-right:.5em}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder{color:red}.video-js .vjs-time-control{flex:none;font-size:1em;line-height:3em;min-width:2em;padding-left:1em;padding-right:1em;width:auto}.video-js .vjs-current-time,.video-js .vjs-duration,.vjs-live .vjs-time-control,.vjs-no-flex .vjs-current-time,.vjs-no-flex .vjs-duration{display:none}.vjs-time-divider{display:none;line-height:3em}.vjs-live .vjs-time-divider{display:none}.video-js .vjs-play-control{cursor:pointer}.video-js .vjs-play-control .vjs-icon-placeholder{flex:none}.vjs-text-track-display{bottom:3em;left:0;pointer-events:none;position:absolute;right:0;top:0}.video-js.vjs-controls-disabled .vjs-text-track-display,.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;margin-bottom:.1em;text-align:center}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{-webkit-transform:translateY(-3em);transform:translateY(-3em)}.video-js.vjs-controls-disabled video::-webkit-media-text-track-display,.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{-webkit-transform:translateY(-1.5em);transform:translateY(-1.5em)}.video-js .vjs-picture-in-picture-control{cursor:pointer;flex:none}.video-js.vjs-audio-only-mode .vjs-picture-in-picture-control{display:none}.video-js .vjs-fullscreen-control{cursor:pointer;flex:none}.video-js.vjs-audio-only-mode .vjs-fullscreen-control{display:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{height:100%;left:0;position:absolute;top:0;width:100%}.vjs-playback-rate .vjs-playback-rate-value{font-size:1.5em;line-height:2;pointer-events:none;text-align:center}.vjs-playback-rate .vjs-menu{left:0;width:4em}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:"X";font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-align:center;text-shadow:.05em .05em .1em #000;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{background-clip:padding-box;border:6px solid rgba(43,51,63,.7);border-radius:25px;box-sizing:border-box;display:none;height:50px;left:50%;margin:-25px 0 0 -25px;opacity:.85;position:absolute;text-align:left;top:50%;visibility:hidden;width:50px}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{-webkit-animation:vjs-spinner-show 0s linear .3s forwards;animation:vjs-spinner-show 0s linear .3s forwards;display:block}.vjs-loading-spinner:after,.vjs-loading-spinner:before{border:inherit;border-color:#fff transparent transparent;border-radius:inherit;box-sizing:inherit;content:"";height:inherit;margin:-6px;opacity:1;position:absolute;width:inherit}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{-webkit-animation-delay:.44s;animation-delay:.44s;border-top-color:#fff}@keyframes vjs-spinner-show{to{visibility:visible}}@-webkit-keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes vjs-spinner-spin{to{-webkit-transform:rotate(1turn)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}to{border-top-color:#73859f}}@-webkit-keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}to{border-top-color:#73859f}}.video-js.vjs-audio-only-mode .vjs-captions-button{display:none}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js.vjs-audio-only-mode .vjs-descriptions-button{display:none}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{display:inline-block;margin-bottom:-.1em;vertical-align:middle}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{content:"";font-family:VideoJS;font-size:1.5em;line-height:inherit}.video-js.vjs-audio-only-mode .vjs-subs-caps-button{display:none}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder{display:inline-block;margin-bottom:-.1em;vertical-align:middle}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{content:" ";font-family:VideoJS;font-size:1.5em;line-height:inherit}.video-js.vjs-layout-small .vjs-current-time,.video-js.vjs-layout-small .vjs-duration,.video-js.vjs-layout-small .vjs-playback-rate,.video-js.vjs-layout-small .vjs-remaining-time,.video-js.vjs-layout-small .vjs-time-divider,.video-js.vjs-layout-small .vjs-volume-control,.video-js.vjs-layout-tiny .vjs-current-time,.video-js.vjs-layout-tiny .vjs-duration,.video-js.vjs-layout-tiny .vjs-playback-rate,.video-js.vjs-layout-tiny .vjs-remaining-time,.video-js.vjs-layout-tiny .vjs-time-divider,.video-js.vjs-layout-tiny .vjs-volume-control,.video-js.vjs-layout-x-small .vjs-current-time,.video-js.vjs-layout-x-small .vjs-duration,.video-js.vjs-layout-x-small .vjs-playback-rate,.video-js.vjs-layout-x-small .vjs-remaining-time,.video-js.vjs-layout-x-small .vjs-time-divider,.video-js.vjs-layout-x-small .vjs-volume-control{display:none}.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover{width:auto}.video-js.vjs-layout-tiny .vjs-progress-control,.video-js.vjs-layout-x-small .vjs-progress-control{display:none}.video-js.vjs-layout-x-small .vjs-custom-control-spacer{display:block;flex:auto}.video-js.vjs-layout-x-small.vjs-no-flex .vjs-custom-control-spacer{width:auto}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:rgba(43,51,63,.75);color:#fff;height:70%}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}@supports (display:grid){.vjs-text-track-settings .vjs-modal-dialog-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;padding:20px 24px 0}.vjs-track-settings-controls .vjs-default-button{margin-bottom:20px}.vjs-text-track-settings .vjs-track-settings-controls{grid-column:1/-1}.vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content{grid-template-columns:1fr}}.vjs-track-setting>select{margin-bottom:.5em;margin-right:1em}.vjs-text-track-settings fieldset{border:none;margin:5px;padding:3px}.vjs-text-track-settings fieldset span{display:inline-block}.vjs-text-track-settings fieldset span>select{max-width:7.3em}.vjs-text-track-settings legend{color:#fff;margin:0 0 5px}.vjs-text-track-settings .vjs-label{clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);border:0;display:block;height:1px;margin:0 0 5px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{background-image:linear-gradient(0deg,#fff 88%,#73859f);outline-style:solid;outline-width:medium}.vjs-track-settings-controls button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f);border-radius:2px;color:#2b333f;cursor:pointer}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}.vjs-resize-manager{border:none;height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1000}.js-focus-visible .video-js :focus:not(.focus-visible){outline:none}.video-js :focus:not(:focus-visible){outline:none}.video-js{max-height:100%;max-width:800px}.audio-file-view .video-js,.video-js{margin:0 auto;width:calc(100% - 40px)}.audio-file-view .video-js{height:3em;max-width:500px}.audio-file-view .video-js .vjs-fullscreen-control{display:none} \ No newline at end of file diff --git a/media/assets/frontend/static/css/draft.22c06bac.css b/media/assets/frontend/static/css/draft.22c06bac.css new file mode 100644 index 00000000000..f57b9bac2ff --- /dev/null +++ b/media/assets/frontend/static/css/draft.22c06bac.css @@ -0,0 +1 @@ +#wrapper{display:flex;height:100%;width:100%}.header .button-group{align-items:center;display:flex}.header .add-reviewer-btn,.header .common-list-btn{margin-right:.25em}.header .common-list-btn .common-list-btn-number{margin-left:.5em}.main .cur-view-container{background-color:#fafaf9;display:flex;flex-flow:row nowrap;height:100%;width:100%}.main .cur-view-container .cur-view-content{flex:auto;height:100%}.main .cur-view-right-part{flex-shrink:0;height:100%;position:relative;width:300px}.cur-file-info .file-info{display:block;padding-top:10px}.file-info .draft-link,.file-info .view-file-link{color:#1e1e1e;display:block;font-size:.6em;font-weight:400;text-decoration:underline}.file-info .file-review{color:#999;font-size:1rem;font-weight:400}.cur-file-info .last-modification{font-size:.8125rem}.seafile-toggle-diff{display:flex;margin-right:10px}.seafile-toggle-diff .custom-switch .custom-switch-indicator{border:1px solid #e9ecef}.seafile-toggle-diff .custom-switch-input:checked~.custom-switch-indicator{background-color:#f19645}.review-side-panel{background-color:#fff;border-left:1px solid #e6e6dd;height:100%}.review-side-panel-head{background-color:#fafaf9;border-bottom:1px solid #e5e5e5;font-weight:700;line-height:3em;text-align:center}.review-side-panel-body{height:100%;overflow-y:scroll;padding:1rem 1rem 3rem}.review-side-panel-body .dirent-table-container{padding-left:0}.dirent-table-container th{word-wrap:break-word;word-break:normal}.dirent-table-container td a:hover{text-decoration:underline}.review-side-panel-item{border-bottom:1px solid #e6e6dd;padding:1em 0}.review-side-panel-item:last-child{border:0}.review-side-panel-item .author-info,.review-side-panel-item .reviewer-info{align-items:center;display:flex}.review-side-panel-header{color:#666;display:flex;font-size:.8125rem;font-weight:700;justify-content:space-between;margin-bottom:2px}.review-side-panel-item i{color:#c8c8c8;font-size:1rem;margin:5px 5px 0 0}.review-side-panel-item i:hover{color:#a4a4a4;cursor:pointer}.review-side-panel-avatar{height:1.5rem;margin-right:10px;width:1.5rem}.review-side-panel-item .author-name,.review-side-panel-item .reviewer-name{height:2rem;line-height:2rem}.markdown-viewer-render-content{position:relative}.markdown-viewer-render-content tr:nth-child(2n){background-color:#fff}.review-side-panel-nav{margin:0}.review-side-panel-nav .nav-item{padding-top:4px;width:33.3%}.review-side-panel-nav .nav-item .nav-link{margin:0 auto}.review-side-panel-nav .nav-item .nav-link.active{border-color:#f19645;color:#f19645}.review-side-panel-nav .nav-item i{font-size:1rem;padding:0 8px;width:1rem}.review-side-panel .tab-content{height:calc(100% - 38px)}.review-side-panel .tab-content .tab-pane{height:100%}@media (max-width:768px){.markdown-viewer-render-content{margin:0}.header .file-operation-btn{padding:.1rem .25rem}}@media (max-width:992px){.dirent-table-container td,.review-side-panel{font-size:12px!important}} \ No newline at end of file diff --git a/media/assets/frontend/static/css/fileHistory.12927620.css b/media/assets/frontend/static/css/fileHistory.12927620.css new file mode 100644 index 00000000000..a728a2ca099 --- /dev/null +++ b/media/assets/frontend/static/css/fileHistory.12927620.css @@ -0,0 +1 @@ +.item-active{background-color:#fdc297!important;color:#fff}.item-active i{color:#fff}.history-list-item .history-info{flex:1 1;padding:0 .5rem}.history-list-item .history-operation{align-items:center;display:flex;justify-content:center;width:1.5rem}.history-info .time{color:#000}.history-info .owner{align-items:center;color:#888;display:flex;margin-top:.25rem}.owner .squire-icon{background-color:#549b5a;height:.5rem;margin-right:.25rem;width:.5rem}.history-body .dropdown-menu{min-width:8rem}.history-body .dropdown-menu a{color:#6e7687;text-decoration:none}.history-header{align-items:center;background-color:#f4f4f7;border-bottom:1px solid #e8e8e8;display:flex;font-size:1rem;justify-content:space-between;padding:.5rem 1rem}.file-history-header{background-color:#fff;height:50px}.history-header .title{font-size:1.25rem;line-height:1rem}.history-header .title .go-back{color:silver;margin-right:.75rem}.history-header .title .go-back:hover{color:#f93;text-decoration:none}.content-viewer{display:flex;flex:1 1;min-height:0}.content-viewer .sf-slate-viewer-scroll-container{background-color:#fafaf9;display:block;padding:20px 40px}.content-viewer .sf-slate-viewer-article-container .article{max-width:100%;width:100%}.panel-header{border-bottom:1px solid #e8e8e8;font-size:1rem;font-weight:400;height:36px;line-height:1.5;padding:.5rem 0;position:relative;text-align:center;width:100%}.history-body{display:flex;flex:1 1;height:500px;min-height:0;overflow:hidden}.history-list-container{flex:1 1;flex-direction:column;min-height:0;overflow:auto}.history-list-container .history-list-item{display:flex;flex:1 1;padding:5px 10px}.history-list-container .history-list-item:hover{background-color:#ffe7d5}.history-content .main-panel{flex:1 1 auto}.history-content .history-side-panel{background-color:#fff;border-left:1px solid #e5e5e5;display:flex;flex:0 0 auto;flex-direction:column;-webkit-user-select:none;-ms-user-select:none;user-select:none}.history-content .history-side-panel .history-side-panel-title{border-bottom:1px solid #e5e5e5;font-size:1rem;font-weight:bolder;height:50px;line-height:50px;padding:0 10px}@media (min-width:992px){.history-side-panel{width:260px}.history-content .main-panel{max-width:calc(100% - 260px)}}@media (max-width:991.8px){.history-content .main-panel{max-width:calc(100% - 190px)}}@media (max-width:768px){.history-content .main-panel{max-width:100%}.content-viewer .sf-slate-viewer-scroll-container{padding:20px}.content-viewer .sf-slate-viewer-article-container{margin:0;padding:0}.content-viewer .sf-slate-viewer-article-container .article{padding:20px}} \ No newline at end of file diff --git a/media/assets/frontend/static/css/fileHistoryOld.6d426e0b.css b/media/assets/frontend/static/css/fileHistoryOld.6d426e0b.css new file mode 100644 index 00000000000..af34e02a916 --- /dev/null +++ b/media/assets/frontend/static/css/fileHistoryOld.6d426e0b.css @@ -0,0 +1 @@ +.old-history-header{align-items:center;background-color:#f4f4f7;border-bottom:1px solid #e8e8e8;display:flex;font-size:1rem;justify-content:space-between;padding:.5rem 1rem}.old-history-main{display:inline!important;min-height:1px;overflow:auto;padding:16px 10% 0;position:relative}.old-history-main .go-back{color:#ccc;float:left;font-size:25px;margin-left:-3rem}.old-history-main .go-back:hover{color:#f93;text-decoration:none}.old-history-main .get-more-btn{background:#efefef;border:0;border-radius:2px;color:#777;padding:.5em 0;width:100%}.old-history-main .get-more-btn:hover{color:#444}.old-history-main p{color:grey;font-size:12px;margin-bottom:1rem;margin-top:0}.old-history-main h2{color:#222;font-size:1.5em;font-weight:700;line-height:1.5}.old-history-main .file-name{word-wrap:break-word;color:#ee8204}.old-history-main .commit-list{margin:8px 0 40px;width:100%}.old-history-main .commit-list .avatar{border-radius:2px;height:16px;vertical-align:middle;width:16px}.old-history-main .commit-list .username{color:#eb8205;font-weight:700;text-decoration:none;vertical-align:middle}.old-history-more-operation i{color:#999;cursor:pointer}.old-history-more-operation a:hover{text-decoration:none}.old-history-more-operation i:hover{color:#666}@media (max-width:768px){.old-history-main .go-back{margin-left:-2rem}} \ No newline at end of file diff --git a/media/assets/frontend/static/css/historyTrashFileView.14c233ee.css b/media/assets/frontend/static/css/historyTrashFileView.14c233ee.css new file mode 100644 index 00000000000..9ae7efc4a50 --- /dev/null +++ b/media/assets/frontend/static/css/historyTrashFileView.14c233ee.css @@ -0,0 +1 @@ +.file-view-content.md-content{background:#f4f4f4;border-right:none;display:flex;height:100%;padding:0;width:100%}.md-content .sf-slate-viewer-scroll-container .article{border:1px solid #ccc;box-shadow:0 0 6px #ccc;padding:70px 75px}.sdoc-file-view .sdoc-editor-container{background:transparent} \ No newline at end of file diff --git a/media/assets/frontend/static/css/markdownEditor.3110eb73.css b/media/assets/frontend/static/css/markdownEditor.3110eb73.css new file mode 100644 index 00000000000..8b7d2946931 --- /dev/null +++ b/media/assets/frontend/static/css/markdownEditor.3110eb73.css @@ -0,0 +1 @@ +.seafile-btn-view-review{align-items:center;display:flex}.seafile-btn-view-review .tag:hover{cursor:pointer}.topbar-btn-container{align-items:center;display:flex}.btn-new-draft,.seafile-btn-add-review{margin-right:10px}.collab-users-dropdown.dropdown{margin-right:6px}.btn-active[data-active=true]{color:#eb8205}.add-item-btn{align-items:center;background:#fff;border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top:1px solid #dedede;cursor:pointer;display:flex;font-size:14px;font-weight:500;height:30px;overflow:hidden;padding:0 10px;position:relative}.add-item-btn:hover{background-color:#f5f5f5}.add-item-btn .dtable-icon-add-table{font-size:12px;font-weight:600;margin-right:10px;-webkit-transform:none;transform:none}.add-item-btn .add-new-option{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag-list-container{list-style:none;max-height:15rem;overflow:auto}.add-tag-link{color:#666}.add-tag-link:hover{background:#f5f5f5;color:#444;text-decoration:none}.tag-list-item{height:2.5rem}.tag-list-item.hl{background:#f5f5f5}.tag-selected-icon{color:#999}.tag-delete-icon{color:#999;font-size:18px}.tag-delete-icon:hover{color:#444}.tag-dialog-back{color:#888;cursor:pointer;margin-right:10px}.tag-dialog-back:focus,.tag-dialog-back:hover{color:#444}.tag-color-option .colorinput-color:before{display:none}.tag-color-option .color-selected{opacity:0}.tag-color-option .colorinput-input:checked~.colorinput-color .color-selected{opacity:1}.tag-color-popover .popover{max-width:360px}.tag-color-popover .colorinput-color,.tag-color-popover .tag-color{height:20px;width:20px}.tag-color-popover .tag-color-option .colorinput-input:checked~.colorinput-color .color-selected{font-size:12px}.edit-filetag-popover .edit-filetag-popover-input{color:#212529;font-size:14px;height:30px;max-height:30px}.edit-filetag-popover .popover{padding:10px 10px 0;width:200px}.edit-filetag-popover .tag-list-container{padding:10px 0}.edit-filetag-popover .tag-not-found{opacity:.5}.edit-filetag-popover .tag-list-item{height:30px}.edit-filetag-popover .tag-item{align-items:center;border-radius:10px;display:flex;margin:.25rem 0;max-width:130px;padding:0 .5rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.edit-filetag-popover .tag-item .tag-name{color:#fff;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-filetag-popover .add-item-btn{margin:0 -10px}.dirent-table-container tr{border:none}.dirent-table-container td,.dirent-table-container th{border:none;padding:5px 3px}.dirent-table-container th{color:#9c9c9c;font-size:13px;font-weight:400;text-align:left}.dirent-table-container td{color:#333;font-size:14px;word-break:break-all}.dirent-table-container .file-tag-container th{list-style:none;padding-top:8px;vertical-align:top}.dirent-table-container .file-tag-container .tag-list{list-style:none}.file-related-files th{vertical-align:top}.file-related-files td i{padding:0}.file-related-files td ul{list-style:none;max-height:100px;overflow-x:hidden;overflow-y:scroll;text-overflow:ellipsis;white-space:nowrap}.file-related-files td ul li{margin-bottom:5px}.file-related-files ul li a,.list-related-file-table tr td a{color:#333}.list-related-file-body{max-height:500px;min-height:200px;overflow-y:scroll}.detail-container .tab-content{height:calc(100% - 73px)}.detail-container .nav-item .nav-link,.detail-container .nav-item .nav-link i{margin:0 auto}#root,body,html{height:100%;width:100%}#root{display:flex;flex-direction:column;min-height:0;min-width:0}.sf-md-viewer-topbar-first,.sf-md-viewer-topbar-first-narrow{align-items:center;background-color:#fff;border-bottom:1px solid #e5e5e5;box-shadow:0 3px 2px -2px hsla(0,0%,78%,.15);flex-shrink:0;padding:4px 10px}@media (max-width:768px){.sf-md-viewer-topbar-first{display:none!important}}@media (min-width:768px){.sf-md-viewer-topbar-first-narrow{display:none!important}}.topbar-file-info{display:inline-block;margin-left:8px;-webkit-user-select:text;-ms-user-select:text;user-select:text}.topbar-file-info .file-title{align-items:center;display:flex;font-size:1.2rem;font-weight:700}.topbar-file-info .file-title .iconfont{font-size:.875rem}.topbar-file-info .file-title .file-star{color:#999;cursor:pointer;font-size:.875rem;margin-left:.5rem;vertical-align:text-bottom}.topbar-file-info .file-title .file-star .star{color:#999}.topbar-file-info .file-state{font-size:.8125rem}.topbar-file-info .file-state .file-modifier-name{margin-right:.5rem}.topbar-file-info .file-state .file-modifier-savedraft{color:#888;margin-left:.5rem}.sf-md-viewer-content{display:flex;flex:1 1;min-height:0;min-width:0}*{margin:0;padding:0}html,input,textarea{background:#eee;font-family:Roboto,sans-serif;line-height:1.4}body{overflow-y:hidden}p{margin:0}:not(pre)>code{background-color:#eee;font-family:monospace;padding:3px}img{max-width:100%}img.active{box-shadow:0 0 0 2px blue}input{background:#fafafa;border:2px solid #ddd;box-sizing:border-box;font-size:.85em;padding:.5em;width:100%}input:focus{border-color:blue;outline:0}input[type=checkbox]{width:auto}a,a:hover{color:#eb8205}.lds-ripple{display:inline-block;height:64px;position:relative;width:64px}.lds-ripple div{-webkit-animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border:4px solid #eb8205;border-radius:50%;opacity:1;position:absolute}.lds-ripple div:nth-child(2){-webkit-animation-delay:-.5s;animation-delay:-.5s}@-webkit-keyframes lds-ripple{0%{height:0;left:28px;opacity:1;top:28px;width:0}to{height:58px;left:-1px;opacity:0;top:-1px;width:58px}}@keyframes lds-ripple{0%{height:0;left:28px;opacity:1;top:28px;width:0}to{height:58px;left:-1px;opacity:0;top:-1px;width:58px}}.empty-loading-page{height:100%;position:fixed;width:100%}.page-centered{left:50%;position:fixed;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)} \ No newline at end of file diff --git a/media/assets/frontend/static/css/orgAdmin.1ccd26d7.css b/media/assets/frontend/static/css/orgAdmin.1ccd26d7.css new file mode 100644 index 00000000000..a1a92dc419a --- /dev/null +++ b/media/assets/frontend/static/css/orgAdmin.1ccd26d7.css @@ -0,0 +1 @@ +.system-statistic-time-range{align-items:center;display:flex;font-size:13px;margin:15px 0 25px}.sys-stat-tool{color:#333;display:flex;font-size:13px}.system-statistic-item{border:1px solid #c5c5c5;cursor:pointer;padding:5px 10px}.sys-stat-tool .item-active,.system-statistic-item:hover{background:#efefef}.system-statistic-input-container{align-items:center;display:flex;margin-left:1rem}.system-statistic-input{height:31px;width:120px}.error-tip{color:red}.statistic-traffic-tab{color:#333;display:flex;font-size:13px;margin-top:10px}.statistic-traffic-tab .statistic-traffic-tab-item{border-bottom:2px solid transparent;color:#8a948f;cursor:pointer;margin-right:10px;padding:3px 0}.statistic-traffic-tab .statistic-traffic-tab-item.active,.statistic-traffic-tab .statistic-traffic-tab-item:hover{border-bottom:2px solid #eb8025;color:#eb8025}.statistic-reports-title{background:#f7f7f7;color:#222;margin-top:15px;padding:3px 10px}.statistic-reports-submit{margin-left:15px}.statistic-reports-wrapper{align-items:center;display:flex;margin-top:15px}.statistic-reports-input{height:30px;width:80px}.statistic-reports-tip{font-size:13px;padding:0 10px}.system-statistic-connect{line-height:1;padding:0 5px}.system-statistic-button{height:31px;margin-left:1rem}.rc-calendar table{table-layout:auto}.rc-calendar tbody tr{height:1.75rem}.web-setting-icon-btn{font-size:1rem;line-height:1.5;min-width:0}.web-setting-icon-btn-submit{color:green}.web-setting-icon-btn-cancel{color:#666}.web-setting-textarea{min-height:7rem}.web-setting-label{word-break:break-word}.paginator{font-size:14px;margin:10px 0;text-align:center}.cur-view-path.org-user-nav{padding:0 1rem}.cur-view-path.org-admin-user-nav{padding:0 16px 1px}.cur-view-path .operation-item{font-size:12px;height:24px;line-height:24px}.cur-view-container .no-group,.cur-view-container .no-libraty,.cur-view-container .no-member{color:#a4a4a4;margin:30px 0;text-align:center}.cur-view-path .sf-heading a{color:#eb8205}.cur-view-subcontainer{margin:10px}.cur-view-subcontainer table{margin:8px 0 40px}.org-departments>div{height:100%}.org-members .cur-view-content{padding-bottom:40px}.cur-view-path button:hover{cursor:pointer}.audit-unselect-item{background:#f2f2f2;border:1px solid #ccc;border-radius:2px;cursor:pointer;display:inline-block;font-size:14px;margin:10px 5px 0;padding:1px 8px}.audit-unselect-item:hover{background-color:#ddd}.no-deco,.no-deco:focus,.no-deco:hover{text-decoration:none}.cur-view-path .nav .nav-item a{padding:7px 10px} \ No newline at end of file diff --git a/media/assets/frontend/static/css/repoFolderTrash.69b56f7c.css b/media/assets/frontend/static/css/repoFolderTrash.69b56f7c.css new file mode 100644 index 00000000000..5250f70fcdf --- /dev/null +++ b/media/assets/frontend/static/css/repoFolderTrash.69b56f7c.css @@ -0,0 +1 @@ +body{overflow:hidden}#wrapper{height:100%}.top-header{background:#f4f4f7;border-bottom:1px solid #e8e8e8;flex-shrink:0;padding:.5rem 1rem}.go-back{color:silver;font-size:1.75rem;left:-40px;position:absolute;top:-5px}.op-bar{background:#f2f2f2;border-radius:2px;padding:9px 10px}.more{background:#efefef;border:0;color:#777}.more:hover{background:#dfdfdf;color:#000}.clean{border-color:#ccc;border-radius:2px;font-weight:400;height:30px;line-height:28px;min-width:55px;padding:0 .5rem} \ No newline at end of file diff --git a/media/assets/frontend/static/css/repoHistory.d2c893af.css b/media/assets/frontend/static/css/repoHistory.d2c893af.css new file mode 100644 index 00000000000..b3221888e64 --- /dev/null +++ b/media/assets/frontend/static/css/repoHistory.d2c893af.css @@ -0,0 +1 @@ +.commit-detail-item{list-style-type:none}body{overflow:hidden}#wrapper{height:100%}.top-header{background:#f4f4f7;border-bottom:1px solid #e8e8e8;flex-shrink:0;padding:.5rem 1rem}.details{color:#666;font-size:12px;margin-left:.25rem;text-decoration:underline}.commit-label{background:#eee;border-radius:3px;margin:0 2px;padding:1px 5px;white-space:nowrap}.go-back{color:silver;font-size:1.75rem;left:-40px;position:absolute;top:-5px} \ No newline at end of file diff --git a/media/assets/frontend/static/css/repoSnapshot.0ee3fb82.css b/media/assets/frontend/static/css/repoSnapshot.0ee3fb82.css new file mode 100644 index 00000000000..1a5662651b9 --- /dev/null +++ b/media/assets/frontend/static/css/repoSnapshot.0ee3fb82.css @@ -0,0 +1 @@ +body{overflow:hidden}#wrapper{height:100%}.top-header{background:#f4f4f7;border-bottom:1px solid #e8e8e8;flex-shrink:0;padding:.5rem 1rem}.go-back{color:silver;font-size:1.75rem;left:-40px;position:absolute;top:-5px}.op-bar{background:#f2f2f2;border-radius:2px;padding:9px 10px}.op-bar-btn{border-color:#ccc;border-radius:2px;font-weight:400;height:30px;line-height:28px;min-width:55px;padding:0 .5rem}.heading-commit-time{font-size:60%;font-weight:400} \ No newline at end of file diff --git a/media/assets/frontend/static/css/sdocFileHistory.e22b354f.css b/media/assets/frontend/static/css/sdocFileHistory.e22b354f.css new file mode 100644 index 00000000000..6656ac5f483 --- /dev/null +++ b/media/assets/frontend/static/css/sdocFileHistory.e22b354f.css @@ -0,0 +1 @@ +.go-back{color:silver;margin-right:.75rem}.go-back:hover{color:#f93;cursor:pointer}.item-active{background-color:#fdc297!important;color:#fff}.item-active i{color:#fff}.history-list-item .history-info{flex:1 1;padding:0 .5rem}.history-list-item .history-operation{align-items:center;display:flex;justify-content:center;width:1.5rem}.history-info .time{color:#000}.history-info .owner{align-items:center;color:#888;display:flex;margin-top:.25rem}.owner .squire-icon{background-color:#549b5a;height:.5rem;margin-right:.25rem;width:.5rem}.history-body .dropdown-menu{min-width:8rem}.history-body .dropdown-menu a{color:#6e7687;text-decoration:none}.sdoc-file-history .sdoc-file-history-container{flex:1 1;overflow-x:hidden}.sdoc-file-history .sdoc-file-history-header{background-color:#fff;border-bottom:1px solid #e5e5e5;height:50px}.sdoc-file-history .sdoc-file-history-header .sdoc-file-history-header-left{flex:1 1;font-size:1.25rem}.sdoc-file-history .sdoc-file-history-header .file-name{flex:1 1}.sdoc-file-history .sdoc-file-history-header .sdoc-file-history-header-right{height:100%}.sdoc-file-history .sdoc-file-history-header .sdoc-file-changes-container{border:1px solid #e5e5e5;border-radius:3px;height:32px}.sdoc-file-history .sdoc-file-history-header .sdoc-file-changes-divider{border-right:1px solid #e5e5e5;height:100%;width:1px}.sdoc-file-history .sdoc-file-history-header .sdoc-file-changes-last,.sdoc-file-history .sdoc-file-history-header .sdoc-file-changes-next{height:100%;padding:0 8px}.sdoc-file-history .sdoc-file-history-header .sdoc-file-changes-last .fas,.sdoc-file-history .sdoc-file-history-header .sdoc-file-changes-next .fas{color:#000;opacity:.5}.sdoc-file-history .sdoc-file-history-header .sdoc-file-changes-last:hover,.sdoc-file-history .sdoc-file-history-header .sdoc-file-changes-next:hover{background-color:#f5f5f5;cursor:pointer;opacity:.75}.sdoc-file-history .sdoc-file-history-header .sdoc-file-changes-last:hover .fas,.sdoc-file-history .sdoc-file-history-header .sdoc-file-changes-next:hover .fas{opacity:.75}.sdoc-file-history .sdoc-file-history-content{background-color:#f5f5f5;flex:1 1;min-height:0;overflow-y:scroll;padding:20px 40px}.sdoc-file-history .sdoc-file-history-content .sdoc-file-history-viewer{background-color:#fff;border:1px solid #e6e6dd;flex:1 1;min-height:120px;width:100%;word-break:break-word}.sdoc-file-history .sdoc-file-history-content .sdoc-scroll-container{overflow:hidden;position:relative!important;width:100%}.sdoc-file-history .sdoc-file-history-content .sdoc-article-container{margin-left:0!important;padding-bottom:0;padding-top:0;width:100%}.sdoc-file-history .sdoc-file-history-content .article{margin:0;width:100%}.sdoc-file-history .sdoc-file-history-panel{border-left:1px solid #e5e5e5;width:260px}.sdoc-file-history .sdoc-file-history-panel .sdoc-file-history-select-range{background-color:#fff;border-bottom:1px solid #e5e5e5;height:50px;padding:10px 18px}.sdoc-file-history .sdoc-file-history-panel .sdoc-file-history-select-range-title{font-size:1rem;font-weight:bolder;height:100%;line-height:29px;width:100%}.sdoc-file-history .sdoc-file-history-panel .sdoc-file-history-diff-switch{border-top:1px solid #e5e5e5;height:50px;padding:0 18px}.sdoc-file-history .sdoc-file-history-diff-switch .custom-switch{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding-left:0;width:100%}.sdoc-file-history .sdoc-file-history-diff-switch .custom-switch-description{flex:1 1;margin-left:0;padding-right:8px}.sdoc-file-history-versions{flex:1 1;flex-direction:column;min-height:0;overflow:auto}.sdoc-file-history-versions .history-list-item{border-bottom:1px solid #e5e5e5;display:flex;flex:1 1;padding:5px 10px}.sdoc-file-history-versions .history-list-item.history-month-title{padding:5px 16px}.sdoc-file-history-versions .history-list-item:last-child{border-bottom:none}.sdoc-file-history-versions .history-list-item:not(.item-active):hover{background-color:#f5f5f5;cursor:pointer}.sdoc-file-history-versions .history-list-item .history-operation{flex-shrink:0}.sdoc-file-history-versions .history-list-item .history-info{overflow:hidden}.sdoc-file-history-versions .history-list-item .history-info .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.sdoc-file-history-versions .history-list-item.item-active .history-info .name{color:#ff8000}.sdoc-file-history-versions .history-list-item .history-operation:hover{cursor:pointer}.sdoc-file-history-versions .history-list-item .history-operation a.fas{color:#888}.sdoc-file-history-versions .history-list-item .history-operation:hover a.fas{color:#333}.sdoc-file-history-versions .history-list-item.item-active{background-color:#ffecd9!important}.sdoc-file-history-versions .history-list-item.item-active .history-info .time{color:#ff8000}.history-info .owner{min-height:22.5px}.sdoc-file-history-versions .dropdown-menu{min-width:8rem}.history-content .main-panel{flex:1 1 auto}.history-content .history-side-panel{background-color:#fff;border-left:1px solid #e5e5e5;display:flex;flex:0 0 auto;flex-direction:column;-webkit-user-select:none;-ms-user-select:none;user-select:none}.history-content .history-side-panel .history-side-panel-title{background-color:#fafaf9;border-bottom:1px solid #e5e5e5;font-size:1rem;font-weight:bolder;height:50px;line-height:50px;padding:0 10px}.sdoc-file-history-versions .history-info .rename-container,.sdoc-file-history-versions .history-info .rename-container input{box-sizing:border-box;max-width:100%;min-width:100%;overflow:hidden;width:100%}.sdoc-file-history-versions .history-info .rename-container input:focus{box-shadow:none}.sdoc-file-history-versions .daily-history-detail-toggle-container{display:flex;flex-shrink:0;height:100%;justify-content:center;width:20px}.sdoc-file-history-versions .daily-history-detail-toggle-container .daily-history-detail-toggle{align-items:center;display:flex;height:20px;justify-content:center;width:20px}.sdoc-file-history-versions .daily-history-detail-no-more{height:20px;margin-right:14px;width:20px}.sdoc-file-history-versions .daily-history-detail-toggle .dropdown-toggle{color:#888;font-size:18px;-webkit-transform:rotate(-90deg);transform:rotate(-90deg);transition:all .1s}.sdoc-file-history-versions .daily-history-detail-toggle.daily-history-detail-show .dropdown-toggle{-webkit-transform:none;-webkit-transform:initial;transform:none}.sdoc-file-history-versions .daily-history-detail-toggle .dropdown-toggle:hover{color:#333;cursor:pointer}@media (min-width:992px){.history-side-panel{width:260px}}@media (max-width:768px){.sdoc-file-history .sdoc-file-history-content{padding:0}.sdoc-file-history .sdoc-file-history-content .sdoc-file-history-viewer{border:none}.markdown-viewer-render-content{margin:20px}.markdown-viewer-render-content .diff-view{padding:20px}} \ No newline at end of file diff --git a/media/assets/frontend/static/css/settings.4e24d65d.css b/media/assets/frontend/static/css/settings.4e24d65d.css new file mode 100644 index 00000000000..5a128246694 --- /dev/null +++ b/media/assets/frontend/static/css/settings.4e24d65d.css @@ -0,0 +1 @@ +body{overflow:hidden}#wrapper{height:100%}.top-header{background:#f4f4f7;border-bottom:1px solid #e8e8e8;flex-shrink:0;padding:.5rem 1rem}.side-panel{border-right:1px solid #eee;flex:0 0 22%;padding:1rem}.main-panel{flex:1 0 78%}.heading{background:#f9f9f9;color:#322;font-size:1rem;font-weight:400;line-height:1.5;margin:0;padding:8px 16px;position:relative}.heading:after{border-bottom:1px solid #e8e8e8;bottom:0;content:"";left:16px;position:absolute;right:16px}.content{overflow:auto;padding:0 1rem 8rem}.setting-item{font-size:.875rem;margin:1em 0 3em}.setting-item-heading{border-bottom:1px solid #ddd;font-size:.9375rem;font-weight:400;margin-bottom:.7rem;padding-bottom:.3rem}.avatar-edit,.user-avatar{border-radius:3px}.avatar-edit{background:rgba(0,0,0,.3);color:#fff;cursor:pointer;font-size:24px;height:80px;left:.75rem;line-height:80px;position:absolute;text-align:center;top:0;width:80px}.user-setting-nav .nav-item .nav-link{border-left:2px solid transparent;color:#333;flex:auto;margin:0;padding-left:1em}.user-setting-nav .nav-item.active .nav-link{border-color:#ff9800;color:#ff9800}.user-setting-nav .nav-item .nav-link:hover{color:#eb8205}.eye-icon{color:#666}.input-tip{color:#666;padding-top:calc(.375rem + 1px)}@media (min-width:768px){.input-tip{padding-left:0}}.language-selector{width:260px}.btn{min-width:60px} \ No newline at end of file diff --git a/media/assets/frontend/static/css/sharedDirView.0167fb72.css b/media/assets/frontend/static/css/sharedDirView.0167fb72.css new file mode 100644 index 00000000000..46ff177cc31 --- /dev/null +++ b/media/assets/frontend/static/css/sharedDirView.0167fb72.css @@ -0,0 +1 @@ +@-webkit-keyframes closeWindow{0%{opacity:1}to{opacity:0}}@keyframes closeWindow{0%{opacity:1}to{opacity:0}}.ril__outer{-ms-content-zooming:none;-ms-touch-select:none;background-color:rgba(0,0,0,.85);bottom:0;height:100%;left:0;outline:none;right:0;top:0;-ms-touch-action:none;touch-action:none;-ms-user-select:none;width:100%;z-index:1000}.ril__outerClosing{opacity:0}.ril__image,.ril__imageNext,.ril__imagePrev,.ril__inner{bottom:0;left:0;position:absolute;right:0;top:0}.ril__image,.ril__imageNext,.ril__imagePrev{-ms-content-zooming:none;-ms-touch-select:none;margin:auto;max-width:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none}.ril__imageDiscourager{background-position:50%;background-repeat:no-repeat;background-size:contain}.ril__navButtons{border:none;bottom:0;cursor:pointer;height:34px;margin:auto;opacity:.7;padding:40px 30px;position:absolute;top:0;width:20px}.ril__navButtons:hover{opacity:1}.ril__navButtons:active{opacity:.7}.ril__outer .ril__navButtonPrev{background:url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Im00MTIgNTE1LjIgMzYxLjYtMzYxLjZjMjIuNC0xOS4yIDIyLjQtNTQuNCAwLTc2LjhzLTU3LjYtMjIuNC03Ni44IDBsLTQwNi40IDQwMGMtMjIuNCAyMi40LTIyLjQgNTcuNiAwIDc2LjhsNDA2LjQgNDAzLjJjMjIuNCAyMi40IDU3LjYgMjIuNCA3Ni44IDBzMjIuNC01Ny42IDAtNzYuOEw0MTIgNTE1LjJ6IiBmaWxsPSIjZmZmIi8+PC9zdmc+) no-repeat 50%;left:0}.ril__outer .ril__navButtonNext{background:url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik02NDAgNTE1LjIgMjc4LjQgMTUzLjZjLTIyLjQtMTkuMi0yMi40LTU0LjQgMC03Ni44czU3LjYtMjIuNCA3Ni44IDBsNDA2LjQgNDAwYzIyLjQgMjIuNCAyMi40IDU3LjYgMCA3Ni44TDM1NS4yIDk1Ni44Yy0yMi40IDIyLjQtNTcuNiAyMi40LTc2LjggMHMtMjIuNC01Ny42IDAtNzYuOEw2NDAgNTE1LjJ6IiBmaWxsPSIjZmZmIi8+PC9zdmc+) no-repeat 50%;right:0}.ril__downloadBlocker{background-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);background-size:cover;bottom:0;left:0;position:absolute;right:0;top:0}.ril__caption,.ril__toolbar{-ms-flex-pack:justify;background-color:rgba(0,0,0,.5);display:-ms-flexbox;display:flex;justify-content:space-between;left:0;position:absolute;right:0}.ril__caption{-ms-flex-pack:center;bottom:0;justify-content:center;max-height:150px;overflow:auto}.ril__captionContent{color:#fff;margin:0 auto;padding:10px 20px}.ril__toolbar{height:50px;top:0}.ril__toolbarSide{height:50px;margin:0}.ril__toolbarLeftSide{-ms-flex:0 1 auto;flex:0 1 auto;overflow:hidden;padding-left:20px;padding-right:0;text-overflow:ellipsis}.ril__toolbarRightSide{-ms-flex:0 0 auto;flex:0 0 auto;padding-left:0;padding-right:20px}.ril__toolbarItem{color:#fff;display:inline-block;font-size:120%;line-height:50px;max-width:100%;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap}.ril__toolbarItemChild{vertical-align:middle}.ril__builtinButton{border:none;cursor:pointer;height:35px;opacity:.7;width:40px}.ril__builtinButton:hover{opacity:1}.ril__builtinButton:active{outline:none}.ril__builtinButtonDisabled{cursor:default;opacity:.5}.ril__builtinButtonDisabled:hover{opacity:.5}.ril__closeButton{background:url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik02MTEuMiA1MTIgOTEyIDIxMS4yYzI4LjgtMjguOCAyOC44LTczLjYgMC05OS4ycy03My42LTI4LjgtOTkuMiAwTDUxMiA0MTIuOCAyMTEuMiAxMTJjLTI4LjgtMjguOC03My42LTI4LjgtOTkuMiAwcy0yOC44IDczLjYgMCA5OS4yTDQxMi44IDUxMiAxMTIgODEyLjhjLTI4LjggMjguOC0yOC44IDczLjYgMCA5OS4yIDI4LjggMjUuNiA3My42IDI4LjggOTkuMiAwTDUxMiA2MTEuMiA4MTIuOCA5MTJjMjguOCAyOC44IDczLjYgMjguOCA5OS4yIDAgMjguOC0yOC44IDI4LjgtNzMuNiAwLTk5LjJMNjExLjIgNTEyeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==) no-repeat 50%}.ril__zoomInButton{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0ibTEgMTkgNi02TTkgOGg2TTEyIDV2NiIvPjwvZz48Y2lyY2xlIGN4PSIxMiIgY3k9IjgiIHI9IjciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+) no-repeat 50%}.ril__zoomOutButton{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0ibTEgMTkgNi02TTkgOGg2Ii8+PC9nPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=) no-repeat 50%}.ril__rotateButton{background:url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiPjxwYXRoIGQ9Im0xMjQuOCAxNjAgNTQuNCA1MS4yQzM0NS42IDI4LjggNjMwLjQgMTYgODEyLjggMTgyLjRTMTAwOCA2MzMuNiA4NDEuNiA4MTYgMzkwLjQgMTAxMS4yIDIwOCA4NDQuOGMtMzguNC0zNS4yLTczLjYtNzYuOC05Ni0xMjQuOC02LjQtOS42LTkuNi0xNi05LjYtMjguOCAwLTMyIDI1LjYtNTQuNCA1NC40LTU0LjQgMTkuMiAwIDM4LjQgOS42IDU0LjQgMzIgODMuMiAxNjYuNCAyODggMjMwLjQgNDU0LjQgMTQ0czIzMC40LTI5MS4yIDE0NC00NTcuNi0yODgtMjMwLjQtNDU0LjQtMTQ0Yy0zNS4yIDE5LjItNjcuMiA0MS42LTk2IDczLjZsNTEuMiA0NC44YzEyLjggMTIuOCAxNiAzOC40IDMuMiA1MS4yLTYuNCA2LjQtMTYgOS42LTI1LjYgOS42TDEwNS42IDQwMGMtMTkuMiAwLTM1LjItMTIuOC0zOC40LTMyTDY0IDE4OC44Yy0zLjItMTkuMiAxMi44LTM1LjIgMzItMzguNCAxMi44LTMuMiAyMi40IDMuMiAyOC44IDkuNnoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=) no-repeat 50%}.ril__outerAnimating{-webkit-animation-name:closeWindow;animation-name:closeWindow}@-webkit-keyframes pointFade{0%,19.999%,to{opacity:0}20%{opacity:1}}@keyframes pointFade{0%,19.999%,to{opacity:0}20%{opacity:1}}.ril__loadingCircle{height:60px;position:relative;width:60px}.ril__loadingCirclePoint{height:100%;left:0;position:absolute;top:0;width:100%}.ril__loadingCirclePoint:before{-webkit-animation:pointFade .8s ease-in-out infinite both;animation:pointFade .8s ease-in-out infinite both;background-color:#fff;border-radius:30%;content:"";display:block;height:30%;margin:0 auto;width:11%}.ril__loadingCirclePoint:first-of-type{-webkit-transform:rotate(0deg);transform:rotate(0deg)}.ril__loadingCirclePoint:first-of-type:before,.ril__loadingCirclePoint:nth-of-type(7):before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.ril__loadingCirclePoint:nth-of-type(2){-webkit-transform:rotate(30deg);transform:rotate(30deg)}.ril__loadingCirclePoint:nth-of-type(8){-webkit-transform:rotate(210deg);transform:rotate(210deg)}.ril__loadingCirclePoint:nth-of-type(2):before,.ril__loadingCirclePoint:nth-of-type(8):before{-webkit-animation-delay:-666ms;animation-delay:-666ms}.ril__loadingCirclePoint:nth-of-type(3){-webkit-transform:rotate(60deg);transform:rotate(60deg)}.ril__loadingCirclePoint:nth-of-type(9){-webkit-transform:rotate(240deg);transform:rotate(240deg)}.ril__loadingCirclePoint:nth-of-type(3):before,.ril__loadingCirclePoint:nth-of-type(9):before{-webkit-animation-delay:-533ms;animation-delay:-533ms}.ril__loadingCirclePoint:nth-of-type(4){-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ril__loadingCirclePoint:nth-of-type(10){-webkit-transform:rotate(270deg);transform:rotate(270deg)}.ril__loadingCirclePoint:nth-of-type(10):before,.ril__loadingCirclePoint:nth-of-type(4):before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.ril__loadingCirclePoint:nth-of-type(5){-webkit-transform:rotate(120deg);transform:rotate(120deg)}.ril__loadingCirclePoint:nth-of-type(11){-webkit-transform:rotate(300deg);transform:rotate(300deg)}.ril__loadingCirclePoint:nth-of-type(11):before,.ril__loadingCirclePoint:nth-of-type(5):before{-webkit-animation-delay:-266ms;animation-delay:-266ms}.ril__loadingCirclePoint:nth-of-type(6){-webkit-transform:rotate(150deg);transform:rotate(150deg)}.ril__loadingCirclePoint:nth-of-type(12){-webkit-transform:rotate(330deg);transform:rotate(330deg)}.ril__loadingCirclePoint:nth-of-type(12):before,.ril__loadingCirclePoint:nth-of-type(6):before{-webkit-animation-delay:-133ms;animation-delay:-133ms}.ril__loadingCirclePoint:nth-of-type(7){-webkit-transform:rotate(180deg);transform:rotate(180deg)}.ril__loadingCirclePoint:nth-of-type(13){-webkit-transform:rotate(1turn);transform:rotate(1turn)}.ril__loadingCirclePoint:nth-of-type(13):before,.ril__loadingCirclePoint:nth-of-type(7):before{-webkit-animation-delay:0ms;animation-delay:0ms}.ril__loadingContainer{bottom:0;left:0;position:absolute;right:0;top:0}.ril__imageNext .ril__loadingContainer,.ril__imagePrev .ril__loadingContainer{display:none}.ril__errorContainer{-ms-flex-align:center;-ms-flex-pack:center;align-items:center;bottom:0;color:#fff;display:-ms-flexbox;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.ril__imageNext .ril__errorContainer,.ril__imagePrev .ril__errorContainer{display:none}.ril__loadingContainer__icon{color:#fff;left:50%;position:absolute;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.repo-info-bar{border:1px solid #e6e6dd;border-radius:5px;margin:10px 16px 0;padding:10px}.used-tag-list{list-style:none}.used-tag-item{display:inline-block;margin:auto 15px}.used-tag{border-radius:50%;cursor:pointer;display:inline-block;height:12px;width:12px}.used-tag-name{margin:0 .25rem}.used-tag-files{color:#888;font-size:14px}.used-tag-files:hover{cursor:pointer;text-decoration:underline}.file-info{cursor:pointer;display:inline-block;margin:0 15px}.file-info a{color:#333}.info-icon{color:#888;vertical-align:-3px}.readme-dialog-edit{position:absolute;right:16px}.readme-dialog .modal-body{padding:0 30px}body{overflow:hidden}#wrapper{height:100%}.top-header{background:#f4f4f7;border-bottom:1px solid #e8e8e8;flex-shrink:0;height:53px;padding:8px 16px 4px}.shared-dir-view-main{margin:0 auto;max-width:950px;padding:15px 0 40px;width:calc(100% - 40px)}.op-bar{background:#f2f2f2;border-radius:2px;padding:9px 10px}.sf-view-mode-btn{background-color:#fff;border:1px solid #ccc;border-radius:2px;color:#aaa;font-size:18px;height:30px;line-height:29px;min-width:2rem;padding:0}.sf-view-mode-btn.current-mode{background-color:#ccc;color:#fff}.shared-dir-op-btn{height:30px;line-height:30px;padding:0 10px}.shared-dir-upload-btn{border:1px solid #ccc}.grid-item .action-icon{background:#fff;border:1px solid #eee;border-radius:3px;margin:0;padding:3px 5px;position:absolute;right:24px;top:10px}.grid-view{align-content:flex-start;display:flex;flex:1 1;flex-wrap:wrap;list-style:none;padding:.625rem 1rem 10rem}.grid-item{line-height:0;padding:10px 4px;position:relative;text-align:center;width:134px}.grid-item:hover .grid-file-img-link{background:#f8f8f8}.grid-item:hover a{color:#eb8205}.grid-file-img-link{border-radius:3px;font-size:0;height:96px;line-height:0;margin:0 auto 6px;position:relative;text-align:center;width:96px}.grid-file-img-link .thumbnail{background:#fff;border:1px solid #ddd;border-radius:1px;max-height:88px;max-width:88px;padding:1px}.grid-file-img-link:before{content:"";display:inline-block;height:100%;vertical-align:middle}.grid-file-name{display:inline-block;font-size:14px;line-height:17px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:keep-all}.grid-file-name-link{color:#333;font-size:.875rem}.grid-file-locked-icon{bottom:0;position:absolute;right:10px;width:16px}.grid-selected-active{background-color:#f8f8f8}.grid-link-selected-active{color:#eb8205}.grid-drop-show{background:#f8f8f8} \ No newline at end of file diff --git a/media/assets/frontend/static/css/sharedFileViewSpreadsheet.aea7959b.css b/media/assets/frontend/static/css/sharedFileViewSpreadsheet.aea7959b.css new file mode 100644 index 00000000000..05770f17bc4 --- /dev/null +++ b/media/assets/frontend/static/css/sharedFileViewSpreadsheet.aea7959b.css @@ -0,0 +1 @@ +.spreadsheet-file-view{overflow:auto}#spreadsheet-container{background:#fff;border:1px solid #ccc;box-shadow:0 0 6px #ccc;display:block;margin:0 auto;max-width:950px;min-height:100%;width:calc(100% - 40px)} \ No newline at end of file diff --git a/media/assets/frontend/static/css/sysAdmin.defb2342.css b/media/assets/frontend/static/css/sysAdmin.defb2342.css new file mode 100644 index 00000000000..d055a29b123 --- /dev/null +++ b/media/assets/frontend/static/css/sysAdmin.defb2342.css @@ -0,0 +1 @@ +.heading{background:#f9f9f9;color:#322;font-size:1rem;font-weight:400;line-height:1.5;margin:0;padding:8px 16px}.content{display:flex;overflow:auto;padding:0 1rem 8rem}.system-admin-info dd,.system-admin-info dt{color:inherit}.info-item-heading{border-bottom:1px solid #ddd;font-size:1rem;font-weight:400;margin-bottom:.7em;padding-bottom:.2em}.info-item-content{margin-bottom:2em}.btn{min-width:60px}.system-statistic-time-range{align-items:center;display:flex;font-size:13px;margin:15px 0 25px}.sys-stat-tool{color:#333;display:flex;font-size:13px}.system-statistic-item{border:1px solid #c5c5c5;cursor:pointer;padding:5px 10px}.sys-stat-tool .item-active,.system-statistic-item:hover{background:#efefef}.system-statistic-input-container{align-items:center;display:flex;margin-left:1rem}.system-statistic-input{height:31px;width:120px}.error-tip{color:red}.statistic-traffic-tab{color:#333;display:flex;font-size:13px;margin-top:10px}.statistic-traffic-tab .statistic-traffic-tab-item{border-bottom:2px solid transparent;color:#8a948f;cursor:pointer;margin-right:10px;padding:3px 0}.statistic-traffic-tab .statistic-traffic-tab-item.active,.statistic-traffic-tab .statistic-traffic-tab-item:hover{border-bottom:2px solid #eb8025;color:#eb8025}.statistic-reports-title{background:#f7f7f7;color:#222;margin-top:15px;padding:3px 10px}.statistic-reports-submit{margin-left:15px}.statistic-reports-wrapper{align-items:center;display:flex;margin-top:15px}.statistic-reports-input{height:30px;width:80px}.statistic-reports-tip{font-size:13px;padding:0 10px}.system-statistic-connect{line-height:1;padding:0 5px}.system-statistic-button{height:31px;margin-left:1rem}.rc-calendar table{table-layout:auto}.rc-calendar tbody tr{height:1.75rem}.cur-view-path .operation-item{font-size:12px;height:24px;line-height:24px}.cur-view-container .no-group,.cur-view-container .no-libraty,.cur-view-container .no-member{color:#a4a4a4;margin:30px 0;text-align:center}.cur-view-path .sf-heading a{color:#eb8205}.cur-view-subcontainer{margin:10px}.cur-view-subcontainer table{margin:8px 0 40px}.org-departments>div{height:100%}.org-members .cur-view-content{padding-bottom:40px}.cur-view-path button:hover{cursor:pointer}.commit-detail-item{list-style-type:none}.web-setting-icon-btn{font-size:1rem;line-height:1.5;min-width:0}.web-setting-icon-btn-submit{color:green}.web-setting-icon-btn-cancel{color:#666}.web-setting-textarea{min-height:7rem}.web-setting-label{word-break:break-word}.cur-view-content{position:relative}.dir-content-main{height:100%;overflow-y:hidden;padding-right:1rem;position:absolute;right:0;width:75%}.dir-content-main:hover{overflow-y:auto}.dir-content-main table td{line-height:2rem}.dir-content-main .empty-tip{box-shadow:none}.dir-content-main .empty-tip img{height:140px;width:140px}.dir-content-nav{overflow:hidden;position:absolute;width:24%}.dir-content-nav:hover{overflow:auto}.dir-content-resize{border-left:1px solid #eee;height:100%;left:25%;position:absolute;width:1%}.department-children{padding-left:1rem;position:relative}.tree-node-inner{display:flex;padding-right:1rem;position:relative}.tree-node-inner i{color:silver;left:.3rem;position:absolute;top:20%}.tree-node-inner-hover{background-color:#ffefb2;border-radius:.25rem;cursor:pointer}.tree-node-hight-light{background-color:#feac74!important;border-radius:4px;color:#fff}.tree-node-hight-light i{color:#fff}.tree-node-hight-light .attr-action-icon,.tree-node-hight-light .attr-action-icon:focus,.tree-node-hight-light .attr-action-icon:hover{color:#fff!important}.tree-node-icon{padding-right:1.5rem}.tree-node-text{font-size:14px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% - 2.5rem)}.tree-view{flex:1 1;padding:12px 12px 12px 0}.form-content .conditions-preview-container{background-color:#f5f5f5;max-height:300px;min-height:38px;overflow:auto;padding:10px}.conditions-preview-wrapper .conditions-preview-container{background-color:#f5f5f5;min-height:300px;overflow:auto;padding:10px}.conditions-preview-container ol,.conditions-preview-container ul{-webkit-padding-start:40px;margin-bottom:1em;padding-inline-start:40px}.conditions-editor-dialog-main{height:600px;overflow:hidden;padding:0} \ No newline at end of file diff --git a/media/assets/frontend/static/css/uploadLink.e703d3dd.css b/media/assets/frontend/static/css/uploadLink.e703d3dd.css new file mode 100644 index 00000000000..55ab27b77c7 --- /dev/null +++ b/media/assets/frontend/static/css/uploadLink.e703d3dd.css @@ -0,0 +1 @@ +body{overflow:hidden}#wrapper{height:100%}.top-header{background:#f4f4f7;border-bottom:1px solid #e8e8e8;flex-shrink:0;padding:.5rem 1rem}#upload-link-panel{border:1px solid #ddd;margin:2em auto;max-width:calc(100% - 20px);width:928px}.shared-by .avatar{height:20px;width:20px}#upload-link-panel .warning-icon{color:#f25041;font-size:48px}#upload-link-panel .tip-list-item{list-style:decimal none inside}#upload-link-drop-zone{background:rgba(255,152,0,.1);border:2px dashed #ff9800;border-radius:4px;padding:28px 0}#upload-link-drop-zone .upload-icon{color:rgba(240,159,63,.8);font-size:60px;line-height:1}.mh-2{min-height:2rem} \ No newline at end of file diff --git a/media/assets/frontend/static/css/viewFileSpreadsheet.aea7959b.css b/media/assets/frontend/static/css/viewFileSpreadsheet.aea7959b.css new file mode 100644 index 00000000000..05770f17bc4 --- /dev/null +++ b/media/assets/frontend/static/css/viewFileSpreadsheet.aea7959b.css @@ -0,0 +1 @@ +.spreadsheet-file-view{overflow:auto}#spreadsheet-container{background:#fff;border:1px solid #ccc;box-shadow:0 0 6px #ccc;display:block;margin:0 auto;max-width:950px;min-height:100%;width:calc(100% - 40px)} \ No newline at end of file diff --git a/media/assets/frontend/static/css/wiki.0ae434f3.css b/media/assets/frontend/static/css/wiki.0ae434f3.css new file mode 100644 index 00000000000..cc7edea0775 --- /dev/null +++ b/media/assets/frontend/static/css/wiki.0ae434f3.css @@ -0,0 +1 @@ +.wiki-nav-content{margin-top:18px}.wiki-nav-content.no-children{margin-left:1rem}.wiki-nav-content a,.wiki-nav-content span{color:#4d5156;display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wiki-nav-content a:hover,.wiki-nav-content-highlight a{color:#eb8205;text-decoration:none}.switch-btn{color:silver;cursor:pointer;font-size:12px;left:0;padding-right:10px;position:absolute;top:2px}.wiki-page-container .article{border:none;margin:0;max-width:none;padding:0 10px}.wiki-page-container .article span[data-url]{cursor:pointer}.wiki-page-container .article .ml-2{text-decoration:underline}.wiki-page-container .article .ml-2:hover{color:#eb8205;text-decoration:underline}#wiki-page-last-modified{color:#666;font-size:12px;padding:40px 10px}.wiki-page-container .sdoc-wiki-scroll-container{background-color:#fff!important;overflow:inherit;padding:0!important}.wiki-page-container .sdoc-wiki-scroll-container .sdoc-article-container{margin:0 auto!important}.wiki-page-container .sdoc-article-container .article .sdoc-header-title{margin-top:0}.wiki-page-container .sdoc-article-container .article{border:none;margin:0;max-width:none;padding:0 10px}.wiki-page-container .sdoc-wiki-outline-container{top:79px;width:200px!important}@media (max-width:991.98px){.wiki-page-container .sdoc-article-container{margin:0!important;padding:0 10px;width:100%}.wiki-page-container .sdoc-wiki-outline-container{display:none}}@media (max-width:767px){.wiki-page-container .sdoc-wiki-outline-container{display:none}}.side-panel{height:100%;-webkit-user-select:none;-ms-user-select:none;user-select:none}.side-panel .nav{border-bottom:1px solid #eee;height:36px;min-width:125px;padding-bottom:10px;padding-top:10px}.side-panel .nav-link{color:#888}.side-panel .nav-link.active{color:#eb8205}.side-panel-content{font-size:.875rem;height:calc(100% - 36px);overflow:auto;padding-bottom:8px;padding-top:8px}.image-view{background-color:#fff;border-radius:3px;box-shadow:0 0 10px #aaa;font-size:0;height:150px;line-height:150px;overflow:hidden;position:absolute;text-align:center;width:200px;z-index:1004}.image-view img{max-height:100%;max-width:100%}.image-view i{-webkit-animation:rotate 1.5s ease infinite;animation:rotate 1.5s ease infinite;color:#eb8205;font-size:30px;height:100%;line-height:150px;text-align:center;width:100%}@-webkit-keyframes rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.outline-h2{color:#364149;cursor:pointer;line-height:2.5;margin-left:20px;white-space:nowrap}.outline-h2:hover{color:#eb8205}.outline-h3{color:#364149;cursor:pointer;line-height:2.5;margin-left:40px;white-space:nowrap}.outline-h3:hover{color:#eb8205}.tree-view{line-height:1.5;padding:0 12px}.tree-node-inner{cursor:pointer;height:24px;line-height:1.625;position:relative}.tree-node-inner-hover{background-color:#ffefb2;border-radius:.25rem}.tree-node-inner .tree-node-text{font-size:14px;line-height:24px;overflow:hidden;padding-left:2.8rem;text-overflow:ellipsis;white-space:nowrap;width:calc(100% - 1rem)}.tree-node-inner .left-icon{align-items:center;padding-left:1.5rem;top:0}.folder-toggle-icon,.tree-node-inner .left-icon{display:flex;justify-content:center;left:0;position:absolute}.folder-toggle-icon{align-content:center;color:silver;line-height:1.625;width:1.5rem}.tree-node-icon{color:#b0b0b0;display:inline-block;text-align:center;width:1rem}.tree-node-inner .right-icon{bottom:0;color:#888;font-size:.8125rem;position:absolute;right:1rem;text-align:center;top:0;width:1.5rem;z-index:2}.tree-node-inner .right-icon i{font-size:.8125rem;height:100%;line-height:1.625rem!important;vertical-align:middle;width:100%}.tree-node-hight-light{background-color:#feac74!important;border-radius:4px;color:#fff}.tree-node-hight-light i{color:#fff}.dropdown-menu{min-width:8rem}.parent-path{position:relative}.parent-path .form-text{font-size:.9375rem;margin-left:.25rem;margin-top:0;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.wiki-side-panel .panel-top{background:#fff}.wiki-side-nav{border-right:1px solid #eee;display:flex;flex:auto;flex-direction:column;overflow:hidden}.wiki-pages-heading{background-color:#f9f9f9;border-bottom:1px solid #e8e8e8;font-size:1rem;font-weight:400;height:40px;line-height:1.5;margin-bottom:0;padding:.5rem 0 .5rem 2rem;position:relative}.heading-icon{color:#888;font-size:.8125rem;position:absolute;right:1rem;top:25%}.wiki-pages-container{flex:1 1;overflow:hidden;padding-bottom:10px}.wiki-pages-container:hover{overflow:auto}.wiki-pages-container .tree-view{margin-left:-10px;margin-top:14px;padding-left:0}img[src=""]{opacity:0}.wiki-side-panel{display:flex;flex:0 0 20%;flex-direction:column;overflow:hidden}@media (max-width:767px){.wiki-side-panel{z-index:1051}}.wiki-main-panel{display:flex;flex:1 0 80%;flex-direction:column;min-height:0;overflow:hidden}.wiki-main-panel .main-panel-north{background-color:#fff}.cur-view-content .wiki-page-container{display:flex;flex:1 1;margin:0 -1rem -1.25rem;overflow-y:auto;padding:30px 1rem 1.25rem 30px}.cur-view-content .wiki-page-content{padding-right:30px;width:calc(100% - 200px)}@media (max-width:991.98px){.cur-view-content .wiki-page-container{padding:30px 14px 0}.cur-view-content .wiki-page-content{padding-right:0;width:100%}}.wiki-main-panel .article h1{margin-top:0}.wiki-page-container .outline-h2,.wiki-page-container .outline-h3{color:#4d5156;font-size:12px;height:24px}.wiki-page-container .outline-h2.active,.wiki-page-container .outline-h3.active{color:#eb8205}.wiki-page-container .sf-slate-viewer-scroll-container{background-color:#fff!important;overflow:inherit;padding:0!important}.wiki-page-container .sf-slate-viewer-article-container{margin:0!important;width:100%}.wiki-page-container .sf-slate-viewer-outline{top:79px;width:200px}@media (max-width:767px){.wiki-page-container .article{padding:0!important}} \ No newline at end of file diff --git a/media/assets/frontend/static/js/334.414e1376.chunk.js b/media/assets/frontend/static/js/334.414e1376.chunk.js new file mode 100644 index 00000000000..1f4b658cc9e --- /dev/null +++ b/media/assets/frontend/static/js/334.414e1376.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkseahub_frontend=self.webpackChunkseahub_frontend||[]).push([[334],{55334:function(e,r,o){function t(e){var r={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},o=e.extraWords||{};for(var t in o)o.hasOwnProperty(t)&&(r[t]=e.extraWords[t]);var n=[];for(var i in r)n.push(i);function d(o,t){var n=o.next();if('"'===n)return t.tokenize=k,t.tokenize(o,t);if("{"===n&&o.eat("|"))return t.longString=!0,t.tokenize=y,t.tokenize(o,t);if("("===n&&o.match(/^\*(?!\))/))return t.commentLevel++,t.tokenize=w,t.tokenize(o,t);if("~"===n||"?"===n)return o.eatWhile(/\w/),"variableName.special";if("`"===n)return o.eatWhile(/\w/),"quote";if("/"===n&&e.slashComments&&o.eat("/"))return o.skipToEnd(),"comment";if(/\d/.test(n))return"0"===n&&o.eat(/[bB]/)&&o.eatWhile(/[01]/),"0"===n&&o.eat(/[xX]/)&&o.eatWhile(/[0-9a-fA-F]/),"0"===n&&o.eat(/[oO]/)?o.eatWhile(/[0-7]/):(o.eatWhile(/[\d_]/),o.eat(".")&&o.eatWhile(/[\d]/),o.eat(/[eE]/)&&o.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(n))return"operator";if(/[\w\xa1-\uffff]/.test(n)){o.eatWhile(/[\w\xa1-\uffff]/);var i=o.current();return r.hasOwnProperty(i)?r[i]:"variable"}return null}function k(e,r){for(var o,t=!1,n=!1;null!=(o=e.next());){if('"'===o&&!n){t=!0;break}n=!n&&"\\"===o}return t&&!n&&(r.tokenize=d),"string"}function w(e,r){for(var o,t;r.commentLevel>0&&null!=(t=e.next());)"("===o&&"*"===t&&r.commentLevel++,"*"===o&&")"===t&&r.commentLevel--,o=t;return r.commentLevel<=0&&(r.tokenize=d),"comment"}function y(e,r){for(var o,t;r.longString&&null!=(t=e.next());)"|"===o&&"}"===t&&(r.longString=!1),o=t;return r.longString||(r.tokenize=d),"string"}return{startState:function(){return{tokenize:d,commentLevel:0,longString:!1}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)},languageData:{autocomplete:n,commentTokens:{line:e.slashComments?"//":void 0,block:{open:"(*",close:"*)"}}}}}o.r(r),o.d(r,{fSharp:function(){return i},oCaml:function(){return n},sml:function(){return d}});var n=t({name:"ocaml",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),i=t({name:"fsharp",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),d=t({name:"sml",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})}}]); \ No newline at end of file diff --git a/media/assets/frontend/static/js/347.5f2fe80e.chunk.js b/media/assets/frontend/static/js/347.5f2fe80e.chunk.js new file mode 100644 index 00000000000..2fe131e4d7d --- /dev/null +++ b/media/assets/frontend/static/js/347.5f2fe80e.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkseahub_frontend=self.webpackChunkseahub_frontend||[]).push([[347],{80347:function(e,t,n){function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}n.r(t),n.d(t,{cython:function(){return f},mkPython:function(){return c},python:function(){return u}});var i=r(["and","or","not","is"]),a=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in","False","True"],o=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];function s(e){return e.scopes[e.scopes.length-1]}function c(e){for(var t="error",n=e.delimiters||e.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,c=[e.singleOperators,e.doubleOperators,e.doubleDelimiters,e.tripleDelimiters,e.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],l=0;li?v(e,n):a0&&x(e,n)&&(o+=" "+t),o}return k(e,n)}function k(r,a,o){if(r.eatSpace())return null;if(!o&&r.match(/^#.*/))return"comment";if(r.match(/^[0-9\.]/,!1)){var s=!1;if(r.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(s=!0),r.match(/^[\d_]+\.\d*/)&&(s=!0),r.match(/^\.\d+/)&&(s=!0),s)return r.eat(/J/i),"number";var l=!1;if(r.match(/^0x[0-9a-f_]+/i)&&(l=!0),r.match(/^0b[01_]+/i)&&(l=!0),r.match(/^0o[0-7_]+/i)&&(l=!0),r.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(r.eat(/J/i),l=!0),r.match(/^0(?![\dx])/i)&&(l=!0),l)return r.eat(/L/i),"number"}if(r.match(h))return-1!==r.current().toLowerCase().indexOf("f")?(a.tokenize=function(n,r){for(;"rubf".indexOf(n.charAt(0).toLowerCase())>=0;)n=n.substr(1);var i=1==n.length,a="string";function o(e){return function(t,n){var r=k(t,n,!0);return"punctuation"==r&&("{"==t.current()?n.tokenize=o(e+1):"}"==t.current()&&(n.tokenize=e>1?o(e-1):s)),r}}function s(s,c){for(;!s.eol();)if(s.eatWhile(/[^'"\{\}\\]/),s.eat("\\")){if(s.next(),i&&s.eol())return a}else{if(s.match(n))return c.tokenize=r,a;if(s.match("{{"))return a;if(s.match("{",!1))return c.tokenize=o(0),s.current()?a:c.tokenize(s,c);if(s.match("}}"))return a;if(s.match("}"))return t;s.eat(/['"]/)}if(i){if(e.singleLineStringErrors)return t;c.tokenize=r}return a}return s.isString=!0,s}(r.current(),a.tokenize),a.tokenize(r,a)):(a.tokenize=function(n,r){for(;"rubf".indexOf(n.charAt(0).toLowerCase())>=0;)n=n.substr(1);var i=1==n.length,a="string";function o(o,s){for(;!o.eol();)if(o.eatWhile(/[^'"\\]/),o.eat("\\")){if(o.next(),i&&o.eol())return a}else{if(o.match(n))return s.tokenize=r,a;o.eat(/['"]/)}if(i){if(e.singleLineStringErrors)return t;s.tokenize=r}return a}return o.isString=!0,o}(r.current(),a.tokenize),a.tokenize(r,a));for(var u=0;u1&&s(t).offset>n;){if("py"!=s(t).type)return!0;t.scopes.pop()}return s(t).offset!=n}function _(e,n){e.sol()&&(n.beginningOfLine=!0,n.dedent=!1);var r=n.tokenize(e,n),i=e.current();if(n.beginningOfLine&&"@"==i)return e.match(m,!1)?"meta":d?"operator":t;if(/\S/.test(i)&&(n.beginningOfLine=!1),"variable"!=r&&"builtin"!=r||"meta"!=n.lastToken||(r="meta"),"pass"!=i&&"return"!=i||(n.dedent=!0),"lambda"==i&&(n.lambda=!0),":"==i&&!n.lambda&&"py"==s(n).type&&e.match(/^\s*(?:#|$)/,!1)&&v(e,n),1==i.length&&!/string|comment/.test(r)){var a="[({".indexOf(i);if(-1!=a&&function(e,t,n){var r=e.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:e.column()+1;t.scopes.push({offset:t.indent+(u||e.indentUnit),type:n,align:r})}(e,n,"])}".slice(a,a+1)),-1!=(a="])}".indexOf(i))){if(s(n).type!=i)return t;n.indent=n.scopes.pop().offset-(u||e.indentUnit)}}return n.dedent&&e.eol()&&"py"==s(n).type&&n.scopes.length>1&&n.scopes.pop(),r}return{name:"python",startState:function(){return{tokenize:y,scopes:[{offset:0,type:"py",align:null}],indent:0,lastToken:null,lambda:!1,dedent:0}},token:function(e,n){var r=n.errorToken;r&&(n.errorToken=!1);var i=_(e,n);return i&&"comment"!=i&&(n.lastToken="keyword"==i||"punctuation"==i?e.current():i),"punctuation"==i&&(i=null),e.eol()&&n.lambda&&(n.lambda=!1),r?t:i},indent:function(e,t,n){if(e.tokenize!=y)return e.tokenize.isString?null:0;var r=s(e),i=r.type==t.charAt(0)||"py"==r.type&&!e.dedent&&/^(else:|elif |except |finally:)/.test(t);return null!=r.align?r.align-(i?1:0):r.offset-(i?u||n.unit:0)},languageData:{autocomplete:a.concat(o).concat(["exec","print"]),indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,commentTokens:{line:"#"},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}}}var l,u=c({}),f=c({extra_keywords:(l="by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE",l.split(" "))})}}]); \ No newline at end of file diff --git a/media/assets/frontend/static/js/349.df816323.chunk.js b/media/assets/frontend/static/js/349.df816323.chunk.js new file mode 100644 index 00000000000..d477cfd0ecf --- /dev/null +++ b/media/assets/frontend/static/js/349.df816323.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkseahub_frontend=self.webpackChunkseahub_frontend||[]).push([[349],{53613:function(e,t,r){function a(e){var t=e.client||{},r=e.atoms||{false:!0,true:!0,null:!0},a=e.builtin||l(c),n=e.keywords||l(s),i=e.operatorChars||/^[*+\-%<>!=&|~^\/]/,o=e.support||{},u=e.hooks||{},d=e.dateSQL||{date:!0,time:!0,timestamp:!0},m=!1!==e.backslashStringEscapes,p=e.brackets||/^[\{}\(\)\[\]]/,g=e.punctuation||/^[;.,:]/;function h(e,s){var l=e.next();if(u[l]){var c=u[l](e,s);if(!1!==c)return c}if(o.hexNumber&&("0"==l&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==l||"X"==l)&&e.match(/^'[0-9a-fA-F]*'/)))return"number";if(o.binaryNumber&&(("b"==l||"B"==l)&&e.match(/^'[01]+'/)||"0"==l&&e.match(/^b[01]*/)))return"number";if(l.charCodeAt(0)>47&&l.charCodeAt(0)<58)return e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),o.decimallessFloat&&e.match(/^\.(?!\.)/),"number";if("?"==l&&(e.eatSpace()||e.eol()||e.eat(";")))return"macroName";if("'"==l||'"'==l&&o.doubleQuote)return s.tokenize=b(l),s.tokenize(e,s);if((o.nCharCast&&("n"==l||"N"==l)||o.charsetCast&&"_"==l&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(o.escapeConstant&&("e"==l||"E"==l)&&("'"==e.peek()||'"'==e.peek()&&o.doubleQuote))return s.tokenize=function(e,t){return(t.tokenize=b(e.next(),!0))(e,t)},"keyword";if(o.commentSlashSlash&&"/"==l&&e.eat("/"))return e.skipToEnd(),"comment";if(o.commentHash&&"#"==l||"-"==l&&e.eat("-")&&(!o.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==l&&e.eat("*"))return s.tokenize=f(1),s.tokenize(e,s);if("."!=l){if(i.test(l))return e.eatWhile(i),"operator";if(p.test(l))return"bracket";if(g.test(l))return e.eatWhile(g),"punctuation";if("{"==l&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var m=e.current().toLowerCase();return d.hasOwnProperty(m)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":r.hasOwnProperty(m)?"atom":a.hasOwnProperty(m)?"type":n.hasOwnProperty(m)?"keyword":t.hasOwnProperty(m)?"builtin":null}return o.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":e.match(/^\.+/)?null:o.ODBCdotTable&&e.match(/^[\w\d_$#]+/)?"type":void 0}function b(e,t){return function(r,a){for(var n,i=!1;null!=(n=r.next());){if(n==e&&!i){a.tokenize=h;break}i=(m||t)&&!i&&"\\"==n}return"string"}}function f(e){return function(t,r){var a=t.match(/^.*?(\/\*|\*\/)/);return a?"/*"==a[1]?r.tokenize=f(e+1):r.tokenize=e>1?f(e-1):h:t.skipToEnd(),"comment"}}function _(e,t,r){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:r}}return{name:"sql",startState:function(){return{tokenize:h,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),t.tokenize==h&&e.eatSpace())return null;var r=t.tokenize(e,t);if("comment"==r)return r;t.context&&null==t.context.align&&(t.context.align=!0);var a=e.current();return"("==a?_(e,t,")"):"["==a?_(e,t,"]"):t.context&&t.context.type==a&&function(e){e.indent=e.context.indent,e.context=e.context.prev}(t),r},indent:function(e,t,r){var a=e.context;if(!a)return null;var n=t.charAt(0)==a.type;return a.align?a.col+(n?0:1):a.indent+(n?0:r.unit)},languageData:{commentTokens:{line:o.commentSlashSlash?"//":o.commentHash?"#":"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}}}function n(e){for(var t;null!=(t=e.next());)if("`"==t&&!e.eat("`"))return"string.special";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"string.special":null}function i(e){return e.eat("@")&&(e.match("session."),e.match("local."),e.match("global.")),e.eat("'")?(e.match(/^.*'/),"string.special"):e.eat('"')?(e.match(/^.*"/),"string.special"):e.eat("`")?(e.match(/^.*`/),"string.special"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"string.special":null}function o(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"string.special":null}r.r(t),r.d(t,{cassandra:function(){return h},esper:function(){return w},gpSQL:function(){return v},gql:function(){return y},hive:function(){return f},mariaDB:function(){return p},msSQL:function(){return d},mySQL:function(){return m},pgSQL:function(){return _},plSQL:function(){return b},sparkSQL:function(){return x},sql:function(){return a},sqlite:function(){return g},standardSQL:function(){return u}});var s="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function l(e){for(var t={},r=e.split(" "),a=0;a!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:l("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":i}}),m=a({client:l("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:l(s+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:l("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:l("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:l("date time timestamp"),support:l("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":i,"`":n,"\\":o}}),p=a({client:l("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:l(s+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:l("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:l("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:l("date time timestamp"),support:l("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":i,"`":n,"\\":o}}),g=a({client:l("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:l(s+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:l("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:l("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:l("date time timestamp datetime"),support:l("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":i,":":i,"?":i,$:i,'"':function(e){for(var t;null!=(t=e.next());)if('"'==t&&!e.eat('"'))return"string.special";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"string.special":null},"`":n}}),h=a({client:{},keywords:l("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:l("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:l("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:l("commentSlashSlash decimallessFloat"),hooks:{}}),b=a({client:l("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:l("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:l("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:l("date time timestamp"),support:l("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),f=a({keywords:l("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:l("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:l("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:l("date timestamp"),support:l("ODBCdotTable doubleQuote binaryNumber hexNumber")}),_=a({client:l("source"),keywords:l(s+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:l("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:l("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:l("date time timestamp"),support:l("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),y=a({keywords:l("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:l("false true"),builtin:l("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),v=a({client:l("source"),keywords:l("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:l("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:l("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:l("date time timestamp"),support:l("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),x=a({keywords:l("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:l("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:l("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:l("date time timestamp"),support:l("ODBCdotTable doubleQuote zerolessFloat")}),w=a({client:l("source"),keywords:l("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:l("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:l("time"),support:l("decimallessFloat zerolessFloat binaryNumber hexNumber")})}}]); \ No newline at end of file diff --git a/media/assets/frontend/static/js/685.7291a8cc.chunk.js b/media/assets/frontend/static/js/685.7291a8cc.chunk.js new file mode 100644 index 00000000000..0397ca1981b --- /dev/null +++ b/media/assets/frontend/static/js/685.7291a8cc.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkseahub_frontend=self.webpackChunkseahub_frontend||[]).push([[685],{55685:function(e,t,r){r.r(t),r.d(t,{css:function(){return _},gss:function(){return S},keywords:function(){return q},less:function(){return O},mkCSS:function(){return i},sCSS:function(){return C}});var o=r(1413);function i(e){var t,r,i=(e=(0,o.Z)((0,o.Z)({},K),e)).inline,a=e.tokenHooks,n=e.documentTypes||{},l=e.mediaTypes||{},s=e.mediaFeatures||{},c=e.mediaValueKeywords||{},d=e.propertyKeywords||{},p=e.nonStandardPropertyKeywords||{},u=e.fontProperties||{},m=e.counterDescriptors||{},g=e.colorKeywords||{},h=e.valueKeywords||{},b=e.allowNested,f=e.lineComment,k=!0===e.supportsAtComponent,y=!1!==e.highlightNonStandardPropertyKeywords;function w(e,r){return t=r,e}function v(e,t){var r=e.next();if(a[r]){var o=a[r](e,t);if(!1!==o)return o}return"@"==r?(e.eatWhile(/[\w\\\-]/),w("def",e.current())):"="==r||("~"==r||"|"==r)&&e.eat("=")?w(null,"compare"):'"'==r||"'"==r?(t.tokenize=x(r),t.tokenize(e,t)):"#"==r?(e.eatWhile(/[\w\\\-]/),w("atom","hash")):"!"==r?(e.match(/^\s*\w*/),w("keyword","important")):/\d/.test(r)||"."==r&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),w("number","unit")):"-"!==r?/[,+>*\/]/.test(r)?w(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?w("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?w(null,r):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=z),w("variableName.function","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),w("property","word")):w(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),w("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?w("def","variable-definition"):w("variableName","variable")):e.match(/^\w+-/)?w("meta","meta"):void 0}function x(e){return function(t,r){for(var o,i=!1;null!=(o=t.next());){if(o==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==o}return(o==e||!i&&")"!=e)&&(r.tokenize=null),w("string","string")}}function z(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=x(")"),w(null,"(")}function P(e,t,r){this.type=e,this.indent=t,this.prev=r}function q(e,t,r,o){return e.context=new P(r,t.indentation()+(!1===o?0:t.indentUnit),e.context),r}function _(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function B(e,t,r){return S[r.context.type](e,t,r)}function C(e,t,r,o){for(var i=o||1;i>0;i--)r.context=r.context.prev;return B(e,t,r)}function O(e){var t=e.current().toLowerCase();r=h.hasOwnProperty(t)?"atom":g.hasOwnProperty(t)?"keyword":"variable"}var S={top:function(e,t,o){if("{"==e)return q(o,t,"block");if("}"==e&&o.context.prev)return _(o);if(k&&/@component/i.test(e))return q(o,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return q(o,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return q(o,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return o.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return q(o,t,"at");if("hash"==e)r="builtin";else if("word"==e)r="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return q(o,t,"interpolation");if(":"==e)return"pseudo";if(b&&"("==e)return q(o,t,"parens")}return o.context.type},block:function(e,t,o){if("word"==e){var i=t.current().toLowerCase();return d.hasOwnProperty(i)?(r="property","maybeprop"):p.hasOwnProperty(i)?(r=y?"string.special":"property","maybeprop"):b?(r=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(r="error","maybeprop")}return"meta"==e?"block":b||"hash"!=e&&"qualifier"!=e?S.top(e,t,o):(r="error","block")},maybeprop:function(e,t,r){return":"==e?q(r,t,"prop"):B(e,t,r)},prop:function(e,t,o){if(";"==e)return _(o);if("{"==e&&b)return q(o,t,"propBlock");if("}"==e||"{"==e)return C(e,t,o);if("("==e)return q(o,t,"parens");if("hash"!=e||/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t.current())){if("word"==e)O(t);else if("interpolation"==e)return q(o,t,"interpolation")}else r="error";return"prop"},propBlock:function(e,t,o){return"}"==e?_(o):"word"==e?(r="property","maybeprop"):o.context.type},parens:function(e,t,r){return"{"==e||"}"==e?C(e,t,r):")"==e?_(r):"("==e?q(r,t,"parens"):"interpolation"==e?q(r,t,"interpolation"):("word"==e&&O(t),"parens")},pseudo:function(e,t,o){return"meta"==e?"pseudo":"word"==e?(r="variableName.constant",o.context.type):B(e,t,o)},documentTypes:function(e,t,o){return"word"==e&&n.hasOwnProperty(t.current())?(r="tag",o.context.type):S.atBlock(e,t,o)},atBlock:function(e,t,o){if("("==e)return q(o,t,"atBlock_parens");if("}"==e||";"==e)return C(e,t,o);if("{"==e)return _(o)&&q(o,t,b?"block":"top");if("interpolation"==e)return q(o,t,"interpolation");if("word"==e){var i=t.current().toLowerCase();r="only"==i||"not"==i||"and"==i||"or"==i?"keyword":l.hasOwnProperty(i)?"attribute":s.hasOwnProperty(i)?"property":c.hasOwnProperty(i)?"keyword":d.hasOwnProperty(i)?"property":p.hasOwnProperty(i)?y?"string.special":"property":h.hasOwnProperty(i)?"atom":g.hasOwnProperty(i)?"keyword":"error"}return o.context.type},atComponentBlock:function(e,t,o){return"}"==e?C(e,t,o):"{"==e?_(o)&&q(o,t,b?"block":"top",!1):("word"==e&&(r="error"),o.context.type)},atBlock_parens:function(e,t,r){return")"==e?_(r):"{"==e||"}"==e?C(e,t,r,2):S.atBlock(e,t,r)},restricted_atBlock_before:function(e,t,o){return"{"==e?q(o,t,"restricted_atBlock"):"word"==e&&"@counter-style"==o.stateArg?(r="variable","restricted_atBlock_before"):B(e,t,o)},restricted_atBlock:function(e,t,o){return"}"==e?(o.stateArg=null,_(o)):"word"==e?(r="@font-face"==o.stateArg&&!u.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==o.stateArg&&!m.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,o){return"word"==e?(r="variable","keyframes"):"{"==e?q(o,t,"top"):B(e,t,o)},at:function(e,t,o){return";"==e?_(o):"{"==e||"}"==e?C(e,t,o):("word"==e?r="tag":"hash"==e&&(r="builtin"),"at")},interpolation:function(e,t,o){return"}"==e?_(o):"{"==e||";"==e?C(e,t,o):("word"==e?r="variable":"variable"!=e&&"("!=e&&")"!=e&&(r="error"),"interpolation")}};return{name:e.name,startState:function(){return{tokenize:null,state:i?"block":"top",stateArg:null,context:new P(i?"block":"top",0,null)}},token:function(e,o){if(!o.tokenize&&e.eatSpace())return null;var i=(o.tokenize||v)(e,o);return i&&"object"==typeof i&&(t=i[1],i=i[0]),r=i,"comment"!=t&&(o.state=S[o.state](t,e,o)),r},indent:function(e,t,r){var o=e.context,i=t&&t.charAt(0),a=o.indent;return"prop"!=o.type||"}"!=i&&")"!=i||(o=o.prev),o.prev&&("}"!=i||"block"!=o.type&&"top"!=o.type&&"interpolation"!=o.type&&"restricted_atBlock"!=o.type?(")"!=i||"parens"!=o.type&&"atBlock_parens"!=o.type)&&("{"!=i||"at"!=o.type&&"atBlock"!=o.type)||(a=Math.max(0,o.indent-r.unit)):a=(o=o.prev).indent),a},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:f,block:{open:"/*",close:"*/"}},autocomplete:j}}}function a(e){for(var t={},r=0;r!?|~^@]/,f=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function l(e,n,a){return t=e,r=a,n}function d(e,t){var r,n=e.next();if('"'==n||"'"==n)return t.tokenize=(r=n,function(e,t){var n,i=!1;if(a&&"@"==e.peek()&&e.match(f))return t.tokenize=d,l("jsonld-keyword","meta");for(;null!=(n=e.next())&&(n!=r||i);)i=!i&&"\\"==n;return i||(t.tokenize=d),l("string","string")}),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return l("number","number");if("."==n&&e.match(".."))return l("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return l(n);if("="==n&&e.eat(">"))return l("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return l("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),l("number","number");if("/"==n)return e.eat("*")?(t.tokenize=m,m(e,t)):e.eat("/")?(e.skipToEnd(),l("comment","comment")):function(e,t,r){return t.tokenize==d&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}(e,t,1)?(function(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),l("regexp","string.special")):(e.eat("="),l("operator","operator",e.current()));if("`"==n)return t.tokenize=p,p(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),l("meta","meta");if("#"==n&&e.eatWhile(u))return l("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),l("comment","comment");if(s.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?l("."):l("operator","operator",e.current());if(u.test(n)){e.eatWhile(u);var i=e.current();if("."!=t.lastType){if(c.propertyIsEnumerable(i)){var o=c[i];return l(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return l("async","keyword",i)}return l("variable","variable",i)}}function m(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=d;break}n="*"==r}return l("comment","comment")}function p(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=d;break}n=!n&&"\\"==r}return l("quasi","string.special",e.current())}var k="([{}])";function v(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(o){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,i=!1,c=r-1;c>=0;--c){var s=e.string.charAt(c),f=k.indexOf(s);if(f>=0&&f<3){if(!a){++c;break}if(0==--a){"("==s&&(i=!0);break}}else if(f>=3&&f<6)++a;else if(u.test(s))i=!0;else if(/["'\/`]/.test(s))for(;;--c){if(0==c)return;if(e.string.charAt(c-1)==s&&"\\"!=e.string.charAt(c-2)){c--;break}}else if(i&&!a){++c;break}}i&&!a&&(t.fatArrowAt=c)}}var y={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function w(e,t,r,n,a,i){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=i,null!=n&&(this.align=n)}function b(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}var h={state:null,column:null,marked:null,cc:null};function x(){for(var e=arguments.length-1;e>=0;e--)h.cc.push(arguments[e])}function g(){return x.apply(null,arguments),!0}function V(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function A(t){var r=h.state;if(h.marked="def",r.context)if("var"==r.lexical.info&&r.context&&r.context.block){var n=z(t,r.context);if(null!=n)return void(r.context=n)}else if(!V(t,r.localVars))return void(r.localVars=new $(t,r.localVars));e.globalVars&&!V(t,r.globalVars)&&(r.globalVars=new $(t,r.globalVars))}function z(e,t){if(t){if(t.block){var r=z(e,t.prev);return r?r==t.prev?t:new T(r,t.vars,!0):null}return V(e,t.vars)?t:new T(t.prev,new $(e,t.vars),!1)}return null}function j(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function T(e,t,r){this.prev=e,this.vars=t,this.block=r}function $(e,t){this.name=e,this.next=t}var _=new $("this",new $("arguments",null));function O(){h.state.context=new T(h.state.context,h.state.localVars,!1),h.state.localVars=_}function q(){h.state.context=new T(h.state.context,h.state.localVars,!0),h.state.localVars=null}function E(){h.state.localVars=h.state.context.vars,h.state.context=h.state.context.prev}function I(e,t){var r=function(){var r=h.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new w(n,h.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function C(){var e=h.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function S(e){return function t(r){return r==e?g():";"==e||"}"==r||")"==r||"]"==r?x():g(t)}}function N(e,t){return"var"==e?g(I("vardef",t),he,S(";"),C):"keyword a"==e?g(I("form"),D,N,C):"keyword b"==e?g(I("form"),N,C):"keyword d"==e?h.stream.match(/^\s*$/,!1)?g():g(I("stat"),U,S(";"),C):"debugger"==e?g(S(";")):"{"==e?g(I("}"),q,ae,C,E):";"==e?g():"if"==e?("else"==h.state.lexical.info&&h.state.cc[h.state.cc.length-1]==C&&h.state.cc.pop()(),g(I("form"),D,N,C,je)):"function"==e?g(Oe):"for"==e?g(I("form"),q,Te,N,E,C):"class"==e||o&&"interface"==t?(h.marked="keyword",g(I("form","class"==e?e:t),Se,C)):"variable"==e?o&&"declare"==t?(h.marked="keyword",g(N)):o&&("module"==t||"enum"==t||"type"==t)&&h.stream.match(/^\s*\w/,!1)?(h.marked="keyword","enum"==t?g(Le):"type"==t?g(Ee,S("operator"),se,S(";")):g(I("form"),xe,S("{"),I("}"),ae,C,C)):o&&"namespace"==t?(h.marked="keyword",g(I("form"),W,N,C)):o&&"abstract"==t?(h.marked="keyword",g(N)):g(I("stat"),X):"switch"==e?g(I("form"),D,S("{"),I("}","switch"),q,ae,C,C,E):"case"==e?g(W,S(":")):"default"==e?g(S(":")):"catch"==e?g(I("form"),O,P,N,C,E):"export"==e?g(I("stat"),Be,C):"import"==e?g(I("stat"),Fe,C):"async"==e?g(N):"@"==t?g(W,N):x(I("stat"),W,S(";"),C)}function P(e){if("("==e)return g(Ie,S(")"))}function W(e,t){return F(e,t,!1)}function B(e,t){return F(e,t,!0)}function D(e){return"("!=e?x():g(I(")"),U,S(")"),C)}function F(e,t,r){if(h.state.fatArrowAt==h.stream.start){var n=r?M:L;if("("==e)return g(O,I(")"),re(Ie,")"),C,S("=>"),n,E);if("variable"==e)return x(O,xe,S("=>"),n,E)}var a=r?H:G;return y.hasOwnProperty(e)?g(a):"function"==e?g(Oe,a):"class"==e||o&&"interface"==t?(h.marked="keyword",g(I("form"),Ce,C)):"keyword c"==e||"async"==e?g(r?B:W):"("==e?g(I(")"),U,S(")"),C,a):"operator"==e||"spread"==e?g(r?B:W):"["==e?g(I("]"),Ke,C,a):"{"==e?ne(Z,"}",null,a):"quasi"==e?x(J,a):"new"==e?g(function(e){return function(t){return"."==t?g(e?R:Q):"variable"==t&&o?g(ye,e?H:G):x(e?B:W)}}(r)):g()}function U(e){return e.match(/[;\}\)\],]/)?x():x(W)}function G(e,t){return","==e?g(U):H(e,t,!1)}function H(e,t,r){var n=0==r?G:H,a=0==r?W:B;return"=>"==e?g(O,r?M:L,E):"operator"==e?/\+\+|--/.test(t)||o&&"!"==t?g(n):o&&"<"==t&&h.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?g(I(">"),re(se,">"),C,n):"?"==t?g(W,S(":"),a):g(a):"quasi"==e?x(J,n):";"!=e?"("==e?ne(B,")","call",n):"."==e?g(Y,n):"["==e?g(I("]"),U,S("]"),C,n):o&&"as"==t?(h.marked="keyword",g(se,n)):"regexp"==e?(h.state.lastType=h.marked="operator",h.stream.backUp(h.stream.pos-h.stream.start-1),g(a)):void 0:void 0}function J(e,t){return"quasi"!=e?x():"${"!=t.slice(t.length-2)?g(J):g(U,K)}function K(e){if("}"==e)return h.marked="string.special",h.state.tokenize=p,g(J)}function L(e){return v(h.stream,h.state),x("{"==e?N:W)}function M(e){return v(h.stream,h.state),x("{"==e?N:B)}function Q(e,t){if("target"==t)return h.marked="keyword",g(G)}function R(e,t){if("target"==t)return h.marked="keyword",g(H)}function X(e){return":"==e?g(C,N):x(G,S(";"),C)}function Y(e){if("variable"==e)return h.marked="property",g()}function Z(e,t){return"async"==e?(h.marked="property",g(Z)):"variable"==e||"keyword"==h.style?(h.marked="property","get"==t||"set"==t?g(ee):(o&&h.state.fatArrowAt==h.stream.start&&(r=h.stream.match(/^\s*:\s*/,!1))&&(h.state.fatArrowAt=h.stream.pos+r[0].length),g(te))):"number"==e||"string"==e?(h.marked=a?"property":h.style+" property",g(te)):"jsonld-keyword"==e?g(te):o&&j(t)?(h.marked="keyword",g(Z)):"["==e?g(W,ie,S("]"),te):"spread"==e?g(B,te):"*"==t?(h.marked="keyword",g(Z)):":"==e?x(te):void 0;var r}function ee(e){return"variable"!=e?x(te):(h.marked="property",g(Oe))}function te(e){return":"==e?g(B):"("==e?x(Oe):void 0}function re(e,t,r){function n(a,i){if(r?r.indexOf(a)>-1:","==a){var o=h.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),g((function(r,n){return r==t||n==t?x():x(e)}),n)}return a==t||i==t?g():r&&r.indexOf(";")>-1?x(e):g(S(t))}return function(r,a){return r==t||a==t?g():x(e,n)}}function ne(e,t,r){for(var n=3;n"),se):"quasi"==e?x(me,ve):void 0}function fe(e){if("=>"==e)return g(se)}function le(e){return e.match(/[\}\)\]]/)?g():","==e||";"==e?g(le):x(de,le)}function de(e,t){return"variable"==e||"keyword"==h.style?(h.marked="property",g(de)):"?"==t||"number"==e||"string"==e?g(de):":"==e?g(se):"["==e?g(S("variable"),oe,S("]"),de):"("==e?x(qe,de):e.match(/[;\}\)\],]/)?void 0:g()}function me(e,t){return"quasi"!=e?x():"${"!=t.slice(t.length-2)?g(me):g(se,pe)}function pe(e){if("}"==e)return h.marked="string.special",h.state.tokenize=p,g(me)}function ke(e,t){return"variable"==e&&h.stream.match(/^\s*[?:]/,!1)||"?"==t?g(ke):":"==e?g(se):"spread"==e?g(ke):x(se)}function ve(e,t){return"<"==t?g(I(">"),re(se,">"),C,ve):"|"==t||"."==e||"&"==t?g(se):"["==e?g(se,S("]"),ve):"extends"==t||"implements"==t?(h.marked="keyword",g(se)):"?"==t?g(se,S(":"),se):void 0}function ye(e,t){if("<"==t)return g(I(">"),re(se,">"),C,ve)}function we(){return x(se,be)}function be(e,t){if("="==t)return g(se)}function he(e,t){return"enum"==t?(h.marked="keyword",g(Le)):x(xe,ie,Ae,ze)}function xe(e,t){return o&&j(t)?(h.marked="keyword",g(xe)):"variable"==e?(A(t),g()):"spread"==e?g(xe):"["==e?ne(Ve,"]"):"{"==e?ne(ge,"}"):void 0}function ge(e,t){return"variable"!=e||h.stream.match(/^\s*:/,!1)?("variable"==e&&(h.marked="property"),"spread"==e?g(xe):"}"==e?x():"["==e?g(W,S("]"),S(":"),ge):g(S(":"),xe,Ae)):(A(t),g(Ae))}function Ve(){return x(xe,Ae)}function Ae(e,t){if("="==t)return g(B)}function ze(e){if(","==e)return g(he)}function je(e,t){if("keyword b"==e&&"else"==t)return g(I("form","else"),N,C)}function Te(e,t){return"await"==t?g(Te):"("==e?g(I(")"),$e,C):void 0}function $e(e){return"var"==e?g(he,_e):"variable"==e?g(_e):x(_e)}function _e(e,t){return")"==e?g():";"==e?g(_e):"in"==t||"of"==t?(h.marked="keyword",g(W,_e)):x(W,_e)}function Oe(e,t){return"*"==t?(h.marked="keyword",g(Oe)):"variable"==e?(A(t),g(Oe)):"("==e?g(O,I(")"),re(Ie,")"),C,ue,N,E):o&&"<"==t?g(I(">"),re(we,">"),C,Oe):void 0}function qe(e,t){return"*"==t?(h.marked="keyword",g(qe)):"variable"==e?(A(t),g(qe)):"("==e?g(O,I(")"),re(Ie,")"),C,ue,E):o&&"<"==t?g(I(">"),re(we,">"),C,qe):void 0}function Ee(e,t){return"keyword"==e||"variable"==e?(h.marked="type",g(Ee)):"<"==t?g(I(">"),re(we,">"),C):void 0}function Ie(e,t){return"@"==t&&g(W,Ie),"spread"==e?g(Ie):o&&j(t)?(h.marked="keyword",g(Ie)):o&&"this"==e?g(ie,Ae):x(xe,ie,Ae)}function Ce(e,t){return"variable"==e?Se(e,t):Ne(e,t)}function Se(e,t){if("variable"==e)return A(t),g(Ne)}function Ne(e,t){return"<"==t?g(I(">"),re(we,">"),C,Ne):"extends"==t||"implements"==t||o&&","==e?("implements"==t&&(h.marked="keyword"),g(o?se:W,Ne)):"{"==e?g(I("}"),Pe,C):void 0}function Pe(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||o&&j(t))&&h.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(h.marked="keyword",g(Pe)):"variable"==e||"keyword"==h.style?(h.marked="property",g(We,Pe)):"number"==e||"string"==e?g(We,Pe):"["==e?g(W,ie,S("]"),We,Pe):"*"==t?(h.marked="keyword",g(Pe)):o&&"("==e?x(qe,Pe):";"==e||","==e?g(Pe):"}"==e?g():"@"==t?g(W,Pe):void 0}function We(e,t){if("!"==t||"?"==t)return g(We);if(":"==e)return g(se,Ae);if("="==t)return g(B);var r=h.state.lexical.prev;return x(r&&"interface"==r.info?qe:Oe)}function Be(e,t){return"*"==t?(h.marked="keyword",g(Je,S(";"))):"default"==t?(h.marked="keyword",g(W,S(";"))):"{"==e?g(re(De,"}"),Je,S(";")):x(N)}function De(e,t){return"as"==t?(h.marked="keyword",g(S("variable"))):"variable"==e?x(B,De):void 0}function Fe(e){return"string"==e?g():"("==e?x(W):"."==e?x(G):x(Ue,Ge,Je)}function Ue(e,t){return"{"==e?ne(Ue,"}"):("variable"==e&&A(t),"*"==t&&(h.marked="keyword"),g(He))}function Ge(e){if(","==e)return g(Ue,Ge)}function He(e,t){if("as"==t)return h.marked="keyword",g(Ue)}function Je(e,t){if("from"==t)return h.marked="keyword",g(W)}function Ke(e){return"]"==e?g():x(re(B,"]"))}function Le(){return x(I("form"),xe,S("{"),I("}"),re(Me,"}"),C,C)}function Me(){return x(xe,Ae)}return O.lex=q.lex=!0,E.lex=!0,C.lex=!0,{name:e.name,startState:function(t){var r={tokenize:d,lastType:"sof",cc:[],lexical:new w(-t,0,"block",!1),localVars:e.localVars,context:e.localVars&&new T(null,null,!1),indented:0};return e.globalVars&&"object"==typeof e.globalVars&&(r.globalVars=e.globalVars),r},token:function(e,n){if(e.sol()&&(n.lexical.hasOwnProperty("align")||(n.lexical.align=!1),n.indented=e.indentation(),v(e,n)),n.tokenize!=m&&e.eatSpace())return null;var a=n.tokenize(e,n);return"comment"==t?a:(n.lastType="operator"!=t||"++"!=r&&"--"!=r?t:"incdec",function(e,t,r,n,a){var o=e.cc;for(h.state=e,h.stream=a,h.marked=null,h.cc=o,h.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():i?W:N)(r,n)){for(;o.length&&o[o.length-1].lex;)o.pop()();return h.marked?h.marked:"variable"==r&&b(e,n)?"variableName.local":t}}(n,a,t,r,e))},indent:function(t,r,a){if(t.tokenize==m||t.tokenize==p)return null;if(t.tokenize!=d)return 0;var i,o=r&&r.charAt(0),u=t.lexical;if(!/^\s*else\b/.test(r))for(var c=t.cc.length-1;c>=0;--c){var f=t.cc[c];if(f==C)u=u.prev;else if(f!=je&&f!=E)break}for(;("stat"==u.type||"form"==u.type)&&("}"==o||(i=t.cc[t.cc.length-1])&&(i==G||i==H)&&!/^[,\.=+\-*:?[\(]/.test(r));)u=u.prev;n&&")"==u.type&&"stat"==u.prev.type&&(u=u.prev);var l=u.type,k=o==l;return"vardef"==l?u.indented+("operator"==t.lastType||","==t.lastType?u.info.length+1:0):"form"==l&&"{"==o?u.indented:"form"==l?u.indented+a.unit:"stat"==l?u.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||s.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?n||a.unit:0):"switch"!=u.info||k||0==e.doubleIndentSwitch?u.align?u.column+(k?0:1):u.indented+(k?0:a.unit):u.indented+(/^(?:case|default)\b/.test(r)?a.unit:2*a.unit)},languageData:{indentOnInput:/^\s*(?:case .*?:|default:|\{|\})$/,commentTokens:i?void 0:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]},wordChars:"$"}}}r.r(t),r.d(t,{javascript:function(){return a},json:function(){return i},jsonld:function(){return o},typescript:function(){return u}});var a=n({name:"javascript"}),i=n({name:"json",json:!0}),o=n({name:"json",jsonld:!0}),u=n({name:"typescript",typescript:!0})}}]); \ No newline at end of file diff --git a/media/assets/frontend/static/js/75.a877b6a8.chunk.js b/media/assets/frontend/static/js/75.a877b6a8.chunk.js new file mode 100644 index 00000000000..b019e06917c --- /dev/null +++ b/media/assets/frontend/static/js/75.a877b6a8.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkseahub_frontend=self.webpackChunkseahub_frontend||[]).push([[75],{58075:function(e,t,n){function r(e){for(var t={},n=e.split(" "),r=0;r","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],o=y(r),i=y(a),c=y(s),d=y(["->","->>","as->","binding","bound-fn","case","catch","comment","cond","cond->","cond->>","condp","def","definterface","defmethod","defn","defmacro","defprotocol","defrecord","defstruct","deftype","do","doseq","dotimes","doto","extend","extend-protocol","extend-type","fn","for","future","if","if-let","if-not","if-some","let","letfn","locking","loop","ns","proxy","reify","struct-map","some->","some->>","try","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn"]),l=/^(?:[\\\[\]\s"(),;@^`{}~]|$)/,u=/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,p=/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,m=/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;function f(e,t){if(e.eatSpace()||e.eat(","))return["space",null];if(e.match(u))return[null,"number"];if(e.match(p))return[null,"string.special"];if(e.eat(/^"/))return(t.tokenize=h)(e,t);if(e.eat(/^[(\[{]/))return["open","bracket"];if(e.eat(/^[)\]}]/))return["close","bracket"];if(e.eat(/^;/))return e.skipToEnd(),["space","comment"];if(e.eat(/^[#'@^`~]/))return[null,"meta"];var n=e.match(m),r=n&&n[0];return r?"comment"===r&&"("===t.lastToken?(t.tokenize=b)(e,t):k(r,o)||":"===r.charAt(0)?["symbol","atom"]:k(r,i)||k(r,c)?["symbol","keyword"]:"("===t.lastToken?["symbol","builtin"]:["symbol","variable"]:(e.next(),e.eatWhile((function(e){return!k(e,l)})),[null,"error"])}function h(e,t){for(var n,r=!1;n=e.next();){if('"'===n&&!r){t.tokenize=f;break}r=!r&&"\\"===n}return[null,"string"]}function b(e,t){for(var n,r=1;n=e.next();)if(")"===n&&r--,"("===n&&r++,0===r){e.backUp(1),t.tokenize=f;break}return["space","comment"]}function y(e){for(var t={},n=0;n\=|\>|\=\=|\&\&|\|\|)/,m={name:"rpmspec",startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(r,e){if("#"==r.peek())return r.skipToEnd(),"comment";if(r.sol()){if(r.match(u))return"header";if(r.match(p))return"atom"}if(r.match(/^\$\w+/))return"def";if(r.match(/^\$\{\w+\}/))return"def";if(r.match(l))return"keyword";if(r.match(s))return e.controlFlow=!0,"keyword";if(e.controlFlow){if(r.match(f))return"operator";if(r.match(/^(\d+)/))return"number";r.eol()&&(e.controlFlow=!1)}if(r.match(i))return r.eol()&&(e.controlFlow=!1),"number";if(r.match(/^%[\w]+/))return r.match("(")&&(e.macroParameters=!0),"keyword";if(e.macroParameters){if(r.match(/^\d+/))return"number";if(r.match(")"))return e.macroParameters=!1,"keyword"}return r.match(/^%\{\??[\w \-\:\!]+\}/)?(r.eol()&&(e.controlFlow=!1),"def"):(r.next(),null)}}}}]); \ No newline at end of file diff --git a/media/assets/frontend/static/js/TCAccept.e482fe30.js b/media/assets/frontend/static/js/TCAccept.e482fe30.js new file mode 100644 index 00000000000..5e881f3ee7f --- /dev/null +++ b/media/assets/frontend/static/js/TCAccept.e482fe30.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkseahub_frontend=self.webpackChunkseahub_frontend||[]).push([[408],{3531:function(e,n,t){var s=t(15671),r=t(43144),o=t(60136),a=t(29388),c=t(47313),i=t(1168),d=t(21303),l=t(61805),u=t(93564),m=t(93190),h=t(2551),f=(t(93984),t(46417)),x=window.app.pageOptions.csrfToken,p=window.tc,j=p.termsName,v=p.formAction,y=p.formTerms,w=p.formReturnTo,b=p.logoutURL,Z=p.termsText,_=function(e){(0,o.Z)(t,e);var n=(0,a.Z)(t);function t(){return(0,s.Z)(this,t),n.apply(this,arguments)}return(0,r.Z)(t,[{key:"render",value:function(){return(0,f.jsxs)("div",{className:"h-100 d-flex flex-column",children:[(0,f.jsxs)("div",{className:"top-header d-flex justify-content-between",children:[(0,f.jsx)(u.Z,{}),(0,f.jsx)(m.Z,{})]}),(0,f.jsx)("div",{className:"o-auto",children:(0,f.jsxs)("div",{className:"py-4 px-4 my-6 mx-auto content",children:[(0,f.jsx)("h2",{dangerouslySetInnerHTML:{__html:j}}),(0,f.jsx)("div",{className:"article",children:(0,f.jsx)(h.Z,{content:Z})}),(0,f.jsxs)("form",{action:v,method:"post",children:[(0,f.jsx)("input",{type:"hidden",name:"csrfmiddlewaretoken",value:x}),(0,f.jsx)("div",{dangerouslySetInnerHTML:{__html:y}}),(0,f.jsx)("div",{dangerouslySetInnerHTML:{__html:w}}),(0,f.jsx)(d.Z,{type:"submit",children:(0,l.ih)("Accept")}),(0,f.jsx)("a",{href:b,className:"btn btn-secondary ml-2",children:(0,l.ih)("Cancel")})]})]})})]})}}]),t}(c.Component);i.render((0,f.jsx)(_,{}),document.getElementById("wrapper"))},93984:function(){}},function(e){e.O(0,[351],(function(){return n=3531,e(e.s=n);var n}));e.O()}]); \ No newline at end of file diff --git a/media/assets/frontend/static/js/TCView.581dc96f.js b/media/assets/frontend/static/js/TCView.581dc96f.js new file mode 100644 index 00000000000..0becd1ef2ff --- /dev/null +++ b/media/assets/frontend/static/js/TCView.581dc96f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkseahub_frontend=self.webpackChunkseahub_frontend||[]).push([[90],{45129:function(e,n,t){var s=t(15671),r=t(43144),c=t(60136),a=t(29388),u=t(47313),i=t(1168),l=t(93564),o=t(93190),d=t(2551),h=(t(93984),t(46417)),x=window.tc,f=x.termsName,m=x.termsText,j=function(e){(0,c.Z)(t,e);var n=(0,a.Z)(t);function t(){return(0,s.Z)(this,t),n.apply(this,arguments)}return(0,r.Z)(t,[{key:"render",value:function(){return(0,h.jsxs)("div",{className:"h-100 d-flex flex-column",children:[(0,h.jsxs)("div",{className:"top-header d-flex justify-content-between",children:[(0,h.jsx)(l.Z,{}),(0,h.jsx)(o.Z,{})]}),(0,h.jsx)("div",{className:"o-auto",children:(0,h.jsxs)("div",{className:"py-4 px-4 my-6 mx-auto content",children:[(0,h.jsx)("h2",{dangerouslySetInnerHTML:{__html:f}}),(0,h.jsx)("div",{className:"article",children:(0,h.jsx)(d.Z,{content:m})})]})})]})}}]),t}(u.Component);i.render((0,h.jsx)(j,{}),document.getElementById("wrapper"))},93984:function(){}},function(e){e.O(0,[351],(function(){return n=45129,e(e.s=n);var n}));e.O()}]); \ No newline at end of file diff --git a/media/assets/frontend/static/js/app.c29a42f3.js b/media/assets/frontend/static/js/app.c29a42f3.js new file mode 100644 index 00000000000..4e0141bfa2c --- /dev/null +++ b/media/assets/frontend/static/js/app.c29a42f3.js @@ -0,0 +1,2 @@ +/*! For license information please see app.c29a42f3.js.LICENSE.txt */ +(self.webpackChunkseahub_frontend=self.webpackChunkseahub_frontend||[]).push([[143],{63816:function(e,t,n){"use strict";var i=n(15671),s=n(43144),r=n(60136),o=n(29388),a=n(47313),l=n(1168),c=n(3885),h=n(66367),p=n.n(h),d=n(42995),u=n(61805),m=n(83854),g=n(46417),f=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).close=function(){if(s.setState({isClosed:!0}),navigator.cookieEnabled){var e=new Date,t=document.cookie.split("; "),n=!1,i=u.JR+"_";e.setTime(e.getTime()+12096e5),i+="; expires="+e.toGMTString()+"; path="+u.ze;for(var r=0,o=t.length;r ",p]});break;case"delete":e=(0,u.ih)("Deleted library"),t=s.repo_name;break;case"recover":e=(0,u.ih)("Restored library"),t=p;break;case"clean-up-trash":e=(0,u.ih)("Cleaned trash"),t=0==s.days?(0,u.ih)("Removed all items from trash."):(0,u.ih)("Removed items older than {n} days from trash.").replace("{n}",s.days),l=!0}else if("draft"==s.obj_type){var f="".concat(u.ze,"lib/").concat(s.repo_id,"/file").concat(m.c.encodePath(s.path)),v=(0,g.jsx)("a",{href:f,target:"_blank",rel:"noreferrer",children:s.name});e=(0,u.ih)("Publish draft"),t=v,l=!0}else if("files"==s.obj_type){var x="".concat(u.ze,"lib/").concat(s.repo_id,"/file").concat(m.c.encodePath(s.path));s.name.endsWith("(draft).md")&&(x=u.xx+"/drafts/"+s.draft_id+"/");var y="').concat(s.name,"");s.name.endsWith("(draft).md")&&!s.draft_id&&(y=s.name);var D=s.createdFilesCount-1,w=(0,u.ih)("{file} and {n} other files").replace("{file}",y).replace("{n}",D);e=(0,u.ih)("Created {n} files").replace("{n}",s.createdFilesCount),t=(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)("p",{className:"m-0 d-inline",dangerouslySetInnerHTML:{__html:w}}),n&&(0,g.jsx)("button",{type:"button",onClick:this.onListCreatedFilesToggle,className:"activity-details text-secondary ml-2 border-0 p-0 bg-transparent",children:(0,u.ih)("details")})]}),l=!0}else if("file"==s.obj_type){var S=s.name.endsWith("(draft).md"),j=S?u.xx+"/drafts/"+s.draft_id+"/":"".concat(u.ze,"lib/").concat(s.repo_id,"/file").concat(m.c.encodePath(s.path)),C=(0,g.jsx)("a",{href:j,target:"_blank",rel:"noreferrer",children:s.name});switch(S&&!s.draft_id&&(C=s.name),s.op_type){case"create":e=S?(0,u.ih)("Created draft"):(0,u.ih)("Created file"),t=C,l=!0;break;case"delete":e=S?(0,u.ih)("Deleted draft"):(0,u.ih)("Deleted file"),t=s.name,l=!0;break;case"recover":e=(0,u.ih)("Restored file"),t=C,l=!0;break;case"rename":e=(0,u.ih)("Renamed file"),t=(0,g.jsxs)("span",{children:[s.old_name," => ",C]}),l=!0;break;case"move":var k=(0,g.jsx)("a",{href:j,children:s.path});e=(0,u.ih)("Moved file"),t=(0,g.jsxs)("span",{children:[s.old_path," => ",k]}),l=!0;break;case"edit":e=S?(0,u.ih)("Updated draft"):(0,u.ih)("Updated file"),t=C,l=!0}}else{var I=u.ze+"library/"+s.repo_id+"/"+encodeURIComponent(s.repo_name)+m.c.encodePath(s.path),M=(0,g.jsx)("a",{href:I,target:"_blank",rel:"noreferrer",children:s.name});switch(s.op_type){case"create":e=(0,u.ih)("Created folder"),t=M,l=!0;break;case"delete":e=(0,u.ih)("Deleted folder"),t=s.name,l=!0;break;case"recover":e=(0,u.ih)("Restored folder"),t=M,l=!0;break;case"rename":e=(0,u.ih)("Renamed folder"),t=(0,g.jsxs)("span",{children:[s.old_name," => ",M]}),l=!0;break;case"move":var N=(0,g.jsx)("a",{href:I,children:s.path});e=(0,u.ih)("Moved folder"),t=(0,g.jsxs)("span",{children:[s.old_path," => ",N]}),l=!0}}var Z=!0;if(r>0){var P=o[r-1].time;Z=!A()(s.time).isSame(P,"day")}return(0,g.jsxs)(a.Fragment,{children:[Z&&(0,g.jsx)("tr",{children:(0,g.jsx)("td",{colSpan:n?5:3,className:"border-top-0",children:A()(s.time).format("YYYY-MM-DD")})}),n?(0,g.jsxs)("tr",{children:[(0,g.jsx)("td",{className:"text-center",children:(0,g.jsx)("img",{src:s.avatar_url,alt:"",width:"32",height:"32",className:"avatar"})}),(0,g.jsx)("td",{children:(0,g.jsx)("a",{href:c,children:s.author_name})}),(0,g.jsx)("td",{children:e}),(0,g.jsxs)("td",{children:[t,l&&(0,g.jsx)("br",{}),l&&d]}),(0,g.jsx)("td",{className:"text-secondary",children:(0,g.jsx)("time",{datetime:s.time,is:"relative-time",title:A()(s.time).format("llll"),children:A()(s.time).fromNow()})})]}):(0,g.jsxs)("tr",{children:[(0,g.jsx)("td",{className:"text-center align-top",children:(0,g.jsx)("img",{src:s.avatar_url,alt:"",width:"32",height:"32",className:"avatar"})}),(0,g.jsxs)("td",{children:[(0,g.jsx)("a",{href:c,children:s.author_name}),(0,g.jsx)("p",{className:"m-0 text-secondary",children:e}),t]}),(0,g.jsxs)("td",{className:"text-right align-top",children:[(0,g.jsx)("span",{className:"text-secondary mobile-activity-time",children:(0,g.jsx)("time",{datetime:s.time,is:"relative-time",title:A()(s.time).format("llll"),children:A()(s.time).fromNow()})}),l&&(0,g.jsx)("br",{}),l&&p]})]}),this.state.isListCreatedFiles&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(te,{activity:s,toggleCancel:this.onListCreatedFilesToggle})})]})}}]),n}(a.Component);A().locale(window.app.config.lang);var ie=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"render",value:function(){var e=m.c.isDesktop(),t=this.props,n=t.items,i=t.isLoadingMore;if(!n.length)return(0,g.jsx)(O.Z,{children:(0,g.jsx)("p",{children:(0,u.ih)("No more activities")})});var s=(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"8%"}),(0,g.jsx)("th",{width:"15%",children:(0,u.ih)("User")}),(0,g.jsx)("th",{width:"20%",children:(0,u.ih)("Operation")}),(0,g.jsxs)("th",{width:"37%",children:[(0,u.ih)("File")," / ",(0,u.ih)("Library")]}),(0,g.jsx)("th",{width:"20%",children:(0,u.ih)("Time")})]})}),r=(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"15%"}),(0,g.jsx)("th",{width:"53%"}),(0,g.jsx)("th",{width:"32%"})]})});return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsxs)("table",{className:"table-hover table-thead-hidden",children:[e?s:r,(0,g.jsx)("tbody",{children:n.map((function(t,i){return(0,g.jsx)(ne,{isDesktop:e,item:t,index:i,items:n},i)}))})]}),i?(0,g.jsx)("span",{className:"loading-icon loading-tip"}):""]})}}]),n}(a.Component),se=ie,re=n(5684),oe=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).handleOutsideClick=function(e){s.state.isPopoverOpen&&!s.userSelector.contains(e.target)&&s.togglePopover()},s.togglePopover=function(){s.setState({isPopoverOpen:!s.state.isPopoverOpen},(function(){if(!s.state.isPopoverOpen){var e=s.props.availableUsers.filter((function(e){return e.isSelected}));s.props.setTargetUsers(e)}}))},s.onToggleClick=function(e){e.stopPropagation(),s.togglePopover()},s.onQueryChange=function(e){s.setState({query:e.target.value})},s.toggleSelectItem=function(e,t){e.stopPropagation(),s.props.toggleSelectUser(t)},s.state={isPopoverOpen:!1,query:""},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){document.addEventListener("click",this.handleOutsideClick)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleOutsideClick)}},{key:"render",value:function(){var e=this,t=this.state,n=t.isPopoverOpen,i=t.query,s=this.props,r=s.currentSelectedUsers,o=s.availableUsers,a=o.filter((function(e){return e.isSelected})),l=i.trim()?o.filter((function(e){return-1!=e.contact_email.indexOf(i.trim())||-1!=e.name.indexOf(i.trim())})):o;return(0,g.jsxs)("div",{className:"mt-4 position-relative",children:[(0,g.jsxs)("span",{className:"cur-activity-modifiers d-inline-block p-2 rounded",onClick:this.onToggleClick,children:[r.length>0?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("span",{children:(0,u.ih)("Modified by:")}),(0,g.jsx)("span",{className:"d-inline-block ml-1",children:r.map((function(e){return e.name})).join(", ")})]}):(0,u.ih)("Modified by"),(0,g.jsx)("i",{className:"fas fa-caret-down ml-2 toggle-icon"})]}),n&&(0,g.jsxs)("div",{className:"position-absolute activity-modifier-selector-container rounded shadow",ref:function(t){return e.userSelector=t},children:[(0,g.jsx)("ul",{className:"activity-selected-modifiers px-3 py-1 list-unstyled",children:a.map((function(t,n){return(0,g.jsxs)("li",{className:"activity-selected-modifier",children:[(0,g.jsx)("img",{src:t.avatar_url,className:"avatar w-5 h-5",alt:""}),(0,g.jsx)("span",{className:"activity-user-name ml-2",children:t.name}),(0,g.jsx)("i",{className:"sf2-icon-close unselect-activity-user ml-2",onClick:function(n){e.toggleSelectItem(n,t)}})]},n)}))}),(0,g.jsx)("div",{className:"px-3 pt-3",children:(0,g.jsx)(re.Z,{type:"text",placeholder:(0,u.ih)("Find modifiers"),value:i,onChange:this.onQueryChange})}),(0,g.jsx)("ul",{className:"activity-user-list list-unstyled p-3 o-auto",children:l.map((function(t,n){return(0,g.jsxs)("li",{className:"activity-user-item h-6 p-1 rounded d-flex justify-content-between align-items-center",onClick:function(n){e.toggleSelectItem(n,t)},children:[(0,g.jsxs)("div",{children:[(0,g.jsx)("img",{src:t.avatar_url,className:"avatar w-5 h-5",alt:""}),(0,g.jsx)("span",{className:"activity-user-name ml-2",children:t.name})]}),t.isSelected&&(0,g.jsx)("i",{className:"sf2-icon-tick text-gray font-weight-bold"})]},n)}))})]})]})}}]),n}(a.Component);A().locale(window.app.config.lang);var ae=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).mergePublishEvents=function(e){e.forEach((function(e){"publish"===e.op_type&&(s.curPathList.push(e.path),s.oldPathList.push(e.old_path))}));for(var t=[],n=0;n=n&&s.setState({isLoadingMore:!0},(function(){s.getMore()}))}},s.state={errorMsg:"",isFirstLoading:!0,isLoadingMore:!1,currentPage:1,hasMore:!0,allItems:[],items:[],availableUsers:[],targetUsers:[]},s.avatarSize=72,s.curPathList=[],s.oldPathList=[],s.availableUserEmails=new Set,s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.state,n=t.currentPage,i=t.availableUsers;D.I.listActivities(n,this.avatarSize).then((function(t){var s=e.mergePublishEvents(t.data.events);(s=e.mergeFileCreateEvents(s)).forEach((function(t){e.availableUserEmails.has(t.author_email)||(e.availableUserEmails.add(t.author_email),i.push({email:t.author_email,name:t.author_name,contact_email:t.author_contact_email,avatar_url:t.avatar_url,isSelected:!1}))}));var r=e.filterEvents(s);e.setState({allItems:s,items:r,availableUsers:i,currentPage:n+1,isFirstLoading:0==r.length,hasMore:!0}),e.state.items.length<25&&e.getMore()})).catch((function(t){e.setState({isFirstLoading:!1,errorMsg:m.c.getErrorMsg(t,!0)})}))}},{key:"getMore",value:function(){var e=this,t=this.state,n=t.currentPage,i=t.availableUsers,s=t.targetUsers;D.I.listActivities(n,this.avatarSize).then((function(t){var r=e.mergePublishEvents(t.data.events);(r=e.mergeFileCreateEvents(r)).forEach((function(t){e.availableUserEmails.has(t.author_email)||(e.availableUserEmails.add(t.author_email),i.push({email:t.author_email,name:t.author_name,contact_email:t.author_contact_email,avatar_url:t.avatar_url,isSelected:!1}))}));var o=e.filterEvents(r),a=[].concat((0,K.Z)(e.state.items),(0,K.Z)(o));e.setState({allItems:[].concat((0,K.Z)(e.state.allItems),(0,K.Z)(r)),items:a,availableUsers:i,currentPage:n+1,isFirstLoading:0==a.length,isLoadingMore:!1,hasMore:0!==t.data.events.length}),e.state.items.length<25&&e.state.hasMore&&(s.length&&100==n||e.getMore())})).catch((function(t){e.setState({isFirstLoading:!1,isLoadingMore:!1,errorMsg:m.c.getErrorMsg(t,!0)})}))}},{key:"render",value:function(){var e=this.props.onlyMine,t=this.state,n=t.targetUsers,i=t.availableUsers;return(0,g.jsx)("div",{className:"main-panel-center",children:(0,g.jsxs)("div",{className:"cur-view-container",id:"activities",children:[(0,g.jsx)("div",{className:"cur-view-path",children:(0,g.jsxs)("ul",{className:"nav",children:[(0,g.jsx)("li",{className:"nav-item",children:(0,g.jsx)(c.rU,{to:"".concat(u.ze,"dashboard/"),className:"nav-link".concat(e?"":" active"),children:(0,u.ih)("All Activities")})}),(0,g.jsx)("li",{className:"nav-item",children:(0,g.jsx)(c.rU,{to:"".concat(u.ze,"my-activities/"),className:"nav-link".concat(e?" active":""),children:(0,u.ih)("My Activities")})})]})}),(0,g.jsxs)("div",{className:"cur-view-content d-block",onScroll:this.handleScroll,children:[this.state.isFirstLoading&&(0,g.jsx)(R.Z,{}),!this.state.isFirstLoading&&this.state.errorMsg&&(0,g.jsx)("p",{className:"error text-center",children:this.state.errorMsg}),!this.state.isFirstLoading&&(0,g.jsxs)(a.Fragment,{children:[!e&&(0,g.jsx)(oe,{availableUsers:i,currentSelectedUsers:n,setTargetUsers:this.setTargetUsers,toggleSelectUser:this.toggleSelectUser}),(0,g.jsx)(se,{items:this.state.items,isLoadingMore:this.state.isLoadingMore})]})]})]})})}}]),n}(a.Component),le=ae,ce=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"render",value:function(){return(0,g.jsx)(le,{onlyMine:!0})}}]),n}(a.Component),he=ce,pe=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props.data,t=e.loading,n=e.errorMsg,i=e.items;if(t)return(0,g.jsx)(R.Z,{});if(n)return(0,g.jsx)("p",{className:"error text-center",children:n});var s=(0,g.jsxs)(O.Z,{children:[(0,g.jsx)("h2",{children:(0,u.ih)("No favorites")}),(0,g.jsx)("p",{children:(0,u.ih)("You have not added any libraries, folders or files to your favorites yet. A favorite gives you quick access to your most frequently used objects. You can add a library, folder or file to your favorites by clicking the star to the left of its name.")})]}),r=(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"4%"}),(0,g.jsx)("th",{width:"40%",children:(0,u.ih)("Name")}),(0,g.jsx)("th",{width:"32%",children:(0,u.ih)("Library")}),(0,g.jsx)("th",{width:"18%",children:(0,u.ih)("Last Update")}),(0,g.jsx)("th",{width:"6%"})]})}),o=(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"12%"}),(0,g.jsx)("th",{width:"80%"}),(0,g.jsx)("th",{width:"8%"})]})}),a=m.c.isDesktop();return i.length?(0,g.jsxs)("table",{className:"table-hover ".concat(a?"":"table-thead-hidden"),children:[a?r:o,(0,g.jsx)(de,{items:i})]}):s}}]),n}(a.Component),de=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).state={items:s.props.items},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){this.getThumbnails()}},{key:"getThumbnails",value:function(){var e=this.state.items.filter((function(e){return(m.c.imageCheck(e.obj_name)||u.eA&&m.c.videoCheck(e.obj_name))&&!e.repo_encrypted&&!e.encoded_thumbnail_src&&!e.deleted}));if(0!=e.length){var t=e.length,n=this;!function i(s){var r=e[s];D.I.createThumbnail(r.repo_id,r.path,48).then((function(e){r.encoded_thumbnail_src=e.data.encoded_thumbnail_src})).catch((function(e){})).then((function(){s0&&t.forEach((function(t){e.push(t.id+"")})),s.customPermissions=e),s.customPermissions},s.state={isLoading:!0,currentOption:s.props.currentPerm,customPermissions:[]},s.customPermissions=null,s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){this.props.repoID?this.listCustomPermissions():this.setState({isLoading:!1})}},{key:"render",value:function(){var e=this,t=this.state,n=t.isLoading,i=t.currentOption,s=[];return n||(s=this.getPermissions()),(0,g.jsx)(d.Z,{isOpen:!0,toggle:this.props.toggleDialog,children:(0,g.jsxs)(C.Z,{style:{maxHeight:"400px",overflow:"auto"},children:[n&&(0,g.jsx)(R.Z,{}),!n&&s.map((function(t,n){return(0,g.jsxs)("div",{className:"d-flex",children:[(0,g.jsx)("input",{id:"option-".concat(n),className:"mt-1",type:"radio",name:"permission",value:t,checked:i==t,onChange:e.switchOption}),(0,g.jsxs)("label",{htmlFor:"option-".concat(n),className:"ml-2",children:[e.translatePermission(t),(0,g.jsx)("p",{className:"text-secondary small m-0",children:e.translateExplanation(t)})]})]},n)}))]})})}}]),n}(a.Component),Ce=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var s=arguments.length,r=new Array(s),o=0;o=n&&s.setState({isLoadingMore:!0},(function(){s.getMore()}))}},s.getMore=function(){var e=s.state.page;D.I.listShareLinks({page:e+1}).then((function(t){var n=t.data.map((function(e){return new _e.Z(e)}));s.setState({isLoadingMore:!1,hasMore:25==t.data.length,page:e+1,items:s._sortItems(s.state.items.concat(n),s.state.sortBy,s.state.sortOrder)})})).catch((function(e){s.setState({isLoadingMore:!1,errorMsg:m.c.getErrorMsg(e,!0)})}))},s.onRemoveLink=function(e){D.I.deleteShareLink(e.token).then((function(){var t=s.state.items.filter((function(t){return t.token!==e.token}));s.setState({items:t});var n=(0,u.ih)("Successfully deleted 1 item.");w.Z.success(n)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.toggleSortOptionsDialog=function(){s.setState({isSortOptionsDialogOpen:!s.state.isSortOptionsDialogOpen})},s.toggleCleanInvalidShareLinksDialog=function(){s.setState({isCleanInvalidShareLinksDialogOpen:!s.state.isCleanInvalidShareLinksDialogOpen})},s.cleanInvalidShareLinks=function(){D.I.cleanInvalidShareLinks().then((function(e){var t=s.state.items.filter((function(e){return""!==e.obj_id})).filter((function(e){return!e.is_expired}));s.setState({items:t}),w.Z.success((0,u.ih)("Successfully cleaned invalid share links."))})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.state={isCleanInvalidShareLinksDialogOpen:!1,loading:!0,hasMore:!1,isLoadingMore:!1,page:1,errorMsg:"",items:[],sortBy:"name",sortOrder:"asc"},s.sortOptions=[{value:"name-asc",text:(0,u.ih)("By name ascending")},{value:"name-desc",text:(0,u.ih)("By name descending")},{value:"time-asc",text:(0,u.ih)("By expiration ascending")},{value:"time-desc",text:(0,u.ih)("By expiration descending")}],s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){this.listUserShareLinks()}},{key:"listUserShareLinks",value:function(){var e=this,t=this.state.page;D.I.listShareLinks({page:t}).then((function(t){var n=t.data.map((function(e){return new _e.Z(e)}));e.setState({loading:!1,hasMore:25==t.data.length,items:e._sortItems(n,e.state.sortBy,e.state.sortOrder)})})).catch((function(t){e.setState({loading:!1,errorMsg:m.c.getErrorMsg(t,!0)})}))}},{key:"render",value:function(){return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(Ue,{onShowSidePanel:this.props.onShowSidePanel,onSearchedClick:this.props.onSearchedClick,children:(0,g.jsx)($.Z,{className:"operation-item d-none d-md-block",onClick:this.toggleCleanInvalidShareLinksDialog,children:(0,u.ih)("Clean invalid share links")})}),(0,g.jsx)("div",{className:"main-panel-center",children:(0,g.jsxs)("div",{className:"cur-view-container",children:[(0,g.jsxs)("div",{className:"cur-view-path share-upload-nav",children:[(0,g.jsxs)("ul",{className:"nav",children:[(0,g.jsx)("li",{className:"nav-item",children:(0,g.jsx)(c.rU,{to:"".concat(u.ze,"share-admin-share-links/"),className:"nav-link active",children:(0,u.ih)("Share Links")})}),u.$g&&(0,g.jsx)("li",{className:"nav-item",children:(0,g.jsx)(c.rU,{to:"".concat(u.ze,"share-admin-upload-links/"),className:"nav-link",children:(0,u.ih)("Upload Links")})})]}),!m.c.isDesktop()&&this.state.items.length>0&&(0,g.jsx)("span",{className:"sf3-font sf3-font-sort action-icon",onClick:this.toggleSortOptionsDialog})]}),(0,g.jsx)("div",{className:"cur-view-content",onScroll:this.handleScroll,children:(0,g.jsx)(Be,{loading:this.state.loading,isLoadingMore:this.state.isLoadingMore,errorMsg:this.state.errorMsg,items:this.state.items,sortBy:this.state.sortBy,sortOrder:this.state.sortOrder,sortItems:this.sortItems,onRemoveLink:this.onRemoveLink})})]})}),this.state.isSortOptionsDialogOpen&&(0,g.jsx)(Oe,{toggleDialog:this.toggleSortOptionsDialog,sortBy:this.state.sortBy,sortOrder:this.state.sortOrder,sortOptions:this.sortOptions,sortItems:this.sortItems}),this.state.isCleanInvalidShareLinksDialogOpen&&(0,g.jsx)(Re.Z,{title:(0,u.ih)("Clean invalid share links"),message:(0,u.ih)("Are you sure you want to clean invalid share links?"),executeOperation:this.cleanInvalidShareLinks,confirmBtnText:(0,u.ih)("Clean"),toggleDialog:this.toggleCleanInvalidShareLinksDialog})]})}}]),n}(a.Component),We=n(6626),qe=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.loading,i=t.errorMsg,s=t.items;if(n)return(0,g.jsx)(R.Z,{});if(i)return(0,g.jsx)("p",{className:"error text-center",children:i});var r=(0,g.jsxs)(O.Z,{children:[(0,g.jsx)("h2",{children:(0,u.ih)("No upload links")}),(0,g.jsx)("p",{children:(0,u.ih)("You have not created any upload links yet. An upload link allows anyone to upload files to a folder or library. You can create an upload link for a folder or library by clicking the share icon to the right of its name.")})]}),o=m.c.isDesktop(),a=(0,g.jsxs)("table",{className:"table-hover ".concat(o?"":"table-thead-hidden"),children:[(0,g.jsx)("thead",{children:o?(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"4%"}),(0,g.jsx)("th",{width:"30%",children:(0,u.ih)("Name")}),(0,g.jsx)("th",{width:"24%",children:(0,u.ih)("Library")}),(0,g.jsx)("th",{width:"16%",children:(0,u.ih)("Visits")}),(0,g.jsx)("th",{width:"16%",children:(0,u.ih)("Expiration")}),(0,g.jsx)("th",{width:"10%"})]}):(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"12%"}),(0,g.jsx)("th",{width:"80%"}),(0,g.jsx)("th",{width:"8%"})]})}),(0,g.jsx)("tbody",{children:s.map((function(t,n){return(0,g.jsx)(Ve,{isDesktop:o,item:t,onRemoveLink:e.props.onRemoveLink},n)}))})]});return s.length?a:r}}]),n}(a.Component),Ve=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).toggleOpMenu=function(){s.setState({isOpMenuOpen:!s.state.isOpMenuOpen})},s.toggleLinkDialog=function(){s.setState({isLinkDialogOpen:!s.state.isLinkDialogOpen})},s.handleMouseOver=function(){s.setState({isOpIconShown:!0})},s.handleMouseOut=function(){s.setState({isOpIconShown:!1})},s.viewLink=function(e){e.preventDefault(),s.toggleLinkDialog()},s.removeLink=function(e){e.preventDefault(),s.props.onRemoveLink(s.props.item)},s.renderExpiration=function(){var e=s.props.item;if(!e.expire_date)return"--";var t=A()(e.expire_date).format("YYYY-MM-DD"),n=A()(e.expire_date).format("YYYY-MM-DD HH:mm:ss");return(0,g.jsx)("span",{className:e.is_expired?"error":"",title:n,children:t})},s.state={isOpIconShown:!1,isOpMenuOpen:!1,isLinkDialogOpen:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props.item,t=this.state,n=t.isOpIconShown,i=t.isLinkDialogOpen,s=m.c.getFolderIconUrl(!1),r="".concat(u.ze,"library/").concat(e.repo_id,"/").concat(encodeURIComponent(e.repo_name)),o="".concat(r).concat(m.c.encodePath(e.path)),l=""===e.obj_id?(0,g.jsx)("span",{style:{color:"red"},children:(0,u.ih)("(deleted)")}):null,h=(0,g.jsxs)("tr",{onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut,onFocus:this.handleMouseOver,children:[(0,g.jsx)("td",{children:(0,g.jsx)("img",{src:s,alt:"",width:"24"})}),(0,g.jsxs)("td",{children:[(0,g.jsx)(c.rU,{to:o,children:e.obj_name}),l]}),(0,g.jsx)("td",{children:(0,g.jsx)(c.rU,{to:r,children:e.repo_name})}),(0,g.jsx)("td",{children:e.view_cnt}),(0,g.jsx)("td",{children:this.renderExpiration()}),(0,g.jsxs)("td",{children:[!e.is_expired&&(0,g.jsx)("a",{href:"#",className:"sf2-icon-link action-icon ".concat(n?"":"invisible"),title:(0,u.ih)("View"),"aria-label":(0,u.ih)("View"),role:"button",onClick:this.viewLink}),(0,g.jsx)("a",{href:"#",className:"sf2-icon-delete action-icon ".concat(n?"":"invisible"),title:(0,u.ih)("Remove"),"aria-label":(0,u.ih)("Remove"),role:"button",onClick:this.removeLink})]})]}),p=(0,g.jsxs)("tr",{children:[(0,g.jsx)("td",{children:(0,g.jsx)("img",{src:s,alt:"",width:"24"})}),(0,g.jsxs)("td",{children:[(0,g.jsx)(c.rU,{to:o,children:e.obj_name}),(0,g.jsx)("br",{}),(0,g.jsx)("span",{children:e.repo_name}),(0,g.jsx)("br",{}),(0,g.jsxs)("span",{className:"item-meta-info",children:[(0,u.ih)("Visits"),": ",e.view_cnt]}),(0,g.jsxs)("span",{className:"item-meta-info",children:[(0,u.ih)("Expiration"),": ",this.renderExpiration()]})]}),(0,g.jsx)("td",{children:(0,g.jsxs)(U.Z,{isOpen:this.state.isOpMenuOpen,toggle:this.toggleOpMenu,children:[(0,g.jsx)(z.Z,{tag:"i",className:"sf-dropdown-toggle fa fa-ellipsis-v ml-0",title:(0,u.ih)("More operations"),"aria-label":(0,u.ih)("More operations"),"data-toggle":"dropdown","aria-expanded":this.state.isOpMenuOpen}),(0,g.jsxs)("div",{className:this.state.isOpMenuOpen?"":"d-none",onClick:this.toggleOpMenu,children:[(0,g.jsx)("div",{className:"mobile-operation-menu-bg-layer"}),(0,g.jsxs)("div",{className:"mobile-operation-menu",children:[!e.is_expired&&(0,g.jsx)(G.Z,{className:"mobile-menu-item",onClick:this.viewLink,children:(0,u.ih)("View")}),(0,g.jsx)(G.Z,{className:"mobile-menu-item",onClick:this.removeLink,children:(0,u.ih)("Remove")})]})]})]})})]});return(0,g.jsxs)(a.Fragment,{children:[this.props.isDesktop?h:p,i&&(0,g.jsx)(Fe.Z,{link:e.link,toggleDialog:this.toggleLinkDialog})]})}}]),n}(a.Component),Ke=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onRemoveLink=function(e){D.I.deleteUploadLink(e.token).then((function(){var t=s.state.items.filter((function(t){return t.token!==e.token}));s.setState({items:t});var n=(0,u.ih)("Successfully deleted 1 item.");w.Z.success(n)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.toggleCleanInvalidUploadLinksDialog=function(){s.setState({isCleanInvalidUploadLinksDialogOpen:!s.state.isCleanInvalidUploadLinksDialogOpen})},s.cleanInvalidUploadLinks=function(){D.I.cleanInvalidUploadLinks().then((function(e){var t=s.state.items.filter((function(e){return""!==e.obj_id})).filter((function(e){return!e.is_expired}));s.setState({items:t}),w.Z.success((0,u.ih)("Successfully cleaned invalid upload links."))})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.state={isCleanInvalidUploadLinksDialogOpen:!1,loading:!0,errorMsg:"",items:[]},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){this.listUserUploadLinks()}},{key:"listUserUploadLinks",value:function(){var e=this;D.I.listUserUploadLinks().then((function(t){var n=t.data.map((function(e){return new We.Z(e)}));e.setState({loading:!1,items:n})})).catch((function(t){e.setState({loading:!1,errorMsg:m.c.getErrorMsg(t,!0)})}))}},{key:"render",value:function(){return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(Ue,{onShowSidePanel:this.props.onShowSidePanel,onSearchedClick:this.props.onSearchedClick,children:(0,g.jsx)($.Z,{className:"operation-item d-none d-md-block",onClick:this.toggleCleanInvalidUploadLinksDialog,children:(0,u.ih)("Clean invalid upload links")})}),(0,g.jsx)("div",{className:"main-panel-center",children:(0,g.jsxs)("div",{className:"cur-view-container",children:[(0,g.jsx)("div",{className:"cur-view-path share-upload-nav",children:(0,g.jsxs)("ul",{className:"nav",children:[u.Fl&&(0,g.jsx)("li",{className:"nav-item",children:(0,g.jsx)(c.rU,{to:"".concat(u.ze,"share-admin-share-links/"),className:"nav-link",children:(0,u.ih)("Share Links")})}),(0,g.jsx)("li",{className:"nav-item",children:(0,g.jsx)(c.rU,{to:"".concat(u.ze,"share-admin-upload-links/"),className:"nav-link active",children:(0,u.ih)("Upload Links")})})]})}),(0,g.jsx)("div",{className:"cur-view-content",children:(0,g.jsx)(qe,{loading:this.state.loading,errorMsg:this.state.errorMsg,items:this.state.items,onRemoveLink:this.onRemoveLink})})]})}),this.state.isCleanInvalidUploadLinksDialogOpen&&(0,g.jsx)(Re.Z,{title:(0,u.ih)("Clean invalid upload links"),message:(0,u.ih)("Are you sure you want to clean invalid upload links?"),executeOperation:this.cleanInvalidUploadLinks,confirmBtnText:(0,u.ih)("Clean"),toggleDialog:this.toggleCleanInvalidUploadLinksDialog})]})}}]),n}(a.Component),Ye=n(11621),Xe=(0,s.Z)((function e(t){(0,i.Z)(this,e),this.repo_id=t.repo_id,this.repo_name=t.repo_name,this.permission=t.permission,this.size_original=t.size,this.size=m.c.bytesToSize(t.size),this.owner_name=t.owner_name,this.owner_email=t.owner_email,this.owner_contact_email=t.owner_contact_email,this.encrypted=t.encrypted,this.last_modified=t.last_modified,this.modifier_contact_email=t.modifier_contact_email,this.modifier_email=t.modifier_email,this.modifier_name=t.modifier_name,this.type=t.type,this.starred=t.starred,this.monitored=t.monitored,this.status=t.status,this.storage_name=t.storage_name,void 0!=t.is_admin&&(this.is_admin=t.is_admin)}));var Je=function(){return(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"12%",children:(0,g.jsx)("span",{className:"sr-only",children:(0,u.ih)("Library Type")})}),(0,g.jsx)("th",{width:"80%"}),(0,g.jsx)("th",{width:"8%",children:(0,g.jsx)("span",{className:"sr-only",children:(0,u.ih)("Actions")})})]})})},Qe=n(63876),$e=n(48128),et=n(15108),tt=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props.repoID;return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)("span",{id:"watching-".concat(e),className:"ml-1",children:(0,g.jsx)(et.Z,{symbol:"monitor"})}),(0,g.jsx)($e.Z,{placement:"bottom",target:"#watching-".concat(e),children:(0,u.ih)("You are watching file changes of this library.")})]})}}]),n}(a.Component),nt=tt,it=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).freezeItem=function(e){s.setState({isItemFreezed:e})},s.sortByName=function(e){e.preventDefault();var t="asc"==s.props.sortOrder?"desc":"asc";s.props.sortItems("name",t)},s.sortByTime=function(e){e.preventDefault();var t="asc"==s.props.sortOrder?"desc":"asc";s.props.sortItems("time",t)},s.sortBySize=function(e){e.preventDefault();var t="asc"==s.props.sortOrder?"desc":"asc";s.props.sortItems("size",t)},s.state={isItemFreezed:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.loading,i=t.errorMsg,s=t.items,r=t.sortBy,o=t.sortOrder,a=(0,g.jsxs)(O.Z,{children:[(0,g.jsx)("h2",{children:(0,u.ih)("No shared libraries")}),(0,g.jsx)("p",{children:(0,u.ih)("No libraries have been shared directly with you. A shared library can be shared with full or restricted permission. If you need access to a library owned by another user, ask the user to share the library with you.")})]});if(n)return(0,g.jsx)(R.Z,{});if(i)return(0,g.jsx)("p",{className:"error text-center",children:i});var l="name"==r,c="time"==r,h="size"==r,p="asc"==o?(0,g.jsx)("span",{className:"fas fa-caret-up"}):(0,g.jsx)("span",{className:"fas fa-caret-down"}),d=(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"4%"}),(0,g.jsx)("th",{width:"4%",children:(0,g.jsx)("span",{className:"sr-only",children:(0,u.ih)("Library Type")})}),(0,g.jsx)("th",{width:"34%",children:(0,g.jsxs)("a",{className:"d-block table-sort-op",href:"#",onClick:this.sortByName,children:[(0,u.ih)("Name")," ",l&&p]})}),(0,g.jsx)("th",{width:"10%",children:(0,g.jsx)("span",{className:"sr-only",children:(0,u.ih)("Actions")})}),(0,g.jsx)("th",{width:"14%",children:(0,g.jsxs)("a",{className:"d-block table-sort-op",href:"#",onClick:this.sortBySize,children:[(0,u.ih)("Size")," ",h&&p]})}),(0,g.jsx)("th",{width:"18%",children:(0,g.jsxs)("a",{className:"d-block table-sort-op",href:"#",onClick:this.sortByTime,children:[(0,u.ih)("Last Update")," ",c&&p]})}),(0,g.jsx)("th",{width:"16%",children:(0,u.ih)("Owner")})]})}),f=m.c.isDesktop(),v=(0,g.jsxs)("table",{className:f?"":"table-thead-hidden",children:[f?d:(0,g.jsx)(Je,{}),(0,g.jsx)("tbody",{children:s.map((function(t,n){return(0,g.jsx)(st,{data:t,isDesktop:f,isItemFreezed:e.state.isItemFreezed,freezeItem:e.freezeItem,onMonitorRepo:e.props.onMonitorRepo},n)}))})]});return s.length?v:a}}]),n}(a.Component),st=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).toggleOpMenu=function(){s.setState({isOpMenuOpen:!s.state.isOpMenuOpen},(function(){s.props.freezeItem(s.state.isOpMenuOpen)}))},s.handleMouseOver=function(){s.props.isItemFreezed||s.setState({highlight:!0,showOpIcon:!0})},s.handleMouseOut=function(){s.props.isItemFreezed||s.setState({highlight:!1,showOpIcon:!1})},s.share=function(e){e.preventDefault(),s.setState({isShowSharedDialog:!0})},s.leaveShare=function(e){e.preventDefault();var t,n=s.props.data;if(-1==n.owner_email.indexOf("@seafile_group")){var i={share_type:"personal",from:n.owner_email};t=D.I.leaveShareRepo(n.repo_id,i)}else t=D.I.leaveShareGroupOwnedRepo(n.repo_id);t.then((function(e){s.setState({unshared:!0});var t=(0,u.ih)("Successfully unshared {name}").replace("{name}",n.repo_name);w.Z.success(t)})).catch((function(e){var t=m.c.getErrorMsg(e);t===(0,u.ih)("Error")&&(t=(0,u.ih)("Failed to unshare {name}").replace("{name}",n.repo_name)),(0,w.Z)(t)}))},s.toggleShareDialog=function(){s.setState({isShowSharedDialog:!1})},s.onToggleStarRepo=function(e){e.preventDefault();var t=s.props.data.repo_name;s.state.isStarred?D.I.unstarItem(s.props.data.repo_id,"/").then((function(){s.setState({isStarred:!s.state.isStarred});var e=(0,u.ih)("Successfully unstarred {library_name_placeholder}.").replace("{library_name_placeholder}",t);w.Z.success(e)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)})):D.I.starItem(s.props.data.repo_id,"/").then((function(){s.setState({isStarred:!s.state.isStarred});var e=(0,u.ih)("Successfully starred {library_name_placeholder}.").replace("{library_name_placeholder}",t);w.Z.success(e)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.visitRepo=function(){(0,c.c4)(s.repoURL)},s.watchFileChanges=function(){var e=s.props.data;D.I.monitorRepo(e.repo_id).then((function(){s.props.onMonitorRepo(e,!0)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.unwatchFileChanges=function(){var e=s.props.data;D.I.unMonitorRepo(e.repo_id).then((function(){s.props.onMonitorRepo(e,!1)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.state={highlight:!1,showOpIcon:!1,unshared:!1,isShowSharedDialog:!1,isStarred:s.props.data.starred,isOpMenuOpen:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){if(this.state.unshared)return null;var e=this.props.data;e.icon_url=m.c.getLibIconUrl(e),e.icon_title=m.c.getLibIconTitle(e);var t=this.state.showOpIcon?"":" invisible",n="op-icon sf2-icon-share repo-share-btn"+t,i="op-icon sf2-icon-x3"+t,s=this.repoURL="".concat(u.ze,"library/").concat(e.repo_id,"/").concat(m.c.encodePath(e.repo_name),"/"),r=u._y&&("r"==e.permission||"rw"==e.permission),o=(0,g.jsxs)(a.Fragment,{children:[(0,g.jsxs)("tr",{className:this.state.highlight?"tr-highlight":"",onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut,onFocus:this.handleMouseOver,children:[(0,g.jsx)("td",{className:"text-center",children:(0,g.jsx)("a",{href:"#",role:"button","aria-label":this.state.isStarred?(0,u.ih)("Unstar"):(0,u.ih)("Star"),onClick:this.onToggleStarRepo,children:(0,g.jsx)("i",{className:"fa-star ".concat(this.state.isStarred?"fas":"far star-empty")})})}),(0,g.jsx)("td",{children:(0,g.jsx)("img",{src:e.icon_url,title:e.icon_title,alt:e.icon_title,width:"24"})}),(0,g.jsx)("td",{children:(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(c.rU,{to:s,children:e.repo_name}),e.monitored&&(0,g.jsx)(nt,{repoID:e.repo_id})]})}),(0,g.jsxs)("td",{children:[u._y&&e.is_admin&&(0,g.jsx)("a",{href:"#",className:n,title:(0,u.ih)("Share"),role:"button","aria-label":(0,u.ih)("Share"),onClick:this.share}),(0,g.jsx)("a",{href:"#",className:i,title:(0,u.ih)("Leave Share"),role:"button","aria-label":(0,u.ih)("Leave Share"),onClick:this.leaveShare}),r&&(0,g.jsxs)(U.Z,{isOpen:this.state.isOpMenuOpen,toggle:this.toggleOpMenu,children:[(0,g.jsx)(z.Z,{tag:"i",role:"button",tabIndex:"0",className:"sf-dropdown-toggle sf2-icon-caret-down".concat(t),title:(0,u.ih)("More operations"),"aria-label":(0,u.ih)("More operations"),"data-toggle":"dropdown","aria-expanded":this.state.isOpMenuOpen}),(0,g.jsx)(B.Z,{children:(0,g.jsx)(G.Z,{onClick:e.monitored?this.unwatchFileChanges:this.watchFileChanges,children:e.monitored?(0,u.ih)("Unwatch File Changes"):(0,u.ih)("Watch File Changes")})})]})]}),(0,g.jsx)("td",{children:e.size}),(0,g.jsx)("td",{title:A()(e.last_modified).format("llll"),children:A()(e.last_modified).fromNow()}),(0,g.jsx)("td",{title:e.owner_contact_email,children:e.owner_name})]}),this.state.isShowSharedDialog&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Qe.Z,{itemType:"library",itemName:e.repo_name,itemPath:"/",repoID:e.repo_id,repoEncrypted:e.encrypted,enableDirPrivateShare:!0,userPerm:e.permission,isAdmin:!0,toggleDialog:this.toggleShareDialog})})]}),l=(0,g.jsxs)(a.Fragment,{children:[(0,g.jsxs)("tr",{onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut,children:[(0,g.jsx)("td",{onClick:this.visitRepo,children:(0,g.jsx)("img",{src:e.icon_url,title:e.icon_title,alt:e.icon_title,width:"24"})}),(0,g.jsxs)("td",{onClick:this.visitRepo,children:[(0,g.jsx)(c.rU,{to:s,children:e.repo_name}),e.monitored&&(0,g.jsx)(nt,{repoID:e.repo_id}),(0,g.jsx)("br",{}),(0,g.jsx)("span",{className:"item-meta-info",title:e.owner_contact_email,children:e.owner_name}),(0,g.jsx)("span",{className:"item-meta-info",children:e.size}),(0,g.jsx)("span",{className:"item-meta-info",title:A()(e.last_modified).format("llll"),children:A()(e.last_modified).fromNow()})]}),(0,g.jsx)("td",{children:(0,g.jsxs)(U.Z,{isOpen:this.state.isOpMenuOpen,toggle:this.toggleOpMenu,children:[(0,g.jsx)(z.Z,{tag:"i",className:"sf-dropdown-toggle fa fa-ellipsis-v ml-0",title:(0,u.ih)("More operations"),"data-toggle":"dropdown","aria-expanded":this.state.isOpMenuOpen}),(0,g.jsxs)("div",{className:this.state.isOpMenuOpen?"":"d-none",onClick:this.toggleOpMenu,children:[(0,g.jsx)("div",{className:"mobile-operation-menu-bg-layer"}),(0,g.jsxs)("div",{className:"mobile-operation-menu",children:[(0,g.jsx)(G.Z,{className:"mobile-menu-item",onClick:this.onToggleStarRepo,children:this.state.isStarred?(0,u.ih)("Unstar"):(0,u.ih)("Star")}),u._y&&e.is_admin&&(0,g.jsx)(G.Z,{className:"mobile-menu-item",onClick:this.share,children:(0,u.ih)("Share")}),(0,g.jsx)(G.Z,{className:"mobile-menu-item",onClick:this.leaveShare,children:(0,u.ih)("Leave Share")}),r&&(0,g.jsx)(G.Z,{className:"mobile-menu-item",onClick:e.monitored?this.unwatchFileChanges:this.watchFileChanges,children:e.monitored?(0,u.ih)("Unwatch File Changes"):(0,u.ih)("Watch File Changes")})]})]})]})})]}),this.state.isShowSharedDialog&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Qe.Z,{itemType:"library",itemName:e.repo_name,itemPath:"/",repoID:e.repo_id,repoEncrypted:e.encrypted,enableDirPrivateShare:!0,userPerm:e.permission,isAdmin:!0,toggleDialog:this.toggleShareDialog})})]});return this.props.isDesktop?o:l}}]),n}(a.Component),rt=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).sortItems=function(e,t){Ye.ZP.save("seafile-repo-dir-sort-by",e),Ye.ZP.save("seafile-repo-dir-sort-order",t),s.setState({sortBy:e,sortOrder:t,items:m.c.sortRepos(s.state.items,e,t)})},s.toggleSortOptionsDialog=function(){s.setState({isSortOptionsDialogOpen:!s.state.isSortOptionsDialogOpen})},s.onMonitorRepo=function(e,t){var n=s.state.items.map((function(n){return n.repo_id===e.repo_id&&(n.monitored=t),n}));s.setState({items:n})},s.state={loading:!0,errorMsg:"",items:[],sortBy:Ye.ZP.load("seafile-repo-dir-sort-by")||"name",sortOrder:Ye.ZP.load("seafile-repo-dir-sort-order")||"asc",isSortOptionsDialogOpen:!1},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this;D.I.listRepos({type:"shared"}).then((function(t){var n=t.data.repos.map((function(e){return new Xe(e)}));e.setState({loading:!1,items:m.c.sortRepos(n,e.state.sortBy,e.state.sortOrder)})})).catch((function(t){e.setState({loading:!1,errorMsg:m.c.getErrorMsg(t,!0)})}))}},{key:"render",value:function(){return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)("div",{className:"main-panel-center",children:(0,g.jsxs)("div",{className:"cur-view-container",children:[(0,g.jsxs)("div",{className:"cur-view-path",children:[(0,g.jsx)("h3",{className:"sf-heading m-0",children:(0,u.ih)("Shared with me")}),!m.c.isDesktop()&&this.state.items.length>0&&(0,g.jsx)("span",{className:"sf3-font sf3-font-sort action-icon",onClick:this.toggleSortOptionsDialog})]}),(0,g.jsx)("div",{className:"cur-view-content",children:(0,g.jsx)(it,{loading:this.state.loading,errorMsg:this.state.errorMsg,items:this.state.items,sortBy:this.state.sortBy,sortOrder:this.state.sortOrder,sortItems:this.sortItems,onMonitorRepo:this.onMonitorRepo})})]})}),this.state.isSortOptionsDialogOpen&&(0,g.jsx)(Oe,{toggleDialog:this.toggleSortOptionsDialog,sortBy:this.state.sortBy,sortOrder:this.state.sortOrder,sortItems:this.sortItems})]})}}]),n}(a.Component),ot=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.loading,i=t.errorMsg,s=t.items,r=(0,g.jsxs)(O.Z,{children:[(0,g.jsx)("h2",{children:(0,u.ih)("No libraries have been shared with you")}),(0,g.jsx)("p",{children:(0,u.ih)("No libraries have been shared with you from other servers.")})]});if(n)return(0,g.jsx)(R.Z,{});if(i)return(0,g.jsx)("p",{className:"error text-center",children:i});var o=(0,g.jsxs)("table",{children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"4%"}),(0,g.jsx)("th",{width:"20%",children:(0,u.ih)("Name")}),(0,g.jsx)("th",{width:"20%",children:(0,u.ih)("Shared by")}),(0,g.jsx)("th",{width:"26%",children:(0,u.ih)("At server")}),(0,g.jsx)("th",{width:"20%",children:(0,u.ih)("Time")}),(0,g.jsx)("th",{width:"10%"})]})}),(0,g.jsx)("tbody",{children:s.map((function(t,n){return(0,g.jsx)(at,{item:t,leaveShare:e.props.leaveShare},n)}))})]});return s.length?o:r}}]),n}(a.Component),at=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).handleMouseOver=function(){s.setState({isOpIconShown:!0})},s.handleMouseOut=function(){s.setState({isOpIconShown:!1})},s.leaveShare=function(e){e.preventDefault(),s.props.leaveShare(s.props.item)},s.state={isOpIconShown:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props.item,t=this.state.isOpIconShown;e.icon_url=m.c.getLibIconUrl(e),e.icon_title=m.c.getLibIconTitle(e);var n="".concat(u.ze,"remote-library/").concat(this.props.item.provider_id,"/").concat(this.props.item.repo_id,"/").concat(m.c.encodePath(this.props.item.repo_name),"/");return(0,g.jsxs)("tr",{onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut,onFocus:this.handleMouseOver,children:[(0,g.jsx)("td",{children:(0,g.jsx)("img",{src:e.icon_url,title:e.icon_title,alt:e.icon_title,width:"24"})}),(0,g.jsx)("td",{children:(0,g.jsx)(c.rU,{to:n,children:e.repo_name})}),(0,g.jsx)("td",{children:e.from_user}),(0,g.jsx)("td",{children:e.from_server_url}),(0,g.jsx)("td",{title:A()(e.last_modified).format("llll"),children:A()(e.ctime).fromNow()}),(0,g.jsx)("td",{children:(0,g.jsx)("a",{href:"#",role:"button",className:"action-icon sf2-icon-x3 ".concat(t?"":"invisible"),title:(0,u.ih)("Leave Share"),"aria-label":(0,u.ih)("Leave Share"),onClick:this.leaveShare})})]})}}]),n}(a.Component),lt=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).leaveShare=function(e){var t=e.id,n=e.repo_name;D.I.deleteOCMShareReceived(t).then((function(e){var i=s.state.items.filter((function(e){return e.id!=t}));s.setState({items:i}),w.Z.success((0,u.ih)("Successfully unshared {name}").replace("{name}",n))})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.state={loading:!0,errorMsg:"",items:[]},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this;D.I.listOCMSharesReceived().then((function(t){e.setState({loading:!1,items:t.data.ocm_share_received_list})})).catch((function(t){e.setState({loading:!1,errorMsg:m.c.getErrorMsg(t,!0)})}))}},{key:"render",value:function(){return(0,g.jsx)(a.Fragment,{children:(0,g.jsx)("div",{className:"main-panel-center",children:(0,g.jsxs)("div",{className:"cur-view-container",children:[(0,g.jsx)("div",{className:"cur-view-path",children:(0,g.jsx)("h3",{className:"sf-heading m-0",children:(0,u.ih)("Shared from other servers")})}),(0,g.jsx)("div",{className:"cur-view-content",children:(0,g.jsx)(ot,{loading:this.state.loading,errorMsg:this.state.errorMsg,items:this.state.items,leaveShare:this.leaveShare})})]})})})}}]),n}(a.Component),ct=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).getAllReceivedShares=function(){var e=D.I.server+"/ocm-via-webdav/received-shares/";D.I.req.get(e).then((function(e){s.setState({loading:!1,shareID:"",path:"",items:e.data.received_share_list})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.leaveShare=function(e){var t=e.id,n=e.name,i=D.I.server+"/ocm-via-webdav/received-shares/"+t+"/";D.I.req.delete(i).then((function(e){var i=s.state.items.filter((function(e){return e.id!=t}));s.setState({items:i}),w.Z.success((0,u.ih)("Successfully unshared {name}").replace("{name}",n))})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.openFolder=function(e){s.setState({loading:!0});var t=D.I.server+"/ocm-via-webdav/received-shares/"+e.id+"/?path="+e.path;D.I.req.get(t).then((function(t){s.setState({loading:!1,shareID:e.id,path:t.data.parent_dir,items:t.data.received_share_list})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onPathClick=function(e){s.setState({loading:!0});var t=D.I.server+"/ocm-via-webdav/received-shares/"+s.state.shareID+"/?path="+e;D.I.req.get(t).then((function(e){s.setState({loading:!1,items:e.data.received_share_list,path:e.data.parent_dir})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.state={loading:!0,shareID:"",path:"",items:[],errorMsg:""},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){this.getAllReceivedShares()}},{key:"render",value:function(){return(0,g.jsx)(a.Fragment,{children:(0,g.jsx)("div",{className:"main-panel-center",children:(0,g.jsxs)("div",{className:"cur-view-container",children:[(0,g.jsx)("div",{className:"cur-view-path align-items-center",children:(0,g.jsx)(dt,{shareID:this.state.shareID,currentPath:this.state.path,onPathClick:this.onPathClick,getAllReceivedShares:this.getAllReceivedShares})}),(0,g.jsx)("div",{className:"cur-view-content",children:(0,g.jsx)(ht,{loading:this.state.loading,errorMsg:this.state.errorMsg,items:this.state.items,path:this.state.path,leaveShare:this.leaveShare,openFolder:this.openFolder})})]})})})}}]),n}(a.Component),ht=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){return(0,i.Z)(this,n),t.call(this,e)}return(0,s.Z)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.loading,i=t.errorMsg,s=t.items,r=t.path,o=(0,g.jsxs)(O.Z,{children:[(0,g.jsx)("h2",{children:(0,u.ih)("No libraries have been shared with you")}),(0,g.jsx)("p",{children:(0,u.ih)("No libraries have been shared with you from other servers.")})]});if(n)return(0,g.jsx)(R.Z,{});if(i)return(0,g.jsx)("p",{className:"error text-center",children:i});var a=(0,g.jsxs)("table",{children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"5%"}),(0,g.jsx)("th",{width:"30%",children:(0,u.ih)("Name")}),(0,g.jsx)("th",{width:"35%",children:(0,u.ih)("Shared By")}),(0,g.jsx)("th",{width:"20%",children:(0,u.ih)("Time")}),(0,g.jsx)("th",{width:"5%"}),(0,g.jsx)("th",{width:"5%"})]})}),(0,g.jsx)("tbody",{children:s.map((function(t,n){return(0,g.jsx)(pt,{item:t,path:r,leaveShare:e.props.leaveShare,openFolder:e.props.openFolder},n)}))})]});return s.length?a:o}}]),n}(a.Component),pt=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).handleMouseOver=function(){s.setState({isOpIconShown:!0})},s.handleMouseOut=function(){s.setState({isOpIconShown:!1})},s.downloadFile=function(){var e=u.ze+"ocm-via-webdav/download-received-file/?share_id="+s.props.item.id+"&path="+s.props.item.path;window.location.href=e},s.leaveShare=function(e){e.preventDefault(),s.props.leaveShare(s.props.item)},s.openFolder=function(e){e.preventDefault(),s.props.openFolder(s.props.item)},s.state={isOpIconShown:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props.item,t=this.state.isOpIconShown;return e.is_dir?e.icon_url=m.c.getFolderIconUrl():e.icon_url=m.c.getFileIconUrl(e.name),(0,g.jsxs)("tr",{onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut,children:[(0,g.jsx)("td",{children:(0,g.jsx)("img",{src:e.icon_url,width:"24",alt:""})}),(0,g.jsx)("td",{children:e.is_dir?(0,g.jsx)("a",{href:"#",onClick:this.openFolder,children:e.name}):e.name}),(0,g.jsx)("td",{children:e.shared_by}),(0,g.jsx)("td",{title:A()(e.last_modified).format("llll"),children:A()(e.ctime).fromNow()}),(0,g.jsx)("td",{children:e.is_dir?"":(0,g.jsx)("a",{href:"#",className:"action-icon sf2-icon-download ".concat(t?"":"invisible"),title:(0,u.ih)("Download"),onClick:this.downloadFile})}),(0,g.jsx)("td",{children:this.props.path?"":(0,g.jsx)("a",{href:"#",className:"action-icon sf2-icon-x3 ".concat(t?"":"invisible"),title:(0,u.ih)("Leave Share"),onClick:this.leaveShare})})]})}}]),n}(a.Component),dt=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onPathClick=function(e){var t=m.c.getEventData(e,"path");s.props.onPathClick(t)},s.turnPathToLink=function(e){var t=(e=e.slice(1,e.length-1)).split("/"),n="";return t.map((function(e,i){return i===t.length-1?(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)("span",{className:"path-split",children:"/"}),(0,g.jsx)("span",{className:"path-file-name",children:e})]},i):(0===i?n="/":n+=e+"/",(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)("span",{className:"path-split",children:"/"}),(0,g.jsx)("a",{className:"path-link","data-path":n,onClick:s.onPathClick,children:e})]},i))}))},s.state={},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.turnPathToLink(this.props.currentPath);return(0,g.jsxs)("div",{className:"path-container",children:[(0,g.jsx)("a",{href:"#",onClick:this.props.getAllReceivedShares,children:(0,u.ih)("All")}),e]})}}]),n}(a.Component),ut=ct,mt=n(35662),gt=n(93190),ft=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"render",value:function(){return(0,g.jsxs)("div",{className:"main-panel-north ".concat(this.props.children?"border-left-show":""),children:[(0,g.jsxs)("div",{className:"cur-view-toolbar",children:[(0,g.jsx)("span",{className:"sf2-icon-menu side-nav-toggle hidden-md-up d-md-none",title:"Side Nav Menu"}),(0,g.jsx)("div",{className:"operation",children:this.props.children})]}),(0,g.jsx)("div",{className:"common-toolbar",children:(0,g.jsx)(gt.Z,{isAdminPanel:!1})})]})}}]),n}(a.Component),vt=ft,xt=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var s=arguments.length,r=new Array(s),o=0;o-1)return e=(0,u.ih)("Name should not include '/'."),this.setState({errMessage:e}),!1;if(this.state.encrypt){var n=this.state.password1.trim(),i=this.state.password2.trim();if(!n.length)return e=(0,u.ih)("Please enter password"),this.setState({errMessage:e}),!1;if(!i.length)return e=(0,u.ih)("Please enter the password again"),this.setState({errMessage:e}),!1;if(n.length0&&(0,g.jsxs)(ge.Z,{children:[(0,g.jsx)(fe.Z,{children:(0,u.ih)("Template")}),(0,g.jsx)(kt.ME,{defaultValue:this.templateOptions[0],options:this.templateOptions,onChange:this.handlelibraryTemplatesInputChange,value:this.templateOptions.find((function(t){return t.value===e.state.library_template}))||null})]}),u.al.length>0&&(0,g.jsxs)(ge.Z,{children:[(0,g.jsx)(fe.Z,{children:(0,u.ih)("Storage Backend")}),(0,g.jsx)(kt.ME,{defaultValue:this.storageOptions[0],options:this.storageOptions,onChange:this.handleStorageInputChange,value:this.storageOptions.find((function(t){return t.value===e.state.storage_id}))||null})]}),"group"===this.props.libraryType&&(0,g.jsxs)(ge.Z,{children:[(0,g.jsx)(fe.Z,{for:"exampleSelect",children:(0,u.ih)("Permission")}),(0,g.jsxs)(re.Z,{type:"select",name:"select",id:"exampleSelect",onChange:this.onPermissionChange,value:this.state.permission,children:[(0,g.jsx)("option",{value:"rw",children:(0,u.ih)("Read-Write")}),(0,g.jsx)("option",{value:"r",children:(0,u.ih)("Read-Only")})]})]}),u.l3&&(0,g.jsxs)("div",{children:[(0,g.jsxs)(ge.Z,{check:!0,children:[(0,g.jsx)(re.Z,{type:"checkbox",id:"encrypt",onChange:this.onEncrypted}),(0,g.jsx)(fe.Z,{for:"encrypt",children:(0,u.ih)("Encrypt")})]}),!this.state.disabled&&(0,g.jsxs)(ge.Z,{children:[(0,g.jsx)(fe.Z,{for:"passwd1",children:(0,u.ih)("Password")}),(0,g.jsxs)("span",{className:"tip",children:[" ",(0,u.ih)("(at least {placeholder} characters)").replace("{placeholder}",u.gl)]}),(0,g.jsx)(re.Z,{id:"passwd1",type:"password",disabled:this.state.disabled,value:this.state.password1,onChange:this.handlePassword1Change,autoComplete:"new-password"})]}),!this.state.disabled&&(0,g.jsxs)(ge.Z,{children:[(0,g.jsx)(fe.Z,{for:"passwd2",children:(0,u.ih)("Password again")}),(0,g.jsx)(re.Z,{id:"passwd2",type:"password",disabled:this.state.disabled,value:this.state.password2,onChange:this.handlePassword2Change,autoComplete:"new-password"})]})]})]}),this.state.errMessage&&(0,g.jsx)(Ct.Z,{color:"danger",children:this.state.errMessage})]}),(0,g.jsxs)(Q.Z,{children:[(0,g.jsx)($.Z,{color:"secondary",onClick:this.toggle,children:(0,u.ih)("Cancel")}),(0,g.jsx)($.Z,{color:"primary",onClick:this.handleSubmit,disabled:!this.state.isSubmitBtnActive,children:(0,u.ih)("Submit")})]})]})}}]),n}(a.Component),Mt=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onCreateRepo=function(e){s.props.onCreateRepo(e),s.onCreateToggle()},s.onCreateToggle=function(){s.setState({isCreateRepoDialogShow:!s.state.isCreateRepoDialogShow})},s.toggleMore=function(){s.setState({isOpen:!s.state.isOpen})},s.onDropdownToggleKeyDown=function(e){"Enter"!=e.key&&"Space"!=e.key||s.toggleMore()},s.visitDeletedviaKey=function(e){"Enter"!=e.key&&"Space"!=e.key||(0,c.c4)("".concat(u.ze,"my-libs/deleted/"))},s.state={isCreateRepoDialogShow:!1,isOpen:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsxs)("div",{className:"cur-view-toolbar",children:[(0,g.jsx)("span",{className:"sf2-icon-menu side-nav-toggle hidden-md-up d-md-none",title:"Side Nav Menu",onClick:this.props.onShowSidePanel}),m.c.isDesktop()?(0,g.jsxs)("div",{className:"operation",children:[(0,g.jsxs)("button",{className:"btn btn-secondary operation-item",title:(0,u.ih)("New Library"),onClick:this.onCreateToggle,children:[(0,g.jsx)("i",{className:"fas fa-plus-square text-secondary mr-1"}),(0,u.ih)("New Library")]}),(0,g.jsxs)(U.Z,{isOpen:this.state.isOpen,toggle:this.toggleMore,children:[(0,g.jsx)(z.Z,{className:"btn btn-secondary operation-item",onKeyDown:this.onDropdownToggleKeyDown,children:(0,u.ih)("More")}),(0,g.jsx)(B.Z,{children:(0,g.jsx)(G.Z,{className:"link-dropdown-container",onKeyDown:this.visitDeletedviaKey,children:(0,g.jsx)(c.rU,{className:"link-dropdown-item",to:u.ze+"my-libs/deleted/",children:(0,u.ih)("Deleted Libraries")})})})]})]}):(0,g.jsx)("span",{className:"sf2-icon-plus mobile-toolbar-icon",title:(0,u.ih)("New Library"),onClick:this.onCreateToggle})]}),this.state.isCreateRepoDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(It,{libraryType:this.props.libraryType,onCreateRepo:this.onCreateRepo,onCreateToggle:this.onCreateToggle})})]})}}]),n}(a.Component),Nt=(n(25984),function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).getFileCounts=function(e){D.I.getRepoInfo(e.repo_id).then((function(e){s.setState({fileCount:e.data.file_count})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.state={fileCount:0},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this.props.currentRepo;this.getFileCounts(e)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.currentRepo.repo_id!==this.props.currentRepo.repo_id&&this.getFileCounts(e.currentRepo)}},{key:"render",value:function(){var e=this.props.currentRepo,t=m.c.getLibIconUrl(e),n=m.c.getLibIconUrl(e,!0);return(0,g.jsxs)("div",{className:"detail-container",children:[(0,g.jsxs)("div",{className:"detail-header",children:[(0,g.jsx)("div",{className:"detail-control sf2-icon-x1",onClick:this.props.closeDetails}),(0,g.jsxs)("div",{className:"detail-title dirent-title",children:[(0,g.jsx)("img",{src:t,width:"24",height:"24",alt:""})," ",(0,g.jsx)("span",{className:"name ellipsis",title:e.repo_name,children:e.repo_name})]})]}),(0,g.jsxs)("div",{className:"detail-body dirent-info",children:[(0,g.jsx)("div",{className:"img",children:(0,g.jsx)("img",{src:n,height:"96",alt:""})}),(0,g.jsx)("div",{className:"dirent-table-container",children:(0,g.jsxs)("table",{className:"table-thead-hidden",children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"35%"}),(0,g.jsx)("th",{width:"65%"})]})}),(0,g.jsxs)("tbody",{children:[(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{children:(0,u.ih)("Files")}),(0,g.jsx)("td",{children:this.state.fileCount})]}),(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{children:(0,u.ih)("Size")}),(0,g.jsx)("td",{children:e.size})]}),(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{children:(0,u.ih)("Last Update")}),(0,g.jsx)("td",{children:A()(e.last_modified).fromNow()})]})]})]})})]})]})}}]),n}(a.Component)),Zt=n(56529),Pt=n(84566),_t=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).submit=function(){var e=s.state.keepDays;s.state.autoHistory&&(e=s.state.expireDays);var t=s.props.repoID;if(/^-?\d+$/.test(e)){var n=(0,u.ih)("Successfully set library history.");D.I.setRepoHistoryLimit(t,e).then((function(e){w.Z.success(n),s.setState({keepDays:e.data.keep_days}),s.props.toggleDialog()})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))}else s.setState({errorInfo:(0,u.ih)("Please enter a non-negative integer")})},s.handleKeyDown=function(e){"Enter"===e.key&&(s.submit(),e.preventDefault())},s.onChange=function(e){var t=e.target.value;s.setState({keepDays:t,expireDays:t})},s.setLimitDays=function(e){"allHistory"===e?s.setState({keepDays:-1,disabled:!0}):"noHistory"===e?s.setState({keepDays:0,disabled:!0}):s.setState({disabled:!1}),s.setState({allHistory:"allHistory"===e,noHistory:"noHistory"===e,autoHistory:"autoHistory"===e})},s.state={keepDays:-1,expireDays:30,disabled:!0,allHistory:!0,noHistory:!1,autoHistory:!1,errorInfo:""},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this;D.I.getRepoHistoryLimit(this.props.repoID).then((function(t){e.setState({keepDays:t.data.keep_days,allHistory:t.data.keep_days<0,noHistory:0===t.data.keep_days,autoHistory:t.data.keep_days>0,disabled:!(t.data.keep_days>0),expireDays:t.data.keep_days>0?t.data.keep_days:30})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))}},{key:"render",value:function(){var e=this,t=this.props.itemName,n=(0,u.ih)("{placeholder} History Setting");return n=n.replace("{placeholder}",''+m.c.HTMLescape(t)+""),(0,g.jsxs)(d.Z,{isOpen:!0,toggle:this.props.toggleDialog,children:[(0,g.jsx)(X.Z,{toggle:this.props.toggleDialog,children:(0,g.jsx)("span",{dangerouslySetInnerHTML:{__html:n},className:"d-flex mw-100"})}),(0,g.jsx)(C.Z,{children:(0,g.jsxs)(bt.Z,{children:[!u.Qo&&(0,g.jsx)(ge.Z,{children:(0,g.jsx)(fe.Z,{className:"error",children:(0,u.ih)("Setting library history is disabled by Admin.")})}),(0,g.jsxs)(ge.Z,{check:!0,children:[(0,g.jsx)(re.Z,{type:"radio",name:"radio1",checked:this.state.allHistory,disabled:!u.Qo,onChange:function(){e.setLimitDays("allHistory")}})," ",(0,g.jsx)(fe.Z,{children:(0,u.ih)("Keep full history")})]}),(0,g.jsxs)(ge.Z,{check:!0,children:[(0,g.jsx)(re.Z,{type:"radio",name:"radio1",checked:this.state.noHistory,disabled:!u.Qo,onChange:function(){e.setLimitDays("noHistory")}})," ",(0,g.jsx)(fe.Z,{children:(0,u.ih)("Don't keep history")})]}),(0,g.jsxs)(ge.Z,{check:!0,children:[(0,g.jsx)(re.Z,{type:"radio",name:"radio1",checked:this.state.autoHistory,disabled:!u.Qo,onChange:function(){e.setLimitDays("autoHistory")}})," ",(0,g.jsx)(fe.Z,{children:(0,u.ih)("Only keep a period of history:")}),(0,g.jsx)(re.Z,{type:"text",className:"expire-input",value:this.state.expireDays,onChange:this.onChange,disabled:this.state.disabled,onKeyDown:this.handleKeyDown})," ",(0,g.jsx)(fe.Z,{children:(0,g.jsx)("span",{children:(0,u.ih)("days")})})]}),this.state.errorInfo&&(0,g.jsx)(Ct.Z,{color:"danger",children:this.state.errorInfo})]})}),(0,g.jsxs)(Q.Z,{children:[(0,g.jsx)($.Z,{color:"secondary",onClick:this.props.toggleDialog,children:(0,u.ih)("Cancel")}),(0,g.jsx)($.Z,{color:"primary",onClick:this.submit,children:(0,u.ih)("Submit")})]})]})}}]),n}(a.Component),Tt=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).handleOldPasswordInputChange=function(e){s.setState({oldPassword:e.target.value})},s.handleNewPasswordInputChange=function(e){s.setState({newPassword:e.target.value})},s.handleNewPasswordAgainInputChange=function(e){s.setState({newPasswordAgain:e.target.value})},s.formSubmit=function(e){var t=s.state,n=t.oldPassword,i=t.newPassword,r=t.newPasswordAgain;return n?i?i.length'+m.c.HTMLescape(t)+""),(0,g.jsxs)(d.Z,{isOpen:!0,style:{height:"auto"},toggle:n,children:[(0,g.jsx)(X.Z,{toggle:n,children:(0,g.jsx)("span",{dangerouslySetInnerHTML:{__html:i},className:"d-flex mw-100"})}),(0,g.jsx)(C.Z,{children:(0,g.jsxs)("form",{id:"repo-change-passwd-form",action:"",method:"post",children:[(0,g.jsx)("label",{htmlFor:"passwd",children:(0,u.ih)("Old Password")}),(0,g.jsx)("br",{}),(0,g.jsx)("input",{type:"password",name:"old_passwd",className:"form-control",id:"passwd",value:this.state.oldPassword,onChange:this.handleOldPasswordInputChange}),(0,g.jsx)("br",{}),(0,g.jsx)("label",{htmlFor:"new-passwd",children:(0,u.ih)("New Password")}),(0,g.jsx)("span",{className:"tip",children:(0,u.ih)("(at least {placeholder} characters)").replace("{placeholder}",u.gl)}),(0,g.jsx)("br",{}),(0,g.jsx)("input",{type:"password",name:"new_passwd",className:"form-control",id:"new-passwd",value:this.state.newPassword,onChange:this.handleNewPasswordInputChange}),(0,g.jsx)("br",{}),(0,g.jsx)("label",{htmlFor:"new-passwd-again",children:(0,u.ih)("New Password Again")}),(0,g.jsx)("br",{}),(0,g.jsx)("input",{type:"password",name:"new_passwd_again",className:"form-control",id:"new-passwd-again",value:this.state.newPasswordAgain,onChange:this.handleNewPasswordAgainInputChange}),(0,g.jsx)("br",{}),this.state.errorMsg&&(0,g.jsx)(Ct.Z,{color:"danger",children:this.state.errorMsg})]})}),(0,g.jsx)(Q.Z,{children:(0,g.jsx)("button",{className:"btn btn-primary",disabled:this.state.submitBtnDisabled,onClick:this.formSubmit,children:(0,u.ih)("Submit")})})]})}}]),n}(a.Component),Ft=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).state={errMessage:"",showLoading:!0,showSuccess:!1,showError:!1},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this;D.I.resetAndSendEncryptedRepoPassword(this.props.repoID).then((function(t){e.setState({showLoading:!1}),e.setState({showSuccess:!0})})).catch((function(t){t.response&&(e.setState({errMessage:t.response.data.error_msg}),e.setState({showLoading:!1}),e.setState({showError:!0}))}))}},{key:"render",value:function(){var e=""+u.Ru+"",t=(0,u.ih)("New password has been sent to your email {mail}. Please check your mailbox. If you don\u2019t receive the password, please check if your email address is properly configured.").replace("{mail}",e);return(0,g.jsxs)(d.Z,{isOpen:!0,toggle:this.props.toggleDialog,children:[(0,g.jsx)(X.Z,{toggle:this.props.toggleDialog,children:(0,u.ih)("Reset library password")}),(0,g.jsxs)(C.Z,{children:[this.state.showLoading&&(0,g.jsx)("span",{children:(0,u.ih)("Sending new password...")}),this.state.showSuccess&&(0,g.jsx)("div",{dangerouslySetInnerHTML:{__html:t}}),this.state.showError&&(0,g.jsx)("span",{className:"err-message",children:this.state.errMessage})]})]})}}]),n}(a.Component),Lt=n(58447),Ot=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).handleInputChange=function(e){s.setState({inputValue:e})},s.formSubmit=function(){var e=s.state.inputValue;if(e&&e.length){s.setState({submitBtnDisabled:!0});var t=s.props,n=t.repoID,i=t.repoName,r=e.map((function(e,t){return e.value})).join(",");D.I.addNewRepoLabels(n,r).then((function(e){var t=(0,u.ih)("Successfully added label(s) for library {placeholder}").replace("{placeholder}",i);w.Z.success(t),s.props.toggleDialog()})).catch((function(e){var t=m.c.getErrorMsg(e);s.setState({formErrorMsg:t,submitBtnDisabled:!1})}))}else s.setState({formErrorMsg:(0,u.ih)("It is required.")})},s.state={isLoading:!0,existingLabels:null,errorMsg:"",submitBtnDisabled:!1},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this;D.I.getAllRepoSnapshotLabels().then((function(t){e.setState({isLoading:!1,existingLabels:t.data,errorMsg:""})})).catch((function(t){var n=m.c.getErrorMsg(t);e.setState({isLoading:!1,errorMsg:n})}))}},{key:"render",value:function(){return(0,g.jsxs)(d.Z,{isOpen:!0,toggle:this.props.toggleDialog,children:[(0,g.jsx)(X.Z,{toggle:this.props.toggleDialog,children:(0,u.ih)("Label Current State")}),(0,g.jsx)(C.Z,{children:(0,g.jsx)(Rt,{data:this.state,handleChange:this.handleInputChange})}),this.state.existingLabels&&(0,g.jsxs)(Q.Z,{children:[(0,g.jsx)("button",{className:"btn btn-secondary",onClick:this.props.toggleDialog,children:(0,u.ih)("Cancel")}),(0,g.jsx)("button",{className:"btn btn-primary",disabled:this.state.submitBtnDisabled,onClick:this.formSubmit,children:(0,u.ih)("Submit")})]})]})}}]),n}(a.Component),Rt=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props.data,t=e.isLoading,n=e.errorMsg,i=e.existingLabels,s=e.formErrorMsg;return t?(0,g.jsx)(R.Z,{}):n?(0,g.jsx)("p",{className:"error mt-4 text-center",children:n}):(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(Lt.Z,{isMulti:!0,onChange:this.props.handleChange,placeholder:"",options:i.map((function(e,t){return{label:e,value:e}}))}),s&&(0,g.jsx)("p",{className:"error m-0 mt-2",children:s})]})}}]),n}(a.Component),Et=Ot,At=n(63035),Ut=n(53108),zt=n(21179),Bt=n(73722),Gt=n(86500),Ht=n(59743),Wt=n(76578),qt=n(78534),Vt=n(62150),Kt=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onMouseEnter=function(){s.setState({isOperationShow:!0})},s.onMouseLeave=function(){s.setState({isOperationShow:!1})},s.deleteUserFolderPermission=function(){var e=s.props.item;s.props.deleteUserFolderPermission(e)},s.onChangeUserFolderPerm=function(e){var t=s.props.item;s.props.onChangeUserFolderPerm(t.repo_id,e,t.folder_path,t.user_email)},s.state={isOperationShow:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props.item,t=e.permission;return(0,g.jsxs)("tr",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onMouseEnter,children:[(0,g.jsx)("td",{children:(0,g.jsx)("a",{href:"".concat(u.ze,"profile/").concat(encodeURIComponent(e.user_email),"/"),target:"_blank",rel:"noreferrer",children:e.user_name})}),this.props.showPath&&(0,g.jsx)("td",{children:(0,g.jsx)("a",{href:"".concat(u.ze,"library/").concat(e.repo_id,"/").concat(m.c.encodePath(this.props.repoName+e.folder_path)),children:e.folder_name})}),(0,g.jsx)("td",{children:(0,g.jsx)(we.Z,{isTextMode:!0,autoFocus:!0,isEditIconShow:this.state.isOperationShow,currentPermission:t,permissions:this.props.permissions,onPermissionChanged:this.onChangeUserFolderPerm})}),(0,g.jsx)("td",{children:(0,g.jsx)("span",{tabIndex:"0",role:"button",className:"sf2-icon-x3 action-icon ".concat(this.state.isOperationShow?"":"hide"),onClick:this.deleteUserFolderPermission,onKeyDown:m.c.onKeyDown,title:(0,u.ih)("Delete"),"aria-label":(0,u.ih)("Delete")})})]})}}]),n}(a.Component),Yt=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).handleUserSelectChange=function(e){s.setState({selectedUsers:e})},s.setPermission=function(e){s.setState({permission:e})},s.addUserFolderPerm=function(){var e=s.state.selectedUsers,t=s.props.folderPath||s.state.folderPath;if(!e||!e.length||!t)return!1;var n=e.map((function(e,t){return e.email}));(s.props.isDepartmentRepo?D.I.addDepartmentRepoUserFolderPerm(s.props.repoID,s.state.permission,t,n):D.I.addUserFolderPerm(s.props.repoID,s.state.permission,t,n)).then((function(e){var t=[];if(e.data.failed.length>0)for(var n=0;n0&&this.state.errorMsg.map((function(e,t){var n="";return n=e.user_email?e.user_email+": "+e.error_msg:e,(0,g.jsx)("tr",{children:(0,g.jsx)("td",{colSpan:3,children:(0,g.jsx)("p",{className:"error",children:n})})},t)}))]})]}),(0,g.jsx)("div",{className:"share-list-container",children:(0,g.jsxs)("table",{className:"table-thead-hidden w-xs-250",children:[i,(0,g.jsx)("tbody",{children:n.map((function(n,i){return(0,g.jsx)(Kt,{item:n,permissions:e.permissions,deleteUserFolderPermission:e.deleteUserFolderPermItem,onChangeUserFolderPerm:e.onChangeUserFolderPerm,showPath:t,repoName:e.props.repoName},i)}))})]})})]})}}]),n}(a.Component),Xt=Yt,Jt=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onMouseEnter=function(){s.setState({isOperationShow:!0})},s.onMouseLeave=function(){s.setState({isOperationShow:!1})},s.deleteGroupPermissionItem=function(){var e=s.props.item;s.props.deleteGroupPermissionItem(e)},s.onChangeGroupPermission=function(e){var t=s.props.item;s.props.onChangeGroupPermission(t,e)},s.state={isOperationShow:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props.item;return(0,g.jsxs)("tr",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onMouseEnter,children:[(0,g.jsx)("td",{children:(0,g.jsx)("a",{href:"".concat(u.ze,"group/").concat(e.group_id,"/"),target:"_blank",rel:"noreferrer",children:e.group_name})}),this.props.showPath&&(0,g.jsx)("td",{children:(0,g.jsx)("a",{href:"".concat(u.ze,"library/").concat(e.repo_id,"/").concat(m.c.encodePath(this.props.repoName+e.folder_path)),children:e.folder_name})}),(0,g.jsx)("td",{children:(0,g.jsx)(we.Z,{isTextMode:!0,autoFocus:!0,isEditIconShow:this.state.isOperationShow,currentPermission:e.permission,permissions:this.props.permissions,onPermissionChanged:this.onChangeGroupPermission})}),(0,g.jsx)("td",{children:(0,g.jsx)("span",{tabIndex:"0",role:"button",className:"sf2-icon-x3 action-icon ".concat(this.state.isOperationShow?"":"hide"),onClick:this.deleteGroupPermissionItem,onKeyDown:m.c.onKeyDown,title:(0,u.ih)("Delete"),"aria-label":(0,u.ih)("Delete")})})]})}}]),n}(a.Component),Qt=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).handleSelectChange=function(e){s.setState({selectedOption:e})},s.loadOptions=function(){D.I.shareableGroups().then((function(e){s.options=e.data.map((function(e,t){return{id:e.id,label:e.name,value:e.name}}))}))},s.listGroupPermissionItems=function(){var e=s.props,t=e.isDepartmentRepo,n=e.repoID,i=e.folderPath;(t?D.I.listDepartmentRepoGroupFolderPerm(n,i):D.I.listGroupFolderPerm(n,i)).then((function(e){0!==e.data.length&&s.setState({groupPermissionItems:e.data})}))},s.setPermission=function(e){s.setState({permission:e})},s.addGroupFolderPerm=function(){var e=s.state.selectedOption,t=s.props.folderPath||s.state.folderPath;if(!e||!t)return!1;(s.props.isDepartmentRepo?D.I.addDepartmentRepoGroupFolderPerm(s.props.repoID,s.state.permission,t,e.id):D.I.addGroupFolderPerm(s.props.repoID,s.state.permission,t,e.id)).then((function(e){var t=[];if(e.data.failed.length>0)for(var n=0;n0&&this.state.errorMsg.map((function(e,t){var n=e.group_id+": "+e.error_msg;return(0,g.jsx)("tr",{children:(0,g.jsx)("td",{colSpan:3,children:(0,g.jsx)("p",{className:"error",children:n})})},t)}))]})]}),(0,g.jsx)("div",{className:"share-list-container",children:(0,g.jsxs)("table",{className:"table-thead-hidden w-xs-250",children:[n,(0,g.jsx)("tbody",{children:this.state.groupPermissionItems.map((function(n,i){return(0,g.jsx)(Jt,{item:n,permissions:e.permissions,deleteGroupPermissionItem:e.deleteGroupPermissionItem,onChangeGroupPermission:e.onChangeGroupPermission,showPath:t,repoName:e.props.repoName},i)}))})]})})]})}}]),n}(a.Component),$t=Qt,en=(n(62990),function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).toggle=function(e){s.state.activeTab!==e&&s.setState({activeTab:e})},s.renderContent=function(){var e=s.state.activeTab;return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)("div",{className:"share-dialog-side",children:(0,g.jsxs)(At.Z,{pills:!0,children:[(0,g.jsx)(Ut.Z,{role:"tab","aria-selected":"userPermission"===e,"aria-controls":"user-perm-panel",children:(0,g.jsx)(zt.Z,{className:"userPermission"===e?"active":"",onClick:s.toggle.bind((0,y.Z)(s),"userPermission"),tabIndex:"0",onKeyDown:m.c.onKeyDown,children:(0,u.ih)("User Permission")})}),(0,g.jsx)(Ut.Z,{role:"tab","aria-selected":"groupPermission"===e,"aria-controls":"group-perm-panel",children:(0,g.jsx)(zt.Z,{className:"groupPermission"===e?"active":"",onClick:s.toggle.bind((0,y.Z)(s),"groupPermission"),tabIndex:"0",onKeyDown:m.c.onKeyDown,children:(0,u.ih)("Group Permission")})})]})}),(0,g.jsx)("div",{className:"share-dialog-main",children:(0,g.jsxs)(Bt.Z,{activeTab:s.state.activeTab,children:[(0,g.jsx)(Gt.Z,{tabId:"userPermission",role:"tabpanel",id:"user-perm-panel",children:(0,g.jsx)(Xt,{repoID:s.props.repoID,repoName:s.props.repoName,folderPath:s.props.folderPath,isDepartmentRepo:s.props.isDepartmentRepo})}),(0,g.jsx)(Gt.Z,{tabId:"groupPermission",role:"tabpanel",id:"group-perm-panel",children:(0,g.jsx)($t,{repoID:s.props.repoID,repoName:s.props.repoName,folderPath:s.props.folderPath,isDepartmentRepo:s.props.isDepartmentRepo})})]})})]})},s.state={activeTab:"userPermission"},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.repoName,n=e.folderName,i=t?(0,u.ih)("{placeholder} Folder Permission"):(0,u.ih)("Set permission of {placeholder}");return i=i.replace("{placeholder}",''+m.c.HTMLescape(t||n)+""),(0,g.jsx)("div",{children:(0,g.jsxs)(d.Z,{isOpen:!0,style:{maxWidth:"980px"},className:"share-dialog",toggle:this.props.toggleDialog,children:[(0,g.jsx)(X.Z,{toggle:this.props.toggleDialog,children:(0,g.jsx)("span",{dangerouslySetInnerHTML:{__html:i},className:"d-flex mw-100"})}),(0,g.jsx)(C.Z,{className:"dialog-list-container share-dialog-content",role:"tablist",children:this.renderContent()})]})})}}]),n}(a.Component)),tn=n(18718),nn=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onMenuItemClick=function(e){var t=m.c.getEventData(e,"toggle");s.props.onMenuItemClick(t)},s.onMenuItemKeyDown=function(e){"Enter"!=e.key&&"Space"!=e.key||s.onMenuItemClick(e)},s.onDropdownToggleClick=function(e){s.toggleOperationMenu(e)},s.onDropdownToggleKeyDown=function(e){"Enter"!=e.key&&"Space"!=e.key||s.onDropdownToggleClick(e)},s.toggleOperationMenu=function(e){var t=e.target?e.target.dataset:null;t&&t.toggle&&"Rename"===t.toggle?s.setState({isItemMenuShow:!s.state.isItemMenuShow}):s.setState({isItemMenuShow:!s.state.isItemMenuShow},(function(){s.state.isItemMenuShow?s.props.onFreezedItem():s.props.onUnfreezedItem()}))},s.toggleAdvancedMenuShown=function(e){s.setState({isAdvancedMenuShown:!0})},s.toggleAdvancedMenu=function(e){e.stopPropagation(),s.setState({isAdvancedMenuShown:!s.state.isAdvancedMenuShown},(function(){s.toggleOperationMenu(e)}))},s.onDropDownMouseMove=function(e){s.state.isAdvancedMenuShown&&e.target&&"dropdown-item"===e.target.className&&s.setState({isAdvancedMenuShown:!1})},s.generatorOperations=function(){var e=s.props.repo,t=u._y&&e.encrypted&&u.yV&&u.aZ,n=["Rename","Transfer"];if(u.n_&&n.push("Folder Permission"),n.push("Share Admin","Divider"),e.encrypted&&n.push("Change Password"),t&&n.push("Reset Password"),u._y){var i=e.monitored?"Unwatch File Changes":"Watch File Changes";n.push(i)}n.push("Divider","History Setting","Advanced");for(var r=0;r'+m.c.HTMLescape(e.repo_name)+"",n=(0,u.ih)("{placeholder} API Token").replace("{placeholder}",t);return(0,g.jsxs)(d.Z,{isOpen:!0,style:{maxWidth:"800px"},toggle:this.props.onRepoAPITokenToggle,children:[(0,g.jsx)(X.Z,{toggle:this.props.onRepoAPITokenToggle,children:(0,g.jsx)("span",{dangerouslySetInnerHTML:{__html:n},className:"d-flex mw-100"})}),(0,g.jsx)(C.Z,{children:(0,g.jsx)("div",{className:"o-auto",children:this.renderContent()})})]})}}]),n}(a.Component),pn=n(74165),dn=n(15861),un=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.accountName,n=e.closeDialog;return(0,g.jsxs)(d.Z,{isOpen:!0,toggle:n,children:[(0,g.jsx)(X.Z,{toggle:n,children:(0,u.ih)("Delete SeaTable base")}),(0,g.jsx)(C.Z,{children:(0,g.jsx)("p",{className:"pb-6",children:(0,u.ih)("Are you sure to delete SeaTable {accountName}?").replace("{accountName}",t)})}),(0,g.jsxs)(Q.Z,{children:[(0,g.jsx)($.Z,{color:"secondary",onClick:n,children:(0,u.ih)("Cancel")}),(0,g.jsx)($.Z,{color:"primary",onClick:this.props.onDeleteSeatables,children:(0,u.ih)("Delete")})]})]})}}]),n}(a.Component),mn=un,gn=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).openDialog=function(){s.setState({isShowDialog:!0})},s.closeDialog=function(){s.setState({isShowDialog:!1})},s.onDeleteSeatables=function(){var e=s.props.setting;s.props.deleteStableAccountSetting(e,"seatable_account_manage"),s.closeDialog()},s.state={isShowDialog:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.state.isShowDialog,t=this.props,n=t.setting,i=t.t,s=t.index,r=n.base_api_token,o=n.base_name,a=n.seatable_server_url;return(0,g.jsxs)("tr",{children:[(0,g.jsx)("td",{width:"30%",className:"text-truncate",title:o,"aria-label":o,children:o}),(0,g.jsx)("td",{id:"abc-".concat(s),width:"55%",className:"text-truncate",title:a,"aria-label":a,children:a}),(0,g.jsxs)("td",{width:"15%",children:[(0,g.jsx)("span",{className:"account-operation-btn",onClick:this.props.editSeatableSettingAccount.bind(this,r),title:(0,u.ih)("Edit"),"aria-label":(0,u.ih)("Edit"),children:(0,g.jsx)("i",{className:"sf2-icon-edit",style:{color:"#999"}})}),(0,g.jsx)("span",{className:"account-operation-btn",onClick:this.openDialog,title:(0,u.ih)("Delete"),"aria-label":(0,u.ih)("Delete"),children:(0,g.jsx)("i",{className:"sf2-icon-delete",style:{color:"#999"}})})]}),e&&(0,g.jsx)(mn,{t:i,accountName:o,onDeleteSeatables:this.onDeleteSeatables,closeDialog:this.closeDialog})]},"account-".concat(r))}}]),n}(a.Component),fn=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var s=arguments.length,r=new Array(s),o=0;o'+m.c.HTMLescape(o.repo_name)+"",l=(0,u.ih)("{placeholder} SeaTable integration").replace("{placeholder}",a);return(0,g.jsxs)(d.Z,{isOpen:!0,toggle:r,className:"account-dialog",children:[(0,g.jsx)(X.Z,{toggle:r,children:(0,g.jsx)("p",{dangerouslySetInnerHTML:{__html:l},className:"m-0"})}),(0,g.jsx)(C.Z,{className:"account-dialog-content",children:(0,g.jsxs)("div",{className:"account-dialog-main",children:[i===Dn&&(0,g.jsx)(vn,{seatableSettings:n,changeStatus:function(){return e.changeStatus(wn)},editSeatableSettingAccount:this.editSeatableSettingAccount,deleteStableAccountSetting:this.deleteStableAccountSetting}),i===wn&&(0,g.jsx)(yn,{changeStatus:function(){return e.changeStatus(Dn)},onSubmit:this.onSubmit}),i===Sn&&(0,g.jsx)(yn,{currentDtableInfo:s,changeStatus:function(){return e.changeStatus(Dn)},onSubmit:this.onSubmit})]})})]})}}]),n}(a.Component),bn=jn,Cn=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onMouseEnter=function(){s.setState({isOperationShow:!0})},s.onMouseLeave=function(){s.setState({isOperationShow:!1})},s.onDeleteLink=function(e){e.preventDefault(),s.props.deleteItem(s.props.item)},s.state={isOperationShow:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e,t=this.props.item,n="/"===t.path?"/":t.path.slice(0,t.path.length-1);return e=t.is_dir?"".concat(u.ze,"library/").concat(t.repo_id,"/").concat(encodeURIComponent(t.repo_name)).concat(m.c.encodePath(n)):"".concat(u.ze,"lib/").concat(t.repo_id,"/file").concat(m.c.encodePath(t.path)),(0,g.jsxs)("tr",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onMouseEnter,children:[(0,g.jsx)("td",{className:"name",children:t.creator_name}),(0,g.jsx)("td",{children:t.is_dir?(0,g.jsx)(c.rU,{to:e,children:t.obj_name}):(0,g.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",children:t.obj_name})}),(0,g.jsx)("td",{children:(0,g.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:t.link})}),(0,g.jsx)("td",{children:(0,g.jsx)("span",{tabIndex:"0",role:"button",className:"sf2-icon-x3 action-icon ".concat(this.state.isOperationShow?"":"invisible"),onClick:this.onDeleteLink,onKeyDown:m.c.onKeyDown,title:(0,u.ih)("Delete"),"aria-label":(0,u.ih)("Delete")})})]})}}]),n}(a.Component),kn=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).deleteItem=function(e){D.I.deleteRepoShareLink(s.props.repo.repo_id,e.token).then((function(){var t=s.state.items.filter((function(t){return t.token!==e.token}));s.setState({items:t});var n=(0,u.ih)("Successfully deleted 1 item");w.Z.success(n)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.state={loading:!0,errorMsg:"",items:[]},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this;D.I.listRepoShareLinks(this.props.repo.repo_id).then((function(t){e.setState({loading:!1,items:t.data})})).catch((function(t){e.setState({loading:!1,errorMsg:m.c.getErrorMsg(t,!0)})}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.loading,i=t.errorMsg,s=t.items;return(0,g.jsxs)(a.Fragment,{children:[n&&(0,g.jsx)(R.Z,{}),!n&&i&&(0,g.jsx)("p",{className:"error text-center mt-8",children:i}),!n&&!i&&!s.length&&(0,g.jsx)(O.Z,{forDialog:!0,children:(0,g.jsx)("p",{className:"text-secondary",children:(0,u.ih)("No share links")})}),!n&&!i&&s.length>0&&(0,g.jsxs)("table",{className:"table-hover",children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"22%",children:(0,u.ih)("Creator")}),(0,g.jsx)("th",{width:"20%",children:(0,u.ih)("Name")}),(0,g.jsx)("th",{width:"50%",children:(0,u.ih)("Link")}),(0,g.jsx)("th",{width:"8%"})]})}),(0,g.jsx)("tbody",{children:s.map((function(t,n){return(0,g.jsx)(Cn,{item:t,deleteItem:e.deleteItem},n)}))})]})]})}}]),n}(a.Component),In=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onMouseEnter=function(){s.setState({isOperationShow:!0})},s.onMouseLeave=function(){s.setState({isOperationShow:!1})},s.onDeleteLink=function(e){e.preventDefault(),s.props.deleteItem(s.props.item)},s.state={isOperationShow:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props.item,t="/"===e.path?"/":e.path.slice(0,e.path.length-1),n="".concat(u.ze,"library/").concat(e.repo_id,"/").concat(encodeURIComponent(e.repo_name)).concat(m.c.encodePath(t));return(0,g.jsxs)("tr",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onMouseEnter,children:[(0,g.jsx)("td",{className:"name",children:e.creator_name}),(0,g.jsx)("td",{children:(0,g.jsx)(c.rU,{to:n,children:e.obj_name})}),(0,g.jsx)("td",{children:(0,g.jsx)("a",{href:e.link,target:"_blank",rel:"noreferrer",children:e.link})}),(0,g.jsx)("td",{children:(0,g.jsx)("span",{tabIndex:"0",role:"button",className:"sf2-icon-x3 action-icon ".concat(this.state.isOperationShow?"":"invisible"),onClick:this.onDeleteLink,onKeyDown:m.c.onKeyDown,title:(0,u.ih)("Delete"),"aria-label":(0,u.ih)("Delete")})})]})}}]),n}(a.Component),Mn=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).deleteItem=function(e){D.I.deleteRepoUploadLink(s.props.repo.repo_id,e.token).then((function(){var t=s.state.items.filter((function(t){return t.token!==e.token}));s.setState({items:t});var n=(0,u.ih)("Successfully deleted 1 item");w.Z.success(n)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.state={loading:!0,errorMsg:"",items:[]},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this;D.I.listRepoUploadLinks(this.props.repo.repo_id).then((function(t){e.setState({loading:!1,items:t.data})})).catch((function(t){e.setState({loading:!1,errorMsg:m.c.getErrorMsg(t,!0)})}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.loading,i=t.errorMsg,s=t.items;return(0,g.jsxs)(a.Fragment,{children:[n&&(0,g.jsx)(R.Z,{}),!n&&i&&(0,g.jsx)("p",{className:"error text-center mt-8",children:i}),!n&&!i&&!s.length&&(0,g.jsx)(O.Z,{forDialog:!0,children:(0,g.jsx)("p",{className:"text-secondary",children:(0,u.ih)("No upload links")})}),!n&&!i&&s.length>0&&(0,g.jsxs)("table",{className:"table-hover",children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"22%",children:(0,u.ih)("Creator")}),(0,g.jsx)("th",{width:"20%",children:(0,u.ih)("Name")}),(0,g.jsx)("th",{width:"50%",children:(0,u.ih)("Link")}),(0,g.jsx)("th",{width:"8%"})]})}),(0,g.jsx)("tbody",{children:s.map((function(t,n){return(0,g.jsx)(In,{item:t,deleteItem:e.deleteItem},n)}))})]})]})}}]),n}(a.Component),Nn=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onMouseEnter=function(){s.setState({isOperationShow:!0})},s.onMouseLeave=function(){s.setState({isOperationShow:!1})},s.onDeleteLink=function(e){e.preventDefault(),s.props.deleteItem(s.props.item)},s.changePerm=function(e){var t=s.props.item;D.I.updateShareToUserItemPermission(t.repo_id,t.path,"user",t.share_to,e).then((function(){s.setState({permission:e})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onEditPermission=function(e){e.nativeEvent.stopImmediatePropagation(),s.setState({isShowPermEditor:!0})},s.state={permission:s.props.item.permission,isOperationShow:!1,isShowPermEditor:!1},s.permissions=["rw","r"],u._y&&("/"===s.props.item.path&&s.props.isRepoOwner&&s.permissions.push("admin"),s.permissions.push("cloud-edit","preview")),s}return(0,s.Z)(n,[{key:"render",value:function(){var e,t=this.props.item,n="/"===t.path?"/":t.path.slice(0,t.path.length-1);return e="".concat(u.ze,"library/").concat(t.repo_id,"/").concat(encodeURIComponent(t.repo_name)).concat(m.c.encodePath(n)),(0,g.jsxs)("tr",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onMouseEnter,children:[(0,g.jsx)("td",{children:(0,g.jsx)(c.rU,{to:e,children:m.c.getFolderName(t.path)})}),(0,g.jsx)("td",{className:"name",children:t.share_to_name}),(0,g.jsxs)("td",{children:[!this.state.isShowPermEditor&&(0,g.jsxs)("div",{children:[(0,g.jsx)("span",{children:t.permission_name||m.c.sharePerms(this.state.permission)}),this.state.isOperationShow&&(0,g.jsx)("a",{href:"#",role:"button","aria-label":(0,u.ih)("Edit"),title:(0,u.ih)("Edit"),className:"fa fa-pencil-alt attr-action-icon",onClick:this.onEditPermission})]}),this.state.isShowPermEditor&&(0,g.jsx)(we.Z,{repoID:t.repo_id,isTextMode:!0,isEditIconShow:this.state.isOperationShow,isEditing:!0,currentPermission:this.state.permission,permissions:this.permissions,onPermissionChanged:this.changePerm})]}),(0,g.jsx)("td",{children:(0,g.jsx)("span",{tabIndex:"0",role:"button",className:"sf2-icon-x3 action-icon ".concat(this.state.isOperationShow?"":"invisible"),onClick:this.onDeleteLink,onKeyDown:m.c.onKeyDown,title:(0,u.ih)("Delete"),"aria-label":(0,u.ih)("Delete")})})]})}}]),n}(a.Component),Zn=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).deleteItem=function(e){D.I.deleteShareToUserItem(e.repo_id,e.path,"user",e.share_to).then((function(t){var n=s.state.items.filter((function(t){return t.path+t.share_to!==e.path+e.share_to}));s.setState({items:n});var i=(0,u.ih)("Successfully deleted 1 item");w.Z.success(i)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.state={loading:!0,errorMsg:"",items:[]},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this;D.I.getAllRepoFolderShareInfo(this.props.repo.repo_id,"user").then((function(t){e.setState({loading:!1,items:t.data.share_info_list})})).catch((function(t){e.setState({loading:!1,errorMsg:m.c.getErrorMsg(t,!0)})}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.loading,i=t.errorMsg,s=t.items,r=this.props.repo.owner_email===u.b6;return(0,g.jsxs)(a.Fragment,{children:[n&&(0,g.jsx)(R.Z,{}),!n&&i&&(0,g.jsx)("p",{className:"error text-center mt-8",children:i}),!n&&!i&&!s.length&&(0,g.jsx)(O.Z,{forDialog:!0,children:(0,g.jsx)("p",{className:"text-secondary",children:(0,u.ih)("No user shares")})}),!n&&!i&&s.length>0&&(0,g.jsxs)("table",{className:"table-hover",children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"30%",children:(0,u.ih)("Name")}),(0,g.jsx)("th",{width:"30%",children:(0,u.ih)("User")}),(0,g.jsx)("th",{width:"30%",children:(0,u.ih)("Permission")}),(0,g.jsx)("th",{width:"10%"})]})}),(0,g.jsx)("tbody",{children:s.map((function(t,n){return(0,g.jsx)(Nn,{item:t,deleteItem:e.deleteItem,isRepoOwner:r},n)}))})]})]})}}]),n}(a.Component),Pn=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onMouseEnter=function(){s.setState({isOperationShow:!0})},s.onMouseLeave=function(){s.setState({isOperationShow:!1})},s.onDeleteLink=function(e){e.preventDefault(),s.props.deleteItem(s.props.item)},s.changePerm=function(e){var t=s.props.item;D.I.updateShareToGroupItemPermission(t.repo_id,t.path,"group",t.share_to,e).then((function(){s.setState({permission:e})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onEditPermission=function(e){e.nativeEvent.stopImmediatePropagation(),s.setState({isShowPermEditor:!0})},s.state={permission:s.props.item.permission,isOperationShow:!1,isShowPermEditor:!1},s.permissions=["rw","r"],u._y&&("/"===s.props.item.path&&s.props.isRepoOwner&&s.permissions.push("admin"),s.permissions.push("cloud-edit","preview")),s}return(0,s.Z)(n,[{key:"render",value:function(){var e,t=this.props.item,n="/"===t.path?"/":t.path.slice(0,t.path.length-1);return e="".concat(u.ze,"library/").concat(t.repo_id,"/").concat(encodeURIComponent(t.repo_name)).concat(m.c.encodePath(n)),(0,g.jsxs)("tr",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onMouseEnter,children:[(0,g.jsx)("td",{children:(0,g.jsx)(c.rU,{to:e,children:m.c.getFolderName(t.path)})}),(0,g.jsx)("td",{className:"name",children:t.share_to_name}),(0,g.jsxs)("td",{children:[!this.state.isShowPermEditor&&(0,g.jsxs)("div",{children:[(0,g.jsx)("span",{children:t.permission_name||m.c.sharePerms(this.state.permission)}),this.state.isOperationShow&&(0,g.jsx)("a",{href:"#",role:"button","aria-label":(0,u.ih)("Edit"),title:(0,u.ih)("Edit"),className:"fa fa-pencil-alt attr-action-icon",onClick:this.onEditPermission})]}),this.state.isShowPermEditor&&(0,g.jsx)(we.Z,{repoID:t.repo_id,isTextMode:!0,isEditIconShow:this.state.isOperationShow,isEditing:!0,currentPermission:this.state.permission,permissions:this.permissions,onPermissionChanged:this.changePerm})]}),(0,g.jsx)("td",{children:(0,g.jsx)("span",{tabIndex:"0",role:"button",className:"sf2-icon-x3 action-icon ".concat(this.state.isOperationShow?"":"invisible"),onClick:this.onDeleteLink,onKeyDown:m.c.onKeyDown,title:(0,u.ih)("Delete"),"aria-label":(0,u.ih)("Delete")})})]})}}]),n}(a.Component),_n=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).deleteItem=function(e){D.I.deleteShareToGroupItem(e.repo_id,e.path,"group",e.share_to).then((function(t){var n=s.state.items.filter((function(t){return t.path+t.share_to!==e.path+e.share_to}));s.setState({items:n});var i=(0,u.ih)("Successfully deleted 1 item");w.Z.success(i)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.state={loading:!0,errorMsg:"",items:[]},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this;D.I.getAllRepoFolderShareInfo(this.props.repo.repo_id,"group").then((function(t){e.setState({loading:!1,items:t.data.share_info_list})})).catch((function(t){e.setState({loading:!1,errorMsg:m.c.getErrorMsg(t,!0)})}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.loading,i=t.errorMsg,s=t.items,r=this.props.repo.owner_email===u.b6;return(0,g.jsxs)(a.Fragment,{children:[n&&(0,g.jsx)(R.Z,{}),!n&&i&&(0,g.jsx)("p",{className:"error text-center mt-8",children:i}),!n&&!i&&!s.length&&(0,g.jsx)(O.Z,{forDialog:!0,children:(0,g.jsx)("p",{className:"text-secondary",children:(0,u.ih)("No group shares")})}),!n&&!i&&s.length>0&&(0,g.jsxs)("table",{className:"table-hover",children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"30%",children:(0,u.ih)("Name")}),(0,g.jsx)("th",{width:"30%",children:(0,u.ih)("Group")}),(0,g.jsx)("th",{width:"30%",children:(0,u.ih)("Permission")}),(0,g.jsx)("th",{width:"10%"})]})}),(0,g.jsx)("tbody",{children:s.map((function(t,n){return(0,g.jsx)(Pn,{item:t,deleteItem:e.deleteItem,isRepoOwner:r},n)}))})]})]})}}]),n}(a.Component),Tn=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).getInitialActiveTab=function(){return s.enableShareLink?"shareLink":s.enableUploadLink?"uploadLink":"shareToUser"},s.toggle=function(e){s.state.activeTab!==e&&s.setState({activeTab:e})},s.onTabKeyDown=function(e){"Enter"!=e.key&&"Space"!=e.key||e.target.click()},s.enableShareLink=!s.props.repo.encrypted&&u.Fl,s.enableUploadLink=!s.props.repo.encrypted&&u.$g,s.state={activeTab:s.getInitialActiveTab()},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.state.activeTab,t=this.props.repo.repo_name,n=(0,u.ih)("{placeholder} Share Admin");return n=n.replace("{placeholder}",''+m.c.HTMLescape(t)+""),(0,g.jsx)("div",{children:(0,g.jsxs)(d.Z,{isOpen:!0,style:{maxWidth:"760px"},className:"share-dialog",toggle:this.props.toggleDialog,children:[(0,g.jsx)(X.Z,{toggle:this.props.toggleDialog,children:(0,g.jsx)("span",{dangerouslySetInnerHTML:{__html:n},className:"d-flex mw-100"})}),(0,g.jsx)(C.Z,{className:"dialog-list-container share-dialog-content",role:"tablist",children:(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)("div",{className:"share-dialog-side",children:(0,g.jsxs)(At.Z,{pills:!0,children:[this.enableShareLink&&(0,g.jsx)(Ut.Z,{role:"tab","aria-selected":"shareLink"===e,"aria-controls":"share-link-panel",children:(0,g.jsx)(zt.Z,{className:"shareLink"===e?"active":"",onClick:this.toggle.bind(this,"shareLink"),tabIndex:"0",onKeyDown:this.onTabKeyDown,children:(0,u.ih)("Share Links")})}),this.enableUploadLink&&(0,g.jsx)(Ut.Z,{role:"tab","aria-selected":"uploadLink"===e,"aria-controls":"upload-link-panel",children:(0,g.jsx)(zt.Z,{className:"uploadLink"===e?"active":"",onClick:this.toggle.bind(this,"uploadLink"),tabIndex:"0",onKeyDown:this.onTabKeyDown,children:(0,u.ih)("Upload Links")})}),(0,g.jsx)(Ut.Z,{role:"tab","aria-selected":"shareToUser"===e,"aria-controls":"share-to-user-panel",children:(0,g.jsx)(zt.Z,{className:"shareToUser"===e?"active":"",onClick:this.toggle.bind(this,"shareToUser"),tabIndex:"0",onKeyDown:this.onTabKeyDown,children:(0,u.ih)("User Shares")})}),(0,g.jsx)(Ut.Z,{role:"tab","aria-selected":"shareToGroup"===e,"aria-controls":"share-to-group-panel",children:(0,g.jsx)(zt.Z,{className:"shareToGroup"===e?"active":"",onClick:this.toggle.bind(this,"shareToGroup"),tabIndex:"0",onKeyDown:this.onTabKeyDown,children:(0,u.ih)("Group Shares")})})]})}),(0,g.jsx)("div",{className:"share-dialog-main",children:(0,g.jsxs)(Bt.Z,{activeTab:this.state.activeTab,children:[this.enableShareLink&&"shareLink"===e&&(0,g.jsx)(Gt.Z,{tabId:"shareLink",role:"tabpanel",id:"share-link-panel",children:(0,g.jsx)(kn,{repo:this.props.repo})}),this.enableUploadLink&&"uploadLink"===e&&(0,g.jsx)(Gt.Z,{tabId:"uploadLink",role:"tabpanel",id:"upload-link-panel",children:(0,g.jsx)(Mn,{repo:this.props.repo})}),"shareToUser"===e&&(0,g.jsx)(Gt.Z,{tabId:"shareToUser",role:"tabpanel",id:"share-to-user-panel",children:(0,g.jsx)(Zn,{repo:this.props.repo})}),"shareToGroup"===e&&(0,g.jsx)(Gt.Z,{tabId:"shareToGroup",role:"tabpanel",id:"share-to-group-panel",children:(0,g.jsx)(_n,{repo:this.props.repo})})]})})]})})]})})}}]),n}(a.Component),Fn=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).submit=function(){var e;if(s.state.isAutoDel){e=s.state.autoDelDays;if(!/^-?\d+$/.test(e)||e<=0)return void s.setState({errorInfo:(0,u.ih)("Please enter a positive integer")})}else e=0;var t=s.props.repoID;D.I.setRepoOldFilesAutoDelDays(t,e).then((function(e){s.props.toggleDialog(),w.Z.success((0,u.ih)("Successfully set it."))})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.handleKeyDown=function(e){"Enter"===e.key&&(s.submit(),e.preventDefault())},s.onChange=function(e){var t=e.target.value;s.setState({autoDelDays:t})},s.updateRadioCheck=function(e){"noAutoDel"===e?s.setState({isAutoDel:!1}):"autoDel"===e&&s.setState({isAutoDel:!0})},s.state={autoDelDays:0,isAutoDel:!1,errorInfo:""},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this;D.I.getRepoOldFilesAutoDelDays(this.props.repoID).then((function(t){e.setState({autoDelDays:t.data.auto_delete_days,isAutoDel:t.data.auto_delete_days>0})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))}},{key:"render",value:function(){var e=this;return(0,g.jsxs)(d.Z,{isOpen:!0,toggle:this.props.toggleDialog,children:[(0,g.jsx)(X.Z,{toggle:this.props.toggleDialog,children:(0,u.ih)("Auto deletion")}),(0,g.jsx)(C.Z,{children:(0,g.jsxs)(bt.Z,{children:[(0,g.jsxs)(ge.Z,{check:!0,children:[(0,g.jsx)(re.Z,{type:"radio",name:"radio1",checked:!this.state.isAutoDel,onChange:function(){e.updateRadioCheck("noAutoDel")}})," ",(0,g.jsx)(fe.Z,{children:(0,u.ih)("Do not automatically delete files")})]}),(0,g.jsxs)(ge.Z,{check:!0,children:[(0,g.jsx)(re.Z,{type:"radio",name:"radio1",checked:this.state.isAutoDel,onChange:function(){e.updateRadioCheck("autoDel")}})," ",(0,g.jsx)(fe.Z,{children:(0,u.ih)("Automatically delete files that are not modified within certain days:")}),(0,g.jsx)(re.Z,{type:"text",className:"expire-input",value:this.state.autoDelDays,disabled:!this.state.isAutoDel,onChange:this.onChange,onKeyDown:this.handleKeyDown})," ",(0,g.jsx)(fe.Z,{children:(0,g.jsx)("span",{children:(0,u.ih)("days")})})]}),this.state.errorInfo&&(0,g.jsx)(Ct.Z,{color:"danger",children:this.state.errorInfo})]})}),(0,g.jsxs)(Q.Z,{children:[(0,g.jsx)($.Z,{color:"secondary",onClick:this.props.toggleDialog,children:(0,u.ih)("Cancel")}),(0,g.jsx)($.Z,{color:"primary",onClick:this.submit,children:(0,u.ih)("Submit")})]})]})}}]),n}(a.Component),Ln=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onFocus=function(){s.props.isItemFreezed||s.setState({isOpIconShow:!0})},s.onMouseEnter=function(){s.props.isItemFreezed||s.setState({isOpIconShow:!0,highlight:!0})},s.onMouseLeave=function(){s.props.isItemFreezed||s.setState({isOpIconShow:!1,highlight:!1})},s.onMenuItemClick=function(e){switch(e){case"Star":case"Unstar":s.onToggleStarRepo();break;case"Share":s.onShareToggle();break;case"Delete":s.onDeleteToggle();break;case"Rename":s.onRenameToggle();break;case"Transfer":s.onTransferToggle();break;case"History Setting":s.onHistorySettingToggle();break;case"Change Password":s.onChangePasswordToggle();break;case"Reset Password":s.onResetPasswordToggle();break;case"Watch File Changes":s.watchFileChanges();break;case"Unwatch File Changes":s.unwatchFileChanges();break;case"Folder Permission":s.onFolderPermissionToggle();break;case"Label Current State":s.onLabelToggle();break;case"API Token":s.onAPITokenToggle();break;case"Share Admin":s.toggleRepoShareAdminDialog();break;case"Old Files Auto Delete":s.toggleOldFilesAutoDelDialog();break;case"SeaTable integration":s.onSeaTableIntegrationToggle()}},s.visitRepo=function(){!s.state.isRenaming&&s.props.repo.repo_name&&(0,c.c4)(s.repoURL)},s.onRepoClick=function(){s.props.onRepoClick(s.props.repo)},s.onToggleStarRepo=function(e){e.preventDefault();var t=s.props.repo.repo_name;s.state.isStarred?D.I.unstarItem(s.props.repo.repo_id,"/").then((function(){s.setState({isStarred:!s.state.isStarred});var e=(0,u.ih)("Successfully unstarred {library_name_placeholder}.").replace("{library_name_placeholder}",t);w.Z.success(e)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)})):D.I.starItem(s.props.repo.repo_id,"/").then((function(){s.setState({isStarred:!s.state.isStarred});var e=(0,u.ih)("Successfully starred {library_name_placeholder}.").replace("{library_name_placeholder}",t);w.Z.success(e)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.watchFileChanges=function(){var e=s.props.repo;D.I.monitorRepo(e.repo_id).then((function(){s.props.onMonitorRepo(e,!0)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.unwatchFileChanges=function(){var e=s.props.repo;D.I.unMonitorRepo(e.repo_id).then((function(){s.props.onMonitorRepo(e,!1)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onShareToggle=function(e){void 0!=e&&e.preventDefault(),s.setState({isShareDialogShow:!s.state.isShareDialogShow})},s.onDeleteToggle=function(e){e.preventDefault(),s.setState({isDeleteDialogShow:!s.state.isDeleteDialogShow})},s.onRenameToggle=function(){s.props.onFreezedItem(),s.setState({isRenaming:!s.state.isRenaming})},s.onTransferToggle=function(){s.setState({isTransferDialogShow:!s.state.isTransferDialogShow})},s.onHistorySettingToggle=function(){s.setState({isHistorySettingDialogShow:!s.state.isHistorySettingDialogShow})},s.onChangePasswordToggle=function(){s.setState({isChangePasswordDialogShow:!s.state.isChangePasswordDialogShow})},s.onResetPasswordToggle=function(){s.setState({isResetPasswordDialogShow:!s.state.isResetPasswordDialogShow})},s.onLabelToggle=function(){s.setState({isLabelRepoStateDialogOpen:!s.state.isLabelRepoStateDialogOpen})},s.onFolderPermissionToggle=function(){s.setState({isFolderPermissionDialogShow:!s.state.isFolderPermissionDialogShow})},s.onAPITokenToggle=function(){s.setState({isAPITokenDialogShow:!s.state.isAPITokenDialogShow})},s.onSeaTableIntegrationToggle=function(){s.setState({isSeaTableIntegrationShow:!s.state.isSeaTableIntegrationShow})},s.toggleRepoShareAdminDialog=function(){s.setState({isRepoShareAdminDialogOpen:!s.state.isRepoShareAdminDialogOpen})},s.toggleOldFilesAutoDelDialog=function(){s.setState({isOldFilesAutoDelDialogOpen:!s.state.isOldFilesAutoDelDialogOpen})},s.onUnfreezedItem=function(){s.setState({highlight:!1,isOpIconShow:!1}),s.props.onUnfreezedItem()},s.onRenameConfirm=function(e){var t=s.props.repo,n=t.repo_id;D.I.renameRepo(n,e).then((function(){s.props.onRenameRepo(t,e),s.onRenameCancel()})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onRenameCancel=function(){s.props.onUnfreezedItem(),s.setState({isRenaming:!s.state.isRenaming})},s.onTransferRepo=function(e){var t=s.props.repo.repo_id;D.I.transferRepo(t,e.email).then((function(e){s.props.onTransferRepo(t);var n=(0,u.ih)("Successfully transferred the library.");w.Z.success(n)})).catch((function(e){e.response?w.Z.danger(e.response.data.error_msg||(0,u.ih)("Error"),{duration:3}):w.Z.danger((0,u.ih)("Failed. Please check the network."),{duration:3})})),s.onTransferToggle()},s.onDeleteRepo=function(e){D.I.deleteRepo(e.repo_id).then((function(t){s.setState({isRepoDeleted:!0,isDeleteDialogShow:!1}),s.props.onDeleteRepo(e);var n=e.repo_name,i=(0,u.ih)("Successfully deleted {name}.").replace("{name}",n);w.Z.success(i)})).catch((function(t){var n=m.c.getErrorMsg(t);if(n===(0,u.ih)("Error")){var i=e.repo_name;n=(0,u.ih)("Failed to delete {name}.").replace("{name}",i)}w.Z.danger(n),s.setState({isRepoDeleted:!1})}))},s.renderPCUI=function(){var e=s.props.repo,t=m.c.getLibIconUrl(e),n=m.c.getLibIconTitle(e),i="".concat(u.ze,"library/").concat(e.repo_id,"/").concat(m.c.encodePath(e.repo_name),"/");return(0,g.jsxs)("tr",{className:s.state.highlight?"tr-highlight":"",onMouseEnter:s.onMouseEnter,onMouseLeave:s.onMouseLeave,onClick:s.onRepoClick,onFocus:s.onFocus,children:[(0,g.jsx)("td",{className:"text-center",children:(0,g.jsx)("a",{href:"#",role:"button","aria-label":s.state.isStarred?(0,u.ih)("Unstar"):(0,u.ih)("Star"),onClick:s.onToggleStarRepo,children:(0,g.jsx)("i",{className:"fa-star ".concat(s.state.isStarred?"fas":"far star-empty")})})}),(0,g.jsx)("td",{children:(0,g.jsx)("img",{src:t,title:n,alt:n,width:"24"})}),(0,g.jsxs)("td",{children:[s.state.isRenaming&&(0,g.jsx)(tn.Z,{name:e.repo_name,onRenameConfirm:s.onRenameConfirm,onRenameCancel:s.onRenameCancel}),!s.state.isRenaming&&e.repo_name&&(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(c.rU,{to:i,children:e.repo_name}),e.monitored&&(0,g.jsx)(nt,{repoID:e.repo_id})]}),!s.state.isRenaming&&!e.repo_name&&(0,u.ih)("Broken (please contact your administrator to fix this library)")]}),(0,g.jsx)("td",{children:e.repo_name&&s.state.isOpIconShow&&(0,g.jsxs)("div",{children:[(0,g.jsx)("a",{href:"#",className:"op-icon sf2-icon-share",title:(0,u.ih)("Share"),role:"button","aria-label":(0,u.ih)("Share"),onClick:s.onShareToggle}),(0,g.jsx)("a",{href:"#",className:"op-icon sf2-icon-delete",title:(0,u.ih)("Delete"),role:"button","aria-label":(0,u.ih)("Delete"),onClick:s.onDeleteToggle}),(0,g.jsx)(sn,{isPC:!0,repo:s.props.repo,onMenuItemClick:s.onMenuItemClick,onFreezedItem:s.props.onFreezedItem,onUnfreezedItem:s.onUnfreezedItem})]})}),(0,g.jsx)("td",{children:e.size}),u.al.length>0&&(0,g.jsx)("td",{children:e.storage_name}),(0,g.jsx)("td",{title:A()(e.last_modified).format("llll"),children:A()(e.last_modified).fromNow()})]})},s.renderMobileUI=function(){var e=s.props.repo,t=m.c.getLibIconUrl(e),n=m.c.getLibIconTitle(e),i=s.repoURL="".concat(u.ze,"library/").concat(e.repo_id,"/").concat(m.c.encodePath(e.repo_name),"/");return(0,g.jsxs)("tr",{className:s.state.highlight?"tr-highlight":"",onMouseEnter:s.onMouseEnter,onMouseLeave:s.onMouseLeave,onClick:s.onRepoClick,children:[(0,g.jsx)("td",{onClick:s.visitRepo,children:(0,g.jsx)("img",{src:t,title:n,alt:n,width:"24"})}),(0,g.jsxs)("td",{onClick:s.visitRepo,children:[s.state.isRenaming&&(0,g.jsx)(tn.Z,{name:e.repo_name,onRenameConfirm:s.onRenameConfirm,onRenameCancel:s.onRenameCancel}),!s.state.isRenaming&&e.repo_name&&(0,g.jsxs)("div",{children:[(0,g.jsx)(c.rU,{to:i,children:e.repo_name}),e.monitored&&(0,g.jsx)(nt,{repoID:e.repo_id})]}),!s.state.isRenaming&&!e.repo_name&&(0,g.jsx)("div",{children:"(gettext('Broken (please contact your administrator to fix this library)'))"}),(0,g.jsx)("span",{className:"item-meta-info",children:e.size}),(0,g.jsx)("span",{className:"item-meta-info",title:A()(e.last_modified).format("llll"),children:A()(e.last_modified).fromNow()})]}),(0,g.jsx)("td",{children:e.repo_name&&(0,g.jsx)(sn,{repo:s.props.repo,isStarred:s.state.isStarred,onMenuItemClick:s.onMenuItemClick,onFreezedItem:s.props.onFreezedItem,onUnfreezedItem:s.onUnfreezedItem})})]})},s.state={isOpIconShow:!1,isStarred:s.props.repo.starred,isRenaming:!1,isShareDialogShow:!1,isDeleteDialogShow:!1,isTransferDialogShow:!1,isHistorySettingDialogShow:!1,isChangePasswordDialogShow:!1,isResetPasswordDialogShow:!1,isLabelRepoStateDialogOpen:!1,isFolderPermissionDialogShow:!1,isAPITokenDialogShow:!1,isSeaTableIntegrationShow:!1,isRepoShareAdminDialogOpen:!1,isRepoDeleted:!1,isOldFilesAutoDelDialogOpen:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props.repo;return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(p(),{query:"(min-width: 768px)",children:this.renderPCUI()}),(0,g.jsx)(p(),{query:"(max-width: 767.8px)",children:this.renderMobileUI()}),this.state.isShareDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Qe.Z,{itemType:"library",itemName:e.repo_name,itemPath:"/",repoID:e.repo_id,repoEncrypted:e.encrypted,enableDirPrivateShare:!0,userPerm:e.permission,toggleDialog:this.onShareToggle})}),this.state.isDeleteDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Zt.Z,{repo:e,isRepoDeleted:this.state.isRepoDeleted,onDeleteRepo:this.onDeleteRepo,toggle:this.onDeleteToggle})}),this.state.isTransferDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Pt.Z,{itemName:e.repo_name,submit:this.onTransferRepo,toggleDialog:this.onTransferToggle})}),this.state.isHistorySettingDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(_t,{repoID:e.repo_id,itemName:e.repo_name,toggleDialog:this.onHistorySettingToggle})}),this.state.isChangePasswordDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Tt,{repoID:e.repo_id,repoName:e.repo_name,toggleDialog:this.onChangePasswordToggle})}),this.state.isResetPasswordDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Ft,{repoID:e.repo_id,toggleDialog:this.onResetPasswordToggle})}),this.state.isLabelRepoStateDialogOpen&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Et,{repoID:e.repo_id,repoName:e.repo_name,toggleDialog:this.onLabelToggle})}),this.state.isFolderPermissionDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(en,{toggleDialog:this.onFolderPermissionToggle,repoID:e.repo_id,repoName:e.repo_name})}),this.state.isAPITokenDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(hn,{repo:e,onRepoAPITokenToggle:this.onAPITokenToggle})}),this.state.isSeaTableIntegrationShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(bn,{repo:e,onSeaTableIntegrationToggle:this.onSeaTableIntegrationToggle})}),this.state.isRepoShareAdminDialogOpen&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Tn,{repo:e,toggleDialog:this.toggleRepoShareAdminDialog})}),this.state.isOldFilesAutoDelDialogOpen&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Fn,{repoID:e.repo_id,toggleDialog:this.toggleOldFilesAutoDelDialog})})]})}}]),n}(a.Component),On=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onFreezedItem=function(){s.setState({isItemFreezed:!0})},s.onUnfreezedItem=function(){s.setState({isItemFreezed:!1})},s.sortByName=function(e){e.preventDefault();var t="asc"==s.props.sortOrder?"desc":"asc";s.props.sortRepoList("name",t)},s.sortByTime=function(e){e.preventDefault();var t="asc"==s.props.sortOrder?"desc":"asc";s.props.sortRepoList("time",t)},s.sortBySize=function(e){e.preventDefault();var t="asc"==s.props.sortOrder?"desc":"asc";s.props.sortRepoList("size",t)},s.renderRepoListView=function(){return(0,g.jsx)(a.Fragment,{children:s.props.repoList.map((function(e){return(0,g.jsx)(Ln,{repo:e,isItemFreezed:s.state.isItemFreezed,onFreezedItem:s.onFreezedItem,onUnfreezedItem:s.onUnfreezedItem,onRenameRepo:s.props.onRenameRepo,onDeleteRepo:s.props.onDeleteRepo,onTransferRepo:s.props.onTransferRepo,onMonitorRepo:s.props.onMonitorRepo,onRepoClick:s.props.onRepoClick},e.repo_id)}))})},s.renderPCUI=function(){var e=u.al.length>0,t="asc"===s.props.sortOrder?(0,g.jsx)("span",{className:"fas fa-caret-up"}):(0,g.jsx)("span",{className:"fas fa-caret-down"});return(0,g.jsxs)("table",{children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"4%"}),(0,g.jsx)("th",{width:"4%",children:(0,g.jsx)("span",{className:"sr-only",children:(0,u.ih)("Library Type")})}),(0,g.jsx)("th",{width:e?"33%":"38%",children:(0,g.jsxs)("a",{className:"d-block table-sort-op",href:"#",onClick:s.sortByName,children:[(0,u.ih)("Name")," ","name"===s.props.sortBy&&t]})}),(0,g.jsx)("th",{width:"14%",children:(0,g.jsx)("span",{className:"sr-only",children:(0,u.ih)("Actions")})}),(0,g.jsx)("th",{width:e?"15%":"20%",children:(0,g.jsxs)("a",{className:"d-block table-sort-op",href:"#",onClick:s.sortBySize,children:[(0,u.ih)("Size")," ","size"===s.props.sortBy&&t]})}),e?(0,g.jsx)("th",{width:"15%",children:(0,u.ih)("Storage Backend")}):null,(0,g.jsx)("th",{width:e?"15%":"20%",children:(0,g.jsxs)("a",{className:"d-block table-sort-op",href:"#",onClick:s.sortByTime,children:[(0,u.ih)("Last Update")," ","time"===s.props.sortBy&&t]})})]})}),(0,g.jsx)("tbody",{children:s.renderRepoListView()})]})},s.renderMobileUI=function(){return(0,g.jsxs)("table",{className:"table-thead-hidden",children:[(0,g.jsx)(Je,{}),(0,g.jsx)("tbody",{children:s.renderRepoListView()})]})},s.state={isItemFreezed:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(p(),{query:"(min-width: 768px)",children:this.renderPCUI()}),(0,g.jsx)(p(),{query:"(max-width: 767.8px)",children:this.renderMobileUI()})]})}}]),n}(a.Component),Rn=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var s=arguments.length,r=new Array(s),o=0;o0&&(0,g.jsx)("span",{className:"sf3-font sf3-font-sort action-icon",onClick:this.toggleSortOptionsDialog})]}),(0,g.jsxs)("div",{className:"cur-view-content",children:[this.state.isLoading&&(0,g.jsx)(R.Z,{}),!this.state.isLoading&&this.state.errorMsg&&(0,g.jsx)("p",{className:"error text-center mt-8",children:this.state.errorMsg}),!this.state.isLoading&&!this.state.errorMsg&&0===this.state.repoList.length&&this.emptyTip,!this.state.isLoading&&!this.state.errorMsg&&this.state.repoList.length>0&&(0,g.jsx)(On,{sortBy:this.state.sortBy,sortOrder:this.state.sortOrder,repoList:this.state.repoList,onRenameRepo:this.onRenameRepo,onDeleteRepo:this.onDeleteRepo,onTransferRepo:this.onTransferRepo,onMonitorRepo:this.onMonitorRepo,onRepoClick:this.onRepoClick,sortRepoList:this.sortRepoList})]})]}),!this.state.isLoading&&!this.state.errorMsg&&this.state.isGuideForNewDialogOpen&&(0,g.jsx)(En,{toggleDialog:this.toggleGuideForNewDialog}),this.state.isSortOptionsDialogOpen&&(0,g.jsx)(Oe,{toggleDialog:this.toggleSortOptionsDialog,sortBy:this.state.sortBy,sortOrder:this.state.sortOrder,sortItems:this.sortRepoList}),this.state.isShowDetails&&(0,g.jsx)("div",{className:"cur-view-detail",children:(0,g.jsx)(Nt,{currentRepo:this.state.currentRepo,closeDetails:this.closeDetails})})]})]})}}]),n}(a.Component);A().locale(u.KQ);var Un=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).refreshDeletedRepoList=function(e){var t=s.state.deletedRepoList.filter((function(t){return t.repo_id!==e}));s.setState({deletedRepoList:t})},s.state={deletedRepoList:[],isLoading:!0},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this;D.I.listDeletedRepo().then((function(t){e.setState({deletedRepoList:t.data,isLoading:!1})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))}},{key:"render",value:function(){return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)("div",{className:"main-panel-north",children:(0,g.jsx)(Ee.Z,{onSearchedClick:this.props.onSearchedClick})}),(0,g.jsx)("div",{className:"main-panel-center",children:(0,g.jsxs)("div",{className:"cur-view-container",children:[(0,g.jsx)("div",{className:"cur-view-path",children:(0,g.jsxs)("div",{className:"path-container",children:[(0,g.jsx)(c.rU,{to:u.ze+"my-libs/",children:(0,u.ih)("My Libraries")}),(0,g.jsx)("span",{className:"path-split",children:"/"}),(0,g.jsx)("span",{children:(0,u.ih)("Deleted Libraries")})]})}),(0,g.jsxs)("div",{className:"cur-view-content",children:[this.state.isLoading&&(0,g.jsx)(R.Z,{}),!this.state.isLoading&&0===this.state.deletedRepoList.length&&(0,g.jsxs)(O.Z,{children:[(0,g.jsx)("h2",{children:(0,u.ih)("No deleted libraries")}),(0,g.jsx)("p",{children:(0,u.ih)("You have not deleted any libraries in the last {placeholder} days. A deleted library will be cleaned automatically after this period.").replace("{placeholder}",u.UR)})]}),0!==this.state.deletedRepoList.length&&(0,g.jsxs)("div",{children:[(0,g.jsx)("p",{className:"tip mt-2",children:(0,u.ih)("Tip: libraries deleted {placeholder} days ago will be cleaned automatically.").replace("{placeholder}",u.UR)}),(0,g.jsx)(zn,{deletedRepoList:this.state.deletedRepoList,refreshDeletedRepoList:this.refreshDeletedRepoList})]})]})]})})]})}}]),n}(a.Component),zn=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"render",value:function(){var e=this,t=this.props.deletedRepoList;return(0,g.jsxs)("table",{children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{style:{width:"4%"}}),(0,g.jsx)("th",{style:{width:"52%"},children:(0,u.ih)("Name")}),(0,g.jsx)("th",{style:{width:"30%"},children:(0,u.ih)("Deleted Time")}),(0,g.jsx)("th",{style:{width:"14%"}})]})}),(0,g.jsx)("tbody",{children:t&&t.map((function(t){return(0,g.jsx)(Bn,{repo:t,refreshDeletedRepoList:e.props.refreshDeletedRepoList},t.repo_id)}))})]})}}]),n}(a.Component),Bn=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onMouseEnter=function(){s.setState({hideRestoreMenu:!1,highlight:!0})},s.onMouseLeave=function(){s.setState({hideRestoreMenu:!0,highlight:!1})},s.restoreDeletedRepo=function(e){e.preventDefault();var t=s.props.repo.repo_id,n=s.props.repo.repo_name;D.I.restoreDeletedRepo(t).then((function(e){var i=(0,u.ih)("Successfully restored the library.")+" "+n;w.Z.success(i),s.props.refreshDeletedRepoList(t)})).catch((function(e){var t=m.c.getErrorMsg(e);t===(0,u.ih)("Error")&&(t=(0,u.ih)("Failed. Please check the network.")),w.Z.danger(t)}))},s.state={hideRestoreMenu:!0,highlight:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=A().utc(this.props.repo.del_time).toDate();e=A()(e).fromNow();var t=m.c.getLibIconUrl(this.props.repo);return(0,g.jsxs)("tr",{className:this.state.highlight?"tr-highlight":"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,tabIndex:"0",onFocus:this.onMouseEnter,children:[(0,g.jsx)("td",{className:"text-center",children:(0,g.jsx)("img",{src:t,alt:"",width:"24"})}),(0,g.jsx)("td",{className:"name",children:this.props.repo.repo_name}),(0,g.jsx)("td",{className:"update",children:e}),(0,g.jsx)("td",{children:(0,g.jsx)("a",{href:"#",onClick:this.restoreDeletedRepo,title:(0,u.ih)("Restore"),role:"button","aria-label":(0,u.ih)("Restore"),className:"sf2-icon-reply action-icon ".concat(this.state.highlight?"":"vh")})})]})}}]),n}(a.Component),Gn=Un,Hn=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var s=arguments.length,r=new Array(s),o=0;o-1,r=t.owner_email===u.b6,o=t.is_admin,a=[];if(u._y){if(-1!=t.owner_email.indexOf("@seafile_group")){if(i){if(t.owner_email==n.id+"@seafile_group"){if(s.isDeparementOnwerGroupMember=!0,a=["Rename"],u.n_&&a.push("Folder Permission"),a.push("Share Admin","Divider"),t.encrypted&&a.push("Change Password"),t.encrypted&&u.yV&&u.aZ&&a.push("Reset Password"),"r"==t.permission||"rw"==t.permission){var l=t.monitored?"Unwatch File Changes":"Watch File Changes";a.push(l)}return a.push("Divider","History Setting","Details"),m.c.isDesktop()&&a.push("Advanced"),a}a.push("Unshare")}}else(r||o)&&a.push("Share"),(i||r||o)&&a.push("Unshare");if("r"==t.permission||"rw"==t.permission){var c=t.monitored?"Unwatch File Changes":"Watch File Changes";a.push(c)}}else r&&a.push("Share"),(i||r)&&a.push("Unshare");return a},s.generatorMobileMenu=function(){var e=[];if(s.props.libraryType&&"public"===s.props.libraryType){var t=s.props.repo.owner_email===u.b6;(u.AU||t)&&e.push("Unshare")}else e=s.generatorOperations(),s.isDeparementOnwerGroupMember&&(e.unshift("Unshare"),e.unshift("Share"));return e.length?(0,g.jsxs)(U.Z,{isOpen:s.state.isItemMenuShow,toggle:s.toggleOperationMenu,children:[(0,g.jsx)(z.Z,{tag:"i",className:"sf-dropdown-toggle fa fa-ellipsis-v ml-0",title:(0,u.ih)("More operations"),"aria-label":(0,u.ih)("More operations"),"data-toggle":"dropdown","aria-expanded":s.state.isItemMenuShow,onClick:s.clickOperationMenuToggle}),(0,g.jsxs)("div",{className:"".concat(s.state.isItemMenuShow?"":"d-none"),onClick:s.toggleOperationMenu,children:[(0,g.jsx)("div",{className:"mobile-operation-menu-bg-layer"}),(0,g.jsx)("div",{className:"mobile-operation-menu",children:e.map((function(e,t){return(0,g.jsx)(G.Z,{"data-toggle":e,onClick:s.onMenuItemClick,children:s.translateMenuItem(e)},t)}))})]})]}):null},s.generatorPCMenu=function(){var e=[];if(s.props.libraryType&&"public"===s.props.libraryType){var t=s.props.repo.owner_email===u.b6;(u.AU||t)&&e.push("Unshare")}else e=s.generatorOperations();var n=(0,g.jsx)("a",{href:"#",className:"op-icon sf2-icon-share",title:(0,u.ih)("Share"),role:"button","aria-label":(0,u.ih)("Share"),onClick:s.onItemShare}),i=(0,g.jsx)("a",{href:"#",className:"op-icon sf2-icon-x3",title:(0,u.ih)("Unshare"),role:"button","aria-label":(0,u.ih)("Unshare"),onClick:s.onItemUnshare}),r=(0,g.jsx)("a",{href:"#",className:"op-icon sf2-icon-delete",title:(0,u.ih)("Delete"),role:"button","aria-label":(0,u.ih)("Delete"),onClick:s.onItemDeleteToggle});if(s.isDeparementOnwerGroupMember){var o=s.getAdvancedOperations();return(0,g.jsxs)(a.Fragment,{children:[n,r,(0,g.jsxs)(U.Z,{isOpen:s.state.isItemMenuShow,toggle:s.toggleOperationMenu,children:[(0,g.jsx)(z.Z,{className:"sf-dropdown-toggle sf2-icon-caret-down border-0 p-0",title:(0,u.ih)("More operations"),"aria-label":(0,u.ih)("More operations"),"data-toggle":"dropdown","aria-expanded":s.state.isItemMenuShow,"aria-haspopup":!0,style:{minWidth:"0"},onClick:s.clickOperationMenuToggle,onKeyDown:s.onDropdownToggleKeyDown}),(0,g.jsx)(B.Z,{onMouseMove:s.onDropDownMouseMove,children:e.map((function(e,t){return"Divider"==e?(0,g.jsx)(G.Z,{divider:!0},t):"Advanced"==e?(0,g.jsxs)(U.Z,{direction:"right",className:"w-100",isOpen:s.state.isAdvancedMenuShown,toggle:s.toggleAdvancedMenu,onMouseMove:function(e){e.stopPropagation()},children:[(0,g.jsx)(z.Z,{caret:!0,className:"dropdown-item font-weight-normal rounded-0 d-flex justify-content-between align-items-center pr-2",onMouseEnter:s.toggleAdvancedMenuShown,children:s.translateMenuItem(e)}),(0,g.jsx)(B.Z,{children:o.map((function(e,t){return(0,g.jsx)(G.Z,{"data-toggle":e,onClick:s.onMenuItemClick,onKeyDown:s.onMenuItemKeyDown,children:s.translateMenuItem(e)},t)}))})]},t):(0,g.jsx)(G.Z,{"data-toggle":e,onClick:s.onMenuItemClick,onKeyDown:s.onMenuItemKeyDown,children:s.translateMenuItem(e)},t)}))})]})]})}return(0,g.jsx)(a.Fragment,{children:e.map((function(e){switch(e){case"Share":return(0,g.jsx)(a.Fragment,{children:n},e);case"Unshare":return(0,g.jsx)(a.Fragment,{children:i},e);case"Watch File Changes":case"Unwatch File Changes":return(0,g.jsxs)(U.Z,{isOpen:s.state.isItemMenuShow,toggle:s.toggleOperationMenu,children:[(0,g.jsx)(z.Z,{className:"sf-dropdown-toggle sf2-icon-caret-down border-0 p-0",title:(0,u.ih)("More operations"),"aria-label":(0,u.ih)("More operations"),"data-toggle":"dropdown","aria-expanded":s.state.isItemMenuShow,"aria-haspopup":!0,style:{minWidth:"0"},onClick:s.clickOperationMenuToggle,onKeyDown:s.onDropdownToggleKeyDown}),(0,g.jsx)(B.Z,{children:[e].map((function(e,t){return(0,g.jsx)(G.Z,{"data-toggle":e,onClick:s.onMenuItemClick,onKeyDown:s.onMenuItemKeyDown,children:s.translateMenuItem(e)},t)}))})]},e);default:return null}}))})},s.onToggleStarRepo=function(e){e.preventDefault();var t=s.props.repo.repo_name;s.state.isStarred?D.I.unstarItem(s.props.repo.repo_id,"/").then((function(){s.setState({isStarred:!s.state.isStarred});var e=(0,u.ih)("Successfully unstarred {library_name_placeholder}.").replace("{library_name_placeholder}",t);w.Z.success(e)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)})):D.I.starItem(s.props.repo.repo_id,"/").then((function(){s.setState({isStarred:!s.state.isStarred});var e=(0,u.ih)("Successfully starred {library_name_placeholder}.").replace("{library_name_placeholder}",t);w.Z.success(e)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.renderPCUI=function(){var e=s.getRepoComputeParams(),t=e.iconUrl,n=e.iconTitle,i=e.libPath,r=s.props.repo;return(0,g.jsx)(a.Fragment,{children:(0,g.jsxs)("tr",{className:s.state.highlight?"tr-highlight":"",onMouseEnter:s.onMouseEnter,onMouseOver:s.onMouseOver,onMouseLeave:s.onMouseLeave,onFocus:s.onMouseEnter,children:[(0,g.jsx)("td",{className:"text-center",children:(0,g.jsx)("a",{href:"#",role:"button","aria-label":s.state.isStarred?(0,u.ih)("Unstar"):(0,u.ih)("Star"),onClick:s.onToggleStarRepo,children:(0,g.jsx)("i",{className:"fa-star ".concat(s.state.isStarred?"fas":"far star-empty")})})}),(0,g.jsx)("td",{children:(0,g.jsx)("img",{src:t,title:n,alt:n,width:"24"})}),(0,g.jsx)("td",{children:s.state.isRenaming?(0,g.jsx)(tn.Z,{name:r.repo_name,onRenameConfirm:s.onRenameConfirm,onRenameCancel:s.onRenameCancel}):(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(c.rU,{to:i,children:r.repo_name}),r.monitored&&(0,g.jsx)(nt,{repoID:r.repo_id})]})}),(0,g.jsx)("td",{children:s.state.isOperationShow&&s.generatorPCMenu()}),(0,g.jsx)("td",{children:r.size}),(0,g.jsx)("td",{title:A()(r.last_modified).format("llll"),children:A()(r.last_modified).fromNow()}),(0,g.jsx)("td",{title:r.owner_contact_email,children:r.owner_name})]})})},s.visitRepo=function(){s.state.isRenaming||(0,c.c4)(s.repoURL)},s.renderMobileUI=function(){var e=s.getRepoComputeParams(),t=e.iconUrl,n=e.iconTitle,i=e.libPath,r=s.props.repo;return s.repoURL=i,(0,g.jsx)(a.Fragment,{children:(0,g.jsxs)("tr",{className:s.state.highlight?"tr-highlight":"",onMouseEnter:s.onMouseEnter,onMouseOver:s.onMouseOver,onMouseLeave:s.onMouseLeave,children:[(0,g.jsx)("td",{onClick:s.visitRepo,children:(0,g.jsx)("img",{src:t,title:n,width:"24",alt:n})}),(0,g.jsxs)("td",{onClick:s.visitRepo,children:[s.state.isRenaming?(0,g.jsx)(tn.Z,{name:r.repo_name,onRenameConfirm:s.onRenameConfirm,onRenameCancel:s.onRenameCancel}):(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(c.rU,{to:i,children:r.repo_name}),r.monitored&&(0,g.jsx)(nt,{repoID:r.repo_id})]}),(0,g.jsx)("br",{}),(0,g.jsx)("span",{className:"item-meta-info",title:r.owner_contact_email,children:r.owner_name}),(0,g.jsx)("span",{className:"item-meta-info",children:r.size}),(0,g.jsx)("span",{className:"item-meta-info",title:A()(r.last_modified).format("llll"),children:A()(r.last_modified).fromNow()})]}),(0,g.jsx)("td",{children:s.generatorMobileMenu()})]})})},s.state={highlight:!1,isOperationShow:!1,isItemMenuShow:!1,isAdvancedMenuShown:!1,isShowSharedDialog:!1,isRenaming:!1,isStarred:s.props.repo.starred,isFolderPermissionDialogOpen:!1,isHistorySettingDialogShow:!1,isDeleteDialogShow:!1,isAPITokenDialogShow:!1,isRepoShareAdminDialogOpen:!1,isRepoDeleted:!1,isChangePasswordDialogShow:!1,isResetPasswordDialogShow:!1,isOldFilesAutoDelDialogOpen:!1,isSeaTableIntegrationShow:!1},s.isDeparementOnwerGroupMember=!1,s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props.repo,t=e.owner_email.indexOf("@seafile_group")>-1;return(0,g.jsxs)(a.Fragment,{children:[m.c.isDesktop()?this.renderPCUI():this.renderMobileUI(),this.state.isShowSharedDialog&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Qe.Z,{itemType:"library",itemName:e.repo_name,itemPath:"/",repoID:e.repo_id,repoEncrypted:e.encrypted,enableDirPrivateShare:!0,userPerm:e.permission,isAdmin:e.is_admin,isGroupOwnedRepo:t,toggleDialog:this.toggleShareDialog})}),this.state.isFolderPermissionDialogOpen&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(en,{toggleDialog:this.onItemFolderPermissionToggle,repoID:e.repo_id,repoName:e.repo_name,isDepartmentRepo:!0})}),this.state.isDeleteDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Zt.Z,{repo:this.props.repo,isRepoDeleted:this.state.isRepoDeleted,onDeleteRepo:this.onItemDelete,toggle:this.onItemDeleteToggle})}),this.state.isHistorySettingDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(_t,{repoID:e.repo_id,itemName:e.repo_name,toggleDialog:this.onHistorySettingToggle})}),this.state.isAPITokenDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(hn,{repo:e,onRepoAPITokenToggle:this.onAPITokenToggle})}),this.state.isRepoShareAdminDialogOpen&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Tn,{repo:e,toggleDialog:this.toggleRepoShareAdminDialog})}),this.state.isChangePasswordDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Tt,{repoID:e.repo_id,repoName:e.repo_name,toggleDialog:this.onChangePasswordToggle})}),this.state.isResetPasswordDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Ft,{repoID:e.repo_id,toggleDialog:this.onResetPasswordToggle})}),this.state.isOldFilesAutoDelDialogOpen&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Fn,{repoID:e.repo_id,toggleDialog:this.toggleOldFilesAutoDelDialog})}),this.state.isSeaTableIntegrationShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(bn,{repo:e,onSeaTableIntegrationToggle:this.onSeaTableIntegrationToggle})})]})}}]),n}(a.Component),Vn=qn,Kn=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).sortByName=function(e){e.preventDefault();var t="asc"==s.props.sortOrder?"desc":"asc";s.props.sortItems("name",t)},s.sortByTime=function(e){e.preventDefault();var t="asc"==s.props.sortOrder?"desc":"asc";s.props.sortItems("time",t)},s.sortBySize=function(e){e.preventDefault();var t="asc"==s.props.sortOrder?"desc":"asc";s.props.sortItems("size",t)},s.getSortMetaData=function(){return{sortByName:"name"==s.props.sortBy,sortByTime:"time"==s.props.sortBy,sortBySize:"size"==s.props.sortBy,sortIcon:"asc"==s.props.sortOrder?(0,g.jsx)("span",{className:"fas fa-caret-up"}):(0,g.jsx)("span",{className:"fas fa-caret-down"})}},s.onFreezedItem=function(){s.setState({isItemFreezed:!0})},s.onUnfreezedItem=function(){s.setState({isItemFreezed:!1})},s.onItemRename=function(e,t){if(s.props.repoList.some((function(e){return e.name===t}))){var n=(0,u.ih)('The name "{name}" is already taken. Please choose a different name.');return n=n.replace("{name}",m.c.HTMLescape(t)),w.Z.danger(n),!1}s.props.onItemRename(e,t)},s.renderRepoListView=function(){return(0,g.jsx)(a.Fragment,{children:s.props.repoList.map((function(e){return(0,g.jsx)(Vn,{repo:e,libraryType:s.props.libraryType,currentGroup:s.props.currentGroup,isItemFreezed:s.state.isItemFreezed,onFreezedItem:s.onFreezedItem,onUnfreezedItem:s.onUnfreezedItem,onItemUnshare:s.props.onItemUnshare,onItemDelete:s.props.onItemDelete,onItemDetails:s.props.onItemDetails,onItemRename:s.props.onItemRename,onMonitorRepo:s.props.onMonitorRepo},e.repo_id)}))})},s.renderPCUI=function(){var e=void 0===s.props.isShowTableThread||s.props.isShowTableThread,t=s.getSortMetaData(),n=t.sortByName,i=t.sortByTime,r=t.sortBySize,o=t.sortIcon;return(0,g.jsxs)("table",{className:e?"":"table-thead-hidden",children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"4%"}),(0,g.jsx)("th",{width:"4%",children:(0,g.jsx)("span",{className:"sr-only",children:(0,u.ih)("Library Type")})}),(0,g.jsx)("th",{width:"36%",children:(0,g.jsxs)("a",{className:"d-block table-sort-op",href:"#",onClick:s.sortByName,children:[(0,u.ih)("Name")," ",n&&o]})}),(0,g.jsx)("th",{width:"12%",children:(0,g.jsx)("span",{className:"sr-only",children:(0,u.ih)("Actions")})}),(0,g.jsx)("th",{width:"14%",children:(0,g.jsxs)("a",{className:"d-block table-sort-op",href:"#",onClick:s.sortBySize,children:[(0,u.ih)("Size")," ",r&&o]})}),(0,g.jsx)("th",{width:"14%",children:(0,g.jsxs)("a",{className:"d-block table-sort-op",href:"#",onClick:s.sortByTime,children:[(0,u.ih)("Last Update")," ",i&&o]})}),(0,g.jsx)("th",{width:"16%",children:(0,u.ih)("Owner")})]})}),(0,g.jsx)("tbody",{children:s.renderRepoListView()})]})},s.renderMobileUI=function(){return(0,g.jsxs)("table",{className:"table-thead-hidden",children:[(0,g.jsx)(Je,{}),(0,g.jsx)("tbody",{children:s.renderRepoListView()})]})},s.state={isItemFreezed:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=m.c.isDesktop()?this.renderPCUI():this.renderMobileUI();return this.props.hasNextPage?(0,g.jsxs)(a.Fragment,{children:[e,(0,g.jsx)(R.Z,{})]}):e}}]),n}(a.Component),Yn=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onCreateRepo=function(e){D.I.createPublicRepo(e).then((function(e){var t={repo_id:e.data.id,repo_name:e.data.name,permission:e.data.permission,size:e.data.size,owner_name:e.data.owner_name,owner_email:e.data.owner,mtime:e.data.mtime,encrypted:e.data.encrypted},n=new Xe(t),i=s.addRepoItem(n);s.setState({repoList:i}),s.onCreateRepoToggle()})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onRepoSelectedHandler=function(e){e.forEach((function(e){D.I.selectOwnedRepoToPublic(e.repo_id,{share_type:"public",permission:e.sharePermission}).then((function(){var t=s.addRepoItem(e);s.setState({repoList:t})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))}))},s.onItemUnshare=function(e){D.I.unshareRepo(e.repo_id,{share_type:"public"}).then((function(){var t=s.state.repoList.filter((function(t){return t.repo_id!==e.repo_id}));s.setState({repoList:t});var n=(0,u.ih)("Successfully unshared {name}").replace("{name}",e.repo_name);w.Z.success(n)})).catch((function(t){var n=m.c.getErrorMsg(t);n===(0,u.ih)("Error")&&(n=(0,u.ih)("Failed to unshare {name}").replace("{name}",e.repo_name)),(0,w.Z)(n)}))},s.onItemDelete=function(){},s.addRepoItem=function(e){for(var t=!1,n=0,i=s.state.repoList,r=0;r0&&(0,g.jsx)("span",{className:"sf3-font sf3-font-sort action-icon",onClick:this.toggleSortOptionsDialog})]}),(0,g.jsxs)("div",{className:"cur-view-content",children:[this.state.isLoading&&(0,g.jsx)(R.Z,{}),!this.state.isLoading&&e&&e,!this.state.isLoading&&0===this.state.repoList.length&&t,!this.state.isLoading&&this.state.repoList.length>0&&(0,g.jsx)(Kn,{libraryType:this.state.libraryType,repoList:this.state.repoList,sortBy:this.state.sortBy,sortOrder:this.state.sortOrder,sortItems:this.sortItems,onItemUnshare:this.onItemUnshare,onItemDelete:this.onItemDelete})]})]})}),this.state.isSortOptionsDialogOpen&&(0,g.jsx)(Oe,{toggleDialog:this.toggleSortOptionsDialog,sortBy:this.state.sortBy,sortOrder:this.state.sortOrder,sortItems:this.sortItems}),this.state.isCreateRepoDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(It,{libraryType:this.state.libraryType,onCreateToggle:this.onCreateRepoToggle,onCreateRepo:this.onCreateRepo})}),this.state.isSelectRepoDialpgShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Wn,{onRepoSelectedHandler:this.onRepoSelectedHandler,onShareRepoDialogClose:this.onSelectRepoToggle})})]})}}]),n}(a.Component),Xn=Yn,Jn=n(30207),Qn=n.n(Jn),$n=""!==u.NZ?Qn()(u.NZ):void 0,ei=new(function(){function e(){(0,i.Z)(this,e)}return(0,s.Z)(e,[{key:"watchRepo",value:function(e,t){$n&&($n.emit("repo_update",{request:"watch_update",repo_id:e,user:{name:u.u2,username:u.b6,contact_email:u.Ru}}),$n.on("repo_update",t))}},{key:"unwatchRepo",value:function(e,t){$n&&($n.emit("repo_update",{request:"unwatch_update",repo_id:e,user:{name:u.u2,username:u.b6,contact_email:u.Ru}}),$n.off("repo_update",t))}}]),e}()),ti=n(55668),ni=n(19725),ii=n(69443),si=n(61166),ri=n(70609),oi=n(47809),ai=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).handleSubmit=function(e){var t=s.props.repoID,n=s.state.password;D.I.setRepoDecryptPassword(t,n).then((function(e){s.props.onLibDecryptDialog()})).catch((function(e){s.setState({showError:!0})})),e.preventDefault()},s.handleKeyDown=function(e){"Enter"==e.key&&s.handleSubmit(e)},s.handleChange=function(e){s.setState({password:e.target.value,showError:!1})},s.toggle=function(){window.location.href=u.ze},s.state={password:"",showError:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){return(0,g.jsx)(d.Z,{isOpen:!0,toggle:this.toggle,children:(0,g.jsxs)(C.Z,{children:[(0,g.jsx)("button",{type:"button",className:"close",onClick:this.toggle,children:(0,g.jsx)("span",{"aria-hidden":"true",children:"\xd7"})}),(0,g.jsxs)(bt.Z,{className:"lib-decrypt-form text-center",children:[(0,g.jsx)("img",{src:"".concat(u.si,"img/lock.png"),alt:"","aria-hidden":"true"}),(0,g.jsx)("p",{className:"intro",children:(0,u.ih)("This library is password protected")}),this.state.showError&&(0,g.jsx)("p",{className:"error",children:(0,u.ih)("Wrong password")}),(0,g.jsx)("input",{type:"password",name:"password",className:"form-control password-input",autoComplete:"off",onKeyDown:this.handleKeyDown,placeholder:(0,u.ih)("Password"),onChange:this.handleChange}),(0,g.jsx)("button",{type:"submit",className:"btn btn-primary submit",onClick:this.handleSubmit,children:(0,u.ih)("Submit")}),(0,g.jsxs)("p",{className:"tip",children:["* ",(0,u.ih)("The password will be kept in the server for only 1 hour.")]})]})]})})}}]),n}(a.Component),li=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var s=arguments.length,r=new Array(s),o=0;oe.length&&i.indexOf(e)>-1;return t&&(l=e),t})))return r=(r=(r=(0,u.ih)("Can not move directory %(src)s to its subdirectory %(des)s")).replace("%(src)s",l)).replace("%(des)s",i),void s.setState({errMessage:r});s.props.onItemsMove(n,i),s.toggle()}}else s.setState({errMessage:r})},s.moveItem=function(){var e=s.props.repoID,t=s.state,n=t.repo,i=t.selectedPath,r=m.c.joinPath(s.props.path,s.props.dirent.name),o=(0,u.ih)("Invalid destination path");if(!n||n.repo_id===e&&""===i)s.setState({errMessage:o});else if(i&&r===i)s.setState({errMessage:o});else if(i&&s.props.path===i&&n.repo_id===e)s.setState({errMessage:o});else{if(i&&i.length>r.length&&i.indexOf(r)>-1)return o=(o=(o=(0,u.ih)("Can not move directory %(src)s to its subdirectory %(des)s")).replace("%(src)s",r)).replace("%(des)s",i),void s.setState({errMessage:o});s.props.onItemMove(n,s.props.dirent,i,s.props.path),s.toggle()}},s.toggle=function(){s.props.onCancelMove()},s.onDirentItemClick=function(e,t){s.setState({repo:e,selectedPath:t,errMessage:""})},s.onRepoItemClick=function(e){s.setState({repo:e,selectedPath:"/",errMessage:""})},s.state={repo:{repo_id:s.props.repoID},selectedPath:s.props.path,errMessage:""},s}return(0,s.Z)(n,[{key:"shouldComponentUpdate",value:function(e,t){return this.state.errMessage!==t.errMessage}},{key:"render",value:function(){var e=(0,u.ih)("Move {placeholder} to");e=this.props.isMutipleOperation?(0,u.ih)("Move selected item(s) to:"):e.replace("{placeholder}",''+m.c.HTMLescape(this.props.dirent.name)+"");var t="current_repo_and_other_repos",n=this.props,i=n.dirent,s=n.selectedDirentList,r=n.isMutipleOperation,o=(i||s[0]).permission;return m.c.getUserPermission(o).isCustomPermission&&(t="only_current_library"),(0,g.jsxs)(d.Z,{isOpen:!0,toggle:this.toggle,children:[(0,g.jsx)(X.Z,{toggle:this.toggle,children:r?e:(0,g.jsx)("div",{dangerouslySetInnerHTML:{__html:e},className:"d-flex mw-100"})}),(0,g.jsxs)(C.Z,{children:[(0,g.jsx)(Vt.Z,{repoID:this.props.repoID,currentPath:this.props.path,onDirentItemClick:this.onDirentItemClick,onRepoItemClick:this.onRepoItemClick,mode:t}),this.state.errMessage&&(0,g.jsx)(Ct.Z,{color:"danger",className:"mt-2",children:this.state.errMessage})]}),(0,g.jsxs)(Q.Z,{children:[(0,g.jsx)($.Z,{color:"secondary",onClick:this.toggle,children:(0,u.ih)("Cancel")}),(0,g.jsx)($.Z,{color:"primary",onClick:this.handleSubmit,children:(0,u.ih)("Submit")})]})]})}}]),n}(a.Component),vi=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).handleSubmit=function(){s.props.isMutipleOperation?s.copyItems():s.copyItem()},s.copyItems=function(){var e=s.state,t=e.repo,n=e.selectedPath,i=(0,u.ih)("Invalid destination path");if(t&&""!==n){var r=s.props.selectedDirentList,o=[];if(r.forEach((function(e){var t=m.c.joinPath(s.props.path,e.name);o.push(t)})),o.some((function(e){return e===n})))s.setState({errMessage:i});else{var a="";if(o.some((function(e){var t=n.length>e.length&&n.indexOf(e)>-1;return t&&(a=e),t})))return i=(i=(i=(0,u.ih)("Can not move directory %(src)s to its subdirectory %(des)s")).replace("%(src)s",a)).replace("%(des)s",n),void s.setState({errMessage:i});s.props.onItemsCopy(t,n),s.toggle()}}else s.setState({errMessage:i})},s.copyItem=function(){var e=s.state,t=e.repo,n=e.repoID,i=e.selectedPath,r=m.c.joinPath(s.props.path,s.props.dirent.name),o=(0,u.ih)("Invalid destination path");if(!t||t.repo_id===n&&""===i)s.setState({errMessage:o});else if(i&&r===i)s.setState({errMessage:o});else{if(i&&i.length>r.length&&i.indexOf(r)>-1)return o=(o=(o=(0,u.ih)("Can not copy directory %(src)s to its subdirectory %(des)s")).replace("%(src)s",r)).replace("%(des)s",i),void s.setState({errMessage:o});s.props.onItemCopy(t,s.props.dirent,i,s.props.path),s.toggle()}},s.toggle=function(){s.props.onCancelCopy()},s.onDirentItemClick=function(e,t){s.setState({repo:e,selectedPath:t,errMessage:""})},s.onRepoItemClick=function(e){s.setState({repo:e,selectedPath:"/",errMessage:""})},s.state={repo:{repo_id:s.props.repoID},selectedPath:s.props.path,errMessage:""},s}return(0,s.Z)(n,[{key:"shouldComponentUpdate",value:function(e,t){return this.state.errMessage!==t.errMessage}},{key:"render",value:function(){var e=(0,u.ih)("Copy {placeholder} to");e=this.props.isMutipleOperation?(0,u.ih)("Copy selected item(s) to:"):e.replace("{placeholder}",''+m.c.HTMLescape(this.props.dirent.name)+"");var t=this.props.isMutipleOperation;return(0,g.jsxs)(d.Z,{isOpen:!0,toggle:this.toggle,children:[(0,g.jsx)(X.Z,{toggle:this.toggle,children:t?e:(0,g.jsx)("div",{dangerouslySetInnerHTML:{__html:e},className:"d-flex mw-100"})}),(0,g.jsxs)(C.Z,{children:[(0,g.jsx)(Vt.Z,{repoID:this.props.repoID,currentPath:this.props.path,onDirentItemClick:this.onDirentItemClick,onRepoItemClick:this.onRepoItemClick,mode:"current_repo_and_other_repos"}),this.state.errMessage&&(0,g.jsx)(Ct.Z,{color:"danger",className:"mt-2",children:this.state.errMessage})]}),(0,g.jsxs)(Q.Z,{children:[(0,g.jsx)($.Z,{color:"secondary",onClick:this.toggle,children:(0,u.ih)("Cancel")}),(0,g.jsx)($.Z,{color:"primary",onClick:this.handleSubmit,children:(0,u.ih)("Submit")})]})]})}}]),n}(a.Component),xi=n(78655),yi=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).inputNewName=function(e){s.setState({tagName:e.target.value}),s.state.errorMsg&&s.setState({errorMsg:""})},s.selectTagcolor=function(e){s.setState({tagColor:e.target.value})},s.createTag=function(){var e=s.state.tagName,t=s.state.tagColor,n=s.props.repoID;D.I.createRepoTag(n,e,t).then((function(e){var t=e.data.repo_tag.repo_tag_id;s.props.onRepoTagCreated&&s.props.onRepoTagCreated(t),s.props.toggleCancel()})).catch((function(t){var n;500===t.response.status?n=(0,u.ih)("Internal Server Error"):400===t.response.status&&(n=(n=(0,u.ih)('Tag "{name}" already exists.')).replace("{name}",m.c.HTMLescape(e))),s.setState({errorMsg:n})}))},s.handleKeyDown=function(e){"Enter"===e.key&&s.createTag()},s.state={tagName:"",tagColor:xi.QQ[0],newTag:{},errorMsg:""},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this,t=!!this.state.tagName.trim();return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsxs)(X.Z,{toggle:this.props.onClose,children:[(0,g.jsx)("span",{className:"tag-dialog-back fas fa-sm fa-arrow-left",onClick:this.props.toggleCancel,"aria-label":(0,u.ih)("Back")}),(0,u.ih)("New Tag")]}),(0,g.jsx)(C.Z,{children:(0,g.jsxs)("div",{role:"form",className:"tag-create",children:[(0,g.jsxs)("div",{className:"form-group",children:[(0,g.jsx)("label",{className:"form-label",children:(0,u.ih)("Name")}),(0,g.jsx)(re.Z,{onKeyDown:this.handleKeyDown,autoFocus:!0,value:this.state.tagName,onChange:this.inputNewName}),(0,g.jsx)("div",{className:"mt-2",children:(0,g.jsx)("span",{className:"error",children:this.state.errorMsg})})]}),(0,g.jsxs)("div",{className:"form-group",children:[(0,g.jsx)("label",{className:"form-label",children:(0,u.ih)("Select a color")}),(0,g.jsx)("div",{className:"d-flex justify-content-between",children:xi.QQ.map((function(t,n){return(0,g.jsx)("div",{className:"tag-color-option",onChange:e.selectTagcolor,children:(0,g.jsxs)("label",{className:"colorinput",children:[0===n?(0,g.jsx)("input",{name:"color",type:"radio",value:t,className:"colorinput-input",defaultChecked:!0,onClick:e.selectTagcolor}):(0,g.jsx)("input",{name:"color",type:"radio",value:t,className:"colorinput-input",onClick:e.selectTagcolor}),(0,g.jsx)("span",{className:"colorinput-color rounded-circle d-flex align-items-center justify-content-center",style:{backgroundColor:t},children:(0,g.jsx)("i",{className:"fas fa-check color-selected"})})]})},n)}))})]})]})}),(0,g.jsxs)(Q.Z,{children:[(0,g.jsx)($.Z,{color:"secondary",onClick:this.props.toggleCancel,children:(0,u.ih)("Cancel")}),t?(0,g.jsx)($.Z,{color:"primary",onClick:this.createTag,children:(0,u.ih)("Save")}):(0,g.jsx)($.Z,{color:"primary",disabled:!0,children:(0,u.ih)("Save")})]})]})}}]),n}(a.Component);n(6251);var Di,wi=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onMouseEnter=function(){s.setState({isTagHighlighted:!0})},s.onMouseLeave=function(){s.setState({isTagHighlighted:!1})},s.getRepoTagIdList=function(){return(s.props.fileTagList||[]).map((function(e){return e.repo_tag_id}))},s.onEditFileTag=function(){var e=s.props,t=e.repoID,n=e.repoTag,i=e.filePath,r=s.getRepoTagIdList();if(-1===r.indexOf(n.id)){var o=n.id;D.I.addFileTag(t,i,o).then((function(){r=s.getRepoTagIdList(),s.props.onFileTagChanged()})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))}else{for(var a=null,l=s.props.fileTagList,c=0;c-1?{isValid:t=!1,errMessage:n=(0,u.ih)("Name should not include '/'.")}:{isValid:t,errMessage:n}:{isValid:t=!1,errMessage:n=(0,u.ih)("Name is required.")}},s.checkDuplicatedName=function(){return s.props.checkDuplicatedName(s.state.newName)},s.onAfterModelOpened=function(){if(s.newInput.current){s.newInput.current.focus();var e=s.props.dirent;if("file"===e.type){var t=e.name.lastIndexOf(".md");s.newInput.current.setSelectionRange(0,t,"forward")}else s.newInput.current.setSelectionRange(0,-1)}},s.state={newName:"",errMessage:"",isSubmitBtnActive:!1},s.newInput=a.createRef(),s}return(0,s.Z)(n,[{key:"UNSAFE_componentWillMount",value:function(){this.setState({newName:this.props.dirent.name})}},{key:"componentDidMount",value:function(){var e=this.props.dirent;this.changeState(e)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.changeState(e.dirent)}},{key:"render",value:function(){var e=this.props.dirent.type;return(0,g.jsxs)(d.Z,{isOpen:!0,toggle:this.toggle,onOpened:this.onAfterModelOpened,children:[(0,g.jsx)(X.Z,{toggle:this.toggle,children:"file"===e?(0,u.ih)("Rename File"):(0,u.ih)("Rename Folder")}),(0,g.jsxs)(C.Z,{children:[(0,g.jsx)("p",{children:"file"===e?(0,u.ih)("New file name"):(0,u.ih)("New folder name")}),(0,g.jsx)(re.Z,{onKeyDown:this.handleKeyDown,innerRef:this.newInput,value:this.state.newName,onChange:this.handleChange}),this.state.errMessage&&(0,g.jsx)(Ct.Z,{color:"danger",className:"mt-2",children:this.state.errMessage})]}),(0,g.jsxs)(Q.Z,{children:[(0,g.jsx)($.Z,{color:"secondary",onClick:this.toggle,children:(0,u.ih)("Cancel")}),(0,g.jsx)($.Z,{color:"primary",onClick:this.handleSubmit,disabled:!this.state.isSubmitBtnActive,children:(0,u.ih)("Submit")})]})]})}}]),n}(a.Component),ki=n(90299),Ii=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onMoveToggle=function(){s.setState({isMoveDialogShow:!s.state.isMoveDialogShow})},s.onCopyToggle=function(){s.setState({isCopyDialogShow:!s.state.isCopyDialogShow})},s.onItemsDelete=function(){s.props.onItemsDelete()},s.onItemsDownload=function(){var e=s.props,t=e.path,n=e.repoID,i=e.selectedDirentList;if(i.length){if(1===i.length&&!i[0].isDir()){var r=m.c.joinPath(t,i[0].name),o=gi.Z.getUrl({type:"download_file_url",repoID:n,filePath:r});return void(location.href=o)}if(u.Zb){var a=s.props.selectedDirentList.map((function(e){return e.name}));D.I.zipDownload(n,t,a).then((function(e){var t=e.data.zip_token;location.href="".concat(u.gc,"zip/").concat(t)})).catch((function(e){var t=m.c.getErrorMsg(e);s.setState({isLoading:!1,errorMsg:t})}))}else s.setState({isZipDialogOpen:!0})}},s.closeZipDialog=function(){s.setState({isZipDialogOpen:!1})},s.checkDuplicatedName=function(e){return m.c.checkDuplicatedNameInList(s.props.direntList,e)},s.onItemRename=function(e){var t=s.props.selectedDirentList[0];s.props.onItemRename(t,e)},s.onPermissionItem=function(){s.setState({showLibContentViewDialogs:!s.state.showLibContentViewDialogs,isPermissionDialogOpen:!s.state.isPermissionDialogOpen})},s.onMarkAsDraft=function(e){var t=s.props.repoID,n=s.getDirentPath(e);D.I.sdocMarkAsDraft(t,n).then((function(t){s.props.updateDirent(e,"is_sdoc_draft",!0)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onUnmarkAsDraft=function(e){var t=s.props.repoID,n=s.getDirentPath(e);D.I.sdocUnmarkAsDraft(t,n).then((function(t){s.props.updateDirent(e,"is_sdoc_draft",!1)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onStartRevise=function(e){var t=s.props.repoID,n=s.getDirentPath(e);D.I.sdocStartRevise(t,n).then((function(e){var n=u.ze+"lib/"+t+"/file"+m.c.encodePath(e.data.file_path);window.open(n)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.getDirentMenuList=function(e){var t=s.props.isRepoOwner,n=s.props.currentRepoInfo,i=m.c.getDirentOperationList(t,n,e,!0),r=["Move","Copy","Delete","Download"];return i="dir"==e.type?i.filter((function(e,t){return-1==r.indexOf(e.key)&&"Divider"!=e})):i.filter((function(e,t){return-1==r.indexOf(e.key)}))},s.onMenuItemClick=function(e){var t=s.props.selectedDirentList[0];switch(e){case"Share":s.setState({showLibContentViewDialogs:!0,showShareDialog:!0});break;case"Rename":s.setState({showLibContentViewDialogs:!0,isRenameDialogOpen:!0});break;case"Permission":s.onPermissionItem();break;case"Tags":s.listFileTags(t);break;case"Lock":s.lockFile(t);break;case"Unlock":s.unlockFile(t);break;case"Mark as draft":s.onMarkAsDraft(t);break;case"Unmark as draft":s.onUnmarkAsDraft(t);break;case"History":s.onHistory(t);break;case"Access Log":s.onAccessLog(t);break;case"Properties":s.props.showDirentDetail("info");break;case"Open via Client":s.onOpenViaClient(t)}},s.lockFile=function(e){var t=s.getDirentPath(e);D.I.lockfile(s.props.repoID,t).then((function(t){t.data.is_locked&&(s.props.updateDirent(e,"is_locked",!0),s.props.updateDirent(e,"locked_by_me",!0),s.props.updateDirent(e,"lock_owner_name",u.u2),s.props.unSelectDirent())})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.unlockFile=function(e){var t=s.getDirentPath(e);D.I.unlockfile(s.props.repoID,t).then((function(t){t.data.is_locked||(s.props.updateDirent(e,"is_locked",!1),s.props.updateDirent(e,"locked_by_me",!1),s.props.updateDirent(e,"lock_owner_name",""),s.props.unSelectDirent())})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onOpenViaClient=function(e){var t=s.getDirentPath(e),n=gi.Z.getUrl({type:"open_via_client",repoID:s.props.repoID,filePath:t});location.href=n},s.onHistory=function(e){var t=s.getDirentPath(e),n=gi.Z.getUrl({type:"file_revisions",repoID:s.props.repoID,filePath:t});location.href=n},s.onAccessLog=function(e){var t=s.getDirentPath(e),n=u.ze+"repo/file-access/"+s.props.repoID+"/?p="+encodeURIComponent(t);window.open(n)},s.toggleCancel=function(){s.setState({showLibContentViewDialogs:!1,showShareDialog:!1,showEditFileTagDialog:!1,isRenameDialogOpen:!1,isPermissionDialogOpen:!1})},s.listFileTags=function(e){var t=s.getDirentPath(e);D.I.listFileTags(s.props.repoID,t).then((function(e){for(var t=e.data.file_tags,n=0,i=t.length;n0&&s.forEach((function(e){o+=e.name+" "})),(0,g.jsxs)("div",{className:"path-container",children:[this.props.pathPrefix&&this.props.pathPrefix.map((function(t,n){return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(c.rU,{to:t.url,className:"normal",onClick:function(n){return e.onTabNavClick(n,t.name,t.id)},children:(0,u.ih)(t.showName)}),(0,g.jsx)("span",{className:"path-split",children:"/"})]},n)})),this.props.pathPrefix&&0===this.props.pathPrefix.length&&(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(c.rU,{to:u.ze+"my-libs/",className:"normal",onClick:function(t){return e.onTabNavClick(t,"my-libs")},children:(0,u.ih)("Libraries")}),(0,g.jsx)("span",{className:"path-split",children:"/"})]}),!this.props.pathPrefix&&(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(c.rU,{href:u.ze+"my-libs/",className:"normal",onClick:function(t){return e.onTabNavClick(t,"my-libs")},children:(0,u.ih)("Libraries")}),(0,g.jsx)("span",{className:"path-split",children:"/"})]}),"/"===n||""===n?(0,g.jsx)("span",{className:"path-repo-name",children:i}):(0,g.jsx)("a",{className:"path-link","data-path":"/",onClick:this.onPathClick,children:i}),r,this.props.isViewFile&&(0,g.jsx)(Ti.O,{repoID:this.props.repoID,path:this.props.currentPath}),this.props.isViewFile&&0!==s.length&&(0,g.jsxs)("span",{id:"column-mode-file-tags",className:"tag-list tag-list-stacked align-middle ml-1 d-flex align-items-center",children:[s.map((function(e,t){return(0,g.jsx)("span",{className:"file-tag",style:{zIndex:t,backgroundColor:e.color}},e.id)})),(0,g.jsx)($e.Z,{target:"column-mode-file-tags",placement:"bottom",children:o})]})]})}}]),n}(a.Component),Li=Fi,Oi={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},Ri=new Uint8Array(16);function Ei(){if(!Di&&!(Di="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Di(Ri)}for(var Ai=[],Ui=0;Ui<256;++Ui)Ai.push((Ui+256).toString(16).slice(1));function zi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Ai[e[t+0]]+Ai[e[t+1]]+Ai[e[t+2]]+Ai[e[t+3]]+"-"+Ai[e[t+4]]+Ai[e[t+5]]+"-"+Ai[e[t+6]]+Ai[e[t+7]]+"-"+Ai[e[t+8]]+Ai[e[t+9]]+"-"+Ai[e[t+10]]+Ai[e[t+11]]+Ai[e[t+12]]+Ai[e[t+13]]+Ai[e[t+14]]+Ai[e[t+15]]}var Bi=function(e,t,n){if(Oi.randomUUID&&!t&&!e)return Oi.randomUUID();var i=(e=e||{}).random||(e.rng||Ei)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=i[s];return t}return zi(i)},Gi=n(30560),Hi=n(29389),Wi=n(27205),qi=(n(6251),function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).togglePopover=function(){s.setState({isPopoverOpen:!s.state.isPopoverOpen})},s.selectTagColor=function(e){var t=e.target.value,n=s.props,i=n.repoID,r=n.tag,o=r.id,a=r.name;D.I.updateRepoTag(i,o,a,t).then((function(){s.setState({tagColor:t,isPopoverOpen:!s.state.isPopoverOpen})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.state={tagColor:s.props.tag.color,isPopoverOpen:!1},s}return(0,s.Z)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.tag.color!==this.props.tag.color&&this.setState({tagColor:e.tag.color})}},{key:"render",value:function(){var e=this,t=this.state,n=t.isPopoverOpen,i=t.tagColor,s=this.props.tag,r=s.id,o=s.color,a=(0,K.Z)(xi.QQ);return-1==a.indexOf(o)&&a.unshift(o),(0,g.jsxs)("div",{children:[(0,g.jsx)("span",{id:"tag-".concat(r,"-color"),className:"tag-color cursor-pointer rounded-circle d-flex align-items-center justify-content-center",style:{backgroundColor:i},onClick:this.togglePopover,children:(0,g.jsx)("i",{className:"fas fa-caret-down text-white"})}),(0,g.jsx)(Hi.Z,{target:"tag-".concat(r,"-color"),isOpen:n,placement:"bottom",toggle:this.togglePopover,className:"tag-color-popover mw-100",children:(0,g.jsx)(Wi.Z,{className:"p-2",children:(0,g.jsx)("div",{className:"d-flex justify-content-between",children:a.map((function(t,n){return(0,g.jsx)("div",{className:"tag-color-option mx-1",children:(0,g.jsxs)("label",{className:"colorinput",children:[(0,g.jsx)("input",{name:"color",type:"radio",value:t,className:"colorinput-input",defaultChecked:t==i,onClick:e.selectTagColor}),(0,g.jsx)("span",{className:"colorinput-color rounded-circle d-flex align-items-center justify-content-center",style:{backgroundColor:t},children:(0,g.jsx)("i",{className:"fas fa-check color-selected"})})]})},n)}))})})})]})}}]),n}(a.Component)),Vi=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).toggleMode=function(){s.setState({isEditing:!s.state.isEditing},(function(){s.state.isEditing&&s.input.current.focus()}))},s.updateTagName=function(e){var t=e.target.value,n=s.props,i=n.repoID,r=n.tag,o=r.id,a=r.color;D.I.updateRepoTag(i,o,t,a).then((function(){s.setState({tagName:t})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onInputKeyDown=function(e){"Enter"==e.key?(s.toggleMode(),s.updateTagName(e)):"Escape"==e.key&&(e.nativeEvent.stopImmediatePropagation(),s.toggleMode())},s.onInputBlur=function(e){s.toggleMode(),s.updateTagName(e)},s.state={tagName:s.props.tag.name,isEditing:!1},s.input=a.createRef(),s}return(0,s.Z)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.tag.name!==this.props.tag.name&&this.setState({tagName:e.tag.name})}},{key:"render",value:function(){var e=this.state,t=e.isEditing,n=e.tagName;return(0,g.jsx)("div",{className:"mx-2 flex-fill d-flex",children:t?(0,g.jsx)("input",{type:"text",ref:this.input,defaultValue:n,onBlur:this.onInputBlur,onKeyDown:this.onInputKeyDown,className:"flex-fill form-control-sm form-control"}):(0,g.jsx)("span",{onClick:this.toggleMode,className:"cursor-pointer flex-fill",children:n})})}}]),n}(a.Component),Ki=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onMouseOver=function(){s.setState({isTagHighlighted:!0})},s.onMouseOut=function(){s.setState({isTagHighlighted:!1})},s.deleteTag=function(){s.props.onDeleteTag(s.props.item)},s.state={isTagHighlighted:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.state.isTagHighlighted,t=this.props,n=t.item,i=t.repoID;return(0,g.jsxs)("li",{className:"tag-list-item px-4 d-flex justify-content-between align-items-center ".concat(e?"hl":""),onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,children:[(0,g.jsx)(qi,{repoID:i,tag:n}),(0,g.jsx)(Vi,{repoID:i,tag:n}),(0,g.jsx)("button",{className:"tag-delete-icon sf2-icon-delete border-0 px-0 bg-transparent cursor-pointer ".concat(e?"":"invisible"),onClick:this.deleteTag,"aria-label":(0,u.ih)("Delete"),title:(0,u.ih)("Delete")})]})}}]),n}(a.Component),Yi=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).togglePopover=function(){s.setState({isPopoverOpen:!s.state.isPopoverOpen})},s.selectTagColor=function(e){var t=e.target.value;s.props.updateVirtualTag(s.props.tag,{color:t}),s.setState({tagColor:t,isPopoverOpen:!s.state.isPopoverOpen})},s.state={tagColor:s.props.tag.color,isPopoverOpen:!1},s}return(0,s.Z)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.tag.color!==this.props.tag.color&&this.setState({tagColor:e.tag.color})}},{key:"render",value:function(){var e=this,t=this.state,n=t.isPopoverOpen,i=t.tagColor,s=this.props.tag,r=s.id,o=s.color,a=(0,K.Z)(xi.QQ);return-1==a.indexOf(o)&&a.unshift(o),(0,g.jsxs)("div",{children:[(0,g.jsx)("span",{id:"tag-".concat(r,"-color"),className:"tag-color cursor-pointer rounded-circle d-flex align-items-center justify-content-center",style:{backgroundColor:i},onClick:this.togglePopover,children:(0,g.jsx)("i",{className:"fas fa-caret-down text-white"})}),(0,g.jsx)(Hi.Z,{target:"tag-".concat(r,"-color"),isOpen:n,placement:"bottom",toggle:this.togglePopover,className:"tag-color-popover mw-100",children:(0,g.jsx)(Wi.Z,{className:"p-2",children:(0,g.jsx)("div",{className:"d-flex justify-content-between",children:a.map((function(t,n){return(0,g.jsx)("div",{className:"tag-color-option mx-1",children:(0,g.jsxs)("label",{className:"colorinput",children:[(0,g.jsx)("input",{name:"color",type:"radio",value:t,className:"colorinput-input",defaultChecked:t==i,onClick:e.selectTagColor}),(0,g.jsx)("span",{className:"colorinput-color rounded-circle d-flex align-items-center justify-content-center",style:{backgroundColor:t},children:(0,g.jsx)("i",{className:"fas fa-check color-selected"})})]})},n)}))})})})]})}}]),n}(a.Component),Xi=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).toggleMode=function(){s.setState({isEditing:!s.state.isEditing})},s.updateTagName=function(e){var t=e.target.value;s.props.updateVirtualTag(s.props.tag,{name:t}),s.setState({tagName:t})},s.onInputKeyDown=function(e){"Enter"==e.key?(s.toggleMode(),s.updateTagName(e)):"Escape"==e.key&&(e.nativeEvent.stopImmediatePropagation(),s.toggleMode())},s.onInputBlur=function(e){s.toggleMode(),s.updateTagName(e)},s.state={tagName:s.props.tag.name,isEditing:!0},s.input=a.createRef(),s}return(0,s.Z)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.tag.name!==this.props.tag.name&&this.setState({tagName:e.tag.name})}},{key:"componentDidMount",value:function(){var e=this;setTimeout((function(){e.input.current.focus()}),1)}},{key:"render",value:function(){var e=this.state,t=e.isEditing,n=e.tagName;return(0,g.jsx)("div",{className:"mx-2 flex-fill d-flex",children:t?(0,g.jsx)("input",{type:"text",ref:this.input,defaultValue:n,onBlur:this.onInputBlur,onKeyDown:this.onInputKeyDown,className:"flex-fill form-control-sm form-control"}):(0,g.jsx)("span",{onClick:this.toggleMode,className:"cursor-pointer flex-fill",style:{width:100,height:20},children:n})})}}]),n}(a.Component),Ji=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onMouseOver=function(){s.setState({isTagHighlighted:!0})},s.onMouseOut=function(){s.setState({isTagHighlighted:!1})},s.deleteVirtualTag=function(){s.props.deleteVirtualTag(s.props.item)},s.state={isTagHighlighted:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.state.isTagHighlighted,t=this.props,n=t.item,i=t.repoID;return(0,g.jsxs)("li",{className:"tag-list-item px-4 d-flex justify-content-between align-items-center ".concat(e?"hl":""),onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,children:[(0,g.jsx)(Yi,{repoID:i,tag:n,updateVirtualTag:this.props.updateVirtualTag}),(0,g.jsx)(Xi,{repoID:i,tag:n,updateVirtualTag:this.props.updateVirtualTag}),(0,g.jsx)("button",{className:"tag-delete-icon sf2-icon-delete border-0 px-0 bg-transparent cursor-pointer ".concat(e?"":"invisible"),onClick:this.deleteVirtualTag,"aria-label":(0,u.ih)("Delete"),title:(0,u.ih)("Delete")})]})}}]),n}(a.Component),Qi=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).toggleTooltip=function(){s.setState({showTooltip:!s.state.showTooltip})},s.onClickImport=function(){s.importOptionsInput.click()},s.importTagsInputChange=function(){if(s.importOptionsInput.files&&s.importOptionsInput.files.length){var e=new FileReader;e.onload=s.onImportTags.bind((0,y.Z)(s)),e.onerror=s.onImportTagsError.bind((0,y.Z)(s)),e.readAsText(s.importOptionsInput.files[0])}else w.Z.warning((0,u.ih)("Please select a file"))},s.getValidTags=function(e){var t=[],n={};s.props.repotagList.forEach((function(e){return n[e.name]=!0}));for(var i=0;i0){var o=e.color,a=t.name;D.I.createRepoTag(n,a,o).then((function(e){i[r]=new ii.Z(e.data.repo_tag),s.setState({repotagList:i})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))}},s.state={repotagList:[]},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){this.loadTags()}},{key:"render",value:function(){var e=this;return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)("ul",{className:"tag-list tag-list-container my-2",children:this.state.repotagList.map((function(t,n){return t.is_virtual?(0,g.jsx)(Ji,{item:t,repoID:e.props.repoID,deleteVirtualTag:e.deleteVirtualTag,updateVirtualTag:e.updateVirtualTag},n):(0,g.jsx)(Ki,{item:t,repoID:e.props.repoID,onDeleteTag:e.onDeleteTag},n)}))}),(0,g.jsxs)("div",{className:"add-tag-link px-4 py-2 d-flex align-items-center",onClick:this.createVirtualTag,children:[(0,g.jsx)("span",{className:"sf2-icon-plus mr-2"}),(0,u.ih)("Create a new tag")]}),(0,g.jsx)(Qi,{toggle:this.props.onListTagCancel,repotagList:this.state.repotagList,updateTags:this.updateTags,repoID:this.props.repoID})]})}}]),n}(a.Component),es=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onMouseDown=function(e){e.stopPropagation()},s.toggleRepoTag=function(e){e.stopPropagation(),s.setState({isListRepoTagShow:!s.state.isListRepoTagShow})},s.hidePopover=function(e){if(e)for(var t=e.target;t;){if("string"===typeof t.className&&t.className.includes("tag-color-popover"))return;t=t.parentNode}s.setState({isListRepoTagShow:!1})},s.toggleCancel=function(){s.setState({isListRepoTagShow:!1})},s.state={isListRepoTagShow:!1},s.tagsIconID="tags-icon-".concat(Bi()),s}return(0,s.Z)(n,[{key:"isMarkdownFile",value:function(e){return m.c.getFileName(e).includes(".md")}},{key:"render",value:function(){var e=this.props,t=e.repoID,n=e.userPerm,i=e.currentPath;if("rw"!==n)return"";if(this.isMarkdownFile(i))return"";var s=null;if(m.c.getFileName(i)){var r=u.ze+"repo/"+t+"/trash/?path="+encodeURIComponent(i);s=(0,g.jsxs)("ul",{className:"path-toolbar",children:[(0,g.jsx)("li",{className:"toolbar-item",children:(0,g.jsx)("a",{className:"op-link sf2-icon-tag",href:"#",id:this.tagsIconID,role:"button",onClick:this.toggleRepoTag,onMouseDown:this.onMouseDown,title:(0,u.ih)("Tags"),"aria-label":(0,u.ih)("Tags")})}),(0,g.jsx)("li",{className:"toolbar-item",children:(0,g.jsx)("a",{className:"op-link sf2-icon-recycle",href:r,title:(0,u.ih)("Trash"),"aria-label":(0,u.ih)("Trash")})})]})}else{var o=u.ze+"repo/"+t+"/trash/",a=u.ze+"repo/history/"+t+"/";s=(0,g.jsxs)("ul",{className:"path-toolbar",children:[(0,g.jsx)("li",{className:"toolbar-item",children:(0,g.jsx)("a",{className:"op-link sf2-icon-tag",href:"#",id:this.tagsIconID,role:"button",onClick:this.toggleRepoTag,onMouseDown:this.onMouseDown,title:(0,u.ih)("Tags"),"aria-label":(0,u.ih)("Tags")})}),(0,g.jsx)("li",{className:"toolbar-item",children:(0,g.jsx)("a",{className:"op-link sf2-icon-recycle",href:o,title:(0,u.ih)("Trash"),"aria-label":(0,u.ih)("Trash")})}),(0,g.jsx)("li",{className:"toolbar-item",children:(0,g.jsx)("a",{className:"op-link sf2-icon-history",href:a,title:(0,u.ih)("History"),"aria-label":(0,u.ih)("History")})})]})}return(0,g.jsxs)(g.Fragment,{children:[s,this.state.isListRepoTagShow&&(0,g.jsx)(Gi.Z,{popoverClassName:"list-tag-popover",target:this.tagsIconID,hideSeahubPopover:this.hidePopover,hideSeahubPopoverWithEsc:this.hidePopover,canHideSeahubPopover:!0,boundariesElement:document.body,placement:"bottom-end",children:(0,g.jsx)($i,{repoID:t,onListTagCancel:this.toggleCancel})})]})}}]),n}(a.Component),ts=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).toggleSortOptionsDialog=function(){s.setState({isSortOptionsDialogOpen:!s.state.isSortOptionsDialogOpen})},s.state={isSortOptionsDialogOpen:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=m.c.isDesktop();return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(Li,{repoName:this.props.repoName,pathPrefix:this.props.pathPrefix,currentPath:this.props.currentPath,onPathClick:this.props.onPathClick,onTabNavClick:this.props.onTabNavClick,repoID:this.props.repoID,isViewFile:this.props.isViewFile,fileTags:this.props.fileTags}),e&&(0,g.jsx)(es,{repoID:this.props.repoID,repoName:this.props.repoName,userPerm:this.props.userPerm,currentPath:this.props.currentPath,updateUsedRepoTags:this.props.updateUsedRepoTags,onDeleteRepoTag:this.props.onDeleteRepoTag}),!e&&this.props.direntList.length>0&&(0,g.jsx)("span",{className:"sf3-font sf3-font-sort action-icon",onClick:this.toggleSortOptionsDialog}),this.state.isSortOptionsDialogOpen&&(0,g.jsx)(Oe,{toggleDialog:this.toggleSortOptionsDialog,sortBy:this.props.sortBy,sortOrder:this.props.sortOrder,sortItems:this.props.sortItems})]})}}]),n}(a.Component),ns=n(57357),is=n(1413),ss=n(37387),rs=n(71500),os=n(20587);var as=function(e){var t=e.column.name;return(0,g.jsx)(os.Z,{md:3,className:"d-flex column-name",children:(0,g.jsx)("div",{className:"w-100 text-truncate",children:t||""})})},ls=n(4942),cs=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).blurInput=function(){setTimeout((function(){s.inputRef.current&&s.inputRef.current.blur()}),1)},s.onBlur=function(){var e=s.props,t=e.column,n=e.onCommit,i={};i[t.key]=s.state.value.trim(),n(i,t)},s.onChange=function(e){var t=e.target.value;t!==s.state.value&&s.setState({value:t})},s.onCut=function(e){e.stopPropagation()},s.onPaste=function(e){e.stopPropagation()},s.onKeyDown=function(e){if(e.keyCode===xi.mW.Esc)return e.stopPropagation(),void s.blurInput();var t=e.currentTarget,n=t.selectionStart,i=t.selectionEnd,r=t.value;(e.keyCode===xi.mW.ChineseInputMethod||e.keyCode===xi.mW.LeftArrow&&0===n||e.keyCode===xi.mW.RightArrow&&i===r.length)&&e.stopPropagation()},s.state={value:e.row[e.column.key]||""},s.inputRef=a.createRef(),s}return(0,s.Z)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.row[e.column.key];t!==this.state.value&&this.setState({value:t})}},{key:"render",value:function(){var e=this.props.column,t=this.state.value;return(0,g.jsx)("input",{type:"text",onBlur:this.onBlur,onCut:this.onCut,onPaste:this.onPaste,onChange:this.onChange,className:"form-control",value:t||"",onKeyDown:this.onKeyDown,disabled:!e.editable,ref:this.inputRef})}}]),n}(a.Component),hs=cs;var ps=function(e){var t=e.column,n=e.row[t.key],i=t.data||{},s=i.result_type,r=i.format;return s===xi.HC.DATE?(0,g.jsx)("div",{className:"form-control disabled",children:(0,rs.n4)(n,r)}):s===xi.HC.STRING?n:"object"===typeof n?null:(0,g.jsx)(g.Fragment,{})},ds=n(46123),us=n.n(ds),ms=n(72669),gs=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onCompositionStart=function(){s.isInputtingChinese=!0},s.onChange=function(e){s.timer&&clearTimeout(s.timer);var t=s.props,n=t.onChange,i=t.wait,r=e.target.value;s.setState({searchValue:r||""},(function(){s.isInputtingChinese||(s.timer=setTimeout((function(){n&&n(s.state.searchValue.trim())}),i))}))},s.onCompositionEnd=function(e){s.isInputtingChinese=!1,s.onChange(e)},s.setFocus=function(e){if(s.inputRef!==document.activeElement&&(s.inputRef.focus(),e)){var t=s.state.searchValue.length;s.inputRef.setSelectionRange(0,t)}},s.state={searchValue:e.value},s.isInputtingChinese=!1,s.timer=null,s.inputRef=null,s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this;this.props.autoFocus&&this.inputRef&&this.inputRef!==document.activeElement&&setTimeout((function(){e.inputRef.focus()}),0)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.value!==this.props.value&&this.setState({searchValue:e.value})}},{key:"componentWillUnmount",value:function(){this.timer&&clearTimeout(this.timer),this.timer=null,this.inputRef=null}},{key:"render",value:function(){var e=this,t=this.props,n=t.placeholder,i=t.autoFocus,s=t.className,r=t.onKeyDown,o=t.disabled,a=t.style,l=this.state.searchValue;return(0,g.jsx)("input",{type:"text",value:l,className:us()("form-control",s),onChange:this.onChange,autoFocus:i,placeholder:n,onCompositionStart:this.onCompositionStart,onCompositionEnd:this.onCompositionEnd,onKeyDown:r,disabled:o,style:a,ref:function(t){return e.inputRef=t}})}}]),n}(a.Component);gs.defaultProps={wait:100,disabled:!1,value:""};var fs,vs=gs,xs=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;(0,i.Z)(this,n),(s=t.call(this,e)).getCascadeColumnValue=function(e){var t=e.column,n=e.row,i=e.columns,s=(t.data||{}).cascade_column_key;return s&&i.find((function(e){return e.key===s}))?n[s]:""},s.getSelectColumnOptions=function(e){var t=e.column,n=e.row,i=e.columns,s=(0,rs.T8)(t),r=t.data||{},o=r.cascade_column_key,a=r.cascade_settings;if(o&&i.find((function(e){return e.key===o}))){var l=n[o];if(!l)return[];var c=a[l];return c&&Array.isArray(c)&&0!==c.length?s.filter((function(e){return c.includes(e.id)})):[]}return s},s.toggle=function(){s.ref.toggle(),s.props.onUpdateState()},s.onChangeSearch=function(e){if(s.state.searchVal!==e){var t=e.toLowerCase(),n=t?s.options.filter((function(e){return e.name&&e.name.toLowerCase().indexOf(t)>-1})):s.options;s.setState({searchVal:e,filteredOptions:n})}},s.onSelectOption=function(e){var t=s.props.column;s.setState({value:e},(function(){s.props.onCommit((0,ls.default)({},t.key,e),t),s.toggle()}))};var r=s.getSelectColumnOptions(e);return s.state={value:e.row[e.column.key],searchVal:"",highlightIndex:-1,maxItemNum:0,itemHeight:0,filteredOptions:r},s.options=r,s.timer=null,s.editorKey="single-select-editor-".concat(e.column.key),s}return(0,s.Z)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.getCascadeColumnValue(this.props)!==this.getCascadeColumnValue(e)&&(this.options=this.getSelectColumnOptions(e),this.setState({filteredOptions:this.options}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.value,i=t.filteredOptions,s=this.props.column;return(0,g.jsx)(ms.Z,{target:this.editorKey,className:"single-select-editor-popover",trigger:"legacy",placement:"bottom-start",hideArrow:!0,toggle:this.toggle,ref:function(t){return e.ref=t},children:(0,g.jsxs)("div",{className:"single-select-editor-container",children:[(0,g.jsx)("div",{className:"search-single-selects",children:(0,g.jsx)(vs,{placeholder:(0,u.ih)("Find an option"),onKeyDown:this.onKeyDown,onChange:this.onChangeSearch,autoFocus:!0})}),(0,g.jsx)("div",{className:"single-select-editor-content",children:i.map((function(t){var i=n===t.id,r={backgroundColor:t.color,color:t.textColor||null,maxWidth:Math.max(138,s.width?s.width-62:0)};return(0,g.jsxs)("div",{className:"single-select-option-container",onClick:e.onSelectOption.bind(e,i?null:t.id),children:[(0,g.jsx)("div",{className:"single-select-option",style:r,children:t.name}),(0,g.jsx)("div",{className:"single-select-option-selected",children:i&&(0,g.jsx)("i",{})})]},t.id)}))})]})})}}]),n}(a.Component),ys=xs,Ds=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;(0,i.Z)(this,n),(s=t.call(this,e)).updateState=function(){s.setState({isShowSingleSelect:!s.state.isShowSingleSelect})},s.onCommit=function(e,t){s.props.onCommit(e,t)};var r=e.column;return s.options=(0,rs.T8)(r),s.state={isShowSingleSelect:!1},s.editorKey="single-select-editor-".concat(r.key),s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.state.isShowSingleSelect,t=this.props,n=t.column,i=t.row[n.key],s=this.options.find((function(e){return e.id===i})),r=s?{backgroundColor:s.color,color:s.textColor||null}:{backgroundColor:xi.yR},o=s?s.name:(0,u.ih)(xi.sL);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{id:this.editorKey,className:us()("selected-single-select-container",{disable:!n.editable,focus:e}),children:(0,g.jsxs)("div",{className:"single-select-inner w-100 h-100 d-flex align-items-center justify-content-between",children:[(0,g.jsx)("div",{children:i&&(0,g.jsx)("div",{className:"single-select-option",style:r,title:o,children:o})}),n.editable&&(0,g.jsx)("i",{className:"fas fa-caret-down"})]})}),n.editable&&(0,g.jsx)(ys,{column:n,row:this.props.row,columns:this.props.columns,onCommit:this.onCommit,onUpdateState:this.updateState})]})}}]),n}(a.Component),ws=Ds,Ss=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;(0,i.Z)(this,n),(s=t.call(this,e)).onChange=function(e){var t=s.props.column.data,n=t&&t.format?t.format:xi.Ul,i=null;t&&"custom_currency"===t.format&&(i=t.currency_symbol);var r=e.target.value.trim();if((0,rs.V5)()||!(r.indexOf(".\u3002")>-1)){var o=(0,rs.MS)(r,n,i);o!==s.state.value&&s.setState({value:o})}},s.onKeyDown=function(e){var t=e.currentTarget,n=t.selectionStart,i=t.selectionEnd,r=t.value;e.keyCode===xi.mW.Enter||e.keyCode===xi.mW.Esc?(e.preventDefault(),s.input.blur()):(e.keyCode===xi.mW.LeftArrow&&0===n||e.keyCode===xi.mW.RightArrow&&i===r.length)&&e.stopPropagation()},s.onBlur=function(){var e=s.state.value,t=s.props.column;s.props.onCommit((0,ls.default)({},t.key,(0,rs.ap)(e,t.data)),t)},s.setInputRef=function(e){return s.input=e,s.input},s.onPaste=function(e){e.stopPropagation()},s.onCut=function(e){e.stopPropagation()};var r=e.row,o=e.column,a=r[o.key];return s.state={value:(0,rs.d8)(a,o.data)},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props.column;return(0,g.jsx)("input",{ref:this.setInputRef,type:"text",className:"form-control",value:this.state.value,onBlur:this.onBlur,onPaste:this.onPaste,onCut:this.onCut,onKeyDown:this.onKeyDown,onChange:this.onChange,disabled:!e.editable})}}]),n}(a.Component),js=Ss,bs=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.column,n=e.row,i=t.data,s=t.key,r=(0,rs.n4)(n[s],i?i.format:"");return(0,g.jsx)("input",{type:"text",className:"form-control",value:r,disabled:!0})}}]),n}(a.Component),Cs=bs,ks=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.column,n=e.row,i=t.key,s=(0,rs.n4)(n[i],"YYYY-MM-DD HH:mm:ss")||"";return(0,g.jsx)("div",{className:"form-control",style:{width:320},children:s})}}]),n}(a.Component),Is=ks,Ms=(fs={},(0,ls.default)(fs,xi.EM.TEXT,hs),(0,ls.default)(fs,xi.EM.FORMULA,ps),(0,ls.default)(fs,xi.EM.SINGLE_SELECT,ws),(0,ls.default)(fs,xi.EM.NUMBER,js),(0,ls.default)(fs,xi.EM.DATE,Cs),(0,ls.default)(fs,xi.EM.CTIME,Is),(0,ls.default)(fs,xi.EM.MTIME,Is),fs),Ns=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.column,n=e.row,i=e.columns,s=Ms[t.type]||Ms.text;return(0,g.jsxs)("div",{className:"pb-4 row column-item",children:[(0,g.jsx)(as,{column:t}),(0,g.jsx)(os.Z,{md:9,className:"d-flex align-items-center extra-attribute-item-info",children:(0,g.jsx)(s,{column:t,row:n,columns:i,onCommit:this.props.onCommit})})]})}}]),n}(a.Component),Zs=Ns,Ps=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;(0,i.Z)(this,n),(s=t.call(this,e)).startAnimation=function(e){!0===s.state.animationEnd&&e&&e(),setTimeout((function(){var t=s.modalRef.current.firstChild,n=s.getDialogStyle(),i=n.width,r=n.maxWidth,o=n.marginLeft,a=n.height;t.style.width="".concat(i,"px"),t.style.maxWidth="".concat(r,"px"),t.style.marginLeft="".concat(o,"px"),t.style.height="".concat(a,"px"),t.style.marginRight="unset",t.style.marginTop="28px",setTimeout((function(){s.setState({animationEnd:!0},(function(){t.style.transition="none",e&&e()}))}),280)}),1)},s.getFormatUpdateData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=s.state.columns,n={},i=function(i){var s=t.find((function(e){return e.key===i}));if(s&&s.editable){var r=s.type,o=s.name,a=e[i];if(r===xi.EM.SINGLE_SELECT){var l=(0,rs.T8)(s).find((function(e){return e.id===a}));n[o]=l?l.name:""}else n[s.name]=e[i]}};for(var r in e)i(r);return n},s.getData=function(){var e=s.props,t=e.repoID,n=e.filePath;D.I.getFileExtendedProperties(t,n).then((function(e){var t=e.data,n=t.row,i=t.metadata,r=t.editable_columns;s.isExist=Boolean(n._id),s.setState({row:n,columns:(0,rs.s2)(i,r,s.isEmptyFile),isLoading:!1,errorMsg:""})})).catch((function(e){var t=m.c.getErrorMsg(e);s.setState({isLoading:!1,errorMsg:t})}))},s.createData=function(e){var t=s.props,n=t.repoID,i=t.filePath;D.I.newFileExtendedProperties(n,i,e).then((function(e){s.isExist=!0;var t=e.data.row;s.setState({row:t,isLoading:!1,errorMsg:""})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger((0,u.ih)(t))}))},s.updateData=function(e,t){var n=(0,is.Z)((0,is.Z)({},s.state.row),e);s.setState({row:n},(function(){var t=s.getFormatUpdateData(e),n=s.props,i=n.repoID,r=n.filePath;s.isExist?D.I.updateFileExtendedProperties(i,r,t).then((function(e){s.setState({update:{},row:e.data.row})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger((0,u.ih)(t))})):s.createData(t)}))},s.onHotKey=function(e){(0,ss.default)("esc",e)&&s.onToggle()},s.onToggle=function(){s.props.onToggle()},s.getDialogStyle=function(){return{width:800,maxWidth:800,marginLeft:(window.innerWidth-800)/2,height:xi.KF}},s.getInitStyle=function(){var e=window.innerWidth;return{width:"".concat(e-80,"px"),maxWidth:"".concat(e-80,"px"),marginLeft:"".concat(80,"px"),height:"".concat(100,"px"),marginRight:"".concat(80,"px"),marginTop:"30%",transition:"all .3s"}},s.renderColumns=function(){var e=s.state,t=e.isLoading,n=e.errorMsg,i=e.columns,r=e.row,o=e.update;if(t)return(0,g.jsx)("div",{className:"w-100 h-100 d-flex align-items-center justify-content-center",children:(0,g.jsx)(R.Z,{})});if(n)return(0,g.jsx)("div",{className:"w-100 h-100 d-flex align-items-center justify-content-center error-message",children:(0,u.ih)(n)});var a=(0,is.Z)((0,is.Z)({},r),o);return(0,g.jsx)(g.Fragment,{children:i.map((function(e){return(0,g.jsx)(Zs,{column:e,row:a,columns:i,onCommit:s.updateData},e.key)}))})},s.renderContent=function(){return s.state.animationEnd?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(X.Z,{toggle:s.onToggle,children:(0,u.ih)("Edit extra properties")}),(0,g.jsx)(C.Z,{children:s.renderColumns()})]}):null};var r=e.direntDetail,o=e.direntType;if(s.state={animationEnd:!1,isLoading:!0,update:{},row:{},columns:[],errorMsg:""},"dir"===o)s.isEmptyFile=!1;else{var l=(null===r||void 0===r?void 0:r.id)||"";s.isEmptyFile=l==="0".repeat(l.length)}return s.isExist=!1,s.modalRef=a.createRef(),s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){this.startAnimation(this.getData),window.addEventListener("keydown",this.onHotKey)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keydown",this.onHotKey)}},{key:"render",value:function(){var e=this.state.animationEnd;return(0,g.jsx)(d.Z,{isOpen:!0,className:"extra-attributes-dialog",style:e?this.getDialogStyle():this.getInitStyle(),zIndex:xi.Ue.f,contentClassName:"extra-attributes-content-container",modalClassName:"extra-attributes-modal",wrapClassName:"extra-attributes",fade:!1,innerRef:this.modalRef,toggle:this.onToggle,children:this.renderContent()})}}]),n}(a.Component),_s=Ps,Ts=n(46408),Fs=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).submit=function(){var e=s.props,t=e.repoID,n=e.path;s.setState({submitting:!0}),D.I.applyFolderExtendedProperties(t,n).then((function(){w.Z.success((0,u.ih)("Successfully applied the properties.")),s.props.toggle()})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t),s.setState({submitting:!1})}))},s.state={submitting:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.state.submitting;return(0,g.jsxs)(d.Z,{isOpen:!0,toggle:this.props.toggle,className:"apply-properties-dialog",children:[(0,g.jsx)(X.Z,{toggle:this.props.toggle,children:(0,u.ih)("Apply properties")}),(0,g.jsx)(C.Z,{children:(0,g.jsx)("p",{children:(0,u.ih)("Are you sure you want to apply the properties to all the files inside the folder?")})}),(0,g.jsxs)(Q.Z,{children:[(0,g.jsx)($.Z,{color:"secondary",onClick:this.props.toggle,disabled:e,children:(0,u.ih)("Cancel")}),(0,g.jsx)($.Z,{color:"primary",className:"flex-shrink-0 apply-properties",disabled:e,onClick:this.submit,children:e?(0,g.jsx)(R.Z,{}):(0,g.jsx)(g.Fragment,{children:(0,u.ih)("Submit")})})]})]})}}]),n}(a.Component),Ls=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).getDirentPosition=function(){var e=s.props.repoInfo,t=s.getDirentPath(),n=e.repo_name;if("/"!==t){var i=t.lastIndexOf("/");n+=t.slice(0,i)}return n},s.onEditFileTagToggle=function(){s.setState({isEditFileTagShow:!s.state.isEditFileTagShow})},s.onFileTagChanged=function(){var e=s.getDirentPath();s.props.onFileTagChanged(s.props.dirent,e)},s.getDirentPath=function(){if(m.c.isMarkdownFile(s.props.path))return s.props.path;var e=s.props,t=e.dirent,n=e.path;return m.c.joinPath(n,t.name)},s.toggleExtraPropertiesDialog=function(){s.setState({isShowExtraProperties:!s.state.isShowExtraProperties})},s.toggleApplyPropertiesDialog=function(){s.setState({isShowApplyProperties:!s.state.isShowApplyProperties})},s.renderTags=function(){var e=s.props,t=e.direntType,n=e.direntDetail,i=s.getDirentPosition();return"dir"===t?(0,g.jsxs)("table",{className:"table-thead-hidden",children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"35%"}),(0,g.jsx)("th",{width:"65%"})]})}),(0,g.jsxs)("tbody",{children:[(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{children:(0,u.ih)("Location")}),(0,g.jsx)("td",{children:i})]}),(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{children:(0,u.ih)("Last Update")}),(0,g.jsx)("td",{children:A()(n.mtime).format("YYYY-MM-DD")})]}),"rw"===n.permission&&u.EG&&(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)("tr",{className:"file-extra-attributes",children:(0,g.jsx)("th",{colSpan:2,children:(0,g.jsx)("div",{className:"edit-file-extra-attributes-btn",onClick:s.toggleExtraPropertiesDialog,children:(0,u.ih)("Edit extra properties")})})}),(0,g.jsx)("tr",{className:"file-extra-attributes",children:(0,g.jsx)("th",{colSpan:2,children:(0,g.jsx)("div",{className:"edit-file-extra-attributes-btn text-truncate",onClick:s.toggleApplyPropertiesDialog,title:(0,u.ih)("Apply properties to files inside the folder"),children:(0,u.ih)("Apply properties to files inside the folder")})})})]})]})]}):(0,g.jsxs)("table",{className:"table-thead-hidden",children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"35%"}),(0,g.jsx)("th",{width:"65%"})]})}),(0,g.jsxs)("tbody",{children:[(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{children:(0,u.ih)("Size")}),(0,g.jsx)("td",{children:m.c.bytesToSize(n.size)})]}),(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{children:(0,u.ih)("Location")}),(0,g.jsx)("td",{children:i})]}),(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{children:(0,u.ih)("Last Update")}),(0,g.jsx)("td",{children:A()(n.last_modified).fromNow()})]}),(0,g.jsxs)("tr",{className:"file-tag-container",children:[(0,g.jsx)("th",{children:(0,u.ih)("Tags")}),(0,g.jsxs)("td",{children:[(0,g.jsx)(Ts.Z,{fileTagList:s.props.fileTagList}),(0,g.jsx)("span",{onClick:s.onEditFileTagToggle,id:s.tagListTitleID,children:(0,g.jsx)(et.Z,{symbol:"tag"})})]})]}),"rw"===n.permission&&u.EG&&(0,g.jsx)("tr",{className:"file-extra-attributes",children:(0,g.jsx)("th",{colSpan:2,children:(0,g.jsx)("div",{className:"edit-file-extra-attributes-btn",onClick:s.toggleExtraPropertiesDialog,children:(0,u.ih)("Edit extra properties")})})})]})]})},s.state={isEditFileTagShow:!1,isShowExtraProperties:!1,isShowApplyProperties:!1},s.tagListTitleID="detail-list-view-tags-".concat(Bi()),s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.direntType,n=e.direntDetail,i=e.fileTagList,s=this.getDirentPath();return(0,g.jsxs)(a.Fragment,{children:[this.renderTags(),this.state.isEditFileTagShow&&(0,g.jsx)(ns.Z,{repoID:this.props.repoID,repoTags:this.props.repoTags,filePath:s,fileTagList:i,toggleCancel:this.onEditFileTagToggle,onFileTagChanged:this.onFileTagChanged,target:this.tagListTitleID,isEditFileTagShow:this.state.isEditFileTagShow}),this.state.isShowExtraProperties&&(0,g.jsx)(_s,{repoID:this.props.repoID,filePath:s,direntType:t,direntDetail:n,onToggle:this.toggleExtraPropertiesDialog}),this.state.isShowApplyProperties&&(0,g.jsx)(Fs,{toggle:this.toggleApplyPropertiesDialog,repoID:this.props.repoID,path:s})]})}}]),n}(a.Component);Ls.defaultProps={fileTagList:[]};var Os=Ls,Rs=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).loadDirentInfo=function(e,t,n){if(e){var i=m.c.joinPath(t,e.name);s.updateDetailView(e,i)}else{var r=m.c.getDirName(t);D.I.listDir(n,r).then((function(e){for(var n=e.data.dirent_list,i=null,r=0;r0&&t.includes(s.props.dirent)){s.props.onShowDirentsDraggablePreview(),e.dataTransfer.setDragImage(s.refs.empty_content,0,0);var n=t.map((function(e){var t=s.getDirentPath(e);return{nodeDirent:e,nodeParentPath:s.props.path,nodeRootPath:t}}));return n=JSON.stringify(n),void e.dataTransfer.setData("applicaiton/drag-item-info",n)}e.dataTransfer&&e.dataTransfer.setDragImage&&e.dataTransfer.setDragImage(s.refs.drag_icon,15,15);var i=s.getDirentPath(s.props.dirent),r={nodeDirent:s.props.dirent,nodeParentPath:s.props.path,nodeRootPath:i};r=JSON.stringify(r),e.dataTransfer.setData("applicaiton/drag-item-info",r)},s.onItemDragEnter=function(e){if(m.c.isIEBrower()||!s.state.canDrag)return!1;"dir"===s.props.dirent.type&&(e.stopPropagation(),s.setState({isDropTipshow:!0}))},s.onItemDragOver=function(e){if(m.c.isIEBrower()||!s.state.canDrag)return!1;"copy"!==e.dataTransfer.dropEffect&&(e.preventDefault(),e.dataTransfer.dropEffect="move")},s.onItemDragLeave=function(e){if(m.c.isIEBrower()||!s.state.canDrag)return!1;"dir"===s.props.dirent.type&&e.stopPropagation(),s.setState({isDropTipshow:!1})},s.onItemDragDrop=function(e){if(m.c.isIEBrower()||!s.state.canDrag)return!1;if(s.setState({isDropTipshow:!1}),!e.dataTransfer.files.length&&"dir"===s.props.dirent.type){e.stopPropagation();var t=e.dataTransfer.getData("applicaiton/drag-item-info");if(t=JSON.parse(t),Array.isArray(t)){var n=t.map((function(e){return e.nodeRootPath})),i=m.c.joinPath(s.props.path,s.props.dirent.name);if(n.some((function(e){return e===i})))return;s.props.onItemsMove(s.props.currentRepoInfo,i)}else{var r=t,o=r.nodeDirent,a=r.nodeParentPath,l=r.nodeRootPath,c=s.props.dirent;if(o.name!==c.name&&("dir"!==c.type||"dir"!==o.type||a===s.props.path||-1===s.props.path.indexOf(l))){var h=m.c.joinPath(s.props.path,s.props.dirent.name);s.onItemMove(s.props.currentRepoInfo,o,h,a)}}}},s.onItemMouseDown=function(e){s.props.onItemMouseDown(e)},s.onItemContextMenu=function(e){var t=s.props.dirent;s.props.onItemContextMenu(e,t)},s.renderItemOperation=function(){var e=s.props,t=e.dirent,n=e.currentRepoInfo,i=e.selectedDirentList,r=!0,o=!0,l=(0,y.Z)(s),c=l.isCustomPermission,h=l.customPermission;if(c){var p=h.permission;r=p.download,o=p.delete}var d=m.c.isHasPermissionToShare(n,t.permission,t);return(0,g.jsx)(a.Fragment,{children:i.length>1?(0,g.jsx)(a.Fragment,{children:s.state.isOperationShow&&!t.isSelected&&(0,g.jsxs)("div",{className:"operations",children:[("rw"===t.permission||"r"===t.permission||c&&r)&&(0,g.jsx)("a",{href:"#",className:"op-icon sf2-icon-download",title:(0,u.ih)("Download"),role:"button","aria-label":(0,u.ih)("Download"),onClick:s.onItemDownload}),d&&(0,g.jsx)("a",{href:"#",className:"op-icon sf2-icon-share",title:(0,u.ih)("Share"),role:"button","aria-label":(0,u.ih)("Share"),onClick:s.onItemShare}),("rw"===t.permission||"cloud-edit"===t.permission||c&&o)&&(0,g.jsx)("a",{href:"#",className:"op-icon sf2-icon-delete",title:(0,u.ih)("Delete"),role:"button","aria-label":(0,u.ih)("Delete"),onClick:s.onItemDelete}),(0,g.jsx)(ki.Z,{item:s.props.dirent,toggleClass:"sf2-icon-caret-down",isHandleContextMenuEvent:!0,getMenuList:s.props.getDirentItemMenuList,onMenuItemClick:s.onMenuItemClick,unfreezeItem:s.unfreezeItem,freezeItem:s.props.freezeItem})]})}):(0,g.jsx)(a.Fragment,{children:s.state.isOperationShow&&(0,g.jsxs)("div",{className:"operations",children:[("rw"===t.permission||"r"===t.permission||c&&r)&&(0,g.jsx)("a",{href:"#",className:"op-icon sf2-icon-download",title:(0,u.ih)("Download"),role:"button","aria-label":(0,u.ih)("Download"),onClick:s.onItemDownload}),d&&(0,g.jsx)("a",{href:"#",className:"op-icon sf2-icon-share",title:(0,u.ih)("Share"),role:"button","aria-label":(0,u.ih)("Share"),onClick:s.onItemShare}),("rw"===t.permission||"cloud-edit"===t.permission||c&&o)&&(0,g.jsx)("a",{href:"#",className:"op-icon sf2-icon-delete",title:(0,u.ih)("Delete"),role:"button","aria-label":(0,u.ih)("Delete"),onClick:s.onItemDelete}),(0,g.jsx)(ki.Z,{item:s.props.dirent,toggleClass:"sf2-icon-caret-down",isHandleContextMenuEvent:!0,getMenuList:s.props.getDirentItemMenuList,onMenuItemClick:s.onMenuItemClick,unfreezeItem:s.unfreezeItem,freezeItem:s.props.freezeItem})]})})})};var r=s.props.dirent,o=m.c.getUserPermission(r.permission),l=o.isCustomPermission,c=o.customPermission;if(s.isCustomPermission=l,s.customPermission=c,s.canPreview=!0,s.canDrag="rw"===r.permission,l){var h=c.permission,p=h.preview,d=h.modify;s.canPreview=p||d,s.canDrag=d}return s.state={isOperationShow:!1,highlight:!1,isZipDialogOpen:!1,isMoveDialogShow:!1,isCopyDialogShow:!1,isShareDialogShow:!1,isMutipleOperation:!1,canDrag:s.canDrag,isShowTagTooltip:!1,isDragTipShow:!1,isDropTipshow:!1,isEditFileTagShow:!1,isPermissionDialogOpen:!1,isOpMenuOpen:!1},s.tagListTitleID="tag-list-title-".concat(Bi()),s}return(0,s.Z)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this;e.isItemFreezed===this.props.isItemFreezed||e.isItemFreezed||this.setState({highlight:!1,isOperationShow:!1},(function(){e.activeDirent&&e.activeDirent.name===e.dirent.name&&t.setState({isOperationShow:!0})}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.path,i=t.dirent,s=t.activeDirent,r=m.c.joinPath(n,i.name),o="";this.props.currentRepoInfo&&(o=u.ze+"library/"+this.props.repoID+"/"+this.props.currentRepoInfo.repo_name+m.c.encodePath(r));var l=u.ze+"lib/"+this.props.repoID+"/file"+m.c.encodePath(r);i.is_sdoc_revision&&i.revision_id&&(l=u.ze+"lib/"+this.props.repoID+"/revisions/"+i.revision_id+"/");var c=m.c.getDirentIcon(i),h=this.state.highlight?"tr-highlight ":"";h+=this.state.isDropTipshow?"tr-drop-effect":"",h+=s&&s.name===i.name?"tr-active":"",h+=i.isSelected?"tr-active":"";var d=i.is_freezed?(0,u.ih)("Frozen by {name}"):(0,u.ih)("locked by {name}");d=d.replace("{name}",i.lock_owner_name);var f=m.c.isDesktop(),v=this.state.canDrag,x="".concat(u.si,"img/file-").concat(i.is_freezed?"freezed-32.svg":"locked-32.png"),y=i.is_freezed?(0,u.ih)("freezed"):(0,u.ih)("locked"),D=(0,g.jsxs)("tr",{className:h,draggable:v,onFocus:this.onMouseEnter,onMouseEnter:this.onMouseEnter,onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave,onClick:this.onDirentClick,onDragStart:this.onItemDragStart,onDragEnter:this.onItemDragEnter,onDragOver:this.onItemDragOver,onDragLeave:this.onItemDragLeave,onDrop:this.onItemDragDrop,onMouseDown:this.onItemMouseDown,onContextMenu:this.onItemContextMenu,children:[(0,g.jsx)("td",{className:"pl10 ".concat(this.state.isDragTipShow?"tr-drag-effect":""),children:(0,g.jsx)("input",{type:"checkbox",className:"vam",onChange:this.onItemSelected,checked:i.isSelected})}),(0,g.jsx)("td",{className:"pl10",children:void 0!==i.starred&&(0,g.jsx)("a",{href:"#",role:"button","aria-label":i.starred?(0,u.ih)("Unstar"):(0,u.ih)("Star"),onClick:this.onItemStarred,children:(0,g.jsx)("i",{className:"fa-star ".concat(i.starred?"fas":"far star-empty")})})}),(0,g.jsx)("td",{className:"pl10",children:(0,g.jsxs)("div",{className:"dir-icon",children:[this.canPreview&&i.encoded_thumbnail_src?(0,g.jsx)("img",{ref:"drag_icon",src:"".concat(u.ze).concat(i.encoded_thumbnail_src),className:"thumbnail cursor-pointer",onClick:this.onItemClick,alt:""}):(0,g.jsx)("img",{ref:"drag_icon",src:c,width:"24",alt:""}),i.is_locked&&(0,g.jsx)("img",{className:"locked",src:x,alt:y,title:d}),(0,g.jsx)("div",{ref:"empty_content",style:{position:"absolute",width:"1px",height:"1px"}})]})}),(0,g.jsxs)("td",{className:"name",children:[this.state.isRenameing&&(0,g.jsx)(tn.Z,{hasSuffix:"dir"!==i.type,name:i.name,onRenameConfirm:this.onRenameConfirm,onRenameCancel:this.onRenameCancel}),!this.state.isRenameing&&(0,g.jsx)(a.Fragment,{children:i.isDir()||this.canPreview?(0,g.jsx)("a",{href:"dir"===i.type?o:l,onClick:this.onItemClick,children:i.name}):(0,g.jsx)("a",{className:"sf-link",onClick:this.onItemClick,children:i.name})})]}),(0,g.jsxs)("td",{className:"tag-list-title",children:["dir"!==i.type&&i.file_tags&&i.file_tags.length>0&&(0,g.jsx)("div",{id:this.tagListTitleID,className:"dirent-item tag-list tag-list-stacked",children:i.file_tags.map((function(e,t){return(0,g.jsx)(Gs,{fileTag:e,length:i.file_tags.length,index:t},t)}))}),"dir"!==i.type&&(!i.file_tags||0==i.file_tags.length)&&(0,g.jsx)("div",{id:this.tagListTitleID,className:"dirent-item tag-list tag-list-stacked"})]}),(0,g.jsx)("td",{className:"operation",children:this.renderItemOperation()}),(0,g.jsx)("td",{className:"file-size",children:i.size&&i.size}),(0,g.jsx)("td",{className:"last-update",title:A().unix(i.mtime).format("llll"),children:i.mtime_relative})]}),w=(0,g.jsxs)("tr",{children:[(0,g.jsx)("td",{onClick:this.onItemClick,children:(0,g.jsxs)("div",{className:"dir-icon",children:[this.canPreview&&i.encoded_thumbnail_src?(0,g.jsx)("img",{src:"".concat(u.ze).concat(i.encoded_thumbnail_src),className:"thumbnail cursor-pointer",alt:""}):(0,g.jsx)("img",{src:c,width:"24",alt:""}),i.is_locked&&(0,g.jsx)("img",{className:"locked",src:x,alt:y,title:d})]})}),(0,g.jsxs)("td",{onClick:this.onItemClick,children:[this.state.isRenameing&&(0,g.jsx)(tn.Z,{hasSuffix:"dir"!==i.type,name:i.name,onRenameConfirm:this.onRenameConfirm,onRenameCancel:this.onRenameCancel}),!this.state.isRenameing&&(0,g.jsx)(a.Fragment,{children:i.isDir()||this.canPreview?(0,g.jsx)("a",{href:"dir"===i.type?o:l,children:i.name}):(0,g.jsx)("a",{className:"sf-link",children:i.name})}),(0,g.jsx)("br",{}),i.size&&(0,g.jsx)("span",{className:"item-meta-info",children:i.size}),(0,g.jsx)("span",{className:"item-meta-info",children:i.mtime_relative})]}),(0,g.jsx)("td",{children:(0,g.jsxs)(U.Z,{isOpen:this.state.isOpMenuOpen,toggle:this.toggleOpMenu,children:[(0,g.jsx)(z.Z,{tag:"i",className:"sf-dropdown-toggle fa fa-ellipsis-v ml-0",title:(0,u.ih)("More operations"),"aria-label":(0,u.ih)("More operations"),"data-toggle":"dropdown","aria-expanded":this.state.isOpMenuOpen}),(0,g.jsxs)("div",{className:this.state.isOpMenuOpen?"":"d-none",onClick:this.toggleOpMenu,children:[(0,g.jsx)("div",{className:"mobile-operation-menu-bg-layer"}),(0,g.jsxs)("div",{className:"mobile-operation-menu",children:[void 0!==i.starred&&(0,g.jsx)(G.Z,{className:"mobile-menu-item",onClick:this.onItemStarred,children:i.starred?(0,u.ih)("Unstar"):(0,u.ih)("Star")}),this.props.getDirentItemMenuList(i,!0).map((function(t,n){return"Divider"!=t&&"Open via Client"!=t.key?(0,g.jsx)(G.Z,{className:"mobile-menu-item","data-op":t.key,onClick:e.onMobileMenuItemClick,children:t.value},n):null}))]})]})]})})]});return(0,g.jsxs)(a.Fragment,{children:[f?D:w,this.state.isMoveDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(fi,{path:this.props.path,repoID:this.props.repoID,dirent:this.props.dirent,isMutipleOperation:this.state.isMutipleOperation,onItemMove:this.props.onItemMove,onCancelMove:this.onItemMoveToggle,repoEncrypted:this.props.repoEncrypted})}),this.state.isCopyDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(vi,{path:this.props.path,repoID:this.props.repoID,dirent:this.props.dirent,isMutipleOperation:this.state.isMutipleOperation,onItemCopy:this.props.onItemCopy,onCancelCopy:this.onItemCopyToggle,repoEncrypted:this.props.repoEncrypted})}),(0,g.jsx)(p(),{query:"(min-width: 768px)",children:this.state.isEditFileTagShow&&(0,g.jsx)(ns.Z,{repoID:this.props.repoID,repoTags:this.props.repoTags,fileTagList:i.file_tags,filePath:r,toggleCancel:this.onEditFileTagToggle,onFileTagChanged:this.onFileTagChanged,target:this.tagListTitleID,isEditFileTagShow:this.state.isEditFileTagShow})}),(0,g.jsx)(p(),{query:"(max-width: 767.8px)",children:this.state.isEditFileTagShow&&(0,g.jsx)(ji,{repoID:this.props.repoID,repoTags:this.props.repoTags,fileTagList:i.file_tags,filePath:r,toggleCancel:this.onEditFileTagToggle,onFileTagChanged:this.onFileTagChanged})}),this.state.isZipDialogOpen&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(bi.Z,{repoID:this.props.repoID,path:this.props.path,target:this.props.dirent.name,toggleDialog:this.closeZipDialog})}),this.state.isShareDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Qe.Z,{itemType:i.type,itemName:i.name,itemPath:r,userPerm:i.permission,repoID:this.props.repoID,repoEncrypted:this.props.repoEncrypted,enableDirPrivateShare:this.props.enableDirPrivateShare,isGroupOwnedRepo:this.props.isGroupOwnedRepo,toggleDialog:this.closeSharedDialog})}),this.state.isPermissionDialogOpen&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(en,{toggleDialog:this.onPermissionItem,repoID:this.props.repoID,folderPath:r,folderName:i.name,isDepartmentRepo:this.props.isGroupOwnedRepo})})]})}}]),n}(a.Component),Ws=n(92161),qs=n(30426),Vs=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var s=arguments.length,r=new Array(s),o=0;o0&&!s.state.activeDirent||(s.setState({activeDirent:e}),s.props.onDirentClick(e))},s.sortByName=function(e){e.preventDefault();var t="asc"==s.props.sortOrder?"desc":"asc";s.props.sortItems("name",t)},s.sortByTime=function(e){e.preventDefault();var t="asc"==s.props.sortOrder?"desc":"asc";s.props.sortItems("time",t)},s.sortBySize=function(e){e.preventDefault();var t="asc"==s.props.sortOrder?"desc":"asc";s.props.sortItems("size",t)},s.prepareImageItem=function(e){var t=e.name,n=s.props.repoID,i=m.c.encodePath(m.c.joinPath(s.props.path,t)),r="".concat(u.ze,"repo/").concat(n,"/raw").concat(i);return{name:t,url:"".concat(u.ze,"lib/").concat(n,"/file").concat(i),src:r}},s.showImagePopup=function(e){var t=s.props.fullDirentList.filter((function(e){return m.c.imageCheck(e.name)})),n=t.map((function(e){return s.prepareImageItem(e)}));s.setState({isImagePopupOpen:!0,imageItems:n,imageIndex:t.indexOf(e)})},s.moveToPrevImage=function(){var e=s.state.imageItems.length;s.setState((function(t){return{imageIndex:(t.imageIndex+e-1)%e}}))},s.moveToNextImage=function(){var e=s.state.imageItems.length;s.setState((function(t){return{imageIndex:(t.imageIndex+1)%e}}))},s.closeImagePopup=function(){s.setState({isImagePopupOpen:!1})},s.onCreateFileToggle=function(e){s.setState({isCreateFileDialogShow:!s.state.isCreateFileDialogShow,fileType:e||""})},s.onCreateFolderToggle=function(){s.setState({isCreateFolderDialogShow:!s.state.isCreateFolderDialogShow})},s.onAddFolder=function(e){s.setState({isCreateFolderDialogShow:!1}),s.props.onAddFolder(e)},s.checkDuplicatedName=function(e){return s.props.direntList.some((function(t){return t.name===e}))},s.onMoveToggle=function(){s.setState({isMoveDialogShow:!s.state.isMoveDialogShow})},s.onCopyToggle=function(){s.setState({isCopyDialogShow:!s.state.isCopyDialogShow})},s.onItemsDownload=function(){var e=s.props,t=e.path,n=e.repoID,i=e.selectedDirentList;if(i.length){if(1===i.length&&!i[0].isDir()){var r=m.c.joinPath(t,i[0].name),o=gi.Z.getUrl({type:"download_file_url",repoID:n,filePath:r});return void(location.href=o)}var a=i.map((function(e){return e.name}));s.setState({isProgressDialogShow:!0,downloadItems:a})}},s.onCloseZipDownloadDialog=function(){s.setState({isProgressDialogShow:!1})},s.onMouseDown=function(e){2!==e.button||e.stopPropagation()},s.handleContextClick=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e.preventDefault(),e.stopPropagation();var r=e.clientX||e.touches&&e.touches[0].pageX,o=e.clientY||e.touches&&e.touches[0].pageY;s.props.posX&&(r-=s.props.posX),s.props.posY&&(o-=s.props.posY),(0,qs.SC)();var a={id:t,position:{x:r,y:o},target:e.target,currentObject:i,menuList:n};0!==n.length&&(0,qs.AE)(a)},s.onContainerClick=function(){(0,qs.SC)(),s.state.activeDirent&&s.onDirentClick(null)},s.onContainerMouseDown=function(e){s.onMouseDown(e)},s.onContainerContextMenu=function(e){e.preventDefault();var t=s.props.userPerm,n=m.c.getUserPermission(s.props.userPerm),i=n.isCustomPermission,r=n.customPermission;if("admin"===t||"rw"===t||i){var o=zs.Z.NEW_FOLDER,a=zs.Z.NEW_FILE,l=zs.Z.NEW_MARKDOWN_FILE,c=zs.Z.NEW_EXCEL_FILE,h=zs.Z.NEW_POWERPOINT_FILE,p=zs.Z.NEW_WORD_FILE,d=zs.Z.NEW_SEADOC_FILE,g=[o,a,"Divider",l,c,h,p];if(u.np&&g.push(d),0===s.props.selectedDirentList.length){if(i)if(!r.permission.create)return;var f=g;s.handleContextClick(e,"dirent-container-menu",f)}else if(1===s.props.selectedDirentList.length)if(s.state.activeDirent){if(s.onDirentClick(null),e.preventDefault(),e.persist(),i)if(!r.permission.modify)return;setTimeout((function(){var t=g;s.handleContextClick(e,"dirent-container-menu",t)}),0)}else{var v=s.props.selectedDirentList[0],x=s.getDirentItemMenuList(v,!0);s.handleContextClick(e,"dirent-item-menu",x,v)}else{var y=[];if(i){var D=r.permission,w=D.modify,S=D.copy,j=D.download,b=D.delete;w&&y.push(zs.Z.MOVE),S&&y.push(zs.Z.COPY),j&&y.push(zs.Z.DOWNLOAD),b&&y.push(zs.Z.DELETE)}else y=[zs.Z.MOVE,zs.Z.COPY,zs.Z.DOWNLOAD,zs.Z.DELETE];s.handleContextClick(e,"dirents-menu",y)}}},s.onContainerMenuItemClick=function(e){switch(e){case"New Folder":s.onCreateFolderToggle();break;case"New File":s.onCreateFileToggle();break;case"New Markdown File":s.onCreateFileToggle(".md");break;case"New Excel File":s.onCreateFileToggle(".xlsx");break;case"New PowerPoint File":s.onCreateFileToggle(".pptx");break;case"New Word File":s.onCreateFileToggle(".docx");break;case"New SeaDoc File":s.onCreateFileToggle(".sdoc")}(0,qs.SC)()},s.onDirentsMenuItemClick=function(e){switch(e){case"Move":s.onMoveToggle();break;case"Copy":s.onCopyToggle();break;case"Download":s.onItemsDownload();break;case"Delete":s.props.onItemsDelete()}(0,qs.SC)()},s.onThreadMouseDown=function(e){s.onMouseDown(e)},s.onThreadContextMenu=function(e){e.stopPropagation()},s.onItemMouseDown=function(e){s.onMouseDown(e)},s.onItemContextMenu=function(e,t){if(!(s.props.selectedDirentList.length>1)){s.onDirentClick(t);var n=s.getDirentItemMenuList(t,!0);s.handleContextClick(e,"dirent-item-menu",n,t)}},s.setDirentItemRef=function(e){return function(t){s.direntItems[e]=t}},s.onMenuItemClick=function(e,t,n){var i=s.getDirentIndex(t);s.direntItems[i].onMenuItemClick(e,n),(0,qs.SC)()},s.onShowMenu=function(e){s.freezeItem()},s.onHideMenu=function(e){s.unfreezeItem()},s.getDirentIndex=function(e){for(var t=s.props.direntList,n=0,i=0;i0&&(o=er()(t.name).slice(0,7),l=t.file_tags.map((function(e){return e.name})).join(" "));var c="";this.props.currentRepoInfo&&(c=u.ze+"library/"+this.props.repoID+"/"+this.props.currentRepoInfo.repo_name+m.c.encodePath(i));var h=u.ze+"lib/"+this.props.repoID+"/file"+m.c.encodePath(i);t.is_sdoc_revision&&t.revision_id&&(h=u.ze+"lib/"+this.props.repoID+"/revisions/"+t.revision_id+"/");var p="grid-file-img-link cursor-pointer";p+=this.state.isGridSelected?" grid-selected-active":" ",p+=this.state.isGridDropTipShow?" grid-drop-show":" ";var d=t.is_freezed?(0,u.ih)("Frozen by {name}"):(0,u.ih)("locked by {name}");d=d.replace("{name}",t.lock_owner_name);var f="".concat(u.si,"img/file-").concat(t.is_freezed?"freezed":"locked","-32.png"),v=t.is_freezed?(0,u.ih)("freezed"):(0,u.ih)("locked");return(0,g.jsx)(a.Fragment,{children:(0,g.jsxs)("li",{className:"grid-item",onContextMenu:this.onGridItemContextMenu,onMouseDown:this.onGridItemMouseDown,children:[(0,g.jsxs)("div",{className:p,draggable:this.canDrag,onClick:this.onItemClick,onDragStart:this.onGridItemDragStart,onDragEnter:this.onGridItemDragEnter,onDragOver:this.onGridItemDragOver,onDragLeave:this.onGridItemDragLeave,onDrop:this.onGridItemDragDrop,children:[this.canPreview&&t.encoded_thumbnail_src?(0,g.jsx)("img",{src:"".concat(u.ze).concat(r),ref:this.gridIcon,className:"thumbnail",onClick:this.onItemClick,alt:""}):(0,g.jsx)("img",{src:s,ref:this.gridIcon,width:"96",alt:""}),t.is_locked&&(0,g.jsx)("img",{className:"grid-file-locked-icon",src:f,alt:v,title:d})]}),(0,g.jsxs)("div",{className:"grid-file-name",onDragStart:this.onGridItemDragStart,draggable:this.canDrag,children:["dir"!==t.type&&t.file_tags&&t.file_tags.length>0&&(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)("div",{id:"tag-list-title-".concat(o),className:"dirent-item tag-list tag-list-stacked d-inline-block align-middle",children:t.file_tags.map((function(e,n){var i=t.file_tags.length;return(0,g.jsx)("span",{className:"file-tag",style:{zIndex:i-n,backgroundColor:e.color}},e.id)}))}),(0,g.jsx)($e.Z,{target:"tag-list-title-".concat(o),placement:"bottom",children:l})]}),t.isDir()||this.canPreview?(0,g.jsx)("a",{className:"grid-file-name-link ".concat(this.state.isGridSelected?"grid-link-selected-active":""),href:"dir"===t.type?c:h,onClick:this.onItemLinkClick,children:t.name}):(0,g.jsx)("a",{className:"sf-link grid-file-name-link ".concat(this.state.isGridSelected?"grid-link-selected-active":""),onClick:this.onItemLinkClick,children:t.name})]})]})})}}]),n}(a.Component),nr=(n(62012),function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onCreateFileToggle=function(e){s.setState({isCreateFileDialogShow:!s.state.isCreateFileDialogShow,fileType:e||""})},s.onGridItemClick=function(e){(0,qs.SC)(),s.setState({activeDirent:e}),s.props.onGridItemClick(e)},s.onMoveToggle=function(){s.setState({isMoveDialogShow:!s.state.isMoveDialogShow})},s.onCopyToggle=function(){s.setState({isCopyDialogShow:!s.state.isCopyDialogShow})},s.onAddFolder=function(e){s.setState({isCreateFolderDialogShow:!1}),s.props.onAddFolder(e)},s.onItemShare=function(e){e.nativeEvent.stopImmediatePropagation(),s.setState({isShareDialogShow:!s.state.isShareDialogShow})},s.closeSharedDialog=function(){s.setState({isShareDialogShow:!s.state.isShareDialogShow})},s.onItemDelete=function(e,t){t.nativeEvent.stopImmediatePropagation(),s.props.onItemDelete(e)},s.onItemConvert=function(e,t,n){t.nativeEvent.stopImmediatePropagation(),s.props.onItemConvert(e,n)},s.exportDocx=function(){var e=window.app.config.serviceURL+"/repo/sdoc_export_to_docx/"+s.props.repoID+"/?file_path="+s.getDirentPath(s.props.dirent);window.location.href=e},s.onMenuItemClick=function(e,t,n){switch((0,qs.SC)(),e){case"Download":s.onItemDownload(t,n);break;case"Share":s.onItemShare(n);break;case"Delete":s.onItemDelete(t,n);break;case"Rename":s.onItemRenameToggle();break;case"Move":s.onItemMoveToggle();break;case"Copy":s.onItemCopyToggle();break;case"Freeze Document":s.onFreezeDocument(t);break;case"Convert to Markdown":s.onItemConvert(t,n,"markdown");break;case"Convert to docx":s.onItemConvert(t,n,"docx");break;case"Export docx":s.exportDocx();break;case"Convert to sdoc":s.onItemConvert(t,n,"sdoc");break;case"Tags":s.onEditFileTagToggle();break;case"Permission":s.onPermissionItem();break;case"Unlock":s.onUnlockItem(t);break;case"Lock":s.onLockItem(t);break;case"Mark as draft":s.onMarkAsDraft(t);break;case"Unmark as draft":s.onUnmarkAsDraft(t);break;case"History":s.onHistory(t);break;case"New Folder":s.onCreateFolderToggle(t);break;case"New File":s.onCreateFileToggle("");break;case"New Markdown File":s.onCreateFileToggle(".md");break;case"New Excel File":s.onCreateFileToggle(".xlsx");break;case"New PowerPoint File":s.onCreateFileToggle(".pptx");break;case"New Word File":s.onCreateFileToggle(".docx");break;case"New SeaDoc File":s.onCreateFileToggle(".sdoc");break;case"Access Log":s.onAccessLog(t);break;case"Properties":s.props.showDirentDetail("info");break;case"Open via Client":s.onOpenViaClient(t)}},s.onEditFileTagToggle=function(){s.setState({isEditFileTagShow:!s.state.isEditFileTagShow})},s.onFileTagChanged=function(){var e=s.state.activeDirent?s.state.activeDirent:"",t=m.c.joinPath(s.props.path,e.name);s.props.onFileTagChanged(e,t)},s.getDirentPath=function(e){var t=s.props.path;return"/"===t?t+e.name:t+"/"+e.name},s.closeZipDialog=function(){s.setState({isZipDialogOpen:!1})},s.onItemDownload=function(e,t){t.nativeEvent.stopImmediatePropagation();var n=e,i=s.props.repoID,r=s.getDirentPath(n);if("dir"===n.type)s.setState({isZipDialogOpen:!0});else{var o=gi.Z.getUrl({type:"download_file_url",repoID:i,filePath:r});location.href=o}},s.onCreateFolderToggle=function(){s.setState({isCreateFolderDialogShow:!s.state.isCreateFolderDialogShow})},s.onItemRenameToggle=function(){s.setState({isRenameDialogShow:!s.state.isRenameDialogShow})},s.onItemMoveToggle=function(){s.setState({isMoveDialogShow:!s.state.isMoveDialogShow})},s.onItemCopyToggle=function(){s.setState({isCopyDialogShow:!s.state.isCopyDialogShow})},s.onPermissionItem=function(){s.setState({isPermissionDialogOpen:!s.state.isPermissionDialogOpen})},s.onLockItem=function(e){var t=s.props.repoID,n=s.getDirentPath(e);D.I.lockfile(t,n).then((function(){s.props.updateDirent(e,"is_locked",!0),s.props.updateDirent(e,"locked_by_me",!0);var t=u.b6.split("@");s.props.updateDirent(e,"lock_owner_name",t[0])})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onFreezeDocument=function(e){var t=s.props.repoID,n=s.getDirentPath(e);D.I.lockfile(t,n,-1).then((function(){s.props.updateDirent(e,"is_freezed",!0),s.props.updateDirent(e,"is_locked",!0),s.props.updateDirent(e,"locked_by_me",!0);var t=u.b6.split("@");s.props.updateDirent(e,"lock_owner_name",t[0])})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onUnlockItem=function(e){var t=s.props.repoID,n=s.getDirentPath(e);D.I.unlockfile(t,n).then((function(){s.props.updateDirent(e,"is_locked",!1),s.props.updateDirent(e,"locked_by_me",!1),s.props.updateDirent(e,"lock_owner_name","")})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onMarkAsDraft=function(e){var t=s.props.repoID,n=s.getDirentPath(e);D.I.sdocMarkAsDraft(t,n).then((function(t){s.props.updateDirent(e,"is_sdoc_draft",!0)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onUnmarkAsDraft=function(e){var t=s.props.repoID,n=s.getDirentPath(e);D.I.sdocUnmarkAsDraft(t,n).then((function(t){s.props.updateDirent(e,"is_sdoc_draft",!1)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onHistory=function(e){var t=s.props.repoID,n=s.getDirentPath(e),i=gi.Z.getUrl({type:"file_revisions",repoID:t,filePath:n});location.href=i},s.onAccessLog=function(e){var t=s.getDirentPath(e),n=u.ze+"repo/file-access/"+s.props.repoID+"/?p="+encodeURIComponent(t);window.open(n)},s.onOpenViaClient=function(e){var t=s.props.repoID,n=s.getDirentPath(e),i=gi.Z.getUrl({type:"open_via_client",repoID:t,filePath:n});location.href=i},s.onItemRename=function(e){s.props.onItemRename(s.state.activeDirent,e)},s.prepareImageItem=function(e){var t=e.name,n=s.props.repoID,i=m.c.encodePath(m.c.joinPath(s.props.path,t)),r="".concat(u.ze,"repo/").concat(n,"/raw").concat(i);return{name:t,url:"".concat(u.ze,"lib/").concat(n,"/file").concat(i),src:r}},s.showImagePopup=function(e){var t=s.props.fullDirentList.filter((function(e){return m.c.imageCheck(e.name)})),n=t.map((function(e){return s.prepareImageItem(e)}));s.setState({isImagePopupOpen:!0,imageItems:n,imageIndex:t.indexOf(e)})},s.closeImagePopup=function(){s.setState({isImagePopupOpen:!1})},s.moveToPrevImage=function(){var e=s.state.imageItems.length;s.setState((function(t){return{imageIndex:(t.imageIndex+e-1)%e}}))},s.moveToNextImage=function(){var e=s.state.imageItems.length;s.setState((function(t){return{imageIndex:(t.imageIndex+1)%e}}))},s.checkDuplicatedName=function(e){return m.c.checkDuplicatedNameInList(s.props.direntList,e)},s.onMouseDown=function(e){e.stopPropagation(),e.button},s.onGridContainerMouseDown=function(e){s.onMouseDown(e)},s.onGridItemMouseDown=function(e){s.onMouseDown(e)},s.gridContainerClick=function(){(0,qs.SC)(),s.props.isDirentDetailShow||s.onGridItemClick(null)},s.onGridContainerContextMenu=function(e){e.preventDefault();var t=s.props.userPerm;if("admin"===t||"rw"===t){var n=zs.Z.NEW_FOLDER,i=zs.Z.NEW_FILE,r=zs.Z.NEW_MARKDOWN_FILE,o=zs.Z.NEW_EXCEL_FILE,a=zs.Z.NEW_POWERPOINT_FILE,l=zs.Z.NEW_WORD_FILE,c=zs.Z.NEW_SEADOC_FILE,h=[n,i,"Divider",r,o,a,l];u.np&&h.push(c),s.handleContextClick(e,"dirent-grid-container-menu",h)}},s.onGridItemContextMenu=function(e,t){var n=s.getDirentItemMenuList(t,!0);s.handleContextClick(e,"grid-item-contextmenu",n,t),s.props.onGridItemClick&&s.props.onGridItemClick(t)},s.handleContextClick=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e.preventDefault(),e.stopPropagation();var r=e.clientX||e.touches&&e.touches[0].pageX,o=e.clientY||e.touches&&e.touches[0].pageY;s.props.posX&&(r-=s.props.posX),s.props.posY&&(o-=s.props.posY),(0,qs.SC)(),s.setState({activeDirent:i});var a={id:t,position:{x:r,y:o},target:e.target,currentObject:i,menuList:n};0!==n.length&&(0,qs.AE)(a)},s.getDirentItemMenuList=function(e,t){var n=s.isRepoOwner,i=s.props.currentRepoInfo;return m.c.getDirentOperationList(n,i,e,t)},s.state={isImagePopupOpen:!1,imageItems:[],imageIndex:0,isShareDialogShow:!1,isMoveDialogShow:!1,isCopyDialogShow:!1,isEditFileTagShow:!1,isZipDialogOpen:!1,isRenameDialogShow:!1,isCreateFolderDialogShow:!1,isCreateFileDialogShow:!1,fileType:"",isPermissionDialogOpen:!1,isMutipleOperation:!1,isGridItemFreezed:!1,activeDirent:null},s.isRepoOwner=e.currentRepoInfo.owner_email===u.b6,s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.direntList,i=t.path,s=this.state.activeDirent?this.state.activeDirent:"",r=m.c.joinPath(i,s.name);return this.props.isDirentListLoading?(0,g.jsx)(R.Z,{}):(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)("ul",{className:"grid-view",onClick:this.gridContainerClick,onContextMenu:this.onGridContainerContextMenu,onMouseDown:this.onGridContainerMouseDown,children:0!==n.length&&n.map((function(t,n){return(0,g.jsx)(tr,{dirent:t,repoID:e.props.repoID,path:e.props.path,onItemClick:e.props.onItemClick,currentRepoInfo:e.props.currentRepoInfo,showImagePopup:e.showImagePopup,onGridItemContextMenu:e.onGridItemContextMenu,onItemMove:e.props.onItemMove,onGridItemMouseDown:e.onGridItemMouseDown,onGridItemClick:e.onGridItemClick,activeDirent:e.state.activeDirent},n)}))}),(0,g.jsx)(Ws.Z,{id:"grid-item-contextmenu",onMenuItemClick:this.onMenuItemClick}),(0,g.jsx)(Ws.Z,{id:"dirent-grid-container-menu",onMenuItemClick:this.onMenuItemClick}),this.state.isCreateFolderDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(hi.Z,{parentPath:this.props.path,onAddFolder:this.onAddFolder,checkDuplicatedName:this.checkDuplicatedName,addFolderCancel:this.onCreateFolderToggle})}),this.state.isCreateFileDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(pi.Z,{parentPath:this.props.path,fileType:this.state.fileType,onAddFile:this.props.onAddFile,checkDuplicatedName:this.checkDuplicatedName,toggleDialog:this.onCreateFileToggle})}),this.state.isMoveDialogShow&&(0,g.jsx)(fi,{path:this.props.path,repoID:this.props.repoID,repoEncrypted:this.props.currentRepoInfo.encrypted,isMutipleOperation:this.state.isMutipleOperation,onItemMove:this.props.onItemMove,onCancelMove:this.onMoveToggle,dirent:this.state.activeDirent}),this.state.isZipDialogOpen&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(bi.Z,{repoID:this.props.repoID,path:this.props.path,target:s.name,toggleDialog:this.closeZipDialog})}),this.state.isCopyDialogShow&&(0,g.jsx)(vi,{path:this.props.path,repoID:this.props.repoID,repoEncrypted:this.props.currentRepoInfo.encrypted,isMutipleOperation:this.state.isMutipleOperation,onItemCopy:this.props.onItemCopy,onCancelCopy:this.onCopyToggle,dirent:this.state.activeDirent}),this.state.isEditFileTagShow&&(0,g.jsx)(ji,{repoID:this.props.repoID,fileTagList:s.file_tags,filePath:r,toggleCancel:this.onEditFileTagToggle,repoTags:this.props.repoTags,onFileTagChanged:this.onFileTagChanged}),this.state.isShareDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Qe.Z,{itemType:s.type,itemName:s.name,itemPath:r,userPerm:s.permission,repoID:this.props.repoID,repoEncrypted:!1,enableDirPrivateShare:this.props.enableDirPrivateShare,isGroupOwnedRepo:this.props.isGroupOwnedRepo,toggleDialog:this.closeSharedDialog})}),this.state.isRenameDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Ci,{dirent:this.state.activeDirent,onRename:this.onItemRename,checkDuplicatedName:this.checkDuplicatedName,toggleCancel:this.onItemRenameToggle})}),this.state.isPermissionDialogOpen&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(en,{toggleDialog:this.onPermissionItem,repoID:this.props.repoID,folderPath:r,folderName:s.name,isDepartmentRepo:this.props.isGroupOwnedRepo})}),this.state.isImagePopupOpen&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Bs.Z,{imageItems:this.state.imageItems,imageIndex:this.state.imageIndex,closeImagePopup:this.closeImagePopup,moveToPrevImage:this.moveToPrevImage,moveToNextImage:this.moveToNextImage})})]})}}]),n}(a.Component)),ir=nr,sr=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"render",value:function(){return"/"===this.props.path&&0===this.props.direntList.length?(0,g.jsx)(As,{path:this.props.path,isDirentListLoading:this.props.isDirentListLoading,onAddFile:this.props.onAddFile}):(0,g.jsxs)(a.Fragment,{children:[this.props.isRepoInfoBarShow&&(0,g.jsx)(Us.Z,{repoID:this.props.repoID,currentPath:this.props.path,draftCounts:this.props.draftCounts,usedRepoTags:this.props.usedRepoTags,updateUsedRepoTags:this.props.updateUsedRepoTags,onFileTagChanged:this.props.onFileTagChanged}),(0,g.jsx)(ir,{path:this.props.path,repoID:this.props.repoID,currentRepoInfo:this.props.currentRepoInfo,isGroupOwnedRepo:this.props.isGroupOwnedRepo,userPerm:this.props.userPerm,enableDirPrivateShare:this.props.enableDirPrivateShare,direntList:this.props.direntList,fullDirentList:this.props.fullDirentList,onAddFile:this.props.onAddFile,onItemClick:this.props.onItemClick,onItemDelete:this.props.onItemDelete,onItemMove:this.props.onItemMove,onItemCopy:this.props.onItemCopy,onItemConvert:this.props.onItemConvert,isDirentListLoading:this.props.isDirentListLoading,updateDirent:this.props.updateDirent,onRenameNode:this.props.onRenameNode,showDirentDetail:this.props.showDirentDetail,onGridItemClick:this.props.onGridItemClick,isDirentDetailShow:this.props.isDirentDetailShow,onItemRename:this.props.onItemRename,onAddFolder:this.props.onAddFolder,repoTags:this.props.repoTags,onFileTagChanged:this.props.onFileTagChanged})]})}}]),n}(a.Component),rr=sr,or=n(20512),ar=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).handleChange=function(e){e.target.value.trim()?s.setState({isSubmitBtnActive:!0}):s.setState({isSubmitBtnActive:!1}),s.setState({newName:e.target.value})},s.handleSubmit=function(){var e=s.validateInput(),t=e.isValid,n=e.errMessage;if(t)if(s.checkDuplicatedName()){var i=(0,u.ih)('The name "{name}" is already taken. Please choose a different name.');i=i.replace("{name}",m.c.HTMLescape(s.state.newName)),s.setState({errMessage:i})}else s.props.onRename(s.state.newName);else s.setState({errMessage:n})},s.handleKeyDown=function(e){"Enter"===e.key&&s.handleSubmit()},s.toggle=function(){s.props.toggleCancel()},s.changeState=function(e){var t=e.object.name;s.setState({newName:t})},s.validateInput=function(){var e=s.state.newName.trim(),t=!0,n="";return e?e.indexOf("/")>-1?{isValid:t=!1,errMessage:n=(0,u.ih)("Name should not include '/'.")}:{isValid:t,errMessage:n}:{isValid:t=!1,errMessage:n=(0,u.ih)("Name is required.")}},s.checkDuplicatedName=function(){return s.props.checkDuplicatedName(s.state.newName)},s.onAfterModelOpened=function(){if(s.newInput.current){var e=s.props.currentNode,t=e.object.type;if(s.newInput.current.focus(),"file"===t){var n=e.object.name.lastIndexOf(".md");s.newInput.current.setSelectionRange(0,n,"forward")}else s.newInput.current.setSelectionRange(0,-1)}},s.state={newName:"",errMessage:"",isSubmitBtnActive:!1},s.newInput=a.createRef(),s}return(0,s.Z)(n,[{key:"UNSAFE_componentWillMount",value:function(){this.setState({newName:this.props.currentNode.object.name})}},{key:"componentDidMount",value:function(){var e=this.props.currentNode;this.changeState(e)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.changeState(e.currentNode)}},{key:"render",value:function(){var e=this.props.currentNode.object.type;return(0,g.jsxs)(d.Z,{isOpen:!0,toggle:this.toggle,onOpened:this.onAfterModelOpened,children:[(0,g.jsx)(X.Z,{toggle:this.toggle,children:"file"===e?(0,u.ih)("Rename File"):(0,u.ih)("Rename Folder")}),(0,g.jsxs)(C.Z,{children:[(0,g.jsx)("p",{children:"file"===e?(0,u.ih)("New file name"):(0,u.ih)("New folder name")}),(0,g.jsx)(re.Z,{onKeyDown:this.handleKeyDown,innerRef:this.newInput,placeholder:"newName",value:this.state.newName,onChange:this.handleChange}),this.state.errMessage&&(0,g.jsx)(Ct.Z,{color:"danger",className:"mt-2",children:this.state.errMessage})]}),(0,g.jsxs)(Q.Z,{children:[(0,g.jsx)($.Z,{color:"secondary",onClick:this.toggle,children:(0,u.ih)("Cancel")}),(0,g.jsx)($.Z,{color:"primary",onClick:this.handleSubmit,disabled:!this.state.isSubmitBtnActive,children:(0,u.ih)("Submit")})]})]})}}]),n}(a.Component),lr=ar,cr=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onNodeClick=function(e){s.setState({opNode:e}),m.c.imageCheck(e.object.name)?s.showNodeImagePopup(e):s.props.onNodeClick(e)},s.onMenuItemClick=function(e,t){switch(s.setState({opNode:t}),e){case"New Folder":t?s.onAddFolderToggle():s.onAddFolderToggle("root");break;case"New File":t?s.onAddFileToggle():s.onAddFileToggle("root");break;case"Rename":s.onRenameToggle();break;case"Delete":s.onDeleteNode(t);break;case"Copy":s.onCopyToggle();break;case"Move":s.onMoveToggle();break;case"Open in New Tab":s.onOpenFile(t)}},s.onAddFileToggle=function(e){if("root"===e){var t=s.props.treeData.root;s.setState({isAddFileDialogShow:!s.state.isAddFileDialogShow,opNode:t})}else s.setState({isAddFileDialogShow:!s.state.isAddFileDialogShow})},s.onAddFolderToggle=function(e){if("root"===e){var t=s.props.treeData.root;s.setState({isAddFolderDialogShow:!s.state.isAddFolderDialogShow,opNode:t})}else s.setState({isAddFolderDialogShow:!s.state.isAddFolderDialogShow})},s.onRenameToggle=function(){s.setState({isRenameDialogShow:!s.state.isRenameDialogShow})},s.onCopyToggle=function(){s.setState({isCopyDialogShow:!s.state.isCopyDialogShow})},s.onMoveToggle=function(){s.setState({isMoveDialogShow:!s.state.isMoveDialogShow})},s.onAddFolderNode=function(e){s.setState({isAddFolderDialogShow:!s.state.isAddFolderDialogShow}),s.props.onAddFolderNode(e)},s.onRenameNode=function(e){s.setState({isRenameDialogShow:!s.state.isRenameDialogShow});var t=s.state.opNode;s.props.onRenameNode(t,e)},s.onDeleteNode=function(e){s.props.onDeleteNode(e)},s.onOpenFile=function(e){var t=u.ze+"lib/"+s.props.repoID+"/file"+m.c.encodePath(e.path);window.open(t,"_blank")},s.checkDuplicatedName=function(e){var t=s.state.opNode;return(t.parentNode?t.parentNode:t).children.map((function(e){return e.object})).some((function(t){return t.name===e}))},s.showNodeImagePopup=function(e){var t=e.parentNode.children.filter((function(e){return m.c.imageCheck(e.object.name)})).map((function(e){return e.object.name}));s.setState({isNodeImagePopupOpen:!0,imageNodeItems:s.prepareImageItems(e),imageIndex:t.indexOf(e.object.name)})},s.prepareImageItems=function(e){var t=e.parentNode.children.filter((function(e){return m.c.imageCheck(e.object.name)})),n=!s.props.currentRepoInfo.encrypted;return t.map((function(t){return function(t){var i=t.object.name,r=m.c.encodePath(m.c.joinPath(e.parentNode.path,i)),o="gif"===i.substr(i.lastIndexOf(".")+1).toLowerCase(),a=s.props.repoID,l="";return l=n&&!o?"".concat(u.ze,"thumbnail/").concat(a,"/").concat(u.fp).concat(r):"".concat(u.ze,"repo/").concat(a,"/raw").concat(r),{name:i,url:"".concat(u.ze,"lib/").concat(a,"/file").concat(r),src:l}}(t)}))},s.closeNodeImagePopup=function(){s.setState({isNodeImagePopupOpen:!1})},s.moveToPrevImage=function(){var e=s.state.imageNodeItems.length;s.setState((function(t){return{imageIndex:(t.imageIndex+e-1)%e}}))},s.moveToNextImage=function(){var e=s.state.imageNodeItems.length;s.setState((function(t){return{imageIndex:(t.imageIndex+1)%e}}))},s.stopTreeScrollPropagation=function(e){e.stopPropagation()},s.state={opNode:null,isAddFileDialogShow:!1,isAddFolderDialogShow:!1,isRenameDialogShow:!1,isNodeImagePopupOpen:!1,imageNodeItems:[],imageIndex:0,isCopyDialogShow:!1,isMoveDialogShow:!1,isMutipleOperation:!1},s.isNodeMenuShow=!0,s}return(0,s.Z)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.setState({opNode:e.currentNode})}},{key:"render",value:function(){var e=this.props.navRate?"0 0 "+100*this.props.navRate+"%":"0 0 25%",t=this.props.inResizing?"none":"";return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)("div",{className:"dir-content-nav",role:"navigation",style:{flex:e,userSelect:t},onScroll:this.stopTreeScrollPropagation,children:this.props.isTreeDataLoading?(0,g.jsx)(R.Z,{}):(0,g.jsx)(or.Z,{userPerm:this.props.userPerm,isNodeMenuShow:this.isNodeMenuShow,treeData:this.props.treeData,currentPath:this.props.currentPath,onNodeClick:this.onNodeClick,onNodeExpanded:this.props.onNodeExpanded,onNodeCollapse:this.props.onNodeCollapse,onMenuItemClick:this.onMenuItemClick,onFreezedItem:this.onFreezedItem,onUnFreezedItem:this.onUnFreezedItem,onItemMove:this.props.onItemMove,currentRepoInfo:this.props.currentRepoInfo,selectedDirentList:this.props.selectedDirentList,onItemsMove:this.props.onItemsMove})}),this.state.isAddFolderDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(hi.Z,{parentPath:this.state.opNode.path,onAddFolder:this.onAddFolderNode,checkDuplicatedName:this.checkDuplicatedName,addFolderCancel:this.onAddFolderToggle})}),this.state.isAddFileDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(pi.Z,{parentPath:this.state.opNode.path,onAddFile:this.props.onAddFileNode,checkDuplicatedName:this.checkDuplicatedName,toggleDialog:this.onAddFileToggle})}),this.state.isRenameDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(lr,{currentNode:this.state.opNode,onRename:this.onRenameNode,checkDuplicatedName:this.checkDuplicatedName,toggleCancel:this.onRenameToggle})}),this.state.isCopyDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(vi,{path:this.state.opNode.parentNode.path,repoID:this.props.repoID,dirent:this.state.opNode.object,onItemCopy:this.props.onItemCopy,repoEncrypted:this.props.currentRepoInfo.encrypted,onCancelCopy:this.onCopyToggle,isMutipleOperation:this.state.isMutipleOperation})}),this.state.isMoveDialogShow&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(fi,{path:this.state.opNode.parentNode.path,repoID:this.props.repoID,dirent:this.state.opNode.object,onItemMove:this.props.onItemMove,repoEncrypted:this.props.currentRepoInfo.encrypted,onCancelMove:this.onMoveToggle,isMutipleOperation:this.state.isMutipleOperation})}),this.state.isNodeImagePopupOpen&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(Bs.Z,{imageItems:this.state.imageNodeItems,imageIndex:this.state.imageIndex,closeImagePopup:this.closeNodeImagePopup,moveToPrevImage:this.moveToPrevImage,moveToNextImage:this.moveToNextImage})})]})}}]),n}(a.Component);cr.defaultProps={navRate:.25};var hr=cr,pr=n(88376),dr=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var s=arguments.length,r=new Array(s),o=0;o.4?s.setState({inResizing:!1,navRate:.38}):s.setState({navRate:n})},s.setCookie=function(e,t){var n=e+"="+t+";";document.cookie=n},s.getCookie=function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0,s=n.length;i=t.scrollHeight&&s.props.onListContainerScroll()},s.state={currentDirent:null},s.errMessage=(0,g.jsx)("div",{className:"message err-tip",children:(0,u.ih)("Folder does not exist.")}),s}return(0,s.Z)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.path===this.props.path&&e.updateDetail===this.props.updateDetail||this.setState({currentDirent:null})}},{key:"render",value:function(){var e=this.props,t=e.path,n=e.repoID,i=e.usedRepoTags,s=e.draftCounts,r=!1;return"/"===t&&(0===i.length&&0===s||(r=!0)),(0,g.jsxs)(a.Fragment,{children:[(0,g.jsxs)("div",{className:"cur-view-container",children:["read-only"===this.props.currentRepoInfo.status&&(0,g.jsx)("div",{className:"readonly-tip-message",children:(0,u.ih)("This library has been set to read-only by admin and cannot be updated.")}),(0,g.jsx)("div",{className:"cur-view-path",children:(0,g.jsx)(ts,{repoID:n,repoName:this.props.currentRepoInfo.repo_name,pathPrefix:this.props.pathPrefix,currentPath:this.props.path,userPerm:this.props.userPerm,isViewFile:this.props.isViewFile,onTabNavClick:this.props.onTabNavClick,onPathClick:this.onPathClick,updateUsedRepoTags:this.props.updateUsedRepoTags,fileTags:this.props.fileTags,onDeleteRepoTag:this.props.onDeleteRepoTag,direntList:this.props.direntList,sortBy:this.props.sortBy,sortOrder:this.props.sortOrder,sortItems:this.props.sortItems})}),(0,g.jsxs)("div",{className:"cur-view-content lib-content-container ".concat("column"===this.props.currentMode?"view-mode-container":""),onScroll:this.onItemsScroll,children:[!this.props.pathExist&&this.errMessage,this.props.pathExist&&(0,g.jsxs)(a.Fragment,{children:["list"===this.props.currentMode&&(0,g.jsx)(Qs,{path:this.props.path,repoID:n,currentRepoInfo:this.props.currentRepoInfo,isGroupOwnedRepo:this.props.isGroupOwnedRepo,userPerm:this.props.userPerm,enableDirPrivateShare:this.props.enableDirPrivateShare,isRepoInfoBarShow:r,repoTags:this.props.repoTags,usedRepoTags:this.props.usedRepoTags,draftCounts:this.props.draftCounts,updateUsedRepoTags:this.props.updateUsedRepoTags,isDirentListLoading:this.props.isDirentListLoading,direntList:this.props.direntList,fullDirentList:this.props.fullDirentList,sortBy:this.props.sortBy,sortOrder:this.props.sortOrder,sortItems:this.props.sortItems,onAddFolder:this.props.onAddFolder,onAddFile:this.props.onAddFile,onItemClick:this.onItemClick,onItemSelected:this.onItemSelected,onItemDelete:this.onItemDelete,onItemRename:this.props.onItemRename,onItemMove:this.onItemMove,onItemCopy:this.props.onItemCopy,onItemConvert:this.props.onItemConvert,onDirentClick:this.onDirentClick,updateDirent:this.props.updateDirent,isAllItemSelected:this.props.isAllDirentSelected,onAllItemSelected:this.props.onAllDirentSelected,selectedDirentList:this.props.selectedDirentList,onItemsMove:this.props.onItemsMove,onItemsCopy:this.props.onItemsCopy,onItemsDelete:this.props.onItemsDelete,onFileTagChanged:this.props.onFileTagChanged,showDirentDetail:this.props.showDirentDetail,loadDirentList:this.props.loadDirentList}),"grid"===this.props.currentMode&&(0,g.jsx)(rr,{path:this.props.path,repoID:n,currentRepoInfo:this.props.currentRepoInfo,isGroupOwnedRepo:this.props.isGroupOwnedRepo,userPerm:this.props.userPerm,enableDirPrivateShare:this.props.enableDirPrivateShare,onRenameNode:this.props.onRenameNode,isRepoInfoBarShow:r,repoTags:this.props.repoTags,usedRepoTags:this.props.usedRepoTags,draftCounts:this.props.draftCounts,updateUsedRepoTags:this.props.updateUsedRepoTags,isDirentListLoading:this.props.isDirentListLoading,direntList:this.props.direntList,fullDirentList:this.props.fullDirentList,onAddFile:this.props.onAddFile,onItemClick:this.onItemClick,onItemDelete:this.props.onItemDelete,onItemMove:this.onItemMove,onItemCopy:this.props.onItemCopy,onItemConvert:this.props.onItemConvert,updateDirent:this.props.updateDirent,onAddFolder:this.props.onAddFolder,showDirentDetail:this.props.showDirentDetail,onGridItemClick:this.onGridItemClick,isDirentDetailShow:this.props.isDirentDetailShow,onItemRename:this.props.onItemRename,onFileTagChanged:this.props.onFileTagChanged}),"column"===this.props.currentMode&&(0,g.jsx)(gr,{path:this.props.path,repoID:n,currentRepoInfo:this.props.currentRepoInfo,isGroupOwnedRepo:this.props.isGroupOwnedRepo,userPerm:this.props.userPerm,enableDirPrivateShare:this.props.enableDirPrivateShare,isTreeDataLoading:this.props.isTreeDataLoading,treeData:this.props.treeData,currentNode:this.props.currentNode,onNodeClick:this.props.onNodeClick,onNodeCollapse:this.props.onNodeCollapse,onNodeExpanded:this.props.onNodeExpanded,onAddFolderNode:this.props.onAddFolder,onAddFileNode:this.props.onAddFile,onRenameNode:this.props.onRenameNode,onDeleteNode:this.props.onDeleteNode,isViewFile:this.props.isViewFile,isFileLoading:this.props.isFileLoading,isFileLoadedErr:this.props.isFileLoadedErr,hash:this.props.hash,isDraft:this.props.isDraft,hasDraft:this.props.hasDraft,goDraftPage:this.props.goDraftPage,filePermission:this.props.filePermission,content:this.props.content,lastModified:this.props.lastModified,latestContributor:this.props.latestContributor,onLinkClick:this.props.onLinkClick,isRepoInfoBarShow:r,repoTags:this.props.repoTags,usedRepoTags:this.props.usedRepoTags,draftCounts:this.props.draftCounts,updateUsedRepoTags:this.props.updateUsedRepoTags,isDirentListLoading:this.props.isDirentListLoading,direntList:this.props.direntList,fullDirentList:this.props.fullDirentList,sortBy:this.props.sortBy,sortOrder:this.props.sortOrder,sortItems:this.props.sortItems,onAddFolder:this.props.onAddFolder,onAddFile:this.props.onAddFile,onItemClick:this.onItemClick,onItemSelected:this.onItemSelected,onItemDelete:this.onItemDelete,onItemRename:this.props.onItemRename,onItemMove:this.onItemMove,onItemCopy:this.props.onItemCopy,onItemConvert:this.props.onItemConvert,onDirentClick:this.onDirentClick,updateDirent:this.props.updateDirent,isAllItemSelected:this.props.isAllDirentSelected,onAllItemSelected:this.props.onAllDirentSelected,selectedDirentList:this.props.selectedDirentList,onItemsMove:this.props.onItemsMove,onItemsCopy:this.props.onItemsCopy,onItemsDelete:this.props.onItemsDelete,onFileTagChanged:this.props.onFileTagChanged,showDirentDetail:this.props.showDirentDetail,onItemsScroll:this.onItemsScroll})]})]})]}),this.props.isDirentDetailShow&&(0,g.jsx)(a.Fragment,{children:(0,g.jsx)("div",{className:"cur-view-detail",children:"/"!==this.props.path||this.state.currentDirent?(0,g.jsx)(Es,{repoID:n,path:this.props.path,dirent:this.state.currentDirent,currentRepoInfo:this.props.currentRepoInfo,repoTags:this.props.repoTags,fileTags:this.props.isViewFile?this.props.fileTags:[],onFileTagChanged:this.props.onFileTagChanged,onItemDetailsClose:this.props.closeDirentDetail,direntDetailPanelTab:this.props.direntDetailPanelTab}):(0,g.jsx)(Nt,{currentRepo:this.props.currentRepoInfo,closeDetails:this.props.closeDirentDetail})})})]})}}]),n}(a.Component),vr=n(57313),xr=n.n(vr),yr="uploading",Dr="error",wr="isSaving",Sr="uploaded",jr=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onUploadCancel=function(e){e.preventDefault(),s.props.onUploadCancel(s.props.resumableFile)},s.onUploadRetry=function(e){e.preventDefault(),s.props.onUploadRetry(s.props.resumableFile)},s.formatFileSize=function(e){return"number"!==typeof e?"":e>=1e9?(e/1e9).toFixed(1)+" G":e>=1e6?(e/1e6).toFixed(1)+" M":e>=1e3?(e/1e3).toFixed(1)+" K":e.toFixed(1)+" B"},s.state={uploadState:yr},s}return(0,s.Z)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.resumableFile,n=yr;t.error?n=Dr:(0!==t.remainingTime||t.isSaved||(n=wr),t.isSaved&&(n=Sr)),this.setState({uploadState:n})}},{key:"render",value:function(){var e=this.props.resumableFile,t=Math.round(100*e.progress()),n=e.error,i=e.newFileName,s=this.formatFileSize(e.size);return(0,g.jsxs)("tr",{className:"file-upload-item",children:[(0,g.jsx)("td",{className:"upload-name",children:(0,g.jsx)("div",{className:"ellipsis",title:i,children:i})}),(0,g.jsx)("td",{className:"ellipsis",children:(0,g.jsx)("span",{className:"file-size",title:s,children:s})}),(0,g.jsxs)("td",{className:"upload-progress ellipsis",children:[(this.state.uploadState===yr||this.state.uploadState===wr)&&(0,g.jsxs)(a.Fragment,{children:[e.size>=1e8&&(0,g.jsxs)(a.Fragment,{children:[e.isUploading()&&(0,g.jsxs)("div",{className:"progress-container",children:[(0,g.jsx)("div",{className:"progress",children:(0,g.jsx)("div",{className:"progress-bar",role:"progressbar",style:{width:"".concat(t,"%")},"aria-valuenow":t,"aria-valuemin":"0","aria-valuemax":"100"})}),-1===e.remainingTime&&(0,g.jsx)("div",{className:"progress-text",children:(0,u.ih)("Preparing to upload...")}),e.remainingTime>0&&(0,g.jsxs)("div",{className:"progress-text",children:[(0,u.ih)("Remaining")," ",m.c.formatTime(e.remainingTime)]}),0===e.remainingTime&&(0,g.jsx)("div",{className:"progress-text",children:(0,u.ih)("Indexing...")})]}),!e.isUploading()&&(0,g.jsx)("div",{className:"progress-container d-flex align-items-center",children:(0,g.jsx)("div",{className:"progress",children:(0,g.jsx)("div",{className:"progress-bar",role:"progressbar",style:{width:"".concat(t,"%")},"aria-valuenow":t,"aria-valuemin":"0","aria-valuemax":"100"})})})]}),e.size<1e8&&(0,g.jsx)("div",{className:"progress-container d-flex align-items-center",children:(0,g.jsx)("div",{className:"progress",children:(0,g.jsx)("div",{className:"progress-bar",role:"progressbar",style:{width:"".concat(t,"%")},"aria-valuenow":t,"aria-valuemin":"0","aria-valuemax":"100"})})})]}),this.state.uploadState===Dr&&(0,g.jsx)("div",{className:"message err-message ml-0",dangerouslySetInnerHTML:{__html:n}})]}),(0,g.jsx)("td",{className:"upload-operation ellipsis",children:(0,g.jsxs)(a.Fragment,{children:[this.state.uploadState===yr&&(0,g.jsx)("a",{href:"#",onClick:this.onUploadCancel,children:(0,u.ih)("Cancel")}),this.state.uploadState===Dr&&(0,g.jsx)("a",{href:"#",onClick:this.onUploadRetry,children:(0,u.ih)("Retry")}),this.state.uploadState===wr&&(0,g.jsx)("span",{className:"saving",children:(0,u.ih)("Saving...")}),this.state.uploadState===Sr&&(0,g.jsx)("span",{className:"uploaded",children:(0,u.ih)("Uploaded")})]})})]})}}]),n}(a.Component),br=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props.file,t=(0,u.ih)("Please upload files less than {placeholder}M").replace("{placeholder}",u.Og);return(0,g.jsxs)("tr",{className:"file-upload-item",children:[(0,g.jsx)("td",{className:"upload-name",children:(0,g.jsx)("div",{className:"ellipsis",title:e.name,children:e.name})}),(0,g.jsx)("td",{colSpan:3,className:"error",children:t})]})}}]),n}(a.Component),Cr=br,kr=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onCancelAllUploading=function(){s.props.onCancelAllUploading()},s.onMinimizeUpload=function(e){e.nativeEvent.stopImmediatePropagation(),s.setState({isMinimized:!s.state.isMinimized})},s.onCloseUpload=function(e){e.nativeEvent.stopImmediatePropagation(),s.props.onCloseUploadDialog()},s.state={isMinimized:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this,t=m.c.formatBitRate(this.props.uploadBitrate),n=(0,u.ih)("File Upload"),i=(0,u.ih)("File Uploading...")+" "+this.props.totalProgress+"% ("+t+")",s=(0,g.jsx)("span",{className:"sf2-icon-minus",onClick:this.onMinimizeUpload}),r=(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)("span",{className:"sf2-icon-minus",onClick:this.onMinimizeUpload}),(0,g.jsx)("span",{className:"sf2-icon-x1",onClick:this.onCloseUpload})]}),o=this.props,l=o.totalProgress,c=o.allFilesUploaded,h=o.retryFileList;return(0,g.jsxs)("div",{className:"uploader-list-view mw-100",style:{height:this.state.isMinimized?"2.25rem":"20rem"},children:[(0,g.jsxs)("div",{className:"uploader-list-header",children:[(0,g.jsx)("div",{className:"title",children:100===l?n:i}),(0,g.jsx)("div",{className:"uploader-options",children:100===l||c?r:s})]}),(0,g.jsxs)("div",{className:"uploader-list-content",children:[(0,g.jsxs)("div",{className:"text-right mt-2",children:[h.length>0?(0,g.jsx)("span",{className:"cursor-pointer",onClick:this.props.onUploadRetryAll,children:(0,u.ih)("Retry All")}):(0,g.jsx)("span",{className:"cursor-pointer disabled-link",children:(0,u.ih)("Retry All")}),c?(0,g.jsx)("span",{className:"cursor-pointer ml-3 disabled-link",children:(0,u.ih)("Cancel All")}):(0,g.jsx)("span",{className:"cursor-pointer ml-3",onClick:this.onCancelAllUploading,children:(0,u.ih)("Cancel All")})]}),(0,g.jsxs)("table",{className:"table-thead-hidden",children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"30%",children:(0,u.ih)("name")}),(0,g.jsx)("th",{width:"20%",children:(0,u.ih)("size")}),(0,g.jsx)("th",{width:"30%",children:(0,u.ih)("progress")}),(0,g.jsx)("th",{width:"20%",children:(0,u.ih)("state")})]})}),(0,g.jsxs)("tbody",{children:[this.props.forbidUploadFileList.map((function(e,t){return(0,g.jsx)(Cr,{file:e},t)})),this.props.uploadFileList.map((function(t,n){return(0,g.jsx)(jr,{resumableFile:t,onUploadCancel:e.props.onUploadCancel,onUploadRetry:e.props.onUploadRetry},n)}))]})]})]})]})}}]),n}(a.Component),Ir=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var s=arguments.length,r=new Array(s),o=0;o0&&0===t.length&&s.setState({isUploadProgressDialogShow:!0,totalProgress:100})},s.setUploadFileList=function(){var e=s.resumable.files;s.setState({uploadFileList:e,isUploadProgressDialogShow:!0}),m.c.registerGlobalVariable("uploader","isUploadProgressDialogShow",!0)},s.onFileProgress=function(e){var t=s.getBitrate(),n=s.state.uploadFileList.map((function(n){if(n.uniqueIdentifier===e.uniqueIdentifier&&t){var i=8*(n.size-n.size*n.progress()),s=Math.floor(i/t);n.remainingTime=s}return n}));s.setState({uploadBitrate:t,uploadFileList:n})},s.getBitrate=function(){var e=0,t=0,n=(new Date).getTime();if(s.resumable.files.forEach((function(t){e+=t.progress()*t.size})),s.timestamp){var i=n-s.timestamp;if(i'+m.c.HTMLescape(o)+"",l=(0,u.ih)("Are you sure you want to delete %s ?").replace("%s",a),c="";return(t>0||n>0)&&(c=(0,u.ih)("This folder has been shared to {user_amount} user(s) and {group_amount} group(s).").replace("{user_amount}",t).replace("{group_amount}",n)),(0,g.jsxs)(d.Z,{isOpen:!0,toggle:r,children:[(0,g.jsx)(X.Z,{toggle:r,children:(0,u.ih)("Delete Folder")}),(0,g.jsxs)(C.Z,{children:[(0,g.jsx)("p",{dangerouslySetInnerHTML:{__html:l}}),c&&(0,g.jsx)("p",{className:"error",children:c})]}),(0,g.jsxs)(Q.Z,{children:[(0,g.jsx)($.Z,{color:"secondary",onClick:r,children:(0,u.ih)("Cancel")}),(0,g.jsx)($.Z,{color:"primary",onClick:this.deleteFolder,children:(0,u.ih)("Delete")})]})]})}}]),n}(a.Component),Tr=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).showDirentDetail=function(e){e?s.setState({direntDetailPanelTab:e},(function(){s.setState({isDirentDetailShow:!0})})):s.setState({direntDetailPanelTab:"",isDirentDetailShow:!0})},s.toggleDirentDetail=function(){s.setState({direntDetailPanelTab:"",isDirentDetailShow:!s.state.isDirentDetailShow})},s.closeDirentDetail=function(){s.setState({isDirentDetailShow:!1,direntDetailPanelTab:""})},s.onpopstate=function(e){if(e.state&&e.state.key){if("/"===s.state.path)return;s.loadDirentList("/"),s.setState({path:"/",isViewFile:!1})}else if(e.state&&e.state.path){var t=e.state.path;if("column"===s.state.currentMode&&m.c.isMarkdownFile(t))return void s.showFile(t);s.loadDirentList(t),s.setState({path:t,isViewFile:!1})}},s.onRepoUpdateEvent=function(){var e=new Date;if(!(parseFloat(e-s.lastModifyTime)/1e3<=5)){var t=s.props.repoID,n=s.state,i=n.path,r=n.dirID;"column"===s.state.currentMode?s.state.isViewFile?s.updateColumnMarkdownData(i):D.I.dirMetaData(t,i).then((function(e){e.data.id!==r&&s.loadDirentList(i)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)})):D.I.dirMetaData(t,i).then((function(e){e.data.id!==r&&s.loadDirentList(i)})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))}},s.updateUsedRepoTags=function(){var e=s.props.repoID;D.I.listRepoTags(e).then((function(e){var t=[],n=[];e.data.repo_tags.forEach((function(e){var i=new ii.Z(e);t.push(i),i.fileCount>0&&n.push(i)})),s.setState({repoTags:t,usedRepoTags:n})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.updateColumnMarkdownData=function(e){var t=s.props.repoID;s.setState({path:e,isViewFile:!0}),D.I.getFileInfo(t,e).then((function(n){var i=n.data,r=i.mtime,o=i.permission,a=i.last_modifier_name,l=i.is_draft,c=i.has_draft,h=i.draft_id;D.I.getFileDownloadLink(t,e).then((function(e){D.I.getFileContent(e.data).then((function(e){s.state.content!==e.data&&s.setState({isFileLoading:!0}),s.setState({content:e.data,filePermission:o,latestContributor:a,lastModified:A().unix(r).fromNow(),isFileLoading:!1,isFileLoadedErr:!1,isDraft:l,hasDraft:c,draftID:h})}))}))})).catch((function(){s.setState({isFileLoading:!1,isFileLoadedErr:!0})}))},s.loadDirData=function(e){var t=s.props.repoID;ei.watchRepo(t,s.onRepoUpdateEvent),s.updateUsedRepoTags(),u.NT&&D.I.getRepoDraftCounts(t).then((function(e){s.setState({draftCounts:e.data.draft_counts})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)})),m.c.isMarkdownFile(e)?D.I.getFileInfo(s.props.repoID,e).then((function(){"column"!==s.state.currentMode&&(Ye.ZP.save("seafile_view_mode","column"),s.setState({currentMode:"column"})),s.loadSidePanel(e),s.showFile(e)})).catch((function(){"column"===s.state.currentMode?(s.loadSidePanel(e),s.showDir(e)):s.showDir(e)})):"column"===s.state.currentMode?(s.loadSidePanel(e),s.showDir(e)):s.showDir(e)},s.loadSidePanel=function(e){var t=s.props.repoID;"/"===e?D.I.listDir(t,"/").then((function(e){var t=e.data,n=t.dirent_list,i=t.user_perm,r=s.state.treeData;s.addResponseListToNode(n,r.root),s.setState({isTreeDataLoading:!1,treeData:r,userPerm:i})})).catch((function(){s.setState({isTreeDataLoading:!1})})):s.loadNodeAndParentsByPath(e)},s.showDir=function(e){var t=s.props.repoID;if(s.state.isSessionExpired||s.setState({isDirentListLoading:!0,isViewFile:!1,selectedDirentList:[]}),s.loadDirentList(e),s.resetShowLength(),s.isNeedUpdateHistoryState){var n=s.state.currentRepoInfo,i=u.ze+"library/"+t+"/"+encodeURIComponent(n.repo_name)+m.c.encodePath(e);window.history.pushState({url:i,path:e},e,i)}else s.isNeedUpdateHistoryState=!0},s.showFile=function(e){var t=s.props.repoID;"column"===s.state.currentMode&&D.I.listFileTags(t,e).then((function(e){var t=e.data.file_tags.map((function(e){return new ni.Z(e)}));s.setState({fileTags:t})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)})),s.setState({isFileLoading:!0,path:e,isViewFile:!0}),D.I.getFileInfo(t,e).then((function(n){var i=n.data,r=i.mtime,o=i.permission,a=i.last_modifier_name,l=i.is_draft,c=i.has_draft,h=i.draft_id;D.I.getFileDownloadLink(t,e).then((function(e){D.I.getFileContent(e.data).then((function(e){s.setState({content:e.data,filePermission:o,latestContributor:a,lastModified:A().unix(r).fromNow(),isFileLoading:!1,isFileLoadedErr:!1,isDraft:l,hasDraft:c,draftID:h})}))}))})).catch((function(e){var t=m.c.getErrorMsg(e,!0);e.response&&403===e.response.status||w.Z.danger(t),s.setState({isFileLoading:!1,isFileLoadedErr:!0})}));var n=s.state.currentRepoInfo,i=u.ze+"library/"+t+"/"+encodeURIComponent(n.repo_name)+m.c.encodePath(e);window.history.pushState({url:i,path:e},e,i)},s.loadDirentList=function(e){var t=s.props.repoID;D.I.listDir(t,e,{with_thumbnail:!0}).then((function(n){var i=[];n.data.dirent_list.forEach((function(e){var t=new ti.Z(e);i.push(t)})),s.setState({pathExist:!0,userPerm:n.data.user_perm,isDirentListLoading:!1,direntList:m.c.sortDirents(i,s.state.sortBy,s.state.sortOrder),dirID:n.data.dir_id,path:e,isSessionExpired:!1}),!s.state.repoEncrypted&&i.length&&s.getThumbnails(t,e,s.state.direntList),s.state.currentRepoInfo.is_admin&&(s.foldersSharedOut?s.identifyFoldersSharedOut():(s.foldersSharedOut=[],D.I.getAllRepoFolderShareInfo(t).then((function(e){e.data.share_info_list.forEach((function(e){-1===s.foldersSharedOut.indexOf(e.path)&&s.foldersSharedOut.push(e.path)})),s.identifyFoldersSharedOut()}))))})).catch((function(e){m.c.getErrorMsg(e,!0),e.response&&403===e.response.status?s.setState({isDirentListLoading:!1}):s.setState({isDirentListLoading:!1,pathExist:!1})}))},s.identifyFoldersSharedOut=function(){var e=s.state,t=e.path,n=e.direntList;0!=s.foldersSharedOut.length&&(n.forEach((function(e){"dir"==e.type&&-1!==s.foldersSharedOut.indexOf(m.c.joinPath(t,e.name)+"/")&&(e.has_been_shared_out=!0)})),s.setState({direntList:n}))},s.onListContainerScroll=function(){var e=s.state.itemsShowLength+100;s.setState({itemsShowLength:e})},s.resetShowLength=function(){s.setState({itemsShowLength:100})},s.getThumbnails=function(e,t,n){var i=n.filter((function(e){return(m.c.imageCheck(e.name)||u.eA&&m.c.videoCheck(e.name))&&!e.encoded_thumbnail_src}));if(0!=i.length){var r=(0,y.Z)(s),o=i.length;!function s(a){var l=i[a],c=[t,l.name].join("/");D.I.createThumbnail(e,c,48).then((function(e){l.encoded_thumbnail_src=e.data.encoded_thumbnail_src})).catch((function(e){})).then((function(){a1?(0,u.ih)("Restored {name} and {n} other items"):(0,u.ih)("Restored {name}");r=r.replace("{name}",n[0].path.split("/").pop()).replace("{n}",n.length-1),w.Z.success(r)}if(i.length){var o=i.length>1?(0,u.ih)("Failed to restore {name} and {n} other items"):(0,u.ih)("Failed to restore {name}");o=o.replace("{name}",i[0].path.split("/").pop()).replace("{n}",i.length-1),w.Z.danger(o)}})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onDeleteItems=function(){var e=s.props.repoID,t=s.getSelectedDirentPaths(),n=s.getSelectedDirentNames();s.setState({updateDetail:!s.state.updateDetail}),D.I.deleteMutipleDirents(e,s.state.path,n).then((function(e){"column"===s.state.currentMode&&s.deleteTreeNodes(t),s.deleteDirents(n);var i="";i=t.length>1?(i=(i=(0,u.ih)("Successfully deleted {name} and {n} other items.")).replace("{name}",n[0])).replace("{n}",n.length-1):(i=(0,u.ih)("Successfully deleted {name}.")).replace("{name}",n[0]);var r=(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("span",{children:i}),(0,g.jsx)("a",{className:"action-link p-0 ml-1",href:"#",onClick:s.restoreDeletedDirents.bind((0,y.Z)(s),e.data.commit_id,t),children:(0,u.ih)("Undo")})]});w.Z.success(r,{duration:5})})).catch((function(e){var t=m.c.getErrorMsg(e);t===(0,u.ih)("Error")&&(t=(t=(t=(0,u.ih)("Failed to delete {name} and {n} other items.")).replace("{name}",n[0])).replace("{n}",n.length-1)),w.Z.danger(t)}))},s.onAddFolder=function(e){var t=s.props.repoID;D.I.createDir(t,e).then((function(){var t=m.c.getFileName(e),n=m.c.getDirName(e);"column"===s.state.currentMode&&s.addNodeToTree(t,n,"dir"),n!==s.state.path||s.state.isViewFile||s.addDirent(t,"dir")})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onAddFile=function(e,t,n){var i=s.props.repoID;D.I.createFile(i,e,t).then((function(t){var r=m.c.getFileName(e),o=m.c.getDirName(e);if("column"===s.state.currentMode&&s.addNodeToTree(r,o,"file"),o===s.state.path&&!s.state.isViewFile){if(n)return void D.I.sdocMarkAsDraft(i,e).then((function(e){s.addDirent(r,"file",e.data.size,n)})).catch((function(e){var n=m.c.getErrorMsg(e);w.Z.danger(n),s.addDirent(r,"file",t.data.size)}));s.addDirent(r,"file",t.data.size)}})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.switchViewMode=function(e){if(e!==s.state.currentMode)if("detail"!==e){Ye.ZP.save("seafile_view_mode",e);var t=s.state.path;if("column"===s.state.currentMode&&s.state.isViewFile){t=m.c.getDirName(t),s.setState({path:t,isViewFile:!1});var n=s.state.currentRepoInfo,i=u.ze+"library/"+n.repo_id+"/"+encodeURIComponent(n.repo_name)+m.c.encodePath(t);window.history.pushState({url:i,path:t},t,i)}"column"===e&&s.loadSidePanel(s.state.path),s.isNeedUpdateHistoryState=!1,s.setState({currentMode:e}),s.showDir(t)}else s.toggleDirentDetail()},s.onSearchedClick=function(e){var t=e.is_dir?e.path.slice(0,e.path.length-1):e.path;if(s.state.currentPath!==t)if("column"===s.state.currentMode){for(var n=-1,i=m.c.getPaths(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:null,n=m.c.getFileName(e);if(t!==s.state.path){var i=s.state.direntList.filter((function(e){return e.name!==n}));s.recaculateSelectedStateAfterDirentDeleted(n,i),s.setState({direntList:i})}else s.loadDirentList(s.state.path)},s.moveDirents=function(e){var t=s.state.direntList.filter((function(t){return-1===e.indexOf(t.name)}));s.setState({direntList:t,selectedDirentList:[],isDirentSelected:!1,isAllDirentSelected:!1})},s.updateDirent=function(e,t,n){var i=s.state.direntList.map((function(i){return i.name===e.name&&(i[t]=n),i}));s.setState({direntList:i})},s.loadTreeNodeByPath=function(e){var t=s.props.repoID,n=s.state.treeData.clone(),i=n.getNodeByPath(e);i.isLoaded?(n.getNodeByPath(i.parentNode.path).isExpanded=!0,s.setState({treeData:n,currentNode:i})):D.I.listDir(t,i.path).then((function(e){s.addResponseListToNode(e.data.dirent_list,i),n.getNodeByPath(i.parentNode.path).isExpanded=!0,s.setState({treeData:n,currentNode:i})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.loadNodeAndParentsByPath=function(e){var t=s.props.repoID,n=s.state.treeData.clone();m.c.isMarkdownFile(e)&&(e=m.c.getDirName(e)),D.I.listDir(t,e,{with_parents:!0}).then((function(e){for(var t=e.data,i=t.dirent_list,r=t.user_perm,o={},a=0;a0&&(n=n.filter((function(t){return t.name!==e}))),s.setState({selectedDirentList:n,isDirentSelected:n.length>0,isAllDirentSelected:n.length===t.length})},s.onLibDecryptDialog=function(){s.setState({libNeedDecrypt:!1}),s.loadDirData(s.state.path)},s.onLibDecryptWhenCopyMove=function(){s.state.libNeedDecryptWhenCopy&&(s.state.copyMoveSingleItem?s.onCopyItem(s.state.destRepoWhenCopyMove,s.state.srcDirentWhenCopyMove,s.state.destDirentPathWhenCopyMove,s.state.srcNodeParentPathWhenCopyMove):s.onCopyItems(s.state.destRepoWhenCopyMove,s.state.destDirentPathWhenCopyMove),s.setState({libNeedDecryptWhenCopy:!1,copyMoveSingleItem:!1})),s.state.libNeedDecryptWhenMove&&(s.state.copyMoveSingleItem?s.onMoveItem(s.state.destRepoWhenCopyMove,s.state.srcDirentWhenCopyMove,s.state.destDirentPathWhenCopyMove,s.state.srcNodeParentPathWhenCopyMove):s.onMoveItems(s.state.destRepoWhenCopyMove,s.state.destDirentPathWhenCopyMove),s.setState({libNeedDecryptWhenMove:!1,copyMoveSingleItem:!1}))},s.goDraftPage=function(){window.open(u.ze+"drafts/"+s.state.draftID+"/")},s.sortItems=function(e,t){Ye.ZP.save("seafile-repo-dir-sort-by",e),Ye.ZP.save("seafile-repo-dir-sort-order",t),s.setState({sortBy:e,sortOrder:t,items:m.c.sortDirents(s.state.direntList,e,t)})},s.onUploadFile=function(e){e.nativeEvent.stopImmediatePropagation(),s.uploader.onFileUpload()},s.onUploadFolder=function(e){e.nativeEvent.stopImmediatePropagation(),s.uploader.onFolderUpload()},s.onToolbarFileTagChanged=function(){var e=s.props.repoID,t=s.state.path;D.I.listFileTags(e,t).then((function(e){var t=e.data.file_tags.map((function(e){return new ni.Z(e)}));s.setState({fileTags:t})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.unSelectDirent=function(){s.setState({isDirentSelected:!1,selectedDirentList:[]});s.onDirentSelected({})},s.onDeleteRepoTag=function(e){var t=s.state.direntList.map((function(t){if(t.file_tags){var n=t.file_tags.filter((function(t){return t.repo_tag_id!==e}));t.file_tags=n}return t}));s.setState({direntList:t}),s.updateUsedRepoTags()},s.handleSubmit=function(e){var t={share_type:"personal",from:s.state.currentRepoInfo.owner_email};D.I.leaveShareRepo(s.props.repoID,t).then((function(e){(0,c.c4)(u.ze+"shared-libs/")})).catch((function(e){var t=m.c.getErrorMsg(e,!0);w.Z.danger(t)})),e.preventDefault()},s.state={currentMode:Ye.ZP.load("seafile_view_mode")||"list",path:"",pathExist:!0,isViewFile:!1,hash:"",currentRepoInfo:null,repoName:"",repoEncrypted:!1,libNeedDecrypt:!1,isGroupOwnedRepo:!1,userPerm:"",selectedDirentList:[],isDraft:!1,hasDraft:!1,fileTags:[],draftID:"",draftCounts:0,repoTags:[],usedRepoTags:[],isTreeDataLoading:!0,treeData:oi.Z.buildTree(),currentNode:null,isFileLoading:!0,isFileLoadedErr:!1,filePermission:"",content:"",lastModified:"",latestContributor:"",isDirentListLoading:!0,direntList:[],isDirentSelected:!1,sortBy:Ye.ZP.load("seafile-repo-dir-sort-by")||"name",sortOrder:Ye.ZP.load("seafile-repo-dir-sort-order")||"asc",isAllDirentSelected:!1,dirID:"",errorMsg:"",isDirentDetailShow:!1,direntDetailPanelTab:"",updateDetail:!1,itemsShowLength:100,isSessionExpired:!1,isCopyMoveProgressDialogShow:!1,isDeleteFolderDialogOpen:!1,asyncCopyMoveTaskId:"",asyncOperationType:"move",asyncOperationProgress:0,asyncOperatedFilesLength:0},s.oldonpopstate=window.onpopstate,window.onpopstate=s.onpopstate,s.lastModifyTime=new Date,s.isNeedUpdateHistoryState=!0,s.currentMoveItemName="",s.currentMoveItemPath="",s}return(0,s.Z)(n,[{key:"UNSAFE_componentWillMount",value:function(){var e=window.location.hash;"#"===e.slice(0,1)&&this.setState({hash:e})}},{key:"componentDidMount",value:function(){var e=(0,dn.Z)((0,pn.Z)().mark((function e(){var t,n,i,s,r,o,a,l,c;return(0,pn.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props.repoID,n=window.location.href.split("?")[0],n=decodeURIComponent(n),(i=(i=n.slice(n.indexOf(t)+t.length+1)).slice(i.indexOf("/"))).length>1&&"/"===i[i.length-1]&&(i=i.slice(0,i.length-1)),e.prev=6,e.next=9,D.I.getRepoInfo(t);case 9:if(s=e.sent,r=new si.Z(s.data),o=r.owner_email.indexOf("@seafile_group")>-1,this.setState({currentRepoInfo:r}),!r.permission.startsWith("custom-")){e.next=19;break}return a=r.permission.split("-")[1],e.next=17,D.I.getCustomPermission(t,a);case 17:l=e.sent,window.custom_permission=l.data.permission;case 19:this.isNeedUpdateHistoryState=!1,this.setState({repoName:r.repo_name,libNeedDecrypt:r.lib_need_decrypt,repoEncrypted:r.encrypted,isGroupOwnedRepo:o,path:i}),r.lib_need_decrypt||this.loadDirData(i),e.next=27;break;case 24:e.prev=24,e.t0=e.catch(6),e.t0.response?403==e.t0.response.status?(this.setState({isDirentListLoading:!1,errorMsg:(0,u.ih)("Permission denied")}),c=(0,u.ih)("Permission denied"),w.Z.danger(c)):404==e.t0.response.status?this.setState({isDirentListLoading:!1,errorMsg:(0,u.ih)("Library share permission not found.")}):this.setState({isDirentListLoading:!1,errorMsg:(0,u.ih)("Error")}):this.setState({isDirentListLoading:!1,errorMsg:(0,u.ih)("Please check the network.")});case 27:case"end":return e.stop()}}),e,this,[[6,24]])})));return function(){return e.apply(this,arguments)}}()},{key:"componentWillUnmount",value:function(){window.onpopstate=this.oldonpopstate,ei.unwatchRepo(this.props.repoID,this.onRepoUpdateEvent)}},{key:"componentDidUpdate",value:function(){this.lastModifyTime=new Date}},{key:"getAsyncCopyMoveProgress",value:function(){var e=(0,dn.Z)((0,pn.Z)().mark((function e(){var t,n,i,s,r,o,a,l,c,h;return(0,pn.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.state,n=t.asyncOperationType,i=t.asyncCopyMoveTaskId,e.prev=1,e.next=4,D.I.queryAsyncOperationProgress(i);case 4:if(s=e.sent,!(r=s.data).failed){e.next=12;break}return o=(0,u.ih)("Failed to move files to another library."),"copy"===n&&(o=(0,u.ih)("Failed to copy files to another library.")),w.Z.danger(o),this.setState({asyncOperationProgress:0,isCopyMoveProgressDialogShow:!1}),e.abrupt("return");case 12:if(!r.successful){e.next=19;break}return"move"===n&&(this.currentMoveItemName&&this.currentMoveItemPath?("column"===this.state.currentMode&&this.deleteTreeNode(this.currentMoveItemPath),this.moveDirent(this.currentMoveItemName),this.currentMoveItemName="",this.currentMoveItemPath=""):("column"===this.state.currentMode&&(a=this.getSelectedDirentPaths(),this.deleteTreeNodes(a)),l=this.getSelectedDirentNames(),this.moveDirents(l))),this.setState({isCopyMoveProgressDialogShow:!1}),c=(0,u.ih)("Successfully moved files to another library."),"copy"===n&&(c=(0,u.ih)("Successfully copied files to another library.")),w.Z.success(c),e.abrupt("return");case 19:h=r.total?parseInt((r.done/r.total*100).toFixed(2)):0,this.getAsyncCopyMoveProgress(),this.setState({asyncOperationProgress:h}),e.next=27;break;case 24:e.prev=24,e.t0=e.catch(1),this.setState({asyncOperationProgress:0,isCopyMoveProgressDialogShow:!1});case 27:case"end":return e.stop()}}),e,this,[[1,24]])})));return function(){return e.apply(this,arguments)}}()},{key:"renameItemAjaxCallback",value:function(e,t){"column"===this.state.currentMode&&this.renameTreeNode(e,t),this.renameDirent(e,t)}},{key:"deleteItem",value:function(e,t){var n=this,i=this.props.repoID;t?this.setState({folderToDelete:e},(function(){n.toggleDeleteFolderDialog()})):D.I.deleteFile(i,e).then((function(i){n.deleteItemAjaxCallback(e,t);var s=m.c.getFileName(e),r=(0,u.ih)("Successfully deleted {name}").replace("{name}",s),o=(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("span",{children:r}),(0,g.jsx)("a",{className:"action-link p-0 ml-1",href:"#",onClick:n.restoreDeletedDirents.bind(n,i.data.commit_id,[e]),children:(0,u.ih)("Undo")})]});w.Z.success(o,{duration:5})})).catch((function(t){var n=m.c.getErrorMsg(t);if(n===(0,u.ih)("Error")){var i=m.c.getFileName(e);n=(0,u.ih)("Failed to delete {name}").replace("{name}",i)}w.Z.danger(n)}))}},{key:"deleteItemAjaxCallback",value:function(e){"column"===this.state.currentMode&&this.deleteTreeNode(e),this.deleteDirent(e)}},{key:"deleteDirent",value:function(e){if(e===this.state.path){var t=m.c.getDirName(e);this.showDir(t)}else if(m.c.isChildPath(e,this.state.path)){var n=m.c.getFileName(e),i=this.state.direntList.filter((function(e){return e.name!==n}));this.recaculateSelectedStateAfterDirentDeleted(n,i),this.setState({direntList:i})}else if(m.c.isAncestorPath(e,this.state.path)){var s=m.c.getDirName(e);this.showDir(s)}}},{key:"createTreeNode",value:function(e,t){var n=this.createDirent(e,t);return new ri.Z({object:n})}},{key:"createDirent",value:function(e,t,n,i){var s=this.state.userPerm,r={name:e,type:t,mtime:(new Date).getTime()/1e3,size:n,permission:s};return i&&(r.is_sdoc_draft=i),new ti.Z(r)}},{key:"render",value:function(){var e=this;if(this.state.libNeedDecrypt)return(0,g.jsx)(b.Z,{children:(0,g.jsx)(ai,{repoID:this.props.repoID,onLibDecryptDialog:this.onLibDecryptDialog})});if(this.state.libNeedDecryptWhenCopy||this.state.libNeedDecryptWhenMove)return(0,g.jsx)(b.Z,{children:(0,g.jsx)(ai,{repoID:this.state.destRepoWhenCopyMove.repo_id,onLibDecryptDialog:this.onLibDecryptWhenCopyMove})});if(this.state.errorMsg)return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)("p",{className:"error mt-6 text-center",children:this.state.errorMsg}),(0,g.jsx)("button",{type:"submit",className:"btn btn-primary submit",onClick:this.handleSubmit,children:(0,u.ih)("Leave Share")})]});if(!this.state.currentRepoInfo)return"";var t=!1,n=this.state,i=n.currentRepoInfo,s=n.userPerm,r=n.isCopyMoveProgressDialogShow,o=n.isDeleteFolderDialogOpen,l=m.c.isHasPermissionToShare(i,s),c=i.owner_email===u.b6,h=i.is_virtual,p=i.is_admin;h||!c&&!p||(t=!0);var d=this.state.direntList.filter((function(t,n){return n0&&s.setState({errMessage:e.data.failed})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.toggleItemFreezed=function(e){s.setState({isItemFreezed:e})},s.handleScroll=function(e){var t=s.state,n=t.page,i=t.hasNextPage,r=t.isLoadingMore;if(i&&!r){var o=e.target.clientHeight,a=e.target.scrollHeight;o+e.target.scrollTop+1>=a&&s.setState({isLoadingMore:!0},(function(){s.listGroupMembers(n+1)}))}},s.changeMember=function(e){s.setState({groupMembers:s.state.groupMembers.map((function(t){return t.email==e.email&&(t=e),t}))})},s.deleteMember=function(e){var t=s.state.groupMembers;t.splice(t.indexOf(e),1),s.setState({groupMembers:t})},s.searchMembers=function(e){var t=s.state.groupMembers,n=e.target.value,i=n.trim().toLowerCase(),r=t.filter((function(e){return e.name.toLowerCase().indexOf(i)>-1}));s.setState({keyword:n,membersFound:r})},s.clearSearch=function(){s.setState({keyword:"",membersFound:[]})},s.onSearchInputFocus=function(){s.setState({searchActive:!0})},s.onSearchInputBlur=function(){s.setState({searchActive:!1})},s.state={isLoading:!0,isLoadingMore:!1,groupMembers:[],page:1,perPage:100,hasNextPage:!1,selectedOption:null,errMessage:[],isItemFreezed:!1,searchActive:!1,keyword:"",membersFound:[]},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){this.listGroupMembers(this.state.page)}},{key:"render",value:function(){var e=this.state,t=e.isLoading,n=e.hasNextPage,i=e.groupMembers,s=e.keyword,r=e.membersFound,o=e.searchActive;return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)("p",{className:"mb-2",children:(0,u.ih)("Add group member")}),(0,g.jsxs)("div",{className:"add-members",children:[(0,g.jsx)(qt.Z,{placeholder:(0,u.ih)("Search users"),onSelectChange:this.onSelectChange,ref:"userSelect",isMulti:!0,className:"add-members-select"}),this.state.selectedOption?(0,g.jsx)($.Z,{color:"secondary",onClick:this.addGroupMember,children:(0,u.ih)("Submit")}):(0,g.jsx)($.Z,{color:"secondary",disabled:!0,children:(0,u.ih)("Submit")})]}),this.state.errMessage.length>0&&this.state.errMessage.map((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(0,g.jsx)("div",{className:"group-error error",children:e.error_msg},t)})),i.length>10&&(0,g.jsxs)(Ht.Z,{className:"search-group-members rounded ".concat(o?"active":""),children:[(0,g.jsx)(xn.Z,{children:(0,g.jsx)("i",{className:"fas fa-search","aria-hidden":!0})}),(0,g.jsx)(re.Z,{type:"text",className:"input-group-input px-0",placeholder:(0,u.ih)("Search group members"),value:s,onChange:this.searchMembers,onFocus:this.onSearchInputFocus,onBlur:this.onSearchInputBlur}),s&&(0,g.jsx)(xn.Z,{children:(0,g.jsx)("i",{className:"sf2-icon-x1","aria-hidden":!0,onClick:this.clearSearch})})]}),(0,g.jsx)("div",{className:"manage-members",onScroll:s.trim()?function(){}:this.handleScroll,children:t?(0,g.jsx)(R.Z,{}):(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(zr,{groupMembers:s.trim()?r:i,changeMember:this.changeMember,deleteMember:this.deleteMember,groupID:this.props.groupID,isOwner:this.props.isOwner,isItemFreezed:this.state.isItemFreezed,toggleItemFreezed:this.toggleItemFreezed}),!s.trim()&&n&&(0,g.jsx)(R.Z,{})]})})]})}}]),n}(a.Component),Gr=Br,Hr=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.groupID,n=e.isOwner,i=e.toggleManageMembersDialog;return(0,g.jsxs)(d.Z,{isOpen:!0,toggle:i,className:"group-manage-members-dialog",children:[(0,g.jsx)(X.Z,{toggle:i,children:(0,u.ih)("Manage group members")}),(0,g.jsx)(C.Z,{className:"pb-0",children:(0,g.jsx)(Gr,{groupID:t,isOwner:n})})]})}}]),n}(a.Component),Wr=Hr,qr=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).leaveGroup=function(){D.I.quitGroup(s.props.groupID,u.b6).then((function(e){s.props.onGroupChanged()})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s}return(0,s.Z)(n,[{key:"render",value:function(){return(0,g.jsxs)(d.Z,{isOpen:!0,toggle:this.props.toggleLeaveGroupDialog,children:[(0,g.jsx)(X.Z,{toggle:this.props.toggleLeaveGroupDialog,children:(0,u.ih)("Leave Group")}),(0,g.jsx)(C.Z,{children:(0,g.jsx)("p",{children:(0,u.ih)("Really want to leave this group?")})}),(0,g.jsxs)(Q.Z,{children:[(0,g.jsx)($.Z,{color:"secondary",onClick:this.props.toggleLeaveGroupDialog,children:(0,u.ih)("Cancel")}),(0,g.jsx)($.Z,{color:"primary",onClick:this.leaveGroup,children:(0,u.ih)("Leave")})]})]})}}]),n}(a.Component),Vr=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).loadGroup=function(e){D.I.getGroup(e).then((function(e){var t=new S(e.data),n=s.getEmptyTip(t),i=t.admins.indexOf(u.b6)>-1,r=t.owner===u.b6,o=0!==t.parent_group_id;s.setState({emptyTip:n,currentGroup:t,isStaff:i,isDepartmentGroup:o,isOwner:r,currentPage:1,repoList:[]},(function(){s.loadRepos(s.state.currentPage)}))})).catch((function(e){s.setState({isLoading:!1,errMessage:m.c.getErrorMsg(e,!0)})}))},s.loadRepos=function(e){var t=s.state.perPage;D.I.listGroupRepos(s.props.groupID,e,t).then((function(n){var i=!0;n.data.length=a&&s.setState({isLoadingMore:!0},(function(){s.loadRepos(n+1)}))}},s.state={isLoading:!0,isLoadingMore:!1,errMessage:"",emptyTip:null,currentGroup:null,currentRepo:null,isStaff:!1,isOwner:!1,sortBy:Ye.ZP.load("seafile-repo-dir-sort-by")||"name",sortOrder:Ye.ZP.load("seafile-repo-dir-sort-order")||"asc",isSortOptionsDialogOpen:!1,repoList:[],currentPage:1,perPage:300,hasNextPage:!1,libraryType:"group",isCreateRepoDialogShow:!1,isDepartmentGroup:!1,showGroupDropdown:!1,showGroupMembersPopover:!1,showRenameGroupDialog:!1,showDismissGroupDialog:!1,showTransferGroupDialog:!1,showImportMembersDialog:!1,showManageMembersDialog:!1,groupMembers:[],isShowDetails:!1,isLeaveGroupDialogOpen:!1},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this.props.groupID;this.loadGroup(e)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.groupID!==this.props.groupID&&this.loadGroup(e.groupID)}},{key:"render",value:function(){var e=this,t=this.state,n=t.errMessage,i=t.emptyTip,s=t.currentGroup,r=t.isDepartmentGroup,o=t.isStaff,l=!1;s&&(0===s.parent_group_id||s.admins.indexOf(u.b6)>-1)&&(l=!0);var h=0;return r&&s.group_quota&&(h=s.group_quota_usage/s.group_quota*100+"%"),(0,g.jsxs)(a.Fragment,{children:[(0,g.jsxs)("div",{className:"main-panel-north border-left-show",children:[(0,g.jsxs)("div",{className:"cur-view-toolbar",children:[(0,g.jsx)("span",{className:"sf2-icon-menu side-nav-toggle hidden-md-up d-md-none",title:"Side Nav Menu",onClick:this.props.onShowSidePanel}),(0,g.jsx)("div",{className:"operation",children:(!r&&u.cA||r&&o)&&(m.c.isDesktop()?(0,g.jsxs)("button",{className:"btn btn-secondary operation-item",title:(0,u.ih)("New Library"),onClick:this.onCreateRepoToggle,children:[(0,g.jsx)("i",{className:"fas fa-plus-square text-secondary mr-1"}),(0,u.ih)("New Library")]}):(0,g.jsx)("span",{className:"sf2-icon-plus mobile-toolbar-icon",title:(0,u.ih)("New Library"),onClick:this.onCreateRepoToggle}))})]}),(0,g.jsx)(Ee.Z,{onSearchedClick:this.props.onSearchedClick})]}),(0,g.jsxs)("div",{className:"main-panel-center flex-row",children:[(0,g.jsxs)("div",{className:"cur-view-container",children:[(0,g.jsx)("div",{className:"cur-view-path",children:s&&(0,g.jsxs)(a.Fragment,{children:[(0,g.jsxs)("div",{className:"path-container",children:[(0,g.jsx)(c.rU,{to:"".concat(u.ze,"groups/"),onClick:function(){return e.onTabNavClick("groups")},children:(0,u.ih)("Groups")}),(0,g.jsx)("span",{className:"path-split",children:"/"}),(0,g.jsx)("span",{children:s.name}),r&&(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)("span",{className:"department-group-icon fas fa-building",title:(0,u.ih)("This is a special group representing a department.")}),s.group_quota>0&&(0,g.jsx)("span",{className:"department-usage-container",children:(0,g.jsxs)("div",{className:"department-usage",children:[(0,g.jsx)("span",{id:"quota-bar",className:"department-quota-bar",children:(0,g.jsx)("span",{id:"quota-usage",className:"usage",style:{width:h}})}),(0,g.jsxs)("span",{className:"department-quota-info",children:[m.c.bytesToSize(s.group_quota_usage)," / ",m.c.bytesToSize(s.group_quota)]})]})})]})]}),(0,g.jsxs)("div",{className:"path-tool",children:[l&&(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(rn.Z,{className:"sf2-icon-cog1 action-icon group-top-action-icon",title:(0,u.ih)("Settings"),op:this.toggleGroupDropdown}),this.state.showGroupDropdown&&(0,g.jsxs)("div",{className:"sf-popover",id:"group-setting-popover",children:[(0,g.jsxs)("div",{className:"sf-popover-hd sf-popover-title",children:[(0,g.jsx)("span",{children:(0,u.ih)("Settings")}),(0,g.jsx)("a",{href:"#",className:"sf-popover-close js-close sf2-icon-x1 action-icon",role:"button","aria-label":(0,u.ih)("Close"),onClick:this.toggleGroupDropdown})]}),(0,g.jsxs)("div",{className:"sf-popover-con",children:[(this.state.isStaff||this.state.isOwner)&&(0,g.jsxs)("ul",{className:"sf-popover-list",children:[(0,g.jsx)("li",{children:(0,g.jsx)("a",{href:"#",className:"sf-popover-item",onClick:this.toggleRenameGroupDialog,children:(0,u.ih)("Rename")})}),this.state.isOwner&&(0,g.jsx)("li",{children:(0,g.jsx)("a",{href:"#",className:"sf-popover-item",onClick:this.toggleTransferGroupDialog,children:(0,u.ih)("Transfer")})})]}),(this.state.isStaff||this.state.isOwner)&&(0,g.jsxs)("ul",{className:"sf-popover-list",children:[(0,g.jsx)("li",{children:(0,g.jsx)("a",{href:"#",className:"sf-popover-item",onClick:this.toggleImportMembersDialog,children:(0,u.ih)("Import Members")})}),(0,g.jsx)("li",{children:(0,g.jsx)("a",{href:"#",className:"sf-popover-item",onClick:this.toggleManageMembersDialog,children:(0,u.ih)("Manage Members")})})]}),this.state.isOwner&&(0,g.jsx)("ul",{className:"sf-popover-list",children:(0,g.jsx)("li",{children:(0,g.jsx)("a",{href:"#",className:"sf-popover-item",onClick:this.toggleDismissGroupDialog,children:(0,u.ih)("Delete Group")})})}),!this.state.isOwner&&!r&&(0,g.jsx)("ul",{className:"sf-popover-list",children:(0,g.jsx)("li",{children:(0,g.jsx)("a",{href:"#",className:"sf-popover-item",onClick:this.toggleLeaveGroupDialog,children:(0,u.ih)("Leave Group")})})})]})]})]}),(0,g.jsx)("a",{href:"#",className:"sf2-icon-user2 action-icon group-top-action-icon",title:(0,u.ih)("Members"),id:"groupMembers",onClick:function(){return e.toggleGroupMembersPopover("open")}}),this.state.showGroupMembersPopover&&(0,g.jsxs)("div",{className:"sf-popover",id:"group-members-popover",children:[(0,g.jsxs)("div",{className:"sf-popover-hd sf-popover-title group-member-list-header",children:[(0,g.jsx)("span",{children:(0,u.ih)("Members")}),(0,g.jsx)("a",{href:"#",className:"sf-popover-close js-close sf2-icon-x1 action-icon",onClick:this.toggleGroupMembersPopover})]}),(0,g.jsx)("div",{className:"sf-popover-con",children:(0,g.jsx)("ul",{className:"sf-popover-list group-member-list",children:this.state.groupMembers.map((function(t,n){return(0,g.jsx)("li",{children:(0,g.jsxs)("a",{href:"#",className:"sf-popover-item user-item d-flex",children:[(0,g.jsx)("img",{src:t.avatar_url,alt:"",className:"group-member-avatar avatar"}),(0,g.jsxs)("span",{className:"txt-item ellipsis d-flex",children:[(0,g.jsx)("span",{className:"group-member-name ellipsis",children:t.name}),(0,g.jsx)("span",{className:"group-member-admin",children:e.translateRole(t.role)})]})]})},n)}))})})]}),!m.c.isDesktop()&&this.state.repoList.length>0&&(0,g.jsx)("span",{className:"sf3-font sf3-font-sort action-icon",onClick:this.toggleSortOptionsDialog}),this.state.isSortOptionsDialogOpen&&(0,g.jsx)(Oe,{toggleDialog:this.toggleSortOptionsDialog,sortBy:this.state.sortBy,sortOrder:this.state.sortOrder,sortItems:this.sortItems})]})]})}),(0,g.jsxs)("div",{className:"cur-view-content d-block",onScroll:this.handleScroll,children:[this.state.isLoading&&(0,g.jsx)(R.Z,{}),!this.state.isLoading&&n&&(0,g.jsx)("div",{className:"error text-center mt-2",children:n}),!this.state.isLoading&&0===this.state.repoList.length&&i,!this.state.isLoading&&this.state.repoList.length>0&&(0,g.jsx)(Kn,{repoList:this.state.repoList,hasNextPage:this.state.hasNextPage,currentGroup:this.state.currentGroup,sortBy:this.state.sortBy,sortOrder:this.state.sortOrder,sortItems:this.sortItems,onItemUnshare:this.onItemUnshare,onItemDelete:this.onItemDelete,onItemDetails:this.onItemDetails,onItemRename:this.onItemRename,onMonitorRepo:this.onMonitorRepo})]})]}),this.state.isShowDetails&&(0,g.jsx)("div",{className:"cur-view-detail",children:(0,g.jsx)(Nt,{currentRepo:this.state.currentRepo,closeDetails:this.closeDetails})})]}),this.state.isCreateRepoDialogShow&&!this.state.isDepartmentGroup&&(0,g.jsx)(b.Z,{children:(0,g.jsx)(It,{libraryType:this.state.libraryType,onCreateToggle:this.onCreateRepoToggle,onCreateRepo:this.onCreateRepo})}),this.state.isCreateRepoDialogShow&&this.state.isDepartmentGroup&&(0,g.jsx)(It,{isAdmin:this.state.isAdmin,onCreateToggle:this.onCreateRepoToggle,onCreateRepo:this.onCreateRepo,libraryType:"department"}),this.state.showRenameGroupDialog&&(0,g.jsx)(Or,{showRenameGroupDialog:this.state.showRenameGroupDialog,toggleRenameGroupDialog:this.toggleRenameGroupDialog,loadGroup:this.loadGroup,groupID:this.props.groupID,onGroupChanged:this.props.onGroupChanged,currentGroupName:s.name}),this.state.showDismissGroupDialog&&(0,g.jsx)(Lr,{showDismissGroupDialog:this.state.showDismissGroupDialog,toggleDismissGroupDialog:this.toggleDismissGroupDialog,loadGroup:this.loadGroup,groupID:this.props.groupID,onGroupChanged:this.props.onGroupChanged}),this.state.showTransferGroupDialog&&(0,g.jsx)(Rr,{toggleTransferGroupDialog:this.toggleTransferGroupDialog,groupID:this.props.groupID,onGroupChanged:this.props.onGroupChanged}),this.state.showImportMembersDialog&&(0,g.jsx)(Er,{toggleImportMembersDialog:this.toggleImportMembersDialog,importMembersInBatch:this.importMembersInBatch}),this.state.showManageMembersDialog&&(0,g.jsx)(Wr,{toggleManageMembersDialog:this.toggleManageMembersDialog,groupID:this.props.groupID,onGroupChanged:this.props.onGroupChanged,isOwner:this.state.isOwner}),this.state.isLeaveGroupDialogOpen&&(0,g.jsx)(qr,{toggleLeaveGroupDialog:this.toggleLeaveGroupDialog,groupID:this.props.groupID,onGroupChanged:this.props.onGroupChanged})]})}}]),n}(a.Component),Kr=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){return(0,i.Z)(this,n),t.call(this,e)}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.onShowSidePanel,n=e.onSearchedClick;return(0,g.jsxs)("div",{className:"main-panel-north border-left-show",children:[(0,g.jsxs)("div",{className:"cur-view-toolbar",children:[(0,g.jsx)("span",{title:"Side Nav Menu",onClick:t,className:"sf2-icon-menu side-nav-toggle hidden-md-up d-md-none"}),u.Wz&&(0,g.jsxs)("div",{className:"operation",children:[(0,g.jsx)(p(),{query:"(min-width: 768px)",children:(0,g.jsxs)($.Z,{color:"btn btn-secondary operation-item",onClick:this.props.toggleAddGroupModal,children:[(0,g.jsx)("i",{className:"fas fa-plus-square text-secondary mr-1"}),(0,u.ih)("New Group")]})}),(0,g.jsx)(p(),{query:"(max-width: 767.8px)",children:(0,g.jsx)("span",{className:"sf2-icon-plus mobile-toolbar-icon",title:(0,u.ih)("New Group"),onClick:this.props.toggleAddGroupModal})})]})]}),(0,g.jsx)(Ee.Z,{searchPlaceholder:this.props.searchPlaceholder,onSearchedClick:n})]})}}]),n}(a.Component),Yr=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).handleGroupChange=function(e){var t=e.target.value;t.trim()?s.setState({isSubmitBtnActive:!0}):s.setState({isSubmitBtnActive:!1}),s.setState({groupName:t}),s.state.errorMsg&&s.setState({errorMsg:""})},s.handleSubmitGroup=function(){var e=s.state.groupName.trim();if(e){var t=(0,y.Z)(s);D.I.createGroup(e).then((function(e){t.props.onCreateGroup()})).catch((function(e){var t=m.c.getErrorMsg(e);s.setState({errorMsg:t})}))}else s.setState({errorMsg:(0,u.ih)("Name is required")});s.setState({groupName:""})},s.handleKeyDown=function(e){13===e.keyCode&&(s.handleSubmitGroup(),e.preventDefault())},s.state={groupName:"",errorMsg:"",isSubmitBtnActive:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){return(0,g.jsxs)(d.Z,{isOpen:this.props.showAddGroupModal,toggle:this.props.toggleAddGroupModal,autoFocus:!1,children:[(0,g.jsx)(X.Z,{toggle:this.props.toggleAddGroupModal,children:(0,u.ih)("New Group")}),(0,g.jsxs)(C.Z,{children:[(0,g.jsx)("label",{htmlFor:"groupName",children:(0,u.ih)("Name")}),(0,g.jsx)(re.Z,{type:"text",id:"groupName",value:this.state.groupName,onChange:this.handleGroupChange,onKeyDown:this.handleKeyDown,autoFocus:!0}),(0,g.jsx)("span",{className:"error",children:this.state.errorMsg})]}),(0,g.jsxs)(Q.Z,{children:[(0,g.jsx)($.Z,{color:"secondary",onClick:this.props.toggleAddGroupModal,children:(0,u.ih)("Cancel")}),(0,g.jsx)($.Z,{color:"primary",onClick:this.handleSubmitGroup,disabled:!this.state.isSubmitBtnActive,children:(0,u.ih)("Submit")})]})]})}}]),n}(a.Component),Xr=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onItemUnshare=function(e){var t=s.props.group;D.I.unshareRepoToGroup(e.repo_id,t.id).then((function(){var t=s.state.repoList.filter((function(t){return t.repo_id!==e.repo_id}));s.setState({repoList:t})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onItemDelete=function(e){var t=s.state.repoList.filter((function(t){return t.repo_id!==e.repo_id}));s.setState({repoList:t})},s.onItemRename=function(e,t){var n=s.props.group;D.I.renameGroupOwnedLibrary(n.id,e.repo_id,t).then((function(n){var i=s.state.repoList.map((function(n){return n.repo_id===e.repo_id&&(n.repo_name=t),n}));s.setState({repoList:i})})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t)}))},s.onMonitorRepo=function(e,t){var n=s.state.repoList.map((function(n){return n.repo_id===e.repo_id&&(n.monitored=t),n}));s.setState({repoList:n})},s.state={repoList:[]},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this.props.group.repos.map((function(e){return new Xe(e)}));this.setState({repoList:e})}},{key:"render",value:function(){var e=this.props.group,t=(0,g.jsx)("p",{className:"group-item-empty-tip",children:(0,u.ih)("No libraries")});return(0,g.jsxs)("div",{className:"group-list-panel",children:[(0,g.jsx)("h4",{className:"group-item-heading ellipsis",children:(0,g.jsx)("a",{href:"".concat(u.ze,"group/").concat(e.id,"/"),title:e.name,children:e.name})}),0===this.state.repoList.length?t:(0,g.jsx)(Kn,{isShowTableThread:!1,isShowRepoOwner:!1,currentGroup:this.props.group,repoList:this.state.repoList,onItemUnshare:this.onItemUnshare,onItemDelete:this.onItemDelete,onItemDetails:this.props.onItemDetails,onItemRename:this.onItemRename,onMonitorRepo:this.onMonitorRepo})]})}}]),n}(a.Component),Jr=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).listGroups=function(){D.I.listGroups(!0).then((function(e){var t=e.data.map((function(e){return new S(e)}));s.setState({isLoading:!1,groupList:t.sort((function(e,t){return e.name.toLowerCase()'+m.c.HTMLescape(this.props.accepter)+"",i=(0,u.ih)("Are you sure to revoke access of user {placeholder} ?").replace("{placeholder}",n);return(0,g.jsxs)(d.Z,{isOpen:!0,toggle:e,children:[(0,g.jsx)(X.Z,{toggle:e,children:(0,u.ih)("Revoke Access")}),(0,g.jsx)(C.Z,{children:(0,g.jsx)("p",{dangerouslySetInnerHTML:{__html:i}})}),(0,g.jsxs)(Q.Z,{children:[(0,g.jsx)($.Z,{color:"secondary",onClick:e,children:(0,u.ih)("Cancel")}),(0,g.jsx)($.Z,{className:"submit-btn",color:"primary",onClick:this.onRevokeInvitation,disabled:t,children:t?(0,g.jsx)(R.Z,{}):(0,u.ih)("Submit")})]})]})}}]),n}(a.Component),no=to,io=(n(94817),function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).toggleOpMenu=function(){s.setState({isOpMenuOpen:!s.state.isOpMenuOpen})},s.onMouseEnter=function(){s.setState({isOpIconShown:!0})},s.onMouseLeave=function(){s.setState({isOpIconShown:!1})},s.deleteItem=function(e){e.preventDefault(),s.setState({isOpIconShown:!1});var t=s.props.invitation.token;D.I.deleteInvitation(t).then((function(e){s.setState({deleted:!0}),w.Z.success((0,u.ih)("Successfully deleted 1 item."))})).catch((function(e){var t=m.c.getErrorMsg(e);w.Z.danger(t),s.setState({isOpIconShown:!0})}))},s.revokeItem=function(){s.setState({deleted:!0})},s.toggleRevokeDialog=function(e){e.preventDefault(),s.setState({isRevokeDialogOpen:!s.state.isRevokeDialogOpen})},s.state={isOpIconShown:!1,isOpMenuOpen:!1,isRevokeDialogOpen:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.state,t=e.isOpIconShown,n=e.deleted,i=e.isRevokeDialogOpen;if(n)return null;var s=this.props.invitation,r=(0,g.jsxs)("tr",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onMouseEnter,tabIndex:"0",children:[(0,g.jsx)("td",{children:s.accepter}),(0,g.jsx)("td",{children:A()(s.invite_time).format("YYYY-MM-DD")}),(0,g.jsx)("td",{children:A()(s.expire_time).format("YYYY-MM-DD")}),(0,g.jsx)("td",{children:s.accept_time&&(0,g.jsx)("i",{className:"sf2-icon-tick invite-accept-icon"})}),(0,g.jsx)("td",{children:t&&(s.accept_time?(0,g.jsx)("a",{href:"#",role:"button",className:"action-icon sf3-font sf3-font-cancel-invitation",title:(0,u.ih)("Revoke Access"),"aria-label":(0,u.ih)("Revoke Access"),onClick:this.toggleRevokeDialog}):(0,g.jsx)("a",{href:"#",role:"button",className:"action-icon sf2-icon-x3",title:(0,u.ih)("Delete"),"aria-label":(0,u.ih)("Delete"),onClick:this.deleteItem}))})]}),o=(0,g.jsxs)("tr",{children:[(0,g.jsxs)("td",{children:[s.accepter,(0,g.jsx)("br",{}),(0,g.jsxs)("span",{className:"item-meta-info",children:[A()(s.invite_time).format("YYYY-MM-DD"),(0,g.jsxs)("span",{className:"small",children:["(",(0,u.ih)("Invite Time"),")"]})]}),(0,g.jsxs)("span",{className:"item-meta-info",children:[A()(s.expire_time).format("YYYY-MM-DD"),(0,g.jsxs)("span",{className:"small",children:["(",(0,u.ih)("Expiration"),")"]})]}),(0,g.jsx)("span",{className:"item-meta-info",children:s.accept_time&&(0,u.ih)("Accepted")})]}),(0,g.jsx)("td",{children:(0,g.jsxs)(U.Z,{isOpen:this.state.isOpMenuOpen,toggle:this.toggleOpMenu,children:[(0,g.jsx)(z.Z,{tag:"i",className:"sf-dropdown-toggle fa fa-ellipsis-v ml-0",title:(0,u.ih)("More operations"),"aria-label":(0,u.ih)("More operations"),"data-toggle":"dropdown","aria-expanded":this.state.isOpMenuOpen}),(0,g.jsxs)("div",{className:this.state.isOpMenuOpen?"":"d-none",onClick:this.toggleOpMenu,children:[(0,g.jsx)("div",{className:"mobile-operation-menu-bg-layer"}),(0,g.jsx)("div",{className:"mobile-operation-menu",children:s.accept_time?(0,g.jsx)(G.Z,{className:"mobile-menu-item",onClick:this.toggleRevokeDialog,children:(0,u.ih)("Revoke Access")}):(0,g.jsx)(G.Z,{className:"mobile-menu-item",onClick:this.deleteItem,children:(0,u.ih)("Delete")})})]})]})})]});return(0,g.jsxs)(a.Fragment,{children:[this.props.isDesktop?r:o,i&&(0,g.jsx)(no,{accepter:s.accepter,token:s.token,revokeInvitation:this.revokeItem,toggleDialog:this.toggleRevokeDialog})]})}}]),n}(a.Component)),so=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){return(0,i.Z)(this,n),t.call(this,e)}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props.data,t=e.loading,n=e.errorMsg,i=e.invitationsList;if(t)return(0,g.jsx)(R.Z,{});if(n)return(0,g.jsx)("p",{className:"error text-center mt-2",children:n});if(!i.length)return(0,g.jsxs)(O.Z,{children:[(0,g.jsx)("h2",{children:(0,u.ih)("No guest invitations")}),(0,g.jsx)("p",{children:(0,u.ih)('You have not invited any guests yet. A guest can access shared libraries through the web interface allowing more efficient ways to collaborate than through links. You can invite a guest by clicking the "Invite Guest" button in the menu bar.')})]});var s=m.c.isDesktop();return(0,g.jsxs)("table",{className:"table-hover".concat(s?"":" table-thead-hidden"),children:[(0,g.jsx)("thead",{children:s?(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"25%",children:(0,u.ih)("Email")}),(0,g.jsx)("th",{width:"20%",children:(0,u.ih)("Invite Time")}),(0,g.jsx)("th",{width:"20%",children:(0,u.ih)("Expiration")}),(0,g.jsx)("th",{width:"18%",children:(0,u.ih)("Accepted")}),(0,g.jsx)("th",{width:"7%"})]}):(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"92%"}),(0,g.jsx)("th",{width:"8%"})]})}),(0,g.jsx)("tbody",{children:i.map((function(e,t){return(0,g.jsx)(io,{isDesktop:s,invitation:e},t)}))})]})}}]),n}(a.Component),ro=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onInvitePeople=function(e){e.push.apply(e,s.state.invitationsList),s.setState({invitationsList:e})},s.toggleInvitePeopleDialog=function(){s.setState({isInvitePeopleDialogOpen:!s.state.isInvitePeopleDialogOpen})},s.state={loading:!0,errorMsg:"",invitationsList:[],isInvitePeopleDialogOpen:!1},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this;D.I.listInvitations().then((function(t){e.setState({invitationsList:t.data,loading:!1})})).catch((function(t){e.setState({loading:!1,errorMsg:m.c.getErrorMsg(t,!0)})}))}},{key:"render",value:function(){return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(Qr,{onShowSidePanel:this.props.onShowSidePanel,onSearchedClick:this.props.onSearchedClick,toggleInvitePeopleDialog:this.toggleInvitePeopleDialog}),(0,g.jsx)("div",{className:"main-panel-center flex-row",children:(0,g.jsxs)("div",{className:"cur-view-container",children:[(0,g.jsx)("div",{className:"cur-view-path",children:(0,g.jsx)("h3",{className:"sf-heading",children:(0,u.ih)("Invite Guest")})}),(0,g.jsx)("div",{className:"cur-view-content",children:(0,g.jsx)(so,{data:this.state})})]})}),this.state.isInvitePeopleDialogOpen&&(0,g.jsx)(eo,{onInvitePeople:this.onInvitePeople,toggleDialog:this.toggleInvitePeopleDialog})]})}}]),n}(a.Component),oo=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).inputNewName=function(e){event.target.value.trim()?s.setState({isSubmitBtnActive:!0}):s.setState({isSubmitBtnActive:!1}),s.setState({name:e.target.value})},s.handleKeyDown=function(e){"Enter"===e.key&&s.handleSubmit()},s.handleSubmit=function(){var e=s.state,t=e.isExist,n=e.name,i=e.repoID;s.props.addWiki(t,n,i),s.props.toggleCancel()},s.toggle=function(){s.props.toggleCancel()},s.state={isExist:!1,name:"",repoID:"",isSubmitBtnActive:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){return(0,g.jsxs)(d.Z,{isOpen:!0,autoFocus:!1,toggle:this.toggle,children:[(0,g.jsx)(X.Z,{toggle:this.toggle,children:(0,u.ih)("New Wiki")}),(0,g.jsxs)(C.Z,{children:[(0,g.jsx)("label",{className:"form-label",children:(0,u.ih)("Name")}),(0,g.jsx)(re.Z,{onKeyDown:this.handleKeyDown,autoFocus:!0,value:this.state.name,onChange:this.inputNewName})]}),(0,g.jsxs)(Q.Z,{children:[(0,g.jsx)($.Z,{color:"secondary",onClick:this.toggle,children:(0,u.ih)("Cancel")}),(0,g.jsx)($.Z,{color:"primary",onClick:this.handleSubmit,disabled:!this.state.isSubmitBtnActive,children:(0,u.ih)("Submit")})]})]})}}]),n}(a.Component),ao=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onChange=function(e){s.setState({repoID:e.repo_id})},s.handleSubmit=function(){var e=s.state.repoID;s.props.addWiki(e),s.props.toggleCancel()},s.toggle=function(){s.props.toggleCancel()},s.state={repos:[],repoID:""},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this;D.I.listRepos().then((function(t){var n=t.data.repos.filter((function(e){switch(e.type){case"mine":return!e.encrypted;case"shared":return!e.encrypted&&e.is_admin;default:return!e.encrypted&&!t.data.repos.some((function(t){return t.type!=e.type&&t.repo_id==e.repo_id}))}})).map((function(e){return new Xe(e)}));n=m.c.sortRepos(n,"name","asc"),e.setState({repos:n})}))}},{key:"render",value:function(){var e=this;return(0,g.jsxs)(d.Z,{isOpen:!0,toggle:this.toggle,children:[(0,g.jsx)(X.Z,{toggle:this.toggle,children:(0,u.ih)("Publish a Library")}),(0,g.jsx)(C.Z,{className:"dialog-list-container",children:(0,g.jsxs)("table",{children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{width:"6%"}),(0,g.jsx)("th",{width:"9%"}),(0,g.jsx)("th",{width:"55%",children:(0,u.ih)("Name")}),(0,g.jsx)("th",{width:"30%",children:(0,u.ih)("Last Update")})]})}),(0,g.jsx)("tbody",{children:this.state.repos.map((function(t,n){return(0,g.jsxs)("tr",{children:[(0,g.jsx)("td",{className:"text-center",children:(0,g.jsx)("input",{type:"radio",className:"vam",name:"repo",value:t.repo_id,onChange:e.onChange.bind(e,t)})}),(0,g.jsx)("td",{className:"text-center",children:(0,g.jsx)("img",{src:m.c.getLibIconUrl(t,!1),width:"24",title:m.c.getLibIconTitle(t),alt:m.c.getLibIconTitle(t)})}),(0,g.jsx)("td",{children:t.repo_name}),(0,g.jsx)("td",{children:A()(t.last_modified).fromNow()})]},n)}))})]})}),(0,g.jsxs)(Q.Z,{children:[(0,g.jsx)($.Z,{color:"secondary",onClick:this.toggle,children:(0,u.ih)("Cancel")}),this.state.repoID?(0,g.jsx)($.Z,{color:"primary",onClick:this.handleSubmit,children:(0,u.ih)("Submit")}):(0,g.jsx)($.Z,{color:"primary",disabled:!0,children:(0,u.ih)("Submit")})]})]})}}]),n}(a.Component),lo=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var s=arguments.length,r=new Array(s),o=0;o-1)&&(n=s.generatorPrefix(e,t)),s.setState({currentTab:e,pathPrefix:n},(function(){var e=s.state,t=e.currentTab,n=e.pathPrefix;window.history.replaceState({currentTab:t,pathPrefix:n},null)})),m.c.isDesktop()||s.state.isSidePanelClosed||s.setState({isSidePanelClosed:!0})},s.generatorPrefix=function(e,t){var n=[];if(t){var i={url:u.ze+"groups/",showName:"Groups",name:"groups",id:null},r={url:u.ze+"group/"+t+"/",showName:e,name:e,id:t};n.push(i),n.push(r)}else{var o={url:u.ze+e+"/",showName:s.getTabShowName(e),name:e,id:null};n.push(o)}return n},s.getTabShowName=function(e){return"my-libs"===e?"Libraries":"shared-libs"===e?"Shared with me":"org"===e?"Shared with all":void 0},s.toggleSidePanel=function(){s.setState({isSidePanelClosed:!s.state.isSidePanelClosed})},s.state={isOpen:!1,isSidePanelClosed:!1,draftCounts:0,draftList:[],isLoadingDraft:!0,currentTab:"/",pathPrefix:[]},s.dirViewPanels=["my-libs","shared-libs","org"],window.onpopstate=s.onpopstate,s}return(0,s.Z)(n,[{key:"UNSAFE_componentWillMount",value:function(){m.c.isDesktop()||this.setState({isSidePanelClosed:!0})}},{key:"componentDidMount",value:function(){this.navigateClientUrlToLib();var e=window.location.href.split("/");u.NT&&this.getDrafts(),this.setState({currentTab:e[e.length-2]})}},{key:"render",value:function(){var e=this.state,t=e.currentTab,n=e.isSidePanelClosed,i=u.cA?(0,g.jsx)(An,{path:u.ze,onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick}):(0,g.jsx)(bo,{path:u.ze,onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick});return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(v,{}),(0,g.jsxs)("div",{id:"main",children:[(0,g.jsx)(Z,{isSidePanelClosed:this.state.isSidePanelClosed,onCloseSidePanel:this.onCloseSidePanel,currentTab:t,tabItemClick:this.tabItemClick,draftCounts:this.state.draftCounts}),(0,g.jsx)(_,{children:(0,g.jsxs)(c.F0,{className:"reach-router",children:[i,(0,g.jsx)(yo,{path:u.ze+"dashboard",onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick}),(0,g.jsx)(Do,{path:u.ze+"my-activities",onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick}),(0,g.jsx)(wo,{path:u.ze+"drafts",onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick,children:(0,g.jsx)(V,{path:"/",getDrafts:this.getDrafts,isLoadingDraft:this.state.isLoadingDraft,draftList:this.state.draftList,updateDraftsList:this.updateDraftsList})}),(0,g.jsx)(So,{path:u.ze+"starred",onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick}),(0,g.jsx)(jo,{path:u.ze+"linked-devices",onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick}),(0,g.jsx)(Io,{path:u.ze+"share-admin-libs",onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick}),(0,g.jsx)(Mo,{path:u.ze+"share-admin-folders",onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick}),(0,g.jsx)(He,{path:u.ze+"share-admin-share-links",onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick}),(0,g.jsx)(Ke,{path:u.ze+"share-admin-upload-links",onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick}),(0,g.jsx)(bo,{path:u.ze+"shared-libs",onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick}),(0,g.jsx)(Co,{path:u.ze+"shared-with-ocm",onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick}),(0,g.jsx)(ko,{path:u.ze+"ocm-via-webdav",onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick}),(0,g.jsx)(An,{path:u.ze+"my-libs",onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick}),(0,g.jsx)(Gn,{path:u.ze+"my-libs/deleted/",onSearchedClick:this.onSearchedClick}),(0,g.jsx)(Fr,{path:u.ze+"library/:repoID/*",pathPrefix:this.state.pathPrefix,onMenuClick:this.onShowSidePanel,onTabNavClick:this.tabItemClick}),(0,g.jsx)(jt,{path:u.ze+"remote-library/:providerID/:repoID/*",pathPrefix:this.state.pathPrefix,onMenuClick:this.onShowSidePanel,onTabNavClick:this.tabItemClick}),(0,g.jsx)(Jr,{path:u.ze+"groups",onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick}),(0,g.jsx)(Vr,{path:u.ze+"group/:groupID",onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick,onTabNavClick:this.tabItemClick,onGroupChanged:this.onGroupChanged}),(0,g.jsx)(go,{path:u.ze+"published",onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick}),(0,g.jsx)(Xn,{path:u.ze+"org/",onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick,onTabNavClick:this.tabItemClick}),(0,g.jsx)(ro,{path:u.ze+"invitations/",onShowSidePanel:this.onShowSidePanel,onSearchedClick:this.onSearchedClick})]})}),(0,g.jsx)(p(),{query:"(max-width: 767.8px)",children:(0,g.jsx)(d.Z,{zIndex:"1030",isOpen:!n,toggle:this.toggleSidePanel,contentClassName:"d-none"})})]})]})}}]),n}(a.Component);l.render((0,g.jsx)(No,{}),document.getElementById("wrapper"))},30560:function(e,t,n){"use strict";var i=n(1413),s=n(15671),r=n(43144),o=n(60136),a=n(29388),l=n(47313),c=n(29389),h=n(78655),p=n(46417),d=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,s.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o2&&void 0!==arguments[2]?arguments[2]:window;"function"===typeof window.CustomEvent?n=new window.CustomEvent(e,{detail:t}):(n=document.createEvent("CustomEvent")).initCustomEvent(e,!1,!0,t),i&&(i.dispatchEvent(n),s()(r.h,t))}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;l(o,s()({},e,{type:o}),t)}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;l(a,s()({},e,{type:a}),t)}},92161:function(e,t,n){"use strict";var i=n(15671),s=n(43144),r=n(60136),o=n(29388),a=n(47313),l=n(18760),c=n(30426),h=n(30171),p=n(83854),d=n(46417),u=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).registerHandlers=function(){document.addEventListener("mousedown",s.handleOutsideClick),document.addEventListener("touchstart",s.handleOutsideClick),document.addEventListener("scroll",s.handleHide),document.addEventListener("contextmenu",s.handleHide),document.addEventListener("keydown",s.handleKeyNavigation),window.addEventListener("resize",s.handleHide)},s.unregisterHandlers=function(){document.removeEventListener("mousedown",s.handleOutsideClick),document.removeEventListener("touchstart",s.handleOutsideClick),document.removeEventListener("scroll",s.handleHide),document.removeEventListener("contextmenu",s.handleHide),document.removeEventListener("keydown",s.handleKeyNavigation),window.removeEventListener("resize",s.handleHide)},s.handleShow=function(e){if(e.detail.id===s.props.id){var t=e.detail.position,n=t.x,i=t.y,r=e.detail,o=r.currentObject,a=r.menuList;s.setState({isVisible:!0,x:n,y:i,currentObject:o,menuList:a}),s.registerHandlers(),(0,h._N)(s.props.onShowMenu,e)}},s.handleHide=function(e){!s.state.isVisible||e.detail&&e.detail.id&&e.detail.id!==s.props.id||(s.unregisterHandlers(),s.setState({isVisible:!1}),(0,h._N)(s.props.onHideMenu,e))},s.handleOutsideClick=function(e){s.menu.contains(e.target)||(0,c.SC)()},s.handleMouseLeave=function(e){e.preventDefault(),s.props.hideOnLeave&&(0,c.SC)()},s.handleContextMenu=function(e){s.handleHide(e)},s.handleKeyNavigation=function(e){!1!==s.state.isVisible&&(e.preventDefault(),s.hideMenu(e))},s.hideMenu=function(e){27!==e.keyCode&&13!==e.keyCode||(0,c.SC)()},s.getMenuPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={top:t,left:e};if(!s.menu)return n;var i=window,r=i.innerWidth,o=i.innerHeight,a=s.menu.getBoundingClientRect();return t+a.height>o&&(n.top-=a.height),e+a.width>r&&(n.left-=a.width),n.top<0&&(n.top=a.height0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={top:t,left:e};if(!s.menu)return n;var i=window,r=i.innerWidth,o=i.innerHeight,a=s.menu.getBoundingClientRect();return n.left=e-a.width,t+a.height>o&&(n.top-=a.height),n.left<0&&(n.left+=a.width),n.top<0&&(n.top=a.heightr&&(n.left=a.width1?t-1:0),i=1;i0){var r=s.state.childName.substring(0,e),o=s.state.childName.substring(e);s.setState({childName:r+"(draft)"+o,isMarkdownDraft:!s.state.isMarkdownDraft})}else 0===e?s.setState({childName:"(draft)"+s.state.childName,isMarkdownDraft:!s.state.isMarkdownDraft}):s.setState({isMarkdownDraft:!s.state.isMarkdownDraft})},s.checkDuplicatedName=function(){return s.props.checkDuplicatedName(s.state.childName)},s.onAfterModelOpened=function(){s.newInput.current&&(s.newInput.current.focus(),s.newInput.current.setSelectionRange(0,0))},s.toggleMarkSdocDraft=function(e){s.setState({isSdocDraft:e.target.checked})},s.state={parentPath:"",childName:e.fileType||"",isMarkdownDraft:!1,isSdocDraft:!1,errMessage:"",isSubmitBtnActive:!!e.fileType.slice(0,-5)},s.newInput=a.createRef(),s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this.props.parentPath;"/"===e[e.length-1]?this.setState({parentPath:e}):this.setState({parentPath:e+"/"})}},{key:"render",value:function(){var e=this.props.toggleDialog;return(0,D.jsxs)(l.Z,{isOpen:!0,toggle:e,onOpened:this.onAfterModelOpened,children:[(0,D.jsx)(c.Z,{toggle:e,children:(0,x.ih)("New File")}),(0,D.jsxs)(h.Z,{children:[(0,D.jsx)(p.Z,{children:(0,D.jsxs)(d.Z,{children:[(0,D.jsx)(u.Z,{for:"fileName",children:(0,x.ih)("Name")}),(0,D.jsx)(m.Z,{id:"fileName",onKeyDown:this.handleKeyDown,innerRef:this.newInput,value:this.state.childName,onChange:this.handleChange})]})}),this.state.errMessage&&(0,D.jsx)(g.Z,{color:"danger",className:"mt-2",children:this.state.errMessage})]}),(0,D.jsxs)(f.Z,{children:[(0,D.jsx)(v.Z,{color:"secondary",onClick:e,children:(0,x.ih)("Cancel")}),(0,D.jsx)(v.Z,{color:"primary",onClick:this.handleSubmit,disabled:!this.state.isSubmitBtnActive,children:(0,x.ih)("Submit")})]})]})}}]),n}(a.Component);t.Z=w},30166:function(e,t,n){"use strict";var i=n(15671),s=n(43144),r=n(60136),o=n(29388),a=n(47313),l=n(42995),c=n(12756),h=n(12213),p=n(74073),d=n(54105),u=n(85951),m=n(5684),g=n(93869),f=n(7764),v=n(21303),x=n(61805),y=n(83854),D=n(46417),w=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).handleChange=function(e){e.target.value.trim()?s.setState({isSubmitBtnActive:!0}):s.setState({isSubmitBtnActive:!1}),s.setState({childName:e.target.value})},s.handleSubmit=function(){if(s.state.isSubmitBtnActive){var e=s.state.childName;if(s.checkDuplicatedName()){var t=(0,x.ih)('The name "{name}" is already taken. Please choose a different name.');t=t.replace("{name}",y.c.HTMLescape(e)),s.setState({errMessage:t})}else{var n=s.state.parentPath+e;s.props.onAddFolder(n)}}},s.handleKeyDown=function(e){"Enter"===e.key&&(s.handleSubmit(),e.preventDefault())},s.toggle=function(){s.props.addFolderCancel()},s.checkDuplicatedName=function(){return s.props.checkDuplicatedName(s.state.childName)},s.state={parentPath:"",childName:"",errMessage:"",isSubmitBtnActive:!1},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this.props.parentPath;"/"===e[e.length-1]?this.setState({parentPath:e}):this.setState({parentPath:e+"/"})}},{key:"render",value:function(){return(0,D.jsxs)(l.Z,{isOpen:!0,toggle:this.toggle,autoFocus:!1,children:[(0,D.jsx)(c.Z,{toggle:this.toggle,children:(0,x.ih)("New Folder")}),(0,D.jsxs)(h.Z,{children:[(0,D.jsx)(p.Z,{children:(0,D.jsxs)(d.Z,{children:[(0,D.jsx)(u.Z,{for:"folderName",children:(0,x.ih)("Name")}),(0,D.jsx)(m.Z,{id:"folderName",value:this.state.childName,onKeyDown:this.handleKeyDown,onChange:this.handleChange,autoFocus:!0})]})}),this.state.errMessage&&(0,D.jsx)(g.Z,{color:"danger",className:"mt-2",children:this.state.errMessage})]}),(0,D.jsxs)(f.Z,{children:[(0,D.jsx)(v.Z,{color:"secondary",onClick:this.toggle,children:(0,x.ih)("Cancel")}),(0,D.jsx)(v.Z,{color:"primary",onClick:this.handleSubmit,disabled:!this.state.isSubmitBtnActive,children:(0,x.ih)("Submit")})]})]})}}]),n}(a.Component);t.Z=w},40207:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var i=n(15671),s=n(43144),r=n(60136),o=n(29388),a=n(47313),l=n(61805),c=n(75192),h=n.n(c),p=n(9284),d=n.n(p);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function m(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";var n=e;return t&&Object.keys(t).forEach((function(e){n=n.replace(e,t[e])})),n}function M(){return"undefined"!==typeof n.g.window?n.g.window.innerWidth:0}function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.g.window.self,t=e.document.referrer;if(e===n.g.window.top||!t)return e;var i=function(e){return e.match(/(.*\/\/.*?)(\/|$)/)[1]};return i(e.location.href)===i(t)?N(e.parent):e}var Z=300,P=27,_=37,T=39,F=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(o,e);var t,i,s,r=w(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),f(D(t=r.call(this,e)),"handleWheel",(function(e){e.preventDefault()})),t.state={isClosing:!e.animationDisabled,shouldAnimate:!1,zoomLevel:0,offsetX:0,offsetY:0,loadErrorStatus:{},rotateDeg:0},t.outerEl=a.createRef(),t.zoomInBtn=a.createRef(),t.zoomOutBtn=a.createRef(),t.caption=a.createRef(),t.closeIfClickInner=t.closeIfClickInner.bind(D(t)),t.handleImageDoubleClick=t.handleImageDoubleClick.bind(D(t)),t.handleImageClick=t.handleImageClick.bind(D(t)),t.handleImageMouseWheel=t.handleImageMouseWheel.bind(D(t)),t.handleKeyInput=t.handleKeyInput.bind(D(t)),t.handleMouseUp=t.handleMouseUp.bind(D(t)),t.handleMouseDown=t.handleMouseDown.bind(D(t)),t.handleMouseMove=t.handleMouseMove.bind(D(t)),t.handleOuterMousewheel=t.handleOuterMousewheel.bind(D(t)),t.handleTouchStart=t.handleTouchStart.bind(D(t)),t.handleTouchMove=t.handleTouchMove.bind(D(t)),t.handleTouchEnd=t.handleTouchEnd.bind(D(t)),t.handlePointerEvent=t.handlePointerEvent.bind(D(t)),t.handleCaptionMousewheel=t.handleCaptionMousewheel.bind(D(t)),t.handleWindowResize=t.handleWindowResize.bind(D(t)),t.handleZoomInButtonClick=t.handleZoomInButtonClick.bind(D(t)),t.handleZoomOutButtonClick=t.handleZoomOutButtonClick.bind(D(t)),t.requestClose=t.requestClose.bind(D(t)),t.requestMoveNext=t.requestMoveNext.bind(D(t)),t.requestMovePrev=t.requestMovePrev.bind(D(t)),t.rotateImage=t.rotateImage.bind(D(t)),t}return t=o,i=[{key:"UNSAFE_componentWillMount",value:function(){this.timeouts=[],this.currentAction=0,this.eventsSource=0,this.pointerList=[],this.preventInnerClose=!1,this.preventInnerCloseTimeout=null,this.keyPressed=!1,this.imageCache={},this.lastKeyDownTime=0,this.resizeTimeout=null,this.wheelActionTimeout=null,this.resetScrollTimeout=null,this.scrollX=0,this.scrollY=0,this.moveStartX=0,this.moveStartY=0,this.moveStartOffsetX=0,this.moveStartOffsetY=0,this.swipeStartX=0,this.swipeStartY=0,this.swipeEndX=0,this.swipeEndY=0,this.pinchTouchList=null,this.pinchDistance=0,this.keyCounter=0,this.moveRequested=!1,this.props.animationDisabled||this.setState({isClosing:!1})}},{key:"componentDidMount",value:function(){var e=this;this.windowContext=N(),this.listeners={resize:this.handleWindowResize,mouseup:this.handleMouseUp,touchend:this.handleTouchEnd,touchcancel:this.handleTouchEnd,pointerdown:this.handlePointerEvent,pointermove:this.handlePointerEvent,pointerup:this.handlePointerEvent,pointercancel:this.handlePointerEvent},Object.keys(this.listeners).forEach((function(t){e.windowContext.addEventListener(t,e.listeners[t])})),document.addEventListener("wheel",this.handleWheel,{passive:!1}),this.loadAllImages()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this,n=!1,i={},s={};this.getSrcTypes().forEach((function(r){t.props[r.name]!==e[r.name]&&(n=!0,i[t.props[r.name]]=!0,s[e[r.name]]=!0)})),(n||this.moveRequested)&&(Object.keys(i).forEach((function(e){!(e in s)&&e in t.imageCache&&(t.imageCache[e].loaded=!1)})),this.moveRequested=!1,this.loadAllImages(e))}},{key:"shouldComponentUpdate",value:function(){return!this.moveRequested}},{key:"componentWillUnmount",value:function(){var e=this;this.didUnmount=!0,Object.keys(this.listeners).forEach((function(t){e.windowContext.removeEventListener(t,e.listeners[t])})),document.removeEventListener("wheel",this.handleWheel,{passive:!1}),this.timeouts.forEach((function(e){return clearTimeout(e)}))}},{key:"setTimeout",value:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){var n=this,i=setTimeout((function(){n.timeouts=n.timeouts.filter((function(e){return e!==i})),e()}),t);return this.timeouts.push(i),i}))},{key:"setPreventInnerClose",value:function(){var e=this;this.preventInnerCloseTimeout&&this.clearTimeout(this.preventInnerCloseTimeout),this.preventInnerClose=!0,this.preventInnerCloseTimeout=this.setTimeout((function(){e.preventInnerClose=!1,e.preventInnerCloseTimeout=null}),100)}},{key:"getBestImageForType",value:function(e){var t=this.props[e],n={};if(this.isImageLoaded(t))n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height);else{if(!this.isImageLoaded(this.props["".concat(e,"Thumbnail")]))return null;t=this.props["".concat(e,"Thumbnail")],n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height,!0)}return{src:t,height:this.imageCache[t].height,width:this.imageCache[t].width,targetHeight:n.height,targetWidth:n.width}}},{key:"getFitSizes",value:function(e,t,n){var i=this.getLightboxRect(),s=i.height-2*this.props.imagePadding,r=i.width-2*this.props.imagePadding;return n||(s=Math.min(s,t),r=Math.min(r,e)),r/s>e/t?{width:e*s/t,height:s}:{width:r,height:t*r/e}}},{key:"getMaxOffsets",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel,t=this.getBestImageForType("mainSrc");if(null===t)return{maxX:0,minX:0,maxY:0,minY:0};var n=this.getLightboxRect(),i=this.getZoomMultiplier(e),s=0,r=0;return{maxX:s=i*t.width-n.width<0?(n.width-i*t.width)/2:(i*t.width-n.width)/2,maxY:r=i*t.height-n.height<0?(n.height-i*t.height)/2:(i*t.height-n.height)/2,minX:-1*s,minY:-1*r}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i".concat(this.keyCounter)},{name:"mainSrcThumbnail",keyEnding:"t".concat(this.keyCounter)},{name:"nextSrc",keyEnding:"i".concat(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t".concat(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i".concat(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t".concat(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel;return Math.pow(1.007,e)}},{key:"getLightboxRect",value:function(){return this.outerEl.current?this.outerEl.current.getBoundingClientRect():{width:M(),height:"undefined"!==typeof n.g.window?n.g.window.innerHeight:0,top:0,right:0,bottom:0,left:0}}},{key:"clearTimeout",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){this.timeouts=this.timeouts.filter((function(t){return t!==e})),clearTimeout(e)}))},{key:"changeZoom",value:function(e,t,n){if(this.props.enableZoom){var i=Math.max(0,Math.min(Z,e));if(i!==this.state.zoomLevel)if(0!==i){var s=this.getBestImageForType("mainSrc");if(null!==s){var r=this.getZoomMultiplier(),o=this.getZoomMultiplier(i),a=this.getLightboxRect(),l="undefined"!==typeof t?t-a.left:a.width/2,c="undefined"!==typeof n?n-a.top:a.height/2,h=(a.width-s.width*r)/2,p=(a.height-s.height*r)/2,d=l-(l-(h-this.state.offsetX))/r*o,u=c-(c-(p-this.state.offsetY))/r*o,m=(a.width-s.width*o)/2-d,g=(a.height-s.height*o)/2-u;if(3!==this.currentAction){var f=this.getMaxOffsets();this.state.zoomLevel>i&&(m=Math.max(f.minX,Math.min(f.maxX,m)),g=Math.max(f.minY,Math.min(f.maxY,g)))}this.setState({zoomLevel:i,offsetX:m,offsetY:g})}}else this.setState({zoomLevel:i,offsetX:0,offsetY:0})}}},{key:"closeIfClickInner",value:function(e){!this.preventInnerClose&&e.target.className.search(/\bril-inner\b/)>-1&&this.requestClose(e)}},{key:"handleKeyInput",value:function(e){if(e.stopPropagation(),!this.isAnimating())if("keyup"!==e.type){var t=e.which||e.keyCode,n=new Date;if(!(n.getTime()-this.lastKeyDownTime=Math.abs(e.deltaX)){if(e.stopPropagation(),Math.abs(e.deltaY)<1)return;this.scrollX=0,this.scrollY+=e.deltaY,this.changeZoom(this.state.zoomLevel-e.deltaY,e.clientX,e.clientY)}}else if(Math.abs(e.deltaY)>Math.abs(e.deltaX)){var t=this.state.offsetY+e.deltaY;t=t<0?0:t,this.setState({offsetY:t})}else{var n=this.state.offsetX+e.deltaX;n=n<0?0:n,this.setState({offsetX:n})}}},{key:"handleImageDoubleClick",value:function(e){this.state.zoomLevel>0?this.changeZoom(0,e.clientX,e.clientY):this.changeZoom(this.state.zoomLevel+100,e.clientX,e.clientY)}},{key:"handleImageClick",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"shouldHandleEvent",value:function(e){if(this.eventsSource===e)return!0;if(0===this.eventsSource)return this.eventsSource=e,!0;switch(e){case 1:default:return!1;case 2:return this.eventsSource=2,this.filterPointersBySource(),!0;case 3:return 1===this.eventsSource&&(this.eventsSource=3,this.filterPointersBySource(),!0)}}},{key:"addPointer",value:function(e){this.pointerList.push(e)}},{key:"removePointer",value:function(e){this.pointerList=this.pointerList.filter((function(t){return t.id!==e.id}))}},{key:"filterPointersBySource",value:function(){var e=this;this.pointerList=this.pointerList.filter((function(t){return t.source===e.eventsSource}))}},{key:"handleMouseDown",value:function(e){this.shouldHandleEvent(1)&&o.isTargetMatchImage(e.target)&&(this.addPointer(o.parseMouseEvent(e)),this.multiPointerStart(e))}},{key:"handleMouseMove",value:function(e){this.shouldHandleEvent(1)&&this.multiPointerMove(e,[o.parseMouseEvent(e)])}},{key:"handleMouseUp",value:function(e){this.shouldHandleEvent(1)&&(this.removePointer(o.parseMouseEvent(e)),this.multiPointerEnd(e))}},{key:"handlePointerEvent",value:function(e){if(this.shouldHandleEvent(3))switch(e.type){case"pointerdown":o.isTargetMatchImage(e.target)&&(this.addPointer(o.parsePointerEvent(e)),this.multiPointerStart(e));break;case"pointermove":this.multiPointerMove(e,[o.parsePointerEvent(e)]);break;case"pointerup":case"pointercancel":this.removePointer(o.parsePointerEvent(e)),this.multiPointerEnd(e)}}},{key:"handleTouchStart",value:function(e){var t=this;this.shouldHandleEvent(2)&&o.isTargetMatchImage(e.target)&&([].forEach.call(e.changedTouches,(function(e){return t.addPointer(o.parseTouchPointer(e))})),this.multiPointerStart(e))}},{key:"handleTouchMove",value:function(e){this.shouldHandleEvent(2)&&this.multiPointerMove(e,[].map.call(e.changedTouches,(function(e){return o.parseTouchPointer(e)})))}},{key:"handleTouchEnd",value:function(e){var t=this;this.shouldHandleEvent(2)&&([].map.call(e.changedTouches,(function(e){return t.removePointer(o.parseTouchPointer(e))})),this.multiPointerEnd(e))}},{key:"decideMoveOrSwipe",value:function(e){this.state.zoomLevel<=0?this.handleSwipeStart(e):this.handleMoveStart(e)}},{key:"multiPointerStart",value:function(e){switch(this.handleEnd(null),this.pointerList.length){case 1:e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:e.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"multiPointerMove",value:function(e,t){switch(this.currentAction){case 1:e.preventDefault(),this.handleMove(t[0]);break;case 2:e.preventDefault(),this.handleSwipe(t[0]);break;case 3:e.preventDefault(),this.handlePinch(t)}}},{key:"multiPointerEnd",value:function(e){switch(0!==this.currentAction&&(this.setPreventInnerClose(),this.handleEnd(e)),this.pointerList.length){case 0:this.eventsSource=0;break;case 1:e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:e.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"handleEnd",value:function(e){switch(this.currentAction){case 1:this.handleMoveEnd(e);break;case 2:this.handleSwipeEnd(e);break;case 3:this.handlePinchEnd(e)}}},{key:"handleMoveStart",value:function(e){var t=e.x,n=e.y;this.props.enableZoom&&(this.currentAction=1,this.moveStartX=t,this.moveStartY=n,this.moveStartOffsetX=this.state.offsetX,this.moveStartOffsetY=this.state.offsetY)}},{key:"handleMove",value:function(e){var t=e.x,n=e.y,i=this.moveStartX-t+this.moveStartOffsetX,s=this.moveStartY-n+this.moveStartOffsetY;this.state.offsetX===i&&this.state.offsetY===s||this.setState({offsetX:i,offsetY:s})}},{key:"handleMoveEnd",value:function(){var e=this;this.currentAction=0,this.moveStartX=0,this.moveStartY=0,this.moveStartOffsetX=0,this.moveStartOffsetY=0;var t=this.getMaxOffsets(),n=Math.max(t.minX,Math.min(t.maxX,this.state.offsetX)),i=Math.max(t.minY,Math.min(t.maxY,this.state.offsetY));n===this.state.offsetX&&i===this.state.offsetY||(this.setState({offsetX:n,offsetY:i,shouldAnimate:!0}),this.setTimeout((function(){e.setState({shouldAnimate:!1})}),this.props.animationDuration))}},{key:"handleSwipeStart",value:function(e){var t=e.x,n=e.y;this.currentAction=2,this.swipeStartX=t,this.swipeStartY=n,this.swipeEndX=t,this.swipeEndY=n}},{key:"handleSwipe",value:function(e){var t=e.x,n=e.y;this.swipeEndX=t,this.swipeEndY=n}},{key:"handleSwipeEnd",value:function(e){var t=this.swipeEndX-this.swipeStartX,n=Math.abs(t),i=Math.abs(this.swipeEndY-this.swipeStartY);if(this.currentAction=0,this.swipeStartX=0,this.swipeStartY=0,this.swipeEndX=0,this.swipeEndY=0,!(!e||this.isAnimating()||n<1.5*i)){if(n<200&&n0&&this.props.prevSrc?(e.preventDefault(),this.requestMovePrev()):t<0&&this.props.nextSrc&&(e.preventDefault(),this.requestMoveNext())}}},{key:"calculatePinchDistance",value:function(){var e=S(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,2),t=e[0],n=e[1];return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}},{key:"calculatePinchCenter",value:function(){var e=S(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,2),t=e[0],n=e[1];return{x:t.x-(t.x-n.x)/2,y:t.y-(t.y-n.y)/2}}},{key:"handlePinchStart",value:function(e){this.props.enableZoom&&(this.currentAction=3,this.pinchTouchList=e.map((function(e){return{id:e.id,x:e.x,y:e.y}})),this.pinchDistance=this.calculatePinchDistance())}},{key:"handlePinch",value:function(e){this.pinchTouchList=this.pinchTouchList.map((function(t){for(var n=0;n0&&t+s>=i||e.deltaY<0&&s<=0)&&e.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(e){return e&&e in this.imageCache&&this.imageCache[e].loaded}},{key:"loadImage",value:function(e,t,i){var s=this;if(this.isImageLoaded(t))this.setTimeout((function(){i()}),1);else{var r=new n.g.Image;this.props.imageCrossOrigin&&(r.crossOrigin=this.props.imageCrossOrigin),r.onerror=function(n){s.props.onImageLoadError(t,e,n),s.setState((function(t){return{loadErrorStatus:m(m({},t.loadErrorStatus),{},f({},e,!0))}})),i(n)},r.onload=function(){s.props.onImageLoad(t,e,r),s.imageCache[t]={loaded:!0,width:r.width,height:r.height},i()},r.src=t}}},{key:"loadAllImages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;this.getSrcTypes().forEach((function(n){var i=n.name;t[i]&&e.state.loadErrorStatus[i]&&e.setState((function(e){return{loadErrorStatus:m(m({},e.loadErrorStatus),{},f({},i,!1))}})),t[i]&&!e.isImageLoaded(t[i])&&e.loadImage(i,t[i],function(t,n){return function(i){i||e.props[t]!==n||e.didUnmount||e.forceUpdate()}}(i,t[i]))}))}},{key:"requestClose",value:function(e){var t=this,n=function(){t.saveRotateImage(),t.props.onCloseRequest(e)};this.props.animationDisabled||"keydown"===e.type&&!this.props.animationOnKeyInput?n():(this.setState({isClosing:!0}),this.setTimeout(n,this.props.animationDuration))}},{key:"requestMove",value:function(e,t){var n=this,i={zoomLevel:0,offsetX:0,offsetY:0};this.props.animationDisabled||this.keyPressed&&!this.props.animationOnKeyInput||(i.shouldAnimate=!0,this.setTimeout((function(){return n.setState({shouldAnimate:!1})}),this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,this.saveRotateImage(),"prev"===e?(this.keyCounter-=1,this.setState(i),this.props.onMovePrevRequest(t)):(this.keyCounter+=1,this.setState(i),this.props.onMoveNextRequest(t))}},{key:"requestMoveNext",value:function(e){this.requestMove("next",e)}},{key:"requestMovePrev",value:function(e){this.requestMove("prev",e)}},{key:"saveRotateImage",value:function(){this.props.onRotateImage&&0!==this.state.rotateDeg&&360!==this.state.rotateDeg&&(this.props.onRotateImage(this.state.rotateDeg),this.setState({rotateDeg:0}))}},{key:"rotateImage",value:function(){var e=this.state.rotateDeg;e=e>=360?this.state.rotateDeg-270:e+90,this.setState({rotateDeg:e})}},{key:"render",value:function(){var e=this,t=this.props,i=t.animationDisabled,s=t.animationDuration,r=t.clickOutsideToClose,l=t.discourageDownloads,c=t.enableZoom,h=t.imageTitle,p=t.nextSrc,u=t.prevSrc,g=t.isDesktop,f=t.toolbarButtons,x=t.reactModalStyle,y=t.onAfterOpen,D=t.imageCrossOrigin,w=t.reactModalProps,S=t.onRotateImage,b=this.state,C=b.zoomLevel,k=b.offsetX,M=b.offsetY,N=b.isClosing,P=b.loadErrorStatus,_=b.rotateDeg,T=this.getLightboxRect(),F={};!i&&this.isAnimating()&&(F=m(m({},F),{},{transition:"transform ".concat(s,"ms")}));var L={};this.getSrcTypes().forEach((function(e){var t=e.name,n=e.keyEnding;L[t]=n}));var O=[],R=function(t,n,i){if(e.props[t]){var s,r=e.getBestImageForType(t),c=m(m({},F),o.getTransform(m(m({},i),r)));if(C>0&&(c.cursor="move"),c.transform="".concat(c.transform," rotate(").concat(_,"deg)"),null===r&&(s=P,Object.keys(s).some((function(e){return s[e]}))))O.push(a.createElement("div",{className:"".concat(n," ril__image ril-errored"),style:c,key:e.props[t]+L[t]},a.createElement("div",{className:"ril__errorContainer"},e.props.imageLoadErrorMessage)));else if(null!==r){var p=r.src;l?(c.backgroundImage="url('".concat(p,"')"),O.push(a.createElement("div",{className:"".concat(n," ril__image ril__imageDiscourager"),onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:c,key:p+L[t]},a.createElement("div",{className:"ril-download-blocker ril__downloadBlocker"})))):O.push(a.createElement("img",v({},D?{crossOrigin:D}:{},{className:"".concat(n," ril__image"),onDoubleClick:e.handleImageDoubleClick,onClick:e.handleImageClick,onWheel:e.handleImageMouseWheel,onDragStart:function(e){return e.preventDefault()},style:c,src:p,key:p+L[t],alt:"string"===typeof h?h:I("Image"),draggable:!1})))}else{var d=a.createElement("div",{className:"ril-loading-circle ril__loadingCircle ril__loadingContainer__icon"},j(new Array(12)).map((function(e,t){return a.createElement("div",{key:t,className:"ril-loading-circle-point ril__loadingCirclePoint"})})));O.push(a.createElement("div",{className:"".concat(n," ril__image ril-not-loaded"),style:c,key:e.props[t]+L[t]},a.createElement("div",{className:"ril__loadingContainer"},d)))}}},E=this.getZoomMultiplier();R("nextSrc","ril-image-next ril__imageNext",{x:T.width}),R("mainSrc","ril-image-current",{x:-1*k,y:-1*M,zoom:E}),R("prevSrc","ril-image-prev ril__imagePrev",{x:-1*T.width});var A={overlay:m({zIndex:1e3,backgroundColor:"transparent"},x.overlay),content:m({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},x.content)};return a.createElement(d(),v({isOpen:!0,onRequestClose:r?this.requestClose:void 0,onAfterOpen:function(){e.outerEl.current&&e.outerEl.current.focus(),y()},style:A,contentLabel:I("Lightbox"),appElement:"undefined"!==typeof n.g.window?n.g.window.document.body:void 0},w),a.createElement("div",{className:"ril-outer ril__outer ril__outerAnimating ".concat(this.props.wrapperClassName," ").concat(N?"ril-closing ril__outerClosing":""),style:{transition:"opacity ".concat(s,"ms"),animationDuration:"".concat(s,"ms"),animationDirection:N?"normal":"reverse"},ref:this.outerEl,onWheel:this.handleOuterMousewheel,onMouseMove:this.handleMouseMove,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},a.createElement("div",{className:"ril-inner ril__inner",onClick:r?this.closeIfClickInner:void 0},O),u&&g&&a.createElement("button",{type:"button",className:"ril-prev-button ril__navButtons ril__navButtonPrev",key:"prev","aria-label":this.props.prevLabel,onClick:this.isAnimating()?void 0:this.requestMovePrev}),p&&g&&a.createElement("button",{type:"button",className:"ril-next-button ril__navButtons ril__navButtonNext",key:"next","aria-label":this.props.nextLabel,onClick:this.isAnimating()?void 0:this.requestMoveNext}),a.createElement("div",{className:"ril-toolbar ril__toolbar"},a.createElement("ul",{className:"ril-toolbar-left ril__toolbarSide ril__toolbarLeftSide"},a.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},a.createElement("span",{className:"ril-toolbar__item__child ril__toolbarItemChild"},h))),a.createElement("ul",{className:"ril-toolbar-right ril__toolbarSide ril__toolbarRightSide"},f&&f.map((function(e,t){return a.createElement("li",{key:"button_".concat(t+1),className:"ril-toolbar__item ril__toolbarItem"},e)})),a.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},a.createElement("button",{type:"button",key:"close","aria-label":this.props.closeLabel,className:"ril-close ril-toolbar__item__child ril__toolbarItemChild ril__builtinButton ril__closeButton",onClick:this.isAnimating()?void 0:this.requestClose})))),a.createElement("div",{onMouseDown:function(e){return e.stopPropagation()},className:"ril-caption ril__caption"},c&&a.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},a.createElement("button",{type:"button",key:"zoom-in","aria-label":this.props.zoomInLabel,className:["ril-zoom-in","ril__toolbarItemChild","ril__builtinButton","ril__zoomInButton"].concat(j(C===Z?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomInBtn,disabled:this.isAnimating()||C===Z,onClick:this.isAnimating()||C===Z?void 0:this.handleZoomInButtonClick})),c&&a.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},a.createElement("button",{type:"button",key:"zoom-out","aria-label":this.props.zoomOutLabel,className:["ril-zoom-out","ril__toolbarItemChild","ril__builtinButton","ril__zoomOutButton"].concat(j(0===C?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomOutBtn,disabled:this.isAnimating()||0===C,onClick:this.isAnimating()||0===C?void 0:this.handleZoomOutButtonClick})),S&&a.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},a.createElement("button",{type:"button",className:["ril-rotate","ril__toolbarItemChild","ril__builtinButton","ril__rotateButton","ril_rotateImageButton"].join(" "),onClick:this.rotateImage})))))}}],s=[{key:"isTargetMatchImage",value:function(e){return e&&/ril-image-current/.test(e.className)}},{key:"parseMouseEvent",value:function(e){return{id:"mouse",source:1,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parseTouchPointer",value:function(e){return{id:e.identifier,source:2,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parsePointerEvent",value:function(e){return{id:e.pointerId,source:3,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"getTransform",value:function(e){var t=e.x,n=void 0===t?0:t,i=e.y,s=void 0===i?0:i,r=e.zoom,o=void 0===r?1:r,a=e.width,l=e.targetWidth,c=n,h=M();a>h&&(c+=(h-a)/2);var p=o*(l/a);return{transform:"translate3d(".concat(c,"px,").concat(s,"px,0) scale3d(").concat(p,",").concat(p,",1)")}}}],i&&g(t.prototype,i),s&&g(t,s),Object.defineProperty(t,"prototype",{writable:!1}),o}(a.Component);F.propTypes={isDesktop:h().bool,mainSrc:h().string.isRequired,prevSrc:h().string,nextSrc:h().string,mainSrcThumbnail:h().string,prevSrcThumbnail:h().string,nextSrcThumbnail:h().string,onCloseRequest:h().func.isRequired,onMovePrevRequest:h().func,onMoveNextRequest:h().func,onImageLoadError:h().func,onImageLoad:h().func,onAfterOpen:h().func,discourageDownloads:h().bool,animationDisabled:h().bool,animationOnKeyInput:h().bool,animationDuration:h().number,keyRepeatLimit:h().number,keyRepeatKeyupBonus:h().number,imageTitle:h().node,imageCaption:h().node,imageCrossOrigin:h().string,reactModalStyle:h().object,imagePadding:h().number,wrapperClassName:h().string,toolbarButtons:h().arrayOf(h().node),clickOutsideToClose:h().bool,enableZoom:h().bool,reactModalProps:h().shape({}),nextLabel:h().string,prevLabel:h().string,zoomInLabel:h().string,zoomOutLabel:h().string,closeLabel:h().string,imageLoadErrorMessage:h().node,onRotateImage:h().func},F.defaultProps={isDesktop:!0,imageTitle:null,imageCaption:null,toolbarButtons:null,reactModalProps:{},animationDisabled:!1,animationDuration:300,animationOnKeyInput:!1,clickOutsideToClose:!0,closeLabel:"Close lightbox",discourageDownloads:!1,enableZoom:!0,imagePadding:10,imageCrossOrigin:null,keyRepeatKeyupBonus:40,keyRepeatLimit:180,mainSrcThumbnail:null,nextLabel:"Next image",nextSrc:null,nextSrcThumbnail:null,onAfterOpen:function(){},onImageLoadError:function(){},onImageLoad:function(){},onMoveNextRequest:function(){},onMovePrevRequest:function(){},prevLabel:"Previous image",prevSrc:null,prevSrcThumbnail:null,reactModalStyle:{},wrapperClassName:"",zoomInLabel:"Zoom in",zoomOutLabel:"Zoom out",imageLoadErrorMessage:"This image failed to load",onRotateImage:null};var L=F,O=n(46417),R=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props.imageItems,t=this.props.imageIndex,n=e.length,i=e[t].name,s="".concat(i," (").concat(t+1,"/").concat(n,")");return(0,O.jsx)(L,{imageTitle:s,mainSrc:e[t].src,nextSrc:e[(t+1)%n].src,prevSrc:e[(t+n-1)%n].src,onCloseRequest:this.props.closeImagePopup,onMovePrevRequest:this.props.moveToPrevImage,onMoveNextRequest:this.props.moveToNextImage,imagePadding:70,imageLoadErrorMessage:(0,l.ih)("The image could not be loaded."),prevLabel:(0,l.ih)("Previous (Left arrow key)"),nextLabel:(0,l.ih)("Next (Right arrow key)"),closeLabel:(0,l.ih)("Close (Esc)"),zoomInLabel:(0,l.ih)("Zoom in"),zoomOutLabel:(0,l.ih)("Zoom out")})}}]),n}(a.Component),E=R},42123:function(e,t,n){"use strict";var i=n(15671),s=n(43144),r=n(60136),o=n(29388),a=n(47313),l=n(42995),c=n(12756),h=n(12213),p=n(7764),d=n(21303),u=n(89915),m=n(61805),g=n(68396),f=n(46417),v=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).copyToClipboard=function(){(0,u.Z)(s.props.link),s.props.toggleDialog(),g.Z.success((0,m.ih)("The link is copied to the clipboard."),{duration:2})},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.link,n=e.toggleDialog;return(0,f.jsxs)(l.Z,{isOpen:!0,toggle:n,children:[(0,f.jsx)(c.Z,{toggle:n,children:(0,m.ih)("Link")}),(0,f.jsx)(h.Z,{children:(0,f.jsx)("a",{href:t,children:t})}),(0,f.jsxs)(p.Z,{children:[(0,f.jsx)(d.Z,{color:"primary",onClick:this.copyToClipboard,children:(0,m.ih)("Copy")}),(0,f.jsx)(d.Z,{color:"secondary",onClick:n,children:(0,m.ih)("Close")})]})]})}}]),n}(a.Component);t.Z=v},23396:function(e,t,n){"use strict";var i,s=n(15671),r=n(43144),o=n(60136),a=n(29388),l=n(47313),c=n(42995),h=n(12756),p=n(12213),d=n(61805),u=n(4514),m=n(83854),g=n(51282),f=n(46417),v=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var r;return(0,s.Z)(this,n),(r=t.call(this,e)).queryZipProgress=function(){var e=r.state.zipToken;u.I.queryZipProgress(e).then((function(t){var n=t.data;if(1==n.failed){var s;switch(clearInterval(i),n.failed_reason){case"size too large":s=(0,d.ih)("Failed to download. The total size of the files exceeded the limit.");break;case"internal error":s=(0,d.ih)("Internal Server Error");break;default:s=(0,d.ih)("Error")}r.setState({isLoading:!1,errorMsg:s})}else r.setState({zipProgress:0==n.total?"100%":(n.zipped/n.total*100).toFixed(2)+"%"}),n.total==n.zipped&&(clearInterval(i),r.props.toggleDialog(),location.href="".concat(d.gc,"zip/").concat(e))})).catch((function(e){clearInterval(i);var t=m.c.getErrorMsg(e);r.setState({isLoading:!1,errorMsg:t})}))},r.cancelZipTask=function(){var e=r.state.zipToken;u.I.cancelZipTask(e).then((function(e){})).catch((function(e){}))},r.toggleDialog=function(){var e=r.state.zipProgress;e&&"100%"!=e&&(clearInterval(i),r.cancelZipTask()),r.props.toggleDialog()},r.state={isLoading:!0,errorMsg:"",zipProgress:null},r}return(0,r.Z)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.token,s=t.path,r=t.repoID,o=t.target;(n?o.length?u.I.getShareLinkDirentsZipTask(n,s,o):u.I.getShareLinkZipTask(n,s):u.I.zipDownload(r,s,o)).then((function(t){var n=t.data.zip_token;e.setState({isLoading:!1,errorMsg:"",zipToken:n}),e.queryZipProgress(),i=setInterval(e.queryZipProgress,1e3)})).catch((function(t){var n=m.c.getErrorMsg(t);e.setState({isLoading:!1,errorMsg:n})}))}},{key:"render",value:function(){return(0,f.jsxs)(c.Z,{isOpen:!0,toggle:this.toggleDialog,children:[(0,f.jsx)(h.Z,{toggle:this.toggleDialog,children:(0,d.ih)("Download")}),(0,f.jsx)(p.Z,{children:(0,f.jsx)(x,{data:this.state})})]})}}]),n}(l.Component),x=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,s.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n,[{key:"render",value:function(){var e=this.props.data,t=e.isLoading,n=e.errorMsg,i=e.zipProgress;return t?(0,f.jsx)(g.Z,{}):n?(0,f.jsxs)("div",{className:"text-center mt-7 mb-8",children:[(0,f.jsx)("img",{src:"".concat(d.si,"img/error-tip.png"),alt:"",width:"100"}),(0,f.jsx)("p",{className:"mt-3",children:n})]}):(0,f.jsx)("p",{className:"mt-4 text-center",children:"".concat((0,d.ih)("Packaging...")," ").concat(i)})}}]),n}(l.Component);t.Z=v},90299:function(e,t,n){"use strict";var i=n(15671),s=n(43144),r=n(60136),o=n(29388),a=n(47313),l=n(18760),c=n(16614),h=n(25417),p=n(72611),d=n(57124),u=n(13380),m=n(61805),g=n(83854),f=n(46417),v=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onShowMenu=function(){},s.onHideMenu=function(){s.state.isItemMenuShow&&(s.setState({isItemMenuShow:!1}),"function"===typeof s.props.unfreezeItem&&s.props.unfreezeItem())},s.onDropdownToggleKeyDown=function(e){"Enter"!=e.key&&"Space"!=e.key||s.onDropdownToggleClick(e)},s.onDropdownToggleClick=function(e){e.preventDefault(),e.stopPropagation(),s.toggleOperationMenu()},s.toggleOperationMenu=function(){s.setState({isItemMenuShow:!s.state.isItemMenuShow},(function(){s.state.isItemMenuShow&&"function"===typeof s.props.freezeItem?s.props.freezeItem():s.state.isItemMenuShow||"function"!==typeof s.props.unfreezeItem||s.props.unfreezeItem()}))},s.onMenuItemKeyDown=function(e){"Enter"!=e.key&&"Space"!=e.key||s.onMenuItemClick(e)},s.onMenuItemClick=function(e){var t=g.c.getEventData(e,"toggle"),n=s.props.item;s.props.onMenuItemClick(t,e,n)},s.state={menuList:[],isItemMenuShow:!1},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){this.props.isHandleContextMenuEvent&&(this.listenerId=l.Z.register(this.onShowMenu,this.onHideMenu));var e=this.props.item,t=this.props.getMenuList(e);this.setState({menuList:t})}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.item;if(t.name!==this.props.item.name){var n=this.props.getMenuList(t);this.setState({menuList:n})}}},{key:"componentWillUnmount",value:function(){this.props.isHandleContextMenuEvent&&this.listenerId&&l.Z.unregister(this.listenerId)}},{key:"render",value:function(){var e=this,t=this.state.menuList,n=this.props,i=n.toggleClass,s=n.tagName;return i="sf-dropdown-toggle "+i,t.length?s&&"button"===s?(0,f.jsxs)(c.Z,{isOpen:this.state.isItemMenuShow,toggle:this.onDropdownToggleClick,children:[(0,f.jsx)(h.Z,{className:i,"data-toggle":"dropdown",title:(0,m.ih)("More operations"),"aria-label":(0,m.ih)("More operations"),"aria-expanded":this.state.isItemMenuShow,onKeyDown:this.onDropdownToggleKeyDown}),(0,f.jsx)(p.Z,{children:t.map((function(t,n){return"Divider"===t?(0,f.jsx)(d.Z,{divider:!0},n):(0,f.jsx)(d.Z,{"data-toggle":t.key,onClick:e.onMenuItemClick,onKeyDown:e.onMenuItemKeyDown,children:t.value},n)}))})]}):(0,f.jsxs)(u.Z,{isOpen:this.state.isItemMenuShow,toggle:this.onDropdownToggleClick,className:"vam",children:[(0,f.jsx)(h.Z,{tag:s||"i",role:"button",tabIndex:"0",className:i,title:(0,m.ih)("More operations"),"data-toggle":"dropdown","aria-expanded":this.state.isItemMenuShow,"aria-label":(0,m.ih)("More operations"),onKeyDown:this.onDropdownToggleKeyDown}),(0,f.jsx)(p.Z,{children:t.map((function(t,n){return"Divider"===t?(0,f.jsx)(d.Z,{divider:!0},n):(0,f.jsx)(d.Z,{"data-toggle":t.key,onClick:e.onMenuItemClick,onKeyDown:e.onMenuItemKeyDown,children:t.value},n)}))})]}):""}}]),n}(a.Component);v.defaultProps={isHandleContextMenuEvent:!0,toggleClass:"sf2-icon-caret-down"},t.Z=v},57357:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var i=n(15671),s=n(43144),r=n(60136),o=n(29388),a=n(47313),l=n(61805),c=n(4514),h=n(83854),p=n(68396),d=n(46417);var u=function(e){var t=e.callBack,n=e.footerName,i=e.className,s=e.addIconClassName;return(0,d.jsxs)("div",{className:"add-item-btn ".concat(i||""),onClick:function(e){t(e)},children:[(0,d.jsx)("span",{className:"fas fa-plus mr-2 ".concat(s||"")}),(0,d.jsx)("span",{className:"add-new-option",title:n,children:n})]})},m=n(46123),g=n.n(m),f=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onCompositionStart=function(){s.isInputtingChinese=!0},s.onChange=function(e){s.timer&&clearTimeout(s.timer);var t=s.props,n=t.onChange,i=t.wait,r=e.target.value;s.setState({searchValue:r||""},(function(){s.isInputtingChinese||(s.timer=setTimeout((function(){n&&n(s.state.searchValue.trim())}),i))}))},s.onCompositionEnd=function(e){s.isInputtingChinese=!1,s.onChange(e)},s.clearSearch=function(){var e=s.props.clearValue;s.setState({searchValue:""},(function(){e&&e()}))},s.setFocus=function(e){if(s.inputRef!==document.activeElement&&(s.inputRef.focus(),e)){var t=s.state.searchValue.length;s.inputRef.setSelectionRange(0,t)}},s.isFunction=function(e){return e&&"[object Function]"==={}.toString.call(e)},s.renderClear=function(){var e=s.props,t=e.isClearable,n=e.clearClassName,i=e.components,r=void 0===i?{}:i,o=s.state.searchValue;if(!t||!o)return null;var l=r.ClearIndicator;return a.isValidElement(l)?a.cloneElement(l,{clearValue:s.clearSearch}):s.isFunction(l)?(0,d.jsx)(l,{clearValue:s.clearSearch}):(0,d.jsx)("i",{className:g()("search-text-clear input-icon-addon",n),onClick:s.clearSearch,children:"\xd7"})},s.state={searchValue:e.value},s.isInputtingChinese=!1,s.timer=null,s.inputRef=null,s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this;this.props.autoFocus&&this.inputRef&&this.inputRef!==document.activeElement&&setTimeout((function(){e.inputRef.focus()}),0)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.value!==this.props.value&&this.setState({searchValue:e.value})}},{key:"componentWillUnmount",value:function(){this.timer&&clearTimeout(this.timer),this.timer=null,this.inputRef=null}},{key:"render",value:function(){var e=this,t=this.props,n=t.placeholder,i=t.autoFocus,s=t.className,r=t.onKeyDown,o=t.disabled,l=t.style,c=this.state.searchValue;return(0,d.jsxs)(a.Fragment,{children:[(0,d.jsx)("input",{type:"text",value:c,className:g()("form-control",s),onChange:this.onChange,autoFocus:i,placeholder:n,onCompositionStart:this.onCompositionStart,onCompositionEnd:this.onCompositionEnd,onKeyDown:r,disabled:o,style:l,ref:function(t){return e.inputRef=t}}),this.renderClear()]})}}]),n}(a.Component);f.defaultProps={wait:100,disabled:!1,value:""};var v=f,x=n(30560),y=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var s=arguments.length,r=new Array(s),o=0;o-1&&s.setHighlightIndex(s.state.highlightIndex-1);else if(e.keyCode===w.mW.DownArrow){var r=s.state.searchVal.trim(),o=t.filter((function(e){return e.name.includes(r)}));s.state.highlightIndex-1?{isValid:t=!1,errMessage:n=(0,l.ih)("Name should not include '/'.")}:{isValid:t,errMessage:n}:{isValid:t=!1,errMessage:n=(0,l.ih)("Name is required.")}},s.state={name:e.name},s.inputRef=a.createRef(),s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this;if(this.inputRef.current.focus(),this.props.hasSuffix){var t=this.props.name.lastIndexOf(".");this.inputRef.current.setSelectionRange(0,t,"forward")}else this.inputRef.current.setSelectionRange(0,-1);setTimeout((function(){document.addEventListener("click",e.onClick)}),1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.onClick)}},{key:"render",value:function(){return(0,p.jsx)("div",{className:"rename-container",children:(0,p.jsx)("input",{ref:this.inputRef,value:this.state.name,onChange:this.onChange,onKeyDown:this.onKeyDown})})}}]),n}(a.Component);t.Z=d},43916:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var i=n(15671),s=n(43144),r=n(60136),o=n(29388),a=n(47313),l=n(68164),c=n(42995),h=n(12756),p=n(12213),d=n(7764),u=n(21303),m=n(70816),g=n.n(m),f=n(61805),v=n(4514),x=n(83854),y=n(68396),D=n(46417),w=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onFileTagChanged=function(e){var t=e.parent_path,n={name:e.filename},i="/"===t?t+e.filename:t+"/"+e.filename;s.props.onFileTagChanged(n,i)},s.onDeleteTaggedFile=function(e){var t=s.props.repoID,n=e.file_tag_id;v.I.deleteFileTag(t,n).then((function(t){s.getTaggedFiles(),s.props.updateUsedRepoTags(),s.props.onFileTagChanged&&!e.file_deleted&&s.onFileTagChanged(e)})).catch((function(e){var t=x.c.getErrorMsg(e);y.Z.danger(t)}))},s.getTaggedFiles=function(){var e=s.props,t=e.repoID,n=e.currentTag,i=e.shareLinkToken;(i?v.I.getShareLinkTaggedFiles(i,n.id):v.I.listTaggedFiles(t,n.id)).then((function(e){var t=[];void 0!==e.data.tagged_files&&e.data.tagged_files.forEach((function(e){var n=e;t.push(n)})),s.setState({taggedFileList:t})})).catch((function(e){var t=x.c.getErrorMsg(e);y.Z.danger(t)}))},s.state={taggedFileList:[]},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){this.getTaggedFiles()}},{key:"render",value:function(){var e=this,t=this.state.taggedFileList;return(0,D.jsxs)(c.Z,{isOpen:!0,style:{maxWidth:"678px"},children:[(0,D.jsx)(h.Z,{toggle:this.props.onClose,children:(0,f.ih)("Tagged Files")}),(0,D.jsx)(p.Z,{className:"dialog-list-container",children:(0,D.jsxs)("table",{children:[(0,D.jsx)("thead",{children:(0,D.jsxs)("tr",{children:[(0,D.jsx)("th",{width:"50%",className:"ellipsis",children:(0,f.ih)("Name")}),(0,D.jsx)("th",{width:"20%",children:(0,f.ih)("Size")}),(0,D.jsx)("th",{width:"22%",children:(0,f.ih)("Last Update")}),(0,D.jsx)("th",{width:"8%"})]})}),(0,D.jsx)("tbody",{children:t.map((function(t,n){return(0,D.jsx)(S,{repoID:e.props.repoID,taggedFile:t,onDeleteTaggedFile:e.onDeleteTaggedFile,shareLinkToken:e.props.shareLinkToken,enableFileDownload:e.props.enableFileDownload},n)}))})]})}),(0,D.jsx)(d.Z,{children:(0,D.jsx)(u.Z,{color:"secondary",onClick:this.props.toggleCancel,children:(0,f.ih)("Close")})})]})}}]),n}(a.Component),S=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onMouseEnter=function(){s.setState({active:!0})},s.onMouseLeave=function(){s.setState({active:!1})},s.deleteFile=function(e){e.preventDefault(),s.props.onDeleteTaggedFile(s.props.taggedFile)},s.state={active:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.taggedFile,n=e.shareLinkToken,i=e.enableFileDownload,s=t.parent_path?x.c.joinPath(t.parent_path,t.filename):"",r=n?f.ze+"d/"+n+"/files/?p="+x.c.encodePath(s):f.ze+"lib/"+this.props.repoID+"/file"+x.c.encodePath(s);return(0,D.jsxs)("tr",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onMouseEnter,children:[t.file_deleted?(0,D.jsx)(a.Fragment,{children:(0,D.jsxs)("td",{colSpan:"3",className:"name",children:[t.filename," ",(0,D.jsx)("span",{style:{color:"red"},children:(0,f.ih)("deleted")})]})}):(0,D.jsxs)(a.Fragment,{children:[(0,D.jsx)("td",{children:(0,D.jsx)("a",{href:r,target:"_blank",className:"d-inline-block w-100 ellipsis",title:t.filename,rel:"noreferrer",children:t.filename})}),(0,D.jsx)("td",{children:x.c.bytesToSize(t.size)}),(0,D.jsx)("td",{children:g().unix(t.mtime).fromNow()})]}),(0,D.jsxs)("td",{children:[!n&&(0,D.jsx)("a",{href:"#",role:"button","aria-label":(0,f.ih)("Delete"),title:(0,f.ih)("Delete"),className:"action-icon sf2-icon-x3".concat(this.state.active?"":" invisible"),onClick:this.deleteFile}),n&&i&&(0,D.jsx)("a",{className:"action-icon sf2-icon-download".concat(this.state.active?"":" invisible"),href:"".concat(r,"&dl=1"),title:(0,f.ih)("Download"),"aria-label":(0,f.ih)("Download")})]})]})}}]),n}(a.Component),j=n(14658),b=(0,s.Z)((function e(t){(0,i.Z)(this,e),this.created=t.created_at,this.createdStr=g()(new Date(t.created_at).getTime()).format("YYYY-MM-DD HH:mm"),this.id=t.id,this.ownerNickname=t.owner_nickname,this.originRepoID=t.origin_repo_id,this.draftFilePath=t.draft_file_path})),C=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onDeleteDraftItem=function(e){j.Z.deleteDraft(e.id).then((function(){var t=s.state.drafts.filter((function(t){return t.id!==e.id}));s.setState({drafts:t});var n=(0,f.ih)("Successfully deleted draft %(draft)s.");n=n.replace("%(draft)s",e.draftFilePath),y.Z.success(n)})).catch((function(){var t=(0,f.ih)("Failed to delete draft %(draft)s.");t=t.replace("%(draft)s",e.draftFilePath),y.Z.danger(t)}))},s.toggle=function(){s.props.toggle()},s.state={drafts:[]},s}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this;v.I.listRepoDrafts(this.props.repoID).then((function(t){var n=t.data.drafts.map((function(e){return new b(e)}));e.setState({drafts:n})}))}},{key:"render",value:function(){var e=this;return(0,D.jsxs)(c.Z,{isOpen:!0,toggle:this.toggle,children:[(0,D.jsx)(h.Z,{toggle:this.toggle,children:(0,f.ih)("Drafts")}),(0,D.jsx)(p.Z,{className:"dialog-list-container",children:(0,D.jsxs)("table",{children:[(0,D.jsx)("thead",{children:(0,D.jsxs)("tr",{children:[(0,D.jsx)("th",{width:"50%",className:"ellipsis",children:(0,f.ih)("Name")}),(0,D.jsx)("th",{width:"20%",children:(0,f.ih)("Owner")}),(0,D.jsx)("th",{width:"20%",children:(0,f.ih)("Last Update")}),(0,D.jsx)("th",{width:"10%"})]})}),(0,D.jsx)("tbody",{children:this.state.drafts.map((function(t,n){return(0,D.jsx)(k,{draftItem:t,onDeleteDraftItem:e.onDeleteDraftItem},n)}))})]})}),(0,D.jsx)(d.Z,{children:(0,D.jsx)(u.Z,{color:"secondary",onClick:this.toggle,children:(0,f.ih)("Close")})})]})}}]),n}(a.Component),k=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onMouseEnter=function(){s.setState({active:!0})},s.onMouseLeave=function(){s.setState({active:!1})},s.state={active:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this.props.draftItem,t=f.ze+"drafts/"+e.id+"/",n=this.state.active?"action-icon sf2-icon-x3":"action-icon vh sf2-icon-x3";return(0,D.jsxs)("tr",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,children:[(0,D.jsx)("td",{className:"name",children:(0,D.jsx)("a",{href:t,target:"_blank",rel:"noreferrer",children:x.c.getFileName(e.draftFilePath)})}),(0,D.jsx)("td",{children:e.ownerNickname}),(0,D.jsx)("td",{children:g()(e.createdStr).fromNow()}),(0,D.jsx)("td",{children:(0,D.jsx)("i",{className:n,onClick:this.props.onDeleteDraftItem.bind(this,e)})})]})}}]),n}(a.Component),I=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).onListTaggedFiles=function(e){s.setState({currentTag:e,isListTaggedFileShow:!s.state.isListTaggedFileShow})},s.onCloseDialog=function(){s.setState({isListTaggedFileShow:!1})},s.toggleDrafts=function(){s.setState({showRepoDrafts:!s.state.showRepoDrafts})},s.state={currentTag:null,isListTaggedFileShow:!1,showRepoDrafts:!1},s}return(0,s.Z)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.repoID,i=t.usedRepoTags,s=t.draftCounts,r=t.className;return void 0===s&&(s=0),(0,D.jsxs)("div",{className:"repo-info-bar ".concat(r||""),children:[i.length>0&&(0,D.jsx)("ul",{className:"used-tag-list",children:i.map((function(t){return(0,D.jsxs)("li",{className:"used-tag-item",children:[(0,D.jsx)("span",{className:"used-tag",style:{backgroundColor:t.color}}),(0,D.jsx)("span",{className:"used-tag-name",title:t.name,children:t.name}),(0,D.jsx)("button",{type:"button",className:"used-tag-files border-0 bg-transparent",onClick:e.onListTaggedFiles.bind(e,t),children:t.fileCount>1?t.fileCount+" files":t.fileCount+" file"})]},t.id)}))}),this.state.isListTaggedFileShow&&(0,D.jsx)(l.Z,{children:(0,D.jsx)(w,{repoID:n,currentTag:this.state.currentTag,onClose:this.onCloseDialog,toggleCancel:this.onListTaggedFiles,updateUsedRepoTags:this.props.updateUsedRepoTags,onFileTagChanged:this.props.onFileTagChanged,shareLinkToken:this.props.shareLinkToken,enableFileDownload:this.props.enableFileDownload})}),this.state.showRepoDrafts&&(0,D.jsx)(l.Z,{children:(0,D.jsx)(C,{toggle:this.toggleDrafts,repoID:this.props.repoID})})]})}}]),n}(a.Component)},88376:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var i=n(1413),s=n(15671),r=n(43144),o=n(60136),a=n(29388),l=n(47313),c=n(95423),h=n(61805),p=n(83854),d=n(51282),u=n(46417),m=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var r;return(0,s.Z)(this,n),(r=t.call(this,e)).onLinkClick=function(e){r.props.onLinkClick(e)},r.changeInlineNode=function(e){var t,n,i=r.props.repoID;if("image"==e.type){if(t=e.data.src,new RegExp(h.xx+"/lib/"+i+"/file.*raw=1").test(t)){var s=t.indexOf("/file"),o=t.indexOf("?");n=t.substring(s+5,o)}else{if(!/^\.\.\/*/.test(t)&&!/^\.\/*/.test(t))return;var a=r.props.path,l=a.slice(0,a.lastIndexOf("/"))+"/"+t;n=p.c.pathNormalize(l)}e.data.src=h.xx+"/view-image-via-public-wiki/?slug="+h.oF+"&path="+n}else if("link"==e.type)if(t=e.url,p.c.isInternalFileLink(t,i))if(p.c.isInternalMarkdownLink(t,i)){var c=p.c.getPathFromInternalMarkdownLink(t,i);e.url=h.xx+"/published/"+h.oF+c}else e.url=t.replace(/(.*)lib\/([-0-9a-f]{36})\/file(.*)/g,(function(e,t,n,i){return"".concat(t,"d/").concat(h.lI,"/files/?p=").concat(i,"&dl=1")}));else if(p.c.isInternalDirLink(t,i)){var d=p.c.getPathFromInternalDirLink(t,i);e.url=h.xx+"/published/"+h.oF+d}return e},r.modifyValueBeforeRender=function(e){return p.c.changeMarkdownNodes(e,r.changeInlineNode)},r.renderMarkdown=function(){var e=r.props,t=e.isTOCShow,n=void 0===t||t,s=e.isWiki,o=e.markdownContent,a=(0,i.Z)({isShowOutline:n,mathJaxSource:"".concat(h.si,"js/mathjax/tex-svg.js"),value:o,scrollRef:r.scrollRef,onLinkClick:r.onLinkClick},s&&{beforeRenderCallback:r.modifyValueBeforeRender});return(0,u.jsx)(c.MarkdownViewer,(0,i.Z)({},a))},r.scrollRef=l.createRef(),r}return(0,r.Z)(n,[{key:"render",value:function(){if(this.props.isFileLoading)return(0,u.jsx)(d.Z,{});var e=this.props,t=e.isWiki,n=e.containerClassName,i="wiki-page-container ".concat(void 0===n?"":n),s="wiki-page-content ".concat(t?"":NaN);return(0,u.jsx)("div",{ref:this.scrollRef,className:i,children:(0,u.jsxs)("div",{className:s,children:[this.props.children,this.renderMarkdown(),(0,u.jsxs)("p",{id:"wiki-page-last-modified",children:[(0,h.ih)("Last modified by")," ",this.props.latestContributor,", ",(0,u.jsx)("span",{children:this.props.lastModified})]})]})})}}]),n}(l.Component);m.defaultProps={isWiki:!1};var g=m},20512:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(15671),s=n(43144),r=n(60136),o=n(29388),a=n(47313),l=n(39131),c=n(61805),h=n(90299),p=n(83854),d=n(46417),u=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;(0,i.Z)(this,n),(s=t.call(this,e)).onMouseEnter=function(){s.props.isItemFreezed||s.setState({isShowOperationMenu:!0,isHighlight:!0})},s.onMouseOver=function(){s.props.isItemFreezed||s.setState({isShowOperationMenu:!0,isHighlight:!0})},s.onMouseLeave=function(){s.props.isItemFreezed||s.setState({isShowOperationMenu:!1,isHighlight:!1})},s.onNodeClick=function(){var e=s.props.node.object;if(e.isDir())s.props.onNodeClick(s.props.node);else{var t=p.c.getUserPermission(e.permission),n=t.isCustomPermission,i=t.customPermission;if(n){var r=i.permission,o=r.preview,a=r.modify;if(!o&&!a)return}s.props.onNodeClick(s.props.node)}},s.onLoadToggle=function(e){e.stopPropagation();var t=s.props.node;t.isExpanded?s.props.onNodeCollapse(t):s.props.onNodeExpanded(t)},s.onNodeDragStart=function(e){if(p.c.isIEBrower()||!s.canDrag)return!1;s.props.onNodeDragStart(e,s.props.node)},s.onNodeDragEnter=function(e){if(p.c.isIEBrower()||!s.canDrag)return!1;"dir"===s.props.node.object.type&&s.setState({isNodeDropShow:!0}),s.props.onNodeDragEnter(e,s.props.node)},s.onNodeDragMove=function(e){if(p.c.isIEBrower()||!s.canDrag)return!1;s.props.onNodeDragMove(e)},s.onNodeDragLeave=function(e){if(p.c.isIEBrower()||!s.canDrag)return!1;s.setState({isNodeDropShow:!1}),s.props.onNodeDragLeave(e,s.props.node)},s.onNodeDrop=function(e){if(p.c.isIEBrower()||!s.canDrag)return!1;e.stopPropagation(),s.setState({isNodeDropShow:!1}),s.props.onNodeDrop(e,s.props.node)},s.unfreezeItem=function(){s.setState({isShowOperationMenu:!1}),s.props.unfreezeItem()},s.onMenuItemClick=function(e,t,n){s.props.onMenuItemClick(e,n)},s.onItemMouseDown=function(e){e.stopPropagation(),e.button},s.onItemContextMenu=function(e){s.handleContextClick(e)},s.handleContextClick=function(e){s.props.handleContextClick(e,s.props.node),s.setState({isShowOperationMenu:!1})},s.getNodeTypeAndIcon=function(){var e=s.props.node,t="",n="";if("dir"===e.object.type)t=(0,d.jsx)("i",{className:"far fa-folder"}),n="dir";else{var i=e.object.name.lastIndexOf(".");if(-1===i)t=(0,d.jsx)("i",{className:"far fa-file"}),n="file";else{var r=e.object.name.slice(i).toLowerCase();".png"===r||".jpg"===r||".jpeg"===r||".gif"===r||".bmp"===r?(t=(0,d.jsx)("i",{className:"far fa-image"}),n="image"):".md"===r||".markdown"===r?(t=(0,d.jsx)("i",{className:"far fa-file-alt"}),n="file"):(t=(0,d.jsx)("i",{className:"far fa-file"}),n="file")}}return{icon:t,type:n}},s.calculateMenuList=function(e){var t=l.Z.NEW_FOLDER,n=l.Z.NEW_FILE,i=l.Z.COPY,r=l.Z.MOVE,o=l.Z.RENAME,a=l.Z.DELETE,c=l.Z.OPEN_VIA_CLIENT,h=[o,a,i,r,c];"dir"===e.object.type&&(h=[t,n,i,r,o,a]);var d=s.props.userPerm,u=p.c.getUserPermission(d),m=u.isCustomPermission,g=u.customPermission;if(!m)return h;h=[];var f=g.permission,v=f.create,x=f.modify,y=f.delete,D=f.copy;return"dir"===e.object.type&&v&&h.push(t,n),D&&h.push(i),x&&h.push(r,o),y&&h.push(a),"dir"!==e.object.type&&h.push(c),h},s.renderChildren=function(){var e=s.props,t=e.node,i=e.paddingLeft;return t.hasChildren()?(0,d.jsx)("div",{className:"children",style:{paddingLeft:i},children:t.children.map((function(e){return(0,d.jsx)(n,{node:e,paddingLeft:i,userPerm:s.props.userPerm,currentPath:s.props.currentPath,isNodeMenuShow:s.props.isNodeMenuShow,isItemFreezed:s.props.isItemFreezed,onNodeClick:s.props.onNodeClick,onNodeCollapse:s.props.onNodeCollapse,onNodeExpanded:s.props.onNodeExpanded,freezeItem:s.props.freezeItem,onMenuItemClick:s.props.onMenuItemClick,unfreezeItem:s.unfreezeItem,onNodeDragStart:s.props.onNodeDragStart,onNodeDragMove:s.props.onNodeDragMove,onNodeDrop:s.props.onNodeDrop,onNodeDragEnter:s.props.onNodeDragEnter,onNodeDragLeave:s.props.onNodeDragLeave,handleContextClick:s.props.handleContextClick},e.path)}))}):""},s.state={isHighlight:!1,isShowOperationMenu:!1,isNodeDropShow:!1};var r=e.userPerm;s.canDrag="rw"===r;var o=p.c.getUserPermission(r),a=o.isCustomPermission,c=o.customPermission;if(a){var h=c.permission.modify;s.canDrag=h}return s}return(0,s.Z)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.isItemFreezed||this.setState({isShowOperationMenu:!1,isHighlight:!1})}},{key:"render",value:function(){var e=this.props,t=e.currentPath,n=e.node,i=e.isNodeMenuShow,s=e.userPerm,r=this.getNodeTypeAndIcon(),o=r.type,a=r.icon,l=this.state.isHighlight?"tree-node-inner-hover ":"";n.path===t&&(l="tree-node-hight-light");var u=p.c.getUserPermission(s).isCustomPermission;return(0,d.jsxs)("div",{className:"tree-node",children:[(0,d.jsxs)("div",{type:o,className:"tree-node-inner text-nowrap ".concat(l," ").concat("/"===n.path?"hide":""," ").concat(this.state.isNodeDropShow?"tree-node-drop":""),title:n.object.name,onMouseEnter:this.onMouseEnter,onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave,onMouseDown:this.onItemMouseDown,onContextMenu:this.onItemContextMenu,onClick:this.onNodeClick,children:[(0,d.jsx)("div",{className:"tree-node-text",draggable:this.canDrag,onDragStart:this.onNodeDragStart,onDragEnter:this.onNodeDragEnter,onDragLeave:this.onNodeDragLeave,onDragOver:this.onNodeDragMove,onDrop:this.onNodeDrop,children:n.object.name}),(0,d.jsxs)("div",{className:"left-icon",children:["dir"===o&&(!n.isLoaded||n.isLoaded&&n.hasChildren())&&(0,d.jsx)("i",{className:"folder-toggle-icon fa ".concat(n.isExpanded?"fa-caret-down":"fa-caret-right"),onMouseDown:function(e){return e.stopPropagation()},onClick:this.onLoadToggle}),(0,d.jsx)("i",{className:"tree-node-icon",children:a})]}),i&&(0,d.jsx)("div",{className:"right-icon",children:("rw"===s||c.rd||u)&&this.state.isShowOperationMenu&&(0,d.jsx)(h.Z,{item:this.props.node,toggleClass:"fas fa-ellipsis-v",getMenuList:this.calculateMenuList,onMenuItemClick:this.onMenuItemClick,freezeItem:this.props.freezeItem,unfreezeItem:this.unfreezeItem})})]}),n.isExpanded&&this.renderChildren()]})}}]),n}(a.Component),m=n(92161),g=n(30426),f=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e){var s;(0,i.Z)(this,n),(s=t.call(this,e)).onItemMove=function(e,t,n,i){s.props.onItemMove(e,t,n,i)},s.onNodeDragStart=function(e,t){if(p.c.isIEBrower())return!1;var n={nodeDirent:t.object,nodeParentPath:t.parentNode.path,nodeRootPath:t.path};n=JSON.stringify(n),e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("applicaiton/drag-item-info",n)},s.onNodeDragEnter=function(e,t){if(p.c.isIEBrower()||!s.canDrop)return!1;e.persist(),"tree-view tree "===e.target.className&&s.setState({isTreeViewDropTipShow:!0})},s.onNodeDragMove=function(e){if(p.c.isIEBrower()||!s.canDrop)return!1;e.preventDefault(),e.dataTransfer.dropEffect="move"},s.onNodeDragLeave=function(e,t){if(p.c.isIEBrower()||!s.canDrop)return!1;"tree-view tree tree-view-drop"===e.target.className&&s.setState({isTreeViewDropTipShow:!1})},s.onContainerClick=function(e){(0,g.SC)()},s.onNodeClick=function(e){(0,g.SC)(),s.props.onNodeClick(e)},s.onNodeDrop=function(e,t){if(p.c.isIEBrower()||!s.canDrop)return!1;if(!e.dataTransfer.files.length){var n=e.dataTransfer.getData("applicaiton/drag-item-info"),i=n=JSON.parse(n),r=i.nodeDirent,o=i.nodeParentPath,a=i.nodeRootPath,l=t;if(Array.isArray(n))return l?void s.onMoveItems(n,l,s.props.currentRepoInfo,l.path):("/"===n[0].nodeParentPath||s.props.onItemsMove(s.props.currentRepoInfo,"/"),void s.setState({isTreeViewDropTipShow:!1}));if(!l)return"/"===o||s.onItemMove(s.props.currentRepoInfo,r,"/",o),void s.setState({isTreeViewDropTipShow:!1});if("dir"===l.object.type&&o!==l.path&&(o!==l.parentNode.path||l.object.name!==r.name)){if("dir"===l.object.type&&"dir"===r.type)if(l.parentNode.path!==o)if(p.c.getPaths(l.path).includes(a))return;s.onItemMove(s.props.currentRepoInfo,r,l.path,o)}}},s.onMoveItems=function(e,t,n,i){var r=[],o=p.c.getPaths(i);(e.forEach((function(e){var t=e.nodeRootPath;r.push(t)})),"dir"===t.object.type)&&(r.some((function(e){return e===i}))||e[0].nodeParentPath&&e[0].nodeParentPath===t.path||r.some((function(e){return o.includes(e)}))||s.props.onItemsMove(n,i))},s.freezeItem=function(){s.setState({isItemFreezed:!0})},s.unfreezeItem=function(){s.setState({isItemFreezed:!1})},s.onMenuItemClick=function(e,t){s.props.onMenuItemClick(e,t),(0,g.SC)()},s.onMouseDown=function(e){e.stopPropagation(),e.button},s.onContextMenu=function(e){e.preventDefault();var t=s.props.currentRepoInfo;if("admin"!==t.permission&&"rw"!==t.permission)return"";s.handleContextClick(e)},s.handleContextClick=function(e,t){if(e.preventDefault(),e.stopPropagation(),s.props.isNodeMenuShow){var n=e.clientX||e.touches&&e.touches[0].pageX,i=e.clientY||e.touches&&e.touches[0].pageY;s.props.posX&&(n-=s.props.posX),s.props.posY&&(i-=s.props.posY),(0,g.SC)();var r=s.getMenuList(t),o={id:"tree-node-contextmenu",position:{x:n,y:i},target:e.target,currentObject:t,menuList:r};(0,g.AE)(o)}},s.getMenuList=function(e){var t=[],n=l.Z.NEW_FOLDER,i=l.Z.NEW_FILE,r=l.Z.COPY,o=l.Z.MOVE,a=l.Z.RENAME,c=l.Z.DELETE,h=l.Z.OPEN_VIA_CLIENT;if(!e)return[n,i];t="dir"===e.object.type?[n,i,r,o,a,c]:[a,c,r,o,h];var d=s.props.userPerm,u=p.c.getUserPermission(d),m=u.isCustomPermission,g=u.customPermission;if(!m)return t;t=[];var f=g.permission,v=f.create,x=f.modify,y=f.delete,D=f.copy;return e?("dir"===e.object.type&&v&&t.push(n,i),D&&t.push(r),x&&t.push(o,a),y&&t.push(c),"dir"!==e.object.type&&t.push(h),t):(v&&t.push(n,i),t)},s.onShowMenu=function(){s.freezeItem()},s.onHideMenu=function(){s.unfreezeItem()},s.state={isItemFreezed:!1,isTreeViewDropTipShow:!1};var r=e.userPerm;s.canDrop="rw"===r;var o=p.c.getUserPermission(r),a=o.isCustomPermission,c=o.customPermission;if(a){var h=c.permission.modify;s.canDrop=h}return s}return(0,s.Z)(n,[{key:"render",value:function(){return(0,d.jsxs)("div",{className:"tree-view tree ".concat(this.state.isTreeViewDropTipShow&&this.canDrop?"tree-view-drop":""),onDrop:this.onNodeDrop,onDragEnter:this.onNodeDragEnter,onDragLeave:this.onNodeDragLeave,onMouseDown:this.onMouseDown,onContextMenu:this.onContextMenu,onClick:this.onContainerClick,children:[(0,d.jsx)(u,{userPerm:this.props.userPerm,node:this.props.treeData.root,currentPath:this.props.currentPath,paddingLeft:20,isNodeMenuShow:this.props.isNodeMenuShow,isItemFreezed:this.state.isItemFreezed,onNodeClick:this.onNodeClick,onMenuItemClick:this.props.onMenuItemClick,onNodeExpanded:this.props.onNodeExpanded,onNodeCollapse:this.props.onNodeCollapse,onNodeDragStart:this.onNodeDragStart,freezeItem:this.freezeItem,unfreezeItem:this.unfreezeItem,onNodeDragMove:this.onNodeDragMove,onNodeDrop:this.onNodeDrop,onNodeDragEnter:this.onNodeDragEnter,onNodeDragLeave:this.onNodeDragLeave,handleContextClick:this.handleContextClick}),(0,d.jsx)(m.Z,{id:"tree-node-contextmenu",onMenuItemClick:this.onMenuItemClick,onHideMenu:this.onHideMenu,onShowMenu:this.onShowMenu})]})}}]),n}(a.Component)},41433:function(e){function t(){}e.exports=function(e,n,i){var s=!1;return i=i||t,r.count=e,0===e?n():r;function r(e,t){if(r.count<=0)throw new Error("after called too many times");--r.count,e?(s=!0,n(e),n=i):0!==r.count||s||n(null,t)}}},72855:function(e){e.exports=function(e,t,n){var i=e.byteLength;if(t=t||0,n=n||i,e.slice)return e.slice(t,n);if(t<0&&(t+=i),n<0&&(n+=i),n>i&&(n=i),t>=i||t>=n||0===i)return new ArrayBuffer(0);for(var s=new Uint8Array(e),r=new Uint8Array(n-t),o=t,a=0;o0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=t,t.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},t.prototype.reset=function(){this.attempts=0},t.prototype.setMin=function(e){this.ms=e},t.prototype.setMax=function(e){this.max=e},t.prototype.setJitter=function(e){this.jitter=e}},55354:function(e,t){!function(e){"use strict";t.encode=function(t){var n,i=new Uint8Array(t),s=i.length,r="";for(n=0;n>2],r+=e[(3&i[n])<<4|i[n+1]>>4],r+=e[(15&i[n+1])<<2|i[n+2]>>6],r+=e[63&i[n+2]];return s%3===2?r=r.substring(0,r.length-1)+"=":s%3===1&&(r=r.substring(0,r.length-2)+"=="),r},t.decode=function(t){var n,i,s,r,o,a=.75*t.length,l=t.length,c=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var h=new ArrayBuffer(a),p=new Uint8Array(h);for(n=0;n>4,p[c++]=(15&s)<<4|r>>2,p[c++]=(3&r)<<6|63&o;return h}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},86202:function(e){var t="undefined"!==typeof t?t:"undefined"!==typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!==typeof MSBlobBuilder?MSBlobBuilder:"undefined"!==typeof MozBlobBuilder&&MozBlobBuilder,n=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),i=n&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),s=t&&t.prototype.append&&t.prototype.getBlob;function r(e){return e.map((function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var n=new Uint8Array(e.byteLength);n.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=n.buffer}return t}return e}))}function o(e,n){n=n||{};var i=new t;return r(e).forEach((function(e){i.append(e)})),n.type?i.getBlob(n.type):i.getBlob()}function a(e,t){return new Blob(r(e),t||{})}"undefined"!==typeof Blob&&(o.prototype=Blob.prototype,a.prototype=Blob.prototype),e.exports=n?i?Blob:a:s?o:void 0},51813:function(e){var t=[].slice;e.exports=function(e,n){if("string"==typeof n&&(n=e[n]),"function"!=typeof n)throw new Error("bind() requires a function");var i=t.call(arguments,2);return function(){return n.apply(e,i.concat(t.call(arguments)))}}},69380:function(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+e];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var s=0;s0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}e.exports=h,h.priorWebsocketSuccess=!1,s(h.prototype),h.protocol=a.protocol,h.Socket=h,h.Transport=n(21776),h.transports=n(88011),h.parser=n(46211),h.prototype.createTransport=function(e){r('creating transport "%s"',e);var t=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.query);t.EIO=a.protocol,t.transport=e;var n=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new i[e]({query:t,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,withCredentials:n.withCredentials||this.withCredentials,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},h.prototype.open=function(){var e;if(this.rememberUpgrade&&h.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout((function(){t.emit("error","No transports available")}),0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(n){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},h.prototype.setTransport=function(e){r("setting transport %s",e.name);var t=this;this.transport&&(r("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",(function(){t.onDrain()})).on("packet",(function(e){t.onPacket(e)})).on("error",(function(e){t.onError(e)})).on("close",(function(){t.onClose("transport close")}))},h.prototype.probe=function(e){r('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),n=!1,i=this;function s(){if(i.onlyBinaryUpgrades){var s=!this.supportsBinary&&i.transport.supportsBinary;n=n||s}n||(r('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(function(s){if(!n)if("pong"===s.type&&"probe"===s.data){if(r('probe transport "%s" pong',e),i.upgrading=!0,i.emit("upgrading",t),!t)return;h.priorWebsocketSuccess="websocket"===t.name,r('pausing current transport "%s"',i.transport.name),i.transport.pause((function(){n||"closed"!==i.readyState&&(r("changing transport and sending upgrade packet"),d(),i.setTransport(t),t.send([{type:"upgrade"}]),i.emit("upgrade",t),t=null,i.upgrading=!1,i.flush())}))}else{r('probe transport "%s" failed',e);var o=new Error("probe error");o.transport=t.name,i.emit("upgradeError",o)}})))}function o(){n||(n=!0,d(),t.close(),t=null)}function a(n){var s=new Error("probe error: "+n);s.transport=t.name,o(),r('probe transport "%s" failed because of error: %s',e,n),i.emit("upgradeError",s)}function l(){a("transport closed")}function c(){a("socket closed")}function p(e){t&&e.name!==t.name&&(r('"%s" works - aborting "%s"',e.name,t.name),o())}function d(){t.removeListener("open",s),t.removeListener("error",a),t.removeListener("close",l),i.removeListener("close",c),i.removeListener("upgrading",p)}h.priorWebsocketSuccess=!1,t.once("open",s),t.once("error",a),t.once("close",l),this.once("close",c),this.once("upgrading",p),t.open()},h.prototype.onOpen=function(){if(r("socket open"),this.readyState="open",h.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){r("starting upgrade probes");for(var e=0,t=this.upgrades.length;e';i=document.createElement(e)}catch(t){(i=document.createElement("iframe")).name=n.iframeId,i.src="javascript:0"}i.id=n.iframeId,n.form.appendChild(i),n.iframe=i}this.form.action=this.uri(),h(),e=e.replace(l,"\\\n"),this.area.value=e.replace(a,"\\n");try{this.form.submit()}catch(p){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&c()}:this.iframe.onload=c}},13233:function(e,t,n){var i=n(38832),s=n(91450),r=n(69380),o=n(20690),a=n(53489)("engine.io-client:polling-xhr"),l=n(87925);function c(){}function h(e){if(s.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,"undefined"!==typeof location){var t="https:"===location.protocol,n=location.port;n||(n=t?443:80),this.xd="undefined"!==typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}}function p(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}if(e.exports=h,e.exports.Request=p,o(h,s),h.prototype.supportsBinary=!0,h.prototype.request=function(e){return(e=e||{}).uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new p(e)},h.prototype.doWrite=function(e,t){var n="string"!==typeof e&&void 0!==e,i=this.request({method:"POST",data:e,isBinary:n}),s=this;i.on("success",t),i.on("error",(function(e){s.onError("xhr post error",e)})),this.sendXhr=i},h.prototype.doPoll=function(){a("xhr poll");var e=this.request(),t=this;e.on("data",(function(e){t.onData(e)})),e.on("error",(function(e){t.onError("xhr poll error",e)})),this.pollXhr=e},r(p.prototype),p.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new i(e),n=this;try{a("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var s in t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(s)&&t.setRequestHeader(s,this.extraHeaders[s])}catch(r){}if("POST"===this.method)try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(r){}try{t.setRequestHeader("Accept","*/*")}catch(r){}"withCredentials"in t&&(t.withCredentials=this.withCredentials),this.requestTimeout&&(t.timeout=this.requestTimeout),this.hasXDR()?(t.onload=function(){n.onLoad()},t.onerror=function(){n.onError(t.responseText)}):t.onreadystatechange=function(){if(2===t.readyState)try{var e=t.getResponseHeader("Content-Type");(n.supportsBinary&&"application/octet-stream"===e||"application/octet-stream; charset=UTF-8"===e)&&(t.responseType="arraybuffer")}catch(r){}4===t.readyState&&(200===t.status||1223===t.status?n.onLoad():setTimeout((function(){n.onError("number"===typeof t.status?t.status:0)}),0))},a("xhr data %s",this.data),t.send(this.data)}catch(r){return void setTimeout((function(){n.onError(r)}),0)}"undefined"!==typeof document&&(this.index=p.requestsCount++,p.requests[this.index]=this)},p.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},p.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},p.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},p.prototype.cleanup=function(e){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=c:this.xhr.onreadystatechange=c,e)try{this.xhr.abort()}catch(t){}"undefined"!==typeof document&&delete p.requests[this.index],this.xhr=null}},p.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(n){}e=("application/octet-stream"===t||"application/octet-stream; charset=UTF-8"===t)&&this.xhr.response||this.xhr.responseText}catch(n){this.onError(n)}null!=e&&this.onData(e)},p.prototype.hasXDR=function(){return"undefined"!==typeof XDomainRequest&&!this.xs&&this.enablesXDR},p.prototype.abort=function(){this.cleanup()},p.requestsCount=0,p.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",d);else if("function"===typeof addEventListener){addEventListener("onpagehide"in l?"pagehide":"unload",d,!1)}function d(){for(var e in p.requests)p.requests.hasOwnProperty(e)&&p.requests[e].abort()}},91450:function(e,t,n){var i=n(21776),s=n(31905),r=n(46211),o=n(20690),a=n(40276),l=n(53489)("engine.io-client:polling");e.exports=h;var c=null!=new(n(38832))({xdomain:!1}).responseType;function h(e){var t=e&&e.forceBase64;c&&!t||(this.supportsBinary=!1),i.call(this,e)}o(h,i),h.prototype.name="polling",h.prototype.doOpen=function(){this.poll()},h.prototype.pause=function(e){var t=this;function n(){l("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var i=0;this.polling&&(l("we are currently polling - waiting to pause"),i++,this.once("pollComplete",(function(){l("pre-pause polling complete"),--i||n()}))),this.writable||(l("we are currently writing - waiting to pause"),i++,this.once("drain",(function(){l("pre-pause writing complete"),--i||n()})))}else n()},h.prototype.poll=function(){l("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},h.prototype.onData=function(e){var t=this;l("polling got data %s",e);r.decodePayload(e,this.socket.binaryType,(function(e,n,i){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():l('ignoring poll - transport state "%s"',this.readyState))},h.prototype.doClose=function(){var e=this;function t(){l("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(l("transport open - closing"),t()):(l("transport not open - deferring close"),this.once("open",t))},h.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};r.encodePayload(e,this.supportsBinary,(function(e){t.doWrite(e,n)}))},h.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=a()),this.supportsBinary||e.sid||(e.b64=1),e=s.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},86177:function(e,t,n){var i,s,r=n(40918).lW,o=n(21776),a=n(46211),l=n(31905),c=n(20690),h=n(40276),p=n(53489)("engine.io-client:websocket");if("undefined"!==typeof WebSocket?i=WebSocket:"undefined"!==typeof self&&(i=self.WebSocket||self.MozWebSocket),"undefined"===typeof window)try{s=n(77020)}catch(m){}var d=i||s;function u(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=i&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(d=s),o.call(this,e)}e.exports=u,c(u,o),u.prototype.name="websocket",u.prototype.supportsBinary=!0,u.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,n={};this.isReactNative||(n.agent=this.agent,n.perMessageDeflate=this.perMessageDeflate,n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new d(e,t):new d(e):new d(e,t,n)}catch(i){return this.emit("error",i)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},u.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},u.prototype.write=function(e){var t=this;this.writable=!1;for(var n=e.length,i=0,s=n;i=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(s())},90197:function(e,t,n){function i(e){var n;function i(){if(i.enabled){var e=i,s=+new Date,r=s-(n||s);e.diff=r,e.prev=n,e.curr=s,n=s;for(var o=new Array(arguments.length),a=0;a0)return function(e){if((e=String(e)).length>100)return;var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o)return;var a=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*r;case"days":case"day":case"d":return a*s;case"hours":case"hour":case"hrs":case"hr":case"h":return a*i;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===c&&!1===isNaN(e))return a.long?o(l=e,s,"day")||o(l,i,"hour")||o(l,n,"minute")||o(l,t,"second")||l+" ms":function(e){if(e>=s)return Math.round(e/s)+"d";if(e>=i)return Math.round(e/i)+"h";if(e>=n)return Math.round(e/n)+"m";if(e>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},46211:function(e,t,n){var i,s=n(61899),r=n(60224),o=n(72855),a=n(41433),l=n(16097);"undefined"!==typeof ArrayBuffer&&(i=n(55354));var c="undefined"!==typeof navigator&&/Android/i.test(navigator.userAgent),h="undefined"!==typeof navigator&&/PhantomJS/i.test(navigator.userAgent),p=c||h;t.protocol=3;var d=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},u=s(d),m={type:"error",data:"parser error"},g=n(86202);function f(e,t,n){for(var i=new Array(e.length),s=a(e.length,n),r=function(e,n,s){t(n,(function(t,n){i[e]=n,s(t,i)}))},o=0;o1?{type:u[s],data:e.substring(1)}:{type:u[s]}:m}s=new Uint8Array(e)[0];var r=o(e,1);return g&&"blob"===n&&(r=new g([r])),{type:u[s],data:r}},t.decodeBase64Packet=function(e,t){var n=u[e.charAt(0)];if(!i)return{type:n,data:{base64:!0,data:e.substr(1)}};var s=i.decode(e.substr(1));return"blob"===t&&g&&(s=new g([s])),{type:n,data:s}},t.encodePayload=function(e,n,i){"function"===typeof n&&(i=n,n=null);var s=r(e);if(n&&s)return g&&!p?t.encodePayloadAsBlob(e,i):t.encodePayloadAsArrayBuffer(e,i);if(!e.length)return i("0:");f(e,(function(e,i){t.encodePacket(e,!!s&&n,!1,(function(e){i(null,function(e){return e.length+":"+e}(e))}))}),(function(e,t){return i(t.join(""))}))},t.decodePayload=function(e,n,i){if("string"!==typeof e)return t.decodePayloadAsBinary(e,n,i);var s;if("function"===typeof n&&(i=n,n=null),""===e)return i(m,0,1);for(var r,o,a="",l=0,c=e.length;l0;){for(var a=new Uint8Array(s),l=0===a[0],c="",h=1;255!==a[h];h++){if(c.length>310)return i(m,0,1);c+=a[h]}s=o(s,2+c.length),c=parseInt(c);var p=o(s,0,c);if(l)try{p=String.fromCharCode.apply(null,new Uint8Array(p))}catch(g){var d=new Uint8Array(p);p="";for(h=0;h=55296&&t<=56319&&s=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function a(e,t){return s(e>>t&63|128)}function l(e,t){if(0==(4294967168&e))return s(e);var n="";return 0==(4294965248&e)?n=s(e>>6&31|192):0==(4294901760&e)?(o(e,t)||(e=65533),n=s(e>>12&15|224),n+=a(e,6)):0==(4292870144&e)&&(n=s(e>>18&7|240),n+=a(e,12),n+=a(e,6)),n+=s(63&e|128)}function c(){if(i>=n)throw Error("Invalid byte index");var e=255&t[i];if(i++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function h(e){var s,r;if(i>n)throw Error("Invalid byte index");if(i==n)return!1;if(s=255&t[i],i++,0==(128&s))return s;if(192==(224&s)){if((r=(31&s)<<6|c())>=128)return r;throw Error("Invalid continuation byte")}if(224==(240&s)){if((r=(15&s)<<12|c()<<6|c())>=2048)return o(r,e)?r:65533;throw Error("Invalid continuation byte")}if(240==(248&s)&&(r=(7&s)<<18|c()<<12|c()<<6|c())>=65536&&r<=1114111)return r;throw Error("Invalid UTF-8 detected")}e.exports={version:"2.1.2",encode:function(e,t){for(var n=!1!==(t=t||{}).strict,i=r(e),s=i.length,o=-1,a="";++o65535&&(r+=s((t-=65536)>>>10&1023|55296),t=56320|1023&t),r+=s(t);return r}(c)}}},60224:function(e,t,n){var i=n(40918).lW,s=n(12833),r=Object.prototype.toString,o="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===r.call(Blob),a="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===r.call(File);e.exports=function e(t){if(!t||"object"!==typeof t)return!1;if(s(t)){for(var n=0,r=t.length;n0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},u.prototype.cleanup=function(){c("cleanup");for(var e=this.subs.length,t=0;t=this._reconnectionAttempts)c("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();c("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout((function(){e.skipReconnect||(c("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open((function(t){t?(c("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(c("reconnect success"),e.onreconnect())})))}),t);this.subs.push({destroy:function(){clearTimeout(n)}})}},u.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},10950:function(e){e.exports=function(e,t,n){return e.on(t,n),{destroy:function(){e.removeListener(t,n)}}}},52169:function(e,t,n){var i=n(44684),s=n(69380),r=n(19678),o=n(10950),a=n(51813),l=n(33136)("socket.io-client:socket"),c=n(31905),h=n(60224);e.exports=u;var p={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},d=s.prototype.emit;function u(e,t,n){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}s(u.prototype),u.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[o(e,"open",a(this,"onopen")),o(e,"packet",a(this,"onpacket")),o(e,"close",a(this,"onclose"))]}},u.prototype.open=u.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.reconnecting||this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},u.prototype.send=function(){var e=r(arguments);return e.unshift("message"),this.emit.apply(this,e),this},u.prototype.emit=function(e){if(p.hasOwnProperty(e))return d.apply(this,arguments),this;var t=r(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:h(t))?i.BINARY_EVENT:i.EVENT,data:t,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"===typeof t[t.length-1]&&(l("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},u.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},u.prototype.onopen=function(){if(l("transport is open - connecting"),"/"!==this.nsp)if(this.query){var e="object"===typeof this.query?c.encode(this.query):this.query;l("sending connect packet with query %s",e),this.packet({type:i.CONNECT,query:e})}else this.packet({type:i.CONNECT})},u.prototype.onclose=function(e){l("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},u.prototype.onpacket=function(e){var t=e.nsp===this.nsp,n=e.type===i.ERROR&&"/"===e.nsp;if(t||n)switch(e.type){case i.CONNECT:this.onconnect();break;case i.EVENT:case i.BINARY_EVENT:this.onevent(e);break;case i.ACK:case i.BINARY_ACK:this.onack(e);break;case i.DISCONNECT:this.ondisconnect();break;case i.ERROR:this.emit("error",e.data)}},u.prototype.onevent=function(e){var t=e.data||[];l("emitting event %j",t),null!=e.id&&(l("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?d.apply(this,t):this.receiveBuffer.push(t)},u.prototype.ack=function(e){var t=this,n=!1;return function(){if(!n){n=!0;var s=r(arguments);l("sending ack %j",s),t.packet({type:h(s)?i.BINARY_ACK:i.ACK,id:e,data:s})}}},u.prototype.onack=function(e){var t=this.acks[e.id];"function"===typeof t?(l("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):l("bad ack %s",e.id)},u.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},u.prototype.emitBuffered=function(){var e;for(e=0;e=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(s())},9266:function(e,t,n){function i(e){var n;function i(){if(i.enabled){var e=i,s=+new Date,r=s-(n||s);e.diff=r,e.prev=n,e.curr=s,n=s;for(var o=new Array(arguments.length),a=0;a0)return function(e){if((e=String(e)).length>100)return;var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o)return;var a=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*r;case"days":case"day":case"d":return a*s;case"hours":case"hour":case"hrs":case"hr":case"h":return a*i;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===c&&!1===isNaN(e))return a.long?o(l=e,s,"day")||o(l,i,"hour")||o(l,n,"minute")||o(l,t,"second")||l+" ms":function(e){if(e>=s)return Math.round(e/s)+"d";if(e>=i)return Math.round(e/i)+"h";if(e>=n)return Math.round(e/n)+"m";if(e>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},91343:function(e,t,n){var i=n(56675),s=n(37834),r=Object.prototype.toString,o="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===r.call(Blob),a="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===r.call(File);function l(e,t){if(!e)return e;if(s(e)){var n={_placeholder:!0,num:t.length};return t.push(e),n}if(i(e)){for(var r=new Array(e.length),o=0;o=0&&e.num=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(s())},5619:function(e,t,n){function i(e){var n;function i(){if(i.enabled){var e=i,s=+new Date,r=s-(n||s);e.diff=r,e.prev=n,e.curr=s,n=s;for(var o=new Array(arguments.length),a=0;a0)return function(e){if((e=String(e)).length>100)return;var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o)return;var a=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*r;case"days":case"day":case"d":return a*s;case"hours":case"hour":case"hrs":case"hr":case"h":return a*i;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===c&&!1===isNaN(e))return a.long?o(l=e,s,"day")||o(l,i,"hour")||o(l,n,"minute")||o(l,t,"second")||l+" ms":function(e){if(e>=s)return Math.round(e/s)+"d";if(e>=i)return Math.round(e/i)+"h";if(e>=n)return Math.round(e/n)+"m";if(e>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},19678:function(e){e.exports=function(e,t){for(var n=[],i=(t=t||0)||0;i0);return t}function l(){var e=a(+new Date);return e!==t?(r=0,t=e):e+"."+a(r++)}for(;o=e.notificationsWrapperRef.offsetHeight&&e.props.listNotifications&&e.props.listNotifications()},e}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.handleOutsideClick,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.handleOutsideClick,!0)}},{key:"render",value:function(){var e=this,t=this.props,n=t.headerText,r=t.bodyText,i=t.footerText;return(0,u.jsx)(l.Z,{className:"notification-wrapper",target:"notification-popover",isOpen:!0,fade:!1,hideArrow:!0,placement:"bottom",children:(0,u.jsxs)("div",{className:"notification-container",ref:function(t){return e.notificationContainerRef=t},children:[(0,u.jsxs)("div",{className:"notification-header",children:[n,(0,u.jsx)("span",{className:"sf3-font sf3-font-x-01 notification-close-icon",onClick:this.props.onNotificationListToggle})]}),(0,u.jsxs)("div",{className:"notification-body",children:[(0,u.jsx)("div",{className:"mark-notifications",onClick:this.props.onMarkAllNotifications,children:r}),(0,u.jsx)("div",{className:"notification-list-container",onScroll:this.onHandleScroll,ref:function(t){return e.notificationListRef=t},children:(0,u.jsx)("div",{ref:function(t){return e.notificationsWrapperRef=t},children:this.props.children})}),(0,u.jsx)("div",{className:"notification-footer",onClick:this.onNotificationDialogToggle,children:i})]})]})})}}]),n}(s.Component);c.defaultProps={headerText:"",bodyText:"",footerText:""};var d=n(4514),f=n(61805),p=n(70816),h=n.n(p),O=n(83854),m=function(e){(0,a.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,a=new Array(i),o=0;o"+i+"",c=""+s+"";return{avatar_url:r,notice:l=(l=l.replace("{user_link}",u)).replace("{group_link}",c)}}if("repo_share"===t){var d=n.share_from_user_avatar_url,p=n.share_from_user_name,h=n.repo_name,m=f.ze+"library/"+n.repo_id+"/"+h+"/",v="";return v=(v=(v="/"===n.path?(0,f.ih)("{share_from} has shared a library named {repo_link} to you."):(0,f.ih)("{share_from} has shared a folder named {repo_link} to you.")).replace("{share_from}",p)).replace("{repo_link}","{tagA}".concat(h,"{/tagA}")),{avatar_url:d,notice:v=(v=(v=O.c.HTMLescape(v)).replace("{tagA}",""))).replace("{/tagA}","")}}if("repo_share_perm_change"===t){var g=n.share_from_user_avatar_url,y=n.share_from_user_name,b=n.permission,_=n.repo_name,S=f.ze+"library/"+n.repo_id+"/"+_+"/",w="";return w=(w=(w=(w="/"===n.path?(0,f.ih)("{share_from} has changed the permission of library {repo_link} to {permission}."):(0,f.ih)("{share_from} has changed the permission of folder {repo_link} to {permission}.")).replace("{share_from}",y)).replace("{repo_link}","{tagA}".concat(_,"{/tagA}"))).replace("{permission}",b),{avatar_url:g,notice:w=(w=(w=O.c.HTMLescape(w)).replace("{tagA}",""))).replace("{/tagA}","")}}if("repo_share_perm_delete"===t){var k=n.share_from_user_avatar_url,T=n.share_from_user_name,x=n.repo_name,E="";return E=(E=(E="/"===n.path?(0,f.ih)("{share_from} has cancelled the sharing of library {repo_name}."):(0,f.ih)("{share_from} has cancelled the sharing of folder {repo_name}.")).replace("{share_from}",T)).replace("{repo_name}",x),{avatar_url:k,notice:E=O.c.HTMLescape(E)}}if("repo_share_to_group"===t){var P=n.share_from_user_avatar_url,$=n.share_from_user_name,Q=n.repo_name,C=f.ze+"library/"+n.repo_id+"/"+Q+"/",D=f.ze+"group/"+n.group_id+"/",A=n.group_name,R="";return R=(R=(R=(R="/"===n.path?(0,f.ih)("{share_from} has shared a library named {repo_link} to group {group_link}."):(0,f.ih)("{share_from} has shared a folder named {repo_link} to group {group_link}.")).replace("{share_from}",$)).replace("{repo_link}","{tagA}".concat(Q,"{/tagA}"))).replace("{group_link}","{tagB}".concat(A,"{/tagB}")),{avatar_url:P,notice:R=(R=(R=(R=(R=O.c.HTMLescape(R)).replace("{tagA}",""))).replace("{/tagA}","")).replace("{tagB}",""))).replace("{/tagB}","")}}if("repo_transfer"===t){var X=n.transfer_from_user_avatar_url,L=n.transfer_from_user_name,M=n.repo_name,N=f.ze+"library/"+n.repo_id+"/"+M+"/",I=(0,f.ih)("{user} has transfered a library named {repo_link} to you.");return I=(I=I.replace("{user}",L)).replace("{repo_link}","{tagA}".concat(M,"{/tagA}")),{avatar_url:X,notice:I=(I=(I=O.c.HTMLescape(I)).replace("{tagA}",""))).replace("{/tagA}","")}}if("file_uploaded"===t){var Z=n.uploaded_user_avatar_url,U=n.file_name,F=f.ze+"lib/"+n.repo_id+"/file"+n.file_path,j=n.folder_name,Y=f.ze+"library/"+n.repo_id+"/"+n.repo_name+n.folder_path,q="";return n.repo_id?(q=(q=(q=(0,f.ih)("A file named {upload_file_link} is uploaded to {uploaded_link}.")).replace("{upload_file_link}","{tagA}".concat(U,"{/tagA}"))).replace("{uploaded_link}","{tagB}".concat(j,"{/tagB}")),q=(q=(q=(q=(q=O.c.HTMLescape(q)).replace("{tagA}",""))).replace("{/tagA}","")).replace("{tagB}",""))).replace("{/tagB}","")):(q=(q=(0,f.ih)("A file named {upload_file_link} is uploaded to {uploaded_link}.")).replace("{upload_file_link}","".concat(U)),q=(q=O.c.HTMLescape(q)).replace("{uploaded_link}","Deleted Library")),{avatar_url:Z,notice:q}}if("draft_reviewer"===t){var W=n.request_user_avatat_url,B=n.request_user_name,z=n.draft_id,V=f.ze+"drafts/"+z+"/",G=(0,f.ih)("{from_user} has sent you a request for {draft_link}."),H=""+(0,f.ih)("Draft")+"#"+z+"";return{avatar_url:W,notice:G=(G=G.replace("{from_user}",B)).replace("{draft_link}",H)}}if("repo_monitor"===t){var J=n.op_user_avatar_url,K=n.op_user_email,ee=n.op_user_name,te=n.op_type,ne=n.repo_id,re=n.repo_name,ie=n.obj_type,ae=n.obj_path_list,oe=n.old_obj_path_list,se="".concat(f.ze,"profile/").concat(encodeURIComponent(K)),le="').concat(O.c.HTMLescape(ee),""),ue="".concat(f.ze,"library/").concat(ne,"/").concat(encodeURIComponent(re),"/"),ce="').concat(O.c.HTMLescape(re),""),de="";if("file"==ie){var fe=O.c.getFileName(ae[0]),pe="".concat(f.ze,"lib/").concat(ne,"/file").concat(O.c.encodePath(ae[0])),he="').concat(O.c.HTMLescape(fe),"");switch(te){case"create":de=1==ae.length?(0,f.ih)("{user} created file {fileName} in library {libraryName}."):(0,f.ih)("{user} created file {fileName} and {fileCount} other file(s) in library {libraryName}.");break;case"delete":de=(de=1==ae.length?(0,f.ih)("{user} deleted file {fileName} in library {libraryName}."):(0,f.ih)("{user} deleted file {fileName} and {fileCount} other file(s) in library {libraryName}.")).replace("{fileName}",fe);break;case"recover":de=(0,f.ih)("{user} restored file {fileName} in library {libraryName}.");break;case"rename":de=(de=(0,f.ih)("{user} renamed file {oldFileName} {fileName} in library {libraryName}.")).replace("{oldFileName}",O.c.getFileName(oe[0]));break;case"move":de=1==ae.length?(0,f.ih)("{user} moved file {fileName} in library {libraryName}."):(0,f.ih)("{user} moved file {fileName} and {fileCount} other file(s) in library {libraryName}.");break;case"edit":de=(0,f.ih)("{user} updated file {fileName} in library {libraryName}.")}de=(de=de.replace("{fileName}",he)).replace("{fileCount}",ae.length-1)}else{var Oe=O.c.getFolderName(ae[0]),me="".concat(f.ze,"library/").concat(ne,"/").concat(encodeURIComponent(re)).concat(O.c.encodePath(ae[0])),ve="').concat(O.c.HTMLescape(Oe),"");switch(n.op_type){case"create":de=1==ae.length?(0,f.ih)("{user} created folder {folderName} in library {libraryName}."):(0,f.ih)("{user} created folder {folderName} and {folderCount} other folder(s) in library {libraryName}.");break;case"delete":de=(de=1==ae.length?(0,f.ih)("{user} deleted folder {folderName} in library {libraryName}."):(0,f.ih)("{user} deleted folder {folderName} and {folderCount} other folder(s) in library {libraryName}.")).replace("{folderName}",Oe);break;case"recover":de=(0,f.ih)("{user} restored folder {folderName} in library {libraryName}.");break;case"rename":de=(de=(0,f.ih)("{user} renamed folder {oldFolderName} {folderName} in library {libraryName}.")).replace("{oldFolderName}",O.c.getFolderName(oe[0]));break;case"move":de=1==ae.length?(0,f.ih)("{user} moved folder {folderName} in library {libraryName}."):(0,f.ih)("{user} moved folder {folderName} and {folderCount} other folder(s) in library {libraryName}.")}de=(de=de.replace("{folderName}",ve)).replace("{folderCount}",ae.length-1)}return{avatar_url:J,notice:de=(de=de.replace("{user}",le)).replace("{libraryName}",ce)}}if("deleted_files"===t){var ge=n.repo_id,ye=n.repo_name,be="".concat(f.ze,"library/").concat(ge,"/").concat(encodeURIComponent(ye),"/"),_e="').concat(O.c.HTMLescape(ye),""),Se=(0,f.ih)("Your library {libraryName} has recently deleted a large number of files.");return{avatar_url:null,notice:Se=Se.replace("{libraryName}",_e)}}if("saml_sso_failed"===t){var we=n.error_msg;return{avatar_url:null,notice:(0,f.ih)(we)}}return{avatar_url:null,notice:null}}},{key:"render",value:function(){var e=this.props.noticeItem,t=this.generatorNoticeInfo(),n=t.avatar_url,r=t.notice;return n||r?this.props.tr?(0,u.jsxs)("tr",{className:e.seen?"read":"unread font-weight-bold",children:[(0,u.jsx)("td",{className:"text-center",children:(0,u.jsx)("img",{src:n,width:"32",height:"32",className:"avatar",alt:""})}),(0,u.jsx)("td",{className:"pr-1 pr-md-8",children:(0,u.jsx)("p",{className:"m-0",dangerouslySetInnerHTML:{__html:r}})}),(0,u.jsx)("td",{children:h()(e.time).fromNow()})]}):(0,u.jsx)("li",{onClick:this.onNoticeItemClick,className:e.seen?"read":"unread",children:(0,u.jsxs)("div",{className:"notice-item",children:[(0,u.jsxs)("div",{className:"main-info",children:[(0,u.jsx)("img",{src:n,width:"32",height:"32",className:"avatar",alt:""}),(0,u.jsx)("p",{className:"brief",dangerouslySetInnerHTML:{__html:r}})]}),(0,u.jsx)("p",{className:"time",children:h()(e.time).fromNow()})]})}):""}}]),n}(s.Component),v=m,g=n(93433),y=n(13380),b=n(25417),_=n(72611),S=n(57124),w=n(42995),k=n(12756),T=n(12213),x=n(51282),E=(n(98391),n(53379),function(e){(0,a.Z)(n,e);var t=(0,o.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).getItems=function(e){i.setState({isLoading:!0}),d.I.listNotifications(e,20).then((function(t){i.setState({isLoading:!1,items:[].concat((0,g.Z)(i.state.items),(0,g.Z)(t.data.notification_list)),currentPage:e,hasNextPage:O.c.hasNextPage(e,20,t.data.count)})})).catch((function(e){i.setState({isLoading:!1,errorMsg:O.c.getErrorMsg(e,!0)})}))},i.markAllRead=function(){d.I.updateNotifications().then((function(e){i.setState({items:i.state.items.map((function(e){return e.seen=!0,e}))})})).catch((function(e){i.setState({isLoading:!1,errorMsg:O.c.getErrorMsg(e,!0)})}))},i.clearAll=function(){d.I.deleteNotifications().then((function(e){i.setState({items:[]})})).catch((function(e){i.setState({isLoading:!1,errorMsg:O.c.getErrorMsg(e,!0)})}))},i.toggle=function(){i.props.onNotificationDialogToggle()},i.toggleDropDownMenu=function(){i.setState({isItemMenuShow:!i.state.isItemMenuShow})},i.onHandleScroll=function(){i.state.hasNextPage&&!i.state.isLoading&&i.tableRef&&i.notificationTableRef.offsetHeight+i.notificationTableRef.scrollTop+1>=i.tableRef.offsetHeight&&i.getItems(i.state.currentPage+1)},i.renderHeaderRowBtn=function(){return(0,u.jsxs)("div",{className:"notification-header-close",children:[(0,u.jsxs)(y.Z,{isOpen:i.state.isItemMenuShow,toggle:i.toggleDropDownMenu,children:[(0,u.jsx)(b.Z,{tag:"span","data-toggle":"dropdown","aria-expanded":i.state.isItemMenuShow,className:"notification-dropdown-toggle",children:(0,u.jsx)("span",{className:"sf3-font sf3-font-more-level item-dropdown-icon"})}),(0,u.jsxs)(_.Z,{right:!0,className:"dtable-dropdown-menu large",children:[(0,u.jsx)(S.Z,{onClick:i.markAllRead,children:(0,f.ih)("Mark all read")}),(0,u.jsx)(S.Z,{onClick:i.clearAll,children:(0,f.ih)("Clear")})]})]}),(0,u.jsx)("span",{className:"sf3-font sf3-font-x-01 notification-close-icon",onClick:i.toggle})]})},i.state={isLoading:!0,errorMsg:"",currentPage:1,hasNextPage:!1,items:[],isItemMenuShow:!1},i}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){var e=this,t=new URL(window.location).searchParams,n=this.state.currentPage;this.setState({currentPage:parseInt(t.get("page")||n)},(function(){e.getItems(e.state.currentPage)}))}},{key:"render",value:function(){var e,t=this,n=this.state,r=n.isLoading,i=n.errorMsg,a=n.items;if(i)e=(0,u.jsx)("p",{className:"error mt-6 text-center",children:i});else{var o=O.c.isDesktop()?[{width:"7%",text:""},{width:"73%",text:(0,f.ih)("Message")},{width:"20%",text:(0,f.ih)("Time")}]:[{width:"15%",text:""},{width:"52%",text:(0,f.ih)("Message")},{width:"33%",text:(0,f.ih)("Time")}];e=(0,u.jsxs)("table",{className:"table-hover",ref:function(e){return t.tableRef=e},children:[(0,u.jsx)("thead",{children:(0,u.jsx)("tr",{children:o.map((function(e,t){return(0,u.jsx)("th",{width:e.width,children:e.text},t)}))})}),(0,u.jsx)("tbody",{children:a.map((function(e,t){return(0,u.jsx)(v,{noticeItem:e,tr:!0},t)}))})]}),r&&(e=(0,u.jsxs)(u.Fragment,{children:[e,(0,u.jsx)(x.Z,{})]}))}return(0,u.jsxs)(w.Z,{isOpen:!0,toggle:this.toggle,className:"notification-list-dialog",contentClassName:"notification-list-content",zIndex:1046,children:[(0,u.jsx)(k.Z,{close:this.renderHeaderRowBtn(),toggle:this.toggle,children:(0,f.ih)("Notifications")}),(0,u.jsx)(T.Z,{className:"notification-modal-body",children:(0,u.jsx)("div",{className:"notification-dialog-body",ref:function(e){return t.notificationTableRef=e},onScroll:this.onHandleScroll,children:e})})]})}}]),n}(s.Component)),P=function(e){(0,a.Z)(n,e);var t=(0,o.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).onClick=function(e){e.preventDefault(),i.state.showNotice?(d.I.updateNotifications(),i.setState({showNotice:!1,unseenCount:0})):(i.loadNotices(),i.setState({showNotice:!0}))},i.loadNotices=function(){d.I.listNotifications(1,5).then((function(e){var t=e.data.notification_list;i.setState({noticeList:t})}))},i.onNoticeItemClick=function(e){var t=i.state.noticeList.map((function(t){return t.id===e.id&&(t.seen=!0),t}));d.I.markNoticeAsRead(e.id);var n=0===i.state.unseenCount?0:i.state.unseenCount-1;i.setState({noticeList:t,unseenCount:n})},i.getInitDialogState=function(){return"all"===O.c.getUrlSearches().notifications},i.onNotificationDialogToggle=function(){var e=i.state.isShowNotificationDialog?null:"all";O.c.updateSearchParameter("notifications",e),i.setState({isShowNotificationDialog:!i.state.isShowNotificationDialog})},i.onNotificationListToggle=function(){i.setState({showNotice:!1})},i.onMarkAllNotifications=function(){d.I.updateNotifications().then((function(){i.setState({unseenCount:0})})).catch((function(e){i.setState({errorMsg:O.c.getErrorMsg(e,!0)})}))},i.state={showNotice:!1,unseenCount:0,noticeList:[],isShowNotificationDialog:i.getInitDialogState()},i}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){var e=this;d.I.getUnseenNotificationCount().then((function(t){e.setState({unseenCount:t.data.unseen_count})}))}},{key:"render",value:function(){var e=this,t=this.state.unseenCount;return(0,u.jsxs)("div",{id:"notifications",children:[(0,u.jsxs)("a",{href:"#",onClick:this.onClick,className:"no-deco",id:"notice-icon",title:(0,f.ih)("Notifications"),"aria-label":(0,f.ih)("Notifications"),children:[(0,u.jsx)("span",{className:"sf2-icon-bell",id:"notification-popover"}),(0,u.jsx)("span",{className:"num ".concat(t?"":"hide"),children:t})]}),this.state.showNotice&&(0,u.jsx)(c,{headerText:(0,f.ih)("Notification"),bodyText:(0,f.ih)("Mark all as read"),footerText:(0,f.ih)("View all notifications"),onNotificationListToggle:this.onNotificationListToggle,onNotificationDialogToggle:this.onNotificationDialogToggle,onMarkAllNotifications:this.onMarkAllNotifications,children:(0,u.jsx)("ul",{className:"notice-list list-unstyled",id:"notice-popover",children:this.state.noticeList.map((function(t){return(0,u.jsx)(v,{noticeItem:t,onNoticeItemClick:e.onNoticeItemClick},t.id)}))})}),this.state.isShowNotificationDialog&&(0,u.jsx)(E,{onNotificationDialogToggle:this.onNotificationDialogToggle})]})}}]),n}(s.Component)},32959:function(e,t,n){"use strict";n.d(t,{BD:function(){return p},in:function(){return S},ME:function(){return b},$4:function(){return h}});var r=n(15671),i=n(43144),a=n(60136),o=n(29388),s=n(1413),l=n(45987),u=n(47313),c=n(37168),d=n(93605),f=n(18713),p={option:function(e,t){var n=t.isDisabled,r=t.isSelected,i=t.isFocused;return(0,s.Z)((0,s.Z)({},e),{},{cursor:n?"default":"pointer",backgroundColor:r?"#20a0ff":i?"#f5f5f5":"#fff",".header-icon .dtable-font":{color:r?"#fff":"#aaa"}})},control:function(e){return(0,s.Z)((0,s.Z)({},e),{},{fontSize:"14px",cursor:"pointer",lineHeight:"1.5"})},menuPortal:function(e){return(0,s.Z)((0,s.Z)({},e),{},{zIndex:9999})},indicatorSeparator:function(){}},h={option:function(e,t){var n=t.isDisabled,r=t.isFocused;return(0,s.Z)((0,s.Z)({},e),{},{cursor:n?"default":"pointer",backgroundColor:r?"#f5f5f5":"#fff"})},control:function(e){return(0,s.Z)((0,s.Z)({},e),{},{fontSize:"14px",cursor:"pointer",lineHeight:"1.5"})},indicatorSeparator:function(){return{display:"none"}},dropdownIndicator:function(){return{display:"none"}},clearIndicator:function(){return{display:"none"}}},O=n(46417),m=["innerProps"],v=function(e){var t=e.innerProps,n=(0,l.Z)(e,m);return n.innerProps=(0,s.Z)((0,s.Z)({},t),{},{onMouseDown:function(e){e.nativeEvent.stopImmediatePropagation(),t.onMouseDown(e)}}),(0,O.jsx)(c.c.ClearIndicator,(0,s.Z)({},n))},g=function(e){return(0,O.jsx)("div",{onClick:function(e){return e.nativeEvent.stopImmediatePropagation()},onMouseDown:function(e){return e.nativeEvent.stopImmediatePropagation()},children:(0,O.jsx)(c.c.MenuList,(0,s.Z)((0,s.Z)({},e),{},{children:e.children}))})},y=function(e){return(0,O.jsx)("div",{style:e.data.style,children:(0,O.jsx)(c.c.Option,(0,s.Z)({},e))})},b=function(e){(0,a.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,a=new Array(i),o=0;o'+O.c.HTMLescape(t.repo_name||t.name)+"",r=(0,h.ih)("Are you sure you want to delete %s ?");r=r.replace("%s",n);var i="";(this.state.sharedToUserCount>0||this.state.sharedToGroupCount>0)&&(i=(i=(i=(0,h.ih)("This library has been shared to {user_amount} user(s) and {group_amount} group(s).")).replace("{user_amount}",this.state.sharedToUserCount)).replace("{group_amount}",this.state.sharedToGroupCount));var a=this.props.toggle;return(0,m.jsxs)(u.Z,{isOpen:!0,toggle:a,children:[(0,m.jsx)(c.Z,{toggle:a,children:(0,h.ih)("Delete Library")}),(0,m.jsxs)(d.Z,{children:[(0,m.jsx)("p",{dangerouslySetInnerHTML:{__html:r}}),""!=i&&(0,m.jsx)("p",{className:"error",dangerouslySetInnerHTML:{__html:i}})]}),(0,m.jsxs)(f.Z,{children:[(0,m.jsx)(p.Z,{color:"secondary",onClick:a,children:(0,h.ih)("Cancel")}),(0,m.jsx)(p.Z,{color:"primary",disabled:e,onClick:this.onDeleteRepo,children:(0,h.ih)("Delete")})]})]})}}]),n}(s.Component);t.Z=v},13884:function(e,t,n){"use strict";var r=n(15671),i=n(43144),a=n(60136),o=n(29388),s=n(47313),l=n(42995),u=n(12756),c=n(12213),d=n(7764),f=n(21303),p=n(68396),h=n(89915),O=n(61805),m=n(4514),v=n(83854),g=n(46417),y=function(e){(0,a.Z)(n,e);var t=(0,o.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).getInternalLink=function(){var e=i.props.repoID,t=i.props.path;m.I.getInternalLink(e,t).then((function(e){var t=e.data.smart_link;i.setState({isLoading:!1,smartLink:t})})).catch((function(e){var t=v.c.getErrorMsg(e);p.Z.danger(t),i.setState({isLoading:!1})}))},i.copyToClipBoard=function(){(0,h.Z)(i.state.smartLink);var e=(0,O.ih)("Internal link has been copied to clipboard");p.Z.success(e,{duration:2}),i.toggle()},i.toggle=function(){i.props.onInternalLinkDialogToggle({internalLink:""})},i.state={smartLink:"",isLoading:!0},i}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){this.props.internalLink?this.setState({smartLink:this.props.internalLink}):this.getInternalLink()}},{key:"render",value:function(){var e=(0,O.ih)("An internal link is a link to a file or folder that can be accessed by users with read permission to the file or folder.");return(0,g.jsx)(s.Fragment,{children:(0,g.jsxs)(l.Z,{isOpen:!0,toggle:this.toggle,children:[(0,g.jsx)(u.Z,{toggle:this.toggle,children:(0,O.ih)("Internal Link")}),(0,g.jsxs)(c.Z,{children:[(0,g.jsx)("p",{className:"tip mb-1",children:e}),(0,g.jsx)("p",{children:(0,g.jsx)("a",{target:"_blank",href:this.state.smartLink,rel:"noreferrer",children:this.state.smartLink})})]}),(0,g.jsxs)(d.Z,{children:[(0,g.jsx)(f.Z,{color:"secondary",onClick:this.toggle,children:(0,O.ih)("Cancel")}),(0,g.jsx)(f.Z,{color:"primary",onClick:this.copyToClipBoard,children:(0,O.ih)("Copy")})]})]})})}}]),n}(s.Component);t.Z=y},63876:function(e,t,n){"use strict";n.d(t,{Z:function(){return Ue}});var r=n(15671),i=n(43144),a=n(97326),o=n(60136),s=n(29388),l=n(47313),u=n(63035),c=n(53108),d=n(21179),f=n(73722),p=n(86500),h=n(42995),O=n(12756),m=n(12213),v=n(61805),g=n(4514),y=n(83854),b=n(82746),_=n(68396),S=n(51282),w=n(70816),k=n.n(w),T=n(92229),x=n.n(T),E=n(21303),P=n(87147),$=n(64185),Q=n(74073),C=n(54105),D=n(85951),A=n(46417),R=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).handleEmailsInputChange=function(e){i.setState({emails:e.target.value})},i.handleMsgInputChange=function(e){i.setState({msg:e.target.value})},i.sendLink=function(){var e=i.state,t=e.emails,n=e.msg;if(t.trim()){i.setState({btnDisabled:!0,sending:!0});var r=i.props,a=r.token;("uploadLink"==r.linkType?g.I.sendUploadLink(a,t.trim(),n.trim()):g.I.sendShareLink(a,t.trim(),n.trim())).then((function(e){i.props.closeShareDialog();var t=e.data,n=t.success,r=t.failed;if(n.length){var a=(0,v.ih)("Successfully sent to {placeholder}").replace("{placeholder}",n.join(", "));_.Z.success(a)}r.length&&r.forEach((function(e){var t=(0,v.ih)("Failed to send to {email_placeholder}: {errorMsg_placeholder}").replace("{email_placeholder}",e.email).replace("{errorMsg_placeholder}",e.error_msg);_.Z.warning(t)}))})).catch((function(e){var t=y.c.getErrorMsg(e);i.setState({btnDisabled:!1,sending:!1,errorMsg:t})}))}else i.setState({errorMsg:(0,v.ih)("Please input at least an email.")})},i.state={emails:"",msg:"",errorMsg:"",btnDisabled:!1,sending:!1},i}return(0,i.Z)(n,[{key:"render",value:function(){var e=this.state,t=e.emails,n=e.msg,r=e.errorMsg,i=e.btnDisabled,a=e.sending;return(0,A.jsxs)(Q.Z,{children:[(0,A.jsxs)(C.Z,{children:[(0,A.jsx)(D.Z,{htmlFor:"emails",className:"text-secondary font-weight-normal",children:(0,v.ih)("Send to:")}),(0,A.jsx)("input",{type:"text",id:"emails",className:"form-control w-75",value:t,onChange:this.handleEmailsInputChange,placeholder:(0,v.ih)("Emails, separated by ','")})]}),(0,A.jsxs)(C.Z,{children:[(0,A.jsx)(D.Z,{htmlFor:"msg",className:"text-secondary font-weight-normal",children:(0,v.ih)("Message (optional):")}),(0,A.jsx)("textarea",{className:"form-control w-75",id:"msg",value:n,onChange:this.handleMsgInputChange})]}),r&&(0,A.jsx)("p",{className:"error",children:r}),(0,A.jsx)(E.Z,{color:"primary",onClick:this.sendLink,disabled:i,className:"mr-2",children:(0,v.ih)("Send")}),(0,A.jsx)(E.Z,{color:"secondary",onClick:this.props.toggleSendLink,children:(0,v.ih)("Cancel")}),a&&(0,A.jsx)("p",{className:"mt-2",children:(0,v.ih)("Sending...")})]})}}]),n}(l.Component),X=n(59743),L=n(5684),M=n(76578),N=n(56754),I=n.n(N),Z=n(29389),U=n(27205),F=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).togglePopover=function(){i.setState({isPopoverOpen:!i.state.isPopoverOpen})},i.state={isPopoverOpen:!1},i.btnID="btn-"+Math.random().toString().substr(2,5),i}return(0,i.Z)(n,[{key:"render",value:function(){var e=this.props.link,t=this.state.isPopoverOpen;return(0,A.jsxs)("div",{className:"ml-2",children:[(0,A.jsx)(E.Z,{outline:!0,color:"primary",className:"btn-icon btn-qr-code-icon sf3-font sf3-font-qr-code",id:this.btnID,onClick:this.togglePopover,type:"button"}),(0,A.jsx)(Z.Z,{placement:"bottom",isOpen:t,target:this.btnID,toggle:this.togglePopover,children:(0,A.jsxs)(U.Z,{children:[(0,A.jsx)(I(),{value:e,size:128}),(0,A.jsx)("p",{className:"m-0 mt-1 text-center",style:{maxWidth:"128px"},children:(0,v.ih)("Scan the QR code to view the shared content directly")})]})})]})}}]),n}(l.Component),j=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.link,n=e.linkExpired,r=e.copyLink;return(0,A.jsxs)(l.Fragment,{children:[(0,A.jsxs)("div",{className:"d-flex",children:[(0,A.jsxs)(X.Z,{children:[(0,A.jsx)(L.Z,{type:"text",readOnly:!0,value:t}),(0,A.jsx)(M.Z,{addonType:"append",children:(0,A.jsx)(E.Z,{color:"primary",onClick:r,className:"border-0",children:(0,v.ih)("Copy")})})]}),(0,A.jsx)(F,{link:t})]}),n&&(0,A.jsxs)("p",{className:"err-message mt-1",children:["(",(0,v.ih)("Expired"),")"]})]})}}]),n}(l.Component),Y=j,q=n(25965),W=n(73689),B=n(38122),z=y.c.isDesktop()?250:210,V=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;(0,r.Z)(this,n),(i=t.call(this,e)).disabledDate=function(e){if(!e)return!1;if(i.isExpireDaysNoLimit)return e.isBefore(k()(),"day");var t=i.props,n=t.minDays,r=t.maxDays,a=k()().add(n,"days"),o=k()().add(r,"days");return 0!==n&&0!==r?e.isBefore(a,"day")||e.isAfter(o,"day"):0!==n&&0===r?e.isBefore(a,"day"):0===n&&0!==r?e.isBefore(k()(),"day")||e.isAfter(o,"day"):void 0};var a=i.props,o=a.minDays,s=a.maxDays,l=a.defaultDays;i.isExpireDaysNoLimit=0===o&&0===s&&0==l;var u="";return 0!==o&&0!==s?u=(0,v.ih)("{minDays_placeholder} - {maxDays_placeholder} days").replace("{minDays_placeholder}",o).replace("{maxDays_placeholder}",s):0!==o&&0===s?u=(0,v.ih)("Greater than or equal to {minDays_placeholder} days").replace("{minDays_placeholder}",o):0===o&&0!==s&&(u=(0,v.ih)("Less than or equal to {maxDays_placeholder} days").replace("{maxDays_placeholder}",s)),i.expirationLimitTip=u,i}return(0,i.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.expType,n=e.setExpType,r=e.expireDays,i=e.onExpireDaysChanged,a=e.expDate,o=e.onExpDateChanged;return(0,A.jsxs)(l.Fragment,{children:[(0,A.jsxs)(C.Z,{check:!0,children:[(0,A.jsxs)(D.Z,{check:!0,children:[(0,A.jsx)(L.Z,{type:"radio",name:"set-exp",value:"by-days",checked:"by-days"==t,onChange:n,className:"mr-1"}),(0,A.jsx)("span",{children:(0,v.ih)("Expiration days")})]}),"by-days"==t&&(0,A.jsxs)(l.Fragment,{children:[(0,A.jsxs)(X.Z,{style:{width:z},children:[(0,A.jsx)(L.Z,{type:"text",value:r,onChange:i}),(0,A.jsx)(M.Z,{addonType:"append",children:(0,A.jsx)(q.Z,{children:(0,v.ih)("days")})})]}),!this.isExpireDaysNoLimit&&(0,A.jsx)(W.Z,{color:"muted",children:this.expirationLimitTip})]})]}),(0,A.jsxs)(C.Z,{check:!0,children:[(0,A.jsxs)(D.Z,{check:!0,children:[(0,A.jsx)(L.Z,{type:"radio",name:"set-exp",value:"by-date",checked:"by-date"==t,onChange:n,className:"mr-1"}),(0,A.jsx)("span",{children:(0,v.ih)("Expiration time")})]}),"by-date"==t&&(0,A.jsx)(B.Z,{inputWidth:z,disabledDate:this.disabledDate,value:a,onChange:o})]})]})}}]),n}(l.Component),G=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).onCopySharedLink=function(){var e=i.props.sharedLinkInfo;x()(e.link),_.Z.success((0,v.ih)("Share link is copied to the clipboard."))},i.onCopyDownloadLink=function(){var e=i.props.sharedLinkInfo;x()("".concat(e.link,"?dl=1")),_.Z.success((0,v.ih)("Direct download link is copied to the clipboard."))},i.toggleStoredPasswordVisible=function(){i.setState({storedPasswordVisible:!i.state.storedPasswordVisible})},i.handleMouseOverExpirationEditIcon=function(){i.setState({isExpirationEditIconShow:!0})},i.handleMouseOutExpirationEditIcon=function(){i.setState({isExpirationEditIconShow:!1})},i.editingExpirationToggle=function(){i.setState({isEditingExpiration:!i.state.isEditingExpiration})},i.setExpType=function(e){i.setState({expType:e.target.value})},i.onExpDateChanged=function(e){i.setState({expDate:e})},i.onExpireDaysChanged=function(e){var t=e.target.value.trim();i.setState({expireDays:t})},i.updateExpiration=function(){var e=i.props.sharedLinkInfo,t=i.state,n=t.expType,r=t.expireDays,a=t.expDate,o="";o="by-days"==n?k()().add(parseInt(r),"days").format():a.format(),g.I.updateShareLink(e.token,"",o).then((function(e){i.setState({isEditingExpiration:!1}),i.props.updateLink(new b.Z(e.data))})).catch((function(e){var t=y.c.getErrorMsg(e);_.Z.danger(t)}))},i.handleMouseOver=function(){i.setState({isOpIconShown:!0})},i.handleMouseOut=function(){i.setState({isOpIconShown:!1})},i.changePerm=function(e){var t=i.props.sharedLinkInfo,n=y.c.getShareLinkPermissionObject(e.value).permissionDetails;g.I.updateShareLink(t.token,JSON.stringify(n)).then((function(e){i.props.updateLink(new b.Z(e.data))})).catch((function(e){var t=y.c.getErrorMsg(e);_.Z.danger(t)}))},i.toggleLinkDeleteDialog=function(){i.setState({isLinkDeleteDialogOpen:!i.state.isLinkDeleteDialogOpen})},i.toggleSendLink=function(){i.setState({isSendLinkShown:!i.state.isSendLinkShown})},i.deleteLink=function(){var e=i.props.sharedLinkInfo.token;i.props.deleteLink(e)},i.goBack=function(){i.props.showLinkDetails(null)},i.state={storedPasswordVisible:!1,isEditingExpiration:!1,isExpirationEditIconShow:!1,expType:"by-days",expireDays:i.props.defaultExpireDays,expDate:null,isOpIconShown:!1,isLinkDeleteDialogOpen:!1,isSendLinkShown:!1},i}return(0,i.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.sharedLinkInfo,n=e.permissionOptions,r=this.state.isOpIconShown,i=y.c.getShareLinkPermissionStr(t.permissions);this.permOptions=n.map((function(e){return{value:e,text:y.c.getShareLinkPermissionObject(e).text,isSelected:e==i}}));var a=this.permOptions.filter((function(e){return e.isSelected}))[0];return(0,A.jsxs)("div",{children:[(0,A.jsx)("button",{className:"fa fa-arrow-left back-icon border-0 bg-transparent text-secondary p-0",onClick:this.goBack,title:(0,v.ih)("Back"),"aria-label":(0,v.ih)("Back")}),(0,A.jsxs)("dl",{children:[(0,A.jsx)("dt",{className:"text-secondary font-weight-normal",children:(0,v.ih)("Link:")}),(0,A.jsx)("dd",{children:(0,A.jsx)(Y,{link:t.link,linkExpired:t.is_expired,copyLink:this.onCopySharedLink})}),!t.is_dir&&t.permissions.can_download&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("dt",{className:"text-secondary font-weight-normal",children:(0,v.ih)("Direct Download Link:")}),(0,A.jsx)("dd",{children:(0,A.jsx)(Y,{link:"".concat(t.link,"?dl=1"),linkExpired:t.is_expired,copyLink:this.onCopyDownloadLink})})]}),t.password&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("dt",{className:"text-secondary font-weight-normal",children:(0,v.ih)("Password:")}),(0,A.jsxs)("dd",{className:"d-flex align-items-center",children:[(0,A.jsx)("span",{className:"mr-1",children:this.state.storedPasswordVisible?t.password:"***************"}),(0,A.jsx)("span",{tabIndex:"0",role:"button","aria-label":this.state.storedPasswordVisible?(0,v.ih)("Hide"):(0,v.ih)("Show"),onKeyDown:this.onIconKeyDown,onClick:this.toggleStoredPasswordVisible,className:"eye-icon fas ".concat(this.state.storedPasswordVisible?"fa-eye":"fa-eye-slash")})]})]}),t.expire_date&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("dt",{className:"text-secondary font-weight-normal",children:(0,v.ih)("Expiration Date:")}),!this.state.isEditingExpiration&&(0,A.jsxs)("dd",{style:{width:"250px"},onMouseEnter:this.handleMouseOverExpirationEditIcon,onMouseLeave:this.handleMouseOutExpirationEditIcon,children:[k()(t.expire_date).format("YYYY-MM-DD HH:mm:ss"),this.state.isExpirationEditIconShow&&(0,A.jsx)("a",{href:"#",role:"button","aria-label":(0,v.ih)("Edit"),title:(0,v.ih)("Edit"),className:"fa fa-pencil-alt attr-action-icon",onClick:this.editingExpirationToggle})]}),this.state.isEditingExpiration&&(0,A.jsx)("dd",{children:(0,A.jsxs)("div",{className:"ml-4",children:[(0,A.jsx)(V,{minDays:v.pw,maxDays:v.WN,defaultDays:v.WW,expType:this.state.expType,setExpType:this.setExpType,expireDays:this.state.expireDays,onExpireDaysChanged:this.onExpireDaysChanged,expDate:this.state.expDate,onExpDateChanged:this.onExpDateChanged}),(0,A.jsxs)("div",{className:"by-days"==this.state.expType?"mt-2":"mt-3",children:[(0,A.jsx)("button",{className:"btn btn-primary mr-2",onClick:this.updateExpiration,children:(0,v.ih)("Update")}),(0,A.jsx)("button",{className:"btn btn-secondary",onClick:this.editingExpirationToggle,children:(0,v.ih)("Cancel")})]})]})})]}),v._y&&t.permissions&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("dt",{className:"text-secondary font-weight-normal",children:(0,v.ih)("Permission:")}),(0,A.jsx)("dd",{style:{width:"250px"},onMouseEnter:this.handleMouseOver,onMouseLeave:this.handleMouseOut,children:(0,A.jsx)(P.Z,{isDropdownToggleShown:r&&!t.is_expired,currentSelectedOption:a,options:this.permOptions,selectOption:this.changePerm})})]})]}),v.yC&&!this.state.isSendLinkShown&&(0,A.jsx)(E.Z,{onClick:this.toggleSendLink,className:"mr-2",children:(0,v.ih)("Send")}),this.state.isSendLinkShown&&(0,A.jsx)(R,{linkType:"shareLink",token:t.token,toggleSendLink:this.toggleSendLink,closeShareDialog:this.props.closeShareDialog}),!this.state.isSendLinkShown&&(0,A.jsx)(E.Z,{onClick:this.toggleLinkDeleteDialog,children:(0,v.ih)("Delete")}),this.state.isLinkDeleteDialogOpen&&(0,A.jsx)($.Z,{title:(0,v.ih)("Delete share link"),message:(0,v.ih)("Are you sure you want to delete the share link?"),executeOperation:this.deleteLink,confirmBtnText:(0,v.ih)("Delete"),toggleDialog:this.toggleLinkDeleteDialog})]})}}]),n}(l.Component),H=n(93869),J=y.c.isDesktop()?250:210,K=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).setExpType=function(e){i.setState({expType:e.target.value})},i.onExpDateChanged=function(e){i.setState({expDate:e})},i.onPasswordInputChecked=function(){i.setState({isShowPasswordInput:!i.state.isShowPasswordInput,password:"",passwdnew:"",errorInfo:""})},i.togglePasswordVisible=function(){i.setState({isPasswordVisible:!i.state.isPasswordVisible})},i.generatePassword=function(){var e=y.c.generatePassword(v.pr);i.setState({password:e,passwdnew:e})},i.inputPassword=function(e){var t=e.target.value.trim();i.setState({password:t})},i.inputPasswordNew=function(e){var t=e.target.value.trim();i.setState({passwdnew:t})},i.setPermission=function(e){i.setState({currentPermission:e.target.value})},i.generateShareLink=function(){if(i.validateParamsInput()){i.setState({errorInfo:""});var e,t=i.props,n=t.type,r=t.itemPath,a=t.repoID,o=i.state,s=o.linkAmount,l=o.isShowPasswordInput,u=o.password,c=o.isExpireChecked,d=o.expType,f=o.expireDays,p=o.expDate;if(v._y){var h=y.c.getShareLinkPermissionObject(i.state.currentPermission).permissionDetails;e=JSON.stringify(h)}var O,m="";if(c&&(m="by-days"==d?k()().add(parseInt(f),"days").format():p.format()),"batch"==n){var S=v.KV||l;O=g.I.batchCreateMultiShareLink(a,r,s,S,m,e)}else O=g.I.createMultiShareLink(a,r,u,m,e);O.then((function(e){if("batch"==n){var t=e.data.map((function(e){return new b.Z(e)}));i.props.updateAfterCreation(t)}else{var r=new b.Z(e.data);i.props.updateAfterCreation(r)}})).catch((function(e){var t=e.response.data;if("Folder permission denied."===(t&&t.error_msg))i.setState({errorInfo:(0,v.ih)("Share links cannot be generated because there are invisible or online r/rw folder permissions in the library.")});else{var n=y.c.getErrorMsg(e);_.Z.danger(n)}}))}},i.onExpireChecked=function(e){i.setState({isExpireChecked:e.target.checked})},i.onExpireDaysChanged=function(e){var t=e.target.value.trim();i.setState({expireDays:t})},i.validateParamsInput=function(){var e=i.props.type,t=i.state,n=t.linkAmount,r=t.isShowPasswordInput,a=t.password,o=t.passwdnew,s=t.isExpireChecked,l=t.expType,u=t.expireDays,c=t.expDate;if("batch"==e){if(!Number.isInteger(parseInt(n))||parseInt(n)<=1)return i.setState({errorInfo:(0,v.ih)("Please enter an integer bigger than 1 as number of links.")}),!1;if(parseInt(n)>200)return i.setState({errorInfo:(0,v.ih)("Please enter an integer not bigger than {max_number} as number of links.").replace("{max_number}",200)}),!1}if("single"==e&&r){if(0===a.length)return i.setState({errorInfo:(0,v.ih)("Please enter a password.")}),!1;if(a.lengthf)return i.setState({errorInfo:"Please enter valid days"}),!1;if(0!==d&&0!==f&&(uf))return i.setState({errorInfo:"Please enter valid days"}),!1;i.setState({expireDays:u})}return!0},i.onLinkAmountChange=function(e){i.setState({linkAmount:e.target.value})},i.goBack=function(){i.props.setMode("")},i.isExpireDaysNoLimit=0===v.pw&&0===v.WN&&0==v.WW,i.defaultExpireDays=i.isExpireDaysNoLimit?"":v.WW,i.state={linkAmount:"",isShowPasswordInput:!!v.KV,isPasswordVisible:!1,isExpireChecked:!i.isExpireDaysNoLimit,expType:"by-days",expireDays:i.defaultExpireDays,expDate:null,password:"",passwdnew:"",errorInfo:"",currentPermission:e.currentPermission},i}return(0,i.Z)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.userPerm,r=t.type,i=t.permissionOptions,a=y.c.getUserPermission(n).isCustomPermission;return(0,A.jsxs)(l.Fragment,{children:[(0,A.jsx)("div",{className:"d-flex align-items-center pb-2 border-bottom",children:(0,A.jsxs)("h6",{className:"font-weight-normal m-0",children:[(0,A.jsx)("button",{className:"fa fa-arrow-left back-icon border-0 bg-transparent text-secondary p-0 mr-2",onClick:this.goBack,title:(0,v.ih)("Back"),"aria-label":(0,v.ih)("Back")}),"batch"==r?(0,v.ih)("Generate links in batch"):(0,v.ih)("Generate Link")]})}),(0,A.jsxs)(Q.Z,{className:"pt-4",children:["batch"==r&&(0,A.jsxs)(C.Z,{children:[(0,A.jsx)(D.Z,{for:"link-number",className:"p-0",children:(0,v.ih)("Number of links")}),(0,A.jsx)(L.Z,{type:"number",id:"link-number",value:this.state.linkAmount,onChange:this.onLinkAmountChange,style:{width:J}})]}),(0,A.jsxs)(C.Z,{check:!0,children:[v.KV?(0,A.jsxs)(D.Z,{check:!0,children:[(0,A.jsx)(L.Z,{type:"checkbox",checked:!0,readOnly:!0,disabled:!0}),(0,A.jsx)("span",{children:(0,v.ih)("Add password protection")})]}):(0,A.jsxs)(D.Z,{check:!0,children:[(0,A.jsx)(L.Z,{type:"checkbox",checked:this.state.isShowPasswordInput,onChange:this.onPasswordInputChecked}),(0,A.jsx)("span",{children:(0,v.ih)("Add password protection")})]}),"batch"!=r&&this.state.isShowPasswordInput&&(0,A.jsxs)("div",{className:"ml-4",children:[(0,A.jsxs)(C.Z,{children:[(0,A.jsx)(D.Z,{for:"passwd",children:(0,v.ih)("Password")}),(0,A.jsx)("span",{className:"tip",children:(0,v.ih)("(at least {passwordMinLength} characters and includes {passwordStrengthLevel} of the following: number, upper letter, lower letter and other symbols)").replace("{passwordMinLength}",v.pr).replace("{passwordStrengthLevel}",v.Ym)}),(0,A.jsxs)(X.Z,{style:{width:J},children:[(0,A.jsx)(L.Z,{id:"passwd",type:this.state.isPasswordVisible?"text":"password",value:this.state.password||"",onChange:this.inputPassword}),(0,A.jsxs)(M.Z,{addonType:"append",children:[(0,A.jsx)(E.Z,{onClick:this.togglePasswordVisible,children:(0,A.jsx)("i",{className:"link-operation-icon fas ".concat(this.state.isPasswordVisible?"fa-eye":"fa-eye-slash")})}),(0,A.jsx)(E.Z,{onClick:this.generatePassword,children:(0,A.jsx)("i",{className:"link-operation-icon fas fa-magic"})})]})]})]}),(0,A.jsxs)(C.Z,{children:[(0,A.jsx)(D.Z,{for:"passwd-again",children:(0,v.ih)("Password again")}),(0,A.jsx)(L.Z,{id:"passwd-again",style:{width:J},type:this.state.isPasswordVisible?"text":"password",value:this.state.passwdnew||"",onChange:this.inputPasswordNew})]})]})]}),(0,A.jsxs)(C.Z,{check:!0,children:[(0,A.jsxs)(D.Z,{check:!0,children:[this.isExpireDaysNoLimit?(0,A.jsx)(L.Z,{type:"checkbox",onChange:this.onExpireChecked}):(0,A.jsx)(L.Z,{type:"checkbox",checked:!0,readOnly:!0,disabled:!0}),(0,A.jsx)("span",{children:(0,v.ih)("Add auto expiration")})]}),this.state.isExpireChecked&&(0,A.jsx)("div",{className:"ml-4",children:(0,A.jsx)(V,{minDays:v.pw,maxDays:v.WN,defaultDays:v.WW,expType:this.state.expType,setExpType:this.setExpType,expireDays:this.state.expireDays,onExpireDaysChanged:this.onExpireDaysChanged,expDate:this.state.expDate,onExpDateChanged:this.onExpDateChanged})})]}),v._y&&!a&&(0,A.jsxs)(C.Z,{check:!0,children:[(0,A.jsx)(D.Z,{check:!0,children:(0,A.jsx)("span",{children:(0,v.ih)("Set permission")})}),i.map((function(t,n){return(0,A.jsx)(C.Z,{check:!0,className:"ml-4",children:(0,A.jsxs)(D.Z,{check:!0,children:[(0,A.jsx)(L.Z,{type:"radio",name:"permission",value:t,checked:e.state.currentPermission==t,onChange:e.setPermission,className:"mr-1"}),y.c.getShareLinkPermissionObject(t).text]})},n)}))]}),this.state.errorInfo&&(0,A.jsx)(H.Z,{color:"danger",className:"mt-2",children:(0,v.ih)(this.state.errorInfo)}),(0,A.jsx)(E.Z,{onClick:this.generateShareLink,className:"mt-2 ml-1 mb-1",children:(0,v.ih)("Generate")})]})]})}}]),n}(l.Component),ee=n(43216),te=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).onMouseOver=function(){i.setState({isItemOpVisible:!0})},i.onMouseOut=function(){i.setState({isItemOpVisible:!1})},i.cutLink=function(e){var t=e.length;return e.slice(0,9)+"..."+e.slice(t-5)},i.onDeleteIconClicked=function(e){e.preventDefault(),e.stopPropagation(),i.toggleDeleteShareLinkDialog()},i.toggleDeleteShareLinkDialog=function(){i.setState({isDeleteShareLinkDialogOpen:!i.state.isDeleteShareLinkDialogOpen})},i.onCopyIconClicked=function(e){e.preventDefault(),e.stopPropagation();var t=i.props.item;x()(t.link),_.Z.success((0,v.ih)("Share link is copied to the clipboard."))},i.clickItem=function(e){i.props.showLinkDetails(i.props.item)},i.onCheckboxClicked=function(e){e.stopPropagation()},i.toggleSelectLink=function(e){var t=i.props.item;i.props.toggleSelectLink(t,e.target.checked)},i.deleteLink=function(){var e=i.props.item;i.props.deleteLink(e.token)},i.state={isItemOpVisible:!1,isDeleteShareLinkDialogOpen:!1},i}return(0,i.Z)(n,[{key:"render",value:function(){var e=this.state.isItemOpVisible,t=this.props.item,n=t.isSelected,r=void 0!==n&&n,i=t.permissions,a=t.link,o=t.expire_date,s=y.c.getShareLinkPermissionStr(i);return(0,A.jsxs)(l.Fragment,{children:[(0,A.jsxs)("tr",{onClick:this.clickItem,onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,className:"cursor-pointer ".concat(r?"tr-highlight":""),children:[(0,A.jsx)("td",{className:"text-center",children:(0,A.jsx)("input",{type:"checkbox",checked:r,className:"vam",onClick:this.onCheckboxClicked,onChange:this.toggleSelectLink})}),(0,A.jsx)("td",{children:this.cutLink(a)}),(0,A.jsx)("td",{children:v._y&&i&&y.c.getShareLinkPermissionObject(s).text}),(0,A.jsx)("td",{children:o?k()(o).format("YYYY-MM-DD HH:mm"):"--"}),(0,A.jsxs)("td",{children:[(0,A.jsx)("a",{href:"#",role:"button",onClick:this.onCopyIconClicked,className:"sf2-icon-copy action-icon ".concat(e?"":"invisible"),title:(0,v.ih)("Copy"),"aria-label":(0,v.ih)("Copy")}),(0,A.jsx)("a",{href:"#",role:"button",onClick:this.onDeleteIconClicked,className:"sf2-icon-delete action-icon ".concat(e?"":"invisible"),title:(0,v.ih)("Delete"),"aria-label":(0,v.ih)("Delete")})]})]}),this.state.isDeleteShareLinkDialogOpen&&(0,A.jsx)($.Z,{title:(0,v.ih)("Delete share link"),message:(0,v.ih)("Are you sure you want to delete the share link?"),executeOperation:this.deleteLink,confirmBtnText:(0,v.ih)("Delete"),toggleDialog:this.toggleDeleteShareLinkDialog})]})}}]),n}(l.Component),ne=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).toggleDeleteShareLinksDialog=function(){i.setState({isDeleteShareLinksDialogOpen:!i.state.isDeleteShareLinksDialogOpen})},i.toggleSelectAllLinks=function(e){i.props.toggleSelectAllLinks(e.target.checked)},i.cancelSelectAllLinks=function(){i.props.toggleSelectAllLinks(!1)},i.exportSelectedLinks=function(){var e=i.props.shareLinks.filter((function(e){return e.isSelected})),t="".concat(v.ze,"share/link/export-excel/?");t+=e.map((function(e){return"token=".concat(e.token)})).join("&"),location.href=t},i.state={isDeleteShareLinksDialogOpen:!1},i}return(0,i.Z)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.shareLinks,r=t.permissionOptions,i=t.isLoadingMore,a=t.handleScroll,o=n.filter((function(e){return e.isSelected})),s=n.length==o.length;return(0,A.jsxs)(l.Fragment,{children:[(0,A.jsxs)("div",{className:"d-flex justify-content-between align-items-center pb-2 mt-1 pr-1 border-bottom",children:[(0,A.jsx)("h6",{className:"font-weight-normal m-0",children:(0,v.ih)("Share Link")}),(0,A.jsx)("div",{className:"d-flex",children:0==o.length?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("button",{className:"btn btn-sm btn-outline-primary mr-2",onClick:this.props.setMode.bind(this,"singleLinkCreation"),children:(0,v.ih)("Generate Link")}),(0,A.jsx)("button",{className:"btn btn-sm btn-outline-primary",onClick:this.props.setMode.bind(this,"linksCreation"),children:(0,v.ih)("Generate links in batch")})]}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("button",{className:"btn btn-sm btn-secondary mr-2",onClick:this.cancelSelectAllLinks,children:(0,v.ih)("Cancel")}),(0,A.jsx)("button",{className:"btn btn-sm btn-secondary mr-2",onClick:this.toggleDeleteShareLinksDialog,children:(0,v.ih)("Delete")}),(0,A.jsx)("button",{className:"btn btn-sm btn-secondary",onClick:this.exportSelectedLinks,children:(0,v.ih)("Export")})]})})]}),0==n.length?(0,A.jsx)(ee.Z,{forDialog:!0,children:(0,A.jsx)("p",{className:"text-secondary",children:(0,v.ih)("No share links")})}):(0,A.jsxs)("div",{className:"share-list-container share-link",children:[(0,A.jsx)("table",{className:"table-place-header",children:(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{width:"5%",className:"text-center",children:(0,A.jsx)("input",{type:"checkbox",checked:s,className:"vam",onChange:this.toggleSelectAllLinks})}),(0,A.jsx)("th",{width:"26%",children:(0,v.ih)("Link")}),(0,A.jsx)("th",{width:"30%",children:(0,v.ih)("Permission")}),(0,A.jsx)("th",{width:"25%",children:(0,v.ih)("Expiration")}),(0,A.jsx)("th",{width:"14%"})]})})}),(0,A.jsxs)("div",{className:"table-real-container",onScroll:a,children:[(0,A.jsxs)("table",{className:"table-real-content table-thead-hidden",children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{width:"5%",className:"text-center"}),(0,A.jsx)("th",{width:"26%",children:(0,v.ih)("Link")}),(0,A.jsx)("th",{width:"30%",children:(0,v.ih)("Permission")}),(0,A.jsx)("th",{width:"25%",children:(0,v.ih)("Expiration")}),(0,A.jsx)("th",{width:"14%"})]})}),(0,A.jsx)("tbody",{children:n.map((function(t,n){return(0,A.jsx)(te,{item:t,permissionOptions:r,showLinkDetails:e.props.showLinkDetails,toggleSelectLink:e.props.toggleSelectLink,deleteLink:e.props.deleteLink},n)}))})]}),i&&(0,A.jsx)(S.Z,{})]})]}),this.state.isDeleteShareLinksDialogOpen&&(0,A.jsx)($.Z,{title:(0,v.ih)("Delete share links"),message:(0,v.ih)("Are you sure you want to delete the selected share link(s) ?"),executeOperation:this.props.deleteShareLinks,confirmBtnText:(0,v.ih)("Delete"),toggleDialog:this.toggleDeleteShareLinksDialog})]})}}]),n}(l.Component),re=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).showLinkDetails=function(e){i.setState({sharedLinkInfo:e,mode:e?"displayLinkDetails":""})},i.updateLink=function(e){var t=i.state.shareLinks;i.setState({sharedLinkInfo:e,shareLinks:t.map((function(t){return t.token==e.token?e:t}))})},i.deleteLink=function(e){var t=i.state.shareLinks;g.I.deleteShareLink(e).then((function(){i.setState({mode:"",sharedLinkInfo:null,shareLinks:t.filter((function(t){return t.token!==e}))}),_.Z.success((0,v.ih)("Successfully deleted 1 share link"))})).catch((function(e){var t=y.c.getErrorMsg(e);_.Z.danger(t)}))},i.deleteShareLinks=function(){var e=i.state.shareLinks,t=e.filter((function(e){return e.isSelected})).map((function(e){return e.token}));g.I.deleteShareLinks(t).then((function(t){var n=t.data,r=n.success,a=n.failed;if(r.length){var o=e.filter((function(e){return!r.some((function(t){return t.token==e.token}))}));i.setState({shareLinks:o});var s=r.length,l=1==s?(0,v.ih)("Successfully deleted 1 share link"):(0,v.ih)("Successfully deleted {number_placeholder} share links").replace("{number_placeholder}",s);_.Z.success(l)}a.forEach((function(e){var t="".concat(e.token,": ").concat(e.error_msg);_.Z.danger(t)}))})).catch((function(e){var t=y.c.getErrorMsg(e);_.Z.danger(t)}))},i.updateAfterCreation=function(e){var t=i.state,n=t.mode,r=t.shareLinks;"singleLinkCreation"==n?(r.unshift(e),i.setState({mode:"displayLinkDetails",sharedLinkInfo:e,shareLinks:r})):i.setState({mode:"",shareLinks:e.concat(r)})},i.setMode=function(e){i.setState({mode:e})},i.toggleSelectAllLinks=function(e){var t=i.state.shareLinks;i.setState({shareLinks:t.map((function(t){return t.isSelected=e,t}))})},i.toggleSelectLink=function(e,t){var n=i.state.shareLinks;i.setState({shareLinks:n.map((function(n){return n.token==e.token&&(n.isSelected=t),n}))})},i.handleScroll=function(e){if(!i.state.isLoadingMore&&i.state.hasMore){var t=e.target.clientHeight,n=e.target.scrollHeight;t+e.target.scrollTop+1>=n&&i.setState({isLoadingMore:!0},(function(){i.getMore()}))}},i.getMore=function(){var e=i.state,t=e.page,n=e.shareLinks,r=i.props,a=r.repoID,o=r.itemPath;g.I.listShareLinks({repoID:a,path:o,page:t+1}).then((function(e){i.setState({isLoadingMore:!1,hasMore:25==e.data.length,page:t+1,shareLinks:n.concat(e.data.map((function(e){return new b.Z(e)})))})})).catch((function(e){i.setState({isLoadingMore:!1});var t=y.c.getErrorMsg(e);_.Z.danger(t)}))},i.isExpireDaysNoLimit=0===v.pw&&0===v.WN&&0==v.WW,i.defaultExpireDays=i.isExpireDaysNoLimit?"":v.WW,i.state={isLoading:!0,hasMore:!1,isLoadingMore:!1,page:1,mode:"listLinks",sharedLinkInfo:null,shareLinks:[],permissionOptions:[],currentPermission:""},i}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.state.page,n=this.props,r=n.repoID,i=n.itemPath;if(g.I.listShareLinks({repoID:r,path:i,page:t}).then((function(t){e.setState({isLoading:!1,hasMore:25==t.data.length,shareLinks:t.data.map((function(e){return new b.Z(e)}))})})).catch((function(e){var t=y.c.getErrorMsg(e);_.Z.danger(t)})),v._y){var a=this.props,o=a.itemType,s=a.userPerm;if("library"==o){var l=y.c.getShareLinkPermissionList(o,s,i);this.setState({permissionOptions:l,currentPermission:l[0]})}else{var u;"file"===this.props.itemType?u=g.I.getFileInfo(r,i):"dir"===this.props.itemType&&(u=g.I.getDirInfo(r,i)),u.then((function(t){var n=t.data.can_edit,r=t.data.permission,a=y.c.getShareLinkPermissionList(e.props.itemType,r,i,n);e.setState({permissionOptions:a,currentPermission:a[0]})})).catch((function(e){var t=y.c.getErrorMsg(e);_.Z.danger(t)}))}}}},{key:"render",value:function(){if(this.state.isLoading)return(0,A.jsx)(S.Z,{});var e=this.props,t=e.repoID,n=e.itemPath,r=e.userPerm,i=this.state,a=i.mode,o=i.shareLinks,s=i.sharedLinkInfo,l=i.permissionOptions,u=i.currentPermission,c=i.isLoadingMore;switch(a){case"displayLinkDetails":return(0,A.jsx)(G,{sharedLinkInfo:s,permissionOptions:l,defaultExpireDays:this.defaultExpireDays,showLinkDetails:this.showLinkDetails,updateLink:this.updateLink,deleteLink:this.deleteLink,closeShareDialog:this.props.closeShareDialog});case"singleLinkCreation":return(0,A.jsx)(K,{type:"single",repoID:t,itemPath:n,userPerm:r,permissionOptions:l,currentPermission:u,setMode:this.setMode,updateAfterCreation:this.updateAfterCreation});case"linksCreation":return(0,A.jsx)(K,{type:"batch",repoID:t,itemPath:n,userPerm:r,permissionOptions:l,currentPermission:u,setMode:this.setMode,updateAfterCreation:this.updateAfterCreation});default:return(0,A.jsx)(ne,{shareLinks:o,permissionOptions:l,setMode:this.setMode,showLinkDetails:this.showLinkDetails,toggleSelectAllLinks:this.toggleSelectAllLinks,toggleSelectLink:this.toggleSelectLink,deleteShareLinks:this.deleteShareLinks,deleteLink:this.deleteLink,handleScroll:this.handleScroll,isLoadingMore:c})}}}]),n}(l.Component),ie=n(6626),ae=y.c.isDesktop()?250:210,oe=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).getUploadLink=function(){var e=i.props.itemPath,t=i.props.repoID;g.I.getUploadLink(t,e).then((function(e){if(0!==e.data.length){var t=new ie.Z(e.data[0]);i.setState({sharedUploadInfo:t})}})).catch((function(e){var t=y.c.getErrorMsg(e,!0);e.response&&403===e.response.status||_.Z.danger(t),i.props.closeShareDialog()}))},i.addPassword=function(){i.setState({showPasswordInput:!i.state.showPasswordInput,password:"",passwordnew:"",errorInfo:""})},i.togglePasswordVisible=function(){i.setState({passwordVisible:!i.state.passwordVisible})},i.generatePassword=function(){var e=y.c.generatePassword(v.pr);i.setState({password:e,passwordnew:e})},i.inputPassword=function(e){i.setState({password:e.target.value})},i.inputPasswordNew=function(e){i.setState({passwordnew:e.target.value})},i.toggleStoredPasswordVisible=function(){i.setState({storedPasswordVisible:!i.state.storedPasswordVisible})},i.generateUploadLink=function(){if(i.validateParamsInput()){i.setState({errorInfo:""});var e=i.props,t=e.itemPath,n=e.repoID,r=i.state,a=r.password,o=r.isExpireChecked,s=r.expType,l=r.expireDays,u=r.expDate,c="";o&&(c="by-days"==s?k()().add(parseInt(l),"days").format():u.format()),g.I.createUploadLink(n,t,a,c).then((function(e){var t=new ie.Z(e.data);i.setState({sharedUploadInfo:t})})).catch((function(e){var t=y.c.getErrorMsg(e);_.Z.danger(t)}))}},i.validateParamsInput=function(){var e=i.state,t=e.showPasswordInput,n=e.password,r=e.passwordnew,a=e.isExpireChecked,o=e.expType,s=e.expireDays,l=e.expDate;if(t){if(0===n.length)return i.setState({errorInfo:(0,v.ih)("Please enter a password.")}),!1;if(n.length0)for(var r=0;r0)for(var n=0;n0)for(var n=0;n0&&this.state.errorMsg.map((function(e,t){var n="";return n=e.email?e.email+": "+e.error_msg:e,(0,A.jsx)("tr",{children:(0,A.jsx)("td",{colSpan:3,children:(0,A.jsx)("p",{className:"error",children:n})})},t)}))]})]}),(0,A.jsx)("div",{className:"share-list-container",children:(0,A.jsxs)("table",{className:"table-thead-hidden w-xs-200",children:[t,(0,A.jsx)(ce,{repoID:this.props.repoID,items:e,permissions:this.permissions,deleteShareItem:this.deleteShareItem,onChangeUserPermission:this.onChangeUserPermission})]})})]})}}]),n}(l.Component),fe=n(32959),pe=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).onMouseEnter=function(){i.setState({isOperationShow:!0})},i.onMouseLeave=function(){i.setState({isOperationShow:!1})},i.deleteShareItem=function(){var e=i.props.item;i.props.deleteShareItem(e.group_info.id)},i.onChangeUserPermission=function(e){var t=i.props.item;i.props.onChangeUserPermission(t,e)},i.state={isOperationShow:!1},i}return(0,i.Z)(n,[{key:"render",value:function(){var e=this.props.item,t=y.c.getSharedPermission(e);return(0,A.jsxs)("tr",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,tabIndex:"0",onFocus:this.onMouseEnter,children:[(0,A.jsx)("td",{className:"name",children:e.group_info.name}),(0,A.jsx)("td",{children:(0,A.jsx)(le.Z,{repoID:this.props.repoID,isTextMode:!0,autoFocus:!0,isEditIconShow:this.state.isOperationShow,currentPermission:t,permissions:this.props.permissions,onPermissionChanged:this.onChangeUserPermission})}),(0,A.jsx)("td",{children:(0,A.jsx)("span",{tabIndex:"0",role:"button",className:"sf2-icon-x3 action-icon ".concat(this.state.isOperationShow?"":"hide"),onClick:this.deleteShareItem,onKeyDown:y.c.onKeyDown,title:(0,v.ih)("Delete"),"aria-label":(0,v.ih)("Delete")})})]})}}]),n}(l.Component),he=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"render",value:function(){var e=this,t=this.props.items;return(0,A.jsx)("tbody",{children:t.map((function(t,n){return(0,A.jsx)(pe,{item:t,repoID:e.props.repoID,permissions:e.props.permissions,deleteShareItem:e.props.deleteShareItem,onChangeUserPermission:e.props.onChangeUserPermission},n)}))})}}]),n}(l.Component),Oe=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;(0,r.Z)(this,n),(i=t.call(this,e)).handleSelectChange=function(e){i.setState({selectedOption:e})},i.loadOptions=function(){g.I.shareableGroups().then((function(e){for(var t=[],n=0;n0)for(var n=0;n0)for(var n=0;n0&&this.state.errorMsg.map((function(e,t){var n=e.group_name+": "+e.error_msg;return(0,A.jsx)("tr",{children:(0,A.jsx)("td",{colSpan:3,children:(0,A.jsx)("p",{className:"error",children:n})})},t)}))]})]}),(0,A.jsx)("div",{className:"share-list-container",children:(0,A.jsxs)("table",{className:"table-thead-hidden w-xs-200",children:[e,(0,A.jsx)(he,{repoID:this.props.repoID,items:this.state.sharedItems,permissions:this.permissions,deleteShareItem:this.deleteShareItem,onChangeUserPermission:this.onChangeUserPermission})]})})]})}}]),n}(l.Component),me=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).onMouseEnter=function(){i.setState({isOperationShow:!0})},i.onMouseLeave=function(){i.setState({isOperationShow:!1})},i.deleteShareItem=function(){var e=i.props.item;i.props.deleteShareItem(e.token)},i.onChangeUserPermission=function(e){var t=i.props.item;i.props.onChangeUserPermission(t.token,e)},i.state={isOperationShow:!1},i}return(0,i.Z)(n,[{key:"render",value:function(){var e=this.props.item,t=e.is_admin?"admin":e.permission;return(0,A.jsxs)("tr",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,tabIndex:"0",onFocus:this.onMouseEnter,children:[(0,A.jsx)("td",{className:"name",children:e.accepter}),(0,A.jsx)("td",{children:(0,A.jsx)(le.Z,{isTextMode:!0,isEditIconShow:this.state.isOperationShow,currentPermission:t,permissions:this.props.permissions,onPermissionChanged:this.onChangeUserPermission})}),(0,A.jsx)("td",{children:k()(e.expire_time).format("YYYY-MM-DD")}),(0,A.jsx)("td",{className:"name",children:e.inviter_name}),(0,A.jsx)("td",{children:(0,A.jsx)("span",{tabIndex:"0",role:"button",className:"sf2-icon-x3 action-icon ".concat(this.state.isOperationShow?"":"hide"),onClick:this.deleteShareItem,onKeyDown:y.c.onKeyDown,title:(0,v.ih)("Delete"),"aria-label":(0,v.ih)("Delete")})})]})}}]),n}(l.Component),ve=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"render",value:function(){var e=this,t=this.props.items;return(0,A.jsx)("tbody",{children:t.map((function(t,n){return(0,A.jsx)(me,{item:t,permissions:e.props.permissions,deleteShareItem:e.props.deleteShareItem,onChangeUserPermission:e.props.onChangeUserPermission},n)}))})}}]),n}(l.Component),ge=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).handleInputChange=function(e){var t=e.target.value;i.setState({emails:t}),i.state.errorMsg&&i.setState({errorMsg:""})},i.handleKeyDown=function(e){13===e.keyCode&&(e.preventDefault(),i.shareAndInvite())},i.setPermission=function(e){i.setState({permission:e})},i.onInvitePeople=function(e){e.push.apply(e,i.state.sharedItems),i.setState({sharedItems:e})},i.shareAndInvite=function(){var e=i.state.emails.trim();if(!e)return i.setState({errorMsg:(0,v.ih)("It is required.")}),!1;for(var t=[],n=0,r=(e=e.split(",")).length;n0&&(0,A.jsx)("tr",{children:(0,A.jsx)("td",{colSpan:3,children:(0,A.jsx)("p",{className:"error",children:this.state.errorMsg})})},"error")]})]}),(0,A.jsx)("div",{className:"share-list-container",children:(0,A.jsxs)("table",{className:"w-xs-200",children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{width:"25%",children:(0,v.ih)("Email")}),(0,A.jsx)("th",{width:"20%",children:(0,v.ih)("Permission")}),(0,A.jsx)("th",{width:"20%",children:(0,v.ih)("Expiration")}),(0,A.jsx)("th",{width:"20%",children:(0,v.ih)("Inviter")}),(0,A.jsx)("th",{width:"15%",children:""})]})}),(0,A.jsx)(ve,{items:t,permissions:this.permissions,deleteShareItem:this.deleteShareItem,onChangeUserPermission:this.onChangeUserPermission})]})})]})}}]),n}(l.Component),ye=n(17787),be=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).onMouseEnter=function(){i.setState({isOperationShow:!0})},i.onMouseLeave=function(){i.setState({isOperationShow:!1})},i.deleteShareItem=function(){i.setState({isOpFrozen:!0});var e=i.props.item;i.props.deleteShareItem(e)},i.state={isOperationShow:!1,isOpFrozen:!1},i}return(0,i.Z)(n,[{key:"render",value:function(){var e=this.props.item,t=this.state,n=t.isOperationShow,r=t.isOpFrozen;return(0,A.jsxs)("tr",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onMouseEnter,children:[(0,A.jsx)("td",{children:(0,A.jsx)("a",{href:e.to_server_url,target:"_blank",rel:"noreferrer",children:e.to_server_name})}),(0,A.jsx)("td",{children:e.to_user}),(0,A.jsx)("td",{children:y.c.sharePerms(e.permission)}),(0,A.jsx)("td",{children:(0,A.jsx)(ye.Z,{className:"sf2-icon-x3 action-icon ".concat(n&&!r?"":"hide"),op:this.deleteShareItem,title:(0,v.ih)("Delete")})})]})}}]),n}(l.Component),_e=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"render",value:function(){var e=this;return(0,A.jsx)("div",{className:"share-list-container",children:(0,A.jsxs)("table",{className:"table-thead-hidden",children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{width:"30%",children:(0,v.ih)("Server")}),(0,A.jsx)("th",{width:"25%",children:(0,v.ih)("User Email")}),(0,A.jsx)("th",{width:"30%",children:(0,v.ih)("Permission")}),(0,A.jsx)("th",{width:"15%"})]})}),(0,A.jsx)("tbody",{children:this.props.items.map((function(t,n){return(0,A.jsx)(be,{item:t,deleteShareItem:e.props.deleteShareItem},n)}))})]})})}}]),n}(l.Component),Se=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).OCMShare=function(){var e=i.props,t=e.repoID,n=e.itemPath,r=i.state,a=r.selectedServer,o=r.toUser,s=r.permission,l=a.value;l.endsWith("/")||(l+="/"),i.setState({btnDisabled:!0,isSubmitting:!0}),g.I.addOCMSharePrepare(o,l,t,n,s).then((function(e){var t=i.state.ocmShares;t.unshift(e.data),i.setState({ocmShares:t,selectedServer:null,toUser:"",permission:"rw",isSubmitting:!1})})).catch((function(e){var t=y.c.getErrorMsg(e);_.Z.danger(t),i.setState({btnDisabled:!1,isSubmitting:!1})}))},i.handleToUserChange=function(e){var t=e.target.value;i.setState({toUser:t,btnDisabled:!i.state.selectedServer||!t.trim()})},i.handleServerChange=function(e){i.setState({selectedServer:e,btnDisabled:!i.state.toUser.trim()})},i.deleteShareItem=function(e){var t=e.id;_.Z.notify((0,v.ih)("It may take some time, please wait.")),g.I.deleteOCMSharePrepare(t).then((function(e){var n=i.state.ocmShares.filter((function(e){return e.id!=t}));i.setState({ocmShares:n}),_.Z.success((0,v.ih)("Successfully deleted 1 item."))})).catch((function(e){var t=y.c.getErrorMsg(e);_.Z.danger(t)}))},i.setPermission=function(e){i.setState({permission:e})},i.state={selectedServer:null,toUser:"",permission:"rw",btnDisabled:!0,isSubmitting:!1,ocmShares:[]},i.permissions=["rw","r"],i}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){var e=this;g.I.listOCMSharesPrepare(this.props.repoID).then((function(t){e.setState({ocmShares:t.data.ocm_share_list})})).catch((function(t){var n=y.c.getErrorMsg(t);e.setState({errorMsg:n})}))}},{key:"render",value:function(){var e=this.state,t=e.errorMsg,n=e.ocmShares,r=e.toUser,i=e.selectedServer,a=e.permission,o=e.btnDisabled,s=e.isSubmitting;return(0,A.jsxs)(l.Fragment,{children:[(0,A.jsxs)("table",{children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{width:"30%",children:(0,v.ih)("Server")}),(0,A.jsx)("th",{width:"25%",children:(0,v.ih)("User Email")}),(0,A.jsx)("th",{width:"30%",children:(0,v.ih)("Permission")}),(0,A.jsx)("th",{width:"15%"})]})}),(0,A.jsx)("tbody",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("td",{children:(0,A.jsx)(fe.ME,{placeholder:(0,v.ih)("Select a server"),value:i,options:v.jN,onChange:this.handleServerChange})}),(0,A.jsx)("td",{children:(0,A.jsx)(L.Z,{value:r,onChange:this.handleToUserChange})}),(0,A.jsx)("td",{children:(0,A.jsx)(le.Z,{isTextMode:!1,isEditIconShow:!1,currentPermission:a,permissions:this.permissions,onPermissionChanged:this.setPermission})}),(0,A.jsx)("td",{children:(0,A.jsx)(E.Z,{onClick:this.OCMShare,disabled:o,className:s?"btn-loading":"",children:(0,v.ih)("Submit")})})]})})]}),t?(0,A.jsx)("p",{className:"error text-center mt-4",children:t}):(0,A.jsx)(_e,{items:n,deleteShareItem:this.deleteShareItem})]})}}]),n}(l.Component),we=n(89915),ke=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).copyToClipBoard=function(){(0,we.Z)(i.state.smartLink);var e=(0,v.ih)("Internal link has been copied to clipboard");_.Z.success(e,{duration:2})},i.state={smartLink:"",isInternalLoding:!0},i}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.repoID,r=t.path,i=t.direntType;g.I.getInternalLink(n,r,i).then((function(t){e.setState({smartLink:t.data.smart_link,isInternalLoding:!1})})).catch((function(e){var t=y.c.getErrorMsg(e);_.Z.danger(t)}))}},{key:"render",value:function(){return this.state.isInternalLoding?(0,A.jsx)(S.Z,{}):(0,A.jsxs)("div",{children:[(0,A.jsx)("p",{className:"tip mb-1",children:(0,v.ih)("An internal link is a link to a file or folder that can be accessed by users with read permission to the file or folder.")}),(0,A.jsx)("p",{children:(0,A.jsx)("a",{target:"_blank",href:this.state.smartLink,rel:"noreferrer",children:this.state.smartLink})}),(0,A.jsx)(E.Z,{onClick:this.copyToClipBoard,color:"primary",className:"mt-2",children:(0,v.ih)("Copy")})]})}}]),n}(l.Component),Te=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).onMouseEnter=function(){i.setState({isShowOperations:!0})},i.onMouseOver=function(){i.setState({isShowOperations:!0})},i.onMouseLeave=function(){i.setState({isShowOperations:!1})},i.onEditCustomPermission=function(){var e=i.props.permission;i.props.onEditCustomPermission(e)},i.onDeleteCustomPermission=function(){var e=i.props.permission;i.props.onDeleteCustomPermission(e)},i.state={isShowOperations:!1},i}return(0,i.Z)(n,[{key:"render",value:function(){var e=this.props.permission,t=e.id,n=e.name,r=e.description;return(0,A.jsxs)("tr",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseOver:this.onMouseOver,tabIndex:"0",onFocus:this.onMouseEnter,children:[(0,A.jsx)("td",{width:"22%",className:"text-truncate",title:n,children:n}),(0,A.jsx)("td",{width:"56%",className:"text-truncate",children:r}),(0,A.jsx)("td",{width:"22%",children:this.state.isShowOperations&&(0,A.jsxs)(l.Fragment,{children:[(0,A.jsx)(ye.Z,{className:"fa fa-pencil-alt attr-action-icon",title:(0,v.ih)("Edit"),op:this.onEditCustomPermission}),(0,A.jsx)(ye.Z,{className:"fa fa-trash attr-action-icon",title:(0,v.ih)("Delete"),op:this.onDeleteCustomPermission})]})})]},t)}}]),n}(l.Component),xe=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"render",value:function(){var e=this,t=this.props.permissions;return(0,A.jsxs)("div",{className:"custom-permission",children:[(0,A.jsxs)("div",{className:"permission-header",children:[(0,A.jsx)("div",{className:"title",children:(0,v.ih)("Permission")}),(0,A.jsx)("div",{className:"operation",children:(0,A.jsx)("button",{type:"button",className:"btn btn-sm btn-outline-primary",onClick:this.props.onAddCustomPermission,children:(0,v.ih)("Add permission")})})]}),(0,A.jsxs)("div",{className:"permission-main mt-4",children:[(0,A.jsx)("table",{className:"permissions-list-header",children:(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{width:"22%",children:(0,v.ih)("Permission name")}),(0,A.jsx)("th",{width:"56%",children:(0,v.ih)("Description")}),(0,A.jsx)("th",{width:"22%"})]})})}),(0,A.jsx)("div",{className:"permissions-list-body",children:(0,A.jsx)("table",{children:(0,A.jsx)("tbody",{children:t.map((function(t){return(0,A.jsx)(Te,{permission:t,onEditCustomPermission:e.props.onEditCustomPermission,onDeleteCustomPermission:e.props.onDeleteCustomPermission},t.id)}))})})})]})]})}}]),n}(l.Component),Ee=xe,Pe=n(4942),$e=n(39857),Qe=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).onChangePermissionName=function(e){var t=i.state.permission_name,n=e.target.value;n!==t&&i.setState({permission_name:n})},i.onChangePermissionDescription=function(e){var t=i.state.permission_desc,n=e.target.value;n!==t&&i.setState({permission_desc:n})},i.onChangePermission=function(e){return function(){var t=i.state.permission,n=!t[e],r=Object.assign({},t,(0,Pe.default)({},e,n));i.setState({permission:r})}},i.validParams=function(){var e=i.state,t=e.permission_name,n=e.permission_desc,r=!1;return t&&t.trim()?n&&n.trim()?{isValid:r=!0}:{isValid:r,errMessage:(0,v.ih)("Description is required")}:{isValid:r,errMessage:(0,v.ih)("Name is required")}},i.onUpdateCustomPermission=function(){var e=i.state,t=e.permission_name,n=e.permission_desc,r=e.permission,a=i.validParams(),o=a.isValid,s=a.errMessage;o?i.props.onUpdateCustomPermission(t,n,r):i.setState({errMessage:s})},i.toggle=function(){i.setState({tooltipOpen:!i.state.tooltipOpen})},i.state={isLoading:!0,permission_name:"",permission_desc:"",permission:{upload:!1,download:!1,modify:!1,copy:!1,delete:!1,preview:!1,download_external_link:!1},errMessage:"",tooltipOpen:!1},i}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){var e=this.props.permission;e?this.setState({permission_name:e.name,permission_desc:e.description,permission:e.permission,isLoading:!1}):this.setState({isLoading:!1})}},{key:"render",value:function(){var e="add"===this.props.mode?(0,v.ih)("Add permission"):(0,v.ih)("Edit permission"),t=this.state,n=t.isLoading,r=t.permission_name,i=t.permission_desc,a=t.permission,o=t.errMessage;return(0,A.jsxs)("div",{className:"custom-permission",children:[(0,A.jsxs)("div",{className:"permission-header",children:[(0,A.jsxs)("div",{className:"d-flex align-items-center",children:[(0,A.jsx)(ye.Z,{className:"fa fa-arrow-left back-icon",op:this.props.onChangeMode,title:(0,v.ih)("Back")}),(0,A.jsx)("span",{children:e})]}),(0,A.jsx)("div",{className:"operation",children:(0,A.jsx)("button",{type:"button",className:"btn btn-sm btn-outline-primary",onClick:this.onUpdateCustomPermission,children:(0,v.ih)("Submit")})})]}),(0,A.jsxs)("div",{className:"permission-main mt-4",children:[n&&(0,A.jsx)(S.Z,{}),!n&&(0,A.jsxs)(l.Fragment,{children:[(0,A.jsxs)("div",{className:"permission-name-desc d-flex",children:[(0,A.jsxs)(C.Z,{className:"permission-name",children:[(0,A.jsx)(D.Z,{children:(0,v.ih)("Permission name")}),(0,A.jsx)(L.Z,{value:r||"",onChange:this.onChangePermissionName})]}),(0,A.jsxs)(C.Z,{className:"permission-desc",children:[(0,A.jsx)(D.Z,{children:(0,v.ih)("Description")}),(0,A.jsx)(L.Z,{value:i||"",onChange:this.onChangePermissionDescription})]})]}),o&&(0,A.jsx)(H.Z,{color:"danger",children:o}),(0,A.jsxs)("div",{className:"permission-options",children:[(0,A.jsx)(C.Z,{check:!0,children:(0,A.jsxs)(D.Z,{check:!0,children:[(0,A.jsx)(L.Z,{type:"checkbox",onChange:this.onChangePermission("upload"),checked:a.upload}),(0,A.jsx)("span",{children:(0,v.ih)("Upload")})]})}),(0,A.jsx)(C.Z,{check:!0,children:(0,A.jsxs)(D.Z,{check:!0,children:[(0,A.jsx)(L.Z,{type:"checkbox",onChange:this.onChangePermission("download"),checked:a.download}),(0,A.jsx)("span",{children:(0,v.ih)("Download")})]})}),(0,A.jsx)(C.Z,{check:!0,children:(0,A.jsxs)(D.Z,{check:!0,children:[(0,A.jsx)(L.Z,{type:"checkbox",onChange:this.onChangePermission("create"),checked:a.create}),(0,A.jsx)("span",{children:(0,v.ih)("Create")})]})}),(0,A.jsx)(C.Z,{check:!0,children:(0,A.jsxs)(D.Z,{check:!0,children:[(0,A.jsx)(L.Z,{type:"checkbox",onChange:this.onChangePermission("modify"),checked:a.modify}),(0,A.jsx)("span",{children:(0,v.ih)("Modify")}),(0,A.jsx)("span",{id:"modify-tip",className:"fa fa-question-circle ml-2",style:{color:"#999"}}),(0,A.jsxs)($e.Z,{toggle:this.toggle,delay:{show:0,hide:0},target:"modify-tip",placement:"bottom",isOpen:this.state.tooltipOpen,children:["(",(0,v.ih)("Modify includes modify file, move/rename file and folder"),")"]})]})}),(0,A.jsx)(C.Z,{check:!0,children:(0,A.jsxs)(D.Z,{check:!0,children:[(0,A.jsx)(L.Z,{type:"checkbox",onChange:this.onChangePermission("copy"),checked:a.copy}),(0,A.jsx)("span",{children:(0,v.ih)("Copy")})]})}),(0,A.jsx)(C.Z,{check:!0,children:(0,A.jsxs)(D.Z,{check:!0,children:[(0,A.jsx)(L.Z,{type:"checkbox",onChange:this.onChangePermission("delete"),checked:a.delete}),(0,A.jsx)("span",{children:(0,v.ih)("Delete")})]})}),(0,A.jsx)(C.Z,{check:!0,children:(0,A.jsxs)(D.Z,{check:!0,children:[(0,A.jsx)(L.Z,{type:"checkbox",onChange:this.onChangePermission("preview"),checked:a.preview}),(0,A.jsx)("span",{children:(0,v.ih)("Preview online")})]})}),(0,A.jsx)(C.Z,{check:!0,children:(0,A.jsxs)(D.Z,{check:!0,children:[(0,A.jsx)(L.Z,{type:"checkbox",onChange:this.onChangePermission("download_external_link"),checked:a.download_external_link}),(0,A.jsx)("span",{children:(0,v.ih)("Generate share link")})]})})]})]})]})]})}}]),n}(l.Component);Qe.defaultProps={mode:"add"};var Ce=Qe,De=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,a=new Array(i),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},n=(0,m.F)({components:t}),r=n.Input,i=n.MultiValue,a=n.Placeholder,o=n.SingleValue,l=n.ValueContainer,u=(0,h.Z)(n,j);return(0,p.Z)({Input:(e=r,function(t){t.in,t.onExited,t.appear,t.enter,t.exit;var n=(0,h.Z)(t,Q);return s.createElement(e,n)}),MultiValue:X(i),Placeholder:L(a),SingleValue:M(o),ValueContainer:Z(l)},u)},q=Y(),W=(q.Input,q.MultiValue,q.Placeholder,q.SingleValue,q.ValueContainer,(0,O.Z)(Y)),B=n(4514),z=n(61805),V=n(83854),G=n(68396),H=n(78534),J=n(32959),K=n(46417),ee=function(e){(0,a.Z)(n,e);var t=(0,o.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).handleSelectChange=function(e){i.setState({selectedOption:e})},i.submit=function(){var e=i.state.selectedOption;i.props.submit(e)},i.onClick=function(){i.setState({transferToUser:!i.state.transferToUser})},i.state={selectedOption:null,errorMsg:[],transferToUser:!0},i.options=[],i}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){var e=this;z._y&&B.I.listDepartments().then((function(t){for(var n=0;n'+V.c.HTMLescape(t)+""),(0,K.jsxs)(l.Z,{isOpen:!0,toggle:this.props.toggleDialog,children:[(0,K.jsx)(u.Z,{toggle:this.props.toggleDialog,children:(0,K.jsx)("span",{dangerouslySetInnerHTML:{__html:n},className:"d-flex mw-100"})}),(0,K.jsxs)(c.Z,{children:[this.state.transferToUser?(0,K.jsx)(H.Z,{ref:"userSelect",isMulti:!1,className:"reviewer-select",placeholder:(0,z.ih)("Select a user"),onSelectChange:this.handleSelectChange}):(0,K.jsx)(J.ME,{isClearable:!0,maxMenuHeight:200,hideSelectedOptions:!0,components:W(),placeholder:(0,z.ih)("Select a department"),options:this.options,onChange:this.handleSelectChange,value:this.state.selectedOption}),z._y&&e&&(0,K.jsx)("span",{role:"button",tabIndex:"0",className:"action-link",onClick:this.onClick,onKeyDown:V.c.onKeyDown,children:this.state.transferToUser?(0,z.ih)("Transfer to department"):(0,z.ih)("Transfer to user")})]}),(0,K.jsxs)(d.Z,{children:[(0,K.jsx)(f.Z,{color:"secondary",onClick:this.props.toggleDialog,children:(0,z.ih)("Cancel")}),(0,K.jsx)(f.Z,{color:"primary",onClick:this.submit,children:(0,z.ih)("Submit")})]})]})}}]),n}(s.Component)},43216:function(e,t,n){"use strict";var r=n(15671),i=n(43144),a=n(60136),o=n(29388),s=n(47313),l=n(61805),u=n(46417),c=function(e){(0,a.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"render",value:function(){return(0,u.jsxs)("div",{className:this.props.forDialog?"text-center mt-8":"empty-tip",children:[(0,u.jsx)("img",{src:"".concat(l.si,"img/no-items-tip.png"),alt:"",width:"100",height:"100",className:"no-items-img-tip"}),this.props.children]})}}]),n}(s.Component);t.Z=c},62150:function(e,t,n){"use strict";n.d(t,{Z:function(){return $}});var r=n(15671),i=n(43144),a=n(97326),o=n(60136),s=n(29388),l=n(47313),u=n(5684),c=n(4514),d=n(61805),f=n(83854),p=n(68396),h=n(61166),O=n(46417),m=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;(0,r.Z)(this,n),(i=t.call(this,e)).onToggleClick=function(e){e.stopPropagation();var t=i.props.node;t.isExpanded?i.props.onNodeCollapse(t):i.props.onNodeExpanded(t)},i.onItemClick=function(e){e.stopPropagation();var t=!1;i.props.selectedRepo&&(t=i.props.selectedRepo.repo_id===i.props.repo.repo_id),t?i.props.selectedPath!==i.state.filePath?i.props.onDirentItemClick(i.state.filePath,i.props.node.object):"dir"===i.props.node.object.type&&i.onToggleClick(e):i.props.onDirentItemClick(i.state.filePath,i.props.node.object)},i.renderChildren=function(){var e=i.props.node;return e.hasChildren()?(0,O.jsx)("div",{className:"list-view-content",children:e.children.map((function(e){return(0,O.jsx)(n,{node:e,onNodeCollapse:i.props.onNodeCollapse,onNodeExpanded:i.props.onNodeExpanded,repo:i.props.repo,onDirentItemClick:i.props.onDirentItemClick,selectedRepo:i.props.selectedRepo,selectedPath:i.props.selectedPath,fileSuffixes:i.props.fileSuffixes},e.path)}))}):""};var a=i.props.filePath?i.props.filePath+"/"+i.props.node.object.name:i.props.node.path;return i.state={filePath:a},i}return(0,i.Z)(n,[{key:"render",value:function(){var e=this.props.node,t=!1;this.props.selectedRepo&&(t=this.props.selectedRepo.repo_id===this.props.repo.repo_id);var n=this.props.selectedPath===this.state.filePath,r=e.object.name;if(this.props.fileSuffixes&&r&&"file"===e.object.type)if(-1!==r.indexOf(".")){var i=r.slice(r.lastIndexOf(".")+1).toLowerCase();if(!this.props.fileSuffixes.includes(i))return null}else if("file"===e.object.type)return null;return(0,O.jsxs)("div",{className:"file-chooser-item",children:[(0,O.jsx)("div",{className:"".concat("/"===e.path?"hide":""),children:(0,O.jsxs)("div",{className:"".concat(t&&n?"item-active":""," item-info"),onClick:this.onItemClick,children:[(0,O.jsx)("div",{className:"item-text",children:(0,O.jsx)("span",{className:"name user-select-none ellipsis",title:e.object&&e.object.name,children:e.object&&e.object.name})}),(0,O.jsxs)("div",{className:"item-left-icon",children:["file"!==e.object.type&&(0,O.jsx)("span",{className:"icon item-toggle fa ".concat(e.isExpanded?"fa-caret-down":"fa-caret-right"),onClick:this.onToggleClick}),(0,O.jsx)("i",{className:"tree-node-icon",children:(0,O.jsx)("span",{className:"icon far ".concat("dir"===e.object.type?"fa-folder":"fa-file")})})]})]})}),e.isExpanded&&this.renderChildren()]})}}]),n}(l.Component),v=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"render",value:function(){return(0,O.jsx)("div",{className:"list-view-content",style:{marginLeft:"-1.5rem"},children:(0,O.jsx)(m,{node:this.props.treeData.root,onNodeCollapse:this.props.onNodeCollapse,onNodeExpanded:this.props.onNodeExpanded,repo:this.props.repo,onDirentItemClick:this.props.onDirentItemClick,selectedRepo:this.props.selectedRepo,selectedPath:this.props.selectedPath,fileSuffixes:this.props.fileSuffixes})})}}]),n}(l.Component),g=v,y=n(70609),b=n(55668),_=n(47809),S=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).loadRepoDirentList=function(e){if(!i.state.hasLoaded){var t=e.repo_id;c.I.listDir(t,"/").then((function(e){var t=i.state.treeData.clone(),n=[];n=!0===i.props.isShowFile?e.data.dirent_list:e.data.dirent_list.filter((function(e){return"dir"===e.type})),i.addResponseListToNode(n,t.root),i.setState({treeData:t,hasLoaded:!0})})).catch((function(e){var t=f.c.getErrorMsg(e);p.Z.danger(t)}))}},i.addResponseListToNode=function(e,t){t.isLoaded=!0,t.isExpanded=!0;var n=e.map((function(e){return new b.Z(e)})),r=(n=f.c.sortDirents(n,"name","asc")).map((function(e){return new y.Z({object:e})}));t.addChildren(r)},i.onNodeExpanded=function(e){var t=i.props.repo.repo_id,n=i.state.treeData.clone();(e=n.getNodeByPath(e.path)).isLoaded?(n.expandNode(e),i.setState({treeData:n})):c.I.listDir(t,e.path).then((function(t){var r=[];r=!0===i.props.isShowFile?t.data.dirent_list:t.data.dirent_list.filter((function(e){return"dir"===e.type})),i.addResponseListToNode(r,e),i.setState({treeData:n})})).catch((function(e){var t=f.c.getErrorMsg(e);p.Z.danger(t)}))},i.onNodeCollapse=function(e){var t=_.Z.collapseNode(i.state.treeData,e);i.setState({treeData:t})},i.loadNodeAndParentsByPath=function(e,t,n){var r=i.state.treeData.clone();c.I.listDir(e,t,{with_parents:!0}).then((function(e){var a=e.data.dirent_list;a=a.filter((function(e){return"dir"===e.type}));for(var o={},s=0;s0&&i.map((function(t,i){return(0,O.jsx)(S,{isCurrentRepo:!!n,currentPath:r,repo:t,initToShowChildren:e.props.initToShowChildren,selectedRepo:e.props.selectedRepo,selectedPath:e.props.selectedPath,onRepoItemClick:e.props.onRepoItemClick,onDirentItemClick:e.props.onDirentItemClick,isShowFile:e.props.isShowFile,fileSuffixes:e.props.fileSuffixes,selectedItemInfo:e.props.selectedItemInfo},i)}))})}}]),n}(l.Component),k=w,T=n(51282),x=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).onMouseEnter=function(){i.setState({highlight:!0})},i.onMouseLeave=function(){i.setState({highlight:!1})},i.onClick=function(){var e=i.props.item;i.props.onItemClick(e)},i.searchItemDoubleClick=function(e){var t=i.props.item;i.props.onSearchedItemDoubleClick(t)},i.state={highlight:!1},i}return(0,i.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.item,n=e.currentItem,r=t.link_content?f.c.getFolderIconUrl(!1,192):f.c.getDefaultLibIconUrl(!1),i=t.is_dir?r:f.c.getFileIconUrl(t.name,192),a=this.state.highlight?"tr-highlight":"";return n&&t.repo_id===n.repo_id&&t.path===n.path&&(a="tr-active"),(0,O.jsxs)("tr",{className:a,onClick:this.onClick,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onDoubleClick:this.searchItemDoubleClick,children:[(0,O.jsx)("td",{className:"text-center",children:(0,O.jsx)("img",{className:"item-img",src:i,alt:"",width:"24"})}),(0,O.jsx)("td",{children:(0,O.jsxs)("span",{className:"item-link",children:[t.repo_name,"/",t.link_content]})})]})}}]),n}(l.Component),E=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).onItemClick=function(e){i.setState({currentItem:e}),i.props.onItemClick(e)},i.state={currentItem:null},i}return(0,i.Z)(n,[{key:"render",value:function(){var e=this;return(0,O.jsxs)("table",{className:"table-thead-hidden file-chooser-table",rules:"node",frame:"void",children:[(0,O.jsx)("thead",{children:(0,O.jsxs)("tr",{children:[(0,O.jsx)("th",{width:"8%"}),(0,O.jsx)("th",{width:"92%"})]})}),(0,O.jsx)("tbody",{children:this.props.searchResults.map((function(t,n){return(0,O.jsx)(x,{item:t,currentItem:e.state.currentItem,onItemClick:e.onItemClick,onSearchedItemDoubleClick:e.props.onSearchedItemDoubleClick},n)}))})]})}}]),n}(l.Component),P=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).onOtherRepoToggle=function(){if(i.state.hasRequest)i.setState({isOtherRepoShow:!i.state.isOtherRepoShow});else{var e=(0,a.Z)(i);c.I.listRepos().then((function(t){for(var n=t.data.repos,r=[],a=[],o=0;o-1||(r.push(n[o]),a.push(n[o].repo_id)));r=f.c.sortRepos(r,"name","asc"),i.setState({repoList:r,isOtherRepoShow:!i.state.isOtherRepoShow,selectedItemInfo:{}})}))}},i.onCurrentRepoToggle=function(){i.setState({isCurrentRepoShow:!i.state.isCurrentRepoShow})},i.onDirentItemClick=function(e,t,n){i.props.onDirentItemClick(e,t,n),i.setState({selectedRepo:e,selectedPath:t})},i.onRepoItemClick=function(e){i.props.onRepoItemClick&&i.props.onRepoItemClick(e),i.setState({selectedRepo:e,selectedPath:"/"})},i.onCloseSearching=function(){i.setState({isSearching:!1,isResultGot:!1,searchInfo:"",searchResults:[]}),i.inputValue="",i.timer=null,i.source=null},i.onSearchInfoChanged=function(e){var t=e.target.value.trim();if(i.setState({searchInfo:t}),i.inputValue===t)return!1;if(i.inputValue=t,0===t.length)return i.setState({isSearching:!1,searchResults:[]}),!1;if(!i.state.searchResults.length&&t.length>0&&i.setState({isSearching:!0,isResultGot:!1}),""===i.inputValue||i.getValueLength(i.inputValue)<3)return i.setState({isResultGot:!1}),!1;var n=i.props.repoID,r=i.props.isShowFile,a={q:t,search_repo:"only_current_library"===i.props.mode?n:"all",search_ftypes:"all",obj_type:r?"file":"dir"};i.timer&&clearTimeout(i.timer),i.timer=setTimeout(i.getSearchResult(a),500)},i.getSearchResult=function(e){i.source&&i.cancelRequest(),i.setState({isResultGot:!1}),i.source=c.I.getSource(),i.sendRequest(e,i.source.token)},i.sendRequest=function(e,t){c.I.searchFiles(e,t).then((function(e){if(!e.data.total)return i.setState({searchResults:[],isResultGot:!0}),void(i.source=null);var t=i.formatResultItems(e.data.results);i.setState({searchResults:t,isResultGot:!0}),i.source=null}))},i.cancelRequest=function(){i.source.cancel("prev request is cancelled")},i.getValueLength=function(e){for(var t,n=0,r=0;n=128&&t<=2047?r+=2:t>=2048&&t<=65535&&(r+=3);return r},i.formatResultItems=function(e){for(var t=[],n=e.length>10?10:e.length,r=0;r0?(0,O.jsx)(E,{searchResults:i.state.searchResults,onItemClick:i.onSearchedItemClick,onSearchedItemDoubleClick:i.onSearchedItemDoubleClick}):void 0:(0,O.jsx)(T.Z,{})},i.onSearchedItemDoubleClick=function(e){if("dir"===e.type){var t={repoID:e.repo_id,filePath:e.path};if(i.setState({selectedItemInfo:t}),i.props.repoID&&e.repo_id===i.props.repoID)c.I.getRepoInfo(i.props.repoID).then((function(t){var n=new h.Z(t.data),r=e.path.substring(0,e.path.length-1);i.setState({selectedRepo:n,selectedPath:r,isCurrentRepoShow:!0})})).catch((function(e){var t=f.c.getErrorMsg(e);p.Z.danger(t)}));else if(i.state.hasRequest)i.setState({isOtherRepoShow:!i.state.isOtherRepoShow});else{var n=(0,a.Z)(i);c.I.listRepos().then((function(t){for(var r=t.data.repos,a=[],o=[],s=0;s-1||(a.push(r[s]),o.push(r[s].repo_id)));var l=(a=f.c.sortRepos(a,"name","asc")).filter((function(t){return t.repo_id===e.repo_id})),u=e.path.substring(0,e.path.length-1),c=l[0];i.setState({repoList:a,isOtherRepoShow:!0,selectedPath:u,selectedRepo:c})}))}i.onCloseSearching()}},i.onScroll=function(e){e.stopPropagation()},i.renderRepoListView=function(){return(0,O.jsxs)("div",{className:"file-chooser-container user-select-none",onScroll:i.onScroll,children:["current_repo_and_other_repos"===i.props.mode&&(0,O.jsxs)(l.Fragment,{children:[(0,O.jsxs)("div",{className:"list-view",children:[(0,O.jsxs)("div",{className:"list-view-header",children:[(0,O.jsx)("span",{className:"item-toggle fa ".concat(i.state.isCurrentRepoShow?"fa-caret-down":"fa-caret-right"),onClick:i.onCurrentRepoToggle}),(0,O.jsx)("span",{className:"library",children:(0,d.ih)("Current Library")})]}),i.state.isCurrentRepoShow&&i.state.currentRepoInfo&&(0,O.jsx)(k,{initToShowChildren:!0,currentRepoInfo:i.state.currentRepoInfo,currentPath:i.props.currentPath,selectedRepo:i.state.selectedRepo,selectedPath:i.state.selectedPath,onRepoItemClick:i.onRepoItemClick,onDirentItemClick:i.onDirentItemClick,isShowFile:i.props.isShowFile,fileSuffixes:i.props.fileSuffixes,selectedItemInfo:i.state.selectedItemInfo})]}),(0,O.jsxs)("div",{className:"list-view",children:[(0,O.jsxs)("div",{className:"list-view-header",children:[(0,O.jsx)("span",{className:"item-toggle fa ".concat(i.state.isOtherRepoShow?"fa-caret-down":"fa-caret-right"),onClick:i.onOtherRepoToggle}),(0,O.jsx)("span",{className:"library",children:(0,d.ih)("Other Libraries")})]}),i.state.isOtherRepoShow&&(0,O.jsx)(k,{initToShowChildren:!1,repoList:i.state.repoList,selectedRepo:i.state.selectedRepo,selectedPath:i.state.selectedPath,onRepoItemClick:i.onRepoItemClick,onDirentItemClick:i.onDirentItemClick,isShowFile:i.props.isShowFile,fileSuffixes:i.props.fileSuffixes,selectedItemInfo:i.state.selectedItemInfo})]})]}),"only_current_library"===i.props.mode&&(0,O.jsxs)("div",{className:"list-view",children:[(0,O.jsxs)("div",{className:"list-view-header",children:[(0,O.jsx)("span",{className:"item-toggle fa ".concat(i.state.isCurrentRepoShow?"fa-caret-down":"fa-caret-right"),onClick:i.onCurrentRepoToggle}),(0,O.jsx)("span",{className:"library",children:(0,d.ih)("Current Library")})]}),i.state.isCurrentRepoShow&&i.state.currentRepoInfo&&(0,O.jsx)(k,{initToShowChildren:!0,currentRepoInfo:i.state.currentRepoInfo,currentPath:i.props.currentPath,selectedRepo:i.state.selectedRepo,selectedPath:i.state.selectedPath,onRepoItemClick:i.onRepoItemClick,onDirentItemClick:i.onDirentItemClick,isShowFile:i.props.isShowFile,fileSuffixes:i.props.fileSuffixes,selectedItemInfo:i.state.selectedItemInfo})]}),"only_all_repos"===i.props.mode&&(0,O.jsx)("div",{className:"file-chooser-container",children:(0,O.jsxs)("div",{className:"list-view",children:[(0,O.jsxs)("div",{className:"list-view-header",children:[(0,O.jsx)("span",{className:"item-toggle fa fa-caret-down"}),(0,O.jsx)("span",{className:"library",children:(0,d.ih)("Libraries")})]}),(0,O.jsx)(k,{initToShowChildren:!1,repoList:i.state.repoList,selectedRepo:i.state.selectedRepo,selectedPath:i.state.selectedPath,onRepoItemClick:i.onRepoItemClick,onDirentItemClick:i.onDirentItemClick,isShowFile:i.props.isShowFile,fileSuffixes:i.props.fileSuffixes,selectedItemInfo:i.state.selectedItemInfo})]})})]})},i.state={hasRequest:!1,isCurrentRepoShow:!0,isOtherRepoShow:!1,repoList:[],currentRepoInfo:null,selectedRepo:null,selectedPath:i.props.currentPath||"/",isSearching:!1,isResultGot:!1,searchInfo:"",searchResults:[],selectedItemInfo:{}},i.inputValue="",i.timer=null,i.source=null,i}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){var e=this;if(this.props.repoID){var t=this.props.repoID;c.I.getRepoInfo(t).then((function(t){var n=new h.Z(t.data);e.setState({currentRepoInfo:n,selectedRepo:n})})).catch((function(e){var t=f.c.getErrorMsg(e);p.Z.danger(t)}))}else c.I.listRepos().then((function(t){for(var n=t.data.repos,r=[],i=[],a=0;a-1||(r.push(n[a]),i.push(n[a].repo_id)));r=f.c.sortRepos(r,"name","asc"),e.setState({repoList:r})}))}},{key:"render",value:function(){return!this.state.selectedRepo&&this.props.repoID?"":(0,O.jsxs)(l.Fragment,{children:[d._y&&(0,O.jsxs)("div",{className:"file-chooser-search-input",children:[(0,O.jsx)(u.Z,{className:"search-input mb-2",placeholder:(0,d.ih)("Search"),type:"text",value:this.state.searchInfo,onChange:this.onSearchInfoChanged}),0!==this.state.searchInfo.length&&(0,O.jsx)("span",{className:"search-control attr-action-icon fas fa-times",onClick:this.onCloseSearching})]}),this.state.isSearching&&(0,O.jsx)("div",{className:"file-chooser-search-container",children:this.renderSearchedView()}),!this.state.isSearching&&this.renderRepoListView()]})}}]),n}(l.Component),$=P},46408:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});n(47313);var r=n(46417);var i=function(e){return(0,r.jsx)("ul",{className:"file-tag-list",children:Array.isArray(e.fileTagList)&&e.fileTagList.map((function(e){var t=e.tag_color||e.color,n=e.tag_name||e.name||"";return(0,r.jsx)("li",{style:{backgroundColor:t},className:"file-tag-item",children:(0,r.jsx)("span",{className:"tag-name",title:n,children:n})},e.id)}))})}},15254:function(e,t,n){"use strict";var r=n(15671),i=n(43144),a=n(60136),o=n(29388),s=n(47313),l=n(61805),u=n(46417),c=window.app.pageOptions.err,d=function(e){(0,a.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"render",value:function(){var e;return e="File preview unsupported"==c?(0,u.jsx)("p",{children:(0,l.ih)("Online view is not applicable to this file format")}):(0,u.jsx)("p",{className:"error",children:c||this.props.errorMsg}),(0,u.jsx)("div",{className:"file-view-content flex-1 o-auto",children:(0,u.jsxs)("div",{className:"file-view-tip",children:[e,(0,u.jsx)("a",{href:"?dl=1",className:"btn btn-secondary",children:(0,l.ih)("Download")})]})})}}]),n}(s.Component);t.Z=d},38130:function(e,t,n){"use strict";n.d(t,{Z:function(){return ve}});var r=n(15671),i=n(43144),a=n(60136),o=n(29388),s=n(47313),l=n(31929),u=n.n(l),c=n(4514),d=n(61805),f=n(83854),p=n(68396),h=n(70816),O=n.n(h),m=n(44028),v=n(46417),g=window.app.pageOptions,y=g.fileName,b=g.repoID,_=g.filePath,S=g.latestContributor,w=g.latestContributorName,k=g.lastModificationTime,T=function(e){(0,a.Z)(n,e);var t=(0,o.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).toggleStar=function(e){e.preventDefault(),i.props.toggleStar()},i}return(0,i.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.isStarred,n=e.isLocked,r=t?(0,d.ih)("starred"):(0,d.ih)("unstarred"),i=(0,d.ih)("locked");return(0,v.jsxs)("div",{className:"text-truncate",children:[(0,v.jsxs)("h2",{className:"file-title d-flex align-items-center",children:[(0,v.jsx)("span",{className:"file-name text-truncate",title:y,children:y}),(0,v.jsx)("a",{className:"file-star ".concat(t?"fa":"far"," fa-star"),href:"#",title:r,role:"button","aria-label":t?(0,d.ih)("Unstar"):(0,d.ih)("Star"),onClick:this.toggleStar}),(0,v.jsx)(m.O,{repoID:b,path:_}),d._y&&n&&(0,v.jsx)("img",{className:"file-locked-icon",width:"16",src:"".concat(d.si,"img/file-locked-32.png"),alt:i,title:i,"aria-label":i})]}),(0,v.jsxs)("div",{className:"meta-info",children:[(0,v.jsx)("a",{href:"".concat(d.ze,"profile/").concat(encodeURIComponent(S),"/"),children:w}),(0,v.jsx)("span",{className:"ml-2",children:O()(1e3*k).format("YYYY-MM-DD HH:mm")})]})]})}}]),n}(s.PureComponent),x=T,E=n(74165),P=n(15861),$=n(60595),Q=n(16614),C=n(25417),D=n(72611),A=n(13380),R=n(57124),X=n(39857),L=n(21303),M=function(e){(0,a.Z)(n,e);var t=(0,o.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).toggle=function(){i.setState({tooltipOpen:!i.state.tooltipOpen})},i.state={tooltipOpen:!1},i}return(0,i.Z)(n,[{key:"render",value:function(){var e="btn-icon",t=(0,v.jsxs)(s.Fragment,{children:[(0,v.jsx)("i",{className:this.props.icon}),(0,v.jsx)(X.Z,{toggle:this.toggle,delay:{show:0,hide:0},target:this.props.id,placement:"bottom",isOpen:this.state.tooltipOpen,children:this.props.text})]});return this.props.tag&&"a"==this.props.tag?(0,v.jsx)(L.Z,{id:this.props.id,className:e,tag:"a",href:this.props.href,"aria-label":this.props.text,children:t}):(0,v.jsx)(L.Z,{id:this.props.id,className:e,onClick:this.props.onClick,"aria-label":this.props.text,children:t})}}]),n}(s.Component),N=n(68164),I=n(63876),Z=window.app.pageOptions,U=Z.canLockUnlockFile,F=Z.repoID,j=Z.repoName,Y=Z.repoEncrypted,q=Z.parentDir,W=Z.filePerm,B=Z.filePath,z=Z.fileType,V=Z.fileName,G=Z.canEditFile,H=Z.err,J=Z.canDownloadFile,K=function(e){(0,a.Z)(n,e);var t=(0,o.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).toggleShareDialog=function(){i.setState({isShareDialogOpen:!i.state.isShareDialogOpen})},i.toggleMoreOpMenu=function(){i.setState({moreDropdownOpen:!i.state.moreDropdownOpen})},i.toggle=function(){i.setState({dropdownOpen:!i.state.dropdownOpen})},i.state={isLoading:!0,dropdownOpen:!1,moreDropdownOpen:!1,isShareDialogOpen:!1},i}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){var e=(0,P.Z)((0,E.Z)().mark((function e(){var t,n,r;return(0,E.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!W||!W.startsWith("custom-")){e.next=19;break}return this.isCustomPermission=!0,t=W.split("-")[1],e.prev=3,e.next=6,c.I.getCustomPermission(F,t);case 6:n=e.sent,this.customPermission=n.data.permission,window.custom_permission=this.customPermission,this.setState({isLoading:!1}),e.next=17;break;case 12:e.prev=12,e.t0=e.catch(3),r=f.c.getErrorMsg(e.t0),p.Z.danger(r),this.setState({isLoading:!1});case 17:e.next=20;break;case 19:this.setState({isLoading:!1});case 20:case"end":return e.stop()}}),e,this,[[3,12]])})));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){if(this.state.isLoading)return null;var e,t,n=this.props,r=n.isLocked,i=n.lockedByMe,a=this.state.moreDropdownOpen,o=!1;U&&(r?i&&(o=!0,e=(0,d.ih)("Unlock"),t="fa fa-unlock"):(o=!0,e=(0,d.ih)("Lock"),t="fa fa-lock"));var l=!1;Y?l=!0:"rw"!=W&&"r"!=W||(l=!0);var u=this.isCustomPermission,c=this.customPermission;u&&(l=c.permission.download_external_link);return(0,v.jsxs)(s.Fragment,{children:[(0,v.jsxs)($.Z,{className:"d-none d-md-block flex-shrink-0 ml-4",children:["PDF"==z&&(0,v.jsx)(M,{id:"seafile-pdf-print",icon:"fa fa-print",text:(0,d.ih)("Print")}),(0,v.jsx)(M,{id:"open-parent-folder",icon:"fa fa-folder-open",text:(0,d.ih)("Open parent folder"),tag:"a",href:"".concat(d.ze,"library/").concat(F,"/").concat(f.c.encodePath(j+q))}),o&&(0,v.jsx)(M,{id:"lock-unlock-file",icon:t,text:e,onClick:this.props.toggleLockFile}),l&&(0,v.jsx)(M,{id:"share-file",icon:"fa fa-share-alt",text:(0,d.ih)("Share"),onClick:this.toggleShareDialog}),G&&"SDoc"!=z&&!H&&(this.props.isSaving?(0,v.jsx)("button",{type:"button","aria-label":(0,d.ih)("Saving..."),className:"btn btn-icon btn-secondary btn-active",children:(0,v.jsx)("i",{className:"fa fa-spin fa-spinner"})}):this.props.needSave?(0,v.jsx)(M,{text:(0,d.ih)("Save"),id:"saveButton",icon:"fa fa-save",onClick:this.props.onSave}):(0,v.jsx)("button",{type:"button",className:"btn btn-icon btn-secondary btn-active",disabled:!0,children:(0,v.jsx)("i",{className:"fa fa-save"})})),J&&(0,v.jsx)(M,{id:"download-file",icon:"fa fa-download",text:(0,d.ih)("Download"),tag:"a",href:"?dl=1"}),(0,v.jsx)(M,{id:"file-details",icon:"fas fa-info",text:(0,d.ih)("Details"),onClick:this.props.toggleDetailsPanel}),"rw"==W&&(0,v.jsx)(M,{id:"open-via-client",icon:"sf3-font sf3-font-desktop",text:(0,d.ih)("Open via Client"),tag:"a",href:"seafile://openfile?repo_id=".concat(encodeURIComponent(F),"&path=").concat(encodeURIComponent(B))}),(0,v.jsxs)(Q.Z,{isOpen:a,toggle:this.toggleMoreOpMenu,children:[(0,v.jsx)(C.Z,{"aria-label":(0,d.ih)("More operations"),children:(0,v.jsx)("span",{className:"fas fa-ellipsis-v"})}),(0,v.jsx)(D.Z,{right:!0,children:"rw"==W&&(0,v.jsx)("a",{href:"".concat(d.ze,"repo/file_revisions/").concat(F,"/?p=").concat(encodeURIComponent(B),"&referer=").concat(encodeURIComponent(location.href)),className:"dropdown-item",children:(0,d.ih)("History")})})]})]}),(0,v.jsxs)(A.Z,{isOpen:this.state.dropdownOpen,toggle:this.toggle,className:"d-block d-md-none flex-shrink-0 ml-4",children:[(0,v.jsx)($.Z,{children:G&&"SDoc"!=z&&!H&&(this.props.isSaving?(0,v.jsx)("button",{type:"button","aria-label":(0,d.ih)("Saving..."),className:"btn btn-icon btn-secondary btn-active",children:(0,v.jsx)("i",{className:"fa fa-spin fa-spinner"})}):this.props.needSave?(0,v.jsx)(M,{text:(0,d.ih)("Save"),id:"saveButton",icon:"fa fa-save",onClick:this.props.onSave}):(0,v.jsx)("button",{type:"button",className:"btn btn-icon btn-secondary btn-active",disabled:!0,children:(0,v.jsx)("i",{className:"fa fa-save"})}))}),(0,v.jsx)(C.Z,{className:"sf2-icon-more mx-1","aria-label":(0,d.ih)("More operations")}),(0,v.jsxs)(D.Z,{right:!0,children:[(0,v.jsx)(R.Z,{children:(0,v.jsx)("a",{href:"".concat(d.ze,"library/").concat(F,"/").concat(f.c.encodePath(j+q)),className:"text-inherit",children:(0,d.ih)("Open parent folder")})}),o&&(0,v.jsx)(R.Z,{onClick:this.props.toggleLockFile,children:e}),l&&(0,v.jsx)(R.Z,{onClick:this.toggleShareDialog,children:(0,d.ih)("Share")}),"rw"==W&&(0,v.jsx)(R.Z,{children:(0,v.jsx)("a",{href:"".concat(d.ze,"repo/file_revisions/").concat(F,"/?p=").concat(encodeURIComponent(B),"&referer=").concat(encodeURIComponent(location.href)),className:"text-inherit",children:(0,d.ih)("History")})}),J&&(0,v.jsx)(R.Z,{children:(0,v.jsx)("a",{href:"?dl=1",className:"text-inherit",children:(0,d.ih)("Download")})}),(0,v.jsx)(R.Z,{onClick:this.props.toggleDetailsPanel,children:(0,d.ih)("Details")})]})]}),this.state.isShareDialogOpen&&(0,v.jsx)(N.Z,{children:(0,v.jsx)(I.Z,{itemType:"file",itemName:V,itemPath:B,userPerm:W,repoID:F,repoEncrypted:Y,toggleDialog:this.toggleShareDialog})})]})}}]),n}(s.Component),ee=K,te=n(19725),ne=n(46408),re=(n(25984),function(e){(0,a.Z)(n,e);var t=(0,o.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).renderHeader=function(e,t){return(0,v.jsxs)("div",{className:"detail-header",children:[(0,v.jsx)("div",{className:"detail-control sf2-icon-x1",onClick:i.props.togglePanel}),(0,v.jsxs)("div",{className:"detail-title dirent-title",children:[(0,v.jsx)("img",{src:e,width:"24",height:"24",alt:""})," ",(0,v.jsx)("span",{className:"name ellipsis",title:t,children:t})]})]})},i.renderDetailBody=function(e){var t=i.state.direntDetail,n=i.props,r=n.repoName,a=n.path;return(0,v.jsxs)("div",{className:"detail-body dirent-info",children:[(0,v.jsx)("div",{className:"img",children:(0,v.jsx)("img",{src:e,className:"thumbnail",alt:""})}),i.state.direntDetail&&(0,v.jsx)("div",{className:"dirent-table-container",children:(0,v.jsxs)("table",{className:"table-thead-hidden",children:[(0,v.jsx)("thead",{children:(0,v.jsxs)("tr",{children:[(0,v.jsx)("th",{width:"35%"}),(0,v.jsx)("th",{width:"65%"})]})}),(0,v.jsxs)("tbody",{children:[(0,v.jsxs)("tr",{children:[(0,v.jsx)("th",{children:(0,d.ih)("Size")}),(0,v.jsx)("td",{children:f.c.bytesToSize(t.size)})]}),(0,v.jsxs)("tr",{children:[(0,v.jsx)("th",{children:(0,d.ih)("Location")}),(0,v.jsx)("td",{children:r+a})]}),(0,v.jsxs)("tr",{children:[(0,v.jsx)("th",{children:(0,d.ih)("Last Update")}),(0,v.jsx)("td",{children:O()(t.last_modified).fromNow()})]}),(0,v.jsxs)("tr",{className:"file-tag-container",children:[(0,v.jsx)("th",{children:(0,d.ih)("Tags")}),(0,v.jsx)("td",{children:(0,v.jsx)(ne.Z,{fileTagList:i.state.fileTagList})})]})]})]})})]})},i.state={direntType:"",direntDetail:"",fileTagList:[]},i}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.dirent,r=t.path,i=t.repoID,a=f.c.joinPath(r,n.name);c.I.getFileInfo(i,a).then((function(t){e.setState({direntType:"file",direntDetail:t.data})})).catch((function(e){var t=f.c.getErrorMsg(e);p.Z.danger(t)})),c.I.listFileTags(i,a).then((function(t){var n=[];t.data.file_tags.forEach((function(e){var t=new te.Z(e);n.push(t)})),e.setState({fileTagList:n})})).catch((function(e){var t=f.c.getErrorMsg(e);p.Z.danger(t)}))}},{key:"render",value:function(){var e=this.props,t=e.dirent,n=e.repoID,r=e.path,i=f.c.getFileIconUrl(t.name),a=f.c.getFileIconUrl(t.name,192),o=f.c.imageCheck(t.name),s=f.c.videoCheck(t.name);return(o||d.eA&&s)&&(a="".concat(d.ze,"thumbnail/").concat(n,"/1024")+f.c.encodePath("".concat("/"===r?"":r,"/").concat(t.name))),(0,v.jsxs)("div",{className:"detail-container file-details-container",children:[this.renderHeader(i,t.name),this.renderDetailBody(a)]})}}]),n}(s.Component)),ie=re,ae=(n(98258),window.app.pageOptions),oe=ae.isStarred,se=ae.isLocked,le=ae.lockedByMe,ue=ae.repoID,ce=ae.filePath,de=ae.enableWatermark,fe=ae.userNickName,pe=ae.repoName,he=ae.parentDir,Oe=ae.fileName,me=function(e){(0,a.Z)(n,e);var t=(0,o.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).toggleDetailsPanel=function(){i.setState({isDetailsPanelOpen:!i.state.isDetailsPanelOpen})},i.toggleStar=function(){i.state.isStarred?c.I.unstarItem(ue,ce).then((function(e){i.setState({isStarred:!1})})).catch((function(e){var t=f.c.getErrorMsg(e);p.Z.danger(t)})):c.I.starItem(ue,ce).then((function(e){i.setState({isStarred:!0})})).catch((function(e){var t=f.c.getErrorMsg(e);p.Z.danger(t)}))},i.toggleLockFile=function(){i.state.isLocked?c.I.unlockfile(ue,ce).then((function(e){i.setState({isLocked:!1,lockedByMe:!1})})).catch((function(e){var t=f.c.getErrorMsg(e);p.Z.danger(t)})):c.I.lockfile(ue,ce).then((function(e){i.setState({isLocked:!0,lockedByMe:!0})})).catch((function(e){var t=f.c.getErrorMsg(e);p.Z.danger(t)}))},i.state={isStarred:oe,isLocked:se,lockedByMe:le,isDetailsPanelOpen:!1},i}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){var e=f.c.getFileIconUrl(Oe,192);document.getElementById("favicon").href=e}},{key:"render",value:function(){var e=this.state.isDetailsPanelOpen;return(0,v.jsxs)("div",{className:"h-100 d-flex flex-column",children:[(0,v.jsxs)("div",{className:"file-view-header d-flex justify-content-between align-items-center",children:[(0,v.jsx)(x,{isStarred:this.state.isStarred,isLocked:this.state.isLocked,toggleStar:this.toggleStar}),(0,v.jsx)(ee,{isLocked:this.state.isLocked,lockedByMe:this.state.lockedByMe,onSave:this.props.onSave,isSaving:this.props.isSaving,needSave:this.props.needSave,toggleLockFile:this.toggleLockFile,toggleDetailsPanel:this.toggleDetailsPanel})]}),(0,v.jsxs)("div",{className:"file-view-body flex-auto d-flex o-hidden",children:[this.props.content,e&&(0,v.jsx)(ie,{repoID:ue,repoName:pe,path:he,dirent:{name:Oe,type:"file"},togglePanel:this.toggleDetailsPanel})]})]})}}]),n}(s.Component);de&&u().init({watermark_txt:"".concat(d.aD," ").concat(fe),watermark_alpha:.075});var ve=me},15108:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(47313);var r,i=n(46417);try{(r=n(49566)).keys().forEach(r)}catch(o){console.log(o)}var a=function(e){var t=e.className,n=e.symbol,r="seafile-multicolor-icon seafile-multicolor-icon-".concat(n," ").concat(t||"");return(0,i.jsx)("svg",{className:r,children:(0,i.jsx)("use",{xlinkHref:"#".concat(n)})})}},51282:function(e,t,n){"use strict";n(47313);var r=n(46417);t.Z=function(){return(0,r.jsx)("span",{className:"loading-icon loading-tip"})}},93564:function(e,t,n){"use strict";var r=n(15671),i=n(43144),a=n(60136),o=n(29388),s=n(47313),l=n(61805),u=n(46417),c=function(e){(0,a.Z)(n,e);var t=(0,o.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,a=new Array(i),o=0;o