import{_ as e,a as t,i as n,s as r}from"./i18n-DfIivedY.js";import{I as i}from"./app-BUWZBqJJ.js";import{PlanForm as a}from"./plan-form-a5kqclLN.js";var o=e(),s=t();function c(e){let t=(0,o.c)(44),{currency:c}=e,{t:l}=n(),u;t[0]===l?u=t[1]:(u=l(`Admin`),t[0]=l,t[1]=u);let d;t[2]===u?d=t[3]:(d={title:u,href:`/admin`},t[2]=u,t[3]=d);let f;t[4]===l?f=t[5]:(f=l(`Plans`),t[4]=l,t[5]=f);let p;t[6]===f?p=t[7]:(p={title:f,href:`/admin/plans`},t[6]=f,t[7]=p);let m;t[8]===l?m=t[9]:(m=l(`New plan`),t[8]=l,t[9]=m);let h;t[10]===m?h=t[11]:(h={title:m,href:`/admin/plans/create`},t[10]=m,t[11]=h);let g;t[12]!==d||t[13]!==p||t[14]!==h?(g=[d,p,h],t[12]=d,t[13]=p,t[14]=h,t[15]=g):g=t[15];let _;t[16]===l?_=t[17]:(_=l(`New plan · Admin`),t[16]=l,t[17]=_);let v;t[18]===_?v=t[19]:(v=(0,s.jsx)(r,{title:_}),t[18]=_,t[19]=v);let y;t[20]===l?y=t[21]:(y=l(`New plan`),t[20]=l,t[21]=y);let b;t[22]===y?b=t[23]:(b=(0,s.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight`,children:y}),t[22]=y,t[23]=b);let x;t[24]===l?x=t[25]:(x=l(`After saving, the plan is mirrored to Stripe as a Product + Price (paid plans only). The slug is auto-generated from the display name and locked once created.`),t[24]=l,t[25]=x);let S;t[26]===x?S=t[27]:(S=(0,s.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:x}),t[26]=x,t[27]=S);let C;t[28]!==b||t[29]!==S?(C=(0,s.jsxs)(`div`,{children:[b,S]}),t[28]=b,t[29]=S,t[30]=C):C=t[30];let w;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(w={name:``,monthly_conversations:500,monthly_messages:null,max_tokens_per_response:null,price_cents:4900,interval:`month`,is_active:!0,features:{remove_branding:!0}},t[31]=w):w=t[31];let T;t[32]===l?T=t[33]:(T=l(`Create plan`),t[32]=l,t[33]=T);let E;t[34]!==c||t[35]!==T?(E=(0,s.jsx)(a,{initial:w,method:`post`,action:`/admin/plans`,submitLabel:T,currency:c}),t[34]=c,t[35]=T,t[36]=E):E=t[36];let D;t[37]!==C||t[38]!==E?(D=(0,s.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4 p-4`,children:[C,E]}),t[37]=C,t[38]=E,t[39]=D):D=t[39];let O;return t[40]!==D||t[41]!==g||t[42]!==v?(O=(0,s.jsxs)(i,{breadcrumbs:g,children:[v,D]}),t[40]=D,t[41]=g,t[42]=v,t[43]=O):O=t[43],O}export{c as default};