"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/regenerator"),r=require("./constants.js"),n=require("../../../../clients/jsonApi/index.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=u(e),s=u(t),i=function(){var e=a.default(s.default.mark((function e(t){var u,a;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.getUserSetting(t,r.USER_SETTINGS_KEY);case 3:return a=e.sent,e.abrupt("return",null!==(u=null==a?void 0:a[r.USER_SETTINGS_KEY])&&void 0!==u?u:null);case 7:if(e.prev=7,e.t0=e.catch(0),404!==(null===e.t0||void 0===e.t0?void 0:e.t0.status)){e.next=11;break}return e.abrupt("return",null);case 11:throw e.t0;case 12:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}();exports.fetchUserSettings=i;
//# sourceMappingURL=fetchUserSettings.js.map
