import{i as e}from"./chunk-aKtaBQYM.js";import{Vt as t,wt as n}from"./mui-B6lh3XSP.js";import{i as r,n as i,r as a,t as o}from"./ExpandMore-BvigPYWL.js";import{t as s}from"./TextField-DOdnjCrL.js";import{t as c}from"./Typography-DfQXhGTT.js";import{yt as l}from"./index-KVuxnkWj.js";import{n as u,t as d}from"./useSettingsStyles-X3caKosH.js";import{t as f}from"./EditItemView-BNkSnNuu.js";import{t as p}from"./BaseCommandView-CSuXz86y.js";var m=e(t(),1),h=n(),g=()=>{let{classes:e}=d(),t=l(),[n,g]=(0,m.useState)();return(0,h.jsx)(f,{endpoint:`commands`,item:n,setItem:g,validate:()=>n&&n.type,menu:(0,h.jsx)(u,{}),breadcrumbs:[`settingsTitle`,`sharedSavedCommand`],children:n&&(0,h.jsxs)(r,{defaultExpanded:!0,children:[(0,h.jsx)(i,{expandIcon:(0,h.jsx)(o,{}),children:(0,h.jsx)(c,{variant:`subtitle1`,children:t(`sharedRequired`)})}),(0,h.jsxs)(a,{className:e.details,children:[(0,h.jsx)(s,{value:n.description||``,onChange:e=>g({...n,description:e.target.value}),label:t(`sharedDescription`)}),(0,h.jsx)(p,{item:n,setItem:g})]})]})})};export{g as default};