Files
vuefilemanager/public/chunks/plan.js
Čarodej 5b130d01af build
2022-04-19 19:11:53 +02:00

1 line
4.7 KiB
JavaScript
Vendored

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8355],{6226:(t,e,a)=>{a.d(e,{Z:()=>r});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 r=(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},7778:(t,e,a)=>{a.r(e),a.d(e,{default:()=>l});var n=a(6226),r=a(8524),i=a(9669),s=a.n(i);const o={name:"FixedPlan",components:{CardNavigation:n.Z,Spinner:r.Z},data:function(){return{isLoading:!0,plan:void 0,pages:[{title:this.$t("settings"),route:"PlanFixedSettings"},{title:this.$t("subscribers"),route:"PlanFixedSubscribers"},{title:this.$t("delete_plan"),route:"PlanFixedDelete"}]}},created:function(){var t=this;s().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},2441:(t,e,a)=>{a.r(e),a.d(e,{default:()=>p});var n=a(6226),r=a(8524),i=a(9669),s=a.n(i),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 c(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){d(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 d(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:r.Z},computed:c(c({},(0,o.Se)(["config"])),{},{pages:function(){var t=[{title:this.$t("settings"),route:"PlanMeteredSettings"},{title:this.$t("subscribers"),route:"PlanMeteredSubscribers"}];return this.plan&&"active"===this.plan.attributes.status&&t.push({title:this.$t("delete_plan"),route:"PlanMeteredDelete"}),t}}),data:function(){return{isLoading:!0,plan:void 0}},created:function(){var t=this;s().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("x_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}}]);