0x1949 Team - FAZEMRX - MANAGER
Edit File: InstanceFormMenu-dff7cf6c.js
import{d as i,r as I,A as _,j as s}from"./index-13b2882d.js";import{F as e}from"./FormMenuItem-c8a1a121.js";import{u as j}from"./updateMaxHeight-325b3cd4.js";const N="Main configuration",g="Disk devices",b="Network devices",f="Resource limits",v="Security policies",E="Snapshots",S="Cloud init",l="YAML configuration",A=({isConfigOpen:n,isConfigDisabled:t,toggleConfigOpen:c,active:d,setActive:m,hasDiskError:u,hasNetworkError:x})=>{var r;const p=i.useNotify(),a={active:d,setActive:m},o=()=>{j("form-navigation","p-bottom-controls")};return I.useEffect(o,[(r=p.notification)==null?void 0:r.message]),_("resize",o),s.jsx("div",{className:"p-side-navigation--accordion form-navigation",children:s.jsx("nav",{"aria-label":"Instance form navigation",children:s.jsxs("ul",{className:"p-side-navigation__list",children:[s.jsx(e,{label:N,...a}),s.jsxs("li",{className:"p-side-navigation__item",children:[s.jsx(i.Button,{type:"button",className:"p-side-navigation__accordion-button","aria-expanded":n?"true":"false",onClick:c,disabled:t,title:t?"Please select an image before adding custom configuration":"",children:"Advanced"}),s.jsxs("ul",{className:"p-side-navigation__list","aria-expanded":n?"true":"false",children:[s.jsx(e,{label:g,hasError:u,...a}),s.jsx(e,{label:b,hasError:x,...a}),s.jsx(e,{label:f,...a}),s.jsx(e,{label:v,...a}),s.jsx(e,{label:E,...a}),s.jsx(e,{label:S,...a})]})]}),t?s.jsx("li",{className:"p-side-navigation__item",children:s.jsx(i.Button,{className:"p-side-navigation__link p-button--base",disabled:!0,title:"Please select an image before adding custom configuration",children:l})}):s.jsx(e,{label:l,...a})]})})})};export{S as C,g as D,A as I,N as M,b as N,f as R,v as S,l as Y,E as a};