import{j as e}from"./react-vendor-xYZnmIII.js";import{L as s,at as r,au as a,av as c,aw as i,a_ as d,a$ as u,ax as l}from"./ui-components-CQM92IK3.js";import{useEditor as m}from"./use-editor-CiTCcx1l.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./interactive-vendor-B1OgcAgP.js";import"./editor-provider-0C4WlrME.js";import"./v4-DsPse6Vr.js";const v=({changeCustomValues:n})=>{const{editor:t}=m();return t.editor.selectedElement.type==="button"&&e.jsx("div",{className:"flex flex-col gap-4",children:e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx(s,{children:"Button Type"}),e.jsxs(r,{onValueChange:o=>n({target:{id:"buttonType",value:o}}),value:typeof t.editor.selectedElement.content=="object"&&!Array.isArray(t.editor.selectedElement.content)&&t.editor.selectedElement.content!==null&&"buttonType"in t.editor.selectedElement.content&&t.editor.selectedElement.content.buttonType||"button",children:[e.jsx(a,{children:e.jsx(c,{placeholder:"Select button type"})}),e.jsx(i,{children:e.jsxs(d,{children:[e.jsx(u,{children:"Button Types"}),e.jsx(l,{value:"button",children:"Button"}),e.jsx(l,{value:"submit",children:"Submit"}),e.jsx(l,{value:"reset",children:"Reset"})]})})]})]})})};export{v as default};
