Files
vuefilemanager/public/chunks/oasis/invoices/list.js
T
2021-05-19 13:35:56 +00:00

1 line
53 KiB
JavaScript
Vendored

(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{"0MkY":function(e,t,i){"use strict";i("J4OL")},"3jZZ":function(e,t,i){var n=i("sjEU");"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(n,o);n.locals&&(e.exports=n.locals)},"8Gay":function(e,t,i){"use strict";i("DjGp")},A2eD:function(e,t,i){"use strict";i("oxHN")},AjFi:function(e,t,i){(e.exports=i("I1BE")(!1)).push([e.i,".slide-from-left-move[data-v-07eb9b03]{transition:transform 300s ease}.slide-from-left-enter-active[data-v-07eb9b03],.slide-from-left-leave-active[data-v-07eb9b03],.slide-from-right-enter-active[data-v-07eb9b03],.slide-from-right-leave-active[data-v-07eb9b03]{transition:all .3s}.slide-from-left-enter[data-v-07eb9b03],.slide-from-left-leave-to[data-v-07eb9b03]{opacity:0;transform:translateX(-100%)}.slide-from-right-enter[data-v-07eb9b03],.slide-from-right-leave-to[data-v-07eb9b03]{opacity:0;transform:translateX(100%)}.check-select[data-v-07eb9b03]{margin-right:15px;margin-left:6px}.check-select .select-box[data-v-07eb9b03]{width:20px;height:20px;background-color:#e6e8eb;display:flex;justify-content:center;align-items:center;border-radius:5px}.check-select .select-box-active[data-v-07eb9b03]{background-color:#00bc7e}.check-select .select-box-active .icon[data-v-07eb9b03]{stroke:#fff}.file-wrapper[data-v-07eb9b03]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative}.file-wrapper[data-v-07eb9b03]:hover{border-color:transparent}.file-wrapper .actions[data-v-07eb9b03]{text-align:right;width:50px}.file-wrapper .actions .show-actions[data-v-07eb9b03]{cursor:pointer;padding:12px 0 12px 6px}.file-wrapper .actions .show-actions .icon-action[data-v-07eb9b03]{margin-top:9px;font-size:.875em}.file-wrapper .actions .show-actions .icon-action circle[data-v-07eb9b03]{color:inherit}.file-wrapper .item-name[data-v-07eb9b03]{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-wrapper .item-name .item-info[data-v-07eb9b03]{display:block;line-height:1}.file-wrapper .item-name .item-shared[data-v-07eb9b03]{display:inline-block}.file-wrapper .item-name .item-shared .label[data-v-07eb9b03]{font-size:.75em;font-weight:400;color:#00bc7e}.file-wrapper .item-name .item-shared .shared-icon[data-v-07eb9b03]{vertical-align:middle}.file-wrapper .item-name .item-shared .shared-icon circle[data-v-07eb9b03],.file-wrapper .item-name .item-shared .shared-icon line[data-v-07eb9b03],.file-wrapper .item-name .item-shared .shared-icon path[data-v-07eb9b03]{color:inherit}.file-wrapper .item-name .item-length[data-v-07eb9b03],.file-wrapper .item-name .item-size[data-v-07eb9b03]{font-size:.6875em;font-weight:400;color:rgba(27,37,57,.7)}.file-wrapper .item-name .name[data-v-07eb9b03]{white-space:nowrap}.file-wrapper .item-name .name[contenteditable][data-v-07eb9b03]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.file-wrapper .item-name .name[contenteditable=true][data-v-07eb9b03]:hover{text-decoration:underline}.file-wrapper .item-name .name[data-v-07eb9b03]{color:#1b2539;font-size:.875em;font-weight:700;max-height:40px;overflow:hidden;text-overflow:ellipsis}.file-wrapper .item-name .name.actived[data-v-07eb9b03]{max-height:none}.file-wrapper.selected .file-item[data-v-07eb9b03]{background:#f4f5f6}.file-wrapper .icon-item[data-v-07eb9b03]{text-align:center;position:relative;flex:0 0 50px;line-height:0;margin-right:20px}.file-wrapper .icon-item .folder[data-v-07eb9b03]{width:52px;height:52px}.file-wrapper .icon-item .folder[data-v-07eb9b03] .folder-icon{font-size:3.25em}.file-wrapper .icon-item .file-icon[data-v-07eb9b03]{font-size:2.8125em}.file-wrapper .icon-item .file-icon path[data-v-07eb9b03]{fill:#fafafc;stroke:#dfe0e8;stroke-width:1}.file-wrapper .icon-item .file-icon-text[data-v-07eb9b03]{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-07eb9b03],.file-wrapper .icon-item .image[data-v-07eb9b03]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.file-wrapper .icon-item .image[data-v-07eb9b03]{-o-object-fit:contain;object-fit:contain;max-width:100%;border-radius:5px;width:50px;height:50px;pointer-events:none}.file-wrapper .file-item[data-v-07eb9b03]{border:2px dashed transparent;width:100%;display:flex;align-items:center;padding:7px 7px 7px 15px}.file-wrapper .file-item.is-dragenter[data-v-07eb9b03]{border-radius:8px}.file-wrapper .file-item.no-clicked[data-v-07eb9b03]{background:#fff!important}.file-wrapper .file-item.no-clicked .item-name .name[data-v-07eb9b03]{color:#1b2539!important}.file-wrapper .file-item.is-clicked[data-v-07eb9b03],.file-wrapper .file-item[data-v-07eb9b03]:hover{border-radius:8px;background:#f4f5f6}@media (prefers-color-scheme:dark){.check-select .select-box[data-v-07eb9b03]{background-color:#353940}.check-select .select-box-active[data-v-07eb9b03]{background-color:#00bc7e}.check-select .select-box-active .icon[data-v-07eb9b03]{stroke:#fff}.file-wrapper .icon-item .file-icon path[data-v-07eb9b03]{fill:#1e2024;stroke:#2f3c54}.file-wrapper .file-item.no-clicked[data-v-07eb9b03]{background:#141414!important}.file-wrapper .file-item.no-clicked .file-icon path[data-v-07eb9b03]{fill:#1e2024!important;stroke:#2f3c54}.file-wrapper .file-item.no-clicked .item-name .name[data-v-07eb9b03]{color:#bec6cf!important}.file-wrapper .file-item.is-clicked[data-v-07eb9b03],.file-wrapper .file-item[data-v-07eb9b03]:hover{background:#1e2024}.file-wrapper .file-item.is-clicked .file-icon path[data-v-07eb9b03],.file-wrapper .file-item:hover .file-icon path[data-v-07eb9b03]{fill:#141414}.file-wrapper .item-name .name[data-v-07eb9b03]{color:#bec6cf}.file-wrapper .item-name .item-length[data-v-07eb9b03],.file-wrapper .item-name .item-size[data-v-07eb9b03]{color:#7d858c}}",""])},BNHs:function(e,t,i){(e.exports=i("I1BE")(!1)).push([e.i,".button-enter-active[data-v-6d305b84],.button-leave-active[data-v-6d305b84]{transition:all .25s}.button-enter[data-v-6d305b84]{opacity:0;transform:translateY(-50%)}.button-leave-to[data-v-6d305b84]{opacity:0;transform:translateY(50%)}.button-leave-active[data-v-6d305b84]{position:absolute}#mobile-actions-wrapper[data-v-6d305b84]{display:none;background:#fff;position:sticky;top:35px;z-index:3}.mobile-actions[data-v-6d305b84]{white-space:nowrap;overflow-x:auto;margin:0 -15px;padding:10px 0 10px 15px}@media only screen and (max-width:960px){#mobile-actions-wrapper[data-v-6d305b84]{display:block}}@media (prefers-color-scheme:dark){#mobile-actions-wrapper[data-v-6d305b84]{background:#141414}}",""])},CTZn:function(e,t,i){(e.exports=i("I1BE")(!1)).push([e.i,".empty-page[data-v-2a4938d9]{position:absolute;left:0;right:0;bottom:0;top:0;margin-top:20px;display:flex;align-items:center}.empty-page .empty-state[data-v-2a4938d9]{margin:0 auto;padding-left:15px;padding-right:15px}.text-content[data-v-2a4938d9]{text-align:center;margin:30px 0}.text-content .title[data-v-2a4938d9]{font-size:1.25em;color:#1b2539;font-weight:700;margin:0}.text-content .description[data-v-2a4938d9]{font-size:.8125em;color:rgba(27,37,57,.7);margin-bottom:20px;display:block}.text-content .button[data-v-2a4938d9]{margin-left:auto;margin-right:auto}@media (prefers-color-scheme:dark){.text-content .title[data-v-2a4938d9]{color:#bec6cf}.text-content .description[data-v-2a4938d9]{color:#7d858c}}",""])},DjGp:function(e,t,i){var n=i("AjFi");"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(n,o);n.locals&&(e.exports=n.locals)},DuK0:function(e,t,i){(e.exports=i("I1BE")(!1)).push([e.i,".is-inactive[data-v-c047da72]{opacity:.25;pointer-events:none}.toolbar-wrapper[data-v-c047da72]{padding-top:10px;padding-bottom:10px;justify-content:space-between;position:relative;z-index:2}.location[data-v-c047da72],.toolbar-wrapper[data-v-c047da72]{display:flex;align-items:center}.location[data-v-c047da72]{cursor:pointer}.location .icon-back[data-v-c047da72]{transition:all .15s ease;pointer-events:none;margin-right:6px;flex-shrink:0;opacity:.15}.location .icon-back.is-active[data-v-c047da72]{opacity:1;pointer-events:auto}.location .location-title[data-v-c047da72]{font-size:.9375em;line-height:1;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1b2539}.location .location-more[data-v-c047da72]{margin-left:6px;padding:1px 4px;line-height:0;border-radius:3px;transition:all .15s ease}.location .location-more svg circle[data-v-c047da72]{transition:all .15s ease}.location .location-more[data-v-c047da72]:hover{background:#f4f5f6}.location .location-more:hover svg circle[data-v-c047da72]{color:inherit}.toolbar-position[data-v-c047da72]{text-align:center}.toolbar-position span[data-v-c047da72]{font-size:1.0625em;font-weight:600}@media only screen and (max-width:1024px){.location .location-title[data-v-c047da72]{max-width:120px}.toolbar-tools .button[data-v-c047da72]{margin-left:0;height:40px;width:40px}}@media only screen and (max-width:960px){#desktop-toolbar[data-v-c047da72]{display:none}}@media (prefers-color-scheme:dark){.location .location-title[data-v-c047da72]{color:#bec6cf}.location .location-more[data-v-c047da72]:hover{background:#1e2024}}",""])},J4OL:function(e,t,i){var n=i("CTZn");"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(n,o);n.locals&&(e.exports=n.locals)},PNbf:function(e,t,i){var n=i("ru6N");"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(n,o);n.locals&&(e.exports=n.locals)},QwaD:function(e,t,i){"use strict";var n=i("axtU"),o=i("uFbu"),a=i("CjXH"),r={name:"InvoiceSortingOptions",components:{OptionGroup:n.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=i("KHd+"),c=Object(s.a)(r,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.$isThisLocation(["regular-invoice","advance-invoice"])?i("OptionGroup",[i("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(" "),i("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(" "),i("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")?i("OptionGroup",[i("Option",{attrs:{title:e.$t("preview_sorting.sort_date"),icon:"calendar"},nativeOn:{click:function(t){return t.stopPropagation(),e.sort("created_at")}}}),e._v(" "),i("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,i){"use strict";i("kXDk")},Ryfy:function(e,t,i){"use strict";i("U2bg")},U2bg:function(e,t,i){var n=i("nlQl");"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(n,o);n.locals&&(e.exports=n.locals)},Wuw1:function(e,t,i){(e.exports=i("I1BE")(!1)).push([e.i,".no-options[data-v-6de2cd4f] .text-label{color:rgba(27,37,57,.7)!important}[data-v-6de2cd4f] .no-options:hover{background:transparent}.no-options[data-v-6de2cd4f] circle,.no-options[data-v-6de2cd4f] line,.no-options[data-v-6de2cd4f] path{stroke:rgba(27,37,57,.7)!important}.contextmenu[data-v-6de2cd4f]{min-width:250px;position:absolute;z-index:99;box-shadow:0 7px 25px 1px rgba(0,0,0,.12);background:#fff;border-radius:8px;overflow:hidden}.contextmenu.showed[data-v-6de2cd4f]{display:block}.menu-options[data-v-6de2cd4f]{list-style:none;width:100%;margin:0;padding:0}@media (prefers-color-scheme:dark){.contextmenu[data-v-6de2cd4f]{background:#1e2024}.no-options[data-v-6de2cd4f] .text-label{color:#7d858c!important}[data-v-6de2cd4f] .no-options:hover{background:transparent}.no-options[data-v-6de2cd4f] circle,.no-options[data-v-6de2cd4f] line,.no-options[data-v-6de2cd4f] path{stroke:#7d858c!important}}",""])},"Ymy/":function(e,t,i){"use strict";i("3jZZ")},"a+pn":function(e,t,i){var n=i("BNHs");"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(n,o);n.locals&&(e.exports=n.locals)},bfSx:function(e,t,i){var n=i("n/Pk");"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(n,o);n.locals&&(e.exports=n.locals)},"hjs+":function(e,t,i){"use strict";i.r(t);var n=i("QwaD"),o=i("CjXH"),a=i("R+IU"),r=i("UUIA"),s=i("0gRs"),c=i("JilC"),l=i("axtU"),p=i("8uc6"),d=i("nSi/"),f=i("uFbu"),m=i("L2JU"),u=i("xCqy");function b(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function v(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?b(Object(i),!0).forEach((function(t){h(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):b(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function h(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var g={name:"InvoiceDesktopToolbar",components:{InvoiceSortingOptions:n.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:v(v({},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])}}},w=(i("A2eD"),i("KHd+")),_=Object(w.a)(g,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"desktop-toolbar"}},[i("div",{staticClass:"toolbar-wrapper"},[i("div",{staticClass:"location"},[i("span",{staticClass:"location-title"},[e._v("\n\t\t\t\t\t"+e._s(e.directoryName)+"\n\t\t\t\t")])]),e._v(" "),i("ToolbarWrapper",[i("ToolbarGroup",{staticStyle:{"margin-left":"0"}},[i("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(" "),i("ToolbarGroup",[i("PopoverWrapper",[i("ToolbarButton",{attrs:{source:"plus",action:e.$t("actions.create_folder")},nativeOn:{click:function(t){return t.stopPropagation(),e.createMenu(t)}}}),e._v(" "),i("PopoverItem",{attrs:{name:"desktop-create-invoices",side:"left"}},[i("OptionGroup",[i("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(" "),i("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(" "),i("OptionGroup",[i("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():i("ToolbarGroup",[i("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(" "),i("ToolbarButton",{class:{"is-inactive":e.canActiveInView},attrs:{source:"rename",action:e.$t("actions.share")},nativeOn:{click:function(t){return e.editItem(t)}}}),e._v(" "),i("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(" "),i("ToolbarGroup",[i("PopoverWrapper",[i("ToolbarButton",{attrs:{source:"preview-sorting",action:e.$t("actions.sorting_view")},nativeOn:{click:function(t){return t.stopPropagation(),e.showSortingMenu(t)}}}),e._v(" "),i("PopoverItem",{attrs:{name:"desktop-sorting",side:"left"}},[i("InvoiceSortingOptions")],1)],1),e._v(" "),i("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,"c047da72",null).exports,x=i("RXD1"),O=i("t5U/"),y=i("HtFH");function k(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function I(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?k(Object(i),!0).forEach((function(t){C(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):k(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function C(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var $={name:"InvoiceActionsMobile",components:{MobileActionButtonUpload:x.a,MobileActionButton:O.a,UploadProgress:y.a},computed:I(I({},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}))}},P=(i("pdVR"),Object(w.a)($,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"mobile-actions-wrapper"}},[i("div",{staticClass:"mobile-actions"},[i("MobileActionButton",{attrs:{icon:"filter"},nativeOn:{click:function(t){return e.showLocations(t)}}},[e._v("\n "+e._s(e.directoryName)+"\n ")]),e._v(" "),i("MobileActionButton",{attrs:{icon:"file-plus"},nativeOn:{click:function(t){return e.createButton(t)}}},[e._v("\n "+e._s(e.$t("create"))+"\n ")]),e._v(" "),i("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),j=i("Alu5"),D=i("Jc/C"),M=i("C40w"),E=i("GjAa"),S=i("PTF1"),A=i("gy3V"),T=i("VPMc");function L(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function B(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){R(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 R(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var F={name:"InvoiceInfoSidebar",components:{FilePreviewDetail:j.a,ImageMetaData:D.a,EmptyMessage:M.a,TitlePreview:E.a,ListInfoItem:A.a,UnlockIcon:o.ib,CopyInput:S.a,Edit2Icon:o.t,LockIcon:o.N,ListInfo:T.a},computed:B(B({},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})}}},z=(i("xw19"),Object(w.a)(F,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"info-wrapper"},[e.isEmpty?i("EmptyMessage",{attrs:{message:e.$t("messages.nothing_to_preview"),icon:"eye-off"}}):e._e(),e._v(" "),e.isClient?i("div",[e.isSingleFile&&!e.isEmpty?i("div",{staticClass:"info-headline"},[i("TitlePreview",{attrs:{icon:"user",title:e.singleFile.name,subtitle:"Client"}})],1):e._e(),e._v(" "),e.isSingleFile&&!e.isEmpty?i("ListInfo",[i("ListInfoItem",{attrs:{title:e.$t("in_editor.client_email"),content:e.singleFile.email}}),e._v(" "),i("ListInfoItem",{attrs:{title:e.$t("in.total_net"),content:e.singleFile.totalNet}}),e._v(" "),i("ListInfoItem",{attrs:{title:e.$t("in.total_invoices"),content:e.singleFile.totalInvoices+" "+e.$t("global.pcs")}}),e._v(" "),i("ListInfoItem",{attrs:{title:e.$t("file_detail.created_at"),content:e.singleFile.created_at}})],1):e._e()],1):e._e(),e._v(" "),e.isInvoice?i("div",[e.isSingleFile||e.isEmpty?e._e():i("div",{staticClass:"info-headline"},[i("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?i("div",{staticClass:"info-headline"},[i("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?i("ListInfo",[i("ListInfoItem",{attrs:{title:e.$t("invoice_number"),content:e.singleFile.invoice_number}}),e._v(" "),i("ListInfoItem",{attrs:{title:e.$t("total"),content:e.singleFile.total}}),e._v(" "),i("ListInfoItem",{attrs:{title:e.$t("client"),content:e.singleFile.client_name}}),e._v(" "),i("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),V=i("Nv84"),N=i("zTYo");function G(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function q(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?G(Object(i),!0).forEach((function(t){U(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):G(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function U(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var K={name:"EmptyFilePage",props:["title","description"],components:{ButtonBase:V.a,Spinner:N.a},computed:q(q({},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"})}}},X=(i("0MkY"),Object(w.a)(K,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.isLoading||e.isEmpty?i("div",{staticClass:"empty-page"},[i("div",{staticClass:"empty-state"},[e.hasBillingProfile&&e.$isThisLocation(["regular-invoice","advance-invoice"])&&!e.isLoading?i("div",{staticClass:"text-content"},[i("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(" "),i("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(" "),i("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?i("div",{staticClass:"text-content"},[i("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(" "),i("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(" "),i("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():i("div",{staticClass:"text-content"},[i("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(" "),i("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(" "),i("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?i("div",{staticClass:"text-content"},[i("Spinner")],1):e._e()])]):e._e()}),[],!1,null,"2a4938d9",null).exports);function H(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Y(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?H(Object(i),!0).forEach((function(t){J(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):H(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function J(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var W={name:"InvoiceItem",props:["item"],components:{MoreVerticalIcon:o.S,CheckIcon:o.e},computed:Y(Y({},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 i=this.entries.indexOf(this.clipboard[this.clipboard.length-1]),n=this.entries.indexOf(this.item);if(e.ctrlKey||e.metaKey||this.$store.commit("CLIPBOARD_CLEAR"),i<n)for(var o=i;o<=n;o++)this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.entries[o]);else for(var a=i;a>=n;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")}))}},Q=(i("Ymy/"),Object(w.a)(W,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"file-wrapper",on:{mouseup:function(t){return t.stopPropagation(),e.clickedItem(t)},dblclick:e.showInvoice}},[i("div",{staticClass:"file-item",class:{"is-clicked":e.isClicked,"no-clicked":!e.isClicked&&e.$isMobile()}},[i("transition",{attrs:{name:"slide-from-left"}},[e.isMobileSelectMode?i("div",{staticClass:"check-select"},[i("div",{staticClass:"select-box",class:{"select-box-active":e.isClicked}},[e.isClicked?i("CheckIcon",{staticClass:"icon",attrs:{size:"17"}}):e._e()],1)]):e._e()]),e._v(" "),i("div",{staticClass:"item-name"},[i("b",{ref:e.item.id,staticClass:"name"},[e._v("\n "+e._s(e.item.client_name)+" - "+e._s(e.item.total)+"\n ")]),e._v(" "),i("div",{staticClass:"item-info"},[i("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(" "),i("transition",{attrs:{name:"slide-from-right"}},[e.$isMobile()&&!e.isMobileSelectMode?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",attrs:{size:"16"}})],1)]):e._e()])],1)])}),[],!1,null,"0efb7529",null).exports);function Z(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function ee(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(i),!0).forEach((function(t){te(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Z(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function te(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var ie={name:"ClientItem",props:["item"],components:{MoreVerticalIcon:o.S,CheckIcon:o.e},computed:ee(ee({},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 i=this.entries.indexOf(this.clipboard[this.clipboard.length-1]),n=this.entries.indexOf(this.item);if(e.ctrlKey||e.metaKey||this.$store.commit("CLIPBOARD_CLEAR"),i<n)for(var o=i;o<=n;o++)this.$store.commit("ADD_ITEM_TO_CLIPBOARD",this.entries[o]);else for(var a=i;a>=n;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")}))}},ne=(i("8Gay"),Object(w.a)(ie,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"file-wrapper",on:{mouseup:function(t){return t.stopPropagation(),e.clickedItem(t)},dblclick:e.showClient}},[i("div",{staticClass:"file-item",class:{"is-clicked":e.isClicked,"no-clicked":!e.isClicked&&e.$isMobile()}},[i("transition",{attrs:{name:"slide-from-left"}},[e.isMobileSelectMode?i("div",{staticClass:"check-select"},[i("div",{staticClass:"select-box",class:{"select-box-active":e.isClicked}},[e.isClicked?i("CheckIcon",{staticClass:"icon",attrs:{size:"17"}}):e._e()],1)]):e._e()]),e._v(" "),i("div",{staticClass:"icon-item"},[i("img",{staticClass:"image",attrs:{loading:"lazy",src:e.item.avatar,alt:e.item.name}})]),e._v(" "),i("div",{staticClass:"item-name"},[i("b",{ref:e.item.id,staticClass:"name"},[e._v("\n "+e._s(e.item.name)+"\n ")]),e._v(" "),i("div",{staticClass:"item-info"},[i("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(" "),i("transition",{attrs:{name:"slide-from-right"}},[e.$isMobile()&&!e.isMobileSelectMode?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",attrs:{size:"16"}})],1)]):e._e()])],1)])}),[],!1,null,"07eb9b03",null).exports);function oe(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function ae(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(i),!0).forEach((function(t){re(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):oe(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function re(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var se={name:"FilesContainer",components:{InvoiceActionsMobile:P,InvoiceInfoSidebar:z,EmptyInvoicePage:X,MobileToolbar:i("j8uk").a,EmptyMessage:M.a,InvoiceItem:Q,ClientItem:ne,SearchBar:d.a},computed:ae(ae({},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")}))}},ce=(i("Ryfy"),Object(w.a)(se,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"file-content",attrs:{id:"file-content-id",tabindex:"-1"}},[i("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)}}},[i("MobileToolbar"),e._v(" "),e.hasBillingProfile?i("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?i("InvoiceActionsMobile"):e._e(),e._v(" "),i("div",{staticClass:"file-list-wrapper"},[i("transition-group",{staticClass:"file-list",attrs:{name:"file",tag:"section"}},[e._l(e.entries,(function(t){return"invoice"===t.type?i("InvoiceItem",{key:t.id,staticClass:"file-item",attrs:{item:t},nativeOn:{contextmenu:function(i){return i.preventDefault(),e.contextMenu(i,t)}}}):e._e()})),e._v(" "),e._l(e.entries,(function(t){return"client"===t.type?i("ClientItem",{key:t.id,staticClass:"file-item",attrs:{item:t},nativeOn:{contextmenu:function(i){return i.preventDefault(),e.contextMenu(i,t)}}}):e._e()}))],2)],1),e._v(" "),e.isSearching?e._e():i("EmptyInvoicePage"),e._v(" "),e.isSearching&&e.isEmpty?i("EmptyMessage",{attrs:{message:e.$t("messages.nothing_was_found"),icon:"eye-slash"}}):e._e()],1),e._v(" "),i("div",{staticClass:"file-info-container",class:{"is-visible":e.isVisibleSidebar}},[i("InvoiceInfoSidebar")],1)])}),[],!1,null,"ba85c656",null).exports);function le(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function pe(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?le(Object(i),!0).forEach((function(t){de(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):le(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function de(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var fe={name:"ContextMenu",components:{OptionGroup:l.a,Option:f.a},computed:pe(pe({},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,i=document.getElementById("files-view"),n=i.getClientRects()[0],o=e.clientX-n.left,a=e.clientY-n.top;i.offsetHeight-a<t?this.positionY=a-t:this.positionY=a,i.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,i){e.item=i,setTimeout((function(){return e.showContextMenu(t,i)}),10)})),u.a.$on("unClick",(function(){return e.closeAndResetContextMenu()}))}},me=(i("RQg9"),{name:"ContentInvoiceView",components:{InvoiceDesktopToolbar:_,InvoiceContextMenu:Object(w.a)(fe,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("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}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.isInvoice,expression:"isInvoice"}],staticClass:"menu-options",attrs:{id:"menu-list"}},[i("OptionGroup",{staticClass:"menu-option-group"},[i("Option",{attrs:{title:e.$t("in.menu.edit_invoice"),icon:"rename"},nativeOn:{click:function(t){return e.$editInvoice(e.clipboard[0])}}}),e._v(" "),i("Option",{attrs:{title:e.$t("in.menu.send_invoice"),icon:"send"},nativeOn:{click:function(t){return e.$shareInvoice(e.clipboard[0])}}}),e._v(" "),i("Option",{attrs:{title:e.$t("in.menu.show_company"),icon:"user"},nativeOn:{click:function(t){return e.$goToCompany(e.clipboard[0])}}}),e._v(" "),i("Option",{attrs:{title:e.$t("context_menu.delete"),icon:"trash"},nativeOn:{click:function(t){return e.$deleteInvoice(e.clipboard[0])}}})],1),e._v(" "),i("OptionGroup",[i("Option",{attrs:{title:e.$t("context_menu.detail"),icon:"detail"},nativeOn:{click:function(t){return e.showDetail(t)}}}),e._v(" "),i("Option",{attrs:{title:e.$t("context_menu.download"),icon:"download"},nativeOn:{click:function(t){return e.$downloadInvoice(e.clipboard[0])}}})],1)],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.isClient,expression:"isClient"}],staticClass:"menu-options",attrs:{id:"menu-list"}},[i("OptionGroup",{staticClass:"menu-option-group"},[i("Option",{attrs:{title:e.$t("in.menu.edit"),icon:"rename"},nativeOn:{click:function(t){return e.$goToCompany(e.clipboard[0])}}}),e._v(" "),i("Option",{attrs:{title:e.$t("context_menu.delete"),icon:"trash"},nativeOn:{click:function(t){return e.$deleteClient(e.clipboard[0])}}})],1),e._v(" "),i("OptionGroup",[i("Option",{attrs:{title:e.$t("in.menu.show_company"),icon:"user"},nativeOn:{click:function(t){return e.$goToCompany(e.clipboard[0])}}}),e._v(" "),i("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:ce},methods:{contextMenu:function(e,t){u.a.$emit("contextMenu:show",e,t)}}}),ue=(i("tDLa"),Object(w.a)(me,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"files-view"},on:{"!contextmenu":function(t){return t.preventDefault(),e.contextMenu(t,void 0)}}},[i("InvoiceDesktopToolbar"),e._v(" "),i("InvoiceContextMenu"),e._v(" "),i("InvoiceBrowser")],1)}),[],!1,null,null,null));t.default=ue.exports},kXDk:function(e,t,i){var n=i("Wuw1");"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(n,o);n.locals&&(e.exports=n.locals)},"n/Pk":function(e,t,i){(e.exports=i("I1BE")(!1)).push([e.i,".info-wrapper[data-v-154e1446]{padding-bottom:20px;height:100%}.info-headline[data-v-154e1446]{margin-bottom:20px;border-radius:8px}.share-link[data-v-154e1446]{display:flex;width:100%;align-items:center;margin-top:10px}.share-link .lock-icon[data-v-154e1446]{display:inline-block;width:15px;margin-right:9px;cursor:pointer}.share-link .copy-share-link[data-v-154e1446]{width:100%}",""])},nlQl:function(e,t,i){(e.exports=i("I1BE")(!1)).push([e.i,".file-list .dragged[data-v-ba85c656] .is-dragenter{border:2px solid transparent}.dragged[data-v-ba85c656]{opacity:.5}#multi-selected[data-v-ba85c656]{position:fixed;pointer-events:none;z-index:100}.mobile-multi-select[data-v-ba85c656]{bottom:50px!important;top:0}.button-upload[data-v-ba85c656]{display:block;text-align:center;margin:20px 0}.mobile-search[data-v-ba85c656]{display:none;margin-bottom:10px;margin-top:10px}.file-content[data-v-ba85c656]{display:flex}.file-content.is-dragging[data-v-ba85c656]{transform:scale(.99)}.files-container[data-v-ba85c656]{overflow-x:hidden;overflow-y:auto;flex:0 0 100%;transition:all .15s ease;position:relative;scroll-behavior:smooth}.files-container.is-visible[data-v-ba85c656]{flex:0 1 100%}.files-container .file-list.grid[data-v-ba85c656]{display:grid;grid-template-columns:repeat(auto-fill,180px);justify-content:space-evenly}.file-info-container[data-v-ba85c656]{flex:0 0 300px;padding-left:20px;overflow:auto}.file-move[data-v-ba85c656]{transition:transform .6s}.file-enter-active[data-v-ba85c656]{transition:all .3s ease}.file-leave-active[data-v-ba85c656]{transition:all 0ms}.file-enter[data-v-ba85c656],.file-leave-to[data-v-ba85c656]{opacity:0;transform:translateX(-20px)}@media only screen and (min-width:960px){.file-content[data-v-ba85c656]{position:absolute;top:72px;left:15px;right:15px;bottom:0;transition:all .3s ease;overflow-y:auto;overflow-x:hidden}.file-content.is-offset[data-v-ba85c656]{margin-top:50px}}@media only screen and (max-width:960px){.file-info-container[data-v-ba85c656]{display:none}.mobile-search[data-v-ba85c656]{display:block}.file-content[data-v-ba85c656]{position:absolute;top:0;left:15px;right:15px;bottom:0;transition:all .3s ease;overflow-y:auto;overflow-x:hidden}.file-content.is-offset[data-v-ba85c656]{margin-top:50px}}@media only screen and (max-width:690px){.files-container[data-v-ba85c656]{padding-left:15px;padding-right:15px;top:0;left:0;right:0;bottom:0;position:fixed;overflow-y:auto}.files-container .file-list.grid[data-v-ba85c656]{grid-template-columns:repeat(auto-fill,120px)}.file-content[data-v-ba85c656]{position:absolute;top:0;left:0;right:0;bottom:0;transition:all .3s ease}.file-content.is-offset[data-v-ba85c656]{margin-top:50px}.mobile-search[data-v-ba85c656]{margin-bottom:0}.file-info-container[data-v-ba85c656]{display:none}}",""])},oxHN:function(e,t,i){var n=i("DuK0");"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(n,o);n.locals&&(e.exports=n.locals)},pdVR:function(e,t,i){"use strict";i("a+pn")},ru6N:function(e,t,i){(e.exports=i("I1BE")(!1)).push([e.i,"#files-view{font-family:Nunito,sans-serif;font-size:16px;width:100%;height:100%;position:relative;min-width:320px;overflow-x:hidden;padding-left:15px;padding-right:15px;overflow-y:hidden}@media only screen and (max-width:690px){#files-view{padding-left:0;padding-right:0}}",""])},sjEU:function(e,t,i){(e.exports=i("I1BE")(!1)).push([e.i,".slide-from-left-move[data-v-0efb7529]{transition:transform 300s ease}.slide-from-left-enter-active[data-v-0efb7529],.slide-from-left-leave-active[data-v-0efb7529],.slide-from-right-enter-active[data-v-0efb7529],.slide-from-right-leave-active[data-v-0efb7529]{transition:all .3s}.slide-from-left-enter[data-v-0efb7529],.slide-from-left-leave-to[data-v-0efb7529]{opacity:0;transform:translateX(-100%)}.slide-from-right-enter[data-v-0efb7529],.slide-from-right-leave-to[data-v-0efb7529]{opacity:0;transform:translateX(100%)}.check-select[data-v-0efb7529]{margin-right:15px;margin-left:6px}.check-select .select-box[data-v-0efb7529]{width:20px;height:20px;background-color:#e6e8eb;display:flex;justify-content:center;align-items:center;border-radius:5px}.check-select .select-box-active[data-v-0efb7529]{background-color:#00bc7e}.check-select .select-box-active .icon[data-v-0efb7529]{stroke:#fff}.file-wrapper[data-v-0efb7529]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative}.file-wrapper[data-v-0efb7529]:hover{border-color:transparent}.file-wrapper .actions[data-v-0efb7529]{text-align:right;width:50px}.file-wrapper .actions .show-actions[data-v-0efb7529]{cursor:pointer;padding:12px 0 12px 6px}.file-wrapper .actions .show-actions .icon-action[data-v-0efb7529]{margin-top:9px;font-size:.875em}.file-wrapper .actions .show-actions .icon-action circle[data-v-0efb7529]{color:inherit}.file-wrapper .item-name[data-v-0efb7529]{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-wrapper .item-name .item-info[data-v-0efb7529]{display:block;line-height:1}.file-wrapper .item-name .item-shared[data-v-0efb7529]{display:inline-block}.file-wrapper .item-name .item-shared .label[data-v-0efb7529]{font-size:.75em;font-weight:400;color:#00bc7e}.file-wrapper .item-name .item-shared .shared-icon[data-v-0efb7529]{vertical-align:middle}.file-wrapper .item-name .item-shared .shared-icon circle[data-v-0efb7529],.file-wrapper .item-name .item-shared .shared-icon line[data-v-0efb7529],.file-wrapper .item-name .item-shared .shared-icon path[data-v-0efb7529]{color:inherit}.file-wrapper .item-name .item-length[data-v-0efb7529],.file-wrapper .item-name .item-size[data-v-0efb7529]{font-size:.6875em;font-weight:400;color:rgba(27,37,57,.7)}.file-wrapper .item-name .name[data-v-0efb7529]{white-space:nowrap}.file-wrapper .item-name .name[contenteditable][data-v-0efb7529]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.file-wrapper .item-name .name[contenteditable=true][data-v-0efb7529]:hover{text-decoration:underline}.file-wrapper .item-name .name[data-v-0efb7529]{color:#1b2539;font-size:.875em;font-weight:700;max-height:40px;overflow:hidden;text-overflow:ellipsis}.file-wrapper .item-name .name.actived[data-v-0efb7529]{max-height:none}.file-wrapper.selected .file-item[data-v-0efb7529]{background:#f4f5f6}.file-wrapper .icon-item[data-v-0efb7529]{text-align:center;position:relative;flex:0 0 50px;line-height:0;margin-right:20px}.file-wrapper .icon-item .folder[data-v-0efb7529]{width:52px;height:52px}.file-wrapper .icon-item .folder[data-v-0efb7529] .folder-icon{font-size:3.25em}.file-wrapper .icon-item .file-icon[data-v-0efb7529]{font-size:2.8125em}.file-wrapper .icon-item .file-icon path[data-v-0efb7529]{fill:#fafafc;stroke:#dfe0e8;stroke-width:1}.file-wrapper .icon-item .file-icon-text[data-v-0efb7529]{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-0efb7529],.file-wrapper .icon-item .image[data-v-0efb7529]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.file-wrapper .icon-item .image[data-v-0efb7529]{-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-0efb7529]{border:2px dashed transparent;width:100%;display:flex;align-items:center;padding:12px 7px 12px 15px}.file-wrapper .file-item.is-dragenter[data-v-0efb7529]{border-radius:8px}.file-wrapper .file-item.no-clicked[data-v-0efb7529]{background:#fff!important}.file-wrapper .file-item.no-clicked .item-name .name[data-v-0efb7529]{color:#1b2539!important}.file-wrapper .file-item.is-clicked[data-v-0efb7529],.file-wrapper .file-item[data-v-0efb7529]:hover{border-radius:8px;background:#f4f5f6}@media (prefers-color-scheme:dark){.check-select .select-box[data-v-0efb7529]{background-color:#353940}.check-select .select-box-active[data-v-0efb7529]{background-color:#00bc7e}.check-select .select-box-active .icon[data-v-0efb7529]{stroke:#fff}.file-wrapper .icon-item .file-icon path[data-v-0efb7529]{fill:#1e2024;stroke:#2f3c54}.file-wrapper .file-item.no-clicked[data-v-0efb7529]{background:#141414!important}.file-wrapper .file-item.no-clicked .file-icon path[data-v-0efb7529]{fill:#1e2024!important;stroke:#2f3c54}.file-wrapper .file-item.no-clicked .item-name .name[data-v-0efb7529]{color:#bec6cf!important}.file-wrapper .file-item.is-clicked[data-v-0efb7529],.file-wrapper .file-item[data-v-0efb7529]:hover{background:#1e2024}.file-wrapper .file-item.is-clicked .file-icon path[data-v-0efb7529],.file-wrapper .file-item:hover .file-icon path[data-v-0efb7529]{fill:#141414}.file-wrapper .item-name .name[data-v-0efb7529]{color:#bec6cf}.file-wrapper .item-name .item-length[data-v-0efb7529],.file-wrapper .item-name .item-size[data-v-0efb7529]{color:#7d858c}}",""])},tDLa:function(e,t,i){"use strict";i("PNbf")},xw19:function(e,t,i){"use strict";i("bfSx")}}]);