1"use strict";(self.webpackChunkDashboard=self.webpackChunkDashboard||[]).push([[111],{10716:(t,e,r)=>{r.r(e),r.d(e,{default:()=>a});var o=r(76610);const s={name:"HomeBookOrderList",components:{LoadingWrapper:function(){return r.e(1028).then(r.bind(r,25094))}},data:function(){return{orders:null,loading:!0,error:!1,errorState:"error",errorText:""}},mounted:function(){this.fetchData()},watch:{$route:"fetchData"},computed:{restrictedBookorderPermission:function(){return!this.$store.getters.bookorderPermission}},methods:{fetchData:function(){var t=this;if(!this.checkRestrictedPermission()){o.hi.get("/v1/me/bookorders",{per_page:3}).then((function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.data.data;r[0]&&(t.orders=r)})).catch((function(e){t.error=!0,console.error(e)})).finally((function(){t.loading=!1}))}},checkRestrictedPermission:function(){return!!this.restrictedBookorderPermission&&(this.error=!0,this.errorState="infogrey",this.errorText=this.$t("general.loadingErrorSubuserNoPrivileges"),!0)}}};const a=(0,r(51900).Z)(s,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"home-book-order-list d-flex flex-column h-100 bg-white rounded p-4"},[r("h2",{staticClass:"display-4 fw-bold text-bodblue-dark"},[r("i",{staticClass:"fa-light fa-shopping-bag"}),t._v(" "+t._s(t.$t("home.titleStatistics"))+"\n ")]),t._v(" "),r("loading-wrapper",{attrs:{loading:t.loading,error:t.error,errorState:t.errorState,errorText:t.errorText}},[r("table",{staticClass:"table table-borderless table-striped table-bodblue-light-30 table-responsive-custom mb-0"},[r("thead",[r("tr",[r("th",[t._v(t._s(t.$t("home.bookOrderList.tableTitle.date")))]),t._v(" "),r("th",[t._v(t._s(t.$t("home.bookOrderList.tableTitle.title")))]),t._v(" "),r("th",[t._v(t._s(t.$t("home.bookOrderList.tableTitle.state")))])])]),t._v(" "),r("tbody",[t.orders?t._l(t.orders,(function(e){return r("tr",[r("td",{attrs:{"data-title":t.$t("home.bookOrderList.tableTitle.date")}},[t._v(t._s(t.$moment(e.date,"YYYY-MM-DD").format("DD.MM.YYYY")))]),t._v(" "),r("td",{attrs:{"data-title":t.$t("home.bookOrderList.tableTitle.title")}},[t._v(t._s(e.title))]),t._v(" "),r("td",{attrs:{"data-title":t.$t("home.bookOrderList.tableTitle.state")}},[r("span",{staticClass:"badge text-bg-bodblue-light"},["inProgress"==e.status?[t._v("\n "+t._s(t.$t("home.bookOrderList.state.inProgress"))+"\n ")]:"sent"==e.status?[t._v("\n "+t._s(t.$t("home.bookOrderList.state.sent"))+"\n ")]:[t._v("\n "+t._s(e.status)+"\n ")]],2)])])})):r("tr",[r("td",{staticClass:"text-center",attrs:{colspan:"3"}},[t._v(t._s(t.$t("general.vuetable.noDataTemplate")))])])],2)])]),t._v(" "),t.loading||t.error?t._e():r("div",{staticClass:"mt-auto"},[r("div",{staticClass:"row row-cols-1 row-cols-md-2 g-4 mt-0"},[r("div",{staticClass:"col"},[r("router-link",{staticClass:"btn btn-dark rounded-pill w-100",attrs:{to:{name:"newbookorder",params:{reset:!0}}}},[t._v("\n "+t._s(t.$t("bookorders.btnNewOrder"))+"\n ")])],1),t._v(" "),r("div",{staticClass:"col"},[r("router-link",{staticClass:"btn btn-outline-dark rounded-pill w-100",attrs:{to:{name:"bookorders"}}},[t._v("\n "+t._s(t.$t("home.btnOrders"))+"\n ")])],1)])])],1)}),[],!1,null,null,null).exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.