(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{"+NaO":function(t,a,e){"use strict";e.r(a);var n=e("9ZF6"),s=e("zTYo"),i=e("vDqi"),r=e.n(i),l={name:"Plan",components:{CardNavigation:n.a,Spinner:s.a},data:function(){return{isLoading:!0,plan:void 0,pages:[{title:this.$t("admin_page_plans.tabs.settings"),route:"PlanSettings"},{title:this.$t("admin_page_plans.tabs.subscribers"),route:"PlanSubscribers"},{title:this.$t("admin_page_plans.tabs.delete"),route:"PlanDelete"}]}},created:function(){var t=this;r.a.get("/api/subscriptions/admin/plans/"+this.$route.params.id).then((function(a){t.plan=a.data.data})).finally((function(){t.isLoading=!1}))}},o=e("KHd+"),u=Object(o.a)(l,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[t.plan?e("div",{staticClass:"card shadow-card pb-0 sticky top-0 z-10"},[e("div",{staticClass:"mb-2"},[e("h1",{staticClass:"font-bold text-xl"},[t._v("\n\t\t\t\t\t"+t._s(t.plan.attributes.name)+"\n\t\t\t\t")]),t._v(" "),e("small",{staticClass:"text-sm font-bold text-gray-500"},[t._v("\n\t\t\t\t\t"+t._s(t.plan.attributes.price)+" / "+t._s(t.$t("interval."+t.plan.attributes.interval))+"\n\t\t\t\t")])]),t._v(" "),e("CardNavigation",{staticClass:"-mx-3.5",attrs:{pages:t.pages}})],1):t._e(),t._v(" "),t.isLoading?t._e():e("router-view",{attrs:{plan:t.plan}}),t._v(" "),t.isLoading?e("div",{attrs:{id:"loader"}},[e("Spinner")],1):t._e()],1)}),[],!1,null,null,null);a.default=u.exports},"9ZF6":function(t,a,e){"use strict";var n={name:"CardNavigation",props:["pages"],computed:{routeName:function(){return this.$route.name}}},s=e("KHd+"),i=Object(s.a)(n,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"whitespace-nowrap overflow-x-auto"},t._l(t.pages,(function(a,n){return e("router-link",{key:n,staticClass:"inline-block text-sm font-bold px-4 py-5 border-b-2 border-transparent border-bottom-theme",class:{"text-theme":t.routeName===a.route,"dark:text-gray-400 text-gray-600":t.routeName!==a.route},attrs:{to:{name:a.route},replace:""}},[t._v("\n\t\t"+t._s(a.title)+"\n\t")])})),1)}),[],!1,null,null,null);a.a=i.exports}}]);