2FAuth/public/build/assets/appSettingsUpdater-CwAA4o0u.js
2024-11-27 12:03:02 +01:00

3 lines
457 B
JavaScript
Vendored

import{a7 as u,a,H as i}from"./app-CzxRjCVM.js";/*! 2FAuth version 5.4.3 - Copyright (c) 2024 Bubka - https://github.com/Bubka/2FAuth */async function c(n,e,o=!1){let s=null,r=null;return await u.update(n,e,{returnError:!0}).then(t=>{s=e,a().success({type:"is-success",text:i("settings.forms.setting_saved")})}).catch(t=>{o&&t.response.status===422?r=t:a().error(t)}),{data:s,error:r}}export{c as u};
//# sourceMappingURL=appSettingsUpdater-CwAA4o0u.js.map