import{bc as s,a7 as n}from"./app-BgLa5dit.js";const l={theme(e){return{url:`/api/domain/v1/themes/${e}`,key:`themes:${e}`}},themeImages(e,t){return{url:n.urlBuilder("/api/domain/v1/themes",{name:e,type:t}),key:`themes:${e}:${t}`}},themes(e){let t="/api/domain/v1/themes",m="themes";return e&&(t+=`?type=${e}`,m+=`:type:${e}`),{url:t,key:m,formatData:r=>r.sort((a,h)=>a.name.localeCompare(h.name))}},createTheme(e,t,m,r){return{url:"/api/domain/v1/themes",key:"theme",data:e,type:s.POST,invalidationKeys:"themes",success:t,error:m,always:r}},updateTheme(e,t,m,r,a){return{url:`/api/domain/v1/themes/${e}`,key:`update:theme:${e}`,data:t,type:s.PUT,success:m,error:r,always:a}},deleteTheme(e,t,m,r){return{url:`/api/domain/v1/themes/${e}`,key:`delete:theme:${e}`,type:s.DELETE,invalidationKeys:"themes",success:t,error:m,always:r}}};export{l as T};
//# sourceMappingURL=BY4vH9zH.chunk.js.map
