mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
1 line
24 KiB
JavaScript
Vendored
1 line
24 KiB
JavaScript
Vendored
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7861],{3485:(t,e,a)=>{a.d(e,{Z:()=>n});var s=a(3645),i=a.n(s)()((function(t){return t[1]}));i.push([t.id,".preview-list-icon line,.preview-list-icon path{color:inherit}",""]);const n=i},3822:(t,e,a)=>{a.d(e,{Z:()=>n});var s=a(3645),i=a.n(s)()((function(t){return t[1]}));i.push([t.id,".preview-list-icon line,.preview-list-icon rect{color:inherit}",""]);const n=i},6798:(t,e,a)=>{a.d(e,{Z:()=>n});var s=a(3645),i=a.n(s)()((function(t){return t[1]}));i.push([t.id,".color-label.purple[data-v-d470f17c]{background:rgba(157,102,254,.1);color:#9d66fe}.color-label.yellow[data-v-d470f17c]{background:rgba(255,189,45,.1);color:#ffbd2d}.color-label.green[data-v-d470f17c]{background:rgba(0,188,126,.1);color:#00bc7e}.color-label.red[data-v-d470f17c]{background:rgba(253,57,122,.1);color:#fd397a}",""]);const n=i},7395:(t,e,a)=>{a.d(e,{Z:()=>n});var s=a(3645),i=a.n(s)()((function(t){return t[1]}));i.push([t.id,".input-wrapper[data-v-615ed0c1]{display:flex;width:100%}.input-wrapper .input-label[data-v-615ed0c1]{color:#1b2539}.input-wrapper .switch-content[data-v-615ed0c1]{width:100%}.input-wrapper .switch-content[data-v-615ed0c1]:last-child{width:80px}.switch[data-v-615ed0c1]{background:#f1f1f5;height:28px;position:relative;width:50px}.switch[data-v-615ed0c1],.switch .switch-button[data-v-615ed0c1]{border-radius:50px;display:block;transition:all .3s ease}.switch .switch-button[data-v-615ed0c1]{background:#fff;box-shadow:0 2px 4px rgba(37,38,94,.1);cursor:pointer;height:22px;left:3px;position:absolute;top:3px;width:22px}.switch.active .switch-button[data-v-615ed0c1]{left:25px}.dark .switch[data-v-615ed0c1]{background:#1e2024}.dark .popup-wrapper .switch[data-v-615ed0c1]{background:#25272c}",""]);const n=i},9611:(t,e,a)=>{a.d(e,{Z:()=>n});var s=a(3645),i=a.n(s)()((function(t){return t[1]}));i.push([t.id,".table-row[data-v-4f806708]{border-radius:8px}.table-row[data-v-4f806708]:hover{background:#f4f5f6}.table-row .table-cell[data-v-4f806708]{padding-bottom:15px;padding-top:15px}.table-row .table-cell[data-v-4f806708]:first-child{padding-left:15px}.table-row .table-cell[data-v-4f806708]:last-child{padding-right:15px;text-align:right}.table-row .table-cell span[data-v-4f806708]{font-size:1em;font-weight:700}",""]);const n=i},6354:(t,e,a)=>{a.d(e,{Z:()=>o});const s={name:"CloudPlusIcon"};var i=a(3379),n=a.n(i),r=a(3485),l={insert:"head",singleton:!1};n()(r.Z,l);r.Z.locals;const o=(0,a(1900).Z)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{staticClass:"preview-list-icon",attrs:{fill:"none",stroke:"currentColor","stroke-width":"1.5","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round",width:"15px",height:"15px",viewBox:"0 0 17 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[a("path",{attrs:{d:"M14.2729998,10.7729998 C15.6774712,10.0073227 16.384111,8.38688297 15.9895447,6.83668332 C15.5949785,5.28648367 14.1996249,4.20105605 12.5999998,4.19999993 L11.7179998,4.19999993 C11.1377566,1.9556703 9.23470173,0.300843012 6.93154234,0.0378706728 C4.62838295,-0.225101666 2.40127934,0.958148431 1.33005562,3.01391529 C0.258831904,5.06968215 0.564955244,7.57295196 2.09999996,9.30999984",id:"Path"}}),t._v(" "),a("line",{attrs:{x1:"8.5",y1:"7",x2:"8.5",y2:"12",id:"Path"}}),t._v(" "),a("line",{attrs:{x1:"6",y1:"9.5",x2:"11",y2:"9.5",id:"Path"}})])}),[],!1,null,null,null).exports},2617:(t,e,a)=>{a.d(e,{Z:()=>o});const s={name:"SortingIcon"};var i=a(3379),n=a.n(i),r=a(3822),l={insert:"head",singleton:!1};n()(r.Z,l);r.Z.locals;const o=(0,a(1900).Z)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{staticClass:"preview-list-icon",attrs:{fill:"none",stroke:"currentColor","stroke-width":"1.5","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round",width:"15px",height:"15px",viewBox:"0 0 20 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[a("rect",{attrs:{x:"9.77777778",y:"0",width:"6.22222222",height:"6.22222222"}}),t._v(" "),a("rect",{attrs:{x:"9.77777778",y:"9.77777778",width:"6.22222222",height:"6.22222222"}}),t._v(" "),a("line",{attrs:{x1:"0",y1:"2",x2:"6",y2:"2"}}),t._v(" "),a("line",{attrs:{x1:"0",y1:"8",x2:"6",y2:"8"}}),t._v(" "),a("line",{attrs:{x1:"0",y1:"14",x2:"6",y2:"14"}})])}),[],!1,null,null,null).exports},3911:(t,e,a)=>{a.d(e,{Z:()=>l});var s=a(9101),i=a(6354),n=a(2617);const r={name:"MobileActionButton",props:["icon"],components:{UserCheckIcon:s._uN,HardDriveIcon:s.zvn,UploadCloudIcon:s.jkV,LinkIcon:s.xPt,Trash2Icon:s.Bf1,UsersIcon:s.oyc,CheckSquareIcon:s.HQu,DollarSignIcon:s.bkH,CreditCardIcon:s.ciH,FolderPlusIcon:s.f1I,RefreshCwIcon:s.Iyk,CloudPlusIcon:i.Z,UserPlusIcon:s.oLu,DownloadIcon:s._8t,SortingIcon:n.Z,XSquareIcon:s.Zdw,FilterIcon:s.k1n,SearchIcon:s.W1M,CheckIcon:s.nQG,TrashIcon:s.XHJ,PlusIcon:s.pOD,CopyIcon:s.TIy,ListIcon:s.DE2,GridIcon:s.pso}};const l=(0,a(1900).Z)(r,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("button",{staticClass:"mr-2 inline-block rounded-xl bg-light-background py-2 px-3.5 dark:bg-2x-dark-foreground"},[a("div",{staticClass:"flex items-center"},["hard-drive"===t.icon?a("hard-drive-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"upload-cloud"===t.icon?a("upload-cloud-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"share"===t.icon?a("link-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"trash2"===t.icon?a("trash2-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"users"===t.icon?a("users-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"user-check"===t.icon?a("user-check-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"search"===t.icon?a("search-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"refresh"===t.icon?a("refresh-cw-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"download"===t.icon?a("download-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"copy"===t.icon?a("copy-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"filter"===t.icon?a("filter-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"credit-card"===t.icon?a("credit-card-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"folder-plus"===t.icon?a("folder-plus-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"th-list"===t.icon?a("list-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"trash"===t.icon?a("trash-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"th"===t.icon?a("grid-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"user-plus"===t.icon?a("user-plus-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"plus"===t.icon?a("plus-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"check-square"===t.icon?a("check-square-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"x-square"===t.icon?a("x-square-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"check"===t.icon?a("check-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"dollar-sign"===t.icon?a("dollar-sign-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"preview-sorting"===t.icon?a("sorting-icon",{staticClass:"vue-feather dark-text-theme preview-sorting"}):t._e(),t._v(" "),"cloud-plus"===t.icon?a("cloud-plus-icon",{staticClass:"vue-feather dark-text-theme preview-sorting"}):t._e(),t._v(" "),t.$slots.default?a("span",{staticClass:"ml-2 text-sm font-bold"},[t._t("default")],2):t._e()],1)])}),[],!1,null,null,null).exports},3426:(t,e,a)=>{a.d(e,{Z:()=>o});const s={name:"ColorLabel",props:["color"]};var i=a(3379),n=a.n(i),r=a(6798),l={insert:"head",singleton:!1};n()(r.Z,l);r.Z.locals;const o=(0,a(1900).Z)(s,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("b",{staticClass:"color-label inline-block rounded-lg py-1 px-2 text-xs font-bold capitalize",class:t.color},[t._t("default")],2)}),[],!1,null,"d470f17c",null).exports},667:(t,e,a)=>{a.d(e,{Z:()=>o});const s={name:"SwitchInput",props:["label","name","state","info","input","isDisabled"],data:function(){return{isSwitched:void 0}},methods:{changeState:function(){this.isDisabled||(this.isSwitched=!this.isSwitched,this.$emit("input",this.isSwitched))}},mounted:function(){this.isSwitched=this.state}};var i=a(3379),n=a.n(i),r=a(7395),l={insert:"head",singleton:!1};n()(r.Z,l);r.Z.locals;const o=(0,a(1900).Z)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"switch-content"},[t.label?a("label",{staticClass:"input-label"},[t._v(" "+t._s(t.label)+": ")]):t._e(),t._v(" "),t.info?a("small",{staticClass:"input-info"},[t._v("\n "+t._s(t.info)+"\n ")]):t._e()]),t._v(" "),a("div",{staticClass:"switch-content text-right"},[a("div",{staticClass:"switch",class:{active:t.state},on:{click:t.changeState}},[a("div",{staticClass:"switch-button"})])])])}),[],!1,null,"615ed0c1",null).exports},8720:(t,e,a)=>{a.d(e,{Z:()=>g});var s=a(9101);const i={props:["data"],computed:{normalizedColumns:function(){return this.data.id&&delete this.data.id,Object.values(this.data)}}};var n=a(3379),r=a.n(n),l=a(9611),o={insert:"head",singleton:!1};r()(l.Z,o);l.Z.locals;var c=a(1900);const d=(0,c.Z)(i,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",{staticClass:"table-row"},t._l(t.normalizedColumns,(function(e,s){return a("td",{key:s,staticClass:"table-cell"},[a("span",[t._v(t._s(e))])])})),0)}),[],!1,null,"4f806708",null).exports;var u=a(9669),p=a.n(u);const h={name:"DatatableWrapper",props:["paginator","tableData","columns","scope","api"],components:{ChevronRightIcon:s.XCv,ChevronLeftIcon:s.wyc,DatatableCell:d,ChevronUpIcon:s.g8U},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,e){e&&(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 e=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,p().get(this.URI).then((function(t){e.data=t.data,e.$emit("data",t.data)})).catch((function(){return e.$isSomethingWrong()})).finally((function(){e.$emit("init",!0),e.isLoading=!1}))}},created:function(){this.api&&this.getPage(this.pageIndex),this.tableData&&(this.data=this.tableData,this.isLoading=!1)}};const g=(0,c.Z)(h,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"w-full"},[t.hasData?a("table",{staticClass:"w-full"},[a("thead",[a("tr",{staticClass:"whitespace-nowrap"},t._l(t.columns,(function(e,s){return e.hidden?t._e():a("th",{key:s,staticClass:"text-left",class:{"sortable cursor-pointer":e.sortable,"text-right":Object.values(t.columns).length-1===s},on:{click:function(a){return t.sort(e.field,e.sortable)}}},[a("span",{staticClass:"text-xs text-gray-400 dark:text-gray-500"},[t._v("\n "+t._s(e.label)+"\n ")]),t._v(" "),e.sortable?a("chevron-up-icon",{staticClass:"vue-feather inline-block text-gray-300 dark:text-gray-500",class:{"arrow-down":"ASC"===t.filter.sort},attrs:{size:"12"}}):t._e()],1)})),0)]),t._v(" "),a("tbody",{staticClass:"table-body"},[t._l(t.data.data,(function(e){return t._t("default",(function(){return[a("DatatableCell",{key:e.id,attrs:{data:e}})]}),{row:e})}))],2)]):t._e(),t._v(" "),t.isLoading||t.hasData?t._e():t._t("empty-page"),t._v(" "),t.paginator&&t.hasData?a("div",{staticClass:"mt-6 flex items-center justify-between"},[t.data.meta.total>15&&t.data.meta.last_page<=6?a("ul",{staticClass:"pagination flex items-center"},[a("li",{staticClass:"previous inline-block p-1"},[a("a",{staticClass:"page-link",class:{"cursor-default opacity-20":1===t.pageIndex},on:{click:function(e){return t.goToPage(t.pageIndex-1)}}},[a("chevron-left-icon",{staticClass:"inline-block",attrs:{size:"14"}})],1)]),t._v(" "),t._l(t.data.meta.last_page,(function(e,s){return a("li",{key:s,staticClass:"inline-block p-1",on:{click:function(a){return t.goToPage(e)}}},[a("a",{staticClass:"page-link",class:{"bg-light-background dark:bg-4x-dark-foreground dark:text-gray-300":t.pageIndex===e}},[t._v("\n "+t._s(e)+"\n ")])])})),t._v(" "),a("li",{staticClass:"next inline-block p-1"},[a("a",{staticClass:"page-link",class:{"cursor-default opacity-20":t.pageIndex===t.data.meta.last_page},on:{click:function(e){return t.goToPage(t.pageIndex+1)}}},[a("chevron-right-icon",{staticClass:"inline-block",attrs:{size:"14"}})],1)])],2):t._e(),t._v(" "),t.data.meta.total>15&&t.data.meta.last_page>6?a("ul",{staticClass:"pagination flex items-center"},[a("li",{staticClass:"previous inline-block p-1"},[a("a",{staticClass:"page-link",class:{"cursor-default opacity-20":1===t.pageIndex},on:{click:function(e){return t.goToPage(t.pageIndex-1)}}},[a("chevron-left-icon",{staticClass:"inline-block",attrs:{size:"14"}})],1)]),t._v(" "),t.pageIndex>=5?a("li",{staticClass:"inline-block p-1",on:{click:function(e){return t.goToPage(1)}}},[a("a",{staticClass:"page-link"},[t._v(" 1 ")])]):t._e(),t._v(" "),t._l(5,(function(e,s){return t.pageIndex<5?a("li",{key:s,staticClass:"inline-block p-1",on:{click:function(a){return t.goToPage(e)}}},[a("a",{staticClass:"page-link",class:{"bg-light-background dark:bg-4x-dark-foreground dark:text-gray-300":t.pageIndex===e}},[t._v("\n "+t._s(e)+"\n ")])]):t._e()})),t._v(" "),t.pageIndex>=5?a("li",{staticClass:"inline-block p-1"},[a("a",{staticClass:"page-link"},[t._v("...")])]):t._e(),t._v(" "),t._l(t.floatPages,(function(e,s){return t.pageIndex>=5&&t.pageIndex<t.data.meta.last_page-3?a("li",{key:s,staticClass:"inline-block p-1",on:{click:function(a){return t.goToPage(e)}}},[a("a",{staticClass:"page-link",class:{"bg-light-background dark:bg-4x-dark-foreground dark:text-gray-300":t.pageIndex===e}},[t._v("\n "+t._s(e)+"\n ")])]):t._e()})),t._v(" "),t.pageIndex<t.data.meta.last_page-3?a("li",{staticClass:"inline-block p-1"},[a("a",{staticClass:"page-link"},[t._v("...")])]):t._e(),t._v(" "),t._l(5,(function(e,s){return t.pageIndex>t.data.meta.last_page-4?a("li",{key:s,staticClass:"inline-block p-1",on:{click:function(e){t.goToPage(t.data.meta.last_page-(4-s))}}},[a("a",{staticClass:"page-link",class:{"bg-light-background dark:bg-4x-dark-foreground dark:text-gray-300":t.pageIndex===t.data.meta.last_page-(4-s)}},[t._v("\n "+t._s(t.data.meta.last_page-(4-s))+"\n ")])]):t._e()})),t._v(" "),t.pageIndex<t.data.meta.last_page-3?a("li",{staticClass:"inline-block p-1",on:{click:function(e){return t.goToPage(t.data.meta.last_page)}}},[a("a",{staticClass:"page-link"},[t._v("\n "+t._s(t.data.meta.last_page)+"\n ")])]):t._e(),t._v(" "),a("li",{staticClass:"next inline-block p-1"},[a("a",{staticClass:"page-link",class:{"cursor-default opacity-20":t.pageIndex===t.data.meta.last_page},on:{click:function(e){return t.goToPage(t.pageIndex+1)}}},[a("chevron-right-icon",{staticClass:"inline-block",attrs:{size:"14"}})],1)])],2):t._e(),t._v(" "),a("span",{staticClass:"text-xs text-gray-600 dark:text-gray-500"},[t._v("\n Showing "+t._s(t.data.meta.from)+" - "+t._s(t.data.meta.to)+" from "+t._s(t.data.meta.total)+" records\n ")])]):t._e()],2)}),[],!1,null,null,null).exports},1419:(t,e,a)=>{a.r(e),a.d(e,{default:()=>g});var s=a(8720),i=a(3911),n=a(667),r=a(6746),l=a(3426),o=a(9101),c=a(629);function d(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function u(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?d(Object(a),!0).forEach((function(e){p(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function p(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const h={name:"Plans",components:{MobileActionButton:i.Z,DatatableWrapper:s.Z,SwitchInput:n.Z,ColorLabel:l.Z,Trash2Icon:o.Bf1,ButtonBase:r.Z,Edit2Icon:o.me4},computed:u(u({},(0,c.Se)(["config"])),{},{createPlanRoute:function(){return{metered:"CreateMeteredPlan",fixed:"CreateFixedPlan"}[this.config.subscriptionType]},columns:function(){return{metered:[{label:this.$t("Name"),field:"name",sortable:!0},{label:this.$t("Status"),field:"status",sortable:!0},{label:this.$t("Currency"),field:"currency",sortable:!0},{label:this.$t("Interval"),field:"interval",sortable:!0},{label:this.$t("admin_page_plans.table.subscribers"),sortable:!1},{label:this.$t("admin_page_user.table.action"),sortable:!1}],fixed:[{label:this.$t("Visibility"),field:"visible",sortable:!0},{label:this.$t("Name"),field:"name",sortable:!0},{label:this.$t("Price"),field:"amount",sortable:!0},{label:this.$t("Interval"),field:"interval",sortable:!0},{label:this.$t("admin_page_plans.table.subscribers"),sortable:!1},{label:this.$t("Storage"),sortable:!1},{label:this.$t("admin_page_user.table.action"),sortable:!1}]}[this.config.subscriptionType]}})};const g=(0,a(1900).Z)(h,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.config.isEmptyPlans?t._e():a("div",{staticClass:"card shadow-card"},[t.config.isCreatedMeteredPlan&&"fixed"!==t.config.subscriptionType?t._e():a("div",{staticClass:"mb-6"},[a("router-link",{attrs:{to:{name:t.createPlanRoute}}},[a("MobileActionButton",{attrs:{icon:"plus"}},[t._v("\n "+t._s(t.$t("admin_page_plans.create_plan_button"))+"\n ")])],1)],1),t._v(" "),a("DatatableWrapper",{staticClass:"overflow-x-auto",attrs:{api:"/api/subscriptions/admin/plans",paginator:!0,columns:t.columns},on:{data:function(e){t.plans=e},init:function(e){t.isLoading=!1}},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return["metered"===t.config.subscriptionType?a("tr",{staticClass:"whitespace-nowrap border-b border-dashed border-light dark:border-opacity-5"},[a("td",{staticClass:"py-5 pr-3 md:pr-1"},[a("router-link",{staticClass:"text-sm font-bold",attrs:{to:{name:"PlanMeteredSettings",params:{id:s.data.id}}}},[t._v("\n "+t._s(s.data.attributes.name)+"\n ")])],1),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},[a("ColorLabel",{attrs:{color:t.$getPlanStatusColor(s.data.attributes.status)}},[t._v("\n "+t._s(s.data.attributes.status)+"\n ")])],1),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},[a("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.attributes.currency)+"\n ")])]),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},[a("span",{staticClass:"text-sm font-bold capitalize"},[t._v("\n "+t._s(s.data.attributes.interval)+"\n ")])]),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},[a("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.attributes.subscribers)+"\n ")])]),t._v(" "),a("td",{staticClass:"pl-3 text-right md:pl-1"},[a("div",{staticClass:"flex w-full justify-end space-x-2"},[a("router-link",{staticClass:"flex h-8 w-8 items-center justify-center rounded-md bg-light-background transition-colors hover:bg-green-100 dark:bg-2x-dark-foreground",attrs:{to:{name:"PlanMeteredSettings",params:{id:s.data.id}}}},[a("Edit2Icon",{staticClass:"opacity-75",attrs:{size:"15"}})],1),t._v(" "),"archived"!==s.data.attributes.status?a("router-link",{staticClass:"flex h-8 w-8 items-center justify-center rounded-md bg-light-background transition-colors hover:bg-red-100 dark:bg-2x-dark-foreground",attrs:{to:{name:"PlanMeteredDelete",params:{id:s.data.id}}}},[a("Trash2Icon",{staticClass:"opacity-75",attrs:{size:"15"}})],1):t._e()],1)])]):t._e(),t._v(" "),"fixed"===t.config.subscriptionType?a("tr",{staticClass:"whitespace-nowrap border-b border-dashed border-light dark:border-opacity-5"},[a("td",{staticClass:"py-5 pr-3 md:pr-1"},[a("SwitchInput",{staticClass:"switch",attrs:{state:s.data.attributes.visible},on:{input:function(e){return t.$updateInput("/subscriptions/admin/plans/"+s.data.id,"visible",s.data.attributes.visible)}},model:{value:s.data.attributes.visible,callback:function(e){t.$set(s.data.attributes,"visible",e)},expression:"row.data.attributes.visible"}})],1),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},[a("router-link",{staticClass:"text-sm font-bold",attrs:{to:{name:"PlanFixedSettings",params:{id:s.data.id}}}},[t._v("\n "+t._s(s.data.attributes.name)+"\n ")])],1),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},[a("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.attributes.price)+"\n ")])]),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},[a("span",{staticClass:"text-sm font-bold capitalize"},[t._v("\n "+t._s(s.data.attributes.interval)+"\n ")])]),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},[a("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.attributes.subscribers)+"\n ")])]),t._v(" "),a("td",{staticClass:"px-3 md:px-1"},[a("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(s.data.attributes.features.max_storage_amount)+"\n GB\n ")])]),t._v(" "),a("td",{staticClass:"pl-3 text-right md:pl-1"},[a("div",{staticClass:"flex w-full justify-end space-x-2"},[a("router-link",{staticClass:"flex h-8 w-8 items-center justify-center rounded-md bg-light-background transition-colors hover:bg-green-100 dark:bg-2x-dark-foreground",attrs:{to:{name:"PlanFixedSettings",params:{id:s.data.id}}}},[a("Edit2Icon",{staticClass:"opacity-75",attrs:{size:"15"}})],1),t._v(" "),a("router-link",{staticClass:"flex h-8 w-8 items-center justify-center rounded-md bg-light-background transition-colors hover:bg-red-100 dark:bg-2x-dark-foreground",attrs:{to:{name:"PlanFixedDelete",params:{id:s.data.id}}}},[a("Trash2Icon",{staticClass:"opacity-75",attrs:{size:"15"}})],1)],1)])]):t._e()]}}],null,!1,2903846570)})],1),t._v(" "),t.config.isEmptyPlans?a("div",{staticClass:"flex items-center justify-center fixed top-0 bottom-0 left-0 right-0"},[a("div",{staticClass:"text-center"},[a("img",{staticClass:"mb-6 inline-block w-28",attrs:{src:"https://twemoji.maxcdn.com/v/13.1.0/svg/1f9fe.svg",alt:"transaction"}}),t._v(" "),a("h1",{staticClass:"mb-1 text-2xl font-bold"},[t._v("\n "+t._s(t.$t("There is Nothing"))+"\n ")]),t._v(" "),a("p",{staticClass:"text-sm text-gray-600"},[t._v("\n "+t._s(t.$t("All your plans will be visible here"))+"\n ")]),t._v(" "),a("router-link",{staticClass:"mt-6 inline-block",attrs:{to:{name:t.createPlanRoute}}},[a("ButtonBase",{staticClass:"action-confirm",attrs:{"button-style":"theme"}},[t._v("\n "+t._s(t.$t("Create First Plan"))+"\n ")])],1)],1)]):t._e()])}),[],!1,null,null,null).exports}}]); |