Build 612377stable
Module 290595
665 characters · in 3d53923fec5d2a87.jsDependencies
Source Raw
function(e,t,n){n.d(t,{Q:()=>d,U:()=>c});var i=n(636537),l=n(228366),r=n(652215),s=n(375708);function a(e){return null!=e&&null!=e.body&&l.h.dispatch({type:"UPDATE_CONSENTS",consents:{...e.body}}),e.body}function o(e){throw Error(e.status>=500&&e.status<=599?s.intl.string(s.t.cvJdtg):null!=e&&null!=e.body&&null!=e.body.message?e.body.message:s.intl.string(s.t.cvJdtg))}function d(){return i.Bo.get({url:r.Rsh.SETTINGS_CONSENT,oldFormErrors:!0,rejectWithError:(0,i.fT)()}).then(a,e=>Promise.reject(Error(e.body.message)))}function c(e,t){return i.Bo.post({url:r.Rsh.SETTINGS_CONSENT,body:{grant:e,revoke:t},oldFormErrors:!0,rejectWithError:(0,i.fT)()}).then(a,o)}}