%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/lxd/current/share/lxd-ui/assets/
Upload File :
Create Path :
Current File : //snap/lxd/current/share/lxd-ui/assets/instanceDelete-e714bd59.js

import{j as n,d as c}from"./index-13b2882d.js";const u={start:{Frozen:"unfreeze",Stopped:"start"},restart:{Freezing:"restart",Running:"restart"},freeze:{Running:"freeze"},stop:{Freezing:"stop",Running:"stop",Starting:"stop",Frozen:"stop"}},d=(t,s)=>{const e=u[t];return e?e[s]:void 0},h=(t,s)=>{const e=[];return t.forEach(r=>{const o=d(s,r.status);o&&e.push({name:r.name,project:r.project,action:o})}),e},j=t=>({unfreeze:"started",start:"started",restart:"restarted",freeze:"frozen",stop:"stopped"})[t],x=t=>t===1?"instance":"instances",z=t=>t===1?"snapshot":"snapshots",b=t=>({Frozen:"frozen",Stopped:"stopped",Running:"running"})[t],F=({totalCount:t,filteredNames:s,itemName:e,parentName:r,selectedNames:o,setSelectedNames:a})=>{const l=o.length===s.length,i=()=>{a(s)},p=()=>{a([])};return n.jsx("div",{children:l?n.jsxs(n.Fragment,{children:[s.length===1?n.jsxs(n.Fragment,{children:[n.jsx("b",{children:"1"})," ",e," is selected."," "]}):n.jsxs(n.Fragment,{children:["All ",n.jsx("b",{children:s.length})," ",e,"s selected."," "]}),n.jsx(c.Button,{appearance:"link",className:"u-no-margin--bottom u-no-padding--top",onClick:p,children:"Clear selection"})]}):n.jsxs(n.Fragment,{children:[n.jsx("b",{children:o.length})," ",e,o.length>1&&"s"," selected."," ",n.jsxs(c.Button,{appearance:"link",className:"u-no-margin--bottom u-no-padding--top",onClick:i,children:["Select all ",n.jsx("b",{children:s.length})," ",s.length===t?`${e}s in ${r}`:`filtered ${e}s`]})]})})},S=["Error","Stopped"];export{F as S,x as a,h as b,j as c,S as d,d as i,z as p,b as s};

Zerion Mini Shell 1.0