"use strict";(globalThis.webpackChunk_clerk_ui=globalThis.webpackChunk_clerk_ui||[]).push([["259"],{1608:function(e,i,l){l.d(i,{BillingPage:()=>f});var t=l(4518),r=l(8945),n=l(3269),s=l(6153),a=l(5073),o=l(6256),c=l(8272),g=l(8920),u=l(2861),b=l(5914),p=l(9e3),h=l(3365),d=l(7682),P=l(2916);let Y={0:"subscriptions",1:"statements",2:"payments"},_=(0,n.dm)(()=>{let e=(0,n.f0)(),{selectedTab:i,handleTabChange:l}=(0,b.i)(Y);return(0,t.Y)(c.fv,{elementDescriptor:g.$z.page,sx:e=>({gap:e.space.$8,color:e.colors.$colorForeground}),children:(0,t.FD)(c.fv,{elementDescriptor:g.$z.profilePage,elementId:g.$z.profilePage.setId("billing"),gap:4,children:[(0,t.Y)(s.Y.Root,{children:(0,t.Y)(s.Y.Title,{localizationKey:(0,u.G)("userProfile.billingPage.title"),textVariant:"h2"})}),(0,t.Y)(r.Z.Alert,{children:e.error}),(0,t.FD)(a.tU,{value:i,onChange:l,children:[(0,t.FD)(a.j7,{sx:e=>({gap:e.space.$6}),children:[(0,t.Y)(a.oz,{localizationKey:(0,u.G)("userProfile.billingPage.start.headerTitle__subscriptions")}),(0,t.Y)(a.oz,{localizationKey:(0,u.G)("userProfile.billingPage.start.headerTitle__statements")}),(0,t.Y)(a.oz,{localizationKey:(0,u.G)("userProfile.billingPage.start.headerTitle__payments")})]}),(0,t.FD)(a.T2,{children:[(0,t.FD)(a.Kp,{sx:e=>({width:"100%",flexDirection:"column"}),children:[(0,t.Y)(P.R,{title:(0,u.G)("userProfile.billingPage.subscriptionsListSection.title"),switchPlansLabel:(0,u.G)("userProfile.billingPage.subscriptionsListSection.actionLabel__switchPlan"),newSubscriptionLabel:(0,u.G)("userProfile.billingPage.subscriptionsListSection.actionLabel__newSubscription"),manageSubscriptionLabel:(0,u.G)("userProfile.billingPage.subscriptionsListSection.actionLabel__manageSubscription")}),(0,t.Y)(h.b,{})]}),(0,t.Y)(a.Kp,{sx:{width:"100%"},children:(0,t.Y)(d.T,{})}),(0,t.Y)(a.Kp,{sx:{width:"100%"},children:(0,t.Y)(p.v,{})})]})]})]})})}),f=()=>(0,t.Y)(o.m$.Provider,{value:"user",children:(0,t.Y)(_,{})})}}]);