(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6067],{87789:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/billing",function(){return i(50394)}])},50394:function(e,t,i){"use strict";i.r(t);var r=i(85893),l=i(84053),s=i(5121),n=i(94184),a=i.n(n),d=i(11163),c=i(67294),o=i(86501);let x=()=>{let e=(0,l.useSupabaseClient)(),t=(0,l.useUser)(),i=(0,d.useRouter)(),[n,x]=(0,c.useState)(!0),[h,m]=(0,c.useState)(null);(0,c.useEffect)(()=>{async function i(t){let{data:i}=await e.from("customer").select("credits, subscribed").eq("user_id",t.id);i&&Array.isArray(i)&&i.length>0&&m(i[0].subscribed),x(!1)}t&&i(t)},[t]);let p=async()=>{let e=o.Am.loading("Redirecting...");await s.Z.post("/api/checkout").then(e=>e.data).then(e=>{i.push(e.url)}).catch(t=>{var i,r;console.log(t),o.Am.error(null===(i=t.response)||void 0===i?void 0:null===(r=i.data)||void 0===r?void 0:r.message,{id:e})})};return(0,r.jsx)("main",{className:"container mx-auto grid flex-grow place-items-center overflow-auto px-2 lg:px-10 xl:px-32",children:(0,r.jsxs)("div",{className:"px-4 py-8",children:[(0,r.jsxs)("div",{className:"py-4 text-zinc-300",children:["Get started with a Baseplate plan,"," ",(0,r.jsxs)("span",{className:"font-semibold text-fuchsia-500",children:[" ","no credit card required!"," "]})]}),(0,r.jsxs)("div",{className:"mb-4 grid w-full grid-cols-1 space-x-2 md:grid-cols-3",children:[(0,r.jsx)("div",{className:a()("h-full rounded-md border border-zinc-700 bg-zinc-900 p-0.5",h?"":"bg-gradient-to-r from-primary-700 to-yellow-500"),children:(0,r.jsxs)("div",{className:"flex h-full flex-col justify-between rounded-md bg-zinc-900 px-6 py-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"text-2xl font-semibold text-primary-700",children:["Pro"," ",!1===h?(0,r.jsx)("p",{className:"font-lighter text-2xl text-white",children:"Current plan"}):(0,r.jsx)("p",{className:"font-lighter text-2xl text-white",children:"7 day trial (no credit card required) then $35 per seat"})]}),(0,r.jsx)("div",{className:"py-2 text-lg text-zinc-300",children:"For getting started with your LLM project"}),(0,r.jsxs)("ul",{className:"md:text-med my-2 list-inside list-disc px-10 text-left text-lg font-light",children:[(0,r.jsx)("li",{children:"Collaborative Playground"}),(0,r.jsx)("li",{children:"Vector DB interface"}),(0,r.jsx)("li",{children:"Unlimited templates"}),(0,r.jsxs)("li",{children:["1 GB Embeddings"," ",(0,r.jsx)("span",{className:"text-xs font-light text-zinc-300",children:"then $1/GB after"})]}),(0,r.jsx)("li",{children:"2 endpoints per user"}),(0,r.jsx)("li",{children:"RBAC"}),(0,r.jsx)("li",{children:"Unlimited standard datasets"})]})]}),null===h?(0,r.jsx)("button",{onClick:p,className:"mr-2 mt-2 flex w-fit flex-row rounded-md bg-primary-700 px-2 py-2 text-sm font-medium text-white hover:bg-primary-800 focus:outline-none focus:ring-4 focus:ring-primary-300 dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800 lg:px-3",children:"Start new trial"}):null]})}),(0,r.jsx)("div",{className:a()("h-full rounded-md border border-zinc-700 bg-zinc-900 p-0.5",h?"bg-gradient-to-r from-primary-700 to-yellow-500":""),children:(0,r.jsxs)("div",{className:"flex h-full flex-col justify-between rounded-md bg-zinc-900 px-6 py-6",children:[(0,r.jsxs)("div",{className:"text-2xl font-semibold text-primary-700",children:["Team"," ",h?(0,r.jsx)("p",{className:"font-lighter text-2xl text-white",children:"Current plan"}):(0,r.jsx)("p",{className:"font-lighter text-2xl text-white",children:"starts at $500 per team/month"})]}),(0,r.jsx)("div",{className:"py-2 text-lg text-zinc-300",children:"For scaling and deploying your LLM project"}),(0,r.jsxs)("ul",{className:"md:text-med my-4 list-inside list-disc px-10 text-left text-lg font-light",children:[(0,r.jsx)("li",{children:"Unlimited Endpoints"}),(0,r.jsx)("li",{children:"Dedicated Slack channel"}),(0,r.jsxs)("li",{children:["10 GB Embeddings"," ",(0,r.jsx)("span",{className:"text-xs font-light text-zinc-300",children:"then $1/GB after"})]}),(0,r.jsx)("li",{children:"Up to 20 seats"}),(0,r.jsx)("li",{children:"PII handling"}),(0,r.jsx)("li",{children:"Unlimited standard & hybrid datasets"}),(0,r.jsx)("li",{children:"SSO"})]}),h?null:(0,r.jsx)("a",{href:"mailto:founders@trybaseplate.io",rel:"noopener noreferrer",target:"_blank",className:" font-lighter w-fit rounded bg-zinc-700 p-3 text-sm text-white hover:bg-zinc-400 hover:bg-opacity-50",children:"Contact Us"})]})}),(0,r.jsx)("div",{className:"h-full rounded-md border border-zinc-700 bg-zinc-900",children:(0,r.jsxs)("div",{className:"px-6 py-6",children:[(0,r.jsx)("div",{className:"text-2xl font-semibold text-primary-700",children:(0,r.jsx)("div",{className:" text-primary-700 ",children:"Enterprise "})}),(0,r.jsx)("div",{className:"py-5 text-lg text-zinc-300",children:"For large organizations with data centers"}),(0,r.jsxs)("ul",{className:"md:text-med my-4 list-inside list-disc px-10 text-left text-lg font-light",children:[(0,r.jsx)("li",{children:"Self-Hosted Application"}),(0,r.jsx)("li",{children:"Self-Hosted Embeddings"}),(0,r.jsx)("li",{children:"Unlimited seats"}),(0,r.jsx)("li",{children:"Unlimited storage"})]}),(0,r.jsx)("a",{href:"mailto:founders@trybaseplate.io",rel:"noopener noreferrer",target:"_blank",className:" font-lighter rounded bg-zinc-700 p-3 text-sm text-white hover:bg-zinc-400 hover:bg-opacity-50",children:"Contact Us"})]})})]}),(0,r.jsx)("button",{onClick:async()=>{o.Am.loading("Redirecting..."),await s.Z.post("/api/portal").then(e=>e.data).then(e=>{i.push(e.url)}).catch(e=>{console.log(e)})},className:"mr-2 mt-2 flex w-fit flex-row rounded-md bg-primary-700 px-2 py-2 text-sm font-medium text-white hover:bg-primary-800 focus:outline-none focus:ring-4 focus:ring-primary-300 dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800 lg:px-3",children:"Manage subscription"})]})})};t.default=x}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=87789)}),_N_E=e.O()}]);