"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8355],{3187:(t,e,a)=>{a.d(e,{Z:()=>i});const n={name:"CardNavigation",props:["pages"],computed:{routeName:function(){return this.$route.name}},data:function(){return{fixedNav:!1}},created:function(){var t=this;window.addEventListener("scroll",(function(){var e=document.getElementById("card-navigation");t.fixedNav=e.getBoundingClientRect().top<0}))}};const i=(0,a(1900).Z)(n,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mb-7",staticStyle:{height:"62px"},attrs:{id:"card-navigation"}},[a("div",{class:{"fixed top-0 left-0 right-0 z-10 rounded-none bg-white bg-opacity-50 px-6 backdrop-blur-lg backdrop-filter dark:bg-dark-foreground":t.fixedNav}},[a("div",{staticClass:"overflow-x-auto whitespace-nowrap"},t._l(t.pages,(function(e,n){return a("router-link",{key:n,staticClass:"border-bottom-theme inline-block border-b-2 border-transparent px-4 py-5 text-sm font-bold",class:{"text-theme":t.routeName===e.route,"text-gray-600 dark:text-gray-100":t.routeName!==e.route},attrs:{to:{name:e.route},replace:""}},[t._v("\n                "+t._s(e.title)+"\n            ")])})),1)])])}),[],!1,null,null,null).exports},8874:(t,e,a)=>{a.r(e),a.d(e,{default:()=>l});var n=a(3187),i=a(7318),s=a(9669),r=a.n(s);const o={name:"FixedPlan",components:{CardNavigation:n.Z,Spinner:i.Z},data:function(){return{isLoading:!0,plan:void 0,pages:[{title:this.$t("admin_page_plans.tabs.settings"),route:"PlanFixedSettings"},{title:this.$t("admin_page_plans.tabs.subscribers"),route:"PlanFixedSubscribers"},{title:this.$t("admin_page_plans.tabs.delete"),route:"PlanFixedDelete"}]}},created:function(){var t=this;r().get("/api/subscriptions/admin/plans/"+this.$route.params.id).then((function(e){t.plan=e.data.data})).finally((function(){t.isLoading=!1}))}};const l=(0,a(1900).Z)(o,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.plan?a("div",{staticClass:"card sticky top-0 z-10 shadow-card",staticStyle:{"padding-bottom":"0"}},[a("div",{staticClass:"mb-2"},[a("h1",{staticClass:"text-lg font-bold sm:text-xl"},[t._v("\n                "+t._s(t.plan.attributes.name)+"\n            ")]),t._v(" "),a("small",{staticClass:"text-xs font-bold dark:text-gray-500 text-gray-500 sm:text-sm"},[t._v("\n                "+t._s(t.plan.attributes.price)+" /\n                "+t._s(t.$t("interval."+t.plan.attributes.interval))+"\n            ")])]),t._v(" "),a("CardNavigation",{staticClass:"-mx-1.5",attrs:{pages:t.pages}})],1):t._e(),t._v(" "),t.isLoading?t._e():a("router-view",{attrs:{plan:t.plan}}),t._v(" "),t.isLoading?a("div",{attrs:{id:"loader"}},[a("Spinner")],1):t._e()],1)}),[],!1,null,null,null).exports},8790:(t,e,a)=>{a.r(e),a.d(e,{default:()=>p});var n=a(3187),i=a(7318),s=a(9669),r=a.n(s),o=a(629);function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function d(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?l(Object(a),!0).forEach((function(e){c(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function c(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const u={name:"MeteredPlan",components:{CardNavigation:n.Z,Spinner:i.Z},computed:d(d({},(0,o.Se)(["config"])),{},{pages:function(){var t=[{title:this.$t("admin_page_plans.tabs.settings"),route:"PlanMeteredSettings"},{title:this.$t("admin_page_plans.tabs.subscribers"),route:"PlanMeteredSubscribers"}];return this.plan&&"active"===this.plan.attributes.status&&t.push({title:this.$t("admin_page_plans.tabs.delete"),route:"PlanMeteredDelete"}),t}}),data:function(){return{isLoading:!0,plan:void 0}},created:function(){var t=this;r().get("/api/subscriptions/admin/plans/"+this.$route.params.id).then((function(e){t.plan=e.data.data})).finally((function(){t.isLoading=!1}))}};const p=(0,a(1900).Z)(u,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.plan?a("div",{staticClass:"card sticky top-0 z-10 shadow-card",staticStyle:{"padding-bottom":"0"}},[a("div",{staticClass:"mb-2"},[a("h1",{staticClass:"text-lg font-bold sm:text-xl"},[t._v("\n                "+t._s(t.plan.attributes.name)+"\n            ")]),t._v(" "),a("small",{staticClass:"text-xs font-bold dark:text-gray-500 text-gray-500 sm:text-sm"},[t._v("\n                "+t._s(t.$t("30 Days intervals"))+"\n            ")])]),t._v(" "),a("CardNavigation",{staticClass:"-mx-1",attrs:{pages:t.pages}})],1):t._e(),t._v(" "),t.isLoading?t._e():a("router-view",{attrs:{plan:t.plan}}),t._v(" "),t.isLoading?a("div",{attrs:{id:"loader"}},[a("Spinner")],1):t._e()],1)}),[],!1,null,null,null).exports}}]);