import{n as c,v as o,x as p,h as a,y as l,e as m,j as n,c as x,I as g,a7 as f}from"./main-239552ae.js";function v(){const{trans:e}=c();return o({mutationFn:s=>S(s),onSuccess:(s,t)=>{p(t.delete?e(a("Subscription deleted.")):e(a("Subscription cancelled.")))},onError:s=>l(s)})}function S({subscriptionId:e,...s}){return m.post(`billing/subscriptions/${e}/cancel`,s).then(t=>t.data)}function y(){const{trans:e}=c();return o({mutationFn:s=>h(s),onSuccess:()=>{p(e(a("Subscription renewed.")))},onError:s=>l(s)})}function h({subscriptionId:e}){return m.post(`billing/subscriptions/${e}/resume`).then(s=>s.data)}function N({title:e,description:s,actions:t,color:r="primary",className:d,size:b="md",leadingIcon:u,onClose:i}){return n.jsxs("div",{className:x(d,"rounded-panel px-10 pb-10",u||i?"py-4":"py-10",b==="sm"?"text-xs":"text-sm",r==="positive"&&"bg-positive/focus",r==="warning"&&"bg-warning/focus",r==="danger"&&"bg-danger/focus",r==="primary"&&"bg-primary/focus",r==="neutral"&&"border bg",r==="bgAlt"&&"border bg-alt"),children:[e&&n.jsxs("div",{className:"mb-4 flex items-center gap-6",children:[u,n.jsx("div",{className:"font-medium",children:e}),i?n.jsx(g,{size:"xs",className:"ml-auto",onClick:()=>i(),children:n.jsx(f,{})}):null]}),s&&n.jsx("div",{children:s}),t&&n.jsx("div",{className:"mt-14",children:t})]})}export{N as S,y as a,v as u};
//# sourceMappingURL=section-helper-79a95256.js.map
