Files
vuefilemanager/public/chunks/plans.js
Peter Papp 2b08d7801b Shared link expiration backend
Redirect from sign in page when user is logged
Updated README.md
2020-08-26 07:29:28 +02:00

1 line
27 KiB
JavaScript
Vendored

(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{21:function(t,a,n){"use strict";var e={name:"PageHeader",props:["title","canBack"],components:{ChevronLeftIcon:n(1).d}},i=(n(238),n(0)),o=Object(i.a)(e,(function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"page-header"},[t.canBack?n("div",{staticClass:"go-back",on:{click:function(a){return t.$router.back()}}},[n("chevron-left-icon",{attrs:{size:"17"}})],1):t._e(),t._v(" "),n("div",{staticClass:"content"},[n("h1",{staticClass:"title"},[t._v(t._s(t.title))])])])}),[],!1,null,"aafe7e24",null);a.a=o.exports},238:function(t,a,n){"use strict";var e=n(58);n.n(e).a},239:function(t,a,n){(t.exports=n(5)(!1)).push([t.i,".page-header[data-v-aafe7e24] {\n display: flex;\n align-items: center;\n background: white;\n z-index: 9;\n width: 100%;\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n padding-top: 20px;\n padding-bottom: 20px;\n}\n.page-header .title[data-v-aafe7e24] {\n font-size: 1.125em;\n font-weight: 700;\n color: #1B2539;\n}\n.page-header .go-back[data-v-aafe7e24] {\n margin-right: 10px;\n cursor: pointer;\n}\n.page-header .go-back svg[data-v-aafe7e24] {\n vertical-align: middle;\n margin-top: -4px;\n}\n@media only screen and (max-width: 960px) {\n.page-header .title[data-v-aafe7e24] {\n font-size: 1.125em;\n}\n}\n@media only screen and (max-width: 690px) {\n.page-header[data-v-aafe7e24] {\n display: none;\n}\n}\n@media (prefers-color-scheme: dark) {\n.page-header[data-v-aafe7e24] {\n background: #111314;\n}\n.page-header .title[data-v-aafe7e24] {\n color: #bec6cf;\n}\n.page-header .icon path[data-v-aafe7e24] {\n fill: #00BC7E;\n}\n}\n",""])},242:function(t,a,n){"use strict";var e=n(60);n.n(e).a},243:function(t,a,n){(t.exports=n(5)(!1)).push([t.i,".text-label[data-v-69d97df2] {\n font-size: 0.75em;\n color: #AFAFAF;\n font-weight: 700;\n display: block;\n margin-bottom: 20px;\n}\n@media (prefers-color-scheme: dark) {\n.text-label[data-v-69d97df2] {\n color: #00BC7E;\n}\n}\n",""])},248:function(t,a,n){"use strict";var e=n(63);n.n(e).a},249:function(t,a,n){(t.exports=n(5)(!1)).push([t.i,".table-row[data-v-15a1e318] {\n border-radius: 8px;\n}\n.table-row[data-v-15a1e318]:hover {\n background: #f4f5f6;\n}\n.table-row .table-cell[data-v-15a1e318] {\n padding-top: 15px;\n padding-bottom: 15px;\n}\n.table-row .table-cell[data-v-15a1e318]:first-child {\n padding-left: 15px;\n}\n.table-row .table-cell[data-v-15a1e318]:last-child {\n padding-right: 15px;\n text-align: right;\n}\n.table-row .table-cell span[data-v-15a1e318] {\n font-size: 1em;\n font-weight: bold;\n}\n",""])},250:function(t,a,n){"use strict";var e=n(64);n.n(e).a},251:function(t,a,n){(t.exports=n(5)(!1)).push([t.i,".datatable[data-v-56f3a787] {\n height: 100%;\n}\n.table-row[data-v-56f3a787] {\n transition: 0.3s all ease;\n}\n.table-row-enter[data-v-56f3a787],\n.table-row-leave-to[data-v-56f3a787] {\n opacity: 0;\n transform: translateY(-100%);\n}\n.table-row-leave-active[data-v-56f3a787] {\n position: absolute;\n}\n.table[data-v-56f3a787] {\n width: 100%;\n border-collapse: collapse;\n overflow-x: auto;\n}\n.table tr[data-v-56f3a787] {\n width: 100%;\n}\n.table tr td[data-v-56f3a787]:first-child, .table tr th[data-v-56f3a787]:first-child {\n padding-left: 15px;\n}\n.table tr td[data-v-56f3a787]:last-child, .table tr th[data-v-56f3a787]:last-child {\n padding-right: 15px;\n text-align: right;\n}\n.table .table-header[data-v-56f3a787] {\n margin-bottom: 10px;\n}\n.table .table-header tr td[data-v-56f3a787], .table .table-header tr th[data-v-56f3a787] {\n padding: 12px;\n text-align: left;\n}\n.table .table-header tr td span[data-v-56f3a787], .table .table-header tr th span[data-v-56f3a787] {\n color: #00BC7E;\n font-weight: 700;\n font-size: 0.75em;\n white-space: nowrap;\n}\n.table .table-header tr td.sortable[data-v-56f3a787], .table .table-header tr th.sortable[data-v-56f3a787] {\n cursor: pointer;\n}\n.table .table-header tr td.sortable:hover .filter-arrow[data-v-56f3a787], .table .table-header tr th.sortable:hover .filter-arrow[data-v-56f3a787] {\n opacity: 1;\n}\n.table .table-header tr td[data-v-56f3a787]:last-child, .table .table-header tr th[data-v-56f3a787]:last-child {\n text-align: right;\n}\n.table .table-header .filter-arrow[data-v-56f3a787] {\n vertical-align: middle;\n margin-left: 8px;\n transition: 0.3s all ease;\n opacity: 0;\n}\n.table .table-header .filter-arrow path[data-v-56f3a787] {\n fill: rgba(27, 37, 57, 0.7);\n}\n.table .table-header .filter-arrow.arrow-down[data-v-56f3a787] {\n transform: rotate(180deg);\n}\n.table .table-header span[data-v-56f3a787] {\n font-size: 13px;\n color: rgba(27, 37, 57, 0.7);\n font-weight: bold;\n}\n.table .table-body tr[data-v-56f3a787] {\n border-radius: 8px;\n}\n.table .table-body tr[data-v-56f3a787]:hover {\n background: #f4f5f6;\n}\n.table .table-body tr td[data-v-56f3a787], .table .table-body tr th[data-v-56f3a787] {\n padding: 12px;\n}\n.table .table-body tr td:last-child button[data-v-56f3a787], .table .table-body tr th:last-child button[data-v-56f3a787] {\n margin-right: 0;\n}\n.table .table-body span[data-v-56f3a787], .table .table-body a.page-link[data-v-56f3a787] {\n font-size: 0.9375em;\n font-weight: 700;\n padding: 10px 35px 10px 0;\n display: block;\n white-space: nowrap;\n}\n.pagination .page-item[data-v-56f3a787] {\n padding: 3px;\n display: inline-block;\n}\n.pagination .page-link[data-v-56f3a787] {\n width: 30px;\n height: 30px;\n display: block;\n color: #1B2539;\n border-radius: 6px;\n text-align: center;\n line-height: 2.4;\n font-weight: bold;\n font-size: 13px;\n cursor: pointer;\n transition: 0.15s all ease;\n}\n.pagination .page-link .icon[data-v-56f3a787] {\n vertical-align: middle;\n margin-top: -2px;\n}\n.pagination .page-link[data-v-56f3a787]:hover:not(.disabled) {\n background: #f4f5f6;\n color: #1B2539;\n}\n.pagination .page-link.active[data-v-56f3a787] {\n color: #1B2539;\n background: #f4f5f6;\n}\n.pagination .page-link.disabled[data-v-56f3a787] {\n background: transparent;\n cursor: default;\n}\n.pagination .page-link.disabled svg path[data-v-56f3a787] {\n fill: rgba(27, 37, 57, 0.7);\n}\n.paginator-wrapper[data-v-56f3a787] {\n margin-top: 30px;\n margin-bottom: 40px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.paginator-wrapper .paginator-info[data-v-56f3a787] {\n font-size: 13px;\n color: rgba(27, 37, 57, 0.7);\n}\n.user-preview[data-v-56f3a787] {\n display: flex;\n align-items: center;\n cursor: pointer;\n}\n.user-preview img[data-v-56f3a787] {\n width: 45px;\n margin-right: 22px;\n}\n@media only screen and (max-width: 690px) {\n.paginator-wrapper[data-v-56f3a787] {\n display: block;\n text-align: center;\n}\n.paginator-wrapper .paginator-info[data-v-56f3a787] {\n margin-top: 10px;\n display: block;\n}\n}\n@media (prefers-color-scheme: dark) {\n.table .table-header tr td span[data-v-56f3a787], .table .table-header tr th span[data-v-56f3a787] {\n color: #00BC7E;\n}\n.table .table-body tr[data-v-56f3a787]:hover, .table .table-body th[data-v-56f3a787]:hover {\n background: #1e2024;\n}\n.paginator-wrapper .paginator-info[data-v-56f3a787] {\n color: #7d858c;\n}\n.pagination .page-link[data-v-56f3a787] {\n color: #7d858c;\n}\n.pagination .page-link svg polyline[data-v-56f3a787] {\n stroke: #bec6cf;\n}\n.pagination .page-link[data-v-56f3a787]:hover:not(.disabled) {\n color: #00BC7E;\n background: rgba(0, 188, 126, 0.1);\n}\n.pagination .page-link.active[data-v-56f3a787] {\n color: #00BC7E;\n background: rgba(0, 188, 126, 0.1);\n}\n.pagination .page-link.disabled[data-v-56f3a787] {\n background: transparent;\n cursor: default;\n}\n.pagination .page-link.disabled svg polyline[data-v-56f3a787] {\n stroke: #7d858c;\n}\n}\n",""])},256:function(t,a,n){"use strict";var e=n(67);n.n(e).a},257:function(t,a,n){(t.exports=n(5)(!1)).push([t.i,".color-label[data-v-ffcb2882] {\n text-transform: capitalize;\n font-size: 0.75em;\n display: inline-block;\n border-radius: 6px;\n font-weight: 700;\n padding: 4px 6px;\n}\n.color-label.purple[data-v-ffcb2882] {\n color: #9D66FE;\n background: rgba(157, 102, 254, 0.1);\n}\n.color-label.yellow[data-v-ffcb2882] {\n color: #FFBD2D;\n background: rgba(255, 189, 45, 0.1);\n}\n.color-label.green[data-v-ffcb2882] {\n color: #00BC7E;\n background: rgba(0, 188, 126, 0.1);\n}\n.color-label.red[data-v-ffcb2882] {\n color: #fd397a;\n background: rgba(253, 57, 122, 0.1);\n}\n",""])},258:function(t,a,n){"use strict";var e=n(68);n.n(e).a},259:function(t,a,n){(t.exports=n(5)(!1)).push([t.i,".mobile-action-button[data-v-8b0e9378] {\n background: #f4f5f6;\n margin-right: 15px;\n border-radius: 8px;\n padding: 7px 10px;\n cursor: pointer;\n border: none;\n transition: 150ms all ease;\n}\n.mobile-action-button .flex[data-v-8b0e9378] {\n display: flex;\n align-items: center;\n}\n.mobile-action-button .icon[data-v-8b0e9378] {\n margin-right: 10px;\n font-size: 0.875em;\n}\n.mobile-action-button .icon path[data-v-8b0e9378], .mobile-action-button .icon line[data-v-8b0e9378], .mobile-action-button .icon polyline[data-v-8b0e9378], .mobile-action-button .icon rect[data-v-8b0e9378], .mobile-action-button .icon circle[data-v-8b0e9378] {\n transition: 150ms all ease;\n}\n.mobile-action-button .label[data-v-8b0e9378] {\n transition: 150ms all ease;\n font-size: 0.875em;\n font-weight: 700;\n color: #1B2539;\n}\n.mobile-action-button[data-v-8b0e9378]:active {\n transform: scale(0.95);\n}\n.mobile-action-button[data-v-8b0e9378]:hover {\n background: rgba(0, 188, 126, 0.1);\n}\n.mobile-action-button:hover .icon path[data-v-8b0e9378], .mobile-action-button:hover .icon line[data-v-8b0e9378], .mobile-action-button:hover .icon polyline[data-v-8b0e9378], .mobile-action-button:hover .icon rect[data-v-8b0e9378], .mobile-action-button:hover .icon circle[data-v-8b0e9378] {\n stroke: #00BC7E;\n}\n.mobile-action-button:hover .label[data-v-8b0e9378] {\n color: #00BC7E;\n}\n@media (prefers-color-scheme: dark) {\n.mobile-action-button[data-v-8b0e9378] {\n background: #1e2024;\n}\n.mobile-action-button path[data-v-8b0e9378], .mobile-action-button line[data-v-8b0e9378], .mobile-action-button polyline[data-v-8b0e9378], .mobile-action-button rect[data-v-8b0e9378], .mobile-action-button circle[data-v-8b0e9378] {\n stroke: #00BC7E;\n}\n.mobile-action-button .label[data-v-8b0e9378] {\n color: #bec6cf;\n}\n}\n",""])},26:function(t,a,n){"use strict";var e={name:"SectionTitle"},i=(n(242),n(0)),o=Object(i.a)(e,(function(){var t=this.$createElement;return(this._self._c||t)("b",{staticClass:"text-label"},[this._t("default")],2)}),[],!1,null,"69d97df2",null);a.a=o.exports},266:function(t,a,n){"use strict";var e=n(73);n.n(e).a},267:function(t,a,n){(t.exports=n(5)(!1)).push([t.i,".empty-page-content[data-v-2d45c340] {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n text-align: center;\n}\n.empty-page-content .content[data-v-2d45c340] {\n margin: 0 auto;\n max-width: 360px;\n}\n.empty-page-content .content[data-v-2d45c340] .button-base {\n margin: 0 auto;\n}\n.empty-page-content .icon path[data-v-2d45c340], .empty-page-content .icon polyline[data-v-2d45c340], .empty-page-content .icon line[data-v-2d45c340], .empty-page-content .icon circle[data-v-2d45c340] {\n stroke: #00BC7E;\n}\n.empty-page-content .header[data-v-2d45c340] {\n margin-top: 15px;\n margin-bottom: 25px;\n}\n.empty-page-content .title[data-v-2d45c340] {\n font-size: 1.4375em;\n font-weight: 700;\n padding-bottom: 5px;\n}\n.empty-page-content .description[data-v-2d45c340] {\n font-size: 1em;\n font-weight: 500;\n}\n",""])},27:function(t,a,n){"use strict";var e=n(1),i={props:["data"],computed:{normalizedColumns:function(){return this.data.id&&delete this.data.id,Object.values(this.data)}}},o=(n(248),n(0)),s=Object(o.a)(i,(function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("tr",{staticClass:"table-row"},t._l(t.normalizedColumns,(function(a,e){return n("td",{key:e,staticClass:"table-cell"},[n("span",[t._v(t._s(a))])])})),0)}),[],!1,null,"15a1e318",null).exports,r=(n(24),n(4)),l=n.n(r),c={name:"DatatableWrapper",props:["columns","scope","paginator","api","tableData"],components:{ChevronRightIcon:e.e,ChevronLeftIcon:e.d,DatatableCell:s,ChevronUpIcon:e.f},computed:{hasData:function(){return this.data&&this.data.data&&this.data.data.length>0},floatPages:function(){return[this.pageIndex-1,this.pageIndex,this.pageIndex+1]}},data:function(){return{data:void 0,isLoading:!0,pageIndex:1,filter:{sort:"DESC",field:void 0}}},methods:{goToPage:function(t){t>this.data.meta.last_page||0===t||(this.pageIndex=t,this.getPage(t))},sort:function(t,a){a&&(this.filter.field=t,"DESC"===this.filter.sort?this.filter.sort="ASC":"ASC"===this.filter.sort&&(this.filter.sort="DESC"),this.getPage(this.pageIndex))},getPage:function(t){var a=this;this.URI=this.api,this.paginator&&(this.URI=this.URI+"?page="+t),this.filter.field&&(this.URI=this.URI+(this.paginator?"&":"?")+"sort="+this.filter.field+"&direction="+this.filter.sort),this.isLoading=!0,l.a.get(this.URI).then((function(t){a.data=t.data,a.$emit("data",t.data)})).catch((function(){return a.$isSomethingWrong()})).finally((function(){a.$emit("init",!0),a.isLoading=!1}))}},created:function(){this.api&&this.getPage(this.pageIndex),this.tableData&&(this.data=this.tableData,this.isLoading=!1)}},d=(n(250),Object(o.a)(c,(function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"datatable"},[t.hasData?n("table",{staticClass:"table"},[n("thead",{staticClass:"table-header"},[n("tr",t._l(t.columns,(function(a,e){return a.hidden?t._e():n("th",{key:e,class:{sortable:a.sortable},on:{click:function(n){return t.sort(a.field,a.sortable)}}},[n("span",[t._v(t._s(a.label))]),t._v(" "),a.sortable?n("chevron-up-icon",{staticClass:"filter-arrow",class:{"arrow-down":"ASC"===t.filter.sort},attrs:{size:"14"}}):t._e()],1)})),0)]),t._v(" "),n("tbody",{staticClass:"table-body"},[t._l(t.data.data,(function(a){return t._t("default",[n("DatatableCell",{key:a.id,attrs:{data:a}})],{row:a})}))],2)]):t._e(),t._v(" "),t.isLoading||t.hasData?t._e():t._t("empty-page"),t._v(" "),t.paginator&&t.hasData?n("div",{staticClass:"paginator-wrapper"},[t.data.meta.total>20&&t.data.meta.last_page<=6?n("ul",{staticClass:"pagination"},[n("li",{staticClass:"page-item previous"},[n("a",{staticClass:"page-link",class:{disabled:0==t.pageIndex},on:{click:function(a){return t.goToPage(t.pageIndex-1)}}},[n("chevron-left-icon",{staticClass:"icon",attrs:{size:"14"}})],1)]),t._v(" "),t._l(6,(function(a,e){return n("li",{key:e,staticClass:"page-item",on:{click:function(n){return t.goToPage(a)}}},[n("a",{staticClass:"page-link",class:{active:t.pageIndex===a}},[t._v("\n "+t._s(a)+"\n ")])])})),t._v(" "),n("li",{staticClass:"page-item next"},[n("a",{staticClass:"page-link",class:{disabled:t.pageIndex+1==t.data.meta.last_page},on:{click:function(a){return t.goToPage(t.pageIndex+1)}}},[n("chevron-right-icon",{staticClass:"icon",attrs:{size:"14"}})],1)])],2):t._e(),t._v(" "),t.data.meta.total>20&&t.data.meta.last_page>6?n("ul",{staticClass:"pagination"},[n("li",{staticClass:"page-item previous"},[n("a",{staticClass:"page-link",class:{disabled:0==t.pageIndex},on:{click:function(a){return t.goToPage(t.pageIndex-1)}}},[n("chevron-left-icon",{staticClass:"icon",attrs:{size:"14"}})],1)]),t._v(" "),t.pageIndex>=5?n("li",{staticClass:"page-item",on:{click:function(a){return t.goToPage(1)}}},[n("a",{staticClass:"page-link"},[t._v("\n 1\n ")])]):t._e(),t._v(" "),t._l(5,(function(a,e){return t.pageIndex<5?n("li",{key:e,staticClass:"page-item",on:{click:function(n){return t.goToPage(a)}}},[n("a",{staticClass:"page-link",class:{active:t.pageIndex===a}},[t._v("\n "+t._s(a)+"\n ")])]):t._e()})),t._v(" "),t.pageIndex>=5?n("li",{staticClass:"page-item"},[n("a",{staticClass:"page-link"},[t._v("...")])]):t._e(),t._v(" "),t._l(t.floatPages,(function(a,e){return t.pageIndex>=5&&t.pageIndex<t.data.meta.last_page-3?n("li",{key:e,staticClass:"page-item",on:{click:function(n){return t.goToPage(a)}}},[n("a",{staticClass:"page-link",class:{active:t.pageIndex===a}},[t._v("\n "+t._s(a)+"\n ")])]):t._e()})),t._v(" "),t.pageIndex<t.data.meta.last_page-3?n("li",{staticClass:"page-item"},[n("a",{staticClass:"page-link"},[t._v("...")])]):t._e(),t._v(" "),t._l(5,(function(a,e){return t.pageIndex>t.data.meta.last_page-4?n("li",{key:e,staticClass:"page-item",on:{click:function(a){t.goToPage(t.data.meta.last_page-(4-e))}}},[n("a",{staticClass:"page-link",class:{active:t.pageIndex===t.data.meta.last_page-(4-e)}},[t._v("\n "+t._s(t.data.meta.last_page-(4-e))+"\n ")])]):t._e()})),t._v(" "),t.pageIndex<t.data.meta.last_page-3?n("li",{staticClass:"page-item",on:{click:function(a){return t.goToPage(t.data.meta.last_page)}}},[n("a",{staticClass:"page-link"},[t._v("\n "+t._s(t.data.meta.last_page)+"\n ")])]):t._e(),t._v(" "),n("li",{staticClass:"page-item next"},[n("a",{staticClass:"page-link",class:{disabled:t.pageIndex+1==t.data.meta.last_page},on:{click:function(a){return t.goToPage(t.pageIndex+1)}}},[n("chevron-right-icon",{staticClass:"icon",attrs:{size:"14"}})],1)])],2):t._e(),t._v(" "),n("span",{staticClass:"paginator-info"},[t._v(t._s(t.$t("datatable.paginate_info",{visible:t.data.meta.per_page,total:t.data.meta.total})))])]):t._e()],2)}),[],!1,null,"56f3a787",null));a.a=d.exports},30:function(t,a,n){"use strict";var e={name:"ColorLabel",props:["color"]},i=(n(256),n(0)),o=Object(i.a)(e,(function(){var t=this.$createElement;return(this._self._c||t)("b",{staticClass:"color-label",class:this.color},[this._t("default")],2)}),[],!1,null,"ffcb2882",null);a.a=o.exports},304:function(t,a,n){"use strict";var e=n(92);n.n(e).a},305:function(t,a,n){(t.exports=n(5)(!1)).push([t.i,".table-tools[data-v-38c2ecdb] {\n background: white;\n display: flex;\n justify-content: space-between;\n padding: 15px 0 10px;\n position: -webkit-sticky;\n position: sticky;\n top: 40px;\n z-index: 9;\n}\n.table .cell-item[data-v-38c2ecdb] {\n font-size: 0.9375em;\n white-space: nowrap;\n}\n.table .name[data-v-38c2ecdb] {\n font-weight: 700;\n cursor: pointer;\n}\n@media only screen and (max-width: 690px) {\n.table-tools[data-v-38c2ecdb] {\n padding: 0 0 5px;\n}\n}\n@media (prefers-color-scheme: dark) {\n.table-tools[data-v-38c2ecdb] {\n background: #111314;\n}\n.action-icons .icon[data-v-38c2ecdb] {\n cursor: pointer;\n}\n.action-icons .icon circle[data-v-38c2ecdb], .action-icons .icon path[data-v-38c2ecdb], .action-icons .icon line[data-v-38c2ecdb], .action-icons .icon polyline[data-v-38c2ecdb] {\n stroke: #bec6cf;\n}\n.user-thumbnail .info .email[data-v-38c2ecdb] {\n color: #7d858c;\n}\n}\n",""])},32:function(t,a,n){"use strict";var e=n(1),i={name:"MobileActionButton",props:["icon"],components:{CreditCardIcon:e.j,FolderPlusIcon:e.t,UserPlusIcon:e.U,TrashIcon:e.Q,PlusIcon:e.I,ListIcon:e.B,GridIcon:e.u}},o=(n(258),n(0)),s=Object(o.a)(i,(function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("button",{staticClass:"mobile-action-button"},[n("div",{staticClass:"flex"},["credit-card"===t.icon?n("credit-card-icon",{staticClass:"icon",attrs:{size:"15"}}):t._e(),t._v(" "),"folder-plus"===t.icon?n("folder-plus-icon",{staticClass:"icon",attrs:{size:"15"}}):t._e(),t._v(" "),"th-list"===t.icon?n("list-icon",{staticClass:"icon",attrs:{size:"15"}}):t._e(),t._v(" "),"trash"===t.icon?n("trash-icon",{staticClass:"icon",attrs:{size:"15"}}):t._e(),t._v(" "),"th"===t.icon?n("grid-icon",{staticClass:"icon",attrs:{size:"15"}}):t._e(),t._v(" "),"user-plus"===t.icon?n("user-plus-icon",{staticClass:"icon",attrs:{size:"15"}}):t._e(),t._v(" "),"plus"===t.icon?n("plus-icon",{staticClass:"icon",attrs:{size:"15"}}):t._e(),t._v(" "),n("span",{staticClass:"label"},[t._t("default")],2)],1)])}),[],!1,null,"8b0e9378",null);a.a=s.exports},36:function(t,a,n){"use strict";var e=n(1),i={name:"EmptyPageContent",props:["icon","title","description"],components:{SettingsIcon:e.M,FileTextIcon:e.r,FileIcon:e.q}},o=(n(266),n(0)),s=Object(o.a)(i,(function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"empty-page-content"},[n("div",{staticClass:"content"},[n("div",{staticClass:"icon"},["file"===t.icon?n("file-icon",{attrs:{size:"38"}}):t._e(),t._v(" "),"file-text"===t.icon?n("file-text-icon",{attrs:{size:"38"}}):t._e(),t._v(" "),"settings"===t.icon?n("settings-icon",{attrs:{size:"38"}}):t._e()],1),t._v(" "),n("div",{staticClass:"header"},[n("h1",{staticClass:"title"},[t._v(t._s(t.title))]),t._v(" "),n("h2",{staticClass:"description"},[t._v(t._s(t.description))])]),t._v(" "),t._t("default")],2)])}),[],!1,null,"2d45c340",null);a.a=s.exports},58:function(t,a,n){var e=n(239);"string"==typeof e&&(e=[[t.i,e,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(e,i);e.locals&&(t.exports=e.locals)},60:function(t,a,n){var e=n(243);"string"==typeof e&&(e=[[t.i,e,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(e,i);e.locals&&(t.exports=e.locals)},610:function(t,a,n){"use strict";n.r(a);var e=n(27),i=n(32),o=n(36),s=n(23),r=n(18),l=n(26),c=n(11),d=n(1),p=n(21),b=n(30),g=n(19),f=n(7);n(4);function u(t,a){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);a&&(e=e.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),n.push.apply(n,e)}return n}function v(t,a,n){return a in t?Object.defineProperty(t,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[a]=n,t}var h={name:"Plans",components:{MobileActionButton:i.a,EmptyPageContent:o.a,DatatableWrapper:e.a,SectionTitle:l.a,MobileHeader:r.a,SwitchInput:s.a,Trash2Icon:d.P,PageHeader:p.a,ButtonBase:c.a,ColorLabel:b.a,Edit2Icon:d.m,Spinner:g.a},computed:function(t){for(var a=1;a<arguments.length;a++){var n=null!=arguments[a]?arguments[a]:{};a%2?u(Object(n),!0).forEach((function(a){v(t,a,n[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))}))}return t}({},Object(f.b)(["config"]),{isEmptyPlans:function(){return!this.isLoading&&0===this.plans.length&&this.config.stripe_public_key},stripeIsNotConfigured:function(){return!this.config.stripe_public_key},stripeConfiguredWithPlans:function(){return!this.isLoading&&this.config.stripe_public_key}}),data:function(){return{isLoading:!0,plans:[],columns:[{label:this.$t("admin_page_plans.table.status"),field:"data.attributes.status",sortable:!1},{label:this.$t("admin_page_plans.table.name"),field:"data.attributes.name",sortable:!1},{label:this.$t("admin_page_plans.table.subscribers"),field:"data.attributes.subscribers",sortable:!1},{label:this.$t("admin_page_plans.table.price"),field:"data.attributes.price",sortable:!1},{label:this.$t("admin_page_plans.table.storage_capacity"),field:"data.attributes.capacity",sortable:!1},{label:this.$t("admin_page_user.table.action"),sortable:!1}]}},methods:{changeStatus:function(t,a){this.$updateText("/plans/"+a+"/update","is_active",t)}},created:function(){this.config.stripe_public_key||(this.isLoading=!1)}},m=(n(304),n(0)),_=Object(m.a)(h,(function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{attrs:{id:"single-page"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.stripeConfiguredWithPlans,expression:"stripeConfiguredWithPlans"}],attrs:{id:"page-content"}},[n("MobileHeader",{attrs:{title:t.$router.currentRoute.meta.title}}),t._v(" "),n("PageHeader",{attrs:{title:t.$router.currentRoute.meta.title}}),t._v(" "),t.config.stripe_public_key?n("div",{staticClass:"content-page"},[n("div",{staticClass:"table-tools"},[n("div",{staticClass:"buttons"},[n("router-link",{attrs:{to:{name:"PlanCreate"}}},[n("MobileActionButton",{attrs:{icon:"plus"}},[t._v("\n "+t._s(t.$t("admin_page_plans.create_plan_button"))+"\n ")])],1)],1),t._v(" "),n("div",{staticClass:"searching"})]),t._v(" "),n("DatatableWrapper",{staticClass:"table table-users",attrs:{api:"/api/plans",paginator:!1,columns:t.columns},on:{data:function(a){t.plans=a},init:function(a){t.isLoading=!1}},scopedSlots:t._u([{key:"default",fn:function(a){var e=a.row;return[n("tr",[n("td",{staticStyle:{"max-width":"80px"}},[n("span",{staticClass:"cell-item"},[n("SwitchInput",{staticClass:"switch",attrs:{state:e.data.attributes.status},on:{input:function(a){return t.changeStatus(a,e.data.id)}}})],1)]),t._v(" "),n("td",{staticClass:"name",staticStyle:{"min-width":"120px"}},[n("router-link",{staticClass:"cell-item",attrs:{to:{name:"PlanSettings",params:{id:e.data.id}},tag:"div"}},[n("span",[t._v(t._s(e.data.attributes.name))])])],1),t._v(" "),n("td",[n("span",{staticClass:"cell-item"},[t._v("\n "+t._s(e.data.attributes.subscribers)+"\n ")])]),t._v(" "),n("td",[n("span",{staticClass:"cell-item"},[t._v("\n "+t._s(e.data.attributes.price_formatted)+"\n ")])]),t._v(" "),n("td",[n("span",{staticClass:"cell-item"},[t._v("\n "+t._s(e.data.attributes.capacity_formatted)+"\n ")])]),t._v(" "),n("td",[n("div",{staticClass:"action-icons"},[n("router-link",{attrs:{to:{name:"PlanSettings",params:{id:e.data.id}}}},[n("edit-2-icon",{staticClass:"icon icon-edit",attrs:{size:"15"}})],1),t._v(" "),n("router-link",{attrs:{to:{name:"PlanDelete",params:{id:e.data.id}}}},[n("trash2-icon",{staticClass:"icon icon-trash",attrs:{size:"15"}})],1)],1)])])]}}],null,!1,3279855567)})],1):t._e()],1),t._v(" "),t.isEmptyPlans?n("EmptyPageContent",{attrs:{icon:"file",title:t.$t("admin_page_plans.empty.title"),description:t.$t("admin_page_plans.empty.description")}},[n("router-link",{attrs:{to:{name:"PlanCreate"},tag:"p"}},[n("ButtonBase",{attrs:{"button-style":"theme"}},[t._v(t._s(t.$t("admin_page_plans.empty.button")))])],1)],1):t._e(),t._v(" "),t.stripeIsNotConfigured?n("EmptyPageContent",{attrs:{icon:"settings",title:t.$t("activation.stripe.title"),description:t.$t("activation.stripe.description")}},[n("router-link",{attrs:{to:{name:"AppPayments"}}},[n("ButtonBase",{attrs:{"button-style":"theme"}},[t._v(t._s(t.$t("activation.stripe.button")))])],1)],1):t._e(),t._v(" "),t.isLoading?n("div",{attrs:{id:"loader"}},[n("Spinner")],1):t._e()],1)}),[],!1,null,"38c2ecdb",null);a.default=_.exports},63:function(t,a,n){var e=n(249);"string"==typeof e&&(e=[[t.i,e,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(e,i);e.locals&&(t.exports=e.locals)},64:function(t,a,n){var e=n(251);"string"==typeof e&&(e=[[t.i,e,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(e,i);e.locals&&(t.exports=e.locals)},67:function(t,a,n){var e=n(257);"string"==typeof e&&(e=[[t.i,e,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(e,i);e.locals&&(t.exports=e.locals)},68:function(t,a,n){var e=n(259);"string"==typeof e&&(e=[[t.i,e,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(e,i);e.locals&&(t.exports=e.locals)},73:function(t,a,n){var e=n(267);"string"==typeof e&&(e=[[t.i,e,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(e,i);e.locals&&(t.exports=e.locals)},92:function(t,a,n){var e=n(305);"string"==typeof e&&(e=[[t.i,e,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(6)(e,i);e.locals&&(t.exports=e.locals)}}]);