"use strict";(globalThis.webpackChunk_clerk_ui=globalThis.webpackChunk_clerk_ui||[]).push([["289"],{80343:function(i,e,n){n.d(e,{OrganizationBillingPage:()=>f});var l=n(61564),t=n(23707),a=n(63269),o=n(76153),r=n(69835),s=n(57477),c=n(46256),g=n(18272),b=n(58920),p=n(22861),h=n(75914),d=n(69e3),u=n(83365),P=n(97682),z=n(12916);let Y={0:"subscriptions",1:"statements",2:"payments"},_=(0,a.dm)(()=>{let i=(0,a.f0)(),{selectedTab:e,handleTabChange:n}=(0,h.i)(Y);return(0,l.Y)(g.fv,{elementDescriptor:b.$z.page,sx:i=>({gap:i.space.$8,color:i.colors.$colorForeground}),children:(0,l.FD)(g.fv,{elementDescriptor:b.$z.profilePage,elementId:b.$z.profilePage.setId("billing"),gap:4,children:[(0,l.Y)(o.Y.Root,{children:(0,l.Y)(o.Y.Title,{localizationKey:(0,p.G)("organizationProfile.billingPage.title"),textVariant:"h2"})}),(0,l.Y)(t.Z.Alert,{children:i.error}),(0,l.FD)(r.tU,{value:e,onChange:n,children:[(0,l.FD)(r.j7,{sx:i=>({gap:i.space.$6}),children:[(0,l.Y)(r.oz,{localizationKey:(0,p.G)("organizationProfile.billingPage.start.headerTitle__subscriptions")}),(0,l.Y)(r.oz,{localizationKey:(0,p.G)("organizationProfile.billingPage.start.headerTitle__statements")}),(0,l.Y)(r.oz,{localizationKey:(0,p.G)("organizationProfile.billingPage.start.headerTitle__payments")})]}),(0,l.FD)(r.T2,{children:[(0,l.FD)(r.Kp,{sx:{width:"100%",flexDirection:"column"},children:[(0,l.Y)(z.R,{title:(0,p.G)("organizationProfile.billingPage.subscriptionsListSection.title"),switchPlansLabel:(0,p.G)("organizationProfile.billingPage.subscriptionsListSection.actionLabel__switchPlan"),newSubscriptionLabel:(0,p.G)("organizationProfile.billingPage.subscriptionsListSection.actionLabel__newSubscription"),manageSubscriptionLabel:(0,p.G)("organizationProfile.billingPage.subscriptionsListSection.actionLabel__manageSubscription")}),(0,l.Y)(s.EH,{condition:i=>i({permission:"org:sys_billing:manage"}),children:(0,l.Y)(u.b,{})})]}),(0,l.Y)(r.Kp,{sx:{width:"100%"},children:(0,l.Y)(P.T,{})}),(0,l.Y)(r.Kp,{sx:{width:"100%"},children:(0,l.Y)(d.v,{})})]})]})]})})}),f=()=>(0,l.Y)(c.m$.Provider,{value:"organization",children:(0,l.Y)(_,{})})}}]);