%PDF- %PDF-
Direktori : /proc/self/root/snap/lxd/29351/share/lxd-ui/assets/ |
Current File : //proc/self/root/snap/lxd/29351/share/lxd-ui/assets/ProfileFormMenu-3458e77a.js |
import{d as l,r as p,A as f,j as s}from"./index-13b2882d.js";import{F as e}from"./FormMenuItem-c8a1a121.js";import{u as E}from"./updateMaxHeight-325b3cd4.js";import{h as I,a as N}from"./instanceValidation-45cfba9a.js";const j="Main configuration",b="Disk devices",v="Network devices",_="Resource limits",h="Security policies",S="Snapshots",g="Cloud init",C="YAML configuration",D=({isConfigOpen:o,toggleConfigOpen:c,active:d,setActive:m,hasName:u,formik:t})=>{var r;const x=l.useNotify(),a={active:d,setActive:m},i=u?void 0:"Please enter a profile name to enable this section",n=()=>{E("form-navigation","p-bottom-controls")};return p.useEffect(n,[(r=x.notification)==null?void 0:r.message]),f("resize",n),s.jsx("div",{className:"p-side-navigation--accordion form-navigation",children:s.jsx("nav",{"aria-label":"Profile form navigation",children:s.jsxs("ul",{className:"p-side-navigation__list",children:[s.jsx(e,{label:j,...a}),s.jsxs("li",{className:"p-side-navigation__item",children:[s.jsx(l.Button,{type:"button",className:"p-side-navigation__accordion-button","aria-expanded":o?"true":"false",onClick:c,disabled:!!i,title:i,children:"Advanced"}),s.jsxs("ul",{className:"p-side-navigation__list","aria-expanded":o?"true":"false",children:[s.jsx(e,{label:b,hasError:I(t),...a}),s.jsx(e,{label:v,hasError:N(t),...a}),s.jsx(e,{label:_,...a}),s.jsx(e,{label:h,...a}),s.jsx(e,{label:S,...a}),s.jsx(e,{label:g,...a})]})]}),s.jsx(e,{label:C,disableReason:i,...a})]})})})};export{g as C,b as D,j as M,v as N,D as P,_ as R,h as S,C as Y,S as a};