File "use-resume-subscription-0d036444.js"
Full Path: /home/filmgtex/hdfilmcehennemi.website/public/build/assets/use-resume-subscription-0d036444.js
File size: 639 bytes
MIME-type: text/plain
Charset: utf-8
import{i as r,p as o,t as i,d as e,v as u,w as c}from"./main-a8767cd0.js";function b(){const{trans:n}=r();return o(s=>a(s),{onSuccess:(s,t)=>{i(t.delete?n(e("Subscription deleted.")):n(e("Subscription cancelled.")))},onError:s=>u(s)})}function a({subscriptionId:n,...s}){return c.post(`billing/subscriptions/${n}/cancel`,s).then(t=>t.data)}function S(){const{trans:n}=r();return o(s=>p(s),{onSuccess:()=>{i(n(e("Subscription renewed.")))},onError:s=>u(s)})}function p({subscriptionId:n}){return c.post(`billing/subscriptions/${n}/resume`).then(s=>s.data)}export{S as a,b as u};
//# sourceMappingURL=use-resume-subscription-0d036444.js.map