Files
vuefilemanager/public/chunks/plan.js
2023-10-07 11:55:28 +02:00

1 line
5.2 KiB
JavaScript
Vendored

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8355],{3037:(t,e,n)=>{n.d(e,{Z:()=>r});const a={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,n(1900).Z)(a,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-7",staticStyle:{height:"62px"},attrs:{id:"card-navigation"}},[e("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}},[e("div",{staticClass:"overflow-x-auto whitespace-nowrap"},t._l(t.pages,(function(n,a){return e("router-link",{key:a,staticClass:"border-bottom-theme inline-block border-b-2 border-transparent px-4 py-5 text-sm font-bold",class:{"text-theme":t.routeName===n.route,"text-gray-600 dark:text-gray-100":t.routeName!==n.route},attrs:{to:{name:n.route},replace:""}},[t._v("\n "+t._s(n.title)+"\n ")])})),1)])])}),[],!1,null,null,null).exports},4857:(t,e,n)=>{n.r(e),n.d(e,{default:()=>l});var a=n(3037),r=n(3592),i=n(9669),s=n.n(i);const o={name:"FixedPlan",components:{CardNavigation:a.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,n(1900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",[t.plan?e("div",{staticClass:"card sticky top-0 z-10 shadow-card",staticStyle:{"padding-bottom":"0"}},[e("div",{staticClass:"mb-2"},[e("h1",{staticClass:"text-lg font-bold sm:text-xl"},[t._v("\n "+t._s(t.plan.attributes.name)+"\n ")]),t._v(" "),e("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.".concat(t.plan.attributes.interval)))+"\n ")])]),t._v(" "),e("CardNavigation",{staticClass:"-mx-1.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).exports},9250:(t,e,n)=>{n.r(e),n.d(e,{default:()=>f});var a=n(3037),r=n(3592),i=n(9669),s=n.n(i),o=n(629);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==l(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!==l(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===l(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"MeteredPlan",components:{CardNavigation:a.Z,Spinner:r.Z},computed:u(u({},(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 f=(0,n(1900).Z)(p,(function(){var t=this,e=t._self._c;return e("div",[t.plan?e("div",{staticClass:"card sticky top-0 z-10 shadow-card",staticStyle:{"padding-bottom":"0"}},[e("div",{staticClass:"mb-2"},[e("h1",{staticClass:"text-lg font-bold sm:text-xl"},[t._v("\n "+t._s(t.plan.attributes.name)+"\n ")]),t._v(" "),e("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(" "),e("CardNavigation",{staticClass:"-mx-1",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).exports}}]);