Files
vuefilemanager/public/chunks/admin~chunks/settings.js
2021-08-31 16:09:11 +02:00

1 line
52 KiB
JavaScript
Vendored

(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{"+PMR":function(t,e,i){var a=i("CGLt");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,n);a.locals&&(t.exports=a.locals)},"/Iuz":function(t,e,i){var a=i("hCMX");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,n);a.locals&&(t.exports=a.locals)},"1DeV":function(t,e,i){"use strict";i("r2Yi")},"1u70":function(t,e,i){"use strict";var a=i("CjXH"),n=i("xCqy"),o={name:"PopupHeader",props:["title","icon"],components:{CornerDownRightIcon:a.o,UserPlusIcon:a.ob,UsersIcon:a.pb,ShareIcon:a.db,Edit2Icon:a.u,LinkIcon:a.L,KeyIcon:a.J,XIcon:a.rb},methods:{closePopup:function(){n.a.$emit("popup:close")}}},r=(i("mlij"),i("KHd+")),s=Object(r.a)(o,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"popup-header"},[i("div",{staticClass:"icon"},["move"===t.icon?i("corner-down-right-icon",{staticClass:"title-icon text-theme dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"share"===t.icon?i("share-icon",{staticClass:"title-icon text-theme dark-text-theme",attrs:{size:"17"}}):t._e(),t._v(" "),"edit"===t.icon?i("edit2-icon",{staticClass:"title-icon text-theme dark-text-theme",attrs:{size:"17"}}):t._e(),t._v(" "),"key"===t.icon?i("key-icon",{staticClass:"title-icon text-theme dark-text-theme",attrs:{size:"17"}}):t._e(),t._v(" "),"users"===t.icon?i("users-icon",{staticClass:"title-icon text-theme dark-text-theme",attrs:{size:"17"}}):t._e(),t._v(" "),"user-plus"===t.icon?i("user-plus-icon",{staticClass:"title-icon text-theme dark-text-theme",attrs:{size:"17"}}):t._e()],1),t._v(" "),i("div",{staticClass:"label"},[i("h1",{staticClass:"title"},[t._v(t._s(t.title))]),t._v(" "),i("x-icon",{staticClass:"close-icon hover-text-theme",attrs:{size:"22"},on:{click:t.closePopup}})],1)])}),[],!1,null,"25947fda",null);e.a=s.exports},"2fkt":function(t,e,i){"use strict";var a=i("R+IU"),n=i("8uc6"),o=i("axtU"),r=i("uFbu"),s=i("0gRs"),c=i("CjXH"),d=i("L2JU"),l=i("xCqy");function p(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function u(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?p(Object(i),!0).forEach((function(e){v(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function v(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var f={name:"FilePreviewToolbar",components:{MoreHorizontalIcon:c.S,PopoverWrapper:a.a,ToolbarButton:s.a,PopoverItem:n.a,OptionGroup:o.a,Option:r.a,XIcon:c.rb},computed:u(u({},Object(d.b)(["fastPreview","clipboard","entries"])),{},{currentFile:function(){return this.fastPreview?this.fastPreview:this.clipboard[0]},sharingTitle:function(){return this.currentFile.data.relationships.shared?this.$t("context_menu.share_edit"):this.$t("context_menu.share")},isImage:function(){return"image"===this.currentFile.data.type},isPdf:function(){return"pdf"===this.currentFile.data.attributes.mimetype},files:function(){var t=this,e=[];return this.entries.map((function(i){"pdf"===t.currentFile.data.attributes.mimetype?"pdf"===i.data.attributes.mimetype&&e.push(i):i.data.type===t.currentFile.data.type&&e.push(i)})),e},showingImageIndex:function(){var t=this,e=void 0;return this.files.forEach((function(i,a){i.data.id===t.currentFile.data.id&&(e=a+1)})),e},canShareItem:function(){return this.$isThisRoute(this.$route,["Files","RecentUploads","MySharedItems"])}}),methods:{showItemContextMenu:function(){this.$isMobile()?l.a.$emit("mobile-menu:show","file-menu"):l.a.$emit("popover:open","file-preview-contextmenu")},increaseSizeOfPDF:function(){l.a.$emit("document-zoom:in")},decreaseSizeOfPDF:function(){l.a.$emit("document-zoom:out")},printMethod:function(){var t=document.getElementById("printable-file"),e=window.open("","","height=700,width=700");e.document.write(t.outerHTML),e.document.close(),e.print()},downloadItem:function(){this.$downloadFile(this.currentFile.data.attributes.file_url,this.currentFile.data.attributes.name+"."+this.currentFile.data.attributes.mimetype)},closeFullPreview:function(){l.a.$emit("file-preview:hide")}}},h=(i("fapz"),i("KHd+")),m=Object(h.a)(f,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.currentFile?i("div",{staticClass:"navigation-panel"},[i("div",{staticClass:"name-wrapper"},[i("x-icon",{staticClass:"icon-close hover-text-theme",attrs:{size:"22"},on:{click:t.closeFullPreview}}),t._v(" "),i("div",{staticClass:"name-count-wrapper"},[i("p",{staticClass:"title"},[t._v(t._s(t.currentFile.data.attributes.name))]),t._v(" "),t.fastPreview?t._e():i("span",{staticClass:"file-count"},[t._v(" ("+t._s(t.showingImageIndex+" "+t.$t("pronouns.of")+" "+t.files.length)+") ")])]),t._v(" "),i("PopoverWrapper",[i("span",{staticClass:"fast-menu-icon group",attrs:{id:"fast-preview-menu"},on:{click:function(e){return e.stopPropagation(),t.showItemContextMenu(e)}}},[i("more-horizontal-icon",{staticClass:"more-icon group-hover-text-theme",attrs:{size:"14"}})],1),t._v(" "),i("PopoverItem",{attrs:{name:"file-preview-contextmenu",side:"right"}},[i("OptionGroup",{staticClass:"menu-option-group"},[i("Option",{attrs:{title:t.$t("context_menu.rename"),icon:"rename"},nativeOn:{click:function(e){return t.$renameFileOrFolder(t.currentFile)}}}),t._v(" "),i("Option",{attrs:{title:t.$t("context_menu.move"),icon:"move-item"},nativeOn:{click:function(e){return t.$moveFileOrFolder(t.currentFile)}}}),t._v(" "),t.$checkPermission("master")?i("Option",{attrs:{title:t.sharingTitle,icon:"share"},nativeOn:{click:function(e){return t.$shareFileOrFolder(t.currentFile)}}}):t._e(),t._v(" "),i("Option",{staticClass:"menu-option",attrs:{title:t.$t("context_menu.delete"),icon:"trash"},nativeOn:{click:function(e){return t.$deleteFileOrFolder(t.currentFile)}}})],1),t._v(" "),i("OptionGroup",[i("Option",{attrs:{title:t.$t("context_menu.download"),icon:"download"},nativeOn:{click:function(e){return t.downloadItem(e)}}})],1)],1)],1)],1),t._v(" "),i("div",{staticClass:"created-at-wrapper"},[i("p",[t._v(t._s(t.currentFile.data.attributes.filesize)+", "+t._s(t.currentFile.data.attributes.created_at))])]),t._v(" "),i("div",{staticClass:"navigation-icons"},[t.isPdf?i("div",{staticClass:"navigation-tool-wrapper"},[i("ToolbarButton",{attrs:{source:"zoom-out",action:t.$t("pdf_zoom_out")},nativeOn:{click:function(e){return t.decreaseSizeOfPDF(e)}}}),t._v(" "),i("ToolbarButton",{attrs:{source:"zoom-in",action:t.$t("pdf_zoom_in")},nativeOn:{click:function(e){return t.increaseSizeOfPDF(e)}}})],1):t._e(),t._v(" "),i("div",{staticClass:"navigation-tool-wrapper"},[i("ToolbarButton",{staticClass:"mobile-hide",attrs:{source:"download",action:t.$t("actions.download")},nativeOn:{click:function(e){return t.downloadItem(e)}}}),t._v(" "),t.canShareItem?i("ToolbarButton",{staticClass:"mobile-hide",class:{"is-inactive":!t.canShareItem},attrs:{source:"share",action:t.$t("actions.share")},nativeOn:{click:function(e){return t.$shareFileOrFolder(t.currentFile)}}}):t._e(),t._v(" "),t.isImage?i("ToolbarButton",{attrs:{source:"print",action:t.$t("actions.print")},nativeOn:{click:function(e){return t.printMethod()}}}):t._e()],1)])]):t._e()}),[],!1,null,"dcdc233a",null).exports,g={name:"ImageFile",props:["file"]},b=Object(h.a)(g,(function(){var t=this.$createElement;return(this._self._c||t)("img",{staticClass:"file",class:{"file-shadow":!this.$isMobile()},attrs:{id:"printable-file",src:this.file.data.attributes.file_url}})}),[],!1,null,null,null).exports,x=i("e3c5"),w=i.n(x),y={name:"PdfFile",components:{pdf:w.a},props:["file"],watch:{file:function(){this.getPdf()}},data:function(){return{pdfData:void 0,numPages:0,documentSize:50}},methods:{getPdf:function(){this.pdfData=void 0,this.numPages=0;var t=this;t.pdfData=w.a.createLoadingTask(this.file.data.attributes.file_url),t.pdfData.then((function(e){return t.numPages=e.numPages}))},getDocumentSize:function(){window.innerWidth<960&&(this.documentSize=100),window.innerWidth>960&&(this.documentSize=localStorage.getItem("documentSize")?parseInt(localStorage.getItem("documentSize")):50)},zoomIn:function(){this.documentSize<100&&(this.documentSize+=10,localStorage.setItem("documentSize",this.documentSize))},zoomOut:function(){this.documentSize>40&&(this.documentSize-=10,localStorage.setItem("documentSize",this.documentSize))}},created:function(){var t=this;this.getDocumentSize(),this.getPdf(),l.a.$on("document-zoom:in",(function(){return t.zoomIn()})),l.a.$on("document-zoom:out",(function(){return t.zoomOut()}))}},k=(i("xUh6"),i("ahmU"),Object(h.a)(y,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{style:{width:t.documentSize+"%"},attrs:{id:"pdf-wrapper"}},t._l(t.numPages,(function(e){return i("pdf",{key:e,staticClass:"pdf-file",staticStyle:{width:"100%",margin:"0 auto 35px"},attrs:{src:t.pdfData,resize:!0,page:e,scale:"page-width",id:"printable-file"}},[i("template",{slot:"loading"},[i("h1",[t._v("loading content...")])])],2)})),1)}),[],!1,null,"0fbe09ae",null).exports),_={name:"Audio",props:["file"]},O=Object(h.a)(_,(function(){var t=this.$createElement;return(this._self._c||t)("audio",{staticClass:"file audio",class:{"file-shadow":!this.$isMobile()},attrs:{src:this.file.data.attributes.file_url,controls:""}})}),[],!1,null,null,null).exports,C={name:"Video",props:["file"]},I=(i("LmC+"),Object(h.a)(C,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"video-wrapper"},[e("video",{staticClass:"video",class:{"file-shadow":!this.$isMobile()},attrs:{src:this.file.data.attributes.file_url,controlsList:"nodownload",disablePictureInPicture:"",playsinline:"",controls:"",autoplay:""}})])}),[],!1,null,"51357f39",null).exports),P=i("zTYo");function $(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function j(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?$(Object(i),!0).forEach((function(e){z(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):$(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function z(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var F={name:"FilePreviewMedia",components:{ChevronRightIcon:c.i,ChevronLeftIcon:c.h,ToolbarButton:s.a,ImageFile:b,PdfFile:k,Spinner:P.a,Audio:O,Video:I},computed:j(j({},Object(d.b)(["fastPreview","clipboard","entries"])),{},{currentFile:function(){return this.fastPreview?this.fastPreview:this.files[Math.abs(this.currentIndex)%this.files.length]},isPDF:function(){return"pdf"===this.currentFile.data.attributes.mimetype},isVideo:function(){return"video"===this.currentFile.data.type},isAudio:function(){return"audio"===this.currentFile.data.type},isImage:function(){return"image"===this.currentFile.data.type}}),data:function(){return{currentIndex:0,files:[]}},watch:{files:function(){0===this.files.length&&l.a.$emit("file-preview-wrapper:hide")},currentFile:function(){this.clipboard[0]&&(this.$store.commit("CLIPBOARD_CLEAR"),this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.currentFile))},clipboard:function(){this.clipboard[0]||(this.currentIndex-=1,this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.currentFile),this.files=[])},data:function(t,e){t!==e&&(this.files=[])}},methods:{getFilesForView:function(){var t=this,e=this.clipboard[0];this.entries.map((function(i){"pdf"===e.data.attributes.mimetype?"pdf"===i.data.attributes.mimetype&&t.files.push(i):i.data.type===e.data.type&&t.files.push(i)})),this.files.forEach((function(e,i){e.data.id===t.clipboard[0].data.id&&(t.currentIndex=i)}))},next:function(){!this.files.length>1||(this.currentIndex+=1,this.currentIndex>this.files.length-1&&(this.currentIndex=0))},prev:function(){!this.files.length>1||(this.currentIndex-=1,this.currentIndex<0&&(this.currentIndex=this.files.length-1))}},created:function(){var t=this;l.a.$on("file-preview:next",(function(){return t.next()})),l.a.$on("file-preview:prev",(function(){return t.prev()})),this.getFilesForView()}},E=(i("fZPa"),{name:"FilePreview",components:{FilePreviewToolbar:m,FilePreviewMedia:Object(h.a)(F,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.currentFile?i("div",{staticClass:"file-preview-wrapper"},[t.files.length>1?i("div",{staticClass:"navigation-arrows"},[i("div",{staticClass:"prev",on:{click:function(e){return e.preventDefault(),t.prev(e)}}},[i("chevron-left-icon",{attrs:{size:"17"}})],1),t._v(" "),i("div",{staticClass:"next",on:{click:function(e){return e.preventDefault(),t.next(e)}}},[i("chevron-right-icon",{attrs:{size:"17"}})],1)]):t._e(),t._v(" "),i("div",{staticClass:"file-wrapper-preview"},[t.isPDF?i("PdfFile",{attrs:{file:t.currentFile}}):t._e(),t._v(" "),t.isAudio||t.isImage||t.isVideo?i("div",{staticClass:"file-wrapper"},[t.isAudio?i("Audio",{attrs:{file:t.currentFile}}):t._e(),t._v(" "),t.isVideo?i("Video",{attrs:{file:t.currentFile}}):t._e(),t._v(" "),t.isImage?i("ImageFile",{attrs:{file:t.currentFile}}):t._e()],1):t._e()],1)]):t._e()}),[],!1,null,null,null).exports},data:function(){return{isFullPreview:!1}},methods:{closeFilePreview:function(){this.isFullPreview=!1,this.$store.commit("FAST_PREVIEW_CLEAR")},next:function(){l.a.$emit("file-preview:next")},prev:function(){l.a.$emit("file-preview:prev")}},updated:function(){this.isFullPreview&&this.$refs.filePreview.focus()},mounted:function(){var t=this;l.a.$on("file-preview:show",(function(){return t.isFullPreview=!0})),l.a.$on("file-preview:hide",(function(){return t.closeFilePreview()}))}}),S=(i("1DeV"),Object(h.a)(E,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isFullPreview?i("div",{ref:"filePreview",staticClass:"file-preview",attrs:{tabindex:"-1"},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.closeFilePreview(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:t.next(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.prev(e)}]}},[i("FilePreviewToolbar"),t._v(" "),i("FilePreviewMedia")],1):t._e()}),[],!1,null,"2ac1eb9d",null));e.a=S.exports},"2hjo":function(t,e,i){"use strict";i("MbeC")},"2kT4":function(t,e,i){"use strict";i("+PMR")},"3ONy":function(t,e,i){(t.exports=i("I1BE")(!1)).push([t.i,".file-preview[data-v-2ac1eb9d]{width:100%;height:100%;position:absolute;z-index:7;background-color:#fff}.dark-mode .file-preview[data-v-2ac1eb9d]{background-color:#151515}",""])},"3eE0":function(t,e,i){var a=i("mwJP");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,n);a.locals&&(t.exports=a.locals)},"3s8g":function(t,e,i){var a=i("Qes5");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,n);a.locals&&(t.exports=a.locals)},"5Swh":function(t,e,i){"use strict";var a=i("L2JU");function n(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?n(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var s={name:"UserAvatar",props:["size"],computed:o(o({},Object(a.b)(["user","config"])),{},{isIncompletePayment:function(){return this.user.data.attributes.incomplete_payment},isNearlyFullStorageCapacity:function(){return this.config.storageLimit&&this.user.data.attributes.storage.used>95}})},c=(i("T2Si"),i("KHd+")),d=Object(c.a)(s,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"user-avatar",class:this.size},[this.isIncompletePayment||this.isNearlyFullStorageCapacity?e("span",{staticClass:"notification"}):this._e(),this._v(" "),e("img",{attrs:{src:this.user.data.relationships.settings.data.attributes.avatar,alt:this.user.data.relationships.settings.data.attributes.name}})])}),[],!1,null,"d0d65bf0",null);e.a=d.exports},"6bXj":function(t,e,i){(t.exports=i("I1BE")(!1)).push([t.i,".navigation-arrows .next,.navigation-arrows .prev{cursor:pointer;position:absolute;top:45%;display:flex;justify-content:center;color:#1b2539;border-radius:50%;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;filter:drop-shadow(0 1px 0 white);padding:10px;z-index:2}.navigation-arrows .next{right:0}.navigation-arrows .prev{left:0}.file-preview-wrapper{height:calc(100% - 72px);top:72px;position:relative;background-color:#fff}.file-wrapper-preview{padding:30px 0;overflow:hidden;background-color:#fff}.file-wrapper-preview,.file-wrapper-preview .file-wrapper{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.file-wrapper-preview .file-wrapper .file-shadow{box-shadow:0 8px 40px rgba(17,26,52,.05)}.file-wrapper-preview .file-wrapper .file{max-width:100%;max-height:100%;align-self:center}.file-wrapper-preview .file-wrapper .audio{border-radius:28px}.file-wrapper-preview .file-wrapper img{border-radius:4px}@media only screen and (max-width:960px){.file-preview-wrapper{top:53px}}.dark-mode .navigation-arrows .next,.dark-mode .navigation-arrows .prev{color:#a4adb6;filter:drop-shadow(0 1px 0 #111314)}.dark-mode .file-wrapper-preview{background-color:#151515}.dark-mode .file-wrapper-preview .file-wrapper .file-shadow{box-shadow:0 8px 40px rgba(0,0,0,.1)}",""])},"6k8N":function(t,e,i){(t.exports=i("I1BE")(!1)).push([t.i,".popup-header[data-v-25947fda]{padding:20px;display:flex;align-items:center}.popup-header .icon[data-v-25947fda]{margin-right:10px;line-height:0}.popup-header .icon circle[data-v-25947fda],.popup-header .icon line[data-v-25947fda],.popup-header .icon path[data-v-25947fda],.popup-header .icon polyline[data-v-25947fda],.popup-header .icon rect[data-v-25947fda]{color:inherit}.popup-header .title[data-v-25947fda]{font-size:1.0625em;font-weight:700;color:#1b2539}.popup-header .message[data-v-25947fda]{font-size:1em;color:#8b8f9a;margin-top:5px}.popup-header .label[data-v-25947fda]{display:flex;justify-content:space-between;width:100%;align-items:center}.popup-header .label .close-icon[data-v-25947fda]{padding:1px 4px;border-radius:6px;cursor:pointer}.popup-header .label .close-icon[data-v-25947fda]:hover{background:#f4f5f6}.popup-header .label .close-icon:hover line[data-v-25947fda]{color:inherit}@media only screen and (max-width:690px){.popup-header[data-v-25947fda]{padding:15px}}.dark-mode .popup-header .label .close-icon[data-v-25947fda]{cursor:pointer}.dark-mode .popup-header .label .close-icon[data-v-25947fda]:hover{background:#1e2024}.dark-mode .popup-header .title[data-v-25947fda]{color:#bec6cf}.dark-mode .popup-header .message[data-v-25947fda]{color:#7d858c}",""])},"8Lyq":function(t,e,i){var a=i("aGtL");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,n);a.locals&&(t.exports=a.locals)},"8e7v":function(t,e,i){"use strict";i("3s8g")},"8g0Q":function(t,e,i){var a=i("Yo/7");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,n);a.locals&&(t.exports=a.locals)},"8uc6":function(t,e,i){"use strict";var a=i("xCqy"),n={name:"PopoverItem",props:["side","name"],data:function(){return{isVisible:!1}},mounted:function(){var t=this;a.a.$on("popover:open",(function(e){t.name===e&&(t.isVisible=!t.isVisible)})),a.a.$on("popover:close",(function(e){t.name===e&&(t.isVisible=!1)}))}},o=(i("lOce"),i("KHd+")),r=Object(o.a)(n,(function(){var t=this.$createElement,e=this._self._c||t;return this.isVisible?e("div",{staticClass:"popover-item",class:this.side},[this._t("default")],2):this._e()}),[],!1,null,"a1dbb974",null);e.a=r.exports},"8yMO":function(t,e,i){(t.exports=i("I1BE")(!1)).push([t.i,".popup[data-v-79747d82]{position:absolute;top:0;left:0;right:0;bottom:0;z-index:19;overflow-y:auto;display:grid;padding:40px;height:100%}.popup-wrapper[data-v-79747d82]{box-shadow:0 2px 40px rgba(26,38,74,.12);border-radius:8px;background:#fff;margin:auto;width:480px;z-index:12}.large .popup-enter-active[data-v-79747d82],.medium .popup-enter-active[data-v-79747d82]{-webkit-animation:popup-in-data-v-79747d82 .35s ease .15s both;animation:popup-in-data-v-79747d82 .35s ease .15s both}.large .popup-leave-active[data-v-79747d82],.medium .popup-leave-active[data-v-79747d82]{animation:popup-in-data-v-79747d82 .15s ease reverse}@-webkit-keyframes popup-in-data-v-79747d82{0%{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes popup-in-data-v-79747d82{0%{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}@-webkit-keyframes popup-slide-in-data-v-79747d82{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes popup-slide-in-data-v-79747d82{0%{transform:translateY(100%)}to{transform:translateY(0)}}@media only screen and (max-width:690px){.popup[data-v-79747d82]{overflow:hidden}.popup-wrapper[data-v-79747d82]{position:absolute;top:0;bottom:0;right:0;left:0;transform:translateY(0) scale(1);box-shadow:none;width:100%;border-radius:0}.popup-enter-active[data-v-79747d82]{-webkit-animation:popup-slide-in-data-v-79747d82 .35s ease .15s both;animation:popup-slide-in-data-v-79747d82 .35s ease .15s both}.popup-leave-active[data-v-79747d82]{animation:popup-slide-in-data-v-79747d82 .15s ease reverse}}@media only screen and (max-width:320px){.popup-wrapper[data-v-79747d82]{overflow-y:auto}}.dark-mode .popup-wrapper[data-v-79747d82]{background:#1e2024;box-shadow:0 10px 30px rgba(0,0,0,.3)}@media only screen and (max-width:690px){.dark-mode .popup-wrapper[data-v-79747d82]{background:#151515}}",""])},"9Q5t":function(t,e,i){var a=i("6k8N");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,n);a.locals&&(t.exports=a.locals)},C6ew:function(t,e,i){var a=i("nfnE");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,n);a.locals&&(t.exports=a.locals)},CGLt:function(t,e,i){(t.exports=i("I1BE")(!1)).push([t.i,".text-label[data-v-7cc3f4fe]{padding-left:25px;font-size:.75em;color:#afafaf;font-weight:700;display:block;margin-bottom:5px}@media only screen and (max-width:1024px){.text-label[data-v-7cc3f4fe]{padding-left:20px}}.dark-mode .text-label[data-v-7cc3f4fe]{opacity:.35}",""])},IeT8:function(t,e,i){"use strict";var a=i("5Swh"),n=i("L2JU"),o=i("CjXH");function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function s(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var c={name:"SidebarNavigation",components:{HardDriveIcon:o.F,SettingsIcon:o.cb,UserAvatar:a.a,Trash2Icon:o.ib,PowerIcon:o.X,ShareIcon:o.db,UserIcon:o.nb,MoonIcon:o.R,SunIcon:o.hb},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){s(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},Object(n.b)(["isDarkMode","user"])),methods:{toggleDarkMode:function(){this.$store.dispatch("toggleDarkMode",!this.isDarkMode)},isSection:function(t){return this.$route.matched[0].name===t}},mounted:function(){this.$store.dispatch("getAppData")}},d=(i("8e7v"),i("KHd+")),l=Object(d.a)(c,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("nav",{staticClass:"menu-bar"},[t.user?i("div",{staticClass:"icon-navigation menu"},[i("router-link",{staticClass:"icon-navigation-item user",attrs:{to:{name:"Profile"}}},[i("UserAvatar")],1),t._v(" "),i("router-link",{staticClass:"icon-navigation-item home",class:{"is-active":t.isSection("Platform")},attrs:{to:{name:"Files"},title:t.$t("locations.home")}},[i("div",{staticClass:"button-icon text-theme"},[i("hard-drive-icon",{staticClass:"text-theme",attrs:{size:"19"}})],1)]),t._v(" "),i("router-link",{staticClass:"icon-navigation-item settings",class:{"is-active":t.isSection("User")},attrs:{to:{name:"Profile"},title:t.$t("locations.profile")}},[i("div",{staticClass:"button-icon"},[i("user-icon",{attrs:{size:"19"}})],1)]),t._v(" "),"admin"===t.user.data.attributes.role?i("router-link",{staticClass:"icon-navigation-item users",class:{"is-active":t.isSection("Admin")},attrs:{to:{name:"Dashboard"},title:t.$t("locations.settings")}},[i("div",{staticClass:"button-icon"},[i("settings-icon",{attrs:{size:"19"}})],1)]):t._e(),t._v(" "),i("a",{staticClass:"icon-navigation-item dark-mode-switcher",attrs:{title:t.$t("dark_mode_toggle")},on:{click:t.toggleDarkMode}},[i("div",{staticClass:"button-icon"},[t.isDarkMode?i("sun-icon",{attrs:{size:"19"}}):t._e(),t._v(" "),t.isDarkMode?t._e():i("moon-icon",{attrs:{size:"19"}})],1)])],1):t._e(),t._v(" "),i("div",{staticClass:"icon-navigation logout"},[i("div",{staticClass:"icon-navigation-item",attrs:{title:t.$t("locations.logout")},on:{click:function(e){return t.$store.dispatch("logOut")}}},[i("div",{staticClass:"button-icon"},[i("power-icon",{attrs:{size:"19"}})],1)])])])}),[],!1,null,"37466582",null);e.a=l.exports},Jm0L:function(t,e,i){var a=i("oP0v");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,n);a.locals&&(t.exports=a.locals)},"LmC+":function(t,e,i){"use strict";i("Jm0L")},LtV2:function(t,e,i){"use strict";var a={name:"ContentSidebar"},n=(i("gB8g"),i("KHd+")),o=Object(n.a)(a,(function(){var t=this.$createElement;return(this._self._c||t)("section",{staticClass:"content-sidebar",attrs:{id:"content-sidebar"}},[this._t("default")],2)}),[],!1,null,"0ed41a4a",null);e.a=o.exports},MbeC:function(t,e,i){var a=i("cQdX");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,n);a.locals&&(t.exports=a.locals)},Ni8G:function(t,e,i){"use strict";i("pQ0B")},Q2fZ:function(t,e,i){(t.exports=i("I1BE")(!1)).push([t.i,"#pdf-wrapper[data-v-0fbe09ae]{border-radius:8px;overflow-y:scroll;margin:0 auto;position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;padding:40px}#pdf-wrapper .pdf-file[data-v-0fbe09ae]{box-shadow:0 2px 40px rgba(26,38,74,.12);border-radius:8px;overflow:hidden}@media only screen and (max-width:960px){#pdf-wrapper[data-v-0fbe09ae]{border-radius:0;padding:0}#pdf-wrapper .pdf-file[data-v-0fbe09ae]{box-shadow:none;border-radius:0}}",""])},QBc4:function(t,e,i){"use strict";i("wGq2")},Qes5:function(t,e,i){(t.exports=i("I1BE")(!1)).push([t.i,".dark-mode-switcher[data-v-37466582]{padding-top:20px;border-top:1px solid #e6e6e6;margin:20px 15px 0}.menu-bar[data-v-37466582]{background:#f4f5f6;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-top:25px;display:grid;flex:0 0 72px}.icon-navigation[data-v-37466582]{text-align:center}.icon-navigation.menu[data-v-37466582]{margin-bottom:auto}.icon-navigation.logout[data-v-37466582]{margin-top:auto}.icon-navigation .icon-navigation-item[data-v-37466582]{display:block;margin-bottom:10px}.icon-navigation .icon-navigation-item.user[data-v-37466582]{margin-bottom:20px;display:block}.icon-navigation .button-icon[data-v-37466582]{cursor:pointer;border-radius:4px;padding:12px;display:inline-block;line-height:0;transition:all .15s ease}.icon-navigation .button-icon[data-v-37466582]:hover{background:#e6e8eb}.icon-navigation .button-icon circle[data-v-37466582],.icon-navigation .button-icon line[data-v-37466582],.icon-navigation .button-icon path[data-v-37466582],.icon-navigation .button-icon polyline[data-v-37466582],.icon-navigation .button-icon rect[data-v-37466582]{transition:all .15s ease}.icon-navigation .is-active.home .button-icon circle[data-v-37466582],.icon-navigation .is-active.home .button-icon line[data-v-37466582],.icon-navigation .is-active.home .button-icon path[data-v-37466582],.icon-navigation .is-active.home .button-icon polyline[data-v-37466582],.icon-navigation .is-active.home .button-icon rect[data-v-37466582],.icon-navigation .router-link-active.home .button-icon circle[data-v-37466582],.icon-navigation .router-link-active.home .button-icon line[data-v-37466582],.icon-navigation .router-link-active.home .button-icon path[data-v-37466582],.icon-navigation .router-link-active.home .button-icon polyline[data-v-37466582],.icon-navigation .router-link-active.home .button-icon rect[data-v-37466582]{color:inherit}.icon-navigation .is-active.trash .button-icon[data-v-37466582],.icon-navigation .router-link-active.trash .button-icon[data-v-37466582]{background:rgba(254,96,87,.1)}.icon-navigation .is-active.trash .button-icon circle[data-v-37466582],.icon-navigation .is-active.trash .button-icon line[data-v-37466582],.icon-navigation .is-active.trash .button-icon path[data-v-37466582],.icon-navigation .is-active.trash .button-icon polyline[data-v-37466582],.icon-navigation .is-active.trash .button-icon rect[data-v-37466582],.icon-navigation .router-link-active.trash .button-icon circle[data-v-37466582],.icon-navigation .router-link-active.trash .button-icon line[data-v-37466582],.icon-navigation .router-link-active.trash .button-icon path[data-v-37466582],.icon-navigation .router-link-active.trash .button-icon polyline[data-v-37466582],.icon-navigation .router-link-active.trash .button-icon rect[data-v-37466582]{stroke:#fe6057}.icon-navigation .is-active.settings .button-icon[data-v-37466582],.icon-navigation .router-link-active.settings .button-icon[data-v-37466582]{background:rgba(157,102,254,.1)}.icon-navigation .is-active.settings .button-icon circle[data-v-37466582],.icon-navigation .is-active.settings .button-icon line[data-v-37466582],.icon-navigation .is-active.settings .button-icon path[data-v-37466582],.icon-navigation .is-active.settings .button-icon polyline[data-v-37466582],.icon-navigation .is-active.settings .button-icon rect[data-v-37466582],.icon-navigation .router-link-active.settings .button-icon circle[data-v-37466582],.icon-navigation .router-link-active.settings .button-icon line[data-v-37466582],.icon-navigation .router-link-active.settings .button-icon path[data-v-37466582],.icon-navigation .router-link-active.settings .button-icon polyline[data-v-37466582],.icon-navigation .router-link-active.settings .button-icon rect[data-v-37466582]{stroke:#9d66fe}.icon-navigation .is-active.users .button-icon[data-v-37466582],.icon-navigation .router-link-active.users .button-icon[data-v-37466582]{background:rgba(254,102,161,.1)}.icon-navigation .is-active.users .button-icon circle[data-v-37466582],.icon-navigation .is-active.users .button-icon line[data-v-37466582],.icon-navigation .is-active.users .button-icon path[data-v-37466582],.icon-navigation .is-active.users .button-icon polyline[data-v-37466582],.icon-navigation .is-active.users .button-icon rect[data-v-37466582],.icon-navigation .router-link-active.users .button-icon circle[data-v-37466582],.icon-navigation .router-link-active.users .button-icon line[data-v-37466582],.icon-navigation .router-link-active.users .button-icon path[data-v-37466582],.icon-navigation .router-link-active.users .button-icon polyline[data-v-37466582],.icon-navigation .router-link-active.users .button-icon rect[data-v-37466582]{stroke:#fe66a1}@media only screen and (max-width:1024px){.menu-bar[data-v-37466582]{flex:0 0 60px}.icon-navigation .icon-navigation-item[data-v-37466582]{margin-bottom:15px}.icon-navigation .button-icon[data-v-37466582]{padding:8px}}@media only screen and (max-width:690px){.menu-bar[data-v-37466582]{display:none}}.dark-mode .dark-mode-switcher[data-v-37466582]{border-color:#23252a}.dark-mode .icon-navigation .button-icon[data-v-37466582]:hover{background:#22262b}.dark-mode .menu-bar[data-v-37466582]{background:#1d1d1d}",""])},"R+IU":function(t,e,i){"use strict";var a={name:"PopoverWrapper"},n=(i("kwS7"),i("KHd+")),o=Object(n.a)(a,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"popover-wrapper"},[this._t("default")],2)}),[],!1,null,"67b4a236",null);e.a=o.exports},RUeb:function(t,e,i){"use strict";var a={name:"PopupActions"},n=(i("2hjo"),i("KHd+")),o=Object(n.a)(a,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"actions"},[this._t("default")],2)}),[],!1,null,"74d15818",null);e.a=o.exports},T2Si:function(t,e,i){"use strict";i("3eE0")},TdlE:function(t,e,i){"use strict";i("/Iuz")},"Wxm/":function(t,e,i){"use strict";var a={name:"PopupContent",props:["type"]},n=(i("Ni8G"),i("KHd+")),o=Object(n.a)(a,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"popup-content",class:this.type},[this._t("default")],2)}),[],!1,null,"ed1ffff8",null);e.a=o.exports},Y9qY:function(t,e,i){(t.exports=i("I1BE")(!1)).push([t.i,".name-wrapper[data-v-dcdc233a]{width:33%;height:22px;display:flex;position:relative;align-items:center;flex-grow:1;align-self:center;white-space:nowrap}.name-wrapper .name-count-wrapper[data-v-dcdc233a]{margin-left:6px;margin-right:6px}.name-wrapper .name-count-wrapper .file-count[data-v-dcdc233a]{align-self:center}.name-wrapper .name-count-wrapper .file-count[data-v-dcdc233a],.name-wrapper .name-count-wrapper .title[data-v-dcdc233a]{font-size:.9375em;line-height:1;font-weight:700;overflow:hidden;text-overflow:ellipsis;display:inline-block;vertical-align:middle;color:#1b2539}.name-wrapper .name-count-wrapper .title[data-v-dcdc233a]{max-width:250px}@media (max-width:570px){.name-wrapper .name-count-wrapper .title[data-v-dcdc233a]{max-width:180px;font-size:1.0625em}.name-wrapper .name-count-wrapper .file-count[data-v-dcdc233a]{font-size:1.0625em}}.name-wrapper .icon-close[data-v-dcdc233a]{min-width:22px;padding:1px 4px;border-radius:6px;vertical-align:middle;cursor:pointer;transition:all .15s ease}.name-wrapper .icon-close[data-v-dcdc233a]:hover{background:#f4f5f6}.name-wrapper .icon-close:hover line[data-v-dcdc233a]{color:inherit}.name-wrapper .fast-menu-icon[data-v-dcdc233a]{height:24px;display:flex;align-items:center;vertical-align:middle;padding:1px 4px;line-height:0;border-radius:3px;cursor:pointer;transition:all .15s ease}.name-wrapper .fast-menu-icon svg circle[data-v-dcdc233a]{transition:all .15s ease}.name-wrapper .fast-menu-icon[data-v-dcdc233a]:hover{background:#f4f5f6}.name-wrapper .fast-menu-icon:hover svg circle[data-v-dcdc233a]{color:inherit}.name-wrapper .fast-menu-icon .more-icon[data-v-dcdc233a]{vertical-align:middle;cursor:pointer}.context-menu[data-v-dcdc233a]{min-width:250px;position:absolute;z-index:99;box-shadow:0 7px 25px 1px rgba(0,0,0,.12);background:#fff;border-radius:8px;overflow:hidden;top:29px}.context-menu.showed[data-v-dcdc233a]{display:block}.created-at-wrapper[data-v-dcdc233a]{width:33%;display:flex;text-align:center;justify-content:center}.created-at-wrapper p[data-v-dcdc233a]{display:flex;align-items:center;font-size:.6875em}.navigation-icons[data-v-dcdc233a]{width:33%;text-align:right}.navigation-icons .navigation-tool-wrapper[data-v-dcdc233a]{margin-left:28px;display:inline-block;vertical-align:middle}.navigation-icons .button[data-v-dcdc233a]{margin-left:5px}.navigation-icons .button[data-v-dcdc233a]:hover{background:#f4f5f6}.navigation-panel[data-v-dcdc233a]{height:63px;width:100%;padding:10px 15px;display:flex;position:absolute;z-index:8;align-items:center;background-color:#fff;color:#1b2539}@media (max-width:960px){.context-menu .name-wrapper[data-v-dcdc233a]{width:67%}.navigation-icons[data-v-dcdc233a]{display:none}.navigation-panel[data-v-dcdc233a]{height:53px;padding:15px}.created-at-wrapper[data-v-dcdc233a]{display:none}.name-wrapper[data-v-dcdc233a]{justify-content:space-between;flex-direction:row-reverse;width:100%}}.dark-mode .navigation-panel[data-v-dcdc233a]{background-color:#151515;color:#bec6cf}.dark-mode .navigation-panel .icon-close[data-v-dcdc233a]{color:#bec6cf}.dark-mode .navigation-panel .icon-close[data-v-dcdc233a]:hover{background-color:#151515}.dark-mode .navigation-panel .fast-menu-icon[data-v-dcdc233a]:hover{background:#151515}.dark-mode .name-wrapper .file-count[data-v-dcdc233a],.dark-mode .name-wrapper .title[data-v-dcdc233a]{color:#bec6cf!important}.dark-mode .navigation-icons .button[data-v-dcdc233a]:hover{background:#151515}",""])},"Yo/7":function(t,e,i){(t.exports=i("I1BE")(!1)).push([t.i,".popover-wrapper[data-v-67b4a236]{position:relative}",""])},ZBDh:function(t,e,i){var a=i("8yMO");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,n);a.locals&&(t.exports=a.locals)},aGtL:function(t,e,i){(t.exports=i("I1BE")(!1)).push([t.i,".content-sidebar[data-v-0ed41a4a]{background:rgba(244,245,246,.6);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-top:25px;overflow-y:auto;flex:0 0 225px}@media only screen and (max-width:1024px){.content-sidebar[data-v-0ed41a4a]{flex:0 0 205px}}@media only screen and (max-width:690px){.content-sidebar[data-v-0ed41a4a]{display:none}}.dark-mode .content-sidebar[data-v-0ed41a4a]{background:rgba(30,32,36,.2)}",""])},aa7f:function(t,e,i){"use strict";i("ZBDh")},ahmU:function(t,e,i){"use strict";i("hlIb")},ansa:function(t,e,i){var a=i("Y9qY");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,n);a.locals&&(t.exports=a.locals)},cQdX:function(t,e,i){(t.exports=i("I1BE")(!1)).push([t.i,".actions[data-v-74d15818]{padding:20px;margin:0 -10px;display:flex}.actions .popup-button[data-v-74d15818]{width:100%;margin:0 10px}@media only screen and (max-width:690px){.actions[data-v-74d15818]{padding:15px;position:absolute;bottom:0;left:0;right:0}}@media only screen and (max-width:320px){.actions[data-v-74d15818]{position:unset}}",""])},fZPa:function(t,e,i){"use strict";i("y+QG")},fapz:function(t,e,i){"use strict";i("ansa")},gB8g:function(t,e,i){"use strict";i("8Lyq")},hCMX:function(t,e,i){(t.exports=i("I1BE")(!1)).push([t.i,"#spotlight[data-v-4ae94110]{position:absolute;width:100%;height:100%}#spotlight .spotlight-wrapper[data-v-4ae94110]{margin:90px auto 0;overflow-y:auto;width:590px;background:#fff;position:relative;border-radius:8px;z-index:99}.spotlight-search[data-v-4ae94110]{margin:0 auto;padding:20px 25px;display:flex;align-items:center;position:sticky;top:0;z-index:99}.spotlight-search .magnify-icon[data-v-4ae94110]{position:relative;margin-right:10px}.spotlight-search .magnify-icon .is-hidden[data-v-4ae94110]{opacity:0}.spotlight-search .magnify-icon .magnify[data-v-4ae94110]{transform:translateY(3px)}.spotlight-search .magnify-icon .magnify circle[data-v-4ae94110],.spotlight-search .magnify-icon .magnify line[data-v-4ae94110]{color:inherit}.spotlight-search .magnify-icon .spinner-icon[data-v-4ae94110]{transform:scale(.5) translateY(23px)}.spotlight-search input[data-v-4ae94110]{width:100%;border:none;color:#1b2539;font-size:1.1875em;font-weight:600;background:transparent}.spotlight-search input[data-v-4ae94110]::-moz-placeholder{color:#1b2539}.spotlight-search input[data-v-4ae94110]:-ms-input-placeholder{color:#1b2539}.spotlight-search input[data-v-4ae94110]::placeholder{color:#1b2539}.spotlight-search .close-icon[data-v-4ae94110]{cursor:pointer}.spotlight-search .close-icon .close[data-v-4ae94110]{transform:translateY(4px)}.spotlight-search .close-icon .close line[data-v-4ae94110]{stroke:rgba(27,37,57,.7)}.spotlight-results[data-v-4ae94110]{margin:-8px auto 0;padding:10px;border-top:1px solid #f8f8f8;position:relative;z-index:99}.spotlight-results .result-item[data-v-4ae94110]{position:relative}.spotlight-results .result-item .is-clicked[data-v-4ae94110]{border-radius:8px;background:#f4f5f6}.spotlight-results .input-hint[data-v-4ae94110]{position:absolute;right:15px;top:50%;transform:translateY(-50%)}.spotlight-results .message[data-v-4ae94110]{color:#1b2539;font-size:1em;font-weight:600;padding-left:15px}.input-hint .title[data-v-4ae94110]{color:rgba(27,37,57,.7);font-size:.8125em}.dark-mode #spotlight .spotlight-wrapper[data-v-4ae94110]{background:#1e2024}.dark-mode .spotlight-search input[data-v-4ae94110]{color:#bec6cf}.dark-mode .spotlight-search input[data-v-4ae94110]::-moz-placeholder{color:#bec6cf}.dark-mode .spotlight-search input[data-v-4ae94110]:-ms-input-placeholder{color:#bec6cf}.dark-mode .spotlight-search input[data-v-4ae94110]::placeholder{color:#bec6cf}.dark-mode .spotlight-results[data-v-4ae94110]{border-color:hsla(0,0%,100%,.02)}.dark-mode .spotlight-results .is-clicked[data-v-4ae94110]{background:#25272c}.dark-mode .input-hint .title[data-v-4ae94110],.dark-mode .message[data-v-4ae94110]{color:#7d858c}@media only screen and (max-width:1024px){#spotlight .spotlight-wrapper[data-v-4ae94110]{margin-top:30px}.spotlight-search[data-v-4ae94110]{padding:15px}.spotlight-results[data-v-4ae94110]{margin-top:-2px}}@media only screen and (max-width:690px){#spotlight[data-v-4ae94110]{background:#fff;z-index:99}#spotlight .spotlight-wrapper[data-v-4ae94110]{width:100%;border-radius:0;margin:0}}",""])},hXay:function(t,e,i){"use strict";var a={name:"TextLabel"},n=(i("2kT4"),i("KHd+")),o=Object(n.a)(a,(function(){var t=this.$createElement;return(this._self._c||t)("b",{staticClass:"text-label"},[this._t("default")],2)}),[],!1,null,"7cc3f4fe",null).exports,r={name:"ContentGroup",props:["title","canCollapse","slug"],components:{ChevronUpIcon:i("CjXH").j,TextLabel:o},data:function(){return{isVisible:!0,canCollapseWrapper:!1}},methods:{hideGroup:function(){this.canCollapseWrapper&&(this.isVisible=!this.isVisible,localStorage.setItem("panel-group-"+this.slug,this.isVisible))}},created:function(){if(this.canCollapse){var t=localStorage.getItem("panel-group-"+this.slug);this.isVisible=!t||!!JSON.parse(String(t).toLowerCase()),this.canCollapseWrapper=!0}}},s=(i("QBc4"),Object(n.a)(r,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"content-group",class:{"is-collapsed":!t.isVisible,collapsable:t.canCollapse}},[i("div",{staticClass:"group-title",on:{click:t.hideGroup}},[i("TextLabel",{staticClass:"title"},[t._v(t._s(t.title))]),t._v(" "),t.canCollapseWrapper?i("chevron-up-icon",{staticClass:"icon",attrs:{size:"12"}}):t._e()],1),t._v(" "),i("transition",{attrs:{name:"list"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"wrapper"},[t._t("default")],2)])],1)}),[],!1,null,"44ef99eb",null));e.a=s.exports},hlIb:function(t,e,i){var a=i("Q2fZ");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,n);a.locals&&(t.exports=a.locals)},kwS7:function(t,e,i){"use strict";i("8g0Q")},lOce:function(t,e,i){"use strict";i("C6ew")},mlij:function(t,e,i){"use strict";i("9Q5t")},mwJP:function(t,e,i){(t.exports=i("I1BE")(!1)).push([t.i,".user-avatar[data-v-d0d65bf0]{line-height:0;position:relative;width:40px;margin:0 auto}.user-avatar .notification[data-v-d0d65bf0]{width:12px;height:12px;display:block;position:absolute;bottom:-5px;right:-4px;border-radius:10px;z-index:2;background:#fe6057;border:2px solid #f4f5f6}.user-avatar img[data-v-d0d65bf0]{border-radius:6px;width:40px;height:40px;-o-object-fit:cover;object-fit:cover}.user-avatar.large[data-v-d0d65bf0]{margin:0;width:54px}.user-avatar.large img[data-v-d0d65bf0]{border-radius:9px;width:52px;height:52px}.dark-mode .user-avatar .notification[data-v-d0d65bf0]{border-color:#1e2024}",""])},nfnE:function(t,e,i){(t.exports=i("I1BE")(!1)).push([t.i,".popover-item[data-v-a1dbb974]{min-width:250px;position:absolute;z-index:9;box-shadow:0 7px 25px 1px rgba(0,0,0,.12);background:#fff;border-radius:8px;overflow:hidden;top:50px}.popover-item.left[data-v-a1dbb974]{right:0}.popover-item.right[data-v-a1dbb974]{left:0}.dark-mode .popover-item[data-v-a1dbb974]{background:#1e2024}",""])},oLLm:function(t,e,i){"use strict";var a=i("xCqy"),n={name:"PopupWrapper",props:["name"],data:function(){return{isVisibleWrapper:!1}},methods:{closePopup:function(){a.a.$emit("popup:close")}},created:function(){var t=this;a.a.$on("popup:open",(function(e){var i=e.name;t.name===i&&(t.isVisibleWrapper=!0),t.name!==i&&(t.isVisibleWrapper=!1)})),a.a.$on("confirm:open",(function(e){var i=e.name;t.name===i&&(t.isVisibleWrapper=!0)})),a.a.$on("popup:close",(function(){return t.isVisibleWrapper=!1}))}},o=(i("aa7f"),i("KHd+")),r=Object(o.a)(n,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:"popup"}},[t.isVisibleWrapper?i("div",{staticClass:"popup",on:{click:function(e){return e.target!==e.currentTarget?null:t.closePopup(e)}}},[i("div",{staticClass:"popup-wrapper"},[t._t("default")],2)]):t._e()])}),[],!1,null,"79747d82",null);e.a=r.exports},oP0v:function(t,e,i){(t.exports=i("I1BE")(!1)).push([t.i,".video-wrapper[data-v-51357f39]{max-width:1080px;max-height:100%}@media (min-width:1200px){.video-wrapper[data-v-51357f39]{max-width:800px}}@media (min-width:1920px) and (max-width:2560px){.video-wrapper[data-v-51357f39]{max-width:1080px}}@media (min-width:2560px) and (max-width:3840px){.video-wrapper[data-v-51357f39]{max-width:1440px}}@media (min-width:3840px){.video-wrapper[data-v-51357f39]{max-width:2160px}}.video-wrapper .video[data-v-51357f39]{max-width:100%;max-height:100%;align-self:center}",""])},pQ0B:function(t,e,i){var a=i("pYro");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,n);a.locals&&(t.exports=a.locals)},pYro:function(t,e,i){(t.exports=i("I1BE")(!1)).push([t.i,".popup-content.height-limited[data-v-ed1ffff8]{height:400px;overflow-y:auto}@media only screen and (max-width:690px){.popup-content[data-v-ed1ffff8]{top:57px;bottom:72px;position:absolute;left:0;right:0;height:auto;overflow-y:auto;overflow-x:hidden}}@media only screen and (max-width:320px){.popup-content[data-v-ed1ffff8]{position:unset}}@-webkit-keyframes popup-in-data-v-ed1ffff8{0%{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes popup-in-data-v-ed1ffff8{0%{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}@-webkit-keyframes popup-slide-in-data-v-ed1ffff8{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes popup-slide-in-data-v-ed1ffff8{0%{transform:translateY(100%)}to{transform:translateY(0)}}",""])},r2Yi:function(t,e,i){var a=i("3ONy");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,n);a.locals&&(t.exports=a.locals)},utYY:function(t,e,i){(t.exports=i("I1BE")(!1)).push([t.i,".content-group[data-v-44ef99eb]{margin-bottom:15px;transition:all .3s}.content-group .group-title[data-v-44ef99eb]{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.content-group .group-title .title[data-v-44ef99eb]{margin-bottom:0}.content-group .group-title .icon[data-v-44ef99eb]{margin-right:19px;opacity:.25;transition:all .3s ease}.content-group.collapsable .group-title[data-v-44ef99eb]{cursor:pointer}.content-group.is-collapsed[data-v-44ef99eb]{margin-bottom:15px}.content-group.is-collapsed .icon[data-v-44ef99eb]{transform:rotate(180deg)}.list-enter[data-v-44ef99eb],.list-leave-to[data-v-44ef99eb]{visibility:hidden;height:0;margin:0;padding:0;opacity:0}.list-enter-active[data-v-44ef99eb],.list-leave-active[data-v-44ef99eb]{transition:all .3s}",""])},wGq2:function(t,e,i){var a=i("utYY");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,n);a.locals&&(t.exports=a.locals)},wlrm:function(t,e,i){"use strict";var a=i("wVch"),n=i("zTYo"),o=i("CjXH"),r=i("xCqy"),s=i("LvDl"),c=i("vDqi"),d=i.n(c),l={name:"Spotlight",components:{FileItemList:a.a,SearchIcon:o.ab,Spinner:n.a,XIcon:o.rb},computed:{metaKeyIcon:function(){return this.$isApple()?"⌘":"⊞"},isEmptyQuery:function(){return""!==this.query}},watch:{query:function(t){""!==t&&void 0!==t||(this.results=[]),this.index=0,this.searchFiles(t)}},data:function(){return{isVisible:!1,isLoading:!1,results:[],query:"",index:0}},methods:{proceedToSelect:function(t){["a","r","v"].includes(t.key)||t.preventDefault(),Number.isInteger(parseInt(t.key))&&parseInt(t.key)<this.results.length&&(this.index=parseInt(t.key),this.showSelected())},showSelected:function(){var t=this.results[this.index];"folder"===t.data.type?this.$router.push({name:"Files",params:{id:this.results[this.index].data.id}}):["video","audio","image"].includes(t.data.type)||"pdf"===t.data.attributes.mimetype?(this.$store.commit("ADD_TO_FAST_PREVIEW",this.results[this.index]),r.a.$emit("file-preview:show")):this.$downloadFile(t.data.attributes.file_url,t.data.attributes.name+"."+t.data.attributes.mimetype),this.exit()},onPageDown:function(){this.index<this.results.length-1&&this.index++},onPageUp:function(){this.index>0&&this.index--},searchFiles:Object(s.debounce)((function(t){var e=this;if(""!==t&&void 0!==t){this.isLoading=!0;var i=void 0;if(this.$store.getters.sharedDetail){var a=this.$store.getters.sharedDetail.data.attributes.protected?"private":"public";i="/api/browse/search/".concat(a,"/").concat(this.$router.currentRoute.params.token)}else i="/api/browse/search";d.a.get(i,{params:{query:t}}).then((function(t){var i=t.data.files.data,a=t.data.folders.data;e.results=a.concat(i)})).catch((function(){return e.$isSomethingWrong()})).finally((function(){return e.isLoading=!1}))}}),150),exit:function(){this.results=[],this.query="",this.isVisible=!1,r.a.$emit("popup:close")}},created:function(){var t=this;r.a.$on("spotlight:show",(function(){t.isVisible=!0,t.$nextTick((function(){return t.$refs.searchInput.focus()}))})),r.a.$on("spotlight:hide",(function(){return t.exit()}))}},p=(i("TdlE"),i("KHd+")),u=Object(p.a)(l,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isVisible?i("div",{attrs:{id:"spotlight",tabindex:"-1"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.exit(e)}}},[i("div",{staticClass:"spotlight-wrapper"},[i("div",{staticClass:"spotlight-search"},[i("div",{staticClass:"magnify-icon"},[t.isLoading?i("div",{staticClass:"spinner-icon"},[i("Spinner")],1):t._e(),t._v(" "),i("search-icon",{staticClass:"magnify text-theme",class:{"is-hidden":t.isLoading},attrs:{size:"22"}})],1),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],ref:"searchInput",attrs:{type:"text",placeholder:"Spotlight search..."},domProps:{value:t.query},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.showSelected(e)},function(e){return e.metaKey?t.proceedToSelect(e):null}],keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:t.onPageDown(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:t.onPageUp(e)}],input:function(e){e.target.composing||(t.query=e.target.value)}}}),t._v(" "),t.$isMobile()?t._e():i("div",{staticClass:"input-hint"},[i("span",{staticClass:"title keyboard-hint"},[t._v("esc")])]),t._v(" "),t.$isMobile()?i("div",{staticClass:"close-icon",on:{click:t.exit}},[i("x-icon",{staticClass:"close",attrs:{size:"22"}})],1):t._e()]),t._v(" "),t.isEmptyQuery?i("div",{staticClass:"spotlight-results"},[t._l(t.results,(function(e,a){return 0!==t.results.length?i("div",{key:e.data.id,staticClass:"result-item"},[i("FileItemList",{staticClass:"file-item",class:{"is-clicked":a===t.index},attrs:{item:e,"disable-highlight":!0},nativeOn:{click:function(e){return t.exit(e)}}}),t._v(" "),t.$isMobile()?t._e():i("div",{staticClass:"input-hint"},[i("span",{staticClass:"title"},[t._v(t._s(0===a?"↵":t.metaKeyIcon+a))])])],1):t._e()})),t._v(" "),0===t.results.length?i("div",[i("span",{staticClass:"message"},[t._v(t._s(t.$t("messages.nothing_was_found")))])]):t._e()],2):t._e()])]):t._e()}),[],!1,null,"4ae94110",null);e.a=u.exports},"y+QG":function(t,e,i){var a=i("6bXj");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,n);a.locals&&(t.exports=a.locals)}}]);