import r from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/regenerator";import{USER_SETTINGS_KEY as e}from"./constants.js";import{getUserSetting as n}from"../../../../clients/jsonApi/index.js";var o=function(){var o=r(t.mark((function r(o){var u,a;return t.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,n(o,e);case 3:return a=r.sent,r.abrupt("return",null!==(u=null==a?void 0:a[e])&&void 0!==u?u:null);case 7:if(r.prev=7,r.t0=r.catch(0),404!==(null===r.t0||void 0===r.t0?void 0:r.t0.status)){r.next=11;break}return r.abrupt("return",null);case 11:throw r.t0;case 12:case"end":return r.stop()}}),r,null,[[0,7]])})));return function(r){return o.apply(this,arguments)}}();export{o as fetchUserSettings};
//# sourceMappingURL=fetchUserSettings.js.map
