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