import k from"./BSO4AO6R.js";import{_ as q}from"./DQFjY_gO.js";import{_ as M}from"./B_uXpdK-.js";import{f as U,z as b,S as P,o as _,j as z,w as f,a as s,J as g,c as y,t as d,k as B,s as S,A as F,i as c,B as j,a5 as D,_ as T,u as R,r as $,d as I,b as e,I as Q,aR as E,n as G}from"./DtdvSNjU.js";import{u as H}from"./DrBTbkrO.js";import{u as J}from"./BLl3WgJh.js";import"./NK7-QJiA.js";import"./BUD1sXus.js";const W={key:0},Y={key:0},K=U({__name:"SwitchTabs",props:{defaultChecked:{type:Boolean},checked:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},value:{},asChild:{type:Boolean},as:{},class:{},first:{},second:{}},emits:["update:checked"],setup(u,{emit:p}){const o=u,n=p,a=b(()=>{const{class:l,...m}=o;return m}),x=P(a,n);return(l,m)=>(_(),z(c(D),F(c(x),{class:("cn"in l?l.cn:c(j))("peer grid grid-cols-2 bg-background-interactive gap-2 border border-border rounded-full p-1 cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",o.class)}),{default:f(({checked:h})=>[s("span",{class:g(["select-none text-center rounded-full px-2 py-1 text-sm transition-all bg-opacity-70",h?"bg-background-button":"hover:bg-gray-300 hover:bg-opacity-30"])},[o.first?(_(),y("span",W,d(l.first),1)):B("",!0),S(l.$slots,"first")],2),s("span",{class:g(["select-none text-center rounded-full px-2 py-1 text-sm transition-all bg-opacity-70",h?"hover:bg-gray-300 hover:bg-opacity-30":"bg-background-button"])},[o.second?(_(),y("span",Y,d(l.second),1)):B("",!0),S(l.$slots,"second")],2)]),_:3},16,["class"]))}}),L={};function O(u,p){const o=k;return _(),z(o,{name:"fluent:checkmark-12-filled",class:"text-green-600"})}const X=T(L,[["render",O]]),Z={};function ss(u,p){const o=k;return _(),z(o,{name:"fluent:dismiss-12-filled",class:"text-destructive"})}const es=T(Z,[["render",ss]]),ts={class:"w-3/4 md:w-auto flex flex-col items-center mt-16 gap-16 mx-12"},ns=s("div",{class:"flex flex-col gap-4"},[s("span",{class:"text-title text-center"},"Ultimate server"),s("span",{class:"text-subtitle text-center"},"Take your server to the next level with premium functionalities!")],-1),cs={class:"flex flex-col bordered rounded-lg bg-background"},os={class:"flex flex-col py-8 px-12"},as={class:"flex flex-col gap-8 items-center"},is={class:"flex flex-col md:flex-row gap-8 md:gap-24 justify-evenly w-full"},ls={class:"flex flex-col items-center justify-center gap-2"},rs={class:"text-center text-6xl font-display font-semibold relative"},ds={class:"text-center text-xl"},_s={class:"flex flex-col items-center gap-6"},ps={class:"flex flex-col gap-1"},us=s("span",{class:"text-center text-lg font-semibold"},"Server quantity",-1),ms={class:"flex items-center justify-center gap-2"},hs={class:"bordered self-stretch flex items-center justify-center px-3 rounded-lg select-none w-12 text-center"},fs={class:"flex flex-col gap-1"},gs=s("span",{class:"text-center text-lg font-semibold"},"Billed",-1),xs={class:"flex items-center justify-center gap-2 relative"},vs={class:"flex flex-col mt-4 border-t border-border w-full px-4 py-2 justify-center gap-3 md:gap-1"},bs=E('
FeaturePremiumFree

',2),ys={class:"grid grid-cols-7 items-center"},ks=s("span",{class:"col-span-3"},"Unlimited temporary vc generators",-1),zs={class:"col-span-2 text-center"},ws=s("span",{class:"col-span-2 text-center select-none"},"Maximum 2",-1),Cs={class:"grid grid-cols-7 items-center"},Bs=s("span",{class:"col-span-3"},"Unlimited interfaces",-1),Ss={class:"col-span-2 text-center"},$s=s("span",{class:"col-span-2 text-center select-none"},"Maximum 1",-1),Is={class:"grid grid-cols-7 items-center"},Us=s("span",{class:"col-span-3"},"Unlimited voice roles",-1),js={class:"col-span-2 text-center"},Ts=s("span",{class:"col-span-2 text-center select-none"},"Maximum 1",-1),Vs={class:"grid grid-cols-7 items-center"},As=s("span",{class:"col-span-3"},"Unlimited templates",-1),Ns={class:"col-span-2 text-center"},qs=s("span",{class:"col-span-2 text-center select-none"},"Maximum 3",-1),Ms={class:"grid grid-cols-7 items-center"},Ps=s("span",{class:"col-span-3"},"Numbered voice channel names",-1),Fs={class:"col-span-2 text-center"},Ds={class:"col-span-2 text-center"},Rs={class:"grid grid-cols-7 items-center"},Qs=s("span",{class:"col-span-3"},"User activity variables for channel names",-1),Es={class:"col-span-2 text-center"},Gs={class:"col-span-2 text-center"},Hs={class:"grid grid-cols-7 items-center"},Js=s("span",{class:"col-span-3"},"Customisable interfaces",-1),Ws={class:"col-span-2 text-center"},Ys={class:"col-span-2 text-center"},Ks={class:"grid grid-cols-7 items-center"},Ls=s("span",{class:"col-span-3"},"Bypass voting requirements in any server",-1),Os={class:"col-span-2 text-center"},Xs={class:"col-span-2 text-center"},Zs={class:"grid grid-cols-7 items-center"},se=s("span",{class:"col-span-3"},"Badwords filter for voice channel names",-1),ee={class:"col-span-2 text-center"},te={class:"col-span-2 text-center"},ne={class:"grid grid-cols-7 items-center"},ce=s("span",{class:"col-span-3"},"Waiting rooms",-1),oe={class:"col-span-2 text-center"},ae={class:"col-span-2 text-center"},ie={class:"grid grid-cols-7 items-center"},le=s("span",{class:"col-span-3"},"Private text chats",-1),re={class:"col-span-2 text-center"},de={class:"col-span-2 text-center"},_e={class:"grid grid-cols-7 items-center"},pe=s("span",{class:"col-span-3"},"Voice role for channel owners",-1),ue={class:"col-span-2 text-center"},me={class:"col-span-2 text-center"},he={class:"grid grid-cols-7 items-center"},fe=s("span",{class:"col-span-3"},"Custom messages at voice channel creation",-1),ge={class:"col-span-2 text-center"},xe={class:"col-span-2 text-center"},ve={class:"grid grid-cols-7 items-center"},be=s("span",{class:"col-span-3"},"Fallback generators",-1),ye={class:"col-span-2 text-center"},ke={class:"col-span-2 text-center"},je=U({__name:"ultimate",setup(u){H({title:"Ultimate - Astro - Temporary Voice Channels for your Discord!",meta:[{name:"description",content:"Take your server to the next level with premium Astro functionalities"},{property:"og:title",content:"Ultimate - Astro - Temporary Voice Channels for your Discord!"},{property:"og:description",content:"Take your server to the next level with premium Astro functionalities"},{property:"og:url",content:"https://astro-bot.space/ultimate"}]});const{$astroApiClient:p}=R(),o=J().data;b(()=>{var r;return(r=o.value)==null?void 0:r.user});const n=$(1),a=$(!0),x=b(()=>a.value?(n.value*3.99).toFixed(2):(n.value*39.99).toFixed(2));function l(){n.value=n.value+1}function m(){n.value=n.value-1}function h(){try{Chargebee.getInstance().openCheckout({hostedPage:function(){return p.get_chargebee_hosted_page_checkout(a.value,n.value)},success:function(v){G("/guilds")}})}catch(r){console.error(r),toast({description:"Something went wrong initiating the checkout, please try again later",variant:"destructive"})}}return(r,v)=>{const w=k,C=M,V=K,A=q,t=X,i=es;return _(),y("div",ts,[ns,s("div",cs,[s("div",os,[s("div",as,[s("div",is,[s("div",ls,[s("span",rs," $"+d(c(x)),1),s("span",ds,[I("per "+d(c(a)?"month":"year ")+" for "+d(c(n))+" server",1),s("span",{class:g(c(n)>1?"visible":"invisible")},"s",2)])]),s("div",_s,[s("div",ps,[us,s("div",ms,[e(C,{class:"rounded-lg aspect-square text-center flex items-center justify-center",disabled:c(n)<2,onClick:m},{default:f(()=>[e(w,{name:"fluent:line-horizontal-1-24-filled",class:"size-4 m-1"})]),_:1},8,["disabled"]),s("span",hs,d(c(n)),1),e(C,{class:"rounded-lg aspect-square text-center flex items-center justify-center",onClick:l},{default:f(()=>[e(w,{name:"fluent:add-12-filled",class:"size-4 m-1"})]),_:1})])]),s("div",fs,[gs,s("div",xs,[s("div",{class:g(("cn"in r?r.cn:c(j))("absolute bg-discord-green py-1 px-2 rounded-full -top-3 -right-4 text-xs",c(a)&&"bg-opacity-50 animate-pulse",!c(a)&&"bg-opacity-95"))},"-16%",2),e(V,{checked:c(a),"onUpdate:checked":v[0]||(v[0]=N=>Q(a)?a.value=N:null),first:"Monthly",second:"Yearly"},null,8,["checked"])])])])]),s("div",null,[e(A,{onClick:h},{default:f(()=>[I(" Subscribe ")]),_:1})])])]),s("div",vs,[bs,s("div",ys,[ks,s("span",zs,[e(t,{class:"size-7"})]),ws]),s("div",Cs,[Bs,s("span",Ss,[e(t,{class:"size-7"})]),$s]),s("div",Is,[Us,s("span",js,[e(t,{class:"size-7"})]),Ts]),s("div",Vs,[As,s("span",Ns,[e(t,{class:"size-7"})]),qs]),s("div",Ms,[Ps,s("span",Fs,[e(t,{class:"size-7"})]),s("span",Ds,[e(i,{class:"size-6"})])]),s("div",Rs,[Qs,s("span",Es,[e(t,{class:"size-7"})]),s("span",Gs,[e(i,{class:"size-6"})])]),s("div",Hs,[Js,s("span",Ws,[e(t,{class:"size-7"})]),s("span",Ys,[e(i,{class:"size-6"})])]),s("div",Ks,[Ls,s("span",Os,[e(t,{class:"size-7"})]),s("span",Xs,[e(i,{class:"size-6"})])]),s("div",Zs,[se,s("span",ee,[e(t,{class:"size-7"})]),s("span",te,[e(i,{class:"size-6"})])]),s("div",ne,[ce,s("span",oe,[e(t,{class:"size-7"})]),s("span",ae,[e(i,{class:"size-6"})])]),s("div",ie,[le,s("span",re,[e(t,{class:"size-7"})]),s("span",de,[e(i,{class:"size-6"})])]),s("div",_e,[pe,s("span",ue,[e(t,{class:"size-7"})]),s("span",me,[e(i,{class:"size-6"})])]),s("div",he,[fe,s("span",ge,[e(t,{class:"size-7"})]),s("span",xe,[e(i,{class:"size-6"})])]),s("div",ve,[be,s("span",ye,[e(t,{class:"size-7"})]),s("span",ke,[e(i,{class:"size-6"})])])])])])}}});export{je as default};