import{b2 as h,bc as m,az as x,ao as e,aF as C,L as v,a_ as j,iA as L,aq as i,bU as c,v as S,f,e as A}from"./app-k0jcl5PQ.js";import{L as o}from"./F6ooBnzv.chunk.js";const t="settings.deleteLocalCache",a=v.encloseNamespace(t);function b(s){const l=h(),n=m(),r=x(o.device(s.deviceId));function d(){const g=o.deleteDevice(s.deviceId,p,()=>n.error(a("error")),s.closePopup);l(g)}function p(){n.success(a("success")),S.trigger({application:A.SETTINGS,action:f.Settings.LOCAL_CACHES})}const u=!!r.data;return e.jsxs(C,{title:a("title"),closePopup:s.closePopup,showLoadingSpinner:!u,children:[e.jsxs("div",{className:"alert alert-warning",role:"alert",children:[e.jsx(j,{svg:L,className:"align-middle me-2 svg-container"}),e.jsx("span",{className:"align-middle",children:e.jsx(i,{namespace:t,phrase:"warning"})})]}),e.jsx("p",{children:e.jsx(i,{namespace:t,phrase:"message"})}),e.jsxs(c,{children:[e.jsx(c.Cancel,{onClick:s.closePopup}),e.jsx(c.Submit,{variant:"danger",text:a("title"),onClick:d})]})]})}export{b as DeleteLocalCacheView};
//# sourceMappingURL=BgxmE1oj.chunk.js.map
