export const __rspack_esm_id=20838;export const __rspack_esm_ids=[20838];export const __webpack_modules__={5058(e,s,o){o(74423),o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698);const t=new Set([502,503,504]);o.d(s,{},{PS:e=>e.data,Tv:e=>!!(e&&e.status_code&&t.has(e.status_code))||!(!e||!e.message||!e.message.includes("ERR_CONNECTION_CLOSED")&&!e.message.includes("ERR_CONNECTION_RESET")),VR:e=>"object"==typeof e?"object"==typeof e.body?e.body.message||"Unknown error, see supervisor logs":e.body||e.message||"Unknown error, see supervisor logs":e,lE:async(e,s)=>e({type:"supervisor/api",endpoint:`/${s}/stats`,method:"get"})})},66451(e,s,o){var t=o(79435),r=o(5058);o.d(s,{},{X:async(e,s,o)=>(0,t.v)(e.config.version,2021,2,4)?e.callWS({type:"supervisor/api",endpoint:s,method:o?.method||"get",timeout:o?.timeout??null,data:o?.data}):(0,r.PS)(await e.callApi((o.method||"get").toUpperCase(),`hassio${s}`,o?.data))})},97765(e,s,o){o.r(s);var t=o(66451);o.d(s,{},{addStoreRepository:async(e,s)=>(0,t.X)(e,"/store/repositories",{method:"post",data:{repository:s}}),fetchStoreRepositories:async e=>(0,t.X)(e,"/store/repositories"),fetchSupervisorStore:async e=>(0,t.X)(e,"/store"),removeStoreRepository:async(e,s)=>(0,t.X)(e,`/store/repositories/${s}`,{method:"delete"})})}};
//# sourceMappingURL=20838.48f4e7c1cf30c2c2.js.map