export const __rspack_esm_id=7702;export const __rspack_esm_ids=[7702];export const __webpack_modules__={76693(o,s,t){t.r(s);t(18111),t(20116);var a=t(66451),e=t(5058);t.d(s,{},{fetchAddonInfo:(o,s,t)=>(0,a.X)(o,s.addon?.addons.find(o=>o.slug===t)?`/addons/${t}/info`:`/store/addons/${t}`),fetchHassioAddonChangelog:async(o,s)=>o.callApi("GET",`hassio/addons/${s}/changelog`),fetchHassioAddonDocumentation:async(o,s)=>o.callApi("GET",`hassio/addons/${s}/documentation`),fetchHassioAddonInfo:async(o,s)=>o({type:"supervisor/api",endpoint:`/addons/${s}/info`,method:"get"}),fetchHassioAddonLogs:async(o,s)=>o.callApi("GET",`hassio/addons/${s}/logs`),fetchHassioAddonsInfo:async o=>o.callWS({type:"supervisor/api",endpoint:"/addons",method:"get"}),installHassioAddon:async(o,s)=>{await o({type:"supervisor/api",endpoint:`/addons/${s}/install`,method:"post",timeout:null})},rebuildLocalAddon:async(o,s)=>o({type:"supervisor/api",endpoint:`/addons/${s}/rebuild`,method:"post",timeout:null}),reloadHassioAddons:async o=>{await o.callWS({type:"supervisor/api",endpoint:"/addons/reload",method:"post"})},restartHassioAddon:async(o,s)=>{await o({type:"supervisor/api",endpoint:`/addons/${s}/restart`,method:"post",timeout:null})},setHassioAddonOption:async(o,s,t)=>{const a=await o({type:"supervisor/api",endpoint:`/addons/${s}/options`,method:"post",data:t});if("error"===a.result)throw Error((0,e.VR)(a));return a},setHassioAddonSecurity:async(o,s,t)=>{await o({type:"supervisor/api",endpoint:`/addons/${s}/security`,method:"post",data:t})},startHassioAddon:async(o,s)=>o({type:"supervisor/api",endpoint:`/addons/${s}/start`,method:"post",timeout:null}),stopHassioAddon:async(o,s)=>o({type:"supervisor/api",endpoint:`/addons/${s}/stop`,method:"post",timeout:null}),uninstallHassioAddon:async(o,s,t)=>{await o({type:"supervisor/api",endpoint:`/addons/${s}/uninstall`,method:"post",timeout:null,data:{remove_config:t}})},updateHassioAddon:async(o,s,t)=>{await o.callWS({type:"hassio/update/addon",addon:s,backup:t})},validateHassioAddonOption:async(o,s,t)=>o({type:"supervisor/api",endpoint:`/addons/${s}/options/validate`,method:"post",data:t})})},5058(o,s,t){t(74423),t(17642),t(58004),t(33853),t(45876),t(32475),t(15024),t(31698);const a=new Set([502,503,504]);t.d(s,{},{PS:o=>o.data,Tv:o=>!!(o&&o.status_code&&a.has(o.status_code))||!(!o||!o.message||!o.message.includes("ERR_CONNECTION_CLOSED")&&!o.message.includes("ERR_CONNECTION_RESET")),VR:o=>"object"==typeof o?"object"==typeof o.body?o.body.message||"Unknown error, see supervisor logs":o.body||o.message||"Unknown error, see supervisor logs":o,lE:async(o,s)=>o({type:"supervisor/api",endpoint:`/${s}/stats`,method:"get"})})},66451(o,s,t){var a=t(79435),e=t(5058);t.d(s,{},{X:async(o,s,t)=>(0,a.v)(o.config.version,2021,2,4)?o.callWS({type:"supervisor/api",endpoint:s,method:t?.method||"get",timeout:t?.timeout??null,data:t?.data}):(0,e.PS)(await o.callApi((t.method||"get").toUpperCase(),`hassio${s}`,t?.data))})}};
//# sourceMappingURL=7702.4026c0a3ff18d188.js.map