(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;e960&&(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;e1||(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;e95}})},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;e0&&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)}}]);