(window.webpackJsonp=window.webpackJsonp||[]).push([[39,6],{"+1jq":function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".user-info[data-v-55efbdee] {\n padding: 20px 20px 10px;\n}\n.go-back[data-v-55efbdee] {\n display: flex;\n align-items: center;\n padding: 30px 20px 10px;\n cursor: pointer;\n}\n.go-back .title[data-v-55efbdee] {\n font-size: 0.875em;\n font-weight: 700;\n margin-left: 10px;\n}\n.go-back polyline[data-v-55efbdee] {\n color: inherit;\n}\n",""])},"/vjM":function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".slide-from-left-move[data-v-09d9a952] {\n transition: transform 300s ease;\n}\n.slide-from-left-enter-active[data-v-09d9a952],\n.slide-from-right-enter-active[data-v-09d9a952],\n.slide-from-left-leave-active[data-v-09d9a952],\n.slide-from-right-leave-active[data-v-09d9a952] {\n transition: all 300ms;\n}\n.slide-from-left-enter[data-v-09d9a952],\n.slide-from-left-leave-to[data-v-09d9a952] {\n opacity: 0;\n transform: translateX(-100%);\n}\n.slide-from-right-enter[data-v-09d9a952],\n.slide-from-right-leave-to[data-v-09d9a952] {\n opacity: 0;\n transform: translateX(100%);\n}\n.check-select[data-v-09d9a952] {\n margin-right: 15px;\n margin-left: 6px;\n}\n.check-select .select-box[data-v-09d9a952] {\n width: 20px;\n height: 20px;\n background-color: #e6e8eb;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 5px;\n}\n.check-select .select-box-active[data-v-09d9a952] {\n background-color: #00BC7E;\n}\n.check-select .select-box-active .icon[data-v-09d9a952] {\n stroke: white;\n}\n.file-wrapper[data-v-09d9a952] {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: relative;\n}\n.file-wrapper[data-v-09d9a952]:hover {\n border-color: transparent;\n}\n.file-wrapper .actions[data-v-09d9a952] {\n text-align: right;\n width: 50px;\n}\n.file-wrapper .actions .show-actions[data-v-09d9a952] {\n cursor: pointer;\n padding: 12px 0 12px 6px;\n}\n.file-wrapper .actions .show-actions .icon-action[data-v-09d9a952] {\n margin-top: 9px;\n font-size: 0.875em;\n}\n.file-wrapper .actions .show-actions .icon-action circle[data-v-09d9a952] {\n color: inherit;\n}\n.file-wrapper .item-name[data-v-09d9a952] {\n display: block;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.file-wrapper .item-name .item-info[data-v-09d9a952] {\n display: block;\n line-height: 1;\n}\n.file-wrapper .item-name .item-shared[data-v-09d9a952] {\n display: inline-block;\n}\n.file-wrapper .item-name .item-shared .label[data-v-09d9a952] {\n font-size: 0.75em;\n font-weight: 400;\n color: #00BC7E;\n}\n.file-wrapper .item-name .item-shared .shared-icon[data-v-09d9a952] {\n vertical-align: middle;\n}\n.file-wrapper .item-name .item-shared .shared-icon path[data-v-09d9a952],\n.file-wrapper .item-name .item-shared .shared-icon circle[data-v-09d9a952],\n.file-wrapper .item-name .item-shared .shared-icon line[data-v-09d9a952] {\n color: inherit;\n}\n.file-wrapper .item-name .item-size[data-v-09d9a952],\n.file-wrapper .item-name .item-length[data-v-09d9a952] {\n font-size: 0.6875em;\n font-weight: 400;\n color: rgba(27, 37, 57, 0.7);\n}\n.file-wrapper .item-name .name[data-v-09d9a952] {\n white-space: nowrap;\n}\n.file-wrapper .item-name .name[contenteditable][data-v-09d9a952] {\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n.file-wrapper .item-name .name[contenteditable='true'][data-v-09d9a952]:hover {\n text-decoration: underline;\n}\n.file-wrapper .item-name .name[data-v-09d9a952] {\n color: #1B2539;\n font-size: 0.875em;\n font-weight: 700;\n max-height: 40px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.file-wrapper .item-name .name.actived[data-v-09d9a952] {\n max-height: initial;\n}\n.file-wrapper.selected .file-item[data-v-09d9a952] {\n background: #f4f5f6;\n}\n.file-wrapper .icon-item[data-v-09d9a952] {\n text-align: center;\n position: relative;\n flex: 0 0 50px;\n line-height: 0;\n margin-right: 20px;\n}\n.file-wrapper .icon-item .folder[data-v-09d9a952] {\n width: 52px;\n height: 52px;\n}\n.file-wrapper .icon-item .folder[data-v-09d9a952] .folder-icon {\n font-size: 3.25em;\n}\n.file-wrapper .icon-item .file-icon[data-v-09d9a952] {\n font-size: 2.8125em;\n}\n.file-wrapper .icon-item .file-icon path[data-v-09d9a952] {\n fill: #fafafc;\n stroke: #dfe0e8;\n stroke-width: 1;\n}\n.file-wrapper .icon-item .file-icon-text[data-v-09d9a952] {\n line-height: 1;\n top: 40%;\n font-size: 0.6875em;\n margin: 0 auto;\n position: absolute;\n text-align: center;\n left: 0;\n right: 0;\n font-weight: 600;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n max-width: 50px;\n max-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.file-wrapper .icon-item .image[data-v-09d9a952] {\n -o-object-fit: cover;\n object-fit: cover;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n max-width: 100%;\n border-radius: 5px;\n width: 50px;\n height: 50px;\n pointer-events: none;\n}\n.file-wrapper .file-item[data-v-09d9a952] {\n border: 2px dashed transparent;\n width: 100%;\n display: flex;\n align-items: center;\n padding: 12px 7px 12px 15px;\n}\n.file-wrapper .file-item.is-dragenter[data-v-09d9a952] {\n border-radius: 8px;\n}\n.file-wrapper .file-item.no-clicked[data-v-09d9a952] {\n background: white !important;\n}\n.file-wrapper .file-item.no-clicked .item-name .name[data-v-09d9a952] {\n color: #1B2539 !important;\n}\n.file-wrapper .file-item[data-v-09d9a952]:hover, .file-wrapper .file-item.is-clicked[data-v-09d9a952] {\n border-radius: 8px;\n background: #f4f5f6;\n}\n@media (prefers-color-scheme: dark) {\n.check-select .select-box[data-v-09d9a952] {\n background-color: #353940;\n}\n.check-select .select-box-active[data-v-09d9a952] {\n background-color: #00BC7E;\n}\n.check-select .select-box-active .icon[data-v-09d9a952] {\n stroke: white;\n}\n.file-wrapper .icon-item .file-icon path[data-v-09d9a952] {\n fill: #1e2024;\n stroke: #2f3c54;\n}\n.file-wrapper .file-item.no-clicked[data-v-09d9a952] {\n background: #141414 !important;\n}\n.file-wrapper .file-item.no-clicked .file-icon path[data-v-09d9a952] {\n fill: #1e2024 !important;\n stroke: #2F3C54;\n}\n.file-wrapper .file-item.no-clicked .item-name .name[data-v-09d9a952] {\n color: #bec6cf !important;\n}\n.file-wrapper .file-item[data-v-09d9a952]:hover, .file-wrapper .file-item.is-clicked[data-v-09d9a952] {\n background: #1e2024;\n}\n.file-wrapper .file-item:hover .file-icon path[data-v-09d9a952], .file-wrapper .file-item.is-clicked .file-icon path[data-v-09d9a952] {\n fill: #141414;\n}\n.file-wrapper .item-name .name[data-v-09d9a952] {\n color: #bec6cf;\n}\n.file-wrapper .item-name .item-size[data-v-09d9a952],\n .file-wrapper .item-name .item-length[data-v-09d9a952] {\n color: #7d858c;\n}\n}\n",""])},"1LGa":function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".info-wrapper[data-v-3aabe400] {\n padding-bottom: 20px;\n height: 100%;\n}\n.info-headline[data-v-3aabe400] {\n margin-bottom: 20px;\n border-radius: 8px;\n}\n.share-link[data-v-3aabe400] {\n display: flex;\n width: 100%;\n align-items: center;\n margin-top: 10px;\n}\n.share-link .lock-icon[data-v-3aabe400] {\n display: inline-block;\n width: 15px;\n margin-right: 9px;\n cursor: pointer;\n}\n.share-link .copy-share-link[data-v-3aabe400] {\n width: 100%;\n}\n",""])},"2zde":function(e,t,n){"use strict";var i=n("WHe5"),o=n("axtU"),a=n("5Swh"),r=n("L2JU");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l={name:"UserHeadline",components:{UserAvatar:a.a},computed:function(e){for(var t=1;t95}})},s=(n("RrM1"),n("KHd+")),c=Object(s.a)(r,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"user-avatar",class:this.size},[this.isIncompletePayment||this.isNearlyFullStorageCapacity?t("span",{staticClass:"notification"}):this._e(),this._v(" "),t("img",{attrs:{src:this.user.data.relationships.settings.data.attributes.avatar,alt:this.user.data.relationships.settings.data.attributes.name}})])}),[],!1,null,"8c5eec7c",null);t.a=c.exports},"6uj2":function(e,t,n){var i=n("cS1v");"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,o);i.locals&&(e.exports=i.locals)},Aqps:function(e,t,n){"use strict";var i=n("qGeY");n.n(i).a},BEfy:function(e,t,n){"use strict";var i=n("M71J");n.n(i).a},BNX6:function(e,t,n){"use strict";var i=n("lfSS");n.n(i).a},"Eu+P":function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".slide-from-left-move[data-v-2065efee] {\n transition: transform 300s ease;\n}\n.slide-from-left-enter-active[data-v-2065efee],\n.slide-from-right-enter-active[data-v-2065efee],\n.slide-from-left-leave-active[data-v-2065efee],\n.slide-from-right-leave-active[data-v-2065efee] {\n transition: all 300ms;\n}\n.slide-from-left-enter[data-v-2065efee],\n.slide-from-left-leave-to[data-v-2065efee] {\n opacity: 0;\n transform: translateX(-100%);\n}\n.slide-from-right-enter[data-v-2065efee],\n.slide-from-right-leave-to[data-v-2065efee] {\n opacity: 0;\n transform: translateX(100%);\n}\n.check-select[data-v-2065efee] {\n margin-right: 15px;\n margin-left: 6px;\n}\n.check-select .select-box[data-v-2065efee] {\n width: 20px;\n height: 20px;\n background-color: #e6e8eb;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 5px;\n}\n.check-select .select-box-active[data-v-2065efee] {\n background-color: #00BC7E;\n}\n.check-select .select-box-active .icon[data-v-2065efee] {\n stroke: white;\n}\n.file-wrapper[data-v-2065efee] {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: relative;\n}\n.file-wrapper[data-v-2065efee]:hover {\n border-color: transparent;\n}\n.file-wrapper .actions[data-v-2065efee] {\n text-align: right;\n width: 50px;\n}\n.file-wrapper .actions .show-actions[data-v-2065efee] {\n cursor: pointer;\n padding: 12px 0 12px 6px;\n}\n.file-wrapper .actions .show-actions .icon-action[data-v-2065efee] {\n margin-top: 9px;\n font-size: 0.875em;\n}\n.file-wrapper .actions .show-actions .icon-action circle[data-v-2065efee] {\n color: inherit;\n}\n.file-wrapper .item-name[data-v-2065efee] {\n display: block;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.file-wrapper .item-name .item-info[data-v-2065efee] {\n display: block;\n line-height: 1;\n}\n.file-wrapper .item-name .item-shared[data-v-2065efee] {\n display: inline-block;\n}\n.file-wrapper .item-name .item-shared .label[data-v-2065efee] {\n font-size: 0.75em;\n font-weight: 400;\n color: #00BC7E;\n}\n.file-wrapper .item-name .item-shared .shared-icon[data-v-2065efee] {\n vertical-align: middle;\n}\n.file-wrapper .item-name .item-shared .shared-icon path[data-v-2065efee],\n.file-wrapper .item-name .item-shared .shared-icon circle[data-v-2065efee],\n.file-wrapper .item-name .item-shared .shared-icon line[data-v-2065efee] {\n color: inherit;\n}\n.file-wrapper .item-name .item-size[data-v-2065efee],\n.file-wrapper .item-name .item-length[data-v-2065efee] {\n font-size: 0.6875em;\n font-weight: 400;\n color: rgba(27, 37, 57, 0.7);\n}\n.file-wrapper .item-name .name[data-v-2065efee] {\n white-space: nowrap;\n}\n.file-wrapper .item-name .name[contenteditable][data-v-2065efee] {\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n.file-wrapper .item-name .name[contenteditable='true'][data-v-2065efee]:hover {\n text-decoration: underline;\n}\n.file-wrapper .item-name .name[data-v-2065efee] {\n color: #1B2539;\n font-size: 0.875em;\n font-weight: 700;\n max-height: 40px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.file-wrapper .item-name .name.actived[data-v-2065efee] {\n max-height: initial;\n}\n.file-wrapper.selected .file-item[data-v-2065efee] {\n background: #f4f5f6;\n}\n.file-wrapper .icon-item[data-v-2065efee] {\n text-align: center;\n position: relative;\n flex: 0 0 50px;\n line-height: 0;\n margin-right: 20px;\n}\n.file-wrapper .icon-item .folder[data-v-2065efee] {\n width: 52px;\n height: 52px;\n}\n.file-wrapper .icon-item .folder[data-v-2065efee] .folder-icon {\n font-size: 3.25em;\n}\n.file-wrapper .icon-item .file-icon[data-v-2065efee] {\n font-size: 2.8125em;\n}\n.file-wrapper .icon-item .file-icon path[data-v-2065efee] {\n fill: #fafafc;\n stroke: #dfe0e8;\n stroke-width: 1;\n}\n.file-wrapper .icon-item .file-icon-text[data-v-2065efee] {\n line-height: 1;\n top: 40%;\n font-size: 0.6875em;\n margin: 0 auto;\n position: absolute;\n text-align: center;\n left: 0;\n right: 0;\n font-weight: 600;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n max-width: 50px;\n max-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.file-wrapper .icon-item .image[data-v-2065efee] {\n -o-object-fit: cover;\n object-fit: cover;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n max-width: 100%;\n border-radius: 5px;\n width: 50px;\n height: 50px;\n pointer-events: none;\n}\n.file-wrapper .file-item[data-v-2065efee] {\n border: 2px dashed transparent;\n width: 100%;\n display: flex;\n align-items: center;\n padding: 7px 7px 7px 15px;\n}\n.file-wrapper .file-item.is-dragenter[data-v-2065efee] {\n border-radius: 8px;\n}\n.file-wrapper .file-item.no-clicked[data-v-2065efee] {\n background: white !important;\n}\n.file-wrapper .file-item.no-clicked .item-name .name[data-v-2065efee] {\n color: #1B2539 !important;\n}\n.file-wrapper .file-item[data-v-2065efee]:hover, .file-wrapper .file-item.is-clicked[data-v-2065efee] {\n border-radius: 8px;\n background: #f4f5f6;\n}\n@media (prefers-color-scheme: dark) {\n.check-select .select-box[data-v-2065efee] {\n background-color: #353940;\n}\n.check-select .select-box-active[data-v-2065efee] {\n background-color: #00BC7E;\n}\n.check-select .select-box-active .icon[data-v-2065efee] {\n stroke: white;\n}\n.file-wrapper .icon-item .file-icon path[data-v-2065efee] {\n fill: #1e2024;\n stroke: #2f3c54;\n}\n.file-wrapper .file-item.no-clicked[data-v-2065efee] {\n background: #141414 !important;\n}\n.file-wrapper .file-item.no-clicked .file-icon path[data-v-2065efee] {\n fill: #1e2024 !important;\n stroke: #2F3C54;\n}\n.file-wrapper .file-item.no-clicked .item-name .name[data-v-2065efee] {\n color: #bec6cf !important;\n}\n.file-wrapper .file-item[data-v-2065efee]:hover, .file-wrapper .file-item.is-clicked[data-v-2065efee] {\n background: #1e2024;\n}\n.file-wrapper .file-item:hover .file-icon path[data-v-2065efee], .file-wrapper .file-item.is-clicked .file-icon path[data-v-2065efee] {\n fill: #141414;\n}\n.file-wrapper .item-name .name[data-v-2065efee] {\n color: #bec6cf;\n}\n.file-wrapper .item-name .item-size[data-v-2065efee],\n .file-wrapper .item-name .item-length[data-v-2065efee] {\n color: #7d858c;\n}\n}\n",""])},HJ1V:function(e,t,n){var i=n("qCeM");"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,o);i.locals&&(e.exports=i.locals)},IeT8:function(e,t,n){"use strict";var i=n("5Swh"),o=n("L2JU"),a=n("CjXH");function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c={name:"SidebarNavigation",components:{FileTextIcon:a.y,HardDriveIcon:a.E,SettingsIcon:a.Z,UserAvatar:i.a,Trash2Icon:a.db,PowerIcon:a.U,ShareIcon:a.ab,UserIcon:a.hb},computed:function(e){for(var t=1;t0&&this.$store.dispatch("deleteInvoice")},shareInvoice:function(){alert("Send Invoice")}}},g=(n("TvmT"),n("KHd+")),O=Object(g.a)(h,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"desktop-toolbar"}},[n("div",{staticClass:"toolbar-wrapper"},[n("div",{staticClass:"location"},[n("span",{staticClass:"location-title"},[e._v("\n\t\t\t\t\t"+e._s(e.directoryName)+"\n\t\t\t\t")])]),e._v(" "),n("ToolbarWrapper",[n("ToolbarGroup",{staticStyle:{"margin-left":"0"}},[n("SearchBar",{attrs:{placeholder:"Search your invoices..."},on:{"reset-query":function(t){e.query=""}},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}})],1),e._v(" "),n("ToolbarGroup",[n("PopoverWrapper",[n("ToolbarButton",{attrs:{source:"plus",action:e.$t("actions.create_folder")},nativeOn:{click:function(t){return t.stopPropagation(),e.createCreateMenu(t)}}}),e._v(" "),n("PopoverItem",{attrs:{name:"desktop-create-invoices"}},[n("OptionGroup",[n("Option",{attrs:{title:"Create Invoice",icon:"file-plus"}}),e._v(" "),n("Option",{attrs:{title:"Create Advance Invoice",icon:"clock"}})],1),e._v(" "),n("OptionGroup",[n("Option",{attrs:{title:"Create Client",icon:"user-plus"}})],1)],1)],1)],1),e._v(" "),e.$isMobile()?e._e():n("ToolbarGroup",[n("ToolbarButton",{class:{"is-inactive":e.canActiveInView},attrs:{source:"send",action:e.$t("actions.share")},nativeOn:{click:function(t){return e.shareInvoice(t)}}}),e._v(" "),n("ToolbarButton",{class:{"is-inactive":e.canActiveInView},attrs:{source:"rename",action:e.$t("actions.share")},nativeOn:{click:function(t){return e.shareInvoice(t)}}}),e._v(" "),n("ToolbarButton",{class:{"is-inactive":e.canActiveInView},attrs:{source:"trash",action:e.$t("actions.delete")},nativeOn:{click:function(t){return e.deleteInvoice(t)}}})],1),e._v(" "),n("ToolbarGroup",[n("PopoverWrapper",[n("ToolbarButton",{attrs:{source:"preview-sorting",action:e.$t("actions.sorting_view")},nativeOn:{click:function(t){return t.stopPropagation(),e.showSortingMenu(t)}}}),e._v(" "),n("PopoverItem",{attrs:{name:"desktop-sorting"}},[n("OptionGroup",[n("Option",{attrs:{title:e.$t("preview_sorting.sort_date"),icon:"calendar"},nativeOn:{click:function(t){return t.stopPropagation(),e.sort("created_at")}}}),e._v(" "),n("Option",{attrs:{title:e.$t("preview_sorting.sort_alphabet"),icon:"alphabet"},nativeOn:{click:function(t){return t.stopPropagation(),e.sort("name")}}})],1)],1)],1),e._v(" "),n("ToolbarButton",{class:{active:e.isVisibleSidebar},attrs:{action:e.$t("actions.info_panel"),source:"info"},nativeOn:{click:function(t){return e.$store.dispatch("fileInfoToggle")}}})],1)],1)],1)])}),[],!1,null,"6aac4ae9",null).exports,w=n("RXD1"),y=n("t5U/"),x=n("HtFH");function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P={name:"FileActionsMobile",components:{MobileActionButtonUpload:w.a,MobileActionButton:y.a,UploadProgress:x.a},computed:function(e){for(var t=1;t=i;a--)this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.entries[a])}else this.$store.commit("CLIPBOARD_CLEAR"),this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.item);else this.clipboard.some((function(e){return e.data.id===t.item.data.id}))?this.$store.commit("REMOVE_ITEM_FROM_CLIPBOARD",this.item):this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.item);!this.isMobileSelectMode&&this.$isMobile()&&v.a.$emit("file-preview:show"),this.isMobileSelectMode&&this.$isMobile()&&(this.clipboard.some((function(e){return e.data.id===t.item.data.id}))?this.$store.commit("REMOVE_ITEM_FROM_CLIPBOARD",this.item):this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.item))},showInvoice:function(){v.a.$emit("file-preview:show")}},created:function(){var e=this;v.a.$on("mobileSelecting:start",(function(){e.isMobileSelectMode=!0,e.$store.commit("CLIPBOARD_CLEAR")})),v.a.$on("mobileSelecting:stop",(function(){e.isMobileSelectMode=!1,e.$store.commit("CLIPBOARD_CLEAR")}))}},G=(n("KaJi"),Object(g.a)(z,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"file-wrapper",on:{mouseup:function(t){return t.stopPropagation(),e.clickedItem(t)},dblclick:e.showInvoice}},[n("div",{staticClass:"file-item",class:{"is-clicked":e.isClicked,"no-clicked":!e.isClicked&&e.$isMobile()}},[n("transition",{attrs:{name:"slide-from-left"}},[e.isMobileSelectMode?n("div",{staticClass:"check-select"},[n("div",{staticClass:"select-box",class:{"select-box-active":e.isClicked}},[e.isClicked?n("CheckIcon",{staticClass:"icon",attrs:{size:"17"}}):e._e()],1)]):e._e()]),e._v(" "),n("div",{staticClass:"item-name"},[n("b",{ref:e.item.id,staticClass:"name"},[e._v("\n "+e._s(e.item.clientName)+" - "+e._s(e.item.total)+"\n ")]),e._v(" "),n("div",{staticClass:"item-info"},[n("span",{staticClass:"item-size"},[e._v("\n\t\t\t\t\t\t"+e._s(e.item.created_at)+", n. "+e._s(e.item.invoiceNumber)+"\n\t\t\t\t\t")])])]),e._v(" "),n("transition",{attrs:{name:"slide-from-right"}},[e.$isMobile()&&!e.isMobileSelectMode?n("div",{staticClass:"actions"},[n("span",{staticClass:"show-actions",on:{mousedown:function(t){return t.stopPropagation(),e.showItemActions(t)}}},[n("MoreVerticalIcon",{staticClass:"icon-action text-theme",attrs:{size:"16"}})],1)]):e._e()])],1)])}),[],!1,null,"09d9a952",null).exports);function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H={name:"InvoiceItem",props:["item"],components:{MoreVerticalIcon:o.Q,CheckIcon:o.d},computed:function(e){for(var t=1;t=i;a--)this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.entries[a])}else this.$store.commit("CLIPBOARD_CLEAR"),this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.item);else this.clipboard.some((function(e){return e.data.id===t.item.data.id}))?this.$store.commit("REMOVE_ITEM_FROM_CLIPBOARD",this.item):this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.item);!this.isMobileSelectMode&&this.$isMobile()&&v.a.$emit("file-preview:show"),this.isMobileSelectMode&&this.$isMobile()&&(this.clipboard.some((function(e){return e.data.id===t.item.data.id}))?this.$store.commit("REMOVE_ITEM_FROM_CLIPBOARD",this.item):this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.item))},showInvoice:function(){v.a.$emit("file-preview:show")}},created:function(){var e=this;v.a.$on("mobileSelecting:start",(function(){e.isMobileSelectMode=!0,e.$store.commit("CLIPBOARD_CLEAR")})),v.a.$on("mobileSelecting:stop",(function(){e.isMobileSelectMode=!1,e.$store.commit("CLIPBOARD_CLEAR")}))}},N=(n("m49t"),Object(g.a)(H,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"file-wrapper",on:{mouseup:function(t){return t.stopPropagation(),e.clickedItem(t)},dblclick:e.showInvoice}},[n("div",{staticClass:"file-item",class:{"is-clicked":e.isClicked,"no-clicked":!e.isClicked&&e.$isMobile()}},[n("transition",{attrs:{name:"slide-from-left"}},[e.isMobileSelectMode?n("div",{staticClass:"check-select"},[n("div",{staticClass:"select-box",class:{"select-box-active":e.isClicked}},[e.isClicked?n("CheckIcon",{staticClass:"icon",attrs:{size:"17"}}):e._e()],1)]):e._e()]),e._v(" "),n("div",{staticClass:"icon-item"},[n("img",{staticClass:"image",attrs:{loading:"lazy",src:e.item.avatar,alt:e.item.name}})]),e._v(" "),n("div",{staticClass:"item-name"},[n("b",{ref:e.item.id,staticClass:"name"},[e._v("\n "+e._s(e.item.name)+"\n ")]),e._v(" "),n("div",{staticClass:"item-info"},[n("span",{staticClass:"item-size"},[e._v("\n\t\t\t\t\t\tCreated at: "+e._s(e.item.created_at)+", Total: "+e._s(e.item.totalNet)+"\n\t\t\t\t\t")])])]),e._v(" "),n("transition",{attrs:{name:"slide-from-right"}},[e.$isMobile()&&!e.isMobileSelectMode?n("div",{staticClass:"actions"},[n("span",{staticClass:"show-actions",on:{mousedown:function(t){return t.stopPropagation(),e.showItemActions(t)}}},[n("MoreVerticalIcon",{staticClass:"icon-action text-theme",attrs:{size:"16"}})],1)]):e._e()])],1)])}),[],!1,null,"2065efee",null).exports),q=n("XdRL"),X=n("j8uk");function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Y={name:"FilesContainer",components:{InvoiceActionsMobile:j,InvoiceInfoSidebar:R,EmptyFilePage:q.a,MobileToolbar:X.a,EmptyMessage:M.a,InvoiceItem:G,ClientItem:N,SearchBar:d.a},computed:function(e){for(var t=1;t0&&this.$checkPermission("master")||this.$checkPermission("editor"))&&this.$store.dispatch("deleteItem")},contextMenu:function(e,t){v.a.$emit("contextMenu:show",e,t)},filesContainerClick:function(){this.$store.commit("CLIPBOARD_CLEAR")}},created:function(){var e=this;v.a.$on("mobileSelecting:start",(function(){e.isMultiSelect=!0})),v.a.$on("mobileSelecting:stop",(function(){e.isMultiSelect=!1})),v.a.$on("fileItem:deselect",(function(){e.$store.commit("CLIPBOARD_CLEAR")})),this.$store.commit("STORE_CURRENT_FOLDER",{name:"Invoices",id:void 0,location:"regular-invoice"})}},W=(n("BNX6"),Object(g.a)(Y,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"file-content",attrs:{id:"file-content-id",tabindex:"-1"}},[n("div",{ref:"fileContainer",staticClass:"files-container",class:{"is-visible":e.isVisibleSidebar,"mobile-multi-select":e.isMultiSelect},on:{click:function(t){return t.target!==t.currentTarget?null:e.filesContainerClick(t)}}},[n("MobileToolbar"),e._v(" "),n("SearchBar",{staticClass:"mobile-search",attrs:{placeholder:e.$t("inputs.placeholder_search_files")},on:{"reset-query":function(t){e.query=""}},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}}),e._v(" "),n("InvoiceActionsMobile"),e._v(" "),n("div",{staticClass:"file-list-wrapper"},[n("transition-group",{staticClass:"file-list",attrs:{name:"file",tag:"section"}},[e._l(e.entries,(function(t){return"invoice"===t.type?n("InvoiceItem",{key:t.id,staticClass:"file-item",attrs:{item:t},nativeOn:{contextmenu:function(n){return n.preventDefault(),e.contextMenu(n,t)}}}):e._e()})),e._v(" "),e._l(e.entries,(function(t){return"client"===t.type?n("ClientItem",{key:t.id,staticClass:"file-item",attrs:{item:t},nativeOn:{contextmenu:function(n){return n.preventDefault(),e.contextMenu(n,t)}}}):e._e()}))],2)],1),e._v(" "),e.isSearching?e._e():n("EmptyFilePage"),e._v(" "),e.isSearching&&e.isEmpty?n("EmptyMessage",{attrs:{message:e.$t("messages.nothing_was_found"),icon:"eye-slash"}}):e._e()],1),e._v(" "),n("div",{staticClass:"file-info-container",class:{"is-visible":e.isVisibleSidebar}},[n("InvoiceInfoSidebar")],1)])}),[],!1,null,"ab1d345e",null).exports);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ee={name:"ContextMenu",components:{OptionGroup:l.a,Option:p.a},computed:function(e){for(var t=1;t1&&this.clipboard.includes(this.item))&&(this.clipboard.length<2||!this.clipboard.includes(this.item)||void 0)}}),data:function(){return{showFromPreview:!1,item:void 0,isVisible:!1,positionX:0,positionY:0}},methods:{downloadItem:function(){this.clipboard.length>1?this.$store.dispatch("downloadFiles"):this.$downloadFile(this.item.file_url,this.item.name+"."+this.item.mimetype)},showDetail:function(){this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.item),this.$store.dispatch("fileInfoToggle",!0)},deleteItem:function(){},closeAndResetContextMenu:function(){this.isVisible=!1,this.item=void 0},showFolderActionsMenu:function(){var e=document.getElementById("folder-actions");this.positionX=e.offsetLeft+16,this.positionY=e.offsetTop+30,this.isVisible=!0},showContextMenu:function(e){var t=50*document.getElementById("menu-list").getElementsByClassName("menu-option").length,n=document.getElementById("files-view"),i=n.getClientRects()[0],o=e.clientX-i.left,a=e.clientY-i.top;n.offsetHeight-a