Files
vuefilemanager/public/chunks/files~chunks/platform~chunks/shared/file-browser.js
T
2021-08-11 07:22:32 +00:00

1 line
28 KiB
JavaScript
Vendored

(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"+q3F":function(e,t,i){var a=i("mvNq");"string"==typeof a&&(a=[[e.i,a,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,o);a.locals&&(e.exports=a.locals)},CAPI:function(e,t,i){(e.exports=i("I1BE")(!1)).push([e.i,".select-box[data-v-3665c865]{min-width:20px;min-height:20px;display:flex;justify-content:center;align-items:center;border-radius:5px}.select-box .icon[data-v-3665c865]{stroke:#fff}.is-deactive[data-v-3665c865]{background-color:#e6e8eb}.dark-mode .is-deactive[data-v-3665c865]{background-color:#353940}",""])},D6BU:function(e,t,i){"use strict";i("KKKj")},GGWl:function(e,t,i){"use strict";i("+q3F")},HWxI:function(e,t,i){"use strict";i("NVq4")},K1m0:function(e,t,i){(e.exports=i("I1BE")(!1)).push([e.i,".slide-from-left-move[data-v-6bda8202]{transition:transform 300s ease}.slide-from-left-enter-active[data-v-6bda8202],.slide-from-left-leave-active[data-v-6bda8202],.slide-from-right-enter-active[data-v-6bda8202],.slide-from-right-leave-active[data-v-6bda8202]{transition:all .3s}.slide-from-left-enter[data-v-6bda8202],.slide-from-left-leave-to[data-v-6bda8202]{opacity:0;transform:translateX(-100%)}.slide-from-right-enter[data-v-6bda8202],.slide-from-right-leave-to[data-v-6bda8202]{opacity:0;transform:translateX(100%)}.check-box[data-v-6bda8202]{margin-right:15px;margin-left:6px}.file-wrapper[data-v-6bda8202]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative}.file-wrapper[data-v-6bda8202]:hover{border-color:transparent}.file-wrapper .actions[data-v-6bda8202]{text-align:right;width:50px}.file-wrapper .actions .show-actions[data-v-6bda8202]{cursor:pointer;padding:12px 0 12px 6px}.file-wrapper .actions .show-actions .icon-action[data-v-6bda8202]{margin-top:9px;font-size:.875em}.file-wrapper .actions .show-actions .icon-action circle[data-v-6bda8202]{color:inherit}.file-wrapper .item-name[data-v-6bda8202]{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-wrapper .item-name .item-info[data-v-6bda8202]{display:block;line-height:1}.file-wrapper .item-name .item-shared[data-v-6bda8202]{display:inline-block}.file-wrapper .item-name .item-shared .label[data-v-6bda8202]{font-size:.75em;font-weight:400;color:#00bc7e}.file-wrapper .item-name .item-shared .shared-icon[data-v-6bda8202]{vertical-align:middle}.file-wrapper .item-name .item-shared .shared-icon circle[data-v-6bda8202],.file-wrapper .item-name .item-shared .shared-icon line[data-v-6bda8202],.file-wrapper .item-name .item-shared .shared-icon path[data-v-6bda8202]{color:inherit}.file-wrapper .item-name .item-length[data-v-6bda8202],.file-wrapper .item-name .item-size[data-v-6bda8202]{font-size:.6875em;font-weight:400;color:rgba(27,37,57,.7)}.file-wrapper .item-name .name[data-v-6bda8202]{white-space:nowrap}.file-wrapper .item-name .name[contenteditable][data-v-6bda8202]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.file-wrapper .item-name .name[contenteditable=true][data-v-6bda8202]:hover{text-decoration:underline}.file-wrapper .item-name .name[data-v-6bda8202]{color:#1b2539;font-size:.875em;font-weight:700;max-height:40px;overflow:hidden;text-overflow:ellipsis}.file-wrapper .item-name .name.actived[data-v-6bda8202]{max-height:none}.file-wrapper.selected .file-item[data-v-6bda8202]{background:#f4f5f6}.file-wrapper .icon-item[data-v-6bda8202]{text-align:center;position:relative;flex:0 0 50px;line-height:0;margin-right:20px}.file-wrapper .icon-item .folder[data-v-6bda8202]{width:52px;height:52px}.file-wrapper .icon-item .folder[data-v-6bda8202] .folder-icon{font-size:3.25em}.file-wrapper .icon-item .file-icon[data-v-6bda8202]{font-size:2.8125em}.file-wrapper .icon-item .file-icon path[data-v-6bda8202]{fill:#fafafc;stroke:#dfe0e8;stroke-width:1}.file-wrapper .icon-item .file-icon-text[data-v-6bda8202]{line-height:1;top:40%;font-size:.6875em;margin:0 auto;position:absolute;text-align:center;left:0;right:0;font-weight:600;max-width:50px;max-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-wrapper .icon-item .file-icon-text[data-v-6bda8202],.file-wrapper .icon-item .image[data-v-6bda8202]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.file-wrapper .icon-item .image[data-v-6bda8202]{-o-object-fit:cover;object-fit:cover;max-width:100%;border-radius:5px;width:50px;height:50px;pointer-events:none}.file-wrapper .file-item[data-v-6bda8202]{border:2px dashed transparent;width:100%;display:flex;align-items:center;padding:7px}.file-wrapper .file-item.is-dragenter[data-v-6bda8202]{border-radius:8px}.file-wrapper .file-item.no-clicked[data-v-6bda8202]{background:#fff!important}.file-wrapper .file-item.no-clicked .item-name .name[data-v-6bda8202]{color:#1b2539!important}.file-wrapper .file-item.is-clicked[data-v-6bda8202],.file-wrapper .file-item[data-v-6bda8202]:hover{border-radius:8px;background:#f4f5f6}.dark-mode .file-wrapper .icon-item .file-icon path[data-v-6bda8202]{fill:#1e2024;stroke:#2f3c54}.dark-mode .file-wrapper .file-item.no-clicked[data-v-6bda8202]{background:#131414!important}.dark-mode .file-wrapper .file-item.no-clicked .file-icon path[data-v-6bda8202]{fill:#1e2024!important;stroke:#2f3c54}.dark-mode .file-wrapper .file-item.no-clicked .item-name .name[data-v-6bda8202]{color:#bec6cf!important}.dark-mode .file-wrapper .file-item.is-clicked[data-v-6bda8202],.dark-mode .file-wrapper .file-item[data-v-6bda8202]:hover{background:#1e2024}.dark-mode .file-wrapper .file-item.is-clicked .file-icon path[data-v-6bda8202],.dark-mode .file-wrapper .file-item:hover .file-icon path[data-v-6bda8202]{fill:#131414}.dark-mode .file-wrapper .item-name .name[data-v-6bda8202]{color:#bec6cf}.dark-mode .file-wrapper .item-name .item-length[data-v-6bda8202],.dark-mode .file-wrapper .item-name .item-size[data-v-6bda8202]{color:#7d858c}",""])},KKKj:function(e,t,i){var a=i("CAPI");"string"==typeof a&&(a=[[e.i,a,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,o);a.locals&&(e.exports=a.locals)},NVq4:function(e,t,i){var a=i("mXTd");"string"==typeof a&&(a=[[e.i,a,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,o);a.locals&&(e.exports=a.locals)},dH5z:function(e,t,i){"use strict";var a=i("xCqy"),o={name:"Option",props:["title"],components:{UploadCloudIcon:i("CjXH").lb},methods:{emmitFiles:function(e){this.$uploadFiles(e.target.files),a.a.$emit("popover:close","desktop-create")}}},r=(i("HWxI"),i("KHd+")),n=Object(r.a)(o,(function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"menu-option group",attrs:{for:"file"}},[t("div",{staticClass:"icon-left group-hover-text-theme"},[t("upload-cloud-icon",{staticClass:"group-hover-text-theme",attrs:{size:"17"}})],1),this._v(" "),t("div",{staticClass:"text-label group-hover-text-theme"},[this._v("\n "+this._s(this.title)+"\n\t\t\t"),t("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{id:"file",type:"file",name:"files[]",multiple:""},on:{change:this.emmitFiles}})])])}),[],!1,null,"56982a6d",null);t.a=n.exports},dqA1:function(e,t,i){"use strict";var a={name:"CheckBox",props:["isClicked"],components:{CheckIcon:i("CjXH").e}},o=(i("D6BU"),i("KHd+")),r=Object(o.a)(a,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"select-box",class:[this.isClicked?"bg-theme":"is-deactive"]},[this.isClicked?t("CheckIcon",{staticClass:"icon",attrs:{size:"17"}}):this._e()],1)}),[],!1,null,"3665c865",null);t.a=r.exports},ko3O:function(e,t,i){"use strict";i("qS29")},mXTd:function(e,t,i){(e.exports=i("I1BE")(!1)).push([e.i,".menu-option[data-v-56982a6d]{white-space:nowrap;font-weight:700;font-size:.875em;padding:15px 20px;cursor:pointer;width:100%;color:#1b2539;display:flex;align-items:center}.menu-option .icon-left[data-v-56982a6d]{margin-right:20px;line-height:0}.menu-option .icon-left circle[data-v-56982a6d],.menu-option .icon-left line[data-v-56982a6d],.menu-option .icon-left path[data-v-56982a6d],.menu-option .icon-left polygon[data-v-56982a6d],.menu-option .icon-left polyline[data-v-56982a6d],.menu-option .icon-left rect[data-v-56982a6d]{color:inherit}.menu-option .text-label[data-v-56982a6d]{font-size:1em}.dark-mode .menu-option[data-v-56982a6d]{color:#bec6cf}",""])},mvNq:function(e,t,i){(e.exports=i("I1BE")(!1)).push([e.i,".form-wrapper[data-v-52f70750]{padding:0 20px}.input-wrapper[data-v-52f70750]{margin-bottom:20px}.input-wrapper[data-v-52f70750]:last-child{margin-bottom:0}.input-wrapper input[data-v-52f70750]{width:100%;color:#1b2539}.input-wrapper input.is-error[data-v-52f70750]{border-color:#fd397a}.inline-wrapper[data-v-52f70750]{display:flex;align-items:center;justify-content:space-between}.inline-wrapper.icon-append .input-text[data-v-52f70750]{border-top-right-radius:0;border-bottom-right-radius:0}.inline-wrapper.icon-append .icon[data-v-52f70750]{background:#000;padding:15px 18px;border-top-right-radius:8px;border-bottom-right-radius:8px;text-align:center;line-height:0}.inline-wrapper.icon-append .icon path[data-v-52f70750],.inline-wrapper.icon-append .icon polyline[data-v-52f70750]{stroke:#fff}.input-label[data-v-52f70750]{font-size:.875em;color:#1b2539;font-weight:700;display:block;margin-bottom:8px}.dark-mode .inline-wrapper.icon-append .icon[data-v-52f70750]{background:rgba(0,188,126,.1)}.dark-mode .inline-wrapper.icon-append .icon path[data-v-52f70750],.dark-mode .inline-wrapper.icon-append .icon polyline[data-v-52f70750]{stroke:#00bc7e}.dark-mode .input-label[data-v-52f70750]{color:#bec6cf}.form[data-v-52f70750]{max-width:700px}.form.inline-form[data-v-52f70750]{display:flex;position:relative;justify-content:center;margin:0 auto}.form.inline-form .input-wrapper[data-v-52f70750]{position:relative}.form.inline-form .input-wrapper .error-message[data-v-52f70750]{position:absolute;left:0;bottom:-25px}.form.block-form .wrapper-inline[data-v-52f70750]{display:flex;margin:0 -15px}.form.block-form .wrapper-inline .block-wrapper[data-v-52f70750]{width:100%;padding:0 15px}.form.block-form .block-wrapper[data-v-52f70750]{margin-bottom:32px}.form.block-form .block-wrapper label[data-v-52f70750]{font-size:.875em;color:rgba(27,37,57,.8);font-weight:700;display:block;margin-bottom:7px;text-align:left}.form.block-form .block-wrapper[data-v-52f70750]:last-child{margin-bottom:0}.form.block-form .button[data-v-52f70750]{margin-top:50px}.form .inline-wrapper[data-v-52f70750]{display:flex;align-items:center;justify-content:space-between}.form .inline-wrapper .switch-label .input-help[data-v-52f70750]{padding-top:0}.form .inline-wrapper .switch-label .input-label[data-v-52f70750]{font-weight:700;color:#1b2539;font-size:1em;margin-bottom:5px}.form .input-help[data-v-52f70750]{font-size:.75em;color:rgba(27,37,57,.7);line-height:1.35;padding-top:10px;display:block}.single-line-form[data-v-52f70750]{display:flex}.single-line-form .submit-button[data-v-52f70750]{margin-left:20px}.error-message[data-v-52f70750]{font-size:.875em;color:#fd397a;padding-top:5px;display:block;text-align:left}textarea[data-v-52f70750]{width:100%}input[type=email][data-v-52f70750],input[type=number][data-v-52f70750],input[type=password][data-v-52f70750],input[type=text][data-v-52f70750],textarea[data-v-52f70750]{border:1px solid transparent;transition:all .15s ease;font-size:1em;border-radius:8px;padding:13px 20px;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-weight:700;outline:0;width:100%;box-shadow:0 1px 5px rgba(0,0,0,.12)}input[type=email].is-error[data-v-52f70750],input[type=number].is-error[data-v-52f70750],input[type=password].is-error[data-v-52f70750],input[type=text].is-error[data-v-52f70750],textarea.is-error[data-v-52f70750]{border-color:#fd397a}input[type=email][data-v-52f70750]::-moz-placeholder,input[type=number][data-v-52f70750]::-moz-placeholder,input[type=password][data-v-52f70750]::-moz-placeholder,input[type=text][data-v-52f70750]::-moz-placeholder,textarea[data-v-52f70750]::-moz-placeholder{color:rgba(27,37,57,.5);font-size:.9375em}input[type=email][data-v-52f70750]:-ms-input-placeholder,input[type=number][data-v-52f70750]:-ms-input-placeholder,input[type=password][data-v-52f70750]:-ms-input-placeholder,input[type=text][data-v-52f70750]:-ms-input-placeholder,textarea[data-v-52f70750]:-ms-input-placeholder{color:rgba(27,37,57,.5);font-size:.9375em}input[type=email][data-v-52f70750]::placeholder,input[type=number][data-v-52f70750]::placeholder,input[type=password][data-v-52f70750]::placeholder,input[type=text][data-v-52f70750]::placeholder,textarea[data-v-52f70750]::placeholder{color:rgba(27,37,57,.5);font-size:.9375em}input[type=email][disabled][data-v-52f70750],input[type=number][disabled][data-v-52f70750],input[type=password][disabled][data-v-52f70750],input[type=text][disabled][data-v-52f70750],textarea[disabled][data-v-52f70750]{background:#fff;color:rgba(27,37,57,.8);-webkit-text-fill-color:rgba(27,37,57,.8);opacity:1;cursor:not-allowed}input[type=color][data-v-52f70750]{width:38px!important;height:40px;border:none;outline:none;background:none;min-width:0!important}.additional-link[data-v-52f70750]{font-size:1em;margin-top:50px;display:block}.additional-link a[data-v-52f70750],.additional-link b[data-v-52f70750]{cursor:pointer}.additional-link a[data-v-52f70750]:hover,.additional-link b[data-v-52f70750]:hover{text-decoration:underline}@media only screen and (max-width:1024px){.form[data-v-52f70750]{max-width:100%}}@media only screen and (max-width:960px){.form .button[data-v-52f70750]{margin-top:20px;width:100%;margin-left:0;margin-right:0}.form input[data-v-52f70750],.form textarea[data-v-52f70750]{width:100%;min-width:100%}.form.block-form .block-wrapper[data-v-52f70750]{display:block}.form.block-form .block-wrapper label[data-v-52f70750]{width:100%;padding-right:0;display:block;margin-bottom:7px;text-align:left!important;font-size:.875em;padding-top:0}.form.block-form .button[data-v-52f70750]{margin-top:25px;margin-left:0;margin-right:0}.form.inline-form[data-v-52f70750]{display:block}.form.inline-form .input-wrapper .error-message[data-v-52f70750]{position:relative;bottom:0}.form .button[data-v-52f70750]{padding:14px 32px}.single-line-form[data-v-52f70750]{display:block}.single-line-form .submit-button[data-v-52f70750]{margin-left:0;margin-top:20px;width:100%}input[type=email][data-v-52f70750],input[type=number][data-v-52f70750],input[type=password][data-v-52f70750],input[type=text][data-v-52f70750],textarea[data-v-52f70750]{padding:14px 20px}}@media only screen and (max-width:690px){.form.block-form .wrapper-inline[data-v-52f70750]{display:block}}.dark-mode .form .input-help[data-v-52f70750]{color:#7d858c}.dark-mode .form.block-form .block-wrapper label[data-v-52f70750],.dark-mode .form .inline-wrapper .switch-label .input-label[data-v-52f70750]{color:#bec6cf}.dark-mode input[type=email][data-v-52f70750],.dark-mode input[type=number][data-v-52f70750],.dark-mode input[type=password][data-v-52f70750],.dark-mode input[type=text][data-v-52f70750],.dark-mode textarea[data-v-52f70750]{border-color:#1e2024;background:#1e2024;color:#bec6cf}.dark-mode input[type=email][data-v-52f70750]::-moz-placeholder,.dark-mode input[type=number][data-v-52f70750]::-moz-placeholder,.dark-mode input[type=password][data-v-52f70750]::-moz-placeholder,.dark-mode input[type=text][data-v-52f70750]::-moz-placeholder,.dark-mode textarea[data-v-52f70750]::-moz-placeholder{color:#7d858c}.dark-mode input[type=email][data-v-52f70750]:-ms-input-placeholder,.dark-mode input[type=number][data-v-52f70750]:-ms-input-placeholder,.dark-mode input[type=password][data-v-52f70750]:-ms-input-placeholder,.dark-mode input[type=text][data-v-52f70750]:-ms-input-placeholder,.dark-mode textarea[data-v-52f70750]:-ms-input-placeholder{color:#7d858c}.dark-mode input[type=email][data-v-52f70750]::placeholder,.dark-mode input[type=number][data-v-52f70750]::placeholder,.dark-mode input[type=password][data-v-52f70750]::placeholder,.dark-mode input[type=text][data-v-52f70750]::placeholder,.dark-mode textarea[data-v-52f70750]::placeholder{color:#7d858c}.dark-mode input[type=email][disabled][data-v-52f70750],.dark-mode input[type=number][disabled][data-v-52f70750],.dark-mode input[type=password][disabled][data-v-52f70750],.dark-mode input[type=text][disabled][data-v-52f70750],.dark-mode textarea[disabled][data-v-52f70750]{background:#1e2024;color:rgba(125,133,140,.8);-webkit-text-fill-color:rgba(125,133,140,.8)}.dark-mode .popup-wrapper input[type=email][data-v-52f70750],.dark-mode .popup-wrapper input[type=number][data-v-52f70750],.dark-mode .popup-wrapper input[type=password][data-v-52f70750],.dark-mode .popup-wrapper input[type=text][data-v-52f70750],.dark-mode .popup-wrapper textarea[data-v-52f70750]{background:#25272c}.multi-icon[data-v-52f70750]{display:flex;align-items:center;background:#f4f5f6;border-bottom-right-radius:8px;border-top-right-radius:8px}.multi-icon line[data-v-52f70750],.multi-icon path[data-v-52f70750],.multi-icon polygon[data-v-52f70750]{color:#1b2539}.multi-icon .icon-item[data-v-52f70750]{padding:9px 10px;display:flex;align-items:center;border-left:1px solid #e8e9eb;cursor:pointer}.multi-icon .icon-item:hover line[data-v-52f70750],.multi-icon .icon-item:hover path[data-v-52f70750],.multi-icon .icon-item:hover polygon[data-v-52f70750],.multi-icon .icon-item:hover polyline[data-v-52f70750]{color:inherit}.multi-icon .icon-item[data-v-52f70750]:first-child{border-left:none}.multi-icon .icon-item[data-v-52f70750]:last-child{border-bottom-right-radius:8px;border-top-right-radius:8px}.copy-input[data-v-52f70750]{border:1px solid #e8e9eb;border-radius:8px}.copy-input.small.icon-append .icon[data-v-52f70750]{padding:10px}.copy-input.small input[data-v-52f70750]{padding:6px 10px;font-size:.8125em}.copy-input .icon[data-v-52f70750]{cursor:pointer}.copy-input input[data-v-52f70750]{text-overflow:ellipsis;box-shadow:none}.copy-input input[data-v-52f70750]:disabled{color:#1b2539;cursor:pointer}.dark-mode .copy-input[data-v-52f70750]{border-color:#333}.dark-mode .multi-icon[data-v-52f70750]{background:#1e2024;box-shadow:0 1px 5px rgba(0,0,0,.12)}.dark-mode .multi-icon line[data-v-52f70750],.dark-mode .multi-icon path[data-v-52f70750],.dark-mode .multi-icon polygon[data-v-52f70750]{color:inherit!important}.dark-mode .multi-icon .icon-item[data-v-52f70750]{border-color:#333}.dark-mode .copy-input input[data-v-52f70750]{color:#bec6cf}",""])},qS29:function(e,t,i){var a=i("K1m0");"string"==typeof a&&(a=[[e.i,a,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(a,o);a.locals&&(e.exports=a.locals)},wVch:function(e,t,i){"use strict";var a=i("CjXH"),o=i("JkMM"),r=i("dqA1"),n=i("LvDl"),d=i("L2JU"),s=i("xCqy");function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,a)}return i}function p(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){m(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function m(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var c={name:"FileItemList",props:["item","disableHighlight"],components:{MoreVerticalIcon:a.T,UserPlusIcon:a.nb,FolderIcon:o.a,CheckBox:r.a,LinkIcon:a.L},computed:p(p({},Object(d.b)(["FilePreviewType","clipboard","entries"])),{},{isClicked:function(){var e=this;return!this.disableHighlight&&this.clipboard.some((function(t){return t.id===e.item.id}))},isFolder:function(){return"folder"===this.item.type},isFile:function(){return"folder"!==this.item.type&&"image"!==this.item.type},isImage:function(){return"image"===this.item.type},isPdf:function(){return"pdf"===this.item.mimetype},isVideo:function(){return"video"===this.item.type},isAudio:function(){return["mpeg","mp3","mp4","wan","flac"].includes(this.item.mimetype)&&"audio"===this.item.type},canEditName:function(){return!(this.$isMobile()||this.$isThisLocation(["trash","trash-root"])||this.$checkPermission("visitor")||this.sharedDetail&&"file"===this.sharedDetail.type)},canDrag:function(){return!this.isDeleted&&this.$checkPermission(["master","editor"])},timeStamp:function(){return this.item.deleted_at?this.$t("item_thumbnail.deleted_at",{time:this.item.deleted_at}):this.item.created_at},folderItems:function(){return this.item.deleted_at?this.item.trashed_items:this.item.items},isDeleted:function(){return!!this.item.deleted_at}}),filters:{limitCharacters:function(e){return e.length>3?e.substring(0,3)+"...":e.substring(0,3)}},data:function(){return{area:!1,itemName:void 0,mobileMultiSelect:!1}},methods:{drop:function(){this.area=!1,s.a.$emit("drop")},showItemActions:function(){this.$store.commit("CLIPBOARD_CLEAR"),this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.item),s.a.$emit("mobile-menu:show","file-menu")},dragEnter:function(){"folder"===this.item.type&&(this.area=!0)},dragLeave:function(){this.area=!1},clickedItem:function(e){var t=this;if(2!==e.button){if(!this.$isMobile())if(document.getSelection().toString().length&&document.getSelection().removeAllRanges(),!e.ctrlKey&&!e.metaKey||e.shiftKey)if(e.shiftKey){var i=this.entries.indexOf(this.clipboard[this.clipboard.length-1]),a=this.entries.indexOf(this.item);if(e.ctrlKey||e.metaKey||this.$store.commit("CLIPBOARD_CLEAR"),i<a)for(var o=i;o<=a;o++)this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.entries[o]);else for(var r=i;r>=a;r--)this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.entries[r])}else this.$store.commit("CLIPBOARD_CLEAR"),this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.item);else this.clipboard.some((function(e){return e.id===t.item.id}))?this.$store.commit("REMOVE_ITEM_FROM_CLIPBOARD",this.item):this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.item);!this.mobileMultiSelect&&this.$isMobile()&&(this.isFolder?this.$isThisLocation("public")?this.$store.dispatch("browseShared",[{folder:this.item,back:!1,init:!1}]):this.$store.dispatch("getFolder",[{folder:this.item,back:!1,init:!1}]):(this.isImage||this.isVideo||this.isAudio||this.isPdf)&&(this.$store.commit("CLIPBOARD_CLEAR"),this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.item),s.a.$emit("file-preview:show"))),this.mobileMultiSelect&&this.$isMobile()&&(this.clipboard.some((function(e){return e.id===t.item.id}))?this.$store.commit("REMOVE_ITEM_FROM_CLIPBOARD",this.item):this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.item))}},goToItem:function(){this.isImage||this.isVideo||this.isAudio||this.isPdf?s.a.$emit("file-preview:show"):!this.isFile&&(this.isFolder||this.isVideo||this.isAudio||this.isImage)?this.isFolder&&(this.$store.commit("CLIPBOARD_CLEAR"),this.$isThisLocation("public")?this.$store.dispatch("browseShared",[{folder:this.item,back:!1,init:!1}]):this.$store.dispatch("getFolder",[{folder:this.item,back:!1,init:!1}])):this.$downloadFile(this.item.file_url,this.item.name+"."+this.item.mimetype)},renameItem:Object(n.debounce)((function(e){""!==e.target.innerText.trim()&&this.$store.dispatch("renameItem",{id:this.item.id,type:this.item.type,name:e.target.innerText})}),300)},created:function(){var e=this;this.itemName=this.item.name,s.a.$on("newFolder:focus",(function(t){e.item.id!==t||e.$isMobile()||(e.$refs[t].focus(),document.execCommand("selectAll"))})),s.a.$on("mobileSelecting:start",(function(){e.mobileMultiSelect=!0,e.$store.commit("CLIPBOARD_CLEAR")})),s.a.$on("mobileSelecting:stop",(function(){e.mobileMultiSelect=!1,e.$store.commit("CLIPBOARD_CLEAR")})),s.a.$on("change:name",(function(t){e.item.id===t.id&&(e.itemName=t.name)}))}},f=(i("ko3O"),i("KHd+")),u=Object(f.a)(c,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"file-wrapper",attrs:{spellcheck:"false"},on:{mouseup:function(t){return t.stopPropagation(),e.clickedItem(t)},dblclick:e.goToItem}},[i("div",{staticClass:"file-item",class:{"is-clicked":e.isClicked,"no-clicked":!e.isClicked&&e.$isMobile(),"is-dragenter":e.area},attrs:{draggable:e.canDrag},on:{dragstart:function(t){return e.$emit("dragstart")},drop:function(t){return e.drop()},dragleave:e.dragLeave,dragover:function(t){return t.preventDefault(),e.dragEnter(t)}}},[i("transition",{attrs:{name:"slide-from-left"}},[e.mobileMultiSelect?i("CheckBox",{staticClass:"check-box",attrs:{"is-clicked":e.isClicked}}):e._e()],1),e._v(" "),i("div",{staticClass:"icon-item"},[e.isFile||e.isImage&&!e.item.thumbnail?i("span",{staticClass:"file-icon-text text-theme dark-text-theme"},[e._v("\n "+e._s(e._f("limitCharacters")(e.item.mimetype))+"\n ")]):e._e(),e._v(" "),e.isFile||e.isImage&&!e.item.thumbnail?i("FontAwesomeIcon",{staticClass:"file-icon",attrs:{icon:"file"}}):e._e(),e._v(" "),e.isImage&&e.item.thumbnail?i("img",{staticClass:"image",attrs:{loading:"lazy",src:e.item.thumbnail,alt:e.item.name}}):e._e(),e._v(" "),e.isFolder?i("FolderIcon",{staticClass:"folder svg-color-theme",attrs:{item:e.item,location:"file-item-list"}}):e._e()],1),e._v(" "),i("div",{staticClass:"item-name"},[i("b",{ref:this.item.id,staticClass:"name",attrs:{contenteditable:e.canEditName},on:{input:e.renameItem,keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"]))return null;t.stopPropagation()},click:function(e){e.stopPropagation()}}},[e._v("\n "+e._s(e.itemName)+"\n ")]),e._v(" "),i("div",{staticClass:"item-info"},[e.$checkPermission("master")&&e.item.shared?i("div",{staticClass:"item-shared"},[i("link-icon",{staticClass:"shared-icon text-theme dark-text-theme",attrs:{size:"12"}})],1):e._e(),e._v(" "),e.$checkPermission("master")&&"user"!==e.item.author?i("div",{staticClass:"item-shared"},[i("user-plus-icon",{staticClass:"shared-icon text-theme dark-text-theme",attrs:{size:"12"}})],1):e._e(),e._v(" "),e.isFolder?e._e():i("span",{staticClass:"item-size"},[e._v(e._s(e.item.filesize)+", "+e._s(e.timeStamp))]),e._v(" "),e.isFolder?i("span",{staticClass:"item-length"},[e._v(" "+e._s(0==e.folderItems?e.$t("folder.empty"):e.$tc("folder.item_counts",e.folderItems))+", "+e._s(e.timeStamp)+" ")]):e._e()])]),e._v(" "),i("transition",{attrs:{name:"slide-from-right"}},[e.$isMobile()&&!e.mobileMultiSelect?i("div",{staticClass:"actions"},[i("span",{staticClass:"show-actions",on:{mousedown:function(t){return t.stopPropagation(),e.showItemActions(t)}}},[i("MoreVerticalIcon",{staticClass:"icon-action text-theme dark-text-theme",attrs:{size:"16"}})],1)]):e._e()])],1)])}),[],!1,null,"6bda8202",null);t.a=u.exports},yOYC:function(e,t,i){"use strict";var a=i("CjXH"),o=i("xCqy"),r={name:"CopyShareLink",props:["size","item"],components:{CheckIcon:a.e,LinkIcon:a.L,SendIcon:a.bb},data:function(){return{isCopiedLink:!1}},methods:{menuForEmail:function(){o.a.$emit("popup:open",{name:"share-edit",item:this.item,sentToEmail:!0})},copyUrl:function(){var e=this,t=document.getElementById("link-input");t.select(),t.setSelectionRange(0,99999),document.execCommand("copy"),this.isCopiedLink=!0,setTimeout((function(){e.isCopiedLink=!1}),1e3)}}},n=(i("GGWl"),i("KHd+")),d=Object(n.a)(r,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"inline-wrapper icon-append copy-input",class:e.size,on:{click:e.copyUrl}},[i("input",{ref:"sel",staticClass:"input-text",attrs:{id:"link-input",type:"text",readonly:""},domProps:{value:e.item.shared.link}}),e._v(" "),i("div",{staticClass:"multi-icon"},[i("div",{staticClass:"icon-item group hover-bg-theme-100"},[e.isCopiedLink?e._e():i("link-icon",{staticClass:"group-hover-text-theme hover-text-theme",attrs:{size:"14"}}),e._v(" "),e.isCopiedLink?i("check-icon",{staticClass:"group-hover-text-theme hover-text-theme",attrs:{size:"14"}}):e._e()],1),e._v(" "),i("div",{staticClass:"icon-item group hover-bg-theme-100",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.menuForEmail(t)}}},[i("send-icon",{staticClass:"group-hover-text-theme hover-text-theme",attrs:{size:"14"}})],1)])])}),[],!1,null,"52f70750",null);t.a=d.exports}}]);