Files
vuefilemanager/public/chunks/oasis/invoices/list.js
T
2021-05-17 08:03:54 +00:00

1 line
57 KiB
JavaScript
Vendored

(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{"0MkY":function(e,t,n){"use strict";var i=n("J4OL");n.n(i).a},"35z0":function(e,t,n){var i=n("LaVh");"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)},"3jZZ":function(e,t,n){var i=n("sjEU");"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)},"8Gay":function(e,t,n){"use strict";var i=n("DjGp");n.n(i).a},AjFi:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".slide-from-left-move[data-v-07eb9b03] {\n transition: transform 300s ease;\n}\n.slide-from-left-enter-active[data-v-07eb9b03],\n.slide-from-right-enter-active[data-v-07eb9b03],\n.slide-from-left-leave-active[data-v-07eb9b03],\n.slide-from-right-leave-active[data-v-07eb9b03] {\n transition: all 300ms;\n}\n.slide-from-left-enter[data-v-07eb9b03],\n.slide-from-left-leave-to[data-v-07eb9b03] {\n opacity: 0;\n transform: translateX(-100%);\n}\n.slide-from-right-enter[data-v-07eb9b03],\n.slide-from-right-leave-to[data-v-07eb9b03] {\n opacity: 0;\n transform: translateX(100%);\n}\n.check-select[data-v-07eb9b03] {\n margin-right: 15px;\n margin-left: 6px;\n}\n.check-select .select-box[data-v-07eb9b03] {\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-07eb9b03] {\n background-color: #00BC7E;\n}\n.check-select .select-box-active .icon[data-v-07eb9b03] {\n stroke: white;\n}\n.file-wrapper[data-v-07eb9b03] {\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-07eb9b03]:hover {\n border-color: transparent;\n}\n.file-wrapper .actions[data-v-07eb9b03] {\n text-align: right;\n width: 50px;\n}\n.file-wrapper .actions .show-actions[data-v-07eb9b03] {\n cursor: pointer;\n padding: 12px 0 12px 6px;\n}\n.file-wrapper .actions .show-actions .icon-action[data-v-07eb9b03] {\n margin-top: 9px;\n font-size: 0.875em;\n}\n.file-wrapper .actions .show-actions .icon-action circle[data-v-07eb9b03] {\n color: inherit;\n}\n.file-wrapper .item-name[data-v-07eb9b03] {\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-07eb9b03] {\n display: block;\n line-height: 1;\n}\n.file-wrapper .item-name .item-shared[data-v-07eb9b03] {\n display: inline-block;\n}\n.file-wrapper .item-name .item-shared .label[data-v-07eb9b03] {\n font-size: 0.75em;\n font-weight: 400;\n color: #00BC7E;\n}\n.file-wrapper .item-name .item-shared .shared-icon[data-v-07eb9b03] {\n vertical-align: middle;\n}\n.file-wrapper .item-name .item-shared .shared-icon path[data-v-07eb9b03],\n.file-wrapper .item-name .item-shared .shared-icon circle[data-v-07eb9b03],\n.file-wrapper .item-name .item-shared .shared-icon line[data-v-07eb9b03] {\n color: inherit;\n}\n.file-wrapper .item-name .item-size[data-v-07eb9b03],\n.file-wrapper .item-name .item-length[data-v-07eb9b03] {\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-07eb9b03] {\n white-space: nowrap;\n}\n.file-wrapper .item-name .name[contenteditable][data-v-07eb9b03] {\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-07eb9b03]:hover {\n text-decoration: underline;\n}\n.file-wrapper .item-name .name[data-v-07eb9b03] {\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-07eb9b03] {\n max-height: initial;\n}\n.file-wrapper.selected .file-item[data-v-07eb9b03] {\n background: #f4f5f6;\n}\n.file-wrapper .icon-item[data-v-07eb9b03] {\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-07eb9b03] {\n width: 52px;\n height: 52px;\n}\n.file-wrapper .icon-item .folder[data-v-07eb9b03] .folder-icon {\n font-size: 3.25em;\n}\n.file-wrapper .icon-item .file-icon[data-v-07eb9b03] {\n font-size: 2.8125em;\n}\n.file-wrapper .icon-item .file-icon path[data-v-07eb9b03] {\n fill: #fafafc;\n stroke: #dfe0e8;\n stroke-width: 1;\n}\n.file-wrapper .icon-item .file-icon-text[data-v-07eb9b03] {\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-07eb9b03] {\n -o-object-fit: contain;\n object-fit: contain;\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-07eb9b03] {\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-07eb9b03] {\n border-radius: 8px;\n}\n.file-wrapper .file-item.no-clicked[data-v-07eb9b03] {\n background: white !important;\n}\n.file-wrapper .file-item.no-clicked .item-name .name[data-v-07eb9b03] {\n color: #1B2539 !important;\n}\n.file-wrapper .file-item[data-v-07eb9b03]:hover, .file-wrapper .file-item.is-clicked[data-v-07eb9b03] {\n border-radius: 8px;\n background: #f4f5f6;\n}\n@media (prefers-color-scheme: dark) {\n.check-select .select-box[data-v-07eb9b03] {\n background-color: #353940;\n}\n.check-select .select-box-active[data-v-07eb9b03] {\n background-color: #00BC7E;\n}\n.check-select .select-box-active .icon[data-v-07eb9b03] {\n stroke: white;\n}\n.file-wrapper .icon-item .file-icon path[data-v-07eb9b03] {\n fill: #1e2024;\n stroke: #2f3c54;\n}\n.file-wrapper .file-item.no-clicked[data-v-07eb9b03] {\n background: #141414 !important;\n}\n.file-wrapper .file-item.no-clicked .file-icon path[data-v-07eb9b03] {\n fill: #1e2024 !important;\n stroke: #2F3C54;\n}\n.file-wrapper .file-item.no-clicked .item-name .name[data-v-07eb9b03] {\n color: #bec6cf !important;\n}\n.file-wrapper .file-item[data-v-07eb9b03]:hover, .file-wrapper .file-item.is-clicked[data-v-07eb9b03] {\n background: #1e2024;\n}\n.file-wrapper .file-item:hover .file-icon path[data-v-07eb9b03], .file-wrapper .file-item.is-clicked .file-icon path[data-v-07eb9b03] {\n fill: #141414;\n}\n.file-wrapper .item-name .name[data-v-07eb9b03] {\n color: #bec6cf;\n}\n.file-wrapper .item-name .item-size[data-v-07eb9b03],\n .file-wrapper .item-name .item-length[data-v-07eb9b03] {\n color: #7d858c;\n}\n}\n",""])},BNHs:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".button-enter-active[data-v-6d305b84],\n.button-leave-active[data-v-6d305b84] {\n transition: all 250ms;\n}\n.button-enter[data-v-6d305b84] {\n opacity: 0;\n transform: translateY(-50%);\n}\n.button-leave-to[data-v-6d305b84] {\n opacity: 0;\n transform: translateY(50%);\n}\n.button-leave-active[data-v-6d305b84] {\n position: absolute;\n}\n#mobile-actions-wrapper[data-v-6d305b84] {\n display: none;\n background: white;\n position: -webkit-sticky;\n position: sticky;\n top: 35px;\n z-index: 3;\n}\n.mobile-actions[data-v-6d305b84] {\n white-space: nowrap;\n overflow-x: auto;\n margin: 0 -15px;\n padding: 10px 0 10px 15px;\n}\n@media only screen and (max-width: 960px) {\n#mobile-actions-wrapper[data-v-6d305b84] {\n display: block;\n}\n}\n@media (prefers-color-scheme: dark) {\n#mobile-actions-wrapper[data-v-6d305b84] {\n background: #141414;\n}\n}\n",""])},CTZn:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".empty-page[data-v-2a4938d9] {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n margin-top: 20px;\n display: flex;\n align-items: center;\n}\n.empty-page .empty-state[data-v-2a4938d9] {\n margin: 0 auto;\n padding-left: 15px;\n padding-right: 15px;\n}\n.text-content[data-v-2a4938d9] {\n text-align: center;\n margin: 30px 0;\n}\n.text-content .title[data-v-2a4938d9] {\n font-size: 1.25em;\n color: #1B2539;\n font-weight: 700;\n margin: 0;\n}\n.text-content .description[data-v-2a4938d9] {\n font-size: 0.8125em;\n color: rgba(27, 37, 57, 0.7);\n margin-bottom: 20px;\n display: block;\n}\n.text-content .button[data-v-2a4938d9] {\n margin-left: auto;\n margin-right: auto;\n}\n@media (prefers-color-scheme: dark) {\n.text-content .title[data-v-2a4938d9] {\n color: #bec6cf;\n}\n.text-content .description[data-v-2a4938d9] {\n color: #7d858c;\n}\n}\n",""])},DjGp:function(e,t,n){var i=n("AjFi");"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)},G7Q9:function(e,t,n){"use strict";var i=n("35z0");n.n(i).a},J4OL:function(e,t,n){var i=n("CTZn");"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)},LaVh:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".is-inactive[data-v-61e6e9c8] {\n opacity: 0.25;\n pointer-events: none;\n}\n.toolbar-wrapper[data-v-61e6e9c8] {\n padding-top: 10px;\n padding-bottom: 10px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: relative;\n z-index: 2;\n}\n.location[data-v-61e6e9c8] {\n align-items: center;\n cursor: pointer;\n display: flex;\n}\n.location .icon-back[data-v-61e6e9c8] {\n transition: 150ms all ease;\n pointer-events: none;\n margin-right: 6px;\n flex-shrink: 0;\n opacity: 0.15;\n}\n.location .icon-back.is-active[data-v-61e6e9c8] {\n opacity: 1;\n pointer-events: initial;\n}\n.location .location-title[data-v-61e6e9c8] {\n font-size: 0.9375em;\n line-height: 1;\n font-weight: 700;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: #1B2539;\n}\n.location .location-more[data-v-61e6e9c8] {\n margin-left: 6px;\n padding: 1px 4px;\n line-height: 0;\n border-radius: 3px;\n transition: 150ms all ease;\n}\n.location .location-more svg circle[data-v-61e6e9c8] {\n transition: 150ms all ease;\n}\n.location .location-more[data-v-61e6e9c8]:hover {\n background: #f4f5f6;\n}\n.location .location-more:hover svg circle[data-v-61e6e9c8] {\n color: inherit;\n}\n.toolbar-position[data-v-61e6e9c8] {\n text-align: center;\n}\n.toolbar-position span[data-v-61e6e9c8] {\n font-size: 1.0625em;\n font-weight: 600;\n}\n@media only screen and (max-width: 1024px) {\n.location .location-title[data-v-61e6e9c8] {\n max-width: 120px;\n}\n.toolbar-tools .button[data-v-61e6e9c8] {\n margin-left: 0;\n height: 40px;\n width: 40px;\n}\n}\n@media only screen and (max-width: 960px) {\n#desktop-toolbar[data-v-61e6e9c8] {\n display: none;\n}\n}\n@media (prefers-color-scheme: dark) {\n.location .location-title[data-v-61e6e9c8] {\n color: #bec6cf;\n}\n.location .location-more[data-v-61e6e9c8]:hover {\n background: #1e2024;\n}\n}\n",""])},PNbf:function(e,t,n){var i=n("ru6N");"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)},QwaD:function(e,t,n){"use strict";var i=n("axtU"),o=n("uFbu"),a=n("CjXH"),r={name:"InvoiceSortingOptions",components:{OptionGroup:i.a,ArrowUpIcon:a.b,Option:o.a},computed:{arrowForCreatedAtField:function(){if("created_at"===this.filter.field)return"DESC"===this.filter.sort?"up":"down"},arrowForTotalNetField:function(){if("total_net"===this.filter.field)return"DESC"===this.filter.sort?"up":"down"},arrowForInvoiceNumberField:function(){if("invoice_number"===this.filter.field)return"DESC"===this.filter.sort?"up":"down"}},data:function(){return{filter:{sort:"DESC",field:"created_at"}}},methods:{sort:function(e){this.filter.field=e,"DESC"===this.filter.sort?this.filter.sort="ASC":"ASC"===this.filter.sort&&(this.filter.sort="DESC"),localStorage.setItem("sorting-invoices",JSON.stringify({sort:this.filter.sort,field:this.filter.field})),this.$store.commit("UPDATE_INVOICE_SORTING"),this.$getInvoiceDataByLocation()}},mounted:function(){var e=JSON.parse(localStorage.getItem("sorting-invoices"));this.filter.sort=e?e.sort:"DESC",this.filter.field=e?e.field:"created_at"}},s=n("KHd+"),c=Object(s.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.$isThisLocation(["regular-invoice","advance-invoice"])?n("OptionGroup",[n("Option",{attrs:{arrow:e.arrowForCreatedAtField,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:{arrow:e.arrowForTotalNetField,title:e.$t("in.sort_by_net"),icon:"dollar"},nativeOn:{click:function(t){return t.stopPropagation(),e.sort("total_net")}}}),e._v(" "),n("Option",{attrs:{arrow:e.arrowForInvoiceNumberField,title:e.$t("in.sort_by_invoice_number"),icon:"file-text"},nativeOn:{click:function(t){return t.stopPropagation(),e.sort("invoice_number")}}})],1):e._e(),e._v(" "),e.$isThisLocation("clients")?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):e._e()],1)}),[],!1,null,null,null);t.a=c.exports},RQg9:function(e,t,n){"use strict";var i=n("kXDk");n.n(i).a},Ryfy:function(e,t,n){"use strict";var i=n("U2bg");n.n(i).a},U2bg:function(e,t,n){var i=n("nlQl");"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)},Wuw1:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".no-options[data-v-6de2cd4f] .text-label {\n color: rgba(27, 37, 57, 0.7) !important;\n}\n[data-v-6de2cd4f] .no-options:hover {\n background: transparent;\n}\n.no-options[data-v-6de2cd4f] path,\n.no-options[data-v-6de2cd4f] line,\n.no-options[data-v-6de2cd4f] circle {\n stroke: rgba(27, 37, 57, 0.7) !important;\n}\n.contextmenu[data-v-6de2cd4f] {\n min-width: 250px;\n position: absolute;\n z-index: 99;\n box-shadow: 0 7px 25px 1px rgba(0, 0, 0, 0.12);\n background: white;\n border-radius: 8px;\n overflow: hidden;\n}\n.contextmenu.showed[data-v-6de2cd4f] {\n display: block;\n}\n.menu-options[data-v-6de2cd4f] {\n list-style: none;\n width: 100%;\n margin: 0;\n padding: 0;\n}\n@media (prefers-color-scheme: dark) {\n.contextmenu[data-v-6de2cd4f] {\n background: #1e2024;\n}\n.no-options[data-v-6de2cd4f] .text-label {\n color: #7d858c !important;\n}\n[data-v-6de2cd4f] .no-options:hover {\n background: transparent;\n}\n.no-options[data-v-6de2cd4f] path,\n .no-options[data-v-6de2cd4f] line,\n .no-options[data-v-6de2cd4f] circle {\n stroke: #7d858c !important;\n}\n}\n",""])},"Ymy/":function(e,t,n){"use strict";var i=n("3jZZ");n.n(i).a},"a+pn":function(e,t,n){var i=n("BNHs");"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)},bfSx:function(e,t,n){var i=n("n/Pk");"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)},"hjs+":function(e,t,n){"use strict";n.r(t);var i=n("QwaD"),o=n("CjXH"),a=n("R+IU"),r=n("UUIA"),s=n("0gRs"),c=n("JilC"),l=n("axtU"),p=n("8uc6"),d=n("nSi/"),f=n("uFbu"),m=n("L2JU"),u=n("xCqy");function v(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 b(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:"InvoiceDesktopToolbar",components:{InvoiceSortingOptions:i.a,MoreHorizontalIcon:o.R,ChevronLeftIcon:o.h,ToolbarWrapper:r.a,PopoverWrapper:a.a,ToolbarButton:s.a,ToolbarGroup:c.a,PopoverItem:p.a,SearchBar:d.a,OptionGroup:l.a,Option:f.a},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(m.b)(["isVisibleSidebar","currentFolder","clipboard"]),{directoryName:function(){return this.currentFolder?this.currentFolder.name:this.$t("in.nav.invoices")},canActiveInView:function(){return!this.$isThisLocation(["regular-invoice","advance-invoice","clients"])||0===this.clipboard.length},searchPlaceholder:function(){return this.currentFolder&&["regular-invoice","advance-invoice"].includes(this.currentFolder.location)?this.$t("inputs.placeholder_search_invoices"):this.$t("inputs.placeholder_search_clients")}}),data:function(){return{query:""}},watch:{query:function(e){this.$searchInvoices(e)}},methods:{createInvoice:function(e){this.$router.push({name:"CreateInvoice",query:{type:e}})},createClient:function(){this.$router.push({name:"CreateClient"})},showSortingMenu:function(){u.a.$emit("popover:open","desktop-sorting")},createMenu:function(){u.a.$emit("popover:open","desktop-create-invoices")},deleteItem:function(){this.$isThisLocation(["regular-invoice","advance-invoice"])&&this.$deleteInvoice(this.clipboard[0]),this.$isThisLocation("clients")&&this.$deleteClient(this.clipboard[0])},editItem:function(){this.$isThisLocation(["regular-invoice","advance-invoice"])&&this.$editInvoice(this.clipboard[0]),this.$isThisLocation("clients")&&this.$goToCompany(this.clipboard[0])}}},g=(n("G7Q9"),n("KHd+")),w=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:e.searchPlaceholder},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.createMenu(t)}}}),e._v(" "),n("PopoverItem",{attrs:{name:"desktop-create-invoices"}},[n("OptionGroup",[n("Option",{attrs:{title:e.$t("in_editor.page.create_regular_invoice"),icon:"file-plus"},nativeOn:{click:function(t){return t.stopPropagation(),e.createInvoice("regular-invoice")}}}),e._v(" "),n("Option",{attrs:{title:e.$t("in_editor.page.create_advance_invoice"),icon:"clock"},nativeOn:{click:function(t){return t.stopPropagation(),e.createInvoice("advance-invoice")}}})],1),e._v(" "),n("OptionGroup",[n("Option",{attrs:{title:e.$t("in.create.client"),icon:"user-plus"},nativeOn:{click:function(t){return e.createClient(t)}}})],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(e.clipboard[0])}}}),e._v(" "),n("ToolbarButton",{class:{"is-inactive":e.canActiveInView},attrs:{source:"rename",action:e.$t("actions.share")},nativeOn:{click:function(t){return e.editItem(t)}}}),e._v(" "),n("ToolbarButton",{class:{"is-inactive":e.canActiveInView},attrs:{source:"trash",action:e.$t("actions.delete")},nativeOn:{click:function(t){return e.deleteItem(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",side:"left"}},[n("InvoiceSortingOptions")],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,"61e6e9c8",null).exports,_=n("RXD1"),x=n("t5U/"),O=n("HtFH");function y(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 k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I={name:"InvoiceActionsMobile",components:{MobileActionButtonUpload:_.a,MobileActionButton:x.a,UploadProgress:O.a},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(m.b)(["currentFolder"]),{directoryName:function(){return this.currentFolder?this.currentFolder.name:this.$t("in.nav.invoices")}}),data:function(){return{isSelectMode:!1}},methods:{showLocations:function(){u.a.$emit("mobile-menu:show","invoice-filter")},createButton:function(){u.a.$emit("mobile-menu:show","invoice-create")},showViewOptions:function(){u.a.$emit("mobile-menu:show","invoice-sorting")},selectAll:function(){this.$store.commit("ADD_ALL_ITEMS_TO_CLIPBOARD")},deselectAll:function(){this.$store.commit("CLIPBOARD_CLEAR")},enableMultiSelectMode:function(){this.isSelectMode=!0,u.a.$emit("mobileSelecting:start")},disableMultiSelectMode:function(){this.isSelectMode=!1,u.a.$emit("mobileSelecting:stop")}},mounted:function(){var e=this;u.a.$on("mobileSelecting:stop",(function(){return e.isSelectMode=!1}))}},C=(n("pdVR"),Object(g.a)(I,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"mobile-actions-wrapper"}},[n("div",{staticClass:"mobile-actions"},[n("MobileActionButton",{attrs:{icon:"filter"},nativeOn:{click:function(t){return e.showLocations(t)}}},[e._v("\n "+e._s(e.directoryName)+"\n ")]),e._v(" "),n("MobileActionButton",{attrs:{icon:"file-plus"},nativeOn:{click:function(t){return e.createButton(t)}}},[e._v("\n "+e._s(e.$t("create"))+"\n ")]),e._v(" "),n("MobileActionButton",{attrs:{icon:"th-list"},nativeOn:{click:function(t){return e.showViewOptions(t)}}},[e._v("\n "+e._s(e.$t("in.button_sorting"))+"\n ")])],1)])}),[],!1,null,"6d305b84",null).exports),$=n("Alu5"),P=n("Jc/C"),j=n("C40w"),E=n("GjAa"),D=n("PTF1"),M=n("gy3V"),S=n("VPMc");function B(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 T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A={name:"InvoiceInfoSidebar",components:{FilePreviewDetail:$.a,ImageMetaData:P.a,EmptyMessage:j.a,TitlePreview:E.a,ListInfoItem:M.a,UnlockIcon:o.ib,CopyInput:D.a,Edit2Icon:o.t,LockIcon:o.N,ListInfo:S.a},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(m.b)(["permissionOptions","clipboard"]),{isInvoice:function(){return this.clipboard[0]&&"invoice"===this.clipboard[0].type},isClient:function(){return this.clipboard[0]&&"client"===this.clipboard[0].type},isEmpty:function(){return 0===this.clipboard.length},isSingleFile:function(){return 1===this.clipboard.length},singleFile:function(){return this.clipboard[0]},canShowMetaData:function(){return this.clipboard[0].metadata&&this.clipboard[0].metadata.ExifImageWidth},isLocked:function(){return this.clipboard[0].shared.is_protected},sharedInfo:function(){var e=this,t=this.permissionOptions.find((function(t){return t.value===e.clipboard[0].shared.permission}));return t?this.$t(t.label):this.$t("shared.can_download")}}),methods:{openShareOptions:function(){u.a.$emit("popup:open",{name:"share-edit",item:this.clipboard[0]})},openMoveOptions:function(){u.a.$emit("popup:open",{name:"move",item:this.clipboard})}}},L=(n("xw19"),Object(g.a)(A,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"info-wrapper"},[e.isEmpty?n("EmptyMessage",{attrs:{message:e.$t("messages.nothing_to_preview"),icon:"eye-off"}}):e._e(),e._v(" "),e.isClient?n("div",[e.isSingleFile&&!e.isEmpty?n("div",{staticClass:"info-headline"},[n("TitlePreview",{attrs:{icon:"user",title:e.singleFile.name,subtitle:"Client"}})],1):e._e(),e._v(" "),e.isSingleFile&&!e.isEmpty?n("ListInfo",[n("ListInfoItem",{attrs:{title:e.$t("in_editor.client_email"),content:e.singleFile.email}}),e._v(" "),n("ListInfoItem",{attrs:{title:e.$t("in.total_net"),content:e.singleFile.totalNet}}),e._v(" "),n("ListInfoItem",{attrs:{title:e.$t("in.total_invoices"),content:e.singleFile.totalInvoices+" "+e.$t("global.pcs")}}),e._v(" "),n("ListInfoItem",{attrs:{title:e.$t("file_detail.created_at"),content:e.singleFile.created_at}})],1):e._e()],1):e._e(),e._v(" "),e.isInvoice?n("div",[e.isSingleFile||e.isEmpty?e._e():n("div",{staticClass:"info-headline"},[n("TitlePreview",{attrs:{icon:"check-square",title:e.$t("file_detail.selected_multiple"),subtitle:this.clipboard.length+" "+e.$tc("file_detail.items",this.clipboard.length)}})],1),e._v(" "),e.isSingleFile&&!e.isEmpty?n("div",{staticClass:"info-headline"},[n("TitlePreview",{attrs:{icon:"file-text",title:e.singleFile.client_name,subtitle:e.$t("invoice_title")+" - "+e.singleFile.invoice_number}})],1):e._e(),e._v(" "),e.isSingleFile&&!e.isEmpty?n("ListInfo",[n("ListInfoItem",{attrs:{title:e.$t("invoice_number"),content:e.singleFile.invoice_number}}),e._v(" "),n("ListInfoItem",{attrs:{title:e.$t("total"),content:e.singleFile.total}}),e._v(" "),n("ListInfoItem",{attrs:{title:e.$t("client"),content:e.singleFile.client_name}}),e._v(" "),n("ListInfoItem",{attrs:{title:e.$t("file_detail.created_at"),content:e.singleFile.created_at}})],1):e._e()],1):e._e()],1)}),[],!1,null,"154e1446",null).exports),R=n("Nv84"),F=n("zTYo");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 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 N={name:"EmptyFilePage",props:["title","description"],components:{ButtonBase:R.a,Spinner:F.a},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(m.b)(["currentFolder","isLoading","entries","user"]),{isEmpty:function(){return this.entries&&0==this.entries.length},buttonTitle:function(){return this.$isThisLocation("regular-invoice")?this.$t("in_editor.page.create_regular_invoice"):this.$t("in_editor.page.create_advance_invoice")},hasBillingProfile:function(){return this.user&&this.user.data.attributes.has_billing_profile}}),methods:{createInvoice:function(){this.$router.push({name:"CreateInvoice",query:{type:this.currentFolder.location}})},createClient:function(){this.$router.push({name:"CreateClient"})},createBillingProfile:function(){this.$router.push({name:"BillingProfileSetUp"})}}},G=(n("0MkY"),Object(g.a)(N,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isLoading||e.isEmpty?n("div",{staticClass:"empty-page"},[n("div",{staticClass:"empty-state"},[e.hasBillingProfile&&e.$isThisLocation(["regular-invoice","advance-invoice"])&&!e.isLoading?n("div",{staticClass:"text-content"},[n("h1",{staticClass:"title"},[e._v("\n\t\t\t\t\t"+e._s(e.$t("in.empty.invoice_page_title"))+"\n\t\t\t\t")]),e._v(" "),n("p",{staticClass:"description"},[e._v("\n\t\t\t\t\t"+e._s(e.$t("in.empty.invoice_page_description"))+"\n\t\t\t\t")]),e._v(" "),n("ButtonBase",{staticClass:"button",attrs:{"button-style":"theme"},nativeOn:{click:function(t){return e.createInvoice(t)}}},[e._v("\n\t\t\t\t\t"+e._s(e.buttonTitle)+"\n\t\t\t\t")])],1):e._e(),e._v(" "),e.hasBillingProfile&&e.$isThisLocation("clients")&&!e.isLoading?n("div",{staticClass:"text-content"},[n("h1",{staticClass:"title"},[e._v("\n\t\t\t\t\t"+e._s(e.$t("in.empty.client_page_title"))+"\n\t\t\t\t")]),e._v(" "),n("p",{staticClass:"description"},[e._v("\n\t\t\t\t\t"+e._s(e.$t("in.empty.invoice_page_description"))+"\n\t\t\t\t")]),e._v(" "),n("ButtonBase",{staticClass:"button",attrs:{"button-style":"theme"},nativeOn:{click:function(t){return e.createClient(t)}}},[e._v("\n\t\t\t\t\t"+e._s(e.$t("in.form.create_client"))+"\n\t\t\t\t")])],1):e._e(),e._v(" "),e.hasBillingProfile||e.isLoading?e._e():n("div",{staticClass:"text-content"},[n("h1",{staticClass:"title"},[e._v("\n\t\t\t\t\t"+e._s(e.$t("in.empty.bill_profile_title"))+"\n\t\t\t\t")]),e._v(" "),n("p",{staticClass:"description"},[e._v("\n\t\t\t\t\t"+e._s(e.$t("in.empty.bill_profile_description"))+"\n\t\t\t\t")]),e._v(" "),n("ButtonBase",{staticClass:"button",attrs:{"button-style":"theme"},nativeOn:{click:function(t){return e.createBillingProfile(t)}}},[e._v("\n\t\t\t\t\t"+e._s(e.$t("in.button.setup_bill_profile"))+"\n\t\t\t\t")])],1),e._v(" "),e.isLoading?n("div",{staticClass:"text-content"},[n("Spinner")],1):e._e()])]):e._e()}),[],!1,null,"2a4938d9",null).exports);function q(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 U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X={name:"InvoiceItem",props:["item"],components:{MoreVerticalIcon:o.S,CheckIcon:o.e},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(m.b)(["FilePreviewType","clipboard","entries"]),{isClicked:function(){var e=this;return this.clipboard.some((function(t){return t.id===e.item.id}))}}),data:function(){return{isMobileSelectMode:!1}},methods:{showItemActions:function(){this.$store.commit("CLIPBOARD_CLEAR"),this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.item),u.a.$emit("mobile-menu:show","invoice-menu")},clickedItem:function(e){var t=this;if(!this.$isMobile())if(!e.ctrlKey&&!e.metaKey||e.shiftKey)if(e.shiftKey){var n=this.entries.indexOf(this.clipboard[this.clipboard.length-1]),i=this.entries.indexOf(this.item);if(e.ctrlKey||e.metaKey||this.$store.commit("CLIPBOARD_CLEAR"),n<i)for(var o=n;o<=i;o++)this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.entries[o]);else for(var a=n;a>=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()&&(this.$store.commit("CLIPBOARD_CLEAR"),this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.item),u.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(){u.a.$emit("file-preview:show")}},created:function(){var e=this;u.a.$on("mobileSelecting:start",(function(){e.isMobileSelectMode=!0,e.$store.commit("CLIPBOARD_CLEAR")})),u.a.$on("mobileSelecting:stop",(function(){e.isMobileSelectMode=!1,e.$store.commit("CLIPBOARD_CLEAR")}))}},K=(n("Ymy/"),Object(g.a)(X,(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.client_name)+" - "+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)+", "+e._s(e.$t("in.n-abbreviation"))+" "+e._s(e.item.invoice_number)+"\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,"0efb7529",null).exports);function Y(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 H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J={name:"ClientItem",props:["item"],components:{MoreVerticalIcon:o.S,CheckIcon:o.e},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){H(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(m.b)(["FilePreviewType","clipboard","entries"]),{isClicked:function(){var e=this;return this.clipboard.some((function(t){return t.id===e.item.id}))}}),data:function(){return{isMobileSelectMode:!1}},methods:{showItemActions:function(){this.$store.commit("CLIPBOARD_CLEAR"),this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.item),u.a.$emit("mobile-menu:show","client-menu")},clickedItem:function(e){var t=this;if(!this.$isMobile())if(!e.ctrlKey&&!e.metaKey||e.shiftKey)if(e.shiftKey){var n=this.entries.indexOf(this.clipboard[this.clipboard.length-1]),i=this.entries.indexOf(this.item);if(e.ctrlKey||e.metaKey||this.$store.commit("CLIPBOARD_CLEAR"),n<i)for(var o=n;o<=i;o++)this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.entries[o]);else for(var a=n;a>=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()&&this.$router.push({name:"ClientDetail",params:{id:this.item.id}}),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))},showClient:function(){this.$router.push({name:"ClientDetail",params:{id:this.item.id}})}},created:function(){var e=this;u.a.$on("mobileSelecting:start",(function(){e.isMobileSelectMode=!0,e.$store.commit("CLIPBOARD_CLEAR")})),u.a.$on("mobileSelecting:stop",(function(){e.isMobileSelectMode=!1,e.$store.commit("CLIPBOARD_CLEAR")}))}},Q=(n("8Gay"),Object(g.a)(J,(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.showClient}},[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\t"+e._s(e.$t("file_detail.created_at"))+": "+e._s(e.item.created_at)+", "+e._s(e.$t("global.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,"07eb9b03",null).exports);function W(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 Z(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:"FilesContainer",components:{InvoiceActionsMobile:C,InvoiceInfoSidebar:L,EmptyInvoicePage:G,MobileToolbar:n("j8uk").a,EmptyMessage:j.a,InvoiceItem:K,ClientItem:Q,SearchBar:d.a},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){Z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(m.b)(["filesInQueueTotal","isVisibleSidebar","FilePreviewType","currentFolder","isSearching","clipboard","isLoading","entries","user"]),{searchPlaceholder:function(){return this.currentFolder&&["regular-invoice","advance-invoice"].includes(this.currentFolder.location)?this.$t("inputs.placeholder_search_invoices"):this.$t("inputs.placeholder_search_clients")},isEmpty:function(){return 0==this.entries.length},draggedItems:function(){return this.clipboard.includes(this.draggingId)?this.clipboard.includes(this.draggingId)?this.clipboard:void 0:[this.draggingId]},hasBillingProfile:function(){return this.user&&this.user.data.attributes.has_billing_profile}}),watch:{query:function(e){this.$searchInvoices(e)}},data:function(){return{draggingId:void 0,isDragging:!1,isMultiSelect:!1,query:""}},methods:{deleteItems:function(){(this.clipboard.length>0&&this.$checkPermission("master")||this.$checkPermission("editor"))&&this.$store.dispatch("deleteItem")},contextMenu:function(e,t){u.a.$emit("contextMenu:show",e,t)},filesContainerClick:function(){this.$store.commit("CLIPBOARD_CLEAR")}},created:function(){var e=this;u.a.$on("mobileSelecting:start",(function(){e.isMultiSelect=!0})),u.a.$on("mobileSelecting:stop",(function(){e.isMultiSelect=!1})),u.a.$on("fileItem:deselect",(function(){e.$store.commit("CLIPBOARD_CLEAR")}))}},te=(n("Ryfy"),Object(g.a)(ee,(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(" "),e.hasBillingProfile?n("SearchBar",{staticClass:"mobile-search",attrs:{placeholder:e.searchPlaceholder},on:{"reset-query":function(t){e.query=""}},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}}):e._e(),e._v(" "),e.hasBillingProfile?n("InvoiceActionsMobile"):e._e(),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("EmptyInvoicePage"),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,"ba85c656",null).exports);function ne(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 ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oe={name:"ContextMenu",components:{OptionGroup:l.a,Option:f.a},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(m.b)(["clipboard"]),{isInvoice:function(){return this.clipboard[0]&&"invoice"===this.clipboard[0].type},isClient:function(){return this.clipboard[0]&&"client"===this.clipboard[0].type}}),data:function(){return{item:void 0,isVisible:!1,positionX:0,positionY:0}},methods:{closeAndResetContextMenu:function(){this.isVisible=!1,this.item=void 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<t?this.positionY=a-t:this.positionY=a,n.offsetWidth-o<190?this.positionX=o-190:this.positionX=o,this.isVisible=!0}},created:function(){var e=this;u.a.$on("contextMenu:show",(function(t,n){e.item=n,setTimeout((function(){return e.showContextMenu(t,n)}),10)})),u.a.$on("unClick",(function(){return e.closeAndResetContextMenu()}))}},ae=(n("RQg9"),{name:"ContentInvoiceView",components:{InvoiceDesktopToolbar:w,InvoiceContextMenu:Object(g.a)(oe,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],ref:"contextmenu",staticClass:"contextmenu",style:{top:e.positionY+"px",left:e.positionX+"px"},on:{click:e.closeAndResetContextMenu}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isInvoice,expression:"isInvoice"}],staticClass:"menu-options",attrs:{id:"menu-list"}},[n("OptionGroup",{staticClass:"menu-option-group"},[n("Option",{attrs:{title:e.$t("in.menu.edit_invoice"),icon:"rename"},nativeOn:{click:function(t){return e.$editInvoice(e.clipboard[0])}}}),e._v(" "),n("Option",{attrs:{title:e.$t("in.menu.send_invoice"),icon:"send"},nativeOn:{click:function(t){return e.$shareInvoice(e.clipboard[0])}}}),e._v(" "),n("Option",{attrs:{title:e.$t("in.menu.show_company"),icon:"user"},nativeOn:{click:function(t){return e.$goToCompany(e.clipboard[0])}}}),e._v(" "),n("Option",{attrs:{title:e.$t("context_menu.delete"),icon:"trash"},nativeOn:{click:function(t){return e.$deleteInvoice(e.clipboard[0])}}})],1),e._v(" "),n("OptionGroup",[n("Option",{attrs:{title:e.$t("context_menu.detail"),icon:"detail"},nativeOn:{click:function(t){return e.showDetail(t)}}}),e._v(" "),n("Option",{attrs:{title:e.$t("context_menu.download"),icon:"download"},nativeOn:{click:function(t){return e.$downloadInvoice(e.clipboard[0])}}})],1)],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isClient,expression:"isClient"}],staticClass:"menu-options",attrs:{id:"menu-list"}},[n("OptionGroup",{staticClass:"menu-option-group"},[n("Option",{attrs:{title:e.$t("in.menu.edit"),icon:"rename"},nativeOn:{click:function(t){return e.$goToCompany(e.clipboard[0])}}}),e._v(" "),n("Option",{attrs:{title:e.$t("context_menu.delete"),icon:"trash"},nativeOn:{click:function(t){return e.$deleteClient(e.clipboard[0])}}})],1),e._v(" "),n("OptionGroup",[n("Option",{attrs:{title:e.$t("in.menu.show_company"),icon:"user"},nativeOn:{click:function(t){return e.$goToCompany(e.clipboard[0])}}}),e._v(" "),n("Option",{attrs:{title:e.$t("context_menu.detail"),icon:"detail"},nativeOn:{click:function(t){return e.$showSidebarPreview(e.clipboard[0])}}})],1)],1)])}),[],!1,null,"6de2cd4f",null).exports,InvoiceBrowser:te},methods:{contextMenu:function(e,t){u.a.$emit("contextMenu:show",e,t)}}}),re=(n("tDLa"),Object(g.a)(ae,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"files-view"},on:{"!contextmenu":function(t){return t.preventDefault(),e.contextMenu(t,void 0)}}},[n("InvoiceDesktopToolbar"),e._v(" "),n("InvoiceContextMenu"),e._v(" "),n("InvoiceBrowser")],1)}),[],!1,null,null,null));t.default=re.exports},kXDk:function(e,t,n){var i=n("Wuw1");"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)},"n/Pk":function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".info-wrapper[data-v-154e1446] {\n padding-bottom: 20px;\n height: 100%;\n}\n.info-headline[data-v-154e1446] {\n margin-bottom: 20px;\n border-radius: 8px;\n}\n.share-link[data-v-154e1446] {\n display: flex;\n width: 100%;\n align-items: center;\n margin-top: 10px;\n}\n.share-link .lock-icon[data-v-154e1446] {\n display: inline-block;\n width: 15px;\n margin-right: 9px;\n cursor: pointer;\n}\n.share-link .copy-share-link[data-v-154e1446] {\n width: 100%;\n}\n",""])},nlQl:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".file-list .dragged[data-v-ba85c656] .is-dragenter {\n border: 2px solid transparent;\n}\n.dragged[data-v-ba85c656] {\n opacity: 0.5;\n}\n#multi-selected[data-v-ba85c656] {\n position: fixed;\n pointer-events: none;\n z-index: 100;\n}\n.mobile-multi-select[data-v-ba85c656] {\n bottom: 50px !important;\n top: 0px;\n}\n.button-upload[data-v-ba85c656] {\n display: block;\n text-align: center;\n margin: 20px 0;\n}\n.mobile-search[data-v-ba85c656] {\n display: none;\n margin-bottom: 10px;\n margin-top: 10px;\n}\n.file-content[data-v-ba85c656] {\n display: flex;\n}\n.file-content.is-dragging[data-v-ba85c656] {\n transform: scale(0.99);\n}\n.files-container[data-v-ba85c656] {\n overflow-x: hidden;\n overflow-y: auto;\n flex: 0 0 100%;\n transition: 150ms all ease;\n position: relative;\n scroll-behavior: smooth;\n}\n.files-container.is-visible[data-v-ba85c656] {\n flex: 0 1 100%;\n}\n.files-container .file-list.grid[data-v-ba85c656] {\n display: grid;\n grid-template-columns: repeat(auto-fill, 180px);\n justify-content: space-evenly;\n}\n.file-info-container[data-v-ba85c656] {\n flex: 0 0 300px;\n padding-left: 20px;\n overflow: auto;\n}\n.file-move[data-v-ba85c656] {\n transition: transform 0.6s;\n}\n.file-enter-active[data-v-ba85c656] {\n transition: all 300ms ease;\n}\n.file-leave-active[data-v-ba85c656] {\n transition: all 0ms;\n}\n.file-enter[data-v-ba85c656], .file-leave-to[data-v-ba85c656] {\n opacity: 0;\n transform: translateX(-20px);\n}\n@media only screen and (min-width: 960px) {\n.file-content[data-v-ba85c656] {\n position: absolute;\n top: 72px;\n left: 15px;\n right: 15px;\n bottom: 0;\n transition: 0.3s all ease;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.file-content.is-offset[data-v-ba85c656] {\n margin-top: 50px;\n}\n}\n@media only screen and (max-width: 960px) {\n.file-info-container[data-v-ba85c656] {\n display: none;\n}\n.mobile-search[data-v-ba85c656] {\n display: block;\n}\n.file-content[data-v-ba85c656] {\n position: absolute;\n top: 0px;\n left: 15px;\n right: 15px;\n bottom: 0;\n transition: 0.3s all ease;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.file-content.is-offset[data-v-ba85c656] {\n margin-top: 50px;\n}\n}\n@media only screen and (max-width: 690px) {\n.files-container[data-v-ba85c656] {\n padding-left: 15px;\n padding-right: 15px;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n position: fixed;\n overflow-y: auto;\n}\n.files-container .file-list.grid[data-v-ba85c656] {\n grid-template-columns: repeat(auto-fill, 120px);\n}\n.file-content[data-v-ba85c656] {\n position: absolute;\n top: 0;\n left: 0px;\n right: 0px;\n bottom: 0;\n transition: 0.3s all ease;\n}\n.file-content.is-offset[data-v-ba85c656] {\n margin-top: 50px;\n}\n.mobile-search[data-v-ba85c656] {\n margin-bottom: 0;\n}\n.file-info-container[data-v-ba85c656] {\n display: none;\n}\n}\n",""])},pdVR:function(e,t,n){"use strict";var i=n("a+pn");n.n(i).a},ru6N:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,"#files-view {\n font-family: 'Nunito', sans-serif;\n font-size: 16px;\n width: 100%;\n height: 100%;\n position: relative;\n min-width: 320px;\n overflow-x: hidden;\n padding-left: 15px;\n padding-right: 15px;\n overflow-y: hidden;\n}\n@media only screen and (max-width: 690px) {\n#files-view {\n padding-left: 0;\n padding-right: 0;\n}\n}\n",""])},sjEU:function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,".slide-from-left-move[data-v-0efb7529] {\n transition: transform 300s ease;\n}\n.slide-from-left-enter-active[data-v-0efb7529],\n.slide-from-right-enter-active[data-v-0efb7529],\n.slide-from-left-leave-active[data-v-0efb7529],\n.slide-from-right-leave-active[data-v-0efb7529] {\n transition: all 300ms;\n}\n.slide-from-left-enter[data-v-0efb7529],\n.slide-from-left-leave-to[data-v-0efb7529] {\n opacity: 0;\n transform: translateX(-100%);\n}\n.slide-from-right-enter[data-v-0efb7529],\n.slide-from-right-leave-to[data-v-0efb7529] {\n opacity: 0;\n transform: translateX(100%);\n}\n.check-select[data-v-0efb7529] {\n margin-right: 15px;\n margin-left: 6px;\n}\n.check-select .select-box[data-v-0efb7529] {\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-0efb7529] {\n background-color: #00BC7E;\n}\n.check-select .select-box-active .icon[data-v-0efb7529] {\n stroke: white;\n}\n.file-wrapper[data-v-0efb7529] {\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-0efb7529]:hover {\n border-color: transparent;\n}\n.file-wrapper .actions[data-v-0efb7529] {\n text-align: right;\n width: 50px;\n}\n.file-wrapper .actions .show-actions[data-v-0efb7529] {\n cursor: pointer;\n padding: 12px 0 12px 6px;\n}\n.file-wrapper .actions .show-actions .icon-action[data-v-0efb7529] {\n margin-top: 9px;\n font-size: 0.875em;\n}\n.file-wrapper .actions .show-actions .icon-action circle[data-v-0efb7529] {\n color: inherit;\n}\n.file-wrapper .item-name[data-v-0efb7529] {\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-0efb7529] {\n display: block;\n line-height: 1;\n}\n.file-wrapper .item-name .item-shared[data-v-0efb7529] {\n display: inline-block;\n}\n.file-wrapper .item-name .item-shared .label[data-v-0efb7529] {\n font-size: 0.75em;\n font-weight: 400;\n color: #00BC7E;\n}\n.file-wrapper .item-name .item-shared .shared-icon[data-v-0efb7529] {\n vertical-align: middle;\n}\n.file-wrapper .item-name .item-shared .shared-icon path[data-v-0efb7529],\n.file-wrapper .item-name .item-shared .shared-icon circle[data-v-0efb7529],\n.file-wrapper .item-name .item-shared .shared-icon line[data-v-0efb7529] {\n color: inherit;\n}\n.file-wrapper .item-name .item-size[data-v-0efb7529],\n.file-wrapper .item-name .item-length[data-v-0efb7529] {\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-0efb7529] {\n white-space: nowrap;\n}\n.file-wrapper .item-name .name[contenteditable][data-v-0efb7529] {\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-0efb7529]:hover {\n text-decoration: underline;\n}\n.file-wrapper .item-name .name[data-v-0efb7529] {\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-0efb7529] {\n max-height: initial;\n}\n.file-wrapper.selected .file-item[data-v-0efb7529] {\n background: #f4f5f6;\n}\n.file-wrapper .icon-item[data-v-0efb7529] {\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-0efb7529] {\n width: 52px;\n height: 52px;\n}\n.file-wrapper .icon-item .folder[data-v-0efb7529] .folder-icon {\n font-size: 3.25em;\n}\n.file-wrapper .icon-item .file-icon[data-v-0efb7529] {\n font-size: 2.8125em;\n}\n.file-wrapper .icon-item .file-icon path[data-v-0efb7529] {\n fill: #fafafc;\n stroke: #dfe0e8;\n stroke-width: 1;\n}\n.file-wrapper .icon-item .file-icon-text[data-v-0efb7529] {\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-0efb7529] {\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-0efb7529] {\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-0efb7529] {\n border-radius: 8px;\n}\n.file-wrapper .file-item.no-clicked[data-v-0efb7529] {\n background: white !important;\n}\n.file-wrapper .file-item.no-clicked .item-name .name[data-v-0efb7529] {\n color: #1B2539 !important;\n}\n.file-wrapper .file-item[data-v-0efb7529]:hover, .file-wrapper .file-item.is-clicked[data-v-0efb7529] {\n border-radius: 8px;\n background: #f4f5f6;\n}\n@media (prefers-color-scheme: dark) {\n.check-select .select-box[data-v-0efb7529] {\n background-color: #353940;\n}\n.check-select .select-box-active[data-v-0efb7529] {\n background-color: #00BC7E;\n}\n.check-select .select-box-active .icon[data-v-0efb7529] {\n stroke: white;\n}\n.file-wrapper .icon-item .file-icon path[data-v-0efb7529] {\n fill: #1e2024;\n stroke: #2f3c54;\n}\n.file-wrapper .file-item.no-clicked[data-v-0efb7529] {\n background: #141414 !important;\n}\n.file-wrapper .file-item.no-clicked .file-icon path[data-v-0efb7529] {\n fill: #1e2024 !important;\n stroke: #2F3C54;\n}\n.file-wrapper .file-item.no-clicked .item-name .name[data-v-0efb7529] {\n color: #bec6cf !important;\n}\n.file-wrapper .file-item[data-v-0efb7529]:hover, .file-wrapper .file-item.is-clicked[data-v-0efb7529] {\n background: #1e2024;\n}\n.file-wrapper .file-item:hover .file-icon path[data-v-0efb7529], .file-wrapper .file-item.is-clicked .file-icon path[data-v-0efb7529] {\n fill: #141414;\n}\n.file-wrapper .item-name .name[data-v-0efb7529] {\n color: #bec6cf;\n}\n.file-wrapper .item-name .item-size[data-v-0efb7529],\n .file-wrapper .item-name .item-length[data-v-0efb7529] {\n color: #7d858c;\n}\n}\n",""])},tDLa:function(e,t,n){"use strict";var i=n("PNbf");n.n(i).a},xw19:function(e,t,n){"use strict";var i=n("bfSx");n.n(i).a}}]);