import{d as c,r,A as g,j as e}from"./index-3c1b2661.js";import{F as n}from"./FormMenuItem-c982b037.js";import{u as h}from"./updateMaxHeight-4e644a5f.js";const j="Main configuration",N="Snapshots",S="Filesystem",b="ZFS",E=({active:m,setActive:d,formik:u,poolDriver:i,contentType:p,isCreating:v})=>{var l;const f=c.useNotify(),[t,x]=r.useState(!v),a={active:m,setActive:d},s=u.values.name.length>0?void 0:"Please enter a volume name to enable this section",o=()=>{h("form-navigation","p-bottom-controls")};return r.useEffect(o,[(l=f.notification)==null?void 0:l.message]),g("resize",o),e.jsx("div",{className:"p-side-navigation--accordion form-navigation",children:e.jsx("nav",{"aria-label":"Storage volume form navigation",children:e.jsxs("ul",{className:"p-side-navigation__list",children:[e.jsx(n,{label:j,...a}),e.jsxs("li",{className:"p-side-navigation__item",children:[e.jsx(c.Button,{type:"button",className:"p-side-navigation__accordion-button","aria-expanded":t?"true":"false",onClick:()=>x(!t),disabled:!!s,title:s,children:"Advanced"}),e.jsxs("ul",{className:"p-side-navigation__list","aria-expanded":t?"true":"false",children:[e.jsx(n,{label:N,...a,disableReason:s}),p==="filesystem"&&["zfs","lvm","ceph"].includes(i)&&e.jsx(n,{label:S,...a,disableReason:s}),i==="zfs"&&e.jsx(n,{label:b,...a,disableReason:s})]})]})]})})})};export{S as F,j as M,E as S,b as Z,N as a};
